From fa23f57643247f10b7597c697c443a254e0b6c2d Mon Sep 17 00:00:00 2001 From: jrconlin Date: Tue, 6 Feb 2024 12:07:21 -0800 Subject: [PATCH 1/8] wip: protobuf 3 conversion Looks like Protobuf 3 is not compatible with protobuf 2. yay. --- Cargo.toml | 10 +- .../examples/bigtable-helloworld.rs | 1 - googleapis-raw/generate.sh | 3 +- googleapis-raw/grpc | 2 +- googleapis-raw/prepare.sh | 6 +- googleapis-raw/src/api/annotations.rs | 88 +- googleapis-raw/src/api/auth.rs | 2053 +- googleapis-raw/src/api/backend.rs | 1153 +- googleapis-raw/src/api/billing.rs | 613 +- googleapis-raw/src/api/client.rs | 4349 +-- googleapis-raw/src/api/config_change.rs | 666 +- googleapis-raw/src/api/consumer.rs | 546 +- googleapis-raw/src/api/context.rs | 602 +- googleapis-raw/src/api/control.rs | 300 +- googleapis-raw/src/api/distribution.rs | 3023 +- googleapis-raw/src/api/documentation.rs | 1160 +- googleapis-raw/src/api/endpoint.rs | 495 +- googleapis-raw/src/api/error_reason.rs | 689 - googleapis-raw/src/api/field_behavior.rs | 313 +- googleapis-raw/src/api/http.rs | 1561 +- googleapis-raw/src/api/httpbody.rs | 363 +- googleapis-raw/src/api/label.rs | 430 +- googleapis-raw/src/api/launch_stage.rs | 268 +- googleapis-raw/src/api/log.rs | 380 +- googleapis-raw/src/api/logging.rs | 638 +- googleapis-raw/src/api/metric.rs | 2075 +- googleapis-raw/src/api/mod.rs | 8 +- googleapis-raw/src/api/monitored_resource.rs | 1145 +- googleapis-raw/src/api/monitoring.rs | 713 +- googleapis-raw/src/api/policy.rs | 589 - googleapis-raw/src/api/quota.rs | 1233 +- googleapis-raw/src/api/resource.rs | 1290 +- googleapis-raw/src/api/routing.rs | 769 - googleapis-raw/src/api/service.rs | 2183 +- .../src/api/servicecontrol/v1/check_error.rs | 922 +- .../src/api/servicecontrol/v1/distribution.rs | 1960 +- .../src/api/servicecontrol/v1/http_request.rs | 869 - .../src/api/servicecontrol/v1/log_entry.rs | 1550 +- .../src/api/servicecontrol/v1/metric_value.rs | 966 +- .../src/api/servicecontrol/v1/mod.rs | 7 +- .../src/api/servicecontrol/v1/operation.rs | 1065 +- .../api/servicecontrol/v1/quota_controller.rs | 2094 +- .../v1/quota_controller_grpc.rs | 71 +- .../servicecontrol/v1/service_controller.rs | 2591 +- .../src/api/servicemanagement/v1/mod.rs | 5 +- .../src/api/servicemanagement/v1/resources.rs | 3978 +-- .../servicemanagement/v1/servicemanager.rs | 5501 ++-- .../v1/servicemanager_grpc.rs | 62 +- googleapis-raw/src/api/source_info.rs | 225 +- googleapis-raw/src/api/system_parameter.rs | 677 +- googleapis-raw/src/api/usage.rs | 671 +- googleapis-raw/src/api/visibility.rs | 531 - .../admin/v2/bigtable_instance_admin.rs | 8342 ++--- .../admin/v2/bigtable_instance_admin_grpc.rs | 62 +- .../bigtable/admin/v2/bigtable_table_admin.rs | 12179 ++----- .../admin/v2/bigtable_table_admin_grpc.rs | 270 - .../src/bigtable/admin/v2/common.rs | 452 +- .../src/bigtable/admin/v2/instance.rs | 4943 +-- googleapis-raw/src/bigtable/admin/v2/mod.rs | 5 +- googleapis-raw/src/bigtable/admin/v2/table.rs | 5768 +--- googleapis-raw/src/bigtable/v2/bigtable.rs | 9869 ++---- .../src/bigtable/v2/bigtable_grpc.rs | 76 +- googleapis-raw/src/bigtable/v2/data.rs | 7060 ++-- .../src/bigtable/v2/feature_flags.rs | 360 - googleapis-raw/src/bigtable/v2/mod.rs | 10 +- .../src/bigtable/v2/request_stats.rs | 1040 - .../src/bigtable/v2/response_params.rs | 360 - .../src/cloud/asset/v1/asset_service.rs | 26538 +--------------- .../src/cloud/asset/v1/asset_service_grpc.rs | 632 +- googleapis-raw/src/cloud/asset/v1/assets.rs | 10085 +----- googleapis-raw/src/cloud/asset/v1/mod.rs | 12 +- googleapis-raw/src/cloud/orgpolicy/v1/mod.rs | 1 - .../src/cloud/orgpolicy/v1/orgpolicy.rs | 1535 - .../src/cloud/orgpolicy/v2/constraint.rs | 974 - googleapis-raw/src/cloud/orgpolicy/v2/mod.rs | 3 - .../src/cloud/orgpolicy/v2/orgpolicy.rs | 3867 --- .../src/cloud/orgpolicy/v2/orgpolicy_grpc.rs | 251 - .../agentendpoint/v1/agentendpoint.rs | 3215 -- .../agentendpoint/v1/agentendpoint_grpc.rs | 213 - .../agentendpoint/v1/config_common.rs | 1054 - .../osconfig/agentendpoint/v1/inventory.rs | 3791 --- .../cloud/osconfig/agentendpoint/v1/mod.rs | 7 - .../osconfig/agentendpoint/v1/os_policy.rs | 6920 ---- .../osconfig/agentendpoint/v1/patch_jobs.rs | 3492 -- .../cloud/osconfig/agentendpoint/v1/tasks.rs | 3401 -- .../src/cloud/osconfig/v1/inventory.rs | 5391 ---- googleapis-raw/src/cloud/osconfig/v1/mod.rs | 22 - .../src/cloud/osconfig/v1/os_policy.rs | 7681 ----- .../v1/os_policy_assignment_reports.rs | 2609 -- .../osconfig/v1/os_policy_assignments.rs | 4308 --- .../src/cloud/osconfig/v1/osconfig_common.rs | 296 - .../src/cloud/osconfig/v1/osconfig_service.rs | 201 - .../osconfig/v1/osconfig_service_grpc.rs | 401 - .../osconfig/v1/osconfig_zonal_service.rs | 254 - .../v1/osconfig_zonal_service_grpc.rs | 401 - .../cloud/osconfig/v1/patch_deployments.rs | 4421 --- .../src/cloud/osconfig/v1/patch_jobs.rs | 8484 ----- .../src/cloud/osconfig/v1/vulnerability.rs | 3537 -- .../cloud/osconfig/v1alpha/config_common.rs | 1066 - .../instance_os_policies_compliance.rs | 1650 - .../src/cloud/osconfig/v1alpha/inventory.rs | 5396 ---- .../src/cloud/osconfig/v1alpha/mod.rs | 10 - .../src/cloud/osconfig/v1alpha/os_policy.rs | 7970 ----- .../v1alpha/os_policy_assignment_reports.rs | 2610 -- .../osconfig/v1alpha/os_policy_assignments.rs | 4359 --- .../cloud/osconfig/v1alpha/osconfig_common.rs | 297 - .../v1alpha/osconfig_zonal_service.rs | 290 - .../v1alpha/osconfig_zonal_service_grpc.rs | 461 - .../cloud/osconfig/v1alpha/vulnerability.rs | 3538 -- googleapis-raw/src/empty.rs | 136 +- googleapis-raw/src/iam/v1/iam_policy.rs | 1172 +- googleapis-raw/src/iam/v1/mod.rs | 4 +- googleapis-raw/src/iam/v1/options.rs | 263 +- googleapis-raw/src/iam/v1/policy.rs | 2772 +- .../type/device_resources.rs | 305 - .../identity/accesscontextmanager/type/mod.rs | 1 - .../v1/access_context_manager.rs | 7333 ----- .../v1/access_context_manager_grpc.rs | 821 - .../accesscontextmanager/v1/access_level.rs | 2203 -- .../accesscontextmanager/v1/access_policy.rs | 576 - .../v1/gcp_user_access_binding.rs | 355 - .../identity/accesscontextmanager/v1/mod.rs | 15 +- .../v1/service_perimeter.rs | 3968 --- googleapis-raw/src/lib.rs | 8 +- .../src/logging/type/http_request.rs | 1031 +- .../src/logging/type/log_severity.rs | 274 +- googleapis-raw/src/logging/type/mod.rs | 1 + googleapis-raw/src/longrunning/mod.rs | 7 +- googleapis-raw/src/longrunning/operations.rs | 2342 +- googleapis-raw/src/pubsub/v1/mod.rs | 7 +- googleapis-raw/src/pubsub/v1/pubsub.rs | 18820 ++++------- googleapis-raw/src/pubsub/v1/pubsub_grpc.rs | 32 +- googleapis-raw/src/pubsub/v1/schema.rs | 4020 --- googleapis-raw/src/pubsub/v1/schema_grpc.rs | 341 - googleapis-raw/src/pubsub/v1beta2/mod.rs | 5 +- googleapis-raw/src/pubsub/v1beta2/pubsub.rs | 4371 +-- googleapis-raw/src/rpc/code.rs | 318 +- googleapis-raw/src/rpc/error_details.rs | 3777 +-- googleapis-raw/src/rpc/http.rs | 894 - googleapis-raw/src/rpc/mod.rs | 1 - googleapis-raw/src/rpc/status.rs | 420 +- .../src/spanner/admin/database/v1/backup.rs | 5174 --- .../src/spanner/admin/database/v1/common.rs | 942 - .../src/spanner/admin/database/v1/mod.rs | 10 +- .../database/v1/spanner_database_admin.rs | 8429 +---- .../v1/spanner_database_admin_grpc.rs | 332 +- .../src/spanner/admin/instance/v1/common.rs | 350 - .../src/spanner/admin/instance/v1/mod.rs | 5 +- .../instance/v1/spanner_instance_admin.rs | 9876 ++---- .../v1/spanner_instance_admin_grpc.rs | 120 - .../src/spanner/v1/commit_response.rs | 479 - googleapis-raw/src/spanner/v1/keys.rs | 1033 +- googleapis-raw/src/spanner/v1/mod.rs | 10 +- googleapis-raw/src/spanner/v1/mutation.rs | 1438 +- googleapis-raw/src/spanner/v1/query_plan.rs | 1742 +- googleapis-raw/src/spanner/v1/result_set.rs | 1844 +- googleapis-raw/src/spanner/v1/spanner.rs | 11556 +++---- googleapis-raw/src/spanner/v1/spanner_grpc.rs | 36 +- googleapis-raw/src/spanner/v1/transaction.rs | 2884 +- googleapis-raw/src/spanner/v1/type_pb.rs | 1050 - googleapis-raw/src/type/calendar_period.rs | 183 +- googleapis-raw/src/type/color.rs | 628 +- googleapis-raw/src/type/date.rs | 367 +- googleapis-raw/src/type/datetime.rs | 887 - googleapis-raw/src/type/dayofweek.rs | 184 +- googleapis-raw/src/type/decimal.rs | 288 - googleapis-raw/src/type/expr.rs | 420 +- googleapis-raw/src/type/fraction.rs | 274 +- googleapis-raw/src/type/interval.rs | 314 - googleapis-raw/src/type/latlng.rs | 268 +- googleapis-raw/src/type/localized_text.rs | 276 - googleapis-raw/src/type/mod.rs | 5 - googleapis-raw/src/type/money.rs | 332 +- googleapis-raw/src/type/month.rs | 218 +- googleapis-raw/src/type/phone_number.rs | 672 - googleapis-raw/src/type/postal_address.rs | 760 +- googleapis-raw/src/type/quaternion.rs | 362 +- googleapis-raw/src/type/timeofday.rs | 327 +- googleapis/Cargo.toml | 2 +- 179 files changed, 60437 insertions(+), 286135 deletions(-) delete mode 100644 googleapis-raw/src/api/error_reason.rs delete mode 100644 googleapis-raw/src/api/policy.rs delete mode 100644 googleapis-raw/src/api/routing.rs delete mode 100644 googleapis-raw/src/api/servicecontrol/v1/http_request.rs delete mode 100644 googleapis-raw/src/api/visibility.rs delete mode 100644 googleapis-raw/src/bigtable/v2/feature_flags.rs delete mode 100644 googleapis-raw/src/bigtable/v2/request_stats.rs delete mode 100644 googleapis-raw/src/bigtable/v2/response_params.rs delete mode 100644 googleapis-raw/src/cloud/orgpolicy/v1/orgpolicy.rs delete mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/constraint.rs delete mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy.rs delete mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy_grpc.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/config_common.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/inventory.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/os_policy.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/patch_jobs.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/tasks.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/inventory.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy_assignment_reports.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy_assignments.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_common.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_service.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_service_grpc.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service_grpc.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/patch_deployments.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/patch_jobs.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1/vulnerability.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/config_common.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/instance_os_policies_compliance.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/inventory.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignment_reports.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignments.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_common.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service_grpc.rs delete mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/vulnerability.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/type/device_resources.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager_grpc.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_level.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_policy.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/gcp_user_access_binding.rs delete mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/service_perimeter.rs delete mode 100644 googleapis-raw/src/pubsub/v1/schema.rs delete mode 100644 googleapis-raw/src/pubsub/v1/schema_grpc.rs delete mode 100644 googleapis-raw/src/rpc/http.rs delete mode 100644 googleapis-raw/src/spanner/admin/database/v1/backup.rs delete mode 100644 googleapis-raw/src/spanner/admin/database/v1/common.rs delete mode 100644 googleapis-raw/src/spanner/admin/instance/v1/common.rs delete mode 100644 googleapis-raw/src/spanner/v1/commit_response.rs delete mode 100644 googleapis-raw/src/spanner/v1/type_pb.rs delete mode 100644 googleapis-raw/src/type/datetime.rs delete mode 100644 googleapis-raw/src/type/decimal.rs delete mode 100644 googleapis-raw/src/type/interval.rs delete mode 100644 googleapis-raw/src/type/localized_text.rs delete mode 100644 googleapis-raw/src/type/phone_number.rs diff --git a/Cargo.toml b/Cargo.toml index 96b00b5..7e2d872 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ members = ["googleapis", "googleapis-raw"] resolver = "2" [workspace.package] -version = "0.16.1" # don't forget to update `./googleapis/Cargo.toml` +version = "0.17.0" # don't forget to update `./googleapis/Cargo.toml` authors = [ "Ferrous Systems", "Mozilla Services Engineering ", @@ -34,6 +34,10 @@ futures = "0.3.5" # Not providing that lock means that cargo will "helpfully" update beyond those # versions because versions are a suggestion, not a rule. # NOTE: update the versions in `README.md` as well. -grpcio = { version = "=0.13.0" } +grpcio = { version = "0.13.0", default-features = false, features = [ + "boringssl", + "protobufv3-codec", +] } # grpcio currently does NOT support protobuf 3+ -protobuf = { version = "=2.28.0" } +# protobuf = { version = "=2.28.0" } +protobuf = { version = "3.3.0" } diff --git a/googleapis-raw/examples/bigtable-helloworld.rs b/googleapis-raw/examples/bigtable-helloworld.rs index 6fdd7b1..46a9bcd 100644 --- a/googleapis-raw/examples/bigtable-helloworld.rs +++ b/googleapis-raw/examples/bigtable-helloworld.rs @@ -31,7 +31,6 @@ use google_cloud_rust_raw::bigtable::v2::{ use google_cloud_rust_raw::empty::Empty; use grpcio::{Channel, ChannelBuilder, ChannelCredentials, ClientUnaryReceiver, EnvBuilder}; use protobuf::well_known_types::Duration; -use protobuf::RepeatedField; #[allow(dead_code)] fn timestamp() -> u128 { diff --git a/googleapis-raw/generate.sh b/googleapis-raw/generate.sh index 923d208..3f2f756 100755 --- a/googleapis-raw/generate.sh +++ b/googleapis-raw/generate.sh @@ -32,7 +32,8 @@ echo "Updating cargo..." cargo update echo "Updating plugin..." # Lock on 2.28.0 until grpcio supports 3+ -cargo install protobuf-codegen --version 2.28.0 +#cargo install protobuf-codegen --version 2.28.0 +cargo install protobuf-codegen if ! [[ -x "$(command -v grpc_rust_plugin)" ]]; then echo "Error: grpc_rust_plugin was not found" diff --git a/googleapis-raw/grpc b/googleapis-raw/grpc index 65d4df2..cb5c95c 160000 --- a/googleapis-raw/grpc +++ b/googleapis-raw/grpc @@ -1 +1 @@ -Subproject commit 65d4df25edd4307e9dd40b899bdccd0ae302553f +Subproject commit cb5c95cc3bfd1111dedb957938859e0aaa458826 diff --git a/googleapis-raw/prepare.sh b/googleapis-raw/prepare.sh index 4f0a74e..d571f24 100755 --- a/googleapis-raw/prepare.sh +++ b/googleapis-raw/prepare.sh @@ -4,9 +4,11 @@ # remove all auto-generated rust files. # The `mod.rs` & `lib.rs` files are NOT generated by `generate.sh` # -cargo install grpcio-compiler --version 0.13.0 +#cargo install grpcio-compiler --version 0.13.0 +cargo install grpcio-compiler ## lock on 2.28.0 until grpcio supports 3+ -cargo install protobuf-codegen --version 2.28.0 +#cargo install protobuf-codegen --version 2.28.0 +cargo install protobuf-codegen find src -name "*.rs" -and -not \( -name "mod.rs" -or -name "lib.rs" \) -print -delete echo "REMEMBER to: " echo " [ ] update 'src/lib.rs' _PROTOBUF_VERSION_CHECK to the latest version number" diff --git a/googleapis-raw/src/api/annotations.rs b/googleapis-raw/src/api/annotations.rs index cf1f299..60039e0 100644 --- a/googleapis-raw/src/api/annotations.rs +++ b/googleapis-raw/src/api/annotations.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,18 +16,19 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/annotations.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; /// Extension fields pub mod exts { - pub const http: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295728, phantom: ::std::marker::PhantomData }; + pub const http: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, super::super::http::HttpRule> = ::protobuf::ext::ExtFieldOptional::new(72295728, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -35,39 +37,57 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \xbc\"\x20\x01(\x0b2\x14.google.api.HttpRule\x12\x1e.google.protobuf.Met\ hodOptionsR\x04httpBn\n\x0ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoo\ gle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\ - \x04GAPIJ\xa9\x06\n\x06\x12\x04\x0e\0\x1e\x01\n\xbc\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb1\x04\x20Copyright\x202015\x20Google\x20LLC\n\n\x20Lic\ - ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0\x1f\n\ - \t\n\x02\x03\x01\x12\x03\x13\0*\n\x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\ - \x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ - \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\x02\x08\x08\x12\ - \x03\x17\01\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ - \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\ - \x01\x07\x12\x04\x1b\0\x1e\x01\n\x1c\n\x02\x07\0\x12\x03\x1d\x02\x1b\x1a\ - \x11\x20See\x20`HttpRule`.\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\x07$\n\n\n\ - \x03\x07\0\x06\x12\x03\x1d\x02\n\n\n\n\x03\x07\0\x01\x12\x03\x1d\x0b\x0f\ - \n\n\n\x03\x07\0\x03\x12\x03\x1d\x12\x1ab\x06proto3\ + \x04GAPIJ\xaf\x06\n\x06\x12\x04\x0e\0\x1e\x01\n\xc2\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb7\x04\x20Copyright\x20(c)\x202015,\x20Google\x20Inc.\n\ + \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ + \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ + \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ + y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\ + \x03\x12\0\x1f\n\t\n\x02\x03\x01\x12\x03\x13\0*\n\x08\n\x01\x08\x12\x03\ + \x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\ + \n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\ + \x02\x08\x08\x12\x03\x17\01\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\ + \x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\ + \x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0\x1e\x01\n\x1c\n\x02\x07\0\x12\ + \x03\x1d\x02\x1b\x1a\x11\x20See\x20`HttpRule`.\n\n\n\n\x03\x07\0\x02\x12\ + \x03\x1b\x07$\n\n\n\x03\x07\0\x06\x12\x03\x1d\x02\n\n\n\n\x03\x07\0\x01\ + \x12\x03\x1d\x0b\x0f\n\n\n\x03\x07\0\x03\x12\x03\x1d\x12\x1ab\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(super::http::file_descriptor().clone()); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/auth.rs b/googleapis-raw/src/api/auth.rs index 2a75081..1ddc3d9 100644 --- a/googleapis-raw/src/api/auth.rs +++ b/googleapis-raw/src/api/auth.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,30 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/auth.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Authentication) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Authentication { // message fields - pub rules: ::protobuf::RepeatedField, - pub providers: ::protobuf::RepeatedField, + /// A list of authentication rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Authentication.rules) + pub rules: ::std::vec::Vec, + /// Defines a set of authentication providers that a service supports. + // @@protoc_insertion_point(field:google.api.Authentication.providers) + pub providers: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Authentication.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Authentication { @@ -44,84 +53,45 @@ impl Authentication { ::std::default::Default::default() } - // repeated .google.api.AuthenticationRule rules = 3; - - - pub fn get_rules(&self) -> &[AuthenticationRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.AuthProvider providers = 4; - - - pub fn get_providers(&self) -> &[AuthProvider] { - &self.providers - } - pub fn clear_providers(&mut self) { - self.providers.clear(); - } - - // Param is passed by value, moved - pub fn set_providers(&mut self, v: ::protobuf::RepeatedField) { - self.providers = v; - } - - // Mutable pointer to the field. - pub fn mut_providers(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.providers - } - - // Take field - pub fn take_providers(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.providers, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Authentication| { &m.rules }, + |m: &mut Authentication| { &mut m.rules }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "providers", + |m: &Authentication| { &m.providers }, + |m: &mut Authentication| { &mut m.providers }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Authentication", + fields, + oneofs, + ) } } impl ::protobuf::Message for Authentication { + const NAME: &'static str = "Authentication"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - for v in &self.providers { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 26 => { + self.rules.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.providers)?; + 34 => { + self.providers.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -130,124 +100,107 @@ impl ::protobuf::Message for Authentication { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.providers { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rules { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; for v in &self.providers { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Authentication { Authentication::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Authentication| { &m.rules }, - |m: &mut Authentication| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "providers", - |m: &Authentication| { &m.providers }, - |m: &mut Authentication| { &mut m.providers }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Authentication", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rules.clear(); + self.providers.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Authentication { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Authentication::new) + static instance: Authentication = Authentication { + rules: ::std::vec::Vec::new(), + providers: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Authentication { - fn clear(&mut self) { - self.rules.clear(); - self.providers.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Authentication { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Authentication").unwrap()).clone() } } -impl ::std::fmt::Debug for Authentication { +impl ::std::fmt::Display for Authentication { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Authentication { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Authentication rules for the service. +/// +/// By default, if a method has any authentication requirements, every request +/// must include a valid credential matching one of the requirements. +/// It's an error to include more than one kind of credential in a single +/// request. +/// +/// If a method doesn't have any auth requirements, request credentials will be +/// ignored. +// @@protoc_insertion_point(message:google.api.AuthenticationRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AuthenticationRule { // message fields + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.AuthenticationRule.selector) pub selector: ::std::string::String, - pub oauth: ::protobuf::SingularPtrField, + /// The requirements for OAuth credentials. + // @@protoc_insertion_point(field:google.api.AuthenticationRule.oauth) + pub oauth: ::protobuf::MessageField, + /// If true, the service accepts API keys without any other credential. + // @@protoc_insertion_point(field:google.api.AuthenticationRule.allow_without_credential) pub allow_without_credential: bool, - pub requirements: ::protobuf::RepeatedField, + /// Requirements for additional authentication providers. + // @@protoc_insertion_point(field:google.api.AuthenticationRule.requirements) + pub requirements: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.AuthenticationRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AuthenticationRule { @@ -261,143 +214,61 @@ impl AuthenticationRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // .google.api.OAuthRequirements oauth = 2; - - - pub fn get_oauth(&self) -> &OAuthRequirements { - self.oauth.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_oauth(&mut self) { - self.oauth.clear(); - } - - pub fn has_oauth(&self) -> bool { - self.oauth.is_some() - } - - // Param is passed by value, moved - pub fn set_oauth(&mut self, v: OAuthRequirements) { - self.oauth = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_oauth(&mut self) -> &mut OAuthRequirements { - if self.oauth.is_none() { - self.oauth.set_default(); - } - self.oauth.as_mut().unwrap() - } - - // Take field - pub fn take_oauth(&mut self) -> OAuthRequirements { - self.oauth.take().unwrap_or_else(|| OAuthRequirements::new()) - } - - // bool allow_without_credential = 5; - - - pub fn get_allow_without_credential(&self) -> bool { - self.allow_without_credential - } - pub fn clear_allow_without_credential(&mut self) { - self.allow_without_credential = false; - } - - // Param is passed by value, moved - pub fn set_allow_without_credential(&mut self, v: bool) { - self.allow_without_credential = v; - } - - // repeated .google.api.AuthRequirement requirements = 7; - - - pub fn get_requirements(&self) -> &[AuthRequirement] { - &self.requirements - } - pub fn clear_requirements(&mut self) { - self.requirements.clear(); - } - - // Param is passed by value, moved - pub fn set_requirements(&mut self, v: ::protobuf::RepeatedField) { - self.requirements = v; - } - - // Mutable pointer to the field. - pub fn mut_requirements(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.requirements - } - - // Take field - pub fn take_requirements(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.requirements, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &AuthenticationRule| { &m.selector }, + |m: &mut AuthenticationRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, OAuthRequirements>( + "oauth", + |m: &AuthenticationRule| { &m.oauth }, + |m: &mut AuthenticationRule| { &mut m.oauth }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "allow_without_credential", + |m: &AuthenticationRule| { &m.allow_without_credential }, + |m: &mut AuthenticationRule| { &mut m.allow_without_credential }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "requirements", + |m: &AuthenticationRule| { &m.requirements }, + |m: &mut AuthenticationRule| { &mut m.requirements }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AuthenticationRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for AuthenticationRule { + const NAME: &'static str = "AuthenticationRule"; + fn is_initialized(&self) -> bool { - for v in &self.oauth { - if !v.is_initialized() { - return false; - } - }; - for v in &self.requirements { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.oauth)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.oauth)?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_without_credential = tmp; + 40 => { + self.allow_without_credential = is.read_bool()?; }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.requirements)?; + 58 => { + self.requirements.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -406,527 +277,125 @@ impl ::protobuf::Message for AuthenticationRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); } - if let Some(ref v) = self.oauth.as_ref() { + if let Some(v) = self.oauth.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.allow_without_credential != false { - my_size += 2; + my_size += 1 + 1; } for value in &self.requirements { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } - if let Some(ref v) = self.oauth.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.oauth.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if self.allow_without_credential != false { os.write_bool(5, self.allow_without_credential)?; } for v in &self.requirements { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AuthenticationRule { AuthenticationRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &AuthenticationRule| { &m.selector }, - |m: &mut AuthenticationRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "oauth", - |m: &AuthenticationRule| { &m.oauth }, - |m: &mut AuthenticationRule| { &mut m.oauth }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_without_credential", - |m: &AuthenticationRule| { &m.allow_without_credential }, - |m: &mut AuthenticationRule| { &mut m.allow_without_credential }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "requirements", - |m: &AuthenticationRule| { &m.requirements }, - |m: &mut AuthenticationRule| { &mut m.requirements }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuthenticationRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AuthenticationRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuthenticationRule::new) - } -} - -impl ::protobuf::Clear for AuthenticationRule { fn clear(&mut self) { self.selector.clear(); self.oauth.clear(); self.allow_without_credential = false; self.requirements.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AuthenticationRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AuthenticationRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct JwtLocation { - // message fields - pub value_prefix: ::std::string::String, - // message oneof groups - pub field_in: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a JwtLocation { - fn default() -> &'a JwtLocation { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum JwtLocation_oneof_in { - header(::std::string::String), - query(::std::string::String), - cookie(::std::string::String), -} - -impl JwtLocation { - pub fn new() -> JwtLocation { - ::std::default::Default::default() - } - - // string header = 1; - - - pub fn get_header(&self) -> &str { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::header(ref v)) => v, - _ => "", - } - } - pub fn clear_header(&mut self) { - self.field_in = ::std::option::Option::None; - } - - pub fn has_header(&self) -> bool { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::header(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_header(&mut self, v: ::std::string::String) { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::header(v)) - } - - // Mutable pointer to the field. - pub fn mut_header(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(JwtLocation_oneof_in::header(_)) = self.field_in { - } else { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::header(::std::string::String::new())); - } - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::header(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_header(&mut self) -> ::std::string::String { - if self.has_header() { - match self.field_in.take() { - ::std::option::Option::Some(JwtLocation_oneof_in::header(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string query = 2; - - - pub fn get_query(&self) -> &str { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::query(ref v)) => v, - _ => "", - } - } - pub fn clear_query(&mut self) { - self.field_in = ::std::option::Option::None; - } - - pub fn has_query(&self) -> bool { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::query(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_query(&mut self, v: ::std::string::String) { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::query(v)) - } - - // Mutable pointer to the field. - pub fn mut_query(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(JwtLocation_oneof_in::query(_)) = self.field_in { - } else { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::query(::std::string::String::new())); - } - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::query(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_query(&mut self) -> ::std::string::String { - if self.has_query() { - match self.field_in.take() { - ::std::option::Option::Some(JwtLocation_oneof_in::query(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string cookie = 4; - - - pub fn get_cookie(&self) -> &str { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::cookie(ref v)) => v, - _ => "", - } - } - pub fn clear_cookie(&mut self) { - self.field_in = ::std::option::Option::None; + self.special_fields.clear(); } - pub fn has_cookie(&self) -> bool { - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::cookie(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cookie(&mut self, v: ::std::string::String) { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::cookie(v)) - } - - // Mutable pointer to the field. - pub fn mut_cookie(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(JwtLocation_oneof_in::cookie(_)) = self.field_in { - } else { - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::cookie(::std::string::String::new())); - } - match self.field_in { - ::std::option::Option::Some(JwtLocation_oneof_in::cookie(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cookie(&mut self) -> ::std::string::String { - if self.has_cookie() { - match self.field_in.take() { - ::std::option::Option::Some(JwtLocation_oneof_in::cookie(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string value_prefix = 3; - - - pub fn get_value_prefix(&self) -> &str { - &self.value_prefix - } - pub fn clear_value_prefix(&mut self) { - self.value_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_value_prefix(&mut self, v: ::std::string::String) { - self.value_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value_prefix(&mut self) -> &mut ::std::string::String { - &mut self.value_prefix - } - - // Take field - pub fn take_value_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.value_prefix, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for JwtLocation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::header(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::query(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_in = ::std::option::Option::Some(JwtLocation_oneof_in::cookie(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value_prefix)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.value_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.value_prefix); - } - if let ::std::option::Option::Some(ref v) = self.field_in { - match v { - &JwtLocation_oneof_in::header(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &JwtLocation_oneof_in::query(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - &JwtLocation_oneof_in::cookie(ref v) => { - my_size += ::protobuf::rt::string_size(4, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.value_prefix.is_empty() { - os.write_string(3, &self.value_prefix)?; - } - if let ::std::option::Option::Some(ref v) = self.field_in { - match v { - &JwtLocation_oneof_in::header(ref v) => { - os.write_string(1, v)?; - }, - &JwtLocation_oneof_in::query(ref v) => { - os.write_string(2, v)?; - }, - &JwtLocation_oneof_in::cookie(ref v) => { - os.write_string(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> JwtLocation { - JwtLocation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "header", - JwtLocation::has_header, - JwtLocation::get_header, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "query", - JwtLocation::has_query, - JwtLocation::get_query, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "cookie", - JwtLocation::has_cookie, - JwtLocation::get_cookie, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "value_prefix", - |m: &JwtLocation| { &m.value_prefix }, - |m: &mut JwtLocation| { &mut m.value_prefix }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "JwtLocation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static JwtLocation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(JwtLocation::new) + fn default_instance() -> &'static AuthenticationRule { + static instance: AuthenticationRule = AuthenticationRule { + selector: ::std::string::String::new(), + oauth: ::protobuf::MessageField::none(), + allow_without_credential: false, + requirements: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for JwtLocation { - fn clear(&mut self) { - self.field_in = ::std::option::Option::None; - self.field_in = ::std::option::Option::None; - self.field_in = ::std::option::Option::None; - self.value_prefix.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AuthenticationRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AuthenticationRule").unwrap()).clone() } } -impl ::std::fmt::Debug for JwtLocation { +impl ::std::fmt::Display for AuthenticationRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for JwtLocation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for AuthenticationRule { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Configuration for an authentication provider, including support for +/// [JSON Web Token +/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). +// @@protoc_insertion_point(message:google.api.AuthProvider) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AuthProvider { // message fields + /// The unique identifier of the auth provider. It will be referred to by + /// `AuthRequirement.provider_id`. + /// + /// Example: "bookstore_auth". + // @@protoc_insertion_point(field:google.api.AuthProvider.id) pub id: ::std::string::String, + /// Identifies the principal that issued the JWT. See + /// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 + /// Usually a URL or an email address. + /// + /// Example: https://securetoken.google.com + /// Example: 1234567-compute@developer.gserviceaccount.com + // @@protoc_insertion_point(field:google.api.AuthProvider.issuer) pub issuer: ::std::string::String, + // @@protoc_insertion_point(field:google.api.AuthProvider.jwks_uri) pub jwks_uri: ::std::string::String, + // @@protoc_insertion_point(field:google.api.AuthProvider.audiences) pub audiences: ::std::string::String, + /// Redirect URL if JWT token is required but not present or is expired. + /// Implement authorizationUrl of securityDefinitions in OpenAPI spec. + // @@protoc_insertion_point(field:google.api.AuthProvider.authorization_url) pub authorization_url: ::std::string::String, - pub jwt_locations: ::protobuf::RepeatedField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.AuthProvider.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AuthProvider { @@ -940,196 +409,69 @@ impl AuthProvider { ::std::default::Default::default() } - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string issuer = 2; - - - pub fn get_issuer(&self) -> &str { - &self.issuer - } - pub fn clear_issuer(&mut self) { - self.issuer.clear(); - } - - // Param is passed by value, moved - pub fn set_issuer(&mut self, v: ::std::string::String) { - self.issuer = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_issuer(&mut self) -> &mut ::std::string::String { - &mut self.issuer - } - - // Take field - pub fn take_issuer(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.issuer, ::std::string::String::new()) - } - - // string jwks_uri = 3; - - - pub fn get_jwks_uri(&self) -> &str { - &self.jwks_uri - } - pub fn clear_jwks_uri(&mut self) { - self.jwks_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_jwks_uri(&mut self, v: ::std::string::String) { - self.jwks_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_jwks_uri(&mut self) -> &mut ::std::string::String { - &mut self.jwks_uri - } - - // Take field - pub fn take_jwks_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.jwks_uri, ::std::string::String::new()) - } - - // string audiences = 4; - - - pub fn get_audiences(&self) -> &str { - &self.audiences - } - pub fn clear_audiences(&mut self) { - self.audiences.clear(); - } - - // Param is passed by value, moved - pub fn set_audiences(&mut self, v: ::std::string::String) { - self.audiences = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_audiences(&mut self) -> &mut ::std::string::String { - &mut self.audiences - } - - // Take field - pub fn take_audiences(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.audiences, ::std::string::String::new()) - } - - // string authorization_url = 5; - - - pub fn get_authorization_url(&self) -> &str { - &self.authorization_url - } - pub fn clear_authorization_url(&mut self) { - self.authorization_url.clear(); - } - - // Param is passed by value, moved - pub fn set_authorization_url(&mut self, v: ::std::string::String) { - self.authorization_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_authorization_url(&mut self) -> &mut ::std::string::String { - &mut self.authorization_url - } - - // Take field - pub fn take_authorization_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.authorization_url, ::std::string::String::new()) - } - - // repeated .google.api.JwtLocation jwt_locations = 6; - - - pub fn get_jwt_locations(&self) -> &[JwtLocation] { - &self.jwt_locations - } - pub fn clear_jwt_locations(&mut self) { - self.jwt_locations.clear(); - } - - // Param is passed by value, moved - pub fn set_jwt_locations(&mut self, v: ::protobuf::RepeatedField) { - self.jwt_locations = v; - } - - // Mutable pointer to the field. - pub fn mut_jwt_locations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.jwt_locations - } - - // Take field - pub fn take_jwt_locations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.jwt_locations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &AuthProvider| { &m.id }, + |m: &mut AuthProvider| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "issuer", + |m: &AuthProvider| { &m.issuer }, + |m: &mut AuthProvider| { &mut m.issuer }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "jwks_uri", + |m: &AuthProvider| { &m.jwks_uri }, + |m: &mut AuthProvider| { &mut m.jwks_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "audiences", + |m: &AuthProvider| { &m.audiences }, + |m: &mut AuthProvider| { &mut m.audiences }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "authorization_url", + |m: &AuthProvider| { &m.authorization_url }, + |m: &mut AuthProvider| { &mut m.authorization_url }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AuthProvider", + fields, + oneofs, + ) } } impl ::protobuf::Message for AuthProvider { + const NAME: &'static str = "AuthProvider"; + fn is_initialized(&self) -> bool { - for v in &self.jwt_locations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.issuer)?; + 18 => { + self.issuer = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.jwks_uri)?; + 26 => { + self.jwks_uri = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; + 34 => { + self.audiences = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.authorization_url)?; + 42 => { + self.authorization_url = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.jwt_locations)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1138,7 +480,7 @@ impl ::protobuf::Message for AuthProvider { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.id); @@ -1155,16 +497,12 @@ impl ::protobuf::Message for AuthProvider { if !self.authorization_url.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.authorization_url); } - for value in &self.jwt_locations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.id.is_empty() { os.write_string(1, &self.id)?; } @@ -1180,124 +518,88 @@ impl ::protobuf::Message for AuthProvider { if !self.authorization_url.is_empty() { os.write_string(5, &self.authorization_url)?; } - for v in &self.jwt_locations { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AuthProvider { AuthProvider::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &AuthProvider| { &m.id }, - |m: &mut AuthProvider| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "issuer", - |m: &AuthProvider| { &m.issuer }, - |m: &mut AuthProvider| { &mut m.issuer }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "jwks_uri", - |m: &AuthProvider| { &m.jwks_uri }, - |m: &mut AuthProvider| { &mut m.jwks_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "audiences", - |m: &AuthProvider| { &m.audiences }, - |m: &mut AuthProvider| { &mut m.audiences }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "authorization_url", - |m: &AuthProvider| { &m.authorization_url }, - |m: &mut AuthProvider| { &mut m.authorization_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "jwt_locations", - |m: &AuthProvider| { &m.jwt_locations }, - |m: &mut AuthProvider| { &mut m.jwt_locations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuthProvider", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AuthProvider { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuthProvider::new) - } -} - -impl ::protobuf::Clear for AuthProvider { fn clear(&mut self) { self.id.clear(); self.issuer.clear(); self.jwks_uri.clear(); self.audiences.clear(); self.authorization_url.clear(); - self.jwt_locations.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static AuthProvider { + static instance: AuthProvider = AuthProvider { + id: ::std::string::String::new(), + issuer: ::std::string::String::new(), + jwks_uri: ::std::string::String::new(), + audiences: ::std::string::String::new(), + authorization_url: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for AuthProvider { +impl ::protobuf::MessageFull for AuthProvider { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AuthProvider").unwrap()).clone() + } +} + +impl ::std::fmt::Display for AuthProvider { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AuthProvider { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// OAuth scopes are a way to define data and permissions on data. For example, +/// there are scopes defined for "Read-only access to Google Calendar" and +/// "Access to Cloud Platform". Users can consent to a scope for an application, +/// giving it permission to access that data on their behalf. +/// +/// OAuth scope specifications should be fairly coarse grained; a user will need +/// to see and understand the text description of what your scope means. +/// +/// In most cases: use one or at most two OAuth scopes for an entire family of +/// products. If your product has multiple APIs, you should probably be sharing +/// the OAuth scope across all of those APIs. +/// +/// When you need finer grained OAuth consent screens: talk with your product +/// management about how developers will use them in practice. +/// +/// Please note that even though each of the canonical scopes is enough for a +/// request to be accepted and passed to the backend, a request can still fail +/// due to the backend requiring additional scopes or permissions. +// @@protoc_insertion_point(message:google.api.OAuthRequirements) +#[derive(PartialEq,Clone,Default,Debug)] pub struct OAuthRequirements { // message fields + // @@protoc_insertion_point(field:google.api.OAuthRequirements.canonical_scopes) pub canonical_scopes: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.OAuthRequirements.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a OAuthRequirements { @@ -1311,47 +613,37 @@ impl OAuthRequirements { ::std::default::Default::default() } - // string canonical_scopes = 1; - - - pub fn get_canonical_scopes(&self) -> &str { - &self.canonical_scopes - } - pub fn clear_canonical_scopes(&mut self) { - self.canonical_scopes.clear(); - } - - // Param is passed by value, moved - pub fn set_canonical_scopes(&mut self, v: ::std::string::String) { - self.canonical_scopes = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_canonical_scopes(&mut self) -> &mut ::std::string::String { - &mut self.canonical_scopes - } - - // Take field - pub fn take_canonical_scopes(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.canonical_scopes, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "canonical_scopes", + |m: &OAuthRequirements| { &m.canonical_scopes }, + |m: &mut OAuthRequirements| { &mut m.canonical_scopes }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "OAuthRequirements", + fields, + oneofs, + ) } } impl ::protobuf::Message for OAuthRequirements { + const NAME: &'static str = "OAuthRequirements"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.canonical_scopes)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.canonical_scopes = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1360,104 +652,81 @@ impl ::protobuf::Message for OAuthRequirements { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.canonical_scopes.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.canonical_scopes); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.canonical_scopes.is_empty() { os.write_string(1, &self.canonical_scopes)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> OAuthRequirements { OAuthRequirements::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "canonical_scopes", - |m: &OAuthRequirements| { &m.canonical_scopes }, - |m: &mut OAuthRequirements| { &mut m.canonical_scopes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OAuthRequirements", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.canonical_scopes.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static OAuthRequirements { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OAuthRequirements::new) + static instance: OAuthRequirements = OAuthRequirements { + canonical_scopes: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for OAuthRequirements { - fn clear(&mut self) { - self.canonical_scopes.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for OAuthRequirements { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("OAuthRequirements").unwrap()).clone() } } -impl ::std::fmt::Debug for OAuthRequirements { +impl ::std::fmt::Display for OAuthRequirements { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for OAuthRequirements { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// User-defined authentication requirements, including support for +/// [JSON Web Token +/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). +// @@protoc_insertion_point(message:google.api.AuthRequirement) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AuthRequirement { // message fields + // @@protoc_insertion_point(field:google.api.AuthRequirement.provider_id) pub provider_id: ::std::string::String, + // @@protoc_insertion_point(field:google.api.AuthRequirement.audiences) pub audiences: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.AuthRequirement.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AuthRequirement { @@ -1471,76 +740,45 @@ impl AuthRequirement { ::std::default::Default::default() } - // string provider_id = 1; - - - pub fn get_provider_id(&self) -> &str { - &self.provider_id - } - pub fn clear_provider_id(&mut self) { - self.provider_id.clear(); - } - - // Param is passed by value, moved - pub fn set_provider_id(&mut self, v: ::std::string::String) { - self.provider_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_provider_id(&mut self) -> &mut ::std::string::String { - &mut self.provider_id - } - - // Take field - pub fn take_provider_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.provider_id, ::std::string::String::new()) - } - - // string audiences = 2; - - - pub fn get_audiences(&self) -> &str { - &self.audiences - } - pub fn clear_audiences(&mut self) { - self.audiences.clear(); - } - - // Param is passed by value, moved - pub fn set_audiences(&mut self, v: ::std::string::String) { - self.audiences = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_audiences(&mut self) -> &mut ::std::string::String { - &mut self.audiences - } - - // Take field - pub fn take_audiences(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.audiences, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "provider_id", + |m: &AuthRequirement| { &m.provider_id }, + |m: &mut AuthRequirement| { &mut m.provider_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "audiences", + |m: &AuthRequirement| { &m.audiences }, + |m: &mut AuthRequirement| { &mut m.audiences }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AuthRequirement", + fields, + oneofs, + ) } } impl ::protobuf::Message for AuthRequirement { + const NAME: &'static str = "AuthRequirement"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.provider_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.provider_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audiences)?; + 18 => { + self.audiences = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1549,7 +787,7 @@ impl ::protobuf::Message for AuthRequirement { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.provider_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.provider_id); @@ -1557,98 +795,65 @@ impl ::protobuf::Message for AuthRequirement { if !self.audiences.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.audiences); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.provider_id.is_empty() { os.write_string(1, &self.provider_id)?; } if !self.audiences.is_empty() { os.write_string(2, &self.audiences)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AuthRequirement { AuthRequirement::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "provider_id", - |m: &AuthRequirement| { &m.provider_id }, - |m: &mut AuthRequirement| { &mut m.provider_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "audiences", - |m: &AuthRequirement| { &m.audiences }, - |m: &mut AuthRequirement| { &mut m.audiences }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuthRequirement", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.provider_id.clear(); + self.audiences.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static AuthRequirement { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuthRequirement::new) + static instance: AuthRequirement = AuthRequirement { + provider_id: ::std::string::String::new(), + audiences: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AuthRequirement { - fn clear(&mut self) { - self.provider_id.clear(); - self.audiences.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AuthRequirement { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AuthRequirement").unwrap()).clone() } } -impl ::std::fmt::Debug for AuthRequirement { +impl ::std::fmt::Display for AuthRequirement { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AuthRequirement { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -1660,232 +865,175 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x1d.google.api.OAuthRequirementsR\x05oauth\x128\n\x18allow_without_cred\ ential\x18\x05\x20\x01(\x08R\x16allowWithoutCredential\x12?\n\x0crequire\ ments\x18\x07\x20\x03(\x0b2\x1b.google.api.AuthRequirementR\x0crequireme\ - nts\"\x82\x01\n\x0bJwtLocation\x12\x18\n\x06header\x18\x01\x20\x01(\tH\0\ - R\x06header\x12\x16\n\x05query\x18\x02\x20\x01(\tH\0R\x05query\x12\x18\n\ - \x06cookie\x18\x04\x20\x01(\tH\0R\x06cookie\x12!\n\x0cvalue_prefix\x18\ - \x03\x20\x01(\tR\x0bvaluePrefixB\x04\n\x02in\"\xda\x01\n\x0cAuthProvider\ - \x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x16\n\x06issuer\x18\x02\ - \x20\x01(\tR\x06issuer\x12\x19\n\x08jwks_uri\x18\x03\x20\x01(\tR\x07jwks\ - Uri\x12\x1c\n\taudiences\x18\x04\x20\x01(\tR\taudiences\x12+\n\x11author\ - ization_url\x18\x05\x20\x01(\tR\x10authorizationUrl\x12<\n\rjwt_location\ - s\x18\x06\x20\x03(\x0b2\x17.google.api.JwtLocationR\x0cjwtLocations\">\n\ - \x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\x20\x01(\tR\x0f\ - canonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bprovider_id\x18\x01\ - \x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\x20\x01(\tR\taudie\ - ncesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.golang.org/genproto/\ - googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xd3G\n\x07\ - \x12\x05\x0e\0\xec\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ - he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ - \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ - ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ - of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ - licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ - w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\ - \x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\ - \0\"\n\x08\n\x01\x08\x12\x03\x14\0*\n\t\n\x02\x08\x08\x12\x03\x14\0*\n\ - \x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ - \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\xcb\x04\n\x02\ - \x04\0\x12\x04*\02\x01\x1a\xbe\x04\x20`Authentication`\x20defines\x20the\ - \x20authentication\x20configuration\x20for\x20API\x20methods\n\x20provid\ - ed\x20by\x20an\x20API\x20service.\n\n\x20Example:\n\n\x20\x20\x20\x20\ - \x20name:\x20calendar.googleapis.com\n\x20\x20\x20\x20\x20authentication\ - :\n\x20\x20\x20\x20\x20\x20\x20providers:\n\x20\x20\x20\x20\x20\x20\x20-\ - \x20id:\x20google_calendar_auth\n\x20\x20\x20\x20\x20\x20\x20\x20\x20jwk\ - s_uri:\x20https://www.googleapis.com/oauth2/v1/certs\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20issuer:\x20https://securetoken.google.com\n\x20\x20\ - \x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\ - \x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20requirements:\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20provider_id:\x20google_calendar_auth\ - \n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20google.calendar.Delegate\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20oauth:\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/auth\ - /calendar.read\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\x16\n\x9e\x01\n\x04\ - \x04\0\x02\0\x12\x03.\x02(\x1a\x90\x01\x20A\x20list\x20of\x20authenticat\ - ion\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\ - \x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\ - \"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03.\ - \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03.\x0b\x1d\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03.\x1e#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03.&'\nQ\n\x04\ - \x04\0\x02\x01\x12\x031\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20authen\ - tication\x20providers\x20that\x20a\x20service\x20supports.\n\n\x0c\n\x05\ - \x04\0\x02\x01\x04\x12\x031\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x031\ - \x0b\x17\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x031\x18!\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x031$%\n\xed\x02\n\x02\x04\x01\x12\x04=\0M\x01\x1a\xe0\ - \x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\n\x20By\x20d\ - efault,\x20if\x20a\x20method\x20has\x20any\x20authentication\x20requirem\ - ents,\x20every\x20request\n\x20must\x20include\x20a\x20valid\x20credenti\ - al\x20matching\x20one\x20of\x20the\x20requirements.\n\x20It's\x20an\x20e\ - rror\x20to\x20include\x20more\x20than\x20one\x20kind\x20of\x20credential\ - \x20in\x20a\x20single\n\x20request.\n\n\x20If\x20a\x20method\x20doesn't\ - \x20have\x20any\x20auth\x20requirements,\x20request\x20credentials\x20wi\ - ll\x20be\n\x20ignored.\n\n\n\n\x03\x04\x01\x01\x12\x03=\x08\x1a\n\x91\ - \x01\n\x04\x04\x01\x02\0\x12\x03B\x02\x16\x1a\x83\x01\x20Selects\x20the\ - \x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20t\ - o\x20[selector][google.api.DocumentationRule.selector]\x20for\x20syntax\ - \n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03B\x02\x08\n\x0c\n\ - \x05\x04\x01\x02\0\x01\x12\x03B\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\ - \x03B\x14\x15\n6\n\x04\x04\x01\x02\x01\x12\x03E\x02\x1e\x1a)\x20The\x20r\ - equirements\x20for\x20OAuth\x20credentials.\n\n\x0c\n\x05\x04\x01\x02\ - \x01\x06\x12\x03E\x02\x13\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03E\x14\ - \x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03E\x1c\x1d\n\x85\x01\n\x04\ - \x04\x01\x02\x02\x12\x03I\x02$\x1ax\x20If\x20true,\x20the\x20service\x20\ - accepts\x20API\x20keys\x20without\x20any\x20other\x20credential.\n\x20Th\ - is\x20flag\x20only\x20applies\x20to\x20HTTP\x20and\x20gRPC\x20requests.\ - \n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03I\x02\x06\n\x0c\n\x05\x04\x01\ - \x02\x02\x01\x12\x03I\x07\x1f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03I\"\ - #\nD\n\x04\x04\x01\x02\x03\x12\x03L\x02,\x1a7\x20Requirements\x20for\x20\ - additional\x20authentication\x20providers.\n\n\x0c\n\x05\x04\x01\x02\x03\ - \x04\x12\x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03L\x0b\x1a\n\ - \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03L\x1b'\n\x0c\n\x05\x04\x01\x02\x03\ - \x03\x12\x03L*+\nF\n\x02\x04\x02\x12\x04P\0e\x01\x1a:\x20Specifies\x20a\ - \x20location\x20to\x20extract\x20JWT\x20from\x20an\x20API\x20request.\n\ - \n\n\n\x03\x04\x02\x01\x12\x03P\x08\x13\n\x0c\n\x04\x04\x02\x08\0\x12\ - \x04Q\x02Z\x03\n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03Q\x08\n\n?\n\x04\x04\ - \x02\x02\0\x12\x03S\x04\x16\x1a2\x20Specifies\x20HTTP\x20header\x20name\ - \x20to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\ - \x03S\x04\n\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03S\x0b\x11\n\x0c\n\x05\ - \x04\x02\x02\0\x03\x12\x03S\x14\x15\nG\n\x04\x04\x02\x02\x01\x12\x03V\ - \x04\x15\x1a:\x20Specifies\x20URL\x20query\x20parameter\x20name\x20to\ - \x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03V\ - \x04\n\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03V\x0b\x10\n\x0c\n\x05\x04\ - \x02\x02\x01\x03\x12\x03V\x13\x14\n:\n\x04\x04\x02\x02\x02\x12\x03Y\x04\ - \x16\x1a-\x20Specifies\x20cookie\x20name\x20to\x20extract\x20JWT\x20toke\ - n.\n\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03Y\x04\n\n\x0c\n\x05\x04\x02\ - \x02\x02\x01\x12\x03Y\x0b\x11\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03Y\ - \x14\x15\n\xab\x03\n\x04\x04\x02\x02\x03\x12\x03d\x02\x1a\x1a\x9d\x03\ - \x20The\x20value\x20prefix.\x20The\x20value\x20format\x20is\x20\"value_p\ - refix{token}\"\n\x20Only\x20applies\x20to\x20\"in\"\x20header\x20type.\ - \x20Must\x20be\x20empty\x20for\x20\"in\"\x20query\x20type.\n\x20If\x20no\ - t\x20empty,\x20the\x20header\x20value\x20has\x20to\x20match\x20(case\x20\ - sensitive)\x20this\x20prefix.\n\x20If\x20not\x20matched,\x20JWT\x20will\ - \x20not\x20be\x20extracted.\x20If\x20matched,\x20JWT\x20will\x20be\n\x20\ - extracted\x20after\x20the\x20prefix\x20is\x20removed.\n\n\x20For\x20exam\ - ple,\x20for\x20\"Authorization:\x20Bearer\x20{JWT}\",\n\x20value_prefix=\ - \"Bearer\x20\"\x20with\x20a\x20space\x20at\x20the\x20end.\n\n\x0c\n\x05\ - \x04\x02\x02\x03\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\ - \x12\x03d\t\x15\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03d\x18\x19\n\xad\ - \x01\n\x02\x04\x03\x12\x05j\0\xb1\x01\x01\x1a\x9f\x01\x20Configuration\ - \x20for\x20an\x20authentication\x20provider,\x20including\x20support\x20\ - for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tools.ietf.org/html/d\ - raft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x03\x01\x12\x03j\x08\ - \x14\n\x92\x01\n\x04\x04\x03\x02\0\x12\x03o\x02\x10\x1a\x84\x01\x20The\ - \x20unique\x20identifier\x20of\x20the\x20auth\x20provider.\x20It\x20will\ - \x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.provider_id`.\n\n\ - \x20Example:\x20\"bookstore_auth\".\n\n\x0c\n\x05\x04\x03\x02\0\x05\x12\ - \x03o\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03o\t\x0b\n\x0c\n\x05\ - \x04\x03\x02\0\x03\x12\x03o\x0e\x0f\n\x95\x02\n\x04\x04\x03\x02\x01\x12\ - \x03w\x02\x14\x1a\x87\x02\x20Identifies\x20the\x20principal\x20that\x20i\ - ssued\x20the\x20JWT.\x20See\n\x20https://tools.ietf.org/html/draft-ietf-\ - oauth-json-web-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\x20or\x20\ - an\x20email\x20address.\n\n\x20Example:\x20https://securetoken.google.co\ - m\n\x20Example:\x201234567-compute@developer.gserviceaccount.com\n\n\x0c\ - \n\x05\x04\x03\x02\x01\x05\x12\x03w\x02\x08\n\x0c\n\x05\x04\x03\x02\x01\ - \x01\x12\x03w\t\x0f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03w\x12\x13\n\ - \xf6\x03\n\x04\x04\x03\x02\x02\x12\x04\x85\x01\x02\x16\x1a\xe7\x03\x20UR\ - L\x20of\x20the\x20provider's\x20public\x20key\x20set\x20to\x20validate\ - \x20signature\x20of\x20the\x20JWT.\x20See\n\x20[OpenID\n\x20Discovery](h\ - ttps://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetada\ - ta).\n\x20Optional\x20if\x20the\x20key\x20set\x20document:\n\x20\x20-\ - \x20can\x20be\x20retrieved\x20from\n\x20\x20\x20\x20[OpenID\n\x20\x20\ + nts\"\x9c\x01\n\x0cAuthProvider\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02i\ + d\x12\x16\n\x06issuer\x18\x02\x20\x01(\tR\x06issuer\x12\x19\n\x08jwks_ur\ + i\x18\x03\x20\x01(\tR\x07jwksUri\x12\x1c\n\taudiences\x18\x04\x20\x01(\t\ + R\taudiences\x12+\n\x11authorization_url\x18\x05\x20\x01(\tR\x10authoriz\ + ationUrl\">\n\x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\ + \x20\x01(\tR\x0fcanonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bpro\ + vider_id\x18\x01\x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\ + \x20\x01(\tR\taudiencesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.g\ + olang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\ + \x04GAPIJ\xc58\n\x07\x12\x05\x0f\0\xb7\x01\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\ + \t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ + \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0*\n\t\n\x02\x08\ + \x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ + \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ + \"\n\xc8\x03\n\x02\x04\0\x12\x04'\0/\x01\x1a\xbb\x03\x20`Authentication`\ + \x20defines\x20the\x20authentication\x20configuration\x20for\x20an\x20AP\ + I.\n\n\x20Example\x20for\x20an\x20API\x20targeted\x20for\x20external\x20\ + use:\n\n\x20\x20\x20\x20\x20name:\x20calendar.googleapis.com\n\x20\x20\ + \x20\x20\x20authentication:\n\x20\x20\x20\x20\x20\x20\x20providers:\n\ + \x20\x20\x20\x20\x20\x20\x20-\x20id:\x20google_calendar_auth\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20jwks_uri:\x20https://www.googleapis.com/oaut\ + h2/v1/certs\n\x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20https://secu\ + retoken.google.com\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\ + \x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20requirements:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20provider_\ + id:\x20google_calendar_auth\n\n\n\n\x03\x04\0\x01\x12\x03'\x08\x16\n\x9e\ + \x01\n\x04\x04\0\x02\0\x12\x03+\x02(\x1a\x90\x01\x20A\x20list\x20of\x20a\ + uthentication\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20me\ + thods.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20f\ + ollow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\ + \x12\x03+\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03+\x0b\x1d\n\x0c\n\x05\ + \x04\0\x02\0\x01\x12\x03+\x1e#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+&'\nQ\ + \n\x04\x04\0\x02\x01\x12\x03.\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20\ + authentication\x20providers\x20that\x20a\x20service\x20supports.\n\n\x0c\ + \n\x05\x04\0\x02\x01\x04\x12\x03.\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\ + \x12\x03.\x0b\x17\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03.\x18!\n\x0c\n\ + \x05\x04\0\x02\x01\x03\x12\x03.$%\n\xed\x02\n\x02\x04\x01\x12\x04:\0H\ + \x01\x1a\xe0\x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\ + \n\x20By\x20default,\x20if\x20a\x20method\x20has\x20any\x20authenticatio\ + n\x20requirements,\x20every\x20request\n\x20must\x20include\x20a\x20vali\ + d\x20credential\x20matching\x20one\x20of\x20the\x20requirements.\n\x20It\ + 's\x20an\x20error\x20to\x20include\x20more\x20than\x20one\x20kind\x20of\ + \x20credential\x20in\x20a\x20single\n\x20request.\n\n\x20If\x20a\x20meth\ + od\x20doesn't\x20have\x20any\x20auth\x20requirements,\x20request\x20cred\ + entials\x20will\x20be\n\x20ignored.\n\n\n\n\x03\x04\x01\x01\x12\x03:\x08\ + \x1a\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03>\x02\x16\x1a\x82\x01\x20Selec\ + ts\x20the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20R\ + efer\x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\ + \x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03>\x02\x08\ + \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03>\t\x11\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x03>\x14\x15\n6\n\x04\x04\x01\x02\x01\x12\x03A\x02\x1e\x1a)\x20\ + The\x20requirements\x20for\x20OAuth\x20credentials.\n\n\x0c\n\x05\x04\ + \x01\x02\x01\x06\x12\x03A\x02\x13\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\ + \x03A\x14\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03A\x1c\x1d\nR\n\x04\ + \x04\x01\x02\x02\x12\x03D\x02$\x1aE\x20If\x20true,\x20the\x20service\x20\ + accepts\x20API\x20keys\x20without\x20any\x20other\x20credential.\n\n\x0c\ + \n\x05\x04\x01\x02\x02\x05\x12\x03D\x02\x06\n\x0c\n\x05\x04\x01\x02\x02\ + \x01\x12\x03D\x07\x1f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03D\"#\nD\n\ + \x04\x04\x01\x02\x03\x12\x03G\x02,\x1a7\x20Requirements\x20for\x20additi\ + onal\x20authentication\x20providers.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\ + \x12\x03G\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03G\x0b\x1a\n\x0c\n\ + \x05\x04\x01\x02\x03\x01\x12\x03G\x1b'\n\x0c\n\x05\x04\x01\x02\x03\x03\ + \x12\x03G*+\n\xac\x01\n\x02\x04\x02\x12\x04M\0|\x01\x1a\x9f\x01\x20Confi\ + guration\x20for\x20an\x20authentication\x20provider,\x20including\x20sup\ + port\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tools.ietf.or\ + g/html/draft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x02\x01\x12\ + \x03M\x08\x14\n\x92\x01\n\x04\x04\x02\x02\0\x12\x03R\x02\x10\x1a\x84\x01\ + \x20The\x20unique\x20identifier\x20of\x20the\x20auth\x20provider.\x20It\ + \x20will\x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.provider_id\ + `.\n\n\x20Example:\x20\"bookstore_auth\".\n\n\x0c\n\x05\x04\x02\x02\0\ + \x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03R\t\x0b\n\x0c\ + \n\x05\x04\x02\x02\0\x03\x12\x03R\x0e\x0f\n\x95\x02\n\x04\x04\x02\x02\ + \x01\x12\x03Z\x02\x14\x1a\x87\x02\x20Identifies\x20the\x20principal\x20t\ + hat\x20issued\x20the\x20JWT.\x20See\n\x20https://tools.ietf.org/html/dra\ + ft-ietf-oauth-json-web-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\ + \x20or\x20an\x20email\x20address.\n\n\x20Example:\x20https://securetoken\ + .google.com\n\x20Example:\x201234567-compute@developer.gserviceaccount.c\ + om\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03Z\x02\x08\n\x0c\n\x05\x04\ + \x02\x02\x01\x01\x12\x03Z\t\x0f\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03Z\ + \x12\x13\n\xf4\x03\n\x04\x04\x02\x02\x02\x12\x03h\x02\x16\x1a\xe6\x03\ + \x20URL\x20of\x20the\x20provider's\x20public\x20key\x20set\x20to\x20vali\ + date\x20signature\x20of\x20the\x20JWT.\x20See\n\x20[OpenID\n\x20Discover\ + y](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMe\ + tadata).\n\x20Optional\x20if\x20the\x20key\x20set\x20document:\n\x20\x20\ + -\x20can\x20be\x20retrieved\x20from\n\x20\x20\x20\x20[OpenID\n\x20\x20\ \x20\x20Discovery](https://openid.net/specs/openid-connect-discovery-1_0\ - .html)\n\x20\x20\x20\x20of\x20the\x20issuer.\n\x20\x20-\x20can\x20be\x20\ - inferred\x20from\x20the\x20email\x20domain\x20of\x20the\x20issuer\x20(e.\ - g.\x20a\x20Google\n\x20\x20service\x20account).\n\n\x20Example:\x20https\ - ://www.googleapis.com/oauth2/v1/certs\n\n\r\n\x05\x04\x03\x02\x02\x05\ - \x12\x04\x85\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x85\x01\t\ - \x11\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\x85\x01\x14\x15\n\xee\x05\n\ - \x04\x04\x03\x02\x03\x12\x04\x98\x01\x02\x17\x1a\xdf\x05\x20The\x20list\ - \x20of\x20JWT\n\x20[audiences](https://tools.ietf.org/html/draft-ietf-oa\ - uth-json-web-token-32#section-4.1.3).\n\x20that\x20are\x20allowed\x20to\ - \x20access.\x20A\x20JWT\x20containing\x20any\x20of\x20these\x20audiences\ - \x20will\n\x20be\x20accepted.\x20When\x20this\x20setting\x20is\x20absent\ - ,\x20JWTs\x20with\x20audiences:\n\x20\x20\x20-\x20\"https://[service.nam\ - e]/[google.protobuf.Api.name]\"\n\x20\x20\x20-\x20\"https://[service.nam\ - e]/\"\n\x20will\x20be\x20accepted.\n\x20For\x20example,\x20if\x20no\x20a\ - udiences\x20are\x20in\x20the\x20setting,\x20LibraryService\x20API\x20wil\ - l\n\x20accept\x20JWTs\x20with\x20the\x20following\x20audiences:\n\x20\ - \x20\x20-\n\x20\x20\x20https://library-example.googleapis.com/google.exa\ - mple.library.v1.LibraryService\n\x20\x20\x20-\x20https://library-example\ - .googleapis.com/\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\x20bo\ - okstore_android.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleusercon\ - tent.com\n\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\x98\x01\x02\x08\n\r\n\ - \x05\x04\x03\x02\x03\x01\x12\x04\x98\x01\t\x12\n\r\n\x05\x04\x03\x02\x03\ - \x03\x12\x04\x98\x01\x15\x16\n\x99\x01\n\x04\x04\x03\x02\x04\x12\x04\x9c\ - \x01\x02\x1f\x1a\x8a\x01\x20Redirect\x20URL\x20if\x20JWT\x20token\x20is\ - \x20required\x20but\x20not\x20present\x20or\x20is\x20expired.\n\x20Imple\ - ment\x20authorizationUrl\x20of\x20securityDefinitions\x20in\x20OpenAPI\ - \x20spec.\n\n\r\n\x05\x04\x03\x02\x04\x05\x12\x04\x9c\x01\x02\x08\n\r\n\ - \x05\x04\x03\x02\x04\x01\x12\x04\x9c\x01\t\x1a\n\r\n\x05\x04\x03\x02\x04\ - \x03\x12\x04\x9c\x01\x1d\x1e\n\xd3\x05\n\x04\x04\x03\x02\x05\x12\x04\xb0\ - \x01\x02)\x1a\xc4\x05\x20Defines\x20the\x20locations\x20to\x20extract\ - \x20the\x20JWT.\x20\x20For\x20now\x20it\x20is\x20only\x20used\x20by\x20t\ - he\n\x20Cloud\x20Endpoints\x20to\x20store\x20the\x20OpenAPI\x20extension\ - \x20[x-google-jwt-locations]\n\x20(https://cloud.google.com/endpoints/do\ - cs/openapi/openapi-extensions#x-google-jwt-locations)\n\n\x20JWT\x20loca\ - tions\x20can\x20be\x20one\x20of\x20HTTP\x20headers,\x20URL\x20query\x20p\ - arameters\x20or\n\x20cookies.\x20The\x20rule\x20is\x20that\x20the\x20fir\ - st\x20match\x20wins.\n\n\x20If\x20not\x20specified,\x20\x20default\x20to\ - \x20use\x20following\x203\x20locations:\n\x20\x20\x20\x201)\x20Authoriza\ - tion:\x20Bearer\n\x20\x20\x20\x202)\x20x-goog-iap-jwt-assertion\n\x20\ - \x20\x20\x203)\x20access_token\x20query\x20parameter\n\n\x20Default\x20l\ - ocations\x20can\x20be\x20specified\x20as\x20followings:\n\x20\x20\x20\ - \x20jwt_locations:\n\x20\x20\x20\x20-\x20header:\x20Authorization\n\x20\ - \x20\x20\x20\x20\x20value_prefix:\x20\"Bearer\x20\"\n\x20\x20\x20\x20-\ - \x20header:\x20x-goog-iap-jwt-assertion\n\x20\x20\x20\x20-\x20query:\x20\ - access_token\n\n\r\n\x05\x04\x03\x02\x05\x04\x12\x04\xb0\x01\x02\n\n\r\n\ - \x05\x04\x03\x02\x05\x06\x12\x04\xb0\x01\x0b\x16\n\r\n\x05\x04\x03\x02\ - \x05\x01\x12\x04\xb0\x01\x17$\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xb0\ - \x01'(\n\xe7\x07\n\x02\x04\x04\x12\x06\xc5\x01\0\xce\x01\x01\x1a\xd8\x07\ - \x20OAuth\x20scopes\x20are\x20a\x20way\x20to\x20define\x20data\x20and\ - \x20permissions\x20on\x20data.\x20For\x20example,\n\x20there\x20are\x20s\ - copes\x20defined\x20for\x20\"Read-only\x20access\x20to\x20Google\x20Cale\ - ndar\"\x20and\n\x20\"Access\x20to\x20Cloud\x20Platform\".\x20Users\x20ca\ - n\x20consent\x20to\x20a\x20scope\x20for\x20an\x20application,\n\x20givin\ - g\x20it\x20permission\x20to\x20access\x20that\x20data\x20on\x20their\x20\ - behalf.\n\n\x20OAuth\x20scope\x20specifications\x20should\x20be\x20fairl\ - y\x20coarse\x20grained;\x20a\x20user\x20will\x20need\n\x20to\x20see\x20a\ - nd\x20understand\x20the\x20text\x20description\x20of\x20what\x20your\x20\ - scope\x20means.\n\n\x20In\x20most\x20cases:\x20use\x20one\x20or\x20at\ - \x20most\x20two\x20OAuth\x20scopes\x20for\x20an\x20entire\x20family\x20o\ - f\n\x20products.\x20If\x20your\x20product\x20has\x20multiple\x20APIs,\ - \x20you\x20should\x20probably\x20be\x20sharing\n\x20the\x20OAuth\x20scop\ - e\x20across\x20all\x20of\x20those\x20APIs.\n\n\x20When\x20you\x20need\ - \x20finer\x20grained\x20OAuth\x20consent\x20screens:\x20talk\x20with\x20\ - your\x20product\n\x20management\x20about\x20how\x20developers\x20will\ - \x20use\x20them\x20in\x20practice.\n\n\x20Please\x20note\x20that\x20even\ - \x20though\x20each\x20of\x20the\x20canonical\x20scopes\x20is\x20enough\ - \x20for\x20a\n\x20request\x20to\x20be\x20accepted\x20and\x20passed\x20to\ - \x20the\x20backend,\x20a\x20request\x20can\x20still\x20fail\n\x20due\x20\ - to\x20the\x20backend\x20requiring\x20additional\x20scopes\x20or\x20permi\ - ssions.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xc5\x01\x08\x19\n\xab\x02\n\ - \x04\x04\x04\x02\0\x12\x04\xcd\x01\x02\x1e\x1a\x9c\x02\x20The\x20list\ - \x20of\x20publicly\x20documented\x20OAuth\x20scopes\x20that\x20are\x20al\ - lowed\x20access.\x20An\n\x20OAuth\x20token\x20containing\x20any\x20of\ - \x20these\x20scopes\x20will\x20be\x20accepted.\n\n\x20Example:\n\n\x20\ - \x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/auth\ - /calendar,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20https://www.googleapis.com/auth/cale\ - ndar.read\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xcd\x01\x02\x08\n\r\n\ - \x05\x04\x04\x02\0\x01\x12\x04\xcd\x01\t\x19\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\xcd\x01\x1c\x1d\n\xaa\x01\n\x02\x04\x05\x12\x06\xd3\x01\0\xec\ - \x01\x01\x1a\x9b\x01\x20User-defined\x20authentication\x20requirements,\ - \x20including\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](h\ - ttps://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\x0b\ - \n\x03\x04\x05\x01\x12\x04\xd3\x01\x08\x17\n{\n\x04\x04\x05\x02\0\x12\ - \x04\xd9\x01\x02\x19\x1am\x20[id][google.api.AuthProvider.id]\x20from\ - \x20authentication\x20provider.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20p\ - rovider_id:\x20bookstore_auth\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xd9\ - \x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd9\x01\t\x14\n\r\n\x05\ - \x04\x05\x02\0\x03\x12\x04\xd9\x01\x17\x18\n\xc0\x06\n\x04\x04\x05\x02\ - \x01\x12\x04\xeb\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20This\x20will\x20be\ + .html\x20of\n\x20\x20\x20\x20the\x20issuer.\n\x20\x20-\x20can\x20be\x20i\ + nferred\x20from\x20the\x20email\x20domain\x20of\x20the\x20issuer\x20(e.g\ + .\x20a\x20Google\n\x20\x20service\x20account).\n\n\x20Example:\x20https:\ + //www.googleapis.com/oauth2/v1/certs\n\n\x0c\n\x05\x04\x02\x02\x02\x05\ + \x12\x03h\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03h\t\x11\n\x0c\n\ + \x05\x04\x02\x02\x02\x03\x12\x03h\x14\x15\n\xc1\x05\n\x04\x04\x02\x02\ + \x03\x12\x03w\x02\x17\x1a\xb3\x05\x20The\x20list\x20of\x20JWT\n\x20[audi\ + ences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#se\ + ction-4.1.3).\n\x20that\x20are\x20allowed\x20to\x20access.\x20A\x20JWT\ + \x20containing\x20any\x20of\x20these\x20audiences\x20will\n\x20be\x20acc\ + epted.\x20When\x20this\x20setting\x20is\x20absent,\x20only\x20JWTs\x20wi\ + th\x20audience\n\x20\"https://[Service_name][google.api.Service.name]/[A\ + PI_name][google.protobuf.Api.name]\"\n\x20will\x20be\x20accepted.\x20For\ + \x20example,\x20if\x20no\x20audiences\x20are\x20in\x20the\x20setting,\n\ + \x20LibraryService\x20API\x20will\x20only\x20accept\x20JWTs\x20with\x20t\ + he\x20following\x20audience\n\x20\"https://library-example.googleapis.co\ + m/google.example.library.v1.LibraryService\".\n\n\x20Example:\n\n\x20\ + \x20\x20\x20\x20audiences:\x20bookstore_android.apps.googleusercontent.c\ + om,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20boo\ + kstore_web.apps.googleusercontent.com\n\n\x0c\n\x05\x04\x02\x02\x03\x05\ + \x12\x03w\x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03w\t\x12\n\x0c\n\ + \x05\x04\x02\x02\x03\x03\x12\x03w\x15\x16\n\x98\x01\n\x04\x04\x02\x02\ + \x04\x12\x03{\x02\x1f\x1a\x8a\x01\x20Redirect\x20URL\x20if\x20JWT\x20tok\ + en\x20is\x20required\x20but\x20not\x20present\x20or\x20is\x20expired.\n\ + \x20Implement\x20authorizationUrl\x20of\x20securityDefinitions\x20in\x20\ + OpenAPI\x20spec.\n\n\x0c\n\x05\x04\x02\x02\x04\x05\x12\x03{\x02\x08\n\ + \x0c\n\x05\x04\x02\x02\x04\x01\x12\x03{\t\x1a\n\x0c\n\x05\x04\x02\x02\ + \x04\x03\x12\x03{\x1d\x1e\n\xe7\x07\n\x02\x04\x03\x12\x06\x90\x01\0\x99\ + \x01\x01\x1a\xd8\x07\x20OAuth\x20scopes\x20are\x20a\x20way\x20to\x20defi\ + ne\x20data\x20and\x20permissions\x20on\x20data.\x20For\x20example,\n\x20\ + there\x20are\x20scopes\x20defined\x20for\x20\"Read-only\x20access\x20to\ + \x20Google\x20Calendar\"\x20and\n\x20\"Access\x20to\x20Cloud\x20Platform\ + \".\x20Users\x20can\x20consent\x20to\x20a\x20scope\x20for\x20an\x20appli\ + cation,\n\x20giving\x20it\x20permission\x20to\x20access\x20that\x20data\ + \x20on\x20their\x20behalf.\n\n\x20OAuth\x20scope\x20specifications\x20sh\ + ould\x20be\x20fairly\x20coarse\x20grained;\x20a\x20user\x20will\x20need\ + \n\x20to\x20see\x20and\x20understand\x20the\x20text\x20description\x20of\ + \x20what\x20your\x20scope\x20means.\n\n\x20In\x20most\x20cases:\x20use\ + \x20one\x20or\x20at\x20most\x20two\x20OAuth\x20scopes\x20for\x20an\x20en\ + tire\x20family\x20of\n\x20products.\x20If\x20your\x20product\x20has\x20m\ + ultiple\x20APIs,\x20you\x20should\x20probably\x20be\x20sharing\n\x20the\ + \x20OAuth\x20scope\x20across\x20all\x20of\x20those\x20APIs.\n\n\x20When\ + \x20you\x20need\x20finer\x20grained\x20OAuth\x20consent\x20screens:\x20t\ + alk\x20with\x20your\x20product\n\x20management\x20about\x20how\x20develo\ + pers\x20will\x20use\x20them\x20in\x20practice.\n\n\x20Please\x20note\x20\ + that\x20even\x20though\x20each\x20of\x20the\x20canonical\x20scopes\x20is\ + \x20enough\x20for\x20a\n\x20request\x20to\x20be\x20accepted\x20and\x20pa\ + ssed\x20to\x20the\x20backend,\x20a\x20request\x20can\x20still\x20fail\n\ + \x20due\x20to\x20the\x20backend\x20requiring\x20additional\x20scopes\x20\ + or\x20permissions.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x90\x01\x08\x19\n\ + \xab\x02\n\x04\x04\x03\x02\0\x12\x04\x98\x01\x02\x1e\x1a\x9c\x02\x20The\ + \x20list\x20of\x20publicly\x20documented\x20OAuth\x20scopes\x20that\x20a\ + re\x20allowed\x20access.\x20An\n\x20OAuth\x20token\x20containing\x20any\ + \x20of\x20these\x20scopes\x20will\x20be\x20accepted.\n\n\x20Example:\n\n\ + \x20\x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/\ + auth/calendar,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20https://www.googleapis.com/auth/\ + calendar.read\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x98\x01\x02\x08\n\r\ + \n\x05\x04\x03\x02\0\x01\x12\x04\x98\x01\t\x19\n\r\n\x05\x04\x03\x02\0\ + \x03\x12\x04\x98\x01\x1c\x1d\n\xaa\x01\n\x02\x04\x04\x12\x06\x9e\x01\0\ + \xb7\x01\x01\x1a\x9b\x01\x20User-defined\x20authentication\x20requiremen\ + ts,\x20including\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)\ + ](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\ + \x0b\n\x03\x04\x04\x01\x12\x04\x9e\x01\x08\x17\n{\n\x04\x04\x04\x02\0\ + \x12\x04\xa4\x01\x02\x19\x1am\x20[id][google.api.AuthProvider.id]\x20fro\ + m\x20authentication\x20provider.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\ + provider_id:\x20bookstore_auth\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xa4\ + \x01\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa4\x01\t\x14\n\r\n\x05\ + \x04\x04\x02\0\x03\x12\x04\xa4\x01\x17\x18\n\xc0\x06\n\x04\x04\x04\x02\ + \x01\x12\x04\xb6\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20This\x20will\x20be\ \x20deprecated\x20soon,\x20once\x20AuthProvider.audiences\x20is\n\x20imp\ lemented\x20and\x20accepted\x20in\x20all\x20the\x20runtime\x20components\ .\n\n\x20The\x20list\x20of\x20JWT\n\x20[audiences](https://tools.ietf.or\ @@ -1901,19 +1049,40 @@ static file_descriptor_proto_data: &'static [u8] = b"\ v1.LibraryService\".\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\ \x20bookstore_android.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleuse\ - rcontent.com\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xeb\x01\x02\x08\n\r\ - \n\x05\x04\x05\x02\x01\x01\x12\x04\xeb\x01\t\x12\n\r\n\x05\x04\x05\x02\ - \x01\x03\x12\x04\xeb\x01\x15\x16b\x06proto3\ + rcontent.com\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb6\x01\x02\x08\n\r\ + \n\x05\x04\x04\x02\x01\x01\x12\x04\xb6\x01\t\x12\n\r\n\x05\x04\x04\x02\ + \x01\x03\x12\x04\xb6\x01\x15\x16b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(5); + messages.push(Authentication::generated_message_descriptor_data()); + messages.push(AuthenticationRule::generated_message_descriptor_data()); + messages.push(AuthProvider::generated_message_descriptor_data()); + messages.push(OAuthRequirements::generated_message_descriptor_data()); + messages.push(AuthRequirement::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/backend.rs b/googleapis-raw/src/api/backend.rs index 7149870..063f648 100644 --- a/googleapis-raw/src/api/backend.rs +++ b/googleapis-raw/src/api/backend.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,28 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/backend.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// `Backend` defines the backend configuration for a service. +// @@protoc_insertion_point(message:google.api.Backend) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Backend { // message fields - pub rules: ::protobuf::RepeatedField, + /// A list of API backend rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Backend.rules) + pub rules: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Backend.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Backend { @@ -43,51 +51,37 @@ impl Backend { ::std::default::Default::default() } - // repeated .google.api.BackendRule rules = 1; - - - pub fn get_rules(&self) -> &[BackendRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Backend| { &m.rules }, + |m: &mut Backend| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Backend", + fields, + oneofs, + ) } } impl ::protobuf::Message for Backend { + const NAME: &'static str = "Backend"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,115 +90,100 @@ impl ::protobuf::Message for Backend { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Backend { Backend::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Backend| { &m.rules }, - |m: &mut Backend| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Backend", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rules.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Backend { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Backend::new) + static instance: Backend = Backend { + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Backend { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Backend { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Backend").unwrap()).clone() } } -impl ::std::fmt::Debug for Backend { +impl ::std::fmt::Display for Backend { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Backend { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A backend rule provides configuration for an individual API element. +// @@protoc_insertion_point(message:google.api.BackendRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct BackendRule { // message fields + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.BackendRule.selector) pub selector: ::std::string::String, + /// The address of the API backend. + // @@protoc_insertion_point(field:google.api.BackendRule.address) pub address: ::std::string::String, + /// The number of seconds to wait for a response from a request. The default + /// deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + // @@protoc_insertion_point(field:google.api.BackendRule.deadline) pub deadline: f64, + /// Minimum deadline in seconds needed for this method. Calls having deadline + /// value lower than this will be rejected. + // @@protoc_insertion_point(field:google.api.BackendRule.min_deadline) pub min_deadline: f64, + /// The number of seconds to wait for the completion of a long running + /// operation. The default is no deadline. + // @@protoc_insertion_point(field:google.api.BackendRule.operation_deadline) pub operation_deadline: f64, - pub path_translation: BackendRule_PathTranslation, - pub protocol: ::std::string::String, - pub overrides_by_request_protocol: ::std::collections::HashMap<::std::string::String, BackendRule>, + // @@protoc_insertion_point(field:google.api.BackendRule.path_translation) + pub path_translation: ::protobuf::EnumOrUnknown, // message oneof groups - pub authentication: ::std::option::Option, + pub authentication: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.BackendRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a BackendRule { @@ -213,162 +192,44 @@ impl<'a> ::std::default::Default for &'a BackendRule { } } -#[derive(Clone,PartialEq,Debug)] -pub enum BackendRule_oneof_authentication { - jwt_audience(::std::string::String), - disable_auth(bool), -} - impl BackendRule { pub fn new() -> BackendRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // string address = 2; - - - pub fn get_address(&self) -> &str { - &self.address - } - pub fn clear_address(&mut self) { - self.address.clear(); - } - - // Param is passed by value, moved - pub fn set_address(&mut self, v: ::std::string::String) { - self.address = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_address(&mut self) -> &mut ::std::string::String { - &mut self.address - } - - // Take field - pub fn take_address(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.address, ::std::string::String::new()) - } - - // double deadline = 3; - - - pub fn get_deadline(&self) -> f64 { - self.deadline - } - pub fn clear_deadline(&mut self) { - self.deadline = 0.; - } - - // Param is passed by value, moved - pub fn set_deadline(&mut self, v: f64) { - self.deadline = v; - } - - // double min_deadline = 4; - - - pub fn get_min_deadline(&self) -> f64 { - self.min_deadline - } - pub fn clear_min_deadline(&mut self) { - self.min_deadline = 0.; - } - - // Param is passed by value, moved - pub fn set_min_deadline(&mut self, v: f64) { - self.min_deadline = v; - } - - // double operation_deadline = 5; - - - pub fn get_operation_deadline(&self) -> f64 { - self.operation_deadline - } - pub fn clear_operation_deadline(&mut self) { - self.operation_deadline = 0.; - } - - // Param is passed by value, moved - pub fn set_operation_deadline(&mut self, v: f64) { - self.operation_deadline = v; - } - - // .google.api.BackendRule.PathTranslation path_translation = 6; - - - pub fn get_path_translation(&self) -> BackendRule_PathTranslation { - self.path_translation - } - pub fn clear_path_translation(&mut self) { - self.path_translation = BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_path_translation(&mut self, v: BackendRule_PathTranslation) { - self.path_translation = v; - } - // string jwt_audience = 7; - - pub fn get_jwt_audience(&self) -> &str { + pub fn jwt_audience(&self) -> &str { match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(ref v)) => v, + ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(ref v)) => v, _ => "", } } + pub fn clear_jwt_audience(&mut self) { self.authentication = ::std::option::Option::None; } pub fn has_jwt_audience(&self) -> bool { match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(..)) => true, + ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_jwt_audience(&mut self, v: ::std::string::String) { - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(v)) + self.authentication = ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(v)) } // Mutable pointer to the field. pub fn mut_jwt_audience(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(_)) = self.authentication { + if let ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(_)) = self.authentication { } else { - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(::std::string::String::new())); + self.authentication = ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(::std::string::String::new())); } match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(ref mut v)) => v, + ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(ref mut v)) => v, _ => panic!(), } } @@ -377,7 +238,7 @@ impl BackendRule { pub fn take_jwt_audience(&mut self) -> ::std::string::String { if self.has_jwt_audience() { match self.authentication.take() { - ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(v)) => v, + ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(v)) => v, _ => panic!(), } } else { @@ -385,142 +246,87 @@ impl BackendRule { } } - // bool disable_auth = 8; - - - pub fn get_disable_auth(&self) -> bool { - match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::disable_auth(v)) => v, - _ => false, - } - } - pub fn clear_disable_auth(&mut self) { - self.authentication = ::std::option::Option::None; - } - - pub fn has_disable_auth(&self) -> bool { - match self.authentication { - ::std::option::Option::Some(BackendRule_oneof_authentication::disable_auth(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_disable_auth(&mut self, v: bool) { - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::disable_auth(v)) - } - - // string protocol = 9; - - - pub fn get_protocol(&self) -> &str { - &self.protocol - } - pub fn clear_protocol(&mut self) { - self.protocol.clear(); - } - - // Param is passed by value, moved - pub fn set_protocol(&mut self, v: ::std::string::String) { - self.protocol = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_protocol(&mut self) -> &mut ::std::string::String { - &mut self.protocol - } - - // Take field - pub fn take_protocol(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.protocol, ::std::string::String::new()) - } - - // repeated .google.api.BackendRule.OverridesByRequestProtocolEntry overrides_by_request_protocol = 10; - - - pub fn get_overrides_by_request_protocol(&self) -> &::std::collections::HashMap<::std::string::String, BackendRule> { - &self.overrides_by_request_protocol - } - pub fn clear_overrides_by_request_protocol(&mut self) { - self.overrides_by_request_protocol.clear(); - } - - // Param is passed by value, moved - pub fn set_overrides_by_request_protocol(&mut self, v: ::std::collections::HashMap<::std::string::String, BackendRule>) { - self.overrides_by_request_protocol = v; - } - - // Mutable pointer to the field. - pub fn mut_overrides_by_request_protocol(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, BackendRule> { - &mut self.overrides_by_request_protocol - } - - // Take field - pub fn take_overrides_by_request_protocol(&mut self) -> ::std::collections::HashMap<::std::string::String, BackendRule> { - ::std::mem::replace(&mut self.overrides_by_request_protocol, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &BackendRule| { &m.selector }, + |m: &mut BackendRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "address", + |m: &BackendRule| { &m.address }, + |m: &mut BackendRule| { &mut m.address }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "deadline", + |m: &BackendRule| { &m.deadline }, + |m: &mut BackendRule| { &mut m.deadline }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "min_deadline", + |m: &BackendRule| { &m.min_deadline }, + |m: &mut BackendRule| { &mut m.min_deadline }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_deadline", + |m: &BackendRule| { &m.operation_deadline }, + |m: &mut BackendRule| { &mut m.operation_deadline }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "path_translation", + |m: &BackendRule| { &m.path_translation }, + |m: &mut BackendRule| { &mut m.path_translation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "jwt_audience", + BackendRule::has_jwt_audience, + BackendRule::jwt_audience, + BackendRule::set_jwt_audience, + )); + oneofs.push(backend_rule::Authentication::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BackendRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for BackendRule { + const NAME: &'static str = "BackendRule"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.address)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.deadline = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.min_deadline = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.operation_deadline = tmp; + 18 => { + self.address = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.path_translation, 6, &mut self.unknown_fields)? + 25 => { + self.deadline = is.read_double()?; }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::jwt_audience(is.read_string()?)); + 33 => { + self.min_deadline = is.read_double()?; }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.authentication = ::std::option::Option::Some(BackendRule_oneof_authentication::disable_auth(is.read_bool()?)); + 41 => { + self.operation_deadline = is.read_double()?; }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.protocol)?; + 48 => { + self.path_translation = is.read_enum_or_unknown()?; }, - 10 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.overrides_by_request_protocol)?; + 58 => { + self.authentication = ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(is.read_string()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -529,7 +335,7 @@ impl ::protobuf::Message for BackendRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); @@ -538,37 +344,30 @@ impl ::protobuf::Message for BackendRule { my_size += ::protobuf::rt::string_size(2, &self.address); } if self.deadline != 0. { - my_size += 9; + my_size += 1 + 8; } if self.min_deadline != 0. { - my_size += 9; + my_size += 1 + 8; } if self.operation_deadline != 0. { - my_size += 9; - } - if self.path_translation != BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.path_translation); + my_size += 1 + 8; } - if !self.protocol.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.protocol); + if self.path_translation != ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(6, self.path_translation.value()); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(10, &self.overrides_by_request_protocol); if let ::std::option::Option::Some(ref v) = self.authentication { match v { - &BackendRule_oneof_authentication::jwt_audience(ref v) => { + &backend_rule::Authentication::JwtAudience(ref v) => { my_size += ::protobuf::rt::string_size(7, &v); }, - &BackendRule_oneof_authentication::disable_auth(v) => { - my_size += 2; - }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } @@ -584,408 +383,336 @@ impl ::protobuf::Message for BackendRule { if self.operation_deadline != 0. { os.write_double(5, self.operation_deadline)?; } - if self.path_translation != BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.path_translation))?; - } - if !self.protocol.is_empty() { - os.write_string(9, &self.protocol)?; + if self.path_translation != ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED) { + os.write_enum(6, ::protobuf::EnumOrUnknown::value(&self.path_translation))?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(10, &self.overrides_by_request_protocol, os)?; if let ::std::option::Option::Some(ref v) = self.authentication { match v { - &BackendRule_oneof_authentication::jwt_audience(ref v) => { + &backend_rule::Authentication::JwtAudience(ref v) => { os.write_string(7, v)?; }, - &BackendRule_oneof_authentication::disable_auth(v) => { - os.write_bool(8, v)?; - }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> BackendRule { BackendRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &BackendRule| { &m.selector }, - |m: &mut BackendRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "address", - |m: &BackendRule| { &m.address }, - |m: &mut BackendRule| { &mut m.address }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "deadline", - |m: &BackendRule| { &m.deadline }, - |m: &mut BackendRule| { &mut m.deadline }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "min_deadline", - |m: &BackendRule| { &m.min_deadline }, - |m: &mut BackendRule| { &mut m.min_deadline }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "operation_deadline", - |m: &BackendRule| { &m.operation_deadline }, - |m: &mut BackendRule| { &mut m.operation_deadline }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "path_translation", - |m: &BackendRule| { &m.path_translation }, - |m: &mut BackendRule| { &mut m.path_translation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "jwt_audience", - BackendRule::has_jwt_audience, - BackendRule::get_jwt_audience, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "disable_auth", - BackendRule::has_disable_auth, - BackendRule::get_disable_auth, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "protocol", - |m: &BackendRule| { &m.protocol }, - |m: &mut BackendRule| { &mut m.protocol }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "overrides_by_request_protocol", - |m: &BackendRule| { &m.overrides_by_request_protocol }, - |m: &mut BackendRule| { &mut m.overrides_by_request_protocol }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BackendRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BackendRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BackendRule::new) - } -} - -impl ::protobuf::Clear for BackendRule { fn clear(&mut self) { self.selector.clear(); self.address.clear(); self.deadline = 0.; self.min_deadline = 0.; self.operation_deadline = 0.; - self.path_translation = BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED; + self.path_translation = ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED); self.authentication = ::std::option::Option::None; - self.authentication = ::std::option::Option::None; - self.protocol.clear(); - self.overrides_by_request_protocol.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static BackendRule { + static instance: BackendRule = BackendRule { + selector: ::std::string::String::new(), + address: ::std::string::String::new(), + deadline: 0., + min_deadline: 0., + operation_deadline: 0., + path_translation: ::protobuf::EnumOrUnknown::from_i32(0), + authentication: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for BackendRule { +impl ::protobuf::MessageFull for BackendRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BackendRule").unwrap()).clone() + } +} + +impl ::std::fmt::Display for BackendRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for BackendRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum BackendRule_PathTranslation { - PATH_TRANSLATION_UNSPECIFIED = 0, - CONSTANT_ADDRESS = 1, - APPEND_PATH_TO_ADDRESS = 2, -} +/// Nested message and enums of message `BackendRule` +pub mod backend_rule { -impl ::protobuf::ProtobufEnum for BackendRule_PathTranslation { - fn value(&self) -> i32 { - *self as i32 + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.BackendRule.authentication) + pub enum Authentication { + // @@protoc_insertion_point(oneof_field:google.api.BackendRule.jwt_audience) + JwtAudience(::std::string::String), } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED), - 1 => ::std::option::Option::Some(BackendRule_PathTranslation::CONSTANT_ADDRESS), - 2 => ::std::option::Option::Some(BackendRule_PathTranslation::APPEND_PATH_TO_ADDRESS), - _ => ::std::option::Option::None + impl ::protobuf::Oneof for Authentication { + } + + impl ::protobuf::OneofFull for Authentication { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("authentication").unwrap()).clone() } } - fn values() -> &'static [Self] { - static values: &'static [BackendRule_PathTranslation] = &[ - BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED, - BackendRule_PathTranslation::CONSTANT_ADDRESS, - BackendRule_PathTranslation::APPEND_PATH_TO_ADDRESS, - ]; - values + impl Authentication { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("authentication") + } } + /// Path Translation specifies how to combine the backend address with the + /// request path in order to produce the appropriate forwarding URL for the + /// request. + /// + /// Path Translation is applicable only to HTTP-based backends. Backends which + /// do not accept requests over HTTP/HTTPS should leave `path_translation` + /// unspecified. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.BackendRule.PathTranslation) + pub enum PathTranslation { + // @@protoc_insertion_point(enum_value:google.api.BackendRule.PathTranslation.PATH_TRANSLATION_UNSPECIFIED) + PATH_TRANSLATION_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.BackendRule.PathTranslation.CONSTANT_ADDRESS) + CONSTANT_ADDRESS = 1, + // @@protoc_insertion_point(enum_value:google.api.BackendRule.PathTranslation.APPEND_PATH_TO_ADDRESS) + APPEND_PATH_TO_ADDRESS = 2, + } + + impl ::protobuf::Enum for PathTranslation { + const NAME: &'static str = "PathTranslation"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(PathTranslation::PATH_TRANSLATION_UNSPECIFIED), + 1 => ::std::option::Option::Some(PathTranslation::CONSTANT_ADDRESS), + 2 => ::std::option::Option::Some(PathTranslation::APPEND_PATH_TO_ADDRESS), + _ => ::std::option::Option::None + } + } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("BackendRule.PathTranslation", file_descriptor_proto()) - }) + fn from_str(str: &str) -> ::std::option::Option { + match str { + "PATH_TRANSLATION_UNSPECIFIED" => ::std::option::Option::Some(PathTranslation::PATH_TRANSLATION_UNSPECIFIED), + "CONSTANT_ADDRESS" => ::std::option::Option::Some(PathTranslation::CONSTANT_ADDRESS), + "APPEND_PATH_TO_ADDRESS" => ::std::option::Option::Some(PathTranslation::APPEND_PATH_TO_ADDRESS), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [PathTranslation] = &[ + PathTranslation::PATH_TRANSLATION_UNSPECIFIED, + PathTranslation::CONSTANT_ADDRESS, + PathTranslation::APPEND_PATH_TO_ADDRESS, + ]; } -} -impl ::std::marker::Copy for BackendRule_PathTranslation { -} + impl ::protobuf::EnumFull for PathTranslation { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("BackendRule.PathTranslation").unwrap()).clone() + } -impl ::std::default::Default for BackendRule_PathTranslation { - fn default() -> Self { - BackendRule_PathTranslation::PATH_TRANSLATION_UNSPECIFIED + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } + + impl ::std::default::Default for PathTranslation { + fn default() -> Self { + PathTranslation::PATH_TRANSLATION_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for BackendRule_PathTranslation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl PathTranslation { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("BackendRule.PathTranslation") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x18google/api/backend.proto\x12\ngoogle.api\"8\n\x07Backend\x12-\n\ \x05rules\x18\x01\x20\x03(\x0b2\x17.google.api.BackendRuleR\x05rules\"\ - \xcc\x05\n\x0bBackendRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ + \xa3\x03\n\x0bBackendRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ elector\x12\x18\n\x07address\x18\x02\x20\x01(\tR\x07address\x12\x1a\n\ - \x08deadline\x18\x03\x20\x01(\x01R\x08deadline\x12%\n\x0cmin_deadline\ - \x18\x04\x20\x01(\x01R\x0bminDeadlineB\x02\x18\x01\x12-\n\x12operation_d\ - eadline\x18\x05\x20\x01(\x01R\x11operationDeadline\x12R\n\x10path_transl\ - ation\x18\x06\x20\x01(\x0e2'.google.api.BackendRule.PathTranslationR\x0f\ - pathTranslation\x12#\n\x0cjwt_audience\x18\x07\x20\x01(\tH\0R\x0bjwtAudi\ - ence\x12#\n\x0cdisable_auth\x18\x08\x20\x01(\x08H\0R\x0bdisableAuth\x12\ - \x1a\n\x08protocol\x18\t\x20\x01(\tR\x08protocol\x12z\n\x1doverrides_by_\ - request_protocol\x18\n\x20\x03(\x0b27.google.api.BackendRule.OverridesBy\ - RequestProtocolEntryR\x1aoverridesByRequestProtocol\x1af\n\x1fOverridesB\ - yRequestProtocolEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\ - \x05value\x18\x02\x20\x01(\x0b2\x17.google.api.BackendRuleR\x05value:\ - \x028\x01\"e\n\x0fPathTranslation\x12\x20\n\x1cPATH_TRANSLATION_UNSPECIF\ - IED\x10\0\x12\x14\n\x10CONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16APPEND_PATH\ - _TO_ADDRESS\x10\x02B\x10\n\x0eauthenticationBn\n\x0ecom.google.apiB\x0cB\ - ackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfi\ - g;serviceconfig\xa2\x02\x04GAPIJ\xec3\n\x07\x12\x05\x0e\0\xb8\x01\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ - \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ - \0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ - \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\nH\n\x02\x04\0\x12\x04\x19\0\x1e\x01\x1a<\x20`Back\ - end`\x20defines\x20the\x20backend\x20configuration\x20for\x20a\x20servic\ - e.\n\n\n\n\x03\x04\0\x01\x12\x03\x19\x08\x0f\n\x9b\x01\n\x04\x04\0\x02\0\ - \x12\x03\x1d\x02!\x1a\x8d\x01\x20A\x20list\x20of\x20API\x20backend\x20ru\ - les\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\x20**NOT\ - E:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\"last\x20\ - one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1d\x02\n\ - \n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1d\x0b\x16\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03\x1d\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x1f\x20\ - \nS\n\x02\x04\x01\x12\x05!\0\xb8\x01\x01\x1aF\x20A\x20backend\x20rule\ - \x20provides\x20configuration\x20for\x20an\x20individual\x20API\x20eleme\ - nt.\n\n\n\n\x03\x04\x01\x01\x12\x03!\x08\x13\n\xcd\x02\n\x04\x04\x01\x04\ - \0\x12\x04)\x02Y\x03\x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20\ - how\x20to\x20combine\x20the\x20backend\x20address\x20with\x20the\n\x20re\ - quest\x20path\x20in\x20order\x20to\x20produce\x20the\x20appropriate\x20f\ - orwarding\x20URL\x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\ - \x20is\x20applicable\x20only\x20to\x20HTTP-based\x20backends.\x20Backend\ - s\x20which\n\x20do\x20not\x20accept\x20requests\x20over\x20HTTP/HTTPS\ - \x20should\x20leave\x20`path_translation`\n\x20unspecified.\n\n\x0c\n\ - \x05\x04\x01\x04\0\x01\x12\x03)\x07\x16\n\r\n\x06\x04\x01\x04\0\x02\0\ - \x12\x03*\x04%\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03*\x04\x20\n\ - \x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03*#$\n\x95\x07\n\x06\x04\x01\ - \x04\0\x02\x01\x12\x03C\x04\x19\x1a\x85\x07\x20Use\x20the\x20backend\x20\ - address\x20as-is,\x20with\x20no\x20modification\x20to\x20the\x20path.\ - \x20If\x20the\n\x20URL\x20pattern\x20contains\x20variables,\x20the\x20va\ - riable\x20names\x20and\x20values\x20will\x20be\n\x20appended\x20to\x20th\ - e\x20query\x20string.\x20If\x20a\x20query\x20string\x20parameter\x20and\ - \x20a\x20URL\n\x20pattern\x20variable\x20have\x20the\x20same\x20name,\ - \x20this\x20may\x20result\x20in\x20duplicate\x20keys\x20in\n\x20the\x20q\ - uery\x20string.\n\n\x20#\x20Examples\n\n\x20Given\x20the\x20following\ - \x20operation\x20config:\n\n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\ - \x20\x20\x20\x20\x20\x20/api/company/{cid}/user/{uid}\n\x20\x20\x20\x20\ - \x20Backend\x20address:\x20\x20\x20\x20https://example.cloudfunctions.ne\ - t/getUser\n\n\x20Requests\x20to\x20the\x20following\x20request\x20paths\ - \x20will\x20call\x20the\x20backend\x20at\x20the\n\x20translated\x20path:\ + \x08deadline\x18\x03\x20\x01(\x01R\x08deadline\x12!\n\x0cmin_deadline\ + \x18\x04\x20\x01(\x01R\x0bminDeadline\x12-\n\x12operation_deadline\x18\ + \x05\x20\x01(\x01R\x11operationDeadline\x12R\n\x10path_translation\x18\ + \x06\x20\x01(\x0e2'.google.api.BackendRule.PathTranslationR\x0fpathTrans\ + lation\x12#\n\x0cjwt_audience\x18\x07\x20\x01(\tH\0R\x0bjwtAudience\"e\n\ + \x0fPathTranslation\x12\x20\n\x1cPATH_TRANSLATION_UNSPECIFIED\x10\0\x12\ + \x14\n\x10CONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16APPEND_PATH_TO_ADDRESS\ + \x10\x02B\x10\n\x0eauthenticationBn\n\x0ecom.google.apiB\x0cBackendProto\ + P\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceco\ + nfig\xa2\x02\x04GAPIJ\xb0#\n\x06\x12\x04\x0f\0~\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\ + \\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\ + \n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\ + \x08\x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\ + \x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\ + \x17\0\"\nH\n\x02\x04\0\x12\x04\x1a\0\x1f\x01\x1a<\x20`Backend`\x20defin\ + es\x20the\x20backend\x20configuration\x20for\x20a\x20service.\n\n\n\n\ + \x03\x04\0\x01\x12\x03\x1a\x08\x0f\n\x9b\x01\n\x04\x04\0\x02\0\x12\x03\ + \x1e\x02!\x1a\x8d\x01\x20A\x20list\x20of\x20API\x20backend\x20rules\x20t\ + hat\x20apply\x20to\x20individual\x20API\x20methods.\n\n\x20**NOTE:**\x20\ + All\x20service\x20configuration\x20rules\x20follow\x20\"last\x20one\x20w\ + ins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1e\x02\n\n\x0c\n\ + \x05\x04\0\x02\0\x06\x12\x03\x1e\x0b\x16\n\x0c\n\x05\x04\0\x02\0\x01\x12\ + \x03\x1e\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1e\x1f\x20\nR\n\ + \x02\x04\x01\x12\x04\"\0~\x01\x1aF\x20A\x20backend\x20rule\x20provides\ + \x20configuration\x20for\x20an\x20individual\x20API\x20element.\n\n\n\n\ + \x03\x04\x01\x01\x12\x03\"\x08\x13\n\xcd\x02\n\x04\x04\x01\x04\0\x12\x04\ + *\x02Z\x03\x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20how\x20to\ + \x20combine\x20the\x20backend\x20address\x20with\x20the\n\x20request\x20\ + path\x20in\x20order\x20to\x20produce\x20the\x20appropriate\x20forwarding\ + \x20URL\x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\x20is\x20\ + applicable\x20only\x20to\x20HTTP-based\x20backends.\x20Backends\x20which\ + \n\x20do\x20not\x20accept\x20requests\x20over\x20HTTP/HTTPS\x20should\ + \x20leave\x20`path_translation`\n\x20unspecified.\n\n\x0c\n\x05\x04\x01\ + \x04\0\x01\x12\x03*\x07\x16\n\r\n\x06\x04\x01\x04\0\x02\0\x12\x03+\x04%\ + \n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03+\x04\x20\n\x0e\n\x07\x04\ + \x01\x04\0\x02\0\x02\x12\x03+#$\n\x95\x07\n\x06\x04\x01\x04\0\x02\x01\ + \x12\x03D\x04\x19\x1a\x85\x07\x20Use\x20the\x20backend\x20address\x20as-\ + is,\x20with\x20no\x20modification\x20to\x20the\x20path.\x20If\x20the\n\ + \x20URL\x20pattern\x20contains\x20variables,\x20the\x20variable\x20names\ + \x20and\x20values\x20will\x20be\n\x20appended\x20to\x20the\x20query\x20s\ + tring.\x20If\x20a\x20query\x20string\x20parameter\x20and\x20a\x20URL\n\ + \x20pattern\x20variable\x20have\x20the\x20same\x20name,\x20this\x20may\ + \x20result\x20in\x20duplicate\x20keys\x20in\n\x20the\x20query\x20string.\ + \n\n\x20#\x20Examples\n\n\x20Given\x20the\x20following\x20operation\x20c\ + onfig:\n\n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\ + \x20\x20/api/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20ad\ + dress:\x20\x20\x20\x20https://example.cloudfunctions.net/getUser\n\n\x20\ + Requests\x20to\x20the\x20following\x20request\x20paths\x20will\x20call\ + \x20the\x20backend\x20at\x20the\n\x20translated\x20path:\n\n\x20\x20\x20\ + \x20\x20Request\x20path:\x20/api/company/widgetworks/user/johndoe\n\x20\ + \x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfu\ + nctions.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\x20\x20\x20\x20R\ + equest\x20path:\x20/api/company/widgetworks/user/johndoe?timezone=EST\n\ + \x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.clo\ + udfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe\n\n\x0e\ + \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03D\x04\x14\n\x0e\n\x07\x04\x01\ + \x04\0\x02\x01\x02\x12\x03D\x17\x18\n\x82\x05\n\x06\x04\x01\x04\0\x02\ + \x02\x12\x03Y\x04\x1f\x1a\xf2\x04\x20The\x20request\x20path\x20will\x20b\ + e\x20appended\x20to\x20the\x20backend\x20address.\n\n\x20#\x20Examples\n\ + \n\x20Given\x20the\x20following\x20operation\x20config:\n\n\x20\x20\x20\ + \x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\x20\x20/api/company/{cid\ + }/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\x20\x20\x20htt\ + ps://example.appspot.com\n\n\x20Requests\x20to\x20the\x20following\x20re\ + quest\x20paths\x20will\x20call\x20the\x20backend\x20at\x20the\n\x20trans\ + lated\x20path:\n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company/w\ + idgetworks/user/johndoe\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\ + \x20\x20https://example.appspot.com/api/company/widgetworks/user/johndoe\ \n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company/widgetworks/use\ - r/johndoe\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://\ - example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\ - \x20\x20\x20\x20Request\x20path:\x20/api/company/widgetworks/user/johndo\ - e?timezone=EST\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20htt\ - ps://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid\ - =johndoe\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03C\x04\x14\n\x0e\ - \n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03C\x17\x18\n\x82\x05\n\x06\x04\ - \x01\x04\0\x02\x02\x12\x03X\x04\x1f\x1a\xf2\x04\x20The\x20request\x20pat\ - h\x20will\x20be\x20appended\x20to\x20the\x20backend\x20address.\n\n\x20#\ - \x20Examples\n\n\x20Given\x20the\x20following\x20operation\x20config:\n\ - \n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\x20\x20/ap\ - i/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\ - \x20\x20\x20https://example.appspot.com\n\n\x20Requests\x20to\x20the\x20\ - following\x20request\x20paths\x20will\x20call\x20the\x20backend\x20at\ - \x20the\n\x20translated\x20path:\n\n\x20\x20\x20\x20\x20Request\x20path:\ - \x20/api/company/widgetworks/user/johndoe\n\x20\x20\x20\x20\x20Translate\ - d:\n\x20\x20\x20\x20\x20https://example.appspot.com/api/company/widgetwo\ - rks/user/johndoe\n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company\ - /widgetworks/user/johndoe?timezone=EST\n\x20\x20\x20\x20\x20Translated:\ - \n\x20\x20\x20\x20\x20https://example.appspot.com/api/company/widgetwork\ - s/user/johndoe?timezone=EST\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ - \x03X\x04\x1a\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03X\x1d\x1e\n\ - \x91\x01\n\x04\x04\x01\x02\0\x12\x03_\x02\x16\x1a\x83\x01\x20Selects\x20\ - the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\ - \x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\x20sy\ - ntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03_\x02\x08\n\ - \x0c\n\x05\x04\x01\x02\0\x01\x12\x03_\t\x11\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x03_\x14\x15\n\x99\x05\n\x04\x04\x01\x02\x01\x12\x03u\x02\x15\ - \x1a\x8b\x05\x20The\x20address\x20of\x20the\x20API\x20backend.\n\n\x20Th\ - e\x20scheme\x20is\x20used\x20to\x20determine\x20the\x20backend\x20protoc\ - ol\x20and\x20security.\n\x20The\x20following\x20schemes\x20are\x20accept\ - ed:\n\n\x20\x20\x20\x20SCHEME\x20\x20\x20\x20\x20\x20\x20\x20PROTOCOL\ - \x20\x20\x20\x20SECURITY\n\x20\x20\x20\x20http://\x20\x20\x20\x20\x20\ - \x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20None\n\x20\x20\x20\x20https:\ - //\x20\x20\x20\x20\x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20TLS\n\x20\ - \x20\x20\x20grpc://\x20\x20\x20\x20\x20\x20\x20gRPC\x20\x20\x20\x20\x20\ - \x20\x20\x20None\n\x20\x20\x20\x20grpcs://\x20\x20\x20\x20\x20\x20gRPC\ - \x20\x20\x20\x20\x20\x20\x20\x20TLS\n\n\x20It\x20is\x20recommended\x20to\ - \x20explicitly\x20include\x20a\x20scheme.\x20Leaving\x20out\x20the\x20sc\ - heme\n\x20may\x20cause\x20constrasting\x20behaviors\x20across\x20platfor\ - ms.\n\n\x20If\x20the\x20port\x20is\x20unspecified,\x20the\x20default\x20\ - is:\n\x20-\x2080\x20for\x20schemes\x20without\x20TLS\n\x20-\x20443\x20fo\ - r\x20schemes\x20with\x20TLS\n\n\x20For\x20HTTP\x20backends,\x20use\x20[p\ - rotocol][google.api.BackendRule.protocol]\n\x20to\x20specify\x20the\x20p\ - rotocol\x20version.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03u\x02\x08\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03u\t\x10\n\x0c\n\x05\x04\x01\x02\ - \x01\x03\x12\x03u\x13\x14\n\x9a\x01\n\x04\x04\x01\x02\x02\x12\x03y\x02\ - \x16\x1a\x8c\x01\x20The\x20number\x20of\x20seconds\x20to\x20wait\x20for\ - \x20a\x20response\x20from\x20a\x20request.\x20The\x20default\n\x20varies\ - \x20based\x20on\x20the\x20request\x20protocol\x20and\x20deployment\x20en\ - vironment.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03y\x02\x08\n\x0c\n\ - \x05\x04\x01\x02\x02\x01\x12\x03y\t\x11\n\x0c\n\x05\x04\x01\x02\x02\x03\ - \x12\x03y\x14\x15\n&\n\x04\x04\x01\x02\x03\x12\x03|\x02.\x1a\x19\x20Depr\ - ecated,\x20do\x20not\x20use.\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03|\ - \x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03|\t\x15\n\x0c\n\x05\x04\ - \x01\x02\x03\x03\x12\x03|\x18\x19\n\x0c\n\x05\x04\x01\x02\x03\x08\x12\ - \x03|\x1a-\n\r\n\x06\x04\x01\x02\x03\x08\x03\x12\x03|\x1b,\nz\n\x04\x04\ - \x01\x02\x04\x12\x04\x80\x01\x02\x20\x1al\x20The\x20number\x20of\x20seco\ - nds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20runn\ - ing\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\r\n\ - \x05\x04\x01\x02\x04\x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\x01\x02\ - \x04\x01\x12\x04\x80\x01\t\x1b\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x80\ - \x01\x1e\x1f\n\x0c\n\x04\x04\x01\x02\x05\x12\x04\x82\x01\x02'\n\r\n\x05\ - \x04\x01\x02\x05\x06\x12\x04\x82\x01\x02\x11\n\r\n\x05\x04\x01\x02\x05\ - \x01\x12\x04\x82\x01\x12\"\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x82\x01\ - %&\n\xc0\x04\n\x04\x04\x01\x08\0\x12\x06\x92\x01\x02\x9d\x01\x03\x1a\xaf\ - \x04\x20Authentication\x20settings\x20used\x20by\x20the\x20backend.\n\n\ - \x20These\x20are\x20typically\x20used\x20to\x20provide\x20service\x20man\ - agement\x20functionality\x20to\n\x20a\x20backend\x20served\x20on\x20a\ - \x20publicly-routable\x20URL.\x20The\x20`authentication`\n\x20details\ - \x20should\x20match\x20the\x20authentication\x20behavior\x20used\x20by\ - \x20the\x20backend.\n\n\x20For\x20example,\x20specifying\x20`jwt_audienc\ - e`\x20implies\x20that\x20the\x20backend\x20expects\n\x20authentication\ - \x20via\x20a\x20JWT.\n\n\x20When\x20authentication\x20is\x20unspecified,\ - \x20the\x20resulting\x20behavior\x20is\x20the\x20same\n\x20as\x20`disabl\ - e_auth`\x20set\x20to\x20`true`.\n\n\x20Refer\x20to\x20https://developers\ - .google.com/identity/protocols/OpenIDConnect\x20for\n\x20JWT\x20ID\x20to\ - ken.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\x92\x01\x08\x16\n\xb4\x01\n\ - \x04\x04\x01\x02\x06\x12\x04\x96\x01\x04\x1c\x1a\xa5\x01\x20The\x20JWT\ - \x20audience\x20is\x20used\x20when\x20generating\x20a\x20JWT\x20ID\x20to\ - ken\x20for\x20the\x20backend.\n\x20This\x20ID\x20token\x20will\x20be\x20\ - added\x20in\x20the\x20HTTP\x20\"authorization\"\x20header,\x20and\x20sen\ - t\n\x20to\x20the\x20backend.\n\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\x96\ - \x01\x04\n\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\x96\x01\x0b\x17\n\r\n\ - \x05\x04\x01\x02\x06\x03\x12\x04\x96\x01\x1a\x1b\n\x99\x02\n\x04\x04\x01\ - \x02\x07\x12\x04\x9c\x01\x04\x1a\x1a\x8a\x02\x20When\x20disable_auth\x20\ - is\x20true,\x20a\x20JWT\x20ID\x20token\x20won't\x20be\x20generated\x20an\ - d\x20the\n\x20original\x20\"Authorization\"\x20HTTP\x20header\x20will\ - \x20be\x20preserved.\x20If\x20the\x20header\x20is\n\x20used\x20to\x20car\ - ry\x20the\x20original\x20token\x20and\x20is\x20expected\x20by\x20the\x20\ - backend,\x20this\n\x20field\x20must\x20be\x20set\x20to\x20true\x20to\x20\ - preserve\x20the\x20header.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\x9c\ - \x01\x04\x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\x9c\x01\t\x15\n\r\n\ - \x05\x04\x01\x02\x07\x03\x12\x04\x9c\x01\x18\x19\n\xf5\x05\n\x04\x04\x01\ - \x02\x08\x12\x04\xb4\x01\x02\x16\x1a\xe6\x05\x20The\x20protocol\x20used\ - \x20for\x20sending\x20a\x20request\x20to\x20the\x20backend.\n\x20The\x20\ - supported\x20values\x20are\x20\"http/1.1\"\x20and\x20\"h2\".\n\n\x20The\ - \x20default\x20value\x20is\x20inferred\x20from\x20the\x20scheme\x20in\ - \x20the\n\x20[address][google.api.BackendRule.address]\x20field:\n\n\x20\ - \x20\x20\x20SCHEME\x20\x20\x20\x20\x20\x20\x20\x20PROTOCOL\n\x20\x20\x20\ - \x20http://\x20\x20\x20\x20\x20\x20\x20http/1.1\n\x20\x20\x20\x20https:/\ - /\x20\x20\x20\x20\x20\x20http/1.1\n\x20\x20\x20\x20grpc://\x20\x20\x20\ - \x20\x20\x20\x20h2\n\x20\x20\x20\x20grpcs://\x20\x20\x20\x20\x20\x20h2\n\ - \n\x20For\x20secure\x20HTTP\x20backends\x20(https://)\x20that\x20support\ - \x20HTTP/2,\x20set\x20this\x20field\n\x20to\x20\"h2\"\x20for\x20improved\ - \x20performance.\n\n\x20Configuring\x20this\x20field\x20to\x20non-defaul\ - t\x20values\x20is\x20only\x20supported\x20for\x20secure\n\x20HTTP\x20bac\ - kends.\x20This\x20field\x20will\x20be\x20ignored\x20for\x20all\x20other\ - \x20backends.\n\n\x20See\n\x20https://www.iana.org/assignments/tls-exten\ - siontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids\n\x20fo\ - r\x20more\x20details\x20on\x20the\x20supported\x20values.\n\n\r\n\x05\ - \x04\x01\x02\x08\x05\x12\x04\xb4\x01\x02\x08\n\r\n\x05\x04\x01\x02\x08\ - \x01\x12\x04\xb4\x01\t\x11\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xb4\x01\ - \x14\x15\nI\n\x04\x04\x01\x02\t\x12\x04\xb7\x01\x02>\x1a;\x20The\x20map\ - \x20between\x20request\x20protocol\x20and\x20the\x20backend\x20address.\ - \n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xb7\x01\x02\x1a\n\r\n\x05\x04\x01\ - \x02\t\x01\x12\x04\xb7\x01\x1b8\n\r\n\x05\x04\x01\x02\t\x03\x12\x04\xb7\ - \x01;=b\x06proto3\ + r/johndoe?timezone=EST\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\ + \x20\x20https://example.appspot.com/api/company/widgetworks/user/johndoe\ + ?timezone=EST\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03Y\x04\x1a\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03Y\x1d\x1e\n\x90\x01\n\x04\ + \x04\x01\x02\0\x12\x03_\x02\x16\x1a\x82\x01\x20Selects\x20the\x20methods\ + \x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selec\ + tor][google.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\ + \n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03_\x02\x08\n\x0c\n\x05\x04\x01\ + \x02\0\x01\x12\x03_\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03_\x14\x15\ + \n.\n\x04\x04\x01\x02\x01\x12\x03b\x02\x15\x1a!\x20The\x20address\x20of\ + \x20the\x20API\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03b\ + \x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03b\t\x10\n\x0c\n\x05\x04\ + \x01\x02\x01\x03\x12\x03b\x13\x14\n\xa6\x01\n\x04\x04\x01\x02\x02\x12\ + \x03f\x02\x16\x1a\x98\x01\x20The\x20number\x20of\x20seconds\x20to\x20wai\ + t\x20for\x20a\x20response\x20from\x20a\x20request.\x20\x20The\x20default\ + \n\x20deadline\x20for\x20gRPC\x20is\x20infinite\x20(no\x20deadline)\x20a\ + nd\x20HTTP\x20requests\x20is\x205\x20seconds.\n\n\x0c\n\x05\x04\x01\x02\ + \x02\x05\x12\x03f\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03f\t\x11\ + \n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03f\x14\x15\n\x81\x01\n\x04\x04\ + \x01\x02\x03\x12\x03j\x02\x1a\x1at\x20Minimum\x20deadline\x20in\x20secon\ + ds\x20needed\x20for\x20this\x20method.\x20Calls\x20having\x20deadline\n\ + \x20value\x20lower\x20than\x20this\x20will\x20be\x20rejected.\n\n\x0c\n\ + \x05\x04\x01\x02\x03\x05\x12\x03j\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\ + \x01\x12\x03j\t\x15\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03j\x18\x19\ny\ + \n\x04\x04\x01\x02\x04\x12\x03n\x02\x20\x1al\x20The\x20number\x20of\x20s\ + econds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20r\ + unning\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\ + \x0c\n\x05\x04\x01\x02\x04\x05\x12\x03n\x02\x08\n\x0c\n\x05\x04\x01\x02\ + \x04\x01\x12\x03n\t\x1b\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03n\x1e\x1f\ + \n\x0b\n\x04\x04\x01\x02\x05\x12\x03p\x02'\n\x0c\n\x05\x04\x01\x02\x05\ + \x06\x12\x03p\x02\x11\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03p\x12\"\n\ + \x0c\n\x05\x04\x01\x02\x05\x03\x12\x03p%&\n\xf6\x02\n\x04\x04\x01\x08\0\ + \x12\x04z\x02}\x03\x1a\xe7\x02\x20Authentication\x20settings\x20used\x20\ + by\x20the\x20backend.\n\n\x20These\x20are\x20typically\x20used\x20to\x20\ + provide\x20service\x20management\x20functionality\x20to\n\x20a\x20backen\ + d\x20served\x20on\x20a\x20publicly-routable\x20URL.\x20The\x20`authentic\ + ation`\n\x20details\x20should\x20match\x20the\x20authentication\x20behav\ + ior\x20used\x20by\x20the\x20backend.\n\n\x20For\x20example,\x20specifyin\ + g\x20`jwt_audience`\x20implies\x20that\x20the\x20backend\x20expects\n\ + \x20authentication\x20via\x20a\x20JWT.\n\n\x0c\n\x05\x04\x01\x08\0\x01\ + \x12\x03z\x08\x16\nW\n\x04\x04\x01\x02\x06\x12\x03|\x04\x1c\x1aJ\x20The\ + \x20JWT\x20audience\x20is\x20used\x20when\x20generating\x20a\x20JWT\x20i\ + d\x20token\x20for\x20the\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x06\x05\ + \x12\x03|\x04\n\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03|\x0b\x17\n\x0c\n\ + \x05\x04\x01\x02\x06\x03\x12\x03|\x1a\x1bb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Backend::generated_message_descriptor_data()); + messages.push(BackendRule::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(backend_rule::PathTranslation::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/billing.rs b/googleapis-raw/src/api/billing.rs index 8033e8a..eee6148 100644 --- a/googleapis-raw/src/api/billing.rs +++ b/googleapis-raw/src/api/billing.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,28 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/billing.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Billing) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Billing { // message fields - pub consumer_destinations: ::protobuf::RepeatedField, + /// Billing configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations per service, each one must have + /// a different monitored resource type. A metric can be used in at most + /// one consumer destination. + // @@protoc_insertion_point(field:google.api.Billing.consumer_destinations) + pub consumer_destinations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Billing.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Billing { @@ -43,51 +51,37 @@ impl Billing { ::std::default::Default::default() } - // repeated .google.api.Billing.BillingDestination consumer_destinations = 8; - - - pub fn get_consumer_destinations(&self) -> &[Billing_BillingDestination] { - &self.consumer_destinations - } - pub fn clear_consumer_destinations(&mut self) { - self.consumer_destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_destinations(&mut self, v: ::protobuf::RepeatedField) { - self.consumer_destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_consumer_destinations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.consumer_destinations - } - - // Take field - pub fn take_consumer_destinations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.consumer_destinations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "consumer_destinations", + |m: &Billing| { &m.consumer_destinations }, + |m: &mut Billing| { &mut m.consumer_destinations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Billing", + fields, + oneofs, + ) } } impl ::protobuf::Message for Billing { + const NAME: &'static str = "Billing"; + fn is_initialized(&self) -> bool { - for v in &self.consumer_destinations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 66 => { + self.consumer_destinations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,389 +90,314 @@ impl ::protobuf::Message for Billing { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.consumer_destinations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.consumer_destinations { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Billing { Billing::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consumer_destinations", - |m: &Billing| { &m.consumer_destinations }, - |m: &mut Billing| { &mut m.consumer_destinations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Billing", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.consumer_destinations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Billing { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Billing::new) + static instance: Billing = Billing { + consumer_destinations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Billing { - fn clear(&mut self) { - self.consumer_destinations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Billing { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Billing").unwrap()).clone() } } -impl ::std::fmt::Debug for Billing { +impl ::std::fmt::Display for Billing { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Billing { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Billing_BillingDestination { - // message fields - pub monitored_resource: ::std::string::String, - pub metrics: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Billing_BillingDestination { - fn default() -> &'a Billing_BillingDestination { - ::default_instance() - } -} - -impl Billing_BillingDestination { - pub fn new() -> Billing_BillingDestination { - ::std::default::Default::default() - } - - // string monitored_resource = 1; - - - pub fn get_monitored_resource(&self) -> &str { - &self.monitored_resource - } - pub fn clear_monitored_resource(&mut self) { - self.monitored_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_monitored_resource(&mut self, v: ::std::string::String) { - self.monitored_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_monitored_resource(&mut self) -> &mut ::std::string::String { - &mut self.monitored_resource - } - - // Take field - pub fn take_monitored_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.monitored_resource, ::std::string::String::new()) +/// Nested message and enums of message `Billing` +pub mod billing { + /// Configuration of a specific billing destination (Currently only support + /// bill against consumer project). + // @@protoc_insertion_point(message:google.api.Billing.BillingDestination) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct BillingDestination { + // message fields + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + // @@protoc_insertion_point(field:google.api.Billing.BillingDestination.monitored_resource) + pub monitored_resource: ::std::string::String, + /// Names of the metrics to report to this billing destination. + /// Each name must be defined in [Service.metrics][google.api.Service.metrics] section. + // @@protoc_insertion_point(field:google.api.Billing.BillingDestination.metrics) + pub metrics: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.Billing.BillingDestination.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a BillingDestination { + fn default() -> &'a BillingDestination { + ::default_instance() + } } - // repeated string metrics = 2; - + impl BillingDestination { + pub fn new() -> BillingDestination { + ::std::default::Default::default() + } - pub fn get_metrics(&self) -> &[::std::string::String] { - &self.metrics - } - pub fn clear_metrics(&mut self) { - self.metrics.clear(); + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "monitored_resource", + |m: &BillingDestination| { &m.monitored_resource }, + |m: &mut BillingDestination| { &mut m.monitored_resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metrics", + |m: &BillingDestination| { &m.metrics }, + |m: &mut BillingDestination| { &mut m.metrics }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Billing.BillingDestination", + fields, + oneofs, + ) + } } - // Param is passed by value, moved - pub fn set_metrics(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.metrics = v; - } + impl ::protobuf::Message for BillingDestination { + const NAME: &'static str = "BillingDestination"; - // Mutable pointer to the field. - pub fn mut_metrics(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.metrics - } - - // Take field - pub fn take_metrics(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.metrics, ::protobuf::RepeatedField::new()) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::Message for Billing_BillingDestination { - fn is_initialized(&self) -> bool { - true - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.monitored_resource = is.read_string()?; + }, + 18 => { + self.metrics.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.monitored_resource)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.metrics)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.monitored_resource.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.monitored_resource); + } + for value in &self.metrics { + my_size += ::protobuf::rt::string_size(2, &value); }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.monitored_resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.monitored_resource); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.monitored_resource.is_empty() { + os.write_string(1, &self.monitored_resource)?; + } + for v in &self.metrics { + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - for value in &self.metrics { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.monitored_resource.is_empty() { - os.write_string(1, &self.monitored_resource)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - for v in &self.metrics { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> Billing_BillingDestination { - Billing_BillingDestination::new() - } + fn new() -> BillingDestination { + BillingDestination::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "monitored_resource", - |m: &Billing_BillingDestination| { &m.monitored_resource }, - |m: &mut Billing_BillingDestination| { &mut m.monitored_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metrics", - |m: &Billing_BillingDestination| { &m.metrics }, - |m: &mut Billing_BillingDestination| { &mut m.metrics }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Billing.BillingDestination", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.monitored_resource.clear(); + self.metrics.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static Billing_BillingDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Billing_BillingDestination::new) + fn default_instance() -> &'static BillingDestination { + static instance: BillingDestination = BillingDestination { + monitored_resource: ::std::string::String::new(), + metrics: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Billing_BillingDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.metrics.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for BillingDestination { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Billing.BillingDestination").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Billing_BillingDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for BillingDestination { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Billing_BillingDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for BillingDestination { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/billing.proto\x12\ngoogle.api\"\xc5\x01\n\x07Billing\ - \x12[\n\x15consumer_destinations\x18\x08\x20\x03(\x0b2&.google.api.Billi\ - ng.BillingDestinationR\x14consumerDestinations\x1a]\n\x12BillingDestinat\ - ion\x12-\n\x12monitored_resource\x18\x01\x20\x01(\tR\x11monitoredResourc\ - e\x12\x18\n\x07metrics\x18\x02\x20\x03(\tR\x07metricsBn\n\x0ecom.google.\ - apiB\x0cBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/ser\ - viceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa8\x16\n\x06\x12\x04\x0e\0L\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\ - \x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\ - \x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\ - \x03\x14\0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\ - \0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\ - \n\x02\x08$\x12\x03\x16\0\"\n\xe7\t\n\x02\x04\0\x12\x048\0L\x01\x1a\xda\ - \t\x20Billing\x20related\x20configuration\x20of\x20the\x20service.\n\n\ + \n\x18google/api/billing.proto\x12\ngoogle.api\x1a\x17google/api/metric.\ + proto\"\xc5\x01\n\x07Billing\x12[\n\x15consumer_destinations\x18\x08\x20\ + \x03(\x0b2&.google.api.Billing.BillingDestinationR\x14consumerDestinatio\ + ns\x1a]\n\x12BillingDestination\x12-\n\x12monitored_resource\x18\x01\x20\ + \x01(\tR\x11monitoredResource\x12\x18\n\x07metrics\x18\x02\x20\x03(\tR\ + \x07metricsBn\n\x0ecom.google.apiB\x0cBillingProtoP\x01ZEgoogle.golang.o\ + rg/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\ + \xff\x11\n\x06\x12\x04\x0f\0B\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\ + \xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\ + \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ + \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ + ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ + \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ + org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\ + \x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0!\n\x08\n\x01\ + \x08\x12\x03\x15\0\\\n\t\n\x02\x08\x0b\x12\x03\x15\0\\\n\x08\n\x01\x08\ + \x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\ + \x17\0-\n\t\n\x02\x08\x08\x12\x03\x17\0-\n\x08\n\x01\x08\x12\x03\x18\0'\ + \n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\ + \x02\x08$\x12\x03\x19\0\"\n\xb3\x05\n\x02\x04\0\x12\x040\0B\x01\x1a\xa6\ + \x05\x20Billing\x20related\x20configuration\x20of\x20the\x20service.\n\n\ \x20The\x20following\x20example\x20shows\x20how\x20to\x20configure\x20mo\ - nitored\x20resources\x20and\x20metrics\n\x20for\x20billing,\x20`consumer\ - _destinations`\x20is\x20the\x20only\x20supported\x20destination\x20and\n\ - \x20the\x20monitored\x20resources\x20need\x20at\x20least\x20one\x20label\ - \x20key\n\x20`cloud.googleapis.com/location`\x20to\x20indicate\x20the\ - \x20location\x20of\x20the\x20billing\n\x20usage,\x20using\x20different\ - \x20monitored\x20resources\x20between\x20monitoring\x20and\x20billing\ - \x20is\n\x20recommended\x20so\x20they\x20can\x20be\x20evolved\x20indepen\ - dently:\n\n\n\x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\ - \x20-\x20type:\x20library.googleapis.com/billing_branch\n\x20\x20\x20\ - \x20\x20\x20\x20labels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20cloud.\ - googleapis.com/location\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description\ - :\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Predefined\x20label\ - \x20to\x20support\x20billing\x20location\x20restriction.\n\x20\x20\x20\ - \x20\x20\x20\x20-\x20key:\x20city\n\x20\x20\x20\x20\x20\x20\x20\x20\x20d\ - escription:\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Custom\x20\ - label\x20to\x20define\x20the\x20city\x20where\x20the\x20library\x20branc\ - h\x20is\x20located\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in.\n\ - \x20\x20\x20\x20\x20\x20\x20-\x20key:\x20name\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20description:\x20Custom\x20label\x20to\x20define\x20the\x20na\ - me\x20of\x20the\x20library\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\ - \x20\x20\x20\x20\x20-\x20name:\x20library.googleapis.com/book/borrowed_c\ - ount\n\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\ - \x20\x20\x20\x20value_type:\x20INT64\n\x20\x20\x20\x20\x20\x20\x20unit:\ - \x20\"1\"\n\x20\x20\x20\x20\x20billing:\n\x20\x20\x20\x20\x20\x20\x20con\ - sumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource\ - :\x20library.googleapis.com/billing_branch\n\x20\x20\x20\x20\x20\x20\x20\ + nitored\x20resources\x20and\x20metrics\n\x20for\x20billing:\n\n\x20\x20\ + \x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20type:\x20libr\ + ary.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ + \x20\x20\x20\x20\x20-\x20key:\x20/city\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20description:\x20The\x20city\x20where\x20the\x20library\x20branch\x20\ + is\x20located\x20in.\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20/name\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20The\x20name\x20of\ + \x20the\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\x20\x20-\ + \x20name:\x20library.googleapis.com/book/borrowed_count\n\x20\x20\x20\ + \x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20value\ + _type:\x20INT64\n\x20\x20\x20\x20\x20billing:\n\x20\x20\x20\x20\x20\x20\ + \x20consumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_r\ + esource:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\ \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googl\ - eapis.com/book/borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x038\x08\x0f\nx\ - \n\x04\x04\0\x03\0\x12\x04;\x02E\x03\x1aj\x20Configuration\x20of\x20a\ + eapis.com/book/borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x030\x08\x0f\nx\ + \n\x04\x04\0\x03\0\x12\x043\x02;\x03\x1aj\x20Configuration\x20of\x20a\ \x20specific\x20billing\x20destination\x20(Currently\x20only\x20support\ \n\x20bill\x20against\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\ - \x01\x12\x03;\n\x1c\n\x9b\x01\n\x06\x04\0\x03\0\x02\0\x12\x03?\x04\"\x1a\ - \x8b\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\x20must\ + \x01\x12\x033\n\x1c\n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x036\x04\"\x1a\ + \x8a\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\x20must\ \x20be\x20defined\x20in\n\x20[Service.monitored_resources][google.api.Se\ - rvice.monitored_resources]\n\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x05\x12\x03?\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03?\x0b\x1d\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03?\x20!\n\xa3\x01\n\x06\x04\0\x03\ - \0\x02\x01\x12\x03D\x04\x20\x1a\x93\x01\x20Names\x20of\x20the\x20metrics\ + rvice.monitored_resources]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ + \x05\x12\x036\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x036\x0b\x1d\n\ + \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x036\x20!\n\xa2\x01\n\x06\x04\0\x03\ + \0\x02\x01\x12\x03:\x04\x20\x1a\x92\x01\x20Names\x20of\x20the\x20metrics\ \x20to\x20report\x20to\x20this\x20billing\x20destination.\n\x20Each\x20n\ - ame\x20must\x20be\x20defined\x20in\n\x20[Service.metrics][google.api.Ser\ - vice.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03D\ - \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03D\r\x13\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x01\x12\x03D\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\ - \x01\x03\x12\x03D\x1e\x1f\n\x81\x02\n\x04\x04\0\x02\0\x12\x03K\x028\x1a\ + ame\x20must\x20be\x20defined\x20in\x20[Service.metrics][google.api.Servi\ + ce.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03:\ + \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03:\r\x13\n\x0e\n\x07\ + \x04\0\x03\0\x02\x01\x01\x12\x03:\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\ + \x01\x03\x12\x03:\x1e\x1f\n\x81\x02\n\x04\x04\0\x02\0\x12\x03A\x028\x1a\ \xf3\x01\x20Billing\x20configurations\x20for\x20sending\x20metrics\x20to\ \x20the\x20consumer\x20project.\n\x20There\x20can\x20be\x20multiple\x20c\ onsumer\x20destinations\x20per\x20service,\x20each\x20one\x20must\x20hav\ e\n\x20a\x20different\x20monitored\x20resource\x20type.\x20A\x20metric\ \x20can\x20be\x20used\x20in\x20at\x20most\n\x20one\x20consumer\x20destin\ - ation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03K\x02\n\n\x0c\n\x05\x04\0\ - \x02\0\x06\x12\x03K\x0b\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03K\x1e3\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03K67b\x06proto3\ + ation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03A\x02\n\n\x0c\n\x05\x04\0\ + \x02\0\x06\x12\x03A\x0b\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03A\x1e3\n\ + \x0c\n\x05\x04\0\x02\0\x03\x12\x03A67b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::metric::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Billing::generated_message_descriptor_data()); + messages.push(billing::BillingDestination::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/client.rs b/googleapis-raw/src/api/client.rs index 427d842..d7bc070 100644 --- a/googleapis-raw/src/api/client.rs +++ b/googleapis-raw/src/api/client.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,4255 +16,133 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] -//! Generated file from `google/api/client.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CommonLanguageSettings { - // message fields - pub reference_docs_uri: ::std::string::String, - pub destinations: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommonLanguageSettings { - fn default() -> &'a CommonLanguageSettings { - ::default_instance() - } -} - -impl CommonLanguageSettings { - pub fn new() -> CommonLanguageSettings { - ::std::default::Default::default() - } - - // string reference_docs_uri = 1; - - - pub fn get_reference_docs_uri(&self) -> &str { - &self.reference_docs_uri - } - pub fn clear_reference_docs_uri(&mut self) { - self.reference_docs_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_reference_docs_uri(&mut self, v: ::std::string::String) { - self.reference_docs_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_reference_docs_uri(&mut self) -> &mut ::std::string::String { - &mut self.reference_docs_uri - } - - // Take field - pub fn take_reference_docs_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.reference_docs_uri, ::std::string::String::new()) - } - - // repeated .google.api.ClientLibraryDestination destinations = 2; - - - pub fn get_destinations(&self) -> &[ClientLibraryDestination] { - &self.destinations - } - pub fn clear_destinations(&mut self) { - self.destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_destinations(&mut self, v: ::std::vec::Vec) { - self.destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_destinations(&mut self) -> &mut ::std::vec::Vec { - &mut self.destinations - } - - // Take field - pub fn take_destinations(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.destinations, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for CommonLanguageSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.reference_docs_uri)?; - }, - 2 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.destinations, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.reference_docs_uri.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.reference_docs_uri); - } - for value in &self.destinations { - my_size += ::protobuf::rt::enum_size(2, *value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.reference_docs_uri.is_empty() { - os.write_string(1, &self.reference_docs_uri)?; - } - for v in &self.destinations { - os.write_enum(2, ::protobuf::ProtobufEnum::value(v))?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommonLanguageSettings { - CommonLanguageSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "reference_docs_uri", - |m: &CommonLanguageSettings| { &m.reference_docs_uri }, - |m: &mut CommonLanguageSettings| { &mut m.reference_docs_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "destinations", - |m: &CommonLanguageSettings| { &m.destinations }, - |m: &mut CommonLanguageSettings| { &mut m.destinations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommonLanguageSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommonLanguageSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommonLanguageSettings::new) - } -} - -impl ::protobuf::Clear for CommonLanguageSettings { - fn clear(&mut self) { - self.reference_docs_uri.clear(); - self.destinations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommonLanguageSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommonLanguageSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ClientLibrarySettings { - // message fields - pub version: ::std::string::String, - pub launch_stage: super::launch_stage::LaunchStage, - pub rest_numeric_enums: bool, - pub java_settings: ::protobuf::SingularPtrField, - pub cpp_settings: ::protobuf::SingularPtrField, - pub php_settings: ::protobuf::SingularPtrField, - pub python_settings: ::protobuf::SingularPtrField, - pub node_settings: ::protobuf::SingularPtrField, - pub dotnet_settings: ::protobuf::SingularPtrField, - pub ruby_settings: ::protobuf::SingularPtrField, - pub go_settings: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ClientLibrarySettings { - fn default() -> &'a ClientLibrarySettings { - ::default_instance() - } -} - -impl ClientLibrarySettings { - pub fn new() -> ClientLibrarySettings { - ::std::default::Default::default() - } - - // string version = 1; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // .google.api.LaunchStage launch_stage = 2; - - - pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage { - self.launch_stage - } - pub fn clear_launch_stage(&mut self) { - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) { - self.launch_stage = v; - } - - // bool rest_numeric_enums = 3; - - - pub fn get_rest_numeric_enums(&self) -> bool { - self.rest_numeric_enums - } - pub fn clear_rest_numeric_enums(&mut self) { - self.rest_numeric_enums = false; - } - - // Param is passed by value, moved - pub fn set_rest_numeric_enums(&mut self, v: bool) { - self.rest_numeric_enums = v; - } - - // .google.api.JavaSettings java_settings = 21; - - - pub fn get_java_settings(&self) -> &JavaSettings { - self.java_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_java_settings(&mut self) { - self.java_settings.clear(); - } - - pub fn has_java_settings(&self) -> bool { - self.java_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_java_settings(&mut self, v: JavaSettings) { - self.java_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_java_settings(&mut self) -> &mut JavaSettings { - if self.java_settings.is_none() { - self.java_settings.set_default(); - } - self.java_settings.as_mut().unwrap() - } - - // Take field - pub fn take_java_settings(&mut self) -> JavaSettings { - self.java_settings.take().unwrap_or_else(|| JavaSettings::new()) - } - - // .google.api.CppSettings cpp_settings = 22; - - - pub fn get_cpp_settings(&self) -> &CppSettings { - self.cpp_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cpp_settings(&mut self) { - self.cpp_settings.clear(); - } - - pub fn has_cpp_settings(&self) -> bool { - self.cpp_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_cpp_settings(&mut self, v: CppSettings) { - self.cpp_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cpp_settings(&mut self) -> &mut CppSettings { - if self.cpp_settings.is_none() { - self.cpp_settings.set_default(); - } - self.cpp_settings.as_mut().unwrap() - } - - // Take field - pub fn take_cpp_settings(&mut self) -> CppSettings { - self.cpp_settings.take().unwrap_or_else(|| CppSettings::new()) - } - - // .google.api.PhpSettings php_settings = 23; - - - pub fn get_php_settings(&self) -> &PhpSettings { - self.php_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_php_settings(&mut self) { - self.php_settings.clear(); - } - - pub fn has_php_settings(&self) -> bool { - self.php_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_php_settings(&mut self, v: PhpSettings) { - self.php_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_php_settings(&mut self) -> &mut PhpSettings { - if self.php_settings.is_none() { - self.php_settings.set_default(); - } - self.php_settings.as_mut().unwrap() - } - - // Take field - pub fn take_php_settings(&mut self) -> PhpSettings { - self.php_settings.take().unwrap_or_else(|| PhpSettings::new()) - } - - // .google.api.PythonSettings python_settings = 24; - - - pub fn get_python_settings(&self) -> &PythonSettings { - self.python_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_python_settings(&mut self) { - self.python_settings.clear(); - } - - pub fn has_python_settings(&self) -> bool { - self.python_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_python_settings(&mut self, v: PythonSettings) { - self.python_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_python_settings(&mut self) -> &mut PythonSettings { - if self.python_settings.is_none() { - self.python_settings.set_default(); - } - self.python_settings.as_mut().unwrap() - } - - // Take field - pub fn take_python_settings(&mut self) -> PythonSettings { - self.python_settings.take().unwrap_or_else(|| PythonSettings::new()) - } - - // .google.api.NodeSettings node_settings = 25; - - - pub fn get_node_settings(&self) -> &NodeSettings { - self.node_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_node_settings(&mut self) { - self.node_settings.clear(); - } - - pub fn has_node_settings(&self) -> bool { - self.node_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_node_settings(&mut self, v: NodeSettings) { - self.node_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_node_settings(&mut self) -> &mut NodeSettings { - if self.node_settings.is_none() { - self.node_settings.set_default(); - } - self.node_settings.as_mut().unwrap() - } - - // Take field - pub fn take_node_settings(&mut self) -> NodeSettings { - self.node_settings.take().unwrap_or_else(|| NodeSettings::new()) - } - - // .google.api.DotnetSettings dotnet_settings = 26; - - - pub fn get_dotnet_settings(&self) -> &DotnetSettings { - self.dotnet_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_dotnet_settings(&mut self) { - self.dotnet_settings.clear(); - } - - pub fn has_dotnet_settings(&self) -> bool { - self.dotnet_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_dotnet_settings(&mut self, v: DotnetSettings) { - self.dotnet_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dotnet_settings(&mut self) -> &mut DotnetSettings { - if self.dotnet_settings.is_none() { - self.dotnet_settings.set_default(); - } - self.dotnet_settings.as_mut().unwrap() - } - - // Take field - pub fn take_dotnet_settings(&mut self) -> DotnetSettings { - self.dotnet_settings.take().unwrap_or_else(|| DotnetSettings::new()) - } - - // .google.api.RubySettings ruby_settings = 27; - - - pub fn get_ruby_settings(&self) -> &RubySettings { - self.ruby_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_ruby_settings(&mut self) { - self.ruby_settings.clear(); - } - - pub fn has_ruby_settings(&self) -> bool { - self.ruby_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_ruby_settings(&mut self, v: RubySettings) { - self.ruby_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ruby_settings(&mut self) -> &mut RubySettings { - if self.ruby_settings.is_none() { - self.ruby_settings.set_default(); - } - self.ruby_settings.as_mut().unwrap() - } - - // Take field - pub fn take_ruby_settings(&mut self) -> RubySettings { - self.ruby_settings.take().unwrap_or_else(|| RubySettings::new()) - } - - // .google.api.GoSettings go_settings = 28; - - - pub fn get_go_settings(&self) -> &GoSettings { - self.go_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_go_settings(&mut self) { - self.go_settings.clear(); - } - - pub fn has_go_settings(&self) -> bool { - self.go_settings.is_some() - } - - // Param is passed by value, moved - pub fn set_go_settings(&mut self, v: GoSettings) { - self.go_settings = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_go_settings(&mut self) -> &mut GoSettings { - if self.go_settings.is_none() { - self.go_settings.set_default(); - } - self.go_settings.as_mut().unwrap() - } - - // Take field - pub fn take_go_settings(&mut self) -> GoSettings { - self.go_settings.take().unwrap_or_else(|| GoSettings::new()) - } -} - -impl ::protobuf::Message for ClientLibrarySettings { - fn is_initialized(&self) -> bool { - for v in &self.java_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cpp_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.php_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.python_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.node_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.dotnet_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ruby_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.go_settings { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.rest_numeric_enums = tmp; - }, - 21 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.java_settings)?; - }, - 22 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cpp_settings)?; - }, - 23 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.php_settings)?; - }, - 24 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.python_settings)?; - }, - 25 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.node_settings)?; - }, - 26 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.dotnet_settings)?; - }, - 27 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ruby_settings)?; - }, - 28 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.go_settings)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.version); - } - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.launch_stage); - } - if self.rest_numeric_enums != false { - my_size += 2; - } - if let Some(ref v) = self.java_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cpp_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.php_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.python_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.node_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.dotnet_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.ruby_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.go_settings.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.version.is_empty() { - os.write_string(1, &self.version)?; - } - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; - } - if self.rest_numeric_enums != false { - os.write_bool(3, self.rest_numeric_enums)?; - } - if let Some(ref v) = self.java_settings.as_ref() { - os.write_tag(21, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cpp_settings.as_ref() { - os.write_tag(22, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.php_settings.as_ref() { - os.write_tag(23, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.python_settings.as_ref() { - os.write_tag(24, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.node_settings.as_ref() { - os.write_tag(25, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.dotnet_settings.as_ref() { - os.write_tag(26, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.ruby_settings.as_ref() { - os.write_tag(27, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.go_settings.as_ref() { - os.write_tag(28, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ClientLibrarySettings { - ClientLibrarySettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &ClientLibrarySettings| { &m.version }, - |m: &mut ClientLibrarySettings| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "launch_stage", - |m: &ClientLibrarySettings| { &m.launch_stage }, - |m: &mut ClientLibrarySettings| { &mut m.launch_stage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "rest_numeric_enums", - |m: &ClientLibrarySettings| { &m.rest_numeric_enums }, - |m: &mut ClientLibrarySettings| { &mut m.rest_numeric_enums }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "java_settings", - |m: &ClientLibrarySettings| { &m.java_settings }, - |m: &mut ClientLibrarySettings| { &mut m.java_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cpp_settings", - |m: &ClientLibrarySettings| { &m.cpp_settings }, - |m: &mut ClientLibrarySettings| { &mut m.cpp_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "php_settings", - |m: &ClientLibrarySettings| { &m.php_settings }, - |m: &mut ClientLibrarySettings| { &mut m.php_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "python_settings", - |m: &ClientLibrarySettings| { &m.python_settings }, - |m: &mut ClientLibrarySettings| { &mut m.python_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "node_settings", - |m: &ClientLibrarySettings| { &m.node_settings }, - |m: &mut ClientLibrarySettings| { &mut m.node_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "dotnet_settings", - |m: &ClientLibrarySettings| { &m.dotnet_settings }, - |m: &mut ClientLibrarySettings| { &mut m.dotnet_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ruby_settings", - |m: &ClientLibrarySettings| { &m.ruby_settings }, - |m: &mut ClientLibrarySettings| { &mut m.ruby_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "go_settings", - |m: &ClientLibrarySettings| { &m.go_settings }, - |m: &mut ClientLibrarySettings| { &mut m.go_settings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ClientLibrarySettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ClientLibrarySettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ClientLibrarySettings::new) - } -} - -impl ::protobuf::Clear for ClientLibrarySettings { - fn clear(&mut self) { - self.version.clear(); - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - self.rest_numeric_enums = false; - self.java_settings.clear(); - self.cpp_settings.clear(); - self.php_settings.clear(); - self.python_settings.clear(); - self.node_settings.clear(); - self.dotnet_settings.clear(); - self.ruby_settings.clear(); - self.go_settings.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ClientLibrarySettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ClientLibrarySettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Publishing { - // message fields - pub method_settings: ::protobuf::RepeatedField, - pub new_issue_uri: ::std::string::String, - pub documentation_uri: ::std::string::String, - pub api_short_name: ::std::string::String, - pub github_label: ::std::string::String, - pub codeowner_github_teams: ::protobuf::RepeatedField<::std::string::String>, - pub doc_tag_prefix: ::std::string::String, - pub organization: ClientLibraryOrganization, - pub library_settings: ::protobuf::RepeatedField, - pub proto_reference_documentation_uri: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Publishing { - fn default() -> &'a Publishing { - ::default_instance() - } -} - -impl Publishing { - pub fn new() -> Publishing { - ::std::default::Default::default() - } - - // repeated .google.api.MethodSettings method_settings = 2; - - - pub fn get_method_settings(&self) -> &[MethodSettings] { - &self.method_settings - } - pub fn clear_method_settings(&mut self) { - self.method_settings.clear(); - } - - // Param is passed by value, moved - pub fn set_method_settings(&mut self, v: ::protobuf::RepeatedField) { - self.method_settings = v; - } - - // Mutable pointer to the field. - pub fn mut_method_settings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.method_settings - } - - // Take field - pub fn take_method_settings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.method_settings, ::protobuf::RepeatedField::new()) - } - - // string new_issue_uri = 101; - - - pub fn get_new_issue_uri(&self) -> &str { - &self.new_issue_uri - } - pub fn clear_new_issue_uri(&mut self) { - self.new_issue_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_new_issue_uri(&mut self, v: ::std::string::String) { - self.new_issue_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_new_issue_uri(&mut self) -> &mut ::std::string::String { - &mut self.new_issue_uri - } - - // Take field - pub fn take_new_issue_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.new_issue_uri, ::std::string::String::new()) - } - - // string documentation_uri = 102; - - - pub fn get_documentation_uri(&self) -> &str { - &self.documentation_uri - } - pub fn clear_documentation_uri(&mut self) { - self.documentation_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_documentation_uri(&mut self, v: ::std::string::String) { - self.documentation_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_documentation_uri(&mut self) -> &mut ::std::string::String { - &mut self.documentation_uri - } - - // Take field - pub fn take_documentation_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.documentation_uri, ::std::string::String::new()) - } - - // string api_short_name = 103; - - - pub fn get_api_short_name(&self) -> &str { - &self.api_short_name - } - pub fn clear_api_short_name(&mut self) { - self.api_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_api_short_name(&mut self, v: ::std::string::String) { - self.api_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_api_short_name(&mut self) -> &mut ::std::string::String { - &mut self.api_short_name - } - - // Take field - pub fn take_api_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.api_short_name, ::std::string::String::new()) - } - - // string github_label = 104; - - - pub fn get_github_label(&self) -> &str { - &self.github_label - } - pub fn clear_github_label(&mut self) { - self.github_label.clear(); - } - - // Param is passed by value, moved - pub fn set_github_label(&mut self, v: ::std::string::String) { - self.github_label = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_github_label(&mut self) -> &mut ::std::string::String { - &mut self.github_label - } - - // Take field - pub fn take_github_label(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.github_label, ::std::string::String::new()) - } - - // repeated string codeowner_github_teams = 105; - - - pub fn get_codeowner_github_teams(&self) -> &[::std::string::String] { - &self.codeowner_github_teams - } - pub fn clear_codeowner_github_teams(&mut self) { - self.codeowner_github_teams.clear(); - } - - // Param is passed by value, moved - pub fn set_codeowner_github_teams(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.codeowner_github_teams = v; - } - - // Mutable pointer to the field. - pub fn mut_codeowner_github_teams(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.codeowner_github_teams - } - - // Take field - pub fn take_codeowner_github_teams(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.codeowner_github_teams, ::protobuf::RepeatedField::new()) - } - - // string doc_tag_prefix = 106; - - - pub fn get_doc_tag_prefix(&self) -> &str { - &self.doc_tag_prefix - } - pub fn clear_doc_tag_prefix(&mut self) { - self.doc_tag_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_doc_tag_prefix(&mut self, v: ::std::string::String) { - self.doc_tag_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_doc_tag_prefix(&mut self) -> &mut ::std::string::String { - &mut self.doc_tag_prefix - } - - // Take field - pub fn take_doc_tag_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.doc_tag_prefix, ::std::string::String::new()) - } - - // .google.api.ClientLibraryOrganization organization = 107; - - - pub fn get_organization(&self) -> ClientLibraryOrganization { - self.organization - } - pub fn clear_organization(&mut self) { - self.organization = ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ClientLibraryOrganization) { - self.organization = v; - } - - // repeated .google.api.ClientLibrarySettings library_settings = 109; - - - pub fn get_library_settings(&self) -> &[ClientLibrarySettings] { - &self.library_settings - } - pub fn clear_library_settings(&mut self) { - self.library_settings.clear(); - } - - // Param is passed by value, moved - pub fn set_library_settings(&mut self, v: ::protobuf::RepeatedField) { - self.library_settings = v; - } - - // Mutable pointer to the field. - pub fn mut_library_settings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.library_settings - } - - // Take field - pub fn take_library_settings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.library_settings, ::protobuf::RepeatedField::new()) - } - - // string proto_reference_documentation_uri = 110; - - - pub fn get_proto_reference_documentation_uri(&self) -> &str { - &self.proto_reference_documentation_uri - } - pub fn clear_proto_reference_documentation_uri(&mut self) { - self.proto_reference_documentation_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_proto_reference_documentation_uri(&mut self, v: ::std::string::String) { - self.proto_reference_documentation_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_proto_reference_documentation_uri(&mut self) -> &mut ::std::string::String { - &mut self.proto_reference_documentation_uri - } - - // Take field - pub fn take_proto_reference_documentation_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.proto_reference_documentation_uri, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Publishing { - fn is_initialized(&self) -> bool { - for v in &self.method_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.library_settings { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.method_settings)?; - }, - 101 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.new_issue_uri)?; - }, - 102 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.documentation_uri)?; - }, - 103 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.api_short_name)?; - }, - 104 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.github_label)?; - }, - 105 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.codeowner_github_teams)?; - }, - 106 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.doc_tag_prefix)?; - }, - 107 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.organization, 107, &mut self.unknown_fields)? - }, - 109 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.library_settings)?; - }, - 110 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.proto_reference_documentation_uri)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.method_settings { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.new_issue_uri.is_empty() { - my_size += ::protobuf::rt::string_size(101, &self.new_issue_uri); - } - if !self.documentation_uri.is_empty() { - my_size += ::protobuf::rt::string_size(102, &self.documentation_uri); - } - if !self.api_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(103, &self.api_short_name); - } - if !self.github_label.is_empty() { - my_size += ::protobuf::rt::string_size(104, &self.github_label); - } - for value in &self.codeowner_github_teams { - my_size += ::protobuf::rt::string_size(105, &value); - }; - if !self.doc_tag_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(106, &self.doc_tag_prefix); - } - if self.organization != ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(107, self.organization); - } - for value in &self.library_settings { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.proto_reference_documentation_uri.is_empty() { - my_size += ::protobuf::rt::string_size(110, &self.proto_reference_documentation_uri); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.method_settings { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.new_issue_uri.is_empty() { - os.write_string(101, &self.new_issue_uri)?; - } - if !self.documentation_uri.is_empty() { - os.write_string(102, &self.documentation_uri)?; - } - if !self.api_short_name.is_empty() { - os.write_string(103, &self.api_short_name)?; - } - if !self.github_label.is_empty() { - os.write_string(104, &self.github_label)?; - } - for v in &self.codeowner_github_teams { - os.write_string(105, &v)?; - }; - if !self.doc_tag_prefix.is_empty() { - os.write_string(106, &self.doc_tag_prefix)?; - } - if self.organization != ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED { - os.write_enum(107, ::protobuf::ProtobufEnum::value(&self.organization))?; - } - for v in &self.library_settings { - os.write_tag(109, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.proto_reference_documentation_uri.is_empty() { - os.write_string(110, &self.proto_reference_documentation_uri)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Publishing { - Publishing::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "method_settings", - |m: &Publishing| { &m.method_settings }, - |m: &mut Publishing| { &mut m.method_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "new_issue_uri", - |m: &Publishing| { &m.new_issue_uri }, - |m: &mut Publishing| { &mut m.new_issue_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "documentation_uri", - |m: &Publishing| { &m.documentation_uri }, - |m: &mut Publishing| { &mut m.documentation_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "api_short_name", - |m: &Publishing| { &m.api_short_name }, - |m: &mut Publishing| { &mut m.api_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "github_label", - |m: &Publishing| { &m.github_label }, - |m: &mut Publishing| { &mut m.github_label }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "codeowner_github_teams", - |m: &Publishing| { &m.codeowner_github_teams }, - |m: &mut Publishing| { &mut m.codeowner_github_teams }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "doc_tag_prefix", - |m: &Publishing| { &m.doc_tag_prefix }, - |m: &mut Publishing| { &mut m.doc_tag_prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "organization", - |m: &Publishing| { &m.organization }, - |m: &mut Publishing| { &mut m.organization }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "library_settings", - |m: &Publishing| { &m.library_settings }, - |m: &mut Publishing| { &mut m.library_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "proto_reference_documentation_uri", - |m: &Publishing| { &m.proto_reference_documentation_uri }, - |m: &mut Publishing| { &mut m.proto_reference_documentation_uri }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Publishing", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Publishing { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Publishing::new) - } -} - -impl ::protobuf::Clear for Publishing { - fn clear(&mut self) { - self.method_settings.clear(); - self.new_issue_uri.clear(); - self.documentation_uri.clear(); - self.api_short_name.clear(); - self.github_label.clear(); - self.codeowner_github_teams.clear(); - self.doc_tag_prefix.clear(); - self.organization = ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED; - self.library_settings.clear(); - self.proto_reference_documentation_uri.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Publishing { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Publishing { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct JavaSettings { - // message fields - pub library_package: ::std::string::String, - pub service_class_names: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a JavaSettings { - fn default() -> &'a JavaSettings { - ::default_instance() - } -} - -impl JavaSettings { - pub fn new() -> JavaSettings { - ::std::default::Default::default() - } - - // string library_package = 1; - - - pub fn get_library_package(&self) -> &str { - &self.library_package - } - pub fn clear_library_package(&mut self) { - self.library_package.clear(); - } - - // Param is passed by value, moved - pub fn set_library_package(&mut self, v: ::std::string::String) { - self.library_package = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_library_package(&mut self) -> &mut ::std::string::String { - &mut self.library_package - } - - // Take field - pub fn take_library_package(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.library_package, ::std::string::String::new()) - } - - // repeated .google.api.JavaSettings.ServiceClassNamesEntry service_class_names = 2; - - - pub fn get_service_class_names(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.service_class_names - } - pub fn clear_service_class_names(&mut self) { - self.service_class_names.clear(); - } - - // Param is passed by value, moved - pub fn set_service_class_names(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.service_class_names = v; - } - - // Mutable pointer to the field. - pub fn mut_service_class_names(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.service_class_names - } - - // Take field - pub fn take_service_class_names(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.service_class_names, ::std::collections::HashMap::new()) - } - - // .google.api.CommonLanguageSettings common = 3; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for JavaSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.library_package)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.service_class_names)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.library_package.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.library_package); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.service_class_names); - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.library_package.is_empty() { - os.write_string(1, &self.library_package)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.service_class_names, os)?; - if let Some(ref v) = self.common.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> JavaSettings { - JavaSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "library_package", - |m: &JavaSettings| { &m.library_package }, - |m: &mut JavaSettings| { &mut m.library_package }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "service_class_names", - |m: &JavaSettings| { &m.service_class_names }, - |m: &mut JavaSettings| { &mut m.service_class_names }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &JavaSettings| { &m.common }, - |m: &mut JavaSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "JavaSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static JavaSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(JavaSettings::new) - } -} - -impl ::protobuf::Clear for JavaSettings { - fn clear(&mut self) { - self.library_package.clear(); - self.service_class_names.clear(); - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for JavaSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for JavaSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CppSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CppSettings { - fn default() -> &'a CppSettings { - ::default_instance() - } -} - -impl CppSettings { - pub fn new() -> CppSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for CppSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CppSettings { - CppSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &CppSettings| { &m.common }, - |m: &mut CppSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CppSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CppSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CppSettings::new) - } -} - -impl ::protobuf::Clear for CppSettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CppSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CppSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PhpSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PhpSettings { - fn default() -> &'a PhpSettings { - ::default_instance() - } -} - -impl PhpSettings { - pub fn new() -> PhpSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for PhpSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PhpSettings { - PhpSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &PhpSettings| { &m.common }, - |m: &mut PhpSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PhpSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PhpSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PhpSettings::new) - } -} - -impl ::protobuf::Clear for PhpSettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PhpSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PhpSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PythonSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PythonSettings { - fn default() -> &'a PythonSettings { - ::default_instance() - } -} - -impl PythonSettings { - pub fn new() -> PythonSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for PythonSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PythonSettings { - PythonSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &PythonSettings| { &m.common }, - |m: &mut PythonSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PythonSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PythonSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PythonSettings::new) - } -} - -impl ::protobuf::Clear for PythonSettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PythonSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PythonSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct NodeSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a NodeSettings { - fn default() -> &'a NodeSettings { - ::default_instance() - } -} - -impl NodeSettings { - pub fn new() -> NodeSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for NodeSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> NodeSettings { - NodeSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &NodeSettings| { &m.common }, - |m: &mut NodeSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "NodeSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static NodeSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(NodeSettings::new) - } -} - -impl ::protobuf::Clear for NodeSettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for NodeSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for NodeSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DotnetSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - pub renamed_services: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub renamed_resources: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub ignored_resources: ::protobuf::RepeatedField<::std::string::String>, - pub forced_namespace_aliases: ::protobuf::RepeatedField<::std::string::String>, - pub handwritten_signatures: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DotnetSettings { - fn default() -> &'a DotnetSettings { - ::default_instance() - } -} - -impl DotnetSettings { - pub fn new() -> DotnetSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } - - // repeated .google.api.DotnetSettings.RenamedServicesEntry renamed_services = 2; - - - pub fn get_renamed_services(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.renamed_services - } - pub fn clear_renamed_services(&mut self) { - self.renamed_services.clear(); - } - - // Param is passed by value, moved - pub fn set_renamed_services(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.renamed_services = v; - } - - // Mutable pointer to the field. - pub fn mut_renamed_services(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.renamed_services - } - - // Take field - pub fn take_renamed_services(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.renamed_services, ::std::collections::HashMap::new()) - } - - // repeated .google.api.DotnetSettings.RenamedResourcesEntry renamed_resources = 3; - - - pub fn get_renamed_resources(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.renamed_resources - } - pub fn clear_renamed_resources(&mut self) { - self.renamed_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_renamed_resources(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.renamed_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_renamed_resources(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.renamed_resources - } - - // Take field - pub fn take_renamed_resources(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.renamed_resources, ::std::collections::HashMap::new()) - } - - // repeated string ignored_resources = 4; - - - pub fn get_ignored_resources(&self) -> &[::std::string::String] { - &self.ignored_resources - } - pub fn clear_ignored_resources(&mut self) { - self.ignored_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_ignored_resources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ignored_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_ignored_resources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ignored_resources - } - - // Take field - pub fn take_ignored_resources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ignored_resources, ::protobuf::RepeatedField::new()) - } - - // repeated string forced_namespace_aliases = 5; - - - pub fn get_forced_namespace_aliases(&self) -> &[::std::string::String] { - &self.forced_namespace_aliases - } - pub fn clear_forced_namespace_aliases(&mut self) { - self.forced_namespace_aliases.clear(); - } - - // Param is passed by value, moved - pub fn set_forced_namespace_aliases(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.forced_namespace_aliases = v; - } - - // Mutable pointer to the field. - pub fn mut_forced_namespace_aliases(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.forced_namespace_aliases - } - - // Take field - pub fn take_forced_namespace_aliases(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.forced_namespace_aliases, ::protobuf::RepeatedField::new()) - } - - // repeated string handwritten_signatures = 6; - - - pub fn get_handwritten_signatures(&self) -> &[::std::string::String] { - &self.handwritten_signatures - } - pub fn clear_handwritten_signatures(&mut self) { - self.handwritten_signatures.clear(); - } - - // Param is passed by value, moved - pub fn set_handwritten_signatures(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.handwritten_signatures = v; - } - - // Mutable pointer to the field. - pub fn mut_handwritten_signatures(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.handwritten_signatures - } - - // Take field - pub fn take_handwritten_signatures(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.handwritten_signatures, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for DotnetSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.renamed_services)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.renamed_resources)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ignored_resources)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.forced_namespace_aliases)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.handwritten_signatures)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.renamed_services); - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.renamed_resources); - for value in &self.ignored_resources { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.forced_namespace_aliases { - my_size += ::protobuf::rt::string_size(5, &value); - }; - for value in &self.handwritten_signatures { - my_size += ::protobuf::rt::string_size(6, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.renamed_services, os)?; - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.renamed_resources, os)?; - for v in &self.ignored_resources { - os.write_string(4, &v)?; - }; - for v in &self.forced_namespace_aliases { - os.write_string(5, &v)?; - }; - for v in &self.handwritten_signatures { - os.write_string(6, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DotnetSettings { - DotnetSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &DotnetSettings| { &m.common }, - |m: &mut DotnetSettings| { &mut m.common }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "renamed_services", - |m: &DotnetSettings| { &m.renamed_services }, - |m: &mut DotnetSettings| { &mut m.renamed_services }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "renamed_resources", - |m: &DotnetSettings| { &m.renamed_resources }, - |m: &mut DotnetSettings| { &mut m.renamed_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ignored_resources", - |m: &DotnetSettings| { &m.ignored_resources }, - |m: &mut DotnetSettings| { &mut m.ignored_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "forced_namespace_aliases", - |m: &DotnetSettings| { &m.forced_namespace_aliases }, - |m: &mut DotnetSettings| { &mut m.forced_namespace_aliases }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "handwritten_signatures", - |m: &DotnetSettings| { &m.handwritten_signatures }, - |m: &mut DotnetSettings| { &mut m.handwritten_signatures }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DotnetSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DotnetSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DotnetSettings::new) - } -} - -impl ::protobuf::Clear for DotnetSettings { - fn clear(&mut self) { - self.common.clear(); - self.renamed_services.clear(); - self.renamed_resources.clear(); - self.ignored_resources.clear(); - self.forced_namespace_aliases.clear(); - self.handwritten_signatures.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DotnetSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DotnetSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RubySettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RubySettings { - fn default() -> &'a RubySettings { - ::default_instance() - } -} - -impl RubySettings { - pub fn new() -> RubySettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for RubySettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RubySettings { - RubySettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &RubySettings| { &m.common }, - |m: &mut RubySettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RubySettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RubySettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RubySettings::new) - } -} - -impl ::protobuf::Clear for RubySettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RubySettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RubySettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GoSettings { - // message fields - pub common: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GoSettings { - fn default() -> &'a GoSettings { - ::default_instance() - } -} - -impl GoSettings { - pub fn new() -> GoSettings { - ::std::default::Default::default() - } - - // .google.api.CommonLanguageSettings common = 1; - - - pub fn get_common(&self) -> &CommonLanguageSettings { - self.common.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_common(&mut self) { - self.common.clear(); - } - - pub fn has_common(&self) -> bool { - self.common.is_some() - } - - // Param is passed by value, moved - pub fn set_common(&mut self, v: CommonLanguageSettings) { - self.common = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_common(&mut self) -> &mut CommonLanguageSettings { - if self.common.is_none() { - self.common.set_default(); - } - self.common.as_mut().unwrap() - } - - // Take field - pub fn take_common(&mut self) -> CommonLanguageSettings { - self.common.take().unwrap_or_else(|| CommonLanguageSettings::new()) - } -} - -impl ::protobuf::Message for GoSettings { - fn is_initialized(&self) -> bool { - for v in &self.common { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.common)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.common.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.common.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GoSettings { - GoSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "common", - |m: &GoSettings| { &m.common }, - |m: &mut GoSettings| { &mut m.common }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GoSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GoSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GoSettings::new) - } -} +#![allow(unused_mut)] -impl ::protobuf::Clear for GoSettings { - fn clear(&mut self) { - self.common.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GoSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GoSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MethodSettings { - // message fields - pub selector: ::std::string::String, - pub long_running: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MethodSettings { - fn default() -> &'a MethodSettings { - ::default_instance() - } -} - -impl MethodSettings { - pub fn new() -> MethodSettings { - ::std::default::Default::default() - } - - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // .google.api.MethodSettings.LongRunning long_running = 2; - - - pub fn get_long_running(&self) -> &MethodSettings_LongRunning { - self.long_running.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_long_running(&mut self) { - self.long_running.clear(); - } - - pub fn has_long_running(&self) -> bool { - self.long_running.is_some() - } - - // Param is passed by value, moved - pub fn set_long_running(&mut self, v: MethodSettings_LongRunning) { - self.long_running = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_long_running(&mut self) -> &mut MethodSettings_LongRunning { - if self.long_running.is_none() { - self.long_running.set_default(); - } - self.long_running.as_mut().unwrap() - } - - // Take field - pub fn take_long_running(&mut self) -> MethodSettings_LongRunning { - self.long_running.take().unwrap_or_else(|| MethodSettings_LongRunning::new()) - } -} - -impl ::protobuf::Message for MethodSettings { - fn is_initialized(&self) -> bool { - for v in &self.long_running { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.long_running)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.selector.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.selector); - } - if let Some(ref v) = self.long_running.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - if let Some(ref v) = self.long_running.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MethodSettings { - MethodSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &MethodSettings| { &m.selector }, - |m: &mut MethodSettings| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "long_running", - |m: &MethodSettings| { &m.long_running }, - |m: &mut MethodSettings| { &mut m.long_running }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MethodSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MethodSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MethodSettings::new) - } -} - -impl ::protobuf::Clear for MethodSettings { - fn clear(&mut self) { - self.selector.clear(); - self.long_running.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MethodSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MethodSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MethodSettings_LongRunning { - // message fields - pub initial_poll_delay: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub poll_delay_multiplier: f32, - pub max_poll_delay: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub total_poll_timeout: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MethodSettings_LongRunning { - fn default() -> &'a MethodSettings_LongRunning { - ::default_instance() - } -} - -impl MethodSettings_LongRunning { - pub fn new() -> MethodSettings_LongRunning { - ::std::default::Default::default() - } - - // .google.protobuf.Duration initial_poll_delay = 1; - - - pub fn get_initial_poll_delay(&self) -> &::protobuf::well_known_types::Duration { - self.initial_poll_delay.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_initial_poll_delay(&mut self) { - self.initial_poll_delay.clear(); - } - - pub fn has_initial_poll_delay(&self) -> bool { - self.initial_poll_delay.is_some() - } - - // Param is passed by value, moved - pub fn set_initial_poll_delay(&mut self, v: ::protobuf::well_known_types::Duration) { - self.initial_poll_delay = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_initial_poll_delay(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.initial_poll_delay.is_none() { - self.initial_poll_delay.set_default(); - } - self.initial_poll_delay.as_mut().unwrap() - } - - // Take field - pub fn take_initial_poll_delay(&mut self) -> ::protobuf::well_known_types::Duration { - self.initial_poll_delay.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // float poll_delay_multiplier = 2; - - - pub fn get_poll_delay_multiplier(&self) -> f32 { - self.poll_delay_multiplier - } - pub fn clear_poll_delay_multiplier(&mut self) { - self.poll_delay_multiplier = 0.; - } - - // Param is passed by value, moved - pub fn set_poll_delay_multiplier(&mut self, v: f32) { - self.poll_delay_multiplier = v; - } - - // .google.protobuf.Duration max_poll_delay = 3; - - - pub fn get_max_poll_delay(&self) -> &::protobuf::well_known_types::Duration { - self.max_poll_delay.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_max_poll_delay(&mut self) { - self.max_poll_delay.clear(); - } - - pub fn has_max_poll_delay(&self) -> bool { - self.max_poll_delay.is_some() - } - - // Param is passed by value, moved - pub fn set_max_poll_delay(&mut self, v: ::protobuf::well_known_types::Duration) { - self.max_poll_delay = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_max_poll_delay(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.max_poll_delay.is_none() { - self.max_poll_delay.set_default(); - } - self.max_poll_delay.as_mut().unwrap() - } - - // Take field - pub fn take_max_poll_delay(&mut self) -> ::protobuf::well_known_types::Duration { - self.max_poll_delay.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.protobuf.Duration total_poll_timeout = 4; - - - pub fn get_total_poll_timeout(&self) -> &::protobuf::well_known_types::Duration { - self.total_poll_timeout.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_total_poll_timeout(&mut self) { - self.total_poll_timeout.clear(); - } - - pub fn has_total_poll_timeout(&self) -> bool { - self.total_poll_timeout.is_some() - } - - // Param is passed by value, moved - pub fn set_total_poll_timeout(&mut self, v: ::protobuf::well_known_types::Duration) { - self.total_poll_timeout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_total_poll_timeout(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.total_poll_timeout.is_none() { - self.total_poll_timeout.set_default(); - } - self.total_poll_timeout.as_mut().unwrap() - } - - // Take field - pub fn take_total_poll_timeout(&mut self) -> ::protobuf::well_known_types::Duration { - self.total_poll_timeout.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for MethodSettings_LongRunning { - fn is_initialized(&self) -> bool { - for v in &self.initial_poll_delay { - if !v.is_initialized() { - return false; - } - }; - for v in &self.max_poll_delay { - if !v.is_initialized() { - return false; - } - }; - for v in &self.total_poll_timeout { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.initial_poll_delay)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.poll_delay_multiplier = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.max_poll_delay)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.total_poll_timeout)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.initial_poll_delay.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.poll_delay_multiplier != 0. { - my_size += 5; - } - if let Some(ref v) = self.max_poll_delay.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.total_poll_timeout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.initial_poll_delay.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.poll_delay_multiplier != 0. { - os.write_float(2, self.poll_delay_multiplier)?; - } - if let Some(ref v) = self.max_poll_delay.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.total_poll_timeout.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MethodSettings_LongRunning { - MethodSettings_LongRunning::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "initial_poll_delay", - |m: &MethodSettings_LongRunning| { &m.initial_poll_delay }, - |m: &mut MethodSettings_LongRunning| { &mut m.initial_poll_delay }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "poll_delay_multiplier", - |m: &MethodSettings_LongRunning| { &m.poll_delay_multiplier }, - |m: &mut MethodSettings_LongRunning| { &mut m.poll_delay_multiplier }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "max_poll_delay", - |m: &MethodSettings_LongRunning| { &m.max_poll_delay }, - |m: &mut MethodSettings_LongRunning| { &mut m.max_poll_delay }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "total_poll_timeout", - |m: &MethodSettings_LongRunning| { &m.total_poll_timeout }, - |m: &mut MethodSettings_LongRunning| { &mut m.total_poll_timeout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MethodSettings.LongRunning", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MethodSettings_LongRunning { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MethodSettings_LongRunning::new) - } -} - -impl ::protobuf::Clear for MethodSettings_LongRunning { - fn clear(&mut self) { - self.initial_poll_delay.clear(); - self.poll_delay_multiplier = 0.; - self.max_poll_delay.clear(); - self.total_poll_timeout.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MethodSettings_LongRunning { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MethodSettings_LongRunning { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ClientLibraryOrganization { - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, - CLOUD = 1, - ADS = 2, - PHOTOS = 3, - STREET_VIEW = 4, - SHOPPING = 5, - GEO = 6, - GENERATIVE_AI = 7, -} - -impl ::protobuf::ProtobufEnum for ClientLibraryOrganization { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED), - 1 => ::std::option::Option::Some(ClientLibraryOrganization::CLOUD), - 2 => ::std::option::Option::Some(ClientLibraryOrganization::ADS), - 3 => ::std::option::Option::Some(ClientLibraryOrganization::PHOTOS), - 4 => ::std::option::Option::Some(ClientLibraryOrganization::STREET_VIEW), - 5 => ::std::option::Option::Some(ClientLibraryOrganization::SHOPPING), - 6 => ::std::option::Option::Some(ClientLibraryOrganization::GEO), - 7 => ::std::option::Option::Some(ClientLibraryOrganization::GENERATIVE_AI), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ClientLibraryOrganization] = &[ - ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, - ClientLibraryOrganization::CLOUD, - ClientLibraryOrganization::ADS, - ClientLibraryOrganization::PHOTOS, - ClientLibraryOrganization::STREET_VIEW, - ClientLibraryOrganization::SHOPPING, - ClientLibraryOrganization::GEO, - ClientLibraryOrganization::GENERATIVE_AI, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ClientLibraryOrganization", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ClientLibraryOrganization { -} - -impl ::std::default::Default for ClientLibraryOrganization { - fn default() -> Self { - ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ClientLibraryOrganization { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ClientLibraryDestination { - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, - GITHUB = 10, - PACKAGE_MANAGER = 20, -} - -impl ::protobuf::ProtobufEnum for ClientLibraryDestination { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED), - 10 => ::std::option::Option::Some(ClientLibraryDestination::GITHUB), - 20 => ::std::option::Option::Some(ClientLibraryDestination::PACKAGE_MANAGER), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ClientLibraryDestination] = &[ - ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED, - ClientLibraryDestination::GITHUB, - ClientLibraryDestination::PACKAGE_MANAGER, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ClientLibraryDestination", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ClientLibraryDestination { -} - -impl ::std::default::Default for ClientLibraryDestination { - fn default() -> Self { - ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED - } -} +//! Generated file from `google/api/client.proto` -impl ::protobuf::reflect::ProtobufValue for ClientLibraryDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} +/// Generated files are compatible only with the same version +/// of protobuf runtime. +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; /// Extension fields pub mod exts { - pub const method_signature: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldRepeated { field_number: 1051, phantom: ::std::marker::PhantomData }; + pub const method_signature: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::MethodOptions, ::std::string::String> = ::protobuf::ext::ExtFieldRepeated::new(1051, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); - pub const default_host: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1049, phantom: ::std::marker::PhantomData }; + pub const default_host: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(1049, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); - pub const oauth_scopes: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeString> = ::protobuf::ext::ExtFieldOptional { field_number: 1050, phantom: ::std::marker::PhantomData }; + pub const oauth_scopes: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(1050, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_s\ - tage.proto\x1a\x20google/protobuf/descriptor.proto\x1a\x1egoogle/protobu\ - f/duration.proto\"\x94\x01\n\x16CommonLanguageSettings\x120\n\x12referen\ - ce_docs_uri\x18\x01\x20\x01(\tR\x10referenceDocsUriB\x02\x18\x01\x12H\n\ - \x0cdestinations\x18\x02\x20\x03(\x0e2$.google.api.ClientLibraryDestinat\ - ionR\x0cdestinations\"\x93\x05\n\x15ClientLibrarySettings\x12\x18\n\x07v\ - ersion\x18\x01\x20\x01(\tR\x07version\x12:\n\x0claunch_stage\x18\x02\x20\ - \x01(\x0e2\x17.google.api.LaunchStageR\x0blaunchStage\x12,\n\x12rest_num\ - eric_enums\x18\x03\x20\x01(\x08R\x10restNumericEnums\x12=\n\rjava_settin\ - gs\x18\x15\x20\x01(\x0b2\x18.google.api.JavaSettingsR\x0cjavaSettings\ - \x12:\n\x0ccpp_settings\x18\x16\x20\x01(\x0b2\x17.google.api.CppSettings\ - R\x0bcppSettings\x12:\n\x0cphp_settings\x18\x17\x20\x01(\x0b2\x17.google\ - .api.PhpSettingsR\x0bphpSettings\x12C\n\x0fpython_settings\x18\x18\x20\ - \x01(\x0b2\x1a.google.api.PythonSettingsR\x0epythonSettings\x12=\n\rnode\ - _settings\x18\x19\x20\x01(\x0b2\x18.google.api.NodeSettingsR\x0cnodeSett\ - ings\x12C\n\x0fdotnet_settings\x18\x1a\x20\x01(\x0b2\x1a.google.api.Dotn\ - etSettingsR\x0edotnetSettings\x12=\n\rruby_settings\x18\x1b\x20\x01(\x0b\ - 2\x18.google.api.RubySettingsR\x0crubySettings\x127\n\x0bgo_settings\x18\ - \x1c\x20\x01(\x0b2\x16.google.api.GoSettingsR\ngoSettings\"\xab\x04\n\nP\ - ublishing\x12C\n\x0fmethod_settings\x18\x02\x20\x03(\x0b2\x1a.google.api\ - .MethodSettingsR\x0emethodSettings\x12\"\n\rnew_issue_uri\x18e\x20\x01(\ - \tR\x0bnewIssueUri\x12+\n\x11documentation_uri\x18f\x20\x01(\tR\x10docum\ - entationUri\x12$\n\x0eapi_short_name\x18g\x20\x01(\tR\x0capiShortName\ - \x12!\n\x0cgithub_label\x18h\x20\x01(\tR\x0bgithubLabel\x124\n\x16codeow\ - ner_github_teams\x18i\x20\x03(\tR\x14codeownerGithubTeams\x12$\n\x0edoc_\ - tag_prefix\x18j\x20\x01(\tR\x0cdocTagPrefix\x12I\n\x0corganization\x18k\ - \x20\x01(\x0e2%.google.api.ClientLibraryOrganizationR\x0corganization\ - \x12L\n\x10library_settings\x18m\x20\x03(\x0b2!.google.api.ClientLibrary\ - SettingsR\x0flibrarySettings\x12I\n!proto_reference_documentation_uri\ - \x18n\x20\x01(\tR\x1eprotoReferenceDocumentationUri\"\x9a\x02\n\x0cJavaS\ - ettings\x12'\n\x0flibrary_package\x18\x01\x20\x01(\tR\x0elibraryPackage\ - \x12_\n\x13service_class_names\x18\x02\x20\x03(\x0b2/.google.api.JavaSet\ - tings.ServiceClassNamesEntryR\x11serviceClassNames\x12:\n\x06common\x18\ - \x03\x20\x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\x1aD\n\ - \x16ServiceClassNamesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ - \x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"I\n\x0bCppSe\ - ttings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.CommonLanguag\ - eSettingsR\x06common\"I\n\x0bPhpSettings\x12:\n\x06common\x18\x01\x20\ - \x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\"L\n\x0ePython\ - Settings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.CommonLangu\ - ageSettingsR\x06common\"J\n\x0cNodeSettings\x12:\n\x06common\x18\x01\x20\ - \x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\"\xae\x04\n\ - \x0eDotnetSettings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.C\ - ommonLanguageSettingsR\x06common\x12Z\n\x10renamed_services\x18\x02\x20\ - \x03(\x0b2/.google.api.DotnetSettings.RenamedServicesEntryR\x0frenamedSe\ - rvices\x12]\n\x11renamed_resources\x18\x03\x20\x03(\x0b20.google.api.Dot\ - netSettings.RenamedResourcesEntryR\x10renamedResources\x12+\n\x11ignored\ - _resources\x18\x04\x20\x03(\tR\x10ignoredResources\x128\n\x18forced_name\ - space_aliases\x18\x05\x20\x03(\tR\x16forcedNamespaceAliases\x125\n\x16ha\ - ndwritten_signatures\x18\x06\x20\x03(\tR\x15handwrittenSignatures\x1aB\n\ - \x14RenamedServicesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\ - \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1aC\n\x15Renamed\ - ResourcesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05\ - value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"J\n\x0cRubySettings\x12:\n\ - \x06common\x18\x01\x20\x01(\x0b2\".google.api.CommonLanguageSettingsR\ - \x06common\"H\n\nGoSettings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".goo\ - gle.api.CommonLanguageSettingsR\x06common\"\x8e\x03\n\x0eMethodSettings\ - \x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08selector\x12I\n\x0clong_ru\ - nning\x18\x02\x20\x01(\x0b2&.google.api.MethodSettings.LongRunningR\x0bl\ - ongRunning\x1a\x94\x02\n\x0bLongRunning\x12G\n\x12initial_poll_delay\x18\ - \x01\x20\x01(\x0b2\x19.google.protobuf.DurationR\x10initialPollDelay\x12\ - 2\n\x15poll_delay_multiplier\x18\x02\x20\x01(\x02R\x13pollDelayMultiplie\ - r\x12?\n\x0emax_poll_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.Dur\ - ationR\x0cmaxPollDelay\x12G\n\x12total_poll_timeout\x18\x04\x20\x01(\x0b\ - 2\x19.google.protobuf.DurationR\x10totalPollTimeout*\xa3\x01\n\x19Client\ - LibraryOrganization\x12+\n'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\0\ - \x12\t\n\x05CLOUD\x10\x01\x12\x07\n\x03ADS\x10\x02\x12\n\n\x06PHOTOS\x10\ - \x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\ - \x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18ClientLibr\ - aryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\0\x12\n\ - \n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14:J\n\x10method_si\ - gnature\x18\x9b\x08\x20\x03(\t\x12\x1e.google.protobuf.MethodOptionsR\ - \x0fmethodSignature:C\n\x0cdefault_host\x18\x99\x08\x20\x01(\t\x12\x1f.g\ - oogle.protobuf.ServiceOptionsR\x0bdefaultHost:C\n\x0coauth_scopes\x18\ - \x9a\x08\x20\x01(\t\x12\x1f.google.protobuf.ServiceOptionsR\x0boauthScop\ - esBi\n\x0ecom.google.apiB\x0bClientProtoP\x01ZAgoogle.golang.org/genprot\ - o/googleapis/api/annotations;annotations\xa2\x02\x04GAPIJ\xa4j\n\x07\x12\ - \x05\x0e\0\x89\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ - \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ - ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ - \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ - \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ - censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ - \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0'\n\t\n\x02\x03\x01\x12\ - \x03\x13\0*\n\t\n\x02\x03\x02\x12\x03\x14\0(\n\x08\n\x01\x08\x12\x03\x16\ - \0X\n\t\n\x02\x08\x0b\x12\x03\x16\0X\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\ - \n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0,\n\t\n\x02\ - \x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\ - \x12\x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\ - \x1a\0\"\n\t\n\x01\x07\x12\x04\x1c\0A\x01\n\x85\x0b\n\x02\x07\0\x12\x03@\ - \x02*\x1a\xf9\n\x20A\x20definition\x20of\x20a\x20client\x20library\x20me\ - thod\x20signature.\n\n\x20In\x20client\x20libraries,\x20each\x20proto\ - \x20RPC\x20corresponds\x20to\x20one\x20or\x20more\x20methods\n\x20which\ - \x20the\x20end\x20user\x20is\x20able\x20to\x20call,\x20and\x20calls\x20t\ - he\x20underlying\x20RPC.\n\x20Normally,\x20this\x20method\x20receives\ - \x20a\x20single\x20argument\x20(a\x20struct\x20or\x20instance\n\x20corre\ - sponding\x20to\x20the\x20RPC\x20request\x20object).\x20Defining\x20this\ - \x20field\x20will\n\x20add\x20one\x20or\x20more\x20overloads\x20providin\ - g\x20flattened\x20or\x20simpler\x20method\x20signatures\n\x20in\x20some\ - \x20languages.\n\n\x20The\x20fields\x20on\x20the\x20method\x20signature\ - \x20are\x20provided\x20as\x20a\x20comma-separated\n\x20string.\n\n\x20Fo\ - r\x20example,\x20the\x20proto\x20RPC\x20and\x20annotation:\n\n\x20\x20\ - \x20rpc\x20CreateSubscription(CreateSubscriptionRequest)\n\x20\x20\x20\ - \x20\x20\x20\x20returns\x20(Subscription)\x20{\n\x20\x20\x20\x20\x20opti\ - on\x20(google.api.method_signature)\x20=\x20\"name,topic\";\n\x20\x20\ - \x20}\n\n\x20Would\x20add\x20the\x20following\x20Java\x20overload\x20(in\ - \x20addition\x20to\x20the\x20method\x20accepting\n\x20the\x20request\x20\ - object):\n\n\x20\x20\x20public\x20final\x20Subscription\x20createSubscri\ - ption(String\x20name,\x20String\x20topic)\n\n\x20The\x20following\x20bac\ - kwards-compatibility\x20guidelines\x20apply:\n\n\x20\x20\x20*\x20Adding\ - \x20this\x20annotation\x20to\x20an\x20unannotated\x20method\x20is\x20bac\ - kwards\n\x20\x20\x20\x20\x20compatible.\n\x20\x20\x20*\x20Adding\x20this\ - \x20annotation\x20to\x20a\x20method\x20which\x20already\x20has\x20existi\ - ng\n\x20\x20\x20\x20\x20method\x20signature\x20annotations\x20is\x20back\ - wards\x20compatible\x20if\x20and\x20only\x20if\n\x20\x20\x20\x20\x20the\ - \x20new\x20method\x20signature\x20annotation\x20is\x20last\x20in\x20the\ - \x20sequence.\n\x20\x20\x20*\x20Modifying\x20or\x20removing\x20an\x20exi\ - sting\x20method\x20signature\x20annotation\x20is\n\x20\x20\x20\x20\x20a\ - \x20breaking\x20change.\n\x20\x20\x20*\x20Re-ordering\x20existing\x20met\ - hod\x20signature\x20annotations\x20is\x20a\x20breaking\n\x20\x20\x20\x20\ - \x20change.\n\n\n\n\x03\x07\0\x02\x12\x03\x1c\x07$\n\n\n\x03\x07\0\x04\ - \x12\x03@\x02\n\n\n\n\x03\x07\0\x05\x12\x03@\x0b\x11\n\n\n\x03\x07\0\x01\ - \x12\x03@\x12\"\n\n\n\x03\x07\0\x03\x12\x03@%)\n\t\n\x01\x07\x12\x04C\0d\ - \x01\n\xca\x01\n\x02\x07\x01\x12\x03M\x02\x1d\x1a\xbe\x01\x20The\x20host\ - name\x20for\x20this\x20service.\n\x20This\x20should\x20be\x20specified\ - \x20with\x20no\x20prefix\x20or\x20protocol.\n\n\x20Example:\n\n\x20\x20\ - \x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20option\x20(google.api.defau\ - lt_host)\x20=\x20\"foo.googleapi.com\";\n\x20\x20\x20\x20\x20...\n\x20\ - \x20\x20}\n\n\n\n\x03\x07\x01\x02\x12\x03C\x07%\n\n\n\x03\x07\x01\x05\ - \x12\x03M\x02\x08\n\n\n\x03\x07\x01\x01\x12\x03M\t\x15\n\n\n\x03\x07\x01\ - \x03\x12\x03M\x18\x1c\n\xc3\x03\n\x02\x07\x02\x12\x03c\x02\x1d\x1a\xb7\ - \x03\x20OAuth\x20scopes\x20needed\x20for\x20the\x20client.\n\n\x20Exampl\ - e:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20option\x20(go\ - ogle.api.oauth_scopes)\x20=\x20\\\n\x20\x20\x20\x20\x20\x20\x20\"https:/\ - /www.googleapis.com/auth/cloud-platform\";\n\x20\x20\x20\x20\x20...\n\ - \x20\x20\x20}\n\n\x20If\x20there\x20is\x20more\x20than\x20one\x20scope,\ - \x20use\x20a\x20comma-separated\x20string:\n\n\x20Example:\n\n\x20\x20\ - \x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20option\x20(google.api.oauth\ - _scopes)\x20=\x20\\\n\x20\x20\x20\x20\x20\x20\x20\"https://www.googleapi\ - s.com/auth/cloud-platform,\"\n\x20\x20\x20\x20\x20\x20\x20\"https://www.\ - googleapis.com/auth/monitoring\";\n\x20\x20\x20\x20\x20...\n\x20\x20\x20\ - }\n\n\n\n\x03\x07\x02\x02\x12\x03C\x07%\n\n\n\x03\x07\x02\x05\x12\x03c\ - \x02\x08\n\n\n\x03\x07\x02\x01\x12\x03c\t\x15\n\n\n\x03\x07\x02\x03\x12\ - \x03c\x18\x1c\n6\n\x02\x04\0\x12\x04g\0n\x01\x1a*\x20Required\x20informa\ - tion\x20for\x20every\x20language.\n\n\n\n\x03\x04\0\x01\x12\x03g\x08\x1e\ - \n\x8f\x01\n\x04\x04\0\x02\0\x12\x03j\x024\x1a\x81\x01\x20Link\x20to\x20\ - automatically\x20generated\x20reference\x20documentation.\x20\x20Example\ - :\n\x20https://cloud.google.com/nodejs/docs/reference/asset/latest\n\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03j\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03j\t\x1b\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03j\x1e\x1f\n\x0c\n\x05\ - \x04\0\x02\0\x08\x12\x03j\x203\n\r\n\x06\x04\0\x02\0\x08\x03\x12\x03j!2\ - \nX\n\x04\x04\0\x02\x01\x12\x03m\x025\x1aK\x20The\x20destination\x20wher\ - e\x20API\x20teams\x20want\x20this\x20client\x20library\x20to\x20be\x20pu\ - blished.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03m\x02\n\n\x0c\n\x05\x04\ - \0\x02\x01\x06\x12\x03m\x0b#\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03m$0\n\ - \x0c\n\x05\x04\0\x02\x01\x03\x12\x03m34\nG\n\x02\x04\x01\x12\x05q\0\x95\ - \x01\x01\x1a:\x20Details\x20about\x20how\x20and\x20where\x20to\x20publis\ - h\x20client\x20libraries.\n\n\n\n\x03\x04\x01\x01\x12\x03q\x08\x1d\n\xd9\ - \x01\n\x04\x04\x01\x02\0\x12\x03u\x02\x15\x1a\xcb\x01\x20Version\x20of\ - \x20the\x20API\x20to\x20apply\x20these\x20settings\x20to.\x20This\x20is\ - \x20the\x20full\x20protobuf\n\x20package\x20for\x20the\x20API,\x20ending\ - \x20in\x20the\x20version\x20element.\n\x20Examples:\x20\"google.cloud.sp\ - eech.v1\"\x20and\x20\"google.spanner.admin.database.v1\".\n\n\x0c\n\x05\ - \x04\x01\x02\0\x05\x12\x03u\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\ - \x03u\t\x10\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03u\x13\x14\n7\n\x04\x04\ - \x01\x02\x01\x12\x03x\x02\x1f\x1a*\x20Launch\x20stage\x20of\x20this\x20v\ - ersion\x20of\x20the\x20API.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03x\ - \x02\r\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03x\x0e\x1a\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03x\x1d\x1e\no\n\x04\x04\x01\x02\x02\x12\x03|\x02\ - \x1e\x1ab\x20When\x20using\x20transport=rest,\x20the\x20client\x20reques\ - t\x20will\x20encode\x20enums\x20as\n\x20numbers\x20rather\x20than\x20str\ - ings.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03|\x02\x06\n\x0c\n\x05\x04\ - \x01\x02\x02\x01\x12\x03|\x07\x19\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\ - \x03|\x1c\x1d\nP\n\x04\x04\x01\x02\x03\x12\x03\x7f\x02\"\x1aC\x20Setting\ - s\x20for\x20legacy\x20Java\x20features,\x20supported\x20in\x20the\x20Ser\ - vice\x20YAML.\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03\x7f\x02\x0e\n\ - \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\x7f\x0f\x1c\n\x0c\n\x05\x04\x01\ - \x02\x03\x03\x12\x03\x7f\x1f!\n2\n\x04\x04\x01\x02\x04\x12\x04\x82\x01\ - \x02\x20\x1a$\x20Settings\x20for\x20C++\x20client\x20libraries.\n\n\r\n\ - \x05\x04\x01\x02\x04\x06\x12\x04\x82\x01\x02\r\n\r\n\x05\x04\x01\x02\x04\ - \x01\x12\x04\x82\x01\x0e\x1a\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x82\ - \x01\x1d\x1f\n2\n\x04\x04\x01\x02\x05\x12\x04\x85\x01\x02\x20\x1a$\x20Se\ - ttings\x20for\x20PHP\x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\x05\ - \x06\x12\x04\x85\x01\x02\r\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\x85\x01\ - \x0e\x1a\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x85\x01\x1d\x1f\n5\n\x04\ - \x04\x01\x02\x06\x12\x04\x88\x01\x02&\x1a'\x20Settings\x20for\x20Python\ - \x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\x88\x01\ - \x02\x10\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\x88\x01\x11\x20\n\r\n\x05\ - \x04\x01\x02\x06\x03\x12\x04\x88\x01#%\n3\n\x04\x04\x01\x02\x07\x12\x04\ - \x8b\x01\x02\"\x1a%\x20Settings\x20for\x20Node\x20client\x20libraries.\n\ - \n\r\n\x05\x04\x01\x02\x07\x06\x12\x04\x8b\x01\x02\x0e\n\r\n\x05\x04\x01\ - \x02\x07\x01\x12\x04\x8b\x01\x0f\x1c\n\r\n\x05\x04\x01\x02\x07\x03\x12\ - \x04\x8b\x01\x1f!\n3\n\x04\x04\x01\x02\x08\x12\x04\x8e\x01\x02&\x1a%\x20\ - Settings\x20for\x20.NET\x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\ - \x08\x06\x12\x04\x8e\x01\x02\x10\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\ - \x8e\x01\x11\x20\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\x8e\x01#%\n3\n\ - \x04\x04\x01\x02\t\x12\x04\x91\x01\x02\"\x1a%\x20Settings\x20for\x20Ruby\ - \x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\x91\x01\ - \x02\x0e\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\x91\x01\x0f\x1c\n\r\n\x05\ - \x04\x01\x02\t\x03\x12\x04\x91\x01\x1f!\n1\n\x04\x04\x01\x02\n\x12\x04\ - \x94\x01\x02\x1e\x1a#\x20Settings\x20for\x20Go\x20client\x20libraries.\n\ - \n\r\n\x05\x04\x01\x02\n\x06\x12\x04\x94\x01\x02\x0c\n\r\n\x05\x04\x01\ - \x02\n\x01\x12\x04\x94\x01\r\x18\n\r\n\x05\x04\x01\x02\n\x03\x12\x04\x94\ - \x01\x1b\x1d\n\xc4\x01\n\x02\x04\x02\x12\x06\x9a\x01\0\xc2\x01\x01\x1a\ - \xb5\x01\x20This\x20message\x20configures\x20the\x20settings\x20for\x20p\ - ublishing\x20[Google\x20Cloud\x20Client\n\x20libraries](https://cloud.go\ - ogle.com/apis/docs/cloud-client-libraries)\n\x20generated\x20from\x20the\ - \x20service\x20config.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x9a\x01\x08\x12\ - \nz\n\x04\x04\x02\x02\0\x12\x04\x9d\x01\x02.\x1al\x20A\x20list\x20of\x20\ - API\x20method\x20settings,\x20e.g.\x20the\x20behavior\x20for\x20methods\ - \x20that\x20use\x20the\n\x20long-running\x20operation\x20pattern.\n\n\r\ - \n\x05\x04\x02\x02\0\x04\x12\x04\x9d\x01\x02\n\n\r\n\x05\x04\x02\x02\0\ - \x06\x12\x04\x9d\x01\x0b\x19\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x9d\x01\ - \x1a)\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x9d\x01,-\n\x9e\x01\n\x04\x04\ - \x02\x02\x01\x12\x04\xa1\x01\x02\x1d\x1a\x8f\x01\x20Link\x20to\x20a\x20*\ - public*\x20URI\x20where\x20users\x20can\x20report\x20issues.\x20\x20Exam\ - ple:\n\x20https://issuetracker.google.com/issues/new?component=190865&te\ - mplate=1161103\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xa1\x01\x02\x08\n\ - \r\n\x05\x04\x02\x02\x01\x01\x12\x04\xa1\x01\t\x16\n\r\n\x05\x04\x02\x02\ - \x01\x03\x12\x04\xa1\x01\x19\x1c\nl\n\x04\x04\x02\x02\x02\x12\x04\xa5\ - \x01\x02!\x1a^\x20Link\x20to\x20product\x20home\x20page.\x20\x20Example:\ - \n\x20https://cloud.google.com/asset-inventory/docs/overview\n\n\r\n\x05\ - \x04\x02\x02\x02\x05\x12\x04\xa5\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\ - \x01\x12\x04\xa5\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xa5\x01\ - \x1d\x20\n\xb7\x01\n\x04\x04\x02\x02\x03\x12\x04\xaa\x01\x02\x1e\x1a\xa8\ - \x01\x20Used\x20as\x20a\x20tracking\x20tag\x20when\x20collecting\x20data\ - \x20about\x20the\x20APIs\x20developer\n\x20relations\x20artifacts\x20lik\ - e\x20docs,\x20packages\x20delivered\x20to\x20package\x20managers,\n\x20e\ - tc.\x20\x20Example:\x20\"speech\".\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\ - \x04\xaa\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xaa\x01\t\x17\ - \n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xaa\x01\x1a\x1d\nV\n\x04\x04\x02\ - \x02\x04\x12\x04\xad\x01\x02\x1c\x1aH\x20GitHub\x20label\x20to\x20apply\ - \x20to\x20issues\x20and\x20pull\x20requests\x20opened\x20for\x20this\x20\ - API.\n\n\r\n\x05\x04\x02\x02\x04\x05\x12\x04\xad\x01\x02\x08\n\r\n\x05\ - \x04\x02\x02\x04\x01\x12\x04\xad\x01\t\x15\n\r\n\x05\x04\x02\x02\x04\x03\ - \x12\x04\xad\x01\x18\x1b\n\x91\x01\n\x04\x04\x02\x02\x05\x12\x04\xb1\x01\ - \x02/\x1a\x82\x01\x20GitHub\x20teams\x20to\x20be\x20added\x20to\x20CODEO\ - WNERS\x20in\x20the\x20directory\x20in\x20GitHub\n\x20containing\x20sourc\ - e\x20code\x20for\x20the\x20client\x20libraries\x20for\x20this\x20API.\n\ - \n\r\n\x05\x04\x02\x02\x05\x04\x12\x04\xb1\x01\x02\n\n\r\n\x05\x04\x02\ - \x02\x05\x05\x12\x04\xb1\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x05\x01\x12\ - \x04\xb1\x01\x12(\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\xb1\x01+.\ne\n\ - \x04\x04\x02\x02\x06\x12\x04\xb5\x01\x02\x1e\x1aW\x20A\x20prefix\x20used\ - \x20in\x20sample\x20code\x20when\x20demarking\x20regions\x20to\x20be\x20\ - included\x20in\n\x20documentation.\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\ - \x04\xb5\x01\x02\x08\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\xb5\x01\t\x17\ - \n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xb5\x01\x1a\x1d\n?\n\x04\x04\x02\ - \x02\x07\x12\x04\xb8\x01\x02/\x1a1\x20For\x20whom\x20the\x20client\x20li\ - brary\x20is\x20being\x20published.\n\n\r\n\x05\x04\x02\x02\x07\x06\x12\ - \x04\xb8\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\xb8\x01\x1c(\ - \n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xb8\x01+.\n\xd0\x01\n\x04\x04\x02\ - \x02\x08\x12\x04\xbd\x01\x028\x1a\xc1\x01\x20Client\x20library\x20settin\ - gs.\x20\x20If\x20the\x20same\x20version\x20string\x20appears\x20multiple\ - \n\x20times\x20in\x20this\x20list,\x20then\x20the\x20last\x20one\x20wins\ - .\x20\x20Settings\x20from\x20earlier\n\x20settings\x20with\x20the\x20sam\ - e\x20version\x20string\x20are\x20discarded.\n\n\r\n\x05\x04\x02\x02\x08\ - \x04\x12\x04\xbd\x01\x02\n\n\r\n\x05\x04\x02\x02\x08\x06\x12\x04\xbd\x01\ - \x0b\x20\n\r\n\x05\x04\x02\x02\x08\x01\x12\x04\xbd\x01!1\n\r\n\x05\x04\ - \x02\x02\x08\x03\x12\x04\xbd\x0147\n\x82\x01\n\x04\x04\x02\x02\t\x12\x04\ - \xc1\x01\x021\x1at\x20Optional\x20link\x20to\x20proto\x20reference\x20do\ - cumentation.\x20\x20Example:\n\x20https://cloud.google.com/pubsub/lite/d\ - ocs/reference/rpc\n\n\r\n\x05\x04\x02\x02\t\x05\x12\x04\xc1\x01\x02\x08\ - \n\r\n\x05\x04\x02\x02\t\x01\x12\x04\xc1\x01\t*\n\r\n\x05\x04\x02\x02\t\ - \x03\x12\x04\xc1\x01-0\n3\n\x02\x04\x03\x12\x06\xc5\x01\0\xe5\x01\x01\ - \x1a%\x20Settings\x20for\x20Java\x20client\x20libraries.\n\n\x0b\n\x03\ - \x04\x03\x01\x12\x04\xc5\x01\x08\x14\n\xa1\x03\n\x04\x04\x03\x02\0\x12\ - \x04\xd1\x01\x02\x1d\x1a\x92\x03\x20The\x20package\x20name\x20to\x20use\ - \x20in\x20Java.\x20Clobbers\x20the\x20java_package\x20option\n\x20set\ - \x20in\x20the\x20protobuf.\x20This\x20should\x20be\x20used\x20**only**\ - \x20by\x20APIs\n\x20who\x20have\x20already\x20set\x20the\x20language_set\ - tings.java.package_name\"\x20field\n\x20in\x20gapic.yaml.\x20API\x20team\ - s\x20should\x20use\x20the\x20protobuf\x20java_package\x20option\n\x20whe\ - re\x20possible.\n\n\x20Example\x20of\x20a\x20YAML\x20configuration::\n\n\ - \x20\x20publishing:\n\x20\x20\x20\x20java_settings:\n\x20\x20\x20\x20\ - \x20\x20library_package:\x20com.google.cloud.pubsub.v1\n\n\r\n\x05\x04\ - \x03\x02\0\x05\x12\x04\xd1\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\ - \x04\xd1\x01\t\x18\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd1\x01\x1b\x1c\n\ - \xb6\x04\n\x04\x04\x03\x02\x01\x12\x04\xe1\x01\x02.\x1a\xa7\x04\x20Confi\ - gure\x20the\x20Java\x20class\x20name\x20to\x20use\x20instead\x20of\x20th\ - e\x20service's\x20for\x20its\n\x20corresponding\x20generated\x20GAPIC\ - \x20client.\x20Keys\x20are\x20fully-qualified\n\x20service\x20names\x20a\ - s\x20they\x20appear\x20in\x20the\x20protobuf\x20(including\x20the\x20ful\ - l\n\x20the\x20language_settings.java.interface_names\"\x20field\x20in\ - \x20gapic.yaml.\x20API\n\x20teams\x20should\x20otherwise\x20use\x20the\ - \x20service\x20name\x20as\x20it\x20appears\x20in\x20the\n\x20protobuf.\n\ - \n\x20Example\x20of\x20a\x20YAML\x20configuration::\n\n\x20\x20publishin\ - g:\n\x20\x20\x20\x20java_settings:\n\x20\x20\x20\x20\x20\x20service_clas\ - s_names:\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.pubsub.v1.Publishe\ - r:\x20TopicAdmin\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.pubsub.v1.\ - Subscriber:\x20SubscriptionAdmin\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\ - \xe1\x01\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xe1\x01\x16)\n\r\ - \n\x05\x04\x03\x02\x01\x03\x12\x04\xe1\x01,-\n\x1e\n\x04\x04\x03\x02\x02\ - \x12\x04\xe4\x01\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\x03\ - \x02\x02\x06\x12\x04\xe4\x01\x02\x18\n\r\n\x05\x04\x03\x02\x02\x01\x12\ - \x04\xe4\x01\x19\x1f\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xe4\x01\"#\n2\ - \n\x02\x04\x04\x12\x06\xe8\x01\0\xeb\x01\x01\x1a$\x20Settings\x20for\x20\ - C++\x20client\x20libraries.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xe8\x01\ - \x08\x13\n\x1e\n\x04\x04\x04\x02\0\x12\x04\xea\x01\x02$\x1a\x10\x20Some\ - \x20settings.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xea\x01\x02\x18\n\r\ - \n\x05\x04\x04\x02\0\x01\x12\x04\xea\x01\x19\x1f\n\r\n\x05\x04\x04\x02\0\ - \x03\x12\x04\xea\x01\"#\n2\n\x02\x04\x05\x12\x06\xee\x01\0\xf1\x01\x01\ - \x1a$\x20Settings\x20for\x20Php\x20client\x20libraries.\n\n\x0b\n\x03\ - \x04\x05\x01\x12\x04\xee\x01\x08\x13\n\x1e\n\x04\x04\x05\x02\0\x12\x04\ - \xf0\x01\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\x05\x02\0\x06\ - \x12\x04\xf0\x01\x02\x18\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xf0\x01\x19\ - \x1f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xf0\x01\"#\n5\n\x02\x04\x06\x12\ - \x06\xf4\x01\0\xf7\x01\x01\x1a'\x20Settings\x20for\x20Python\x20client\ - \x20libraries.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xf4\x01\x08\x16\n\x1e\n\ - \x04\x04\x06\x02\0\x12\x04\xf6\x01\x02$\x1a\x10\x20Some\x20settings.\n\n\ - \r\n\x05\x04\x06\x02\0\x06\x12\x04\xf6\x01\x02\x18\n\r\n\x05\x04\x06\x02\ - \0\x01\x12\x04\xf6\x01\x19\x1f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xf6\ - \x01\"#\n3\n\x02\x04\x07\x12\x06\xfa\x01\0\xfd\x01\x01\x1a%\x20Settings\ - \x20for\x20Node\x20client\x20libraries.\n\n\x0b\n\x03\x04\x07\x01\x12\ - \x04\xfa\x01\x08\x14\n\x1e\n\x04\x04\x07\x02\0\x12\x04\xfc\x01\x02$\x1a\ - \x10\x20Some\x20settings.\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\xfc\x01\ - \x02\x18\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xfc\x01\x19\x1f\n\r\n\x05\ - \x04\x07\x02\0\x03\x12\x04\xfc\x01\"#\n5\n\x02\x04\x08\x12\x06\x80\x02\0\ - \xa1\x02\x01\x1a'\x20Settings\x20for\x20Dotnet\x20client\x20libraries.\n\ - \n\x0b\n\x03\x04\x08\x01\x12\x04\x80\x02\x08\x16\n\x1e\n\x04\x04\x08\x02\ - \0\x12\x04\x82\x02\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\x08\ - \x02\0\x06\x12\x04\x82\x02\x02\x18\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\ - \x82\x02\x19\x1f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x82\x02\"#\n\xe6\ - \x01\n\x04\x04\x08\x02\x01\x12\x04\x89\x02\x02+\x1a\xd7\x01\x20Map\x20fr\ - om\x20original\x20service\x20names\x20to\x20renamed\x20versions.\n\x20Th\ - is\x20is\x20used\x20when\x20the\x20default\x20generated\x20types\n\x20wo\ - uld\x20cause\x20a\x20naming\x20conflict.\x20(Neither\x20name\x20is\n\x20\ - fully-qualified.)\n\x20Example:\x20Subscriber\x20to\x20SubscriberService\ - Api.\n\n\r\n\x05\x04\x08\x02\x01\x06\x12\x04\x89\x02\x02\x15\n\r\n\x05\ - \x04\x08\x02\x01\x01\x12\x04\x89\x02\x16&\n\r\n\x05\x04\x08\x02\x01\x03\ - \x12\x04\x89\x02)*\n\x8d\x02\n\x04\x04\x08\x02\x02\x12\x04\x90\x02\x02,\ - \x1a\xfe\x01\x20Map\x20from\x20full\x20resource\x20types\x20to\x20the\ - \x20effective\x20short\x20name\n\x20for\x20the\x20resource.\x20This\x20i\ - s\x20used\x20when\x20otherwise\x20resource\n\x20named\x20from\x20differe\ - nt\x20services\x20would\x20cause\x20naming\x20collisions.\n\x20Example\ - \x20entry:\n\x20\"datalabeling.googleapis.com/Dataset\":\x20\"DataLabeli\ - ngDataset\"\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\x90\x02\x02\x15\n\r\ - \n\x05\x04\x08\x02\x02\x01\x12\x04\x90\x02\x16'\n\r\n\x05\x04\x08\x02\ - \x02\x03\x12\x04\x90\x02*+\n\x9e\x02\n\x04\x04\x08\x02\x03\x12\x04\x97\ - \x02\x02(\x1a\x8f\x02\x20List\x20of\x20full\x20resource\x20types\x20to\ - \x20ignore\x20during\x20generation.\n\x20This\x20is\x20typically\x20used\ - \x20for\x20API-specific\x20Location\x20resources,\n\x20which\x20should\ - \x20be\x20handled\x20by\x20the\x20generator\x20as\x20if\x20they\x20were\ - \x20actually\n\x20the\x20common\x20Location\x20resources.\n\x20Example\ - \x20entry:\x20\"documentai.googleapis.com/Location\"\n\n\r\n\x05\x04\x08\ - \x02\x03\x04\x12\x04\x97\x02\x02\n\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\ - \x97\x02\x0b\x11\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\x97\x02\x12#\n\r\ - \n\x05\x04\x08\x02\x03\x03\x12\x04\x97\x02&'\n}\n\x04\x04\x08\x02\x04\ - \x12\x04\x9b\x02\x02/\x1ao\x20Namespaces\x20which\x20must\x20be\x20alias\ - ed\x20in\x20snippets\x20due\x20to\n\x20a\x20known\x20(but\x20non-generat\ - or-predictable)\x20naming\x20collision\n\n\r\n\x05\x04\x08\x02\x04\x04\ - \x12\x04\x9b\x02\x02\n\n\r\n\x05\x04\x08\x02\x04\x05\x12\x04\x9b\x02\x0b\ - \x11\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\x9b\x02\x12*\n\r\n\x05\x04\ - \x08\x02\x04\x03\x12\x04\x9b\x02-.\n\xc7\x01\n\x04\x04\x08\x02\x05\x12\ - \x04\xa0\x02\x02-\x1a\xb8\x01\x20Method\x20signatures\x20(in\x20the\x20f\ - orm\x20\"service.method(signature)\")\n\x20which\x20are\x20provided\x20s\ - eparately,\x20so\x20shouldn't\x20be\x20generated.\n\x20Snippets\x20*call\ - ing*\x20these\x20methods\x20are\x20still\x20generated,\x20however.\n\n\r\ - \n\x05\x04\x08\x02\x05\x04\x12\x04\xa0\x02\x02\n\n\r\n\x05\x04\x08\x02\ - \x05\x05\x12\x04\xa0\x02\x0b\x11\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\ - \xa0\x02\x12(\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\xa0\x02+,\n3\n\x02\ - \x04\t\x12\x06\xa4\x02\0\xa7\x02\x01\x1a%\x20Settings\x20for\x20Ruby\x20\ - client\x20libraries.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xa4\x02\x08\x14\n\ - \x1e\n\x04\x04\t\x02\0\x12\x04\xa6\x02\x02$\x1a\x10\x20Some\x20settings.\ - \n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\xa6\x02\x02\x18\n\r\n\x05\x04\t\x02\ - \0\x01\x12\x04\xa6\x02\x19\x1f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xa6\x02\ - \"#\n1\n\x02\x04\n\x12\x06\xaa\x02\0\xad\x02\x01\x1a#\x20Settings\x20for\ - \x20Go\x20client\x20libraries.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xaa\x02\ - \x08\x12\n\x1e\n\x04\x04\n\x02\0\x12\x04\xac\x02\x02$\x1a\x10\x20Some\ - \x20settings.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xac\x02\x02\x18\n\r\n\ - \x05\x04\n\x02\0\x01\x12\x04\xac\x02\x19\x1f\n\r\n\x05\x04\n\x02\0\x03\ - \x12\x04\xac\x02\"#\nC\n\x02\x04\x0b\x12\x06\xb0\x02\0\xdf\x02\x01\x1a5\ - \x20Describes\x20the\x20generator\x20configuration\x20for\x20a\x20method\ - .\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xb0\x02\x08\x16\n\x90\x03\n\x04\x04\ - \x0b\x03\0\x12\x06\xb6\x02\x02\xc7\x02\x03\x1a\xff\x02\x20Describes\x20s\ - ettings\x20to\x20use\x20when\x20generating\x20API\x20methods\x20that\x20\ - use\x20the\n\x20long-running\x20operation\x20pattern.\n\x20All\x20defaul\ - t\x20values\x20below\x20are\x20from\x20those\x20used\x20in\x20the\x20cli\ - ent\x20library\n\x20generators\x20(e.g.\n\x20[Java](https://github.com/g\ - oogleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c440\ - 4803/src/main/java/com/google/api/generator/gapic/composer/common/RetryS\ - ettingsComposer.java)).\n\n\r\n\x05\x04\x0b\x03\0\x01\x12\x04\xb6\x02\n\ - \x15\nk\n\x06\x04\x0b\x03\0\x02\0\x12\x04\xb9\x02\x044\x1a[\x20Initial\ - \x20delay\x20after\x20which\x20the\x20first\x20poll\x20request\x20will\ - \x20be\x20made.\n\x20Default\x20value:\x205\x20seconds.\n\n\x0f\n\x07\ - \x04\x0b\x03\0\x02\0\x06\x12\x04\xb9\x02\x04\x1c\n\x0f\n\x07\x04\x0b\x03\ - \0\x02\0\x01\x12\x04\xb9\x02\x1d/\n\x0f\n\x07\x04\x0b\x03\0\x02\0\x03\ - \x12\x04\xb9\x0223\n\x88\x01\n\x06\x04\x0b\x03\0\x02\x01\x12\x04\xbe\x02\ - \x04$\x1ax\x20Multiplier\x20to\x20gradually\x20increase\x20delay\x20betw\ - een\x20subsequent\x20polls\x20until\x20it\n\x20reaches\x20max_poll_delay\ - .\n\x20Default\x20value:\x201.5.\n\n\x0f\n\x07\x04\x0b\x03\0\x02\x01\x05\ - \x12\x04\xbe\x02\x04\t\n\x0f\n\x07\x04\x0b\x03\0\x02\x01\x01\x12\x04\xbe\ - \x02\n\x1f\n\x0f\n\x07\x04\x0b\x03\0\x02\x01\x03\x12\x04\xbe\x02\"#\n`\n\ - \x06\x04\x0b\x03\0\x02\x02\x12\x04\xc2\x02\x040\x1aP\x20Maximum\x20time\ - \x20between\x20two\x20subsequent\x20poll\x20requests.\n\x20Default\x20va\ - lue:\x2045\x20seconds.\n\n\x0f\n\x07\x04\x0b\x03\0\x02\x02\x06\x12\x04\ - \xc2\x02\x04\x1c\n\x0f\n\x07\x04\x0b\x03\0\x02\x02\x01\x12\x04\xc2\x02\ - \x1d+\n\x0f\n\x07\x04\x0b\x03\0\x02\x02\x03\x12\x04\xc2\x02./\nC\n\x06\ - \x04\x0b\x03\0\x02\x03\x12\x04\xc6\x02\x044\x1a3\x20Total\x20polling\x20\ - timeout.\n\x20Default\x20value:\x205\x20minutes.\n\n\x0f\n\x07\x04\x0b\ - \x03\0\x02\x03\x06\x12\x04\xc6\x02\x04\x1c\n\x0f\n\x07\x04\x0b\x03\0\x02\ - \x03\x01\x12\x04\xc6\x02\x1d/\n\x0f\n\x07\x04\x0b\x03\0\x02\x03\x03\x12\ - \x04\xc6\x0223\n\x92\x01\n\x04\x04\x0b\x02\0\x12\x04\xcb\x02\x02\x16\x1a\ - \x83\x01\x20The\x20fully\x20qualified\x20name\x20of\x20the\x20method,\ - \x20for\x20which\x20the\x20options\x20below\x20apply.\n\x20This\x20is\ - \x20used\x20to\x20find\x20the\x20method\x20to\x20apply\x20the\x20options\ - .\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xcb\x02\x02\x08\n\r\n\x05\x04\ - \x0b\x02\0\x01\x12\x04\xcb\x02\t\x11\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\ - \xcb\x02\x14\x15\n\xc9\x04\n\x04\x04\x0b\x02\x01\x12\x04\xde\x02\x02\x1f\ - \x1a\xba\x04\x20Describes\x20settings\x20to\x20use\x20for\x20long-runnin\ - g\x20operations\x20when\x20generating\n\x20API\x20methods\x20for\x20RPCs\ - .\x20Complements\x20RPCs\x20that\x20use\x20the\x20annotations\x20in\n\ - \x20google/longrunning/operations.proto.\n\n\x20Example\x20of\x20a\x20YA\ - ML\x20configuration::\n\n\x20\x20publishing:\n\x20\x20\x20\x20method_set\ - tings:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20google.cloud.speech.v2\ - .Speech.BatchRecognize\n\x20\x20\x20\x20\x20\x20\x20\x20long_running:\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20initial_poll_delay:\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seconds:\x2060\x20#\x201\x20minu\ - te\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20poll_delay_multiplier:\x201.\ - 5\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20max_poll_delay:\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20seconds:\x20360\x20#\x206\x20minutes\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20total_poll_timeout:\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seconds:\x2054000\x20#\x2090\ - \x20minutes\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xde\x02\x02\r\n\r\n\ - \x05\x04\x0b\x02\x01\x01\x12\x04\xde\x02\x0e\x1a\n\r\n\x05\x04\x0b\x02\ - \x01\x03\x12\x04\xde\x02\x1d\x1e\n\x8f\x01\n\x02\x05\0\x12\x06\xe3\x02\0\ - \xfb\x02\x01\x1a\x80\x01\x20The\x20organization\x20for\x20which\x20the\ - \x20client\x20libraries\x20are\x20being\x20published.\n\x20Affects\x20th\ - e\x20url\x20where\x20generated\x20docs\x20are\x20published,\x20etc.\n\n\ - \x0b\n\x03\x05\0\x01\x12\x04\xe3\x02\x05\x1e\n\x1b\n\x04\x05\0\x02\0\x12\ - \x04\xe5\x02\x02.\x1a\r\x20Not\x20useful.\n\n\r\n\x05\x05\0\x02\0\x01\ - \x12\x04\xe5\x02\x02)\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xe5\x02,-\n*\n\ - \x04\x05\0\x02\x01\x12\x04\xe8\x02\x02\x0c\x1a\x1c\x20Google\x20Cloud\ - \x20Platform\x20Org.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\xe8\x02\x02\ - \x07\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xe8\x02\n\x0b\n&\n\x04\x05\0\ - \x02\x02\x12\x04\xeb\x02\x02\n\x1a\x18\x20Ads\x20(Advertising)\x20Org.\n\ - \n\r\n\x05\x05\0\x02\x02\x01\x12\x04\xeb\x02\x02\x05\n\r\n\x05\x05\0\x02\ - \x02\x02\x12\x04\xeb\x02\x08\t\n\x1b\n\x04\x05\0\x02\x03\x12\x04\xee\x02\ - \x02\r\x1a\r\x20Photos\x20Org.\n\n\r\n\x05\x05\0\x02\x03\x01\x12\x04\xee\ - \x02\x02\x08\n\r\n\x05\x05\0\x02\x03\x02\x12\x04\xee\x02\x0b\x0c\n\x20\n\ - \x04\x05\0\x02\x04\x12\x04\xf1\x02\x02\x12\x1a\x12\x20Street\x20View\x20\ - Org.\n\n\r\n\x05\x05\0\x02\x04\x01\x12\x04\xf1\x02\x02\r\n\r\n\x05\x05\0\ - \x02\x04\x02\x12\x04\xf1\x02\x10\x11\n\x1d\n\x04\x05\0\x02\x05\x12\x04\ - \xf4\x02\x02\x0f\x1a\x0f\x20Shopping\x20Org.\n\n\r\n\x05\x05\0\x02\x05\ - \x01\x12\x04\xf4\x02\x02\n\n\r\n\x05\x05\0\x02\x05\x02\x12\x04\xf4\x02\r\ - \x0e\n\x18\n\x04\x05\0\x02\x06\x12\x04\xf7\x02\x02\n\x1a\n\x20Geo\x20Org\ - .\n\n\r\n\x05\x05\0\x02\x06\x01\x12\x04\xf7\x02\x02\x05\n\r\n\x05\x05\0\ - \x02\x06\x02\x12\x04\xf7\x02\x08\t\nF\n\x04\x05\0\x02\x07\x12\x04\xfa\ - \x02\x02\x14\x1a8\x20Generative\x20AI\x20-\x20https://developers.generat\ - iveai.google\n\n\r\n\x05\x05\0\x02\x07\x01\x12\x04\xfa\x02\x02\x0f\n\r\n\ - \x05\x05\0\x02\x07\x02\x12\x04\xfa\x02\x12\x13\n>\n\x02\x05\x01\x12\x06\ - \xfe\x02\0\x89\x03\x01\x1a0\x20To\x20where\x20should\x20client\x20librar\ - ies\x20be\x20published?\n\n\x0b\n\x03\x05\x01\x01\x12\x04\xfe\x02\x05\ - \x1d\n^\n\x04\x05\x01\x02\0\x12\x04\x81\x03\x02-\x1aP\x20Client\x20libra\ - ries\x20will\x20neither\x20be\x20generated\x20nor\x20published\x20to\x20\ - package\n\x20managers.\n\n\r\n\x05\x05\x01\x02\0\x01\x12\x04\x81\x03\x02\ - (\n\r\n\x05\x05\x01\x02\0\x02\x12\x04\x81\x03+,\n}\n\x04\x05\x01\x02\x01\ - \x12\x04\x85\x03\x02\x0e\x1ao\x20Generate\x20the\x20client\x20library\ - \x20in\x20a\x20repo\x20under\x20github.com/googleapis,\n\x20but\x20don't\ - \x20publish\x20it\x20to\x20package\x20managers.\n\n\r\n\x05\x05\x01\x02\ - \x01\x01\x12\x04\x85\x03\x02\x08\n\r\n\x05\x05\x01\x02\x01\x02\x12\x04\ - \x85\x03\x0b\r\nU\n\x04\x05\x01\x02\x02\x12\x04\x88\x03\x02\x17\x1aG\x20\ - Publish\x20the\x20library\x20to\x20package\x20managers\x20like\x20nuget.\ - org\x20and\x20npmjs.com.\n\n\r\n\x05\x05\x01\x02\x02\x01\x12\x04\x88\x03\ - \x02\x11\n\r\n\x05\x05\x01\x02\x02\x02\x12\x04\x88\x03\x14\x16b\x06proto\ - 3\ + \n\x17google/api/client.proto\x12\ngoogle.api\x1a\x20google/protobuf/des\ + criptor.proto:J\n\x10method_signature\x18\x9b\x08\x20\x03(\t\x12\x1e.goo\ + gle.protobuf.MethodOptionsR\x0fmethodSignature:C\n\x0cdefault_host\x18\ + \x99\x08\x20\x01(\t\x12\x1f.google.protobuf.ServiceOptionsR\x0bdefaultHo\ + st:C\n\x0coauth_scopes\x18\x9a\x08\x20\x01(\t\x12\x1f.google.protobuf.Se\ + rviceOptionsR\x0boauthScopesBi\n\x0ecom.google.apiB\x0bClientProtoP\x01Z\ + Agoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\ + \x02\x04GAPIJ\x94\x17\n\x06\x12\x04\x0f\0c\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0*\n\ + \x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\ + \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\ + \x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\x12\x03\ + \x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\ + \n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0@\x01\n\x85\ + \x0b\n\x02\x07\0\x12\x03?\x02*\x1a\xf9\n\x20A\x20definition\x20of\x20a\ + \x20client\x20library\x20method\x20signature.\n\n\x20In\x20client\x20lib\ + raries,\x20each\x20proto\x20RPC\x20corresponds\x20to\x20one\x20or\x20mor\ + e\x20methods\n\x20which\x20the\x20end\x20user\x20is\x20able\x20to\x20cal\ + l,\x20and\x20calls\x20the\x20underlying\x20RPC.\n\x20Normally,\x20this\ + \x20method\x20receives\x20a\x20single\x20argument\x20(a\x20struct\x20or\ + \x20instance\n\x20corresponding\x20to\x20the\x20RPC\x20request\x20object\ + ).\x20Defining\x20this\x20field\x20will\n\x20add\x20one\x20or\x20more\ + \x20overloads\x20providing\x20flattened\x20or\x20simpler\x20method\x20si\ + gnatures\n\x20in\x20some\x20languages.\n\n\x20The\x20fields\x20on\x20the\ + \x20method\x20signature\x20are\x20provided\x20as\x20a\x20comma-separated\ + \n\x20string.\n\n\x20For\x20example,\x20the\x20proto\x20RPC\x20and\x20an\ + notation:\n\n\x20\x20\x20rpc\x20CreateSubscription(CreateSubscriptionReq\ + uest)\n\x20\x20\x20\x20\x20\x20\x20returns\x20(Subscription)\x20{\n\x20\ + \x20\x20\x20\x20option\x20(google.api.method_signature)\x20=\x20\"name,t\ + opic\";\n\x20\x20\x20}\n\n\x20Would\x20add\x20the\x20following\x20Java\ + \x20overload\x20(in\x20addition\x20to\x20the\x20method\x20accepting\n\ + \x20the\x20request\x20object):\n\n\x20\x20\x20public\x20final\x20Subscri\ + ption\x20createSubscription(String\x20name,\x20String\x20topic)\n\n\x20T\ + he\x20following\x20backwards-compatibility\x20guidelines\x20apply:\n\n\ + \x20\x20\x20*\x20Adding\x20this\x20annotation\x20to\x20an\x20unannotated\ + \x20method\x20is\x20backwards\n\x20\x20\x20\x20\x20compatible.\n\x20\x20\ + \x20*\x20Adding\x20this\x20annotation\x20to\x20a\x20method\x20which\x20a\ + lready\x20has\x20existing\n\x20\x20\x20\x20\x20method\x20signature\x20an\ + notations\x20is\x20backwards\x20compatible\x20if\x20and\x20only\x20if\n\ + \x20\x20\x20\x20\x20the\x20new\x20method\x20signature\x20annotation\x20i\ + s\x20last\x20in\x20the\x20sequence.\n\x20\x20\x20*\x20Modifying\x20or\ + \x20removing\x20an\x20existing\x20method\x20signature\x20annotation\x20i\ + s\n\x20\x20\x20\x20\x20a\x20breaking\x20change.\n\x20\x20\x20*\x20Re-ord\ + ering\x20existing\x20method\x20signature\x20annotations\x20is\x20a\x20br\ + eaking\n\x20\x20\x20\x20\x20change.\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\ + \x07$\n\n\n\x03\x07\0\x04\x12\x03?\x02\n\n\n\n\x03\x07\0\x05\x12\x03?\ + \x0b\x11\n\n\n\x03\x07\0\x01\x12\x03?\x12\"\n\n\n\x03\x07\0\x03\x12\x03?\ + %)\n\t\n\x01\x07\x12\x04B\0c\x01\n\xca\x01\n\x02\x07\x01\x12\x03L\x02\ + \x1d\x1a\xbe\x01\x20The\x20hostname\x20for\x20this\x20service.\n\x20This\ + \x20should\x20be\x20specified\x20with\x20no\x20prefix\x20or\x20protocol.\ + \n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\ + \x20option\x20(google.api.default_host)\x20=\x20\"foo.googleapi.com\";\n\ + \x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x01\x02\x12\x03B\ + \x07%\n\n\n\x03\x07\x01\x05\x12\x03L\x02\x08\n\n\n\x03\x07\x01\x01\x12\ + \x03L\t\x15\n\n\n\x03\x07\x01\x03\x12\x03L\x18\x1c\n\xc3\x03\n\x02\x07\ + \x02\x12\x03b\x02\x1d\x1a\xb7\x03\x20OAuth\x20scopes\x20needed\x20for\ + \x20the\x20client.\n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\ + \x20\x20\x20\x20\x20option\x20(google.api.oauth_scopes)\x20=\x20\\\n\x20\ + \x20\x20\x20\x20\x20\x20\"https://www.googleapis.com/auth/cloud-platform\ + \";\n\x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\x20If\x20there\x20is\x20\ + more\x20than\x20one\x20scope,\x20use\x20a\x20comma-separated\x20string:\ + \n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\ + \x20option\x20(google.api.oauth_scopes)\x20=\x20\\\n\x20\x20\x20\x20\x20\ + \x20\x20\"https://www.googleapis.com/auth/cloud-platform,\"\n\x20\x20\ + \x20\x20\x20\x20\x20\"https://www.googleapis.com/auth/monitoring\";\n\ + \x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x02\x02\x12\x03B\ + \x07%\n\n\n\x03\x07\x02\x05\x12\x03b\x02\x08\n\n\n\x03\x07\x02\x01\x12\ + \x03b\t\x15\n\n\n\x03\x07\x02\x03\x12\x03b\x18\x1cb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/config_change.rs b/googleapis-raw/src/api/config_change.rs index bf0be97..527857e 100644 --- a/googleapis-raw/src/api/config_change.rs +++ b/googleapis-raw/src/api/config_change.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,25 +16,54 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/config_change.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// Output generated from semantically comparing two versions of a service +/// configuration. +/// +/// Includes detailed information about a field that have changed with +/// applicable advice about potential consequences for the change, such as +/// backwards-incompatibility. +// @@protoc_insertion_point(message:google.api.ConfigChange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ConfigChange { // message fields + /// Object hierarchy path to the change, with levels separated by a '.' + /// character. For repeated fields, an applicable unique identifier field is + /// used for the index (usually selector, name, or id). For maps, the term + /// 'key' is used. If the field has no unique identifier, the numeric index + /// is used. + /// Examples: + /// - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction + /// - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value + /// - logging.producer_destinations[0] + // @@protoc_insertion_point(field:google.api.ConfigChange.element) pub element: ::std::string::String, + /// Value of the changed object in the old Service configuration, + /// in JSON format. This field will not be populated if ChangeType == ADDED. + // @@protoc_insertion_point(field:google.api.ConfigChange.old_value) pub old_value: ::std::string::String, + /// Value of the changed object in the new Service configuration, + /// in JSON format. This field will not be populated if ChangeType == REMOVED. + // @@protoc_insertion_point(field:google.api.ConfigChange.new_value) pub new_value: ::std::string::String, - pub change_type: ChangeType, - pub advices: ::protobuf::RepeatedField, + /// The type for this change, either ADDED, REMOVED, or MODIFIED. + // @@protoc_insertion_point(field:google.api.ConfigChange.change_type) + pub change_type: ::protobuf::EnumOrUnknown, + /// Collection of advice provided for this change, useful for determining the + /// possible impact of this change. + // @@protoc_insertion_point(field:google.api.ConfigChange.advices) + pub advices: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.ConfigChange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ConfigChange { @@ -47,156 +77,69 @@ impl ConfigChange { ::std::default::Default::default() } - // string element = 1; - - - pub fn get_element(&self) -> &str { - &self.element - } - pub fn clear_element(&mut self) { - self.element.clear(); - } - - // Param is passed by value, moved - pub fn set_element(&mut self, v: ::std::string::String) { - self.element = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_element(&mut self) -> &mut ::std::string::String { - &mut self.element - } - - // Take field - pub fn take_element(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.element, ::std::string::String::new()) - } - - // string old_value = 2; - - - pub fn get_old_value(&self) -> &str { - &self.old_value - } - pub fn clear_old_value(&mut self) { - self.old_value.clear(); - } - - // Param is passed by value, moved - pub fn set_old_value(&mut self, v: ::std::string::String) { - self.old_value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_old_value(&mut self) -> &mut ::std::string::String { - &mut self.old_value - } - - // Take field - pub fn take_old_value(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.old_value, ::std::string::String::new()) - } - - // string new_value = 3; - - - pub fn get_new_value(&self) -> &str { - &self.new_value - } - pub fn clear_new_value(&mut self) { - self.new_value.clear(); - } - - // Param is passed by value, moved - pub fn set_new_value(&mut self, v: ::std::string::String) { - self.new_value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_new_value(&mut self) -> &mut ::std::string::String { - &mut self.new_value - } - - // Take field - pub fn take_new_value(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.new_value, ::std::string::String::new()) - } - - // .google.api.ChangeType change_type = 4; - - - pub fn get_change_type(&self) -> ChangeType { - self.change_type - } - pub fn clear_change_type(&mut self) { - self.change_type = ChangeType::CHANGE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_change_type(&mut self, v: ChangeType) { - self.change_type = v; - } - - // repeated .google.api.Advice advices = 5; - - - pub fn get_advices(&self) -> &[Advice] { - &self.advices - } - pub fn clear_advices(&mut self) { - self.advices.clear(); - } - - // Param is passed by value, moved - pub fn set_advices(&mut self, v: ::protobuf::RepeatedField) { - self.advices = v; - } - - // Mutable pointer to the field. - pub fn mut_advices(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.advices - } - - // Take field - pub fn take_advices(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.advices, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "element", + |m: &ConfigChange| { &m.element }, + |m: &mut ConfigChange| { &mut m.element }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "old_value", + |m: &ConfigChange| { &m.old_value }, + |m: &mut ConfigChange| { &mut m.old_value }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "new_value", + |m: &ConfigChange| { &m.new_value }, + |m: &mut ConfigChange| { &mut m.new_value }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "change_type", + |m: &ConfigChange| { &m.change_type }, + |m: &mut ConfigChange| { &mut m.change_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "advices", + |m: &ConfigChange| { &m.advices }, + |m: &mut ConfigChange| { &mut m.advices }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ConfigChange", + fields, + oneofs, + ) } } impl ::protobuf::Message for ConfigChange { + const NAME: &'static str = "ConfigChange"; + fn is_initialized(&self) -> bool { - for v in &self.advices { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.element)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.element = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.old_value)?; + 18 => { + self.old_value = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.new_value)?; + 26 => { + self.new_value = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.change_type, 4, &mut self.unknown_fields)? + 32 => { + self.change_type = is.read_enum_or_unknown()?; }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.advices)?; + 42 => { + self.advices.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -205,7 +148,7 @@ impl ::protobuf::Message for ConfigChange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.element.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.element); @@ -216,19 +159,19 @@ impl ::protobuf::Message for ConfigChange { if !self.new_value.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.new_value); } - if self.change_type != ChangeType::CHANGE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.change_type); + if self.change_type != ::protobuf::EnumOrUnknown::new(ChangeType::CHANGE_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.change_type.value()); } for value in &self.advices { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.element.is_empty() { os.write_string(1, &self.element)?; } @@ -238,121 +181,80 @@ impl ::protobuf::Message for ConfigChange { if !self.new_value.is_empty() { os.write_string(3, &self.new_value)?; } - if self.change_type != ChangeType::CHANGE_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.change_type))?; + if self.change_type != ::protobuf::EnumOrUnknown::new(ChangeType::CHANGE_TYPE_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.change_type))?; } for v in &self.advices { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ConfigChange { ConfigChange::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "element", - |m: &ConfigChange| { &m.element }, - |m: &mut ConfigChange| { &mut m.element }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "old_value", - |m: &ConfigChange| { &m.old_value }, - |m: &mut ConfigChange| { &mut m.old_value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "new_value", - |m: &ConfigChange| { &m.new_value }, - |m: &mut ConfigChange| { &mut m.new_value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "change_type", - |m: &ConfigChange| { &m.change_type }, - |m: &mut ConfigChange| { &mut m.change_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "advices", - |m: &ConfigChange| { &m.advices }, - |m: &mut ConfigChange| { &mut m.advices }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ConfigChange", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.element.clear(); + self.old_value.clear(); + self.new_value.clear(); + self.change_type = ::protobuf::EnumOrUnknown::new(ChangeType::CHANGE_TYPE_UNSPECIFIED); + self.advices.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ConfigChange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigChange::new) + static instance: ConfigChange = ConfigChange { + element: ::std::string::String::new(), + old_value: ::std::string::String::new(), + new_value: ::std::string::String::new(), + change_type: ::protobuf::EnumOrUnknown::from_i32(0), + advices: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ConfigChange { - fn clear(&mut self) { - self.element.clear(); - self.old_value.clear(); - self.new_value.clear(); - self.change_type = ChangeType::CHANGE_TYPE_UNSPECIFIED; - self.advices.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ConfigChange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ConfigChange").unwrap()).clone() } } -impl ::std::fmt::Debug for ConfigChange { +impl ::std::fmt::Display for ConfigChange { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ConfigChange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Generated advice about this change, used for providing more +/// information about how a change will affect the existing service. +// @@protoc_insertion_point(message:google.api.Advice) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Advice { // message fields + /// Useful description for why this advice was applied and what actions should + /// be taken to mitigate any implied risks. + // @@protoc_insertion_point(field:google.api.Advice.description) pub description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Advice.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Advice { @@ -366,47 +268,37 @@ impl Advice { ::std::default::Default::default() } - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Advice| { &m.description }, + |m: &mut Advice| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Advice", + fields, + oneofs, + ) } } impl ::protobuf::Message for Advice { + const NAME: &'static str = "Advice"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 18 => { + self.description = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -415,105 +307,85 @@ impl ::protobuf::Message for Advice { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.description.is_empty() { os.write_string(2, &self.description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Advice { Advice::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Advice| { &m.description }, - |m: &mut Advice| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Advice", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Advice { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Advice::new) + static instance: Advice = Advice { + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Advice { - fn clear(&mut self) { - self.description.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Advice { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Advice").unwrap()).clone() } } -impl ::std::fmt::Debug for Advice { +impl ::std::fmt::Display for Advice { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Advice { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// Classifies set of possible modifications to an object in the service +/// configuration. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.ChangeType) pub enum ChangeType { + // @@protoc_insertion_point(enum_value:google.api.ChangeType.CHANGE_TYPE_UNSPECIFIED) CHANGE_TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ChangeType.ADDED) ADDED = 1, + // @@protoc_insertion_point(enum_value:google.api.ChangeType.REMOVED) REMOVED = 2, + // @@protoc_insertion_point(enum_value:google.api.ChangeType.MODIFIED) MODIFIED = 3, } -impl ::protobuf::ProtobufEnum for ChangeType { +impl ::protobuf::Enum for ChangeType { + const NAME: &'static str = "ChangeType"; + fn value(&self) -> i32 { *self as i32 } @@ -528,25 +400,34 @@ impl ::protobuf::ProtobufEnum for ChangeType { } } - fn values() -> &'static [Self] { - static values: &'static [ChangeType] = &[ - ChangeType::CHANGE_TYPE_UNSPECIFIED, - ChangeType::ADDED, - ChangeType::REMOVED, - ChangeType::MODIFIED, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "CHANGE_TYPE_UNSPECIFIED" => ::std::option::Option::Some(ChangeType::CHANGE_TYPE_UNSPECIFIED), + "ADDED" => ::std::option::Option::Some(ChangeType::ADDED), + "REMOVED" => ::std::option::Option::Some(ChangeType::REMOVED), + "MODIFIED" => ::std::option::Option::Some(ChangeType::MODIFIED), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ChangeType", file_descriptor_proto()) - }) - } + const VALUES: &'static [ChangeType] = &[ + ChangeType::CHANGE_TYPE_UNSPECIFIED, + ChangeType::ADDED, + ChangeType::REMOVED, + ChangeType::MODIFIED, + ]; } -impl ::std::marker::Copy for ChangeType { +impl ::protobuf::EnumFull for ChangeType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("ChangeType").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for ChangeType { @@ -555,9 +436,9 @@ impl ::std::default::Default for ChangeType { } } -impl ::protobuf::reflect::ProtobufValue for ChangeType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl ChangeType { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ChangeType") } } @@ -572,10 +453,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\ CHANGE_TYPE_UNSPECIFIED\x10\0\x12\t\n\x05ADDED\x10\x01\x12\x0b\n\x07REMO\ VED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03Bq\n\x0ecom.google.apiB\x11Conf\ igChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchan\ - ge;configchange\xa2\x02\x04GAPIJ\xe5\x18\n\x06\x12\x04\x0e\0S\x01\n\xbc\ - \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\ - \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ - \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + ge;configchange\xa2\x02\x04GAPIJ\xe7\x18\n\x06\x12\x04\x0f\0T\x01\n\xbe\ + \x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\ + \x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ @@ -585,19 +466,19 @@ static file_descriptor_proto_data: &'static [u8] = b"\ RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0Z\n\t\n\x02\x08\x0b\x12\x03\x12\0Z\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\02\ - \n\t\n\x02\x08\x08\x12\x03\x14\02\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ - \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\x8e\x02\n\x02\x04\0\x12\x04\x1e\08\x01\x1a\x81\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ + \x08\x12\x03\x13\0Z\n\t\n\x02\x08\x0b\x12\x03\x13\0Z\n\x08\n\x01\x08\x12\ + \x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\ + \02\n\t\n\x02\x08\x08\x12\x03\x15\02\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\ + \n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ + \x08$\x12\x03\x17\0\"\n\x8e\x02\n\x02\x04\0\x12\x04\x1f\09\x01\x1a\x81\ \x02\x20Output\x20generated\x20from\x20semantically\x20comparing\x20two\ \x20versions\x20of\x20a\x20service\n\x20configuration.\n\n\x20Includes\ \x20detailed\x20information\x20about\x20a\x20field\x20that\x20have\x20ch\ anged\x20with\n\x20applicable\x20advice\x20about\x20potential\x20consequ\ ences\x20for\x20the\x20change,\x20such\x20as\n\x20backwards-incompatibil\ - ity.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x14\n\xff\x03\n\x04\x04\0\x02\ - \0\x12\x03(\x02\x15\x1a\xf1\x03\x20Object\x20hierarchy\x20path\x20to\x20\ + ity.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x14\n\xff\x03\n\x04\x04\0\x02\ + \0\x12\x03)\x02\x15\x1a\xf1\x03\x20Object\x20hierarchy\x20path\x20to\x20\ the\x20change,\x20with\x20levels\x20separated\x20by\x20a\x20'.'\n\x20cha\ racter.\x20For\x20repeated\x20fields,\x20an\x20applicable\x20unique\x20i\ dentifier\x20field\x20is\n\x20used\x20for\x20the\x20index\x20(usually\ @@ -607,65 +488,84 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s:\n\x20-\x20visibility.rules[selector==\"google.LibraryService.ListBook\ s\"].restriction\n\x20-\x20quota.metric_rules[selector==\"google\"].metr\ ic_costs[key==\"reads\"].value\n\x20-\x20logging.producer_destinations[0\ - ]\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03(\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03(\x13\x14\n\x97\ - \x01\n\x04\x04\0\x02\x01\x12\x03,\x02\x17\x1a\x89\x01\x20Value\x20of\x20\ + ]\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03)\x02\x08\n\x0c\n\x05\x04\0\x02\0\ + \x01\x12\x03)\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03)\x13\x14\n\x97\ + \x01\n\x04\x04\0\x02\x01\x12\x03-\x02\x17\x1a\x89\x01\x20Value\x20of\x20\ the\x20changed\x20object\x20in\x20the\x20old\x20Service\x20configuration\ ,\n\x20in\x20JSON\x20format.\x20This\x20field\x20will\x20not\x20be\x20po\ pulated\x20if\x20ChangeType\x20==\x20ADDED.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x05\x12\x03,\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\t\x12\n\x0c\ - \n\x05\x04\0\x02\x01\x03\x12\x03,\x15\x16\n\x99\x01\n\x04\x04\0\x02\x02\ - \x12\x030\x02\x17\x1a\x8b\x01\x20Value\x20of\x20the\x20changed\x20object\ + \x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03-\t\x12\n\x0c\ + \n\x05\x04\0\x02\x01\x03\x12\x03-\x15\x16\n\x99\x01\n\x04\x04\0\x02\x02\ + \x12\x031\x02\x17\x1a\x8b\x01\x20Value\x20of\x20the\x20changed\x20object\ \x20in\x20the\x20new\x20Service\x20configuration,\n\x20in\x20JSON\x20for\ mat.\x20This\x20field\x20will\x20not\x20be\x20populated\x20if\x20ChangeT\ - ype\x20==\x20REMOVED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x030\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x030\t\x12\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x030\x15\x16\nL\n\x04\x04\0\x02\x03\x12\x033\x02\x1d\x1a?\x20Th\ + ype\x20==\x20REMOVED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x031\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x02\x01\x12\x031\t\x12\n\x0c\n\x05\x04\0\x02\x02\ + \x03\x12\x031\x15\x16\nL\n\x04\x04\0\x02\x03\x12\x034\x02\x1d\x1a?\x20Th\ e\x20type\x20for\x20this\x20change,\x20either\x20ADDED,\x20REMOVED,\x20o\ - r\x20MODIFIED.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x033\x02\x0c\n\x0c\n\ - \x05\x04\0\x02\x03\x01\x12\x033\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ - \x033\x1b\x1c\ny\n\x04\x04\0\x02\x04\x12\x037\x02\x1e\x1al\x20Collection\ + r\x20MODIFIED.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x034\x02\x0c\n\x0c\n\ + \x05\x04\0\x02\x03\x01\x12\x034\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ + \x034\x1b\x1c\ny\n\x04\x04\0\x02\x04\x12\x038\x02\x1e\x1al\x20Collection\ \x20of\x20advice\x20provided\x20for\x20this\x20change,\x20useful\x20for\ \x20determining\x20the\n\x20possible\x20impact\x20of\x20this\x20change.\ - \n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x037\x02\n\n\x0c\n\x05\x04\0\x02\ - \x04\x06\x12\x037\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x037\x12\x19\ - \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x037\x1c\x1d\n\x8b\x01\n\x02\x04\x01\ - \x12\x04<\0@\x01\x1a\x7f\x20Generated\x20advice\x20about\x20this\x20chan\ + \n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x038\x02\n\n\x0c\n\x05\x04\0\x02\ + \x04\x06\x12\x038\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x038\x12\x19\ + \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x038\x1c\x1d\n\x8b\x01\n\x02\x04\x01\ + \x12\x04=\0A\x01\x1a\x7f\x20Generated\x20advice\x20about\x20this\x20chan\ ge,\x20used\x20for\x20providing\x20more\n\x20information\x20about\x20how\ \x20a\x20change\x20will\x20affect\x20the\x20existing\x20service.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03<\x08\x0e\n\x82\x01\n\x04\x04\x01\x02\0\x12\x03?\ + \x03\x04\x01\x01\x12\x03=\x08\x0e\n\x82\x01\n\x04\x04\x01\x02\0\x12\x03@\ \x02\x19\x1au\x20Useful\x20description\x20for\x20why\x20this\x20advice\ \x20was\x20applied\x20and\x20what\x20actions\x20should\n\x20be\x20taken\ \x20to\x20mitigate\x20any\x20implied\x20risks.\n\n\x0c\n\x05\x04\x01\x02\ - \0\x05\x12\x03?\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03?\t\x14\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03?\x17\x18\nb\n\x02\x05\0\x12\x04D\0S\ + \0\x05\x12\x03@\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03@\t\x14\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03@\x17\x18\nb\n\x02\x05\0\x12\x04E\0T\ \x01\x1aV\x20Classifies\x20set\x20of\x20possible\x20modifications\x20to\ \x20an\x20object\x20in\x20the\x20service\n\x20configuration.\n\n\n\n\x03\ - \x05\0\x01\x12\x03D\x05\x0f\n%\n\x04\x05\0\x02\0\x12\x03F\x02\x1e\x1a\ + \x05\0\x01\x12\x03E\x05\x0f\n%\n\x04\x05\0\x02\0\x12\x03G\x02\x1e\x1a\ \x18\x20No\x20value\x20was\x20provided.\n\n\x0c\n\x05\x05\0\x02\0\x01\ - \x12\x03F\x02\x19\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03F\x1c\x1d\ny\n\x04\ - \x05\0\x02\x01\x12\x03J\x02\x0c\x1al\x20The\x20changed\x20object\x20exis\ + \x12\x03G\x02\x19\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03G\x1c\x1d\ny\n\x04\ + \x05\0\x02\x01\x12\x03K\x02\x0c\x1al\x20The\x20changed\x20object\x20exis\ ts\x20in\x20the\x20'new'\x20service\x20configuration,\x20but\x20not\n\ \x20in\x20the\x20'old'\x20service\x20configuration.\n\n\x0c\n\x05\x05\0\ - \x02\x01\x01\x12\x03J\x02\x07\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03J\n\ - \x0b\ny\n\x04\x05\0\x02\x02\x12\x03N\x02\x0e\x1al\x20The\x20changed\x20o\ + \x02\x01\x01\x12\x03K\x02\x07\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03K\n\ + \x0b\ny\n\x04\x05\0\x02\x02\x12\x03O\x02\x0e\x1al\x20The\x20changed\x20o\ bject\x20exists\x20in\x20the\x20'old'\x20service\x20configuration,\x20bu\ t\x20not\n\x20in\x20the\x20'new'\x20service\x20configuration.\n\n\x0c\n\ - \x05\x05\0\x02\x02\x01\x12\x03N\x02\t\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ - \x03N\x0c\r\ne\n\x04\x05\0\x02\x03\x12\x03R\x02\x0f\x1aX\x20The\x20chang\ + \x05\x05\0\x02\x02\x01\x12\x03O\x02\t\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ + \x03O\x0c\r\ne\n\x04\x05\0\x02\x03\x12\x03S\x02\x0f\x1aX\x20The\x20chang\ ed\x20object\x20exists\x20in\x20both\x20service\x20configurations,\x20bu\ t\x20its\x20value\n\x20is\x20different.\n\n\x0c\n\x05\x05\0\x02\x03\x01\ - \x12\x03R\x02\n\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03R\r\x0eb\x06proto3\ + \x12\x03S\x02\n\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03S\r\x0eb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(ConfigChange::generated_message_descriptor_data()); + messages.push(Advice::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(ChangeType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/consumer.rs b/googleapis-raw/src/api/consumer.rs index 87fcc9d..97b0d15 100644 --- a/googleapis-raw/src/api/consumer.rs +++ b/googleapis-raw/src/api/consumer.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,25 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/consumer.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.ProjectProperties) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ProjectProperties { // message fields - pub properties: ::protobuf::RepeatedField, + /// List of per consumer project-specific properties. + // @@protoc_insertion_point(field:google.api.ProjectProperties.properties) + pub properties: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.ProjectProperties.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ProjectProperties { @@ -43,51 +48,37 @@ impl ProjectProperties { ::std::default::Default::default() } - // repeated .google.api.Property properties = 1; - - - pub fn get_properties(&self) -> &[Property] { - &self.properties - } - pub fn clear_properties(&mut self) { - self.properties.clear(); - } - - // Param is passed by value, moved - pub fn set_properties(&mut self, v: ::protobuf::RepeatedField) { - self.properties = v; - } - - // Mutable pointer to the field. - pub fn mut_properties(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.properties - } - - // Take field - pub fn take_properties(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.properties, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "properties", + |m: &ProjectProperties| { &m.properties }, + |m: &mut ProjectProperties| { &mut m.properties }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ProjectProperties", + fields, + oneofs, + ) } } impl ::protobuf::Message for ProjectProperties { + const NAME: &'static str = "ProjectProperties"; + fn is_initialized(&self) -> bool { - for v in &self.properties { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.properties)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.properties.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,108 +87,94 @@ impl ::protobuf::Message for ProjectProperties { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.properties { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.properties { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ProjectProperties { ProjectProperties::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "properties", - |m: &ProjectProperties| { &m.properties }, - |m: &mut ProjectProperties| { &mut m.properties }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ProjectProperties", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.properties.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ProjectProperties { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ProjectProperties::new) + static instance: ProjectProperties = ProjectProperties { + properties: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ProjectProperties { - fn clear(&mut self) { - self.properties.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ProjectProperties { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ProjectProperties").unwrap()).clone() } } -impl ::std::fmt::Debug for ProjectProperties { +impl ::std::fmt::Display for ProjectProperties { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ProjectProperties { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Defines project properties. +/// +/// API services can define properties that can be assigned to consumer projects +/// so that backends can perform response customization without having to make +/// additional calls or maintain additional storage. For example, Maps API +/// defines properties that controls map tile cache period, or whether to embed a +/// watermark in a result. +/// +/// These values can be set via API producer console. Only API providers can +/// define and set these properties. +// @@protoc_insertion_point(message:google.api.Property) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Property { // message fields + /// The name of the property (a.k.a key). + // @@protoc_insertion_point(field:google.api.Property.name) pub name: ::std::string::String, - pub field_type: Property_PropertyType, + /// The type of this property. + // @@protoc_insertion_point(field:google.api.Property.type) + pub type_: ::protobuf::EnumOrUnknown, + /// The description of the property + // @@protoc_insertion_point(field:google.api.Property.description) pub description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Property.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Property { @@ -211,94 +188,53 @@ impl Property { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.api.Property.PropertyType type = 2; - - - pub fn get_field_type(&self) -> Property_PropertyType { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = Property_PropertyType::UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Property_PropertyType) { - self.field_type = v; - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Property| { &m.name }, + |m: &mut Property| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &Property| { &m.type_ }, + |m: &mut Property| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Property| { &m.description }, + |m: &mut Property| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Property", + fields, + oneofs, + ) } } impl ::protobuf::Message for Property { + const NAME: &'static str = "Property"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 2, &mut self.unknown_fields)? + 16 => { + self.type_ = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -307,176 +243,161 @@ impl ::protobuf::Message for Property { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if self.field_type != Property_PropertyType::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.field_type); + if self.type_ != ::protobuf::EnumOrUnknown::new(property::PropertyType::UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.type_.value()); } if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if self.field_type != Property_PropertyType::UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.field_type))?; + if self.type_ != ::protobuf::EnumOrUnknown::new(property::PropertyType::UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.type_))?; } if !self.description.is_empty() { os.write_string(3, &self.description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Property { Property::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Property| { &m.name }, - |m: &mut Property| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &Property| { &m.field_type }, - |m: &mut Property| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Property| { &m.description }, - |m: &mut Property| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Property", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.type_ = ::protobuf::EnumOrUnknown::new(property::PropertyType::UNSPECIFIED); + self.description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Property { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Property::new) + static instance: Property = Property { + name: ::std::string::String::new(), + type_: ::protobuf::EnumOrUnknown::from_i32(0), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Property { - fn clear(&mut self) { - self.name.clear(); - self.field_type = Property_PropertyType::UNSPECIFIED; - self.description.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Property { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Property").unwrap()).clone() } } -impl ::std::fmt::Debug for Property { +impl ::std::fmt::Display for Property { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Property { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Property_PropertyType { - UNSPECIFIED = 0, - INT64 = 1, - BOOL = 2, - STRING = 3, - DOUBLE = 4, -} +/// Nested message and enums of message `Property` +pub mod property { + /// Supported data type of the property values + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.Property.PropertyType) + pub enum PropertyType { + // @@protoc_insertion_point(enum_value:google.api.Property.PropertyType.UNSPECIFIED) + UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.Property.PropertyType.INT64) + INT64 = 1, + // @@protoc_insertion_point(enum_value:google.api.Property.PropertyType.BOOL) + BOOL = 2, + // @@protoc_insertion_point(enum_value:google.api.Property.PropertyType.STRING) + STRING = 3, + // @@protoc_insertion_point(enum_value:google.api.Property.PropertyType.DOUBLE) + DOUBLE = 4, + } + + impl ::protobuf::Enum for PropertyType { + const NAME: &'static str = "PropertyType"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for Property_PropertyType { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(PropertyType::UNSPECIFIED), + 1 => ::std::option::Option::Some(PropertyType::INT64), + 2 => ::std::option::Option::Some(PropertyType::BOOL), + 3 => ::std::option::Option::Some(PropertyType::STRING), + 4 => ::std::option::Option::Some(PropertyType::DOUBLE), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Property_PropertyType::UNSPECIFIED), - 1 => ::std::option::Option::Some(Property_PropertyType::INT64), - 2 => ::std::option::Option::Some(Property_PropertyType::BOOL), - 3 => ::std::option::Option::Some(Property_PropertyType::STRING), - 4 => ::std::option::Option::Some(Property_PropertyType::DOUBLE), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "UNSPECIFIED" => ::std::option::Option::Some(PropertyType::UNSPECIFIED), + "INT64" => ::std::option::Option::Some(PropertyType::INT64), + "BOOL" => ::std::option::Option::Some(PropertyType::BOOL), + "STRING" => ::std::option::Option::Some(PropertyType::STRING), + "DOUBLE" => ::std::option::Option::Some(PropertyType::DOUBLE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [Property_PropertyType] = &[ - Property_PropertyType::UNSPECIFIED, - Property_PropertyType::INT64, - Property_PropertyType::BOOL, - Property_PropertyType::STRING, - Property_PropertyType::DOUBLE, + const VALUES: &'static [PropertyType] = &[ + PropertyType::UNSPECIFIED, + PropertyType::INT64, + PropertyType::BOOL, + PropertyType::STRING, + PropertyType::DOUBLE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Property.PropertyType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for PropertyType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Property.PropertyType").unwrap()).clone() + } -impl ::std::marker::Copy for Property_PropertyType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for Property_PropertyType { - fn default() -> Self { - Property_PropertyType::UNSPECIFIED + impl ::std::default::Default for PropertyType { + fn default() -> Self { + PropertyType::UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for Property_PropertyType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl PropertyType { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Property.PropertyType") + } } } @@ -489,9 +410,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ tion\"L\n\x0cPropertyType\x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\t\n\x05INT6\ 4\x10\x01\x12\x08\n\x04BOOL\x10\x02\x12\n\n\x06STRING\x10\x03\x12\n\n\ \x06DOUBLE\x10\x04Bh\n\x0ecom.google.apiB\rConsumerProtoP\x01ZEgoogle.go\ - lang.org/genproto/googleapis/api/serviceconfig;serviceconfigJ\xbb\x15\n\ - \x06\x12\x04\x0e\0Q\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202016\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ + lang.org/genproto/googleapis/api/serviceconfig;serviceconfigJ\xbc\x15\n\ + \x06\x12\x04\x0e\0Q\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\ + \x20Copyright\x202016\x20Google\x20Inc.\n\n\x20Licensed\x20under\x20the\ \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ @@ -568,14 +489,33 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x03P\t\x14\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03P\x17\x18b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(ProjectProperties::generated_message_descriptor_data()); + messages.push(Property::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(property::PropertyType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/context.rs b/googleapis-raw/src/api/context.rs index 2d02cec..92afbc1 100644 --- a/googleapis-raw/src/api/context.rs +++ b/googleapis-raw/src/api/context.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,27 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/context.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Context) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Context { // message fields - pub rules: ::protobuf::RepeatedField, + /// A list of RPC context rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Context.rules) + pub rules: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Context.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Context { @@ -43,51 +50,37 @@ impl Context { ::std::default::Default::default() } - // repeated .google.api.ContextRule rules = 1; - - - pub fn get_rules(&self) -> &[ContextRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Context| { &m.rules }, + |m: &mut Context| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Context", + fields, + oneofs, + ) } } impl ::protobuf::Message for Context { + const NAME: &'static str = "Context"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,110 +89,96 @@ impl ::protobuf::Message for Context { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Context { Context::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Context| { &m.rules }, - |m: &mut Context| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Context", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rules.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Context { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Context::new) + static instance: Context = Context { + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Context { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Context { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Context").unwrap()).clone() } } -impl ::std::fmt::Debug for Context { +impl ::std::fmt::Display for Context { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Context { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A context rule provides information about the context for an individual API +/// element. +// @@protoc_insertion_point(message:google.api.ContextRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ContextRule { // message fields + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.ContextRule.selector) pub selector: ::std::string::String, - pub requested: ::protobuf::RepeatedField<::std::string::String>, - pub provided: ::protobuf::RepeatedField<::std::string::String>, - pub allowed_request_extensions: ::protobuf::RepeatedField<::std::string::String>, - pub allowed_response_extensions: ::protobuf::RepeatedField<::std::string::String>, + /// A list of full type names of requested contexts. + // @@protoc_insertion_point(field:google.api.ContextRule.requested) + pub requested: ::std::vec::Vec<::std::string::String>, + /// A list of full type names of provided contexts. + // @@protoc_insertion_point(field:google.api.ContextRule.provided) + pub provided: ::std::vec::Vec<::std::string::String>, + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from client to backend. + // @@protoc_insertion_point(field:google.api.ContextRule.allowed_request_extensions) + pub allowed_request_extensions: ::std::vec::Vec<::std::string::String>, + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from backend to client. + // @@protoc_insertion_point(field:google.api.ContextRule.allowed_response_extensions) + pub allowed_response_extensions: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.ContextRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ContextRule { @@ -213,159 +192,69 @@ impl ContextRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // repeated string requested = 2; - - - pub fn get_requested(&self) -> &[::std::string::String] { - &self.requested - } - pub fn clear_requested(&mut self) { - self.requested.clear(); - } - - // Param is passed by value, moved - pub fn set_requested(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.requested = v; - } - - // Mutable pointer to the field. - pub fn mut_requested(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.requested - } - - // Take field - pub fn take_requested(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.requested, ::protobuf::RepeatedField::new()) - } - - // repeated string provided = 3; - - - pub fn get_provided(&self) -> &[::std::string::String] { - &self.provided - } - pub fn clear_provided(&mut self) { - self.provided.clear(); - } - - // Param is passed by value, moved - pub fn set_provided(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.provided = v; - } - - // Mutable pointer to the field. - pub fn mut_provided(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.provided - } - - // Take field - pub fn take_provided(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.provided, ::protobuf::RepeatedField::new()) - } - - // repeated string allowed_request_extensions = 4; - - - pub fn get_allowed_request_extensions(&self) -> &[::std::string::String] { - &self.allowed_request_extensions - } - pub fn clear_allowed_request_extensions(&mut self) { - self.allowed_request_extensions.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_request_extensions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_request_extensions = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_request_extensions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_request_extensions - } - - // Take field - pub fn take_allowed_request_extensions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_request_extensions, ::protobuf::RepeatedField::new()) - } - - // repeated string allowed_response_extensions = 5; - - - pub fn get_allowed_response_extensions(&self) -> &[::std::string::String] { - &self.allowed_response_extensions - } - pub fn clear_allowed_response_extensions(&mut self) { - self.allowed_response_extensions.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_response_extensions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_response_extensions = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_response_extensions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_response_extensions - } - - // Take field - pub fn take_allowed_response_extensions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_response_extensions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &ContextRule| { &m.selector }, + |m: &mut ContextRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "requested", + |m: &ContextRule| { &m.requested }, + |m: &mut ContextRule| { &mut m.requested }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "provided", + |m: &ContextRule| { &m.provided }, + |m: &mut ContextRule| { &mut m.provided }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "allowed_request_extensions", + |m: &ContextRule| { &m.allowed_request_extensions }, + |m: &mut ContextRule| { &mut m.allowed_request_extensions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "allowed_response_extensions", + |m: &ContextRule| { &m.allowed_response_extensions }, + |m: &mut ContextRule| { &mut m.allowed_response_extensions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ContextRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for ContextRule { + const NAME: &'static str = "ContextRule"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.requested)?; + 18 => { + self.requested.push(is.read_string()?); }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.provided)?; + 26 => { + self.provided.push(is.read_string()?); }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_request_extensions)?; + 34 => { + self.allowed_request_extensions.push(is.read_string()?); }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_response_extensions)?; + 42 => { + self.allowed_response_extensions.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -374,7 +263,7 @@ impl ::protobuf::Message for ContextRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); @@ -391,12 +280,12 @@ impl ::protobuf::Message for ContextRule { for value in &self.allowed_response_extensions { my_size += ::protobuf::rt::string_size(5, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } @@ -412,104 +301,59 @@ impl ::protobuf::Message for ContextRule { for v in &self.allowed_response_extensions { os.write_string(5, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ContextRule { ContextRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &ContextRule| { &m.selector }, - |m: &mut ContextRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "requested", - |m: &ContextRule| { &m.requested }, - |m: &mut ContextRule| { &mut m.requested }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "provided", - |m: &ContextRule| { &m.provided }, - |m: &mut ContextRule| { &mut m.provided }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_request_extensions", - |m: &ContextRule| { &m.allowed_request_extensions }, - |m: &mut ContextRule| { &mut m.allowed_request_extensions }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_response_extensions", - |m: &ContextRule| { &m.allowed_response_extensions }, - |m: &mut ContextRule| { &mut m.allowed_response_extensions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ContextRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ContextRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ContextRule::new) - } -} - -impl ::protobuf::Clear for ContextRule { fn clear(&mut self) { self.selector.clear(); self.requested.clear(); self.provided.clear(); self.allowed_request_extensions.clear(); self.allowed_response_extensions.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ContextRule { + static instance: ContextRule = ContextRule { + selector: ::std::string::String::new(), + requested: ::std::vec::Vec::new(), + provided: ::std::vec::Vec::new(), + allowed_request_extensions: ::std::vec::Vec::new(), + allowed_response_extensions: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for ContextRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ContextRule").unwrap()).clone() } } -impl ::std::fmt::Debug for ContextRule { +impl ::std::fmt::Display for ContextRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ContextRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -521,9 +365,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ xtensions\x18\x04\x20\x03(\tR\x18allowedRequestExtensions\x12>\n\x1ballo\ wed_response_extensions\x18\x05\x20\x03(\tR\x19allowedResponseExtensions\ Bn\n\x0ecom.google.apiB\x0cContextProtoP\x01ZEgoogle.golang.org/genproto\ - /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\x8c\x17\n\ - \x06\x12\x04\x0e\0Y\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ + /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\x8d\x17\n\ + \x06\x12\x04\x0f\0Y\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\ + \x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\ \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ @@ -534,13 +378,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\ - \x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\ - \0\"\n\x08\n\x01\x08\x12\x03\x14\0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\ - \x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ - \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\xdf\x08\n\x02\ - \x04\0\x12\x04<\0A\x01\x1a\xd2\x08\x20`Context`\x20defines\x20which\x20c\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ + \x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\ + \x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\ + \0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\x08\x08\x12\x03\x15\0-\n\ + \x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\ + \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\"\n\xdf\x08\n\x02\ + \x04\0\x12\x04=\0B\x01\x1a\xd2\x08\x20`Context`\x20defines\x20which\x20c\ ontexts\x20an\x20API\x20requests.\n\n\x20Example:\n\n\x20\x20\x20\x20\ \x20context:\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\ \x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20req\ @@ -550,7 +394,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s\x20in\x20the\x20API\x20request\n\x20`google.rpc.context.ProjectContext\ `\x20and\n\x20`google.rpc.context.OriginContext`.\n\n\x20Available\x20co\ ntext\x20types\x20are\x20defined\x20in\x20package\n\x20`google.rpc.conte\ - xt`.\n\n\x20This\x20also\x20provides\x20mechanism\x20to\x20allowlist\x20\ + xt`.\n\n\x20This\x20also\x20provides\x20mechanism\x20to\x20whitelist\x20\ any\x20protobuf\x20message\x20extension\x20that\n\x20can\x20be\x20sent\ \x20in\x20grpc\x20metadata\x20using\x20\xe2\x80\x9cx-goog-ext--bin\xe2\x80\x9d\x20and\n\x20\xe2\x80\x9cx-goog-ext--j\ @@ -565,52 +409,70 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\x20\x20\x20allowed_response_extensions:\n\x20\x20\x20\x20\x20\x20\ \x20\x20\x20\x20-\x20google.foo.v1.NewExtension\n\n\x20You\x20can\x20als\ o\x20specify\x20extension\x20ID\x20instead\x20of\x20fully\x20qualified\ - \x20extension\x20name\n\x20here.\n\n\n\n\x03\x04\0\x01\x12\x03<\x08\x0f\ - \n\x9b\x01\n\x04\x04\0\x02\0\x12\x03@\x02!\x1a\x8d\x01\x20A\x20list\x20o\ + \x20extension\x20name\n\x20here.\n\n\n\n\x03\x04\0\x01\x12\x03=\x08\x0f\ + \n\x9b\x01\n\x04\x04\0\x02\0\x12\x03A\x02!\x1a\x8d\x01\x20A\x20list\x20o\ f\x20RPC\x20context\x20rules\x20that\x20apply\x20to\x20individual\x20API\ \x20methods.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rule\ s\x20follow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\ - \0\x04\x12\x03@\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03@\x0b\x16\n\x0c\ - \n\x05\x04\0\x02\0\x01\x12\x03@\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03@\x1f\x20\nc\n\x02\x04\x01\x12\x04E\0Y\x01\x1aW\x20A\x20context\x20r\ + \0\x04\x12\x03A\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03A\x0b\x16\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x03A\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03A\x1f\x20\nc\n\x02\x04\x01\x12\x04F\0Y\x01\x1aW\x20A\x20context\x20r\ ule\x20provides\x20information\x20about\x20the\x20context\x20for\x20an\ - \x20individual\x20API\n\x20element.\n\n\n\n\x03\x04\x01\x01\x12\x03E\x08\ - \x13\n\x91\x01\n\x04\x04\x01\x02\0\x12\x03J\x02\x16\x1a\x83\x01\x20Selec\ + \x20individual\x20API\n\x20element.\n\n\n\n\x03\x04\x01\x01\x12\x03F\x08\ + \x13\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03J\x02\x16\x1a\x82\x01\x20Selec\ ts\x20the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20R\ efer\x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\ - \x20syntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03J\x02\ - \x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03J\t\x11\n\x0c\n\x05\x04\x01\ - \x02\0\x03\x12\x03J\x14\x15\n?\n\x04\x04\x01\x02\x01\x12\x03M\x02\x20\ - \x1a2\x20A\x20list\x20of\x20full\x20type\x20names\x20of\x20requested\x20\ - contexts.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\x05\ - \x04\x01\x02\x01\x05\x12\x03M\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\ - \x12\x03M\x12\x1b\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M\x1e\x1f\n>\n\ - \x04\x04\x01\x02\x02\x12\x03P\x02\x1f\x1a1\x20A\x20list\x20of\x20full\ - \x20type\x20names\x20of\x20provided\x20contexts.\n\n\x0c\n\x05\x04\x01\ - \x02\x02\x04\x12\x03P\x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03P\x0b\ - \x11\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03P\x12\x1a\n\x0c\n\x05\x04\ - \x01\x02\x02\x03\x12\x03P\x1d\x1e\n}\n\x04\x04\x01\x02\x03\x12\x03T\x021\ - \x1ap\x20A\x20list\x20of\x20full\x20type\x20names\x20or\x20extension\x20\ - IDs\x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20side\x20channel\ - \x20from\x20client\x20to\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\ - \x12\x03T\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03T\x0b\x11\n\x0c\n\ - \x05\x04\x01\x02\x03\x01\x12\x03T\x12,\n\x0c\n\x05\x04\x01\x02\x03\x03\ - \x12\x03T/0\n}\n\x04\x04\x01\x02\x04\x12\x03X\x022\x1ap\x20A\x20list\x20\ - of\x20full\x20type\x20names\x20or\x20extension\x20IDs\x20of\x20extension\ - s\x20allowed\x20in\x20grpc\n\x20side\x20channel\x20from\x20backend\x20to\ - \x20client.\n\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03X\x02\n\n\x0c\n\x05\ - \x04\x01\x02\x04\x05\x12\x03X\x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\ - \x12\x03X\x12-\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03X01b\x06proto3\ + \x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03J\x02\x08\ + \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03J\t\x11\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x03J\x14\x15\n?\n\x04\x04\x01\x02\x01\x12\x03M\x02\x20\x1a2\x20\ + A\x20list\x20of\x20full\x20type\x20names\x20of\x20requested\x20contexts.\ + \n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\x05\x04\x01\ + \x02\x01\x05\x12\x03M\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03M\ + \x12\x1b\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M\x1e\x1f\n>\n\x04\x04\ + \x01\x02\x02\x12\x03P\x02\x1f\x1a1\x20A\x20list\x20of\x20full\x20type\ + \x20names\x20of\x20provided\x20contexts.\n\n\x0c\n\x05\x04\x01\x02\x02\ + \x04\x12\x03P\x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03P\x0b\x11\n\ + \x0c\n\x05\x04\x01\x02\x02\x01\x12\x03P\x12\x1a\n\x0c\n\x05\x04\x01\x02\ + \x02\x03\x12\x03P\x1d\x1e\n}\n\x04\x04\x01\x02\x03\x12\x03T\x021\x1ap\ + \x20A\x20list\x20of\x20full\x20type\x20names\x20or\x20extension\x20IDs\ + \x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20side\x20channel\x20fr\ + om\x20client\x20to\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03\ + T\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03T\x0b\x11\n\x0c\n\x05\x04\ + \x01\x02\x03\x01\x12\x03T\x12,\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03T/\ + 0\n}\n\x04\x04\x01\x02\x04\x12\x03X\x022\x1ap\x20A\x20list\x20of\x20full\ + \x20type\x20names\x20or\x20extension\x20IDs\x20of\x20extensions\x20allow\ + ed\x20in\x20grpc\n\x20side\x20channel\x20from\x20backend\x20to\x20client\ + .\n\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03X\x02\n\n\x0c\n\x05\x04\x01\ + \x02\x04\x05\x12\x03X\x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03X\ + \x12-\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03X01b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Context::generated_message_descriptor_data()); + messages.push(ContextRule::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/control.rs b/googleapis-raw/src/api/control.rs index fb283c5..5ef1920 100644 --- a/googleapis-raw/src/api/control.rs +++ b/googleapis-raw/src/api/control.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,29 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/control.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Selects and configures the service controller used by the service. The +/// service controller handles features like abuse, quota, billing, logging, +/// monitoring, etc. +// @@protoc_insertion_point(message:google.api.Control) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Control { // message fields + /// The service control environment to use. If empty, no control plane + /// feature (like quota and billing) will be enabled. + // @@protoc_insertion_point(field:google.api.Control.environment) pub environment: ::std::string::String, - pub method_policies: ::protobuf::RepeatedField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Control.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Control { @@ -44,80 +52,37 @@ impl Control { ::std::default::Default::default() } - // string environment = 1; - - - pub fn get_environment(&self) -> &str { - &self.environment - } - pub fn clear_environment(&mut self) { - self.environment.clear(); - } - - // Param is passed by value, moved - pub fn set_environment(&mut self, v: ::std::string::String) { - self.environment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_environment(&mut self) -> &mut ::std::string::String { - &mut self.environment - } - - // Take field - pub fn take_environment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.environment, ::std::string::String::new()) - } - - // repeated .google.api.MethodPolicy method_policies = 4; - - - pub fn get_method_policies(&self) -> &[super::policy::MethodPolicy] { - &self.method_policies - } - pub fn clear_method_policies(&mut self) { - self.method_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_method_policies(&mut self, v: ::protobuf::RepeatedField) { - self.method_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_method_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.method_policies - } - - // Take field - pub fn take_method_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.method_policies, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "environment", + |m: &Control| { &m.environment }, + |m: &mut Control| { &mut m.environment }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Control", + fields, + oneofs, + ) } } impl ::protobuf::Message for Control { + const NAME: &'static str = "Control"; + fn is_initialized(&self) -> bool { - for v in &self.method_policies { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.environment)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.environment = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.method_policies)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -126,162 +91,127 @@ impl ::protobuf::Message for Control { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.environment.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.environment); } - for value in &self.method_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.environment.is_empty() { os.write_string(1, &self.environment)?; } - for v in &self.method_policies { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Control { Control::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "environment", - |m: &Control| { &m.environment }, - |m: &mut Control| { &mut m.environment }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "method_policies", - |m: &Control| { &m.method_policies }, - |m: &mut Control| { &mut m.method_policies }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Control", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.environment.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Control { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Control::new) + static instance: Control = Control { + environment: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Control { - fn clear(&mut self) { - self.environment.clear(); - self.method_policies.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Control { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Control").unwrap()).clone() } } -impl ::std::fmt::Debug for Control { +impl ::std::fmt::Display for Control { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Control { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/control.proto\x12\ngoogle.api\x1a\x17google/api/policy.\ - proto\"n\n\x07Control\x12\x20\n\x0benvironment\x18\x01\x20\x01(\tR\x0ben\ - vironment\x12A\n\x0fmethod_policies\x18\x04\x20\x03(\x0b2\x18.google.api\ - .MethodPolicyR\x0emethodPoliciesBn\n\x0ecom.google.apiB\x0cControlProtoP\ - \x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;servicecon\ - fig\xa2\x02\x04GAPIJ\xf5\t\n\x06\x12\x04\x0e\0(\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0!\ - \n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\x08\x0b\x12\x03\x14\0\\\n\x08\ - \n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\ - \x08\x12\x03\x16\0-\n\t\n\x02\x08\x08\x12\x03\x16\0-\n\x08\n\x01\x08\x12\ - \x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\ - \0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\x9d\x01\n\x02\x04\0\x12\x04\x20\0(\ - \x01\x1a\x90\x01\x20Selects\x20and\x20configures\x20the\x20service\x20co\ - ntroller\x20used\x20by\x20the\x20service.\n\n\x20Example:\n\n\x20\x20\ - \x20\x20\x20control:\n\x20\x20\x20\x20\x20\x20\x20environment:\x20servic\ - econtrol.googleapis.com\n\n\n\n\x03\x04\0\x01\x12\x03\x20\x08\x0f\n\xd2\ - \x01\n\x04\x04\0\x02\0\x12\x03$\x02\x19\x1a\xc4\x01\x20The\x20service\ - \x20controller\x20environment\x20to\x20use.\x20If\x20empty,\x20no\x20con\ + \n\x18google/api/control.proto\x12\ngoogle.api\"+\n\x07Control\x12\x20\n\ + \x0benvironment\x18\x01\x20\x01(\tR\x0benvironmentBn\n\x0ecom.google.api\ + B\x0cControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/servic\ + econfig;serviceconfig\xa2\x02\x04GAPIJ\xae\x08\n\x06\x12\x04\x0f\0\x20\ + \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ + \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ + e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ + e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ + \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ + \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ + \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ + se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ + UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ + express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ + ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ + \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ + \n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\ + \x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\ + \x03\x15\0-\n\t\n\x02\x08\x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\ + \0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\ + \n\x02\x08$\x12\x03\x17\0\"\n\xb2\x01\n\x02\x04\0\x12\x04\x1c\0\x20\x01\ + \x1a\xa5\x01\x20Selects\x20and\x20configures\x20the\x20service\x20contro\ + ller\x20used\x20by\x20the\x20service.\x20\x20The\n\x20service\x20control\ + ler\x20handles\x20features\x20like\x20abuse,\x20quota,\x20billing,\x20lo\ + gging,\n\x20monitoring,\x20etc.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\ + \x0f\n\x84\x01\n\x04\x04\0\x02\0\x12\x03\x1f\x02\x19\x1aw\x20The\x20serv\ + ice\x20control\x20environment\x20to\x20use.\x20If\x20empty,\x20no\x20con\ trol\x20plane\n\x20feature\x20(like\x20quota\x20and\x20billing)\x20will\ - \x20be\x20enabled.\x20The\x20recommended\x20value\x20for\n\x20most\x20se\ - rvices\x20is\x20servicecontrol.googleapis.com\n\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03$\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03$\t\x14\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03$\x17\x18\nK\n\x04\x04\0\x02\x01\x12\x03'\ - \x02,\x1a>\x20Defines\x20policies\x20applying\x20to\x20the\x20API\x20met\ - hods\x20of\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03'\ - \x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03'\x0b\x17\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03'\x18'\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03'*+b\x06\ - proto3\ + \x20be\x20enabled.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1f\x02\x08\n\ + \x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1f\t\x14\n\x0c\n\x05\x04\0\x02\0\x03\ + \x12\x03\x1f\x17\x18b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Control::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/distribution.rs b/googleapis-raw/src/api/distribution.rs index ca5c195..c51e89a 100644 --- a/googleapis-raw/src/api/distribution.rs +++ b/googleapis-raw/src/api/distribution.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,75 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/distribution.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// `Distribution` contains summary statistics for a population of values. It +/// optionally contains a histogram representing the distribution of those values +/// across a set of buckets. +/// +/// The summary statistics are the count, mean, sum of the squared deviation from +/// the mean, the minimum, and the maximum of the set of population of values. +/// The histogram is based on a sequence of buckets and gives a count of values +/// that fall into each bucket. The boundaries of the buckets are given either +/// explicitly or by formulas for buckets of fixed or exponentially increasing +/// widths. +/// +/// Although it is not forbidden, it is generally a bad idea to include +/// non-finite values (infinities or NaNs) in the population of values, as this +/// will render the `mean` and `sum_of_squared_deviation` fields meaningless. +// @@protoc_insertion_point(message:google.api.Distribution) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Distribution { // message fields + /// The number of values in the population. Must be non-negative. This value + /// must equal the sum of the values in `bucket_counts` if a histogram is + /// provided. + // @@protoc_insertion_point(field:google.api.Distribution.count) pub count: i64, + /// The arithmetic mean of the values in the population. If `count` is zero + /// then this field must be zero. + // @@protoc_insertion_point(field:google.api.Distribution.mean) pub mean: f64, + // @@protoc_insertion_point(field:google.api.Distribution.sum_of_squared_deviation) pub sum_of_squared_deviation: f64, - pub range: ::protobuf::SingularPtrField, - pub bucket_options: ::protobuf::SingularPtrField, + /// If specified, contains the range of the population values. The field + /// must not be present if the `count` is zero. + // @@protoc_insertion_point(field:google.api.Distribution.range) + pub range: ::protobuf::MessageField, + /// Defines the histogram bucket boundaries. If the distribution does not + /// contain a histogram, then omit this field. + // @@protoc_insertion_point(field:google.api.Distribution.bucket_options) + pub bucket_options: ::protobuf::MessageField, + /// The number of values in each bucket of the histogram, as described in + /// `bucket_options`. If the distribution does not have a histogram, then omit + /// this field. If there is a histogram, then the sum of the values in + /// `bucket_counts` must equal the value in the `count` field of the + /// distribution. + /// + /// If present, `bucket_counts` should contain N values, where N is the number + /// of buckets specified in `bucket_options`. If you supply fewer than N + /// values, the remaining values are assumed to be 0. + /// + /// The order of the values in `bucket_counts` follows the bucket numbering + /// schemes described for the three bucket types. The first value must be the + /// count for the underflow bucket (number 0). The next N-2 values are the + /// counts for the finite buckets (number 1 through N-2). The N'th value in + /// `bucket_counts` is the count for the overflow bucket (number N-1). + // @@protoc_insertion_point(field:google.api.Distribution.bucket_counts) pub bucket_counts: ::std::vec::Vec, - pub exemplars: ::protobuf::RepeatedField, + /// Must be in increasing order of `value` field. + // @@protoc_insertion_point(field:google.api.Distribution.exemplars) + pub exemplars: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Distribution.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Distribution { @@ -49,227 +98,88 @@ impl Distribution { ::std::default::Default::default() } - // int64 count = 1; - - - pub fn get_count(&self) -> i64 { - self.count - } - pub fn clear_count(&mut self) { - self.count = 0; - } - - // Param is passed by value, moved - pub fn set_count(&mut self, v: i64) { - self.count = v; - } - - // double mean = 2; - - - pub fn get_mean(&self) -> f64 { - self.mean - } - pub fn clear_mean(&mut self) { - self.mean = 0.; - } - - // Param is passed by value, moved - pub fn set_mean(&mut self, v: f64) { - self.mean = v; - } - - // double sum_of_squared_deviation = 3; - - - pub fn get_sum_of_squared_deviation(&self) -> f64 { - self.sum_of_squared_deviation - } - pub fn clear_sum_of_squared_deviation(&mut self) { - self.sum_of_squared_deviation = 0.; - } - - // Param is passed by value, moved - pub fn set_sum_of_squared_deviation(&mut self, v: f64) { - self.sum_of_squared_deviation = v; - } - - // .google.api.Distribution.Range range = 4; - - - pub fn get_range(&self) -> &Distribution_Range { - self.range.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_range(&mut self) { - self.range.clear(); - } - - pub fn has_range(&self) -> bool { - self.range.is_some() - } - - // Param is passed by value, moved - pub fn set_range(&mut self, v: Distribution_Range) { - self.range = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_range(&mut self) -> &mut Distribution_Range { - if self.range.is_none() { - self.range.set_default(); - } - self.range.as_mut().unwrap() - } - - // Take field - pub fn take_range(&mut self) -> Distribution_Range { - self.range.take().unwrap_or_else(|| Distribution_Range::new()) - } - - // .google.api.Distribution.BucketOptions bucket_options = 6; - - - pub fn get_bucket_options(&self) -> &Distribution_BucketOptions { - self.bucket_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bucket_options(&mut self) { - self.bucket_options.clear(); - } - - pub fn has_bucket_options(&self) -> bool { - self.bucket_options.is_some() - } - - // Param is passed by value, moved - pub fn set_bucket_options(&mut self, v: Distribution_BucketOptions) { - self.bucket_options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket_options(&mut self) -> &mut Distribution_BucketOptions { - if self.bucket_options.is_none() { - self.bucket_options.set_default(); - } - self.bucket_options.as_mut().unwrap() - } - - // Take field - pub fn take_bucket_options(&mut self) -> Distribution_BucketOptions { - self.bucket_options.take().unwrap_or_else(|| Distribution_BucketOptions::new()) - } - - // repeated int64 bucket_counts = 7; - - - pub fn get_bucket_counts(&self) -> &[i64] { - &self.bucket_counts - } - pub fn clear_bucket_counts(&mut self) { - self.bucket_counts.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket_counts(&mut self, v: ::std::vec::Vec) { - self.bucket_counts = v; - } - - // Mutable pointer to the field. - pub fn mut_bucket_counts(&mut self) -> &mut ::std::vec::Vec { - &mut self.bucket_counts - } - - // Take field - pub fn take_bucket_counts(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bucket_counts, ::std::vec::Vec::new()) - } - - // repeated .google.api.Distribution.Exemplar exemplars = 10; - - - pub fn get_exemplars(&self) -> &[Distribution_Exemplar] { - &self.exemplars - } - pub fn clear_exemplars(&mut self) { - self.exemplars.clear(); - } - - // Param is passed by value, moved - pub fn set_exemplars(&mut self, v: ::protobuf::RepeatedField) { - self.exemplars = v; - } - - // Mutable pointer to the field. - pub fn mut_exemplars(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.exemplars - } - - // Take field - pub fn take_exemplars(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.exemplars, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "count", + |m: &Distribution| { &m.count }, + |m: &mut Distribution| { &mut m.count }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "mean", + |m: &Distribution| { &m.mean }, + |m: &mut Distribution| { &mut m.mean }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sum_of_squared_deviation", + |m: &Distribution| { &m.sum_of_squared_deviation }, + |m: &mut Distribution| { &mut m.sum_of_squared_deviation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, distribution::Range>( + "range", + |m: &Distribution| { &m.range }, + |m: &mut Distribution| { &mut m.range }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, distribution::BucketOptions>( + "bucket_options", + |m: &Distribution| { &m.bucket_options }, + |m: &mut Distribution| { &mut m.bucket_options }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "bucket_counts", + |m: &Distribution| { &m.bucket_counts }, + |m: &mut Distribution| { &mut m.bucket_counts }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "exemplars", + |m: &Distribution| { &m.exemplars }, + |m: &mut Distribution| { &mut m.exemplars }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution", + fields, + oneofs, + ) } } impl ::protobuf::Message for Distribution { + const NAME: &'static str = "Distribution"; + fn is_initialized(&self) -> bool { - for v in &self.range { - if !v.is_initialized() { - return false; - } - }; - for v in &self.bucket_options { - if !v.is_initialized() { - return false; - } - }; - for v in &self.exemplars { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.count = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.count = is.read_int64()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.mean = tmp; + 17 => { + self.mean = is.read_double()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.sum_of_squared_deviation = tmp; + 25 => { + self.sum_of_squared_deviation = is.read_double()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.range)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.range)?; }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bucket_options)?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.bucket_options)?; }, - 7 => { - ::protobuf::rt::read_repeated_int64_into(wire_type, is, &mut self.bucket_counts)?; + 58 => { + is.read_repeated_packed_int64_into(&mut self.bucket_counts)?; }, - 10 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exemplars)?; + 56 => { + self.bucket_counts.push(is.read_int64()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 82 => { + self.exemplars.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -278,38 +188,38 @@ impl ::protobuf::Message for Distribution { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.count != 0 { - my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(1, self.count); } if self.mean != 0. { - my_size += 9; + my_size += 1 + 8; } if self.sum_of_squared_deviation != 0. { - my_size += 9; + my_size += 1 + 8; } - if let Some(ref v) = self.range.as_ref() { + if let Some(v) = self.range.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.bucket_options.as_ref() { + if let Some(v) = self.bucket_options.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } for value in &self.bucket_counts { - my_size += ::protobuf::rt::value_size(7, *value, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(7, *value); }; for value in &self.exemplars { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.count != 0 { os.write_int64(1, self.count)?; } @@ -319,112 +229,34 @@ impl ::protobuf::Message for Distribution { if self.sum_of_squared_deviation != 0. { os.write_double(3, self.sum_of_squared_deviation)?; } - if let Some(ref v) = self.range.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.range.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - if let Some(ref v) = self.bucket_options.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.bucket_options.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } for v in &self.bucket_counts { os.write_int64(7, *v)?; }; for v in &self.exemplars { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(10, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Distribution { Distribution::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "count", - |m: &Distribution| { &m.count }, - |m: &mut Distribution| { &mut m.count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "mean", - |m: &Distribution| { &m.mean }, - |m: &mut Distribution| { &mut m.mean }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "sum_of_squared_deviation", - |m: &Distribution| { &m.sum_of_squared_deviation }, - |m: &mut Distribution| { &mut m.sum_of_squared_deviation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "range", - |m: &Distribution| { &m.range }, - |m: &mut Distribution| { &mut m.range }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bucket_options", - |m: &Distribution| { &m.bucket_options }, - |m: &mut Distribution| { &mut m.bucket_options }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "bucket_counts", - |m: &Distribution| { &m.bucket_counts }, - |m: &mut Distribution| { &mut m.bucket_counts }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "exemplars", - |m: &Distribution| { &m.exemplars }, - |m: &mut Distribution| { &mut m.exemplars }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Distribution { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution::new) - } -} - -impl ::protobuf::Clear for Distribution { fn clear(&mut self) { self.count = 0; self.mean = 0.; @@ -433,1422 +265,1160 @@ impl ::protobuf::Clear for Distribution { self.bucket_options.clear(); self.bucket_counts.clear(); self.exemplars.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for Distribution { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static Distribution { + static instance: Distribution = Distribution { + count: 0, + mean: 0., + sum_of_squared_deviation: 0., + range: ::protobuf::MessageField::none(), + bucket_options: ::protobuf::MessageField::none(), + bucket_counts: ::std::vec::Vec::new(), + exemplars: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for Distribution { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for Distribution { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Distribution").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_Range { - // message fields - pub min: f64, - pub max: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution_Range { - fn default() -> &'a Distribution_Range { - ::default_instance() +impl ::std::fmt::Display for Distribution { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl Distribution_Range { - pub fn new() -> Distribution_Range { - ::std::default::Default::default() - } - - // double min = 1; - - - pub fn get_min(&self) -> f64 { - self.min - } - pub fn clear_min(&mut self) { - self.min = 0.; - } - - // Param is passed by value, moved - pub fn set_min(&mut self, v: f64) { - self.min = v; - } - - // double max = 2; - - - pub fn get_max(&self) -> f64 { - self.max - } - pub fn clear_max(&mut self) { - self.max = 0.; - } - - // Param is passed by value, moved - pub fn set_max(&mut self, v: f64) { - self.max = v; - } +impl ::protobuf::reflect::ProtobufValue for Distribution { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::Message for Distribution_Range { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.min = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.max = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.min != 0. { - my_size += 9; +/// Nested message and enums of message `Distribution` +pub mod distribution { + /// The range of the population values. + // @@protoc_insertion_point(message:google.api.Distribution.Range) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Range { + // message fields + /// The minimum of the population values. + // @@protoc_insertion_point(field:google.api.Distribution.Range.min) + pub min: f64, + /// The maximum of the population values. + // @@protoc_insertion_point(field:google.api.Distribution.Range.max) + pub max: f64, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.Range.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Range { + fn default() -> &'a Range { + ::default_instance() } - if self.max != 0. { - my_size += 9; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.min != 0. { - os.write_double(1, self.min)?; + impl Range { + pub fn new() -> Range { + ::std::default::Default::default() } - if self.max != 0. { - os.write_double(2, self.max)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Distribution_Range { - Distribution_Range::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "min", - |m: &Distribution_Range| { &m.min }, - |m: &mut Distribution_Range| { &mut m.min }, + |m: &Range| { &m.min }, + |m: &mut Range| { &mut m.min }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "max", - |m: &Distribution_Range| { &m.max }, - |m: &mut Distribution_Range| { &mut m.max }, + |m: &Range| { &m.max }, + |m: &mut Range| { &mut m.max }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Distribution.Range", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Distribution_Range { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_Range::new) - } -} - -impl ::protobuf::Clear for Distribution_Range { - fn clear(&mut self) { - self.min = 0.; - self.max = 0.; - self.unknown_fields.clear(); + } } -} -impl ::std::fmt::Debug for Distribution_Range { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + impl ::protobuf::Message for Range { + const NAME: &'static str = "Range"; -impl ::protobuf::reflect::ProtobufValue for Distribution_Range { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn is_initialized(&self) -> bool { + true + } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_BucketOptions { - // message oneof groups - pub options: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 9 => { + self.min = is.read_double()?; + }, + 17 => { + self.max = is.read_double()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a Distribution_BucketOptions { - fn default() -> &'a Distribution_BucketOptions { - ::default_instance() - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.min != 0. { + my_size += 1 + 8; + } + if self.max != 0. { + my_size += 1 + 8; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(Clone,PartialEq,Debug)] -pub enum Distribution_BucketOptions_oneof_options { - linear_buckets(Distribution_BucketOptions_Linear), - exponential_buckets(Distribution_BucketOptions_Exponential), - explicit_buckets(Distribution_BucketOptions_Explicit), -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.min != 0. { + os.write_double(1, self.min)?; + } + if self.max != 0. { + os.write_double(2, self.max)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl Distribution_BucketOptions { - pub fn new() -> Distribution_BucketOptions { - ::std::default::Default::default() - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + fn new() -> Range { + Range::new() + } - pub fn get_linear_buckets(&self) -> &Distribution_BucketOptions_Linear { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(ref v)) => v, - _ => ::default_instance(), + fn clear(&mut self) { + self.min = 0.; + self.max = 0.; + self.special_fields.clear(); } - } - pub fn clear_linear_buckets(&mut self) { - self.options = ::std::option::Option::None; - } - pub fn has_linear_buckets(&self) -> bool { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(..)) => true, - _ => false, + fn default_instance() -> &'static Range { + static instance: Range = Range { + min: 0., + max: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } - // Param is passed by value, moved - pub fn set_linear_buckets(&mut self, v: Distribution_BucketOptions_Linear) { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(v)) + impl ::protobuf::MessageFull for Range { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.Range").unwrap()).clone() + } } - // Mutable pointer to the field. - pub fn mut_linear_buckets(&mut self) -> &mut Distribution_BucketOptions_Linear { - if let ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(_)) = self.options { - } else { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(Distribution_BucketOptions_Linear::new())); - } - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(ref mut v)) => v, - _ => panic!(), + impl ::std::fmt::Display for Range { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } - // Take field - pub fn take_linear_buckets(&mut self) -> Distribution_BucketOptions_Linear { - if self.has_linear_buckets() { - match self.options.take() { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(v)) => v, - _ => panic!(), - } - } else { - Distribution_BucketOptions_Linear::new() + impl ::protobuf::reflect::ProtobufValue for Range { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } + + /// `BucketOptions` describes the bucket boundaries used to create a histogram + /// for the distribution. The buckets can be in a linear sequence, an + /// exponential sequence, or each bucket can be specified explicitly. + /// `BucketOptions` does not include the number of values in each bucket. + /// + /// A bucket has an inclusive lower bound and exclusive upper bound for the + /// values that are counted for that bucket. The upper bound of a bucket must + /// be strictly greater than the lower bound. The sequence of N buckets for a + /// distribution consists of an underflow bucket (number 0), zero or more + /// finite buckets (number 1 through N - 2) and an overflow bucket (number N - + /// 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the + /// same as the upper bound of bucket i - 1. The buckets span the whole range + /// of finite values: lower bound of the underflow bucket is -infinity and the + /// upper bound of the overflow bucket is +infinity. The finite buckets are + /// so-called because both bounds are finite. + // @@protoc_insertion_point(message:google.api.Distribution.BucketOptions) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct BucketOptions { + // message oneof groups + pub options: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.BucketOptions.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a BucketOptions { + fn default() -> &'a BucketOptions { + ::default_instance() } } - // .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; + impl BucketOptions { + pub fn new() -> BucketOptions { + ::std::default::Default::default() + } + // .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; - pub fn get_exponential_buckets(&self) -> &Distribution_BucketOptions_Exponential { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(ref v)) => v, - _ => ::default_instance(), + pub fn linear_buckets(&self) -> &bucket_options::Linear { + match self.options { + ::std::option::Option::Some(bucket_options::Options::LinearBuckets(ref v)) => v, + _ => ::default_instance(), + } } - } - pub fn clear_exponential_buckets(&mut self) { - self.options = ::std::option::Option::None; - } - pub fn has_exponential_buckets(&self) -> bool { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(..)) => true, - _ => false, + pub fn clear_linear_buckets(&mut self) { + self.options = ::std::option::Option::None; } - } - - // Param is passed by value, moved - pub fn set_exponential_buckets(&mut self, v: Distribution_BucketOptions_Exponential) { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(v)) - } - // Mutable pointer to the field. - pub fn mut_exponential_buckets(&mut self) -> &mut Distribution_BucketOptions_Exponential { - if let ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(_)) = self.options { - } else { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(Distribution_BucketOptions_Exponential::new())); + pub fn has_linear_buckets(&self) -> bool { + match self.options { + ::std::option::Option::Some(bucket_options::Options::LinearBuckets(..)) => true, + _ => false, + } } - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_linear_buckets(&mut self, v: bucket_options::Linear) { + self.options = ::std::option::Option::Some(bucket_options::Options::LinearBuckets(v)) } - } - // Take field - pub fn take_exponential_buckets(&mut self) -> Distribution_BucketOptions_Exponential { - if self.has_exponential_buckets() { - match self.options.take() { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(v)) => v, + // Mutable pointer to the field. + pub fn mut_linear_buckets(&mut self) -> &mut bucket_options::Linear { + if let ::std::option::Option::Some(bucket_options::Options::LinearBuckets(_)) = self.options { + } else { + self.options = ::std::option::Option::Some(bucket_options::Options::LinearBuckets(bucket_options::Linear::new())); + } + match self.options { + ::std::option::Option::Some(bucket_options::Options::LinearBuckets(ref mut v)) => v, _ => panic!(), } - } else { - Distribution_BucketOptions_Exponential::new() } - } - // .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + // Take field + pub fn take_linear_buckets(&mut self) -> bucket_options::Linear { + if self.has_linear_buckets() { + match self.options.take() { + ::std::option::Option::Some(bucket_options::Options::LinearBuckets(v)) => v, + _ => panic!(), + } + } else { + bucket_options::Linear::new() + } + } + // .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; - pub fn get_explicit_buckets(&self) -> &Distribution_BucketOptions_Explicit { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(ref v)) => v, - _ => ::default_instance(), + pub fn exponential_buckets(&self) -> &bucket_options::Exponential { + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(ref v)) => v, + _ => ::default_instance(), + } } - } - pub fn clear_explicit_buckets(&mut self) { - self.options = ::std::option::Option::None; - } - pub fn has_explicit_buckets(&self) -> bool { - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(..)) => true, - _ => false, + pub fn clear_exponential_buckets(&mut self) { + self.options = ::std::option::Option::None; } - } - - // Param is passed by value, moved - pub fn set_explicit_buckets(&mut self, v: Distribution_BucketOptions_Explicit) { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(v)) - } - // Mutable pointer to the field. - pub fn mut_explicit_buckets(&mut self) -> &mut Distribution_BucketOptions_Explicit { - if let ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(_)) = self.options { - } else { - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(Distribution_BucketOptions_Explicit::new())); + pub fn has_exponential_buckets(&self) -> bool { + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(..)) => true, + _ => false, + } } - match self.options { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_exponential_buckets(&mut self, v: bucket_options::Exponential) { + self.options = ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(v)) } - } - // Take field - pub fn take_explicit_buckets(&mut self) -> Distribution_BucketOptions_Explicit { - if self.has_explicit_buckets() { - match self.options.take() { - ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(v)) => v, + // Mutable pointer to the field. + pub fn mut_exponential_buckets(&mut self) -> &mut bucket_options::Exponential { + if let ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(_)) = self.options { + } else { + self.options = ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(bucket_options::Exponential::new())); + } + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(ref mut v)) => v, _ => panic!(), } - } else { - Distribution_BucketOptions_Explicit::new() } - } -} -impl ::protobuf::Message for Distribution_BucketOptions { - fn is_initialized(&self) -> bool { - if let Some(Distribution_BucketOptions_oneof_options::linear_buckets(ref v)) = self.options { - if !v.is_initialized() { - return false; + // Take field + pub fn take_exponential_buckets(&mut self) -> bucket_options::Exponential { + if self.has_exponential_buckets() { + match self.options.take() { + ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(v)) => v, + _ => panic!(), + } + } else { + bucket_options::Exponential::new() } } - if let Some(Distribution_BucketOptions_oneof_options::exponential_buckets(ref v)) = self.options { - if !v.is_initialized() { - return false; - } - } - if let Some(Distribution_BucketOptions_oneof_options::explicit_buckets(ref v)) = self.options { - if !v.is_initialized() { - return false; + + // .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; + + pub fn explicit_buckets(&self) -> &bucket_options::Explicit { + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(ref v)) => v, + _ => ::default_instance(), } } - true - } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::linear_buckets(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::exponential_buckets(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.options = ::std::option::Option::Some(Distribution_BucketOptions_oneof_options::explicit_buckets(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + pub fn clear_explicit_buckets(&mut self) { + self.options = ::std::option::Option::None; } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.options { - match v { - &Distribution_BucketOptions_oneof_options::linear_buckets(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Distribution_BucketOptions_oneof_options::exponential_buckets(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Distribution_BucketOptions_oneof_options::explicit_buckets(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + pub fn has_explicit_buckets(&self) -> bool { + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(..)) => true, + _ => false, + } } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.options { - match v { - &Distribution_BucketOptions_oneof_options::linear_buckets(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Distribution_BucketOptions_oneof_options::exponential_buckets(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Distribution_BucketOptions_oneof_options::explicit_buckets(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + // Param is passed by value, moved + pub fn set_explicit_buckets(&mut self, v: bucket_options::Explicit) { + self.options = ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(v)) } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + // Mutable pointer to the field. + pub fn mut_explicit_buckets(&mut self) -> &mut bucket_options::Explicit { + if let ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(_)) = self.options { + } else { + self.options = ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(bucket_options::Explicit::new())); + } + match self.options { + ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(ref mut v)) => v, + _ => panic!(), + } + } - fn new() -> Distribution_BucketOptions { - Distribution_BucketOptions::new() - } + // Take field + pub fn take_explicit_buckets(&mut self) -> bucket_options::Explicit { + if self.has_explicit_buckets() { + match self.options.take() { + ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(v)) => v, + _ => panic!(), + } + } else { + bucket_options::Explicit::new() + } + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Linear>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, bucket_options::Linear>( "linear_buckets", - Distribution_BucketOptions::has_linear_buckets, - Distribution_BucketOptions::get_linear_buckets, + BucketOptions::has_linear_buckets, + BucketOptions::linear_buckets, + BucketOptions::mut_linear_buckets, + BucketOptions::set_linear_buckets, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Exponential>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, bucket_options::Exponential>( "exponential_buckets", - Distribution_BucketOptions::has_exponential_buckets, - Distribution_BucketOptions::get_exponential_buckets, + BucketOptions::has_exponential_buckets, + BucketOptions::exponential_buckets, + BucketOptions::mut_exponential_buckets, + BucketOptions::set_exponential_buckets, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_BucketOptions_Explicit>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, bucket_options::Explicit>( "explicit_buckets", - Distribution_BucketOptions::has_explicit_buckets, - Distribution_BucketOptions::get_explicit_buckets, + BucketOptions::has_explicit_buckets, + BucketOptions::explicit_buckets, + BucketOptions::mut_explicit_buckets, + BucketOptions::set_explicit_buckets, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + oneofs.push(bucket_options::Options::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Distribution.BucketOptions", fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Distribution_BucketOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions::new) - } -} - -impl ::protobuf::Clear for Distribution_BucketOptions { - fn clear(&mut self) { - self.options = ::std::option::Option::None; - self.options = ::std::option::Option::None; - self.options = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Distribution_BucketOptions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_BucketOptions_Linear { - // message fields - pub num_finite_buckets: i32, - pub width: f64, - pub offset: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution_BucketOptions_Linear { - fn default() -> &'a Distribution_BucketOptions_Linear { - ::default_instance() - } -} - -impl Distribution_BucketOptions_Linear { - pub fn new() -> Distribution_BucketOptions_Linear { - ::std::default::Default::default() - } - - // int32 num_finite_buckets = 1; - - - pub fn get_num_finite_buckets(&self) -> i32 { - self.num_finite_buckets - } - pub fn clear_num_finite_buckets(&mut self) { - self.num_finite_buckets = 0; - } - - // Param is passed by value, moved - pub fn set_num_finite_buckets(&mut self, v: i32) { - self.num_finite_buckets = v; - } - - // double width = 2; - - - pub fn get_width(&self) -> f64 { - self.width - } - pub fn clear_width(&mut self) { - self.width = 0.; - } - - // Param is passed by value, moved - pub fn set_width(&mut self, v: f64) { - self.width = v; - } - - // double offset = 3; - - - pub fn get_offset(&self) -> f64 { - self.offset - } - pub fn clear_offset(&mut self) { - self.offset = 0.; - } - - // Param is passed by value, moved - pub fn set_offset(&mut self, v: f64) { - self.offset = v; - } -} - -impl ::protobuf::Message for Distribution_BucketOptions_Linear { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.num_finite_buckets = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.width = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.offset = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.num_finite_buckets != 0 { - my_size += ::protobuf::rt::value_size(1, self.num_finite_buckets, ::protobuf::wire_format::WireTypeVarint); - } - if self.width != 0. { - my_size += 9; - } - if self.offset != 0. { - my_size += 9; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.num_finite_buckets != 0 { - os.write_int32(1, self.num_finite_buckets)?; - } - if self.width != 0. { - os.write_double(2, self.width)?; - } - if self.offset != 0. { - os.write_double(3, self.offset)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Distribution_BucketOptions_Linear { - Distribution_BucketOptions_Linear::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "num_finite_buckets", - |m: &Distribution_BucketOptions_Linear| { &m.num_finite_buckets }, - |m: &mut Distribution_BucketOptions_Linear| { &mut m.num_finite_buckets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "width", - |m: &Distribution_BucketOptions_Linear| { &m.width }, - |m: &mut Distribution_BucketOptions_Linear| { &mut m.width }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "offset", - |m: &Distribution_BucketOptions_Linear| { &m.offset }, - |m: &mut Distribution_BucketOptions_Linear| { &mut m.offset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.BucketOptions.Linear", - fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Distribution_BucketOptions_Linear { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions_Linear::new) - } -} - -impl ::protobuf::Clear for Distribution_BucketOptions_Linear { - fn clear(&mut self) { - self.num_finite_buckets = 0; - self.width = 0.; - self.offset = 0.; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Distribution_BucketOptions_Linear { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions_Linear { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_BucketOptions_Exponential { - // message fields - pub num_finite_buckets: i32, - pub growth_factor: f64, - pub scale: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution_BucketOptions_Exponential { - fn default() -> &'a Distribution_BucketOptions_Exponential { - ::default_instance() - } -} - -impl Distribution_BucketOptions_Exponential { - pub fn new() -> Distribution_BucketOptions_Exponential { - ::std::default::Default::default() - } - - // int32 num_finite_buckets = 1; - - - pub fn get_num_finite_buckets(&self) -> i32 { - self.num_finite_buckets - } - pub fn clear_num_finite_buckets(&mut self) { - self.num_finite_buckets = 0; - } - - // Param is passed by value, moved - pub fn set_num_finite_buckets(&mut self, v: i32) { - self.num_finite_buckets = v; - } - - // double growth_factor = 2; - - - pub fn get_growth_factor(&self) -> f64 { - self.growth_factor - } - pub fn clear_growth_factor(&mut self) { - self.growth_factor = 0.; - } - - // Param is passed by value, moved - pub fn set_growth_factor(&mut self, v: f64) { - self.growth_factor = v; - } - - // double scale = 3; - - - pub fn get_scale(&self) -> f64 { - self.scale - } - pub fn clear_scale(&mut self) { - self.scale = 0.; - } - - // Param is passed by value, moved - pub fn set_scale(&mut self, v: f64) { - self.scale = v; - } -} - -impl ::protobuf::Message for Distribution_BucketOptions_Exponential { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.num_finite_buckets = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.growth_factor = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.scale = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.num_finite_buckets != 0 { - my_size += ::protobuf::rt::value_size(1, self.num_finite_buckets, ::protobuf::wire_format::WireTypeVarint); + impl ::protobuf::Message for BucketOptions { + const NAME: &'static str = "BucketOptions"; + + fn is_initialized(&self) -> bool { + true } - if self.growth_factor != 0. { - my_size += 9; + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.options = ::std::option::Option::Some(bucket_options::Options::LinearBuckets(is.read_message()?)); + }, + 18 => { + self.options = ::std::option::Option::Some(bucket_options::Options::ExponentialBuckets(is.read_message()?)); + }, + 26 => { + self.options = ::std::option::Option::Some(bucket_options::Options::ExplicitBuckets(is.read_message()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - if self.scale != 0. { - my_size += 9; + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let ::std::option::Option::Some(ref v) = self.options { + match v { + &bucket_options::Options::LinearBuckets(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &bucket_options::Options::ExponentialBuckets(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &bucket_options::Options::ExplicitBuckets(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.num_finite_buckets != 0 { - os.write_int32(1, self.num_finite_buckets)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let ::std::option::Option::Some(ref v) = self.options { + match v { + &bucket_options::Options::LinearBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }, + &bucket_options::Options::ExponentialBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &bucket_options::Options::ExplicitBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - if self.growth_factor != 0. { - os.write_double(2, self.growth_factor)?; + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - if self.scale != 0. { - os.write_double(3, self.scale)?; + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + fn new() -> BucketOptions { + BucketOptions::new() + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + fn clear(&mut self) { + self.options = ::std::option::Option::None; + self.options = ::std::option::Option::None; + self.options = ::std::option::Option::None; + self.special_fields.clear(); + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn default_instance() -> &'static BucketOptions { + static instance: BucketOptions = BucketOptions { + options: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + impl ::protobuf::MessageFull for BucketOptions { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.BucketOptions").unwrap()).clone() + } } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl ::std::fmt::Display for BucketOptions { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn new() -> Distribution_BucketOptions_Exponential { - Distribution_BucketOptions_Exponential::new() + impl ::protobuf::reflect::ProtobufValue for BucketOptions { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "num_finite_buckets", - |m: &Distribution_BucketOptions_Exponential| { &m.num_finite_buckets }, - |m: &mut Distribution_BucketOptions_Exponential| { &mut m.num_finite_buckets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "growth_factor", - |m: &Distribution_BucketOptions_Exponential| { &m.growth_factor }, - |m: &mut Distribution_BucketOptions_Exponential| { &mut m.growth_factor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "scale", - |m: &Distribution_BucketOptions_Exponential| { &m.scale }, - |m: &mut Distribution_BucketOptions_Exponential| { &mut m.scale }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.BucketOptions.Exponential", - fields, - file_descriptor_proto() - ) - }) - } + /// Nested message and enums of message `BucketOptions` + pub mod bucket_options { - fn default_instance() -> &'static Distribution_BucketOptions_Exponential { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions_Exponential::new) - } -} + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.Distribution.BucketOptions.options) + pub enum Options { + // @@protoc_insertion_point(oneof_field:google.api.Distribution.BucketOptions.linear_buckets) + LinearBuckets(Linear), + // @@protoc_insertion_point(oneof_field:google.api.Distribution.BucketOptions.exponential_buckets) + ExponentialBuckets(Exponential), + // @@protoc_insertion_point(oneof_field:google.api.Distribution.BucketOptions.explicit_buckets) + ExplicitBuckets(Explicit), + } -impl ::protobuf::Clear for Distribution_BucketOptions_Exponential { - fn clear(&mut self) { - self.num_finite_buckets = 0; - self.growth_factor = 0.; - self.scale = 0.; - self.unknown_fields.clear(); - } -} + impl ::protobuf::Oneof for Options { + } -impl ::std::fmt::Debug for Distribution_BucketOptions_Exponential { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + impl ::protobuf::OneofFull for Options { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("options").unwrap()).clone() + } + } -impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions_Exponential { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + impl Options { + pub(in super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("options") + } + } + // @@protoc_insertion_point(message:google.api.Distribution.BucketOptions.Linear) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Linear { + // message fields + /// Must be greater than 0. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Linear.num_finite_buckets) + pub num_finite_buckets: i32, + /// Must be greater than 0. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Linear.width) + pub width: f64, + /// Lower bound of the first bucket. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Linear.offset) + pub offset: f64, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.BucketOptions.Linear.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_BucketOptions_Explicit { - // message fields - pub bounds: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + impl<'a> ::std::default::Default for &'a Linear { + fn default() -> &'a Linear { + ::default_instance() + } + } -impl<'a> ::std::default::Default for &'a Distribution_BucketOptions_Explicit { - fn default() -> &'a Distribution_BucketOptions_Explicit { - ::default_instance() - } -} + impl Linear { + pub fn new() -> Linear { + ::std::default::Default::default() + } -impl Distribution_BucketOptions_Explicit { - pub fn new() -> Distribution_BucketOptions_Explicit { - ::std::default::Default::default() - } + pub(in super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "num_finite_buckets", + |m: &Linear| { &m.num_finite_buckets }, + |m: &mut Linear| { &mut m.num_finite_buckets }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "width", + |m: &Linear| { &m.width }, + |m: &mut Linear| { &mut m.width }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "offset", + |m: &Linear| { &m.offset }, + |m: &mut Linear| { &mut m.offset }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution.BucketOptions.Linear", + fields, + oneofs, + ) + } + } - // repeated double bounds = 1; + impl ::protobuf::Message for Linear { + const NAME: &'static str = "Linear"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_bounds(&self) -> &[f64] { - &self.bounds - } - pub fn clear_bounds(&mut self) { - self.bounds.clear(); - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.num_finite_buckets = is.read_int32()?; + }, + 17 => { + self.width = is.read_double()?; + }, + 25 => { + self.offset = is.read_double()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_bounds(&mut self, v: ::std::vec::Vec) { - self.bounds = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.num_finite_buckets != 0 { + my_size += ::protobuf::rt::int32_size(1, self.num_finite_buckets); + } + if self.width != 0. { + my_size += 1 + 8; + } + if self.offset != 0. { + my_size += 1 + 8; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Mutable pointer to the field. - pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { - &mut self.bounds - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.num_finite_buckets != 0 { + os.write_int32(1, self.num_finite_buckets)?; + } + if self.width != 0. { + os.write_double(2, self.width)?; + } + if self.offset != 0. { + os.write_double(3, self.offset)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Take field - pub fn take_bounds(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl ::protobuf::Message for Distribution_BucketOptions_Explicit { - fn is_initialized(&self) -> bool { - true - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_double_into(wire_type, is, &mut self.bounds)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } + fn new() -> Linear { + Linear::new() + } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += 9 * self.bounds.len() as u32; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + fn clear(&mut self) { + self.num_finite_buckets = 0; + self.width = 0.; + self.offset = 0.; + self.special_fields.clear(); + } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.bounds { - os.write_double(1, *v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } + fn default_instance() -> &'static Linear { + static instance: Linear = Linear { + num_finite_buckets: 0, + width: 0., + offset: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + impl ::protobuf::MessageFull for Linear { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::super::file_descriptor().message_by_package_relative_name("Distribution.BucketOptions.Linear").unwrap()).clone() + } + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + impl ::std::fmt::Display for Linear { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + impl ::protobuf::reflect::ProtobufValue for Linear { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + // @@protoc_insertion_point(message:google.api.Distribution.BucketOptions.Exponential) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Exponential { + // message fields + /// Must be greater than 0. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Exponential.num_finite_buckets) + pub num_finite_buckets: i32, + /// Must be greater than 1. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Exponential.growth_factor) + pub growth_factor: f64, + /// Must be greater than 0. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Exponential.scale) + pub scale: f64, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.BucketOptions.Exponential.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + impl<'a> ::std::default::Default for &'a Exponential { + fn default() -> &'a Exponential { + ::default_instance() + } + } - fn new() -> Distribution_BucketOptions_Explicit { - Distribution_BucketOptions_Explicit::new() - } + impl Exponential { + pub fn new() -> Exponential { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "bounds", - |m: &Distribution_BucketOptions_Explicit| { &m.bounds }, - |m: &mut Distribution_BucketOptions_Explicit| { &mut m.bounds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.BucketOptions.Explicit", - fields, - file_descriptor_proto() - ) - }) - } + pub(in super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "num_finite_buckets", + |m: &Exponential| { &m.num_finite_buckets }, + |m: &mut Exponential| { &mut m.num_finite_buckets }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "growth_factor", + |m: &Exponential| { &m.growth_factor }, + |m: &mut Exponential| { &mut m.growth_factor }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "scale", + |m: &Exponential| { &m.scale }, + |m: &mut Exponential| { &mut m.scale }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution.BucketOptions.Exponential", + fields, + oneofs, + ) + } + } - fn default_instance() -> &'static Distribution_BucketOptions_Explicit { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_BucketOptions_Explicit::new) - } -} + impl ::protobuf::Message for Exponential { + const NAME: &'static str = "Exponential"; -impl ::protobuf::Clear for Distribution_BucketOptions_Explicit { - fn clear(&mut self) { - self.bounds.clear(); - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::fmt::Debug for Distribution_BucketOptions_Explicit { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.num_finite_buckets = is.read_int32()?; + }, + 17 => { + self.growth_factor = is.read_double()?; + }, + 25 => { + self.scale = is.read_double()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for Distribution_BucketOptions_Explicit { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.num_finite_buckets != 0 { + my_size += ::protobuf::rt::int32_size(1, self.num_finite_buckets); + } + if self.growth_factor != 0. { + my_size += 1 + 8; + } + if self.scale != 0. { + my_size += 1 + 8; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_Exemplar { - // message fields - pub value: f64, - pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub attachments: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.num_finite_buckets != 0 { + os.write_int32(1, self.num_finite_buckets)?; + } + if self.growth_factor != 0. { + os.write_double(2, self.growth_factor)?; + } + if self.scale != 0. { + os.write_double(3, self.scale)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a Distribution_Exemplar { - fn default() -> &'a Distribution_Exemplar { - ::default_instance() - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl Distribution_Exemplar { - pub fn new() -> Distribution_Exemplar { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // double value = 1; + fn new() -> Exponential { + Exponential::new() + } + fn clear(&mut self) { + self.num_finite_buckets = 0; + self.growth_factor = 0.; + self.scale = 0.; + self.special_fields.clear(); + } - pub fn get_value(&self) -> f64 { - self.value - } - pub fn clear_value(&mut self) { - self.value = 0.; - } + fn default_instance() -> &'static Exponential { + static instance: Exponential = Exponential { + num_finite_buckets: 0, + growth_factor: 0., + scale: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } - // Param is passed by value, moved - pub fn set_value(&mut self, v: f64) { - self.value = v; - } + impl ::protobuf::MessageFull for Exponential { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::super::file_descriptor().message_by_package_relative_name("Distribution.BucketOptions.Exponential").unwrap()).clone() + } + } - // .google.protobuf.Timestamp timestamp = 2; + impl ::std::fmt::Display for Exponential { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + impl ::protobuf::reflect::ProtobufValue for Exponential { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } - pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_timestamp(&mut self) { - self.timestamp.clear(); - } + // @@protoc_insertion_point(message:google.api.Distribution.BucketOptions.Explicit) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Explicit { + // message fields + /// The values must be monotonically increasing. + // @@protoc_insertion_point(field:google.api.Distribution.BucketOptions.Explicit.bounds) + pub bounds: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.BucketOptions.Explicit.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } - pub fn has_timestamp(&self) -> bool { - self.timestamp.is_some() - } + impl<'a> ::std::default::Default for &'a Explicit { + fn default() -> &'a Explicit { + ::default_instance() + } + } - // Param is passed by value, moved - pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.timestamp = ::protobuf::SingularPtrField::some(v); - } + impl Explicit { + pub fn new() -> Explicit { + ::std::default::Default::default() + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.timestamp.is_none() { - self.timestamp.set_default(); + pub(in super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "bounds", + |m: &Explicit| { &m.bounds }, + |m: &mut Explicit| { &mut m.bounds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution.BucketOptions.Explicit", + fields, + oneofs, + ) + } } - self.timestamp.as_mut().unwrap() - } - // Take field - pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } + impl ::protobuf::Message for Explicit { + const NAME: &'static str = "Explicit"; - // repeated .google.protobuf.Any attachments = 3; + fn is_initialized(&self) -> bool { + true + } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + is.read_repeated_packed_double_into(&mut self.bounds)?; + }, + 9 => { + self.bounds.push(is.read_double()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - pub fn get_attachments(&self) -> &[::protobuf::well_known_types::Any] { - &self.attachments - } - pub fn clear_attachments(&mut self) { - self.attachments.clear(); - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += 9 * self.bounds.len() as u64; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Param is passed by value, moved - pub fn set_attachments(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.attachments = v; - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.bounds { + os.write_double(1, *v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Mutable pointer to the field. - pub fn mut_attachments(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.attachments - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Take field - pub fn take_attachments(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.attachments, ::protobuf::RepeatedField::new()) - } -} + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } -impl ::protobuf::Message for Distribution_Exemplar { - fn is_initialized(&self) -> bool { - for v in &self.timestamp { - if !v.is_initialized() { - return false; + fn new() -> Explicit { + Explicit::new() } - }; - for v in &self.attachments { - if !v.is_initialized() { - return false; + + fn clear(&mut self) { + self.bounds.clear(); + self.special_fields.clear(); } - }; - true - } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.value = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.attachments)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn default_instance() -> &'static Explicit { + static instance: Explicit = Explicit { + bounds: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.value != 0. { - my_size += 9; - } - if let Some(ref v) = self.timestamp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + impl ::protobuf::MessageFull for Explicit { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::super::file_descriptor().message_by_package_relative_name("Distribution.BucketOptions.Explicit").unwrap()).clone() + } } - for value in &self.attachments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.value != 0. { - os.write_double(1, self.value)?; - } - if let Some(ref v) = self.timestamp.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + impl ::std::fmt::Display for Explicit { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - for v in &self.attachments { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + impl ::protobuf::reflect::ProtobufValue for Explicit { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + /// Exemplars are example points that may be used to annotate aggregated + /// distribution values. They are metadata that gives information about a + /// particular value added to a Distribution bucket, such as a trace ID that + /// was active when a value was added. They may contain further information, + /// such as a example values and timestamps, origin, etc. + // @@protoc_insertion_point(message:google.api.Distribution.Exemplar) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Exemplar { + // message fields + /// Value of the exemplar point. This value determines to which bucket the + /// exemplar belongs. + // @@protoc_insertion_point(field:google.api.Distribution.Exemplar.value) + pub value: f64, + /// The observation (sampling) time of the above value. + // @@protoc_insertion_point(field:google.api.Distribution.Exemplar.timestamp) + pub timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + // @@protoc_insertion_point(field:google.api.Distribution.Exemplar.attachments) + pub attachments: ::std::vec::Vec<::protobuf::well_known_types::any::Any>, + // special fields + // @@protoc_insertion_point(special_field:google.api.Distribution.Exemplar.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Exemplar { + fn default() -> &'a Exemplar { + ::default_instance() + } } - fn new() -> Distribution_Exemplar { - Distribution_Exemplar::new() - } + impl Exemplar { + pub fn new() -> Exemplar { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "value", - |m: &Distribution_Exemplar| { &m.value }, - |m: &mut Distribution_Exemplar| { &mut m.value }, + |m: &Exemplar| { &m.value }, + |m: &mut Exemplar| { &mut m.value }, )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( "timestamp", - |m: &Distribution_Exemplar| { &m.timestamp }, - |m: &mut Distribution_Exemplar| { &mut m.timestamp }, + |m: &Exemplar| { &m.timestamp }, + |m: &mut Exemplar| { &mut m.timestamp }, )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( "attachments", - |m: &Distribution_Exemplar| { &m.attachments }, - |m: &mut Distribution_Exemplar| { &mut m.attachments }, + |m: &Exemplar| { &m.attachments }, + |m: &mut Exemplar| { &mut m.attachments }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Distribution.Exemplar", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static Distribution_Exemplar { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_Exemplar::new) + impl ::protobuf::Message for Exemplar { + const NAME: &'static str = "Exemplar"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 9 => { + self.value = is.read_double()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.timestamp)?; + }, + 26 => { + self.attachments.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.value != 0. { + my_size += 1 + 8; + } + if let Some(v) = self.timestamp.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for value in &self.attachments { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.value != 0. { + os.write_double(1, self.value)?; + } + if let Some(v) = self.timestamp.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + for v in &self.attachments { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Exemplar { + Exemplar::new() + } + + fn clear(&mut self) { + self.value = 0.; + self.timestamp.clear(); + self.attachments.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Exemplar { + static instance: Exemplar = Exemplar { + value: 0., + timestamp: ::protobuf::MessageField::none(), + attachments: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Distribution_Exemplar { - fn clear(&mut self) { - self.value = 0.; - self.timestamp.clear(); - self.attachments.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for Exemplar { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.Exemplar").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Distribution_Exemplar { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for Exemplar { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Distribution_Exemplar { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Exemplar { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } @@ -1881,9 +1451,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x126\n\x0battachments\x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\ \x0battachmentsBq\n\x0ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle\ .golang.org/genproto/googleapis/api/distribution;distribution\xa2\x02\ - \x04GAPIJ\x85D\n\x07\x12\x05\x0e\0\xd4\x01\x01\n\xbc\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Lic\ - ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x04GAPIJ\x81D\n\x07\x12\x05\x0f\0\xd3\x01\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ @@ -1894,13 +1464,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0#\n\t\ - \n\x02\x03\x01\x12\x03\x13\0)\n\x08\n\x01\x08\x12\x03\x15\0Z\n\t\n\x02\ - \x08\x0b\x12\x03\x15\0Z\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ - \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\02\n\t\n\x02\x08\x08\x12\ - \x03\x17\02\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ - \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\xaa\ - \x06\n\x02\x04\0\x12\x05)\0\xd4\x01\x01\x1a\x9c\x06\x20`Distribution`\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0#\n\ + \t\n\x02\x03\x01\x12\x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\0Z\n\t\n\x02\ + \x08\x0b\x12\x03\x16\0Z\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\ + \x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\02\n\t\n\x02\x08\x08\x12\ + \x03\x18\02\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\x12\x03\x19\ + \0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\x1a\0\"\n\xaa\ + \x06\n\x02\x04\0\x12\x05*\0\xd3\x01\x01\x1a\x9c\x06\x20`Distribution`\ \x20contains\x20summary\x20statistics\x20for\x20a\x20population\x20of\ \x20values.\x20It\n\x20optionally\x20contains\x20a\x20histogram\x20repre\ senting\x20the\x20distribution\x20of\x20those\x20values\n\x20across\x20a\ @@ -1917,17 +1487,17 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20idea\x20to\x20include\n\x20non-finite\x20values\x20(infinities\x20or\ \x20NaNs)\x20in\x20the\x20population\x20of\x20values,\x20as\x20this\n\ \x20will\x20render\x20the\x20`mean`\x20and\x20`sum_of_squared_deviation`\ - \x20fields\x20meaningless.\n\n\n\n\x03\x04\0\x01\x12\x03)\x08\x14\n3\n\ - \x04\x04\0\x03\0\x12\x04+\x021\x03\x1a%\x20The\x20range\x20of\x20the\x20\ - population\x20values.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03+\n\x0f\n6\n\ - \x06\x04\0\x03\0\x02\0\x12\x03-\x04\x13\x1a'\x20The\x20minimum\x20of\x20\ + \x20fields\x20meaningless.\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\x14\n3\n\ + \x04\x04\0\x03\0\x12\x04,\x022\x03\x1a%\x20The\x20range\x20of\x20the\x20\ + population\x20values.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03,\n\x0f\n6\n\ + \x06\x04\0\x03\0\x02\0\x12\x03.\x04\x13\x1a'\x20The\x20minimum\x20of\x20\ the\x20population\x20values.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03\ - -\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03-\x0b\x0e\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x03\x12\x03-\x11\x12\n6\n\x06\x04\0\x03\0\x02\x01\x12\ - \x030\x04\x13\x1a'\x20The\x20maximum\x20of\x20the\x20population\x20value\ - s.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x030\x04\n\n\x0e\n\x07\x04\ - \0\x03\0\x02\x01\x01\x12\x030\x0b\x0e\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x030\x11\x12\n\xf3\x07\n\x04\x04\0\x03\x01\x12\x05B\x02\x88\x01\ + .\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03.\x0b\x0e\n\x0e\n\x07\ + \x04\0\x03\0\x02\0\x03\x12\x03.\x11\x12\n6\n\x06\x04\0\x03\0\x02\x01\x12\ + \x031\x04\x13\x1a'\x20The\x20maximum\x20of\x20the\x20population\x20value\ + s.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x031\x04\n\n\x0e\n\x07\x04\ + \0\x03\0\x02\x01\x01\x12\x031\x0b\x0e\n\x0e\n\x07\x04\0\x03\0\x02\x01\ + \x03\x12\x031\x11\x12\n\xf3\x07\n\x04\x04\0\x03\x01\x12\x05C\x02\x87\x01\ \x03\x1a\xe3\x07\x20`BucketOptions`\x20describes\x20the\x20bucket\x20bou\ ndaries\x20used\x20to\x20create\x20a\x20histogram\n\x20for\x20the\x20dis\ tribution.\x20The\x20buckets\x20can\x20be\x20in\x20a\x20linear\x20sequen\ @@ -1950,31 +1520,31 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ty\x20and\x20the\n\x20upper\x20bound\x20of\x20the\x20overflow\x20bucket\ \x20is\x20+infinity.\x20The\x20finite\x20buckets\x20are\n\x20so-called\ \x20because\x20both\x20bounds\x20are\x20finite.\n\n\x0c\n\x05\x04\0\x03\ - \x01\x01\x12\x03B\n\x17\n\xaf\x03\n\x06\x04\0\x03\x01\x03\0\x12\x04M\x04\ - V\x05\x1a\x9e\x03\x20Specifies\x20a\x20linear\x20sequence\x20of\x20bucke\ + \x01\x01\x12\x03C\n\x17\n\xae\x03\n\x06\x04\0\x03\x01\x03\0\x12\x04M\x04\ + V\x05\x1a\x9d\x03\x20Specifies\x20a\x20linear\x20sequence\x20of\x20bucke\ ts\x20that\x20all\x20have\x20the\x20same\x20width\n\x20(except\x20overfl\ ow\x20and\x20underflow).\x20Each\x20bucket\x20represents\x20a\x20constan\ t\n\x20absolute\x20uncertainty\x20on\x20the\x20specific\x20value\x20in\ \x20the\x20bucket.\n\n\x20There\x20are\x20`num_finite_buckets\x20+\x202`\ \x20(=\x20N)\x20buckets.\x20Bucket\x20`i`\x20has\x20the\n\x20following\ \x20boundaries:\n\n\x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\ - \x20N-1):\x20\x20\x20\x20\x20offset\x20+\x20(width\x20*\x20i).\n\n\x20\ - \x20\x20\x20Lower\x20bound\x20(1\x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\ - \x20\x20\x20offset\x20+\x20(width\x20*\x20(i\x20-\x201)).\n\n\x0e\n\x07\ - \x04\0\x03\x01\x03\0\x01\x12\x03M\x0c\x12\n*\n\x08\x04\0\x03\x01\x03\0\ - \x02\0\x12\x03O\x06#\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\ - \x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03O\x06\x0b\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\0\x01\x12\x03O\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\0\x03\x12\x03O!\"\n*\n\x08\x04\0\x03\x01\x03\0\x02\x01\x12\x03R\x06\ - \x17\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\x01\x05\x12\x03R\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\ - \0\x02\x01\x01\x12\x03R\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x03\ + \x20N-1):\x20\x20\x20\x20\x20offset\x20+\x20(width\x20*\x20i).\n\x20\x20\ + \x20\x20Lower\x20bound\x20(1\x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\ + \x20\x20offset\x20+\x20(width\x20*\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\ + \0\x03\x01\x03\0\x01\x12\x03M\x0c\x12\n*\n\x08\x04\0\x03\x01\x03\0\x02\0\ + \x12\x03O\x06#\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\ + \t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03O\x06\x0b\n\x10\n\t\x04\0\x03\ + \x01\x03\0\x02\0\x01\x12\x03O\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ + \0\x03\x12\x03O!\"\n*\n\x08\x04\0\x03\x01\x03\0\x02\x01\x12\x03R\x06\x17\ + \x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\ + \x01\x03\0\x02\x01\x05\x12\x03R\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\0\ + \x02\x01\x01\x12\x03R\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x03\ \x12\x03R\x15\x16\n3\n\x08\x04\0\x03\x01\x03\0\x02\x02\x12\x03U\x06\x18\ \x1a\"\x20Lower\x20bound\x20of\x20the\x20first\x20bucket.\n\n\x10\n\t\ \x04\0\x03\x01\x03\0\x02\x02\x05\x12\x03U\x06\x0c\n\x10\n\t\x04\0\x03\ \x01\x03\0\x02\x02\x01\x12\x03U\r\x13\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ - \x02\x03\x12\x03U\x16\x17\n\xcb\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04b\ - \x04k\x05\x1a\xba\x03\x20Specifies\x20an\x20exponential\x20sequence\x20o\ + \x02\x03\x12\x03U\x16\x17\n\xca\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04a\ + \x04j\x05\x1a\xb9\x03\x20Specifies\x20an\x20exponential\x20sequence\x20o\ f\x20buckets\x20that\x20have\x20a\x20width\x20that\x20is\n\x20proportion\ al\x20to\x20the\x20value\x20of\x20the\x20lower\x20bound.\x20Each\x20buck\ et\x20represents\x20a\n\x20constant\x20relative\x20uncertainty\x20on\x20\ @@ -1982,153 +1552,178 @@ static file_descriptor_proto_data: &'static [u8] = b"\ um_finite_buckets\x20+\x202`\x20(=\x20N)\x20buckets.\x20Bucket\x20`i`\ \x20has\x20the\n\x20following\x20boundaries:\n\n\x20\x20\x20\x20Upper\ \x20bound\x20(0\x20<=\x20i\x20<\x20N-1):\x20\x20\x20\x20\x20scale\x20*\ - \x20(growth_factor\x20^\x20i).\n\n\x20\x20\x20\x20Lower\x20bound\x20(1\ - \x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\x20\x20scale\x20*\x20(growth\ - _factor\x20^\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\0\x03\x01\x03\x01\x01\ - \x12\x03b\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03d\x06#\x1a\ - \x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\ - \x03\x01\x02\0\x05\x12\x03d\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ - \0\x01\x12\x03d\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\ - \x03d!\"\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x01\x12\x03g\x06\x1f\x1a\x19\ - \x20Must\x20be\x20greater\x20than\x201.\n\n\x10\n\t\x04\0\x03\x01\x03\ - \x01\x02\x01\x05\x12\x03g\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ - \x01\x01\x12\x03g\r\x1a\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\ - \x03g\x1d\x1e\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x02\x12\x03j\x06\x17\ - \x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\ - \x01\x03\x01\x02\x02\x05\x12\x03j\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\ - \x01\x02\x02\x01\x12\x03j\r\x12\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\ - \x03\x12\x03j\x15\x16\n\xd1\x03\n\x06\x04\0\x03\x01\x03\x02\x12\x04x\x04\ - {\x05\x1a\xc0\x03\x20Specifies\x20a\x20set\x20of\x20buckets\x20with\x20a\ - rbitrary\x20widths.\n\n\x20There\x20are\x20`size(bounds)\x20+\x201`\x20(\ - =\x20N)\x20buckets.\x20Bucket\x20`i`\x20has\x20the\x20following\n\x20bou\ - ndaries:\n\n\x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\x20N-1)\ - :\x20\x20\x20\x20\x20bounds[i]\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20\ - <=\x20i\x20<\x20N);\x20\x20\x20\x20\x20\x20\x20bounds[i\x20-\x201]\n\n\ - \x20The\x20`bounds`\x20field\x20must\x20contain\x20at\x20least\x20one\ - \x20element.\x20If\x20`bounds`\x20has\n\x20only\x20one\x20element,\x20th\ - en\x20there\x20are\x20no\x20finite\x20buckets,\x20and\x20that\x20single\ - \n\x20element\x20is\x20the\x20common\x20boundary\x20of\x20the\x20overflo\ - w\x20and\x20underflow\x20buckets.\n\n\x0e\n\x07\x04\0\x03\x01\x03\x02\ - \x01\x12\x03x\x0c\x14\n?\n\x08\x04\0\x03\x01\x03\x02\x02\0\x12\x03z\x06!\ - \x1a.\x20The\x20values\x20must\x20be\x20monotonically\x20increasing.\n\n\ - \x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x04\x12\x03z\x06\x0e\n\x10\n\t\x04\ - \0\x03\x01\x03\x02\x02\0\x05\x12\x03z\x0f\x15\n\x10\n\t\x04\0\x03\x01\ - \x03\x02\x02\0\x01\x12\x03z\x16\x1c\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\ - \0\x03\x12\x03z\x1f\x20\nA\n\x06\x04\0\x03\x01\x08\0\x12\x05~\x04\x87\ - \x01\x05\x1a0\x20Exactly\x20one\x20of\x20these\x20three\x20fields\x20mus\ - t\x20be\x20set.\n\n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\x12\x03~\n\x11\n$\ - \n\x06\x04\0\x03\x01\x02\0\x12\x04\x80\x01\x06\x20\x1a\x14\x20The\x20lin\ - ear\x20bucket.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x06\x12\x04\x80\x01\x06\ - \x0c\n\x0f\n\x07\x04\0\x03\x01\x02\0\x01\x12\x04\x80\x01\r\x1b\n\x0f\n\ - \x07\x04\0\x03\x01\x02\0\x03\x12\x04\x80\x01\x1e\x1f\n*\n\x06\x04\0\x03\ - \x01\x02\x01\x12\x04\x83\x01\x06*\x1a\x1a\x20The\x20exponential\x20bucke\ - ts.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x83\x01\x06\x11\n\ - \x0f\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x04\x83\x01\x12%\n\x0f\n\x07\ - \x04\0\x03\x01\x02\x01\x03\x12\x04\x83\x01()\n'\n\x06\x04\0\x03\x01\x02\ - \x02\x12\x04\x86\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\ - \n\x07\x04\0\x03\x01\x02\x02\x06\x12\x04\x86\x01\x06\x0e\n\x0f\n\x07\x04\ - \0\x03\x01\x02\x02\x01\x12\x04\x86\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\ - \x02\x02\x03\x12\x04\x86\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\ - \x8f\x01\x02\xa3\x01\x03\x1a\xd8\x02\x20Exemplars\x20are\x20example\x20p\ - oints\x20that\x20may\x20be\x20used\x20to\x20annotate\x20aggregated\n\x20\ - distribution\x20values.\x20They\x20are\x20metadata\x20that\x20gives\x20i\ - nformation\x20about\x20a\n\x20particular\x20value\x20added\x20to\x20a\ - \x20Distribution\x20bucket,\x20such\x20as\x20a\x20trace\x20ID\x20that\n\ - \x20was\x20active\x20when\x20a\x20value\x20was\x20added.\x20They\x20may\ - \x20contain\x20further\x20information,\n\x20such\x20as\x20a\x20example\ - \x20values\x20and\x20timestamps,\x20origin,\x20etc.\n\n\r\n\x05\x04\0\ - \x03\x02\x01\x12\x04\x8f\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\ - \x92\x01\x04\x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20Thi\ - s\x20value\x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\ - \x20belongs.\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x92\x01\x04\n\ - \n\x0f\n\x07\x04\0\x03\x02\x02\0\x01\x12\x04\x92\x01\x0b\x10\n\x0f\n\x07\ - \x04\0\x03\x02\x02\0\x03\x12\x04\x92\x01\x13\x14\nE\n\x06\x04\0\x03\x02\ - \x02\x01\x12\x04\x95\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\ - \x20time\x20of\x20the\x20above\x20value.\n\n\x0f\n\x07\x04\0\x03\x02\x02\ - \x01\x06\x12\x04\x95\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\ - \x12\x04\x95\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x95\ - \x01*+\n\xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa2\x01\x041\x1a\ - \xa3\x03\x20Contextual\x20information\x20about\x20the\x20example\x20valu\ - e.\x20Examples\x20are:\n\n\x20\x20\x20Trace:\x20type.googleapis.com/goog\ - le.monitoring.v3.SpanContext\n\n\x20\x20\x20Literal\x20string:\x20type.g\ - oogleapis.com/google.protobuf.StringValue\n\n\x20\x20\x20Labels\x20dropp\ - ed\x20during\x20aggregation:\n\x20\x20\x20\x20\x20type.googleapis.com/go\ - ogle.monitoring.v3.DroppedLabels\n\n\x20There\x20may\x20be\x20only\x20a\ - \x20single\x20attachment\x20of\x20any\x20given\x20message\x20type\x20in\ - \x20a\n\x20single\x20exemplar,\x20and\x20this\x20is\x20enforced\x20by\ - \x20the\x20system.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x04\x12\x04\xa2\ - \x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa2\x01\r\x20\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa2\x01!,\n\x0f\n\x07\x04\ - \0\x03\x02\x02\x02\x03\x12\x04\xa2\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\ - \x04\xa8\x01\x02\x12\x1a\x9c\x01\x20The\x20number\x20of\x20values\x20in\ - \x20the\x20population.\x20Must\x20be\x20non-negative.\x20This\x20value\n\ - \x20must\x20equal\x20the\x20sum\x20of\x20the\x20values\x20in\x20`bucket_\ - counts`\x20if\x20a\x20histogram\x20is\n\x20provided.\n\n\r\n\x05\x04\0\ - \x02\0\x05\x12\x04\xa8\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa8\ - \x01\x08\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xa8\x01\x10\x11\nv\n\x04\ - \x04\0\x02\x01\x12\x04\xac\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\ - \x20of\x20the\x20values\x20in\x20the\x20population.\x20If\x20`count`\x20\ - is\x20zero\n\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\ - \x04\0\x02\x01\x05\x12\x04\xac\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\ - \x12\x04\xac\x01\t\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xac\x01\x10\x11\ - \n\xd8\x02\n\x04\x04\0\x02\x02\x12\x04\xb7\x01\x02&\x1a\xc9\x02\x20The\ - \x20sum\x20of\x20squared\x20deviations\x20from\x20the\x20mean\x20of\x20t\ - he\x20values\x20in\x20the\n\x20population.\x20For\x20values\x20x_i\x20th\ - is\x20is:\n\n\x20\x20\x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\ - \x20Knuth,\x20\"The\x20Art\x20of\x20Computer\x20Programming\",\x20Vol.\ - \x202,\x20page\x20232,\x203rd\x20edition\n\x20describes\x20Welford's\x20\ - method\x20for\x20accumulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\ - \x20If\x20`count`\x20is\x20zero\x20then\x20this\x20field\x20must\x20be\ - \x20zero.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xb7\x01\x02\x08\n\r\n\ - \x05\x04\0\x02\x02\x01\x12\x04\xb7\x01\t!\n\r\n\x05\x04\0\x02\x02\x03\ - \x12\x04\xb7\x01$%\n\x81\x01\n\x04\x04\0\x02\x03\x12\x04\xbb\x01\x02\x12\ - \x1as\x20If\x20specified,\x20contains\x20the\x20range\x20of\x20the\x20po\ - pulation\x20values.\x20The\x20field\n\x20must\x20not\x20be\x20present\ - \x20if\x20the\x20`count`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x06\ - \x12\x04\xbb\x01\x02\x07\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xbb\x01\x08\ - \r\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xbb\x01\x10\x11\n\x81\x01\n\x04\ - \x04\0\x02\x04\x12\x04\xbf\x01\x02#\x1as\x20Defines\x20the\x20histogram\ - \x20bucket\x20boundaries.\x20If\x20the\x20distribution\x20does\x20not\n\ - \x20contain\x20a\x20histogram,\x20then\x20omit\x20this\x20field.\n\n\r\n\ - \x05\x04\0\x02\x04\x06\x12\x04\xbf\x01\x02\x0f\n\r\n\x05\x04\0\x02\x04\ - \x01\x12\x04\xbf\x01\x10\x1e\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xbf\x01\ - !\"\n\xe7\x06\n\x04\x04\0\x02\x05\x12\x04\xd0\x01\x02#\x1a\xd8\x06\x20Th\ - e\x20number\x20of\x20values\x20in\x20each\x20bucket\x20of\x20the\x20hist\ - ogram,\x20as\x20described\x20in\n\x20`bucket_options`.\x20If\x20the\x20d\ - istribution\x20does\x20not\x20have\x20a\x20histogram,\x20then\x20omit\n\ - \x20this\x20field.\x20If\x20there\x20is\x20a\x20histogram,\x20then\x20th\ - e\x20sum\x20of\x20the\x20values\x20in\n\x20`bucket_counts`\x20must\x20eq\ - ual\x20the\x20value\x20in\x20the\x20`count`\x20field\x20of\x20the\n\x20d\ - istribution.\n\n\x20If\x20present,\x20`bucket_counts`\x20should\x20conta\ - in\x20N\x20values,\x20where\x20N\x20is\x20the\x20number\n\x20of\x20bucke\ - ts\x20specified\x20in\x20`bucket_options`.\x20If\x20you\x20supply\x20few\ - er\x20than\x20N\n\x20values,\x20the\x20remaining\x20values\x20are\x20ass\ - umed\x20to\x20be\x200.\n\n\x20The\x20order\x20of\x20the\x20values\x20in\ - \x20`bucket_counts`\x20follows\x20the\x20bucket\x20numbering\n\x20scheme\ - s\x20described\x20for\x20the\x20three\x20bucket\x20types.\x20The\x20firs\ - t\x20value\x20must\x20be\x20the\n\x20count\x20for\x20the\x20underflow\ - \x20bucket\x20(number\x200).\x20The\x20next\x20N-2\x20values\x20are\x20t\ - he\n\x20counts\x20for\x20the\x20finite\x20buckets\x20(number\x201\x20thr\ - ough\x20N-2).\x20The\x20N'th\x20value\x20in\n\x20`bucket_counts`\x20is\ - \x20the\x20count\x20for\x20the\x20overflow\x20bucket\x20(number\x20N-1).\ - \n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04\xd0\x01\x02\n\n\r\n\x05\x04\0\x02\ - \x05\x05\x12\x04\xd0\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xd0\ - \x01\x11\x1e\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xd0\x01!\"\n=\n\x04\x04\ - \0\x02\x06\x12\x04\xd3\x01\x02#\x1a/\x20Must\x20be\x20in\x20increasing\ - \x20order\x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\ - \x04\xd3\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd3\x01\x0b\x13\n\ - \r\n\x05\x04\0\x02\x06\x01\x12\x04\xd3\x01\x14\x1d\n\r\n\x05\x04\0\x02\ - \x06\x03\x12\x04\xd3\x01\x20\"b\x06proto3\ + \x20(growth_factor\x20^\x20i).\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20\ + <=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\x20\x20scale\x20*\x20(growth_fac\ + tor\x20^\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\0\x03\x01\x03\x01\x01\x12\ + \x03a\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03c\x06#\x1a\x19\ + \x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\x03\ + \x01\x02\0\x05\x12\x03c\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\ + \x01\x12\x03c\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\x03c\ + !\"\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x01\x12\x03f\x06\x1f\x1a\x19\x20M\ + ust\x20be\x20greater\x20than\x201.\n\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ + \x01\x05\x12\x03f\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x01\ + \x12\x03f\r\x1a\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\x03f\x1d\ + \x1e\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x02\x12\x03i\x06\x17\x1a\x19\x20\ + Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\x03\x01\ + \x02\x02\x05\x12\x03i\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\ + \x01\x12\x03i\r\x12\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x03\x12\x03i\ + \x15\x16\n\xd1\x03\n\x06\x04\0\x03\x01\x03\x02\x12\x04w\x04z\x05\x1a\xc0\ + \x03\x20Specifies\x20a\x20set\x20of\x20buckets\x20with\x20arbitrary\x20w\ + idths.\n\n\x20There\x20are\x20`size(bounds)\x20+\x201`\x20(=\x20N)\x20bu\ + ckets.\x20Bucket\x20`i`\x20has\x20the\x20following\n\x20boundaries:\n\n\ + \x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\x20N-1):\x20\x20\ + \x20\x20\x20bounds[i]\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20<=\x20i\ + \x20<\x20N);\x20\x20\x20\x20\x20\x20\x20bounds[i\x20-\x201]\n\n\x20The\ + \x20`bounds`\x20field\x20must\x20contain\x20at\x20least\x20one\x20elemen\ + t.\x20If\x20`bounds`\x20has\n\x20only\x20one\x20element,\x20then\x20ther\ + e\x20are\x20no\x20finite\x20buckets,\x20and\x20that\x20single\n\x20eleme\ + nt\x20is\x20the\x20common\x20boundary\x20of\x20the\x20overflow\x20and\ + \x20underflow\x20buckets.\n\n\x0e\n\x07\x04\0\x03\x01\x03\x02\x01\x12\ + \x03w\x0c\x14\n?\n\x08\x04\0\x03\x01\x03\x02\x02\0\x12\x03y\x06!\x1a.\ + \x20The\x20values\x20must\x20be\x20monotonically\x20increasing.\n\n\x10\ + \n\t\x04\0\x03\x01\x03\x02\x02\0\x04\x12\x03y\x06\x0e\n\x10\n\t\x04\0\ + \x03\x01\x03\x02\x02\0\x05\x12\x03y\x0f\x15\n\x10\n\t\x04\0\x03\x01\x03\ + \x02\x02\0\x01\x12\x03y\x16\x1c\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\ + \x03\x12\x03y\x1f\x20\nA\n\x06\x04\0\x03\x01\x08\0\x12\x05}\x04\x86\x01\ + \x05\x1a0\x20Exactly\x20one\x20of\x20these\x20three\x20fields\x20must\ + \x20be\x20set.\n\n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\x12\x03}\n\x11\n#\n\ + \x06\x04\0\x03\x01\x02\0\x12\x03\x7f\x06\x20\x1a\x14\x20The\x20linear\ + \x20bucket.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x06\x12\x03\x7f\x06\x0c\n\ + \x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03\x7f\r\x1b\n\x0e\n\x07\x04\0\ + \x03\x01\x02\0\x03\x12\x03\x7f\x1e\x1f\n*\n\x06\x04\0\x03\x01\x02\x01\ + \x12\x04\x82\x01\x06*\x1a\x1a\x20The\x20exponential\x20buckets.\n\n\x0f\ + \n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x82\x01\x06\x11\n\x0f\n\x07\x04\ + \0\x03\x01\x02\x01\x01\x12\x04\x82\x01\x12%\n\x0f\n\x07\x04\0\x03\x01\ + \x02\x01\x03\x12\x04\x82\x01()\n'\n\x06\x04\0\x03\x01\x02\x02\x12\x04\ + \x85\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\n\x07\x04\0\ + \x03\x01\x02\x02\x06\x12\x04\x85\x01\x06\x0e\n\x0f\n\x07\x04\0\x03\x01\ + \x02\x02\x01\x12\x04\x85\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\x02\x02\ + \x03\x12\x04\x85\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\x8e\x01\ + \x02\xa2\x01\x03\x1a\xd8\x02\x20Exemplars\x20are\x20example\x20points\ + \x20that\x20may\x20be\x20used\x20to\x20annotate\x20aggregated\n\x20distr\ + ibution\x20values.\x20They\x20are\x20metadata\x20that\x20gives\x20inform\ + ation\x20about\x20a\n\x20particular\x20value\x20added\x20to\x20a\x20Dist\ + ribution\x20bucket,\x20such\x20as\x20a\x20trace\x20ID\x20that\n\x20was\ + \x20active\x20when\x20a\x20value\x20was\x20added.\x20They\x20may\x20cont\ + ain\x20further\x20information,\n\x20such\x20as\x20a\x20example\x20values\ + \x20and\x20timestamps,\x20origin,\x20etc.\n\n\r\n\x05\x04\0\x03\x02\x01\ + \x12\x04\x8e\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\x91\x01\x04\ + \x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20This\x20value\ + \x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\x20belongs.\ + \n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x91\x01\x04\n\n\x0f\n\x07\ + \x04\0\x03\x02\x02\0\x01\x12\x04\x91\x01\x0b\x10\n\x0f\n\x07\x04\0\x03\ + \x02\x02\0\x03\x12\x04\x91\x01\x13\x14\nE\n\x06\x04\0\x03\x02\x02\x01\ + \x12\x04\x94\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\x20time\ + \x20of\x20the\x20above\x20value.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x06\ + \x12\x04\x94\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\ + \x94\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x94\x01*+\n\ + \xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa1\x01\x041\x1a\xa3\x03\ + \x20Contextual\x20information\x20about\x20the\x20example\x20value.\x20Ex\ + amples\x20are:\n\n\x20\x20\x20Trace:\x20type.googleapis.com/google.monit\ + oring.v3.SpanContext\n\n\x20\x20\x20Literal\x20string:\x20type.googleapi\ + s.com/google.protobuf.StringValue\n\n\x20\x20\x20Labels\x20dropped\x20du\ + ring\x20aggregation:\n\x20\x20\x20\x20\x20type.googleapis.com/google.mon\ + itoring.v3.DroppedLabels\n\n\x20There\x20may\x20be\x20only\x20a\x20singl\ + e\x20attachment\x20of\x20any\x20given\x20message\x20type\x20in\x20a\n\ + \x20single\x20exemplar,\x20and\x20this\x20is\x20enforced\x20by\x20the\ + \x20system.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x04\x12\x04\xa1\x01\x04\ + \x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa1\x01\r\x20\n\x0f\n\ + \x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa1\x01!,\n\x0f\n\x07\x04\0\x03\ + \x02\x02\x02\x03\x12\x04\xa1\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\x04\ + \xa7\x01\x02\x12\x1a\x9c\x01\x20The\x20number\x20of\x20values\x20in\x20t\ + he\x20population.\x20Must\x20be\x20non-negative.\x20This\x20value\n\x20m\ + ust\x20equal\x20the\x20sum\x20of\x20the\x20values\x20in\x20`bucket_count\ + s`\x20if\x20a\x20histogram\x20is\n\x20provided.\n\n\r\n\x05\x04\0\x02\0\ + \x05\x12\x04\xa7\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa7\x01\ + \x08\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xa7\x01\x10\x11\nv\n\x04\x04\0\ + \x02\x01\x12\x04\xab\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\x20of\ + \x20the\x20values\x20in\x20the\x20population.\x20If\x20`count`\x20is\x20\ + zero\n\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\x04\0\ + \x02\x01\x05\x12\x04\xab\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\ + \xab\x01\t\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xab\x01\x10\x11\n\xd8\ + \x02\n\x04\x04\0\x02\x02\x12\x04\xb6\x01\x02&\x1a\xc9\x02\x20The\x20sum\ + \x20of\x20squared\x20deviations\x20from\x20the\x20mean\x20of\x20the\x20v\ + alues\x20in\x20the\n\x20population.\x20For\x20values\x20x_i\x20this\x20i\ + s:\n\n\x20\x20\x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\x20Knuth\ + ,\x20\"The\x20Art\x20of\x20Computer\x20Programming\",\x20Vol.\x202,\x20p\ + age\x20323,\x203rd\x20edition\n\x20describes\x20Welford's\x20method\x20f\ + or\x20accumulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\x20If\x20`co\ + unt`\x20is\x20zero\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\ + \n\x05\x04\0\x02\x02\x05\x12\x04\xb6\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\ + \x01\x12\x04\xb6\x01\t!\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xb6\x01$%\n\ + \x81\x01\n\x04\x04\0\x02\x03\x12\x04\xba\x01\x02\x12\x1as\x20If\x20speci\ + fied,\x20contains\x20the\x20range\x20of\x20the\x20population\x20values.\ + \x20The\x20field\n\x20must\x20not\x20be\x20present\x20if\x20the\x20`coun\ + t`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xba\x01\x02\x07\ + \n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xba\x01\x08\r\n\r\n\x05\x04\0\x02\ + \x03\x03\x12\x04\xba\x01\x10\x11\n\x81\x01\n\x04\x04\0\x02\x04\x12\x04\ + \xbe\x01\x02#\x1as\x20Defines\x20the\x20histogram\x20bucket\x20boundarie\ + s.\x20If\x20the\x20distribution\x20does\x20not\n\x20contain\x20a\x20hist\ + ogram,\x20then\x20omit\x20this\x20field.\n\n\r\n\x05\x04\0\x02\x04\x06\ + \x12\x04\xbe\x01\x02\x0f\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xbe\x01\x10\ + \x1e\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xbe\x01!\"\n\xe7\x06\n\x04\x04\ + \0\x02\x05\x12\x04\xcf\x01\x02#\x1a\xd8\x06\x20The\x20number\x20of\x20va\ + lues\x20in\x20each\x20bucket\x20of\x20the\x20histogram,\x20as\x20describ\ + ed\x20in\n\x20`bucket_options`.\x20If\x20the\x20distribution\x20does\x20\ + not\x20have\x20a\x20histogram,\x20then\x20omit\n\x20this\x20field.\x20If\ + \x20there\x20is\x20a\x20histogram,\x20then\x20the\x20sum\x20of\x20the\ + \x20values\x20in\n\x20`bucket_counts`\x20must\x20equal\x20the\x20value\ + \x20in\x20the\x20`count`\x20field\x20of\x20the\n\x20distribution.\n\n\ + \x20If\x20present,\x20`bucket_counts`\x20should\x20contain\x20N\x20value\ + s,\x20where\x20N\x20is\x20the\x20number\n\x20of\x20buckets\x20specified\ + \x20in\x20`bucket_options`.\x20If\x20you\x20supply\x20fewer\x20than\x20N\ + \n\x20values,\x20the\x20remaining\x20values\x20are\x20assumed\x20to\x20b\ + e\x200.\n\n\x20The\x20order\x20of\x20the\x20values\x20in\x20`bucket_coun\ + ts`\x20follows\x20the\x20bucket\x20numbering\n\x20schemes\x20described\ + \x20for\x20the\x20three\x20bucket\x20types.\x20The\x20first\x20value\x20\ + must\x20be\x20the\n\x20count\x20for\x20the\x20underflow\x20bucket\x20(nu\ + mber\x200).\x20The\x20next\x20N-2\x20values\x20are\x20the\n\x20counts\ + \x20for\x20the\x20finite\x20buckets\x20(number\x201\x20through\x20N-2).\ + \x20The\x20N'th\x20value\x20in\n\x20`bucket_counts`\x20is\x20the\x20coun\ + t\x20for\x20the\x20overflow\x20bucket\x20(number\x20N-1).\n\n\r\n\x05\ + \x04\0\x02\x05\x04\x12\x04\xcf\x01\x02\n\n\r\n\x05\x04\0\x02\x05\x05\x12\ + \x04\xcf\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xcf\x01\x11\x1e\ + \n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xcf\x01!\"\n=\n\x04\x04\0\x02\x06\ + \x12\x04\xd2\x01\x02#\x1a/\x20Must\x20be\x20in\x20increasing\x20order\ + \x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04\xd2\ + \x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd2\x01\x0b\x13\n\r\n\x05\ + \x04\0\x02\x06\x01\x12\x04\xd2\x01\x14\x1d\n\r\n\x05\x04\0\x02\x06\x03\ + \x12\x04\xd2\x01\x20\"b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(7); + messages.push(Distribution::generated_message_descriptor_data()); + messages.push(distribution::Range::generated_message_descriptor_data()); + messages.push(distribution::BucketOptions::generated_message_descriptor_data()); + messages.push(distribution::Exemplar::generated_message_descriptor_data()); + messages.push(distribution::bucket_options::Linear::generated_message_descriptor_data()); + messages.push(distribution::bucket_options::Exponential::generated_message_descriptor_data()); + messages.push(distribution::bucket_options::Explicit::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/documentation.rs b/googleapis-raw/src/api/documentation.rs index c0ec96e..2c00cfe 100644 --- a/googleapis-raw/src/api/documentation.rs +++ b/googleapis-raw/src/api/documentation.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,26 +16,39 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/documentation.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Documentation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Documentation { // message fields + /// A short summary of what the service does. Can only be provided by + /// plain text. + // @@protoc_insertion_point(field:google.api.Documentation.summary) pub summary: ::std::string::String, - pub pages: ::protobuf::RepeatedField, - pub rules: ::protobuf::RepeatedField, + /// The top level pages for the documentation set. + // @@protoc_insertion_point(field:google.api.Documentation.pages) + pub pages: ::std::vec::Vec, + /// A list of documentation rules that apply to individual API elements. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Documentation.rules) + pub rules: ::std::vec::Vec, + /// The URL to the root of documentation. + // @@protoc_insertion_point(field:google.api.Documentation.documentation_root_url) pub documentation_root_url: ::std::string::String, - pub service_root_url: ::std::string::String, + // @@protoc_insertion_point(field:google.api.Documentation.overview) pub overview: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Documentation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Documentation { @@ -48,200 +62,69 @@ impl Documentation { ::std::default::Default::default() } - // string summary = 1; - - - pub fn get_summary(&self) -> &str { - &self.summary - } - pub fn clear_summary(&mut self) { - self.summary.clear(); - } - - // Param is passed by value, moved - pub fn set_summary(&mut self, v: ::std::string::String) { - self.summary = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_summary(&mut self) -> &mut ::std::string::String { - &mut self.summary - } - - // Take field - pub fn take_summary(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.summary, ::std::string::String::new()) - } - - // repeated .google.api.Page pages = 5; - - - pub fn get_pages(&self) -> &[Page] { - &self.pages - } - pub fn clear_pages(&mut self) { - self.pages.clear(); - } - - // Param is passed by value, moved - pub fn set_pages(&mut self, v: ::protobuf::RepeatedField) { - self.pages = v; - } - - // Mutable pointer to the field. - pub fn mut_pages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.pages - } - - // Take field - pub fn take_pages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.pages, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.DocumentationRule rules = 3; - - - pub fn get_rules(&self) -> &[DocumentationRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // string documentation_root_url = 4; - - - pub fn get_documentation_root_url(&self) -> &str { - &self.documentation_root_url - } - pub fn clear_documentation_root_url(&mut self) { - self.documentation_root_url.clear(); - } - - // Param is passed by value, moved - pub fn set_documentation_root_url(&mut self, v: ::std::string::String) { - self.documentation_root_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_documentation_root_url(&mut self) -> &mut ::std::string::String { - &mut self.documentation_root_url - } - - // Take field - pub fn take_documentation_root_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.documentation_root_url, ::std::string::String::new()) - } - - // string service_root_url = 6; - - - pub fn get_service_root_url(&self) -> &str { - &self.service_root_url - } - pub fn clear_service_root_url(&mut self) { - self.service_root_url.clear(); - } - - // Param is passed by value, moved - pub fn set_service_root_url(&mut self, v: ::std::string::String) { - self.service_root_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_root_url(&mut self) -> &mut ::std::string::String { - &mut self.service_root_url - } - - // Take field - pub fn take_service_root_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_root_url, ::std::string::String::new()) - } - - // string overview = 2; - - - pub fn get_overview(&self) -> &str { - &self.overview - } - pub fn clear_overview(&mut self) { - self.overview.clear(); - } - - // Param is passed by value, moved - pub fn set_overview(&mut self, v: ::std::string::String) { - self.overview = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_overview(&mut self) -> &mut ::std::string::String { - &mut self.overview - } - - // Take field - pub fn take_overview(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.overview, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "summary", + |m: &Documentation| { &m.summary }, + |m: &mut Documentation| { &mut m.summary }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "pages", + |m: &Documentation| { &m.pages }, + |m: &mut Documentation| { &mut m.pages }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Documentation| { &m.rules }, + |m: &mut Documentation| { &mut m.rules }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "documentation_root_url", + |m: &Documentation| { &m.documentation_root_url }, + |m: &mut Documentation| { &mut m.documentation_root_url }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "overview", + |m: &Documentation| { &m.overview }, + |m: &mut Documentation| { &mut m.overview }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Documentation", + fields, + oneofs, + ) } } impl ::protobuf::Message for Documentation { + const NAME: &'static str = "Documentation"; + fn is_initialized(&self) -> bool { - for v in &self.pages { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.summary)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.summary = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.pages)?; + 42 => { + self.pages.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + 26 => { + self.rules.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.documentation_root_url)?; + 34 => { + self.documentation_root_url = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_root_url)?; + 18 => { + self.overview = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.overview)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -250,171 +133,124 @@ impl ::protobuf::Message for Documentation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.summary.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.summary); } for value in &self.pages { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.documentation_root_url.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.documentation_root_url); } - if !self.service_root_url.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.service_root_url); - } if !self.overview.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.overview); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.summary.is_empty() { os.write_string(1, &self.summary)?; } for v in &self.pages { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }; for v in &self.rules { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; if !self.documentation_root_url.is_empty() { os.write_string(4, &self.documentation_root_url)?; } - if !self.service_root_url.is_empty() { - os.write_string(6, &self.service_root_url)?; - } if !self.overview.is_empty() { os.write_string(2, &self.overview)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Documentation { Documentation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "summary", - |m: &Documentation| { &m.summary }, - |m: &mut Documentation| { &mut m.summary }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "pages", - |m: &Documentation| { &m.pages }, - |m: &mut Documentation| { &mut m.pages }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Documentation| { &m.rules }, - |m: &mut Documentation| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "documentation_root_url", - |m: &Documentation| { &m.documentation_root_url }, - |m: &mut Documentation| { &mut m.documentation_root_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_root_url", - |m: &Documentation| { &m.service_root_url }, - |m: &mut Documentation| { &mut m.service_root_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "overview", - |m: &Documentation| { &m.overview }, - |m: &mut Documentation| { &mut m.overview }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Documentation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Documentation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Documentation::new) - } -} - -impl ::protobuf::Clear for Documentation { fn clear(&mut self) { self.summary.clear(); self.pages.clear(); self.rules.clear(); self.documentation_root_url.clear(); - self.service_root_url.clear(); self.overview.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Documentation { + static instance: Documentation = Documentation { + summary: ::std::string::String::new(), + pages: ::std::vec::Vec::new(), + rules: ::std::vec::Vec::new(), + documentation_root_url: ::std::string::String::new(), + overview: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for Documentation { +impl ::protobuf::MessageFull for Documentation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Documentation").unwrap()).clone() + } +} + +impl ::std::fmt::Display for Documentation { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Documentation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A documentation rule provides information about individual API elements. +// @@protoc_insertion_point(message:google.api.DocumentationRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DocumentationRule { // message fields + /// The selector is a comma-separated list of patterns. Each pattern is a + /// qualified name of the element which may end in "*", indicating a wildcard. + /// Wildcards are only allowed at the end and for a whole component of the + /// qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A + /// wildcard will match one or more components. To specify a default for all + /// applicable elements, the whole pattern "*" is used. + // @@protoc_insertion_point(field:google.api.DocumentationRule.selector) pub selector: ::std::string::String, + /// Description of the selected API(s). + // @@protoc_insertion_point(field:google.api.DocumentationRule.description) pub description: ::std::string::String, + /// Deprecation description of the selected element(s). It can be provided if + /// an element is marked as `deprecated`. + // @@protoc_insertion_point(field:google.api.DocumentationRule.deprecation_description) pub deprecation_description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.DocumentationRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DocumentationRule { @@ -428,105 +264,53 @@ impl DocumentationRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string deprecation_description = 3; - - - pub fn get_deprecation_description(&self) -> &str { - &self.deprecation_description - } - pub fn clear_deprecation_description(&mut self) { - self.deprecation_description.clear(); - } - - // Param is passed by value, moved - pub fn set_deprecation_description(&mut self, v: ::std::string::String) { - self.deprecation_description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_deprecation_description(&mut self) -> &mut ::std::string::String { - &mut self.deprecation_description - } - - // Take field - pub fn take_deprecation_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.deprecation_description, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &DocumentationRule| { &m.selector }, + |m: &mut DocumentationRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &DocumentationRule| { &m.description }, + |m: &mut DocumentationRule| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "deprecation_description", + |m: &DocumentationRule| { &m.deprecation_description }, + |m: &mut DocumentationRule| { &mut m.deprecation_description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DocumentationRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for DocumentationRule { + const NAME: &'static str = "DocumentationRule"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 18 => { + self.description = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.deprecation_description)?; + 26 => { + self.deprecation_description = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -535,7 +319,7 @@ impl ::protobuf::Message for DocumentationRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); @@ -546,12 +330,12 @@ impl ::protobuf::Message for DocumentationRule { if !self.deprecation_description.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.deprecation_description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } @@ -561,103 +345,76 @@ impl ::protobuf::Message for DocumentationRule { if !self.deprecation_description.is_empty() { os.write_string(3, &self.deprecation_description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DocumentationRule { DocumentationRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &DocumentationRule| { &m.selector }, - |m: &mut DocumentationRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &DocumentationRule| { &m.description }, - |m: &mut DocumentationRule| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "deprecation_description", - |m: &DocumentationRule| { &m.deprecation_description }, - |m: &mut DocumentationRule| { &mut m.deprecation_description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DocumentationRule", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.selector.clear(); + self.description.clear(); + self.deprecation_description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DocumentationRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DocumentationRule::new) + static instance: DocumentationRule = DocumentationRule { + selector: ::std::string::String::new(), + description: ::std::string::String::new(), + deprecation_description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DocumentationRule { - fn clear(&mut self) { - self.selector.clear(); - self.description.clear(); - self.deprecation_description.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DocumentationRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DocumentationRule").unwrap()).clone() } } -impl ::std::fmt::Debug for DocumentationRule { +impl ::std::fmt::Display for DocumentationRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DocumentationRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Represents a documentation page. A page can contain subpages to represent +/// nested documentation set structure. +// @@protoc_insertion_point(message:google.api.Page) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Page { // message fields + // @@protoc_insertion_point(field:google.api.Page.name) pub name: ::std::string::String, + /// The Markdown content of the page. You can use (== include {path} + /// ==) to include content from a Markdown file. + // @@protoc_insertion_point(field:google.api.Page.content) pub content: ::std::string::String, - pub subpages: ::protobuf::RepeatedField, + /// Subpages of this page. The order of subpages specified here will be + /// honored in the generated docset. + // @@protoc_insertion_point(field:google.api.Page.subpages) + pub subpages: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Page.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Page { @@ -671,109 +428,53 @@ impl Page { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string content = 2; - - - pub fn get_content(&self) -> &str { - &self.content - } - pub fn clear_content(&mut self) { - self.content.clear(); - } - - // Param is passed by value, moved - pub fn set_content(&mut self, v: ::std::string::String) { - self.content = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content(&mut self) -> &mut ::std::string::String { - &mut self.content - } - - // Take field - pub fn take_content(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.content, ::std::string::String::new()) - } - - // repeated .google.api.Page subpages = 3; - - - pub fn get_subpages(&self) -> &[Page] { - &self.subpages - } - pub fn clear_subpages(&mut self) { - self.subpages.clear(); - } - - // Param is passed by value, moved - pub fn set_subpages(&mut self, v: ::protobuf::RepeatedField) { - self.subpages = v; - } - - // Mutable pointer to the field. - pub fn mut_subpages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.subpages - } - - // Take field - pub fn take_subpages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.subpages, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Page| { &m.name }, + |m: &mut Page| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "content", + |m: &Page| { &m.content }, + |m: &mut Page| { &mut m.content }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "subpages", + |m: &Page| { &m.subpages }, + |m: &mut Page| { &mut m.subpages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Page", + fields, + oneofs, + ) } } impl ::protobuf::Message for Page { + const NAME: &'static str = "Page"; + fn is_initialized(&self) -> bool { - for v in &self.subpages { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content)?; + 18 => { + self.content = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subpages)?; + 26 => { + self.subpages.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -782,7 +483,7 @@ impl ::protobuf::Message for Page { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -792,14 +493,14 @@ impl ::protobuf::Message for Page { } for value in &self.subpages { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } @@ -807,118 +508,78 @@ impl ::protobuf::Message for Page { os.write_string(2, &self.content)?; } for v in &self.subpages { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Page { Page::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Page| { &m.name }, - |m: &mut Page| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "content", - |m: &Page| { &m.content }, - |m: &mut Page| { &mut m.content }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "subpages", - |m: &Page| { &m.subpages }, - |m: &mut Page| { &mut m.subpages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Page", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.content.clear(); + self.subpages.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Page { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Page::new) + static instance: Page = Page { + name: ::std::string::String::new(), + content: ::std::string::String::new(), + subpages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Page { - fn clear(&mut self) { - self.name.clear(); - self.content.clear(); - self.subpages.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Page { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Page").unwrap()).clone() } } -impl ::std::fmt::Debug for Page { +impl ::std::fmt::Display for Page { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Page { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\x82\x02\n\rDocume\ + \n\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\xd8\x01\n\rDocume\ ntation\x12\x18\n\x07summary\x18\x01\x20\x01(\tR\x07summary\x12&\n\x05pa\ ges\x18\x05\x20\x03(\x0b2\x10.google.api.PageR\x05pages\x123\n\x05rules\ \x18\x03\x20\x03(\x0b2\x1d.google.api.DocumentationRuleR\x05rules\x124\n\ \x16documentation_root_url\x18\x04\x20\x01(\tR\x14documentationRootUrl\ - \x12(\n\x10service_root_url\x18\x06\x20\x01(\tR\x0eserviceRootUrl\x12\ - \x1a\n\x08overview\x18\x02\x20\x01(\tR\x08overview\"\x8a\x01\n\x11Docume\ - ntationRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08selector\x12\ - \x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x127\n\x17depre\ - cation_description\x18\x03\x20\x01(\tR\x16deprecationDescription\"b\n\ - \x04Page\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07cont\ - ent\x18\x02\x20\x01(\tR\x07content\x12,\n\x08subpages\x18\x03\x20\x03(\ + \x12\x1a\n\x08overview\x18\x02\x20\x01(\tR\x08overview\"\x8a\x01\n\x11Do\ + cumentationRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08selector\ + \x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x127\n\x17d\ + eprecation_description\x18\x03\x20\x01(\tR\x16deprecationDescription\"b\ + \n\x04Page\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07co\ + ntent\x18\x02\x20\x01(\tR\x07content\x12,\n\x08subpages\x18\x03\x20\x03(\ \x0b2\x10.google.api.PageR\x08subpagesBt\n\x0ecom.google.apiB\x12Documen\ tationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfi\ - g;serviceconfig\xa2\x02\x04GAPIJ\xb85\n\x07\x12\x05\x0e\0\xa7\x01\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + g;serviceconfig\xa2\x02\x04GAPIJ\xba/\n\x07\x12\x05\x0f\0\x9c\x01\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ @@ -927,35 +588,35 @@ static file_descriptor_proto_data: &'static [u8] = b"\ WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ - \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ - \03\n\t\n\x02\x08\x08\x12\x03\x14\03\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ - \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\xf3\x11\n\x02\x04\0\x12\x04O\0u\x01\x1a\xe6\x11\ - \x20`Documentation`\x20provides\x20the\x20information\x20for\x20describi\ - ng\x20a\x20service.\n\n\x20Example:\n\x20
documentation:\n\x20\
-    \x20\x20summary:\x20>\n\x20\x20\x20\x20\x20The\x20Google\x20Calendar\x20\
-    API\x20gives\x20access\n\x20\x20\x20\x20\x20to\x20most\x20calendar\x20fe\
-    atures.\n\x20\x20\x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\x20\
-    \x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/overview.md\
-    \x20==)\n\x20\x20\x20-\x20name:\x20Tutorial\n\x20\x20\x20\x20\x20con\
-    tent:\x20(==\x20include\x20google/foo/tutorial.md\x20==)\n\x20\
-    \x20\x20\x20\x20subpages;\n\x20\x20\x20\x20\x20-\x20name:\x20Java\n\x20\
-    \x20\x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/tut\
-    orial_java.md\x20==)\n\x20\x20\x20rules:\n\x20\x20\x20-\x20selector:\
-    \x20google.calendar.Calendar.Get\n\x20\x20\x20\x20\x20description:\x20>\
-    \n\x20\x20\x20\x20\x20\x20\x20...\n\x20\x20\x20-\x20selector:\x20google.\
-    calendar.Calendar.Put\n\x20\x20\x20\x20\x20description:\x20>\n\x20\x20\
-    \x20\x20\x20\x20\x20...\n\x20
\n\x20Documentation\x20is\x20p\ - rovided\x20in\x20markdown\x20syntax.\x20In\x20addition\x20to\n\x20standa\ - rd\x20markdown\x20features,\x20definition\x20lists,\x20tables\x20and\x20\ - fenced\n\x20code\x20blocks\x20are\x20supported.\x20Section\x20headers\ - \x20can\x20be\x20provided\x20and\x20are\n\x20interpreted\x20relative\x20\ - to\x20the\x20section\x20nesting\x20of\x20the\x20context\x20where\n\x20a\ - \x20documentation\x20fragment\x20is\x20embedded.\n\n\x20Documentation\ - \x20from\x20the\x20IDL\x20is\x20merged\x20with\x20documentation\x20defin\ - ed\n\x20via\x20the\x20config\x20at\x20normalization\x20time,\x20where\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ + \x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\ + \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ + \x15\03\n\t\n\x02\x08\x08\x12\x03\x15\03\n\x08\n\x01\x08\x12\x03\x16\0'\ + \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ + \x02\x08$\x12\x03\x17\0\"\n\xf3\x11\n\x02\x04\0\x12\x04P\0n\x01\x1a\xe6\ + \x11\x20`Documentation`\x20provides\x20the\x20information\x20for\x20desc\ + ribing\x20a\x20service.\n\n\x20Example:\n\x20
documentation:\n\
+    \x20\x20\x20summary:\x20>\n\x20\x20\x20\x20\x20The\x20Google\x20Calendar\
+    \x20API\x20gives\x20access\n\x20\x20\x20\x20\x20to\x20most\x20calendar\
+    \x20features.\n\x20\x20\x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\
+    \x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/overvie\
+    w.md\x20==)\n\x20\x20\x20-\x20name:\x20Tutorial\n\x20\x20\x20\x20\
+    \x20content:\x20(==\x20include\x20google/foo/tutorial.md\x20==)\
+    \n\x20\x20\x20\x20\x20subpages;\n\x20\x20\x20\x20\x20-\x20name:\x20Java\
+    \n\x20\x20\x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/f\
+    oo/tutorial_java.md\x20==)\n\x20\x20\x20rules:\n\x20\x20\x20-\x20sel\
+    ector:\x20google.calendar.Calendar.Get\n\x20\x20\x20\x20\x20description:\
+    \x20>\n\x20\x20\x20\x20\x20\x20\x20...\n\x20\x20\x20-\x20selector:\x20go\
+    ogle.calendar.Calendar.Put\n\x20\x20\x20\x20\x20description:\x20>\n\x20\
+    \x20\x20\x20\x20\x20\x20...\n\x20
\n\x20Documentation\x20is\ + \x20provided\x20in\x20markdown\x20syntax.\x20In\x20addition\x20to\n\x20s\ + tandard\x20markdown\x20features,\x20definition\x20lists,\x20tables\x20an\ + d\x20fenced\n\x20code\x20blocks\x20are\x20supported.\x20Section\x20heade\ + rs\x20can\x20be\x20provided\x20and\x20are\n\x20interpreted\x20relative\ + \x20to\x20the\x20section\x20nesting\x20of\x20the\x20context\x20where\n\ + \x20a\x20documentation\x20fragment\x20is\x20embedded.\n\n\x20Documentati\ + on\x20from\x20the\x20IDL\x20is\x20merged\x20with\x20documentation\x20def\ + ined\n\x20via\x20the\x20config\x20at\x20normalization\x20time,\x20where\ \x20documentation\x20provided\n\x20by\x20config\x20rules\x20overrides\ \x20IDL\x20provided.\n\n\x20A\x20number\x20of\x20constructs\x20specific\ \x20to\x20the\x20API\x20platform\x20are\x20supported\n\x20in\x20document\ @@ -980,120 +641,121 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20==)\n\x20The\x20directive\x20`suppress_warning`\x20\ does\x20not\x20directly\x20affect\x20documentation\n\x20and\x20is\x20doc\ umented\x20together\x20with\x20service\x20config\x20validation.\n\n\n\n\ - \x03\x04\0\x01\x12\x03O\x08\x15\n\xee\x01\n\x04\x04\0\x02\0\x12\x03T\x02\ - \x15\x1a\xe0\x01\x20A\x20short\x20description\x20of\x20what\x20the\x20se\ - rvice\x20does.\x20The\x20summary\x20must\x20be\x20plain\n\x20text.\x20It\ - \x20becomes\x20the\x20overview\x20of\x20the\x20service\x20displayed\x20i\ - n\x20Google\x20Cloud\n\x20Console.\n\x20NOTE:\x20This\x20field\x20is\x20\ - equivalent\x20to\x20the\x20standard\x20field\x20`description`.\n\n\x0c\n\ - \x05\x04\0\x02\0\x05\x12\x03T\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03T\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03T\x13\x14\n=\n\x04\x04\0\ - \x02\x01\x12\x03W\x02\x1a\x1a0\x20The\x20top\x20level\x20pages\x20for\ + \x03\x04\0\x01\x12\x03P\x08\x15\n]\n\x04\x04\0\x02\0\x12\x03S\x02\x15\ + \x1aP\x20A\x20short\x20summary\x20of\x20what\x20the\x20service\x20does.\ + \x20Can\x20only\x20be\x20provided\x20by\n\x20plain\x20text.\n\n\x0c\n\ + \x05\x04\0\x02\0\x05\x12\x03S\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ + \x03S\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03S\x13\x14\n=\n\x04\x04\0\ + \x02\x01\x12\x03V\x02\x1a\x1a0\x20The\x20top\x20level\x20pages\x20for\ \x20the\x20documentation\x20set.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\ - W\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03W\x0b\x0f\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03W\x10\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03W\x18\ - \x19\n\x9e\x01\n\x04\x04\0\x02\x02\x12\x03\\\x02'\x1a\x90\x01\x20A\x20li\ - st\x20of\x20documentation\x20rules\x20that\x20apply\x20to\x20individual\ + V\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03V\x0b\x0f\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03V\x10\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03V\x18\ + \x19\n\x9e\x01\n\x04\x04\0\x02\x02\x12\x03[\x02'\x1a\x90\x01\x20A\x20lis\ + t\x20of\x20documentation\x20rules\x20that\x20apply\x20to\x20individual\ \x20API\x20elements.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\ \x20rules\x20follow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x04\x12\x03\\\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\ - \\\x0b\x1c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\\\x1d\"\n\x0c\n\x05\x04\ - \0\x02\x02\x03\x12\x03\\%&\n4\n\x04\x04\0\x02\x03\x12\x03_\x02$\x1a'\x20\ - The\x20URL\x20to\x20the\x20root\x20of\x20documentation.\n\n\x0c\n\x05\ - \x04\0\x02\x03\x05\x12\x03_\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ - \x03_\t\x1f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03_\"#\n\xf6\x01\n\x04\ - \x04\0\x02\x04\x12\x03e\x02\x1e\x1a\xe8\x01\x20Specifies\x20the\x20servi\ - ce\x20root\x20url\x20if\x20the\x20default\x20one\x20(the\x20service\x20n\ - ame\n\x20from\x20the\x20yaml\x20file)\x20is\x20not\x20suitable.\x20This\ - \x20can\x20be\x20seen\x20in\x20any\x20fully\n\x20specified\x20service\ - \x20urls\x20as\x20well\x20as\x20sections\x20that\x20show\x20a\x20base\ - \x20that\x20other\n\x20urls\x20are\x20relative\x20to.\n\n\x0c\n\x05\x04\ - \0\x02\x04\x05\x12\x03e\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03e\t\ - \x19\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03e\x1c\x1d\n\xbc\x03\n\x04\x04\ - \0\x02\x05\x12\x03t\x02\x16\x1a\xae\x03\x20Declares\x20a\x20single\x20ov\ - erview\x20page.\x20For\x20example:\n\x20
documentation:\n\x20\
-    \x20\x20summary:\x20...\n\x20\x20\x20overview:\x20(==\x20include\x20\
-    overview.md\x20==)\n\x20
\n\x20This\x20is\x20a\x20shortc\ - ut\x20for\x20the\x20following\x20declaration\x20(using\x20pages\x20style\ - ):\n\x20
documentation:\n\x20\x20\x20summary:\x20...\n\x20\x20\
+    \x04\0\x02\x02\x04\x12\x03[\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03[\
+    \x0b\x1c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03[\x1d\"\n\x0c\n\x05\x04\0\
+    \x02\x02\x03\x12\x03[%&\n4\n\x04\x04\0\x02\x03\x12\x03^\x02$\x1a'\x20The\
+    \x20URL\x20to\x20the\x20root\x20of\x20documentation.\n\n\x0c\n\x05\x04\0\
+    \x02\x03\x05\x12\x03^\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03^\t\
+    \x1f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03^\"#\n\xbc\x03\n\x04\x04\0\x02\
+    \x04\x12\x03m\x02\x16\x1a\xae\x03\x20Declares\x20a\x20single\x20overview\
+    \x20page.\x20For\x20example:\n\x20
documentation:\n\x20\x20\
+    \x20summary:\x20...\n\x20\x20\x20overview:\x20(==\x20include\x20over\
+    view.md\x20==)\n\x20
\n\x20This\x20is\x20a\x20shortcut\ + \x20for\x20the\x20following\x20declaration\x20(using\x20pages\x20style):\ + \n\x20
documentation:\n\x20\x20\x20summary:\x20...\n\x20\x20\
     \x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\x20\x20\x20\x20\x20cont\
     ent:\x20(==\x20include\x20overview.md\x20==)\n\x20
\ \n\x20Note:\x20you\x20cannot\x20specify\x20both\x20`overview`\x20field\ - \x20and\x20`pages`\x20field.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03t\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03t\t\x11\n\x0c\n\x05\x04\0\ - \x02\x05\x03\x12\x03t\x14\x15\nW\n\x02\x04\x01\x12\x05x\0\x8a\x01\x01\ + \x20and\x20`pages`\x20field.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03m\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03m\t\x11\n\x0c\n\x05\x04\0\ + \x02\x04\x03\x12\x03m\x14\x15\nW\n\x02\x04\x01\x12\x05q\0\x80\x01\x01\ \x1aJ\x20A\x20documentation\x20rule\x20provides\x20information\x20about\ - \x20individual\x20API\x20elements.\n\n\n\n\x03\x04\x01\x01\x12\x03x\x08\ - \x19\n\xeb\x03\n\x04\x04\x01\x02\0\x12\x04\x80\x01\x02\x16\x1a\xdc\x03\ - \x20The\x20selector\x20is\x20a\x20comma-separated\x20list\x20of\x20patte\ - rns\x20for\x20any\x20element\x20such\x20as\n\x20a\x20method,\x20a\x20fie\ - ld,\x20an\x20enum\x20value.\x20Each\x20pattern\x20is\x20a\x20qualified\ - \x20name\x20of\x20the\n\x20element\x20which\x20may\x20end\x20in\x20\"*\"\ - ,\x20indicating\x20a\x20wildcard.\x20Wildcards\x20are\x20only\n\x20allow\ - ed\x20at\x20the\x20end\x20and\x20for\x20a\x20whole\x20component\x20of\ - \x20the\x20qualified\x20name,\n\x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\ - \x20not\x20\"foo.b*\"\x20or\x20\"foo.*.bar\".\x20A\x20wildcard\x20will\ - \x20match\n\x20one\x20or\x20more\x20components.\x20To\x20specify\x20a\ - \x20default\x20for\x20all\x20applicable\x20elements,\n\x20the\x20whole\ - \x20pattern\x20\"*\"\x20is\x20used.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\ - \x04\x80\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x80\x01\t\x11\n\ - \r\n\x05\x04\x01\x02\0\x03\x12\x04\x80\x01\x14\x15\n\xe1\x01\n\x04\x04\ - \x01\x02\x01\x12\x04\x85\x01\x02\x19\x1a\xd2\x01\x20Description\x20of\ - \x20the\x20selected\x20proto\x20element\x20(e.g.\x20a\x20message,\x20a\ - \x20method,\x20a\n\x20'service'\x20definition,\x20or\x20a\x20field).\x20\ - Defaults\x20to\x20leading\x20&\x20trailing\x20comments\n\x20taken\x20fro\ - m\x20the\x20proto\x20source\x20definition\x20of\x20the\x20proto\x20eleme\ - nt.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x85\x01\x02\x08\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\x85\x01\t\x14\n\r\n\x05\x04\x01\x02\x01\x03\ - \x12\x04\x85\x01\x17\x18\n\x80\x01\n\x04\x04\x01\x02\x02\x12\x04\x89\x01\ + \x20individual\x20API\x20elements.\n\n\n\n\x03\x04\x01\x01\x12\x03q\x08\ + \x19\n\xb0\x03\n\x04\x04\x01\x02\0\x12\x03x\x02\x16\x1a\xa2\x03\x20The\ + \x20selector\x20is\x20a\x20comma-separated\x20list\x20of\x20patterns.\ + \x20Each\x20pattern\x20is\x20a\n\x20qualified\x20name\x20of\x20the\x20el\ + ement\x20which\x20may\x20end\x20in\x20\"*\",\x20indicating\x20a\x20wildc\ + ard.\n\x20Wildcards\x20are\x20only\x20allowed\x20at\x20the\x20end\x20and\ + \x20for\x20a\x20whole\x20component\x20of\x20the\n\x20qualified\x20name,\ + \x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\x20not\x20\"foo.b*\"\x20or\x20\ + \"foo.*.bar\".\x20A\n\x20wildcard\x20will\x20match\x20one\x20or\x20more\ + \x20components.\x20To\x20specify\x20a\x20default\x20for\x20all\n\x20appl\ + icable\x20elements,\x20the\x20whole\x20pattern\x20\"*\"\x20is\x20used.\n\ + \n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03x\x02\x08\n\x0c\n\x05\x04\x01\x02\ + \0\x01\x12\x03x\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03x\x14\x15\n2\ + \n\x04\x04\x01\x02\x01\x12\x03{\x02\x19\x1a%\x20Description\x20of\x20the\ + \x20selected\x20API(s).\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03{\x02\ + \x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03{\t\x14\n\x0c\n\x05\x04\x01\ + \x02\x01\x03\x12\x03{\x17\x18\n\x7f\n\x04\x04\x01\x02\x02\x12\x03\x7f\ \x02%\x1ar\x20Deprecation\x20description\x20of\x20the\x20selected\x20ele\ ment(s).\x20It\x20can\x20be\x20provided\x20if\n\x20an\x20element\x20is\ - \x20marked\x20as\x20`deprecated`.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\ - \x04\x89\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x89\x01\t\x20\ - \n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x89\x01#$\n~\n\x02\x04\x02\x12\ - \x06\x8e\x01\0\xa7\x01\x01\x1ap\x20Represents\x20a\x20documentation\x20p\ - age.\x20A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\n\x20\ - nested\x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\x01\ - \x12\x04\x8e\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x9d\x01\ - \x02\x12\x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20will\ - \x20be\x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\x20g\ - enerate\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\x20to\ - \x20this\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20page\ - \x20name\x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20this\ - \x20page\n\x20concatenated\x20with\x20`.`)\x20can\x20be\x20used\x20as\ - \x20reference\x20to\x20the\x20page\x20in\x20your\n\x20documentation.\x20\ - For\x20example:\n\x20
pages:\n\x20-\x20name:\x20Tutorial\n\x20\
-    \x20\x20content:\x20(==\x20include\x20tutorial.md\x20==)\n\x20\
-    \x20\x20subpages:\n\x20\x20\x20-\x20name:\x20Java\n\x20\x20\x20\x20\x20c\
-    ontent:\x20(==\x20include\x20tutorial_java.md\x20==)\n\x20
\n\x20You\x20can\x20reference\x20`Java`\x20page\x20using\x20Markd\ - own\x20reference\x20link\x20syntax:\n\x20`[Java][Tutorial.Java]`.\n\n\r\ - \n\x05\x04\x02\x02\0\x05\x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\x9d\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x9d\x01\x10\ - \x11\n\xe9\x01\n\x04\x04\x02\x02\x01\x12\x04\xa2\x01\x02\x15\x1a\xda\x01\ - \x20The\x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20us\ - e\x20(==\x20include\x20{path}\n\x20==)\x20to\x20inc\ - lude\x20content\x20from\x20a\x20Markdown\x20file.\x20The\x20content\x20c\ - an\x20be\n\x20used\x20to\x20produce\x20the\x20documentation\x20page\x20s\ - uch\x20as\x20HTML\x20format\x20page.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\ - \x04\xa2\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xa2\x01\t\x10\ - \n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa2\x01\x13\x14\nu\n\x04\x04\x02\ - \x02\x02\x12\x04\xa6\x01\x02\x1d\x1ag\x20Subpages\x20of\x20this\x20page.\ - \x20The\x20order\x20of\x20subpages\x20specified\x20here\x20will\x20be\n\ - \x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\x05\x04\x02\x02\ - \x02\x04\x12\x04\xa6\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xa6\ - \x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xa6\x01\x10\x18\n\r\n\ - \x05\x04\x02\x02\x02\x03\x12\x04\xa6\x01\x1b\x1cb\x06proto3\ + \x20marked\x20as\x20`deprecated`.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\ + \x03\x7f\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x7f\t\x20\n\x0c\ + \n\x05\x04\x01\x02\x02\x03\x12\x03\x7f#$\n~\n\x02\x04\x02\x12\x06\x84\ + \x01\0\x9c\x01\x01\x1ap\x20Represents\x20a\x20documentation\x20page.\x20\ + A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\n\x20nested\ + \x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ + \x84\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x93\x01\x02\x12\ + \x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20will\x20be\ + \x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\x20generat\ + e\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\x20to\x20thi\ + s\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20page\x20name\ + \x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20this\x20page\ + \n\x20concatenated\x20with\x20`.`)\x20can\x20be\x20used\x20as\x20referen\ + ce\x20to\x20the\x20page\x20in\x20your\n\x20documentation.\x20For\x20exam\ + ple:\n\x20
pages:\n\x20-\x20name:\x20Tutorial\n\x20\x20\x20con\
+    tent:\x20(==\x20include\x20tutorial.md\x20==)\n\x20\x20\x20subpa\
+    ges:\n\x20\x20\x20-\x20name:\x20Java\n\x20\x20\x20\x20\x20content:\x20&#\
+    40;==\x20include\x20tutorial_java.md\x20==)\n\x20
\n\x20\ + You\x20can\x20reference\x20`Java`\x20page\x20using\x20Markdown\x20refere\ + nce\x20link\x20syntax:\n\x20`[Java][Tutorial.Java]`.\n\n\r\n\x05\x04\x02\ + \x02\0\x05\x12\x04\x93\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\ + \x93\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x93\x01\x10\x11\n\x94\ + \x01\n\x04\x04\x02\x02\x01\x12\x04\x97\x01\x02\x15\x1a\x85\x01\x20The\ + \x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20use\x20(==\x20include\x20{path}\n\x20==)
\x20to\x20include\ + \x20content\x20from\x20a\x20Markdown\x20file.\n\n\r\n\x05\x04\x02\x02\ + \x01\x05\x12\x04\x97\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ + \x97\x01\t\x10\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x97\x01\x13\x14\nu\ + \n\x04\x04\x02\x02\x02\x12\x04\x9b\x01\x02\x1d\x1ag\x20Subpages\x20of\ + \x20this\x20page.\x20The\x20order\x20of\x20subpages\x20specified\x20here\ + \x20will\x20be\n\x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\ + \x05\x04\x02\x02\x02\x04\x12\x04\x9b\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\ + \x06\x12\x04\x9b\x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9b\ + \x01\x10\x18\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\x9b\x01\x1b\x1cb\x06p\ + roto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(Documentation::generated_message_descriptor_data()); + messages.push(DocumentationRule::generated_message_descriptor_data()); + messages.push(Page::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/endpoint.rs b/googleapis-raw/src/api/endpoint.rs index 30a2420..331d163 100644 --- a/googleapis-raw/src/api/endpoint.rs +++ b/googleapis-raw/src/api/endpoint.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,50 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/endpoint.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Endpoint) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Endpoint { // message fields + /// The canonical name of this endpoint. + // @@protoc_insertion_point(field:google.api.Endpoint.name) pub name: ::std::string::String, - pub aliases: ::protobuf::RepeatedField<::std::string::String>, + /// DEPRECATED: This field is no longer supported. Instead of using aliases, + /// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended + /// aliases. + /// + /// Additional names that this endpoint will be hosted on. + // @@protoc_insertion_point(field:google.api.Endpoint.aliases) + pub aliases: ::std::vec::Vec<::std::string::String>, + /// The list of features enabled on this endpoint. + // @@protoc_insertion_point(field:google.api.Endpoint.features) + pub features: ::std::vec::Vec<::std::string::String>, + /// The specification of an Internet routable address of API frontend that will + /// handle requests to this [API + /// Endpoint](https://cloud.google.com/apis/design/glossary). It should be + /// either a valid IPv4 address or a fully-qualified domain name. For example, + /// "8.8.8.8" or "myservice.appspot.com". + // @@protoc_insertion_point(field:google.api.Endpoint.target) pub target: ::std::string::String, + /// Allowing + /// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka + /// cross-domain traffic, would allow the backends served from this endpoint to + /// receive and respond to HTTP OPTIONS requests. The response will be used by + /// the browser to determine whether the subsequent cross-origin request is + /// allowed to proceed. + // @@protoc_insertion_point(field:google.api.Endpoint.allow_cors) pub allow_cors: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Endpoint.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Endpoint { @@ -46,126 +73,69 @@ impl Endpoint { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated string aliases = 2; - - - pub fn get_aliases(&self) -> &[::std::string::String] { - &self.aliases - } - pub fn clear_aliases(&mut self) { - self.aliases.clear(); - } - - // Param is passed by value, moved - pub fn set_aliases(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.aliases = v; - } - - // Mutable pointer to the field. - pub fn mut_aliases(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.aliases - } - - // Take field - pub fn take_aliases(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.aliases, ::protobuf::RepeatedField::new()) - } - - // string target = 101; - - - pub fn get_target(&self) -> &str { - &self.target - } - pub fn clear_target(&mut self) { - self.target.clear(); - } - - // Param is passed by value, moved - pub fn set_target(&mut self, v: ::std::string::String) { - self.target = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_target(&mut self) -> &mut ::std::string::String { - &mut self.target - } - - // Take field - pub fn take_target(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.target, ::std::string::String::new()) - } - - // bool allow_cors = 5; - - - pub fn get_allow_cors(&self) -> bool { - self.allow_cors - } - pub fn clear_allow_cors(&mut self) { - self.allow_cors = false; - } - - // Param is passed by value, moved - pub fn set_allow_cors(&mut self, v: bool) { - self.allow_cors = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Endpoint| { &m.name }, + |m: &mut Endpoint| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "aliases", + |m: &Endpoint| { &m.aliases }, + |m: &mut Endpoint| { &mut m.aliases }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "features", + |m: &Endpoint| { &m.features }, + |m: &mut Endpoint| { &mut m.features }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "target", + |m: &Endpoint| { &m.target }, + |m: &mut Endpoint| { &mut m.target }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "allow_cors", + |m: &Endpoint| { &m.allow_cors }, + |m: &mut Endpoint| { &mut m.allow_cors }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Endpoint", + fields, + oneofs, + ) } } impl ::protobuf::Message for Endpoint { + const NAME: &'static str = "Endpoint"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.aliases)?; + 18 => { + self.aliases.push(is.read_string()?); }, - 101 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target)?; + 34 => { + self.features.push(is.read_string()?); }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_cors = tmp; + 810 => { + self.target = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 40 => { + self.allow_cors = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -174,7 +144,7 @@ impl ::protobuf::Message for Endpoint { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -182,213 +152,196 @@ impl ::protobuf::Message for Endpoint { for value in &self.aliases { my_size += ::protobuf::rt::string_size(2, &value); }; + for value in &self.features { + my_size += ::protobuf::rt::string_size(4, &value); + }; if !self.target.is_empty() { my_size += ::protobuf::rt::string_size(101, &self.target); } if self.allow_cors != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } for v in &self.aliases { os.write_string(2, &v)?; }; + for v in &self.features { + os.write_string(4, &v)?; + }; if !self.target.is_empty() { os.write_string(101, &self.target)?; } if self.allow_cors != false { os.write_bool(5, self.allow_cors)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Endpoint { Endpoint::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Endpoint| { &m.name }, - |m: &mut Endpoint| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "aliases", - |m: &Endpoint| { &m.aliases }, - |m: &mut Endpoint| { &mut m.aliases }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "target", - |m: &Endpoint| { &m.target }, - |m: &mut Endpoint| { &mut m.target }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_cors", - |m: &Endpoint| { &m.allow_cors }, - |m: &mut Endpoint| { &mut m.allow_cors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Endpoint", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.aliases.clear(); + self.features.clear(); + self.target.clear(); + self.allow_cors = false; + self.special_fields.clear(); } fn default_instance() -> &'static Endpoint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Endpoint::new) + static instance: Endpoint = Endpoint { + name: ::std::string::String::new(), + aliases: ::std::vec::Vec::new(), + features: ::std::vec::Vec::new(), + target: ::std::string::String::new(), + allow_cors: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Endpoint { - fn clear(&mut self) { - self.name.clear(); - self.aliases.clear(); - self.target.clear(); - self.allow_cors = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Endpoint { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Endpoint").unwrap()).clone() } } -impl ::std::fmt::Debug for Endpoint { +impl ::std::fmt::Display for Endpoint { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Endpoint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x19google/api/endpoint.proto\x12\ngoogle.api\"s\n\x08Endpoint\x12\x12\ - \n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1c\n\x07aliases\x18\x02\x20\ - \x03(\tR\x07aliasesB\x02\x18\x01\x12\x16\n\x06target\x18e\x20\x01(\tR\ - \x06target\x12\x1d\n\nallow_cors\x18\x05\x20\x01(\x08R\tallowCorsBo\n\ - \x0ecom.google.apiB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/goog\ - leapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xcd\x16\n\x06\ - \x12\x04\x0e\0H\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ - \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ - \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ - LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ - \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\ - \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\ - ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ - D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ - for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\ - \0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\ - \x08\n\x01\x08\x12\x03\x14\0.\n\t\n\x02\x08\x08\x12\x03\x14\0.\n\x08\n\ - \x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\ - \x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\xd0\x07\n\x02\x04\0\ - \x12\x04-\0H\x01\x1a\xc3\x07\x20`Endpoint`\x20describes\x20a\x20network\ - \x20address\x20of\x20a\x20service\x20that\x20serves\x20a\x20set\x20of\n\ - \x20APIs.\x20It\x20is\x20commonly\x20known\x20as\x20a\x20service\x20endp\ - oint.\x20A\x20service\x20may\x20expose\n\x20any\x20number\x20of\x20servi\ - ce\x20endpoints,\x20and\x20all\x20service\x20endpoints\x20share\x20the\ - \x20same\n\x20service\x20definition,\x20such\x20as\x20quota\x20limits\ - \x20and\x20monitoring\x20metrics.\n\n\x20Example:\n\n\x20\x20\x20\x20\ - \x20type:\x20google.api.Service\n\x20\x20\x20\x20\x20name:\x20library-ex\ - ample.googleapis.com\n\x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\ - \x20\x20\x20#\x20Declares\x20network\x20address\x20`https://library-exam\ - ple.googleapis.com`\n\x20\x20\x20\x20\x20\x20\x20#\x20for\x20service\x20\ - `library-example.googleapis.com`.\x20The\x20`https`\x20scheme\n\x20\x20\ - \x20\x20\x20\x20\x20#\x20is\x20implicit\x20for\x20all\x20service\x20endp\ - oints.\x20Other\x20schemes\x20may\x20be\n\x20\x20\x20\x20\x20\x20\x20#\ - \x20supported\x20in\x20the\x20future.\n\x20\x20\x20\x20\x20-\x20name:\ - \x20library-example.googleapis.com\n\x20\x20\x20\x20\x20\x20\x20allow_co\ - rs:\x20false\n\x20\x20\x20\x20\x20-\x20name:\x20content-staging-library-\ - example.googleapis.com\n\x20\x20\x20\x20\x20\x20\x20#\x20Allows\x20HTTP\ - \x20OPTIONS\x20calls\x20to\x20be\x20passed\x20to\x20the\x20API\x20fronte\ - nd,\x20for\x20it\n\x20\x20\x20\x20\x20\x20\x20#\x20to\x20decide\x20wheth\ - er\x20the\x20subsequent\x20cross-origin\x20request\x20is\x20allowed\n\ - \x20\x20\x20\x20\x20\x20\x20#\x20to\x20proceed.\n\x20\x20\x20\x20\x20\ - \x20\x20allow_cors:\x20true\n\n\n\n\x03\x04\0\x01\x12\x03-\x08\x10\n3\n\ - \x04\x04\0\x02\0\x12\x03/\x02\x12\x1a&\x20The\x20canonical\x20name\x20of\ - \x20this\x20endpoint.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03/\x02\x08\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03/\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03/\x10\x11\n\x96\x02\n\x04\x04\0\x02\x01\x12\x038\x022\x1a\x88\x02\ - \x20Unimplemented.\x20Dot\x20not\x20use.\n\n\x20DEPRECATED:\x20This\x20f\ - ield\x20is\x20no\x20longer\x20supported.\x20Instead\x20of\x20using\x20al\ - iases,\n\x20please\x20specify\x20multiple\x20[google.api.Endpoint][googl\ - e.api.Endpoint]\x20for\x20each\n\x20of\x20the\x20intended\x20aliases.\n\ - \n\x20Additional\x20names\x20that\x20this\x20endpoint\x20will\x20be\x20h\ - osted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x038\x02\n\n\x0c\n\x05\ - \x04\0\x02\x01\x05\x12\x038\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x038\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x038\x1c\x1d\n\x0c\n\x05\ - \x04\0\x02\x01\x08\x12\x038\x1e1\n\r\n\x06\x04\0\x02\x01\x08\x03\x12\x03\ - 8\x1f0\n\xb4\x02\n\x04\x04\0\x02\x02\x12\x03?\x02\x16\x1a\xa6\x02\x20The\ - \x20specification\x20of\x20an\x20Internet\x20routable\x20address\x20of\ - \x20API\x20frontend\x20that\x20will\n\x20handle\x20requests\x20to\x20thi\ - s\x20[API\n\x20Endpoint](https://cloud.google.com/apis/design/glossary).\ - \x20It\x20should\x20be\n\x20either\x20a\x20valid\x20IPv4\x20address\x20o\ - r\x20a\x20fully-qualified\x20domain\x20name.\x20For\x20example,\n\x20\"8\ - .8.8.8\"\x20or\x20\"myservice.appspot.com\".\n\n\x0c\n\x05\x04\0\x02\x02\ - \x05\x12\x03?\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03?\t\x0f\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03?\x12\x15\n\xd9\x02\n\x04\x04\0\x02\x03\ - \x12\x03G\x02\x16\x1a\xcb\x02\x20Allowing\n\x20[CORS](https://en.wikiped\ - ia.org/wiki/Cross-origin_resource_sharing),\x20aka\n\x20cross-domain\x20\ - traffic,\x20would\x20allow\x20the\x20backends\x20served\x20from\x20this\ - \x20endpoint\x20to\n\x20receive\x20and\x20respond\x20to\x20HTTP\x20OPTIO\ - NS\x20requests.\x20The\x20response\x20will\x20be\x20used\x20by\n\x20the\ - \x20browser\x20to\x20determine\x20whether\x20the\x20subsequent\x20cross-\ - origin\x20request\x20is\n\x20allowed\x20to\x20proceed.\n\n\x0c\n\x05\x04\ - \0\x02\x03\x05\x12\x03G\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03G\ - \x07\x11\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03G\x14\x15b\x06proto3\ + \n\x19google/api/endpoint.proto\x12\ngoogle.api\"\x8f\x01\n\x08Endpoint\ + \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1c\n\x07aliases\x18\ + \x02\x20\x03(\tR\x07aliasesB\x02\x18\x01\x12\x1a\n\x08features\x18\x04\ + \x20\x03(\tR\x08features\x12\x16\n\x06target\x18e\x20\x01(\tR\x06target\ + \x12\x1d\n\nallow_cors\x18\x05\x20\x01(\x08R\tallowCorsBo\n\x0ecom.googl\ + e.apiB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/se\ + rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa6\x15\n\x06\x12\x04\x0f\0E\ + \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ + \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ + e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ + e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ + \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ + \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ + \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ + se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ + UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ + express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ + ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ + \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ + \n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\ + \x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\ + \x03\x15\0.\n\t\n\x02\x08\x08\x12\x03\x15\0.\n\x08\n\x01\x08\x12\x03\x16\ + \0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\ + \n\x02\x08$\x12\x03\x17\0\"\n\xce\x05\n\x02\x04\0\x12\x04)\0E\x01\x1a\ + \xc1\x05\x20`Endpoint`\x20describes\x20a\x20network\x20endpoint\x20that\ + \x20serves\x20a\x20set\x20of\x20APIs.\n\x20A\x20service\x20may\x20expose\ + \x20any\x20number\x20of\x20endpoints,\x20and\x20all\x20endpoints\x20shar\ + e\x20the\n\x20same\x20service\x20configuration,\x20such\x20as\x20quota\ + \x20configuration\x20and\x20monitoring\n\x20configuration.\n\n\x20Exampl\ + e\x20service\x20configuration:\n\n\x20\x20\x20\x20\x20name:\x20library-e\ + xample.googleapis.com\n\x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\ + \x20\x20\x20#\x20Below\x20entry\x20makes\x20'google.example.library.v1.L\ + ibrary'\n\x20\x20\x20\x20\x20\x20\x20#\x20API\x20be\x20served\x20from\ + \x20endpoint\x20address\x20library-example.googleapis.com.\n\x20\x20\x20\ + \x20\x20\x20\x20#\x20It\x20also\x20allows\x20HTTP\x20OPTIONS\x20calls\ + \x20to\x20be\x20passed\x20to\x20the\x20backend,\x20for\n\x20\x20\x20\x20\ + \x20\x20\x20#\x20it\x20to\x20decide\x20whether\x20the\x20subsequent\x20c\ + ross-origin\x20request\x20is\n\x20\x20\x20\x20\x20\x20\x20#\x20allowed\ + \x20to\x20proceed.\n\x20\x20\x20\x20\x20-\x20name:\x20library-example.go\ + ogleapis.com\n\x20\x20\x20\x20\x20\x20\x20allow_cors:\x20true\n\n\n\n\ + \x03\x04\0\x01\x12\x03)\x08\x10\n3\n\x04\x04\0\x02\0\x12\x03+\x02\x12\ + \x1a&\x20The\x20canonical\x20name\x20of\x20this\x20endpoint.\n\n\x0c\n\ + \x05\x04\0\x02\0\x05\x12\x03+\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ + \x03+\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+\x10\x11\n\xf8\x01\n\x04\ + \x04\0\x02\x01\x12\x032\x022\x1a\xea\x01\x20DEPRECATED:\x20This\x20field\ + \x20is\x20no\x20longer\x20supported.\x20Instead\x20of\x20using\x20aliase\ + s,\n\x20please\x20specify\x20multiple\x20[google.api.Endpoint][google.ap\ + i.Endpoint]\x20for\x20each\x20of\x20the\x20intended\n\x20aliases.\n\n\ + \x20Additional\x20names\x20that\x20this\x20endpoint\x20will\x20be\x20hos\ + ted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x032\x02\n\n\x0c\n\x05\ + \x04\0\x02\x01\x05\x12\x032\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ + \x032\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x032\x1c\x1d\n\x0c\n\x05\ + \x04\0\x02\x01\x08\x12\x032\x1e1\n\r\n\x06\x04\0\x02\x01\x08\x03\x12\x03\ + 2\x1f0\n=\n\x04\x04\0\x02\x02\x12\x035\x02\x1f\x1a0\x20The\x20list\x20of\ + \x20features\x20enabled\x20on\x20this\x20endpoint.\n\n\x0c\n\x05\x04\0\ + \x02\x02\x04\x12\x035\x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x035\x0b\ + \x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x035\x12\x1a\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x035\x1d\x1e\n\xb4\x02\n\x04\x04\0\x02\x03\x12\x03<\x02\ + \x16\x1a\xa6\x02\x20The\x20specification\x20of\x20an\x20Internet\x20rout\ + able\x20address\x20of\x20API\x20frontend\x20that\x20will\n\x20handle\x20\ + requests\x20to\x20this\x20[API\n\x20Endpoint](https://cloud.google.com/a\ + pis/design/glossary).\x20It\x20should\x20be\n\x20either\x20a\x20valid\ + \x20IPv4\x20address\x20or\x20a\x20fully-qualified\x20domain\x20name.\x20\ + For\x20example,\n\x20\"8.8.8.8\"\x20or\x20\"myservice.appspot.com\".\n\n\ + \x0c\n\x05\x04\0\x02\x03\x05\x12\x03<\x02\x08\n\x0c\n\x05\x04\0\x02\x03\ + \x01\x12\x03<\t\x0f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03<\x12\x15\n\xd9\ + \x02\n\x04\x04\0\x02\x04\x12\x03D\x02\x16\x1a\xcb\x02\x20Allowing\n\x20[\ + CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing),\x20a\ + ka\n\x20cross-domain\x20traffic,\x20would\x20allow\x20the\x20backends\ + \x20served\x20from\x20this\x20endpoint\x20to\n\x20receive\x20and\x20resp\ + ond\x20to\x20HTTP\x20OPTIONS\x20requests.\x20The\x20response\x20will\x20\ + be\x20used\x20by\n\x20the\x20browser\x20to\x20determine\x20whether\x20th\ + e\x20subsequent\x20cross-origin\x20request\x20is\n\x20allowed\x20to\x20p\ + roceed.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03D\x02\x06\n\x0c\n\x05\x04\ + \0\x02\x04\x01\x12\x03D\x07\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03D\ + \x14\x15b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Endpoint::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/error_reason.rs b/googleapis-raw/src/api/error_reason.rs deleted file mode 100644 index 9fbc249..0000000 --- a/googleapis-raw/src/api/error_reason.rs +++ /dev/null @@ -1,689 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/api/error_reason.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ErrorReason { - ERROR_REASON_UNSPECIFIED = 0, - SERVICE_DISABLED = 1, - BILLING_DISABLED = 2, - API_KEY_INVALID = 3, - API_KEY_SERVICE_BLOCKED = 4, - API_KEY_HTTP_REFERRER_BLOCKED = 7, - API_KEY_IP_ADDRESS_BLOCKED = 8, - API_KEY_ANDROID_APP_BLOCKED = 9, - API_KEY_IOS_APP_BLOCKED = 13, - RATE_LIMIT_EXCEEDED = 5, - RESOURCE_QUOTA_EXCEEDED = 6, - LOCATION_TAX_POLICY_VIOLATED = 10, - USER_PROJECT_DENIED = 11, - CONSUMER_SUSPENDED = 12, - CONSUMER_INVALID = 14, - SECURITY_POLICY_VIOLATED = 15, - ACCESS_TOKEN_EXPIRED = 16, - ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17, - ACCOUNT_STATE_INVALID = 18, - ACCESS_TOKEN_TYPE_UNSUPPORTED = 19, - CREDENTIALS_MISSING = 20, - RESOURCE_PROJECT_INVALID = 21, - SESSION_COOKIE_INVALID = 23, - USER_BLOCKED_BY_ADMIN = 24, - RESOURCE_USAGE_RESTRICTION_VIOLATED = 25, - SYSTEM_PARAMETER_UNSUPPORTED = 26, - ORG_RESTRICTION_VIOLATION = 27, - ORG_RESTRICTION_HEADER_INVALID = 28, - SERVICE_NOT_VISIBLE = 29, - GCP_SUSPENDED = 30, -} - -impl ::protobuf::ProtobufEnum for ErrorReason { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ErrorReason::ERROR_REASON_UNSPECIFIED), - 1 => ::std::option::Option::Some(ErrorReason::SERVICE_DISABLED), - 2 => ::std::option::Option::Some(ErrorReason::BILLING_DISABLED), - 3 => ::std::option::Option::Some(ErrorReason::API_KEY_INVALID), - 4 => ::std::option::Option::Some(ErrorReason::API_KEY_SERVICE_BLOCKED), - 7 => ::std::option::Option::Some(ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED), - 8 => ::std::option::Option::Some(ErrorReason::API_KEY_IP_ADDRESS_BLOCKED), - 9 => ::std::option::Option::Some(ErrorReason::API_KEY_ANDROID_APP_BLOCKED), - 13 => ::std::option::Option::Some(ErrorReason::API_KEY_IOS_APP_BLOCKED), - 5 => ::std::option::Option::Some(ErrorReason::RATE_LIMIT_EXCEEDED), - 6 => ::std::option::Option::Some(ErrorReason::RESOURCE_QUOTA_EXCEEDED), - 10 => ::std::option::Option::Some(ErrorReason::LOCATION_TAX_POLICY_VIOLATED), - 11 => ::std::option::Option::Some(ErrorReason::USER_PROJECT_DENIED), - 12 => ::std::option::Option::Some(ErrorReason::CONSUMER_SUSPENDED), - 14 => ::std::option::Option::Some(ErrorReason::CONSUMER_INVALID), - 15 => ::std::option::Option::Some(ErrorReason::SECURITY_POLICY_VIOLATED), - 16 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_EXPIRED), - 17 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT), - 18 => ::std::option::Option::Some(ErrorReason::ACCOUNT_STATE_INVALID), - 19 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED), - 20 => ::std::option::Option::Some(ErrorReason::CREDENTIALS_MISSING), - 21 => ::std::option::Option::Some(ErrorReason::RESOURCE_PROJECT_INVALID), - 23 => ::std::option::Option::Some(ErrorReason::SESSION_COOKIE_INVALID), - 24 => ::std::option::Option::Some(ErrorReason::USER_BLOCKED_BY_ADMIN), - 25 => ::std::option::Option::Some(ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED), - 26 => ::std::option::Option::Some(ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED), - 27 => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_VIOLATION), - 28 => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_HEADER_INVALID), - 29 => ::std::option::Option::Some(ErrorReason::SERVICE_NOT_VISIBLE), - 30 => ::std::option::Option::Some(ErrorReason::GCP_SUSPENDED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ErrorReason] = &[ - ErrorReason::ERROR_REASON_UNSPECIFIED, - ErrorReason::SERVICE_DISABLED, - ErrorReason::BILLING_DISABLED, - ErrorReason::API_KEY_INVALID, - ErrorReason::API_KEY_SERVICE_BLOCKED, - ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED, - ErrorReason::API_KEY_IP_ADDRESS_BLOCKED, - ErrorReason::API_KEY_ANDROID_APP_BLOCKED, - ErrorReason::API_KEY_IOS_APP_BLOCKED, - ErrorReason::RATE_LIMIT_EXCEEDED, - ErrorReason::RESOURCE_QUOTA_EXCEEDED, - ErrorReason::LOCATION_TAX_POLICY_VIOLATED, - ErrorReason::USER_PROJECT_DENIED, - ErrorReason::CONSUMER_SUSPENDED, - ErrorReason::CONSUMER_INVALID, - ErrorReason::SECURITY_POLICY_VIOLATED, - ErrorReason::ACCESS_TOKEN_EXPIRED, - ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT, - ErrorReason::ACCOUNT_STATE_INVALID, - ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED, - ErrorReason::CREDENTIALS_MISSING, - ErrorReason::RESOURCE_PROJECT_INVALID, - ErrorReason::SESSION_COOKIE_INVALID, - ErrorReason::USER_BLOCKED_BY_ADMIN, - ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED, - ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED, - ErrorReason::ORG_RESTRICTION_VIOLATION, - ErrorReason::ORG_RESTRICTION_HEADER_INVALID, - ErrorReason::SERVICE_NOT_VISIBLE, - ErrorReason::GCP_SUSPENDED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ErrorReason", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ErrorReason { -} - -impl ::std::default::Default for ErrorReason { - fn default() -> Self { - ErrorReason::ERROR_REASON_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ErrorReason { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\xec\x06\n\x0bErrorR\ - eason\x12\x1c\n\x18ERROR_REASON_UNSPECIFIED\x10\0\x12\x14\n\x10SERVICE_D\ - ISABLED\x10\x01\x12\x14\n\x10BILLING_DISABLED\x10\x02\x12\x13\n\x0fAPI_K\ - EY_INVALID\x10\x03\x12\x1b\n\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\ - \x1dAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1aAPI_KEY_IP_ADDRES\ - S_BLOCKED\x10\x08\x12\x1f\n\x1bAPI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\ - \n\x17API_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\ - \x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12\x20\n\x1cLOCATION_\ - TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\ - \x16\n\x12CONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10CONSUMER_INVALID\x10\ - \x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14ACCESS_T\ - OKEN_EXPIRED\x10\x10\x12#\n\x1fACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\ - \x12\x19\n\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\n\x1dACCESS_TOKEN_TYPE_\ - UNSUPPORTED\x10\x13\x12\x17\n\x13CREDENTIALS_MISSING\x10\x14\x12\x1c\n\ - \x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\ - \x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\n#RESOURCE_USAG\ - E_RESTRICTION_VIOLATED\x10\x19\x12\x20\n\x1cSYSTEM_PARAMETER_UNSUPPORTED\ - \x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12\"\n\x1eORG_R\ - ESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\ - \x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1eBp\n\x0ecom.google.apiB\x10ErrorRea\ - sonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;er\ - ror_reason\xa2\x02\x04GAPIJ\xc0\x9e\x01\n\x07\x12\x05\x0e\0\xb9\x04\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0Z\n\t\n\x02\x08\x0b\x12\x03\x12\0Z\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\01\ - \n\t\n\x02\x08\x08\x12\x03\x14\01\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ - \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\xbf\x05\n\x02\x05\0\x12\x05\"\0\xb9\x04\x01\x1a\ - \xb1\x05\x20Defines\x20the\x20supported\x20values\x20for\x20`google.rpc.\ - ErrorInfo.reason`\x20for\x20the\n\x20`googleapis.com`\x20error\x20domain\ - .\x20This\x20error\x20domain\x20is\x20reserved\x20for\x20[Service\n\x20I\ - nfrastructure](https://cloud.google.com/service-infrastructure/docs/over\ - view).\n\x20For\x20each\x20error\x20info\x20of\x20this\x20domain,\x20the\ - \x20metadata\x20key\x20\"service\"\x20refers\x20to\x20the\n\x20logical\ - \x20identifier\x20of\x20an\x20API\x20service,\x20such\x20as\x20\"pubsub.\ - googleapis.com\".\x20The\n\x20\"consumer\"\x20refers\x20to\x20the\x20ent\ - ity\x20that\x20consumes\x20an\x20API\x20Service.\x20It\x20typically\x20i\ - s\n\x20a\x20Google\x20project\x20that\x20owns\x20the\x20client\x20applic\ - ation\x20or\x20the\x20server\x20resource,\n\x20such\x20as\x20\"projects/\ - 123\".\x20Other\x20metadata\x20keys\x20are\x20specific\x20to\x20each\x20\ - error\n\x20reason.\x20For\x20more\x20information,\x20see\x20the\x20defin\ - ition\x20of\x20the\x20specific\x20error\n\x20reason.\n\n\n\n\x03\x05\0\ - \x01\x12\x03\"\x05\x10\n-\n\x04\x05\0\x02\0\x12\x03$\x02\x1f\x1a\x20\x20\ - Do\x20not\x20use\x20this\x20default\x20value.\n\n\x0c\n\x05\x05\0\x02\0\ - \x01\x12\x03$\x02\x1a\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03$\x1d\x1e\n\xde\ - \x03\n\x04\x05\0\x02\x01\x12\x035\x02\x17\x1a\xd0\x03\x20The\x20request\ - \x20is\x20calling\x20a\x20disabled\x20service\x20for\x20a\x20consumer.\n\ - \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ - rojects/123\"\x20contacting\n\x20\"pubsub.googleapis.com\"\x20service\ - \x20which\x20is\x20disabled:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\ - \"SERVICE_DISABLED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"goog\ - leapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\ - \x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\x20resp\ - onse\x20indicates\x20the\x20\"pubsub.googleapis.com\"\x20has\x20been\x20\ - disabled\x20in\n\x20\"projects/123\".\n\n\x0c\n\x05\x05\0\x02\x01\x01\ - \x12\x035\x02\x12\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x035\x15\x16\n\xf6\ - \x03\n\x04\x05\0\x02\x02\x12\x03F\x02\x17\x1a\xe8\x03\x20The\x20request\ - \x20whose\x20associated\x20billing\x20account\x20is\x20disabled.\n\n\x20\ - Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"project\ - s/123\"\x20fails\x20to\x20contact\n\x20\"pubsub.googleapis.com\"\x20serv\ - ice\x20because\x20the\x20associated\x20billing\x20account\x20is\n\x20dis\ - abled:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"BILLING_DISABLED\",\ - \n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\ - \x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\ - \x20the\x20billing\x20account\x20associated\x20has\x20been\x20disabled.\ - \n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03F\x02\x12\n\x0c\n\x05\x05\0\x02\ - \x02\x02\x12\x03F\x15\x16\n\xda\x03\n\x04\x05\0\x02\x03\x12\x03U\x02\x16\ - \x1a\xcc\x03\x20The\x20request\x20is\x20denied\x20because\x20the\x20prov\ - ided\x20[API\n\x20key](https://cloud.google.com/docs/authentication/api-\ - keys)\x20is\x20invalid.\x20It\n\x20may\x20be\x20in\x20a\x20bad\x20format\ - ,\x20cannot\x20be\x20found,\x20or\x20has\x20been\x20expired).\n\n\x20Exa\ - mple\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20contact\ - ing\n\x20\"storage.googleapis.com\"\x20service\x20with\x20an\x20invalid\ - \x20API\x20key:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_INV\ - ALID\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\ - \n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x03\ - \x01\x12\x03U\x02\x11\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03U\x14\x15\n\ - \x8f\x04\n\x04\x05\0\x02\x04\x12\x03e\x02\x1e\x1a\x81\x04\x20The\x20requ\ - est\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\x20API\n\ - \x20restrictions](https://cloud.google.com/docs/authentication/api-keys#\ - adding_api_restrictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20whe\ - n\x20the\x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\x20the\n\ - \x20\"storage.googleapis.com\"\x20service\x20because\x20this\x20service\ - \x20is\x20restricted\x20in\x20the\n\x20API\x20key:\n\n\x20\x20\x20\x20\ - \x20{\x20\"reason\":\x20\"API_KEY_SERVICE_BLOCKED\",\n\x20\x20\x20\x20\ - \x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\ - \x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\"\ - :\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ - \x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ - \x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03e\x02\x19\n\x0c\n\ - \x05\x05\0\x02\x04\x02\x12\x03e\x1c\x1d\n\xae\x04\n\x04\x05\0\x02\x05\ - \x12\x03u\x02$\x1a\xa0\x04\x20The\x20request\x20is\x20denied\x20because\ - \x20it\x20violates\x20[API\x20key\x20HTTP\n\x20restrictions](https://clo\ - ud.google.com/docs/authentication/api-keys#adding_http_restrictions).\n\ - \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ - rojects/123\"\x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20\ - service\x20because\x20the\x20http\x20referrer\x20of\x20the\x20request\n\ - \x20violates\x20API\x20key\x20HTTP\x20restrictions:\n\n\x20\x20\x20\x20\ - \x20{\x20\"reason\":\x20\"API_KEY_HTTP_REFERRER_BLOCKED\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consum\ - er\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ - e\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03u\x02\x1f\n\x0c\ - \n\x05\x05\0\x02\x05\x02\x12\x03u\"#\n\xbb\x04\n\x04\x05\0\x02\x06\x12\ - \x04\x85\x01\x02!\x1a\xac\x04\x20The\x20request\x20is\x20denied\x20becau\ - se\x20it\x20violates\x20[API\x20key\x20IP\x20address\n\x20restrictions](\ - https://cloud.google.com/docs/authentication/api-keys#adding_application\ - _restrictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ - \x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\n\x20\"storage.g\ - oogleapis.com\"\x20service\x20because\x20the\x20caller\x20IP\x20of\x20th\ - e\x20request\n\x20violates\x20API\x20key\x20IP\x20address\x20restriction\ - s:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_IP_ADDRESS_BLOCK\ - ED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ - \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x06\x01\ - \x12\x04\x85\x01\x02\x1c\n\r\n\x05\x05\0\x02\x06\x02\x12\x04\x85\x01\x1f\ - \x20\n\xd6\x04\n\x04\x05\0\x02\x07\x12\x04\x95\x01\x02\"\x1a\xc7\x04\x20\ - The\x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20k\ - ey\x20Android\x20application\n\x20restrictions](https://cloud.google.com\ - /docs/authentication/api-keys#adding_application_restrictions).\n\n\x20E\ - xample\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects\ - /123\"\x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20service\ - \x20because\x20the\x20request\x20from\x20the\x20Android\x20apps\n\x20vio\ - lates\x20the\x20API\x20key\x20Android\x20application\x20restrictions:\n\ - \n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_ANDROID_APP_BLOCKED\ - \",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ - \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"service\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x07\x01\x12\ - \x04\x95\x01\x02\x1d\n\r\n\x05\x05\0\x02\x07\x02\x12\x04\x95\x01\x20!\n\ - \xc6\x04\n\x04\x05\0\x02\x08\x12\x04\xa5\x01\x02\x1f\x1a\xb7\x04\x20The\ - \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ - \x20iOS\x20application\n\x20restrictions](https://cloud.google.com/docs/\ - authentication/api-keys#adding_application_restrictions).\n\n\x20Example\ - \x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\ - \x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20service\x20be\ - cause\x20the\x20request\x20from\x20the\x20iOS\x20apps\n\x20violates\x20t\ - he\x20API\x20key\x20iOS\x20application\x20restrictions:\n\n\x20\x20\x20\ - \x20\x20{\x20\"reason\":\x20\"API_KEY_IOS_APP_BLOCKED\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consum\ - er\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ - e\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x08\x01\x12\x04\xa5\x01\x02\x19\ - \n\r\n\x05\x05\0\x02\x08\x02\x12\x04\xa5\x01\x1c\x1e\n\x80\n\n\x04\x05\0\ - \x02\t\x12\x04\xc8\x01\x02\x1a\x1a\xf1\t\x20The\x20request\x20is\x20deni\ - ed\x20because\x20there\x20is\x20not\x20enough\x20rate\x20quota\x20for\ - \x20the\n\x20consumer.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\ - \x20the\x20consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\ - \"pubsub.googleapis.com\"\x20service\x20because\x20consumer's\x20rate\ - \x20quota\x20usage\x20has\n\x20reached\x20the\x20maximum\x20value\x20set\ - \x20for\x20the\x20quota\x20limit\n\x20\"ReadsPerMinutePerProject\"\x20on\ - \x20the\x20quota\x20metric\n\x20\"pubsub.googleapis.com/read_requests\":\ - \n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RATE_LIMIT_EXCEEDED\",\n\ - \x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\ - \x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"service\":\x20\"pubsub.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"quota_metric\":\x20\"pubsub.googleapis.com/read_requests\"\ - ,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"ReadsPerMin\ - utePerProject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ - \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ - rojects/123\"\x20checks\x20quota\x20on\n\x20the\x20service\x20\"dataflow\ - .googleapis.com\"\x20and\x20hits\x20the\x20organization\x20quota\n\x20li\ - mit\x20\"DefaultRequestsPerMinutePerOrganization\"\x20on\x20the\x20metri\ - c\n\x20\"dataflow.googleapis.com/default_requests\".\n\n\x20\x20\x20\x20\ - \x20{\x20\"reason\":\x20\"RATE_LIMIT_EXCEEDED\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\ - \"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\ - \x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ - \x20\"dataflow.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\ - quota_metric\":\x20\"dataflow.googleapis.com/default_requests\",\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"DefaultRequestsPer\ - MinutePerOrganization\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20}\n\n\r\n\x05\x05\0\x02\t\x01\x12\x04\xc8\x01\x02\x15\n\r\n\x05\x05\ - \0\x02\t\x02\x12\x04\xc8\x01\x18\x19\n\xc0\t\n\x04\x05\0\x02\n\x12\x04\ - \xea\x01\x02\x1e\x1a\xb1\t\x20The\x20request\x20is\x20denied\x20because\ - \x20there\x20is\x20not\x20enough\x20resource\x20quota\x20for\x20the\n\ - \x20consumer.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20\ - consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\"compute.go\ - ogleapis.com\"\x20service\x20because\x20consumer's\x20resource\x20quota\ - \x20usage\n\x20has\x20reached\x20the\x20maximum\x20value\x20set\x20for\ - \x20the\x20quota\x20limit\x20\"VMsPerProject\"\n\x20on\x20the\x20quota\ - \x20metric\x20\"compute.googleapis.com/vms\":\n\n\x20\x20\x20\x20\x20{\ - \x20\"reason\":\x20\"RESOURCE_QUOTA_EXCEEDED\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\ - \"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\ - \x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ - \x20\"compute.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"q\ - uota_metric\":\x20\"compute.googleapis.com/vms\",\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"quota_limit\":\x20\"VMsPerProject\"\n\x20\x20\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20of\x20an\x20Error\ - Info\x20when\x20the\x20consumer\x20\"projects/123\"\x20checks\x20resourc\ - e\n\x20quota\x20on\x20the\x20service\x20\"dataflow.googleapis.com\"\x20a\ - nd\x20hits\x20the\x20organization\n\x20quota\x20limit\x20\"jobs-per-orga\ - nization\"\x20on\x20the\x20metric\n\x20\"dataflow.googleapis.com/job_cou\ - nt\".\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RESOURCE_QUOTA_EXCEED\ - ED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ - \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"service\":\x20\"dataflow.googleapis.com\",\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\"quota_metric\":\x20\"dataflow.googleapis.com/j\ - ob_count\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"j\ - obs-per-organization\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20}\n\n\r\n\x05\x05\0\x02\n\x01\x12\x04\xea\x01\x02\x19\n\r\n\x05\x05\ - \0\x02\n\x02\x12\x04\xea\x01\x1c\x1d\n\xdd\x05\n\x04\x05\0\x02\x0b\x12\ - \x04\xff\x01\x02$\x1a\xce\x05\x20The\x20request\x20whose\x20associated\ - \x20billing\x20account\x20address\x20is\x20in\x20a\x20tax\x20restricted\ - \n\x20location,\x20violates\x20the\x20local\x20tax\x20restrictions\x20wh\ - en\x20creating\x20resources\x20in\n\x20the\x20restricted\x20region.\n\n\ - \x20Example\x20of\x20an\x20ErrorInfo\x20when\x20creating\x20the\x20Cloud\ - \x20Storage\x20Bucket\x20in\x20the\n\x20container\x20\"projects/123\"\ - \x20under\x20a\x20tax\x20restricted\x20region\n\x20\"locations/asia-nort\ - heast3\":\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"LOCATION_TAX_POLI\ - CY_VIOLATED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.\ - com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"location\":\x20\"locations/asia-northe\ - ast3\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\ - \x20response\x20indicates\x20creating\x20the\x20Cloud\x20Storage\x20Buck\ - et\x20in\n\x20\"locations/asia-northeast3\"\x20violates\x20the\x20locati\ - on\x20tax\x20restriction.\n\n\r\n\x05\x05\0\x02\x0b\x01\x12\x04\xff\x01\ - \x02\x1e\n\r\n\x05\x05\0\x02\x0b\x02\x12\x04\xff\x01!#\n\xda\x04\n\x04\ - \x05\0\x02\x0c\x12\x04\x90\x02\x02\x1b\x1a\xcb\x04\x20The\x20request\x20\ - is\x20denied\x20because\x20the\x20caller\x20does\x20not\x20have\x20requi\ - red\x20permission\n\x20on\x20the\x20user\x20project\x20\"projects/123\"\ - \x20or\x20the\x20user\x20project\x20is\x20invalid.\x20For\x20more\n\x20i\ - nformation,\x20check\x20the\x20[userProject\x20System\n\x20Parameters](h\ - ttps://cloud.google.com/apis/docs/system-parameters).\n\n\x20Example\x20\ - of\x20an\x20ErrorInfo\x20when\x20the\x20caller\x20is\x20calling\x20Cloud\ - \x20Storage\x20service\n\x20with\x20insufficient\x20permissions\x20on\ - \x20the\x20user\x20project:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\ - \"USER_PROJECT_DENIED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"g\ - oogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\ - \"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\ - \0\x02\x0c\x01\x12\x04\x90\x02\x02\x15\n\r\n\x05\x05\0\x02\x0c\x02\x12\ - \x04\x90\x02\x18\x1a\n\xb9\x04\n\x04\x05\0\x02\r\x12\x04\xa1\x02\x02\x1a\ - \x1a\xaa\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20cons\ - umer\x20\"projects/123\"\x20is\x20suspended\x20due\n\x20to\x20Terms\x20o\ - f\x20Service(Tos)\x20violations.\x20Check\x20[Project\x20suspension\n\ - \x20guidelines](https://cloud.google.com/resource-manager/docs/project-s\ - uspension-guidelines)\n\x20for\x20more\x20information.\n\n\x20Example\ - \x20of\x20an\x20ErrorInfo\x20when\x20calling\x20Cloud\x20Storage\x20serv\ - ice\x20with\x20the\n\x20suspended\x20consumer\x20\"projects/123\":\n\n\ - \x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CONSUMER_SUSPENDED\",\n\x20\ - \x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \"service\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\ - }\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\r\x01\x12\x04\xa1\x02\x02\ - \x14\n\r\n\x05\x05\0\x02\r\x02\x12\x04\xa1\x02\x17\x19\n\xbd\x03\n\x04\ - \x05\0\x02\x0e\x12\x04\xb0\x02\x02\x18\x1a\xae\x03\x20The\x20request\x20\ - is\x20denied\x20because\x20the\x20associated\x20consumer\x20is\x20invali\ - d.\x20It\x20may\x20be\n\x20in\x20a\x20bad\x20format,\x20cannot\x20be\x20\ - found,\x20or\x20have\x20been\x20deleted.\n\n\x20Example\x20of\x20an\x20E\ - rrorInfo\x20when\x20calling\x20Cloud\x20Storage\x20service\x20with\x20th\ - e\n\x20invalid\x20consumer\x20\"projects/123\":\n\n\x20\x20\x20\x20\x20{\ - \x20\"reason\":\x20\"CONSUMER_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"\ - domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\ - \":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"project\ - s/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.\ - googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ - \n\r\n\x05\x05\0\x02\x0e\x01\x12\x04\xb0\x02\x02\x12\n\r\n\x05\x05\0\x02\ - \x0e\x02\x12\x04\xb0\x02\x15\x17\n\xc8\x06\n\x04\x05\0\x02\x0f\x12\x04\ - \xc5\x02\x02\x20\x1a\xb9\x06\x20The\x20request\x20is\x20denied\x20becaus\ - e\x20it\x20violates\x20[VPC\x20Service\n\x20Controls](https://cloud.goog\ - le.com/vpc-service-controls/docs/overview).\n\x20The\x20'uid'\x20field\ - \x20is\x20a\x20random\x20generated\x20identifier\x20that\x20customer\x20\ - can\x20use\x20it\n\x20to\x20search\x20the\x20audit\x20log\x20for\x20a\ - \x20request\x20rejected\x20by\x20VPC\x20Service\x20Controls.\x20For\n\ - \x20more\x20information,\x20please\x20refer\x20[VPC\x20Service\x20Contro\ - ls\n\x20Troubleshooting](https://cloud.google.com/vpc-service-controls/d\ - ocs/troubleshooting#unique-id)\n\n\x20Example\x20of\x20an\x20ErrorInfo\ - \x20when\x20the\x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\n\ - \x20Cloud\x20Storage\x20service\x20because\x20the\x20request\x20is\x20pr\ - ohibited\x20by\x20the\x20VPC\x20Service\n\x20Controls.\n\n\x20\x20\x20\ - \x20\x20{\x20\"reason\":\x20\"SECURITY_POLICY_VIOLATED\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"uid\":\ - \x20\"123456789abcde\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\ - \":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\ - \":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x0f\x01\x12\x04\xc5\x02\x02\x1a\ - \n\r\n\x05\x05\0\x02\x0f\x02\x12\x04\xc5\x02\x1d\x1f\n\x99\x03\n\x04\x05\ - \0\x02\x10\x12\x04\xd3\x02\x02\x1c\x1a\x8a\x03\x20The\x20request\x20is\ - \x20denied\x20because\x20the\x20provided\x20access\x20token\x20has\x20ex\ - pired.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\ - \x20is\x20calling\x20Cloud\x20Storage\x20service\n\x20with\x20an\x20expi\ - red\x20access\x20token:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACC\ - ESS_TOKEN_EXPIRED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googl\ - eapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1\ - .Storage.GetObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20}\n\n\r\n\x05\x05\0\x02\x10\x01\x12\x04\xd3\x02\x02\x16\n\r\n\x05\ - \x05\0\x02\x10\x02\x12\x04\xd3\x02\x19\x1b\n\xc4\x05\n\x04\x05\0\x02\x11\ - \x12\x04\xe6\x02\x02'\x1a\xb5\x05\x20The\x20request\x20is\x20denied\x20b\ - ecause\x20the\x20provided\x20access\x20token\x20doesn't\x20have\x20at\n\ - \x20least\x20one\x20of\x20the\x20acceptable\x20scopes\x20required\x20for\ - \x20the\x20API.\x20Please\x20check\n\x20[OAuth\x202.0\x20Scopes\x20for\ - \x20Google\n\x20APIs](https://developers.google.com/identity/protocols/o\ - auth2/scopes)\x20for\n\x20the\x20list\x20of\x20the\x20OAuth\x202.0\x20sc\ - opes\x20that\x20you\x20might\x20need\x20to\x20request\x20to\x20access\n\ - \x20the\x20API.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ - \x20request\x20is\x20calling\x20Cloud\x20Storage\x20service\n\x20with\ - \x20an\x20access\x20token\x20that\x20is\x20missing\x20required\x20scopes\ - :\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCESS_TOKEN_SCOPE_INSUFF\ - ICIENT\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\"\ - ,\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Storage.G\ - etObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ - \x05\x05\0\x02\x11\x01\x12\x04\xe6\x02\x02!\n\r\n\x05\x05\0\x02\x11\x02\ - \x12\x04\xe6\x02$&\n\xf1\x06\n\x04\x05\0\x02\x12\x12\x04\xfc\x02\x02\x1d\ - \x1a\xe2\x06\x20The\x20request\x20is\x20denied\x20because\x20the\x20acco\ - unt\x20associated\x20with\x20the\x20provided\n\x20access\x20token\x20is\ - \x20in\x20an\x20invalid\x20state,\x20such\x20as\x20disabled\x20or\x20del\ - eted.\n\x20For\x20more\x20information,\x20see\x20https://cloud.google.co\ - m/docs/authentication.\n\n\x20Warning:\x20For\x20privacy\x20reasons,\x20\ - the\x20server\x20may\x20not\x20be\x20able\x20to\x20disclose\x20the\n\x20\ - email\x20address\x20for\x20some\x20accounts.\x20The\x20client\x20MUST\ - \x20NOT\x20depend\x20on\x20the\n\x20availability\x20of\x20the\x20`email`\ - \x20attribute.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ - \x20request\x20is\x20to\x20the\x20Cloud\x20Storage\x20API\x20with\n\x20a\ - n\x20access\x20token\x20that\x20is\x20associated\x20with\x20a\x20disable\ - d\x20or\x20deleted\x20[service\n\x20account](http://cloud/iam/docs/servi\ - ce-accounts):\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCOUNT_STATE\ - _INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\ - \",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Stora\ - ge.GetObject\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"email\":\x20\"use\ - r@123.iam.gserviceaccount.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ - \x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x12\x01\x12\x04\xfc\x02\x02\x17\n\r\ - \n\x05\x05\0\x02\x12\x02\x12\x04\xfc\x02\x1a\x1c\n\xc9\x03\n\x04\x05\0\ - \x02\x13\x12\x04\x8b\x03\x02%\x1a\xba\x03\x20The\x20request\x20is\x20den\ - ied\x20because\x20the\x20type\x20of\x20the\x20provided\x20access\x20toke\ - n\x20is\x20not\n\x20supported\x20by\x20the\x20API\x20being\x20called.\n\ - \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\ - \x20to\x20the\x20Cloud\x20Storage\x20API\x20with\n\x20an\x20unsupported\ - \x20token\x20type.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCESS_T\ - OKEN_TYPE_UNSUPPORTED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"g\ - oogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\ - \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage\ - .v1.Storage.GetObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20}\n\n\r\n\x05\x05\0\x02\x13\x01\x12\x04\x8b\x03\x02\x1f\n\r\n\x05\ - \x05\0\x02\x13\x02\x12\x04\x8b\x03\"$\n\xc2\x04\n\x04\x05\0\x02\x14\x12\ - \x04\x9c\x03\x02\x1b\x1a\xb3\x04\x20The\x20request\x20is\x20denied\x20be\ - cause\x20the\x20request\x20doesn't\x20have\x20any\x20authentication\n\ - \x20credentials.\x20For\x20more\x20information\x20regarding\x20the\x20su\ - pported\x20authentication\n\x20strategies\x20for\x20Google\x20Cloud\x20A\ - PIs,\x20see\n\x20https://cloud.google.com/docs/authentication.\n\n\x20Ex\ - ample\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20to\x20\ - the\x20Cloud\x20Storage\x20API\n\x20without\x20any\x20authentication\x20\ - credentials.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CREDENTIALS_MI\ - SSING\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\ - \n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Storage.G\ - etObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ - \x05\x05\0\x02\x14\x01\x12\x04\x9c\x03\x02\x15\n\r\n\x05\x05\0\x02\x14\ - \x02\x12\x04\x9c\x03\x18\x1a\n\xa8\x05\n\x04\x05\0\x02\x15\x12\x04\xaf\ - \x03\x02\x20\x1a\x99\x05\x20The\x20request\x20is\x20denied\x20because\ - \x20the\x20provided\x20project\x20owning\x20the\x20resource\n\x20which\ - \x20acts\x20as\x20the\x20[API\n\x20consumer](https://cloud.google.com/ap\ - is/design/glossary#api_consumer)\x20is\n\x20invalid.\x20It\x20may\x20be\ - \x20in\x20a\x20bad\x20format\x20or\x20empty.\n\n\x20Example\x20of\x20an\ - \x20ErrorInfo\x20when\x20the\x20request\x20is\x20to\x20the\x20Cloud\x20F\ - unctions\x20API,\n\x20but\x20the\x20offered\x20resource\x20project\x20in\ - \x20the\x20request\x20in\x20a\x20bad\x20format\x20which\x20can't\n\x20pe\ - rform\x20the\x20ListFunctions\x20method.\n\n\x20\x20\x20\x20\x20{\x20\"r\ - eason\":\x20\"RESOURCE_PROJECT_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\ - \"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metada\ - ta\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"cloudf\ - unctions.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\ - \":\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"google.cloud.functions.v1.Clo\ - udFunctionsService.ListFunctions\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x15\x01\x12\x04\xaf\x03\x02\x1a\ - \n\r\n\x05\x05\0\x02\x15\x02\x12\x04\xaf\x03\x1d\x1f\n\xe0\x03\n\x04\x05\ - \0\x02\x16\x12\x04\xbf\x03\x02\x1e\x1a\xd1\x03\x20The\x20request\x20is\ - \x20denied\x20because\x20the\x20provided\x20session\x20cookie\x20is\x20m\ - issing,\n\x20invalid\x20or\x20failed\x20to\x20decode.\n\n\x20Example\x20\ - of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20calling\x20Clou\ - d\x20Storage\x20service\n\x20with\x20a\x20SID\x20cookie\x20which\x20can'\ - t\x20be\x20decoded.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"SESSION\ - _COOKIE_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googlea\ - pis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.S\ - torage.GetObject\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"cookie\":\x20\ - \"SID\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ - \x05\x05\0\x02\x16\x01\x12\x04\xbf\x03\x02\x18\n\r\n\x05\x05\0\x02\x16\ - \x02\x12\x04\xbf\x03\x1b\x1d\n\xb3\x04\n\x04\x05\0\x02\x17\x12\x04\xd0\ - \x03\x02\x1d\x1a\xa4\x04\x20The\x20request\x20is\x20denied\x20because\ - \x20the\x20user\x20is\x20from\x20a\x20Google\x20Workspace\x20customer\n\ - \x20that\x20blocks\x20their\x20users\x20from\x20accessing\x20a\x20partic\ - ular\x20service.\n\n\x20Example\x20scenario:\x20https://support.google.c\ - om/a/answer/9197205?hl=en\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20whe\ - n\x20access\x20to\x20Google\x20Cloud\x20Storage\x20service\x20is\n\x20bl\ - ocked\x20by\x20the\x20Google\x20Workspace\x20administrator:\n\n\x20\x20\ - \x20\x20\x20{\x20\"reason\":\x20\"USER_BLOCKED_BY_ADMIN\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ - e\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"method\":\x20\"google.storage.v1.Storage.GetObject\",\n\x20\x20\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x17\ - \x01\x12\x04\xd0\x03\x02\x17\n\r\n\x05\x05\0\x02\x17\x02\x12\x04\xd0\x03\ - \x1a\x1c\n\xe5\x04\n\x04\x05\0\x02\x18\x12\x04\xe1\x03\x02+\x1a\xd6\x04\ - \x20The\x20request\x20is\x20denied\x20because\x20the\x20resource\x20serv\ - ice\x20usage\x20is\x20restricted\n\x20by\x20administrators\x20according\ - \x20to\x20the\x20organization\x20policy\x20constraint.\n\x20For\x20more\ - \x20information\x20see\n\x20https://cloud.google.com/resource-manager/do\ - cs/organization-policy/restricting-services.\n\n\x20Example\x20of\x20an\ - \x20ErrorInfo\x20when\x20access\x20to\x20Google\x20Cloud\x20Storage\x20s\ - ervice\x20is\n\x20restricted\x20by\x20Resource\x20Usage\x20Restriction\ - \x20policy:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RESOURCE_USAGE_\ - RESTRICTION_VIOLATED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"go\ - ogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/project-123\ - \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googl\ - eapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\ - \n\x05\x05\0\x02\x18\x01\x12\x04\xe1\x03\x02%\n\r\n\x05\x05\0\x02\x18\ - \x02\x12\x04\xe1\x03(*\n\xae\x04\n\x04\x05\0\x02\x19\x12\x04\xf3\x03\x02\ - $\x1a\x9f\x04\x20Unimplemented.\x20Do\x20not\x20use.\n\n\x20The\x20reque\ - st\x20is\x20denied\x20because\x20it\x20contains\x20unsupported\x20system\ - \x20parameters\x20in\n\x20URL\x20query\x20parameters\x20or\x20HTTP\x20he\ - aders.\x20For\x20more\x20information,\n\x20see\x20https://cloud.google.c\ - om/apis/docs/system-parameters\n\n\x20Example\x20of\x20an\x20ErrorInfo\ - \x20when\x20access\x20\"pubsub.googleapis.com\"\x20service\x20with\n\x20\ - a\x20request\x20header\x20of\x20\"x-goog-user-ip\":\n\n\x20\x20\x20\x20\ - \x20{\x20\"reason\":\x20\"SYSTEM_PARAMETER_UNSUPPORTED\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ - \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ - e\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \"parameter\":\x20\"x-goog-user-ip\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x19\x01\x12\x04\xf3\x03\x02\ - \x1e\n\r\n\x05\x05\0\x02\x19\x02\x12\x04\xf3\x03!#\n\xe8\x03\n\x04\x05\0\ - \x02\x1a\x12\x04\x84\x04\x02!\x1a\xd9\x03\x20The\x20request\x20is\x20den\ - ied\x20because\x20it\x20violates\x20Org\x20Restriction:\x20the\x20reques\ - ted\n\x20resource\x20does\x20not\x20belong\x20to\x20allowed\x20organizat\ - ions\x20specified\x20in\n\x20\"X-Goog-Allowed-Resources\"\x20header.\n\n\ - \x20Example\x20of\x20an\x20ErrorInfo\x20when\x20accessing\x20a\x20GCP\ - \x20resource\x20that\x20is\x20restricted\x20by\n\x20Org\x20Restriction\ - \x20for\x20\"pubsub.googleapis.com\"\x20service.\n\n\x20{\n\x20\x20\x20r\ - eason:\x20\"ORG_RESTRICTION_VIOLATION\"\n\x20\x20\x20domain:\x20\"google\ - apis.com\"\n\x20\x20\x20metadata\x20{\n\x20\x20\x20\x20\x20\"consumer\":\ - \"projects/123456\"\n\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.google\ - apis.com\"\n\x20\x20\x20}\n\x20}\n\n\r\n\x05\x05\0\x02\x1a\x01\x12\x04\ - \x84\x04\x02\x1b\n\r\n\x05\x05\0\x02\x1a\x02\x12\x04\x84\x04\x1e\x20\n\ - \x97\x03\n\x04\x05\0\x02\x1b\x12\x04\x95\x04\x02&\x1a\x88\x03\x20The\x20\ - request\x20is\x20denied\x20because\x20\"X-Goog-Allowed-Resources\"\x20he\ - ader\x20is\x20in\x20a\x20bad\n\x20format.\n\n\x20Example\x20of\x20an\x20\ - ErrorInfo\x20when\n\x20accessing\x20\"pubsub.googleapis.com\"\x20service\ - \x20with\x20an\x20invalid\n\x20\"X-Goog-Allowed-Resources\"\x20request\ - \x20header.\n\n\x20{\n\x20\x20\x20reason:\x20\"ORG_RESTRICTION_HEADER_IN\ - VALID\"\n\x20\x20\x20domain:\x20\"googleapis.com\"\n\x20\x20\x20metadata\ - \x20{\n\x20\x20\x20\x20\x20\"consumer\":\"projects/123456\"\n\x20\x20\ - \x20\x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20}\n\ - \x20}\n\n\r\n\x05\x05\0\x02\x1b\x01\x12\x04\x95\x04\x02\x20\n\r\n\x05\ - \x05\0\x02\x1b\x02\x12\x04\x95\x04#%\n\xb2\x04\n\x04\x05\0\x02\x1c\x12\ - \x04\xa8\x04\x02\x1b\x1a\xa3\x04\x20Unimplemented.\x20Do\x20not\x20use.\ - \n\n\x20The\x20request\x20is\x20calling\x20a\x20service\x20that\x20is\ - \x20not\x20visible\x20to\x20the\x20consumer.\n\n\x20Example\x20of\x20an\ - \x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20contacti\ - ng\n\x20\x20\"pubsub.googleapis.com\"\x20service\x20which\x20is\x20not\ - \x20visible\x20to\x20the\x20consumer.\n\n\x20\x20\x20\x20\x20{\x20\"reas\ - on\":\x20\"SERVICE_NOT_VISIBLE\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\ - \":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/1\ - 23\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.goog\ - leapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\ - \x20This\x20response\x20indicates\x20the\x20\"pubsub.googleapis.com\"\ - \x20is\x20not\x20visible\x20to\n\x20\"projects/123\"\x20(or\x20it\x20may\ - \x20not\x20exist).\n\n\r\n\x05\x05\0\x02\x1c\x01\x12\x04\xa8\x04\x02\x15\ - \n\r\n\x05\x05\0\x02\x1c\x02\x12\x04\xa8\x04\x18\x1a\n\xea\x03\n\x04\x05\ - \0\x02\x1d\x12\x04\xb8\x04\x02\x15\x1a\xdb\x03\x20The\x20request\x20is\ - \x20related\x20to\x20a\x20project\x20for\x20which\x20GCP\x20access\x20is\ - \x20suspended.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ - \x20consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\"pubsub\ - .googleapis.com\"\x20service\x20because\x20GCP\x20access\x20is\x20suspen\ - ded:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"GCP_SUSPENDED\",\n\x20\ - \x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\ - \n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20the\x20a\ - ssociated\x20GCP\x20account\x20has\x20been\x20suspended.\n\n\r\n\x05\x05\ - \0\x02\x1d\x01\x12\x04\xb8\x04\x02\x0f\n\r\n\x05\x05\0\x02\x1d\x02\x12\ - \x04\xb8\x04\x12\x14b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/api/field_behavior.rs b/googleapis-raw/src/api/field_behavior.rs index 5db31c4..4d7a92f 100644 --- a/googleapis-raw/src/api/field_behavior.rs +++ b/googleapis-raw/src/api/field_behavior.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,28 +16,41 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/field_behavior.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// An indicator of the behavior of a given field (for example, that a field +/// is required in requests, or given as output but ignored as input). +/// This **does not** change the behavior in protocol buffers itself; it only +/// denotes the behavior and may affect how API tooling handles the field. +/// +/// Note: This enum **may** receive new values in the future. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.FieldBehavior) pub enum FieldBehavior { + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED) FIELD_BEHAVIOR_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.OPTIONAL) OPTIONAL = 1, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.REQUIRED) REQUIRED = 2, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.OUTPUT_ONLY) OUTPUT_ONLY = 3, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.INPUT_ONLY) INPUT_ONLY = 4, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.IMMUTABLE) IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7, - IDENTIFIER = 8, } -impl ::protobuf::ProtobufEnum for FieldBehavior { +impl ::protobuf::Enum for FieldBehavior { + const NAME: &'static str = "FieldBehavior"; + fn value(&self) -> i32 { *self as i32 } @@ -49,37 +63,42 @@ impl ::protobuf::ProtobufEnum for FieldBehavior { 3 => ::std::option::Option::Some(FieldBehavior::OUTPUT_ONLY), 4 => ::std::option::Option::Some(FieldBehavior::INPUT_ONLY), 5 => ::std::option::Option::Some(FieldBehavior::IMMUTABLE), - 6 => ::std::option::Option::Some(FieldBehavior::UNORDERED_LIST), - 7 => ::std::option::Option::Some(FieldBehavior::NON_EMPTY_DEFAULT), - 8 => ::std::option::Option::Some(FieldBehavior::IDENTIFIER), _ => ::std::option::Option::None } } - fn values() -> &'static [Self] { - static values: &'static [FieldBehavior] = &[ - FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED, - FieldBehavior::OPTIONAL, - FieldBehavior::REQUIRED, - FieldBehavior::OUTPUT_ONLY, - FieldBehavior::INPUT_ONLY, - FieldBehavior::IMMUTABLE, - FieldBehavior::UNORDERED_LIST, - FieldBehavior::NON_EMPTY_DEFAULT, - FieldBehavior::IDENTIFIER, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "FIELD_BEHAVIOR_UNSPECIFIED" => ::std::option::Option::Some(FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED), + "OPTIONAL" => ::std::option::Option::Some(FieldBehavior::OPTIONAL), + "REQUIRED" => ::std::option::Option::Some(FieldBehavior::REQUIRED), + "OUTPUT_ONLY" => ::std::option::Option::Some(FieldBehavior::OUTPUT_ONLY), + "INPUT_ONLY" => ::std::option::Option::Some(FieldBehavior::INPUT_ONLY), + "IMMUTABLE" => ::std::option::Option::Some(FieldBehavior::IMMUTABLE), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("FieldBehavior", file_descriptor_proto()) - }) - } + const VALUES: &'static [FieldBehavior] = &[ + FieldBehavior::FIELD_BEHAVIOR_UNSPECIFIED, + FieldBehavior::OPTIONAL, + FieldBehavior::REQUIRED, + FieldBehavior::OUTPUT_ONLY, + FieldBehavior::INPUT_ONLY, + FieldBehavior::IMMUTABLE, + ]; } -impl ::std::marker::Copy for FieldBehavior { +impl ::protobuf::EnumFull for FieldBehavior { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("FieldBehavior").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for FieldBehavior { @@ -88,141 +107,127 @@ impl ::std::default::Default for FieldBehavior { } } -impl ::protobuf::reflect::ProtobufValue for FieldBehavior { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl FieldBehavior { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("FieldBehavior") } } /// Extension fields pub mod exts { - pub const field_behavior: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeEnum> = ::protobuf::ext::ExtFieldRepeated { field_number: 1052, phantom: ::std::marker::PhantomData }; + pub const field_behavior: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FieldOptions, ::protobuf::EnumOrUnknown> = ::protobuf::ext::ExtFieldRepeated::new(1052, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_ENUM); } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a\x20google/prot\ - obuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1aFIELD_BEHAV\ - IOR_UNSPECIFIED\x10\0\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRE\ - D\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\ - \x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\ - \n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:`\n\x0efie\ - ld_behavior\x18\x9c\x08\x20\x03(\x0e2\x19.google.api.FieldBehavior\x12\ - \x1d.google.protobuf.FieldOptionsR\rfieldBehaviorBp\n\x0ecom.google.apiB\ - \x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/a\ - nnotations;annotations\xa2\x02\x04GAPIJ\xe2\x1f\n\x06\x12\x04\x0e\0g\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ - \x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\ - \x14\0X\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\ - \n\x08\n\x01\x08\x12\x03\x16\03\n\t\n\x02\x08\x08\x12\x03\x16\03\n\x08\n\ - \x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\ - \x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\t\n\x01\x07\x12\x04\ - \x1a\0(\x01\n\xda\x03\n\x02\x07\0\x12\x03'\x02:\x1a\xce\x03\x20A\x20desi\ - gnation\x20of\x20a\x20specific\x20field\x20behavior\x20(required,\x20out\ - put\x20only,\x20etc.)\n\x20in\x20protobuf\x20messages.\n\n\x20Examples:\ - \n\n\x20\x20\x20string\x20name\x20=\x201\x20[(google.api.field_behavior)\ - \x20=\x20REQUIRED];\n\x20\x20\x20State\x20state\x20=\x201\x20[(google.ap\ - i.field_behavior)\x20=\x20OUTPUT_ONLY];\n\x20\x20\x20google.protobuf.Dur\ - ation\x20ttl\x20=\x201\n\x20\x20\x20\x20\x20[(google.api.field_behavior)\ - \x20=\x20INPUT_ONLY];\n\x20\x20\x20google.protobuf.Timestamp\x20expire_t\ - ime\x20=\x201\n\x20\x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20\ - OUTPUT_ONLY,\n\x20\x20\x20\x20\x20\x20(google.api.field_behavior)\x20=\ - \x20IMMUTABLE];\n\n\n\n\x03\x07\0\x02\x12\x03\x1a\x07#\n\n\n\x03\x07\0\ - \x04\x12\x03'\x02\n\n\n\n\x03\x07\0\x06\x12\x03'\x0b#\n\n\n\x03\x07\0\ - \x01\x12\x03'$2\n\n\n\x03\x07\0\x03\x12\x03'59\n\xea\x02\n\x02\x05\0\x12\ - \x040\0g\x01\x1a\xdd\x02\x20An\x20indicator\x20of\x20the\x20behavior\x20\ - of\x20a\x20given\x20field\x20(for\x20example,\x20that\x20a\x20field\n\ - \x20is\x20required\x20in\x20requests,\x20or\x20given\x20as\x20output\x20\ - but\x20ignored\x20as\x20input).\n\x20This\x20**does\x20not**\x20change\ - \x20the\x20behavior\x20in\x20protocol\x20buffers\x20itself;\x20it\x20onl\ - y\n\x20denotes\x20the\x20behavior\x20and\x20may\x20affect\x20how\x20API\ - \x20tooling\x20handles\x20the\x20field.\n\n\x20Note:\x20This\x20enum\x20\ - **may**\x20receive\x20new\x20values\x20in\x20the\x20future.\n\n\n\n\x03\ - \x05\0\x01\x12\x030\x05\x12\n?\n\x04\x05\0\x02\0\x12\x032\x02!\x1a2\x20C\ - onventional\x20default\x20for\x20enums.\x20Do\x20not\x20use\x20this.\n\n\ - \x0c\n\x05\x05\0\x02\0\x01\x12\x032\x02\x1c\n\x0c\n\x05\x05\0\x02\0\x02\ - \x12\x032\x1f\x20\n\xa1\x01\n\x04\x05\0\x02\x01\x12\x037\x02\x0f\x1a\x93\ - \x01\x20Specifically\x20denotes\x20a\x20field\x20as\x20optional.\n\x20Wh\ - ile\x20all\x20fields\x20in\x20protocol\x20buffers\x20are\x20optional,\ - \x20this\x20may\x20be\x20specified\n\x20for\x20emphasis\x20if\x20appropr\ - iate.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x037\x02\n\n\x0c\n\x05\x05\0\ - \x02\x01\x02\x12\x037\r\x0e\n\xc0\x01\n\x04\x05\0\x02\x02\x12\x03<\x02\ - \x0f\x1a\xb2\x01\x20Denotes\x20a\x20field\x20as\x20required.\n\x20This\ - \x20indicates\x20that\x20the\x20field\x20**must**\x20be\x20provided\x20a\ - s\x20part\x20of\x20the\x20request,\n\x20and\x20failure\x20to\x20do\x20so\ - \x20will\x20cause\x20an\x20error\x20(usually\x20`INVALID_ARGUMENT`).\n\n\ - \x0c\n\x05\x05\0\x02\x02\x01\x12\x03<\x02\n\n\x0c\n\x05\x05\0\x02\x02\ - \x02\x12\x03<\r\x0e\n\xfd\x01\n\x04\x05\0\x02\x03\x12\x03B\x02\x12\x1a\ - \xef\x01\x20Denotes\x20a\x20field\x20as\x20output\x20only.\n\x20This\x20\ - indicates\x20that\x20the\x20field\x20is\x20provided\x20in\x20responses,\ - \x20but\x20including\x20the\n\x20field\x20in\x20a\x20request\x20does\x20\ - nothing\x20(the\x20server\x20*must*\x20ignore\x20it\x20and\n\x20*must\ - \x20not*\x20throw\x20an\x20error\x20as\x20a\x20result\x20of\x20the\x20fi\ - eld's\x20presence).\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03B\x02\r\n\x0c\ - \n\x05\x05\0\x02\x03\x02\x12\x03B\x10\x11\n\x9e\x01\n\x04\x05\0\x02\x04\ - \x12\x03G\x02\x11\x1a\x90\x01\x20Denotes\x20a\x20field\x20as\x20input\ - \x20only.\n\x20This\x20indicates\x20that\x20the\x20field\x20is\x20provid\ - ed\x20in\x20requests,\x20and\x20the\n\x20corresponding\x20field\x20is\ - \x20not\x20included\x20in\x20output.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\ - \x03G\x02\x0c\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03G\x0f\x10\n\xa3\x01\n\ - \x04\x05\0\x02\x05\x12\x03L\x02\x10\x1a\x95\x01\x20Denotes\x20a\x20field\ - \x20as\x20immutable.\n\x20This\x20indicates\x20that\x20the\x20field\x20m\ - ay\x20be\x20set\x20once\x20in\x20a\x20request\x20to\x20create\x20a\n\x20\ - resource,\x20but\x20may\x20not\x20be\x20changed\x20thereafter.\n\n\x0c\n\ - \x05\x05\0\x02\x05\x01\x12\x03L\x02\x0b\n\x0c\n\x05\x05\0\x02\x05\x02\ - \x12\x03L\x0e\x0f\n\x93\x02\n\x04\x05\0\x02\x06\x12\x03R\x02\x15\x1a\x85\ - \x02\x20Denotes\x20that\x20a\x20(repeated)\x20field\x20is\x20an\x20unord\ - ered\x20list.\n\x20This\x20indicates\x20that\x20the\x20service\x20may\ - \x20provide\x20the\x20elements\x20of\x20the\x20list\n\x20in\x20any\x20ar\ - bitrary\x20\x20order,\x20rather\x20than\x20the\x20order\x20the\x20user\ - \x20originally\n\x20provided.\x20Additionally,\x20the\x20list's\x20order\ - \x20may\x20or\x20may\x20not\x20be\x20stable.\n\n\x0c\n\x05\x05\0\x02\x06\ - \x01\x12\x03R\x02\x10\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03R\x13\x14\n\ - \x81\x02\n\x04\x05\0\x02\x07\x12\x03X\x02\x18\x1a\xf3\x01\x20Denotes\x20\ - that\x20this\x20field\x20returns\x20a\x20non-empty\x20default\x20value\ - \x20if\x20not\x20set.\n\x20This\x20indicates\x20that\x20if\x20the\x20use\ - r\x20provides\x20the\x20empty\x20value\x20in\x20a\x20request,\n\x20a\x20\ - non-empty\x20value\x20will\x20be\x20returned.\x20The\x20user\x20will\x20\ - not\x20be\x20aware\x20of\x20what\n\x20non-empty\x20value\x20to\x20expect\ - .\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03X\x02\x13\n\x0c\n\x05\x05\0\x02\ - \x07\x02\x12\x03X\x16\x17\n\xf8\x04\n\x04\x05\0\x02\x08\x12\x03f\x02\x11\ - \x1a\xea\x04\x20Denotes\x20that\x20the\x20field\x20in\x20a\x20resource\ - \x20(a\x20message\x20annotated\x20with\n\x20google.api.resource)\x20is\ - \x20used\x20in\x20the\x20resource\x20name\x20to\x20uniquely\x20identify\ - \x20the\n\x20resource.\x20For\x20AIP-compliant\x20APIs,\x20this\x20shoul\ - d\x20only\x20be\x20applied\x20to\x20the\n\x20`name`\x20field\x20on\x20th\ - e\x20resource.\n\n\x20This\x20behavior\x20should\x20not\x20be\x20applied\ - \x20to\x20references\x20to\x20other\x20resources\x20within\n\x20the\x20m\ - essage.\n\n\x20The\x20identifier\x20field\x20of\x20resources\x20often\ - \x20have\x20different\x20field\x20behavior\n\x20depending\x20on\x20the\ - \x20request\x20it\x20is\x20embedded\x20in\x20(e.g.\x20for\x20Create\x20m\ - ethods\x20name\n\x20is\x20optional\x20and\x20unused,\x20while\x20for\x20\ - Update\x20methods\x20it\x20is\x20required).\x20Instead\n\x20of\x20method\ - -specific\x20annotations,\x20only\x20`IDENTIFIER`\x20is\x20required.\n\n\ - \x0c\n\x05\x05\0\x02\x08\x01\x12\x03f\x02\x0c\n\x0c\n\x05\x05\0\x02\x08\ - \x02\x12\x03f\x0f\x10b\x06proto3\ + obuf/descriptor.proto*{\n\rFieldBehavior\x12\x1e\n\x1aFIELD_BEHAVIOR_UNS\ + PECIFIED\x10\0\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\ + \x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\ + \r\n\tIMMUTABLE\x10\x05:`\n\x0efield_behavior\x18\x9c\x08\x20\x03(\x0e2\ + \x19.google.api.FieldBehavior\x12\x1d.google.protobuf.FieldOptionsR\rfie\ + ldBehaviorBp\n\x0ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.gol\ + ang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIJ\ + \xfb\x15\n\x06\x12\x04\x0f\0N\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\ + \xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\ + \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ + \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ + ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ + \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ + org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\ + \x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0*\n\x08\n\x01\ + \x08\x12\x03\x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\ + \x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\ + \03\n\t\n\x02\x08\x08\x12\x03\x17\03\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\ + \n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\ + \x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0)\x01\n\xda\x03\n\x02\ + \x07\0\x12\x03(\x02:\x1a\xce\x03\x20A\x20designation\x20of\x20a\x20speci\ + fic\x20field\x20behavior\x20(required,\x20output\x20only,\x20etc.)\n\x20\ + in\x20protobuf\x20messages.\n\n\x20Examples:\n\n\x20\x20\x20string\x20na\ + me\x20=\x201\x20[(google.api.field_behavior)\x20=\x20REQUIRED];\n\x20\ + \x20\x20State\x20state\x20=\x201\x20[(google.api.field_behavior)\x20=\ + \x20OUTPUT_ONLY];\n\x20\x20\x20google.protobuf.Duration\x20ttl\x20=\x201\ + \n\x20\x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20INPUT_ONLY];\ + \n\x20\x20\x20google.protobuf.Timestamp\x20expire_time\x20=\x201\n\x20\ + \x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20OUTPUT_ONLY,\n\x20\ + \x20\x20\x20\x20\x20(google.api.field_behavior)\x20=\x20IMMUTABLE];\n\n\ + \n\n\x03\x07\0\x02\x12\x03\x1b\x07#\n\n\n\x03\x07\0\x04\x12\x03(\x02\n\n\ + \n\n\x03\x07\0\x06\x12\x03(\x0b#\n\n\n\x03\x07\0\x01\x12\x03($2\n\n\n\ + \x03\x07\0\x03\x12\x03(59\n\xea\x02\n\x02\x05\0\x12\x041\0N\x01\x1a\xdd\ + \x02\x20An\x20indicator\x20of\x20the\x20behavior\x20of\x20a\x20given\x20\ + field\x20(for\x20example,\x20that\x20a\x20field\n\x20is\x20required\x20i\ + n\x20requests,\x20or\x20given\x20as\x20output\x20but\x20ignored\x20as\ + \x20input).\n\x20This\x20**does\x20not**\x20change\x20the\x20behavior\ + \x20in\x20protocol\x20buffers\x20itself;\x20it\x20only\n\x20denotes\x20t\ + he\x20behavior\x20and\x20may\x20affect\x20how\x20API\x20tooling\x20handl\ + es\x20the\x20field.\n\n\x20Note:\x20This\x20enum\x20**may**\x20receive\ + \x20new\x20values\x20in\x20the\x20future.\n\n\n\n\x03\x05\0\x01\x12\x031\ + \x05\x12\n?\n\x04\x05\0\x02\0\x12\x033\x02!\x1a2\x20Conventional\x20defa\ + ult\x20for\x20enums.\x20Do\x20not\x20use\x20this.\n\n\x0c\n\x05\x05\0\ + \x02\0\x01\x12\x033\x02\x1c\n\x0c\n\x05\x05\0\x02\0\x02\x12\x033\x1f\x20\ + \n\xa1\x01\n\x04\x05\0\x02\x01\x12\x038\x02\x0f\x1a\x93\x01\x20Specifica\ + lly\x20denotes\x20a\x20field\x20as\x20optional.\n\x20While\x20all\x20fie\ + lds\x20in\x20protocol\x20buffers\x20are\x20optional,\x20this\x20may\x20b\ + e\x20specified\n\x20for\x20emphasis\x20if\x20appropriate.\n\n\x0c\n\x05\ + \x05\0\x02\x01\x01\x12\x038\x02\n\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x038\ + \r\x0e\n\xc0\x01\n\x04\x05\0\x02\x02\x12\x03=\x02\x0f\x1a\xb2\x01\x20Den\ + otes\x20a\x20field\x20as\x20required.\n\x20This\x20indicates\x20that\x20\ + the\x20field\x20**must**\x20be\x20provided\x20as\x20part\x20of\x20the\ + \x20request,\n\x20and\x20failure\x20to\x20do\x20so\x20will\x20cause\x20a\ + n\x20error\x20(usually\x20`INVALID_ARGUMENT`).\n\n\x0c\n\x05\x05\0\x02\ + \x02\x01\x12\x03=\x02\n\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03=\r\x0e\n\ + \xfd\x01\n\x04\x05\0\x02\x03\x12\x03C\x02\x12\x1a\xef\x01\x20Denotes\x20\ + a\x20field\x20as\x20output\x20only.\n\x20This\x20indicates\x20that\x20th\ + e\x20field\x20is\x20provided\x20in\x20responses,\x20but\x20including\x20\ + the\n\x20field\x20in\x20a\x20request\x20does\x20nothing\x20(the\x20serve\ + r\x20*must*\x20ignore\x20it\x20and\n\x20*must\x20not*\x20throw\x20an\x20\ + error\x20as\x20a\x20result\x20of\x20the\x20field's\x20presence).\n\n\x0c\ + \n\x05\x05\0\x02\x03\x01\x12\x03C\x02\r\n\x0c\n\x05\x05\0\x02\x03\x02\ + \x12\x03C\x10\x11\n\x9e\x01\n\x04\x05\0\x02\x04\x12\x03H\x02\x11\x1a\x90\ + \x01\x20Denotes\x20a\x20field\x20as\x20input\x20only.\n\x20This\x20indic\ + ates\x20that\x20the\x20field\x20is\x20provided\x20in\x20requests,\x20and\ + \x20the\n\x20corresponding\x20field\x20is\x20not\x20included\x20in\x20ou\ + tput.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03H\x02\x0c\n\x0c\n\x05\x05\0\ + \x02\x04\x02\x12\x03H\x0f\x10\n\xa3\x01\n\x04\x05\0\x02\x05\x12\x03M\x02\ + \x10\x1a\x95\x01\x20Denotes\x20a\x20field\x20as\x20immutable.\n\x20This\ + \x20indicates\x20that\x20the\x20field\x20may\x20be\x20set\x20once\x20in\ + \x20a\x20request\x20to\x20create\x20a\n\x20resource,\x20but\x20may\x20no\ + t\x20be\x20changed\x20thereafter.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\ + \x03M\x02\x0b\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03M\x0e\x0fb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(FieldBehavior::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/http.rs b/googleapis-raw/src/api/http.rs index 0594ce9..09e3bee 100644 --- a/googleapis-raw/src/api/http.rs +++ b/googleapis-raw/src/api/http.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,38 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/http.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Defines the HTTP configuration for an API service. It contains a list of +/// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method +/// to one or more HTTP REST API methods. +// @@protoc_insertion_point(message:google.api.Http) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Http { // message fields - pub rules: ::protobuf::RepeatedField, + /// A list of HTTP configuration rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Http.rules) + pub rules: ::std::vec::Vec, + /// When set to true, URL path parameters will be fully URI-decoded except in + /// cases of single segment matches in reserved expansion, where "%2F" will be + /// left encoded. + /// + /// The default behavior is to not decode RFC 6570 reserved characters in multi + /// segment matches. + // @@protoc_insertion_point(field:google.api.Http.fully_decode_reserved_expansion) pub fully_decode_reserved_expansion: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Http.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Http { @@ -44,73 +61,45 @@ impl Http { ::std::default::Default::default() } - // repeated .google.api.HttpRule rules = 1; - - - pub fn get_rules(&self) -> &[HttpRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // bool fully_decode_reserved_expansion = 2; - - - pub fn get_fully_decode_reserved_expansion(&self) -> bool { - self.fully_decode_reserved_expansion - } - pub fn clear_fully_decode_reserved_expansion(&mut self) { - self.fully_decode_reserved_expansion = false; - } - - // Param is passed by value, moved - pub fn set_fully_decode_reserved_expansion(&mut self, v: bool) { - self.fully_decode_reserved_expansion = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Http| { &m.rules }, + |m: &mut Http| { &mut m.rules }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "fully_decode_reserved_expansion", + |m: &Http| { &m.fully_decode_reserved_expansion }, + |m: &mut Http| { &mut m.fully_decode_reserved_expansion }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Http", + fields, + oneofs, + ) } } impl ::protobuf::Message for Http { + const NAME: &'static str = "Http"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.fully_decode_reserved_expansion = tmp; + 16 => { + self.fully_decode_reserved_expansion = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -119,123 +108,111 @@ impl ::protobuf::Message for Http { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if self.fully_decode_reserved_expansion != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if self.fully_decode_reserved_expansion != false { os.write_bool(2, self.fully_decode_reserved_expansion)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Http { Http::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Http| { &m.rules }, - |m: &mut Http| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "fully_decode_reserved_expansion", - |m: &Http| { &m.fully_decode_reserved_expansion }, - |m: &mut Http| { &mut m.fully_decode_reserved_expansion }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Http", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rules.clear(); + self.fully_decode_reserved_expansion = false; + self.special_fields.clear(); } fn default_instance() -> &'static Http { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Http::new) + static instance: Http = Http { + rules: ::std::vec::Vec::new(), + fully_decode_reserved_expansion: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Http { - fn clear(&mut self) { - self.rules.clear(); - self.fully_decode_reserved_expansion = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Http { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Http").unwrap()).clone() } } -impl ::std::fmt::Debug for Http { +impl ::std::fmt::Display for Http { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Http { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.HttpRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct HttpRule { // message fields + /// Selects a method to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.HttpRule.selector) pub selector: ::std::string::String, + /// The name of the request field whose value is mapped to the HTTP request + /// body, or `*` for mapping all request fields not captured by the path + /// pattern to the HTTP body, or omitted for not having any HTTP request body. + /// + /// NOTE: the referred field must be present at the top-level of the request + /// message type. + // @@protoc_insertion_point(field:google.api.HttpRule.body) pub body: ::std::string::String, + /// Optional. The name of the response field whose value is mapped to the HTTP + /// response body. When omitted, the entire response message will be used + /// as the HTTP response body. + /// + /// NOTE: The referred field must be present at the top-level of the response + /// message type. + // @@protoc_insertion_point(field:google.api.HttpRule.response_body) pub response_body: ::std::string::String, - pub additional_bindings: ::protobuf::RepeatedField, + /// Additional HTTP bindings for the selector. Nested bindings must + /// not contain an `additional_bindings` field themselves (that is, + /// the nesting may only be one level deep). + // @@protoc_insertion_point(field:google.api.HttpRule.additional_bindings) + pub additional_bindings: ::std::vec::Vec, // message oneof groups - pub pattern: ::std::option::Option, + pub pattern: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.HttpRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a HttpRule { @@ -244,80 +221,44 @@ impl<'a> ::std::default::Default for &'a HttpRule { } } -#[derive(Clone,PartialEq,Debug)] -pub enum HttpRule_oneof_pattern { - get(::std::string::String), - put(::std::string::String), - post(::std::string::String), - delete(::std::string::String), - patch(::std::string::String), - custom(CustomHttpPattern), -} - impl HttpRule { pub fn new() -> HttpRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - // string get = 2; - - pub fn get_get(&self) -> &str { + pub fn get(&self) -> &str { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::get(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Get(ref v)) => v, _ => "", } } + pub fn clear_get(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_get(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::get(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Get(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_get(&mut self, v: ::std::string::String) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::get(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Get(v)) } // Mutable pointer to the field. pub fn mut_get(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::get(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Get(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::get(::std::string::String::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Get(::std::string::String::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::get(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Get(ref mut v)) => v, _ => panic!(), } } @@ -326,7 +267,7 @@ impl HttpRule { pub fn take_get(&mut self) -> ::std::string::String { if self.has_get() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::get(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Get(v)) => v, _ => panic!(), } } else { @@ -336,37 +277,37 @@ impl HttpRule { // string put = 3; - - pub fn get_put(&self) -> &str { + pub fn put(&self) -> &str { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::put(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Put(ref v)) => v, _ => "", } } + pub fn clear_put(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_put(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::put(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Put(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_put(&mut self, v: ::std::string::String) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::put(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Put(v)) } // Mutable pointer to the field. pub fn mut_put(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::put(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Put(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::put(::std::string::String::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Put(::std::string::String::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::put(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Put(ref mut v)) => v, _ => panic!(), } } @@ -375,7 +316,7 @@ impl HttpRule { pub fn take_put(&mut self) -> ::std::string::String { if self.has_put() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::put(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Put(v)) => v, _ => panic!(), } } else { @@ -385,37 +326,37 @@ impl HttpRule { // string post = 4; - - pub fn get_post(&self) -> &str { + pub fn post(&self) -> &str { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::post(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Post(ref v)) => v, _ => "", } } + pub fn clear_post(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_post(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::post(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Post(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_post(&mut self, v: ::std::string::String) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::post(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Post(v)) } // Mutable pointer to the field. pub fn mut_post(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::post(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Post(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::post(::std::string::String::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Post(::std::string::String::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::post(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Post(ref mut v)) => v, _ => panic!(), } } @@ -424,7 +365,7 @@ impl HttpRule { pub fn take_post(&mut self) -> ::std::string::String { if self.has_post() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::post(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Post(v)) => v, _ => panic!(), } } else { @@ -434,37 +375,37 @@ impl HttpRule { // string delete = 5; - - pub fn get_delete(&self) -> &str { + pub fn delete(&self) -> &str { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::delete(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Delete(ref v)) => v, _ => "", } } + pub fn clear_delete(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_delete(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::delete(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Delete(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_delete(&mut self, v: ::std::string::String) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::delete(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Delete(v)) } // Mutable pointer to the field. pub fn mut_delete(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::delete(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Delete(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::delete(::std::string::String::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Delete(::std::string::String::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::delete(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Delete(ref mut v)) => v, _ => panic!(), } } @@ -473,7 +414,7 @@ impl HttpRule { pub fn take_delete(&mut self) -> ::std::string::String { if self.has_delete() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::delete(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Delete(v)) => v, _ => panic!(), } } else { @@ -483,37 +424,37 @@ impl HttpRule { // string patch = 6; - - pub fn get_patch(&self) -> &str { + pub fn patch(&self) -> &str { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::patch(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Patch(ref v)) => v, _ => "", } } + pub fn clear_patch(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_patch(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::patch(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Patch(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_patch(&mut self, v: ::std::string::String) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::patch(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Patch(v)) } // Mutable pointer to the field. pub fn mut_patch(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::patch(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Patch(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::patch(::std::string::String::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Patch(::std::string::String::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::patch(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Patch(ref mut v)) => v, _ => panic!(), } } @@ -522,7 +463,7 @@ impl HttpRule { pub fn take_patch(&mut self) -> ::std::string::String { if self.has_patch() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::patch(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Patch(v)) => v, _ => panic!(), } } else { @@ -532,37 +473,37 @@ impl HttpRule { // .google.api.CustomHttpPattern custom = 8; - - pub fn get_custom(&self) -> &CustomHttpPattern { + pub fn custom(&self) -> &CustomHttpPattern { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::custom(ref v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Custom(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_custom(&mut self) { self.pattern = ::std::option::Option::None; } pub fn has_custom(&self) -> bool { match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::custom(..)) => true, + ::std::option::Option::Some(http_rule::Pattern::Custom(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_custom(&mut self, v: CustomHttpPattern) { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::custom(v)) + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Custom(v)) } // Mutable pointer to the field. pub fn mut_custom(&mut self) -> &mut CustomHttpPattern { - if let ::std::option::Option::Some(HttpRule_oneof_pattern::custom(_)) = self.pattern { + if let ::std::option::Option::Some(http_rule::Pattern::Custom(_)) = self.pattern { } else { - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::custom(CustomHttpPattern::new())); + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Custom(CustomHttpPattern::new())); } match self.pattern { - ::std::option::Option::Some(HttpRule_oneof_pattern::custom(ref mut v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Custom(ref mut v)) => v, _ => panic!(), } } @@ -571,7 +512,7 @@ impl HttpRule { pub fn take_custom(&mut self) -> CustomHttpPattern { if self.has_custom() { match self.pattern.take() { - ::std::option::Option::Some(HttpRule_oneof_pattern::custom(v)) => v, + ::std::option::Option::Some(http_rule::Pattern::Custom(v)) => v, _ => panic!(), } } else { @@ -579,153 +520,117 @@ impl HttpRule { } } - // string body = 7; - - - pub fn get_body(&self) -> &str { - &self.body - } - pub fn clear_body(&mut self) { - self.body.clear(); - } - - // Param is passed by value, moved - pub fn set_body(&mut self, v: ::std::string::String) { - self.body = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_body(&mut self) -> &mut ::std::string::String { - &mut self.body - } - - // Take field - pub fn take_body(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.body, ::std::string::String::new()) - } - - // string response_body = 12; - - - pub fn get_response_body(&self) -> &str { - &self.response_body - } - pub fn clear_response_body(&mut self) { - self.response_body.clear(); - } - - // Param is passed by value, moved - pub fn set_response_body(&mut self, v: ::std::string::String) { - self.response_body = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_response_body(&mut self) -> &mut ::std::string::String { - &mut self.response_body - } - - // Take field - pub fn take_response_body(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.response_body, ::std::string::String::new()) - } - - // repeated .google.api.HttpRule additional_bindings = 11; - - - pub fn get_additional_bindings(&self) -> &[HttpRule] { - &self.additional_bindings - } - pub fn clear_additional_bindings(&mut self) { - self.additional_bindings.clear(); - } - - // Param is passed by value, moved - pub fn set_additional_bindings(&mut self, v: ::protobuf::RepeatedField) { - self.additional_bindings = v; - } - - // Mutable pointer to the field. - pub fn mut_additional_bindings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.additional_bindings - } - - // Take field - pub fn take_additional_bindings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.additional_bindings, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(10); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &HttpRule| { &m.selector }, + |m: &mut HttpRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "get", + HttpRule::has_get, + HttpRule::get, + HttpRule::set_get, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "put", + HttpRule::has_put, + HttpRule::put, + HttpRule::set_put, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "post", + HttpRule::has_post, + HttpRule::post, + HttpRule::set_post, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "delete", + HttpRule::has_delete, + HttpRule::delete, + HttpRule::set_delete, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "patch", + HttpRule::has_patch, + HttpRule::patch, + HttpRule::set_patch, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, CustomHttpPattern>( + "custom", + HttpRule::has_custom, + HttpRule::custom, + HttpRule::mut_custom, + HttpRule::set_custom, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "body", + |m: &HttpRule| { &m.body }, + |m: &mut HttpRule| { &mut m.body }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "response_body", + |m: &HttpRule| { &m.response_body }, + |m: &mut HttpRule| { &mut m.response_body }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "additional_bindings", + |m: &HttpRule| { &m.additional_bindings }, + |m: &mut HttpRule| { &mut m.additional_bindings }, + )); + oneofs.push(http_rule::Pattern::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "HttpRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for HttpRule { + const NAME: &'static str = "HttpRule"; + fn is_initialized(&self) -> bool { - if let Some(HttpRule_oneof_pattern::custom(ref v)) = self.pattern { - if !v.is_initialized() { - return false; - } - } - for v in &self.additional_bindings { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::get(is.read_string()?)); + 18 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Get(is.read_string()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::put(is.read_string()?)); + 26 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Put(is.read_string()?)); }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::post(is.read_string()?)); + 34 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Post(is.read_string()?)); }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::delete(is.read_string()?)); + 42 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Delete(is.read_string()?)); }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::patch(is.read_string()?)); + 50 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Patch(is.read_string()?)); }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.pattern = ::std::option::Option::Some(HttpRule_oneof_pattern::custom(is.read_message()?)); + 66 => { + self.pattern = ::std::option::Option::Some(http_rule::Pattern::Custom(is.read_message()?)); }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.body)?; + 58 => { + self.body = is.read_string()?; }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.response_body)?; + 98 => { + self.response_body = is.read_string()?; }, - 11 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.additional_bindings)?; + 90 => { + self.additional_bindings.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -734,7 +639,7 @@ impl ::protobuf::Message for HttpRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); @@ -747,37 +652,37 @@ impl ::protobuf::Message for HttpRule { } for value in &self.additional_bindings { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if let ::std::option::Option::Some(ref v) = self.pattern { match v { - &HttpRule_oneof_pattern::get(ref v) => { + &http_rule::Pattern::Get(ref v) => { my_size += ::protobuf::rt::string_size(2, &v); }, - &HttpRule_oneof_pattern::put(ref v) => { + &http_rule::Pattern::Put(ref v) => { my_size += ::protobuf::rt::string_size(3, &v); }, - &HttpRule_oneof_pattern::post(ref v) => { + &http_rule::Pattern::Post(ref v) => { my_size += ::protobuf::rt::string_size(4, &v); }, - &HttpRule_oneof_pattern::delete(ref v) => { + &http_rule::Pattern::Delete(ref v) => { my_size += ::protobuf::rt::string_size(5, &v); }, - &HttpRule_oneof_pattern::patch(ref v) => { + &http_rule::Pattern::Patch(ref v) => { my_size += ::protobuf::rt::string_size(6, &v); }, - &HttpRule_oneof_pattern::custom(ref v) => { + &http_rule::Pattern::Custom(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } @@ -788,137 +693,46 @@ impl ::protobuf::Message for HttpRule { os.write_string(12, &self.response_body)?; } for v in &self.additional_bindings { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(11, v, os)?; }; if let ::std::option::Option::Some(ref v) = self.pattern { match v { - &HttpRule_oneof_pattern::get(ref v) => { + &http_rule::Pattern::Get(ref v) => { os.write_string(2, v)?; }, - &HttpRule_oneof_pattern::put(ref v) => { + &http_rule::Pattern::Put(ref v) => { os.write_string(3, v)?; }, - &HttpRule_oneof_pattern::post(ref v) => { + &http_rule::Pattern::Post(ref v) => { os.write_string(4, v)?; }, - &HttpRule_oneof_pattern::delete(ref v) => { + &http_rule::Pattern::Delete(ref v) => { os.write_string(5, v)?; }, - &HttpRule_oneof_pattern::patch(ref v) => { + &http_rule::Pattern::Patch(ref v) => { os.write_string(6, v)?; }, - &HttpRule_oneof_pattern::custom(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &http_rule::Pattern::Custom(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> HttpRule { HttpRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &HttpRule| { &m.selector }, - |m: &mut HttpRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "get", - HttpRule::has_get, - HttpRule::get_get, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "put", - HttpRule::has_put, - HttpRule::get_put, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "post", - HttpRule::has_post, - HttpRule::get_post, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "delete", - HttpRule::has_delete, - HttpRule::get_delete, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "patch", - HttpRule::has_patch, - HttpRule::get_patch, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, CustomHttpPattern>( - "custom", - HttpRule::has_custom, - HttpRule::get_custom, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "body", - |m: &HttpRule| { &m.body }, - |m: &mut HttpRule| { &mut m.body }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "response_body", - |m: &HttpRule| { &m.response_body }, - |m: &mut HttpRule| { &mut m.response_body }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "additional_bindings", - |m: &HttpRule| { &m.additional_bindings }, - |m: &mut HttpRule| { &mut m.additional_bindings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpRule::new) - } -} - -impl ::protobuf::Clear for HttpRule { fn clear(&mut self) { self.selector.clear(); self.pattern = ::std::option::Option::None; @@ -930,30 +744,91 @@ impl ::protobuf::Clear for HttpRule { self.body.clear(); self.response_body.clear(); self.additional_bindings.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static HttpRule { + static instance: HttpRule = HttpRule { + selector: ::std::string::String::new(), + body: ::std::string::String::new(), + response_body: ::std::string::String::new(), + additional_bindings: ::std::vec::Vec::new(), + pattern: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for HttpRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("HttpRule").unwrap()).clone() } } -impl ::std::fmt::Debug for HttpRule { +impl ::std::fmt::Display for HttpRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for HttpRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `HttpRule` +pub mod http_rule { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.HttpRule.pattern) + pub enum Pattern { + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.get) + Get(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.put) + Put(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.post) + Post(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.delete) + Delete(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.patch) + Patch(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.HttpRule.custom) + Custom(super::CustomHttpPattern), + } + + impl ::protobuf::Oneof for Pattern { + } + + impl ::protobuf::OneofFull for Pattern { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("pattern").unwrap()).clone() + } + } + + impl Pattern { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("pattern") + } } } -#[derive(PartialEq,Clone,Default)] +/// A custom pattern is used for defining custom HTTP verb. +// @@protoc_insertion_point(message:google.api.CustomHttpPattern) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CustomHttpPattern { // message fields + /// The name of this custom HTTP verb. + // @@protoc_insertion_point(field:google.api.CustomHttpPattern.kind) pub kind: ::std::string::String, + /// The path matched by this custom verb. + // @@protoc_insertion_point(field:google.api.CustomHttpPattern.path) pub path: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.CustomHttpPattern.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CustomHttpPattern { @@ -967,76 +842,45 @@ impl CustomHttpPattern { ::std::default::Default::default() } - // string kind = 1; - - - pub fn get_kind(&self) -> &str { - &self.kind - } - pub fn clear_kind(&mut self) { - self.kind.clear(); - } - - // Param is passed by value, moved - pub fn set_kind(&mut self, v: ::std::string::String) { - self.kind = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kind(&mut self) -> &mut ::std::string::String { - &mut self.kind - } - - // Take field - pub fn take_kind(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kind, ::std::string::String::new()) - } - - // string path = 2; - - - pub fn get_path(&self) -> &str { - &self.path - } - pub fn clear_path(&mut self) { - self.path.clear(); - } - - // Param is passed by value, moved - pub fn set_path(&mut self, v: ::std::string::String) { - self.path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path(&mut self) -> &mut ::std::string::String { - &mut self.path - } - - // Take field - pub fn take_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "kind", + |m: &CustomHttpPattern| { &m.kind }, + |m: &mut CustomHttpPattern| { &mut m.kind }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "path", + |m: &CustomHttpPattern| { &m.path }, + |m: &mut CustomHttpPattern| { &mut m.path }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CustomHttpPattern", + fields, + oneofs, + ) } } impl ::protobuf::Message for CustomHttpPattern { + const NAME: &'static str = "CustomHttpPattern"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kind)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.kind = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?; + 18 => { + self.path = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1045,7 +889,7 @@ impl ::protobuf::Message for CustomHttpPattern { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.kind.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.kind); @@ -1053,98 +897,65 @@ impl ::protobuf::Message for CustomHttpPattern { if !self.path.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.path); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.kind.is_empty() { os.write_string(1, &self.kind)?; } if !self.path.is_empty() { os.write_string(2, &self.path)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CustomHttpPattern { CustomHttpPattern::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kind", - |m: &CustomHttpPattern| { &m.kind }, - |m: &mut CustomHttpPattern| { &mut m.kind }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path", - |m: &CustomHttpPattern| { &m.path }, - |m: &mut CustomHttpPattern| { &mut m.path }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CustomHttpPattern", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.kind.clear(); + self.path.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CustomHttpPattern { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CustomHttpPattern::new) + static instance: CustomHttpPattern = CustomHttpPattern { + kind: ::std::string::String::new(), + path: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CustomHttpPattern { - fn clear(&mut self) { - self.kind.clear(); - self.path.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CustomHttpPattern { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CustomHttpPattern").unwrap()).clone() } } -impl ::std::fmt::Debug for CustomHttpPattern { +impl ::std::fmt::Display for CustomHttpPattern { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CustomHttpPattern { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -1163,9 +974,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x11CustomHttpPattern\x12\x12\n\x04kind\x18\x01\x20\x01(\tR\x04kind\ \x12\x12\n\x04path\x18\x02\x20\x01(\tR\x04pathBj\n\x0ecom.google.apiB\tH\ ttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;ann\ - otations\xf8\x01\x01\xa2\x02\x04GAPIJ\xb2s\n\x07\x12\x05\x0e\0\xfa\x02\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + otations\xf8\x01\x01\xa2\x02\x04GAPIJ\xaas\n\x07\x12\x05\x0f\0\xf7\x02\ + \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ + \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ @@ -1176,226 +987,225 @@ static file_descriptor_proto_data: &'static [u8] = b"\ UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\ - \x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x13\0X\n\t\n\x02\x08\x0b\x12\x03\x13\0X\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\0*\n\t\n\x02\x08\x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0'\ - \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ - \x02\x08$\x12\x03\x17\0\"\n\xcd\x01\n\x02\x04\0\x12\x04\x1c\0)\x01\x1a\ + \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ + \n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\ + \x01\x08\x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\x14\0X\n\x08\n\x01\x08\ + \x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\ + \x16\0*\n\t\n\x02\x08\x08\x12\x03\x16\0*\n\x08\n\x01\x08\x12\x03\x17\0'\ + \n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\ + \x02\x08$\x12\x03\x18\0\"\n\xcd\x01\n\x02\x04\0\x12\x04\x1d\0*\x01\x1a\ \xc0\x01\x20Defines\x20the\x20HTTP\x20configuration\x20for\x20an\x20API\ \x20service.\x20It\x20contains\x20a\x20list\x20of\n\x20[HttpRule][google\ .api.HttpRule],\x20each\x20specifying\x20the\x20mapping\x20of\x20an\x20R\ PC\x20method\n\x20to\x20one\x20or\x20more\x20HTTP\x20REST\x20API\x20meth\ - ods.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x0c\n\xa2\x01\n\x04\x04\0\x02\ - \0\x12\x03\x20\x02\x1e\x1a\x94\x01\x20A\x20list\x20of\x20HTTP\x20configu\ - ration\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\ - \n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\ - \x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\ - \x03\x20\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x20\x0b\x13\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03\x20\x14\x19\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03\x20\x1c\x1d\n\x94\x02\n\x04\x04\0\x02\x01\x12\x03(\x02+\x1a\x86\x02\ - \x20When\x20set\x20to\x20true,\x20URL\x20path\x20parameters\x20will\x20b\ - e\x20fully\x20URI-decoded\x20except\x20in\n\x20cases\x20of\x20single\x20\ - segment\x20matches\x20in\x20reserved\x20expansion,\x20where\x20\"%2F\"\ - \x20will\x20be\n\x20left\x20encoded.\n\n\x20The\x20default\x20behavior\ - \x20is\x20to\x20not\x20decode\x20RFC\x206570\x20reserved\x20characters\ - \x20in\x20multi\n\x20segment\x20matches.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03(\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03(\x07&\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03()*\n\xbbS\n\x02\x04\x01\x12\x06\xbb\x02\0\ - \xf1\x02\x01\x1a\xacS\x20#\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transco\ - ding\x20is\x20a\x20feature\x20for\x20mapping\x20between\x20a\x20gRPC\x20\ - method\x20and\x20one\x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\ - \x20allows\x20developers\x20to\x20build\x20a\x20single\x20API\x20service\ - \n\x20that\x20supports\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\ - \x20Many\x20systems,\x20including\x20[Google\n\x20APIs](https://github.c\ - om/googleapis/googleapis),\n\x20[Cloud\x20Endpoints](https://cloud.googl\ - e.com/endpoints),\x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosyst\ - em/grpc-gateway),\n\x20and\x20[Envoy](https://github.com/envoyproxy/envo\ - y)\x20proxy\x20support\x20this\x20feature\n\x20and\x20use\x20it\x20for\ - \x20large\x20scale\x20production\x20services.\n\n\x20`HttpRule`\x20defin\ - es\x20the\x20schema\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mapp\ - ing\x20specifies\n\x20how\x20different\x20portions\x20of\x20the\x20gRPC\ - \x20request\x20message\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\ - \x20URL\x20query\x20parameters,\x20and\x20HTTP\x20request\x20body.\x20It\ - \x20also\x20controls\x20how\x20the\n\x20gRPC\x20response\x20message\x20i\ - s\x20mapped\x20to\x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20i\ - s\n\x20typically\x20specified\x20as\x20an\x20`google.api.http`\x20annota\ - tion\x20on\x20the\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\ - \x20a\x20URL\x20path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\ - \x20path\n\x20template\x20may\x20refer\x20to\x20one\x20or\x20more\x20fie\ - lds\x20in\x20the\x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\ - \x20each\x20field\x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20pr\ - imitive\x20(non-message)\x20type.\n\x20The\x20path\x20template\x20contro\ - ls\x20how\x20fields\x20of\x20the\x20request\x20message\x20are\x20mapped\ - \x20to\n\x20the\x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20s\ - ervice\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(\ - GetMessageRequest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/{name=messages/*}\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20name\x20=\x201;\x20//\x20Ma\ - pped\x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20m\ - essage\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\ - \x201;\x20//\x20The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\ - \x20This\x20enables\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\ - \x20below:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/me\ - ssages/123456`\x20\x20|\x20`GetMessage(name:\x20\"messages/123456\")`\n\ - \n\x20Any\x20fields\x20in\x20the\x20request\x20message\x20which\x20are\ - \x20not\x20bound\x20by\x20the\x20path\x20template\n\x20automatically\x20\ - become\x20HTTP\x20query\x20parameters\x20if\x20there\x20is\x20no\x20HTTP\ - \x20request\x20body.\n\x20For\x20example:\n\n\x20\x20\x20\x20\x20service\ + ods.\n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\x0c\n\xa2\x01\n\x04\x04\0\x02\ + \0\x12\x03!\x02\x1e\x1a\x94\x01\x20A\x20list\x20of\x20HTTP\x20configurat\ + ion\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\ + \x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\ + \"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03!\ + \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03!\x0b\x13\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03!\x14\x19\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x1c\x1d\ + \n\x94\x02\n\x04\x04\0\x02\x01\x12\x03)\x02+\x1a\x86\x02\x20When\x20set\ + \x20to\x20true,\x20URL\x20path\x20parameters\x20will\x20be\x20fully\x20U\ + RI-decoded\x20except\x20in\n\x20cases\x20of\x20single\x20segment\x20matc\ + hes\x20in\x20reserved\x20expansion,\x20where\x20\"%2F\"\x20will\x20be\n\ + \x20left\x20encoded.\n\n\x20The\x20default\x20behavior\x20is\x20to\x20no\ + t\x20decode\x20RFC\x206570\x20reserved\x20characters\x20in\x20multi\n\ + \x20segment\x20matches.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03)\x02\x06\ + \n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03)\x07&\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03))*\n\xb3S\n\x02\x04\x01\x12\x06\xb9\x02\0\xee\x02\x01\x1a\ + \xa4S\x20#\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transcoding\x20is\x20a\ + \x20feature\x20for\x20mapping\x20between\x20a\x20gRPC\x20method\x20and\ + \x20one\x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\x20allows\ + \x20developers\x20to\x20build\x20a\x20single\x20API\x20service\n\x20that\ + \x20supports\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\x20Many\x20\ + systems,\x20including\x20[Google\n\x20APIs](https://github.com/googleapi\ + s/googleapis),\n\x20[Cloud\x20Endpoints](https://cloud.google.com/endpoi\ + nts),\x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosystem/grpc-gate\ + way),\n\x20and\x20[Envoy](https://github.com/envoyproxy/envoy)\x20proxy\ + \x20support\x20this\x20feature\n\x20and\x20use\x20it\x20for\x20large\x20\ + scale\x20production\x20services.\n\n\x20`HttpRule`\x20defines\x20the\x20\ + schema\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mapping\x20specif\ + ies\n\x20how\x20different\x20portions\x20of\x20the\x20gRPC\x20request\ + \x20message\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\x20URL\x20qu\ + ery\x20parameters,\x20and\x20HTTP\x20request\x20body.\x20It\x20also\x20c\ + ontrols\x20how\x20the\n\x20gRPC\x20response\x20message\x20is\x20mapped\ + \x20to\x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20is\n\x20typi\ + cally\x20specified\x20as\x20an\x20`google.api.http`\x20annotation\x20on\ + \x20the\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\x20a\x20U\ + RL\x20path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\x20path\n\ + \x20template\x20may\x20refer\x20to\x20one\x20or\x20more\x20fields\x20in\ + \x20the\x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\x20each\x20\ + field\x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20primitive\x20(\ + non-message)\x20type.\n\x20The\x20path\x20template\x20controls\x20how\ + \x20fields\x20of\x20the\x20request\x20message\x20are\x20mapped\x20to\n\ + \x20the\x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20service\ \x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMes\ sageRequest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\ \x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20get:\"/v1/messages/{message_id}\"\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/{name=messages/*}\"\n\x20\x20\ \x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ \x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20message\x20SubMessage\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20string\x20subfield\x20=\x201;\n\x20\x20\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\ - \x20//\x20Mapped\x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20\x20\x20int6\ - 4\x20revision\x20=\x202;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20que\ - ry\x20parameter\x20`revision`.\n\x20\x20\x20\x20\x20\x20\x20SubMessage\ - \x20sub\x20=\x203;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20\ - parameter\x20`sub.subfield`.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enabl\ - es\x20a\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20as\x20below:\n\n\x20H\ - TTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456?revis\ - ion=2&sub.subfield=foo`\x20|\n\x20`GetMessage(message_id:\x20\"123456\"\ - \x20revision:\x202\x20sub:\x20SubMessage(subfield:\n\x20\"foo\"))`\n\n\ - \x20Note\x20that\x20fields\x20which\x20are\x20mapped\x20to\x20URL\x20que\ - ry\x20parameters\x20must\x20have\x20a\n\x20primitive\x20type\x20or\x20a\ - \x20repeated\x20primitive\x20type\x20or\x20a\x20non-repeated\x20message\ - \x20type.\n\x20In\x20the\x20case\x20of\x20a\x20repeated\x20type,\x20the\ - \x20parameter\x20can\x20be\x20repeated\x20in\x20the\x20URL\n\x20as\x20`.\ - ..?param=A¶m=B`.\x20In\x20the\x20case\x20of\x20a\x20message\x20type,\ - \x20each\x20field\x20of\x20the\n\x20message\x20is\x20mapped\x20to\x20a\ - \x20separate\x20parameter,\x20such\x20as\n\x20`...?foo.a=A&foo.b=B&foo.c\ - =C`.\n\n\x20For\x20HTTP\x20methods\x20that\x20allow\x20a\x20request\x20b\ - ody,\x20the\x20`body`\x20field\n\x20specifies\x20the\x20mapping.\x20Cons\ - ider\x20a\x20REST\x20update\x20method\x20on\x20the\n\x20message\x20resou\ - rce\x20collection:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateMessage(UpdateMessageRequest)\ - \x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20optio\ - n\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20patch:\x20\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20body:\x20\"message\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20message\x20UpdateMessageRequest\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20string\x20message_id\x20=\x201;\x20//\x20mapped\x20to\ - \x20the\x20URL\n\x20\x20\x20\x20\x20\x20\x20Message\x20message\x20=\x202\ - ;\x20\x20\x20//\x20mapped\x20to\x20the\x20body\n\x20\x20\x20\x20\x20}\n\ - \n\x20The\x20following\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20\ - enabled,\x20where\x20the\n\x20representation\x20of\x20the\x20JSON\x20in\ - \x20the\x20request\x20body\x20is\x20determined\x20by\n\x20protos\x20JSON\ - \x20encoding:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/\ - v1/messages/123456\x20{\x20\"text\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMes\ - sage(message_id:\n\x20\"123456\"\x20message\x20{\x20text:\x20\"Hi!\"\x20\ - })`\n\n\x20The\x20special\x20name\x20`*`\x20can\x20be\x20used\x20in\x20t\ - he\x20body\x20mapping\x20to\x20define\x20that\n\x20every\x20field\x20not\ - \x20bound\x20by\x20the\x20path\x20template\x20should\x20be\x20mapped\x20\ - to\x20the\n\x20request\x20body.\x20\x20This\x20enables\x20the\x20followi\ - ng\x20alternative\x20definition\x20of\n\x20the\x20update\x20method:\n\n\ - \x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20rpc\x20UpdateMessage(Message)\x20returns\x20(Message)\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patch:\x20\"/v1/messages/{messag\ - e_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20body:\x20\"*\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20Message\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\n\x20\x20\x20\ - \x20\x20\x20\x20string\x20text\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\n\ - \x20The\x20following\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20en\ - abled:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/v1/mess\ - ages/123456\x20{\x20\"text\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMessage(me\ - ssage_id:\n\x20\"123456\"\x20text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20w\ - hen\x20using\x20`*`\x20in\x20the\x20body\x20mapping,\x20it\x20is\x20not\ - \x20possible\x20to\n\x20have\x20HTTP\x20parameters,\x20as\x20all\x20fiel\ - ds\x20not\x20bound\x20by\x20the\x20path\x20end\x20in\n\x20the\x20body.\ - \x20This\x20makes\x20this\x20option\x20more\x20rarely\x20used\x20in\x20p\ - ractice\x20when\n\x20defining\x20REST\x20APIs.\x20The\x20common\x20usage\ - \x20of\x20`*`\x20is\x20in\x20custom\x20methods\n\x20which\x20don't\x20us\ - e\x20the\x20URL\x20at\x20all\x20for\x20transferring\x20data.\n\n\x20It\ - \x20is\x20possible\x20to\x20define\x20multiple\x20HTTP\x20methods\x20for\ - \x20one\x20RPC\x20by\x20using\n\x20the\x20`additional_bindings`\x20optio\ - n.\x20Example:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageRequest)\x20returns\ - \x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(googl\ - e.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\ - \x20\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20additional_bindings\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20get:\x20\"/v1/users/{user_id}/messages/{message_id}\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20string\x20message_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\ - \x20string\x20user_id\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\x20This\x20e\ - nables\x20the\x20following\x20two\x20alternative\x20HTTP\x20JSON\x20to\ - \x20RPC\x20mappings:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\ - \x20/v1/messages/123456`\x20|\x20`GetMessage(message_id:\x20\"123456\")`\ - \n\x20`GET\x20/v1/users/me/messages/123456`\x20|\x20`GetMessage(user_id:\ - \x20\"me\"\x20message_id:\n\x20\"123456\")`\n\n\x20##\x20Rules\x20for\ - \x20HTTP\x20mapping\n\n\x201.\x20Leaf\x20request\x20fields\x20(recursive\ - \x20expansion\x20nested\x20messages\x20in\x20the\x20request\n\x20\x20\ - \x20\x20message)\x20are\x20classified\x20into\x20three\x20categories:\n\ - \x20\x20\x20\x20-\x20Fields\x20referred\x20by\x20the\x20path\x20template\ - .\x20They\x20are\x20passed\x20via\x20the\x20URL\x20path.\n\x20\x20\x20\ - \x20-\x20Fields\x20referred\x20by\x20the\x20[HttpRule.body][google.api.H\ - ttpRule.body].\x20They\n\x20\x20\x20\x20are\x20passed\x20via\x20the\x20H\ - TTP\n\x20\x20\x20\x20\x20\x20request\x20body.\n\x20\x20\x20\x20-\x20All\ - \x20other\x20fields\x20are\x20passed\x20via\x20the\x20URL\x20query\x20pa\ - rameters,\x20and\x20the\n\x20\x20\x20\x20\x20\x20parameter\x20name\x20is\ - \x20the\x20field\x20path\x20in\x20the\x20request\x20message.\x20A\x20rep\ - eated\n\x20\x20\x20\x20\x20\x20field\x20can\x20be\x20represented\x20as\ - \x20multiple\x20query\x20parameters\x20under\x20the\x20same\n\x20\x20\ - \x20\x20\x20\x20name.\n\x20\x202.\x20If\x20[HttpRule.body][google.api.Ht\ - tpRule.body]\x20is\x20\"*\",\x20there\x20is\x20no\x20URL\n\x20\x20query\ - \x20parameter,\x20all\x20fields\n\x20\x20\x20\x20\x20are\x20passed\x20vi\ - a\x20URL\x20path\x20and\x20HTTP\x20request\x20body.\n\x20\x203.\x20If\ - \x20[HttpRule.body][google.api.HttpRule.body]\x20is\x20omitted,\x20there\ - \x20is\x20no\x20HTTP\n\x20\x20request\x20body,\x20all\n\x20\x20\x20\x20\ - \x20fields\x20are\x20passed\x20via\x20URL\x20path\x20and\x20URL\x20query\ - \x20parameters.\n\n\x20###\x20Path\x20template\x20syntax\n\n\x20\x20\x20\ - \x20\x20Template\x20=\x20\"/\"\x20Segments\x20[\x20Verb\x20]\x20;\n\x20\ - \x20\x20\x20\x20Segments\x20=\x20Segment\x20{\x20\"/\"\x20Segment\x20}\ - \x20;\n\x20\x20\x20\x20\x20Segment\x20\x20=\x20\"*\"\x20|\x20\"**\"\x20|\ - \x20LITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\x20=\x20\ - \"{\"\x20FieldPath\x20[\x20\"=\"\x20Segments\x20]\x20\"}\"\x20;\n\x20\ - \x20\x20\x20\x20FieldPath\x20=\x20IDENT\x20{\x20\".\"\x20IDENT\x20}\x20;\ - \n\x20\x20\x20\x20\x20Verb\x20\x20\x20\x20\x20=\x20\":\"\x20LITERAL\x20;\ - \n\n\x20The\x20syntax\x20`*`\x20matches\x20a\x20single\x20URL\x20path\ - \x20segment.\x20The\x20syntax\x20`**`\x20matches\n\x20zero\x20or\x20more\ - \x20URL\x20path\x20segments,\x20which\x20must\x20be\x20the\x20last\x20pa\ - rt\x20of\x20the\x20URL\x20path\n\x20except\x20the\x20`Verb`.\n\n\x20The\ - \x20syntax\x20`Variable`\x20matches\x20part\x20of\x20the\x20URL\x20path\ - \x20as\x20specified\x20by\x20its\n\x20template.\x20A\x20variable\x20temp\ - late\x20must\x20not\x20contain\x20other\x20variables.\x20If\x20a\x20vari\ - able\n\x20matches\x20a\x20single\x20path\x20segment,\x20its\x20template\ - \x20may\x20be\x20omitted,\x20e.g.\x20`{var}`\n\x20is\x20equivalent\x20to\ - \x20`{var=*}`.\n\n\x20The\x20syntax\x20`LITERAL`\x20matches\x20literal\ - \x20text\x20in\x20the\x20URL\x20path.\x20If\x20the\x20`LITERAL`\n\x20con\ - tains\x20any\x20reserved\x20character,\x20such\x20characters\x20should\ - \x20be\x20percent-encoded\n\x20before\x20the\x20matching.\n\n\x20If\x20a\ - \x20variable\x20contains\x20exactly\x20one\x20path\x20segment,\x20such\ - \x20as\x20`\"{var}\"`\x20or\n\x20`\"{var=*}\"`,\x20when\x20such\x20a\x20\ - variable\x20is\x20expanded\x20into\x20a\x20URL\x20path\x20on\x20the\x20c\ - lient\n\x20side,\x20all\x20characters\x20except\x20`[-_.~0-9a-zA-Z]`\x20\ - are\x20percent-encoded.\x20The\n\x20server\x20side\x20does\x20the\x20rev\ - erse\x20decoding.\x20Such\x20variables\x20show\x20up\x20in\x20the\n\x20[\ - Discovery\n\x20Document](https://developers.google.com/discovery/v1/refe\ - rence/apis)\x20as\n\x20`{var}`.\n\n\x20If\x20a\x20variable\x20contains\ - \x20multiple\x20path\x20segments,\x20such\x20as\x20`\"{var=foo/*}\"`\n\ - \x20or\x20`\"{var=**}\"`,\x20when\x20such\x20a\x20variable\x20is\x20expa\ - nded\x20into\x20a\x20URL\x20path\x20on\x20the\n\x20client\x20side,\x20al\ - l\x20characters\x20except\x20`[-_.~/0-9a-zA-Z]`\x20are\x20percent-encode\ - d.\n\x20The\x20server\x20side\x20does\x20the\x20reverse\x20decoding,\x20\ - except\x20\"%2F\"\x20and\x20\"%2f\"\x20are\x20left\n\x20unchanged.\x20Su\ - ch\x20variables\x20show\x20up\x20in\x20the\n\x20[Discovery\n\x20Document\ - ](https://developers.google.com/discovery/v1/reference/apis)\x20as\n\x20\ - `{+var}`.\n\n\x20##\x20Using\x20gRPC\x20API\x20Service\x20Configuration\ - \n\n\x20gRPC\x20API\x20Service\x20Configuration\x20(service\x20config)\ - \x20is\x20a\x20configuration\x20language\n\x20for\x20configuring\x20a\ + \x20\x20\x20\x20\x20\x20\x20string\x20name\x20=\x201;\x20//\x20Mapped\ + \x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20messa\ + ge\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\x201\ + ;\x20//\x20The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\x20Thi\ + s\x20enables\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\x20bel\ + ow:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/\ + 123456`\x20\x20|\x20`GetMessage(name:\x20\"messages/123456\")`\n\n\x20An\ + y\x20fields\x20in\x20the\x20request\x20message\x20which\x20are\x20not\ + \x20bound\x20by\x20the\x20path\x20template\n\x20automatically\x20become\ + \x20HTTP\x20query\x20parameters\x20if\x20there\x20is\x20no\x20HTTP\x20re\ + quest\x20body.\n\x20For\x20example:\n\n\x20\x20\x20\x20\x20service\x20Me\ + ssaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageRe\ + quest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20get:\"/v1/messages/{message_id}\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ + \x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20message\x20SubMessage\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20string\x20subfield\x20=\x201;\n\x20\x20\x20\x20\x20\x20\ + \x20}\n\x20\x20\x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\x20//\ + \x20Mapped\x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20\x20\x20int64\x20r\ + evision\x20=\x202;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20\ + parameter\x20`revision`.\n\x20\x20\x20\x20\x20\x20\x20SubMessage\x20sub\ + \x20=\x203;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20paramet\ + er\x20`sub.subfield`.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20a\ + \x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20as\x20below:\n\n\x20HTTP\x20\ + |\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456?revision=2&s\ + ub.subfield=foo`\x20|\n\x20`GetMessage(message_id:\x20\"123456\"\x20revi\ + sion:\x202\x20sub:\x20SubMessage(subfield:\n\x20\"foo\"))`\n\n\x20Note\ + \x20that\x20fields\x20which\x20are\x20mapped\x20to\x20URL\x20query\x20pa\ + rameters\x20must\x20have\x20a\n\x20primitive\x20type\x20or\x20a\x20repea\ + ted\x20primitive\x20type\x20or\x20a\x20non-repeated\x20message\x20type.\ + \n\x20In\x20the\x20case\x20of\x20a\x20repeated\x20type,\x20the\x20parame\ + ter\x20can\x20be\x20repeated\x20in\x20the\x20URL\n\x20as\x20`...?param=A\ + ¶m=B`.\x20In\x20the\x20case\x20of\x20a\x20message\x20type,\x20each\ + \x20field\x20of\x20the\n\x20message\x20is\x20mapped\x20to\x20a\x20separa\ + te\x20parameter,\x20such\x20as\n\x20`...?foo.a=A&foo.b=B&foo.c=C`.\n\n\ + \x20For\x20HTTP\x20methods\x20that\x20allow\x20a\x20request\x20body,\x20\ + the\x20`body`\x20field\n\x20specifies\x20the\x20mapping.\x20Consider\x20\ + a\x20REST\x20update\x20method\x20on\x20the\n\x20message\x20resource\x20c\ + ollection:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20rpc\x20UpdateMessage(UpdateMessageRequest)\x20return\ + s\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(goog\ + le.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patc\ + h:\x20\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20body:\x20\"message\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\ + \n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ + \x20message\x20UpdateMessageRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20st\ + ring\x20message_id\x20=\x201;\x20//\x20mapped\x20to\x20the\x20URL\n\x20\ + \x20\x20\x20\x20\x20\x20Message\x20message\x20=\x202;\x20\x20\x20//\x20m\ + apped\x20to\x20the\x20body\n\x20\x20\x20\x20\x20}\n\n\x20The\x20followin\ + g\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20enabled,\x20where\x20\ + the\n\x20representation\x20of\x20the\x20JSON\x20in\x20the\x20request\x20\ + body\x20is\x20determined\x20by\n\x20protos\x20JSON\x20encoding:\n\n\x20H\ + TTP\x20|\x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/v1/messages/123456\x20\ + {\x20\"text\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMessage(message_id:\n\x20\ + \"123456\"\x20message\x20{\x20text:\x20\"Hi!\"\x20})`\n\n\x20The\x20spec\ + ial\x20name\x20`*`\x20can\x20be\x20used\x20in\x20the\x20body\x20mapping\ + \x20to\x20define\x20that\n\x20every\x20field\x20not\x20bound\x20by\x20th\ + e\x20path\x20template\x20should\x20be\x20mapped\x20to\x20the\n\x20reques\ + t\x20body.\x20\x20This\x20enables\x20the\x20following\x20alternative\x20\ + definition\x20of\n\x20the\x20update\x20method:\n\n\x20\x20\x20\x20\x20se\ + rvice\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateMessag\ + e(Message)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20patch:\x20\"/v1/messages/{message_id}\"\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20body:\x20\"*\"\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\ + \n\x20\x20\x20\x20\x20message\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20string\x20message_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20string\ + \x20text\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\n\x20The\x20following\x20\ + HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20enabled:\n\n\x20HTTP\x20|\ + \x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/v1/messages/123456\x20{\x20\"t\ + ext\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMessage(message_id:\n\x20\"123456\ + \"\x20text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20when\x20using\x20`*`\x20\ + in\x20the\x20body\x20mapping,\x20it\x20is\x20not\x20possible\x20to\n\x20\ + have\x20HTTP\x20parameters,\x20as\x20all\x20fields\x20not\x20bound\x20by\ + \x20the\x20path\x20end\x20in\n\x20the\x20body.\x20This\x20makes\x20this\ + \x20option\x20more\x20rarely\x20used\x20in\x20practice\x20when\n\x20defi\ + ning\x20REST\x20APIs.\x20The\x20common\x20usage\x20of\x20`*`\x20is\x20in\ + \x20custom\x20methods\n\x20which\x20don't\x20use\x20the\x20URL\x20at\x20\ + all\x20for\x20transferring\x20data.\n\n\x20It\x20is\x20possible\x20to\ + \x20define\x20multiple\x20HTTP\x20methods\x20for\x20one\x20RPC\x20by\x20\ + using\n\x20the\x20`additional_bindings`\x20option.\x20Example:\n\n\x20\ + \x20\x20\x20\x20service\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20r\ + pc\x20GetMessage(GetMessageRequest)\x20returns\x20(Message)\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.http)\x20=\x20{\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/messages/{mess\ + age_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20additional_bindin\ + gs\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/\ + v1/users/{user_id}/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\ + \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\ + \x20GetMessageRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20messag\ + e_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20string\x20user_id\x20=\x202\ + ;\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20the\x20following\x20t\ + wo\x20alternative\x20HTTP\x20JSON\x20to\x20RPC\x20mappings:\n\n\x20HTTP\ + \x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456`\x20|\ + \x20`GetMessage(message_id:\x20\"123456\")`\n\x20`GET\x20/v1/users/me/me\ + ssages/123456`\x20|\x20`GetMessage(user_id:\x20\"me\"\x20message_id:\n\ + \x20\"123456\")`\n\n\x20##\x20Rules\x20for\x20HTTP\x20mapping\n\n\x201.\ + \x20Leaf\x20request\x20fields\x20(recursive\x20expansion\x20nested\x20me\ + ssages\x20in\x20the\x20request\n\x20\x20\x20\x20message)\x20are\x20class\ + ified\x20into\x20three\x20categories:\n\x20\x20\x20\x20-\x20Fields\x20re\ + ferred\x20by\x20the\x20path\x20template.\x20They\x20are\x20passed\x20via\ + \x20the\x20URL\x20path.\n\x20\x20\x20\x20-\x20Fields\x20referred\x20by\ + \x20the\x20[HttpRule.body][google.api.HttpRule.body].\x20They\x20are\x20\ + passed\x20via\x20the\x20HTTP\n\x20\x20\x20\x20\x20\x20request\x20body.\n\ + \x20\x20\x20\x20-\x20All\x20other\x20fields\x20are\x20passed\x20via\x20t\ + he\x20URL\x20query\x20parameters,\x20and\x20the\n\x20\x20\x20\x20\x20\ + \x20parameter\x20name\x20is\x20the\x20field\x20path\x20in\x20the\x20requ\ + est\x20message.\x20A\x20repeated\n\x20\x20\x20\x20\x20\x20field\x20can\ + \x20be\x20represented\x20as\x20multiple\x20query\x20parameters\x20under\ + \x20the\x20same\n\x20\x20\x20\x20\x20\x20name.\n\x20\x202.\x20If\x20[Htt\ + pRule.body][google.api.HttpRule.body]\x20is\x20\"*\",\x20there\x20is\x20\ + no\x20URL\x20query\x20parameter,\x20all\x20fields\n\x20\x20\x20\x20\x20a\ + re\x20passed\x20via\x20URL\x20path\x20and\x20HTTP\x20request\x20body.\n\ + \x20\x203.\x20If\x20[HttpRule.body][google.api.HttpRule.body]\x20is\x20o\ + mitted,\x20there\x20is\x20no\x20HTTP\x20request\x20body,\x20all\n\x20\ + \x20\x20\x20\x20fields\x20are\x20passed\x20via\x20URL\x20path\x20and\x20\ + URL\x20query\x20parameters.\n\n\x20###\x20Path\x20template\x20syntax\n\n\ + \x20\x20\x20\x20\x20Template\x20=\x20\"/\"\x20Segments\x20[\x20Verb\x20]\ + \x20;\n\x20\x20\x20\x20\x20Segments\x20=\x20Segment\x20{\x20\"/\"\x20Seg\ + ment\x20}\x20;\n\x20\x20\x20\x20\x20Segment\x20\x20=\x20\"*\"\x20|\x20\"\ + **\"\x20|\x20LITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\ + \x20=\x20\"{\"\x20FieldPath\x20[\x20\"=\"\x20Segments\x20]\x20\"}\"\x20;\ + \n\x20\x20\x20\x20\x20FieldPath\x20=\x20IDENT\x20{\x20\".\"\x20IDENT\x20\ + }\x20;\n\x20\x20\x20\x20\x20Verb\x20\x20\x20\x20\x20=\x20\":\"\x20LITERA\ + L\x20;\n\n\x20The\x20syntax\x20`*`\x20matches\x20a\x20single\x20URL\x20p\ + ath\x20segment.\x20The\x20syntax\x20`**`\x20matches\n\x20zero\x20or\x20m\ + ore\x20URL\x20path\x20segments,\x20which\x20must\x20be\x20the\x20last\ + \x20part\x20of\x20the\x20URL\x20path\n\x20except\x20the\x20`Verb`.\n\n\ + \x20The\x20syntax\x20`Variable`\x20matches\x20part\x20of\x20the\x20URL\ + \x20path\x20as\x20specified\x20by\x20its\n\x20template.\x20A\x20variable\ + \x20template\x20must\x20not\x20contain\x20other\x20variables.\x20If\x20a\ + \x20variable\n\x20matches\x20a\x20single\x20path\x20segment,\x20its\x20t\ + emplate\x20may\x20be\x20omitted,\x20e.g.\x20`{var}`\n\x20is\x20equivalen\ + t\x20to\x20`{var=*}`.\n\n\x20The\x20syntax\x20`LITERAL`\x20matches\x20li\ + teral\x20text\x20in\x20the\x20URL\x20path.\x20If\x20the\x20`LITERAL`\n\ + \x20contains\x20any\x20reserved\x20character,\x20such\x20characters\x20s\ + hould\x20be\x20percent-encoded\n\x20before\x20the\x20matching.\n\n\x20If\ + \x20a\x20variable\x20contains\x20exactly\x20one\x20path\x20segment,\x20s\ + uch\x20as\x20`\"{var}\"`\x20or\n\x20`\"{var=*}\"`,\x20when\x20such\x20a\ + \x20variable\x20is\x20expanded\x20into\x20a\x20URL\x20path\x20on\x20the\ + \x20client\n\x20side,\x20all\x20characters\x20except\x20`[-_.~0-9a-zA-Z]\ + `\x20are\x20percent-encoded.\x20The\n\x20server\x20side\x20does\x20the\ + \x20reverse\x20decoding.\x20Such\x20variables\x20show\x20up\x20in\x20the\ + \n\x20[Discovery\n\x20Document](https://developers.google.com/discovery/\ + v1/reference/apis)\x20as\n\x20`{var}`.\n\n\x20If\x20a\x20variable\x20con\ + tains\x20multiple\x20path\x20segments,\x20such\x20as\x20`\"{var=foo/*}\"\ + `\n\x20or\x20`\"{var=**}\"`,\x20when\x20such\x20a\x20variable\x20is\x20e\ + xpanded\x20into\x20a\x20URL\x20path\x20on\x20the\n\x20client\x20side,\ + \x20all\x20characters\x20except\x20`[-_.~/0-9a-zA-Z]`\x20are\x20percent-\ + encoded.\n\x20The\x20server\x20side\x20does\x20the\x20reverse\x20decodin\ + g,\x20except\x20\"%2F\"\x20and\x20\"%2f\"\x20are\x20left\n\x20unchanged.\ + \x20Such\x20variables\x20show\x20up\x20in\x20the\n\x20[Discovery\n\x20Do\ + cument](https://developers.google.com/discovery/v1/reference/apis)\x20as\ + \n\x20`{+var}`.\n\n\x20##\x20Using\x20gRPC\x20API\x20Service\x20Configur\ + ation\n\n\x20gRPC\x20API\x20Service\x20Configuration\x20(service\x20conf\ + ig)\x20is\x20a\x20configuration\x20language\n\x20for\x20configuring\x20a\ \x20gRPC\x20service\x20to\x20become\x20a\x20user-facing\x20product.\x20T\ he\n\x20service\x20config\x20is\x20simply\x20the\x20YAML\x20representati\ on\x20of\x20the\x20`google.api.Service`\n\x20proto\x20message.\n\n\x20As\ @@ -1443,96 +1253,115 @@ static file_descriptor_proto_data: &'static [u8] = b"\ y,\x20it\x20can\x20map\n\x20the\x20request\x20or\x20response\x20body\x20\ to\x20a\x20repeated\x20field.\x20However,\x20some\x20gRPC\n\x20Transcodi\ ng\x20implementations\x20may\x20not\x20support\x20this\x20feature.\n\n\ - \x0b\n\x03\x04\x01\x01\x12\x04\xbb\x02\x08\x10\n\x8f\x01\n\x04\x04\x01\ - \x02\0\x12\x04\xc0\x02\x02\x16\x1a\x80\x01\x20Selects\x20a\x20method\x20\ - to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selector]\ - [google.api.DocumentationRule.selector]\x20for\x20syntax\n\x20details.\n\ - \n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xc0\x02\x02\x08\n\r\n\x05\x04\x01\ - \x02\0\x01\x12\x04\xc0\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xc0\ - \x02\x14\x15\n\xd0\x01\n\x04\x04\x01\x08\0\x12\x06\xc5\x02\x02\xdb\x02\ - \x03\x1a\xbf\x01\x20Determines\x20the\x20URL\x20pattern\x20is\x20matched\ - \x20by\x20this\x20rules.\x20This\x20pattern\x20can\x20be\n\x20used\x20wi\ - th\x20any\x20of\x20the\x20{get|put|post|delete|patch}\x20methods.\x20A\ - \x20custom\x20method\n\x20can\x20be\x20defined\x20using\x20the\x20'custo\ - m'\x20field.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xc5\x02\x08\x0f\n\\\n\ - \x04\x04\x01\x02\x01\x12\x04\xc8\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\ + \x0b\n\x03\x04\x01\x01\x12\x04\xb9\x02\x08\x10\n\x8d\x01\n\x04\x04\x01\ + \x02\0\x12\x04\xbd\x02\x02\x16\x1a\x7f\x20Selects\x20a\x20method\x20to\ + \x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selector][g\ + oogle.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\n\n\r\ + \n\x05\x04\x01\x02\0\x05\x12\x04\xbd\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\ + \x01\x12\x04\xbd\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbd\x02\ + \x14\x15\n\xd0\x01\n\x04\x04\x01\x08\0\x12\x06\xc2\x02\x02\xd8\x02\x03\ + \x1a\xbf\x01\x20Determines\x20the\x20URL\x20pattern\x20is\x20matched\x20\ + by\x20this\x20rules.\x20This\x20pattern\x20can\x20be\n\x20used\x20with\ + \x20any\x20of\x20the\x20{get|put|post|delete|patch}\x20methods.\x20A\x20\ + custom\x20method\n\x20can\x20be\x20defined\x20using\x20the\x20'custom'\ + \x20field.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xc2\x02\x08\x0f\n\\\n\ + \x04\x04\x01\x02\x01\x12\x04\xc5\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\ \x20GET.\x20Used\x20for\x20listing\x20and\x20getting\x20information\x20a\ - bout\n\x20resources.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc8\x02\x04\ - \n\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xc8\x02\x0b\x0e\n\r\n\x05\x04\ - \x01\x02\x01\x03\x12\x04\xc8\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\ - \x04\xcb\x02\x04\x13\x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\ + bout\n\x20resources.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc5\x02\x04\ + \n\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xc5\x02\x0b\x0e\n\r\n\x05\x04\ + \x01\x02\x01\x03\x12\x04\xc5\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\ + \x04\xc8\x02\x04\x13\x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\ \x20replacing\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\ - \xcb\x02\x04\n\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xcb\x02\x0b\x0e\n\r\ - \n\x05\x04\x01\x02\x02\x03\x12\x04\xcb\x02\x11\x12\nX\n\x04\x04\x01\x02\ - \x03\x12\x04\xce\x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\ + \xc8\x02\x04\n\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xc8\x02\x0b\x0e\n\r\ + \n\x05\x04\x01\x02\x02\x03\x12\x04\xc8\x02\x11\x12\nX\n\x04\x04\x01\x02\ + \x03\x12\x04\xcb\x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\ \x20for\x20creating\x20a\x20resource\x20or\x20performing\x20an\x20action\ - .\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xce\x02\x04\n\n\r\n\x05\x04\ - \x01\x02\x03\x01\x12\x04\xce\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\ - \x12\x04\xce\x02\x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xd1\x02\x04\ + .\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xcb\x02\x04\n\n\r\n\x05\x04\ + \x01\x02\x03\x01\x12\x04\xcb\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\ + \x12\x04\xcb\x02\x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xce\x02\x04\ \x16\x1a4\x20Maps\x20to\x20HTTP\x20DELETE.\x20Used\x20for\x20deleting\ - \x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\xd1\x02\x04\n\ - \n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xd1\x02\x0b\x11\n\r\n\x05\x04\x01\ - \x02\x04\x03\x12\x04\xd1\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\ - \xd4\x02\x04\x15\x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20\ - updating\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xd4\ - \x02\x04\n\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xd4\x02\x0b\x10\n\r\n\ - \x05\x04\x01\x02\x05\x03\x12\x04\xd4\x02\x13\x14\n\x98\x02\n\x04\x04\x01\ - \x02\x06\x12\x04\xda\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\ + \x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\xce\x02\x04\n\ + \n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xce\x02\x0b\x11\n\r\n\x05\x04\x01\ + \x02\x04\x03\x12\x04\xce\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\ + \xd1\x02\x04\x15\x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20\ + updating\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xd1\ + \x02\x04\n\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xd1\x02\x0b\x10\n\r\n\ + \x05\x04\x01\x02\x05\x03\x12\x04\xd1\x02\x13\x14\n\x98\x02\n\x04\x04\x01\ + \x02\x06\x12\x04\xd7\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\ \x20is\x20used\x20for\x20specifying\x20an\x20HTTP\x20method\x20that\x20i\ s\x20not\n\x20included\x20in\x20the\x20`pattern`\x20field,\x20such\x20as\ \x20HEAD,\x20or\x20\"*\"\x20to\x20leave\x20the\n\x20HTTP\x20method\x20un\ specified\x20for\x20this\x20rule.\x20The\x20wild-card\x20rule\x20is\x20u\ seful\n\x20for\x20services\x20that\x20provide\x20content\x20to\x20Web\ - \x20(HTML)\x20clients.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xda\x02\ - \x04\x15\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xda\x02\x16\x1c\n\r\n\x05\ - \x04\x01\x02\x06\x03\x12\x04\xda\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\ - \x07\x12\x04\xe3\x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20\ + \x20(HTML)\x20clients.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xd7\x02\ + \x04\x15\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xd7\x02\x16\x1c\n\r\n\x05\ + \x04\x01\x02\x06\x03\x12\x04\xd7\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\ + \x07\x12\x04\xe0\x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20\ request\x20field\x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\ \x20request\n\x20body,\x20or\x20`*`\x20for\x20mapping\x20all\x20request\ \x20fields\x20not\x20captured\x20by\x20the\x20path\n\x20pattern\x20to\ \x20the\x20HTTP\x20body,\x20or\x20omitted\x20for\x20not\x20having\x20any\ \x20HTTP\x20request\x20body.\n\n\x20NOTE:\x20the\x20referred\x20field\ \x20must\x20be\x20present\x20at\x20the\x20top-level\x20of\x20the\x20requ\ - est\n\x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xe3\ - \x02\x02\x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xe3\x02\t\r\n\r\n\x05\ - \x04\x01\x02\x07\x03\x12\x04\xe3\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\ - \x08\x12\x04\xeb\x02\x02\x1c\x1a\x8a\x02\x20Optional.\x20The\x20name\x20\ + est\n\x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xe0\ + \x02\x02\x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xe0\x02\t\r\n\r\n\x05\ + \x04\x01\x02\x07\x03\x12\x04\xe0\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\ + \x08\x12\x04\xe8\x02\x02\x1c\x1a\x8a\x02\x20Optional.\x20The\x20name\x20\ of\x20the\x20response\x20field\x20whose\x20value\x20is\x20mapped\x20to\ \x20the\x20HTTP\n\x20response\x20body.\x20When\x20omitted,\x20the\x20ent\ ire\x20response\x20message\x20will\x20be\x20used\n\x20as\x20the\x20HTTP\ \x20response\x20body.\n\n\x20NOTE:\x20The\x20referred\x20field\x20must\ \x20be\x20present\x20at\x20the\x20top-level\x20of\x20the\x20response\n\ - \x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x08\x05\x12\x04\xeb\x02\x02\ - \x08\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\xeb\x02\t\x16\n\r\n\x05\x04\ - \x01\x02\x08\x03\x12\x04\xeb\x02\x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\ - \x12\x04\xf0\x02\x02-\x1a\xac\x01\x20Additional\x20HTTP\x20bindings\x20f\ + \x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x08\x05\x12\x04\xe8\x02\x02\ + \x08\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\xe8\x02\t\x16\n\r\n\x05\x04\ + \x01\x02\x08\x03\x12\x04\xe8\x02\x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\ + \x12\x04\xed\x02\x02-\x1a\xac\x01\x20Additional\x20HTTP\x20bindings\x20f\ or\x20the\x20selector.\x20Nested\x20bindings\x20must\n\x20not\x20contain\ \x20an\x20`additional_bindings`\x20field\x20themselves\x20(that\x20is,\n\ \x20the\x20nesting\x20may\x20only\x20be\x20one\x20level\x20deep).\n\n\r\ - \n\x05\x04\x01\x02\t\x04\x12\x04\xf0\x02\x02\n\n\r\n\x05\x04\x01\x02\t\ - \x06\x12\x04\xf0\x02\x0b\x13\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xf0\x02\ - \x14'\n\r\n\x05\x04\x01\x02\t\x03\x12\x04\xf0\x02*,\nG\n\x02\x04\x02\x12\ - \x06\xf4\x02\0\xfa\x02\x01\x1a9\x20A\x20custom\x20pattern\x20is\x20used\ + \n\x05\x04\x01\x02\t\x04\x12\x04\xed\x02\x02\n\n\r\n\x05\x04\x01\x02\t\ + \x06\x12\x04\xed\x02\x0b\x13\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xed\x02\ + \x14'\n\r\n\x05\x04\x01\x02\t\x03\x12\x04\xed\x02*,\nG\n\x02\x04\x02\x12\ + \x06\xf1\x02\0\xf7\x02\x01\x1a9\x20A\x20custom\x20pattern\x20is\x20used\ \x20for\x20defining\x20custom\x20HTTP\x20verb.\n\n\x0b\n\x03\x04\x02\x01\ - \x12\x04\xf4\x02\x08\x19\n2\n\x04\x04\x02\x02\0\x12\x04\xf6\x02\x02\x12\ + \x12\x04\xf1\x02\x08\x19\n2\n\x04\x04\x02\x02\0\x12\x04\xf3\x02\x02\x12\ \x1a$\x20The\x20name\x20of\x20this\x20custom\x20HTTP\x20verb.\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\xf6\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xf6\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xf6\x02\x10\ - \x11\n5\n\x04\x04\x02\x02\x01\x12\x04\xf9\x02\x02\x12\x1a'\x20The\x20pat\ + \x05\x04\x02\x02\0\x05\x12\x04\xf3\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\xf3\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xf3\x02\x10\ + \x11\n5\n\x04\x04\x02\x02\x01\x12\x04\xf6\x02\x02\x12\x1a'\x20The\x20pat\ h\x20matched\x20by\x20this\x20custom\x20verb.\n\n\r\n\x05\x04\x02\x02\ - \x01\x05\x12\x04\xf9\x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ - \xf9\x02\t\r\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf9\x02\x10\x11b\x06p\ + \x01\x05\x12\x04\xf6\x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ + \xf6\x02\t\r\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf6\x02\x10\x11b\x06p\ roto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(Http::generated_message_descriptor_data()); + messages.push(HttpRule::generated_message_descriptor_data()); + messages.push(CustomHttpPattern::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/httpbody.rs b/googleapis-raw/src/api/httpbody.rs index a643e85..900f66d 100644 --- a/googleapis-raw/src/api/httpbody.rs +++ b/googleapis-raw/src/api/httpbody.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,32 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/httpbody.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.HttpBody) +#[derive(PartialEq,Clone,Default,Debug)] pub struct HttpBody { // message fields + /// The HTTP Content-Type header value specifying the content type of the body. + // @@protoc_insertion_point(field:google.api.HttpBody.content_type) pub content_type: ::std::string::String, + /// The HTTP request/response body as raw binary. + // @@protoc_insertion_point(field:google.api.HttpBody.data) pub data: ::std::vec::Vec, - pub extensions: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + /// Application specific response metadata. Must be set in the first response + /// for streaming APIs. + // @@protoc_insertion_point(field:google.api.HttpBody.extensions) + pub extensions: ::std::vec::Vec<::protobuf::well_known_types::any::Any>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.HttpBody.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a HttpBody { @@ -45,109 +55,53 @@ impl HttpBody { ::std::default::Default::default() } - // string content_type = 1; - - - pub fn get_content_type(&self) -> &str { - &self.content_type - } - pub fn clear_content_type(&mut self) { - self.content_type.clear(); - } - - // Param is passed by value, moved - pub fn set_content_type(&mut self, v: ::std::string::String) { - self.content_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content_type(&mut self) -> &mut ::std::string::String { - &mut self.content_type - } - - // Take field - pub fn take_content_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.content_type, ::std::string::String::new()) - } - - // bytes data = 2; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } - - // repeated .google.protobuf.Any extensions = 3; - - - pub fn get_extensions(&self) -> &[::protobuf::well_known_types::Any] { - &self.extensions - } - pub fn clear_extensions(&mut self) { - self.extensions.clear(); - } - - // Param is passed by value, moved - pub fn set_extensions(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.extensions = v; - } - - // Mutable pointer to the field. - pub fn mut_extensions(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.extensions - } - - // Take field - pub fn take_extensions(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.extensions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "content_type", + |m: &HttpBody| { &m.content_type }, + |m: &mut HttpBody| { &mut m.content_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "data", + |m: &HttpBody| { &m.data }, + |m: &mut HttpBody| { &mut m.data }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "extensions", + |m: &HttpBody| { &m.extensions }, + |m: &mut HttpBody| { &mut m.extensions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "HttpBody", + fields, + oneofs, + ) } } impl ::protobuf::Message for HttpBody { + const NAME: &'static str = "HttpBody"; + fn is_initialized(&self) -> bool { - for v in &self.extensions { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.content_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.content_type = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; + 18 => { + self.data = is.read_bytes()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.extensions)?; + 26 => { + self.extensions.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -156,7 +110,7 @@ impl ::protobuf::Message for HttpBody { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.content_type.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.content_type); @@ -166,14 +120,14 @@ impl ::protobuf::Message for HttpBody { } for value in &self.extensions { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.content_type.is_empty() { os.write_string(1, &self.content_type)?; } @@ -181,96 +135,57 @@ impl ::protobuf::Message for HttpBody { os.write_bytes(2, &self.data)?; } for v in &self.extensions { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> HttpBody { HttpBody::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "content_type", - |m: &HttpBody| { &m.content_type }, - |m: &mut HttpBody| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &HttpBody| { &m.data }, - |m: &mut HttpBody| { &mut m.data }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "extensions", - |m: &HttpBody| { &m.extensions }, - |m: &mut HttpBody| { &mut m.extensions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpBody", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.content_type.clear(); + self.data.clear(); + self.extensions.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static HttpBody { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpBody::new) + static instance: HttpBody = HttpBody { + content_type: ::std::string::String::new(), + data: ::std::vec::Vec::new(), + extensions: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for HttpBody { - fn clear(&mut self) { - self.content_type.clear(); - self.data.clear(); - self.extensions.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for HttpBody { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("HttpBody").unwrap()).clone() } } -impl ::std::fmt::Debug for HttpBody { +impl ::std::fmt::Display for HttpBody { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for HttpBody { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -279,11 +194,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ contentType\x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\x124\n\nexte\ nsions\x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\nextensionsBh\n\ \x0ecom.google.apiB\rHttpBodyProtoP\x01Z;google.golang.org/genproto/goog\ - leapis/api/httpbody;httpbody\xf8\x01\x01\xa2\x02\x04GAPIJ\xb0\x13\n\x06\ - \x12\x04\x0e\0P\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + leapis/api/httpbody;httpbody\xf8\x01\x01\xa2\x02\x04GAPIJ\xa4\x13\n\x06\ + \x12\x04\x0f\0M\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Co\ + pyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apa\ + che\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20m\ + ay\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ @@ -292,14 +207,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0\ - \x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0R\ - \n\t\n\x02\x08\x0b\x12\x03\x15\0R\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\ - \x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\ - \x08\x12\x03\x17\0.\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\ - \x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\ - \"\n\xb2\n\n\x02\x04\0\x12\x04F\0P\x01\x1a\xa5\n\x20Message\x20that\x20r\ + \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ + \x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0#\n\x08\n\x01\x08\x12\x03\x15\0\ + \x1f\n\t\n\x02\x08\x1f\x12\x03\x15\0\x1f\n\x08\n\x01\x08\x12\x03\x16\0R\ + \n\t\n\x02\x08\x0b\x12\x03\x16\0R\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ + \x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0.\n\t\n\x02\x08\ + \x08\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\x12\ + \x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\x1a\0\ + \"\n\xa4\n\n\x02\x04\0\x12\x04C\0M\x01\x1a\x97\n\x20Message\x20that\x20r\ epresents\x20an\x20arbitrary\x20HTTP\x20body.\x20It\x20should\x20only\ \x20be\x20used\x20for\n\x20payload\x20formats\x20that\x20can't\x20be\x20\ represented\x20as\x20JSON,\x20such\x20as\x20raw\x20binary\x20or\n\x20an\ @@ -315,45 +230,63 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20unique\x20request\x20id.\n\x20\x20\x20\x20\x20\x20\x20string\x20requ\ est_id\x20=\x201;\n\n\x20\x20\x20\x20\x20\x20\x20//\x20The\x20raw\x20HTT\ P\x20body\x20is\x20bound\x20to\x20this\x20field.\n\x20\x20\x20\x20\x20\ - \x20\x20google.api.HttpBody\x20http_body\x20=\x202;\n\n\x20\x20\x20\x20\ + \x20\x20google.api.HttpBody\x20http_body\x20=\x202;\n\x20\x20\x20\x20\ \x20}\n\n\x20\x20\x20\x20\x20service\x20ResourceService\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20rpc\x20GetResource(GetResourceRequest)\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20returns\x20(google.api.HttpBody);\n\x20\x20\x20\ - \x20\x20\x20\x20rpc\x20UpdateResource(google.api.HttpBody)\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20returns\x20(google.protobuf.Empty);\n\n\x20\x20\ - \x20\x20\x20}\n\n\x20Example\x20with\x20streaming\x20methods:\n\n\x20\ - \x20\x20\x20\x20service\x20CaldavService\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20rpc\x20GetCalendar(stream\x20google.api.HttpBody)\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20returns\x20(stream\x20google.api.HttpBody);\n\x20\ - \x20\x20\x20\x20\x20\x20rpc\x20UpdateCalendar(stream\x20google.api.HttpB\ - ody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\x20(stream\x20google.a\ - pi.HttpBody);\n\n\x20\x20\x20\x20\x20}\n\n\x20Use\x20of\x20this\x20type\ - \x20only\x20changes\x20how\x20the\x20request\x20and\x20response\x20bodie\ - s\x20are\n\x20handled,\x20all\x20other\x20features\x20will\x20continue\ - \x20to\x20work\x20unchanged.\n\n\n\n\x03\x04\0\x01\x12\x03F\x08\x10\nZ\n\ - \x04\x04\0\x02\0\x12\x03H\x02\x1a\x1aM\x20The\x20HTTP\x20Content-Type\ - \x20header\x20value\x20specifying\x20the\x20content\x20type\x20of\x20the\ - \x20body.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\ - \0\x02\0\x01\x12\x03H\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03H\x18\x19\ - \n<\n\x04\x04\0\x02\x01\x12\x03K\x02\x11\x1a/\x20The\x20HTTP\x20request/\ - response\x20body\x20as\x20raw\x20binary.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03K\x02\x07\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03K\x08\x0c\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03K\x0f\x10\nm\n\x04\x04\0\x02\x02\x12\x03O\ - \x02.\x1a`\x20Application\x20specific\x20response\x20metadata.\x20Must\ - \x20be\x20set\x20in\x20the\x20first\x20response\n\x20for\x20streaming\ - \x20APIs.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03O\x02\n\n\x0c\n\x05\x04\ - \0\x02\x02\x06\x12\x03O\x0b\x1e\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03O\ - \x1f)\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03O,-b\x06proto3\ + \x20\x20\x20\x20\x20rpc\x20GetResource(GetResourceRequest)\x20returns\ + \x20(google.api.HttpBody);\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateRes\ + ource(google.api.HttpBody)\x20returns\n\x20\x20\x20\x20\x20\x20\x20(goog\ + le.protobuf.Empty);\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20with\x20str\ + eaming\x20methods:\n\n\x20\x20\x20\x20\x20service\x20CaldavService\x20{\ + \n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetCalendar(stream\x20google.api.Ht\ + tpBody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\x20(stream\x20googl\ + e.api.HttpBody);\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateCalendar(stre\ + am\x20google.api.HttpBody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\ + \x20(stream\x20google.api.HttpBody);\n\x20\x20\x20\x20\x20}\n\n\x20Use\ + \x20of\x20this\x20type\x20only\x20changes\x20how\x20the\x20request\x20an\ + d\x20response\x20bodies\x20are\n\x20handled,\x20all\x20other\x20features\ + \x20will\x20continue\x20to\x20work\x20unchanged.\n\n\n\n\x03\x04\0\x01\ + \x12\x03C\x08\x10\nZ\n\x04\x04\0\x02\0\x12\x03E\x02\x1a\x1aM\x20The\x20H\ + TTP\x20Content-Type\x20header\x20value\x20specifying\x20the\x20content\ + \x20type\x20of\x20the\x20body.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03E\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03E\t\x15\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03E\x18\x19\n<\n\x04\x04\0\x02\x01\x12\x03H\x02\x11\x1a/\ + \x20The\x20HTTP\x20request/response\x20body\x20as\x20raw\x20binary.\n\n\ + \x0c\n\x05\x04\0\x02\x01\x05\x12\x03H\x02\x07\n\x0c\n\x05\x04\0\x02\x01\ + \x01\x12\x03H\x08\x0c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03H\x0f\x10\nm\ + \n\x04\x04\0\x02\x02\x12\x03L\x02.\x1a`\x20Application\x20specific\x20re\ + sponse\x20metadata.\x20Must\x20be\x20set\x20in\x20the\x20first\x20respon\ + se\n\x20for\x20streaming\x20APIs.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\ + \x03L\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03L\x0b\x1e\n\x0c\n\x05\ + \x04\0\x02\x02\x01\x12\x03L\x1f)\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03L,\ + -b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(HttpBody::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/label.rs b/googleapis-raw/src/api/label.rs index 7122cc6..decc643 100644 --- a/googleapis-raw/src/api/label.rs +++ b/googleapis-raw/src/api/label.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,32 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/label.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// A description of a label. +// @@protoc_insertion_point(message:google.api.LabelDescriptor) +#[derive(PartialEq,Clone,Default,Debug)] pub struct LabelDescriptor { // message fields + /// The label key. + // @@protoc_insertion_point(field:google.api.LabelDescriptor.key) pub key: ::std::string::String, - pub value_type: LabelDescriptor_ValueType, + /// The type of data that can be assigned to the label. + // @@protoc_insertion_point(field:google.api.LabelDescriptor.value_type) + pub value_type: ::protobuf::EnumOrUnknown, + /// A human-readable description for the label. + // @@protoc_insertion_point(field:google.api.LabelDescriptor.description) pub description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.LabelDescriptor.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a LabelDescriptor { @@ -45,94 +55,53 @@ impl LabelDescriptor { ::std::default::Default::default() } - // string key = 1; - - - pub fn get_key(&self) -> &str { - &self.key - } - pub fn clear_key(&mut self) { - self.key.clear(); - } - - // Param is passed by value, moved - pub fn set_key(&mut self, v: ::std::string::String) { - self.key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key(&mut self) -> &mut ::std::string::String { - &mut self.key - } - - // Take field - pub fn take_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.key, ::std::string::String::new()) - } - - // .google.api.LabelDescriptor.ValueType value_type = 2; - - - pub fn get_value_type(&self) -> LabelDescriptor_ValueType { - self.value_type - } - pub fn clear_value_type(&mut self) { - self.value_type = LabelDescriptor_ValueType::STRING; - } - - // Param is passed by value, moved - pub fn set_value_type(&mut self, v: LabelDescriptor_ValueType) { - self.value_type = v; - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "key", + |m: &LabelDescriptor| { &m.key }, + |m: &mut LabelDescriptor| { &mut m.key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value_type", + |m: &LabelDescriptor| { &m.value_type }, + |m: &mut LabelDescriptor| { &mut m.value_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &LabelDescriptor| { &m.description }, + |m: &mut LabelDescriptor| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "LabelDescriptor", + fields, + oneofs, + ) } } impl ::protobuf::Message for LabelDescriptor { + const NAME: &'static str = "LabelDescriptor"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.key)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.key = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 2, &mut self.unknown_fields)? + 16 => { + self.value_type = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -141,170 +110,151 @@ impl ::protobuf::Message for LabelDescriptor { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.key.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.key); } - if self.value_type != LabelDescriptor_ValueType::STRING { - my_size += ::protobuf::rt::enum_size(2, self.value_type); + if self.value_type != ::protobuf::EnumOrUnknown::new(label_descriptor::ValueType::STRING) { + my_size += ::protobuf::rt::int32_size(2, self.value_type.value()); } if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.key.is_empty() { os.write_string(1, &self.key)?; } - if self.value_type != LabelDescriptor_ValueType::STRING { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.value_type))?; + if self.value_type != ::protobuf::EnumOrUnknown::new(label_descriptor::ValueType::STRING) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.value_type))?; } if !self.description.is_empty() { os.write_string(3, &self.description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> LabelDescriptor { LabelDescriptor::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "key", - |m: &LabelDescriptor| { &m.key }, - |m: &mut LabelDescriptor| { &mut m.key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "value_type", - |m: &LabelDescriptor| { &m.value_type }, - |m: &mut LabelDescriptor| { &mut m.value_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &LabelDescriptor| { &m.description }, - |m: &mut LabelDescriptor| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LabelDescriptor", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.key.clear(); + self.value_type = ::protobuf::EnumOrUnknown::new(label_descriptor::ValueType::STRING); + self.description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static LabelDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LabelDescriptor::new) + static instance: LabelDescriptor = LabelDescriptor { + key: ::std::string::String::new(), + value_type: ::protobuf::EnumOrUnknown::from_i32(0), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for LabelDescriptor { - fn clear(&mut self) { - self.key.clear(); - self.value_type = LabelDescriptor_ValueType::STRING; - self.description.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for LabelDescriptor { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("LabelDescriptor").unwrap()).clone() } } -impl ::std::fmt::Debug for LabelDescriptor { +impl ::std::fmt::Display for LabelDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for LabelDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum LabelDescriptor_ValueType { - STRING = 0, - BOOL = 1, - INT64 = 2, -} +/// Nested message and enums of message `LabelDescriptor` +pub mod label_descriptor { + /// Value types that can be used as label values. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.LabelDescriptor.ValueType) + pub enum ValueType { + // @@protoc_insertion_point(enum_value:google.api.LabelDescriptor.ValueType.STRING) + STRING = 0, + // @@protoc_insertion_point(enum_value:google.api.LabelDescriptor.ValueType.BOOL) + BOOL = 1, + // @@protoc_insertion_point(enum_value:google.api.LabelDescriptor.ValueType.INT64) + INT64 = 2, + } + + impl ::protobuf::Enum for ValueType { + const NAME: &'static str = "ValueType"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for LabelDescriptor_ValueType { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ValueType::STRING), + 1 => ::std::option::Option::Some(ValueType::BOOL), + 2 => ::std::option::Option::Some(ValueType::INT64), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(LabelDescriptor_ValueType::STRING), - 1 => ::std::option::Option::Some(LabelDescriptor_ValueType::BOOL), - 2 => ::std::option::Option::Some(LabelDescriptor_ValueType::INT64), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STRING" => ::std::option::Option::Some(ValueType::STRING), + "BOOL" => ::std::option::Option::Some(ValueType::BOOL), + "INT64" => ::std::option::Option::Some(ValueType::INT64), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [LabelDescriptor_ValueType] = &[ - LabelDescriptor_ValueType::STRING, - LabelDescriptor_ValueType::BOOL, - LabelDescriptor_ValueType::INT64, + const VALUES: &'static [ValueType] = &[ + ValueType::STRING, + ValueType::BOOL, + ValueType::INT64, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("LabelDescriptor.ValueType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for ValueType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("LabelDescriptor.ValueType").unwrap()).clone() + } -impl ::std::marker::Copy for LabelDescriptor_ValueType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for LabelDescriptor_ValueType { - fn default() -> Self { - LabelDescriptor_ValueType::STRING + impl ::std::default::Default for ValueType { + fn default() -> Self { + ValueType::STRING + } } -} -impl ::protobuf::reflect::ProtobufValue for LabelDescriptor_ValueType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ValueType { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("LabelDescriptor.ValueType") + } } } @@ -315,9 +265,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\",\n\tValueType\ \x12\n\n\x06STRING\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT64\x10\ \x02B_\n\x0ecom.google.apiB\nLabelProtoP\x01Z5google.golang.org/genproto\ - /googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIJ\xe4\n\n\x06\x12\ - \x04\x0e\0/\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyri\ - ght\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\ + /googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIJ\xe6\n\n\x06\x12\ + \x04\x0f\00\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyri\ + ght\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\ \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ @@ -328,46 +278,64 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\ - \n\x08\n\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\ - \x08\n\x01\x08\x12\x03\x13\0L\n\t\n\x02\x08\x0b\x12\x03\x13\0L\n\x08\n\ - \x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\ - \x12\x03\x15\0+\n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\x12\x03\ - \x16\0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\ - \n\t\n\x02\x08$\x12\x03\x17\0\"\n'\n\x02\x04\0\x12\x04\x1a\0/\x01\x1a\ - \x1b\x20A\x20description\x20of\x20a\x20label.\n\n\n\n\x03\x04\0\x01\x12\ - \x03\x1a\x08\x17\n=\n\x04\x04\0\x04\0\x12\x04\x1c\x02%\x03\x1a/\x20Value\ - \x20types\x20that\x20can\x20be\x20used\x20as\x20label\x20values.\n\n\x0c\ - \n\x05\x04\0\x04\0\x01\x12\x03\x1c\x07\x10\n?\n\x06\x04\0\x04\0\x02\0\ - \x12\x03\x1e\x04\x0f\x1a0\x20A\x20variable-length\x20string.\x20This\x20\ - is\x20the\x20default.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1e\ - \x04\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x1e\r\x0e\n(\n\x06\x04\ - \0\x04\0\x02\x01\x12\x03!\x04\r\x1a\x19\x20Boolean;\x20true\x20or\x20fal\ - se.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03!\x04\x08\n\x0e\n\x07\ - \x04\0\x04\0\x02\x01\x02\x12\x03!\x0b\x0c\n)\n\x06\x04\0\x04\0\x02\x02\ - \x12\x03$\x04\x0e\x1a\x1a\x20A\x2064-bit\x20signed\x20integer.\n\n\x0e\n\ - \x07\x04\0\x04\0\x02\x02\x01\x12\x03$\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\ - \x02\x02\x12\x03$\x0c\r\n\x1d\n\x04\x04\0\x02\0\x12\x03(\x02\x11\x1a\x10\ - \x20The\x20label\x20key.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\ - \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03(\t\x0c\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03(\x0f\x10\nB\n\x04\x04\0\x02\x01\x12\x03+\x02\x1b\x1a5\x20The\ - \x20type\x20of\x20data\x20that\x20can\x20be\x20assigned\x20to\x20the\x20\ - label.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03+\x02\x0b\n\x0c\n\x05\x04\ - \0\x02\x01\x01\x12\x03+\x0c\x16\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03+\ - \x19\x1a\n:\n\x04\x04\0\x02\x02\x12\x03.\x02\x19\x1a-\x20A\x20human-read\ - able\x20description\x20for\x20the\x20label.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x05\x12\x03.\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03.\t\x14\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03.\x17\x18b\x06proto3\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x13\n\x08\n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\ + \x1f\n\x08\n\x01\x08\x12\x03\x14\0L\n\t\n\x02\x08\x0b\x12\x03\x14\0L\n\ + \x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\ + \x01\x08\x12\x03\x16\0+\n\t\n\x02\x08\x08\x12\x03\x16\0+\n\x08\n\x01\x08\ + \x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\ + \x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n'\n\x02\x04\0\x12\x04\x1b\00\ + \x01\x1a\x1b\x20A\x20description\x20of\x20a\x20label.\n\n\n\n\x03\x04\0\ + \x01\x12\x03\x1b\x08\x17\n=\n\x04\x04\0\x04\0\x12\x04\x1d\x02&\x03\x1a/\ + \x20Value\x20types\x20that\x20can\x20be\x20used\x20as\x20label\x20values\ + .\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\x1d\x07\x10\n?\n\x06\x04\0\x04\0\ + \x02\0\x12\x03\x1f\x04\x0f\x1a0\x20A\x20variable-length\x20string.\x20Th\ + is\x20is\x20the\x20default.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\ + \x1f\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x1f\r\x0e\n(\n\x06\ + \x04\0\x04\0\x02\x01\x12\x03\"\x04\r\x1a\x19\x20Boolean;\x20true\x20or\ + \x20false.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03\"\x04\x08\n\x0e\ + \n\x07\x04\0\x04\0\x02\x01\x02\x12\x03\"\x0b\x0c\n)\n\x06\x04\0\x04\0\ + \x02\x02\x12\x03%\x04\x0e\x1a\x1a\x20A\x2064-bit\x20signed\x20integer.\n\ + \n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03%\x04\t\n\x0e\n\x07\x04\0\ + \x04\0\x02\x02\x02\x12\x03%\x0c\r\n\x1d\n\x04\x04\0\x02\0\x12\x03)\x02\ + \x11\x1a\x10\x20The\x20label\x20key.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ + \x03)\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03)\t\x0c\n\x0c\n\x05\x04\ + \0\x02\0\x03\x12\x03)\x0f\x10\nB\n\x04\x04\0\x02\x01\x12\x03,\x02\x1b\ + \x1a5\x20The\x20type\x20of\x20data\x20that\x20can\x20be\x20assigned\x20t\ + o\x20the\x20label.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03,\x02\x0b\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x0c\x16\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03,\x19\x1a\n:\n\x04\x04\0\x02\x02\x12\x03/\x02\x19\x1a-\x20A\ + \x20human-readable\x20description\x20for\x20the\x20label.\n\n\x0c\n\x05\ + \x04\0\x02\x02\x05\x12\x03/\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ + \x03/\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03/\x17\x18b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(LabelDescriptor::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(label_descriptor::ValueType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/launch_stage.rs b/googleapis-raw/src/api/launch_stage.rs index ceb38cd..0d32953 100644 --- a/googleapis-raw/src/api/launch_stage.rs +++ b/googleapis-raw/src/api/launch_stage.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,37 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/launch_stage.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// The launch stage as defined by [Google Cloud Platform +/// Launch Stages](http://cloud.google.com/terms/launch-stages). +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.LaunchStage) pub enum LaunchStage { + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED) LAUNCH_STAGE_UNSPECIFIED = 0, - UNIMPLEMENTED = 6, - PRELAUNCH = 7, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.EARLY_ACCESS) EARLY_ACCESS = 1, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.ALPHA) ALPHA = 2, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.BETA) BETA = 3, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.GA) GA = 4, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.DEPRECATED) DEPRECATED = 5, } -impl ::protobuf::ProtobufEnum for LaunchStage { +impl ::protobuf::Enum for LaunchStage { + const NAME: &'static str = "LaunchStage"; + fn value(&self) -> i32 { *self as i32 } @@ -43,8 +54,6 @@ impl ::protobuf::ProtobufEnum for LaunchStage { fn from_i32(value: i32) -> ::std::option::Option { match value { 0 => ::std::option::Option::Some(LaunchStage::LAUNCH_STAGE_UNSPECIFIED), - 6 => ::std::option::Option::Some(LaunchStage::UNIMPLEMENTED), - 7 => ::std::option::Option::Some(LaunchStage::PRELAUNCH), 1 => ::std::option::Option::Some(LaunchStage::EARLY_ACCESS), 2 => ::std::option::Option::Some(LaunchStage::ALPHA), 3 => ::std::option::Option::Some(LaunchStage::BETA), @@ -54,29 +63,38 @@ impl ::protobuf::ProtobufEnum for LaunchStage { } } - fn values() -> &'static [Self] { - static values: &'static [LaunchStage] = &[ - LaunchStage::LAUNCH_STAGE_UNSPECIFIED, - LaunchStage::UNIMPLEMENTED, - LaunchStage::PRELAUNCH, - LaunchStage::EARLY_ACCESS, - LaunchStage::ALPHA, - LaunchStage::BETA, - LaunchStage::GA, - LaunchStage::DEPRECATED, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "LAUNCH_STAGE_UNSPECIFIED" => ::std::option::Option::Some(LaunchStage::LAUNCH_STAGE_UNSPECIFIED), + "EARLY_ACCESS" => ::std::option::Option::Some(LaunchStage::EARLY_ACCESS), + "ALPHA" => ::std::option::Option::Some(LaunchStage::ALPHA), + "BETA" => ::std::option::Option::Some(LaunchStage::BETA), + "GA" => ::std::option::Option::Some(LaunchStage::GA), + "DEPRECATED" => ::std::option::Option::Some(LaunchStage::DEPRECATED), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("LaunchStage", file_descriptor_proto()) - }) - } + const VALUES: &'static [LaunchStage] = &[ + LaunchStage::LAUNCH_STAGE_UNSPECIFIED, + LaunchStage::EARLY_ACCESS, + LaunchStage::ALPHA, + LaunchStage::BETA, + LaunchStage::GA, + LaunchStage::DEPRECATED, + ]; } -impl ::std::marker::Copy for LaunchStage { +impl ::protobuf::EnumFull for LaunchStage { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("LaunchStage").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for LaunchStage { @@ -85,105 +103,115 @@ impl ::std::default::Default for LaunchStage { } } -impl ::protobuf::reflect::ProtobufValue for LaunchStage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl LaunchStage { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("LaunchStage") } } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*\x8c\x01\n\x0bLaunch\ - Stage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\0\x12\x11\n\rUNIMPLEMENT\ - ED\x10\x06\x12\r\n\tPRELAUNCH\x10\x07\x12\x10\n\x0cEARLY_ACCESS\x10\x01\ - \x12\t\n\x05ALPHA\x10\x02\x12\x08\n\x04BETA\x10\x03\x12\x06\n\x02GA\x10\ - \x04\x12\x0e\n\nDEPRECATED\x10\x05BZ\n\x0ecom.google.apiB\x10LaunchStage\ - ProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xa2\x02\x04GAP\ - IJ\xc2\x17\n\x06\x12\x04\x0e\0G\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20u\ - nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ - \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ - mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ - py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ - e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0D\n\t\n\x02\x08\x0b\ - \x12\x03\x12\0D\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\ - \x13\0\"\n\x08\n\x01\x08\x12\x03\x14\01\n\t\n\x02\x08\x08\x12\x03\x14\01\ - \n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ - \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\x82\x01\n\x02\ - \x05\0\x12\x04\x1a\0G\x01\x1av\x20The\x20launch\x20stage\x20as\x20define\ - d\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\x20Stages](https://c\ - loud.google.com/terms/launch-stages).\n\n\n\n\x03\x05\0\x01\x12\x03\x1a\ - \x05\x10\n-\n\x04\x05\0\x02\0\x12\x03\x1c\x02\x1f\x1a\x20\x20Do\x20not\ - \x20use\x20this\x20default\x20value.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ - \x03\x1c\x02\x1a\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1c\x1d\x1e\nH\n\ - \x04\x05\0\x02\x01\x12\x03\x1f\x02\x14\x1a;\x20The\x20feature\x20is\x20n\ - ot\x20yet\x20implemented.\x20Users\x20can\x20not\x20use\x20it.\n\n\x0c\n\ - \x05\x05\0\x02\x01\x01\x12\x03\x1f\x02\x0f\n\x0c\n\x05\x05\0\x02\x01\x02\ - \x12\x03\x1f\x12\x13\nX\n\x04\x05\0\x02\x02\x12\x03\"\x02\x10\x1aK\x20Pr\ - elaunch\x20features\x20are\x20hidden\x20from\x20users\x20and\x20are\x20o\ - nly\x20visible\x20internally.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\"\ - \x02\x0b\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\"\x0e\x0f\n\xc5\x02\n\x04\ - \x05\0\x02\x03\x12\x03)\x02\x13\x1a\xb7\x02\x20Early\x20Access\x20featur\ - es\x20are\x20limited\x20to\x20a\x20closed\x20group\x20of\x20testers.\x20\ - To\x20use\n\x20these\x20features,\x20you\x20must\x20sign\x20up\x20in\x20\ - advance\x20and\x20sign\x20a\x20Trusted\x20Tester\n\x20agreement\x20(whic\ - h\x20includes\x20confidentiality\x20provisions).\x20These\x20features\ - \x20may\n\x20be\x20unstable,\x20changed\x20in\x20backward-incompatible\ - \x20ways,\x20and\x20are\x20not\n\x20guaranteed\x20to\x20be\x20released.\ - \n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03)\x02\x0e\n\x0c\n\x05\x05\0\x02\ - \x03\x02\x12\x03)\x11\x12\n\xeb\x04\n\x04\x05\0\x02\x04\x12\x034\x02\x0c\ - \x1a\xdd\x04\x20Alpha\x20is\x20a\x20limited\x20availability\x20test\x20f\ - or\x20releases\x20before\x20they\x20are\x20cleared\n\x20for\x20widesprea\ - d\x20use.\x20By\x20Alpha,\x20all\x20significant\x20design\x20issues\x20a\ - re\x20resolved\n\x20and\x20we\x20are\x20in\x20the\x20process\x20of\x20ve\ - rifying\x20functionality.\x20Alpha\x20customers\n\x20need\x20to\x20apply\ - \x20for\x20access,\x20agree\x20to\x20applicable\x20terms,\x20and\x20have\ - \x20their\n\x20projects\x20allowlisted.\x20Alpha\x20releases\x20don't\ - \x20have\x20to\x20be\x20feature\x20complete,\n\x20no\x20SLAs\x20are\x20p\ - rovided,\x20and\x20there\x20are\x20no\x20technical\x20support\x20obligat\ - ions,\x20but\n\x20they\x20will\x20be\x20far\x20enough\x20along\x20that\ - \x20customers\x20can\x20actually\x20use\x20them\x20in\n\x20test\x20envir\ - onments\x20or\x20for\x20limited-use\x20tests\x20--\x20just\x20like\x20th\ - ey\x20would\x20in\n\x20normal\x20production\x20cases.\n\n\x0c\n\x05\x05\ - \0\x02\x04\x01\x12\x034\x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x034\n\ - \x0b\n\xc9\x02\n\x04\x05\0\x02\x05\x12\x03;\x02\x0b\x1a\xbb\x02\x20Beta\ - \x20is\x20the\x20point\x20at\x20which\x20we\x20are\x20ready\x20to\x20ope\ - n\x20a\x20release\x20for\x20any\n\x20customer\x20to\x20use.\x20There\x20\ - are\x20no\x20SLA\x20or\x20technical\x20support\x20obligations\x20in\x20a\ - \n\x20Beta\x20release.\x20Products\x20will\x20be\x20complete\x20from\x20\ - a\x20feature\x20perspective,\x20but\n\x20may\x20have\x20some\x20open\x20\ - outstanding\x20issues.\x20Beta\x20releases\x20are\x20suitable\x20for\n\ - \x20limited\x20production\x20use\x20cases.\n\n\x0c\n\x05\x05\0\x02\x05\ - \x01\x12\x03;\x02\x06\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03;\t\n\nx\n\ - \x04\x05\0\x02\x06\x12\x03?\x02\t\x1ak\x20GA\x20features\x20are\x20open\ - \x20to\x20all\x20developers\x20and\x20are\x20considered\x20stable\x20and\ - \n\x20fully\x20qualified\x20for\x20production\x20use.\n\n\x0c\n\x05\x05\ - \0\x02\x06\x01\x12\x03?\x02\x04\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03?\ - \x07\x08\n\xc5\x02\n\x04\x05\0\x02\x07\x12\x03F\x02\x11\x1a\xb7\x02\x20D\ - eprecated\x20features\x20are\x20scheduled\x20to\x20be\x20shut\x20down\ - \x20and\x20removed.\x20For\x20more\n\x20information,\x20see\x20the\x20\"\ - Deprecation\x20Policy\"\x20section\x20of\x20our\x20[Terms\x20of\n\x20Ser\ - vice](https://cloud.google.com/terms/)\n\x20and\x20the\x20[Google\x20Clo\ - ud\x20Platform\x20Subject\x20to\x20the\x20Deprecation\n\x20Policy](https\ - ://cloud.google.com/terms/deprecation)\x20documentation.\n\n\x0c\n\x05\ - \x05\0\x02\x07\x01\x12\x03F\x02\x0c\n\x0c\n\x05\x05\0\x02\x07\x02\x12\ - \x03F\x0f\x10b\x06proto3\ + \n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*j\n\x0bLaunchStage\ + \x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\0\x12\x10\n\x0cEARLY_ACCESS\ + \x10\x01\x12\t\n\x05ALPHA\x10\x02\x12\x08\n\x04BETA\x10\x03\x12\x06\n\ + \x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05BZ\n\x0ecom.google.apiB\x10L\ + aunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xa2\ + \x02\x04GAPIJ\xed\x15\n\x06\x12\x04\x0f\0B\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0D\n\ + \t\n\x02\x08\x0b\x12\x03\x13\0D\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ + \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\01\n\t\n\x02\x08\ + \x08\x12\x03\x15\01\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ + \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ + \"\n\x81\x01\n\x02\x05\0\x12\x04\x1b\0B\x01\x1au\x20The\x20launch\x20sta\ + ge\x20as\x20defined\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\ + \x20Stages](http://cloud.google.com/terms/launch-stages).\n\n\n\n\x03\ + \x05\0\x01\x12\x03\x1b\x05\x10\n-\n\x04\x05\0\x02\0\x12\x03\x1d\x02\x1f\ + \x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\x0c\n\x05\ + \x05\0\x02\0\x01\x12\x03\x1d\x02\x1a\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\ + \x1d\x1d\x1e\n\xc5\x02\n\x04\x05\0\x02\x01\x12\x03$\x02\x13\x1a\xb7\x02\ + \x20Early\x20Access\x20features\x20are\x20limited\x20to\x20a\x20closed\ + \x20group\x20of\x20testers.\x20To\x20use\n\x20these\x20features,\x20you\ + \x20must\x20sign\x20up\x20in\x20advance\x20and\x20sign\x20a\x20Trusted\ + \x20Tester\n\x20agreement\x20(which\x20includes\x20confidentiality\x20pr\ + ovisions).\x20These\x20features\x20may\n\x20be\x20unstable,\x20changed\ + \x20in\x20backward-incompatible\x20ways,\x20and\x20are\x20not\n\x20guara\ + nteed\x20to\x20be\x20released.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03$\ + \x02\x0e\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03$\x11\x12\n\xed\x04\n\x04\ + \x05\0\x02\x02\x12\x03/\x02\x0c\x1a\xdf\x04\x20Alpha\x20is\x20a\x20limit\ + ed\x20availability\x20test\x20for\x20releases\x20before\x20they\x20are\ + \x20cleared\n\x20for\x20widespread\x20use.\x20By\x20Alpha,\x20all\x20sig\ + nificant\x20design\x20issues\x20are\x20resolved\n\x20and\x20we\x20are\ + \x20in\x20the\x20process\x20of\x20verifying\x20functionality.\x20Alpha\ + \x20customers\n\x20need\x20to\x20apply\x20for\x20access,\x20agree\x20to\ + \x20applicable\x20terms,\x20and\x20have\x20their\n\x20projects\x20whitel\ + isted.\x20Alpha\x20releases\x20don\xe2\x80\x99t\x20have\x20to\x20be\x20f\ + eature\x20complete,\n\x20no\x20SLAs\x20are\x20provided,\x20and\x20there\ + \x20are\x20no\x20technical\x20support\x20obligations,\x20but\n\x20they\ + \x20will\x20be\x20far\x20enough\x20along\x20that\x20customers\x20can\x20\ + actually\x20use\x20them\x20in\n\x20test\x20environments\x20or\x20for\x20\ + limited-use\x20tests\x20--\x20just\x20like\x20they\x20would\x20in\n\x20n\ + ormal\x20production\x20cases.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03/\ + \x02\x07\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03/\n\x0b\n\xc9\x02\n\x04\ + \x05\0\x02\x03\x12\x036\x02\x0b\x1a\xbb\x02\x20Beta\x20is\x20the\x20poin\ + t\x20at\x20which\x20we\x20are\x20ready\x20to\x20open\x20a\x20release\x20\ + for\x20any\n\x20customer\x20to\x20use.\x20There\x20are\x20no\x20SLA\x20o\ + r\x20technical\x20support\x20obligations\x20in\x20a\n\x20Beta\x20release\ + .\x20Products\x20will\x20be\x20complete\x20from\x20a\x20feature\x20persp\ + ective,\x20but\n\x20may\x20have\x20some\x20open\x20outstanding\x20issues\ + .\x20Beta\x20releases\x20are\x20suitable\x20for\n\x20limited\x20producti\ + on\x20use\x20cases.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x036\x02\x06\n\ + \x0c\n\x05\x05\0\x02\x03\x02\x12\x036\t\n\nx\n\x04\x05\0\x02\x04\x12\x03\ + :\x02\t\x1ak\x20GA\x20features\x20are\x20open\x20to\x20all\x20developers\ + \x20and\x20are\x20considered\x20stable\x20and\n\x20fully\x20qualified\ + \x20for\x20production\x20use.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03:\ + \x02\x04\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03:\x07\x08\n\xc9\x02\n\x04\ + \x05\0\x02\x05\x12\x03A\x02\x11\x1a\xbb\x02\x20Deprecated\x20features\ + \x20are\x20scheduled\x20to\x20be\x20shut\x20down\x20and\x20removed.\x20F\ + or\x20more\n\x20information,\x20see\x20the\x20\xe2\x80\x9cDeprecation\ + \x20Policy\xe2\x80\x9d\x20section\x20of\x20our\x20[Terms\x20of\n\x20Serv\ + ice](https://cloud.google.com/terms/)\n\x20and\x20the\x20[Google\x20Clou\ + d\x20Platform\x20Subject\x20to\x20the\x20Deprecation\n\x20Policy](https:\ + //cloud.google.com/terms/deprecation)\x20documentation.\n\n\x0c\n\x05\ + \x05\0\x02\x05\x01\x12\x03A\x02\x0c\n\x0c\n\x05\x05\0\x02\x05\x02\x12\ + \x03A\x0f\x10b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(LaunchStage::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/log.rs b/googleapis-raw/src/api/log.rs index 88bfc94..bf2b284 100644 --- a/googleapis-raw/src/api/log.rs +++ b/googleapis-raw/src/api/log.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,41 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/log.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.LogDescriptor) +#[derive(PartialEq,Clone,Default,Debug)] pub struct LogDescriptor { // message fields + /// The name of the log. It must be less than 512 characters long and can + /// include the following characters: upper- and lower-case alphanumeric + /// characters [A-Za-z0-9], and punctuation characters including + /// slash, underscore, hyphen, period [/_-.]. + // @@protoc_insertion_point(field:google.api.LogDescriptor.name) pub name: ::std::string::String, - pub labels: ::protobuf::RepeatedField, + /// The set of labels that are available to describe a specific log entry. + /// Runtime requests that contain labels not specified here are + /// considered invalid. + // @@protoc_insertion_point(field:google.api.LogDescriptor.labels) + pub labels: ::std::vec::Vec, + /// A human-readable description of this log. This information appears in + /// the documentation and can contain details. + // @@protoc_insertion_point(field:google.api.LogDescriptor.description) pub description: ::std::string::String, + /// The human-readable name for this log. This information appears on + /// the user interface and should be concise. + // @@protoc_insertion_point(field:google.api.LogDescriptor.display_name) pub display_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.LogDescriptor.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a LogDescriptor { @@ -46,138 +64,61 @@ impl LogDescriptor { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.api.LabelDescriptor labels = 2; - - - pub fn get_labels(&self) -> &[super::label::LabelDescriptor] { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::protobuf::RepeatedField) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string display_name = 4; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &LogDescriptor| { &m.name }, + |m: &mut LogDescriptor| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "labels", + |m: &LogDescriptor| { &m.labels }, + |m: &mut LogDescriptor| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &LogDescriptor| { &m.description }, + |m: &mut LogDescriptor| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &LogDescriptor| { &m.display_name }, + |m: &mut LogDescriptor| { &mut m.display_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "LogDescriptor", + fields, + oneofs, + ) } } impl ::protobuf::Message for LogDescriptor { + const NAME: &'static str = "LogDescriptor"; + fn is_initialized(&self) -> bool { - for v in &self.labels { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + 18 => { + self.labels.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + 34 => { + self.display_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -186,14 +127,14 @@ impl ::protobuf::Message for LogDescriptor { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } for value in &self.labels { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.description); @@ -201,19 +142,17 @@ impl ::protobuf::Message for LogDescriptor { if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.display_name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } for v in &self.labels { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if !self.description.is_empty() { os.write_string(3, &self.description)?; @@ -221,98 +160,57 @@ impl ::protobuf::Message for LogDescriptor { if !self.display_name.is_empty() { os.write_string(4, &self.display_name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> LogDescriptor { LogDescriptor::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &LogDescriptor| { &m.name }, - |m: &mut LogDescriptor| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "labels", - |m: &LogDescriptor| { &m.labels }, - |m: &mut LogDescriptor| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &LogDescriptor| { &m.description }, - |m: &mut LogDescriptor| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &LogDescriptor| { &m.display_name }, - |m: &mut LogDescriptor| { &mut m.display_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LogDescriptor", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.labels.clear(); + self.description.clear(); + self.display_name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static LogDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LogDescriptor::new) + static instance: LogDescriptor = LogDescriptor { + name: ::std::string::String::new(), + labels: ::std::vec::Vec::new(), + description: ::std::string::String::new(), + display_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for LogDescriptor { - fn clear(&mut self) { - self.name.clear(); - self.labels.clear(); - self.description.clear(); - self.display_name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for LogDescriptor { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("LogDescriptor").unwrap()).clone() } } -impl ::std::fmt::Debug for LogDescriptor { +impl ::std::fmt::Display for LogDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for LogDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -322,9 +220,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x06labels\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\ \x12!\n\x0cdisplay_name\x18\x04\x20\x01(\tR\x0bdisplayNameBj\n\x0ecom.go\ ogle.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/se\ - rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xfe\x0e\n\x06\x12\x04\x0e\05\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\x80\x0f\n\x06\x12\x04\x0f\06\ + \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ + \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ @@ -335,13 +233,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\ - \x02\x03\0\x12\x03\x12\0\x20\n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\ - \x08\x0b\x12\x03\x14\0\\\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\ - \x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0)\n\t\n\x02\x08\x08\x12\ - \x03\x16\0)\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\ - \0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\xc2\ - \x02\n\x02\x04\0\x12\x04\"\05\x01\x1a\xb5\x02\x20A\x20description\x20of\ + \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\ + \x02\x03\0\x12\x03\x13\0\x20\n\x08\n\x01\x08\x12\x03\x15\0\\\n\t\n\x02\ + \x08\x0b\x12\x03\x15\0\\\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ + \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0)\n\t\n\x02\x08\x08\x12\ + \x03\x17\0)\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ + \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\xc2\ + \x02\n\x02\x04\0\x12\x04#\06\x01\x1a\xb5\x02\x20A\x20description\x20of\ \x20a\x20log\x20type.\x20Example\x20in\x20YAML\x20format:\n\n\x20\x20\ \x20\x20\x20-\x20name:\x20library.googleapis.com/activity_history\n\x20\ \x20\x20\x20\x20\x20\x20description:\x20The\x20history\x20of\x20borrowin\ @@ -349,41 +247,59 @@ static file_descriptor_proto_data: &'static [u8] = b"\ display_name:\x20Activity\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ \x20\x20\x20\x20\x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20\x20\ \x20\x20\x20description:\x20Identifier\x20of\x20a\x20library\x20customer\ - \n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x15\n\x84\x02\n\x04\x04\0\x02\0\x12\ - \x03'\x02\x12\x1a\xf6\x01\x20The\x20name\x20of\x20the\x20log.\x20It\x20m\ + \n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x15\n\x84\x02\n\x04\x04\0\x02\0\x12\ + \x03(\x02\x12\x1a\xf6\x01\x20The\x20name\x20of\x20the\x20log.\x20It\x20m\ ust\x20be\x20less\x20than\x20512\x20characters\x20long\x20and\x20can\n\ \x20include\x20the\x20following\x20characters:\x20upper-\x20and\x20lower\ -case\x20alphanumeric\n\x20characters\x20[A-Za-z0-9],\x20and\x20punctuat\ ion\x20characters\x20including\n\x20slash,\x20underscore,\x20hyphen,\x20\ - period\x20[/_-.].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03'\x02\x08\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03'\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03'\ - \x10\x11\n\xa8\x01\n\x04\x04\0\x02\x01\x12\x03,\x02&\x1a\x9a\x01\x20The\ + period\x20[/_-.].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\n\x0c\n\ + \x05\x04\0\x02\0\x01\x12\x03(\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03(\ + \x10\x11\n\xa8\x01\n\x04\x04\0\x02\x01\x12\x03-\x02&\x1a\x9a\x01\x20The\ \x20set\x20of\x20labels\x20that\x20are\x20available\x20to\x20describe\ \x20a\x20specific\x20log\x20entry.\n\x20Runtime\x20requests\x20that\x20c\ ontain\x20labels\x20not\x20specified\x20here\x20are\n\x20considered\x20i\ - nvalid.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03,\x02\n\n\x0c\n\x05\x04\0\ - \x02\x01\x06\x12\x03,\x0b\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x1b\ - !\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03,$%\n\x80\x01\n\x04\x04\0\x02\x02\ - \x12\x030\x02\x19\x1as\x20A\x20human-readable\x20description\x20of\x20th\ + nvalid.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03-\x02\n\n\x0c\n\x05\x04\0\ + \x02\x01\x06\x12\x03-\x0b\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03-\x1b\ + !\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-$%\n\x80\x01\n\x04\x04\0\x02\x02\ + \x12\x031\x02\x19\x1as\x20A\x20human-readable\x20description\x20of\x20th\ is\x20log.\x20This\x20information\x20appears\x20in\n\x20the\x20documenta\ tion\x20and\x20can\x20contain\x20details.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x05\x12\x030\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x030\t\x14\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x030\x17\x18\n{\n\x04\x04\0\x02\x03\x12\x03\ - 4\x02\x1a\x1an\x20The\x20human-readable\x20name\x20for\x20this\x20log.\ + \x05\x12\x031\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x031\t\x14\n\x0c\ + \n\x05\x04\0\x02\x02\x03\x12\x031\x17\x18\n{\n\x04\x04\0\x02\x03\x12\x03\ + 5\x02\x1a\x1an\x20The\x20human-readable\x20name\x20for\x20this\x20log.\ \x20This\x20information\x20appears\x20on\n\x20the\x20user\x20interface\ \x20and\x20should\x20be\x20concise.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\ - \x034\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x034\t\x15\n\x0c\n\x05\ - \x04\0\x02\x03\x03\x12\x034\x18\x19b\x06proto3\ + \x035\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x035\t\x15\n\x0c\n\x05\ + \x04\0\x02\x03\x03\x12\x035\x18\x19b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::label::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(LogDescriptor::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/logging.rs b/googleapis-raw/src/api/logging.rs index 81da42d..6565f19 100644 --- a/googleapis-raw/src/api/logging.rs +++ b/googleapis-raw/src/api/logging.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,34 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/logging.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Logging) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Logging { // message fields - pub producer_destinations: ::protobuf::RepeatedField, - pub consumer_destinations: ::protobuf::RepeatedField, + /// Logging configurations for sending logs to the producer project. + /// There can be multiple producer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one producer destination. + // @@protoc_insertion_point(field:google.api.Logging.producer_destinations) + pub producer_destinations: ::std::vec::Vec, + /// Logging configurations for sending logs to the consumer project. + /// There can be multiple consumer destinations, each one must have a + /// different monitored resource type. A log can be used in at most + /// one consumer destination. + // @@protoc_insertion_point(field:google.api.Logging.consumer_destinations) + pub consumer_destinations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Logging.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Logging { @@ -44,84 +57,45 @@ impl Logging { ::std::default::Default::default() } - // repeated .google.api.Logging.LoggingDestination producer_destinations = 1; - - - pub fn get_producer_destinations(&self) -> &[Logging_LoggingDestination] { - &self.producer_destinations - } - pub fn clear_producer_destinations(&mut self) { - self.producer_destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_destinations(&mut self, v: ::protobuf::RepeatedField) { - self.producer_destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_producer_destinations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.producer_destinations - } - - // Take field - pub fn take_producer_destinations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.producer_destinations, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; - - - pub fn get_consumer_destinations(&self) -> &[Logging_LoggingDestination] { - &self.consumer_destinations - } - pub fn clear_consumer_destinations(&mut self) { - self.consumer_destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_destinations(&mut self, v: ::protobuf::RepeatedField) { - self.consumer_destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_consumer_destinations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.consumer_destinations - } - - // Take field - pub fn take_consumer_destinations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.consumer_destinations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "producer_destinations", + |m: &Logging| { &m.producer_destinations }, + |m: &mut Logging| { &mut m.producer_destinations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "consumer_destinations", + |m: &Logging| { &m.consumer_destinations }, + |m: &mut Logging| { &mut m.consumer_destinations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Logging", + fields, + oneofs, + ) } } impl ::protobuf::Message for Logging { + const NAME: &'static str = "Logging"; + fn is_initialized(&self) -> bool { - for v in &self.producer_destinations { - if !v.is_initialized() { - return false; - } - }; - for v in &self.consumer_destinations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.producer_destinations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.producer_destinations.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; + 18 => { + self.consumer_destinations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -130,311 +104,225 @@ impl ::protobuf::Message for Logging { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.producer_destinations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.consumer_destinations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.producer_destinations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.consumer_destinations { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Logging { Logging::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "producer_destinations", - |m: &Logging| { &m.producer_destinations }, - |m: &mut Logging| { &mut m.producer_destinations }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consumer_destinations", - |m: &Logging| { &m.consumer_destinations }, - |m: &mut Logging| { &mut m.consumer_destinations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Logging", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.producer_destinations.clear(); + self.consumer_destinations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Logging { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Logging::new) + static instance: Logging = Logging { + producer_destinations: ::std::vec::Vec::new(), + consumer_destinations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Logging { - fn clear(&mut self) { - self.producer_destinations.clear(); - self.consumer_destinations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Logging { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Logging").unwrap()).clone() } } -impl ::std::fmt::Debug for Logging { +impl ::std::fmt::Display for Logging { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Logging { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Logging_LoggingDestination { - // message fields - pub monitored_resource: ::std::string::String, - pub logs: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Logging_LoggingDestination { - fn default() -> &'a Logging_LoggingDestination { - ::default_instance() - } -} - -impl Logging_LoggingDestination { - pub fn new() -> Logging_LoggingDestination { - ::std::default::Default::default() - } - - // string monitored_resource = 3; - - - pub fn get_monitored_resource(&self) -> &str { - &self.monitored_resource - } - pub fn clear_monitored_resource(&mut self) { - self.monitored_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_monitored_resource(&mut self, v: ::std::string::String) { - self.monitored_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_monitored_resource(&mut self) -> &mut ::std::string::String { - &mut self.monitored_resource - } - - // Take field - pub fn take_monitored_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.monitored_resource, ::std::string::String::new()) +/// Nested message and enums of message `Logging` +pub mod logging { + /// Configuration of a specific logging destination (the producer project + /// or the consumer project). + // @@protoc_insertion_point(message:google.api.Logging.LoggingDestination) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct LoggingDestination { + // message fields + /// The monitored resource type. The type must be defined in the + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + // @@protoc_insertion_point(field:google.api.Logging.LoggingDestination.monitored_resource) + pub monitored_resource: ::std::string::String, + /// Names of the logs to be sent to this destination. Each name must + /// be defined in the [Service.logs][google.api.Service.logs] section. If the log name is + /// not a domain scoped name, it will be automatically prefixed with + /// the service name followed by "/". + // @@protoc_insertion_point(field:google.api.Logging.LoggingDestination.logs) + pub logs: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.Logging.LoggingDestination.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a LoggingDestination { + fn default() -> &'a LoggingDestination { + ::default_instance() + } } - // repeated string logs = 1; - - - pub fn get_logs(&self) -> &[::std::string::String] { - &self.logs - } - pub fn clear_logs(&mut self) { - self.logs.clear(); - } + impl LoggingDestination { + pub fn new() -> LoggingDestination { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_logs(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.logs = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "monitored_resource", + |m: &LoggingDestination| { &m.monitored_resource }, + |m: &mut LoggingDestination| { &mut m.monitored_resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "logs", + |m: &LoggingDestination| { &m.logs }, + |m: &mut LoggingDestination| { &mut m.logs }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Logging.LoggingDestination", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - pub fn mut_logs(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.logs - } + impl ::protobuf::Message for LoggingDestination { + const NAME: &'static str = "LoggingDestination"; - // Take field - pub fn take_logs(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.logs, ::protobuf::RepeatedField::new()) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::Message for Logging_LoggingDestination { - fn is_initialized(&self) -> bool { - true - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 26 => { + self.monitored_resource = is.read_string()?; + }, + 10 => { + self.logs.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.monitored_resource)?; - }, - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.logs)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.monitored_resource.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.monitored_resource); + } + for value in &self.logs { + my_size += ::protobuf::rt::string_size(1, &value); }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.monitored_resource.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.monitored_resource); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.monitored_resource.is_empty() { + os.write_string(3, &self.monitored_resource)?; + } + for v in &self.logs { + os.write_string(1, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - for value in &self.logs { - my_size += ::protobuf::rt::string_size(1, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.monitored_resource.is_empty() { - os.write_string(3, &self.monitored_resource)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - for v in &self.logs { - os.write_string(1, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> Logging_LoggingDestination { - Logging_LoggingDestination::new() - } + fn new() -> LoggingDestination { + LoggingDestination::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "monitored_resource", - |m: &Logging_LoggingDestination| { &m.monitored_resource }, - |m: &mut Logging_LoggingDestination| { &mut m.monitored_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "logs", - |m: &Logging_LoggingDestination| { &m.logs }, - |m: &mut Logging_LoggingDestination| { &mut m.logs }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Logging.LoggingDestination", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.monitored_resource.clear(); + self.logs.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static Logging_LoggingDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Logging_LoggingDestination::new) + fn default_instance() -> &'static LoggingDestination { + static instance: LoggingDestination = LoggingDestination { + monitored_resource: ::std::string::String::new(), + logs: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Logging_LoggingDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.logs.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for LoggingDestination { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Logging.LoggingDestination").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Logging_LoggingDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for LoggingDestination { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Logging_LoggingDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for LoggingDestination { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } @@ -447,9 +335,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ source\x18\x03\x20\x01(\tR\x11monitoredResource\x12\x12\n\x04logs\x18\ \x01\x20\x03(\tR\x04logsBn\n\x0ecom.google.apiB\x0cLoggingProtoP\x01ZEgo\ ogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\ - \x02\x04GAPIJ\x9a\x17\n\x06\x12\x04\x0e\0P\x01\n\xbc\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Lic\ - ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x02\x04GAPIJ\x9b\x17\n\x06\x12\x04\x0f\0P\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ @@ -460,15 +348,15 @@ static file_descriptor_proto_data: &'static [u8] = b"\ DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\ - \n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\ - \x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0-\n\t\n\x02\x08\x08\ - \x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\ - \x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\ - \xda\x07\n\x02\x04\0\x12\x045\0P\x01\x1a\xcd\x07\x20Logging\x20configura\ - tion\x20of\x20the\x20service.\n\n\x20The\x20following\x20example\x20show\ - s\x20how\x20to\x20configure\x20logs\x20to\x20be\x20sent\x20to\x20the\n\ - \x20producer\x20and\x20consumer\x20projects.\x20In\x20the\x20example,\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\ + \t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ + \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\x08\ + \x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ + \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ + \"\n\xda\x07\n\x02\x04\0\x12\x046\0P\x01\x1a\xcd\x07\x20Logging\x20confi\ + guration\x20of\x20the\x20service.\n\n\x20The\x20following\x20example\x20\ + shows\x20how\x20to\x20configure\x20logs\x20to\x20be\x20sent\x20to\x20the\ + \n\x20producer\x20and\x20consumer\x20projects.\x20In\x20the\x20example,\ \x20the\x20`activity_history`\n\x20log\x20is\x20sent\x20to\x20both\x20th\ e\x20producer\x20and\x20consumer\x20projects,\x20whereas\x20the\n\x20`pu\ rchase_history`\x20log\x20is\x20only\x20sent\x20to\x20the\x20producer\ @@ -490,51 +378,69 @@ static file_descriptor_proto_data: &'static [u8] = b"\ inations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20libra\ ry.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20logs:\n\ \x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20activity_history\n\n\n\n\x03\ - \x04\0\x01\x12\x035\x08\x0f\np\n\x04\x04\0\x03\0\x12\x048\x02C\x03\x1ab\ + \x04\0\x01\x12\x036\x08\x0f\np\n\x04\x04\0\x03\0\x12\x049\x02C\x03\x1ab\ \x20Configuration\x20of\x20a\x20specific\x20logging\x20destination\x20(t\ he\x20producer\x20project\n\x20or\x20the\x20consumer\x20project).\n\n\ - \x0c\n\x05\x04\0\x03\0\x01\x12\x038\n\x1c\n\x9f\x01\n\x06\x04\0\x03\0\ - \x02\0\x12\x03<\x04\"\x1a\x8f\x01\x20The\x20monitored\x20resource\x20typ\ + \x0c\n\x05\x04\0\x03\0\x01\x12\x039\n\x1c\n\x9e\x01\n\x06\x04\0\x03\0\ + \x02\0\x12\x03<\x04\"\x1a\x8e\x01\x20The\x20monitored\x20resource\x20typ\ e.\x20The\x20type\x20must\x20be\x20defined\x20in\x20the\n\x20[Service.mo\ - nitored_resources][google.api.Service.monitored_resources]\n\x20section.\ - \n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03<\x04\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\0\x01\x12\x03<\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\ - \x03<\x20!\n\x8e\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03B\x04\x1d\x1a\xfe\ - \x01\x20Names\x20of\x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20\ - destination.\x20Each\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20\ - [Service.logs][google.api.Service.logs]\x20section.\x20If\x20the\n\x20lo\ - g\x20name\x20is\x20not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\ - \x20be\x20automatically\x20prefixed\n\x20with\x20the\x20service\x20name\ - \x20followed\x20by\x20\"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\ - \x03B\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03B\r\x13\n\x0e\n\ - \x07\x04\0\x03\0\x02\x01\x01\x12\x03B\x14\x18\n\x0e\n\x07\x04\0\x03\0\ - \x02\x01\x03\x12\x03B\x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03I\x028\ - \x1a\xe1\x01\x20Logging\x20configurations\x20for\x20sending\x20logs\x20t\ - o\x20the\x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20\ - producer\x20destinations,\x20each\x20one\x20must\x20have\x20a\n\x20diffe\ - rent\x20monitored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\ - \x20in\x20at\x20most\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\ - \x04\0\x02\0\x04\x12\x03I\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x0b\ - \x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03I\x1e3\n\x0c\n\x05\x04\0\x02\0\ - \x03\x12\x03I67\n\xef\x01\n\x04\x04\0\x02\x01\x12\x03O\x028\x1a\xe1\x01\ - \x20Logging\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20\ - consumer\x20project.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20\ - destinations,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20moni\ - tored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\ - \x20most\n\x20one\x20consumer\x20destination.\n\n\x0c\n\x05\x04\0\x02\ - \x01\x04\x12\x03O\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03O\x0b\x1d\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x03O\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03O67b\x06proto3\ + nitored_resources][google.api.Service.monitored_resources]\x20section.\n\ + \n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03<\x04\n\n\x0e\n\x07\x04\0\x03\ + \0\x02\0\x01\x12\x03<\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03<\ + \x20!\n\x8e\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03B\x04\x1d\x1a\xfe\x01\ + \x20Names\x20of\x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20dest\ + ination.\x20Each\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20[Ser\ + vice.logs][google.api.Service.logs]\x20section.\x20If\x20the\x20log\x20n\ + ame\x20is\n\x20not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\x20be\ + \x20automatically\x20prefixed\x20with\n\x20the\x20service\x20name\x20fol\ + lowed\x20by\x20\"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03B\x04\ + \x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03B\r\x13\n\x0e\n\x07\x04\ + \0\x03\0\x02\x01\x01\x12\x03B\x14\x18\n\x0e\n\x07\x04\0\x03\0\x02\x01\ + \x03\x12\x03B\x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03I\x028\x1a\xe1\ + \x01\x20Logging\x20configurations\x20for\x20sending\x20logs\x20to\x20the\ + \x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\ + \x20destinations,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20\ + monitored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\ + \x20at\x20most\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\x04\0\ + \x02\0\x04\x12\x03I\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x0b\x1d\n\ + \x0c\n\x05\x04\0\x02\0\x01\x12\x03I\x1e3\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03I67\n\xef\x01\n\x04\x04\0\x02\x01\x12\x03O\x028\x1a\xe1\x01\x20Loggi\ + ng\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20consumer\ + \x20project.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinat\ + ions,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20monitored\ + \x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\x20mo\ + st\n\x20one\x20consumer\x20destination.\n\n\x0c\n\x05\x04\0\x02\x01\x04\ + \x12\x03O\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03O\x0b\x1d\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03O\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x03O67b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Logging::generated_message_descriptor_data()); + messages.push(logging::LoggingDestination::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/metric.rs b/googleapis-raw/src/api/metric.rs index 80891cb..9de6c06 100644 --- a/googleapis-raw/src/api/metric.rs +++ b/googleapis-raw/src/api/metric.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,31 +16,63 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/metric.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Defines a metric type and its schema. Once a metric descriptor is created, +/// deleting or altering it stops data collection and makes the metric type's +/// existing data unusable. +// @@protoc_insertion_point(message:google.api.MetricDescriptor) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MetricDescriptor { // message fields + /// The resource name of the metric descriptor. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.name) pub name: ::std::string::String, - pub field_type: ::std::string::String, - pub labels: ::protobuf::RepeatedField, - pub metric_kind: MetricDescriptor_MetricKind, - pub value_type: MetricDescriptor_ValueType, + // @@protoc_insertion_point(field:google.api.MetricDescriptor.type) + pub type_: ::std::string::String, + /// The set of labels that can be used to describe a specific + /// instance of this metric type. For example, the + /// `appengine.googleapis.com/http/server/response_latencies` metric + /// type has a label for the HTTP response code, `response_code`, so + /// you can look at latencies for successful responses or just + /// for responses that failed. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.labels) + pub labels: ::std::vec::Vec, + /// Whether the metric records instantaneous values, changes to a value, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.metric_kind) + pub metric_kind: ::protobuf::EnumOrUnknown, + /// Whether the measurement is an integer, a floating-point number, etc. + /// Some combinations of `metric_kind` and `value_type` might not be supported. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.value_type) + pub value_type: ::protobuf::EnumOrUnknown, + // @@protoc_insertion_point(field:google.api.MetricDescriptor.unit) pub unit: ::std::string::String, + /// A detailed description of the metric, which can be used in documentation. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.description) pub description: ::std::string::String, + /// A concise name for the metric, which can be displayed in user interfaces. + /// Use sentence case without an ending period, for example "Request count". + /// This field is optional but it is recommended to be set for any metrics + /// associated with user-visible concepts, such as Quota. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.display_name) pub display_name: ::std::string::String, - pub metadata: ::protobuf::SingularPtrField, - pub launch_stage: super::launch_stage::LaunchStage, - pub monitored_resource_types: ::protobuf::RepeatedField<::std::string::String>, + /// Optional. Metadata which can be used to guide usage of the metric. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.metadata) + pub metadata: ::protobuf::MessageField, + /// Optional. The launch stage of the metric definition. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.launch_stage) + pub launch_stage: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.MetricDescriptor.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MetricDescriptor { @@ -53,319 +86,109 @@ impl MetricDescriptor { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string type = 8; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // repeated .google.api.LabelDescriptor labels = 2; - - - pub fn get_labels(&self) -> &[super::label::LabelDescriptor] { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::protobuf::RepeatedField) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new()) - } - - // .google.api.MetricDescriptor.MetricKind metric_kind = 3; - - - pub fn get_metric_kind(&self) -> MetricDescriptor_MetricKind { - self.metric_kind - } - pub fn clear_metric_kind(&mut self) { - self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_metric_kind(&mut self, v: MetricDescriptor_MetricKind) { - self.metric_kind = v; - } - - // .google.api.MetricDescriptor.ValueType value_type = 4; - - - pub fn get_value_type(&self) -> MetricDescriptor_ValueType { - self.value_type - } - pub fn clear_value_type(&mut self) { - self.value_type = MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_value_type(&mut self, v: MetricDescriptor_ValueType) { - self.value_type = v; - } - - // string unit = 5; - - - pub fn get_unit(&self) -> &str { - &self.unit - } - pub fn clear_unit(&mut self) { - self.unit.clear(); - } - - // Param is passed by value, moved - pub fn set_unit(&mut self, v: ::std::string::String) { - self.unit = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_unit(&mut self) -> &mut ::std::string::String { - &mut self.unit - } - - // Take field - pub fn take_unit(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.unit, ::std::string::String::new()) - } - - // string description = 6; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string display_name = 7; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; - - - pub fn get_metadata(&self) -> &MetricDescriptor_MetricDescriptorMetadata { - self.metadata.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - pub fn has_metadata(&self) -> bool { - self.metadata.is_some() - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: MetricDescriptor_MetricDescriptorMetadata) { - self.metadata = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata(&mut self) -> &mut MetricDescriptor_MetricDescriptorMetadata { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> MetricDescriptor_MetricDescriptorMetadata { - self.metadata.take().unwrap_or_else(|| MetricDescriptor_MetricDescriptorMetadata::new()) - } - - // .google.api.LaunchStage launch_stage = 12; - - - pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage { - self.launch_stage - } - pub fn clear_launch_stage(&mut self) { - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) { - self.launch_stage = v; - } - - // repeated string monitored_resource_types = 13; - - - pub fn get_monitored_resource_types(&self) -> &[::std::string::String] { - &self.monitored_resource_types - } - pub fn clear_monitored_resource_types(&mut self) { - self.monitored_resource_types.clear(); - } - - // Param is passed by value, moved - pub fn set_monitored_resource_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.monitored_resource_types = v; - } - - // Mutable pointer to the field. - pub fn mut_monitored_resource_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.monitored_resource_types - } - - // Take field - pub fn take_monitored_resource_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.monitored_resource_types, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(10); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &MetricDescriptor| { &m.name }, + |m: &mut MetricDescriptor| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &MetricDescriptor| { &m.type_ }, + |m: &mut MetricDescriptor| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "labels", + |m: &MetricDescriptor| { &m.labels }, + |m: &mut MetricDescriptor| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "metric_kind", + |m: &MetricDescriptor| { &m.metric_kind }, + |m: &mut MetricDescriptor| { &mut m.metric_kind }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value_type", + |m: &MetricDescriptor| { &m.value_type }, + |m: &mut MetricDescriptor| { &mut m.value_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "unit", + |m: &MetricDescriptor| { &m.unit }, + |m: &mut MetricDescriptor| { &mut m.unit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &MetricDescriptor| { &m.description }, + |m: &mut MetricDescriptor| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &MetricDescriptor| { &m.display_name }, + |m: &mut MetricDescriptor| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, metric_descriptor::MetricDescriptorMetadata>( + "metadata", + |m: &MetricDescriptor| { &m.metadata }, + |m: &mut MetricDescriptor| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "launch_stage", + |m: &MetricDescriptor| { &m.launch_stage }, + |m: &mut MetricDescriptor| { &mut m.launch_stage }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MetricDescriptor", + fields, + oneofs, + ) } } impl ::protobuf::Message for MetricDescriptor { + const NAME: &'static str = "MetricDescriptor"; + fn is_initialized(&self) -> bool { - for v in &self.labels { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + 66 => { + self.type_ = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.metric_kind, 3, &mut self.unknown_fields)? + 18 => { + self.labels.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.value_type, 4, &mut self.unknown_fields)? + 24 => { + self.metric_kind = is.read_enum_or_unknown()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; + 32 => { + self.value_type = is.read_enum_or_unknown()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 42 => { + self.unit = is.read_string()?; }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + 50 => { + self.description = is.read_string()?; }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + 58 => { + self.display_name = is.read_string()?; }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 12, &mut self.unknown_fields)? + 82 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; }, - 13 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.monitored_resource_types)?; + 96 => { + self.launch_stage = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -374,23 +197,23 @@ impl ::protobuf::Message for MetricDescriptor { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(8, &self.type_); } for value in &self.labels { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.metric_kind); + if self.metric_kind != ::protobuf::EnumOrUnknown::new(metric_descriptor::MetricKind::METRIC_KIND_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(3, self.metric_kind.value()); } - if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.value_type); + if self.value_type != ::protobuf::EnumOrUnknown::new(metric_descriptor::ValueType::VALUE_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.value_type.value()); } if !self.unit.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.unit); @@ -401,38 +224,33 @@ impl ::protobuf::Message for MetricDescriptor { if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(7, &self.display_name); } - if let Some(ref v) = self.metadata.as_ref() { + if let Some(v) = self.metadata.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.launch_stage); + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(12, self.launch_stage.value()); } - for value in &self.monitored_resource_types { - my_size += ::protobuf::rt::string_size(13, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if !self.field_type.is_empty() { - os.write_string(8, &self.field_type)?; + if !self.type_.is_empty() { + os.write_string(8, &self.type_)?; } for v in &self.labels { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - if self.metric_kind != MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.metric_kind))?; + if self.metric_kind != ::protobuf::EnumOrUnknown::new(metric_descriptor::MetricKind::METRIC_KIND_UNSPECIFIED) { + os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.metric_kind))?; } - if self.value_type != MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.value_type))?; + if self.value_type != ::protobuf::EnumOrUnknown::new(metric_descriptor::ValueType::VALUE_TYPE_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.value_type))?; } if !self.unit.is_empty() { os.write_string(5, &self.unit)?; @@ -443,544 +261,428 @@ impl ::protobuf::Message for MetricDescriptor { if !self.display_name.is_empty() { os.write_string(7, &self.display_name)?; } - if let Some(ref v) = self.metadata.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.metadata.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(10, v, os)?; } - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + os.write_enum(12, ::protobuf::EnumOrUnknown::value(&self.launch_stage))?; } - for v in &self.monitored_resource_types { - os.write_string(13, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MetricDescriptor { MetricDescriptor::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &MetricDescriptor| { &m.name }, - |m: &mut MetricDescriptor| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &MetricDescriptor| { &m.field_type }, - |m: &mut MetricDescriptor| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "labels", - |m: &MetricDescriptor| { &m.labels }, - |m: &mut MetricDescriptor| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "metric_kind", - |m: &MetricDescriptor| { &m.metric_kind }, - |m: &mut MetricDescriptor| { &mut m.metric_kind }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "value_type", - |m: &MetricDescriptor| { &m.value_type }, - |m: &mut MetricDescriptor| { &mut m.value_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "unit", - |m: &MetricDescriptor| { &m.unit }, - |m: &mut MetricDescriptor| { &mut m.unit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &MetricDescriptor| { &m.description }, - |m: &mut MetricDescriptor| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &MetricDescriptor| { &m.display_name }, - |m: &mut MetricDescriptor| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &MetricDescriptor| { &m.metadata }, - |m: &mut MetricDescriptor| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "launch_stage", - |m: &MetricDescriptor| { &m.launch_stage }, - |m: &mut MetricDescriptor| { &mut m.launch_stage }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "monitored_resource_types", - |m: &MetricDescriptor| { &m.monitored_resource_types }, - |m: &mut MetricDescriptor| { &mut m.monitored_resource_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MetricDescriptor", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MetricDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricDescriptor::new) - } -} - -impl ::protobuf::Clear for MetricDescriptor { fn clear(&mut self) { self.name.clear(); - self.field_type.clear(); + self.type_.clear(); self.labels.clear(); - self.metric_kind = MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED; - self.value_type = MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED; + self.metric_kind = ::protobuf::EnumOrUnknown::new(metric_descriptor::MetricKind::METRIC_KIND_UNSPECIFIED); + self.value_type = ::protobuf::EnumOrUnknown::new(metric_descriptor::ValueType::VALUE_TYPE_UNSPECIFIED); self.unit.clear(); self.description.clear(); self.display_name.clear(); self.metadata.clear(); - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - self.monitored_resource_types.clear(); - self.unknown_fields.clear(); + self.launch_stage = ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for MetricDescriptor { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static MetricDescriptor { + static instance: MetricDescriptor = MetricDescriptor { + name: ::std::string::String::new(), + type_: ::std::string::String::new(), + labels: ::std::vec::Vec::new(), + metric_kind: ::protobuf::EnumOrUnknown::from_i32(0), + value_type: ::protobuf::EnumOrUnknown::from_i32(0), + unit: ::std::string::String::new(), + description: ::std::string::String::new(), + display_name: ::std::string::String::new(), + metadata: ::protobuf::MessageField::none(), + launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for MetricDescriptor { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MetricDescriptor").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct MetricDescriptor_MetricDescriptorMetadata { - // message fields - pub launch_stage: super::launch_stage::LaunchStage, - pub sample_period: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub ingest_delay: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MetricDescriptor_MetricDescriptorMetadata { - fn default() -> &'a MetricDescriptor_MetricDescriptorMetadata { - ::default_instance() +impl ::std::fmt::Display for MetricDescriptor { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl MetricDescriptor_MetricDescriptorMetadata { - pub fn new() -> MetricDescriptor_MetricDescriptorMetadata { - ::std::default::Default::default() - } - - // .google.api.LaunchStage launch_stage = 1; - - - pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage { - self.launch_stage - } - pub fn clear_launch_stage(&mut self) { - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) { - self.launch_stage = v; - } - - // .google.protobuf.Duration sample_period = 2; - - - pub fn get_sample_period(&self) -> &::protobuf::well_known_types::Duration { - self.sample_period.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_sample_period(&mut self) { - self.sample_period.clear(); - } - - pub fn has_sample_period(&self) -> bool { - self.sample_period.is_some() - } - - // Param is passed by value, moved - pub fn set_sample_period(&mut self, v: ::protobuf::well_known_types::Duration) { - self.sample_period = ::protobuf::SingularPtrField::some(v); - } +impl ::protobuf::reflect::ProtobufValue for MetricDescriptor { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sample_period(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.sample_period.is_none() { - self.sample_period.set_default(); +/// Nested message and enums of message `MetricDescriptor` +pub mod metric_descriptor { + /// Additional annotations that can be used to guide the usage of a metric. + // @@protoc_insertion_point(message:google.api.MetricDescriptor.MetricDescriptorMetadata) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct MetricDescriptorMetadata { + // message fields + /// Deprecated. Please use the MetricDescriptor.launch_stage instead. + /// The launch stage of the metric definition. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage) + pub launch_stage: ::protobuf::EnumOrUnknown, + /// The sampling period of metric data points. For metrics which are written + /// periodically, consecutive data points are stored at this time interval, + /// excluding data loss due to errors. Metrics with a higher granularity have + /// a smaller sampling period. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.sample_period) + pub sample_period: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// The delay of data points caused by ingestion. Data points older than this + /// age are guaranteed to be ingested and available to be read, excluding + /// data loss due to errors. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.ingest_delay) + pub ingest_delay: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + // special fields + // @@protoc_insertion_point(special_field:google.api.MetricDescriptor.MetricDescriptorMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a MetricDescriptorMetadata { + fn default() -> &'a MetricDescriptorMetadata { + ::default_instance() } - self.sample_period.as_mut().unwrap() } - // Take field - pub fn take_sample_period(&mut self) -> ::protobuf::well_known_types::Duration { - self.sample_period.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.protobuf.Duration ingest_delay = 3; - - - pub fn get_ingest_delay(&self) -> &::protobuf::well_known_types::Duration { - self.ingest_delay.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_ingest_delay(&mut self) { - self.ingest_delay.clear(); - } + impl MetricDescriptorMetadata { + pub fn new() -> MetricDescriptorMetadata { + ::std::default::Default::default() + } - pub fn has_ingest_delay(&self) -> bool { - self.ingest_delay.is_some() + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "launch_stage", + |m: &MetricDescriptorMetadata| { &m.launch_stage }, + |m: &mut MetricDescriptorMetadata| { &mut m.launch_stage }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "sample_period", + |m: &MetricDescriptorMetadata| { &m.sample_period }, + |m: &mut MetricDescriptorMetadata| { &mut m.sample_period }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "ingest_delay", + |m: &MetricDescriptorMetadata| { &m.ingest_delay }, + |m: &mut MetricDescriptorMetadata| { &mut m.ingest_delay }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MetricDescriptor.MetricDescriptorMetadata", + fields, + oneofs, + ) + } } - // Param is passed by value, moved - pub fn set_ingest_delay(&mut self, v: ::protobuf::well_known_types::Duration) { - self.ingest_delay = ::protobuf::SingularPtrField::some(v); - } + impl ::protobuf::Message for MetricDescriptorMetadata { + const NAME: &'static str = "MetricDescriptorMetadata"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ingest_delay(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.ingest_delay.is_none() { - self.ingest_delay.set_default(); + fn is_initialized(&self) -> bool { + true } - self.ingest_delay.as_mut().unwrap() - } - // Take field - pub fn take_ingest_delay(&mut self) -> ::protobuf::well_known_types::Duration { - self.ingest_delay.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.launch_stage = is.read_enum_or_unknown()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.sample_period)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.ingest_delay)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::Message for MetricDescriptor_MetricDescriptorMetadata { - fn is_initialized(&self) -> bool { - for v in &self.sample_period { - if !v.is_initialized() { - return false; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.launch_stage.value()); } - }; - for v in &self.ingest_delay { - if !v.is_initialized() { - return false; + if let Some(v) = self.sample_period.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.sample_period)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ingest_delay)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + if let Some(v) = self.ingest_delay.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.launch_stage); - } - if let Some(ref v) = self.sample_period.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.ingest_delay.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.launch_stage))?; + } + if let Some(v) = self.sample_period.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if let Some(v) = self.ingest_delay.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; - } - if let Some(ref v) = self.sample_period.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - if let Some(ref v) = self.ingest_delay.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn new() -> MetricDescriptorMetadata { + MetricDescriptorMetadata::new() + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn clear(&mut self) { + self.launch_stage = ::protobuf::EnumOrUnknown::new(super::super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); + self.sample_period.clear(); + self.ingest_delay.clear(); + self.special_fields.clear(); + } - fn new() -> MetricDescriptor_MetricDescriptorMetadata { - MetricDescriptor_MetricDescriptorMetadata::new() + fn default_instance() -> &'static MetricDescriptorMetadata { + static instance: MetricDescriptorMetadata = MetricDescriptorMetadata { + launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), + sample_period: ::protobuf::MessageField::none(), + ingest_delay: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "launch_stage", - |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.launch_stage }, - |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.launch_stage }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "sample_period", - |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.sample_period }, - |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.sample_period }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "ingest_delay", - |m: &MetricDescriptor_MetricDescriptorMetadata| { &m.ingest_delay }, - |m: &mut MetricDescriptor_MetricDescriptorMetadata| { &mut m.ingest_delay }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MetricDescriptor.MetricDescriptorMetadata", - fields, - file_descriptor_proto() - ) - }) + impl ::protobuf::MessageFull for MetricDescriptorMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("MetricDescriptor.MetricDescriptorMetadata").unwrap()).clone() + } } - fn default_instance() -> &'static MetricDescriptor_MetricDescriptorMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricDescriptor_MetricDescriptorMetadata::new) + impl ::std::fmt::Display for MetricDescriptorMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::Clear for MetricDescriptor_MetricDescriptorMetadata { - fn clear(&mut self) { - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - self.sample_period.clear(); - self.ingest_delay.clear(); - self.unknown_fields.clear(); + impl ::protobuf::reflect::ProtobufValue for MetricDescriptorMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::std::fmt::Debug for MetricDescriptor_MetricDescriptorMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + /// The kind of measurement. It describes how the data is reported. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.MetricDescriptor.MetricKind) + pub enum MetricKind { + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED) + METRIC_KIND_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricKind.GAUGE) + GAUGE = 1, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricKind.DELTA) + DELTA = 2, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricKind.CUMULATIVE) + CUMULATIVE = 3, } -} -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricDescriptorMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + impl ::protobuf::Enum for MetricKind { + const NAME: &'static str = "MetricKind"; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum MetricDescriptor_MetricKind { - METRIC_KIND_UNSPECIFIED = 0, - GAUGE = 1, - DELTA = 2, - CUMULATIVE = 3, -} + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for MetricDescriptor_MetricKind { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(MetricKind::METRIC_KIND_UNSPECIFIED), + 1 => ::std::option::Option::Some(MetricKind::GAUGE), + 2 => ::std::option::Option::Some(MetricKind::DELTA), + 3 => ::std::option::Option::Some(MetricKind::CUMULATIVE), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED), - 1 => ::std::option::Option::Some(MetricDescriptor_MetricKind::GAUGE), - 2 => ::std::option::Option::Some(MetricDescriptor_MetricKind::DELTA), - 3 => ::std::option::Option::Some(MetricDescriptor_MetricKind::CUMULATIVE), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "METRIC_KIND_UNSPECIFIED" => ::std::option::Option::Some(MetricKind::METRIC_KIND_UNSPECIFIED), + "GAUGE" => ::std::option::Option::Some(MetricKind::GAUGE), + "DELTA" => ::std::option::Option::Some(MetricKind::DELTA), + "CUMULATIVE" => ::std::option::Option::Some(MetricKind::CUMULATIVE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [MetricDescriptor_MetricKind] = &[ - MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED, - MetricDescriptor_MetricKind::GAUGE, - MetricDescriptor_MetricKind::DELTA, - MetricDescriptor_MetricKind::CUMULATIVE, + const VALUES: &'static [MetricKind] = &[ + MetricKind::METRIC_KIND_UNSPECIFIED, + MetricKind::GAUGE, + MetricKind::DELTA, + MetricKind::CUMULATIVE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("MetricDescriptor.MetricKind", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for MetricKind { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("MetricDescriptor.MetricKind").unwrap()).clone() + } -impl ::std::marker::Copy for MetricDescriptor_MetricKind { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for MetricDescriptor_MetricKind { - fn default() -> Self { - MetricDescriptor_MetricKind::METRIC_KIND_UNSPECIFIED + impl ::std::default::Default for MetricKind { + fn default() -> Self { + MetricKind::METRIC_KIND_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_MetricKind { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl MetricKind { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("MetricDescriptor.MetricKind") + } } -} -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum MetricDescriptor_ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - BOOL = 1, - INT64 = 2, - DOUBLE = 3, - STRING = 4, - DISTRIBUTION = 5, - MONEY = 6, -} + /// The value type of a metric. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.MetricDescriptor.ValueType) + pub enum ValueType { + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.VALUE_TYPE_UNSPECIFIED) + VALUE_TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.BOOL) + BOOL = 1, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.INT64) + INT64 = 2, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.DOUBLE) + DOUBLE = 3, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.STRING) + STRING = 4, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.DISTRIBUTION) + DISTRIBUTION = 5, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.ValueType.MONEY) + MONEY = 6, + } + + impl ::protobuf::Enum for ValueType { + const NAME: &'static str = "ValueType"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for MetricDescriptor_ValueType { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ValueType::VALUE_TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(ValueType::BOOL), + 2 => ::std::option::Option::Some(ValueType::INT64), + 3 => ::std::option::Option::Some(ValueType::DOUBLE), + 4 => ::std::option::Option::Some(ValueType::STRING), + 5 => ::std::option::Option::Some(ValueType::DISTRIBUTION), + 6 => ::std::option::Option::Some(ValueType::MONEY), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(MetricDescriptor_ValueType::BOOL), - 2 => ::std::option::Option::Some(MetricDescriptor_ValueType::INT64), - 3 => ::std::option::Option::Some(MetricDescriptor_ValueType::DOUBLE), - 4 => ::std::option::Option::Some(MetricDescriptor_ValueType::STRING), - 5 => ::std::option::Option::Some(MetricDescriptor_ValueType::DISTRIBUTION), - 6 => ::std::option::Option::Some(MetricDescriptor_ValueType::MONEY), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "VALUE_TYPE_UNSPECIFIED" => ::std::option::Option::Some(ValueType::VALUE_TYPE_UNSPECIFIED), + "BOOL" => ::std::option::Option::Some(ValueType::BOOL), + "INT64" => ::std::option::Option::Some(ValueType::INT64), + "DOUBLE" => ::std::option::Option::Some(ValueType::DOUBLE), + "STRING" => ::std::option::Option::Some(ValueType::STRING), + "DISTRIBUTION" => ::std::option::Option::Some(ValueType::DISTRIBUTION), + "MONEY" => ::std::option::Option::Some(ValueType::MONEY), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [MetricDescriptor_ValueType] = &[ - MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED, - MetricDescriptor_ValueType::BOOL, - MetricDescriptor_ValueType::INT64, - MetricDescriptor_ValueType::DOUBLE, - MetricDescriptor_ValueType::STRING, - MetricDescriptor_ValueType::DISTRIBUTION, - MetricDescriptor_ValueType::MONEY, + const VALUES: &'static [ValueType] = &[ + ValueType::VALUE_TYPE_UNSPECIFIED, + ValueType::BOOL, + ValueType::INT64, + ValueType::DOUBLE, + ValueType::STRING, + ValueType::DISTRIBUTION, + ValueType::MONEY, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("MetricDescriptor.ValueType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for ValueType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("MetricDescriptor.ValueType").unwrap()).clone() + } -impl ::std::marker::Copy for MetricDescriptor_ValueType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for MetricDescriptor_ValueType { - fn default() -> Self { - MetricDescriptor_ValueType::VALUE_TYPE_UNSPECIFIED + impl ::std::default::Default for ValueType { + fn default() -> Self { + ValueType::VALUE_TYPE_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for MetricDescriptor_ValueType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ValueType { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("MetricDescriptor.ValueType") + } } } -#[derive(PartialEq,Clone,Default)] +/// A specific metric, identified by specifying values for all of the +/// labels of a [`MetricDescriptor`][google.api.MetricDescriptor]. +// @@protoc_insertion_point(message:google.api.Metric) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Metric { // message fields - pub field_type: ::std::string::String, + /// An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. + /// For example, `custom.googleapis.com/invoice/paid/amount`. + // @@protoc_insertion_point(field:google.api.Metric.type) + pub type_: ::std::string::String, + /// The set of label values that uniquely identify this metric. All + /// labels listed in the `MetricDescriptor` must be assigned values. + // @@protoc_insertion_point(field:google.api.Metric.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Metric.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Metric { @@ -994,75 +696,57 @@ impl Metric { ::std::default::Default::default() } - // string type = 3; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // repeated .google.api.Metric.LabelsEntry labels = 2; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &Metric| { &m.type_ }, + |m: &mut Metric| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Metric| { &m.labels }, + |m: &mut Metric| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Metric", + fields, + oneofs, + ) } } impl ::protobuf::Message for Metric { + const NAME: &'static str = "Metric"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 26 => { + self.type_ = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1071,108 +755,84 @@ impl ::protobuf::Message for Metric { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.type_); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(3, &self.field_type)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_.is_empty() { + os.write_string(3, &self.type_)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Metric { Metric::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &Metric| { &m.field_type }, - |m: &mut Metric| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Metric| { &m.labels }, - |m: &mut Metric| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Metric", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.type_.clear(); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Metric { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(Metric::new) } } -impl ::protobuf::Clear for Metric { - fn clear(&mut self) { - self.field_type.clear(); - self.labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Metric { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Metric").unwrap()).clone() } } -impl ::std::fmt::Debug for Metric { +impl ::std::fmt::Display for Metric { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Metric { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x17google/api/metric.proto\x12\ngoogle.api\x1a\x16google/api/label.pr\ oto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1egoogle/protobuf/duration\ - .proto\"\xc1\x07\n\x10MetricDescriptor\x12\x12\n\x04name\x18\x01\x20\x01\ + .proto\"\x87\x07\n\x10MetricDescriptor\x12\x12\n\x04name\x18\x01\x20\x01\ (\tR\x04name\x12\x12\n\x04type\x18\x08\x20\x01(\tR\x04type\x123\n\x06lab\ els\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12H\ \n\x0bmetric_kind\x18\x03\x20\x01(\x0e2'.google.api.MetricDescriptor.Met\ @@ -1182,310 +842,321 @@ static file_descriptor_proto_data: &'static [u8] = b"\ tion\x12!\n\x0cdisplay_name\x18\x07\x20\x01(\tR\x0bdisplayName\x12Q\n\ \x08metadata\x18\n\x20\x01(\x0b25.google.api.MetricDescriptor.MetricDesc\ riptorMetadataR\x08metadata\x12:\n\x0claunch_stage\x18\x0c\x20\x01(\x0e2\ - \x17.google.api.LaunchStageR\x0blaunchStage\x128\n\x18monitored_resource\ - _types\x18\r\x20\x03(\tR\x16monitoredResourceTypes\x1a\xd8\x01\n\x18Metr\ - icDescriptorMetadata\x12>\n\x0claunch_stage\x18\x01\x20\x01(\x0e2\x17.go\ - ogle.api.LaunchStageR\x0blaunchStageB\x02\x18\x01\x12>\n\rsample_period\ - \x18\x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0csamplePeriod\x12\ - <\n\x0cingest_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationR\ - \x0bingestDelay\"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\ - \x10\0\x12\t\n\x05GAUGE\x10\x01\x12\t\n\x05DELTA\x10\x02\x12\x0e\n\nCUMU\ - LATIVE\x10\x03\"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\0\ - \x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06DOUBLE\ - \x10\x03\x12\n\n\x06STRING\x10\x04\x12\x10\n\x0cDISTRIBUTION\x10\x05\x12\ - \t\n\x05MONEY\x10\x06\"\x8f\x01\n\x06Metric\x12\x12\n\x04type\x18\x03\ - \x20\x01(\tR\x04type\x126\n\x06labels\x18\x02\x20\x03(\x0b2\x1e.google.a\ - pi.Metric.LabelsEntryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\ - \x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05va\ - lue:\x028\x01B_\n\x0ecom.google.apiB\x0bMetricProtoP\x01Z7google.golang.\ - org/genproto/googleapis/api/metric;metric\xa2\x02\x04GAPIJ\xcdQ\n\x07\ - \x12\x05\x0e\0\x8b\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ - he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ - \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ - ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ - of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ - licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ - w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0\x20\n\t\n\x02\x03\x01\ - \x12\x03\x13\0'\n\t\n\x02\x03\x02\x12\x03\x14\0(\n\x08\n\x01\x08\x12\x03\ - \x16\0N\n\t\n\x02\x08\x0b\x12\x03\x16\0N\n\x08\n\x01\x08\x12\x03\x17\0\"\ - \n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0,\n\t\n\ - \x02\x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\ - \x01\x12\x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\ - \x03\x1a\0\"\n\xbf\x01\n\x02\x04\0\x12\x05\x20\0\xfe\x01\x01\x1a\xb1\x01\ - \x20Defines\x20a\x20metric\x20type\x20and\x20its\x20schema.\x20Once\x20a\ - \x20metric\x20descriptor\x20is\x20created,\n\x20deleting\x20or\x20alteri\ - ng\x20it\x20stops\x20data\x20collection\x20and\x20makes\x20the\x20metric\ - \x20type's\n\x20existing\x20data\x20unusable.\n\n\n\n\n\x03\x04\0\x01\ - \x12\x03\x20\x08\x18\n\xd9\x01\n\x04\x04\0\x04\0\x12\x04$\x024\x03\x1a\ - \xca\x01\x20The\x20kind\x20of\x20measurement.\x20It\x20describes\x20how\ - \x20the\x20data\x20is\x20reported.\n\x20For\x20information\x20on\x20sett\ - ing\x20the\x20start\x20time\x20and\x20end\x20time\x20based\x20on\n\x20th\ - e\x20MetricKind,\x20see\x20[TimeInterval][google.monitoring.v3.TimeInter\ - val].\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03$\x07\x11\n/\n\x06\x04\0\x04\ - \0\x02\0\x12\x03&\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\ - \x20value.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03&\x04\x1b\n\x0e\n\ - \x07\x04\0\x04\0\x02\0\x02\x12\x03&\x1e\x1f\n9\n\x06\x04\0\x04\0\x02\x01\ - \x12\x03)\x04\x0e\x1a*\x20An\x20instantaneous\x20measurement\x20of\x20a\ - \x20value.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03)\x04\t\n\x0e\n\ - \x07\x04\0\x04\0\x02\x01\x02\x12\x03)\x0c\r\n>\n\x06\x04\0\x04\0\x02\x02\ - \x12\x03,\x04\x0e\x1a/\x20The\x20change\x20in\x20a\x20value\x20during\ - \x20a\x20time\x20interval.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03\ - ,\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x03,\x0c\r\n\x8a\x02\n\ - \x06\x04\0\x04\0\x02\x03\x12\x033\x04\x13\x1a\xfa\x01\x20A\x20value\x20a\ - ccumulated\x20over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20meas\ - urements\x20in\x20a\x20time\x20series\x20should\x20have\x20the\x20same\ - \x20start\x20time\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\ - \x20event\x20resets\x20the\x20cumulative\n\x20value\x20to\x20zero\x20and\ - \x20sets\x20a\x20new\x20start\x20time\x20for\x20the\x20following\n\x20po\ - ints.\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x033\x04\x0e\n\x0e\n\x07\ - \x04\0\x04\0\x02\x03\x02\x12\x033\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04\ - 7\x02N\x03\x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\ - \n\x05\x04\0\x04\x01\x01\x12\x037\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\ - \x12\x039\x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20valu\ - e.\n\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x039\x04\x1a\n\x0e\n\x07\ - \x04\0\x04\x01\x02\0\x02\x12\x039\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\ - \x12\x03=\x04\r\x1aZ\x20The\x20value\x20is\x20a\x20boolean.\n\x20This\ - \x20value\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\ - \x20kind\x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\ - \x03=\x04\x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03=\x0b\x0c\n6\ - \n\x06\x04\0\x04\x01\x02\x02\x12\x03@\x04\x0e\x1a'\x20The\x20value\x20is\ - \x20a\x20signed\x2064-bit\x20integer.\n\n\x0e\n\x07\x04\0\x04\x01\x02\ - \x02\x01\x12\x03@\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03@\ - \x0c\r\nG\n\x06\x04\0\x04\x01\x02\x03\x12\x03C\x04\x0f\x1a8\x20The\x20va\ - lue\x20is\x20a\x20double\x20precision\x20floating\x20point\x20number.\n\ - \n\x0e\n\x07\x04\0\x04\x01\x02\x03\x01\x12\x03C\x04\n\n\x0e\n\x07\x04\0\ - \x04\x01\x02\x03\x02\x12\x03C\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\ - \x03G\x04\x0f\x1a^\x20The\x20value\x20is\x20a\x20text\x20string.\n\x20Th\ - is\x20value\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\ - \x20kind\x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\ - \x03G\x04\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03G\r\x0e\nJ\n\ - \x06\x04\0\x04\x01\x02\x05\x12\x03J\x04\x15\x1a;\x20The\x20value\x20is\ - \x20a\x20[`Distribution`][google.api.Distribution].\n\n\x0e\n\x07\x04\0\ - \x04\x01\x02\x05\x01\x12\x03J\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\ - \x02\x12\x03J\x13\x14\n$\n\x06\x04\0\x04\x01\x02\x06\x12\x03M\x04\x0e\ - \x1a\x15\x20The\x20value\x20is\x20money.\n\n\x0e\n\x07\x04\0\x04\x01\x02\ - \x06\x01\x12\x03M\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x02\x12\x03M\ - \x0c\r\nW\n\x04\x04\0\x03\0\x12\x04Q\x02a\x03\x1aI\x20Additional\x20anno\ - tations\x20that\x20can\x20be\x20used\x20to\x20guide\x20the\x20usage\x20o\ - f\x20a\x20metric.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03Q\n\"\n~\n\x06\ - \x04\0\x03\0\x02\0\x12\x03U\x045\x1ao\x20Deprecated.\x20Must\x20use\x20t\ - he\n\x20[MetricDescriptor.launch_stage][google.api.MetricDescriptor.laun\ - ch_stage]\n\x20instead.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03U\x04\ - \x0f\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03U\x10\x1c\n\x0e\n\x07\x04\ - \0\x03\0\x02\0\x03\x12\x03U\x1f\x20\n\x0e\n\x07\x04\0\x03\0\x02\0\x08\ - \x12\x03U!4\n\x0f\n\x08\x04\0\x03\0\x02\0\x08\x03\x12\x03U\"3\n\x8a\x02\ - \n\x06\x04\0\x03\0\x02\x01\x12\x03[\x04/\x1a\xfa\x01\x20The\x20sampling\ - \x20period\x20of\x20metric\x20data\x20points.\x20For\x20metrics\x20which\ - \x20are\x20written\n\x20periodically,\x20consecutive\x20data\x20points\ - \x20are\x20stored\x20at\x20this\x20time\x20interval,\n\x20excluding\x20d\ - ata\x20loss\x20due\x20to\x20errors.\x20Metrics\x20with\x20a\x20higher\ - \x20granularity\x20have\n\x20a\x20smaller\x20sampling\x20period.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x01\x06\x12\x03[\x04\x1c\n\x0e\n\x07\x04\0\x03\0\ - \x02\x01\x01\x12\x03[\x1d*\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03[-\ - .\n\xbc\x01\n\x06\x04\0\x03\0\x02\x02\x12\x03`\x04.\x1a\xac\x01\x20The\ - \x20delay\x20of\x20data\x20points\x20caused\x20by\x20ingestion.\x20Data\ - \x20points\x20older\x20than\x20this\n\x20age\x20are\x20guaranteed\x20to\ - \x20be\x20ingested\x20and\x20available\x20to\x20be\x20read,\x20excluding\ - \n\x20data\x20loss\x20due\x20to\x20errors.\n\n\x0e\n\x07\x04\0\x03\0\x02\ - \x02\x06\x12\x03`\x04\x1c\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03`\ - \x1d)\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03`,-\n:\n\x04\x04\0\x02\ - \0\x12\x03d\x02\x12\x1a-\x20The\x20resource\x20name\x20of\x20the\x20metr\ - ic\x20descriptor.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03d\x02\x08\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03d\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03d\ - \x10\x11\n\xa9\x03\n\x04\x04\0\x02\x01\x12\x03n\x02\x12\x1a\x9b\x03\x20T\ - he\x20metric\x20type,\x20including\x20its\x20DNS\x20name\x20prefix.\x20T\ - he\x20type\x20is\x20not\n\x20URL-encoded.\x20All\x20user-defined\x20metr\ - ic\x20types\x20have\x20the\x20DNS\x20name\n\x20`custom.googleapis.com`\ - \x20or\x20`external.googleapis.com`.\x20Metric\x20types\x20should\n\x20u\ - se\x20a\x20natural\x20hierarchical\x20grouping.\x20For\x20example:\n\n\ - \x20\x20\x20\x20\x20\"custom.googleapis.com/invoice/paid/amount\"\n\x20\ - \x20\x20\x20\x20\"external.googleapis.com/prometheus/up\"\n\x20\x20\x20\ - \x20\x20\"appengine.googleapis.com/http/server/response_latencies\"\n\n\ - \x0c\n\x05\x04\0\x02\x01\x05\x12\x03n\x02\x08\n\x0c\n\x05\x04\0\x02\x01\ - \x01\x12\x03n\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03n\x10\x11\n\xd5\ - \x02\n\x04\x04\0\x02\x02\x12\x03v\x02&\x1a\xc7\x02\x20The\x20set\x20of\ - \x20labels\x20that\x20can\x20be\x20used\x20to\x20describe\x20a\x20specif\ - ic\n\x20instance\x20of\x20this\x20metric\x20type.\x20For\x20example,\x20\ - the\n\x20`appengine.googleapis.com/http/server/response_latencies`\x20me\ - tric\n\x20type\x20has\x20a\x20label\x20for\x20the\x20HTTP\x20response\ - \x20code,\x20`response_code`,\x20so\n\x20you\x20can\x20look\x20at\x20lat\ - encies\x20for\x20successful\x20responses\x20or\x20just\n\x20for\x20respo\ - nses\x20that\x20failed.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03v\x02\n\n\ - \x0c\n\x05\x04\0\x02\x02\x06\x12\x03v\x0b\x1a\n\x0c\n\x05\x04\0\x02\x02\ - \x01\x12\x03v\x1b!\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03v$%\n\xa6\x01\n\ - \x04\x04\0\x02\x03\x12\x03z\x02\x1d\x1a\x98\x01\x20Whether\x20the\x20met\ - ric\x20records\x20instantaneous\x20values,\x20changes\x20to\x20a\x20valu\ - e,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`v\ - alue_type`\x20might\x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\ - \x03\x06\x12\x03z\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03z\r\x18\n\ - \x0c\n\x05\x04\0\x02\x03\x03\x12\x03z\x1b\x1c\n\xa1\x01\n\x04\x04\0\x02\ - \x04\x12\x03~\x02\x1b\x1a\x93\x01\x20Whether\x20the\x20measurement\x20is\ - \x20an\x20integer,\x20a\x20floating-point\x20number,\x20etc.\n\x20Some\ - \x20combinations\x20of\x20`metric_kind`\x20and\x20`value_type`\x20might\ - \x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03~\x02\ - \x0b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03~\x0c\x16\n\x0c\n\x05\x04\0\ - \x02\x04\x03\x12\x03~\x19\x1a\n\xca\x1e\n\x04\x04\0\x02\x05\x12\x04\xe6\ - \x01\x02\x12\x1a\xbb\x1e\x20The\x20units\x20in\x20which\x20the\x20metric\ - \x20value\x20is\x20reported.\x20It\x20is\x20only\x20applicable\n\x20if\ - \x20the\x20`value_type`\x20is\x20`INT64`,\x20`DOUBLE`,\x20or\x20`DISTRIB\ - UTION`.\x20The\x20`unit`\n\x20defines\x20the\x20representation\x20of\x20\ - the\x20stored\x20metric\x20values.\n\n\x20Different\x20systems\x20might\ - \x20scale\x20the\x20values\x20to\x20be\x20more\x20easily\x20displayed\ - \x20(so\x20a\n\x20value\x20of\x20`0.02kBy`\x20_might_\x20be\x20displayed\ - \x20as\x20`20By`,\x20and\x20a\x20value\x20of\n\x20`3523kBy`\x20_might_\ - \x20be\x20displayed\x20as\x20`3.5MBy`).\x20However,\x20if\x20the\x20`uni\ - t`\x20is\n\x20`kBy`,\x20then\x20the\x20value\x20of\x20the\x20metric\x20i\ - s\x20always\x20in\x20thousands\x20of\x20bytes,\x20no\n\x20matter\x20how\ - \x20it\x20might\x20be\x20displayed.\n\n\x20If\x20you\x20want\x20a\x20cus\ - tom\x20metric\x20to\x20record\x20the\x20exact\x20number\x20of\x20CPU-sec\ - onds\x20used\n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\x20`INT6\ - 4\x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU}`\x20(or\ - \x20equivalently\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20the\x20job\ - \x20uses\x2012,005\n\x20CPU-seconds,\x20then\x20the\x20value\x20is\x20wr\ - itten\x20as\x20`12005`.\n\n\x20Alternatively,\x20if\x20you\x20want\x20a\ - \x20custom\x20metric\x20to\x20record\x20data\x20in\x20a\x20more\n\x20gra\ - nular\x20way,\x20you\x20can\x20create\x20a\x20`DOUBLE\x20CUMULATIVE`\x20\ - metric\x20whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20and\x20then\x20write\ - \x20the\x20value\x20`12.005`\x20(which\x20is\x20`12005/1000`),\n\x20or\ - \x20use\x20`Kis{CPU}`\x20and\x20write\x20`11.723`\x20(which\x20is\x20`12\ - 005/1024`).\n\n\x20The\x20supported\x20units\x20are\x20a\x20subset\x20of\ - \x20[The\x20Unified\x20Code\x20for\x20Units\x20of\n\x20Measure](https://\ - unitsofmeasure.org/ucum.html)\x20standard:\n\n\x20**Basic\x20units\x20(U\ - NIT)**\n\n\x20*\x20`bit`\x20\x20\x20bit\n\x20*\x20`By`\x20\x20\x20\x20by\ - te\n\x20*\x20`s`\x20\x20\x20\x20\x20second\n\x20*\x20`min`\x20\x20\x20mi\ - nute\n\x20*\x20`h`\x20\x20\x20\x20\x20hour\n\x20*\x20`d`\x20\x20\x20\x20\ - \x20day\n\x20*\x20`1`\x20\x20\x20\x20\x20dimensionless\n\n\x20**Prefixes\ - \x20(PREFIX)**\n\n\x20*\x20`k`\x20\x20\x20\x20\x20kilo\x20\x20\x20\x20(1\ - 0^3)\n\x20*\x20`M`\x20\x20\x20\x20\x20mega\x20\x20\x20\x20(10^6)\n\x20*\ - \x20`G`\x20\x20\x20\x20\x20giga\x20\x20\x20\x20(10^9)\n\x20*\x20`T`\x20\ - \x20\x20\x20\x20tera\x20\x20\x20\x20(10^12)\n\x20*\x20`P`\x20\x20\x20\ - \x20\x20peta\x20\x20\x20\x20(10^15)\n\x20*\x20`E`\x20\x20\x20\x20\x20exa\ - \x20\x20\x20\x20\x20(10^18)\n\x20*\x20`Z`\x20\x20\x20\x20\x20zetta\x20\ - \x20\x20(10^21)\n\x20*\x20`Y`\x20\x20\x20\x20\x20yotta\x20\x20\x20(10^24\ - )\n\n\x20*\x20`m`\x20\x20\x20\x20\x20milli\x20\x20\x20(10^-3)\n\x20*\x20\ - `u`\x20\x20\x20\x20\x20micro\x20\x20\x20(10^-6)\n\x20*\x20`n`\x20\x20\ - \x20\x20\x20nano\x20\x20\x20\x20(10^-9)\n\x20*\x20`p`\x20\x20\x20\x20\ - \x20pico\x20\x20\x20\x20(10^-12)\n\x20*\x20`f`\x20\x20\x20\x20\x20femto\ - \x20\x20\x20(10^-15)\n\x20*\x20`a`\x20\x20\x20\x20\x20atto\x20\x20\x20\ - \x20(10^-18)\n\x20*\x20`z`\x20\x20\x20\x20\x20zepto\x20\x20\x20(10^-21)\ - \n\x20*\x20`y`\x20\x20\x20\x20\x20yocto\x20\x20\x20(10^-24)\n\n\x20*\x20\ - `Ki`\x20\x20\x20\x20kibi\x20\x20\x20\x20(2^10)\n\x20*\x20`Mi`\x20\x20\ - \x20\x20mebi\x20\x20\x20\x20(2^20)\n\x20*\x20`Gi`\x20\x20\x20\x20gibi\ - \x20\x20\x20\x20(2^30)\n\x20*\x20`Ti`\x20\x20\x20\x20tebi\x20\x20\x20\ - \x20(2^40)\n\x20*\x20`Pi`\x20\x20\x20\x20pebi\x20\x20\x20\x20(2^50)\n\n\ - \x20**Grammar**\n\n\x20The\x20grammar\x20also\x20includes\x20these\x20co\ - nnectors:\n\n\x20*\x20`/`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\ - \x20an\x20infix\x20operator).\x20For\x20examples,\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20`kBy/{email}`\x20or\x20`MiBy/10ms`\x20(although\x20y\ - ou\x20should\x20almost\x20never\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20have\x20`/s`\x20in\x20a\x20metric\x20`unit`;\x20rates\x20should\x20a\ - lways\x20be\x20computed\x20at\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20q\ - uery\x20time\x20from\x20the\x20underlying\x20cumulative\x20or\x20delta\ - \x20value).\n\x20*\x20`.`\x20\x20\x20\x20multiplication\x20or\x20composi\ - tion\x20(as\x20an\x20infix\x20operator).\x20For\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20examples,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20Th\ - e\x20grammar\x20for\x20a\x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\ - \x20\x20Expression\x20=\x20Component\x20{\x20\".\"\x20Component\x20}\x20\ - {\x20\"/\"\x20Component\x20}\x20;\n\n\x20\x20\x20\x20\x20Component\x20=\ - \x20(\x20[\x20PREFIX\x20]\x20UNIT\x20|\x20\"%\"\x20)\x20[\x20Annotation\ - \x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\ - Annotation\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - |\x20\"1\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - ;\n\n\x20\x20\x20\x20\x20Annotation\x20=\x20\"{\"\x20NAME\x20\"}\"\x20;\ - \n\n\x20Notes:\n\n\x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\ - \x20if\x20it\x20follows\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\ - \x20\x20\x20is\x20used\x20alone,\x20then\x20the\x20unit\x20is\x20equival\ - ent\x20to\x20`1`.\x20For\x20examples,\n\x20\x20\x20\x20`{request}/s\x20=\ - =\x201/s`,\x20`By{transmitted}/s\x20==\x20By/s`.\n\x20*\x20`NAME`\x20is\ - \x20a\x20sequence\x20of\x20non-blank\x20printable\x20ASCII\x20characters\ - \x20not\n\x20\x20\x20\x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\ - \x20represents\x20a\x20unitary\x20[dimensionless\n\x20\x20\x20\x20unit](\ - https://en.wikipedia.org/wiki/Dimensionless_quantity)\x20of\x201,\x20suc\ - h\n\x20\x20\x20\x20as\x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\ - \x20when\x20none\x20of\x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20\ - appropriate.\x20For\x20example,\x20\"new\x20users\x20per\x20day\"\x20can\ - \x20be\x20represented\x20as\n\x20\x20\x20\x20`1/d`\x20or\x20`{new-users}\ - /d`\x20(and\x20a\x20metric\x20value\x20`5`\x20would\x20mean\x20\"5\x20ne\ - w\n\x20\x20\x20\x20users).\x20Alternatively,\x20\"thousands\x20of\x20pag\ - e\x20views\x20per\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\ - \x20as\x20`1000/d`\x20or\x20`k1/d`\x20or\x20`k{page_views}/d`\x20(and\ - \x20a\x20metric\n\x20\x20\x20\x20value\x20of\x20`5.3`\x20would\x20mean\ - \x20\"5300\x20page\x20views\x20per\x20day\").\n\x20*\x20`%`\x20represent\ - s\x20dimensionless\x20value\x20of\x201/100,\x20and\x20annotates\x20value\ - s\x20giving\n\x20\x20\x20\x20a\x20percentage\x20(so\x20the\x20metric\x20\ - values\x20are\x20typically\x20in\x20the\x20range\x20of\x200..100,\n\x20\ - \x20\x20\x20and\x20a\x20metric\x20value\x20`3`\x20means\x20\"3\x20percen\ - t\").\n\x20*\x20`10^2.%`\x20indicates\x20a\x20metric\x20contains\x20a\ - \x20ratio,\x20typically\x20in\x20the\x20range\n\x20\x20\x20\x200..1,\x20\ - that\x20will\x20be\x20multiplied\x20by\x20100\x20and\x20displayed\x20as\ - \x20a\x20percentage\n\x20\x20\x20\x20(so\x20a\x20metric\x20value\x20`0.0\ - 3`\x20means\x20\"3\x20percent\").\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\ - \xe6\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe6\x01\t\r\n\r\n\ - \x05\x04\0\x02\x05\x03\x12\x04\xe6\x01\x10\x11\nY\n\x04\x04\0\x02\x06\ - \x12\x04\xe9\x01\x02\x19\x1aK\x20A\x20detailed\x20description\x20of\x20t\ - he\x20metric,\x20which\x20can\x20be\x20used\x20in\x20documentation.\n\n\ - \r\n\x05\x04\0\x02\x06\x05\x12\x04\xe9\x01\x02\x08\n\r\n\x05\x04\0\x02\ - \x06\x01\x12\x04\xe9\x01\t\x14\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xe9\ - \x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\x12\x04\xef\x01\x02\x1a\x1a\ - \x94\x02\x20A\x20concise\x20name\x20for\x20the\x20metric,\x20which\x20ca\ - n\x20be\x20displayed\x20in\x20user\x20interfaces.\n\x20Use\x20sentence\ - \x20case\x20without\x20an\x20ending\x20period,\x20for\x20example\x20\"Re\ - quest\x20count\".\n\x20This\x20field\x20is\x20optional\x20but\x20it\x20i\ - s\x20recommended\x20to\x20be\x20set\x20for\x20any\x20metrics\n\x20associ\ - ated\x20with\x20user-visible\x20concepts,\x20such\x20as\x20Quota.\n\n\r\ - \n\x05\x04\0\x02\x07\x05\x12\x04\xef\x01\x02\x08\n\r\n\x05\x04\0\x02\x07\ - \x01\x12\x04\xef\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xef\x01\ - \x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xf2\x01\x02)\x1aD\x20Optional.\ - \x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\x20usage\x20of\ - \x20the\x20metric.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xf2\x01\x02\x1a\ - \n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xf2\x01\x1b#\n\r\n\x05\x04\0\x02\ - \x08\x03\x12\x04\xf2\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf5\x01\x02\x20\ - \x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20metric\x20d\ - efinition.\n\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf5\x01\x02\r\n\r\n\x05\ - \x04\0\x02\t\x01\x12\x04\xf5\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\x12\ - \x04\xf5\x01\x1d\x1f\n\xd5\x02\n\x04\x04\0\x02\n\x12\x04\xfd\x01\x020\ - \x1a\xc6\x02\x20Read-only.\x20If\x20present,\x20then\x20a\x20[time\n\x20\ - series][google.monitoring.v3.TimeSeries],\x20which\x20is\x20identified\ - \x20partially\x20by\n\x20a\x20metric\x20type\x20and\x20a\n\x20[Monitored\ - ResourceDescriptor][google.api.MonitoredResourceDescriptor],\x20that\n\ - \x20is\x20associated\x20with\x20this\x20metric\x20type\x20can\x20only\ - \x20be\x20associated\x20with\x20one\x20of\x20the\n\x20monitored\x20resou\ - rce\x20types\x20listed\x20here.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\xfd\ - \x01\x02\n\n\r\n\x05\x04\0\x02\n\x05\x12\x04\xfd\x01\x0b\x11\n\r\n\x05\ - \x04\0\x02\n\x01\x12\x04\xfd\x01\x12*\n\r\n\x05\x04\0\x02\n\x03\x12\x04\ - \xfd\x01-/\n\x92\x01\n\x02\x04\x01\x12\x06\x82\x02\0\x8b\x02\x01\x1a\x83\ - \x01\x20A\x20specific\x20metric,\x20identified\x20by\x20specifying\x20va\ - lues\x20for\x20all\x20of\x20the\n\x20labels\x20of\x20a\x20[`MetricDescri\ - ptor`][google.api.MetricDescriptor].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\ - \x82\x02\x08\x0e\n\xa5\x01\n\x04\x04\x01\x02\0\x12\x04\x86\x02\x02\x12\ - \x1a\x96\x01\x20An\x20existing\x20metric\x20type,\x20see\n\x20[google.ap\ - i.MetricDescriptor][google.api.MetricDescriptor].\x20For\x20example,\n\ - \x20`custom.googleapis.com/invoice/paid/amount`.\n\n\r\n\x05\x04\x01\x02\ - \0\x05\x12\x04\x86\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x86\ - \x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x86\x02\x10\x11\n\x92\x01\n\ - \x04\x04\x01\x02\x01\x12\x04\x8a\x02\x02!\x1a\x83\x01\x20The\x20set\x20o\ - f\x20label\x20values\x20that\x20uniquely\x20identify\x20this\x20metric.\ - \x20All\n\x20labels\x20listed\x20in\x20the\x20`MetricDescriptor`\x20must\ - \x20be\x20assigned\x20values.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\ - \x8a\x02\x02\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x8a\x02\x16\x1c\n\ - \r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8a\x02\x1f\x20b\x06proto3\ + \x17.google.api.LaunchStageR\x0blaunchStage\x1a\xd8\x01\n\x18MetricDescr\ + iptorMetadata\x12>\n\x0claunch_stage\x18\x01\x20\x01(\x0e2\x17.google.ap\ + i.LaunchStageR\x0blaunchStageB\x02\x18\x01\x12>\n\rsample_period\x18\x02\ + \x20\x01(\x0b2\x19.google.protobuf.DurationR\x0csamplePeriod\x12<\n\x0ci\ + ngest_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0binges\ + tDelay\"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\x10\0\x12\t\ + \n\x05GAUGE\x10\x01\x12\t\n\x05DELTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\ + \x03\"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\0\x12\x08\n\ + \x04BOOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06DOUBLE\x10\x03\x12\ + \n\n\x06STRING\x10\x04\x12\x10\n\x0cDISTRIBUTION\x10\x05\x12\t\n\x05MONE\ + Y\x10\x06\"\x8f\x01\n\x06Metric\x12\x12\n\x04type\x18\x03\x20\x01(\tR\ + \x04type\x126\n\x06labels\x18\x02\x20\x03(\x0b2\x1e.google.api.Metric.La\ + belsEntryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\ + \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\ + \x01B_\n\x0ecom.google.apiB\x0bMetricProtoP\x01Z7google.golang.org/genpr\ + oto/googleapis/api/metric;metric\xa2\x02\x04GAPIJ\x99M\n\x07\x12\x05\x0f\ + \0\xff\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyrig\ + ht\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\ + \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ + \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ + the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ + icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ + SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ + eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x13\n\t\n\x02\x03\0\x12\x03\x13\0\x20\n\t\n\x02\x03\x01\x12\x03\x14\0'\ + \n\t\n\x02\x03\x02\x12\x03\x15\0(\n\x08\n\x01\x08\x12\x03\x17\0N\n\t\n\ + \x02\x08\x0b\x12\x03\x17\0N\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\ + \x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0,\n\t\n\x02\x08\x08\ + \x12\x03\x19\0,\n\x08\n\x01\x08\x12\x03\x1a\0'\n\t\n\x02\x08\x01\x12\x03\ + \x1a\0'\n\x08\n\x01\x08\x12\x03\x1b\0\"\n\t\n\x02\x08$\x12\x03\x1b\0\"\n\ + \xbe\x01\n\x02\x04\0\x12\x05\x20\0\xf3\x01\x01\x1a\xb0\x01\x20Defines\ + \x20a\x20metric\x20type\x20and\x20its\x20schema.\x20Once\x20a\x20metric\ + \x20descriptor\x20is\x20created,\n\x20deleting\x20or\x20altering\x20it\ + \x20stops\x20data\x20collection\x20and\x20makes\x20the\x20metric\x20type\ + 's\n\x20existing\x20data\x20unusable.\n\n\n\n\x03\x04\0\x01\x12\x03\x20\ + \x08\x18\nW\n\x04\x04\0\x03\0\x12\x04\"\x021\x03\x1aI\x20Additional\x20a\ + nnotations\x20that\x20can\x20be\x20used\x20to\x20guide\x20the\x20usage\ + \x20of\x20a\x20metric.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\"\n\"\n~\n\ + \x06\x04\0\x03\0\x02\0\x12\x03%\x045\x1ao\x20Deprecated.\x20Please\x20us\ + e\x20the\x20MetricDescriptor.launch_stage\x20instead.\n\x20The\x20launch\ + \x20stage\x20of\x20the\x20metric\x20definition.\n\n\x0e\n\x07\x04\0\x03\ + \0\x02\0\x06\x12\x03%\x04\x0f\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03%\ + \x10\x1c\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03%\x1f\x20\n\x0e\n\x07\ + \x04\0\x03\0\x02\0\x08\x12\x03%!4\n\x0f\n\x08\x04\0\x03\0\x02\0\x08\x03\ + \x12\x03%\"3\n\x8a\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03+\x04/\x1a\xfa\ + \x01\x20The\x20sampling\x20period\x20of\x20metric\x20data\x20points.\x20\ + For\x20metrics\x20which\x20are\x20written\n\x20periodically,\x20consecut\ + ive\x20data\x20points\x20are\x20stored\x20at\x20this\x20time\x20interval\ + ,\n\x20excluding\x20data\x20loss\x20due\x20to\x20errors.\x20Metrics\x20w\ + ith\x20a\x20higher\x20granularity\x20have\n\x20a\x20smaller\x20sampling\ + \x20period.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x06\x12\x03+\x04\x1c\n\x0e\ + \n\x07\x04\0\x03\0\x02\x01\x01\x12\x03+\x1d*\n\x0e\n\x07\x04\0\x03\0\x02\ + \x01\x03\x12\x03+-.\n\xbc\x01\n\x06\x04\0\x03\0\x02\x02\x12\x030\x04.\ + \x1a\xac\x01\x20The\x20delay\x20of\x20data\x20points\x20caused\x20by\x20\ + ingestion.\x20Data\x20points\x20older\x20than\x20this\n\x20age\x20are\ + \x20guaranteed\x20to\x20be\x20ingested\x20and\x20available\x20to\x20be\ + \x20read,\x20excluding\n\x20data\x20loss\x20due\x20to\x20errors.\n\n\x0e\ + \n\x07\x04\0\x03\0\x02\x02\x06\x12\x030\x04\x1c\n\x0e\n\x07\x04\0\x03\0\ + \x02\x02\x01\x12\x030\x1d)\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x030,\ + -\nO\n\x04\x04\0\x04\0\x12\x044\x02D\x03\x1aA\x20The\x20kind\x20of\x20me\ + asurement.\x20It\x20describes\x20how\x20the\x20data\x20is\x20reported.\n\ + \n\x0c\n\x05\x04\0\x04\0\x01\x12\x034\x07\x11\n/\n\x06\x04\0\x04\0\x02\0\ + \x12\x036\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20valu\ + e.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x036\x04\x1b\n\x0e\n\x07\x04\ + \0\x04\0\x02\0\x02\x12\x036\x1e\x1f\n9\n\x06\x04\0\x04\0\x02\x01\x12\x03\ + 9\x04\x0e\x1a*\x20An\x20instantaneous\x20measurement\x20of\x20a\x20value\ + .\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x039\x04\t\n\x0e\n\x07\x04\0\ + \x04\0\x02\x01\x02\x12\x039\x0c\r\n>\n\x06\x04\0\x04\0\x02\x02\x12\x03<\ + \x04\x0e\x1a/\x20The\x20change\x20in\x20a\x20value\x20during\x20a\x20tim\ + e\x20interval.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03<\x04\t\n\ + \x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x03<\x0c\r\n\x8a\x02\n\x06\x04\0\ + \x04\0\x02\x03\x12\x03C\x04\x13\x1a\xfa\x01\x20A\x20value\x20accumulated\ + \x20over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20measurements\ + \x20in\x20a\x20time\x20series\x20should\x20have\x20the\x20same\x20start\ + \x20time\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\x20event\ + \x20resets\x20the\x20cumulative\n\x20value\x20to\x20zero\x20and\x20sets\ + \x20a\x20new\x20start\x20time\x20for\x20the\x20following\n\x20points.\n\ + \n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x03C\x04\x0e\n\x0e\n\x07\x04\0\ + \x04\0\x02\x03\x02\x12\x03C\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04G\x02^\ + \x03\x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\n\x05\ + \x04\0\x04\x01\x01\x12\x03G\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\x12\x03\ + I\x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ + \x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03I\x04\x1a\n\x0e\n\x07\x04\0\ + \x04\x01\x02\0\x02\x12\x03I\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\x12\ + \x03M\x04\r\x1aZ\x20The\x20value\x20is\x20a\x20boolean.\n\x20This\x20val\ + ue\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\ + \x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x03M\x04\ + \x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03M\x0b\x0c\n6\n\x06\x04\ + \0\x04\x01\x02\x02\x12\x03P\x04\x0e\x1a'\x20The\x20value\x20is\x20a\x20s\ + igned\x2064-bit\x20integer.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x01\x12\ + \x03P\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03P\x0c\r\nG\n\ + \x06\x04\0\x04\x01\x02\x03\x12\x03S\x04\x0f\x1a8\x20The\x20value\x20is\ + \x20a\x20double\x20precision\x20floating\x20point\x20number.\n\n\x0e\n\ + \x07\x04\0\x04\x01\x02\x03\x01\x12\x03S\x04\n\n\x0e\n\x07\x04\0\x04\x01\ + \x02\x03\x02\x12\x03S\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\x03W\x04\ + \x0f\x1a^\x20The\x20value\x20is\x20a\x20text\x20string.\n\x20This\x20val\ + ue\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\ + \x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\x03W\x04\ + \n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03W\r\x0e\nJ\n\x06\x04\0\ + \x04\x01\x02\x05\x12\x03Z\x04\x15\x1a;\x20The\x20value\x20is\x20a\x20[`D\ + istribution`][google.api.Distribution].\n\n\x0e\n\x07\x04\0\x04\x01\x02\ + \x05\x01\x12\x03Z\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x02\x12\x03Z\ + \x13\x14\n$\n\x06\x04\0\x04\x01\x02\x06\x12\x03]\x04\x0e\x1a\x15\x20The\ + \x20value\x20is\x20money.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x01\x12\ + \x03]\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x02\x12\x03]\x0c\r\n:\n\ + \x04\x04\0\x02\0\x12\x03a\x02\x12\x1a-\x20The\x20resource\x20name\x20of\ + \x20the\x20metric\x20descriptor.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03a\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03a\t\r\n\x0c\n\x05\x04\0\x02\ + \0\x03\x12\x03a\x10\x11\n\xab\x03\n\x04\x04\0\x02\x01\x12\x03k\x02\x12\ + \x1a\x9d\x03\x20The\x20metric\x20type,\x20including\x20its\x20DNS\x20nam\ + e\x20prefix.\x20The\x20type\x20is\x20not\n\x20URL-encoded.\x20\x20All\ + \x20user-defined\x20metric\x20types\x20have\x20the\x20DNS\x20name\n\x20`\ + custom.googleapis.com`\x20or\x20`external.googleapis.com`.\x20\x20Metric\ + \x20types\x20should\n\x20use\x20a\x20natural\x20hierarchical\x20grouping\ + .\x20For\x20example:\n\n\x20\x20\x20\x20\x20\"custom.googleapis.com/invo\ + ice/paid/amount\"\n\x20\x20\x20\x20\x20\"external.googleapis.com/prometh\ + eus/up\"\n\x20\x20\x20\x20\x20\"appengine.googleapis.com/http/server/res\ + ponse_latencies\"\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03k\x02\x08\n\x0c\ + \n\x05\x04\0\x02\x01\x01\x12\x03k\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x03k\x10\x11\n\xd5\x02\n\x04\x04\0\x02\x02\x12\x03s\x02&\x1a\xc7\x02\ + \x20The\x20set\x20of\x20labels\x20that\x20can\x20be\x20used\x20to\x20des\ + cribe\x20a\x20specific\n\x20instance\x20of\x20this\x20metric\x20type.\ + \x20For\x20example,\x20the\n\x20`appengine.googleapis.com/http/server/re\ + sponse_latencies`\x20metric\n\x20type\x20has\x20a\x20label\x20for\x20the\ + \x20HTTP\x20response\x20code,\x20`response_code`,\x20so\n\x20you\x20can\ + \x20look\x20at\x20latencies\x20for\x20successful\x20responses\x20or\x20j\ + ust\n\x20for\x20responses\x20that\x20failed.\n\n\x0c\n\x05\x04\0\x02\x02\ + \x04\x12\x03s\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03s\x0b\x1a\n\x0c\ + \n\x05\x04\0\x02\x02\x01\x12\x03s\x1b!\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ + \x03s$%\n\xa6\x01\n\x04\x04\0\x02\x03\x12\x03w\x02\x1d\x1a\x98\x01\x20Wh\ + ether\x20the\x20metric\x20records\x20instantaneous\x20values,\x20changes\ + \x20to\x20a\x20value,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric\ + _kind`\x20and\x20`value_type`\x20might\x20not\x20be\x20supported.\n\n\ + \x0c\n\x05\x04\0\x02\x03\x06\x12\x03w\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\ + \x01\x12\x03w\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03w\x1b\x1c\n\xa1\ + \x01\n\x04\x04\0\x02\x04\x12\x03{\x02\x1b\x1a\x93\x01\x20Whether\x20the\ + \x20measurement\x20is\x20an\x20integer,\x20a\x20floating-point\x20number\ + ,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`va\ + lue_type`\x20might\x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\ + \x04\x06\x12\x03{\x02\x0b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03{\x0c\x16\ + \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03{\x19\x1a\n\xb3\x1e\n\x04\x04\0\ + \x02\x05\x12\x04\xe3\x01\x02\x12\x1a\xa4\x10\x20*\x20`Ki`\x20\x20\x20\ + \x20kibi\x20\x20\x20\x20(2^10)\n\x20*\x20`Mi`\x20\x20\x20\x20mebi\x20\ + \x20\x20\x20(2^20)\n\x20*\x20`Gi`\x20\x20\x20\x20gibi\x20\x20\x20\x20(2^\ + 30)\n\x20*\x20`Ti`\x20\x20\x20\x20tebi\x20\x20\x20\x20(2^40)\n\x20*\x20`\ + Pi`\x20\x20\x20\x20pebi\x20\x20\x20\x20(2^50)\n\n\x20**Grammar**\n\n\x20\ + The\x20grammar\x20also\x20includes\x20these\x20connectors:\n\n\x20*\x20`\ + /`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\x20an\x20infix\x20opera\ + tor).\x20For\x20examples,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`kBy/\ + {email}`\x20or\x20`MiBy/10ms`\x20(although\x20you\x20should\x20almost\ + \x20never\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20have\x20`/s`\x20in\ + \x20a\x20metric\x20`unit`;\x20rates\x20should\x20always\x20be\x20compute\ + d\x20at\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20query\x20time\x20from\ + \x20the\x20underlying\x20cumulative\x20or\x20delta\x20value).\n\x20*\x20\ + `.`\x20\x20\x20\x20multiplication\x20or\x20composition\x20(as\x20an\x20i\ + nfix\x20operator).\x20For\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20examp\ + les,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20The\x20grammar\x20for\x20a\ + \x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\x20\x20Expression\x20=\ + \x20Component\x20{\x20\".\"\x20Component\x20}\x20{\x20\"/\"\x20Component\ + \x20}\x20;\n\n\x20\x20\x20\x20\x20Component\x20=\x20(\x20[\x20PREFIX\x20\ + ]\x20UNIT\x20|\x20\"%\"\x20)\x20[\x20Annotation\x20]\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20Annotation\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"1\"\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20;\n\n\x20\x20\x20\ + \x20\x20Annotation\x20=\x20\"{\"\x20NAME\x20\"}\"\x20;\n\n\x20Notes:\n\n\ + \x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\x20if\x20it\x20follo\ + ws\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\x20\x20\x20is\x20use\ + d\x20alone,\x20then\x20the\x20unit\x20is\x20equivalent\x20to\x20`1`.\x20\ + For\x20examples,\n\x20\x20\x20\x20`{request}/s\x20==\x201/s`,\x20`By{tra\ + nsmitted}/s\x20==\x20By/s`.\n\x20*\x20`NAME`\x20is\x20a\x20sequence\x20o\ + f\x20non-blank\x20printable\x20ASCII\x20characters\x20not\n\x20\x20\x20\ + \x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\x20represents\x20a\x20\ + unitary\x20[dimensionless\n\x20\x20\x20\x20unit](https://en.wikipedia.or\ + g/wiki/Dimensionless_quantity)\x20of\x201,\x20such\n\x20\x20\x20\x20as\ + \x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\x20when\x20none\x20of\ + \x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20appropriate.\x20For\ + \x20example,\x20\"new\x20users\x20per\x20day\"\x20can\x20be\x20represent\ + ed\x20as\n\x20\x20\x20\x20`1/d`\x20or\x20`{new-users}/d`\x20(and\x20a\ + \x20metric\x20value\x20`5`\x20would\x20mean\x20\"5\x20new\n\x20\x20\x20\ + \x20users).\x20Alternatively,\x20\"thousands\x20of\x20page\x20views\x20p\ + er\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\x20as\x20`1000/d\ + `\x20or\x20`k1/d`\x20or\x20`k{page_views}/d`\x20(and\x20a\x20metric\n\ + \x20\x20\x20\x20value\x20of\x20`5.3`\x20would\x20mean\x20\"5300\x20page\ + \x20views\x20per\x20day\").\n\x20*\x20`%`\x20represents\x20dimensionless\ + \x20value\x20of\x201/100,\x20and\x20annotates\x20values\x20giving\n\x20\ + \x20\x20\x20a\x20percentage\x20(so\x20the\x20metric\x20values\x20are\x20\ + typically\x20in\x20the\x20range\x20of\x200..100,\n\x20\x20\x20\x20and\ + \x20a\x20metric\x20value\x20`3`\x20means\x20\"3\x20percent\").\n\x20*\ + \x20`10^2.%`\x20indicates\x20a\x20metric\x20contains\x20a\x20ratio,\x20t\ + ypically\x20in\x20the\x20range\n\x20\x20\x20\x200..1,\x20that\x20will\ + \x20be\x20multiplied\x20by\x20100\x20and\x20displayed\x20as\x20a\x20perc\ + entage\n\x20\x20\x20\x20(so\x20a\x20metric\x20value\x20`0.03`\x20means\ + \x20\"3\x20percent\").\n\n2\x9d\x0c\x20The\x20units\x20in\x20which\x20th\ + e\x20metric\x20value\x20is\x20reported.\x20It\x20is\x20only\x20applicabl\ + e\n\x20if\x20the\x20`value_type`\x20is\x20`INT64`,\x20`DOUBLE`,\x20or\ + \x20`DISTRIBUTION`.\x20The\x20`unit`\n\x20defines\x20the\x20representati\ + on\x20of\x20the\x20stored\x20metric\x20values.\n\n\x20Different\x20syste\ + ms\x20may\x20scale\x20the\x20values\x20to\x20be\x20more\x20easily\x20dis\ + played\x20(so\x20a\n\x20value\x20of\x20`0.02KBy`\x20_might_\x20be\x20dis\ + played\x20as\x20`20By`,\x20and\x20a\x20value\x20of\n\x20`3523KBy`\x20_mi\ + ght_\x20be\x20displayed\x20as\x20`3.5MBy`).\x20However,\x20if\x20the\x20\ + `unit`\x20is\n\x20`KBy`,\x20then\x20the\x20value\x20of\x20the\x20metric\ + \x20is\x20always\x20in\x20thousands\x20of\x20bytes,\x20no\n\x20matter\ + \x20how\x20it\x20may\x20be\x20displayed..\n\n\x20If\x20you\x20want\x20a\ + \x20custom\x20metric\x20to\x20record\x20the\x20exact\x20number\x20of\x20\ + CPU-seconds\x20used\n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\ + \x20`INT64\x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU\ + }`\x20(or\x20equivalently\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20t\ + he\x20job\x20uses\x2012,005\n\x20CPU-seconds,\x20then\x20the\x20value\ + \x20is\x20written\x20as\x20`12005`.\n\n\x20Alternatively,\x20if\x20you\ + \x20want\x20a\x20custome\x20metric\x20to\x20record\x20data\x20in\x20a\ + \x20more\n\x20granular\x20way,\x20you\x20can\x20create\x20a\x20`DOUBLE\ + \x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20an\ + d\x20then\x20write\x20the\x20value\x20`12.005`\x20(which\x20is\x20`12005\ + /1000`),\n\x20or\x20use\x20`Kis{CPU}`\x20and\x20write\x20`11.723`\x20(wh\ + ich\x20is\x20`12005/1024`).\n\n\x20The\x20supported\x20units\x20are\x20a\ + \x20subset\x20of\x20[The\x20Unified\x20Code\x20for\x20Units\x20of\n\x20M\ + easure](http://unitsofmeasure.org/ucum.html)\x20standard:\n\n\x20**Basic\ + \x20units\x20(UNIT)**\n\n\x20*\x20`bit`\x20\x20\x20bit\n\x20*\x20`By`\ + \x20\x20\x20\x20byte\n\x20*\x20`s`\x20\x20\x20\x20\x20second\n\x20*\x20`\ + min`\x20\x20\x20minute\n\x20*\x20`h`\x20\x20\x20\x20\x20hour\n\x20*\x20`\ + d`\x20\x20\x20\x20\x20day\n\n\x20**Prefixes\x20(PREFIX)**\n\n\x20*\x20`k\ + `\x20\x20\x20\x20\x20kilo\x20\x20\x20\x20(10^3)\n\x20*\x20`M`\x20\x20\ + \x20\x20\x20mega\x20\x20\x20\x20(10^6)\n\x20*\x20`G`\x20\x20\x20\x20\x20\ + giga\x20\x20\x20\x20(10^9)\n\x20*\x20`T`\x20\x20\x20\x20\x20tera\x20\x20\ + \x20\x20(10^12)\n\x20*\x20`P`\x20\x20\x20\x20\x20peta\x20\x20\x20\x20(10\ + ^15)\n\x20*\x20`E`\x20\x20\x20\x20\x20exa\x20\x20\x20\x20\x20(10^18)\n\ + \x20*\x20`Z`\x20\x20\x20\x20\x20zetta\x20\x20\x20(10^21)\n\x20*\x20`Y`\ + \x20\x20\x20\x20\x20yotta\x20\x20\x20(10^24)\n2\xdd\x01\x20*\x20`m`\x20\ + \x20\x20\x20\x20milli\x20\x20\x20(10^-3)\n\x20*\x20`u`\x20\x20\x20\x20\ + \x20micro\x20\x20\x20(10^-6)\n\x20*\x20`n`\x20\x20\x20\x20\x20nano\x20\ + \x20\x20\x20(10^-9)\n\x20*\x20`p`\x20\x20\x20\x20\x20pico\x20\x20\x20\ + \x20(10^-12)\n\x20*\x20`f`\x20\x20\x20\x20\x20femto\x20\x20\x20(10^-15)\ + \n\x20*\x20`a`\x20\x20\x20\x20\x20atto\x20\x20\x20\x20(10^-18)\n\x20*\ + \x20`z`\x20\x20\x20\x20\x20zepto\x20\x20\x20(10^-21)\n\x20*\x20`y`\x20\ + \x20\x20\x20\x20yocto\x20\x20\x20(10^-24)\n\n\r\n\x05\x04\0\x02\x05\x05\ + \x12\x04\xe3\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe3\x01\t\r\ + \n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xe3\x01\x10\x11\nY\n\x04\x04\0\x02\ + \x06\x12\x04\xe6\x01\x02\x19\x1aK\x20A\x20detailed\x20description\x20of\ + \x20the\x20metric,\x20which\x20can\x20be\x20used\x20in\x20documentation.\ + \n\n\r\n\x05\x04\0\x02\x06\x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\x04\0\ + \x02\x06\x01\x12\x04\xe6\x01\t\x14\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\ + \xe6\x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\x12\x04\xec\x01\x02\x1a\ + \x1a\x94\x02\x20A\x20concise\x20name\x20for\x20the\x20metric,\x20which\ + \x20can\x20be\x20displayed\x20in\x20user\x20interfaces.\n\x20Use\x20sent\ + ence\x20case\x20without\x20an\x20ending\x20period,\x20for\x20example\x20\ + \"Request\x20count\".\n\x20This\x20field\x20is\x20optional\x20but\x20it\ + \x20is\x20recommended\x20to\x20be\x20set\x20for\x20any\x20metrics\n\x20a\ + ssociated\x20with\x20user-visible\x20concepts,\x20such\x20as\x20Quota.\n\ + \n\r\n\x05\x04\0\x02\x07\x05\x12\x04\xec\x01\x02\x08\n\r\n\x05\x04\0\x02\ + \x07\x01\x12\x04\xec\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xec\ + \x01\x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xef\x01\x02)\x1aD\x20Optiona\ + l.\x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\x20usage\x20\ + of\x20the\x20metric.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xef\x01\x02\ + \x1a\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xef\x01\x1b#\n\r\n\x05\x04\0\ + \x02\x08\x03\x12\x04\xef\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf2\x01\x02\ + \x20\x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20metric\ + \x20definition.\n\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf2\x01\x02\r\n\r\n\ + \x05\x04\0\x02\t\x01\x12\x04\xf2\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\ + \x12\x04\xf2\x01\x1d\x1f\n\x92\x01\n\x02\x04\x01\x12\x06\xf7\x01\0\xff\ + \x01\x01\x1a\x83\x01\x20A\x20specific\x20metric,\x20identified\x20by\x20\ + specifying\x20values\x20for\x20all\x20of\x20the\n\x20labels\x20of\x20a\ + \x20[`MetricDescriptor`][google.api.MetricDescriptor].\n\n\x0b\n\x03\x04\ + \x01\x01\x12\x04\xf7\x01\x08\x0e\n\xa4\x01\n\x04\x04\x01\x02\0\x12\x04\ + \xfa\x01\x02\x12\x1a\x95\x01\x20An\x20existing\x20metric\x20type,\x20see\ + \x20[google.api.MetricDescriptor][google.api.MetricDescriptor].\n\x20For\ + \x20example,\x20`custom.googleapis.com/invoice/paid/amount`.\n\n\r\n\x05\ + \x04\x01\x02\0\x05\x12\x04\xfa\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\ + \x12\x04\xfa\x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xfa\x01\x10\x11\ + \n\x92\x01\n\x04\x04\x01\x02\x01\x12\x04\xfe\x01\x02!\x1a\x83\x01\x20The\ + \x20set\x20of\x20label\x20values\x20that\x20uniquely\x20identify\x20this\ + \x20metric.\x20All\n\x20labels\x20listed\x20in\x20the\x20`MetricDescript\ + or`\x20must\x20be\x20assigned\x20values.\n\n\r\n\x05\x04\x01\x02\x01\x06\ + \x12\x04\xfe\x01\x02\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xfe\x01\ + \x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xfe\x01\x1f\x20b\x06proto\ + 3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(super::label::file_descriptor().clone()); + deps.push(super::launch_stage::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(MetricDescriptor::generated_message_descriptor_data()); + messages.push(Metric::generated_message_descriptor_data()); + messages.push(metric_descriptor::MetricDescriptorMetadata::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(2); + enums.push(metric_descriptor::MetricKind::generated_enum_descriptor_data()); + enums.push(metric_descriptor::ValueType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/mod.rs b/googleapis-raw/src/api/mod.rs index ca6bc43..f8a28ab 100644 --- a/googleapis-raw/src/api/mod.rs +++ b/googleapis-raw/src/api/mod.rs @@ -12,7 +12,6 @@ pub mod control; pub mod distribution; pub mod documentation; pub mod endpoint; -pub mod error_reason; pub mod field_behavior; pub mod http; pub mod httpbody; @@ -23,14 +22,11 @@ pub mod logging; pub mod metric; pub mod monitored_resource; pub mod monitoring; -pub mod policy; pub mod quota; pub mod resource; -pub mod routing; pub mod service; -pub mod servicecontrol; -pub mod servicemanagement; pub mod source_info; pub mod system_parameter; pub mod usage; -pub mod visibility; +pub mod servicecontrol; +pub mod servicemanagement; diff --git a/googleapis-raw/src/api/monitored_resource.rs b/googleapis-raw/src/api/monitored_resource.rs index e240c91..98ee61a 100644 --- a/googleapis-raw/src/api/monitored_resource.rs +++ b/googleapis-raw/src/api/monitored_resource.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,26 +16,62 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/monitored_resource.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a +/// type name and a set of labels. For example, the monitored resource +/// descriptor for Google Compute Engine VM instances has a type of +/// `"gce_instance"` and specifies the use of the labels `"instance_id"` and +/// `"zone"` to identify particular VM instances. +/// +/// Different APIs can support different monitored resource types. APIs generally +/// provide a `list` method that returns the monitored resource descriptors used +/// by the API. +// @@protoc_insertion_point(message:google.api.MonitoredResourceDescriptor) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MonitoredResourceDescriptor { // message fields + /// Optional. The resource name of the monitored resource descriptor: + /// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where + /// {type} is the value of the `type` field in this object and + /// {project_id} is a project ID that provides API-specific context for + /// accessing the type. APIs that do not use project information can use the + /// resource name format `"monitoredResourceDescriptors/{type}"`. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.name) pub name: ::std::string::String, - pub field_type: ::std::string::String, + /// Required. The monitored resource type. For example, the type + /// `"cloudsql_database"` represents databases in Google Cloud SQL. + /// The maximum length of this value is 256 characters. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.type) + pub type_: ::std::string::String, + /// Optional. A concise name for the monitored resource type that might be + /// displayed in user interfaces. It should be a Title Cased Noun Phrase, + /// without any article or other determiners. For example, + /// `"Google Cloud SQL Database"`. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.display_name) pub display_name: ::std::string::String, + /// Optional. A detailed description of the monitored resource type that might + /// be used in documentation. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.description) pub description: ::std::string::String, - pub labels: ::protobuf::RepeatedField, - pub launch_stage: super::launch_stage::LaunchStage, + /// Required. A set of labels used to describe instances of this monitored + /// resource type. For example, an individual Google Cloud SQL database is + /// identified by values for the labels `"database_id"` and `"zone"`. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.labels) + pub labels: ::std::vec::Vec, + /// Optional. The launch stage of the monitored resource definition. + // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.launch_stage) + pub launch_stage: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.MonitoredResourceDescriptor.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MonitoredResourceDescriptor { @@ -48,185 +85,77 @@ impl MonitoredResourceDescriptor { ::std::default::Default::default() } - // string name = 5; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string type = 1; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.api.LabelDescriptor labels = 4; - - - pub fn get_labels(&self) -> &[super::label::LabelDescriptor] { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::protobuf::RepeatedField) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new()) - } - - // .google.api.LaunchStage launch_stage = 7; - - - pub fn get_launch_stage(&self) -> super::launch_stage::LaunchStage { - self.launch_stage - } - pub fn clear_launch_stage(&mut self) { - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_launch_stage(&mut self, v: super::launch_stage::LaunchStage) { - self.launch_stage = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &MonitoredResourceDescriptor| { &m.name }, + |m: &mut MonitoredResourceDescriptor| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &MonitoredResourceDescriptor| { &m.type_ }, + |m: &mut MonitoredResourceDescriptor| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &MonitoredResourceDescriptor| { &m.display_name }, + |m: &mut MonitoredResourceDescriptor| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &MonitoredResourceDescriptor| { &m.description }, + |m: &mut MonitoredResourceDescriptor| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "labels", + |m: &MonitoredResourceDescriptor| { &m.labels }, + |m: &mut MonitoredResourceDescriptor| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "launch_stage", + |m: &MonitoredResourceDescriptor| { &m.launch_stage }, + |m: &mut MonitoredResourceDescriptor| { &mut m.launch_stage }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MonitoredResourceDescriptor", + fields, + oneofs, + ) } } impl ::protobuf::Message for MonitoredResourceDescriptor { + const NAME: &'static str = "MonitoredResourceDescriptor"; + fn is_initialized(&self) -> bool { - for v in &self.labels { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 42 => { + self.name = is.read_string()?; }, - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + 10 => { + self.type_ = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + 18 => { + self.display_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.labels)?; + 34 => { + self.labels.push(is.read_message()?); }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.launch_stage, 7, &mut self.unknown_fields)? + 56 => { + self.launch_stage = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -235,13 +164,13 @@ impl ::protobuf::Message for MonitoredResourceDescriptor { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.name); } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_); } if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.display_name); @@ -251,22 +180,22 @@ impl ::protobuf::Message for MonitoredResourceDescriptor { } for value in &self.labels { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.launch_stage); + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(7, self.launch_stage.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(5, &self.name)?; } - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; + if !self.type_.is_empty() { + os.write_string(1, &self.type_)?; } if !self.display_name.is_empty() { os.write_string(2, &self.display_name)?; @@ -275,127 +204,85 @@ impl ::protobuf::Message for MonitoredResourceDescriptor { os.write_string(3, &self.description)?; } for v in &self.labels { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - if self.launch_stage != super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.launch_stage))?; + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + os.write_enum(7, ::protobuf::EnumOrUnknown::value(&self.launch_stage))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MonitoredResourceDescriptor { MonitoredResourceDescriptor::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &MonitoredResourceDescriptor| { &m.name }, - |m: &mut MonitoredResourceDescriptor| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &MonitoredResourceDescriptor| { &m.field_type }, - |m: &mut MonitoredResourceDescriptor| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &MonitoredResourceDescriptor| { &m.display_name }, - |m: &mut MonitoredResourceDescriptor| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &MonitoredResourceDescriptor| { &m.description }, - |m: &mut MonitoredResourceDescriptor| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "labels", - |m: &MonitoredResourceDescriptor| { &m.labels }, - |m: &mut MonitoredResourceDescriptor| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "launch_stage", - |m: &MonitoredResourceDescriptor| { &m.launch_stage }, - |m: &mut MonitoredResourceDescriptor| { &mut m.launch_stage }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MonitoredResourceDescriptor", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.type_.clear(); + self.display_name.clear(); + self.description.clear(); + self.labels.clear(); + self.launch_stage = ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); + self.special_fields.clear(); } fn default_instance() -> &'static MonitoredResourceDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MonitoredResourceDescriptor::new) + static instance: MonitoredResourceDescriptor = MonitoredResourceDescriptor { + name: ::std::string::String::new(), + type_: ::std::string::String::new(), + display_name: ::std::string::String::new(), + description: ::std::string::String::new(), + labels: ::std::vec::Vec::new(), + launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MonitoredResourceDescriptor { - fn clear(&mut self) { - self.name.clear(); - self.field_type.clear(); - self.display_name.clear(); - self.description.clear(); - self.labels.clear(); - self.launch_stage = super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MonitoredResourceDescriptor { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MonitoredResourceDescriptor").unwrap()).clone() } } -impl ::std::fmt::Debug for MonitoredResourceDescriptor { +impl ::std::fmt::Display for MonitoredResourceDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MonitoredResourceDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.MonitoredResource) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MonitoredResource { // message fields - pub field_type: ::std::string::String, + /// Required. The monitored resource type. This field must match + /// the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For + /// example, the type of a Compute Engine VM instance is `gce_instance`. + // @@protoc_insertion_point(field:google.api.MonitoredResource.type) + pub type_: ::std::string::String, + /// Required. Values for all of the labels listed in the associated monitored + /// resource descriptor. For example, Compute Engine VM instances use the + /// labels `"project_id"`, `"instance_id"`, and `"zone"`. + // @@protoc_insertion_point(field:google.api.MonitoredResource.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.MonitoredResource.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MonitoredResource { @@ -409,75 +296,57 @@ impl MonitoredResource { ::std::default::Default::default() } - // string type = 1; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // repeated .google.api.MonitoredResource.LabelsEntry labels = 2; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &MonitoredResource| { &m.type_ }, + |m: &mut MonitoredResource| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &MonitoredResource| { &m.labels }, + |m: &mut MonitoredResource| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MonitoredResource", + fields, + oneofs, + ) } } impl ::protobuf::Message for MonitoredResource { + const NAME: &'static str = "MonitoredResource"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.type_ = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -486,112 +355,98 @@ impl ::protobuf::Message for MonitoredResource { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_.is_empty() { + os.write_string(1, &self.type_)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MonitoredResource { MonitoredResource::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &MonitoredResource| { &m.field_type }, - |m: &mut MonitoredResource| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &MonitoredResource| { &m.labels }, - |m: &mut MonitoredResource| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MonitoredResource", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.type_.clear(); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MonitoredResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(MonitoredResource::new) } } -impl ::protobuf::Clear for MonitoredResource { - fn clear(&mut self) { - self.field_type.clear(); - self.labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MonitoredResource { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MonitoredResource").unwrap()).clone() } } -impl ::std::fmt::Debug for MonitoredResource { +impl ::std::fmt::Display for MonitoredResource { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MonitoredResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object. +/// [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to +/// uniquely identify a monitored resource instance. There is some other useful +/// auxiliary metadata. Monitoring and Logging use an ingestion +/// pipeline to extract metadata for cloud resources of all types, and store +/// the metadata in this message. +// @@protoc_insertion_point(message:google.api.MonitoredResourceMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MonitoredResourceMetadata { // message fields - pub system_labels: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, + // @@protoc_insertion_point(field:google.api.MonitoredResourceMetadata.system_labels) + pub system_labels: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + /// Output only. A map of user-defined metadata labels. + // @@protoc_insertion_point(field:google.api.MonitoredResourceMetadata.user_labels) pub user_labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.MonitoredResourceMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MonitoredResourceMetadata { @@ -605,87 +460,57 @@ impl MonitoredResourceMetadata { ::std::default::Default::default() } - // .google.protobuf.Struct system_labels = 1; - - - pub fn get_system_labels(&self) -> &::protobuf::well_known_types::Struct { - self.system_labels.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_system_labels(&mut self) { - self.system_labels.clear(); - } - - pub fn has_system_labels(&self) -> bool { - self.system_labels.is_some() - } - - // Param is passed by value, moved - pub fn set_system_labels(&mut self, v: ::protobuf::well_known_types::Struct) { - self.system_labels = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_system_labels(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.system_labels.is_none() { - self.system_labels.set_default(); - } - self.system_labels.as_mut().unwrap() - } - - // Take field - pub fn take_system_labels(&mut self) -> ::protobuf::well_known_types::Struct { - self.system_labels.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // repeated .google.api.MonitoredResourceMetadata.UserLabelsEntry user_labels = 2; - - - pub fn get_user_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.user_labels - } - pub fn clear_user_labels(&mut self) { - self.user_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_user_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.user_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_user_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.user_labels - } - - // Take field - pub fn take_user_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.user_labels, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "system_labels", + |m: &MonitoredResourceMetadata| { &m.system_labels }, + |m: &mut MonitoredResourceMetadata| { &mut m.system_labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "user_labels", + |m: &MonitoredResourceMetadata| { &m.user_labels }, + |m: &mut MonitoredResourceMetadata| { &mut m.user_labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MonitoredResourceMetadata", + fields, + oneofs, + ) } } impl ::protobuf::Message for MonitoredResourceMetadata { + const NAME: &'static str = "MonitoredResourceMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.system_labels { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.system_labels)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.system_labels)?; }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.user_labels)?; + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.user_labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -694,105 +519,79 @@ impl ::protobuf::Message for MonitoredResourceMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.system_labels.as_ref() { + if let Some(v) = self.system_labels.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.user_labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.user_labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.system_labels.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.system_labels.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.user_labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.user_labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MonitoredResourceMetadata { MonitoredResourceMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "system_labels", - |m: &MonitoredResourceMetadata| { &m.system_labels }, - |m: &mut MonitoredResourceMetadata| { &mut m.system_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "user_labels", - |m: &MonitoredResourceMetadata| { &m.user_labels }, - |m: &mut MonitoredResourceMetadata| { &mut m.user_labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MonitoredResourceMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.system_labels.clear(); + self.user_labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MonitoredResourceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(MonitoredResourceMetadata::new) } } -impl ::protobuf::Clear for MonitoredResourceMetadata { - fn clear(&mut self) { - self.system_labels.clear(); - self.user_labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MonitoredResourceMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MonitoredResourceMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for MonitoredResourceMetadata { +impl ::std::fmt::Display for MonitoredResourceMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MonitoredResourceMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -815,40 +614,40 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\ \x01(\tR\x05value:\x028\x01By\n\x0ecom.google.apiB\x16MonitoredResourceP\ rotoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monito\ - redres\xf8\x01\x01\xa2\x02\x04GAPIJ\xac,\n\x07\x12\x05\x0e\0\x81\x01\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + redres\xf8\x01\x01\xa2\x02\x04GAPIJ\xc3)\n\x06\x12\x04\x0f\0v\x01\n\xbe\ + \x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\ + \x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ + ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ + \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ + \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ + riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ + \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ + RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ + \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ - \x12\x03\x12\0\x20\n\t\n\x02\x03\x01\x12\x03\x13\0'\n\t\n\x02\x03\x02\ - \x12\x03\x14\0&\n\x08\n\x01\x08\x12\x03\x16\0\x1f\n\t\n\x02\x08\x1f\x12\ - \x03\x16\0\x1f\n\x08\n\x01\x08\x12\x03\x17\0Z\n\t\n\x02\x08\x0b\x12\x03\ - \x17\0Z\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\ - \n\x08\n\x01\x08\x12\x03\x19\07\n\t\n\x02\x08\x08\x12\x03\x19\07\n\x08\n\ - \x01\x08\x12\x03\x1a\0'\n\t\n\x02\x08\x01\x12\x03\x1a\0'\n\x08\n\x01\x08\ - \x12\x03\x1b\0\"\n\t\n\x02\x08$\x12\x03\x1b\0\"\n\xa4\x04\n\x02\x04\0\ - \x12\x04(\0J\x01\x1a\x97\x04\x20An\x20object\x20that\x20describes\x20the\ - \x20schema\x20of\x20a\n\x20[MonitoredResource][google.api.MonitoredResou\ - rce]\x20object\x20using\x20a\x20type\x20name\n\x20and\x20a\x20set\x20of\ - \x20labels.\x20\x20For\x20example,\x20the\x20monitored\x20resource\x20de\ - scriptor\x20for\n\x20Google\x20Compute\x20Engine\x20VM\x20instances\x20h\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\ + \0\x12\x03\x13\0\x20\n\t\n\x02\x03\x01\x12\x03\x14\0'\n\t\n\x02\x03\x02\ + \x12\x03\x15\0&\n\x08\n\x01\x08\x12\x03\x17\0\x1f\n\t\n\x02\x08\x1f\x12\ + \x03\x17\0\x1f\n\x08\n\x01\x08\x12\x03\x18\0Z\n\t\n\x02\x08\x0b\x12\x03\ + \x18\0Z\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\ + \n\x08\n\x01\x08\x12\x03\x1a\07\n\t\n\x02\x08\x08\x12\x03\x1a\07\n\x08\n\ + \x01\x08\x12\x03\x1b\0'\n\t\n\x02\x08\x01\x12\x03\x1b\0'\n\x08\n\x01\x08\ + \x12\x03\x1c\0\"\n\t\n\x02\x08$\x12\x03\x1c\0\"\n\xa2\x04\n\x02\x04\0\ + \x12\x04'\0F\x01\x1a\x95\x04\x20An\x20object\x20that\x20describes\x20the\ + \x20schema\x20of\x20a\x20[MonitoredResource][google.api.MonitoredResourc\ + e]\x20object\x20using\x20a\n\x20type\x20name\x20and\x20a\x20set\x20of\ + \x20labels.\x20\x20For\x20example,\x20the\x20monitored\x20resource\n\x20\ + descriptor\x20for\x20Google\x20Compute\x20Engine\x20VM\x20instances\x20h\ as\x20a\x20type\x20of\n\x20`\"gce_instance\"`\x20and\x20specifies\x20the\ \x20use\x20of\x20the\x20labels\x20`\"instance_id\"`\x20and\n\x20`\"zone\ \"`\x20to\x20identify\x20particular\x20VM\x20instances.\n\n\x20Different\ \x20APIs\x20can\x20support\x20different\x20monitored\x20resource\x20type\ s.\x20APIs\x20generally\n\x20provide\x20a\x20`list`\x20method\x20that\ \x20returns\x20the\x20monitored\x20resource\x20descriptors\x20used\n\x20\ - by\x20the\x20API.\n\n\n\n\n\x03\x04\0\x01\x12\x03(\x08#\n\xa1\x03\n\x04\ - \x04\0\x02\0\x12\x03/\x02\x12\x1a\x93\x03\x20Optional.\x20The\x20resourc\ + by\x20the\x20API.\n\n\n\n\x03\x04\0\x01\x12\x03'\x08#\n\xa1\x03\n\x04\ + \x04\0\x02\0\x12\x03.\x02\x12\x1a\x93\x03\x20Optional.\x20The\x20resourc\ e\x20name\x20of\x20the\x20monitored\x20resource\x20descriptor:\n\x20`\"p\ rojects/{project_id}/monitoredResourceDescriptors/{type}\"`\x20where\n\ \x20{type}\x20is\x20the\x20value\x20of\x20the\x20`type`\x20field\x20in\ @@ -857,114 +656,128 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20the\x20type.\x20\x20APIs\x20that\x20do\x20not\x20use\x20project\x20i\ nformation\x20can\x20use\x20the\n\x20resource\x20name\x20format\x20`\"mo\ nitoredResourceDescriptors/{type}\"`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ - \x03/\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03/\t\r\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03/\x10\x11\n\xd5\x02\n\x04\x04\0\x02\x01\x12\x037\x02\ - \x12\x1a\xc7\x02\x20Required.\x20The\x20monitored\x20resource\x20type.\ + \x03.\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03.\t\r\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03.\x10\x11\n\xc2\x01\n\x04\x04\0\x02\x01\x12\x033\x02\ + \x12\x1a\xb4\x01\x20Required.\x20The\x20monitored\x20resource\x20type.\ \x20For\x20example,\x20the\x20type\n\x20`\"cloudsql_database\"`\x20repre\ - sents\x20databases\x20in\x20Google\x20Cloud\x20SQL.\n\x20\x20For\x20a\ - \x20list\x20of\x20types,\x20see\x20[Monitoring\x20resource\n\x20\x20type\ - s](https://cloud.google.com/monitoring/api/resources)\n\x20and\x20[Loggi\ - ng\x20resource\n\x20types](https://cloud.google.com/logging/docs/api/v2/\ - resource-list).\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x037\x02\x08\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x037\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x037\x10\x11\n\xf5\x01\n\x04\x04\0\x02\x02\x12\x03=\x02\x1a\x1a\xe7\x01\ - \x20Optional.\x20A\x20concise\x20name\x20for\x20the\x20monitored\x20reso\ - urce\x20type\x20that\x20might\x20be\n\x20displayed\x20in\x20user\x20inte\ - rfaces.\x20It\x20should\x20be\x20a\x20Title\x20Cased\x20Noun\x20Phrase,\ - \n\x20without\x20any\x20article\x20or\x20other\x20determiners.\x20For\ - \x20example,\n\x20`\"Google\x20Cloud\x20SQL\x20Database\"`.\n\n\x0c\n\ - \x05\x04\0\x02\x02\x05\x12\x03=\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\ - \x12\x03=\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03=\x18\x19\nt\n\x04\ - \x04\0\x02\x03\x12\x03A\x02\x19\x1ag\x20Optional.\x20A\x20detailed\x20de\ - scription\x20of\x20the\x20monitored\x20resource\x20type\x20that\x20might\ - \n\x20be\x20used\x20in\x20documentation.\n\n\x0c\n\x05\x04\0\x02\x03\x05\ - \x12\x03A\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03A\t\x14\n\x0c\n\ - \x05\x04\0\x02\x03\x03\x12\x03A\x17\x18\n\xe1\x01\n\x04\x04\0\x02\x04\ - \x12\x03F\x02&\x1a\xd3\x01\x20Required.\x20A\x20set\x20of\x20labels\x20u\ - sed\x20to\x20describe\x20instances\x20of\x20this\x20monitored\n\x20resou\ - rce\x20type.\x20For\x20example,\x20an\x20individual\x20Google\x20Cloud\ - \x20SQL\x20database\x20is\n\x20identified\x20by\x20values\x20for\x20the\ - \x20labels\x20`\"database_id\"`\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\ - \0\x02\x04\x04\x12\x03F\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03F\x0b\ - \x1a\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03F\x1b!\n\x0c\n\x05\x04\0\x02\ - \x04\x03\x12\x03F$%\nO\n\x04\x04\0\x02\x05\x12\x03I\x02\x1f\x1aB\x20Opti\ - onal.\x20The\x20launch\x20stage\x20of\x20the\x20monitored\x20resource\ - \x20definition.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03I\x02\r\n\x0c\n\ - \x05\x04\0\x02\x05\x01\x12\x03I\x0e\x1a\n\x0c\n\x05\x04\0\x02\x05\x03\ - \x12\x03I\x1d\x1e\n\x8c\x07\n\x02\x04\x01\x12\x04\\\0j\x01\x1a\xff\x06\ - \x20An\x20object\x20representing\x20a\x20resource\x20that\x20can\x20be\ - \x20used\x20for\x20monitoring,\x20logging,\n\x20billing,\x20or\x20other\ - \x20purposes.\x20Examples\x20include\x20virtual\x20machine\x20instances,\ - \n\x20databases,\x20and\x20storage\x20devices\x20such\x20as\x20disks.\ - \x20The\x20`type`\x20field\x20identifies\x20a\n\x20[MonitoredResourceDes\ - criptor][google.api.MonitoredResourceDescriptor]\x20object\n\x20that\x20\ - describes\x20the\x20resource's\x20schema.\x20Information\x20in\x20the\ - \x20`labels`\x20field\n\x20identifies\x20the\x20actual\x20resource\x20an\ - d\x20its\x20attributes\x20according\x20to\x20the\x20schema.\n\x20For\x20\ - example,\x20a\x20particular\x20Compute\x20Engine\x20VM\x20instance\x20co\ - uld\x20be\x20represented\x20by\n\x20the\x20following\x20object,\x20becau\ - se\x20the\n\x20[MonitoredResourceDescriptor][google.api.MonitoredResourc\ - eDescriptor]\x20for\n\x20`\"gce_instance\"`\x20has\x20labels\n\x20`\"pro\ - ject_id\"`,\x20`\"instance_id\"`\x20and\x20`\"zone\"`:\n\n\x20\x20\x20\ - \x20\x20{\x20\"type\":\x20\"gce_instance\",\n\x20\x20\x20\x20\x20\x20\ - \x20\"labels\":\x20{\x20\"project_id\":\x20\"my-project\",\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"instan\ - ce_id\":\x20\"12345678901234\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"zone\":\x20\"us-central1-a\"\ - \x20}}\n\n\n\n\x03\x04\x01\x01\x12\x03\\\x08\x19\n\x8a\x03\n\x04\x04\x01\ - \x02\0\x12\x03d\x02\x12\x1a\xfc\x02\x20Required.\x20The\x20monitored\x20\ - resource\x20type.\x20This\x20field\x20must\x20match\n\x20the\x20`type`\ - \x20field\x20of\x20a\n\x20[MonitoredResourceDescriptor][google.api.Monit\ - oredResourceDescriptor]\n\x20object.\x20For\x20example,\x20the\x20type\ - \x20of\x20a\x20Compute\x20Engine\x20VM\x20instance\x20is\n\x20`gce_insta\ - nce`.\x20Some\x20descriptors\x20include\x20the\x20service\x20name\x20in\ - \x20the\x20type;\x20for\n\x20example,\x20the\x20type\x20of\x20a\x20Datas\ - tream\x20stream\x20is\n\x20`datastream.googleapis.com/Stream`.\n\n\x0c\n\ - \x05\x04\x01\x02\0\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\ - \x12\x03d\t\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03d\x10\x11\n\xd7\x01\n\ - \x04\x04\x01\x02\x01\x12\x03i\x02!\x1a\xc9\x01\x20Required.\x20Values\ - \x20for\x20all\x20of\x20the\x20labels\x20listed\x20in\x20the\x20associat\ - ed\x20monitored\n\x20resource\x20descriptor.\x20For\x20example,\x20Compu\ - te\x20Engine\x20VM\x20instances\x20use\x20the\n\x20labels\x20`\"project_\ - id\"`,\x20`\"instance_id\"`,\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\x01\ - \x02\x01\x06\x12\x03i\x02\x15\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03i\ - \x16\x1c\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03i\x1f\x20\n\xba\x03\n\ - \x02\x04\x02\x12\x05r\0\x81\x01\x01\x1a\xac\x03\x20Auxiliary\x20metadata\ - \x20for\x20a\x20[MonitoredResource][google.api.MonitoredResource]\n\x20o\ - bject.\x20[MonitoredResource][google.api.MonitoredResource]\x20objects\ - \x20contain\x20the\n\x20minimum\x20set\x20of\x20information\x20to\x20uni\ - quely\x20identify\x20a\x20monitored\x20resource\n\x20instance.\x20There\ - \x20is\x20some\x20other\x20useful\x20auxiliary\x20metadata.\x20Monitorin\ - g\x20and\n\x20Logging\x20use\x20an\x20ingestion\x20pipeline\x20to\x20ext\ - ract\x20metadata\x20for\x20cloud\x20resources\x20of\n\x20all\x20types,\ - \x20and\x20store\x20the\x20metadata\x20in\x20this\x20message.\n\n\n\n\ - \x03\x04\x02\x01\x12\x03r\x08!\n\xa1\x03\n\x04\x04\x02\x02\0\x12\x03}\ - \x02+\x1a\x93\x03\x20Output\x20only.\x20Values\x20for\x20predefined\x20s\ - ystem\x20metadata\x20labels.\n\x20System\x20labels\x20are\x20a\x20kind\ - \x20of\x20metadata\x20extracted\x20by\x20Google,\x20including\n\x20\"mac\ - hine_image\",\x20\"vpc\",\x20\"subnet_id\",\n\x20\"security_group\",\x20\ - \"name\",\x20etc.\n\x20System\x20label\x20values\x20can\x20be\x20only\ - \x20strings,\x20Boolean\x20values,\x20or\x20a\x20list\x20of\n\x20strings\ - .\x20For\x20example:\n\n\x20\x20\x20\x20\x20{\x20\"name\":\x20\"my-test-\ - instance\",\n\x20\x20\x20\x20\x20\x20\x20\"security_group\":\x20[\"a\",\ - \x20\"b\",\x20\"c\"],\n\x20\x20\x20\x20\x20\x20\x20\"spot_instance\":\ - \x20false\x20}\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03}\x02\x18\n\x0c\n\ - \x05\x04\x02\x02\0\x01\x12\x03}\x19&\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ - \x03})*\nC\n\x04\x04\x02\x02\x01\x12\x04\x80\x01\x02&\x1a5\x20Output\x20\ - only.\x20A\x20map\x20of\x20user-defined\x20metadata\x20labels.\n\n\r\n\ - \x05\x04\x02\x02\x01\x06\x12\x04\x80\x01\x02\x15\n\r\n\x05\x04\x02\x02\ - \x01\x01\x12\x04\x80\x01\x16!\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x80\ - \x01$%b\x06proto3\ + sents\x20databases\x20in\x20Google\x20Cloud\x20SQL.\n\x20The\x20maximum\ + \x20length\x20of\x20this\x20value\x20is\x20256\x20characters.\n\n\x0c\n\ + \x05\x04\0\x02\x01\x05\x12\x033\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x033\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x033\x10\x11\n\xf5\x01\n\ + \x04\x04\0\x02\x02\x12\x039\x02\x1a\x1a\xe7\x01\x20Optional.\x20A\x20con\ + cise\x20name\x20for\x20the\x20monitored\x20resource\x20type\x20that\x20m\ + ight\x20be\n\x20displayed\x20in\x20user\x20interfaces.\x20It\x20should\ + \x20be\x20a\x20Title\x20Cased\x20Noun\x20Phrase,\n\x20without\x20any\x20\ + article\x20or\x20other\x20determiners.\x20For\x20example,\n\x20`\"Google\ + \x20Cloud\x20SQL\x20Database\"`.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\ + 9\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x039\t\x15\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x039\x18\x19\nt\n\x04\x04\0\x02\x03\x12\x03=\x02\x19\ + \x1ag\x20Optional.\x20A\x20detailed\x20description\x20of\x20the\x20monit\ + ored\x20resource\x20type\x20that\x20might\n\x20be\x20used\x20in\x20docum\ + entation.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03=\x02\x08\n\x0c\n\x05\ + \x04\0\x02\x03\x01\x12\x03=\t\x14\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03=\ + \x17\x18\n\xe1\x01\n\x04\x04\0\x02\x04\x12\x03B\x02&\x1a\xd3\x01\x20Requ\ + ired.\x20A\x20set\x20of\x20labels\x20used\x20to\x20describe\x20instances\ + \x20of\x20this\x20monitored\n\x20resource\x20type.\x20For\x20example,\ + \x20an\x20individual\x20Google\x20Cloud\x20SQL\x20database\x20is\n\x20id\ + entified\x20by\x20values\x20for\x20the\x20labels\x20`\"database_id\"`\ + \x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x03B\x02\n\n\ + \x0c\n\x05\x04\0\x02\x04\x06\x12\x03B\x0b\x1a\n\x0c\n\x05\x04\0\x02\x04\ + \x01\x12\x03B\x1b!\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03B$%\nO\n\x04\x04\ + \0\x02\x05\x12\x03E\x02\x1f\x1aB\x20Optional.\x20The\x20launch\x20stage\ + \x20of\x20the\x20monitored\x20resource\x20definition.\n\n\x0c\n\x05\x04\ + \0\x02\x05\x06\x12\x03E\x02\r\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03E\x0e\ + \x1a\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03E\x1d\x1e\n\xcb\x06\n\x02\x04\ + \x01\x12\x04U\0_\x01\x1a\xbe\x06\x20An\x20object\x20representing\x20a\ + \x20resource\x20that\x20can\x20be\x20used\x20for\x20monitoring,\x20loggi\ + ng,\n\x20billing,\x20or\x20other\x20purposes.\x20Examples\x20include\x20\ + virtual\x20machine\x20instances,\n\x20databases,\x20and\x20storage\x20de\ + vices\x20such\x20as\x20disks.\x20The\x20`type`\x20field\x20identifies\ + \x20a\n\x20[MonitoredResourceDescriptor][google.api.MonitoredResourceDes\ + criptor]\x20object\x20that\x20describes\x20the\x20resource's\n\x20schema\ + .\x20Information\x20in\x20the\x20`labels`\x20field\x20identifies\x20the\ + \x20actual\x20resource\x20and\n\x20its\x20attributes\x20according\x20to\ + \x20the\x20schema.\x20For\x20example,\x20a\x20particular\x20Compute\n\ + \x20Engine\x20VM\x20instance\x20could\x20be\x20represented\x20by\x20the\ + \x20following\x20object,\x20because\x20the\n\x20[MonitoredResourceDescri\ + ptor][google.api.MonitoredResourceDescriptor]\x20for\x20`\"gce_instance\ + \"`\x20has\x20labels\n\x20`\"instance_id\"`\x20and\x20`\"zone\"`:\n\n\ + \x20\x20\x20\x20\x20{\x20\"type\":\x20\"gce_instance\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"labels\":\x20{\x20\"instance_id\":\x20\"12345678901234\ + \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"zone\":\x20\"us-central1-a\"\x20}}\n\n\n\n\x03\x04\x01\x01\ + \x12\x03U\x08\x19\n\xfb\x01\n\x04\x04\x01\x02\0\x12\x03Y\x02\x12\x1a\xed\ + \x01\x20Required.\x20The\x20monitored\x20resource\x20type.\x20This\x20fi\ + eld\x20must\x20match\n\x20the\x20`type`\x20field\x20of\x20a\x20[Monitore\ + dResourceDescriptor][google.api.MonitoredResourceDescriptor]\x20object.\ + \x20For\n\x20example,\x20the\x20type\x20of\x20a\x20Compute\x20Engine\x20\ + VM\x20instance\x20is\x20`gce_instance`.\n\n\x0c\n\x05\x04\x01\x02\0\x05\ + \x12\x03Y\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03Y\t\r\n\x0c\n\x05\ + \x04\x01\x02\0\x03\x12\x03Y\x10\x11\n\xd7\x01\n\x04\x04\x01\x02\x01\x12\ + \x03^\x02!\x1a\xc9\x01\x20Required.\x20Values\x20for\x20all\x20of\x20the\ + \x20labels\x20listed\x20in\x20the\x20associated\x20monitored\n\x20resour\ + ce\x20descriptor.\x20For\x20example,\x20Compute\x20Engine\x20VM\x20insta\ + nces\x20use\x20the\n\x20labels\x20`\"project_id\"`,\x20`\"instance_id\"`\ + ,\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03^\x02\ + \x15\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03^\x16\x1c\n\x0c\n\x05\x04\ + \x01\x02\x01\x03\x12\x03^\x1f\x20\n\xb9\x03\n\x02\x04\x02\x12\x04g\0v\ + \x01\x1a\xac\x03\x20Auxiliary\x20metadata\x20for\x20a\x20[MonitoredResou\ + rce][google.api.MonitoredResource]\x20object.\n\x20[MonitoredResource][g\ + oogle.api.MonitoredResource]\x20objects\x20contain\x20the\x20minimum\x20\ + set\x20of\x20information\x20to\n\x20uniquely\x20identify\x20a\x20monitor\ + ed\x20resource\x20instance.\x20There\x20is\x20some\x20other\x20useful\n\ + \x20auxiliary\x20metadata.\x20Monitoring\x20and\x20Logging\x20use\x20an\ + \x20ingestion\n\x20pipeline\x20to\x20extract\x20metadata\x20for\x20cloud\ + \x20resources\x20of\x20all\x20types,\x20and\x20store\n\x20the\x20metadat\ + a\x20in\x20this\x20message.\n\n\n\n\x03\x04\x02\x01\x12\x03g\x08!\n\xa1\ + \x03\n\x04\x04\x02\x02\0\x12\x03r\x02+\x1a\x93\x03\x20Output\x20only.\ + \x20Values\x20for\x20predefined\x20system\x20metadata\x20labels.\n\x20Sy\ + stem\x20labels\x20are\x20a\x20kind\x20of\x20metadata\x20extracted\x20by\ + \x20Google,\x20including\n\x20\"machine_image\",\x20\"vpc\",\x20\"subnet\ + _id\",\n\x20\"security_group\",\x20\"name\",\x20etc.\n\x20System\x20labe\ + l\x20values\x20can\x20be\x20only\x20strings,\x20Boolean\x20values,\x20or\ + \x20a\x20list\x20of\n\x20strings.\x20For\x20example:\n\n\x20\x20\x20\x20\ + \x20{\x20\"name\":\x20\"my-test-instance\",\n\x20\x20\x20\x20\x20\x20\ + \x20\"security_group\":\x20[\"a\",\x20\"b\",\x20\"c\"],\n\x20\x20\x20\ + \x20\x20\x20\x20\"spot_instance\":\x20false\x20}\n\n\x0c\n\x05\x04\x02\ + \x02\0\x06\x12\x03r\x02\x18\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03r\x19&\ + \n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03r)*\nB\n\x04\x04\x02\x02\x01\x12\ + \x03u\x02&\x1a5\x20Output\x20only.\x20A\x20map\x20of\x20user-defined\x20\ + metadata\x20labels.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03u\x02\x15\n\ + \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03u\x16!\n\x0c\n\x05\x04\x02\x02\x01\ + \x03\x12\x03u$%b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(super::label::file_descriptor().clone()); + deps.push(super::launch_stage::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(MonitoredResourceDescriptor::generated_message_descriptor_data()); + messages.push(MonitoredResource::generated_message_descriptor_data()); + messages.push(MonitoredResourceMetadata::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/monitoring.rs b/googleapis-raw/src/api/monitoring.rs index 5065f13..c648424 100644 --- a/googleapis-raw/src/api/monitoring.rs +++ b/googleapis-raw/src/api/monitoring.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,38 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/monitoring.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Monitoring) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Monitoring { // message fields - pub producer_destinations: ::protobuf::RepeatedField, - pub consumer_destinations: ::protobuf::RepeatedField, + /// Monitoring configurations for sending metrics to the producer project. + /// There can be multiple producer destinations. A monitored resouce type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. + // @@protoc_insertion_point(field:google.api.Monitoring.producer_destinations) + pub producer_destinations: ::std::vec::Vec, + /// Monitoring configurations for sending metrics to the consumer project. + /// There can be multiple consumer destinations. A monitored resouce type may + /// appear in multiple monitoring destinations if different aggregations are + /// needed for different sets of metrics associated with that monitored + /// resource type. A monitored resource and metric pair may only be used once + /// in the Monitoring configuration. + // @@protoc_insertion_point(field:google.api.Monitoring.consumer_destinations) + pub consumer_destinations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Monitoring.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Monitoring { @@ -44,84 +61,45 @@ impl Monitoring { ::std::default::Default::default() } - // repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; - - - pub fn get_producer_destinations(&self) -> &[Monitoring_MonitoringDestination] { - &self.producer_destinations - } - pub fn clear_producer_destinations(&mut self) { - self.producer_destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_destinations(&mut self, v: ::protobuf::RepeatedField) { - self.producer_destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_producer_destinations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.producer_destinations - } - - // Take field - pub fn take_producer_destinations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.producer_destinations, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; - - - pub fn get_consumer_destinations(&self) -> &[Monitoring_MonitoringDestination] { - &self.consumer_destinations - } - pub fn clear_consumer_destinations(&mut self) { - self.consumer_destinations.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_destinations(&mut self, v: ::protobuf::RepeatedField) { - self.consumer_destinations = v; - } - - // Mutable pointer to the field. - pub fn mut_consumer_destinations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.consumer_destinations - } - - // Take field - pub fn take_consumer_destinations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.consumer_destinations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "producer_destinations", + |m: &Monitoring| { &m.producer_destinations }, + |m: &mut Monitoring| { &mut m.producer_destinations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "consumer_destinations", + |m: &Monitoring| { &m.consumer_destinations }, + |m: &mut Monitoring| { &mut m.consumer_destinations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Monitoring", + fields, + oneofs, + ) } } impl ::protobuf::Message for Monitoring { + const NAME: &'static str = "Monitoring"; + fn is_initialized(&self) -> bool { - for v in &self.producer_destinations { - if !v.is_initialized() { - return false; - } - }; - for v in &self.consumer_destinations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.producer_destinations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.producer_destinations.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.consumer_destinations)?; + 18 => { + self.consumer_destinations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -130,311 +108,223 @@ impl ::protobuf::Message for Monitoring { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.producer_destinations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.consumer_destinations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.producer_destinations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.consumer_destinations { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Monitoring { Monitoring::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "producer_destinations", - |m: &Monitoring| { &m.producer_destinations }, - |m: &mut Monitoring| { &mut m.producer_destinations }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consumer_destinations", - |m: &Monitoring| { &m.consumer_destinations }, - |m: &mut Monitoring| { &mut m.consumer_destinations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Monitoring", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.producer_destinations.clear(); + self.consumer_destinations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Monitoring { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Monitoring::new) + static instance: Monitoring = Monitoring { + producer_destinations: ::std::vec::Vec::new(), + consumer_destinations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Monitoring { - fn clear(&mut self) { - self.producer_destinations.clear(); - self.consumer_destinations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Monitoring { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Monitoring").unwrap()).clone() } } -impl ::std::fmt::Debug for Monitoring { +impl ::std::fmt::Display for Monitoring { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Monitoring { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Monitoring_MonitoringDestination { - // message fields - pub monitored_resource: ::std::string::String, - pub metrics: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Monitoring_MonitoringDestination { - fn default() -> &'a Monitoring_MonitoringDestination { - ::default_instance() - } -} - -impl Monitoring_MonitoringDestination { - pub fn new() -> Monitoring_MonitoringDestination { - ::std::default::Default::default() - } - - // string monitored_resource = 1; - - - pub fn get_monitored_resource(&self) -> &str { - &self.monitored_resource - } - pub fn clear_monitored_resource(&mut self) { - self.monitored_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_monitored_resource(&mut self, v: ::std::string::String) { - self.monitored_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_monitored_resource(&mut self) -> &mut ::std::string::String { - &mut self.monitored_resource - } - - // Take field - pub fn take_monitored_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.monitored_resource, ::std::string::String::new()) +/// Nested message and enums of message `Monitoring` +pub mod monitoring { + /// Configuration of a specific monitoring destination (the producer project + /// or the consumer project). + // @@protoc_insertion_point(message:google.api.Monitoring.MonitoringDestination) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct MonitoringDestination { + // message fields + /// The monitored resource type. The type must be defined in + /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + // @@protoc_insertion_point(field:google.api.Monitoring.MonitoringDestination.monitored_resource) + pub monitored_resource: ::std::string::String, + /// Types of the metrics to report to this monitoring destination. + /// Each type must be defined in [Service.metrics][google.api.Service.metrics] section. + // @@protoc_insertion_point(field:google.api.Monitoring.MonitoringDestination.metrics) + pub metrics: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.Monitoring.MonitoringDestination.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a MonitoringDestination { + fn default() -> &'a MonitoringDestination { + ::default_instance() + } } - // repeated string metrics = 2; - - - pub fn get_metrics(&self) -> &[::std::string::String] { - &self.metrics - } - pub fn clear_metrics(&mut self) { - self.metrics.clear(); - } + impl MonitoringDestination { + pub fn new() -> MonitoringDestination { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_metrics(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.metrics = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "monitored_resource", + |m: &MonitoringDestination| { &m.monitored_resource }, + |m: &mut MonitoringDestination| { &mut m.monitored_resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metrics", + |m: &MonitoringDestination| { &m.metrics }, + |m: &mut MonitoringDestination| { &mut m.metrics }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Monitoring.MonitoringDestination", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - pub fn mut_metrics(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.metrics - } + impl ::protobuf::Message for MonitoringDestination { + const NAME: &'static str = "MonitoringDestination"; - // Take field - pub fn take_metrics(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.metrics, ::protobuf::RepeatedField::new()) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::Message for Monitoring_MonitoringDestination { - fn is_initialized(&self) -> bool { - true - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.monitored_resource = is.read_string()?; + }, + 18 => { + self.metrics.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.monitored_resource)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.metrics)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.monitored_resource.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.monitored_resource); + } + for value in &self.metrics { + my_size += ::protobuf::rt::string_size(2, &value); }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.monitored_resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.monitored_resource); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.monitored_resource.is_empty() { + os.write_string(1, &self.monitored_resource)?; + } + for v in &self.metrics { + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - for value in &self.metrics { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.monitored_resource.is_empty() { - os.write_string(1, &self.monitored_resource)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - for v in &self.metrics { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> Monitoring_MonitoringDestination { - Monitoring_MonitoringDestination::new() - } + fn new() -> MonitoringDestination { + MonitoringDestination::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "monitored_resource", - |m: &Monitoring_MonitoringDestination| { &m.monitored_resource }, - |m: &mut Monitoring_MonitoringDestination| { &mut m.monitored_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metrics", - |m: &Monitoring_MonitoringDestination| { &m.metrics }, - |m: &mut Monitoring_MonitoringDestination| { &mut m.metrics }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Monitoring.MonitoringDestination", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.monitored_resource.clear(); + self.metrics.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static Monitoring_MonitoringDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Monitoring_MonitoringDestination::new) + fn default_instance() -> &'static MonitoringDestination { + static instance: MonitoringDestination = MonitoringDestination { + monitored_resource: ::std::string::String::new(), + metrics: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Monitoring_MonitoringDestination { - fn clear(&mut self) { - self.monitored_resource.clear(); - self.metrics.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for MonitoringDestination { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Monitoring.MonitoringDestination").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Monitoring_MonitoringDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for MonitoringDestination { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Monitoring_MonitoringDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for MonitoringDestination { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } @@ -447,11 +337,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x12monitored_resource\x18\x01\x20\x01(\tR\x11monitoredResource\x12\x18\ \n\x07metrics\x18\x02\x20\x03(\tR\x07metricsBq\n\x0ecom.google.apiB\x0fM\ onitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceco\ - nfig;serviceconfig\xa2\x02\x04GAPIJ\xd3\x20\n\x06\x12\x04\x0e\0j\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + nfig;serviceconfig\xa2\x02\x04GAPIJ\x8a\x1c\n\x06\x12\x04\x0f\0Z\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ @@ -460,108 +350,111 @@ static file_descriptor_proto_data: &'static [u8] = b"\ WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ - \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ - \00\n\t\n\x02\x08\x08\x12\x03\x14\00\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ - \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\x9e\x0f\n\x02\x04\0\x12\x04L\0j\x01\x1a\x91\x0f\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ + \x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\ + \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ + \x15\00\n\t\n\x02\x08\x08\x12\x03\x15\00\n\x08\n\x01\x08\x12\x03\x16\0'\ + \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ + \x02\x08$\x12\x03\x17\0\"\n\xd7\n\n\x02\x04\0\x12\x04>\0Z\x01\x1a\xca\n\ \x20Monitoring\x20configuration\x20of\x20the\x20service.\n\n\x20The\x20e\ xample\x20below\x20shows\x20how\x20to\x20configure\x20monitored\x20resou\ rces\x20and\x20metrics\n\x20for\x20monitoring.\x20In\x20the\x20example,\ \x20a\x20monitored\x20resource\x20and\x20two\x20metrics\x20are\n\x20defi\ ned.\x20The\x20`library.googleapis.com/book/returned_count`\x20metric\ \x20is\x20sent\n\x20to\x20both\x20producer\x20and\x20consumer\x20project\ - s,\x20whereas\x20the\n\x20`library.googleapis.com/book/num_overdue`\x20m\ - etric\x20is\x20only\x20sent\x20to\x20the\n\x20consumer\x20project.\n\n\ - \x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20type:\ - \x20library.googleapis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20display_n\ - ame:\x20\"Library\x20Branch\"\n\x20\x20\x20\x20\x20\x20\x20description:\ - \x20\"A\x20branch\x20of\x20a\x20library.\"\n\x20\x20\x20\x20\x20\x20\x20\ - launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\x20\ - \x20\x20\x20\x20-\x20key:\x20resource_container\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20description:\x20\"The\x20Cloud\x20container\x20(ie.\x20p\ - roject\x20id)\x20for\x20the\x20Branch.\"\n\x20\x20\x20\x20\x20\x20\x20-\ - \x20key:\x20location\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description:\ - \x20\"The\x20location\x20of\x20the\x20library\x20branch.\"\n\x20\x20\x20\ - \x20\x20\x20\x20-\x20key:\x20branch_id\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20description:\x20\"The\x20id\x20of\x20the\x20branch.\"\n\x20\x20\x20\ - \x20\x20metrics:\n\x20\x20\x20\x20\x20-\x20name:\x20library.googleapis.c\ - om/book/returned_count\n\x20\x20\x20\x20\x20\x20\x20display_name:\x20\"B\ - ooks\x20Returned\"\n\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\ - \x20count\x20of\x20books\x20that\x20have\x20been\x20returned.\"\n\x20\ - \x20\x20\x20\x20\x20\x20launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\ - \x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20value_type:\x20IN\ - T64\n\x20\x20\x20\x20\x20\x20\x20unit:\x20\"1\"\n\x20\x20\x20\x20\x20\ - \x20\x20labels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20customer_id\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\x20id\x20of\ - \x20the\x20customer.\"\n\x20\x20\x20\x20\x20-\x20name:\x20library.google\ - apis.com/book/num_overdue\n\x20\x20\x20\x20\x20\x20\x20display_name:\x20\ - \"Books\x20Overdue\"\n\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\ - \x20current\x20number\x20of\x20overdue\x20books.\"\n\x20\x20\x20\x20\x20\ - \x20\x20launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\x20metric_kind:\ - \x20GAUGE\n\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\x20\x20\ - \x20\x20\x20\x20\x20unit:\x20\"1\"\n\x20\x20\x20\x20\x20\x20\x20labels:\ - \n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20customer_id\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20description:\x20\"The\x20id\x20of\x20the\x20customer\ - .\"\n\x20\x20\x20\x20\x20monitoring:\n\x20\x20\x20\x20\x20\x20\x20produc\ - er_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\ - \x20library.googleapis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20m\ - etrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com\ - /book/returned_count\n\x20\x20\x20\x20\x20\x20\x20consumer_destinations:\ - \n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.google\ - apis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20metrics:\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com/book/returned_co\ - unt\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com/boo\ - k/num_overdue\n\n\n\n\x03\x04\0\x01\x12\x03L\x08\x12\ns\n\x04\x04\0\x03\ - \0\x12\x04O\x02Y\x03\x1ae\x20Configuration\x20of\x20a\x20specific\x20mon\ - itoring\x20destination\x20(the\x20producer\x20project\n\x20or\x20the\x20\ - consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03O\n\x1f\n\x9b\ - \x01\n\x06\x04\0\x03\0\x02\0\x12\x03S\x04\"\x1a\x8b\x01\x20The\x20monito\ - red\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\x20in\n\ - \x20[Service.monitored_resources][google.api.Service.monitored_resources\ - ]\n\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03S\x04\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\0\x01\x12\x03S\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x03\x12\x03S\x20!\n\xa6\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03X\ - \x04\x20\x1a\x96\x01\x20Types\x20of\x20the\x20metrics\x20to\x20report\ - \x20to\x20this\x20monitoring\x20destination.\n\x20Each\x20type\x20must\ - \x20be\x20defined\x20in\n\x20[Service.metrics][google.api.Service.metric\ - s]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03X\x04\x0c\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03X\r\x13\n\x0e\n\x07\x04\0\x03\ - \0\x02\x01\x01\x12\x03X\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\ - \x03X\x1e\x1f\n\x9e\x03\n\x04\x04\0\x02\0\x12\x03a\x02;\x1a\x90\x03\x20M\ - onitoring\x20configurations\x20for\x20sending\x20metrics\x20to\x20the\ - \x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\ - \x20destinations.\x20A\x20monitored\x20resource\x20type\x20may\n\x20appe\ - ar\x20in\x20multiple\x20monitoring\x20destinations\x20if\x20different\ - \x20aggregations\x20are\n\x20needed\x20for\x20different\x20sets\x20of\ - \x20metrics\x20associated\x20with\x20that\x20monitored\n\x20resource\x20\ - type.\x20A\x20monitored\x20resource\x20and\x20metric\x20pair\x20may\x20o\ - nly\x20be\x20used\x20once\n\x20in\x20the\x20Monitoring\x20configuration.\ - \n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03a\x02\n\n\x0c\n\x05\x04\0\x02\0\ - \x06\x12\x03a\x0b\x20\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03a!6\n\x0c\n\x05\ - \x04\0\x02\0\x03\x12\x03a9:\n\x9e\x03\n\x04\x04\0\x02\x01\x12\x03i\x02;\ - \x1a\x90\x03\x20Monitoring\x20configurations\x20for\x20sending\x20metric\ - s\x20to\x20the\x20consumer\x20project.\n\x20There\x20can\x20be\x20multip\ - le\x20consumer\x20destinations.\x20A\x20monitored\x20resource\x20type\ - \x20may\n\x20appear\x20in\x20multiple\x20monitoring\x20destinations\x20i\ - f\x20different\x20aggregations\x20are\n\x20needed\x20for\x20different\ + s,\x20whereas\x20the\n\x20`library.googleapis.com/book/overdue_count`\ + \x20metric\x20is\x20only\x20sent\x20to\x20the\n\x20consumer\x20project.\ + \n\n\x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20t\ + ype:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20label\ + s:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20/city\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20description:\x20The\x20city\x20where\x20the\x20library\ + \x20branch\x20is\x20located\x20in.\n\x20\x20\x20\x20\x20\x20\x20-\x20key\ + :\x20/name\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20The\x20n\ + ame\x20of\x20the\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\ + \x20\x20-\x20name:\x20library.googleapis.com/book/returned_count\n\x20\ + \x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\ + \x20value_type:\x20INT64\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ + \x20\x20\x20\x20\x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20-\x20\ + name:\x20library.googleapis.com/book/overdue_count\n\x20\x20\x20\x20\x20\ + \x20\x20metric_kind:\x20GAUGE\n\x20\x20\x20\x20\x20\x20\x20value_type:\ + \x20INT64\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\x20\x20\x20\x20\ + \x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20monitoring:\n\x20\x20\ + \x20\x20\x20\x20\x20producer_destinations:\n\x20\x20\x20\x20\x20\x20\x20\ + -\x20monitored_resource:\x20library.googleapis.com/branch\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\ + \x20library.googleapis.com/book/returned_count\n\x20\x20\x20\x20\x20\x20\ + \x20consumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_r\ + esource:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googl\ + eapis.com/book/returned_count\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20\ + library.googleapis.com/book/overdue_count\n\n\n\n\x03\x04\0\x01\x12\x03>\ + \x08\x12\ns\n\x04\x04\0\x03\0\x12\x04A\x02I\x03\x1ae\x20Configuration\ + \x20of\x20a\x20specific\x20monitoring\x20destination\x20(the\x20producer\ + \x20project\n\x20or\x20the\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\ + \x03\0\x01\x12\x03A\n\x1f\n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x03D\x04\ + \"\x1a\x8a\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\ + \x20must\x20be\x20defined\x20in\n\x20[Service.monitored_resources][googl\ + e.api.Service.monitored_resources]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\ + \x02\0\x05\x12\x03D\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03D\x0b\ + \x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03D\x20!\n\xa5\x01\n\x06\x04\ + \0\x03\0\x02\x01\x12\x03H\x04\x20\x1a\x95\x01\x20Types\x20of\x20the\x20m\ + etrics\x20to\x20report\x20to\x20this\x20monitoring\x20destination.\n\x20\ + Each\x20type\x20must\x20be\x20defined\x20in\x20[Service.metrics][google.\ + api.Service.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\ + \x12\x03H\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03H\r\x13\n\ + \x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03H\x14\x1b\n\x0e\n\x07\x04\0\ + \x03\0\x02\x01\x03\x12\x03H\x1e\x1f\n\x9d\x03\n\x04\x04\0\x02\0\x12\x03Q\ + \x02;\x1a\x8f\x03\x20Monitoring\x20configurations\x20for\x20sending\x20m\ + etrics\x20to\x20the\x20producer\x20project.\n\x20There\x20can\x20be\x20m\ + ultiple\x20producer\x20destinations.\x20A\x20monitored\x20resouce\x20typ\ + e\x20may\n\x20appear\x20in\x20multiple\x20monitoring\x20destinations\x20\ + if\x20different\x20aggregations\x20are\n\x20needed\x20for\x20different\ \x20sets\x20of\x20metrics\x20associated\x20with\x20that\x20monitored\n\ \x20resource\x20type.\x20A\x20monitored\x20resource\x20and\x20metric\x20\ pair\x20may\x20only\x20be\x20used\x20once\n\x20in\x20the\x20Monitoring\ - \x20configuration.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03i\x02\n\n\x0c\ - \n\x05\x04\0\x02\x01\x06\x12\x03i\x0b\x20\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x03i!6\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03i9:b\x06proto3\ + \x20configuration.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03Q\x02\n\n\x0c\n\ + \x05\x04\0\x02\0\x06\x12\x03Q\x0b\x20\n\x0c\n\x05\x04\0\x02\0\x01\x12\ + \x03Q!6\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03Q9:\n\x9d\x03\n\x04\x04\0\x02\ + \x01\x12\x03Y\x02;\x1a\x8f\x03\x20Monitoring\x20configurations\x20for\ + \x20sending\x20metrics\x20to\x20the\x20consumer\x20project.\n\x20There\ + \x20can\x20be\x20multiple\x20consumer\x20destinations.\x20A\x20monitored\ + \x20resouce\x20type\x20may\n\x20appear\x20in\x20multiple\x20monitoring\ + \x20destinations\x20if\x20different\x20aggregations\x20are\n\x20needed\ + \x20for\x20different\x20sets\x20of\x20metrics\x20associated\x20with\x20t\ + hat\x20monitored\n\x20resource\x20type.\x20A\x20monitored\x20resource\ + \x20and\x20metric\x20pair\x20may\x20only\x20be\x20used\x20once\n\x20in\ + \x20the\x20Monitoring\x20configuration.\n\n\x0c\n\x05\x04\0\x02\x01\x04\ + \x12\x03Y\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03Y\x0b\x20\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03Y!6\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03Y\ + 9:b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Monitoring::generated_message_descriptor_data()); + messages.push(monitoring::MonitoringDestination::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/policy.rs b/googleapis-raw/src/api/policy.rs deleted file mode 100644 index 7fce731..0000000 --- a/googleapis-raw/src/api/policy.rs +++ /dev/null @@ -1,589 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/api/policy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct FieldPolicy { - // message fields - pub selector: ::std::string::String, - pub resource_permission: ::std::string::String, - pub resource_type: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FieldPolicy { - fn default() -> &'a FieldPolicy { - ::default_instance() - } -} - -impl FieldPolicy { - pub fn new() -> FieldPolicy { - ::std::default::Default::default() - } - - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // string resource_permission = 2; - - - pub fn get_resource_permission(&self) -> &str { - &self.resource_permission - } - pub fn clear_resource_permission(&mut self) { - self.resource_permission.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_permission(&mut self, v: ::std::string::String) { - self.resource_permission = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_permission(&mut self) -> &mut ::std::string::String { - &mut self.resource_permission - } - - // Take field - pub fn take_resource_permission(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_permission, ::std::string::String::new()) - } - - // string resource_type = 3; - - - pub fn get_resource_type(&self) -> &str { - &self.resource_type - } - pub fn clear_resource_type(&mut self) { - self.resource_type.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_type(&mut self, v: ::std::string::String) { - self.resource_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_type(&mut self) -> &mut ::std::string::String { - &mut self.resource_type - } - - // Take field - pub fn take_resource_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_type, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for FieldPolicy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_permission)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_type)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.selector.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.selector); - } - if !self.resource_permission.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.resource_permission); - } - if !self.resource_type.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.resource_type); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - if !self.resource_permission.is_empty() { - os.write_string(2, &self.resource_permission)?; - } - if !self.resource_type.is_empty() { - os.write_string(3, &self.resource_type)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FieldPolicy { - FieldPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &FieldPolicy| { &m.selector }, - |m: &mut FieldPolicy| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_permission", - |m: &FieldPolicy| { &m.resource_permission }, - |m: &mut FieldPolicy| { &mut m.resource_permission }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_type", - |m: &FieldPolicy| { &m.resource_type }, - |m: &mut FieldPolicy| { &mut m.resource_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FieldPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FieldPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FieldPolicy::new) - } -} - -impl ::protobuf::Clear for FieldPolicy { - fn clear(&mut self) { - self.selector.clear(); - self.resource_permission.clear(); - self.resource_type.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FieldPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FieldPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MethodPolicy { - // message fields - pub selector: ::std::string::String, - pub request_policies: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MethodPolicy { - fn default() -> &'a MethodPolicy { - ::default_instance() - } -} - -impl MethodPolicy { - pub fn new() -> MethodPolicy { - ::std::default::Default::default() - } - - // string selector = 9; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // repeated .google.api.FieldPolicy request_policies = 2; - - - pub fn get_request_policies(&self) -> &[FieldPolicy] { - &self.request_policies - } - pub fn clear_request_policies(&mut self) { - self.request_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_request_policies(&mut self, v: ::protobuf::RepeatedField) { - self.request_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_request_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.request_policies - } - - // Take field - pub fn take_request_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.request_policies, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for MethodPolicy { - fn is_initialized(&self) -> bool { - for v in &self.request_policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.request_policies)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.selector.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.selector); - } - for value in &self.request_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.selector.is_empty() { - os.write_string(9, &self.selector)?; - } - for v in &self.request_policies { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MethodPolicy { - MethodPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &MethodPolicy| { &m.selector }, - |m: &mut MethodPolicy| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_policies", - |m: &MethodPolicy| { &m.request_policies }, - |m: &mut MethodPolicy| { &mut m.request_policies }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MethodPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MethodPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MethodPolicy::new) - } -} - -impl ::protobuf::Clear for MethodPolicy { - fn clear(&mut self) { - self.selector.clear(); - self.request_policies.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MethodPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MethodPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -/// Extension fields -pub mod exts { - - pub const field_policy: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 158361448, phantom: ::std::marker::PhantomData }; - - pub const method_policy: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 161893301, phantom: ::std::marker::PhantomData }; -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/api/policy.proto\x12\ngoogle.api\x1a\x20google/protobuf/des\ - criptor.proto\"\x7f\n\x0bFieldPolicy\x12\x1a\n\x08selector\x18\x01\x20\ - \x01(\tR\x08selector\x12/\n\x13resource_permission\x18\x02\x20\x01(\tR\ - \x12resourcePermission\x12#\n\rresource_type\x18\x03\x20\x01(\tR\x0creso\ - urceType\"n\n\x0cMethodPolicy\x12\x1a\n\x08selector\x18\t\x20\x01(\tR\ - \x08selector\x12B\n\x10request_policies\x18\x02\x20\x03(\x0b2\x17.google\ - .api.FieldPolicyR\x0frequestPolicies:\\\n\x0cfield_policy\x18\xe8\xce\ - \xc1K\x20\x01(\x0b2\x17.google.api.FieldPolicy\x12\x1d.google.protobuf.F\ - ieldOptionsR\x0bfieldPolicy:`\n\rmethod_policy\x18\xb5\x97\x99M\x20\x01(\ - \x0b2\x18.google.api.MethodPolicy\x12\x1e.google.protobuf.MethodOptionsR\ - \x0cmethodPolicyBp\n\x0ecom.google.apiB\x0bPolicyProtoP\x01ZEgoogle.gola\ - ng.org/genproto/googleapis/api/serviceconfig;serviceconfig\xf8\x01\x01\ - \xa2\x02\x04GAPIJ\xe0\x17\n\x06\x12\x04\x0e\0T\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0*\ - \n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\ - \x08\n\x01\x08\x12\x03\x15\0\\\n\t\n\x02\x08\x0b\x12\x03\x15\0\\\n\x08\n\ - \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\ - \x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\x12\x03\ - \x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\ - \n\t\n\x02\x08$\x12\x03\x19\0\"\nK\n\x01\x07\x12\x04\x1c\0\x1f\x01\x1a@\ - \x20Provides\x20`google.api.field_policy`\x20annotation\x20at\x20proto\ - \x20fields.\n\n!\n\x02\x07\0\x12\x03\x1e\x02'\x1a\x16\x20See\x20[FieldPo\ - licy][].\n\n\n\n\x03\x07\0\x02\x12\x03\x1c\x07#\n\n\n\x03\x07\0\x06\x12\ - \x03\x1e\x02\r\n\n\n\x03\x07\0\x01\x12\x03\x1e\x0e\x1a\n\n\n\x03\x07\0\ - \x03\x12\x03\x1e\x1d&\nM\n\x01\x07\x12\x04\"\0%\x01\x1aB\x20Provides\x20\ - `google.api.method_policy`\x20annotation\x20at\x20proto\x20methods.\n\n\ - \"\n\x02\x07\x01\x12\x03$\x02)\x1a\x17\x20See\x20[MethodPolicy][].\n\n\n\ - \n\x03\x07\x01\x02\x12\x03\"\x07$\n\n\n\x03\x07\x01\x06\x12\x03$\x02\x0e\ - \n\n\n\x03\x07\x01\x01\x12\x03$\x0f\x1c\n\n\n\x03\x07\x01\x03\x12\x03$\ - \x1f(\n\xca\x03\n\x02\x04\0\x12\x04/\0D\x01\x1a\xbd\x03\x20Google\x20API\ - \x20Policy\x20Annotation\n\n\x20This\x20message\x20defines\x20a\x20simpl\ - e\x20API\x20policy\x20annotation\x20that\x20can\x20be\x20used\x20to\n\ - \x20annotate\x20API\x20request\x20and\x20response\x20message\x20fields\ - \x20with\x20applicable\x20policies.\n\x20One\x20field\x20may\x20have\x20\ - multiple\x20applicable\x20policies\x20that\x20must\x20all\x20be\x20satis\ - fied\n\x20before\x20a\x20request\x20can\x20be\x20processed.\x20This\x20p\ - olicy\x20annotation\x20is\x20used\x20to\n\x20generate\x20the\x20overall\ - \x20policy\x20that\x20will\x20be\x20used\x20for\x20automatic\x20runtime\ - \n\x20policy\x20enforcement\x20and\x20documentation\x20generation.\n\n\n\ - \n\x03\x04\0\x01\x12\x03/\x08\x13\n\xbc\x03\n\x04\x04\0\x02\0\x12\x03:\ - \x02\x16\x1a\xae\x03\x20Selects\x20one\x20or\x20more\x20request\x20or\ - \x20response\x20message\x20fields\x20to\x20apply\x20this\n\x20`FieldPoli\ - cy`.\n\n\x20When\x20a\x20`FieldPolicy`\x20is\x20used\x20in\x20proto\x20a\ - nnotation,\x20the\x20selector\x20must\n\x20be\x20left\x20as\x20empty.\ - \x20The\x20service\x20config\x20generator\x20will\x20automatically\x20fi\ - ll\n\x20the\x20correct\x20value.\n\n\x20When\x20a\x20`FieldPolicy`\x20is\ - \x20used\x20in\x20service\x20config,\x20the\x20selector\x20must\x20be\ - \x20a\n\x20comma-separated\x20string\x20with\x20valid\x20request\x20or\ - \x20response\x20field\x20paths,\n\x20such\x20as\x20\"foo.bar\"\x20or\x20\ - \"foo.bar,foo.baz\".\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03:\x02\x08\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03:\t\x11\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03:\x14\x15\n\x86\x02\n\x04\x04\0\x02\x01\x12\x03@\x02!\x1a\xf8\ - \x01\x20Specifies\x20the\x20required\x20permission(s)\x20for\x20the\x20r\ - esource\x20referred\x20to\x20by\x20the\n\x20field.\x20It\x20requires\x20\ - the\x20field\x20contains\x20a\x20valid\x20resource\x20reference,\x20and\ - \n\x20the\x20request\x20must\x20pass\x20the\x20permission\x20checks\x20t\ - o\x20proceed.\x20For\x20example,\n\x20\"resourcemanager.projects.get\".\ - \n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03@\x02\x08\n\x0c\n\x05\x04\0\x02\ - \x01\x01\x12\x03@\t\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03@\x1f\x20\n\ - U\n\x04\x04\0\x02\x02\x12\x03C\x02\x1b\x1aH\x20Specifies\x20the\x20resou\ - rce\x20type\x20for\x20the\x20resource\x20referred\x20to\x20by\x20the\x20\ - field.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03C\t\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03C\x19\ - \x1a\n9\n\x02\x04\x01\x12\x04G\0T\x01\x1a-\x20Defines\x20policies\x20app\ - lying\x20to\x20an\x20RPC\x20method.\n\n\n\n\x03\x04\x01\x01\x12\x03G\x08\ - \x14\n\xdc\x02\n\x04\x04\x01\x02\0\x12\x03P\x02\x16\x1a\xce\x02\x20Selec\ - ts\x20a\x20method\x20to\x20which\x20these\x20policies\x20should\x20be\ - \x20enforced,\x20for\x20example,\n\x20\"google.pubsub.v1.Subscriber.Crea\ - teSubscription\".\n\n\x20Refer\x20to\x20[selector][google.api.Documentat\ - ionRule.selector]\x20for\x20syntax\n\x20details.\n\n\x20NOTE:\x20This\ - \x20field\x20must\x20not\x20be\x20set\x20in\x20the\x20proto\x20annotatio\ - n.\x20It\x20will\x20be\n\x20automatically\x20filled\x20by\x20the\x20serv\ - ice\x20config\x20compiler\x20.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03P\ - \x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03P\t\x11\n\x0c\n\x05\x04\ - \x01\x02\0\x03\x12\x03P\x14\x15\nC\n\x04\x04\x01\x02\x01\x12\x03S\x02,\ - \x1a6\x20Policies\x20that\x20are\x20applicable\x20to\x20the\x20request\ - \x20message.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03S\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x01\x06\x12\x03S\x0b\x16\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03S\x17'\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03S*+b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/api/quota.rs b/googleapis-raw/src/api/quota.rs index 98250e1..840b0e3 100644 --- a/googleapis-raw/src/api/quota.rs +++ b/googleapis-raw/src/api/quota.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,29 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/quota.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Quota) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Quota { // message fields - pub limits: ::protobuf::RepeatedField, - pub metric_rules: ::protobuf::RepeatedField, + /// List of `QuotaLimit` definitions for the service. + // @@protoc_insertion_point(field:google.api.Quota.limits) + pub limits: ::std::vec::Vec, + /// List of `MetricRule` definitions, each one mapping a selected method to one + /// or more metrics. + // @@protoc_insertion_point(field:google.api.Quota.metric_rules) + pub metric_rules: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Quota.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Quota { @@ -44,84 +52,45 @@ impl Quota { ::std::default::Default::default() } - // repeated .google.api.QuotaLimit limits = 3; - - - pub fn get_limits(&self) -> &[QuotaLimit] { - &self.limits - } - pub fn clear_limits(&mut self) { - self.limits.clear(); - } - - // Param is passed by value, moved - pub fn set_limits(&mut self, v: ::protobuf::RepeatedField) { - self.limits = v; - } - - // Mutable pointer to the field. - pub fn mut_limits(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.limits - } - - // Take field - pub fn take_limits(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.limits, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.MetricRule metric_rules = 4; - - - pub fn get_metric_rules(&self) -> &[MetricRule] { - &self.metric_rules - } - pub fn clear_metric_rules(&mut self) { - self.metric_rules.clear(); - } - - // Param is passed by value, moved - pub fn set_metric_rules(&mut self, v: ::protobuf::RepeatedField) { - self.metric_rules = v; - } - - // Mutable pointer to the field. - pub fn mut_metric_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.metric_rules - } - - // Take field - pub fn take_metric_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.metric_rules, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "limits", + |m: &Quota| { &m.limits }, + |m: &mut Quota| { &mut m.limits }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metric_rules", + |m: &Quota| { &m.metric_rules }, + |m: &mut Quota| { &mut m.metric_rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Quota", + fields, + oneofs, + ) } } impl ::protobuf::Message for Quota { + const NAME: &'static str = "Quota"; + fn is_initialized(&self) -> bool { - for v in &self.limits { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metric_rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.limits)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 26 => { + self.limits.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_rules)?; + 34 => { + self.metric_rules.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -130,122 +99,99 @@ impl ::protobuf::Message for Quota { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.limits { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.metric_rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.limits { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; for v in &self.metric_rules { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Quota { Quota::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "limits", - |m: &Quota| { &m.limits }, - |m: &mut Quota| { &mut m.limits }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metric_rules", - |m: &Quota| { &m.metric_rules }, - |m: &mut Quota| { &mut m.metric_rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Quota", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.limits.clear(); + self.metric_rules.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Quota { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Quota::new) + static instance: Quota = Quota { + limits: ::std::vec::Vec::new(), + metric_rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Quota { - fn clear(&mut self) { - self.limits.clear(); - self.metric_rules.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Quota { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Quota").unwrap()).clone() } } -impl ::std::fmt::Debug for Quota { +impl ::std::fmt::Display for Quota { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Quota { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Bind API methods to metrics. Binding a method to a metric causes that +/// metric's configured quota behaviors to apply to the method call. +// @@protoc_insertion_point(message:google.api.MetricRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MetricRule { // message fields + /// Selects the methods to which this rule applies. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.MetricRule.selector) pub selector: ::std::string::String, + /// Metrics to update when the selected methods are called, and the associated + /// cost applied to each metric. + /// + /// The key of the map is the metric name, and the values are the amount + /// increased for the metric against which the quota limits are defined. + /// The value must not be negative. + // @@protoc_insertion_point(field:google.api.MetricRule.metric_costs) pub metric_costs: ::std::collections::HashMap<::std::string::String, i64>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.MetricRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MetricRule { @@ -259,75 +205,57 @@ impl MetricRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // repeated .google.api.MetricRule.MetricCostsEntry metric_costs = 2; - - - pub fn get_metric_costs(&self) -> &::std::collections::HashMap<::std::string::String, i64> { - &self.metric_costs - } - pub fn clear_metric_costs(&mut self) { - self.metric_costs.clear(); - } - - // Param is passed by value, moved - pub fn set_metric_costs(&mut self, v: ::std::collections::HashMap<::std::string::String, i64>) { - self.metric_costs = v; - } - - // Mutable pointer to the field. - pub fn mut_metric_costs(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, i64> { - &mut self.metric_costs - } - - // Take field - pub fn take_metric_costs(&mut self) -> ::std::collections::HashMap<::std::string::String, i64> { - ::std::mem::replace(&mut self.metric_costs, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &MetricRule| { &m.selector }, + |m: &mut MetricRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "metric_costs", + |m: &MetricRule| { &m.metric_costs }, + |m: &mut MetricRule| { &mut m.metric_costs }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MetricRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for MetricRule { + const NAME: &'static str = "MetricRule"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.metric_costs)?; + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 16 => value = is.read_int64()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.metric_costs.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -336,120 +264,171 @@ impl ::protobuf::Message for MetricRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(2, &self.metric_costs); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.metric_costs { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int64_size(2, *v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(2, &self.metric_costs, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.metric_costs { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int64_size(2, *v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_int64(2, *v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MetricRule { MetricRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &MetricRule| { &m.selector }, - |m: &mut MetricRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>( - "metric_costs", - |m: &MetricRule| { &m.metric_costs }, - |m: &mut MetricRule| { &mut m.metric_costs }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MetricRule", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.selector.clear(); + self.metric_costs.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MetricRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(MetricRule::new) } } -impl ::protobuf::Clear for MetricRule { - fn clear(&mut self) { - self.selector.clear(); - self.metric_costs.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MetricRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MetricRule").unwrap()).clone() } } -impl ::std::fmt::Debug for MetricRule { +impl ::std::fmt::Display for MetricRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MetricRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// `QuotaLimit` defines a specific limit that applies over a specified duration +/// for a limit type. There can be at most one limit for a duration and limit +/// type combination defined within a `QuotaGroup`. +// @@protoc_insertion_point(message:google.api.QuotaLimit) +#[derive(PartialEq,Clone,Default,Debug)] pub struct QuotaLimit { // message fields + /// Name of the quota limit. + /// + /// The name must be provided, and it must be unique within the service. The + /// name can only include alphanumeric characters as well as '-'. + /// + /// The maximum length of the limit name is 64 characters. + // @@protoc_insertion_point(field:google.api.QuotaLimit.name) pub name: ::std::string::String, + /// Optional. User-visible, extended description for this quota limit. + /// Should be used only when more context is needed to understand this limit + /// than provided by the limit's display name (see: `display_name`). + // @@protoc_insertion_point(field:google.api.QuotaLimit.description) pub description: ::std::string::String, + /// Default number of tokens that can be consumed during the specified + /// duration. This is the number of tokens assigned when a client + /// application developer activates the service for his/her project. + /// + /// Specifying a value of 0 will block all requests. This can be used if you + /// are provisioning quota to selected consumers and blocking others. + /// Similarly, a value of -1 will indicate an unlimited quota. No other + /// negative values are allowed. + /// + /// Used by group-based quotas only. + // @@protoc_insertion_point(field:google.api.QuotaLimit.default_limit) pub default_limit: i64, + /// Maximum number of tokens that can be consumed during the specified + /// duration. Client application developers can override the default limit up + /// to this maximum. If specified, this value cannot be set to a value less + /// than the default limit. If not specified, it is set to the default limit. + /// + /// To allow clients to apply overrides with no upper bound, set this to -1, + /// indicating unlimited maximum quota. + /// + /// Used by group-based quotas only. + // @@protoc_insertion_point(field:google.api.QuotaLimit.max_limit) pub max_limit: i64, + /// Free tier value displayed in the Developers Console for this limit. + /// The free tier is the number of tokens that will be subtracted from the + /// billed amount when billing is enabled. + /// This field can only be set on a limit with duration "1d", in a billable + /// group; it is invalid on any other limit. If this field is not set, it + /// defaults to 0, indicating that there is no free tier for this service. + /// + /// Used by group-based quotas only. + // @@protoc_insertion_point(field:google.api.QuotaLimit.free_tier) pub free_tier: i64, + /// Duration of this limit in textual notation. Example: "100s", "24h", "1d". + /// For duration longer than a day, only multiple of days is supported. We + /// support only "100s" and "1d" for now. Additional support will be added in + /// the future. "0" indicates indefinite duration. + /// + /// Used by group-based quotas only. + // @@protoc_insertion_point(field:google.api.QuotaLimit.duration) pub duration: ::std::string::String, + /// The name of the metric this quota limit applies to. The quota limits with + /// the same metric will be checked together during runtime. The metric must be + /// defined within the service config. + // @@protoc_insertion_point(field:google.api.QuotaLimit.metric) pub metric: ::std::string::String, + /// Specify the unit of the quota limit. It uses the same syntax as + /// [Metric.unit][]. The supported unit kinds are determined by the quota + /// backend system. + /// + /// Here are some examples: + /// * "1/min/{project}" for quota per minute per project. + /// + /// Note: the order of unit components is insignificant. + /// The "1" at the beginning is required to follow the metric unit syntax. + // @@protoc_insertion_point(field:google.api.QuotaLimit.unit) pub unit: ::std::string::String, + /// Tiered limit values. You must specify this as a key:value pair, with an + /// integer value that is the maximum number of requests allowed for the + /// specified unit. Currently only STANDARD is supported. + // @@protoc_insertion_point(field:google.api.QuotaLimit.values) pub values: ::std::collections::HashMap<::std::string::String, i64>, + /// User-visible display name for this limit. + /// Optional. If not set, the UI will provide a default display name based on + /// the quota configuration. This field can be used to override the default + /// display name generated from the configuration. + // @@protoc_insertion_point(field:google.api.QuotaLimit.display_name) pub display_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.QuotaLimit.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a QuotaLimit { @@ -463,286 +442,121 @@ impl QuotaLimit { ::std::default::Default::default() } - // string name = 6; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // int64 default_limit = 3; - - - pub fn get_default_limit(&self) -> i64 { - self.default_limit - } - pub fn clear_default_limit(&mut self) { - self.default_limit = 0; - } - - // Param is passed by value, moved - pub fn set_default_limit(&mut self, v: i64) { - self.default_limit = v; - } - - // int64 max_limit = 4; - - - pub fn get_max_limit(&self) -> i64 { - self.max_limit - } - pub fn clear_max_limit(&mut self) { - self.max_limit = 0; - } - - // Param is passed by value, moved - pub fn set_max_limit(&mut self, v: i64) { - self.max_limit = v; - } - - // int64 free_tier = 7; - - - pub fn get_free_tier(&self) -> i64 { - self.free_tier - } - pub fn clear_free_tier(&mut self) { - self.free_tier = 0; - } - - // Param is passed by value, moved - pub fn set_free_tier(&mut self, v: i64) { - self.free_tier = v; - } - - // string duration = 5; - - - pub fn get_duration(&self) -> &str { - &self.duration - } - pub fn clear_duration(&mut self) { - self.duration.clear(); - } - - // Param is passed by value, moved - pub fn set_duration(&mut self, v: ::std::string::String) { - self.duration = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_duration(&mut self) -> &mut ::std::string::String { - &mut self.duration - } - - // Take field - pub fn take_duration(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.duration, ::std::string::String::new()) - } - - // string metric = 8; - - - pub fn get_metric(&self) -> &str { - &self.metric - } - pub fn clear_metric(&mut self) { - self.metric.clear(); - } - - // Param is passed by value, moved - pub fn set_metric(&mut self, v: ::std::string::String) { - self.metric = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metric(&mut self) -> &mut ::std::string::String { - &mut self.metric - } - - // Take field - pub fn take_metric(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.metric, ::std::string::String::new()) - } - - // string unit = 9; - - - pub fn get_unit(&self) -> &str { - &self.unit - } - pub fn clear_unit(&mut self) { - self.unit.clear(); - } - - // Param is passed by value, moved - pub fn set_unit(&mut self, v: ::std::string::String) { - self.unit = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_unit(&mut self) -> &mut ::std::string::String { - &mut self.unit - } - - // Take field - pub fn take_unit(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.unit, ::std::string::String::new()) - } - - // repeated .google.api.QuotaLimit.ValuesEntry values = 10; - - - pub fn get_values(&self) -> &::std::collections::HashMap<::std::string::String, i64> { - &self.values - } - pub fn clear_values(&mut self) { - self.values.clear(); - } - - // Param is passed by value, moved - pub fn set_values(&mut self, v: ::std::collections::HashMap<::std::string::String, i64>) { - self.values = v; - } - - // Mutable pointer to the field. - pub fn mut_values(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, i64> { - &mut self.values - } - - // Take field - pub fn take_values(&mut self) -> ::std::collections::HashMap<::std::string::String, i64> { - ::std::mem::replace(&mut self.values, ::std::collections::HashMap::new()) - } - - // string display_name = 12; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(10); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &QuotaLimit| { &m.name }, + |m: &mut QuotaLimit| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &QuotaLimit| { &m.description }, + |m: &mut QuotaLimit| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "default_limit", + |m: &QuotaLimit| { &m.default_limit }, + |m: &mut QuotaLimit| { &mut m.default_limit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "max_limit", + |m: &QuotaLimit| { &m.max_limit }, + |m: &mut QuotaLimit| { &mut m.max_limit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "free_tier", + |m: &QuotaLimit| { &m.free_tier }, + |m: &mut QuotaLimit| { &mut m.free_tier }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "duration", + |m: &QuotaLimit| { &m.duration }, + |m: &mut QuotaLimit| { &mut m.duration }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "metric", + |m: &QuotaLimit| { &m.metric }, + |m: &mut QuotaLimit| { &mut m.metric }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "unit", + |m: &QuotaLimit| { &m.unit }, + |m: &mut QuotaLimit| { &mut m.unit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "values", + |m: &QuotaLimit| { &m.values }, + |m: &mut QuotaLimit| { &mut m.values }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &QuotaLimit| { &m.display_name }, + |m: &mut QuotaLimit| { &mut m.display_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QuotaLimit", + fields, + oneofs, + ) } } impl ::protobuf::Message for QuotaLimit { + const NAME: &'static str = "QuotaLimit"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 50 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 18 => { + self.description = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.default_limit = tmp; + 24 => { + self.default_limit = is.read_int64()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.max_limit = tmp; + 32 => { + self.max_limit = is.read_int64()?; }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.free_tier = tmp; + 56 => { + self.free_tier = is.read_int64()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.duration)?; + 42 => { + self.duration = is.read_string()?; }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metric)?; + 66 => { + self.metric = is.read_string()?; }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.unit)?; + 74 => { + self.unit = is.read_string()?; }, - 10 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(wire_type, is, &mut self.values)?; + 82 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 16 => value = is.read_int64()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.values.insert(key, value); }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + 98 => { + self.display_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -751,7 +565,7 @@ impl ::protobuf::Message for QuotaLimit { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.name); @@ -760,13 +574,13 @@ impl ::protobuf::Message for QuotaLimit { my_size += ::protobuf::rt::string_size(2, &self.description); } if self.default_limit != 0 { - my_size += ::protobuf::rt::value_size(3, self.default_limit, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(3, self.default_limit); } if self.max_limit != 0 { - my_size += ::protobuf::rt::value_size(4, self.max_limit, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(4, self.max_limit); } if self.free_tier != 0 { - my_size += ::protobuf::rt::value_size(7, self.free_tier, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(7, self.free_tier); } if !self.duration.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.duration); @@ -777,16 +591,21 @@ impl ::protobuf::Message for QuotaLimit { if !self.unit.is_empty() { my_size += ::protobuf::rt::string_size(9, &self.unit); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(10, &self.values); + for (k, v) in &self.values { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int64_size(2, *v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(12, &self.display_name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(6, &self.name)?; } @@ -811,113 +630,34 @@ impl ::protobuf::Message for QuotaLimit { if !self.unit.is_empty() { os.write_string(9, &self.unit)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>(10, &self.values, os)?; + for (k, v) in &self.values { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int64_size(2, *v); + os.write_raw_varint32(82)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_int64(2, *v)?; + }; if !self.display_name.is_empty() { os.write_string(12, &self.display_name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> QuotaLimit { QuotaLimit::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &QuotaLimit| { &m.name }, - |m: &mut QuotaLimit| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &QuotaLimit| { &m.description }, - |m: &mut QuotaLimit| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "default_limit", - |m: &QuotaLimit| { &m.default_limit }, - |m: &mut QuotaLimit| { &mut m.default_limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_limit", - |m: &QuotaLimit| { &m.max_limit }, - |m: &mut QuotaLimit| { &mut m.max_limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "free_tier", - |m: &QuotaLimit| { &m.free_tier }, - |m: &mut QuotaLimit| { &mut m.free_tier }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "duration", - |m: &QuotaLimit| { &m.duration }, - |m: &mut QuotaLimit| { &mut m.duration }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metric", - |m: &QuotaLimit| { &m.metric }, - |m: &mut QuotaLimit| { &mut m.metric }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "unit", - |m: &QuotaLimit| { &m.unit }, - |m: &mut QuotaLimit| { &mut m.unit }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt64>( - "values", - |m: &QuotaLimit| { &m.values }, - |m: &mut QuotaLimit| { &mut m.values }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &QuotaLimit| { &m.display_name }, - |m: &mut QuotaLimit| { &mut m.display_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaLimit", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QuotaLimit { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QuotaLimit::new) - } -} - -impl ::protobuf::Clear for QuotaLimit { fn clear(&mut self) { self.name.clear(); self.description.clear(); @@ -929,20 +669,30 @@ impl ::protobuf::Clear for QuotaLimit { self.unit.clear(); self.values.clear(); self.display_name.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static QuotaLimit { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(QuotaLimit::new) + } +} + +impl ::protobuf::MessageFull for QuotaLimit { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("QuotaLimit").unwrap()).clone() } } -impl ::std::fmt::Debug for QuotaLimit { +impl ::std::fmt::Display for QuotaLimit { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for QuotaLimit { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -965,12 +715,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ y\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ \x20\x01(\x03R\x05value:\x028\x01Bl\n\x0ecom.google.apiB\nQuotaProtoP\ \x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;servicecon\ - fig\xa2\x02\x04GAPIJ\xa17\n\x07\x12\x05\x0e\0\xb7\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + fig\xa2\x02\x04GAPIJ\xf48\n\x07\x12\x05\x0f\0\xba\x01\x01\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ @@ -978,12 +728,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\ - \x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0+\ - \n\t\n\x02\x08\x08\x12\x03\x14\0+\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ - \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\x84\r\n\x02\x04\0\x12\x04K\0R\x01\x1a\xf7\x0c\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\ + \x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\ + \x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0+\ + \n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\ + \x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ + \x08$\x12\x03\x17\0\"\n\x87\r\n\x02\x04\0\x12\x04L\0S\x01\x1a\xfa\x0c\ \x20Quota\x20configuration\x20helps\x20to\x20achieve\x20fairness\x20and\ \x20budgeting\x20in\x20service\n\x20usage.\n\n\x20The\x20metric\x20based\ \x20quota\x20configuration\x20works\x20this\x20way:\n\x20-\x20The\x20ser\ @@ -999,48 +749,48 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s\n\x20\x20\x20\x20\x20\x20\x20\x20unit:\x20\"1/min/{project}\"\x20\x20#\ \x20rate\x20limit\x20for\x20consumer\x20projects\n\x20\x20\x20\x20\x20\ \x20\x20\x20values:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20STANDARD:\ - \x2010000\n\n\n\x20\x20\x20\x20\x20\x20(The\x20metric\x20rules\x20bind\ - \x20all\x20methods\x20to\x20the\x20read_calls\x20metric,\n\x20\x20\x20\ - \x20\x20\x20\x20except\x20for\x20the\x20UpdateBook\x20and\x20DeleteBook\ - \x20methods.\x20These\x20two\x20methods\n\x20\x20\x20\x20\x20\x20\x20are\ - \x20mapped\x20to\x20the\x20write_calls\x20metric,\x20with\x20the\x20Upda\ - teBook\x20method\n\x20\x20\x20\x20\x20\x20\x20consuming\x20at\x20twice\ - \x20rate\x20as\x20the\x20DeleteBook\x20method.)\n\x20\x20\x20\x20\x20\ - \x20metric_rules:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\ - \x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20library.googleapis.com/read_calls:\x201\n\x20\x20\x20\x20\ - \x20\x20-\x20selector:\x20google.example.library.v1.LibraryService.Updat\ - eBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x202\n\x20\ - \x20\x20\x20\x20\x20-\x20selector:\x20google.example.library.v1.LibraryS\ - ervice.DeleteBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\ - \x201\n\n\x20\x20Corresponding\x20Metric\x20definition:\n\n\x20\x20\x20\ - \x20\x20\x20metrics:\n\x20\x20\x20\x20\x20\x20-\x20name:\x20library.goog\ - leapis.com/read_calls\n\x20\x20\x20\x20\x20\x20\x20\x20display_name:\x20\ - Read\x20requests\n\x20\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\ - \n\x20\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\n\x20\x20\x20\ - \x20\x20\x20-\x20name:\x20library.googleapis.com/write_calls\n\x20\x20\ - \x20\x20\x20\x20\x20\x20display_name:\x20Write\x20requests\n\x20\x20\x20\ - \x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20\ - \x20value_type:\x20INT64\n\n\n\n\n\n\x03\x04\0\x01\x12\x03K\x08\r\n>\n\ - \x04\x04\0\x02\0\x12\x03M\x02!\x1a1\x20List\x20of\x20QuotaLimit\x20defin\ - itions\x20for\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03M\ - \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03M\x0b\x15\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03M\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03M\x1f\x20\ - \nj\n\x04\x04\0\x02\x01\x12\x03Q\x02'\x1a]\x20List\x20of\x20MetricRule\ + \x2010000\n\n\n\x20\x20\x20\x20\x20\x20#\x20The\x20metric\x20rules\x20bi\ + nd\x20all\x20methods\x20to\x20the\x20read_calls\x20metric,\n\x20\x20\x20\ + \x20\x20\x20#\x20except\x20for\x20the\x20UpdateBook\x20and\x20DeleteBook\ + \x20methods.\x20These\x20two\x20methods\n\x20\x20\x20\x20\x20\x20#\x20ar\ + e\x20mapped\x20to\x20the\x20write_calls\x20metric,\x20with\x20the\x20Upd\ + ateBook\x20method\n\x20\x20\x20\x20\x20\x20#\x20consuming\x20at\x20twice\ + \x20rate\x20as\x20the\x20DeleteBook\x20method.\n\x20\x20\x20\x20\x20\x20\ + metric_rules:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\ + \x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20library.googleapis.com/read_calls:\x201\n\x20\x20\x20\x20\x20\ + \x20-\x20selector:\x20google.example.library.v1.LibraryService.UpdateBoo\ + k\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x202\n\x20\x20\ + \x20\x20\x20\x20-\x20selector:\x20google.example.library.v1.LibraryServi\ + ce.DeleteBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x201\ + \n\n\x20\x20Corresponding\x20Metric\x20definition:\n\n\x20\x20\x20\x20\ + \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20-\x20name:\x20library.googleap\ + is.com/read_calls\n\x20\x20\x20\x20\x20\x20\x20\x20display_name:\x20Read\ + \x20requests\n\x20\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\ + \x20\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\n\x20\x20\x20\x20\ + \x20\x20-\x20name:\x20library.googleapis.com/write_calls\n\x20\x20\x20\ + \x20\x20\x20\x20\x20display_name:\x20Write\x20requests\n\x20\x20\x20\x20\ + \x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20\x20v\ + alue_type:\x20INT64\n\n\n\n\n\n\x03\x04\0\x01\x12\x03L\x08\r\n@\n\x04\ + \x04\0\x02\0\x12\x03N\x02!\x1a3\x20List\x20of\x20`QuotaLimit`\x20definit\ + ions\x20for\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03N\ + \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03N\x0b\x15\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03N\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03N\x1f\x20\ + \nl\n\x04\x04\0\x02\x01\x12\x03R\x02'\x1a_\x20List\x20of\x20`MetricRule`\ \x20definitions,\x20each\x20one\x20mapping\x20a\x20selected\x20method\ \x20to\x20one\n\x20or\x20more\x20metrics.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x04\x12\x03Q\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03Q\x0b\x15\n\x0c\ - \n\x05\x04\0\x02\x01\x01\x12\x03Q\x16\"\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03Q%&\n\x96\x01\n\x02\x04\x01\x12\x04V\0d\x01\x1a\x89\x01\x20Bind\ + \x04\x12\x03R\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03R\x0b\x15\n\x0c\ + \n\x05\x04\0\x02\x01\x01\x12\x03R\x16\"\n\x0c\n\x05\x04\0\x02\x01\x03\ + \x12\x03R%&\n\x96\x01\n\x02\x04\x01\x12\x04W\0d\x01\x1a\x89\x01\x20Bind\ \x20API\x20methods\x20to\x20metrics.\x20Binding\x20a\x20method\x20to\x20\ a\x20metric\x20causes\x20that\n\x20metric's\x20configured\x20quota\x20be\ haviors\x20to\x20apply\x20to\x20the\x20method\x20call.\n\n\n\n\x03\x04\ - \x01\x01\x12\x03V\x08\x12\n\x91\x01\n\x04\x04\x01\x02\0\x12\x03[\x02\x16\ - \x1a\x83\x01\x20Selects\x20the\x20methods\x20to\x20which\x20this\x20rule\ + \x01\x01\x12\x03W\x08\x12\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03[\x02\x16\ + \x1a\x82\x01\x20Selects\x20the\x20methods\x20to\x20which\x20this\x20rule\ \x20applies.\n\n\x20Refer\x20to\x20[selector][google.api.DocumentationRu\ - le.selector]\x20for\x20syntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\ + le.selector]\x20for\x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\ \x05\x12\x03[\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03[\t\x11\n\x0c\ \n\x05\x04\x01\x02\0\x03\x12\x03[\x14\x15\n\xa6\x02\n\x04\x04\x01\x02\ \x01\x12\x03c\x02&\x1a\x98\x02\x20Metrics\x20to\x20update\x20when\x20the\ @@ -1051,7 +801,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ which\x20the\x20quota\x20limits\x20are\x20defined.\n\x20The\x20value\x20\ must\x20not\x20be\x20negative.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\ c\x02\x14\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03c\x15!\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03c$%\n\xd8\x01\n\x02\x04\x02\x12\x05i\0\xb7\x01\ + \x01\x02\x01\x03\x12\x03c$%\n\xd8\x01\n\x02\x04\x02\x12\x05i\0\xba\x01\ \x01\x1a\xca\x01\x20`QuotaLimit`\x20defines\x20a\x20specific\x20limit\ \x20that\x20applies\x20over\x20a\x20specified\x20duration\n\x20for\x20a\ \x20limit\x20type.\x20There\x20can\x20be\x20at\x20most\x20one\x20limit\ @@ -1110,56 +860,79 @@ static file_descriptor_proto_data: &'static [u8] = b"\ is\x20service.\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\r\ \n\x05\x04\x02\x02\x04\x05\x12\x04\x96\x01\x02\x07\n\r\n\x05\x04\x02\x02\ \x04\x01\x12\x04\x96\x01\x08\x11\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ - \x96\x01\x14\x15\nv\n\x04\x04\x02\x02\x05\x12\x04\x9b\x01\x02\x16\x1ah\ - \x20Duration\x20of\x20this\x20limit\x20in\x20textual\x20notation.\x20Mus\ - t\x20be\x20\"100s\"\x20or\x20\"1d\".\n\n\x20Used\x20by\x20group-based\ - \x20quotas\x20only.\n\n\r\n\x05\x04\x02\x02\x05\x05\x12\x04\x9b\x01\x02\ - \x08\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\x9b\x01\t\x11\n\r\n\x05\x04\ - \x02\x02\x05\x03\x12\x04\x9b\x01\x14\x15\n\xcb\x01\n\x04\x04\x02\x02\x06\ - \x12\x04\xa0\x01\x02\x14\x1a\xbc\x01\x20The\x20name\x20of\x20the\x20metr\ - ic\x20this\x20quota\x20limit\x20applies\x20to.\x20The\x20quota\x20limits\ - \x20with\n\x20the\x20same\x20metric\x20will\x20be\x20checked\x20together\ - \x20during\x20runtime.\x20The\x20metric\x20must\x20be\n\x20defined\x20wi\ - thin\x20the\x20service\x20config.\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\ - \x04\xa0\x01\x02\x08\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\xa0\x01\t\x0f\ - \n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xa0\x01\x12\x13\n\xf8\x02\n\x04\ - \x04\x02\x02\x07\x12\x04\xab\x01\x02\x12\x1a\xe9\x02\x20Specify\x20the\ - \x20unit\x20of\x20the\x20quota\x20limit.\x20It\x20uses\x20the\x20same\ - \x20syntax\x20as\n\x20[Metric.unit][].\x20The\x20supported\x20unit\x20ki\ - nds\x20are\x20determined\x20by\x20the\x20quota\n\x20backend\x20system.\n\ - \n\x20Here\x20are\x20some\x20examples:\n\x20*\x20\"1/min/{project}\"\x20\ - for\x20quota\x20per\x20minute\x20per\x20project.\n\n\x20Note:\x20the\x20\ - order\x20of\x20unit\x20components\x20is\x20insignificant.\n\x20The\x20\"\ - 1\"\x20at\x20the\x20beginning\x20is\x20required\x20to\x20follow\x20the\ - \x20metric\x20unit\x20syntax.\n\n\r\n\x05\x04\x02\x02\x07\x05\x12\x04\ - \xab\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\xab\x01\t\r\n\r\n\ - \x05\x04\x02\x02\x07\x03\x12\x04\xab\x01\x10\x11\n\xd5\x01\n\x04\x04\x02\ - \x02\x08\x12\x04\xb0\x01\x02!\x1a\xc6\x01\x20Tiered\x20limit\x20values.\ - \x20You\x20must\x20specify\x20this\x20as\x20a\x20key:value\x20pair,\x20w\ - ith\x20an\n\x20integer\x20value\x20that\x20is\x20the\x20maximum\x20numbe\ - r\x20of\x20requests\x20allowed\x20for\x20the\n\x20specified\x20unit.\x20\ - Currently\x20only\x20STANDARD\x20is\x20supported.\n\n\r\n\x05\x04\x02\ - \x02\x08\x06\x12\x04\xb0\x01\x02\x14\n\r\n\x05\x04\x02\x02\x08\x01\x12\ - \x04\xb0\x01\x15\x1b\n\r\n\x05\x04\x02\x02\x08\x03\x12\x04\xb0\x01\x1e\ - \x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\x04\xb6\x01\x02\x1b\x1a\xef\x01\ - \x20User-visible\x20display\x20name\x20for\x20this\x20limit.\n\x20Option\ - al.\x20If\x20not\x20set,\x20the\x20UI\x20will\x20provide\x20a\x20default\ - \x20display\x20name\x20based\x20on\n\x20the\x20quota\x20configuration.\ - \x20This\x20field\x20can\x20be\x20used\x20to\x20override\x20the\x20defau\ - lt\n\x20display\x20name\x20generated\x20from\x20the\x20configuration.\n\ - \n\r\n\x05\x04\x02\x02\t\x05\x12\x04\xb6\x01\x02\x08\n\r\n\x05\x04\x02\ - \x02\t\x01\x12\x04\xb6\x01\t\x15\n\r\n\x05\x04\x02\x02\t\x03\x12\x04\xb6\ - \x01\x18\x1ab\x06proto3\ + \x96\x01\x14\x15\n\xc0\x02\n\x04\x04\x02\x02\x05\x12\x04\x9e\x01\x02\x16\ + \x1a\xb1\x02\x20Duration\x20of\x20this\x20limit\x20in\x20textual\x20nota\ + tion.\x20Example:\x20\"100s\",\x20\"24h\",\x20\"1d\".\n\x20For\x20durati\ + on\x20longer\x20than\x20a\x20day,\x20only\x20multiple\x20of\x20days\x20i\ + s\x20supported.\x20We\n\x20support\x20only\x20\"100s\"\x20and\x20\"1d\"\ + \x20for\x20now.\x20Additional\x20support\x20will\x20be\x20added\x20in\n\ + \x20the\x20future.\x20\"0\"\x20indicates\x20indefinite\x20duration.\n\n\ + \x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\r\n\x05\x04\x02\x02\ + \x05\x05\x12\x04\x9e\x01\x02\x08\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\ + \x9e\x01\t\x11\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x9e\x01\x14\x15\n\ + \xcb\x01\n\x04\x04\x02\x02\x06\x12\x04\xa3\x01\x02\x14\x1a\xbc\x01\x20Th\ + e\x20name\x20of\x20the\x20metric\x20this\x20quota\x20limit\x20applies\ + \x20to.\x20The\x20quota\x20limits\x20with\n\x20the\x20same\x20metric\x20\ + will\x20be\x20checked\x20together\x20during\x20runtime.\x20The\x20metric\ + \x20must\x20be\n\x20defined\x20within\x20the\x20service\x20config.\n\n\r\ + \n\x05\x04\x02\x02\x06\x05\x12\x04\xa3\x01\x02\x08\n\r\n\x05\x04\x02\x02\ + \x06\x01\x12\x04\xa3\x01\t\x0f\n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xa3\ + \x01\x12\x13\n\xf8\x02\n\x04\x04\x02\x02\x07\x12\x04\xae\x01\x02\x12\x1a\ + \xe9\x02\x20Specify\x20the\x20unit\x20of\x20the\x20quota\x20limit.\x20It\ + \x20uses\x20the\x20same\x20syntax\x20as\n\x20[Metric.unit][].\x20The\x20\ + supported\x20unit\x20kinds\x20are\x20determined\x20by\x20the\x20quota\n\ + \x20backend\x20system.\n\n\x20Here\x20are\x20some\x20examples:\n\x20*\ + \x20\"1/min/{project}\"\x20for\x20quota\x20per\x20minute\x20per\x20proje\ + ct.\n\n\x20Note:\x20the\x20order\x20of\x20unit\x20components\x20is\x20in\ + significant.\n\x20The\x20\"1\"\x20at\x20the\x20beginning\x20is\x20requir\ + ed\x20to\x20follow\x20the\x20metric\x20unit\x20syntax.\n\n\r\n\x05\x04\ + \x02\x02\x07\x05\x12\x04\xae\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\ + \x12\x04\xae\x01\t\r\n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xae\x01\x10\ + \x11\n\xd5\x01\n\x04\x04\x02\x02\x08\x12\x04\xb3\x01\x02!\x1a\xc6\x01\ + \x20Tiered\x20limit\x20values.\x20You\x20must\x20specify\x20this\x20as\ + \x20a\x20key:value\x20pair,\x20with\x20an\n\x20integer\x20value\x20that\ + \x20is\x20the\x20maximum\x20number\x20of\x20requests\x20allowed\x20for\ + \x20the\n\x20specified\x20unit.\x20Currently\x20only\x20STANDARD\x20is\ + \x20supported.\n\n\r\n\x05\x04\x02\x02\x08\x06\x12\x04\xb3\x01\x02\x14\n\ + \r\n\x05\x04\x02\x02\x08\x01\x12\x04\xb3\x01\x15\x1b\n\r\n\x05\x04\x02\ + \x02\x08\x03\x12\x04\xb3\x01\x1e\x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\ + \x04\xb9\x01\x02\x1b\x1a\xef\x01\x20User-visible\x20display\x20name\x20f\ + or\x20this\x20limit.\n\x20Optional.\x20If\x20not\x20set,\x20the\x20UI\ + \x20will\x20provide\x20a\x20default\x20display\x20name\x20based\x20on\n\ + \x20the\x20quota\x20configuration.\x20This\x20field\x20can\x20be\x20used\ + \x20to\x20override\x20the\x20default\n\x20display\x20name\x20generated\ + \x20from\x20the\x20configuration.\n\n\r\n\x05\x04\x02\x02\t\x05\x12\x04\ + \xb9\x01\x02\x08\n\r\n\x05\x04\x02\x02\t\x01\x12\x04\xb9\x01\t\x15\n\r\n\ + \x05\x04\x02\x02\t\x03\x12\x04\xb9\x01\x18\x1ab\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(Quota::generated_message_descriptor_data()); + messages.push(MetricRule::generated_message_descriptor_data()); + messages.push(QuotaLimit::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/resource.rs b/googleapis-raw/src/api/resource.rs index 5f38295..dc1b3d2 100644 --- a/googleapis-raw/src/api/resource.rs +++ b/googleapis-raw/src/api/resource.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,53 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/resource.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.ResourceDescriptor) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResourceDescriptor { // message fields - pub field_type: ::std::string::String, - pub pattern: ::protobuf::RepeatedField<::std::string::String>, + /// The resource type. It must be in the format of + /// {service_name}/{resource_type_kind}. The `resource_type_kind` must be + /// singular and must not include version numbers. + /// + /// Example: `storage.googleapis.com/Bucket` + /// + /// The value of the resource_type_kind must follow the regular expression + /// /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + /// should use PascalCase (UpperCamelCase). The maximum number of + /// characters allowed for the `resource_type_kind` is 100. + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.type) + pub type_: ::std::string::String, + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.pattern) + pub pattern: ::std::vec::Vec<::std::string::String>, + /// Optional. The field on the resource that designates the resource name + /// field. If omitted, this is assumed to be "name". + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.name_field) pub name_field: ::std::string::String, - pub history: ResourceDescriptor_History, + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.history) + pub history: ::protobuf::EnumOrUnknown, + /// The plural name used in the resource name, such as 'projects' for + /// the name of 'projects/{project}'. It is the same concept of the `plural` + /// field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.plural) pub plural: ::std::string::String, + /// The same concept of the `singular` field in k8s CRD spec + /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// Such as "project" for the `resourcemanager.googleapis.com/Project` type. + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.singular) pub singular: ::std::string::String, - pub style: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.ResourceDescriptor.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResourceDescriptor { @@ -49,208 +76,77 @@ impl ResourceDescriptor { ::std::default::Default::default() } - // string type = 1; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // repeated string pattern = 2; - - - pub fn get_pattern(&self) -> &[::std::string::String] { - &self.pattern - } - pub fn clear_pattern(&mut self) { - self.pattern.clear(); - } - - // Param is passed by value, moved - pub fn set_pattern(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.pattern = v; - } - - // Mutable pointer to the field. - pub fn mut_pattern(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.pattern - } - - // Take field - pub fn take_pattern(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.pattern, ::protobuf::RepeatedField::new()) - } - - // string name_field = 3; - - - pub fn get_name_field(&self) -> &str { - &self.name_field - } - pub fn clear_name_field(&mut self) { - self.name_field.clear(); - } - - // Param is passed by value, moved - pub fn set_name_field(&mut self, v: ::std::string::String) { - self.name_field = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name_field(&mut self) -> &mut ::std::string::String { - &mut self.name_field - } - - // Take field - pub fn take_name_field(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name_field, ::std::string::String::new()) - } - - // .google.api.ResourceDescriptor.History history = 4; - - - pub fn get_history(&self) -> ResourceDescriptor_History { - self.history - } - pub fn clear_history(&mut self) { - self.history = ResourceDescriptor_History::HISTORY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_history(&mut self, v: ResourceDescriptor_History) { - self.history = v; - } - - // string plural = 5; - - - pub fn get_plural(&self) -> &str { - &self.plural - } - pub fn clear_plural(&mut self) { - self.plural.clear(); - } - - // Param is passed by value, moved - pub fn set_plural(&mut self, v: ::std::string::String) { - self.plural = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_plural(&mut self) -> &mut ::std::string::String { - &mut self.plural - } - - // Take field - pub fn take_plural(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.plural, ::std::string::String::new()) - } - - // string singular = 6; - - - pub fn get_singular(&self) -> &str { - &self.singular - } - pub fn clear_singular(&mut self) { - self.singular.clear(); - } - - // Param is passed by value, moved - pub fn set_singular(&mut self, v: ::std::string::String) { - self.singular = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_singular(&mut self) -> &mut ::std::string::String { - &mut self.singular - } - - // Take field - pub fn take_singular(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.singular, ::std::string::String::new()) - } - - // repeated .google.api.ResourceDescriptor.Style style = 10; - - - pub fn get_style(&self) -> &[ResourceDescriptor_Style] { - &self.style - } - pub fn clear_style(&mut self) { - self.style.clear(); - } - - // Param is passed by value, moved - pub fn set_style(&mut self, v: ::std::vec::Vec) { - self.style = v; - } - - // Mutable pointer to the field. - pub fn mut_style(&mut self) -> &mut ::std::vec::Vec { - &mut self.style - } - - // Take field - pub fn take_style(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.style, ::std::vec::Vec::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &ResourceDescriptor| { &m.type_ }, + |m: &mut ResourceDescriptor| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "pattern", + |m: &ResourceDescriptor| { &m.pattern }, + |m: &mut ResourceDescriptor| { &mut m.pattern }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name_field", + |m: &ResourceDescriptor| { &m.name_field }, + |m: &mut ResourceDescriptor| { &mut m.name_field }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "history", + |m: &ResourceDescriptor| { &m.history }, + |m: &mut ResourceDescriptor| { &mut m.history }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "plural", + |m: &ResourceDescriptor| { &m.plural }, + |m: &mut ResourceDescriptor| { &mut m.plural }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "singular", + |m: &ResourceDescriptor| { &m.singular }, + |m: &mut ResourceDescriptor| { &mut m.singular }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResourceDescriptor", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResourceDescriptor { + const NAME: &'static str = "ResourceDescriptor"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.pattern)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.type_ = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name_field)?; + 18 => { + self.pattern.push(is.read_string()?); }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.history, 4, &mut self.unknown_fields)? + 26 => { + self.name_field = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.plural)?; + 32 => { + self.history = is.read_enum_or_unknown()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.singular)?; + 42 => { + self.plural = is.read_string()?; }, - 10 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.style, 10, &mut self.unknown_fields)? + 50 => { + self.singular = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -259,10 +155,10 @@ impl ::protobuf::Message for ResourceDescriptor { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_); } for value in &self.pattern { my_size += ::protobuf::rt::string_size(2, &value); @@ -270,8 +166,8 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.name_field.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.name_field); } - if self.history != ResourceDescriptor_History::HISTORY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.history); + if self.history != ::protobuf::EnumOrUnknown::new(resource_descriptor::History::HISTORY_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.history.value()); } if !self.plural.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.plural); @@ -279,17 +175,14 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.singular.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.singular); } - for value in &self.style { - my_size += ::protobuf::rt::enum_size(10, *value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_.is_empty() { + os.write_string(1, &self.type_)?; } for v in &self.pattern { os.write_string(2, &v)?; @@ -297,8 +190,8 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.name_field.is_empty() { os.write_string(3, &self.name_field)?; } - if self.history != ResourceDescriptor_History::HISTORY_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.history))?; + if self.history != ::protobuf::EnumOrUnknown::new(resource_descriptor::History::HISTORY_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.history))?; } if !self.plural.is_empty() { os.write_string(5, &self.plural)?; @@ -306,232 +199,148 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.singular.is_empty() { os.write_string(6, &self.singular)?; } - for v in &self.style { - os.write_enum(10, ::protobuf::ProtobufEnum::value(v))?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResourceDescriptor { ResourceDescriptor::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &ResourceDescriptor| { &m.field_type }, - |m: &mut ResourceDescriptor| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "pattern", - |m: &ResourceDescriptor| { &m.pattern }, - |m: &mut ResourceDescriptor| { &mut m.pattern }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name_field", - |m: &ResourceDescriptor| { &m.name_field }, - |m: &mut ResourceDescriptor| { &mut m.name_field }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "history", - |m: &ResourceDescriptor| { &m.history }, - |m: &mut ResourceDescriptor| { &mut m.history }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "plural", - |m: &ResourceDescriptor| { &m.plural }, - |m: &mut ResourceDescriptor| { &mut m.plural }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "singular", - |m: &ResourceDescriptor| { &m.singular }, - |m: &mut ResourceDescriptor| { &mut m.singular }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "style", - |m: &ResourceDescriptor| { &m.style }, - |m: &mut ResourceDescriptor| { &mut m.style }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResourceDescriptor", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.type_.clear(); + self.pattern.clear(); + self.name_field.clear(); + self.history = ::protobuf::EnumOrUnknown::new(resource_descriptor::History::HISTORY_UNSPECIFIED); + self.plural.clear(); + self.singular.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ResourceDescriptor { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceDescriptor::new) + static instance: ResourceDescriptor = ResourceDescriptor { + type_: ::std::string::String::new(), + pattern: ::std::vec::Vec::new(), + name_field: ::std::string::String::new(), + history: ::protobuf::EnumOrUnknown::from_i32(0), + plural: ::std::string::String::new(), + singular: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResourceDescriptor { - fn clear(&mut self) { - self.field_type.clear(); - self.pattern.clear(); - self.name_field.clear(); - self.history = ResourceDescriptor_History::HISTORY_UNSPECIFIED; - self.plural.clear(); - self.singular.clear(); - self.style.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResourceDescriptor { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResourceDescriptor").unwrap()).clone() } } -impl ::std::fmt::Debug for ResourceDescriptor { +impl ::std::fmt::Display for ResourceDescriptor { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ResourceDescriptor_History { - HISTORY_UNSPECIFIED = 0, - ORIGINALLY_SINGLE_PATTERN = 1, - FUTURE_MULTI_PATTERN = 2, -} +/// Nested message and enums of message `ResourceDescriptor` +pub mod resource_descriptor { + /// A description of the historical or future-looking state of the + /// resource pattern. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.ResourceDescriptor.History) + pub enum History { + // @@protoc_insertion_point(enum_value:google.api.ResourceDescriptor.History.HISTORY_UNSPECIFIED) + HISTORY_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ResourceDescriptor.History.ORIGINALLY_SINGLE_PATTERN) + ORIGINALLY_SINGLE_PATTERN = 1, + // @@protoc_insertion_point(enum_value:google.api.ResourceDescriptor.History.FUTURE_MULTI_PATTERN) + FUTURE_MULTI_PATTERN = 2, + } + + impl ::protobuf::Enum for History { + const NAME: &'static str = "History"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for ResourceDescriptor_History { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(History::HISTORY_UNSPECIFIED), + 1 => ::std::option::Option::Some(History::ORIGINALLY_SINGLE_PATTERN), + 2 => ::std::option::Option::Some(History::FUTURE_MULTI_PATTERN), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ResourceDescriptor_History::HISTORY_UNSPECIFIED), - 1 => ::std::option::Option::Some(ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN), - 2 => ::std::option::Option::Some(ResourceDescriptor_History::FUTURE_MULTI_PATTERN), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "HISTORY_UNSPECIFIED" => ::std::option::Option::Some(History::HISTORY_UNSPECIFIED), + "ORIGINALLY_SINGLE_PATTERN" => ::std::option::Option::Some(History::ORIGINALLY_SINGLE_PATTERN), + "FUTURE_MULTI_PATTERN" => ::std::option::Option::Some(History::FUTURE_MULTI_PATTERN), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [ResourceDescriptor_History] = &[ - ResourceDescriptor_History::HISTORY_UNSPECIFIED, - ResourceDescriptor_History::ORIGINALLY_SINGLE_PATTERN, - ResourceDescriptor_History::FUTURE_MULTI_PATTERN, + const VALUES: &'static [History] = &[ + History::HISTORY_UNSPECIFIED, + History::ORIGINALLY_SINGLE_PATTERN, + History::FUTURE_MULTI_PATTERN, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ResourceDescriptor.History", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ResourceDescriptor_History { -} - -impl ::std::default::Default for ResourceDescriptor_History { - fn default() -> Self { - ResourceDescriptor_History::HISTORY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_History { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ResourceDescriptor_Style { - STYLE_UNSPECIFIED = 0, - DECLARATIVE_FRIENDLY = 1, -} - -impl ::protobuf::ProtobufEnum for ResourceDescriptor_Style { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ResourceDescriptor_Style::STYLE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ResourceDescriptor_Style::DECLARATIVE_FRIENDLY), - _ => ::std::option::Option::None + impl ::protobuf::EnumFull for History { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("ResourceDescriptor.History").unwrap()).clone() } - } - fn values() -> &'static [Self] { - static values: &'static [ResourceDescriptor_Style] = &[ - ResourceDescriptor_Style::STYLE_UNSPECIFIED, - ResourceDescriptor_Style::DECLARATIVE_FRIENDLY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ResourceDescriptor.Style", file_descriptor_proto()) - }) + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } -} -impl ::std::marker::Copy for ResourceDescriptor_Style { -} - -impl ::std::default::Default for ResourceDescriptor_Style { - fn default() -> Self { - ResourceDescriptor_Style::STYLE_UNSPECIFIED + impl ::std::default::Default for History { + fn default() -> Self { + History::HISTORY_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for ResourceDescriptor_Style { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl History { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ResourceDescriptor.History") + } } } -#[derive(PartialEq,Clone,Default)] +/// Defines a proto annotation that describes a string field that refers to +/// an API resource. +// @@protoc_insertion_point(message:google.api.ResourceReference) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResourceReference { // message fields - pub field_type: ::std::string::String, + // @@protoc_insertion_point(field:google.api.ResourceReference.type) + pub type_: ::std::string::String, + // @@protoc_insertion_point(field:google.api.ResourceReference.child_type) pub child_type: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.ResourceReference.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResourceReference { @@ -545,76 +354,45 @@ impl ResourceReference { ::std::default::Default::default() } - // string type = 1; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string child_type = 2; - - - pub fn get_child_type(&self) -> &str { - &self.child_type - } - pub fn clear_child_type(&mut self) { - self.child_type.clear(); - } - - // Param is passed by value, moved - pub fn set_child_type(&mut self, v: ::std::string::String) { - self.child_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_child_type(&mut self) -> &mut ::std::string::String { - &mut self.child_type - } - - // Take field - pub fn take_child_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.child_type, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &ResourceReference| { &m.type_ }, + |m: &mut ResourceReference| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "child_type", + |m: &ResourceReference| { &m.child_type }, + |m: &mut ResourceReference| { &mut m.child_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResourceReference", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResourceReference { + const NAME: &'static str = "ResourceReference"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.type_ = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.child_type)?; + 18 => { + self.child_type = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -623,363 +401,377 @@ impl ::protobuf::Message for ResourceReference { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_); } if !self.child_type.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.child_type); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_.is_empty() { + os.write_string(1, &self.type_)?; } if !self.child_type.is_empty() { os.write_string(2, &self.child_type)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResourceReference { ResourceReference::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &ResourceReference| { &m.field_type }, - |m: &mut ResourceReference| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "child_type", - |m: &ResourceReference| { &m.child_type }, - |m: &mut ResourceReference| { &mut m.child_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResourceReference", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.type_.clear(); + self.child_type.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ResourceReference { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceReference::new) + static instance: ResourceReference = ResourceReference { + type_: ::std::string::String::new(), + child_type: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResourceReference { - fn clear(&mut self) { - self.field_type.clear(); - self.child_type.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResourceReference { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResourceReference").unwrap()).clone() } } -impl ::std::fmt::Debug for ResourceReference { +impl ::std::fmt::Display for ResourceReference { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResourceReference { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } /// Extension fields pub mod exts { - pub const resource_reference: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 1055, phantom: ::std::marker::PhantomData }; + pub const resource_reference: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, super::ResourceReference> = ::protobuf::ext::ExtFieldOptional::new(1055, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); - pub const resource_definition: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FileOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldRepeated { field_number: 1053, phantom: ::std::marker::PhantomData }; + pub const resource_definition: ::protobuf::ext::ExtFieldRepeated<::protobuf::descriptor::FileOptions, super::ResourceDescriptor> = ::protobuf::ext::ExtFieldRepeated::new(1053, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); - pub const resource: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 1053, phantom: ::std::marker::PhantomData }; + pub const resource: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, super::ResourceDescriptor> = ::protobuf::ext::ExtFieldOptional::new(1053, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x19google/api/resource.proto\x12\ngoogle.api\x1a\x20google/protobuf/d\ - escriptor.proto\"\xaa\x03\n\x12ResourceDescriptor\x12\x12\n\x04type\x18\ + escriptor.proto\"\xb4\x02\n\x12ResourceDescriptor\x12\x12\n\x04type\x18\ \x01\x20\x01(\tR\x04type\x12\x18\n\x07pattern\x18\x02\x20\x03(\tR\x07pat\ tern\x12\x1d\n\nname_field\x18\x03\x20\x01(\tR\tnameField\x12@\n\x07hist\ ory\x18\x04\x20\x01(\x0e2&.google.api.ResourceDescriptor.HistoryR\x07his\ tory\x12\x16\n\x06plural\x18\x05\x20\x01(\tR\x06plural\x12\x1a\n\x08sing\ - ular\x18\x06\x20\x01(\tR\x08singular\x12:\n\x05style\x18\n\x20\x03(\x0e2\ - $.google.api.ResourceDescriptor.StyleR\x05style\"[\n\x07History\x12\x17\ - \n\x13HISTORY_UNSPECIFIED\x10\0\x12\x1d\n\x19ORIGINALLY_SINGLE_PATTERN\ - \x10\x01\x12\x18\n\x14FUTURE_MULTI_PATTERN\x10\x02\"8\n\x05Style\x12\x15\ - \n\x11STYLE_UNSPECIFIED\x10\0\x12\x18\n\x14DECLARATIVE_FRIENDLY\x10\x01\ - \"F\n\x11ResourceReference\x12\x12\n\x04type\x18\x01\x20\x01(\tR\x04type\ - \x12\x1d\n\nchild_type\x18\x02\x20\x01(\tR\tchildType:l\n\x12resource_re\ - ference\x18\x9f\x08\x20\x01(\x0b2\x1d.google.api.ResourceReference\x12\ - \x1d.google.protobuf.FieldOptionsR\x11resourceReference:n\n\x13resource_\ - definition\x18\x9d\x08\x20\x03(\x0b2\x1e.google.api.ResourceDescriptor\ - \x12\x1c.google.protobuf.FileOptionsR\x12resourceDefinition:\\\n\x08reso\ - urce\x18\x9d\x08\x20\x01(\x0b2\x1e.google.api.ResourceDescriptor\x12\x1f\ - .google.protobuf.MessageOptionsR\x08resourceBn\n\x0ecom.google.apiB\rRes\ - ourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;a\ - nnotations\xf8\x01\x01\xa2\x02\x04GAPIJ\x9aA\n\x07\x12\x05\x0e\0\xed\x01\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\ - \x02\x03\0\x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\ - \x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\x08\ - \x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\ - \x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\x08\x12\x03\ - \x17\0.\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\ - \n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\ - \x01\x07\x12\x04\x1b\0\x1f\x01\n[\n\x02\x07\0\x12\x03\x1e\x029\x1aP\x20A\ - n\x20annotation\x20that\x20describes\x20a\x20resource\x20reference,\x20s\ - ee\n\x20[ResourceReference][].\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\x07#\n\ - \n\n\x03\x07\0\x06\x12\x03\x1e\x02\x1e\n\n\n\x03\x07\0\x01\x12\x03\x1e\ - \x1f1\n\n\n\x03\x07\0\x03\x12\x03\x1e48\n\t\n\x01\x07\x12\x04!\0%\x01\n}\ - \n\x02\x07\x01\x12\x03$\x02D\x1ar\x20An\x20annotation\x20that\x20describ\ - es\x20a\x20resource\x20definition\x20without\x20a\x20corresponding\n\x20\ - message;\x20see\x20[ResourceDescriptor][].\n\n\n\n\x03\x07\x01\x02\x12\ - \x03!\x07\"\n\n\n\x03\x07\x01\x04\x12\x03$\x02\n\n\n\n\x03\x07\x01\x06\ - \x12\x03$\x0b(\n\n\n\x03\x07\x01\x01\x12\x03$)<\n\n\n\x03\x07\x01\x03\ - \x12\x03$?C\n\t\n\x01\x07\x12\x04'\0+\x01\n]\n\x02\x07\x02\x12\x03*\x020\ - \x1aR\x20An\x20annotation\x20that\x20describes\x20a\x20resource\x20defin\ - ition,\x20see\n\x20[ResourceDescriptor][].\n\n\n\n\x03\x07\x02\x02\x12\ - \x03'\x07%\n\n\n\x03\x07\x02\x06\x12\x03*\x02\x1f\n\n\n\x03\x07\x02\x01\ - \x12\x03*\x20(\n\n\n\x03\x07\x02\x03\x12\x03*+/\n\xe0\x0c\n\x02\x04\0\ - \x12\x05\\\0\xc6\x01\x01\x1a\xd2\x0c\x20A\x20simple\x20descriptor\x20of\ - \x20a\x20resource\x20type.\n\n\x20ResourceDescriptor\x20annotates\x20a\ - \x20resource\x20message\x20(either\x20by\x20means\x20of\x20a\n\x20protob\ - uf\x20annotation\x20or\x20use\x20in\x20the\x20service\x20config),\x20and\ - \x20associates\x20the\n\x20resource's\x20schema,\x20the\x20resource\x20t\ - ype,\x20and\x20the\x20pattern\x20of\x20the\x20resource\x20name.\n\n\x20E\ - xample:\n\n\x20\x20\x20\x20\x20message\x20Topic\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20//\x20Indicates\x20this\x20message\x20defines\x20a\x20resour\ - ce\x20schema.\n\x20\x20\x20\x20\x20\x20\x20//\x20Declares\x20the\x20reso\ - urce\x20type\x20in\x20the\x20format\x20of\x20{service}/{kind}.\n\x20\x20\ - \x20\x20\x20\x20\x20//\x20For\x20Kubernetes\x20resources,\x20the\x20form\ - at\x20is\x20{api\x20group}/{kind}.\n\x20\x20\x20\x20\x20\x20\x20option\ - \x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20pattern:\x20\"projects/{project}/topics/{topic}\"\n\x20\x20\ + ular\x18\x06\x20\x01(\tR\x08singular\"[\n\x07History\x12\x17\n\x13HISTOR\ + Y_UNSPECIFIED\x10\0\x12\x1d\n\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\ + \x18\n\x14FUTURE_MULTI_PATTERN\x10\x02\"F\n\x11ResourceReference\x12\x12\ + \n\x04type\x18\x01\x20\x01(\tR\x04type\x12\x1d\n\nchild_type\x18\x02\x20\ + \x01(\tR\tchildType:l\n\x12resource_reference\x18\x9f\x08\x20\x01(\x0b2\ + \x1d.google.api.ResourceReference\x12\x1d.google.protobuf.FieldOptionsR\ + \x11resourceReference:n\n\x13resource_definition\x18\x9d\x08\x20\x03(\ + \x0b2\x1e.google.api.ResourceDescriptor\x12\x1c.google.protobuf.FileOpti\ + onsR\x12resourceDefinition:\\\n\x08resource\x18\x9d\x08\x20\x01(\x0b2\ + \x1e.google.api.ResourceDescriptor\x12\x1f.google.protobuf.MessageOption\ + sR\x08resourceBn\n\x0ecom.google.apiB\rResourceProtoP\x01ZAgoogle.golang\ + .org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\ + \x04GAPIJ\xbaJ\n\x07\x12\x05\x0f\0\x87\x02\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0*\n\ + \x08\n\x01\x08\x12\x03\x15\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x15\0\x1f\n\ + \x08\n\x01\x08\x12\x03\x16\0X\n\t\n\x02\x08\x0b\x12\x03\x16\0X\n\x08\n\ + \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\ + \x12\x03\x18\0.\n\t\n\x02\x08\x08\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\ + \x19\0'\n\t\n\x02\x08\x01\x12\x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\ + \n\t\n\x02\x08$\x12\x03\x1a\0\"\n\t\n\x01\x07\x12\x04\x1c\0\x20\x01\n[\n\ + \x02\x07\0\x12\x03\x1f\x029\x1aP\x20An\x20annotation\x20that\x20describe\ + s\x20a\x20resource\x20reference,\x20see\n\x20[ResourceReference][].\n\n\ + \n\n\x03\x07\0\x02\x12\x03\x1c\x07#\n\n\n\x03\x07\0\x06\x12\x03\x1f\x02\ + \x1e\n\n\n\x03\x07\0\x01\x12\x03\x1f\x1f1\n\n\n\x03\x07\0\x03\x12\x03\ + \x1f48\n\t\n\x01\x07\x12\x04\"\0&\x01\n}\n\x02\x07\x01\x12\x03%\x02D\x1a\ + r\x20An\x20annotation\x20that\x20describes\x20a\x20resource\x20definitio\ + n\x20without\x20a\x20corresponding\n\x20message;\x20see\x20[ResourceDesc\ + riptor][].\n\n\n\n\x03\x07\x01\x02\x12\x03\"\x07\"\n\n\n\x03\x07\x01\x04\ + \x12\x03%\x02\n\n\n\n\x03\x07\x01\x06\x12\x03%\x0b(\n\n\n\x03\x07\x01\ + \x01\x12\x03%)<\n\n\n\x03\x07\x01\x03\x12\x03%?C\n\t\n\x01\x07\x12\x04(\ + \0,\x01\n]\n\x02\x07\x02\x12\x03+\x020\x1aR\x20An\x20annotation\x20that\ + \x20describes\x20a\x20resource\x20definition,\x20see\n\x20[ResourceDescr\ + iptor][].\n\n\n\n\x03\x07\x02\x02\x12\x03(\x07%\n\n\n\x03\x07\x02\x06\ + \x12\x03+\x02\x1f\n\n\n\x03\x07\x02\x01\x12\x03+\x20(\n\n\n\x03\x07\x02\ + \x03\x12\x03++/\n\x8c\x20\n\x02\x04\0\x12\x06\x9a\x01\0\xeb\x01\x01\x1a\ + \xfd\x1f\x20A\x20simple\x20descriptor\x20of\x20a\x20resource\x20type.\n\ + \n\x20ResourceDescriptor\x20annotates\x20a\x20resource\x20message\x20(ei\ + ther\x20by\x20means\x20of\x20a\n\x20protobuf\x20annotation\x20or\x20use\ + \x20in\x20the\x20service\x20config),\x20and\x20associates\x20the\n\x20re\ + source's\x20schema,\x20the\x20resource\x20type,\x20and\x20the\x20pattern\ + \x20of\x20the\x20resource\x20name.\n\n\x20Example:\n\n\x20\x20\x20\x20\ + \x20message\x20Topic\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Indicates\ + \x20this\x20message\x20defines\x20a\x20resource\x20schema.\n\x20\x20\x20\ + \x20\x20\x20\x20//\x20Declares\x20the\x20resource\x20type\x20in\x20the\ + \x20format\x20of\x20{service}/{kind}.\n\x20\x20\x20\x20\x20\x20\x20//\ + \x20For\x20Kubernetes\x20resources,\x20the\x20format\x20is\x20{api\x20gr\ + oup}/{kind}.\n\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.resource\ + )\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\"pubsub.googl\ + eapis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20name_descriptor:\ + \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"project\ + s/{project}/topics/{topic}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20parent_type:\x20\"cloudresourcemanager.googleapis.com/Project\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\x20\"\ + projects/{project}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ \x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\x20The\x20ResourceDesc\ - riptor\x20Yaml\x20config\x20will\x20look\x20like:\n\n\x20\x20\x20\x20\ - \x20resources:\n\x20\x20\x20\x20\x20-\x20type:\x20\"pubsub.googleapis.co\ - m/Topic\"\n\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/\ - topics/{topic}\"\n\n\x20Sometimes,\x20resources\x20have\x20multiple\x20p\ - atterns,\x20typically\x20because\x20they\x20can\n\x20live\x20under\x20mu\ - ltiple\x20parents.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20Log\ - Entry\x20{\n\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.resource)\ - \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\"logging.googl\ - eapis.com/LogEntry\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"\ - projects/{project}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20pat\ - tern:\x20\"folders/{folder}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20pattern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"billingAccounts/{billing_a\ - ccount}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\ - \x20}\n\n\x20The\x20ResourceDescriptor\x20Yaml\x20config\x20will\x20look\ - \x20like:\n\n\x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\x20-\x20ty\ - pe:\x20'logging.googleapis.com/LogEntry'\n\x20\x20\x20\x20\x20\x20\x20pa\ - ttern:\x20\"projects/{project}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\ - \x20pattern:\x20\"folders/{folder}/logs/{log}\"\n\x20\x20\x20\x20\x20\ - \x20\x20pattern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\ - \x20\x20\x20\x20\x20\x20pattern:\x20\"billingAccounts/{billing_account}/\ - logs/{log}\"\n\n\n\n\x03\x04\0\x01\x12\x03\\\x08\x1a\na\n\x04\x04\0\x04\ - \0\x12\x04_\x02k\x03\x1aS\x20A\x20description\x20of\x20the\x20historical\ + riptor\x20Yaml\x20config\x20will\x20look\x20like:\n\n\x20\x20\x20\x20res\ + ources:\n\x20\x20\x20\x20-\x20type:\x20\"pubsub.googleapis.com/Topic\"\n\ + \x20\x20\x20\x20\x20\x20name_descriptor:\n\x20\x20\x20\x20\x20\x20\x20\ + \x20-\x20pattern:\x20\"projects/{project}/topics/{topic}\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ + eapis.com/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name\ + _extractor:\x20\"projects/{project}\"\n\n\x20Sometimes,\x20resources\x20\ + have\x20multiple\x20patterns,\x20typically\x20because\x20they\x20can\n\ + \x20live\x20under\x20multiple\x20parents.\n\n\x20Example:\n\n\x20\x20\ + \x20\x20\x20message\x20LogEntry\x20{\n\x20\x20\x20\x20\x20\x20\x20option\ + \x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20type:\x20\"logging.googleapis.com/LogEntry\"\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20pattern:\x20\"projects/{project}/logs/{log}\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.g\ + oogleapis.com/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20par\ + ent_name_extractor:\x20\"projects/{project}\"\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20name_descriptor:\x20{\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pattern:\x20\"folders/{fol\ + der}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_ty\ + pe:\x20\"cloudresourcemanager.googleapis.com/Folder\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\x20\"folders/{folder}\ + \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20pattern:\x20\"organizations/{organization}/logs/{log}\"\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanag\ + er.googleapis.com/Organization\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20parent_name_extractor:\x20\"organizations/{organization}\"\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20n\ + ame_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patter\ + n:\x20\"billingAccounts/{billing_account}/logs/{log}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"billing.googleapis.com/Bil\ + lingAccount\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_e\ + xtractor:\x20\"billingAccounts/{billing_account}\"\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20}\ + \n\n\x20The\x20ResourceDescriptor\x20Yaml\x20config\x20will\x20look\x20l\ + ike:\n\n\x20\x20\x20\x20\x20resources:\n\x20\x20\x20\x20\x20-\x20type:\ + \x20'logging.googleapis.com/LogEntry'\n\x20\x20\x20\x20\x20\x20\x20name_\ + descriptor:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\x20\"proj\ + ects/{project}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20parent_type:\x20\"cloudresourcemanager.googleapis.com/Project\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\x20\"\ + projects/{project}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\ + \x20\"folders/{folder}/logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20parent_type:\x20\"cloudresourcemanager.googleapis.com/Folder\ + \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_name_extractor:\ + \x20\"folders/{folder}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20patte\ + rn:\x20\"organizations/{organization}/logs/{log}\"\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googleapi\ + s.com/Organization\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent\ + _name_extractor:\x20\"organizations/{organization}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20-\x20pattern:\x20\"billingAccounts/{billing_account}\ + /logs/{log}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20parent_type:\ + \x20\"billing.googleapis.com/BillingAccount\"\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20parent_name_extractor:\x20\"billingAccounts/{billing\ + _account}\"\n\n\x20For\x20flexible\x20resources,\x20the\x20resource\x20n\ + ame\x20doesn't\x20contain\x20parent\x20names,\x20but\n\x20the\x20resourc\ + e\x20itself\x20has\x20parents\x20for\x20policy\x20evaluation.\n\n\x20Exa\ + mple:\n\n\x20\x20\x20\x20\x20message\x20Shelf\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20option\x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20type:\x20\"library.googleapis.com/Shelf\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20pattern:\x20\"shelves/{shelf}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ + eapis.com/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20name_descriptor:\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20pattern:\x20\"shelves/{shelf}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ + eapis.com/Folder\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ + \x20\x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\x20The\x20ResourceDescript\ + or\x20Yaml\x20config\x20will\x20look\x20like:\n\n\x20\x20\x20\x20\x20res\ + ources:\n\x20\x20\x20\x20\x20-\x20type:\x20'library.googleapis.com/Shelf\ + '\n\x20\x20\x20\x20\x20\x20\x20name_descriptor:\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20-\x20pattern:\x20\"shelves/{shelf}\"\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20parent_type:\x20\"cloudresourcemanager.googl\ + eapis.com/Project\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20pattern:\ + \x20\"shelves/{shelf}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20par\ + ent_type:\x20\"cloudresourcemanager.googleapis.com/Folder\"\n\n\x0b\n\ + \x03\x04\0\x01\x12\x04\x9a\x01\x08\x1a\nc\n\x04\x04\0\x04\0\x12\x06\x9d\ + \x01\x02\xa9\x01\x03\x1aS\x20A\x20description\x20of\x20the\x20historical\ \x20or\x20future-looking\x20state\x20of\x20the\n\x20resource\x20pattern.\ - \n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03_\x07\x0e\n#\n\x06\x04\0\x04\0\x02\ - \0\x12\x03a\x04\x1c\x1a\x14\x20The\x20\"unset\"\x20value.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x01\x12\x03a\x04\x17\n\x0e\n\x07\x04\0\x04\0\x02\0\ - \x02\x12\x03a\x1a\x1b\ny\n\x06\x04\0\x04\0\x02\x01\x12\x03e\x04\"\x1aj\ - \x20The\x20resource\x20originally\x20had\x20one\x20pattern\x20and\x20lau\ - nched\x20as\x20such,\x20and\n\x20additional\x20patterns\x20were\x20added\ - \x20later.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03e\x04\x1d\n\x0e\ - \n\x07\x04\0\x04\0\x02\x01\x02\x12\x03e\x20!\n\xdb\x01\n\x06\x04\0\x04\0\ - \x02\x02\x12\x03j\x04\x1d\x1a\xcb\x01\x20The\x20resource\x20has\x20one\ - \x20pattern,\x20but\x20the\x20API\x20owner\x20expects\x20to\x20add\x20mo\ - re\n\x20later.\x20(This\x20is\x20the\x20inverse\x20of\x20ORIGINALLY_SING\ - LE_PATTERN,\x20and\x20prevents\n\x20that\x20from\x20being\x20necessary\ - \x20once\x20there\x20are\x20multiple\x20patterns.)\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\x02\x01\x12\x03j\x04\x18\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\ - \x12\x03j\x1b\x1c\nZ\n\x04\x04\0\x04\x01\x12\x04n\x02{\x03\x1aL\x20A\x20\ - flag\x20representing\x20a\x20specific\x20style\x20that\x20a\x20resource\ - \x20claims\x20to\x20conform\x20to.\n\n\x0c\n\x05\x04\0\x04\x01\x01\x12\ - \x03n\x07\x0c\n3\n\x06\x04\0\x04\x01\x02\0\x12\x03p\x04\x1a\x1a$\x20The\ - \x20unspecified\x20value.\x20Do\x20not\x20use.\n\n\x0e\n\x07\x04\0\x04\ - \x01\x02\0\x01\x12\x03p\x04\x15\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\x12\ - \x03p\x18\x19\n\xda\x02\n\x06\x04\0\x04\x01\x02\x01\x12\x03z\x04\x1d\x1a\ - \xca\x02\x20This\x20resource\x20is\x20intended\x20to\x20be\x20\"declarat\ - ive-friendly\".\n\n\x20Declarative-friendly\x20resources\x20must\x20be\ - \x20more\x20strictly\x20consistent,\x20and\n\x20setting\x20this\x20to\ - \x20true\x20communicates\x20to\x20tools\x20that\x20this\x20resource\x20s\ - hould\n\x20adhere\x20to\x20declarative-friendly\x20expectations.\n\n\x20\ - Note:\x20This\x20is\x20used\x20by\x20the\x20API\x20linter\x20(linter.aip\ - .dev)\x20to\x20enable\n\x20additional\x20checks.\n\n\x0e\n\x07\x04\0\x04\ - \x01\x02\x01\x01\x12\x03z\x04\x18\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\ - \x12\x03z\x1b\x1c\n\xec\x03\n\x04\x04\0\x02\0\x12\x04\x87\x01\x02\x12\ - \x1a\xdd\x03\x20The\x20resource\x20type.\x20It\x20must\x20be\x20in\x20th\ - e\x20format\x20of\n\x20{service_name}/{resource_type_kind}.\x20The\x20`r\ - esource_type_kind`\x20must\x20be\n\x20singular\x20and\x20must\x20not\x20\ - include\x20version\x20numbers.\n\n\x20Example:\x20`storage.googleapis.co\ - m/Bucket`\n\n\x20The\x20value\x20of\x20the\x20resource_type_kind\x20must\ - \x20follow\x20the\x20regular\x20expression\n\x20/[A-Za-z][a-zA-Z0-9]+/.\ - \x20It\x20should\x20start\x20with\x20an\x20upper\x20case\x20character\ - \x20and\n\x20should\x20use\x20PascalCase\x20(UpperCamelCase).\x20The\x20\ - maximum\x20number\x20of\n\x20characters\x20allowed\x20for\x20the\x20`res\ - ource_type_kind`\x20is\x20100.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x87\ - \x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x87\x01\t\r\n\r\n\x05\x04\ - \0\x02\0\x03\x12\x04\x87\x01\x10\x11\n\xc5\x05\n\x04\x04\0\x02\x01\x12\ - \x04\x9c\x01\x02\x1e\x1a\xb6\x05\x20Optional.\x20The\x20relative\x20reso\ - urce\x20name\x20pattern\x20associated\x20with\x20this\x20resource\n\x20t\ - ype.\x20The\x20DNS\x20prefix\x20of\x20the\x20full\x20resource\x20name\ - \x20shouldn't\x20be\x20specified\x20here.\n\n\x20The\x20path\x20pattern\ - \x20must\x20follow\x20the\x20syntax,\x20which\x20aligns\x20with\x20HTTP\ - \x20binding\n\x20syntax:\n\n\x20\x20\x20\x20\x20Template\x20=\x20Segment\ - \x20{\x20\"/\"\x20Segment\x20}\x20;\n\x20\x20\x20\x20\x20Segment\x20=\ - \x20LITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\x20=\x20\ - \"{\"\x20LITERAL\x20\"}\"\x20;\n\n\x20Examples:\n\n\x20\x20\x20\x20\x20-\ - \x20\"projects/{project}/topics/{topic}\"\n\x20\x20\x20\x20\x20-\x20\"pr\ - ojects/{project}/knowledgeBases/{knowledge_base}\"\n\n\x20The\x20compone\ - nts\x20in\x20braces\x20correspond\x20to\x20the\x20IDs\x20for\x20each\x20\ - resource\x20in\x20the\n\x20hierarchy.\x20It\x20is\x20expected\x20that,\ - \x20if\x20multiple\x20patterns\x20are\x20provided,\n\x20the\x20same\x20c\ - omponent\x20name\x20(e.g.\x20\"project\")\x20refers\x20to\x20IDs\x20of\ - \x20the\x20same\n\x20type\x20of\x20resource.\n\n\r\n\x05\x04\0\x02\x01\ - \x04\x12\x04\x9c\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9c\x01\ - \x0b\x11\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x9c\x01\x12\x19\n\r\n\x05\ - \x04\0\x02\x01\x03\x12\x04\x9c\x01\x1c\x1d\n\x87\x01\n\x04\x04\0\x02\x02\ - \x12\x04\xa0\x01\x02\x18\x1ay\x20Optional.\x20The\x20field\x20on\x20the\ - \x20resource\x20that\x20designates\x20the\x20resource\x20name\n\x20field\ - .\x20If\x20omitted,\x20this\x20is\x20assumed\x20to\x20be\x20\"name\".\n\ - \n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xa0\x01\x02\x08\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\xa0\x01\t\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xa0\ - \x01\x16\x17\n\xcc\x04\n\x04\x04\0\x02\x03\x12\x04\xb1\x01\x02\x16\x1a\ - \xbd\x04\x20Optional.\x20The\x20historical\x20or\x20future-looking\x20st\ - ate\x20of\x20the\x20resource\x20pattern.\n\n\x20Example:\n\n\x20\x20\x20\ - \x20\x20//\x20The\x20InspectTemplate\x20message\x20originally\x20only\ - \x20supported\x20resource\n\x20\x20\x20\x20\x20//\x20names\x20with\x20or\ - ganization,\x20and\x20project\x20was\x20added\x20later.\n\x20\x20\x20\ - \x20\x20message\x20InspectTemplate\x20{\n\x20\x20\x20\x20\x20\x20\x20opt\ - ion\x20(google.api.resource)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20type:\x20\"dlp.googleapis.com/InspectTemplate\"\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20pattern:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"orga\ - nizations/{organization}/inspectTemplates/{inspect_template}\"\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20pattern:\x20\"projects/{project}/inspectTemp\ - lates/{inspect_template}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20history:\ - \x20ORIGINALLY_SINGLE_PATTERN\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\ - \x20\x20\x20}\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xb1\x01\x02\t\n\r\n\ - \x05\x04\0\x02\x03\x01\x12\x04\xb1\x01\n\x11\n\r\n\x05\x04\0\x02\x03\x03\ - \x12\x04\xb1\x01\x14\x15\n\xe1\x03\n\x04\x04\0\x02\x04\x12\x04\xbb\x01\ - \x02\x14\x1a\xd2\x03\x20The\x20plural\x20name\x20used\x20in\x20the\x20re\ - source\x20name\x20and\x20permission\x20names,\x20such\x20as\n\x20'projec\ - ts'\x20for\x20the\x20resource\x20name\x20of\x20'projects/{project}'\x20a\ - nd\x20the\x20permission\n\x20name\x20of\x20'cloudresourcemanager.googlea\ - pis.com/projects.get'.\x20It\x20is\x20the\x20same\n\x20concept\x20of\x20\ - the\x20`plural`\x20field\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubern\ - etes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resourc\ - e-definitions/\n\n\x20Note:\x20The\x20plural\x20form\x20is\x20required\ - \x20even\x20for\x20singleton\x20resources.\x20See\n\x20https://aip.dev/1\ - 56\n\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\x04\0\ - \x02\x04\x01\x12\x04\xbb\x01\t\x0f\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\ - \xbb\x01\x12\x13\n\xf9\x01\n\x04\x04\0\x02\x05\x12\x04\xc0\x01\x02\x16\ - \x1a\xea\x01\x20The\x20same\x20concept\x20of\x20the\x20`singular`\x20fie\ + \n\n\r\n\x05\x04\0\x04\0\x01\x12\x04\x9d\x01\x07\x0e\n$\n\x06\x04\0\x04\ + \0\x02\0\x12\x04\x9f\x01\x04\x1c\x1a\x14\x20The\x20\"unset\"\x20value.\n\ + \n\x0f\n\x07\x04\0\x04\0\x02\0\x01\x12\x04\x9f\x01\x04\x17\n\x0f\n\x07\ + \x04\0\x04\0\x02\0\x02\x12\x04\x9f\x01\x1a\x1b\nz\n\x06\x04\0\x04\0\x02\ + \x01\x12\x04\xa3\x01\x04\"\x1aj\x20The\x20resource\x20originally\x20had\ + \x20one\x20pattern\x20and\x20launched\x20as\x20such,\x20and\n\x20additio\ + nal\x20patterns\x20were\x20added\x20later.\n\n\x0f\n\x07\x04\0\x04\0\x02\ + \x01\x01\x12\x04\xa3\x01\x04\x1d\n\x0f\n\x07\x04\0\x04\0\x02\x01\x02\x12\ + \x04\xa3\x01\x20!\n\xdc\x01\n\x06\x04\0\x04\0\x02\x02\x12\x04\xa8\x01\ + \x04\x1d\x1a\xcb\x01\x20The\x20resource\x20has\x20one\x20pattern,\x20but\ + \x20the\x20API\x20owner\x20expects\x20to\x20add\x20more\n\x20later.\x20(\ + This\x20is\x20the\x20inverse\x20of\x20ORIGINALLY_SINGLE_PATTERN,\x20and\ + \x20prevents\n\x20that\x20from\x20being\x20necessary\x20once\x20there\ + \x20are\x20multiple\x20patterns.)\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\ + \x12\x04\xa8\x01\x04\x18\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xa8\ + \x01\x1b\x1c\n\xec\x03\n\x04\x04\0\x02\0\x12\x04\xb5\x01\x02\x12\x1a\xdd\ + \x03\x20The\x20resource\x20type.\x20It\x20must\x20be\x20in\x20the\x20for\ + mat\x20of\n\x20{service_name}/{resource_type_kind}.\x20The\x20`resource_\ + type_kind`\x20must\x20be\n\x20singular\x20and\x20must\x20not\x20include\ + \x20version\x20numbers.\n\n\x20Example:\x20`storage.googleapis.com/Bucke\ + t`\n\n\x20The\x20value\x20of\x20the\x20resource_type_kind\x20must\x20fol\ + low\x20the\x20regular\x20expression\n\x20/[A-Za-z][a-zA-Z0-9]+/.\x20It\ + \x20should\x20start\x20with\x20an\x20upper\x20case\x20character\x20and\n\ + \x20should\x20use\x20PascalCase\x20(UpperCamelCase).\x20The\x20maximum\ + \x20number\x20of\n\x20characters\x20allowed\x20for\x20the\x20`resource_t\ + ype_kind`\x20is\x20100.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xb5\x01\x02\ + \x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xb5\x01\t\r\n\r\n\x05\x04\0\x02\0\ + \x03\x12\x04\xb5\x01\x10\x11\n\xc5\x05\n\x04\x04\0\x02\x01\x12\x04\xca\ + \x01\x02\x1e\x1a\xb6\x05\x20Optional.\x20The\x20relative\x20resource\x20\ + name\x20pattern\x20associated\x20with\x20this\x20resource\n\x20type.\x20\ + The\x20DNS\x20prefix\x20of\x20the\x20full\x20resource\x20name\x20shouldn\ + 't\x20be\x20specified\x20here.\n\n\x20The\x20path\x20pattern\x20must\x20\ + follow\x20the\x20syntax,\x20which\x20aligns\x20with\x20HTTP\x20binding\n\ + \x20syntax:\n\n\x20\x20\x20\x20\x20Template\x20=\x20Segment\x20{\x20\"/\ + \"\x20Segment\x20}\x20;\n\x20\x20\x20\x20\x20Segment\x20=\x20LITERAL\x20\ + |\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\x20=\x20\"{\"\x20LITERA\ + L\x20\"}\"\x20;\n\n\x20Examples:\n\n\x20\x20\x20\x20\x20-\x20\"projects/\ + {project}/topics/{topic}\"\n\x20\x20\x20\x20\x20-\x20\"projects/{project\ + }/knowledgeBases/{knowledge_base}\"\n\n\x20The\x20components\x20in\x20br\ + aces\x20correspond\x20to\x20the\x20IDs\x20for\x20each\x20resource\x20in\ + \x20the\n\x20hierarchy.\x20It\x20is\x20expected\x20that,\x20if\x20multip\ + le\x20patterns\x20are\x20provided,\n\x20the\x20same\x20component\x20name\ + \x20(e.g.\x20\"project\")\x20refers\x20to\x20IDs\x20of\x20the\x20same\n\ + \x20type\x20of\x20resource.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\xca\ + \x01\x02\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xca\x01\x0b\x11\n\r\n\x05\ + \x04\0\x02\x01\x01\x12\x04\xca\x01\x12\x19\n\r\n\x05\x04\0\x02\x01\x03\ + \x12\x04\xca\x01\x1c\x1d\n\x87\x01\n\x04\x04\0\x02\x02\x12\x04\xce\x01\ + \x02\x18\x1ay\x20Optional.\x20The\x20field\x20on\x20the\x20resource\x20t\ + hat\x20designates\x20the\x20resource\x20name\n\x20field.\x20If\x20omitte\ + d,\x20this\x20is\x20assumed\x20to\x20be\x20\"name\".\n\n\r\n\x05\x04\0\ + \x02\x02\x05\x12\x04\xce\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\ + \xce\x01\t\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xce\x01\x16\x17\n\xcc\ + \x04\n\x04\x04\0\x02\x03\x12\x04\xdf\x01\x02\x16\x1a\xbd\x04\x20Optional\ + .\x20The\x20historical\x20or\x20future-looking\x20state\x20of\x20the\x20\ + resource\x20pattern.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20//\x20The\ + \x20InspectTemplate\x20message\x20originally\x20only\x20supported\x20res\ + ource\n\x20\x20\x20\x20\x20//\x20names\x20with\x20organization,\x20and\ + \x20project\x20was\x20added\x20later.\n\x20\x20\x20\x20\x20message\x20In\ + spectTemplate\x20{\n\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.re\ + source)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\"dlp.go\ + ogleapis.com/InspectTemplate\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20patt\ + ern:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"organizations/{organization}\ + /inspectTemplates/{inspect_template}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20pattern:\x20\"projects/{project}/inspectTemplates/{inspect_template}\ + \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20history:\x20ORIGINALLY_SINGLE_PA\ + TTERN\n\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\ + \x04\0\x02\x03\x06\x12\x04\xdf\x01\x02\t\n\r\n\x05\x04\0\x02\x03\x01\x12\ + \x04\xdf\x01\n\x11\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xdf\x01\x14\x15\n\ + \x99\x02\n\x04\x04\0\x02\x04\x12\x04\xe5\x01\x02\x14\x1a\x8a\x02\x20The\ + \x20plural\x20name\x20used\x20in\x20the\x20resource\x20name,\x20such\x20\ + as\x20'projects'\x20for\n\x20the\x20name\x20of\x20'projects/{project}'.\ + \x20It\x20is\x20the\x20same\x20concept\x20of\x20the\x20`plural`\n\x20fie\ ld\x20in\x20k8s\x20CRD\x20spec\n\x20https://kubernetes.io/docs/tasks/acc\ - ess-kubernetes-api/custom-resources/custom-resource-definitions/\n\x20Su\ - ch\x20as\x20\"project\"\x20for\x20the\x20`resourcemanager.googleapis.com\ - /Project`\x20type.\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xc0\x01\x02\x08\ - \n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xc0\x01\t\x11\n\r\n\x05\x04\0\x02\ - \x05\x03\x12\x04\xc0\x01\x14\x15\n\xb4\x01\n\x04\x04\0\x02\x06\x12\x04\ - \xc5\x01\x02\x1c\x1a\xa5\x01\x20Style\x20flag(s)\x20for\x20this\x20resou\ - rce.\n\x20These\x20indicate\x20that\x20a\x20resource\x20is\x20expected\ - \x20to\x20conform\x20to\x20a\x20given\n\x20style.\x20See\x20the\x20speci\ - fic\x20style\x20flags\x20for\x20additional\x20information.\n\n\r\n\x05\ - \x04\0\x02\x06\x04\x12\x04\xc5\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\ - \x04\xc5\x01\x0b\x10\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xc5\x01\x11\x16\ - \n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xc5\x01\x19\x1b\ni\n\x02\x04\x01\ - \x12\x06\xca\x01\0\xed\x01\x01\x1a[\x20Defines\x20a\x20proto\x20annotati\ - on\x20that\x20describes\x20a\x20string\x20field\x20that\x20refers\x20to\ - \n\x20an\x20API\x20resource.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xca\x01\ - \x08\x19\n\x85\x04\n\x04\x04\x01\x02\0\x12\x04\xdf\x01\x02\x12\x1a\xf6\ - \x03\x20The\x20resource\x20type\x20that\x20the\x20annotated\x20field\x20\ - references.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20Subscripti\ - on\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20topic\x20=\x202\x20[(goog\ - le.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20type:\x20\"pubsub.googleapis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\ - \x20}];\n\x20\x20\x20\x20\x20}\n\n\x20Occasionally,\x20a\x20field\x20may\ - \x20reference\x20an\x20arbitrary\x20resource.\x20In\x20this\x20case,\n\ - \x20APIs\x20use\x20the\x20special\x20value\x20*\x20in\x20their\x20resour\ - ce\x20reference.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20GetIa\ - mPolicyRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20resource\x20=\ - \x202\x20[(google.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20type:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20}];\n\ - \x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xdf\x01\x02\ - \x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xdf\x01\t\r\n\r\n\x05\x04\x01\ - \x02\0\x03\x12\x04\xdf\x01\x10\x11\n\xf0\x02\n\x04\x04\x01\x02\x01\x12\ - \x04\xec\x01\x02\x18\x1a\xe1\x02\x20The\x20resource\x20type\x20of\x20a\ - \x20child\x20collection\x20that\x20the\x20annotated\x20field\n\x20refere\ - nces.\x20This\x20is\x20useful\x20for\x20annotating\x20the\x20`parent`\ - \x20field\x20that\n\x20doesn't\x20have\x20a\x20fixed\x20resource\x20type\ - .\n\n\x20Example:\n\n\x20\x20\x20\x20\x20message\x20ListLogEntriesReques\ - t\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20parent\x20=\x201\x20[(goog\ - le.api.resource_reference)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20child_type:\x20\"logging.googleapis.com/LogEntry\"\n\x20\x20\x20\x20\ - \x20\x20\x20};\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x01\x02\x01\x05\ - \x12\x04\xec\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xec\x01\t\ - \x13\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xec\x01\x16\x17b\x06proto3\ + ess-kubernetes-api/custom-resources/custom-resource-definitions/\n\n\r\n\ + \x05\x04\0\x02\x04\x05\x12\x04\xe5\x01\x02\x08\n\r\n\x05\x04\0\x02\x04\ + \x01\x12\x04\xe5\x01\t\x0f\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xe5\x01\ + \x12\x13\n\xf9\x01\n\x04\x04\0\x02\x05\x12\x04\xea\x01\x02\x16\x1a\xea\ + \x01\x20The\x20same\x20concept\x20of\x20the\x20`singular`\x20field\x20in\ + \x20k8s\x20CRD\x20spec\n\x20https://kubernetes.io/docs/tasks/access-kube\ + rnetes-api/custom-resources/custom-resource-definitions/\n\x20Such\x20as\ + \x20\"project\"\x20for\x20the\x20`resourcemanager.googleapis.com/Project\ + `\x20type.\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xea\x01\x02\x08\n\r\n\ + \x05\x04\0\x02\x05\x01\x12\x04\xea\x01\t\x11\n\r\n\x05\x04\0\x02\x05\x03\ + \x12\x04\xea\x01\x14\x15\ni\n\x02\x04\x01\x12\x06\xef\x01\0\x87\x02\x01\ + \x1a[\x20Defines\x20a\x20proto\x20annotation\x20that\x20describes\x20a\ + \x20string\x20field\x20that\x20refers\x20to\n\x20an\x20API\x20resource.\ + \n\n\x0b\n\x03\x04\x01\x01\x12\x04\xef\x01\x08\x19\n\xeb\x01\n\x04\x04\ + \x01\x02\0\x12\x04\xf9\x01\x02\x12\x1a\xdc\x01\x20The\x20resource\x20typ\ + e\x20that\x20the\x20annotated\x20field\x20references.\n\n\x20Example:\n\ + \n\x20\x20\x20\x20\x20message\x20Subscription\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20string\x20topic\x20=\x202\x20[(google.api.resource_reference)\ + \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20type:\x20\"pubsub.google\ + apis.com/Topic\"\n\x20\x20\x20\x20\x20\x20\x20}];\n\x20\x20\x20\x20\x20}\ + \n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xf9\x01\x02\x08\n\r\n\x05\x04\x01\ + \x02\0\x01\x12\x04\xf9\x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xf9\ + \x01\x10\x11\n\xe6\x02\n\x04\x04\x01\x02\x01\x12\x04\x86\x02\x02\x18\x1a\ + \xd7\x02\x20The\x20resource\x20type\x20of\x20a\x20child\x20collection\ + \x20that\x20the\x20annotated\x20field\n\x20references.\x20This\x20is\x20\ + useful\x20for\x20annotating\x20the\x20`parent`\x20field\x20that\n\x20doe\ + sn't\x20have\x20a\x20fixed\x20resource\x20type.\n\n\x20Example:\n\n\x20\ + \x20\x20message\x20ListLogEntriesRequest\x20{\n\x20\x20\x20\x20\x20strin\ + g\x20parent\x20=\x201\x20[(google.api.resource_reference)\x20=\x20{\n\ + \x20\x20\x20\x20\x20\x20\x20child_type:\x20\"logging.googleapis.com/LogE\ + ntry\"\n\x20\x20\x20\x20\x20};\n\x20\x20\x20}\n\n\r\n\x05\x04\x01\x02\ + \x01\x05\x12\x04\x86\x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\ + \x86\x02\t\x13\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x86\x02\x16\x17b\ + \x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(ResourceDescriptor::generated_message_descriptor_data()); + messages.push(ResourceReference::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(resource_descriptor::History::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/routing.rs b/googleapis-raw/src/api/routing.rs deleted file mode 100644 index 3834a1b..0000000 --- a/googleapis-raw/src/api/routing.rs +++ /dev/null @@ -1,769 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/api/routing.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct RoutingRule { - // message fields - pub routing_parameters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RoutingRule { - fn default() -> &'a RoutingRule { - ::default_instance() - } -} - -impl RoutingRule { - pub fn new() -> RoutingRule { - ::std::default::Default::default() - } - - // repeated .google.api.RoutingParameter routing_parameters = 2; - - - pub fn get_routing_parameters(&self) -> &[RoutingParameter] { - &self.routing_parameters - } - pub fn clear_routing_parameters(&mut self) { - self.routing_parameters.clear(); - } - - // Param is passed by value, moved - pub fn set_routing_parameters(&mut self, v: ::protobuf::RepeatedField) { - self.routing_parameters = v; - } - - // Mutable pointer to the field. - pub fn mut_routing_parameters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.routing_parameters - } - - // Take field - pub fn take_routing_parameters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.routing_parameters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for RoutingRule { - fn is_initialized(&self) -> bool { - for v in &self.routing_parameters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.routing_parameters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.routing_parameters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.routing_parameters { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RoutingRule { - RoutingRule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "routing_parameters", - |m: &RoutingRule| { &m.routing_parameters }, - |m: &mut RoutingRule| { &mut m.routing_parameters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RoutingRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RoutingRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RoutingRule::new) - } -} - -impl ::protobuf::Clear for RoutingRule { - fn clear(&mut self) { - self.routing_parameters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RoutingRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RoutingRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RoutingParameter { - // message fields - pub field: ::std::string::String, - pub path_template: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RoutingParameter { - fn default() -> &'a RoutingParameter { - ::default_instance() - } -} - -impl RoutingParameter { - pub fn new() -> RoutingParameter { - ::std::default::Default::default() - } - - // string field = 1; - - - pub fn get_field(&self) -> &str { - &self.field - } - pub fn clear_field(&mut self) { - self.field.clear(); - } - - // Param is passed by value, moved - pub fn set_field(&mut self, v: ::std::string::String) { - self.field = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field(&mut self) -> &mut ::std::string::String { - &mut self.field - } - - // Take field - pub fn take_field(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field, ::std::string::String::new()) - } - - // string path_template = 2; - - - pub fn get_path_template(&self) -> &str { - &self.path_template - } - pub fn clear_path_template(&mut self) { - self.path_template.clear(); - } - - // Param is passed by value, moved - pub fn set_path_template(&mut self, v: ::std::string::String) { - self.path_template = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path_template(&mut self) -> &mut ::std::string::String { - &mut self.path_template - } - - // Take field - pub fn take_path_template(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path_template, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RoutingParameter { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path_template)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.field.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field); - } - if !self.path_template.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.path_template); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field.is_empty() { - os.write_string(1, &self.field)?; - } - if !self.path_template.is_empty() { - os.write_string(2, &self.path_template)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RoutingParameter { - RoutingParameter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "field", - |m: &RoutingParameter| { &m.field }, - |m: &mut RoutingParameter| { &mut m.field }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path_template", - |m: &RoutingParameter| { &m.path_template }, - |m: &mut RoutingParameter| { &mut m.path_template }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RoutingParameter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RoutingParameter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RoutingParameter::new) - } -} - -impl ::protobuf::Clear for RoutingParameter { - fn clear(&mut self) { - self.field.clear(); - self.path_template.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RoutingParameter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RoutingParameter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -/// Extension fields -pub mod exts { - - pub const routing: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295729, phantom: ::std::marker::PhantomData }; -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/routing.proto\x12\ngoogle.api\x1a\x20google/protobuf/de\ - scriptor.proto\"Z\n\x0bRoutingRule\x12K\n\x12routing_parameters\x18\x02\ - \x20\x03(\x0b2\x1c.google.api.RoutingParameterR\x11routingParameters\"M\ - \n\x10RoutingParameter\x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05field\ - \x12#\n\rpath_template\x18\x02\x20\x01(\tR\x0cpathTemplate:T\n\x07routin\ - g\x18\xb1\xca\xbc\"\x20\x01(\x0b2\x17.google.api.RoutingRule\x12\x1e.goo\ - gle.protobuf.MethodOptionsR\x07routingBj\n\x0ecom.google.apiB\x0cRouting\ - ProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annota\ - tions\xa2\x02\x04GAPIJ\x94l\n\x07\x12\x05\x0e\0\xcc\x03\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\ - \x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\x14\ - \0X\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\ - \x08\n\x01\x08\x12\x03\x16\0-\n\t\n\x02\x08\x08\x12\x03\x16\0-\n\x08\n\ - \x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\ - \x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\t\n\x01\x07\x12\x04\ - \x1a\0\x1d\x01\n\x1d\n\x02\x07\0\x12\x03\x1c\x02,\x1a\x12\x20See\x20Rout\ - ingRule.\n\n\n\n\x03\x07\0\x02\x12\x03\x1a\x07$\n\n\n\x03\x07\0\x06\x12\ - \x03\x1c\x02\x18\n\n\n\x03\x07\0\x01\x12\x03\x1c\x19\x20\n\n\n\x03\x07\0\ - \x03\x12\x03\x1c#+\n\xcbN\n\x02\x04\0\x12\x06\x86\x03\0\x8e\x03\x01\x1a\ - \xbcN\x20Specifies\x20the\x20routing\x20information\x20that\x20should\ - \x20be\x20sent\x20along\x20with\x20the\x20request\n\x20in\x20the\x20form\ - \x20of\x20routing\x20header.\n\x20**NOTE:**\x20All\x20service\x20configu\ - ration\x20rules\x20follow\x20the\x20\"last\x20one\x20wins\"\x20order.\n\ - \n\x20The\x20examples\x20below\x20will\x20apply\x20to\x20an\x20RPC\x20wh\ - ich\x20has\x20the\x20following\x20request\x20type:\n\n\x20Message\x20Def\ - inition:\n\n\x20\x20\x20\x20\x20message\x20Request\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20The\x20name\x20of\x20the\x20Table\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20Values\x20can\x20be\x20of\x20the\x20following\x20f\ - ormats:\n\x20\x20\x20\x20\x20\x20\x20//\x20-\x20`projects//tabl\ - es/`\n\x20\x20\x20\x20\x20\x20\x20//\x20-\x20`projects//\ - instances//tables/
`\n\x20\x20\x20\x20\x20\x20\x20//\x20\ - -\x20`region//zones//tables/
`\n\x20\x20\x20\x20\x20\ - \x20\x20string\x20table_name\x20=\x201;\n\n\x20\x20\x20\x20\x20\x20\x20/\ - /\x20This\x20value\x20specifies\x20routing\x20for\x20replication.\n\x20\ - \x20\x20\x20\x20\x20\x20//\x20It\x20can\x20be\x20in\x20the\x20following\ - \x20formats:\n\x20\x20\x20\x20\x20\x20\x20//\x20-\x20`profiles/`\n\x20\x20\x20\x20\x20\x20\x20//\x20-\x20a\x20legacy\x20`profile_id`\ - \x20that\x20can\x20be\x20any\x20string\n\x20\x20\x20\x20\x20\x20\x20stri\ - ng\x20app_profile_id\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\x20Example\ - \x20message:\n\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20table\ - _name:\x20projects/proj_foo/instances/instance_bar/table/table_baz,\n\ - \x20\x20\x20\x20\x20\x20\x20app_profile_id:\x20profiles/prof_qux\n\x20\ - \x20\x20\x20\x20}\n\n\x20The\x20routing\x20header\x20consists\x20of\x20o\ - ne\x20or\x20multiple\x20key-value\x20pairs.\x20Every\x20key\n\x20and\x20\ - value\x20must\x20be\x20percent-encoded,\x20and\x20joined\x20together\x20\ - in\x20the\x20format\x20of\n\x20`key1=value1&key2=value2`.\n\x20In\x20the\ - \x20examples\x20below\x20I\x20am\x20skipping\x20the\x20percent-encoding\ - \x20for\x20readablity.\n\n\x20Example\x201\n\n\x20Extracting\x20a\x20fie\ - ld\x20from\x20the\x20request\x20to\x20put\x20into\x20the\x20routing\x20h\ - eader\n\x20unchanged,\x20with\x20the\x20key\x20equal\x20to\x20the\x20fie\ - ld\x20name.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.\ - api.routing)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Take\x20the\ - \x20`app_profile_id`.\n\x20\x20\x20\x20\x20\x20\x20routing_parameters\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"app_profile_id\"\ - \n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\ - \n\x20\x20\x20\x20\x20x-goog-request-params:\x20app_profile_id=profiles/\ - prof_qux\n\n\x20Example\x202\n\n\x20Extracting\x20a\x20field\x20from\x20\ - the\x20request\x20to\x20put\x20into\x20the\x20routing\x20header\n\x20unc\ - hanged,\x20with\x20the\x20key\x20different\x20from\x20the\x20field\x20na\ - me.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.rout\ - ing)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Take\x20the\x20`app_pr\ - ofile_id`,\x20but\x20name\x20it\x20`routing_id`\x20in\x20the\x20header.\ - \n\x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20field:\x20\"app_profile_id\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20path_template:\x20\"{routing_id=**}\"\n\x20\x20\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\n\x20\x20\x20\x20\ - \x20x-goog-request-params:\x20routing_id=profiles/prof_qux\n\n\x20Exampl\ - e\x203\n\n\x20Extracting\x20a\x20field\x20from\x20the\x20request\x20to\ - \x20put\x20into\x20the\x20routing\n\x20header,\x20while\x20matching\x20a\ - \x20path\x20template\x20syntax\x20on\x20the\x20field's\x20value.\n\n\x20\ - NB:\x20it\x20is\x20more\x20useful\x20to\x20send\x20nothing\x20than\x20to\ - \x20send\x20garbage\x20for\x20the\x20purpose\n\x20of\x20dynamic\x20routi\ - ng,\x20since\x20garbage\x20pollutes\x20cache.\x20Thus\x20the\x20matching\ - .\n\n\x20Sub-example\x203a\n\n\x20The\x20field\x20matches\x20the\x20temp\ - late.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.ro\ - uting)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Take\x20the\x20`tabl\ - e_name`,\x20if\x20it's\x20well-formed\x20(with\x20project-based\n\x20\ - \x20\x20\x20\x20\x20\x20//\x20syntax).\n\x20\x20\x20\x20\x20\x20\x20rout\ - ing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"tab\ - le_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{tabl\ - e_name=projects/*/instances/*/**}\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20};\n\n\x20result:\n\n\x20\x20\x20\x20\x20x-goog-request-\ - params:\n\x20\x20\x20\x20\x20table_name=projects/proj_foo/instances/inst\ - ance_bar/table/table_baz\n\n\x20Sub-example\x203b\n\n\x20The\x20field\ - \x20does\x20not\x20match\x20the\x20template.\n\n\x20annotation:\n\n\x20\ - \x20\x20\x20\x20option\x20(google.api.routing)\x20=\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20Take\x20the\x20`table_name`,\x20if\x20it's\x20well\ - -formed\x20(with\x20region-based\n\x20\x20\x20\x20\x20\x20\x20//\x20synt\ - ax).\n\x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20path_template:\x20\"{table_name=regions/*/zones/*/**}\"\ - \n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\ - \n\x20\x20\x20\x20\x20\n\ - \n\x20Sub-example\x203c\n\n\x20Multiple\x20alternative\x20conflictingly\ - \x20named\x20path\x20templates\x20are\n\x20specified.\x20The\x20one\x20t\ - hat\x20matches\x20is\x20used\x20to\x20construct\x20the\x20header.\n\n\ - \x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.routing)\ - \x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Take\x20the\x20`table_name\ - `,\x20if\x20it's\x20well-formed,\x20whether\n\x20\x20\x20\x20\x20\x20\ - \x20//\x20using\x20the\x20region-\x20or\x20projects-based\x20syntax.\n\n\ - \x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20path_template:\x20\"{table_name=regions/*/zones/*/**}\"\n\ - \x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20routing_param\ - eters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"table_name\"\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{table_name=pr\ - ojects/*/instances/*/**}\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ - \x20\x20};\n\n\x20result:\n\n\x20\x20\x20\x20\x20x-goog-request-params:\ - \n\x20\x20\x20\x20\x20table_name=projects/proj_foo/instances/instance_ba\ - r/table/table_baz\n\n\x20Example\x204\n\n\x20Extracting\x20a\x20single\ - \x20routing\x20header\x20key-value\x20pair\x20by\x20matching\x20a\n\x20t\ - emplate\x20syntax\x20on\x20(a\x20part\x20of)\x20a\x20single\x20request\ - \x20field.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.a\ - pi.routing)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20Take\x20just\ - \x20the\x20project\x20id\x20from\x20the\x20`table_name`\x20field.\n\x20\ - \x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20path_template:\x20\"{routing_id=projects/*}/**\"\n\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\n\x20\x20\x20\ - \x20\x20x-goog-request-params:\x20routing_id=projects/proj_foo\n\n\x20Ex\ - ample\x205\n\n\x20Extracting\x20a\x20single\x20routing\x20header\x20key-\ - value\x20pair\x20by\x20matching\n\x20several\x20conflictingly\x20named\ - \x20path\x20templates\x20on\x20(parts\x20of)\x20a\x20single\x20request\n\ - \x20field.\x20The\x20last\x20template\x20to\x20match\x20\"wins\"\x20the\ - \x20conflict.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(googl\ - e.api.routing)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20If\x20the\ - \x20`table_name`\x20does\x20not\x20have\x20instances\x20information,\n\ - \x20\x20\x20\x20\x20\x20\x20//\x20take\x20just\x20the\x20project\x20id\ - \x20for\x20routing.\n\x20\x20\x20\x20\x20\x20\x20//\x20Otherwise\x20take\ - \x20project\x20+\x20instance.\n\n\x20\x20\x20\x20\x20\x20\x20routing_par\ - ameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"table_name\ - \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{routing_id=\ - projects/*}/**\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\ - \x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20fie\ - ld:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template\ - :\x20\"{routing_id=projects/*/instances/*}/**\"\n\x20\x20\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\n\x20\x20\x20\x20\x20\ - x-goog-request-params:\n\x20\x20\x20\x20\x20routing_id=projects/proj_foo\ - /instances/instance_bar\n\n\x20Example\x206\n\n\x20Extracting\x20multipl\ - e\x20routing\x20header\x20key-value\x20pairs\x20by\x20matching\n\x20seve\ - ral\x20non-conflicting\x20path\x20templates\x20on\x20(parts\x20of)\x20a\ - \x20single\x20request\x20field.\n\n\x20Sub-example\x206a\n\n\x20Make\x20\ - the\x20templates\x20strict,\x20so\x20that\x20if\x20the\x20`table_name`\ - \x20does\x20not\n\x20have\x20an\x20instance\x20information,\x20nothing\ - \x20is\x20sent.\n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(goo\ - gle.api.routing)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20The\x20rou\ - ting\x20code\x20needs\x20two\x20keys\x20instead\x20of\x20one\x20composit\ - e\n\x20\x20\x20\x20\x20\x20\x20//\x20but\x20works\x20only\x20for\x20the\ - \x20tables\x20with\x20the\x20\"project-instance\"\x20name\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20syntax.\n\n\x20\x20\x20\x20\x20\x20\x20routing_par\ - ameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"table_name\ - \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{project_id=\ - projects/*}/instances/*/**\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ - \x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20path_template:\x20\"projects/*/{instance_id=instances/*}/**\"\n\x20\ - \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\n\x20\ - \x20\x20\x20\x20x-goog-request-params:\n\x20\x20\x20\x20\x20project_id=p\ - rojects/proj_foo&instance_id=instances/instance_bar\n\n\x20Sub-example\ - \x206b\n\n\x20Make\x20the\x20templates\x20loose,\x20so\x20that\x20if\x20\ - the\x20`table_name`\x20does\x20not\n\x20have\x20an\x20instance\x20inform\ - ation,\x20just\x20the\x20project\x20id\x20part\x20is\x20sent.\n\n\x20ann\ - otation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.routing)\x20=\x20{\ - \n\x20\x20\x20\x20\x20\x20\x20//\x20The\x20routing\x20code\x20wants\x20t\ - wo\x20keys\x20instead\x20of\x20one\x20composite\n\x20\x20\x20\x20\x20\ - \x20\x20//\x20but\x20will\x20work\x20with\x20just\x20the\x20`project_id`\ - \x20for\x20tables\x20without\n\x20\x20\x20\x20\x20\x20\x20//\x20an\x20in\ - stance\x20in\x20the\x20`table_name`.\n\n\x20\x20\x20\x20\x20\x20\x20rout\ - ing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"tab\ - le_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{proj\ - ect_id=projects/*}/**\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_t\ - emplate:\x20\"projects/*/{instance_id=instances/*}/**\"\n\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result\x20(is\x20the\ - \x20same\x20as\x206a\x20for\x20our\x20example\x20message\x20because\x20i\ - t\x20has\x20the\x20instance\n\x20information):\n\n\x20\x20\x20\x20\x20x-\ - goog-request-params:\n\x20\x20\x20\x20\x20project_id=projects/proj_foo&i\ - nstance_id=instances/instance_bar\n\n\x20Example\x207\n\n\x20Extracting\ - \x20multiple\x20routing\x20header\x20key-value\x20pairs\x20by\x20matchin\ - g\n\x20several\x20path\x20templates\x20on\x20multiple\x20request\x20fiel\ - ds.\n\n\x20NB:\x20note\x20that\x20here\x20there\x20is\x20no\x20way\x20to\ - \x20specify\x20sending\x20nothing\x20if\x20one\x20of\x20the\n\x20fields\ - \x20does\x20not\x20match\x20its\x20template.\x20E.g.\x20if\x20the\x20`ta\ - ble_name`\x20is\x20in\x20the\x20wrong\n\x20format,\x20the\x20`project_id\ - `\x20will\x20not\x20be\x20sent,\x20but\x20the\x20`routing_id`\x20will\ - \x20be.\n\x20The\x20backend\x20routing\x20code\x20has\x20to\x20be\x20awa\ - re\x20of\x20that\x20and\x20be\x20prepared\x20to\x20not\n\x20receive\x20a\ - \x20full\x20complement\x20of\x20keys\x20if\x20it\x20expects\x20multiple.\ - \n\n\x20annotation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.routing\ - )\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20//\x20The\x20routing\x20needs\ - \x20both\x20`project_id`\x20and\x20`routing_id`\n\x20\x20\x20\x20\x20\ - \x20\x20//\x20(from\x20the\x20`app_profile_id`\x20field)\x20for\x20routi\ - ng.\n\n\x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20path_template:\x20\"{project_id=projects/*}/**\"\n\x20\ - \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20routing_parameter\ - s\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"app_profile_id\"\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{routing_id=**\ - }\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result\ - :\n\n\x20\x20\x20\x20\x20x-goog-request-params:\n\x20\x20\x20\x20\x20pro\ - ject_id=projects/proj_foo&routing_id=profiles/prof_qux\n\n\x20Example\ - \x208\n\n\x20Extracting\x20a\x20single\x20routing\x20header\x20key-value\ - \x20pair\x20by\x20matching\n\x20several\x20conflictingly\x20named\x20pat\ - h\x20templates\x20on\x20several\x20request\x20fields.\x20The\n\x20last\ - \x20template\x20to\x20match\x20\"wins\"\x20the\x20conflict.\n\n\x20annot\ - ation:\n\n\x20\x20\x20\x20\x20option\x20(google.api.routing)\x20=\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20//\x20The\x20`routing_id`\x20can\x20be\x20a\ - \x20project\x20id\x20or\x20a\x20region\x20id\x20depending\x20on\n\x20\ - \x20\x20\x20\x20\x20\x20//\x20the\x20table\x20name\x20format,\x20but\x20\ - only\x20if\x20the\x20`app_profile_id`\x20is\x20not\x20set.\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20If\x20`app_profile_id`\x20is\x20set\x20it\x20shoul\ - d\x20be\x20used\x20instead.\n\n\x20\x20\x20\x20\x20\x20\x20routing_param\ - eters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"table_name\"\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{routing_id=pr\ - ojects/*}/**\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ - \x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fie\ - ld:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path_temp\ - late:\x20\"{routing_id=regions/*}/**\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20field:\x20\"app_profile_id\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20path_template:\x20\"{routing_id=**}\"\n\x20\x20\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20};\n\n\x20result:\n\n\x20\x20\x20\x20\ - \x20x-goog-request-params:\x20routing_id=profiles/prof_qux\n\n\x20Exampl\ - e\x209\n\n\x20Bringing\x20it\x20all\x20together.\n\n\x20annotation:\n\n\ - \x20\x20\x20\x20\x20option\x20(google.api.routing)\x20=\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20//\x20For\x20routing\x20both\x20`table_location`\x20\ - and\x20a\x20`routing_id`\x20are\x20needed.\n\x20\x20\x20\x20\x20\x20\x20\ - //\n\x20\x20\x20\x20\x20\x20\x20//\x20table_location\x20can\x20be\x20eit\ - her\x20an\x20instance\x20id\x20or\x20a\x20region+zone\x20id.\n\x20\x20\ - \x20\x20\x20\x20\x20//\n\x20\x20\x20\x20\x20\x20\x20//\x20For\x20`routin\ - g_id`,\x20take\x20the\x20value\x20of\x20`app_profile_id`\n\x20\x20\x20\ - \x20\x20\x20\x20//\x20-\x20If\x20it's\x20in\x20the\x20format\x20`profile\ - s/`,\x20send\n\x20\x20\x20\x20\x20\x20\x20//\x20just\x20the\ - \x20``\x20part.\n\x20\x20\x20\x20\x20\x20\x20//\x20-\x20If\ - \x20it's\x20any\x20other\x20literal,\x20send\x20it\x20as\x20is.\n\x20\ - \x20\x20\x20\x20\x20\x20//\x20If\x20the\x20`app_profile_id`\x20is\x20emp\ - ty,\x20and\x20the\x20`table_name`\x20starts\x20with\n\x20\x20\x20\x20\ - \x20\x20\x20//\x20the\x20project_id,\x20send\x20that\x20instead.\n\n\x20\ - \x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20path_template:\x20\"projects/*/{table_location=instances/*}/tabl\ - es/*\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20routi\ - ng_parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"tabl\ - e_name\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{table\ - _location=regions/*/zones/*}/tables/*\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ - \x20\x20\x20\x20\x20\x20\x20routing_parameters\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20path_template:\x20\"{routing_id=projects/*}/**\"\n\x20\x20\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20routing_parameters\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"app_profile_id\"\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{routing_id=**\ - }\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20routing_\ - parameters\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20field:\x20\"app_pro\ - file_id\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"profi\ - les/{routing_id=*}\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20};\n\n\x20result:\n\n\x20\x20\x20\x20\x20x-goog-request-params:\n\ - \x20\x20\x20\x20\x20table_location=instances/instance_bar&routing_id=pro\ - f_qux\n\n\x0b\n\x03\x04\0\x01\x12\x04\x86\x03\x08\x13\n\xc3\x02\n\x04\ - \x04\0\x02\0\x12\x04\x8d\x03\x023\x1a\xb4\x02\x20A\x20collection\x20of\ - \x20Routing\x20Parameter\x20specifications.\n\x20**NOTE:**\x20If\x20mult\ - iple\x20Routing\x20Parameters\x20describe\x20the\x20same\x20key\n\x20(vi\ - a\x20the\x20`path_template`\x20field\x20or\x20via\x20the\x20`field`\x20f\ - ield\x20when\n\x20`path_template`\x20is\x20not\x20provided),\x20\"last\ - \x20one\x20wins\"\x20rule\n\x20determines\x20which\x20Parameter\x20gets\ - \x20used.\n\x20See\x20the\x20examples\x20for\x20more\x20details.\n\n\r\n\ - \x05\x04\0\x02\0\x04\x12\x04\x8d\x03\x02\n\n\r\n\x05\x04\0\x02\0\x06\x12\ - \x04\x8d\x03\x0b\x1b\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8d\x03\x1c.\n\r\ - \n\x05\x04\0\x02\0\x03\x12\x04\x8d\x0312\nN\n\x02\x04\x01\x12\x06\x91\ - \x03\0\xcc\x03\x01\x1a@\x20A\x20projection\x20from\x20an\x20input\x20mes\ - sage\x20to\x20the\x20GRPC\x20or\x20REST\x20header.\n\n\x0b\n\x03\x04\x01\ - \x01\x12\x04\x91\x03\x08\x18\nJ\n\x04\x04\x01\x02\0\x12\x04\x93\x03\x02\ - \x13\x1a<\x20A\x20request\x20field\x20to\x20extract\x20the\x20header\x20\ - key-value\x20pair\x20from.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x93\x03\ - \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x93\x03\t\x0e\n\r\n\x05\x04\ - \x01\x02\0\x03\x12\x04\x93\x03\x11\x12\n\x91\x12\n\x04\x04\x01\x02\x01\ - \x12\x04\xcb\x03\x02\x1b\x1a\x82\x12\x20A\x20pattern\x20matching\x20the\ - \x20key-value\x20field.\x20Optional.\n\x20If\x20not\x20specified,\x20the\ - \x20whole\x20field\x20specified\x20in\x20the\x20`field`\x20field\x20will\ - \x20be\n\x20taken\x20as\x20value,\x20and\x20its\x20name\x20used\x20as\ - \x20key.\x20If\x20specified,\x20it\x20MUST\x20contain\n\x20exactly\x20on\ - e\x20named\x20segment\x20(along\x20with\x20any\x20number\x20of\x20unname\ - d\x20segments)\x20The\n\x20pattern\x20will\x20be\x20matched\x20over\x20t\ - he\x20field\x20specified\x20in\x20the\x20`field`\x20field,\x20then\n\x20\ - if\x20the\x20match\x20is\x20successful:\n\x20-\x20the\x20name\x20of\x20t\ - he\x20single\x20named\x20segment\x20will\x20be\x20used\x20as\x20a\x20hea\ - der\x20name,\n\x20-\x20the\x20match\x20value\x20of\x20the\x20segment\x20\ - will\x20be\x20used\x20as\x20a\x20header\x20value;\n\x20if\x20the\x20matc\ - h\x20is\x20NOT\x20successful,\x20nothing\x20will\x20be\x20sent.\n\n\x20E\ - xample:\n\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\ - -\x20This\x20is\x20a\x20field\x20in\x20the\x20request\x20message\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20that\ - \x20the\x20header\x20value\x20will\x20be\x20extracted\x20from.\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x20This\x20is\x20\ - the\x20key\x20name\x20in\x20the\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20routing\x20header.\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20V\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\n\x20\ - \x20\x20\x20\x20field:\x20\"table_name\"\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20v\n\x20\x20\x20\x20\x20path_template:\x20\"projects/*/{table\ - _location=instances/*}/tables/*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20^\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20\x20In\x20the\x20{}\x20br\ - ackets\x20is\x20the\x20pattern\x20that\x20--\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20\x20specifies\x20what\ - \x20to\x20extract\x20from\x20the\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20\x20f\ - ield\x20as\x20a\x20value\x20to\x20be\x20sent.\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20The\ - \x20string\x20in\x20the\x20field\x20must\x20match\x20the\x20whole\x20pat\ - tern\x20--\n\x20\x20\x20\x20\x20\x20before\x20brackets,\x20inside\x20bra\ - ckets,\x20after\x20brackets.\n\n\x20When\x20looking\x20at\x20this\x20spe\ - cific\x20example,\x20we\x20can\x20see\x20that:\n\x20-\x20A\x20key-value\ - \x20pair\x20with\x20the\x20key\x20`table_location`\n\x20\x20\x20and\x20t\ - he\x20value\x20matching\x20`instances/*`\x20should\x20be\x20added\n\x20\ - \x20\x20to\x20the\x20x-goog-request-params\x20routing\x20header.\n\x20-\ - \x20The\x20value\x20is\x20extracted\x20from\x20the\x20request\x20message\ - 's\x20`table_name`\x20field\n\x20\x20\x20if\x20it\x20matches\x20the\x20f\ - ull\x20pattern\x20specified:\n\x20\x20\x20`projects/*/instances/*/tables\ - /*`.\n\n\x20**NB:**\x20If\x20the\x20`path_template`\x20field\x20is\x20no\ - t\x20provided,\x20the\x20key\x20name\x20is\n\x20equal\x20to\x20the\x20fi\ - eld\x20name,\x20and\x20the\x20whole\x20field\x20should\x20be\x20sent\x20\ - as\x20a\x20value.\n\x20This\x20makes\x20the\x20pattern\x20for\x20the\x20\ - field\x20and\x20the\x20value\x20functionally\x20equivalent\n\x20to\x20`*\ - *`,\x20and\x20the\x20configuration\n\n\x20\x20\x20\x20\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20field:\x20\"table_name\"\n\x20\x20\x20\x20\x20}\n\n\ - \x20is\x20a\x20functionally\x20equivalent\x20shorthand\x20to:\n\n\x20\ - \x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20field:\x20\"table_name\"\ - \n\x20\x20\x20\x20\x20\x20\x20path_template:\x20\"{table_name=**}\"\n\ - \x20\x20\x20\x20\x20}\n\n\x20See\x20Example\x201\x20for\x20more\x20detai\ - ls.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xcb\x03\x02\x08\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\xcb\x03\t\x16\n\r\n\x05\x04\x01\x02\x01\x03\ - \x12\x04\xcb\x03\x19\x1ab\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/api/service.rs b/googleapis-raw/src/api/service.rs index 29c97df..d0cee10 100644 --- a/googleapis-raw/src/api/service.rs +++ b/googleapis-raw/src/api/service.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,46 +16,110 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/service.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.Service) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Service { // message fields + /// The semantic version of the service configuration. The config version + /// affects the interpretation of the service configuration. For example, + /// certain features are enabled by default for certain config versions. + /// The latest config version is `3`. + // @@protoc_insertion_point(field:google.api.Service.config_version) + pub config_version: ::protobuf::MessageField<::protobuf::well_known_types::wrappers::UInt32Value>, + /// 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. + // @@protoc_insertion_point(field:google.api.Service.name) pub name: ::std::string::String, + /// A unique ID for a specific instance of this message, typically assigned + /// by the client for tracking purpose. If empty, the server may choose to + /// generate one instead. Must be no longer than 60 characters. + // @@protoc_insertion_point(field:google.api.Service.id) + pub id: ::std::string::String, + /// The product title for this service. + // @@protoc_insertion_point(field:google.api.Service.title) pub title: ::std::string::String, + /// The Google project that owns this service. + // @@protoc_insertion_point(field:google.api.Service.producer_project_id) pub producer_project_id: ::std::string::String, - pub id: ::std::string::String, - pub apis: ::protobuf::RepeatedField<::protobuf::well_known_types::Api>, - pub types: ::protobuf::RepeatedField<::protobuf::well_known_types::Type>, - pub enums: ::protobuf::RepeatedField<::protobuf::well_known_types::Enum>, - pub documentation: ::protobuf::SingularPtrField, - pub backend: ::protobuf::SingularPtrField, - pub http: ::protobuf::SingularPtrField, - pub quota: ::protobuf::SingularPtrField, - pub authentication: ::protobuf::SingularPtrField, - pub context: ::protobuf::SingularPtrField, - pub usage: ::protobuf::SingularPtrField, - pub endpoints: ::protobuf::RepeatedField, - pub control: ::protobuf::SingularPtrField, - pub logs: ::protobuf::RepeatedField, - pub metrics: ::protobuf::RepeatedField, - pub monitored_resources: ::protobuf::RepeatedField, - pub billing: ::protobuf::SingularPtrField, - pub logging: ::protobuf::SingularPtrField, - pub monitoring: ::protobuf::SingularPtrField, - pub system_parameters: ::protobuf::SingularPtrField, - pub source_info: ::protobuf::SingularPtrField, - pub publishing: ::protobuf::SingularPtrField, - pub config_version: ::protobuf::SingularPtrField<::protobuf::well_known_types::UInt32Value>, + /// 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 + /// normalization process. It is an error to specify an API interface here + /// which cannot be resolved against the associated IDL files. + // @@protoc_insertion_point(field:google.api.Service.apis) + pub apis: ::std::vec::Vec<::protobuf::well_known_types::api::Api>, + // @@protoc_insertion_point(field:google.api.Service.types) + pub types: ::std::vec::Vec<::protobuf::well_known_types::type_::Type>, + // @@protoc_insertion_point(field:google.api.Service.enums) + pub enums: ::std::vec::Vec<::protobuf::well_known_types::type_::Enum>, + /// Additional API documentation. + // @@protoc_insertion_point(field:google.api.Service.documentation) + pub documentation: ::protobuf::MessageField, + /// API backend configuration. + // @@protoc_insertion_point(field:google.api.Service.backend) + pub backend: ::protobuf::MessageField, + /// HTTP configuration. + // @@protoc_insertion_point(field:google.api.Service.http) + pub http: ::protobuf::MessageField, + /// Quota configuration. + // @@protoc_insertion_point(field:google.api.Service.quota) + pub quota: ::protobuf::MessageField, + /// Auth configuration. + // @@protoc_insertion_point(field:google.api.Service.authentication) + pub authentication: ::protobuf::MessageField, + /// Context configuration. + // @@protoc_insertion_point(field:google.api.Service.context) + pub context: ::protobuf::MessageField, + /// Configuration controlling usage of this service. + // @@protoc_insertion_point(field:google.api.Service.usage) + pub usage: ::protobuf::MessageField, + /// Configuration for network endpoints. If this is empty, then an endpoint + /// with the same name as the service is automatically generated to service all + /// defined APIs. + // @@protoc_insertion_point(field:google.api.Service.endpoints) + pub endpoints: ::std::vec::Vec, + /// Configuration for the service control plane. + // @@protoc_insertion_point(field:google.api.Service.control) + pub control: ::protobuf::MessageField, + /// Defines the logs used by this service. + // @@protoc_insertion_point(field:google.api.Service.logs) + pub logs: ::std::vec::Vec, + /// Defines the metrics used by this service. + // @@protoc_insertion_point(field:google.api.Service.metrics) + pub metrics: ::std::vec::Vec, + /// Defines the monitored resources used by this service. This is required + /// by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. + // @@protoc_insertion_point(field:google.api.Service.monitored_resources) + pub monitored_resources: ::std::vec::Vec, + /// Billing configuration. + // @@protoc_insertion_point(field:google.api.Service.billing) + pub billing: ::protobuf::MessageField, + /// Logging configuration. + // @@protoc_insertion_point(field:google.api.Service.logging) + pub logging: ::protobuf::MessageField, + /// Monitoring configuration. + // @@protoc_insertion_point(field:google.api.Service.monitoring) + pub monitoring: ::protobuf::MessageField, + /// System parameter configuration. + // @@protoc_insertion_point(field:google.api.Service.system_parameters) + pub system_parameters: ::protobuf::MessageField, + /// Output only. The source information for this configuration if available. + // @@protoc_insertion_point(field:google.api.Service.source_info) + pub source_info: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Service.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Service { @@ -68,980 +133,229 @@ impl Service { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string title = 2; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string producer_project_id = 22; - - - pub fn get_producer_project_id(&self) -> &str { - &self.producer_project_id - } - pub fn clear_producer_project_id(&mut self) { - self.producer_project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_project_id(&mut self, v: ::std::string::String) { - self.producer_project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_producer_project_id(&mut self) -> &mut ::std::string::String { - &mut self.producer_project_id - } - - // Take field - pub fn take_producer_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.producer_project_id, ::std::string::String::new()) - } - - // string id = 33; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // repeated .google.protobuf.Api apis = 3; - - - pub fn get_apis(&self) -> &[::protobuf::well_known_types::Api] { - &self.apis - } - pub fn clear_apis(&mut self) { - self.apis.clear(); - } - - // Param is passed by value, moved - pub fn set_apis(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Api>) { - self.apis = v; - } - - // Mutable pointer to the field. - pub fn mut_apis(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Api> { - &mut self.apis - } - - // Take field - pub fn take_apis(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Api> { - ::std::mem::replace(&mut self.apis, ::protobuf::RepeatedField::new()) - } - - // repeated .google.protobuf.Type types = 4; - - - pub fn get_types(&self) -> &[::protobuf::well_known_types::Type] { - &self.types - } - pub fn clear_types(&mut self) { - self.types.clear(); - } - - // Param is passed by value, moved - pub fn set_types(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Type>) { - self.types = v; - } - - // Mutable pointer to the field. - pub fn mut_types(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Type> { - &mut self.types - } - - // Take field - pub fn take_types(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Type> { - ::std::mem::replace(&mut self.types, ::protobuf::RepeatedField::new()) - } - - // repeated .google.protobuf.Enum enums = 5; - - - pub fn get_enums(&self) -> &[::protobuf::well_known_types::Enum] { - &self.enums - } - pub fn clear_enums(&mut self) { - self.enums.clear(); - } - - // Param is passed by value, moved - pub fn set_enums(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Enum>) { - self.enums = v; - } - - // Mutable pointer to the field. - pub fn mut_enums(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Enum> { - &mut self.enums - } - - // Take field - pub fn take_enums(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Enum> { - ::std::mem::replace(&mut self.enums, ::protobuf::RepeatedField::new()) - } - - // .google.api.Documentation documentation = 6; - - - pub fn get_documentation(&self) -> &super::documentation::Documentation { - self.documentation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_documentation(&mut self) { - self.documentation.clear(); - } - - pub fn has_documentation(&self) -> bool { - self.documentation.is_some() - } - - // Param is passed by value, moved - pub fn set_documentation(&mut self, v: super::documentation::Documentation) { - self.documentation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_documentation(&mut self) -> &mut super::documentation::Documentation { - if self.documentation.is_none() { - self.documentation.set_default(); - } - self.documentation.as_mut().unwrap() - } - - // Take field - pub fn take_documentation(&mut self) -> super::documentation::Documentation { - self.documentation.take().unwrap_or_else(|| super::documentation::Documentation::new()) - } - - // .google.api.Backend backend = 8; - - - pub fn get_backend(&self) -> &super::backend::Backend { - self.backend.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_backend(&mut self) { - self.backend.clear(); - } - - pub fn has_backend(&self) -> bool { - self.backend.is_some() - } - - // Param is passed by value, moved - pub fn set_backend(&mut self, v: super::backend::Backend) { - self.backend = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backend(&mut self) -> &mut super::backend::Backend { - if self.backend.is_none() { - self.backend.set_default(); - } - self.backend.as_mut().unwrap() - } - - // Take field - pub fn take_backend(&mut self) -> super::backend::Backend { - self.backend.take().unwrap_or_else(|| super::backend::Backend::new()) - } - - // .google.api.Http http = 9; - - - pub fn get_http(&self) -> &super::http::Http { - self.http.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_http(&mut self) { - self.http.clear(); - } - - pub fn has_http(&self) -> bool { - self.http.is_some() - } - - // Param is passed by value, moved - pub fn set_http(&mut self, v: super::http::Http) { - self.http = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_http(&mut self) -> &mut super::http::Http { - if self.http.is_none() { - self.http.set_default(); - } - self.http.as_mut().unwrap() - } - - // Take field - pub fn take_http(&mut self) -> super::http::Http { - self.http.take().unwrap_or_else(|| super::http::Http::new()) - } - - // .google.api.Quota quota = 10; - - - pub fn get_quota(&self) -> &super::quota::Quota { - self.quota.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_quota(&mut self) { - self.quota.clear(); - } - - pub fn has_quota(&self) -> bool { - self.quota.is_some() - } - - // Param is passed by value, moved - pub fn set_quota(&mut self, v: super::quota::Quota) { - self.quota = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_quota(&mut self) -> &mut super::quota::Quota { - if self.quota.is_none() { - self.quota.set_default(); - } - self.quota.as_mut().unwrap() - } - - // Take field - pub fn take_quota(&mut self) -> super::quota::Quota { - self.quota.take().unwrap_or_else(|| super::quota::Quota::new()) - } - - // .google.api.Authentication authentication = 11; - - - pub fn get_authentication(&self) -> &super::auth::Authentication { - self.authentication.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_authentication(&mut self) { - self.authentication.clear(); - } - - pub fn has_authentication(&self) -> bool { - self.authentication.is_some() - } - - // Param is passed by value, moved - pub fn set_authentication(&mut self, v: super::auth::Authentication) { - self.authentication = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_authentication(&mut self) -> &mut super::auth::Authentication { - if self.authentication.is_none() { - self.authentication.set_default(); - } - self.authentication.as_mut().unwrap() - } - - // Take field - pub fn take_authentication(&mut self) -> super::auth::Authentication { - self.authentication.take().unwrap_or_else(|| super::auth::Authentication::new()) - } - - // .google.api.Context context = 12; - - - pub fn get_context(&self) -> &super::context::Context { - self.context.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_context(&mut self) { - self.context.clear(); - } - - pub fn has_context(&self) -> bool { - self.context.is_some() - } - - // Param is passed by value, moved - pub fn set_context(&mut self, v: super::context::Context) { - self.context = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_context(&mut self) -> &mut super::context::Context { - if self.context.is_none() { - self.context.set_default(); - } - self.context.as_mut().unwrap() - } - - // Take field - pub fn take_context(&mut self) -> super::context::Context { - self.context.take().unwrap_or_else(|| super::context::Context::new()) - } - - // .google.api.Usage usage = 15; - - - pub fn get_usage(&self) -> &super::usage::Usage { - self.usage.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_usage(&mut self) { - self.usage.clear(); - } - - pub fn has_usage(&self) -> bool { - self.usage.is_some() - } - - // Param is passed by value, moved - pub fn set_usage(&mut self, v: super::usage::Usage) { - self.usage = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_usage(&mut self) -> &mut super::usage::Usage { - if self.usage.is_none() { - self.usage.set_default(); - } - self.usage.as_mut().unwrap() - } - - // Take field - pub fn take_usage(&mut self) -> super::usage::Usage { - self.usage.take().unwrap_or_else(|| super::usage::Usage::new()) - } - - // repeated .google.api.Endpoint endpoints = 18; - - - pub fn get_endpoints(&self) -> &[super::endpoint::Endpoint] { - &self.endpoints - } - pub fn clear_endpoints(&mut self) { - self.endpoints.clear(); - } - - // Param is passed by value, moved - pub fn set_endpoints(&mut self, v: ::protobuf::RepeatedField) { - self.endpoints = v; - } - - // Mutable pointer to the field. - pub fn mut_endpoints(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.endpoints - } - - // Take field - pub fn take_endpoints(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.endpoints, ::protobuf::RepeatedField::new()) - } - - // .google.api.Control control = 21; - - - pub fn get_control(&self) -> &super::control::Control { - self.control.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_control(&mut self) { - self.control.clear(); - } - - pub fn has_control(&self) -> bool { - self.control.is_some() - } - - // Param is passed by value, moved - pub fn set_control(&mut self, v: super::control::Control) { - self.control = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_control(&mut self) -> &mut super::control::Control { - if self.control.is_none() { - self.control.set_default(); - } - self.control.as_mut().unwrap() - } - - // Take field - pub fn take_control(&mut self) -> super::control::Control { - self.control.take().unwrap_or_else(|| super::control::Control::new()) - } - - // repeated .google.api.LogDescriptor logs = 23; - - - pub fn get_logs(&self) -> &[super::log::LogDescriptor] { - &self.logs - } - pub fn clear_logs(&mut self) { - self.logs.clear(); - } - - // Param is passed by value, moved - pub fn set_logs(&mut self, v: ::protobuf::RepeatedField) { - self.logs = v; - } - - // Mutable pointer to the field. - pub fn mut_logs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.logs - } - - // Take field - pub fn take_logs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.logs, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.MetricDescriptor metrics = 24; - - - pub fn get_metrics(&self) -> &[super::metric::MetricDescriptor] { - &self.metrics - } - pub fn clear_metrics(&mut self) { - self.metrics.clear(); - } - - // Param is passed by value, moved - pub fn set_metrics(&mut self, v: ::protobuf::RepeatedField) { - self.metrics = v; - } - - // Mutable pointer to the field. - pub fn mut_metrics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.metrics - } - - // Take field - pub fn take_metrics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.metrics, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; - - - pub fn get_monitored_resources(&self) -> &[super::monitored_resource::MonitoredResourceDescriptor] { - &self.monitored_resources - } - pub fn clear_monitored_resources(&mut self) { - self.monitored_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_monitored_resources(&mut self, v: ::protobuf::RepeatedField) { - self.monitored_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_monitored_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.monitored_resources - } - - // Take field - pub fn take_monitored_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.monitored_resources, ::protobuf::RepeatedField::new()) - } - - // .google.api.Billing billing = 26; - - - pub fn get_billing(&self) -> &super::billing::Billing { - self.billing.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_billing(&mut self) { - self.billing.clear(); - } - - pub fn has_billing(&self) -> bool { - self.billing.is_some() - } - - // Param is passed by value, moved - pub fn set_billing(&mut self, v: super::billing::Billing) { - self.billing = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_billing(&mut self) -> &mut super::billing::Billing { - if self.billing.is_none() { - self.billing.set_default(); - } - self.billing.as_mut().unwrap() - } - - // Take field - pub fn take_billing(&mut self) -> super::billing::Billing { - self.billing.take().unwrap_or_else(|| super::billing::Billing::new()) - } - - // .google.api.Logging logging = 27; - - - pub fn get_logging(&self) -> &super::logging::Logging { - self.logging.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_logging(&mut self) { - self.logging.clear(); - } - - pub fn has_logging(&self) -> bool { - self.logging.is_some() - } - - // Param is passed by value, moved - pub fn set_logging(&mut self, v: super::logging::Logging) { - self.logging = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_logging(&mut self) -> &mut super::logging::Logging { - if self.logging.is_none() { - self.logging.set_default(); - } - self.logging.as_mut().unwrap() - } - - // Take field - pub fn take_logging(&mut self) -> super::logging::Logging { - self.logging.take().unwrap_or_else(|| super::logging::Logging::new()) - } - - // .google.api.Monitoring monitoring = 28; - - - pub fn get_monitoring(&self) -> &super::monitoring::Monitoring { - self.monitoring.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_monitoring(&mut self) { - self.monitoring.clear(); - } - - pub fn has_monitoring(&self) -> bool { - self.monitoring.is_some() - } - - // Param is passed by value, moved - pub fn set_monitoring(&mut self, v: super::monitoring::Monitoring) { - self.monitoring = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_monitoring(&mut self) -> &mut super::monitoring::Monitoring { - if self.monitoring.is_none() { - self.monitoring.set_default(); - } - self.monitoring.as_mut().unwrap() - } - - // Take field - pub fn take_monitoring(&mut self) -> super::monitoring::Monitoring { - self.monitoring.take().unwrap_or_else(|| super::monitoring::Monitoring::new()) - } - - // .google.api.SystemParameters system_parameters = 29; - - - pub fn get_system_parameters(&self) -> &super::system_parameter::SystemParameters { - self.system_parameters.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_system_parameters(&mut self) { - self.system_parameters.clear(); - } - - pub fn has_system_parameters(&self) -> bool { - self.system_parameters.is_some() - } - - // Param is passed by value, moved - pub fn set_system_parameters(&mut self, v: super::system_parameter::SystemParameters) { - self.system_parameters = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_system_parameters(&mut self) -> &mut super::system_parameter::SystemParameters { - if self.system_parameters.is_none() { - self.system_parameters.set_default(); - } - self.system_parameters.as_mut().unwrap() - } - - // Take field - pub fn take_system_parameters(&mut self) -> super::system_parameter::SystemParameters { - self.system_parameters.take().unwrap_or_else(|| super::system_parameter::SystemParameters::new()) - } - - // .google.api.SourceInfo source_info = 37; - - - pub fn get_source_info(&self) -> &super::source_info::SourceInfo { - self.source_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source_info(&mut self) { - self.source_info.clear(); - } - - pub fn has_source_info(&self) -> bool { - self.source_info.is_some() - } - - // Param is passed by value, moved - pub fn set_source_info(&mut self, v: super::source_info::SourceInfo) { - self.source_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_info(&mut self) -> &mut super::source_info::SourceInfo { - if self.source_info.is_none() { - self.source_info.set_default(); - } - self.source_info.as_mut().unwrap() - } - - // Take field - pub fn take_source_info(&mut self) -> super::source_info::SourceInfo { - self.source_info.take().unwrap_or_else(|| super::source_info::SourceInfo::new()) - } - - // .google.api.Publishing publishing = 45; - - - pub fn get_publishing(&self) -> &super::client::Publishing { - self.publishing.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_publishing(&mut self) { - self.publishing.clear(); - } - - pub fn has_publishing(&self) -> bool { - self.publishing.is_some() - } - - // Param is passed by value, moved - pub fn set_publishing(&mut self, v: super::client::Publishing) { - self.publishing = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_publishing(&mut self) -> &mut super::client::Publishing { - if self.publishing.is_none() { - self.publishing.set_default(); - } - self.publishing.as_mut().unwrap() - } - - // Take field - pub fn take_publishing(&mut self) -> super::client::Publishing { - self.publishing.take().unwrap_or_else(|| super::client::Publishing::new()) - } - - // .google.protobuf.UInt32Value config_version = 20; - - - pub fn get_config_version(&self) -> &::protobuf::well_known_types::UInt32Value { - self.config_version.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::UInt32Value as ::protobuf::Message>::default_instance()) - } - pub fn clear_config_version(&mut self) { - self.config_version.clear(); - } - - pub fn has_config_version(&self) -> bool { - self.config_version.is_some() - } - - // Param is passed by value, moved - pub fn set_config_version(&mut self, v: ::protobuf::well_known_types::UInt32Value) { - self.config_version = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_config_version(&mut self) -> &mut ::protobuf::well_known_types::UInt32Value { - if self.config_version.is_none() { - self.config_version.set_default(); - } - self.config_version.as_mut().unwrap() - } - - // Take field - pub fn take_config_version(&mut self) -> ::protobuf::well_known_types::UInt32Value { - self.config_version.take().unwrap_or_else(|| ::protobuf::well_known_types::UInt32Value::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(25); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::wrappers::UInt32Value>( + "config_version", + |m: &Service| { &m.config_version }, + |m: &mut Service| { &mut m.config_version }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Service| { &m.name }, + |m: &mut Service| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &Service| { &m.id }, + |m: &mut Service| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "title", + |m: &Service| { &m.title }, + |m: &mut Service| { &mut m.title }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "producer_project_id", + |m: &Service| { &m.producer_project_id }, + |m: &mut Service| { &mut m.producer_project_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "apis", + |m: &Service| { &m.apis }, + |m: &mut Service| { &mut m.apis }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "types", + |m: &Service| { &m.types }, + |m: &mut Service| { &mut m.types }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "enums", + |m: &Service| { &m.enums }, + |m: &mut Service| { &mut m.enums }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::documentation::Documentation>( + "documentation", + |m: &Service| { &m.documentation }, + |m: &mut Service| { &mut m.documentation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::backend::Backend>( + "backend", + |m: &Service| { &m.backend }, + |m: &mut Service| { &mut m.backend }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::http::Http>( + "http", + |m: &Service| { &m.http }, + |m: &mut Service| { &mut m.http }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::quota::Quota>( + "quota", + |m: &Service| { &m.quota }, + |m: &mut Service| { &mut m.quota }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::auth::Authentication>( + "authentication", + |m: &Service| { &m.authentication }, + |m: &mut Service| { &mut m.authentication }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::context::Context>( + "context", + |m: &Service| { &m.context }, + |m: &mut Service| { &mut m.context }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::usage::Usage>( + "usage", + |m: &Service| { &m.usage }, + |m: &mut Service| { &mut m.usage }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "endpoints", + |m: &Service| { &m.endpoints }, + |m: &mut Service| { &mut m.endpoints }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::control::Control>( + "control", + |m: &Service| { &m.control }, + |m: &mut Service| { &mut m.control }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "logs", + |m: &Service| { &m.logs }, + |m: &mut Service| { &mut m.logs }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metrics", + |m: &Service| { &m.metrics }, + |m: &mut Service| { &mut m.metrics }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "monitored_resources", + |m: &Service| { &m.monitored_resources }, + |m: &mut Service| { &mut m.monitored_resources }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::billing::Billing>( + "billing", + |m: &Service| { &m.billing }, + |m: &mut Service| { &mut m.billing }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::logging::Logging>( + "logging", + |m: &Service| { &m.logging }, + |m: &mut Service| { &mut m.logging }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::monitoring::Monitoring>( + "monitoring", + |m: &Service| { &m.monitoring }, + |m: &mut Service| { &mut m.monitoring }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::system_parameter::SystemParameters>( + "system_parameters", + |m: &Service| { &m.system_parameters }, + |m: &mut Service| { &mut m.system_parameters }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::source_info::SourceInfo>( + "source_info", + |m: &Service| { &m.source_info }, + |m: &mut Service| { &mut m.source_info }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Service", + fields, + oneofs, + ) } } impl ::protobuf::Message for Service { + const NAME: &'static str = "Service"; + fn is_initialized(&self) -> bool { - for v in &self.apis { - if !v.is_initialized() { - return false; - } - }; - for v in &self.types { - if !v.is_initialized() { - return false; - } - }; - for v in &self.enums { - if !v.is_initialized() { - return false; - } - }; - for v in &self.documentation { - if !v.is_initialized() { - return false; - } - }; - for v in &self.backend { - if !v.is_initialized() { - return false; - } - }; - for v in &self.http { - if !v.is_initialized() { - return false; - } - }; - for v in &self.quota { - if !v.is_initialized() { - return false; - } - }; - for v in &self.authentication { - if !v.is_initialized() { - return false; - } - }; - for v in &self.context { - if !v.is_initialized() { - return false; - } - }; - for v in &self.usage { - if !v.is_initialized() { - return false; - } - }; - for v in &self.endpoints { - if !v.is_initialized() { - return false; - } - }; - for v in &self.control { - if !v.is_initialized() { - return false; - } - }; - for v in &self.logs { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metrics { - if !v.is_initialized() { - return false; - } - }; - for v in &self.monitored_resources { - if !v.is_initialized() { - return false; - } - }; - for v in &self.billing { - if !v.is_initialized() { - return false; - } - }; - for v in &self.logging { - if !v.is_initialized() { - return false; - } - }; - for v in &self.monitoring { - if !v.is_initialized() { - return false; - } - }; - for v in &self.system_parameters { - if !v.is_initialized() { - return false; - } - }; - for v in &self.source_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.publishing { - if !v.is_initialized() { - return false; - } - }; - for v in &self.config_version { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 162 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.config_version)?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; + 10 => { + self.name = is.read_string()?; }, - 22 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_id)?; + 266 => { + self.id = is.read_string()?; }, - 33 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + 18 => { + self.title = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.apis)?; + 178 => { + self.producer_project_id = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.types)?; + 26 => { + self.apis.push(is.read_message()?); }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enums)?; + 34 => { + self.types.push(is.read_message()?); }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.documentation)?; + 42 => { + self.enums.push(is.read_message()?); }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backend)?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.documentation)?; }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http)?; + 66 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.backend)?; }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.quota)?; + 74 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.http)?; }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.authentication)?; + 82 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.quota)?; }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.context)?; + 90 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.authentication)?; }, - 15 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.usage)?; + 98 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.context)?; }, - 18 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.endpoints)?; - }, - 21 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.control)?; + 122 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.usage)?; }, - 23 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.logs)?; + 146 => { + self.endpoints.push(is.read_message()?); }, - 24 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metrics)?; + 170 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.control)?; }, - 25 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.monitored_resources)?; + 186 => { + self.logs.push(is.read_message()?); }, - 26 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.billing)?; + 194 => { + self.metrics.push(is.read_message()?); }, - 27 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.logging)?; + 202 => { + self.monitored_resources.push(is.read_message()?); }, - 28 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.monitoring)?; + 210 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.billing)?; }, - 29 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.system_parameters)?; + 218 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.logging)?; }, - 37 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_info)?; + 226 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.monitoring)?; }, - 45 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.publishing)?; + 234 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.system_parameters)?; }, - 20 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.config_version)?; + 298 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.source_info)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1050,424 +364,207 @@ impl ::protobuf::Message for Service { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; + if let Some(v) = self.config_version.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(33, &self.id); + } if !self.title.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.title); } if !self.producer_project_id.is_empty() { my_size += ::protobuf::rt::string_size(22, &self.producer_project_id); } - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(33, &self.id); - } for value in &self.apis { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.types { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.enums { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if let Some(ref v) = self.documentation.as_ref() { + if let Some(v) = self.documentation.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.backend.as_ref() { + if let Some(v) = self.backend.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.http.as_ref() { + if let Some(v) = self.http.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.quota.as_ref() { + if let Some(v) = self.quota.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.authentication.as_ref() { + if let Some(v) = self.authentication.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.context.as_ref() { + if let Some(v) = self.context.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.usage.as_ref() { + if let Some(v) = self.usage.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } for value in &self.endpoints { let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if let Some(ref v) = self.control.as_ref() { + if let Some(v) = self.control.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } for value in &self.logs { let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.metrics { let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.monitored_resources { let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if let Some(ref v) = self.billing.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.logging.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.monitoring.as_ref() { + if let Some(v) = self.billing.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.system_parameters.as_ref() { + if let Some(v) = self.logging.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.source_info.as_ref() { + if let Some(v) = self.monitoring.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.publishing.as_ref() { + if let Some(v) = self.system_parameters.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.config_version.as_ref() { + if let Some(v) = self.source_info.as_ref() { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.config_version.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(20, v, os)?; + } if !self.name.is_empty() { os.write_string(1, &self.name)?; } + if !self.id.is_empty() { + os.write_string(33, &self.id)?; + } if !self.title.is_empty() { os.write_string(2, &self.title)?; } if !self.producer_project_id.is_empty() { os.write_string(22, &self.producer_project_id)?; } - if !self.id.is_empty() { - os.write_string(33, &self.id)?; - } for v in &self.apis { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; for v in &self.types { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; for v in &self.enums { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }; - if let Some(ref v) = self.documentation.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.documentation.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - if let Some(ref v) = self.backend.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.backend.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; } - if let Some(ref v) = self.http.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.http.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(9, v, os)?; } - if let Some(ref v) = self.quota.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.quota.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(10, v, os)?; } - if let Some(ref v) = self.authentication.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.authentication.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(11, v, os)?; } - if let Some(ref v) = self.context.as_ref() { - os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.context.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(12, v, os)?; } - if let Some(ref v) = self.usage.as_ref() { - os.write_tag(15, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.usage.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(15, v, os)?; } for v in &self.endpoints { - os.write_tag(18, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(18, v, os)?; }; - if let Some(ref v) = self.control.as_ref() { - os.write_tag(21, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.control.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(21, v, os)?; } for v in &self.logs { - os.write_tag(23, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(23, v, os)?; }; for v in &self.metrics { - os.write_tag(24, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(24, v, os)?; }; for v in &self.monitored_resources { - os.write_tag(25, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(25, v, os)?; }; - if let Some(ref v) = self.billing.as_ref() { - os.write_tag(26, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.logging.as_ref() { - os.write_tag(27, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.billing.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(26, v, os)?; } - if let Some(ref v) = self.monitoring.as_ref() { - os.write_tag(28, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.logging.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(27, v, os)?; } - if let Some(ref v) = self.system_parameters.as_ref() { - os.write_tag(29, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.monitoring.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(28, v, os)?; } - if let Some(ref v) = self.source_info.as_ref() { - os.write_tag(37, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.system_parameters.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(29, v, os)?; } - if let Some(ref v) = self.publishing.as_ref() { - os.write_tag(45, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.source_info.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(37, v, os)?; } - if let Some(ref v) = self.config_version.as_ref() { - os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Service { Service::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Service| { &m.name }, - |m: &mut Service| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &Service| { &m.title }, - |m: &mut Service| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "producer_project_id", - |m: &Service| { &m.producer_project_id }, - |m: &mut Service| { &mut m.producer_project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Service| { &m.id }, - |m: &mut Service| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Api>>( - "apis", - |m: &Service| { &m.apis }, - |m: &mut Service| { &mut m.apis }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Type>>( - "types", - |m: &Service| { &m.types }, - |m: &mut Service| { &mut m.types }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Enum>>( - "enums", - |m: &Service| { &m.enums }, - |m: &mut Service| { &mut m.enums }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "documentation", - |m: &Service| { &m.documentation }, - |m: &mut Service| { &mut m.documentation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backend", - |m: &Service| { &m.backend }, - |m: &mut Service| { &mut m.backend }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "http", - |m: &Service| { &m.http }, - |m: &mut Service| { &mut m.http }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "quota", - |m: &Service| { &m.quota }, - |m: &mut Service| { &mut m.quota }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "authentication", - |m: &Service| { &m.authentication }, - |m: &mut Service| { &mut m.authentication }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "context", - |m: &Service| { &m.context }, - |m: &mut Service| { &mut m.context }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "usage", - |m: &Service| { &m.usage }, - |m: &mut Service| { &mut m.usage }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "endpoints", - |m: &Service| { &m.endpoints }, - |m: &mut Service| { &mut m.endpoints }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "control", - |m: &Service| { &m.control }, - |m: &mut Service| { &mut m.control }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "logs", - |m: &Service| { &m.logs }, - |m: &mut Service| { &mut m.logs }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metrics", - |m: &Service| { &m.metrics }, - |m: &mut Service| { &mut m.metrics }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "monitored_resources", - |m: &Service| { &m.monitored_resources }, - |m: &mut Service| { &mut m.monitored_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "billing", - |m: &Service| { &m.billing }, - |m: &mut Service| { &mut m.billing }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "logging", - |m: &Service| { &m.logging }, - |m: &mut Service| { &mut m.logging }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "monitoring", - |m: &Service| { &m.monitoring }, - |m: &mut Service| { &mut m.monitoring }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "system_parameters", - |m: &Service| { &m.system_parameters }, - |m: &mut Service| { &mut m.system_parameters }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source_info", - |m: &Service| { &m.source_info }, - |m: &mut Service| { &mut m.source_info }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "publishing", - |m: &Service| { &m.publishing }, - |m: &mut Service| { &mut m.publishing }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::UInt32Value>>( - "config_version", - |m: &Service| { &m.config_version }, - |m: &mut Service| { &mut m.config_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Service", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Service { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Service::new) - } -} - -impl ::protobuf::Clear for Service { fn clear(&mut self) { + self.config_version.clear(); self.name.clear(); + self.id.clear(); self.title.clear(); self.producer_project_id.clear(); - self.id.clear(); self.apis.clear(); self.types.clear(); self.enums.clear(); @@ -1488,266 +585,328 @@ impl ::protobuf::Clear for Service { self.monitoring.clear(); self.system_parameters.clear(); self.source_info.clear(); - self.publishing.clear(); - self.config_version.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Service { + static instance: Service = Service { + config_version: ::protobuf::MessageField::none(), + name: ::std::string::String::new(), + id: ::std::string::String::new(), + title: ::std::string::String::new(), + producer_project_id: ::std::string::String::new(), + apis: ::std::vec::Vec::new(), + types: ::std::vec::Vec::new(), + enums: ::std::vec::Vec::new(), + documentation: ::protobuf::MessageField::none(), + backend: ::protobuf::MessageField::none(), + http: ::protobuf::MessageField::none(), + quota: ::protobuf::MessageField::none(), + authentication: ::protobuf::MessageField::none(), + context: ::protobuf::MessageField::none(), + usage: ::protobuf::MessageField::none(), + endpoints: ::std::vec::Vec::new(), + control: ::protobuf::MessageField::none(), + logs: ::std::vec::Vec::new(), + metrics: ::std::vec::Vec::new(), + monitored_resources: ::std::vec::Vec::new(), + billing: ::protobuf::MessageField::none(), + logging: ::protobuf::MessageField::none(), + monitoring: ::protobuf::MessageField::none(), + system_parameters: ::protobuf::MessageField::none(), + source_info: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for Service { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Service").unwrap()).clone() } } -impl ::std::fmt::Debug for Service { +impl ::std::fmt::Display for Service { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Service { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x18google/api/service.proto\x12\ngoogle.api\x1a\x15google/api/auth.pr\ oto\x1a\x18google/api/backend.proto\x1a\x18google/api/billing.proto\x1a\ - \x17google/api/client.proto\x1a\x18google/api/context.proto\x1a\x18googl\ - e/api/control.proto\x1a\x1egoogle/api/documentation.proto\x1a\x19google/\ - api/endpoint.proto\x1a\x15google/api/http.proto\x1a\x14google/api/log.pr\ - oto\x1a\x18google/api/logging.proto\x1a\x17google/api/metric.proto\x1a#g\ - oogle/api/monitored_resource.proto\x1a\x1bgoogle/api/monitoring.proto\ - \x1a\x16google/api/quota.proto\x1a\x1cgoogle/api/source_info.proto\x1a!g\ - oogle/api/system_parameter.proto\x1a\x16google/api/usage.proto\x1a\x19go\ - ogle/protobuf/api.proto\x1a\x1agoogle/protobuf/type.proto\x1a\x1egoogle/\ - protobuf/wrappers.proto\"\x8d\n\n\x07Service\x12\x12\n\x04name\x18\x01\ - \x20\x01(\tR\x04name\x12\x14\n\x05title\x18\x02\x20\x01(\tR\x05title\x12\ - .\n\x13producer_project_id\x18\x16\x20\x01(\tR\x11producerProjectId\x12\ - \x0e\n\x02id\x18!\x20\x01(\tR\x02id\x12(\n\x04apis\x18\x03\x20\x03(\x0b2\ - \x14.google.protobuf.ApiR\x04apis\x12+\n\x05types\x18\x04\x20\x03(\x0b2\ - \x15.google.protobuf.TypeR\x05types\x12+\n\x05enums\x18\x05\x20\x03(\x0b\ - 2\x15.google.protobuf.EnumR\x05enums\x12?\n\rdocumentation\x18\x06\x20\ - \x01(\x0b2\x19.google.api.DocumentationR\rdocumentation\x12-\n\x07backen\ - d\x18\x08\x20\x01(\x0b2\x13.google.api.BackendR\x07backend\x12$\n\x04htt\ - p\x18\t\x20\x01(\x0b2\x10.google.api.HttpR\x04http\x12'\n\x05quota\x18\n\ - \x20\x01(\x0b2\x11.google.api.QuotaR\x05quota\x12B\n\x0eauthentication\ - \x18\x0b\x20\x01(\x0b2\x1a.google.api.AuthenticationR\x0eauthentication\ - \x12-\n\x07context\x18\x0c\x20\x01(\x0b2\x13.google.api.ContextR\x07cont\ - ext\x12'\n\x05usage\x18\x0f\x20\x01(\x0b2\x11.google.api.UsageR\x05usage\ - \x122\n\tendpoints\x18\x12\x20\x03(\x0b2\x14.google.api.EndpointR\tendpo\ - ints\x12-\n\x07control\x18\x15\x20\x01(\x0b2\x13.google.api.ControlR\x07\ - control\x12-\n\x04logs\x18\x17\x20\x03(\x0b2\x19.google.api.LogDescripto\ - rR\x04logs\x126\n\x07metrics\x18\x18\x20\x03(\x0b2\x1c.google.api.Metric\ - DescriptorR\x07metrics\x12X\n\x13monitored_resources\x18\x19\x20\x03(\ - \x0b2'.google.api.MonitoredResourceDescriptorR\x12monitoredResources\x12\ - -\n\x07billing\x18\x1a\x20\x01(\x0b2\x13.google.api.BillingR\x07billing\ - \x12-\n\x07logging\x18\x1b\x20\x01(\x0b2\x13.google.api.LoggingR\x07logg\ - ing\x126\n\nmonitoring\x18\x1c\x20\x01(\x0b2\x16.google.api.MonitoringR\ - \nmonitoring\x12I\n\x11system_parameters\x18\x1d\x20\x01(\x0b2\x1c.googl\ - e.api.SystemParametersR\x10systemParameters\x127\n\x0bsource_info\x18%\ - \x20\x01(\x0b2\x16.google.api.SourceInfoR\nsourceInfo\x126\n\npublishing\ - \x18-\x20\x01(\x0b2\x16.google.api.PublishingR\npublishing\x12C\n\x0econ\ - fig_version\x18\x14\x20\x01(\x0b2\x1c.google.protobuf.UInt32ValueR\rconf\ - igVersionBn\n\x0ecom.google.apiB\x0cServiceProtoP\x01ZEgoogle.golang.org\ - /genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\ - \xad3\n\x07\x12\x05\x0e\0\xbe\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20u\ - nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ - \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ - mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ - py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ - e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0\x1f\n\t\n\x02\x03\ - \x01\x12\x03\x13\0\"\n\t\n\x02\x03\x02\x12\x03\x14\0\"\n\t\n\x02\x03\x03\ - \x12\x03\x15\0!\n\t\n\x02\x03\x04\x12\x03\x16\0\"\n\t\n\x02\x03\x05\x12\ - \x03\x17\0\"\n\t\n\x02\x03\x06\x12\x03\x18\0(\n\t\n\x02\x03\x07\x12\x03\ - \x19\0#\n\t\n\x02\x03\x08\x12\x03\x1a\0\x1f\n\t\n\x02\x03\t\x12\x03\x1b\ - \0\x1e\n\t\n\x02\x03\n\x12\x03\x1c\0\"\n\t\n\x02\x03\x0b\x12\x03\x1d\0!\ - \n\t\n\x02\x03\x0c\x12\x03\x1e\0-\n\t\n\x02\x03\r\x12\x03\x1f\0%\n\t\n\ - \x02\x03\x0e\x12\x03\x20\0\x20\n\t\n\x02\x03\x0f\x12\x03!\0&\n\t\n\x02\ - \x03\x10\x12\x03\"\0+\n\t\n\x02\x03\x11\x12\x03#\0\x20\n\t\n\x02\x03\x12\ - \x12\x03$\0#\n\t\n\x02\x03\x13\x12\x03%\0$\n\t\n\x02\x03\x14\x12\x03&\0(\ - \n\x08\n\x01\x08\x12\x03(\0\\\n\t\n\x02\x08\x0b\x12\x03(\0\\\n\x08\n\x01\ - \x08\x12\x03)\0\"\n\t\n\x02\x08\n\x12\x03)\0\"\n\x08\n\x01\x08\x12\x03*\ - \0-\n\t\n\x02\x08\x08\x12\x03*\0-\n\x08\n\x01\x08\x12\x03+\0'\n\t\n\x02\ - \x08\x01\x12\x03+\0'\n\x08\n\x01\x08\x12\x03,\0\"\n\t\n\x02\x08$\x12\x03\ - ,\0\"\n\xcc\x08\n\x02\x04\0\x12\x05O\0\xbe\x01\x01\x1a\xbe\x08\x20`Servi\ - ce`\x20is\x20the\x20root\x20object\x20of\x20Google\x20API\x20service\x20\ - configuration\x20(service\n\x20config).\x20It\x20describes\x20the\x20bas\ - ic\x20information\x20about\x20a\x20logical\x20service,\n\x20such\x20as\ - \x20the\x20service\x20name\x20and\x20the\x20user-facing\x20title,\x20and\ - \x20delegates\x20other\n\x20aspects\x20to\x20sub-sections.\x20Each\x20su\ - b-section\x20is\x20either\x20a\x20proto\x20message\x20or\x20a\n\x20repea\ - ted\x20proto\x20message\x20that\x20configures\x20a\x20specific\x20aspect\ - ,\x20such\x20as\x20auth.\n\x20For\x20more\x20information,\x20see\x20each\ - \x20proto\x20message\x20definition.\n\n\x20Example:\n\n\x20\x20\x20\x20\ - \x20type:\x20google.api.Service\n\x20\x20\x20\x20\x20name:\x20calendar.g\ - oogleapis.com\n\x20\x20\x20\x20\x20title:\x20Google\x20Calendar\x20API\n\ - \x20\x20\x20\x20\x20apis:\n\x20\x20\x20\x20\x20-\x20name:\x20google.cale\ - ndar.v3.Calendar\n\n\x20\x20\x20\x20\x20visibility:\n\x20\x20\x20\x20\ - \x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"goog\ - le.calendar.v3.*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20restriction:\x20\ - PREVIEW\n\x20\x20\x20\x20\x20backend:\n\x20\x20\x20\x20\x20\x20\x20rules\ - :\n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"google.calendar.v3.*\ - \"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20address:\x20calendar.example.com\ - \n\n\x20\x20\x20\x20\x20authentication:\n\x20\x20\x20\x20\x20\x20\x20pro\ - viders:\n\x20\x20\x20\x20\x20\x20\x20-\x20id:\x20google_calendar_auth\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20jwks_uri:\x20https://www.googleapis.\ - com/oauth2/v1/certs\n\x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20http\ - s://securetoken.google.com\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\ - \x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20requirements:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\ - rovider_id:\x20google_calendar_auth\n\n\n\n\x03\x04\0\x01\x12\x03O\x08\ - \x0f\n\xf6\x01\n\x04\x04\0\x02\0\x12\x03T\x02\x12\x1a\xe8\x01\x20The\x20\ - service\x20name,\x20which\x20is\x20a\x20DNS-like\x20logical\x20identifie\ - r\x20for\x20the\n\x20service,\x20such\x20as\x20`calendar.googleapis.com`\ - .\x20The\x20service\x20name\n\x20typically\x20goes\x20through\x20DNS\x20\ - verification\x20to\x20make\x20sure\x20the\x20owner\n\x20of\x20the\x20ser\ - vice\x20also\x20owns\x20the\x20DNS\x20name.\n\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03T\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03T\t\r\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03T\x10\x11\ne\n\x04\x04\0\x02\x01\x12\x03X\ - \x02\x13\x1aX\x20The\x20product\x20title\x20for\x20this\x20service,\x20i\ - t\x20is\x20the\x20name\x20displayed\x20in\x20Google\n\x20Cloud\x20Consol\ - e.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03X\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03X\t\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03X\x11\ - \x12\n9\n\x04\x04\0\x02\x02\x12\x03[\x02\"\x1a,\x20The\x20Google\x20proj\ - ect\x20that\x20owns\x20this\x20service.\n\n\x0c\n\x05\x04\0\x02\x02\x05\ - \x12\x03[\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03[\t\x1c\n\x0c\n\ - \x05\x04\0\x02\x02\x03\x12\x03[\x1f!\n\x9f\x02\n\x04\x04\0\x02\x03\x12\ - \x03a\x02\x11\x1a\x91\x02\x20A\x20unique\x20ID\x20for\x20a\x20specific\ - \x20instance\x20of\x20this\x20message,\x20typically\x20assigned\n\x20by\ - \x20the\x20client\x20for\x20tracking\x20purpose.\x20Must\x20be\x20no\x20\ - longer\x20than\x2063\x20characters\n\x20and\x20only\x20lower\x20case\x20\ - letters,\x20digits,\x20'.',\x20'_'\x20and\x20'-'\x20are\x20allowed.\x20I\ - f\n\x20empty,\x20the\x20server\x20may\x20choose\x20to\x20generate\x20one\ - \x20instead.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03a\x02\x08\n\x0c\n\ - \x05\x04\0\x02\x03\x01\x12\x03a\t\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ - \x03a\x0e\x10\n\x82\x03\n\x04\x04\0\x02\x04\x12\x03h\x02(\x1a\xf4\x02\ - \x20A\x20list\x20of\x20API\x20interfaces\x20exported\x20by\x20this\x20se\ - rvice.\x20Only\x20the\x20`name`\x20field\n\x20of\x20the\x20[google.proto\ - buf.Api][google.protobuf.Api]\x20needs\x20to\x20be\x20provided\x20by\n\ - \x20the\x20configuration\x20author,\x20as\x20the\x20remaining\x20fields\ - \x20will\x20be\x20derived\x20from\x20the\n\x20IDL\x20during\x20the\x20no\ - rmalization\x20process.\x20It\x20is\x20an\x20error\x20to\x20specify\x20a\ - n\x20API\n\x20interface\x20here\x20which\x20cannot\x20be\x20resolved\x20\ - against\x20the\x20associated\x20IDL\x20files.\n\n\x0c\n\x05\x04\0\x02\ - \x04\x04\x12\x03h\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03h\x0b\x1e\n\ - \x0c\n\x05\x04\0\x02\x04\x01\x12\x03h\x1f#\n\x0c\n\x05\x04\0\x02\x04\x03\ - \x12\x03h&'\n\x89\x03\n\x04\x04\0\x02\x05\x12\x03r\x02*\x1a\xfb\x02\x20A\ - \x20list\x20of\x20all\x20proto\x20message\x20types\x20included\x20in\x20\ - this\x20API\x20service.\n\x20Types\x20referenced\x20directly\x20or\x20in\ - directly\x20by\x20the\x20`apis`\x20are\x20automatically\n\x20included.\ - \x20\x20Messages\x20which\x20are\x20not\x20referenced\x20but\x20shall\ - \x20be\x20included,\x20such\x20as\n\x20types\x20used\x20by\x20the\x20`go\ - ogle.protobuf.Any`\x20type,\x20should\x20be\x20listed\x20here\x20by\n\ - \x20name\x20by\x20the\x20configuration\x20author.\x20Example:\n\n\x20\ + \x18google/api/context.proto\x1a\x18google/api/control.proto\x1a\x1egoog\ + le/api/documentation.proto\x1a\x19google/api/endpoint.proto\x1a\x15googl\ + e/api/http.proto\x1a\x16google/api/label.proto\x1a\x14google/api/log.pro\ + to\x1a\x18google/api/logging.proto\x1a\x17google/api/metric.proto\x1a#go\ + ogle/api/monitored_resource.proto\x1a\x1bgoogle/api/monitoring.proto\x1a\ + \x16google/api/quota.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogl\ + e/api/source_info.proto\x1a!google/api/system_parameter.proto\x1a\x16goo\ + gle/api/usage.proto\x1a\x19google/protobuf/any.proto\x1a\x19google/proto\ + buf/api.proto\x1a\x1agoogle/protobuf/type.proto\x1a\x1egoogle/protobuf/w\ + rappers.proto\"\xd5\t\n\x07Service\x12C\n\x0econfig_version\x18\x14\x20\ + \x01(\x0b2\x1c.google.protobuf.UInt32ValueR\rconfigVersion\x12\x12\n\x04\ + name\x18\x01\x20\x01(\tR\x04name\x12\x0e\n\x02id\x18!\x20\x01(\tR\x02id\ + \x12\x14\n\x05title\x18\x02\x20\x01(\tR\x05title\x12.\n\x13producer_proj\ + ect_id\x18\x16\x20\x01(\tR\x11producerProjectId\x12(\n\x04apis\x18\x03\ + \x20\x03(\x0b2\x14.google.protobuf.ApiR\x04apis\x12+\n\x05types\x18\x04\ + \x20\x03(\x0b2\x15.google.protobuf.TypeR\x05types\x12+\n\x05enums\x18\ + \x05\x20\x03(\x0b2\x15.google.protobuf.EnumR\x05enums\x12?\n\rdocumentat\ + ion\x18\x06\x20\x01(\x0b2\x19.google.api.DocumentationR\rdocumentation\ + \x12-\n\x07backend\x18\x08\x20\x01(\x0b2\x13.google.api.BackendR\x07back\ + end\x12$\n\x04http\x18\t\x20\x01(\x0b2\x10.google.api.HttpR\x04http\x12'\ + \n\x05quota\x18\n\x20\x01(\x0b2\x11.google.api.QuotaR\x05quota\x12B\n\ + \x0eauthentication\x18\x0b\x20\x01(\x0b2\x1a.google.api.AuthenticationR\ + \x0eauthentication\x12-\n\x07context\x18\x0c\x20\x01(\x0b2\x13.google.ap\ + i.ContextR\x07context\x12'\n\x05usage\x18\x0f\x20\x01(\x0b2\x11.google.a\ + pi.UsageR\x05usage\x122\n\tendpoints\x18\x12\x20\x03(\x0b2\x14.google.ap\ + i.EndpointR\tendpoints\x12-\n\x07control\x18\x15\x20\x01(\x0b2\x13.googl\ + e.api.ControlR\x07control\x12-\n\x04logs\x18\x17\x20\x03(\x0b2\x19.googl\ + e.api.LogDescriptorR\x04logs\x126\n\x07metrics\x18\x18\x20\x03(\x0b2\x1c\ + .google.api.MetricDescriptorR\x07metrics\x12X\n\x13monitored_resources\ + \x18\x19\x20\x03(\x0b2'.google.api.MonitoredResourceDescriptorR\x12monit\ + oredResources\x12-\n\x07billing\x18\x1a\x20\x01(\x0b2\x13.google.api.Bil\ + lingR\x07billing\x12-\n\x07logging\x18\x1b\x20\x01(\x0b2\x13.google.api.\ + LoggingR\x07logging\x126\n\nmonitoring\x18\x1c\x20\x01(\x0b2\x16.google.\ + api.MonitoringR\nmonitoring\x12I\n\x11system_parameters\x18\x1d\x20\x01(\ + \x0b2\x1c.google.api.SystemParametersR\x10systemParameters\x127\n\x0bsou\ + rce_info\x18%\x20\x01(\x0b2\x16.google.api.SourceInfoR\nsourceInfoBn\n\ + \x0ecom.google.apiB\x0cServiceProtoP\x01ZEgoogle.golang.org/genproto/goo\ + gleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xba/\n\x07\x12\ + \x05\x0f\0\xaf\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\ + \x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\ + \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ + ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ + \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ + \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ + censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ + \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ + \x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0\x1f\n\t\n\x02\x03\x01\ + \x12\x03\x14\0\"\n\t\n\x02\x03\x02\x12\x03\x15\0\"\n\t\n\x02\x03\x03\x12\ + \x03\x16\0\"\n\t\n\x02\x03\x04\x12\x03\x17\0\"\n\t\n\x02\x03\x05\x12\x03\ + \x18\0(\n\t\n\x02\x03\x06\x12\x03\x19\0#\n\t\n\x02\x03\x07\x12\x03\x1a\0\ + \x1f\n\t\n\x02\x03\x08\x12\x03\x1b\0\x20\n\t\n\x02\x03\t\x12\x03\x1c\0\ + \x1e\n\t\n\x02\x03\n\x12\x03\x1d\0\"\n\t\n\x02\x03\x0b\x12\x03\x1e\0!\n\ + \t\n\x02\x03\x0c\x12\x03\x1f\0-\n\t\n\x02\x03\r\x12\x03\x20\0%\n\t\n\x02\ + \x03\x0e\x12\x03!\0\x20\n\t\n\x02\x03\x0f\x12\x03\"\0#\n\t\n\x02\x03\x10\ + \x12\x03#\0&\n\t\n\x02\x03\x11\x12\x03$\0+\n\t\n\x02\x03\x12\x12\x03%\0\ + \x20\n\t\n\x02\x03\x13\x12\x03&\0#\n\t\n\x02\x03\x14\x12\x03'\0#\n\t\n\ + \x02\x03\x15\x12\x03(\0$\n\t\n\x02\x03\x16\x12\x03)\0(\n\x08\n\x01\x08\ + \x12\x03+\0\\\n\t\n\x02\x08\x0b\x12\x03+\0\\\n\x08\n\x01\x08\x12\x03,\0\ + \"\n\t\n\x02\x08\n\x12\x03,\0\"\n\x08\n\x01\x08\x12\x03-\0-\n\t\n\x02\ + \x08\x08\x12\x03-\0-\n\x08\n\x01\x08\x12\x03.\0'\n\t\n\x02\x08\x01\x12\ + \x03.\0'\n\x08\n\x01\x08\x12\x03/\0\"\n\t\n\x02\x08$\x12\x03/\0\"\n\xd4\ + \x06\n\x02\x04\0\x12\x05H\0\xaf\x01\x01\x1a\xc6\x06\x20`Service`\x20is\ + \x20the\x20root\x20object\x20of\x20Google\x20service\x20configuration\ + \x20schema.\x20It\n\x20describes\x20basic\x20information\x20about\x20a\ + \x20service,\x20such\x20as\x20the\x20name\x20and\x20the\n\x20title,\x20a\ + nd\x20delegates\x20other\x20aspects\x20to\x20sub-sections.\x20Each\x20su\ + b-section\x20is\n\x20either\x20a\x20proto\x20message\x20or\x20a\x20repea\ + ted\x20proto\x20message\x20that\x20configures\x20a\n\x20specific\x20aspe\ + ct,\x20such\x20as\x20auth.\x20See\x20each\x20proto\x20message\x20definit\ + ion\x20for\x20details.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20type:\x20g\ + oogle.api.Service\n\x20\x20\x20\x20\x20config_version:\x203\n\x20\x20\ + \x20\x20\x20name:\x20calendar.googleapis.com\n\x20\x20\x20\x20\x20title:\ + \x20Google\x20Calendar\x20API\n\x20\x20\x20\x20\x20apis:\n\x20\x20\x20\ + \x20\x20-\x20name:\x20google.calendar.v3.Calendar\n\x20\x20\x20\x20\x20a\ + uthentication:\n\x20\x20\x20\x20\x20\x20\x20providers:\n\x20\x20\x20\x20\ + \x20\x20\x20-\x20id:\x20google_calendar_auth\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20jwks_uri:\x20https://www.googleapis.com/oauth2/v1/certs\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20https://securetoken.googl\ + e.com\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\ + \x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20requirements\ + :\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20provider_id:\x20google_ca\ + lendar_auth\n\n\n\n\x03\x04\0\x01\x12\x03H\x08\x0f\n\x85\x02\n\x04\x04\0\ + \x02\0\x12\x03M\x022\x1a\xf7\x01\x20The\x20semantic\x20version\x20of\x20\ + the\x20service\x20configuration.\x20The\x20config\x20version\n\x20affect\ + s\x20the\x20interpretation\x20of\x20the\x20service\x20configuration.\x20\ + For\x20example,\n\x20certain\x20features\x20are\x20enabled\x20by\x20defa\ + ult\x20for\x20certain\x20config\x20versions.\n\x20The\x20latest\x20confi\ + g\x20version\x20is\x20`3`.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03M\x02\ + \x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03M\x1e,\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03M/1\n\xf6\x01\n\x04\x04\0\x02\x01\x12\x03S\x02\x12\x1a\xe8\ + \x01\x20The\x20service\x20name,\x20which\x20is\x20a\x20DNS-like\x20logic\ + al\x20identifier\x20for\x20the\n\x20service,\x20such\x20as\x20`calendar.\ + googleapis.com`.\x20The\x20service\x20name\n\x20typically\x20goes\x20thr\ + ough\x20DNS\x20verification\x20to\x20make\x20sure\x20the\x20owner\n\x20o\ + f\x20the\x20service\x20also\x20owns\x20the\x20DNS\x20name.\n\n\x0c\n\x05\ + \x04\0\x02\x01\x05\x12\x03S\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ + \x03S\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03S\x10\x11\n\xdc\x01\n\x04\ + \x04\0\x02\x02\x12\x03X\x02\x11\x1a\xce\x01\x20A\x20unique\x20ID\x20for\ + \x20a\x20specific\x20instance\x20of\x20this\x20message,\x20typically\x20\ + assigned\n\x20by\x20the\x20client\x20for\x20tracking\x20purpose.\x20If\ + \x20empty,\x20the\x20server\x20may\x20choose\x20to\n\x20generate\x20one\ + \x20instead.\x20Must\x20be\x20no\x20longer\x20than\x2060\x20characters.\ + \n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03X\x02\x08\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03X\t\x0b\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03X\x0e\x10\n\ + 2\n\x04\x04\0\x02\x03\x12\x03[\x02\x13\x1a%\x20The\x20product\x20title\ + \x20for\x20this\x20service.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03[\x02\ + \x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03[\t\x0e\n\x0c\n\x05\x04\0\x02\ + \x03\x03\x12\x03[\x11\x12\n9\n\x04\x04\0\x02\x04\x12\x03^\x02\"\x1a,\x20\ + The\x20Google\x20project\x20that\x20owns\x20this\x20service.\n\n\x0c\n\ + \x05\x04\0\x02\x04\x05\x12\x03^\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\ + \x12\x03^\t\x1c\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03^\x1f!\n\x82\x03\n\ + \x04\x04\0\x02\x05\x12\x03e\x02(\x1a\xf4\x02\x20A\x20list\x20of\x20API\ + \x20interfaces\x20exported\x20by\x20this\x20service.\x20Only\x20the\x20`\ + name`\x20field\n\x20of\x20the\x20[google.protobuf.Api][google.protobuf.A\ + pi]\x20needs\x20to\x20be\x20provided\x20by\x20the\x20configuration\n\x20\ + author,\x20as\x20the\x20remaining\x20fields\x20will\x20be\x20derived\x20\ + from\x20the\x20IDL\x20during\x20the\n\x20normalization\x20process.\x20It\ + \x20is\x20an\x20error\x20to\x20specify\x20an\x20API\x20interface\x20here\ + \n\x20which\x20cannot\x20be\x20resolved\x20against\x20the\x20associated\ + \x20IDL\x20files.\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03e\x02\n\n\x0c\n\ + \x05\x04\0\x02\x05\x06\x12\x03e\x0b\x1e\n\x0c\n\x05\x04\0\x02\x05\x01\ + \x12\x03e\x1f#\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03e&'\n\xed\x02\n\x04\ + \x04\0\x02\x06\x12\x03o\x02*\x1a\xdf\x02\x20A\x20list\x20of\x20all\x20pr\ + oto\x20message\x20types\x20included\x20in\x20this\x20API\x20service.\n\ + \x20Types\x20referenced\x20directly\x20or\x20indirectly\x20by\x20the\x20\ + `apis`\x20are\n\x20automatically\x20included.\x20\x20Messages\x20which\ + \x20are\x20not\x20referenced\x20but\n\x20shall\x20be\x20included,\x20suc\ + h\x20as\x20types\x20used\x20by\x20the\x20`google.protobuf.Any`\x20type,\ + \n\x20should\x20be\x20listed\x20here\x20by\x20name.\x20Example:\n\n\x20\ \x20\x20\x20\x20types:\n\x20\x20\x20\x20\x20-\x20name:\x20google.protobu\ - f.Int32\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03r\x02\n\n\x0c\n\x05\x04\0\ - \x02\x05\x06\x12\x03r\x0b\x1f\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03r\x20\ - %\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03r()\n\xcb\x02\n\x04\x04\0\x02\x06\ - \x12\x03{\x02*\x1a\xbd\x02\x20A\x20list\x20of\x20all\x20enum\x20types\ - \x20included\x20in\x20this\x20API\x20service.\x20\x20Enums\x20referenced\ - \n\x20directly\x20or\x20indirectly\x20by\x20the\x20`apis`\x20are\x20auto\ - matically\x20included.\x20\x20Enums\n\x20which\x20are\x20not\x20referenc\ - ed\x20but\x20shall\x20be\x20included\x20should\x20be\x20listed\x20here\ - \x20by\n\x20name\x20by\x20the\x20configuration\x20author.\x20Example:\n\ - \n\x20\x20\x20\x20\x20enums:\n\x20\x20\x20\x20\x20-\x20name:\x20google.s\ - omeapi.v1.SomeEnum\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03{\x02\n\n\x0c\ - \n\x05\x04\0\x02\x06\x06\x12\x03{\x0b\x1f\n\x0c\n\x05\x04\0\x02\x06\x01\ - \x12\x03{\x20%\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03{()\n,\n\x04\x04\0\ - \x02\x07\x12\x03~\x02\"\x1a\x1f\x20Additional\x20API\x20documentation.\n\ - \n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03~\x02\x0f\n\x0c\n\x05\x04\0\x02\ - \x07\x01\x12\x03~\x10\x1d\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03~\x20!\n*\ - \n\x04\x04\0\x02\x08\x12\x04\x81\x01\x02\x16\x1a\x1c\x20API\x20backend\ - \x20configuration.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\x81\x01\x02\t\n\ - \r\n\x05\x04\0\x02\x08\x01\x12\x04\x81\x01\n\x11\n\r\n\x05\x04\0\x02\x08\ - \x03\x12\x04\x81\x01\x14\x15\n#\n\x04\x04\0\x02\t\x12\x04\x84\x01\x02\ - \x10\x1a\x15\x20HTTP\x20configuration.\n\n\r\n\x05\x04\0\x02\t\x06\x12\ - \x04\x84\x01\x02\x06\n\r\n\x05\x04\0\x02\t\x01\x12\x04\x84\x01\x07\x0b\n\ - \r\n\x05\x04\0\x02\t\x03\x12\x04\x84\x01\x0e\x0f\n$\n\x04\x04\0\x02\n\ - \x12\x04\x87\x01\x02\x13\x1a\x16\x20Quota\x20configuration.\n\n\r\n\x05\ - \x04\0\x02\n\x06\x12\x04\x87\x01\x02\x07\n\r\n\x05\x04\0\x02\n\x01\x12\ - \x04\x87\x01\x08\r\n\r\n\x05\x04\0\x02\n\x03\x12\x04\x87\x01\x10\x12\n#\ - \n\x04\x04\0\x02\x0b\x12\x04\x8a\x01\x02%\x1a\x15\x20Auth\x20configurati\ - on.\n\n\r\n\x05\x04\0\x02\x0b\x06\x12\x04\x8a\x01\x02\x10\n\r\n\x05\x04\ - \0\x02\x0b\x01\x12\x04\x8a\x01\x11\x1f\n\r\n\x05\x04\0\x02\x0b\x03\x12\ - \x04\x8a\x01\"$\n&\n\x04\x04\0\x02\x0c\x12\x04\x8d\x01\x02\x17\x1a\x18\ - \x20Context\x20configuration.\n\n\r\n\x05\x04\0\x02\x0c\x06\x12\x04\x8d\ - \x01\x02\t\n\r\n\x05\x04\0\x02\x0c\x01\x12\x04\x8d\x01\n\x11\n\r\n\x05\ - \x04\0\x02\x0c\x03\x12\x04\x8d\x01\x14\x16\n@\n\x04\x04\0\x02\r\x12\x04\ - \x90\x01\x02\x13\x1a2\x20Configuration\x20controlling\x20usage\x20of\x20\ - this\x20service.\n\n\r\n\x05\x04\0\x02\r\x06\x12\x04\x90\x01\x02\x07\n\r\ - \n\x05\x04\0\x02\r\x01\x12\x04\x90\x01\x08\r\n\r\n\x05\x04\0\x02\r\x03\ - \x12\x04\x90\x01\x10\x12\n\xb5\x01\n\x04\x04\0\x02\x0e\x12\x04\x95\x01\ + f.Int32\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03o\x02\n\n\x0c\n\x05\x04\0\ + \x02\x06\x06\x12\x03o\x0b\x1f\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03o\x20\ + %\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03o()\n\xaf\x02\n\x04\x04\0\x02\x07\ + \x12\x03x\x02*\x1a\xa1\x02\x20A\x20list\x20of\x20all\x20enum\x20types\ + \x20included\x20in\x20this\x20API\x20service.\x20\x20Enums\n\x20referenc\ + ed\x20directly\x20or\x20indirectly\x20by\x20the\x20`apis`\x20are\x20auto\ + matically\n\x20included.\x20\x20Enums\x20which\x20are\x20not\x20referenc\ + ed\x20but\x20shall\x20be\x20included\n\x20should\x20be\x20listed\x20here\ + \x20by\x20name.\x20Example:\n\n\x20\x20\x20\x20\x20enums:\n\x20\x20\x20\ + \x20\x20-\x20name:\x20google.someapi.v1.SomeEnum\n\n\x0c\n\x05\x04\0\x02\ + \x07\x04\x12\x03x\x02\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03x\x0b\x1f\n\ + \x0c\n\x05\x04\0\x02\x07\x01\x12\x03x\x20%\n\x0c\n\x05\x04\0\x02\x07\x03\ + \x12\x03x()\n,\n\x04\x04\0\x02\x08\x12\x03{\x02\"\x1a\x1f\x20Additional\ + \x20API\x20documentation.\n\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03{\x02\ + \x0f\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03{\x10\x1d\n\x0c\n\x05\x04\0\ + \x02\x08\x03\x12\x03{\x20!\n)\n\x04\x04\0\x02\t\x12\x03~\x02\x16\x1a\x1c\ + \x20API\x20backend\x20configuration.\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\ + \x03~\x02\t\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03~\n\x11\n\x0c\n\x05\x04\0\ + \x02\t\x03\x12\x03~\x14\x15\n#\n\x04\x04\0\x02\n\x12\x04\x81\x01\x02\x10\ + \x1a\x15\x20HTTP\x20configuration.\n\n\r\n\x05\x04\0\x02\n\x06\x12\x04\ + \x81\x01\x02\x06\n\r\n\x05\x04\0\x02\n\x01\x12\x04\x81\x01\x07\x0b\n\r\n\ + \x05\x04\0\x02\n\x03\x12\x04\x81\x01\x0e\x0f\n$\n\x04\x04\0\x02\x0b\x12\ + \x04\x84\x01\x02\x13\x1a\x16\x20Quota\x20configuration.\n\n\r\n\x05\x04\ + \0\x02\x0b\x06\x12\x04\x84\x01\x02\x07\n\r\n\x05\x04\0\x02\x0b\x01\x12\ + \x04\x84\x01\x08\r\n\r\n\x05\x04\0\x02\x0b\x03\x12\x04\x84\x01\x10\x12\n\ + #\n\x04\x04\0\x02\x0c\x12\x04\x87\x01\x02%\x1a\x15\x20Auth\x20configurat\ + ion.\n\n\r\n\x05\x04\0\x02\x0c\x06\x12\x04\x87\x01\x02\x10\n\r\n\x05\x04\ + \0\x02\x0c\x01\x12\x04\x87\x01\x11\x1f\n\r\n\x05\x04\0\x02\x0c\x03\x12\ + \x04\x87\x01\"$\n&\n\x04\x04\0\x02\r\x12\x04\x8a\x01\x02\x17\x1a\x18\x20\ + Context\x20configuration.\n\n\r\n\x05\x04\0\x02\r\x06\x12\x04\x8a\x01\ + \x02\t\n\r\n\x05\x04\0\x02\r\x01\x12\x04\x8a\x01\n\x11\n\r\n\x05\x04\0\ + \x02\r\x03\x12\x04\x8a\x01\x14\x16\n@\n\x04\x04\0\x02\x0e\x12\x04\x8d\ + \x01\x02\x13\x1a2\x20Configuration\x20controlling\x20usage\x20of\x20this\ + \x20service.\n\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\x8d\x01\x02\x07\n\r\n\ + \x05\x04\0\x02\x0e\x01\x12\x04\x8d\x01\x08\r\n\r\n\x05\x04\0\x02\x0e\x03\ + \x12\x04\x8d\x01\x10\x12\n\xb5\x01\n\x04\x04\0\x02\x0f\x12\x04\x92\x01\ \x02#\x1a\xa6\x01\x20Configuration\x20for\x20network\x20endpoints.\x20\ \x20If\x20this\x20is\x20empty,\x20then\x20an\x20endpoint\n\x20with\x20th\ e\x20same\x20name\x20as\x20the\x20service\x20is\x20automatically\x20gene\ rated\x20to\x20service\x20all\n\x20defined\x20APIs.\n\n\r\n\x05\x04\0\ - \x02\x0e\x04\x12\x04\x95\x01\x02\n\n\r\n\x05\x04\0\x02\x0e\x06\x12\x04\ - \x95\x01\x0b\x13\n\r\n\x05\x04\0\x02\x0e\x01\x12\x04\x95\x01\x14\x1d\n\r\ - \n\x05\x04\0\x02\x0e\x03\x12\x04\x95\x01\x20\"\n<\n\x04\x04\0\x02\x0f\ - \x12\x04\x98\x01\x02\x17\x1a.\x20Configuration\x20for\x20the\x20service\ - \x20control\x20plane.\n\n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\x98\x01\x02\ - \t\n\r\n\x05\x04\0\x02\x0f\x01\x12\x04\x98\x01\n\x11\n\r\n\x05\x04\0\x02\ - \x0f\x03\x12\x04\x98\x01\x14\x16\n6\n\x04\x04\0\x02\x10\x12\x04\x9b\x01\ + \x02\x0f\x04\x12\x04\x92\x01\x02\n\n\r\n\x05\x04\0\x02\x0f\x06\x12\x04\ + \x92\x01\x0b\x13\n\r\n\x05\x04\0\x02\x0f\x01\x12\x04\x92\x01\x14\x1d\n\r\ + \n\x05\x04\0\x02\x0f\x03\x12\x04\x92\x01\x20\"\n<\n\x04\x04\0\x02\x10\ + \x12\x04\x95\x01\x02\x17\x1a.\x20Configuration\x20for\x20the\x20service\ + \x20control\x20plane.\n\n\r\n\x05\x04\0\x02\x10\x06\x12\x04\x95\x01\x02\ + \t\n\r\n\x05\x04\0\x02\x10\x01\x12\x04\x95\x01\n\x11\n\r\n\x05\x04\0\x02\ + \x10\x03\x12\x04\x95\x01\x14\x16\n6\n\x04\x04\0\x02\x11\x12\x04\x98\x01\ \x02#\x1a(\x20Defines\x20the\x20logs\x20used\x20by\x20this\x20service.\n\ - \n\r\n\x05\x04\0\x02\x10\x04\x12\x04\x9b\x01\x02\n\n\r\n\x05\x04\0\x02\ - \x10\x06\x12\x04\x9b\x01\x0b\x18\n\r\n\x05\x04\0\x02\x10\x01\x12\x04\x9b\ - \x01\x19\x1d\n\r\n\x05\x04\0\x02\x10\x03\x12\x04\x9b\x01\x20\"\n9\n\x04\ - \x04\0\x02\x11\x12\x04\x9e\x01\x02)\x1a+\x20Defines\x20the\x20metrics\ - \x20used\x20by\x20this\x20service.\n\n\r\n\x05\x04\0\x02\x11\x04\x12\x04\ - \x9e\x01\x02\n\n\r\n\x05\x04\0\x02\x11\x06\x12\x04\x9e\x01\x0b\x1b\n\r\n\ - \x05\x04\0\x02\x11\x01\x12\x04\x9e\x01\x1c#\n\r\n\x05\x04\0\x02\x11\x03\ - \x12\x04\x9e\x01&(\n\xd6\x01\n\x04\x04\0\x02\x12\x12\x04\xa3\x01\x02@\ - \x1a\xc7\x01\x20Defines\x20the\x20monitored\x20resources\x20used\x20by\ + \n\r\n\x05\x04\0\x02\x11\x04\x12\x04\x98\x01\x02\n\n\r\n\x05\x04\0\x02\ + \x11\x06\x12\x04\x98\x01\x0b\x18\n\r\n\x05\x04\0\x02\x11\x01\x12\x04\x98\ + \x01\x19\x1d\n\r\n\x05\x04\0\x02\x11\x03\x12\x04\x98\x01\x20\"\n9\n\x04\ + \x04\0\x02\x12\x12\x04\x9b\x01\x02)\x1a+\x20Defines\x20the\x20metrics\ + \x20used\x20by\x20this\x20service.\n\n\r\n\x05\x04\0\x02\x12\x04\x12\x04\ + \x9b\x01\x02\n\n\r\n\x05\x04\0\x02\x12\x06\x12\x04\x9b\x01\x0b\x1b\n\r\n\ + \x05\x04\0\x02\x12\x01\x12\x04\x9b\x01\x1c#\n\r\n\x05\x04\0\x02\x12\x03\ + \x12\x04\x9b\x01&(\n\xd5\x01\n\x04\x04\0\x02\x13\x12\x04\x9f\x01\x02@\ + \x1a\xc6\x01\x20Defines\x20the\x20monitored\x20resources\x20used\x20by\ \x20this\x20service.\x20This\x20is\x20required\n\x20by\x20the\x20[Servic\ - e.monitoring][google.api.Service.monitoring]\x20and\n\x20[Service.loggin\ - g][google.api.Service.logging]\x20configurations.\n\n\r\n\x05\x04\0\x02\ - \x12\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\0\x02\x12\x06\x12\x04\xa3\ - \x01\x0b&\n\r\n\x05\x04\0\x02\x12\x01\x12\x04\xa3\x01':\n\r\n\x05\x04\0\ - \x02\x12\x03\x12\x04\xa3\x01=?\n&\n\x04\x04\0\x02\x13\x12\x04\xa6\x01\ - \x02\x17\x1a\x18\x20Billing\x20configuration.\n\n\r\n\x05\x04\0\x02\x13\ - \x06\x12\x04\xa6\x01\x02\t\n\r\n\x05\x04\0\x02\x13\x01\x12\x04\xa6\x01\n\ - \x11\n\r\n\x05\x04\0\x02\x13\x03\x12\x04\xa6\x01\x14\x16\n&\n\x04\x04\0\ - \x02\x14\x12\x04\xa9\x01\x02\x17\x1a\x18\x20Logging\x20configuration.\n\ - \n\r\n\x05\x04\0\x02\x14\x06\x12\x04\xa9\x01\x02\t\n\r\n\x05\x04\0\x02\ - \x14\x01\x12\x04\xa9\x01\n\x11\n\r\n\x05\x04\0\x02\x14\x03\x12\x04\xa9\ - \x01\x14\x16\n)\n\x04\x04\0\x02\x15\x12\x04\xac\x01\x02\x1d\x1a\x1b\x20M\ - onitoring\x20configuration.\n\n\r\n\x05\x04\0\x02\x15\x06\x12\x04\xac\ - \x01\x02\x0c\n\r\n\x05\x04\0\x02\x15\x01\x12\x04\xac\x01\r\x17\n\r\n\x05\ - \x04\0\x02\x15\x03\x12\x04\xac\x01\x1a\x1c\n/\n\x04\x04\0\x02\x16\x12\ - \x04\xaf\x01\x02*\x1a!\x20System\x20parameter\x20configuration.\n\n\r\n\ - \x05\x04\0\x02\x16\x06\x12\x04\xaf\x01\x02\x12\n\r\n\x05\x04\0\x02\x16\ - \x01\x12\x04\xaf\x01\x13$\n\r\n\x05\x04\0\x02\x16\x03\x12\x04\xaf\x01')\ - \nX\n\x04\x04\0\x02\x17\x12\x04\xb2\x01\x02\x1e\x1aJ\x20Output\x20only.\ + e.monitoring][google.api.Service.monitoring]\x20and\x20[Service.logging]\ + [google.api.Service.logging]\x20configurations.\n\n\r\n\x05\x04\0\x02\ + \x13\x04\x12\x04\x9f\x01\x02\n\n\r\n\x05\x04\0\x02\x13\x06\x12\x04\x9f\ + \x01\x0b&\n\r\n\x05\x04\0\x02\x13\x01\x12\x04\x9f\x01':\n\r\n\x05\x04\0\ + \x02\x13\x03\x12\x04\x9f\x01=?\n&\n\x04\x04\0\x02\x14\x12\x04\xa2\x01\ + \x02\x17\x1a\x18\x20Billing\x20configuration.\n\n\r\n\x05\x04\0\x02\x14\ + \x06\x12\x04\xa2\x01\x02\t\n\r\n\x05\x04\0\x02\x14\x01\x12\x04\xa2\x01\n\ + \x11\n\r\n\x05\x04\0\x02\x14\x03\x12\x04\xa2\x01\x14\x16\n&\n\x04\x04\0\ + \x02\x15\x12\x04\xa5\x01\x02\x17\x1a\x18\x20Logging\x20configuration.\n\ + \n\r\n\x05\x04\0\x02\x15\x06\x12\x04\xa5\x01\x02\t\n\r\n\x05\x04\0\x02\ + \x15\x01\x12\x04\xa5\x01\n\x11\n\r\n\x05\x04\0\x02\x15\x03\x12\x04\xa5\ + \x01\x14\x16\n)\n\x04\x04\0\x02\x16\x12\x04\xa8\x01\x02\x1d\x1a\x1b\x20M\ + onitoring\x20configuration.\n\n\r\n\x05\x04\0\x02\x16\x06\x12\x04\xa8\ + \x01\x02\x0c\n\r\n\x05\x04\0\x02\x16\x01\x12\x04\xa8\x01\r\x17\n\r\n\x05\ + \x04\0\x02\x16\x03\x12\x04\xa8\x01\x1a\x1c\n/\n\x04\x04\0\x02\x17\x12\ + \x04\xab\x01\x02*\x1a!\x20System\x20parameter\x20configuration.\n\n\r\n\ + \x05\x04\0\x02\x17\x06\x12\x04\xab\x01\x02\x12\n\r\n\x05\x04\0\x02\x17\ + \x01\x12\x04\xab\x01\x13$\n\r\n\x05\x04\0\x02\x17\x03\x12\x04\xab\x01')\ + \nX\n\x04\x04\0\x02\x18\x12\x04\xae\x01\x02\x1e\x1aJ\x20Output\x20only.\ \x20The\x20source\x20information\x20for\x20this\x20configuration\x20if\ - \x20available.\n\n\r\n\x05\x04\0\x02\x17\x06\x12\x04\xb2\x01\x02\x0c\n\r\ - \n\x05\x04\0\x02\x17\x01\x12\x04\xb2\x01\r\x18\n\r\n\x05\x04\0\x02\x17\ - \x03\x12\x04\xb2\x01\x1b\x1d\n\xab\x01\n\x04\x04\0\x02\x18\x12\x04\xb7\ - \x01\x02\x1d\x1a\x9c\x01\x20Settings\x20for\x20[Google\x20Cloud\x20Clien\ - t\n\x20libraries](https://cloud.google.com/apis/docs/cloud-client-librar\ - ies)\n\x20generated\x20from\x20APIs\x20defined\x20as\x20protocol\x20buff\ - ers.\n\n\r\n\x05\x04\0\x02\x18\x06\x12\x04\xb7\x01\x02\x0c\n\r\n\x05\x04\ - \0\x02\x18\x01\x12\x04\xb7\x01\r\x17\n\r\n\x05\x04\0\x02\x18\x03\x12\x04\ - \xb7\x01\x1a\x1c\n\x87\x01\n\x04\x04\0\x02\x19\x12\x04\xbd\x01\x022\x1ay\ - \x20Obsolete.\x20Do\x20not\x20use.\n\n\x20This\x20field\x20has\x20no\x20\ - semantic\x20meaning.\x20The\x20service\x20config\x20compiler\x20always\n\ - \x20sets\x20this\x20field\x20to\x20`3`.\n\n\r\n\x05\x04\0\x02\x19\x06\ - \x12\x04\xbd\x01\x02\x1d\n\r\n\x05\x04\0\x02\x19\x01\x12\x04\xbd\x01\x1e\ - ,\n\r\n\x05\x04\0\x02\x19\x03\x12\x04\xbd\x01/1b\x06proto3\ + \x20available.\n\n\r\n\x05\x04\0\x02\x18\x06\x12\x04\xae\x01\x02\x0c\n\r\ + \n\x05\x04\0\x02\x18\x01\x12\x04\xae\x01\r\x18\n\r\n\x05\x04\0\x02\x18\ + \x03\x12\x04\xae\x01\x1b\x1db\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(23); + deps.push(super::auth::file_descriptor().clone()); + deps.push(super::backend::file_descriptor().clone()); + deps.push(super::billing::file_descriptor().clone()); + deps.push(super::context::file_descriptor().clone()); + deps.push(super::control::file_descriptor().clone()); + deps.push(super::documentation::file_descriptor().clone()); + deps.push(super::endpoint::file_descriptor().clone()); + deps.push(super::http::file_descriptor().clone()); + deps.push(super::label::file_descriptor().clone()); + deps.push(super::log::file_descriptor().clone()); + deps.push(super::logging::file_descriptor().clone()); + deps.push(super::metric::file_descriptor().clone()); + deps.push(super::monitored_resource::file_descriptor().clone()); + deps.push(super::monitoring::file_descriptor().clone()); + deps.push(super::quota::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::source_info::file_descriptor().clone()); + deps.push(super::system_parameter::file_descriptor().clone()); + deps.push(super::usage::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::api::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::type_::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::wrappers::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Service::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/check_error.rs b/googleapis-raw/src/api/servicecontrol/v1/check_error.rs index 59989f2..234eadc 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/check_error.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/check_error.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,30 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/check_error.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Defines the errors to be returned in +/// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors]. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckError) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CheckError { // message fields - pub code: CheckError_Code, - pub subject: ::std::string::String, + /// The error code. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckError.code) + pub code: ::protobuf::EnumOrUnknown, + /// Free-form text providing details on the error cause of the error. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckError.detail) pub detail: ::std::string::String, - pub status: ::protobuf::SingularPtrField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.CheckError.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CheckError { @@ -46,135 +53,45 @@ impl CheckError { ::std::default::Default::default() } - // .google.api.servicecontrol.v1.CheckError.Code code = 1; - - - pub fn get_code(&self) -> CheckError_Code { - self.code - } - pub fn clear_code(&mut self) { - self.code = CheckError_Code::ERROR_CODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_code(&mut self, v: CheckError_Code) { - self.code = v; - } - - // string subject = 4; - - - pub fn get_subject(&self) -> &str { - &self.subject - } - pub fn clear_subject(&mut self) { - self.subject.clear(); - } - - // Param is passed by value, moved - pub fn set_subject(&mut self, v: ::std::string::String) { - self.subject = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subject(&mut self) -> &mut ::std::string::String { - &mut self.subject - } - - // Take field - pub fn take_subject(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subject, ::std::string::String::new()) - } - - // string detail = 2; - - - pub fn get_detail(&self) -> &str { - &self.detail - } - pub fn clear_detail(&mut self) { - self.detail.clear(); - } - - // Param is passed by value, moved - pub fn set_detail(&mut self, v: ::std::string::String) { - self.detail = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_detail(&mut self) -> &mut ::std::string::String { - &mut self.detail - } - - // Take field - pub fn take_detail(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.detail, ::std::string::String::new()) - } - - // .google.rpc.Status status = 3; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "code", + |m: &CheckError| { &m.code }, + |m: &mut CheckError| { &mut m.code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "detail", + |m: &CheckError| { &m.detail }, + |m: &mut CheckError| { &mut m.detail }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckError", + fields, + oneofs, + ) } } impl ::protobuf::Message for CheckError { + const NAME: &'static str = "CheckError"; + fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subject)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.detail)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.code = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; + 18 => { + self.detail = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -183,399 +100,480 @@ impl ::protobuf::Message for CheckError { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.code != CheckError_Code::ERROR_CODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.code); - } - if !self.subject.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.subject); + if self.code != ::protobuf::EnumOrUnknown::new(check_error::Code::ERROR_CODE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.code.value()); } if !self.detail.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.detail); } - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.code != CheckError_Code::ERROR_CODE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; - } - if !self.subject.is_empty() { - os.write_string(4, &self.subject)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.code != ::protobuf::EnumOrUnknown::new(check_error::Code::ERROR_CODE_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.code))?; } if !self.detail.is_empty() { os.write_string(2, &self.detail)?; } - if let Some(ref v) = self.status.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CheckError { CheckError::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "code", - |m: &CheckError| { &m.code }, - |m: &mut CheckError| { &mut m.code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subject", - |m: &CheckError| { &m.subject }, - |m: &mut CheckError| { &mut m.subject }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "detail", - |m: &CheckError| { &m.detail }, - |m: &mut CheckError| { &mut m.detail }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &CheckError| { &m.status }, - |m: &mut CheckError| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckError", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.code = ::protobuf::EnumOrUnknown::new(check_error::Code::ERROR_CODE_UNSPECIFIED); + self.detail.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CheckError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckError::new) + static instance: CheckError = CheckError { + code: ::protobuf::EnumOrUnknown::from_i32(0), + detail: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CheckError { - fn clear(&mut self) { - self.code = CheckError_Code::ERROR_CODE_UNSPECIFIED; - self.subject.clear(); - self.detail.clear(); - self.status.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CheckError { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckError").unwrap()).clone() } } -impl ::std::fmt::Debug for CheckError { +impl ::std::fmt::Display for CheckError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CheckError { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CheckError_Code { - ERROR_CODE_UNSPECIFIED = 0, - NOT_FOUND = 5, - PERMISSION_DENIED = 7, - RESOURCE_EXHAUSTED = 8, - SERVICE_NOT_ACTIVATED = 104, - BILLING_DISABLED = 107, - PROJECT_DELETED = 108, - PROJECT_INVALID = 114, - CONSUMER_INVALID = 125, - IP_ADDRESS_BLOCKED = 109, - REFERER_BLOCKED = 110, - CLIENT_APP_BLOCKED = 111, - API_TARGET_BLOCKED = 122, - API_KEY_INVALID = 105, - API_KEY_EXPIRED = 112, - API_KEY_NOT_FOUND = 113, - INVALID_CREDENTIAL = 123, - NAMESPACE_LOOKUP_UNAVAILABLE = 300, - SERVICE_STATUS_UNAVAILABLE = 301, - BILLING_STATUS_UNAVAILABLE = 302, - CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305, -} +/// Nested message and enums of message `CheckError` +pub mod check_error { + /// Error codes for Check responses. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicecontrol.v1.CheckError.Code) + pub enum Code { + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.ERROR_CODE_UNSPECIFIED) + ERROR_CODE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.NOT_FOUND) + NOT_FOUND = 5, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.PERMISSION_DENIED) + PERMISSION_DENIED = 7, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.RESOURCE_EXHAUSTED) + RESOURCE_EXHAUSTED = 8, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.ABUSER_DETECTED) + ABUSER_DETECTED = 103, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.SERVICE_NOT_ACTIVATED) + SERVICE_NOT_ACTIVATED = 104, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.BILLING_DISABLED) + BILLING_DISABLED = 107, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.PROJECT_DELETED) + PROJECT_DELETED = 108, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.PROJECT_INVALID) + PROJECT_INVALID = 114, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.IP_ADDRESS_BLOCKED) + IP_ADDRESS_BLOCKED = 109, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.REFERER_BLOCKED) + REFERER_BLOCKED = 110, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.CLIENT_APP_BLOCKED) + CLIENT_APP_BLOCKED = 111, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.API_TARGET_BLOCKED) + API_TARGET_BLOCKED = 122, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.API_KEY_INVALID) + API_KEY_INVALID = 105, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.API_KEY_EXPIRED) + API_KEY_EXPIRED = 112, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.API_KEY_NOT_FOUND) + API_KEY_NOT_FOUND = 113, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.SECURITY_POLICY_VIOLATED) + SECURITY_POLICY_VIOLATED = 121, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.INVALID_CREDENTIAL) + INVALID_CREDENTIAL = 123, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.LOCATION_POLICY_VIOLATED) + LOCATION_POLICY_VIOLATED = 124, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.CONSUMER_INVALID) + CONSUMER_INVALID = 125, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.NAMESPACE_LOOKUP_UNAVAILABLE) + NAMESPACE_LOOKUP_UNAVAILABLE = 300, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.SERVICE_STATUS_UNAVAILABLE) + SERVICE_STATUS_UNAVAILABLE = 301, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.BILLING_STATUS_UNAVAILABLE) + BILLING_STATUS_UNAVAILABLE = 302, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.QUOTA_CHECK_UNAVAILABLE) + QUOTA_CHECK_UNAVAILABLE = 303, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE) + CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.SECURITY_POLICY_BACKEND_UNAVAILABLE) + SECURITY_POLICY_BACKEND_UNAVAILABLE = 306, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.CheckError.Code.LOCATION_POLICY_BACKEND_UNAVAILABLE) + LOCATION_POLICY_BACKEND_UNAVAILABLE = 307, + } + + impl ::protobuf::Enum for Code { + const NAME: &'static str = "Code"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for CheckError_Code { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Code::ERROR_CODE_UNSPECIFIED), + 5 => ::std::option::Option::Some(Code::NOT_FOUND), + 7 => ::std::option::Option::Some(Code::PERMISSION_DENIED), + 8 => ::std::option::Option::Some(Code::RESOURCE_EXHAUSTED), + 103 => ::std::option::Option::Some(Code::ABUSER_DETECTED), + 104 => ::std::option::Option::Some(Code::SERVICE_NOT_ACTIVATED), + 107 => ::std::option::Option::Some(Code::BILLING_DISABLED), + 108 => ::std::option::Option::Some(Code::PROJECT_DELETED), + 114 => ::std::option::Option::Some(Code::PROJECT_INVALID), + 109 => ::std::option::Option::Some(Code::IP_ADDRESS_BLOCKED), + 110 => ::std::option::Option::Some(Code::REFERER_BLOCKED), + 111 => ::std::option::Option::Some(Code::CLIENT_APP_BLOCKED), + 122 => ::std::option::Option::Some(Code::API_TARGET_BLOCKED), + 105 => ::std::option::Option::Some(Code::API_KEY_INVALID), + 112 => ::std::option::Option::Some(Code::API_KEY_EXPIRED), + 113 => ::std::option::Option::Some(Code::API_KEY_NOT_FOUND), + 121 => ::std::option::Option::Some(Code::SECURITY_POLICY_VIOLATED), + 123 => ::std::option::Option::Some(Code::INVALID_CREDENTIAL), + 124 => ::std::option::Option::Some(Code::LOCATION_POLICY_VIOLATED), + 125 => ::std::option::Option::Some(Code::CONSUMER_INVALID), + 300 => ::std::option::Option::Some(Code::NAMESPACE_LOOKUP_UNAVAILABLE), + 301 => ::std::option::Option::Some(Code::SERVICE_STATUS_UNAVAILABLE), + 302 => ::std::option::Option::Some(Code::BILLING_STATUS_UNAVAILABLE), + 303 => ::std::option::Option::Some(Code::QUOTA_CHECK_UNAVAILABLE), + 305 => ::std::option::Option::Some(Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE), + 306 => ::std::option::Option::Some(Code::SECURITY_POLICY_BACKEND_UNAVAILABLE), + 307 => ::std::option::Option::Some(Code::LOCATION_POLICY_BACKEND_UNAVAILABLE), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CheckError_Code::ERROR_CODE_UNSPECIFIED), - 5 => ::std::option::Option::Some(CheckError_Code::NOT_FOUND), - 7 => ::std::option::Option::Some(CheckError_Code::PERMISSION_DENIED), - 8 => ::std::option::Option::Some(CheckError_Code::RESOURCE_EXHAUSTED), - 104 => ::std::option::Option::Some(CheckError_Code::SERVICE_NOT_ACTIVATED), - 107 => ::std::option::Option::Some(CheckError_Code::BILLING_DISABLED), - 108 => ::std::option::Option::Some(CheckError_Code::PROJECT_DELETED), - 114 => ::std::option::Option::Some(CheckError_Code::PROJECT_INVALID), - 125 => ::std::option::Option::Some(CheckError_Code::CONSUMER_INVALID), - 109 => ::std::option::Option::Some(CheckError_Code::IP_ADDRESS_BLOCKED), - 110 => ::std::option::Option::Some(CheckError_Code::REFERER_BLOCKED), - 111 => ::std::option::Option::Some(CheckError_Code::CLIENT_APP_BLOCKED), - 122 => ::std::option::Option::Some(CheckError_Code::API_TARGET_BLOCKED), - 105 => ::std::option::Option::Some(CheckError_Code::API_KEY_INVALID), - 112 => ::std::option::Option::Some(CheckError_Code::API_KEY_EXPIRED), - 113 => ::std::option::Option::Some(CheckError_Code::API_KEY_NOT_FOUND), - 123 => ::std::option::Option::Some(CheckError_Code::INVALID_CREDENTIAL), - 300 => ::std::option::Option::Some(CheckError_Code::NAMESPACE_LOOKUP_UNAVAILABLE), - 301 => ::std::option::Option::Some(CheckError_Code::SERVICE_STATUS_UNAVAILABLE), - 302 => ::std::option::Option::Some(CheckError_Code::BILLING_STATUS_UNAVAILABLE), - 305 => ::std::option::Option::Some(CheckError_Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "ERROR_CODE_UNSPECIFIED" => ::std::option::Option::Some(Code::ERROR_CODE_UNSPECIFIED), + "NOT_FOUND" => ::std::option::Option::Some(Code::NOT_FOUND), + "PERMISSION_DENIED" => ::std::option::Option::Some(Code::PERMISSION_DENIED), + "RESOURCE_EXHAUSTED" => ::std::option::Option::Some(Code::RESOURCE_EXHAUSTED), + "ABUSER_DETECTED" => ::std::option::Option::Some(Code::ABUSER_DETECTED), + "SERVICE_NOT_ACTIVATED" => ::std::option::Option::Some(Code::SERVICE_NOT_ACTIVATED), + "BILLING_DISABLED" => ::std::option::Option::Some(Code::BILLING_DISABLED), + "PROJECT_DELETED" => ::std::option::Option::Some(Code::PROJECT_DELETED), + "PROJECT_INVALID" => ::std::option::Option::Some(Code::PROJECT_INVALID), + "IP_ADDRESS_BLOCKED" => ::std::option::Option::Some(Code::IP_ADDRESS_BLOCKED), + "REFERER_BLOCKED" => ::std::option::Option::Some(Code::REFERER_BLOCKED), + "CLIENT_APP_BLOCKED" => ::std::option::Option::Some(Code::CLIENT_APP_BLOCKED), + "API_TARGET_BLOCKED" => ::std::option::Option::Some(Code::API_TARGET_BLOCKED), + "API_KEY_INVALID" => ::std::option::Option::Some(Code::API_KEY_INVALID), + "API_KEY_EXPIRED" => ::std::option::Option::Some(Code::API_KEY_EXPIRED), + "API_KEY_NOT_FOUND" => ::std::option::Option::Some(Code::API_KEY_NOT_FOUND), + "SECURITY_POLICY_VIOLATED" => ::std::option::Option::Some(Code::SECURITY_POLICY_VIOLATED), + "INVALID_CREDENTIAL" => ::std::option::Option::Some(Code::INVALID_CREDENTIAL), + "LOCATION_POLICY_VIOLATED" => ::std::option::Option::Some(Code::LOCATION_POLICY_VIOLATED), + "CONSUMER_INVALID" => ::std::option::Option::Some(Code::CONSUMER_INVALID), + "NAMESPACE_LOOKUP_UNAVAILABLE" => ::std::option::Option::Some(Code::NAMESPACE_LOOKUP_UNAVAILABLE), + "SERVICE_STATUS_UNAVAILABLE" => ::std::option::Option::Some(Code::SERVICE_STATUS_UNAVAILABLE), + "BILLING_STATUS_UNAVAILABLE" => ::std::option::Option::Some(Code::BILLING_STATUS_UNAVAILABLE), + "QUOTA_CHECK_UNAVAILABLE" => ::std::option::Option::Some(Code::QUOTA_CHECK_UNAVAILABLE), + "CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE" => ::std::option::Option::Some(Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE), + "SECURITY_POLICY_BACKEND_UNAVAILABLE" => ::std::option::Option::Some(Code::SECURITY_POLICY_BACKEND_UNAVAILABLE), + "LOCATION_POLICY_BACKEND_UNAVAILABLE" => ::std::option::Option::Some(Code::LOCATION_POLICY_BACKEND_UNAVAILABLE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [CheckError_Code] = &[ - CheckError_Code::ERROR_CODE_UNSPECIFIED, - CheckError_Code::NOT_FOUND, - CheckError_Code::PERMISSION_DENIED, - CheckError_Code::RESOURCE_EXHAUSTED, - CheckError_Code::SERVICE_NOT_ACTIVATED, - CheckError_Code::BILLING_DISABLED, - CheckError_Code::PROJECT_DELETED, - CheckError_Code::PROJECT_INVALID, - CheckError_Code::CONSUMER_INVALID, - CheckError_Code::IP_ADDRESS_BLOCKED, - CheckError_Code::REFERER_BLOCKED, - CheckError_Code::CLIENT_APP_BLOCKED, - CheckError_Code::API_TARGET_BLOCKED, - CheckError_Code::API_KEY_INVALID, - CheckError_Code::API_KEY_EXPIRED, - CheckError_Code::API_KEY_NOT_FOUND, - CheckError_Code::INVALID_CREDENTIAL, - CheckError_Code::NAMESPACE_LOOKUP_UNAVAILABLE, - CheckError_Code::SERVICE_STATUS_UNAVAILABLE, - CheckError_Code::BILLING_STATUS_UNAVAILABLE, - CheckError_Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE, + const VALUES: &'static [Code] = &[ + Code::ERROR_CODE_UNSPECIFIED, + Code::NOT_FOUND, + Code::PERMISSION_DENIED, + Code::RESOURCE_EXHAUSTED, + Code::ABUSER_DETECTED, + Code::SERVICE_NOT_ACTIVATED, + Code::BILLING_DISABLED, + Code::PROJECT_DELETED, + Code::PROJECT_INVALID, + Code::IP_ADDRESS_BLOCKED, + Code::REFERER_BLOCKED, + Code::CLIENT_APP_BLOCKED, + Code::API_TARGET_BLOCKED, + Code::API_KEY_INVALID, + Code::API_KEY_EXPIRED, + Code::API_KEY_NOT_FOUND, + Code::SECURITY_POLICY_VIOLATED, + Code::INVALID_CREDENTIAL, + Code::LOCATION_POLICY_VIOLATED, + Code::CONSUMER_INVALID, + Code::NAMESPACE_LOOKUP_UNAVAILABLE, + Code::SERVICE_STATUS_UNAVAILABLE, + Code::BILLING_STATUS_UNAVAILABLE, + Code::QUOTA_CHECK_UNAVAILABLE, + Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE, + Code::SECURITY_POLICY_BACKEND_UNAVAILABLE, + Code::LOCATION_POLICY_BACKEND_UNAVAILABLE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CheckError.Code", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Code { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("CheckError.Code").unwrap()).clone() + } -impl ::std::marker::Copy for CheckError_Code { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + Code::ERROR_CODE_UNSPECIFIED => 0, + Code::NOT_FOUND => 1, + Code::PERMISSION_DENIED => 2, + Code::RESOURCE_EXHAUSTED => 3, + Code::ABUSER_DETECTED => 4, + Code::SERVICE_NOT_ACTIVATED => 5, + Code::BILLING_DISABLED => 6, + Code::PROJECT_DELETED => 7, + Code::PROJECT_INVALID => 8, + Code::IP_ADDRESS_BLOCKED => 9, + Code::REFERER_BLOCKED => 10, + Code::CLIENT_APP_BLOCKED => 11, + Code::API_TARGET_BLOCKED => 12, + Code::API_KEY_INVALID => 13, + Code::API_KEY_EXPIRED => 14, + Code::API_KEY_NOT_FOUND => 15, + Code::SECURITY_POLICY_VIOLATED => 16, + Code::INVALID_CREDENTIAL => 17, + Code::LOCATION_POLICY_VIOLATED => 18, + Code::CONSUMER_INVALID => 19, + Code::NAMESPACE_LOOKUP_UNAVAILABLE => 20, + Code::SERVICE_STATUS_UNAVAILABLE => 21, + Code::BILLING_STATUS_UNAVAILABLE => 22, + Code::QUOTA_CHECK_UNAVAILABLE => 23, + Code::CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE => 24, + Code::SECURITY_POLICY_BACKEND_UNAVAILABLE => 25, + Code::LOCATION_POLICY_BACKEND_UNAVAILABLE => 26, + }; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for CheckError_Code { - fn default() -> Self { - CheckError_Code::ERROR_CODE_UNSPECIFIED + impl ::std::default::Default for Code { + fn default() -> Self { + Code::ERROR_CODE_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for CheckError_Code { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Code { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("CheckError.Code") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n.google/api/servicecontrol/v1/check_error.proto\x12\x1cgoogle.api.serv\ - icecontrol.v1\x1a\x17google/rpc/status.proto\"\xcd\x05\n\nCheckError\x12\ - A\n\x04code\x18\x01\x20\x01(\x0e2-.google.api.servicecontrol.v1.CheckErr\ - or.CodeR\x04code\x12\x18\n\x07subject\x18\x04\x20\x01(\tR\x07subject\x12\ - \x16\n\x06detail\x18\x02\x20\x01(\tR\x06detail\x12*\n\x06status\x18\x03\ - \x20\x01(\x0b2\x12.google.rpc.StatusR\x06status\"\x9d\x04\n\x04Code\x12\ - \x1a\n\x16ERROR_CODE_UNSPECIFIED\x10\0\x12\r\n\tNOT_FOUND\x10\x05\x12\ - \x15\n\x11PERMISSION_DENIED\x10\x07\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\ - \x08\x12\x19\n\x15SERVICE_NOT_ACTIVATED\x10h\x12\x14\n\x10BILLING_DISABL\ - ED\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\x12\x13\n\x0fPROJECT_INVALID\ - \x10r\x12\x14\n\x10CONSUMER_INVALID\x10}\x12\x16\n\x12IP_ADDRESS_BLOCKED\ - \x10m\x12\x13\n\x0fREFERER_BLOCKED\x10n\x12\x16\n\x12CLIENT_APP_BLOCKED\ - \x10o\x12\x16\n\x12API_TARGET_BLOCKED\x10z\x12\x13\n\x0fAPI_KEY_INVALID\ - \x10i\x12\x13\n\x0fAPI_KEY_EXPIRED\x10p\x12\x15\n\x11API_KEY_NOT_FOUND\ - \x10q\x12\x16\n\x12INVALID_CREDENTIAL\x10{\x12!\n\x1cNAMESPACE_LOOKUP_UN\ - AVAILABLE\x10\xac\x02\x12\x1f\n\x1aSERVICE_STATUS_UNAVAILABLE\x10\xad\ - \x02\x12\x1f\n\x1aBILLING_STATUS_UNAVAILABLE\x10\xae\x02\x12/\n*CLOUD_RE\ - SOURCE_MANAGER_BACKEND_UNAVAILABLE\x10\xb1\x02B\xea\x01\n\x20com.google.\ - api.servicecontrol.v1B\x0fCheckErrorProtoP\x01ZJcloud.google.com/go/serv\ - icecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\ - \x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceCont\ - rol\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xbe!\n\x06\x12\x04\ - \x0e\0{\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\ - icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\ - t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ - \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ - nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ - 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\ - \n\x02\x03\0\x12\x03\x12\0!\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\ - \x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0;\n\t\n\x02\x08%\ - \x12\x03\x15\0;\n\x08\n\x01\x08\x12\x03\x16\0a\n\t\n\x02\x08\x0b\x12\x03\ - \x16\0a\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\ - \n\x08\n\x01\x08\x12\x03\x18\00\n\t\n\x02\x08\x08\x12\x03\x18\00\n\x08\n\ - \x01\x08\x12\x03\x19\09\n\t\n\x02\x08\x01\x12\x03\x19\09\n\x08\n\x01\x08\ - \x12\x03\x1a\0;\n\t\n\x02\x08)\x12\x03\x1a\0;\n\x08\n\x01\x08\x12\x03\ - \x1b\0:\n\t\n\x02\x08-\x12\x03\x1b\0:\n\xa8\x01\n\x02\x04\0\x12\x04\x1f\ - \0{\x01\x1a\x9b\x01\x20Defines\x20the\x20errors\x20to\x20be\x20returned\ - \x20in\n\x20[google.api.servicecontrol.v1.CheckResponse.check_errors][go\ - ogle.api.servicecontrol.v1.CheckResponse.check_errors].\n\n\n\n\x03\x04\ - \0\x01\x12\x03\x1f\x08\x12\n0\n\x04\x04\0\x04\0\x12\x04!\x02g\x03\x1a\"\ - \x20Error\x20codes\x20for\x20Check\x20responses.\n\n\x0c\n\x05\x04\0\x04\ - \0\x01\x12\x03!\x07\x0b\n7\n\x06\x04\0\x04\0\x02\0\x12\x03#\x04\x1f\x1a(\ - \x20This\x20is\x20never\x20used\x20in\x20`CheckResponse`.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x01\x12\x03#\x04\x1a\n\x0e\n\x07\x04\0\x04\0\x02\0\ - \x02\x12\x03#\x1d\x1e\n\xa5\x01\n\x06\x04\0\x04\0\x02\x01\x12\x03'\x04\ - \x12\x1a\x95\x01\x20The\x20consumer's\x20project\x20id,\x20network\x20co\ - ntainer,\x20or\x20resource\x20container\x20was\n\x20not\x20found.\x20Sam\ - e\x20as\x20[google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03'\x04\r\n\x0e\n\x07\x04\0\x04\ - \0\x02\x01\x02\x12\x03'\x10\x11\n\x9e\x01\n\x06\x04\0\x04\0\x02\x02\x12\ - \x03+\x04\x1a\x1a\x8e\x01\x20The\x20consumer\x20doesn't\x20have\x20acces\ - s\x20to\x20the\x20specified\x20resource.\n\x20Same\x20as\x20[google.rpc.\ - Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].\n\n\x0e\n\ - \x07\x04\0\x04\0\x02\x02\x01\x12\x03+\x04\x15\n\x0e\n\x07\x04\0\x04\0\ - \x02\x02\x02\x12\x03+\x18\x19\nv\n\x06\x04\0\x04\0\x02\x03\x12\x03.\x04\ - \x1b\x1ag\x20Quota\x20check\x20failed.\x20Same\x20as\x20[google.rpc.Code\ - .RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\x03\x01\x12\x03.\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\ - \x03\x02\x12\x03.\x19\x1a\n;\n\x06\x04\0\x04\0\x02\x04\x12\x031\x04\x20\ - \x1a,\x20The\x20consumer\x20hasn't\x20activated\x20the\x20service.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\x04\x01\x12\x031\x04\x19\n\x0e\n\x07\x04\0\ - \x04\0\x02\x04\x02\x12\x031\x1c\x1f\nT\n\x06\x04\0\x04\0\x02\x05\x12\x03\ - 4\x04\x1b\x1aE\x20The\x20consumer\x20cannot\x20access\x20the\x20service\ - \x20because\x20billing\x20is\x20disabled.\n\n\x0e\n\x07\x04\0\x04\0\x02\ - \x05\x01\x12\x034\x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\x05\x02\x12\x034\ - \x17\x1a\nS\n\x06\x04\0\x04\0\x02\x06\x12\x037\x04\x1a\x1aD\x20The\x20co\ - nsumer's\x20project\x20has\x20been\x20marked\x20as\x20deleted\x20(soft\ - \x20deletion).\n\n\x0e\n\x07\x04\0\x04\0\x02\x06\x01\x12\x037\x04\x13\n\ - \x0e\n\x07\x04\0\x04\0\x02\x06\x02\x12\x037\x16\x19\nX\n\x06\x04\0\x04\0\ - \x02\x07\x12\x03:\x04\x1a\x1aI\x20The\x20consumer's\x20project\x20number\ - \x20or\x20id\x20does\x20not\x20represent\x20a\x20valid\x20project.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\x07\x01\x12\x03:\x04\x13\n\x0e\n\x07\x04\0\ - \x04\0\x02\x07\x02\x12\x03:\x16\x19\ne\n\x06\x04\0\x04\0\x02\x08\x12\x03\ - >\x04\x1b\x1aV\x20The\x20input\x20consumer\x20info\x20does\x20not\x20rep\ - resent\x20a\x20valid\x20consumer\x20folder\x20or\n\x20organization.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\x08\x01\x12\x03>\x04\x14\n\x0e\n\x07\x04\0\ - \x04\0\x02\x08\x02\x12\x03>\x17\x1a\n^\n\x06\x04\0\x04\0\x02\t\x12\x03B\ - \x04\x1d\x1aO\x20The\x20IP\x20address\x20of\x20the\x20consumer\x20is\x20\ - invalid\x20for\x20the\x20specific\x20consumer\n\x20project.\n\n\x0e\n\ - \x07\x04\0\x04\0\x02\t\x01\x12\x03B\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\ - \t\x02\x12\x03B\x19\x1c\nk\n\x06\x04\0\x04\0\x02\n\x12\x03F\x04\x1a\x1a\ - \\\x20The\x20referer\x20address\x20of\x20the\x20consumer\x20request\x20i\ - s\x20invalid\x20for\x20the\x20specific\n\x20consumer\x20project.\n\n\x0e\ - \n\x07\x04\0\x04\0\x02\n\x01\x12\x03F\x04\x13\n\x0e\n\x07\x04\0\x04\0\ - \x02\n\x02\x12\x03F\x16\x19\nn\n\x06\x04\0\x04\0\x02\x0b\x12\x03J\x04\ - \x1d\x1a_\x20The\x20client\x20application\x20of\x20the\x20consumer\x20re\ - quest\x20is\x20invalid\x20for\x20the\n\x20specific\x20consumer\x20projec\ - t.\n\n\x0e\n\x07\x04\0\x04\0\x02\x0b\x01\x12\x03J\x04\x16\n\x0e\n\x07\ - \x04\0\x04\0\x02\x0b\x02\x12\x03J\x19\x1c\na\n\x06\x04\0\x04\0\x02\x0c\ - \x12\x03N\x04\x1d\x1aR\x20The\x20API\x20targeted\x20by\x20this\x20reques\ - t\x20is\x20invalid\x20for\x20the\x20specified\x20consumer\n\x20project.\ - \n\n\x0e\n\x07\x04\0\x04\0\x02\x0c\x01\x12\x03N\x04\x16\n\x0e\n\x07\x04\ - \0\x04\0\x02\x0c\x02\x12\x03N\x19\x1c\n3\n\x06\x04\0\x04\0\x02\r\x12\x03\ - Q\x04\x1a\x1a$\x20The\x20consumer's\x20API\x20key\x20is\x20invalid.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\r\x01\x12\x03Q\x04\x13\n\x0e\n\x07\x04\0\x04\ - \0\x02\r\x02\x12\x03Q\x16\x19\n4\n\x06\x04\0\x04\0\x02\x0e\x12\x03T\x04\ - \x1a\x1a%\x20The\x20consumer's\x20API\x20Key\x20has\x20expired.\n\n\x0e\ - \n\x07\x04\0\x04\0\x02\x0e\x01\x12\x03T\x04\x13\n\x0e\n\x07\x04\0\x04\0\ - \x02\x0e\x02\x12\x03T\x16\x19\nG\n\x06\x04\0\x04\0\x02\x0f\x12\x03W\x04\ - \x1c\x1a8\x20The\x20consumer's\x20API\x20Key\x20was\x20not\x20found\x20i\ - n\x20config\x20record.\n\n\x0e\n\x07\x04\0\x04\0\x02\x0f\x01\x12\x03W\ - \x04\x15\n\x0e\n\x07\x04\0\x04\0\x02\x0f\x02\x12\x03W\x18\x1b\nC\n\x06\ - \x04\0\x04\0\x02\x10\x12\x03Z\x04\x1d\x1a4\x20The\x20credential\x20in\ - \x20the\x20request\x20can\x20not\x20be\x20verified.\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\x10\x01\x12\x03Z\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\x10\x02\ - \x12\x03Z\x19\x1c\nT\n\x06\x04\0\x04\0\x02\x11\x12\x03]\x04'\x1aE\x20The\ - \x20backend\x20server\x20for\x20looking\x20up\x20project\x20id/number\ - \x20is\x20unavailable.\n\n\x0e\n\x07\x04\0\x04\0\x02\x11\x01\x12\x03]\ - \x04\x20\n\x0e\n\x07\x04\0\x04\0\x02\x11\x02\x12\x03]#&\nO\n\x06\x04\0\ - \x04\0\x02\x12\x12\x03`\x04%\x1a@\x20The\x20backend\x20server\x20for\x20\ - checking\x20service\x20status\x20is\x20unavailable.\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\x12\x01\x12\x03`\x04\x1e\n\x0e\n\x07\x04\0\x04\0\x02\x12\x02\ - \x12\x03`!$\nO\n\x06\x04\0\x04\0\x02\x13\x12\x03c\x04%\x1a@\x20The\x20ba\ - ckend\x20server\x20for\x20checking\x20billing\x20status\x20is\x20unavail\ - able.\n\n\x0e\n\x07\x04\0\x04\0\x02\x13\x01\x12\x03c\x04\x1e\n\x0e\n\x07\ - \x04\0\x04\0\x02\x13\x02\x12\x03c!$\nF\n\x06\x04\0\x04\0\x02\x14\x12\x03\ - f\x045\x1a7\x20Cloud\x20Resource\x20Manager\x20backend\x20server\x20is\ - \x20unavailable.\n\n\x0e\n\x07\x04\0\x04\0\x02\x14\x01\x12\x03f\x04.\n\ - \x0e\n\x07\x04\0\x04\0\x02\x14\x02\x12\x03f14\n\x1e\n\x04\x04\0\x02\0\ - \x12\x03j\x02\x10\x1a\x11\x20The\x20error\x20code.\n\n\x0c\n\x05\x04\0\ - \x02\0\x06\x12\x03j\x02\x06\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03j\x07\x0b\ - \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03j\x0e\x0f\n\xe5\x01\n\x04\x04\0\x02\ - \x01\x12\x03r\x02\x15\x1a\xd7\x01\x20Subject\x20to\x20whom\x20this\x20er\ - ror\x20applies.\x20See\x20the\x20specific\x20code\x20enum\x20for\x20more\ - \n\x20details\x20on\x20this\x20field.\x20For\x20example:\n\n\x20-\x20\"p\ - roject:\"\n\x20-\x20\"folder:\"\n\x20-\x20\"organization:\"\n\n\x0c\n\x05\x04\0\ - \x02\x01\x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03r\t\ - \x10\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03r\x13\x14\nP\n\x04\x04\0\x02\ - \x02\x12\x03u\x02\x14\x1aC\x20Free-form\x20text\x20providing\x20details\ - \x20on\x20the\x20error\x20cause\x20of\x20the\x20error.\n\n\x0c\n\x05\x04\ - \0\x02\x02\x05\x12\x03u\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03u\t\ - \x0f\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03u\x12\x13\n\xa2\x01\n\x04\x04\ - \0\x02\x03\x12\x03z\x02\x1f\x1a\x94\x01\x20Contains\x20public\x20informa\ - tion\x20about\x20the\x20check\x20error.\x20If\x20available,\n\x20`status\ - .code`\x20will\x20be\x20non\x20zero\x20and\x20client\x20can\x20propagate\ - \x20it\x20out\x20as\x20public\n\x20error.\n\n\x0c\n\x05\x04\0\x02\x03\ - \x06\x12\x03z\x02\x13\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03z\x14\x1a\n\ - \x0c\n\x05\x04\0\x02\x03\x03\x12\x03z\x1d\x1eb\x06proto3\ + icecontrol.v1\x1a\x1cgoogle/api/annotations.proto\"\xca\x06\n\nCheckErro\ + r\x12A\n\x04code\x18\x01\x20\x01(\x0e2-.google.api.servicecontrol.v1.Che\ + ckError.CodeR\x04code\x12\x16\n\x06detail\x18\x02\x20\x01(\tR\x06detail\ + \"\xe0\x05\n\x04Code\x12\x1a\n\x16ERROR_CODE_UNSPECIFIED\x10\0\x12\r\n\t\ + NOT_FOUND\x10\x05\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x16\n\x12RE\ + SOURCE_EXHAUSTED\x10\x08\x12\x13\n\x0fABUSER_DETECTED\x10g\x12\x19\n\x15\ + SERVICE_NOT_ACTIVATED\x10h\x12\x14\n\x10BILLING_DISABLED\x10k\x12\x13\n\ + \x0fPROJECT_DELETED\x10l\x12\x13\n\x0fPROJECT_INVALID\x10r\x12\x16\n\x12\ + IP_ADDRESS_BLOCKED\x10m\x12\x13\n\x0fREFERER_BLOCKED\x10n\x12\x16\n\x12C\ + LIENT_APP_BLOCKED\x10o\x12\x16\n\x12API_TARGET_BLOCKED\x10z\x12\x13\n\ + \x0fAPI_KEY_INVALID\x10i\x12\x13\n\x0fAPI_KEY_EXPIRED\x10p\x12\x15\n\x11\ + API_KEY_NOT_FOUND\x10q\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10y\x12\ + \x16\n\x12INVALID_CREDENTIAL\x10{\x12\x1c\n\x18LOCATION_POLICY_VIOLATED\ + \x10|\x12\x14\n\x10CONSUMER_INVALID\x10}\x12!\n\x1cNAMESPACE_LOOKUP_UNAV\ + AILABLE\x10\xac\x02\x12\x1f\n\x1aSERVICE_STATUS_UNAVAILABLE\x10\xad\x02\ + \x12\x1f\n\x1aBILLING_STATUS_UNAVAILABLE\x10\xae\x02\x12\x1c\n\x17QUOTA_\ + CHECK_UNAVAILABLE\x10\xaf\x02\x12/\n*CLOUD_RESOURCE_MANAGER_BACKEND_UNAV\ + AILABLE\x10\xb1\x02\x12(\n#SECURITY_POLICY_BACKEND_UNAVAILABLE\x10\xb2\ + \x02\x12(\n#LOCATION_POLICY_BACKEND_UNAVAILABLE\x10\xb3\x02B\x84\x01\n\ + \x20com.google.api.servicecontrol.v1B\x0fCheckErrorProtoP\x01ZJgoogle.go\ + lang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol\xf8\ + \x01\x01J\xfc#\n\x07\x12\x05\x0e\0\x84\x01\x01\n\xbd\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\x20Inc.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\x12\0&\n\x08\n\ + \x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\ + \x01\x08\x12\x03\x15\0a\n\t\n\x02\x08\x0b\x12\x03\x15\0a\n\x08\n\x01\x08\ + \x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\ + \x17\00\n\t\n\x02\x08\x08\x12\x03\x17\00\n\x08\n\x01\x08\x12\x03\x18\09\ + \n\t\n\x02\x08\x01\x12\x03\x18\09\n\xa9\x01\n\x02\x04\0\x12\x05\x1c\0\ + \x84\x01\x01\x1a\x9b\x01\x20Defines\x20the\x20errors\x20to\x20be\x20retu\ + rned\x20in\n\x20[google.api.servicecontrol.v1.CheckResponse.check_errors\ + ][google.api.servicecontrol.v1.CheckResponse.check_errors].\n\n\n\n\x03\ + \x04\0\x01\x12\x03\x1c\x08\x12\n0\n\x04\x04\0\x04\0\x12\x04\x1e\x02}\x03\ + \x1a\"\x20Error\x20codes\x20for\x20Check\x20responses.\n\n\x0c\n\x05\x04\ + \0\x04\0\x01\x12\x03\x1e\x07\x0b\n7\n\x06\x04\0\x04\0\x02\0\x12\x03\x20\ + \x04\x1f\x1a(\x20This\x20is\x20never\x20used\x20in\x20`CheckResponse`.\n\ + \n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x20\x04\x1a\n\x0e\n\x07\x04\0\ + \x04\0\x02\0\x02\x12\x03\x20\x1d\x1e\n\x8b\x01\n\x06\x04\0\x04\0\x02\x01\ + \x12\x03$\x04\x12\x1a|\x20The\x20consumer's\x20project\x20id,\x20network\ + \x20container,\x20or\x20resource\x20container\x20was\n\x20not\x20found.\ + \x20Same\x20as\x20[google.rpc.Code.NOT_FOUND][].\n\n\x0e\n\x07\x04\0\x04\ + \0\x02\x01\x01\x12\x03$\x04\r\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\ + \x03$\x10\x11\n|\n\x06\x04\0\x04\0\x02\x02\x12\x03(\x04\x1a\x1am\x20The\ + \x20consumer\x20doesn't\x20have\x20access\x20to\x20the\x20specified\x20r\ + esource.\n\x20Same\x20as\x20[google.rpc.Code.PERMISSION_DENIED][].\n\n\ + \x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03(\x04\x15\n\x0e\n\x07\x04\0\ + \x04\0\x02\x02\x02\x12\x03(\x18\x19\nT\n\x06\x04\0\x04\0\x02\x03\x12\x03\ + +\x04\x1b\x1aE\x20Quota\x20check\x20failed.\x20Same\x20as\x20[google.rpc\ + .Code.RESOURCE_EXHAUSTED][].\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\ + \x03+\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\x12\x03+\x19\x1a\n<\n\ + \x06\x04\0\x04\0\x02\x04\x12\x03.\x04\x1a\x1a-\x20The\x20consumer\x20has\ + \x20been\x20flagged\x20as\x20an\x20abuser.\n\n\x0e\n\x07\x04\0\x04\0\x02\ + \x04\x01\x12\x03.\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\x04\x02\x12\x03.\ + \x16\x19\n;\n\x06\x04\0\x04\0\x02\x05\x12\x031\x04\x20\x1a,\x20The\x20co\ + nsumer\x20hasn't\x20activated\x20the\x20service.\n\n\x0e\n\x07\x04\0\x04\ + \0\x02\x05\x01\x12\x031\x04\x19\n\x0e\n\x07\x04\0\x04\0\x02\x05\x02\x12\ + \x031\x1c\x1f\nT\n\x06\x04\0\x04\0\x02\x06\x12\x034\x04\x1b\x1aE\x20The\ + \x20consumer\x20cannot\x20access\x20the\x20service\x20because\x20billing\ + \x20is\x20disabled.\n\n\x0e\n\x07\x04\0\x04\0\x02\x06\x01\x12\x034\x04\ + \x14\n\x0e\n\x07\x04\0\x04\0\x02\x06\x02\x12\x034\x17\x1a\nS\n\x06\x04\0\ + \x04\0\x02\x07\x12\x037\x04\x1a\x1aD\x20The\x20consumer's\x20project\x20\ + has\x20been\x20marked\x20as\x20deleted\x20(soft\x20deletion).\n\n\x0e\n\ + \x07\x04\0\x04\0\x02\x07\x01\x12\x037\x04\x13\n\x0e\n\x07\x04\0\x04\0\ + \x02\x07\x02\x12\x037\x16\x19\nX\n\x06\x04\0\x04\0\x02\x08\x12\x03:\x04\ + \x1a\x1aI\x20The\x20consumer's\x20project\x20number\x20or\x20id\x20does\ + \x20not\x20represent\x20a\x20valid\x20project.\n\n\x0e\n\x07\x04\0\x04\0\ + \x02\x08\x01\x12\x03:\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\x08\x02\x12\ + \x03:\x16\x19\n^\n\x06\x04\0\x04\0\x02\t\x12\x03>\x04\x1d\x1aO\x20The\ + \x20IP\x20address\x20of\x20the\x20consumer\x20is\x20invalid\x20for\x20th\ + e\x20specific\x20consumer\n\x20project.\n\n\x0e\n\x07\x04\0\x04\0\x02\t\ + \x01\x12\x03>\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\t\x02\x12\x03>\x19\x1c\ + \nk\n\x06\x04\0\x04\0\x02\n\x12\x03B\x04\x1a\x1a\\\x20The\x20referer\x20\ + address\x20of\x20the\x20consumer\x20request\x20is\x20invalid\x20for\x20t\ + he\x20specific\n\x20consumer\x20project.\n\n\x0e\n\x07\x04\0\x04\0\x02\n\ + \x01\x12\x03B\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\n\x02\x12\x03B\x16\x19\ + \nn\n\x06\x04\0\x04\0\x02\x0b\x12\x03F\x04\x1d\x1a_\x20The\x20client\x20\ + application\x20of\x20the\x20consumer\x20request\x20is\x20invalid\x20for\ + \x20the\n\x20specific\x20consumer\x20project.\n\n\x0e\n\x07\x04\0\x04\0\ + \x02\x0b\x01\x12\x03F\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\x0b\x02\x12\ + \x03F\x19\x1c\na\n\x06\x04\0\x04\0\x02\x0c\x12\x03J\x04\x1d\x1aR\x20The\ + \x20API\x20targeted\x20by\x20this\x20request\x20is\x20invalid\x20for\x20\ + the\x20specified\x20consumer\n\x20project.\n\n\x0e\n\x07\x04\0\x04\0\x02\ + \x0c\x01\x12\x03J\x04\x16\n\x0e\n\x07\x04\0\x04\0\x02\x0c\x02\x12\x03J\ + \x19\x1c\n3\n\x06\x04\0\x04\0\x02\r\x12\x03M\x04\x1a\x1a$\x20The\x20cons\ + umer's\x20API\x20key\x20is\x20invalid.\n\n\x0e\n\x07\x04\0\x04\0\x02\r\ + \x01\x12\x03M\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\r\x02\x12\x03M\x16\x19\ + \n4\n\x06\x04\0\x04\0\x02\x0e\x12\x03P\x04\x1a\x1a%\x20The\x20consumer's\ + \x20API\x20Key\x20has\x20expired.\n\n\x0e\n\x07\x04\0\x04\0\x02\x0e\x01\ + \x12\x03P\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\x0e\x02\x12\x03P\x16\x19\n\ + G\n\x06\x04\0\x04\0\x02\x0f\x12\x03S\x04\x1c\x1a8\x20The\x20consumer's\ + \x20API\x20Key\x20was\x20not\x20found\x20in\x20config\x20record.\n\n\x0e\ + \n\x07\x04\0\x04\0\x02\x0f\x01\x12\x03S\x04\x15\n\x0e\n\x07\x04\0\x04\0\ + \x02\x0f\x02\x12\x03S\x18\x1b\nW\n\x06\x04\0\x04\0\x02\x10\x12\x03V\x04#\ + \x1aH\x20Request\x20is\x20not\x20allowed\x20as\x20per\x20security\x20pol\ + icies\x20defined\x20in\x20Org\x20Policy.\n\n\x0e\n\x07\x04\0\x04\0\x02\ + \x10\x01\x12\x03V\x04\x1c\n\x0e\n\x07\x04\0\x04\0\x02\x10\x02\x12\x03V\ + \x1f\"\nC\n\x06\x04\0\x04\0\x02\x11\x12\x03Y\x04\x1d\x1a4\x20The\x20cred\ + ential\x20in\x20the\x20request\x20can\x20not\x20be\x20verified.\n\n\x0e\ + \n\x07\x04\0\x04\0\x02\x11\x01\x12\x03Y\x04\x16\n\x0e\n\x07\x04\0\x04\0\ + \x02\x11\x02\x12\x03Y\x19\x1c\nW\n\x06\x04\0\x04\0\x02\x12\x12\x03\\\x04\ + #\x1aH\x20Request\x20is\x20not\x20allowed\x20as\x20per\x20location\x20po\ + licies\x20defined\x20in\x20Org\x20Policy.\n\n\x0e\n\x07\x04\0\x04\0\x02\ + \x12\x01\x12\x03\\\x04\x1c\n\x0e\n\x07\x04\0\x04\0\x02\x12\x02\x12\x03\\\ + \x1f\"\ne\n\x06\x04\0\x04\0\x02\x13\x12\x03`\x04\x1b\x1aV\x20The\x20inpu\ + t\x20consumer\x20info\x20does\x20not\x20represent\x20a\x20valid\x20consu\ + mer\x20folder\x20or\n\x20organization.\n\n\x0e\n\x07\x04\0\x04\0\x02\x13\ + \x01\x12\x03`\x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\x13\x02\x12\x03`\x17\ + \x1a\n\xe6\x02\n\x06\x04\0\x04\0\x02\x14\x12\x03j\x04'\x1aE\x20The\x20ba\ + ckend\x20server\x20for\x20looking\x20up\x20project\x20id/number\x20is\ + \x20unavailable.\n2Z\x20NOTE:\x20By\x20convention,\x20all\x20*_UNAVAILAB\ + LE\x20codes\x20are\x20required\x20to\x20be\x20in\x20the\n\x20300\x20-\ + \x20399\x20range.\n2\xb3\x01\x20NOTE:\x20Unless\x20there\x20are\x20very\ + \x20special\x20business\x20requirements,\x20service\n\x20producer\x20sho\ + uld\x20ignore\x20the\x20following\x20errors.\x20These\x20errors\x20shoul\ + d\x20not\n\x20cause\x20the\x20rejection\x20of\x20client\x20requests.\n\n\ + \x0e\n\x07\x04\0\x04\0\x02\x14\x01\x12\x03j\x04\x20\n\x0e\n\x07\x04\0\ + \x04\0\x02\x14\x02\x12\x03j#&\nO\n\x06\x04\0\x04\0\x02\x15\x12\x03m\x04%\ + \x1a@\x20The\x20backend\x20server\x20for\x20checking\x20service\x20statu\ + s\x20is\x20unavailable.\n\n\x0e\n\x07\x04\0\x04\0\x02\x15\x01\x12\x03m\ + \x04\x1e\n\x0e\n\x07\x04\0\x04\0\x02\x15\x02\x12\x03m!$\nO\n\x06\x04\0\ + \x04\0\x02\x16\x12\x03p\x04%\x1a@\x20The\x20backend\x20server\x20for\x20\ + checking\x20billing\x20status\x20is\x20unavailable.\n\n\x0e\n\x07\x04\0\ + \x04\0\x02\x16\x01\x12\x03p\x04\x1e\n\x0e\n\x07\x04\0\x04\0\x02\x16\x02\ + \x12\x03p!$\nM\n\x06\x04\0\x04\0\x02\x17\x12\x03s\x04\"\x1a>\x20The\x20b\ + ackend\x20server\x20for\x20checking\x20quota\x20limits\x20is\x20unavaila\ + ble.\n\n\x0e\n\x07\x04\0\x04\0\x02\x17\x01\x12\x03s\x04\x1b\n\x0e\n\x07\ + \x04\0\x04\0\x02\x17\x02\x12\x03s\x1e!\nF\n\x06\x04\0\x04\0\x02\x18\x12\ + \x03v\x045\x1a7\x20Cloud\x20Resource\x20Manager\x20backend\x20server\x20\ + is\x20unavailable.\n\n\x0e\n\x07\x04\0\x04\0\x02\x18\x01\x12\x03v\x04.\n\ + \x0e\n\x07\x04\0\x04\0\x02\x18\x02\x12\x03v14\nN\n\x06\x04\0\x04\0\x02\ + \x19\x12\x03y\x04.\x1a?\x20Backend\x20server\x20for\x20evaluating\x20sec\ + urity\x20policy\x20is\x20unavailable.\n\n\x0e\n\x07\x04\0\x04\0\x02\x19\ + \x01\x12\x03y\x04'\n\x0e\n\x07\x04\0\x04\0\x02\x19\x02\x12\x03y*-\nN\n\ + \x06\x04\0\x04\0\x02\x1a\x12\x03|\x04.\x1a?\x20Backend\x20server\x20for\ + \x20evaluating\x20location\x20policy\x20is\x20unavailable.\n\n\x0e\n\x07\ + \x04\0\x04\0\x02\x1a\x01\x12\x03|\x04'\n\x0e\n\x07\x04\0\x04\0\x02\x1a\ + \x02\x12\x03|*-\n\x1f\n\x04\x04\0\x02\0\x12\x04\x80\x01\x02\x10\x1a\x11\ + \x20The\x20error\x20code.\n\n\r\n\x05\x04\0\x02\0\x06\x12\x04\x80\x01\ + \x02\x06\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x80\x01\x07\x0b\n\r\n\x05\x04\ + \0\x02\0\x03\x12\x04\x80\x01\x0e\x0f\nQ\n\x04\x04\0\x02\x01\x12\x04\x83\ + \x01\x02\x14\x1aC\x20Free-form\x20text\x20providing\x20details\x20on\x20\ + the\x20error\x20cause\x20of\x20the\x20error.\n\n\r\n\x05\x04\0\x02\x01\ + \x05\x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x83\x01\ + \t\x0f\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x83\x01\x12\x13b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(CheckError::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(check_error::Code::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/distribution.rs b/googleapis-raw/src/api/servicecontrol/v1/distribution.rs index e3c1696..ec4f608 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/distribution.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/distribution.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,29 +16,64 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/distribution.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// Distribution represents a frequency distribution of double-valued sample +/// points. It contains the size of the population of sample points plus +/// additional optional information: +/// +/// - the arithmetic mean of the samples +/// - the minimum and maximum of the samples +/// - the sum-squared-deviation of the samples, used to compute variance +/// - a histogram of the values of the sample points +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.Distribution) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Distribution { // message fields + /// The total number of samples in the distribution. Must be >= 0. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.count) pub count: i64, + /// The arithmetic mean of the samples in the distribution. If `count` is + /// zero then this field must be zero. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.mean) pub mean: f64, + /// The minimum of the population of values. Ignored if `count` is zero. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.minimum) pub minimum: f64, + /// The maximum of the population of values. Ignored if `count` is zero. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.maximum) pub maximum: f64, + /// The sum of squared deviations from the mean: + /// Sum[i=1..count]((x_i - mean)^2) + /// where each x_i is a sample values. If `count` is zero then this field + /// must be zero, otherwise validation of the request fails. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.sum_of_squared_deviation) pub sum_of_squared_deviation: f64, + /// The number of samples in each histogram bucket. `bucket_counts` are + /// optional. If present, they must sum to the `count` value. + /// + /// The buckets are defined below in `bucket_option`. There are N buckets. + /// `bucket_counts[0]` is the number of samples in the underflow bucket. + /// `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples + /// in each of the finite buckets. And `bucket_counts[N] is the number + /// of samples in the overflow bucket. See the comments of `bucket_option` + /// below for more details. + /// + /// Any suffix of trailing zeros may be omitted. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.bucket_counts) pub bucket_counts: ::std::vec::Vec, - pub exemplars: ::protobuf::RepeatedField, // message oneof groups - pub bucket_option: ::std::option::Option, + pub bucket_option: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.Distribution.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Distribution { @@ -46,381 +82,263 @@ impl<'a> ::std::default::Default for &'a Distribution { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Distribution_oneof_bucket_option { - linear_buckets(Distribution_LinearBuckets), - exponential_buckets(Distribution_ExponentialBuckets), - explicit_buckets(Distribution_ExplicitBuckets), -} - impl Distribution { pub fn new() -> Distribution { ::std::default::Default::default() } - // int64 count = 1; - - - pub fn get_count(&self) -> i64 { - self.count - } - pub fn clear_count(&mut self) { - self.count = 0; - } - - // Param is passed by value, moved - pub fn set_count(&mut self, v: i64) { - self.count = v; - } - - // double mean = 2; - - - pub fn get_mean(&self) -> f64 { - self.mean - } - pub fn clear_mean(&mut self) { - self.mean = 0.; - } - - // Param is passed by value, moved - pub fn set_mean(&mut self, v: f64) { - self.mean = v; - } - - // double minimum = 3; - - - pub fn get_minimum(&self) -> f64 { - self.minimum - } - pub fn clear_minimum(&mut self) { - self.minimum = 0.; - } - - // Param is passed by value, moved - pub fn set_minimum(&mut self, v: f64) { - self.minimum = v; - } - - // double maximum = 4; - - - pub fn get_maximum(&self) -> f64 { - self.maximum - } - pub fn clear_maximum(&mut self) { - self.maximum = 0.; - } - - // Param is passed by value, moved - pub fn set_maximum(&mut self, v: f64) { - self.maximum = v; - } - - // double sum_of_squared_deviation = 5; - - - pub fn get_sum_of_squared_deviation(&self) -> f64 { - self.sum_of_squared_deviation - } - pub fn clear_sum_of_squared_deviation(&mut self) { - self.sum_of_squared_deviation = 0.; - } - - // Param is passed by value, moved - pub fn set_sum_of_squared_deviation(&mut self, v: f64) { - self.sum_of_squared_deviation = v; - } - - // repeated int64 bucket_counts = 6; - - - pub fn get_bucket_counts(&self) -> &[i64] { - &self.bucket_counts - } - pub fn clear_bucket_counts(&mut self) { - self.bucket_counts.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket_counts(&mut self, v: ::std::vec::Vec) { - self.bucket_counts = v; - } - - // Mutable pointer to the field. - pub fn mut_bucket_counts(&mut self) -> &mut ::std::vec::Vec { - &mut self.bucket_counts - } - - // Take field - pub fn take_bucket_counts(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bucket_counts, ::std::vec::Vec::new()) - } - // .google.api.servicecontrol.v1.Distribution.LinearBuckets linear_buckets = 7; - - pub fn get_linear_buckets(&self) -> &Distribution_LinearBuckets { + pub fn linear_buckets(&self) -> &distribution::LinearBuckets { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_linear_buckets(&mut self) { self.bucket_option = ::std::option::Option::None; } pub fn has_linear_buckets(&self) -> bool { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(..)) => true, + ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_linear_buckets(&mut self, v: Distribution_LinearBuckets) { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(v)) + pub fn set_linear_buckets(&mut self, v: distribution::LinearBuckets) { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(v)) } // Mutable pointer to the field. - pub fn mut_linear_buckets(&mut self) -> &mut Distribution_LinearBuckets { - if let ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(_)) = self.bucket_option { + pub fn mut_linear_buckets(&mut self) -> &mut distribution::LinearBuckets { + if let ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(_)) = self.bucket_option { } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(Distribution_LinearBuckets::new())); + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(distribution::LinearBuckets::new())); } match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(ref mut v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_linear_buckets(&mut self) -> Distribution_LinearBuckets { + pub fn take_linear_buckets(&mut self) -> distribution::LinearBuckets { if self.has_linear_buckets() { match self.bucket_option.take() { - ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(v)) => v, _ => panic!(), } } else { - Distribution_LinearBuckets::new() + distribution::LinearBuckets::new() } } // .google.api.servicecontrol.v1.Distribution.ExponentialBuckets exponential_buckets = 8; - - pub fn get_exponential_buckets(&self) -> &Distribution_ExponentialBuckets { + pub fn exponential_buckets(&self) -> &distribution::ExponentialBuckets { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_exponential_buckets(&mut self) { self.bucket_option = ::std::option::Option::None; } pub fn has_exponential_buckets(&self) -> bool { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(..)) => true, + ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_exponential_buckets(&mut self, v: Distribution_ExponentialBuckets) { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(v)) + pub fn set_exponential_buckets(&mut self, v: distribution::ExponentialBuckets) { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(v)) } // Mutable pointer to the field. - pub fn mut_exponential_buckets(&mut self) -> &mut Distribution_ExponentialBuckets { - if let ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(_)) = self.bucket_option { + pub fn mut_exponential_buckets(&mut self) -> &mut distribution::ExponentialBuckets { + if let ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(_)) = self.bucket_option { } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(Distribution_ExponentialBuckets::new())); + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(distribution::ExponentialBuckets::new())); } match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(ref mut v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_exponential_buckets(&mut self) -> Distribution_ExponentialBuckets { + pub fn take_exponential_buckets(&mut self) -> distribution::ExponentialBuckets { if self.has_exponential_buckets() { match self.bucket_option.take() { - ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(v)) => v, _ => panic!(), } } else { - Distribution_ExponentialBuckets::new() + distribution::ExponentialBuckets::new() } } // .google.api.servicecontrol.v1.Distribution.ExplicitBuckets explicit_buckets = 9; - - pub fn get_explicit_buckets(&self) -> &Distribution_ExplicitBuckets { + pub fn explicit_buckets(&self) -> &distribution::ExplicitBuckets { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_explicit_buckets(&mut self) { self.bucket_option = ::std::option::Option::None; } pub fn has_explicit_buckets(&self) -> bool { match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(..)) => true, + ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_explicit_buckets(&mut self, v: Distribution_ExplicitBuckets) { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(v)) + pub fn set_explicit_buckets(&mut self, v: distribution::ExplicitBuckets) { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(v)) } // Mutable pointer to the field. - pub fn mut_explicit_buckets(&mut self) -> &mut Distribution_ExplicitBuckets { - if let ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(_)) = self.bucket_option { + pub fn mut_explicit_buckets(&mut self) -> &mut distribution::ExplicitBuckets { + if let ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(_)) = self.bucket_option { } else { - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(Distribution_ExplicitBuckets::new())); + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(distribution::ExplicitBuckets::new())); } match self.bucket_option { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(ref mut v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_explicit_buckets(&mut self) -> Distribution_ExplicitBuckets { + pub fn take_explicit_buckets(&mut self) -> distribution::ExplicitBuckets { if self.has_explicit_buckets() { match self.bucket_option.take() { - ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(v)) => v, + ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(v)) => v, _ => panic!(), } } else { - Distribution_ExplicitBuckets::new() + distribution::ExplicitBuckets::new() } } - // repeated .google.api.Distribution.Exemplar exemplars = 10; - - - pub fn get_exemplars(&self) -> &[super::distribution_ex::Distribution_Exemplar] { - &self.exemplars - } - pub fn clear_exemplars(&mut self) { - self.exemplars.clear(); - } - - // Param is passed by value, moved - pub fn set_exemplars(&mut self, v: ::protobuf::RepeatedField) { - self.exemplars = v; - } - - // Mutable pointer to the field. - pub fn mut_exemplars(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.exemplars - } - - // Take field - pub fn take_exemplars(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.exemplars, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(9); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "count", + |m: &Distribution| { &m.count }, + |m: &mut Distribution| { &mut m.count }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "mean", + |m: &Distribution| { &m.mean }, + |m: &mut Distribution| { &mut m.mean }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "minimum", + |m: &Distribution| { &m.minimum }, + |m: &mut Distribution| { &mut m.minimum }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "maximum", + |m: &Distribution| { &m.maximum }, + |m: &mut Distribution| { &mut m.maximum }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sum_of_squared_deviation", + |m: &Distribution| { &m.sum_of_squared_deviation }, + |m: &mut Distribution| { &mut m.sum_of_squared_deviation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "bucket_counts", + |m: &Distribution| { &m.bucket_counts }, + |m: &mut Distribution| { &mut m.bucket_counts }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, distribution::LinearBuckets>( + "linear_buckets", + Distribution::has_linear_buckets, + Distribution::linear_buckets, + Distribution::mut_linear_buckets, + Distribution::set_linear_buckets, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, distribution::ExponentialBuckets>( + "exponential_buckets", + Distribution::has_exponential_buckets, + Distribution::exponential_buckets, + Distribution::mut_exponential_buckets, + Distribution::set_exponential_buckets, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, distribution::ExplicitBuckets>( + "explicit_buckets", + Distribution::has_explicit_buckets, + Distribution::explicit_buckets, + Distribution::mut_explicit_buckets, + Distribution::set_explicit_buckets, + )); + oneofs.push(distribution::Bucket_option::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution", + fields, + oneofs, + ) } } impl ::protobuf::Message for Distribution { + const NAME: &'static str = "Distribution"; + fn is_initialized(&self) -> bool { - if let Some(Distribution_oneof_bucket_option::linear_buckets(ref v)) = self.bucket_option { - if !v.is_initialized() { - return false; - } - } - if let Some(Distribution_oneof_bucket_option::exponential_buckets(ref v)) = self.bucket_option { - if !v.is_initialized() { - return false; - } - } - if let Some(Distribution_oneof_bucket_option::explicit_buckets(ref v)) = self.bucket_option { - if !v.is_initialized() { - return false; - } - } - for v in &self.exemplars { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.count = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.count = is.read_int64()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.mean = tmp; + 17 => { + self.mean = is.read_double()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.minimum = tmp; + 25 => { + self.minimum = is.read_double()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.maximum = tmp; + 33 => { + self.maximum = is.read_double()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.sum_of_squared_deviation = tmp; + 41 => { + self.sum_of_squared_deviation = is.read_double()?; }, - 6 => { - ::protobuf::rt::read_repeated_int64_into(wire_type, is, &mut self.bucket_counts)?; + 50 => { + is.read_repeated_packed_int64_into(&mut self.bucket_counts)?; }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::linear_buckets(is.read_message()?)); + 48 => { + self.bucket_counts.push(is.read_int64()?); }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::exponential_buckets(is.read_message()?)); + 58 => { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::LinearBuckets(is.read_message()?)); }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.bucket_option = ::std::option::Option::Some(Distribution_oneof_bucket_option::explicit_buckets(is.read_message()?)); + 66 => { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExponentialBuckets(is.read_message()?)); }, - 10 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exemplars)?; + 74 => { + self.bucket_option = ::std::option::Option::Some(distribution::Bucket_option::ExplicitBuckets(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -429,52 +347,48 @@ impl ::protobuf::Message for Distribution { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.count != 0 { - my_size += ::protobuf::rt::value_size(1, self.count, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(1, self.count); } if self.mean != 0. { - my_size += 9; + my_size += 1 + 8; } if self.minimum != 0. { - my_size += 9; + my_size += 1 + 8; } if self.maximum != 0. { - my_size += 9; + my_size += 1 + 8; } if self.sum_of_squared_deviation != 0. { - my_size += 9; + my_size += 1 + 8; } for value in &self.bucket_counts { - my_size += ::protobuf::rt::value_size(6, *value, ::protobuf::wire_format::WireTypeVarint); - }; - for value in &self.exemplars { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += ::protobuf::rt::int64_size(6, *value); }; if let ::std::option::Option::Some(ref v) = self.bucket_option { match v { - &Distribution_oneof_bucket_option::linear_buckets(ref v) => { + &distribution::Bucket_option::LinearBuckets(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Distribution_oneof_bucket_option::exponential_buckets(ref v) => { + &distribution::Bucket_option::ExponentialBuckets(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Distribution_oneof_bucket_option::explicit_buckets(ref v) => { + &distribution::Bucket_option::ExplicitBuckets(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.count != 0 { os.write_int64(1, self.count)?; } @@ -493,133 +407,35 @@ impl ::protobuf::Message for Distribution { for v in &self.bucket_counts { os.write_int64(6, *v)?; }; - for v in &self.exemplars { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; if let ::std::option::Option::Some(ref v) = self.bucket_option { match v { - &Distribution_oneof_bucket_option::linear_buckets(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &distribution::Bucket_option::LinearBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?; }, - &Distribution_oneof_bucket_option::exponential_buckets(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &distribution::Bucket_option::ExponentialBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }, - &Distribution_oneof_bucket_option::explicit_buckets(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &distribution::Bucket_option::ExplicitBuckets(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(9, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Distribution { Distribution::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "count", - |m: &Distribution| { &m.count }, - |m: &mut Distribution| { &mut m.count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "mean", - |m: &Distribution| { &m.mean }, - |m: &mut Distribution| { &mut m.mean }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "minimum", - |m: &Distribution| { &m.minimum }, - |m: &mut Distribution| { &mut m.minimum }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "maximum", - |m: &Distribution| { &m.maximum }, - |m: &mut Distribution| { &mut m.maximum }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "sum_of_squared_deviation", - |m: &Distribution| { &m.sum_of_squared_deviation }, - |m: &mut Distribution| { &mut m.sum_of_squared_deviation }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "bucket_counts", - |m: &Distribution| { &m.bucket_counts }, - |m: &mut Distribution| { &mut m.bucket_counts }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_LinearBuckets>( - "linear_buckets", - Distribution::has_linear_buckets, - Distribution::get_linear_buckets, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_ExponentialBuckets>( - "exponential_buckets", - Distribution::has_exponential_buckets, - Distribution::get_exponential_buckets, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Distribution_ExplicitBuckets>( - "explicit_buckets", - Distribution::has_explicit_buckets, - Distribution::get_explicit_buckets, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "exemplars", - |m: &Distribution| { &m.exemplars }, - |m: &mut Distribution| { &mut m.exemplars }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Distribution { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution::new) - } -} - -impl ::protobuf::Clear for Distribution { fn clear(&mut self) { self.count = 0; self.mean = 0.; @@ -630,839 +446,775 @@ impl ::protobuf::Clear for Distribution { self.bucket_option = ::std::option::Option::None; self.bucket_option = ::std::option::Option::None; self.bucket_option = ::std::option::Option::None; - self.exemplars.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for Distribution { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static Distribution { + static instance: Distribution = Distribution { + count: 0, + mean: 0., + minimum: 0., + maximum: 0., + sum_of_squared_deviation: 0., + bucket_counts: ::std::vec::Vec::new(), + bucket_option: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for Distribution { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for Distribution { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Distribution").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_LinearBuckets { - // message fields - pub num_finite_buckets: i32, - pub width: f64, - pub offset: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution_LinearBuckets { - fn default() -> &'a Distribution_LinearBuckets { - ::default_instance() +impl ::std::fmt::Display for Distribution { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl Distribution_LinearBuckets { - pub fn new() -> Distribution_LinearBuckets { - ::std::default::Default::default() - } - - // int32 num_finite_buckets = 1; - - - pub fn get_num_finite_buckets(&self) -> i32 { - self.num_finite_buckets - } - pub fn clear_num_finite_buckets(&mut self) { - self.num_finite_buckets = 0; - } - - // Param is passed by value, moved - pub fn set_num_finite_buckets(&mut self, v: i32) { - self.num_finite_buckets = v; - } - - // double width = 2; - - - pub fn get_width(&self) -> f64 { - self.width - } - pub fn clear_width(&mut self) { - self.width = 0.; - } - - // Param is passed by value, moved - pub fn set_width(&mut self, v: f64) { - self.width = v; - } - - // double offset = 3; - +impl ::protobuf::reflect::ProtobufValue for Distribution { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_offset(&self) -> f64 { - self.offset - } - pub fn clear_offset(&mut self) { - self.offset = 0.; - } +/// Nested message and enums of message `Distribution` +pub mod distribution { - // Param is passed by value, moved - pub fn set_offset(&mut self, v: f64) { - self.offset = v; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.servicecontrol.v1.Distribution.bucket_option) + pub enum Bucket_option { + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.Distribution.linear_buckets) + LinearBuckets(LinearBuckets), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.Distribution.exponential_buckets) + ExponentialBuckets(ExponentialBuckets), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.Distribution.explicit_buckets) + ExplicitBuckets(ExplicitBuckets), } -} -impl ::protobuf::Message for Distribution_LinearBuckets { - fn is_initialized(&self) -> bool { - true + impl ::protobuf::Oneof for Bucket_option { } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.num_finite_buckets = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.width = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.offset = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + impl ::protobuf::OneofFull for Bucket_option { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("bucket_option").unwrap()).clone() } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.num_finite_buckets != 0 { - my_size += ::protobuf::rt::value_size(1, self.num_finite_buckets, ::protobuf::wire_format::WireTypeVarint); - } - if self.width != 0. { - my_size += 9; + impl Bucket_option { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("bucket_option") } - if self.offset != 0. { - my_size += 9; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.num_finite_buckets != 0 { - os.write_int32(1, self.num_finite_buckets)?; + /// Describing buckets with constant width. + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.Distribution.LinearBuckets) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct LinearBuckets { + // message fields + /// The number of finite buckets. With the underflow and overflow buckets, + /// the total number of buckets is `num_finite_buckets` + 2. + /// See comments on `bucket_options` for details. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.LinearBuckets.num_finite_buckets) + pub num_finite_buckets: i32, + /// The i'th linear bucket covers the interval + /// [offset + (i-1) * width, offset + i * width) + /// where i ranges from 1 to num_finite_buckets, inclusive. + /// Must be strictly positive. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.LinearBuckets.width) + pub width: f64, + /// The i'th linear bucket covers the interval + /// [offset + (i-1) * width, offset + i * width) + /// where i ranges from 1 to num_finite_buckets, inclusive. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.LinearBuckets.offset) + pub offset: f64, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.Distribution.LinearBuckets.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a LinearBuckets { + fn default() -> &'a LinearBuckets { + ::default_instance() } - if self.width != 0. { - os.write_double(2, self.width)?; - } - if self.offset != 0. { - os.write_double(3, self.offset)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() } - fn new() -> Distribution_LinearBuckets { - Distribution_LinearBuckets::new() - } + impl LinearBuckets { + pub fn new() -> LinearBuckets { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "num_finite_buckets", - |m: &Distribution_LinearBuckets| { &m.num_finite_buckets }, - |m: &mut Distribution_LinearBuckets| { &mut m.num_finite_buckets }, + |m: &LinearBuckets| { &m.num_finite_buckets }, + |m: &mut LinearBuckets| { &mut m.num_finite_buckets }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "width", - |m: &Distribution_LinearBuckets| { &m.width }, - |m: &mut Distribution_LinearBuckets| { &mut m.width }, + |m: &LinearBuckets| { &m.width }, + |m: &mut LinearBuckets| { &mut m.width }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "offset", - |m: &Distribution_LinearBuckets| { &m.offset }, - |m: &mut Distribution_LinearBuckets| { &mut m.offset }, + |m: &LinearBuckets| { &m.offset }, + |m: &mut LinearBuckets| { &mut m.offset }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Distribution.LinearBuckets", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Distribution_LinearBuckets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_LinearBuckets::new) - } -} - -impl ::protobuf::Clear for Distribution_LinearBuckets { - fn clear(&mut self) { - self.num_finite_buckets = 0; - self.width = 0.; - self.offset = 0.; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Distribution_LinearBuckets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Distribution_LinearBuckets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_ExponentialBuckets { - // message fields - pub num_finite_buckets: i32, - pub growth_factor: f64, - pub scale: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Distribution_ExponentialBuckets { - fn default() -> &'a Distribution_ExponentialBuckets { - ::default_instance() - } -} - -impl Distribution_ExponentialBuckets { - pub fn new() -> Distribution_ExponentialBuckets { - ::std::default::Default::default() - } - - // int32 num_finite_buckets = 1; - - - pub fn get_num_finite_buckets(&self) -> i32 { - self.num_finite_buckets - } - pub fn clear_num_finite_buckets(&mut self) { - self.num_finite_buckets = 0; - } - - // Param is passed by value, moved - pub fn set_num_finite_buckets(&mut self, v: i32) { - self.num_finite_buckets = v; + } } - // double growth_factor = 2; + impl ::protobuf::Message for LinearBuckets { + const NAME: &'static str = "LinearBuckets"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_growth_factor(&self) -> f64 { - self.growth_factor - } - pub fn clear_growth_factor(&mut self) { - self.growth_factor = 0.; - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.num_finite_buckets = is.read_int32()?; + }, + 17 => { + self.width = is.read_double()?; + }, + 25 => { + self.offset = is.read_double()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_growth_factor(&mut self, v: f64) { - self.growth_factor = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.num_finite_buckets != 0 { + my_size += ::protobuf::rt::int32_size(1, self.num_finite_buckets); + } + if self.width != 0. { + my_size += 1 + 8; + } + if self.offset != 0. { + my_size += 1 + 8; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // double scale = 3; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.num_finite_buckets != 0 { + os.write_int32(1, self.num_finite_buckets)?; + } + if self.width != 0. { + os.write_double(2, self.width)?; + } + if self.offset != 0. { + os.write_double(3, self.offset)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_scale(&self) -> f64 { - self.scale - } - pub fn clear_scale(&mut self) { - self.scale = 0.; - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Param is passed by value, moved - pub fn set_scale(&mut self, v: f64) { - self.scale = v; - } -} + fn new() -> LinearBuckets { + LinearBuckets::new() + } -impl ::protobuf::Message for Distribution_ExponentialBuckets { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.num_finite_buckets = 0; + self.width = 0.; + self.offset = 0.; + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.num_finite_buckets = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.growth_factor = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.scale = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static LinearBuckets { + static instance: LinearBuckets = LinearBuckets { + num_finite_buckets: 0, + width: 0., + offset: 0., + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.num_finite_buckets != 0 { - my_size += ::protobuf::rt::value_size(1, self.num_finite_buckets, ::protobuf::wire_format::WireTypeVarint); - } - if self.growth_factor != 0. { - my_size += 9; + impl ::protobuf::MessageFull for LinearBuckets { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.LinearBuckets").unwrap()).clone() } - if self.scale != 0. { - my_size += 9; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.num_finite_buckets != 0 { - os.write_int32(1, self.num_finite_buckets)?; - } - if self.growth_factor != 0. { - os.write_double(2, self.growth_factor)?; + impl ::std::fmt::Display for LinearBuckets { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - if self.scale != 0. { - os.write_double(3, self.scale)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl ::protobuf::reflect::ProtobufValue for LinearBuckets { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } + + /// Describing buckets with exponentially growing width. + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.Distribution.ExponentialBuckets) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ExponentialBuckets { + // message fields + /// The number of finite buckets. With the underflow and overflow buckets, + /// the total number of buckets is `num_finite_buckets` + 2. + /// See comments on `bucket_options` for details. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.ExponentialBuckets.num_finite_buckets) + pub num_finite_buckets: i32, + /// The i'th exponential bucket covers the interval + /// [scale * growth_factor^(i-1), scale * growth_factor^i) + /// where i ranges from 1 to num_finite_buckets inclusive. + /// Must be larger than 1.0. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.ExponentialBuckets.growth_factor) + pub growth_factor: f64, + /// The i'th exponential bucket covers the interval + /// [scale * growth_factor^(i-1), scale * growth_factor^i) + /// where i ranges from 1 to num_finite_buckets inclusive. + /// Must be > 0. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.ExponentialBuckets.scale) + pub scale: f64, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.Distribution.ExponentialBuckets.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ExponentialBuckets { + fn default() -> &'a ExponentialBuckets { + ::default_instance() + } } - fn new() -> Distribution_ExponentialBuckets { - Distribution_ExponentialBuckets::new() - } + impl ExponentialBuckets { + pub fn new() -> ExponentialBuckets { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "num_finite_buckets", - |m: &Distribution_ExponentialBuckets| { &m.num_finite_buckets }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.num_finite_buckets }, + |m: &ExponentialBuckets| { &m.num_finite_buckets }, + |m: &mut ExponentialBuckets| { &mut m.num_finite_buckets }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "growth_factor", - |m: &Distribution_ExponentialBuckets| { &m.growth_factor }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.growth_factor }, + |m: &ExponentialBuckets| { &m.growth_factor }, + |m: &mut ExponentialBuckets| { &mut m.growth_factor }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "scale", - |m: &Distribution_ExponentialBuckets| { &m.scale }, - |m: &mut Distribution_ExponentialBuckets| { &mut m.scale }, + |m: &ExponentialBuckets| { &m.scale }, + |m: &mut ExponentialBuckets| { &mut m.scale }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Distribution.ExponentialBuckets", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static Distribution_ExponentialBuckets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_ExponentialBuckets::new) - } -} + impl ::protobuf::Message for ExponentialBuckets { + const NAME: &'static str = "ExponentialBuckets"; -impl ::protobuf::Clear for Distribution_ExponentialBuckets { - fn clear(&mut self) { - self.num_finite_buckets = 0; - self.growth_factor = 0.; - self.scale = 0.; - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::fmt::Debug for Distribution_ExponentialBuckets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.num_finite_buckets = is.read_int32()?; + }, + 17 => { + self.growth_factor = is.read_double()?; + }, + 25 => { + self.scale = is.read_double()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for Distribution_ExponentialBuckets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.num_finite_buckets != 0 { + my_size += ::protobuf::rt::int32_size(1, self.num_finite_buckets); + } + if self.growth_factor != 0. { + my_size += 1 + 8; + } + if self.scale != 0. { + my_size += 1 + 8; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(PartialEq,Clone,Default)] -pub struct Distribution_ExplicitBuckets { - // message fields - pub bounds: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.num_finite_buckets != 0 { + os.write_int32(1, self.num_finite_buckets)?; + } + if self.growth_factor != 0. { + os.write_double(2, self.growth_factor)?; + } + if self.scale != 0. { + os.write_double(3, self.scale)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a Distribution_ExplicitBuckets { - fn default() -> &'a Distribution_ExplicitBuckets { - ::default_instance() - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl Distribution_ExplicitBuckets { - pub fn new() -> Distribution_ExplicitBuckets { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // repeated double bounds = 1; + fn new() -> ExponentialBuckets { + ExponentialBuckets::new() + } + fn clear(&mut self) { + self.num_finite_buckets = 0; + self.growth_factor = 0.; + self.scale = 0.; + self.special_fields.clear(); + } - pub fn get_bounds(&self) -> &[f64] { - &self.bounds - } - pub fn clear_bounds(&mut self) { - self.bounds.clear(); + fn default_instance() -> &'static ExponentialBuckets { + static instance: ExponentialBuckets = ExponentialBuckets { + num_finite_buckets: 0, + growth_factor: 0., + scale: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Param is passed by value, moved - pub fn set_bounds(&mut self, v: ::std::vec::Vec) { - self.bounds = v; + impl ::protobuf::MessageFull for ExponentialBuckets { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.ExponentialBuckets").unwrap()).clone() + } } - // Mutable pointer to the field. - pub fn mut_bounds(&mut self) -> &mut ::std::vec::Vec { - &mut self.bounds + impl ::std::fmt::Display for ExponentialBuckets { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Take field - pub fn take_bounds(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.bounds, ::std::vec::Vec::new()) + impl ::protobuf::reflect::ProtobufValue for ExponentialBuckets { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } + + /// Describing buckets with arbitrary user-provided width. + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.Distribution.ExplicitBuckets) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ExplicitBuckets { + // message fields + /// 'bound' is a list of strictly increasing boundaries between + /// buckets. Note that a list of length N-1 defines N buckets because + /// of fenceposting. See comments on `bucket_options` for details. + /// + /// The i'th finite bucket covers the interval + /// [bound[i-1], bound[i]) + /// where i ranges from 1 to bound_size() - 1. Note that there are no + /// finite buckets at all if 'bound' only contains a single element; in + /// that special case the single bound defines the boundary between the + /// underflow and overflow buckets. + /// + /// bucket number lower bound upper bound + /// i == 0 (underflow) -inf bound[i] + /// 0 < i < bound_size() bound[i-1] bound[i] + /// i == bound_size() (overflow) bound[i-1] +inf + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Distribution.ExplicitBuckets.bounds) + pub bounds: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.Distribution.ExplicitBuckets.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ExplicitBuckets { + fn default() -> &'a ExplicitBuckets { + ::default_instance() + } } -} -impl ::protobuf::Message for Distribution_ExplicitBuckets { - fn is_initialized(&self) -> bool { - true - } + impl ExplicitBuckets { + pub fn new() -> ExplicitBuckets { + ::std::default::Default::default() + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_double_into(wire_type, is, &mut self.bounds)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "bounds", + |m: &ExplicitBuckets| { &m.bounds }, + |m: &mut ExplicitBuckets| { &mut m.bounds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Distribution.ExplicitBuckets", + fields, + oneofs, + ) } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += 9 * self.bounds.len() as u32; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + impl ::protobuf::Message for ExplicitBuckets { + const NAME: &'static str = "ExplicitBuckets"; - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.bounds { - os.write_double(1, *v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } + fn is_initialized(&self) -> bool { + true + } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + is.read_repeated_packed_double_into(&mut self.bounds)?; + }, + 9 => { + self.bounds.push(is.read_double()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += 9 * self.bounds.len() as u64; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.bounds { + os.write_double(1, *v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> Distribution_ExplicitBuckets { - Distribution_ExplicitBuckets::new() - } + fn new() -> ExplicitBuckets { + ExplicitBuckets::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "bounds", - |m: &Distribution_ExplicitBuckets| { &m.bounds }, - |m: &mut Distribution_ExplicitBuckets| { &mut m.bounds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Distribution.ExplicitBuckets", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.bounds.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static Distribution_ExplicitBuckets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Distribution_ExplicitBuckets::new) + fn default_instance() -> &'static ExplicitBuckets { + static instance: ExplicitBuckets = ExplicitBuckets { + bounds: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Distribution_ExplicitBuckets { - fn clear(&mut self) { - self.bounds.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for ExplicitBuckets { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Distribution.ExplicitBuckets").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Distribution_ExplicitBuckets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for ExplicitBuckets { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Distribution_ExplicitBuckets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for ExplicitBuckets { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } static file_descriptor_proto_data: &'static [u8] = b"\ \n/google/api/servicecontrol/v1/distribution.proto\x12\x1cgoogle.api.ser\ - vicecontrol.v1\x1a\x1dgoogle/api/distribution.proto\"\xf1\x06\n\x0cDistr\ - ibution\x12\x14\n\x05count\x18\x01\x20\x01(\x03R\x05count\x12\x12\n\x04m\ - ean\x18\x02\x20\x01(\x01R\x04mean\x12\x18\n\x07minimum\x18\x03\x20\x01(\ - \x01R\x07minimum\x12\x18\n\x07maximum\x18\x04\x20\x01(\x01R\x07maximum\ - \x127\n\x18sum_of_squared_deviation\x18\x05\x20\x01(\x01R\x15sumOfSquare\ - dDeviation\x12#\n\rbucket_counts\x18\x06\x20\x03(\x03R\x0cbucketCounts\ - \x12a\n\x0elinear_buckets\x18\x07\x20\x01(\x0b28.google.api.servicecontr\ - ol.v1.Distribution.LinearBucketsH\0R\rlinearBuckets\x12p\n\x13exponentia\ - l_buckets\x18\x08\x20\x01(\x0b2=.google.api.servicecontrol.v1.Distributi\ - on.ExponentialBucketsH\0R\x12exponentialBuckets\x12g\n\x10explicit_bucke\ - ts\x18\t\x20\x01(\x0b2:.google.api.servicecontrol.v1.Distribution.Explic\ - itBucketsH\0R\x0fexplicitBuckets\x12?\n\texemplars\x18\n\x20\x03(\x0b2!.\ - google.api.Distribution.ExemplarR\texemplars\x1ak\n\rLinearBuckets\x12,\ - \n\x12num_finite_buckets\x18\x01\x20\x01(\x05R\x10numFiniteBuckets\x12\ - \x14\n\x05width\x18\x02\x20\x01(\x01R\x05width\x12\x16\n\x06offset\x18\ - \x03\x20\x01(\x01R\x06offset\x1a}\n\x12ExponentialBuckets\x12,\n\x12num_\ - finite_buckets\x18\x01\x20\x01(\x05R\x10numFiniteBuckets\x12#\n\rgrowth_\ - factor\x18\x02\x20\x01(\x01R\x0cgrowthFactor\x12\x14\n\x05scale\x18\x03\ - \x20\x01(\x01R\x05scale\x1a)\n\x0fExplicitBuckets\x12\x16\n\x06bounds\ - \x18\x01\x20\x03(\x01R\x06boundsB\x0f\n\rbucket_optionB\xec\x01\n\x20com\ - .google.api.servicecontrol.v1B\x11DistributionProtoP\x01ZJcloud.google.c\ - om/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\ - \xaa\x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Ser\ - viceControl\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xbc4\n\x07\ - \x12\x05\x0e\0\xa5\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ - he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ - \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ - ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ - of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ - licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ - w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\x12\0'\n\x08\n\x01\x08\x12\x03\ - \x14\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\ - \x15\0;\n\t\n\x02\x08%\x12\x03\x15\0;\n\x08\n\x01\x08\x12\x03\x16\0a\n\t\ - \n\x02\x08\x0b\x12\x03\x16\0a\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ - \x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\02\n\t\n\x02\x08\x08\ - \x12\x03\x18\02\n\x08\n\x01\x08\x12\x03\x19\09\n\t\n\x02\x08\x01\x12\x03\ - \x19\09\n\x08\n\x01\x08\x12\x03\x1a\0;\n\t\n\x02\x08)\x12\x03\x1a\0;\n\ - \x08\n\x01\x08\x12\x03\x1b\0:\n\t\n\x02\x08-\x12\x03\x1b\0:\n\x89\x03\n\ - \x02\x04\0\x12\x05%\0\xa5\x01\x01\x1a\xfb\x02\x20Distribution\x20represe\ - nts\x20a\x20frequency\x20distribution\x20of\x20double-valued\x20sample\n\ - \x20points.\x20It\x20contains\x20the\x20size\x20of\x20the\x20population\ - \x20of\x20sample\x20points\x20plus\n\x20additional\x20optional\x20inform\ - ation:\n\n\x20*\x20the\x20arithmetic\x20mean\x20of\x20the\x20samples\n\ - \x20*\x20the\x20minimum\x20and\x20maximum\x20of\x20the\x20samples\n\x20*\ - \x20the\x20sum-squared-deviation\x20of\x20the\x20samples,\x20used\x20to\ - \x20compute\x20variance\n\x20*\x20a\x20histogram\x20of\x20the\x20values\ - \x20of\x20the\x20sample\x20points\n\n\n\n\x03\x04\0\x01\x12\x03%\x08\x14\ - \n7\n\x04\x04\0\x03\0\x12\x04'\x027\x03\x1a)\x20Describing\x20buckets\ - \x20with\x20constant\x20width.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03'\n\ - \x17\n\xc1\x01\n\x06\x04\0\x03\0\x02\0\x12\x03+\x04!\x1a\xb1\x01\x20The\ - \x20number\x20of\x20finite\x20buckets.\x20With\x20the\x20underflow\x20an\ - d\x20overflow\x20buckets,\n\x20the\x20total\x20number\x20of\x20buckets\ - \x20is\x20`num_finite_buckets`\x20+\x202.\n\x20See\x20comments\x20on\x20\ - `bucket_options`\x20for\x20details.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\ - \x12\x03+\x04\t\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03+\n\x1c\n\x0e\n\ - \x07\x04\0\x03\0\x02\0\x03\x12\x03+\x1f\x20\n\xc1\x01\n\x06\x04\0\x03\0\ - \x02\x01\x12\x031\x04\x15\x1a\xb1\x01\x20The\x20i'th\x20linear\x20bucket\ - \x20covers\x20the\x20interval\n\x20\x20\x20[offset\x20+\x20(i-1)\x20*\ - \x20width,\x20offset\x20+\x20i\x20*\x20width)\n\x20where\x20i\x20ranges\ - \x20from\x201\x20to\x20num_finite_buckets,\x20inclusive.\n\x20Must\x20be\ - \x20strictly\x20positive.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x031\ - \x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x031\x0b\x10\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x03\x12\x031\x13\x14\n\xa5\x01\n\x06\x04\0\x03\0\ - \x02\x02\x12\x036\x04\x16\x1a\x95\x01\x20The\x20i'th\x20linear\x20bucket\ - \x20covers\x20the\x20interval\n\x20\x20\x20[offset\x20+\x20(i-1)\x20*\ - \x20width,\x20offset\x20+\x20i\x20*\x20width)\n\x20where\x20i\x20ranges\ - \x20from\x201\x20to\x20num_finite_buckets,\x20inclusive.\n\n\x0e\n\x07\ - \x04\0\x03\0\x02\x02\x05\x12\x036\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\ - \x01\x12\x036\x0b\x11\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x036\x14\ - \x15\nD\n\x04\x04\0\x03\x01\x12\x04:\x02K\x03\x1a6\x20Describing\x20buck\ - ets\x20with\x20exponentially\x20growing\x20width.\n\n\x0c\n\x05\x04\0\ - \x03\x01\x01\x12\x03:\n\x1c\n\xc1\x01\n\x06\x04\0\x03\x01\x02\0\x12\x03>\ - \x04!\x1a\xb1\x01\x20The\x20number\x20of\x20finite\x20buckets.\x20With\ - \x20the\x20underflow\x20and\x20overflow\x20buckets,\n\x20the\x20total\ - \x20number\x20of\x20buckets\x20is\x20`num_finite_buckets`\x20+\x202.\n\ - \x20See\x20comments\x20on\x20`bucket_options`\x20for\x20details.\n\n\x0e\ - \n\x07\x04\0\x03\x01\x02\0\x05\x12\x03>\x04\t\n\x0e\n\x07\x04\0\x03\x01\ - \x02\0\x01\x12\x03>\n\x1c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03>\ - \x1f\x20\n\xcd\x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03D\x04\x1d\x1a\xbd\ - \x01\x20The\x20i'th\x20exponential\x20bucket\x20covers\x20the\x20interva\ - l\n\x20\x20\x20[scale\x20*\x20growth_factor^(i-1),\x20scale\x20*\x20grow\ - th_factor^i)\n\x20where\x20i\x20ranges\x20from\x201\x20to\x20num_finite_\ - buckets\x20inclusive.\n\x20Must\x20be\x20larger\x20than\x201.0.\n\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x01\x05\x12\x03D\x04\n\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x01\x01\x12\x03D\x0b\x18\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\ - \x12\x03D\x1b\x1c\n\xc1\x01\n\x06\x04\0\x03\x01\x02\x02\x12\x03J\x04\x15\ - \x1a\xb1\x01\x20The\x20i'th\x20exponential\x20bucket\x20covers\x20the\ - \x20interval\n\x20\x20\x20[scale\x20*\x20growth_factor^(i-1),\x20scale\ - \x20*\x20growth_factor^i)\n\x20where\x20i\x20ranges\x20from\x201\x20to\ - \x20num_finite_buckets\x20inclusive.\n\x20Must\x20be\x20>\x200.\n\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x02\x05\x12\x03J\x04\n\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x02\x01\x12\x03J\x0b\x10\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\ - \x12\x03J\x13\x14\nF\n\x04\x04\0\x03\x02\x12\x04N\x02_\x03\x1a8\x20Descr\ - ibing\x20buckets\x20with\x20arbitrary\x20user-provided\x20width.\n\n\x0c\ - \n\x05\x04\0\x03\x02\x01\x12\x03N\n\x19\n\xec\x05\n\x06\x04\0\x03\x02\ - \x02\0\x12\x03^\x04\x1f\x1a\xdc\x05\x20'bound'\x20is\x20a\x20list\x20of\ - \x20strictly\x20increasing\x20boundaries\x20between\n\x20buckets.\x20Not\ - e\x20that\x20a\x20list\x20of\x20length\x20N-1\x20defines\x20N\x20buckets\ - \x20because\n\x20of\x20fenceposting.\x20See\x20comments\x20on\x20`bucket\ - _options`\x20for\x20details.\n\n\x20The\x20i'th\x20finite\x20bucket\x20c\ - overs\x20the\x20interval\n\x20\x20\x20[bound[i-1],\x20bound[i])\n\x20whe\ - re\x20i\x20ranges\x20from\x201\x20to\x20bound_size()\x20-\x201.\x20Note\ - \x20that\x20there\x20are\x20no\n\x20finite\x20buckets\x20at\x20all\x20if\ - \x20'bound'\x20only\x20contains\x20a\x20single\x20element;\x20in\n\x20th\ - at\x20special\x20case\x20the\x20single\x20bound\x20defines\x20the\x20bou\ - ndary\x20between\x20the\n\x20underflow\x20and\x20overflow\x20buckets.\n\ - \n\x20bucket\x20number\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20lower\x20bound\x20\x20\x20\x20upper\x20bound\ - \n\x20\x20i\x20==\x200\x20(underflow)\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20-inf\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - bound[i]\n\x20\x200\x20<\x20i\x20<\x20bound_size()\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20bound[i-1]\x20\x20\x20\x20\x20bound[i]\n\x20\ - \x20i\x20==\x20bound_size()\x20(overflow)\x20\x20\x20\x20bound[i-1]\x20\ - \x20\x20\x20\x20+inf\n\n\x0e\n\x07\x04\0\x03\x02\x02\0\x04\x12\x03^\x04\ - \x0c\n\x0e\n\x07\x04\0\x03\x02\x02\0\x05\x12\x03^\r\x13\n\x0e\n\x07\x04\ - \0\x03\x02\x02\0\x01\x12\x03^\x14\x1a\n\x0e\n\x07\x04\0\x03\x02\x02\0\ - \x03\x12\x03^\x1d\x1e\nM\n\x04\x04\0\x02\0\x12\x03b\x02\x12\x1a@\x20The\ - \x20total\x20number\x20of\x20samples\x20in\x20the\x20distribution.\x20Mu\ - st\x20be\x20>=\x200.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03b\x02\x07\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03b\x08\r\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03b\x10\x11\nx\n\x04\x04\0\x02\x01\x12\x03f\x02\x12\x1ak\x20The\ - \x20arithmetic\x20mean\x20of\x20the\x20samples\x20in\x20the\x20distribut\ - ion.\x20If\x20`count`\x20is\n\x20zero\x20then\x20this\x20field\x20must\ - \x20be\x20zero.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03f\x02\x08\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03f\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03f\x10\x11\nS\n\x04\x04\0\x02\x02\x12\x03i\x02\x15\x1aF\x20The\x20min\ - imum\x20of\x20the\x20population\x20of\x20values.\x20Ignored\x20if\x20`co\ - unt`\x20is\x20zero.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03i\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x03i\t\x10\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x03i\x13\x14\nS\n\x04\x04\0\x02\x03\x12\x03l\x02\x15\x1aF\x20Th\ - e\x20maximum\x20of\x20the\x20population\x20of\x20values.\x20Ignored\x20i\ - f\x20`count`\x20is\x20zero.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03l\x02\ - \x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03l\t\x10\n\x0c\n\x05\x04\0\x02\ - \x03\x03\x12\x03l\x13\x14\n\xe0\x01\n\x04\x04\0\x02\x04\x12\x03r\x02&\ - \x1a\xd2\x01\x20The\x20sum\x20of\x20squared\x20deviations\x20from\x20the\ - \x20mean:\n\x20\x20\x20Sum[i=1..count]((x_i\x20-\x20mean)^2)\n\x20where\ - \x20each\x20x_i\x20is\x20a\x20sample\x20values.\x20If\x20`count`\x20is\ - \x20zero\x20then\x20this\x20field\n\x20must\x20be\x20zero,\x20otherwise\ - \x20validation\x20of\x20the\x20request\x20fails.\n\n\x0c\n\x05\x04\0\x02\ - \x04\x05\x12\x03r\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03r\t!\n\ - \x0c\n\x05\x04\0\x02\x04\x03\x12\x03r$%\n\xb8\x04\n\x04\x04\0\x02\x05\ - \x12\x03\x7f\x02#\x1a\xaa\x04\x20The\x20number\x20of\x20samples\x20in\ - \x20each\x20histogram\x20bucket.\x20`bucket_counts`\x20are\n\x20optional\ - .\x20If\x20present,\x20they\x20must\x20sum\x20to\x20the\x20`count`\x20va\ - lue.\n\n\x20The\x20buckets\x20are\x20defined\x20below\x20in\x20`bucket_o\ - ption`.\x20There\x20are\x20N\x20buckets.\n\x20`bucket_counts[0]`\x20is\ - \x20the\x20number\x20of\x20samples\x20in\x20the\x20underflow\x20bucket.\ - \n\x20`bucket_counts[1]`\x20to\x20`bucket_counts[N-1]`\x20are\x20the\x20\ - numbers\x20of\x20samples\n\x20in\x20each\x20of\x20the\x20finite\x20bucke\ - ts.\x20And\x20`bucket_counts[N]\x20is\x20the\x20number\n\x20of\x20sample\ - s\x20in\x20the\x20overflow\x20bucket.\x20See\x20the\x20comments\x20of\ - \x20`bucket_option`\n\x20below\x20for\x20more\x20details.\n\n\x20Any\x20\ - suffix\x20of\x20trailing\x20zeros\x20may\x20be\x20omitted.\n\n\x0c\n\x05\ - \x04\0\x02\x05\x04\x12\x03\x7f\x02\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\ - \x03\x7f\x0b\x10\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03\x7f\x11\x1e\n\x0c\ - \n\x05\x04\0\x02\x05\x03\x12\x03\x7f!\"\n\xf2\x08\n\x04\x04\0\x08\0\x12\ - \x06\x98\x01\x02\xa1\x01\x03\x1a\xe1\x08\x20Defines\x20the\x20buckets\ - \x20in\x20the\x20histogram.\x20`bucket_option`\x20and\x20`bucket_counts`\ - \n\x20must\x20be\x20both\x20set,\x20or\x20both\x20unset.\n\n\x20Buckets\ - \x20are\x20numbered\x20in\x20the\x20range\x20of\x20[0,\x20N],\x20with\ - \x20a\x20total\x20of\x20N+1\x20buckets.\n\x20There\x20must\x20be\x20at\ - \x20least\x20two\x20buckets\x20(a\x20single-bucket\x20histogram\x20gives\ - \n\x20no\x20information\x20that\x20isn't\x20already\x20provided\x20by\ - \x20`count`).\n\n\x20The\x20first\x20bucket\x20is\x20the\x20underflow\ - \x20bucket\x20which\x20has\x20a\x20lower\x20bound\n\x20of\x20-inf.\x20Th\ - e\x20last\x20bucket\x20is\x20the\x20overflow\x20bucket\x20which\x20has\ - \x20an\n\x20upper\x20bound\x20of\x20+inf.\x20All\x20other\x20buckets\x20\ - (if\x20any)\x20are\x20called\x20\"finite\"\n\x20buckets\x20because\x20th\ - ey\x20have\x20finite\x20lower\x20and\x20upper\x20bounds.\x20As\x20descri\ - bed\n\x20below,\x20there\x20are\x20three\x20ways\x20to\x20define\x20the\ - \x20finite\x20buckets.\n\n\x20\x20\x20(1)\x20Buckets\x20with\x20constant\ - \x20width.\n\x20\x20\x20(2)\x20Buckets\x20with\x20exponentially\x20growi\ - ng\x20widths.\n\x20\x20\x20(3)\x20Buckets\x20with\x20arbitrary\x20user-p\ - rovided\x20widths.\n\n\x20In\x20all\x20cases,\x20the\x20buckets\x20cover\ - \x20the\x20entire\x20real\x20number\x20line\x20(-inf,\n\x20+inf).\x20Buc\ - ket\x20upper\x20bounds\x20are\x20exclusive\x20and\x20lower\x20bounds\x20\ - are\n\x20inclusive.\x20The\x20upper\x20bound\x20of\x20the\x20underflow\ - \x20bucket\x20is\x20equal\x20to\x20the\n\x20lower\x20bound\x20of\x20the\ - \x20smallest\x20finite\x20bucket;\x20the\x20lower\x20bound\x20of\x20the\ - \n\x20overflow\x20bucket\x20is\x20equal\x20to\x20the\x20upper\x20bound\ - \x20of\x20the\x20largest\x20finite\n\x20bucket.\n\n\r\n\x05\x04\0\x08\0\ - \x01\x12\x04\x98\x01\x08\x15\n,\n\x04\x04\0\x02\x06\x12\x04\x9a\x01\x04%\ - \x1a\x1e\x20Buckets\x20with\x20constant\x20width.\n\n\r\n\x05\x04\0\x02\ - \x06\x06\x12\x04\x9a\x01\x04\x11\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x9a\ - \x01\x12\x20\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\x9a\x01#$\n9\n\x04\x04\ - \0\x02\x07\x12\x04\x9d\x01\x04/\x1a+\x20Buckets\x20with\x20exponentially\ - \x20growing\x20width.\n\n\r\n\x05\x04\0\x02\x07\x06\x12\x04\x9d\x01\x04\ - \x16\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\x9d\x01\x17*\n\r\n\x05\x04\0\ - \x02\x07\x03\x12\x04\x9d\x01-.\n;\n\x04\x04\0\x02\x08\x12\x04\xa0\x01\ - \x04)\x1a-\x20Buckets\x20with\x20arbitrary\x20user-provided\x20width.\n\ - \n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xa0\x01\x04\x13\n\r\n\x05\x04\0\x02\ - \x08\x01\x12\x04\xa0\x01\x14$\n\r\n\x05\x04\0\x02\x08\x03\x12\x04\xa0\ - \x01'(\nM\n\x04\x04\0\x02\t\x12\x04\xa4\x01\x02;\x1a?\x20Example\x20poin\ - ts.\x20Must\x20be\x20in\x20increasing\x20order\x20of\x20`value`\x20field\ - .\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04\xa4\x01\x02\n\n\r\n\x05\x04\0\x02\ - \t\x06\x12\x04\xa4\x01\x0b+\n\r\n\x05\x04\0\x02\t\x01\x12\x04\xa4\x01,5\ - \n\r\n\x05\x04\0\x02\t\x03\x12\x04\xa4\x018:b\x06proto3\ + vicecontrol.v1\"\xb0\x06\n\x0cDistribution\x12\x14\n\x05count\x18\x01\ + \x20\x01(\x03R\x05count\x12\x12\n\x04mean\x18\x02\x20\x01(\x01R\x04mean\ + \x12\x18\n\x07minimum\x18\x03\x20\x01(\x01R\x07minimum\x12\x18\n\x07maxi\ + mum\x18\x04\x20\x01(\x01R\x07maximum\x127\n\x18sum_of_squared_deviation\ + \x18\x05\x20\x01(\x01R\x15sumOfSquaredDeviation\x12#\n\rbucket_counts\ + \x18\x06\x20\x03(\x03R\x0cbucketCounts\x12a\n\x0elinear_buckets\x18\x07\ + \x20\x01(\x0b28.google.api.servicecontrol.v1.Distribution.LinearBucketsH\ + \0R\rlinearBuckets\x12p\n\x13exponential_buckets\x18\x08\x20\x01(\x0b2=.\ + google.api.servicecontrol.v1.Distribution.ExponentialBucketsH\0R\x12expo\ + nentialBuckets\x12g\n\x10explicit_buckets\x18\t\x20\x01(\x0b2:.google.ap\ + i.servicecontrol.v1.Distribution.ExplicitBucketsH\0R\x0fexplicitBuckets\ + \x1ak\n\rLinearBuckets\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\x05\ + R\x10numFiniteBuckets\x12\x14\n\x05width\x18\x02\x20\x01(\x01R\x05width\ + \x12\x16\n\x06offset\x18\x03\x20\x01(\x01R\x06offset\x1a}\n\x12Exponenti\ + alBuckets\x12,\n\x12num_finite_buckets\x18\x01\x20\x01(\x05R\x10numFinit\ + eBuckets\x12#\n\rgrowth_factor\x18\x02\x20\x01(\x01R\x0cgrowthFactor\x12\ + \x14\n\x05scale\x18\x03\x20\x01(\x01R\x05scale\x1a)\n\x0fExplicitBuckets\ + \x12\x16\n\x06bounds\x18\x01\x20\x03(\x01R\x06boundsB\x0f\n\rbucket_opti\ + onB\x86\x01\n\x20com.google.api.servicecontrol.v1B\x11DistributionProtoP\ + \x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontrol/v1;servic\ + econtrol\xf8\x01\x01J\xf02\n\x07\x12\x05\x0e\0\x9d\x01\x01\n\xbd\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\x20In\ + c.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\x08\n\x01\x08\x12\x03\ + \x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\x12\x03\ + \x13\0a\n\t\n\x02\x08\x0b\x12\x03\x13\0a\n\x08\n\x01\x08\x12\x03\x14\0\"\ + \n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\02\n\t\n\ + \x02\x08\x08\x12\x03\x15\02\n\x08\n\x01\x08\x12\x03\x16\09\n\t\n\x02\x08\ + \x01\x12\x03\x16\09\n\x91\x03\n\x02\x04\0\x12\x05\x20\0\x9d\x01\x01\x1a\ + \x83\x03\x20Distribution\x20represents\x20a\x20frequency\x20distribution\ + \x20of\x20double-valued\x20sample\n\x20points.\x20It\x20contains\x20the\ + \x20size\x20of\x20the\x20population\x20of\x20sample\x20points\x20plus\n\ + \x20additional\x20optional\x20information:\n\n\x20\x20\x20-\x20the\x20ar\ + ithmetic\x20mean\x20of\x20the\x20samples\n\x20\x20\x20-\x20the\x20minimu\ + m\x20and\x20maximum\x20of\x20the\x20samples\n\x20\x20\x20-\x20the\x20sum\ + -squared-deviation\x20of\x20the\x20samples,\x20used\x20to\x20compute\x20\ + variance\n\x20\x20\x20-\x20a\x20histogram\x20of\x20the\x20values\x20of\ + \x20the\x20sample\x20points\n\n\n\n\x03\x04\0\x01\x12\x03\x20\x08\x14\n7\ + \n\x04\x04\0\x03\0\x12\x04\"\x022\x03\x1a)\x20Describing\x20buckets\x20w\ + ith\x20constant\x20width.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\"\n\x17\ + \n\xc1\x01\n\x06\x04\0\x03\0\x02\0\x12\x03&\x04!\x1a\xb1\x01\x20The\x20n\ + umber\x20of\x20finite\x20buckets.\x20With\x20the\x20underflow\x20and\x20\ + overflow\x20buckets,\n\x20the\x20total\x20number\x20of\x20buckets\x20is\ + \x20`num_finite_buckets`\x20+\x202.\n\x20See\x20comments\x20on\x20`bucke\ + t_options`\x20for\x20details.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\ + \x03&\x04\t\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03&\n\x1c\n\x0e\n\x07\ + \x04\0\x03\0\x02\0\x03\x12\x03&\x1f\x20\n\xc1\x01\n\x06\x04\0\x03\0\x02\ + \x01\x12\x03,\x04\x15\x1a\xb1\x01\x20The\x20i'th\x20linear\x20bucket\x20\ + covers\x20the\x20interval\n\x20\x20\x20[offset\x20+\x20(i-1)\x20*\x20wid\ + th,\x20offset\x20+\x20i\x20*\x20width)\n\x20where\x20i\x20ranges\x20from\ + \x201\x20to\x20num_finite_buckets,\x20inclusive.\n\x20Must\x20be\x20stri\ + ctly\x20positive.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03,\x04\n\n\ + \x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03,\x0b\x10\n\x0e\n\x07\x04\0\ + \x03\0\x02\x01\x03\x12\x03,\x13\x14\n\xa5\x01\n\x06\x04\0\x03\0\x02\x02\ + \x12\x031\x04\x16\x1a\x95\x01\x20The\x20i'th\x20linear\x20bucket\x20cove\ + rs\x20the\x20interval\n\x20\x20\x20[offset\x20+\x20(i-1)\x20*\x20width,\ + \x20offset\x20+\x20i\x20*\x20width)\n\x20where\x20i\x20ranges\x20from\ + \x201\x20to\x20num_finite_buckets,\x20inclusive.\n\n\x0e\n\x07\x04\0\x03\ + \0\x02\x02\x05\x12\x031\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\ + \x031\x0b\x11\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x031\x14\x15\nD\n\ + \x04\x04\0\x03\x01\x12\x045\x02F\x03\x1a6\x20Describing\x20buckets\x20wi\ + th\x20exponentially\x20growing\x20width.\n\n\x0c\n\x05\x04\0\x03\x01\x01\ + \x12\x035\n\x1c\n\xc1\x01\n\x06\x04\0\x03\x01\x02\0\x12\x039\x04!\x1a\ + \xb1\x01\x20The\x20number\x20of\x20finite\x20buckets.\x20With\x20the\x20\ + underflow\x20and\x20overflow\x20buckets,\n\x20the\x20total\x20number\x20\ + of\x20buckets\x20is\x20`num_finite_buckets`\x20+\x202.\n\x20See\x20comme\ + nts\x20on\x20`bucket_options`\x20for\x20details.\n\n\x0e\n\x07\x04\0\x03\ + \x01\x02\0\x05\x12\x039\x04\t\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\ + \x039\n\x1c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x039\x1f\x20\n\xcd\ + \x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03?\x04\x1d\x1a\xbd\x01\x20The\x20\ + i'th\x20exponential\x20bucket\x20covers\x20the\x20interval\n\x20\x20\x20\ + [scale\x20*\x20growth_factor^(i-1),\x20scale\x20*\x20growth_factor^i)\n\ + \x20where\x20i\x20ranges\x20from\x201\x20to\x20num_finite_buckets\x20inc\ + lusive.\n\x20Must\x20be\x20larger\x20than\x201.0.\n\n\x0e\n\x07\x04\0\ + \x03\x01\x02\x01\x05\x12\x03?\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\ + \x01\x12\x03?\x0b\x18\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03?\x1b\ + \x1c\n\xc1\x01\n\x06\x04\0\x03\x01\x02\x02\x12\x03E\x04\x15\x1a\xb1\x01\ + \x20The\x20i'th\x20exponential\x20bucket\x20covers\x20the\x20interval\n\ + \x20\x20\x20[scale\x20*\x20growth_factor^(i-1),\x20scale\x20*\x20growth_\ + factor^i)\n\x20where\x20i\x20ranges\x20from\x201\x20to\x20num_finite_buc\ + kets\x20inclusive.\n\x20Must\x20be\x20>\x200.\n\n\x0e\n\x07\x04\0\x03\ + \x01\x02\x02\x05\x12\x03E\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x01\ + \x12\x03E\x0b\x10\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x03E\x13\x14\ + \nF\n\x04\x04\0\x03\x02\x12\x04I\x02Z\x03\x1a8\x20Describing\x20buckets\ + \x20with\x20arbitrary\x20user-provided\x20width.\n\n\x0c\n\x05\x04\0\x03\ + \x02\x01\x12\x03I\n\x19\n\xec\x05\n\x06\x04\0\x03\x02\x02\0\x12\x03Y\x04\ + \x1f\x1a\xdc\x05\x20'bound'\x20is\x20a\x20list\x20of\x20strictly\x20incr\ + easing\x20boundaries\x20between\n\x20buckets.\x20Note\x20that\x20a\x20li\ + st\x20of\x20length\x20N-1\x20defines\x20N\x20buckets\x20because\n\x20of\ + \x20fenceposting.\x20See\x20comments\x20on\x20`bucket_options`\x20for\ + \x20details.\n\n\x20The\x20i'th\x20finite\x20bucket\x20covers\x20the\x20\ + interval\n\x20\x20\x20[bound[i-1],\x20bound[i])\n\x20where\x20i\x20range\ + s\x20from\x201\x20to\x20bound_size()\x20-\x201.\x20Note\x20that\x20there\ + \x20are\x20no\n\x20finite\x20buckets\x20at\x20all\x20if\x20'bound'\x20on\ + ly\x20contains\x20a\x20single\x20element;\x20in\n\x20that\x20special\x20\ + case\x20the\x20single\x20bound\x20defines\x20the\x20boundary\x20between\ + \x20the\n\x20underflow\x20and\x20overflow\x20buckets.\n\n\x20bucket\x20n\ + umber\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20lower\x20bound\x20\x20\x20\x20upper\x20bound\n\x20\x20i\x20=\ + =\x200\x20(underflow)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20-inf\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bound[i]\n\x20\ + \x200\x20<\x20i\x20<\x20bound_size()\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20bound[i-1]\x20\x20\x20\x20\x20bound[i]\n\x20\x20i\x20==\x20b\ + ound_size()\x20(overflow)\x20\x20\x20\x20bound[i-1]\x20\x20\x20\x20\x20+\ + inf\n\n\x0e\n\x07\x04\0\x03\x02\x02\0\x04\x12\x03Y\x04\x0c\n\x0e\n\x07\ + \x04\0\x03\x02\x02\0\x05\x12\x03Y\r\x13\n\x0e\n\x07\x04\0\x03\x02\x02\0\ + \x01\x12\x03Y\x14\x1a\n\x0e\n\x07\x04\0\x03\x02\x02\0\x03\x12\x03Y\x1d\ + \x1e\nM\n\x04\x04\0\x02\0\x12\x03]\x02\x12\x1a@\x20The\x20total\x20numbe\ + r\x20of\x20samples\x20in\x20the\x20distribution.\x20Must\x20be\x20>=\x20\ + 0.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03]\x02\x07\n\x0c\n\x05\x04\0\x02\ + \0\x01\x12\x03]\x08\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03]\x10\x11\nx\n\ + \x04\x04\0\x02\x01\x12\x03a\x02\x12\x1ak\x20The\x20arithmetic\x20mean\ + \x20of\x20the\x20samples\x20in\x20the\x20distribution.\x20If\x20`count`\ + \x20is\n\x20zero\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\x0c\ + \n\x05\x04\0\x02\x01\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x03a\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03a\x10\x11\nS\n\x04\ + \x04\0\x02\x02\x12\x03d\x02\x15\x1aF\x20The\x20minimum\x20of\x20the\x20p\ + opulation\x20of\x20values.\x20Ignored\x20if\x20`count`\x20is\x20zero.\n\ + \n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03d\t\x10\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03d\x13\x14\n\ + S\n\x04\x04\0\x02\x03\x12\x03g\x02\x15\x1aF\x20The\x20maximum\x20of\x20t\ + he\x20population\x20of\x20values.\x20Ignored\x20if\x20`count`\x20is\x20z\ + ero.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03g\x02\x08\n\x0c\n\x05\x04\0\ + \x02\x03\x01\x12\x03g\t\x10\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03g\x13\ + \x14\n\xe0\x01\n\x04\x04\0\x02\x04\x12\x03m\x02&\x1a\xd2\x01\x20The\x20s\ + um\x20of\x20squared\x20deviations\x20from\x20the\x20mean:\n\x20\x20\x20S\ + um[i=1..count]((x_i\x20-\x20mean)^2)\n\x20where\x20each\x20x_i\x20is\x20\ + a\x20sample\x20values.\x20If\x20`count`\x20is\x20zero\x20then\x20this\ + \x20field\n\x20must\x20be\x20zero,\x20otherwise\x20validation\x20of\x20t\ + he\x20request\x20fails.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03m\x02\x08\ + \n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03m\t!\n\x0c\n\x05\x04\0\x02\x04\x03\ + \x12\x03m$%\n\xb8\x04\n\x04\x04\0\x02\x05\x12\x03z\x02#\x1a\xaa\x04\x20T\ + he\x20number\x20of\x20samples\x20in\x20each\x20histogram\x20bucket.\x20`\ + bucket_counts`\x20are\n\x20optional.\x20If\x20present,\x20they\x20must\ + \x20sum\x20to\x20the\x20`count`\x20value.\n\n\x20The\x20buckets\x20are\ + \x20defined\x20below\x20in\x20`bucket_option`.\x20There\x20are\x20N\x20b\ + uckets.\n\x20`bucket_counts[0]`\x20is\x20the\x20number\x20of\x20samples\ + \x20in\x20the\x20underflow\x20bucket.\n\x20`bucket_counts[1]`\x20to\x20`\ + bucket_counts[N-1]`\x20are\x20the\x20numbers\x20of\x20samples\n\x20in\ + \x20each\x20of\x20the\x20finite\x20buckets.\x20And\x20`bucket_counts[N]\ + \x20is\x20the\x20number\n\x20of\x20samples\x20in\x20the\x20overflow\x20b\ + ucket.\x20See\x20the\x20comments\x20of\x20`bucket_option`\n\x20below\x20\ + for\x20more\x20details.\n\n\x20Any\x20suffix\x20of\x20trailing\x20zeros\ + \x20may\x20be\x20omitted.\n\n\x0c\n\x05\x04\0\x02\x05\x04\x12\x03z\x02\n\ + \n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03z\x0b\x10\n\x0c\n\x05\x04\0\x02\ + \x05\x01\x12\x03z\x11\x1e\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03z!\"\n\ + \xf2\x08\n\x04\x04\0\x08\0\x12\x06\x93\x01\x02\x9c\x01\x03\x1a\xe1\x08\ + \x20Defines\x20the\x20buckets\x20in\x20the\x20histogram.\x20`bucket_opti\ + on`\x20and\x20`bucket_counts`\n\x20must\x20be\x20both\x20set,\x20or\x20b\ + oth\x20unset.\n\n\x20Buckets\x20are\x20numbered\x20in\x20the\x20range\ + \x20of\x20[0,\x20N],\x20with\x20a\x20total\x20of\x20N+1\x20buckets.\n\ + \x20There\x20must\x20be\x20at\x20least\x20two\x20buckets\x20(a\x20single\ + -bucket\x20histogram\x20gives\n\x20no\x20information\x20that\x20isn't\ + \x20already\x20provided\x20by\x20`count`).\n\n\x20The\x20first\x20bucket\ + \x20is\x20the\x20underflow\x20bucket\x20which\x20has\x20a\x20lower\x20bo\ + und\n\x20of\x20-inf.\x20The\x20last\x20bucket\x20is\x20the\x20overflow\ + \x20bucket\x20which\x20has\x20an\n\x20upper\x20bound\x20of\x20+inf.\x20A\ + ll\x20other\x20buckets\x20(if\x20any)\x20are\x20called\x20\"finite\"\n\ + \x20buckets\x20because\x20they\x20have\x20finite\x20lower\x20and\x20uppe\ + r\x20bounds.\x20As\x20described\n\x20below,\x20there\x20are\x20three\x20\ + ways\x20to\x20define\x20the\x20finite\x20buckets.\n\n\x20\x20\x20(1)\x20\ + Buckets\x20with\x20constant\x20width.\n\x20\x20\x20(2)\x20Buckets\x20wit\ + h\x20exponentially\x20growing\x20widths.\n\x20\x20\x20(3)\x20Buckets\x20\ + with\x20arbitrary\x20user-provided\x20widths.\n\n\x20In\x20all\x20cases,\ + \x20the\x20buckets\x20cover\x20the\x20entire\x20real\x20number\x20line\ + \x20(-inf,\n\x20+inf).\x20Bucket\x20upper\x20bounds\x20are\x20exclusive\ + \x20and\x20lower\x20bounds\x20are\n\x20inclusive.\x20The\x20upper\x20bou\ + nd\x20of\x20the\x20underflow\x20bucket\x20is\x20equal\x20to\x20the\n\x20\ + lower\x20bound\x20of\x20the\x20smallest\x20finite\x20bucket;\x20the\x20l\ + ower\x20bound\x20of\x20the\n\x20overflow\x20bucket\x20is\x20equal\x20to\ + \x20the\x20upper\x20bound\x20of\x20the\x20largest\x20finite\n\x20bucket.\ + \n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\x93\x01\x08\x15\n,\n\x04\x04\0\x02\ + \x06\x12\x04\x95\x01\x04%\x1a\x1e\x20Buckets\x20with\x20constant\x20widt\ + h.\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\x95\x01\x04\x11\n\r\n\x05\x04\0\ + \x02\x06\x01\x12\x04\x95\x01\x12\x20\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\ + \x95\x01#$\n9\n\x04\x04\0\x02\x07\x12\x04\x98\x01\x04/\x1a+\x20Buckets\ + \x20with\x20exponentially\x20growing\x20width.\n\n\r\n\x05\x04\0\x02\x07\ + \x06\x12\x04\x98\x01\x04\x16\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\x98\x01\ + \x17*\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\x98\x01-.\n;\n\x04\x04\0\x02\ + \x08\x12\x04\x9b\x01\x04)\x1a-\x20Buckets\x20with\x20arbitrary\x20user-p\ + rovided\x20width.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\x9b\x01\x04\x13\ + \n\r\n\x05\x04\0\x02\x08\x01\x12\x04\x9b\x01\x14$\n\r\n\x05\x04\0\x02\ + \x08\x03\x12\x04\x9b\x01'(b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(Distribution::generated_message_descriptor_data()); + messages.push(distribution::LinearBuckets::generated_message_descriptor_data()); + messages.push(distribution::ExponentialBuckets::generated_message_descriptor_data()); + messages.push(distribution::ExplicitBuckets::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/http_request.rs b/googleapis-raw/src/api/servicecontrol/v1/http_request.rs deleted file mode 100644 index 1b51e34..0000000 --- a/googleapis-raw/src/api/servicecontrol/v1/http_request.rs +++ /dev/null @@ -1,869 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/api/servicecontrol/v1/http_request.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct HttpRequest { - // message fields - pub request_method: ::std::string::String, - pub request_url: ::std::string::String, - pub request_size: i64, - pub status: i32, - pub response_size: i64, - pub user_agent: ::std::string::String, - pub remote_ip: ::std::string::String, - pub server_ip: ::std::string::String, - pub referer: ::std::string::String, - pub latency: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub cache_lookup: bool, - pub cache_hit: bool, - pub cache_validated_with_origin_server: bool, - pub cache_fill_bytes: i64, - pub protocol: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpRequest { - fn default() -> &'a HttpRequest { - ::default_instance() - } -} - -impl HttpRequest { - pub fn new() -> HttpRequest { - ::std::default::Default::default() - } - - // string request_method = 1; - - - pub fn get_request_method(&self) -> &str { - &self.request_method - } - pub fn clear_request_method(&mut self) { - self.request_method.clear(); - } - - // Param is passed by value, moved - pub fn set_request_method(&mut self, v: ::std::string::String) { - self.request_method = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_method(&mut self) -> &mut ::std::string::String { - &mut self.request_method - } - - // Take field - pub fn take_request_method(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_method, ::std::string::String::new()) - } - - // string request_url = 2; - - - pub fn get_request_url(&self) -> &str { - &self.request_url - } - pub fn clear_request_url(&mut self) { - self.request_url.clear(); - } - - // Param is passed by value, moved - pub fn set_request_url(&mut self, v: ::std::string::String) { - self.request_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_url(&mut self) -> &mut ::std::string::String { - &mut self.request_url - } - - // Take field - pub fn take_request_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_url, ::std::string::String::new()) - } - - // int64 request_size = 3; - - - pub fn get_request_size(&self) -> i64 { - self.request_size - } - pub fn clear_request_size(&mut self) { - self.request_size = 0; - } - - // Param is passed by value, moved - pub fn set_request_size(&mut self, v: i64) { - self.request_size = v; - } - - // int32 status = 4; - - - pub fn get_status(&self) -> i32 { - self.status - } - pub fn clear_status(&mut self) { - self.status = 0; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: i32) { - self.status = v; - } - - // int64 response_size = 5; - - - pub fn get_response_size(&self) -> i64 { - self.response_size - } - pub fn clear_response_size(&mut self) { - self.response_size = 0; - } - - // Param is passed by value, moved - pub fn set_response_size(&mut self, v: i64) { - self.response_size = v; - } - - // string user_agent = 6; - - - pub fn get_user_agent(&self) -> &str { - &self.user_agent - } - pub fn clear_user_agent(&mut self) { - self.user_agent.clear(); - } - - // Param is passed by value, moved - pub fn set_user_agent(&mut self, v: ::std::string::String) { - self.user_agent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_user_agent(&mut self) -> &mut ::std::string::String { - &mut self.user_agent - } - - // Take field - pub fn take_user_agent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.user_agent, ::std::string::String::new()) - } - - // string remote_ip = 7; - - - pub fn get_remote_ip(&self) -> &str { - &self.remote_ip - } - pub fn clear_remote_ip(&mut self) { - self.remote_ip.clear(); - } - - // Param is passed by value, moved - pub fn set_remote_ip(&mut self, v: ::std::string::String) { - self.remote_ip = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_remote_ip(&mut self) -> &mut ::std::string::String { - &mut self.remote_ip - } - - // Take field - pub fn take_remote_ip(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.remote_ip, ::std::string::String::new()) - } - - // string server_ip = 13; - - - pub fn get_server_ip(&self) -> &str { - &self.server_ip - } - pub fn clear_server_ip(&mut self) { - self.server_ip.clear(); - } - - // Param is passed by value, moved - pub fn set_server_ip(&mut self, v: ::std::string::String) { - self.server_ip = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_server_ip(&mut self) -> &mut ::std::string::String { - &mut self.server_ip - } - - // Take field - pub fn take_server_ip(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.server_ip, ::std::string::String::new()) - } - - // string referer = 8; - - - pub fn get_referer(&self) -> &str { - &self.referer - } - pub fn clear_referer(&mut self) { - self.referer.clear(); - } - - // Param is passed by value, moved - pub fn set_referer(&mut self, v: ::std::string::String) { - self.referer = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_referer(&mut self) -> &mut ::std::string::String { - &mut self.referer - } - - // Take field - pub fn take_referer(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.referer, ::std::string::String::new()) - } - - // .google.protobuf.Duration latency = 14; - - - pub fn get_latency(&self) -> &::protobuf::well_known_types::Duration { - self.latency.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_latency(&mut self) { - self.latency.clear(); - } - - pub fn has_latency(&self) -> bool { - self.latency.is_some() - } - - // Param is passed by value, moved - pub fn set_latency(&mut self, v: ::protobuf::well_known_types::Duration) { - self.latency = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_latency(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.latency.is_none() { - self.latency.set_default(); - } - self.latency.as_mut().unwrap() - } - - // Take field - pub fn take_latency(&mut self) -> ::protobuf::well_known_types::Duration { - self.latency.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // bool cache_lookup = 11; - - - pub fn get_cache_lookup(&self) -> bool { - self.cache_lookup - } - pub fn clear_cache_lookup(&mut self) { - self.cache_lookup = false; - } - - // Param is passed by value, moved - pub fn set_cache_lookup(&mut self, v: bool) { - self.cache_lookup = v; - } - - // bool cache_hit = 9; - - - pub fn get_cache_hit(&self) -> bool { - self.cache_hit - } - pub fn clear_cache_hit(&mut self) { - self.cache_hit = false; - } - - // Param is passed by value, moved - pub fn set_cache_hit(&mut self, v: bool) { - self.cache_hit = v; - } - - // bool cache_validated_with_origin_server = 10; - - - pub fn get_cache_validated_with_origin_server(&self) -> bool { - self.cache_validated_with_origin_server - } - pub fn clear_cache_validated_with_origin_server(&mut self) { - self.cache_validated_with_origin_server = false; - } - - // Param is passed by value, moved - pub fn set_cache_validated_with_origin_server(&mut self, v: bool) { - self.cache_validated_with_origin_server = v; - } - - // int64 cache_fill_bytes = 12; - - - pub fn get_cache_fill_bytes(&self) -> i64 { - self.cache_fill_bytes - } - pub fn clear_cache_fill_bytes(&mut self) { - self.cache_fill_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_cache_fill_bytes(&mut self, v: i64) { - self.cache_fill_bytes = v; - } - - // string protocol = 15; - - - pub fn get_protocol(&self) -> &str { - &self.protocol - } - pub fn clear_protocol(&mut self) { - self.protocol.clear(); - } - - // Param is passed by value, moved - pub fn set_protocol(&mut self, v: ::std::string::String) { - self.protocol = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_protocol(&mut self) -> &mut ::std::string::String { - &mut self.protocol - } - - // Take field - pub fn take_protocol(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.protocol, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for HttpRequest { - fn is_initialized(&self) -> bool { - for v in &self.latency { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_method)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_url)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.request_size = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.status = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.response_size = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.user_agent)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.remote_ip)?; - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.server_ip)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.referer)?; - }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.latency)?; - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_lookup = tmp; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_hit = tmp; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_validated_with_origin_server = tmp; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.cache_fill_bytes = tmp; - }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.protocol)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.request_method.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.request_method); - } - if !self.request_url.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.request_url); - } - if self.request_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.request_size, ::protobuf::wire_format::WireTypeVarint); - } - if self.status != 0 { - my_size += ::protobuf::rt::value_size(4, self.status, ::protobuf::wire_format::WireTypeVarint); - } - if self.response_size != 0 { - my_size += ::protobuf::rt::value_size(5, self.response_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.user_agent.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.user_agent); - } - if !self.remote_ip.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.remote_ip); - } - if !self.server_ip.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.server_ip); - } - if !self.referer.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.referer); - } - if let Some(ref v) = self.latency.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.cache_lookup != false { - my_size += 2; - } - if self.cache_hit != false { - my_size += 2; - } - if self.cache_validated_with_origin_server != false { - my_size += 2; - } - if self.cache_fill_bytes != 0 { - my_size += ::protobuf::rt::value_size(12, self.cache_fill_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if !self.protocol.is_empty() { - my_size += ::protobuf::rt::string_size(15, &self.protocol); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.request_method.is_empty() { - os.write_string(1, &self.request_method)?; - } - if !self.request_url.is_empty() { - os.write_string(2, &self.request_url)?; - } - if self.request_size != 0 { - os.write_int64(3, self.request_size)?; - } - if self.status != 0 { - os.write_int32(4, self.status)?; - } - if self.response_size != 0 { - os.write_int64(5, self.response_size)?; - } - if !self.user_agent.is_empty() { - os.write_string(6, &self.user_agent)?; - } - if !self.remote_ip.is_empty() { - os.write_string(7, &self.remote_ip)?; - } - if !self.server_ip.is_empty() { - os.write_string(13, &self.server_ip)?; - } - if !self.referer.is_empty() { - os.write_string(8, &self.referer)?; - } - if let Some(ref v) = self.latency.as_ref() { - os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.cache_lookup != false { - os.write_bool(11, self.cache_lookup)?; - } - if self.cache_hit != false { - os.write_bool(9, self.cache_hit)?; - } - if self.cache_validated_with_origin_server != false { - os.write_bool(10, self.cache_validated_with_origin_server)?; - } - if self.cache_fill_bytes != 0 { - os.write_int64(12, self.cache_fill_bytes)?; - } - if !self.protocol.is_empty() { - os.write_string(15, &self.protocol)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HttpRequest { - HttpRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_method", - |m: &HttpRequest| { &m.request_method }, - |m: &mut HttpRequest| { &mut m.request_method }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_url", - |m: &HttpRequest| { &m.request_url }, - |m: &mut HttpRequest| { &mut m.request_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "request_size", - |m: &HttpRequest| { &m.request_size }, - |m: &mut HttpRequest| { &mut m.request_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "status", - |m: &HttpRequest| { &m.status }, - |m: &mut HttpRequest| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "response_size", - |m: &HttpRequest| { &m.response_size }, - |m: &mut HttpRequest| { &mut m.response_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "user_agent", - |m: &HttpRequest| { &m.user_agent }, - |m: &mut HttpRequest| { &mut m.user_agent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "remote_ip", - |m: &HttpRequest| { &m.remote_ip }, - |m: &mut HttpRequest| { &mut m.remote_ip }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "server_ip", - |m: &HttpRequest| { &m.server_ip }, - |m: &mut HttpRequest| { &mut m.server_ip }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "referer", - |m: &HttpRequest| { &m.referer }, - |m: &mut HttpRequest| { &mut m.referer }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "latency", - |m: &HttpRequest| { &m.latency }, - |m: &mut HttpRequest| { &mut m.latency }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_lookup", - |m: &HttpRequest| { &m.cache_lookup }, - |m: &mut HttpRequest| { &mut m.cache_lookup }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_hit", - |m: &HttpRequest| { &m.cache_hit }, - |m: &mut HttpRequest| { &mut m.cache_hit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_validated_with_origin_server", - |m: &HttpRequest| { &m.cache_validated_with_origin_server }, - |m: &mut HttpRequest| { &mut m.cache_validated_with_origin_server }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "cache_fill_bytes", - |m: &HttpRequest| { &m.cache_fill_bytes }, - |m: &mut HttpRequest| { &mut m.cache_fill_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "protocol", - |m: &HttpRequest| { &m.protocol }, - |m: &mut HttpRequest| { &mut m.protocol }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpRequest::new) - } -} - -impl ::protobuf::Clear for HttpRequest { - fn clear(&mut self) { - self.request_method.clear(); - self.request_url.clear(); - self.request_size = 0; - self.status = 0; - self.response_size = 0; - self.user_agent.clear(); - self.remote_ip.clear(); - self.server_ip.clear(); - self.referer.clear(); - self.latency.clear(); - self.cache_lookup = false; - self.cache_hit = false; - self.cache_validated_with_origin_server = false; - self.cache_fill_bytes = 0; - self.protocol.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HttpRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HttpRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n/google/api/servicecontrol/v1/http_request.proto\x12\x1cgoogle.api.ser\ - vicecontrol.v1\x1a\x1egoogle/protobuf/duration.proto\"\xaf\x04\n\x0bHttp\ - Request\x12%\n\x0erequest_method\x18\x01\x20\x01(\tR\rrequestMethod\x12\ - \x1f\n\x0brequest_url\x18\x02\x20\x01(\tR\nrequestUrl\x12!\n\x0crequest_\ - size\x18\x03\x20\x01(\x03R\x0brequestSize\x12\x16\n\x06status\x18\x04\ - \x20\x01(\x05R\x06status\x12#\n\rresponse_size\x18\x05\x20\x01(\x03R\x0c\ - responseSize\x12\x1d\n\nuser_agent\x18\x06\x20\x01(\tR\tuserAgent\x12\ - \x1b\n\tremote_ip\x18\x07\x20\x01(\tR\x08remoteIp\x12\x1b\n\tserver_ip\ - \x18\r\x20\x01(\tR\x08serverIp\x12\x18\n\x07referer\x18\x08\x20\x01(\tR\ - \x07referer\x123\n\x07latency\x18\x0e\x20\x01(\x0b2\x19.google.protobuf.\ - DurationR\x07latency\x12!\n\x0ccache_lookup\x18\x0b\x20\x01(\x08R\x0bcac\ - heLookup\x12\x1b\n\tcache_hit\x18\t\x20\x01(\x08R\x08cacheHit\x12J\n\"ca\ - che_validated_with_origin_server\x18\n\x20\x01(\x08R\x1ecacheValidatedWi\ - thOriginServer\x12(\n\x10cache_fill_bytes\x18\x0c\x20\x01(\x03R\x0ecache\ - FillBytes\x12\x1a\n\x08protocol\x18\x0f\x20\x01(\tR\x08protocolB\xe8\x01\ - \n\x20com.google.api.servicecontrol.v1B\x10HttpRequestProtoP\x01ZJcloud.\ - google.com/go/servicecontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\ - \x02\x1eGoogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\Service\ - Control\\V1\xea\x02!Google::Cloud::ServiceControl::V1J\xdc\x1a\n\x06\x12\ - \x04\x0e\0\\\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyr\ - ight\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\ - \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ - \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ - the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ - icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ - SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ - eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\ - \n\x02\x03\0\x12\x03\x12\0(\n\x08\n\x01\x08\x12\x03\x14\0;\n\t\n\x02\x08\ - %\x12\x03\x14\0;\n\x08\n\x01\x08\x12\x03\x15\0a\n\t\n\x02\x08\x0b\x12\ - \x03\x15\0a\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\ - \0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\x02\x08\x08\x12\x03\x17\01\n\ - \x08\n\x01\x08\x12\x03\x18\09\n\t\n\x02\x08\x01\x12\x03\x18\09\n\x08\n\ - \x01\x08\x12\x03\x19\0;\n\t\n\x02\x08)\x12\x03\x19\0;\n\x08\n\x01\x08\ - \x12\x03\x1a\0:\n\t\n\x02\x08-\x12\x03\x1a\0:\n\xc1\x01\n\x02\x04\0\x12\ - \x04\x1f\0\\\x01\x1a\xb4\x01\x20A\x20common\x20proto\x20for\x20logging\ - \x20HTTP\x20requests.\x20Only\x20contains\x20semantics\n\x20defined\x20b\ - y\x20the\x20HTTP\x20specification.\x20Product-specific\x20logging\n\x20i\ - nformation\x20MUST\x20be\x20defined\x20in\x20a\x20separate\x20message.\n\ - \n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x13\nR\n\x04\x04\0\x02\0\x12\x03!\ - \x02\x1c\x1aE\x20The\x20request\x20method.\x20Examples:\x20`\"GET\"`,\ - \x20`\"HEAD\"`,\x20`\"PUT\"`,\x20`\"POST\"`.\n\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03!\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\t\x17\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03!\x1a\x1b\n\xae\x01\n\x04\x04\0\x02\x01\x12\ - \x03&\x02\x19\x1a\xa0\x01\x20The\x20scheme\x20(http,\x20https),\x20the\ - \x20host\x20name,\x20the\x20path,\x20and\x20the\x20query\n\x20portion\ - \x20of\x20the\x20URL\x20that\x20was\x20requested.\n\x20Example:\x20`\"ht\ - tp://example.com/some/info?color=red\"`.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03&\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03&\t\x14\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03&\x17\x18\nr\n\x04\x04\0\x02\x02\x12\x03*\ - \x02\x19\x1ae\x20The\x20size\x20of\x20the\x20HTTP\x20request\x20message\ - \x20in\x20bytes,\x20including\x20the\x20request\n\x20headers\x20and\x20t\ - he\x20request\x20body.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03*\x02\x07\ - \n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03*\x08\x14\n\x0c\n\x05\x04\0\x02\ - \x02\x03\x12\x03*\x17\x18\n\\\n\x04\x04\0\x02\x03\x12\x03.\x02\x13\x1aO\ - \x20The\x20response\x20code\x20indicating\x20the\x20status\x20of\x20the\ - \x20response.\n\x20Examples:\x20200,\x20404.\n\n\x0c\n\x05\x04\0\x02\x03\ - \x05\x12\x03.\x02\x07\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03.\x08\x0e\n\ - \x0c\n\x05\x04\0\x02\x03\x03\x12\x03.\x11\x12\n\x8f\x01\n\x04\x04\0\x02\ - \x04\x12\x032\x02\x1a\x1a\x81\x01\x20The\x20size\x20of\x20the\x20HTTP\ - \x20response\x20message\x20sent\x20back\x20to\x20the\x20client,\x20in\ - \x20bytes,\n\x20including\x20the\x20response\x20headers\x20and\x20the\ - \x20response\x20body.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x032\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x04\x01\x12\x032\x08\x15\n\x0c\n\x05\x04\0\x02\x04\ - \x03\x12\x032\x18\x19\n\x8c\x01\n\x04\x04\0\x02\x05\x12\x037\x02\x18\x1a\ - \x7f\x20The\x20user\x20agent\x20sent\x20by\x20the\x20client.\x20Example:\ - \n\x20`\"Mozilla/4.0\x20(compatible;\x20MSIE\x206.0;\x20Windows\x2098;\ - \x20Q312461;\x20.NET\n\x20CLR\x201.0.3705)\"`.\n\n\x0c\n\x05\x04\0\x02\ - \x05\x05\x12\x037\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x037\t\x13\n\ - \x0c\n\x05\x04\0\x02\x05\x03\x12\x037\x16\x17\n\x94\x01\n\x04\x04\0\x02\ - \x06\x12\x03;\x02\x17\x1a\x86\x01\x20The\x20IP\x20address\x20(IPv4\x20or\ - \x20IPv6)\x20of\x20the\x20client\x20that\x20issued\x20the\x20HTTP\n\x20r\ - equest.\x20Examples:\x20`\"192.168.1.1\"`,\x20`\"FE80::0202:B3FF:FE1E:83\ - 29\"`.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03;\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x06\x01\x12\x03;\t\x12\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03;\x15\ - \x16\n`\n\x04\x04\0\x02\x07\x12\x03?\x02\x18\x1aS\x20The\x20IP\x20addres\ - s\x20(IPv4\x20or\x20IPv6)\x20of\x20the\x20origin\x20server\x20that\x20th\ - e\x20request\x20was\n\x20sent\x20to.\n\n\x0c\n\x05\x04\0\x02\x07\x05\x12\ - \x03?\x02\x08\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03?\t\x12\n\x0c\n\x05\ - \x04\0\x02\x07\x03\x12\x03?\x15\x17\n\x9c\x01\n\x04\x04\0\x02\x08\x12\ - \x03D\x02\x15\x1a\x8e\x01\x20The\x20referer\x20URL\x20of\x20the\x20reque\ - st,\x20as\x20defined\x20in\n\x20[HTTP/1.1\x20Header\x20Field\n\x20Defini\ - tions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).\n\n\x0c\ - \n\x05\x04\0\x02\x08\x05\x12\x03D\x02\x08\n\x0c\n\x05\x04\0\x02\x08\x01\ - \x12\x03D\t\x10\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03D\x13\x14\n\x81\x01\ - \n\x04\x04\0\x02\t\x12\x03H\x02(\x1at\x20The\x20request\x20processing\ - \x20latency\x20on\x20the\x20server,\x20from\x20the\x20time\x20the\x20req\ - uest\x20was\n\x20received\x20until\x20the\x20response\x20was\x20sent.\n\ - \n\x0c\n\x05\x04\0\x02\t\x06\x12\x03H\x02\x1a\n\x0c\n\x05\x04\0\x02\t\ - \x01\x12\x03H\x1b\"\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03H%'\n;\n\x04\x04\ - \0\x02\n\x12\x03K\x02\x19\x1a.\x20Whether\x20or\x20not\x20a\x20cache\x20\ - lookup\x20was\x20attempted.\n\n\x0c\n\x05\x04\0\x02\n\x05\x12\x03K\x02\ - \x06\n\x0c\n\x05\x04\0\x02\n\x01\x12\x03K\x07\x13\n\x0c\n\x05\x04\0\x02\ - \n\x03\x12\x03K\x16\x18\n\\\n\x04\x04\0\x02\x0b\x12\x03O\x02\x15\x1aO\ - \x20Whether\x20or\x20not\x20an\x20entity\x20was\x20served\x20from\x20cac\ - he\n\x20(with\x20or\x20without\x20validation).\n\n\x0c\n\x05\x04\0\x02\ - \x0b\x05\x12\x03O\x02\x06\n\x0c\n\x05\x04\0\x02\x0b\x01\x12\x03O\x07\x10\ - \n\x0c\n\x05\x04\0\x02\x0b\x03\x12\x03O\x13\x14\n\xa8\x01\n\x04\x04\0\ - \x02\x0c\x12\x03T\x02/\x1a\x9a\x01\x20Whether\x20or\x20not\x20the\x20res\ - ponse\x20was\x20validated\x20with\x20the\x20origin\x20server\x20before\n\ - \x20being\x20served\x20from\x20cache.\x20This\x20field\x20is\x20only\x20\ - meaningful\x20if\x20`cache_hit`\x20is\n\x20True.\n\n\x0c\n\x05\x04\0\x02\ - \x0c\x05\x12\x03T\x02\x06\n\x0c\n\x05\x04\0\x02\x0c\x01\x12\x03T\x07)\n\ - \x0c\n\x05\x04\0\x02\x0c\x03\x12\x03T,.\np\n\x04\x04\0\x02\r\x12\x03X\ - \x02\x1e\x1ac\x20The\x20number\x20of\x20HTTP\x20response\x20bytes\x20ins\ - erted\x20into\x20cache.\x20Set\x20only\x20when\x20a\n\x20cache\x20fill\ - \x20was\x20attempted.\n\n\x0c\n\x05\x04\0\x02\r\x05\x12\x03X\x02\x07\n\ - \x0c\n\x05\x04\0\x02\r\x01\x12\x03X\x08\x18\n\x0c\n\x05\x04\0\x02\r\x03\ - \x12\x03X\x1b\x1d\nY\n\x04\x04\0\x02\x0e\x12\x03[\x02\x17\x1aL\x20Protoc\ - ol\x20used\x20for\x20the\x20request.\x20Examples:\x20\"HTTP/1.1\",\x20\"\ - HTTP/2\",\x20\"websocket\"\n\n\x0c\n\x05\x04\0\x02\x0e\x05\x12\x03[\x02\ - \x08\n\x0c\n\x05\x04\0\x02\x0e\x01\x12\x03[\t\x11\n\x0c\n\x05\x04\0\x02\ - \x0e\x03\x12\x03[\x14\x16b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs b/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs index 2faddb8..60bcc51 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,31 +16,45 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/log_entry.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// An individual log entry. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.LogEntry) +#[derive(PartialEq,Clone,Default,Debug)] pub struct LogEntry { // message fields + /// Required. The log to which this log entry belongs. Examples: `"syslog"`, + /// `"book_log"`. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.LogEntry.name) pub name: ::std::string::String, - pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub severity: super::log_severity::LogSeverity, - pub http_request: ::protobuf::SingularPtrField, - pub trace: ::std::string::String, + /// The time the event described by the log entry occurred. If + /// omitted, defaults to operation start time. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.LogEntry.timestamp) + pub timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The severity of the log entry. The default value is + /// `LogSeverity.DEFAULT`. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.LogEntry.severity) + pub severity: ::protobuf::EnumOrUnknown, + /// A unique ID for the log entry used for deduplication. If omitted, + /// the implementation will generate one based on operation_id. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.LogEntry.insert_id) pub insert_id: ::std::string::String, + /// A set of user-defined (key, value) data that provides additional + /// information about the log entry. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.LogEntry.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub operation: ::protobuf::SingularPtrField, - pub source_location: ::protobuf::SingularPtrField, // message oneof groups - pub payload: ::std::option::Option, + pub payload: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.LogEntry.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a LogEntry { @@ -48,284 +63,93 @@ impl<'a> ::std::default::Default for &'a LogEntry { } } -#[derive(Clone,PartialEq,Debug)] -pub enum LogEntry_oneof_payload { - proto_payload(::protobuf::well_known_types::Any), - text_payload(::std::string::String), - struct_payload(::protobuf::well_known_types::Struct), -} - impl LogEntry { pub fn new() -> LogEntry { ::std::default::Default::default() } - // string name = 10; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp timestamp = 11; - - - pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_timestamp(&mut self) { - self.timestamp.clear(); - } - - pub fn has_timestamp(&self) -> bool { - self.timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.timestamp.is_none() { - self.timestamp.set_default(); - } - self.timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.logging.type.LogSeverity severity = 12; - - - pub fn get_severity(&self) -> super::log_severity::LogSeverity { - self.severity - } - pub fn clear_severity(&mut self) { - self.severity = super::log_severity::LogSeverity::DEFAULT; - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: super::log_severity::LogSeverity) { - self.severity = v; - } - - // .google.api.servicecontrol.v1.HttpRequest http_request = 14; - - - pub fn get_http_request(&self) -> &super::http_request::HttpRequest { - self.http_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_http_request(&mut self) { - self.http_request.clear(); - } - - pub fn has_http_request(&self) -> bool { - self.http_request.is_some() - } - - // Param is passed by value, moved - pub fn set_http_request(&mut self, v: super::http_request::HttpRequest) { - self.http_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_http_request(&mut self) -> &mut super::http_request::HttpRequest { - if self.http_request.is_none() { - self.http_request.set_default(); - } - self.http_request.as_mut().unwrap() - } - - // Take field - pub fn take_http_request(&mut self) -> super::http_request::HttpRequest { - self.http_request.take().unwrap_or_else(|| super::http_request::HttpRequest::new()) - } - - // string trace = 15; - - - pub fn get_trace(&self) -> &str { - &self.trace - } - pub fn clear_trace(&mut self) { - self.trace.clear(); - } - - // Param is passed by value, moved - pub fn set_trace(&mut self, v: ::std::string::String) { - self.trace = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_trace(&mut self) -> &mut ::std::string::String { - &mut self.trace - } - - // Take field - pub fn take_trace(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.trace, ::std::string::String::new()) - } - - // string insert_id = 4; - - - pub fn get_insert_id(&self) -> &str { - &self.insert_id - } - pub fn clear_insert_id(&mut self) { - self.insert_id.clear(); - } - - // Param is passed by value, moved - pub fn set_insert_id(&mut self, v: ::std::string::String) { - self.insert_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_insert_id(&mut self) -> &mut ::std::string::String { - &mut self.insert_id - } - - // Take field - pub fn take_insert_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.insert_id, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.LogEntry.LabelsEntry labels = 13; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - // .google.protobuf.Any proto_payload = 2; - - pub fn get_proto_payload(&self) -> &::protobuf::well_known_types::Any { + pub fn proto_payload(&self) -> &::protobuf::well_known_types::any::Any { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref v)) => v, - _ => <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(log_entry::Payload::ProtoPayload(ref v)) => v, + _ => <::protobuf::well_known_types::any::Any as ::protobuf::Message>::default_instance(), } } + pub fn clear_proto_payload(&mut self) { self.payload = ::std::option::Option::None; } pub fn has_proto_payload(&self) -> bool { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(..)) => true, + ::std::option::Option::Some(log_entry::Payload::ProtoPayload(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_proto_payload(&mut self, v: ::protobuf::well_known_types::Any) { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v)) + pub fn set_proto_payload(&mut self, v: ::protobuf::well_known_types::any::Any) { + self.payload = ::std::option::Option::Some(log_entry::Payload::ProtoPayload(v)) } // Mutable pointer to the field. - pub fn mut_proto_payload(&mut self) -> &mut ::protobuf::well_known_types::Any { - if let ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(_)) = self.payload { + pub fn mut_proto_payload(&mut self) -> &mut ::protobuf::well_known_types::any::Any { + if let ::std::option::Option::Some(log_entry::Payload::ProtoPayload(_)) = self.payload { } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(::protobuf::well_known_types::Any::new())); + self.payload = ::std::option::Option::Some(log_entry::Payload::ProtoPayload(::protobuf::well_known_types::any::Any::new())); } match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(ref mut v)) => v, + ::std::option::Option::Some(log_entry::Payload::ProtoPayload(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_proto_payload(&mut self) -> ::protobuf::well_known_types::Any { + pub fn take_proto_payload(&mut self) -> ::protobuf::well_known_types::any::Any { if self.has_proto_payload() { match self.payload.take() { - ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(v)) => v, + ::std::option::Option::Some(log_entry::Payload::ProtoPayload(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::Any::new() + ::protobuf::well_known_types::any::Any::new() } } // string text_payload = 3; - - pub fn get_text_payload(&self) -> &str { + pub fn text_payload(&self) -> &str { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref v)) => v, + ::std::option::Option::Some(log_entry::Payload::TextPayload(ref v)) => v, _ => "", } } + pub fn clear_text_payload(&mut self) { self.payload = ::std::option::Option::None; } pub fn has_text_payload(&self) -> bool { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(..)) => true, + ::std::option::Option::Some(log_entry::Payload::TextPayload(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_text_payload(&mut self, v: ::std::string::String) { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(v)) + self.payload = ::std::option::Option::Some(log_entry::Payload::TextPayload(v)) } // Mutable pointer to the field. pub fn mut_text_payload(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(_)) = self.payload { + if let ::std::option::Option::Some(log_entry::Payload::TextPayload(_)) = self.payload { } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(::std::string::String::new())); + self.payload = ::std::option::Option::Some(log_entry::Payload::TextPayload(::std::string::String::new())); } match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(ref mut v)) => v, + ::std::option::Option::Some(log_entry::Payload::TextPayload(ref mut v)) => v, _ => panic!(), } } @@ -334,7 +158,7 @@ impl LogEntry { pub fn take_text_payload(&mut self) -> ::std::string::String { if self.has_text_payload() { match self.payload.take() { - ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(v)) => v, + ::std::option::Option::Some(log_entry::Payload::TextPayload(v)) => v, _ => panic!(), } } else { @@ -344,206 +168,158 @@ impl LogEntry { // .google.protobuf.Struct struct_payload = 6; - - pub fn get_struct_payload(&self) -> &::protobuf::well_known_types::Struct { + pub fn struct_payload(&self) -> &::protobuf::well_known_types::struct_::Struct { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref v)) => v, - _ => <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(log_entry::Payload::StructPayload(ref v)) => v, + _ => <::protobuf::well_known_types::struct_::Struct as ::protobuf::Message>::default_instance(), } } + pub fn clear_struct_payload(&mut self) { self.payload = ::std::option::Option::None; } pub fn has_struct_payload(&self) -> bool { match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(..)) => true, + ::std::option::Option::Some(log_entry::Payload::StructPayload(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_struct_payload(&mut self, v: ::protobuf::well_known_types::Struct) { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(v)) + pub fn set_struct_payload(&mut self, v: ::protobuf::well_known_types::struct_::Struct) { + self.payload = ::std::option::Option::Some(log_entry::Payload::StructPayload(v)) } // Mutable pointer to the field. - pub fn mut_struct_payload(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if let ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(_)) = self.payload { + pub fn mut_struct_payload(&mut self) -> &mut ::protobuf::well_known_types::struct_::Struct { + if let ::std::option::Option::Some(log_entry::Payload::StructPayload(_)) = self.payload { } else { - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(::protobuf::well_known_types::Struct::new())); + self.payload = ::std::option::Option::Some(log_entry::Payload::StructPayload(::protobuf::well_known_types::struct_::Struct::new())); } match self.payload { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(ref mut v)) => v, + ::std::option::Option::Some(log_entry::Payload::StructPayload(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_struct_payload(&mut self) -> ::protobuf::well_known_types::Struct { + pub fn take_struct_payload(&mut self) -> ::protobuf::well_known_types::struct_::Struct { if self.has_struct_payload() { match self.payload.take() { - ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(v)) => v, + ::std::option::Option::Some(log_entry::Payload::StructPayload(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::Struct::new() - } - } - - // .google.api.servicecontrol.v1.LogEntryOperation operation = 16; - - - pub fn get_operation(&self) -> &LogEntryOperation { - self.operation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_operation(&mut self) { - self.operation.clear(); - } - - pub fn has_operation(&self) -> bool { - self.operation.is_some() - } - - // Param is passed by value, moved - pub fn set_operation(&mut self, v: LogEntryOperation) { - self.operation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation(&mut self) -> &mut LogEntryOperation { - if self.operation.is_none() { - self.operation.set_default(); - } - self.operation.as_mut().unwrap() - } - - // Take field - pub fn take_operation(&mut self) -> LogEntryOperation { - self.operation.take().unwrap_or_else(|| LogEntryOperation::new()) - } - - // .google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17; - - - pub fn get_source_location(&self) -> &LogEntrySourceLocation { - self.source_location.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source_location(&mut self) { - self.source_location.clear(); - } - - pub fn has_source_location(&self) -> bool { - self.source_location.is_some() - } - - // Param is passed by value, moved - pub fn set_source_location(&mut self, v: LogEntrySourceLocation) { - self.source_location = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_location(&mut self) -> &mut LogEntrySourceLocation { - if self.source_location.is_none() { - self.source_location.set_default(); - } - self.source_location.as_mut().unwrap() - } - - // Take field - pub fn take_source_location(&mut self) -> LogEntrySourceLocation { - self.source_location.take().unwrap_or_else(|| LogEntrySourceLocation::new()) + ::protobuf::well_known_types::struct_::Struct::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(8); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &LogEntry| { &m.name }, + |m: &mut LogEntry| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "timestamp", + |m: &LogEntry| { &m.timestamp }, + |m: &mut LogEntry| { &mut m.timestamp }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "severity", + |m: &LogEntry| { &m.severity }, + |m: &mut LogEntry| { &mut m.severity }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "insert_id", + |m: &LogEntry| { &m.insert_id }, + |m: &mut LogEntry| { &mut m.insert_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &LogEntry| { &m.labels }, + |m: &mut LogEntry| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::any::Any>( + "proto_payload", + LogEntry::has_proto_payload, + LogEntry::proto_payload, + LogEntry::mut_proto_payload, + LogEntry::set_proto_payload, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "text_payload", + LogEntry::has_text_payload, + LogEntry::text_payload, + LogEntry::set_text_payload, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "struct_payload", + LogEntry::has_struct_payload, + LogEntry::struct_payload, + LogEntry::mut_struct_payload, + LogEntry::set_struct_payload, + )); + oneofs.push(log_entry::Payload::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "LogEntry", + fields, + oneofs, + ) } } impl ::protobuf::Message for LogEntry { + const NAME: &'static str = "LogEntry"; + fn is_initialized(&self) -> bool { - for v in &self.timestamp { - if !v.is_initialized() { - return false; - } - }; - for v in &self.http_request { - if !v.is_initialized() { - return false; - } - }; - if let Some(LogEntry_oneof_payload::proto_payload(ref v)) = self.payload { - if !v.is_initialized() { - return false; - } - } - if let Some(LogEntry_oneof_payload::struct_payload(ref v)) = self.payload { - if !v.is_initialized() { - return false; - } - } - for v in &self.operation { - if !v.is_initialized() { - return false; - } - }; - for v in &self.source_location { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 82 => { + self.name = is.read_string()?; }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.severity, 12, &mut self.unknown_fields)? + 90 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.timestamp)?; }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.http_request)?; + 96 => { + self.severity = is.read_enum_or_unknown()?; }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.trace)?; + 34 => { + self.insert_id = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.insert_id)?; - }, - 13 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + 106 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; } - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::proto_payload(is.read_message()?)); + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::text_payload(is.read_string()?)); + 18 => { + self.payload = ::std::option::Option::Some(log_entry::Payload::ProtoPayload(is.read_message()?)); }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.payload = ::std::option::Option::Some(LogEntry_oneof_payload::struct_payload(is.read_message()?)); - }, - 16 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.operation)?; + 26 => { + self.payload = ::std::option::Option::Some(log_entry::Payload::TextPayload(is.read_string()?)); }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_location)?; + 50 => { + self.payload = ::std::option::Option::Some(log_entry::Payload::StructPayload(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -552,930 +328,276 @@ impl ::protobuf::Message for LogEntry { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(10, &self.name); } - if let Some(ref v) = self.timestamp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.severity != super::log_severity::LogSeverity::DEFAULT { - my_size += ::protobuf::rt::enum_size(12, self.severity); - } - if let Some(ref v) = self.http_request.as_ref() { + if let Some(v) = self.timestamp.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.trace.is_empty() { - my_size += ::protobuf::rt::string_size(15, &self.trace); + if self.severity != ::protobuf::EnumOrUnknown::new(super::log_severity::LogSeverity::DEFAULT) { + my_size += ::protobuf::rt::int32_size(12, self.severity.value()); } if !self.insert_id.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.insert_id); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(13, &self.labels); - if let Some(ref v) = self.operation.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.source_location.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; if let ::std::option::Option::Some(ref v) = self.payload { match v { - &LogEntry_oneof_payload::proto_payload(ref v) => { + &log_entry::Payload::ProtoPayload(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &LogEntry_oneof_payload::text_payload(ref v) => { + &log_entry::Payload::TextPayload(ref v) => { my_size += ::protobuf::rt::string_size(3, &v); }, - &LogEntry_oneof_payload::struct_payload(ref v) => { + &log_entry::Payload::StructPayload(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(10, &self.name)?; } - if let Some(ref v) = self.timestamp.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.timestamp.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(11, v, os)?; } - if self.severity != super::log_severity::LogSeverity::DEFAULT { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.severity))?; - } - if let Some(ref v) = self.http_request.as_ref() { - os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.trace.is_empty() { - os.write_string(15, &self.trace)?; + if self.severity != ::protobuf::EnumOrUnknown::new(super::log_severity::LogSeverity::DEFAULT) { + os.write_enum(12, ::protobuf::EnumOrUnknown::value(&self.severity))?; } if !self.insert_id.is_empty() { os.write_string(4, &self.insert_id)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(13, &self.labels, os)?; - if let Some(ref v) = self.operation.as_ref() { - os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.source_location.as_ref() { - os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(106)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; if let ::std::option::Option::Some(ref v) = self.payload { match v { - &LogEntry_oneof_payload::proto_payload(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &log_entry::Payload::ProtoPayload(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }, - &LogEntry_oneof_payload::text_payload(ref v) => { + &log_entry::Payload::TextPayload(ref v) => { os.write_string(3, v)?; }, - &LogEntry_oneof_payload::struct_payload(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &log_entry::Payload::StructPayload(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> LogEntry { LogEntry::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &LogEntry| { &m.name }, - |m: &mut LogEntry| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "timestamp", - |m: &LogEntry| { &m.timestamp }, - |m: &mut LogEntry| { &mut m.timestamp }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "severity", - |m: &LogEntry| { &m.severity }, - |m: &mut LogEntry| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "http_request", - |m: &LogEntry| { &m.http_request }, - |m: &mut LogEntry| { &mut m.http_request }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "trace", - |m: &LogEntry| { &m.trace }, - |m: &mut LogEntry| { &mut m.trace }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "insert_id", - |m: &LogEntry| { &m.insert_id }, - |m: &mut LogEntry| { &mut m.insert_id }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &LogEntry| { &m.labels }, - |m: &mut LogEntry| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Any>( - "proto_payload", - LogEntry::has_proto_payload, - LogEntry::get_proto_payload, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "text_payload", - LogEntry::has_text_payload, - LogEntry::get_text_payload, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Struct>( - "struct_payload", - LogEntry::has_struct_payload, - LogEntry::get_struct_payload, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operation", - |m: &LogEntry| { &m.operation }, - |m: &mut LogEntry| { &mut m.operation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source_location", - |m: &LogEntry| { &m.source_location }, - |m: &mut LogEntry| { &mut m.source_location }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LogEntry", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static LogEntry { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LogEntry::new) - } -} - -impl ::protobuf::Clear for LogEntry { fn clear(&mut self) { self.name.clear(); self.timestamp.clear(); - self.severity = super::log_severity::LogSeverity::DEFAULT; - self.http_request.clear(); - self.trace.clear(); + self.severity = ::protobuf::EnumOrUnknown::new(super::log_severity::LogSeverity::DEFAULT); self.insert_id.clear(); self.labels.clear(); self.payload = ::std::option::Option::None; self.payload = ::std::option::Option::None; self.payload = ::std::option::Option::None; - self.operation.clear(); - self.source_location.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LogEntry { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + self.special_fields.clear(); } -} - -impl ::protobuf::reflect::ProtobufValue for LogEntry { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LogEntryOperation { - // message fields - pub id: ::std::string::String, - pub producer: ::std::string::String, - pub first: bool, - pub last: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} -impl<'a> ::std::default::Default for &'a LogEntryOperation { - fn default() -> &'a LogEntryOperation { - ::default_instance() - } -} - -impl LogEntryOperation { - pub fn new() -> LogEntryOperation { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string producer = 2; - - - pub fn get_producer(&self) -> &str { - &self.producer - } - pub fn clear_producer(&mut self) { - self.producer.clear(); - } - - // Param is passed by value, moved - pub fn set_producer(&mut self, v: ::std::string::String) { - self.producer = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_producer(&mut self) -> &mut ::std::string::String { - &mut self.producer - } - - // Take field - pub fn take_producer(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.producer, ::std::string::String::new()) - } - - // bool first = 3; - - - pub fn get_first(&self) -> bool { - self.first - } - pub fn clear_first(&mut self) { - self.first = false; - } - - // Param is passed by value, moved - pub fn set_first(&mut self, v: bool) { - self.first = v; - } - - // bool last = 4; - - - pub fn get_last(&self) -> bool { - self.last - } - pub fn clear_last(&mut self) { - self.last = false; - } - - // Param is passed by value, moved - pub fn set_last(&mut self, v: bool) { - self.last = v; - } -} - -impl ::protobuf::Message for LogEntryOperation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.first = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.last = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.producer.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.producer); - } - if self.first != false { - my_size += 2; - } - if self.last != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.producer.is_empty() { - os.write_string(2, &self.producer)?; - } - if self.first != false { - os.write_bool(3, self.first)?; - } - if self.last != false { - os.write_bool(4, self.last)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LogEntryOperation { - LogEntryOperation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &LogEntryOperation| { &m.id }, - |m: &mut LogEntryOperation| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "producer", - |m: &LogEntryOperation| { &m.producer }, - |m: &mut LogEntryOperation| { &mut m.producer }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "first", - |m: &LogEntryOperation| { &m.first }, - |m: &mut LogEntryOperation| { &mut m.first }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "last", - |m: &LogEntryOperation| { &m.last }, - |m: &mut LogEntryOperation| { &mut m.last }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LogEntryOperation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static LogEntryOperation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LogEntryOperation::new) + fn default_instance() -> &'static LogEntry { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(LogEntry::new) } } -impl ::protobuf::Clear for LogEntryOperation { - fn clear(&mut self) { - self.id.clear(); - self.producer.clear(); - self.first = false; - self.last = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for LogEntry { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("LogEntry").unwrap()).clone() } } -impl ::std::fmt::Debug for LogEntryOperation { +impl ::std::fmt::Display for LogEntry { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for LogEntryOperation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LogEntrySourceLocation { - // message fields - pub file: ::std::string::String, - pub line: i64, - pub function: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LogEntrySourceLocation { - fn default() -> &'a LogEntrySourceLocation { - ::default_instance() - } +impl ::protobuf::reflect::ProtobufValue for LogEntry { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl LogEntrySourceLocation { - pub fn new() -> LogEntrySourceLocation { - ::std::default::Default::default() - } - - // string file = 1; - - - pub fn get_file(&self) -> &str { - &self.file - } - pub fn clear_file(&mut self) { - self.file.clear(); - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: ::std::string::String) { - self.file = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_file(&mut self) -> &mut ::std::string::String { - &mut self.file - } - - // Take field - pub fn take_file(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.file, ::std::string::String::new()) - } - - // int64 line = 2; +/// Nested message and enums of message `LogEntry` +pub mod log_entry { - - pub fn get_line(&self) -> i64 { - self.line - } - pub fn clear_line(&mut self) { - self.line = 0; - } - - // Param is passed by value, moved - pub fn set_line(&mut self, v: i64) { - self.line = v; - } - - // string function = 3; - - - pub fn get_function(&self) -> &str { - &self.function - } - pub fn clear_function(&mut self) { - self.function.clear(); - } - - // Param is passed by value, moved - pub fn set_function(&mut self, v: ::std::string::String) { - self.function = v; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.servicecontrol.v1.LogEntry.payload) + pub enum Payload { + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.LogEntry.proto_payload) + ProtoPayload(::protobuf::well_known_types::any::Any), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.LogEntry.text_payload) + TextPayload(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.LogEntry.struct_payload) + StructPayload(::protobuf::well_known_types::struct_::Struct), } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_function(&mut self) -> &mut ::std::string::String { - &mut self.function + impl ::protobuf::Oneof for Payload { } - // Take field - pub fn take_function(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.function, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LogEntrySourceLocation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.file)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.line = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.function)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + impl ::protobuf::OneofFull for Payload { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("payload").unwrap()).clone() } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.file.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.file); - } - if self.line != 0 { - my_size += ::protobuf::rt::value_size(2, self.line, ::protobuf::wire_format::WireTypeVarint); - } - if !self.function.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.function); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.file.is_empty() { - os.write_string(1, &self.file)?; - } - if self.line != 0 { - os.write_int64(2, self.line)?; + impl Payload { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("payload") } - if !self.function.is_empty() { - os.write_string(3, &self.function)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LogEntrySourceLocation { - LogEntrySourceLocation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "file", - |m: &LogEntrySourceLocation| { &m.file }, - |m: &mut LogEntrySourceLocation| { &mut m.file }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "line", - |m: &LogEntrySourceLocation| { &m.line }, - |m: &mut LogEntrySourceLocation| { &mut m.line }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "function", - |m: &LogEntrySourceLocation| { &m.function }, - |m: &mut LogEntrySourceLocation| { &mut m.function }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LogEntrySourceLocation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static LogEntrySourceLocation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LogEntrySourceLocation::new) - } -} - -impl ::protobuf::Clear for LogEntrySourceLocation { - fn clear(&mut self) { - self.file.clear(); - self.line = 0; - self.function.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LogEntrySourceLocation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LogEntrySourceLocation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) } } static file_descriptor_proto_data: &'static [u8] = b"\ \n,google/api/servicecontrol/v1/log_entry.proto\x12\x1cgoogle.api.servic\ - econtrol.v1\x1a/google/api/servicecontrol/v1/http_request.proto\x1a&goog\ - le/logging/type/log_severity.proto\x1a\x19google/protobuf/any.proto\x1a\ - \x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\ - \"\xfb\x05\n\x08LogEntry\x12\x12\n\x04name\x18\n\x20\x01(\tR\x04name\x12\ - 8\n\ttimestamp\x18\x0b\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttim\ - estamp\x12<\n\x08severity\x18\x0c\x20\x01(\x0e2\x20.google.logging.type.\ - LogSeverityR\x08severity\x12L\n\x0chttp_request\x18\x0e\x20\x01(\x0b2).g\ - oogle.api.servicecontrol.v1.HttpRequestR\x0bhttpRequest\x12\x14\n\x05tra\ - ce\x18\x0f\x20\x01(\tR\x05trace\x12\x1b\n\tinsert_id\x18\x04\x20\x01(\tR\ - \x08insertId\x12J\n\x06labels\x18\r\x20\x03(\x0b22.google.api.servicecon\ - trol.v1.LogEntry.LabelsEntryR\x06labels\x12;\n\rproto_payload\x18\x02\ - \x20\x01(\x0b2\x14.google.protobuf.AnyH\0R\x0cprotoPayload\x12#\n\x0ctex\ - t_payload\x18\x03\x20\x01(\tH\0R\x0btextPayload\x12@\n\x0estruct_payload\ - \x18\x06\x20\x01(\x0b2\x17.google.protobuf.StructH\0R\rstructPayload\x12\ - M\n\toperation\x18\x10\x20\x01(\x0b2/.google.api.servicecontrol.v1.LogEn\ - tryOperationR\toperation\x12]\n\x0fsource_location\x18\x11\x20\x01(\x0b2\ - 4.google.api.servicecontrol.v1.LogEntrySourceLocationR\x0esourceLocation\ - \x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\ - \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\t\n\x07payload\"\ - i\n\x11LogEntryOperation\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\ - \x1a\n\x08producer\x18\x02\x20\x01(\tR\x08producer\x12\x14\n\x05first\ - \x18\x03\x20\x01(\x08R\x05first\x12\x12\n\x04last\x18\x04\x20\x01(\x08R\ - \x04last\"\\\n\x16LogEntrySourceLocation\x12\x12\n\x04file\x18\x01\x20\ - \x01(\tR\x04file\x12\x12\n\x04line\x18\x02\x20\x01(\x03R\x04line\x12\x1a\ - \n\x08function\x18\x03\x20\x01(\tR\x08functionB\xe5\x01\n\x20com.google.\ - api.servicecontrol.v1B\rLogEntryProtoP\x01ZJcloud.google.com/go/servicec\ - ontrol/apiv1/servicecontrolpb;servicecontrolpb\xaa\x02\x1eGoogle.Cloud.S\ - erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ - ogle::Cloud::ServiceControl::V1J\xec$\n\x06\x12\x04\x0e\0}\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20\ - LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x20\ - 2.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fi\ - le\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20\ - may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\ - \x12\09\n\t\n\x02\x03\x01\x12\x03\x13\00\n\t\n\x02\x03\x02\x12\x03\x14\0\ - #\n\t\n\x02\x03\x03\x12\x03\x15\0&\n\t\n\x02\x03\x04\x12\x03\x16\0)\n\ - \x08\n\x01\x08\x12\x03\x18\0;\n\t\n\x02\x08%\x12\x03\x18\0;\n\x08\n\x01\ - \x08\x12\x03\x19\0a\n\t\n\x02\x08\x0b\x12\x03\x19\0a\n\x08\n\x01\x08\x12\ - \x03\x1a\0\"\n\t\n\x02\x08\n\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\ - \0.\n\t\n\x02\x08\x08\x12\x03\x1b\0.\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\ - \n\x02\x08\x01\x12\x03\x1c\09\n\x08\n\x01\x08\x12\x03\x1d\0;\n\t\n\x02\ - \x08)\x12\x03\x1d\0;\n\x08\n\x01\x08\x12\x03\x1e\0:\n\t\n\x02\x08-\x12\ - \x03\x1e\0:\n&\n\x02\x04\0\x12\x04!\0V\x01\x1a\x1a\x20An\x20individual\ - \x20log\x20entry.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\nf\n\x04\x04\0\ - \x02\0\x12\x03$\x02\x13\x1aY\x20Required.\x20The\x20log\x20to\x20which\ - \x20this\x20log\x20entry\x20belongs.\x20Examples:\x20`\"syslog\"`,\n\x20\ - `\"book_log\"`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03$\x02\x08\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03$\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03$\ - \x10\x12\nu\n\x04\x04\0\x02\x01\x12\x03(\x02+\x1ah\x20The\x20time\x20the\ - \x20event\x20described\x20by\x20the\x20log\x20entry\x20occurred.\x20If\n\ - \x20omitted,\x20defaults\x20to\x20operation\x20start\x20time.\n\n\x0c\n\ - \x05\x04\0\x02\x01\x06\x12\x03(\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x03(\x1c%\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03((*\nZ\n\x04\x04\0\ - \x02\x02\x12\x03,\x020\x1aM\x20The\x20severity\x20of\x20the\x20log\x20en\ - try.\x20The\x20default\x20value\x20is\n\x20`LogSeverity.DEFAULT`.\n\n\ - \x0c\n\x05\x04\0\x02\x02\x06\x12\x03,\x02!\n\x0c\n\x05\x04\0\x02\x02\x01\ - \x12\x03,\"*\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03,-/\nk\n\x04\x04\0\x02\ - \x03\x12\x030\x02\x20\x1a^\x20Optional.\x20Information\x20about\x20the\ - \x20HTTP\x20request\x20associated\x20with\x20this\n\x20log\x20entry,\x20\ - if\x20applicable.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x030\x02\r\n\x0c\n\ - \x05\x04\0\x02\x03\x01\x12\x030\x0e\x1a\n\x0c\n\x05\x04\0\x02\x03\x03\ - \x12\x030\x1d\x1f\n\x9b\x02\n\x04\x04\0\x02\x04\x12\x036\x02\x14\x1a\x8d\ - \x02\x20Optional.\x20Resource\x20name\x20of\x20the\x20trace\x20associate\ - d\x20with\x20the\x20log\x20entry,\x20if\x20any.\n\x20If\x20this\x20field\ - \x20contains\x20a\x20relative\x20resource\x20name,\x20you\x20can\x20assu\ - me\x20the\x20name\x20is\n\x20relative\x20to\x20`//tracing.googleapis.com\ - `.\x20Example:\n\x20`projects/my-projectid/traces/06796866738c859f2f19b7\ - cfb3214824`\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x036\x02\x08\n\x0c\n\x05\ - \x04\0\x02\x04\x01\x12\x036\t\x0e\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x036\ - \x11\x13\n\x8e\x01\n\x04\x04\0\x02\x05\x12\x03:\x02\x17\x1a\x80\x01\x20A\ - \x20unique\x20ID\x20for\x20the\x20log\x20entry\x20used\x20for\x20dedupli\ - cation.\x20If\x20omitted,\n\x20the\x20implementation\x20will\x20generate\ - \x20one\x20based\x20on\x20operation_id.\n\n\x0c\n\x05\x04\0\x02\x05\x05\ - \x12\x03:\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03:\t\x12\n\x0c\n\ - \x05\x04\0\x02\x05\x03\x12\x03:\x15\x16\nq\n\x04\x04\0\x02\x06\x12\x03>\ - \x02\"\x1ad\x20A\x20set\x20of\x20user-defined\x20(key,\x20value)\x20data\ - \x20that\x20provides\x20additional\n\x20information\x20about\x20the\x20l\ - og\x20entry.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03>\x02\x15\n\x0c\n\ - \x05\x04\0\x02\x06\x01\x12\x03>\x16\x1c\n\x0c\n\x05\x04\0\x02\x06\x03\ - \x12\x03>\x1f!\nJ\n\x04\x04\0\x08\0\x12\x04A\x02M\x03\x1a<\x20The\x20log\ - \x20entry\x20payload,\x20which\x20can\x20be\x20one\x20of\x20multiple\x20\ - types.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03A\x08\x0f\n\xba\x01\n\x04\ - \x04\0\x02\x07\x12\x03E\x04*\x1a\xac\x01\x20The\x20log\x20entry\x20paylo\ - ad,\x20represented\x20as\x20a\x20protocol\x20buffer\x20that\x20is\n\x20e\ - xpressed\x20as\x20a\x20JSON\x20object.\x20The\x20only\x20accepted\x20typ\ - e\x20currently\x20is\n\x20[AuditLog][google.cloud.audit.AuditLog].\n\n\ - \x0c\n\x05\x04\0\x02\x07\x06\x12\x03E\x04\x17\n\x0c\n\x05\x04\0\x02\x07\ - \x01\x12\x03E\x18%\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03E()\nN\n\x04\x04\ - \0\x02\x08\x12\x03H\x04\x1c\x1aA\x20The\x20log\x20entry\x20payload,\x20r\ - epresented\x20as\x20a\x20Unicode\x20string\x20(UTF-8).\n\n\x0c\n\x05\x04\ - \0\x02\x08\x05\x12\x03H\x04\n\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03H\x0b\ - \x17\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03H\x1a\x1b\ne\n\x04\x04\0\x02\t\ - \x12\x03L\x04.\x1aX\x20The\x20log\x20entry\x20payload,\x20represented\ - \x20as\x20a\x20structure\x20that\n\x20is\x20expressed\x20as\x20a\x20JSON\ - \x20object.\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03L\x04\x1a\n\x0c\n\x05\ - \x04\0\x02\t\x01\x12\x03L\x1b)\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03L,-\nf\ - \n\x04\x04\0\x02\n\x12\x03Q\x02#\x1aY\x20Optional.\x20Information\x20abo\ - ut\x20an\x20operation\x20associated\x20with\x20the\x20log\x20entry,\x20i\ - f\n\x20applicable.\n\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03Q\x02\x13\n\x0c\ - \n\x05\x04\0\x02\n\x01\x12\x03Q\x14\x1d\n\x0c\n\x05\x04\0\x02\n\x03\x12\ - \x03Q\x20\"\na\n\x04\x04\0\x02\x0b\x12\x03U\x02.\x1aT\x20Optional.\x20So\ - urce\x20code\x20location\x20information\x20associated\x20with\x20the\x20\ - log\x20entry,\n\x20if\x20any.\n\n\x0c\n\x05\x04\0\x02\x0b\x06\x12\x03U\ - \x02\x18\n\x0c\n\x05\x04\0\x02\x0b\x01\x12\x03U\x19(\n\x0c\n\x05\x04\0\ - \x02\x0b\x03\x12\x03U+-\nv\n\x02\x04\x01\x12\x04Z\0i\x01\x1aj\x20Additio\ - nal\x20information\x20about\x20a\x20potentially\x20long-running\x20opera\ - tion\x20with\x20which\n\x20a\x20log\x20entry\x20is\x20associated.\n\n\n\ - \n\x03\x04\x01\x01\x12\x03Z\x08\x19\n\x90\x01\n\x04\x04\x01\x02\0\x12\ - \x03]\x02\x10\x1a\x82\x01\x20Optional.\x20An\x20arbitrary\x20operation\ - \x20identifier.\x20Log\x20entries\x20with\x20the\n\x20same\x20identifier\ - \x20are\x20assumed\x20to\x20be\x20part\x20of\x20the\x20same\x20operation\ - .\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\x01\ - \x02\0\x01\x12\x03]\t\x0b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03]\x0e\x0f\ - \n\xe0\x01\n\x04\x04\x01\x02\x01\x12\x03b\x02\x16\x1a\xd2\x01\x20Optiona\ - l.\x20An\x20arbitrary\x20producer\x20identifier.\x20The\x20combination\ - \x20of\n\x20`id`\x20and\x20`producer`\x20must\x20be\x20globally\x20uniqu\ - e.\x20\x20Examples\x20for\x20`producer`:\n\x20`\"MyDivision.MyBigCompany\ - .com\"`,\x20`\"github.com/MyProject/MyApplication\"`.\n\n\x0c\n\x05\x04\ - \x01\x02\x01\x05\x12\x03b\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\ - \x03b\t\x11\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03b\x14\x15\nZ\n\x04\ - \x04\x01\x02\x02\x12\x03e\x02\x11\x1aM\x20Optional.\x20Set\x20this\x20to\ - \x20True\x20if\x20this\x20is\x20the\x20first\x20log\x20entry\x20in\x20th\ - e\x20operation.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03e\x02\x06\n\x0c\ - \n\x05\x04\x01\x02\x02\x01\x12\x03e\x07\x0c\n\x0c\n\x05\x04\x01\x02\x02\ - \x03\x12\x03e\x0f\x10\nY\n\x04\x04\x01\x02\x03\x12\x03h\x02\x10\x1aL\x20\ - Optional.\x20Set\x20this\x20to\x20True\x20if\x20this\x20is\x20the\x20las\ - t\x20log\x20entry\x20in\x20the\x20operation.\n\n\x0c\n\x05\x04\x01\x02\ - \x03\x05\x12\x03h\x02\x06\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03h\x07\ - \x0b\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03h\x0e\x0f\na\n\x02\x04\x02\ - \x12\x04m\0}\x01\x1aU\x20Additional\x20information\x20about\x20the\x20so\ - urce\x20code\x20location\x20that\x20produced\x20the\x20log\n\x20entry.\n\ - \n\n\n\x03\x04\x02\x01\x12\x03m\x08\x1e\n\x88\x01\n\x04\x04\x02\x02\0\ - \x12\x03p\x02\x12\x1a{\x20Optional.\x20Source\x20file\x20name.\x20Depend\ - ing\x20on\x20the\x20runtime\x20environment,\x20this\n\x20might\x20be\x20\ - a\x20simple\x20name\x20or\x20a\x20fully-qualified\x20name.\n\n\x0c\n\x05\ - \x04\x02\x02\0\x05\x12\x03p\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ - \x03p\t\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03p\x10\x11\ne\n\x04\x04\ - \x02\x02\x01\x12\x03t\x02\x11\x1aX\x20Optional.\x20Line\x20within\x20the\ - \x20source\x20file.\x201-based;\x200\x20indicates\x20no\x20line\x20numbe\ - r\n\x20available.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03t\x02\x07\n\ - \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03t\x08\x0c\n\x0c\n\x05\x04\x02\x02\ - \x01\x03\x12\x03t\x0f\x10\n\x87\x03\n\x04\x04\x02\x02\x02\x12\x03|\x02\ - \x16\x1a\xf9\x02\x20Optional.\x20Human-readable\x20name\x20of\x20the\x20\ - function\x20or\x20method\x20being\x20invoked,\x20with\n\x20optional\x20c\ - ontext\x20such\x20as\x20the\x20class\x20or\x20package\x20name.\x20This\ - \x20information\x20may\x20be\n\x20used\x20in\x20contexts\x20such\x20as\ - \x20the\x20logs\x20viewer,\x20where\x20a\x20file\x20and\x20line\x20numbe\ - r\x20are\n\x20less\x20meaningful.\x20The\x20format\x20can\x20vary\x20by\ - \x20language.\x20For\x20example:\n\x20`qual.if.ied.Class.method`\x20(Jav\ - a),\x20`dir/package.func`\x20(Go),\x20`function`\n\x20(Python).\n\n\x0c\ - \n\x05\x04\x02\x02\x02\x05\x12\x03|\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\ - \x01\x12\x03|\t\x11\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03|\x14\x15b\ - \x06proto3\ + econtrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a&google/logging/type/\ + log_severity.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protob\ + uf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x03\n\x08Lo\ + gEntry\x12\x12\n\x04name\x18\n\x20\x01(\tR\x04name\x128\n\ttimestamp\x18\ + \x0b\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestamp\x12<\n\x08s\ + everity\x18\x0c\x20\x01(\x0e2\x20.google.logging.type.LogSeverityR\x08se\ + verity\x12\x1b\n\tinsert_id\x18\x04\x20\x01(\tR\x08insertId\x12J\n\x06la\ + bels\x18\r\x20\x03(\x0b22.google.api.servicecontrol.v1.LogEntry.LabelsEn\ + tryR\x06labels\x12;\n\rproto_payload\x18\x02\x20\x01(\x0b2\x14.google.pr\ + otobuf.AnyH\0R\x0cprotoPayload\x12#\n\x0ctext_payload\x18\x03\x20\x01(\t\ + H\0R\x0btextPayload\x12@\n\x0estruct_payload\x18\x06\x20\x01(\x0b2\x17.g\ + oogle.protobuf.StructH\0R\rstructPayload\x1a9\n\x0bLabelsEntry\x12\x10\n\ + \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\t\ + R\x05value:\x028\x01B\t\n\x07payloadB\x7f\n\x20com.google.api.servicecon\ + trol.v1B\rLogEntryProtoP\x01ZJgoogle.golang.org/genproto/googleapis/api/\ + servicecontrol/v1;servicecontrolJ\xee\x10\n\x06\x12\x04\x0e\0A\x01\n\xbd\ + \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\ + \x20Inc.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ + ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ + \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ + \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ + riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ + \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ + RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ + \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\ + \x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\00\n\t\n\x02\x03\x02\x12\ + \x03\x14\0#\n\t\n\x02\x03\x03\x12\x03\x15\0&\n\t\n\x02\x03\x04\x12\x03\ + \x16\0)\n\x08\n\x01\x08\x12\x03\x18\0a\n\t\n\x02\x08\x0b\x12\x03\x18\0a\ + \n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\ + \x01\x08\x12\x03\x1a\0.\n\t\n\x02\x08\x08\x12\x03\x1a\0.\n\x08\n\x01\x08\ + \x12\x03\x1b\09\n\t\n\x02\x08\x01\x12\x03\x1b\09\n&\n\x02\x04\0\x12\x04\ + \x1e\0A\x01\x1a\x1a\x20An\x20individual\x20log\x20entry.\n\n\n\n\x03\x04\ + \0\x01\x12\x03\x1e\x08\x10\nf\n\x04\x04\0\x02\0\x12\x03!\x02\x13\x1aY\ + \x20Required.\x20The\x20log\x20to\x20which\x20this\x20log\x20entry\x20be\ + longs.\x20Examples:\x20`\"syslog\"`,\n\x20`\"book_log\"`.\n\n\x0c\n\x05\ + \x04\0\x02\0\x05\x12\x03!\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\t\ + \r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x10\x12\nu\n\x04\x04\0\x02\x01\ + \x12\x03%\x02+\x1ah\x20The\x20time\x20the\x20event\x20described\x20by\ + \x20the\x20log\x20entry\x20occurred.\x20If\n\x20omitted,\x20defaults\x20\ + to\x20operation\x20start\x20time.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\ + \x03%\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03%\x1c%\n\x0c\n\x05\ + \x04\0\x02\x01\x03\x12\x03%(*\nZ\n\x04\x04\0\x02\x02\x12\x03)\x020\x1aM\ + \x20The\x20severity\x20of\x20the\x20log\x20entry.\x20The\x20default\x20v\ + alue\x20is\n\x20`LogSeverity.DEFAULT`.\n\n\x0c\n\x05\x04\0\x02\x02\x06\ + \x12\x03)\x02!\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03)\"*\n\x0c\n\x05\x04\ + \0\x02\x02\x03\x12\x03)-/\n\x8e\x01\n\x04\x04\0\x02\x03\x12\x03-\x02\x17\ + \x1a\x80\x01\x20A\x20unique\x20ID\x20for\x20the\x20log\x20entry\x20used\ + \x20for\x20deduplication.\x20If\x20omitted,\n\x20the\x20implementation\ + \x20will\x20generate\x20one\x20based\x20on\x20operation_id.\n\n\x0c\n\ + \x05\x04\0\x02\x03\x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\ + \x12\x03-\t\x12\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03-\x15\x16\nq\n\x04\ + \x04\0\x02\x04\x12\x031\x02\"\x1ad\x20A\x20set\x20of\x20user-defined\x20\ + (key,\x20value)\x20data\x20that\x20provides\x20additional\n\x20informati\ + on\x20about\x20the\x20log\x20entry.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\ + \x031\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x031\x16\x1c\n\x0c\n\x05\ + \x04\0\x02\x04\x03\x12\x031\x1f!\nJ\n\x04\x04\0\x08\0\x12\x044\x02@\x03\ + \x1a<\x20The\x20log\x20entry\x20payload,\x20which\x20can\x20be\x20one\ + \x20of\x20multiple\x20types.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x034\x08\ + \x0f\n\xba\x01\n\x04\x04\0\x02\x05\x12\x038\x04*\x1a\xac\x01\x20The\x20l\ + og\x20entry\x20payload,\x20represented\x20as\x20a\x20protocol\x20buffer\ + \x20that\x20is\n\x20expressed\x20as\x20a\x20JSON\x20object.\x20The\x20on\ + ly\x20accepted\x20type\x20currently\x20is\n\x20[AuditLog][google.cloud.a\ + udit.AuditLog].\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x038\x04\x17\n\x0c\n\ + \x05\x04\0\x02\x05\x01\x12\x038\x18%\n\x0c\n\x05\x04\0\x02\x05\x03\x12\ + \x038()\nN\n\x04\x04\0\x02\x06\x12\x03;\x04\x1c\x1aA\x20The\x20log\x20en\ + try\x20payload,\x20represented\x20as\x20a\x20Unicode\x20string\x20(UTF-8\ + ).\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03;\x04\n\n\x0c\n\x05\x04\0\x02\ + \x06\x01\x12\x03;\x0b\x17\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03;\x1a\x1b\ + \ne\n\x04\x04\0\x02\x07\x12\x03?\x04.\x1aX\x20The\x20log\x20entry\x20pay\ + load,\x20represented\x20as\x20a\x20structure\x20that\n\x20is\x20expresse\ + d\x20as\x20a\x20JSON\x20object.\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03?\ + \x04\x1a\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03?\x1b)\n\x0c\n\x05\x04\0\ + \x02\x07\x03\x12\x03?,-b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(5); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::log_severity::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(LogEntry::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs b/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs index fc943ab..8533206 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,25 +16,41 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/metric_value.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Represents a single metric value. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.MetricValue) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MetricValue { // message fields + /// The labels describing the metric value. + /// See comments on + /// [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] + /// for the overriding relationship. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.MetricValue.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The start of the time period over which this metric value's measurement + /// applies. The time period has different semantics for different metric + /// types (cumulative, delta, and gauge). See the metric definition + /// documentation in the service configuration for details. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.MetricValue.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The end of the time period over which this metric value's measurement + /// applies. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.MetricValue.end_time) + pub end_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // message oneof groups - pub value: ::std::option::Option, + pub value: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.MetricValue.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MetricValue { @@ -42,219 +59,119 @@ impl<'a> ::std::default::Default for &'a MetricValue { } } -#[derive(Clone,PartialEq,Debug)] -pub enum MetricValue_oneof_value { - bool_value(bool), - int64_value(i64), - double_value(f64), - string_value(::std::string::String), - distribution_value(super::distribution::Distribution), -} - impl MetricValue { pub fn new() -> MetricValue { ::std::default::Default::default() } - // repeated .google.api.servicecontrol.v1.MetricValue.LabelsEntry labels = 1; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - // bool bool_value = 4; - - pub fn get_bool_value(&self) -> bool { + pub fn bool_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::bool_value(v)) => v, + ::std::option::Option::Some(metric_value::Value::BoolValue(v)) => v, _ => false, } } + pub fn clear_bool_value(&mut self) { self.value = ::std::option::Option::None; } pub fn has_bool_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::bool_value(..)) => true, + ::std::option::Option::Some(metric_value::Value::BoolValue(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_bool_value(&mut self, v: bool) { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::bool_value(v)) + self.value = ::std::option::Option::Some(metric_value::Value::BoolValue(v)) } // int64 int64_value = 5; - - pub fn get_int64_value(&self) -> i64 { + pub fn int64_value(&self) -> i64 { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::int64_value(v)) => v, + ::std::option::Option::Some(metric_value::Value::Int64Value(v)) => v, _ => 0, } } + pub fn clear_int64_value(&mut self) { self.value = ::std::option::Option::None; } pub fn has_int64_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::int64_value(..)) => true, + ::std::option::Option::Some(metric_value::Value::Int64Value(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_int64_value(&mut self, v: i64) { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::int64_value(v)) + self.value = ::std::option::Option::Some(metric_value::Value::Int64Value(v)) } // double double_value = 6; - - pub fn get_double_value(&self) -> f64 { + pub fn double_value(&self) -> f64 { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::double_value(v)) => v, + ::std::option::Option::Some(metric_value::Value::DoubleValue(v)) => v, _ => 0., } } + pub fn clear_double_value(&mut self) { self.value = ::std::option::Option::None; } pub fn has_double_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::double_value(..)) => true, + ::std::option::Option::Some(metric_value::Value::DoubleValue(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_double_value(&mut self, v: f64) { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::double_value(v)) + self.value = ::std::option::Option::Some(metric_value::Value::DoubleValue(v)) } // string string_value = 7; - - pub fn get_string_value(&self) -> &str { + pub fn string_value(&self) -> &str { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(ref v)) => v, + ::std::option::Option::Some(metric_value::Value::StringValue(ref v)) => v, _ => "", } } + pub fn clear_string_value(&mut self) { self.value = ::std::option::Option::None; } pub fn has_string_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(..)) => true, + ::std::option::Option::Some(metric_value::Value::StringValue(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_string_value(&mut self, v: ::std::string::String) { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::string_value(v)) + self.value = ::std::option::Option::Some(metric_value::Value::StringValue(v)) } // Mutable pointer to the field. pub fn mut_string_value(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(MetricValue_oneof_value::string_value(_)) = self.value { + if let ::std::option::Option::Some(metric_value::Value::StringValue(_)) = self.value { } else { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::string_value(::std::string::String::new())); + self.value = ::std::option::Option::Some(metric_value::Value::StringValue(::std::string::String::new())); } match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(ref mut v)) => v, + ::std::option::Option::Some(metric_value::Value::StringValue(ref mut v)) => v, _ => panic!(), } } @@ -263,7 +180,7 @@ impl MetricValue { pub fn take_string_value(&mut self) -> ::std::string::String { if self.has_string_value() { match self.value.take() { - ::std::option::Option::Some(MetricValue_oneof_value::string_value(v)) => v, + ::std::option::Option::Some(metric_value::Value::StringValue(v)) => v, _ => panic!(), } } else { @@ -273,37 +190,37 @@ impl MetricValue { // .google.api.servicecontrol.v1.Distribution distribution_value = 8; - - pub fn get_distribution_value(&self) -> &super::distribution::Distribution { + pub fn distribution_value(&self) -> &super::distribution::Distribution { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(ref v)) => v, + ::std::option::Option::Some(metric_value::Value::DistributionValue(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_distribution_value(&mut self) { self.value = ::std::option::Option::None; } pub fn has_distribution_value(&self) -> bool { match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(..)) => true, + ::std::option::Option::Some(metric_value::Value::DistributionValue(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_distribution_value(&mut self, v: super::distribution::Distribution) { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(v)) + self.value = ::std::option::Option::Some(metric_value::Value::DistributionValue(v)) } // Mutable pointer to the field. pub fn mut_distribution_value(&mut self) -> &mut super::distribution::Distribution { - if let ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(_)) = self.value { + if let ::std::option::Option::Some(metric_value::Value::DistributionValue(_)) = self.value { } else { - self.value = ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(super::distribution::Distribution::new())); + self.value = ::std::option::Option::Some(metric_value::Value::DistributionValue(super::distribution::Distribution::new())); } match self.value { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(ref mut v)) => v, + ::std::option::Option::Some(metric_value::Value::DistributionValue(ref mut v)) => v, _ => panic!(), } } @@ -312,80 +229,120 @@ impl MetricValue { pub fn take_distribution_value(&mut self) -> super::distribution::Distribution { if self.has_distribution_value() { match self.value.take() { - ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(v)) => v, + ::std::option::Option::Some(metric_value::Value::DistributionValue(v)) => v, _ => panic!(), } } else { super::distribution::Distribution::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(8); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &MetricValue| { &m.labels }, + |m: &mut MetricValue| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &MetricValue| { &m.start_time }, + |m: &mut MetricValue| { &mut m.start_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "end_time", + |m: &MetricValue| { &m.end_time }, + |m: &mut MetricValue| { &mut m.end_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "bool_value", + MetricValue::has_bool_value, + MetricValue::bool_value, + MetricValue::set_bool_value, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "int64_value", + MetricValue::has_int64_value, + MetricValue::int64_value, + MetricValue::set_int64_value, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "double_value", + MetricValue::has_double_value, + MetricValue::double_value, + MetricValue::set_double_value, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "string_value", + MetricValue::has_string_value, + MetricValue::string_value, + MetricValue::set_string_value, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::distribution::Distribution>( + "distribution_value", + MetricValue::has_distribution_value, + MetricValue::distribution_value, + MetricValue::mut_distribution_value, + MetricValue::set_distribution_value, + )); + oneofs.push(metric_value::Value::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MetricValue", + fields, + oneofs, + ) + } } impl ::protobuf::Message for MetricValue { + const NAME: &'static str = "MetricValue"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - if let Some(MetricValue_oneof_value::distribution_value(ref v)) = self.value { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.end_time)?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::bool_value(is.read_bool()?)); + 32 => { + self.value = ::std::option::Option::Some(metric_value::Value::BoolValue(is.read_bool()?)); }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::int64_value(is.read_int64()?)); + 40 => { + self.value = ::std::option::Option::Some(metric_value::Value::Int64Value(is.read_int64()?)); }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::double_value(is.read_double()?)); + 49 => { + self.value = ::std::option::Option::Some(metric_value::Value::DoubleValue(is.read_double()?)); }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::string_value(is.read_string()?)); + 58 => { + self.value = ::std::option::Option::Some(metric_value::Value::StringValue(is.read_string()?)); }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.value = ::std::option::Option::Some(MetricValue_oneof_value::distribution_value(is.read_message()?)); + 66 => { + self.value = ::std::option::Option::Some(metric_value::Value::DistributionValue(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -394,168 +351,98 @@ impl ::protobuf::Message for MetricValue { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels); - if let Some(ref v) = self.start_time.as_ref() { + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.end_time.as_ref() { + if let Some(v) = self.end_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let ::std::option::Option::Some(ref v) = self.value { match v { - &MetricValue_oneof_value::bool_value(v) => { - my_size += 2; + &metric_value::Value::BoolValue(v) => { + my_size += 1 + 1; }, - &MetricValue_oneof_value::int64_value(v) => { - my_size += ::protobuf::rt::value_size(5, v, ::protobuf::wire_format::WireTypeVarint); + &metric_value::Value::Int64Value(v) => { + my_size += ::protobuf::rt::int64_size(5, v); }, - &MetricValue_oneof_value::double_value(v) => { - my_size += 9; + &metric_value::Value::DoubleValue(v) => { + my_size += 1 + 8; }, - &MetricValue_oneof_value::string_value(ref v) => { + &metric_value::Value::StringValue(ref v) => { my_size += ::protobuf::rt::string_size(7, &v); }, - &MetricValue_oneof_value::distribution_value(ref v) => { + &metric_value::Value::DistributionValue(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels, os)?; - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(10)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.end_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } if let ::std::option::Option::Some(ref v) = self.value { match v { - &MetricValue_oneof_value::bool_value(v) => { + &metric_value::Value::BoolValue(v) => { os.write_bool(4, v)?; }, - &MetricValue_oneof_value::int64_value(v) => { + &metric_value::Value::Int64Value(v) => { os.write_int64(5, v)?; }, - &MetricValue_oneof_value::double_value(v) => { + &metric_value::Value::DoubleValue(v) => { os.write_double(6, v)?; }, - &MetricValue_oneof_value::string_value(ref v) => { + &metric_value::Value::StringValue(ref v) => { os.write_string(7, v)?; }, - &MetricValue_oneof_value::distribution_value(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &metric_value::Value::DistributionValue(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MetricValue { MetricValue::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &MetricValue| { &m.labels }, - |m: &mut MetricValue| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &MetricValue| { &m.start_time }, - |m: &mut MetricValue| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &MetricValue| { &m.end_time }, - |m: &mut MetricValue| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "bool_value", - MetricValue::has_bool_value, - MetricValue::get_bool_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor::<_>( - "int64_value", - MetricValue::has_int64_value, - MetricValue::get_int64_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_f64_accessor::<_>( - "double_value", - MetricValue::has_double_value, - MetricValue::get_double_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "string_value", - MetricValue::has_string_value, - MetricValue::get_string_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::distribution::Distribution>( - "distribution_value", - MetricValue::has_distribution_value, - MetricValue::get_distribution_value, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MetricValue", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MetricValue { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricValue::new) - } -} - -impl ::protobuf::Clear for MetricValue { fn clear(&mut self) { self.labels.clear(); self.start_time.clear(); @@ -565,30 +452,84 @@ impl ::protobuf::Clear for MetricValue { self.value = ::std::option::Option::None; self.value = ::std::option::Option::None; self.value = ::std::option::Option::None; - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static MetricValue { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(MetricValue::new) } } -impl ::std::fmt::Debug for MetricValue { +impl ::protobuf::MessageFull for MetricValue { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MetricValue").unwrap()).clone() + } +} + +impl ::std::fmt::Display for MetricValue { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MetricValue { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `MetricValue` +pub mod metric_value { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.servicecontrol.v1.MetricValue.value) + pub enum Value { + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.MetricValue.bool_value) + BoolValue(bool), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.MetricValue.int64_value) + Int64Value(i64), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.MetricValue.double_value) + DoubleValue(f64), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.MetricValue.string_value) + StringValue(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.servicecontrol.v1.MetricValue.distribution_value) + DistributionValue(super::super::distribution::Distribution), + } + + impl ::protobuf::Oneof for Value { + } + + impl ::protobuf::OneofFull for Value { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("value").unwrap()).clone() + } + } + + impl Value { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("value") + } } } -#[derive(PartialEq,Clone,Default)] +/// Represents a set of metric values in the same metric. +/// Each metric value in the set should have a unique combination of start time, +/// end time, and label values. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.MetricValueSet) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MetricValueSet { // message fields + /// The metric name defined in the service configuration. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.MetricValueSet.metric_name) pub metric_name: ::std::string::String, - pub metric_values: ::protobuf::RepeatedField, + /// The values in this metric. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.MetricValueSet.metric_values) + pub metric_values: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.MetricValueSet.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MetricValueSet { @@ -602,80 +543,45 @@ impl MetricValueSet { ::std::default::Default::default() } - // string metric_name = 1; - - - pub fn get_metric_name(&self) -> &str { - &self.metric_name - } - pub fn clear_metric_name(&mut self) { - self.metric_name.clear(); - } - - // Param is passed by value, moved - pub fn set_metric_name(&mut self, v: ::std::string::String) { - self.metric_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metric_name(&mut self) -> &mut ::std::string::String { - &mut self.metric_name - } - - // Take field - pub fn take_metric_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.metric_name, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.MetricValue metric_values = 2; - - - pub fn get_metric_values(&self) -> &[MetricValue] { - &self.metric_values - } - pub fn clear_metric_values(&mut self) { - self.metric_values.clear(); - } - - // Param is passed by value, moved - pub fn set_metric_values(&mut self, v: ::protobuf::RepeatedField) { - self.metric_values = v; - } - - // Mutable pointer to the field. - pub fn mut_metric_values(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.metric_values - } - - // Take field - pub fn take_metric_values(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.metric_values, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "metric_name", + |m: &MetricValueSet| { &m.metric_name }, + |m: &mut MetricValueSet| { &mut m.metric_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metric_values", + |m: &MetricValueSet| { &m.metric_values }, + |m: &mut MetricValueSet| { &mut m.metric_values }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MetricValueSet", + fields, + oneofs, + ) } } impl ::protobuf::Message for MetricValueSet { + const NAME: &'static str = "MetricValueSet"; + fn is_initialized(&self) -> bool { - for v in &self.metric_values { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metric_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.metric_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_values)?; + 18 => { + self.metric_values.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -684,136 +590,100 @@ impl ::protobuf::Message for MetricValueSet { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.metric_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.metric_name); } for value in &self.metric_values { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.metric_name.is_empty() { os.write_string(1, &self.metric_name)?; } for v in &self.metric_values { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MetricValueSet { MetricValueSet::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metric_name", - |m: &MetricValueSet| { &m.metric_name }, - |m: &mut MetricValueSet| { &mut m.metric_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metric_values", - |m: &MetricValueSet| { &m.metric_values }, - |m: &mut MetricValueSet| { &mut m.metric_values }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MetricValueSet", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.metric_name.clear(); + self.metric_values.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MetricValueSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MetricValueSet::new) + static instance: MetricValueSet = MetricValueSet { + metric_name: ::std::string::String::new(), + metric_values: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MetricValueSet { - fn clear(&mut self) { - self.metric_name.clear(); - self.metric_values.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MetricValueSet { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MetricValueSet").unwrap()).clone() } } -impl ::std::fmt::Debug for MetricValueSet { +impl ::std::fmt::Display for MetricValueSet { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MetricValueSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n/google/api/servicecontrol/v1/metric_value.proto\x12\x1cgoogle.api.ser\ - vicecontrol.v1\x1a/google/api/servicecontrol/v1/distribution.proto\x1a\ - \x1fgoogle/protobuf/timestamp.proto\"\xfd\x03\n\x0bMetricValue\x12M\n\ - \x06labels\x18\x01\x20\x03(\x0b25.google.api.servicecontrol.v1.MetricVal\ - ue.LabelsEntryR\x06labels\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.g\ - oogle.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x03\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12\x1f\n\nbool_value\ - \x18\x04\x20\x01(\x08H\0R\tboolValue\x12!\n\x0bint64_value\x18\x05\x20\ - \x01(\x03H\0R\nint64Value\x12#\n\x0cdouble_value\x18\x06\x20\x01(\x01H\0\ - R\x0bdoubleValue\x12#\n\x0cstring_value\x18\x07\x20\x01(\tH\0R\x0bstring\ - Value\x12[\n\x12distribution_value\x18\x08\x20\x01(\x0b2*.google.api.ser\ - vicecontrol.v1.DistributionH\0R\x11distributionValue\x1a9\n\x0bLabelsEnt\ - ry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\ - \x02\x20\x01(\tR\x05value:\x028\x01B\x07\n\x05value\"\x81\x01\n\x0eMetri\ - cValueSet\x12\x1f\n\x0bmetric_name\x18\x01\x20\x01(\tR\nmetricName\x12N\ - \n\rmetric_values\x18\x02\x20\x03(\x0b2).google.api.servicecontrol.v1.Me\ - tricValueR\x0cmetricValuesB\xee\x01\n\x20com.google.api.servicecontrol.v\ - 1B\x13MetricValueSetProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1\ - /servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.S\ - erviceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Go\ - ogle::Cloud::ServiceControl::V1J\xd6\x16\n\x06\x12\x04\x0e\0P\x01\n\xbc\ - \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\ - \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ - \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + vicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a/google/api/servic\ + econtrol/v1/distribution.proto\x1a\x1fgoogle/protobuf/timestamp.proto\ + \x1a\x17google/type/money.proto\"\xfd\x03\n\x0bMetricValue\x12M\n\x06lab\ + els\x18\x01\x20\x03(\x0b25.google.api.servicecontrol.v1.MetricValue.Labe\ + lsEntryR\x06labels\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.p\ + rotobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x03\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\x07endTime\x12\x1f\n\nbool_value\x18\x04\ + \x20\x01(\x08H\0R\tboolValue\x12!\n\x0bint64_value\x18\x05\x20\x01(\x03H\ + \0R\nint64Value\x12#\n\x0cdouble_value\x18\x06\x20\x01(\x01H\0R\x0bdoubl\ + eValue\x12#\n\x0cstring_value\x18\x07\x20\x01(\tH\0R\x0bstringValue\x12[\ + \n\x12distribution_value\x18\x08\x20\x01(\x0b2*.google.api.servicecontro\ + l.v1.DistributionH\0R\x11distributionValue\x1a9\n\x0bLabelsEntry\x12\x10\ + \n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\ + \tR\x05value:\x028\x01B\x07\n\x05value\"\x81\x01\n\x0eMetricValueSet\x12\ + \x1f\n\x0bmetric_name\x18\x01\x20\x01(\tR\nmetricName\x12N\n\rmetric_val\ + ues\x18\x02\x20\x03(\x0b2).google.api.servicecontrol.v1.MetricValueR\x0c\ + metricValuesB\x88\x01\n\x20com.google.api.servicecontrol.v1B\x13MetricVa\ + lueSetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/api/servicecontr\ + ol/v1;servicecontrol\xf8\x01\x01J\xe0\x13\n\x06\x12\x04\x0e\0M\x01\n\xbd\ + \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\ + \x20Inc.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ @@ -824,84 +694,98 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\ - \x12\x03\x12\09\n\t\n\x02\x03\x01\x12\x03\x13\0)\n\x08\n\x01\x08\x12\x03\ - \x15\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x15\0\x1f\n\x08\n\x01\x08\x12\x03\ - \x16\0;\n\t\n\x02\x08%\x12\x03\x16\0;\n\x08\n\x01\x08\x12\x03\x17\0a\n\t\ - \n\x02\x08\x0b\x12\x03\x17\0a\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\ - \x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\04\n\t\n\x02\x08\x08\ - \x12\x03\x19\04\n\x08\n\x01\x08\x12\x03\x1a\09\n\t\n\x02\x08\x01\x12\x03\ - \x1a\09\n\x08\n\x01\x08\x12\x03\x1b\0;\n\t\n\x02\x08)\x12\x03\x1b\0;\n\ - \x08\n\x01\x08\x12\x03\x1c\0:\n\t\n\x02\x08-\x12\x03\x1c\0:\n/\n\x02\x04\ - \0\x12\x04\x1f\0E\x01\x1a#\x20Represents\x20a\x20single\x20metric\x20val\ - ue.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x13\n\x89\x02\n\x04\x04\0\x02\ - \0\x12\x03$\x02!\x1a\xfb\x01\x20The\x20labels\x20describing\x20the\x20me\ - tric\x20value.\n\x20See\x20comments\x20on\x20[google.api.servicecontrol.\ - v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels]\x20f\ - or\n\x20the\x20overriding\x20relationship.\n\x20Note\x20that\x20this\x20\ - map\x20must\x20not\x20contain\x20monitored\x20resource\x20labels.\n\n\ - \x0c\n\x05\x04\0\x02\0\x06\x12\x03$\x02\x15\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03$\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03$\x1f\x20\n\xa0\x03\ - \n\x04\x04\0\x02\x01\x12\x03+\x02+\x1a\x92\x03\x20The\x20start\x20of\x20\ - the\x20time\x20period\x20over\x20which\x20this\x20metric\x20value's\x20m\ - easurement\n\x20applies.\x20The\x20time\x20period\x20has\x20different\ - \x20semantics\x20for\x20different\x20metric\n\x20types\x20(cumulative,\ + \x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\09\n\t\n\x02\x03\x02\x12\ + \x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0!\n\x08\n\x01\x08\x12\x03\x17\ + \0\x1f\n\t\n\x02\x08\x1f\x12\x03\x17\0\x1f\n\x08\n\x01\x08\x12\x03\x18\0\ + a\n\t\n\x02\x08\x0b\x12\x03\x18\0a\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\ + \x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\04\n\t\n\x02\x08\ + \x08\x12\x03\x1a\04\n\x08\n\x01\x08\x12\x03\x1b\09\n\t\n\x02\x08\x01\x12\ + \x03\x1b\09\n/\n\x02\x04\0\x12\x04\x1e\0B\x01\x1a#\x20Represents\x20a\ + \x20single\x20metric\x20value.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x13\ + \n\xca\x01\n\x04\x04\0\x02\0\x12\x03#\x02!\x1a\xbc\x01\x20The\x20labels\ + \x20describing\x20the\x20metric\x20value.\n\x20See\x20comments\x20on\n\ + \x20[google.api.servicecontrol.v1.Operation.labels][google.api.serviceco\ + ntrol.v1.Operation.labels]\n\x20for\x20the\x20overriding\x20relationship\ + .\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03#\x02\x15\n\x0c\n\x05\x04\0\x02\0\ + \x01\x12\x03#\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03#\x1f\x20\n\x98\ + \x02\n\x04\x04\0\x02\x01\x12\x03)\x02+\x1a\x8a\x02\x20The\x20start\x20of\ + \x20the\x20time\x20period\x20over\x20which\x20this\x20metric\x20value's\ + \x20measurement\n\x20applies.\x20The\x20time\x20period\x20has\x20differe\ + nt\x20semantics\x20for\x20different\x20metric\n\x20types\x20(cumulative,\ \x20delta,\x20and\x20gauge).\x20See\x20the\x20metric\x20definition\n\x20\ documentation\x20in\x20the\x20service\x20configuration\x20for\x20details\ - .\x20If\x20not\x20specified,\n\x20[google.api.servicecontrol.v1.Operatio\ - n.start_time][google.api.servicecontrol.v1.Operation.start_time]\x20will\ - \x20be\x20used.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03+\x02\x1b\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03+\x1c&\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03+)*\n\xe4\x01\n\x04\x04\0\x02\x02\x12\x030\x02)\x1a\xd6\x01\x20The\ - \x20end\x20of\x20the\x20time\x20period\x20over\x20which\x20this\x20metri\ - c\x20value's\x20measurement\n\x20applies.\x20\x20If\x20not\x20specified,\ - \n\x20[google.api.servicecontrol.v1.Operation.end_time][google.api.servi\ - cecontrol.v1.Operation.end_time]\x20will\x20be\x20used.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x030\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x030\x1c$\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x030'(\n\xae\x01\n\x04\x04\ - \0\x08\0\x12\x045\x02D\x03\x1a\x9f\x01\x20The\x20value.\x20The\x20type\ - \x20of\x20value\x20used\x20in\x20the\x20request\x20must\n\x20agree\x20wi\ - th\x20the\x20metric\x20definition\x20in\x20the\x20service\x20configurati\ - on,\x20otherwise\n\x20the\x20MetricValue\x20is\x20rejected.\n\n\x0c\n\ - \x05\x04\0\x08\0\x01\x12\x035\x08\r\n\x1f\n\x04\x04\0\x02\x03\x12\x037\ - \x04\x18\x1a\x12\x20A\x20boolean\x20value.\n\n\x0c\n\x05\x04\0\x02\x03\ - \x05\x12\x037\x04\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x037\t\x13\n\x0c\ - \n\x05\x04\0\x02\x03\x03\x12\x037\x16\x17\n-\n\x04\x04\0\x02\x04\x12\x03\ - :\x04\x1a\x1a\x20\x20A\x20signed\x2064-bit\x20integer\x20value.\n\n\x0c\ - \n\x05\x04\0\x02\x04\x05\x12\x03:\x04\t\n\x0c\n\x05\x04\0\x02\x04\x01\ - \x12\x03:\n\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03:\x18\x19\n7\n\x04\ - \x04\0\x02\x05\x12\x03=\x04\x1c\x1a*\x20A\x20double\x20precision\x20floa\ - ting\x20point\x20value.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03=\x04\n\n\ - \x0c\n\x05\x04\0\x02\x05\x01\x12\x03=\x0b\x17\n\x0c\n\x05\x04\0\x02\x05\ - \x03\x12\x03=\x1a\x1b\n#\n\x04\x04\0\x02\x06\x12\x03@\x04\x1c\x1a\x16\ - \x20A\x20text\x20string\x20value.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\ - \x03@\x04\n\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03@\x0b\x17\n\x0c\n\x05\ - \x04\0\x02\x06\x03\x12\x03@\x1a\x1b\n$\n\x04\x04\0\x02\x07\x12\x03C\x04(\ - \x1a\x17\x20A\x20distribution\x20value.\n\n\x0c\n\x05\x04\0\x02\x07\x06\ - \x12\x03C\x04\x10\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03C\x11#\n\x0c\n\ - \x05\x04\0\x02\x07\x03\x12\x03C&'\n\xaf\x01\n\x02\x04\x01\x12\x04J\0P\ - \x01\x1a\xa2\x01\x20Represents\x20a\x20set\x20of\x20metric\x20values\x20\ - in\x20the\x20same\x20metric.\n\x20Each\x20metric\x20value\x20in\x20the\ - \x20set\x20should\x20have\x20a\x20unique\x20combination\x20of\x20start\ - \x20time,\n\x20end\x20time,\x20and\x20label\x20values.\n\n\n\n\x03\x04\ - \x01\x01\x12\x03J\x08\x16\nD\n\x04\x04\x01\x02\0\x12\x03L\x02\x19\x1a7\ - \x20The\x20metric\x20name\x20defined\x20in\x20the\x20service\x20configur\ - ation.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03L\x02\x08\n\x0c\n\x05\x04\ - \x01\x02\0\x01\x12\x03L\t\x14\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03L\x17\ - \x18\n)\n\x04\x04\x01\x02\x01\x12\x03O\x02)\x1a\x1c\x20The\x20values\x20\ - in\x20this\x20metric.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03O\x02\n\n\ - \x0c\n\x05\x04\x01\x02\x01\x06\x12\x03O\x0b\x16\n\x0c\n\x05\x04\x01\x02\ - \x01\x01\x12\x03O\x17$\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03O'(b\x06pr\ - oto3\ + .\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03)\x02\x1b\n\x0c\n\x05\x04\0\x02\ + \x01\x01\x12\x03)\x1c&\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03))*\n^\n\x04\ + \x04\0\x02\x02\x12\x03-\x02)\x1aQ\x20The\x20end\x20of\x20the\x20time\x20\ + period\x20over\x20which\x20this\x20metric\x20value's\x20measurement\n\ + \x20applies.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03-\x02\x1b\n\x0c\n\ + \x05\x04\0\x02\x02\x01\x12\x03-\x1c$\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ + \x03-'(\n\xae\x01\n\x04\x04\0\x08\0\x12\x042\x02A\x03\x1a\x9f\x01\x20The\ + \x20value.\x20The\x20type\x20of\x20value\x20used\x20in\x20the\x20request\ + \x20must\n\x20agree\x20with\x20the\x20metric\x20definition\x20in\x20the\ + \x20service\x20configuration,\x20otherwise\n\x20the\x20MetricValue\x20is\ + \x20rejected.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x032\x08\r\n\x1f\n\x04\ + \x04\0\x02\x03\x12\x034\x04\x18\x1a\x12\x20A\x20boolean\x20value.\n\n\ + \x0c\n\x05\x04\0\x02\x03\x05\x12\x034\x04\x08\n\x0c\n\x05\x04\0\x02\x03\ + \x01\x12\x034\t\x13\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x034\x16\x17\n-\n\ + \x04\x04\0\x02\x04\x12\x037\x04\x1a\x1a\x20\x20A\x20signed\x2064-bit\x20\ + integer\x20value.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x037\x04\t\n\x0c\n\ + \x05\x04\0\x02\x04\x01\x12\x037\n\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ + \x037\x18\x19\n7\n\x04\x04\0\x02\x05\x12\x03:\x04\x1c\x1a*\x20A\x20doubl\ + e\x20precision\x20floating\x20point\x20value.\n\n\x0c\n\x05\x04\0\x02\ + \x05\x05\x12\x03:\x04\n\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03:\x0b\x17\n\ + \x0c\n\x05\x04\0\x02\x05\x03\x12\x03:\x1a\x1b\n#\n\x04\x04\0\x02\x06\x12\ + \x03=\x04\x1c\x1a\x16\x20A\x20text\x20string\x20value.\n\n\x0c\n\x05\x04\ + \0\x02\x06\x05\x12\x03=\x04\n\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03=\x0b\ + \x17\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03=\x1a\x1b\n$\n\x04\x04\0\x02\ + \x07\x12\x03@\x04(\x1a\x17\x20A\x20distribution\x20value.\n\n\x0c\n\x05\ + \x04\0\x02\x07\x06\x12\x03@\x04\x10\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ + \x03@\x11#\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03@&'\n\xaf\x01\n\x02\x04\ + \x01\x12\x04G\0M\x01\x1a\xa2\x01\x20Represents\x20a\x20set\x20of\x20metr\ + ic\x20values\x20in\x20the\x20same\x20metric.\n\x20Each\x20metric\x20valu\ + e\x20in\x20the\x20set\x20should\x20have\x20a\x20unique\x20combination\ + \x20of\x20start\x20time,\n\x20end\x20time,\x20and\x20label\x20values.\n\ + \n\n\n\x03\x04\x01\x01\x12\x03G\x08\x16\nD\n\x04\x04\x01\x02\0\x12\x03I\ + \x02\x19\x1a7\x20The\x20metric\x20name\x20defined\x20in\x20the\x20servic\ + e\x20configuration.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03I\x02\x08\n\ + \x0c\n\x05\x04\x01\x02\0\x01\x12\x03I\t\x14\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x03I\x17\x18\n)\n\x04\x04\x01\x02\x01\x12\x03L\x02)\x1a\x1c\x20\ + The\x20values\x20in\x20this\x20metric.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\ + \x12\x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03L\x0b\x16\n\x0c\n\ + \x05\x04\x01\x02\x01\x01\x12\x03L\x17$\n\x0c\n\x05\x04\x01\x02\x01\x03\ + \x12\x03L'(b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(4); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::distribution::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + deps.push(super::money::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(MetricValue::generated_message_descriptor_data()); + messages.push(MetricValueSet::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/mod.rs b/googleapis-raw/src/api/servicecontrol/v1/mod.rs index f4705ac..5e2c580 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/mod.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/mod.rs @@ -1,14 +1,11 @@ // @generated -use crate::{ - api::distribution as distribution_ex, // For Distribution::Exemplar - logging::r#type::log_severity, - rpc::status, +pub(crate) use crate::{ + api::annotations, logging::r#type::log_severity, r#type::money, rpc::status, }; pub mod check_error; pub mod distribution; -pub mod http_request; pub mod log_entry; pub mod metric_value; pub mod operation; diff --git a/googleapis-raw/src/api/servicecontrol/v1/operation.rs b/googleapis-raw/src/api/servicecontrol/v1/operation.rs index c8545d8..022b50a 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/operation.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/operation.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,30 +16,78 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/operation.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Represents information regarding an operation. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.Operation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Operation { // message fields + /// Identity of the operation. This must be unique within the scope of the + /// service that generated the operation. If the service calls + /// Check() and Report() on the same operation, the two calls should carry + /// the same id. + /// + /// UUID version 4 is recommended, though not required. + /// In scenarios where an operation is computed from existing information + /// and an idempotent id is desirable for deduplication purpose, UUID version 5 + /// is recommended. See RFC 4122 for details. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.operation_id) pub operation_id: ::std::string::String, + /// Fully qualified name of the operation. Reserved for future use. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.operation_name) pub operation_name: ::std::string::String, + /// Identity of the consumer who is using the service. + /// This field should be filled in for the operations initiated by a + /// consumer, but not for service-initiated operations that are + /// not related to a specific consumer. + /// + /// This can be in one of the following formats: + /// project:, + /// project_number:, + /// api_key:. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.consumer_id) pub consumer_id: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Required. Start time of the operation. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// End time of the operation. + /// Required when the operation is used in + /// [ServiceController.Report][google.api.servicecontrol.v1.ServiceController.Report], + /// but optional when the operation is used in + /// [ServiceController.Check][google.api.servicecontrol.v1.ServiceController.Check]. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.end_time) + pub end_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub metric_value_sets: ::protobuf::RepeatedField, - pub log_entries: ::protobuf::RepeatedField, - pub importance: Operation_Importance, - pub extensions: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + /// Represents information about this operation. Each MetricValueSet + /// corresponds to a metric defined in the service configuration. + /// The data type used in the MetricValueSet must agree with + /// the data type specified in the metric definition. + /// + /// Within a single operation, it is not allowed to have more than one + /// MetricValue instances that have the same metric names and identical + /// label value combinations. If a request has such duplicated MetricValue + /// instances, the entire request is rejected with + /// an invalid argument error. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.metric_value_sets) + pub metric_value_sets: ::std::vec::Vec, + /// Represents information to be logged. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.log_entries) + pub log_entries: ::std::vec::Vec, + /// DO NOT USE. This is an experimental field. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.Operation.importance) + pub importance: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.Operation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Operation { @@ -52,332 +101,113 @@ impl Operation { ::std::default::Default::default() } - // string operation_id = 1; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) - } - - // string operation_name = 2; - - - pub fn get_operation_name(&self) -> &str { - &self.operation_name - } - pub fn clear_operation_name(&mut self) { - self.operation_name.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_name(&mut self, v: ::std::string::String) { - self.operation_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_name(&mut self) -> &mut ::std::string::String { - &mut self.operation_name - } - - // Take field - pub fn take_operation_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_name, ::std::string::String::new()) - } - - // string consumer_id = 3; - - - pub fn get_consumer_id(&self) -> &str { - &self.consumer_id - } - pub fn clear_consumer_id(&mut self) { - self.consumer_id.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_id(&mut self, v: ::std::string::String) { - self.consumer_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consumer_id(&mut self) -> &mut ::std::string::String { - &mut self.consumer_id - } - - // Take field - pub fn take_consumer_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.consumer_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp start_time = 4; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 5; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.api.servicecontrol.v1.Operation.LabelsEntry labels = 6; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // repeated .google.api.servicecontrol.v1.MetricValueSet metric_value_sets = 7; - - - pub fn get_metric_value_sets(&self) -> &[super::metric_value::MetricValueSet] { - &self.metric_value_sets - } - pub fn clear_metric_value_sets(&mut self) { - self.metric_value_sets.clear(); - } - - // Param is passed by value, moved - pub fn set_metric_value_sets(&mut self, v: ::protobuf::RepeatedField) { - self.metric_value_sets = v; - } - - // Mutable pointer to the field. - pub fn mut_metric_value_sets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.metric_value_sets - } - - // Take field - pub fn take_metric_value_sets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.metric_value_sets, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.servicecontrol.v1.LogEntry log_entries = 8; - - - pub fn get_log_entries(&self) -> &[super::log_entry::LogEntry] { - &self.log_entries - } - pub fn clear_log_entries(&mut self) { - self.log_entries.clear(); - } - - // Param is passed by value, moved - pub fn set_log_entries(&mut self, v: ::protobuf::RepeatedField) { - self.log_entries = v; - } - - // Mutable pointer to the field. - pub fn mut_log_entries(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.log_entries - } - - // Take field - pub fn take_log_entries(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.log_entries, ::protobuf::RepeatedField::new()) - } - - // .google.api.servicecontrol.v1.Operation.Importance importance = 11; - - - pub fn get_importance(&self) -> Operation_Importance { - self.importance - } - pub fn clear_importance(&mut self) { - self.importance = Operation_Importance::LOW; - } - - // Param is passed by value, moved - pub fn set_importance(&mut self, v: Operation_Importance) { - self.importance = v; - } - - // repeated .google.protobuf.Any extensions = 16; - - - pub fn get_extensions(&self) -> &[::protobuf::well_known_types::Any] { - &self.extensions - } - pub fn clear_extensions(&mut self) { - self.extensions.clear(); - } - - // Param is passed by value, moved - pub fn set_extensions(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.extensions = v; - } - - // Mutable pointer to the field. - pub fn mut_extensions(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.extensions - } - - // Take field - pub fn take_extensions(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.extensions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(9); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &Operation| { &m.operation_id }, + |m: &mut Operation| { &mut m.operation_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_name", + |m: &Operation| { &m.operation_name }, + |m: &mut Operation| { &mut m.operation_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consumer_id", + |m: &Operation| { &m.consumer_id }, + |m: &mut Operation| { &mut m.consumer_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &Operation| { &m.start_time }, + |m: &mut Operation| { &mut m.start_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "end_time", + |m: &Operation| { &m.end_time }, + |m: &mut Operation| { &mut m.end_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Operation| { &m.labels }, + |m: &mut Operation| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "metric_value_sets", + |m: &Operation| { &m.metric_value_sets }, + |m: &mut Operation| { &mut m.metric_value_sets }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "log_entries", + |m: &Operation| { &m.log_entries }, + |m: &mut Operation| { &mut m.log_entries }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "importance", + |m: &Operation| { &m.importance }, + |m: &mut Operation| { &mut m.importance }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Operation", + fields, + oneofs, + ) } } impl ::protobuf::Message for Operation { + const NAME: &'static str = "Operation"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metric_value_sets { - if !v.is_initialized() { - return false; - } - }; - for v in &self.log_entries { - if !v.is_initialized() { - return false; - } - }; - for v in &self.extensions { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_name)?; + 18 => { + self.operation_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; + 26 => { + self.consumer_id = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 42 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.end_time)?; }, - 6 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 50 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.metric_value_sets)?; + 58 => { + self.metric_value_sets.push(is.read_message()?); }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.log_entries)?; + 66 => { + self.log_entries.push(is.read_message()?); }, - 11 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.importance, 11, &mut self.unknown_fields)? + 88 => { + self.importance = is.read_enum_or_unknown()?; }, - 16 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.extensions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -386,7 +216,7 @@ impl ::protobuf::Message for Operation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.operation_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.operation_id); @@ -397,36 +227,37 @@ impl ::protobuf::Message for Operation { if !self.consumer_id.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.consumer_id); } - if let Some(ref v) = self.start_time.as_ref() { + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.end_time.as_ref() { + if let Some(v) = self.end_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; for value in &self.metric_value_sets { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.log_entries { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if self.importance != Operation_Importance::LOW { - my_size += ::protobuf::rt::enum_size(11, self.importance); + if self.importance != ::protobuf::EnumOrUnknown::new(operation::Importance::LOW) { + my_size += ::protobuf::rt::int32_size(11, self.importance.value()); } - for value in &self.extensions { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.operation_id.is_empty() { os.write_string(1, &self.operation_id)?; } @@ -436,138 +267,46 @@ impl ::protobuf::Message for Operation { if !self.consumer_id.is_empty() { os.write_string(3, &self.consumer_id)?; } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.end_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.labels, os)?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(50)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; for v in &self.metric_value_sets { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?; }; for v in &self.log_entries { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }; - if self.importance != Operation_Importance::LOW { - os.write_enum(11, ::protobuf::ProtobufEnum::value(&self.importance))?; + if self.importance != ::protobuf::EnumOrUnknown::new(operation::Importance::LOW) { + os.write_enum(11, ::protobuf::EnumOrUnknown::value(&self.importance))?; } - for v in &self.extensions { - os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Operation { Operation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &Operation| { &m.operation_id }, - |m: &mut Operation| { &mut m.operation_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_name", - |m: &Operation| { &m.operation_name }, - |m: &mut Operation| { &mut m.operation_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consumer_id", - |m: &Operation| { &m.consumer_id }, - |m: &mut Operation| { &mut m.consumer_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &Operation| { &m.start_time }, - |m: &mut Operation| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &Operation| { &m.end_time }, - |m: &mut Operation| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Operation| { &m.labels }, - |m: &mut Operation| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metric_value_sets", - |m: &Operation| { &m.metric_value_sets }, - |m: &mut Operation| { &mut m.metric_value_sets }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "log_entries", - |m: &Operation| { &m.log_entries }, - |m: &mut Operation| { &mut m.log_entries }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "importance", - |m: &Operation| { &m.importance }, - |m: &mut Operation| { &mut m.importance }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "extensions", - |m: &Operation| { &m.extensions }, - |m: &mut Operation| { &mut m.extensions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Operation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Operation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Operation::new) - } -} - -impl ::protobuf::Clear for Operation { fn clear(&mut self) { self.operation_id.clear(); self.operation_name.clear(); @@ -577,232 +316,266 @@ impl ::protobuf::Clear for Operation { self.labels.clear(); self.metric_value_sets.clear(); self.log_entries.clear(); - self.importance = Operation_Importance::LOW; - self.extensions.clear(); - self.unknown_fields.clear(); + self.importance = ::protobuf::EnumOrUnknown::new(operation::Importance::LOW); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Operation { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(Operation::new) } } -impl ::std::fmt::Debug for Operation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) +impl ::protobuf::MessageFull for Operation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Operation").unwrap()).clone() } } -impl ::protobuf::reflect::ProtobufValue for Operation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::std::fmt::Display for Operation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Operation_Importance { - LOW = 0, - HIGH = 1, +impl ::protobuf::reflect::ProtobufValue for Operation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for Operation_Importance { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `Operation` +pub mod operation { + /// Defines the importance of the data contained in the operation. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicecontrol.v1.Operation.Importance) + pub enum Importance { + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.Operation.Importance.LOW) + LOW = 0, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.Operation.Importance.HIGH) + HIGH = 1, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Operation_Importance::LOW), - 1 => ::std::option::Option::Some(Operation_Importance::HIGH), - _ => ::std::option::Option::None + impl ::protobuf::Enum for Importance { + const NAME: &'static str = "Importance"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Importance::LOW), + 1 => ::std::option::Option::Some(Importance::HIGH), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [Operation_Importance] = &[ - Operation_Importance::LOW, - Operation_Importance::HIGH, + fn from_str(str: &str) -> ::std::option::Option { + match str { + "LOW" => ::std::option::Option::Some(Importance::LOW), + "HIGH" => ::std::option::Option::Some(Importance::HIGH), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [Importance] = &[ + Importance::LOW, + Importance::HIGH, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Operation.Importance", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Importance { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Operation.Importance").unwrap()).clone() + } -impl ::std::marker::Copy for Operation_Importance { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for Operation_Importance { - fn default() -> Self { - Operation_Importance::LOW + impl ::std::default::Default for Importance { + fn default() -> Self { + Importance::LOW + } } -} -impl ::protobuf::reflect::ProtobufValue for Operation_Importance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Importance { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Operation.Importance") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n,google/api/servicecontrol/v1/operation.proto\x12\x1cgoogle.api.servic\ - econtrol.v1\x1a,google/api/servicecontrol/v1/log_entry.proto\x1a/google/\ - api/servicecontrol/v1/metric_value.proto\x1a\x19google/protobuf/any.prot\ - o\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x05\n\tOperation\x12!\n\ - \x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12%\n\x0eoperation_\ - name\x18\x02\x20\x01(\tR\roperationName\x12\x1f\n\x0bconsumer_id\x18\x03\ - \x20\x01(\tR\nconsumerId\x129\n\nstart_time\x18\x04\x20\x01(\x0b2\x1a.go\ - ogle.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x05\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12K\n\x06labels\x18\x06\ - \x20\x03(\x0b23.google.api.servicecontrol.v1.Operation.LabelsEntryR\x06l\ - abels\x12X\n\x11metric_value_sets\x18\x07\x20\x03(\x0b2,.google.api.serv\ - icecontrol.v1.MetricValueSetR\x0fmetricValueSets\x12G\n\x0blog_entries\ - \x18\x08\x20\x03(\x0b2&.google.api.servicecontrol.v1.LogEntryR\nlogEntri\ - es\x12R\n\nimportance\x18\x0b\x20\x01(\x0e22.google.api.servicecontrol.v\ - 1.Operation.ImportanceR\nimportance\x124\n\nextensions\x18\x10\x20\x03(\ - \x0b2\x14.google.protobuf.AnyR\nextensions\x1a9\n\x0bLabelsEntry\x12\x10\ + econtrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a,google/api/serviceco\ + ntrol/v1/log_entry.proto\x1a/google/api/servicecontrol/v1/metric_value.p\ + roto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x88\x05\n\tOperation\x12!\ + \n\x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12%\n\x0eoperatio\ + n_name\x18\x02\x20\x01(\tR\roperationName\x12\x1f\n\x0bconsumer_id\x18\ + \x03\x20\x01(\tR\nconsumerId\x129\n\nstart_time\x18\x04\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\x05\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12K\n\x06label\ + s\x18\x06\x20\x03(\x0b23.google.api.servicecontrol.v1.Operation.LabelsEn\ + tryR\x06labels\x12X\n\x11metric_value_sets\x18\x07\x20\x03(\x0b2,.google\ + .api.servicecontrol.v1.MetricValueSetR\x0fmetricValueSets\x12G\n\x0blog_\ + entries\x18\x08\x20\x03(\x0b2&.google.api.servicecontrol.v1.LogEntryR\nl\ + ogEntries\x12R\n\nimportance\x18\x0b\x20\x01(\x0e22.google.api.serviceco\ + ntrol.v1.Operation.ImportanceR\nimportance\x1a9\n\x0bLabelsEntry\x12\x10\ \n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\ \tR\x05value:\x028\x01\"\x1f\n\nImportance\x12\x07\n\x03LOW\x10\0\x12\ - \x08\n\x04HIGH\x10\x01B\xe9\x01\n\x20com.google.api.servicecontrol.v1B\ - \x0eOperationProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/servic\ - econtrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle.Cloud.ServiceC\ - ontrol.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\xea\x02!Google::C\ - loud::ServiceControl::V1J\x9b%\n\x06\x12\x04\x0e\0z\x01\n\xbc\x04\n\x01\ - \x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\ - \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ - \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\ - \x12\06\n\t\n\x02\x03\x01\x12\x03\x13\09\n\t\n\x02\x03\x02\x12\x03\x14\0\ - #\n\t\n\x02\x03\x03\x12\x03\x15\0)\n\x08\n\x01\x08\x12\x03\x17\0\x1f\n\t\ - \n\x02\x08\x1f\x12\x03\x17\0\x1f\n\x08\n\x01\x08\x12\x03\x18\0;\n\t\n\ - \x02\x08%\x12\x03\x18\0;\n\x08\n\x01\x08\x12\x03\x19\0a\n\t\n\x02\x08\ - \x0b\x12\x03\x19\0a\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08\n\x12\ - \x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0/\n\t\n\x02\x08\x08\x12\x03\ - \x1b\0/\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\n\x02\x08\x01\x12\x03\x1c\09\ - \n\x08\n\x01\x08\x12\x03\x1d\0;\n\t\n\x02\x08)\x12\x03\x1d\0;\n\x08\n\ - \x01\x08\x12\x03\x1e\0:\n\t\n\x02\x08-\x12\x03\x1e\0:\n<\n\x02\x04\0\x12\ - \x04!\0z\x01\x1a0\x20Represents\x20information\x20regarding\x20an\x20ope\ - ration.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x11\nN\n\x04\x04\0\x04\0\x12\ - \x04#\x02,\x03\x1a@\x20Defines\x20the\x20importance\x20of\x20the\x20data\ - \x20contained\x20in\x20the\x20operation.\n\n\x0c\n\x05\x04\0\x04\0\x01\ - \x12\x03#\x07\x11\n|\n\x06\x04\0\x04\0\x02\0\x12\x03&\x04\x0c\x1am\x20Al\ - lows\x20data\x20caching,\x20batching,\x20and\x20aggregation.\x20It\x20pr\ - ovides\n\x20higher\x20performance\x20with\x20higher\x20data\x20loss\x20r\ - isk.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03&\x04\x07\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x02\x12\x03&\n\x0b\n\xc5\x01\n\x06\x04\0\x04\0\x02\ - \x01\x12\x03+\x04\r\x1a\xb5\x01\x20Disables\x20data\x20aggregation\x20to\ - \x20minimize\x20data\x20loss.\x20It\x20is\x20for\x20operations\n\x20that\ - \x20contains\x20significant\x20monetary\x20value\x20or\x20audit\x20trail\ - .\x20This\x20feature\n\x20only\x20applies\x20to\x20the\x20client\x20libr\ - aries.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03+\x04\x08\n\x0e\n\ - \x07\x04\0\x04\0\x02\x01\x02\x12\x03+\x0b\x0c\n\xdd\x03\n\x04\x04\0\x02\ - \0\x12\x037\x02\x1a\x1a\xcf\x03\x20Identity\x20of\x20the\x20operation.\ - \x20This\x20must\x20be\x20unique\x20within\x20the\x20scope\x20of\x20the\ - \n\x20service\x20that\x20generated\x20the\x20operation.\x20If\x20the\x20\ - service\x20calls\n\x20Check()\x20and\x20Report()\x20on\x20the\x20same\ - \x20operation,\x20the\x20two\x20calls\x20should\x20carry\n\x20the\x20sam\ - e\x20id.\n\n\x20UUID\x20version\x204\x20is\x20recommended,\x20though\x20\ - not\x20required.\n\x20In\x20scenarios\x20where\x20an\x20operation\x20is\ - \x20computed\x20from\x20existing\x20information\n\x20and\x20an\x20idempo\ - tent\x20id\x20is\x20desirable\x20for\x20deduplication\x20purpose,\x20UUI\ - D\x20version\x205\n\x20is\x20recommended.\x20See\x20RFC\x204122\x20for\ - \x20details.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x037\x02\x08\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x037\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x037\x18\ - \x19\nN\n\x04\x04\0\x02\x01\x12\x03:\x02\x1c\x1aA\x20Fully\x20qualified\ - \x20name\x20of\x20the\x20operation.\x20Reserved\x20for\x20future\x20use.\ - \n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03:\x02\x08\n\x0c\n\x05\x04\0\x02\ - \x01\x01\x12\x03:\t\x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03:\x1a\x1b\n\ - \xea\x03\n\x04\x04\0\x02\x02\x12\x03H\x02\x19\x1a\xdc\x03\x20Identity\ - \x20of\x20the\x20consumer\x20who\x20is\x20using\x20the\x20service.\n\x20\ - This\x20field\x20should\x20be\x20filled\x20in\x20for\x20the\x20operation\ - s\x20initiated\x20by\x20a\n\x20consumer,\x20but\x20not\x20for\x20service\ - -initiated\x20operations\x20that\x20are\n\x20not\x20related\x20to\x20a\ - \x20specific\x20consumer.\n\n\x20-\x20This\x20can\x20be\x20in\x20one\x20\ - of\x20the\x20following\x20formats:\n\x20\x20\x20\x20\x20-\x20project:PRO\ - JECT_ID,\n\x20\x20\x20\x20\x20-\x20project`_`number:PROJECT_NUMBER,\n\ - \x20\x20\x20\x20\x20-\x20projects/PROJECT_ID\x20or\x20PROJECT_NUMBER,\n\ - \x20\x20\x20\x20\x20-\x20folders/FOLDER_NUMBER,\n\x20\x20\x20\x20\x20-\ - \x20organizations/ORGANIZATION_NUMBER,\n\x20\x20\x20\x20\x20-\x20api`_`k\ - ey:API_KEY.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03H\x02\x08\n\x0c\n\x05\ - \x04\0\x02\x02\x01\x12\x03H\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03H\ - \x17\x18\n5\n\x04\x04\0\x02\x03\x12\x03K\x02+\x1a(\x20Required.\x20Start\ - \x20time\x20of\x20the\x20operation.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\ - \x03K\x02\x1b\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03K\x1c&\n\x0c\n\x05\ - \x04\0\x02\x03\x03\x12\x03K)*\n\xa4\x02\n\x04\x04\0\x02\x04\x12\x03R\x02\ - )\x1a\x96\x02\x20End\x20time\x20of\x20the\x20operation.\n\x20Required\ - \x20when\x20the\x20operation\x20is\x20used\x20in\n\x20[ServiceController\ - .Report][google.api.servicecontrol.v1.ServiceController.Report],\n\x20bu\ - t\x20optional\x20when\x20the\x20operation\x20is\x20used\x20in\n\x20[Serv\ - iceController.Check][google.api.servicecontrol.v1.ServiceController.Chec\ - k].\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03R\x02\x1b\n\x0c\n\x05\x04\0\ - \x02\x04\x01\x12\x03R\x1c$\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03R'(\n\ - \xd0\x06\n\x04\x04\0\x02\x05\x12\x03d\x02!\x1a\xc2\x06\x20Labels\x20desc\ - ribing\x20the\x20operation.\x20Only\x20the\x20following\x20labels\x20are\ - \x20allowed:\n\n\x20-\x20Labels\x20describing\x20monitored\x20resources\ - \x20as\x20defined\x20in\n\x20\x20\x20the\x20service\x20configuration.\n\ - \x20-\x20Default\x20labels\x20of\x20metric\x20values.\x20When\x20specifi\ - ed,\x20labels\x20defined\x20in\x20the\n\x20\x20\x20metric\x20value\x20ov\ - erride\x20these\x20default.\n\x20-\x20The\x20following\x20labels\x20defi\ - ned\x20by\x20Google\x20Cloud\x20Platform:\n\x20\x20\x20\x20\x20-\x20`clo\ - ud.googleapis.com/location`\x20describing\x20the\x20location\x20where\ - \x20the\n\x20\x20\x20\x20\x20\x20\x20\x20operation\x20happened,\n\x20\ - \x20\x20\x20\x20-\x20`servicecontrol.googleapis.com/user_agent`\x20descr\ - ibing\x20the\x20user\x20agent\n\x20\x20\x20\x20\x20\x20\x20\x20of\x20the\ - \x20API\x20request,\n\x20\x20\x20\x20\x20-\x20`servicecontrol.googleapis\ - .com/service_agent`\x20describing\x20the\x20service\n\x20\x20\x20\x20\ - \x20\x20\x20\x20used\x20to\x20handle\x20the\x20API\x20request\x20(e.g.\ - \x20ESP),\n\x20\x20\x20\x20\x20-\x20`servicecontrol.googleapis.com/platf\ - orm`\x20describing\x20the\x20platform\n\x20\x20\x20\x20\x20\x20\x20\x20w\ - here\x20the\x20API\x20is\x20served,\x20such\x20as\x20App\x20Engine,\x20C\ - ompute\x20Engine,\x20or\n\x20\x20\x20\x20\x20\x20\x20\x20Kubernetes\x20E\ - ngine.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03d\x02\x15\n\x0c\n\x05\x04\ - \0\x02\x05\x01\x12\x03d\x16\x1c\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03d\ - \x1f\x20\n\x9a\x04\n\x04\x04\0\x02\x06\x12\x03p\x020\x1a\x8c\x04\x20Repr\ - esents\x20information\x20about\x20this\x20operation.\x20Each\x20MetricVa\ - lueSet\n\x20corresponds\x20to\x20a\x20metric\x20defined\x20in\x20the\x20\ - service\x20configuration.\n\x20The\x20data\x20type\x20used\x20in\x20the\ - \x20MetricValueSet\x20must\x20agree\x20with\n\x20the\x20data\x20type\x20\ - specified\x20in\x20the\x20metric\x20definition.\n\n\x20Within\x20a\x20si\ - ngle\x20operation,\x20it\x20is\x20not\x20allowed\x20to\x20have\x20more\ - \x20than\x20one\n\x20MetricValue\x20instances\x20that\x20have\x20the\x20\ - same\x20metric\x20names\x20and\x20identical\n\x20label\x20value\x20combi\ - nations.\x20If\x20a\x20request\x20has\x20such\x20duplicated\x20MetricVal\ - ue\n\x20instances,\x20the\x20entire\x20request\x20is\x20rejected\x20with\ - \n\x20an\x20invalid\x20argument\x20error.\n\n\x0c\n\x05\x04\0\x02\x06\ - \x04\x12\x03p\x02\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03p\x0b\x19\n\x0c\ - \n\x05\x04\0\x02\x06\x01\x12\x03p\x1a+\n\x0c\n\x05\x04\0\x02\x06\x03\x12\ - \x03p./\n3\n\x04\x04\0\x02\x07\x12\x03s\x02$\x1a&\x20Represents\x20infor\ - mation\x20to\x20be\x20logged.\n\n\x0c\n\x05\x04\0\x02\x07\x04\x12\x03s\ - \x02\n\n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03s\x0b\x13\n\x0c\n\x05\x04\0\ - \x02\x07\x01\x12\x03s\x14\x1f\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03s\"#\ - \n9\n\x04\x04\0\x02\x08\x12\x03v\x02\x1d\x1a,\x20DO\x20NOT\x20USE.\x20Th\ - is\x20is\x20an\x20experimental\x20field.\n\n\x0c\n\x05\x04\0\x02\x08\x06\ - \x12\x03v\x02\x0c\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03v\r\x17\n\x0c\n\ - \x05\x04\0\x02\x08\x03\x12\x03v\x1a\x1c\n\x1d\n\x04\x04\0\x02\t\x12\x03y\ - \x02/\x1a\x10\x20Unimplemented.\n\n\x0c\n\x05\x04\0\x02\t\x04\x12\x03y\ - \x02\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03y\x0b\x1e\n\x0c\n\x05\x04\0\ - \x02\t\x01\x12\x03y\x1f)\n\x0c\n\x05\x04\0\x02\t\x03\x12\x03y,.b\x06prot\ - o3\ + \x08\n\x04HIGH\x10\x01B\x83\x01\n\x20com.google.api.servicecontrol.v1B\ + \x0eOperationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/api/servi\ + cecontrol/v1;servicecontrol\xf8\x01\x01J\xe0\"\n\x06\x12\x04\x0e\0p\x01\ + \n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20\ + Google\x20Inc.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20\ + Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\ + \x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License\ + .\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\ + \n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20\ + Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20i\ + n\x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\ + \x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\ + \x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20ex\ + press\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20spec\ + ific\x20language\x20governing\x20permissions\x20and\n\x20limitations\x20\ + under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\n\x02\x03\ + \0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\06\n\t\n\x02\x03\x02\x12\ + \x03\x14\09\n\t\n\x02\x03\x03\x12\x03\x15\0)\n\x08\n\x01\x08\x12\x03\x17\ + \0\x1f\n\t\n\x02\x08\x1f\x12\x03\x17\0\x1f\n\x08\n\x01\x08\x12\x03\x18\0\ + a\n\t\n\x02\x08\x0b\x12\x03\x18\0a\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\ + \x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0/\n\t\n\x02\x08\ + \x08\x12\x03\x1a\0/\n\x08\n\x01\x08\x12\x03\x1b\09\n\t\n\x02\x08\x01\x12\ + \x03\x1b\09\n<\n\x02\x04\0\x12\x04\x1e\0p\x01\x1a0\x20Represents\x20info\ + rmation\x20regarding\x20an\x20operation.\n\n\n\n\x03\x04\0\x01\x12\x03\ + \x1e\x08\x11\nN\n\x04\x04\0\x04\0\x12\x04\x20\x02)\x03\x1a@\x20Defines\ + \x20the\x20importance\x20of\x20the\x20data\x20contained\x20in\x20the\x20\ + operation.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\x20\x07\x11\n\x90\x01\n\ + \x06\x04\0\x04\0\x02\0\x12\x03#\x04\x0c\x1a\x80\x01\x20The\x20API\x20imp\ + lementation\x20may\x20cache\x20and\x20aggregate\x20the\x20data.\n\x20The\ + \x20data\x20may\x20be\x20lost\x20when\x20rare\x20and\x20unexpected\x20sy\ + stem\x20failures\x20occur.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03#\ + \x04\x07\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03#\n\x0b\n\xb9\x01\n\ + \x06\x04\0\x04\0\x02\x01\x12\x03(\x04\r\x1a\xa9\x01\x20The\x20API\x20imp\ + lementation\x20doesn't\x20cache\x20and\x20aggregate\x20the\x20data.\n\ + \x20If\x20the\x20method\x20returns\x20successfully,\x20it's\x20guarantee\ + d\x20that\x20the\x20data\x20has\n\x20been\x20persisted\x20in\x20durable\ + \x20storage.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03(\x04\x08\n\ + \x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03(\x0b\x0c\n\xdd\x03\n\x04\x04\ + \0\x02\0\x12\x034\x02\x1a\x1a\xcf\x03\x20Identity\x20of\x20the\x20operat\ + ion.\x20This\x20must\x20be\x20unique\x20within\x20the\x20scope\x20of\x20\ + the\n\x20service\x20that\x20generated\x20the\x20operation.\x20If\x20the\ + \x20service\x20calls\n\x20Check()\x20and\x20Report()\x20on\x20the\x20sam\ + e\x20operation,\x20the\x20two\x20calls\x20should\x20carry\n\x20the\x20sa\ + me\x20id.\n\n\x20UUID\x20version\x204\x20is\x20recommended,\x20though\ + \x20not\x20required.\n\x20In\x20scenarios\x20where\x20an\x20operation\ + \x20is\x20computed\x20from\x20existing\x20information\n\x20and\x20an\x20\ + idempotent\x20id\x20is\x20desirable\x20for\x20deduplication\x20purpose,\ + \x20UUID\x20version\x205\n\x20is\x20recommended.\x20See\x20RFC\x204122\ + \x20for\x20details.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x034\x02\x08\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x034\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x034\x18\x19\nN\n\x04\x04\0\x02\x01\x12\x037\x02\x1c\x1aA\x20Fully\x20q\ + ualified\x20name\x20of\x20the\x20operation.\x20Reserved\x20for\x20future\ + \x20use.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x037\x02\x08\n\x0c\n\x05\ + \x04\0\x02\x01\x01\x12\x037\t\x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x037\ + \x1a\x1b\n\xe8\x02\n\x04\x04\0\x02\x02\x12\x03B\x02\x19\x1a\xda\x02\x20I\ + dentity\x20of\x20the\x20consumer\x20who\x20is\x20using\x20the\x20service\ + .\n\x20This\x20field\x20should\x20be\x20filled\x20in\x20for\x20the\x20op\ + erations\x20initiated\x20by\x20a\n\x20consumer,\x20but\x20not\x20for\x20\ + service-initiated\x20operations\x20that\x20are\n\x20not\x20related\x20to\ + \x20a\x20specific\x20consumer.\n\n\x20This\x20can\x20be\x20in\x20one\x20\ + of\x20the\x20following\x20formats:\n\x20\x20\x20project:,\n\ + \x20\x20\x20project_number:,\n\x20\x20\x20api_key:.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03B\x02\x08\n\x0c\n\x05\x04\0\ + \x02\x02\x01\x12\x03B\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03B\x17\ + \x18\n5\n\x04\x04\0\x02\x03\x12\x03E\x02+\x1a(\x20Required.\x20Start\x20\ + time\x20of\x20the\x20operation.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03E\ + \x02\x1b\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03E\x1c&\n\x0c\n\x05\x04\0\ + \x02\x03\x03\x12\x03E)*\n\xa4\x02\n\x04\x04\0\x02\x04\x12\x03L\x02)\x1a\ + \x96\x02\x20End\x20time\x20of\x20the\x20operation.\n\x20Required\x20when\ + \x20the\x20operation\x20is\x20used\x20in\n\x20[ServiceController.Report]\ + [google.api.servicecontrol.v1.ServiceController.Report],\n\x20but\x20opt\ + ional\x20when\x20the\x20operation\x20is\x20used\x20in\n\x20[ServiceContr\ + oller.Check][google.api.servicecontrol.v1.ServiceController.Check].\n\n\ + \x0c\n\x05\x04\0\x02\x04\x06\x12\x03L\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\ + \x01\x12\x03L\x1c$\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03L'(\n\xa3\x06\n\ + \x04\x04\0\x02\x05\x12\x03]\x02!\x1a\x95\x06\x20Labels\x20describing\x20\ + the\x20operation.\x20Only\x20the\x20following\x20labels\x20are\x20allowe\ + d:\n\n\x20-\x20Labels\x20describing\x20monitored\x20resources\x20as\x20d\ + efined\x20in\n\x20\x20\x20the\x20service\x20configuration.\n\x20-\x20Def\ + ault\x20labels\x20of\x20metric\x20values.\x20When\x20specified,\x20label\ + s\x20defined\x20in\x20the\n\x20\x20\x20metric\x20value\x20override\x20th\ + ese\x20default.\n\x20-\x20The\x20following\x20labels\x20defined\x20by\ + \x20Google\x20Cloud\x20Platform:\n\x20\x20\x20\x20\x20-\x20`cloud.google\ + apis.com/location`\x20describing\x20the\x20location\x20where\x20the\n\ + \x20\x20\x20\x20\x20\x20\x20\x20operation\x20happened,\n\x20\x20\x20\x20\ + \x20-\x20`servicecontrol.googleapis.com/user_agent`\x20describing\x20the\ + \x20user\x20agent\n\x20\x20\x20\x20\x20\x20\x20\x20of\x20the\x20API\x20r\ + equest,\n\x20\x20\x20\x20\x20-\x20`servicecontrol.googleapis.com/service\ + _agent`\x20describing\x20the\x20service\n\x20\x20\x20\x20\x20\x20\x20\ + \x20used\x20to\x20handle\x20the\x20API\x20request\x20(e.g.\x20ESP),\n\ + \x20\x20\x20\x20\x20-\x20`servicecontrol.googleapis.com/platform`\x20des\ + cribing\x20the\x20platform\n\x20\x20\x20\x20\x20\x20\x20\x20where\x20the\ + \x20API\x20is\x20served\x20(e.g.\x20GAE,\x20GCE,\x20GKE).\n\n\x0c\n\x05\ + \x04\0\x02\x05\x06\x12\x03]\x02\x15\n\x0c\n\x05\x04\0\x02\x05\x01\x12\ + \x03]\x16\x1c\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03]\x1f\x20\n\x9a\x04\n\ + \x04\x04\0\x02\x06\x12\x03i\x020\x1a\x8c\x04\x20Represents\x20informatio\ + n\x20about\x20this\x20operation.\x20Each\x20MetricValueSet\n\x20correspo\ + nds\x20to\x20a\x20metric\x20defined\x20in\x20the\x20service\x20configura\ + tion.\n\x20The\x20data\x20type\x20used\x20in\x20the\x20MetricValueSet\ + \x20must\x20agree\x20with\n\x20the\x20data\x20type\x20specified\x20in\ + \x20the\x20metric\x20definition.\n\n\x20Within\x20a\x20single\x20operati\ + on,\x20it\x20is\x20not\x20allowed\x20to\x20have\x20more\x20than\x20one\n\ + \x20MetricValue\x20instances\x20that\x20have\x20the\x20same\x20metric\ + \x20names\x20and\x20identical\n\x20label\x20value\x20combinations.\x20If\ + \x20a\x20request\x20has\x20such\x20duplicated\x20MetricValue\n\x20instan\ + ces,\x20the\x20entire\x20request\x20is\x20rejected\x20with\n\x20an\x20in\ + valid\x20argument\x20error.\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03i\x02\ + \n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03i\x0b\x19\n\x0c\n\x05\x04\0\x02\ + \x06\x01\x12\x03i\x1a+\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03i./\n3\n\x04\ + \x04\0\x02\x07\x12\x03l\x02$\x1a&\x20Represents\x20information\x20to\x20\ + be\x20logged.\n\n\x0c\n\x05\x04\0\x02\x07\x04\x12\x03l\x02\n\n\x0c\n\x05\ + \x04\0\x02\x07\x06\x12\x03l\x0b\x13\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ + \x03l\x14\x1f\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03l\"#\n9\n\x04\x04\0\ + \x02\x08\x12\x03o\x02\x1d\x1a,\x20DO\x20NOT\x20USE.\x20This\x20is\x20an\ + \x20experimental\x20field.\n\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03o\x02\ + \x0c\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03o\r\x17\n\x0c\n\x05\x04\0\x02\ + \x08\x03\x12\x03o\x1a\x1cb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(4); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::log_entry::file_descriptor().clone()); + deps.push(super::metric_value::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Operation::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(operation::Importance::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs b/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs index 66a96e0..3166380 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,38 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/quota_controller.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for the AllocateQuota method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.AllocateQuotaRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AllocateQuotaRequest { // message fields + /// Name of the service as specified in the service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See [google.api.Service][google.api.Service] for the definition of a + /// service name. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaRequest.service_name) pub service_name: ::std::string::String, - pub allocate_operation: ::protobuf::SingularPtrField, + /// Operation that describes the quota allocation. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaRequest.allocate_operation) + pub allocate_operation: ::protobuf::MessageField, + /// Specifies which version of service configuration should be used to process + /// the request. If unspecified or no matching version can be found, the latest + /// one will be used. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaRequest.service_config_id) pub service_config_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.AllocateQuotaRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AllocateQuotaRequest { @@ -45,117 +61,53 @@ impl AllocateQuotaRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // .google.api.servicecontrol.v1.QuotaOperation allocate_operation = 2; - - - pub fn get_allocate_operation(&self) -> &QuotaOperation { - self.allocate_operation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_allocate_operation(&mut self) { - self.allocate_operation.clear(); - } - - pub fn has_allocate_operation(&self) -> bool { - self.allocate_operation.is_some() - } - - // Param is passed by value, moved - pub fn set_allocate_operation(&mut self, v: QuotaOperation) { - self.allocate_operation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_allocate_operation(&mut self) -> &mut QuotaOperation { - if self.allocate_operation.is_none() { - self.allocate_operation.set_default(); - } - self.allocate_operation.as_mut().unwrap() - } - - // Take field - pub fn take_allocate_operation(&mut self) -> QuotaOperation { - self.allocate_operation.take().unwrap_or_else(|| QuotaOperation::new()) - } - - // string service_config_id = 4; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &AllocateQuotaRequest| { &m.service_name }, + |m: &mut AllocateQuotaRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, QuotaOperation>( + "allocate_operation", + |m: &AllocateQuotaRequest| { &m.allocate_operation }, + |m: &mut AllocateQuotaRequest| { &mut m.allocate_operation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &AllocateQuotaRequest| { &m.service_config_id }, + |m: &mut AllocateQuotaRequest| { &mut m.service_config_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AllocateQuotaRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for AllocateQuotaRequest { + const NAME: &'static str = "AllocateQuotaRequest"; + fn is_initialized(&self) -> bool { - for v in &self.allocate_operation { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.allocate_operation)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.allocate_operation)?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 34 => { + self.service_config_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -164,135 +116,130 @@ impl ::protobuf::Message for AllocateQuotaRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - if let Some(ref v) = self.allocate_operation.as_ref() { + if let Some(v) = self.allocate_operation.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.service_config_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - if let Some(ref v) = self.allocate_operation.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.allocate_operation.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if !self.service_config_id.is_empty() { os.write_string(4, &self.service_config_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AllocateQuotaRequest { AllocateQuotaRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &AllocateQuotaRequest| { &m.service_name }, - |m: &mut AllocateQuotaRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "allocate_operation", - |m: &AllocateQuotaRequest| { &m.allocate_operation }, - |m: &mut AllocateQuotaRequest| { &mut m.allocate_operation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &AllocateQuotaRequest| { &m.service_config_id }, - |m: &mut AllocateQuotaRequest| { &mut m.service_config_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AllocateQuotaRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.allocate_operation.clear(); + self.service_config_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static AllocateQuotaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AllocateQuotaRequest::new) + static instance: AllocateQuotaRequest = AllocateQuotaRequest { + service_name: ::std::string::String::new(), + allocate_operation: ::protobuf::MessageField::none(), + service_config_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AllocateQuotaRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.allocate_operation.clear(); - self.service_config_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AllocateQuotaRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AllocateQuotaRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for AllocateQuotaRequest { +impl ::std::fmt::Display for AllocateQuotaRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AllocateQuotaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Represents information regarding a quota operation. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.QuotaOperation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct QuotaOperation { // message fields + /// Identity of the operation. This is expected to be unique within the scope + /// of the service that generated the operation, and guarantees idempotency in + /// case of retries. + /// + /// UUID version 4 is recommended, though not required. In scenarios where an + /// operation is computed from existing information and an idempotent id is + /// desirable for deduplication purpose, UUID version 5 is recommended. See + /// RFC 4122 for details. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.operation_id) pub operation_id: ::std::string::String, + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.method_name) pub method_name: ::std::string::String, + /// Identity of the consumer for whom this quota operation is being performed. + /// + /// This can be in one of the following formats: + /// project:, + /// project_number:, + /// api_key:. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.consumer_id) pub consumer_id: ::std::string::String, + /// Labels describing the operation. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub quota_metrics: ::protobuf::RepeatedField, - pub quota_mode: QuotaOperation_QuotaMode, + /// Represents information about this operation. Each MetricValueSet + /// corresponds to a metric defined in the service configuration. + /// The data type used in the MetricValueSet must agree with + /// the data type specified in the metric definition. + /// + /// Within a single operation, it is not allowed to have more than one + /// MetricValue instances that have the same metric names and identical + /// label value combinations. If a request has such duplicated MetricValue + /// instances, the entire request is rejected with + /// an invalid argument error. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.quota_metrics) + pub quota_metrics: ::std::vec::Vec, + /// Quota mode for this operation. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaOperation.quota_mode) + pub quota_mode: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.QuotaOperation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a QuotaOperation { @@ -306,184 +253,89 @@ impl QuotaOperation { ::std::default::Default::default() } - // string operation_id = 1; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) - } - - // string method_name = 2; - - - pub fn get_method_name(&self) -> &str { - &self.method_name - } - pub fn clear_method_name(&mut self) { - self.method_name.clear(); - } - - // Param is passed by value, moved - pub fn set_method_name(&mut self, v: ::std::string::String) { - self.method_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_method_name(&mut self) -> &mut ::std::string::String { - &mut self.method_name - } - - // Take field - pub fn take_method_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.method_name, ::std::string::String::new()) - } - - // string consumer_id = 3; - - - pub fn get_consumer_id(&self) -> &str { - &self.consumer_id - } - pub fn clear_consumer_id(&mut self) { - self.consumer_id.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_id(&mut self, v: ::std::string::String) { - self.consumer_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consumer_id(&mut self) -> &mut ::std::string::String { - &mut self.consumer_id - } - - // Take field - pub fn take_consumer_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.consumer_id, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.QuotaOperation.LabelsEntry labels = 4; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 5; - - - pub fn get_quota_metrics(&self) -> &[super::metric_value::MetricValueSet] { - &self.quota_metrics - } - pub fn clear_quota_metrics(&mut self) { - self.quota_metrics.clear(); - } - - // Param is passed by value, moved - pub fn set_quota_metrics(&mut self, v: ::protobuf::RepeatedField) { - self.quota_metrics = v; - } - - // Mutable pointer to the field. - pub fn mut_quota_metrics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.quota_metrics - } - - // Take field - pub fn take_quota_metrics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.quota_metrics, ::protobuf::RepeatedField::new()) - } - - // .google.api.servicecontrol.v1.QuotaOperation.QuotaMode quota_mode = 6; - - - pub fn get_quota_mode(&self) -> QuotaOperation_QuotaMode { - self.quota_mode - } - pub fn clear_quota_mode(&mut self) { - self.quota_mode = QuotaOperation_QuotaMode::UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_quota_mode(&mut self, v: QuotaOperation_QuotaMode) { - self.quota_mode = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &QuotaOperation| { &m.operation_id }, + |m: &mut QuotaOperation| { &mut m.operation_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "method_name", + |m: &QuotaOperation| { &m.method_name }, + |m: &mut QuotaOperation| { &mut m.method_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consumer_id", + |m: &QuotaOperation| { &m.consumer_id }, + |m: &mut QuotaOperation| { &mut m.consumer_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &QuotaOperation| { &m.labels }, + |m: &mut QuotaOperation| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "quota_metrics", + |m: &QuotaOperation| { &m.quota_metrics }, + |m: &mut QuotaOperation| { &mut m.quota_metrics }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "quota_mode", + |m: &QuotaOperation| { &m.quota_mode }, + |m: &mut QuotaOperation| { &mut m.quota_mode }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QuotaOperation", + fields, + oneofs, + ) } } impl ::protobuf::Message for QuotaOperation { + const NAME: &'static str = "QuotaOperation"; + fn is_initialized(&self) -> bool { - for v in &self.quota_metrics { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.method_name)?; + 18 => { + self.method_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; + 26 => { + self.consumer_id = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 34 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; + 42 => { + self.quota_metrics.push(is.read_message()?); }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.quota_mode, 6, &mut self.unknown_fields)? + 48 => { + self.quota_mode = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -492,7 +344,7 @@ impl ::protobuf::Message for QuotaOperation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.operation_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.operation_id); @@ -503,20 +355,25 @@ impl ::protobuf::Message for QuotaOperation { if !self.consumer_id.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.consumer_id); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; for value in &self.quota_metrics { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.quota_mode); + if self.quota_mode != ::protobuf::EnumOrUnknown::new(quota_operation::QuotaMode::UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(6, self.quota_mode.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.operation_id.is_empty() { os.write_string(1, &self.operation_id)?; } @@ -526,193 +383,176 @@ impl ::protobuf::Message for QuotaOperation { if !self.consumer_id.is_empty() { os.write_string(3, &self.consumer_id)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels, os)?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(34)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; for v in &self.quota_metrics { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }; - if self.quota_mode != QuotaOperation_QuotaMode::UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.quota_mode))?; + if self.quota_mode != ::protobuf::EnumOrUnknown::new(quota_operation::QuotaMode::UNSPECIFIED) { + os.write_enum(6, ::protobuf::EnumOrUnknown::value(&self.quota_mode))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> QuotaOperation { QuotaOperation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &QuotaOperation| { &m.operation_id }, - |m: &mut QuotaOperation| { &mut m.operation_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "method_name", - |m: &QuotaOperation| { &m.method_name }, - |m: &mut QuotaOperation| { &mut m.method_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consumer_id", - |m: &QuotaOperation| { &m.consumer_id }, - |m: &mut QuotaOperation| { &mut m.consumer_id }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &QuotaOperation| { &m.labels }, - |m: &mut QuotaOperation| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "quota_metrics", - |m: &QuotaOperation| { &m.quota_metrics }, - |m: &mut QuotaOperation| { &mut m.quota_metrics }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "quota_mode", - |m: &QuotaOperation| { &m.quota_mode }, - |m: &mut QuotaOperation| { &mut m.quota_mode }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaOperation", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.operation_id.clear(); + self.method_name.clear(); + self.consumer_id.clear(); + self.labels.clear(); + self.quota_metrics.clear(); + self.quota_mode = ::protobuf::EnumOrUnknown::new(quota_operation::QuotaMode::UNSPECIFIED); + self.special_fields.clear(); } fn default_instance() -> &'static QuotaOperation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(QuotaOperation::new) } } -impl ::protobuf::Clear for QuotaOperation { - fn clear(&mut self) { - self.operation_id.clear(); - self.method_name.clear(); - self.consumer_id.clear(); - self.labels.clear(); - self.quota_metrics.clear(); - self.quota_mode = QuotaOperation_QuotaMode::UNSPECIFIED; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for QuotaOperation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("QuotaOperation").unwrap()).clone() } } -impl ::std::fmt::Debug for QuotaOperation { +impl ::std::fmt::Display for QuotaOperation { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for QuotaOperation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum QuotaOperation_QuotaMode { - UNSPECIFIED = 0, - NORMAL = 1, - BEST_EFFORT = 2, - CHECK_ONLY = 3, - QUERY_ONLY = 4, - ADJUST_ONLY = 5, -} +/// Nested message and enums of message `QuotaOperation` +pub mod quota_operation { + /// Supported quota modes. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicecontrol.v1.QuotaOperation.QuotaMode) + pub enum QuotaMode { + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaOperation.QuotaMode.UNSPECIFIED) + UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaOperation.QuotaMode.NORMAL) + NORMAL = 1, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaOperation.QuotaMode.BEST_EFFORT) + BEST_EFFORT = 2, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaOperation.QuotaMode.CHECK_ONLY) + CHECK_ONLY = 3, + } + + impl ::protobuf::Enum for QuotaMode { + const NAME: &'static str = "QuotaMode"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for QuotaOperation_QuotaMode { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(QuotaMode::UNSPECIFIED), + 1 => ::std::option::Option::Some(QuotaMode::NORMAL), + 2 => ::std::option::Option::Some(QuotaMode::BEST_EFFORT), + 3 => ::std::option::Option::Some(QuotaMode::CHECK_ONLY), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(QuotaOperation_QuotaMode::UNSPECIFIED), - 1 => ::std::option::Option::Some(QuotaOperation_QuotaMode::NORMAL), - 2 => ::std::option::Option::Some(QuotaOperation_QuotaMode::BEST_EFFORT), - 3 => ::std::option::Option::Some(QuotaOperation_QuotaMode::CHECK_ONLY), - 4 => ::std::option::Option::Some(QuotaOperation_QuotaMode::QUERY_ONLY), - 5 => ::std::option::Option::Some(QuotaOperation_QuotaMode::ADJUST_ONLY), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "UNSPECIFIED" => ::std::option::Option::Some(QuotaMode::UNSPECIFIED), + "NORMAL" => ::std::option::Option::Some(QuotaMode::NORMAL), + "BEST_EFFORT" => ::std::option::Option::Some(QuotaMode::BEST_EFFORT), + "CHECK_ONLY" => ::std::option::Option::Some(QuotaMode::CHECK_ONLY), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [QuotaOperation_QuotaMode] = &[ - QuotaOperation_QuotaMode::UNSPECIFIED, - QuotaOperation_QuotaMode::NORMAL, - QuotaOperation_QuotaMode::BEST_EFFORT, - QuotaOperation_QuotaMode::CHECK_ONLY, - QuotaOperation_QuotaMode::QUERY_ONLY, - QuotaOperation_QuotaMode::ADJUST_ONLY, + const VALUES: &'static [QuotaMode] = &[ + QuotaMode::UNSPECIFIED, + QuotaMode::NORMAL, + QuotaMode::BEST_EFFORT, + QuotaMode::CHECK_ONLY, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("QuotaOperation.QuotaMode", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for QuotaMode { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("QuotaOperation.QuotaMode").unwrap()).clone() + } -impl ::std::marker::Copy for QuotaOperation_QuotaMode { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for QuotaOperation_QuotaMode { - fn default() -> Self { - QuotaOperation_QuotaMode::UNSPECIFIED + impl ::std::default::Default for QuotaMode { + fn default() -> Self { + QuotaMode::UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for QuotaOperation_QuotaMode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl QuotaMode { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("QuotaOperation.QuotaMode") + } } } -#[derive(PartialEq,Clone,Default)] +/// Response message for the AllocateQuota method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.AllocateQuotaResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AllocateQuotaResponse { // message fields + /// The same operation_id value used in the AllocateQuotaRequest. Used for + /// logging and diagnostics purposes. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaResponse.operation_id) pub operation_id: ::std::string::String, - pub allocate_errors: ::protobuf::RepeatedField, - pub quota_metrics: ::protobuf::RepeatedField, + /// Indicates the decision of the allocate. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaResponse.allocate_errors) + pub allocate_errors: ::std::vec::Vec, + /// Quota metrics to indicate the result of allocation. Depending on the + /// request, one or more of the following metrics will be included: + /// + /// 1. Per quota group or per quota metric incremental usage will be specified + /// using the following delta metric : + /// "serviceruntime.googleapis.com/api/consumer/quota_used_count" + /// + /// 2. The quota limit reached condition will be specified using the following + /// boolean metric : + /// "serviceruntime.googleapis.com/quota/exceeded" + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaResponse.quota_metrics) + pub quota_metrics: ::std::vec::Vec, + /// ID of the actual config used to process the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.AllocateQuotaResponse.service_config_id) pub service_config_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.AllocateQuotaResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AllocateQuotaResponse { @@ -726,142 +566,61 @@ impl AllocateQuotaResponse { ::std::default::Default::default() } - // string operation_id = 1; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.QuotaError allocate_errors = 2; - - - pub fn get_allocate_errors(&self) -> &[QuotaError] { - &self.allocate_errors - } - pub fn clear_allocate_errors(&mut self) { - self.allocate_errors.clear(); - } - - // Param is passed by value, moved - pub fn set_allocate_errors(&mut self, v: ::protobuf::RepeatedField) { - self.allocate_errors = v; - } - - // Mutable pointer to the field. - pub fn mut_allocate_errors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.allocate_errors - } - - // Take field - pub fn take_allocate_errors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.allocate_errors, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.servicecontrol.v1.MetricValueSet quota_metrics = 3; - - - pub fn get_quota_metrics(&self) -> &[super::metric_value::MetricValueSet] { - &self.quota_metrics - } - pub fn clear_quota_metrics(&mut self) { - self.quota_metrics.clear(); - } - - // Param is passed by value, moved - pub fn set_quota_metrics(&mut self, v: ::protobuf::RepeatedField) { - self.quota_metrics = v; - } - - // Mutable pointer to the field. - pub fn mut_quota_metrics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.quota_metrics - } - - // Take field - pub fn take_quota_metrics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.quota_metrics, ::protobuf::RepeatedField::new()) - } - - // string service_config_id = 4; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &AllocateQuotaResponse| { &m.operation_id }, + |m: &mut AllocateQuotaResponse| { &mut m.operation_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "allocate_errors", + |m: &AllocateQuotaResponse| { &m.allocate_errors }, + |m: &mut AllocateQuotaResponse| { &mut m.allocate_errors }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "quota_metrics", + |m: &AllocateQuotaResponse| { &m.quota_metrics }, + |m: &mut AllocateQuotaResponse| { &mut m.quota_metrics }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &AllocateQuotaResponse| { &m.service_config_id }, + |m: &mut AllocateQuotaResponse| { &mut m.service_config_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AllocateQuotaResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for AllocateQuotaResponse { + const NAME: &'static str = "AllocateQuotaResponse"; + fn is_initialized(&self) -> bool { - for v in &self.allocate_errors { - if !v.is_initialized() { - return false; - } - }; - for v in &self.quota_metrics { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.allocate_errors)?; + 18 => { + self.allocate_errors.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.quota_metrics)?; + 26 => { + self.quota_metrics.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 34 => { + self.service_config_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -870,148 +629,113 @@ impl ::protobuf::Message for AllocateQuotaResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.operation_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.operation_id); } for value in &self.allocate_errors { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.quota_metrics { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.service_config_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.operation_id.is_empty() { os.write_string(1, &self.operation_id)?; } for v in &self.allocate_errors { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; for v in &self.quota_metrics { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; if !self.service_config_id.is_empty() { os.write_string(4, &self.service_config_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AllocateQuotaResponse { AllocateQuotaResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &AllocateQuotaResponse| { &m.operation_id }, - |m: &mut AllocateQuotaResponse| { &mut m.operation_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "allocate_errors", - |m: &AllocateQuotaResponse| { &m.allocate_errors }, - |m: &mut AllocateQuotaResponse| { &mut m.allocate_errors }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "quota_metrics", - |m: &AllocateQuotaResponse| { &m.quota_metrics }, - |m: &mut AllocateQuotaResponse| { &mut m.quota_metrics }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &AllocateQuotaResponse| { &m.service_config_id }, - |m: &mut AllocateQuotaResponse| { &mut m.service_config_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AllocateQuotaResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.operation_id.clear(); + self.allocate_errors.clear(); + self.quota_metrics.clear(); + self.service_config_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static AllocateQuotaResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AllocateQuotaResponse::new) + static instance: AllocateQuotaResponse = AllocateQuotaResponse { + operation_id: ::std::string::String::new(), + allocate_errors: ::std::vec::Vec::new(), + quota_metrics: ::std::vec::Vec::new(), + service_config_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AllocateQuotaResponse { - fn clear(&mut self) { - self.operation_id.clear(); - self.allocate_errors.clear(); - self.quota_metrics.clear(); - self.service_config_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AllocateQuotaResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AllocateQuotaResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for AllocateQuotaResponse { +impl ::std::fmt::Display for AllocateQuotaResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AllocateQuotaResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Represents error information for +/// [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation]. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.QuotaError) +#[derive(PartialEq,Clone,Default,Debug)] pub struct QuotaError { // message fields - pub code: QuotaError_Code, + /// Error code. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaError.code) + pub code: ::protobuf::EnumOrUnknown, + /// Subject to whom this error applies. See the specific enum for more details + /// on this field. For example, "clientip:" or + /// "project:". + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaError.subject) pub subject: ::std::string::String, + /// Free-form text that provides details on the cause of the error. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.QuotaError.description) pub description: ::std::string::String, - pub status: ::protobuf::SingularPtrField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.QuotaError.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a QuotaError { @@ -1025,135 +749,53 @@ impl QuotaError { ::std::default::Default::default() } - // .google.api.servicecontrol.v1.QuotaError.Code code = 1; - - - pub fn get_code(&self) -> QuotaError_Code { - self.code - } - pub fn clear_code(&mut self) { - self.code = QuotaError_Code::UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_code(&mut self, v: QuotaError_Code) { - self.code = v; - } - - // string subject = 2; - - - pub fn get_subject(&self) -> &str { - &self.subject - } - pub fn clear_subject(&mut self) { - self.subject.clear(); - } - - // Param is passed by value, moved - pub fn set_subject(&mut self, v: ::std::string::String) { - self.subject = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subject(&mut self) -> &mut ::std::string::String { - &mut self.subject - } - - // Take field - pub fn take_subject(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subject, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.rpc.Status status = 4; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "code", + |m: &QuotaError| { &m.code }, + |m: &mut QuotaError| { &mut m.code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subject", + |m: &QuotaError| { &m.subject }, + |m: &mut QuotaError| { &mut m.subject }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &QuotaError| { &m.description }, + |m: &mut QuotaError| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QuotaError", + fields, + oneofs, + ) } } impl ::protobuf::Message for QuotaError { + const NAME: &'static str = "QuotaError"; + fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.code = is.read_enum_or_unknown()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subject)?; + 18 => { + self.subject = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1162,10 +804,10 @@ impl ::protobuf::Message for QuotaError { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.code != QuotaError_Code::UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.code); + if self.code != ::protobuf::EnumOrUnknown::new(quota_error::Code::UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.code.value()); } if !self.subject.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.subject); @@ -1173,18 +815,14 @@ impl ::protobuf::Message for QuotaError { if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.description); } - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.code != QuotaError_Code::UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.code != ::protobuf::EnumOrUnknown::new(quota_error::Code::UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.code))?; } if !self.subject.is_empty() { os.write_string(2, &self.subject)?; @@ -1192,477 +830,439 @@ impl ::protobuf::Message for QuotaError { if !self.description.is_empty() { os.write_string(3, &self.description)?; } - if let Some(ref v) = self.status.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> QuotaError { QuotaError::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "code", - |m: &QuotaError| { &m.code }, - |m: &mut QuotaError| { &mut m.code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subject", - |m: &QuotaError| { &m.subject }, - |m: &mut QuotaError| { &mut m.subject }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &QuotaError| { &m.description }, - |m: &mut QuotaError| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &QuotaError| { &m.status }, - |m: &mut QuotaError| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaError", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.code = ::protobuf::EnumOrUnknown::new(quota_error::Code::UNSPECIFIED); + self.subject.clear(); + self.description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static QuotaError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QuotaError::new) + static instance: QuotaError = QuotaError { + code: ::protobuf::EnumOrUnknown::from_i32(0), + subject: ::std::string::String::new(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for QuotaError { - fn clear(&mut self) { - self.code = QuotaError_Code::UNSPECIFIED; - self.subject.clear(); - self.description.clear(); - self.status.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for QuotaError { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("QuotaError").unwrap()).clone() } } -impl ::std::fmt::Debug for QuotaError { +impl ::std::fmt::Display for QuotaError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for QuotaError { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum QuotaError_Code { - UNSPECIFIED = 0, - RESOURCE_EXHAUSTED = 8, - BILLING_NOT_ACTIVE = 107, - PROJECT_DELETED = 108, - API_KEY_INVALID = 105, - API_KEY_EXPIRED = 112, -} +/// Nested message and enums of message `QuotaError` +pub mod quota_error { + /// Error codes related to project config validations are deprecated since the + /// quota controller methods do not perform these validations. Instead services + /// have to call the Check method, without quota_properties field, to perform + /// these validations before calling the quota controller methods. These + /// methods check only for project deletion to be wipe out compliant. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicecontrol.v1.QuotaError.Code) + pub enum Code { + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.UNSPECIFIED) + UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.RESOURCE_EXHAUSTED) + RESOURCE_EXHAUSTED = 8, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.BILLING_NOT_ACTIVE) + BILLING_NOT_ACTIVE = 107, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.PROJECT_DELETED) + PROJECT_DELETED = 108, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.API_KEY_INVALID) + API_KEY_INVALID = 105, + // @@protoc_insertion_point(enum_value:google.api.servicecontrol.v1.QuotaError.Code.API_KEY_EXPIRED) + API_KEY_EXPIRED = 112, + } + + impl ::protobuf::Enum for Code { + const NAME: &'static str = "Code"; + + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for QuotaError_Code { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Code::UNSPECIFIED), + 8 => ::std::option::Option::Some(Code::RESOURCE_EXHAUSTED), + 107 => ::std::option::Option::Some(Code::BILLING_NOT_ACTIVE), + 108 => ::std::option::Option::Some(Code::PROJECT_DELETED), + 105 => ::std::option::Option::Some(Code::API_KEY_INVALID), + 112 => ::std::option::Option::Some(Code::API_KEY_EXPIRED), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(QuotaError_Code::UNSPECIFIED), - 8 => ::std::option::Option::Some(QuotaError_Code::RESOURCE_EXHAUSTED), - 107 => ::std::option::Option::Some(QuotaError_Code::BILLING_NOT_ACTIVE), - 108 => ::std::option::Option::Some(QuotaError_Code::PROJECT_DELETED), - 105 => ::std::option::Option::Some(QuotaError_Code::API_KEY_INVALID), - 112 => ::std::option::Option::Some(QuotaError_Code::API_KEY_EXPIRED), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "UNSPECIFIED" => ::std::option::Option::Some(Code::UNSPECIFIED), + "RESOURCE_EXHAUSTED" => ::std::option::Option::Some(Code::RESOURCE_EXHAUSTED), + "BILLING_NOT_ACTIVE" => ::std::option::Option::Some(Code::BILLING_NOT_ACTIVE), + "PROJECT_DELETED" => ::std::option::Option::Some(Code::PROJECT_DELETED), + "API_KEY_INVALID" => ::std::option::Option::Some(Code::API_KEY_INVALID), + "API_KEY_EXPIRED" => ::std::option::Option::Some(Code::API_KEY_EXPIRED), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [QuotaError_Code] = &[ - QuotaError_Code::UNSPECIFIED, - QuotaError_Code::RESOURCE_EXHAUSTED, - QuotaError_Code::BILLING_NOT_ACTIVE, - QuotaError_Code::PROJECT_DELETED, - QuotaError_Code::API_KEY_INVALID, - QuotaError_Code::API_KEY_EXPIRED, + const VALUES: &'static [Code] = &[ + Code::UNSPECIFIED, + Code::RESOURCE_EXHAUSTED, + Code::BILLING_NOT_ACTIVE, + Code::PROJECT_DELETED, + Code::API_KEY_INVALID, + Code::API_KEY_EXPIRED, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("QuotaError.Code", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Code { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("QuotaError.Code").unwrap()).clone() + } -impl ::std::marker::Copy for QuotaError_Code { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + Code::UNSPECIFIED => 0, + Code::RESOURCE_EXHAUSTED => 1, + Code::BILLING_NOT_ACTIVE => 2, + Code::PROJECT_DELETED => 3, + Code::API_KEY_INVALID => 4, + Code::API_KEY_EXPIRED => 5, + }; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for QuotaError_Code { - fn default() -> Self { - QuotaError_Code::UNSPECIFIED + impl ::std::default::Default for Code { + fn default() -> Self { + Code::UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for QuotaError_Code { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Code { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("QuotaError.Code") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n3google/api/servicecontrol/v1/quota_controller.proto\x12\x1cgoogle.api\ .servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a/google/api/se\ - rvicecontrol/v1/metric_value.proto\x1a\x17google/rpc/status.proto\x1a\ - \x17google/api/client.proto\"\xc2\x01\n\x14AllocateQuotaRequest\x12!\n\ - \x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12[\n\x12allocate_o\ - peration\x18\x02\x20\x01(\x0b2,.google.api.servicecontrol.v1.QuotaOperat\ - ionR\x11allocateOperation\x12*\n\x11service_config_id\x18\x04\x20\x01(\t\ - R\x0fserviceConfigId\"\x98\x04\n\x0eQuotaOperation\x12!\n\x0coperation_i\ - d\x18\x01\x20\x01(\tR\x0boperationId\x12\x1f\n\x0bmethod_name\x18\x02\ - \x20\x01(\tR\nmethodName\x12\x1f\n\x0bconsumer_id\x18\x03\x20\x01(\tR\nc\ - onsumerId\x12P\n\x06labels\x18\x04\x20\x03(\x0b28.google.api.servicecont\ - rol.v1.QuotaOperation.LabelsEntryR\x06labels\x12Q\n\rquota_metrics\x18\ - \x05\x20\x03(\x0b2,.google.api.servicecontrol.v1.MetricValueSetR\x0cquot\ - aMetrics\x12U\n\nquota_mode\x18\x06\x20\x01(\x0e26.google.api.servicecon\ - trol.v1.QuotaOperation.QuotaModeR\tquotaMode\x1a9\n\x0bLabelsEntry\x12\ - \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\ - \x01(\tR\x05value:\x028\x01\"j\n\tQuotaMode\x12\x0f\n\x0bUNSPECIFIED\x10\ - \0\x12\n\n\x06NORMAL\x10\x01\x12\x0f\n\x0bBEST_EFFORT\x10\x02\x12\x0e\n\ - \nCHECK_ONLY\x10\x03\x12\x0e\n\nQUERY_ONLY\x10\x04\x12\x0f\n\x0bADJUST_O\ - NLY\x10\x05\"\x8c\x02\n\x15AllocateQuotaResponse\x12!\n\x0coperation_id\ - \x18\x01\x20\x01(\tR\x0boperationId\x12Q\n\x0fallocate_errors\x18\x02\ - \x20\x03(\x0b2(.google.api.servicecontrol.v1.QuotaErrorR\x0eallocateErro\ - rs\x12Q\n\rquota_metrics\x18\x03\x20\x03(\x0b2,.google.api.servicecontro\ - l.v1.MetricValueSetR\x0cquotaMetrics\x12*\n\x11service_config_id\x18\x04\ - \x20\x01(\tR\x0fserviceConfigId\"\xc0\x02\n\nQuotaError\x12A\n\x04code\ - \x18\x01\x20\x01(\x0e2-.google.api.servicecontrol.v1.QuotaError.CodeR\ - \x04code\x12\x18\n\x07subject\x18\x02\x20\x01(\tR\x07subject\x12\x20\n\ - \x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\x12*\n\x06status\x18\ - \x04\x20\x01(\x0b2\x12.google.rpc.StatusR\x06status\"\x86\x01\n\x04Code\ - \x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\ - \x12\x16\n\x12BILLING_NOT_ACTIVE\x10k\x12\x13\n\x0fPROJECT_DELETED\x10l\ - \x12\x13\n\x0fAPI_KEY_INVALID\x10i\x12\x13\n\x0fAPI_KEY_EXPIRED\x10p2\ - \xc5\x02\n\x0fQuotaController\x12\xae\x01\n\rAllocateQuota\x122.google.a\ - pi.servicecontrol.v1.AllocateQuotaRequest\x1a3.google.api.servicecontrol\ - .v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1/services/{servic\ - e_name}:allocateQuota:\x01*\x1a\x80\x01\xd2A]https://www.googleapis.com/\ - auth/cloud-platform,https://www.googleapis.com/auth/servicecontrol\xcaA\ - \x1dservicecontrol.googleapis.comB\xef\x01\n\x20com.google.api.serviceco\ - ntrol.v1B\x14QuotaControllerProtoP\x01ZJcloud.google.com/go/servicecontr\ - ol/apiv1/servicecontrolpb;servicecontrolpb\xf8\x01\x01\xaa\x02\x1eGoogle\ - .Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\V1\ - \xea\x02!Google::Cloud::ServiceControl::V1J\xbcJ\n\x07\x12\x05\x0e\0\xf4\ - \x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20\ - 2021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ - se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ - \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ - License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ - \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ - \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\ - \n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\09\n\t\n\x02\ - \x03\x02\x12\x03\x14\0!\n\t\n\x02\x03\x03\x12\x03\x15\0!\n\x08\n\x01\x08\ - \x12\x03\x17\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x17\0\x1f\n\x08\n\x01\x08\ - \x12\x03\x18\0;\n\t\n\x02\x08%\x12\x03\x18\0;\n\x08\n\x01\x08\x12\x03\ - \x19\0a\n\t\n\x02\x08\x0b\x12\x03\x19\0a\n\x08\n\x01\x08\x12\x03\x1a\0\"\ - \n\t\n\x02\x08\n\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\ - \x02\x08\x08\x12\x03\x1b\05\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\n\x02\x08\ - \x01\x12\x03\x1c\09\n\x08\n\x01\x08\x12\x03\x1d\0;\n\t\n\x02\x08)\x12\ - \x03\x1d\0;\n\x08\n\x01\x08\x12\x03\x1e\0:\n\t\n\x02\x08-\x12\x03\x1e\0:\ - \n\x9b\x02\n\x02\x06\0\x12\x04$\0;\x01\x1a\x8e\x02\x20[Google\x20Quota\ - \x20Control\x20API](/service-control/overview)\n\n\x20Allows\x20clients\ - \x20to\x20allocate\x20and\x20release\x20quota\x20against\x20a\x20[manage\ - d\n\x20service](https://cloud.google.com/service-management/reference/rp\ - c/google.api/servicemanagement.v1#google.api.servicemanagement.v1.Manage\ - dService).\n\n\n\n\x03\x06\0\x01\x12\x03$\x08\x17\n\n\n\x03\x06\0\x03\ - \x12\x03%\x02E\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03%\x02E\n\x0b\n\x03\ - \x06\0\x03\x12\x04&\x02(7\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04&\x02(7\n\ - \xa2\x04\n\x04\x06\0\x02\0\x12\x045\x02:\x03\x1a\x93\x04\x20Attempts\x20\ - to\x20allocate\x20quota\x20for\x20the\x20specified\x20consumer.\x20It\ - \x20should\x20be\x20called\n\x20before\x20the\x20operation\x20is\x20exec\ - uted.\n\n\x20This\x20method\x20requires\x20the\x20`servicemanagement.ser\ - vices.quota`\n\x20permission\x20on\x20the\x20specified\x20service.\x20Fo\ - r\x20more\x20information,\x20see\n\x20[Cloud\x20IAM](https://cloud.googl\ - e.com/iam).\n\n\x20**NOTE:**\x20The\x20client\x20**must**\x20fail-open\ - \x20on\x20server\x20errors\x20`INTERNAL`,\n\x20`UNKNOWN`,\x20`DEADLINE_E\ - XCEEDED`,\x20and\x20`UNAVAILABLE`.\x20To\x20ensure\x20system\n\x20reliab\ - ility,\x20the\x20server\x20may\x20inject\x20these\x20errors\x20to\x20pro\ - hibit\x20any\x20hard\n\x20dependency\x20on\x20the\x20quota\x20functional\ - ity.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x035\x06\x13\n\x0c\n\x05\x06\0\ - \x02\0\x02\x12\x035\x14(\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0353H\n\r\n\ - \x05\x06\0\x02\0\x04\x12\x046\x049\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\ - \xbc\"\x12\x046\x049\x06\n;\n\x02\x04\0\x12\x04>\0L\x01\x1a/\x20Request\ - \x20message\x20for\x20the\x20AllocateQuota\x20method.\n\n\n\n\x03\x04\0\ - \x01\x12\x03>\x08\x1c\n\xcc\x01\n\x04\x04\0\x02\0\x12\x03C\x02\x1a\x1a\ - \xbe\x01\x20Name\x20of\x20the\x20service\x20as\x20specified\x20in\x20the\ - \x20service\x20configuration.\x20For\x20example,\n\x20`\"pubsub.googleap\ - is.com\"`.\n\n\x20See\x20[google.api.Service][google.api.Service]\x20for\ - \x20the\x20definition\x20of\x20a\x20service\x20name.\n\n\x0c\n\x05\x04\0\ - \x02\0\x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03C\t\x15\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03C\x18\x19\n=\n\x04\x04\0\x02\x01\x12\ - \x03F\x02(\x1a0\x20Operation\x20that\x20describes\x20the\x20quota\x20all\ - ocation.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03F\x02\x10\n\x0c\n\x05\ - \x04\0\x02\x01\x01\x12\x03F\x11#\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03F&\ - '\n\xba\x01\n\x04\x04\0\x02\x02\x12\x03K\x02\x1f\x1a\xac\x01\x20Specifie\ - s\x20which\x20version\x20of\x20service\x20configuration\x20should\x20be\ - \x20used\x20to\x20process\n\x20the\x20request.\x20If\x20unspecified\x20o\ - r\x20no\x20matching\x20version\x20can\x20be\x20found,\x20the\x20latest\n\ - \x20one\x20will\x20be\x20used.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03K\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03K\t\x1a\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x03K\x1d\x1e\nB\n\x02\x04\x01\x12\x05O\0\xae\x01\x01\ - \x1a5\x20Represents\x20information\x20regarding\x20a\x20quota\x20operati\ - on.\n\n\n\n\x03\x04\x01\x01\x12\x03O\x08\x16\n&\n\x04\x04\x01\x04\0\x12\ - \x04Q\x02y\x03\x1a\x18\x20Supported\x20quota\x20modes.\n\n\x0c\n\x05\x04\ - \x01\x04\0\x01\x12\x03Q\x07\x10\nB\n\x06\x04\x01\x04\0\x02\0\x12\x03S\ - \x04\x14\x1a3\x20Guard\x20against\x20implicit\x20default.\x20Must\x20not\ - \x20be\x20used.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03S\x04\x0f\n\ - \x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03S\x12\x13\n\xfa\x02\n\x06\x04\ - \x01\x04\0\x02\x01\x12\x03[\x04\x0f\x1a\xea\x02\x20For\x20AllocateQuota\ - \x20request,\x20allocates\x20quota\x20for\x20the\x20amount\x20specified\ - \x20in\n\x20the\x20service\x20configuration\x20or\x20specified\x20using\ - \x20the\x20quota\x20metrics.\x20If\x20the\n\x20amount\x20is\x20higher\ - \x20than\x20the\x20available\x20quota,\x20allocation\x20error\x20will\ - \x20be\n\x20returned\x20and\x20no\x20quota\x20will\x20be\x20allocated.\n\ - \x20If\x20multiple\x20quotas\x20are\x20part\x20of\x20the\x20request,\x20\ - and\x20one\x20fails,\x20none\x20of\x20the\n\x20quotas\x20are\x20allocate\ - d\x20or\x20released.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03[\ - \x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03[\r\x0e\n\xf4\x03\n\ - \x06\x04\x01\x04\0\x02\x02\x12\x03e\x04\x14\x1a\xe4\x03\x20The\x20operat\ - ion\x20allocates\x20quota\x20for\x20the\x20amount\x20specified\x20in\x20\ - the\x20service\n\x20configuration\x20or\x20specified\x20using\x20the\x20\ - quota\x20metrics.\x20If\x20the\x20amount\x20is\n\x20higher\x20than\x20th\ - e\x20available\x20quota,\x20request\x20does\x20not\x20fail\x20but\x20all\ - \x20available\n\x20quota\x20will\x20be\x20allocated.\n\x20For\x20rate\ - \x20quota,\x20BEST_EFFORT\x20will\x20continue\x20to\x20deduct\x20from\ - \x20other\x20groups\n\x20even\x20if\x20one\x20does\x20not\x20have\x20eno\ - ugh\x20quota.\x20For\x20allocation,\x20it\x20will\x20find\x20the\n\x20mi\ - nimum\x20available\x20amount\x20across\x20all\x20groups\x20and\x20deduct\ - \x20that\x20amount\x20from\n\x20all\x20the\x20affected\x20groups.\n\n\ - \x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03e\x04\x0f\n\x0e\n\x07\x04\ - \x01\x04\0\x02\x02\x02\x12\x03e\x12\x13\n\xb7\x01\n\x06\x04\x01\x04\0\ - \x02\x03\x12\x03j\x04\x13\x1a\xa7\x01\x20For\x20AllocateQuota\x20request\ + rvicecontrol/v1/metric_value.proto\"\xc2\x01\n\x14AllocateQuotaRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12[\n\x12all\ + ocate_operation\x18\x02\x20\x01(\x0b2,.google.api.servicecontrol.v1.Quot\ + aOperationR\x11allocateOperation\x12*\n\x11service_config_id\x18\x04\x20\ + \x01(\tR\x0fserviceConfigId\"\xf7\x03\n\x0eQuotaOperation\x12!\n\x0coper\ + ation_id\x18\x01\x20\x01(\tR\x0boperationId\x12\x1f\n\x0bmethod_name\x18\ + \x02\x20\x01(\tR\nmethodName\x12\x1f\n\x0bconsumer_id\x18\x03\x20\x01(\t\ + R\nconsumerId\x12P\n\x06labels\x18\x04\x20\x03(\x0b28.google.api.service\ + control.v1.QuotaOperation.LabelsEntryR\x06labels\x12Q\n\rquota_metrics\ + \x18\x05\x20\x03(\x0b2,.google.api.servicecontrol.v1.MetricValueSetR\x0c\ + quotaMetrics\x12U\n\nquota_mode\x18\x06\x20\x01(\x0e26.google.api.servic\ + econtrol.v1.QuotaOperation.QuotaModeR\tquotaMode\x1a9\n\x0bLabelsEntry\ + \x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ + \x20\x01(\tR\x05value:\x028\x01\"I\n\tQuotaMode\x12\x0f\n\x0bUNSPECIFIED\ + \x10\0\x12\n\n\x06NORMAL\x10\x01\x12\x0f\n\x0bBEST_EFFORT\x10\x02\x12\ + \x0e\n\nCHECK_ONLY\x10\x03\"\x8c\x02\n\x15AllocateQuotaResponse\x12!\n\ + \x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12Q\n\x0fallocate_e\ + rrors\x18\x02\x20\x03(\x0b2(.google.api.servicecontrol.v1.QuotaErrorR\ + \x0eallocateErrors\x12Q\n\rquota_metrics\x18\x03\x20\x03(\x0b2,.google.a\ + pi.servicecontrol.v1.MetricValueSetR\x0cquotaMetrics\x12*\n\x11service_c\ + onfig_id\x18\x04\x20\x01(\tR\x0fserviceConfigId\"\x94\x02\n\nQuotaError\ + \x12A\n\x04code\x18\x01\x20\x01(\x0e2-.google.api.servicecontrol.v1.Quot\ + aError.CodeR\x04code\x12\x18\n\x07subject\x18\x02\x20\x01(\tR\x07subject\ + \x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\"\x86\x01\n\ + \x04Code\x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\x16\n\x12RESOURCE_EXHAUSTED\ + \x10\x08\x12\x16\n\x12BILLING_NOT_ACTIVE\x10k\x12\x13\n\x0fPROJECT_DELET\ + ED\x10l\x12\x13\n\x0fAPI_KEY_INVALID\x10i\x12\x13\n\x0fAPI_KEY_EXPIRED\ + \x10p2\xc2\x01\n\x0fQuotaController\x12\xae\x01\n\rAllocateQuota\x122.go\ + ogle.api.servicecontrol.v1.AllocateQuotaRequest\x1a3.google.api.servicec\ + ontrol.v1.AllocateQuotaResponse\"4\x82\xd3\xe4\x93\x02.\")/v1/services/{\ + service_name}:allocateQuota:\x01*B\x89\x01\n\x20com.google.api.serviceco\ + ntrol.v1B\x14QuotaControllerProtoP\x01ZJgoogle.golang.org/genproto/googl\ + eapis/api/servicecontrol/v1;servicecontrol\xf8\x01\x01J\xf3=\n\x07\x12\ + \x05\x0e\0\xcd\x01\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\ + \x20Copyright\x202017\x20Google\x20Inc.\n\n\x20Licensed\x20under\x20the\ + \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ + ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ + \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ + \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ + censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ + \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ + \x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\ + \x13\09\n\x08\n\x01\x08\x12\x03\x15\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x15\ + \0\x1f\n\x08\n\x01\x08\x12\x03\x16\0a\n\t\n\x02\x08\x0b\x12\x03\x16\0a\n\ + \x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\ + \x01\x08\x12\x03\x18\05\n\t\n\x02\x08\x08\x12\x03\x18\05\n\x08\n\x01\x08\ + \x12\x03\x19\09\n\t\n\x02\x08\x01\x12\x03\x19\09\n\x9b\x02\n\x02\x06\0\ + \x12\x04\x1f\01\x01\x1a\x8e\x02\x20[Google\x20Quota\x20Control\x20API](/\ + service-control/overview)\n\n\x20Allows\x20clients\x20to\x20allocate\x20\ + and\x20release\x20quota\x20against\x20a\x20[managed\n\x20service](https:\ + //cloud.google.com/service-management/reference/rpc/google.api/servicema\ + nagement.v1#google.api.servicemanagement.v1.ManagedService).\n\n\n\n\x03\ + \x06\0\x01\x12\x03\x1f\x08\x17\n\xa2\x04\n\x04\x06\0\x02\0\x12\x04+\x020\ + \x03\x1a\x93\x04\x20Attempts\x20to\x20allocate\x20quota\x20for\x20the\ + \x20specified\x20consumer.\x20It\x20should\x20be\x20called\n\x20before\ + \x20the\x20operation\x20is\x20executed.\n\n\x20This\x20method\x20require\ + s\x20the\x20`servicemanagement.services.quota`\n\x20permission\x20on\x20\ + the\x20specified\x20service.\x20For\x20more\x20information,\x20see\n\x20\ + [Cloud\x20IAM](https://cloud.google.com/iam).\n\n\x20**NOTE:**\x20The\ + \x20client\x20**must**\x20fail-open\x20on\x20server\x20errors\x20`INTERN\ + AL`,\n\x20`UNKNOWN`,\x20`DEADLINE_EXCEEDED`,\x20and\x20`UNAVAILABLE`.\ + \x20To\x20ensure\x20system\n\x20reliability,\x20the\x20server\x20may\x20\ + inject\x20these\x20errors\x20to\x20prohibit\x20any\x20hard\n\x20dependen\ + cy\x20on\x20the\x20quota\x20functionality.\n\n\x0c\n\x05\x06\0\x02\0\x01\ + \x12\x03+\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03+\x14(\n\x0c\n\x05\ + \x06\0\x02\0\x03\x12\x03+3H\n\r\n\x05\x06\0\x02\0\x04\x12\x04,\x04/\x06\ + \n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04,\x04/\x06\n;\n\x02\x04\ + \0\x12\x044\0C\x01\x1a/\x20Request\x20message\x20for\x20the\x20AllocateQ\ + uota\x20method.\n\n\n\n\x03\x04\0\x01\x12\x034\x08\x1c\n\xcd\x01\n\x04\ + \x04\0\x02\0\x12\x03:\x02\x1a\x1a\xbf\x01\x20Name\x20of\x20the\x20servic\ + e\x20as\x20specified\x20in\x20the\x20service\x20configuration.\x20For\ + \x20example,\n\x20`\"pubsub.googleapis.com\"`.\n\n\x20See\x20[google.api\ + .Service][google.api.Service]\x20for\x20the\x20definition\x20of\x20a\n\ + \x20service\x20name.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03:\x02\x08\n\ + \x0c\n\x05\x04\0\x02\0\x01\x12\x03:\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\ + \x12\x03:\x18\x19\n=\n\x04\x04\0\x02\x01\x12\x03=\x02(\x1a0\x20Operation\ + \x20that\x20describes\x20the\x20quota\x20allocation.\n\n\x0c\n\x05\x04\0\ + \x02\x01\x06\x12\x03=\x02\x10\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03=\x11\ + #\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03=&'\n\xba\x01\n\x04\x04\0\x02\x02\ + \x12\x03B\x02\x1f\x1a\xac\x01\x20Specifies\x20which\x20version\x20of\x20\ + service\x20configuration\x20should\x20be\x20used\x20to\x20process\n\x20t\ + he\x20request.\x20If\x20unspecified\x20or\x20no\x20matching\x20version\ + \x20can\x20be\x20found,\x20the\x20latest\n\x20one\x20will\x20be\x20used.\ + \n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03B\x02\x08\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03B\t\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03B\x1d\x1e\n\ + B\n\x02\x04\x01\x12\x05F\0\x8a\x01\x01\x1a5\x20Represents\x20information\ + \x20regarding\x20a\x20quota\x20operation.\n\n\n\n\x03\x04\x01\x01\x12\ + \x03F\x08\x16\n&\n\x04\x04\x01\x04\0\x12\x04H\x02\\\x03\x1a\x18\x20Suppo\ + rted\x20quota\x20modes.\n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03H\x07\x10\ + \nB\n\x06\x04\x01\x04\0\x02\0\x12\x03J\x04\x14\x1a3\x20Guard\x20against\ + \x20implicit\x20default.\x20Must\x20not\x20be\x20used.\n\n\x0e\n\x07\x04\ + \x01\x04\0\x02\0\x01\x12\x03J\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\0\ + \x02\x12\x03J\x12\x13\n\x8f\x02\n\x06\x04\x01\x04\0\x02\x01\x12\x03P\x04\ + \x0f\x1a\xff\x01\x20For\x20AllocateQuota\x20request,\x20allocates\x20quo\ + ta\x20for\x20the\x20amount\x20specified\x20in\n\x20the\x20service\x20con\ + figuration\x20or\x20specified\x20using\x20the\x20quota\x20metrics.\x20If\ + \x20the\n\x20amount\x20is\x20higher\x20than\x20the\x20available\x20quota\ + ,\x20allocation\x20error\x20will\x20be\n\x20returned\x20and\x20no\x20quo\ + ta\x20will\x20be\x20allocated.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\ + \x12\x03P\x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03P\r\x0e\n\ + \x81\x02\n\x06\x04\x01\x04\0\x02\x02\x12\x03V\x04\x14\x1a\xf1\x01\x20The\ + \x20operation\x20allocates\x20quota\x20for\x20the\x20amount\x20specified\ + \x20in\x20the\x20service\n\x20configuration\x20or\x20specified\x20using\ + \x20the\x20quota\x20metrics.\x20If\x20the\x20amount\x20is\n\x20higher\ + \x20than\x20the\x20available\x20quota,\x20request\x20does\x20not\x20fail\ + \x20but\x20all\x20available\n\x20quota\x20will\x20be\x20allocated.\n\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03V\x04\x0f\n\x0e\n\x07\x04\ + \x01\x04\0\x02\x02\x02\x12\x03V\x12\x13\n\xb7\x01\n\x06\x04\x01\x04\0\ + \x02\x03\x12\x03[\x04\x13\x1a\xa7\x01\x20For\x20AllocateQuota\x20request\ ,\x20only\x20checks\x20if\x20there\x20is\x20enough\x20quota\n\x20availab\ le\x20and\x20does\x20not\x20change\x20the\x20available\x20quota.\x20No\ \x20lock\x20is\x20placed\x20on\n\x20the\x20available\x20quota\x20either.\ - \n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03j\x04\x0e\n\x0e\n\x07\ - \x04\x01\x04\0\x02\x03\x02\x12\x03j\x11\x12\n\xa8\x02\n\x06\x04\x01\x04\ - \0\x02\x04\x12\x03q\x04\x13\x1a\x98\x02\x20Unimplemented.\x20When\x20use\ - d\x20in\x20AllocateQuotaRequest,\x20this\x20returns\x20the\n\x20effectiv\ - e\x20quota\x20limit(s)\x20in\x20the\x20response,\x20and\x20no\x20quota\ - \x20check\x20will\x20be\n\x20performed.\x20Not\x20supported\x20for\x20ot\ - her\x20requests,\x20and\x20even\x20for\n\x20AllocateQuotaRequest,\x20thi\ - s\x20is\x20currently\x20supported\x20only\x20for\x20allowlisted\n\x20ser\ - vices.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\x12\x03q\x04\x0e\n\x0e\n\ - \x07\x04\x01\x04\0\x02\x04\x02\x12\x03q\x11\x12\n\xc1\x02\n\x06\x04\x01\ - \x04\0\x02\x05\x12\x03x\x04\x14\x1a\xb1\x02\x20The\x20operation\x20alloc\ - ates\x20quota\x20for\x20the\x20amount\x20specified\x20in\x20the\x20servi\ - ce\n\x20configuration\x20or\x20specified\x20using\x20the\x20quota\x20met\ - rics.\x20If\x20the\x20requested\n\x20amount\x20is\x20higher\x20than\x20t\ - he\x20available\x20quota,\x20request\x20does\x20not\x20fail\x20and\n\x20\ - remaining\x20quota\x20would\x20become\x20negative\x20(going\x20over\x20t\ - he\x20limit).\n\x20Not\x20supported\x20for\x20Rate\x20Quota.\n\n\x0e\n\ - \x07\x04\x01\x04\0\x02\x05\x01\x12\x03x\x04\x0f\n\x0e\n\x07\x04\x01\x04\ - \0\x02\x05\x02\x12\x03x\x12\x13\n\xe9\x03\n\x04\x04\x01\x02\0\x12\x04\ - \x84\x01\x02\x1a\x1a\xda\x03\x20Identity\x20of\x20the\x20operation.\x20T\ - his\x20is\x20expected\x20to\x20be\x20unique\x20within\x20the\x20scope\n\ - \x20of\x20the\x20service\x20that\x20generated\x20the\x20operation,\x20an\ - d\x20guarantees\x20idempotency\x20in\n\x20case\x20of\x20retries.\n\n\x20\ - In\x20order\x20to\x20ensure\x20best\x20performance\x20and\x20latency\x20\ - in\x20the\x20Quota\x20backends,\n\x20operation_ids\x20are\x20optimally\ - \x20associated\x20with\x20time,\x20so\x20that\x20related\n\x20operations\ - \x20can\x20be\x20accessed\x20fast\x20in\x20storage.\x20For\x20this\x20re\ - ason,\x20the\n\x20recommended\x20token\x20for\x20services\x20that\x20int\ - end\x20to\x20operate\x20at\x20a\x20high\x20QPS\x20is\n\x20Unix\x20time\ - \x20in\x20nanos\x20+\x20UUID\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x84\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x84\x01\t\x15\n\r\n\x05\ - \x04\x01\x02\0\x03\x12\x04\x84\x01\x18\x19\n\xfa\x03\n\x04\x04\x01\x02\ - \x01\x12\x04\x91\x01\x02\x19\x1a\xeb\x03\x20Fully\x20qualified\x20name\ - \x20of\x20the\x20API\x20method\x20for\x20which\x20this\x20quota\x20opera\ - tion\x20is\n\x20requested.\x20This\x20name\x20is\x20used\x20for\x20match\ - ing\x20quota\x20rules\x20or\x20metric\x20rules\x20and\n\x20billing\x20st\ - atus\x20rules\x20defined\x20in\x20service\x20configuration.\n\n\x20This\ - \x20field\x20should\x20not\x20be\x20set\x20if\x20any\x20of\x20the\x20fol\ - lowing\x20is\x20true:\n\x20(1)\x20the\x20quota\x20operation\x20is\x20per\ - formed\x20on\x20non-API\x20resources.\n\x20(2)\x20quota_metrics\x20is\ - \x20set\x20because\x20the\x20caller\x20is\x20doing\x20quota\x20override.\ - \n\n\n\x20Example\x20of\x20an\x20RPC\x20method\x20name:\n\x20\x20\x20\ - \x20\x20google.example.library.v1.LibraryService.CreateShelf\n\n\r\n\x05\ - \x04\x01\x02\x01\x05\x12\x04\x91\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\ - \x01\x12\x04\x91\x01\t\x14\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x91\x01\ - \x17\x18\n\xdd\x01\n\x04\x04\x01\x02\x02\x12\x04\x99\x01\x02\x19\x1a\xce\ - \x01\x20Identity\x20of\x20the\x20consumer\x20for\x20whom\x20this\x20quot\ - a\x20operation\x20is\x20being\x20performed.\n\n\x20This\x20can\x20be\x20\ - in\x20one\x20of\x20the\x20following\x20formats:\n\x20\x20\x20project:,\n\x20\x20\x20project_number:,\n\x20\x20\x20ap\ - i_key:.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x99\x01\x02\x08\ - \n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x99\x01\t\x14\n\r\n\x05\x04\x01\ - \x02\x02\x03\x12\x04\x99\x01\x17\x18\n0\n\x04\x04\x01\x02\x03\x12\x04\ - \x9c\x01\x02!\x1a\"\x20Labels\x20describing\x20the\x20operation.\n\n\r\n\ - \x05\x04\x01\x02\x03\x06\x12\x04\x9c\x01\x02\x15\n\r\n\x05\x04\x01\x02\ - \x03\x01\x12\x04\x9c\x01\x16\x1c\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\ - \x9c\x01\x1f\x20\n\xd0\x04\n\x04\x04\x01\x02\x04\x12\x04\xaa\x01\x02,\ - \x1a\xc1\x04\x20Represents\x20information\x20about\x20this\x20operation.\ - \x20Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20metric\x20defi\ - ned\x20in\x20the\x20service\x20configuration.\n\x20The\x20data\x20type\ - \x20used\x20in\x20the\x20MetricValueSet\x20must\x20agree\x20with\n\x20th\ - e\x20data\x20type\x20specified\x20in\x20the\x20metric\x20definition.\n\n\ - \x20Within\x20a\x20single\x20operation,\x20it\x20is\x20not\x20allowed\ - \x20to\x20have\x20more\x20than\x20one\n\x20MetricValue\x20instances\x20t\ - hat\x20have\x20the\x20same\x20metric\x20names\x20and\x20identical\n\x20l\ - abel\x20value\x20combinations.\x20If\x20a\x20request\x20has\x20such\x20d\ - uplicated\x20MetricValue\n\x20instances,\x20the\x20entire\x20request\x20\ - is\x20rejected\x20with\n\x20an\x20invalid\x20argument\x20error.\n\n\x20T\ - his\x20field\x20is\x20mutually\x20exclusive\x20with\x20method_name.\n\n\ - \r\n\x05\x04\x01\x02\x04\x04\x12\x04\xaa\x01\x02\n\n\r\n\x05\x04\x01\x02\ - \x04\x06\x12\x04\xaa\x01\x0b\x19\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ - \xaa\x01\x1a'\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xaa\x01*+\n.\n\x04\ - \x04\x01\x02\x05\x12\x04\xad\x01\x02\x1b\x1a\x20\x20Quota\x20mode\x20for\ - \x20this\x20operation.\n\n\r\n\x05\x04\x01\x02\x05\x06\x12\x04\xad\x01\ - \x02\x0b\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xad\x01\x0c\x16\n\r\n\x05\ - \x04\x01\x02\x05\x03\x12\x04\xad\x01\x19\x1a\n>\n\x02\x04\x02\x12\x06\ - \xb1\x01\0\xc7\x01\x01\x1a0\x20Response\x20message\x20for\x20the\x20Allo\ - cateQuota\x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xb1\x01\x08\x1d\n\ - y\n\x04\x04\x02\x02\0\x12\x04\xb4\x01\x02\x1a\x1ak\x20The\x20same\x20ope\ - ration_id\x20value\x20used\x20in\x20the\x20AllocateQuotaRequest.\x20Used\ - \x20for\n\x20logging\x20and\x20diagnostics\x20purposes.\n\n\r\n\x05\x04\ - \x02\x02\0\x05\x12\x04\xb4\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\ - \x04\xb4\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xb4\x01\x18\x19\n\ - 7\n\x04\x04\x02\x02\x01\x12\x04\xb7\x01\x02*\x1a)\x20Indicates\x20the\ - \x20decision\x20of\x20the\x20allocate.\n\n\r\n\x05\x04\x02\x02\x01\x04\ - \x12\x04\xb7\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xb7\x01\x0b\ - \x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb7\x01\x16%\n\r\n\x05\x04\ - \x02\x02\x01\x03\x12\x04\xb7\x01()\n\xd9\x03\n\x04\x04\x02\x02\x02\x12\ - \x04\xc3\x01\x02,\x1a\xca\x03\x20Quota\x20metrics\x20to\x20indicate\x20t\ - he\x20result\x20of\x20allocation.\x20Depending\x20on\x20the\n\x20request\ - ,\x20one\x20or\x20more\x20of\x20the\x20following\x20metrics\x20will\x20b\ - e\x20included:\n\n\x201.\x20Per\x20quota\x20group\x20or\x20per\x20quota\ - \x20metric\x20incremental\x20usage\x20will\x20be\x20specified\n\x20using\ - \x20the\x20following\x20delta\x20metric\x20:\n\x20\x20\x20\"servicerunti\ - me.googleapis.com/api/consumer/quota_used_count\"\n\n\x202.\x20The\x20qu\ - ota\x20limit\x20reached\x20condition\x20will\x20be\x20specified\x20using\ - \x20the\x20following\n\x20boolean\x20metric\x20:\n\x20\x20\x20\"servicer\ - untime.googleapis.com/quota/exceeded\"\n\n\r\n\x05\x04\x02\x02\x02\x04\ - \x12\x04\xc3\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xc3\x01\x0b\ - \x19\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xc3\x01\x1a'\n\r\n\x05\x04\ - \x02\x02\x02\x03\x12\x04\xc3\x01*+\nD\n\x04\x04\x02\x02\x03\x12\x04\xc6\ - \x01\x02\x1f\x1a6\x20ID\x20of\x20the\x20actual\x20config\x20used\x20to\ - \x20process\x20the\x20request.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\ - \xc6\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xc6\x01\t\x1a\n\r\ - \n\x05\x04\x02\x02\x03\x03\x12\x04\xc6\x01\x1d\x1e\no\n\x02\x04\x03\x12\ - \x06\xca\x01\0\xf4\x01\x01\x1aa\x20Represents\x20error\x20information\ - \x20for\x20[QuotaOperation][google.api.servicecontrol.v1.QuotaOperation]\ - .\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xca\x01\x08\x12\n\xfe\x02\n\x04\x04\ - \x03\x04\0\x12\x06\xd0\x01\x02\xe4\x01\x03\x1a\xed\x02\x20Error\x20codes\ - \x20related\x20to\x20project\x20config\x20validations\x20are\x20deprecat\ - ed\x20since\x20the\n\x20quota\x20controller\x20methods\x20do\x20not\x20p\ - erform\x20these\x20validations.\x20Instead\x20services\n\x20have\x20to\ - \x20call\x20the\x20Check\x20method,\x20without\x20quota_properties\x20fi\ - eld,\x20to\x20perform\n\x20these\x20validations\x20before\x20calling\x20\ - the\x20quota\x20controller\x20methods.\x20These\n\x20methods\x20check\ - \x20only\x20for\x20project\x20deletion\x20to\x20be\x20wipe\x20out\x20com\ - pliant.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\x04\xd0\x01\x07\x0b\n%\n\x06\ - \x04\x03\x04\0\x02\0\x12\x04\xd2\x01\x04\x14\x1a\x15\x20This\x20is\x20ne\ - ver\x20used.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\x12\x04\xd2\x01\x04\ - \x0f\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\xd2\x01\x12\x13\n}\n\ - \x06\x04\x03\x04\0\x02\x01\x12\x04\xd6\x01\x04\x1b\x1am\x20Quota\x20allo\ - cation\x20failed.\n\x20Same\x20as\x20[google.rpc.Code.RESOURCE_EXHAUSTED\ - ][google.rpc.Code.RESOURCE_EXHAUSTED].\n\n\x0f\n\x07\x04\x03\x04\0\x02\ - \x01\x01\x12\x04\xd6\x01\x04\x16\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x02\ - \x12\x04\xd6\x01\x19\x1a\nb\n\x06\x04\x03\x04\0\x02\x02\x12\x04\xda\x01\ - \x04\x1d\x1aR\x20Consumer\x20cannot\x20access\x20the\x20service\x20becau\ - se\x20the\x20service\x20requires\x20active\n\x20billing.\n\n\x0f\n\x07\ - \x04\x03\x04\0\x02\x02\x01\x12\x04\xda\x01\x04\x16\n\x0f\n\x07\x04\x03\ - \x04\0\x02\x02\x02\x12\x04\xda\x01\x19\x1c\nP\n\x06\x04\x03\x04\0\x02\ - \x03\x12\x04\xdd\x01\x04\x1a\x1a@\x20Consumer's\x20project\x20has\x20bee\ - n\x20marked\x20as\x20deleted\x20(soft\x20deletion).\n\n\x0f\n\x07\x04\ - \x03\x04\0\x02\x03\x01\x12\x04\xdd\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\ - \x02\x03\x02\x12\x04\xdd\x01\x16\x19\n/\n\x06\x04\x03\x04\0\x02\x04\x12\ - \x04\xe0\x01\x04\x1a\x1a\x1f\x20Specified\x20API\x20key\x20is\x20invalid\ - .\n\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x01\x12\x04\xe0\x01\x04\x13\n\x0f\ - \n\x07\x04\x03\x04\0\x02\x04\x02\x12\x04\xe0\x01\x16\x19\n0\n\x06\x04\ - \x03\x04\0\x02\x05\x12\x04\xe3\x01\x04\x1a\x1a\x20\x20Specified\x20API\ - \x20Key\x20has\x20expired.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x05\x01\x12\ - \x04\xe3\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\x05\x02\x12\x04\xe3\ - \x01\x16\x19\n\x1b\n\x04\x04\x03\x02\0\x12\x04\xe7\x01\x02\x10\x1a\r\x20\ - Error\x20code.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xe7\x01\x02\x06\n\r\ - \n\x05\x04\x03\x02\0\x01\x12\x04\xe7\x01\x07\x0b\n\r\n\x05\x04\x03\x02\0\ - \x03\x12\x04\xe7\x01\x0e\x0f\n\xc7\x01\n\x04\x04\x03\x02\x01\x12\x04\xec\ - \x01\x02\x15\x1a\xb8\x01\x20Subject\x20to\x20whom\x20this\x20error\x20ap\ - plies.\x20See\x20the\x20specific\x20enum\x20for\x20more\x20details\n\x20\ - on\x20this\x20field.\x20For\x20example,\x20\"clientip:\"\x20or\n\x20\"project:\".\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xec\x01\x02\x08\n\r\n\x05\ - \x04\x03\x02\x01\x01\x12\x04\xec\x01\t\x10\n\r\n\x05\x04\x03\x02\x01\x03\ - \x12\x04\xec\x01\x13\x14\nO\n\x04\x04\x03\x02\x02\x12\x04\xef\x01\x02\ - \x19\x1aA\x20Free-form\x20text\x20that\x20provides\x20details\x20on\x20t\ - he\x20cause\x20of\x20the\x20error.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\ - \x04\xef\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xef\x01\t\x14\ - \n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xef\x01\x17\x18\nu\n\x04\x04\x03\ - \x02\x03\x12\x04\xf3\x01\x02\x1f\x1ag\x20Contains\x20additional\x20infor\ - mation\x20about\x20the\x20quota\x20error.\n\x20If\x20available,\x20`stat\ - us.code`\x20will\x20be\x20non\x20zero.\n\n\r\n\x05\x04\x03\x02\x03\x06\ - \x12\x04\xf3\x01\x02\x13\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xf3\x01\ - \x14\x1a\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xf3\x01\x1d\x1eb\x06proto\ - 3\ + \n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03[\x04\x0e\n\x0e\n\x07\ + \x04\x01\x04\0\x02\x03\x02\x12\x03[\x11\x12\n\xac\x03\n\x04\x04\x01\x02\ + \0\x12\x03f\x02\x1a\x1a\x9e\x03\x20Identity\x20of\x20the\x20operation.\ + \x20This\x20is\x20expected\x20to\x20be\x20unique\x20within\x20the\x20sco\ + pe\n\x20of\x20the\x20service\x20that\x20generated\x20the\x20operation,\ + \x20and\x20guarantees\x20idempotency\x20in\n\x20case\x20of\x20retries.\n\ + \n\x20UUID\x20version\x204\x20is\x20recommended,\x20though\x20not\x20req\ + uired.\x20In\x20scenarios\x20where\x20an\n\x20operation\x20is\x20compute\ + d\x20from\x20existing\x20information\x20and\x20an\x20idempotent\x20id\ + \x20is\n\x20desirable\x20for\x20deduplication\x20purpose,\x20UUID\x20ver\ + sion\x205\x20is\x20recommended.\x20See\n\x20RFC\x204122\x20for\x20detail\ + s.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03f\x02\x08\n\x0c\n\x05\x04\x01\ + \x02\0\x01\x12\x03f\t\x15\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03f\x18\x19\ + \n\x8c\x03\n\x04\x04\x01\x02\x01\x12\x03o\x02\x19\x1a\xfe\x02\x20Fully\ + \x20qualified\x20name\x20of\x20the\x20API\x20method\x20for\x20which\x20t\ + his\x20quota\x20operation\x20is\n\x20requested.\x20This\x20name\x20is\ + \x20used\x20for\x20matching\x20quota\x20rules\x20or\x20metric\x20rules\ + \x20and\n\x20billing\x20status\x20rules\x20defined\x20in\x20service\x20c\ + onfiguration.\x20This\x20field\x20is\x20not\n\x20required\x20if\x20the\ + \x20quota\x20operation\x20is\x20performed\x20on\x20non-API\x20resources.\ + \n\n\x20Example\x20of\x20an\x20RPC\x20method\x20name:\n\x20\x20\x20\x20\ + \x20google.example.library.v1.LibraryService.CreateShelf\n\n\x0c\n\x05\ + \x04\x01\x02\x01\x05\x12\x03o\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\ + \x12\x03o\t\x14\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03o\x17\x18\n\xdc\ + \x01\n\x04\x04\x01\x02\x02\x12\x03w\x02\x19\x1a\xce\x01\x20Identity\x20o\ + f\x20the\x20consumer\x20for\x20whom\x20this\x20quota\x20operation\x20is\ + \x20being\x20performed.\n\n\x20This\x20can\x20be\x20in\x20one\x20of\x20t\ + he\x20following\x20formats:\n\x20\x20\x20project:,\n\x20\x20\ + \x20project_number:,\n\x20\x20\x20api_key:.\n\n\ + \x0c\n\x05\x04\x01\x02\x02\x05\x12\x03w\x02\x08\n\x0c\n\x05\x04\x01\x02\ + \x02\x01\x12\x03w\t\x14\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03w\x17\x18\ + \n/\n\x04\x04\x01\x02\x03\x12\x03z\x02!\x1a\"\x20Labels\x20describing\ + \x20the\x20operation.\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03z\x02\x15\ + \n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03z\x16\x1c\n\x0c\n\x05\x04\x01\ + \x02\x03\x03\x12\x03z\x1f\x20\n\x9b\x04\n\x04\x04\x01\x02\x04\x12\x04\ + \x86\x01\x02,\x1a\x8c\x04\x20Represents\x20information\x20about\x20this\ + \x20operation.\x20Each\x20MetricValueSet\n\x20corresponds\x20to\x20a\x20\ + metric\x20defined\x20in\x20the\x20service\x20configuration.\n\x20The\x20\ + data\x20type\x20used\x20in\x20the\x20MetricValueSet\x20must\x20agree\x20\ + with\n\x20the\x20data\x20type\x20specified\x20in\x20the\x20metric\x20def\ + inition.\n\n\x20Within\x20a\x20single\x20operation,\x20it\x20is\x20not\ + \x20allowed\x20to\x20have\x20more\x20than\x20one\n\x20MetricValue\x20ins\ + tances\x20that\x20have\x20the\x20same\x20metric\x20names\x20and\x20ident\ + ical\n\x20label\x20value\x20combinations.\x20If\x20a\x20request\x20has\ + \x20such\x20duplicated\x20MetricValue\n\x20instances,\x20the\x20entire\ + \x20request\x20is\x20rejected\x20with\n\x20an\x20invalid\x20argument\x20\ + error.\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x04\x86\x01\x02\n\n\r\n\x05\ + \x04\x01\x02\x04\x06\x12\x04\x86\x01\x0b\x19\n\r\n\x05\x04\x01\x02\x04\ + \x01\x12\x04\x86\x01\x1a'\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x86\x01*\ + +\n.\n\x04\x04\x01\x02\x05\x12\x04\x89\x01\x02\x1b\x1a\x20\x20Quota\x20m\ + ode\x20for\x20this\x20operation.\n\n\r\n\x05\x04\x01\x02\x05\x06\x12\x04\ + \x89\x01\x02\x0b\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\x89\x01\x0c\x16\n\ + \r\n\x05\x04\x01\x02\x05\x03\x12\x04\x89\x01\x19\x1a\n>\n\x02\x04\x02\ + \x12\x06\x8d\x01\0\xa3\x01\x01\x1a0\x20Response\x20message\x20for\x20the\ + \x20AllocateQuota\x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x8d\x01\ + \x08\x1d\ny\n\x04\x04\x02\x02\0\x12\x04\x90\x01\x02\x1a\x1ak\x20The\x20s\ + ame\x20operation_id\x20value\x20used\x20in\x20the\x20AllocateQuotaReques\ + t.\x20Used\x20for\n\x20logging\x20and\x20diagnostics\x20purposes.\n\n\r\ + \n\x05\x04\x02\x02\0\x05\x12\x04\x90\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\x90\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x90\x01\ + \x18\x19\n7\n\x04\x04\x02\x02\x01\x12\x04\x93\x01\x02*\x1a)\x20Indicates\ + \x20the\x20decision\x20of\x20the\x20allocate.\n\n\r\n\x05\x04\x02\x02\ + \x01\x04\x12\x04\x93\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\x93\ + \x01\x0b\x15\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x93\x01\x16%\n\r\n\ + \x05\x04\x02\x02\x01\x03\x12\x04\x93\x01()\n\xd9\x03\n\x04\x04\x02\x02\ + \x02\x12\x04\x9f\x01\x02,\x1a\xca\x03\x20Quota\x20metrics\x20to\x20indic\ + ate\x20the\x20result\x20of\x20allocation.\x20Depending\x20on\x20the\n\ + \x20request,\x20one\x20or\x20more\x20of\x20the\x20following\x20metrics\ + \x20will\x20be\x20included:\n\n\x201.\x20Per\x20quota\x20group\x20or\x20\ + per\x20quota\x20metric\x20incremental\x20usage\x20will\x20be\x20specifie\ + d\n\x20using\x20the\x20following\x20delta\x20metric\x20:\n\x20\x20\x20\"\ + serviceruntime.googleapis.com/api/consumer/quota_used_count\"\n\n\x202.\ + \x20The\x20quota\x20limit\x20reached\x20condition\x20will\x20be\x20speci\ + fied\x20using\x20the\x20following\n\x20boolean\x20metric\x20:\n\x20\x20\ + \x20\"serviceruntime.googleapis.com/quota/exceeded\"\n\n\r\n\x05\x04\x02\ + \x02\x02\x04\x12\x04\x9f\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\ + \x9f\x01\x0b\x19\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9f\x01\x1a'\n\r\ + \n\x05\x04\x02\x02\x02\x03\x12\x04\x9f\x01*+\nD\n\x04\x04\x02\x02\x03\ + \x12\x04\xa2\x01\x02\x1f\x1a6\x20ID\x20of\x20the\x20actual\x20config\x20\ + used\x20to\x20process\x20the\x20request.\n\n\r\n\x05\x04\x02\x02\x03\x05\ + \x12\x04\xa2\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xa2\x01\t\ + \x1a\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xa2\x01\x1d\x1e\np\n\x02\x04\ + \x03\x12\x06\xa7\x01\0\xcd\x01\x01\x1ab\x20Represents\x20error\x20inform\ + ation\x20for\n\x20[QuotaOperation][google.api.servicecontrol.v1.QuotaOpe\ + ration].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xa7\x01\x08\x12\n\xfe\x02\n\ + \x04\x04\x03\x04\0\x12\x06\xad\x01\x02\xc1\x01\x03\x1a\xed\x02\x20Error\ + \x20codes\x20related\x20to\x20project\x20config\x20validations\x20are\ + \x20deprecated\x20since\x20the\n\x20quota\x20controller\x20methods\x20do\ + \x20not\x20perform\x20these\x20validations.\x20Instead\x20services\n\x20\ + have\x20to\x20call\x20the\x20Check\x20method,\x20without\x20quota_proper\ + ties\x20field,\x20to\x20perform\n\x20these\x20validations\x20before\x20c\ + alling\x20the\x20quota\x20controller\x20methods.\x20These\n\x20methods\ + \x20check\x20only\x20for\x20project\x20deletion\x20to\x20be\x20wipe\x20o\ + ut\x20compliant.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\x04\xad\x01\x07\x0b\n\ + %\n\x06\x04\x03\x04\0\x02\0\x12\x04\xaf\x01\x04\x14\x1a\x15\x20This\x20i\ + s\x20never\x20used.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\x12\x04\xaf\ + \x01\x04\x0f\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\xaf\x01\x12\x13\ + \n[\n\x06\x04\x03\x04\0\x02\x01\x12\x04\xb3\x01\x04\x1b\x1aK\x20Quota\ + \x20allocation\x20failed.\n\x20Same\x20as\x20[google.rpc.Code.RESOURCE_E\ + XHAUSTED][].\n\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\xb3\x01\x04\ + \x16\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x04\xb3\x01\x19\x1a\nb\n\ + \x06\x04\x03\x04\0\x02\x02\x12\x04\xb7\x01\x04\x1d\x1aR\x20Consumer\x20c\ + annot\x20access\x20the\x20service\x20because\x20the\x20service\x20requir\ + es\x20active\n\x20billing.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x01\x12\ + \x04\xb7\x01\x04\x16\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\x12\x04\xb7\ + \x01\x19\x1c\nP\n\x06\x04\x03\x04\0\x02\x03\x12\x04\xba\x01\x04\x1a\x1a@\ + \x20Consumer's\x20project\x20has\x20been\x20marked\x20as\x20deleted\x20(\ + soft\x20deletion).\n\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x01\x12\x04\xba\ + \x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\x03\x02\x12\x04\xba\x01\x16\ + \x19\n/\n\x06\x04\x03\x04\0\x02\x04\x12\x04\xbd\x01\x04\x1a\x1a\x1f\x20S\ + pecified\x20API\x20key\x20is\x20invalid.\n\n\x0f\n\x07\x04\x03\x04\0\x02\ + \x04\x01\x12\x04\xbd\x01\x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x02\ + \x12\x04\xbd\x01\x16\x19\n0\n\x06\x04\x03\x04\0\x02\x05\x12\x04\xc0\x01\ + \x04\x1a\x1a\x20\x20Specified\x20API\x20Key\x20has\x20expired.\n\n\x0f\n\ + \x07\x04\x03\x04\0\x02\x05\x01\x12\x04\xc0\x01\x04\x13\n\x0f\n\x07\x04\ + \x03\x04\0\x02\x05\x02\x12\x04\xc0\x01\x16\x19\n\x1b\n\x04\x04\x03\x02\0\ + \x12\x04\xc4\x01\x02\x10\x1a\r\x20Error\x20code.\n\n\r\n\x05\x04\x03\x02\ + \0\x06\x12\x04\xc4\x01\x02\x06\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc4\ + \x01\x07\x0b\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc4\x01\x0e\x0f\n\xc7\ + \x01\n\x04\x04\x03\x02\x01\x12\x04\xc9\x01\x02\x15\x1a\xb8\x01\x20Subjec\ + t\x20to\x20whom\x20this\x20error\x20applies.\x20See\x20the\x20specific\ + \x20enum\x20for\x20more\x20details\n\x20on\x20this\x20field.\x20For\x20e\ + xample,\x20\"clientip:\"\x20or\n\x20\"pro\ + ject:\".\n\n\r\n\x05\x04\x03\x02\ + \x01\x05\x12\x04\xc9\x01\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ + \xc9\x01\t\x10\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xc9\x01\x13\x14\nO\ + \n\x04\x04\x03\x02\x02\x12\x04\xcc\x01\x02\x19\x1aA\x20Free-form\x20text\ + \x20that\x20provides\x20details\x20on\x20the\x20cause\x20of\x20the\x20er\ + ror.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xcc\x01\x02\x08\n\r\n\x05\ + \x04\x03\x02\x02\x01\x12\x04\xcc\x01\t\x14\n\r\n\x05\x04\x03\x02\x02\x03\ + \x12\x04\xcc\x01\x17\x18b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::metric_value::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(AllocateQuotaRequest::generated_message_descriptor_data()); + messages.push(QuotaOperation::generated_message_descriptor_data()); + messages.push(AllocateQuotaResponse::generated_message_descriptor_data()); + messages.push(QuotaError::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(2); + enums.push(quota_operation::QuotaMode::generated_enum_descriptor_data()); + enums.push(quota_error::Code::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs b/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs index 41705ef..5dc815d 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs @@ -4,7 +4,6 @@ // https://github.com/Manishearth/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] - #![allow(box_pointers)] #![allow(dead_code)] #![allow(missing_docs)] @@ -16,11 +15,20 @@ #![allow(unused_imports)] #![allow(unused_results)] -const METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA: ::grpcio::Method = ::grpcio::Method { +const METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA: ::grpcio::Method< + super::quota_controller::AllocateQuotaRequest, + super::quota_controller::AllocateQuotaResponse, +> = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.api.servicecontrol.v1.QuotaController/AllocateQuota", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, + req_mar: ::grpcio::Marshaller { + ser: ::grpcio::pb_ser, + de: ::grpcio::pb_de, + }, + resp_mar: ::grpcio::Marshaller { + ser: ::grpcio::pb_ser, + de: ::grpcio::pb_de, + }, }; #[derive(Clone)] @@ -35,37 +43,68 @@ impl QuotaControllerClient { } } - pub fn allocate_quota_opt(&self, req: &super::quota_controller::AllocateQuotaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) + pub fn allocate_quota_opt( + &self, + req: &super::quota_controller::AllocateQuotaRequest, + opt: ::grpcio::CallOption, + ) -> ::grpcio::Result { + self.client + .unary_call(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) } - pub fn allocate_quota(&self, req: &super::quota_controller::AllocateQuotaRequest) -> ::grpcio::Result { + pub fn allocate_quota( + &self, + req: &super::quota_controller::AllocateQuotaRequest, + ) -> ::grpcio::Result { self.allocate_quota_opt(req, ::grpcio::CallOption::default()) } - pub fn allocate_quota_async_opt(&self, req: &super::quota_controller::AllocateQuotaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) + pub fn allocate_quota_async_opt( + &self, + req: &super::quota_controller::AllocateQuotaRequest, + opt: ::grpcio::CallOption, + ) -> ::grpcio::Result< + ::grpcio::ClientUnaryReceiver, + > { + self.client + .unary_call_async(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) } - pub fn allocate_quota_async(&self, req: &super::quota_controller::AllocateQuotaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + pub fn allocate_quota_async( + &self, + req: &super::quota_controller::AllocateQuotaRequest, + ) -> ::grpcio::Result< + ::grpcio::ClientUnaryReceiver, + > { self.allocate_quota_async_opt(req, ::grpcio::CallOption::default()) } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { + pub fn spawn(&self, f: F) + where + F: ::std::future::Future + Send + 'static, + { self.client.spawn(f) } } pub trait QuotaController { - fn allocate_quota(&mut self, ctx: ::grpcio::RpcContext, _req: super::quota_controller::AllocateQuotaRequest, sink: ::grpcio::UnarySink) { + fn allocate_quota( + &mut self, + ctx: ::grpcio::RpcContext, + _req: super::quota_controller::AllocateQuotaRequest, + sink: ::grpcio::UnarySink, + ) { grpcio::unimplemented_call!(ctx, sink) } } -pub fn create_quota_controller(s: S) -> ::grpcio::Service { +pub fn create_quota_controller( + s: S, +) -> ::grpcio::Service { let mut builder = ::grpcio::ServiceBuilder::new(); let mut instance = s; - builder = builder.add_unary_handler(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, move |ctx, req, resp| { - instance.allocate_quota(ctx, req, resp) - }); + builder = builder.add_unary_handler( + &METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, + move |ctx, req, resp| instance.allocate_quota(ctx, req, resp), + ); builder.build() } diff --git a/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs b/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs index 750db82..f074237 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,41 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicecontrol/v1/service_controller.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for the Check method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CheckRequest { // message fields + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckRequest.service_name) pub service_name: ::std::string::String, - pub operation: ::protobuf::SingularPtrField, + /// The operation to be checked. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckRequest.operation) + pub operation: ::protobuf::MessageField, + /// Specifies which version of service configuration should be used to process + /// the request. + /// + /// If unspecified or no matching version can be found, the + /// latest one will be used. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckRequest.service_config_id) pub service_config_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.CheckRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CheckRequest { @@ -45,117 +64,53 @@ impl CheckRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // .google.api.servicecontrol.v1.Operation operation = 2; - - - pub fn get_operation(&self) -> &super::operation::Operation { - self.operation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_operation(&mut self) { - self.operation.clear(); - } - - pub fn has_operation(&self) -> bool { - self.operation.is_some() - } - - // Param is passed by value, moved - pub fn set_operation(&mut self, v: super::operation::Operation) { - self.operation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation(&mut self) -> &mut super::operation::Operation { - if self.operation.is_none() { - self.operation.set_default(); - } - self.operation.as_mut().unwrap() - } - - // Take field - pub fn take_operation(&mut self) -> super::operation::Operation { - self.operation.take().unwrap_or_else(|| super::operation::Operation::new()) - } - - // string service_config_id = 4; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &CheckRequest| { &m.service_name }, + |m: &mut CheckRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::operation::Operation>( + "operation", + |m: &CheckRequest| { &m.operation }, + |m: &mut CheckRequest| { &mut m.operation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &CheckRequest| { &m.service_config_id }, + |m: &mut CheckRequest| { &mut m.service_config_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CheckRequest { + const NAME: &'static str = "CheckRequest"; + fn is_initialized(&self) -> bool { - for v in &self.operation { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.operation)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.operation)?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 34 => { + self.service_config_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -164,134 +119,113 @@ impl ::protobuf::Message for CheckRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - if let Some(ref v) = self.operation.as_ref() { + if let Some(v) = self.operation.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.service_config_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - if let Some(ref v) = self.operation.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.operation.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if !self.service_config_id.is_empty() { os.write_string(4, &self.service_config_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CheckRequest { CheckRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &CheckRequest| { &m.service_name }, - |m: &mut CheckRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operation", - |m: &CheckRequest| { &m.operation }, - |m: &mut CheckRequest| { &mut m.operation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &CheckRequest| { &m.service_config_id }, - |m: &mut CheckRequest| { &mut m.service_config_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.operation.clear(); + self.service_config_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CheckRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckRequest::new) + static instance: CheckRequest = CheckRequest { + service_name: ::std::string::String::new(), + operation: ::protobuf::MessageField::none(), + service_config_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CheckRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.operation.clear(); - self.service_config_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CheckRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CheckRequest { +impl ::std::fmt::Display for CheckRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CheckRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for the Check method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CheckResponse { // message fields + /// The same operation_id value used in the + /// [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging + /// and diagnostics purposes. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.operation_id) pub operation_id: ::std::string::String, - pub check_errors: ::protobuf::RepeatedField, - pub service_config_id: ::std::string::String, + /// The current service rollout id used to process the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.service_rollout_id) pub service_rollout_id: ::std::string::String, - pub check_info: ::protobuf::SingularPtrField, + /// Indicate the decision of the check. + /// + /// If no check errors are present, the service should process the operation. + /// Otherwise the service should use the list of errors to determine the + /// appropriate action. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.check_errors) + pub check_errors: ::std::vec::Vec, + /// The actual config id used to process the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.service_config_id) + pub service_config_id: ::std::string::String, + /// Feedback data returned from the server during processing a Check request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.check_info) + pub check_info: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.CheckResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CheckResponse { @@ -305,179 +239,69 @@ impl CheckResponse { ::std::default::Default::default() } - // string operation_id = 1; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.CheckError check_errors = 2; - - - pub fn get_check_errors(&self) -> &[super::check_error::CheckError] { - &self.check_errors - } - pub fn clear_check_errors(&mut self) { - self.check_errors.clear(); - } - - // Param is passed by value, moved - pub fn set_check_errors(&mut self, v: ::protobuf::RepeatedField) { - self.check_errors = v; - } - - // Mutable pointer to the field. - pub fn mut_check_errors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.check_errors - } - - // Take field - pub fn take_check_errors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.check_errors, ::protobuf::RepeatedField::new()) - } - - // string service_config_id = 5; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) - } - - // string service_rollout_id = 11; - - - pub fn get_service_rollout_id(&self) -> &str { - &self.service_rollout_id - } - pub fn clear_service_rollout_id(&mut self) { - self.service_rollout_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_rollout_id(&mut self, v: ::std::string::String) { - self.service_rollout_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_rollout_id(&mut self) -> &mut ::std::string::String { - &mut self.service_rollout_id - } - - // Take field - pub fn take_service_rollout_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_rollout_id, ::std::string::String::new()) - } - - // .google.api.servicecontrol.v1.CheckResponse.CheckInfo check_info = 6; - - - pub fn get_check_info(&self) -> &CheckResponse_CheckInfo { - self.check_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_check_info(&mut self) { - self.check_info.clear(); - } - - pub fn has_check_info(&self) -> bool { - self.check_info.is_some() - } - - // Param is passed by value, moved - pub fn set_check_info(&mut self, v: CheckResponse_CheckInfo) { - self.check_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_check_info(&mut self) -> &mut CheckResponse_CheckInfo { - if self.check_info.is_none() { - self.check_info.set_default(); - } - self.check_info.as_mut().unwrap() - } - - // Take field - pub fn take_check_info(&mut self) -> CheckResponse_CheckInfo { - self.check_info.take().unwrap_or_else(|| CheckResponse_CheckInfo::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &CheckResponse| { &m.operation_id }, + |m: &mut CheckResponse| { &mut m.operation_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_rollout_id", + |m: &CheckResponse| { &m.service_rollout_id }, + |m: &mut CheckResponse| { &mut m.service_rollout_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "check_errors", + |m: &CheckResponse| { &m.check_errors }, + |m: &mut CheckResponse| { &mut m.check_errors }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &CheckResponse| { &m.service_config_id }, + |m: &mut CheckResponse| { &mut m.service_config_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, check_response::CheckInfo>( + "check_info", + |m: &CheckResponse| { &m.check_info }, + |m: &mut CheckResponse| { &mut m.check_info }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for CheckResponse { + const NAME: &'static str = "CheckResponse"; + fn is_initialized(&self) -> bool { - for v in &self.check_errors { - if !v.is_initialized() { - return false; - } - }; - for v in &self.check_info { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.check_errors)?; + 90 => { + self.service_rollout_id = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 18 => { + self.check_errors.push(is.read_message()?); }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_id)?; + 42 => { + self.service_config_id = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.check_info)?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.check_info)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -486,651 +310,389 @@ impl ::protobuf::Message for CheckResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.operation_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.operation_id); } + if !self.service_rollout_id.is_empty() { + my_size += ::protobuf::rt::string_size(11, &self.service_rollout_id); + } for value in &self.check_errors { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.service_config_id); } - if !self.service_rollout_id.is_empty() { - my_size += ::protobuf::rt::string_size(11, &self.service_rollout_id); - } - if let Some(ref v) = self.check_info.as_ref() { + if let Some(v) = self.check_info.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.operation_id.is_empty() { os.write_string(1, &self.operation_id)?; } + if !self.service_rollout_id.is_empty() { + os.write_string(11, &self.service_rollout_id)?; + } for v in &self.check_errors { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if !self.service_config_id.is_empty() { os.write_string(5, &self.service_config_id)?; } - if !self.service_rollout_id.is_empty() { - os.write_string(11, &self.service_rollout_id)?; - } - if let Some(ref v) = self.check_info.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.check_info.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CheckResponse { CheckResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &CheckResponse| { &m.operation_id }, - |m: &mut CheckResponse| { &mut m.operation_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "check_errors", - |m: &CheckResponse| { &m.check_errors }, - |m: &mut CheckResponse| { &mut m.check_errors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &CheckResponse| { &m.service_config_id }, - |m: &mut CheckResponse| { &mut m.service_config_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_rollout_id", - |m: &CheckResponse| { &m.service_rollout_id }, - |m: &mut CheckResponse| { &mut m.service_rollout_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "check_info", - |m: &CheckResponse| { &m.check_info }, - |m: &mut CheckResponse| { &mut m.check_info }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckResponse::new) - } -} - -impl ::protobuf::Clear for CheckResponse { fn clear(&mut self) { self.operation_id.clear(); + self.service_rollout_id.clear(); self.check_errors.clear(); self.service_config_id.clear(); - self.service_rollout_id.clear(); self.check_info.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for CheckResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static CheckResponse { + static instance: CheckResponse = CheckResponse { + operation_id: ::std::string::String::new(), + service_rollout_id: ::std::string::String::new(), + check_errors: ::std::vec::Vec::new(), + service_config_id: ::std::string::String::new(), + check_info: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for CheckResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for CheckResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckResponse").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct CheckResponse_CheckInfo { - // message fields - pub unused_arguments: ::protobuf::RepeatedField<::std::string::String>, - pub consumer_info: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckResponse_CheckInfo { - fn default() -> &'a CheckResponse_CheckInfo { - ::default_instance() +impl ::std::fmt::Display for CheckResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl CheckResponse_CheckInfo { - pub fn new() -> CheckResponse_CheckInfo { - ::std::default::Default::default() - } - - // repeated string unused_arguments = 1; - - - pub fn get_unused_arguments(&self) -> &[::std::string::String] { - &self.unused_arguments - } - pub fn clear_unused_arguments(&mut self) { - self.unused_arguments.clear(); - } - - // Param is passed by value, moved - pub fn set_unused_arguments(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.unused_arguments = v; - } - - // Mutable pointer to the field. - pub fn mut_unused_arguments(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.unused_arguments - } - - // Take field - pub fn take_unused_arguments(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.unused_arguments, ::protobuf::RepeatedField::new()) - } - - // .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo consumer_info = 2; - - - pub fn get_consumer_info(&self) -> &CheckResponse_ConsumerInfo { - self.consumer_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_consumer_info(&mut self) { - self.consumer_info.clear(); - } - - pub fn has_consumer_info(&self) -> bool { - self.consumer_info.is_some() - } - - // Param is passed by value, moved - pub fn set_consumer_info(&mut self, v: CheckResponse_ConsumerInfo) { - self.consumer_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consumer_info(&mut self) -> &mut CheckResponse_ConsumerInfo { - if self.consumer_info.is_none() { - self.consumer_info.set_default(); - } - self.consumer_info.as_mut().unwrap() - } - - // Take field - pub fn take_consumer_info(&mut self) -> CheckResponse_ConsumerInfo { - self.consumer_info.take().unwrap_or_else(|| CheckResponse_ConsumerInfo::new()) - } +impl ::protobuf::reflect::ProtobufValue for CheckResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::Message for CheckResponse_CheckInfo { - fn is_initialized(&self) -> bool { - for v in &self.consumer_info { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.unused_arguments)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.consumer_info)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; +/// Nested message and enums of message `CheckResponse` +pub mod check_response { + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckResponse.CheckInfo) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct CheckInfo { + // message fields + /// Consumer info of this check. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.CheckInfo.consumer_info) + pub consumer_info: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.CheckResponse.CheckInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a CheckInfo { + fn default() -> &'a CheckInfo { + ::default_instance() } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.unused_arguments { - my_size += ::protobuf::rt::string_size(1, &value); - }; - if let Some(ref v) = self.consumer_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.unused_arguments { - os.write_string(1, &v)?; - }; - if let Some(ref v) = self.consumer_info.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + impl CheckInfo { + pub fn new() -> CheckInfo { + ::std::default::Default::default() } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckResponse_CheckInfo { - CheckResponse_CheckInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "unused_arguments", - |m: &CheckResponse_CheckInfo| { &m.unused_arguments }, - |m: &mut CheckResponse_CheckInfo| { &mut m.unused_arguments }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ConsumerInfo>( "consumer_info", - |m: &CheckResponse_CheckInfo| { &m.consumer_info }, - |m: &mut CheckResponse_CheckInfo| { &mut m.consumer_info }, + |m: &CheckInfo| { &m.consumer_info }, + |m: &mut CheckInfo| { &mut m.consumer_info }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CheckResponse.CheckInfo", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static CheckResponse_CheckInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckResponse_CheckInfo::new) - } -} - -impl ::protobuf::Clear for CheckResponse_CheckInfo { - fn clear(&mut self) { - self.unused_arguments.clear(); - self.consumer_info.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckResponse_CheckInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckResponse_CheckInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckResponse_ConsumerInfo { - // message fields - pub project_number: i64, - pub field_type: CheckResponse_ConsumerInfo_ConsumerType, - pub consumer_number: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckResponse_ConsumerInfo { - fn default() -> &'a CheckResponse_ConsumerInfo { - ::default_instance() - } -} - -impl CheckResponse_ConsumerInfo { - pub fn new() -> CheckResponse_ConsumerInfo { - ::std::default::Default::default() - } - - // int64 project_number = 1; - - - pub fn get_project_number(&self) -> i64 { - self.project_number - } - pub fn clear_project_number(&mut self) { - self.project_number = 0; - } - - // Param is passed by value, moved - pub fn set_project_number(&mut self, v: i64) { - self.project_number = v; + } } - // .google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.ConsumerType type = 2; + impl ::protobuf::Message for CheckInfo { + const NAME: &'static str = "CheckInfo"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_field_type(&self) -> CheckResponse_ConsumerInfo_ConsumerType { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED; - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.consumer_info)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: CheckResponse_ConsumerInfo_ConsumerType) { - self.field_type = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.consumer_info.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // int64 consumer_number = 3; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.consumer_info.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_consumer_number(&self) -> i64 { - self.consumer_number - } - pub fn clear_consumer_number(&mut self) { - self.consumer_number = 0; - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Param is passed by value, moved - pub fn set_consumer_number(&mut self, v: i64) { - self.consumer_number = v; - } -} + fn new() -> CheckInfo { + CheckInfo::new() + } -impl ::protobuf::Message for CheckResponse_ConsumerInfo { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.consumer_info.clear(); + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.project_number = tmp; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.consumer_number = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static CheckInfo { + static instance: CheckInfo = CheckInfo { + consumer_info: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.project_number != 0 { - my_size += ::protobuf::rt::value_size(1, self.project_number, ::protobuf::wire_format::WireTypeVarint); - } - if self.field_type != CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.field_type); + impl ::protobuf::MessageFull for CheckInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("CheckResponse.CheckInfo").unwrap()).clone() } - if self.consumer_number != 0 { - my_size += ::protobuf::rt::value_size(3, self.consumer_number, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.project_number != 0 { - os.write_int64(1, self.project_number)?; - } - if self.field_type != CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.field_type))?; + impl ::std::fmt::Display for CheckInfo { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - if self.consumer_number != 0 { - os.write_int64(3, self.consumer_number)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + impl ::protobuf::reflect::ProtobufValue for CheckInfo { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + /// `ConsumerInfo` provides information about the consumer project. + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ConsumerInfo { + // message fields + /// The Google cloud project number, e.g. 1234567890. A value of 0 indicates + /// no project number is found. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.project_number) + pub project_number: i64, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a ConsumerInfo { + fn default() -> &'a ConsumerInfo { + ::default_instance() + } } - fn new() -> CheckResponse_ConsumerInfo { - CheckResponse_ConsumerInfo::new() - } + impl ConsumerInfo { + pub fn new() -> ConsumerInfo { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "project_number", - |m: &CheckResponse_ConsumerInfo| { &m.project_number }, - |m: &mut CheckResponse_ConsumerInfo| { &mut m.project_number }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &CheckResponse_ConsumerInfo| { &m.field_type }, - |m: &mut CheckResponse_ConsumerInfo| { &mut m.field_type }, + |m: &ConsumerInfo| { &m.project_number }, + |m: &mut ConsumerInfo| { &mut m.project_number }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "consumer_number", - |m: &CheckResponse_ConsumerInfo| { &m.consumer_number }, - |m: &mut CheckResponse_ConsumerInfo| { &mut m.consumer_number }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "CheckResponse.ConsumerInfo", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static CheckResponse_ConsumerInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckResponse_ConsumerInfo::new) - } -} + impl ::protobuf::Message for ConsumerInfo { + const NAME: &'static str = "ConsumerInfo"; -impl ::protobuf::Clear for CheckResponse_ConsumerInfo { - fn clear(&mut self) { - self.project_number = 0; - self.field_type = CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED; - self.consumer_number = 0; - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.project_number = is.read_int64()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::std::fmt::Debug for CheckResponse_ConsumerInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.project_number != 0 { + my_size += ::protobuf::rt::int64_size(1, self.project_number); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl ::protobuf::reflect::ProtobufValue for CheckResponse_ConsumerInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.project_number != 0 { + os.write_int64(1, self.project_number)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CheckResponse_ConsumerInfo_ConsumerType { - CONSUMER_TYPE_UNSPECIFIED = 0, - PROJECT = 1, - FOLDER = 2, - ORGANIZATION = 3, - SERVICE_SPECIFIC = 4, -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl ::protobuf::ProtobufEnum for CheckResponse_ConsumerInfo_ConsumerType { - fn value(&self) -> i32 { - *self as i32 - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CheckResponse_ConsumerInfo_ConsumerType::PROJECT), - 2 => ::std::option::Option::Some(CheckResponse_ConsumerInfo_ConsumerType::FOLDER), - 3 => ::std::option::Option::Some(CheckResponse_ConsumerInfo_ConsumerType::ORGANIZATION), - 4 => ::std::option::Option::Some(CheckResponse_ConsumerInfo_ConsumerType::SERVICE_SPECIFIC), - _ => ::std::option::Option::None + fn new() -> ConsumerInfo { + ConsumerInfo::new() } - } - fn values() -> &'static [Self] { - static values: &'static [CheckResponse_ConsumerInfo_ConsumerType] = &[ - CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED, - CheckResponse_ConsumerInfo_ConsumerType::PROJECT, - CheckResponse_ConsumerInfo_ConsumerType::FOLDER, - CheckResponse_ConsumerInfo_ConsumerType::ORGANIZATION, - CheckResponse_ConsumerInfo_ConsumerType::SERVICE_SPECIFIC, - ]; - values - } + fn clear(&mut self) { + self.project_number = 0; + self.special_fields.clear(); + } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CheckResponse.ConsumerInfo.ConsumerType", file_descriptor_proto()) - }) + fn default_instance() -> &'static ConsumerInfo { + static instance: ConsumerInfo = ConsumerInfo { + project_number: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::std::marker::Copy for CheckResponse_ConsumerInfo_ConsumerType { -} + impl ::protobuf::MessageFull for ConsumerInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("CheckResponse.ConsumerInfo").unwrap()).clone() + } + } -impl ::std::default::Default for CheckResponse_ConsumerInfo_ConsumerType { - fn default() -> Self { - CheckResponse_ConsumerInfo_ConsumerType::CONSUMER_TYPE_UNSPECIFIED + impl ::std::fmt::Display for ConsumerInfo { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for CheckResponse_ConsumerInfo_ConsumerType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ::protobuf::reflect::ProtobufValue for ConsumerInfo { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] +/// Request message for the Report method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.ReportRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReportRequest { // message fields + /// The service name as specified in its service configuration. For example, + /// `"pubsub.googleapis.com"`. + /// + /// See + /// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + /// for the definition of a service name. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportRequest.service_name) pub service_name: ::std::string::String, - pub operations: ::protobuf::RepeatedField, + /// Operations to be reported. + /// + /// Typically the service should report one operation per request. + /// Putting multiple operations into a single request is allowed, but should + /// be used only when multiple operations are natually available at the time + /// of the report. + /// + /// If multiple operations are in a single request, the total request size + /// should be no larger than 1MB. See + /// [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors] + /// for partial failure behavior. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportRequest.operations) + pub operations: ::std::vec::Vec, + /// Specifies which version of service config should be used to process the + /// request. + /// + /// If unspecified or no matching version can be found, the + /// latest one will be used. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportRequest.service_config_id) pub service_config_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.ReportRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReportRequest { @@ -1144,109 +706,53 @@ impl ReportRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // repeated .google.api.servicecontrol.v1.Operation operations = 2; - - - pub fn get_operations(&self) -> &[super::operation::Operation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // string service_config_id = 3; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &ReportRequest| { &m.service_name }, + |m: &mut ReportRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "operations", + |m: &ReportRequest| { &m.operations }, + |m: &mut ReportRequest| { &mut m.operations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &ReportRequest| { &m.service_config_id }, + |m: &mut ReportRequest| { &mut m.service_config_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReportRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReportRequest { + const NAME: &'static str = "ReportRequest"; + fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; + 18 => { + self.operations.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 26 => { + self.service_config_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1255,132 +761,100 @@ impl ::protobuf::Message for ReportRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } for value in &self.operations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.service_config_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } for v in &self.operations { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if !self.service_config_id.is_empty() { os.write_string(3, &self.service_config_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReportRequest { ReportRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &ReportRequest| { &m.service_name }, - |m: &mut ReportRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ReportRequest| { &m.operations }, - |m: &mut ReportRequest| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &ReportRequest| { &m.service_config_id }, - |m: &mut ReportRequest| { &mut m.service_config_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.operations.clear(); + self.service_config_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportRequest::new) + static instance: ReportRequest = ReportRequest { + service_name: ::std::string::String::new(), + operations: ::std::vec::Vec::new(), + service_config_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReportRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.operations.clear(); - self.service_config_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReportRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReportRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ReportRequest { +impl ::std::fmt::Display for ReportRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for the Report method. +// @@protoc_insertion_point(message:google.api.servicecontrol.v1.ReportResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReportResponse { // message fields - pub report_errors: ::protobuf::RepeatedField, + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportResponse.report_errors) + pub report_errors: ::std::vec::Vec, + /// The actual config id used to process the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportResponse.service_config_id) pub service_config_id: ::std::string::String, + /// The current service rollout id used to process the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportResponse.service_rollout_id) pub service_rollout_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.ReportResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReportResponse { @@ -1394,109 +868,53 @@ impl ReportResponse { ::std::default::Default::default() } - // repeated .google.api.servicecontrol.v1.ReportResponse.ReportError report_errors = 1; - - - pub fn get_report_errors(&self) -> &[ReportResponse_ReportError] { - &self.report_errors - } - pub fn clear_report_errors(&mut self) { - self.report_errors.clear(); - } - - // Param is passed by value, moved - pub fn set_report_errors(&mut self, v: ::protobuf::RepeatedField) { - self.report_errors = v; - } - - // Mutable pointer to the field. - pub fn mut_report_errors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.report_errors - } - - // Take field - pub fn take_report_errors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.report_errors, ::protobuf::RepeatedField::new()) - } - - // string service_config_id = 2; - - - pub fn get_service_config_id(&self) -> &str { - &self.service_config_id - } - pub fn clear_service_config_id(&mut self) { - self.service_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_config_id(&mut self, v: ::std::string::String) { - self.service_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config_id(&mut self) -> &mut ::std::string::String { - &mut self.service_config_id - } - - // Take field - pub fn take_service_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_config_id, ::std::string::String::new()) - } - - // string service_rollout_id = 4; - - - pub fn get_service_rollout_id(&self) -> &str { - &self.service_rollout_id - } - pub fn clear_service_rollout_id(&mut self) { - self.service_rollout_id.clear(); - } - - // Param is passed by value, moved - pub fn set_service_rollout_id(&mut self, v: ::std::string::String) { - self.service_rollout_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_rollout_id(&mut self) -> &mut ::std::string::String { - &mut self.service_rollout_id - } - - // Take field - pub fn take_service_rollout_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_rollout_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "report_errors", + |m: &ReportResponse| { &m.report_errors }, + |m: &mut ReportResponse| { &mut m.report_errors }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_config_id", + |m: &ReportResponse| { &m.service_config_id }, + |m: &mut ReportResponse| { &mut m.service_config_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_rollout_id", + |m: &ReportResponse| { &m.service_rollout_id }, + |m: &mut ReportResponse| { &mut m.service_rollout_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReportResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReportResponse { + const NAME: &'static str = "ReportResponse"; + fn is_initialized(&self) -> bool { - for v in &self.report_errors { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.report_errors)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.report_errors.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_config_id)?; + 18 => { + self.service_config_id = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_rollout_id)?; + 34 => { + self.service_rollout_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1505,11 +923,11 @@ impl ::protobuf::Message for ReportResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.report_errors { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.service_config_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.service_config_id); @@ -1517,16 +935,14 @@ impl ::protobuf::Message for ReportResponse { if !self.service_rollout_id.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.service_rollout_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.report_errors { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.service_config_id.is_empty() { os.write_string(2, &self.service_config_id)?; @@ -1534,587 +950,411 @@ impl ::protobuf::Message for ReportResponse { if !self.service_rollout_id.is_empty() { os.write_string(4, &self.service_rollout_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReportResponse { ReportResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "report_errors", - |m: &ReportResponse| { &m.report_errors }, - |m: &mut ReportResponse| { &mut m.report_errors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_config_id", - |m: &ReportResponse| { &m.service_config_id }, - |m: &mut ReportResponse| { &mut m.service_config_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_rollout_id", - |m: &ReportResponse| { &m.service_rollout_id }, - |m: &mut ReportResponse| { &mut m.service_rollout_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.report_errors.clear(); + self.service_config_id.clear(); + self.service_rollout_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ReportResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportResponse::new) + static instance: ReportResponse = ReportResponse { + report_errors: ::std::vec::Vec::new(), + service_config_id: ::std::string::String::new(), + service_rollout_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReportResponse { - fn clear(&mut self) { - self.report_errors.clear(); - self.service_config_id.clear(); - self.service_rollout_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReportResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReportResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ReportResponse { +impl ::std::fmt::Display for ReportResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ReportResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportResponse_ReportError { - // message fields - pub operation_id: ::std::string::String, - pub status: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportResponse_ReportError { - fn default() -> &'a ReportResponse_ReportError { - ::default_instance() - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ReportResponse_ReportError { - pub fn new() -> ReportResponse_ReportError { - ::std::default::Default::default() - } - - // string operation_id = 1; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) +/// Nested message and enums of message `ReportResponse` +pub mod report_response { + /// Represents the processing error of one + /// [Operation][google.api.servicecontrol.v1.Operation] in the request. + // @@protoc_insertion_point(message:google.api.servicecontrol.v1.ReportResponse.ReportError) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ReportError { + // message fields + /// The + /// [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id] + /// value from the request. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportResponse.ReportError.operation_id) + pub operation_id: ::std::string::String, + /// Details of the error when processing the + /// [Operation][google.api.servicecontrol.v1.Operation]. + // @@protoc_insertion_point(field:google.api.servicecontrol.v1.ReportResponse.ReportError.status) + pub status: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicecontrol.v1.ReportResponse.ReportError.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ReportError { + fn default() -> &'a ReportError { + ::default_instance() + } } - // .google.rpc.Status status = 2; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } + impl ReportError { + pub fn new() -> ReportError { + ::std::default::Default::default() + } - pub fn has_status(&self) -> bool { - self.status.is_some() + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &ReportError| { &m.operation_id }, + |m: &mut ReportError| { &mut m.operation_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::status::Status>( + "status", + |m: &ReportError| { &m.status }, + |m: &mut ReportError| { &mut m.status }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReportResponse.ReportError", + fields, + oneofs, + ) + } } - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } + impl ::protobuf::Message for ReportError { + const NAME: &'static str = "ReportError"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); + fn is_initialized(&self) -> bool { + true } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) - } -} -impl ::protobuf::Message for ReportResponse_ReportError { - fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation_id = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.status)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + ::std::result::Result::Ok(()) } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.operation_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.operation_id); - } - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.operation_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.operation_id); + } + if let Some(v) = self.status.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.operation_id.is_empty() { - os.write_string(1, &self.operation_id)?; - } - if let Some(ref v) = self.status.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.operation_id.is_empty() { + os.write_string(1, &self.operation_id)?; + } + if let Some(v) = self.status.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> ReportResponse_ReportError { - ReportResponse_ReportError::new() - } + fn new() -> ReportError { + ReportError::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &ReportResponse_ReportError| { &m.operation_id }, - |m: &mut ReportResponse_ReportError| { &mut m.operation_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &ReportResponse_ReportError| { &m.status }, - |m: &mut ReportResponse_ReportError| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportResponse.ReportError", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.operation_id.clear(); + self.status.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static ReportResponse_ReportError { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportResponse_ReportError::new) + fn default_instance() -> &'static ReportError { + static instance: ReportError = ReportError { + operation_id: ::std::string::String::new(), + status: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for ReportResponse_ReportError { - fn clear(&mut self) { - self.operation_id.clear(); - self.status.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for ReportError { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ReportResponse.ReportError").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for ReportResponse_ReportError { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for ReportError { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for ReportResponse_ReportError { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for ReportError { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } static file_descriptor_proto_data: &'static [u8] = b"\ \n5google/api/servicecontrol/v1/service_controller.proto\x12\x1cgoogle.a\ - pi.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/a\ - pi/client.proto\x1a.google/api/servicecontrol/v1/check_error.proto\x1a,g\ - oogle/api/servicecontrol/v1/operation.proto\x1a\x17google/rpc/status.pro\ - to\"\xa4\x01\n\x0cCheckRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\t\ - R\x0bserviceName\x12E\n\toperation\x18\x02\x20\x01(\x0b2'.google.api.ser\ - vicecontrol.v1.OperationR\toperation\x12*\n\x11service_config_id\x18\x04\ - \x20\x01(\tR\x0fserviceConfigId\"\xf3\x05\n\rCheckResponse\x12!\n\x0cope\ - ration_id\x18\x01\x20\x01(\tR\x0boperationId\x12K\n\x0ccheck_errors\x18\ - \x02\x20\x03(\x0b2(.google.api.servicecontrol.v1.CheckErrorR\x0bcheckErr\ - ors\x12*\n\x11service_config_id\x18\x05\x20\x01(\tR\x0fserviceConfigId\ - \x12,\n\x12service_rollout_id\x18\x0b\x20\x01(\tR\x10serviceRolloutId\ - \x12T\n\ncheck_info\x18\x06\x20\x01(\x0b25.google.api.servicecontrol.v1.\ - CheckResponse.CheckInfoR\tcheckInfo\x1a\x95\x01\n\tCheckInfo\x12)\n\x10u\ - nused_arguments\x18\x01\x20\x03(\tR\x0funusedArguments\x12]\n\rconsumer_\ - info\x18\x02\x20\x01(\x0b28.google.api.servicecontrol.v1.CheckResponse.C\ - onsumerInfoR\x0cconsumerInfo\x1a\xa9\x02\n\x0cConsumerInfo\x12%\n\x0epro\ - ject_number\x18\x01\x20\x01(\x03R\rprojectNumber\x12Y\n\x04type\x18\x02\ - \x20\x01(\x0e2E.google.api.servicecontrol.v1.CheckResponse.ConsumerInfo.\ - ConsumerTypeR\x04type\x12'\n\x0fconsumer_number\x18\x03\x20\x01(\x03R\ - \x0econsumerNumber\"n\n\x0cConsumerType\x12\x1d\n\x19CONSUMER_TYPE_UNSPE\ - CIFIED\x10\0\x12\x0b\n\x07PROJECT\x10\x01\x12\n\n\x06FOLDER\x10\x02\x12\ - \x10\n\x0cORGANIZATION\x10\x03\x12\x14\n\x10SERVICE_SPECIFIC\x10\x04\"\ - \xa7\x01\n\rReportRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0b\ - serviceName\x12G\n\noperations\x18\x02\x20\x03(\x0b2'.google.api.service\ - control.v1.OperationR\noperations\x12*\n\x11service_config_id\x18\x03\ - \x20\x01(\tR\x0fserviceConfigId\"\xa7\x02\n\x0eReportResponse\x12]\n\rre\ - port_errors\x18\x01\x20\x03(\x0b28.google.api.servicecontrol.v1.ReportRe\ - sponse.ReportErrorR\x0creportErrors\x12*\n\x11service_config_id\x18\x02\ - \x20\x01(\tR\x0fserviceConfigId\x12,\n\x12service_rollout_id\x18\x04\x20\ - \x01(\tR\x10serviceRolloutId\x1a\\\n\x0bReportError\x12!\n\x0coperation_\ - id\x18\x01\x20\x01(\tR\x0boperationId\x12*\n\x06status\x18\x02\x20\x01(\ - \x0b2\x12.google.rpc.StatusR\x06status2\xbc\x03\n\x11ServiceController\ - \x12\x8e\x01\n\x05Check\x12*.google.api.servicecontrol.v1.CheckRequest\ - \x1a+.google.api.servicecontrol.v1.CheckResponse\",\x82\xd3\xe4\x93\x02&\ - \"!/v1/services/{service_name}:check:\x01*\x12\x92\x01\n\x06Report\x12+.\ - google.api.servicecontrol.v1.ReportRequest\x1a,.google.api.servicecontro\ - l.v1.ReportResponse\"-\x82\xd3\xe4\x93\x02'\"\"/v1/services/{service_nam\ - e}:report:\x01*\x1a\x80\x01\xd2A]https://www.googleapis.com/auth/cloud-p\ - latform,https://www.googleapis.com/auth/servicecontrol\xcaA\x1dserviceco\ - ntrol.googleapis.comB\xf8\x01\n\x20com.google.api.servicecontrol.v1B\x16\ - ServiceControllerProtoP\x01ZJcloud.google.com/go/servicecontrol/apiv1/se\ - rvicecontrolpb;servicecontrolpb\xf8\x01\x01\xa2\x02\x04GASC\xaa\x02\x1eG\ - oogle.Cloud.ServiceControl.V1\xca\x02\x1eGoogle\\Cloud\\ServiceControl\\\ - V1\xea\x02!Google::Cloud::ServiceControl::V1J\xd3J\n\x07\x12\x05\x0e\0\ - \xfe\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\ - icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\ - t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ - \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ - nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ - 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0%\n\t\ - \n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\ - \x03\x02\x12\x03\x14\08\n\t\n\x02\x03\x03\x12\x03\x15\06\n\t\n\x02\x03\ - \x04\x12\x03\x16\0!\n\x08\n\x01\x08\x12\x03\x18\0\x1f\n\t\n\x02\x08\x1f\ - \x12\x03\x18\0\x1f\n\x08\n\x01\x08\x12\x03\x19\0;\n\t\n\x02\x08%\x12\x03\ - \x19\0;\n\x08\n\x01\x08\x12\x03\x1a\0a\n\t\n\x02\x08\x0b\x12\x03\x1a\0a\ - \n\x08\n\x01\x08\x12\x03\x1b\0\"\n\t\n\x02\x08\n\x12\x03\x1b\0\"\n\x08\n\ - \x01\x08\x12\x03\x1c\07\n\t\n\x02\x08\x08\x12\x03\x1c\07\n\x08\n\x01\x08\ - \x12\x03\x1d\09\n\t\n\x02\x08\x01\x12\x03\x1d\09\n\x08\n\x01\x08\x12\x03\ - \x1e\0\"\n\t\n\x02\x08$\x12\x03\x1e\0\"\n\x08\n\x01\x08\x12\x03\x1f\0;\n\ - \t\n\x02\x08)\x12\x03\x1f\0;\n\x08\n\x01\x08\x12\x03\x20\0:\n\t\n\x02\ - \x08-\x12\x03\x20\0:\n\x99\x02\n\x02\x06\0\x12\x04&\0Y\x01\x1a\x8c\x02\ - \x20[Google\x20Service\x20Control\x20API](/service-control/overview)\n\n\ - \x20Lets\x20clients\x20check\x20and\x20report\x20operations\x20against\ - \x20a\x20[managed\n\x20service](https://cloud.google.com/service-managem\ - ent/reference/rpc/google.api/servicemanagement.v1#google.api.servicemana\ - gement.v1.ManagedService).\n\n\n\n\x03\x06\0\x01\x12\x03&\x08\x19\n\n\n\ - \x03\x06\0\x03\x12\x03'\x02E\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03'\x02E\ - \n\x0b\n\x03\x06\0\x03\x12\x04(\x02*7\n\r\n\x05\x06\0\x03\x9a\x08\x12\ - \x04(\x02*7\n\xee\x06\n\x04\x06\0\x02\0\x12\x04=\x02B\x03\x1a\xdf\x06\ - \x20Checks\x20whether\x20an\x20operation\x20on\x20a\x20service\x20should\ - \x20be\x20allowed\x20to\x20proceed\n\x20based\x20on\x20the\x20configurat\ - ion\x20of\x20the\x20service\x20and\x20related\x20policies.\x20It\x20must\ - \x20be\n\x20called\x20before\x20the\x20operation\x20is\x20executed.\n\n\ - \x20If\x20feasible,\x20the\x20client\x20should\x20cache\x20the\x20check\ - \x20results\x20and\x20reuse\x20them\x20for\n\x2060\x20seconds.\x20In\x20\ - case\x20of\x20any\x20server\x20errors,\x20the\x20client\x20should\x20rel\ - y\x20on\x20the\n\x20cached\x20results\x20for\x20much\x20longer\x20time\ - \x20to\x20avoid\x20outage.\n\x20WARNING:\x20There\x20is\x20general\x2060\ - s\x20delay\x20for\x20the\x20configuration\x20and\x20policy\n\x20propagat\ - ion,\x20therefore\x20callers\x20MUST\x20NOT\x20depend\x20on\x20the\x20`C\ - heck`\x20method\x20having\n\x20the\x20latest\x20policy\x20information.\n\ - \n\x20NOTE:\x20the\x20[CheckRequest][google.api.servicecontrol.v1.CheckR\ - equest]\x20has\n\x20the\x20size\x20limit\x20(wire-format\x20byte\x20size\ - )\x20of\x201MB.\n\n\x20This\x20method\x20requires\x20the\x20`servicemana\ - gement.services.check`\x20permission\n\x20on\x20the\x20specified\x20serv\ - ice.\x20For\x20more\x20information,\x20see\n\x20[Cloud\x20IAM](https://c\ - loud.google.com/iam).\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03=\x06\x0b\n\ - \x0c\n\x05\x06\0\x02\0\x02\x12\x03=\x0c\x18\n\x0c\n\x05\x06\0\x02\0\x03\ - \x12\x03=#0\n\r\n\x05\x06\0\x02\0\x04\x12\x04>\x04A\x06\n\x11\n\t\x06\0\ - \x02\0\x04\xb0\xca\xbc\"\x12\x04>\x04A\x06\n\x85\x06\n\x04\x06\0\x02\x01\ - \x12\x04S\x02X\x03\x1a\xf6\x05\x20Reports\x20operation\x20results\x20to\ - \x20Google\x20Service\x20Control,\x20such\x20as\x20logs\x20and\n\x20metr\ - ics.\x20It\x20should\x20be\x20called\x20after\x20an\x20operation\x20is\ - \x20completed.\n\n\x20If\x20feasible,\x20the\x20client\x20should\x20aggr\ - egate\x20reporting\x20data\x20for\x20up\x20to\x205\n\x20seconds\x20to\ - \x20reduce\x20API\x20traffic.\x20Limiting\x20aggregation\x20to\x205\x20s\ - econds\x20is\x20to\n\x20reduce\x20data\x20loss\x20during\x20client\x20cr\ - ashes.\x20Clients\x20should\x20carefully\x20choose\n\x20the\x20aggregati\ - on\x20time\x20window\x20to\x20avoid\x20data\x20loss\x20risk\x20more\x20t\ - han\x200.01%\n\x20for\x20business\x20and\x20compliance\x20reasons.\n\n\ - \x20NOTE:\x20the\x20[ReportRequest][google.api.servicecontrol.v1.ReportR\ - equest]\x20has\n\x20the\x20size\x20limit\x20(wire-format\x20byte\x20size\ - )\x20of\x201MB.\n\n\x20This\x20method\x20requires\x20the\x20`servicemana\ - gement.services.report`\x20permission\n\x20on\x20the\x20specified\x20ser\ - vice.\x20For\x20more\x20information,\x20see\n\x20[Google\x20Cloud\x20IAM\ - ](https://cloud.google.com/iam).\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\ - S\x06\x0c\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03S\r\x1a\n\x0c\n\x05\x06\0\ - \x02\x01\x03\x12\x03S%3\n\r\n\x05\x06\0\x02\x01\x04\x12\x04T\x04W\x06\n\ - \x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04T\x04W\x06\n3\n\x02\x04\ - \0\x12\x04\\\0n\x01\x1a'\x20Request\x20message\x20for\x20the\x20Check\ - \x20method.\n\n\n\n\x03\x04\0\x01\x12\x03\\\x08\x14\n\x90\x02\n\x04\x04\ - \0\x02\0\x12\x03c\x02\x1a\x1a\x82\x02\x20The\x20service\x20name\x20as\ - \x20specified\x20in\x20its\x20service\x20configuration.\x20For\x20exampl\ - e,\n\x20`\"pubsub.googleapis.com\"`.\n\n\x20See\n\x20[google.api.Service\ - ](https://cloud.google.com/service-management/reference/rpc/google.api#g\ - oogle.api.Service)\n\x20for\x20the\x20definition\x20of\x20a\x20service\ - \x20name.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03c\x02\x08\n\x0c\n\x05\x04\ - \0\x02\0\x01\x12\x03c\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03c\x18\x19\ - \n+\n\x04\x04\0\x02\x01\x12\x03f\x02\x1a\x1a\x1e\x20The\x20operation\x20\ - to\x20be\x20checked.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03f\x02\x0b\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x03f\x0c\x15\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03f\x18\x19\n\xbc\x01\n\x04\x04\0\x02\x02\x12\x03m\x02\x1f\x1a\ - \xae\x01\x20Specifies\x20which\x20version\x20of\x20service\x20configurat\ - ion\x20should\x20be\x20used\x20to\x20process\n\x20the\x20request.\n\n\ - \x20If\x20unspecified\x20or\x20no\x20matching\x20version\x20can\x20be\ - \x20found,\x20the\n\x20latest\x20one\x20will\x20be\x20used.\n\n\x0c\n\ - \x05\x04\0\x02\x02\x05\x12\x03m\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\ - \x12\x03m\t\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03m\x1d\x1e\n5\n\x02\ - \x04\x01\x12\x05q\0\xb9\x01\x01\x1a(\x20Response\x20message\x20for\x20th\ - e\x20Check\x20method.\n\n\n\n\x03\x04\x01\x01\x12\x03q\x08\x15\nJ\n\x04\ - \x04\x01\x03\0\x12\x04s\x02{\x03\x1a<\x20Contains\x20additional\x20infor\ - mation\x20about\x20the\x20check\x20operation.\n\n\x0c\n\x05\x04\x01\x03\ - \0\x01\x12\x03s\n\x13\n\xc4\x01\n\x06\x04\x01\x03\0\x02\0\x12\x03w\x04)\ - \x1a\xb4\x01\x20A\x20list\x20of\x20fields\x20and\x20label\x20keys\x20tha\ - t\x20are\x20ignored\x20by\x20the\x20server.\n\x20The\x20client\x20doesn'\ - t\x20need\x20to\x20send\x20them\x20for\x20following\x20requests\x20to\ - \x20improve\n\x20performance\x20and\x20allow\x20better\x20aggregation.\n\ - \n\x0e\n\x07\x04\x01\x03\0\x02\0\x04\x12\x03w\x04\x0c\n\x0e\n\x07\x04\ - \x01\x03\0\x02\0\x05\x12\x03w\r\x13\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\ - \x12\x03w\x14$\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x03w'(\n-\n\x06\ - \x04\x01\x03\0\x02\x01\x12\x03z\x04#\x1a\x1e\x20Consumer\x20info\x20of\ - \x20this\x20check.\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x06\x12\x03z\x04\ - \x10\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\x03z\x11\x1e\n\x0e\n\x07\ - \x04\x01\x03\0\x02\x01\x03\x12\x03z!\"\nH\n\x04\x04\x01\x03\x01\x12\x05~\ - \x02\xa3\x01\x03\x1a9\x20`ConsumerInfo`\x20provides\x20information\x20ab\ - out\x20the\x20consumer.\n\n\x0c\n\x05\x04\x01\x03\x01\x01\x12\x03~\n\x16\ - \n\x82\x01\n\x06\x04\x01\x03\x01\x04\0\x12\x06\x81\x01\x04\x92\x01\x05\ - \x1ap\x20The\x20type\x20of\x20the\x20consumer\x20as\x20defined\x20in\n\ - \x20[Google\x20Resource\x20Manager](https://cloud.google.com/resource-ma\ - nager/).\n\n\x0f\n\x07\x04\x01\x03\x01\x04\0\x01\x12\x04\x81\x01\t\x15\n\ - '\n\x08\x04\x01\x03\x01\x04\0\x02\0\x12\x04\x83\x01\x06$\x1a\x15\x20This\ - \x20is\x20never\x20used.\n\n\x11\n\t\x04\x01\x03\x01\x04\0\x02\0\x01\x12\ - \x04\x83\x01\x06\x1f\n\x11\n\t\x04\x01\x03\x01\x04\0\x02\0\x02\x12\x04\ - \x83\x01\"#\n;\n\x08\x04\x01\x03\x01\x04\0\x02\x01\x12\x04\x86\x01\x06\ - \x12\x1a)\x20The\x20consumer\x20is\x20a\x20Google\x20Cloud\x20Project.\n\ - \n\x11\n\t\x04\x01\x03\x01\x04\0\x02\x01\x01\x12\x04\x86\x01\x06\r\n\x11\ - \n\t\x04\x01\x03\x01\x04\0\x02\x01\x02\x12\x04\x86\x01\x10\x11\n:\n\x08\ - \x04\x01\x03\x01\x04\0\x02\x02\x12\x04\x89\x01\x06\x11\x1a(\x20The\x20co\ - nsumer\x20is\x20a\x20Google\x20Cloud\x20Folder.\n\n\x11\n\t\x04\x01\x03\ - \x01\x04\0\x02\x02\x01\x12\x04\x89\x01\x06\x0c\n\x11\n\t\x04\x01\x03\x01\ - \x04\0\x02\x02\x02\x12\x04\x89\x01\x0f\x10\n@\n\x08\x04\x01\x03\x01\x04\ - \0\x02\x03\x12\x04\x8c\x01\x06\x17\x1a.\x20The\x20consumer\x20is\x20a\ - \x20Google\x20Cloud\x20Organization.\n\n\x11\n\t\x04\x01\x03\x01\x04\0\ - \x02\x03\x01\x12\x04\x8c\x01\x06\x12\n\x11\n\t\x04\x01\x03\x01\x04\0\x02\ - \x03\x02\x12\x04\x8c\x01\x15\x16\n\xe0\x01\n\x08\x04\x01\x03\x01\x04\0\ - \x02\x04\x12\x04\x91\x01\x06\x1b\x1a\xcd\x01\x20Service-specific\x20reso\ - urce\x20container\x20which\x20is\x20defined\x20by\x20the\x20service\n\ - \x20producer\x20to\x20offer\x20their\x20users\x20the\x20ability\x20to\ - \x20manage\x20service\x20control\n\x20functionalities\x20at\x20a\x20fine\ - r\x20level\x20of\x20granularity\x20than\x20the\x20PROJECT.\n\n\x11\n\t\ - \x04\x01\x03\x01\x04\0\x02\x04\x01\x12\x04\x91\x01\x06\x16\n\x11\n\t\x04\ - \x01\x03\x01\x04\0\x02\x04\x02\x12\x04\x91\x01\x19\x1a\n\xf3\x01\n\x06\ - \x04\x01\x03\x01\x02\0\x12\x04\x99\x01\x04\x1d\x1a\xe2\x01\x20The\x20Goo\ - gle\x20cloud\x20project\x20number,\x20e.g.\x201234567890.\x20A\x20value\ - \x20of\x200\x20indicates\n\x20no\x20project\x20number\x20is\x20found.\n\ - \n\x20NOTE:\x20This\x20field\x20is\x20deprecated\x20after\x20we\x20suppo\ - rt\x20flexible\x20consumer\n\x20id.\x20New\x20code\x20should\x20not\x20d\ - epend\x20on\x20this\x20field\x20anymore.\n\n\x0f\n\x07\x04\x01\x03\x01\ - \x02\0\x05\x12\x04\x99\x01\x04\t\n\x0f\n\x07\x04\x01\x03\x01\x02\0\x01\ - \x12\x04\x99\x01\n\x18\n\x0f\n\x07\x04\x01\x03\x01\x02\0\x03\x12\x04\x99\ - \x01\x1b\x1c\n\x95\x01\n\x06\x04\x01\x03\x01\x02\x01\x12\x04\x9d\x01\x04\ - \x1a\x1a\x84\x01\x20The\x20type\x20of\x20the\x20consumer\x20which\x20sho\ - uld\x20have\x20been\x20defined\x20in\n\x20[Google\x20Resource\x20Manager\ - ](https://cloud.google.com/resource-manager/).\n\n\x0f\n\x07\x04\x01\x03\ - \x01\x02\x01\x06\x12\x04\x9d\x01\x04\x10\n\x0f\n\x07\x04\x01\x03\x01\x02\ - \x01\x01\x12\x04\x9d\x01\x11\x15\n\x0f\n\x07\x04\x01\x03\x01\x02\x01\x03\ - \x12\x04\x9d\x01\x18\x19\n\xc0\x01\n\x06\x04\x01\x03\x01\x02\x02\x12\x04\ - \xa2\x01\x04\x1e\x1a\xaf\x01\x20The\x20consumer\x20identity\x20number,\ - \x20can\x20be\x20Google\x20cloud\x20project\x20number,\x20folder\n\x20nu\ - mber\x20or\x20organization\x20number\x20e.g.\x201234567890.\x20A\x20valu\ - e\x20of\x200\x20indicates\x20no\n\x20consumer\x20number\x20is\x20found.\ - \n\n\x0f\n\x07\x04\x01\x03\x01\x02\x02\x05\x12\x04\xa2\x01\x04\t\n\x0f\n\ - \x07\x04\x01\x03\x01\x02\x02\x01\x12\x04\xa2\x01\n\x19\n\x0f\n\x07\x04\ - \x01\x03\x01\x02\x02\x03\x12\x04\xa2\x01\x1c\x1d\n\xa0\x01\n\x04\x04\x01\ - \x02\0\x12\x04\xa8\x01\x02\x1a\x1a\x91\x01\x20The\x20same\x20operation_i\ - d\x20value\x20used\x20in\x20the\n\x20[CheckRequest][google.api.serviceco\ - ntrol.v1.CheckRequest].\x20Used\x20for\x20logging\n\x20and\x20diagnostic\ - s\x20purposes.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xa8\x01\x02\x08\n\r\ - \n\x05\x04\x01\x02\0\x01\x12\x04\xa8\x01\t\x15\n\r\n\x05\x04\x01\x02\0\ - \x03\x12\x04\xa8\x01\x18\x19\n\xdb\x01\n\x04\x04\x01\x02\x01\x12\x04\xaf\ - \x01\x02'\x1a\xcc\x01\x20Indicate\x20the\x20decision\x20of\x20the\x20che\ + pi.servicecontrol.v1\x1a\x1cgoogle/api/annotations.proto\x1a.google/api/\ + servicecontrol/v1/check_error.proto\x1a,google/api/servicecontrol/v1/ope\ + ration.proto\x1a\x17google/rpc/status.proto\"\xa4\x01\n\x0cCheckRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12E\n\topera\ + tion\x18\x02\x20\x01(\x0b2'.google.api.servicecontrol.v1.OperationR\tope\ + ration\x12*\n\x11service_config_id\x18\x04\x20\x01(\tR\x0fserviceConfigI\ + d\"\xd2\x03\n\rCheckResponse\x12!\n\x0coperation_id\x18\x01\x20\x01(\tR\ + \x0boperationId\x12,\n\x12service_rollout_id\x18\x0b\x20\x01(\tR\x10serv\ + iceRolloutId\x12K\n\x0ccheck_errors\x18\x02\x20\x03(\x0b2(.google.api.se\ + rvicecontrol.v1.CheckErrorR\x0bcheckErrors\x12*\n\x11service_config_id\ + \x18\x05\x20\x01(\tR\x0fserviceConfigId\x12T\n\ncheck_info\x18\x06\x20\ + \x01(\x0b25.google.api.servicecontrol.v1.CheckResponse.CheckInfoR\tcheck\ + Info\x1aj\n\tCheckInfo\x12]\n\rconsumer_info\x18\x02\x20\x01(\x0b28.goog\ + le.api.servicecontrol.v1.CheckResponse.ConsumerInfoR\x0cconsumerInfo\x1a\ + 5\n\x0cConsumerInfo\x12%\n\x0eproject_number\x18\x01\x20\x01(\x03R\rproj\ + ectNumber\"\xa7\x01\n\rReportRequest\x12!\n\x0cservice_name\x18\x01\x20\ + \x01(\tR\x0bserviceName\x12G\n\noperations\x18\x02\x20\x03(\x0b2'.google\ + .api.servicecontrol.v1.OperationR\noperations\x12*\n\x11service_config_i\ + d\x18\x03\x20\x01(\tR\x0fserviceConfigId\"\xa7\x02\n\x0eReportResponse\ + \x12]\n\rreport_errors\x18\x01\x20\x03(\x0b28.google.api.servicecontrol.\ + v1.ReportResponse.ReportErrorR\x0creportErrors\x12*\n\x11service_config_\ + id\x18\x02\x20\x01(\tR\x0fserviceConfigId\x12,\n\x12service_rollout_id\ + \x18\x04\x20\x01(\tR\x10serviceRolloutId\x1a\\\n\x0bReportError\x12!\n\ + \x0coperation_id\x18\x01\x20\x01(\tR\x0boperationId\x12*\n\x06status\x18\ + \x02\x20\x01(\x0b2\x12.google.rpc.StatusR\x06status2\xb9\x02\n\x11Servic\ + eController\x12\x8e\x01\n\x05Check\x12*.google.api.servicecontrol.v1.Che\ + ckRequest\x1a+.google.api.servicecontrol.v1.CheckResponse\",\x82\xd3\xe4\ + \x93\x02&\"!/v1/services/{service_name}:check:\x01*\x12\x92\x01\n\x06Rep\ + ort\x12+.google.api.servicecontrol.v1.ReportRequest\x1a,.google.api.serv\ + icecontrol.v1.ReportResponse\"-\x82\xd3\xe4\x93\x02'\"\"/v1/services/{se\ + rvice_name}:report:\x01*B\x92\x01\n\x20com.google.api.servicecontrol.v1B\ + \x16ServiceControllerProtoP\x01ZJgoogle.golang.org/genproto/googleapis/a\ + pi/servicecontrol/v1;servicecontrol\xf8\x01\x01\xa2\x02\x04GASCJ\xf69\n\ + \x07\x12\x05\x0e\0\xcb\x01\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\ + \xb2\x04\x20Copyright\x202017\x20Google\x20Inc.\n\n\x20Licensed\x20under\ + \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ + \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ + ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ + \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ + org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ + \x02\x12\x03\x10\0%\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\ + \x03\x13\08\n\t\n\x02\x03\x02\x12\x03\x14\06\n\t\n\x02\x03\x03\x12\x03\ + \x15\0!\n\x08\n\x01\x08\x12\x03\x17\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x17\ + \0\x1f\n\x08\n\x01\x08\x12\x03\x18\0a\n\t\n\x02\x08\x0b\x12\x03\x18\0a\n\ + \x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\ + \x01\x08\x12\x03\x1a\07\n\t\n\x02\x08\x08\x12\x03\x1a\07\n\x08\n\x01\x08\ + \x12\x03\x1b\09\n\t\n\x02\x08\x01\x12\x03\x1b\09\n\x08\n\x01\x08\x12\x03\ + \x1c\0\"\n\t\n\x02\x08$\x12\x03\x1c\0\"\n\x99\x02\n\x02\x06\0\x12\x04\"\ + \0M\x01\x1a\x8c\x02\x20[Google\x20Service\x20Control\x20API](/service-co\ + ntrol/overview)\n\n\x20Lets\x20clients\x20check\x20and\x20report\x20oper\ + ations\x20against\x20a\x20[managed\n\x20service](https://cloud.google.co\ + m/service-management/reference/rpc/google.api/servicemanagement.v1#googl\ + e.api.servicemanagement.v1.ManagedService).\n\n\n\n\x03\x06\0\x01\x12\ + \x03\"\x08\x19\n\xf1\x04\n\x04\x06\0\x02\0\x12\x041\x026\x03\x1a\xe2\x04\ + \x20Checks\x20an\x20operation\x20with\x20Google\x20Service\x20Control\ + \x20to\x20decide\x20whether\n\x20the\x20given\x20operation\x20should\x20\ + proceed.\x20It\x20should\x20be\x20called\x20before\x20the\n\x20operation\ + \x20is\x20executed.\n\n\x20If\x20feasible,\x20the\x20client\x20should\ + \x20cache\x20the\x20check\x20results\x20and\x20reuse\x20them\x20for\n\ + \x2060\x20seconds.\x20In\x20case\x20of\x20server\x20errors,\x20the\x20cl\ + ient\x20can\x20rely\x20on\x20the\x20cached\n\x20results\x20for\x20longer\ + \x20time.\n\n\x20NOTE:\x20the\x20[CheckRequest][google.api.servicecontro\ + l.v1.CheckRequest]\x20has\x20the\n\x20size\x20limit\x20of\x2064KB.\n\n\ + \x20This\x20method\x20requires\x20the\x20`servicemanagement.services.che\ + ck`\x20permission\n\x20on\x20the\x20specified\x20service.\x20For\x20more\ + \x20information,\x20see\n\x20[Google\x20Cloud\x20IAM](https://cloud.goog\ + le.com/iam).\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x031\x06\x0b\n\x0c\n\x05\ + \x06\0\x02\0\x02\x12\x031\x0c\x18\n\x0c\n\x05\x06\0\x02\0\x03\x12\x031#0\ + \n\r\n\x05\x06\0\x02\0\x04\x12\x042\x045\x06\n\x11\n\t\x06\0\x02\0\x04\ + \xb0\xca\xbc\"\x12\x042\x045\x06\n\xed\x05\n\x04\x06\0\x02\x01\x12\x04G\ + \x02L\x03\x1a\xde\x05\x20Reports\x20operation\x20results\x20to\x20Google\ + \x20Service\x20Control,\x20such\x20as\x20logs\x20and\n\x20metrics.\x20It\ + \x20should\x20be\x20called\x20after\x20an\x20operation\x20is\x20complete\ + d.\n\n\x20If\x20feasible,\x20the\x20client\x20should\x20aggregate\x20rep\ + orting\x20data\x20for\x20up\x20to\x205\n\x20seconds\x20to\x20reduce\x20A\ + PI\x20traffic.\x20Limiting\x20aggregation\x20to\x205\x20seconds\x20is\ + \x20to\n\x20reduce\x20data\x20loss\x20during\x20client\x20crashes.\x20Cl\ + ients\x20should\x20carefully\x20choose\n\x20the\x20aggregation\x20time\ + \x20window\x20to\x20avoid\x20data\x20loss\x20risk\x20more\x20than\x200.0\ + 1%\n\x20for\x20business\x20and\x20compliance\x20reasons.\n\n\x20NOTE:\ + \x20the\x20[ReportRequest][google.api.servicecontrol.v1.ReportRequest]\ + \x20has\n\x20the\x20size\x20limit\x20of\x201MB.\n\n\x20This\x20method\ + \x20requires\x20the\x20`servicemanagement.services.report`\x20permission\ + \n\x20on\x20the\x20specified\x20service.\x20For\x20more\x20information,\ + \x20see\n\x20[Google\x20Cloud\x20IAM](https://cloud.google.com/iam).\n\n\ + \x0c\n\x05\x06\0\x02\x01\x01\x12\x03G\x06\x0c\n\x0c\n\x05\x06\0\x02\x01\ + \x02\x12\x03G\r\x1a\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03G%3\n\r\n\x05\ + \x06\0\x02\x01\x04\x12\x04H\x04K\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\ + \xbc\"\x12\x04H\x04K\x06\n3\n\x02\x04\0\x12\x04P\0b\x01\x1a'\x20Request\ + \x20message\x20for\x20the\x20Check\x20method.\n\n\n\n\x03\x04\0\x01\x12\ + \x03P\x08\x14\n\x90\x02\n\x04\x04\0\x02\0\x12\x03W\x02\x1a\x1a\x82\x02\ + \x20The\x20service\x20name\x20as\x20specified\x20in\x20its\x20service\ + \x20configuration.\x20For\x20example,\n\x20`\"pubsub.googleapis.com\"`.\ + \n\n\x20See\n\x20[google.api.Service](https://cloud.google.com/service-m\ + anagement/reference/rpc/google.api#google.api.Service)\n\x20for\x20the\ + \x20definition\x20of\x20a\x20service\x20name.\n\n\x0c\n\x05\x04\0\x02\0\ + \x05\x12\x03W\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03W\t\x15\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03W\x18\x19\n+\n\x04\x04\0\x02\x01\x12\x03Z\ + \x02\x1a\x1a\x1e\x20The\x20operation\x20to\x20be\x20checked.\n\n\x0c\n\ + \x05\x04\0\x02\x01\x06\x12\x03Z\x02\x0b\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x03Z\x0c\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03Z\x18\x19\n\xbc\ + \x01\n\x04\x04\0\x02\x02\x12\x03a\x02\x1f\x1a\xae\x01\x20Specifies\x20wh\ + ich\x20version\x20of\x20service\x20configuration\x20should\x20be\x20used\ + \x20to\x20process\n\x20the\x20request.\n\n\x20If\x20unspecified\x20or\ + \x20no\x20matching\x20version\x20can\x20be\x20found,\x20the\n\x20latest\ + \x20one\x20will\x20be\x20used.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03a\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03a\t\x1a\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x03a\x1d\x1e\n5\n\x02\x04\x01\x12\x05e\0\x86\x01\x01\ + \x1a(\x20Response\x20message\x20for\x20the\x20Check\x20method.\n\n\n\n\ + \x03\x04\x01\x01\x12\x03e\x08\x15\n\x0c\n\x04\x04\x01\x03\0\x12\x04f\x02\ + i\x03\n\x0c\n\x05\x04\x01\x03\0\x01\x12\x03f\n\x13\n-\n\x06\x04\x01\x03\ + \0\x02\0\x12\x03h\x04#\x1a\x1e\x20Consumer\x20info\x20of\x20this\x20chec\ + k.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x06\x12\x03h\x04\x10\n\x0e\n\x07\ + \x04\x01\x03\0\x02\0\x01\x12\x03h\x11\x1e\n\x0e\n\x07\x04\x01\x03\0\x02\ + \0\x03\x12\x03h!\"\nO\n\x04\x04\x01\x03\x01\x12\x04l\x02p\x03\x1aA\x20`C\ + onsumerInfo`\x20provides\x20information\x20about\x20the\x20consumer\x20p\ + roject.\n\n\x0c\n\x05\x04\x01\x03\x01\x01\x12\x03l\n\x16\nv\n\x06\x04\ + \x01\x03\x01\x02\0\x12\x03o\x04\x1d\x1ag\x20The\x20Google\x20cloud\x20pr\ + oject\x20number,\x20e.g.\x201234567890.\x20A\x20value\x20of\x200\x20indi\ + cates\n\x20no\x20project\x20number\x20is\x20found.\n\n\x0e\n\x07\x04\x01\ + \x03\x01\x02\0\x05\x12\x03o\x04\t\n\x0e\n\x07\x04\x01\x03\x01\x02\0\x01\ + \x12\x03o\n\x18\n\x0e\n\x07\x04\x01\x03\x01\x02\0\x03\x12\x03o\x1b\x1c\n\ + \x9f\x01\n\x04\x04\x01\x02\0\x12\x03u\x02\x1a\x1a\x91\x01\x20The\x20same\ + \x20operation_id\x20value\x20used\x20in\x20the\n\x20[CheckRequest][googl\ + e.api.servicecontrol.v1.CheckRequest].\x20Used\x20for\x20logging\n\x20an\ + d\x20diagnostics\x20purposes.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03u\ + \x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03u\t\x15\n\x0c\n\x05\x04\ + \x01\x02\0\x03\x12\x03u\x18\x19\nJ\n\x04\x04\x01\x02\x01\x12\x03x\x02!\ + \x1a=\x20The\x20current\x20service\x20rollout\x20id\x20used\x20to\x20pro\ + cess\x20the\x20request.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03x\x02\ + \x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03x\t\x1b\n\x0c\n\x05\x04\x01\ + \x02\x01\x03\x12\x03x\x1e\x20\n\xda\x01\n\x04\x04\x01\x02\x02\x12\x03\ + \x7f\x02'\x1a\xcc\x01\x20Indicate\x20the\x20decision\x20of\x20the\x20che\ ck.\n\n\x20If\x20no\x20check\x20errors\x20are\x20present,\x20the\x20serv\ ice\x20should\x20process\x20the\x20operation.\n\x20Otherwise\x20the\x20s\ ervice\x20should\x20use\x20the\x20list\x20of\x20errors\x20to\x20determin\ - e\x20the\n\x20appropriate\x20action.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\ - \x04\xaf\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xaf\x01\x0b\x15\ - \n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xaf\x01\x16\"\n\r\n\x05\x04\x01\ - \x02\x01\x03\x12\x04\xaf\x01%&\nA\n\x04\x04\x01\x02\x02\x12\x04\xb2\x01\ - \x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20used\x20to\x20process\ - \x20the\x20request.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xb2\x01\x02\ - \x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xb2\x01\t\x1a\n\r\n\x05\x04\ - \x01\x02\x02\x03\x12\x04\xb2\x01\x1d\x1e\nK\n\x04\x04\x01\x02\x03\x12\ - \x04\xb5\x01\x02!\x1a=\x20The\x20current\x20service\x20rollout\x20id\x20\ - used\x20to\x20process\x20the\x20request.\n\n\r\n\x05\x04\x01\x02\x03\x05\ - \x12\x04\xb5\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb5\x01\t\ - \x1b\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xb5\x01\x1e\x20\nY\n\x04\x04\ - \x01\x02\x04\x12\x04\xb8\x01\x02\x1b\x1aK\x20Feedback\x20data\x20returne\ - d\x20from\x20the\x20server\x20during\x20processing\x20a\x20Check\x20requ\ - est.\n\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xb8\x01\x02\x0b\n\r\n\x05\ - \x04\x01\x02\x04\x01\x12\x04\xb8\x01\x0c\x16\n\r\n\x05\x04\x01\x02\x04\ - \x03\x12\x04\xb8\x01\x19\x1a\n6\n\x02\x04\x02\x12\x06\xbc\x01\0\xd8\x01\ - \x01\x1a(\x20Request\x20message\x20for\x20the\x20Report\x20method.\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xbc\x01\x08\x15\n\x91\x02\n\x04\x04\x02\ - \x02\0\x12\x04\xc3\x01\x02\x1a\x1a\x82\x02\x20The\x20service\x20name\x20\ - as\x20specified\x20in\x20its\x20service\x20configuration.\x20For\x20exam\ - ple,\n\x20`\"pubsub.googleapis.com\"`.\n\n\x20See\n\x20[google.api.Servi\ - ce](https://cloud.google.com/service-management/reference/rpc/google.api\ - #google.api.Service)\n\x20for\x20the\x20definition\x20of\x20a\x20service\ - \x20name.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xc3\x01\x02\x08\n\r\n\ - \x05\x04\x02\x02\0\x01\x12\x04\xc3\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\ - \x12\x04\xc3\x01\x18\x19\n\x97\x04\n\x04\x04\x02\x02\x01\x12\x04\xd0\x01\ - \x02$\x1a\x88\x04\x20Operations\x20to\x20be\x20reported.\n\n\x20Typicall\ - y\x20the\x20service\x20should\x20report\x20one\x20operation\x20per\x20re\ - quest.\n\x20Putting\x20multiple\x20operations\x20into\x20a\x20single\x20\ - request\x20is\x20allowed,\x20but\x20should\n\x20be\x20used\x20only\x20wh\ - en\x20multiple\x20operations\x20are\x20natually\x20available\x20at\x20th\ - e\x20time\n\x20of\x20the\x20report.\n\n\x20There\x20is\x20no\x20limit\ - \x20on\x20the\x20number\x20of\x20operations\x20in\x20the\x20same\x20Repo\ - rtRequest,\n\x20however\x20the\x20ReportRequest\x20size\x20should\x20be\ - \x20no\x20larger\x20than\x201MB.\x20See\n\x20[ReportResponse.report_erro\ - rs][google.api.servicecontrol.v1.ReportResponse.report_errors]\n\x20for\ - \x20partial\x20failure\x20behavior.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\ - \x04\xd0\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xd0\x01\x0b\x14\ - \n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xd0\x01\x15\x1f\n\r\n\x05\x04\x02\ - \x02\x01\x03\x12\x04\xd0\x01\"#\n\xb6\x01\n\x04\x04\x02\x02\x02\x12\x04\ - \xd7\x01\x02\x1f\x1a\xa7\x01\x20Specifies\x20which\x20version\x20of\x20s\ - ervice\x20config\x20should\x20be\x20used\x20to\x20process\x20the\n\x20re\ - quest.\n\n\x20If\x20unspecified\x20or\x20no\x20matching\x20version\x20ca\ - n\x20be\x20found,\x20the\n\x20latest\x20one\x20will\x20be\x20used.\n\n\r\ - \n\x05\x04\x02\x02\x02\x05\x12\x04\xd7\x01\x02\x08\n\r\n\x05\x04\x02\x02\ - \x02\x01\x12\x04\xd7\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xd7\ - \x01\x1d\x1e\n7\n\x02\x04\x03\x12\x06\xdb\x01\0\xfe\x01\x01\x1a)\x20Resp\ + e\x20the\n\x20appropriate\x20action.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\ + \x12\x03\x7f\x02\n\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03\x7f\x0b\x15\n\ + \x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x7f\x16\"\n\x0c\n\x05\x04\x01\x02\ + \x02\x03\x12\x03\x7f%&\nA\n\x04\x04\x01\x02\x03\x12\x04\x82\x01\x02\x1f\ + \x1a3\x20The\x20actual\x20config\x20id\x20used\x20to\x20process\x20the\ + \x20request.\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\x82\x01\x02\x08\n\r\ + \n\x05\x04\x01\x02\x03\x01\x12\x04\x82\x01\t\x1a\n\r\n\x05\x04\x01\x02\ + \x03\x03\x12\x04\x82\x01\x1d\x1e\nY\n\x04\x04\x01\x02\x04\x12\x04\x85\ + \x01\x02\x1b\x1aK\x20Feedback\x20data\x20returned\x20from\x20the\x20serv\ + er\x20during\x20processing\x20a\x20Check\x20request.\n\n\r\n\x05\x04\x01\ + \x02\x04\x06\x12\x04\x85\x01\x02\x0b\n\r\n\x05\x04\x01\x02\x04\x01\x12\ + \x04\x85\x01\x0c\x16\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x85\x01\x19\ + \x1a\n6\n\x02\x04\x02\x12\x06\x89\x01\0\xa5\x01\x01\x1a(\x20Request\x20m\ + essage\x20for\x20the\x20Report\x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\ + \x04\x89\x01\x08\x15\n\x91\x02\n\x04\x04\x02\x02\0\x12\x04\x90\x01\x02\ + \x1a\x1a\x82\x02\x20The\x20service\x20name\x20as\x20specified\x20in\x20i\ + ts\x20service\x20configuration.\x20For\x20example,\n\x20`\"pubsub.google\ + apis.com\"`.\n\n\x20See\n\x20[google.api.Service](https://cloud.google.c\ + om/service-management/reference/rpc/google.api#google.api.Service)\n\x20\ + for\x20the\x20definition\x20of\x20a\x20service\x20name.\n\n\r\n\x05\x04\ + \x02\x02\0\x05\x12\x04\x90\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\ + \x04\x90\x01\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x90\x01\x18\x19\n\ + \xf6\x03\n\x04\x04\x02\x02\x01\x12\x04\x9d\x01\x02$\x1a\xe7\x03\x20Opera\ + tions\x20to\x20be\x20reported.\n\n\x20Typically\x20the\x20service\x20sho\ + uld\x20report\x20one\x20operation\x20per\x20request.\n\x20Putting\x20mul\ + tiple\x20operations\x20into\x20a\x20single\x20request\x20is\x20allowed,\ + \x20but\x20should\n\x20be\x20used\x20only\x20when\x20multiple\x20operati\ + ons\x20are\x20natually\x20available\x20at\x20the\x20time\n\x20of\x20the\ + \x20report.\n\n\x20If\x20multiple\x20operations\x20are\x20in\x20a\x20sin\ + gle\x20request,\x20the\x20total\x20request\x20size\n\x20should\x20be\x20\ + no\x20larger\x20than\x201MB.\x20See\n\x20[ReportResponse.report_errors][\ + google.api.servicecontrol.v1.ReportResponse.report_errors]\n\x20for\x20p\ + artial\x20failure\x20behavior.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\ + \x9d\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\x9d\x01\x0b\x14\n\r\ + \n\x05\x04\x02\x02\x01\x01\x12\x04\x9d\x01\x15\x1f\n\r\n\x05\x04\x02\x02\ + \x01\x03\x12\x04\x9d\x01\"#\n\xb6\x01\n\x04\x04\x02\x02\x02\x12\x04\xa4\ + \x01\x02\x1f\x1a\xa7\x01\x20Specifies\x20which\x20version\x20of\x20servi\ + ce\x20config\x20should\x20be\x20used\x20to\x20process\x20the\n\x20reques\ + t.\n\n\x20If\x20unspecified\x20or\x20no\x20matching\x20version\x20can\ + \x20be\x20found,\x20the\n\x20latest\x20one\x20will\x20be\x20used.\n\n\r\ + \n\x05\x04\x02\x02\x02\x05\x12\x04\xa4\x01\x02\x08\n\r\n\x05\x04\x02\x02\ + \x02\x01\x12\x04\xa4\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xa4\ + \x01\x1d\x1e\n7\n\x02\x04\x03\x12\x06\xa8\x01\0\xcb\x01\x01\x1a)\x20Resp\ onse\x20message\x20for\x20the\x20Report\x20method.\n\n\x0b\n\x03\x04\x03\ - \x01\x12\x04\xdb\x01\x08\x16\n}\n\x04\x04\x03\x03\0\x12\x06\xde\x01\x02\ - \xe7\x01\x03\x1am\x20Represents\x20the\x20processing\x20error\x20of\x20o\ + \x01\x12\x04\xa8\x01\x08\x16\n}\n\x04\x04\x03\x03\0\x12\x06\xab\x01\x02\ + \xb4\x01\x03\x1am\x20Represents\x20the\x20processing\x20error\x20of\x20o\ ne\n\x20[Operation][google.api.servicecontrol.v1.Operation]\x20in\x20the\ - \x20request.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\xde\x01\n\x15\n}\n\ - \x06\x04\x03\x03\0\x02\0\x12\x04\xe2\x01\x04\x1c\x1am\x20The\n\x20[Opera\ + \x20request.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\xab\x01\n\x15\n}\n\ + \x06\x04\x03\x03\0\x02\0\x12\x04\xaf\x01\x04\x1c\x1am\x20The\n\x20[Opera\ tion.operation_id][google.api.servicecontrol.v1.Operation.operation_id]\ \n\x20value\x20from\x20the\x20request.\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\ - \x05\x12\x04\xe2\x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\ - \xe2\x01\x0b\x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xe2\x01\x1a\ - \x1b\np\n\x06\x04\x03\x03\0\x02\x01\x12\x04\xe6\x01\x04!\x1a`\x20Details\ + \x05\x12\x04\xaf\x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\ + \xaf\x01\x0b\x17\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xaf\x01\x1a\ + \x1b\np\n\x06\x04\x03\x03\0\x02\x01\x12\x04\xb3\x01\x04!\x1a`\x20Details\ \x20of\x20the\x20error\x20when\x20processing\x20the\n\x20[Operation][goo\ gle.api.servicecontrol.v1.Operation].\n\n\x0f\n\x07\x04\x03\x03\0\x02\ - \x01\x06\x12\x04\xe6\x01\x04\x15\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\ - \x12\x04\xe6\x01\x16\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\ - \xe6\x01\x1f\x20\n\x8e\x06\n\x04\x04\x03\x02\0\x12\x04\xf7\x01\x02)\x1a\ + \x01\x06\x12\x04\xb3\x01\x04\x15\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\ + \x12\x04\xb3\x01\x16\x1c\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\ + \xb3\x01\x1f\x20\n\x8e\x06\n\x04\x04\x03\x02\0\x12\x04\xc4\x01\x02)\x1a\ \xff\x05\x20Partial\x20failures,\x20one\x20for\x20each\x20`Operation`\ \x20in\x20the\x20request\x20that\x20failed\n\x20processing.\x20There\x20\ are\x20three\x20possible\x20combinations\x20of\x20the\x20RPC\x20status:\ @@ -2132,28 +1372,55 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ailure.\n\x20\x20\x20\x20When\x20this\x20happens,\x20it's\x20impossible\ \x20to\x20know\x20which\x20of\x20the\n\x20\x20\x20\x20'Operations'\x20in\ \x20the\x20request\x20succeeded\x20or\x20failed.\n\n\r\n\x05\x04\x03\x02\ - \0\x04\x12\x04\xf7\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xf7\x01\ - \x0b\x16\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xf7\x01\x17$\n\r\n\x05\x04\ - \x03\x02\0\x03\x12\x04\xf7\x01'(\nA\n\x04\x04\x03\x02\x01\x12\x04\xfa\ + \0\x04\x12\x04\xc4\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xc4\x01\ + \x0b\x16\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc4\x01\x17$\n\r\n\x05\x04\ + \x03\x02\0\x03\x12\x04\xc4\x01'(\nA\n\x04\x04\x03\x02\x01\x12\x04\xc7\ \x01\x02\x1f\x1a3\x20The\x20actual\x20config\x20id\x20used\x20to\x20proc\ - ess\x20the\x20request.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xfa\x01\ - \x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xfa\x01\t\x1a\n\r\n\x05\ - \x04\x03\x02\x01\x03\x12\x04\xfa\x01\x1d\x1e\nK\n\x04\x04\x03\x02\x02\ - \x12\x04\xfd\x01\x02\x20\x1a=\x20The\x20current\x20service\x20rollout\ + ess\x20the\x20request.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc7\x01\ + \x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xc7\x01\t\x1a\n\r\n\x05\ + \x04\x03\x02\x01\x03\x12\x04\xc7\x01\x1d\x1e\nK\n\x04\x04\x03\x02\x02\ + \x12\x04\xca\x01\x02\x20\x1a=\x20The\x20current\x20service\x20rollout\ \x20id\x20used\x20to\x20process\x20the\x20request.\n\n\r\n\x05\x04\x03\ - \x02\x02\x05\x12\x04\xfd\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\ - \x04\xfd\x01\t\x1b\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xfd\x01\x1e\x1f\ + \x02\x02\x05\x12\x04\xca\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\ + \x04\xca\x01\t\x1b\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xca\x01\x1e\x1f\ b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(4); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::check_error::file_descriptor().clone()); + deps.push(super::operation::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(7); + messages.push(CheckRequest::generated_message_descriptor_data()); + messages.push(CheckResponse::generated_message_descriptor_data()); + messages.push(ReportRequest::generated_message_descriptor_data()); + messages.push(ReportResponse::generated_message_descriptor_data()); + messages.push(check_response::CheckInfo::generated_message_descriptor_data()); + messages.push(check_response::ConsumerInfo::generated_message_descriptor_data()); + messages.push(report_response::ReportError::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicemanagement/v1/mod.rs b/googleapis-raw/src/api/servicemanagement/v1/mod.rs index ba1e858..557bfab 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/mod.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/mod.rs @@ -1,8 +1,9 @@ // @generated -use crate::{ - api::{config_change, service}, +pub(crate) use crate::{ + api::{annotations, config_change, metric, service}, longrunning::operations, + rpc::status, }; pub mod resources; diff --git a/googleapis-raw/src/api/servicemanagement/v1/resources.rs b/googleapis-raw/src/api/servicemanagement/v1/resources.rs index 4b66d91..37af661 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/resources.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/resources.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,31 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicemanagement/v1/resources.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// The full representation of a Service that is managed by +/// Google Service Management. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ManagedService) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ManagedService { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ManagedService.service_name) pub service_name: ::std::string::String, + /// ID of the project that produces and owns this service. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ManagedService.producer_project_id) pub producer_project_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ManagedService.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ManagedService { @@ -44,76 +54,45 @@ impl ManagedService { ::std::default::Default::default() } - // string service_name = 2; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string producer_project_id = 3; - - - pub fn get_producer_project_id(&self) -> &str { - &self.producer_project_id - } - pub fn clear_producer_project_id(&mut self) { - self.producer_project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_project_id(&mut self, v: ::std::string::String) { - self.producer_project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_producer_project_id(&mut self) -> &mut ::std::string::String { - &mut self.producer_project_id - } - - // Take field - pub fn take_producer_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.producer_project_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &ManagedService| { &m.service_name }, + |m: &mut ManagedService| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "producer_project_id", + |m: &ManagedService| { &m.producer_project_id }, + |m: &mut ManagedService| { &mut m.producer_project_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ManagedService", + fields, + oneofs, + ) } } impl ::protobuf::Message for ManagedService { + const NAME: &'static str = "ManagedService"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 18 => { + self.service_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_id)?; + 26 => { + self.producer_project_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -122,7 +101,7 @@ impl ::protobuf::Message for ManagedService { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.service_name); @@ -130,110 +109,88 @@ impl ::protobuf::Message for ManagedService { if !self.producer_project_id.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.producer_project_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(2, &self.service_name)?; } if !self.producer_project_id.is_empty() { os.write_string(3, &self.producer_project_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ManagedService { ManagedService::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &ManagedService| { &m.service_name }, - |m: &mut ManagedService| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "producer_project_id", - |m: &ManagedService| { &m.producer_project_id }, - |m: &mut ManagedService| { &mut m.producer_project_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ManagedService", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.producer_project_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ManagedService { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ManagedService::new) + static instance: ManagedService = ManagedService { + service_name: ::std::string::String::new(), + producer_project_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ManagedService { - fn clear(&mut self) { - self.service_name.clear(); - self.producer_project_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ManagedService { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ManagedService").unwrap()).clone() } } -impl ::std::fmt::Debug for ManagedService { +impl ::std::fmt::Display for ManagedService { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ManagedService { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The metadata associated with a long running operation resource. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.OperationMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct OperationMetadata { // message fields - pub resource_names: ::protobuf::RepeatedField<::std::string::String>, - pub steps: ::protobuf::RepeatedField, + /// The full name of the resources that this operation is directly + /// associated with. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.resource_names) + pub resource_names: ::std::vec::Vec<::std::string::String>, + /// Detailed status information for each step. The order is undetermined. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.steps) + pub steps: ::std::vec::Vec, + /// Percentage of completion of this operation, ranging from 0 to 100. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.progress_percentage) pub progress_percentage: i32, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The start time of the operation. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.OperationMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a OperationMetadata { @@ -247,142 +204,61 @@ impl OperationMetadata { ::std::default::Default::default() } - // repeated string resource_names = 1; - - - pub fn get_resource_names(&self) -> &[::std::string::String] { - &self.resource_names - } - pub fn clear_resource_names(&mut self) { - self.resource_names.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.resource_names = v; - } - - // Mutable pointer to the field. - pub fn mut_resource_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.resource_names - } - - // Take field - pub fn take_resource_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.resource_names, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; - - - pub fn get_steps(&self) -> &[OperationMetadata_Step] { - &self.steps - } - pub fn clear_steps(&mut self) { - self.steps.clear(); - } - - // Param is passed by value, moved - pub fn set_steps(&mut self, v: ::protobuf::RepeatedField) { - self.steps = v; - } - - // Mutable pointer to the field. - pub fn mut_steps(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.steps - } - - // Take field - pub fn take_steps(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.steps, ::protobuf::RepeatedField::new()) - } - - // int32 progress_percentage = 3; - - - pub fn get_progress_percentage(&self) -> i32 { - self.progress_percentage - } - pub fn clear_progress_percentage(&mut self) { - self.progress_percentage = 0; - } - - // Param is passed by value, moved - pub fn set_progress_percentage(&mut self, v: i32) { - self.progress_percentage = v; - } - - // .google.protobuf.Timestamp start_time = 4; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "resource_names", + |m: &OperationMetadata| { &m.resource_names }, + |m: &mut OperationMetadata| { &mut m.resource_names }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "steps", + |m: &OperationMetadata| { &m.steps }, + |m: &mut OperationMetadata| { &mut m.steps }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "progress_percentage", + |m: &OperationMetadata| { &m.progress_percentage }, + |m: &mut OperationMetadata| { &mut m.progress_percentage }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &OperationMetadata| { &m.start_time }, + |m: &mut OperationMetadata| { &mut m.start_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "OperationMetadata", + fields, + oneofs, + ) } } impl ::protobuf::Message for OperationMetadata { + const NAME: &'static str = "OperationMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.steps { - if !v.is_initialized() { - return false; - } - }; - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.resource_names)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.resource_names.push(is.read_string()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.steps)?; + 18 => { + self.steps.push(is.read_message()?); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.progress_percentage = tmp; + 24 => { + self.progress_percentage = is.read_int32()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -391,399 +267,339 @@ impl ::protobuf::Message for OperationMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.resource_names { my_size += ::protobuf::rt::string_size(1, &value); }; for value in &self.steps { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if self.progress_percentage != 0 { - my_size += ::protobuf::rt::value_size(3, self.progress_percentage, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.progress_percentage); } - if let Some(ref v) = self.start_time.as_ref() { + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.resource_names { os.write_string(1, &v)?; }; for v in &self.steps { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if self.progress_percentage != 0 { os.write_int32(3, self.progress_percentage)?; } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> OperationMetadata { OperationMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_names", - |m: &OperationMetadata| { &m.resource_names }, - |m: &mut OperationMetadata| { &mut m.resource_names }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "steps", - |m: &OperationMetadata| { &m.steps }, - |m: &mut OperationMetadata| { &mut m.steps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "progress_percentage", - |m: &OperationMetadata| { &m.progress_percentage }, - |m: &mut OperationMetadata| { &mut m.progress_percentage }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &OperationMetadata| { &m.start_time }, - |m: &mut OperationMetadata| { &mut m.start_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationMetadata::new) - } -} - -impl ::protobuf::Clear for OperationMetadata { fn clear(&mut self) { self.resource_names.clear(); self.steps.clear(); self.progress_percentage = 0; self.start_time.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for OperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static OperationMetadata { + static instance: OperationMetadata = OperationMetadata { + resource_names: ::std::vec::Vec::new(), + steps: ::std::vec::Vec::new(), + progress_percentage: 0, + start_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for OperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for OperationMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("OperationMetadata").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct OperationMetadata_Step { - // message fields - pub description: ::std::string::String, - pub status: OperationMetadata_Status, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OperationMetadata_Step { - fn default() -> &'a OperationMetadata_Step { - ::default_instance() +impl ::std::fmt::Display for OperationMetadata { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl OperationMetadata_Step { - pub fn new() -> OperationMetadata_Step { - ::std::default::Default::default() - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } +impl ::protobuf::reflect::ProtobufValue for OperationMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description +/// Nested message and enums of message `OperationMetadata` +pub mod operation_metadata { + /// Represents the status of one operation step. + // @@protoc_insertion_point(message:google.api.servicemanagement.v1.OperationMetadata.Step) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Step { + // message fields + /// The short description of the step. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.Step.description) + pub description: ::std::string::String, + /// The status code. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.OperationMetadata.Step.status) + pub status: ::protobuf::EnumOrUnknown, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.OperationMetadata.Step.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + impl<'a> ::std::default::Default for &'a Step { + fn default() -> &'a Step { + ::default_instance() + } } - // .google.api.servicemanagement.v1.OperationMetadata.Status status = 4; - - - pub fn get_status(&self) -> OperationMetadata_Status { - self.status - } - pub fn clear_status(&mut self) { - self.status = OperationMetadata_Status::STATUS_UNSPECIFIED; - } + impl Step { + pub fn new() -> Step { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_status(&mut self, v: OperationMetadata_Status) { - self.status = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Step| { &m.description }, + |m: &mut Step| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "status", + |m: &Step| { &m.status }, + |m: &mut Step| { &mut m.status }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "OperationMetadata.Step", + fields, + oneofs, + ) + } } -} -impl ::protobuf::Message for OperationMetadata_Step { - fn is_initialized(&self) -> bool { - true - } + impl ::protobuf::Message for Step { + const NAME: &'static str = "Step"; - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 4, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn is_initialized(&self) -> bool { + true } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if self.status != OperationMetadata_Status::STATUS_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.status); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 18 => { + self.description = is.read_string()?; + }, + 32 => { + self.status = is.read_enum_or_unknown()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if self.status != OperationMetadata_Status::STATUS_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.status))?; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.description); + } + if self.status != ::protobuf::EnumOrUnknown::new(Status::STATUS_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.status.value()); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.description.is_empty() { + os.write_string(2, &self.description)?; + } + if self.status != ::protobuf::EnumOrUnknown::new(Status::STATUS_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.status))?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn new() -> Step { + Step::new() + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn clear(&mut self) { + self.description.clear(); + self.status = ::protobuf::EnumOrUnknown::new(Status::STATUS_UNSPECIFIED); + self.special_fields.clear(); + } - fn new() -> OperationMetadata_Step { - OperationMetadata_Step::new() + fn default_instance() -> &'static Step { + static instance: Step = Step { + description: ::std::string::String::new(), + status: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &OperationMetadata_Step| { &m.description }, - |m: &mut OperationMetadata_Step| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "status", - |m: &OperationMetadata_Step| { &m.status }, - |m: &mut OperationMetadata_Step| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationMetadata.Step", - fields, - file_descriptor_proto() - ) - }) + impl ::protobuf::MessageFull for Step { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("OperationMetadata.Step").unwrap()).clone() + } } - fn default_instance() -> &'static OperationMetadata_Step { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationMetadata_Step::new) + impl ::std::fmt::Display for Step { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::Clear for OperationMetadata_Step { - fn clear(&mut self) { - self.description.clear(); - self.status = OperationMetadata_Status::STATUS_UNSPECIFIED; - self.unknown_fields.clear(); + impl ::protobuf::reflect::ProtobufValue for Step { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::std::fmt::Debug for OperationMetadata_Step { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + /// Code describes the status of the operation (or one of its steps). + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicemanagement.v1.OperationMetadata.Status) + pub enum Status { + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.STATUS_UNSPECIFIED) + STATUS_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.DONE) + DONE = 1, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.NOT_STARTED) + NOT_STARTED = 2, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.IN_PROGRESS) + IN_PROGRESS = 3, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.FAILED) + FAILED = 4, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.OperationMetadata.Status.CANCELLED) + CANCELLED = 5, } -} -impl ::protobuf::reflect::ProtobufValue for OperationMetadata_Step { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + impl ::protobuf::Enum for Status { + const NAME: &'static str = "Status"; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OperationMetadata_Status { - STATUS_UNSPECIFIED = 0, - DONE = 1, - NOT_STARTED = 2, - IN_PROGRESS = 3, - FAILED = 4, - CANCELLED = 5, -} + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for OperationMetadata_Status { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Status::STATUS_UNSPECIFIED), + 1 => ::std::option::Option::Some(Status::DONE), + 2 => ::std::option::Option::Some(Status::NOT_STARTED), + 3 => ::std::option::Option::Some(Status::IN_PROGRESS), + 4 => ::std::option::Option::Some(Status::FAILED), + 5 => ::std::option::Option::Some(Status::CANCELLED), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OperationMetadata_Status::STATUS_UNSPECIFIED), - 1 => ::std::option::Option::Some(OperationMetadata_Status::DONE), - 2 => ::std::option::Option::Some(OperationMetadata_Status::NOT_STARTED), - 3 => ::std::option::Option::Some(OperationMetadata_Status::IN_PROGRESS), - 4 => ::std::option::Option::Some(OperationMetadata_Status::FAILED), - 5 => ::std::option::Option::Some(OperationMetadata_Status::CANCELLED), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATUS_UNSPECIFIED" => ::std::option::Option::Some(Status::STATUS_UNSPECIFIED), + "DONE" => ::std::option::Option::Some(Status::DONE), + "NOT_STARTED" => ::std::option::Option::Some(Status::NOT_STARTED), + "IN_PROGRESS" => ::std::option::Option::Some(Status::IN_PROGRESS), + "FAILED" => ::std::option::Option::Some(Status::FAILED), + "CANCELLED" => ::std::option::Option::Some(Status::CANCELLED), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [OperationMetadata_Status] = &[ - OperationMetadata_Status::STATUS_UNSPECIFIED, - OperationMetadata_Status::DONE, - OperationMetadata_Status::NOT_STARTED, - OperationMetadata_Status::IN_PROGRESS, - OperationMetadata_Status::FAILED, - OperationMetadata_Status::CANCELLED, + const VALUES: &'static [Status] = &[ + Status::STATUS_UNSPECIFIED, + Status::DONE, + Status::NOT_STARTED, + Status::IN_PROGRESS, + Status::FAILED, + Status::CANCELLED, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OperationMetadata.Status", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Status { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("OperationMetadata.Status").unwrap()).clone() + } -impl ::std::marker::Copy for OperationMetadata_Status { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for OperationMetadata_Status { - fn default() -> Self { - OperationMetadata_Status::STATUS_UNSPECIFIED + impl ::std::default::Default for Status { + fn default() -> Self { + Status::STATUS_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for OperationMetadata_Status { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Status { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("OperationMetadata.Status") + } } } -#[derive(PartialEq,Clone,Default)] +/// Represents a diagnostic message (error or warning) +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.Diagnostic) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Diagnostic { // message fields + /// File name and line number of the error or warning. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Diagnostic.location) pub location: ::std::string::String, - pub kind: Diagnostic_Kind, + /// The kind of diagnostic information provided. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Diagnostic.kind) + pub kind: ::protobuf::EnumOrUnknown, + /// Message describing the error or warning. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Diagnostic.message) pub message: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.Diagnostic.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Diagnostic { @@ -797,94 +613,53 @@ impl Diagnostic { ::std::default::Default::default() } - // string location = 1; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) - } - - // .google.api.servicemanagement.v1.Diagnostic.Kind kind = 2; - - - pub fn get_kind(&self) -> Diagnostic_Kind { - self.kind - } - pub fn clear_kind(&mut self) { - self.kind = Diagnostic_Kind::WARNING; - } - - // Param is passed by value, moved - pub fn set_kind(&mut self, v: Diagnostic_Kind) { - self.kind = v; - } - - // string message = 3; - - - pub fn get_message(&self) -> &str { - &self.message - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: ::std::string::String) { - self.message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut ::std::string::String { - &mut self.message - } - - // Take field - pub fn take_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.message, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "location", + |m: &Diagnostic| { &m.location }, + |m: &mut Diagnostic| { &mut m.location }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "kind", + |m: &Diagnostic| { &m.kind }, + |m: &mut Diagnostic| { &mut m.kind }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "message", + |m: &Diagnostic| { &m.message }, + |m: &mut Diagnostic| { &mut m.message }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Diagnostic", + fields, + oneofs, + ) } } impl ::protobuf::Message for Diagnostic { + const NAME: &'static str = "Diagnostic"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.location = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 2, &mut self.unknown_fields)? + 16 => { + self.kind = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message)?; + 26 => { + self.message = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -893,265 +668,219 @@ impl ::protobuf::Message for Diagnostic { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.location.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.location); } - if self.kind != Diagnostic_Kind::WARNING { - my_size += ::protobuf::rt::enum_size(2, self.kind); + if self.kind != ::protobuf::EnumOrUnknown::new(diagnostic::Kind::WARNING) { + my_size += ::protobuf::rt::int32_size(2, self.kind.value()); } if !self.message.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.message); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.location.is_empty() { os.write_string(1, &self.location)?; } - if self.kind != Diagnostic_Kind::WARNING { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.kind))?; + if self.kind != ::protobuf::EnumOrUnknown::new(diagnostic::Kind::WARNING) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.kind))?; } if !self.message.is_empty() { os.write_string(3, &self.message)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Diagnostic { Diagnostic::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &Diagnostic| { &m.location }, - |m: &mut Diagnostic| { &mut m.location }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "kind", - |m: &Diagnostic| { &m.kind }, - |m: &mut Diagnostic| { &mut m.kind }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message", - |m: &Diagnostic| { &m.message }, - |m: &mut Diagnostic| { &mut m.message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Diagnostic", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.location.clear(); + self.kind = ::protobuf::EnumOrUnknown::new(diagnostic::Kind::WARNING); + self.message.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Diagnostic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Diagnostic::new) + static instance: Diagnostic = Diagnostic { + location: ::std::string::String::new(), + kind: ::protobuf::EnumOrUnknown::from_i32(0), + message: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Diagnostic { - fn clear(&mut self) { - self.location.clear(); - self.kind = Diagnostic_Kind::WARNING; - self.message.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Diagnostic { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Diagnostic").unwrap()).clone() } } -impl ::std::fmt::Debug for Diagnostic { +impl ::std::fmt::Display for Diagnostic { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Diagnostic { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Diagnostic_Kind { - WARNING = 0, - ERROR = 1, + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for Diagnostic_Kind { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `Diagnostic` +pub mod diagnostic { + /// The kind of diagnostic information possible. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicemanagement.v1.Diagnostic.Kind) + pub enum Kind { + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Diagnostic.Kind.WARNING) + WARNING = 0, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Diagnostic.Kind.ERROR) + ERROR = 1, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Diagnostic_Kind::WARNING), - 1 => ::std::option::Option::Some(Diagnostic_Kind::ERROR), - _ => ::std::option::Option::None + impl ::protobuf::Enum for Kind { + const NAME: &'static str = "Kind"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Kind::WARNING), + 1 => ::std::option::Option::Some(Kind::ERROR), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [Diagnostic_Kind] = &[ - Diagnostic_Kind::WARNING, - Diagnostic_Kind::ERROR, + fn from_str(str: &str) -> ::std::option::Option { + match str { + "WARNING" => ::std::option::Option::Some(Kind::WARNING), + "ERROR" => ::std::option::Option::Some(Kind::ERROR), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [Kind] = &[ + Kind::WARNING, + Kind::ERROR, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Diagnostic.Kind", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Kind { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Diagnostic.Kind").unwrap()).clone() + } -impl ::std::marker::Copy for Diagnostic_Kind { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for Diagnostic_Kind { - fn default() -> Self { - Diagnostic_Kind::WARNING + impl ::std::default::Default for Kind { + fn default() -> Self { + Kind::WARNING + } } -} -impl ::protobuf::reflect::ProtobufValue for Diagnostic_Kind { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Kind { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Diagnostic.Kind") + } } } -#[derive(PartialEq,Clone,Default)] +/// Represents a source file which is used to generate the service configuration +/// defined by `google.api.Service`. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ConfigSource) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ConfigSource { // message fields + /// A unique ID for a specific instance of this message, typically assigned + /// by the client for tracking purpose. If empty, the server may choose to + /// generate one instead. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigSource.id) pub id: ::std::string::String, - pub files: ::protobuf::RepeatedField, + /// Set of source configuration files that are used to generate a service + /// configuration (`google.api.Service`). + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigSource.files) + pub files: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ConfigSource.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ConfigSource { - fn default() -> &'a ConfigSource { - ::default_instance() - } -} - -impl ConfigSource { - pub fn new() -> ConfigSource { - ::std::default::Default::default() - } - - // string id = 5; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // repeated .google.api.servicemanagement.v1.ConfigFile files = 2; - - - pub fn get_files(&self) -> &[ConfigFile] { - &self.files - } - pub fn clear_files(&mut self) { - self.files.clear(); - } - - // Param is passed by value, moved - pub fn set_files(&mut self, v: ::protobuf::RepeatedField) { - self.files = v; + fn default() -> &'a ConfigSource { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_files(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.files +impl ConfigSource { + pub fn new() -> ConfigSource { + ::std::default::Default::default() } - // Take field - pub fn take_files(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.files, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &ConfigSource| { &m.id }, + |m: &mut ConfigSource| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "files", + |m: &ConfigSource| { &m.files }, + |m: &mut ConfigSource| { &mut m.files }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ConfigSource", + fields, + oneofs, + ) } } impl ::protobuf::Message for ConfigSource { + const NAME: &'static str = "ConfigSource"; + fn is_initialized(&self) -> bool { - for v in &self.files { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 42 => { + self.id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.files)?; + 18 => { + self.files.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1160,120 +889,93 @@ impl ::protobuf::Message for ConfigSource { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.id.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.id); } for value in &self.files { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.id.is_empty() { os.write_string(5, &self.id)?; } for v in &self.files { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ConfigSource { ConfigSource::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &ConfigSource| { &m.id }, - |m: &mut ConfigSource| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "files", - |m: &ConfigSource| { &m.files }, - |m: &mut ConfigSource| { &mut m.files }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ConfigSource", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.id.clear(); + self.files.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ConfigSource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigSource::new) + static instance: ConfigSource = ConfigSource { + id: ::std::string::String::new(), + files: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ConfigSource { - fn clear(&mut self) { - self.id.clear(); - self.files.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ConfigSource { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ConfigSource").unwrap()).clone() } } -impl ::std::fmt::Debug for ConfigSource { +impl ::std::fmt::Display for ConfigSource { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ConfigSource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Generic specification of a source configuration file +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ConfigFile) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ConfigFile { // message fields + /// The file name of the configuration file (full or relative path). + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigFile.file_path) pub file_path: ::std::string::String, + /// The bytes that constitute the file. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigFile.file_contents) pub file_contents: ::std::vec::Vec, - pub file_type: ConfigFile_FileType, + /// The type of configuration file this represents. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigFile.file_type) + pub file_type: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ConfigFile.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ConfigFile { @@ -1287,94 +989,53 @@ impl ConfigFile { ::std::default::Default::default() } - // string file_path = 1; - - - pub fn get_file_path(&self) -> &str { - &self.file_path - } - pub fn clear_file_path(&mut self) { - self.file_path.clear(); - } - - // Param is passed by value, moved - pub fn set_file_path(&mut self, v: ::std::string::String) { - self.file_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_file_path(&mut self) -> &mut ::std::string::String { - &mut self.file_path - } - - // Take field - pub fn take_file_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.file_path, ::std::string::String::new()) - } - - // bytes file_contents = 3; - - - pub fn get_file_contents(&self) -> &[u8] { - &self.file_contents - } - pub fn clear_file_contents(&mut self) { - self.file_contents.clear(); - } - - // Param is passed by value, moved - pub fn set_file_contents(&mut self, v: ::std::vec::Vec) { - self.file_contents = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_file_contents(&mut self) -> &mut ::std::vec::Vec { - &mut self.file_contents - } - - // Take field - pub fn take_file_contents(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.file_contents, ::std::vec::Vec::new()) - } - - // .google.api.servicemanagement.v1.ConfigFile.FileType file_type = 4; - - - pub fn get_file_type(&self) -> ConfigFile_FileType { - self.file_type - } - pub fn clear_file_type(&mut self) { - self.file_type = ConfigFile_FileType::FILE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_file_type(&mut self, v: ConfigFile_FileType) { - self.file_type = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "file_path", + |m: &ConfigFile| { &m.file_path }, + |m: &mut ConfigFile| { &mut m.file_path }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "file_contents", + |m: &ConfigFile| { &m.file_contents }, + |m: &mut ConfigFile| { &mut m.file_contents }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "file_type", + |m: &ConfigFile| { &m.file_type }, + |m: &mut ConfigFile| { &mut m.file_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ConfigFile", + fields, + oneofs, + ) } } impl ::protobuf::Message for ConfigFile { + const NAME: &'static str = "ConfigFile"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.file_path)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.file_path = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.file_contents)?; + 26 => { + self.file_contents = is.read_bytes()?; }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.file_type, 4, &mut self.unknown_fields)? + 32 => { + self.file_type = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1383,7 +1044,7 @@ impl ::protobuf::Message for ConfigFile { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.file_path.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.file_path); @@ -1391,181 +1052,179 @@ impl ::protobuf::Message for ConfigFile { if !self.file_contents.is_empty() { my_size += ::protobuf::rt::bytes_size(3, &self.file_contents); } - if self.file_type != ConfigFile_FileType::FILE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.file_type); + if self.file_type != ::protobuf::EnumOrUnknown::new(config_file::FileType::FILE_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.file_type.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.file_path.is_empty() { os.write_string(1, &self.file_path)?; } if !self.file_contents.is_empty() { os.write_bytes(3, &self.file_contents)?; } - if self.file_type != ConfigFile_FileType::FILE_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.file_type))?; + if self.file_type != ::protobuf::EnumOrUnknown::new(config_file::FileType::FILE_TYPE_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.file_type))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ConfigFile { ConfigFile::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "file_path", - |m: &ConfigFile| { &m.file_path }, - |m: &mut ConfigFile| { &mut m.file_path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "file_contents", - |m: &ConfigFile| { &m.file_contents }, - |m: &mut ConfigFile| { &mut m.file_contents }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "file_type", - |m: &ConfigFile| { &m.file_type }, - |m: &mut ConfigFile| { &mut m.file_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ConfigFile", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.file_path.clear(); + self.file_contents.clear(); + self.file_type = ::protobuf::EnumOrUnknown::new(config_file::FileType::FILE_TYPE_UNSPECIFIED); + self.special_fields.clear(); } fn default_instance() -> &'static ConfigFile { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigFile::new) + static instance: ConfigFile = ConfigFile { + file_path: ::std::string::String::new(), + file_contents: ::std::vec::Vec::new(), + file_type: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ConfigFile { - fn clear(&mut self) { - self.file_path.clear(); - self.file_contents.clear(); - self.file_type = ConfigFile_FileType::FILE_TYPE_UNSPECIFIED; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ConfigFile { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ConfigFile").unwrap()).clone() } } -impl ::std::fmt::Debug for ConfigFile { +impl ::std::fmt::Display for ConfigFile { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ConfigFile { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ConfigFile_FileType { - FILE_TYPE_UNSPECIFIED = 0, - SERVICE_CONFIG_YAML = 1, - OPEN_API_JSON = 2, - OPEN_API_YAML = 3, - FILE_DESCRIPTOR_SET_PROTO = 4, - PROTO_FILE = 6, -} - -impl ::protobuf::ProtobufEnum for ConfigFile_FileType { - fn value(&self) -> i32 { - *self as i32 - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ConfigFile` +pub mod config_file { + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicemanagement.v1.ConfigFile.FileType) + pub enum FileType { + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.FILE_TYPE_UNSPECIFIED) + FILE_TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.SERVICE_CONFIG_YAML) + SERVICE_CONFIG_YAML = 1, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.OPEN_API_JSON) + OPEN_API_JSON = 2, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.OPEN_API_YAML) + OPEN_API_YAML = 3, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.FILE_DESCRIPTOR_SET_PROTO) + FILE_DESCRIPTOR_SET_PROTO = 4, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.ConfigFile.FileType.PROTO_FILE) + PROTO_FILE = 6, + } + + impl ::protobuf::Enum for FileType { + const NAME: &'static str = "FileType"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(FileType::FILE_TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(FileType::SERVICE_CONFIG_YAML), + 2 => ::std::option::Option::Some(FileType::OPEN_API_JSON), + 3 => ::std::option::Option::Some(FileType::OPEN_API_YAML), + 4 => ::std::option::Option::Some(FileType::FILE_DESCRIPTOR_SET_PROTO), + 6 => ::std::option::Option::Some(FileType::PROTO_FILE), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ConfigFile_FileType::FILE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ConfigFile_FileType::SERVICE_CONFIG_YAML), - 2 => ::std::option::Option::Some(ConfigFile_FileType::OPEN_API_JSON), - 3 => ::std::option::Option::Some(ConfigFile_FileType::OPEN_API_YAML), - 4 => ::std::option::Option::Some(ConfigFile_FileType::FILE_DESCRIPTOR_SET_PROTO), - 6 => ::std::option::Option::Some(ConfigFile_FileType::PROTO_FILE), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "FILE_TYPE_UNSPECIFIED" => ::std::option::Option::Some(FileType::FILE_TYPE_UNSPECIFIED), + "SERVICE_CONFIG_YAML" => ::std::option::Option::Some(FileType::SERVICE_CONFIG_YAML), + "OPEN_API_JSON" => ::std::option::Option::Some(FileType::OPEN_API_JSON), + "OPEN_API_YAML" => ::std::option::Option::Some(FileType::OPEN_API_YAML), + "FILE_DESCRIPTOR_SET_PROTO" => ::std::option::Option::Some(FileType::FILE_DESCRIPTOR_SET_PROTO), + "PROTO_FILE" => ::std::option::Option::Some(FileType::PROTO_FILE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [ConfigFile_FileType] = &[ - ConfigFile_FileType::FILE_TYPE_UNSPECIFIED, - ConfigFile_FileType::SERVICE_CONFIG_YAML, - ConfigFile_FileType::OPEN_API_JSON, - ConfigFile_FileType::OPEN_API_YAML, - ConfigFile_FileType::FILE_DESCRIPTOR_SET_PROTO, - ConfigFile_FileType::PROTO_FILE, + const VALUES: &'static [FileType] = &[ + FileType::FILE_TYPE_UNSPECIFIED, + FileType::SERVICE_CONFIG_YAML, + FileType::OPEN_API_JSON, + FileType::OPEN_API_YAML, + FileType::FILE_DESCRIPTOR_SET_PROTO, + FileType::PROTO_FILE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ConfigFile.FileType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for FileType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("ConfigFile.FileType").unwrap()).clone() + } -impl ::std::marker::Copy for ConfigFile_FileType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + FileType::FILE_TYPE_UNSPECIFIED => 0, + FileType::SERVICE_CONFIG_YAML => 1, + FileType::OPEN_API_JSON => 2, + FileType::OPEN_API_YAML => 3, + FileType::FILE_DESCRIPTOR_SET_PROTO => 4, + FileType::PROTO_FILE => 5, + }; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for ConfigFile_FileType { - fn default() -> Self { - ConfigFile_FileType::FILE_TYPE_UNSPECIFIED + impl ::std::default::Default for FileType { + fn default() -> Self { + FileType::FILE_TYPE_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for ConfigFile_FileType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl FileType { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ConfigFile.FileType") + } } } -#[derive(PartialEq,Clone,Default)] +/// Represents a service configuration with its name and id. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ConfigRef) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ConfigRef { // message fields + /// Resource name of a service config. It must have the following + /// format: "services/{service name}/configs/{config id}". + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ConfigRef.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ConfigRef.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ConfigRef { @@ -1579,47 +1238,37 @@ impl ConfigRef { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &ConfigRef| { &m.name }, + |m: &mut ConfigRef| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ConfigRef", + fields, + oneofs, + ) } } impl ::protobuf::Message for ConfigRef { + const NAME: &'static str = "ConfigRef"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1628,103 +1277,85 @@ impl ::protobuf::Message for ConfigRef { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ConfigRef { ConfigRef::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ConfigRef| { &m.name }, - |m: &mut ConfigRef| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ConfigRef", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ConfigRef { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConfigRef::new) + static instance: ConfigRef = ConfigRef { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ConfigRef { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ConfigRef { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ConfigRef").unwrap()).clone() } } -impl ::std::fmt::Debug for ConfigRef { +impl ::std::fmt::Display for ConfigRef { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ConfigRef { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Change report associated with a particular service configuration. +/// +/// It contains a list of ConfigChanges based on the comparison between +/// two service configurations. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ChangeReport) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ChangeReport { // message fields - pub config_changes: ::protobuf::RepeatedField, + /// List of changes between two service configurations. + /// The changes will be alphabetically sorted based on the identifier + /// of each change. + /// A ConfigChange identifier is a dot separated path to the configuration. + /// Example: visibility.rules[selector='LibraryService.CreateBook'].restriction + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ChangeReport.config_changes) + pub config_changes: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ChangeReport.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ChangeReport { @@ -1738,462 +1369,338 @@ impl ChangeReport { ::std::default::Default::default() } - // repeated .google.api.ConfigChange config_changes = 1; - - - pub fn get_config_changes(&self) -> &[super::config_change::ConfigChange] { - &self.config_changes - } - pub fn clear_config_changes(&mut self) { - self.config_changes.clear(); - } - - // Param is passed by value, moved - pub fn set_config_changes(&mut self, v: ::protobuf::RepeatedField) { - self.config_changes = v; - } - - // Mutable pointer to the field. - pub fn mut_config_changes(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.config_changes - } - - // Take field - pub fn take_config_changes(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.config_changes, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "config_changes", + |m: &ChangeReport| { &m.config_changes }, + |m: &mut ChangeReport| { &mut m.config_changes }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ChangeReport", + fields, + oneofs, + ) } } impl ::protobuf::Message for ChangeReport { + const NAME: &'static str = "ChangeReport"; + fn is_initialized(&self) -> bool { - for v in &self.config_changes { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.config_changes)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.config_changes.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.config_changes { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.config_changes { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ChangeReport { - ChangeReport::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_changes", - |m: &ChangeReport| { &m.config_changes }, - |m: &mut ChangeReport| { &mut m.config_changes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ChangeReport", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ChangeReport { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ChangeReport::new) - } -} - -impl ::protobuf::Clear for ChangeReport { - fn clear(&mut self) { - self.config_changes.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ChangeReport { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ChangeReport { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Rollout { - // message fields - pub rollout_id: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub created_by: ::std::string::String, - pub status: Rollout_RolloutStatus, - pub service_name: ::std::string::String, - // message oneof groups - pub strategy: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Rollout { - fn default() -> &'a Rollout { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Rollout_oneof_strategy { - traffic_percent_strategy(Rollout_TrafficPercentStrategy), - delete_service_strategy(Rollout_DeleteServiceStrategy), -} - -impl Rollout { - pub fn new() -> Rollout { - ::std::default::Default::default() - } - - // string rollout_id = 1; - - - pub fn get_rollout_id(&self) -> &str { - &self.rollout_id - } - pub fn clear_rollout_id(&mut self) { - self.rollout_id.clear(); - } - - // Param is passed by value, moved - pub fn set_rollout_id(&mut self, v: ::std::string::String) { - self.rollout_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_id(&mut self) -> &mut ::std::string::String { - &mut self.rollout_id - } - - // Take field - pub fn take_rollout_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.rollout_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp create_time = 2; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); + }; + } + ::std::result::Result::Ok(()) } - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.config_changes { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.config_changes { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // string created_by = 3; - - - pub fn get_created_by(&self) -> &str { - &self.created_by + fn new() -> ChangeReport { + ChangeReport::new() } - pub fn clear_created_by(&mut self) { - self.created_by.clear(); + + fn clear(&mut self) { + self.config_changes.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_created_by(&mut self, v: ::std::string::String) { - self.created_by = v; + fn default_instance() -> &'static ChangeReport { + static instance: ChangeReport = ChangeReport { + config_changes: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_created_by(&mut self) -> &mut ::std::string::String { - &mut self.created_by +impl ::protobuf::MessageFull for ChangeReport { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ChangeReport").unwrap()).clone() } +} - // Take field - pub fn take_created_by(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.created_by, ::std::string::String::new()) +impl ::std::fmt::Display for ChangeReport { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4; +impl ::protobuf::reflect::ProtobufValue for ChangeReport { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// A rollout resource that defines how service configuration versions are pushed +/// to control plane systems. Typically, you create a new version of the +/// service config, and then create a Rollout to push the service config. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.Rollout) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Rollout { + // message fields + /// Optional unique identifier of this Rollout. Only lower case letters, digits + /// and '-' are allowed. + /// + /// If not specified by client, the server will generate one. The generated id + /// will have the form of , where "date" is the create + /// date in ISO 8601 format. "revision number" is a monotonically increasing + /// positive number that is reset every day for each service. + /// An example of the generated rollout_id is '2016-02-16r1' + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.rollout_id) + pub rollout_id: ::std::string::String, + /// Creation time of the rollout. Readonly. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.create_time) + pub create_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The user who created the Rollout. Readonly. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.created_by) + pub created_by: ::std::string::String, + /// The status of this rollout. Readonly. In case of a failed rollout, + /// the system will automatically rollback to the current Rollout + /// version. Readonly. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.status) + pub status: ::protobuf::EnumOrUnknown, + /// The name of the service associated with this Rollout. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.service_name) + pub service_name: ::std::string::String, + // message oneof groups + pub strategy: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.Rollout.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_status(&self) -> Rollout_RolloutStatus { - self.status - } - pub fn clear_status(&mut self) { - self.status = Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED; +impl<'a> ::std::default::Default for &'a Rollout { + fn default() -> &'a Rollout { + ::default_instance() } +} - // Param is passed by value, moved - pub fn set_status(&mut self, v: Rollout_RolloutStatus) { - self.status = v; +impl Rollout { + pub fn new() -> Rollout { + ::std::default::Default::default() } // .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5; - - pub fn get_traffic_percent_strategy(&self) -> &Rollout_TrafficPercentStrategy { + pub fn traffic_percent_strategy(&self) -> &rollout::TrafficPercentStrategy { match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_traffic_percent_strategy(&mut self) { self.strategy = ::std::option::Option::None; } pub fn has_traffic_percent_strategy(&self) -> bool { match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(..)) => true, + ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_traffic_percent_strategy(&mut self, v: Rollout_TrafficPercentStrategy) { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(v)) + pub fn set_traffic_percent_strategy(&mut self, v: rollout::TrafficPercentStrategy) { + self.strategy = ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(v)) } // Mutable pointer to the field. - pub fn mut_traffic_percent_strategy(&mut self) -> &mut Rollout_TrafficPercentStrategy { - if let ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(_)) = self.strategy { + pub fn mut_traffic_percent_strategy(&mut self) -> &mut rollout::TrafficPercentStrategy { + if let ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(_)) = self.strategy { } else { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(Rollout_TrafficPercentStrategy::new())); + self.strategy = ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(rollout::TrafficPercentStrategy::new())); } match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(ref mut v)) => v, + ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_traffic_percent_strategy(&mut self) -> Rollout_TrafficPercentStrategy { + pub fn take_traffic_percent_strategy(&mut self) -> rollout::TrafficPercentStrategy { if self.has_traffic_percent_strategy() { match self.strategy.take() { - ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(v)) => v, + ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(v)) => v, _ => panic!(), } } else { - Rollout_TrafficPercentStrategy::new() + rollout::TrafficPercentStrategy::new() } } // .google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200; - - pub fn get_delete_service_strategy(&self) -> &Rollout_DeleteServiceStrategy { + pub fn delete_service_strategy(&self) -> &rollout::DeleteServiceStrategy { match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_delete_service_strategy(&mut self) { self.strategy = ::std::option::Option::None; } pub fn has_delete_service_strategy(&self) -> bool { match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(..)) => true, + ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_delete_service_strategy(&mut self, v: Rollout_DeleteServiceStrategy) { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(v)) + pub fn set_delete_service_strategy(&mut self, v: rollout::DeleteServiceStrategy) { + self.strategy = ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(v)) } // Mutable pointer to the field. - pub fn mut_delete_service_strategy(&mut self) -> &mut Rollout_DeleteServiceStrategy { - if let ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(_)) = self.strategy { + pub fn mut_delete_service_strategy(&mut self) -> &mut rollout::DeleteServiceStrategy { + if let ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(_)) = self.strategy { } else { - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(Rollout_DeleteServiceStrategy::new())); + self.strategy = ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(rollout::DeleteServiceStrategy::new())); } match self.strategy { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(ref mut v)) => v, + ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_delete_service_strategy(&mut self) -> Rollout_DeleteServiceStrategy { + pub fn take_delete_service_strategy(&mut self) -> rollout::DeleteServiceStrategy { if self.has_delete_service_strategy() { match self.strategy.take() { - ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(v)) => v, + ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(v)) => v, _ => panic!(), } } else { - Rollout_DeleteServiceStrategy::new() - } - } - - // string service_name = 8; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) + rollout::DeleteServiceStrategy::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rollout_id", + |m: &Rollout| { &m.rollout_id }, + |m: &mut Rollout| { &mut m.rollout_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "create_time", + |m: &Rollout| { &m.create_time }, + |m: &mut Rollout| { &mut m.create_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "created_by", + |m: &Rollout| { &m.created_by }, + |m: &mut Rollout| { &mut m.created_by }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "status", + |m: &Rollout| { &m.status }, + |m: &mut Rollout| { &mut m.status }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, rollout::TrafficPercentStrategy>( + "traffic_percent_strategy", + Rollout::has_traffic_percent_strategy, + Rollout::traffic_percent_strategy, + Rollout::mut_traffic_percent_strategy, + Rollout::set_traffic_percent_strategy, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, rollout::DeleteServiceStrategy>( + "delete_service_strategy", + Rollout::has_delete_service_strategy, + Rollout::delete_service_strategy, + Rollout::mut_delete_service_strategy, + Rollout::set_delete_service_strategy, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &Rollout| { &m.service_name }, + |m: &mut Rollout| { &mut m.service_name }, + )); + oneofs.push(rollout::Strategy::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Rollout", + fields, + oneofs, + ) } } impl ::protobuf::Message for Rollout { + const NAME: &'static str = "Rollout"; + fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - if let Some(Rollout_oneof_strategy::traffic_percent_strategy(ref v)) = self.strategy { - if !v.is_initialized() { - return false; - } - } - if let Some(Rollout_oneof_strategy::delete_service_strategy(ref v)) = self.strategy { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rollout_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rollout_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.create_time)?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.created_by)?; + 26 => { + self.created_by = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 4, &mut self.unknown_fields)? + 32 => { + self.status = is.read_enum_or_unknown()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::traffic_percent_strategy(is.read_message()?)); + 42 => { + self.strategy = ::std::option::Option::Some(rollout::Strategy::TrafficPercentStrategy(is.read_message()?)); }, - 200 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.strategy = ::std::option::Option::Some(Rollout_oneof_strategy::delete_service_strategy(is.read_message()?)); + 1602 => { + self.strategy = ::std::option::Option::Some(rollout::Strategy::DeleteServiceStrategy(is.read_message()?)); }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + 66 => { + self.service_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2202,892 +1709,905 @@ impl ::protobuf::Message for Rollout { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.rollout_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.rollout_id); } - if let Some(ref v) = self.create_time.as_ref() { + if let Some(v) = self.create_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if !self.created_by.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.created_by); } - if self.status != Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.status); + if self.status != ::protobuf::EnumOrUnknown::new(rollout::RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.status.value()); } if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(8, &self.service_name); } if let ::std::option::Option::Some(ref v) = self.strategy { match v { - &Rollout_oneof_strategy::traffic_percent_strategy(ref v) => { + &rollout::Strategy::TrafficPercentStrategy(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Rollout_oneof_strategy::delete_service_strategy(ref v) => { + &rollout::Strategy::DeleteServiceStrategy(ref v) => { let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.rollout_id.is_empty() { os.write_string(1, &self.rollout_id)?; } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.create_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if !self.created_by.is_empty() { os.write_string(3, &self.created_by)?; } - if self.status != Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.status))?; + if self.status != ::protobuf::EnumOrUnknown::new(rollout::RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.status))?; } if !self.service_name.is_empty() { os.write_string(8, &self.service_name)?; } if let ::std::option::Option::Some(ref v) = self.strategy { match v { - &Rollout_oneof_strategy::traffic_percent_strategy(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &rollout::Strategy::TrafficPercentStrategy(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }, - &Rollout_oneof_strategy::delete_service_strategy(ref v) => { - os.write_tag(200, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &rollout::Strategy::DeleteServiceStrategy(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(200, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Rollout { Rollout::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "rollout_id", - |m: &Rollout| { &m.rollout_id }, - |m: &mut Rollout| { &mut m.rollout_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Rollout| { &m.create_time }, - |m: &mut Rollout| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "created_by", - |m: &Rollout| { &m.created_by }, - |m: &mut Rollout| { &mut m.created_by }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "status", - |m: &Rollout| { &m.status }, - |m: &mut Rollout| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Rollout_TrafficPercentStrategy>( - "traffic_percent_strategy", - Rollout::has_traffic_percent_strategy, - Rollout::get_traffic_percent_strategy, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Rollout_DeleteServiceStrategy>( - "delete_service_strategy", - Rollout::has_delete_service_strategy, - Rollout::get_delete_service_strategy, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &Rollout| { &m.service_name }, - |m: &mut Rollout| { &mut m.service_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Rollout", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Rollout { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Rollout::new) - } -} - -impl ::protobuf::Clear for Rollout { fn clear(&mut self) { self.rollout_id.clear(); self.create_time.clear(); self.created_by.clear(); - self.status = Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED; + self.status = ::protobuf::EnumOrUnknown::new(rollout::RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED); self.strategy = ::std::option::Option::None; self.strategy = ::std::option::Option::None; self.service_name.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for Rollout { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static Rollout { + static instance: Rollout = Rollout { + rollout_id: ::std::string::String::new(), + create_time: ::protobuf::MessageField::none(), + created_by: ::std::string::String::new(), + status: ::protobuf::EnumOrUnknown::from_i32(0), + service_name: ::std::string::String::new(), + strategy: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for Rollout { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for Rollout { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Rollout").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct Rollout_TrafficPercentStrategy { - // message fields - pub percentages: ::std::collections::HashMap<::std::string::String, f64>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Rollout_TrafficPercentStrategy { - fn default() -> &'a Rollout_TrafficPercentStrategy { - ::default_instance() +impl ::std::fmt::Display for Rollout { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl Rollout_TrafficPercentStrategy { - pub fn new() -> Rollout_TrafficPercentStrategy { - ::std::default::Default::default() - } - - // repeated .google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntry percentages = 1; +impl ::protobuf::reflect::ProtobufValue for Rollout { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// Nested message and enums of message `Rollout` +pub mod rollout { - pub fn get_percentages(&self) -> &::std::collections::HashMap<::std::string::String, f64> { - &self.percentages - } - pub fn clear_percentages(&mut self) { - self.percentages.clear(); + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.servicemanagement.v1.Rollout.strategy) + pub enum Strategy { + // @@protoc_insertion_point(oneof_field:google.api.servicemanagement.v1.Rollout.traffic_percent_strategy) + TrafficPercentStrategy(TrafficPercentStrategy), + // @@protoc_insertion_point(oneof_field:google.api.servicemanagement.v1.Rollout.delete_service_strategy) + DeleteServiceStrategy(DeleteServiceStrategy), } - // Param is passed by value, moved - pub fn set_percentages(&mut self, v: ::std::collections::HashMap<::std::string::String, f64>) { - self.percentages = v; + impl ::protobuf::Oneof for Strategy { } - // Mutable pointer to the field. - pub fn mut_percentages(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, f64> { - &mut self.percentages + impl ::protobuf::OneofFull for Strategy { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("strategy").unwrap()).clone() + } } - // Take field - pub fn take_percentages(&mut self) -> ::std::collections::HashMap<::std::string::String, f64> { - ::std::mem::replace(&mut self.percentages, ::std::collections::HashMap::new()) + impl Strategy { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("strategy") + } } -} - -impl ::protobuf::Message for Rollout_TrafficPercentStrategy { - fn is_initialized(&self) -> bool { - true + // @@protoc_insertion_point(message:google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct TrafficPercentStrategy { + // message fields + /// Maps service configuration IDs to their corresponding traffic percentage. + /// Key is the service configuration ID, Value is the traffic percentage + /// which must be greater than 0.0 and the sum must equal to 100.0. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.percentages) + pub percentages: ::std::collections::HashMap<::std::string::String, f64>, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeDouble>(wire_type, is, &mut self.percentages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + impl<'a> ::std::default::Default for &'a TrafficPercentStrategy { + fn default() -> &'a TrafficPercentStrategy { + ::default_instance() } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeDouble>(1, &self.percentages); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + impl TrafficPercentStrategy { + pub fn new() -> TrafficPercentStrategy { + ::std::default::Default::default() + } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeDouble>(1, &self.percentages, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "percentages", + |m: &TrafficPercentStrategy| { &m.percentages }, + |m: &mut TrafficPercentStrategy| { &mut m.percentages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Rollout.TrafficPercentStrategy", + fields, + oneofs, + ) + } } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + impl ::protobuf::Message for TrafficPercentStrategy { + const NAME: &'static str = "TrafficPercentStrategy"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 17 => value = is.read_double()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.percentages.insert(key, value); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for (k, v) in &self.percentages { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += 1 + 8; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for (k, v) in &self.percentages { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += 1 + 8; + os.write_raw_varint32(10)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_double(2, *v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn new() -> TrafficPercentStrategy { + TrafficPercentStrategy::new() + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn clear(&mut self) { + self.percentages.clear(); + self.special_fields.clear(); + } - fn new() -> Rollout_TrafficPercentStrategy { - Rollout_TrafficPercentStrategy::new() + fn default_instance() -> &'static TrafficPercentStrategy { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(TrafficPercentStrategy::new) + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeDouble>( - "percentages", - |m: &Rollout_TrafficPercentStrategy| { &m.percentages }, - |m: &mut Rollout_TrafficPercentStrategy| { &mut m.percentages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Rollout.TrafficPercentStrategy", - fields, - file_descriptor_proto() - ) - }) + impl ::protobuf::MessageFull for TrafficPercentStrategy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Rollout.TrafficPercentStrategy").unwrap()).clone() + } } - fn default_instance() -> &'static Rollout_TrafficPercentStrategy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Rollout_TrafficPercentStrategy::new) + impl ::std::fmt::Display for TrafficPercentStrategy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::Clear for Rollout_TrafficPercentStrategy { - fn clear(&mut self) { - self.percentages.clear(); - self.unknown_fields.clear(); + impl ::protobuf::reflect::ProtobufValue for TrafficPercentStrategy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::std::fmt::Debug for Rollout_TrafficPercentStrategy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + /// Strategy used to delete a service. This strategy is a placeholder only + /// used by the system generated rollout to delete a service. + // @@protoc_insertion_point(message:google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct DeleteServiceStrategy { + // special fields + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -} -impl ::protobuf::reflect::ProtobufValue for Rollout_TrafficPercentStrategy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl<'a> ::std::default::Default for &'a DeleteServiceStrategy { + fn default() -> &'a DeleteServiceStrategy { + ::default_instance() + } } -} -#[derive(PartialEq,Clone,Default)] -pub struct Rollout_DeleteServiceStrategy { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + impl DeleteServiceStrategy { + pub fn new() -> DeleteServiceStrategy { + ::std::default::Default::default() + } -impl<'a> ::std::default::Default for &'a Rollout_DeleteServiceStrategy { - fn default() -> &'a Rollout_DeleteServiceStrategy { - ::default_instance() + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Rollout.DeleteServiceStrategy", + fields, + oneofs, + ) + } } -} -impl Rollout_DeleteServiceStrategy { - pub fn new() -> Rollout_DeleteServiceStrategy { - ::std::default::Default::default() - } -} + impl ::protobuf::Message for DeleteServiceStrategy { + const NAME: &'static str = "DeleteServiceStrategy"; -impl ::protobuf::Message for Rollout_DeleteServiceStrategy { - fn is_initialized(&self) -> bool { - true - } + fn is_initialized(&self) -> bool { + true + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn new() -> DeleteServiceStrategy { + DeleteServiceStrategy::new() + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn clear(&mut self) { + self.special_fields.clear(); + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn default_instance() -> &'static DeleteServiceStrategy { + static instance: DeleteServiceStrategy = DeleteServiceStrategy { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn new() -> Rollout_DeleteServiceStrategy { - Rollout_DeleteServiceStrategy::new() + impl ::protobuf::MessageFull for DeleteServiceStrategy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Rollout.DeleteServiceStrategy").unwrap()).clone() + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Rollout.DeleteServiceStrategy", - fields, - file_descriptor_proto() - ) - }) + impl ::std::fmt::Display for DeleteServiceStrategy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn default_instance() -> &'static Rollout_DeleteServiceStrategy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Rollout_DeleteServiceStrategy::new) + impl ::protobuf::reflect::ProtobufValue for DeleteServiceStrategy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::protobuf::Clear for Rollout_DeleteServiceStrategy { - fn clear(&mut self) { - self.unknown_fields.clear(); + /// Status of a Rollout. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicemanagement.v1.Rollout.RolloutStatus) + pub enum RolloutStatus { + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.ROLLOUT_STATUS_UNSPECIFIED) + ROLLOUT_STATUS_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.IN_PROGRESS) + IN_PROGRESS = 1, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.SUCCESS) + SUCCESS = 2, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.CANCELLED) + CANCELLED = 3, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.FAILED) + FAILED = 4, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.PENDING) + PENDING = 5, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.Rollout.RolloutStatus.FAILED_ROLLED_BACK) + FAILED_ROLLED_BACK = 6, } -} -impl ::std::fmt::Debug for Rollout_DeleteServiceStrategy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + impl ::protobuf::Enum for RolloutStatus { + const NAME: &'static str = "RolloutStatus"; -impl ::protobuf::reflect::ProtobufValue for Rollout_DeleteServiceStrategy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn value(&self) -> i32 { + *self as i32 + } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Rollout_RolloutStatus { - ROLLOUT_STATUS_UNSPECIFIED = 0, - IN_PROGRESS = 1, - SUCCESS = 2, - CANCELLED = 3, - FAILED = 4, - PENDING = 5, - FAILED_ROLLED_BACK = 6, -} + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED), + 1 => ::std::option::Option::Some(RolloutStatus::IN_PROGRESS), + 2 => ::std::option::Option::Some(RolloutStatus::SUCCESS), + 3 => ::std::option::Option::Some(RolloutStatus::CANCELLED), + 4 => ::std::option::Option::Some(RolloutStatus::FAILED), + 5 => ::std::option::Option::Some(RolloutStatus::PENDING), + 6 => ::std::option::Option::Some(RolloutStatus::FAILED_ROLLED_BACK), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "ROLLOUT_STATUS_UNSPECIFIED" => ::std::option::Option::Some(RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED), + "IN_PROGRESS" => ::std::option::Option::Some(RolloutStatus::IN_PROGRESS), + "SUCCESS" => ::std::option::Option::Some(RolloutStatus::SUCCESS), + "CANCELLED" => ::std::option::Option::Some(RolloutStatus::CANCELLED), + "FAILED" => ::std::option::Option::Some(RolloutStatus::FAILED), + "PENDING" => ::std::option::Option::Some(RolloutStatus::PENDING), + "FAILED_ROLLED_BACK" => ::std::option::Option::Some(RolloutStatus::FAILED_ROLLED_BACK), + _ => ::std::option::Option::None + } + } -impl ::protobuf::ProtobufEnum for Rollout_RolloutStatus { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED), - 1 => ::std::option::Option::Some(Rollout_RolloutStatus::IN_PROGRESS), - 2 => ::std::option::Option::Some(Rollout_RolloutStatus::SUCCESS), - 3 => ::std::option::Option::Some(Rollout_RolloutStatus::CANCELLED), - 4 => ::std::option::Option::Some(Rollout_RolloutStatus::FAILED), - 5 => ::std::option::Option::Some(Rollout_RolloutStatus::PENDING), - 6 => ::std::option::Option::Some(Rollout_RolloutStatus::FAILED_ROLLED_BACK), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Rollout_RolloutStatus] = &[ - Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED, - Rollout_RolloutStatus::IN_PROGRESS, - Rollout_RolloutStatus::SUCCESS, - Rollout_RolloutStatus::CANCELLED, - Rollout_RolloutStatus::FAILED, - Rollout_RolloutStatus::PENDING, - Rollout_RolloutStatus::FAILED_ROLLED_BACK, + const VALUES: &'static [RolloutStatus] = &[ + RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED, + RolloutStatus::IN_PROGRESS, + RolloutStatus::SUCCESS, + RolloutStatus::CANCELLED, + RolloutStatus::FAILED, + RolloutStatus::PENDING, + RolloutStatus::FAILED_ROLLED_BACK, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Rollout.RolloutStatus", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for RolloutStatus { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Rollout.RolloutStatus").unwrap()).clone() + } -impl ::std::marker::Copy for Rollout_RolloutStatus { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for Rollout_RolloutStatus { - fn default() -> Self { - Rollout_RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED + impl ::std::default::Default for RolloutStatus { + fn default() -> Self { + RolloutStatus::ROLLOUT_STATUS_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for Rollout_RolloutStatus { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl RolloutStatus { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Rollout.RolloutStatus") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n/google/api/servicemanagement/v1/resources.proto\x12\x1fgoogle.api.ser\ - vicemanagement.v1\x1a\x1egoogle/api/config_change.proto\x1a\x1fgoogle/ap\ - i/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"c\n\x0eMa\ - nagedService\x12!\n\x0cservice_name\x18\x02\x20\x01(\tR\x0bserviceName\ - \x12.\n\x13producer_project_id\x18\x03\x20\x01(\tR\x11producerProjectId\ - \"\xdb\x03\n\x11OperationMetadata\x12%\n\x0eresource_names\x18\x01\x20\ - \x03(\tR\rresourceNames\x12M\n\x05steps\x18\x02\x20\x03(\x0b27.google.ap\ - i.servicemanagement.v1.OperationMetadata.StepR\x05steps\x12/\n\x13progre\ - ss_percentage\x18\x03\x20\x01(\x05R\x12progressPercentage\x129\n\nstart_\ - time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x1a\ - {\n\x04Step\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\ - \x12Q\n\x06status\x18\x04\x20\x01(\x0e29.google.api.servicemanagement.v1\ - .OperationMetadata.StatusR\x06status\"g\n\x06Status\x12\x16\n\x12STATUS_\ - UNSPECIFIED\x10\0\x12\x08\n\x04DONE\x10\x01\x12\x0f\n\x0bNOT_STARTED\x10\ - \x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\n\n\x06FAILED\x10\x04\x12\r\n\ - \tCANCELLED\x10\x05\"\xa8\x01\n\nDiagnostic\x12\x1a\n\x08location\x18\ - \x01\x20\x01(\tR\x08location\x12D\n\x04kind\x18\x02\x20\x01(\x0e20.googl\ - e.api.servicemanagement.v1.Diagnostic.KindR\x04kind\x12\x18\n\x07message\ - \x18\x03\x20\x01(\tR\x07message\"\x1e\n\x04Kind\x12\x0b\n\x07WARNING\x10\ - \0\x12\t\n\x05ERROR\x10\x01\"a\n\x0cConfigSource\x12\x0e\n\x02id\x18\x05\ - \x20\x01(\tR\x02id\x12A\n\x05files\x18\x02\x20\x03(\x0b2+.google.api.ser\ - vicemanagement.v1.ConfigFileR\x05files\"\xb7\x02\n\nConfigFile\x12\x1b\n\ - \tfile_path\x18\x01\x20\x01(\tR\x08filePath\x12#\n\rfile_contents\x18\ - \x03\x20\x01(\x0cR\x0cfileContents\x12Q\n\tfile_type\x18\x04\x20\x01(\ - \x0e24.google.api.servicemanagement.v1.ConfigFile.FileTypeR\x08fileType\ - \"\x93\x01\n\x08FileType\x12\x19\n\x15FILE_TYPE_UNSPECIFIED\x10\0\x12\ - \x17\n\x13SERVICE_CONFIG_YAML\x10\x01\x12\x11\n\rOPEN_API_JSON\x10\x02\ - \x12\x11\n\rOPEN_API_YAML\x10\x03\x12\x1d\n\x19FILE_DESCRIPTOR_SET_PROTO\ - \x10\x04\x12\x0e\n\nPROTO_FILE\x10\x06\"\x1f\n\tConfigRef\x12\x12\n\x04n\ - ame\x18\x01\x20\x01(\tR\x04name\"O\n\x0cChangeReport\x12?\n\x0econfig_ch\ - anges\x18\x01\x20\x03(\x0b2\x18.google.api.ConfigChangeR\rconfigChanges\ - \"\xf8\x06\n\x07Rollout\x12\"\n\nrollout_id\x18\x01\x20\x01(\tR\trollout\ - IdB\x03\xe0A\x01\x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a.google.\ - protobuf.TimestampR\ncreateTime\x12\x1d\n\ncreated_by\x18\x03\x20\x01(\t\ - R\tcreatedBy\x12N\n\x06status\x18\x04\x20\x01(\x0e26.google.api.servicem\ - anagement.v1.Rollout.RolloutStatusR\x06status\x12{\n\x18traffic_percent_\ - strategy\x18\x05\x20\x01(\x0b2?.google.api.servicemanagement.v1.Rollout.\ - TrafficPercentStrategyH\0R\x16trafficPercentStrategy\x12y\n\x17delete_se\ - rvice_strategy\x18\xc8\x01\x20\x01(\x0b2>.google.api.servicemanagement.v\ - 1.Rollout.DeleteServiceStrategyH\0R\x15deleteServiceStrategy\x12!\n\x0cs\ - ervice_name\x18\x08\x20\x01(\tR\x0bserviceName\x1a\xcc\x01\n\x16TrafficP\ - ercentStrategy\x12r\n\x0bpercentages\x18\x01\x20\x03(\x0b2P.google.api.s\ - ervicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntryR\x0b\ - percentages\x1a>\n\x10PercentagesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\ - \tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\x01R\x05value:\x028\x01\ - \x1a\x17\n\x15DeleteServiceStrategy\"\x8d\x01\n\rRolloutStatus\x12\x1e\n\ - \x1aROLLOUT_STATUS_UNSPECIFIED\x10\0\x12\x0f\n\x0bIN_PROGRESS\x10\x01\ - \x12\x0b\n\x07SUCCESS\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06FAIL\ - ED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x16\n\x12FAILED_ROLLED_BACK\ - \x10\x06B\n\n\x08strategyB\x82\x02\n#com.google.api.servicemanagement.v1\ - B\x0eResourcesProtoP\x01ZScloud.google.com/go/servicemanagement/apiv1/se\ - rvicemanagementpb;servicemanagementpb\xa2\x02\x04GASM\xaa\x02!Google.Clo\ - ud.ServiceManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\ - \x02$Google::Cloud::ServiceManagement::V1J\x86P\n\x07\x12\x05\x0e\0\xa6\ - \x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20\ - 2023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ - se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ - \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ - License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ - \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ - \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0(\n\t\ - \n\x02\x03\0\x12\x03\x12\0(\n\t\n\x02\x03\x01\x12\x03\x13\0)\n\t\n\x02\ - \x03\x02\x12\x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\0>\n\t\n\x02\x08%\ - \x12\x03\x16\0>\n\x08\n\x01\x08\x12\x03\x17\0j\n\t\n\x02\x08\x0b\x12\x03\ - \x17\0j\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\ - \n\x08\n\x01\x08\x12\x03\x19\0/\n\t\n\x02\x08\x08\x12\x03\x19\0/\n\x08\n\ - \x01\x08\x12\x03\x1a\0<\n\t\n\x02\x08\x01\x12\x03\x1a\0<\n\x08\n\x01\x08\ - \x12\x03\x1b\0\"\n\t\n\x02\x08$\x12\x03\x1b\0\"\n\x08\n\x01\x08\x12\x03\ - \x1c\0>\n\t\n\x02\x08)\x12\x03\x1c\0>\n\x08\n\x01\x08\x12\x03\x1d\0=\n\t\ - \n\x02\x08-\x12\x03\x1d\0=\na\n\x02\x04\0\x12\x04!\0)\x01\x1aU\x20The\ - \x20full\x20representation\x20of\x20a\x20Service\x20that\x20is\x20manage\ - d\x20by\n\x20Google\x20Service\x20Management.\n\n\n\n\x03\x04\0\x01\x12\ - \x03!\x08\x16\n\x95\x01\n\x04\x04\0\x02\0\x12\x03%\x02\x1a\x1a\x87\x01\ - \x20The\x20name\x20of\x20the\x20service.\x20See\x20the\n\x20[overview](h\ - ttps://cloud.google.com/service-infrastructure/docs/overview)\n\x20for\ - \x20naming\x20requirements.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03%\x02\ - \x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03%\t\x15\n\x0c\n\x05\x04\0\x02\0\ - \x03\x12\x03%\x18\x19\nE\n\x04\x04\0\x02\x01\x12\x03(\x02!\x1a8\x20ID\ - \x20of\x20the\x20project\x20that\x20produces\x20and\x20owns\x20this\x20s\ - ervice.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03(\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x01\x01\x12\x03(\t\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03(\x1f\ - \x20\nM\n\x02\x04\x01\x12\x04,\0X\x01\x1aA\x20The\x20metadata\x20associa\ - ted\x20with\x20a\x20long\x20running\x20operation\x20resource.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03,\x08\x19\n<\n\x04\x04\x01\x03\0\x12\x04.\x024\ - \x03\x1a.\x20Represents\x20the\x20status\x20of\x20one\x20operation\x20st\ - ep.\n\n\x0c\n\x05\x04\x01\x03\0\x01\x12\x03.\n\x0e\n3\n\x06\x04\x01\x03\ - \0\x02\0\x12\x030\x04\x1b\x1a$\x20The\x20short\x20description\x20of\x20t\ - he\x20step.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x05\x12\x030\x04\n\n\x0e\n\ - \x07\x04\x01\x03\0\x02\0\x01\x12\x030\x0b\x16\n\x0e\n\x07\x04\x01\x03\0\ - \x02\0\x03\x12\x030\x19\x1a\n!\n\x06\x04\x01\x03\0\x02\x01\x12\x033\x04\ - \x16\x1a\x12\x20The\x20status\x20code.\n\n\x0e\n\x07\x04\x01\x03\0\x02\ - \x01\x06\x12\x033\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\x033\ - \x0b\x11\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x033\x14\x15\nQ\n\x04\ - \x04\x01\x04\0\x12\x047\x02J\x03\x1aC\x20Code\x20describes\x20the\x20sta\ - tus\x20of\x20the\x20operation\x20(or\x20one\x20of\x20its\x20steps).\n\n\ - \x0c\n\x05\x04\x01\x04\0\x01\x12\x037\x07\r\n!\n\x06\x04\x01\x04\0\x02\0\ - \x12\x039\x04\x1b\x1a\x12\x20Unspecifed\x20code.\n\n\x0e\n\x07\x04\x01\ - \x04\0\x02\0\x01\x12\x039\x04\x16\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\ - \x12\x039\x19\x1a\nD\n\x06\x04\x01\x04\0\x02\x01\x12\x03<\x04\r\x1a5\x20\ - The\x20operation\x20or\x20step\x20has\x20completed\x20without\x20errors.\ - \n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03<\x04\x08\n\x0e\n\x07\ - \x04\x01\x04\0\x02\x01\x02\x12\x03<\x0b\x0c\n;\n\x06\x04\x01\x04\0\x02\ - \x02\x12\x03?\x04\x14\x1a,\x20The\x20operation\x20or\x20step\x20has\x20n\ - ot\x20started\x20yet.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03?\ - \x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03?\x12\x13\n6\n\x06\ - \x04\x01\x04\0\x02\x03\x12\x03B\x04\x14\x1a'\x20The\x20operation\x20or\ - \x20step\x20is\x20in\x20progress.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\ - \x01\x12\x03B\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03B\x12\ - \x13\n\x8c\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x03F\x04\x0f\x1a}\x20The\ - \x20operation\x20or\x20step\x20has\x20completed\x20with\x20errors.\x20If\ - \x20the\x20operation\x20is\n\x20rollbackable,\x20the\x20rollback\x20comp\ - leted\x20with\x20errors\x20too.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\ - \x12\x03F\x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03F\r\x0e\nG\ - \n\x06\x04\x01\x04\0\x02\x05\x12\x03I\x04\x12\x1a8\x20The\x20operation\ - \x20or\x20step\x20has\x20completed\x20with\x20cancellation.\n\n\x0e\n\ - \x07\x04\x01\x04\0\x02\x05\x01\x12\x03I\x04\r\n\x0e\n\x07\x04\x01\x04\0\ - \x02\x05\x02\x12\x03I\x10\x11\n_\n\x04\x04\x01\x02\0\x12\x03N\x02%\x1aR\ - \x20The\x20full\x20name\x20of\x20the\x20resources\x20that\x20this\x20ope\ - ration\x20is\x20directly\n\x20associated\x20with.\n\n\x0c\n\x05\x04\x01\ - \x02\0\x04\x12\x03N\x02\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03N\x0b\x11\ - \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03N\x12\x20\n\x0c\n\x05\x04\x01\x02\ - \0\x03\x12\x03N#$\nT\n\x04\x04\x01\x02\x01\x12\x03Q\x02\x1a\x1aG\x20Deta\ - iled\x20status\x20information\x20for\x20each\x20step.\x20The\x20order\ - \x20is\x20undetermined.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03Q\x02\n\ - \n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03Q\x0b\x0f\n\x0c\n\x05\x04\x01\ - \x02\x01\x01\x12\x03Q\x10\x15\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03Q\ - \x18\x19\nQ\n\x04\x04\x01\x02\x02\x12\x03T\x02\x20\x1aD\x20Percentage\ - \x20of\x20completion\x20of\x20this\x20operation,\x20ranging\x20from\x200\ - \x20to\x20100.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03T\x02\x07\n\x0c\ - \n\x05\x04\x01\x02\x02\x01\x12\x03T\x08\x1b\n\x0c\n\x05\x04\x01\x02\x02\ - \x03\x12\x03T\x1e\x1f\n/\n\x04\x04\x01\x02\x03\x12\x03W\x02+\x1a\"\x20Th\ - e\x20start\x20time\x20of\x20the\x20operation.\n\n\x0c\n\x05\x04\x01\x02\ - \x03\x06\x12\x03W\x02\x1b\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03W\x1c&\ - \n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03W)*\n@\n\x02\x04\x02\x12\x04[\0m\ - \x01\x1a4\x20Represents\x20a\x20diagnostic\x20message\x20(error\x20or\ - \x20warning)\n\n\n\n\x03\x04\x02\x01\x12\x03[\x08\x12\n<\n\x04\x04\x02\ - \x04\0\x12\x04]\x02c\x03\x1a.\x20The\x20kind\x20of\x20diagnostic\x20info\ - rmation\x20possible.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03]\x07\x0b\n$\ - \n\x06\x04\x02\x04\0\x02\0\x12\x03_\x04\x10\x1a\x15\x20Warnings\x20and\ - \x20errors\n\n\x0e\n\x07\x04\x02\x04\0\x02\0\x01\x12\x03_\x04\x0b\n\x0e\ - \n\x07\x04\x02\x04\0\x02\0\x02\x12\x03_\x0e\x0f\n\x1c\n\x06\x04\x02\x04\ - \0\x02\x01\x12\x03b\x04\x0e\x1a\r\x20Only\x20errors\n\n\x0e\n\x07\x04\ - \x02\x04\0\x02\x01\x01\x12\x03b\x04\t\n\x0e\n\x07\x04\x02\x04\0\x02\x01\ - \x02\x12\x03b\x0c\r\nA\n\x04\x04\x02\x02\0\x12\x03f\x02\x16\x1a4\x20File\ - \x20name\x20and\x20line\x20number\x20of\x20the\x20error\x20or\x20warning\ - .\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03f\x02\x08\n\x0c\n\x05\x04\x02\ - \x02\0\x01\x12\x03f\t\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03f\x14\x15\ - \n;\n\x04\x04\x02\x02\x01\x12\x03i\x02\x10\x1a.\x20The\x20kind\x20of\x20\ - diagnostic\x20information\x20provided.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\ - \x12\x03i\x02\x06\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03i\x07\x0b\n\x0c\ - \n\x05\x04\x02\x02\x01\x03\x12\x03i\x0e\x0f\n7\n\x04\x04\x02\x02\x02\x12\ - \x03l\x02\x15\x1a*\x20Message\x20describing\x20the\x20error\x20or\x20war\ - ning.\n\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03l\x02\x08\n\x0c\n\x05\x04\ - \x02\x02\x02\x01\x12\x03l\t\x10\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03l\ - \x13\x14\n|\n\x02\x04\x03\x12\x04q\0z\x01\x1ap\x20Represents\x20a\x20sou\ - rce\x20file\x20which\x20is\x20used\x20to\x20generate\x20the\x20service\ - \x20configuration\n\x20defined\x20by\x20`google.api.Service`.\n\n\n\n\ - \x03\x04\x03\x01\x12\x03q\x08\x14\n\xb6\x01\n\x04\x04\x03\x02\0\x12\x03u\ + vicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/api/\ + config_change.proto\x1a\x17google/api/metric.proto\x1a\x18google/api/ser\ + vice.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobu\ + f/any.proto\x1a\x20google/protobuf/field_mask.proto\x1a\x1cgoogle/protob\ + uf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc\ + /status.proto\"c\n\x0eManagedService\x12!\n\x0cservice_name\x18\x02\x20\ + \x01(\tR\x0bserviceName\x12.\n\x13producer_project_id\x18\x03\x20\x01(\t\ + R\x11producerProjectId\"\xdb\x03\n\x11OperationMetadata\x12%\n\x0eresour\ + ce_names\x18\x01\x20\x03(\tR\rresourceNames\x12M\n\x05steps\x18\x02\x20\ + \x03(\x0b27.google.api.servicemanagement.v1.OperationMetadata.StepR\x05s\ + teps\x12/\n\x13progress_percentage\x18\x03\x20\x01(\x05R\x12progressPerc\ + entage\x129\n\nstart_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.Time\ + stampR\tstartTime\x1a{\n\x04Step\x12\x20\n\x0bdescription\x18\x02\x20\ + \x01(\tR\x0bdescription\x12Q\n\x06status\x18\x04\x20\x01(\x0e29.google.a\ + pi.servicemanagement.v1.OperationMetadata.StatusR\x06status\"g\n\x06Stat\ + us\x12\x16\n\x12STATUS_UNSPECIFIED\x10\0\x12\x08\n\x04DONE\x10\x01\x12\ + \x0f\n\x0bNOT_STARTED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\n\n\ + \x06FAILED\x10\x04\x12\r\n\tCANCELLED\x10\x05\"\xa8\x01\n\nDiagnostic\ + \x12\x1a\n\x08location\x18\x01\x20\x01(\tR\x08location\x12D\n\x04kind\ + \x18\x02\x20\x01(\x0e20.google.api.servicemanagement.v1.Diagnostic.KindR\ + \x04kind\x12\x18\n\x07message\x18\x03\x20\x01(\tR\x07message\"\x1e\n\x04\ + Kind\x12\x0b\n\x07WARNING\x10\0\x12\t\n\x05ERROR\x10\x01\"a\n\x0cConfigS\ + ource\x12\x0e\n\x02id\x18\x05\x20\x01(\tR\x02id\x12A\n\x05files\x18\x02\ + \x20\x03(\x0b2+.google.api.servicemanagement.v1.ConfigFileR\x05files\"\ + \xb7\x02\n\nConfigFile\x12\x1b\n\tfile_path\x18\x01\x20\x01(\tR\x08fileP\ + ath\x12#\n\rfile_contents\x18\x03\x20\x01(\x0cR\x0cfileContents\x12Q\n\t\ + file_type\x18\x04\x20\x01(\x0e24.google.api.servicemanagement.v1.ConfigF\ + ile.FileTypeR\x08fileType\"\x93\x01\n\x08FileType\x12\x19\n\x15FILE_TYPE\ + _UNSPECIFIED\x10\0\x12\x17\n\x13SERVICE_CONFIG_YAML\x10\x01\x12\x11\n\rO\ + PEN_API_JSON\x10\x02\x12\x11\n\rOPEN_API_YAML\x10\x03\x12\x1d\n\x19FILE_\ + DESCRIPTOR_SET_PROTO\x10\x04\x12\x0e\n\nPROTO_FILE\x10\x06\"\x1f\n\tConf\ + igRef\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"O\n\x0cChangeReport\ + \x12?\n\x0econfig_changes\x18\x01\x20\x03(\x0b2\x18.google.api.ConfigCha\ + ngeR\rconfigChanges\"\xf3\x06\n\x07Rollout\x12\x1d\n\nrollout_id\x18\x01\ + \x20\x01(\tR\trolloutId\x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a.\ + google.protobuf.TimestampR\ncreateTime\x12\x1d\n\ncreated_by\x18\x03\x20\ + \x01(\tR\tcreatedBy\x12N\n\x06status\x18\x04\x20\x01(\x0e26.google.api.s\ + ervicemanagement.v1.Rollout.RolloutStatusR\x06status\x12{\n\x18traffic_p\ + ercent_strategy\x18\x05\x20\x01(\x0b2?.google.api.servicemanagement.v1.R\ + ollout.TrafficPercentStrategyH\0R\x16trafficPercentStrategy\x12y\n\x17de\ + lete_service_strategy\x18\xc8\x01\x20\x01(\x0b2>.google.api.servicemanag\ + ement.v1.Rollout.DeleteServiceStrategyH\0R\x15deleteServiceStrategy\x12!\ + \n\x0cservice_name\x18\x08\x20\x01(\tR\x0bserviceName\x1a\xcc\x01\n\x16T\ + rafficPercentStrategy\x12r\n\x0bpercentages\x18\x01\x20\x03(\x0b2P.googl\ + e.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEnt\ + ryR\x0bpercentages\x1a>\n\x10PercentagesEntry\x12\x10\n\x03key\x18\x01\ + \x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\x01R\x05value:\ + \x028\x01\x1a\x17\n\x15DeleteServiceStrategy\"\x8d\x01\n\rRolloutStatus\ + \x12\x1e\n\x1aROLLOUT_STATUS_UNSPECIFIED\x10\0\x12\x0f\n\x0bIN_PROGRESS\ + \x10\x01\x12\x0b\n\x07SUCCESS\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\ + \x06FAILED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\x16\n\x12FAILED_ROLL\ + ED_BACK\x10\x06B\n\n\x08strategyB\xd8\x01\n#com.google.api.servicemanage\ + ment.v1B\x0eResourcesProtoP\x01ZPgoogle.golang.org/genproto/googleapis/a\ + pi/servicemanagement/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!Google\ + .Cloud.ServiceManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\ + J\xcaO\n\x07\x12\x05\x0e\0\xaa\x02\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb2\x04\x20Copyright\x202018\x20Google\x20Inc.\n\n\x20Licensed\x20\ + under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"Licens\ + e\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20c\ + ompliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20c\ + opy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apac\ + he.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicabl\ + e\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distri\ + buted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"A\ + S\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ + \x02\x12\x03\x10\0(\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\ + \x03\x13\0(\n\t\n\x02\x03\x02\x12\x03\x14\0!\n\t\n\x02\x03\x03\x12\x03\ + \x15\0\"\n\t\n\x02\x03\x04\x12\x03\x16\0-\n\t\n\x02\x03\x05\x12\x03\x17\ + \0#\n\t\n\x02\x03\x06\x12\x03\x18\0*\n\t\n\x02\x03\x07\x12\x03\x19\0&\n\ + \t\n\x02\x03\x08\x12\x03\x1a\0)\n\t\n\x02\x03\t\x12\x03\x1b\0!\n\x08\n\ + \x01\x08\x12\x03\x1d\0>\n\t\n\x02\x08%\x12\x03\x1d\0>\n\x08\n\x01\x08\ + \x12\x03\x1e\0g\n\t\n\x02\x08\x0b\x12\x03\x1e\0g\n\x08\n\x01\x08\x12\x03\ + \x1f\0\"\n\t\n\x02\x08\n\x12\x03\x1f\0\"\n\x08\n\x01\x08\x12\x03\x20\0/\ + \n\t\n\x02\x08\x08\x12\x03\x20\0/\n\x08\n\x01\x08\x12\x03!\0<\n\t\n\x02\ + \x08\x01\x12\x03!\0<\n\x08\n\x01\x08\x12\x03\"\0\"\n\t\n\x02\x08$\x12\ + \x03\"\0\"\n\x08\n\x01\x08\x12\x03#\0>\n\t\n\x02\x08)\x12\x03#\0>\na\n\ + \x02\x04\0\x12\x04'\0.\x01\x1aU\x20The\x20full\x20representation\x20of\ + \x20a\x20Service\x20that\x20is\x20managed\x20by\n\x20Google\x20Service\ + \x20Management.\n\n\n\n\x03\x04\0\x01\x12\x03'\x08\x16\nr\n\x04\x04\0\ + \x02\0\x12\x03*\x02\x1a\x1ae\x20The\x20name\x20of\x20the\x20service.\x20\ + See\x20the\x20[overview](/service-management/overview)\n\x20for\x20namin\ + g\x20requirements.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03*\x02\x08\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x03*\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03*\x18\x19\nE\n\x04\x04\0\x02\x01\x12\x03-\x02!\x1a8\x20ID\x20of\x20t\ + he\x20project\x20that\x20produces\x20and\x20owns\x20this\x20service.\n\n\ + \x0c\n\x05\x04\0\x02\x01\x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\x02\x01\ + \x01\x12\x03-\t\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-\x1f\x20\nM\n\ + \x02\x04\x01\x12\x041\0]\x01\x1aA\x20The\x20metadata\x20associated\x20wi\ + th\x20a\x20long\x20running\x20operation\x20resource.\n\n\n\n\x03\x04\x01\ + \x01\x12\x031\x08\x19\n<\n\x04\x04\x01\x03\0\x12\x043\x029\x03\x1a.\x20R\ + epresents\x20the\x20status\x20of\x20one\x20operation\x20step.\n\n\x0c\n\ + \x05\x04\x01\x03\0\x01\x12\x033\n\x0e\n3\n\x06\x04\x01\x03\0\x02\0\x12\ + \x035\x04\x1b\x1a$\x20The\x20short\x20description\x20of\x20the\x20step.\ + \n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x05\x12\x035\x04\n\n\x0e\n\x07\x04\ + \x01\x03\0\x02\0\x01\x12\x035\x0b\x16\n\x0e\n\x07\x04\x01\x03\0\x02\0\ + \x03\x12\x035\x19\x1a\n!\n\x06\x04\x01\x03\0\x02\x01\x12\x038\x04\x16\ + \x1a\x12\x20The\x20status\x20code.\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\ + \x06\x12\x038\x04\n\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\x038\x0b\ + \x11\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x038\x14\x15\nQ\n\x04\x04\ + \x01\x04\0\x12\x04<\x02O\x03\x1aC\x20Code\x20describes\x20the\x20status\ + \x20of\x20the\x20operation\x20(or\x20one\x20of\x20its\x20steps).\n\n\x0c\ + \n\x05\x04\x01\x04\0\x01\x12\x03<\x07\r\n!\n\x06\x04\x01\x04\0\x02\0\x12\ + \x03>\x04\x1b\x1a\x12\x20Unspecifed\x20code.\n\n\x0e\n\x07\x04\x01\x04\0\ + \x02\0\x01\x12\x03>\x04\x16\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03>\ + \x19\x1a\nD\n\x06\x04\x01\x04\0\x02\x01\x12\x03A\x04\r\x1a5\x20The\x20op\ + eration\x20or\x20step\x20has\x20completed\x20without\x20errors.\n\n\x0e\ + \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03A\x04\x08\n\x0e\n\x07\x04\x01\ + \x04\0\x02\x01\x02\x12\x03A\x0b\x0c\n;\n\x06\x04\x01\x04\0\x02\x02\x12\ + \x03D\x04\x14\x1a,\x20The\x20operation\x20or\x20step\x20has\x20not\x20st\ + arted\x20yet.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03D\x04\x0f\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03D\x12\x13\n6\n\x06\x04\x01\ + \x04\0\x02\x03\x12\x03G\x04\x14\x1a'\x20The\x20operation\x20or\x20step\ + \x20is\x20in\x20progress.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\ + \x03G\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03G\x12\x13\n\ + \x8c\x01\n\x06\x04\x01\x04\0\x02\x04\x12\x03K\x04\x0f\x1a}\x20The\x20ope\ + ration\x20or\x20step\x20has\x20completed\x20with\x20errors.\x20If\x20the\ + \x20operation\x20is\n\x20rollbackable,\x20the\x20rollback\x20completed\ + \x20with\x20errors\x20too.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\x12\ + \x03K\x04\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03K\r\x0e\nG\n\ + \x06\x04\x01\x04\0\x02\x05\x12\x03N\x04\x12\x1a8\x20The\x20operation\x20\ + or\x20step\x20has\x20completed\x20with\x20cancellation.\n\n\x0e\n\x07\ + \x04\x01\x04\0\x02\x05\x01\x12\x03N\x04\r\n\x0e\n\x07\x04\x01\x04\0\x02\ + \x05\x02\x12\x03N\x10\x11\n_\n\x04\x04\x01\x02\0\x12\x03S\x02%\x1aR\x20T\ + he\x20full\x20name\x20of\x20the\x20resources\x20that\x20this\x20operatio\ + n\x20is\x20directly\n\x20associated\x20with.\n\n\x0c\n\x05\x04\x01\x02\0\ + \x04\x12\x03S\x02\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03S\x0b\x11\n\x0c\ + \n\x05\x04\x01\x02\0\x01\x12\x03S\x12\x20\n\x0c\n\x05\x04\x01\x02\0\x03\ + \x12\x03S#$\nT\n\x04\x04\x01\x02\x01\x12\x03V\x02\x1a\x1aG\x20Detailed\ + \x20status\x20information\x20for\x20each\x20step.\x20The\x20order\x20is\ + \x20undetermined.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03V\x02\n\n\x0c\ + \n\x05\x04\x01\x02\x01\x06\x12\x03V\x0b\x0f\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03V\x10\x15\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03V\x18\x19\n\ + Q\n\x04\x04\x01\x02\x02\x12\x03Y\x02\x20\x1aD\x20Percentage\x20of\x20com\ + pletion\x20of\x20this\x20operation,\x20ranging\x20from\x200\x20to\x20100\ + .\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03Y\x02\x07\n\x0c\n\x05\x04\x01\ + \x02\x02\x01\x12\x03Y\x08\x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03Y\ + \x1e\x1f\n/\n\x04\x04\x01\x02\x03\x12\x03\\\x02+\x1a\"\x20The\x20start\ + \x20time\x20of\x20the\x20operation.\n\n\x0c\n\x05\x04\x01\x02\x03\x06\ + \x12\x03\\\x02\x1b\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\\\x1c&\n\x0c\ + \n\x05\x04\x01\x02\x03\x03\x12\x03\\)*\n@\n\x02\x04\x02\x12\x04`\0r\x01\ + \x1a4\x20Represents\x20a\x20diagnostic\x20message\x20(error\x20or\x20war\ + ning)\n\n\n\n\x03\x04\x02\x01\x12\x03`\x08\x12\n<\n\x04\x04\x02\x04\0\ + \x12\x04b\x02h\x03\x1a.\x20The\x20kind\x20of\x20diagnostic\x20informatio\ + n\x20possible.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03b\x07\x0b\n$\n\x06\ + \x04\x02\x04\0\x02\0\x12\x03d\x04\x10\x1a\x15\x20Warnings\x20and\x20erro\ + rs\n\n\x0e\n\x07\x04\x02\x04\0\x02\0\x01\x12\x03d\x04\x0b\n\x0e\n\x07\ + \x04\x02\x04\0\x02\0\x02\x12\x03d\x0e\x0f\n\x1c\n\x06\x04\x02\x04\0\x02\ + \x01\x12\x03g\x04\x0e\x1a\r\x20Only\x20errors\n\n\x0e\n\x07\x04\x02\x04\ + \0\x02\x01\x01\x12\x03g\x04\t\n\x0e\n\x07\x04\x02\x04\0\x02\x01\x02\x12\ + \x03g\x0c\r\nA\n\x04\x04\x02\x02\0\x12\x03k\x02\x16\x1a4\x20File\x20name\ + \x20and\x20line\x20number\x20of\x20the\x20error\x20or\x20warning.\n\n\ + \x0c\n\x05\x04\x02\x02\0\x05\x12\x03k\x02\x08\n\x0c\n\x05\x04\x02\x02\0\ + \x01\x12\x03k\t\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03k\x14\x15\n;\n\ + \x04\x04\x02\x02\x01\x12\x03n\x02\x10\x1a.\x20The\x20kind\x20of\x20diagn\ + ostic\x20information\x20provided.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\ + \x03n\x02\x06\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03n\x07\x0b\n\x0c\n\ + \x05\x04\x02\x02\x01\x03\x12\x03n\x0e\x0f\n7\n\x04\x04\x02\x02\x02\x12\ + \x03q\x02\x15\x1a*\x20Message\x20describing\x20the\x20error\x20or\x20war\ + ning.\n\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03q\x02\x08\n\x0c\n\x05\x04\ + \x02\x02\x02\x01\x12\x03q\t\x10\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03q\ + \x13\x14\n|\n\x02\x04\x03\x12\x04v\0\x7f\x01\x1ap\x20Represents\x20a\x20\ + source\x20file\x20which\x20is\x20used\x20to\x20generate\x20the\x20servic\ + e\x20configuration\n\x20defined\x20by\x20`google.api.Service`.\n\n\n\n\ + \x03\x04\x03\x01\x12\x03v\x08\x14\n\xb6\x01\n\x04\x04\x03\x02\0\x12\x03z\ \x02\x10\x1a\xa8\x01\x20A\x20unique\x20ID\x20for\x20a\x20specific\x20ins\ tance\x20of\x20this\x20message,\x20typically\x20assigned\n\x20by\x20the\ \x20client\x20for\x20tracking\x20purpose.\x20If\x20empty,\x20the\x20serv\ er\x20may\x20choose\x20to\n\x20generate\x20one\x20instead.\n\n\x0c\n\x05\ - \x04\x03\x02\0\x05\x12\x03u\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\ - \x03u\t\x0b\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03u\x0e\x0f\n{\n\x04\x04\ - \x03\x02\x01\x12\x03y\x02\x20\x1an\x20Set\x20of\x20source\x20configurati\ + \x04\x03\x02\0\x05\x12\x03z\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\ + \x03z\t\x0b\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03z\x0e\x0f\n{\n\x04\x04\ + \x03\x02\x01\x12\x03~\x02\x20\x1an\x20Set\x20of\x20source\x20configurati\ on\x20files\x20that\x20are\x20used\x20to\x20generate\x20a\x20service\n\ \x20configuration\x20(`google.api.Service`).\n\n\x0c\n\x05\x04\x03\x02\ - \x01\x04\x12\x03y\x02\n\n\x0c\n\x05\x04\x03\x02\x01\x06\x12\x03y\x0b\x15\ - \n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03y\x16\x1b\n\x0c\n\x05\x04\x03\ - \x02\x01\x03\x12\x03y\x1e\x1f\nC\n\x02\x04\x04\x12\x05}\0\xa4\x01\x01\ - \x1a6\x20Generic\x20specification\x20of\x20a\x20source\x20configuration\ - \x20file\n\n\n\n\x03\x04\x04\x01\x12\x03}\x08\x12\n\r\n\x04\x04\x04\x04\ - \0\x12\x05~\x02\x9a\x01\x03\n\x0c\n\x05\x04\x04\x04\0\x01\x12\x03~\x07\ - \x0f\n$\n\x06\x04\x04\x04\0\x02\0\x12\x04\x80\x01\x04\x1e\x1a\x14\x20Unk\ - nown\x20file\x20type.\n\n\x0f\n\x07\x04\x04\x04\0\x02\0\x01\x12\x04\x80\ - \x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\x02\0\x02\x12\x04\x80\x01\x1c\x1d\ - \n0\n\x06\x04\x04\x04\0\x02\x01\x12\x04\x83\x01\x04\x1c\x1a\x20\x20YAML-\ - specification\x20of\x20service.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x01\ - \x12\x04\x83\x01\x04\x17\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\ - \x83\x01\x1a\x1b\n<\n\x06\x04\x04\x04\0\x02\x02\x12\x04\x86\x01\x04\x16\ - \x1a,\x20OpenAPI\x20specification,\x20serialized\x20in\x20JSON.\n\n\x0f\ - \n\x07\x04\x04\x04\0\x02\x02\x01\x12\x04\x86\x01\x04\x11\n\x0f\n\x07\x04\ - \x04\x04\0\x02\x02\x02\x12\x04\x86\x01\x14\x15\n<\n\x06\x04\x04\x04\0\ - \x02\x03\x12\x04\x89\x01\x04\x16\x1a,\x20OpenAPI\x20specification,\x20se\ - rialized\x20in\x20YAML.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x03\x01\x12\x04\ - \x89\x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x03\x02\x12\x04\x89\x01\ - \x14\x15\n\xaa\x02\n\x06\x04\x04\x04\0\x02\x04\x12\x04\x92\x01\x04\"\x1a\ - \x99\x02\x20FileDescriptorSet,\x20generated\x20by\x20protoc.\n\n\x20To\ - \x20generate,\x20use\x20protoc\x20with\x20imports\x20and\x20source\x20in\ - fo\x20included.\n\x20For\x20an\x20example\x20test.proto\x20file,\x20the\ - \x20following\x20command\x20would\x20put\x20the\x20value\n\x20in\x20a\ - \x20new\x20file\x20named\x20out.pb.\n\n\x20$protoc\x20--include_imports\ - \x20--include_source_info\x20test.proto\x20-o\x20out.pb\n\n\x0f\n\x07\ - \x04\x04\x04\0\x02\x04\x01\x12\x04\x92\x01\x04\x1d\n\x0f\n\x07\x04\x04\ - \x04\0\x02\x04\x02\x12\x04\x92\x01\x20!\n\xd3\x02\n\x06\x04\x04\x04\0\ - \x02\x05\x12\x04\x99\x01\x04\x13\x1a\xc2\x02\x20Uncompiled\x20Proto\x20f\ - ile.\x20Used\x20for\x20storage\x20and\x20display\x20purposes\x20only,\n\ - \x20currently\x20server-side\x20compilation\x20is\x20not\x20supported.\ - \x20Should\x20match\x20the\n\x20inputs\x20to\x20'protoc'\x20command\x20u\ - sed\x20to\x20generated\x20FILE_DESCRIPTOR_SET_PROTO.\x20A\n\x20file\x20o\ - f\x20this\x20type\x20can\x20only\x20be\x20included\x20if\x20at\x20least\ - \x20one\x20file\x20of\x20type\n\x20FILE_DESCRIPTOR_SET_PROTO\x20is\x20in\ - cluded.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x05\x01\x12\x04\x99\x01\x04\x0e\ - \n\x0f\n\x07\x04\x04\x04\0\x02\x05\x02\x12\x04\x99\x01\x11\x12\nP\n\x04\ - \x04\x04\x02\0\x12\x04\x9d\x01\x02\x17\x1aB\x20The\x20file\x20name\x20of\ - \x20the\x20configuration\x20file\x20(full\x20or\x20relative\x20path).\n\ - \n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\x04\ - \x02\0\x01\x12\x04\x9d\x01\t\x12\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x9d\ - \x01\x15\x16\n3\n\x04\x04\x04\x02\x01\x12\x04\xa0\x01\x02\x1a\x1a%\x20Th\ - e\x20bytes\x20that\x20constitute\x20the\x20file.\n\n\r\n\x05\x04\x04\x02\ - \x01\x05\x12\x04\xa0\x01\x02\x07\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\ - \xa0\x01\x08\x15\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xa0\x01\x18\x19\n\ - ?\n\x04\x04\x04\x02\x02\x12\x04\xa3\x01\x02\x19\x1a1\x20The\x20type\x20o\ - f\x20configuration\x20file\x20this\x20represents.\n\n\r\n\x05\x04\x04\ - \x02\x02\x06\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\ - \xa3\x01\x0b\x14\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xa3\x01\x17\x18\n\ - H\n\x02\x04\x05\x12\x06\xa7\x01\0\xab\x01\x01\x1a:\x20Represents\x20a\ - \x20service\x20configuration\x20with\x20its\x20name\x20and\x20id.\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\xa7\x01\x08\x11\n\x85\x01\n\x04\x04\x05\ - \x02\0\x12\x04\xaa\x01\x02\x12\x1aw\x20Resource\x20name\x20of\x20a\x20se\ - rvice\x20config.\x20It\x20must\x20have\x20the\x20following\n\x20format:\ - \x20\"services/{service\x20name}/configs/{config\x20id}\".\n\n\r\n\x05\ - \x04\x05\x02\0\x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\ - \x12\x04\xaa\x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xaa\x01\x10\x11\ - \n\xb5\x01\n\x02\x04\x06\x12\x06\xb1\x01\0\xb8\x01\x01\x1a\xa6\x01\x20Ch\ - ange\x20report\x20associated\x20with\x20a\x20particular\x20service\x20co\ - nfiguration.\n\n\x20It\x20contains\x20a\x20list\x20of\x20ConfigChanges\ - \x20based\x20on\x20the\x20comparison\x20between\n\x20two\x20service\x20c\ - onfigurations.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xb1\x01\x08\x14\n\xae\ - \x02\n\x04\x04\x06\x02\0\x12\x04\xb7\x01\x026\x1a\x9f\x02\x20List\x20of\ - \x20changes\x20between\x20two\x20service\x20configurations.\n\x20The\x20\ - changes\x20will\x20be\x20alphabetically\x20sorted\x20based\x20on\x20the\ - \x20identifier\n\x20of\x20each\x20change.\n\x20A\x20ConfigChange\x20iden\ - tifier\x20is\x20a\x20dot\x20separated\x20path\x20to\x20the\x20configurat\ - ion.\n\x20Example:\x20visibility.rules[selector='LibraryService.CreateBo\ - ok'].restriction\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xb7\x01\x02\n\n\r\ - \n\x05\x04\x06\x02\0\x06\x12\x04\xb7\x01\x0b\"\n\r\n\x05\x04\x06\x02\0\ - \x01\x12\x04\xb7\x01#1\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xb7\x0145\n\ - \xeb\x01\n\x02\x04\x07\x12\x06\xbd\x01\0\xa6\x02\x01\x1a\xdc\x01\x20A\ - \x20rollout\x20resource\x20that\x20defines\x20how\x20service\x20configur\ - ation\x20versions\x20are\x20pushed\n\x20to\x20control\x20plane\x20system\ - s.\x20Typically,\x20you\x20create\x20a\x20new\x20version\x20of\x20the\n\ - \x20service\x20config,\x20and\x20then\x20create\x20a\x20Rollout\x20to\ - \x20push\x20the\x20service\x20config.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\ - \xbd\x01\x08\x0f\n\xbd\x06\n\x04\x04\x07\x03\0\x12\x06\xdc\x01\x02\xe1\ - \x01\x03\x1a\xac\x06\x20Strategy\x20that\x20specifies\x20how\x20clients\ - \x20of\x20Google\x20Service\x20Controller\x20want\x20to\n\x20send\x20tra\ - ffic\x20to\x20use\x20different\x20config\x20versions.\x20This\x20is\x20g\ - enerally\n\x20used\x20by\x20API\x20proxy\x20to\x20split\x20traffic\x20ba\ - sed\x20on\x20your\x20configured\x20percentage\x20for\n\x20each\x20config\ - \x20version.\n\n\x20One\x20example\x20of\x20how\x20to\x20gradually\x20ro\ - llout\x20a\x20new\x20service\x20configuration\x20using\n\x20this\n\x20st\ - rategy:\n\x20Day\x201\n\n\x20\x20\x20\x20\x20Rollout\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20id:\x20\"example.googleapis.com/rollout_20160206\"\n\x20\ - \x20\x20\x20\x20\x20\x20traffic_percent_strategy\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20percentages:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"example.googleapis.com/20160201\":\x2070.00\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"example.googleapis.com/20160206\":\x20\ - 30.00\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ - \x20}\n\x20\x20\x20\x20\x20}\n\n\x20Day\x202\n\n\x20\x20\x20\x20\x20Roll\ - out\x20{\n\x20\x20\x20\x20\x20\x20\x20id:\x20\"example.googleapis.com/ro\ - llout_20160207\"\n\x20\x20\x20\x20\x20\x20\x20traffic_percent_strategy:\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20percentages:\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\"example.googleapis.com/20160206\":\ - \x20100.00\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x07\x03\0\x01\x12\x04\ - \xdc\x01\n\x20\n\xe3\x01\n\x06\x04\x07\x03\0\x02\0\x12\x04\xe0\x01\x04(\ - \x1a\xd2\x01\x20Maps\x20service\x20configuration\x20IDs\x20to\x20their\ - \x20corresponding\x20traffic\x20percentage.\n\x20Key\x20is\x20the\x20ser\ - vice\x20configuration\x20ID,\x20Value\x20is\x20the\x20traffic\x20percent\ - age\n\x20which\x20must\x20be\x20greater\x20than\x200.0\x20and\x20the\x20\ - sum\x20must\x20equal\x20to\x20100.0.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\ - \x06\x12\x04\xe0\x01\x04\x17\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\ - \xe0\x01\x18#\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\x04\xe0\x01&'\n\ - \x92\x01\n\x04\x04\x07\x03\x01\x12\x04\xe5\x01\x02\"\x1a\x83\x01\x20Stra\ - tegy\x20used\x20to\x20delete\x20a\x20service.\x20This\x20strategy\x20is\ - \x20a\x20placeholder\x20only\n\x20used\x20by\x20the\x20system\x20generat\ - ed\x20rollout\x20to\x20delete\x20a\x20service.\n\n\r\n\x05\x04\x07\x03\ - \x01\x01\x12\x04\xe5\x01\n\x1f\n&\n\x04\x04\x07\x04\0\x12\x06\xe8\x01\ - \x02\xff\x01\x03\x1a\x16\x20Status\x20of\x20a\x20Rollout.\n\n\r\n\x05\ - \x04\x07\x04\0\x01\x12\x04\xe8\x01\x07\x14\n&\n\x06\x04\x07\x04\0\x02\0\ - \x12\x04\xea\x01\x04#\x1a\x16\x20No\x20status\x20specified.\n\n\x0f\n\ - \x07\x04\x07\x04\0\x02\0\x01\x12\x04\xea\x01\x04\x1e\n\x0f\n\x07\x04\x07\ - \x04\0\x02\0\x02\x12\x04\xea\x01!\"\n-\n\x06\x04\x07\x04\0\x02\x01\x12\ - \x04\xed\x01\x04\x14\x1a\x1d\x20The\x20Rollout\x20is\x20in\x20progress.\ - \n\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x01\x12\x04\xed\x01\x04\x0f\n\x0f\n\ - \x07\x04\x07\x04\0\x02\x01\x02\x12\x04\xed\x01\x12\x13\n9\n\x06\x04\x07\ - \x04\0\x02\x02\x12\x04\xf0\x01\x04\x10\x1a)\x20The\x20Rollout\x20has\x20\ - completed\x20successfully.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x01\x12\ - \x04\xf0\x01\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x02\x12\x04\xf0\ - \x01\x0e\x0f\n\x94\x01\n\x06\x04\x07\x04\0\x02\x03\x12\x04\xf4\x01\x04\ - \x12\x1a\x83\x01\x20The\x20Rollout\x20has\x20been\x20cancelled.\x20This\ - \x20can\x20happen\x20if\x20you\x20have\x20overlapping\n\x20Rollout\x20pu\ - shes,\x20and\x20the\x20previous\x20ones\x20will\x20be\x20cancelled.\n\n\ - \x0f\n\x07\x04\x07\x04\0\x02\x03\x01\x12\x04\xf4\x01\x04\r\n\x0f\n\x07\ - \x04\x07\x04\0\x02\x03\x02\x12\x04\xf4\x01\x10\x11\nQ\n\x06\x04\x07\x04\ - \0\x02\x04\x12\x04\xf7\x01\x04\x0f\x1aA\x20The\x20Rollout\x20has\x20fail\ - ed\x20and\x20the\x20rollback\x20attempt\x20has\x20failed\x20too.\n\n\x0f\ - \n\x07\x04\x07\x04\0\x02\x04\x01\x12\x04\xf7\x01\x04\n\n\x0f\n\x07\x04\ - \x07\x04\0\x02\x04\x02\x12\x04\xf7\x01\r\x0e\nO\n\x06\x04\x07\x04\0\x02\ - \x05\x12\x04\xfa\x01\x04\x10\x1a?\x20The\x20Rollout\x20has\x20not\x20sta\ - rted\x20yet\x20and\x20is\x20pending\x20for\x20execution.\n\n\x0f\n\x07\ - \x04\x07\x04\0\x02\x05\x01\x12\x04\xfa\x01\x04\x0b\n\x0f\n\x07\x04\x07\ - \x04\0\x02\x05\x02\x12\x04\xfa\x01\x0e\x0f\n]\n\x06\x04\x07\x04\0\x02\ - \x06\x12\x04\xfe\x01\x04\x1b\x1aM\x20The\x20Rollout\x20has\x20failed\x20\ - and\x20rolled\x20back\x20to\x20the\x20previous\x20successful\n\x20Rollou\ - t.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x06\x01\x12\x04\xfe\x01\x04\x16\n\x0f\ - \n\x07\x04\x07\x04\0\x02\x06\x02\x12\x04\xfe\x01\x19\x1a\n\xff\x03\n\x04\ - \x04\x07\x02\0\x12\x04\x8a\x02\x02A\x1a\xf0\x03\x20Optional.\x20Unique\ - \x20identifier\x20of\x20this\x20Rollout.\x20Must\x20be\x20no\x20longer\ - \x20than\x2063\n\x20characters\x20and\x20only\x20lower\x20case\x20letter\ - s,\x20digits,\x20'.',\x20'_'\x20and\x20'-'\x20are\n\x20allowed.\n\n\x20I\ - f\x20not\x20specified\x20by\x20client,\x20the\x20server\x20will\x20gener\ - ate\x20one.\x20The\x20generated\x20id\n\x20will\x20have\x20the\x20form\ - \x20of\x20,\x20where\x20\"date\"\x20is\x20the\ - \x20create\n\x20date\x20in\x20ISO\x208601\x20format.\x20\x20\"revision\ - \x20number\"\x20is\x20a\x20monotonically\x20increasing\n\x20positive\x20\ - number\x20that\x20is\x20reset\x20every\x20day\x20for\x20each\x20service.\ - \n\x20An\x20example\x20of\x20the\x20generated\x20rollout_id\x20is\x20'20\ - 16-02-16r1'\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x8a\x02\x02\x08\n\r\n\ - \x05\x04\x07\x02\0\x01\x12\x04\x8a\x02\t\x13\n\r\n\x05\x04\x07\x02\0\x03\ - \x12\x04\x8a\x02\x16\x17\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\x8a\x02\x18\ - @\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\x8a\x02\x19?\n7\n\x04\ - \x04\x07\x02\x01\x12\x04\x8d\x02\x02,\x1a)\x20Creation\x20time\x20of\x20\ - the\x20rollout.\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\x8d\ - \x02\x02\x1b\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x8d\x02\x1c'\n\r\n\ - \x05\x04\x07\x02\x01\x03\x12\x04\x8d\x02*+\n;\n\x04\x04\x07\x02\x02\x12\ - \x04\x90\x02\x02\x18\x1a-\x20The\x20user\x20who\x20created\x20the\x20Rol\ - lout.\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\x90\x02\x02\ - \x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\x90\x02\t\x13\n\r\n\x05\x04\ - \x07\x02\x02\x03\x12\x04\x90\x02\x16\x17\n\xa6\x01\n\x04\x04\x07\x02\x03\ - \x12\x04\x95\x02\x02\x1b\x1a\x97\x01\x20The\x20status\x20of\x20this\x20r\ - ollout.\x20Readonly.\x20In\x20case\x20of\x20a\x20failed\x20rollout,\n\ - \x20the\x20system\x20will\x20automatically\x20rollback\x20to\x20the\x20c\ - urrent\x20Rollout\n\x20version.\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x03\ - \x06\x12\x04\x95\x02\x02\x0f\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\x95\ - \x02\x10\x16\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\x95\x02\x19\x1a\n\x8b\ - \x01\n\x04\x04\x07\x08\0\x12\x06\x9a\x02\x02\xa2\x02\x03\x1a{\x20Strateg\ - y\x20that\x20defines\x20which\x20versions\x20of\x20service\x20configurat\ - ions\x20should\x20be\n\x20pushed\n\x20and\x20how\x20they\x20should\x20be\ - \x20used\x20at\x20runtime.\n\n\r\n\x05\x04\x07\x08\0\x01\x12\x04\x9a\x02\ - \x08\x10\nc\n\x04\x04\x07\x02\x04\x12\x04\x9d\x02\x048\x1aU\x20Google\ - \x20Service\x20Control\x20selects\x20service\x20configurations\x20based\ - \x20on\n\x20traffic\x20percentage.\n\n\r\n\x05\x04\x07\x02\x04\x06\x12\ - \x04\x9d\x02\x04\x1a\n\r\n\x05\x04\x07\x02\x04\x01\x12\x04\x9d\x02\x1b3\ - \n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\x9d\x0267\n_\n\x04\x04\x07\x02\ - \x05\x12\x04\xa1\x02\x048\x1aQ\x20The\x20strategy\x20associated\x20with\ - \x20a\x20rollout\x20to\x20delete\x20a\x20`ManagedService`.\n\x20Readonly\ - .\n\n\r\n\x05\x04\x07\x02\x05\x06\x12\x04\xa1\x02\x04\x19\n\r\n\x05\x04\ - \x07\x02\x05\x01\x12\x04\xa1\x02\x1a1\n\r\n\x05\x04\x07\x02\x05\x03\x12\ - \x04\xa1\x0247\nE\n\x04\x04\x07\x02\x06\x12\x04\xa5\x02\x02\x1a\x1a7\x20\ - The\x20name\x20of\x20the\x20service\x20associated\x20with\x20this\x20Rol\ - lout.\n\n\r\n\x05\x04\x07\x02\x06\x05\x12\x04\xa5\x02\x02\x08\n\r\n\x05\ - \x04\x07\x02\x06\x01\x12\x04\xa5\x02\t\x15\n\r\n\x05\x04\x07\x02\x06\x03\ - \x12\x04\xa5\x02\x18\x19b\x06proto3\ + \x01\x04\x12\x03~\x02\n\n\x0c\n\x05\x04\x03\x02\x01\x06\x12\x03~\x0b\x15\ + \n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03~\x16\x1b\n\x0c\n\x05\x04\x03\ + \x02\x01\x03\x12\x03~\x1e\x1f\nD\n\x02\x04\x04\x12\x06\x82\x01\0\xa9\x01\ + \x01\x1a6\x20Generic\x20specification\x20of\x20a\x20source\x20configurat\ + ion\x20file\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x82\x01\x08\x12\n\x0e\n\ + \x04\x04\x04\x04\0\x12\x06\x83\x01\x02\x9f\x01\x03\n\r\n\x05\x04\x04\x04\ + \0\x01\x12\x04\x83\x01\x07\x0f\n$\n\x06\x04\x04\x04\0\x02\0\x12\x04\x85\ + \x01\x04\x1e\x1a\x14\x20Unknown\x20file\x20type.\n\n\x0f\n\x07\x04\x04\ + \x04\0\x02\0\x01\x12\x04\x85\x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\x02\0\ + \x02\x12\x04\x85\x01\x1c\x1d\n0\n\x06\x04\x04\x04\0\x02\x01\x12\x04\x88\ + \x01\x04\x1c\x1a\x20\x20YAML-specification\x20of\x20service.\n\n\x0f\n\ + \x07\x04\x04\x04\0\x02\x01\x01\x12\x04\x88\x01\x04\x17\n\x0f\n\x07\x04\ + \x04\x04\0\x02\x01\x02\x12\x04\x88\x01\x1a\x1b\n<\n\x06\x04\x04\x04\0\ + \x02\x02\x12\x04\x8b\x01\x04\x16\x1a,\x20OpenAPI\x20specification,\x20se\ + rialized\x20in\x20JSON.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x01\x12\x04\ + \x8b\x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\x8b\x01\ + \x14\x15\n<\n\x06\x04\x04\x04\0\x02\x03\x12\x04\x8e\x01\x04\x16\x1a,\x20\ + OpenAPI\x20specification,\x20serialized\x20in\x20YAML.\n\n\x0f\n\x07\x04\ + \x04\x04\0\x02\x03\x01\x12\x04\x8e\x01\x04\x11\n\x0f\n\x07\x04\x04\x04\0\ + \x02\x03\x02\x12\x04\x8e\x01\x14\x15\n\xaa\x02\n\x06\x04\x04\x04\0\x02\ + \x04\x12\x04\x97\x01\x04\"\x1a\x99\x02\x20FileDescriptorSet,\x20generate\ + d\x20by\x20protoc.\n\n\x20To\x20generate,\x20use\x20protoc\x20with\x20im\ + ports\x20and\x20source\x20info\x20included.\n\x20For\x20an\x20example\ + \x20test.proto\x20file,\x20the\x20following\x20command\x20would\x20put\ + \x20the\x20value\n\x20in\x20a\x20new\x20file\x20named\x20out.pb.\n\n\x20\ + $protoc\x20--include_imports\x20--include_source_info\x20test.proto\x20-\ + o\x20out.pb\n\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x01\x12\x04\x97\x01\x04\ + \x1d\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\x97\x01\x20!\n\xd3\ + \x02\n\x06\x04\x04\x04\0\x02\x05\x12\x04\x9e\x01\x04\x13\x1a\xc2\x02\x20\ + Uncompiled\x20Proto\x20file.\x20Used\x20for\x20storage\x20and\x20display\ + \x20purposes\x20only,\n\x20currently\x20server-side\x20compilation\x20is\ + \x20not\x20supported.\x20Should\x20match\x20the\n\x20inputs\x20to\x20'pr\ + otoc'\x20command\x20used\x20to\x20generated\x20FILE_DESCRIPTOR_SET_PROTO\ + .\x20A\n\x20file\x20of\x20this\x20type\x20can\x20only\x20be\x20included\ + \x20if\x20at\x20least\x20one\x20file\x20of\x20type\n\x20FILE_DESCRIPTOR_\ + SET_PROTO\x20is\x20included.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x05\x01\x12\ + \x04\x9e\x01\x04\x0e\n\x0f\n\x07\x04\x04\x04\0\x02\x05\x02\x12\x04\x9e\ + \x01\x11\x12\nP\n\x04\x04\x04\x02\0\x12\x04\xa2\x01\x02\x17\x1aB\x20The\ + \x20file\x20name\x20of\x20the\x20configuration\x20file\x20(full\x20or\ + \x20relative\x20path).\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xa2\x01\x02\ + \x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa2\x01\t\x12\n\r\n\x05\x04\x04\ + \x02\0\x03\x12\x04\xa2\x01\x15\x16\n3\n\x04\x04\x04\x02\x01\x12\x04\xa5\ + \x01\x02\x1a\x1a%\x20The\x20bytes\x20that\x20constitute\x20the\x20file.\ + \n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xa5\x01\x02\x07\n\r\n\x05\x04\ + \x04\x02\x01\x01\x12\x04\xa5\x01\x08\x15\n\r\n\x05\x04\x04\x02\x01\x03\ + \x12\x04\xa5\x01\x18\x19\n?\n\x04\x04\x04\x02\x02\x12\x04\xa8\x01\x02\ + \x19\x1a1\x20The\x20type\x20of\x20configuration\x20file\x20this\x20repre\ + sents.\n\n\r\n\x05\x04\x04\x02\x02\x06\x12\x04\xa8\x01\x02\n\n\r\n\x05\ + \x04\x04\x02\x02\x01\x12\x04\xa8\x01\x0b\x14\n\r\n\x05\x04\x04\x02\x02\ + \x03\x12\x04\xa8\x01\x17\x18\nH\n\x02\x04\x05\x12\x06\xac\x01\0\xb0\x01\ + \x01\x1a:\x20Represents\x20a\x20service\x20configuration\x20with\x20its\ + \x20name\x20and\x20id.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xac\x01\x08\x11\ + \n\x85\x01\n\x04\x04\x05\x02\0\x12\x04\xaf\x01\x02\x12\x1aw\x20Resource\ + \x20name\x20of\x20a\x20service\x20config.\x20It\x20must\x20have\x20the\ + \x20following\n\x20format:\x20\"services/{service\x20name}/configs/{conf\ + ig\x20id}\".\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xaf\x01\x02\x08\n\r\n\ + \x05\x04\x05\x02\0\x01\x12\x04\xaf\x01\t\r\n\r\n\x05\x04\x05\x02\0\x03\ + \x12\x04\xaf\x01\x10\x11\n\xb5\x01\n\x02\x04\x06\x12\x06\xb6\x01\0\xbd\ + \x01\x01\x1a\xa6\x01\x20Change\x20report\x20associated\x20with\x20a\x20p\ + articular\x20service\x20configuration.\n\n\x20It\x20contains\x20a\x20lis\ + t\x20of\x20ConfigChanges\x20based\x20on\x20the\x20comparison\x20between\ + \n\x20two\x20service\x20configurations.\n\n\x0b\n\x03\x04\x06\x01\x12\ + \x04\xb6\x01\x08\x14\n\xae\x02\n\x04\x04\x06\x02\0\x12\x04\xbc\x01\x026\ + \x1a\x9f\x02\x20List\x20of\x20changes\x20between\x20two\x20service\x20co\ + nfigurations.\n\x20The\x20changes\x20will\x20be\x20alphabetically\x20sor\ + ted\x20based\x20on\x20the\x20identifier\n\x20of\x20each\x20change.\n\x20\ + A\x20ConfigChange\x20identifier\x20is\x20a\x20dot\x20separated\x20path\ + \x20to\x20the\x20configuration.\n\x20Example:\x20visibility.rules[select\ + or='LibraryService.CreateBook'].restriction\n\n\r\n\x05\x04\x06\x02\0\ + \x04\x12\x04\xbc\x01\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xbc\x01\ + \x0b\"\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xbc\x01#1\n\r\n\x05\x04\x06\ + \x02\0\x03\x12\x04\xbc\x0145\n\xeb\x01\n\x02\x04\x07\x12\x06\xc2\x01\0\ + \xaa\x02\x01\x1a\xdc\x01\x20A\x20rollout\x20resource\x20that\x20defines\ + \x20how\x20service\x20configuration\x20versions\x20are\x20pushed\n\x20to\ + \x20control\x20plane\x20systems.\x20Typically,\x20you\x20create\x20a\x20\ + new\x20version\x20of\x20the\n\x20service\x20config,\x20and\x20then\x20cr\ + eate\x20a\x20Rollout\x20to\x20push\x20the\x20service\x20config.\n\n\x0b\ + \n\x03\x04\x07\x01\x12\x04\xc2\x01\x08\x0f\n\xbd\x06\n\x04\x04\x07\x03\0\ + \x12\x06\xe1\x01\x02\xe6\x01\x03\x1a\xac\x06\x20Strategy\x20that\x20spec\ + ifies\x20how\x20clients\x20of\x20Google\x20Service\x20Controller\x20want\ + \x20to\n\x20send\x20traffic\x20to\x20use\x20different\x20config\x20versi\ + ons.\x20This\x20is\x20generally\n\x20used\x20by\x20API\x20proxy\x20to\ + \x20split\x20traffic\x20based\x20on\x20your\x20configured\x20precentage\ + \x20for\n\x20each\x20config\x20version.\n\n\x20One\x20example\x20of\x20h\ + ow\x20to\x20gradually\x20rollout\x20a\x20new\x20service\x20configuration\ + \x20using\n\x20this\n\x20strategy:\n\x20Day\x201\n\n\x20\x20\x20\x20\x20\ + Rollout\x20{\n\x20\x20\x20\x20\x20\x20\x20id:\x20\"example.googleapis.co\ + m/rollout_20160206\"\n\x20\x20\x20\x20\x20\x20\x20traffic_percent_strate\ + gy\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20percentages:\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\"example.googleapis.com/20160201\":\ + \x2070.00\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"example.googlea\ + pis.com/20160206\":\x2030.00\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20Day\x202\n\n\ + \x20\x20\x20\x20\x20Rollout\x20{\n\x20\x20\x20\x20\x20\x20\x20id:\x20\"e\ + xample.googleapis.com/rollout_20160207\"\n\x20\x20\x20\x20\x20\x20\x20tr\ + affic_percent_strategy:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20percen\ + tages:\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"example.googl\ + eapis.com/20160206\":\x20100.00\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x07\ + \x03\0\x01\x12\x04\xe1\x01\n\x20\n\xe3\x01\n\x06\x04\x07\x03\0\x02\0\x12\ + \x04\xe5\x01\x04(\x1a\xd2\x01\x20Maps\x20service\x20configuration\x20IDs\ + \x20to\x20their\x20corresponding\x20traffic\x20percentage.\n\x20Key\x20i\ + s\x20the\x20service\x20configuration\x20ID,\x20Value\x20is\x20the\x20tra\ + ffic\x20percentage\n\x20which\x20must\x20be\x20greater\x20than\x200.0\ + \x20and\x20the\x20sum\x20must\x20equal\x20to\x20100.0.\n\n\x0f\n\x07\x04\ + \x07\x03\0\x02\0\x06\x12\x04\xe5\x01\x04\x17\n\x0f\n\x07\x04\x07\x03\0\ + \x02\0\x01\x12\x04\xe5\x01\x18#\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\ + \x04\xe5\x01&'\n\x92\x01\n\x04\x04\x07\x03\x01\x12\x04\xea\x01\x02\"\x1a\ + \x83\x01\x20Strategy\x20used\x20to\x20delete\x20a\x20service.\x20This\ + \x20strategy\x20is\x20a\x20placeholder\x20only\n\x20used\x20by\x20the\ + \x20system\x20generated\x20rollout\x20to\x20delete\x20a\x20service.\n\n\ + \r\n\x05\x04\x07\x03\x01\x01\x12\x04\xea\x01\n\x1f\n&\n\x04\x04\x07\x04\ + \0\x12\x06\xed\x01\x02\x84\x02\x03\x1a\x16\x20Status\x20of\x20a\x20Rollo\ + ut.\n\n\r\n\x05\x04\x07\x04\0\x01\x12\x04\xed\x01\x07\x14\n&\n\x06\x04\ + \x07\x04\0\x02\0\x12\x04\xef\x01\x04#\x1a\x16\x20No\x20status\x20specifi\ + ed.\n\n\x0f\n\x07\x04\x07\x04\0\x02\0\x01\x12\x04\xef\x01\x04\x1e\n\x0f\ + \n\x07\x04\x07\x04\0\x02\0\x02\x12\x04\xef\x01!\"\n-\n\x06\x04\x07\x04\0\ + \x02\x01\x12\x04\xf2\x01\x04\x14\x1a\x1d\x20The\x20Rollout\x20is\x20in\ + \x20progress.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x01\x12\x04\xf2\x01\ + \x04\x0f\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x02\x12\x04\xf2\x01\x12\x13\n\ + 9\n\x06\x04\x07\x04\0\x02\x02\x12\x04\xf5\x01\x04\x10\x1a)\x20The\x20Rol\ + lout\x20has\x20completed\x20successfully.\n\n\x0f\n\x07\x04\x07\x04\0\ + \x02\x02\x01\x12\x04\xf5\x01\x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\x02\ + \x02\x12\x04\xf5\x01\x0e\x0f\n\x94\x01\n\x06\x04\x07\x04\0\x02\x03\x12\ + \x04\xf9\x01\x04\x12\x1a\x83\x01\x20The\x20Rollout\x20has\x20been\x20can\ + celled.\x20This\x20can\x20happen\x20if\x20you\x20have\x20overlapping\n\ + \x20Rollout\x20pushes,\x20and\x20the\x20previous\x20ones\x20will\x20be\ + \x20cancelled.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x03\x01\x12\x04\xf9\x01\ + \x04\r\n\x0f\n\x07\x04\x07\x04\0\x02\x03\x02\x12\x04\xf9\x01\x10\x11\nQ\ + \n\x06\x04\x07\x04\0\x02\x04\x12\x04\xfc\x01\x04\x0f\x1aA\x20The\x20Roll\ + out\x20has\x20failed\x20and\x20the\x20rollback\x20attempt\x20has\x20fail\ + ed\x20too.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x04\x01\x12\x04\xfc\x01\x04\n\ + \n\x0f\n\x07\x04\x07\x04\0\x02\x04\x02\x12\x04\xfc\x01\r\x0e\nO\n\x06\ + \x04\x07\x04\0\x02\x05\x12\x04\xff\x01\x04\x10\x1a?\x20The\x20Rollout\ + \x20has\x20not\x20started\x20yet\x20and\x20is\x20pending\x20for\x20execu\ + tion.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x05\x01\x12\x04\xff\x01\x04\x0b\n\ + \x0f\n\x07\x04\x07\x04\0\x02\x05\x02\x12\x04\xff\x01\x0e\x0f\n]\n\x06\ + \x04\x07\x04\0\x02\x06\x12\x04\x83\x02\x04\x1b\x1aM\x20The\x20Rollout\ + \x20has\x20failed\x20and\x20rolled\x20back\x20to\x20the\x20previous\x20s\ + uccessful\n\x20Rollout.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x06\x01\x12\x04\ + \x83\x02\x04\x16\n\x0f\n\x07\x04\x07\x04\0\x02\x06\x02\x12\x04\x83\x02\ + \x19\x1a\n\xcb\x03\n\x04\x04\x07\x02\0\x12\x04\x8e\x02\x02\x18\x1a\xbc\ + \x03\x20Optional\x20unique\x20identifier\x20of\x20this\x20Rollout.\x20On\ + ly\x20lower\x20case\x20letters,\x20digits\n\x20\x20and\x20'-'\x20are\x20\ + allowed.\n\n\x20If\x20not\x20specified\x20by\x20client,\x20the\x20server\ + \x20will\x20generate\x20one.\x20The\x20generated\x20id\n\x20will\x20have\ + \x20the\x20form\x20of\x20,\x20where\x20\"date\ + \"\x20is\x20the\x20create\n\x20date\x20in\x20ISO\x208601\x20format.\x20\ + \x20\"revision\x20number\"\x20is\x20a\x20monotonically\x20increasing\n\ + \x20positive\x20number\x20that\x20is\x20reset\x20every\x20day\x20for\x20\ + each\x20service.\n\x20An\x20example\x20of\x20the\x20generated\x20rollout\ + _id\x20is\x20'2016-02-16r1'\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x8e\ + \x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x8e\x02\t\x13\n\r\n\x05\ + \x04\x07\x02\0\x03\x12\x04\x8e\x02\x16\x17\n7\n\x04\x04\x07\x02\x01\x12\ + \x04\x91\x02\x02,\x1a)\x20Creation\x20time\x20of\x20the\x20rollout.\x20R\ + eadonly.\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\x91\x02\x02\x1b\n\r\n\ + \x05\x04\x07\x02\x01\x01\x12\x04\x91\x02\x1c'\n\r\n\x05\x04\x07\x02\x01\ + \x03\x12\x04\x91\x02*+\n;\n\x04\x04\x07\x02\x02\x12\x04\x94\x02\x02\x18\ + \x1a-\x20The\x20user\x20who\x20created\x20the\x20Rollout.\x20Readonly.\n\ + \n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\x94\x02\x02\x08\n\r\n\x05\x04\x07\ + \x02\x02\x01\x12\x04\x94\x02\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\ + \x94\x02\x16\x17\n\xa6\x01\n\x04\x04\x07\x02\x03\x12\x04\x99\x02\x02\x1b\ + \x1a\x97\x01\x20The\x20status\x20of\x20this\x20rollout.\x20Readonly.\x20\ + In\x20case\x20of\x20a\x20failed\x20rollout,\n\x20the\x20system\x20will\ + \x20automatically\x20rollback\x20to\x20the\x20current\x20Rollout\n\x20ve\ + rsion.\x20Readonly.\n\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\x99\x02\x02\ + \x0f\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\x99\x02\x10\x16\n\r\n\x05\x04\ + \x07\x02\x03\x03\x12\x04\x99\x02\x19\x1a\n\x8b\x01\n\x04\x04\x07\x08\0\ + \x12\x06\x9e\x02\x02\xa6\x02\x03\x1a{\x20Strategy\x20that\x20defines\x20\ + which\x20versions\x20of\x20service\x20configurations\x20should\x20be\n\ + \x20pushed\n\x20and\x20how\x20they\x20should\x20be\x20used\x20at\x20runt\ + ime.\n\n\r\n\x05\x04\x07\x08\0\x01\x12\x04\x9e\x02\x08\x10\nc\n\x04\x04\ + \x07\x02\x04\x12\x04\xa1\x02\x048\x1aU\x20Google\x20Service\x20Control\ + \x20selects\x20service\x20configurations\x20based\x20on\n\x20traffic\x20\ + percentage.\n\n\r\n\x05\x04\x07\x02\x04\x06\x12\x04\xa1\x02\x04\x1a\n\r\ + \n\x05\x04\x07\x02\x04\x01\x12\x04\xa1\x02\x1b3\n\r\n\x05\x04\x07\x02\ + \x04\x03\x12\x04\xa1\x0267\n_\n\x04\x04\x07\x02\x05\x12\x04\xa5\x02\x048\ + \x1aQ\x20The\x20strategy\x20associated\x20with\x20a\x20rollout\x20to\x20\ + delete\x20a\x20`ManagedService`.\n\x20Readonly.\n\n\r\n\x05\x04\x07\x02\ + \x05\x06\x12\x04\xa5\x02\x04\x19\n\r\n\x05\x04\x07\x02\x05\x01\x12\x04\ + \xa5\x02\x1a1\n\r\n\x05\x04\x07\x02\x05\x03\x12\x04\xa5\x0247\nE\n\x04\ + \x04\x07\x02\x06\x12\x04\xa9\x02\x02\x1a\x1a7\x20The\x20name\x20of\x20th\ + e\x20service\x20associated\x20with\x20this\x20Rollout.\n\n\r\n\x05\x04\ + \x07\x02\x06\x05\x12\x04\xa9\x02\x02\x08\n\r\n\x05\x04\x07\x02\x06\x01\ + \x12\x04\xa9\x02\t\x15\n\r\n\x05\x04\x07\x02\x06\x03\x12\x04\xa9\x02\x18\ + \x19b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(10); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::config_change::file_descriptor().clone()); + deps.push(super::metric::file_descriptor().clone()); + deps.push(super::service::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(11); + messages.push(ManagedService::generated_message_descriptor_data()); + messages.push(OperationMetadata::generated_message_descriptor_data()); + messages.push(Diagnostic::generated_message_descriptor_data()); + messages.push(ConfigSource::generated_message_descriptor_data()); + messages.push(ConfigFile::generated_message_descriptor_data()); + messages.push(ConfigRef::generated_message_descriptor_data()); + messages.push(ChangeReport::generated_message_descriptor_data()); + messages.push(Rollout::generated_message_descriptor_data()); + messages.push(operation_metadata::Step::generated_message_descriptor_data()); + messages.push(rollout::TrafficPercentStrategy::generated_message_descriptor_data()); + messages.push(rollout::DeleteServiceStrategy::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(4); + enums.push(operation_metadata::Status::generated_enum_descriptor_data()); + enums.push(diagnostic::Kind::generated_enum_descriptor_data()); + enums.push(config_file::FileType::generated_enum_descriptor_data()); + enums.push(rollout::RolloutStatus::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs b/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs index 995e59a..421d14d 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,40 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/servicemanagement/v1/servicemanager.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for `ListServices` method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServicesRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServicesRequest { // message fields + /// Include services produced by the specified project. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesRequest.producer_project_id) pub producer_project_id: ::std::string::String, + /// Requested size of the next page of data. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesRequest.page_size) pub page_size: i32, + /// Token identifying which result to start with; returned by a previous list + /// call. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesRequest.page_token) pub page_token: ::std::string::String, + /// Include services consumed by the specified consumer. + /// + /// The Google Service Management implementation accepts the following + /// forms: + /// - project: + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesRequest.consumer_id) pub consumer_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServicesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServicesRequest { @@ -46,127 +63,61 @@ impl ListServicesRequest { ::std::default::Default::default() } - // string producer_project_id = 1; - - - pub fn get_producer_project_id(&self) -> &str { - &self.producer_project_id - } - pub fn clear_producer_project_id(&mut self) { - self.producer_project_id.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_project_id(&mut self, v: ::std::string::String) { - self.producer_project_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_producer_project_id(&mut self) -> &mut ::std::string::String { - &mut self.producer_project_id - } - - // Take field - pub fn take_producer_project_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.producer_project_id, ::std::string::String::new()) - } - - // int32 page_size = 5; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 6; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string consumer_id = 7; - - - pub fn get_consumer_id(&self) -> &str { - &self.consumer_id - } - pub fn clear_consumer_id(&mut self) { - self.consumer_id.clear(); - } - - // Param is passed by value, moved - pub fn set_consumer_id(&mut self, v: ::std::string::String) { - self.consumer_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consumer_id(&mut self) -> &mut ::std::string::String { - &mut self.consumer_id - } - - // Take field - pub fn take_consumer_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.consumer_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "producer_project_id", + |m: &ListServicesRequest| { &m.producer_project_id }, + |m: &mut ListServicesRequest| { &mut m.producer_project_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListServicesRequest| { &m.page_size }, + |m: &mut ListServicesRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListServicesRequest| { &m.page_token }, + |m: &mut ListServicesRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consumer_id", + |m: &ListServicesRequest| { &m.consumer_id }, + |m: &mut ListServicesRequest| { &mut m.consumer_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServicesRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServicesRequest { + const NAME: &'static str = "ListServicesRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_project_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.producer_project_id = is.read_string()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 40 => { + self.page_size = is.read_int32()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 50 => { + self.page_token = is.read_string()?; }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consumer_id)?; + 58 => { + self.consumer_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -175,13 +126,13 @@ impl ::protobuf::Message for ListServicesRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.producer_project_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.producer_project_id); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(5, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(5, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.page_token); @@ -189,12 +140,12 @@ impl ::protobuf::Message for ListServicesRequest { if !self.consumer_id.is_empty() { my_size += ::protobuf::rt::string_size(7, &self.consumer_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.producer_project_id.is_empty() { os.write_string(1, &self.producer_project_id)?; } @@ -207,108 +158,73 @@ impl ::protobuf::Message for ListServicesRequest { if !self.consumer_id.is_empty() { os.write_string(7, &self.consumer_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServicesRequest { ListServicesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "producer_project_id", - |m: &ListServicesRequest| { &m.producer_project_id }, - |m: &mut ListServicesRequest| { &mut m.producer_project_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListServicesRequest| { &m.page_size }, - |m: &mut ListServicesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListServicesRequest| { &m.page_token }, - |m: &mut ListServicesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consumer_id", - |m: &ListServicesRequest| { &m.consumer_id }, - |m: &mut ListServicesRequest| { &mut m.consumer_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServicesRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.producer_project_id.clear(); + self.page_size = 0; + self.page_token.clear(); + self.consumer_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListServicesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicesRequest::new) + static instance: ListServicesRequest = ListServicesRequest { + producer_project_id: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + consumer_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServicesRequest { - fn clear(&mut self) { - self.producer_project_id.clear(); - self.page_size = 0; - self.page_token.clear(); - self.consumer_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServicesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServicesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServicesRequest { +impl ::std::fmt::Display for ListServicesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServicesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for `ListServices` method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServicesResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServicesResponse { // message fields - pub services: ::protobuf::RepeatedField, + /// The returned services will only have the name field set. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesResponse.services) + pub services: ::std::vec::Vec, + /// Token that can be passed to `ListServices` to resume a paginated query. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServicesResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServicesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServicesResponse { @@ -322,80 +238,45 @@ impl ListServicesResponse { ::std::default::Default::default() } - // repeated .google.api.servicemanagement.v1.ManagedService services = 1; - - - pub fn get_services(&self) -> &[super::resources::ManagedService] { - &self.services - } - pub fn clear_services(&mut self) { - self.services.clear(); - } - - // Param is passed by value, moved - pub fn set_services(&mut self, v: ::protobuf::RepeatedField) { - self.services = v; - } - - // Mutable pointer to the field. - pub fn mut_services(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.services - } - - // Take field - pub fn take_services(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.services, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "services", + |m: &ListServicesResponse| { &m.services }, + |m: &mut ListServicesResponse| { &mut m.services }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListServicesResponse| { &m.next_page_token }, + |m: &mut ListServicesResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServicesResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServicesResponse { + const NAME: &'static str = "ListServicesResponse"; + fn is_initialized(&self) -> bool { - for v in &self.services { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.services)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.services.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -404,118 +285,88 @@ impl ::protobuf::Message for ListServicesResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.services { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.services { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServicesResponse { ListServicesResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "services", - |m: &ListServicesResponse| { &m.services }, - |m: &mut ListServicesResponse| { &mut m.services }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListServicesResponse| { &m.next_page_token }, - |m: &mut ListServicesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServicesResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.services.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListServicesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicesResponse::new) + static instance: ListServicesResponse = ListServicesResponse { + services: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServicesResponse { - fn clear(&mut self) { - self.services.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServicesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServicesResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServicesResponse { +impl ::std::fmt::Display for ListServicesResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServicesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for `GetService` method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.GetServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetServiceRequest { // message fields + /// The name of the service. See the `ServiceManager` overview for naming + /// requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceRequest.service_name) pub service_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.GetServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetServiceRequest { @@ -529,47 +380,37 @@ impl GetServiceRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &GetServiceRequest| { &m.service_name }, + |m: &mut GetServiceRequest| { &mut m.service_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetServiceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetServiceRequest { + const NAME: &'static str = "GetServiceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -578,103 +419,78 @@ impl ::protobuf::Message for GetServiceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetServiceRequest { GetServiceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &GetServiceRequest| { &m.service_name }, - |m: &mut GetServiceRequest| { &mut m.service_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetServiceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceRequest::new) + static instance: GetServiceRequest = GetServiceRequest { + service_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetServiceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetServiceRequest { +impl ::std::fmt::Display for GetServiceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for CreateService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.CreateServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateServiceRequest { // message fields - pub service: ::protobuf::SingularPtrField, + /// Initial values for the service resource. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.CreateServiceRequest.service) + pub service: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.CreateServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateServiceRequest { @@ -688,59 +504,37 @@ impl CreateServiceRequest { ::std::default::Default::default() } - // .google.api.servicemanagement.v1.ManagedService service = 1; - - - pub fn get_service(&self) -> &super::resources::ManagedService { - self.service.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service(&mut self) { - self.service.clear(); - } - - pub fn has_service(&self) -> bool { - self.service.is_some() - } - - // Param is passed by value, moved - pub fn set_service(&mut self, v: super::resources::ManagedService) { - self.service = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service(&mut self) -> &mut super::resources::ManagedService { - if self.service.is_none() { - self.service.set_default(); - } - self.service.as_mut().unwrap() - } - - // Take field - pub fn take_service(&mut self) -> super::resources::ManagedService { - self.service.take().unwrap_or_else(|| super::resources::ManagedService::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::resources::ManagedService>( + "service", + |m: &CreateServiceRequest| { &m.service }, + |m: &mut CreateServiceRequest| { &mut m.service }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateServiceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateServiceRequest { + const NAME: &'static str = "CreateServiceRequest"; + fn is_initialized(&self) -> bool { - for v in &self.service { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.service)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -749,106 +543,80 @@ impl ::protobuf::Message for CreateServiceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.service.as_ref() { + if let Some(v) = self.service.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.service.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.service.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateServiceRequest { CreateServiceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service", - |m: &CreateServiceRequest| { &m.service }, - |m: &mut CreateServiceRequest| { &mut m.service }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateServiceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceRequest::new) + static instance: CreateServiceRequest = CreateServiceRequest { + service: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateServiceRequest { - fn clear(&mut self) { - self.service.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateServiceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateServiceRequest { +impl ::std::fmt::Display for CreateServiceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for DeleteService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.DeleteServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteServiceRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.DeleteServiceRequest.service_name) pub service_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.DeleteServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteServiceRequest { @@ -862,47 +630,37 @@ impl DeleteServiceRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &DeleteServiceRequest| { &m.service_name }, + |m: &mut DeleteServiceRequest| { &mut m.service_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteServiceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteServiceRequest { + const NAME: &'static str = "DeleteServiceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -911,103 +669,79 @@ impl ::protobuf::Message for DeleteServiceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteServiceRequest { DeleteServiceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &DeleteServiceRequest| { &m.service_name }, - |m: &mut DeleteServiceRequest| { &mut m.service_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteServiceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteServiceRequest::new) + static instance: DeleteServiceRequest = DeleteServiceRequest { + service_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteServiceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteServiceRequest { +impl ::std::fmt::Display for DeleteServiceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for UndeleteService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.UndeleteServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct UndeleteServiceRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.UndeleteServiceRequest.service_name) pub service_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.UndeleteServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a UndeleteServiceRequest { @@ -1021,47 +755,37 @@ impl UndeleteServiceRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &UndeleteServiceRequest| { &m.service_name }, + |m: &mut UndeleteServiceRequest| { &mut m.service_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UndeleteServiceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for UndeleteServiceRequest { + const NAME: &'static str = "UndeleteServiceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1070,103 +794,78 @@ impl ::protobuf::Message for UndeleteServiceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> UndeleteServiceRequest { UndeleteServiceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &UndeleteServiceRequest| { &m.service_name }, - |m: &mut UndeleteServiceRequest| { &mut m.service_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteServiceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static UndeleteServiceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteServiceRequest::new) + static instance: UndeleteServiceRequest = UndeleteServiceRequest { + service_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UndeleteServiceRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UndeleteServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UndeleteServiceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for UndeleteServiceRequest { +impl ::std::fmt::Display for UndeleteServiceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for UndeleteServiceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for UndeleteService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.UndeleteServiceResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct UndeleteServiceResponse { // message fields - pub service: ::protobuf::SingularPtrField, + /// Revived service resource. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.UndeleteServiceResponse.service) + pub service: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.UndeleteServiceResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a UndeleteServiceResponse { @@ -1180,59 +879,37 @@ impl UndeleteServiceResponse { ::std::default::Default::default() } - // .google.api.servicemanagement.v1.ManagedService service = 1; - - - pub fn get_service(&self) -> &super::resources::ManagedService { - self.service.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service(&mut self) { - self.service.clear(); - } - - pub fn has_service(&self) -> bool { - self.service.is_some() - } - - // Param is passed by value, moved - pub fn set_service(&mut self, v: super::resources::ManagedService) { - self.service = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service(&mut self) -> &mut super::resources::ManagedService { - if self.service.is_none() { - self.service.set_default(); - } - self.service.as_mut().unwrap() - } - - // Take field - pub fn take_service(&mut self) -> super::resources::ManagedService { - self.service.take().unwrap_or_else(|| super::resources::ManagedService::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::resources::ManagedService>( + "service", + |m: &UndeleteServiceResponse| { &m.service }, + |m: &mut UndeleteServiceResponse| { &mut m.service }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UndeleteServiceResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for UndeleteServiceResponse { + const NAME: &'static str = "UndeleteServiceResponse"; + fn is_initialized(&self) -> bool { - for v in &self.service { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.service)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1241,108 +918,87 @@ impl ::protobuf::Message for UndeleteServiceResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.service.as_ref() { + if let Some(v) = self.service.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.service.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.service.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> UndeleteServiceResponse { UndeleteServiceResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service", - |m: &UndeleteServiceResponse| { &m.service }, - |m: &mut UndeleteServiceResponse| { &mut m.service }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteServiceResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static UndeleteServiceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteServiceResponse::new) + static instance: UndeleteServiceResponse = UndeleteServiceResponse { + service: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UndeleteServiceResponse { - fn clear(&mut self) { - self.service.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UndeleteServiceResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UndeleteServiceResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for UndeleteServiceResponse { +impl ::std::fmt::Display for UndeleteServiceResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for UndeleteServiceResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for GetServiceConfig method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.GetServiceConfigRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetServiceConfigRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceConfigRequest.service_name) pub service_name: ::std::string::String, + /// The id of the service configuration resource. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceConfigRequest.config_id) pub config_id: ::std::string::String, - pub view: GetServiceConfigRequest_ConfigView, + /// Specifies which parts of the Service Config should be returned in the + /// response. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceConfigRequest.view) + pub view: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.GetServiceConfigRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetServiceConfigRequest { @@ -1356,94 +1012,53 @@ impl GetServiceConfigRequest { ::std::default::Default::default() } - // string service_name = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &GetServiceConfigRequest| { &m.service_name }, + |m: &mut GetServiceConfigRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "config_id", + |m: &GetServiceConfigRequest| { &m.config_id }, + |m: &mut GetServiceConfigRequest| { &mut m.config_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "view", + |m: &GetServiceConfigRequest| { &m.view }, + |m: &mut GetServiceConfigRequest| { &mut m.view }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetServiceConfigRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for GetServiceConfigRequest { + const NAME: &'static str = "GetServiceConfigRequest"; - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string config_id = 2; - - - pub fn get_config_id(&self) -> &str { - &self.config_id - } - pub fn clear_config_id(&mut self) { - self.config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_config_id(&mut self, v: ::std::string::String) { - self.config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_config_id(&mut self) -> &mut ::std::string::String { - &mut self.config_id - } - - // Take field - pub fn take_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.config_id, ::std::string::String::new()) - } - - // .google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView view = 3; - - - pub fn get_view(&self) -> GetServiceConfigRequest_ConfigView { - self.view - } - pub fn clear_view(&mut self) { - self.view = GetServiceConfigRequest_ConfigView::BASIC; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: GetServiceConfigRequest_ConfigView) { - self.view = v; - } -} - -impl ::protobuf::Message for GetServiceConfigRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.config_id)?; + 18 => { + self.config_id = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 3, &mut self.unknown_fields)? + 24 => { + self.view = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1452,7 +1067,7 @@ impl ::protobuf::Message for GetServiceConfigRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); @@ -1460,171 +1075,158 @@ impl ::protobuf::Message for GetServiceConfigRequest { if !self.config_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.config_id); } - if self.view != GetServiceConfigRequest_ConfigView::BASIC { - my_size += ::protobuf::rt::enum_size(3, self.view); + if self.view != ::protobuf::EnumOrUnknown::new(get_service_config_request::ConfigView::BASIC) { + my_size += ::protobuf::rt::int32_size(3, self.view.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } if !self.config_id.is_empty() { os.write_string(2, &self.config_id)?; } - if self.view != GetServiceConfigRequest_ConfigView::BASIC { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.view))?; + if self.view != ::protobuf::EnumOrUnknown::new(get_service_config_request::ConfigView::BASIC) { + os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.view))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetServiceConfigRequest { GetServiceConfigRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &GetServiceConfigRequest| { &m.service_name }, - |m: &mut GetServiceConfigRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "config_id", - |m: &GetServiceConfigRequest| { &m.config_id }, - |m: &mut GetServiceConfigRequest| { &mut m.config_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &GetServiceConfigRequest| { &m.view }, - |m: &mut GetServiceConfigRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetServiceConfigRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.config_id.clear(); + self.view = ::protobuf::EnumOrUnknown::new(get_service_config_request::ConfigView::BASIC); + self.special_fields.clear(); } fn default_instance() -> &'static GetServiceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceConfigRequest::new) + static instance: GetServiceConfigRequest = GetServiceConfigRequest { + service_name: ::std::string::String::new(), + config_id: ::std::string::String::new(), + view: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetServiceConfigRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.config_id.clear(); - self.view = GetServiceConfigRequest_ConfigView::BASIC; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetServiceConfigRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetServiceConfigRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetServiceConfigRequest { +impl ::std::fmt::Display for GetServiceConfigRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetServiceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum GetServiceConfigRequest_ConfigView { - BASIC = 0, - FULL = 1, + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for GetServiceConfigRequest_ConfigView { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `GetServiceConfigRequest` +pub mod get_service_config_request { + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView) + pub enum ConfigView { + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView.BASIC) + BASIC = 0, + // @@protoc_insertion_point(enum_value:google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView.FULL) + FULL = 1, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(GetServiceConfigRequest_ConfigView::BASIC), - 1 => ::std::option::Option::Some(GetServiceConfigRequest_ConfigView::FULL), - _ => ::std::option::Option::None + impl ::protobuf::Enum for ConfigView { + const NAME: &'static str = "ConfigView"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ConfigView::BASIC), + 1 => ::std::option::Option::Some(ConfigView::FULL), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "BASIC" => ::std::option::Option::Some(ConfigView::BASIC), + "FULL" => ::std::option::Option::Some(ConfigView::FULL), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [GetServiceConfigRequest_ConfigView] = &[ - GetServiceConfigRequest_ConfigView::BASIC, - GetServiceConfigRequest_ConfigView::FULL, + const VALUES: &'static [ConfigView] = &[ + ConfigView::BASIC, + ConfigView::FULL, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("GetServiceConfigRequest.ConfigView", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for ConfigView { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("GetServiceConfigRequest.ConfigView").unwrap()).clone() + } -impl ::std::marker::Copy for GetServiceConfigRequest_ConfigView { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for GetServiceConfigRequest_ConfigView { - fn default() -> Self { - GetServiceConfigRequest_ConfigView::BASIC + impl ::std::default::Default for ConfigView { + fn default() -> Self { + ConfigView::BASIC + } } -} -impl ::protobuf::reflect::ProtobufValue for GetServiceConfigRequest_ConfigView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ConfigView { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("GetServiceConfigRequest.ConfigView") + } } } -#[derive(PartialEq,Clone,Default)] +/// Request message for ListServiceConfigs method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServiceConfigsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServiceConfigsRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceConfigsRequest.service_name) pub service_name: ::std::string::String, + /// The token of the page to retrieve. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceConfigsRequest.page_token) pub page_token: ::std::string::String, + /// The max number of items to include in the response list. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceConfigsRequest.page_size) pub page_size: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServiceConfigsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServiceConfigsRequest { @@ -1638,98 +1240,53 @@ impl ListServiceConfigsRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string page_token = 2; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &ListServiceConfigsRequest| { &m.service_name }, + |m: &mut ListServiceConfigsRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListServiceConfigsRequest| { &m.page_token }, + |m: &mut ListServiceConfigsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListServiceConfigsRequest| { &m.page_size }, + |m: &mut ListServiceConfigsRequest| { &mut m.page_size }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServiceConfigsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServiceConfigsRequest { + const NAME: &'static str = "ListServiceConfigsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 18 => { + self.page_token = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 24 => { + self.page_size = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1738,7 +1295,7 @@ impl ::protobuf::Message for ListServiceConfigsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); @@ -1747,14 +1304,14 @@ impl ::protobuf::Message for ListServiceConfigsRequest { my_size += ::protobuf::rt::string_size(2, &self.page_token); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.page_size); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } @@ -1764,102 +1321,71 @@ impl ::protobuf::Message for ListServiceConfigsRequest { if self.page_size != 0 { os.write_int32(3, self.page_size)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServiceConfigsRequest { ListServiceConfigsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &ListServiceConfigsRequest| { &m.service_name }, - |m: &mut ListServiceConfigsRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListServiceConfigsRequest| { &m.page_token }, - |m: &mut ListServiceConfigsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListServiceConfigsRequest| { &m.page_size }, - |m: &mut ListServiceConfigsRequest| { &mut m.page_size }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServiceConfigsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.page_token.clear(); + self.page_size = 0; + self.special_fields.clear(); } fn default_instance() -> &'static ListServiceConfigsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceConfigsRequest::new) + static instance: ListServiceConfigsRequest = ListServiceConfigsRequest { + service_name: ::std::string::String::new(), + page_token: ::std::string::String::new(), + page_size: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServiceConfigsRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.page_token.clear(); - self.page_size = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServiceConfigsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServiceConfigsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServiceConfigsRequest { +impl ::std::fmt::Display for ListServiceConfigsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServiceConfigsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for ListServiceConfigs method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServiceConfigsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServiceConfigsResponse { // message fields - pub service_configs: ::protobuf::RepeatedField, + /// The list of service configuration resources. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceConfigsResponse.service_configs) + pub service_configs: ::std::vec::Vec, + /// The token of the next page of results. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceConfigsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServiceConfigsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServiceConfigsResponse { @@ -1873,80 +1399,45 @@ impl ListServiceConfigsResponse { ::std::default::Default::default() } - // repeated .google.api.Service service_configs = 1; - - - pub fn get_service_configs(&self) -> &[super::service::Service] { - &self.service_configs - } - pub fn clear_service_configs(&mut self) { - self.service_configs.clear(); - } - - // Param is passed by value, moved - pub fn set_service_configs(&mut self, v: ::protobuf::RepeatedField) { - self.service_configs = v; - } - - // Mutable pointer to the field. - pub fn mut_service_configs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_configs - } - - // Take field - pub fn take_service_configs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_configs, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "service_configs", + |m: &ListServiceConfigsResponse| { &m.service_configs }, + |m: &mut ListServiceConfigsResponse| { &mut m.service_configs }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListServiceConfigsResponse| { &m.next_page_token }, + |m: &mut ListServiceConfigsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServiceConfigsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServiceConfigsResponse { + const NAME: &'static str = "ListServiceConfigsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.service_configs { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_configs)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_configs.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1955,119 +1446,91 @@ impl ::protobuf::Message for ListServiceConfigsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.service_configs { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.service_configs { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServiceConfigsResponse { ListServiceConfigsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_configs", - |m: &ListServiceConfigsResponse| { &m.service_configs }, - |m: &mut ListServiceConfigsResponse| { &mut m.service_configs }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListServiceConfigsResponse| { &m.next_page_token }, - |m: &mut ListServiceConfigsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServiceConfigsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_configs.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListServiceConfigsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceConfigsResponse::new) + static instance: ListServiceConfigsResponse = ListServiceConfigsResponse { + service_configs: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServiceConfigsResponse { - fn clear(&mut self) { - self.service_configs.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServiceConfigsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServiceConfigsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServiceConfigsResponse { +impl ::std::fmt::Display for ListServiceConfigsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServiceConfigsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for CreateServiceConfig method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.CreateServiceConfigRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateServiceConfigRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.CreateServiceConfigRequest.service_name) pub service_name: ::std::string::String, - pub service_config: ::protobuf::SingularPtrField, + /// The service configuration resource. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.CreateServiceConfigRequest.service_config) + pub service_config: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.CreateServiceConfigRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateServiceConfigRequest { @@ -2081,88 +1544,45 @@ impl CreateServiceConfigRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // .google.api.Service service_config = 2; - - - pub fn get_service_config(&self) -> &super::service::Service { - self.service_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service_config(&mut self) { - self.service_config.clear(); - } - - pub fn has_service_config(&self) -> bool { - self.service_config.is_some() - } - - // Param is passed by value, moved - pub fn set_service_config(&mut self, v: super::service::Service) { - self.service_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config(&mut self) -> &mut super::service::Service { - if self.service_config.is_none() { - self.service_config.set_default(); - } - self.service_config.as_mut().unwrap() - } - - // Take field - pub fn take_service_config(&mut self) -> super::service::Service { - self.service_config.take().unwrap_or_else(|| super::service::Service::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &CreateServiceConfigRequest| { &m.service_name }, + |m: &mut CreateServiceConfigRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::service::Service>( + "service_config", + |m: &CreateServiceConfigRequest| { &m.service_config }, + |m: &mut CreateServiceConfigRequest| { &mut m.service_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateServiceConfigRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateServiceConfigRequest { + const NAME: &'static str = "CreateServiceConfigRequest"; + fn is_initialized(&self) -> bool { - for v in &self.service_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_config)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.service_config)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2171,120 +1591,96 @@ impl ::protobuf::Message for CreateServiceConfigRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - if let Some(ref v) = self.service_config.as_ref() { + if let Some(v) = self.service_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - if let Some(ref v) = self.service_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.service_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateServiceConfigRequest { CreateServiceConfigRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &CreateServiceConfigRequest| { &m.service_name }, - |m: &mut CreateServiceConfigRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_config", - |m: &CreateServiceConfigRequest| { &m.service_config }, - |m: &mut CreateServiceConfigRequest| { &mut m.service_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateServiceConfigRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.service_config.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateServiceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceConfigRequest::new) + static instance: CreateServiceConfigRequest = CreateServiceConfigRequest { + service_name: ::std::string::String::new(), + service_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateServiceConfigRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.service_config.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateServiceConfigRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateServiceConfigRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateServiceConfigRequest { +impl ::std::fmt::Display for CreateServiceConfigRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateServiceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for SubmitConfigSource method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.SubmitConfigSourceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SubmitConfigSourceRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.SubmitConfigSourceRequest.service_name) pub service_name: ::std::string::String, - pub config_source: ::protobuf::SingularPtrField, + /// The source configuration for the service. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.SubmitConfigSourceRequest.config_source) + pub config_source: ::protobuf::MessageField, + /// Optional. If set, this will result in the generation of a + /// `google.api.Service` configuration based on the `ConfigSource` provided, + /// but the generated config and the sources will NOT be persisted. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.SubmitConfigSourceRequest.validate_only) pub validate_only: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.SubmitConfigSourceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SubmitConfigSourceRequest { @@ -2298,110 +1694,53 @@ impl SubmitConfigSourceRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // .google.api.servicemanagement.v1.ConfigSource config_source = 2; - - - pub fn get_config_source(&self) -> &super::resources::ConfigSource { - self.config_source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_config_source(&mut self) { - self.config_source.clear(); - } - - pub fn has_config_source(&self) -> bool { - self.config_source.is_some() - } - - // Param is passed by value, moved - pub fn set_config_source(&mut self, v: super::resources::ConfigSource) { - self.config_source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_config_source(&mut self) -> &mut super::resources::ConfigSource { - if self.config_source.is_none() { - self.config_source.set_default(); - } - self.config_source.as_mut().unwrap() - } - - // Take field - pub fn take_config_source(&mut self) -> super::resources::ConfigSource { - self.config_source.take().unwrap_or_else(|| super::resources::ConfigSource::new()) - } - - // bool validate_only = 3; - - - pub fn get_validate_only(&self) -> bool { - self.validate_only - } - pub fn clear_validate_only(&mut self) { - self.validate_only = false; - } - - // Param is passed by value, moved - pub fn set_validate_only(&mut self, v: bool) { - self.validate_only = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &SubmitConfigSourceRequest| { &m.service_name }, + |m: &mut SubmitConfigSourceRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::resources::ConfigSource>( + "config_source", + |m: &SubmitConfigSourceRequest| { &m.config_source }, + |m: &mut SubmitConfigSourceRequest| { &mut m.config_source }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "validate_only", + |m: &SubmitConfigSourceRequest| { &m.validate_only }, + |m: &mut SubmitConfigSourceRequest| { &mut m.validate_only }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SubmitConfigSourceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for SubmitConfigSourceRequest { + const NAME: &'static str = "SubmitConfigSourceRequest"; + fn is_initialized(&self) -> bool { - for v in &self.config_source { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.config_source)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.config_source)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.validate_only = tmp; + 24 => { + self.validate_only = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2410,130 +1749,95 @@ impl ::protobuf::Message for SubmitConfigSourceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - if let Some(ref v) = self.config_source.as_ref() { + if let Some(v) = self.config_source.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.validate_only != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - if let Some(ref v) = self.config_source.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.config_source.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if self.validate_only != false { os.write_bool(3, self.validate_only)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SubmitConfigSourceRequest { SubmitConfigSourceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &SubmitConfigSourceRequest| { &m.service_name }, - |m: &mut SubmitConfigSourceRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_source", - |m: &SubmitConfigSourceRequest| { &m.config_source }, - |m: &mut SubmitConfigSourceRequest| { &mut m.config_source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "validate_only", - |m: &SubmitConfigSourceRequest| { &m.validate_only }, - |m: &mut SubmitConfigSourceRequest| { &mut m.validate_only }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SubmitConfigSourceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SubmitConfigSourceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SubmitConfigSourceRequest::new) - } -} - -impl ::protobuf::Clear for SubmitConfigSourceRequest { fn clear(&mut self) { self.service_name.clear(); self.config_source.clear(); self.validate_only = false; - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for SubmitConfigSourceRequest { + fn default_instance() -> &'static SubmitConfigSourceRequest { + static instance: SubmitConfigSourceRequest = SubmitConfigSourceRequest { + service_name: ::std::string::String::new(), + config_source: ::protobuf::MessageField::none(), + validate_only: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for SubmitConfigSourceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SubmitConfigSourceRequest").unwrap()).clone() + } +} + +impl ::std::fmt::Display for SubmitConfigSourceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SubmitConfigSourceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for SubmitConfigSource method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.SubmitConfigSourceResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SubmitConfigSourceResponse { // message fields - pub service_config: ::protobuf::SingularPtrField, + /// The generated service configuration. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.SubmitConfigSourceResponse.service_config) + pub service_config: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.SubmitConfigSourceResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SubmitConfigSourceResponse { @@ -2547,59 +1851,37 @@ impl SubmitConfigSourceResponse { ::std::default::Default::default() } - // .google.api.Service service_config = 1; - - - pub fn get_service_config(&self) -> &super::service::Service { - self.service_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service_config(&mut self) { - self.service_config.clear(); - } - - pub fn has_service_config(&self) -> bool { - self.service_config.is_some() - } - - // Param is passed by value, moved - pub fn set_service_config(&mut self, v: super::service::Service) { - self.service_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_config(&mut self) -> &mut super::service::Service { - if self.service_config.is_none() { - self.service_config.set_default(); - } - self.service_config.as_mut().unwrap() - } - - // Take field - pub fn take_service_config(&mut self) -> super::service::Service { - self.service_config.take().unwrap_or_else(|| super::service::Service::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::service::Service>( + "service_config", + |m: &SubmitConfigSourceResponse| { &m.service_config }, + |m: &mut SubmitConfigSourceResponse| { &mut m.service_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SubmitConfigSourceResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for SubmitConfigSourceResponse { + const NAME: &'static str = "SubmitConfigSourceResponse"; + fn is_initialized(&self) -> bool { - for v in &self.service_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_config)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.service_config)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2608,107 +1890,83 @@ impl ::protobuf::Message for SubmitConfigSourceResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.service_config.as_ref() { + if let Some(v) = self.service_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.service_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.service_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SubmitConfigSourceResponse { SubmitConfigSourceResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_config", - |m: &SubmitConfigSourceResponse| { &m.service_config }, - |m: &mut SubmitConfigSourceResponse| { &mut m.service_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SubmitConfigSourceResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_config.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SubmitConfigSourceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SubmitConfigSourceResponse::new) + static instance: SubmitConfigSourceResponse = SubmitConfigSourceResponse { + service_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SubmitConfigSourceResponse { - fn clear(&mut self) { - self.service_config.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SubmitConfigSourceResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SubmitConfigSourceResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for SubmitConfigSourceResponse { +impl ::std::fmt::Display for SubmitConfigSourceResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SubmitConfigSourceResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for 'CreateServiceRollout' +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.CreateServiceRolloutRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateServiceRolloutRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.CreateServiceRolloutRequest.service_name) pub service_name: ::std::string::String, - pub rollout: ::protobuf::SingularPtrField, + /// The rollout resource. The `service_name` field is output only. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.CreateServiceRolloutRequest.rollout) + pub rollout: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.CreateServiceRolloutRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateServiceRolloutRequest { @@ -2722,88 +1980,45 @@ impl CreateServiceRolloutRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // .google.api.servicemanagement.v1.Rollout rollout = 2; - - - pub fn get_rollout(&self) -> &super::resources::Rollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: super::resources::Rollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut super::resources::Rollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> super::resources::Rollout { - self.rollout.take().unwrap_or_else(|| super::resources::Rollout::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &CreateServiceRolloutRequest| { &m.service_name }, + |m: &mut CreateServiceRolloutRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::resources::Rollout>( + "rollout", + |m: &CreateServiceRolloutRequest| { &m.rollout }, + |m: &mut CreateServiceRolloutRequest| { &mut m.rollout }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateServiceRolloutRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateServiceRolloutRequest { + const NAME: &'static str = "CreateServiceRolloutRequest"; + fn is_initialized(&self) -> bool { - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.rollout)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2812,121 +2027,96 @@ impl ::protobuf::Message for CreateServiceRolloutRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); } - if let Some(ref v) = self.rollout.as_ref() { + if let Some(v) = self.rollout.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.rollout.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateServiceRolloutRequest { CreateServiceRolloutRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &CreateServiceRolloutRequest| { &m.service_name }, - |m: &mut CreateServiceRolloutRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &CreateServiceRolloutRequest| { &m.rollout }, - |m: &mut CreateServiceRolloutRequest| { &mut m.rollout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateServiceRolloutRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.rollout.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateServiceRolloutRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServiceRolloutRequest::new) + static instance: CreateServiceRolloutRequest = CreateServiceRolloutRequest { + service_name: ::std::string::String::new(), + rollout: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateServiceRolloutRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.rollout.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateServiceRolloutRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateServiceRolloutRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateServiceRolloutRequest { +impl ::std::fmt::Display for CreateServiceRolloutRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateServiceRolloutRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for 'ListServiceRollouts' +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServiceRolloutsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServiceRolloutsRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsRequest.service_name) pub service_name: ::std::string::String, + /// The token of the page to retrieve. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsRequest.page_token) pub page_token: ::std::string::String, + /// The max number of items to include in the response list. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsRequest.page_size) pub page_size: i32, + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsRequest.filter) pub filter: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServiceRolloutsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServiceRolloutsRequest { @@ -2940,127 +2130,61 @@ impl ListServiceRolloutsRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string page_token = 2; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &ListServiceRolloutsRequest| { &m.service_name }, + |m: &mut ListServiceRolloutsRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListServiceRolloutsRequest| { &m.page_token }, + |m: &mut ListServiceRolloutsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListServiceRolloutsRequest| { &m.page_size }, + |m: &mut ListServiceRolloutsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "filter", + |m: &ListServiceRolloutsRequest| { &m.filter }, + |m: &mut ListServiceRolloutsRequest| { &mut m.filter }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServiceRolloutsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServiceRolloutsRequest { + const NAME: &'static str = "ListServiceRolloutsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 18 => { + self.page_token = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 24 => { + self.page_size = is.read_int32()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; + 34 => { + self.filter = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3069,7 +2193,7 @@ impl ::protobuf::Message for ListServiceRolloutsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); @@ -3078,17 +2202,17 @@ impl ::protobuf::Message for ListServiceRolloutsRequest { my_size += ::protobuf::rt::string_size(2, &self.page_token); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.page_size); } if !self.filter.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.filter); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } @@ -3101,108 +2225,73 @@ impl ::protobuf::Message for ListServiceRolloutsRequest { if !self.filter.is_empty() { os.write_string(4, &self.filter)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServiceRolloutsRequest { ListServiceRolloutsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &ListServiceRolloutsRequest| { &m.service_name }, - |m: &mut ListServiceRolloutsRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListServiceRolloutsRequest| { &m.page_token }, - |m: &mut ListServiceRolloutsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListServiceRolloutsRequest| { &m.page_size }, - |m: &mut ListServiceRolloutsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListServiceRolloutsRequest| { &m.filter }, - |m: &mut ListServiceRolloutsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServiceRolloutsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.page_token.clear(); + self.page_size = 0; + self.filter.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListServiceRolloutsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceRolloutsRequest::new) + static instance: ListServiceRolloutsRequest = ListServiceRolloutsRequest { + service_name: ::std::string::String::new(), + page_token: ::std::string::String::new(), + page_size: 0, + filter: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServiceRolloutsRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.page_token.clear(); - self.page_size = 0; - self.filter.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServiceRolloutsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServiceRolloutsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServiceRolloutsRequest { +impl ::std::fmt::Display for ListServiceRolloutsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServiceRolloutsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for ListServiceRollouts method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServiceRolloutsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListServiceRolloutsResponse { // message fields - pub rollouts: ::protobuf::RepeatedField, + /// The list of rollout resources. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsResponse.rollouts) + pub rollouts: ::std::vec::Vec, + /// The token of the next page of results. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.ListServiceRolloutsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.ListServiceRolloutsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListServiceRolloutsResponse { @@ -3216,80 +2305,45 @@ impl ListServiceRolloutsResponse { ::std::default::Default::default() } - // repeated .google.api.servicemanagement.v1.Rollout rollouts = 1; - - - pub fn get_rollouts(&self) -> &[super::resources::Rollout] { - &self.rollouts - } - pub fn clear_rollouts(&mut self) { - self.rollouts.clear(); - } - - // Param is passed by value, moved - pub fn set_rollouts(&mut self, v: ::protobuf::RepeatedField) { - self.rollouts = v; - } - - // Mutable pointer to the field. - pub fn mut_rollouts(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rollouts - } - - // Take field - pub fn take_rollouts(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rollouts, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rollouts", + |m: &ListServiceRolloutsResponse| { &m.rollouts }, + |m: &mut ListServiceRolloutsResponse| { &mut m.rollouts }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListServiceRolloutsResponse| { &m.next_page_token }, + |m: &mut ListServiceRolloutsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListServiceRolloutsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListServiceRolloutsResponse { + const NAME: &'static str = "ListServiceRolloutsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.rollouts { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rollouts)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rollouts.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3298,119 +2352,91 @@ impl ::protobuf::Message for ListServiceRolloutsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rollouts { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rollouts { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListServiceRolloutsResponse { ListServiceRolloutsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollouts", - |m: &ListServiceRolloutsResponse| { &m.rollouts }, - |m: &mut ListServiceRolloutsResponse| { &mut m.rollouts }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListServiceRolloutsResponse| { &m.next_page_token }, - |m: &mut ListServiceRolloutsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServiceRolloutsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rollouts.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListServiceRolloutsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServiceRolloutsResponse::new) + static instance: ListServiceRolloutsResponse = ListServiceRolloutsResponse { + rollouts: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListServiceRolloutsResponse { - fn clear(&mut self) { - self.rollouts.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListServiceRolloutsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListServiceRolloutsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListServiceRolloutsResponse { +impl ::std::fmt::Display for ListServiceRolloutsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListServiceRolloutsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for GetServiceRollout method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.GetServiceRolloutRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetServiceRolloutRequest { // message fields + /// The name of the service. See the [overview](/service-management/overview) + /// for naming requirements. For example: `example.googleapis.com`. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceRolloutRequest.service_name) pub service_name: ::std::string::String, + /// The id of the rollout resource. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GetServiceRolloutRequest.rollout_id) pub rollout_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.GetServiceRolloutRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetServiceRolloutRequest { @@ -3424,76 +2450,45 @@ impl GetServiceRolloutRequest { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string rollout_id = 2; - - - pub fn get_rollout_id(&self) -> &str { - &self.rollout_id - } - pub fn clear_rollout_id(&mut self) { - self.rollout_id.clear(); - } - - // Param is passed by value, moved - pub fn set_rollout_id(&mut self, v: ::std::string::String) { - self.rollout_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_id(&mut self) -> &mut ::std::string::String { - &mut self.rollout_id - } - - // Take field - pub fn take_rollout_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.rollout_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &GetServiceRolloutRequest| { &m.service_name }, + |m: &mut GetServiceRolloutRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rollout_id", + |m: &GetServiceRolloutRequest| { &m.rollout_id }, + |m: &mut GetServiceRolloutRequest| { &mut m.rollout_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetServiceRolloutRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetServiceRolloutRequest { + const NAME: &'static str = "GetServiceRolloutRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.rollout_id)?; + 18 => { + self.rollout_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3502,7 +2497,7 @@ impl ::protobuf::Message for GetServiceRolloutRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); @@ -3510,130 +2505,142 @@ impl ::protobuf::Message for GetServiceRolloutRequest { if !self.rollout_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.rollout_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } if !self.rollout_id.is_empty() { os.write_string(2, &self.rollout_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetServiceRolloutRequest { GetServiceRolloutRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &GetServiceRolloutRequest| { &m.service_name }, - |m: &mut GetServiceRolloutRequest| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "rollout_id", - |m: &GetServiceRolloutRequest| { &m.rollout_id }, - |m: &mut GetServiceRolloutRequest| { &mut m.rollout_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetServiceRolloutRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.rollout_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetServiceRolloutRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServiceRolloutRequest::new) + static instance: GetServiceRolloutRequest = GetServiceRolloutRequest { + service_name: ::std::string::String::new(), + rollout_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetServiceRolloutRequest { - fn clear(&mut self) { - self.service_name.clear(); - self.rollout_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetServiceRolloutRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetServiceRolloutRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetServiceRolloutRequest { +impl ::std::fmt::Display for GetServiceRolloutRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetServiceRolloutRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct EnableServiceResponse { +/// Request message for EnableService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.EnableServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct EnableServiceRequest { + // message fields + /// Name of the service to enable. Specifying an unknown service name will + /// cause the request to fail. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.EnableServiceRequest.service_name) + pub service_name: ::std::string::String, + /// The identity of consumer resource which service enablement will be + /// applied to. + /// + /// The Google Service Management implementation accepts the following + /// forms: + /// - "project:" + /// + /// Note: this is made compatible with + /// google.api.servicecontrol.v1.Operation.consumer_id. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.EnableServiceRequest.consumer_id) + pub consumer_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.EnableServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a EnableServiceResponse { - fn default() -> &'a EnableServiceResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a EnableServiceRequest { + fn default() -> &'a EnableServiceRequest { + ::default_instance() } } -impl EnableServiceResponse { - pub fn new() -> EnableServiceResponse { +impl EnableServiceRequest { + pub fn new() -> EnableServiceRequest { ::std::default::Default::default() } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &EnableServiceRequest| { &m.service_name }, + |m: &mut EnableServiceRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consumer_id", + |m: &EnableServiceRequest| { &m.consumer_id }, + |m: &mut EnableServiceRequest| { &mut m.consumer_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "EnableServiceRequest", + fields, + oneofs, + ) + } } -impl ::protobuf::Message for EnableServiceResponse { +impl ::protobuf::Message for EnableServiceRequest { + const NAME: &'static str = "EnableServiceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; + }, + 18 => { + self.consumer_id = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3642,199 +2649,301 @@ impl ::protobuf::Message for EnableServiceResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if !self.consumer_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.consumer_id); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.service_name.is_empty() { + os.write_string(1, &self.service_name)?; + } + if !self.consumer_id.is_empty() { + os.write_string(2, &self.consumer_id)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> EnableServiceRequest { + EnableServiceRequest::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> EnableServiceResponse { - EnableServiceResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EnableServiceResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.consumer_id.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static EnableServiceResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EnableServiceResponse::new) + fn default_instance() -> &'static EnableServiceRequest { + static instance: EnableServiceRequest = EnableServiceRequest { + service_name: ::std::string::String::new(), + consumer_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for EnableServiceResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for EnableServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("EnableServiceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for EnableServiceResponse { +impl ::std::fmt::Display for EnableServiceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for EnableServiceResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for EnableServiceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct GenerateConfigReportRequest { +/// Request message for DisableService method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.DisableServiceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DisableServiceRequest { // message fields - pub new_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, - pub old_config: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, + /// Name of the service to disable. Specifying an unknown service name + /// will cause the request to fail. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.DisableServiceRequest.service_name) + pub service_name: ::std::string::String, + /// The identity of consumer resource which service disablement will be + /// applied to. + /// + /// The Google Service Management implementation accepts the following + /// forms: + /// - "project:" + /// + /// Note: this is made compatible with + /// google.api.servicecontrol.v1.Operation.consumer_id. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.DisableServiceRequest.consumer_id) + pub consumer_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.DisableServiceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a GenerateConfigReportRequest { - fn default() -> &'a GenerateConfigReportRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a DisableServiceRequest { + fn default() -> &'a DisableServiceRequest { + ::default_instance() } } -impl GenerateConfigReportRequest { - pub fn new() -> GenerateConfigReportRequest { +impl DisableServiceRequest { + pub fn new() -> DisableServiceRequest { ::std::default::Default::default() } - // .google.protobuf.Any new_config = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &DisableServiceRequest| { &m.service_name }, + |m: &mut DisableServiceRequest| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consumer_id", + |m: &DisableServiceRequest| { &m.consumer_id }, + |m: &mut DisableServiceRequest| { &mut m.consumer_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DisableServiceRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for DisableServiceRequest { + const NAME: &'static str = "DisableServiceRequest"; - pub fn get_new_config(&self) -> &::protobuf::well_known_types::Any { - self.new_config.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance()) - } - pub fn clear_new_config(&mut self) { - self.new_config.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_new_config(&self) -> bool { - self.new_config.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; + }, + 18 => { + self.consumer_id = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_new_config(&mut self, v: ::protobuf::well_known_types::Any) { - self.new_config = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.service_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_name); + } + if !self.consumer_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.consumer_id); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_new_config(&mut self) -> &mut ::protobuf::well_known_types::Any { - if self.new_config.is_none() { - self.new_config.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.service_name.is_empty() { + os.write_string(1, &self.service_name)?; + } + if !self.consumer_id.is_empty() { + os.write_string(2, &self.consumer_id)?; } - self.new_config.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_new_config(&mut self) -> ::protobuf::well_known_types::Any { - self.new_config.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.protobuf.Any old_config = 2; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + fn new() -> DisableServiceRequest { + DisableServiceRequest::new() + } - pub fn get_old_config(&self) -> &::protobuf::well_known_types::Any { - self.old_config.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance()) + fn clear(&mut self) { + self.service_name.clear(); + self.consumer_id.clear(); + self.special_fields.clear(); } - pub fn clear_old_config(&mut self) { - self.old_config.clear(); + + fn default_instance() -> &'static DisableServiceRequest { + static instance: DisableServiceRequest = DisableServiceRequest { + service_name: ::std::string::String::new(), + consumer_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - pub fn has_old_config(&self) -> bool { - self.old_config.is_some() +impl ::protobuf::MessageFull for DisableServiceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DisableServiceRequest").unwrap()).clone() } +} - // Param is passed by value, moved - pub fn set_old_config(&mut self, v: ::protobuf::well_known_types::Any) { - self.old_config = ::protobuf::SingularPtrField::some(v); +impl ::std::fmt::Display for DisableServiceRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_old_config(&mut self) -> &mut ::protobuf::well_known_types::Any { - if self.old_config.is_none() { - self.old_config.set_default(); - } - self.old_config.as_mut().unwrap() +impl ::protobuf::reflect::ProtobufValue for DisableServiceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for GenerateConfigReport method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.GenerateConfigReportRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GenerateConfigReportRequest { + // message fields + /// Service configuration for which we want to generate the report. + /// For this version of API, the supported types are + /// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], + /// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], + /// and [google.api.Service][google.api.Service] + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportRequest.new_config) + pub new_config: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>, + /// Service configuration against which the comparison will be done. + /// For this version of API, the supported types are + /// [google.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef], + /// [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagement.v1.ConfigSource], + /// and [google.api.Service][google.api.Service] + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportRequest.old_config) + pub old_config: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>, + // special fields + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.GenerateConfigReportRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a GenerateConfigReportRequest { + fn default() -> &'a GenerateConfigReportRequest { + ::default_instance() + } +} + +impl GenerateConfigReportRequest { + pub fn new() -> GenerateConfigReportRequest { + ::std::default::Default::default() } - // Take field - pub fn take_old_config(&mut self) -> ::protobuf::well_known_types::Any { - self.old_config.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>( + "new_config", + |m: &GenerateConfigReportRequest| { &m.new_config }, + |m: &mut GenerateConfigReportRequest| { &mut m.new_config }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>( + "old_config", + |m: &GenerateConfigReportRequest| { &m.old_config }, + |m: &mut GenerateConfigReportRequest| { &mut m.old_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GenerateConfigReportRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GenerateConfigReportRequest { + const NAME: &'static str = "GenerateConfigReportRequest"; + fn is_initialized(&self) -> bool { - for v in &self.new_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.old_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.new_config)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.new_config)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.old_config)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.old_config)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3843,124 +2952,100 @@ impl ::protobuf::Message for GenerateConfigReportRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.new_config.as_ref() { + if let Some(v) = self.new_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.old_config.as_ref() { + if let Some(v) = self.old_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.new_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.new_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.old_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.old_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GenerateConfigReportRequest { GenerateConfigReportRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "new_config", - |m: &GenerateConfigReportRequest| { &m.new_config }, - |m: &mut GenerateConfigReportRequest| { &mut m.new_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "old_config", - |m: &GenerateConfigReportRequest| { &m.old_config }, - |m: &mut GenerateConfigReportRequest| { &mut m.old_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateConfigReportRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.new_config.clear(); + self.old_config.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GenerateConfigReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConfigReportRequest::new) + static instance: GenerateConfigReportRequest = GenerateConfigReportRequest { + new_config: ::protobuf::MessageField::none(), + old_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GenerateConfigReportRequest { - fn clear(&mut self) { - self.new_config.clear(); - self.old_config.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GenerateConfigReportRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GenerateConfigReportRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GenerateConfigReportRequest { +impl ::std::fmt::Display for GenerateConfigReportRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GenerateConfigReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for GenerateConfigReport method. +// @@protoc_insertion_point(message:google.api.servicemanagement.v1.GenerateConfigReportResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GenerateConfigReportResponse { // message fields + /// Name of the service this report belongs to. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportResponse.service_name) pub service_name: ::std::string::String, + /// ID of the service configuration this report belongs to. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportResponse.id) pub id: ::std::string::String, - pub change_reports: ::protobuf::RepeatedField, - pub diagnostics: ::protobuf::RepeatedField, + /// list of ChangeReport, each corresponding to comparison between two + /// service configurations. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportResponse.change_reports) + pub change_reports: ::std::vec::Vec, + /// Errors / Linter warnings associated with the service definition this + /// report + /// belongs to. + // @@protoc_insertion_point(field:google.api.servicemanagement.v1.GenerateConfigReportResponse.diagnostics) + pub diagnostics: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.servicemanagement.v1.GenerateConfigReportResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GenerateConfigReportResponse { @@ -3974,142 +3059,61 @@ impl GenerateConfigReportResponse { ::std::default::Default::default() } - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // string id = 2; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // repeated .google.api.servicemanagement.v1.ChangeReport change_reports = 3; - - - pub fn get_change_reports(&self) -> &[super::resources::ChangeReport] { - &self.change_reports - } - pub fn clear_change_reports(&mut self) { - self.change_reports.clear(); - } - - // Param is passed by value, moved - pub fn set_change_reports(&mut self, v: ::protobuf::RepeatedField) { - self.change_reports = v; - } - - // Mutable pointer to the field. - pub fn mut_change_reports(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.change_reports - } - - // Take field - pub fn take_change_reports(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.change_reports, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.servicemanagement.v1.Diagnostic diagnostics = 4; - - - pub fn get_diagnostics(&self) -> &[super::resources::Diagnostic] { - &self.diagnostics - } - pub fn clear_diagnostics(&mut self) { - self.diagnostics.clear(); - } - - // Param is passed by value, moved - pub fn set_diagnostics(&mut self, v: ::protobuf::RepeatedField) { - self.diagnostics = v; - } - - // Mutable pointer to the field. - pub fn mut_diagnostics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.diagnostics - } - - // Take field - pub fn take_diagnostics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.diagnostics, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_name", + |m: &GenerateConfigReportResponse| { &m.service_name }, + |m: &mut GenerateConfigReportResponse| { &mut m.service_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &GenerateConfigReportResponse| { &m.id }, + |m: &mut GenerateConfigReportResponse| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "change_reports", + |m: &GenerateConfigReportResponse| { &m.change_reports }, + |m: &mut GenerateConfigReportResponse| { &mut m.change_reports }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "diagnostics", + |m: &GenerateConfigReportResponse| { &m.diagnostics }, + |m: &mut GenerateConfigReportResponse| { &mut m.diagnostics }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GenerateConfigReportResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for GenerateConfigReportResponse { + const NAME: &'static str = "GenerateConfigReportResponse"; + fn is_initialized(&self) -> bool { - for v in &self.change_reports { - if !v.is_initialized() { - return false; - } - }; - for v in &self.diagnostics { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; + 18 => { + self.id = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.change_reports)?; + 26 => { + self.change_reports.push(is.read_message()?); }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.diagnostics)?; + 34 => { + self.diagnostics.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4118,7 +3122,7 @@ impl ::protobuf::Message for GenerateConfigReportResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.service_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.service_name); @@ -4128,18 +3132,18 @@ impl ::protobuf::Message for GenerateConfigReportResponse { } for value in &self.change_reports { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.diagnostics { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.service_name.is_empty() { os.write_string(1, &self.service_name)?; } @@ -4147,233 +3151,175 @@ impl ::protobuf::Message for GenerateConfigReportResponse { os.write_string(2, &self.id)?; } for v in &self.change_reports { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; for v in &self.diagnostics { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GenerateConfigReportResponse { GenerateConfigReportResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &GenerateConfigReportResponse| { &m.service_name }, - |m: &mut GenerateConfigReportResponse| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &GenerateConfigReportResponse| { &m.id }, - |m: &mut GenerateConfigReportResponse| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "change_reports", - |m: &GenerateConfigReportResponse| { &m.change_reports }, - |m: &mut GenerateConfigReportResponse| { &mut m.change_reports }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "diagnostics", - |m: &GenerateConfigReportResponse| { &m.diagnostics }, - |m: &mut GenerateConfigReportResponse| { &mut m.diagnostics }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateConfigReportResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.service_name.clear(); + self.id.clear(); + self.change_reports.clear(); + self.diagnostics.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GenerateConfigReportResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConfigReportResponse::new) + static instance: GenerateConfigReportResponse = GenerateConfigReportResponse { + service_name: ::std::string::String::new(), + id: ::std::string::String::new(), + change_reports: ::std::vec::Vec::new(), + diagnostics: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GenerateConfigReportResponse { - fn clear(&mut self) { - self.service_name.clear(); - self.id.clear(); - self.change_reports.clear(); - self.diagnostics.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GenerateConfigReportResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GenerateConfigReportResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for GenerateConfigReportResponse { +impl ::std::fmt::Display for GenerateConfigReportResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GenerateConfigReportResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n4google/api/servicemanagement/v1/servicemanager.proto\x12\x1fgoogle.ap\ - i.servicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google\ - /api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/a\ - pi/service.proto\x1a/google/api/servicemanagement/v1/resources.proto\x1a\ - #google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\ - \x1a\x1bgoogle/protobuf/empty.proto\"\xa6\x01\n\x13ListServicesRequest\ + i.servicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x18google\ + /api/service.proto\x1a/google/api/servicemanagement/v1/resources.proto\ + \x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.prot\ + o\x1a\x20google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.\ + proto\x1a\x17google/rpc/status.proto\"\xa2\x01\n\x13ListServicesRequest\ \x12.\n\x13producer_project_id\x18\x01\x20\x01(\tR\x11producerProjectId\ \x12\x1b\n\tpage_size\x18\x05\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_\ - token\x18\x06\x20\x01(\tR\tpageToken\x12#\n\x0bconsumer_id\x18\x07\x20\ - \x01(\tR\nconsumerIdB\x02\x18\x01\"\x8b\x01\n\x14ListServicesResponse\ - \x12K\n\x08services\x18\x01\x20\x03(\x0b2/.google.api.servicemanagement.\ - v1.ManagedServiceR\x08services\x12&\n\x0fnext_page_token\x18\x02\x20\x01\ - (\tR\rnextPageToken\";\n\x11GetServiceRequest\x12&\n\x0cservice_name\x18\ - \x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\"f\n\x14CreateServiceReque\ - st\x12N\n\x07service\x18\x01\x20\x01(\x0b2/.google.api.servicemanagement\ - .v1.ManagedServiceR\x07serviceB\x03\xe0A\x02\">\n\x14DeleteServiceReques\ - t\x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\ - \x02\"@\n\x16UndeleteServiceRequest\x12&\n\x0cservice_name\x18\x01\x20\ - \x01(\tR\x0bserviceNameB\x03\xe0A\x02\"d\n\x17UndeleteServiceResponse\ + token\x18\x06\x20\x01(\tR\tpageToken\x12\x1f\n\x0bconsumer_id\x18\x07\ + \x20\x01(\tR\nconsumerId\"\x8b\x01\n\x14ListServicesResponse\x12K\n\x08s\ + ervices\x18\x01\x20\x03(\x0b2/.google.api.servicemanagement.v1.ManagedSe\ + rviceR\x08services\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPa\ + geToken\"6\n\x11GetServiceRequest\x12!\n\x0cservice_name\x18\x01\x20\x01\ + (\tR\x0bserviceName\"a\n\x14CreateServiceRequest\x12I\n\x07service\x18\ + \x01\x20\x01(\x0b2/.google.api.servicemanagement.v1.ManagedServiceR\x07s\ + ervice\"9\n\x14DeleteServiceRequest\x12!\n\x0cservice_name\x18\x01\x20\ + \x01(\tR\x0bserviceName\";\n\x16UndeleteServiceRequest\x12!\n\x0cservice\ + _name\x18\x01\x20\x01(\tR\x0bserviceName\"d\n\x17UndeleteServiceResponse\ \x12I\n\x07service\x18\x01\x20\x01(\x0b2/.google.api.servicemanagement.v\ - 1.ManagedServiceR\x07service\"\xdf\x01\n\x17GetServiceConfigRequest\x12&\ - \n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12\ - \x20\n\tconfig_id\x18\x02\x20\x01(\tR\x08configIdB\x03\xe0A\x02\x12W\n\ - \x04view\x18\x03\x20\x01(\x0e2C.google.api.servicemanagement.v1.GetServi\ - ceConfigRequest.ConfigViewR\x04view\"!\n\nConfigView\x12\t\n\x05BASIC\ - \x10\0\x12\x08\n\x04FULL\x10\x01\"\x7f\n\x19ListServiceConfigsRequest\ - \x12&\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\ - \x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToken\x12\x1b\n\tpage_si\ - ze\x18\x03\x20\x01(\x05R\x08pageSize\"\x82\x01\n\x1aListServiceConfigsRe\ - sponse\x12<\n\x0fservice_configs\x18\x01\x20\x03(\x0b2\x13.google.api.Se\ - rviceR\x0eserviceConfigs\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\r\ - nextPageToken\"\x85\x01\n\x1aCreateServiceConfigRequest\x12&\n\x0cservic\ - e_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12?\n\x0eservic\ - e_config\x18\x02\x20\x01(\x0b2\x13.google.api.ServiceR\rserviceConfigB\ - \x03\xe0A\x02\"\xc6\x01\n\x19SubmitConfigSourceRequest\x12&\n\x0cservice\ - _name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12W\n\rconfig_so\ - urce\x18\x02\x20\x01(\x0b2-.google.api.servicemanagement.v1.ConfigSource\ - R\x0cconfigSourceB\x03\xe0A\x02\x12(\n\rvalidate_only\x18\x03\x20\x01(\ - \x08R\x0cvalidateOnlyB\x03\xe0A\x01\"X\n\x1aSubmitConfigSourceResponse\ - \x12:\n\x0eservice_config\x18\x01\x20\x01(\x0b2\x13.google.api.ServiceR\ - \rserviceConfig\"\x8e\x01\n\x1bCreateServiceRolloutRequest\x12&\n\x0cser\ - vice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12G\n\x07rol\ + 1.ManagedServiceR\x07service\"\xd5\x01\n\x17GetServiceConfigRequest\x12!\ + \n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x1b\n\tconfig_\ + id\x18\x02\x20\x01(\tR\x08configId\x12W\n\x04view\x18\x03\x20\x01(\x0e2C\ + .google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigViewR\x04\ + view\"!\n\nConfigView\x12\t\n\x05BASIC\x10\0\x12\x08\n\x04FULL\x10\x01\"\ + z\n\x19ListServiceConfigsRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\ + \tR\x0bserviceName\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToken\ + \x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\"\x82\x01\n\x1aL\ + istServiceConfigsResponse\x12<\n\x0fservice_configs\x18\x01\x20\x03(\x0b\ + 2\x13.google.api.ServiceR\x0eserviceConfigs\x12&\n\x0fnext_page_token\ + \x18\x02\x20\x01(\tR\rnextPageToken\"{\n\x1aCreateServiceConfigRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12:\n\x0eser\ + vice_config\x18\x02\x20\x01(\x0b2\x13.google.api.ServiceR\rserviceConfig\ + \"\xb7\x01\n\x19SubmitConfigSourceRequest\x12!\n\x0cservice_name\x18\x01\ + \x20\x01(\tR\x0bserviceName\x12R\n\rconfig_source\x18\x02\x20\x01(\x0b2-\ + .google.api.servicemanagement.v1.ConfigSourceR\x0cconfigSource\x12#\n\rv\ + alidate_only\x18\x03\x20\x01(\x08R\x0cvalidateOnly\"X\n\x1aSubmitConfigS\ + ourceResponse\x12:\n\x0eservice_config\x18\x01\x20\x01(\x0b2\x13.google.\ + api.ServiceR\rserviceConfig\"\x84\x01\n\x1bCreateServiceRolloutRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12B\n\x07rol\ lout\x18\x02\x20\x01(\x0b2(.google.api.servicemanagement.v1.RolloutR\x07\ - rolloutB\x03\xe0A\x02\"\x9d\x01\n\x1aListServiceRolloutsRequest\x12&\n\ - \x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12\ - \x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToken\x12\x1b\n\tpage_size\ - \x18\x03\x20\x01(\x05R\x08pageSize\x12\x1b\n\x06filter\x18\x04\x20\x01(\ - \tR\x06filterB\x03\xe0A\x02\"\x8b\x01\n\x1bListServiceRolloutsResponse\ - \x12D\n\x08rollouts\x18\x01\x20\x03(\x0b2(.google.api.servicemanagement.\ - v1.RolloutR\x08rollouts\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rn\ - extPageToken\"f\n\x18GetServiceRolloutRequest\x12&\n\x0cservice_name\x18\ - \x01\x20\x01(\tR\x0bserviceNameB\x03\xe0A\x02\x12\"\n\nrollout_id\x18\ - \x02\x20\x01(\tR\trolloutIdB\x03\xe0A\x02\"\x17\n\x15EnableServiceRespon\ - se\"\x91\x01\n\x1bGenerateConfigReportRequest\x128\n\nnew_config\x18\x01\ - \x20\x01(\x0b2\x14.google.protobuf.AnyR\tnewConfigB\x03\xe0A\x02\x128\n\ - \nold_config\x18\x02\x20\x01(\x0b2\x14.google.protobuf.AnyR\toldConfigB\ - \x03\xe0A\x01\"\xf6\x01\n\x1cGenerateConfigReportResponse\x12!\n\x0cserv\ - ice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x0e\n\x02id\x18\x02\x20\ - \x01(\tR\x02id\x12T\n\x0echange_reports\x18\x03\x20\x03(\x0b2-.google.ap\ - i.servicemanagement.v1.ChangeReportR\rchangeReports\x12M\n\x0bdiagnostic\ - s\x18\x04\x20\x03(\x0b2+.google.api.servicemanagement.v1.DiagnosticR\x0b\ - diagnostics2\xc8\x19\n\x0eServiceManager\x12\xb3\x01\n\x0cListServices\ - \x124.google.api.servicemanagement.v1.ListServicesRequest\x1a5.google.ap\ - i.servicemanagement.v1.ListServicesResponse\"6\x82\xd3\xe4\x93\x02\x0e\ - \x12\x0c/v1/services\xdaA\x1fproducer_project_id,consumer_id\x12\xa5\x01\ - \n\nGetService\x122.google.api.servicemanagement.v1.GetServiceRequest\ - \x1a/.google.api.servicemanagement.v1.ManagedService\"2\x82\xd3\xe4\x93\ - \x02\x1d\x12\x1b/v1/services/{service_name}\xdaA\x0cservice_name\x12\xf5\ - \x01\n\rCreateService\x125.google.api.servicemanagement.v1.CreateService\ - Request\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xcaAc\n.google.ap\ - i.servicemanagement.v1.ManagedService\x121google.api.servicemanagement.v\ - 1.OperationMetadata\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07servic\ - e\xdaA\x07service\x12\xe6\x01\n\rDeleteService\x125.google.api.servicema\ - nagement.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\ - \x7f\xcaAJ\n\x15google.protobuf.Empty\x121google.api.servicemanagement.v\ - 1.OperationMetadata\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/services/{service_na\ - me}\xdaA\x0cservice_name\x12\x96\x02\n\x0fUndeleteService\x127.google.ap\ - i.servicemanagement.v1.UndeleteServiceRequest\x1a\x1d.google.longrunning\ - .Operation\"\xaa\x01\xcaAl\n7google.api.servicemanagement.v1.UndeleteSer\ - viceResponse\x121google.api.servicemanagement.v1.OperationMetadata\x82\ - \xd3\xe4\x93\x02&\"$/v1/services/{service_name}:undelete\xdaA\x0cservice\ - _name\x12\xc9\x01\n\x12ListServiceConfigs\x12:.google.api.servicemanagem\ - ent.v1.ListServiceConfigsRequest\x1a;.google.api.servicemanagement.v1.Li\ - stServiceConfigsResponse\":\x82\xd3\xe4\x93\x02%\x12#/v1/services/{servi\ - ce_name}/configs\xdaA\x0cservice_name\x12\xde\x01\n\x10GetServiceConfig\ - \x128.google.api.servicemanagement.v1.GetServiceConfigRequest\x1a\x13.go\ - ogle.api.Service\"{\x82\xd3\xe4\x93\x02W\x12//v1/services/{service_name}\ - /configs/{config_id}Z$\x12\"/v1/services/{service_name}/config\xdaA\x1bs\ - ervice_name,config_id,view\x12\xc2\x01\n\x13CreateServiceConfig\x12;.goo\ - gle.api.servicemanagement.v1.CreateServiceConfigRequest\x1a\x13.google.a\ - pi.Service\"Y\x82\xd3\xe4\x93\x025\"#/v1/services/{service_name}/configs\ - :\x0eservice_config\xdaA\x1bservice_name,service_config\x12\xc4\x02\n\ - \x12SubmitConfigSource\x12:.google.api.servicemanagement.v1.SubmitConfig\ - SourceRequest\x1a\x1d.google.longrunning.Operation\"\xd2\x01\xcaAo\n:goo\ - gle.api.servicemanagement.v1.SubmitConfigSourceResponse\x121google.api.s\ - ervicemanagement.v1.OperationMetadata\x82\xd3\xe4\x93\x02/\"*/v1/service\ - s/{service_name}/configs:submit:\x01*\xdaA(service_name,config_source,va\ - lidate_only\x12\xd4\x01\n\x13ListServiceRollouts\x12;.google.api.service\ - management.v1.ListServiceRolloutsRequest\x1a<.google.api.servicemanageme\ - nt.v1.ListServiceRolloutsResponse\"B\x82\xd3\xe4\x93\x02&\x12$/v1/servic\ - es/{service_name}/rollouts\xdaA\x13service_name,filter\x12\xcd\x01\n\x11\ - GetServiceRollout\x129.google.api.servicemanagement.v1.GetServiceRollout\ - Request\x1a(.google.api.servicemanagement.v1.Rollout\"S\x82\xd3\xe4\x93\ - \x023\x121/v1/services/{service_name}/rollouts/{rollout_id}\xdaA\x17serv\ - ice_name,rollout_id\x12\xa1\x02\n\x14CreateServiceRollout\x12<.google.ap\ - i.servicemanagement.v1.CreateServiceRolloutRequest\x1a\x1d.google.longru\ - nning.Operation\"\xab\x01\xcaA\\\n'google.api.servicemanagement.v1.Rollo\ - ut\x121google.api.servicemanagement.v1.OperationMetadata\x82\xd3\xe4\x93\ - \x02/\"$/v1/services/{service_name}/rollouts:\x07rollout\xdaA\x14service\ - _name,rollout\x12\xd9\x01\n\x14GenerateConfigReport\x12<.google.api.serv\ - icemanagement.v1.GenerateConfigReportRequest\x1a=.google.api.servicemana\ - gement.v1.GenerateConfigReportResponse\"D\x82\xd3\xe4\x93\x02&\"!/v1/ser\ - vices:generateConfigReport:\x01*\xdaA\x15new_config,old_config\x1a\xfd\ - \x01\xd2A\xd6\x01https://www.googleapis.com/auth/cloud-platform,https://\ - www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.\ - com/auth/service.management,https://www.googleapis.com/auth/service.mana\ - gement.readonly\xcaA\x20servicemanagement.googleapis.comB\x87\x02\n#com.\ - google.api.servicemanagement.v1B\x13ServiceManagerProtoP\x01ZScloud.goog\ - le.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementp\ - b\xa2\x02\x04GASM\xaa\x02!Google.Cloud.ServiceManagement.V1\xca\x02!Goog\ - le\\Cloud\\ServiceManagement\\V1\xea\x02$Google::Cloud::ServiceManagemen\ - t::V1J\x84\x84\x01\n\x07\x12\x05\x0e\0\xfb\x03\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\ + rollout\"\x93\x01\n\x1aListServiceRolloutsRequest\x12!\n\x0cservice_name\ + \x18\x01\x20\x01(\tR\x0bserviceName\x12\x1d\n\npage_token\x18\x02\x20\ + \x01(\tR\tpageToken\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSi\ + ze\x12\x16\n\x06filter\x18\x04\x20\x01(\tR\x06filter\"\x8b\x01\n\x1bList\ + ServiceRolloutsResponse\x12D\n\x08rollouts\x18\x01\x20\x03(\x0b2(.google\ + .api.servicemanagement.v1.RolloutR\x08rollouts\x12&\n\x0fnext_page_token\ + \x18\x02\x20\x01(\tR\rnextPageToken\"\\\n\x18GetServiceRolloutRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x1d\n\nro\ + llout_id\x18\x02\x20\x01(\tR\trolloutId\"Z\n\x14EnableServiceRequest\x12\ + !\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x1f\n\x0bcons\ + umer_id\x18\x02\x20\x01(\tR\nconsumerId\"[\n\x15DisableServiceRequest\ + \x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x1f\n\x0b\ + consumer_id\x18\x02\x20\x01(\tR\nconsumerId\"\x87\x01\n\x1bGenerateConfi\ + gReportRequest\x123\n\nnew_config\x18\x01\x20\x01(\x0b2\x14.google.proto\ + buf.AnyR\tnewConfig\x123\n\nold_config\x18\x02\x20\x01(\x0b2\x14.google.\ + protobuf.AnyR\toldConfig\"\xf6\x01\n\x1cGenerateConfigReportResponse\x12\ + !\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\x12\x0e\n\x02id\ + \x18\x02\x20\x01(\tR\x02id\x12T\n\x0echange_reports\x18\x03\x20\x03(\x0b\ + 2-.google.api.servicemanagement.v1.ChangeReportR\rchangeReports\x12M\n\ + \x0bdiagnostics\x18\x04\x20\x03(\x0b2+.google.api.servicemanagement.v1.D\ + iagnosticR\x0bdiagnostics2\xd4\x13\n\x0eServiceManager\x12\x91\x01\n\x0c\ + ListServices\x124.google.api.servicemanagement.v1.ListServicesRequest\ + \x1a5.google.api.servicemanagement.v1.ListServicesResponse\"\x14\x82\xd3\ + \xe4\x93\x02\x0e\x12\x0c/v1/services\x12\x96\x01\n\nGetService\x122.goog\ + le.api.servicemanagement.v1.GetServiceRequest\x1a/.google.api.serviceman\ + agement.v1.ManagedService\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/services\ + /{service_name}\x12\x84\x01\n\rCreateService\x125.google.api.servicemana\ + gement.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\ + \x1d\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07service\x12\x8a\x01\n\ + \rDeleteService\x125.google.api.servicemanagement.v1.DeleteServiceReques\ + t\x1a\x1d.google.longrunning.Operation\"#\x82\xd3\xe4\x93\x02\x1d*\x1b/v\ + 1/services/{service_name}\x12\x97\x01\n\x0fUndeleteService\x127.google.a\ + pi.servicemanagement.v1.UndeleteServiceRequest\x1a\x1d.google.longrunnin\ + g.Operation\",\x82\xd3\xe4\x93\x02&\"$/v1/services/{service_name}:undele\ + te\x12\xba\x01\n\x12ListServiceConfigs\x12:.google.api.servicemanagement\ + .v1.ListServiceConfigsRequest\x1a;.google.api.servicemanagement.v1.ListS\ + erviceConfigsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v1/services/{service_\ + name}/configs\x12\xc0\x01\n\x10GetServiceConfig\x128.google.api.servicem\ + anagement.v1.GetServiceConfigRequest\x1a\x13.google.api.Service\"]\x82\ + \xd3\xe4\x93\x02W\x12//v1/services/{service_name}/configs/{config_id}Z$\ + \x12\"/v1/services/{service_name}/config\x12\xa4\x01\n\x13CreateServiceC\ + onfig\x12;.google.api.servicemanagement.v1.CreateServiceConfigRequest\ + \x1a\x13.google.api.Service\";\x82\xd3\xe4\x93\x025\"#/v1/services/{serv\ + ice_name}/configs:\x0eservice_config\x12\xa6\x01\n\x12SubmitConfigSource\ + \x12:.google.api.servicemanagement.v1.SubmitConfigSourceRequest\x1a\x1d.\ + google.longrunning.Operation\"5\x82\xd3\xe4\x93\x02/\"*/v1/services/{ser\ + vice_name}/configs:submit:\x01*\x12\xbe\x01\n\x13ListServiceRollouts\x12\ + ;.google.api.servicemanagement.v1.ListServiceRolloutsRequest\x1a<.google\ + .api.servicemanagement.v1.ListServiceRolloutsResponse\",\x82\xd3\xe4\x93\ + \x02&\x12$/v1/services/{service_name}/rollouts\x12\xb3\x01\n\x11GetServi\ + ceRollout\x129.google.api.servicemanagement.v1.GetServiceRolloutRequest\ + \x1a(.google.api.servicemanagement.v1.Rollout\"9\x82\xd3\xe4\x93\x023\ + \x121/v1/services/{service_name}/rollouts/{rollout_id}\x12\xaa\x01\n\x14\ + CreateServiceRollout\x12<.google.api.servicemanagement.v1.CreateServiceR\ + olloutRequest\x1a\x1d.google.longrunning.Operation\"5\x82\xd3\xe4\x93\ + \x02/\"$/v1/services/{service_name}/rollouts:\x07rollout\x12\xc1\x01\n\ + \x14GenerateConfigReport\x12<.google.api.servicemanagement.v1.GenerateCo\ + nfigReportRequest\x1a=.google.api.servicemanagement.v1.GenerateConfigRep\ + ortResponse\",\x82\xd3\xe4\x93\x02&\"!/v1/services:generateConfigReport:\ + \x01*\x12\x94\x01\n\rEnableService\x125.google.api.servicemanagement.v1.\ + EnableServiceRequest\x1a\x1d.google.longrunning.Operation\"-\x82\xd3\xe4\ + \x93\x02'\"\"/v1/services/{service_name}:enable:\x01*\x12\x97\x01\n\x0eD\ + isableService\x126.google.api.servicemanagement.v1.DisableServiceRequest\ + \x1a\x1d.google.longrunning.Operation\".\x82\xd3\xe4\x93\x02(\"#/v1/serv\ + ices/{service_name}:disable:\x01*B\xdd\x01\n#com.google.api.servicemanag\ + ement.v1B\x13ServiceManagerProtoP\x01ZPgoogle.golang.org/genproto/google\ + apis/api/servicemanagement/v1;servicemanagement\xa2\x02\x04GASM\xaa\x02!\ + Google.Cloud.ServiceManagement.V1\xca\x02!Google\\Cloud\\ServiceManageme\ + nt\\V1J\xc8\x81\x01\n\x07\x12\x05\x0e\0\xf6\x03\x01\n\xbd\x04\n\x01\x0c\ + \x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202018\x20Google\x20Inc.\n\n\ \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -4386,505 +3332,522 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ nse.\n\n\x08\n\x01\x02\x12\x03\x10\0(\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\ - \n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\ - \x03\x03\x12\x03\x15\0\"\n\t\n\x02\x03\x04\x12\x03\x16\09\n\t\n\x02\x03\ - \x05\x12\x03\x17\0-\n\t\n\x02\x03\x06\x12\x03\x18\0#\n\t\n\x02\x03\x07\ - \x12\x03\x19\0%\n\x08\n\x01\x08\x12\x03\x1b\0>\n\t\n\x02\x08%\x12\x03\ - \x1b\0>\n\x08\n\x01\x08\x12\x03\x1c\0j\n\t\n\x02\x08\x0b\x12\x03\x1c\0j\ - \n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\x08\n\ - \x01\x08\x12\x03\x1e\04\n\t\n\x02\x08\x08\x12\x03\x1e\04\n\x08\n\x01\x08\ - \x12\x03\x1f\0<\n\t\n\x02\x08\x01\x12\x03\x1f\0<\n\x08\n\x01\x08\x12\x03\ - \x20\0\"\n\t\n\x02\x08$\x12\x03\x20\0\"\n\x08\n\x01\x08\x12\x03!\0>\n\t\ - \n\x02\x08)\x12\x03!\0>\n\x08\n\x01\x08\x12\x03\"\0=\n\t\n\x02\x08-\x12\ - \x03\"\0=\nn\n\x02\x06\0\x12\x05&\0\x82\x02\x01\x1aa\x20[Google\x20Servi\ - ce\x20Management\n\x20API](https://cloud.google.com/service-infrastructu\ - re/docs/overview)\n\n\n\n\x03\x06\0\x01\x12\x03&\x08\x16\n\n\n\x03\x06\0\ - \x03\x12\x03'\x02H\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03'\x02H\n\x0b\n\ - \x03\x06\0\x03\x12\x04(\x02,D\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04(\x02,D\ - \n\xc2\x01\n\x04\x06\0\x02\0\x12\x043\x028\x03\x1a\xb3\x01\x20Lists\x20m\ - anaged\x20services.\n\n\x20Returns\x20all\x20public\x20services.\x20For\ - \x20authenticated\x20users,\x20also\x20returns\x20all\n\x20services\x20t\ - he\x20calling\x20user\x20has\x20\"servicemanagement.services.get\"\x20pe\ - rmission\n\x20for.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x033\x06\x12\n\x0c\ - \n\x05\x06\0\x02\0\x02\x12\x033\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03\ - 31E\n\r\n\x05\x06\0\x02\0\x04\x12\x044\x046\x06\n\x11\n\t\x06\0\x02\0\ - \x04\xb0\xca\xbc\"\x12\x044\x046\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03\ - 7\x04M\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x037\x04M\na\n\x04\x06\ - \0\x02\x01\x12\x04<\x02A\x03\x1aS\x20Gets\x20a\x20managed\x20service.\ - \x20Authentication\x20is\x20required\x20unless\x20the\x20service\x20is\n\ - \x20public.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03<\x06\x10\n\x0c\n\x05\ - \x06\0\x02\x01\x02\x12\x03<\x11\"\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03<\ - -;\n\r\n\x05\x06\0\x02\x01\x04\x12\x04=\x04?\x06\n\x11\n\t\x06\0\x02\x01\ - \x04\xb0\xca\xbc\"\x12\x04=\x04?\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\ - \x03@\x04:\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03@\x04:\n\x9e\ - \x03\n\x04\x06\0\x02\x02\x12\x04N\x02Y\x03\x1a\x8f\x03\x20Creates\x20a\ - \x20new\x20managed\x20service.\n\n\x20A\x20managed\x20service\x20is\x20i\ - mmutable,\x20and\x20is\x20subject\x20to\x20mandatory\x2030-day\n\x20data\ - \x20retention.\x20You\x20cannot\x20move\x20a\x20service\x20or\x20recreat\ - e\x20it\x20within\x2030\x20days\n\x20after\x20deletion.\n\n\x20One\x20pr\ - oducer\x20project\x20can\x20own\x20no\x20more\x20than\x20500\x20services\ - .\x20For\x20security\x20and\n\x20reliability\x20purposes,\x20a\x20produc\ - tion\x20service\x20should\x20be\x20hosted\x20in\x20a\n\x20dedicated\x20p\ - roducer\x20project.\n\n\x20Operation\n\n\ - \x0c\n\x05\x06\0\x02\x02\x01\x12\x03N\x06\x13\n\x0c\n\x05\x06\0\x02\x02\ - \x02\x12\x03N\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03O\x0f+\n\r\n\x05\ - \x06\0\x02\x02\x04\x12\x04P\x04S\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ - \xbc\"\x12\x04P\x04S\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03T\x045\n\ - \x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03T\x045\n\r\n\x05\x06\0\x02\ - \x02\x04\x12\x04U\x04X\x06\n\x0f\n\x07\x06\0\x02\x02\x04\x99\x08\x12\x04\ - U\x04X\x06\n\xfa\x02\n\x04\x06\0\x02\x03\x12\x04c\x02m\x03\x1a\xeb\x02\ - \x20Deletes\x20a\x20managed\x20service.\x20This\x20method\x20will\x20cha\ - nge\x20the\x20service\x20to\x20the\n\x20`Soft-Delete`\x20state\x20for\ - \x2030\x20days.\x20Within\x20this\x20period,\x20service\x20producers\x20\ - may\n\x20call\n\x20[UndeleteService][google.api.servicemanagement.v1.Ser\ - viceManager.UndeleteService]\n\x20to\x20restore\x20the\x20service.\x20Af\ - ter\x2030\x20days,\x20the\x20service\x20will\x20be\x20permanently\n\x20d\ - eleted.\n\n\x20Operation\n\n\x0c\n\ - \x05\x06\0\x02\x03\x01\x12\x03c\x06\x13\n\x0c\n\x05\x06\0\x02\x03\x02\ - \x12\x03c\x14(\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03d\x0f+\n\r\n\x05\x06\ - \0\x02\x03\x04\x12\x04e\x04g\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\ - \"\x12\x04e\x04g\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03h\x04:\n\x0f\n\ - \x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03h\x04:\n\r\n\x05\x06\0\x02\x03\ - \x04\x12\x04i\x04l\x06\n\x0f\n\x07\x06\0\x02\x03\x04\x99\x08\x12\x04i\ - \x04l\x06\n\x9f\x02\n\x04\x06\0\x02\x04\x12\x04u\x02\x7f\x03\x1a\x90\x02\ - \x20Revives\x20a\x20previously\x20deleted\x20managed\x20service.\x20The\ - \x20method\x20restores\x20the\n\x20service\x20using\x20the\x20configurat\ - ion\x20at\x20the\x20time\x20the\x20service\x20was\x20deleted.\n\x20The\ - \x20target\x20service\x20must\x20exist\x20and\x20must\x20have\x20been\ - \x20deleted\x20within\x20the\n\x20last\x2030\x20days.\n\n\x20Operation\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\ - \x03u\x06\x15\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03u\x16,\n\x0c\n\x05\ - \x06\0\x02\x04\x03\x12\x03v\x0f+\n\r\n\x05\x06\0\x02\x04\x04\x12\x04w\ - \x04y\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04w\x04y\x06\n\ - \x0c\n\x05\x06\0\x02\x04\x04\x12\x03z\x04:\n\x0f\n\x08\x06\0\x02\x04\x04\ - \x9b\x08\0\x12\x03z\x04:\n\r\n\x05\x06\0\x02\x04\x04\x12\x04{\x04~\x06\n\ - \x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04{\x04~\x06\nw\n\x04\x06\0\ - \x02\x05\x12\x06\x83\x01\x02\x89\x01\x03\x1ag\x20Lists\x20the\x20history\ - \x20of\x20the\x20service\x20configuration\x20for\x20a\x20managed\x20serv\ - ice,\n\x20from\x20the\x20newest\x20to\x20the\x20oldest.\n\n\r\n\x05\x06\ - \0\x02\x05\x01\x12\x04\x83\x01\x06\x18\n\r\n\x05\x06\0\x02\x05\x02\x12\ - \x04\x83\x01\x192\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\x84\x01\x0f)\n\x0f\ - \n\x05\x06\0\x02\x05\x04\x12\x06\x85\x01\x04\x87\x01\x06\n\x13\n\t\x06\0\ - \x02\x05\x04\xb0\xca\xbc\"\x12\x06\x85\x01\x04\x87\x01\x06\n\r\n\x05\x06\ - \0\x02\x05\x04\x12\x04\x88\x01\x04:\n\x10\n\x08\x06\0\x02\x05\x04\x9b\ - \x08\0\x12\x04\x88\x01\x04:\nO\n\x04\x06\0\x02\x06\x12\x06\x8c\x01\x02\ - \x92\x01\x03\x1a?\x20Gets\x20a\x20service\x20configuration\x20(version)\ - \x20for\x20a\x20managed\x20service.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\ - \x04\x8c\x01\x06\x16\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\x8c\x01\x17.\n\ - \r\n\x05\x06\0\x02\x06\x03\x12\x04\x8c\x019K\n\x0f\n\x05\x06\0\x02\x06\ - \x04\x12\x06\x8d\x01\x04\x90\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\ - \xbc\"\x12\x06\x8d\x01\x04\x90\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\ - \x04\x91\x01\x04I\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x91\ - \x01\x04I\n\xcc\x03\n\x04\x06\0\x02\x07\x12\x06\x9c\x01\x02\xa3\x01\x03\ - \x1a\xbb\x03\x20Creates\x20a\x20new\x20service\x20configuration\x20(vers\ - ion)\x20for\x20a\x20managed\x20service.\n\x20This\x20method\x20only\x20s\ - tores\x20the\x20service\x20configuration.\x20To\x20roll\x20out\x20the\ - \x20service\n\x20configuration\x20to\x20backend\x20systems\x20please\x20\ - call\n\x20[CreateServiceRollout][google.api.servicemanagement.v1.Service\ - Manager.CreateServiceRollout].\n\n\x20Only\x20the\x20100\x20most\x20rece\ - nt\x20service\x20configurations\x20and\x20ones\x20referenced\x20by\n\x20\ - existing\x20rollouts\x20are\x20kept\x20for\x20each\x20service.\x20The\ - \x20rest\x20will\x20be\x20deleted\n\x20eventually.\n\n\r\n\x05\x06\0\x02\ - \x07\x01\x12\x04\x9c\x01\x06\x19\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\x9c\ - \x01\x1a4\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\x9d\x01\x0f!\n\x0f\n\x05\ - \x06\0\x02\x07\x04\x12\x06\x9e\x01\x04\xa1\x01\x06\n\x13\n\t\x06\0\x02\ - \x07\x04\xb0\xca\xbc\"\x12\x06\x9e\x01\x04\xa1\x01\x06\n\r\n\x05\x06\0\ - \x02\x07\x04\x12\x04\xa2\x01\x04I\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\ - \0\x12\x04\xa2\x01\x04I\n\x8e\x05\n\x04\x06\0\x02\x08\x12\x06\xb3\x01\ - \x02\xbf\x01\x03\x1a\xfd\x04\x20Creates\x20a\x20new\x20service\x20config\ - uration\x20(version)\x20for\x20a\x20managed\x20service\x20based\n\x20on\ - \n\x20user-supplied\x20configuration\x20source\x20files\x20(for\x20examp\ - le:\x20OpenAPI\n\x20Specification).\x20This\x20method\x20stores\x20the\ - \x20source\x20configurations\x20as\x20well\x20as\x20the\n\x20generated\ - \x20service\x20configuration.\x20To\x20rollout\x20the\x20service\x20conf\ - iguration\x20to\n\x20other\x20services,\n\x20please\x20call\n\x20[Create\ - ServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateSer\ - viceRollout].\n\n\x20Only\x20the\x20100\x20most\x20recent\x20configurati\ - on\x20sources\x20and\x20ones\x20referenced\x20by\n\x20existing\x20servic\ - e\x20configurtions\x20are\x20kept\x20for\x20each\x20service.\x20The\x20r\ - est\x20will\x20be\n\x20deleted\x20eventually.\n\n\x20Operation\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\ - \xb3\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xb3\x01\x192\n\r\n\ - \x05\x06\0\x02\x08\x03\x12\x04\xb4\x01\x0f+\n\x0f\n\x05\x06\0\x02\x08\ - \x04\x12\x06\xb5\x01\x04\xb8\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\ - \xbc\"\x12\x06\xb5\x01\x04\xb8\x01\x06\n\x0f\n\x05\x06\0\x02\x08\x04\x12\ - \x06\xb9\x01\x04\xba\x013\n\x12\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\ - \x06\xb9\x01\x04\xba\x013\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\xbb\x01\ - \x04\xbe\x01\x06\n\x11\n\x07\x06\0\x02\x08\x04\x99\x08\x12\x06\xbb\x01\ - \x04\xbe\x01\x06\n\x80\x01\n\x04\x06\0\x02\t\x12\x06\xc3\x01\x02\xc9\x01\ - \x03\x1ap\x20Lists\x20the\x20history\x20of\x20the\x20service\x20configur\ - ation\x20rollouts\x20for\x20a\x20managed\n\x20service,\x20from\x20the\ - \x20newest\x20to\x20the\x20oldest.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\ - \xc3\x01\x06\x19\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xc3\x01\x1a4\n\r\n\ - \x05\x06\0\x02\t\x03\x12\x04\xc4\x01\x0f*\n\x0f\n\x05\x06\0\x02\t\x04\ - \x12\x06\xc5\x01\x04\xc7\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\ - \x12\x06\xc5\x01\x04\xc7\x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xc8\ - \x01\x04A\n\x10\n\x08\x06\0\x02\t\x04\x9b\x08\0\x12\x04\xc8\x01\x04A\nc\ - \n\x04\x06\0\x02\n\x12\x06\xcd\x01\x02\xd2\x01\x03\x1aS\x20Gets\x20a\x20\ - service\x20configuration\n\x20[rollout][google.api.servicemanagement.v1.\ - Rollout].\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xcd\x01\x06\x17\n\r\n\x05\ - \x06\0\x02\n\x02\x12\x04\xcd\x01\x180\n\r\n\x05\x06\0\x02\n\x03\x12\x04\ - \xcd\x01;B\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xce\x01\x04\xd0\x01\x06\n\ - \x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xce\x01\x04\xd0\x01\x06\n\ - \r\n\x05\x06\0\x02\n\x04\x12\x04\xd1\x01\x04E\n\x10\n\x08\x06\0\x02\n\ - \x04\x9b\x08\0\x12\x04\xd1\x01\x04E\n\xaa\x05\n\x04\x06\0\x02\x0b\x12\ - \x06\xe2\x01\x02\xed\x01\x03\x1a\x99\x05\x20Creates\x20a\x20new\x20servi\ - ce\x20configuration\x20rollout.\x20Based\x20on\x20rollout,\x20the\n\x20G\ - oogle\x20Service\x20Management\x20will\x20roll\x20out\x20the\x20service\ - \x20configurations\x20to\n\x20different\x20backend\x20services.\x20For\ - \x20example,\x20the\x20logging\x20configuration\x20will\x20be\n\x20pushe\ - d\x20to\x20Google\x20Cloud\x20Logging.\n\n\x20Please\x20note\x20that\x20\ - any\x20previous\x20pending\x20and\x20running\x20Rollouts\x20and\x20assoc\ - iated\n\x20Operations\x20will\x20be\x20automatically\x20cancelled\x20so\ - \x20that\x20the\x20latest\x20Rollout\x20will\n\x20not\x20be\x20blocked\ - \x20by\x20previous\x20Rollouts.\n\n\x20Only\x20the\x20100\x20most\x20rec\ - ent\x20(in\x20any\x20state)\x20and\x20the\x20last\x2010\x20successful\ - \x20(if\x20not\n\x20already\x20part\x20of\x20the\x20set\x20of\x20100\x20\ - most\x20recent)\x20rollouts\x20are\x20kept\x20for\x20each\n\x20service.\ - \x20The\x20rest\x20will\x20be\x20deleted\x20eventually.\n\n\x20Operation\ - \n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xe2\x01\x06\ - \x1a\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xe2\x01\x1b6\n\r\n\x05\x06\0\ - \x02\x0b\x03\x12\x04\xe3\x01\x0f+\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\ - \xe4\x01\x04\xe7\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\ - \x06\xe4\x01\x04\xe7\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xe8\x01\ - \x04B\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xe8\x01\x04B\n\x0f\ - \n\x05\x06\0\x02\x0b\x04\x12\x06\xe9\x01\x04\xec\x01\x06\n\x11\n\x07\x06\ - \0\x02\x0b\x04\x99\x08\x12\x06\xe9\x01\x04\xec\x01\x06\n\xba\x04\n\x04\ - \x06\0\x02\x0c\x12\x06\xfa\x01\x02\x81\x02\x03\x1a\xa9\x04\x20Generates\ - \x20and\x20returns\x20a\x20report\x20(errors,\x20warnings\x20and\x20chan\ - ges\x20from\n\x20existing\x20configurations)\x20associated\x20with\n\x20\ - GenerateConfigReportRequest.new_value\n\n\x20If\x20GenerateConfigReportR\ - equest.old_value\x20is\x20specified,\n\x20GenerateConfigReportRequest\ - \x20will\x20contain\x20a\x20single\x20ChangeReport\x20based\x20on\x20the\ - \n\x20comparison\x20between\x20GenerateConfigReportRequest.new_value\x20\ - and\n\x20GenerateConfigReportRequest.old_value.\n\x20If\x20GenerateConfi\ - gReportRequest.old_value\x20is\x20not\x20specified,\x20this\x20method\n\ - \x20will\x20compare\x20GenerateConfigReportRequest.new_value\x20with\x20\ - the\x20last\x20pushed\n\x20service\x20configuration.\n\n\r\n\x05\x06\0\ - \x02\x0c\x01\x12\x04\xfa\x01\x06\x1a\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\ - \xfa\x01\x1b6\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xfb\x01\x0f+\n\x0f\n\ - \x05\x06\0\x02\x0c\x04\x12\x06\xfc\x01\x04\xff\x01\x06\n\x13\n\t\x06\0\ - \x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xfc\x01\x04\xff\x01\x06\n\r\n\x05\x06\ - \0\x02\x0c\x04\x12\x04\x80\x02\x04C\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\ - \x08\0\x12\x04\x80\x02\x04C\n:\n\x02\x04\0\x12\x06\x85\x02\0\x97\x02\x01\ - \x1a,\x20Request\x20message\x20for\x20`ListServices`\x20method.\n\n\x0b\ - \n\x03\x04\0\x01\x12\x04\x85\x02\x08\x1b\nC\n\x04\x04\0\x02\0\x12\x04\ - \x87\x02\x02!\x1a5\x20Include\x20services\x20produced\x20by\x20the\x20sp\ - ecified\x20project.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x87\x02\x02\x08\ - \n\r\n\x05\x04\0\x02\0\x01\x12\x04\x87\x02\t\x1c\n\r\n\x05\x04\0\x02\0\ - \x03\x12\x04\x87\x02\x1f\x20\n\x81\x01\n\x04\x04\0\x02\x01\x12\x04\x8b\ - \x02\x02\x16\x1as\x20The\x20max\x20number\x20of\x20items\x20to\x20includ\ - e\x20in\x20the\x20response\x20list.\x20Page\x20size\x20is\x2050\n\x20if\ - \x20not\x20specified.\x20Maximum\x20value\x20is\x20500.\n\n\r\n\x05\x04\ - \0\x02\x01\x05\x12\x04\x8b\x02\x02\x07\n\r\n\x05\x04\0\x02\x01\x01\x12\ - \x04\x8b\x02\x08\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x8b\x02\x14\x15\ - \n`\n\x04\x04\0\x02\x02\x12\x04\x8f\x02\x02\x18\x1aR\x20Token\x20identif\ - ying\x20which\x20result\x20to\x20start\x20with;\x20returned\x20by\x20a\ - \x20previous\x20list\n\x20call.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\ - \x8f\x02\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x8f\x02\t\x13\n\r\n\ - \x05\x04\0\x02\x02\x03\x12\x04\x8f\x02\x16\x17\n\xaa\x01\n\x04\x04\0\x02\ - \x03\x12\x04\x96\x02\x02-\x1a\x9b\x01\x20Include\x20services\x20consumed\ - \x20by\x20the\x20specified\x20consumer.\n\n\x20The\x20Google\x20Service\ - \x20Management\x20implementation\x20accepts\x20the\x20following\n\x20for\ - ms:\n\x20-\x20project:\n\n\r\n\x05\x04\0\x02\x03\x05\x12\x04\ - \x96\x02\x02\x08\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x96\x02\t\x14\n\r\n\ - \x05\x04\0\x02\x03\x03\x12\x04\x96\x02\x17\x18\n\r\n\x05\x04\0\x02\x03\ - \x08\x12\x04\x96\x02\x19,\n\x0e\n\x06\x04\0\x02\x03\x08\x03\x12\x04\x96\ - \x02\x1a+\n;\n\x02\x04\x01\x12\x06\x9a\x02\0\xa0\x02\x01\x1a-\x20Respons\ - e\x20message\x20for\x20`ListServices`\x20method.\n\n\x0b\n\x03\x04\x01\ - \x01\x12\x04\x9a\x02\x08\x1c\nH\n\x04\x04\x01\x02\0\x12\x04\x9c\x02\x02'\ - \x1a:\x20The\x20returned\x20services\x20will\x20only\x20have\x20the\x20n\ - ame\x20field\x20set.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\x9c\x02\x02\n\ - \n\r\n\x05\x04\x01\x02\0\x06\x12\x04\x9c\x02\x0b\x19\n\r\n\x05\x04\x01\ - \x02\0\x01\x12\x04\x9c\x02\x1a\"\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x9c\ - \x02%&\nW\n\x04\x04\x01\x02\x01\x12\x04\x9f\x02\x02\x1d\x1aI\x20Token\ - \x20that\x20can\x20be\x20passed\x20to\x20`ListServices`\x20to\x20resume\ - \x20a\x20paginated\x20query.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x9f\ - \x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x9f\x02\t\x18\n\r\n\ - \x05\x04\x01\x02\x01\x03\x12\x04\x9f\x02\x1b\x1c\n8\n\x02\x04\x02\x12\ - \x06\xa3\x02\0\xa7\x02\x01\x1a*\x20Request\x20message\x20for\x20`GetServ\ - ice`\x20method.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa3\x02\x08\x19\n\x98\ - \x01\n\x04\x04\x02\x02\0\x12\x04\xa6\x02\x02C\x1a\x89\x01\x20Required.\ - \x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20`ServiceMa\ - nager`\x20overview\x20for\n\x20naming\x20requirements.\x20\x20For\x20exa\ - mple:\x20`example.googleapis.com`.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\ - \xa6\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xa6\x02\t\x15\n\r\n\ - \x05\x04\x02\x02\0\x03\x12\x04\xa6\x02\x18\x19\n\r\n\x05\x04\x02\x02\0\ - \x08\x12\x04\xa6\x02\x1aB\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\ - \x04\xa6\x02\x1bA\n9\n\x02\x04\x03\x12\x06\xaa\x02\0\xad\x02\x01\x1a+\ - \x20Request\x20message\x20for\x20CreateService\x20method.\n\n\x0b\n\x03\ - \x04\x03\x01\x12\x04\xaa\x02\x08\x1c\nB\n\x04\x04\x03\x02\0\x12\x04\xac\ - \x02\x02F\x1a4\x20Required.\x20Initial\x20values\x20for\x20the\x20servic\ - e\x20resource.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xac\x02\x02\x10\n\r\ - \n\x05\x04\x03\x02\0\x01\x12\x04\xac\x02\x11\x18\n\r\n\x05\x04\x03\x02\0\ - \x03\x12\x04\xac\x02\x1b\x1c\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\xac\x02\ - \x1dE\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xac\x02\x1eD\n9\n\ - \x02\x04\x04\x12\x06\xb0\x02\0\xb5\x02\x01\x1a+\x20Request\x20message\ - \x20for\x20DeleteService\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\ - \xb0\x02\x08\x1c\n\xc0\x01\n\x04\x04\x04\x02\0\x12\x04\xb4\x02\x02C\x1a\ - \xb1\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\ - \x20the\n\x20[overview](https://cloud.google.com/service-management/over\ - view)\x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\x20`exa\ - mple.googleapis.com`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xb4\x02\x02\ - \x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb4\x02\t\x15\n\r\n\x05\x04\x04\ - \x02\0\x03\x12\x04\xb4\x02\x18\x19\n\r\n\x05\x04\x04\x02\0\x08\x12\x04\ - \xb4\x02\x1aB\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xb4\x02\ - \x1bA\n;\n\x02\x04\x05\x12\x06\xb8\x02\0\xbd\x02\x01\x1a-\x20Request\x20\ - message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\x05\x01\ - \x12\x04\xb8\x02\x08\x1e\n\xbe\x01\n\x04\x04\x05\x02\0\x12\x04\xbc\x02\ - \x02C\x1a\xaf\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\ - \x20See\x20the\n\x20[overview](https://cloud.google.com/service-manageme\ - nt/overview)\x20for\x20naming\n\x20requirements.\x20For\x20example:\x20`\ - example.googleapis.com`.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xbc\x02\ - \x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xbc\x02\t\x15\n\r\n\x05\x04\ - \x05\x02\0\x03\x12\x04\xbc\x02\x18\x19\n\r\n\x05\x04\x05\x02\0\x08\x12\ - \x04\xbc\x02\x1aB\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xbc\ - \x02\x1bA\n<\n\x02\x04\x06\x12\x06\xc0\x02\0\xc3\x02\x01\x1a.\x20Respons\ - e\x20message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\x06\ - \x01\x12\x04\xc0\x02\x08\x1f\n)\n\x04\x04\x06\x02\0\x12\x04\xc2\x02\x02\ + \n\x02\x03\x01\x12\x03\x13\0\"\n\t\n\x02\x03\x02\x12\x03\x14\09\n\t\n\ + \x02\x03\x03\x12\x03\x15\0-\n\t\n\x02\x03\x04\x12\x03\x16\0#\n\t\n\x02\ + \x03\x05\x12\x03\x17\0*\n\t\n\x02\x03\x06\x12\x03\x18\0&\n\t\n\x02\x03\ + \x07\x12\x03\x19\0!\n\x08\n\x01\x08\x12\x03\x1b\0>\n\t\n\x02\x08%\x12\ + \x03\x1b\0>\n\x08\n\x01\x08\x12\x03\x1c\0g\n\t\n\x02\x08\x0b\x12\x03\x1c\ + \0g\n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\ + \x08\n\x01\x08\x12\x03\x1e\04\n\t\n\x02\x08\x08\x12\x03\x1e\04\n\x08\n\ + \x01\x08\x12\x03\x1f\0<\n\t\n\x02\x08\x01\x12\x03\x1f\0<\n\x08\n\x01\x08\ + \x12\x03\x20\0\"\n\t\n\x02\x08$\x12\x03\x20\0\"\n\x08\n\x01\x08\x12\x03!\ + \0>\n\t\n\x02\x08)\x12\x03!\0>\nL\n\x02\x06\0\x12\x05$\0\xef\x01\x01\x1a\ + ?\x20[Google\x20Service\x20Management\x20API](/service-management/overvi\ + ew)\n\n\n\n\x03\x06\0\x01\x12\x03$\x08\x16\n\xf3\x02\n\x04\x06\0\x02\0\ + \x12\x04.\x022\x03\x1a\xe4\x02\x20Lists\x20managed\x20services.\n\n\x20R\ + eturns\x20all\x20public\x20services.\x20For\x20authenticated\x20users,\ + \x20also\x20returns\x20all\n\x20services\x20the\x20calling\x20user\x20ha\ + s\x20\"servicemanagement.services.get\"\x20permission\n\x20for.\n\n\x20*\ + *BETA:**\x20If\x20the\x20caller\x20specifies\x20the\x20`consumer_id`,\ + \x20it\x20returns\x20only\x20the\n\x20services\x20enabled\x20on\x20the\ + \x20consumer.\x20The\x20`consumer_id`\x20must\x20have\x20the\x20format\n\ + \x20of\x20\"project:{PROJECT-ID}\".\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\ + \x03.\x06\x12\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03.\x13&\n\x0c\n\x05\x06\ + \0\x02\0\x03\x12\x03.1E\n\r\n\x05\x06\0\x02\0\x04\x12\x04/\x041\x06\n\ + \x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04/\x041\x06\na\n\x04\x06\0\ + \x02\x01\x12\x046\x02:\x03\x1aS\x20Gets\x20a\x20managed\x20service.\x20A\ + uthentication\x20is\x20required\x20unless\x20the\x20service\x20is\n\x20p\ + ublic.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x036\x06\x10\n\x0c\n\x05\x06\ + \0\x02\x01\x02\x12\x036\x11\"\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x036-;\n\ + \r\n\x05\x06\0\x02\x01\x04\x12\x047\x049\x06\n\x11\n\t\x06\0\x02\x01\x04\ + \xb0\xca\xbc\"\x12\x047\x049\x06\n\x99\x01\n\x04\x06\0\x02\x02\x12\x04@\ + \x02F\x03\x1a\x8a\x01\x20Creates\x20a\x20new\x20managed\x20service.\n\ + \x20Please\x20note\x20one\x20producer\x20project\x20can\x20own\x20no\x20\ + more\x20than\x2020\x20services.\n\n\x20Operation\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03@\x06\x13\n\x0c\n\x05\x06\0\ + \x02\x02\x02\x12\x03@\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03A\x0f+\n\ + \r\n\x05\x06\0\x02\x02\x04\x12\x04B\x04E\x06\n\x11\n\t\x06\0\x02\x02\x04\ + \xb0\xca\xbc\"\x12\x04B\x04E\x06\n\xfa\x02\n\x04\x06\0\x02\x03\x12\x04P\ + \x02U\x03\x1a\xeb\x02\x20Deletes\x20a\x20managed\x20service.\x20This\x20\ + method\x20will\x20change\x20the\x20service\x20to\x20the\n\x20`Soft-Delet\ + e`\x20state\x20for\x2030\x20days.\x20Within\x20this\x20period,\x20servic\ + e\x20producers\x20may\n\x20call\n\x20[UndeleteService][google.api.servic\ + emanagement.v1.ServiceManager.UndeleteService]\n\x20to\x20restore\x20the\ + \x20service.\x20After\x2030\x20days,\x20the\x20service\x20will\x20be\x20\ + permanently\n\x20deleted.\n\n\x20Operation\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03P\x06\x13\n\x0c\n\x05\x06\ + \0\x02\x03\x02\x12\x03P\x14(\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03Q\x0f+\ + \n\r\n\x05\x06\0\x02\x03\x04\x12\x04R\x04T\x06\n\x11\n\t\x06\0\x02\x03\ + \x04\xb0\xca\xbc\"\x12\x04R\x04T\x06\n\x9f\x02\n\x04\x06\0\x02\x04\x12\ + \x04]\x02b\x03\x1a\x90\x02\x20Revives\x20a\x20previously\x20deleted\x20m\ + anaged\x20service.\x20The\x20method\x20restores\x20the\n\x20service\x20u\ + sing\x20the\x20configuration\x20at\x20the\x20time\x20the\x20service\x20w\ + as\x20deleted.\n\x20The\x20target\x20service\x20must\x20exist\x20and\x20\ + must\x20have\x20been\x20deleted\x20within\x20the\n\x20last\x2030\x20days\ + .\n\n\x20Operation\n\n\x0c\n\x05\ + \x06\0\x02\x04\x01\x12\x03]\x06\x15\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ + \x03]\x16,\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03^\x0f+\n\r\n\x05\x06\0\ + \x02\x04\x04\x12\x04_\x04a\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ + \x12\x04_\x04a\x06\nu\n\x04\x06\0\x02\x05\x12\x04f\x02k\x03\x1ag\x20List\ + s\x20the\x20history\x20of\x20the\x20service\x20configuration\x20for\x20a\ + \x20managed\x20service,\n\x20from\x20the\x20newest\x20to\x20the\x20oldes\ + t.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03f\x06\x18\n\x0c\n\x05\x06\0\ + \x02\x05\x02\x12\x03f\x192\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03g\x0f)\n\ + \r\n\x05\x06\0\x02\x05\x04\x12\x04h\x04j\x06\n\x11\n\t\x06\0\x02\x05\x04\ + \xb0\xca\xbc\"\x12\x04h\x04j\x06\nM\n\x04\x06\0\x02\x06\x12\x04n\x02s\ + \x03\x1a?\x20Gets\x20a\x20service\x20configuration\x20(version)\x20for\ + \x20a\x20managed\x20service.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03n\ + \x06\x16\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03n\x17.\n\x0c\n\x05\x06\0\ + \x02\x06\x03\x12\x03n9K\n\r\n\x05\x06\0\x02\x06\x04\x12\x04o\x04r\x06\n\ + \x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04o\x04r\x06\n\xcb\x03\n\ + \x04\x06\0\x02\x07\x12\x05}\x02\x83\x01\x03\x1a\xbb\x03\x20Creates\x20a\ + \x20new\x20service\x20configuration\x20(version)\x20for\x20a\x20managed\ + \x20service.\n\x20This\x20method\x20only\x20stores\x20the\x20service\x20\ + configuration.\x20To\x20roll\x20out\x20the\x20service\n\x20configuration\ + \x20to\x20backend\x20systems\x20please\x20call\n\x20[CreateServiceRollou\ + t][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout].\ + \n\n\x20Only\x20the\x20100\x20most\x20recent\x20service\x20configuration\ + s\x20and\x20ones\x20referenced\x20by\n\x20existing\x20rollouts\x20are\ + \x20kept\x20for\x20each\x20service.\x20The\x20rest\x20will\x20be\x20dele\ + ted\n\x20eventually.\n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03}\x06\x19\n\ + \x0c\n\x05\x06\0\x02\x07\x02\x12\x03}\x1a4\n\x0c\n\x05\x06\0\x02\x07\x03\ + \x12\x03~\x0f!\n\x0e\n\x05\x06\0\x02\x07\x04\x12\x05\x7f\x04\x82\x01\x06\ + \n\x12\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x05\x7f\x04\x82\x01\x06\n\ + \x8e\x05\n\x04\x06\0\x02\x08\x12\x06\x93\x01\x02\x99\x01\x03\x1a\xfd\x04\ + \x20Creates\x20a\x20new\x20service\x20configuration\x20(version)\x20for\ + \x20a\x20managed\x20service\x20based\n\x20on\n\x20user-supplied\x20confi\ + guration\x20source\x20files\x20(for\x20example:\x20OpenAPI\n\x20Specific\ + ation).\x20This\x20method\x20stores\x20the\x20source\x20configurations\ + \x20as\x20well\x20as\x20the\n\x20generated\x20service\x20configuration.\ + \x20To\x20rollout\x20the\x20service\x20configuration\x20to\n\x20other\ + \x20services,\n\x20please\x20call\n\x20[CreateServiceRollout][google.api\ + .servicemanagement.v1.ServiceManager.CreateServiceRollout].\n\n\x20Only\ + \x20the\x20100\x20most\x20recent\x20configuration\x20sources\x20and\x20o\ + nes\x20referenced\x20by\n\x20existing\x20service\x20configurtions\x20are\ + \x20kept\x20for\x20each\x20service.\x20The\x20rest\x20will\x20be\n\x20de\ + leted\x20eventually.\n\n\x20Operation\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\x93\x01\x06\x18\n\r\n\x05\ + \x06\0\x02\x08\x02\x12\x04\x93\x01\x192\n\r\n\x05\x06\0\x02\x08\x03\x12\ + \x04\x94\x01\x0f+\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\x95\x01\x04\x98\ + \x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\x95\x01\x04\ + \x98\x01\x06\n\x80\x01\n\x04\x06\0\x02\t\x12\x06\x9d\x01\x02\xa2\x01\x03\ + \x1ap\x20Lists\x20the\x20history\x20of\x20the\x20service\x20configuratio\ + n\x20rollouts\x20for\x20a\x20managed\n\x20service,\x20from\x20the\x20new\ + est\x20to\x20the\x20oldest.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\x9d\x01\ + \x06\x19\n\r\n\x05\x06\0\x02\t\x02\x12\x04\x9d\x01\x1a4\n\r\n\x05\x06\0\ + \x02\t\x03\x12\x04\x9e\x01\x0f*\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\x9f\ + \x01\x04\xa1\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\x9f\ + \x01\x04\xa1\x01\x06\nc\n\x04\x06\0\x02\n\x12\x06\xa6\x01\x02\xaa\x01\ + \x03\x1aS\x20Gets\x20a\x20service\x20configuration\n\x20[rollout][google\ + .api.servicemanagement.v1.Rollout].\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\ + \xa6\x01\x06\x17\n\r\n\x05\x06\0\x02\n\x02\x12\x04\xa6\x01\x180\n\r\n\ + \x05\x06\0\x02\n\x03\x12\x04\xa6\x01;B\n\x0f\n\x05\x06\0\x02\n\x04\x12\ + \x06\xa7\x01\x04\xa9\x01\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\ + \x06\xa7\x01\x04\xa9\x01\x06\n\xaa\x05\n\x04\x06\0\x02\x0b\x12\x06\xba\ + \x01\x02\xc0\x01\x03\x1a\x99\x05\x20Creates\x20a\x20new\x20service\x20co\ + nfiguration\x20rollout.\x20Based\x20on\x20rollout,\x20the\n\x20Google\ + \x20Service\x20Management\x20will\x20roll\x20out\x20the\x20service\x20co\ + nfigurations\x20to\n\x20different\x20backend\x20services.\x20For\x20exam\ + ple,\x20the\x20logging\x20configuration\x20will\x20be\n\x20pushed\x20to\ + \x20Google\x20Cloud\x20Logging.\n\n\x20Please\x20note\x20that\x20any\x20\ + previous\x20pending\x20and\x20running\x20Rollouts\x20and\x20associated\n\ + \x20Operations\x20will\x20be\x20automatically\x20cancelled\x20so\x20that\ + \x20the\x20latest\x20Rollout\x20will\n\x20not\x20be\x20blocked\x20by\x20\ + previous\x20Rollouts.\n\n\x20Only\x20the\x20100\x20most\x20recent\x20(in\ + \x20any\x20state)\x20and\x20the\x20last\x2010\x20successful\x20(if\x20no\ + t\n\x20already\x20part\x20of\x20the\x20set\x20of\x20100\x20most\x20recen\ + t)\x20rollouts\x20are\x20kept\x20for\x20each\n\x20service.\x20The\x20res\ + t\x20will\x20be\x20deleted\x20eventually.\n\n\x20Operation\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xba\x01\x06\x1a\n\r\n\x05\ + \x06\0\x02\x0b\x02\x12\x04\xba\x01\x1b6\n\r\n\x05\x06\0\x02\x0b\x03\x12\ + \x04\xbb\x01\x0f+\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xbc\x01\x04\xbf\ + \x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xbc\x01\x04\ + \xbf\x01\x06\n\xba\x04\n\x04\x06\0\x02\x0c\x12\x06\xcd\x01\x02\xd3\x01\ + \x03\x1a\xa9\x04\x20Generates\x20and\x20returns\x20a\x20report\x20(error\ + s,\x20warnings\x20and\x20changes\x20from\n\x20existing\x20configurations\ + )\x20associated\x20with\n\x20GenerateConfigReportRequest.new_value\n\n\ + \x20If\x20GenerateConfigReportRequest.old_value\x20is\x20specified,\n\ + \x20GenerateConfigReportRequest\x20will\x20contain\x20a\x20single\x20Cha\ + ngeReport\x20based\x20on\x20the\n\x20comparison\x20between\x20GenerateCo\ + nfigReportRequest.new_value\x20and\n\x20GenerateConfigReportRequest.old_\ + value.\n\x20If\x20GenerateConfigReportRequest.old_value\x20is\x20not\x20\ + specified,\x20this\x20method\n\x20will\x20compare\x20GenerateConfigRepor\ + tRequest.new_value\x20with\x20the\x20last\x20pushed\n\x20service\x20conf\ + iguration.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\xcd\x01\x06\x1a\n\r\n\ + \x05\x06\0\x02\x0c\x02\x12\x04\xcd\x01\x1b6\n\r\n\x05\x06\0\x02\x0c\x03\ + \x12\x04\xce\x01\x0f+\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\xcf\x01\x04\ + \xd2\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xcf\x01\ + \x04\xd2\x01\x06\n\x92\x02\n\x04\x06\0\x02\r\x12\x06\xda\x01\x02\xe0\x01\ + \x03\x1a\x81\x02\x20Enables\x20a\x20[service][google.api.servicemanageme\ + nt.v1.ManagedService]\x20for\x20a\n\x20project,\x20so\x20it\x20can\x20be\ + \x20used\x20for\x20the\x20project.\x20See\x20[Cloud\x20Auth\n\x20Guide](\ + https://cloud.google.com/docs/authentication)\x20for\x20more\x20informat\ + ion.\n\n\x20Operation\n\n\r\n\x05\ + \x06\0\x02\r\x01\x12\x04\xda\x01\x06\x13\n\r\n\x05\x06\0\x02\r\x02\x12\ + \x04\xda\x01\x14(\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xdb\x01\x0f+\n\x0f\n\ + \x05\x06\0\x02\r\x04\x12\x06\xdc\x01\x04\xdf\x01\x06\n\x13\n\t\x06\0\x02\ + \r\x04\xb0\xca\xbc\"\x12\x06\xdc\x01\x04\xdf\x01\x06\n\xa1\x02\n\x04\x06\ + \0\x02\x0e\x12\x06\xe8\x01\x02\xee\x01\x03\x1a\x90\x02\x20Disables\x20a\ + \x20[service][google.api.servicemanagement.v1.ManagedService]\x20for\x20\ + a\n\x20project,\x20so\x20it\x20can\x20no\x20longer\x20be\x20be\x20used\ + \x20for\x20the\x20project.\x20It\x20prevents\n\x20accidental\x20usage\ + \x20that\x20may\x20cause\x20unexpected\x20billing\x20charges\x20or\x20se\ + curity\n\x20leaks.\n\n\x20Operation\ + \n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xe8\x01\x06\x14\n\r\n\x05\x06\0\ + \x02\x0e\x02\x12\x04\xe8\x01\x15*\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\ + \xe9\x01\x0f+\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xea\x01\x04\xed\x01\ + \x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xea\x01\x04\xed\ + \x01\x06\n:\n\x02\x04\0\x12\x06\xf2\x01\0\x83\x02\x01\x1a,\x20Request\ + \x20message\x20for\x20`ListServices`\x20method.\n\n\x0b\n\x03\x04\0\x01\ + \x12\x04\xf2\x01\x08\x1b\nC\n\x04\x04\0\x02\0\x12\x04\xf4\x01\x02!\x1a5\ + \x20Include\x20services\x20produced\x20by\x20the\x20specified\x20project\ + .\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xf4\x01\x02\x08\n\r\n\x05\x04\0\ + \x02\0\x01\x12\x04\xf4\x01\t\x1c\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xf4\ + \x01\x1f\x20\n8\n\x04\x04\0\x02\x01\x12\x04\xf7\x01\x02\x16\x1a*\x20Requ\ + ested\x20size\x20of\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\ + \x04\0\x02\x01\x05\x12\x04\xf7\x01\x02\x07\n\r\n\x05\x04\0\x02\x01\x01\ + \x12\x04\xf7\x01\x08\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xf7\x01\x14\ + \x15\n`\n\x04\x04\0\x02\x02\x12\x04\xfb\x01\x02\x18\x1aR\x20Token\x20ide\ + ntifying\x20which\x20result\x20to\x20start\x20with;\x20returned\x20by\ + \x20a\x20previous\x20list\n\x20call.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\ + \x04\xfb\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xfb\x01\t\x13\n\ + \r\n\x05\x04\0\x02\x02\x03\x12\x04\xfb\x01\x16\x17\n\xaa\x01\n\x04\x04\0\ + \x02\x03\x12\x04\x82\x02\x02\x19\x1a\x9b\x01\x20Include\x20services\x20c\ + onsumed\x20by\x20the\x20specified\x20consumer.\n\n\x20The\x20Google\x20S\ + ervice\x20Management\x20implementation\x20accepts\x20the\x20following\n\ + \x20forms:\n\x20-\x20project:\n\n\r\n\x05\x04\0\x02\x03\x05\ + \x12\x04\x82\x02\x02\x08\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x82\x02\t\ + \x14\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x82\x02\x17\x18\n;\n\x02\x04\ + \x01\x12\x06\x86\x02\0\x8c\x02\x01\x1a-\x20Response\x20message\x20for\ + \x20`ListServices`\x20method.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x86\x02\ + \x08\x1c\nH\n\x04\x04\x01\x02\0\x12\x04\x88\x02\x02'\x1a:\x20The\x20retu\ + rned\x20services\x20will\x20only\x20have\x20the\x20name\x20field\x20set.\ + \n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\x88\x02\x02\n\n\r\n\x05\x04\x01\ + \x02\0\x06\x12\x04\x88\x02\x0b\x19\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\ + \x88\x02\x1a\"\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x88\x02%&\nW\n\x04\ + \x04\x01\x02\x01\x12\x04\x8b\x02\x02\x1d\x1aI\x20Token\x20that\x20can\ + \x20be\x20passed\x20to\x20`ListServices`\x20to\x20resume\x20a\x20paginat\ + ed\x20query.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x8b\x02\x02\x08\n\r\ + \n\x05\x04\x01\x02\x01\x01\x12\x04\x8b\x02\t\x18\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\x8b\x02\x1b\x1c\n8\n\x02\x04\x02\x12\x06\x8f\x02\0\x93\ + \x02\x01\x1a*\x20Request\x20message\x20for\x20`GetService`\x20method.\n\ + \n\x0b\n\x03\x04\x02\x01\x12\x04\x8f\x02\x08\x19\n\x8d\x01\n\x04\x04\x02\ + \x02\0\x12\x04\x92\x02\x02\x1a\x1a\x7f\x20The\x20name\x20of\x20the\x20se\ + rvice.\x20\x20See\x20the\x20`ServiceManager`\x20overview\x20for\x20namin\ + g\n\x20requirements.\x20\x20For\x20example:\x20`example.googleapis.com`.\ + \n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x92\x02\x02\x08\n\r\n\x05\x04\x02\ + \x02\0\x01\x12\x04\x92\x02\t\x15\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x92\ + \x02\x18\x19\n9\n\x02\x04\x03\x12\x06\x96\x02\0\x99\x02\x01\x1a+\x20Requ\ + est\x20message\x20for\x20CreateService\x20method.\n\n\x0b\n\x03\x04\x03\ + \x01\x12\x04\x96\x02\x08\x1c\n8\n\x04\x04\x03\x02\0\x12\x04\x98\x02\x02\ + \x1d\x1a*\x20Initial\x20values\x20for\x20the\x20service\x20resource.\n\n\ + \r\n\x05\x04\x03\x02\0\x06\x12\x04\x98\x02\x02\x10\n\r\n\x05\x04\x03\x02\ + \0\x01\x12\x04\x98\x02\x11\x18\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x98\ + \x02\x1b\x1c\n9\n\x02\x04\x04\x12\x06\x9c\x02\0\xa0\x02\x01\x1a+\x20Requ\ + est\x20message\x20for\x20DeleteService\x20method.\n\n\x0b\n\x03\x04\x04\ + \x01\x12\x04\x9c\x02\x08\x1c\n\x9d\x01\n\x04\x04\x04\x02\0\x12\x04\x9f\ + \x02\x02\x1a\x1a\x8e\x01\x20The\x20name\x20of\x20the\x20service.\x20\x20\ + See\x20the\x20[overview](/service-management/overview)\n\x20for\x20namin\ + g\x20requirements.\x20\x20For\x20example:\x20`example.googleapis.com`.\n\ + \n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x9f\x02\x02\x08\n\r\n\x05\x04\x04\ + \x02\0\x01\x12\x04\x9f\x02\t\x15\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x9f\ + \x02\x18\x19\n;\n\x02\x04\x05\x12\x06\xa3\x02\0\xa7\x02\x01\x1a-\x20Requ\ + est\x20message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\ + \x05\x01\x12\x04\xa3\x02\x08\x1e\n\x9b\x01\n\x04\x04\x05\x02\0\x12\x04\ + \xa6\x02\x02\x1a\x1a\x8c\x01\x20The\x20name\x20of\x20the\x20service.\x20\ + See\x20the\x20[overview](/service-management/overview)\n\x20for\x20namin\ + g\x20requirements.\x20For\x20example:\x20`example.googleapis.com`.\n\n\r\ + \n\x05\x04\x05\x02\0\x05\x12\x04\xa6\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\ + \x01\x12\x04\xa6\x02\t\x15\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xa6\x02\ + \x18\x19\n<\n\x02\x04\x06\x12\x06\xaa\x02\0\xad\x02\x01\x1a.\x20Response\ + \x20message\x20for\x20UndeleteService\x20method.\n\n\x0b\n\x03\x04\x06\ + \x01\x12\x04\xaa\x02\x08\x1f\n)\n\x04\x04\x06\x02\0\x12\x04\xac\x02\x02\ \x1d\x1a\x1b\x20Revived\x20service\x20resource.\n\n\r\n\x05\x04\x06\x02\ - \0\x06\x12\x04\xc2\x02\x02\x10\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xc2\ - \x02\x11\x18\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc2\x02\x1b\x1c\n<\n\ - \x02\x04\x07\x12\x06\xc6\x02\0\xe0\x02\x01\x1a.\x20Request\x20message\ + \0\x06\x12\x04\xac\x02\x02\x10\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xac\ + \x02\x11\x18\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xac\x02\x1b\x1c\n<\n\ + \x02\x04\x07\x12\x06\xb0\x02\0\xc6\x02\x01\x1a.\x20Request\x20message\ \x20for\x20GetServiceConfig\x20method.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\ - \xc6\x02\x08\x1f\n\x0e\n\x04\x04\x07\x04\0\x12\x06\xc7\x02\x02\xd0\x02\ - \x03\n\r\n\x05\x04\x07\x04\0\x01\x12\x04\xc7\x02\x07\x11\nH\n\x06\x04\ - \x07\x04\0\x02\0\x12\x04\xc9\x02\x04\x0e\x1a8\x20Server\x20response\x20i\ + \xb0\x02\x08\x1f\n\x0e\n\x04\x04\x07\x04\0\x12\x06\xb1\x02\x02\xba\x02\ + \x03\n\r\n\x05\x04\x07\x04\0\x01\x12\x04\xb1\x02\x07\x11\nH\n\x06\x04\ + \x07\x04\0\x02\0\x12\x04\xb3\x02\x04\x0e\x1a8\x20Server\x20response\x20i\ ncludes\x20all\x20fields\x20except\x20SourceInfo.\n\n\x0f\n\x07\x04\x07\ - \x04\0\x02\0\x01\x12\x04\xc9\x02\x04\t\n\x0f\n\x07\x04\x07\x04\0\x02\0\ - \x02\x12\x04\xc9\x02\x0c\r\n\xe4\x01\n\x06\x04\x07\x04\0\x02\x01\x12\x04\ - \xcf\x02\x04\r\x1a\xd3\x01\x20Server\x20response\x20includes\x20all\x20f\ + \x04\0\x02\0\x01\x12\x04\xb3\x02\x04\t\n\x0f\n\x07\x04\x07\x04\0\x02\0\ + \x02\x12\x04\xb3\x02\x0c\r\n\xe4\x01\n\x06\x04\x07\x04\0\x02\x01\x12\x04\ + \xb9\x02\x04\r\x1a\xd3\x01\x20Server\x20response\x20includes\x20all\x20f\ ields\x20including\x20SourceInfo.\n\x20SourceFiles\x20are\x20of\x20type\ \x20'google.api.servicemanagement.v1.ConfigFile'\n\x20and\x20are\x20only\ \x20available\x20for\x20configs\x20created\x20using\x20the\n\x20SubmitCo\ nfigSource\x20method.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x01\x12\x04\ - \xcf\x02\x04\x08\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x02\x12\x04\xcf\x02\ - \x0b\x0c\n\xc0\x01\n\x04\x04\x07\x02\0\x12\x04\xd5\x02\x02C\x1a\xb1\x01\ - \x20Required.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\ - \n\x20[overview](https://cloud.google.com/service-management/overview)\ - \x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\x20`example.\ - googleapis.com`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xd5\x02\x02\x08\n\ - \r\n\x05\x04\x07\x02\0\x01\x12\x04\xd5\x02\t\x15\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\xd5\x02\x18\x19\n\r\n\x05\x04\x07\x02\0\x08\x12\x04\xd5\x02\ - \x1aB\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xd5\x02\x1bA\n\xa5\ - \x01\n\x04\x04\x07\x02\x01\x12\x04\xdb\x02\x02@\x1a\x96\x01\x20Required.\ - \x20The\x20id\x20of\x20the\x20service\x20configuration\x20resource.\n\n\ - \x20This\x20field\x20must\x20be\x20specified\x20for\x20the\x20server\x20\ - to\x20return\x20all\x20fields,\x20including\n\x20`SourceInfo`.\n\n\r\n\ - \x05\x04\x07\x02\x01\x05\x12\x04\xdb\x02\x02\x08\n\r\n\x05\x04\x07\x02\ - \x01\x01\x12\x04\xdb\x02\t\x12\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xdb\ - \x02\x15\x16\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\xdb\x02\x17?\n\x10\n\ - \x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xdb\x02\x18>\n`\n\x04\x04\x07\ - \x02\x02\x12\x04\xdf\x02\x02\x16\x1aR\x20Specifies\x20which\x20parts\x20\ - of\x20the\x20Service\x20Config\x20should\x20be\x20returned\x20in\x20the\ - \n\x20response.\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xdf\x02\x02\x0c\ - \n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xdf\x02\r\x11\n\r\n\x05\x04\x07\ - \x02\x02\x03\x12\x04\xdf\x02\x14\x15\n>\n\x02\x04\x08\x12\x06\xe3\x02\0\ - \xef\x02\x01\x1a0\x20Request\x20message\x20for\x20ListServiceConfigs\x20\ - method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe3\x02\x08!\n\xc0\x01\n\x04\ - \x04\x08\x02\0\x12\x04\xe7\x02\x02C\x1a\xb1\x01\x20Required.\x20The\x20n\ - ame\x20of\x20the\x20service.\x20\x20See\x20the\n\x20[overview](https://c\ - loud.google.com/service-management/overview)\x20for\x20naming\n\x20requi\ - rements.\x20\x20For\x20example:\x20`example.googleapis.com`.\n\n\r\n\x05\ - \x04\x08\x02\0\x05\x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\ - \x12\x04\xe7\x02\t\x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xe7\x02\x18\ - \x19\n\r\n\x05\x04\x08\x02\0\x08\x12\x04\xe7\x02\x1aB\n\x10\n\x08\x04\ - \x08\x02\0\x08\x9c\x08\0\x12\x04\xe7\x02\x1bA\n2\n\x04\x04\x08\x02\x01\ - \x12\x04\xea\x02\x02\x18\x1a$\x20The\x20token\x20of\x20the\x20page\x20to\ - \x20retrieve.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xea\x02\x02\x08\n\ - \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xea\x02\t\x13\n\r\n\x05\x04\x08\x02\ - \x01\x03\x12\x04\xea\x02\x16\x17\n\x81\x01\n\x04\x04\x08\x02\x02\x12\x04\ - \xee\x02\x02\x16\x1as\x20The\x20max\x20number\x20of\x20items\x20to\x20in\ - clude\x20in\x20the\x20response\x20list.\x20Page\x20size\x20is\x2050\n\ - \x20if\x20not\x20specified.\x20Maximum\x20value\x20is\x20100.\n\n\r\n\ - \x05\x04\x08\x02\x02\x05\x12\x04\xee\x02\x02\x07\n\r\n\x05\x04\x08\x02\ - \x02\x01\x12\x04\xee\x02\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\ - \xee\x02\x14\x15\n?\n\x02\x04\t\x12\x06\xf2\x02\0\xf8\x02\x01\x1a1\x20Re\ - sponse\x20message\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\ - \x04\t\x01\x12\x04\xf2\x02\x08\"\n<\n\x04\x04\t\x02\0\x12\x04\xf4\x02\ - \x022\x1a.\x20The\x20list\x20of\x20service\x20configuration\x20resources\ - .\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xf4\x02\x02\n\n\r\n\x05\x04\t\x02\ - \0\x06\x12\x04\xf4\x02\x0b\x1d\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xf4\x02\ - \x1e-\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xf4\x0201\n6\n\x04\x04\t\x02\x01\ - \x12\x04\xf7\x02\x02\x1d\x1a(\x20The\x20token\x20of\x20the\x20next\x20pa\ - ge\x20of\x20results.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xf7\x02\x02\ - \x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xf7\x02\t\x18\n\r\n\x05\x04\t\ - \x02\x01\x03\x12\x04\xf7\x02\x1b\x1c\n?\n\x02\x04\n\x12\x06\xfb\x02\0\ - \x84\x03\x01\x1a1\x20Request\x20message\x20for\x20CreateServiceConfig\ - \x20method.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xfb\x02\x08\"\n\xc0\x01\n\ - \x04\x04\n\x02\0\x12\x04\xff\x02\x02C\x1a\xb1\x01\x20Required.\x20The\ - \x20name\x20of\x20the\x20service.\x20\x20See\x20the\n\x20[overview](http\ - s://cloud.google.com/service-management/overview)\x20for\x20naming\n\x20\ - requirements.\x20\x20For\x20example:\x20`example.googleapis.com`.\n\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\xff\x02\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\xff\x02\t\x15\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xff\x02\x18\x19\ - \n\r\n\x05\x04\n\x02\0\x08\x12\x04\xff\x02\x1aB\n\x10\n\x08\x04\n\x02\0\ - \x08\x9c\x08\0\x12\x04\xff\x02\x1bA\n?\n\x04\x04\n\x02\x01\x12\x06\x82\ - \x03\x02\x83\x03/\x1a/\x20Required.\x20The\x20service\x20configuration\ - \x20resource.\n\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x82\x03\x02\x14\n\r\ - \n\x05\x04\n\x02\x01\x01\x12\x04\x82\x03\x15#\n\r\n\x05\x04\n\x02\x01\ - \x03\x12\x04\x82\x03&'\n\r\n\x05\x04\n\x02\x01\x08\x12\x04\x83\x03\x06.\ - \n\x10\n\x08\x04\n\x02\x01\x08\x9c\x08\0\x12\x04\x83\x03\x07-\n>\n\x02\ - \x04\x0b\x12\x06\x87\x03\0\x94\x03\x01\x1a0\x20Request\x20message\x20for\ - \x20SubmitConfigSource\x20method.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x87\ - \x03\x08!\n\xc0\x01\n\x04\x04\x0b\x02\0\x12\x04\x8b\x03\x02C\x1a\xb1\x01\ - \x20Required.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\ - \n\x20[overview](https://cloud.google.com/service-management/overview)\ - \x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\x20`example.\ - googleapis.com`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x8b\x03\x02\x08\n\ - \r\n\x05\x04\x0b\x02\0\x01\x12\x04\x8b\x03\t\x15\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\x8b\x03\x18\x19\n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\x8b\x03\ - \x1aB\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\x8b\x03\x1bA\nC\n\ - \x04\x04\x0b\x02\x01\x12\x04\x8e\x03\x02J\x1a5\x20Required.\x20The\x20so\ - urce\x20configuration\x20for\x20the\x20service.\n\n\r\n\x05\x04\x0b\x02\ - \x01\x06\x12\x04\x8e\x03\x02\x0e\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\ - \x8e\x03\x0f\x1c\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x8e\x03\x1f\x20\n\ - \r\n\x05\x04\x0b\x02\x01\x08\x12\x04\x8e\x03!I\n\x10\n\x08\x04\x0b\x02\ - \x01\x08\x9c\x08\0\x12\x04\x8e\x03\"H\n\xd5\x01\n\x04\x04\x0b\x02\x02\ - \x12\x04\x93\x03\x02B\x1a\xc6\x01\x20Optional.\x20If\x20set,\x20this\x20\ - will\x20result\x20in\x20the\x20generation\x20of\x20a\n\x20`google.api.Se\ - rvice`\x20configuration\x20based\x20on\x20the\x20`ConfigSource`\x20provi\ - ded,\n\x20but\x20the\x20generated\x20config\x20and\x20the\x20sources\x20\ - will\x20NOT\x20be\x20persisted.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\ - \x93\x03\x02\x06\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\x93\x03\x07\x14\n\ - \r\n\x05\x04\x0b\x02\x02\x03\x12\x04\x93\x03\x17\x18\n\r\n\x05\x04\x0b\ - \x02\x02\x08\x12\x04\x93\x03\x19A\n\x10\n\x08\x04\x0b\x02\x02\x08\x9c\ - \x08\0\x12\x04\x93\x03\x1a@\n?\n\x02\x04\x0c\x12\x06\x97\x03\0\x9a\x03\ - \x01\x1a1\x20Response\x20message\x20for\x20SubmitConfigSource\x20method.\ - \n\n\x0b\n\x03\x04\x0c\x01\x12\x04\x97\x03\x08\"\n4\n\x04\x04\x0c\x02\0\ - \x12\x04\x99\x03\x02(\x1a&\x20The\x20generated\x20service\x20configurati\ - on.\n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\x99\x03\x02\x14\n\r\n\x05\x04\ - \x0c\x02\0\x01\x12\x04\x99\x03\x15#\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\ - \x99\x03&'\n;\n\x02\x04\r\x12\x06\x9e\x03\0\xa6\x03\x01\x1a-\n\x20Reques\ - t\x20message\x20for\x20'CreateServiceRollout'\n\n\x0b\n\x03\x04\r\x01\ - \x12\x04\x9e\x03\x08#\n\xc0\x01\n\x04\x04\r\x02\0\x12\x04\xa2\x03\x02C\ - \x1a\xb1\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\x20\ - \x20See\x20the\n\x20[overview](https://cloud.google.com/service-manageme\ - nt/overview)\x20for\x20naming\n\x20requirements.\x20\x20For\x20example:\ - \x20`example.googleapis.com`.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xa2\ - \x03\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xa2\x03\t\x15\n\r\n\x05\ - \x04\r\x02\0\x03\x12\x04\xa2\x03\x18\x19\n\r\n\x05\x04\r\x02\0\x08\x12\ - \x04\xa2\x03\x1aB\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xa2\x03\ - \x1bA\nX\n\x04\x04\r\x02\x01\x12\x04\xa5\x03\x02?\x1aJ\x20Required.\x20T\ - he\x20rollout\x20resource.\x20The\x20`service_name`\x20field\x20is\x20ou\ - tput\x20only.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xa5\x03\x02\t\n\r\n\ - \x05\x04\r\x02\x01\x01\x12\x04\xa5\x03\n\x11\n\r\n\x05\x04\r\x02\x01\x03\ - \x12\x04\xa5\x03\x14\x15\n\r\n\x05\x04\r\x02\x01\x08\x12\x04\xa5\x03\x16\ - >\n\x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\x04\xa5\x03\x17=\n9\n\x02\ - \x04\x0e\x12\x06\xa9\x03\0\xc1\x03\x01\x1a+\x20Request\x20message\x20for\ - \x20'ListServiceRollouts'\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xa9\x03\x08\ - \"\n\xc0\x01\n\x04\x04\x0e\x02\0\x12\x04\xad\x03\x02C\x1a\xb1\x01\x20Req\ - uired.\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\n\x20[o\ - verview](https://cloud.google.com/service-management/overview)\x20for\ - \x20naming\n\x20requirements.\x20\x20For\x20example:\x20`example.googlea\ - pis.com`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xad\x03\x02\x08\n\r\n\ - \x05\x04\x0e\x02\0\x01\x12\x04\xad\x03\t\x15\n\r\n\x05\x04\x0e\x02\0\x03\ - \x12\x04\xad\x03\x18\x19\n\r\n\x05\x04\x0e\x02\0\x08\x12\x04\xad\x03\x1a\ - B\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xad\x03\x1bA\n2\n\x04\ - \x04\x0e\x02\x01\x12\x04\xb0\x03\x02\x18\x1a$\x20The\x20token\x20of\x20t\ - he\x20page\x20to\x20retrieve.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\ - \xb0\x03\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xb0\x03\t\x13\n\r\ - \n\x05\x04\x0e\x02\x01\x03\x12\x04\xb0\x03\x16\x17\n\x81\x01\n\x04\x04\ - \x0e\x02\x02\x12\x04\xb4\x03\x02\x16\x1as\x20The\x20max\x20number\x20of\ - \x20items\x20to\x20include\x20in\x20the\x20response\x20list.\x20Page\x20\ - size\x20is\x2050\n\x20if\x20not\x20specified.\x20Maximum\x20value\x20is\ - \x20100.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xb4\x03\x02\x07\n\r\n\ - \x05\x04\x0e\x02\x02\x01\x12\x04\xb4\x03\x08\x11\n\r\n\x05\x04\x0e\x02\ - \x02\x03\x12\x04\xb4\x03\x14\x15\n\xe5\x02\n\x04\x04\x0e\x02\x03\x12\x04\ - \xc0\x03\x02=\x1a\xd6\x02\x20Required.\x20Use\x20`filter`\x20to\x20retur\ - n\x20subset\x20of\x20rollouts.\n\x20The\x20following\x20filters\x20are\ - \x20supported:\n\n\x20\x20--\x20By\x20[status]\n\x20\x20[google.api.serv\ - icemanagement.v1.Rollout.RolloutStatus].\x20For\x20example,\n\x20\x20`fi\ - lter='status=SUCCESS'`\n\n\x20\x20--\x20By\x20[strategy]\n\x20\x20[googl\ - e.api.servicemanagement.v1.Rollout.strategy].\x20For\x20example,\n\x20\ - \x20`filter='strategy=TrafficPercentStrategy'`\n\n\r\n\x05\x04\x0e\x02\ - \x03\x05\x12\x04\xc0\x03\x02\x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\ - \xc0\x03\t\x0f\n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\xc0\x03\x12\x13\n\r\ - \n\x05\x04\x0e\x02\x03\x08\x12\x04\xc0\x03\x14<\n\x10\n\x08\x04\x0e\x02\ - \x03\x08\x9c\x08\0\x12\x04\xc0\x03\x15;\n@\n\x02\x04\x0f\x12\x06\xc4\x03\ - \0\xca\x03\x01\x1a2\x20Response\x20message\x20for\x20ListServiceRollouts\ - \x20method.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xc4\x03\x08#\n.\n\x04\x04\ - \x0f\x02\0\x12\x04\xc6\x03\x02\x20\x1a\x20\x20The\x20list\x20of\x20rollo\ - ut\x20resources.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xc6\x03\x02\n\n\r\ - \n\x05\x04\x0f\x02\0\x06\x12\x04\xc6\x03\x0b\x12\n\r\n\x05\x04\x0f\x02\0\ - \x01\x12\x04\xc6\x03\x13\x1b\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xc6\x03\ - \x1e\x1f\n6\n\x04\x04\x0f\x02\x01\x12\x04\xc9\x03\x02\x1d\x1a(\x20The\ - \x20token\x20of\x20the\x20next\x20page\x20of\x20results.\n\n\r\n\x05\x04\ - \x0f\x02\x01\x05\x12\x04\xc9\x03\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\ - \x12\x04\xc9\x03\t\x18\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xc9\x03\x1b\ - \x1c\n=\n\x02\x04\x10\x12\x06\xcd\x03\0\xd5\x03\x01\x1a/\x20Request\x20m\ - essage\x20for\x20GetServiceRollout\x20method.\n\n\x0b\n\x03\x04\x10\x01\ - \x12\x04\xcd\x03\x08\x20\n\xc0\x01\n\x04\x04\x10\x02\0\x12\x04\xd1\x03\ - \x02C\x1a\xb1\x01\x20Required.\x20The\x20name\x20of\x20the\x20service.\ - \x20\x20See\x20the\n\x20[overview](https://cloud.google.com/service-mana\ - gement/overview)\x20for\x20naming\n\x20requirements.\x20\x20For\x20examp\ - le:\x20`example.googleapis.com`.\n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\ - \xd1\x03\x02\x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xd1\x03\t\x15\n\r\n\ - \x05\x04\x10\x02\0\x03\x12\x04\xd1\x03\x18\x19\n\r\n\x05\x04\x10\x02\0\ - \x08\x12\x04\xd1\x03\x1aB\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\ - \x04\xd1\x03\x1bA\n9\n\x04\x04\x10\x02\x01\x12\x04\xd4\x03\x02A\x1a+\x20\ - Required.\x20The\x20id\x20of\x20the\x20rollout\x20resource.\n\n\r\n\x05\ - \x04\x10\x02\x01\x05\x12\x04\xd4\x03\x02\x08\n\r\n\x05\x04\x10\x02\x01\ - \x01\x12\x04\xd4\x03\t\x13\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xd4\x03\ - \x16\x17\n\r\n\x05\x04\x10\x02\x01\x08\x12\x04\xd4\x03\x18@\n\x10\n\x08\ - \x04\x10\x02\x01\x08\x9c\x08\0\x12\x04\xd4\x03\x19?\n9\n\x02\x04\x11\x12\ - \x04\xd8\x03\0\x20\x1a-\x20Operation\x20payload\x20for\x20EnableService\ - \x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd8\x03\x08\x1d\n@\n\x02\ - \x04\x12\x12\x06\xdb\x03\0\xe9\x03\x01\x1a2\x20Request\x20message\x20for\ - \x20GenerateConfigReport\x20method.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\ - \xdb\x03\x08#\n\xf2\x02\n\x04\x04\x12\x02\0\x12\x04\xe1\x03\x02N\x1a\xe3\ - \x02\x20Required.\x20Service\x20configuration\x20for\x20which\x20we\x20w\ - ant\x20to\x20generate\x20the\x20report.\n\x20For\x20this\x20version\x20o\ - f\x20API,\x20the\x20supported\x20types\x20are\n\x20[google.api.servicema\ - nagement.v1.ConfigRef][google.api.servicemanagement.v1.ConfigRef],\n\x20\ - [google.api.servicemanagement.v1.ConfigSource][google.api.servicemanagem\ - ent.v1.ConfigSource],\n\x20and\x20[google.api.Service][google.api.Servic\ - e]\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xe1\x03\x02\x15\n\r\n\x05\x04\ - \x12\x02\0\x01\x12\x04\xe1\x03\x16\x20\n\r\n\x05\x04\x12\x02\0\x03\x12\ - \x04\xe1\x03#$\n\r\n\x05\x04\x12\x02\0\x08\x12\x04\xe1\x03%M\n\x10\n\x08\ - \x04\x12\x02\0\x08\x9c\x08\0\x12\x04\xe1\x03&L\n\xf3\x02\n\x04\x04\x12\ - \x02\x01\x12\x04\xe8\x03\x02N\x1a\xe4\x02\x20Optional.\x20Service\x20con\ - figuration\x20against\x20which\x20the\x20comparison\x20will\x20be\x20don\ - e.\n\x20For\x20this\x20version\x20of\x20API,\x20the\x20supported\x20type\ - s\x20are\n\x20[google.api.servicemanagement.v1.ConfigRef][google.api.ser\ - vicemanagement.v1.ConfigRef],\n\x20[google.api.servicemanagement.v1.Conf\ - igSource][google.api.servicemanagement.v1.ConfigSource],\n\x20and\x20[go\ - ogle.api.Service][google.api.Service]\n\n\r\n\x05\x04\x12\x02\x01\x06\ - \x12\x04\xe8\x03\x02\x15\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xe8\x03\ - \x16\x20\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xe8\x03#$\n\r\n\x05\x04\ - \x12\x02\x01\x08\x12\x04\xe8\x03%M\n\x10\n\x08\x04\x12\x02\x01\x08\x9c\ - \x08\0\x12\x04\xe8\x03&L\nA\n\x02\x04\x13\x12\x06\xec\x03\0\xfb\x03\x01\ - \x1a3\x20Response\x20message\x20for\x20GenerateConfigReport\x20method.\n\ - \n\x0b\n\x03\x04\x13\x01\x12\x04\xec\x03\x08$\n;\n\x04\x04\x13\x02\0\x12\ - \x04\xee\x03\x02\x1a\x1a-\x20Name\x20of\x20the\x20service\x20this\x20rep\ - ort\x20belongs\x20to.\n\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xee\x03\x02\ - \x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xee\x03\t\x15\n\r\n\x05\x04\x13\ - \x02\0\x03\x12\x04\xee\x03\x18\x19\nG\n\x04\x04\x13\x02\x01\x12\x04\xf1\ - \x03\x02\x10\x1a9\x20ID\x20of\x20the\x20service\x20configuration\x20this\ - \x20report\x20belongs\x20to.\n\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xf1\ - \x03\x02\x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xf1\x03\t\x0b\n\r\n\ - \x05\x04\x13\x02\x01\x03\x12\x04\xf1\x03\x0e\x0f\nk\n\x04\x04\x13\x02\ - \x02\x12\x04\xf5\x03\x02+\x1a]\x20list\x20of\x20ChangeReport,\x20each\ - \x20corresponding\x20to\x20comparison\x20between\x20two\n\x20service\x20\ - configurations.\n\n\r\n\x05\x04\x13\x02\x02\x04\x12\x04\xf5\x03\x02\n\n\ - \r\n\x05\x04\x13\x02\x02\x06\x12\x04\xf5\x03\x0b\x17\n\r\n\x05\x04\x13\ - \x02\x02\x01\x12\x04\xf5\x03\x18&\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\ - \xf5\x03)*\ni\n\x04\x04\x13\x02\x03\x12\x04\xfa\x03\x02&\x1a[\x20Errors\ - \x20/\x20Linter\x20warnings\x20associated\x20with\x20the\x20service\x20d\ - efinition\x20this\n\x20report\n\x20belongs\x20to.\n\n\r\n\x05\x04\x13\ - \x02\x03\x04\x12\x04\xfa\x03\x02\n\n\r\n\x05\x04\x13\x02\x03\x06\x12\x04\ - \xfa\x03\x0b\x15\n\r\n\x05\x04\x13\x02\x03\x01\x12\x04\xfa\x03\x16!\n\r\ - \n\x05\x04\x13\x02\x03\x03\x12\x04\xfa\x03$%b\x06proto3\ + \xb9\x02\x04\x08\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x02\x12\x04\xb9\x02\ + \x0b\x0c\n\x9d\x01\n\x04\x04\x07\x02\0\x12\x04\xbe\x02\x02\x1a\x1a\x8e\ + \x01\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overv\ + iew](/service-management/overview)\n\x20for\x20naming\x20requirements.\ + \x20\x20For\x20example:\x20`example.googleapis.com`.\n\n\r\n\x05\x04\x07\ + \x02\0\x05\x12\x04\xbe\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ + \xbe\x02\t\x15\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xbe\x02\x18\x19\n=\n\ + \x04\x04\x07\x02\x01\x12\x04\xc1\x02\x02\x17\x1a/\x20The\x20id\x20of\x20\ + the\x20service\x20configuration\x20resource.\n\n\r\n\x05\x04\x07\x02\x01\ + \x05\x12\x04\xc1\x02\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xc1\ + \x02\t\x12\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xc1\x02\x15\x16\n`\n\ + \x04\x04\x07\x02\x02\x12\x04\xc5\x02\x02\x16\x1aR\x20Specifies\x20which\ + \x20parts\x20of\x20the\x20Service\x20Config\x20should\x20be\x20returned\ + \x20in\x20the\n\x20response.\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xc5\ + \x02\x02\x0c\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xc5\x02\r\x11\n\r\n\ + \x05\x04\x07\x02\x02\x03\x12\x04\xc5\x02\x14\x15\n>\n\x02\x04\x08\x12\ + \x06\xc9\x02\0\xd3\x02\x01\x1a0\x20Request\x20message\x20for\x20ListServ\ + iceConfigs\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xc9\x02\x08!\n\ + \x9d\x01\n\x04\x04\x08\x02\0\x12\x04\xcc\x02\x02\x1a\x1a\x8e\x01\x20The\ + \x20name\x20of\x20the\x20service.\x20\x20See\x20the\x20[overview](/servi\ + ce-management/overview)\n\x20for\x20naming\x20requirements.\x20\x20For\ + \x20example:\x20`example.googleapis.com`.\n\n\r\n\x05\x04\x08\x02\0\x05\ + \x12\x04\xcc\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xcc\x02\t\ + \x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xcc\x02\x18\x19\n2\n\x04\x04\ + \x08\x02\x01\x12\x04\xcf\x02\x02\x18\x1a$\x20The\x20token\x20of\x20the\ + \x20page\x20to\x20retrieve.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xcf\ + \x02\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xcf\x02\t\x13\n\r\n\ + \x05\x04\x08\x02\x01\x03\x12\x04\xcf\x02\x16\x17\nH\n\x04\x04\x08\x02\ + \x02\x12\x04\xd2\x02\x02\x16\x1a:\x20The\x20max\x20number\x20of\x20items\ + \x20to\x20include\x20in\x20the\x20response\x20list.\n\n\r\n\x05\x04\x08\ + \x02\x02\x05\x12\x04\xd2\x02\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\x12\ + \x04\xd2\x02\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xd2\x02\x14\ + \x15\n?\n\x02\x04\t\x12\x06\xd6\x02\0\xdc\x02\x01\x1a1\x20Response\x20me\ + ssage\x20for\x20ListServiceConfigs\x20method.\n\n\x0b\n\x03\x04\t\x01\ + \x12\x04\xd6\x02\x08\"\n<\n\x04\x04\t\x02\0\x12\x04\xd8\x02\x022\x1a.\ + \x20The\x20list\x20of\x20service\x20configuration\x20resources.\n\n\r\n\ + \x05\x04\t\x02\0\x04\x12\x04\xd8\x02\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\ + \x04\xd8\x02\x0b\x1d\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xd8\x02\x1e-\n\r\ + \n\x05\x04\t\x02\0\x03\x12\x04\xd8\x0201\n6\n\x04\x04\t\x02\x01\x12\x04\ + \xdb\x02\x02\x1d\x1a(\x20The\x20token\x20of\x20the\x20next\x20page\x20of\ + \x20results.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xdb\x02\x02\x08\n\r\n\ + \x05\x04\t\x02\x01\x01\x12\x04\xdb\x02\t\x18\n\r\n\x05\x04\t\x02\x01\x03\ + \x12\x04\xdb\x02\x1b\x1c\n?\n\x02\x04\n\x12\x06\xdf\x02\0\xe6\x02\x01\ + \x1a1\x20Request\x20message\x20for\x20CreateServiceConfig\x20method.\n\n\ + \x0b\n\x03\x04\n\x01\x12\x04\xdf\x02\x08\"\n\x9d\x01\n\x04\x04\n\x02\0\ + \x12\x04\xe2\x02\x02\x1a\x1a\x8e\x01\x20The\x20name\x20of\x20the\x20serv\ + ice.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\x20\ + for\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.google\ + apis.com`.\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xe2\x02\x02\x08\n\r\n\x05\ + \x04\n\x02\0\x01\x12\x04\xe2\x02\t\x15\n\r\n\x05\x04\n\x02\0\x03\x12\x04\ + \xe2\x02\x18\x19\n3\n\x04\x04\n\x02\x01\x12\x04\xe5\x02\x02(\x1a%\x20The\ + \x20service\x20configuration\x20resource.\n\n\r\n\x05\x04\n\x02\x01\x06\ + \x12\x04\xe5\x02\x02\x14\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xe5\x02\x15\ + #\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xe5\x02&'\n>\n\x02\x04\x0b\x12\x06\ + \xe9\x02\0\xf5\x02\x01\x1a0\x20Request\x20message\x20for\x20SubmitConfig\ + Source\x20method.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xe9\x02\x08!\n\x9d\ + \x01\n\x04\x04\x0b\x02\0\x12\x04\xec\x02\x02\x1a\x1a\x8e\x01\x20The\x20n\ + ame\x20of\x20the\x20service.\x20\x20See\x20the\x20[overview](/service-ma\ + nagement/overview)\n\x20for\x20naming\x20requirements.\x20\x20For\x20exa\ + mple:\x20`example.googleapis.com`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\ + \xec\x02\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xec\x02\t\x15\n\r\n\ + \x05\x04\x0b\x02\0\x03\x12\x04\xec\x02\x18\x19\n9\n\x04\x04\x0b\x02\x01\ + \x12\x04\xef\x02\x02!\x1a+\x20The\x20source\x20configuration\x20for\x20t\ + he\x20service.\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xef\x02\x02\x0e\n\ + \r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xef\x02\x0f\x1c\n\r\n\x05\x04\x0b\ + \x02\x01\x03\x12\x04\xef\x02\x1f\x20\n\xd5\x01\n\x04\x04\x0b\x02\x02\x12\ + \x04\xf4\x02\x02\x19\x1a\xc6\x01\x20Optional.\x20If\x20set,\x20this\x20w\ + ill\x20result\x20in\x20the\x20generation\x20of\x20a\n\x20`google.api.Ser\ + vice`\x20configuration\x20based\x20on\x20the\x20`ConfigSource`\x20provid\ + ed,\n\x20but\x20the\x20generated\x20config\x20and\x20the\x20sources\x20w\ + ill\x20NOT\x20be\x20persisted.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\ + \xf4\x02\x02\x06\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xf4\x02\x07\x14\n\ + \r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xf4\x02\x17\x18\n?\n\x02\x04\x0c\ + \x12\x06\xf8\x02\0\xfb\x02\x01\x1a1\x20Response\x20message\x20for\x20Sub\ + mitConfigSource\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xf8\x02\x08\ + \"\n4\n\x04\x04\x0c\x02\0\x12\x04\xfa\x02\x02(\x1a&\x20The\x20generated\ + \x20service\x20configuration.\n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xfa\ + \x02\x02\x14\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xfa\x02\x15#\n\r\n\x05\ + \x04\x0c\x02\0\x03\x12\x04\xfa\x02&'\n:\n\x02\x04\r\x12\x06\xfe\x02\0\ + \x85\x03\x01\x1a,\x20Request\x20message\x20for\x20'CreateServiceRollout'\ + \n\n\x0b\n\x03\x04\r\x01\x12\x04\xfe\x02\x08#\n\x9d\x01\n\x04\x04\r\x02\ + \0\x12\x04\x81\x03\x02\x1a\x1a\x8e\x01\x20The\x20name\x20of\x20the\x20se\ + rvice.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\ + \x20for\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.go\ + ogleapis.com`.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\x81\x03\x02\x08\n\r\n\ + \x05\x04\r\x02\0\x01\x12\x04\x81\x03\t\x15\n\r\n\x05\x04\r\x02\0\x03\x12\ + \x04\x81\x03\x18\x19\nN\n\x04\x04\r\x02\x01\x12\x04\x84\x03\x02\x16\x1a@\ + \x20The\x20rollout\x20resource.\x20The\x20`service_name`\x20field\x20is\ + \x20output\x20only.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\x84\x03\x02\t\ + \n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x84\x03\n\x11\n\r\n\x05\x04\r\x02\ + \x01\x03\x12\x04\x84\x03\x14\x15\n9\n\x02\x04\x0e\x12\x06\x88\x03\0\x9c\ + \x03\x01\x1a+\x20Request\x20message\x20for\x20'ListServiceRollouts'\n\n\ + \x0b\n\x03\x04\x0e\x01\x12\x04\x88\x03\x08\"\n\x9d\x01\n\x04\x04\x0e\x02\ + \0\x12\x04\x8b\x03\x02\x1a\x1a\x8e\x01\x20The\x20name\x20of\x20the\x20se\ + rvice.\x20\x20See\x20the\x20[overview](/service-management/overview)\n\ + \x20for\x20naming\x20requirements.\x20\x20For\x20example:\x20`example.go\ + ogleapis.com`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x8b\x03\x02\x08\n\r\ + \n\x05\x04\x0e\x02\0\x01\x12\x04\x8b\x03\t\x15\n\r\n\x05\x04\x0e\x02\0\ + \x03\x12\x04\x8b\x03\x18\x19\n2\n\x04\x04\x0e\x02\x01\x12\x04\x8e\x03\ + \x02\x18\x1a$\x20The\x20token\x20of\x20the\x20page\x20to\x20retrieve.\n\ + \n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\x8e\x03\x02\x08\n\r\n\x05\x04\x0e\ + \x02\x01\x01\x12\x04\x8e\x03\t\x13\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\ + \x8e\x03\x16\x17\nH\n\x04\x04\x0e\x02\x02\x12\x04\x91\x03\x02\x16\x1a:\ + \x20The\x20max\x20number\x20of\x20items\x20to\x20include\x20in\x20the\ + \x20response\x20list.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\x91\x03\ + \x02\x07\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\x91\x03\x08\x11\n\r\n\x05\ + \x04\x0e\x02\x02\x03\x12\x04\x91\x03\x14\x15\n\xab\x03\n\x04\x04\x0e\x02\ + \x03\x12\x04\x9b\x03\x02\x14\x1a\x9c\x03\x20Use\x20`filter`\x20to\x20ret\ + urn\x20subset\x20of\x20rollouts.\n\x20The\x20following\x20filters\x20are\ + \x20supported:\n\x20\x20\x20--\x20To\x20limit\x20the\x20results\x20to\ + \x20only\x20those\x20in\n\x20\x20\x20\x20\x20\x20[status](google.api.ser\ + vicemanagement.v1.RolloutStatus)\x20'SUCCESS',\n\x20\x20\x20\x20\x20\x20\ + use\x20filter='status=SUCCESS'\n\x20\x20\x20--\x20To\x20limit\x20the\x20\ + results\x20to\x20those\x20in\n\x20\x20\x20\x20\x20\x20[status](google.ap\ + i.servicemanagement.v1.RolloutStatus)\x20'CANCELLED'\n\x20\x20\x20\x20\ + \x20\x20or\x20'FAILED',\x20use\x20filter='status=CANCELLED\x20OR\x20stat\ + us=FAILED'\n\n\r\n\x05\x04\x0e\x02\x03\x05\x12\x04\x9b\x03\x02\x08\n\r\n\ + \x05\x04\x0e\x02\x03\x01\x12\x04\x9b\x03\t\x0f\n\r\n\x05\x04\x0e\x02\x03\ + \x03\x12\x04\x9b\x03\x12\x13\n@\n\x02\x04\x0f\x12\x06\x9f\x03\0\xa5\x03\ + \x01\x1a2\x20Response\x20message\x20for\x20ListServiceRollouts\x20method\ + .\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x9f\x03\x08#\n.\n\x04\x04\x0f\x02\0\ + \x12\x04\xa1\x03\x02\x20\x1a\x20\x20The\x20list\x20of\x20rollout\x20reso\ + urces.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xa1\x03\x02\n\n\r\n\x05\x04\ + \x0f\x02\0\x06\x12\x04\xa1\x03\x0b\x12\n\r\n\x05\x04\x0f\x02\0\x01\x12\ + \x04\xa1\x03\x13\x1b\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xa1\x03\x1e\x1f\ + \n6\n\x04\x04\x0f\x02\x01\x12\x04\xa4\x03\x02\x1d\x1a(\x20The\x20token\ + \x20of\x20the\x20next\x20page\x20of\x20results.\n\n\r\n\x05\x04\x0f\x02\ + \x01\x05\x12\x04\xa4\x03\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\ + \xa4\x03\t\x18\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xa4\x03\x1b\x1c\n=\ + \n\x02\x04\x10\x12\x06\xa8\x03\0\xaf\x03\x01\x1a/\x20Request\x20message\ + \x20for\x20GetServiceRollout\x20method.\n\n\x0b\n\x03\x04\x10\x01\x12\ + \x04\xa8\x03\x08\x20\n\x9d\x01\n\x04\x04\x10\x02\0\x12\x04\xab\x03\x02\ + \x1a\x1a\x8e\x01\x20The\x20name\x20of\x20the\x20service.\x20\x20See\x20t\ + he\x20[overview](/service-management/overview)\n\x20for\x20naming\x20req\ + uirements.\x20\x20For\x20example:\x20`example.googleapis.com`.\n\n\r\n\ + \x05\x04\x10\x02\0\x05\x12\x04\xab\x03\x02\x08\n\r\n\x05\x04\x10\x02\0\ + \x01\x12\x04\xab\x03\t\x15\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xab\x03\ + \x18\x19\n/\n\x04\x04\x10\x02\x01\x12\x04\xae\x03\x02\x18\x1a!\x20The\ + \x20id\x20of\x20the\x20rollout\x20resource.\n\n\r\n\x05\x04\x10\x02\x01\ + \x05\x12\x04\xae\x03\x02\x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xae\ + \x03\t\x13\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xae\x03\x16\x17\n9\n\ + \x02\x04\x11\x12\x06\xb2\x03\0\xc1\x03\x01\x1a+\x20Request\x20message\ + \x20for\x20EnableService\x20method.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\ + \xb2\x03\x08\x1c\nr\n\x04\x04\x11\x02\0\x12\x04\xb5\x03\x02\x1a\x1ad\x20\ + Name\x20of\x20the\x20service\x20to\x20enable.\x20Specifying\x20an\x20unk\ + nown\x20service\x20name\x20will\n\x20cause\x20the\x20request\x20to\x20fa\ + il.\n\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xb5\x03\x02\x08\n\r\n\x05\x04\ + \x11\x02\0\x01\x12\x04\xb5\x03\t\x15\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\ + \xb5\x03\x18\x19\n\xa1\x02\n\x04\x04\x11\x02\x01\x12\x04\xc0\x03\x02\x19\ + \x1a\x92\x02\x20The\x20identity\x20of\x20consumer\x20resource\x20which\ + \x20service\x20enablement\x20will\x20be\n\x20applied\x20to.\n\n\x20The\ + \x20Google\x20Service\x20Management\x20implementation\x20accepts\x20the\ + \x20following\n\x20forms:\n\x20-\x20\"project:\"\n\n\x20Note\ + :\x20this\x20is\x20made\x20compatible\x20with\n\x20google.api.servicecon\ + trol.v1.Operation.consumer_id.\n\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\ + \xc0\x03\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xc0\x03\t\x14\n\r\ + \n\x05\x04\x11\x02\x01\x03\x12\x04\xc0\x03\x17\x18\n:\n\x02\x04\x12\x12\ + \x06\xc4\x03\0\xd3\x03\x01\x1a,\x20Request\x20message\x20for\x20DisableS\ + ervice\x20method.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xc4\x03\x08\x1d\ns\n\ + \x04\x04\x12\x02\0\x12\x04\xc7\x03\x02\x1a\x1ae\x20Name\x20of\x20the\x20\ + service\x20to\x20disable.\x20Specifying\x20an\x20unknown\x20service\x20n\ + ame\n\x20will\x20cause\x20the\x20request\x20to\x20fail.\n\n\r\n\x05\x04\ + \x12\x02\0\x05\x12\x04\xc7\x03\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\ + \x04\xc7\x03\t\x15\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xc7\x03\x18\x19\n\ + \xa2\x02\n\x04\x04\x12\x02\x01\x12\x04\xd2\x03\x02\x19\x1a\x93\x02\x20Th\ + e\x20identity\x20of\x20consumer\x20resource\x20which\x20service\x20disab\ + lement\x20will\x20be\n\x20applied\x20to.\n\n\x20The\x20Google\x20Service\ + \x20Management\x20implementation\x20accepts\x20the\x20following\n\x20for\ + ms:\n\x20-\x20\"project:\"\n\n\x20Note:\x20this\x20is\x20mad\ + e\x20compatible\x20with\n\x20google.api.servicecontrol.v1.Operation.cons\ + umer_id.\n\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\xd2\x03\x02\x08\n\r\n\ + \x05\x04\x12\x02\x01\x01\x12\x04\xd2\x03\t\x14\n\r\n\x05\x04\x12\x02\x01\ + \x03\x12\x04\xd2\x03\x17\x18\n@\n\x02\x04\x13\x12\x06\xd6\x03\0\xe4\x03\ + \x01\x1a2\x20Request\x20message\x20for\x20GenerateConfigReport\x20method\ + .\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xd6\x03\x08#\n\xe8\x02\n\x04\x04\x13\ + \x02\0\x12\x04\xdc\x03\x02%\x1a\xd9\x02\x20Service\x20configuration\x20f\ + or\x20which\x20we\x20want\x20to\x20generate\x20the\x20report.\n\x20For\ + \x20this\x20version\x20of\x20API,\x20the\x20supported\x20types\x20are\n\ + \x20[google.api.servicemanagement.v1.ConfigRef][google.api.servicemanage\ + ment.v1.ConfigRef],\n\x20[google.api.servicemanagement.v1.ConfigSource][\ + google.api.servicemanagement.v1.ConfigSource],\n\x20and\x20[google.api.S\ + ervice][google.api.Service]\n\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\xdc\ + \x03\x02\x15\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xdc\x03\x16\x20\n\r\n\ + \x05\x04\x13\x02\0\x03\x12\x04\xdc\x03#$\n\xe9\x02\n\x04\x04\x13\x02\x01\ + \x12\x04\xe3\x03\x02%\x1a\xda\x02\x20Service\x20configuration\x20against\ + \x20which\x20the\x20comparison\x20will\x20be\x20done.\n\x20For\x20this\ + \x20version\x20of\x20API,\x20the\x20supported\x20types\x20are\n\x20[goog\ + le.api.servicemanagement.v1.ConfigRef][google.api.servicemanagement.v1.C\ + onfigRef],\n\x20[google.api.servicemanagement.v1.ConfigSource][google.ap\ + i.servicemanagement.v1.ConfigSource],\n\x20and\x20[google.api.Service][g\ + oogle.api.Service]\n\n\r\n\x05\x04\x13\x02\x01\x06\x12\x04\xe3\x03\x02\ + \x15\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xe3\x03\x16\x20\n\r\n\x05\x04\ + \x13\x02\x01\x03\x12\x04\xe3\x03#$\nA\n\x02\x04\x14\x12\x06\xe7\x03\0\ + \xf6\x03\x01\x1a3\x20Response\x20message\x20for\x20GenerateConfigReport\ + \x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xe7\x03\x08$\n;\n\x04\x04\ + \x14\x02\0\x12\x04\xe9\x03\x02\x1a\x1a-\x20Name\x20of\x20the\x20service\ + \x20this\x20report\x20belongs\x20to.\n\n\r\n\x05\x04\x14\x02\0\x05\x12\ + \x04\xe9\x03\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xe9\x03\t\x15\n\ + \r\n\x05\x04\x14\x02\0\x03\x12\x04\xe9\x03\x18\x19\nG\n\x04\x04\x14\x02\ + \x01\x12\x04\xec\x03\x02\x10\x1a9\x20ID\x20of\x20the\x20service\x20confi\ + guration\x20this\x20report\x20belongs\x20to.\n\n\r\n\x05\x04\x14\x02\x01\ + \x05\x12\x04\xec\x03\x02\x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xec\ + \x03\t\x0b\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xec\x03\x0e\x0f\nk\n\ + \x04\x04\x14\x02\x02\x12\x04\xf0\x03\x02+\x1a]\x20list\x20of\x20ChangeRe\ + port,\x20each\x20corresponding\x20to\x20comparison\x20between\x20two\n\ + \x20service\x20configurations.\n\n\r\n\x05\x04\x14\x02\x02\x04\x12\x04\ + \xf0\x03\x02\n\n\r\n\x05\x04\x14\x02\x02\x06\x12\x04\xf0\x03\x0b\x17\n\r\ + \n\x05\x04\x14\x02\x02\x01\x12\x04\xf0\x03\x18&\n\r\n\x05\x04\x14\x02\ + \x02\x03\x12\x04\xf0\x03)*\ni\n\x04\x04\x14\x02\x03\x12\x04\xf5\x03\x02&\ + \x1a[\x20Errors\x20/\x20Linter\x20warnings\x20associated\x20with\x20the\ + \x20service\x20definition\x20this\n\x20report\n\x20belongs\x20to.\n\n\r\ + \n\x05\x04\x14\x02\x03\x04\x12\x04\xf5\x03\x02\n\n\r\n\x05\x04\x14\x02\ + \x03\x06\x12\x04\xf5\x03\x0b\x15\n\r\n\x05\x04\x14\x02\x03\x01\x12\x04\ + \xf5\x03\x16!\n\r\n\x05\x04\x14\x02\x03\x03\x12\x04\xf5\x03$%b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(8); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::service::file_descriptor().clone()); + deps.push(super::resources::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(21); + messages.push(ListServicesRequest::generated_message_descriptor_data()); + messages.push(ListServicesResponse::generated_message_descriptor_data()); + messages.push(GetServiceRequest::generated_message_descriptor_data()); + messages.push(CreateServiceRequest::generated_message_descriptor_data()); + messages.push(DeleteServiceRequest::generated_message_descriptor_data()); + messages.push(UndeleteServiceRequest::generated_message_descriptor_data()); + messages.push(UndeleteServiceResponse::generated_message_descriptor_data()); + messages.push(GetServiceConfigRequest::generated_message_descriptor_data()); + messages.push(ListServiceConfigsRequest::generated_message_descriptor_data()); + messages.push(ListServiceConfigsResponse::generated_message_descriptor_data()); + messages.push(CreateServiceConfigRequest::generated_message_descriptor_data()); + messages.push(SubmitConfigSourceRequest::generated_message_descriptor_data()); + messages.push(SubmitConfigSourceResponse::generated_message_descriptor_data()); + messages.push(CreateServiceRolloutRequest::generated_message_descriptor_data()); + messages.push(ListServiceRolloutsRequest::generated_message_descriptor_data()); + messages.push(ListServiceRolloutsResponse::generated_message_descriptor_data()); + messages.push(GetServiceRolloutRequest::generated_message_descriptor_data()); + messages.push(EnableServiceRequest::generated_message_descriptor_data()); + messages.push(DisableServiceRequest::generated_message_descriptor_data()); + messages.push(GenerateConfigReportRequest::generated_message_descriptor_data()); + messages.push(GenerateConfigReportResponse::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(get_service_config_request::ConfigView::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs b/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs index 976dfa0..9e54ebe 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/servicemanager_grpc.rs @@ -107,6 +107,20 @@ const METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/EnableService", + req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, + resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, +}; + +const METHOD_SERVICE_MANAGER_DISABLE_SERVICE: ::grpcio::Method = ::grpcio::Method { + ty: ::grpcio::MethodType::Unary, + name: "/google.api.servicemanagement.v1.ServiceManager/DisableService", + req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, + resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, +}; + #[derive(Clone)] pub struct ServiceManagerClient { pub client: ::grpcio::Client, @@ -326,6 +340,38 @@ impl ServiceManagerClient { pub fn generate_config_report_async(&self, req: &super::servicemanager::GenerateConfigReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.generate_config_report_async_opt(req, ::grpcio::CallOption::default()) } + + pub fn enable_service_opt(&self, req: &super::servicemanager::EnableServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_ENABLE_SERVICE, req, opt) + } + + pub fn enable_service(&self, req: &super::servicemanager::EnableServiceRequest) -> ::grpcio::Result { + self.enable_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn enable_service_async_opt(&self, req: &super::servicemanager::EnableServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_ENABLE_SERVICE, req, opt) + } + + pub fn enable_service_async(&self, req: &super::servicemanager::EnableServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.enable_service_async_opt(req, ::grpcio::CallOption::default()) + } + + pub fn disable_service_opt(&self, req: &super::servicemanager::DisableServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_SERVICE_MANAGER_DISABLE_SERVICE, req, opt) + } + + pub fn disable_service(&self, req: &super::servicemanager::DisableServiceRequest) -> ::grpcio::Result { + self.disable_service_opt(req, ::grpcio::CallOption::default()) + } + + pub fn disable_service_async_opt(&self, req: &super::servicemanager::DisableServiceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_SERVICE_MANAGER_DISABLE_SERVICE, req, opt) + } + + pub fn disable_service_async(&self, req: &super::servicemanager::DisableServiceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.disable_service_async_opt(req, ::grpcio::CallOption::default()) + } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -371,6 +417,12 @@ pub trait ServiceManager { fn generate_config_report(&mut self, ctx: ::grpcio::RpcContext, _req: super::servicemanager::GenerateConfigReportRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } + fn enable_service(&mut self, ctx: ::grpcio::RpcContext, _req: super::servicemanager::EnableServiceRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } + fn disable_service(&mut self, ctx: ::grpcio::RpcContext, _req: super::servicemanager::DisableServiceRequest, sink: ::grpcio::UnarySink) { + grpcio::unimplemented_call!(ctx, sink) + } } pub fn create_service_manager(s: S) -> ::grpcio::Service { @@ -423,9 +475,17 @@ pub fn create_service_manager(s: S) builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_CREATE_SERVICE_ROLLOUT, move |ctx, req, resp| { instance.create_service_rollout(ctx, req, resp) }); - let mut instance = s; + let mut instance = s.clone(); builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_GENERATE_CONFIG_REPORT, move |ctx, req, resp| { instance.generate_config_report(ctx, req, resp) }); + let mut instance = s.clone(); + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_ENABLE_SERVICE, move |ctx, req, resp| { + instance.enable_service(ctx, req, resp) + }); + let mut instance = s; + builder = builder.add_unary_handler(&METHOD_SERVICE_MANAGER_DISABLE_SERVICE, move |ctx, req, resp| { + instance.disable_service(ctx, req, resp) + }); builder.build() } diff --git a/googleapis-raw/src/api/source_info.rs b/googleapis-raw/src/api/source_info.rs index 3cde967..88db78b 100644 --- a/googleapis-raw/src/api/source_info.rs +++ b/googleapis-raw/src/api/source_info.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,26 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/source_info.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Source information used to create a Service Config +// @@protoc_insertion_point(message:google.api.SourceInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SourceInfo { // message fields - pub source_files: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + /// All files used during config generation. + // @@protoc_insertion_point(field:google.api.SourceInfo.source_files) + pub source_files: ::std::vec::Vec<::protobuf::well_known_types::any::Any>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.SourceInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SourceInfo { @@ -43,51 +49,37 @@ impl SourceInfo { ::std::default::Default::default() } - // repeated .google.protobuf.Any source_files = 1; - - - pub fn get_source_files(&self) -> &[::protobuf::well_known_types::Any] { - &self.source_files - } - pub fn clear_source_files(&mut self) { - self.source_files.clear(); - } - - // Param is passed by value, moved - pub fn set_source_files(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.source_files = v; - } - - // Mutable pointer to the field. - pub fn mut_source_files(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.source_files - } - - // Take field - pub fn take_source_files(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.source_files, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "source_files", + |m: &SourceInfo| { &m.source_files }, + |m: &mut SourceInfo| { &mut m.source_files }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SourceInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for SourceInfo { + const NAME: &'static str = "SourceInfo"; + fn is_initialized(&self) -> bool { - for v in &self.source_files { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.source_files)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.source_files.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,97 +88,66 @@ impl ::protobuf::Message for SourceInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.source_files { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.source_files { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SourceInfo { SourceInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "source_files", - |m: &SourceInfo| { &m.source_files }, - |m: &mut SourceInfo| { &mut m.source_files }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SourceInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.source_files.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SourceInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SourceInfo::new) + static instance: SourceInfo = SourceInfo { + source_files: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SourceInfo { - fn clear(&mut self) { - self.source_files.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SourceInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SourceInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for SourceInfo { +impl ::std::fmt::Display for SourceInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SourceInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -194,11 +155,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ f/any.proto\"E\n\nSourceInfo\x127\n\x0csource_files\x18\x01\x20\x03(\x0b\ 2\x14.google.protobuf.AnyR\x0bsourceFilesBq\n\x0ecom.google.apiB\x0fSour\ ceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfi\ - g;serviceconfig\xa2\x02\x04GAPIJ\x84\x07\n\x06\x12\x04\x0e\0\x1e\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + g;serviceconfig\xa2\x02\x04GAPIJ\x86\x07\n\x06\x12\x04\x0f\0\x1f\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ @@ -207,29 +168,47 @@ static file_descriptor_proto_data: &'static [u8] = b"\ WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ - \x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\x08\x0b\x12\ - \x03\x14\0\\\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\ - \0\"\n\x08\n\x01\x08\x12\x03\x16\00\n\t\n\x02\x08\x08\x12\x03\x16\00\n\ - \x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\ - \x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n@\n\x02\x04\0\ - \x12\x04\x1b\0\x1e\x01\x1a4\x20Source\x20information\x20used\x20to\x20cr\ - eate\x20a\x20Service\x20Config\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\x12\ - \n7\n\x04\x04\0\x02\0\x12\x03\x1d\x020\x1a*\x20All\x20files\x20used\x20d\ - uring\x20config\x20generation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1d\ - \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1d\x0b\x1e\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03\x1d\x1f+\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d./b\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\ + \0\x12\x03\x13\0#\n\x08\n\x01\x08\x12\x03\x15\0\\\n\t\n\x02\x08\x0b\x12\ + \x03\x15\0\\\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\ + \0\"\n\x08\n\x01\x08\x12\x03\x17\00\n\t\n\x02\x08\x08\x12\x03\x17\00\n\ + \x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\ + \x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n@\n\x02\x04\0\ + \x12\x04\x1c\0\x1f\x01\x1a4\x20Source\x20information\x20used\x20to\x20cr\ + eate\x20a\x20Service\x20Config\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x12\ + \n7\n\x04\x04\0\x02\0\x12\x03\x1e\x020\x1a*\x20All\x20files\x20used\x20d\ + uring\x20config\x20generation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1e\ + \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1e\x0b\x1e\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03\x1e\x1f+\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1e./b\ \x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(SourceInfo::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/system_parameter.rs b/googleapis-raw/src/api/system_parameter.rs index d91fb26..3bdde0f 100644 --- a/googleapis-raw/src/api/system_parameter.rs +++ b/googleapis-raw/src/api/system_parameter.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,30 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/system_parameter.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// ### System parameter configuration +/// +/// A system parameter is a special kind of parameter defined by the API +/// system, not by an individual API. It is typically mapped to an HTTP header +/// and/or a URL query parameter. This configuration specifies which methods +/// change the names of the system parameters. +// @@protoc_insertion_point(message:google.api.SystemParameters) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SystemParameters { // message fields - pub rules: ::protobuf::RepeatedField, + // @@protoc_insertion_point(field:google.api.SystemParameters.rules) + pub rules: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.SystemParameters.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SystemParameters { @@ -43,51 +53,37 @@ impl SystemParameters { ::std::default::Default::default() } - // repeated .google.api.SystemParameterRule rules = 1; - - - pub fn get_rules(&self) -> &[SystemParameterRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &SystemParameters| { &m.rules }, + |m: &mut SystemParameters| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SystemParameters", + fields, + oneofs, + ) } } impl ::protobuf::Message for SystemParameters { + const NAME: &'static str = "SystemParameters"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -96,107 +92,90 @@ impl ::protobuf::Message for SystemParameters { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SystemParameters { SystemParameters::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &SystemParameters| { &m.rules }, - |m: &mut SystemParameters| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SystemParameters", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rules.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SystemParameters { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameters::new) + static instance: SystemParameters = SystemParameters { + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SystemParameters { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SystemParameters { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SystemParameters").unwrap()).clone() } } -impl ::std::fmt::Debug for SystemParameters { +impl ::std::fmt::Display for SystemParameters { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SystemParameters { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Define a system parameter rule mapping system parameter definitions to +/// methods. +// @@protoc_insertion_point(message:google.api.SystemParameterRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SystemParameterRule { // message fields + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.SystemParameterRule.selector) pub selector: ::std::string::String, - pub parameters: ::protobuf::RepeatedField, + /// Define parameters. Multiple names may be defined for a parameter. + /// For a given method call, only one of them should be used. If multiple + /// names are used the behavior is implementation-dependent. + /// If none of the specified names are present the behavior is + /// parameter-dependent. + // @@protoc_insertion_point(field:google.api.SystemParameterRule.parameters) + pub parameters: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.SystemParameterRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SystemParameterRule { @@ -210,80 +189,45 @@ impl SystemParameterRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // repeated .google.api.SystemParameter parameters = 2; - - - pub fn get_parameters(&self) -> &[SystemParameter] { - &self.parameters - } - pub fn clear_parameters(&mut self) { - self.parameters.clear(); - } - - // Param is passed by value, moved - pub fn set_parameters(&mut self, v: ::protobuf::RepeatedField) { - self.parameters = v; - } - - // Mutable pointer to the field. - pub fn mut_parameters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.parameters - } - - // Take field - pub fn take_parameters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.parameters, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &SystemParameterRule| { &m.selector }, + |m: &mut SystemParameterRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "parameters", + |m: &SystemParameterRule| { &m.parameters }, + |m: &mut SystemParameterRule| { &mut m.parameters }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SystemParameterRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for SystemParameterRule { + const NAME: &'static str = "SystemParameterRule"; + fn is_initialized(&self) -> bool { - for v in &self.parameters { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.parameters)?; + 18 => { + self.parameters.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -292,120 +236,97 @@ impl ::protobuf::Message for SystemParameterRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); } for value in &self.parameters { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } for v in &self.parameters { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SystemParameterRule { SystemParameterRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &SystemParameterRule| { &m.selector }, - |m: &mut SystemParameterRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "parameters", - |m: &SystemParameterRule| { &m.parameters }, - |m: &mut SystemParameterRule| { &mut m.parameters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SystemParameterRule", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.selector.clear(); + self.parameters.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SystemParameterRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameterRule::new) + static instance: SystemParameterRule = SystemParameterRule { + selector: ::std::string::String::new(), + parameters: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SystemParameterRule { - fn clear(&mut self) { - self.selector.clear(); - self.parameters.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SystemParameterRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SystemParameterRule").unwrap()).clone() } } -impl ::std::fmt::Debug for SystemParameterRule { +impl ::std::fmt::Display for SystemParameterRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SystemParameterRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Define a parameter's name and location. The parameter may be passed as either +/// an HTTP header or a URL query parameter, and if both are passed the behavior +/// is implementation-dependent. +// @@protoc_insertion_point(message:google.api.SystemParameter) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SystemParameter { // message fields + /// Define the name of the parameter, such as "api_key" . It is case sensitive. + // @@protoc_insertion_point(field:google.api.SystemParameter.name) pub name: ::std::string::String, + /// Define the HTTP header name to use for the parameter. It is case + /// insensitive. + // @@protoc_insertion_point(field:google.api.SystemParameter.http_header) pub http_header: ::std::string::String, + /// Define the URL query parameter name to use for the parameter. It is case + /// sensitive. + // @@protoc_insertion_point(field:google.api.SystemParameter.url_query_parameter) pub url_query_parameter: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.SystemParameter.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SystemParameter { @@ -419,105 +340,53 @@ impl SystemParameter { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string http_header = 2; - - - pub fn get_http_header(&self) -> &str { - &self.http_header - } - pub fn clear_http_header(&mut self) { - self.http_header.clear(); - } - - // Param is passed by value, moved - pub fn set_http_header(&mut self, v: ::std::string::String) { - self.http_header = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_http_header(&mut self) -> &mut ::std::string::String { - &mut self.http_header - } - - // Take field - pub fn take_http_header(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.http_header, ::std::string::String::new()) - } - - // string url_query_parameter = 3; - - - pub fn get_url_query_parameter(&self) -> &str { - &self.url_query_parameter - } - pub fn clear_url_query_parameter(&mut self) { - self.url_query_parameter.clear(); - } - - // Param is passed by value, moved - pub fn set_url_query_parameter(&mut self, v: ::std::string::String) { - self.url_query_parameter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url_query_parameter(&mut self) -> &mut ::std::string::String { - &mut self.url_query_parameter - } - - // Take field - pub fn take_url_query_parameter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url_query_parameter, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &SystemParameter| { &m.name }, + |m: &mut SystemParameter| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "http_header", + |m: &SystemParameter| { &m.http_header }, + |m: &mut SystemParameter| { &mut m.http_header }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "url_query_parameter", + |m: &SystemParameter| { &m.url_query_parameter }, + |m: &mut SystemParameter| { &mut m.url_query_parameter }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SystemParameter", + fields, + oneofs, + ) } } impl ::protobuf::Message for SystemParameter { + const NAME: &'static str = "SystemParameter"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.http_header)?; + 18 => { + self.http_header = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url_query_parameter)?; + 26 => { + self.url_query_parameter = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -526,7 +395,7 @@ impl ::protobuf::Message for SystemParameter { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -537,12 +406,12 @@ impl ::protobuf::Message for SystemParameter { if !self.url_query_parameter.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.url_query_parameter); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } @@ -552,92 +421,55 @@ impl ::protobuf::Message for SystemParameter { if !self.url_query_parameter.is_empty() { os.write_string(3, &self.url_query_parameter)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SystemParameter { SystemParameter::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &SystemParameter| { &m.name }, - |m: &mut SystemParameter| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "http_header", - |m: &SystemParameter| { &m.http_header }, - |m: &mut SystemParameter| { &mut m.http_header }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url_query_parameter", - |m: &SystemParameter| { &m.url_query_parameter }, - |m: &mut SystemParameter| { &mut m.url_query_parameter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SystemParameter", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.http_header.clear(); + self.url_query_parameter.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SystemParameter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SystemParameter::new) + static instance: SystemParameter = SystemParameter { + name: ::std::string::String::new(), + http_header: ::std::string::String::new(), + url_query_parameter: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SystemParameter { - fn clear(&mut self) { - self.name.clear(); - self.http_header.clear(); - self.url_query_parameter.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SystemParameter { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SystemParameter").unwrap()).clone() } } -impl ::std::fmt::Debug for SystemParameter { +impl ::std::fmt::Display for SystemParameter { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SystemParameter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -650,12 +482,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x02\x20\x01(\tR\nhttpHeader\x12.\n\x13url_query_parameter\x18\x03\x20\ \x01(\tR\x11urlQueryParameterBv\n\x0ecom.google.apiB\x14SystemParameterP\ rotoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;servi\ - ceconfig\xa2\x02\x04GAPIJ\xc1\x19\n\x06\x12\x04\x0e\0_\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + ceconfig\xa2\x02\x04GAPIJ\xc2\x19\n\x06\x12\x04\x0f\0_\x01\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ @@ -663,20 +495,20 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\ - \x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\05\ - \n\t\n\x02\x08\x08\x12\x03\x14\05\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ - \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08$\x12\x03\x16\0\"\n\xba\x02\n\x02\x04\0\x12\x04\x1e\0=\x01\x1a\xad\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\ + \x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\ + \x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\05\ + \n\t\n\x02\x08\x08\x12\x03\x15\05\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\ + \x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ + \x08$\x12\x03\x17\0\"\n\xba\x02\n\x02\x04\0\x12\x04\x1f\0>\x01\x1a\xad\ \x02\x20###\x20System\x20parameter\x20configuration\n\n\x20A\x20system\ \x20parameter\x20is\x20a\x20special\x20kind\x20of\x20parameter\x20define\ d\x20by\x20the\x20API\n\x20system,\x20not\x20by\x20an\x20individual\x20A\ PI.\x20It\x20is\x20typically\x20mapped\x20to\x20an\x20HTTP\x20header\n\ \x20and/or\x20a\x20URL\x20query\x20parameter.\x20This\x20configuration\ \x20specifies\x20which\x20methods\n\x20change\x20the\x20names\x20of\x20t\ - he\x20system\x20parameters.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x18\n\ - \xd7\x06\n\x04\x04\0\x02\0\x12\x03<\x02)\x1a\xc9\x06\x20Define\x20system\ + he\x20system\x20parameters.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x18\n\ + \xd7\x06\n\x04\x04\0\x02\0\x12\x03=\x02)\x1a\xc9\x06\x20Define\x20system\ \x20parameters.\n\n\x20The\x20parameters\x20defined\x20here\x20will\x20o\ verride\x20the\x20default\x20parameters\n\x20implemented\x20by\x20the\ \x20system.\x20If\x20this\x20field\x20is\x20missing\x20from\x20the\x20se\ @@ -699,16 +531,16 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20http_header:\x20Api-Key2\ \n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\ \x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\ - \x03<\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03<\x0b\x1e\n\x0c\n\x05\x04\ - \0\x02\0\x01\x12\x03<\x1f$\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03<'(\n^\n\ - \x02\x04\x01\x12\x04A\0O\x01\x1aR\x20Define\x20a\x20system\x20parameter\ + \x03=\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03=\x0b\x1e\n\x0c\n\x05\x04\ + \0\x02\0\x01\x12\x03=\x1f$\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03='(\n^\n\ + \x02\x04\x01\x12\x04B\0O\x01\x1aR\x20Define\x20a\x20system\x20parameter\ \x20rule\x20mapping\x20system\x20parameter\x20definitions\x20to\n\x20met\ - hods.\n\n\n\n\x03\x04\x01\x01\x12\x03A\x08\x1b\n\xbf\x01\n\x04\x04\x01\ - \x02\0\x12\x03G\x02\x16\x1a\xb1\x01\x20Selects\x20the\x20methods\x20to\ + hods.\n\n\n\n\x03\x04\x01\x01\x12\x03B\x08\x1b\n\xbe\x01\n\x04\x04\x01\ + \x02\0\x12\x03G\x02\x16\x1a\xb0\x01\x20Selects\x20the\x20methods\x20to\ \x20which\x20this\x20rule\x20applies.\x20Use\x20'*'\x20to\x20indicate\ \x20all\n\x20methods\x20in\x20all\x20APIs.\n\n\x20Refer\x20to\x20[select\ - or][google.api.DocumentationRule.selector]\x20for\x20syntax\n\x20details\ - .\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03G\x02\x08\n\x0c\n\x05\x04\x01\ + or][google.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\ + \n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03G\x02\x08\n\x0c\n\x05\x04\x01\ \x02\0\x01\x12\x03G\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03G\x14\x15\ \n\xa4\x02\n\x04\x04\x01\x02\x01\x12\x03N\x02*\x1a\x96\x02\x20Define\x20\ parameters.\x20Multiple\x20names\x20may\x20be\x20defined\x20for\x20a\x20\ @@ -740,14 +572,33 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03^\x1f\x20b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(SystemParameters::generated_message_descriptor_data()); + messages.push(SystemParameterRule::generated_message_descriptor_data()); + messages.push(SystemParameter::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/usage.rs b/googleapis-raw/src/api/usage.rs index 140b752..5a9a9cf 100644 --- a/googleapis-raw/src/api/usage.rs +++ b/googleapis-raw/src/api/usage.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,43 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/api/usage.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Configuration controlling usage of a service. +// @@protoc_insertion_point(message:google.api.Usage) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Usage { // message fields - pub requirements: ::protobuf::RepeatedField<::std::string::String>, - pub rules: ::protobuf::RepeatedField, + /// 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'. + // @@protoc_insertion_point(field:google.api.Usage.requirements) + pub requirements: ::std::vec::Vec<::std::string::String>, + /// A list of usage rules that apply to individual API methods. + /// + /// **NOTE:** All service configuration rules follow "last one wins" order. + // @@protoc_insertion_point(field:google.api.Usage.rules) + pub rules: ::std::vec::Vec, + /// The full resource name of a channel used for sending notifications to the + /// service producer. + /// + /// Google Service Management currently only supports + /// [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + /// channel. To use Google Cloud Pub/Sub as the channel, this must be the name + /// of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + /// documented in https://cloud.google.com/pubsub/docs/overview. + // @@protoc_insertion_point(field:google.api.Usage.producer_notification_channel) pub producer_notification_channel: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.Usage.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Usage { @@ -45,108 +66,53 @@ impl Usage { ::std::default::Default::default() } - // repeated string requirements = 1; - - - pub fn get_requirements(&self) -> &[::std::string::String] { - &self.requirements - } - pub fn clear_requirements(&mut self) { - self.requirements.clear(); - } - - // Param is passed by value, moved - pub fn set_requirements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.requirements = v; - } - - // Mutable pointer to the field. - pub fn mut_requirements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.requirements - } - - // Take field - pub fn take_requirements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.requirements, ::protobuf::RepeatedField::new()) - } - - // repeated .google.api.UsageRule rules = 6; - - - pub fn get_rules(&self) -> &[UsageRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // string producer_notification_channel = 7; - - - pub fn get_producer_notification_channel(&self) -> &str { - &self.producer_notification_channel - } - pub fn clear_producer_notification_channel(&mut self) { - self.producer_notification_channel.clear(); - } - - // Param is passed by value, moved - pub fn set_producer_notification_channel(&mut self, v: ::std::string::String) { - self.producer_notification_channel = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_producer_notification_channel(&mut self) -> &mut ::std::string::String { - &mut self.producer_notification_channel - } - - // Take field - pub fn take_producer_notification_channel(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.producer_notification_channel, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "requirements", + |m: &Usage| { &m.requirements }, + |m: &mut Usage| { &mut m.requirements }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Usage| { &m.rules }, + |m: &mut Usage| { &mut m.rules }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "producer_notification_channel", + |m: &Usage| { &m.producer_notification_channel }, + |m: &mut Usage| { &mut m.producer_notification_channel }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Usage", + fields, + oneofs, + ) } } impl ::protobuf::Message for Usage { + const NAME: &'static str = "Usage"; + fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.requirements)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.requirements.push(is.read_string()?); }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; + 50 => { + self.rules.push(is.read_message()?); }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.producer_notification_channel)?; + 58 => { + self.producer_notification_channel = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -155,132 +121,107 @@ impl ::protobuf::Message for Usage { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.requirements { my_size += ::protobuf::rt::string_size(1, &value); }; for value in &self.rules { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.producer_notification_channel.is_empty() { my_size += ::protobuf::rt::string_size(7, &self.producer_notification_channel); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.requirements { os.write_string(1, &v)?; }; for v in &self.rules { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; }; if !self.producer_notification_channel.is_empty() { os.write_string(7, &self.producer_notification_channel)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Usage { Usage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "requirements", - |m: &Usage| { &m.requirements }, - |m: &mut Usage| { &mut m.requirements }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Usage| { &m.rules }, - |m: &mut Usage| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "producer_notification_channel", - |m: &Usage| { &m.producer_notification_channel }, - |m: &mut Usage| { &mut m.producer_notification_channel }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Usage", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.requirements.clear(); + self.rules.clear(); + self.producer_notification_channel.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Usage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Usage::new) + static instance: Usage = Usage { + requirements: ::std::vec::Vec::new(), + rules: ::std::vec::Vec::new(), + producer_notification_channel: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Usage { - fn clear(&mut self) { - self.requirements.clear(); - self.rules.clear(); - self.producer_notification_channel.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Usage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Usage").unwrap()).clone() } } -impl ::std::fmt::Debug for Usage { +impl ::std::fmt::Display for Usage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Usage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.api.UsageRule) +#[derive(PartialEq,Clone,Default,Debug)] pub struct UsageRule { // message fields + /// Selects the methods to which this rule applies. Use '*' to indicate all + /// methods in all APIs. + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + // @@protoc_insertion_point(field:google.api.UsageRule.selector) pub selector: ::std::string::String, + /// If true, the selected method allows unregistered calls, e.g. calls + /// that don't identify any user or application. + // @@protoc_insertion_point(field:google.api.UsageRule.allow_unregistered_calls) pub allow_unregistered_calls: bool, + /// If true, the selected method should skip service control and the control + /// plane features, such as quota and billing, will not be available. + /// This flag is used by Google Cloud Endpoints to bypass checks for internal + /// methods, such as service health check methods. + // @@protoc_insertion_point(field:google.api.UsageRule.skip_service_control) pub skip_service_control: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.api.UsageRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a UsageRule { @@ -294,91 +235,53 @@ impl UsageRule { ::std::default::Default::default() } - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // bool allow_unregistered_calls = 2; - - - pub fn get_allow_unregistered_calls(&self) -> bool { - self.allow_unregistered_calls - } - pub fn clear_allow_unregistered_calls(&mut self) { - self.allow_unregistered_calls = false; - } - - // Param is passed by value, moved - pub fn set_allow_unregistered_calls(&mut self, v: bool) { - self.allow_unregistered_calls = v; - } - - // bool skip_service_control = 3; - - - pub fn get_skip_service_control(&self) -> bool { - self.skip_service_control - } - pub fn clear_skip_service_control(&mut self) { - self.skip_service_control = false; - } - - // Param is passed by value, moved - pub fn set_skip_service_control(&mut self, v: bool) { - self.skip_service_control = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &UsageRule| { &m.selector }, + |m: &mut UsageRule| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "allow_unregistered_calls", + |m: &UsageRule| { &m.allow_unregistered_calls }, + |m: &mut UsageRule| { &mut m.allow_unregistered_calls }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "skip_service_control", + |m: &UsageRule| { &m.skip_service_control }, + |m: &mut UsageRule| { &mut m.skip_service_control }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UsageRule", + fields, + oneofs, + ) } } impl ::protobuf::Message for UsageRule { + const NAME: &'static str = "UsageRule"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_unregistered_calls = tmp; + 16 => { + self.allow_unregistered_calls = is.read_bool()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.skip_service_control = tmp; + 24 => { + self.skip_service_control = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -387,23 +290,23 @@ impl ::protobuf::Message for UsageRule { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.selector.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.selector); } if self.allow_unregistered_calls != false { - my_size += 2; + my_size += 1 + 1; } if self.skip_service_control != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.selector.is_empty() { os.write_string(1, &self.selector)?; } @@ -413,92 +316,55 @@ impl ::protobuf::Message for UsageRule { if self.skip_service_control != false { os.write_bool(3, self.skip_service_control)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> UsageRule { UsageRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &UsageRule| { &m.selector }, - |m: &mut UsageRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_unregistered_calls", - |m: &UsageRule| { &m.allow_unregistered_calls }, - |m: &mut UsageRule| { &mut m.allow_unregistered_calls }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "skip_service_control", - |m: &UsageRule| { &m.skip_service_control }, - |m: &mut UsageRule| { &mut m.skip_service_control }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UsageRule", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.selector.clear(); + self.allow_unregistered_calls = false; + self.skip_service_control = false; + self.special_fields.clear(); } fn default_instance() -> &'static UsageRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UsageRule::new) + static instance: UsageRule = UsageRule { + selector: ::std::string::String::new(), + allow_unregistered_calls: false, + skip_service_control: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UsageRule { - fn clear(&mut self) { - self.selector.clear(); - self.allow_unregistered_calls = false; - self.skip_service_control = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UsageRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UsageRule").unwrap()).clone() } } -impl ::std::fmt::Debug for UsageRule { +impl ::std::fmt::Display for UsageRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for UsageRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -511,8 +377,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x16allowUnregisteredCalls\x120\n\x14skip_service_control\x18\x03\x20\ \x01(\x08R\x12skipServiceControlBl\n\x0ecom.google.apiB\nUsageProtoP\x01\ ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\ - \xa2\x02\x04GAPIJ\xa0\x1c\n\x06\x12\x04\x0e\0_\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\ + \xa2\x02\x04GAPIJ\x82\x1a\n\x06\x12\x04\x0f\0Y\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -524,93 +390,106 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\ - \n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\ - \x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0+\n\t\n\x02\x08\ - \x08\x12\x03\x14\0+\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\ - \x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\ - \"\n;\n\x02\x04\0\x12\x04\x19\03\x01\x1a/\x20Configuration\x20controllin\ - g\x20usage\x20of\x20a\x20service.\n\n\n\n\x03\x04\0\x01\x12\x03\x19\x08\ - \r\n\xff\x03\n\x04\x04\0\x02\0\x12\x03#\x02#\x1a\xf1\x03\x20Requirements\ - \x20that\x20must\x20be\x20satisfied\x20before\x20a\x20consumer\x20projec\ - t\x20can\x20use\x20the\n\x20service.\x20Each\x20requirement\x20is\x20of\ - \x20the\x20form\x20/;\n\x20for\x20example\ - \x20'serviceusage.googleapis.com/billing-enabled'.\n\n\x20For\x20Google\ - \x20APIs,\x20a\x20Terms\x20of\x20Service\x20requirement\x20must\x20be\ - \x20included\x20here.\n\x20Google\x20Cloud\x20APIs\x20must\x20include\ - \x20\"serviceusage.googleapis.com/tos/cloud\".\n\x20Other\x20Google\x20A\ - PIs\x20should\x20include\n\x20\"serviceusage.googleapis.com/tos/universa\ - l\".\x20Additional\x20ToS\x20can\x20be\n\x20included\x20based\x20on\x20t\ - he\x20business\x20needs.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03#\x02\n\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03#\x0b\x11\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03#\x12\x1e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03#!\"\n\x95\x01\n\ - \x04\x04\0\x02\x01\x12\x03(\x02\x1f\x1a\x87\x01\x20A\x20list\x20of\x20us\ - age\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\ - \x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\ - \"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\ - \x03(\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03(\x0b\x14\n\x0c\n\x05\ - \x04\0\x02\x01\x01\x12\x03(\x15\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03(\x1d\x1e\n\xbd\x03\n\x04\x04\0\x02\x02\x12\x032\x02+\x1a\xaf\x03\ - \x20The\x20full\x20resource\x20name\x20of\x20a\x20channel\x20used\x20for\ - \x20sending\x20notifications\x20to\x20the\n\x20service\x20producer.\n\n\ - \x20Google\x20Service\x20Management\x20currently\x20only\x20supports\n\ - \x20[Google\x20Cloud\x20Pub/Sub](https://cloud.google.com/pubsub)\x20as\ - \x20a\x20notification\n\x20channel.\x20To\x20use\x20Google\x20Cloud\x20P\ - ub/Sub\x20as\x20the\x20channel,\x20this\x20must\x20be\x20the\x20name\n\ - \x20of\x20a\x20Cloud\x20Pub/Sub\x20topic\x20that\x20uses\x20the\x20Cloud\ - \x20Pub/Sub\x20topic\x20name\x20format\n\x20documented\x20in\x20https://\ - cloud.google.com/pubsub/docs/overview.\n\n\x0c\n\x05\x04\0\x02\x02\x05\ - \x12\x032\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x032\t&\n\x0c\n\x05\ - \x04\0\x02\x02\x03\x12\x032)*\n\xc0\x06\n\x02\x04\x01\x12\x04N\0_\x01\ - \x1a\xb3\x06\x20Usage\x20configuration\x20rules\x20for\x20the\x20service\ - .\n\n\x20NOTE:\x20Under\x20development.\n\n\n\x20Use\x20this\x20rule\x20\ - to\x20configure\x20unregistered\x20calls\x20for\x20the\x20service.\x20Un\ - registered\n\x20calls\x20are\x20calls\x20that\x20do\x20not\x20contain\ - \x20consumer\x20project\x20identity.\n\x20(Example:\x20calls\x20that\x20\ - do\x20not\x20contain\x20an\x20API\x20key).\n\x20By\x20default,\x20API\ - \x20methods\x20do\x20not\x20allow\x20unregistered\x20calls,\x20and\x20ea\ - ch\x20method\x20call\n\x20must\x20be\x20identified\x20by\x20a\x20consume\ - r\x20project\x20identity.\x20Use\x20this\x20rule\x20to\n\x20allow/disall\ - ow\x20unregistered\x20calls.\n\n\x20Example\x20of\x20an\x20API\x20that\ - \x20wants\x20to\x20allow\x20unregistered\x20calls\x20for\x20entire\x20se\ - rvice.\n\n\x20\x20\x20\x20\x20usage:\n\x20\x20\x20\x20\x20\x20\x20rules:\ - \n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20allow_unregistered_calls:\x20true\n\n\x20Example\x20\ - of\x20a\x20method\x20that\x20wants\x20to\x20allow\x20unregistered\x20cal\ - ls.\n\n\x20\x20\x20\x20\x20usage:\n\x20\x20\x20\x20\x20\x20\x20rules:\n\ - \x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"google.example.library.v\ - 1.LibraryService.CreateBook\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20allow\ - _unregistered_calls:\x20true\n\n\n\n\x03\x04\x01\x01\x12\x03N\x08\x11\n\ - \xbf\x01\n\x04\x04\x01\x02\0\x12\x03T\x02\x16\x1a\xb1\x01\x20Selects\x20\ - the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\x20Use\x20'*'\ - \x20to\x20indicate\x20all\n\x20methods\x20in\x20all\x20APIs.\n\n\x20Refe\ - r\x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\x20s\ - yntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03T\x02\x08\n\ - \x0c\n\x05\x04\x01\x02\0\x01\x12\x03T\t\x11\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x03T\x14\x15\n\x7f\n\x04\x04\x01\x02\x01\x12\x03X\x02$\x1ar\x20\ - If\x20true,\x20the\x20selected\x20method\x20allows\x20unregistered\x20ca\ - lls,\x20e.g.\x20calls\n\x20that\x20don't\x20identify\x20any\x20user\x20o\ - r\x20application.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03X\x02\x06\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03X\x07\x1f\n\x0c\n\x05\x04\x01\x02\ - \x01\x03\x12\x03X\"#\n\x96\x02\n\x04\x04\x01\x02\x02\x12\x03^\x02\x20\ - \x1a\x88\x02\x20If\x20true,\x20the\x20selected\x20method\x20should\x20sk\ - ip\x20service\x20control\x20and\x20the\x20control\n\x20plane\x20features\ - ,\x20such\x20as\x20quota\x20and\x20billing,\x20will\x20not\x20be\x20avai\ - lable.\n\x20This\x20flag\x20is\x20used\x20by\x20Google\x20Cloud\x20Endpo\ - ints\x20to\x20bypass\x20checks\x20for\x20internal\n\x20methods,\x20such\ - \x20as\x20service\x20health\x20check\x20methods.\n\n\x0c\n\x05\x04\x01\ - \x02\x02\x05\x12\x03^\x02\x06\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03^\ - \x07\x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03^\x1e\x1fb\x06proto3\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\ + \\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\ + \n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0+\n\t\n\x02\ + \x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\ + \x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\ + \x17\0\"\n;\n\x02\x04\0\x12\x04\x1a\0.\x01\x1a/\x20Configuration\x20cont\ + rolling\x20usage\x20of\x20a\x20service.\n\n\n\n\x03\x04\0\x01\x12\x03\ + \x1a\x08\r\n\xe0\x01\n\x04\x04\0\x02\0\x12\x03\x1e\x02#\x1a\xd2\x01\x20R\ + equirements\x20that\x20must\x20be\x20satisfied\x20before\x20a\x20consume\ + r\x20project\x20can\x20use\x20the\n\x20service.\x20Each\x20requirement\ + \x20is\x20of\x20the\x20form\x20/;\n\x20for\ + \x20example\x20'serviceusage.googleapis.com/billing-enabled'.\n\n\x0c\n\ + \x05\x04\0\x02\0\x04\x12\x03\x1e\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ + \x03\x1e\x0b\x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1e\x12\x1e\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03\x1e!\"\n\x95\x01\n\x04\x04\0\x02\x01\x12\ + \x03#\x02\x1f\x1a\x87\x01\x20A\x20list\x20of\x20usage\x20rules\x20that\ + \x20apply\x20to\x20individual\x20API\x20methods.\n\n\x20**NOTE:**\x20All\ + \x20service\x20configuration\x20rules\x20follow\x20\"last\x20one\x20wins\ + \"\x20order.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03#\x02\n\n\x0c\n\x05\ + \x04\0\x02\x01\x06\x12\x03#\x0b\x14\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ + \x03#\x15\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03#\x1d\x1e\n\xbd\x03\n\ + \x04\x04\0\x02\x02\x12\x03-\x02+\x1a\xaf\x03\x20The\x20full\x20resource\ + \x20name\x20of\x20a\x20channel\x20used\x20for\x20sending\x20notification\ + s\x20to\x20the\n\x20service\x20producer.\n\n\x20Google\x20Service\x20Man\ + agement\x20currently\x20only\x20supports\n\x20[Google\x20Cloud\x20Pub/Su\ + b](https://cloud.google.com/pubsub)\x20as\x20a\x20notification\n\x20chan\ + nel.\x20To\x20use\x20Google\x20Cloud\x20Pub/Sub\x20as\x20the\x20channel,\ + \x20this\x20must\x20be\x20the\x20name\n\x20of\x20a\x20Cloud\x20Pub/Sub\ + \x20topic\x20that\x20uses\x20the\x20Cloud\x20Pub/Sub\x20topic\x20name\ + \x20format\n\x20documented\x20in\x20https://cloud.google.com/pubsub/docs\ + /overview.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03-\x02\x08\n\x0c\n\x05\ + \x04\0\x02\x02\x01\x12\x03-\t&\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03-)*\ + \n\xc0\x06\n\x02\x04\x01\x12\x04I\0Y\x01\x1a\xb3\x06\x20Usage\x20configu\ + ration\x20rules\x20for\x20the\x20service.\n\n\x20NOTE:\x20Under\x20devel\ + opment.\n\n\n\x20Use\x20this\x20rule\x20to\x20configure\x20unregistered\ + \x20calls\x20for\x20the\x20service.\x20Unregistered\n\x20calls\x20are\ + \x20calls\x20that\x20do\x20not\x20contain\x20consumer\x20project\x20iden\ + tity.\n\x20(Example:\x20calls\x20that\x20do\x20not\x20contain\x20an\x20A\ + PI\x20key).\n\x20By\x20default,\x20API\x20methods\x20do\x20not\x20allow\ + \x20unregistered\x20calls,\x20and\x20each\x20method\x20call\n\x20must\ + \x20be\x20identified\x20by\x20a\x20consumer\x20project\x20identity.\x20U\ + se\x20this\x20rule\x20to\n\x20allow/disallow\x20unregistered\x20calls.\n\ + \n\x20Example\x20of\x20an\x20API\x20that\x20wants\x20to\x20allow\x20unre\ + gistered\x20calls\x20for\x20entire\x20service.\n\n\x20\x20\x20\x20\x20us\ + age:\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\ + \x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20allow_unregi\ + stered_calls:\x20true\n\n\x20Example\x20of\x20a\x20method\x20that\x20wan\ + ts\x20to\x20allow\x20unregistered\x20calls.\n\n\x20\x20\x20\x20\x20usage\ + :\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20\ + selector:\x20\"google.example.library.v1.LibraryService.CreateBook\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20allow_unregistered_calls:\x20true\n\ + \n\n\n\x03\x04\x01\x01\x12\x03I\x08\x11\n\xbe\x01\n\x04\x04\x01\x02\0\ + \x12\x03N\x02\x16\x1a\xb0\x01\x20Selects\x20the\x20methods\x20to\x20whic\ + h\x20this\x20rule\x20applies.\x20Use\x20'*'\x20to\x20indicate\x20all\n\ + \x20methods\x20in\x20all\x20APIs.\n\n\x20Refer\x20to\x20[selector][googl\ + e.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\n\n\x0c\n\ + \x05\x04\x01\x02\0\x05\x12\x03N\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\ + \x12\x03N\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03N\x14\x15\n\x7f\n\ + \x04\x04\x01\x02\x01\x12\x03R\x02$\x1ar\x20If\x20true,\x20the\x20selecte\ + d\x20method\x20allows\x20unregistered\x20calls,\x20e.g.\x20calls\n\x20th\ + at\x20don't\x20identify\x20any\x20user\x20or\x20application.\n\n\x0c\n\ + \x05\x04\x01\x02\x01\x05\x12\x03R\x02\x06\n\x0c\n\x05\x04\x01\x02\x01\ + \x01\x12\x03R\x07\x1f\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03R\"#\n\x96\ + \x02\n\x04\x04\x01\x02\x02\x12\x03X\x02\x20\x1a\x88\x02\x20If\x20true,\ + \x20the\x20selected\x20method\x20should\x20skip\x20service\x20control\ + \x20and\x20the\x20control\n\x20plane\x20features,\x20such\x20as\x20quota\ + \x20and\x20billing,\x20will\x20not\x20be\x20available.\n\x20This\x20flag\ + \x20is\x20used\x20by\x20Google\x20Cloud\x20Endpoints\x20to\x20bypass\x20\ + checks\x20for\x20internal\n\x20methods,\x20such\x20as\x20service\x20heal\ + th\x20check\x20methods.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03X\x02\ + \x06\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03X\x07\x1b\n\x0c\n\x05\x04\ + \x01\x02\x02\x03\x12\x03X\x1e\x1fb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(Usage::generated_message_descriptor_data()); + messages.push(UsageRule::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/api/visibility.rs b/googleapis-raw/src/api/visibility.rs deleted file mode 100644 index 46b73a9..0000000 --- a/googleapis-raw/src/api/visibility.rs +++ /dev/null @@ -1,531 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/api/visibility.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Visibility { - // message fields - pub rules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Visibility { - fn default() -> &'a Visibility { - ::default_instance() - } -} - -impl Visibility { - pub fn new() -> Visibility { - ::std::default::Default::default() - } - - // repeated .google.api.VisibilityRule rules = 1; - - - pub fn get_rules(&self) -> &[VisibilityRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Visibility { - fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Visibility { - Visibility::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &Visibility| { &m.rules }, - |m: &mut Visibility| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Visibility", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Visibility { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Visibility::new) - } -} - -impl ::protobuf::Clear for Visibility { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Visibility { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Visibility { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VisibilityRule { - // message fields - pub selector: ::std::string::String, - pub restriction: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VisibilityRule { - fn default() -> &'a VisibilityRule { - ::default_instance() - } -} - -impl VisibilityRule { - pub fn new() -> VisibilityRule { - ::std::default::Default::default() - } - - // string selector = 1; - - - pub fn get_selector(&self) -> &str { - &self.selector - } - pub fn clear_selector(&mut self) { - self.selector.clear(); - } - - // Param is passed by value, moved - pub fn set_selector(&mut self, v: ::std::string::String) { - self.selector = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_selector(&mut self) -> &mut ::std::string::String { - &mut self.selector - } - - // Take field - pub fn take_selector(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.selector, ::std::string::String::new()) - } - - // string restriction = 2; - - - pub fn get_restriction(&self) -> &str { - &self.restriction - } - pub fn clear_restriction(&mut self) { - self.restriction.clear(); - } - - // Param is passed by value, moved - pub fn set_restriction(&mut self, v: ::std::string::String) { - self.restriction = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_restriction(&mut self) -> &mut ::std::string::String { - &mut self.restriction - } - - // Take field - pub fn take_restriction(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.restriction, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VisibilityRule { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.selector)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.restriction)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.selector.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.selector); - } - if !self.restriction.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.restriction); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.selector.is_empty() { - os.write_string(1, &self.selector)?; - } - if !self.restriction.is_empty() { - os.write_string(2, &self.restriction)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VisibilityRule { - VisibilityRule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "selector", - |m: &VisibilityRule| { &m.selector }, - |m: &mut VisibilityRule| { &mut m.selector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "restriction", - |m: &VisibilityRule| { &m.restriction }, - |m: &mut VisibilityRule| { &mut m.restriction }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VisibilityRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VisibilityRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VisibilityRule::new) - } -} - -impl ::protobuf::Clear for VisibilityRule { - fn clear(&mut self) { - self.selector.clear(); - self.restriction.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VisibilityRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VisibilityRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -/// Extension fields -pub mod exts { - - pub const enum_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; - - pub const value_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumValueOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; - - pub const field_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; - - pub const message_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; - - pub const method_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; - - pub const api_visibility: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 72295727, phantom: ::std::marker::PhantomData }; -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/api/visibility.proto\x12\ngoogle.api\x1a\x20google/protobuf\ - /descriptor.proto\">\n\nVisibility\x120\n\x05rules\x18\x01\x20\x03(\x0b2\ - \x1a.google.api.VisibilityRuleR\x05rules\"N\n\x0eVisibilityRule\x12\x1a\ - \n\x08selector\x18\x01\x20\x01(\tR\x08selector\x12\x20\n\x0brestriction\ - \x18\x02\x20\x01(\tR\x0brestriction:d\n\x0fenum_visibility\x18\xaf\xca\ - \xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12\x1c.google.protob\ - uf.EnumOptionsR\x0eenumVisibility:k\n\x10value_visibility\x18\xaf\xca\ - \xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12!.google.protobuf.\ - EnumValueOptionsR\x0fvalueVisibility:g\n\x10field_visibility\x18\xaf\xca\ - \xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12\x1d.google.protob\ - uf.FieldOptionsR\x0ffieldVisibility:m\n\x12message_visibility\x18\xaf\ - \xca\xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12\x1f.google.pr\ - otobuf.MessageOptionsR\x11messageVisibility:j\n\x11method_visibility\x18\ - \xaf\xca\xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12\x1e.googl\ - e.protobuf.MethodOptionsR\x10methodVisibility:e\n\x0eapi_visibility\x18\ - \xaf\xca\xbc\"\x20\x01(\x0b2\x1a.google.api.VisibilityRule\x12\x1f.googl\ - e.protobuf.ServiceOptionsR\rapiVisibilityBn\n\x0ecom.google.apiB\x0fVisi\ - bilityProtoP\x01Z?google.golang.org/genproto/googleapis/api/visibility;v\ - isibility\xf8\x01\x01\xa2\x02\x04GAPIJ\x9e\x1a\n\x06\x12\x04\x0e\0p\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ - \x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\x12\ - \x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0V\n\t\n\x02\x08\x0b\x12\x03\ - \x15\0V\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\ - \n\x08\n\x01\x08\x12\x03\x17\00\n\t\n\x02\x08\x08\x12\x03\x17\00\n\x08\n\ - \x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\ - \x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\ - \x1b\0\x1e\x01\n\"\n\x02\x07\0\x12\x03\x1d\x027\x1a\x17\x20See\x20`Visib\ - ilityRule`.\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\x07\"\n\n\n\x03\x07\0\x06\ - \x12\x03\x1d\x02\x1b\n\n\n\x03\x07\0\x01\x12\x03\x1d\x1c+\n\n\n\x03\x07\ - \0\x03\x12\x03\x1d.6\n\t\n\x01\x07\x12\x04\x20\0#\x01\n\"\n\x02\x07\x01\ - \x12\x03\"\x028\x1a\x17\x20See\x20`VisibilityRule`.\n\n\n\n\x03\x07\x01\ - \x02\x12\x03\x20\x07'\n\n\n\x03\x07\x01\x06\x12\x03\"\x02\x1b\n\n\n\x03\ - \x07\x01\x01\x12\x03\"\x1c,\n\n\n\x03\x07\x01\x03\x12\x03\"/7\n\t\n\x01\ - \x07\x12\x04%\0(\x01\n\"\n\x02\x07\x02\x12\x03'\x028\x1a\x17\x20See\x20`\ - VisibilityRule`.\n\n\n\n\x03\x07\x02\x02\x12\x03%\x07#\n\n\n\x03\x07\x02\ - \x06\x12\x03'\x02\x1b\n\n\n\x03\x07\x02\x01\x12\x03'\x1c,\n\n\n\x03\x07\ - \x02\x03\x12\x03'/7\n\t\n\x01\x07\x12\x04*\0-\x01\n\"\n\x02\x07\x03\x12\ - \x03,\x02:\x1a\x17\x20See\x20`VisibilityRule`.\n\n\n\n\x03\x07\x03\x02\ - \x12\x03*\x07%\n\n\n\x03\x07\x03\x06\x12\x03,\x02\x1b\n\n\n\x03\x07\x03\ - \x01\x12\x03,\x1c.\n\n\n\x03\x07\x03\x03\x12\x03,19\n\t\n\x01\x07\x12\ - \x04/\02\x01\n\"\n\x02\x07\x04\x12\x031\x029\x1a\x17\x20See\x20`Visibili\ - tyRule`.\n\n\n\n\x03\x07\x04\x02\x12\x03/\x07$\n\n\n\x03\x07\x04\x06\x12\ - \x031\x02\x1b\n\n\n\x03\x07\x04\x01\x12\x031\x1c-\n\n\n\x03\x07\x04\x03\ - \x12\x03108\n\t\n\x01\x07\x12\x044\07\x01\n\"\n\x02\x07\x05\x12\x036\x02\ - 6\x1a\x17\x20See\x20`VisibilityRule`.\n\n\n\n\x03\x07\x05\x02\x12\x034\ - \x07%\n\n\n\x03\x07\x05\x06\x12\x036\x02\x1b\n\n\n\x03\x07\x05\x01\x12\ - \x036\x1c*\n\n\n\x03\x07\x05\x03\x12\x036-5\n\xa3\x07\n\x02\x04\0\x12\ - \x04P\0U\x01\x1a\x96\x07\x20`Visibility`\x20restricts\x20service\x20cons\ - umer's\x20access\x20to\x20service\x20elements,\n\x20such\x20as\x20whethe\ - r\x20an\x20application\x20can\x20call\x20a\x20visibility-restricted\x20m\ - ethod.\n\x20The\x20restriction\x20is\x20expressed\x20by\x20applying\x20v\ - isibility\x20labels\x20on\x20service\n\x20elements.\x20The\x20visibility\ - \x20labels\x20are\x20elsewhere\x20linked\x20to\x20service\x20consumers.\ - \n\n\x20A\x20service\x20can\x20define\x20multiple\x20visibility\x20label\ - s,\x20but\x20a\x20service\x20consumer\n\x20should\x20be\x20granted\x20at\ - \x20most\x20one\x20visibility\x20label.\x20Multiple\x20visibility\n\x20l\ - abels\x20for\x20a\x20single\x20service\x20consumer\x20are\x20not\x20supp\ - orted.\n\n\x20If\x20an\x20element\x20and\x20all\x20its\x20parents\x20hav\ - e\x20no\x20visibility\x20label,\x20its\x20visibility\n\x20is\x20uncondit\ - ionally\x20granted.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20visibility:\n\ - \x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20sel\ - ector:\x20google.calendar.Calendar.EnhancedSearch\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20restriction:\x20PREVIEW\n\x20\x20\x20\x20\x20\x20\x20-\ - \x20selector:\x20google.calendar.Calendar.Delegate\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20restriction:\x20INTERNAL\n\n\x20Here,\x20all\x20methods\ - \x20are\x20publicly\x20visible\x20except\x20for\x20the\x20restricted\x20\ - methods\n\x20EnhancedSearch\x20and\x20Delegate.\n\n\n\n\x03\x04\0\x01\ - \x12\x03P\x08\x12\n\x9b\x01\n\x04\x04\0\x02\0\x12\x03T\x02$\x1a\x8d\x01\ - \x20A\x20list\x20of\x20visibility\x20rules\x20that\x20apply\x20to\x20ind\ - ividual\x20API\x20elements.\n\n\x20**NOTE:**\x20All\x20service\x20config\ - uration\x20rules\x20follow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\ - \n\x05\x04\0\x02\0\x04\x12\x03T\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\ - \x03T\x0b\x19\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03T\x1a\x1f\n\x0c\n\x05\ - \x04\0\x02\0\x03\x12\x03T\"#\na\n\x02\x04\x01\x12\x04Y\0p\x01\x1aU\x20A\ - \x20visibility\x20rule\x20provides\x20visibility\x20configuration\x20for\ - \x20an\x20individual\x20API\n\x20element.\n\n\n\n\x03\x04\x01\x01\x12\ - \x03Y\x08\x16\n\xac\x01\n\x04\x04\x01\x02\0\x12\x03^\x02\x16\x1a\x9e\x01\ - \x20Selects\x20methods,\x20messages,\x20fields,\x20enums,\x20etc.\x20to\ - \x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selector][g\ - oogle.api.DocumentationRule.selector]\x20for\x20syntax\n\x20details.\n\n\ - \x0c\n\x05\x04\x01\x02\0\x05\x12\x03^\x02\x08\n\x0c\n\x05\x04\x01\x02\0\ - \x01\x12\x03^\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03^\x14\x15\n\x8d\ - \x04\n\x04\x04\x01\x02\x01\x12\x03o\x02\x19\x1a\xff\x03\x20A\x20comma-se\ - parated\x20list\x20of\x20visibility\x20labels\x20that\x20apply\x20to\x20\ - the\x20`selector`.\n\x20Any\x20of\x20the\x20listed\x20labels\x20can\x20b\ - e\x20used\x20to\x20grant\x20the\x20visibility.\n\n\x20If\x20a\x20rule\ - \x20has\x20multiple\x20labels,\x20removing\x20one\x20of\x20the\x20labels\ - \x20but\x20not\x20all\x20of\n\x20them\x20can\x20break\x20clients.\n\n\ - \x20Example:\n\n\x20\x20\x20\x20\x20visibility:\n\x20\x20\x20\x20\x20\ - \x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20google.cal\ - endar.Calendar.EnhancedSearch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20restr\ - iction:\x20INTERNAL,\x20PREVIEW\n\n\x20Removing\x20INTERNAL\x20from\x20t\ - his\x20restriction\x20will\x20break\x20clients\x20that\x20rely\x20on\n\ - \x20this\x20method\x20and\x20only\x20had\x20access\x20to\x20it\x20throug\ - h\x20INTERNAL.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03o\x02\x08\n\x0c\ - \n\x05\x04\x01\x02\x01\x01\x12\x03o\t\x14\n\x0c\n\x05\x04\x01\x02\x01\ - \x03\x12\x03o\x17\x18b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs index c48b2d8..80dc5c3 100644 --- a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs +++ b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,43 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/bigtable/admin/v2/bigtable_instance_admin.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.CreateInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateInstanceRequest { // message fields + /// The unique name of the project in which to create the new instance. + /// Values are of the form `projects/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceRequest.parent) pub parent: ::std::string::String, + /// The ID to be used when referring to the new instance within its project, + /// e.g., just `myinstance` rather than + /// `projects/myproject/instances/myinstance`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceRequest.instance_id) pub instance_id: ::std::string::String, - pub instance: ::protobuf::SingularPtrField, + /// The instance to create. + /// Fields marked `OutputOnly` must be left blank. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceRequest.instance) + pub instance: ::protobuf::MessageField, + /// The clusters to be created within the instance, mapped by desired + /// cluster ID, e.g., just `mycluster` rather than + /// `projects/myproject/instances/myinstance/clusters/mycluster`. + /// Fields marked `OutputOnly` must be left blank. + /// Currently, at most two clusters can be specified. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceRequest.clusters) pub clusters: ::std::collections::HashMap<::std::string::String, super::instance::Cluster>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateInstanceRequest { @@ -46,145 +66,73 @@ impl CreateInstanceRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string instance_id = 2; - - - pub fn get_instance_id(&self) -> &str { - &self.instance_id - } - pub fn clear_instance_id(&mut self) { - self.instance_id.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id(&mut self, v: ::std::string::String) { - self.instance_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id(&mut self) -> &mut ::std::string::String { - &mut self.instance_id - } - - // Take field - pub fn take_instance_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Instance instance = 3; - - - pub fn get_instance(&self) -> &super::instance::Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: super::instance::Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut super::instance::Instance { - if self.instance.is_none() { - self.instance.set_default(); - } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> super::instance::Instance { - self.instance.take().unwrap_or_else(|| super::instance::Instance::new()) - } - - // repeated .google.bigtable.admin.v2.CreateInstanceRequest.ClustersEntry clusters = 4; - - - pub fn get_clusters(&self) -> &::std::collections::HashMap<::std::string::String, super::instance::Cluster> { - &self.clusters - } - pub fn clear_clusters(&mut self) { - self.clusters.clear(); - } - - // Param is passed by value, moved - pub fn set_clusters(&mut self, v: ::std::collections::HashMap<::std::string::String, super::instance::Cluster>) { - self.clusters = v; - } - - // Mutable pointer to the field. - pub fn mut_clusters(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::instance::Cluster> { - &mut self.clusters - } - - // Take field - pub fn take_clusters(&mut self) -> ::std::collections::HashMap<::std::string::String, super::instance::Cluster> { - ::std::mem::replace(&mut self.clusters, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateInstanceRequest| { &m.parent }, + |m: &mut CreateInstanceRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "instance_id", + |m: &CreateInstanceRequest| { &m.instance_id }, + |m: &mut CreateInstanceRequest| { &mut m.instance_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::Instance>( + "instance", + |m: &CreateInstanceRequest| { &m.instance }, + |m: &mut CreateInstanceRequest| { &mut m.instance }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "clusters", + |m: &CreateInstanceRequest| { &m.clusters }, + |m: &mut CreateInstanceRequest| { &mut m.clusters }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateInstanceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateInstanceRequest { + const NAME: &'static str = "CreateInstanceRequest"; + fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; - }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.clusters)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; + }, + 18 => { + self.instance_id = is.read_string()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; + }, + 34 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.clusters.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -193,7 +141,7 @@ impl ::protobuf::Message for CreateInstanceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); @@ -201,130 +149,101 @@ impl ::protobuf::Message for CreateInstanceRequest { if !self.instance_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.instance_id); } - if let Some(ref v) = self.instance.as_ref() { + if let Some(v) = self.instance.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(4, &self.clusters); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.clusters { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } if !self.instance_id.is_empty() { os.write_string(2, &self.instance_id)?; } - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(4, &self.clusters, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + for (k, v) in &self.clusters { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(34)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateInstanceRequest { CreateInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateInstanceRequest| { &m.parent }, - |m: &mut CreateInstanceRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id", - |m: &CreateInstanceRequest| { &m.instance_id }, - |m: &mut CreateInstanceRequest| { &mut m.instance_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &CreateInstanceRequest| { &m.instance }, - |m: &mut CreateInstanceRequest| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "clusters", - |m: &CreateInstanceRequest| { &m.clusters }, - |m: &mut CreateInstanceRequest| { &mut m.clusters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.instance_id.clear(); + self.instance.clear(); + self.clusters.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(CreateInstanceRequest::new) } } -impl ::protobuf::Clear for CreateInstanceRequest { - fn clear(&mut self) { - self.parent.clear(); - self.instance_id.clear(); - self.instance.clear(); - self.clusters.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateInstanceRequest { +impl ::std::fmt::Display for CreateInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.GetInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GetInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetInstanceRequest { // message fields + /// The unique name of the requested instance. Values are of the form + /// `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetInstanceRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GetInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetInstanceRequest { @@ -338,47 +257,37 @@ impl GetInstanceRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetInstanceRequest| { &m.name }, + |m: &mut GetInstanceRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetInstanceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetInstanceRequest { + const NAME: &'static str = "GetInstanceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -387,104 +296,82 @@ impl ::protobuf::Message for GetInstanceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetInstanceRequest { GetInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInstanceRequest| { &m.name }, - |m: &mut GetInstanceRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInstanceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInstanceRequest::new) + static instance: GetInstanceRequest = GetInstanceRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetInstanceRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetInstanceRequest { +impl ::std::fmt::Display for GetInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.ListInstances. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListInstancesRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListInstancesRequest { // message fields + /// The unique name of the project for which a list of instances is requested. + /// Values are of the form `projects/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListInstancesRequest.parent) pub parent: ::std::string::String, + /// DEPRECATED: This field is unused and ignored. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListInstancesRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListInstancesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListInstancesRequest { @@ -498,76 +385,45 @@ impl ListInstancesRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string page_token = 2; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListInstancesRequest| { &m.parent }, + |m: &mut ListInstancesRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListInstancesRequest| { &m.page_token }, + |m: &mut ListInstancesRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstancesRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListInstancesRequest { + const NAME: &'static str = "ListInstancesRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 18 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -576,7 +432,7 @@ impl ::protobuf::Message for ListInstancesRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); @@ -584,109 +440,89 @@ impl ::protobuf::Message for ListInstancesRequest { if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } if !self.page_token.is_empty() { os.write_string(2, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListInstancesRequest { ListInstancesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInstancesRequest| { &m.parent }, - |m: &mut ListInstancesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInstancesRequest| { &m.page_token }, - |m: &mut ListInstancesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstancesRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListInstancesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstancesRequest::new) + static instance: ListInstancesRequest = ListInstancesRequest { + parent: ::std::string::String::new(), + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListInstancesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListInstancesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstancesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListInstancesRequest { +impl ::std::fmt::Display for ListInstancesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListInstancesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for BigtableInstanceAdmin.ListInstances. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListInstancesResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListInstancesResponse { // message fields - pub instances: ::protobuf::RepeatedField, - pub failed_locations: ::protobuf::RepeatedField<::std::string::String>, + /// The list of requested instances. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListInstancesResponse.instances) + pub instances: ::std::vec::Vec, + /// Locations from which Instance information could not be retrieved, + /// due to an outage or some other transient condition. + /// Instances whose Clusters are all in one of the failed locations + /// may be missing from `instances`, and Instances with at least one + /// Cluster in a failed location may only have partial information returned. + /// Values are of the form `projects//locations/` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListInstancesResponse.failed_locations) + pub failed_locations: ::std::vec::Vec<::std::string::String>, + /// DEPRECATED: This field is unused and ignored. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListInstancesResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListInstancesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListInstancesResponse { @@ -700,108 +536,53 @@ impl ListInstancesResponse { ::std::default::Default::default() } - // repeated .google.bigtable.admin.v2.Instance instances = 1; - - - pub fn get_instances(&self) -> &[super::instance::Instance] { - &self.instances - } - pub fn clear_instances(&mut self) { - self.instances.clear(); - } - - // Param is passed by value, moved - pub fn set_instances(&mut self, v: ::protobuf::RepeatedField) { - self.instances = v; - } - - // Mutable pointer to the field. - pub fn mut_instances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.instances - } - - // Take field - pub fn take_instances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.instances, ::protobuf::RepeatedField::new()) - } - - // repeated string failed_locations = 2; - - - pub fn get_failed_locations(&self) -> &[::std::string::String] { - &self.failed_locations - } - pub fn clear_failed_locations(&mut self) { - self.failed_locations.clear(); - } - - // Param is passed by value, moved - pub fn set_failed_locations(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.failed_locations = v; - } - - // Mutable pointer to the field. - pub fn mut_failed_locations(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.failed_locations - } - - // Take field - pub fn take_failed_locations(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.failed_locations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "instances", + |m: &ListInstancesResponse| { &m.instances }, + |m: &mut ListInstancesResponse| { &mut m.instances }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "failed_locations", + |m: &ListInstancesResponse| { &m.failed_locations }, + |m: &mut ListInstancesResponse| { &mut m.failed_locations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListInstancesResponse| { &m.next_page_token }, + |m: &mut ListInstancesResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstancesResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListInstancesResponse { + const NAME: &'static str = "ListInstancesResponse"; + fn is_initialized(&self) -> bool { - for v in &self.instances { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.instances)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.instances.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.failed_locations)?; + 18 => { + self.failed_locations.push(is.read_string()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 26 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -810,11 +591,11 @@ impl ::protobuf::Message for ListInstancesResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.instances { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.failed_locations { my_size += ::protobuf::rt::string_size(2, &value); @@ -822,16 +603,14 @@ impl ::protobuf::Message for ListInstancesResponse { if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.instances { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.failed_locations { os.write_string(2, &v)?; @@ -839,102 +618,72 @@ impl ::protobuf::Message for ListInstancesResponse { if !self.next_page_token.is_empty() { os.write_string(3, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListInstancesResponse { ListInstancesResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instances", - |m: &ListInstancesResponse| { &m.instances }, - |m: &mut ListInstancesResponse| { &mut m.instances }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "failed_locations", - |m: &ListInstancesResponse| { &m.failed_locations }, - |m: &mut ListInstancesResponse| { &mut m.failed_locations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInstancesResponse| { &m.next_page_token }, - |m: &mut ListInstancesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstancesResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.instances.clear(); + self.failed_locations.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListInstancesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstancesResponse::new) + static instance: ListInstancesResponse = ListInstancesResponse { + instances: ::std::vec::Vec::new(), + failed_locations: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListInstancesResponse { - fn clear(&mut self) { - self.instances.clear(); - self.failed_locations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListInstancesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstancesResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListInstancesResponse { +impl ::std::fmt::Display for ListInstancesResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListInstancesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.PartialUpdateInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.PartialUpdateInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PartialUpdateInstanceRequest { // message fields - pub instance: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// The Instance which will (partially) replace the current value. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.PartialUpdateInstanceRequest.instance) + pub instance: ::protobuf::MessageField, + /// The subset of Instance fields which should be replaced. + /// Must be explicitly set. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.PartialUpdateInstanceRequest.update_mask) + pub update_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.PartialUpdateInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PartialUpdateInstanceRequest { @@ -948,100 +697,45 @@ impl PartialUpdateInstanceRequest { ::std::default::Default::default() } - // .google.bigtable.admin.v2.Instance instance = 1; - - - pub fn get_instance(&self) -> &super::instance::Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: super::instance::Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut super::instance::Instance { - if self.instance.is_none() { - self.instance.set_default(); - } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> super::instance::Instance { - self.instance.take().unwrap_or_else(|| super::instance::Instance::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::Instance>( + "instance", + |m: &PartialUpdateInstanceRequest| { &m.instance }, + |m: &mut PartialUpdateInstanceRequest| { &mut m.instance }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "update_mask", + |m: &PartialUpdateInstanceRequest| { &m.update_mask }, + |m: &mut PartialUpdateInstanceRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartialUpdateInstanceRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for PartialUpdateInstanceRequest { + const NAME: &'static str = "PartialUpdateInstanceRequest"; + fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.update_mask)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1050,121 +744,89 @@ impl ::protobuf::Message for PartialUpdateInstanceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.instance.as_ref() { + if let Some(v) = self.instance.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.update_mask.as_ref() { + if let Some(v) = self.update_mask.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.update_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PartialUpdateInstanceRequest { PartialUpdateInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &PartialUpdateInstanceRequest| { &m.instance }, - |m: &mut PartialUpdateInstanceRequest| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PartialUpdateInstanceRequest| { &m.update_mask }, - |m: &mut PartialUpdateInstanceRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartialUpdateInstanceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.instance.clear(); + self.update_mask.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PartialUpdateInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartialUpdateInstanceRequest::new) + static instance: PartialUpdateInstanceRequest = PartialUpdateInstanceRequest { + instance: ::protobuf::MessageField::none(), + update_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PartialUpdateInstanceRequest { - fn clear(&mut self) { - self.instance.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PartialUpdateInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartialUpdateInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PartialUpdateInstanceRequest { +impl ::std::fmt::Display for PartialUpdateInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PartialUpdateInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.DeleteInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DeleteInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteInstanceRequest { // message fields + /// The unique name of the instance to be deleted. + /// Values are of the form `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteInstanceRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DeleteInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteInstanceRequest { @@ -1178,47 +840,37 @@ impl DeleteInstanceRequest { ::std::default::Default::default() } - // string name = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteInstanceRequest| { &m.name }, + |m: &mut DeleteInstanceRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteInstanceRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for DeleteInstanceRequest { + const NAME: &'static str = "DeleteInstanceRequest"; - pub fn get_name(&self) -> &str { - &self.name + fn is_initialized(&self) -> bool { + true } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} -impl ::protobuf::Message for DeleteInstanceRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1227,105 +879,89 @@ impl ::protobuf::Message for DeleteInstanceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteInstanceRequest { DeleteInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteInstanceRequest| { &m.name }, - |m: &mut DeleteInstanceRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteInstanceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteInstanceRequest::new) + static instance: DeleteInstanceRequest = DeleteInstanceRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteInstanceRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteInstanceRequest { +impl ::std::fmt::Display for DeleteInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.CreateCluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateClusterRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateClusterRequest { // message fields + /// The unique name of the instance in which to create the new cluster. + /// Values are of the form + /// `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterRequest.parent) pub parent: ::std::string::String, + /// The ID to be used when referring to the new cluster within its instance, + /// e.g., just `mycluster` rather than + /// `projects/myproject/instances/myinstance/clusters/mycluster`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterRequest.cluster_id) pub cluster_id: ::std::string::String, - pub cluster: ::protobuf::SingularPtrField, + /// The cluster to be created. + /// Fields marked `OutputOnly` must be left blank. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterRequest.cluster) + pub cluster: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateClusterRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateClusterRequest { @@ -1339,117 +975,53 @@ impl CreateClusterRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string cluster_id = 2; - - - pub fn get_cluster_id(&self) -> &str { - &self.cluster_id - } - pub fn clear_cluster_id(&mut self) { - self.cluster_id.clear(); - } - - // Param is passed by value, moved - pub fn set_cluster_id(&mut self, v: ::std::string::String) { - self.cluster_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster_id(&mut self) -> &mut ::std::string::String { - &mut self.cluster_id - } - - // Take field - pub fn take_cluster_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cluster_id, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Cluster cluster = 3; - - - pub fn get_cluster(&self) -> &super::instance::Cluster { - self.cluster.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cluster(&mut self) { - self.cluster.clear(); - } - - pub fn has_cluster(&self) -> bool { - self.cluster.is_some() - } - - // Param is passed by value, moved - pub fn set_cluster(&mut self, v: super::instance::Cluster) { - self.cluster = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster(&mut self) -> &mut super::instance::Cluster { - if self.cluster.is_none() { - self.cluster.set_default(); - } - self.cluster.as_mut().unwrap() - } - - // Take field - pub fn take_cluster(&mut self) -> super::instance::Cluster { - self.cluster.take().unwrap_or_else(|| super::instance::Cluster::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateClusterRequest| { &m.parent }, + |m: &mut CreateClusterRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cluster_id", + |m: &CreateClusterRequest| { &m.cluster_id }, + |m: &mut CreateClusterRequest| { &mut m.cluster_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::Cluster>( + "cluster", + |m: &CreateClusterRequest| { &m.cluster }, + |m: &mut CreateClusterRequest| { &mut m.cluster }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateClusterRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateClusterRequest { + const NAME: &'static str = "CreateClusterRequest"; + fn is_initialized(&self) -> bool { - for v in &self.cluster { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; + 18 => { + self.cluster_id = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.cluster)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1458,7 +1030,7 @@ impl ::protobuf::Message for CreateClusterRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); @@ -1466,122 +1038,88 @@ impl ::protobuf::Message for CreateClusterRequest { if !self.cluster_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.cluster_id); } - if let Some(ref v) = self.cluster.as_ref() { + if let Some(v) = self.cluster.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } if !self.cluster_id.is_empty() { os.write_string(2, &self.cluster_id)?; } - if let Some(ref v) = self.cluster.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.cluster.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateClusterRequest { CreateClusterRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateClusterRequest| { &m.parent }, - |m: &mut CreateClusterRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cluster_id", - |m: &CreateClusterRequest| { &m.cluster_id }, - |m: &mut CreateClusterRequest| { &mut m.cluster_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cluster", - |m: &CreateClusterRequest| { &m.cluster }, - |m: &mut CreateClusterRequest| { &mut m.cluster }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateClusterRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.cluster_id.clear(); + self.cluster.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterRequest::new) + static instance: CreateClusterRequest = CreateClusterRequest { + parent: ::std::string::String::new(), + cluster_id: ::std::string::String::new(), + cluster: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateClusterRequest { - fn clear(&mut self) { - self.parent.clear(); - self.cluster_id.clear(); - self.cluster.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateClusterRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateClusterRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateClusterRequest { +impl ::std::fmt::Display for CreateClusterRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateClusterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.GetCluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GetClusterRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetClusterRequest { // message fields + /// The unique name of the requested cluster. Values are of the form + /// `projects//instances//clusters/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetClusterRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GetClusterRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetClusterRequest { @@ -1595,47 +1133,37 @@ impl GetClusterRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetClusterRequest| { &m.name }, + |m: &mut GetClusterRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetClusterRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetClusterRequest { + const NAME: &'static str = "GetClusterRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1644,104 +1172,84 @@ impl ::protobuf::Message for GetClusterRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetClusterRequest { GetClusterRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetClusterRequest| { &m.name }, - |m: &mut GetClusterRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetClusterRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetClusterRequest::new) + static instance: GetClusterRequest = GetClusterRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetClusterRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetClusterRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetClusterRequest { +impl ::std::fmt::Display for GetClusterRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetClusterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.ListClusters. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListClustersRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListClustersRequest { // message fields + /// The unique name of the instance for which a list of clusters is requested. + /// Values are of the form `projects//instances/`. + /// Use ` = '-'` to list Clusters for all Instances in a project, + /// e.g., `projects/myproject/instances/-`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListClustersRequest.parent) pub parent: ::std::string::String, + /// DEPRECATED: This field is unused and ignored. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListClustersRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListClustersRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListClustersRequest { @@ -1755,76 +1263,45 @@ impl ListClustersRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string page_token = 2; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListClustersRequest| { &m.parent }, + |m: &mut ListClustersRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListClustersRequest| { &m.page_token }, + |m: &mut ListClustersRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListClustersRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListClustersRequest { + const NAME: &'static str = "ListClustersRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 18 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1833,7 +1310,7 @@ impl ::protobuf::Message for ListClustersRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); @@ -1841,109 +1318,88 @@ impl ::protobuf::Message for ListClustersRequest { if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } if !self.page_token.is_empty() { os.write_string(2, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListClustersRequest { ListClustersRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListClustersRequest| { &m.parent }, - |m: &mut ListClustersRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListClustersRequest| { &m.page_token }, - |m: &mut ListClustersRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListClustersRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListClustersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersRequest::new) + static instance: ListClustersRequest = ListClustersRequest { + parent: ::std::string::String::new(), + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListClustersRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListClustersRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListClustersRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListClustersRequest { +impl ::std::fmt::Display for ListClustersRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListClustersRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for BigtableInstanceAdmin.ListClusters. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListClustersResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListClustersResponse { // message fields - pub clusters: ::protobuf::RepeatedField, - pub failed_locations: ::protobuf::RepeatedField<::std::string::String>, + /// The list of requested clusters. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListClustersResponse.clusters) + pub clusters: ::std::vec::Vec, + /// Locations from which Cluster information could not be retrieved, + /// due to an outage or some other transient condition. + /// Clusters from these locations may be missing from `clusters`, + /// or may only have partial information returned. + /// Values are of the form `projects//locations/` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListClustersResponse.failed_locations) + pub failed_locations: ::std::vec::Vec<::std::string::String>, + /// DEPRECATED: This field is unused and ignored. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListClustersResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListClustersResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListClustersResponse { @@ -1957,108 +1413,53 @@ impl ListClustersResponse { ::std::default::Default::default() } - // repeated .google.bigtable.admin.v2.Cluster clusters = 1; - - - pub fn get_clusters(&self) -> &[super::instance::Cluster] { - &self.clusters - } - pub fn clear_clusters(&mut self) { - self.clusters.clear(); - } - - // Param is passed by value, moved - pub fn set_clusters(&mut self, v: ::protobuf::RepeatedField) { - self.clusters = v; - } - - // Mutable pointer to the field. - pub fn mut_clusters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.clusters - } - - // Take field - pub fn take_clusters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.clusters, ::protobuf::RepeatedField::new()) - } - - // repeated string failed_locations = 2; - - - pub fn get_failed_locations(&self) -> &[::std::string::String] { - &self.failed_locations - } - pub fn clear_failed_locations(&mut self) { - self.failed_locations.clear(); - } - - // Param is passed by value, moved - pub fn set_failed_locations(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.failed_locations = v; - } - - // Mutable pointer to the field. - pub fn mut_failed_locations(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.failed_locations - } - - // Take field - pub fn take_failed_locations(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.failed_locations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "clusters", + |m: &ListClustersResponse| { &m.clusters }, + |m: &mut ListClustersResponse| { &mut m.clusters }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "failed_locations", + |m: &ListClustersResponse| { &m.failed_locations }, + |m: &mut ListClustersResponse| { &mut m.failed_locations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListClustersResponse| { &m.next_page_token }, + |m: &mut ListClustersResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListClustersResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListClustersResponse { + const NAME: &'static str = "ListClustersResponse"; + fn is_initialized(&self) -> bool { - for v in &self.clusters { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.clusters)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.clusters.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.failed_locations)?; + 18 => { + self.failed_locations.push(is.read_string()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 26 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2067,11 +1468,11 @@ impl ::protobuf::Message for ListClustersResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.clusters { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.failed_locations { my_size += ::protobuf::rt::string_size(2, &value); @@ -2079,16 +1480,14 @@ impl ::protobuf::Message for ListClustersResponse { if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.clusters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.failed_locations { os.write_string(2, &v)?; @@ -2096,101 +1495,69 @@ impl ::protobuf::Message for ListClustersResponse { if !self.next_page_token.is_empty() { os.write_string(3, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListClustersResponse { ListClustersResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "clusters", - |m: &ListClustersResponse| { &m.clusters }, - |m: &mut ListClustersResponse| { &mut m.clusters }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "failed_locations", - |m: &ListClustersResponse| { &m.failed_locations }, - |m: &mut ListClustersResponse| { &mut m.failed_locations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListClustersResponse| { &m.next_page_token }, - |m: &mut ListClustersResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListClustersResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.clusters.clear(); + self.failed_locations.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListClustersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListClustersResponse::new) + static instance: ListClustersResponse = ListClustersResponse { + clusters: ::std::vec::Vec::new(), + failed_locations: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListClustersResponse { - fn clear(&mut self) { - self.clusters.clear(); - self.failed_locations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListClustersResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListClustersResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListClustersResponse { +impl ::std::fmt::Display for ListClustersResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListClustersResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableInstanceAdmin.DeleteCluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DeleteClusterRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteClusterRequest { // message fields + /// The unique name of the cluster to be deleted. Values are of the form + /// `projects//instances//clusters/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteClusterRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DeleteClusterRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteClusterRequest { @@ -2204,47 +1571,37 @@ impl DeleteClusterRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteClusterRequest| { &m.name }, + |m: &mut DeleteClusterRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteClusterRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteClusterRequest { + const NAME: &'static str = "DeleteClusterRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2253,105 +1610,84 @@ impl ::protobuf::Message for DeleteClusterRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteClusterRequest { DeleteClusterRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteClusterRequest| { &m.name }, - |m: &mut DeleteClusterRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteClusterRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteClusterRequest::new) + static instance: DeleteClusterRequest = DeleteClusterRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteClusterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteClusterRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteClusterRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteClusterRequest { +impl ::std::fmt::Display for DeleteClusterRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteClusterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The metadata for the Operation returned by CreateInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateInstanceMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateInstanceMetadata { // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The request that prompted the initiation of this CreateInstance operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateInstanceMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateInstanceMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateInstanceMetadata { @@ -2365,281 +1701,158 @@ impl CreateInstanceMetadata { ::std::default::Default::default() } - // .google.bigtable.admin.v2.CreateInstanceRequest original_request = 1; - - - pub fn get_original_request(&self) -> &CreateInstanceRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CreateInstanceRequest>( + "original_request", + |m: &CreateInstanceMetadata| { &m.original_request }, + |m: &mut CreateInstanceMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &CreateInstanceMetadata| { &m.request_time }, + |m: &mut CreateInstanceMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &CreateInstanceMetadata| { &m.finish_time }, + |m: &mut CreateInstanceMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateInstanceMetadata", + fields, + oneofs, + ) } +} - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } +impl ::protobuf::Message for CreateInstanceMetadata { + const NAME: &'static str = "CreateInstanceMetadata"; - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: CreateInstanceRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut CreateInstanceRequest { - if self.original_request.is_none() { - self.original_request.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> CreateInstanceRequest { - self.original_request.take().unwrap_or_else(|| CreateInstanceRequest::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for CreateInstanceMetadata { - fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) + ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { + if let Some(v) = self.original_request.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.request_time.as_ref() { + if let Some(v) = self.request_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.finish_time.as_ref() { + if let Some(v) = self.finish_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateInstanceMetadata { CreateInstanceMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &CreateInstanceMetadata| { &m.original_request }, - |m: &mut CreateInstanceMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &CreateInstanceMetadata| { &m.request_time }, - |m: &mut CreateInstanceMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &CreateInstanceMetadata| { &m.finish_time }, - |m: &mut CreateInstanceMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceMetadata::new) + static instance: CreateInstanceMetadata = CreateInstanceMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateInstanceMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateInstanceMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateInstanceMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateInstanceMetadata { +impl ::std::fmt::Display for CreateInstanceMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateInstanceMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The metadata for the Operation returned by UpdateInstance. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.UpdateInstanceMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct UpdateInstanceMetadata { // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The request that prompted the initiation of this UpdateInstance operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateInstanceMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateInstanceMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateInstanceMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.UpdateInstanceMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a UpdateInstanceMetadata { @@ -2653,141 +1866,53 @@ impl UpdateInstanceMetadata { ::std::default::Default::default() } - // .google.bigtable.admin.v2.PartialUpdateInstanceRequest original_request = 1; - - - pub fn get_original_request(&self) -> &PartialUpdateInstanceRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); - } - - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } - - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: PartialUpdateInstanceRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut PartialUpdateInstanceRequest { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> PartialUpdateInstanceRequest { - self.original_request.take().unwrap_or_else(|| PartialUpdateInstanceRequest::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PartialUpdateInstanceRequest>( + "original_request", + |m: &UpdateInstanceMetadata| { &m.original_request }, + |m: &mut UpdateInstanceMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &UpdateInstanceMetadata| { &m.request_time }, + |m: &mut UpdateInstanceMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &UpdateInstanceMetadata| { &m.finish_time }, + |m: &mut UpdateInstanceMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateInstanceMetadata", + fields, + oneofs, + ) } } impl ::protobuf::Message for UpdateInstanceMetadata { + const NAME: &'static str = "UpdateInstanceMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2796,139 +1921,103 @@ impl ::protobuf::Message for UpdateInstanceMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { + if let Some(v) = self.original_request.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.request_time.as_ref() { + if let Some(v) = self.request_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.finish_time.as_ref() { + if let Some(v) = self.finish_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> UpdateInstanceMetadata { UpdateInstanceMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &UpdateInstanceMetadata| { &m.original_request }, - |m: &mut UpdateInstanceMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &UpdateInstanceMetadata| { &m.request_time }, - |m: &mut UpdateInstanceMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &UpdateInstanceMetadata| { &m.finish_time }, - |m: &mut UpdateInstanceMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInstanceMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static UpdateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceMetadata::new) + static instance: UpdateInstanceMetadata = UpdateInstanceMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateInstanceMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateInstanceMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateInstanceMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateInstanceMetadata { +impl ::std::fmt::Display for UpdateInstanceMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for UpdateInstanceMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The metadata for the Operation returned by CreateCluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateClusterMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateClusterMetadata { // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub tables: ::std::collections::HashMap<::std::string::String, CreateClusterMetadata_TableProgress>, + /// The request that prompted the initiation of this CreateCluster operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateClusterMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateClusterMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateClusterMetadata { @@ -2942,169 +2031,53 @@ impl CreateClusterMetadata { ::std::default::Default::default() } - // .google.bigtable.admin.v2.CreateClusterRequest original_request = 1; - - - pub fn get_original_request(&self) -> &CreateClusterRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); - } - - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } - - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: CreateClusterRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut CreateClusterRequest { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> CreateClusterRequest { - self.original_request.take().unwrap_or_else(|| CreateClusterRequest::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.bigtable.admin.v2.CreateClusterMetadata.TablesEntry tables = 4; - - - pub fn get_tables(&self) -> &::std::collections::HashMap<::std::string::String, CreateClusterMetadata_TableProgress> { - &self.tables - } - pub fn clear_tables(&mut self) { - self.tables.clear(); - } - - // Param is passed by value, moved - pub fn set_tables(&mut self, v: ::std::collections::HashMap<::std::string::String, CreateClusterMetadata_TableProgress>) { - self.tables = v; - } - - // Mutable pointer to the field. - pub fn mut_tables(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, CreateClusterMetadata_TableProgress> { - &mut self.tables - } - - // Take field - pub fn take_tables(&mut self) -> ::std::collections::HashMap<::std::string::String, CreateClusterMetadata_TableProgress> { - ::std::mem::replace(&mut self.tables, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CreateClusterRequest>( + "original_request", + |m: &CreateClusterMetadata| { &m.original_request }, + |m: &mut CreateClusterMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &CreateClusterMetadata| { &m.request_time }, + |m: &mut CreateClusterMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &CreateClusterMetadata| { &m.finish_time }, + |m: &mut CreateClusterMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateClusterMetadata", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateClusterMetadata { + const NAME: &'static str = "CreateClusterMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.tables)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3113,233 +2086,163 @@ impl ::protobuf::Message for CreateClusterMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { + if let Some(v) = self.original_request.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.request_time.as_ref() { + if let Some(v) = self.request_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.finish_time.as_ref() { + if let Some(v) = self.finish_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(4, &self.tables); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(4, &self.tables, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateClusterMetadata { CreateClusterMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &CreateClusterMetadata| { &m.original_request }, - |m: &mut CreateClusterMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &CreateClusterMetadata| { &m.request_time }, - |m: &mut CreateClusterMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &CreateClusterMetadata| { &m.finish_time }, - |m: &mut CreateClusterMetadata| { &mut m.finish_time }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "tables", - |m: &CreateClusterMetadata| { &m.tables }, - |m: &mut CreateClusterMetadata| { &mut m.tables }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateClusterMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterMetadata::new) + static instance: CreateClusterMetadata = CreateClusterMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateClusterMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.tables.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateClusterMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateClusterMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateClusterMetadata { +impl ::std::fmt::Display for CreateClusterMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateClusterMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateClusterMetadata_TableProgress { +/// The metadata for the Operation returned by UpdateCluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.UpdateClusterMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateClusterMetadata { // message fields - pub estimated_size_bytes: i64, - pub estimated_copied_bytes: i64, - pub state: CreateClusterMetadata_TableProgress_State, + /// The request that prompted the initiation of this UpdateCluster operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateClusterMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateClusterMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateClusterMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.UpdateClusterMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateClusterMetadata_TableProgress { - fn default() -> &'a CreateClusterMetadata_TableProgress { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateClusterMetadata { + fn default() -> &'a UpdateClusterMetadata { + ::default_instance() } } -impl CreateClusterMetadata_TableProgress { - pub fn new() -> CreateClusterMetadata_TableProgress { +impl UpdateClusterMetadata { + pub fn new() -> UpdateClusterMetadata { ::std::default::Default::default() } - // int64 estimated_size_bytes = 2; - - - pub fn get_estimated_size_bytes(&self) -> i64 { - self.estimated_size_bytes - } - pub fn clear_estimated_size_bytes(&mut self) { - self.estimated_size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_estimated_size_bytes(&mut self, v: i64) { - self.estimated_size_bytes = v; - } - - // int64 estimated_copied_bytes = 3; - - - pub fn get_estimated_copied_bytes(&self) -> i64 { - self.estimated_copied_bytes - } - pub fn clear_estimated_copied_bytes(&mut self) { - self.estimated_copied_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_estimated_copied_bytes(&mut self, v: i64) { - self.estimated_copied_bytes = v; - } - - // .google.bigtable.admin.v2.CreateClusterMetadata.TableProgress.State state = 4; - - - pub fn get_state(&self) -> CreateClusterMetadata_TableProgress_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: CreateClusterMetadata_TableProgress_State) { - self.state = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::Cluster>( + "original_request", + |m: &UpdateClusterMetadata| { &m.original_request }, + |m: &mut UpdateClusterMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &UpdateClusterMetadata| { &m.request_time }, + |m: &mut UpdateClusterMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &UpdateClusterMetadata| { &m.finish_time }, + |m: &mut UpdateClusterMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateClusterMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateClusterMetadata_TableProgress { +impl ::protobuf::Message for UpdateClusterMetadata { + const NAME: &'static str = "UpdateClusterMetadata"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.estimated_size_bytes = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.estimated_copied_bytes = tmp; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)? + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3348,336 +2251,179 @@ impl ::protobuf::Message for CreateClusterMetadata_TableProgress { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.estimated_size_bytes != 0 { - my_size += ::protobuf::rt::value_size(2, self.estimated_size_bytes, ::protobuf::wire_format::WireTypeVarint); + if let Some(v) = self.original_request.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if self.estimated_copied_bytes != 0 { - my_size += ::protobuf::rt::value_size(3, self.estimated_copied_bytes, ::protobuf::wire_format::WireTypeVarint); + if let Some(v) = self.request_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if self.state != CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.state); + if let Some(v) = self.finish_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.estimated_size_bytes != 0 { - os.write_int64(2, self.estimated_size_bytes)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if self.estimated_copied_bytes != 0 { - os.write_int64(3, self.estimated_copied_bytes)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if self.state != CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateClusterMetadata_TableProgress { - CreateClusterMetadata_TableProgress::new() + fn new() -> UpdateClusterMetadata { + UpdateClusterMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "estimated_size_bytes", - |m: &CreateClusterMetadata_TableProgress| { &m.estimated_size_bytes }, - |m: &mut CreateClusterMetadata_TableProgress| { &mut m.estimated_size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "estimated_copied_bytes", - |m: &CreateClusterMetadata_TableProgress| { &m.estimated_copied_bytes }, - |m: &mut CreateClusterMetadata_TableProgress| { &mut m.estimated_copied_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &CreateClusterMetadata_TableProgress| { &m.state }, - |m: &mut CreateClusterMetadata_TableProgress| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateClusterMetadata.TableProgress", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateClusterMetadata_TableProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateClusterMetadata_TableProgress::new) + fn default_instance() -> &'static UpdateClusterMetadata { + static instance: UpdateClusterMetadata = UpdateClusterMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateClusterMetadata_TableProgress { - fn clear(&mut self) { - self.estimated_size_bytes = 0; - self.estimated_copied_bytes = 0; - self.state = CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateClusterMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateClusterMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateClusterMetadata_TableProgress { +impl ::std::fmt::Display for UpdateClusterMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateClusterMetadata_TableProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CreateClusterMetadata_TableProgress_State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - COPYING = 2, - COMPLETED = 3, - CANCELLED = 4, -} - -impl ::protobuf::ProtobufEnum for CreateClusterMetadata_TableProgress_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CreateClusterMetadata_TableProgress_State::PENDING), - 2 => ::std::option::Option::Some(CreateClusterMetadata_TableProgress_State::COPYING), - 3 => ::std::option::Option::Some(CreateClusterMetadata_TableProgress_State::COMPLETED), - 4 => ::std::option::Option::Some(CreateClusterMetadata_TableProgress_State::CANCELLED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CreateClusterMetadata_TableProgress_State] = &[ - CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED, - CreateClusterMetadata_TableProgress_State::PENDING, - CreateClusterMetadata_TableProgress_State::COPYING, - CreateClusterMetadata_TableProgress_State::COMPLETED, - CreateClusterMetadata_TableProgress_State::CANCELLED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CreateClusterMetadata.TableProgress.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CreateClusterMetadata_TableProgress_State { -} - -impl ::std::default::Default for CreateClusterMetadata_TableProgress_State { - fn default() -> Self { - CreateClusterMetadata_TableProgress_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateClusterMetadata_TableProgress_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for UpdateClusterMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct UpdateClusterMetadata { +/// Request message for BigtableInstanceAdmin.CreateAppProfile. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateAppProfileRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateAppProfileRequest { // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The unique name of the instance in which to create the new app profile. + /// Values are of the form + /// `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateAppProfileRequest.parent) + pub parent: ::std::string::String, + /// The ID to be used when referring to the new app profile within its + /// instance, e.g., just `myprofile` rather than + /// `projects/myproject/instances/myinstance/appProfiles/myprofile`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateAppProfileRequest.app_profile_id) + pub app_profile_id: ::std::string::String, + /// The app profile to be created. + /// Fields marked `OutputOnly` will be ignored. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateAppProfileRequest.app_profile) + pub app_profile: ::protobuf::MessageField, + /// If true, ignore safety checks when creating the app profile. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateAppProfileRequest.ignore_warnings) + pub ignore_warnings: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateAppProfileRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a UpdateClusterMetadata { - fn default() -> &'a UpdateClusterMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateAppProfileRequest { + fn default() -> &'a CreateAppProfileRequest { + ::default_instance() } } -impl UpdateClusterMetadata { - pub fn new() -> UpdateClusterMetadata { +impl CreateAppProfileRequest { + pub fn new() -> CreateAppProfileRequest { ::std::default::Default::default() } - // .google.bigtable.admin.v2.Cluster original_request = 1; - - - pub fn get_original_request(&self) -> &super::instance::Cluster { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); - } - - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } - - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: super::instance::Cluster) { - self.original_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut super::instance::Cluster { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> super::instance::Cluster { - self.original_request.take().unwrap_or_else(|| super::instance::Cluster::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateAppProfileRequest| { &m.parent }, + |m: &mut CreateAppProfileRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &CreateAppProfileRequest| { &m.app_profile_id }, + |m: &mut CreateAppProfileRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::AppProfile>( + "app_profile", + |m: &CreateAppProfileRequest| { &m.app_profile }, + |m: &mut CreateAppProfileRequest| { &mut m.app_profile }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ignore_warnings", + |m: &CreateAppProfileRequest| { &m.ignore_warnings }, + |m: &mut CreateAppProfileRequest| { &mut m.ignore_warnings }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateAppProfileRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateClusterMetadata { +impl ::protobuf::Message for CreateAppProfileRequest { + const NAME: &'static str = "CreateAppProfileRequest"; + fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; + 18 => { + self.app_profile_id = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.app_profile)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 32 => { + self.ignore_warnings = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3686,286 +2432,299 @@ impl ::protobuf::Message for UpdateClusterMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.request_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.app_profile_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); } - if let Some(ref v) = self.finish_time.as_ref() { + if let Some(v) = self.app_profile.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if self.ignore_warnings != false { + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if !self.app_profile_id.is_empty() { + os.write_string(2, &self.app_profile_id)?; } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.app_profile.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.ignore_warnings != false { + os.write_bool(4, self.ignore_warnings)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateClusterMetadata { - UpdateClusterMetadata::new() + fn new() -> CreateAppProfileRequest { + CreateAppProfileRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &UpdateClusterMetadata| { &m.original_request }, - |m: &mut UpdateClusterMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &UpdateClusterMetadata| { &m.request_time }, - |m: &mut UpdateClusterMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &UpdateClusterMetadata| { &m.finish_time }, - |m: &mut UpdateClusterMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateClusterMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.app_profile_id.clear(); + self.app_profile.clear(); + self.ignore_warnings = false; + self.special_fields.clear(); } - fn default_instance() -> &'static UpdateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateClusterMetadata::new) + fn default_instance() -> &'static CreateAppProfileRequest { + static instance: CreateAppProfileRequest = CreateAppProfileRequest { + parent: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + app_profile: ::protobuf::MessageField::none(), + ignore_warnings: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateClusterMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateAppProfileRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateAppProfileRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateClusterMetadata { +impl ::std::fmt::Display for CreateAppProfileRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateClusterMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CreateAppProfileRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct PartialUpdateClusterMetadata { +/// Request message for BigtableInstanceAdmin.GetAppProfile. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GetAppProfileRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetAppProfileRequest { // message fields - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub original_request: ::protobuf::SingularPtrField, + /// The unique name of the requested app profile. Values are of the form + /// `projects//instances//appProfiles/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetAppProfileRequest.name) + pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GetAppProfileRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a PartialUpdateClusterMetadata { - fn default() -> &'a PartialUpdateClusterMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetAppProfileRequest { + fn default() -> &'a GetAppProfileRequest { + ::default_instance() } } -impl PartialUpdateClusterMetadata { - pub fn new() -> PartialUpdateClusterMetadata { +impl GetAppProfileRequest { + pub fn new() -> GetAppProfileRequest { ::std::default::Default::default() } - // .google.protobuf.Timestamp request_time = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetAppProfileRequest| { &m.name }, + |m: &mut GetAppProfileRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetAppProfileRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for GetAppProfileRequest { + const NAME: &'static str = "GetAppProfileRequest"; - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - self.request_time.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.protobuf.Timestamp finish_time = 2; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() + fn new() -> GetAppProfileRequest { + GetAppProfileRequest::new() } - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() + fn default_instance() -> &'static GetAppProfileRequest { + static instance: GetAppProfileRequest = GetAppProfileRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) +impl ::protobuf::MessageFull for GetAppProfileRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetAppProfileRequest").unwrap()).clone() } +} - // .google.bigtable.admin.v2.PartialUpdateClusterRequest original_request = 3; - - - pub fn get_original_request(&self) -> &PartialUpdateClusterRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); +impl ::std::fmt::Display for GetAppProfileRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } +impl ::protobuf::reflect::ProtobufValue for GetAppProfileRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for BigtableInstanceAdmin.ListAppProfiles. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListAppProfilesRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListAppProfilesRequest { + // message fields + /// The unique name of the instance for which a list of app profiles is + /// requested. Values are of the form + /// `projects//instances/`. + /// Use ` = '-'` to list AppProfiles for all Instances in a project, + /// e.g., `projects/myproject/instances/-`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesRequest.parent) + pub parent: ::std::string::String, + /// Maximum number of results per page. + /// CURRENTLY UNIMPLEMENTED AND IGNORED. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesRequest.page_size) + pub page_size: i32, + /// The value of `next_page_token` returned by a previous call. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListAppProfilesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: PartialUpdateClusterRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a ListAppProfilesRequest { + fn default() -> &'a ListAppProfilesRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut PartialUpdateClusterRequest { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() +impl ListAppProfilesRequest { + pub fn new() -> ListAppProfilesRequest { + ::std::default::Default::default() } - // Take field - pub fn take_original_request(&mut self) -> PartialUpdateClusterRequest { - self.original_request.take().unwrap_or_else(|| PartialUpdateClusterRequest::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListAppProfilesRequest| { &m.parent }, + |m: &mut ListAppProfilesRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListAppProfilesRequest| { &m.page_size }, + |m: &mut ListAppProfilesRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListAppProfilesRequest| { &m.page_token }, + |m: &mut ListAppProfilesRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListAppProfilesRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for PartialUpdateClusterMetadata { +impl ::protobuf::Message for ListAppProfilesRequest { + const NAME: &'static str = "ListAppProfilesRequest"; + fn is_initialized(&self) -> bool { - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; + 24 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; + 18 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3974,1787 +2733,165 @@ impl ::protobuf::Message for PartialUpdateClusterMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.request_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.finish_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(3, self.page_size); } - if let Some(ref v) = self.original_request.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.page_size != 0 { + os.write_int32(3, self.page_size)?; } - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.page_token.is_empty() { + os.write_string(2, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> PartialUpdateClusterMetadata { - PartialUpdateClusterMetadata::new() + fn new() -> ListAppProfilesRequest { + ListAppProfilesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &PartialUpdateClusterMetadata| { &m.request_time }, - |m: &mut PartialUpdateClusterMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &PartialUpdateClusterMetadata| { &m.finish_time }, - |m: &mut PartialUpdateClusterMetadata| { &mut m.finish_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &PartialUpdateClusterMetadata| { &m.original_request }, - |m: &mut PartialUpdateClusterMetadata| { &mut m.original_request }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartialUpdateClusterMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static PartialUpdateClusterMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartialUpdateClusterMetadata::new) + fn default_instance() -> &'static ListAppProfilesRequest { + static instance: ListAppProfilesRequest = ListAppProfilesRequest { + parent: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PartialUpdateClusterMetadata { - fn clear(&mut self) { - self.request_time.clear(); - self.finish_time.clear(); - self.original_request.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListAppProfilesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListAppProfilesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PartialUpdateClusterMetadata { +impl ::std::fmt::Display for ListAppProfilesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for PartialUpdateClusterMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListAppProfilesRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct PartialUpdateClusterRequest { +/// Response message for BigtableInstanceAdmin.ListAppProfiles. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListAppProfilesResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListAppProfilesResponse { // message fields - pub cluster: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// The list of requested app profiles. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesResponse.app_profiles) + pub app_profiles: ::std::vec::Vec, + /// Set if not all app profiles could be returned in a single response. + /// Pass this value to `page_token` in another request to get the next + /// page of results. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesResponse.next_page_token) + pub next_page_token: ::std::string::String, + /// Locations from which AppProfile information could not be retrieved, + /// due to an outage or some other transient condition. + /// AppProfiles from these locations may be missing from `app_profiles`. + /// Values are of the form `projects//locations/` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListAppProfilesResponse.failed_locations) + pub failed_locations: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListAppProfilesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a PartialUpdateClusterRequest { - fn default() -> &'a PartialUpdateClusterRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListAppProfilesResponse { + fn default() -> &'a ListAppProfilesResponse { + ::default_instance() } } -impl PartialUpdateClusterRequest { - pub fn new() -> PartialUpdateClusterRequest { +impl ListAppProfilesResponse { + pub fn new() -> ListAppProfilesResponse { ::std::default::Default::default() } - // .google.bigtable.admin.v2.Cluster cluster = 1; - - - pub fn get_cluster(&self) -> &super::instance::Cluster { - self.cluster.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cluster(&mut self) { - self.cluster.clear(); - } - - pub fn has_cluster(&self) -> bool { - self.cluster.is_some() - } - - // Param is passed by value, moved - pub fn set_cluster(&mut self, v: super::instance::Cluster) { - self.cluster = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster(&mut self) -> &mut super::instance::Cluster { - if self.cluster.is_none() { - self.cluster.set_default(); - } - self.cluster.as_mut().unwrap() - } - - // Take field - pub fn take_cluster(&mut self) -> super::instance::Cluster { - self.cluster.take().unwrap_or_else(|| super::instance::Cluster::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for PartialUpdateClusterRequest { - fn is_initialized(&self) -> bool { - for v in &self.cluster { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.cluster.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.cluster.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartialUpdateClusterRequest { - PartialUpdateClusterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cluster", - |m: &PartialUpdateClusterRequest| { &m.cluster }, - |m: &mut PartialUpdateClusterRequest| { &mut m.cluster }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &PartialUpdateClusterRequest| { &m.update_mask }, - |m: &mut PartialUpdateClusterRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartialUpdateClusterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartialUpdateClusterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartialUpdateClusterRequest::new) - } -} - -impl ::protobuf::Clear for PartialUpdateClusterRequest { - fn clear(&mut self) { - self.cluster.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartialUpdateClusterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartialUpdateClusterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateAppProfileRequest { - // message fields - pub parent: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub app_profile: ::protobuf::SingularPtrField, - pub ignore_warnings: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateAppProfileRequest { - fn default() -> &'a CreateAppProfileRequest { - ::default_instance() - } -} - -impl CreateAppProfileRequest { - pub fn new() -> CreateAppProfileRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string app_profile_id = 2; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.AppProfile app_profile = 3; - - - pub fn get_app_profile(&self) -> &super::instance::AppProfile { - self.app_profile.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_app_profile(&mut self) { - self.app_profile.clear(); - } - - pub fn has_app_profile(&self) -> bool { - self.app_profile.is_some() - } - - // Param is passed by value, moved - pub fn set_app_profile(&mut self, v: super::instance::AppProfile) { - self.app_profile = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile(&mut self) -> &mut super::instance::AppProfile { - if self.app_profile.is_none() { - self.app_profile.set_default(); - } - self.app_profile.as_mut().unwrap() - } - - // Take field - pub fn take_app_profile(&mut self) -> super::instance::AppProfile { - self.app_profile.take().unwrap_or_else(|| super::instance::AppProfile::new()) - } - - // bool ignore_warnings = 4; - - - pub fn get_ignore_warnings(&self) -> bool { - self.ignore_warnings - } - pub fn clear_ignore_warnings(&mut self) { - self.ignore_warnings = false; - } - - // Param is passed by value, moved - pub fn set_ignore_warnings(&mut self, v: bool) { - self.ignore_warnings = v; - } -} - -impl ::protobuf::Message for CreateAppProfileRequest { - fn is_initialized(&self) -> bool { - for v in &self.app_profile { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.app_profile)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.ignore_warnings = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); - } - if let Some(ref v) = self.app_profile.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.ignore_warnings != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(2, &self.app_profile_id)?; - } - if let Some(ref v) = self.app_profile.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.ignore_warnings != false { - os.write_bool(4, self.ignore_warnings)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateAppProfileRequest { - CreateAppProfileRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateAppProfileRequest| { &m.parent }, - |m: &mut CreateAppProfileRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &CreateAppProfileRequest| { &m.app_profile_id }, - |m: &mut CreateAppProfileRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "app_profile", - |m: &CreateAppProfileRequest| { &m.app_profile }, - |m: &mut CreateAppProfileRequest| { &mut m.app_profile }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "ignore_warnings", - |m: &CreateAppProfileRequest| { &m.ignore_warnings }, - |m: &mut CreateAppProfileRequest| { &mut m.ignore_warnings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateAppProfileRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateAppProfileRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateAppProfileRequest::new) - } -} - -impl ::protobuf::Clear for CreateAppProfileRequest { - fn clear(&mut self) { - self.parent.clear(); - self.app_profile_id.clear(); - self.app_profile.clear(); - self.ignore_warnings = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateAppProfileRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateAppProfileRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetAppProfileRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetAppProfileRequest { - fn default() -> &'a GetAppProfileRequest { - ::default_instance() - } -} - -impl GetAppProfileRequest { - pub fn new() -> GetAppProfileRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetAppProfileRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetAppProfileRequest { - GetAppProfileRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetAppProfileRequest| { &m.name }, - |m: &mut GetAppProfileRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetAppProfileRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetAppProfileRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetAppProfileRequest::new) - } -} - -impl ::protobuf::Clear for GetAppProfileRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetAppProfileRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetAppProfileRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAppProfilesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAppProfilesRequest { - fn default() -> &'a ListAppProfilesRequest { - ::default_instance() - } -} - -impl ListAppProfilesRequest { - pub fn new() -> ListAppProfilesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 2; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListAppProfilesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(2, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAppProfilesRequest { - ListAppProfilesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListAppProfilesRequest| { &m.parent }, - |m: &mut ListAppProfilesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListAppProfilesRequest| { &m.page_size }, - |m: &mut ListAppProfilesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListAppProfilesRequest| { &m.page_token }, - |m: &mut ListAppProfilesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAppProfilesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAppProfilesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAppProfilesRequest::new) - } -} - -impl ::protobuf::Clear for ListAppProfilesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAppProfilesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAppProfilesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAppProfilesResponse { - // message fields - pub app_profiles: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - pub failed_locations: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAppProfilesResponse { - fn default() -> &'a ListAppProfilesResponse { - ::default_instance() - } -} - -impl ListAppProfilesResponse { - pub fn new() -> ListAppProfilesResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.v2.AppProfile app_profiles = 1; - - - pub fn get_app_profiles(&self) -> &[super::instance::AppProfile] { - &self.app_profiles - } - pub fn clear_app_profiles(&mut self) { - self.app_profiles.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profiles(&mut self, v: ::protobuf::RepeatedField) { - self.app_profiles = v; - } - - // Mutable pointer to the field. - pub fn mut_app_profiles(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.app_profiles - } - - // Take field - pub fn take_app_profiles(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.app_profiles, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } - - // repeated string failed_locations = 3; - - - pub fn get_failed_locations(&self) -> &[::std::string::String] { - &self.failed_locations - } - pub fn clear_failed_locations(&mut self) { - self.failed_locations.clear(); - } - - // Param is passed by value, moved - pub fn set_failed_locations(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.failed_locations = v; - } - - // Mutable pointer to the field. - pub fn mut_failed_locations(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.failed_locations - } - - // Take field - pub fn take_failed_locations(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.failed_locations, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListAppProfilesResponse { - fn is_initialized(&self) -> bool { - for v in &self.app_profiles { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.app_profiles)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.failed_locations)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.app_profiles { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - for value in &self.failed_locations { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.app_profiles { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - for v in &self.failed_locations { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAppProfilesResponse { - ListAppProfilesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "app_profiles", - |m: &ListAppProfilesResponse| { &m.app_profiles }, - |m: &mut ListAppProfilesResponse| { &mut m.app_profiles }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListAppProfilesResponse| { &m.next_page_token }, - |m: &mut ListAppProfilesResponse| { &mut m.next_page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "failed_locations", - |m: &ListAppProfilesResponse| { &m.failed_locations }, - |m: &mut ListAppProfilesResponse| { &mut m.failed_locations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAppProfilesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAppProfilesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAppProfilesResponse::new) - } -} - -impl ::protobuf::Clear for ListAppProfilesResponse { - fn clear(&mut self) { - self.app_profiles.clear(); - self.next_page_token.clear(); - self.failed_locations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAppProfilesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAppProfilesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateAppProfileRequest { - // message fields - pub app_profile: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub ignore_warnings: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateAppProfileRequest { - fn default() -> &'a UpdateAppProfileRequest { - ::default_instance() - } -} - -impl UpdateAppProfileRequest { - pub fn new() -> UpdateAppProfileRequest { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.AppProfile app_profile = 1; - - - pub fn get_app_profile(&self) -> &super::instance::AppProfile { - self.app_profile.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_app_profile(&mut self) { - self.app_profile.clear(); - } - - pub fn has_app_profile(&self) -> bool { - self.app_profile.is_some() - } - - // Param is passed by value, moved - pub fn set_app_profile(&mut self, v: super::instance::AppProfile) { - self.app_profile = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile(&mut self) -> &mut super::instance::AppProfile { - if self.app_profile.is_none() { - self.app_profile.set_default(); - } - self.app_profile.as_mut().unwrap() - } - - // Take field - pub fn take_app_profile(&mut self) -> super::instance::AppProfile { - self.app_profile.take().unwrap_or_else(|| super::instance::AppProfile::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } - - // bool ignore_warnings = 3; - - - pub fn get_ignore_warnings(&self) -> bool { - self.ignore_warnings - } - pub fn clear_ignore_warnings(&mut self) { - self.ignore_warnings = false; - } - - // Param is passed by value, moved - pub fn set_ignore_warnings(&mut self, v: bool) { - self.ignore_warnings = v; - } -} - -impl ::protobuf::Message for UpdateAppProfileRequest { - fn is_initialized(&self) -> bool { - for v in &self.app_profile { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.app_profile)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.ignore_warnings = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.app_profile.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.ignore_warnings != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.app_profile.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.ignore_warnings != false { - os.write_bool(3, self.ignore_warnings)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateAppProfileRequest { - UpdateAppProfileRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "app_profile", - |m: &UpdateAppProfileRequest| { &m.app_profile }, - |m: &mut UpdateAppProfileRequest| { &mut m.app_profile }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateAppProfileRequest| { &m.update_mask }, - |m: &mut UpdateAppProfileRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "ignore_warnings", - |m: &UpdateAppProfileRequest| { &m.ignore_warnings }, - |m: &mut UpdateAppProfileRequest| { &mut m.ignore_warnings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateAppProfileRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateAppProfileRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateAppProfileRequest::new) - } -} - -impl ::protobuf::Clear for UpdateAppProfileRequest { - fn clear(&mut self) { - self.app_profile.clear(); - self.update_mask.clear(); - self.ignore_warnings = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateAppProfileRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateAppProfileRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteAppProfileRequest { - // message fields - pub name: ::std::string::String, - pub ignore_warnings: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteAppProfileRequest { - fn default() -> &'a DeleteAppProfileRequest { - ::default_instance() - } -} - -impl DeleteAppProfileRequest { - pub fn new() -> DeleteAppProfileRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // bool ignore_warnings = 2; - - - pub fn get_ignore_warnings(&self) -> bool { - self.ignore_warnings - } - pub fn clear_ignore_warnings(&mut self) { - self.ignore_warnings = false; - } - - // Param is passed by value, moved - pub fn set_ignore_warnings(&mut self, v: bool) { - self.ignore_warnings = v; - } -} - -impl ::protobuf::Message for DeleteAppProfileRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.ignore_warnings = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.ignore_warnings != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.ignore_warnings != false { - os.write_bool(2, self.ignore_warnings)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteAppProfileRequest { - DeleteAppProfileRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteAppProfileRequest| { &m.name }, - |m: &mut DeleteAppProfileRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "ignore_warnings", - |m: &DeleteAppProfileRequest| { &m.ignore_warnings }, - |m: &mut DeleteAppProfileRequest| { &mut m.ignore_warnings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteAppProfileRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteAppProfileRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteAppProfileRequest::new) - } -} - -impl ::protobuf::Clear for DeleteAppProfileRequest { - fn clear(&mut self) { - self.name.clear(); - self.ignore_warnings = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteAppProfileRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteAppProfileRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateAppProfileMetadata { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateAppProfileMetadata { - fn default() -> &'a UpdateAppProfileMetadata { - ::default_instance() - } -} - -impl UpdateAppProfileMetadata { - pub fn new() -> UpdateAppProfileMetadata { - ::std::default::Default::default() + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "app_profiles", + |m: &ListAppProfilesResponse| { &m.app_profiles }, + |m: &mut ListAppProfilesResponse| { &mut m.app_profiles }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListAppProfilesResponse| { &m.next_page_token }, + |m: &mut ListAppProfilesResponse| { &mut m.next_page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "failed_locations", + |m: &ListAppProfilesResponse| { &m.failed_locations }, + |m: &mut ListAppProfilesResponse| { &mut m.failed_locations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListAppProfilesResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateAppProfileMetadata { +impl ::protobuf::Message for ListAppProfilesResponse { + const NAME: &'static str = "ListAppProfilesResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.app_profiles.push(is.read_message()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + 26 => { + self.failed_locations.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5763,282 +2900,316 @@ impl ::protobuf::Message for UpdateAppProfileMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.app_profiles { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + } + for value in &self.failed_locations { + my_size += ::protobuf::rt::string_size(3, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.app_profiles { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + for v in &self.failed_locations { + os.write_string(3, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> UpdateAppProfileMetadata { - UpdateAppProfileMetadata::new() + fn new() -> ListAppProfilesResponse { + ListAppProfilesResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateAppProfileMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.app_profiles.clear(); + self.next_page_token.clear(); + self.failed_locations.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static UpdateAppProfileMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateAppProfileMetadata::new) + fn default_instance() -> &'static ListAppProfilesResponse { + static instance: ListAppProfilesResponse = ListAppProfilesResponse { + app_profiles: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + failed_locations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateAppProfileMetadata { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListAppProfilesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListAppProfilesResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateAppProfileMetadata { +impl ::std::fmt::Display for ListAppProfilesResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateAppProfileMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListAppProfilesResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListHotTabletsRequest { +/// Request message for BigtableInstanceAdmin.UpdateAppProfile. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.UpdateAppProfileRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateAppProfileRequest { // message fields - pub parent: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub page_size: i32, - pub page_token: ::std::string::String, + /// The app profile which will (partially) replace the current value. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateAppProfileRequest.app_profile) + pub app_profile: ::protobuf::MessageField, + /// The subset of app profile fields which should be replaced. + /// If unset, all fields will be replaced. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateAppProfileRequest.update_mask) + pub update_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, + /// If true, ignore safety checks when updating the app profile. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.UpdateAppProfileRequest.ignore_warnings) + pub ignore_warnings: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.UpdateAppProfileRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListHotTabletsRequest { - fn default() -> &'a ListHotTabletsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateAppProfileRequest { + fn default() -> &'a UpdateAppProfileRequest { + ::default_instance() } } -impl ListHotTabletsRequest { - pub fn new() -> ListHotTabletsRequest { +impl UpdateAppProfileRequest { + pub fn new() -> UpdateAppProfileRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::instance::AppProfile>( + "app_profile", + |m: &UpdateAppProfileRequest| { &m.app_profile }, + |m: &mut UpdateAppProfileRequest| { &mut m.app_profile }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "update_mask", + |m: &UpdateAppProfileRequest| { &m.update_mask }, + |m: &mut UpdateAppProfileRequest| { &mut m.update_mask }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ignore_warnings", + |m: &UpdateAppProfileRequest| { &m.ignore_warnings }, + |m: &mut UpdateAppProfileRequest| { &mut m.ignore_warnings }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateAppProfileRequest", + fields, + oneofs, + ) } +} - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } +impl ::protobuf::Message for UpdateAppProfileRequest { + const NAME: &'static str = "UpdateAppProfileRequest"; - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.app_profile)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.update_mask)?; + }, + 24 => { + self.ignore_warnings = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.app_profile.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.update_mask.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - self.start_time.as_mut().unwrap() + if self.ignore_warnings != false { + my_size += 1 + 1; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.app_profile.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.update_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if self.ignore_warnings != false { + os.write_bool(3, self.ignore_warnings)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); + fn new() -> UpdateAppProfileRequest { + UpdateAppProfileRequest::new() } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() + fn clear(&mut self) { + self.app_profile.clear(); + self.update_mask.clear(); + self.ignore_warnings = false; + self.special_fields.clear(); } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn default_instance() -> &'static UpdateAppProfileRequest { + static instance: UpdateAppProfileRequest = UpdateAppProfileRequest { + app_profile: ::protobuf::MessageField::none(), + update_mask: ::protobuf::MessageField::none(), + ignore_warnings: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; +impl ::protobuf::MessageFull for UpdateAppProfileRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateAppProfileRequest").unwrap()).clone() } +} - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; +impl ::std::fmt::Display for UpdateAppProfileRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // string page_token = 5; - +impl ::protobuf::reflect::ProtobufValue for UpdateAppProfileRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } +/// Request message for BigtableInstanceAdmin.DeleteAppProfile. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DeleteAppProfileRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteAppProfileRequest { + // message fields + /// The unique name of the app profile to be deleted. Values are of the form + /// `projects//instances//appProfiles/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteAppProfileRequest.name) + pub name: ::std::string::String, + /// If true, ignore safety checks when deleting the app profile. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteAppProfileRequest.ignore_warnings) + pub ignore_warnings: bool, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DeleteAppProfileRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; +impl<'a> ::std::default::Default for &'a DeleteAppProfileRequest { + fn default() -> &'a DeleteAppProfileRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token +impl DeleteAppProfileRequest { + pub fn new() -> DeleteAppProfileRequest { + ::std::default::Default::default() } - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteAppProfileRequest| { &m.name }, + |m: &mut DeleteAppProfileRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ignore_warnings", + |m: &DeleteAppProfileRequest| { &m.ignore_warnings }, + |m: &mut DeleteAppProfileRequest| { &mut m.ignore_warnings }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteAppProfileRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListHotTabletsRequest { +impl ::protobuf::Message for DeleteAppProfileRequest { + const NAME: &'static str = "DeleteAppProfileRequest"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 16 => { + self.ignore_warnings = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6047,245 +3218,118 @@ impl ::protobuf::Message for ListHotTabletsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(4, self.page_size, ::protobuf::wire_format::WireTypeVarint); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); + if self.ignore_warnings != false { + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.page_size != 0 { - os.write_int32(4, self.page_size)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; + if self.ignore_warnings != false { + os.write_bool(2, self.ignore_warnings)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListHotTabletsRequest { - ListHotTabletsRequest::new() + fn new() -> DeleteAppProfileRequest { + DeleteAppProfileRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListHotTabletsRequest| { &m.parent }, - |m: &mut ListHotTabletsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &ListHotTabletsRequest| { &m.start_time }, - |m: &mut ListHotTabletsRequest| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &ListHotTabletsRequest| { &m.end_time }, - |m: &mut ListHotTabletsRequest| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListHotTabletsRequest| { &m.page_size }, - |m: &mut ListHotTabletsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListHotTabletsRequest| { &m.page_token }, - |m: &mut ListHotTabletsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListHotTabletsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.ignore_warnings = false; + self.special_fields.clear(); } - fn default_instance() -> &'static ListHotTabletsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListHotTabletsRequest::new) + fn default_instance() -> &'static DeleteAppProfileRequest { + static instance: DeleteAppProfileRequest = DeleteAppProfileRequest { + name: ::std::string::String::new(), + ignore_warnings: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListHotTabletsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteAppProfileRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteAppProfileRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListHotTabletsRequest { +impl ::std::fmt::Display for DeleteAppProfileRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListHotTabletsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for DeleteAppProfileRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListHotTabletsResponse { - // message fields - pub hot_tablets: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, +/// The metadata for the Operation returned by UpdateAppProfile. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.UpdateAppProfileMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateAppProfileMetadata { // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.UpdateAppProfileMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListHotTabletsResponse { - fn default() -> &'a ListHotTabletsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateAppProfileMetadata { + fn default() -> &'a UpdateAppProfileMetadata { + ::default_instance() } } -impl ListHotTabletsResponse { - pub fn new() -> ListHotTabletsResponse { +impl UpdateAppProfileMetadata { + pub fn new() -> UpdateAppProfileMetadata { ::std::default::Default::default() } - // repeated .google.bigtable.admin.v2.HotTablet hot_tablets = 1; - - - pub fn get_hot_tablets(&self) -> &[super::instance::HotTablet] { - &self.hot_tablets - } - pub fn clear_hot_tablets(&mut self) { - self.hot_tablets.clear(); - } - - // Param is passed by value, moved - pub fn set_hot_tablets(&mut self, v: ::protobuf::RepeatedField) { - self.hot_tablets = v; - } - - // Mutable pointer to the field. - pub fn mut_hot_tablets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.hot_tablets - } - - // Take field - pub fn take_hot_tablets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.hot_tablets, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateAppProfileMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListHotTabletsResponse { +impl ::protobuf::Message for UpdateAppProfileMetadata { + const NAME: &'static str = "UpdateAppProfileMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.hot_tablets { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.hot_tablets)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6294,1067 +3338,697 @@ impl ::protobuf::Message for ListHotTabletsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.hot_tablets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.hot_tablets { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListHotTabletsResponse { - ListHotTabletsResponse::new() + fn new() -> UpdateAppProfileMetadata { + UpdateAppProfileMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "hot_tablets", - |m: &ListHotTabletsResponse| { &m.hot_tablets }, - |m: &mut ListHotTabletsResponse| { &mut m.hot_tablets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListHotTabletsResponse| { &m.next_page_token }, - |m: &mut ListHotTabletsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListHotTabletsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.special_fields.clear(); } - fn default_instance() -> &'static ListHotTabletsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListHotTabletsResponse::new) + fn default_instance() -> &'static UpdateAppProfileMetadata { + static instance: UpdateAppProfileMetadata = UpdateAppProfileMetadata { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListHotTabletsResponse { - fn clear(&mut self) { - self.hot_tablets.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateAppProfileMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateAppProfileMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for ListHotTabletsResponse { +impl ::std::fmt::Display for UpdateAppProfileMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListHotTabletsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateAppProfileMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n6google/bigtable/admin/v2/bigtable_instance_admin.proto\x12\x18google.\ - bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/\ - client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/re\ - source.proto\x1a'google/bigtable/admin/v2/instance.proto\x1a\x1egoogle/i\ - am/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/long\ - running/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20googl\ - e/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\ - \x03\n\x15CreateInstanceRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06\ - parentB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\x02\ - \x12$\n\x0binstance_id\x18\x02\x20\x01(\tR\ninstanceIdB\x03\xe0A\x02\x12\ - C\n\x08instance\x18\x03\x20\x01(\x0b2\".google.bigtable.admin.v2.Instanc\ - eR\x08instanceB\x03\xe0A\x02\x12^\n\x08clusters\x18\x04\x20\x03(\x0b2=.g\ - oogle.bigtable.admin.v2.CreateInstanceRequest.ClustersEntryR\x08clusters\ - B\x03\xe0A\x02\x1a^\n\rClustersEntry\x12\x10\n\x03key\x18\x01\x20\x01(\t\ - R\x03key\x127\n\x05value\x18\x02\x20\x01(\x0b2!.google.bigtable.admin.v2\ - .ClusterR\x05value:\x028\x01\"W\n\x12GetInstanceRequest\x12A\n\x04name\ - \x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%bigtableadmin.googleapis.com/Inst\ - ance\xe0A\x02\"\x82\x01\n\x14ListInstancesRequest\x12K\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcemanager.googleapis.com\ - /Project\xe0A\x02\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToken\"\ - \xac\x01\n\x15ListInstancesResponse\x12@\n\tinstances\x18\x01\x20\x03(\ - \x0b2\".google.bigtable.admin.v2.InstanceR\tinstances\x12)\n\x10failed_l\ - ocations\x18\x02\x20\x03(\tR\x0ffailedLocations\x12&\n\x0fnext_page_toke\ - n\x18\x03\x20\x01(\tR\rnextPageToken\"\xa5\x01\n\x1cPartialUpdateInstanc\ - eRequest\x12C\n\x08instance\x18\x01\x20\x01(\x0b2\".google.bigtable.admi\ - n.v2.InstanceR\x08instanceB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\ - \"Z\n\x15DeleteInstanceRequest\x12A\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - eB-\xfaA'\n%bigtableadmin.googleapis.com/Instance\xe0A\x02\"\xc3\x01\n\ - \x14CreateClusterRequest\x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ - -\xfaA'\n%bigtableadmin.googleapis.com/Instance\xe0A\x02\x12\"\n\ncluste\ - r_id\x18\x02\x20\x01(\tR\tclusterIdB\x03\xe0A\x02\x12@\n\x07cluster\x18\ - \x03\x20\x01(\x0b2!.google.bigtable.admin.v2.ClusterR\x07clusterB\x03\ - \xe0A\x02\"U\n\x11GetClusterRequest\x12@\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB,\xfaA&\n$bigtableadmin.googleapis.com/Cluster\xe0A\x02\"{\n\ - \x13ListClustersRequest\x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB-\ - \xfaA'\n%bigtableadmin.googleapis.com/Instance\xe0A\x02\x12\x1d\n\npage_\ - token\x18\x02\x20\x01(\tR\tpageToken\"\xa8\x01\n\x14ListClustersResponse\ - \x12=\n\x08clusters\x18\x01\x20\x03(\x0b2!.google.bigtable.admin.v2.Clus\ - terR\x08clusters\x12)\n\x10failed_locations\x18\x02\x20\x03(\tR\x0ffaile\ - dLocations\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\ - \"X\n\x14DeleteClusterRequest\x12@\n\x04name\x18\x01\x20\x01(\tR\x04name\ - B,\xfaA&\n$bigtableadmin.googleapis.com/Cluster\xe0A\x02\"\xf0\x01\n\x16\ - CreateInstanceMetadata\x12Z\n\x10original_request\x18\x01\x20\x01(\x0b2/\ - .google.bigtable.admin.v2.CreateInstanceRequestR\x0foriginalRequest\x12=\ - \n\x0crequest_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ + bigtable.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a'google/bigtabl\ + e/admin/v2/instance.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1ag\ + oogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\ + \x1bgoogle/protobuf/empty.proto\x1a\x20google/protobuf/field_mask.proto\ + \x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x02\n\x15CreateInstanceReq\ + uest\x12\x16\n\x06parent\x18\x01\x20\x01(\tR\x06parent\x12\x1f\n\x0binst\ + ance_id\x18\x02\x20\x01(\tR\ninstanceId\x12>\n\x08instance\x18\x03\x20\ + \x01(\x0b2\".google.bigtable.admin.v2.InstanceR\x08instance\x12Y\n\x08cl\ + usters\x18\x04\x20\x03(\x0b2=.google.bigtable.admin.v2.CreateInstanceReq\ + uest.ClustersEntryR\x08clusters\x1a^\n\rClustersEntry\x12\x10\n\x03key\ + \x18\x01\x20\x01(\tR\x03key\x127\n\x05value\x18\x02\x20\x01(\x0b2!.googl\ + e.bigtable.admin.v2.ClusterR\x05value:\x028\x01\"(\n\x12GetInstanceReque\ + st\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"M\n\x14ListInstancesRe\ + quest\x12\x16\n\x06parent\x18\x01\x20\x01(\tR\x06parent\x12\x1d\n\npage_\ + token\x18\x02\x20\x01(\tR\tpageToken\"\xac\x01\n\x15ListInstancesRespons\ + e\x12@\n\tinstances\x18\x01\x20\x03(\x0b2\".google.bigtable.admin.v2.Ins\ + tanceR\tinstances\x12)\n\x10failed_locations\x18\x02\x20\x03(\tR\x0ffail\ + edLocations\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\ + \"\x9b\x01\n\x1cPartialUpdateInstanceRequest\x12>\n\x08instance\x18\x01\ + \x20\x01(\x0b2\".google.bigtable.admin.v2.InstanceR\x08instance\x12;\n\ + \x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ + dateMask\"+\n\x15DeleteInstanceRequest\x12\x12\n\x04name\x18\x01\x20\x01\ + (\tR\x04name\"\x8a\x01\n\x14CreateClusterRequest\x12\x16\n\x06parent\x18\ + \x01\x20\x01(\tR\x06parent\x12\x1d\n\ncluster_id\x18\x02\x20\x01(\tR\tcl\ + usterId\x12;\n\x07cluster\x18\x03\x20\x01(\x0b2!.google.bigtable.admin.v\ + 2.ClusterR\x07cluster\"'\n\x11GetClusterRequest\x12\x12\n\x04name\x18\ + \x01\x20\x01(\tR\x04name\"L\n\x13ListClustersRequest\x12\x16\n\x06parent\ + \x18\x01\x20\x01(\tR\x06parent\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\ + \tpageToken\"\xa8\x01\n\x14ListClustersResponse\x12=\n\x08clusters\x18\ + \x01\x20\x03(\x0b2!.google.bigtable.admin.v2.ClusterR\x08clusters\x12)\n\ + \x10failed_locations\x18\x02\x20\x03(\tR\x0ffailedLocations\x12&\n\x0fne\ + xt_page_token\x18\x03\x20\x01(\tR\rnextPageToken\"*\n\x14DeleteClusterRe\ + quest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\xf0\x01\n\x16Creat\ + eInstanceMetadata\x12Z\n\x10original_request\x18\x01\x20\x01(\x0b2/.goog\ + le.bigtable.admin.v2.CreateInstanceRequestR\x0foriginalRequest\x12=\n\ + \x0crequest_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ \x0brequestTime\x12;\n\x0bfinish_time\x18\x03\x20\x01(\x0b2\x1a.google.p\ rotobuf.TimestampR\nfinishTime\"\xf7\x01\n\x16UpdateInstanceMetadata\x12\ a\n\x10original_request\x18\x01\x20\x01(\x0b26.google.bigtable.admin.v2.\ PartialUpdateInstanceRequestR\x0foriginalRequest\x12=\n\x0crequest_time\ \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0brequestTime\x12\ ;\n\x0bfinish_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \nfinishTime\"\xea\x05\n\x15CreateClusterMetadata\x12Y\n\x10original_req\ + \nfinishTime\"\xee\x01\n\x15CreateClusterMetadata\x12Y\n\x10original_req\ uest\x18\x01\x20\x01(\x0b2..google.bigtable.admin.v2.CreateClusterReques\ tR\x0foriginalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01(\x0b2\x1a.g\ oogle.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinish_time\x18\x03\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\x12S\n\x06tabl\ - es\x18\x04\x20\x03(\x0b2;.google.bigtable.admin.v2.CreateClusterMetadata\ - .TablesEntryR\x06tables\x1a\xaa\x02\n\rTableProgress\x120\n\x14estimated\ - _size_bytes\x18\x02\x20\x01(\x03R\x12estimatedSizeBytes\x124\n\x16estima\ - ted_copied_bytes\x18\x03\x20\x01(\x03R\x14estimatedCopiedBytes\x12Y\n\ - \x05state\x18\x04\x20\x01(\x0e2C.google.bigtable.admin.v2.CreateClusterM\ - etadata.TableProgress.StateR\x05state\"V\n\x05State\x12\x15\n\x11STATE_U\ - NSPECIFIED\x10\0\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07COPYING\x10\ - \x02\x12\r\n\tCOMPLETED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x1ax\n\x0bTab\ - lesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12S\n\x05value\x18\ - \x02\x20\x01(\x0b2=.google.bigtable.admin.v2.CreateClusterMetadata.Table\ - ProgressR\x05value:\x028\x01\"\xe1\x01\n\x15UpdateClusterMetadata\x12L\n\ - \x10original_request\x18\x01\x20\x01(\x0b2!.google.bigtable.admin.v2.Clu\ - sterR\x0foriginalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinish_time\x18\ - \x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\"\xfc\x01\ - \n\x1cPartialUpdateClusterMetadata\x12=\n\x0crequest_time\x18\x01\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinis\ - h_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\ - \x12`\n\x10original_request\x18\x03\x20\x01(\x0b25.google.bigtable.admin\ - .v2.PartialUpdateClusterRequestR\x0foriginalRequest\"\xa1\x01\n\x1bParti\ - alUpdateClusterRequest\x12@\n\x07cluster\x18\x01\x20\x01(\x0b2!.google.b\ - igtable.admin.v2.ClusterR\x07clusterB\x03\xe0A\x02\x12@\n\x0bupdate_mask\ - \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\ - \xe0A\x02\"\x80\x02\n\x17CreateAppProfileRequest\x12E\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB-\xfaA'\n%bigtableadmin.googleapis.com/Instan\ - ce\xe0A\x02\x12)\n\x0eapp_profile_id\x18\x02\x20\x01(\tR\x0cappProfileId\ - B\x03\xe0A\x02\x12J\n\x0bapp_profile\x18\x03\x20\x01(\x0b2$.google.bigta\ - ble.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12'\n\x0fignore_warn\ - ings\x18\x04\x20\x01(\x08R\x0eignoreWarnings\"[\n\x14GetAppProfileReques\ - t\x12C\n\x04name\x18\x01\x20\x01(\tR\x04nameB/\xfaA)\n'bigtableadmin.goo\ - gleapis.com/AppProfile\xe0A\x02\"\x9b\x01\n\x16ListAppProfilesRequest\ - \x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB-\xfaA'\n%bigtableadmin.\ - googleapis.com/Instance\xe0A\x02\x12\x1b\n\tpage_size\x18\x03\x20\x01(\ - \x05R\x08pageSize\x12\x1d\n\npage_token\x18\x02\x20\x01(\tR\tpageToken\"\ - \xb5\x01\n\x17ListAppProfilesResponse\x12G\n\x0capp_profiles\x18\x01\x20\ - \x03(\x0b2$.google.bigtable.admin.v2.AppProfileR\x0bappProfiles\x12&\n\ - \x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\x12)\n\x10failed_\ - locations\x18\x03\x20\x03(\tR\x0ffailedLocations\"\xd0\x01\n\x17UpdateAp\ - pProfileRequest\x12J\n\x0bapp_profile\x18\x01\x20\x01(\x0b2$.google.bigt\ - able.admin.v2.AppProfileR\nappProfileB\x03\xe0A\x02\x12@\n\x0bupdate_mas\ - k\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\ - \xe0A\x02\x12'\n\x0fignore_warnings\x18\x03\x20\x01(\x08R\x0eignoreWarni\ - ngs\"\x8c\x01\n\x17DeleteAppProfileRequest\x12C\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB/\xfaA)\n'bigtableadmin.googleapis.com/AppProfile\xe0A\ - \x02\x12,\n\x0fignore_warnings\x18\x02\x20\x01(\x08R\x0eignoreWarningsB\ - \x03\xe0A\x02\"\x1a\n\x18UpdateAppProfileMetadata\"\x8b\x02\n\x15ListHot\ - TabletsRequest\x12D\n\x06parent\x18\x01\x20\x01(\tR\x06parentB,\xfaA&\n$\ - bigtableadmin.googleapis.com/Cluster\xe0A\x02\x129\n\nstart_time\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_t\ - ime\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12\ - \x1b\n\tpage_size\x18\x04\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_toke\ - n\x18\x05\x20\x01(\tR\tpageToken\"\x86\x01\n\x16ListHotTabletsResponse\ - \x12D\n\x0bhot_tablets\x18\x01\x20\x03(\x0b2#.google.bigtable.admin.v2.H\ - otTabletR\nhotTablets\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnex\ - tPageToken2\xcb!\n\x15BigtableInstanceAdmin\x12\xda\x01\n\x0eCreateInsta\ - nce\x12/.google.bigtable.admin.v2.CreateInstanceRequest\x1a\x1d.google.l\ - ongrunning.Operation\"x\xcaA\"\n\x08Instance\x12\x16CreateInstanceMetada\ - ta\x82\xd3\xe4\x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\xdaA$p\ - arent,instance_id,instance,clusters\x12\x91\x01\n\x0bGetInstance\x12,.go\ - ogle.bigtable.admin.v2.GetInstanceRequest\x1a\".google.bigtable.admin.v2\ - .Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects/*/instances/*}\ - \xdaA\x04name\x12\xa4\x01\n\rListInstances\x12..google.bigtable.admin.v2\ - .ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesRespons\ - e\"2\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\xdaA\x06\ - parent\x12\x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.In\ - stance\x1a\".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\ - \x1a!/v2/{name=projects/*/instances/*}:\x01*\x12\xe8\x01\n\x15PartialUpd\ - ateInstance\x126.google.bigtable.admin.v2.PartialUpdateInstanceRequest\ - \x1a\x1d.google.longrunning.Operation\"x\xcaA\"\n\x08Instance\x12\x16Upd\ - ateInstanceMetadata\x82\xd3\xe4\x93\x0262*/v2/{instance.name=projects/*/\ - instances/*}:\x08instance\xdaA\x14instance,update_mask\x12\x8b\x01\n\x0e\ - DeleteInstance\x12/.google.bigtable.admin.v2.DeleteInstanceRequest\x1a\ - \x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*\ - /instances/*}\xdaA\x04name\x12\xdc\x01\n\rCreateCluster\x12..google.bigt\ - able.admin.v2.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\ - \"|\xcaA\x20\n\x07Cluster\x12\x15CreateClusterMetadata\x82\xd3\xe4\x93\ - \x027\",/v2/{parent=projects/*/instances/*}/clusters:\x07cluster\xdaA\ - \x19parent,cluster_id,cluster\x12\x99\x01\n\nGetCluster\x12+.google.bigt\ - able.admin.v2.GetClusterRequest\x1a!.google.bigtable.admin.v2.Cluster\";\ - \x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instances/*/clusters/*}\ - \xdaA\x04name\x12\xac\x01\n\x0cListClusters\x12-.google.bigtable.admin.v\ - 2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResponse\ - \"=\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/cluster\ - s\xdaA\x06parent\x12\xad\x01\n\rUpdateCluster\x12!.google.bigtable.admin\ - .v2.Cluster\x1a\x1d.google.longrunning.Operation\"Z\xcaA\x20\n\x07Cluste\ - r\x12\x15UpdateClusterMetadata\x82\xd3\xe4\x93\x021\x1a,/v2/{name=projec\ - ts/*/instances/*/clusters/*}:\x01*\x12\xf4\x01\n\x14PartialUpdateCluster\ - \x125.google.bigtable.admin.v2.PartialUpdateClusterRequest\x1a\x1d.googl\ - e.longrunning.Operation\"\x85\x01\xcaA'\n\x07Cluster\x12\x1cPartialUpdat\ - eClusterMetadata\x82\xd3\xe4\x93\x02?24/v2/{cluster.name=projects/*/inst\ - ances/*/clusters/*}:\x07cluster\xdaA\x13cluster,update_mask\x12\x94\x01\ - \n\rDeleteCluster\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\ - \x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*\ - /instances/*/clusters/*}\xdaA\x04name\x12\xd5\x01\n\x10CreateAppProfile\ - \x121.google.bigtable.admin.v2.CreateAppProfileRequest\x1a$.google.bigta\ - ble.admin.v2.AppProfile\"h\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*\ - /instances/*}/appProfiles:\x0bapp_profile\xdaA!parent,app_profile_id,app\ - _profile\x12\xa5\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.GetA\ - ppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\">\x82\xd3\xe4\ - \x93\x021\x12//v2/{name=projects/*/instances/*/appProfiles/*}\xdaA\x04na\ - me\x12\xb8\x01\n\x0fListAppProfiles\x120.google.bigtable.admin.v2.ListAp\ - pProfilesRequest\x1a1.google.bigtable.admin.v2.ListAppProfilesResponse\"\ - @\x82\xd3\xe4\x93\x021\x12//v2/{parent=projects/*/instances/*}/appProfil\ - es\xdaA\x06parent\x12\xfa\x01\n\x10UpdateAppProfile\x121.google.bigtable\ - .admin.v2.UpdateAppProfileRequest\x1a\x1d.google.longrunning.Operation\"\ - \x93\x01\xcaA&\n\nAppProfile\x12\x18UpdateAppProfileMetadata\x82\xd3\xe4\ - \x93\x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\ - \x0bapp_profile\xdaA\x17app_profile,update_mask\x12\x9d\x01\n\x10DeleteA\ - ppProfile\x121.google.bigtable.admin.v2.DeleteAppProfileRequest\x1a\x16.\ - google.protobuf.Empty\">\x82\xd3\xe4\x93\x021*//v2/{name=projects/*/inst\ - ances/*/appProfiles/*}\xdaA\x04name\x12\x93\x01\n\x0cGetIamPolicy\x12\".\ - google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\ - \xd3\xe4\x93\x027\"2/v2/{resource=projects/*/instances/*}:getIamPolicy:\ - \x01*\xdaA\x08resource\x12\x9a\x01\n\x0cSetIamPolicy\x12\".google.iam.v1\ - .SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"O\x82\xd3\xe4\x93\x02\ - 7\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\xdaA\x0fres\ - ource,policy\x12\xc5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.Test\ - IamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Z\ - \x82\xd3\xe4\x93\x02=\"8/v2/{resource=projects/*/instances/*}:testIamPer\ - missions:\x01*\xdaA\x14resource,permissions\x12\xbf\x01\n\x0eListHotTabl\ - ets\x12/.google.bigtable.admin.v2.ListHotTabletsRequest\x1a0.google.bigt\ - able.admin.v2.ListHotTabletsResponse\"J\x82\xd3\xe4\x93\x02;\x129/v2/{pa\ - rent=projects/*/instances/*/clusters/*}/hotTablets\xdaA\x06parent\x1a\ - \x9a\x03\xd2A\xf7\x02https://www.googleapis.com/auth/bigtable.admin,http\ - s://www.googleapis.com/auth/bigtable.admin.cluster,https://www.googleapi\ - s.com/auth/bigtable.admin.instance,https://www.googleapis.com/auth/cloud\ - -bigtable.admin,https://www.googleapis.com/auth/cloud-bigtable.admin.clu\ - ster,https://www.googleapis.com/auth/cloud-platform,https://www.googleap\ - is.com/auth/cloud-platform.read-only\xcaA\x1cbigtableadmin.googleapis.co\ - mB\xe2\x01\n\x1ccom.google.bigtable.admin.v2B\x1aBigtableInstanceAdminPr\ - otoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\ - \xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Big\ - table\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2J\xda\xbb\ - \x01\n\x07\x12\x05\x0e\0\xee\x05\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20u\ - nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ - \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ - mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ - py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ - e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\ - \x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\ - \x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\01\n\t\n\x02\x03\x05\x12\x03\x17\0\ - (\n\t\n\x02\x03\x06\x12\x03\x18\0$\n\t\n\x02\x03\x07\x12\x03\x19\0-\n\t\ - \n\x02\x03\x08\x12\x03\x1a\0%\n\t\n\x02\x03\t\x12\x03\x1b\0*\n\t\n\x02\ - \x03\n\x12\x03\x1c\0)\n\x08\n\x01\x08\x12\x03\x1e\0;\n\t\n\x02\x08%\x12\ - \x03\x1e\0;\n\x08\n\x01\x08\x12\x03\x1f\0T\n\t\n\x02\x08\x0b\x12\x03\x1f\ - \0T\n\x08\n\x01\x08\x12\x03\x20\0\"\n\t\n\x02\x08\n\x12\x03\x20\0\"\n\ - \x08\n\x01\x08\x12\x03!\0;\n\t\n\x02\x08\x08\x12\x03!\0;\n\x08\n\x01\x08\ - \x12\x03\"\05\n\t\n\x02\x08\x01\x12\x03\"\05\n\x08\n\x01\x08\x12\x03#\0<\ - \n\t\n\x02\x08)\x12\x03#\0<\n\x08\n\x01\x08\x12\x03$\0;\n\t\n\x02\x08-\ - \x12\x03$\0;\n\xdb\x01\n\x02\x06\0\x12\x05)\0\xa8\x02\x01\x1a\xcd\x01\ - \x20Service\x20for\x20creating,\x20configuring,\x20and\x20deleting\x20Cl\ - oud\x20Bigtable\x20Instances\x20and\n\x20Clusters.\x20Provides\x20access\ - \x20to\x20the\x20Instance\x20and\x20Cluster\x20schemas\x20only,\x20not\ - \x20the\n\x20tables'\x20metadata\x20or\x20data\x20stored\x20in\x20those\ - \x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03)\x08\x1d\n\n\n\x03\x06\0\x03\ - \x12\x03*\x02D\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03*\x02D\n\x0b\n\x03\ - \x06\0\x03\x12\x04+\x022A\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04+\x022A\n\ - \xca\x02\n\x04\x06\0\x02\0\x12\x04;\x02G\x03\x1a\xbb\x02\x20Create\x20an\ - \x20instance\x20within\x20a\x20project.\n\n\x20Note\x20that\x20exactly\ - \x20one\x20of\x20Cluster.serve_nodes\x20and\n\x20Cluster.cluster_config.\ - cluster_autoscaling_config\x20can\x20be\x20set.\x20If\n\x20serve_nodes\ - \x20is\x20set\x20to\x20non-zero,\x20then\x20the\x20cluster\x20is\x20manu\ - ally\x20scaled.\x20If\n\x20cluster_config.cluster_autoscaling_config\x20\ - is\x20non-empty,\x20then\x20autoscaling\x20is\n\x20enabled.\n\n\x0c\n\ - \x05\x06\0\x02\0\x01\x12\x03;\x06\x14\n\x0c\n\x05\x06\0\x02\0\x02\x12\ - \x03;\x15*\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03<\x0f+\n\r\n\x05\x06\0\x02\ - \0\x04\x12\x04=\x04@\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04\ - =\x04@\x06\n\r\n\x05\x06\0\x02\0\x04\x12\x04A\x04B/\n\x10\n\x08\x06\0\ - \x02\0\x04\x9b\x08\0\x12\x04A\x04B/\n\r\n\x05\x06\0\x02\0\x04\x12\x04C\ - \x04F\x06\n\x0f\n\x07\x06\0\x02\0\x04\x99\x08\x12\x04C\x04F\x06\n3\n\x04\ - \x06\0\x02\x01\x12\x04J\x02O\x03\x1a%\x20Gets\x20information\x20about\ - \x20an\x20instance.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03J\x06\x11\n\ - \x0c\n\x05\x06\0\x02\x01\x02\x12\x03J\x12$\n\x0c\n\x05\x06\0\x02\x01\x03\ - \x12\x03J/7\n\r\n\x05\x06\0\x02\x01\x04\x12\x04K\x04M\x06\n\x11\n\t\x06\ - \0\x02\x01\x04\xb0\xca\xbc\"\x12\x04K\x04M\x06\n\x0c\n\x05\x06\0\x02\x01\ - \x04\x12\x03N\x042\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03N\x042\ - \n?\n\x04\x06\0\x02\x02\x12\x04R\x02W\x03\x1a1\x20Lists\x20information\ - \x20about\x20instances\x20in\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\ - \x02\x01\x12\x03R\x06\x13\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03R\x14(\n\ - \x0c\n\x05\x06\0\x02\x02\x03\x12\x03R3H\n\r\n\x05\x06\0\x02\x02\x04\x12\ - \x04S\x04U\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04S\x04U\ - \x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03V\x044\n\x0f\n\x08\x06\0\x02\ - \x02\x04\x9b\x08\0\x12\x03V\x044\n\xcc\x01\n\x04\x06\0\x02\x03\x12\x04\\\ - \x02a\x03\x1a\xbd\x01\x20Updates\x20an\x20instance\x20within\x20a\x20pro\ - ject.\x20This\x20method\x20updates\x20only\x20the\x20display\n\x20name\ - \x20and\x20type\x20for\x20an\x20Instance.\x20To\x20update\x20other\x20In\ - stance\x20properties,\x20such\x20as\n\x20labels,\x20use\x20PartialUpdate\ - Instance.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03\\\x06\x14\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03\\\x15\x1d\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ - \x03\\(0\n\r\n\x05\x06\0\x02\x03\x04\x12\x04]\x04`\x06\n\x11\n\t\x06\0\ - \x02\x03\x04\xb0\xca\xbc\"\x12\x04]\x04`\x06\n\xa2\x01\n\x04\x06\0\x02\ - \x04\x12\x04e\x02p\x03\x1a\x93\x01\x20Partially\x20updates\x20an\x20inst\ - ance\x20within\x20a\x20project.\x20This\x20method\x20can\x20modify\x20al\ - l\n\x20fields\x20of\x20an\x20Instance\x20and\x20is\x20the\x20preferred\ - \x20way\x20to\x20update\x20an\x20Instance.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03e\x06\x1b\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03e\x1c8\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03f\x0f+\n\r\n\x05\x06\0\x02\x04\x04\x12\ - \x04g\x04j\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04g\x04j\ - \x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03k\x04B\n\x0f\n\x08\x06\0\x02\ - \x04\x04\x9b\x08\0\x12\x03k\x04B\n\r\n\x05\x06\0\x02\x04\x04\x12\x04l\ - \x04o\x06\n\x0f\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04l\x04o\x06\n2\n\ - \x04\x06\0\x02\x05\x12\x04s\x02x\x03\x1a$\x20Delete\x20an\x20instance\ - \x20from\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03s\x06\ - \x14\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03s\x15*\n\x0c\n\x05\x06\0\x02\ - \x05\x03\x12\x03s5J\n\r\n\x05\x06\0\x02\x05\x04\x12\x04t\x04v\x06\n\x11\ - \n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04t\x04v\x06\n\x0c\n\x05\x06\0\ - \x02\x05\x04\x12\x03w\x042\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\ - \x03w\x042\n\xcd\x02\n\x04\x06\0\x02\x06\x12\x06\x81\x01\x02\x8c\x01\x03\ - \x1a\xbc\x02\x20Creates\x20a\x20cluster\x20within\x20an\x20instance.\n\n\ - \x20Note\x20that\x20exactly\x20one\x20of\x20Cluster.serve_nodes\x20and\n\ - \x20Cluster.cluster_config.cluster_autoscaling_config\x20can\x20be\x20se\ - t.\x20If\n\x20serve_nodes\x20is\x20set\x20to\x20non-zero,\x20then\x20the\ - \x20cluster\x20is\x20manually\x20scaled.\x20If\n\x20cluster_config.clust\ - er_autoscaling_config\x20is\x20non-empty,\x20then\x20autoscaling\x20is\n\ - \x20enabled.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x81\x01\x06\x13\n\r\n\ - \x05\x06\0\x02\x06\x02\x12\x04\x81\x01\x14(\n\r\n\x05\x06\0\x02\x06\x03\ - \x12\x04\x82\x01\x0f+\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x83\x01\x04\ - \x86\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x83\x01\ - \x04\x86\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x87\x01\x04G\n\x10\ - \n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x87\x01\x04G\n\x0f\n\x05\x06\ - \0\x02\x06\x04\x12\x06\x88\x01\x04\x8b\x01\x06\n\x11\n\x07\x06\0\x02\x06\ - \x04\x99\x08\x12\x06\x88\x01\x04\x8b\x01\x06\n3\n\x04\x06\0\x02\x07\x12\ - \x06\x8f\x01\x02\x94\x01\x03\x1a#\x20Gets\x20information\x20about\x20a\ - \x20cluster.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\x8f\x01\x06\x10\n\r\n\ - \x05\x06\0\x02\x07\x02\x12\x04\x8f\x01\x11\"\n\r\n\x05\x06\0\x02\x07\x03\ - \x12\x04\x8f\x01-4\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x90\x01\x04\x92\ - \x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x90\x01\x04\ - \x92\x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\x93\x01\x042\n\x10\n\ - \x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x04\x93\x01\x042\nB\n\x04\x06\0\x02\ - \x08\x12\x06\x97\x01\x02\x9c\x01\x03\x1a2\x20Lists\x20information\x20abo\ - ut\x20clusters\x20in\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x08\x01\ - \x12\x04\x97\x01\x06\x12\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x97\x01\x13\ - &\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x97\x011E\n\x0f\n\x05\x06\0\x02\ - \x08\x04\x12\x06\x98\x01\x04\x9a\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\ - \xca\xbc\"\x12\x06\x98\x01\x04\x9a\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\ - \x12\x04\x9b\x01\x044\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\ - \x9b\x01\x044\n\xd3\x01\n\x04\x06\0\x02\t\x12\x06\xa3\x01\x02\xac\x01\ - \x03\x1a\xc2\x01\x20Updates\x20a\x20cluster\x20within\x20an\x20instance.\ - \n\n\x20Note\x20that\x20UpdateCluster\x20does\x20not\x20support\x20updat\ - ing\n\x20cluster_config.cluster_autoscaling_config.\x20In\x20order\x20to\ - \x20update\x20it,\x20you\n\x20must\x20use\x20PartialUpdateCluster.\n\n\r\ - \n\x05\x06\0\x02\t\x01\x12\x04\xa3\x01\x06\x13\n\r\n\x05\x06\0\x02\t\x02\ - \x12\x04\xa3\x01\x14\x1b\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xa3\x01&B\n\ - \x0f\n\x05\x06\0\x02\t\x04\x12\x06\xa4\x01\x04\xa7\x01\x06\n\x13\n\t\x06\ - \0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xa4\x01\x04\xa7\x01\x06\n\x0f\n\x05\ - \x06\0\x02\t\x04\x12\x06\xa8\x01\x04\xab\x01\x06\n\x11\n\x07\x06\0\x02\t\ - \x04\x99\x08\x12\x06\xa8\x01\x04\xab\x01\x06\n\xf7\x04\n\x04\x06\0\x02\n\ - \x12\x06\xba\x01\x02\xc5\x01\x03\x1a\xe6\x04\x20Partially\x20updates\x20\ - a\x20cluster\x20within\x20a\x20project.\x20This\x20method\x20is\x20the\ - \x20preferred\n\x20way\x20to\x20update\x20a\x20Cluster.\n\n\x20To\x20ena\ - ble\x20and\x20update\x20autoscaling,\x20set\n\x20cluster_config.cluster_\ - autoscaling_config.\x20When\x20autoscaling\x20is\x20enabled,\n\x20serve_\ - nodes\x20is\x20treated\x20as\x20an\x20OUTPUT_ONLY\x20field,\x20meaning\ - \x20that\x20updates\x20to\x20it\n\x20are\x20ignored.\x20Note\x20that\x20\ - an\x20update\x20cannot\x20simultaneously\x20set\x20serve_nodes\x20to\n\ - \x20non-zero\x20and\x20cluster_config.cluster_autoscaling_config\x20to\ - \x20non-empty,\x20and\n\x20also\x20specify\x20both\x20in\x20the\x20updat\ - e_mask.\n\n\x20To\x20disable\x20autoscaling,\x20clear\x20cluster_config.\ - cluster_autoscaling_config,\n\x20and\x20explicitly\x20set\x20a\x20serve_\ - node\x20count\x20via\x20the\x20update_mask.\n\n\r\n\x05\x06\0\x02\n\x01\ - \x12\x04\xba\x01\x06\x1a\n\r\n\x05\x06\0\x02\n\x02\x12\x04\xba\x01\x1b6\ - \n\r\n\x05\x06\0\x02\n\x03\x12\x04\xbb\x01\x0f+\n\x0f\n\x05\x06\0\x02\n\ - \x04\x12\x06\xbc\x01\x04\xbf\x01\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\ - \xbc\"\x12\x06\xbc\x01\x04\xbf\x01\x06\n\r\n\x05\x06\0\x02\n\x04\x12\x04\ - \xc0\x01\x04A\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\xc0\x01\x04A\ - \n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xc1\x01\x04\xc4\x01\x06\n\x11\n\x07\ - \x06\0\x02\n\x04\x99\x08\x12\x06\xc1\x01\x04\xc4\x01\x06\n5\n\x04\x06\0\ - \x02\x0b\x12\x06\xc8\x01\x02\xcd\x01\x03\x1a%\x20Deletes\x20a\x20cluster\ - \x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xc8\ - \x01\x06\x13\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xc8\x01\x14(\n\r\n\x05\ - \x06\0\x02\x0b\x03\x12\x04\xc8\x013H\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\ - \x06\xc9\x01\x04\xcb\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\ - \x12\x06\xc9\x01\x04\xcb\x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xcc\ - \x01\x042\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xcc\x01\x042\n\ - <\n\x04\x06\0\x02\x0c\x12\x06\xd0\x01\x02\xd6\x01\x03\x1a,\x20Creates\ - \x20an\x20app\x20profile\x20within\x20an\x20instance.\n\n\r\n\x05\x06\0\ - \x02\x0c\x01\x12\x04\xd0\x01\x06\x16\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\ - \xd0\x01\x17.\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xd0\x019C\n\x0f\n\x05\ - \x06\0\x02\x0c\x04\x12\x06\xd1\x01\x04\xd4\x01\x06\n\x13\n\t\x06\0\x02\ - \x0c\x04\xb0\xca\xbc\"\x12\x06\xd1\x01\x04\xd4\x01\x06\n\r\n\x05\x06\0\ - \x02\x0c\x04\x12\x04\xd5\x01\x04O\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\ - \0\x12\x04\xd5\x01\x04O\n8\n\x04\x06\0\x02\r\x12\x06\xd9\x01\x02\xde\x01\ - \x03\x1a(\x20Gets\x20information\x20about\x20an\x20app\x20profile.\n\n\r\ - \n\x05\x06\0\x02\r\x01\x12\x04\xd9\x01\x06\x13\n\r\n\x05\x06\0\x02\r\x02\ - \x12\x04\xd9\x01\x14(\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xd9\x013=\n\x0f\ - \n\x05\x06\0\x02\r\x04\x12\x06\xda\x01\x04\xdc\x01\x06\n\x13\n\t\x06\0\ - \x02\r\x04\xb0\xca\xbc\"\x12\x06\xda\x01\x04\xdc\x01\x06\n\r\n\x05\x06\0\ - \x02\r\x04\x12\x04\xdd\x01\x042\n\x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\ - \x12\x04\xdd\x01\x042\nF\n\x04\x06\0\x02\x0e\x12\x06\xe1\x01\x02\xe7\x01\ - \x03\x1a6\x20Lists\x20information\x20about\x20app\x20profiles\x20in\x20a\ - n\x20instance.\n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xe1\x01\x06\x15\n\r\ - \n\x05\x06\0\x02\x0e\x02\x12\x04\xe1\x01\x16,\n\r\n\x05\x06\0\x02\x0e\ - \x03\x12\x04\xe2\x01\x0f&\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xe3\x01\ - \x04\xe5\x01\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xe3\ - \x01\x04\xe5\x01\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xe6\x01\x044\n\ - \x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\xe6\x01\x044\n<\n\x04\x06\ - \0\x02\x0f\x12\x06\xea\x01\x02\xf5\x01\x03\x1a,\x20Updates\x20an\x20app\ - \x20profile\x20within\x20an\x20instance.\n\n\r\n\x05\x06\0\x02\x0f\x01\ - \x12\x04\xea\x01\x06\x16\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xea\x01\x17\ - .\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\xeb\x01\x0f+\n\x0f\n\x05\x06\0\x02\ - \x0f\x04\x12\x06\xec\x01\x04\xef\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\ - \xca\xbc\"\x12\x06\xec\x01\x04\xef\x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\ - \x12\x04\xf0\x01\x04E\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\ - \xf0\x01\x04E\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xf1\x01\x04\xf4\x01\ - \x06\n\x11\n\x07\x06\0\x02\x0f\x04\x99\x08\x12\x06\xf1\x01\x04\xf4\x01\ - \x06\n:\n\x04\x06\0\x02\x10\x12\x06\xf8\x01\x02\xfe\x01\x03\x1a*\x20Dele\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\"\xe1\x01\n\ + \x15UpdateClusterMetadata\x12L\n\x10original_request\x18\x01\x20\x01(\ + \x0b2!.google.bigtable.admin.v2.ClusterR\x0foriginalRequest\x12=\n\x0cre\ + quest_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0breque\ + stTime\x12;\n\x0bfinish_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.T\ + imestampR\nfinishTime\"\xc7\x01\n\x17CreateAppProfileRequest\x12\x16\n\ + \x06parent\x18\x01\x20\x01(\tR\x06parent\x12$\n\x0eapp_profile_id\x18\ + \x02\x20\x01(\tR\x0cappProfileId\x12E\n\x0bapp_profile\x18\x03\x20\x01(\ + \x0b2$.google.bigtable.admin.v2.AppProfileR\nappProfile\x12'\n\x0fignore\ + _warnings\x18\x04\x20\x01(\x08R\x0eignoreWarnings\"*\n\x14GetAppProfileR\ + equest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"l\n\x16ListAppProf\ + ilesRequest\x12\x16\n\x06parent\x18\x01\x20\x01(\tR\x06parent\x12\x1b\n\ + \tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\ + \x02\x20\x01(\tR\tpageToken\"\xb5\x01\n\x17ListAppProfilesResponse\x12G\ + \n\x0capp_profiles\x18\x01\x20\x03(\x0b2$.google.bigtable.admin.v2.AppPr\ + ofileR\x0bappProfiles\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnex\ + tPageToken\x12)\n\x10failed_locations\x18\x03\x20\x03(\tR\x0ffailedLocat\ + ions\"\xc6\x01\n\x17UpdateAppProfileRequest\x12E\n\x0bapp_profile\x18\ + \x01\x20\x01(\x0b2$.google.bigtable.admin.v2.AppProfileR\nappProfile\x12\ + ;\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\ + \nupdateMask\x12'\n\x0fignore_warnings\x18\x03\x20\x01(\x08R\x0eignoreWa\ + rnings\"V\n\x17DeleteAppProfileRequest\x12\x12\n\x04name\x18\x01\x20\x01\ + (\tR\x04name\x12'\n\x0fignore_warnings\x18\x02\x20\x01(\x08R\x0eignoreWa\ + rnings\"\x1a\n\x18UpdateAppProfileMetadata2\xaa\x17\n\x15BigtableInstanc\ + eAdmin\x12\x8e\x01\n\x0eCreateInstance\x12/.google.bigtable.admin.v2.Cre\ + ateInstanceRequest\x1a\x1d.google.longrunning.Operation\",\x82\xd3\xe4\ + \x93\x02&\"!/v2/{parent=projects/*}/instances:\x01*\x12\x8a\x01\n\x0bGet\ + Instance\x12,.google.bigtable.admin.v2.GetInstanceRequest\x1a\".google.b\ + igtable.admin.v2.Instance\")\x82\xd3\xe4\x93\x02#\x12!/v2/{name=projects\ + /*/instances/*}\x12\x9b\x01\n\rListInstances\x12..google.bigtable.admin.\ + v2.ListInstancesRequest\x1a/.google.bigtable.admin.v2.ListInstancesRespo\ + nse\")\x82\xd3\xe4\x93\x02#\x12!/v2/{parent=projects/*}/instances\x12\ + \x86\x01\n\x0eUpdateInstance\x12\".google.bigtable.admin.v2.Instance\x1a\ + \".google.bigtable.admin.v2.Instance\",\x82\xd3\xe4\x93\x02&\x1a!/v2/{na\ + me=projects/*/instances/*}:\x01*\x12\xac\x01\n\x15PartialUpdateInstance\ + \x126.google.bigtable.admin.v2.PartialUpdateInstanceRequest\x1a\x1d.goog\ + le.longrunning.Operation\"<\x82\xd3\xe4\x93\x0262*/v2/{instance.name=pro\ + jects/*/instances/*}:\x08instance\x12\x84\x01\n\x0eDeleteInstance\x12/.g\ + oogle.bigtable.admin.v2.DeleteInstanceRequest\x1a\x16.google.protobuf.Em\ + pty\")\x82\xd3\xe4\x93\x02#*!/v2/{name=projects/*/instances/*}\x12\x9d\ + \x01\n\rCreateCluster\x12..google.bigtable.admin.v2.CreateClusterRequest\ + \x1a\x1d.google.longrunning.Operation\"=\x82\xd3\xe4\x93\x027\",/v2/{par\ + ent=projects/*/instances/*}/clusters:\x07cluster\x12\x92\x01\n\nGetClust\ + er\x12+.google.bigtable.admin.v2.GetClusterRequest\x1a!.google.bigtable.\ + admin.v2.Cluster\"4\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/instan\ + ces/*/clusters/*}\x12\xa3\x01\n\x0cListClusters\x12-.google.bigtable.adm\ + in.v2.ListClustersRequest\x1a..google.bigtable.admin.v2.ListClustersResp\ + onse\"4\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/instances/*}/clu\ + sters\x12\x8a\x01\n\rUpdateCluster\x12!.google.bigtable.admin.v2.Cluster\ + \x1a\x1d.google.longrunning.Operation\"7\x82\xd3\xe4\x93\x021\x1a,/v2/{n\ + ame=projects/*/instances/*/clusters/*}:\x01*\x12\x8d\x01\n\rDeleteCluste\ + r\x12..google.bigtable.admin.v2.DeleteClusterRequest\x1a\x16.google.prot\ + obuf.Empty\"4\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/instances/*/clu\ + sters/*}\x12\xb1\x01\n\x10CreateAppProfile\x121.google.bigtable.admin.v2\ + .CreateAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"D\x82\ + \xd3\xe4\x93\x02>\"//v2/{parent=projects/*/instances/*}/appProfiles:\x0b\ + app_profile\x12\x9e\x01\n\rGetAppProfile\x12..google.bigtable.admin.v2.G\ + etAppProfileRequest\x1a$.google.bigtable.admin.v2.AppProfile\"7\x82\xd3\ + \xe4\x93\x021\x12//v2/{name=projects/*/instances/*/appProfiles/*}\x12\ + \xaf\x01\n\x0fListAppProfiles\x120.google.bigtable.admin.v2.ListAppProfi\ + lesRequest\x1a1.google.bigtable.admin.v2.ListAppProfilesResponse\"7\x82\ + \xd3\xe4\x93\x021\x12//v2/{parent=projects/*/instances/*}/appProfiles\ + \x12\xb6\x01\n\x10UpdateAppProfile\x121.google.bigtable.admin.v2.UpdateA\ + ppProfileRequest\x1a\x1d.google.longrunning.Operation\"P\x82\xd3\xe4\x93\ + \x02J2;/v2/{app_profile.name=projects/*/instances/*/appProfiles/*}:\x0ba\ + pp_profile\x12\x96\x01\n\x10DeleteAppProfile\x121.google.bigtable.admin.\ + v2.DeleteAppProfileRequest\x1a\x16.google.protobuf.Empty\"7\x82\xd3\xe4\ + \x93\x021*//v2/{name=projects/*/instances/*/appProfiles/*}\x12\x88\x01\n\ + \x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.\ + iam.v1.Policy\"=\x82\xd3\xe4\x93\x027\"2/v2/{resource=projects/*/instanc\ + es/*}:getIamPolicy:\x01*\x12\x88\x01\n\x0cSetIamPolicy\x12\".google.iam.\ + v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"=\x82\xd3\xe4\x93\ + \x027\"2/v2/{resource=projects/*/instances/*}:setIamPolicy:\x01*\x12\xae\ + \x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsReques\ + t\x1a).google.iam.v1.TestIamPermissionsResponse\"C\x82\xd3\xe4\x93\x02=\ + \"8/v2/{resource=projects/*/instances/*}:testIamPermissions:\x01*B\xbd\ + \x01\n\x1ccom.google.bigtable.admin.v2B\x1aBigtableInstanceAdminProtoP\ + \x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\ + \x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtabl\ + e\\Admin\\V2J\xc1r\n\x07\x12\x05\x0f\0\xcc\x03#\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202018\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0!\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\ + \x02\x03\x01\x12\x03\x14\01\n\t\n\x02\x03\x02\x12\x03\x15\0(\n\t\n\x02\ + \x03\x03\x12\x03\x16\0$\n\t\n\x02\x03\x04\x12\x03\x17\0-\n\t\n\x02\x03\ + \x05\x12\x03\x18\0%\n\t\n\x02\x03\x06\x12\x03\x19\0*\n\t\n\x02\x03\x07\ + \x12\x03\x1a\0)\n\x08\n\x01\x08\x12\x03\x1c\0;\n\t\n\x02\x08%\x12\x03\ + \x1c\0;\n\x08\n\x01\x08\x12\x03\x1d\0T\n\t\n\x02\x08\x0b\x12\x03\x1d\0T\ + \n\x08\n\x01\x08\x12\x03\x1e\0\"\n\t\n\x02\x08\n\x12\x03\x1e\0\"\n\x08\n\ + \x01\x08\x12\x03\x1f\0;\n\t\n\x02\x08\x08\x12\x03\x1f\0;\n\x08\n\x01\x08\ + \x12\x03\x20\05\n\t\n\x02\x08\x01\x12\x03\x20\05\n\x08\n\x01\x08\x12\x03\ + !\0<\n\t\n\x02\x08)\x12\x03!\0<\n\xdb\x01\n\x02\x06\0\x12\x05&\0\xc0\x01\ + \x01\x1a\xcd\x01\x20Service\x20for\x20creating,\x20configuring,\x20and\ + \x20deleting\x20Cloud\x20Bigtable\x20Instances\x20and\n\x20Clusters.\x20\ + Provides\x20access\x20to\x20the\x20Instance\x20and\x20Cluster\x20schemas\ + \x20only,\x20not\x20the\n\x20tables'\x20metadata\x20or\x20data\x20stored\ + \x20in\x20those\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03&\x08\x1d\n4\n\ + \x04\x06\0\x02\0\x12\x04(\x02.\x03\x1a&\x20Create\x20an\x20instance\x20w\ + ithin\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03(\x06\x14\n\ + \x0c\n\x05\x06\0\x02\0\x02\x12\x03(\x15*\n\x0c\n\x05\x06\0\x02\0\x03\x12\ + \x03)\x0f+\n\r\n\x05\x06\0\x02\0\x04\x12\x04*\x04-\x06\n\x11\n\t\x06\0\ + \x02\0\x04\xb0\xca\xbc\"\x12\x04*\x04-\x06\n3\n\x04\x06\0\x02\x01\x12\ + \x041\x025\x03\x1a%\x20Gets\x20information\x20about\x20an\x20instance.\n\ + \n\x0c\n\x05\x06\0\x02\x01\x01\x12\x031\x06\x11\n\x0c\n\x05\x06\0\x02\ + \x01\x02\x12\x031\x12$\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x031/7\n\r\n\ + \x05\x06\0\x02\x01\x04\x12\x042\x044\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\ + \xca\xbc\"\x12\x042\x044\x06\n?\n\x04\x06\0\x02\x02\x12\x048\x02<\x03\ + \x1a1\x20Lists\x20information\x20about\x20instances\x20in\x20a\x20projec\ + t.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x038\x06\x13\n\x0c\n\x05\x06\0\ + \x02\x02\x02\x12\x038\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x0383H\n\r\ + \n\x05\x06\0\x02\x02\x04\x12\x049\x04;\x06\n\x11\n\t\x06\0\x02\x02\x04\ + \xb0\xca\xbc\"\x12\x049\x04;\x06\n5\n\x04\x06\0\x02\x03\x12\x04?\x02D\ + \x03\x1a'\x20Updates\x20an\x20instance\x20within\x20a\x20project.\n\n\ + \x0c\n\x05\x06\0\x02\x03\x01\x12\x03?\x06\x14\n\x0c\n\x05\x06\0\x02\x03\ + \x02\x12\x03?\x15\x1d\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03?(0\n\r\n\x05\ + \x06\0\x02\x03\x04\x12\x04@\x04C\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\ + \xbc\"\x12\x04@\x04C\x06\n?\n\x04\x06\0\x02\x04\x12\x04G\x02M\x03\x1a1\ + \x20Partially\x20updates\x20an\x20instance\x20within\x20a\x20project.\n\ + \n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03G\x06\x1b\n\x0c\n\x05\x06\0\x02\ + \x04\x02\x12\x03G\x1c8\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03H\x0f+\n\r\n\ + \x05\x06\0\x02\x04\x04\x12\x04I\x04L\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\ + \xca\xbc\"\x12\x04I\x04L\x06\n2\n\x04\x06\0\x02\x05\x12\x04P\x02T\x03\ + \x1a$\x20Delete\x20an\x20instance\x20from\x20a\x20project.\n\n\x0c\n\x05\ + \x06\0\x02\x05\x01\x12\x03P\x06\x14\n\x0c\n\x05\x06\0\x02\x05\x02\x12\ + \x03P\x15*\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03P5J\n\r\n\x05\x06\0\x02\ + \x05\x04\x12\x04Q\x04S\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\ + \x04Q\x04S\x06\n5\n\x04\x06\0\x02\x06\x12\x04W\x02]\x03\x1a'\x20Creates\ + \x20a\x20cluster\x20within\x20an\x20instance.\n\n\x0c\n\x05\x06\0\x02\ + \x06\x01\x12\x03W\x06\x13\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03W\x14(\n\ + \x0c\n\x05\x06\0\x02\x06\x03\x12\x03X\x0f+\n\r\n\x05\x06\0\x02\x06\x04\ + \x12\x04Y\x04\\\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04Y\ + \x04\\\x06\n1\n\x04\x06\0\x02\x07\x12\x04`\x02d\x03\x1a#\x20Gets\x20info\ + rmation\x20about\x20a\x20cluster.\n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\ + \x03`\x06\x10\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03`\x11\"\n\x0c\n\x05\ + \x06\0\x02\x07\x03\x12\x03`-4\n\r\n\x05\x06\0\x02\x07\x04\x12\x04a\x04c\ + \x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04a\x04c\x06\n@\n\ + \x04\x06\0\x02\x08\x12\x04g\x02k\x03\x1a2\x20Lists\x20information\x20abo\ + ut\x20clusters\x20in\x20an\x20instance.\n\n\x0c\n\x05\x06\0\x02\x08\x01\ + \x12\x03g\x06\x12\n\x0c\n\x05\x06\0\x02\x08\x02\x12\x03g\x13&\n\x0c\n\ + \x05\x06\0\x02\x08\x03\x12\x03g1E\n\r\n\x05\x06\0\x02\x08\x04\x12\x04h\ + \x04j\x06\n\x11\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x04h\x04j\x06\n5\ + \n\x04\x06\0\x02\t\x12\x04n\x02s\x03\x1a'\x20Updates\x20a\x20cluster\x20\ + within\x20an\x20instance.\n\n\x0c\n\x05\x06\0\x02\t\x01\x12\x03n\x06\x13\ + \n\x0c\n\x05\x06\0\x02\t\x02\x12\x03n\x14\x1b\n\x0c\n\x05\x06\0\x02\t\ + \x03\x12\x03n&B\n\r\n\x05\x06\0\x02\t\x04\x12\x04o\x04r\x06\n\x11\n\t\ + \x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x04o\x04r\x06\n3\n\x04\x06\0\x02\n\ + \x12\x04v\x02z\x03\x1a%\x20Deletes\x20a\x20cluster\x20from\x20an\x20inst\ + ance.\n\n\x0c\n\x05\x06\0\x02\n\x01\x12\x03v\x06\x13\n\x0c\n\x05\x06\0\ + \x02\n\x02\x12\x03v\x14(\n\x0c\n\x05\x06\0\x02\n\x03\x12\x03v3H\n\r\n\ + \x05\x06\0\x02\n\x04\x12\x04w\x04y\x06\n\x11\n\t\x06\0\x02\n\x04\xb0\xca\ + \xbc\"\x12\x04w\x04y\x06\n;\n\x04\x06\0\x02\x0b\x12\x05}\x02\x82\x01\x03\ + \x1a,\x20Creates\x20an\x20app\x20profile\x20within\x20an\x20instance.\n\ + \n\x0c\n\x05\x06\0\x02\x0b\x01\x12\x03}\x06\x16\n\x0c\n\x05\x06\0\x02\ + \x0b\x02\x12\x03}\x17.\n\x0c\n\x05\x06\0\x02\x0b\x03\x12\x03}9C\n\x0e\n\ + \x05\x06\0\x02\x0b\x04\x12\x05~\x04\x81\x01\x06\n\x12\n\t\x06\0\x02\x0b\ + \x04\xb0\xca\xbc\"\x12\x05~\x04\x81\x01\x06\n8\n\x04\x06\0\x02\x0c\x12\ + \x06\x85\x01\x02\x89\x01\x03\x1a(\x20Gets\x20information\x20about\x20an\ + \x20app\x20profile.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\x85\x01\x06\ + \x13\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\x85\x01\x14(\n\r\n\x05\x06\0\ + \x02\x0c\x03\x12\x04\x85\x013=\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\x86\ + \x01\x04\x88\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\ + \x86\x01\x04\x88\x01\x06\nF\n\x04\x06\0\x02\r\x12\x06\x8c\x01\x02\x91\ + \x01\x03\x1a6\x20Lists\x20information\x20about\x20app\x20profiles\x20in\ + \x20an\x20instance.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\x8c\x01\x06\x15\ + \n\r\n\x05\x06\0\x02\r\x02\x12\x04\x8c\x01\x16,\n\r\n\x05\x06\0\x02\r\ + \x03\x12\x04\x8d\x01\x0f&\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\x8e\x01\ + \x04\x90\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\x8e\x01\ + \x04\x90\x01\x06\n<\n\x04\x06\0\x02\x0e\x12\x06\x94\x01\x02\x9a\x01\x03\ + \x1a,\x20Updates\x20an\x20app\x20profile\x20within\x20an\x20instance.\n\ + \n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\x94\x01\x06\x16\n\r\n\x05\x06\0\x02\ + \x0e\x02\x12\x04\x94\x01\x17.\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\x95\ + \x01\x0f+\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\x96\x01\x04\x99\x01\x06\ + \n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\x96\x01\x04\x99\x01\ + \x06\n:\n\x04\x06\0\x02\x0f\x12\x06\x9d\x01\x02\xa2\x01\x03\x1a*\x20Dele\ tes\x20an\x20app\x20profile\x20from\x20an\x20instance.\n\n\r\n\x05\x06\0\ - \x02\x10\x01\x12\x04\xf8\x01\x06\x16\n\r\n\x05\x06\0\x02\x10\x02\x12\x04\ - \xf8\x01\x17.\n\r\n\x05\x06\0\x02\x10\x03\x12\x04\xf9\x01\x0f$\n\x0f\n\ - \x05\x06\0\x02\x10\x04\x12\x06\xfa\x01\x04\xfc\x01\x06\n\x13\n\t\x06\0\ - \x02\x10\x04\xb0\xca\xbc\"\x12\x06\xfa\x01\x04\xfc\x01\x06\n\r\n\x05\x06\ - \0\x02\x10\x04\x12\x04\xfd\x01\x042\n\x10\n\x08\x06\0\x02\x10\x04\x9b\ - \x08\0\x12\x04\xfd\x01\x042\n\x9a\x01\n\x04\x06\0\x02\x11\x12\x06\x82\ - \x02\x02\x89\x02\x03\x1a\x89\x01\x20Gets\x20the\x20access\x20control\x20\ - policy\x20for\x20an\x20instance\x20resource.\x20Returns\x20an\x20empty\n\ - \x20policy\x20if\x20an\x20instance\x20exists\x20but\x20does\x20not\x20ha\ - ve\x20a\x20policy\x20set.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\x82\x02\ - \x06\x12\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\x82\x02\x134\n\r\n\x05\x06\ - \0\x02\x11\x03\x12\x04\x83\x02\x0f#\n\x0f\n\x05\x06\0\x02\x11\x04\x12\ - \x06\x84\x02\x04\x87\x02\x06\n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\ - \x12\x06\x84\x02\x04\x87\x02\x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\x88\ - \x02\x046\n\x10\n\x08\x06\0\x02\x11\x04\x9b\x08\0\x12\x04\x88\x02\x046\n\ - h\n\x04\x06\0\x02\x12\x12\x06\x8d\x02\x02\x94\x02\x03\x1aX\x20Sets\x20th\ - e\x20access\x20control\x20policy\x20on\x20an\x20instance\x20resource.\ - \x20Replaces\x20any\n\x20existing\x20policy.\n\n\r\n\x05\x06\0\x02\x12\ - \x01\x12\x04\x8d\x02\x06\x12\n\r\n\x05\x06\0\x02\x12\x02\x12\x04\x8d\x02\ - \x134\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\x8e\x02\x0f#\n\x0f\n\x05\x06\0\ - \x02\x12\x04\x12\x06\x8f\x02\x04\x92\x02\x06\n\x13\n\t\x06\0\x02\x12\x04\ - \xb0\xca\xbc\"\x12\x06\x8f\x02\x04\x92\x02\x06\n\r\n\x05\x06\0\x02\x12\ - \x04\x12\x04\x93\x02\x04=\n\x10\n\x08\x06\0\x02\x12\x04\x9b\x08\0\x12\ - \x04\x93\x02\x04=\n]\n\x04\x06\0\x02\x13\x12\x06\x97\x02\x02\x9e\x02\x03\ - \x1aM\x20Returns\x20permissions\x20that\x20the\x20caller\x20has\x20on\ - \x20the\x20specified\x20instance\x20resource.\n\n\r\n\x05\x06\0\x02\x13\ - \x01\x12\x04\x97\x02\x06\x18\n\r\n\x05\x06\0\x02\x13\x02\x12\x04\x97\x02\ - \x19@\n\r\n\x05\x06\0\x02\x13\x03\x12\x04\x98\x02\x0f7\n\x0f\n\x05\x06\0\ - \x02\x13\x04\x12\x06\x99\x02\x04\x9c\x02\x06\n\x13\n\t\x06\0\x02\x13\x04\ - \xb0\xca\xbc\"\x12\x06\x99\x02\x04\x9c\x02\x06\n\r\n\x05\x06\0\x02\x13\ - \x04\x12\x04\x9d\x02\x04B\n\x10\n\x08\x06\0\x02\x13\x04\x9b\x08\0\x12\ - \x04\x9d\x02\x04B\n~\n\x04\x06\0\x02\x14\x12\x06\xa2\x02\x02\xa7\x02\x03\ - \x1an\x20Lists\x20hot\x20tablets\x20in\x20a\x20cluster,\x20within\x20the\ - \x20time\x20range\x20provided.\x20Hot\n\x20tablets\x20are\x20ordered\x20\ - based\x20on\x20CPU\x20usage.\n\n\r\n\x05\x06\0\x02\x14\x01\x12\x04\xa2\ - \x02\x06\x14\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\xa2\x02\x15*\n\r\n\x05\ - \x06\0\x02\x14\x03\x12\x04\xa2\x025K\n\x0f\n\x05\x06\0\x02\x14\x04\x12\ - \x06\xa3\x02\x04\xa5\x02\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\xca\xbc\"\ - \x12\x06\xa3\x02\x04\xa5\x02\x06\n\r\n\x05\x06\0\x02\x14\x04\x12\x04\xa6\ - \x02\x044\n\x10\n\x08\x06\0\x02\x14\x04\x9b\x08\0\x12\x04\xa6\x02\x044\n\ - I\n\x02\x04\0\x12\x06\xab\x02\0\xc4\x02\x01\x1a;\x20Request\x20message\ - \x20for\x20BigtableInstanceAdmin.CreateInstance.\n\n\x0b\n\x03\x04\0\x01\ - \x12\x04\xab\x02\x08\x1d\n\x8d\x01\n\x04\x04\0\x02\0\x12\x06\xae\x02\x02\ - \xb3\x02\x04\x1a}\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20\ - project\x20in\x20which\x20to\x20create\x20the\x20new\n\x20instance.\x20V\ - alues\x20are\x20of\x20the\x20form\x20`projects/{project}`.\n\n\r\n\x05\ - \x04\0\x02\0\x05\x12\x04\xae\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\ - \x04\xae\x02\t\x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xae\x02\x12\x13\n\ - \x0f\n\x05\x04\0\x02\0\x08\x12\x06\xae\x02\x14\xb3\x02\x03\n\x10\n\x08\ - \x04\0\x02\0\x08\x9c\x08\0\x12\x04\xaf\x02\x04*\n\x11\n\x07\x04\0\x02\0\ - \x08\x9f\x08\x12\x06\xb0\x02\x04\xb2\x02\x05\n\xb4\x01\n\x04\x04\0\x02\ - \x01\x12\x04\xb8\x02\x02B\x1a\xa5\x01\x20Required.\x20The\x20ID\x20to\ - \x20be\x20used\x20when\x20referring\x20to\x20the\x20new\x20instance\x20w\ - ithin\x20its\n\x20project,\x20e.g.,\x20just\x20`myinstance`\x20rather\ - \x20than\n\x20`projects/myproject/instances/myinstance`.\n\n\r\n\x05\x04\ - \0\x02\x01\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\ - \x04\xb8\x02\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xb8\x02\x17\x18\n\ - \r\n\x05\x04\0\x02\x01\x08\x12\x04\xb8\x02\x19A\n\x10\n\x08\x04\0\x02\ - \x01\x08\x9c\x08\0\x12\x04\xb8\x02\x1a@\na\n\x04\x04\0\x02\x02\x12\x04\ - \xbc\x02\x02A\x1aS\x20Required.\x20The\x20instance\x20to\x20create.\n\ - \x20Fields\x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20blank.\n\n\ - \r\n\x05\x04\0\x02\x02\x06\x12\x04\xbc\x02\x02\n\n\r\n\x05\x04\0\x02\x02\ - \x01\x12\x04\xbc\x02\x0b\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xbc\x02\ - \x16\x17\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\xbc\x02\x18@\n\x10\n\x08\ - \x04\0\x02\x02\x08\x9c\x08\0\x12\x04\xbc\x02\x19?\n\xaf\x02\n\x04\x04\0\ - \x02\x03\x12\x04\xc3\x02\x02M\x1a\xa0\x02\x20Required.\x20The\x20cluster\ - s\x20to\x20be\x20created\x20within\x20the\x20instance,\x20mapped\x20by\ - \x20desired\n\x20cluster\x20ID,\x20e.g.,\x20just\x20`mycluster`\x20rathe\ - r\x20than\n\x20`projects/myproject/instances/myinstance/clusters/myclust\ - er`.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20blan\ - k.\n\x20Currently,\x20at\x20most\x20four\x20clusters\x20can\x20be\x20spe\ - cified.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xc3\x02\x02\x16\n\r\n\x05\ - \x04\0\x02\x03\x01\x12\x04\xc3\x02\x17\x1f\n\r\n\x05\x04\0\x02\x03\x03\ - \x12\x04\xc3\x02\"#\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\xc3\x02$L\n\x10\ - \n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\xc3\x02%K\nF\n\x02\x04\x01\ - \x12\x06\xc7\x02\0\xd0\x02\x01\x1a8\x20Request\x20message\x20for\x20Bigt\ - ableInstanceAdmin.GetInstance.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xc7\x02\ - \x08\x1a\n\x89\x01\n\x04\x04\x01\x02\0\x12\x06\xca\x02\x02\xcf\x02\x04\ - \x1ay\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20requested\ - \x20instance.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{proj\ - ect}/instances/{instance}`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xca\ - \x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xca\x02\t\r\n\r\n\x05\ - \x04\x01\x02\0\x03\x12\x04\xca\x02\x10\x11\n\x0f\n\x05\x04\x01\x02\0\x08\ - \x12\x06\xca\x02\x12\xcf\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\ - \x12\x04\xcb\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\xcc\ - \x02\x04\xce\x02\x05\nH\n\x02\x04\x02\x12\x06\xd3\x02\0\xdf\x02\x01\x1a:\ - \x20Request\x20message\x20for\x20BigtableInstanceAdmin.ListInstances.\n\ - \n\x0b\n\x03\x04\x02\x01\x12\x04\xd3\x02\x08\x1c\n\x95\x01\n\x04\x04\x02\ - \x02\0\x12\x06\xd6\x02\x02\xdb\x02\x04\x1a\x84\x01\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20project\x20for\x20which\x20a\x20list\ - \x20of\x20instances\x20is\n\x20requested.\x20Values\x20are\x20of\x20the\ - \x20form\x20`projects/{project}`.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\ - \xd6\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xd6\x02\t\x0f\n\r\n\ - \x05\x04\x02\x02\0\x03\x12\x04\xd6\x02\x12\x13\n\x0f\n\x05\x04\x02\x02\0\ - \x08\x12\x06\xd6\x02\x14\xdb\x02\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\ - \x08\0\x12\x04\xd7\x02\x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\ - \x06\xd8\x02\x04\xda\x02\x05\n=\n\x04\x04\x02\x02\x01\x12\x04\xde\x02\ - \x02\x18\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unused\x20and\x20\ - ignored.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xde\x02\x02\x08\n\r\n\ - \x05\x04\x02\x02\x01\x01\x12\x04\xde\x02\t\x13\n\r\n\x05\x04\x02\x02\x01\ - \x03\x12\x04\xde\x02\x16\x17\nI\n\x02\x04\x03\x12\x06\xe2\x02\0\xf0\x02\ - \x01\x1a;\x20Response\x20message\x20for\x20BigtableInstanceAdmin.ListIns\ - tances.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xe2\x02\x08\x1d\n0\n\x04\x04\ - \x03\x02\0\x12\x04\xe4\x02\x02\"\x1a\"\x20The\x20list\x20of\x20requested\ - \x20instances.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xe4\x02\x02\n\n\r\n\ - \x05\x04\x03\x02\0\x06\x12\x04\xe4\x02\x0b\x13\n\r\n\x05\x04\x03\x02\0\ - \x01\x12\x04\xe4\x02\x14\x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xe4\x02\ - \x20!\n\x95\x03\n\x04\x04\x03\x02\x01\x12\x04\xec\x02\x02'\x1a\x86\x03\ - \x20Locations\x20from\x20which\x20Instance\x20information\x20could\x20no\ - t\x20be\x20retrieved,\n\x20due\x20to\x20an\x20outage\x20or\x20some\x20ot\ - her\x20transient\x20condition.\n\x20Instances\x20whose\x20Clusters\x20ar\ - e\x20all\x20in\x20one\x20of\x20the\x20failed\x20locations\n\x20may\x20be\ - \x20missing\x20from\x20`instances`,\x20and\x20Instances\x20with\x20at\ - \x20least\x20one\n\x20Cluster\x20in\x20a\x20failed\x20location\x20may\ - \x20only\x20have\x20partial\x20information\x20returned.\n\x20Values\x20a\ - re\x20of\x20the\x20form\x20`projects//locations/`\n\n\ - \r\n\x05\x04\x03\x02\x01\x04\x12\x04\xec\x02\x02\n\n\r\n\x05\x04\x03\x02\ - \x01\x05\x12\x04\xec\x02\x0b\x11\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ - \xec\x02\x12\"\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xec\x02%&\n=\n\x04\ - \x04\x03\x02\x02\x12\x04\xef\x02\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20\ - field\x20is\x20unused\x20and\x20ignored.\n\n\r\n\x05\x04\x03\x02\x02\x05\ - \x12\x04\xef\x02\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xef\x02\t\ - \x18\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xef\x02\x1b\x1c\nP\n\x02\x04\ - \x04\x12\x06\xf3\x02\0\xfb\x02\x01\x1aB\x20Request\x20message\x20for\x20\ - BigtableInstanceAdmin.PartialUpdateInstance.\n\n\x0b\n\x03\x04\x04\x01\ - \x12\x04\xf3\x02\x08$\nX\n\x04\x04\x04\x02\0\x12\x04\xf5\x02\x02A\x1aJ\ - \x20Required.\x20The\x20Instance\x20which\x20will\x20(partially)\x20repl\ - ace\x20the\x20current\x20value.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\ - \xf5\x02\x02\n\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xf5\x02\x0b\x13\n\r\n\ - \x05\x04\x04\x02\0\x03\x12\x04\xf5\x02\x16\x17\n\r\n\x05\x04\x04\x02\0\ - \x08\x12\x04\xf5\x02\x18@\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\ - \x04\xf5\x02\x19?\nl\n\x04\x04\x04\x02\x01\x12\x06\xf9\x02\x02\xfa\x02/\ - \x1a\\\x20Required.\x20The\x20subset\x20of\x20Instance\x20fields\x20whic\ - h\x20should\x20be\x20replaced.\n\x20Must\x20be\x20explicitly\x20set.\n\n\ - \r\n\x05\x04\x04\x02\x01\x06\x12\x04\xf9\x02\x02\x1b\n\r\n\x05\x04\x04\ - \x02\x01\x01\x12\x04\xf9\x02\x1c'\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\ - \xf9\x02*+\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xfa\x02\x06.\n\x10\n\ - \x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\xfa\x02\x07-\nI\n\x02\x04\x05\ - \x12\x06\xfe\x02\0\x87\x03\x01\x1a;\x20Request\x20message\x20for\x20Bigt\ - ableInstanceAdmin.DeleteInstance.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xfe\ - \x02\x08\x1d\n\x8d\x01\n\x04\x04\x05\x02\0\x12\x06\x81\x03\x02\x86\x03\ - \x04\x1a}\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20instance\ - \x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20`pro\ - jects/{project}/instances/{instance}`.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\ - \x04\x81\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x81\x03\t\r\n\r\ - \n\x05\x04\x05\x02\0\x03\x12\x04\x81\x03\x10\x11\n\x0f\n\x05\x04\x05\x02\ - \0\x08\x12\x06\x81\x03\x12\x86\x03\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ - \x08\0\x12\x04\x82\x03\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ - \x06\x83\x03\x04\x85\x03\x05\nH\n\x02\x04\x06\x12\x06\x8a\x03\0\x9c\x03\ - \x01\x1a:\x20Request\x20message\x20for\x20BigtableInstanceAdmin.CreateCl\ - uster.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x8a\x03\x08\x1c\n\xa3\x01\n\x04\ - \x04\x06\x02\0\x12\x06\x8d\x03\x02\x92\x03\x04\x1a\x92\x01\x20Required.\ + \x02\x0f\x01\x12\x04\x9d\x01\x06\x16\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\ + \x9d\x01\x17.\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\x9e\x01\x0f$\n\x0f\n\ + \x05\x06\0\x02\x0f\x04\x12\x06\x9f\x01\x04\xa1\x01\x06\n\x13\n\t\x06\0\ + \x02\x0f\x04\xb0\xca\xbc\"\x12\x06\x9f\x01\x04\xa1\x01\x06\n\x9a\x01\n\ + \x04\x06\0\x02\x10\x12\x06\xa6\x01\x02\xac\x01\x03\x1a\x89\x01\x20Gets\ + \x20the\x20access\x20control\x20policy\x20for\x20an\x20instance\x20resou\ + rce.\x20Returns\x20an\x20empty\n\x20policy\x20if\x20an\x20instance\x20ex\ + ists\x20but\x20does\x20not\x20have\x20a\x20policy\x20set.\n\n\r\n\x05\ + \x06\0\x02\x10\x01\x12\x04\xa6\x01\x06\x12\n\r\n\x05\x06\0\x02\x10\x02\ + \x12\x04\xa6\x01\x134\n\r\n\x05\x06\0\x02\x10\x03\x12\x04\xa7\x01\x0f#\n\ + \x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xa8\x01\x04\xab\x01\x06\n\x13\n\t\ + \x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\xa8\x01\x04\xab\x01\x06\nh\n\ + \x04\x06\0\x02\x11\x12\x06\xb0\x01\x02\xb6\x01\x03\x1aX\x20Sets\x20the\ + \x20access\x20control\x20policy\x20on\x20an\x20instance\x20resource.\x20\ + Replaces\x20any\n\x20existing\x20policy.\n\n\r\n\x05\x06\0\x02\x11\x01\ + \x12\x04\xb0\x01\x06\x12\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\xb0\x01\x13\ + 4\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\xb1\x01\x0f#\n\x0f\n\x05\x06\0\x02\ + \x11\x04\x12\x06\xb2\x01\x04\xb5\x01\x06\n\x13\n\t\x06\0\x02\x11\x04\xb0\ + \xca\xbc\"\x12\x06\xb2\x01\x04\xb5\x01\x06\n]\n\x04\x06\0\x02\x12\x12\ + \x06\xb9\x01\x02\xbf\x01\x03\x1aM\x20Returns\x20permissions\x20that\x20t\ + he\x20caller\x20has\x20on\x20the\x20specified\x20instance\x20resource.\n\ + \n\r\n\x05\x06\0\x02\x12\x01\x12\x04\xb9\x01\x06\x18\n\r\n\x05\x06\0\x02\ + \x12\x02\x12\x04\xb9\x01\x19@\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\xba\ + \x01\x0f7\n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\xbb\x01\x04\xbe\x01\x06\ + \n\x13\n\t\x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\xbb\x01\x04\xbe\x01\ + \x06\nI\n\x02\x04\0\x12\x06\xc3\x01\0\xd7\x01\x01\x1a;\x20Request\x20mes\ + sage\x20for\x20BigtableInstanceAdmin.CreateInstance.\n\n\x0b\n\x03\x04\0\ + \x01\x12\x04\xc3\x01\x08\x1d\n\x81\x01\n\x04\x04\0\x02\0\x12\x04\xc6\x01\ + \x02\x14\x1as\x20The\x20unique\x20name\x20of\x20the\x20project\x20in\x20\ + which\x20to\x20create\x20the\x20new\x20instance.\n\x20Values\x20are\x20o\ + f\x20the\x20form\x20`projects/`.\n\n\r\n\x05\x04\0\x02\0\x05\ + \x12\x04\xc6\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xc6\x01\t\x0f\ + \n\r\n\x05\x04\0\x02\0\x03\x12\x04\xc6\x01\x12\x13\n\xaa\x01\n\x04\x04\0\ + \x02\x01\x12\x04\xcb\x01\x02\x19\x1a\x9b\x01\x20The\x20ID\x20to\x20be\ + \x20used\x20when\x20referring\x20to\x20the\x20new\x20instance\x20within\ + \x20its\x20project,\n\x20e.g.,\x20just\x20`myinstance`\x20rather\x20than\ + \n\x20`projects/myproject/instances/myinstance`.\n\n\r\n\x05\x04\0\x02\ + \x01\x05\x12\x04\xcb\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xcb\ + \x01\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xcb\x01\x17\x18\nW\n\x04\ + \x04\0\x02\x02\x12\x04\xcf\x01\x02\x18\x1aI\x20The\x20instance\x20to\x20\ + create.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20b\ + lank.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\xcf\x01\x02\n\n\r\n\x05\x04\ + \0\x02\x02\x01\x12\x04\xcf\x01\x0b\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\ + \x04\xcf\x01\x16\x17\n\xa4\x02\n\x04\x04\0\x02\x03\x12\x04\xd6\x01\x02$\ + \x1a\x95\x02\x20The\x20clusters\x20to\x20be\x20created\x20within\x20the\ + \x20instance,\x20mapped\x20by\x20desired\n\x20cluster\x20ID,\x20e.g.,\ + \x20just\x20`mycluster`\x20rather\x20than\n\x20`projects/myproject/insta\ + nces/myinstance/clusters/mycluster`.\n\x20Fields\x20marked\x20`OutputOnl\ + y`\x20must\x20be\x20left\x20blank.\n\x20Currently,\x20at\x20most\x20two\ + \x20clusters\x20can\x20be\x20specified.\n\n\r\n\x05\x04\0\x02\x03\x06\ + \x12\x04\xd6\x01\x02\x16\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xd6\x01\x17\ + \x1f\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xd6\x01\"#\nF\n\x02\x04\x01\x12\ + \x06\xda\x01\0\xde\x01\x01\x1a8\x20Request\x20message\x20for\x20Bigtable\ + InstanceAdmin.GetInstance.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xda\x01\x08\ + \x1a\n}\n\x04\x04\x01\x02\0\x12\x04\xdd\x01\x02\x12\x1ao\x20The\x20uniqu\ + e\x20name\x20of\x20the\x20requested\x20instance.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances/`.\n\n\r\n\ + \x05\x04\x01\x02\0\x05\x12\x04\xdd\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\ + \x01\x12\x04\xdd\x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xdd\x01\x10\ + \x11\nH\n\x02\x04\x02\x12\x06\xe1\x01\0\xe8\x01\x01\x1a:\x20Request\x20m\ + essage\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\x04\ + \x02\x01\x12\x04\xe1\x01\x08\x1c\n\x88\x01\n\x04\x04\x02\x02\0\x12\x04\ + \xe4\x01\x02\x14\x1az\x20The\x20unique\x20name\x20of\x20the\x20project\ + \x20for\x20which\x20a\x20list\x20of\x20instances\x20is\x20requested.\n\ + \x20Values\x20are\x20of\x20the\x20form\x20`projects/`.\n\n\r\n\ + \x05\x04\x02\x02\0\x05\x12\x04\xe4\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\xe4\x01\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xe4\x01\ + \x12\x13\n=\n\x04\x04\x02\x02\x01\x12\x04\xe7\x01\x02\x18\x1a/\x20DEPREC\ + ATED:\x20This\x20field\x20is\x20unused\x20and\x20ignored.\n\n\r\n\x05\ + \x04\x02\x02\x01\x05\x12\x04\xe7\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\ + \x01\x12\x04\xe7\x01\t\x13\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xe7\x01\ + \x16\x17\nI\n\x02\x04\x03\x12\x06\xeb\x01\0\xf9\x01\x01\x1a;\x20Response\ + \x20message\x20for\x20BigtableInstanceAdmin.ListInstances.\n\n\x0b\n\x03\ + \x04\x03\x01\x12\x04\xeb\x01\x08\x1d\n0\n\x04\x04\x03\x02\0\x12\x04\xed\ + \x01\x02\"\x1a\"\x20The\x20list\x20of\x20requested\x20instances.\n\n\r\n\ + \x05\x04\x03\x02\0\x04\x12\x04\xed\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\ + \x12\x04\xed\x01\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xed\x01\x14\ + \x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xed\x01\x20!\n\x95\x03\n\x04\ + \x04\x03\x02\x01\x12\x04\xf5\x01\x02'\x1a\x86\x03\x20Locations\x20from\ + \x20which\x20Instance\x20information\x20could\x20not\x20be\x20retrieved,\ + \n\x20due\x20to\x20an\x20outage\x20or\x20some\x20other\x20transient\x20c\ + ondition.\n\x20Instances\x20whose\x20Clusters\x20are\x20all\x20in\x20one\ + \x20of\x20the\x20failed\x20locations\n\x20may\x20be\x20missing\x20from\ + \x20`instances`,\x20and\x20Instances\x20with\x20at\x20least\x20one\n\x20\ + Cluster\x20in\x20a\x20failed\x20location\x20may\x20only\x20have\x20parti\ + al\x20information\x20returned.\n\x20Values\x20are\x20of\x20the\x20form\ + \x20`projects//locations/`\n\n\r\n\x05\x04\x03\x02\x01\ + \x04\x12\x04\xf5\x01\x02\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xf5\x01\ + \x0b\x11\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xf5\x01\x12\"\n\r\n\x05\ + \x04\x03\x02\x01\x03\x12\x04\xf5\x01%&\n=\n\x04\x04\x03\x02\x02\x12\x04\ + \xf8\x01\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unused\ + \x20and\x20ignored.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xf8\x01\x02\ + \x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xf8\x01\t\x18\n\r\n\x05\x04\ + \x03\x02\x02\x03\x12\x04\xf8\x01\x1b\x1c\nP\n\x02\x04\x04\x12\x06\xfc\ + \x01\0\x83\x02\x01\x1aB\x20Request\x20message\x20for\x20BigtableInstance\ + Admin.PartialUpdateInstance.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xfc\x01\ + \x08$\nN\n\x04\x04\x04\x02\0\x12\x04\xfe\x01\x02\x18\x1a@\x20The\x20Inst\ + ance\x20which\x20will\x20(partially)\x20replace\x20the\x20current\x20val\ + ue.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xfe\x01\x02\n\n\r\n\x05\x04\ + \x04\x02\0\x01\x12\x04\xfe\x01\x0b\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\ + \x04\xfe\x01\x16\x17\n`\n\x04\x04\x04\x02\x01\x12\x04\x82\x02\x02,\x1aR\ + \x20The\x20subset\x20of\x20Instance\x20fields\x20which\x20should\x20be\ + \x20replaced.\n\x20Must\x20be\x20explicitly\x20set.\n\n\r\n\x05\x04\x04\ + \x02\x01\x06\x12\x04\x82\x02\x02\x1b\n\r\n\x05\x04\x04\x02\x01\x01\x12\ + \x04\x82\x02\x1c'\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\x82\x02*+\nI\n\ + \x02\x04\x05\x12\x06\x86\x02\0\x8a\x02\x01\x1a;\x20Request\x20message\ + \x20for\x20BigtableInstanceAdmin.DeleteInstance.\n\n\x0b\n\x03\x04\x05\ + \x01\x12\x04\x86\x02\x08\x1d\n\x81\x01\n\x04\x04\x05\x02\0\x12\x04\x89\ + \x02\x02\x12\x1as\x20The\x20unique\x20name\x20of\x20the\x20instance\x20t\ + o\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects\ + //instances/`.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ + \x89\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x89\x02\t\r\n\r\n\ + \x05\x04\x05\x02\0\x03\x12\x04\x89\x02\x10\x11\nH\n\x02\x04\x06\x12\x06\ + \x8d\x02\0\x9b\x02\x01\x1a:\x20Request\x20message\x20for\x20BigtableInst\ + anceAdmin.CreateCluster.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x8d\x02\x08\ + \x1c\n\x98\x01\n\x04\x04\x06\x02\0\x12\x04\x91\x02\x02\x14\x1a\x89\x01\ \x20The\x20unique\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\ - \x20create\x20the\x20new\n\x20cluster.\x20Values\x20are\x20of\x20the\x20\ - form\x20`projects/{project}/instances/{instance}`.\n\n\r\n\x05\x04\x06\ - \x02\0\x05\x12\x04\x8d\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\ - \x8d\x03\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x8d\x03\x12\x13\n\x0f\ - \n\x05\x04\x06\x02\0\x08\x12\x06\x8d\x03\x14\x92\x03\x03\n\x10\n\x08\x04\ - \x06\x02\0\x08\x9c\x08\0\x12\x04\x8e\x03\x04*\n\x11\n\x07\x04\x06\x02\0\ - \x08\x9f\x08\x12\x06\x8f\x03\x04\x91\x03\x05\n\xc6\x01\n\x04\x04\x06\x02\ - \x01\x12\x04\x97\x03\x02A\x1a\xb7\x01\x20Required.\x20The\x20ID\x20to\ - \x20be\x20used\x20when\x20referring\x20to\x20the\x20new\x20cluster\x20wi\ - thin\x20its\n\x20instance,\x20e.g.,\x20just\x20`mycluster`\x20rather\x20\ - than\n\x20`projects/myproject/instances/myinstance/clusters/mycluster`.\ - \n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x97\x03\x02\x08\n\r\n\x05\x04\ - \x06\x02\x01\x01\x12\x04\x97\x03\t\x13\n\r\n\x05\x04\x06\x02\x01\x03\x12\ - \x04\x97\x03\x16\x17\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\x97\x03\x18@\ - \n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\x04\x97\x03\x19?\nd\n\x04\ - \x04\x06\x02\x02\x12\x04\x9b\x03\x02?\x1aV\x20Required.\x20The\x20cluste\ - r\x20to\x20be\x20created.\n\x20Fields\x20marked\x20`OutputOnly`\x20must\ - \x20be\x20left\x20blank.\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\x9b\x03\ - \x02\t\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\x9b\x03\n\x11\n\r\n\x05\x04\ - \x06\x02\x02\x03\x12\x04\x9b\x03\x14\x15\n\r\n\x05\x04\x06\x02\x02\x08\ - \x12\x04\x9b\x03\x16>\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\x04\ - \x9b\x03\x17=\nE\n\x02\x04\x07\x12\x06\x9f\x03\0\xa8\x03\x01\x1a7\x20Req\ - uest\x20message\x20for\x20BigtableInstanceAdmin.GetCluster.\n\n\x0b\n\ - \x03\x04\x07\x01\x12\x04\x9f\x03\x08\x19\n\x9c\x01\n\x04\x04\x07\x02\0\ - \x12\x06\xa2\x03\x02\xa7\x03\x04\x1a\x8b\x01\x20Required.\x20The\x20uniq\ - ue\x20name\x20of\x20the\x20requested\x20cluster.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/{project}/instances/{instance}/clusters/{\ - cluster}`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xa2\x03\x02\x08\n\r\n\ - \x05\x04\x07\x02\0\x01\x12\x04\xa2\x03\t\r\n\r\n\x05\x04\x07\x02\0\x03\ - \x12\x04\xa2\x03\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xa2\x03\ - \x12\xa7\x03\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xa3\x03\ - \x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xa4\x03\x04\xa6\x03\ - \x05\nG\n\x02\x04\x08\x12\x06\xab\x03\0\xba\x03\x01\x1a9\x20Request\x20m\ - essage\x20for\x20BigtableInstanceAdmin.ListClusters.\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xab\x03\x08\x1b\n\x9d\x02\n\x04\x04\x08\x02\0\x12\x06\ - \xb1\x03\x02\xb6\x03\x04\x1a\x8c\x02\x20Required.\x20The\x20unique\x20na\ - me\x20of\x20the\x20instance\x20for\x20which\x20a\x20list\x20of\x20cluste\ - rs\x20is\n\x20requested.\x20Values\x20are\x20of\x20the\x20form\n\x20`pro\ - jects/{project}/instances/{instance}`.\x20Use\x20`{instance}\x20=\x20'-'\ - `\x20to\x20list\n\x20Clusters\x20for\x20all\x20Instances\x20in\x20a\x20p\ - roject,\x20e.g.,\n\x20`projects/myproject/instances/-`.\n\n\r\n\x05\x04\ - \x08\x02\0\x05\x12\x04\xb1\x03\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\ - \x04\xb1\x03\t\x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xb1\x03\x12\x13\n\ - \x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xb1\x03\x14\xb6\x03\x03\n\x10\n\x08\ - \x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xb2\x03\x04*\n\x11\n\x07\x04\x08\ - \x02\0\x08\x9f\x08\x12\x06\xb3\x03\x04\xb5\x03\x05\n=\n\x04\x04\x08\x02\ - \x01\x12\x04\xb9\x03\x02\x18\x1a/\x20DEPRECATED:\x20This\x20field\x20is\ - \x20unused\x20and\x20ignored.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\ - \xb9\x03\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xb9\x03\t\x13\n\r\ - \n\x05\x04\x08\x02\x01\x03\x12\x04\xb9\x03\x16\x17\nH\n\x02\x04\t\x12\ - \x06\xbd\x03\0\xca\x03\x01\x1a:\x20Response\x20message\x20for\x20Bigtabl\ - eInstanceAdmin.ListClusters.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xbd\x03\x08\ - \x1c\n/\n\x04\x04\t\x02\0\x12\x04\xbf\x03\x02\x20\x1a!\x20The\x20list\ - \x20of\x20requested\x20clusters.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xbf\ - \x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\xbf\x03\x0b\x12\n\r\n\x05\ - \x04\t\x02\0\x01\x12\x04\xbf\x03\x13\x1b\n\r\n\x05\x04\t\x02\0\x03\x12\ - \x04\xbf\x03\x1e\x1f\n\xb6\x02\n\x04\x04\t\x02\x01\x12\x04\xc6\x03\x02'\ - \x1a\xa7\x02\x20Locations\x20from\x20which\x20Cluster\x20information\x20\ - could\x20not\x20be\x20retrieved,\n\x20due\x20to\x20an\x20outage\x20or\ - \x20some\x20other\x20transient\x20condition.\n\x20Clusters\x20from\x20th\ - ese\x20locations\x20may\x20be\x20missing\x20from\x20`clusters`,\n\x20or\ - \x20may\x20only\x20have\x20partial\x20information\x20returned.\n\x20Valu\ - es\x20are\x20of\x20the\x20form\x20`projects//locations/`\n\n\r\n\x05\x04\t\x02\x01\x04\x12\x04\xc6\x03\x02\n\n\r\n\x05\x04\t\ - \x02\x01\x05\x12\x04\xc6\x03\x0b\x11\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\ - \xc6\x03\x12\"\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xc6\x03%&\n=\n\x04\ - \x04\t\x02\x02\x12\x04\xc9\x03\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20fi\ - eld\x20is\x20unused\x20and\x20ignored.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\ - \x04\xc9\x03\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xc9\x03\t\x18\n\ - \r\n\x05\x04\t\x02\x02\x03\x12\x04\xc9\x03\x1b\x1c\nH\n\x02\x04\n\x12\ - \x06\xcd\x03\0\xd6\x03\x01\x1a:\x20Request\x20message\x20for\x20Bigtable\ - InstanceAdmin.DeleteCluster.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xcd\x03\x08\ - \x1c\n\xa0\x01\n\x04\x04\n\x02\0\x12\x06\xd0\x03\x02\xd5\x03\x04\x1a\x8f\ - \x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20cluster\x20to\ - \x20be\x20deleted.\x20Values\x20are\x20of\x20the\n\x20form\x20`projects/\ - {project}/instances/{instance}/clusters/{cluster}`.\n\n\r\n\x05\x04\n\ - \x02\0\x05\x12\x04\xd0\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd0\ - \x03\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd0\x03\x10\x11\n\x0f\n\x05\ - \x04\n\x02\0\x08\x12\x06\xd0\x03\x12\xd5\x03\x03\n\x10\n\x08\x04\n\x02\0\ - \x08\x9c\x08\0\x12\x04\xd1\x03\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\ - \x12\x06\xd2\x03\x04\xd4\x03\x05\nJ\n\x02\x04\x0b\x12\x06\xd9\x03\0\xe2\ - \x03\x01\x1a<\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\ - \x20by\x20CreateInstance.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xd9\x03\x08\ - \x1e\nZ\n\x04\x04\x0b\x02\0\x12\x04\xdb\x03\x02-\x1aL\x20The\x20request\ - \x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20CreateInstanc\ - e\x20operation.\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\xdb\x03\x02\x17\n\ - \r\n\x05\x04\x0b\x02\0\x01\x12\x04\xdb\x03\x18(\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\xdb\x03+,\nD\n\x04\x04\x0b\x02\x01\x12\x04\xde\x03\x02-\x1a\ - 6\x20The\x20time\x20at\x20which\x20the\x20original\x20request\x20was\x20\ - received.\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xde\x03\x02\x1b\n\r\n\ - \x05\x04\x0b\x02\x01\x01\x12\x04\xde\x03\x1c(\n\r\n\x05\x04\x0b\x02\x01\ - \x03\x12\x04\xde\x03+,\nU\n\x04\x04\x0b\x02\x02\x12\x04\xe1\x03\x02,\x1a\ - G\x20The\x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20w\ - as\x20completed\x20successfully.\n\n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\ - \xe1\x03\x02\x1b\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xe1\x03\x1c'\n\r\ - \n\x05\x04\x0b\x02\x02\x03\x12\x04\xe1\x03*+\nJ\n\x02\x04\x0c\x12\x06\ - \xe5\x03\0\xee\x03\x01\x1a<\x20The\x20metadata\x20for\x20the\x20Operatio\ - n\x20returned\x20by\x20UpdateInstance.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ - \xe5\x03\x08\x1e\nZ\n\x04\x04\x0c\x02\0\x12\x04\xe7\x03\x024\x1aL\x20The\ - \x20request\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20Up\ - dateInstance\x20operation.\n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xe7\x03\ - \x02\x1e\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xe7\x03\x1f/\n\r\n\x05\x04\ - \x0c\x02\0\x03\x12\x04\xe7\x0323\nD\n\x04\x04\x0c\x02\x01\x12\x04\xea\ - \x03\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20reque\ - st\x20was\x20received.\n\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xea\x03\ - \x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xea\x03\x1c(\n\r\n\x05\ - \x04\x0c\x02\x01\x03\x12\x04\xea\x03+,\nU\n\x04\x04\x0c\x02\x02\x12\x04\ - \xed\x03\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\x20\ - failed\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x0c\ - \x02\x02\x06\x12\x04\xed\x03\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\x12\ - \x04\xed\x03\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xed\x03*+\nI\n\ - \x02\x04\r\x12\x06\xf1\x03\0\xa3\x04\x01\x1a;\x20The\x20metadata\x20for\ - \x20the\x20Operation\x20returned\x20by\x20CreateCluster.\n\n\x0b\n\x03\ - \x04\r\x01\x12\x04\xf1\x03\x08\x1d\nN\n\x04\x04\r\x03\0\x12\x06\xf3\x03\ - \x02\x8f\x04\x03\x1a>\x20Progress\x20info\x20for\x20copying\x20a\x20tabl\ - e's\x20data\x20to\x20the\x20new\x20cluster.\n\n\r\n\x05\x04\r\x03\0\x01\ - \x12\x04\xf3\x03\n\x17\n\x10\n\x06\x04\r\x03\0\x04\0\x12\x06\xf4\x03\x04\ - \x84\x04\x05\n\x0f\n\x07\x04\r\x03\0\x04\0\x01\x12\x04\xf4\x03\t\x0e\n\ - \x10\n\x08\x04\r\x03\0\x04\0\x02\0\x12\x04\xf5\x03\x06\x1c\n\x11\n\t\x04\ - \r\x03\0\x04\0\x02\0\x01\x12\x04\xf5\x03\x06\x17\n\x11\n\t\x04\r\x03\0\ - \x04\0\x02\0\x02\x12\x04\xf5\x03\x1a\x1b\nK\n\x08\x04\r\x03\0\x04\0\x02\ - \x01\x12\x04\xf8\x03\x06\x12\x1a9\x20The\x20table\x20has\x20not\x20yet\ - \x20begun\x20copying\x20to\x20the\x20new\x20cluster.\n\n\x11\n\t\x04\r\ - \x03\0\x04\0\x02\x01\x01\x12\x04\xf8\x03\x06\r\n\x11\n\t\x04\r\x03\0\x04\ - \0\x02\x01\x02\x12\x04\xf8\x03\x10\x11\nJ\n\x08\x04\r\x03\0\x04\0\x02\ - \x02\x12\x04\xfb\x03\x06\x12\x1a8\x20The\x20table\x20is\x20actively\x20b\ - eing\x20copied\x20to\x20the\x20new\x20cluster.\n\n\x11\n\t\x04\r\x03\0\ - \x04\0\x02\x02\x01\x12\x04\xfb\x03\x06\r\n\x11\n\t\x04\r\x03\0\x04\0\x02\ - \x02\x02\x12\x04\xfb\x03\x10\x11\nG\n\x08\x04\r\x03\0\x04\0\x02\x03\x12\ - \x04\xfe\x03\x06\x14\x1a5\x20The\x20table\x20has\x20been\x20fully\x20cop\ - ied\x20to\x20the\x20new\x20cluster.\n\n\x11\n\t\x04\r\x03\0\x04\0\x02\ - \x03\x01\x12\x04\xfe\x03\x06\x0f\n\x11\n\t\x04\r\x03\0\x04\0\x02\x03\x02\ - \x12\x04\xfe\x03\x12\x13\n\xb3\x01\n\x08\x04\r\x03\0\x04\0\x02\x04\x12\ - \x04\x83\x04\x06\x14\x1a\xa0\x01\x20The\x20table\x20was\x20deleted\x20be\ - fore\x20it\x20finished\x20copying\x20to\x20the\x20new\x20cluster.\n\x20N\ - ote\x20that\x20tables\x20deleted\x20after\x20completion\x20will\x20stay\ - \x20marked\x20as\n\x20COMPLETED,\x20not\x20CANCELLED.\n\n\x11\n\t\x04\r\ - \x03\0\x04\0\x02\x04\x01\x12\x04\x83\x04\x06\x0f\n\x11\n\t\x04\r\x03\0\ - \x04\0\x02\x04\x02\x12\x04\x83\x04\x12\x13\nA\n\x06\x04\r\x03\0\x02\0\ - \x12\x04\x87\x04\x04#\x1a1\x20Estimate\x20of\x20the\x20size\x20of\x20the\ - \x20table\x20to\x20be\x20copied.\n\n\x0f\n\x07\x04\r\x03\0\x02\0\x05\x12\ - \x04\x87\x04\x04\t\n\x0f\n\x07\x04\r\x03\0\x02\0\x01\x12\x04\x87\x04\n\ - \x1e\n\x0f\n\x07\x04\r\x03\0\x02\0\x03\x12\x04\x87\x04!\"\n\xa8\x01\n\ - \x06\x04\r\x03\0\x02\x01\x12\x04\x8c\x04\x04%\x1a\x97\x01\x20Estimate\ - \x20of\x20the\x20number\x20of\x20bytes\x20copied\x20so\x20far\x20for\x20\ - this\x20table.\n\x20This\x20will\x20eventually\x20reach\x20'estimated_si\ - ze_bytes'\x20unless\x20the\x20table\x20copy\n\x20is\x20CANCELLED.\n\n\ - \x0f\n\x07\x04\r\x03\0\x02\x01\x05\x12\x04\x8c\x04\x04\t\n\x0f\n\x07\x04\ - \r\x03\0\x02\x01\x01\x12\x04\x8c\x04\n\x20\n\x0f\n\x07\x04\r\x03\0\x02\ - \x01\x03\x12\x04\x8c\x04#$\n\x0e\n\x06\x04\r\x03\0\x02\x02\x12\x04\x8e\ - \x04\x04\x14\n\x0f\n\x07\x04\r\x03\0\x02\x02\x06\x12\x04\x8e\x04\x04\t\n\ - \x0f\n\x07\x04\r\x03\0\x02\x02\x01\x12\x04\x8e\x04\n\x0f\n\x0f\n\x07\x04\ - \r\x03\0\x02\x02\x03\x12\x04\x8e\x04\x12\x13\nY\n\x04\x04\r\x02\0\x12\ - \x04\x92\x04\x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20i\ - nitiation\x20of\x20this\x20CreateCluster\x20operation.\n\n\r\n\x05\x04\r\ - \x02\0\x06\x12\x04\x92\x04\x02\x16\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x92\ - \x04\x17'\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x92\x04*+\nD\n\x04\x04\r\x02\ - \x01\x12\x04\x95\x04\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20o\ - riginal\x20request\x20was\x20received.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\ - \x04\x95\x04\x02\x1b\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x95\x04\x1c(\n\ - \r\n\x05\x04\r\x02\x01\x03\x12\x04\x95\x04+,\nU\n\x04\x04\r\x02\x02\x12\ - \x04\x98\x04\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\ - \x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\r\ - \x02\x02\x06\x12\x04\x98\x04\x02\x1b\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\ - \x98\x04\x1c'\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\x98\x04*+\n\x9a\x03\n\ - \x04\x04\r\x02\x03\x12\x04\xa2\x04\x02(\x1a\x8b\x03\x20Keys:\x20the\x20f\ - ull\x20`name`\x20of\x20each\x20table\x20that\x20existed\x20in\x20the\x20\ - instance\x20when\n\x20CreateCluster\x20was\x20first\x20called,\x20i.e.\n\ - \x20`projects//instances//tables/
`.\x20Any\x20\ - table\x20added\n\x20to\x20the\x20instance\x20by\x20a\x20later\x20API\x20\ - call\x20will\x20be\x20created\x20in\x20the\x20new\x20cluster\x20by\n\x20\ - that\x20API\x20call,\x20not\x20this\x20one.\n\n\x20Values:\x20informatio\ - n\x20on\x20how\x20much\x20of\x20a\x20table's\x20data\x20has\x20been\x20c\ - opied\x20to\x20the\n\x20newly-created\x20cluster\x20so\x20far.\n\n\r\n\ - \x05\x04\r\x02\x03\x06\x12\x04\xa2\x04\x02\x1c\n\r\n\x05\x04\r\x02\x03\ - \x01\x12\x04\xa2\x04\x1d#\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xa2\x04&'\ - \nI\n\x02\x04\x0e\x12\x06\xa6\x04\0\xaf\x04\x01\x1a;\x20The\x20metadata\ - \x20for\x20the\x20Operation\x20returned\x20by\x20UpdateCluster.\n\n\x0b\ - \n\x03\x04\x0e\x01\x12\x04\xa6\x04\x08\x1d\nY\n\x04\x04\x0e\x02\0\x12\ - \x04\xa8\x04\x02\x1f\x1aK\x20The\x20request\x20that\x20prompted\x20the\ - \x20initiation\x20of\x20this\x20UpdateCluster\x20operation.\n\n\r\n\x05\ - \x04\x0e\x02\0\x06\x12\x04\xa8\x04\x02\t\n\r\n\x05\x04\x0e\x02\0\x01\x12\ - \x04\xa8\x04\n\x1a\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xa8\x04\x1d\x1e\n\ - D\n\x04\x04\x0e\x02\x01\x12\x04\xab\x04\x02-\x1a6\x20The\x20time\x20at\ - \x20which\x20the\x20original\x20request\x20was\x20received.\n\n\r\n\x05\ - \x04\x0e\x02\x01\x06\x12\x04\xab\x04\x02\x1b\n\r\n\x05\x04\x0e\x02\x01\ - \x01\x12\x04\xab\x04\x1c(\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xab\x04+\ - ,\nU\n\x04\x04\x0e\x02\x02\x12\x04\xae\x04\x02,\x1aG\x20The\x20time\x20a\ - t\x20which\x20the\x20operation\x20failed\x20or\x20was\x20completed\x20su\ - ccessfully.\n\n\r\n\x05\x04\x0e\x02\x02\x06\x12\x04\xae\x04\x02\x1b\n\r\ - \n\x05\x04\x0e\x02\x02\x01\x12\x04\xae\x04\x1c'\n\r\n\x05\x04\x0e\x02\ - \x02\x03\x12\x04\xae\x04*+\nP\n\x02\x04\x0f\x12\x06\xb2\x04\0\xbb\x04\ - \x01\x1aB\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\x20b\ - y\x20PartialUpdateCluster.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xb2\x04\x08\ - $\nD\n\x04\x04\x0f\x02\0\x12\x04\xb4\x04\x02-\x1a6\x20The\x20time\x20at\ - \x20which\x20the\x20original\x20request\x20was\x20received.\n\n\r\n\x05\ - \x04\x0f\x02\0\x06\x12\x04\xb4\x04\x02\x1b\n\r\n\x05\x04\x0f\x02\0\x01\ - \x12\x04\xb4\x04\x1c(\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xb4\x04+,\nU\n\ - \x04\x04\x0f\x02\x01\x12\x04\xb7\x04\x02,\x1aG\x20The\x20time\x20at\x20w\ - hich\x20the\x20operation\x20failed\x20or\x20was\x20completed\x20successf\ - ully.\n\n\r\n\x05\x04\x0f\x02\x01\x06\x12\x04\xb7\x04\x02\x1b\n\r\n\x05\ - \x04\x0f\x02\x01\x01\x12\x04\xb7\x04\x1c'\n\r\n\x05\x04\x0f\x02\x01\x03\ - \x12\x04\xb7\x04*+\n>\n\x04\x04\x0f\x02\x02\x12\x04\xba\x04\x023\x1a0\ - \x20The\x20original\x20request\x20for\x20PartialUpdateCluster.\n\n\r\n\ - \x05\x04\x0f\x02\x02\x06\x12\x04\xba\x04\x02\x1d\n\r\n\x05\x04\x0f\x02\ - \x02\x01\x12\x04\xba\x04\x1e.\n\r\n\x05\x04\x0f\x02\x02\x03\x12\x04\xba\ - \x0412\nO\n\x02\x04\x10\x12\x06\xbe\x04\0\xc6\x04\x01\x1aA\x20Request\ - \x20message\x20for\x20BigtableInstanceAdmin.PartialUpdateCluster.\n\n\ - \x0b\n\x03\x04\x10\x01\x12\x04\xbe\x04\x08#\nt\n\x04\x04\x10\x02\0\x12\ - \x04\xc1\x04\x02?\x1af\x20Required.\x20The\x20Cluster\x20which\x20contai\ - ns\x20the\x20partial\x20updates\x20to\x20be\x20applied,\n\x20subject\x20\ - to\x20the\x20update_mask.\n\n\r\n\x05\x04\x10\x02\0\x06\x12\x04\xc1\x04\ - \x02\t\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xc1\x04\n\x11\n\r\n\x05\x04\ - \x10\x02\0\x03\x12\x04\xc1\x04\x14\x15\n\r\n\x05\x04\x10\x02\0\x08\x12\ - \x04\xc1\x04\x16>\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\xc1\ - \x04\x17=\nR\n\x04\x04\x10\x02\x01\x12\x06\xc4\x04\x02\xc5\x04/\x1aB\x20\ - Required.\x20The\x20subset\x20of\x20Cluster\x20fields\x20which\x20should\ - \x20be\x20replaced.\n\n\r\n\x05\x04\x10\x02\x01\x06\x12\x04\xc4\x04\x02\ - \x1b\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xc4\x04\x1c'\n\r\n\x05\x04\ - \x10\x02\x01\x03\x12\x04\xc4\x04*+\n\r\n\x05\x04\x10\x02\x01\x08\x12\x04\ - \xc5\x04\x06.\n\x10\n\x08\x04\x10\x02\x01\x08\x9c\x08\0\x12\x04\xc5\x04\ - \x07-\nK\n\x02\x04\x11\x12\x06\xc9\x04\0\xde\x04\x01\x1a=\x20Request\x20\ - message\x20for\x20BigtableInstanceAdmin.CreateAppProfile.\n\n\x0b\n\x03\ - \x04\x11\x01\x12\x04\xc9\x04\x08\x1f\n\xa7\x01\n\x04\x04\x11\x02\0\x12\ - \x06\xcc\x04\x02\xd1\x04\x04\x1a\x96\x01\x20Required.\x20The\x20unique\ - \x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20the\ - \x20new\x20app\n\x20profile.\x20Values\x20are\x20of\x20the\x20form\x20`p\ - rojects/{project}/instances/{instance}`.\n\n\r\n\x05\x04\x11\x02\0\x05\ - \x12\x04\xcc\x04\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xcc\x04\t\ - \x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xcc\x04\x12\x13\n\x0f\n\x05\x04\ - \x11\x02\0\x08\x12\x06\xcc\x04\x14\xd1\x04\x03\n\x10\n\x08\x04\x11\x02\0\ - \x08\x9c\x08\0\x12\x04\xcd\x04\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\ - \x08\x12\x06\xce\x04\x04\xd0\x04\x05\n\xcd\x01\n\x04\x04\x11\x02\x01\x12\ - \x04\xd6\x04\x02E\x1a\xbe\x01\x20Required.\x20The\x20ID\x20to\x20be\x20u\ - sed\x20when\x20referring\x20to\x20the\x20new\x20app\x20profile\x20within\ - \n\x20its\x20instance,\x20e.g.,\x20just\x20`myprofile`\x20rather\x20than\ - \n\x20`projects/myproject/instances/myinstance/appProfiles/myprofile`.\n\ - \n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xd6\x04\x02\x08\n\r\n\x05\x04\x11\ - \x02\x01\x01\x12\x04\xd6\x04\t\x17\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\ - \xd6\x04\x1a\x1b\n\r\n\x05\x04\x11\x02\x01\x08\x12\x04\xd6\x04\x1cD\n\ - \x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\xd6\x04\x1dC\ne\n\x04\ - \x04\x11\x02\x02\x12\x04\xda\x04\x02F\x1aW\x20Required.\x20The\x20app\ - \x20profile\x20to\x20be\x20created.\n\x20Fields\x20marked\x20`OutputOnly\ - `\x20will\x20be\x20ignored.\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\xda\ - \x04\x02\x0c\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xda\x04\r\x18\n\r\n\ - \x05\x04\x11\x02\x02\x03\x12\x04\xda\x04\x1b\x1c\n\r\n\x05\x04\x11\x02\ - \x02\x08\x12\x04\xda\x04\x1dE\n\x10\n\x08\x04\x11\x02\x02\x08\x9c\x08\0\ - \x12\x04\xda\x04\x1eD\nL\n\x04\x04\x11\x02\x03\x12\x04\xdd\x04\x02\x1b\ - \x1a>\x20If\x20true,\x20ignore\x20safety\x20checks\x20when\x20creating\ - \x20the\x20app\x20profile.\n\n\r\n\x05\x04\x11\x02\x03\x05\x12\x04\xdd\ - \x04\x02\x06\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xdd\x04\x07\x16\n\r\n\ - \x05\x04\x11\x02\x03\x03\x12\x04\xdd\x04\x19\x1a\nH\n\x02\x04\x12\x12\ - \x06\xe1\x04\0\xea\x04\x01\x1a:\x20Request\x20message\x20for\x20Bigtable\ - InstanceAdmin.GetAppProfile.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xe1\x04\ - \x08\x1c\n\xa7\x01\n\x04\x04\x12\x02\0\x12\x06\xe4\x04\x02\xe9\x04\x04\ - \x1a\x96\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20reque\ - sted\x20app\x20profile.\x20Values\x20are\x20of\x20the\n\x20form\x20`proj\ - ects/{project}/instances/{instance}/appProfiles/{app_profile}`.\n\n\r\n\ - \x05\x04\x12\x02\0\x05\x12\x04\xe4\x04\x02\x08\n\r\n\x05\x04\x12\x02\0\ - \x01\x12\x04\xe4\x04\t\r\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xe4\x04\x10\ - \x11\n\x0f\n\x05\x04\x12\x02\0\x08\x12\x06\xe4\x04\x12\xe9\x04\x03\n\x10\ - \n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\xe5\x04\x04*\n\x11\n\x07\x04\ - \x12\x02\0\x08\x9f\x08\x12\x06\xe6\x04\x04\xe8\x04\x05\nJ\n\x02\x04\x13\ - \x12\x06\xed\x04\0\x87\x05\x01\x1a<\x20Request\x20message\x20for\x20Bigt\ - ableInstanceAdmin.ListAppProfiles.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xed\ - \x04\x08\x1e\n\xa4\x02\n\x04\x04\x13\x02\0\x12\x06\xf3\x04\x02\xf8\x04\ - \x04\x1a\x93\x02\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20i\ - nstance\x20for\x20which\x20a\x20list\x20of\x20app\x20profiles\n\x20is\ - \x20requested.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{pro\ - ject}/instances/{instance}`.\n\x20Use\x20`{instance}\x20=\x20'-'`\x20to\ - \x20list\x20AppProfiles\x20for\x20all\x20Instances\x20in\x20a\x20project\ - ,\n\x20e.g.,\x20`projects/myproject/instances/-`.\n\n\r\n\x05\x04\x13\ - \x02\0\x05\x12\x04\xf3\x04\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\ - \xf3\x04\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xf3\x04\x12\x13\n\x0f\ - \n\x05\x04\x13\x02\0\x08\x12\x06\xf3\x04\x14\xf8\x04\x03\n\x10\n\x08\x04\ - \x13\x02\0\x08\x9c\x08\0\x12\x04\xf4\x04\x04*\n\x11\n\x07\x04\x13\x02\0\ - \x08\x9f\x08\x12\x06\xf5\x04\x04\xf7\x04\x05\n\xbd\x03\n\x04\x04\x13\x02\ - \x01\x12\x04\x83\x05\x02\x16\x1a\xae\x03\x20Maximum\x20number\x20of\x20r\ - esults\x20per\x20page.\n\n\x20A\x20page_size\x20of\x20zero\x20lets\x20th\ - e\x20server\x20choose\x20the\x20number\x20of\x20items\x20to\x20return.\n\ - \x20A\x20page_size\x20which\x20is\x20strictly\x20positive\x20will\x20ret\ - urn\x20at\x20most\x20that\x20many\x20items.\n\x20A\x20negative\x20page_s\ - ize\x20will\x20cause\x20an\x20error.\n\n\x20Following\x20the\x20first\ - \x20request,\x20subsequent\x20paginated\x20calls\x20are\x20not\x20requir\ - ed\n\x20to\x20pass\x20a\x20page_size.\x20If\x20a\x20page_size\x20is\x20s\ - et\x20in\x20subsequent\x20calls,\x20it\x20must\n\x20match\x20the\x20page\ - _size\x20given\x20in\x20the\x20first\x20request.\n\n\r\n\x05\x04\x13\x02\ - \x01\x05\x12\x04\x83\x05\x02\x07\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\ - \x83\x05\x08\x11\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\x83\x05\x14\x15\n\ - K\n\x04\x04\x13\x02\x02\x12\x04\x86\x05\x02\x18\x1a=\x20The\x20value\x20\ - of\x20`next_page_token`\x20returned\x20by\x20a\x20previous\x20call.\n\n\ - \r\n\x05\x04\x13\x02\x02\x05\x12\x04\x86\x05\x02\x08\n\r\n\x05\x04\x13\ - \x02\x02\x01\x12\x04\x86\x05\t\x13\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\ - \x86\x05\x16\x17\nK\n\x02\x04\x14\x12\x06\x8a\x05\0\x98\x05\x01\x1a=\x20\ - Response\x20message\x20for\x20BigtableInstanceAdmin.ListAppProfiles.\n\n\ - \x0b\n\x03\x04\x14\x01\x12\x04\x8a\x05\x08\x1f\n3\n\x04\x04\x14\x02\0\ - \x12\x04\x8c\x05\x02'\x1a%\x20The\x20list\x20of\x20requested\x20app\x20p\ - rofiles.\n\n\r\n\x05\x04\x14\x02\0\x04\x12\x04\x8c\x05\x02\n\n\r\n\x05\ - \x04\x14\x02\0\x06\x12\x04\x8c\x05\x0b\x15\n\r\n\x05\x04\x14\x02\0\x01\ - \x12\x04\x8c\x05\x16\"\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\x8c\x05%&\n\ - \xaa\x01\n\x04\x04\x14\x02\x01\x12\x04\x91\x05\x02\x1d\x1a\x9b\x01\x20Se\ - t\x20if\x20not\x20all\x20app\x20profiles\x20could\x20be\x20returned\x20i\ - n\x20a\x20single\x20response.\n\x20Pass\x20this\x20value\x20to\x20`page_\ - token`\x20in\x20another\x20request\x20to\x20get\x20the\x20next\n\x20page\ - \x20of\x20results.\n\n\r\n\x05\x04\x14\x02\x01\x05\x12\x04\x91\x05\x02\ - \x08\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\x91\x05\t\x18\n\r\n\x05\x04\ - \x14\x02\x01\x03\x12\x04\x91\x05\x1b\x1c\n\x90\x02\n\x04\x04\x14\x02\x02\ - \x12\x04\x97\x05\x02'\x1a\x81\x02\x20Locations\x20from\x20which\x20AppPr\ - ofile\x20information\x20could\x20not\x20be\x20retrieved,\n\x20due\x20to\ - \x20an\x20outage\x20or\x20some\x20other\x20transient\x20condition.\n\x20\ - AppProfiles\x20from\x20these\x20locations\x20may\x20be\x20missing\x20fro\ - m\x20`app_profiles`.\n\x20Values\x20are\x20of\x20the\x20form\x20`project\ - s//locations/`\n\n\r\n\x05\x04\x14\x02\x02\x04\x12\x04\ - \x97\x05\x02\n\n\r\n\x05\x04\x14\x02\x02\x05\x12\x04\x97\x05\x0b\x11\n\r\ - \n\x05\x04\x14\x02\x02\x01\x12\x04\x97\x05\x12\"\n\r\n\x05\x04\x14\x02\ - \x02\x03\x12\x04\x97\x05%&\nK\n\x02\x04\x15\x12\x06\x9b\x05\0\xa6\x05\ - \x01\x1a=\x20Request\x20message\x20for\x20BigtableInstanceAdmin.UpdateAp\ - pProfile.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\x9b\x05\x08\x1f\n[\n\x04\x04\ - \x15\x02\0\x12\x04\x9d\x05\x02F\x1aM\x20Required.\x20The\x20app\x20profi\ - le\x20which\x20will\x20(partially)\x20replace\x20the\x20current\x20value\ - .\n\n\r\n\x05\x04\x15\x02\0\x06\x12\x04\x9d\x05\x02\x0c\n\r\n\x05\x04\ - \x15\x02\0\x01\x12\x04\x9d\x05\r\x18\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\ - \x9d\x05\x1b\x1c\n\r\n\x05\x04\x15\x02\0\x08\x12\x04\x9d\x05\x1dE\n\x10\ - \n\x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\x9d\x05\x1eD\n~\n\x04\x04\x15\ - \x02\x01\x12\x06\xa1\x05\x02\xa2\x05/\x1an\x20Required.\x20The\x20subset\ - \x20of\x20app\x20profile\x20fields\x20which\x20should\x20be\x20replaced.\ - \n\x20If\x20unset,\x20all\x20fields\x20will\x20be\x20replaced.\n\n\r\n\ - \x05\x04\x15\x02\x01\x06\x12\x04\xa1\x05\x02\x1b\n\r\n\x05\x04\x15\x02\ - \x01\x01\x12\x04\xa1\x05\x1c'\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xa1\ - \x05*+\n\r\n\x05\x04\x15\x02\x01\x08\x12\x04\xa2\x05\x06.\n\x10\n\x08\ - \x04\x15\x02\x01\x08\x9c\x08\0\x12\x04\xa2\x05\x07-\nL\n\x04\x04\x15\x02\ - \x02\x12\x04\xa5\x05\x02\x1b\x1a>\x20If\x20true,\x20ignore\x20safety\x20\ - checks\x20when\x20updating\x20the\x20app\x20profile.\n\n\r\n\x05\x04\x15\ - \x02\x02\x05\x12\x04\xa5\x05\x02\x06\n\r\n\x05\x04\x15\x02\x02\x01\x12\ - \x04\xa5\x05\x07\x16\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xa5\x05\x19\ - \x1a\nK\n\x02\x04\x16\x12\x06\xa9\x05\0\xb6\x05\x01\x1a=\x20Request\x20m\ - essage\x20for\x20BigtableInstanceAdmin.DeleteAppProfile.\n\n\x0b\n\x03\ - \x04\x16\x01\x12\x04\xa9\x05\x08\x1f\n\xac\x01\n\x04\x04\x16\x02\0\x12\ - \x06\xad\x05\x02\xb2\x05\x04\x1a\x9b\x01\x20Required.\x20The\x20unique\ - \x20name\x20of\x20the\x20app\x20profile\x20to\x20be\x20deleted.\x20Value\ - s\x20are\x20of\n\x20the\x20form\n\x20`projects/{project}/instances/{inst\ - ance}/appProfiles/{app_profile}`.\n\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\ - \xad\x05\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xad\x05\t\r\n\r\n\ - \x05\x04\x16\x02\0\x03\x12\x04\xad\x05\x10\x11\n\x0f\n\x05\x04\x16\x02\0\ - \x08\x12\x06\xad\x05\x12\xb2\x05\x03\n\x10\n\x08\x04\x16\x02\0\x08\x9c\ - \x08\0\x12\x04\xae\x05\x04*\n\x11\n\x07\x04\x16\x02\0\x08\x9f\x08\x12\ - \x06\xaf\x05\x04\xb1\x05\x05\nV\n\x04\x04\x16\x02\x01\x12\x04\xb5\x05\ - \x02D\x1aH\x20Required.\x20If\x20true,\x20ignore\x20safety\x20checks\x20\ - when\x20deleting\x20the\x20app\x20profile.\n\n\r\n\x05\x04\x16\x02\x01\ - \x05\x12\x04\xb5\x05\x02\x06\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xb5\ - \x05\x07\x16\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\xb5\x05\x19\x1a\n\r\n\ - \x05\x04\x16\x02\x01\x08\x12\x04\xb5\x05\x1bC\n\x10\n\x08\x04\x16\x02\ - \x01\x08\x9c\x08\0\x12\x04\xb5\x05\x1cB\nJ\n\x02\x04\x17\x12\x04\xb9\x05\ - \0#\x1a>\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\ - \x20UpdateAppProfile.\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xb9\x05\x08\x20\ - \nI\n\x02\x04\x18\x12\x06\xbc\x05\0\xdf\x05\x01\x1a;\x20Request\x20messa\ - ge\x20for\x20BigtableInstanceAdmin.ListHotTablets.\n\n\x0b\n\x03\x04\x18\ - \x01\x12\x04\xbc\x05\x08\x1d\n\xa2\x01\n\x04\x04\x18\x02\0\x12\x06\xc0\ - \x05\x02\xc5\x05\x04\x1a\x91\x01\x20Required.\x20The\x20cluster\x20name\ - \x20to\x20list\x20hot\x20tablets.\n\x20Value\x20is\x20in\x20the\x20follo\ - wing\x20form:\n\x20`projects/{project}/instances/{instance}/clusters/{cl\ - uster}`.\n\n\r\n\x05\x04\x18\x02\0\x05\x12\x04\xc0\x05\x02\x08\n\r\n\x05\ - \x04\x18\x02\0\x01\x12\x04\xc0\x05\t\x0f\n\r\n\x05\x04\x18\x02\0\x03\x12\ - \x04\xc0\x05\x12\x13\n\x0f\n\x05\x04\x18\x02\0\x08\x12\x06\xc0\x05\x14\ - \xc5\x05\x03\n\x10\n\x08\x04\x18\x02\0\x08\x9c\x08\0\x12\x04\xc1\x05\x04\ - *\n\x11\n\x07\x04\x18\x02\0\x08\x9f\x08\x12\x06\xc2\x05\x04\xc4\x05\x05\ - \n\xcc\x03\n\x04\x04\x18\x02\x01\x12\x04\xcd\x05\x02+\x1a\xbd\x03\x20The\ - \x20start\x20time\x20to\x20list\x20hot\x20tablets.\x20The\x20hot\x20tabl\ - ets\x20in\x20the\x20response\x20will\n\x20have\x20start\x20times\x20betw\ - een\x20the\x20requested\x20start\x20time\x20and\x20end\x20time.\x20Start\ - \x20time\n\x20defaults\x20to\x20Now\x20if\x20it\x20is\x20unset,\x20and\ - \x20end\x20time\x20defaults\x20to\x20Now\x20-\x2024\x20hours\x20if\n\x20\ - it\x20is\x20unset.\x20The\x20start\x20time\x20should\x20be\x20less\x20th\ - an\x20the\x20end\x20time,\x20and\x20the\n\x20maximum\x20allowed\x20time\ - \x20range\x20between\x20start\x20time\x20and\x20end\x20time\x20is\x2048\ - \x20hours.\n\x20Start\x20time\x20and\x20end\x20time\x20should\x20have\ - \x20values\x20between\x20Now\x20and\x20Now\x20-\x2014\x20days.\n\n\r\n\ - \x05\x04\x18\x02\x01\x06\x12\x04\xcd\x05\x02\x1b\n\r\n\x05\x04\x18\x02\ - \x01\x01\x12\x04\xcd\x05\x1c&\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xcd\ - \x05)*\n1\n\x04\x04\x18\x02\x02\x12\x04\xd0\x05\x02)\x1a#\x20The\x20end\ - \x20time\x20to\x20list\x20hot\x20tablets.\n\n\r\n\x05\x04\x18\x02\x02\ - \x06\x12\x04\xd0\x05\x02\x1b\n\r\n\x05\x04\x18\x02\x02\x01\x12\x04\xd0\ - \x05\x1c$\n\r\n\x05\x04\x18\x02\x02\x03\x12\x04\xd0\x05'(\n\xc4\x03\n\ - \x04\x04\x18\x02\x03\x12\x04\xdb\x05\x02\x16\x1a\xb5\x03\x20Maximum\x20n\ - umber\x20of\x20results\x20per\x20page.\n\n\x20A\x20page_size\x20that\x20\ - is\x20empty\x20or\x20zero\x20lets\x20the\x20server\x20choose\x20the\x20n\ - umber\x20of\n\x20items\x20to\x20return.\x20A\x20page_size\x20which\x20is\ - \x20strictly\x20positive\x20will\x20return\x20at\x20most\n\x20that\x20ma\ - ny\x20items.\x20A\x20negative\x20page_size\x20will\x20cause\x20an\x20err\ - or.\n\n\x20Following\x20the\x20first\x20request,\x20subsequent\x20pagina\ - ted\x20calls\x20do\x20not\x20need\x20a\n\x20page_size\x20field.\x20If\ - \x20a\x20page_size\x20is\x20set\x20in\x20subsequent\x20calls,\x20it\x20m\ - ust\x20match\n\x20the\x20page_size\x20given\x20in\x20the\x20first\x20req\ - uest.\n\n\r\n\x05\x04\x18\x02\x03\x05\x12\x04\xdb\x05\x02\x07\n\r\n\x05\ - \x04\x18\x02\x03\x01\x12\x04\xdb\x05\x08\x11\n\r\n\x05\x04\x18\x02\x03\ - \x03\x12\x04\xdb\x05\x14\x15\nK\n\x04\x04\x18\x02\x04\x12\x04\xde\x05\ - \x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_token`\x20returned\x20\ - by\x20a\x20previous\x20call.\n\n\r\n\x05\x04\x18\x02\x04\x05\x12\x04\xde\ - \x05\x02\x08\n\r\n\x05\x04\x18\x02\x04\x01\x12\x04\xde\x05\t\x13\n\r\n\ - \x05\x04\x18\x02\x04\x03\x12\x04\xde\x05\x16\x17\nJ\n\x02\x04\x19\x12\ - \x06\xe2\x05\0\xee\x05\x01\x1a<\x20Response\x20message\x20for\x20Bigtabl\ - eInstanceAdmin.ListHotTablets.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xe2\x05\ - \x08\x1e\n\xe5\x02\n\x04\x04\x19\x02\0\x12\x04\xe8\x05\x02%\x1a\xd6\x02\ - \x20List\x20of\x20hot\x20tablets\x20in\x20the\x20tables\x20of\x20the\x20\ - requested\x20cluster\x20that\x20fall\n\x20within\x20the\x20requested\x20\ - time\x20range.\x20Hot\x20tablets\x20are\x20ordered\x20by\x20node\x20cpu\ - \x20usage\n\x20percent.\x20If\x20there\x20are\x20multiple\x20hot\x20tabl\ - ets\x20that\x20correspond\x20to\x20the\x20same\n\x20tablet\x20within\x20\ - a\x2015-minute\x20interval,\x20only\x20the\x20hot\x20tablet\x20with\x20t\ - he\x20highest\n\x20node\x20cpu\x20usage\x20will\x20be\x20included\x20in\ - \x20the\x20response.\n\n\r\n\x05\x04\x19\x02\0\x04\x12\x04\xe8\x05\x02\n\ - \n\r\n\x05\x04\x19\x02\0\x06\x12\x04\xe8\x05\x0b\x14\n\r\n\x05\x04\x19\ - \x02\0\x01\x12\x04\xe8\x05\x15\x20\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\ - \xe8\x05#$\n\xa9\x01\n\x04\x04\x19\x02\x01\x12\x04\xed\x05\x02\x1d\x1a\ - \x9a\x01\x20Set\x20if\x20not\x20all\x20hot\x20tablets\x20could\x20be\x20\ - returned\x20in\x20a\x20single\x20response.\n\x20Pass\x20this\x20value\ - \x20to\x20`page_token`\x20in\x20another\x20request\x20to\x20get\x20the\ - \x20next\n\x20page\x20of\x20results.\n\n\r\n\x05\x04\x19\x02\x01\x05\x12\ - \x04\xed\x05\x02\x08\n\r\n\x05\x04\x19\x02\x01\x01\x12\x04\xed\x05\t\x18\ - \n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\xed\x05\x1b\x1cb\x06proto3\ + \x20create\x20the\x20new\x20cluster.\n\x20Values\x20are\x20of\x20the\x20\ + form\n\x20`projects//instances/`.\n\n\r\n\x05\x04\x06\ + \x02\0\x05\x12\x04\x91\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\ + \x91\x02\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x91\x02\x12\x13\n\xbc\ + \x01\n\x04\x04\x06\x02\x01\x12\x04\x96\x02\x02\x18\x1a\xad\x01\x20The\ + \x20ID\x20to\x20be\x20used\x20when\x20referring\x20to\x20the\x20new\x20c\ + luster\x20within\x20its\x20instance,\n\x20e.g.,\x20just\x20`mycluster`\ + \x20rather\x20than\n\x20`projects/myproject/instances/myinstance/cluster\ + s/mycluster`.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x96\x02\x02\x08\n\ + \r\n\x05\x04\x06\x02\x01\x01\x12\x04\x96\x02\t\x13\n\r\n\x05\x04\x06\x02\ + \x01\x03\x12\x04\x96\x02\x16\x17\nZ\n\x04\x04\x06\x02\x02\x12\x04\x9a\ + \x02\x02\x16\x1aL\x20The\x20cluster\x20to\x20be\x20created.\n\x20Fields\ + \x20marked\x20`OutputOnly`\x20must\x20be\x20left\x20blank.\n\n\r\n\x05\ + \x04\x06\x02\x02\x06\x12\x04\x9a\x02\x02\t\n\r\n\x05\x04\x06\x02\x02\x01\ + \x12\x04\x9a\x02\n\x11\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\x9a\x02\x14\ + \x15\nE\n\x02\x04\x07\x12\x06\x9e\x02\0\xa2\x02\x01\x1a7\x20Request\x20m\ + essage\x20for\x20BigtableInstanceAdmin.GetCluster.\n\n\x0b\n\x03\x04\x07\ + \x01\x12\x04\x9e\x02\x08\x19\n\x90\x01\n\x04\x04\x07\x02\0\x12\x04\xa1\ + \x02\x02\x12\x1a\x81\x01\x20The\x20unique\x20name\x20of\x20the\x20reques\ + ted\x20cluster.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//clusters/`.\n\n\r\n\x05\x04\x07\x02\ + \0\x05\x12\x04\xa1\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xa1\ + \x02\t\r\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xa1\x02\x10\x11\nG\n\x02\ + \x04\x08\x12\x06\xa5\x02\0\xae\x02\x01\x1a9\x20Request\x20message\x20for\ + \x20BigtableInstanceAdmin.ListClusters.\n\n\x0b\n\x03\x04\x08\x01\x12\ + \x04\xa5\x02\x08\x1b\n\x90\x02\n\x04\x04\x08\x02\0\x12\x04\xaa\x02\x02\ + \x14\x1a\x81\x02\x20The\x20unique\x20name\x20of\x20the\x20instance\x20fo\ + r\x20which\x20a\x20list\x20of\x20clusters\x20is\x20requested.\n\x20Value\ + s\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\x20Use\x20`\x20=\x20'-'`\x20to\x20list\x20Clusters\x20fo\ + r\x20all\x20Instances\x20in\x20a\x20project,\n\x20e.g.,\x20`projects/myp\ + roject/instances/-`.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xaa\x02\x02\ + \x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xaa\x02\t\x0f\n\r\n\x05\x04\x08\ + \x02\0\x03\x12\x04\xaa\x02\x12\x13\n=\n\x04\x04\x08\x02\x01\x12\x04\xad\ + \x02\x02\x18\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unused\x20and\ + \x20ignored.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xad\x02\x02\x08\n\r\ + \n\x05\x04\x08\x02\x01\x01\x12\x04\xad\x02\t\x13\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xad\x02\x16\x17\nH\n\x02\x04\t\x12\x06\xb1\x02\0\xbe\ + \x02\x01\x1a:\x20Response\x20message\x20for\x20BigtableInstanceAdmin.Lis\ + tClusters.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xb1\x02\x08\x1c\n/\n\x04\x04\ + \t\x02\0\x12\x04\xb3\x02\x02\x20\x1a!\x20The\x20list\x20of\x20requested\ + \x20clusters.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xb3\x02\x02\n\n\r\n\ + \x05\x04\t\x02\0\x06\x12\x04\xb3\x02\x0b\x12\n\r\n\x05\x04\t\x02\0\x01\ + \x12\x04\xb3\x02\x13\x1b\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xb3\x02\x1e\ + \x1f\n\xb6\x02\n\x04\x04\t\x02\x01\x12\x04\xba\x02\x02'\x1a\xa7\x02\x20L\ + ocations\x20from\x20which\x20Cluster\x20information\x20could\x20not\x20b\ + e\x20retrieved,\n\x20due\x20to\x20an\x20outage\x20or\x20some\x20other\ + \x20transient\x20condition.\n\x20Clusters\x20from\x20these\x20locations\ + \x20may\x20be\x20missing\x20from\x20`clusters`,\n\x20or\x20may\x20only\ + \x20have\x20partial\x20information\x20returned.\n\x20Values\x20are\x20of\ + \x20the\x20form\x20`projects//locations/`\n\n\r\n\x05\ + \x04\t\x02\x01\x04\x12\x04\xba\x02\x02\n\n\r\n\x05\x04\t\x02\x01\x05\x12\ + \x04\xba\x02\x0b\x11\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xba\x02\x12\"\n\ + \r\n\x05\x04\t\x02\x01\x03\x12\x04\xba\x02%&\n=\n\x04\x04\t\x02\x02\x12\ + \x04\xbd\x02\x02\x1d\x1a/\x20DEPRECATED:\x20This\x20field\x20is\x20unuse\ + d\x20and\x20ignored.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\xbd\x02\x02\ + \x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xbd\x02\t\x18\n\r\n\x05\x04\t\ + \x02\x02\x03\x12\x04\xbd\x02\x1b\x1c\nH\n\x02\x04\n\x12\x06\xc1\x02\0\ + \xc5\x02\x01\x1a:\x20Request\x20message\x20for\x20BigtableInstanceAdmin.\ + DeleteCluster.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xc1\x02\x08\x1c\n\x94\x01\ + \n\x04\x04\n\x02\0\x12\x04\xc4\x02\x02\x12\x1a\x85\x01\x20The\x20unique\ + \x20name\x20of\x20the\x20cluster\x20to\x20be\x20deleted.\x20Values\x20ar\ + e\x20of\x20the\x20form\n\x20`projects//instances//clu\ + sters/`.\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xc4\x02\x02\x08\n\ + \r\n\x05\x04\n\x02\0\x01\x12\x04\xc4\x02\t\r\n\r\n\x05\x04\n\x02\0\x03\ + \x12\x04\xc4\x02\x10\x11\nJ\n\x02\x04\x0b\x12\x06\xc8\x02\0\xd1\x02\x01\ + \x1a<\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\ + \x20CreateInstance.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xc8\x02\x08\x1e\nZ\ + \n\x04\x04\x0b\x02\0\x12\x04\xca\x02\x02-\x1aL\x20The\x20request\x20that\ + \x20prompted\x20the\x20initiation\x20of\x20this\x20CreateInstance\x20ope\ + ration.\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\xca\x02\x02\x17\n\r\n\x05\ + \x04\x0b\x02\0\x01\x12\x04\xca\x02\x18(\n\r\n\x05\x04\x0b\x02\0\x03\x12\ + \x04\xca\x02+,\nD\n\x04\x04\x0b\x02\x01\x12\x04\xcd\x02\x02-\x1a6\x20The\ + \x20time\x20at\x20which\x20the\x20original\x20request\x20was\x20received\ + .\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xcd\x02\x02\x1b\n\r\n\x05\x04\ + \x0b\x02\x01\x01\x12\x04\xcd\x02\x1c(\n\r\n\x05\x04\x0b\x02\x01\x03\x12\ + \x04\xcd\x02+,\nU\n\x04\x04\x0b\x02\x02\x12\x04\xd0\x02\x02,\x1aG\x20The\ + \x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20was\x20co\ + mpleted\x20successfully.\n\n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\xd0\x02\ + \x02\x1b\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xd0\x02\x1c'\n\r\n\x05\ + \x04\x0b\x02\x02\x03\x12\x04\xd0\x02*+\nJ\n\x02\x04\x0c\x12\x06\xd4\x02\ + \0\xdd\x02\x01\x1a<\x20The\x20metadata\x20for\x20the\x20Operation\x20ret\ + urned\x20by\x20UpdateInstance.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xd4\x02\ + \x08\x1e\nZ\n\x04\x04\x0c\x02\0\x12\x04\xd6\x02\x024\x1aL\x20The\x20requ\ + est\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20UpdateInst\ + ance\x20operation.\n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xd6\x02\x02\x1e\ + \n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xd6\x02\x1f/\n\r\n\x05\x04\x0c\x02\ + \0\x03\x12\x04\xd6\x0223\nD\n\x04\x04\x0c\x02\x01\x12\x04\xd9\x02\x02-\ + \x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20request\x20was\ + \x20received.\n\n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\xd9\x02\x02\x1b\n\ + \r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xd9\x02\x1c(\n\r\n\x05\x04\x0c\x02\ + \x01\x03\x12\x04\xd9\x02+,\nU\n\x04\x04\x0c\x02\x02\x12\x04\xdc\x02\x02,\ + \x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\ + \x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x0c\x02\x02\x06\ + \x12\x04\xdc\x02\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xdc\x02\ + \x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xdc\x02*+\nI\n\x02\x04\r\x12\ + \x06\xe0\x02\0\xe9\x02\x01\x1a;\x20The\x20metadata\x20for\x20the\x20Oper\ + ation\x20returned\x20by\x20CreateCluster.\n\n\x0b\n\x03\x04\r\x01\x12\ + \x04\xe0\x02\x08\x1d\nY\n\x04\x04\r\x02\0\x12\x04\xe2\x02\x02,\x1aK\x20T\ + he\x20request\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20\ + CreateCluster\x20operation.\n\n\r\n\x05\x04\r\x02\0\x06\x12\x04\xe2\x02\ + \x02\x16\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xe2\x02\x17'\n\r\n\x05\x04\r\ + \x02\0\x03\x12\x04\xe2\x02*+\nD\n\x04\x04\r\x02\x01\x12\x04\xe5\x02\x02-\ + \x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20request\x20was\ + \x20received.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xe5\x02\x02\x1b\n\r\ + \n\x05\x04\r\x02\x01\x01\x12\x04\xe5\x02\x1c(\n\r\n\x05\x04\r\x02\x01\ + \x03\x12\x04\xe5\x02+,\nU\n\x04\x04\r\x02\x02\x12\x04\xe8\x02\x02,\x1aG\ + \x20The\x20time\x20at\x20which\x20the\x20operation\x20failed\x20or\x20wa\ + s\x20completed\x20successfully.\n\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\ + \xe8\x02\x02\x1b\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xe8\x02\x1c'\n\r\n\ + \x05\x04\r\x02\x02\x03\x12\x04\xe8\x02*+\nI\n\x02\x04\x0e\x12\x06\xec\ + \x02\0\xf5\x02\x01\x1a;\x20The\x20metadata\x20for\x20the\x20Operation\ + \x20returned\x20by\x20UpdateCluster.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\ + \xec\x02\x08\x1d\nY\n\x04\x04\x0e\x02\0\x12\x04\xee\x02\x02\x1f\x1aK\x20\ + The\x20request\x20that\x20prompted\x20the\x20initiation\x20of\x20this\ + \x20UpdateCluster\x20operation.\n\n\r\n\x05\x04\x0e\x02\0\x06\x12\x04\ + \xee\x02\x02\t\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xee\x02\n\x1a\n\r\n\ + \x05\x04\x0e\x02\0\x03\x12\x04\xee\x02\x1d\x1e\nD\n\x04\x04\x0e\x02\x01\ + \x12\x04\xf1\x02\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20origi\ + nal\x20request\x20was\x20received.\n\n\r\n\x05\x04\x0e\x02\x01\x06\x12\ + \x04\xf1\x02\x02\x1b\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xf1\x02\x1c(\ + \n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xf1\x02+,\nU\n\x04\x04\x0e\x02\ + \x02\x12\x04\xf4\x02\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20o\ + peration\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\n\ + \x05\x04\x0e\x02\x02\x06\x12\x04\xf4\x02\x02\x1b\n\r\n\x05\x04\x0e\x02\ + \x02\x01\x12\x04\xf4\x02\x1c'\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\xf4\ + \x02*+\nK\n\x02\x04\x0f\x12\x06\xf8\x02\0\x89\x03\x01\x1a=\x20Request\ + \x20message\x20for\x20BigtableInstanceAdmin.CreateAppProfile.\n\n\x0b\n\ + \x03\x04\x0f\x01\x12\x04\xf8\x02\x08\x1f\n\x9c\x01\n\x04\x04\x0f\x02\0\ + \x12\x04\xfc\x02\x02\x14\x1a\x8d\x01\x20The\x20unique\x20name\x20of\x20t\ + he\x20instance\x20in\x20which\x20to\x20create\x20the\x20new\x20app\x20pr\ + ofile.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//\ + instances/`.\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\xfc\x02\x02\ + \x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xfc\x02\t\x0f\n\r\n\x05\x04\x0f\ + \x02\0\x03\x12\x04\xfc\x02\x12\x13\n\xc3\x01\n\x04\x04\x0f\x02\x01\x12\ + \x04\x81\x03\x02\x1c\x1a\xb4\x01\x20The\x20ID\x20to\x20be\x20used\x20whe\ + n\x20referring\x20to\x20the\x20new\x20app\x20profile\x20within\x20its\n\ + \x20instance,\x20e.g.,\x20just\x20`myprofile`\x20rather\x20than\n\x20`pr\ + ojects/myproject/instances/myinstance/appProfiles/myprofile`.\n\n\r\n\ + \x05\x04\x0f\x02\x01\x05\x12\x04\x81\x03\x02\x08\n\r\n\x05\x04\x0f\x02\ + \x01\x01\x12\x04\x81\x03\t\x17\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x81\ + \x03\x1a\x1b\n[\n\x04\x04\x0f\x02\x02\x12\x04\x85\x03\x02\x1d\x1aM\x20Th\ + e\x20app\x20profile\x20to\x20be\x20created.\n\x20Fields\x20marked\x20`Ou\ + tputOnly`\x20will\x20be\x20ignored.\n\n\r\n\x05\x04\x0f\x02\x02\x06\x12\ + \x04\x85\x03\x02\x0c\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\x85\x03\r\x18\ + \n\r\n\x05\x04\x0f\x02\x02\x03\x12\x04\x85\x03\x1b\x1c\nL\n\x04\x04\x0f\ + \x02\x03\x12\x04\x88\x03\x02\x1b\x1a>\x20If\x20true,\x20ignore\x20safety\ + \x20checks\x20when\x20creating\x20the\x20app\x20profile.\n\n\r\n\x05\x04\ + \x0f\x02\x03\x05\x12\x04\x88\x03\x02\x06\n\r\n\x05\x04\x0f\x02\x03\x01\ + \x12\x04\x88\x03\x07\x16\n\r\n\x05\x04\x0f\x02\x03\x03\x12\x04\x88\x03\ + \x19\x1a\nH\n\x02\x04\x10\x12\x06\x8c\x03\0\x90\x03\x01\x1a:\x20Request\ + \x20message\x20for\x20BigtableInstanceAdmin.GetAppProfile.\n\n\x0b\n\x03\ + \x04\x10\x01\x12\x04\x8c\x03\x08\x1c\n\x9b\x01\n\x04\x04\x10\x02\0\x12\ + \x04\x8f\x03\x02\x12\x1a\x8c\x01\x20The\x20unique\x20name\x20of\x20the\ + \x20requested\x20app\x20profile.\x20Values\x20are\x20of\x20the\x20form\n\ + \x20`projects//instances//appProfiles/`.\ + \n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x8f\x03\x02\x08\n\r\n\x05\x04\x10\ + \x02\0\x01\x12\x04\x8f\x03\t\r\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x8f\ + \x03\x10\x11\nJ\n\x02\x04\x11\x12\x06\x93\x03\0\xa1\x03\x01\x1a<\x20Requ\ + est\x20message\x20for\x20BigtableInstanceAdmin.ListAppProfiles.\n\n\x0b\ + \n\x03\x04\x11\x01\x12\x04\x93\x03\x08\x1e\n\x98\x02\n\x04\x04\x11\x02\0\ + \x12\x04\x99\x03\x02\x14\x1a\x89\x02\x20The\x20unique\x20name\x20of\x20t\ + he\x20instance\x20for\x20which\x20a\x20list\x20of\x20app\x20profiles\x20\ + is\n\x20requested.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/\ + /instances/`.\n\x20Use\x20`\x20=\x20'-'`\ + \x20to\x20list\x20AppProfiles\x20for\x20all\x20Instances\x20in\x20a\x20p\ + roject,\n\x20e.g.,\x20`projects/myproject/instances/-`.\n\n\r\n\x05\x04\ + \x11\x02\0\x05\x12\x04\x99\x03\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\ + \x04\x99\x03\t\x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x99\x03\x12\x13\n\ + Y\n\x04\x04\x11\x02\x01\x12\x04\x9d\x03\x02\x16\x1aK\x20Maximum\x20numbe\ + r\x20of\x20results\x20per\x20page.\n\x20CURRENTLY\x20UNIMPLEMENTED\x20AN\ + D\x20IGNORED.\n\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\x9d\x03\x02\x07\n\ + \r\n\x05\x04\x11\x02\x01\x01\x12\x04\x9d\x03\x08\x11\n\r\n\x05\x04\x11\ + \x02\x01\x03\x12\x04\x9d\x03\x14\x15\nK\n\x04\x04\x11\x02\x02\x12\x04\ + \xa0\x03\x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_token`\x20retu\ + rned\x20by\x20a\x20previous\x20call.\n\n\r\n\x05\x04\x11\x02\x02\x05\x12\ + \x04\xa0\x03\x02\x08\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xa0\x03\t\x13\ + \n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\xa0\x03\x16\x17\nK\n\x02\x04\x12\ + \x12\x06\xa4\x03\0\xb2\x03\x01\x1a=\x20Response\x20message\x20for\x20Big\ + tableInstanceAdmin.ListAppProfiles.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\ + \xa4\x03\x08\x1f\n3\n\x04\x04\x12\x02\0\x12\x04\xa6\x03\x02'\x1a%\x20The\ + \x20list\x20of\x20requested\x20app\x20profiles.\n\n\r\n\x05\x04\x12\x02\ + \0\x04\x12\x04\xa6\x03\x02\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xa6\x03\ + \x0b\x15\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xa6\x03\x16\"\n\r\n\x05\x04\ + \x12\x02\0\x03\x12\x04\xa6\x03%&\n\xaa\x01\n\x04\x04\x12\x02\x01\x12\x04\ + \xab\x03\x02\x1d\x1a\x9b\x01\x20Set\x20if\x20not\x20all\x20app\x20profil\ + es\x20could\x20be\x20returned\x20in\x20a\x20single\x20response.\n\x20Pas\ + s\x20this\x20value\x20to\x20`page_token`\x20in\x20another\x20request\x20\ + to\x20get\x20the\x20next\n\x20page\x20of\x20results.\n\n\r\n\x05\x04\x12\ + \x02\x01\x05\x12\x04\xab\x03\x02\x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\ + \x04\xab\x03\t\x18\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xab\x03\x1b\x1c\ + \n\x90\x02\n\x04\x04\x12\x02\x02\x12\x04\xb1\x03\x02'\x1a\x81\x02\x20Loc\ + ations\x20from\x20which\x20AppProfile\x20information\x20could\x20not\x20\ + be\x20retrieved,\n\x20due\x20to\x20an\x20outage\x20or\x20some\x20other\ + \x20transient\x20condition.\n\x20AppProfiles\x20from\x20these\x20locatio\ + ns\x20may\x20be\x20missing\x20from\x20`app_profiles`.\n\x20Values\x20are\ + \x20of\x20the\x20form\x20`projects//locations/`\n\n\r\ + \n\x05\x04\x12\x02\x02\x04\x12\x04\xb1\x03\x02\n\n\r\n\x05\x04\x12\x02\ + \x02\x05\x12\x04\xb1\x03\x0b\x11\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\ + \xb1\x03\x12\"\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xb1\x03%&\nK\n\x02\ + \x04\x13\x12\x06\xb5\x03\0\xbf\x03\x01\x1a=\x20Request\x20message\x20for\ + \x20BigtableInstanceAdmin.UpdateAppProfile.\n\n\x0b\n\x03\x04\x13\x01\ + \x12\x04\xb5\x03\x08\x1f\nQ\n\x04\x04\x13\x02\0\x12\x04\xb7\x03\x02\x1d\ + \x1aC\x20The\x20app\x20profile\x20which\x20will\x20(partially)\x20replac\ + e\x20the\x20current\x20value.\n\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\xb7\ + \x03\x02\x0c\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xb7\x03\r\x18\n\r\n\x05\ + \x04\x13\x02\0\x03\x12\x04\xb7\x03\x1b\x1c\nr\n\x04\x04\x13\x02\x01\x12\ + \x04\xbb\x03\x02,\x1ad\x20The\x20subset\x20of\x20app\x20profile\x20field\ + s\x20which\x20should\x20be\x20replaced.\n\x20If\x20unset,\x20all\x20fiel\ + ds\x20will\x20be\x20replaced.\n\n\r\n\x05\x04\x13\x02\x01\x06\x12\x04\ + \xbb\x03\x02\x1b\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xbb\x03\x1c'\n\r\ + \n\x05\x04\x13\x02\x01\x03\x12\x04\xbb\x03*+\nL\n\x04\x04\x13\x02\x02\ + \x12\x04\xbe\x03\x02\x1b\x1a>\x20If\x20true,\x20ignore\x20safety\x20chec\ + ks\x20when\x20updating\x20the\x20app\x20profile.\n\n\r\n\x05\x04\x13\x02\ + \x02\x05\x12\x04\xbe\x03\x02\x06\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\ + \xbe\x03\x07\x16\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\xbe\x03\x19\x1a\n\ + K\n\x02\x04\x14\x12\x06\xc2\x03\0\xc9\x03\x01\x1a=\x20Request\x20message\ + \x20for\x20BigtableInstanceAdmin.DeleteAppProfile.\n\n\x0b\n\x03\x04\x14\ + \x01\x12\x04\xc2\x03\x08\x1f\n\x9f\x01\n\x04\x04\x14\x02\0\x12\x04\xc5\ + \x03\x02\x12\x1a\x90\x01\x20The\x20unique\x20name\x20of\x20the\x20app\ + \x20profile\x20to\x20be\x20deleted.\x20Values\x20are\x20of\x20the\x20for\ + m\n\x20`projects//instances//appProfiles/`.\n\n\r\n\x05\x04\x14\x02\0\x05\x12\x04\xc5\x03\x02\x08\n\r\n\x05\x04\ + \x14\x02\0\x01\x12\x04\xc5\x03\t\r\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\ + \xc5\x03\x10\x11\nL\n\x04\x04\x14\x02\x01\x12\x04\xc8\x03\x02\x1b\x1a>\ + \x20If\x20true,\x20ignore\x20safety\x20checks\x20when\x20deleting\x20the\ + \x20app\x20profile.\n\n\r\n\x05\x04\x14\x02\x01\x05\x12\x04\xc8\x03\x02\ + \x06\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xc8\x03\x07\x16\n\r\n\x05\x04\ + \x14\x02\x01\x03\x12\x04\xc8\x03\x19\x1a\nJ\n\x02\x04\x15\x12\x04\xcc\ + \x03\0#\x1a>\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\ + \x20by\x20UpdateAppProfile.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xcc\x03\ + \x08\x20b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(8); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::instance::file_descriptor().clone()); + deps.push(super::iam_policy::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(22); + messages.push(CreateInstanceRequest::generated_message_descriptor_data()); + messages.push(GetInstanceRequest::generated_message_descriptor_data()); + messages.push(ListInstancesRequest::generated_message_descriptor_data()); + messages.push(ListInstancesResponse::generated_message_descriptor_data()); + messages.push(PartialUpdateInstanceRequest::generated_message_descriptor_data()); + messages.push(DeleteInstanceRequest::generated_message_descriptor_data()); + messages.push(CreateClusterRequest::generated_message_descriptor_data()); + messages.push(GetClusterRequest::generated_message_descriptor_data()); + messages.push(ListClustersRequest::generated_message_descriptor_data()); + messages.push(ListClustersResponse::generated_message_descriptor_data()); + messages.push(DeleteClusterRequest::generated_message_descriptor_data()); + messages.push(CreateInstanceMetadata::generated_message_descriptor_data()); + messages.push(UpdateInstanceMetadata::generated_message_descriptor_data()); + messages.push(CreateClusterMetadata::generated_message_descriptor_data()); + messages.push(UpdateClusterMetadata::generated_message_descriptor_data()); + messages.push(CreateAppProfileRequest::generated_message_descriptor_data()); + messages.push(GetAppProfileRequest::generated_message_descriptor_data()); + messages.push(ListAppProfilesRequest::generated_message_descriptor_data()); + messages.push(ListAppProfilesResponse::generated_message_descriptor_data()); + messages.push(UpdateAppProfileRequest::generated_message_descriptor_data()); + messages.push(DeleteAppProfileRequest::generated_message_descriptor_data()); + messages.push(UpdateAppProfileMetadata::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs index 2868655..dc95d88 100644 --- a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs +++ b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin_grpc.rs @@ -86,13 +86,6 @@ const METHOD_BIGTABLE_INSTANCE_ADMIN_UPDATE_CLUSTER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/PartialUpdateCluster", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/DeleteCluster", @@ -156,13 +149,6 @@ const METHOD_BIGTABLE_INSTANCE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableInstanceAdmin/ListHotTablets", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct BigtableInstanceAdminClient { pub client: ::grpcio::Client, @@ -335,22 +321,6 @@ impl BigtableInstanceAdminClient { self.update_cluster_async_opt(req, ::grpcio::CallOption::default()) } - pub fn partial_update_cluster_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_CLUSTER, req, opt) - } - - pub fn partial_update_cluster(&self, req: &super::bigtable_instance_admin::PartialUpdateClusterRequest) -> ::grpcio::Result { - self.partial_update_cluster_opt(req, ::grpcio::CallOption::default()) - } - - pub fn partial_update_cluster_async_opt(&self, req: &super::bigtable_instance_admin::PartialUpdateClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_PARTIAL_UPDATE_CLUSTER, req, opt) - } - - pub fn partial_update_cluster_async(&self, req: &super::bigtable_instance_admin::PartialUpdateClusterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.partial_update_cluster_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn delete_cluster_opt(&self, req: &super::bigtable_instance_admin::DeleteClusterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_DELETE_CLUSTER, req, opt) } @@ -494,22 +464,6 @@ impl BigtableInstanceAdminClient { pub fn test_iam_permissions_async(&self, req: &super::iam_policy::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.test_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn list_hot_tablets_opt(&self, req: &super::bigtable_instance_admin::ListHotTabletsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_HOT_TABLETS, req, opt) - } - - pub fn list_hot_tablets(&self, req: &super::bigtable_instance_admin::ListHotTabletsRequest) -> ::grpcio::Result { - self.list_hot_tablets_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_hot_tablets_async_opt(&self, req: &super::bigtable_instance_admin::ListHotTabletsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_INSTANCE_ADMIN_LIST_HOT_TABLETS, req, opt) - } - - pub fn list_hot_tablets_async(&self, req: &super::bigtable_instance_admin::ListHotTabletsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_hot_tablets_async_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -546,9 +500,6 @@ pub trait BigtableInstanceAdmin { fn update_cluster(&mut self, ctx: ::grpcio::RpcContext, _req: super::instance::Cluster, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn partial_update_cluster(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_instance_admin::PartialUpdateClusterRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn delete_cluster(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_instance_admin::DeleteClusterRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } @@ -576,9 +527,6 @@ pub trait BigtableInstanceAdmin { fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn list_hot_tablets(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_instance_admin::ListHotTabletsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_bigtable_instance_admin(s: S) -> ::grpcio::Service { @@ -624,10 +572,6 @@ pub fn create_bigtable_instance_admin/instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableRequest.parent) pub parent: ::std::string::String, + /// The name by which the new table should be referred to within the parent + /// instance, e.g., `foobar` rather than `/tables/foobar`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableRequest.table_id) pub table_id: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, + /// The Table to create. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableRequest.table) + pub table: ::protobuf::MessageField, + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableRequest.initial_splits) + pub initial_splits: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateTableRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreTableRequest { - fn default() -> &'a RestoreTableRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateTableRequest { + fn default() -> &'a CreateTableRequest { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreTableRequest_oneof_source { - backup(::std::string::String), -} - -impl RestoreTableRequest { - pub fn new() -> RestoreTableRequest { +impl CreateTableRequest { + pub fn new() -> CreateTableRequest { ::std::default::Default::default() } - // string parent = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateTableRequest| { &m.parent }, + |m: &mut CreateTableRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_id", + |m: &CreateTableRequest| { &m.table_id }, + |m: &mut CreateTableRequest| { &mut m.table_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::table::Table>( + "table", + |m: &CreateTableRequest| { &m.table }, + |m: &mut CreateTableRequest| { &mut m.table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "initial_splits", + |m: &CreateTableRequest| { &m.initial_splits }, + |m: &mut CreateTableRequest| { &mut m.initial_splits }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateTableRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for CreateTableRequest { + const NAME: &'static str = "CreateTableRequest"; - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; + }, + 18 => { + self.table_id = is.read_string()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.table)?; + }, + 34 => { + self.initial_splits.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); + } + if !self.table_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.table_id); + } + if let Some(v) = self.table.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for value in &self.initial_splits { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if !self.table_id.is_empty() { + os.write_string(2, &self.table_id)?; + } + if let Some(v) = self.table.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + for v in &self.initial_splits { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // string table_id = 2; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - pub fn get_table_id(&self) -> &str { - &self.table_id + fn new() -> CreateTableRequest { + CreateTableRequest::new() } - pub fn clear_table_id(&mut self) { + + fn clear(&mut self) { + self.parent.clear(); self.table_id.clear(); + self.table.clear(); + self.initial_splits.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_table_id(&mut self, v: ::std::string::String) { - self.table_id = v; + fn default_instance() -> &'static CreateTableRequest { + static instance: CreateTableRequest = CreateTableRequest { + parent: ::std::string::String::new(), + table_id: ::std::string::String::new(), + table: ::protobuf::MessageField::none(), + initial_splits: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_id(&mut self) -> &mut ::std::string::String { - &mut self.table_id +impl ::protobuf::MessageFull for CreateTableRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateTableRequest").unwrap()).clone() } +} - // Take field - pub fn take_table_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_id, ::std::string::String::new()) +impl ::std::fmt::Display for CreateTableRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // string backup = 3; +impl ::protobuf::reflect::ProtobufValue for CreateTableRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// Nested message and enums of message `CreateTableRequest` +pub mod create_table_request { + /// An initial split point for a newly created table. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateTableRequest.Split) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Split { + // message fields + /// Row key to use as an initial tablet boundary. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableRequest.Split.key) + pub key: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateTableRequest.Split.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } - pub fn get_backup(&self) -> &str { - match self.source { - ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(ref v)) => v, - _ => "", + impl<'a> ::std::default::Default for &'a Split { + fn default() -> &'a Split { + ::default_instance() } } - pub fn clear_backup(&mut self) { - self.source = ::std::option::Option::None; - } - pub fn has_backup(&self) -> bool { - match self.source { - ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(..)) => true, - _ => false, + impl Split { + pub fn new() -> Split { + ::std::default::Default::default() } - } - // Param is passed by value, moved - pub fn set_backup(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(v)) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "key", + |m: &Split| { &m.key }, + |m: &mut Split| { &mut m.key }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateTableRequest.Split", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - pub fn mut_backup(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(::std::string::String::new())); + impl ::protobuf::Message for Split { + const NAME: &'static str = "Split"; + + fn is_initialized(&self) -> bool { + true } - match self.source { - ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(ref mut v)) => v, - _ => panic!(), + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.key = is.read_bytes()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - } - // Take field - pub fn take_backup(&mut self) -> ::std::string::String { - if self.has_backup() { - match self.source.take() { - ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(v)) => v, - _ => panic!(), + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.key.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.key); } - } else { - ::std::string::String::new() + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.key.is_empty() { + os.write_bytes(1, &self.key)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Split { + Split::new() + } + + fn clear(&mut self) { + self.key.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Split { + static instance: Split = Split { + key: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } + + impl ::protobuf::MessageFull for Split { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("CreateTableRequest.Split").unwrap()).clone() } } + + impl ::std::fmt::Display for Split { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + + impl ::protobuf::reflect::ProtobufValue for Split { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } +} + +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateTableFromSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateTableFromSnapshotRequest { + // message fields + /// The unique name of the instance in which to create the table. + /// Values are of the form `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotRequest.parent) + pub parent: ::std::string::String, + /// The name by which the new table should be referred to within the parent + /// instance, e.g., `foobar` rather than `/tables/foobar`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotRequest.table_id) + pub table_id: ::std::string::String, + /// 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//instances//clusters//snapshots/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotRequest.source_snapshot) + pub source_snapshot: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateTableFromSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotRequest { + fn default() -> &'a CreateTableFromSnapshotRequest { + ::default_instance() + } +} + +impl CreateTableFromSnapshotRequest { + pub fn new() -> CreateTableFromSnapshotRequest { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateTableFromSnapshotRequest| { &m.parent }, + |m: &mut CreateTableFromSnapshotRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_id", + |m: &CreateTableFromSnapshotRequest| { &m.table_id }, + |m: &mut CreateTableFromSnapshotRequest| { &mut m.table_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "source_snapshot", + |m: &CreateTableFromSnapshotRequest| { &m.source_snapshot }, + |m: &mut CreateTableFromSnapshotRequest| { &mut m.source_snapshot }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateTableFromSnapshotRequest", + fields, + oneofs, + ) + } } -impl ::protobuf::Message for RestoreTableRequest { +impl ::protobuf::Message for CreateTableFromSnapshotRequest { + const NAME: &'static str = "CreateTableFromSnapshotRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; + 18 => { + self.table_id = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(RestoreTableRequest_oneof_source::backup(is.read_string()?)); + 26 => { + self.source_snapshot = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -184,7 +433,7 @@ impl ::protobuf::Message for RestoreTableRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); @@ -192,602 +441,442 @@ impl ::protobuf::Message for RestoreTableRequest { if !self.table_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.table_id); } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &RestoreTableRequest_oneof_source::backup(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; + if !self.source_snapshot.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.source_snapshot); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } if !self.table_id.is_empty() { os.write_string(2, &self.table_id)?; } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &RestoreTableRequest_oneof_source::backup(ref v) => { - os.write_string(3, v)?; - }, - }; + if !self.source_snapshot.is_empty() { + os.write_string(3, &self.source_snapshot)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> RestoreTableRequest { - RestoreTableRequest::new() + fn new() -> CreateTableFromSnapshotRequest { + CreateTableFromSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &RestoreTableRequest| { &m.parent }, - |m: &mut RestoreTableRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_id", - |m: &RestoreTableRequest| { &m.table_id }, - |m: &mut RestoreTableRequest| { &mut m.table_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "backup", - RestoreTableRequest::has_backup, - RestoreTableRequest::get_backup, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreTableRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.table_id.clear(); + self.source_snapshot.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static RestoreTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreTableRequest::new) + fn default_instance() -> &'static CreateTableFromSnapshotRequest { + static instance: CreateTableFromSnapshotRequest = CreateTableFromSnapshotRequest { + parent: ::std::string::String::new(), + table_id: ::std::string::String::new(), + source_snapshot: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RestoreTableRequest { - fn clear(&mut self) { - self.parent.clear(); - self.table_id.clear(); - self.source = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateTableFromSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateTableFromSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for RestoreTableRequest { +impl ::std::fmt::Display for CreateTableFromSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RestoreTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CreateTableFromSnapshotRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RestoreTableMetadata { +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DropRowRangeRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DropRowRangeRequest { // message fields + /// The unique name of the table on which to drop a range of rows. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DropRowRangeRequest.name) pub name: ::std::string::String, - pub source_type: super::table::RestoreSourceType, - pub optimize_table_operation_name: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, // message oneof groups - pub source_info: ::std::option::Option, + pub target: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DropRowRangeRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreTableMetadata { - fn default() -> &'a RestoreTableMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a DropRowRangeRequest { + fn default() -> &'a DropRowRangeRequest { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreTableMetadata_oneof_source_info { - backup_info(super::table::BackupInfo), -} - -impl RestoreTableMetadata { - pub fn new() -> RestoreTableMetadata { +impl DropRowRangeRequest { + pub fn new() -> DropRowRangeRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.RestoreSourceType source_type = 2; - - - pub fn get_source_type(&self) -> super::table::RestoreSourceType { - self.source_type - } - pub fn clear_source_type(&mut self) { - self.source_type = super::table::RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_source_type(&mut self, v: super::table::RestoreSourceType) { - self.source_type = v; - } - - // .google.bigtable.admin.v2.BackupInfo backup_info = 3; - + // bytes row_key_prefix = 2; - pub fn get_backup_info(&self) -> &super::table::BackupInfo { - match self.source_info { - ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(ref v)) => v, - _ => ::default_instance(), + pub fn row_key_prefix(&self) -> &[u8] { + match self.target { + ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(ref v)) => v, + _ => &[], } } - pub fn clear_backup_info(&mut self) { - self.source_info = ::std::option::Option::None; + + pub fn clear_row_key_prefix(&mut self) { + self.target = ::std::option::Option::None; } - pub fn has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(..)) => true, + pub fn has_row_key_prefix(&self) -> bool { + match self.target { + ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_backup_info(&mut self, v: super::table::BackupInfo) { - self.source_info = ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(v)) + pub fn set_row_key_prefix(&mut self, v: ::std::vec::Vec) { + self.target = ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(v)) } // Mutable pointer to the field. - pub fn mut_backup_info(&mut self) -> &mut super::table::BackupInfo { - if let ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(_)) = self.source_info { + pub fn mut_row_key_prefix(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(_)) = self.target { } else { - self.source_info = ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(super::table::BackupInfo::new())); + self.target = ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(::std::vec::Vec::new())); } - match self.source_info { - ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(ref mut v)) => v, + match self.target { + ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_backup_info(&mut self) -> super::table::BackupInfo { - if self.has_backup_info() { - match self.source_info.take() { - ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(v)) => v, + pub fn take_row_key_prefix(&mut self) -> ::std::vec::Vec { + if self.has_row_key_prefix() { + match self.target.take() { + ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(v)) => v, _ => panic!(), } } else { - super::table::BackupInfo::new() + ::std::vec::Vec::new() } } - // string optimize_table_operation_name = 4; - + // bool delete_all_data_from_table = 3; - pub fn get_optimize_table_operation_name(&self) -> &str { - &self.optimize_table_operation_name - } - pub fn clear_optimize_table_operation_name(&mut self) { - self.optimize_table_operation_name.clear(); + pub fn delete_all_data_from_table(&self) -> bool { + match self.target { + ::std::option::Option::Some(drop_row_range_request::Target::DeleteAllDataFromTable(v)) => v, + _ => false, + } } - // Param is passed by value, moved - pub fn set_optimize_table_operation_name(&mut self, v: ::std::string::String) { - self.optimize_table_operation_name = v; + pub fn clear_delete_all_data_from_table(&mut self) { + self.target = ::std::option::Option::None; } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_optimize_table_operation_name(&mut self) -> &mut ::std::string::String { - &mut self.optimize_table_operation_name + pub fn has_delete_all_data_from_table(&self) -> bool { + match self.target { + ::std::option::Option::Some(drop_row_range_request::Target::DeleteAllDataFromTable(..)) => true, + _ => false, + } } - // Take field - pub fn take_optimize_table_operation_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.optimize_table_operation_name, ::std::string::String::new()) + // Param is passed by value, moved + pub fn set_delete_all_data_from_table(&mut self, v: bool) { + self.target = ::std::option::Option::Some(drop_row_range_request::Target::DeleteAllDataFromTable(v)) + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DropRowRangeRequest| { &m.name }, + |m: &mut DropRowRangeRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "row_key_prefix", + DropRowRangeRequest::has_row_key_prefix, + DropRowRangeRequest::row_key_prefix, + DropRowRangeRequest::set_row_key_prefix, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "delete_all_data_from_table", + DropRowRangeRequest::has_delete_all_data_from_table, + DropRowRangeRequest::delete_all_data_from_table, + DropRowRangeRequest::set_delete_all_data_from_table, + )); + oneofs.push(drop_row_range_request::Target::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DropRowRangeRequest", + fields, + oneofs, + ) } +} - // .google.bigtable.admin.v2.OperationProgress progress = 5; - +impl ::protobuf::Message for DropRowRangeRequest { + const NAME: &'static str = "DropRowRangeRequest"; - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) - } -} - -impl ::protobuf::Message for RestoreTableMetadata { - fn is_initialized(&self) -> bool { - if let Some(RestoreTableMetadata_oneof_source_info::backup_info(ref v)) = self.source_info { - if !v.is_initialized() { - return false; - } - } - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.source_type, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source_info = ::std::option::Option::Some(RestoreTableMetadata_oneof_source_info::backup_info(is.read_message()?)); - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimize_table_operation_name)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.target = ::std::option::Option::Some(drop_row_range_request::Target::RowKeyPrefix(is.read_bytes()?)); + }, + 24 => { + self.target = ::std::option::Option::Some(drop_row_range_request::Target::DeleteAllDataFromTable(is.read_bool()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if self.source_type != super::table::RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.source_type); - } - if !self.optimize_table_operation_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.optimize_table_operation_name); - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.source_info { + if let ::std::option::Option::Some(ref v) = self.target { match v { - &RestoreTableMetadata_oneof_source_info::backup_info(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + &drop_row_range_request::Target::RowKeyPrefix(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &drop_row_range_request::Target::DeleteAllDataFromTable(v) => { + my_size += 1 + 1; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if self.source_type != super::table::RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.source_type))?; - } - if !self.optimize_table_operation_name.is_empty() { - os.write_string(4, &self.optimize_table_operation_name)?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.source_info { + if let ::std::option::Option::Some(ref v) = self.target { match v { - &RestoreTableMetadata_oneof_source_info::backup_info(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &drop_row_range_request::Target::RowKeyPrefix(ref v) => { + os.write_bytes(2, v)?; + }, + &drop_row_range_request::Target::DeleteAllDataFromTable(v) => { + os.write_bool(3, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> RestoreTableMetadata { - RestoreTableMetadata::new() + fn new() -> DropRowRangeRequest { + DropRowRangeRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &RestoreTableMetadata| { &m.name }, - |m: &mut RestoreTableMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "source_type", - |m: &RestoreTableMetadata| { &m.source_type }, - |m: &mut RestoreTableMetadata| { &mut m.source_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::table::BackupInfo>( - "backup_info", - RestoreTableMetadata::has_backup_info, - RestoreTableMetadata::get_backup_info, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "optimize_table_operation_name", - |m: &RestoreTableMetadata| { &m.optimize_table_operation_name }, - |m: &mut RestoreTableMetadata| { &mut m.optimize_table_operation_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &RestoreTableMetadata| { &m.progress }, - |m: &mut RestoreTableMetadata| { &mut m.progress }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreTableMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.target = ::std::option::Option::None; + self.target = ::std::option::Option::None; + self.special_fields.clear(); } - fn default_instance() -> &'static RestoreTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreTableMetadata::new) + fn default_instance() -> &'static DropRowRangeRequest { + static instance: DropRowRangeRequest = DropRowRangeRequest { + name: ::std::string::String::new(), + target: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RestoreTableMetadata { - fn clear(&mut self) { - self.name.clear(); - self.source_type = super::table::RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED; - self.source_info = ::std::option::Option::None; - self.optimize_table_operation_name.clear(); - self.progress.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DropRowRangeRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DropRowRangeRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for RestoreTableMetadata { +impl ::std::fmt::Display for DropRowRangeRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RestoreTableMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OptimizeRestoredTableMetadata { - // message fields - pub name: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OptimizeRestoredTableMetadata { - fn default() -> &'a OptimizeRestoredTableMetadata { - ::default_instance() - } +impl ::protobuf::reflect::ProtobufValue for DropRowRangeRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl OptimizeRestoredTableMetadata { - pub fn new() -> OptimizeRestoredTableMetadata { - ::std::default::Default::default() - } - - // string name = 1; +/// Nested message and enums of message `DropRowRangeRequest` +pub mod drop_row_range_request { - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.admin.v2.DropRowRangeRequest.target) + pub enum Target { + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.DropRowRangeRequest.row_key_prefix) + RowKeyPrefix(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.DropRowRangeRequest.delete_all_data_from_table) + DeleteAllDataFromTable(bool), } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + impl ::protobuf::Oneof for Target { } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + impl ::protobuf::OneofFull for Target { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("target").unwrap()).clone() + } } - // .google.bigtable.admin.v2.OperationProgress progress = 2; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); + impl Target { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("target") + } } +} - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListTablesRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTablesRequest { + // message fields + /// The unique name of the instance for which tables should be listed. + /// Values are of the form `projects//instances/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesRequest.parent) + pub parent: ::std::string::String, + /// The view to be applied to the returned tables' fields. + /// Defaults to `NAME_ONLY` if unspecified; no others are currently supported. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesRequest.view) + pub view: ::protobuf::EnumOrUnknown, + /// Maximum number of results per page. + /// CURRENTLY UNIMPLEMENTED AND IGNORED. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesRequest.page_size) + pub page_size: i32, + /// The value of `next_page_token` returned by a previous call. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListTablesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a ListTablesRequest { + fn default() -> &'a ListTablesRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() +impl ListTablesRequest { + pub fn new() -> ListTablesRequest { + ::std::default::Default::default() } - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListTablesRequest| { &m.parent }, + |m: &mut ListTablesRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "view", + |m: &ListTablesRequest| { &m.view }, + |m: &mut ListTablesRequest| { &mut m.view }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTablesRequest| { &m.page_size }, + |m: &mut ListTablesRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTablesRequest| { &m.page_token }, + |m: &mut ListTablesRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTablesRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for OptimizeRestoredTableMetadata { +impl ::protobuf::Message for ListTablesRequest { + const NAME: &'static str = "ListTablesRequest"; + fn is_initialized(&self) -> bool { - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; + }, + 16 => { + self.view = is.read_enum_or_unknown()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + 32 => { + self.page_size = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 26 => { + self.page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -796,278 +885,308 @@ impl ::protobuf::Message for OptimizeRestoredTableMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.view != ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.view.value()); + } + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(4, self.page_size); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if self.view != ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.view))?; + } + if self.page_size != 0 { + os.write_int32(4, self.page_size)?; } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> OptimizeRestoredTableMetadata { - OptimizeRestoredTableMetadata::new() + fn new() -> ListTablesRequest { + ListTablesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OptimizeRestoredTableMetadata| { &m.name }, - |m: &mut OptimizeRestoredTableMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &OptimizeRestoredTableMetadata| { &m.progress }, - |m: &mut OptimizeRestoredTableMetadata| { &mut m.progress }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OptimizeRestoredTableMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.view = ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static OptimizeRestoredTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OptimizeRestoredTableMetadata::new) + fn default_instance() -> &'static ListTablesRequest { + static instance: ListTablesRequest = ListTablesRequest { + parent: ::std::string::String::new(), + view: ::protobuf::EnumOrUnknown::from_i32(0), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for OptimizeRestoredTableMetadata { - fn clear(&mut self) { - self.name.clear(); - self.progress.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTablesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTablesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for OptimizeRestoredTableMetadata { +impl ::std::fmt::Display for ListTablesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for OptimizeRestoredTableMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListTablesRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableRequest { +/// Response message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListTablesResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTablesResponse { // message fields - pub parent: ::std::string::String, - pub table_id: ::std::string::String, - pub table: ::protobuf::SingularPtrField, - pub initial_splits: ::protobuf::RepeatedField, + /// The tables present in the requested instance. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesResponse.tables) + pub tables: ::std::vec::Vec, + /// Set if not all tables could be returned in a single response. + /// Pass this value to `page_token` in another request to get the next + /// page of results. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListTablesResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListTablesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateTableRequest { - fn default() -> &'a CreateTableRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListTablesResponse { + fn default() -> &'a ListTablesResponse { + ::default_instance() } } -impl CreateTableRequest { - pub fn new() -> CreateTableRequest { +impl ListTablesResponse { + pub fn new() -> ListTablesResponse { ::std::default::Default::default() } - // string parent = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "tables", + |m: &ListTablesResponse| { &m.tables }, + |m: &mut ListTablesResponse| { &mut m.tables }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTablesResponse| { &m.next_page_token }, + |m: &mut ListTablesResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTablesResponse", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for ListTablesResponse { + const NAME: &'static str = "ListTablesResponse"; - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.tables.push(is.read_message()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.tables { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.tables { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // string table_id = 2; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - pub fn get_table_id(&self) -> &str { - &self.table_id + fn new() -> ListTablesResponse { + ListTablesResponse::new() } - pub fn clear_table_id(&mut self) { - self.table_id.clear(); + + fn clear(&mut self) { + self.tables.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_table_id(&mut self, v: ::std::string::String) { - self.table_id = v; + fn default_instance() -> &'static ListTablesResponse { + static instance: ListTablesResponse = ListTablesResponse { + tables: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_id(&mut self) -> &mut ::std::string::String { - &mut self.table_id +impl ::protobuf::MessageFull for ListTablesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTablesResponse").unwrap()).clone() } +} - // Take field - pub fn take_table_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_id, ::std::string::String::new()) +impl ::std::fmt::Display for ListTablesResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.bigtable.admin.v2.Table table = 3; +impl ::protobuf::reflect::ProtobufValue for ListTablesResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admin.v2.BigtableTableAdmin.GetTable] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GetTableRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetTableRequest { + // message fields + /// The unique name of the requested table. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetTableRequest.name) + pub name: ::std::string::String, + /// The view to be applied to the returned table's fields. + /// Defaults to `SCHEMA_VIEW` if unspecified. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetTableRequest.view) + pub view: ::protobuf::EnumOrUnknown, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GetTableRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_table(&self) -> &super::table::Table { - self.table.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_table(&mut self) { - self.table.clear(); +impl<'a> ::std::default::Default for &'a GetTableRequest { + fn default() -> &'a GetTableRequest { + ::default_instance() } +} - pub fn has_table(&self) -> bool { - self.table.is_some() +impl GetTableRequest { + pub fn new() -> GetTableRequest { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_table(&mut self, v: super::table::Table) { - self.table = ::protobuf::SingularPtrField::some(v); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetTableRequest| { &m.name }, + |m: &mut GetTableRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "view", + |m: &GetTableRequest| { &m.view }, + |m: &mut GetTableRequest| { &mut m.view }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetTableRequest", + fields, + oneofs, + ) } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut super::table::Table { - if self.table.is_none() { - self.table.set_default(); - } - self.table.as_mut().unwrap() - } +impl ::protobuf::Message for GetTableRequest { + const NAME: &'static str = "GetTableRequest"; - // Take field - pub fn take_table(&mut self) -> super::table::Table { - self.table.take().unwrap_or_else(|| super::table::Table::new()) + fn is_initialized(&self) -> bool { + true } - // repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4; - - - pub fn get_initial_splits(&self) -> &[CreateTableRequest_Split] { - &self.initial_splits - } - pub fn clear_initial_splits(&mut self) { - self.initial_splits.clear(); - } - - // Param is passed by value, moved - pub fn set_initial_splits(&mut self, v: ::protobuf::RepeatedField) { - self.initial_splits = v; - } - - // Mutable pointer to the field. - pub fn mut_initial_splits(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.initial_splits - } - - // Take field - pub fn take_initial_splits(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.initial_splits, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for CreateTableRequest { - fn is_initialized(&self) -> bool { - for v in &self.table { - if !v.is_initialized() { - return false; - } - }; - for v in &self.initial_splits { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; + 16 => { + self.view = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.table)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.initial_splits)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1076,199 +1195,133 @@ impl ::protobuf::Message for CreateTableRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.table_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_id); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if let Some(ref v) = self.table.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.view != ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.view.value()); } - for value in &self.initial_splits { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.table_id.is_empty() { - os.write_string(2, &self.table_id)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - if let Some(ref v) = self.table.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.view != ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.view))?; } - for v in &self.initial_splits { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateTableRequest { - CreateTableRequest::new() + fn new() -> GetTableRequest { + GetTableRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateTableRequest| { &m.parent }, - |m: &mut CreateTableRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_id", - |m: &CreateTableRequest| { &m.table_id }, - |m: &mut CreateTableRequest| { &mut m.table_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "table", - |m: &CreateTableRequest| { &m.table }, - |m: &mut CreateTableRequest| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "initial_splits", - |m: &CreateTableRequest| { &m.initial_splits }, - |m: &mut CreateTableRequest| { &mut m.initial_splits }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateTableRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.view = ::protobuf::EnumOrUnknown::new(super::table::table::View::VIEW_UNSPECIFIED); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableRequest::new) + fn default_instance() -> &'static GetTableRequest { + static instance: GetTableRequest = GetTableRequest { + name: ::std::string::String::new(), + view: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateTableRequest { - fn clear(&mut self) { - self.parent.clear(); - self.table_id.clear(); - self.table.clear(); - self.initial_splits.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetTableRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetTableRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateTableRequest { +impl ::std::fmt::Display for GetTableRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GetTableRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableRequest_Split { +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DeleteTableRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteTableRequest { // message fields - pub key: ::std::vec::Vec, + /// The unique name of the table to be deleted. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteTableRequest.name) + pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DeleteTableRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateTableRequest_Split { - fn default() -> &'a CreateTableRequest_Split { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeleteTableRequest { + fn default() -> &'a DeleteTableRequest { + ::default_instance() } } -impl CreateTableRequest_Split { - pub fn new() -> CreateTableRequest_Split { +impl DeleteTableRequest { + pub fn new() -> DeleteTableRequest { ::std::default::Default::default() } - // bytes key = 1; - - - pub fn get_key(&self) -> &[u8] { - &self.key - } - pub fn clear_key(&mut self) { - self.key.clear(); - } - - // Param is passed by value, moved - pub fn set_key(&mut self, v: ::std::vec::Vec) { - self.key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.key - } - - // Take field - pub fn take_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.key, ::std::vec::Vec::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteTableRequest| { &m.name }, + |m: &mut DeleteTableRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteTableRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateTableRequest_Split { +impl ::protobuf::Message for DeleteTableRequest { + const NAME: &'static str = "DeleteTableRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.key)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1277,217 +1330,139 @@ impl ::protobuf::Message for CreateTableRequest_Split { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.key.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.key); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.key.is_empty() { - os.write_bytes(1, &self.key)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateTableRequest_Split { - CreateTableRequest_Split::new() + fn new() -> DeleteTableRequest { + DeleteTableRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "key", - |m: &CreateTableRequest_Split| { &m.key }, - |m: &mut CreateTableRequest_Split| { &mut m.key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateTableRequest.Split", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateTableRequest_Split { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableRequest_Split::new) + fn default_instance() -> &'static DeleteTableRequest { + static instance: DeleteTableRequest = DeleteTableRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateTableRequest_Split { - fn clear(&mut self) { - self.key.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteTableRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteTableRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateTableRequest_Split { +impl ::std::fmt::Display for DeleteTableRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateTableRequest_Split { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for DeleteTableRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableFromSnapshotRequest { +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ModifyColumnFamiliesRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ModifyColumnFamiliesRequest { // message fields - pub parent: ::std::string::String, - pub table_id: ::std::string::String, - pub source_snapshot: ::std::string::String, + /// The unique name of the table whose families should be modified. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.name) + pub name: ::std::string::String, + /// 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). + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.modifications) + pub modifications: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotRequest { - fn default() -> &'a CreateTableFromSnapshotRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ModifyColumnFamiliesRequest { + fn default() -> &'a ModifyColumnFamiliesRequest { + ::default_instance() } } -impl CreateTableFromSnapshotRequest { - pub fn new() -> CreateTableFromSnapshotRequest { +impl ModifyColumnFamiliesRequest { + pub fn new() -> ModifyColumnFamiliesRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string table_id = 2; - - - pub fn get_table_id(&self) -> &str { - &self.table_id - } - pub fn clear_table_id(&mut self) { - self.table_id.clear(); - } - - // Param is passed by value, moved - pub fn set_table_id(&mut self, v: ::std::string::String) { - self.table_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_id(&mut self) -> &mut ::std::string::String { - &mut self.table_id - } - - // Take field - pub fn take_table_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_id, ::std::string::String::new()) - } - - // string source_snapshot = 3; - - - pub fn get_source_snapshot(&self) -> &str { - &self.source_snapshot - } - pub fn clear_source_snapshot(&mut self) { - self.source_snapshot.clear(); - } - - // Param is passed by value, moved - pub fn set_source_snapshot(&mut self, v: ::std::string::String) { - self.source_snapshot = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_snapshot(&mut self) -> &mut ::std::string::String { - &mut self.source_snapshot - } - - // Take field - pub fn take_source_snapshot(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_snapshot, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &ModifyColumnFamiliesRequest| { &m.name }, + |m: &mut ModifyColumnFamiliesRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "modifications", + |m: &ModifyColumnFamiliesRequest| { &m.modifications }, + |m: &mut ModifyColumnFamiliesRequest| { &mut m.modifications }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyColumnFamiliesRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateTableFromSnapshotRequest { +impl ::protobuf::Message for ModifyColumnFamiliesRequest { + const NAME: &'static str = "ModifyColumnFamiliesRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_id)?; + 18 => { + self.modifications.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_snapshot)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1496,538 +1471,480 @@ impl ::protobuf::Message for CreateTableFromSnapshotRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.table_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_id); - } - if !self.source_snapshot.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.source_snapshot); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.modifications { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.table_id.is_empty() { - os.write_string(2, &self.table_id)?; - } - if !self.source_snapshot.is_empty() { - os.write_string(3, &self.source_snapshot)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + for v in &self.modifications { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CreateTableFromSnapshotRequest { - CreateTableFromSnapshotRequest::new() + fn new() -> ModifyColumnFamiliesRequest { + ModifyColumnFamiliesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateTableFromSnapshotRequest| { &m.parent }, - |m: &mut CreateTableFromSnapshotRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_id", - |m: &CreateTableFromSnapshotRequest| { &m.table_id }, - |m: &mut CreateTableFromSnapshotRequest| { &mut m.table_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_snapshot", - |m: &CreateTableFromSnapshotRequest| { &m.source_snapshot }, - |m: &mut CreateTableFromSnapshotRequest| { &mut m.source_snapshot }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateTableFromSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.modifications.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateTableFromSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableFromSnapshotRequest::new) + fn default_instance() -> &'static ModifyColumnFamiliesRequest { + static instance: ModifyColumnFamiliesRequest = ModifyColumnFamiliesRequest { + name: ::std::string::String::new(), + modifications: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateTableFromSnapshotRequest { - fn clear(&mut self) { - self.parent.clear(); - self.table_id.clear(); - self.source_snapshot.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ModifyColumnFamiliesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ModifyColumnFamiliesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateTableFromSnapshotRequest { +impl ::std::fmt::Display for ModifyColumnFamiliesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateTableFromSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ModifyColumnFamiliesRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DropRowRangeRequest { - // message fields - pub name: ::std::string::String, - // message oneof groups - pub target: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `ModifyColumnFamiliesRequest` +pub mod modify_column_families_request { + /// A create, update, or delete of a particular column family. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Modification { + // message fields + /// The ID of the column family to be modified. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.id) + pub id: ::std::string::String, + // message oneof groups + pub mod_: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } -impl<'a> ::std::default::Default for &'a DropRowRangeRequest { - fn default() -> &'a DropRowRangeRequest { - ::default_instance() + impl<'a> ::std::default::Default for &'a Modification { + fn default() -> &'a Modification { + ::default_instance() + } } -} -#[derive(Clone,PartialEq,Debug)] -pub enum DropRowRangeRequest_oneof_target { - row_key_prefix(::std::vec::Vec), - delete_all_data_from_table(bool), -} + impl Modification { + pub fn new() -> Modification { + ::std::default::Default::default() + } -impl DropRowRangeRequest { - pub fn new() -> DropRowRangeRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } + // .google.bigtable.admin.v2.ColumnFamily create = 2; - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // bytes row_key_prefix = 2; - - - pub fn get_row_key_prefix(&self) -> &[u8] { - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(ref v)) => v, - _ => &[], + pub fn create(&self) -> &super::super::table::ColumnFamily { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Create(ref v)) => v, + _ => ::default_instance(), + } } - } - pub fn clear_row_key_prefix(&mut self) { - self.target = ::std::option::Option::None; - } - pub fn has_row_key_prefix(&self) -> bool { - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(..)) => true, - _ => false, + pub fn clear_create(&mut self) { + self.mod_ = ::std::option::Option::None; } - } - - // Param is passed by value, moved - pub fn set_row_key_prefix(&mut self, v: ::std::vec::Vec) { - self.target = ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(v)) - } - // Mutable pointer to the field. - pub fn mut_row_key_prefix(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(_)) = self.target { - } else { - self.target = ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(::std::vec::Vec::new())); + pub fn has_create(&self) -> bool { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Create(..)) => true, + _ => false, + } } - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_create(&mut self, v: super::super::table::ColumnFamily) { + self.mod_ = ::std::option::Option::Some(modification::Mod::Create(v)) } - } - // Take field - pub fn take_row_key_prefix(&mut self) -> ::std::vec::Vec { - if self.has_row_key_prefix() { - match self.target.take() { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(v)) => v, + // Mutable pointer to the field. + pub fn mut_create(&mut self) -> &mut super::super::table::ColumnFamily { + if let ::std::option::Option::Some(modification::Mod::Create(_)) = self.mod_ { + } else { + self.mod_ = ::std::option::Option::Some(modification::Mod::Create(super::super::table::ColumnFamily::new())); + } + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Create(ref mut v)) => v, _ => panic!(), } - } else { - ::std::vec::Vec::new() } - } - // bool delete_all_data_from_table = 3; + // Take field + pub fn take_create(&mut self) -> super::super::table::ColumnFamily { + if self.has_create() { + match self.mod_.take() { + ::std::option::Option::Some(modification::Mod::Create(v)) => v, + _ => panic!(), + } + } else { + super::super::table::ColumnFamily::new() + } + } + // .google.bigtable.admin.v2.ColumnFamily update = 3; - pub fn get_delete_all_data_from_table(&self) -> bool { - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::delete_all_data_from_table(v)) => v, - _ => false, + pub fn update(&self) -> &super::super::table::ColumnFamily { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Update(ref v)) => v, + _ => ::default_instance(), + } } - } - pub fn clear_delete_all_data_from_table(&mut self) { - self.target = ::std::option::Option::None; - } - pub fn has_delete_all_data_from_table(&self) -> bool { - match self.target { - ::std::option::Option::Some(DropRowRangeRequest_oneof_target::delete_all_data_from_table(..)) => true, - _ => false, + pub fn clear_update(&mut self) { + self.mod_ = ::std::option::Option::None; } - } - - // Param is passed by value, moved - pub fn set_delete_all_data_from_table(&mut self, v: bool) { - self.target = ::std::option::Option::Some(DropRowRangeRequest_oneof_target::delete_all_data_from_table(v)) - } -} -impl ::protobuf::Message for DropRowRangeRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.target = ::std::option::Option::Some(DropRowRangeRequest_oneof_target::row_key_prefix(is.read_bytes()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.target = ::std::option::Option::Some(DropRowRangeRequest_oneof_target::delete_all_data_from_table(is.read_bool()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + pub fn has_update(&self) -> bool { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Update(..)) => true, + _ => false, + } } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let ::std::option::Option::Some(ref v) = self.target { - match v { - &DropRowRangeRequest_oneof_target::row_key_prefix(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &DropRowRangeRequest_oneof_target::delete_all_data_from_table(v) => { - my_size += 2; - }, - }; + // Param is passed by value, moved + pub fn set_update(&mut self, v: super::super::table::ColumnFamily) { + self.mod_ = ::std::option::Option::Some(modification::Mod::Update(v)) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let ::std::option::Option::Some(ref v) = self.target { - match v { - &DropRowRangeRequest_oneof_target::row_key_prefix(ref v) => { - os.write_bytes(2, v)?; - }, - &DropRowRangeRequest_oneof_target::delete_all_data_from_table(v) => { - os.write_bool(3, v)?; - }, - }; + // Mutable pointer to the field. + pub fn mut_update(&mut self) -> &mut super::super::table::ColumnFamily { + if let ::std::option::Option::Some(modification::Mod::Update(_)) = self.mod_ { + } else { + self.mod_ = ::std::option::Option::Some(modification::Mod::Update(super::super::table::ColumnFamily::new())); + } + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Update(ref mut v)) => v, + _ => panic!(), + } } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + // Take field + pub fn take_update(&mut self) -> super::super::table::ColumnFamily { + if self.has_update() { + match self.mod_.take() { + ::std::option::Option::Some(modification::Mod::Update(v)) => v, + _ => panic!(), + } + } else { + super::super::table::ColumnFamily::new() + } + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + // bool drop = 4; - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + pub fn drop(&self) -> bool { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Drop(v)) => v, + _ => false, + } + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + pub fn clear_drop(&mut self) { + self.mod_ = ::std::option::Option::None; + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + pub fn has_drop(&self) -> bool { + match self.mod_ { + ::std::option::Option::Some(modification::Mod::Drop(..)) => true, + _ => false, + } + } - fn new() -> DropRowRangeRequest { - DropRowRangeRequest::new() - } + // Param is passed by value, moved + pub fn set_drop(&mut self, v: bool) { + self.mod_ = ::std::option::Option::Some(modification::Mod::Drop(v)) + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DropRowRangeRequest| { &m.name }, - |m: &mut DropRowRangeRequest| { &mut m.name }, + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &Modification| { &m.id }, + |m: &mut Modification| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::super::table::ColumnFamily>( + "create", + Modification::has_create, + Modification::create, + Modification::mut_create, + Modification::set_create, )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "row_key_prefix", - DropRowRangeRequest::has_row_key_prefix, - DropRowRangeRequest::get_row_key_prefix, + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::super::table::ColumnFamily>( + "update", + Modification::has_update, + Modification::update, + Modification::mut_update, + Modification::set_update, )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "delete_all_data_from_table", - DropRowRangeRequest::has_delete_all_data_from_table, - DropRowRangeRequest::get_delete_all_data_from_table, + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "drop", + Modification::has_drop, + Modification::drop, + Modification::set_drop, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DropRowRangeRequest", + oneofs.push(modification::Mod::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyColumnFamiliesRequest.Modification", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static DropRowRangeRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DropRowRangeRequest::new) - } -} - -impl ::protobuf::Clear for DropRowRangeRequest { - fn clear(&mut self) { - self.name.clear(); - self.target = ::std::option::Option::None; - self.target = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DropRowRangeRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for DropRowRangeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + impl ::protobuf::Message for Modification { + const NAME: &'static str = "Modification"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.id = is.read_string()?; + }, + 18 => { + self.mod_ = ::std::option::Option::Some(modification::Mod::Create(is.read_message()?)); + }, + 26 => { + self.mod_ = ::std::option::Option::Some(modification::Mod::Update(is.read_message()?)); + }, + 32 => { + self.mod_ = ::std::option::Option::Some(modification::Mod::Drop(is.read_bool()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -#[derive(PartialEq,Clone,Default)] -pub struct ListTablesRequest { - // message fields - pub parent: ::std::string::String, - pub view: super::table::Table_View, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.id); + } + if let ::std::option::Option::Some(ref v) = self.mod_ { + match v { + &modification::Mod::Create(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &modification::Mod::Update(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &modification::Mod::Drop(v) => { + my_size += 1 + 1; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl<'a> ::std::default::Default for &'a ListTablesRequest { - fn default() -> &'a ListTablesRequest { - ::default_instance() - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.id.is_empty() { + os.write_string(1, &self.id)?; + } + if let ::std::option::Option::Some(ref v) = self.mod_ { + match v { + &modification::Mod::Create(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &modification::Mod::Update(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + &modification::Mod::Drop(v) => { + os.write_bool(4, v)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl ListTablesRequest { - pub fn new() -> ListTablesRequest { - ::std::default::Default::default() - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // string parent = 1; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + fn new() -> Modification { + Modification::new() + } - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } + fn clear(&mut self) { + self.id.clear(); + self.mod_ = ::std::option::Option::None; + self.mod_ = ::std::option::Option::None; + self.mod_ = ::std::option::Option::None; + self.special_fields.clear(); + } - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; + fn default_instance() -> &'static Modification { + static instance: Modification = Modification { + id: ::std::string::String::new(), + mod_: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent + impl ::protobuf::MessageFull for Modification { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ModifyColumnFamiliesRequest.Modification").unwrap()).clone() + } } - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + impl ::std::fmt::Display for Modification { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // .google.bigtable.admin.v2.Table.View view = 2; - - - pub fn get_view(&self) -> super::table::Table_View { - self.view - } - pub fn clear_view(&mut self) { - self.view = super::table::Table_View::VIEW_UNSPECIFIED; + impl ::protobuf::reflect::ProtobufValue for Modification { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - // Param is passed by value, moved - pub fn set_view(&mut self, v: super::table::Table_View) { - self.view = v; - } + /// Nested message and enums of message `Modification` + pub mod modification { - // int32 page_size = 4; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.mod) + pub enum Mod { + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.create) + Create(super::super::super::table::ColumnFamily), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.update) + Update(super::super::super::table::ColumnFamily), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification.drop) + Drop(bool), + } + impl ::protobuf::Oneof for Mod { + } - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } + impl ::protobuf::OneofFull for Mod { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("mod").unwrap()).clone() + } + } - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; + impl Mod { + pub(in super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("mod") + } + } } +} - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GenerateConsistencyTokenRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GenerateConsistencyTokenRequest { + // message fields + /// The unique name of the Table for which to create a consistency token. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GenerateConsistencyTokenRequest.name) + pub name: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GenerateConsistencyTokenRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; +impl<'a> ::std::default::Default for &'a GenerateConsistencyTokenRequest { + fn default() -> &'a GenerateConsistencyTokenRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token +impl GenerateConsistencyTokenRequest { + pub fn new() -> GenerateConsistencyTokenRequest { + ::std::default::Default::default() } - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GenerateConsistencyTokenRequest| { &m.name }, + |m: &mut GenerateConsistencyTokenRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GenerateConsistencyTokenRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTablesRequest { +impl ::protobuf::Message for GenerateConsistencyTokenRequest { + const NAME: &'static str = "GenerateConsistencyTokenRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2036,4986 +1953,261 @@ impl ::protobuf::Message for ListTablesRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.view != super::table::Table_View::VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(4, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.view != super::table::Table_View::VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - if self.page_size != 0 { - os.write_int32(4, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListTablesRequest { - ListTablesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListTablesRequest| { &m.parent }, - |m: &mut ListTablesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &ListTablesRequest| { &m.view }, - |m: &mut ListTablesRequest| { &mut m.view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTablesRequest| { &m.page_size }, - |m: &mut ListTablesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTablesRequest| { &m.page_token }, - |m: &mut ListTablesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTablesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListTablesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTablesRequest::new) - } -} - -impl ::protobuf::Clear for ListTablesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.view = super::table::Table_View::VIEW_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListTablesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListTablesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListTablesResponse { - // message fields - pub tables: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListTablesResponse { - fn default() -> &'a ListTablesResponse { - ::default_instance() - } -} - -impl ListTablesResponse { - pub fn new() -> ListTablesResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.v2.Table tables = 1; - - - pub fn get_tables(&self) -> &[super::table::Table] { - &self.tables - } - pub fn clear_tables(&mut self) { - self.tables.clear(); - } - - // Param is passed by value, moved - pub fn set_tables(&mut self, v: ::protobuf::RepeatedField) { - self.tables = v; - } - - // Mutable pointer to the field. - pub fn mut_tables(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.tables - } - - // Take field - pub fn take_tables(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.tables, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListTablesResponse { - fn is_initialized(&self) -> bool { - for v in &self.tables { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.tables)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.tables { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.tables { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListTablesResponse { - ListTablesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "tables", - |m: &ListTablesResponse| { &m.tables }, - |m: &mut ListTablesResponse| { &mut m.tables }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTablesResponse| { &m.next_page_token }, - |m: &mut ListTablesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTablesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListTablesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTablesResponse::new) - } -} - -impl ::protobuf::Clear for ListTablesResponse { - fn clear(&mut self) { - self.tables.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListTablesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListTablesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetTableRequest { - // message fields - pub name: ::std::string::String, - pub view: super::table::Table_View, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetTableRequest { - fn default() -> &'a GetTableRequest { - ::default_instance() - } -} - -impl GetTableRequest { - pub fn new() -> GetTableRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Table.View view = 2; - - - pub fn get_view(&self) -> super::table::Table_View { - self.view - } - pub fn clear_view(&mut self) { - self.view = super::table::Table_View::VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: super::table::Table_View) { - self.view = v; - } -} - -impl ::protobuf::Message for GetTableRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.view != super::table::Table_View::VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.view != super::table::Table_View::VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetTableRequest { - GetTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetTableRequest| { &m.name }, - |m: &mut GetTableRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &GetTableRequest| { &m.view }, - |m: &mut GetTableRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetTableRequest::new) - } -} - -impl ::protobuf::Clear for GetTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.view = super::table::Table_View::VIEW_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateTableRequest { - // message fields - pub table: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateTableRequest { - fn default() -> &'a UpdateTableRequest { - ::default_instance() - } -} - -impl UpdateTableRequest { - pub fn new() -> UpdateTableRequest { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.Table table = 1; - - - pub fn get_table(&self) -> &super::table::Table { - self.table.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - pub fn has_table(&self) -> bool { - self.table.is_some() - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: super::table::Table) { - self.table = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut super::table::Table { - if self.table.is_none() { - self.table.set_default(); - } - self.table.as_mut().unwrap() - } - - // Take field - pub fn take_table(&mut self) -> super::table::Table { - self.table.take().unwrap_or_else(|| super::table::Table::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateTableRequest { - fn is_initialized(&self) -> bool { - for v in &self.table { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.table)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.table.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.table.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateTableRequest { - UpdateTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "table", - |m: &UpdateTableRequest| { &m.table }, - |m: &mut UpdateTableRequest| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateTableRequest| { &m.update_mask }, - |m: &mut UpdateTableRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateTableRequest::new) - } -} - -impl ::protobuf::Clear for UpdateTableRequest { - fn clear(&mut self) { - self.table.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateTableMetadata { - // message fields - pub name: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateTableMetadata { - fn default() -> &'a UpdateTableMetadata { - ::default_instance() - } -} - -impl UpdateTableMetadata { - pub fn new() -> UpdateTableMetadata { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for UpdateTableMetadata { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateTableMetadata { - UpdateTableMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &UpdateTableMetadata| { &m.name }, - |m: &mut UpdateTableMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &UpdateTableMetadata| { &m.start_time }, - |m: &mut UpdateTableMetadata| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &UpdateTableMetadata| { &m.end_time }, - |m: &mut UpdateTableMetadata| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateTableMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateTableMetadata::new) - } -} - -impl ::protobuf::Clear for UpdateTableMetadata { - fn clear(&mut self) { - self.name.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateTableMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateTableMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteTableRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteTableRequest { - fn default() -> &'a DeleteTableRequest { - ::default_instance() - } -} - -impl DeleteTableRequest { - pub fn new() -> DeleteTableRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteTableRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteTableRequest { - DeleteTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteTableRequest| { &m.name }, - |m: &mut DeleteTableRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteTableRequest::new) - } -} - -impl ::protobuf::Clear for DeleteTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteTableRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UndeleteTableRequest { - fn default() -> &'a UndeleteTableRequest { - ::default_instance() - } -} - -impl UndeleteTableRequest { - pub fn new() -> UndeleteTableRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for UndeleteTableRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UndeleteTableRequest { - UndeleteTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &UndeleteTableRequest| { &m.name }, - |m: &mut UndeleteTableRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UndeleteTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteTableRequest::new) - } -} - -impl ::protobuf::Clear for UndeleteTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UndeleteTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UndeleteTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UndeleteTableMetadata { - // message fields - pub name: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UndeleteTableMetadata { - fn default() -> &'a UndeleteTableMetadata { - ::default_instance() - } -} - -impl UndeleteTableMetadata { - pub fn new() -> UndeleteTableMetadata { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for UndeleteTableMetadata { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UndeleteTableMetadata { - UndeleteTableMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &UndeleteTableMetadata| { &m.name }, - |m: &mut UndeleteTableMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &UndeleteTableMetadata| { &m.start_time }, - |m: &mut UndeleteTableMetadata| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &UndeleteTableMetadata| { &m.end_time }, - |m: &mut UndeleteTableMetadata| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UndeleteTableMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UndeleteTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UndeleteTableMetadata::new) - } -} - -impl ::protobuf::Clear for UndeleteTableMetadata { - fn clear(&mut self) { - self.name.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UndeleteTableMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UndeleteTableMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ModifyColumnFamiliesRequest { - // message fields - pub name: ::std::string::String, - pub modifications: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ModifyColumnFamiliesRequest { - fn default() -> &'a ModifyColumnFamiliesRequest { - ::default_instance() - } -} - -impl ModifyColumnFamiliesRequest { - pub fn new() -> ModifyColumnFamiliesRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification modifications = 2; - - - pub fn get_modifications(&self) -> &[ModifyColumnFamiliesRequest_Modification] { - &self.modifications - } - pub fn clear_modifications(&mut self) { - self.modifications.clear(); - } - - // Param is passed by value, moved - pub fn set_modifications(&mut self, v: ::protobuf::RepeatedField) { - self.modifications = v; - } - - // Mutable pointer to the field. - pub fn mut_modifications(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.modifications - } - - // Take field - pub fn take_modifications(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.modifications, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ModifyColumnFamiliesRequest { - fn is_initialized(&self) -> bool { - for v in &self.modifications { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.modifications)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.modifications { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.modifications { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ModifyColumnFamiliesRequest { - ModifyColumnFamiliesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ModifyColumnFamiliesRequest| { &m.name }, - |m: &mut ModifyColumnFamiliesRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "modifications", - |m: &ModifyColumnFamiliesRequest| { &m.modifications }, - |m: &mut ModifyColumnFamiliesRequest| { &mut m.modifications }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyColumnFamiliesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ModifyColumnFamiliesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyColumnFamiliesRequest::new) - } -} - -impl ::protobuf::Clear for ModifyColumnFamiliesRequest { - fn clear(&mut self) { - self.name.clear(); - self.modifications.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ModifyColumnFamiliesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ModifyColumnFamiliesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ModifyColumnFamiliesRequest_Modification { - // message fields - pub id: ::std::string::String, - // message oneof groups - pub field_mod: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ModifyColumnFamiliesRequest_Modification { - fn default() -> &'a ModifyColumnFamiliesRequest_Modification { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ModifyColumnFamiliesRequest_Modification_oneof_mod { - create(super::table::ColumnFamily), - update(super::table::ColumnFamily), - drop(bool), -} - -impl ModifyColumnFamiliesRequest_Modification { - pub fn new() -> ModifyColumnFamiliesRequest_Modification { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.ColumnFamily create = 2; - - - pub fn get_create(&self) -> &super::table::ColumnFamily { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_create(&mut self) { - self.field_mod = ::std::option::Option::None; - } - - pub fn has_create(&self) -> bool { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_create(&mut self, v: super::table::ColumnFamily) { - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(v)) - } - - // Mutable pointer to the field. - pub fn mut_create(&mut self) -> &mut super::table::ColumnFamily { - if let ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(_)) = self.field_mod { - } else { - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(super::table::ColumnFamily::new())); - } - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_create(&mut self) -> super::table::ColumnFamily { - if self.has_create() { - match self.field_mod.take() { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(v)) => v, - _ => panic!(), - } - } else { - super::table::ColumnFamily::new() - } - } - - // .google.bigtable.admin.v2.ColumnFamily update = 3; - - - pub fn get_update(&self) -> &super::table::ColumnFamily { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_update(&mut self) { - self.field_mod = ::std::option::Option::None; - } - - pub fn has_update(&self) -> bool { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_update(&mut self, v: super::table::ColumnFamily) { - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(v)) - } - - // Mutable pointer to the field. - pub fn mut_update(&mut self) -> &mut super::table::ColumnFamily { - if let ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(_)) = self.field_mod { - } else { - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(super::table::ColumnFamily::new())); - } - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_update(&mut self) -> super::table::ColumnFamily { - if self.has_update() { - match self.field_mod.take() { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(v)) => v, - _ => panic!(), - } - } else { - super::table::ColumnFamily::new() - } - } - - // bool drop = 4; - - - pub fn get_drop(&self) -> bool { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(v)) => v, - _ => false, - } - } - pub fn clear_drop(&mut self) { - self.field_mod = ::std::option::Option::None; - } - - pub fn has_drop(&self) -> bool { - match self.field_mod { - ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_drop(&mut self, v: bool) { - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(v)) - } -} - -impl ::protobuf::Message for ModifyColumnFamiliesRequest_Modification { - fn is_initialized(&self) -> bool { - if let Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(ref v)) = self.field_mod { - if !v.is_initialized() { - return false; - } - } - if let Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(ref v)) = self.field_mod { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::create(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::update(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_mod = ::std::option::Option::Some(ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(is.read_bool()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if let ::std::option::Option::Some(ref v) = self.field_mod { - match v { - &ModifyColumnFamiliesRequest_Modification_oneof_mod::create(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ModifyColumnFamiliesRequest_Modification_oneof_mod::update(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(v) => { - my_size += 2; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if let ::std::option::Option::Some(ref v) = self.field_mod { - match v { - &ModifyColumnFamiliesRequest_Modification_oneof_mod::create(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ModifyColumnFamiliesRequest_Modification_oneof_mod::update(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ModifyColumnFamiliesRequest_Modification_oneof_mod::drop(v) => { - os.write_bool(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ModifyColumnFamiliesRequest_Modification { - ModifyColumnFamiliesRequest_Modification::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &ModifyColumnFamiliesRequest_Modification| { &m.id }, - |m: &mut ModifyColumnFamiliesRequest_Modification| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::table::ColumnFamily>( - "create", - ModifyColumnFamiliesRequest_Modification::has_create, - ModifyColumnFamiliesRequest_Modification::get_create, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::table::ColumnFamily>( - "update", - ModifyColumnFamiliesRequest_Modification::has_update, - ModifyColumnFamiliesRequest_Modification::get_update, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "drop", - ModifyColumnFamiliesRequest_Modification::has_drop, - ModifyColumnFamiliesRequest_Modification::get_drop, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyColumnFamiliesRequest.Modification", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ModifyColumnFamiliesRequest_Modification { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyColumnFamiliesRequest_Modification::new) - } -} - -impl ::protobuf::Clear for ModifyColumnFamiliesRequest_Modification { - fn clear(&mut self) { - self.id.clear(); - self.field_mod = ::std::option::Option::None; - self.field_mod = ::std::option::Option::None; - self.field_mod = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ModifyColumnFamiliesRequest_Modification { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ModifyColumnFamiliesRequest_Modification { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateConsistencyTokenRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateConsistencyTokenRequest { - fn default() -> &'a GenerateConsistencyTokenRequest { - ::default_instance() - } -} - -impl GenerateConsistencyTokenRequest { - pub fn new() -> GenerateConsistencyTokenRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GenerateConsistencyTokenRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GenerateConsistencyTokenRequest { - GenerateConsistencyTokenRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GenerateConsistencyTokenRequest| { &m.name }, - |m: &mut GenerateConsistencyTokenRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateConsistencyTokenRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GenerateConsistencyTokenRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConsistencyTokenRequest::new) - } -} - -impl ::protobuf::Clear for GenerateConsistencyTokenRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GenerateConsistencyTokenRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GenerateConsistencyTokenRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateConsistencyTokenResponse { - // message fields - pub consistency_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateConsistencyTokenResponse { - fn default() -> &'a GenerateConsistencyTokenResponse { - ::default_instance() - } -} - -impl GenerateConsistencyTokenResponse { - pub fn new() -> GenerateConsistencyTokenResponse { - ::std::default::Default::default() - } - - // string consistency_token = 1; - - - pub fn get_consistency_token(&self) -> &str { - &self.consistency_token - } - pub fn clear_consistency_token(&mut self) { - self.consistency_token.clear(); - } - - // Param is passed by value, moved - pub fn set_consistency_token(&mut self, v: ::std::string::String) { - self.consistency_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consistency_token(&mut self) -> &mut ::std::string::String { - &mut self.consistency_token - } - - // Take field - pub fn take_consistency_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.consistency_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GenerateConsistencyTokenResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consistency_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.consistency_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.consistency_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.consistency_token.is_empty() { - os.write_string(1, &self.consistency_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GenerateConsistencyTokenResponse { - GenerateConsistencyTokenResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consistency_token", - |m: &GenerateConsistencyTokenResponse| { &m.consistency_token }, - |m: &mut GenerateConsistencyTokenResponse| { &mut m.consistency_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateConsistencyTokenResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GenerateConsistencyTokenResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateConsistencyTokenResponse::new) - } -} - -impl ::protobuf::Clear for GenerateConsistencyTokenResponse { - fn clear(&mut self) { - self.consistency_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GenerateConsistencyTokenResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GenerateConsistencyTokenResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckConsistencyRequest { - // message fields - pub name: ::std::string::String, - pub consistency_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckConsistencyRequest { - fn default() -> &'a CheckConsistencyRequest { - ::default_instance() - } -} - -impl CheckConsistencyRequest { - pub fn new() -> CheckConsistencyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string consistency_token = 2; - - - pub fn get_consistency_token(&self) -> &str { - &self.consistency_token - } - pub fn clear_consistency_token(&mut self) { - self.consistency_token.clear(); - } - - // Param is passed by value, moved - pub fn set_consistency_token(&mut self, v: ::std::string::String) { - self.consistency_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consistency_token(&mut self) -> &mut ::std::string::String { - &mut self.consistency_token - } - - // Take field - pub fn take_consistency_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.consistency_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CheckConsistencyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.consistency_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.consistency_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.consistency_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.consistency_token.is_empty() { - os.write_string(2, &self.consistency_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckConsistencyRequest { - CheckConsistencyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CheckConsistencyRequest| { &m.name }, - |m: &mut CheckConsistencyRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "consistency_token", - |m: &CheckConsistencyRequest| { &m.consistency_token }, - |m: &mut CheckConsistencyRequest| { &mut m.consistency_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckConsistencyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckConsistencyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckConsistencyRequest::new) - } -} - -impl ::protobuf::Clear for CheckConsistencyRequest { - fn clear(&mut self) { - self.name.clear(); - self.consistency_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckConsistencyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckConsistencyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckConsistencyResponse { - // message fields - pub consistent: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckConsistencyResponse { - fn default() -> &'a CheckConsistencyResponse { - ::default_instance() - } -} - -impl CheckConsistencyResponse { - pub fn new() -> CheckConsistencyResponse { - ::std::default::Default::default() - } - - // bool consistent = 1; - - - pub fn get_consistent(&self) -> bool { - self.consistent - } - pub fn clear_consistent(&mut self) { - self.consistent = false; - } - - // Param is passed by value, moved - pub fn set_consistent(&mut self, v: bool) { - self.consistent = v; - } -} - -impl ::protobuf::Message for CheckConsistencyResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.consistent = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.consistent != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.consistent != false { - os.write_bool(1, self.consistent)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckConsistencyResponse { - CheckConsistencyResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "consistent", - |m: &CheckConsistencyResponse| { &m.consistent }, - |m: &mut CheckConsistencyResponse| { &mut m.consistent }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckConsistencyResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckConsistencyResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckConsistencyResponse::new) - } -} - -impl ::protobuf::Clear for CheckConsistencyResponse { - fn clear(&mut self) { - self.consistent = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckConsistencyResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckConsistencyResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SnapshotTableRequest { - // message fields - pub name: ::std::string::String, - pub cluster: ::std::string::String, - pub snapshot_id: ::std::string::String, - pub ttl: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SnapshotTableRequest { - fn default() -> &'a SnapshotTableRequest { - ::default_instance() - } -} - -impl SnapshotTableRequest { - pub fn new() -> SnapshotTableRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string cluster = 2; - - - pub fn get_cluster(&self) -> &str { - &self.cluster - } - pub fn clear_cluster(&mut self) { - self.cluster.clear(); - } - - // Param is passed by value, moved - pub fn set_cluster(&mut self, v: ::std::string::String) { - self.cluster = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster(&mut self) -> &mut ::std::string::String { - &mut self.cluster - } - - // Take field - pub fn take_cluster(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cluster, ::std::string::String::new()) - } - - // string snapshot_id = 3; - - - pub fn get_snapshot_id(&self) -> &str { - &self.snapshot_id - } - pub fn clear_snapshot_id(&mut self) { - self.snapshot_id.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshot_id(&mut self, v: ::std::string::String) { - self.snapshot_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_snapshot_id(&mut self) -> &mut ::std::string::String { - &mut self.snapshot_id - } - - // Take field - pub fn take_snapshot_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.snapshot_id, ::std::string::String::new()) - } - - // .google.protobuf.Duration ttl = 4; - - - pub fn get_ttl(&self) -> &::protobuf::well_known_types::Duration { - self.ttl.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_ttl(&mut self) { - self.ttl.clear(); - } - - pub fn has_ttl(&self) -> bool { - self.ttl.is_some() - } - - // Param is passed by value, moved - pub fn set_ttl(&mut self, v: ::protobuf::well_known_types::Duration) { - self.ttl = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ttl(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.ttl.is_none() { - self.ttl.set_default(); - } - self.ttl.as_mut().unwrap() - } - - // Take field - pub fn take_ttl(&mut self) -> ::protobuf::well_known_types::Duration { - self.ttl.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // string description = 5; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for SnapshotTableRequest { - fn is_initialized(&self) -> bool { - for v in &self.ttl { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.snapshot_id)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ttl)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.cluster.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.cluster); - } - if !self.snapshot_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.snapshot_id); - } - if let Some(ref v) = self.ttl.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.description); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.cluster.is_empty() { - os.write_string(2, &self.cluster)?; - } - if !self.snapshot_id.is_empty() { - os.write_string(3, &self.snapshot_id)?; - } - if let Some(ref v) = self.ttl.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.description.is_empty() { - os.write_string(5, &self.description)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SnapshotTableRequest { - SnapshotTableRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &SnapshotTableRequest| { &m.name }, - |m: &mut SnapshotTableRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cluster", - |m: &SnapshotTableRequest| { &m.cluster }, - |m: &mut SnapshotTableRequest| { &mut m.cluster }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "snapshot_id", - |m: &SnapshotTableRequest| { &m.snapshot_id }, - |m: &mut SnapshotTableRequest| { &mut m.snapshot_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "ttl", - |m: &SnapshotTableRequest| { &m.ttl }, - |m: &mut SnapshotTableRequest| { &mut m.ttl }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &SnapshotTableRequest| { &m.description }, - |m: &mut SnapshotTableRequest| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SnapshotTableRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SnapshotTableRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SnapshotTableRequest::new) - } -} - -impl ::protobuf::Clear for SnapshotTableRequest { - fn clear(&mut self) { - self.name.clear(); - self.cluster.clear(); - self.snapshot_id.clear(); - self.ttl.clear(); - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SnapshotTableRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SnapshotTableRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetSnapshotRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetSnapshotRequest { - fn default() -> &'a GetSnapshotRequest { - ::default_instance() - } -} - -impl GetSnapshotRequest { - pub fn new() -> GetSnapshotRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetSnapshotRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetSnapshotRequest { - GetSnapshotRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetSnapshotRequest| { &m.name }, - |m: &mut GetSnapshotRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSnapshotRequest::new) - } -} - -impl ::protobuf::Clear for GetSnapshotRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetSnapshotRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSnapshotsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSnapshotsRequest { - fn default() -> &'a ListSnapshotsRequest { - ::default_instance() - } -} - -impl ListSnapshotsRequest { - pub fn new() -> ListSnapshotsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSnapshotsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSnapshotsRequest { - ListSnapshotsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListSnapshotsRequest| { &m.parent }, - |m: &mut ListSnapshotsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSnapshotsRequest| { &m.page_size }, - |m: &mut ListSnapshotsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSnapshotsRequest| { &m.page_token }, - |m: &mut ListSnapshotsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSnapshotsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSnapshotsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSnapshotsRequest::new) - } -} - -impl ::protobuf::Clear for ListSnapshotsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSnapshotsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSnapshotsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSnapshotsResponse { - // message fields - pub snapshots: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSnapshotsResponse { - fn default() -> &'a ListSnapshotsResponse { - ::default_instance() - } -} - -impl ListSnapshotsResponse { - pub fn new() -> ListSnapshotsResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.v2.Snapshot snapshots = 1; - - - pub fn get_snapshots(&self) -> &[super::table::Snapshot] { - &self.snapshots - } - pub fn clear_snapshots(&mut self) { - self.snapshots.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshots(&mut self, v: ::protobuf::RepeatedField) { - self.snapshots = v; - } - - // Mutable pointer to the field. - pub fn mut_snapshots(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.snapshots - } - - // Take field - pub fn take_snapshots(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.snapshots, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSnapshotsResponse { - fn is_initialized(&self) -> bool { - for v in &self.snapshots { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.snapshots)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.snapshots { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.snapshots { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSnapshotsResponse { - ListSnapshotsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "snapshots", - |m: &ListSnapshotsResponse| { &m.snapshots }, - |m: &mut ListSnapshotsResponse| { &mut m.snapshots }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSnapshotsResponse| { &m.next_page_token }, - |m: &mut ListSnapshotsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSnapshotsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSnapshotsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSnapshotsResponse::new) - } -} - -impl ::protobuf::Clear for ListSnapshotsResponse { - fn clear(&mut self) { - self.snapshots.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSnapshotsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSnapshotsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteSnapshotRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteSnapshotRequest { - fn default() -> &'a DeleteSnapshotRequest { - ::default_instance() - } -} - -impl DeleteSnapshotRequest { - pub fn new() -> DeleteSnapshotRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteSnapshotRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteSnapshotRequest { - DeleteSnapshotRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteSnapshotRequest| { &m.name }, - |m: &mut DeleteSnapshotRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSnapshotRequest::new) - } -} - -impl ::protobuf::Clear for DeleteSnapshotRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteSnapshotRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SnapshotTableMetadata { - // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SnapshotTableMetadata { - fn default() -> &'a SnapshotTableMetadata { - ::default_instance() - } -} - -impl SnapshotTableMetadata { - pub fn new() -> SnapshotTableMetadata { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.SnapshotTableRequest original_request = 1; - - - pub fn get_original_request(&self) -> &SnapshotTableRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); - } - - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } - - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: SnapshotTableRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut SnapshotTableRequest { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> SnapshotTableRequest { - self.original_request.take().unwrap_or_else(|| SnapshotTableRequest::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for SnapshotTableMetadata { - fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.request_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.finish_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SnapshotTableMetadata { - SnapshotTableMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &SnapshotTableMetadata| { &m.original_request }, - |m: &mut SnapshotTableMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &SnapshotTableMetadata| { &m.request_time }, - |m: &mut SnapshotTableMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &SnapshotTableMetadata| { &m.finish_time }, - |m: &mut SnapshotTableMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SnapshotTableMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SnapshotTableMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SnapshotTableMetadata::new) - } -} - -impl ::protobuf::Clear for SnapshotTableMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SnapshotTableMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SnapshotTableMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateTableFromSnapshotMetadata { - // message fields - pub original_request: ::protobuf::SingularPtrField, - pub request_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub finish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotMetadata { - fn default() -> &'a CreateTableFromSnapshotMetadata { - ::default_instance() - } -} - -impl CreateTableFromSnapshotMetadata { - pub fn new() -> CreateTableFromSnapshotMetadata { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1; - - - pub fn get_original_request(&self) -> &CreateTableFromSnapshotRequest { - self.original_request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_original_request(&mut self) { - self.original_request.clear(); - } - - pub fn has_original_request(&self) -> bool { - self.original_request.is_some() - } - - // Param is passed by value, moved - pub fn set_original_request(&mut self, v: CreateTableFromSnapshotRequest) { - self.original_request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_original_request(&mut self) -> &mut CreateTableFromSnapshotRequest { - if self.original_request.is_none() { - self.original_request.set_default(); - } - self.original_request.as_mut().unwrap() - } - - // Take field - pub fn take_original_request(&mut self) -> CreateTableFromSnapshotRequest { - self.original_request.take().unwrap_or_else(|| CreateTableFromSnapshotRequest::new()) - } - - // .google.protobuf.Timestamp request_time = 2; - - - pub fn get_request_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.request_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_request_time(&mut self) { - self.request_time.clear(); - } - - pub fn has_request_time(&self) -> bool { - self.request_time.is_some() - } - - // Param is passed by value, moved - pub fn set_request_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.request_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.request_time.is_none() { - self.request_time.set_default(); - } - self.request_time.as_mut().unwrap() - } - - // Take field - pub fn take_request_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.request_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp finish_time = 3; - - - pub fn get_finish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.finish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_finish_time(&mut self) { - self.finish_time.clear(); - } - - pub fn has_finish_time(&self) -> bool { - self.finish_time.is_some() - } - - // Param is passed by value, moved - pub fn set_finish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.finish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_finish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.finish_time.is_none() { - self.finish_time.set_default(); - } - self.finish_time.as_mut().unwrap() - } - - // Take field - pub fn take_finish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.finish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for CreateTableFromSnapshotMetadata { - fn is_initialized(&self) -> bool { - for v in &self.original_request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.finish_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.original_request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.finish_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.original_request.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.request_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.finish_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.original_request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.request_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.finish_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateTableFromSnapshotMetadata { - CreateTableFromSnapshotMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "original_request", - |m: &CreateTableFromSnapshotMetadata| { &m.original_request }, - |m: &mut CreateTableFromSnapshotMetadata| { &mut m.original_request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "request_time", - |m: &CreateTableFromSnapshotMetadata| { &m.request_time }, - |m: &mut CreateTableFromSnapshotMetadata| { &mut m.request_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "finish_time", - |m: &CreateTableFromSnapshotMetadata| { &m.finish_time }, - |m: &mut CreateTableFromSnapshotMetadata| { &mut m.finish_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateTableFromSnapshotMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateTableFromSnapshotMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateTableFromSnapshotMetadata::new) - } -} - -impl ::protobuf::Clear for CreateTableFromSnapshotMetadata { - fn clear(&mut self) { - self.original_request.clear(); - self.request_time.clear(); - self.finish_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateTableFromSnapshotMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateTableFromSnapshotMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateBackupRequest { - // message fields - pub parent: ::std::string::String, - pub backup_id: ::std::string::String, - pub backup: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateBackupRequest { - fn default() -> &'a CreateBackupRequest { - ::default_instance() - } -} - -impl CreateBackupRequest { - pub fn new() -> CreateBackupRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string backup_id = 2; - - - pub fn get_backup_id(&self) -> &str { - &self.backup_id - } - pub fn clear_backup_id(&mut self) { - self.backup_id.clear(); - } - - // Param is passed by value, moved - pub fn set_backup_id(&mut self, v: ::std::string::String) { - self.backup_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup_id(&mut self) -> &mut ::std::string::String { - &mut self.backup_id - } - - // Take field - pub fn take_backup_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup_id, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Backup backup = 3; - - - pub fn get_backup(&self) -> &super::table::Backup { - self.backup.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } - - pub fn has_backup(&self) -> bool { - self.backup.is_some() - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: super::table::Backup) { - self.backup = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut super::table::Backup { - if self.backup.is_none() { - self.backup.set_default(); - } - self.backup.as_mut().unwrap() - } - - // Take field - pub fn take_backup(&mut self) -> super::table::Backup { - self.backup.take().unwrap_or_else(|| super::table::Backup::new()) - } -} - -impl ::protobuf::Message for CreateBackupRequest { - fn is_initialized(&self) -> bool { - for v in &self.backup { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backup)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.backup_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.backup_id); - } - if let Some(ref v) = self.backup.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.backup_id.is_empty() { - os.write_string(2, &self.backup_id)?; - } - if let Some(ref v) = self.backup.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + os.write_string(1, &self.name)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CreateBackupRequest { - CreateBackupRequest::new() + fn new() -> GenerateConsistencyTokenRequest { + GenerateConsistencyTokenRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateBackupRequest| { &m.parent }, - |m: &mut CreateBackupRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup_id", - |m: &CreateBackupRequest| { &m.backup_id }, - |m: &mut CreateBackupRequest| { &mut m.backup_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backup", - |m: &CreateBackupRequest| { &m.backup }, - |m: &mut CreateBackupRequest| { &mut m.backup }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateBackupRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateBackupRequest::new) + fn default_instance() -> &'static GenerateConsistencyTokenRequest { + static instance: GenerateConsistencyTokenRequest = GenerateConsistencyTokenRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateBackupRequest { - fn clear(&mut self) { - self.parent.clear(); - self.backup_id.clear(); - self.backup.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GenerateConsistencyTokenRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GenerateConsistencyTokenRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateBackupRequest { +impl ::std::fmt::Display for GenerateConsistencyTokenRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GenerateConsistencyTokenRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateBackupMetadata { +/// Response message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GenerateConsistencyTokenResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GenerateConsistencyTokenResponse { // message fields - pub name: ::std::string::String, - pub source_table: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The generated consistency token. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GenerateConsistencyTokenResponse.consistency_token) + pub consistency_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GenerateConsistencyTokenResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateBackupMetadata { - fn default() -> &'a CreateBackupMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a GenerateConsistencyTokenResponse { + fn default() -> &'a GenerateConsistencyTokenResponse { + ::default_instance() } } -impl CreateBackupMetadata { - pub fn new() -> CreateBackupMetadata { +impl GenerateConsistencyTokenResponse { + pub fn new() -> GenerateConsistencyTokenResponse { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consistency_token", + |m: &GenerateConsistencyTokenResponse| { &m.consistency_token }, + |m: &mut GenerateConsistencyTokenResponse| { &mut m.consistency_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GenerateConsistencyTokenResponse", + fields, + oneofs, + ) } +} - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } +impl ::protobuf::Message for GenerateConsistencyTokenResponse { + const NAME: &'static str = "GenerateConsistencyTokenResponse"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.consistency_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // string source_table = 2; - - - pub fn get_source_table(&self) -> &str { - &self.source_table - } - pub fn clear_source_table(&mut self) { - self.source_table.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.consistency_token.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.consistency_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_source_table(&mut self, v: ::std::string::String) { - self.source_table = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.consistency_token.is_empty() { + os.write_string(1, &self.consistency_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_table(&mut self) -> &mut ::std::string::String { - &mut self.source_table + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_source_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_table, ::std::string::String::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // .google.protobuf.Timestamp start_time = 3; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); + fn new() -> GenerateConsistencyTokenResponse { + GenerateConsistencyTokenResponse::new() } - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + fn clear(&mut self) { + self.consistency_token.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + fn default_instance() -> &'static GenerateConsistencyTokenResponse { + static instance: GenerateConsistencyTokenResponse = GenerateConsistencyTokenResponse { + consistency_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() +impl ::protobuf::MessageFull for GenerateConsistencyTokenResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GenerateConsistencyTokenResponse").unwrap()).clone() } +} - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) +impl ::std::fmt::Display for GenerateConsistencyTokenResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.protobuf.Timestamp end_time = 4; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } +impl ::protobuf::reflect::ProtobufValue for GenerateConsistencyTokenResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CheckConsistencyRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CheckConsistencyRequest { + // message fields + /// The unique name of the Table for which to check replication consistency. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CheckConsistencyRequest.name) + pub name: ::std::string::String, + /// The token created using GenerateConsistencyToken for the Table. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CheckConsistencyRequest.consistency_token) + pub consistency_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CheckConsistencyRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a CheckConsistencyRequest { + fn default() -> &'a CheckConsistencyRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() +impl CheckConsistencyRequest { + pub fn new() -> CheckConsistencyRequest { + ::std::default::Default::default() } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &CheckConsistencyRequest| { &m.name }, + |m: &mut CheckConsistencyRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consistency_token", + |m: &CheckConsistencyRequest| { &m.consistency_token }, + |m: &mut CheckConsistencyRequest| { &mut m.consistency_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckConsistencyRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateBackupMetadata { +impl ::protobuf::Message for CheckConsistencyRequest { + const NAME: &'static str = "CheckConsistencyRequest"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_table)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 18 => { + self.consistency_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7024,253 +2216,132 @@ impl ::protobuf::Message for CreateBackupMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if !self.source_table.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source_table); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.consistency_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.consistency_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if !self.source_table.is_empty() { - os.write_string(2, &self.source_table)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.consistency_token.is_empty() { + os.write_string(2, &self.consistency_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CreateBackupMetadata { - CreateBackupMetadata::new() + fn new() -> CheckConsistencyRequest { + CheckConsistencyRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CreateBackupMetadata| { &m.name }, - |m: &mut CreateBackupMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_table", - |m: &CreateBackupMetadata| { &m.source_table }, - |m: &mut CreateBackupMetadata| { &mut m.source_table }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &CreateBackupMetadata| { &m.start_time }, - |m: &mut CreateBackupMetadata| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &CreateBackupMetadata| { &m.end_time }, - |m: &mut CreateBackupMetadata| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateBackupMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.consistency_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateBackupMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateBackupMetadata::new) + fn default_instance() -> &'static CheckConsistencyRequest { + static instance: CheckConsistencyRequest = CheckConsistencyRequest { + name: ::std::string::String::new(), + consistency_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateBackupMetadata { - fn clear(&mut self) { - self.name.clear(); - self.source_table.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CheckConsistencyRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckConsistencyRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateBackupMetadata { +impl ::std::fmt::Display for CheckConsistencyRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateBackupMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CheckConsistencyRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct UpdateBackupRequest { +/// Response message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CheckConsistencyResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CheckConsistencyResponse { // message fields - pub backup: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// True only if the token is consistent. A token is consistent if replication + /// has caught up with the restrictions specified in the request. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CheckConsistencyResponse.consistent) + pub consistent: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CheckConsistencyResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a UpdateBackupRequest { - fn default() -> &'a UpdateBackupRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a CheckConsistencyResponse { + fn default() -> &'a CheckConsistencyResponse { + ::default_instance() } } -impl UpdateBackupRequest { - pub fn new() -> UpdateBackupRequest { +impl CheckConsistencyResponse { + pub fn new() -> CheckConsistencyResponse { ::std::default::Default::default() } - // .google.bigtable.admin.v2.Backup backup = 1; - - - pub fn get_backup(&self) -> &super::table::Backup { - self.backup.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } - - pub fn has_backup(&self) -> bool { - self.backup.is_some() - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: super::table::Backup) { - self.backup = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut super::table::Backup { - if self.backup.is_none() { - self.backup.set_default(); - } - self.backup.as_mut().unwrap() - } - - // Take field - pub fn take_backup(&mut self) -> super::table::Backup { - self.backup.take().unwrap_or_else(|| super::table::Backup::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "consistent", + |m: &CheckConsistencyResponse| { &m.consistent }, + |m: &mut CheckConsistencyResponse| { &mut m.consistent }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckConsistencyResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateBackupRequest { +impl ::protobuf::Message for CheckConsistencyResponse { + const NAME: &'static str = "CheckConsistencyResponse"; + fn is_initialized(&self) -> bool { - for v in &self.backup { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backup)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.consistent = is.read_bool()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7279,175 +2350,182 @@ impl ::protobuf::Message for UpdateBackupRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.backup.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.consistent != false { + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.backup.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.consistent != false { + os.write_bool(1, self.consistent)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> UpdateBackupRequest { - UpdateBackupRequest::new() + fn new() -> CheckConsistencyResponse { + CheckConsistencyResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backup", - |m: &UpdateBackupRequest| { &m.backup }, - |m: &mut UpdateBackupRequest| { &mut m.backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateBackupRequest| { &m.update_mask }, - |m: &mut UpdateBackupRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateBackupRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.consistent = false; + self.special_fields.clear(); } - fn default_instance() -> &'static UpdateBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateBackupRequest::new) + fn default_instance() -> &'static CheckConsistencyResponse { + static instance: CheckConsistencyResponse = CheckConsistencyResponse { + consistent: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateBackupRequest { - fn clear(&mut self) { - self.backup.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CheckConsistencyResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckConsistencyResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateBackupRequest { +impl ::std::fmt::Display for CheckConsistencyResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetBackupRequest { +impl ::protobuf::reflect::ProtobufValue for CheckConsistencyResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.SnapshotTableRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct SnapshotTableRequest { // message fields + /// The unique name of the table to have the snapshot taken. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableRequest.name) pub name: ::std::string::String, + /// The name of the cluster where the snapshot will be created in. + /// Values are of the form + /// `projects//instances//clusters/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableRequest.cluster) + pub cluster: ::std::string::String, + /// 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//instances//clusters//snapshots/mysnapshot`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableRequest.snapshot_id) + pub snapshot_id: ::std::string::String, + /// The amount of time that the new snapshot can stay active after it is + /// created. Once 'ttl' expires, the snapshot will get deleted. The maximum + /// amount of time a snapshot can stay active is 7 days. If 'ttl' is not + /// specified, the default value of 24 hours will be used. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableRequest.ttl) + pub ttl: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// Description of the snapshot. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableRequest.description) + pub description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.SnapshotTableRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a GetBackupRequest { - fn default() -> &'a GetBackupRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a SnapshotTableRequest { + fn default() -> &'a SnapshotTableRequest { + ::default_instance() } } -impl GetBackupRequest { - pub fn new() -> GetBackupRequest { +impl SnapshotTableRequest { + pub fn new() -> SnapshotTableRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &SnapshotTableRequest| { &m.name }, + |m: &mut SnapshotTableRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cluster", + |m: &SnapshotTableRequest| { &m.cluster }, + |m: &mut SnapshotTableRequest| { &mut m.cluster }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "snapshot_id", + |m: &SnapshotTableRequest| { &m.snapshot_id }, + |m: &mut SnapshotTableRequest| { &mut m.snapshot_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "ttl", + |m: &SnapshotTableRequest| { &m.ttl }, + |m: &mut SnapshotTableRequest| { &mut m.ttl }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &SnapshotTableRequest| { &m.description }, + |m: &mut SnapshotTableRequest| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SnapshotTableRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for GetBackupRequest { +impl ::protobuf::Message for SnapshotTableRequest { + const NAME: &'static str = "SnapshotTableRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.cluster = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 26 => { + self.snapshot_id = is.read_string()?; + }, + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.ttl)?; + }, + 42 => { + self.description = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7456,157 +2534,163 @@ impl ::protobuf::Message for GetBackupRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.cluster.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.cluster); + } + if !self.snapshot_id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.snapshot_id); + } + if let Some(v) = self.ttl.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.description); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + if !self.cluster.is_empty() { + os.write_string(2, &self.cluster)?; + } + if !self.snapshot_id.is_empty() { + os.write_string(3, &self.snapshot_id)?; + } + if let Some(v) = self.ttl.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + if !self.description.is_empty() { + os.write_string(5, &self.description)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetBackupRequest { - GetBackupRequest::new() + fn new() -> SnapshotTableRequest { + SnapshotTableRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetBackupRequest| { &m.name }, - |m: &mut GetBackupRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetBackupRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.cluster.clear(); + self.snapshot_id.clear(); + self.ttl.clear(); + self.description.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static GetBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetBackupRequest::new) + fn default_instance() -> &'static SnapshotTableRequest { + static instance: SnapshotTableRequest = SnapshotTableRequest { + name: ::std::string::String::new(), + cluster: ::std::string::String::new(), + snapshot_id: ::std::string::String::new(), + ttl: ::protobuf::MessageField::none(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetBackupRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SnapshotTableRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SnapshotTableRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetBackupRequest { +impl ::std::fmt::Display for SnapshotTableRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for GetBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteBackupRequest { +impl ::protobuf::reflect::ProtobufValue for SnapshotTableRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GetSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetSnapshotRequest { // message fields + /// The unique name of the requested snapshot. + /// Values are of the form + /// `projects//instances//clusters//snapshots/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GetSnapshotRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GetSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DeleteBackupRequest { - fn default() -> &'a DeleteBackupRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetSnapshotRequest { + fn default() -> &'a GetSnapshotRequest { + ::default_instance() } } -impl DeleteBackupRequest { - pub fn new() -> DeleteBackupRequest { +impl GetSnapshotRequest { + pub fn new() -> GetSnapshotRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetSnapshotRequest| { &m.name }, + |m: &mut GetSnapshotRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetSnapshotRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for DeleteBackupRequest { +impl ::protobuf::Message for GetSnapshotRequest { + const NAME: &'static str = "GetSnapshotRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7615,270 +2699,155 @@ impl ::protobuf::Message for DeleteBackupRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteBackupRequest { - DeleteBackupRequest::new() + fn new() -> GetSnapshotRequest { + GetSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteBackupRequest| { &m.name }, - |m: &mut DeleteBackupRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteBackupRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DeleteBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteBackupRequest::new) + fn default_instance() -> &'static GetSnapshotRequest { + static instance: GetSnapshotRequest = GetSnapshotRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteBackupRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteBackupRequest { +impl ::std::fmt::Display for GetSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DeleteBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupsRequest { +impl ::protobuf::reflect::ProtobufValue for GetSnapshotRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListSnapshotsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListSnapshotsRequest { // message fields + /// The unique name of the cluster for which snapshots should be listed. + /// Values are of the form + /// `projects//instances//clusters/`. + /// Use ` = '-'` to list snapshots for all clusters in an instance, + /// e.g., `projects//instances//clusters/-`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListSnapshotsRequest.parent) pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub order_by: ::std::string::String, + /// The maximum number of snapshots to return per page. + /// CURRENTLY UNIMPLEMENTED AND IGNORED. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListSnapshotsRequest.page_size) pub page_size: i32, + /// The value of `next_page_token` returned by a previous call. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListSnapshotsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListSnapshotsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListBackupsRequest { - fn default() -> &'a ListBackupsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListSnapshotsRequest { + fn default() -> &'a ListSnapshotsRequest { + ::default_instance() } } -impl ListBackupsRequest { - pub fn new() -> ListBackupsRequest { +impl ListSnapshotsRequest { + pub fn new() -> ListSnapshotsRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string filter = 2; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // string order_by = 3; - - - pub fn get_order_by(&self) -> &str { - &self.order_by - } - pub fn clear_order_by(&mut self) { - self.order_by.clear(); - } - - // Param is passed by value, moved - pub fn set_order_by(&mut self, v: ::std::string::String) { - self.order_by = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_order_by(&mut self) -> &mut ::std::string::String { - &mut self.order_by - } - - // Take field - pub fn take_order_by(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.order_by, ::std::string::String::new()) - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListSnapshotsRequest| { &m.parent }, + |m: &mut ListSnapshotsRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListSnapshotsRequest| { &m.page_size }, + |m: &mut ListSnapshotsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListSnapshotsRequest| { &m.page_token }, + |m: &mut ListSnapshotsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSnapshotsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListBackupsRequest { +impl ::protobuf::Message for ListSnapshotsRequest { + const NAME: &'static str = "ListSnapshotsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.order_by)?; + 26 => { + self.page_token = is.read_string()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7887,239 +2856,157 @@ impl ::protobuf::Message for ListBackupsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filter); - } - if !self.order_by.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.order_by); - } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(4, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); + my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } - if !self.filter.is_empty() { - os.write_string(2, &self.filter)?; - } - if !self.order_by.is_empty() { - os.write_string(3, &self.order_by)?; - } if self.page_size != 0 { - os.write_int32(4, self.page_size)?; + os.write_int32(2, self.page_size)?; } if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn new() -> ListBackupsRequest { - ListBackupsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListBackupsRequest| { &m.parent }, - |m: &mut ListBackupsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListBackupsRequest| { &m.filter }, - |m: &mut ListBackupsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "order_by", - |m: &ListBackupsRequest| { &m.order_by }, - |m: &mut ListBackupsRequest| { &mut m.order_by }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListBackupsRequest| { &m.page_size }, - |m: &mut ListBackupsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListBackupsRequest| { &m.page_token }, - |m: &mut ListBackupsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupsRequest", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static ListBackupsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupsRequest::new) + fn new() -> ListSnapshotsRequest { + ListSnapshotsRequest::new() } -} -impl ::protobuf::Clear for ListBackupsRequest { fn clear(&mut self) { self.parent.clear(); - self.filter.clear(); - self.order_by.clear(); self.page_size = 0; self.page_token.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ListSnapshotsRequest { + static instance: ListSnapshotsRequest = ListSnapshotsRequest { + parent: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for ListBackupsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) +impl ::protobuf::MessageFull for ListSnapshotsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSnapshotsRequest").unwrap()).clone() } } -impl ::protobuf::reflect::ProtobufValue for ListBackupsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::std::fmt::Display for ListSnapshotsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupsResponse { +impl ::protobuf::reflect::ProtobufValue for ListSnapshotsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Response message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ListSnapshotsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListSnapshotsResponse { // message fields - pub backups: ::protobuf::RepeatedField, + /// The snapshots present in the requested cluster. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListSnapshotsResponse.snapshots) + pub snapshots: ::std::vec::Vec, + /// Set if not all snapshots could be returned in a single response. + /// Pass this value to `page_token` in another request to get the next + /// page of results. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ListSnapshotsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ListSnapshotsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListBackupsResponse { - fn default() -> &'a ListBackupsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListSnapshotsResponse { + fn default() -> &'a ListSnapshotsResponse { + ::default_instance() } } -impl ListBackupsResponse { - pub fn new() -> ListBackupsResponse { +impl ListSnapshotsResponse { + pub fn new() -> ListSnapshotsResponse { ::std::default::Default::default() } - // repeated .google.bigtable.admin.v2.Backup backups = 1; - - - pub fn get_backups(&self) -> &[super::table::Backup] { - &self.backups - } - pub fn clear_backups(&mut self) { - self.backups.clear(); - } - - // Param is passed by value, moved - pub fn set_backups(&mut self, v: ::protobuf::RepeatedField) { - self.backups = v; - } - - // Mutable pointer to the field. - pub fn mut_backups(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.backups - } - - // Take field - pub fn take_backups(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.backups, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "snapshots", + |m: &ListSnapshotsResponse| { &m.snapshots }, + |m: &mut ListSnapshotsResponse| { &mut m.snapshots }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListSnapshotsResponse| { &m.next_page_token }, + |m: &mut ListSnapshotsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSnapshotsResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListBackupsResponse { +impl ::protobuf::Message for ListSnapshotsResponse { + const NAME: &'static str = "ListSnapshotsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.backups { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.backups)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.snapshots.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -8128,274 +3015,290 @@ impl ::protobuf::Message for ListBackupsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.backups { + for value in &self.snapshots { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.backups { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.snapshots { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBackupsResponse { - ListBackupsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backups", - |m: &ListBackupsResponse| { &m.backups }, - |m: &mut ListBackupsResponse| { &mut m.backups }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListBackupsResponse| { &m.next_page_token }, - |m: &mut ListBackupsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupsResponse", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static ListBackupsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupsResponse::new) + fn new() -> ListSnapshotsResponse { + ListSnapshotsResponse::new() } -} -impl ::protobuf::Clear for ListBackupsResponse { fn clear(&mut self) { - self.backups.clear(); + self.snapshots.clear(); self.next_page_token.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ListSnapshotsResponse { + static instance: ListSnapshotsResponse = ListSnapshotsResponse { + snapshots: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for ListBackupsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) +impl ::protobuf::MessageFull for ListSnapshotsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSnapshotsResponse").unwrap()).clone() } } -impl ::protobuf::reflect::ProtobufValue for ListBackupsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::std::fmt::Display for ListSnapshotsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -#[derive(PartialEq,Clone,Default)] -pub struct CopyBackupRequest { +impl ::protobuf::reflect::ProtobufValue for ListSnapshotsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request message for +/// [google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot] +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.DeleteSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteSnapshotRequest { // message fields - pub parent: ::std::string::String, - pub backup_id: ::std::string::String, - pub source_backup: ::std::string::String, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The unique name of the snapshot to be deleted. + /// Values are of the form + /// `projects//instances//clusters//snapshots/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.DeleteSnapshotRequest.name) + pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.DeleteSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CopyBackupRequest { - fn default() -> &'a CopyBackupRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeleteSnapshotRequest { + fn default() -> &'a DeleteSnapshotRequest { + ::default_instance() } } -impl CopyBackupRequest { - pub fn new() -> CopyBackupRequest { +impl DeleteSnapshotRequest { + pub fn new() -> DeleteSnapshotRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteSnapshotRequest| { &m.name }, + |m: &mut DeleteSnapshotRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteSnapshotRequest", + fields, + oneofs, + ) } +} - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } +impl ::protobuf::Message for DeleteSnapshotRequest { + const NAME: &'static str = "DeleteSnapshotRequest"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // string backup_id = 2; - - - pub fn get_backup_id(&self) -> &str { - &self.backup_id - } - pub fn clear_backup_id(&mut self) { - self.backup_id.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_backup_id(&mut self, v: ::std::string::String) { - self.backup_id = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup_id(&mut self) -> &mut ::std::string::String { - &mut self.backup_id + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_backup_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup_id, ::std::string::String::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // string source_backup = 3; - - - pub fn get_source_backup(&self) -> &str { - &self.source_backup - } - pub fn clear_source_backup(&mut self) { - self.source_backup.clear(); + fn new() -> DeleteSnapshotRequest { + DeleteSnapshotRequest::new() } - // Param is passed by value, moved - pub fn set_source_backup(&mut self, v: ::std::string::String) { - self.source_backup = v; + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup(&mut self) -> &mut ::std::string::String { - &mut self.source_backup + fn default_instance() -> &'static DeleteSnapshotRequest { + static instance: DeleteSnapshotRequest = DeleteSnapshotRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_source_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_backup, ::std::string::String::new()) +impl ::protobuf::MessageFull for DeleteSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteSnapshotRequest").unwrap()).clone() } +} - // .google.protobuf.Timestamp expire_time = 4; - - - pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expire_time(&mut self) { - self.expire_time.clear(); +impl ::std::fmt::Display for DeleteSnapshotRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - pub fn has_expire_time(&self) -> bool { - self.expire_time.is_some() - } +impl ::protobuf::reflect::ProtobufValue for DeleteSnapshotRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Param is passed by value, moved - pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expire_time = ::protobuf::SingularPtrField::some(v); +/// The metadata for the Operation returned by SnapshotTable. +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.SnapshotTableMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct SnapshotTableMetadata { + // message fields + /// The request that prompted the initiation of this SnapshotTable operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.SnapshotTableMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.SnapshotTableMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a SnapshotTableMetadata { + fn default() -> &'a SnapshotTableMetadata { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expire_time.is_none() { - self.expire_time.set_default(); - } - self.expire_time.as_mut().unwrap() +impl SnapshotTableMetadata { + pub fn new() -> SnapshotTableMetadata { + ::std::default::Default::default() } - // Take field - pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, SnapshotTableRequest>( + "original_request", + |m: &SnapshotTableMetadata| { &m.original_request }, + |m: &mut SnapshotTableMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &SnapshotTableMetadata| { &m.request_time }, + |m: &mut SnapshotTableMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &SnapshotTableMetadata| { &m.finish_time }, + |m: &mut SnapshotTableMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SnapshotTableMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CopyBackupRequest { +impl ::protobuf::Message for SnapshotTableMetadata { + const NAME: &'static str = "SnapshotTableMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.expire_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup_id)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_backup)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -8404,280 +3307,169 @@ impl ::protobuf::Message for CopyBackupRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.backup_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.backup_id); + if let Some(v) = self.original_request.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.source_backup.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.source_backup); + if let Some(v) = self.request_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.expire_time.as_ref() { + if let Some(v) = self.finish_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if !self.backup_id.is_empty() { - os.write_string(2, &self.backup_id)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if !self.source_backup.is_empty() { - os.write_string(3, &self.source_backup)?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - if let Some(ref v) = self.expire_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CopyBackupRequest { - CopyBackupRequest::new() + fn new() -> SnapshotTableMetadata { + SnapshotTableMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CopyBackupRequest| { &m.parent }, - |m: &mut CopyBackupRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup_id", - |m: &CopyBackupRequest| { &m.backup_id }, - |m: &mut CopyBackupRequest| { &mut m.backup_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_backup", - |m: &CopyBackupRequest| { &m.source_backup }, - |m: &mut CopyBackupRequest| { &mut m.source_backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expire_time", - |m: &CopyBackupRequest| { &m.expire_time }, - |m: &mut CopyBackupRequest| { &mut m.expire_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyBackupRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CopyBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyBackupRequest::new) + fn default_instance() -> &'static SnapshotTableMetadata { + static instance: SnapshotTableMetadata = SnapshotTableMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CopyBackupRequest { - fn clear(&mut self) { - self.parent.clear(); - self.backup_id.clear(); - self.source_backup.clear(); - self.expire_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SnapshotTableMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SnapshotTableMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CopyBackupRequest { +impl ::std::fmt::Display for SnapshotTableMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CopyBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for SnapshotTableMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CopyBackupMetadata { +/// The metadata for the Operation returned by CreateTableFromSnapshot. +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateTableFromSnapshotMetadata { // message fields - pub name: ::std::string::String, - pub source_backup_info: ::protobuf::SingularPtrField, - pub progress: ::protobuf::SingularPtrField, + /// The request that prompted the initiation of this CreateTableFromSnapshot + /// operation. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.original_request) + pub original_request: ::protobuf::MessageField, + /// The time at which the original request was received. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.request_time) + pub request_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which the operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.finish_time) + pub finish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.CreateTableFromSnapshotMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CopyBackupMetadata { - fn default() -> &'a CopyBackupMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateTableFromSnapshotMetadata { + fn default() -> &'a CreateTableFromSnapshotMetadata { + ::default_instance() } } -impl CopyBackupMetadata { - pub fn new() -> CopyBackupMetadata { +impl CreateTableFromSnapshotMetadata { + pub fn new() -> CreateTableFromSnapshotMetadata { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; - - - pub fn get_source_backup_info(&self) -> &super::table::BackupInfo { - self.source_backup_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source_backup_info(&mut self) { - self.source_backup_info.clear(); - } - - pub fn has_source_backup_info(&self) -> bool { - self.source_backup_info.is_some() - } - - // Param is passed by value, moved - pub fn set_source_backup_info(&mut self, v: super::table::BackupInfo) { - self.source_backup_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup_info(&mut self) -> &mut super::table::BackupInfo { - if self.source_backup_info.is_none() { - self.source_backup_info.set_default(); - } - self.source_backup_info.as_mut().unwrap() - } - - // Take field - pub fn take_source_backup_info(&mut self) -> super::table::BackupInfo { - self.source_backup_info.take().unwrap_or_else(|| super::table::BackupInfo::new()) - } - - // .google.bigtable.admin.v2.OperationProgress progress = 3; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CreateTableFromSnapshotRequest>( + "original_request", + |m: &CreateTableFromSnapshotMetadata| { &m.original_request }, + |m: &mut CreateTableFromSnapshotMetadata| { &mut m.original_request }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "request_time", + |m: &CreateTableFromSnapshotMetadata| { &m.request_time }, + |m: &mut CreateTableFromSnapshotMetadata| { &mut m.request_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "finish_time", + |m: &CreateTableFromSnapshotMetadata| { &m.finish_time }, + |m: &mut CreateTableFromSnapshotMetadata| { &mut m.finish_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateTableFromSnapshotMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CopyBackupMetadata { +impl ::protobuf::Message for CreateTableFromSnapshotMetadata { + const NAME: &'static str = "CreateTableFromSnapshotMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.source_backup_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.original_request)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_backup_info)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.request_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.finish_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -8686,516 +3478,313 @@ impl ::protobuf::Message for CopyBackupMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); + if let Some(v) = self.original_request.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.source_backup_info.as_ref() { + if let Some(v) = self.request_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.progress.as_ref() { + if let Some(v) = self.finish_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.original_request.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.source_backup_info.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.request_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.finish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CopyBackupMetadata { - CopyBackupMetadata::new() + fn new() -> CreateTableFromSnapshotMetadata { + CreateTableFromSnapshotMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CopyBackupMetadata| { &m.name }, - |m: &mut CopyBackupMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source_backup_info", - |m: &CopyBackupMetadata| { &m.source_backup_info }, - |m: &mut CopyBackupMetadata| { &mut m.source_backup_info }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &CopyBackupMetadata| { &m.progress }, - |m: &mut CopyBackupMetadata| { &mut m.progress }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyBackupMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.original_request.clear(); + self.request_time.clear(); + self.finish_time.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CopyBackupMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyBackupMetadata::new) + fn default_instance() -> &'static CreateTableFromSnapshotMetadata { + static instance: CreateTableFromSnapshotMetadata = CreateTableFromSnapshotMetadata { + original_request: ::protobuf::MessageField::none(), + request_time: ::protobuf::MessageField::none(), + finish_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CopyBackupMetadata { - fn clear(&mut self) { - self.name.clear(); - self.source_backup_info.clear(); - self.progress.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateTableFromSnapshotMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateTableFromSnapshotMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CopyBackupMetadata { +impl ::std::fmt::Display for CreateTableFromSnapshotMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CopyBackupMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CreateTableFromSnapshotMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n3google/bigtable/admin/v2/bigtable_table_admin.proto\x12\x18google.big\ - table.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/cli\ - ent.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resou\ - rce.proto\x1a%google/bigtable/admin/v2/common.proto\x1a$google/bigtable/\ - admin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle\ - /iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoog\ - le/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20goo\ - gle/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\ - \xca\x01\n\x13RestoreTableRequest\x12E\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB-\xfaA'\n%bigtableadmin.googleapis.com/Instance\xe0A\x02\x12\ - \x1e\n\x08table_id\x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12B\n\ - \x06backup\x18\x03\x20\x01(\tH\0R\x06backupB(\xfaA%\n#bigtableadmin.goog\ - leapis.com/BackupB\x08\n\x06source\"\xdc\x02\n\x14RestoreTableMetadata\ - \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12L\n\x0bsource_type\x18\ - \x02\x20\x01(\x0e2+.google.bigtable.admin.v2.RestoreSourceTypeR\nsourceT\ - ype\x12G\n\x0bbackup_info\x18\x03\x20\x01(\x0b2$.google.bigtable.admin.v\ - 2.BackupInfoH\0R\nbackupInfo\x12A\n\x1doptimize_table_operation_name\x18\ - \x04\x20\x01(\tR\x1aoptimizeTableOperationName\x12G\n\x08progress\x18\ - \x05\x20\x01(\x0b2+.google.bigtable.admin.v2.OperationProgressR\x08progr\ - essB\r\n\x0bsource_info\"|\n\x1dOptimizeRestoredTableMetadata\x12\x12\n\ - \x04name\x18\x01\x20\x01(\tR\x04name\x12G\n\x08progress\x18\x02\x20\x01(\ - \x0b2+.google.bigtable.admin.v2.OperationProgressR\x08progress\"\xad\x02\ - \n\x12CreateTableRequest\x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ - -\xfaA'\n%bigtableadmin.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08ta\ - ble_id\x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12:\n\x05table\x18\ - \x03\x20\x01(\x0b2\x1f.google.bigtable.admin.v2.TableR\x05tableB\x03\xe0\ - A\x02\x12Y\n\x0einitial_splits\x18\x04\x20\x03(\x0b22.google.bigtable.ad\ - min.v2.CreateTableRequest.SplitR\rinitialSplits\x1a\x19\n\x05Split\x12\ - \x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\"\xdf\x01\n\x1eCreateTableFro\ - mSnapshotRequest\x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB-\xfaA'\ - \n%bigtableadmin.googleapis.com/Instance\xe0A\x02\x12\x1e\n\x08table_id\ - \x18\x02\x20\x01(\tR\x07tableIdB\x03\xe0A\x02\x12V\n\x0fsource_snapshot\ - \x18\x03\x20\x01(\tR\x0esourceSnapshotB-\xfaA'\n%bigtableadmin.googleapi\ - s.com/Snapshot\xe0A\x02\"\xc5\x01\n\x13DropRowRangeRequest\x12>\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB*\xfaA$\n\"bigtableadmin.googleapis.com/Ta\ - ble\xe0A\x02\x12&\n\x0erow_key_prefix\x18\x02\x20\x01(\x0cH\0R\x0crowKey\ - Prefix\x12<\n\x1adelete_all_data_from_table\x18\x03\x20\x01(\x08H\0R\x16\ - deleteAllDataFromTableB\x08\n\x06target\"\xd0\x01\n\x11ListTablesRequest\ - \x12E\n\x06parent\x18\x01\x20\x01(\tR\x06parentB-\xfaA'\n%bigtableadmin.\ - googleapis.com/Instance\xe0A\x02\x128\n\x04view\x18\x02\x20\x01(\x0e2$.g\ - oogle.bigtable.admin.v2.Table.ViewR\x04view\x12\x1b\n\tpage_size\x18\x04\ - \x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpa\ - geToken\"u\n\x12ListTablesResponse\x127\n\x06tables\x18\x01\x20\x03(\x0b\ - 2\x1f.google.bigtable.admin.v2.TableR\x06tables\x12&\n\x0fnext_page_toke\ - n\x18\x02\x20\x01(\tR\rnextPageToken\"\x8b\x01\n\x0fGetTableRequest\x12>\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB*\xfaA$\n\"bigtableadmin.googleap\ - is.com/Table\xe0A\x02\x128\n\x04view\x18\x02\x20\x01(\x0e2$.google.bigta\ - ble.admin.v2.Table.ViewR\x04view\"\x92\x01\n\x12UpdateTableRequest\x12:\ - \n\x05table\x18\x01\x20\x01(\x0b2\x1f.google.bigtable.admin.v2.TableR\ - \x05tableB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.\ - google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"\x9b\x01\n\x13Upda\ - teTableMetadata\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x129\n\nst\ - art_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\ - \x125\n\x08end_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x07endTime\"T\n\x12DeleteTableRequest\x12>\n\x04name\x18\x01\x20\x01(\t\ - R\x04nameB*\xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\"V\n\ - \x14UndeleteTableRequest\x12>\n\x04name\x18\x01\x20\x01(\tR\x04nameB*\ - \xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\"\x9d\x01\n\x15Und\ - eleteTableMetadata\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x129\n\ - \nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstart\ - Time\x125\n\x08end_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampR\x07endTime\"\x8e\x03\n\x1bModifyColumnFamiliesRequest\x12>\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB*\xfaA$\n\"bigtableadmin.googleapis.com/Ta\ - ble\xe0A\x02\x12m\n\rmodifications\x18\x02\x20\x03(\x0b2B.google.bigtabl\ - e.admin.v2.ModifyColumnFamiliesRequest.ModificationR\rmodificationsB\x03\ - \xe0A\x02\x1a\xbf\x01\n\x0cModification\x12\x0e\n\x02id\x18\x01\x20\x01(\ - \tR\x02id\x12@\n\x06create\x18\x02\x20\x01(\x0b2&.google.bigtable.admin.\ - v2.ColumnFamilyH\0R\x06create\x12@\n\x06update\x18\x03\x20\x01(\x0b2&.go\ - ogle.bigtable.admin.v2.ColumnFamilyH\0R\x06update\x12\x14\n\x04drop\x18\ - \x04\x20\x01(\x08H\0R\x04dropB\x05\n\x03mod\"a\n\x1fGenerateConsistencyT\ - okenRequest\x12>\n\x04name\x18\x01\x20\x01(\tR\x04nameB*\xfaA$\n\"bigtab\ - leadmin.googleapis.com/Table\xe0A\x02\"O\n\x20GenerateConsistencyTokenRe\ - sponse\x12+\n\x11consistency_token\x18\x01\x20\x01(\tR\x10consistencyTok\ - en\"\x8b\x01\n\x17CheckConsistencyRequest\x12>\n\x04name\x18\x01\x20\x01\ - (\tR\x04nameB*\xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\x120\ - \n\x11consistency_token\x18\x02\x20\x01(\tR\x10consistencyTokenB\x03\xe0\ - A\x02\":\n\x18CheckConsistencyResponse\x12\x1e\n\nconsistent\x18\x01\x20\ - \x01(\x08R\nconsistent\"\x93\x02\n\x14SnapshotTableRequest\x12>\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB*\xfaA$\n\"bigtableadmin.googleapis.com/Ta\ - ble\xe0A\x02\x12F\n\x07cluster\x18\x02\x20\x01(\tR\x07clusterB,\xfaA&\n$\ - bigtableadmin.googleapis.com/Cluster\xe0A\x02\x12$\n\x0bsnapshot_id\x18\ - \x03\x20\x01(\tR\nsnapshotIdB\x03\xe0A\x02\x12+\n\x03ttl\x18\x04\x20\x01\ - (\x0b2\x19.google.protobuf.DurationR\x03ttl\x12\x20\n\x0bdescription\x18\ - \x05\x20\x01(\tR\x0bdescription\"W\n\x12GetSnapshotRequest\x12A\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%bigtableadmin.googleapis.com/Sna\ - pshot\xe0A\x02\"\x98\x01\n\x14ListSnapshotsRequest\x12D\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB,\xfaA&\n$bigtableadmin.googleapis.com/Cluste\ - r\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\ + table.admin.v2\x1a\x1cgoogle/api/annotations.proto\x1a$google/bigtable/a\ + dmin/v2/table.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/\ + iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogl\ + e/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoog\ + le/protobuf/timestamp.proto\"\xf4\x01\n\x12CreateTableRequest\x12\x16\n\ + \x06parent\x18\x01\x20\x01(\tR\x06parent\x12\x19\n\x08table_id\x18\x02\ + \x20\x01(\tR\x07tableId\x125\n\x05table\x18\x03\x20\x01(\x0b2\x1f.google\ + .bigtable.admin.v2.TableR\x05table\x12Y\n\x0einitial_splits\x18\x04\x20\ + \x03(\x0b22.google.bigtable.admin.v2.CreateTableRequest.SplitR\rinitialS\ + plits\x1a\x19\n\x05Split\x12\x10\n\x03key\x18\x01\x20\x01(\x0cR\x03key\"\ + |\n\x1eCreateTableFromSnapshotRequest\x12\x16\n\x06parent\x18\x01\x20\ + \x01(\tR\x06parent\x12\x19\n\x08table_id\x18\x02\x20\x01(\tR\x07tableId\ + \x12'\n\x0fsource_snapshot\x18\x03\x20\x01(\tR\x0esourceSnapshot\"\x99\ + \x01\n\x13DropRowRangeRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ + ame\x12&\n\x0erow_key_prefix\x18\x02\x20\x01(\x0cH\0R\x0crowKeyPrefix\ + \x12<\n\x1adelete_all_data_from_table\x18\x03\x20\x01(\x08H\0R\x16delete\ + AllDataFromTableB\x08\n\x06target\"\xa1\x01\n\x11ListTablesRequest\x12\ + \x16\n\x06parent\x18\x01\x20\x01(\tR\x06parent\x128\n\x04view\x18\x02\ + \x20\x01(\x0e2$.google.bigtable.admin.v2.Table.ViewR\x04view\x12\x1b\n\t\ + page_size\x18\x04\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\ + \x03\x20\x01(\tR\tpageToken\"u\n\x12ListTablesResponse\x127\n\x06tables\ + \x18\x01\x20\x03(\x0b2\x1f.google.bigtable.admin.v2.TableR\x06tables\x12\ + &\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"_\n\x0fGetTab\ + leRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x128\n\x04view\ + \x18\x02\x20\x01(\x0e2$.google.bigtable.admin.v2.Table.ViewR\x04view\"(\ + \n\x12DeleteTableRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"\ + \xdd\x02\n\x1bModifyColumnFamiliesRequest\x12\x12\n\x04name\x18\x01\x20\ + \x01(\tR\x04name\x12h\n\rmodifications\x18\x02\x20\x03(\x0b2B.google.big\ + table.admin.v2.ModifyColumnFamiliesRequest.ModificationR\rmodifications\ + \x1a\xbf\x01\n\x0cModification\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\ + \x12@\n\x06create\x18\x02\x20\x01(\x0b2&.google.bigtable.admin.v2.Column\ + FamilyH\0R\x06create\x12@\n\x06update\x18\x03\x20\x01(\x0b2&.google.bigt\ + able.admin.v2.ColumnFamilyH\0R\x06update\x12\x14\n\x04drop\x18\x04\x20\ + \x01(\x08H\0R\x04dropB\x05\n\x03mod\"5\n\x1fGenerateConsistencyTokenRequ\ + est\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\"O\n\x20GenerateConsis\ + tencyTokenResponse\x12+\n\x11consistency_token\x18\x01\x20\x01(\tR\x10co\ + nsistencyToken\"Z\n\x17CheckConsistencyRequest\x12\x12\n\x04name\x18\x01\ + \x20\x01(\tR\x04name\x12+\n\x11consistency_token\x18\x02\x20\x01(\tR\x10\ + consistencyToken\":\n\x18CheckConsistencyResponse\x12\x1e\n\nconsistent\ + \x18\x01\x20\x01(\x08R\nconsistent\"\xb4\x01\n\x14SnapshotTableRequest\ + \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07cluster\x18\ + \x02\x20\x01(\tR\x07cluster\x12\x1f\n\x0bsnapshot_id\x18\x03\x20\x01(\tR\ + \nsnapshotId\x12+\n\x03ttl\x18\x04\x20\x01(\x0b2\x19.google.protobuf.Dur\ + ationR\x03ttl\x12\x20\n\x0bdescription\x18\x05\x20\x01(\tR\x0bdescriptio\ + n\"(\n\x12GetSnapshotRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04na\ + me\"j\n\x14ListSnapshotsRequest\x12\x16\n\x06parent\x18\x01\x20\x01(\tR\ + \x06parent\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\ \x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\x81\x01\n\x15ListSna\ pshotsResponse\x12@\n\tsnapshots\x18\x01\x20\x03(\x0b2\".google.bigtable\ .admin.v2.SnapshotR\tsnapshots\x12&\n\x0fnext_page_token\x18\x02\x20\x01\ - (\tR\rnextPageToken\"Z\n\x15DeleteSnapshotRequest\x12A\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB-\xfaA'\n%bigtableadmin.googleapis.com/Snapshot\xe0\ - A\x02\"\xee\x01\n\x15SnapshotTableMetadata\x12Y\n\x10original_request\ - \x18\x01\x20\x01(\x0b2..google.bigtable.admin.v2.SnapshotTableRequestR\ - \x0foriginalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinish_time\x18\x03\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\"\x82\x02\n\x1fCre\ - ateTableFromSnapshotMetadata\x12c\n\x10original_request\x18\x01\x20\x01(\ - \x0b28.google.bigtable.admin.v2.CreateTableFromSnapshotRequestR\x0forigi\ - nalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01(\x0b2\x1a.google.proto\ - buf.TimestampR\x0brequestTime\x12;\n\x0bfinish_time\x18\x03\x20\x01(\x0b\ - 2\x1a.google.protobuf.TimestampR\nfinishTime\"\xbc\x01\n\x13CreateBackup\ - Request\x12D\n\x06parent\x18\x01\x20\x01(\tR\x06parentB,\xfaA&\n$bigtabl\ - eadmin.googleapis.com/Cluster\xe0A\x02\x12\x20\n\tbackup_id\x18\x02\x20\ - \x01(\tR\x08backupIdB\x03\xe0A\x02\x12=\n\x06backup\x18\x03\x20\x01(\x0b\ - 2\x20.google.bigtable.admin.v2.BackupR\x06backupB\x03\xe0A\x02\"\xbf\x01\ - \n\x14CreateBackupMetadata\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\ - \x12!\n\x0csource_table\x18\x02\x20\x01(\tR\x0bsourceTable\x129\n\nstart\ - _time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\ - \x125\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x07endTime\"\x96\x01\n\x13UpdateBackupRequest\x12=\n\x06backup\x18\x01\ - \x20\x01(\x0b2\x20.google.bigtable.admin.v2.BackupR\x06backupB\x03\xe0A\ - \x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Fie\ - ldMaskR\nupdateMaskB\x03\xe0A\x02\"S\n\x10GetBackupRequest\x12?\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB+\xfaA%\n#bigtableadmin.googleapis.com/Bac\ - kup\xe0A\x02\"V\n\x13DeleteBackupRequest\x12?\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB+\xfaA%\n#bigtableadmin.googleapis.com/Backup\xe0A\x02\"\xc9\ - \x01\n\x12ListBackupsRequest\x12D\n\x06parent\x18\x01\x20\x01(\tR\x06par\ - entB,\xfaA&\n$bigtableadmin.googleapis.com/Cluster\xe0A\x02\x12\x16\n\ - \x06filter\x18\x02\x20\x01(\tR\x06filter\x12\x19\n\x08order_by\x18\x03\ - \x20\x01(\tR\x07orderBy\x12\x1b\n\tpage_size\x18\x04\x20\x01(\x05R\x08pa\ - geSize\x12\x1d\n\npage_token\x18\x05\x20\x01(\tR\tpageToken\"y\n\x13List\ - BackupsResponse\x12:\n\x07backups\x18\x01\x20\x03(\x0b2\x20.google.bigta\ - ble.admin.v2.BackupR\x07backups\x12&\n\x0fnext_page_token\x18\x02\x20\ - \x01(\tR\rnextPageToken\"\x8f\x02\n\x11CopyBackupRequest\x12D\n\x06paren\ - t\x18\x01\x20\x01(\tR\x06parentB,\xfaA&\n$bigtableadmin.googleapis.com/C\ - luster\xe0A\x02\x12\x20\n\tbackup_id\x18\x02\x20\x01(\tR\x08backupIdB\ - \x03\xe0A\x02\x12P\n\rsource_backup\x18\x03\x20\x01(\tR\x0csourceBackupB\ - +\xfaA%\n#bigtableadmin.googleapis.com/Backup\xe0A\x02\x12@\n\x0bexpire_\ - time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTimeB\ - \x03\xe0A\x02\"\xef\x01\n\x12CopyBackupMetadata\x12<\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB(\xfaA%\n#bigtableadmin.googleapis.com/Backup\x12R\ - \n\x12source_backup_info\x18\x02\x20\x01(\x0b2$.google.bigtable.admin.v2\ - .BackupInfoR\x10sourceBackupInfo\x12G\n\x08progress\x18\x03\x20\x01(\x0b\ - 2+.google.bigtable.admin.v2.OperationProgressR\x08progress2\xa2*\n\x12Bi\ - gtableTableAdmin\x12\xab\x01\n\x0bCreateTable\x12,.google.bigtable.admin\ - .v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"M\x82\xd3\ - \xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\xdaA\ - \x15parent,table_id,table\x12\x8a\x02\n\x17CreateTableFromSnapshot\x128.\ - google.bigtable.admin.v2.CreateTableFromSnapshotRequest\x1a\x1d.google.l\ - ongrunning.Operation\"\x95\x01\xcaA(\n\x05Table\x12\x1fCreateTableFromSn\ - apshotMetadata\x82\xd3\xe4\x93\x02B\"=/v2/{parent=projects/*/instances/*\ - }/tables:createFromSnapshot:\x01*\xdaA\x1fparent,table_id,source_snapsho\ - t\x12\xa4\x01\n\nListTables\x12+.google.bigtable.admin.v2.ListTablesRequ\ - est\x1a,.google.bigtable.admin.v2.ListTablesResponse\";\x82\xd3\xe4\x93\ - \x02,\x12*/v2/{parent=projects/*/instances/*}/tables\xdaA\x06parent\x12\ - \x91\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\x1a\ - \x1f.google.bigtable.admin.v2.Table\"9\x82\xd3\xe4\x93\x02,\x12*/v2/{nam\ - e=projects/*/instances/*/tables/*}\xdaA\x04name\x12\xce\x01\n\x0bUpdateT\ - able\x12,.google.bigtable.admin.v2.UpdateTableRequest\x1a\x1d.google.lon\ - grunning.Operation\"r\xcaA\x1c\n\x05Table\x12\x13UpdateTableMetadata\x82\ - \xd3\xe4\x93\x02920/v2/{table.name=projects/*/instances/*/tables/*}:\x05\ - table\xdaA\x11table,update_mask\x12\x8e\x01\n\x0bDeleteTable\x12,.google\ - .bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Empty\"9\ - \x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\xdaA\ - \x04name\x12\xc6\x01\n\rUndeleteTable\x12..google.bigtable.admin.v2.Unde\ - leteTableRequest\x1a\x1d.google.longrunning.Operation\"f\xcaA\x1e\n\x05T\ - able\x12\x15UndeleteTableMetadata\x82\xd3\xe4\x93\x028\"3/v2/{name=proje\ - cts/*/instances/*/tables/*}:undelete:\x01*\xdaA\x04name\x12\xcf\x01\n\ - \x14ModifyColumnFamilies\x125.google.bigtable.admin.v2.ModifyColumnFamil\ - iesRequest\x1a\x1f.google.bigtable.admin.v2.Table\"_\x82\xd3\xe4\x93\x02\ - D\"?/v2/{name=projects/*/instances/*/tables/*}:modifyColumnFamilies:\x01\ - *\xdaA\x12name,modifications\x12\x99\x01\n\x0cDropRowRange\x12-.google.b\ - igtable.admin.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty\"B\ - \x82\xd3\xe4\x93\x02<\"7/v2/{name=projects/*/instances/*/tables/*}:dropR\ - owRange:\x01*\x12\xe8\x01\n\x18GenerateConsistencyToken\x129.google.bigt\ - able.admin.v2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin\ - .v2.GenerateConsistencyTokenResponse\"U\x82\xd3\xe4\x93\x02H\"C/v2/{name\ - =projects/*/instances/*/tables/*}:generateConsistencyToken:\x01*\xdaA\ - \x04name\x12\xda\x01\n\x10CheckConsistency\x121.google.bigtable.admin.v2\ - .CheckConsistencyRequest\x1a2.google.bigtable.admin.v2.CheckConsistencyR\ - esponse\"_\x82\xd3\xe4\x93\x02@\";/v2/{name=projects/*/instances/*/table\ - s/*}:checkConsistency:\x01*\xdaA\x16name,consistency_token\x12\xea\x01\n\ - \rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTableRequest\x1a\ - \x1d.google.longrunning.Operation\"\x89\x01\xcaA!\n\x08Snapshot\x12\x15S\ - napshotTableMetadata\x82\xd3\xe4\x93\x028\"3/v2/{name=projects/*/instanc\ - es/*/tables/*}:snapshot:\x01*\xdaA$name,cluster,snapshot_id,description\ - \x12\xa8\x01\n\x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotR\ - equest\x1a\".google.bigtable.admin.v2.Snapshot\"G\x82\xd3\xe4\x93\x02:\ - \x128/v2/{name=projects/*/instances/*/clusters/*/snapshots/*}\xdaA\x04na\ - me\x12\xbb\x01\n\rListSnapshots\x12..google.bigtable.admin.v2.ListSnapsh\ - otsRequest\x1a/.google.bigtable.admin.v2.ListSnapshotsResponse\"I\x82\ - \xd3\xe4\x93\x02:\x128/v2/{parent=projects/*/instances/*/clusters/*}/sna\ - pshots\xdaA\x06parent\x12\xa2\x01\n\x0eDeleteSnapshot\x12/.google.bigtab\ - le.admin.v2.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"G\x82\ - \xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances/*/clusters/*/snapshots\ - /*}\xdaA\x04name\x12\xe0\x01\n\x0cCreateBackup\x12-.google.bigtable.admi\ - n.v2.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\ - \xcaA\x1e\n\x06Backup\x12\x14CreateBackupMetadata\x82\xd3\xe4\x93\x02@\"\ - 6/v2/{parent=projects/*/instances/*/clusters/*}/backups:\x06backup\xdaA\ - \x17parent,backup_id,backup\x12\xa0\x01\n\tGetBackup\x12*.google.bigtabl\ - e.admin.v2.GetBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"E\ - \x82\xd3\xe4\x93\x028\x126/v2/{name=projects/*/instances/*/clusters/*/ba\ - ckups/*}\xdaA\x04name\x12\xc3\x01\n\x0cUpdateBackup\x12-.google.bigtable\ - .admin.v2.UpdateBackupRequest\x1a\x20.google.bigtable.admin.v2.Backup\"b\ - \x82\xd3\xe4\x93\x02G2=/v2/{backup.name=projects/*/instances/*/clusters/\ - */backups/*}:\x06backup\xdaA\x12backup,update_mask\x12\x9c\x01\n\x0cDele\ - teBackup\x12-.google.bigtable.admin.v2.DeleteBackupRequest\x1a\x16.googl\ - e.protobuf.Empty\"E\x82\xd3\xe4\x93\x028*6/v2/{name=projects/*/instances\ - /*/clusters/*/backups/*}\xdaA\x04name\x12\xb3\x01\n\x0bListBackups\x12,.\ - google.bigtable.admin.v2.ListBackupsRequest\x1a-.google.bigtable.admin.v\ - 2.ListBackupsResponse\"G\x82\xd3\xe4\x93\x028\x126/v2/{parent=projects/*\ - /instances/*/clusters/*}/backups\xdaA\x06parent\x12\xbb\x01\n\x0cRestore\ - Table\x12-.google.bigtable.admin.v2.RestoreTableRequest\x1a\x1d.google.l\ - ongrunning.Operation\"]\xcaA\x1d\n\x05Table\x12\x14RestoreTableMetadata\ - \x82\xd3\xe4\x93\x027\"2/v2/{parent=projects/*/instances/*}/tables:resto\ - re:\x01*\x12\xed\x01\n\nCopyBackup\x12+.google.bigtable.admin.v2.CopyBac\ - kupRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\xcaA\x1c\n\x06\ - Backup\x12\x12CopyBackupMetadata\x82\xd3\xe4\x93\x02@\";/v2/{parent=proj\ - ects/*/instances/*/clusters/*}/backups:copy:\x01*\xdaA*parent,backup_id,\ - source_backup,expire_time\x12\xec\x01\n\x0cGetIamPolicy\x12\".google.iam\ - .v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xa0\x01\x82\xd3\ - \xe4\x93\x02\x8e\x01\";/v2/{resource=projects/*/instances/*/tables/*}:ge\ - tIamPolicy:\x01*ZL\"G/v2/{resource=projects/*/instances/*/clusters/*/bac\ - kups/*}:getIamPolicy:\x01*\xdaA\x08resource\x12\xf3\x01\n\x0cSetIamPolic\ - y\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\ - \xa7\x01\x82\xd3\xe4\x93\x02\x8e\x01\";/v2/{resource=projects/*/instance\ - s/*/tables/*}:setIamPolicy:\x01*ZL\"G/v2/{resource=projects/*/instances/\ - */clusters/*/backups/*}:setIamPolicy:\x01*\xdaA\x0fresource,policy\x12\ - \xa4\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRe\ - quest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xb8\x01\x82\xd3\ - \xe4\x93\x02\x9a\x01\"A/v2/{resource=projects/*/instances/*/tables/*}:te\ - stIamPermissions:\x01*ZR\"M/v2/{resource=projects/*/instances/*/clusters\ - /*/backups/*}:testIamPermissions:\x01*\xdaA\x14resource,permissions\x1a\ - \xde\x02\xd2A\xbb\x02https://www.googleapis.com/auth/bigtable.admin,http\ - s://www.googleapis.com/auth/bigtable.admin.table,https://www.googleapis.\ - com/auth/cloud-bigtable.admin,https://www.googleapis.com/auth/cloud-bigt\ - able.admin.table,https://www.googleapis.com/auth/cloud-platform,https://\ - www.googleapis.com/auth/cloud-platform.read-only\xcaA\x1cbigtableadmin.g\ - oogleapis.comB\xdf\x01\n\x1ccom.google.bigtable.admin.v2B\x17BigtableTab\ - leAdminProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admin/\ - v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cl\ - oud\\Bigtable\\Admin\\V2\xea\x02\"Google::Cloud::Bigtable::Admin::V2J\ - \xb1\xc4\x02\n\x07\x12\x05\x0e\0\xa8\t\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20License\ - d\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"L\ - icense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ - \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ - S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ - \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ - \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\ - \x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\ - \x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\0/\n\t\n\x02\x03\x05\ - \x12\x03\x17\0.\n\t\n\x02\x03\x06\x12\x03\x18\0(\n\t\n\x02\x03\x07\x12\ - \x03\x19\0$\n\t\n\x02\x03\x08\x12\x03\x1a\0-\n\t\n\x02\x03\t\x12\x03\x1b\ - \0(\n\t\n\x02\x03\n\x12\x03\x1c\0%\n\t\n\x02\x03\x0b\x12\x03\x1d\0*\n\t\ - \n\x02\x03\x0c\x12\x03\x1e\0)\n\x08\n\x01\x08\x12\x03\x20\0;\n\t\n\x02\ - \x08%\x12\x03\x20\0;\n\x08\n\x01\x08\x12\x03!\0T\n\t\n\x02\x08\x0b\x12\ - \x03!\0T\n\x08\n\x01\x08\x12\x03\"\0\"\n\t\n\x02\x08\n\x12\x03\"\0\"\n\ - \x08\n\x01\x08\x12\x03#\08\n\t\n\x02\x08\x08\x12\x03#\08\n\x08\n\x01\x08\ - \x12\x03$\05\n\t\n\x02\x08\x01\x12\x03$\05\n\x08\n\x01\x08\x12\x03%\0<\n\ - \t\n\x02\x08)\x12\x03%\0<\n\x08\n\x01\x08\x12\x03&\0;\n\t\n\x02\x08-\x12\ - \x03&\0;\n\xac\x01\n\x02\x06\0\x12\x05-\0\xfd\x02\x01\x1a\x9e\x01\x20Ser\ - vice\x20for\x20creating,\x20configuring,\x20and\x20deleting\x20Cloud\x20\ - Bigtable\x20tables.\n\n\n\x20Provides\x20access\x20to\x20the\x20table\ - \x20schemas\x20only,\x20not\x20the\x20data\x20stored\x20within\n\x20the\ - \x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03-\x08\x1a\n\n\n\x03\x06\0\x03\ - \x12\x03.\x02D\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03.\x02D\n\x0b\n\x03\ - \x06\0\x03\x12\x04/\x025A\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04/\x025A\n\ - \xa0\x01\n\x04\x06\0\x02\0\x12\x04:\x02@\x03\x1a\x91\x01\x20Creates\x20a\ - \x20new\x20table\x20in\x20the\x20specified\x20instance.\n\x20The\x20tabl\ - e\x20can\x20be\x20created\x20with\x20a\x20full\x20set\x20of\x20initial\ - \x20column\x20families,\n\x20specified\x20in\x20the\x20request.\n\n\x0c\ - \n\x05\x06\0\x02\0\x01\x12\x03:\x06\x11\n\x0c\n\x05\x06\0\x02\0\x02\x12\ - \x03:\x12$\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03:/4\n\r\n\x05\x06\0\x02\0\ - \x04\x12\x04;\x04>\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04;\ - \x04>\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03?\x04C\n\x0f\n\x08\x06\0\ - \x02\0\x04\x9b\x08\0\x12\x03?\x04C\n\xca\x03\n\x04\x06\0\x02\x01\x12\x04\ - J\x02U\x03\x1a\xbb\x03\x20Creates\x20a\x20new\x20table\x20from\x20the\ - \x20specified\x20snapshot.\x20The\x20target\x20table\x20must\n\x20not\ - \x20exist.\x20The\x20snapshot\x20and\x20the\x20table\x20must\x20be\x20in\ + (\tR\rnextPageToken\"+\n\x15DeleteSnapshotRequest\x12\x12\n\x04name\x18\ + \x01\x20\x01(\tR\x04name\"\xee\x01\n\x15SnapshotTableMetadata\x12Y\n\x10\ + original_request\x18\x01\x20\x01(\x0b2..google.bigtable.admin.v2.Snapsho\ + tTableRequestR\x0foriginalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01\ + (\x0b2\x1a.google.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinish_ti\ + me\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime\"\ + \x82\x02\n\x1fCreateTableFromSnapshotMetadata\x12c\n\x10original_request\ + \x18\x01\x20\x01(\x0b28.google.bigtable.admin.v2.CreateTableFromSnapshot\ + RequestR\x0foriginalRequest\x12=\n\x0crequest_time\x18\x02\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\x0brequestTime\x12;\n\x0bfinish_time\x18\ + \x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nfinishTime2\x99\x15\n\ + \x12BigtableTableAdmin\x12\x93\x01\n\x0bCreateTable\x12,.google.bigtable\ + .admin.v2.CreateTableRequest\x1a\x1f.google.bigtable.admin.v2.Table\"5\ + \x82\xd3\xe4\x93\x02/\"*/v2/{parent=projects/*/instances/*}/tables:\x01*\ + \x12\xbc\x01\n\x17CreateTableFromSnapshot\x128.google.bigtable.admin.v2.\ + CreateTableFromSnapshotRequest\x1a\x1d.google.longrunning.Operation\"H\ + \x82\xd3\xe4\x93\x02B\"=/v2/{parent=projects/*/instances/*}/tables:creat\ + eFromSnapshot:\x01*\x12\x9b\x01\n\nListTables\x12+.google.bigtable.admin\ + .v2.ListTablesRequest\x1a,.google.bigtable.admin.v2.ListTablesResponse\"\ + 2\x82\xd3\xe4\x93\x02,\x12*/v2/{parent=projects/*/instances/*}/tables\ + \x12\x8a\x01\n\x08GetTable\x12).google.bigtable.admin.v2.GetTableRequest\ + \x1a\x1f.google.bigtable.admin.v2.Table\"2\x82\xd3\xe4\x93\x02,\x12*/v2/\ + {name=projects/*/instances/*/tables/*}\x12\x87\x01\n\x0bDeleteTable\x12,\ + .google.bigtable.admin.v2.DeleteTableRequest\x1a\x16.google.protobuf.Emp\ + ty\"2\x82\xd3\xe4\x93\x02,**/v2/{name=projects/*/instances/*/tables/*}\ + \x12\xba\x01\n\x14ModifyColumnFamilies\x125.google.bigtable.admin.v2.Mod\ + ifyColumnFamiliesRequest\x1a\x1f.google.bigtable.admin.v2.Table\"J\x82\ + \xd3\xe4\x93\x02D\"?/v2/{name=projects/*/instances/*/tables/*}:modifyCol\ + umnFamilies:\x01*\x12\x99\x01\n\x0cDropRowRange\x12-.google.bigtable.adm\ + in.v2.DropRowRangeRequest\x1a\x16.google.protobuf.Empty\"B\x82\xd3\xe4\ + \x93\x02<\"7/v2/{name=projects/*/instances/*/tables/*}:dropRowRange:\x01\ + *\x12\xe1\x01\n\x18GenerateConsistencyToken\x129.google.bigtable.admin.v\ + 2.GenerateConsistencyTokenRequest\x1a:.google.bigtable.admin.v2.Generate\ + ConsistencyTokenResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{name=projects/*/\ + instances/*/tables/*}:generateConsistencyToken:\x01*\x12\xc1\x01\n\x10Ch\ + eckConsistency\x121.google.bigtable.admin.v2.CheckConsistencyRequest\x1a\ + 2.google.bigtable.admin.v2.CheckConsistencyResponse\"F\x82\xd3\xe4\x93\ + \x02@\";/v2/{name=projects/*/instances/*/tables/*}:checkConsistency:\x01\ + *\x12\x9e\x01\n\rSnapshotTable\x12..google.bigtable.admin.v2.SnapshotTab\ + leRequest\x1a\x1d.google.longrunning.Operation\">\x82\xd3\xe4\x93\x028\"\ + 3/v2/{name=projects/*/instances/*/tables/*}:snapshot:\x01*\x12\xa1\x01\n\ + \x0bGetSnapshot\x12,.google.bigtable.admin.v2.GetSnapshotRequest\x1a\".g\ + oogle.bigtable.admin.v2.Snapshot\"@\x82\xd3\xe4\x93\x02:\x128/v2/{name=p\ + rojects/*/instances/*/clusters/*/snapshots/*}\x12\xb2\x01\n\rListSnapsho\ + ts\x12..google.bigtable.admin.v2.ListSnapshotsRequest\x1a/.google.bigtab\ + le.admin.v2.ListSnapshotsResponse\"@\x82\xd3\xe4\x93\x02:\x128/v2/{paren\ + t=projects/*/instances/*/clusters/*}/snapshots\x12\x9b\x01\n\x0eDeleteSn\ + apshot\x12/.google.bigtable.admin.v2.DeleteSnapshotRequest\x1a\x16.googl\ + e.protobuf.Empty\"@\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/instances\ + /*/clusters/*/snapshots/*}\x12\x91\x01\n\x0cGetIamPolicy\x12\".google.ia\ + m.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\ + \x02@\";/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy:\x01\ + *\x12\x91\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\ + \x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\x02@\";/v2/{resource=pr\ + ojects/*/instances/*/tables/*}:setIamPolicy:\x01*\x12\xb7\x01\n\x12TestI\ + amPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.i\ + am.v1.TestIamPermissionsResponse\"L\x82\xd3\xe4\x93\x02F\"A/v2/{resource\ + =projects/*/instances/*/tables/*}:testIamPermissions:\x01*B\xba\x01\n\ + \x1ccom.google.bigtable.admin.v2B\x17BigtableTableAdminProtoP\x01Z=googl\ + e.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoog\ + le.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\ + J\xca\xa6\x01\n\x07\x12\x05\x0f\0\xab\x04\x01\n\xbe\x04\n\x01\x0c\x12\ + \x03\x0f\0\x122\xb3\x04\x20Copyright\x202018\x20Google\x20LLC.\n\n\x20Li\ + censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\n\x08\n\x01\x02\x12\x03\x11\0!\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\ + \x02\x03\x01\x12\x03\x14\0.\n\t\n\x02\x03\x02\x12\x03\x15\0(\n\t\n\x02\ + \x03\x03\x12\x03\x16\0$\n\t\n\x02\x03\x04\x12\x03\x17\0-\n\t\n\x02\x03\ + \x05\x12\x03\x18\0(\n\t\n\x02\x03\x06\x12\x03\x19\0%\n\t\n\x02\x03\x07\ + \x12\x03\x1a\0)\n\x08\n\x01\x08\x12\x03\x1c\0;\n\t\n\x02\x08%\x12\x03\ + \x1c\0;\n\x08\n\x01\x08\x12\x03\x1d\0T\n\t\n\x02\x08\x0b\x12\x03\x1d\0T\ + \n\x08\n\x01\x08\x12\x03\x1e\0\"\n\t\n\x02\x08\n\x12\x03\x1e\0\"\n\x08\n\ + \x01\x08\x12\x03\x1f\08\n\t\n\x02\x08\x08\x12\x03\x1f\08\n\x08\n\x01\x08\ + \x12\x03\x20\05\n\t\n\x02\x08\x01\x12\x03\x20\05\n\x08\n\x01\x08\x12\x03\ + !\0<\n\t\n\x02\x08)\x12\x03!\0<\n\xac\x01\n\x02\x06\0\x12\x05(\0\xd4\x01\ + \x01\x1a\x9e\x01\x20Service\x20for\x20creating,\x20configuring,\x20and\ + \x20deleting\x20Cloud\x20Bigtable\x20tables.\n\n\n\x20Provides\x20access\ + \x20to\x20the\x20table\x20schemas\x20only,\x20not\x20the\x20data\x20stor\ + ed\x20within\n\x20the\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03(\x08\x1a\ + \n\xa0\x01\n\x04\x06\0\x02\0\x12\x04,\x021\x03\x1a\x91\x01\x20Creates\ + \x20a\x20new\x20table\x20in\x20the\x20specified\x20instance.\n\x20The\ + \x20table\x20can\x20be\x20created\x20with\x20a\x20full\x20set\x20of\x20i\ + nitial\x20column\x20families,\n\x20specified\x20in\x20the\x20request.\n\ + \n\x0c\n\x05\x06\0\x02\0\x01\x12\x03,\x06\x11\n\x0c\n\x05\x06\0\x02\0\ + \x02\x12\x03,\x12$\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03,/4\n\r\n\x05\x06\ + \0\x02\0\x04\x12\x04-\x040\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\ + \x12\x04-\x040\x06\n\xca\x03\n\x04\x06\0\x02\x01\x12\x04;\x02A\x03\x1a\ + \xbb\x03\x20Creates\x20a\x20new\x20table\x20from\x20the\x20specified\x20\ + snapshot.\x20The\x20target\x20table\x20must\n\x20not\x20exist.\x20The\ + \x20snapshot\x20and\x20the\x20table\x20must\x20be\x20in\x20the\x20same\ + \x20instance.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20rel\ + ease\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\ + \x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20\ + customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20backw\ + ard-incompatible\x20ways\x20and\x20is\x20not\n\x20recommended\x20for\x20\ + production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20\ + or\x20deprecation\n\x20policy.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03;\ + \x06\x1d\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03;\x1e<\n\x0c\n\x05\x06\0\ + \x02\x01\x03\x12\x03<\x0f+\n\r\n\x05\x06\0\x02\x01\x04\x12\x04=\x04@\x06\ + \n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04=\x04@\x06\nB\n\x04\ + \x06\0\x02\x02\x12\x04D\x02H\x03\x1a4\x20Lists\x20all\x20tables\x20serve\ + d\x20from\x20a\x20specified\x20instance.\n\n\x0c\n\x05\x06\0\x02\x02\x01\ + \x12\x03D\x06\x10\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03D\x11\"\n\x0c\n\ + \x05\x06\0\x02\x02\x03\x12\x03D-?\n\r\n\x05\x06\0\x02\x02\x04\x12\x04E\ + \x04G\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04E\x04G\x06\nD\ + \n\x04\x06\0\x02\x03\x12\x04K\x02O\x03\x1a6\x20Gets\x20metadata\x20infor\ + mation\x20about\x20the\x20specified\x20table.\n\n\x0c\n\x05\x06\0\x02\ + \x03\x01\x12\x03K\x06\x0e\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03K\x0f\x1e\ + \n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03K).\n\r\n\x05\x06\0\x02\x03\x04\ + \x12\x04L\x04N\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04L\ + \x04N\x06\nJ\n\x04\x06\0\x02\x04\x12\x04R\x02V\x03\x1a<\x20Permanently\ + \x20deletes\x20a\x20specified\x20table\x20and\x20all\x20of\x20its\x20dat\ + a.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03R\x06\x11\n\x0c\n\x05\x06\0\ + \x02\x04\x02\x12\x03R\x12$\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03R/D\n\r\ + \n\x05\x06\0\x02\x04\x04\x12\x04S\x04U\x06\n\x11\n\t\x06\0\x02\x04\x04\ + \xb0\xca\xbc\"\x12\x04S\x04U\x06\n\x9b\x02\n\x04\x06\0\x02\x05\x12\x04\\\ + \x02a\x03\x1a\x8c\x02\x20Performs\x20a\x20series\x20of\x20column\x20fami\ + ly\x20modifications\x20on\x20the\x20specified\x20table.\n\x20Either\x20a\ + ll\x20or\x20none\x20of\x20the\x20modifications\x20will\x20occur\x20befor\ + e\x20this\x20method\n\x20returns,\x20but\x20data\x20requests\x20received\ + \x20prior\x20to\x20that\x20point\x20may\x20see\x20a\x20table\n\x20where\ + \x20only\x20some\x20modifications\x20have\x20taken\x20effect.\n\n\x0c\n\ + \x05\x06\0\x02\x05\x01\x12\x03\\\x06\x1a\n\x0c\n\x05\x06\0\x02\x05\x02\ + \x12\x03\\\x1b6\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03\\AF\n\r\n\x05\x06\ + \0\x02\x05\x04\x12\x04]\x04`\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\ + \"\x12\x04]\x04`\x06\n\xbb\x01\n\x04\x06\0\x02\x06\x12\x04f\x02k\x03\x1a\ + \xac\x01\x20Permanently\x20drop/delete\x20a\x20row\x20range\x20from\x20a\ + \x20specified\x20table.\x20The\x20request\x20can\n\x20specify\x20whether\ + \x20to\x20delete\x20all\x20rows\x20in\x20a\x20table,\x20or\x20only\x20th\ + ose\x20that\x20match\x20a\n\x20particular\x20prefix.\n\n\x0c\n\x05\x06\0\ + \x02\x06\x01\x12\x03f\x06\x12\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03f\x13\ + &\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03f1F\n\r\n\x05\x06\0\x02\x06\x04\ + \x12\x04g\x04j\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04g\ + \x04j\x06\n\xf3\x01\n\x04\x06\0\x02\x07\x12\x04q\x02w\x03\x1a\xe4\x01\ + \x20Generates\x20a\x20consistency\x20token\x20for\x20a\x20Table,\x20whic\ + h\x20can\x20be\x20used\x20in\n\x20CheckConsistency\x20to\x20check\x20whe\ + ther\x20mutations\x20to\x20the\x20table\x20that\x20finished\n\x20before\ + \x20this\x20call\x20started\x20have\x20been\x20replicated.\x20The\x20tok\ + ens\x20will\x20be\x20available\n\x20for\x2090\x20days.\n\n\x0c\n\x05\x06\ + \0\x02\x07\x01\x12\x03q\x06\x1e\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03q\ + \x1f>\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03r\x0f/\n\r\n\x05\x06\0\x02\ + \x07\x04\x12\x04s\x04v\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\ + \x04s\x04v\x06\n\xbc\x01\n\x04\x06\0\x02\x08\x12\x05|\x02\x82\x01\x03\ + \x1a\xac\x01\x20Checks\x20replication\x20consistency\x20based\x20on\x20a\ + \x20consistency\x20token,\x20that\x20is,\x20if\n\x20replication\x20has\ + \x20caught\x20up\x20based\x20on\x20the\x20conditions\x20specified\x20in\ + \x20the\x20token\n\x20and\x20the\x20check\x20request.\n\n\x0c\n\x05\x06\ + \0\x02\x08\x01\x12\x03|\x06\x16\n\x0c\n\x05\x06\0\x02\x08\x02\x12\x03|\ + \x17.\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03}\x0f'\n\x0e\n\x05\x06\0\x02\ + \x08\x04\x12\x05~\x04\x81\x01\x06\n\x12\n\t\x06\0\x02\x08\x04\xb0\xca\ + \xbc\"\x12\x05~\x04\x81\x01\x06\n\xca\x03\n\x04\x06\0\x02\t\x12\x06\x8c\ + \x01\x02\x92\x01\x03\x1a\xb9\x03\x20Creates\x20a\x20new\x20snapshot\x20i\ + n\x20the\x20specified\x20cluster\x20from\x20the\x20specified\n\x20source\ + \x20table.\x20The\x20cluster\x20and\x20the\x20table\x20must\x20be\x20in\ \x20the\x20same\x20instance.\n\n\x20Note:\x20This\x20is\x20a\x20private\ \x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\ \x20feature\x20is\x20not\x20currently\x20available\x20to\x20most\x20Clou\ d\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20chang\ ed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\n\x20recom\ mended\x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\ - \x20any\x20SLA\x20or\x20deprecation\n\x20policy.\n\n\x0c\n\x05\x06\0\x02\ - \x01\x01\x12\x03J\x06\x1d\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03J\x1e<\n\ - \x0c\n\x05\x06\0\x02\x01\x03\x12\x03K\x0f+\n\r\n\x05\x06\0\x02\x01\x04\ - \x12\x04L\x04O\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04L\ - \x04O\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03P\x04M\n\x0f\n\x08\x06\0\ - \x02\x01\x04\x9b\x08\0\x12\x03P\x04M\n\r\n\x05\x06\0\x02\x01\x04\x12\x04\ - Q\x04T\x06\n\x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\x04Q\x04T\x06\nB\n\ - \x04\x06\0\x02\x02\x12\x04X\x02]\x03\x1a4\x20Lists\x20all\x20tables\x20s\ - erved\x20from\x20a\x20specified\x20instance.\n\n\x0c\n\x05\x06\0\x02\x02\ - \x01\x12\x03X\x06\x10\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03X\x11\"\n\x0c\ - \n\x05\x06\0\x02\x02\x03\x12\x03X-?\n\r\n\x05\x06\0\x02\x02\x04\x12\x04Y\ - \x04[\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04Y\x04[\x06\n\ - \x0c\n\x05\x06\0\x02\x02\x04\x12\x03\\\x044\n\x0f\n\x08\x06\0\x02\x02\ - \x04\x9b\x08\0\x12\x03\\\x044\nD\n\x04\x06\0\x02\x03\x12\x04`\x02e\x03\ - \x1a6\x20Gets\x20metadata\x20information\x20about\x20the\x20specified\ - \x20table.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03`\x06\x0e\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03`\x0f\x1e\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ - \x03`).\n\r\n\x05\x06\0\x02\x03\x04\x12\x04a\x04c\x06\n\x11\n\t\x06\0\ - \x02\x03\x04\xb0\xca\xbc\"\x12\x04a\x04c\x06\n\x0c\n\x05\x06\0\x02\x03\ - \x04\x12\x03d\x042\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03d\x042\ - \n*\n\x04\x06\0\x02\x04\x12\x04h\x02r\x03\x1a\x1c\x20Updates\x20a\x20spe\ - cified\x20table.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03h\x06\x11\n\x0c\ - \n\x05\x06\0\x02\x04\x02\x12\x03h\x12$\n\x0c\n\x05\x06\0\x02\x04\x03\x12\ - \x03h/K\n\r\n\x05\x06\0\x02\x04\x04\x12\x04i\x04l\x06\n\x11\n\t\x06\0\ - \x02\x04\x04\xb0\xca\xbc\"\x12\x04i\x04l\x06\n\x0c\n\x05\x06\0\x02\x04\ - \x04\x12\x03m\x04?\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03m\x04?\ - \n\r\n\x05\x06\0\x02\x04\x04\x12\x04n\x04q\x06\n\x0f\n\x07\x06\0\x02\x04\ - \x04\x99\x08\x12\x04n\x04q\x06\nJ\n\x04\x06\0\x02\x05\x12\x04u\x02z\x03\ - \x1a<\x20Permanently\x20deletes\x20a\x20specified\x20table\x20and\x20all\ - \x20of\x20its\x20data.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03u\x06\x11\ - \n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03u\x12$\n\x0c\n\x05\x06\0\x02\x05\ - \x03\x12\x03u/D\n\r\n\x05\x06\0\x02\x05\x04\x12\x04v\x04x\x06\n\x11\n\t\ - \x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04v\x04x\x06\n\x0c\n\x05\x06\0\x02\ - \x05\x04\x12\x03y\x042\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03y\ - \x042\nK\n\x04\x06\0\x02\x06\x12\x05}\x02\x88\x01\x03\x1a<\x20Restores\ - \x20a\x20specified\x20table\x20which\x20was\x20accidentally\x20deleted.\ - \n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03}\x06\x13\n\x0c\n\x05\x06\0\x02\ - \x06\x02\x12\x03}\x14(\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03~\x0f+\n\x0e\ - \n\x05\x06\0\x02\x06\x04\x12\x05\x7f\x04\x82\x01\x06\n\x12\n\t\x06\0\x02\ - \x06\x04\xb0\xca\xbc\"\x12\x05\x7f\x04\x82\x01\x06\n\r\n\x05\x06\0\x02\ - \x06\x04\x12\x04\x83\x01\x042\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\ - \x12\x04\x83\x01\x042\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x84\x01\x04\ - \x87\x01\x06\n\x11\n\x07\x06\0\x02\x06\x04\x99\x08\x12\x06\x84\x01\x04\ - \x87\x01\x06\n\x9d\x02\n\x04\x06\0\x02\x07\x12\x06\x8e\x01\x02\x94\x01\ - \x03\x1a\x8c\x02\x20Performs\x20a\x20series\x20of\x20column\x20family\ - \x20modifications\x20on\x20the\x20specified\x20table.\n\x20Either\x20all\ - \x20or\x20none\x20of\x20the\x20modifications\x20will\x20occur\x20before\ - \x20this\x20method\n\x20returns,\x20but\x20data\x20requests\x20received\ - \x20prior\x20to\x20that\x20point\x20may\x20see\x20a\x20table\n\x20where\ - \x20only\x20some\x20modifications\x20have\x20taken\x20effect.\n\n\r\n\ - \x05\x06\0\x02\x07\x01\x12\x04\x8e\x01\x06\x1a\n\r\n\x05\x06\0\x02\x07\ - \x02\x12\x04\x8e\x01\x1b6\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\x8e\x01AF\ - \n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x8f\x01\x04\x92\x01\x06\n\x13\n\t\ - \x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x8f\x01\x04\x92\x01\x06\n\r\n\ - \x05\x06\0\x02\x07\x04\x12\x04\x93\x01\x04@\n\x10\n\x08\x06\0\x02\x07\ - \x04\x9b\x08\0\x12\x04\x93\x01\x04@\n\xbd\x01\n\x04\x06\0\x02\x08\x12\ - \x06\x99\x01\x02\x9e\x01\x03\x1a\xac\x01\x20Permanently\x20drop/delete\ - \x20a\x20row\x20range\x20from\x20a\x20specified\x20table.\x20The\x20requ\ - est\x20can\n\x20specify\x20whether\x20to\x20delete\x20all\x20rows\x20in\ - \x20a\x20table,\x20or\x20only\x20those\x20that\x20match\x20a\n\x20partic\ - ular\x20prefix.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\x99\x01\x06\x12\n\ - \r\n\x05\x06\0\x02\x08\x02\x12\x04\x99\x01\x13&\n\r\n\x05\x06\0\x02\x08\ - \x03\x12\x04\x99\x011F\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\x9a\x01\x04\ - \x9d\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\x9a\x01\ - \x04\x9d\x01\x06\n\xf5\x01\n\x04\x06\0\x02\t\x12\x06\xa4\x01\x02\xab\x01\ - \x03\x1a\xe4\x01\x20Generates\x20a\x20consistency\x20token\x20for\x20a\ - \x20Table,\x20which\x20can\x20be\x20used\x20in\n\x20CheckConsistency\x20\ - to\x20check\x20whether\x20mutations\x20to\x20the\x20table\x20that\x20fin\ - ished\n\x20before\x20this\x20call\x20started\x20have\x20been\x20replicat\ - ed.\x20The\x20tokens\x20will\x20be\x20available\n\x20for\x2090\x20days.\ - \n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xa4\x01\x06\x1e\n\r\n\x05\x06\0\x02\ - \t\x02\x12\x04\xa4\x01\x1f>\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xa5\x01\ - \x0f/\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xa6\x01\x04\xa9\x01\x06\n\x13\ - \n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xa6\x01\x04\xa9\x01\x06\n\r\n\ - \x05\x06\0\x02\t\x04\x12\x04\xaa\x01\x042\n\x10\n\x08\x06\0\x02\t\x04\ - \x9b\x08\0\x12\x04\xaa\x01\x042\n\xbd\x01\n\x04\x06\0\x02\n\x12\x06\xb0\ - \x01\x02\xb7\x01\x03\x1a\xac\x01\x20Checks\x20replication\x20consistency\ - \x20based\x20on\x20a\x20consistency\x20token,\x20that\x20is,\x20if\n\x20\ - replication\x20has\x20caught\x20up\x20based\x20on\x20the\x20conditions\ - \x20specified\x20in\x20the\x20token\n\x20and\x20the\x20check\x20request.\ - \n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xb0\x01\x06\x16\n\r\n\x05\x06\0\x02\ - \n\x02\x12\x04\xb0\x01\x17.\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xb1\x01\ - \x0f'\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xb2\x01\x04\xb5\x01\x06\n\x13\ - \n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xb2\x01\x04\xb5\x01\x06\n\r\n\ - \x05\x06\0\x02\n\x04\x12\x04\xb6\x01\x04D\n\x10\n\x08\x06\0\x02\n\x04\ - \x9b\x08\0\x12\x04\xb6\x01\x04D\n\xca\x03\n\x04\x06\0\x02\x0b\x12\x06\ - \xc1\x01\x02\xcd\x01\x03\x1a\xb9\x03\x20Creates\x20a\x20new\x20snapshot\ - \x20in\x20the\x20specified\x20cluster\x20from\x20the\x20specified\n\x20s\ - ource\x20table.\x20The\x20cluster\x20and\x20the\x20table\x20must\x20be\ - \x20in\x20the\x20same\x20instance.\n\n\x20Note:\x20This\x20is\x20a\x20pr\ - ivate\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20Th\ - is\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20most\x20\ - Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20c\ - hanged\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\n\x20r\ - ecommended\x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\ - \x20to\x20any\x20SLA\x20or\x20deprecation\n\x20policy.\n\n\r\n\x05\x06\0\ - \x02\x0b\x01\x12\x04\xc1\x01\x06\x13\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\ - \xc1\x01\x14(\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xc2\x01\x0f+\n\x0f\n\ - \x05\x06\0\x02\x0b\x04\x12\x06\xc3\x01\x04\xc6\x01\x06\n\x13\n\t\x06\0\ - \x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc3\x01\x04\xc6\x01\x06\n\x0f\n\x05\ - \x06\0\x02\x0b\x04\x12\x06\xc7\x01\x04\xc8\x01/\n\x12\n\x08\x06\0\x02\ - \x0b\x04\x9b\x08\0\x12\x06\xc7\x01\x04\xc8\x01/\n\x0f\n\x05\x06\0\x02\ - \x0b\x04\x12\x06\xc9\x01\x04\xcc\x01\x06\n\x11\n\x07\x06\0\x02\x0b\x04\ - \x99\x08\x12\x06\xc9\x01\x04\xcc\x01\x06\n\xf8\x02\n\x04\x06\0\x02\x0c\ - \x12\x06\xd6\x01\x02\xdb\x01\x03\x1a\xe7\x02\x20Gets\x20metadata\x20info\ + \x20any\x20SLA\x20or\x20deprecation\n\x20policy.\n\n\r\n\x05\x06\0\x02\t\ + \x01\x12\x04\x8c\x01\x06\x13\n\r\n\x05\x06\0\x02\t\x02\x12\x04\x8c\x01\ + \x14(\n\r\n\x05\x06\0\x02\t\x03\x12\x04\x8d\x01\x0f+\n\x0f\n\x05\x06\0\ + \x02\t\x04\x12\x06\x8e\x01\x04\x91\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\ + \xca\xbc\"\x12\x06\x8e\x01\x04\x91\x01\x06\n\xf8\x02\n\x04\x06\0\x02\n\ + \x12\x06\x9b\x01\x02\x9f\x01\x03\x1a\xe7\x02\x20Gets\x20metadata\x20info\ rmation\x20about\x20the\x20specified\x20snapshot.\n\n\x20Note:\x20This\ \x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\ \x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availab\ @@ -9203,1044 +3792,526 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20might\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\ \x20is\x20not\n\x20recommended\x20for\x20production\x20use.\x20It\x20is\ \x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\n\x20policy.\ - \n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\xd6\x01\x06\x11\n\r\n\x05\x06\0\ - \x02\x0c\x02\x12\x04\xd6\x01\x12$\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\ - \xd6\x01/7\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\xd7\x01\x04\xd9\x01\x06\ - \n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xd7\x01\x04\xd9\x01\ - \x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\xda\x01\x042\n\x10\n\x08\x06\0\ - \x02\x0c\x04\x9b\x08\0\x12\x04\xda\x01\x042\n\xfb\x02\n\x04\x06\0\x02\r\ - \x12\x06\xe4\x01\x02\xe9\x01\x03\x1a\xea\x02\x20Lists\x20all\x20snapshot\ - s\x20associated\x20with\x20the\x20specified\x20cluster.\n\n\x20Note:\x20\ - This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtabl\ - e\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20availa\ - ble\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20featur\ - e\x20might\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20an\ - d\x20is\x20not\n\x20recommended\x20for\x20production\x20use.\x20It\x20is\ - \x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\n\x20policy.\ - \n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xe4\x01\x06\x13\n\r\n\x05\x06\0\x02\ - \r\x02\x12\x04\xe4\x01\x14(\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xe4\x013H\ - \n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xe5\x01\x04\xe7\x01\x06\n\x13\n\t\ - \x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xe5\x01\x04\xe7\x01\x06\n\r\n\x05\ - \x06\0\x02\r\x04\x12\x04\xe8\x01\x044\n\x10\n\x08\x06\0\x02\r\x04\x9b\ - \x08\0\x12\x04\xe8\x01\x044\n\xec\x02\n\x04\x06\0\x02\x0e\x12\x06\xf2\ - \x01\x02\xf7\x01\x03\x1a\xdb\x02\x20Permanently\x20deletes\x20the\x20spe\ + \n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\x9b\x01\x06\x11\n\r\n\x05\x06\0\x02\ + \n\x02\x12\x04\x9b\x01\x12$\n\r\n\x05\x06\0\x02\n\x03\x12\x04\x9b\x01/7\ + \n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\x9c\x01\x04\x9e\x01\x06\n\x13\n\t\ + \x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\x9c\x01\x04\x9e\x01\x06\n\xfb\x02\ + \n\x04\x06\0\x02\x0b\x12\x06\xa8\x01\x02\xac\x01\x03\x1a\xea\x02\x20List\ + s\x20all\x20snapshots\x20associated\x20with\x20the\x20specified\x20clust\ + er.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\ + \x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\ + \x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20custome\ + rs.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20backward-inc\ + ompatible\x20ways\x20and\x20is\x20not\n\x20recommended\x20for\x20product\ + ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\ + eprecation\n\x20policy.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xa8\x01\ + \x06\x13\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xa8\x01\x14(\n\r\n\x05\x06\ + \0\x02\x0b\x03\x12\x04\xa8\x013H\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\ + \xa9\x01\x04\xab\x01\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\ + \x06\xa9\x01\x04\xab\x01\x06\n\xec\x02\n\x04\x06\0\x02\x0c\x12\x06\xb5\ + \x01\x02\xb9\x01\x03\x1a\xdb\x02\x20Permanently\x20deletes\x20the\x20spe\ cified\x20snapshot.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\ \x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20featur\ e\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigta\ ble\x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\ \x20backward-incompatible\x20ways\x20and\x20is\x20not\n\x20recommended\ \x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\ - \x20SLA\x20or\x20deprecation\n\x20policy.\n\n\r\n\x05\x06\0\x02\x0e\x01\ - \x12\x04\xf2\x01\x06\x14\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\xf2\x01\x15\ - *\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\xf2\x015J\n\x0f\n\x05\x06\0\x02\ - \x0e\x04\x12\x06\xf3\x01\x04\xf5\x01\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\ - \xca\xbc\"\x12\x06\xf3\x01\x04\xf5\x01\x06\n\r\n\x05\x06\0\x02\x0e\x04\ - \x12\x04\xf6\x01\x042\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\ - \xf6\x01\x042\n\x98\x04\n\x04\x06\0\x02\x0f\x12\x06\x81\x02\x02\x8b\x02\ - \x03\x1a\x87\x04\x20Starts\x20creating\x20a\x20new\x20Cloud\x20Bigtable\ - \x20Backup.\x20\x20The\x20returned\x20backup\n\x20[long-running\x20opera\ - tion][google.longrunning.Operation]\x20can\x20be\x20used\x20to\n\x20trac\ - k\x20creation\x20of\x20the\x20backup.\x20The\n\x20[metadata][google.long\ - running.Operation.metadata]\x20field\x20type\x20is\n\x20[CreateBackupMet\ - adata][google.bigtable.admin.v2.CreateBackupMetadata].\x20The\n\x20[resp\ - onse][google.longrunning.Operation.response]\x20field\x20type\x20is\n\ - \x20[Backup][google.bigtable.admin.v2.Backup],\x20if\x20successful.\x20C\ - ancelling\x20the\n\x20returned\x20operation\x20will\x20stop\x20the\x20cr\ - eation\x20and\x20delete\x20the\x20backup.\n\n\r\n\x05\x06\0\x02\x0f\x01\ - \x12\x04\x81\x02\x06\x12\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\x81\x02\x13\ - &\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\x81\x021M\n\x0f\n\x05\x06\0\x02\ - \x0f\x04\x12\x06\x82\x02\x04\x85\x02\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\ - \xca\xbc\"\x12\x06\x82\x02\x04\x85\x02\x06\n\r\n\x05\x06\0\x02\x0f\x04\ - \x12\x04\x86\x02\x04E\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\ - \x86\x02\x04E\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\x87\x02\x04\x8a\x02\ - \x06\n\x11\n\x07\x06\0\x02\x0f\x04\x99\x08\x12\x06\x87\x02\x04\x8a\x02\ - \x06\nP\n\x04\x06\0\x02\x10\x12\x06\x8e\x02\x02\x93\x02\x03\x1a@\x20Gets\ - \x20metadata\x20on\x20a\x20pending\x20or\x20completed\x20Cloud\x20Bigtab\ - le\x20Backup.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\x8e\x02\x06\x0f\n\r\ - \n\x05\x06\0\x02\x10\x02\x12\x04\x8e\x02\x10\x20\n\r\n\x05\x06\0\x02\x10\ - \x03\x12\x04\x8e\x02+1\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\x8f\x02\x04\ - \x91\x02\x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\x8f\x02\ - \x04\x91\x02\x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\x92\x02\x042\n\x10\ - \n\x08\x06\0\x02\x10\x04\x9b\x08\0\x12\x04\x92\x02\x042\nG\n\x04\x06\0\ - \x02\x11\x12\x06\x96\x02\x02\x9c\x02\x03\x1a7\x20Updates\x20a\x20pending\ - \x20or\x20completed\x20Cloud\x20Bigtable\x20Backup.\n\n\r\n\x05\x06\0\ - \x02\x11\x01\x12\x04\x96\x02\x06\x12\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\ - \x96\x02\x13&\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\x96\x0217\n\x0f\n\x05\ - \x06\0\x02\x11\x04\x12\x06\x97\x02\x04\x9a\x02\x06\n\x13\n\t\x06\0\x02\ - \x11\x04\xb0\xca\xbc\"\x12\x06\x97\x02\x04\x9a\x02\x06\n\r\n\x05\x06\0\ - \x02\x11\x04\x12\x04\x9b\x02\x04@\n\x10\n\x08\x06\0\x02\x11\x04\x9b\x08\ - \0\x12\x04\x9b\x02\x04@\nG\n\x04\x06\0\x02\x12\x12\x06\x9f\x02\x02\xa4\ - \x02\x03\x1a7\x20Deletes\x20a\x20pending\x20or\x20completed\x20Cloud\x20\ - Bigtable\x20backup.\n\n\r\n\x05\x06\0\x02\x12\x01\x12\x04\x9f\x02\x06\ - \x12\n\r\n\x05\x06\0\x02\x12\x02\x12\x04\x9f\x02\x13&\n\r\n\x05\x06\0\ - \x02\x12\x03\x12\x04\x9f\x021F\n\x0f\n\x05\x06\0\x02\x12\x04\x12\x06\xa0\ - \x02\x04\xa2\x02\x06\n\x13\n\t\x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\ - \xa0\x02\x04\xa2\x02\x06\n\r\n\x05\x06\0\x02\x12\x04\x12\x04\xa3\x02\x04\ - 2\n\x10\n\x08\x06\0\x02\x12\x04\x9b\x08\0\x12\x04\xa3\x02\x042\n\\\n\x04\ - \x06\0\x02\x13\x12\x06\xa8\x02\x02\xad\x02\x03\x1aL\x20Lists\x20Cloud\ - \x20Bigtable\x20backups.\x20Returns\x20both\x20completed\x20and\x20pendi\ - ng\n\x20backups.\n\n\r\n\x05\x06\0\x02\x13\x01\x12\x04\xa8\x02\x06\x11\n\ - \r\n\x05\x06\0\x02\x13\x02\x12\x04\xa8\x02\x12$\n\r\n\x05\x06\0\x02\x13\ - \x03\x12\x04\xa8\x02/B\n\x0f\n\x05\x06\0\x02\x13\x04\x12\x06\xa9\x02\x04\ - \xab\x02\x06\n\x13\n\t\x06\0\x02\x13\x04\xb0\xca\xbc\"\x12\x06\xa9\x02\ - \x04\xab\x02\x06\n\r\n\x05\x06\0\x02\x13\x04\x12\x04\xac\x02\x044\n\x10\ - \n\x08\x06\0\x02\x13\x04\x9b\x08\0\x12\x04\xac\x02\x044\n\xe2\x03\n\x04\ - \x06\0\x02\x14\x12\x06\xb6\x02\x02\xbf\x02\x03\x1a\xd1\x03\x20Create\x20\ - a\x20new\x20table\x20by\x20restoring\x20from\x20a\x20completed\x20backup\ - .\x20\x20The\n\x20returned\x20table\x20[long-running\x20operation][googl\ - e.longrunning.Operation]\x20can\n\x20be\x20used\x20to\x20track\x20the\ - \x20progress\x20of\x20the\x20operation,\x20and\x20to\x20cancel\x20it.\ - \x20\x20The\n\x20[metadata][google.longrunning.Operation.metadata]\x20fi\ - eld\x20type\x20is\n\x20[RestoreTableMetadata][google.bigtable.admin.Rest\ - oreTableMetadata].\x20\x20The\n\x20[response][google.longrunning.Operati\ - on.response]\x20type\x20is\n\x20[Table][google.bigtable.admin.v2.Table],\ - \x20if\x20successful.\n\n\r\n\x05\x06\0\x02\x14\x01\x12\x04\xb6\x02\x06\ - \x12\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\xb6\x02\x13&\n\r\n\x05\x06\0\ - \x02\x14\x03\x12\x04\xb6\x021M\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\xb7\ - \x02\x04\xba\x02\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\xca\xbc\"\x12\x06\ - \xb7\x02\x04\xba\x02\x06\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\xbb\x02\ - \x04\xbe\x02\x06\n\x11\n\x07\x06\0\x02\x14\x04\x99\x08\x12\x06\xbb\x02\ - \x04\xbe\x02\x06\n\x8b\x01\n\x04\x06\0\x02\x15\x12\x06\xc3\x02\x02\xce\ - \x02\x03\x1a{\x20Copy\x20a\x20Cloud\x20Bigtable\x20backup\x20to\x20a\x20\ - new\x20backup\x20in\x20the\x20destination\x20cluster\n\x20located\x20in\ - \x20the\x20destination\x20instance\x20and\x20project.\n\n\r\n\x05\x06\0\ - \x02\x15\x01\x12\x04\xc3\x02\x06\x10\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\ - \xc3\x02\x11\"\n\r\n\x05\x06\0\x02\x15\x03\x12\x04\xc3\x02-I\n\x0f\n\x05\ - \x06\0\x02\x15\x04\x12\x06\xc4\x02\x04\xc7\x02\x06\n\x13\n\t\x06\0\x02\ - \x15\x04\xb0\xca\xbc\"\x12\x06\xc4\x02\x04\xc7\x02\x06\n\x0f\n\x05\x06\0\ - \x02\x15\x04\x12\x06\xc8\x02\x04\xc9\x025\n\x12\n\x08\x06\0\x02\x15\x04\ - \x9b\x08\0\x12\x06\xc8\x02\x04\xc9\x025\n\x0f\n\x05\x06\0\x02\x15\x04\ - \x12\x06\xca\x02\x04\xcd\x02\x06\n\x11\n\x07\x06\0\x02\x15\x04\x99\x08\ - \x12\x06\xca\x02\x04\xcd\x02\x06\n\xa2\x01\n\x04\x06\0\x02\x16\x12\x06\ - \xd3\x02\x02\xde\x02\x03\x1a\x91\x01\x20Gets\x20the\x20access\x20control\ - \x20policy\x20for\x20a\x20Table\x20or\x20Backup\x20resource.\n\x20Return\ - s\x20an\x20empty\x20policy\x20if\x20the\x20resource\x20exists\x20but\x20\ - does\x20not\x20have\x20a\x20policy\n\x20set.\n\n\r\n\x05\x06\0\x02\x16\ - \x01\x12\x04\xd3\x02\x06\x12\n\r\n\x05\x06\0\x02\x16\x02\x12\x04\xd3\x02\ - \x134\n\r\n\x05\x06\0\x02\x16\x03\x12\x04\xd4\x02\x0f#\n\x0f\n\x05\x06\0\ - \x02\x16\x04\x12\x06\xd5\x02\x04\xdc\x02\x06\n\x13\n\t\x06\0\x02\x16\x04\ - \xb0\xca\xbc\"\x12\x06\xd5\x02\x04\xdc\x02\x06\n\r\n\x05\x06\0\x02\x16\ - \x04\x12\x04\xdd\x02\x046\n\x10\n\x08\x06\0\x02\x16\x04\x9b\x08\0\x12\ - \x04\xdd\x02\x046\nn\n\x04\x06\0\x02\x17\x12\x06\xe2\x02\x02\xed\x02\x03\ - \x1a^\x20Sets\x20the\x20access\x20control\x20policy\x20on\x20a\x20Table\ - \x20or\x20Backup\x20resource.\n\x20Replaces\x20any\x20existing\x20policy\ - .\n\n\r\n\x05\x06\0\x02\x17\x01\x12\x04\xe2\x02\x06\x12\n\r\n\x05\x06\0\ - \x02\x17\x02\x12\x04\xe2\x02\x134\n\r\n\x05\x06\0\x02\x17\x03\x12\x04\ - \xe3\x02\x0f#\n\x0f\n\x05\x06\0\x02\x17\x04\x12\x06\xe4\x02\x04\xeb\x02\ - \x06\n\x13\n\t\x06\0\x02\x17\x04\xb0\xca\xbc\"\x12\x06\xe4\x02\x04\xeb\ - \x02\x06\n\r\n\x05\x06\0\x02\x17\x04\x12\x04\xec\x02\x04=\n\x10\n\x08\ - \x06\0\x02\x17\x04\x9b\x08\0\x12\x04\xec\x02\x04=\ne\n\x04\x06\0\x02\x18\ - \x12\x06\xf1\x02\x02\xfc\x02\x03\x1aU\x20Returns\x20permissions\x20that\ - \x20the\x20caller\x20has\x20on\x20the\x20specified\x20Table\x20or\x20Bac\ - kup\n\x20resource.\n\n\r\n\x05\x06\0\x02\x18\x01\x12\x04\xf1\x02\x06\x18\ - \n\r\n\x05\x06\0\x02\x18\x02\x12\x04\xf1\x02\x19@\n\r\n\x05\x06\0\x02\ - \x18\x03\x12\x04\xf2\x02\x0f7\n\x0f\n\x05\x06\0\x02\x18\x04\x12\x06\xf3\ - \x02\x04\xfa\x02\x06\n\x13\n\t\x06\0\x02\x18\x04\xb0\xca\xbc\"\x12\x06\ - \xf3\x02\x04\xfa\x02\x06\n\r\n\x05\x06\0\x02\x18\x04\x12\x04\xfb\x02\x04\ - B\n\x10\n\x08\x06\0\x02\x18\x04\x9b\x08\0\x12\x04\xfb\x02\x04B\nj\n\x02\ - \x04\0\x12\x06\x81\x03\0\x99\x03\x01\x1a\\\x20The\x20request\x20for\n\ - \x20[RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTa\ - ble].\n\n\x0b\n\x03\x04\0\x01\x12\x04\x81\x03\x08\x1b\n\x9f\x01\n\x04\ - \x04\0\x02\0\x12\x06\x84\x03\x02\x89\x03\x04\x1a\x8e\x01\x20Required.\ - \x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\ - \x20the\x20restored\n\x20table.\x20Values\x20are\x20of\x20the\x20form\ - \x20`projects//instances/`.\n\n\r\n\x05\x04\0\x02\0\ - \x05\x12\x04\x84\x03\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x84\x03\t\ - \x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x84\x03\x12\x13\n\x0f\n\x05\x04\0\ - \x02\0\x08\x12\x06\x84\x03\x14\x89\x03\x03\n\x10\n\x08\x04\0\x02\0\x08\ - \x9c\x08\0\x12\x04\x85\x03\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\ - \x06\x86\x03\x04\x88\x03\x05\n\xf5\x01\n\x04\x04\0\x02\x01\x12\x04\x8f\ - \x03\x02?\x1a\xe6\x01\x20Required.\x20The\x20id\x20of\x20the\x20table\ - \x20to\x20create\x20and\x20restore\x20to.\x20This\n\x20table\x20must\x20\ - not\x20already\x20exist.\x20The\x20`table_id`\x20appended\x20to\n\x20`pa\ - rent`\x20forms\x20the\x20full\x20table\x20name\x20of\x20the\x20form\n\ - \x20`projects//instances//tables/`.\n\n\r\n\ - \x05\x04\0\x02\x01\x05\x12\x04\x8f\x03\x02\x08\n\r\n\x05\x04\0\x02\x01\ - \x01\x12\x04\x8f\x03\t\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x8f\x03\ - \x14\x15\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\x8f\x03\x16>\n\x10\n\x08\ - \x04\0\x02\x01\x08\x9c\x08\0\x12\x04\x8f\x03\x17=\n=\n\x04\x04\0\x08\0\ - \x12\x06\x92\x03\x02\x98\x03\x03\x1a-\x20Required.\x20The\x20source\x20f\ - rom\x20which\x20to\x20restore.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\x92\ - \x03\x08\x0e\n\xa4\x01\n\x04\x04\0\x02\x02\x12\x06\x95\x03\x04\x97\x03\ - \x07\x1a\x93\x01\x20Name\x20of\x20the\x20backup\x20from\x20which\x20to\ - \x20restore.\x20\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//clusters//backups/`.\n\n\r\ - \n\x05\x04\0\x02\x02\x05\x12\x04\x95\x03\x04\n\n\r\n\x05\x04\0\x02\x02\ - \x01\x12\x04\x95\x03\x0b\x11\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x95\x03\ - \x14\x15\n\x0f\n\x05\x04\0\x02\x02\x08\x12\x06\x95\x03\x16\x97\x03\x06\n\ - \x11\n\x07\x04\0\x02\x02\x08\x9f\x08\x12\x06\x95\x03\x17\x97\x03\x05\n\ - \x94\x01\n\x02\x04\x01\x12\x06\x9d\x03\0\xba\x03\x01\x1a\x85\x01\x20Meta\ - data\x20type\x20for\x20the\x20long-running\x20operation\x20returned\x20b\ - y\n\x20[RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.Restor\ - eTable].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x9d\x03\x08\x1c\n@\n\x04\x04\ - \x01\x02\0\x12\x04\x9f\x03\x02\x12\x1a2\x20Name\x20of\x20the\x20table\ - \x20being\x20created\x20and\x20restored\x20to.\n\n\r\n\x05\x04\x01\x02\0\ - \x05\x12\x04\x9f\x03\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x9f\x03\ - \t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x9f\x03\x10\x11\n/\n\x04\x04\ - \x01\x02\x01\x12\x04\xa2\x03\x02$\x1a!\x20The\x20type\x20of\x20the\x20re\ - store\x20source.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xa2\x03\x02\x13\ - \n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xa2\x03\x14\x1f\n\r\n\x05\x04\x01\ - \x02\x01\x03\x12\x04\xa2\x03\"#\n\xad\x01\n\x04\x04\x01\x08\0\x12\x06\ - \xa7\x03\x02\xa9\x03\x03\x1a\x9c\x01\x20Information\x20about\x20the\x20s\ - ource\x20used\x20to\x20restore\x20the\x20table,\x20as\x20specified\x20by\ - \n\x20`source`\x20in\n\x20[RestoreTableRequest][google.bigtable.admin.v2\ - .RestoreTableRequest].\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xa7\x03\x08\ - \x13\n\x0c\n\x04\x04\x01\x02\x02\x12\x04\xa8\x03\x04\x1f\n\r\n\x05\x04\ - \x01\x02\x02\x06\x12\x04\xa8\x03\x04\x0e\n\r\n\x05\x04\x01\x02\x02\x01\ - \x12\x04\xa8\x03\x0f\x1a\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xa8\x03\ - \x1d\x1e\n\xca\x04\n\x04\x04\x01\x02\x03\x12\x04\xb4\x03\x02+\x1a\xbb\ - \x04\x20If\x20exists,\x20the\x20name\x20of\x20the\x20long-running\x20ope\ - ration\x20that\x20will\x20be\x20used\x20to\n\x20track\x20the\x20post-res\ - tore\x20optimization\x20process\x20to\x20optimize\x20the\x20performance\ - \x20of\n\x20the\x20restored\x20table.\x20The\x20metadata\x20type\x20of\ - \x20the\x20long-running\x20operation\x20is\n\x20[OptimizeRestoreTableMet\ - adata][].\x20The\x20response\x20type\x20is\n\x20[Empty][google.protobuf.\ - Empty].\x20This\x20long-running\x20operation\x20may\x20be\n\x20automatic\ - ally\x20created\x20by\x20the\x20system\x20if\x20applicable\x20after\x20t\ - he\n\x20RestoreTable\x20long-running\x20operation\x20completes\x20succes\ - sfully.\x20This\x20operation\n\x20may\x20not\x20be\x20created\x20if\x20t\ - he\x20table\x20is\x20already\x20optimized\x20or\x20the\x20restore\x20was\ - \n\x20not\x20successful.\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xb4\x03\ - \x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xb4\x03\t&\n\r\n\x05\x04\ - \x01\x02\x03\x03\x12\x04\xb4\x03)*\ny\n\x04\x04\x01\x02\x04\x12\x04\xb9\ - \x03\x02!\x1ak\x20The\x20progress\x20of\x20the\n\x20[RestoreTable][googl\ - e.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]\n\x20operation.\n\n\ - \r\n\x05\x04\x01\x02\x04\x06\x12\x04\xb9\x03\x02\x13\n\r\n\x05\x04\x01\ - \x02\x04\x01\x12\x04\xb9\x03\x14\x1c\n\r\n\x05\x04\x01\x02\x04\x03\x12\ - \x04\xb9\x03\x1f\x20\n\xa1\x02\n\x02\x04\x02\x12\x06\xc0\x03\0\xc6\x03\ - \x01\x1a\x92\x02\x20Metadata\x20type\x20for\x20the\x20long-running\x20op\ - eration\x20used\x20to\x20track\x20the\x20progress\n\x20of\x20optimizatio\ - ns\x20performed\x20on\x20a\x20newly\x20restored\x20table.\x20This\x20lon\ - g-running\n\x20operation\x20is\x20automatically\x20created\x20by\x20the\ - \x20system\x20after\x20the\x20successful\n\x20completion\x20of\x20a\x20t\ - able\x20restore,\x20and\x20cannot\x20be\x20cancelled.\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\xc0\x03\x08%\n;\n\x04\x04\x02\x02\0\x12\x04\xc2\x03\x02\ - \x12\x1a-\x20Name\x20of\x20the\x20restored\x20table\x20being\x20optimize\ - d.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xc2\x03\x02\x08\n\r\n\x05\x04\ - \x02\x02\0\x01\x12\x04\xc2\x03\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ - \xc2\x03\x10\x11\n?\n\x04\x04\x02\x02\x01\x12\x04\xc5\x03\x02!\x1a1\x20T\ - he\x20progress\x20of\x20the\x20post-restore\x20optimizations.\n\n\r\n\ - \x05\x04\x02\x02\x01\x06\x12\x04\xc5\x03\x02\x13\n\r\n\x05\x04\x02\x02\ - \x01\x01\x12\x04\xc5\x03\x14\x1c\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \xc5\x03\x1f\x20\n\x98\x01\n\x02\x04\x03\x12\x06\xca\x03\0\xf3\x03\x01\ - \x1a\x89\x01\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ - .BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableA\ - dmin.CreateTable]\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xca\x03\x08\x1a\nC\n\ - \x04\x04\x03\x03\0\x12\x06\xcc\x03\x02\xcf\x03\x03\x1a3\x20An\x20initial\ - \x20split\x20point\x20for\x20a\x20newly\x20created\x20table.\n\n\r\n\x05\ - \x04\x03\x03\0\x01\x12\x04\xcc\x03\n\x0f\n?\n\x06\x04\x03\x03\0\x02\0\ - \x12\x04\xce\x03\x04\x12\x1a/\x20Row\x20key\x20to\x20use\x20as\x20an\x20\ - initial\x20tablet\x20boundary.\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x05\x12\ - \x04\xce\x03\x04\t\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\xce\x03\n\ - \r\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xce\x03\x10\x11\n\x9d\x01\ - \n\x04\x04\x03\x02\0\x12\x06\xd3\x03\x02\xd8\x03\x04\x1a\x8c\x01\x20Requ\ - ired.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20in\x20which\ - \x20to\x20create\x20the\x20table.\n\x20Values\x20are\x20of\x20the\x20for\ - m\x20`projects/{project}/instances/{instance}`.\n\n\r\n\x05\x04\x03\x02\ - \0\x05\x12\x04\xd3\x03\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd3\ - \x03\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd3\x03\x12\x13\n\x0f\n\ - \x05\x04\x03\x02\0\x08\x12\x06\xd3\x03\x14\xd8\x03\x03\n\x10\n\x08\x04\ - \x03\x02\0\x08\x9c\x08\0\x12\x04\xd4\x03\x04*\n\x11\n\x07\x04\x03\x02\0\ - \x08\x9f\x08\x12\x06\xd5\x03\x04\xd7\x03\x05\n\xba\x01\n\x04\x04\x03\x02\ - \x01\x12\x04\xdd\x03\x02?\x1a\xab\x01\x20Required.\x20The\x20name\x20by\ - \x20which\x20the\x20new\x20table\x20should\x20be\x20referred\x20to\x20wi\ - thin\x20the\n\x20parent\x20instance,\x20e.g.,\x20`foobar`\x20rather\x20t\ - han\x20`{parent}/tables/foobar`.\n\x20Maximum\x2050\x20characters.\n\n\r\ - \n\x05\x04\x03\x02\x01\x05\x12\x04\xdd\x03\x02\x08\n\r\n\x05\x04\x03\x02\ - \x01\x01\x12\x04\xdd\x03\t\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xdd\ - \x03\x14\x15\n\r\n\x05\x04\x03\x02\x01\x08\x12\x04\xdd\x03\x16>\n\x10\n\ - \x08\x04\x03\x02\x01\x08\x9c\x08\0\x12\x04\xdd\x03\x17=\n.\n\x04\x04\x03\ - \x02\x02\x12\x04\xe0\x03\x02;\x1a\x20\x20Required.\x20The\x20Table\x20to\ - \x20create.\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xe0\x03\x02\x07\n\r\ - \n\x05\x04\x03\x02\x02\x01\x12\x04\xe0\x03\x08\r\n\r\n\x05\x04\x03\x02\ - \x02\x03\x12\x04\xe0\x03\x10\x11\n\r\n\x05\x04\x03\x02\x02\x08\x12\x04\ - \xe0\x03\x12:\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\x04\xe0\x03\ - \x139\n\x99\x06\n\x04\x04\x03\x02\x03\x12\x04\xf2\x03\x02$\x1a\x8a\x06\ - \x20The\x20optional\x20list\x20of\x20row\x20keys\x20that\x20will\x20be\ - \x20used\x20to\x20initially\x20split\x20the\n\x20table\x20into\x20severa\ - l\x20tablets\x20(tablets\x20are\x20similar\x20to\x20HBase\x20regions).\n\ - \x20Given\x20two\x20split\x20keys,\x20`s1`\x20and\x20`s2`,\x20three\x20t\ - ablets\x20will\x20be\x20created,\n\x20spanning\x20the\x20key\x20ranges:\ - \x20`[,\x20s1),\x20[s1,\x20s2),\x20[s2,\x20)`.\n\n\x20Example:\n\n\x20*\ - \x20Row\x20keys\x20:=\x20`[\"a\",\x20\"apple\",\x20\"custom\",\x20\"cust\ - omer_1\",\x20\"customer_2\",`\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20`\"other\",\x20\"zz\"]`\n\x20*\x20initial_split_\ - keys\x20:=\x20`[\"apple\",\x20\"customer_1\",\x20\"customer_2\",\x20\"ot\ - her\"]`\n\x20*\x20Key\x20assignment:\n\x20\x20\x20\x20\x20-\x20Tablet\ - \x201\x20`[,\x20apple)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20=>\x20{\"a\"}.`\n\x20\x20\x20\x20\x20-\x20Tablet\x202\ - \x20`[apple,\x20customer_1)\x20\x20\x20\x20\x20\x20=>\x20{\"apple\",\x20\ - \"custom\"}.`\n\x20\x20\x20\x20\x20-\x20Tablet\x203\x20`[customer_1,\x20\ - customer_2)\x20=>\x20{\"customer_1\"}.`\n\x20\x20\x20\x20\x20-\x20Tablet\ - \x204\x20`[customer_2,\x20other)\x20\x20\x20\x20\x20\x20=>\x20{\"custome\ - r_2\"}.`\n\x20\x20\x20\x20\x20-\x20Tablet\x205\x20`[other,\x20)\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20{\"other\"\ - ,\x20\"zz\"}.`\n\n\r\n\x05\x04\x03\x02\x03\x04\x12\x04\xf2\x03\x02\n\n\r\ - \n\x05\x04\x03\x02\x03\x06\x12\x04\xf2\x03\x0b\x10\n\r\n\x05\x04\x03\x02\ - \x03\x01\x12\x04\xf2\x03\x11\x1f\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\ - \xf2\x03\"#\n\xdd\x03\n\x02\x04\x04\x12\x06\xfc\x03\0\x94\x04\x01\x1a\ - \xce\x03\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2.Big\ - tableTableAdmin.CreateTableFromSnapshot][google.bigtable.admin.v2.Bigtab\ - leTableAdmin.CreateTableFromSnapshot]\n\n\x20Note:\x20This\x20is\x20a\ - \x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\ - \x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20mo\ - st\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20b\ - e\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\ - \x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20sub\ - ject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\ - \x04\x04\x01\x12\x04\xfc\x03\x08&\n\x9d\x01\n\x04\x04\x04\x02\0\x12\x06\ - \xff\x03\x02\x84\x04\x04\x1a\x8c\x01\x20Required.\x20The\x20unique\x20na\ - me\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20the\x20tab\ - le.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects/{project}/insta\ - nces/{instance}`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xff\x03\x02\x08\ - \n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xff\x03\t\x0f\n\r\n\x05\x04\x04\x02\ - \0\x03\x12\x04\xff\x03\x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xff\ - \x03\x14\x84\x04\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x80\ - \x04\x04*\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x81\x04\x04\x83\ - \x04\x05\n\xa2\x01\n\x04\x04\x04\x02\x01\x12\x04\x88\x04\x02?\x1a\x93\ - \x01\x20Required.\x20The\x20name\x20by\x20which\x20the\x20new\x20table\ - \x20should\x20be\x20referred\x20to\x20within\x20the\n\x20parent\x20insta\ - nce,\x20e.g.,\x20`foobar`\x20rather\x20than\x20`{parent}/tables/foobar`.\ - \n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x88\x04\x02\x08\n\r\n\x05\x04\ - \x04\x02\x01\x01\x12\x04\x88\x04\t\x11\n\r\n\x05\x04\x04\x02\x01\x03\x12\ - \x04\x88\x04\x14\x15\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\x88\x04\x16>\ - \n\x10\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\x88\x04\x17=\n\x83\ - \x02\n\x04\x04\x04\x02\x02\x12\x06\x8e\x04\x02\x93\x04\x04\x1a\xf2\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20snapshot\x20from\ - \x20which\x20to\x20restore\x20the\x20table.\n\x20The\x20snapshot\x20and\ - \x20the\x20table\x20must\x20be\x20in\x20the\x20same\x20instance.\x20Valu\ - es\x20are\x20of\x20the\n\x20form\n\x20`projects/{project}/instances/{ins\ - tance}/clusters/{cluster}/snapshots/{snapshot}`.\n\n\r\n\x05\x04\x04\x02\ - \x02\x05\x12\x04\x8e\x04\x02\x08\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\ - \x8e\x04\t\x18\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x8e\x04\x1b\x1c\n\ - \x0f\n\x05\x04\x04\x02\x02\x08\x12\x06\x8e\x04\x1d\x93\x04\x03\n\x10\n\ - \x08\x04\x04\x02\x02\x08\x9c\x08\0\x12\x04\x8f\x04\x04*\n\x11\n\x07\x04\ - \x04\x02\x02\x08\x9f\x08\x12\x06\x90\x04\x04\x92\x04\x05\n\x9a\x01\n\x02\ - \x04\x05\x12\x06\x98\x04\0\xac\x04\x01\x1a\x8b\x01\x20Request\x20message\ - \x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange][\ - google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange]\n\n\x0b\n\x03\ - \x04\x05\x01\x12\x04\x98\x04\x08\x1b\n\xae\x01\n\x04\x04\x05\x02\0\x12\ - \x06\x9c\x04\x02\xa1\x04\x04\x1a\x9d\x01\x20Required.\x20The\x20unique\ - \x20name\x20of\x20the\x20table\x20on\x20which\x20to\x20drop\x20a\x20rang\ - e\x20of\x20rows.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/\ - {project}/instances/{instance}/tables/{table}`.\n\n\r\n\x05\x04\x05\x02\ - \0\x05\x12\x04\x9c\x04\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x9c\ - \x04\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x9c\x04\x10\x11\n\x0f\n\x05\ - \x04\x05\x02\0\x08\x12\x06\x9c\x04\x12\xa1\x04\x03\n\x10\n\x08\x04\x05\ - \x02\0\x08\x9c\x08\0\x12\x04\x9d\x04\x04*\n\x11\n\x07\x04\x05\x02\0\x08\ - \x9f\x08\x12\x06\x9e\x04\x04\xa0\x04\x05\n/\n\x04\x04\x05\x08\0\x12\x06\ - \xa4\x04\x02\xab\x04\x03\x1a\x1f\x20Delete\x20all\x20rows\x20or\x20by\ - \x20prefix.\n\n\r\n\x05\x04\x05\x08\0\x01\x12\x04\xa4\x04\x08\x0e\nc\n\ - \x04\x04\x05\x02\x01\x12\x04\xa7\x04\x04\x1d\x1aU\x20Delete\x20all\x20ro\ - ws\x20that\x20start\x20with\x20this\x20row\x20key\x20prefix.\x20Prefix\ - \x20cannot\x20be\n\x20zero\x20length.\n\n\r\n\x05\x04\x05\x02\x01\x05\ - \x12\x04\xa7\x04\x04\t\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xa7\x04\n\ - \x18\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xa7\x04\x1b\x1c\nO\n\x04\x04\ - \x05\x02\x02\x12\x04\xaa\x04\x04(\x1aA\x20Delete\x20all\x20rows\x20in\ - \x20the\x20table.\x20Setting\x20this\x20to\x20false\x20is\x20a\x20no-op.\ - \n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xaa\x04\x04\x08\n\r\n\x05\x04\ - \x05\x02\x02\x01\x12\x04\xaa\x04\t#\n\r\n\x05\x04\x05\x02\x02\x03\x12\ - \x04\xaa\x04&'\n\x96\x01\n\x02\x04\x06\x12\x06\xb0\x04\0\xcb\x04\x01\x1a\ - \x87\x01\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2.Big\ - tableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.\ - ListTables]\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xb0\x04\x08\x19\n\xa2\x01\ - \n\x04\x04\x06\x02\0\x12\x06\xb3\x04\x02\xb8\x04\x04\x1a\x91\x01\x20Requ\ - ired.\x20The\x20unique\x20name\x20of\x20the\x20instance\x20for\x20which\ - \x20tables\x20should\x20be\n\x20listed.\x20Values\x20are\x20of\x20the\ - \x20form\x20`projects/{project}/instances/{instance}`.\n\n\r\n\x05\x04\ - \x06\x02\0\x05\x12\x04\xb3\x04\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\ - \x04\xb3\x04\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xb3\x04\x12\x13\n\ - \x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xb3\x04\x14\xb8\x04\x03\n\x10\n\x08\ - \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xb4\x04\x04*\n\x11\n\x07\x04\x06\ - \x02\0\x08\x9f\x08\x12\x06\xb5\x04\x04\xb7\x04\x05\n\x84\x01\n\x04\x04\ - \x06\x02\x01\x12\x04\xbc\x04\x02\x16\x1av\x20The\x20view\x20to\x20be\x20\ - applied\x20to\x20the\x20returned\x20tables'\x20fields.\n\x20NAME_ONLY\ - \x20view\x20(default)\x20and\x20REPLICATION_VIEW\x20are\x20supported.\n\ - \n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\xbc\x04\x02\x0c\n\r\n\x05\x04\x06\ - \x02\x01\x01\x12\x04\xbc\x04\r\x11\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\ - \xbc\x04\x14\x15\n\xbd\x03\n\x04\x04\x06\x02\x02\x12\x04\xc7\x04\x02\x16\ - \x1a\xae\x03\x20Maximum\x20number\x20of\x20results\x20per\x20page.\n\n\ - \x20A\x20page_size\x20of\x20zero\x20lets\x20the\x20server\x20choose\x20t\ - he\x20number\x20of\x20items\x20to\x20return.\n\x20A\x20page_size\x20whic\ - h\x20is\x20strictly\x20positive\x20will\x20return\x20at\x20most\x20that\ - \x20many\x20items.\n\x20A\x20negative\x20page_size\x20will\x20cause\x20a\ - n\x20error.\n\n\x20Following\x20the\x20first\x20request,\x20subsequent\ - \x20paginated\x20calls\x20are\x20not\x20required\n\x20to\x20pass\x20a\ - \x20page_size.\x20If\x20a\x20page_size\x20is\x20set\x20in\x20subsequent\ - \x20calls,\x20it\x20must\n\x20match\x20the\x20page_size\x20given\x20in\ - \x20the\x20first\x20request.\n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\xc7\ - \x04\x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xc7\x04\x08\x11\n\r\n\ - \x05\x04\x06\x02\x02\x03\x12\x04\xc7\x04\x14\x15\nK\n\x04\x04\x06\x02\ - \x03\x12\x04\xca\x04\x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_to\ - ken`\x20returned\x20by\x20a\x20previous\x20call.\n\n\r\n\x05\x04\x06\x02\ - \x03\x05\x12\x04\xca\x04\x02\x08\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\ - \xca\x04\t\x13\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\xca\x04\x16\x17\n\ - \x97\x01\n\x02\x04\x07\x12\x06\xcf\x04\0\xd7\x04\x01\x1a\x88\x01\x20Resp\ - onse\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin\ - .ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables]\n\n\ - \x0b\n\x03\x04\x07\x01\x12\x04\xcf\x04\x08\x1a\n=\n\x04\x04\x07\x02\0\ - \x12\x04\xd1\x04\x02\x1c\x1a/\x20The\x20tables\x20present\x20in\x20the\ - \x20requested\x20instance.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xd1\x04\ - \x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\xd1\x04\x0b\x10\n\r\n\x05\x04\ - \x07\x02\0\x01\x12\x04\xd1\x04\x11\x17\n\r\n\x05\x04\x07\x02\0\x03\x12\ - \x04\xd1\x04\x1a\x1b\n\xa4\x01\n\x04\x04\x07\x02\x01\x12\x04\xd6\x04\x02\ - \x1d\x1a\x95\x01\x20Set\x20if\x20not\x20all\x20tables\x20could\x20be\x20\ - returned\x20in\x20a\x20single\x20response.\n\x20Pass\x20this\x20value\ - \x20to\x20`page_token`\x20in\x20another\x20request\x20to\x20get\x20the\ - \x20next\n\x20page\x20of\x20results.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\ - \x04\xd6\x04\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xd6\x04\t\x18\ - \n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xd6\x04\x1b\x1c\n\x92\x01\n\x02\ - \x04\x08\x12\x06\xdb\x04\0\xe9\x04\x01\x1a\x83\x01\x20Request\x20message\ - \x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GetTable][goog\ - le.bigtable.admin.v2.BigtableTableAdmin.GetTable]\n\n\x0b\n\x03\x04\x08\ - \x01\x12\x04\xdb\x04\x08\x17\n\x97\x01\n\x04\x04\x08\x02\0\x12\x06\xdf\ - \x04\x02\xe4\x04\x04\x1a\x86\x01\x20Required.\x20The\x20unique\x20name\ - \x20of\x20the\x20requested\x20table.\n\x20Values\x20are\x20of\x20the\x20\ - form\n\x20`projects/{project}/instances/{instance}/tables/{table}`.\n\n\ - \r\n\x05\x04\x08\x02\0\x05\x12\x04\xdf\x04\x02\x08\n\r\n\x05\x04\x08\x02\ - \0\x01\x12\x04\xdf\x04\t\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xdf\x04\ - \x10\x11\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xdf\x04\x12\xe4\x04\x03\n\ - \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xe0\x04\x04*\n\x11\n\x07\ - \x04\x08\x02\0\x08\x9f\x08\x12\x06\xe1\x04\x04\xe3\x04\x05\nq\n\x04\x04\ - \x08\x02\x01\x12\x04\xe8\x04\x02\x16\x1ac\x20The\x20view\x20to\x20be\x20\ - applied\x20to\x20the\x20returned\x20table's\x20fields.\n\x20Defaults\x20\ - to\x20`SCHEMA_VIEW`\x20if\x20unspecified.\n\n\r\n\x05\x04\x08\x02\x01\ - \x06\x12\x04\xe8\x04\x02\x0c\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xe8\ - \x04\r\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xe8\x04\x14\x15\nh\n\ - \x02\x04\t\x12\x06\xed\x04\0\x80\x05\x01\x1aZ\x20The\x20request\x20for\n\ - \x20[UpdateTable][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTabl\ - e].\n\n\x0b\n\x03\x04\t\x01\x12\x04\xed\x04\x08\x1a\nq\n\x04\x04\t\x02\0\ - \x12\x04\xf0\x04\x02;\x1ac\x20Required.\x20The\x20table\x20to\x20update.\ - \n\x20The\x20table's\x20`name`\x20field\x20is\x20used\x20to\x20identify\ - \x20the\x20table\x20to\x20update.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\ - \xf0\x04\x02\x07\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xf0\x04\x08\r\n\r\n\ - \x05\x04\t\x02\0\x03\x12\x04\xf0\x04\x10\x11\n\r\n\x05\x04\t\x02\0\x08\ - \x12\x04\xf0\x04\x12:\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xf0\ - \x04\x139\n\x96\x04\n\x04\x04\t\x02\x01\x12\x06\xfe\x04\x02\xff\x04/\x1a\ - \x85\x04\x20Required.\x20The\x20list\x20of\x20fields\x20to\x20update.\n\ - \x20A\x20mask\x20specifying\x20which\x20fields\x20(e.g.\x20`change_strea\ - m_config`)\x20in\x20the\x20`table`\n\x20field\x20should\x20be\x20updated\ - .\x20This\x20mask\x20is\x20relative\x20to\x20the\x20`table`\x20field,\ - \x20not\x20to\n\x20the\x20request\x20message.\x20The\x20wildcard\x20(*)\ - \x20path\x20is\x20currently\x20not\x20supported.\n\x20Currently\x20Updat\ - eTable\x20is\x20only\x20supported\x20for\x20the\x20following\x20fields:\ - \n\n\x20*\x20`change_stream_config`\n\x20*\x20`change_stream_config.rete\ - ntion_period`\n\x20*\x20`deletion_protection`\n\n\x20If\x20`column_famil\ - ies`\x20is\x20set\x20in\x20`update_mask`,\x20it\x20will\x20return\x20an\ - \n\x20UNIMPLEMENTED\x20error.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xfe\ - \x04\x02\x1b\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xfe\x04\x1c'\n\r\n\x05\ - \x04\t\x02\x01\x03\x12\x04\xfe\x04*+\n\r\n\x05\x04\t\x02\x01\x08\x12\x04\ - \xff\x04\x06.\n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xff\x04\ - \x07-\n\x84\x01\n\x02\x04\n\x12\x06\x84\x05\0\x8d\x05\x01\x1av\x20Metada\ - ta\x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20[UpdateTabl\ - e][google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable].\n\n\x0b\n\ - \x03\x04\n\x01\x12\x04\x84\x05\x08\x1b\n4\n\x04\x04\n\x02\0\x12\x04\x86\ - \x05\x02\x12\x1a&\x20The\x20name\x20of\x20the\x20table\x20being\x20updat\ - ed.\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x86\x05\x02\x08\n\r\n\x05\x04\n\ - \x02\0\x01\x12\x04\x86\x05\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x86\x05\ - \x10\x11\n9\n\x04\x04\n\x02\x01\x12\x04\x89\x05\x02+\x1a+\x20The\x20time\ - \x20at\x20which\x20this\x20operation\x20started.\n\n\r\n\x05\x04\n\x02\ - \x01\x06\x12\x04\x89\x05\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x89\ - \x05\x1c&\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\x89\x05)*\nR\n\x04\x04\n\ - \x02\x02\x12\x04\x8c\x05\x02)\x1aD\x20If\x20set,\x20the\x20time\x20at\ - \x20which\x20this\x20operation\x20finished\x20or\x20was\x20canceled.\n\n\ - \r\n\x05\x04\n\x02\x02\x06\x12\x04\x8c\x05\x02\x1b\n\r\n\x05\x04\n\x02\ - \x02\x01\x12\x04\x8c\x05\x1c$\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\x8c\ - \x05'(\n\x98\x01\n\x02\x04\x0b\x12\x06\x91\x05\0\x9b\x05\x01\x1a\x89\x01\ + \x20SLA\x20or\x20deprecation\n\x20policy.\n\n\r\n\x05\x06\0\x02\x0c\x01\ + \x12\x04\xb5\x01\x06\x14\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xb5\x01\x15\ + *\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xb5\x015J\n\x0f\n\x05\x06\0\x02\ + \x0c\x04\x12\x06\xb6\x01\x04\xb8\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\ + \xca\xbc\"\x12\x06\xb6\x01\x04\xb8\x01\x06\n\x93\x01\n\x04\x06\0\x02\r\ + \x12\x06\xbd\x01\x02\xc2\x01\x03\x1a\x82\x01\x20Gets\x20the\x20access\ + \x20control\x20policy\x20for\x20a\x20table\x20resource.\x20Returns\x20an\ + \x20empty\n\x20policy\x20if\x20an\x20table\x20exists\x20but\x20does\x20n\ + ot\x20have\x20a\x20policy\x20set.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\ + \xbd\x01\x06\x12\n\r\n\x05\x06\0\x02\r\x02\x12\x04\xbd\x01\x134\n\r\n\ + \x05\x06\0\x02\r\x03\x12\x04\xbd\x01?S\n\x0f\n\x05\x06\0\x02\r\x04\x12\ + \x06\xbe\x01\x04\xc1\x01\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\ + \x06\xbe\x01\x04\xc1\x01\x06\nd\n\x04\x06\0\x02\x0e\x12\x06\xc6\x01\x02\ + \xcb\x01\x03\x1aT\x20Sets\x20the\x20access\x20control\x20policy\x20on\ + \x20a\x20table\x20resource.\x20Replaces\x20any\x20existing\n\x20policy.\ + \n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xc6\x01\x06\x12\n\r\n\x05\x06\0\ + \x02\x0e\x02\x12\x04\xc6\x01\x134\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\ + \xc6\x01?S\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xc7\x01\x04\xca\x01\x06\ + \n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xc7\x01\x04\xca\x01\ + \x06\nZ\n\x04\x06\0\x02\x0f\x12\x06\xce\x01\x02\xd3\x01\x03\x1aJ\x20Retu\ + rns\x20permissions\x20that\x20the\x20caller\x20has\x20on\x20the\x20speci\ + fied\x20table\x20resource.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\x04\xce\x01\ + \x06\x18\n\r\n\x05\x06\0\x02\x0f\x02\x12\x04\xce\x01\x19@\n\r\n\x05\x06\ + \0\x02\x0f\x03\x12\x04\xce\x01Ks\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\ + \xcf\x01\x04\xd2\x01\x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\ + \x06\xcf\x01\x04\xd2\x01\x06\n\x98\x01\n\x02\x04\0\x12\x06\xd8\x01\0\xfb\ + \x01\x01\x1a\x89\x01\x20Request\x20message\x20for\n\x20[google.bigtable.\ + admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.Bigtab\ + leTableAdmin.CreateTable]\n\n\x0b\n\x03\x04\0\x01\x12\x04\xd8\x01\x08\ + \x1a\nC\n\x04\x04\0\x03\0\x12\x06\xda\x01\x02\xdd\x01\x03\x1a3\x20An\x20\ + initial\x20split\x20point\x20for\x20a\x20newly\x20created\x20table.\n\n\ + \r\n\x05\x04\0\x03\0\x01\x12\x04\xda\x01\n\x0f\n?\n\x06\x04\0\x03\0\x02\ + \0\x12\x04\xdc\x01\x04\x12\x1a/\x20Row\x20key\x20to\x20use\x20as\x20an\ + \x20initial\x20tablet\x20boundary.\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x05\ + \x12\x04\xdc\x01\x04\t\n\x0f\n\x07\x04\0\x03\0\x02\0\x01\x12\x04\xdc\x01\ + \n\r\n\x0f\n\x07\x04\0\x03\0\x02\0\x03\x12\x04\xdc\x01\x10\x11\n\x91\x01\ + \n\x04\x04\0\x02\0\x12\x04\xe1\x01\x02\x14\x1a\x82\x01\x20The\x20unique\ + \x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20the\ + \x20table.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xe1\x01\x02\ + \x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xe1\x01\t\x0f\n\r\n\x05\x04\0\x02\ + \0\x03\x12\x04\xe1\x01\x12\x13\n\x98\x01\n\x04\x04\0\x02\x01\x12\x04\xe5\ + \x01\x02\x16\x1a\x89\x01\x20The\x20name\x20by\x20which\x20the\x20new\x20\ + table\x20should\x20be\x20referred\x20to\x20within\x20the\x20parent\n\x20\ + instance,\x20e.g.,\x20`foobar`\x20rather\x20than\x20`/tables/foo\ + bar`.\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xe5\x01\x02\x08\n\r\n\x05\ + \x04\0\x02\x01\x01\x12\x04\xe5\x01\t\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\ + \x04\xe5\x01\x14\x15\n$\n\x04\x04\0\x02\x02\x12\x04\xe8\x01\x02\x12\x1a\ + \x16\x20The\x20Table\x20to\x20create.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\ + \x04\xe8\x01\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xe8\x01\x08\r\n\ + \r\n\x05\x04\0\x02\x02\x03\x12\x04\xe8\x01\x10\x11\n\x99\x06\n\x04\x04\0\ + \x02\x03\x12\x04\xfa\x01\x02$\x1a\x8a\x06\x20The\x20optional\x20list\x20\ + of\x20row\x20keys\x20that\x20will\x20be\x20used\x20to\x20initially\x20sp\ + lit\x20the\n\x20table\x20into\x20several\x20tablets\x20(tablets\x20are\ + \x20similar\x20to\x20HBase\x20regions).\n\x20Given\x20two\x20split\x20ke\ + ys,\x20`s1`\x20and\x20`s2`,\x20three\x20tablets\x20will\x20be\x20created\ + ,\n\x20spanning\x20the\x20key\x20ranges:\x20`[,\x20s1),\x20[s1,\x20s2),\ + \x20[s2,\x20)`.\n\n\x20Example:\n\n\x20*\x20Row\x20keys\x20:=\x20`[\"a\"\ + ,\x20\"apple\",\x20\"custom\",\x20\"customer_1\",\x20\"customer_2\",`\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`\"other\ + \",\x20\"zz\"]`\n\x20*\x20initial_split_keys\x20:=\x20`[\"apple\",\x20\"\ + customer_1\",\x20\"customer_2\",\x20\"other\"]`\n\x20*\x20Key\x20assignm\ + ent:\n\x20\x20\x20\x20\x20-\x20Tablet\x201\x20`[,\x20apple)\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20{\"a\"}.`\n\ + \x20\x20\x20\x20\x20-\x20Tablet\x202\x20`[apple,\x20customer_1)\x20\x20\ + \x20\x20\x20\x20=>\x20{\"apple\",\x20\"custom\"}.`\n\x20\x20\x20\x20\x20\ + -\x20Tablet\x203\x20`[customer_1,\x20customer_2)\x20=>\x20{\"customer_1\ + \"}.`\n\x20\x20\x20\x20\x20-\x20Tablet\x204\x20`[customer_2,\x20other)\ + \x20\x20\x20\x20\x20\x20=>\x20{\"customer_2\"}.`\n\x20\x20\x20\x20\x20-\ + \x20Tablet\x205\x20`[other,\x20)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20=>\x20{\"other\",\x20\"zz\"}.`\n\n\r\n\x05\x04\0\ + \x02\x03\x04\x12\x04\xfa\x01\x02\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\ + \xfa\x01\x0b\x10\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xfa\x01\x11\x1f\n\r\ + \n\x05\x04\0\x02\x03\x03\x12\x04\xfa\x01\"#\n\xdd\x03\n\x02\x04\x01\x12\ + \x06\x84\x02\0\x92\x02\x01\x1a\xce\x03\x20Request\x20message\x20for\n\ + \x20[google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot\ + ][google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot]\n\ + \n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20C\ + loud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20curr\ + ently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20T\ + his\n\x20feature\x20might\x20be\x20changed\x20in\x20backward-incompatibl\ + e\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20production\x20u\ + se.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecati\ + on\x20policy.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x84\x02\x08&\n\x91\x01\n\ + \x04\x04\x01\x02\0\x12\x04\x87\x02\x02\x14\x1a\x82\x01\x20The\x20unique\ + \x20name\x20of\x20the\x20instance\x20in\x20which\x20to\x20create\x20the\ + \x20table.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x87\x02\ + \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x87\x02\t\x0f\n\r\n\x05\x04\ + \x01\x02\0\x03\x12\x04\x87\x02\x12\x13\n\x98\x01\n\x04\x04\x01\x02\x01\ + \x12\x04\x8b\x02\x02\x16\x1a\x89\x01\x20The\x20name\x20by\x20which\x20th\ + e\x20new\x20table\x20should\x20be\x20referred\x20to\x20within\x20the\x20\ + parent\n\x20instance,\x20e.g.,\x20`foobar`\x20rather\x20than\x20`/tables/foobar`.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x8b\x02\x02\ + \x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x8b\x02\t\x11\n\r\n\x05\x04\ + \x01\x02\x01\x03\x12\x04\x8b\x02\x14\x15\n\xf7\x01\n\x04\x04\x01\x02\x02\ + \x12\x04\x91\x02\x02\x1d\x1a\xe8\x01\x20The\x20unique\x20name\x20of\x20t\ + he\x20snapshot\x20from\x20which\x20to\x20restore\x20the\x20table.\x20The\ + \n\x20snapshot\x20and\x20the\x20table\x20must\x20be\x20in\x20the\x20same\ + \x20instance.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//clusters//snapshots/`.\n\ + \n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x91\x02\x02\x08\n\r\n\x05\x04\x01\ + \x02\x02\x01\x12\x04\x91\x02\t\x18\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ + \x91\x02\x1b\x1c\n\x9a\x01\n\x02\x04\x02\x12\x06\x96\x02\0\xa5\x02\x01\ + \x1a\x8b\x01\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ + .BigtableTableAdmin.DropRowRange][google.bigtable.admin.v2.BigtableTable\ + Admin.DropRowRange]\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x96\x02\x08\x1b\n\ + \xa2\x01\n\x04\x04\x02\x02\0\x12\x04\x9a\x02\x02\x12\x1a\x93\x01\x20The\ + \x20unique\x20name\x20of\x20the\x20table\x20on\x20which\x20to\x20drop\ + \x20a\x20range\x20of\x20rows.\n\x20Values\x20are\x20of\x20the\x20form\n\ + \x20`projects//instances//tables/
`.\n\n\r\n\ + \x05\x04\x02\x02\0\x05\x12\x04\x9a\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\x9a\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x9a\x02\x10\ + \x11\n/\n\x04\x04\x02\x08\0\x12\x06\x9d\x02\x02\xa4\x02\x03\x1a\x1f\x20D\ + elete\x20all\x20rows\x20or\x20by\x20prefix.\n\n\r\n\x05\x04\x02\x08\0\ + \x01\x12\x04\x9d\x02\x08\x0e\nc\n\x04\x04\x02\x02\x01\x12\x04\xa0\x02\ + \x04\x1d\x1aU\x20Delete\x20all\x20rows\x20that\x20start\x20with\x20this\ + \x20row\x20key\x20prefix.\x20Prefix\x20cannot\x20be\n\x20zero\x20length.\ + \n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xa0\x02\x04\t\n\r\n\x05\x04\x02\ + \x02\x01\x01\x12\x04\xa0\x02\n\x18\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ + \xa0\x02\x1b\x1c\nO\n\x04\x04\x02\x02\x02\x12\x04\xa3\x02\x04(\x1aA\x20D\ + elete\x20all\x20rows\x20in\x20the\x20table.\x20Setting\x20this\x20to\x20\ + false\x20is\x20a\x20no-op.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\xa3\ + \x02\x04\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xa3\x02\t#\n\r\n\x05\ + \x04\x02\x02\x02\x03\x12\x04\xa3\x02&'\n\x96\x01\n\x02\x04\x03\x12\x06\ + \xa9\x02\0\xb8\x02\x01\x1a\x87\x01\x20Request\x20message\x20for\n\x20[go\ + ogle.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.ad\ + min.v2.BigtableTableAdmin.ListTables]\n\n\x0b\n\x03\x04\x03\x01\x12\x04\ + \xa9\x02\x08\x19\n\x96\x01\n\x04\x04\x03\x02\0\x12\x04\xac\x02\x02\x14\ + \x1a\x87\x01\x20The\x20unique\x20name\x20of\x20the\x20instance\x20for\ + \x20which\x20tables\x20should\x20be\x20listed.\n\x20Values\x20are\x20of\ + \x20the\x20form\x20`projects//instances/`.\n\n\r\n\ + \x05\x04\x03\x02\0\x05\x12\x04\xac\x02\x02\x08\n\r\n\x05\x04\x03\x02\0\ + \x01\x12\x04\xac\x02\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xac\x02\ + \x12\x13\n\x93\x01\n\x04\x04\x03\x02\x01\x12\x04\xb0\x02\x02\x16\x1a\x84\ + \x01\x20The\x20view\x20to\x20be\x20applied\x20to\x20the\x20returned\x20t\ + ables'\x20fields.\n\x20Defaults\x20to\x20`NAME_ONLY`\x20if\x20unspecifie\ + d;\x20no\x20others\x20are\x20currently\x20supported.\n\n\r\n\x05\x04\x03\ + \x02\x01\x06\x12\x04\xb0\x02\x02\x0c\n\r\n\x05\x04\x03\x02\x01\x01\x12\ + \x04\xb0\x02\r\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xb0\x02\x14\x15\ + \nY\n\x04\x04\x03\x02\x02\x12\x04\xb4\x02\x02\x16\x1aK\x20Maximum\x20num\ + ber\x20of\x20results\x20per\x20page.\n\x20CURRENTLY\x20UNIMPLEMENTED\x20\ + AND\x20IGNORED.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xb4\x02\x02\x07\ + \n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xb4\x02\x08\x11\n\r\n\x05\x04\x03\ + \x02\x02\x03\x12\x04\xb4\x02\x14\x15\nK\n\x04\x04\x03\x02\x03\x12\x04\ + \xb7\x02\x02\x18\x1a=\x20The\x20value\x20of\x20`next_page_token`\x20retu\ + rned\x20by\x20a\x20previous\x20call.\n\n\r\n\x05\x04\x03\x02\x03\x05\x12\ + \x04\xb7\x02\x02\x08\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xb7\x02\t\x13\ + \n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xb7\x02\x16\x17\n\x97\x01\n\x02\ + \x04\x04\x12\x06\xbc\x02\0\xc4\x02\x01\x1a\x88\x01\x20Response\x20messag\ + e\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.ListTables][g\ + oogle.bigtable.admin.v2.BigtableTableAdmin.ListTables]\n\n\x0b\n\x03\x04\ + \x04\x01\x12\x04\xbc\x02\x08\x1a\n=\n\x04\x04\x04\x02\0\x12\x04\xbe\x02\ + \x02\x1c\x1a/\x20The\x20tables\x20present\x20in\x20the\x20requested\x20i\ + nstance.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xbe\x02\x02\n\n\r\n\x05\ + \x04\x04\x02\0\x06\x12\x04\xbe\x02\x0b\x10\n\r\n\x05\x04\x04\x02\0\x01\ + \x12\x04\xbe\x02\x11\x17\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xbe\x02\x1a\ + \x1b\n\xa4\x01\n\x04\x04\x04\x02\x01\x12\x04\xc3\x02\x02\x1d\x1a\x95\x01\ + \x20Set\x20if\x20not\x20all\x20tables\x20could\x20be\x20returned\x20in\ + \x20a\x20single\x20response.\n\x20Pass\x20this\x20value\x20to\x20`page_t\ + oken`\x20in\x20another\x20request\x20to\x20get\x20the\x20next\n\x20page\ + \x20of\x20results.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xc3\x02\x02\ + \x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xc3\x02\t\x18\n\r\n\x05\x04\ + \x04\x02\x01\x03\x12\x04\xc3\x02\x1b\x1c\n\x92\x01\n\x02\x04\x05\x12\x06\ + \xc8\x02\0\xd1\x02\x01\x1a\x83\x01\x20Request\x20message\x20for\n\x20[go\ + ogle.bigtable.admin.v2.BigtableTableAdmin.GetTable][google.bigtable.admi\ + n.v2.BigtableTableAdmin.GetTable]\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xc8\ + \x02\x08\x17\n\x8a\x01\n\x04\x04\x05\x02\0\x12\x04\xcc\x02\x02\x12\x1a|\ + \x20The\x20unique\x20name\x20of\x20the\x20requested\x20table.\n\x20Value\ + s\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xcc\x02\x02\ + \x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xcc\x02\t\r\n\r\n\x05\x04\x05\ + \x02\0\x03\x12\x04\xcc\x02\x10\x11\nq\n\x04\x04\x05\x02\x01\x12\x04\xd0\ + \x02\x02\x16\x1ac\x20The\x20view\x20to\x20be\x20applied\x20to\x20the\x20\ + returned\x20table's\x20fields.\n\x20Defaults\x20to\x20`SCHEMA_VIEW`\x20i\ + f\x20unspecified.\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\xd0\x02\x02\ + \x0c\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xd0\x02\r\x11\n\r\n\x05\x04\ + \x05\x02\x01\x03\x12\x04\xd0\x02\x14\x15\n\x98\x01\n\x02\x04\x06\x12\x06\ + \xd5\x02\0\xda\x02\x01\x1a\x89\x01\x20Request\x20message\x20for\n\x20[go\ + ogle.bigtable.admin.v2.BigtableTableAdmin.DeleteTable][google.bigtable.a\ + dmin.v2.BigtableTableAdmin.DeleteTable]\n\n\x0b\n\x03\x04\x06\x01\x12\ + \x04\xd5\x02\x08\x1a\n\x8f\x01\n\x04\x04\x06\x02\0\x12\x04\xd9\x02\x02\ + \x12\x1a\x80\x01\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\ + \x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`project\ + s//instances//tables/
`.\n\n\r\n\x05\x04\x06\ + \x02\0\x05\x12\x04\xd9\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\ + \xd9\x02\t\r\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xd9\x02\x10\x11\n\xaa\ + \x01\n\x02\x04\x07\x12\x06\xde\x02\0\xfe\x02\x01\x1a\x9b\x01\x20Request\ + \x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.Mod\ + ifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyCol\ + umnFamilies]\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xde\x02\x08#\nL\n\x04\x04\ + \x07\x03\0\x12\x06\xe0\x02\x02\xf2\x02\x03\x1a<\x20A\x20create,\x20updat\ + e,\x20or\x20delete\x20of\x20a\x20particular\x20column\x20family.\n\n\r\n\ + \x05\x04\x07\x03\0\x01\x12\x04\xe0\x02\n\x16\n=\n\x06\x04\x07\x03\0\x02\ + \0\x12\x04\xe2\x02\x04\x12\x1a-\x20The\x20ID\x20of\x20the\x20column\x20f\ + amily\x20to\x20be\x20modified.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\ + \x04\xe2\x02\x04\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xe2\x02\ + \x0b\r\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\x04\xe2\x02\x10\x11\n1\n\ + \x06\x04\x07\x03\0\x08\0\x12\x06\xe5\x02\x04\xf1\x02\x05\x1a\x1f\x20Colu\ + mn\x20familiy\x20modifications.\n\n\x0f\n\x07\x04\x07\x03\0\x08\0\x01\ + \x12\x04\xe5\x02\n\r\ny\n\x06\x04\x07\x03\0\x02\x01\x12\x04\xe8\x02\x06\ + \x1e\x1ai\x20Create\x20a\x20new\x20column\x20family\x20with\x20the\x20sp\ + ecified\x20schema,\x20or\x20fail\x20if\n\x20one\x20already\x20exists\x20\ + with\x20the\x20given\x20ID.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x06\x12\ + \x04\xe8\x02\x06\x12\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x01\x12\x04\xe8\ + \x02\x13\x19\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x03\x12\x04\xe8\x02\x1c\ + \x1d\n\x82\x01\n\x06\x04\x07\x03\0\x02\x02\x12\x04\xec\x02\x06\x1e\x1ar\ + \x20Update\x20an\x20existing\x20column\x20family\x20to\x20the\x20specifi\ + ed\x20schema,\x20or\x20fail\n\x20if\x20no\x20column\x20family\x20exists\ + \x20with\x20the\x20given\x20ID.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x06\ + \x12\x04\xec\x02\x06\x12\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x01\x12\x04\ + \xec\x02\x13\x19\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x03\x12\x04\xec\x02\ + \x1c\x1d\ng\n\x06\x04\x07\x03\0\x02\x03\x12\x04\xf0\x02\x06\x14\x1aW\x20\ + Drop\x20(delete)\x20the\x20column\x20family\x20with\x20the\x20given\x20I\ + D,\x20or\x20fail\x20if\x20no\x20such\n\x20family\x20exists.\n\n\x0f\n\ + \x07\x04\x07\x03\0\x02\x03\x05\x12\x04\xf0\x02\x06\n\n\x0f\n\x07\x04\x07\ + \x03\0\x02\x03\x01\x12\x04\xf0\x02\x0b\x0f\n\x0f\n\x07\x04\x07\x03\0\x02\ + \x03\x03\x12\x04\xf0\x02\x12\x13\n\xa3\x01\n\x04\x04\x07\x02\0\x12\x04\ + \xf7\x02\x02\x12\x1a\x94\x01\x20The\x20unique\x20name\x20of\x20the\x20ta\ + ble\x20whose\x20families\x20should\x20be\x20modified.\n\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects//instances//tabl\ + es/
`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xf7\x02\x02\x08\n\r\n\ + \x05\x04\x07\x02\0\x01\x12\x04\xf7\x02\t\r\n\r\n\x05\x04\x07\x02\0\x03\ + \x12\x04\xf7\x02\x10\x11\n\xfd\x01\n\x04\x04\x07\x02\x01\x12\x04\xfd\x02\ + \x02*\x1a\xee\x01\x20Modifications\x20to\x20be\x20atomically\x20applied\ + \x20to\x20the\x20specified\x20table's\x20families.\n\x20Entries\x20are\ + \x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20modificatio\ + ns\x20can\x20be\n\x20masked\x20by\x20later\x20ones\x20(in\x20the\x20case\ + \x20of\x20repeated\x20updates\x20to\x20the\x20same\x20family,\n\x20for\ + \x20example).\n\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\xfd\x02\x02\n\n\r\ + \n\x05\x04\x07\x02\x01\x06\x12\x04\xfd\x02\x0b\x17\n\r\n\x05\x04\x07\x02\ + \x01\x01\x12\x04\xfd\x02\x18%\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xfd\ + \x02()\n\xb2\x01\n\x02\x04\x08\x12\x06\x82\x03\0\x87\x03\x01\x1a\xa3\x01\ \x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2.BigtableTab\ - leAdmin.DeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.DeleteT\ - able]\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x91\x05\x08\x1a\n\x9b\x01\n\x04\ - \x04\x0b\x02\0\x12\x06\x95\x05\x02\x9a\x05\x04\x1a\x8a\x01\x20Required.\ - \x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20be\x20deleted.\ - \n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instan\ - ces/{instance}/tables/{table}`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\ - \x95\x05\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x95\x05\t\r\n\r\n\ - \x05\x04\x0b\x02\0\x03\x12\x04\x95\x05\x10\x11\n\x0f\n\x05\x04\x0b\x02\0\ - \x08\x12\x06\x95\x05\x12\x9a\x05\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\ - \x08\0\x12\x04\x96\x05\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\ - \x06\x97\x05\x04\x99\x05\x05\n\x9c\x01\n\x02\x04\x0c\x12\x06\x9f\x05\0\ - \xa9\x05\x01\x1a\x8d\x01\x20Request\x20message\x20for\n\x20[google.bigta\ - ble.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.\ - BigtableTableAdmin.UndeleteTable]\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\x9f\ - \x05\x08\x1c\n\x9c\x01\n\x04\x04\x0c\x02\0\x12\x06\xa3\x05\x02\xa8\x05\ - \x04\x1a\x8b\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20t\ - able\x20to\x20be\x20restored.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects/{project}/instances/{instance}/tables/{table}`.\n\n\r\n\ - \x05\x04\x0c\x02\0\x05\x12\x04\xa3\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\ - \x01\x12\x04\xa3\x05\t\r\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa3\x05\x10\ - \x11\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xa3\x05\x12\xa8\x05\x03\n\x10\ - \n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xa4\x05\x04*\n\x11\n\x07\x04\ - \x0c\x02\0\x08\x9f\x08\x12\x06\xa5\x05\x04\xa7\x05\x05\n\xb5\x01\n\x02\ - \x04\r\x12\x06\xad\x05\0\xb6\x05\x01\x1a\xa6\x01\x20Metadata\x20type\x20\ - for\x20the\x20operation\x20returned\x20by\n\x20[google.bigtable.admin.v2\ - .BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTabl\ - eAdmin.UndeleteTable].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xad\x05\x08\x1d\n\ - 5\n\x04\x04\r\x02\0\x12\x04\xaf\x05\x02\x12\x1a'\x20The\x20name\x20of\ - \x20the\x20table\x20being\x20restored.\n\n\r\n\x05\x04\r\x02\0\x05\x12\ - \x04\xaf\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xaf\x05\t\r\n\r\n\ - \x05\x04\r\x02\0\x03\x12\x04\xaf\x05\x10\x11\n9\n\x04\x04\r\x02\x01\x12\ - \x04\xb2\x05\x02+\x1a+\x20The\x20time\x20at\x20which\x20this\x20operatio\ - n\x20started.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xb2\x05\x02\x1b\n\r\ - \n\x05\x04\r\x02\x01\x01\x12\x04\xb2\x05\x1c&\n\r\n\x05\x04\r\x02\x01\ - \x03\x12\x04\xb2\x05)*\nS\n\x04\x04\r\x02\x02\x12\x04\xb5\x05\x02)\x1aE\ - \x20If\x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\x20fin\ - ished\x20or\x20was\x20cancelled.\n\n\r\n\x05\x04\r\x02\x02\x06\x12\x04\ - \xb5\x05\x02\x1b\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xb5\x05\x1c$\n\r\n\ - \x05\x04\r\x02\x02\x03\x12\x04\xb5\x05'(\n\xaa\x01\n\x02\x04\x0e\x12\x06\ - \xba\x05\0\xe0\x05\x01\x1a\x9b\x01\x20Request\x20message\x20for\n\x20[go\ - ogle.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.b\ - igtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies]\n\n\x0b\n\x03\ - \x04\x0e\x01\x12\x04\xba\x05\x08#\nL\n\x04\x04\x0e\x03\0\x12\x06\xbc\x05\ - \x02\xce\x05\x03\x1a<\x20A\x20create,\x20update,\x20or\x20delete\x20of\ - \x20a\x20particular\x20column\x20family.\n\n\r\n\x05\x04\x0e\x03\0\x01\ - \x12\x04\xbc\x05\n\x16\n=\n\x06\x04\x0e\x03\0\x02\0\x12\x04\xbe\x05\x04\ - \x12\x1a-\x20The\x20ID\x20of\x20the\x20column\x20family\x20to\x20be\x20m\ - odified.\n\n\x0f\n\x07\x04\x0e\x03\0\x02\0\x05\x12\x04\xbe\x05\x04\n\n\ - \x0f\n\x07\x04\x0e\x03\0\x02\0\x01\x12\x04\xbe\x05\x0b\r\n\x0f\n\x07\x04\ - \x0e\x03\0\x02\0\x03\x12\x04\xbe\x05\x10\x11\n0\n\x06\x04\x0e\x03\0\x08\ - \0\x12\x06\xc1\x05\x04\xcd\x05\x05\x1a\x1e\x20Column\x20family\x20modifi\ - cations.\n\n\x0f\n\x07\x04\x0e\x03\0\x08\0\x01\x12\x04\xc1\x05\n\r\ny\n\ - \x06\x04\x0e\x03\0\x02\x01\x12\x04\xc4\x05\x06\x1e\x1ai\x20Create\x20a\ - \x20new\x20column\x20family\x20with\x20the\x20specified\x20schema,\x20or\ - \x20fail\x20if\n\x20one\x20already\x20exists\x20with\x20the\x20given\x20\ - ID.\n\n\x0f\n\x07\x04\x0e\x03\0\x02\x01\x06\x12\x04\xc4\x05\x06\x12\n\ - \x0f\n\x07\x04\x0e\x03\0\x02\x01\x01\x12\x04\xc4\x05\x13\x19\n\x0f\n\x07\ - \x04\x0e\x03\0\x02\x01\x03\x12\x04\xc4\x05\x1c\x1d\n\x82\x01\n\x06\x04\ - \x0e\x03\0\x02\x02\x12\x04\xc8\x05\x06\x1e\x1ar\x20Update\x20an\x20exist\ - ing\x20column\x20family\x20to\x20the\x20specified\x20schema,\x20or\x20fa\ - il\n\x20if\x20no\x20column\x20family\x20exists\x20with\x20the\x20given\ - \x20ID.\n\n\x0f\n\x07\x04\x0e\x03\0\x02\x02\x06\x12\x04\xc8\x05\x06\x12\ - \n\x0f\n\x07\x04\x0e\x03\0\x02\x02\x01\x12\x04\xc8\x05\x13\x19\n\x0f\n\ - \x07\x04\x0e\x03\0\x02\x02\x03\x12\x04\xc8\x05\x1c\x1d\ng\n\x06\x04\x0e\ - \x03\0\x02\x03\x12\x04\xcc\x05\x06\x14\x1aW\x20Drop\x20(delete)\x20the\ - \x20column\x20family\x20with\x20the\x20given\x20ID,\x20or\x20fail\x20if\ - \x20no\x20such\n\x20family\x20exists.\n\n\x0f\n\x07\x04\x0e\x03\0\x02\ - \x03\x05\x12\x04\xcc\x05\x06\n\n\x0f\n\x07\x04\x0e\x03\0\x02\x03\x01\x12\ - \x04\xcc\x05\x0b\x0f\n\x0f\n\x07\x04\x0e\x03\0\x02\x03\x03\x12\x04\xcc\ - \x05\x12\x13\n\xaf\x01\n\x04\x04\x0e\x02\0\x12\x06\xd3\x05\x02\xd8\x05\ - \x04\x1a\x9e\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20t\ - able\x20whose\x20families\x20should\x20be\x20modified.\n\x20Values\x20ar\ - e\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/tab\ - les/{table}`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xd3\x05\x02\x08\n\r\ - \n\x05\x04\x0e\x02\0\x01\x12\x04\xd3\x05\t\r\n\r\n\x05\x04\x0e\x02\0\x03\ - \x12\x04\xd3\x05\x10\x11\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xd3\x05\ - \x12\xd8\x05\x03\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xd4\x05\ - \x04*\n\x11\n\x07\x04\x0e\x02\0\x08\x9f\x08\x12\x06\xd5\x05\x04\xd7\x05\ - \x05\n\x89\x02\n\x04\x04\x0e\x02\x01\x12\x06\xde\x05\x02\xdf\x05/\x1a\ - \xf8\x01\x20Required.\x20Modifications\x20to\x20be\x20atomically\x20appl\ - ied\x20to\x20the\x20specified\x20table's\n\x20families.\x20Entries\x20ar\ - e\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\x20modificati\ - ons\n\x20can\x20be\x20masked\x20by\x20later\x20ones\x20(in\x20the\x20cas\ - e\x20of\x20repeated\x20updates\x20to\x20the\x20same\n\x20family,\x20for\ - \x20example).\n\n\r\n\x05\x04\x0e\x02\x01\x04\x12\x04\xde\x05\x02\n\n\r\ - \n\x05\x04\x0e\x02\x01\x06\x12\x04\xde\x05\x0b\x17\n\r\n\x05\x04\x0e\x02\ - \x01\x01\x12\x04\xde\x05\x18%\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xde\ - \x05()\n\r\n\x05\x04\x0e\x02\x01\x08\x12\x04\xdf\x05\x06.\n\x10\n\x08\ - \x04\x0e\x02\x01\x08\x9c\x08\0\x12\x04\xdf\x05\x07-\n\xb2\x01\n\x02\x04\ - \x0f\x12\x06\xe4\x05\0\xee\x05\x01\x1a\xa3\x01\x20Request\x20message\x20\ - for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistenc\ - yToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyT\ - oken]\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xe4\x05\x08'\n\xb5\x01\n\x04\x04\ - \x0f\x02\0\x12\x06\xe8\x05\x02\xed\x05\x04\x1a\xa4\x01\x20Required.\x20T\ - he\x20unique\x20name\x20of\x20the\x20Table\x20for\x20which\x20to\x20crea\ - te\x20a\x20consistency\n\x20token.\x20Values\x20are\x20of\x20the\x20form\ - \n\x20`projects/{project}/instances/{instance}/tables/{table}`.\n\n\r\n\ - \x05\x04\x0f\x02\0\x05\x12\x04\xe8\x05\x02\x08\n\r\n\x05\x04\x0f\x02\0\ - \x01\x12\x04\xe8\x05\t\r\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xe8\x05\x10\ - \x11\n\x0f\n\x05\x04\x0f\x02\0\x08\x12\x06\xe8\x05\x12\xed\x05\x03\n\x10\ - \n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\x04\xe9\x05\x04*\n\x11\n\x07\x04\ - \x0f\x02\0\x08\x9f\x08\x12\x06\xea\x05\x04\xec\x05\x05\n\xb3\x01\n\x02\ - \x04\x10\x12\x06\xf2\x05\0\xf5\x05\x01\x1a\xa4\x01\x20Response\x20messag\ - e\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsi\ - stencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsist\ - encyToken]\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xf2\x05\x08(\n0\n\x04\x04\ - \x10\x02\0\x12\x04\xf4\x05\x02\x1f\x1a\"\x20The\x20generated\x20consiste\ - ncy\x20token.\n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xf4\x05\x02\x08\n\r\ - \n\x05\x04\x10\x02\0\x01\x12\x04\xf4\x05\t\x1a\n\r\n\x05\x04\x10\x02\0\ - \x03\x12\x04\xf4\x05\x1d\x1e\n\xa2\x01\n\x02\x04\x11\x12\x06\xf9\x05\0\ - \x86\x06\x01\x1a\x93\x01\x20Request\x20message\x20for\n\x20[google.bigta\ - ble.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.\ - v2.BigtableTableAdmin.CheckConsistency]\n\n\x0b\n\x03\x04\x11\x01\x12\ - \x04\xf9\x05\x08\x1f\n\xb8\x01\n\x04\x04\x11\x02\0\x12\x06\xfd\x05\x02\ - \x82\x06\x04\x1a\xa7\x01\x20Required.\x20The\x20unique\x20name\x20of\x20\ - the\x20Table\x20for\x20which\x20to\x20check\x20replication\n\x20consiste\ - ncy.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ - ances/{instance}/tables/{table}`.\n\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\ - \xfd\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xfd\x05\t\r\n\r\n\ - \x05\x04\x11\x02\0\x03\x12\x04\xfd\x05\x10\x11\n\x0f\n\x05\x04\x11\x02\0\ - \x08\x12\x06\xfd\x05\x12\x82\x06\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\ - \x08\0\x12\x04\xfe\x05\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\ - \x06\xff\x05\x04\x81\x06\x05\nY\n\x04\x04\x11\x02\x01\x12\x04\x85\x06\ - \x02H\x1aK\x20Required.\x20The\x20token\x20created\x20using\x20GenerateC\ - onsistencyToken\x20for\x20the\x20Table.\n\n\r\n\x05\x04\x11\x02\x01\x05\ - \x12\x04\x85\x06\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\x85\x06\t\ - \x1a\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\x85\x06\x1d\x1e\n\r\n\x05\x04\ - \x11\x02\x01\x08\x12\x04\x85\x06\x1fG\n\x10\n\x08\x04\x11\x02\x01\x08\ - \x9c\x08\0\x12\x04\x85\x06\x20F\n\xa3\x01\n\x02\x04\x12\x12\x06\x8a\x06\ - \0\x8e\x06\x01\x1a\x94\x01\x20Response\x20message\x20for\n\x20[google.bi\ - gtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.adm\ - in.v2.BigtableTableAdmin.CheckConsistency]\n\n\x0b\n\x03\x04\x12\x01\x12\ - \x04\x8a\x06\x08\x20\n\x9a\x01\n\x04\x04\x12\x02\0\x12\x04\x8d\x06\x02\ - \x16\x1a\x8b\x01\x20True\x20only\x20if\x20the\x20token\x20is\x20consiste\ - nt.\x20A\x20token\x20is\x20consistent\x20if\x20replication\n\x20has\x20c\ - aught\x20up\x20with\x20the\x20restrictions\x20specified\x20in\x20the\x20\ - request.\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\x8d\x06\x02\x06\n\r\n\x05\ - \x04\x12\x02\0\x01\x12\x04\x8d\x06\x07\x11\n\r\n\x05\x04\x12\x02\0\x03\ - \x12\x04\x8d\x06\x14\x15\n\xc9\x03\n\x02\x04\x13\x12\x06\x97\x06\0\xba\ - \x06\x01\x1a\xba\x03\x20Request\x20message\x20for\n\x20[google.bigtable.\ - admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable.admin.v2.Bigt\ - ableTableAdmin.SnapshotTable]\n\n\x20Note:\x20This\x20is\x20a\x20private\ + leAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTable\ + Admin.GenerateConsistencyToken]\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x82\ + \x03\x08'\n\xa9\x01\n\x04\x04\x08\x02\0\x12\x04\x86\x03\x02\x12\x1a\x9a\ + \x01\x20The\x20unique\x20name\x20of\x20the\x20Table\x20for\x20which\x20t\ + o\x20create\x20a\x20consistency\x20token.\n\x20Values\x20are\x20of\x20th\ + e\x20form\n\x20`projects//instances//tables/
`.\ + \n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x86\x03\x02\x08\n\r\n\x05\x04\x08\ + \x02\0\x01\x12\x04\x86\x03\t\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x86\ + \x03\x10\x11\n\xb3\x01\n\x02\x04\t\x12\x06\x8b\x03\0\x8e\x03\x01\x1a\xa4\ + \x01\x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.Bigtab\ + leTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.Bigtable\ + TableAdmin.GenerateConsistencyToken]\n\n\x0b\n\x03\x04\t\x01\x12\x04\x8b\ + \x03\x08(\n0\n\x04\x04\t\x02\0\x12\x04\x8d\x03\x02\x1f\x1a\"\x20The\x20g\ + enerated\x20consistency\x20token.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\ + \x8d\x03\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x8d\x03\t\x1a\n\r\n\ + \x05\x04\t\x02\0\x03\x12\x04\x8d\x03\x1d\x1e\n\xa2\x01\n\x02\x04\n\x12\ + \x06\x92\x03\0\x9a\x03\x01\x1a\x93\x01\x20Request\x20message\x20for\n\ + \x20[google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][googl\ + e.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency]\n\n\x0b\n\x03\ + \x04\n\x01\x12\x04\x92\x03\x08\x1f\n\xac\x01\n\x04\x04\n\x02\0\x12\x04\ + \x96\x03\x02\x12\x1a\x9d\x01\x20The\x20unique\x20name\x20of\x20the\x20Ta\ + ble\x20for\x20which\x20to\x20check\x20replication\x20consistency.\n\x20V\ + alues\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x96\x03\x02\ + \x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x96\x03\t\r\n\r\n\x05\x04\n\x02\0\ + \x03\x12\x04\x96\x03\x10\x11\nO\n\x04\x04\n\x02\x01\x12\x04\x99\x03\x02\ + \x1f\x1aA\x20The\x20token\x20created\x20using\x20GenerateConsistencyToke\ + n\x20for\x20the\x20Table.\n\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\x99\x03\ + \x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x99\x03\t\x1a\n\r\n\x05\x04\ + \n\x02\x01\x03\x12\x04\x99\x03\x1d\x1e\n\xa3\x01\n\x02\x04\x0b\x12\x06\ + \x9e\x03\0\xa2\x03\x01\x1a\x94\x01\x20Response\x20message\x20for\n\x20[g\ + oogle.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigt\ + able.admin.v2.BigtableTableAdmin.CheckConsistency]\n\n\x0b\n\x03\x04\x0b\ + \x01\x12\x04\x9e\x03\x08\x20\n\x9a\x01\n\x04\x04\x0b\x02\0\x12\x04\xa1\ + \x03\x02\x16\x1a\x8b\x01\x20True\x20only\x20if\x20the\x20token\x20is\x20\ + consistent.\x20A\x20token\x20is\x20consistent\x20if\x20replication\n\x20\ + has\x20caught\x20up\x20with\x20the\x20restrictions\x20specified\x20in\ + \x20the\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xa1\x03\x02\ + \x06\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xa1\x03\x07\x11\n\r\n\x05\x04\ + \x0b\x02\0\x03\x12\x04\xa1\x03\x14\x15\n\xc9\x03\n\x02\x04\x0c\x12\x06\ + \xab\x03\0\xc4\x03\x01\x1a\xba\x03\x20Request\x20message\x20for\n\x20[go\ + ogle.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable][google.bigtable\ + .admin.v2.BigtableTableAdmin.SnapshotTable]\n\n\x20Note:\x20This\x20is\ + \x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snaps\ + hots.\x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\ + \x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20migh\ + t\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\ + \x20not\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\ + \x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\ + \n\x03\x04\x0c\x01\x12\x04\xab\x03\x08\x1c\n\x9c\x01\n\x04\x04\x0c\x02\0\ + \x12\x04\xaf\x03\x02\x12\x1a\x8d\x01\x20The\x20unique\x20name\x20of\x20t\ + he\x20table\x20to\x20have\x20the\x20snapshot\x20taken.\n\x20Values\x20ar\ + e\x20of\x20the\x20form\n\x20`projects//instances//tab\ + les/
`.\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xaf\x03\x02\x08\n\r\ + \n\x05\x04\x0c\x02\0\x01\x12\x04\xaf\x03\t\r\n\r\n\x05\x04\x0c\x02\0\x03\ + \x12\x04\xaf\x03\x10\x11\n\xa6\x01\n\x04\x04\x0c\x02\x01\x12\x04\xb4\x03\ + \x02\x15\x1a\x97\x01\x20The\x20name\x20of\x20the\x20cluster\x20where\x20\ + the\x20snapshot\x20will\x20be\x20created\x20in.\n\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances//clusters/<\ + cluster>`.\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\xb4\x03\x02\x08\n\r\n\ + \x05\x04\x0c\x02\x01\x01\x12\x04\xb4\x03\t\x10\n\r\n\x05\x04\x0c\x02\x01\ + \x03\x12\x04\xb4\x03\x13\x14\n\x82\x02\n\x04\x04\x0c\x02\x02\x12\x04\xba\ + \x03\x02\x19\x1a\xf3\x01\x20The\x20ID\x20by\x20which\x20the\x20new\x20sn\ + apshot\x20should\x20be\x20referred\x20to\x20within\x20the\x20parent\n\ + \x20cluster,\x20e.g.,\x20`mysnapshot`\x20of\x20the\x20form:\x20`[_a-zA-Z\ + 0-9][-_.a-zA-Z0-9]*`\n\x20rather\x20than\n\x20`projects//instan\ + ces//clusters//snapshots/mysnapshot`.\n\n\r\n\x05\x04\ + \x0c\x02\x02\x05\x12\x04\xba\x03\x02\x08\n\r\n\x05\x04\x0c\x02\x02\x01\ + \x12\x04\xba\x03\t\x14\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xba\x03\x17\ + \x18\n\x9c\x02\n\x04\x04\x0c\x02\x03\x12\x04\xc0\x03\x02#\x1a\x8d\x02\ + \x20The\x20amount\x20of\x20time\x20that\x20the\x20new\x20snapshot\x20can\ + \x20stay\x20active\x20after\x20it\x20is\n\x20created.\x20Once\x20'ttl'\ + \x20expires,\x20the\x20snapshot\x20will\x20get\x20deleted.\x20The\x20max\ + imum\n\x20amount\x20of\x20time\x20a\x20snapshot\x20can\x20stay\x20active\ + \x20is\x207\x20days.\x20If\x20'ttl'\x20is\x20not\n\x20specified,\x20the\ + \x20default\x20value\x20of\x2024\x20hours\x20will\x20be\x20used.\n\n\r\n\ + \x05\x04\x0c\x02\x03\x06\x12\x04\xc0\x03\x02\x1a\n\r\n\x05\x04\x0c\x02\ + \x03\x01\x12\x04\xc0\x03\x1b\x1e\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\ + \xc0\x03!\"\n,\n\x04\x04\x0c\x02\x04\x12\x04\xc3\x03\x02\x19\x1a\x1e\x20\ + Description\x20of\x20the\x20snapshot.\n\n\r\n\x05\x04\x0c\x02\x04\x05\ + \x12\x04\xc3\x03\x02\x08\n\r\n\x05\x04\x0c\x02\x04\x01\x12\x04\xc3\x03\t\ + \x14\n\r\n\x05\x04\x0c\x02\x04\x03\x12\x04\xc3\x03\x17\x18\n\xc5\x03\n\ + \x02\x04\r\x12\x06\xcd\x03\0\xd2\x03\x01\x1a\xb6\x03\x20Request\x20messa\ + ge\x20for\n\x20[google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot]\ + [google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot]\n\n\x20Note:\ + \x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Big\ + table\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20av\ + ailable\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20fe\ + ature\x20might\x20be\x20changed\x20in\x20backward-incompatible\x20ways\ + \x20and\x20is\x20not\x20recommended\n\x20for\x20production\x20use.\x20It\ + \x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20pol\ + icy.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xcd\x03\x08\x1a\n\xa7\x01\n\x04\x04\ + \r\x02\0\x12\x04\xd1\x03\x02\x12\x1a\x98\x01\x20The\x20unique\x20name\ + \x20of\x20the\x20requested\x20snapshot.\n\x20Values\x20are\x20of\x20the\ + \x20form\n\x20`projects//instances//clusters//snapshots/`.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xd1\x03\x02\ + \x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xd1\x03\t\r\n\r\n\x05\x04\r\x02\0\ + \x03\x12\x04\xd1\x03\x10\x11\n\xc9\x03\n\x02\x04\x0e\x12\x06\xdb\x03\0\ + \xe9\x03\x01\x1a\xba\x03\x20Request\x20message\x20for\n\x20[google.bigta\ + ble.admin.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.\ + BigtableTableAdmin.ListSnapshots]\n\n\x20Note:\x20This\x20is\x20a\x20pri\ + vate\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20Thi\ + s\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20most\x20C\ + loud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20ch\ + anged\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\x20reco\ + mmended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20\ + to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x0e\ + \x01\x12\x04\xdb\x03\x08\x1c\n\xb3\x02\n\x04\x04\x0e\x02\0\x12\x04\xe1\ + \x03\x02\x14\x1a\xa4\x02\x20The\x20unique\x20name\x20of\x20the\x20cluste\ + r\x20for\x20which\x20snapshots\x20should\x20be\x20listed.\n\x20Values\ + \x20are\x20of\x20the\x20form\n\x20`projects//instances//clusters/`.\n\x20Use\x20`\x20=\x20'-'`\x20to\x20lis\ + t\x20snapshots\x20for\x20all\x20clusters\x20in\x20an\x20instance,\n\x20e\ + .g.,\x20`projects//instances//clusters/-`.\n\n\r\n\ + \x05\x04\x0e\x02\0\x05\x12\x04\xe1\x03\x02\x08\n\r\n\x05\x04\x0e\x02\0\ + \x01\x12\x04\xe1\x03\t\x0f\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xe1\x03\ + \x12\x13\ni\n\x04\x04\x0e\x02\x01\x12\x04\xe5\x03\x02\x16\x1a[\x20The\ + \x20maximum\x20number\x20of\x20snapshots\x20to\x20return\x20per\x20page.\ + \n\x20CURRENTLY\x20UNIMPLEMENTED\x20AND\x20IGNORED.\n\n\r\n\x05\x04\x0e\ + \x02\x01\x05\x12\x04\xe5\x03\x02\x07\n\r\n\x05\x04\x0e\x02\x01\x01\x12\ + \x04\xe5\x03\x08\x11\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xe5\x03\x14\ + \x15\nK\n\x04\x04\x0e\x02\x02\x12\x04\xe8\x03\x02\x18\x1a=\x20The\x20val\ + ue\x20of\x20`next_page_token`\x20returned\x20by\x20a\x20previous\x20call\ + .\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xe8\x03\x02\x08\n\r\n\x05\x04\ + \x0e\x02\x02\x01\x12\x04\xe8\x03\t\x13\n\r\n\x05\x04\x0e\x02\x02\x03\x12\ + \x04\xe8\x03\x16\x17\n\xca\x03\n\x02\x04\x0f\x12\x06\xf2\x03\0\xfa\x03\ + \x01\x1a\xbb\x03\x20Response\x20message\x20for\n\x20[google.bigtable.adm\ + in.v2.BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.Bigtabl\ + eTableAdmin.ListSnapshots]\n\n\x20Note:\x20This\x20is\x20a\x20private\ \x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\ \x20feature\x20is\x20not\x20currently\x20available\x20to\x20most\x20Clou\ d\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20chang\ ed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\x20recomme\ nded\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\ - \x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x13\x01\ - \x12\x04\x97\x06\x08\x1c\n\xa8\x01\n\x04\x04\x13\x02\0\x12\x06\x9b\x06\ - \x02\xa0\x06\x04\x1a\x97\x01\x20Required.\x20The\x20unique\x20name\x20of\ - \x20the\x20table\x20to\x20have\x20the\x20snapshot\x20taken.\n\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instanc\ - e}/tables/{table}`.\n\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\x9b\x06\x02\ - \x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\x9b\x06\t\r\n\r\n\x05\x04\x13\ - \x02\0\x03\x12\x04\x9b\x06\x10\x11\n\x0f\n\x05\x04\x13\x02\0\x08\x12\x06\ - \x9b\x06\x12\xa0\x06\x03\n\x10\n\x08\x04\x13\x02\0\x08\x9c\x08\0\x12\x04\ - \x9c\x06\x04*\n\x11\n\x07\x04\x13\x02\0\x08\x9f\x08\x12\x06\x9d\x06\x04\ - \x9f\x06\x05\n\xb2\x01\n\x04\x04\x13\x02\x01\x12\x06\xa5\x06\x02\xaa\x06\ - \x04\x1a\xa1\x01\x20Required.\x20The\x20name\x20of\x20the\x20cluster\x20\ - where\x20the\x20snapshot\x20will\x20be\x20created\x20in.\n\x20Values\x20\ - are\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/c\ - lusters/{cluster}`.\n\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xa5\x06\x02\ - \x08\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xa5\x06\t\x10\n\r\n\x05\x04\ - \x13\x02\x01\x03\x12\x04\xa5\x06\x13\x14\n\x0f\n\x05\x04\x13\x02\x01\x08\ - \x12\x06\xa5\x06\x15\xaa\x06\x03\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\x08\ - \0\x12\x04\xa6\x06\x04*\n\x11\n\x07\x04\x13\x02\x01\x08\x9f\x08\x12\x06\ - \xa7\x06\x04\xa9\x06\x05\n\x8c\x02\n\x04\x04\x13\x02\x02\x12\x04\xb0\x06\ - \x02B\x1a\xfd\x01\x20Required.\x20The\x20ID\x20by\x20which\x20the\x20new\ - \x20snapshot\x20should\x20be\x20referred\x20to\x20within\x20the\n\x20par\ - ent\x20cluster,\x20e.g.,\x20`mysnapshot`\x20of\x20the\x20form:\n\x20`[_a\ - -zA-Z0-9][-_.a-zA-Z0-9]*`\x20rather\x20than\n\x20`projects/{project}/ins\ - tances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.\n\n\r\n\x05\ - \x04\x13\x02\x02\x05\x12\x04\xb0\x06\x02\x08\n\r\n\x05\x04\x13\x02\x02\ - \x01\x12\x04\xb0\x06\t\x14\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\xb0\x06\ - \x17\x18\n\r\n\x05\x04\x13\x02\x02\x08\x12\x04\xb0\x06\x19A\n\x10\n\x08\ - \x04\x13\x02\x02\x08\x9c\x08\0\x12\x04\xb0\x06\x1a@\n\x9c\x02\n\x04\x04\ - \x13\x02\x03\x12\x04\xb6\x06\x02#\x1a\x8d\x02\x20The\x20amount\x20of\x20\ - time\x20that\x20the\x20new\x20snapshot\x20can\x20stay\x20active\x20after\ - \x20it\x20is\n\x20created.\x20Once\x20'ttl'\x20expires,\x20the\x20snapsh\ - ot\x20will\x20get\x20deleted.\x20The\x20maximum\n\x20amount\x20of\x20tim\ - e\x20a\x20snapshot\x20can\x20stay\x20active\x20is\x207\x20days.\x20If\ - \x20'ttl'\x20is\x20not\n\x20specified,\x20the\x20default\x20value\x20of\ - \x2024\x20hours\x20will\x20be\x20used.\n\n\r\n\x05\x04\x13\x02\x03\x06\ - \x12\x04\xb6\x06\x02\x1a\n\r\n\x05\x04\x13\x02\x03\x01\x12\x04\xb6\x06\ - \x1b\x1e\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\xb6\x06!\"\n,\n\x04\x04\ - \x13\x02\x04\x12\x04\xb9\x06\x02\x19\x1a\x1e\x20Description\x20of\x20the\ - \x20snapshot.\n\n\r\n\x05\x04\x13\x02\x04\x05\x12\x04\xb9\x06\x02\x08\n\ - \r\n\x05\x04\x13\x02\x04\x01\x12\x04\xb9\x06\t\x14\n\r\n\x05\x04\x13\x02\ - \x04\x03\x12\x04\xb9\x06\x17\x18\n\xc5\x03\n\x02\x04\x14\x12\x06\xc3\x06\ - \0\xcd\x06\x01\x1a\xb6\x03\x20Request\x20message\x20for\n\x20[google.big\ - table.admin.v2.BigtableTableAdmin.GetSnapshot][google.bigtable.admin.v2.\ - BigtableTableAdmin.GetSnapshot]\n\n\x20Note:\x20This\x20is\x20a\x20priva\ - te\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\ - \n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cl\ - oud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20cha\ - nged\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\x20recom\ - mended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20t\ - o\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x14\ - \x01\x12\x04\xc3\x06\x08\x1a\n\xb3\x01\n\x04\x04\x14\x02\0\x12\x06\xc7\ - \x06\x02\xcc\x06\x04\x1a\xa2\x01\x20Required.\x20The\x20unique\x20name\ - \x20of\x20the\x20requested\x20snapshot.\n\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects/{project}/instances/{instance}/clusters/{cluster\ - }/snapshots/{snapshot}`.\n\n\r\n\x05\x04\x14\x02\0\x05\x12\x04\xc7\x06\ - \x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xc7\x06\t\r\n\r\n\x05\x04\ - \x14\x02\0\x03\x12\x04\xc7\x06\x10\x11\n\x0f\n\x05\x04\x14\x02\0\x08\x12\ - \x06\xc7\x06\x12\xcc\x06\x03\n\x10\n\x08\x04\x14\x02\0\x08\x9c\x08\0\x12\ - \x04\xc8\x06\x04*\n\x11\n\x07\x04\x14\x02\0\x08\x9f\x08\x12\x06\xc9\x06\ - \x04\xcb\x06\x05\n\xc9\x03\n\x02\x04\x15\x12\x06\xd6\x06\0\xe9\x06\x01\ - \x1a\xba\x03\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ - .BigtableTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTabl\ - eAdmin.ListSnapshots]\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alph\ - a\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20featu\ - re\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigt\ - able\x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\ + \x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x0f\x01\ + \x12\x04\xf2\x03\x08\x1d\n?\n\x04\x04\x0f\x02\0\x12\x04\xf4\x03\x02\"\ + \x1a1\x20The\x20snapshots\x20present\x20in\x20the\x20requested\x20cluste\ + r.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xf4\x03\x02\n\n\r\n\x05\x04\x0f\ + \x02\0\x06\x12\x04\xf4\x03\x0b\x13\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\ + \xf4\x03\x14\x1d\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xf4\x03\x20!\n\xa7\ + \x01\n\x04\x04\x0f\x02\x01\x12\x04\xf9\x03\x02\x1d\x1a\x98\x01\x20Set\ + \x20if\x20not\x20all\x20snapshots\x20could\x20be\x20returned\x20in\x20a\ + \x20single\x20response.\n\x20Pass\x20this\x20value\x20to\x20`page_token`\ + \x20in\x20another\x20request\x20to\x20get\x20the\x20next\n\x20page\x20of\ + \x20results.\n\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\xf9\x03\x02\x08\n\r\ + \n\x05\x04\x0f\x02\x01\x01\x12\x04\xf9\x03\t\x18\n\r\n\x05\x04\x0f\x02\ + \x01\x03\x12\x04\xf9\x03\x1b\x1c\n\xcb\x03\n\x02\x04\x10\x12\x06\x83\x04\ + \0\x88\x04\x01\x1a\xbc\x03\x20Request\x20message\x20for\n\x20[google.big\ + table.admin.v2.BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.\ + v2.BigtableTableAdmin.DeleteSnapshot]\n\n\x20Note:\x20This\x20is\x20a\ + \x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\ + \x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20mo\ + st\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20b\ + e\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\ + \x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20sub\ + ject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\ + \x04\x10\x01\x12\x04\x83\x04\x08\x1d\n\xab\x01\n\x04\x04\x10\x02\0\x12\ + \x04\x87\x04\x02\x12\x1a\x9c\x01\x20The\x20unique\x20name\x20of\x20the\ + \x20snapshot\x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\x20\ + form\n\x20`projects//instances//clusters//sn\ + apshots/`.\n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x87\x04\x02\ + \x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x87\x04\t\r\n\r\n\x05\x04\x10\ + \x02\0\x03\x12\x04\x87\x04\x10\x11\n\xf7\x02\n\x02\x04\x11\x12\x06\x90\ + \x04\0\x99\x04\x01\x1a\xe8\x02\x20The\x20metadata\x20for\x20the\x20Opera\ + tion\x20returned\x20by\x20SnapshotTable.\n\n\x20Note:\x20This\x20is\x20a\ + \x20private\x20alpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\ + \x20This\n\x20feature\x20is\x20not\x20currently\x20available\x20to\x20mo\ + st\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20feature\x20might\x20b\ + e\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\ + \x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20sub\ + ject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\ + \x04\x11\x01\x12\x04\x90\x04\x08\x1d\nY\n\x04\x04\x11\x02\0\x12\x04\x92\ + \x04\x02,\x1aK\x20The\x20request\x20that\x20prompted\x20the\x20initiatio\ + n\x20of\x20this\x20SnapshotTable\x20operation.\n\n\r\n\x05\x04\x11\x02\0\ + \x06\x12\x04\x92\x04\x02\x16\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x92\x04\ + \x17'\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x92\x04*+\nD\n\x04\x04\x11\x02\ + \x01\x12\x04\x95\x04\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20o\ + riginal\x20request\x20was\x20received.\n\n\r\n\x05\x04\x11\x02\x01\x06\ + \x12\x04\x95\x04\x02\x1b\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\x95\x04\ + \x1c(\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\x95\x04+,\nU\n\x04\x04\x11\ + \x02\x02\x12\x04\x98\x04\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\ + \x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\ + \n\x05\x04\x11\x02\x02\x06\x12\x04\x98\x04\x02\x1b\n\r\n\x05\x04\x11\x02\ + \x02\x01\x12\x04\x98\x04\x1c'\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\x98\ + \x04*+\n\x81\x03\n\x02\x04\x12\x12\x06\xa1\x04\0\xab\x04\x01\x1a\xf2\x02\ + \x20The\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\x20Crea\ + teTableFromSnapshot.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\ + \x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20featur\ + e\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigta\ + ble\x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\ \x20backward-incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\ \x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\ - \x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x15\x01\x12\ - \x04\xd6\x06\x08\x1c\n\xbf\x02\n\x04\x04\x15\x02\0\x12\x06\xdc\x06\x02\ - \xe1\x06\x04\x1a\xae\x02\x20Required.\x20The\x20unique\x20name\x20of\x20\ - the\x20cluster\x20for\x20which\x20snapshots\x20should\x20be\n\x20listed.\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/clusters/{cluster}`.\n\x20Use\x20`{cluster}\x20=\x20'-'`\ - \x20to\x20list\x20snapshots\x20for\x20all\x20clusters\x20in\x20an\x20ins\ - tance,\n\x20e.g.,\x20`projects/{project}/instances/{instance}/clusters/-\ - `.\n\n\r\n\x05\x04\x15\x02\0\x05\x12\x04\xdc\x06\x02\x08\n\r\n\x05\x04\ - \x15\x02\0\x01\x12\x04\xdc\x06\t\x0f\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\ - \xdc\x06\x12\x13\n\x0f\n\x05\x04\x15\x02\0\x08\x12\x06\xdc\x06\x14\xe1\ - \x06\x03\n\x10\n\x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\xdd\x06\x04*\n\ - \x11\n\x07\x04\x15\x02\0\x08\x9f\x08\x12\x06\xde\x06\x04\xe0\x06\x05\ni\ - \n\x04\x04\x15\x02\x01\x12\x04\xe5\x06\x02\x16\x1a[\x20The\x20maximum\ - \x20number\x20of\x20snapshots\x20to\x20return\x20per\x20page.\n\x20CURRE\ - NTLY\x20UNIMPLEMENTED\x20AND\x20IGNORED.\n\n\r\n\x05\x04\x15\x02\x01\x05\ - \x12\x04\xe5\x06\x02\x07\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\xe5\x06\ - \x08\x11\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xe5\x06\x14\x15\nK\n\x04\ - \x04\x15\x02\x02\x12\x04\xe8\x06\x02\x18\x1a=\x20The\x20value\x20of\x20`\ - next_page_token`\x20returned\x20by\x20a\x20previous\x20call.\n\n\r\n\x05\ - \x04\x15\x02\x02\x05\x12\x04\xe8\x06\x02\x08\n\r\n\x05\x04\x15\x02\x02\ - \x01\x12\x04\xe8\x06\t\x13\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xe8\x06\ - \x16\x17\n\xca\x03\n\x02\x04\x16\x12\x06\xf2\x06\0\xfa\x06\x01\x1a\xbb\ - \x03\x20Response\x20message\x20for\n\x20[google.bigtable.admin.v2.Bigtab\ - leTableAdmin.ListSnapshots][google.bigtable.admin.v2.BigtableTableAdmin.\ - ListSnapshots]\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20re\ - lease\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20i\ - s\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\ - \x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20b\ - ackward-incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\ - \x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\ - \x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xf2\ - \x06\x08\x1d\n?\n\x04\x04\x16\x02\0\x12\x04\xf4\x06\x02\"\x1a1\x20The\ - \x20snapshots\x20present\x20in\x20the\x20requested\x20cluster.\n\n\r\n\ - \x05\x04\x16\x02\0\x04\x12\x04\xf4\x06\x02\n\n\r\n\x05\x04\x16\x02\0\x06\ - \x12\x04\xf4\x06\x0b\x13\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xf4\x06\x14\ - \x1d\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\xf4\x06\x20!\n\xa7\x01\n\x04\ - \x04\x16\x02\x01\x12\x04\xf9\x06\x02\x1d\x1a\x98\x01\x20Set\x20if\x20not\ - \x20all\x20snapshots\x20could\x20be\x20returned\x20in\x20a\x20single\x20\ - response.\n\x20Pass\x20this\x20value\x20to\x20`page_token`\x20in\x20anot\ - her\x20request\x20to\x20get\x20the\x20next\n\x20page\x20of\x20results.\n\ - \n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xf9\x06\x02\x08\n\r\n\x05\x04\x16\ - \x02\x01\x01\x12\x04\xf9\x06\t\x18\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\ - \xf9\x06\x1b\x1c\n\xcb\x03\n\x02\x04\x17\x12\x06\x83\x07\0\x8d\x07\x01\ - \x1a\xbc\x03\x20Request\x20message\x20for\n\x20[google.bigtable.admin.v2\ - .BigtableTableAdmin.DeleteSnapshot][google.bigtable.admin.v2.BigtableTab\ - leAdmin.DeleteSnapshot]\n\n\x20Note:\x20This\x20is\x20a\x20private\x20al\ - pha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20fea\ - ture\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bi\ - gtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20i\ - n\x20backward-incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\ - \x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\ - \x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x17\x01\x12\ - \x04\x83\x07\x08\x1d\n\xb7\x01\n\x04\x04\x17\x02\0\x12\x06\x87\x07\x02\ - \x8c\x07\x04\x1a\xa6\x01\x20Required.\x20The\x20unique\x20name\x20of\x20\ - the\x20snapshot\x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects/{project}/instances/{instance}/clusters/{cluster\ - }/snapshots/{snapshot}`.\n\n\r\n\x05\x04\x17\x02\0\x05\x12\x04\x87\x07\ - \x02\x08\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\x87\x07\t\r\n\r\n\x05\x04\ - \x17\x02\0\x03\x12\x04\x87\x07\x10\x11\n\x0f\n\x05\x04\x17\x02\0\x08\x12\ - \x06\x87\x07\x12\x8c\x07\x03\n\x10\n\x08\x04\x17\x02\0\x08\x9c\x08\0\x12\ - \x04\x88\x07\x04*\n\x11\n\x07\x04\x17\x02\0\x08\x9f\x08\x12\x06\x89\x07\ - \x04\x8b\x07\x05\n\xf7\x02\n\x02\x04\x18\x12\x06\x95\x07\0\x9e\x07\x01\ - \x1a\xe8\x02\x20The\x20metadata\x20for\x20the\x20Operation\x20returned\ - \x20by\x20SnapshotTable.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20a\ - lpha\x20release\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20fe\ - ature\x20is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20B\ - igtable\x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20\ - in\x20backward-incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\ - \x20for\x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\ - \x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x18\x01\x12\ - \x04\x95\x07\x08\x1d\nY\n\x04\x04\x18\x02\0\x12\x04\x97\x07\x02,\x1aK\ - \x20The\x20request\x20that\x20prompted\x20the\x20initiation\x20of\x20thi\ - s\x20SnapshotTable\x20operation.\n\n\r\n\x05\x04\x18\x02\0\x06\x12\x04\ - \x97\x07\x02\x16\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\x97\x07\x17'\n\r\n\ - \x05\x04\x18\x02\0\x03\x12\x04\x97\x07*+\nD\n\x04\x04\x18\x02\x01\x12\ - \x04\x9a\x07\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\ - \x20request\x20was\x20received.\n\n\r\n\x05\x04\x18\x02\x01\x06\x12\x04\ - \x9a\x07\x02\x1b\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\x9a\x07\x1c(\n\r\ - \n\x05\x04\x18\x02\x01\x03\x12\x04\x9a\x07+,\nU\n\x04\x04\x18\x02\x02\ - \x12\x04\x9d\x07\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20opera\ + \x20SLA\x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x12\x01\x12\ + \x04\xa1\x04\x08'\nd\n\x04\x04\x12\x02\0\x12\x04\xa4\x04\x026\x1aV\x20Th\ + e\x20request\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20C\ + reateTableFromSnapshot\n\x20operation.\n\n\r\n\x05\x04\x12\x02\0\x06\x12\ + \x04\xa4\x04\x02\x20\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xa4\x04!1\n\r\n\ + \x05\x04\x12\x02\0\x03\x12\x04\xa4\x0445\nD\n\x04\x04\x12\x02\x01\x12\ + \x04\xa7\x04\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\ + \x20request\x20was\x20received.\n\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\ + \xa7\x04\x02\x1b\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xa7\x04\x1c(\n\r\ + \n\x05\x04\x12\x02\x01\x03\x12\x04\xa7\x04+,\nU\n\x04\x04\x12\x02\x02\ + \x12\x04\xaa\x04\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20opera\ tion\x20failed\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\ - \x04\x18\x02\x02\x06\x12\x04\x9d\x07\x02\x1b\n\r\n\x05\x04\x18\x02\x02\ - \x01\x12\x04\x9d\x07\x1c'\n\r\n\x05\x04\x18\x02\x02\x03\x12\x04\x9d\x07*\ - +\n\x81\x03\n\x02\x04\x19\x12\x06\xa6\x07\0\xb0\x07\x01\x1a\xf2\x02\x20T\ - he\x20metadata\x20for\x20the\x20Operation\x20returned\x20by\x20CreateTab\ - leFromSnapshot.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20r\ - elease\x20of\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20\ - is\x20not\x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\ - \x20customers.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20b\ - ackward-incompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\ - \x20production\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\ - \x20or\x20deprecation\x20policy.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xa6\ - \x07\x08'\nd\n\x04\x04\x19\x02\0\x12\x04\xa9\x07\x026\x1aV\x20The\x20req\ - uest\x20that\x20prompted\x20the\x20initiation\x20of\x20this\x20CreateTab\ - leFromSnapshot\n\x20operation.\n\n\r\n\x05\x04\x19\x02\0\x06\x12\x04\xa9\ - \x07\x02\x20\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\xa9\x07!1\n\r\n\x05\x04\ - \x19\x02\0\x03\x12\x04\xa9\x0745\nD\n\x04\x04\x19\x02\x01\x12\x04\xac\ - \x07\x02-\x1a6\x20The\x20time\x20at\x20which\x20the\x20original\x20reque\ - st\x20was\x20received.\n\n\r\n\x05\x04\x19\x02\x01\x06\x12\x04\xac\x07\ - \x02\x1b\n\r\n\x05\x04\x19\x02\x01\x01\x12\x04\xac\x07\x1c(\n\r\n\x05\ - \x04\x19\x02\x01\x03\x12\x04\xac\x07+,\nU\n\x04\x04\x19\x02\x02\x12\x04\ - \xaf\x07\x02,\x1aG\x20The\x20time\x20at\x20which\x20the\x20operation\x20\ - failed\x20or\x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x19\ - \x02\x02\x06\x12\x04\xaf\x07\x02\x1b\n\r\n\x05\x04\x19\x02\x02\x01\x12\ - \x04\xaf\x07\x1c'\n\r\n\x05\x04\x19\x02\x02\x03\x12\x04\xaf\x07*+\nj\n\ - \x02\x04\x1a\x12\x06\xb4\x07\0\xc9\x07\x01\x1a\\\x20The\x20request\x20fo\ - r\n\x20[CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.Create\ - Backup].\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\xb4\x07\x08\x1b\n\xef\x01\n\ - \x04\x04\x1a\x02\0\x12\x06\xb8\x07\x02\xbd\x07\x04\x1a\xde\x01\x20Requir\ - ed.\x20This\x20must\x20be\x20one\x20of\x20the\x20clusters\x20in\x20the\ - \x20instance\x20in\x20which\x20this\n\x20table\x20is\x20located.\x20The\ - \x20backup\x20will\x20be\x20stored\x20in\x20this\x20cluster.\x20Values\ - \x20are\n\x20of\x20the\x20form\x20`projects/{project}/instances/{instanc\ - e}/clusters/{cluster}`.\n\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\xb8\x07\ - \x02\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xb8\x07\t\x0f\n\r\n\x05\x04\ - \x1a\x02\0\x03\x12\x04\xb8\x07\x12\x13\n\x0f\n\x05\x04\x1a\x02\0\x08\x12\ - \x06\xb8\x07\x14\xbd\x07\x03\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\ - \x04\xb9\x07\x04*\n\x11\n\x07\x04\x1a\x02\0\x08\x9f\x08\x12\x06\xba\x07\ - \x04\xbc\x07\x05\n\x89\x03\n\x04\x04\x1a\x02\x01\x12\x04\xc5\x07\x02@\ - \x1a\xfa\x02\x20Required.\x20The\x20id\x20of\x20the\x20backup\x20to\x20b\ - e\x20created.\x20The\x20`backup_id`\x20along\x20with\n\x20the\x20parent\ - \x20`parent`\x20are\x20combined\x20as\x20{parent}/backups/{backup_id}\ - \x20to\x20create\n\x20the\x20full\x20backup\x20name,\x20of\x20the\x20for\ - m:\n\x20`projects/{project}/instances/{instance}/clusters/{cluster}/back\ - ups/{backup_id}`.\n\x20This\x20string\x20must\x20be\x20between\x201\x20a\ - nd\x2050\x20characters\x20in\x20length\x20and\x20match\x20the\n\x20regex\ - \x20[_a-zA-Z0-9][-_.a-zA-Z0-9]*.\n\n\r\n\x05\x04\x1a\x02\x01\x05\x12\x04\ - \xc5\x07\x02\x08\n\r\n\x05\x04\x1a\x02\x01\x01\x12\x04\xc5\x07\t\x12\n\r\ - \n\x05\x04\x1a\x02\x01\x03\x12\x04\xc5\x07\x15\x16\n\r\n\x05\x04\x1a\x02\ - \x01\x08\x12\x04\xc5\x07\x17?\n\x10\n\x08\x04\x1a\x02\x01\x08\x9c\x08\0\ - \x12\x04\xc5\x07\x18>\n/\n\x04\x04\x1a\x02\x02\x12\x04\xc8\x07\x02=\x1a!\ - \x20Required.\x20The\x20backup\x20to\x20create.\n\n\r\n\x05\x04\x1a\x02\ - \x02\x06\x12\x04\xc8\x07\x02\x08\n\r\n\x05\x04\x1a\x02\x02\x01\x12\x04\ - \xc8\x07\t\x0f\n\r\n\x05\x04\x1a\x02\x02\x03\x12\x04\xc8\x07\x12\x13\n\r\ - \n\x05\x04\x1a\x02\x02\x08\x12\x04\xc8\x07\x14<\n\x10\n\x08\x04\x1a\x02\ - \x02\x08\x9c\x08\0\x12\x04\xc8\x07\x15;\n\x86\x01\n\x02\x04\x1b\x12\x06\ - \xcd\x07\0\xd9\x07\x01\x1ax\x20Metadata\x20type\x20for\x20the\x20operati\ - on\x20returned\x20by\n\x20[CreateBackup][google.bigtable.admin.v2.Bigtab\ - leTableAdmin.CreateBackup].\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xcd\x07\ - \x08\x1c\n5\n\x04\x04\x1b\x02\0\x12\x04\xcf\x07\x02\x12\x1a'\x20The\x20n\ - ame\x20of\x20the\x20backup\x20being\x20created.\n\n\r\n\x05\x04\x1b\x02\ - \0\x05\x12\x04\xcf\x07\x02\x08\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xcf\ - \x07\t\r\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xcf\x07\x10\x11\nA\n\x04\ - \x04\x1b\x02\x01\x12\x04\xd2\x07\x02\x1a\x1a3\x20The\x20name\x20of\x20th\ - e\x20table\x20the\x20backup\x20is\x20created\x20from.\n\n\r\n\x05\x04\ - \x1b\x02\x01\x05\x12\x04\xd2\x07\x02\x08\n\r\n\x05\x04\x1b\x02\x01\x01\ - \x12\x04\xd2\x07\t\x15\n\r\n\x05\x04\x1b\x02\x01\x03\x12\x04\xd2\x07\x18\ - \x19\n9\n\x04\x04\x1b\x02\x02\x12\x04\xd5\x07\x02+\x1a+\x20The\x20time\ - \x20at\x20which\x20this\x20operation\x20started.\n\n\r\n\x05\x04\x1b\x02\ - \x02\x06\x12\x04\xd5\x07\x02\x1b\n\r\n\x05\x04\x1b\x02\x02\x01\x12\x04\ - \xd5\x07\x1c&\n\r\n\x05\x04\x1b\x02\x02\x03\x12\x04\xd5\x07)*\nS\n\x04\ - \x04\x1b\x02\x03\x12\x04\xd8\x07\x02)\x1aE\x20If\x20set,\x20the\x20time\ - \x20at\x20which\x20this\x20operation\x20finished\x20or\x20was\x20cancell\ - ed.\n\n\r\n\x05\x04\x1b\x02\x03\x06\x12\x04\xd8\x07\x02\x1b\n\r\n\x05\ - \x04\x1b\x02\x03\x01\x12\x04\xd8\x07\x1c$\n\r\n\x05\x04\x1b\x02\x03\x03\ - \x12\x04\xd8\x07'(\nj\n\x02\x04\x1c\x12\x06\xdd\x07\0\xec\x07\x01\x1a\\\ - \x20The\x20request\x20for\n\x20[UpdateBackup][google.bigtable.admin.v2.B\ - igtableTableAdmin.UpdateBackup].\n\n\x0b\n\x03\x04\x1c\x01\x12\x04\xdd\ - \x07\x08\x1b\n\xf2\x01\n\x04\x04\x1c\x02\0\x12\x04\xe3\x07\x02=\x1a\xe3\ - \x01\x20Required.\x20The\x20backup\x20to\x20update.\x20`backup.name`,\ - \x20and\x20the\x20fields\x20to\x20be\x20updated\n\x20as\x20specified\x20\ - by\x20`update_mask`\x20are\x20required.\x20Other\x20fields\x20are\x20ign\ - ored.\n\x20Update\x20is\x20only\x20supported\x20for\x20the\x20following\ - \x20fields:\n\n\x20\x20*\x20`backup.expire_time`.\n\n\r\n\x05\x04\x1c\ - \x02\0\x06\x12\x04\xe3\x07\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\ - \xe3\x07\t\x0f\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xe3\x07\x12\x13\n\r\n\ - \x05\x04\x1c\x02\0\x08\x12\x04\xe3\x07\x14<\n\x10\n\x08\x04\x1c\x02\0\ - \x08\x9c\x08\0\x12\x04\xe3\x07\x15;\n\xd8\x02\n\x04\x04\x1c\x02\x01\x12\ - \x06\xea\x07\x02\xeb\x07/\x1a\xc7\x02\x20Required.\x20A\x20mask\x20speci\ - fying\x20which\x20fields\x20(e.g.\x20`expire_time`)\x20in\x20the\n\x20Ba\ - ckup\x20resource\x20should\x20be\x20updated.\x20This\x20mask\x20is\x20re\ - lative\x20to\x20the\x20Backup\n\x20resource,\x20not\x20to\x20the\x20requ\ - est\x20message.\x20The\x20field\x20mask\x20must\x20always\x20be\n\x20spe\ - cified;\x20this\x20prevents\x20any\x20future\x20fields\x20from\x20being\ - \x20erased\x20accidentally\n\x20by\x20clients\x20that\x20do\x20not\x20kn\ - ow\x20about\x20them.\n\n\r\n\x05\x04\x1c\x02\x01\x06\x12\x04\xea\x07\x02\ - \x1b\n\r\n\x05\x04\x1c\x02\x01\x01\x12\x04\xea\x07\x1c'\n\r\n\x05\x04\ - \x1c\x02\x01\x03\x12\x04\xea\x07*+\n\r\n\x05\x04\x1c\x02\x01\x08\x12\x04\ - \xeb\x07\x06.\n\x10\n\x08\x04\x1c\x02\x01\x08\x9c\x08\0\x12\x04\xeb\x07\ - \x07-\nd\n\x02\x04\x1d\x12\x06\xf0\x07\0\xfa\x07\x01\x1aV\x20The\x20requ\ - est\x20for\n\x20[GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.\ - GetBackup].\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xf0\x07\x08\x18\n\x98\x01\ - \n\x04\x04\x1d\x02\0\x12\x06\xf4\x07\x02\xf9\x07\x04\x1a\x87\x01\x20Requ\ - ired.\x20Name\x20of\x20the\x20backup.\n\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects/{project}/instances/{instance}/clusters/{cluster\ - }/backups/{backup}`.\n\n\r\n\x05\x04\x1d\x02\0\x05\x12\x04\xf4\x07\x02\ - \x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\xf4\x07\t\r\n\r\n\x05\x04\x1d\ - \x02\0\x03\x12\x04\xf4\x07\x10\x11\n\x0f\n\x05\x04\x1d\x02\0\x08\x12\x06\ - \xf4\x07\x12\xf9\x07\x03\n\x10\n\x08\x04\x1d\x02\0\x08\x9c\x08\0\x12\x04\ - \xf5\x07\x04*\n\x11\n\x07\x04\x1d\x02\0\x08\x9f\x08\x12\x06\xf6\x07\x04\ - \xf8\x07\x05\nj\n\x02\x04\x1e\x12\x06\xfe\x07\0\x88\x08\x01\x1a\\\x20The\ - \x20request\x20for\n\x20[DeleteBackup][google.bigtable.admin.v2.Bigtable\ - TableAdmin.DeleteBackup].\n\n\x0b\n\x03\x04\x1e\x01\x12\x04\xfe\x07\x08\ - \x1b\n\xa2\x01\n\x04\x04\x1e\x02\0\x12\x06\x82\x08\x02\x87\x08\x04\x1a\ - \x91\x01\x20Required.\x20Name\x20of\x20the\x20backup\x20to\x20delete.\n\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/clusters/{cluster}/backups/{backup}`.\n\n\r\n\x05\x04\x1e\ - \x02\0\x05\x12\x04\x82\x08\x02\x08\n\r\n\x05\x04\x1e\x02\0\x01\x12\x04\ - \x82\x08\t\r\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\x82\x08\x10\x11\n\x0f\n\ - \x05\x04\x1e\x02\0\x08\x12\x06\x82\x08\x12\x87\x08\x03\n\x10\n\x08\x04\ - \x1e\x02\0\x08\x9c\x08\0\x12\x04\x83\x08\x04*\n\x11\n\x07\x04\x1e\x02\0\ - \x08\x9f\x08\x12\x06\x84\x08\x04\x86\x08\x05\nh\n\x02\x04\x1f\x12\x06\ - \x8c\x08\0\xdd\x08\x01\x1aZ\x20The\x20request\x20for\n\x20[ListBackups][\ - google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].\n\n\x0b\n\x03\ - \x04\x1f\x01\x12\x04\x8c\x08\x08\x1a\n\x9a\x02\n\x04\x04\x1f\x02\0\x12\ - \x06\x91\x08\x02\x96\x08\x04\x1a\x89\x02\x20Required.\x20The\x20cluster\ - \x20to\x20list\x20backups\x20from.\x20\x20Values\x20are\x20of\x20the\n\ - \x20form\x20`projects/{project}/instances/{instance}/clusters/{cluster}`\ - .\n\x20Use\x20`{cluster}\x20=\x20'-'`\x20to\x20list\x20backups\x20for\ - \x20all\x20clusters\x20in\x20an\x20instance,\n\x20e.g.,\x20`projects/{pr\ - oject}/instances/{instance}/clusters/-`.\n\n\r\n\x05\x04\x1f\x02\0\x05\ - \x12\x04\x91\x08\x02\x08\n\r\n\x05\x04\x1f\x02\0\x01\x12\x04\x91\x08\t\ - \x0f\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\x91\x08\x12\x13\n\x0f\n\x05\x04\ - \x1f\x02\0\x08\x12\x06\x91\x08\x14\x96\x08\x03\n\x10\n\x08\x04\x1f\x02\0\ - \x08\x9c\x08\0\x12\x04\x92\x08\x04*\n\x11\n\x07\x04\x1f\x02\0\x08\x9f\ - \x08\x12\x06\x93\x08\x04\x95\x08\x05\n\xa8\x0c\n\x04\x04\x1f\x02\x01\x12\ - \x04\xb9\x08\x02\x14\x1a\x99\x0c\x20A\x20filter\x20expression\x20that\ - \x20filters\x20backups\x20listed\x20in\x20the\x20response.\n\x20The\x20e\ - xpression\x20must\x20specify\x20the\x20field\x20name,\x20a\x20comparison\ - \x20operator,\n\x20and\x20the\x20value\x20that\x20you\x20want\x20to\x20u\ - se\x20for\x20filtering.\x20The\x20value\x20must\x20be\x20a\n\x20string,\ - \x20a\x20number,\x20or\x20a\x20boolean.\x20The\x20comparison\x20operator\ - \x20must\x20be\n\x20<,\x20>,\x20<=,\x20>=,\x20!=,\x20=,\x20or\x20:.\x20C\ - olon\x20':'\x20represents\x20a\x20HAS\x20operator\x20which\x20is\n\x20ro\ - ughly\x20synonymous\x20with\x20equality.\x20Filter\x20rules\x20are\x20ca\ - se\x20insensitive.\n\n\x20The\x20fields\x20eligible\x20for\x20filtering\ - \x20are:\n\n\x20*\x20`name`\n\x20*\x20`source_table`\n\x20*\x20`state`\n\ - \x20*\x20`start_time`\x20(and\x20values\x20are\x20of\x20the\x20format\ - \x20YYYY-MM-DDTHH:MM:SSZ)\n\x20*\x20`end_time`\x20(and\x20values\x20are\ - \x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20*\x20`expire_time`\ - \x20(and\x20values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ\ - )\n\x20*\x20`size_bytes`\n\n\x20To\x20filter\x20on\x20multiple\x20expres\ - sions,\x20provide\x20each\x20separate\x20expression\x20within\n\x20paren\ - theses.\x20By\x20default,\x20each\x20expression\x20is\x20an\x20AND\x20ex\ - pression.\x20However,\n\x20you\x20can\x20include\x20AND,\x20OR,\x20and\ - \x20NOT\x20expressions\x20explicitly.\n\n\x20Some\x20examples\x20of\x20u\ - sing\x20filters\x20are:\n\n\x20*\x20`name:\"exact\"`\x20-->\x20The\x20ba\ - ckup's\x20name\x20is\x20the\x20string\x20\"exact\".\n\x20*\x20`name:howl\ - `\x20-->\x20The\x20backup's\x20name\x20contains\x20the\x20string\x20\"ho\ - wl\".\n\x20*\x20`source_table:prod`\n\x20\x20\x20\x20\x20\x20\x20\x20-->\ - \x20The\x20source_table's\x20name\x20contains\x20the\x20string\x20\"prod\ - \".\n\x20*\x20`state:CREATING`\x20-->\x20The\x20backup\x20is\x20pending\ - \x20creation.\n\x20*\x20`state:READY`\x20-->\x20The\x20backup\x20is\x20f\ - ully\x20created\x20and\x20ready\x20for\x20use.\n\x20*\x20`(name:howl)\ - \x20AND\x20(start_time\x20<\x20\\\"2018-03-28T14:50:00Z\\\")`\n\x20\x20\ - \x20\x20\x20\x20\x20\x20-->\x20The\x20backup\x20name\x20contains\x20the\ - \x20string\x20\"howl\"\x20and\x20start_time\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20of\x20the\x20backup\x20is\x20before\x202018-03-2\ - 8T14:50:00Z.\n\x20*\x20`size_bytes\x20>\x2010000000000`\x20-->\x20The\ - \x20backup's\x20size\x20is\x20greater\x20than\x2010GB\n\n\r\n\x05\x04\ - \x1f\x02\x01\x05\x12\x04\xb9\x08\x02\x08\n\r\n\x05\x04\x1f\x02\x01\x01\ - \x12\x04\xb9\x08\t\x0f\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\xb9\x08\x12\ - \x13\n\xf7\x05\n\x04\x04\x1f\x02\x02\x12\x04\xd1\x08\x02\x16\x1a\xe8\x05\ - \x20An\x20expression\x20for\x20specifying\x20the\x20sort\x20order\x20of\ - \x20the\x20results\x20of\x20the\x20request.\n\x20The\x20string\x20value\ - \x20should\x20specify\x20one\x20or\x20more\x20fields\x20in\n\x20[Backup]\ - [google.bigtable.admin.v2.Backup].\x20The\x20full\x20syntax\x20is\x20des\ - cribed\x20at\n\x20https://aip.dev/132#ordering.\n\n\x20Fields\x20support\ - ed\x20are:\n\n\x20*\x20name\n\x20*\x20source_table\n\x20*\x20expire_time\ - \n\x20*\x20start_time\n\x20*\x20end_time\n\x20*\x20size_bytes\n\x20*\x20\ - state\n\n\x20For\x20example,\x20\"start_time\".\x20The\x20default\x20sor\ - ting\x20order\x20is\x20ascending.\n\x20To\x20specify\x20descending\x20or\ - der\x20for\x20the\x20field,\x20a\x20suffix\x20\"\x20desc\"\x20should\n\ - \x20be\x20appended\x20to\x20the\x20field\x20name.\x20For\x20example,\x20\ - \"start_time\x20desc\".\n\x20Redundant\x20space\x20characters\x20in\x20t\ - he\x20syntax\x20are\x20insigificant.\n\n\x20If\x20order_by\x20is\x20empt\ - y,\x20results\x20will\x20be\x20sorted\x20by\x20`start_time`\x20in\x20des\ - cending\n\x20order\x20starting\x20from\x20the\x20most\x20recently\x20cre\ - ated\x20backup.\n\n\r\n\x05\x04\x1f\x02\x02\x05\x12\x04\xd1\x08\x02\x08\ - \n\r\n\x05\x04\x1f\x02\x02\x01\x12\x04\xd1\x08\t\x11\n\r\n\x05\x04\x1f\ - \x02\x02\x03\x12\x04\xd1\x08\x14\x15\n\x84\x01\n\x04\x04\x1f\x02\x03\x12\ - \x04\xd5\x08\x02\x16\x1av\x20Number\x20of\x20backups\x20to\x20be\x20retu\ - rned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20defaults\ - \x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\ - \x05\x04\x1f\x02\x03\x05\x12\x04\xd5\x08\x02\x07\n\r\n\x05\x04\x1f\x02\ - \x03\x01\x12\x04\xd5\x08\x08\x11\n\r\n\x05\x04\x1f\x02\x03\x03\x12\x04\ - \xd5\x08\x14\x15\n\x95\x02\n\x04\x04\x1f\x02\x04\x12\x04\xdc\x08\x02\x18\ - \x1a\x86\x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\ - \x20a\n\x20[next_page_token][google.bigtable.admin.v2.ListBackupsRespons\ - e.next_page_token]\n\x20from\x20a\x20previous\n\x20[ListBackupsResponse]\ - [google.bigtable.admin.v2.ListBackupsResponse]\x20to\x20the\n\x20same\ - \x20`parent`\x20and\x20with\x20the\x20same\x20`filter`.\n\n\r\n\x05\x04\ - \x1f\x02\x04\x05\x12\x04\xdc\x08\x02\x08\n\r\n\x05\x04\x1f\x02\x04\x01\ - \x12\x04\xdc\x08\t\x13\n\r\n\x05\x04\x1f\x02\x04\x03\x12\x04\xdc\x08\x16\ - \x17\ni\n\x02\x04\x20\x12\x06\xe1\x08\0\xe9\x08\x01\x1a[\x20The\x20respo\ - nse\x20for\n\x20[ListBackups][google.bigtable.admin.v2.BigtableTableAdmi\ - n.ListBackups].\n\n\x0b\n\x03\x04\x20\x01\x12\x04\xe1\x08\x08\x1b\n-\n\ - \x04\x04\x20\x02\0\x12\x04\xe3\x08\x02\x1e\x1a\x1f\x20The\x20list\x20of\ - \x20matching\x20backups.\n\n\r\n\x05\x04\x20\x02\0\x04\x12\x04\xe3\x08\ - \x02\n\n\r\n\x05\x04\x20\x02\0\x06\x12\x04\xe3\x08\x0b\x11\n\r\n\x05\x04\ - \x20\x02\0\x01\x12\x04\xe3\x08\x12\x19\n\r\n\x05\x04\x20\x02\0\x03\x12\ - \x04\xe3\x08\x1c\x1d\n\xb3\x01\n\x04\x04\x20\x02\x01\x12\x04\xe8\x08\x02\ - \x1d\x1a\xa4\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\ - \x20subsequent\n\x20[ListBackups][google.bigtable.admin.v2.BigtableTable\ - Admin.ListBackups]\x20call\n\x20to\x20fetch\x20more\x20of\x20the\x20matc\ - hing\x20backups.\n\n\r\n\x05\x04\x20\x02\x01\x05\x12\x04\xe8\x08\x02\x08\ - \n\r\n\x05\x04\x20\x02\x01\x01\x12\x04\xe8\x08\t\x18\n\r\n\x05\x04\x20\ - \x02\x01\x03\x12\x04\xe8\x08\x1b\x1c\nf\n\x02\x04!\x12\x06\xed\x08\0\x95\ - \t\x01\x1aX\x20The\x20request\x20for\n\x20[CopyBackup][google.bigtable.a\ - dmin.v2.BigtableTableAdmin.CopyBackup].\n\n\x0b\n\x03\x04!\x01\x12\x04\ - \xed\x08\x08\x19\n\xdc\x01\n\x04\x04!\x02\0\x12\x06\xf1\x08\x02\xf6\x08\ - \x04\x1a\xcb\x01\x20Required.\x20The\x20name\x20of\x20the\x20destination\ - \x20cluster\x20that\x20will\x20contain\x20the\x20backup\n\x20copy.\x20Th\ - e\x20cluster\x20must\x20already\x20exists.\x20Values\x20are\x20of\x20the\ - \x20form:\n\x20`projects/{project}/instances/{instance}/clusters/{cluste\ - r}`.\n\n\r\n\x05\x04!\x02\0\x05\x12\x04\xf1\x08\x02\x08\n\r\n\x05\x04!\ - \x02\0\x01\x12\x04\xf1\x08\t\x0f\n\r\n\x05\x04!\x02\0\x03\x12\x04\xf1\ - \x08\x12\x13\n\x0f\n\x05\x04!\x02\0\x08\x12\x06\xf1\x08\x14\xf6\x08\x03\ - \n\x10\n\x08\x04!\x02\0\x08\x9c\x08\0\x12\x04\xf2\x08\x04*\n\x11\n\x07\ - \x04!\x02\0\x08\x9f\x08\x12\x06\xf3\x08\x04\xf5\x08\x05\n\xf4\x02\n\x04\ - \x04!\x02\x01\x12\x04\xfe\x08\x02@\x1a\xe5\x02\x20Required.\x20The\x20id\ - \x20of\x20the\x20new\x20backup.\x20The\x20`backup_id`\x20along\x20with\ - \x20`parent`\n\x20are\x20combined\x20as\x20{parent}/backups/{backup_id}\ - \x20to\x20create\x20the\x20full\x20backup\n\x20name,\x20of\x20the\x20for\ - m:\n\x20`projects/{project}/instances/{instance}/clusters/{cluster}/back\ - ups/{backup_id}`.\n\x20This\x20string\x20must\x20be\x20between\x201\x20a\ - nd\x2050\x20characters\x20in\x20length\x20and\x20match\x20the\n\x20regex\ - \x20[_a-zA-Z0-9][-_.a-zA-Z0-9]*.\n\n\r\n\x05\x04!\x02\x01\x05\x12\x04\ - \xfe\x08\x02\x08\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xfe\x08\t\x12\n\r\n\ - \x05\x04!\x02\x01\x03\x12\x04\xfe\x08\x15\x16\n\r\n\x05\x04!\x02\x01\x08\ - \x12\x04\xfe\x08\x17?\n\x10\n\x08\x04!\x02\x01\x08\x9c\x08\0\x12\x04\xfe\ - \x08\x18>\n\x96\x03\n\x04\x04!\x02\x02\x12\x06\x87\t\x02\x8c\t\x04\x1a\ - \x85\x03\x20Required.\x20The\x20source\x20backup\x20to\x20be\x20copied\ - \x20from.\n\x20The\x20source\x20backup\x20needs\x20to\x20be\x20in\x20REA\ - DY\x20state\x20for\x20it\x20to\x20be\x20copied.\n\x20Copying\x20a\x20cop\ - ied\x20backup\x20is\x20not\x20allowed.\n\x20Once\x20CopyBackup\x20is\x20\ - in\x20progress,\x20the\x20source\x20backup\x20cannot\x20be\x20deleted\ - \x20or\n\x20cleaned\x20up\x20on\x20expiration\x20until\x20CopyBackup\x20\ - is\x20finished.\n\x20Values\x20are\x20of\x20the\x20form:\n\x20`projects/\ - /instances//clusters//backups/`.\n\n\ - \r\n\x05\x04!\x02\x02\x05\x12\x04\x87\t\x02\x08\n\r\n\x05\x04!\x02\x02\ - \x01\x12\x04\x87\t\t\x16\n\r\n\x05\x04!\x02\x02\x03\x12\x04\x87\t\x19\ - \x1a\n\x0f\n\x05\x04!\x02\x02\x08\x12\x06\x87\t\x1b\x8c\t\x03\n\x10\n\ - \x08\x04!\x02\x02\x08\x9c\x08\0\x12\x04\x88\t\x04*\n\x11\n\x07\x04!\x02\ - \x02\x08\x9f\x08\x12\x06\x89\t\x04\x8b\t\x05\n\xbd\x02\n\x04\x04!\x02\ - \x03\x12\x06\x93\t\x02\x94\t/\x1a\xac\x02\x20Required.\x20Required.\x20T\ - he\x20expiration\x20time\x20of\x20the\x20copied\x20backup\x20with\n\x20m\ - icrosecond\x20granularity\x20that\x20must\x20be\x20at\x20least\x206\x20h\ - ours\x20and\x20at\x20most\x2030\x20days\n\x20from\x20the\x20time\x20the\ - \x20request\x20is\x20received.\x20Once\x20the\x20`expire_time`\x20has\n\ - \x20passed,\x20Cloud\x20Bigtable\x20will\x20delete\x20the\x20backup\x20a\ - nd\x20free\x20the\x20resources\x20used\n\x20by\x20the\x20backup.\n\n\r\n\ - \x05\x04!\x02\x03\x06\x12\x04\x93\t\x02\x1b\n\r\n\x05\x04!\x02\x03\x01\ - \x12\x04\x93\t\x1c'\n\r\n\x05\x04!\x02\x03\x03\x12\x04\x93\t*+\n\r\n\x05\ - \x04!\x02\x03\x08\x12\x04\x94\t\x06.\n\x10\n\x08\x04!\x02\x03\x08\x9c\ - \x08\0\x12\x04\x94\t\x07-\n\x96\x01\n\x02\x04\"\x12\x06\x99\t\0\xa8\t\ - \x01\x1a\x87\x01\x20Metadata\x20type\x20for\x20the\x20google.longrunning\ - .Operation\x20returned\x20by\n\x20[CopyBackup][google.bigtable.admin.v2.\ - BigtableTableAdmin.CopyBackup].\n\n\x0b\n\x03\x04\"\x01\x12\x04\x99\t\ - \x08\x1a\n\xbb\x01\n\x04\x04\"\x02\0\x12\x06\x9d\t\x02\x9f\t\x05\x1a\xaa\ - \x01\x20The\x20name\x20of\x20the\x20backup\x20being\x20created\x20throug\ - h\x20the\x20copy\x20operation.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects//instances//clusters//backups/\ - `.\n\n\r\n\x05\x04\"\x02\0\x05\x12\x04\x9d\t\x02\x08\n\r\n\x05\ - \x04\"\x02\0\x01\x12\x04\x9d\t\t\r\n\r\n\x05\x04\"\x02\0\x03\x12\x04\x9d\ - \t\x10\x11\n\x0f\n\x05\x04\"\x02\0\x08\x12\x06\x9d\t\x12\x9f\t\x04\n\x11\ - \n\x07\x04\"\x02\0\x08\x9f\x08\x12\x06\x9d\t\x13\x9f\t\x03\nN\n\x04\x04\ - \"\x02\x01\x12\x04\xa2\t\x02$\x1a@\x20Information\x20about\x20the\x20sou\ - rce\x20backup\x20that\x20is\x20being\x20copied\x20from.\n\n\r\n\x05\x04\ - \"\x02\x01\x06\x12\x04\xa2\t\x02\x0c\n\r\n\x05\x04\"\x02\x01\x01\x12\x04\ - \xa2\t\r\x1f\n\r\n\x05\x04\"\x02\x01\x03\x12\x04\xa2\t\"#\nu\n\x04\x04\"\ - \x02\x02\x12\x04\xa7\t\x02!\x1ag\x20The\x20progress\x20of\x20the\n\x20[C\ - opyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]\n\x20\ - operation.\n\n\r\n\x05\x04\"\x02\x02\x06\x12\x04\xa7\t\x02\x13\n\r\n\x05\ - \x04\"\x02\x02\x01\x12\x04\xa7\t\x14\x1c\n\r\n\x05\x04\"\x02\x02\x03\x12\ - \x04\xa7\t\x1f\x20b\x06proto3\ + \x04\x12\x02\x02\x06\x12\x04\xaa\x04\x02\x1b\n\r\n\x05\x04\x12\x02\x02\ + \x01\x12\x04\xaa\x04\x1c'\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xaa\x04*\ + +b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(8); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::table::file_descriptor().clone()); + deps.push(super::iam_policy::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(21); + messages.push(CreateTableRequest::generated_message_descriptor_data()); + messages.push(CreateTableFromSnapshotRequest::generated_message_descriptor_data()); + messages.push(DropRowRangeRequest::generated_message_descriptor_data()); + messages.push(ListTablesRequest::generated_message_descriptor_data()); + messages.push(ListTablesResponse::generated_message_descriptor_data()); + messages.push(GetTableRequest::generated_message_descriptor_data()); + messages.push(DeleteTableRequest::generated_message_descriptor_data()); + messages.push(ModifyColumnFamiliesRequest::generated_message_descriptor_data()); + messages.push(GenerateConsistencyTokenRequest::generated_message_descriptor_data()); + messages.push(GenerateConsistencyTokenResponse::generated_message_descriptor_data()); + messages.push(CheckConsistencyRequest::generated_message_descriptor_data()); + messages.push(CheckConsistencyResponse::generated_message_descriptor_data()); + messages.push(SnapshotTableRequest::generated_message_descriptor_data()); + messages.push(GetSnapshotRequest::generated_message_descriptor_data()); + messages.push(ListSnapshotsRequest::generated_message_descriptor_data()); + messages.push(ListSnapshotsResponse::generated_message_descriptor_data()); + messages.push(DeleteSnapshotRequest::generated_message_descriptor_data()); + messages.push(SnapshotTableMetadata::generated_message_descriptor_data()); + messages.push(CreateTableFromSnapshotMetadata::generated_message_descriptor_data()); + messages.push(create_table_request::Split::generated_message_descriptor_data()); + messages.push(modify_column_families_request::Modification::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs b/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs index 43114ab..5d10546 100644 --- a/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs +++ b/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin_grpc.rs @@ -44,13 +44,6 @@ const METHOD_BIGTABLE_TABLE_ADMIN_GET_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/UpdateTable", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteTable", @@ -58,13 +51,6 @@ const METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/UndeleteTable", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.bigtable.admin.v2.BigtableTableAdmin/ModifyColumnFamilies", @@ -121,55 +107,6 @@ const METHOD_BIGTABLE_TABLE_ADMIN_DELETE_SNAPSHOT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/CreateBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_GET_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/UpdateBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_DELETE_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/DeleteBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_LIST_BACKUPS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/ListBackups", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_RESTORE_TABLE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/RestoreTable", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_TABLE_ADMIN_COPY_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.admin.v2.BigtableTableAdmin/CopyBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_BIGTABLE_TABLE_ADMIN_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.bigtable.admin.v2.BigtableTableAdmin/GetIamPolicy", @@ -267,22 +204,6 @@ impl BigtableTableAdminClient { self.get_table_async_opt(req, ::grpcio::CallOption::default()) } - pub fn update_table_opt(&self, req: &super::bigtable_table_admin::UpdateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_TABLE, req, opt) - } - - pub fn update_table(&self, req: &super::bigtable_table_admin::UpdateTableRequest) -> ::grpcio::Result { - self.update_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_table_async_opt(&self, req: &super::bigtable_table_admin::UpdateTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_TABLE, req, opt) - } - - pub fn update_table_async(&self, req: &super::bigtable_table_admin::UpdateTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_table_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn delete_table_opt(&self, req: &super::bigtable_table_admin::DeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_TABLE, req, opt) } @@ -299,22 +220,6 @@ impl BigtableTableAdminClient { self.delete_table_async_opt(req, ::grpcio::CallOption::default()) } - pub fn undelete_table_opt(&self, req: &super::bigtable_table_admin::UndeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_UNDELETE_TABLE, req, opt) - } - - pub fn undelete_table(&self, req: &super::bigtable_table_admin::UndeleteTableRequest) -> ::grpcio::Result { - self.undelete_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn undelete_table_async_opt(&self, req: &super::bigtable_table_admin::UndeleteTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_UNDELETE_TABLE, req, opt) - } - - pub fn undelete_table_async(&self, req: &super::bigtable_table_admin::UndeleteTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.undelete_table_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn modify_column_families_opt(&self, req: &super::bigtable_table_admin::ModifyColumnFamiliesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_MODIFY_COLUMN_FAMILIES, req, opt) } @@ -443,118 +348,6 @@ impl BigtableTableAdminClient { self.delete_snapshot_async_opt(req, ::grpcio::CallOption::default()) } - pub fn create_backup_opt(&self, req: &super::bigtable_table_admin::CreateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_BACKUP, req, opt) - } - - pub fn create_backup(&self, req: &super::bigtable_table_admin::CreateBackupRequest) -> ::grpcio::Result { - self.create_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_backup_async_opt(&self, req: &super::bigtable_table_admin::CreateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_CREATE_BACKUP, req, opt) - } - - pub fn create_backup_async(&self, req: &super::bigtable_table_admin::CreateBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_backup_opt(&self, req: &super::bigtable_table_admin::GetBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_BACKUP, req, opt) - } - - pub fn get_backup(&self, req: &super::bigtable_table_admin::GetBackupRequest) -> ::grpcio::Result { - self.get_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_backup_async_opt(&self, req: &super::bigtable_table_admin::GetBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_GET_BACKUP, req, opt) - } - - pub fn get_backup_async(&self, req: &super::bigtable_table_admin::GetBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_backup_opt(&self, req: &super::bigtable_table_admin::UpdateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_BACKUP, req, opt) - } - - pub fn update_backup(&self, req: &super::bigtable_table_admin::UpdateBackupRequest) -> ::grpcio::Result { - self.update_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_backup_async_opt(&self, req: &super::bigtable_table_admin::UpdateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_UPDATE_BACKUP, req, opt) - } - - pub fn update_backup_async(&self, req: &super::bigtable_table_admin::UpdateBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_backup_opt(&self, req: &super::bigtable_table_admin::DeleteBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_BACKUP, req, opt) - } - - pub fn delete_backup(&self, req: &super::bigtable_table_admin::DeleteBackupRequest) -> ::grpcio::Result { - self.delete_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_backup_async_opt(&self, req: &super::bigtable_table_admin::DeleteBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_DELETE_BACKUP, req, opt) - } - - pub fn delete_backup_async(&self, req: &super::bigtable_table_admin::DeleteBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backups_opt(&self, req: &super::bigtable_table_admin::ListBackupsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_BACKUPS, req, opt) - } - - pub fn list_backups(&self, req: &super::bigtable_table_admin::ListBackupsRequest) -> ::grpcio::Result { - self.list_backups_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backups_async_opt(&self, req: &super::bigtable_table_admin::ListBackupsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_LIST_BACKUPS, req, opt) - } - - pub fn list_backups_async(&self, req: &super::bigtable_table_admin::ListBackupsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_backups_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn restore_table_opt(&self, req: &super::bigtable_table_admin::RestoreTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_RESTORE_TABLE, req, opt) - } - - pub fn restore_table(&self, req: &super::bigtable_table_admin::RestoreTableRequest) -> ::grpcio::Result { - self.restore_table_opt(req, ::grpcio::CallOption::default()) - } - - pub fn restore_table_async_opt(&self, req: &super::bigtable_table_admin::RestoreTableRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_RESTORE_TABLE, req, opt) - } - - pub fn restore_table_async(&self, req: &super::bigtable_table_admin::RestoreTableRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.restore_table_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_backup_opt(&self, req: &super::bigtable_table_admin::CopyBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_COPY_BACKUP, req, opt) - } - - pub fn copy_backup(&self, req: &super::bigtable_table_admin::CopyBackupRequest) -> ::grpcio::Result { - self.copy_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_backup_async_opt(&self, req: &super::bigtable_table_admin::CopyBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_TABLE_ADMIN_COPY_BACKUP, req, opt) - } - - pub fn copy_backup_async(&self, req: &super::bigtable_table_admin::CopyBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.copy_backup_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn get_iam_policy_opt(&self, req: &super::iam_policy::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_BIGTABLE_TABLE_ADMIN_GET_IAM_POLICY, req, opt) } @@ -620,15 +413,9 @@ pub trait BigtableTableAdmin { fn get_table(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::GetTableRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn update_table(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::UpdateTableRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn delete_table(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::DeleteTableRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn undelete_table(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::UndeleteTableRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn modify_column_families(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::ModifyColumnFamiliesRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } @@ -653,27 +440,6 @@ pub trait BigtableTableAdmin { fn delete_snapshot(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::DeleteSnapshotRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn create_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::CreateBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::GetBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::UpdateBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::DeleteBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_backups(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::ListBackupsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn restore_table(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::RestoreTableRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn copy_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable_table_admin::CopyBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } @@ -704,18 +470,10 @@ pub fn create_bigtable_table_admin, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OperationProgress { - fn default() -> &'a OperationProgress { - ::default_instance() - } -} - -impl OperationProgress { - pub fn new() -> OperationProgress { - ::std::default::Default::default() - } - - // int32 progress_percent = 1; - - - pub fn get_progress_percent(&self) -> i32 { - self.progress_percent - } - pub fn clear_progress_percent(&mut self) { - self.progress_percent = 0; - } - - // Param is passed by value, moved - pub fn set_progress_percent(&mut self, v: i32) { - self.progress_percent = v; - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OperationProgress { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.progress_percent = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.progress_percent != 0 { - my_size += ::protobuf::rt::value_size(1, self.progress_percent, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.progress_percent != 0 { - os.write_int32(1, self.progress_percent)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OperationProgress { - OperationProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "progress_percent", - |m: &OperationProgress| { &m.progress_percent }, - |m: &mut OperationProgress| { &mut m.progress_percent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &OperationProgress| { &m.start_time }, - |m: &mut OperationProgress| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &OperationProgress| { &m.end_time }, - |m: &mut OperationProgress| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OperationProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationProgress::new) - } -} - -impl ::protobuf::Clear for OperationProgress { - fn clear(&mut self) { - self.progress_percent = 0; - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OperationProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OperationProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// Storage media types for persisting Bigtable data. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.bigtable.admin.v2.StorageType) pub enum StorageType { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.StorageType.STORAGE_TYPE_UNSPECIFIED) STORAGE_TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.StorageType.SSD) SSD = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.StorageType.HDD) HDD = 2, } -impl ::protobuf::ProtobufEnum for StorageType { +impl ::protobuf::Enum for StorageType { + const NAME: &'static str = "StorageType"; + fn value(&self) -> i32 { *self as i32 } @@ -310,24 +53,32 @@ impl ::protobuf::ProtobufEnum for StorageType { } } - fn values() -> &'static [Self] { - static values: &'static [StorageType] = &[ - StorageType::STORAGE_TYPE_UNSPECIFIED, - StorageType::SSD, - StorageType::HDD, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STORAGE_TYPE_UNSPECIFIED" => ::std::option::Option::Some(StorageType::STORAGE_TYPE_UNSPECIFIED), + "SSD" => ::std::option::Option::Some(StorageType::SSD), + "HDD" => ::std::option::Option::Some(StorageType::HDD), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("StorageType", file_descriptor_proto()) - }) - } + const VALUES: &'static [StorageType] = &[ + StorageType::STORAGE_TYPE_UNSPECIFIED, + StorageType::SSD, + StorageType::HDD, + ]; } -impl ::std::marker::Copy for StorageType { +impl ::protobuf::EnumFull for StorageType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("StorageType").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for StorageType { @@ -336,79 +87,80 @@ impl ::std::default::Default for StorageType { } } -impl ::protobuf::reflect::ProtobufValue for StorageType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl StorageType { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("StorageType") } } static file_descriptor_proto_data: &'static [u8] = b"\ \n%google/bigtable/admin/v2/common.proto\x12\x18google.bigtable.admin.v2\ - \x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x11OperationProgress\ - \x12)\n\x10progress_percent\x18\x01\x20\x01(\x05R\x0fprogressPercent\x12\ - 9\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tst\ - artTime\x125\n\x08end_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Tim\ - estampR\x07endTime*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIF\ - IED\x10\0\x12\x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02B\xd3\x01\n\ - \x1ccom.google.bigtable.admin.v2B\x0bCommonProtoP\x01Z=google.golang.org\ - /genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Big\ - table.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Go\ - ogle::Cloud::Bigtable::Admin::V2J\x98\x0c\n\x06\x12\x04\x0e\05\x01\n\xbc\ - \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Google\ - \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ - \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ - \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ - ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ - \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ - \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ - riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ - \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ - RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ - \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\x14\0;\n\t\n\x02\x08%\x12\x03\ - \x14\0;\n\x08\n\x01\x08\x12\x03\x15\0T\n\t\n\x02\x08\x0b\x12\x03\x15\0T\ - \n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\ - \x01\x08\x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\ - \x12\x03\x18\05\n\t\n\x02\x08\x01\x12\x03\x18\05\n\x08\n\x01\x08\x12\x03\ - \x19\0<\n\t\n\x02\x08)\x12\x03\x19\0<\n\x08\n\x01\x08\x12\x03\x1a\0;\n\t\ - \n\x02\x08-\x12\x03\x1a\0;\n?\n\x02\x05\0\x12\x04\x1d\0&\x01\x1a3\x20Sto\ - rage\x20media\x20types\x20for\x20persisting\x20Bigtable\x20data.\n\n\n\n\ - \x03\x05\0\x01\x12\x03\x1d\x05\x10\n7\n\x04\x05\0\x02\0\x12\x03\x1f\x02\ - \x1f\x1a*\x20The\x20user\x20did\x20not\x20specify\x20a\x20storage\x20typ\ - e.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1f\x02\x1a\n\x0c\n\x05\x05\0\ - \x02\0\x02\x12\x03\x1f\x1d\x1e\n2\n\x04\x05\0\x02\x01\x12\x03\"\x02\n\ - \x1a%\x20Flash\x20(SSD)\x20storage\x20should\x20be\x20used.\n\n\x0c\n\ - \x05\x05\0\x02\x01\x01\x12\x03\"\x02\x05\n\x0c\n\x05\x05\0\x02\x01\x02\ - \x12\x03\"\x08\t\n;\n\x04\x05\0\x02\x02\x12\x03%\x02\n\x1a.\x20Magnetic\ - \x20drive\x20(HDD)\x20storage\x20should\x20be\x20used.\n\n\x0c\n\x05\x05\ - \0\x02\x02\x01\x12\x03%\x02\x05\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03%\ - \x08\t\ne\n\x02\x04\0\x12\x04*\05\x01\x1aY\x20Encapsulates\x20progress\ - \x20related\x20information\x20for\x20a\x20Cloud\x20Bigtable\x20long\n\ - \x20running\x20operation.\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\x19\n\\\n\ - \x04\x04\0\x02\0\x12\x03-\x02\x1d\x1aO\x20Percent\x20completion\x20of\ - \x20the\x20operation.\n\x20Values\x20are\x20between\x200\x20and\x20100\ - \x20inclusive.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03-\x02\x07\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03-\x08\x18\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03-\x1b\x1c\n-\n\x04\x04\0\x02\x01\x12\x030\x02+\x1a\x20\x20Time\x20th\ - e\x20request\x20was\x20received.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\ - 0\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x030\x1c&\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x030)*\n^\n\x04\x04\0\x02\x02\x12\x034\x02)\x1aQ\x20If\ - \x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\x20failed\ - \x20or\x20was\x20completed\n\x20successfully.\n\n\x0c\n\x05\x04\0\x02\ - \x02\x06\x12\x034\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x034\x1c$\n\ - \x0c\n\x05\x04\0\x02\x02\x03\x12\x034'(b\x06proto3\ + \x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.pr\ + oto*=\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\0\x12\ + \x07\n\x03SSD\x10\x01\x12\x07\n\x03HDD\x10\x02B\xae\x01\n\x1ccom.google.\ + bigtable.admin.v2B\x0bCommonProtoP\x01Z=google.golang.org/genproto/googl\ + eapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\ + \xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2J\xb2\x08\n\x06\x12\x04\ + \x0f\0'\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\ + \x202018\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20\ + License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20n\ + ot\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ + \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ + nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ + 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ + \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0!\n\ + \t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0)\n\x08\n\ + \x01\x08\x12\x03\x16\0;\n\t\n\x02\x08%\x12\x03\x16\0;\n\x08\n\x01\x08\ + \x12\x03\x17\0T\n\t\n\x02\x08\x0b\x12\x03\x17\0T\n\x08\n\x01\x08\x12\x03\ + \x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0,\ + \n\t\n\x02\x08\x08\x12\x03\x19\0,\n\x08\n\x01\x08\x12\x03\x1a\05\n\t\n\ + \x02\x08\x01\x12\x03\x1a\05\n\x08\n\x01\x08\x12\x03\x1b\0<\n\t\n\x02\x08\ + )\x12\x03\x1b\0<\n?\n\x02\x05\0\x12\x04\x1e\0'\x01\x1a3\x20Storage\x20me\ + dia\x20types\x20for\x20persisting\x20Bigtable\x20data.\n\n\n\n\x03\x05\0\ + \x01\x12\x03\x1e\x05\x10\n7\n\x04\x05\0\x02\0\x12\x03\x20\x02\x1f\x1a*\ + \x20The\x20user\x20did\x20not\x20specify\x20a\x20storage\x20type.\n\n\ + \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x20\x02\x1a\n\x0c\n\x05\x05\0\x02\0\ + \x02\x12\x03\x20\x1d\x1e\n2\n\x04\x05\0\x02\x01\x12\x03#\x02\n\x1a%\x20F\ + lash\x20(SSD)\x20storage\x20should\x20be\x20used.\n\n\x0c\n\x05\x05\0\ + \x02\x01\x01\x12\x03#\x02\x05\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03#\x08\ + \t\n;\n\x04\x05\0\x02\x02\x12\x03&\x02\n\x1a.\x20Magnetic\x20drive\x20(H\ + DD)\x20storage\x20should\x20be\x20used.\n\n\x0c\n\x05\x05\0\x02\x02\x01\ + \x12\x03&\x02\x05\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03&\x08\tb\x06proto\ + 3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(StorageType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/admin/v2/instance.rs b/googleapis-raw/src/bigtable/admin/v2/instance.rs index 0709e75..a00aefa 100644 --- a/googleapis-raw/src/bigtable/admin/v2/instance.rs +++ b/googleapis-raw/src/bigtable/admin/v2/instance.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,28 +16,56 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/bigtable/admin/v2/instance.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and +/// the resources that serve them. +/// All tables in an instance are served from a single +/// [Cluster][google.bigtable.admin.v2.Cluster]. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.Instance) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Instance { // message fields + /// (`OutputOnly`) + /// The unique name of the instance. Values are of the form + /// `projects//instances/[a-z][a-z0-9\\-]+[a-z0-9]`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Instance.name) pub name: ::std::string::String, + /// The descriptive name for this instance as it appears in UIs. + /// Can be changed at any time, but should be kept globally unique + /// to avoid confusion. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Instance.display_name) pub display_name: ::std::string::String, - pub state: Instance_State, - pub field_type: Instance_Type, + /// (`OutputOnly`) + /// The current state of the instance. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Instance.state) + pub state: ::protobuf::EnumOrUnknown, + /// The type of the instance. Defaults to `PRODUCTION`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Instance.type) + pub type_: ::protobuf::EnumOrUnknown, + /// Labels are a flexible and lightweight mechanism for organizing cloud + /// resources into groups that reflect a customer's organizational needs and + /// deployment strategies. They can be used to filter resources and aggregate + /// metrics. + /// + /// * Label keys must be between 1 and 63 characters long and must conform to + /// the regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`. + /// * Label values must be between 0 and 63 characters long and must conform to + /// the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`. + /// * No more than 64 labels can be associated with a given resource. + /// * Keys and values must both be under 128 bytes. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Instance.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // message oneof groups - pub _satisfies_pzs: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.Instance.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Instance { @@ -45,222 +74,86 @@ impl<'a> ::std::default::Default for &'a Instance { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Instance_oneof__satisfies_pzs { - satisfies_pzs(bool), -} - impl Instance { pub fn new() -> Instance { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Instance.State state = 3; - - - pub fn get_state(&self) -> Instance_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Instance_State::STATE_NOT_KNOWN; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Instance_State) { - self.state = v; - } - - // .google.bigtable.admin.v2.Instance.Type type = 4; - - - pub fn get_field_type(&self) -> Instance_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = Instance_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Instance_Type) { - self.field_type = v; - } - - // repeated .google.bigtable.admin.v2.Instance.LabelsEntry labels = 5; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // .google.protobuf.Timestamp create_time = 7; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // bool satisfies_pzs = 8; - - - pub fn get_satisfies_pzs(&self) -> bool { - match self._satisfies_pzs { - ::std::option::Option::Some(Instance_oneof__satisfies_pzs::satisfies_pzs(v)) => v, - _ => false, - } - } - pub fn clear_satisfies_pzs(&mut self) { - self._satisfies_pzs = ::std::option::Option::None; - } - - pub fn has_satisfies_pzs(&self) -> bool { - match self._satisfies_pzs { - ::std::option::Option::Some(Instance_oneof__satisfies_pzs::satisfies_pzs(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_satisfies_pzs(&mut self, v: bool) { - self._satisfies_pzs = ::std::option::Option::Some(Instance_oneof__satisfies_pzs::satisfies_pzs(v)) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Instance| { &m.name }, + |m: &mut Instance| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &Instance| { &m.display_name }, + |m: &mut Instance| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "state", + |m: &Instance| { &m.state }, + |m: &mut Instance| { &mut m.state }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &Instance| { &m.type_ }, + |m: &mut Instance| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Instance| { &m.labels }, + |m: &mut Instance| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Instance", + fields, + oneofs, + ) } } impl ::protobuf::Message for Instance { + const NAME: &'static str = "Instance"; + fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.display_name = is.read_string()?; + }, + 24 => { + self.state = is.read_enum_or_unknown()?; + }, + 32 => { + self.type_ = is.read_enum_or_unknown()?; + }, + 42 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; } - self._satisfies_pzs = ::std::option::Option::Some(Instance_oneof__satisfies_pzs::satisfies_pzs(is.read_bool()?)); + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -269,7 +162,7 @@ impl ::protobuf::Message for Instance { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -277,350 +170,343 @@ impl ::protobuf::Message for Instance { if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.display_name); } - if self.state != Instance_State::STATE_NOT_KNOWN { - my_size += ::protobuf::rt::enum_size(3, self.state); + if self.state != ::protobuf::EnumOrUnknown::new(instance::State::STATE_NOT_KNOWN) { + my_size += ::protobuf::rt::int32_size(3, self.state.value()); } - if self.field_type != Instance_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.field_type); + if self.type_ != ::protobuf::EnumOrUnknown::new(instance::Type::TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.type_.value()); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &self.labels); - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self._satisfies_pzs { - match v { - &Instance_oneof__satisfies_pzs::satisfies_pzs(v) => { - my_size += 2; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } if !self.display_name.is_empty() { os.write_string(2, &self.display_name)?; } - if self.state != Instance_State::STATE_NOT_KNOWN { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if self.field_type != Instance_Type::TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &self.labels, os)?; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.state != ::protobuf::EnumOrUnknown::new(instance::State::STATE_NOT_KNOWN) { + os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.state))?; } - if let ::std::option::Option::Some(ref v) = self._satisfies_pzs { - match v { - &Instance_oneof__satisfies_pzs::satisfies_pzs(v) => { - os.write_bool(8, v)?; - }, - }; + if self.type_ != ::protobuf::EnumOrUnknown::new(instance::Type::TYPE_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.type_))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(42)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Instance { Instance::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Instance| { &m.name }, - |m: &mut Instance| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Instance| { &m.display_name }, - |m: &mut Instance| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Instance| { &m.state }, - |m: &mut Instance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &Instance| { &m.field_type }, - |m: &mut Instance| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Instance| { &m.labels }, - |m: &mut Instance| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Instance| { &m.create_time }, - |m: &mut Instance| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "satisfies_pzs", - Instance::has_satisfies_pzs, - Instance::get_satisfies_pzs, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Instance", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.display_name.clear(); + self.state = ::protobuf::EnumOrUnknown::new(instance::State::STATE_NOT_KNOWN); + self.type_ = ::protobuf::EnumOrUnknown::new(instance::Type::TYPE_UNSPECIFIED); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Instance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(Instance::new) } } -impl ::protobuf::Clear for Instance { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.state = Instance_State::STATE_NOT_KNOWN; - self.field_type = Instance_Type::TYPE_UNSPECIFIED; - self.labels.clear(); - self.create_time.clear(); - self._satisfies_pzs = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Instance { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Instance").unwrap()).clone() } } -impl ::std::fmt::Debug for Instance { +impl ::std::fmt::Display for Instance { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Instance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Instance_State { - STATE_NOT_KNOWN = 0, - READY = 1, - CREATING = 2, + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for Instance_State { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `Instance` +pub mod instance { + /// Possible states of an instance. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Instance.State) + pub enum State { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.State.STATE_NOT_KNOWN) + STATE_NOT_KNOWN = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.State.READY) + READY = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.State.CREATING) + CREATING = 2, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Instance_State::STATE_NOT_KNOWN), - 1 => ::std::option::Option::Some(Instance_State::READY), - 2 => ::std::option::Option::Some(Instance_State::CREATING), - _ => ::std::option::Option::None + impl ::protobuf::Enum for State { + const NAME: &'static str = "State"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + 1 => ::std::option::Option::Some(State::READY), + 2 => ::std::option::Option::Some(State::CREATING), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_NOT_KNOWN" => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + "READY" => ::std::option::Option::Some(State::READY), + "CREATING" => ::std::option::Option::Some(State::CREATING), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [Instance_State] = &[ - Instance_State::STATE_NOT_KNOWN, - Instance_State::READY, - Instance_State::CREATING, + const VALUES: &'static [State] = &[ + State::STATE_NOT_KNOWN, + State::READY, + State::CREATING, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Instance.State", file_descriptor_proto()) - }) + impl ::protobuf::EnumFull for State { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Instance.State").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } -} -impl ::std::marker::Copy for Instance_State { -} + impl ::std::default::Default for State { + fn default() -> Self { + State::STATE_NOT_KNOWN + } + } -impl ::std::default::Default for Instance_State { - fn default() -> Self { - Instance_State::STATE_NOT_KNOWN + impl State { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Instance.State") + } } -} -impl ::protobuf::reflect::ProtobufValue for Instance_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + /// The type of the instance. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Instance.Type) + pub enum Type { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.Type.TYPE_UNSPECIFIED) + TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.Type.PRODUCTION) + PRODUCTION = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Instance.Type.DEVELOPMENT) + DEVELOPMENT = 2, } -} -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Instance_Type { - TYPE_UNSPECIFIED = 0, - PRODUCTION = 1, - DEVELOPMENT = 2, -} + impl ::protobuf::Enum for Type { + const NAME: &'static str = "Type"; -impl ::protobuf::ProtobufEnum for Instance_Type { - fn value(&self) -> i32 { - *self as i32 - } + fn value(&self) -> i32 { + *self as i32 + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Instance_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Instance_Type::PRODUCTION), - 2 => ::std::option::Option::Some(Instance_Type::DEVELOPMENT), - _ => ::std::option::Option::None + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Type::TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(Type::PRODUCTION), + 2 => ::std::option::Option::Some(Type::DEVELOPMENT), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "TYPE_UNSPECIFIED" => ::std::option::Option::Some(Type::TYPE_UNSPECIFIED), + "PRODUCTION" => ::std::option::Option::Some(Type::PRODUCTION), + "DEVELOPMENT" => ::std::option::Option::Some(Type::DEVELOPMENT), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [Instance_Type] = &[ - Instance_Type::TYPE_UNSPECIFIED, - Instance_Type::PRODUCTION, - Instance_Type::DEVELOPMENT, + const VALUES: &'static [Type] = &[ + Type::TYPE_UNSPECIFIED, + Type::PRODUCTION, + Type::DEVELOPMENT, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Instance.Type", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Type { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Instance.Type").unwrap()).clone() + } -impl ::std::marker::Copy for Instance_Type { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for Instance_Type { - fn default() -> Self { - Instance_Type::TYPE_UNSPECIFIED + impl ::std::default::Default for Type { + fn default() -> Self { + Type::TYPE_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for Instance_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Type { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Instance.Type") + } } } -#[derive(PartialEq,Clone,Default)] -pub struct AutoscalingTargets { +/// A resizable group of nodes in a particular cloud location, capable +/// of serving all [Tables][google.bigtable.admin.v2.Table] in the parent +/// [Instance][google.bigtable.admin.v2.Instance]. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.Cluster) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Cluster { // message fields - pub cpu_utilization_percent: i32, - pub storage_utilization_gib_per_node: i32, + /// (`OutputOnly`) + /// The unique name of the cluster. Values are of the form + /// `projects//instances//clusters/[a-z][-a-z0-9]*`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Cluster.name) + pub name: ::std::string::String, + /// (`CreationOnly`) + /// The location where this cluster's nodes and storage reside. For best + /// performance, clients should be located as close as possible to this + /// cluster. Currently only zones are supported, so values should be of the + /// form `projects//locations/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Cluster.location) + pub location: ::std::string::String, + /// (`OutputOnly`) + /// The current state of the cluster. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Cluster.state) + pub state: ::protobuf::EnumOrUnknown, + /// The number of nodes allocated to this cluster. More nodes enable higher + /// throughput and more consistent performance. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Cluster.serve_nodes) + pub serve_nodes: i32, + /// (`CreationOnly`) + /// The type of storage used by this cluster to serve its + /// parent instance's tables, unless explicitly overridden. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Cluster.default_storage_type) + pub default_storage_type: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.Cluster.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a AutoscalingTargets { - fn default() -> &'a AutoscalingTargets { - ::default_instance() +impl<'a> ::std::default::Default for &'a Cluster { + fn default() -> &'a Cluster { + ::default_instance() } } -impl AutoscalingTargets { - pub fn new() -> AutoscalingTargets { +impl Cluster { + pub fn new() -> Cluster { ::std::default::Default::default() } - // int32 cpu_utilization_percent = 2; - - - pub fn get_cpu_utilization_percent(&self) -> i32 { - self.cpu_utilization_percent - } - pub fn clear_cpu_utilization_percent(&mut self) { - self.cpu_utilization_percent = 0; - } - - // Param is passed by value, moved - pub fn set_cpu_utilization_percent(&mut self, v: i32) { - self.cpu_utilization_percent = v; - } - - // int32 storage_utilization_gib_per_node = 3; - - - pub fn get_storage_utilization_gib_per_node(&self) -> i32 { - self.storage_utilization_gib_per_node - } - pub fn clear_storage_utilization_gib_per_node(&mut self) { - self.storage_utilization_gib_per_node = 0; - } - - // Param is passed by value, moved - pub fn set_storage_utilization_gib_per_node(&mut self, v: i32) { - self.storage_utilization_gib_per_node = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Cluster| { &m.name }, + |m: &mut Cluster| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "location", + |m: &Cluster| { &m.location }, + |m: &mut Cluster| { &mut m.location }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "state", + |m: &Cluster| { &m.state }, + |m: &mut Cluster| { &mut m.state }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "serve_nodes", + |m: &Cluster| { &m.serve_nodes }, + |m: &mut Cluster| { &mut m.serve_nodes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "default_storage_type", + |m: &Cluster| { &m.default_storage_type }, + |m: &mut Cluster| { &mut m.default_storage_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Cluster", + fields, + oneofs, + ) } } -impl ::protobuf::Message for AutoscalingTargets { +impl ::protobuf::Message for Cluster { + const NAME: &'static str = "Cluster"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.cpu_utilization_percent = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.storage_utilization_gib_per_node = tmp; + 18 => { + self.location = is.read_string()?; + }, + 24 => { + self.state = is.read_enum_or_unknown()?; + }, + 32 => { + self.serve_nodes = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 40 => { + self.default_storage_type = is.read_enum_or_unknown()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -629,3058 +515,897 @@ impl ::protobuf::Message for AutoscalingTargets { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.cpu_utilization_percent != 0 { - my_size += ::protobuf::rt::value_size(2, self.cpu_utilization_percent, ::protobuf::wire_format::WireTypeVarint); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.location.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.location); + } + if self.state != ::protobuf::EnumOrUnknown::new(cluster::State::STATE_NOT_KNOWN) { + my_size += ::protobuf::rt::int32_size(3, self.state.value()); + } + if self.serve_nodes != 0 { + my_size += ::protobuf::rt::int32_size(4, self.serve_nodes); } - if self.storage_utilization_gib_per_node != 0 { - my_size += ::protobuf::rt::value_size(3, self.storage_utilization_gib_per_node, ::protobuf::wire_format::WireTypeVarint); + if self.default_storage_type != ::protobuf::EnumOrUnknown::new(super::common::StorageType::STORAGE_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(5, self.default_storage_type.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.cpu_utilization_percent != 0 { - os.write_int32(2, self.cpu_utilization_percent)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.location.is_empty() { + os.write_string(2, &self.location)?; + } + if self.state != ::protobuf::EnumOrUnknown::new(cluster::State::STATE_NOT_KNOWN) { + os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.state))?; + } + if self.serve_nodes != 0 { + os.write_int32(4, self.serve_nodes)?; } - if self.storage_utilization_gib_per_node != 0 { - os.write_int32(3, self.storage_utilization_gib_per_node)?; + if self.default_storage_type != ::protobuf::EnumOrUnknown::new(super::common::StorageType::STORAGE_TYPE_UNSPECIFIED) { + os.write_enum(5, ::protobuf::EnumOrUnknown::value(&self.default_storage_type))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> AutoscalingTargets { - AutoscalingTargets::new() + fn new() -> Cluster { + Cluster::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "cpu_utilization_percent", - |m: &AutoscalingTargets| { &m.cpu_utilization_percent }, - |m: &mut AutoscalingTargets| { &mut m.cpu_utilization_percent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "storage_utilization_gib_per_node", - |m: &AutoscalingTargets| { &m.storage_utilization_gib_per_node }, - |m: &mut AutoscalingTargets| { &mut m.storage_utilization_gib_per_node }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AutoscalingTargets", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.location.clear(); + self.state = ::protobuf::EnumOrUnknown::new(cluster::State::STATE_NOT_KNOWN); + self.serve_nodes = 0; + self.default_storage_type = ::protobuf::EnumOrUnknown::new(super::common::StorageType::STORAGE_TYPE_UNSPECIFIED); + self.special_fields.clear(); } - fn default_instance() -> &'static AutoscalingTargets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AutoscalingTargets::new) + fn default_instance() -> &'static Cluster { + static instance: Cluster = Cluster { + name: ::std::string::String::new(), + location: ::std::string::String::new(), + state: ::protobuf::EnumOrUnknown::from_i32(0), + serve_nodes: 0, + default_storage_type: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AutoscalingTargets { - fn clear(&mut self) { - self.cpu_utilization_percent = 0; - self.storage_utilization_gib_per_node = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Cluster { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Cluster").unwrap()).clone() } } -impl ::std::fmt::Debug for AutoscalingTargets { +impl ::std::fmt::Display for Cluster { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AutoscalingTargets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::reflect::ProtobufValue for Cluster { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `Cluster` +pub mod cluster { + /// Possible states of a cluster. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Cluster.State) + pub enum State { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Cluster.State.STATE_NOT_KNOWN) + STATE_NOT_KNOWN = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Cluster.State.READY) + READY = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Cluster.State.CREATING) + CREATING = 2, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Cluster.State.RESIZING) + RESIZING = 3, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Cluster.State.DISABLED) + DISABLED = 4, + } + + impl ::protobuf::Enum for State { + const NAME: &'static str = "State"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + 1 => ::std::option::Option::Some(State::READY), + 2 => ::std::option::Option::Some(State::CREATING), + 3 => ::std::option::Option::Some(State::RESIZING), + 4 => ::std::option::Option::Some(State::DISABLED), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_NOT_KNOWN" => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + "READY" => ::std::option::Option::Some(State::READY), + "CREATING" => ::std::option::Option::Some(State::CREATING), + "RESIZING" => ::std::option::Option::Some(State::RESIZING), + "DISABLED" => ::std::option::Option::Some(State::DISABLED), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [State] = &[ + State::STATE_NOT_KNOWN, + State::READY, + State::CREATING, + State::RESIZING, + State::DISABLED, + ]; } -} -#[derive(PartialEq,Clone,Default)] -pub struct AutoscalingLimits { - // message fields - pub min_serve_nodes: i32, - pub max_serve_nodes: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AutoscalingLimits { - fn default() -> &'a AutoscalingLimits { - ::default_instance() - } -} - -impl AutoscalingLimits { - pub fn new() -> AutoscalingLimits { - ::std::default::Default::default() - } - - // int32 min_serve_nodes = 1; - - - pub fn get_min_serve_nodes(&self) -> i32 { - self.min_serve_nodes - } - pub fn clear_min_serve_nodes(&mut self) { - self.min_serve_nodes = 0; - } - - // Param is passed by value, moved - pub fn set_min_serve_nodes(&mut self, v: i32) { - self.min_serve_nodes = v; - } - - // int32 max_serve_nodes = 2; - - - pub fn get_max_serve_nodes(&self) -> i32 { - self.max_serve_nodes - } - pub fn clear_max_serve_nodes(&mut self) { - self.max_serve_nodes = 0; - } - - // Param is passed by value, moved - pub fn set_max_serve_nodes(&mut self, v: i32) { - self.max_serve_nodes = v; - } -} - -impl ::protobuf::Message for AutoscalingLimits { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.min_serve_nodes = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.max_serve_nodes = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.min_serve_nodes != 0 { - my_size += ::protobuf::rt::value_size(1, self.min_serve_nodes, ::protobuf::wire_format::WireTypeVarint); - } - if self.max_serve_nodes != 0 { - my_size += ::protobuf::rt::value_size(2, self.max_serve_nodes, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.min_serve_nodes != 0 { - os.write_int32(1, self.min_serve_nodes)?; - } - if self.max_serve_nodes != 0 { - os.write_int32(2, self.max_serve_nodes)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AutoscalingLimits { - AutoscalingLimits::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "min_serve_nodes", - |m: &AutoscalingLimits| { &m.min_serve_nodes }, - |m: &mut AutoscalingLimits| { &mut m.min_serve_nodes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_serve_nodes", - |m: &AutoscalingLimits| { &m.max_serve_nodes }, - |m: &mut AutoscalingLimits| { &mut m.max_serve_nodes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AutoscalingLimits", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AutoscalingLimits { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AutoscalingLimits::new) - } -} - -impl ::protobuf::Clear for AutoscalingLimits { - fn clear(&mut self) { - self.min_serve_nodes = 0; - self.max_serve_nodes = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AutoscalingLimits { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AutoscalingLimits { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cluster { - // message fields - pub name: ::std::string::String, - pub location: ::std::string::String, - pub state: Cluster_State, - pub serve_nodes: i32, - pub default_storage_type: super::common::StorageType, - pub encryption_config: ::protobuf::SingularPtrField, - // message oneof groups - pub config: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cluster { - fn default() -> &'a Cluster { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Cluster_oneof_config { - cluster_config(Cluster_ClusterConfig), -} - -impl Cluster { - pub fn new() -> Cluster { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string location = 2; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Cluster.State state = 3; - - - pub fn get_state(&self) -> Cluster_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Cluster_State::STATE_NOT_KNOWN; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Cluster_State) { - self.state = v; - } - - // int32 serve_nodes = 4; - - - pub fn get_serve_nodes(&self) -> i32 { - self.serve_nodes - } - pub fn clear_serve_nodes(&mut self) { - self.serve_nodes = 0; - } - - // Param is passed by value, moved - pub fn set_serve_nodes(&mut self, v: i32) { - self.serve_nodes = v; - } - - // .google.bigtable.admin.v2.Cluster.ClusterConfig cluster_config = 7; - - - pub fn get_cluster_config(&self) -> &Cluster_ClusterConfig { - match self.config { - ::std::option::Option::Some(Cluster_oneof_config::cluster_config(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_cluster_config(&mut self) { - self.config = ::std::option::Option::None; - } - - pub fn has_cluster_config(&self) -> bool { - match self.config { - ::std::option::Option::Some(Cluster_oneof_config::cluster_config(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cluster_config(&mut self, v: Cluster_ClusterConfig) { - self.config = ::std::option::Option::Some(Cluster_oneof_config::cluster_config(v)) - } - - // Mutable pointer to the field. - pub fn mut_cluster_config(&mut self) -> &mut Cluster_ClusterConfig { - if let ::std::option::Option::Some(Cluster_oneof_config::cluster_config(_)) = self.config { - } else { - self.config = ::std::option::Option::Some(Cluster_oneof_config::cluster_config(Cluster_ClusterConfig::new())); - } - match self.config { - ::std::option::Option::Some(Cluster_oneof_config::cluster_config(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cluster_config(&mut self) -> Cluster_ClusterConfig { - if self.has_cluster_config() { - match self.config.take() { - ::std::option::Option::Some(Cluster_oneof_config::cluster_config(v)) => v, - _ => panic!(), - } - } else { - Cluster_ClusterConfig::new() - } - } - - // .google.bigtable.admin.v2.StorageType default_storage_type = 5; - - - pub fn get_default_storage_type(&self) -> super::common::StorageType { - self.default_storage_type - } - pub fn clear_default_storage_type(&mut self) { - self.default_storage_type = super::common::StorageType::STORAGE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_default_storage_type(&mut self, v: super::common::StorageType) { - self.default_storage_type = v; - } - - // .google.bigtable.admin.v2.Cluster.EncryptionConfig encryption_config = 6; - - - pub fn get_encryption_config(&self) -> &Cluster_EncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: Cluster_EncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut Cluster_EncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> Cluster_EncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| Cluster_EncryptionConfig::new()) - } -} - -impl ::protobuf::Message for Cluster { - fn is_initialized(&self) -> bool { - if let Some(Cluster_oneof_config::cluster_config(ref v)) = self.config { - if !v.is_initialized() { - return false; - } - } - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.serve_nodes = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.config = ::std::option::Option::Some(Cluster_oneof_config::cluster_config(is.read_message()?)); - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.default_storage_type, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.location.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.location); - } - if self.state != Cluster_State::STATE_NOT_KNOWN { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if self.serve_nodes != 0 { - my_size += ::protobuf::rt::value_size(4, self.serve_nodes, ::protobuf::wire_format::WireTypeVarint); - } - if self.default_storage_type != super::common::StorageType::STORAGE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.default_storage_type); - } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.config { - match v { - &Cluster_oneof_config::cluster_config(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.location.is_empty() { - os.write_string(2, &self.location)?; - } - if self.state != Cluster_State::STATE_NOT_KNOWN { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if self.serve_nodes != 0 { - os.write_int32(4, self.serve_nodes)?; - } - if self.default_storage_type != super::common::StorageType::STORAGE_TYPE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.default_storage_type))?; - } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.config { - match v { - &Cluster_oneof_config::cluster_config(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Cluster { - Cluster::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Cluster| { &m.name }, - |m: &mut Cluster| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &Cluster| { &m.location }, - |m: &mut Cluster| { &mut m.location }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Cluster| { &m.state }, - |m: &mut Cluster| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "serve_nodes", - |m: &Cluster| { &m.serve_nodes }, - |m: &mut Cluster| { &mut m.serve_nodes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Cluster_ClusterConfig>( - "cluster_config", - Cluster::has_cluster_config, - Cluster::get_cluster_config, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "default_storage_type", - |m: &Cluster| { &m.default_storage_type }, - |m: &mut Cluster| { &mut m.default_storage_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &Cluster| { &m.encryption_config }, - |m: &mut Cluster| { &mut m.encryption_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Cluster", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Cluster { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cluster::new) - } -} - -impl ::protobuf::Clear for Cluster { - fn clear(&mut self) { - self.name.clear(); - self.location.clear(); - self.state = Cluster_State::STATE_NOT_KNOWN; - self.serve_nodes = 0; - self.config = ::std::option::Option::None; - self.default_storage_type = super::common::StorageType::STORAGE_TYPE_UNSPECIFIED; - self.encryption_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Cluster { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Cluster { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cluster_ClusterAutoscalingConfig { - // message fields - pub autoscaling_limits: ::protobuf::SingularPtrField, - pub autoscaling_targets: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cluster_ClusterAutoscalingConfig { - fn default() -> &'a Cluster_ClusterAutoscalingConfig { - ::default_instance() - } -} - -impl Cluster_ClusterAutoscalingConfig { - pub fn new() -> Cluster_ClusterAutoscalingConfig { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.AutoscalingLimits autoscaling_limits = 1; - - - pub fn get_autoscaling_limits(&self) -> &AutoscalingLimits { - self.autoscaling_limits.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_autoscaling_limits(&mut self) { - self.autoscaling_limits.clear(); - } - - pub fn has_autoscaling_limits(&self) -> bool { - self.autoscaling_limits.is_some() - } - - // Param is passed by value, moved - pub fn set_autoscaling_limits(&mut self, v: AutoscalingLimits) { - self.autoscaling_limits = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_autoscaling_limits(&mut self) -> &mut AutoscalingLimits { - if self.autoscaling_limits.is_none() { - self.autoscaling_limits.set_default(); - } - self.autoscaling_limits.as_mut().unwrap() - } - - // Take field - pub fn take_autoscaling_limits(&mut self) -> AutoscalingLimits { - self.autoscaling_limits.take().unwrap_or_else(|| AutoscalingLimits::new()) - } - - // .google.bigtable.admin.v2.AutoscalingTargets autoscaling_targets = 2; - - - pub fn get_autoscaling_targets(&self) -> &AutoscalingTargets { - self.autoscaling_targets.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_autoscaling_targets(&mut self) { - self.autoscaling_targets.clear(); - } - - pub fn has_autoscaling_targets(&self) -> bool { - self.autoscaling_targets.is_some() - } - - // Param is passed by value, moved - pub fn set_autoscaling_targets(&mut self, v: AutoscalingTargets) { - self.autoscaling_targets = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_autoscaling_targets(&mut self) -> &mut AutoscalingTargets { - if self.autoscaling_targets.is_none() { - self.autoscaling_targets.set_default(); - } - self.autoscaling_targets.as_mut().unwrap() - } - - // Take field - pub fn take_autoscaling_targets(&mut self) -> AutoscalingTargets { - self.autoscaling_targets.take().unwrap_or_else(|| AutoscalingTargets::new()) - } -} - -impl ::protobuf::Message for Cluster_ClusterAutoscalingConfig { - fn is_initialized(&self) -> bool { - for v in &self.autoscaling_limits { - if !v.is_initialized() { - return false; - } - }; - for v in &self.autoscaling_targets { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.autoscaling_limits)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.autoscaling_targets)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.autoscaling_limits.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.autoscaling_targets.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.autoscaling_limits.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.autoscaling_targets.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Cluster_ClusterAutoscalingConfig { - Cluster_ClusterAutoscalingConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "autoscaling_limits", - |m: &Cluster_ClusterAutoscalingConfig| { &m.autoscaling_limits }, - |m: &mut Cluster_ClusterAutoscalingConfig| { &mut m.autoscaling_limits }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "autoscaling_targets", - |m: &Cluster_ClusterAutoscalingConfig| { &m.autoscaling_targets }, - |m: &mut Cluster_ClusterAutoscalingConfig| { &mut m.autoscaling_targets }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Cluster.ClusterAutoscalingConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Cluster_ClusterAutoscalingConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cluster_ClusterAutoscalingConfig::new) - } -} - -impl ::protobuf::Clear for Cluster_ClusterAutoscalingConfig { - fn clear(&mut self) { - self.autoscaling_limits.clear(); - self.autoscaling_targets.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Cluster_ClusterAutoscalingConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Cluster_ClusterAutoscalingConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cluster_ClusterConfig { - // message fields - pub cluster_autoscaling_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cluster_ClusterConfig { - fn default() -> &'a Cluster_ClusterConfig { - ::default_instance() - } -} - -impl Cluster_ClusterConfig { - pub fn new() -> Cluster_ClusterConfig { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfig cluster_autoscaling_config = 1; - - - pub fn get_cluster_autoscaling_config(&self) -> &Cluster_ClusterAutoscalingConfig { - self.cluster_autoscaling_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cluster_autoscaling_config(&mut self) { - self.cluster_autoscaling_config.clear(); - } - - pub fn has_cluster_autoscaling_config(&self) -> bool { - self.cluster_autoscaling_config.is_some() - } - - // Param is passed by value, moved - pub fn set_cluster_autoscaling_config(&mut self, v: Cluster_ClusterAutoscalingConfig) { - self.cluster_autoscaling_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster_autoscaling_config(&mut self) -> &mut Cluster_ClusterAutoscalingConfig { - if self.cluster_autoscaling_config.is_none() { - self.cluster_autoscaling_config.set_default(); - } - self.cluster_autoscaling_config.as_mut().unwrap() - } - - // Take field - pub fn take_cluster_autoscaling_config(&mut self) -> Cluster_ClusterAutoscalingConfig { - self.cluster_autoscaling_config.take().unwrap_or_else(|| Cluster_ClusterAutoscalingConfig::new()) - } -} - -impl ::protobuf::Message for Cluster_ClusterConfig { - fn is_initialized(&self) -> bool { - for v in &self.cluster_autoscaling_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cluster_autoscaling_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.cluster_autoscaling_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.cluster_autoscaling_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Cluster_ClusterConfig { - Cluster_ClusterConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cluster_autoscaling_config", - |m: &Cluster_ClusterConfig| { &m.cluster_autoscaling_config }, - |m: &mut Cluster_ClusterConfig| { &mut m.cluster_autoscaling_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Cluster.ClusterConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Cluster_ClusterConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cluster_ClusterConfig::new) - } -} - -impl ::protobuf::Clear for Cluster_ClusterConfig { - fn clear(&mut self) { - self.cluster_autoscaling_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Cluster_ClusterConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Cluster_ClusterConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Cluster_EncryptionConfig { - // message fields - pub kms_key_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Cluster_EncryptionConfig { - fn default() -> &'a Cluster_EncryptionConfig { - ::default_instance() - } -} - -impl Cluster_EncryptionConfig { - pub fn new() -> Cluster_EncryptionConfig { - ::std::default::Default::default() - } - - // string kms_key_name = 1; - - - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name - } - - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Cluster_EncryptionConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.kms_key_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.kms_key_name.is_empty() { - os.write_string(1, &self.kms_key_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Cluster_EncryptionConfig { - Cluster_EncryptionConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &Cluster_EncryptionConfig| { &m.kms_key_name }, - |m: &mut Cluster_EncryptionConfig| { &mut m.kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Cluster.EncryptionConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Cluster_EncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cluster_EncryptionConfig::new) - } -} - -impl ::protobuf::Clear for Cluster_EncryptionConfig { - fn clear(&mut self) { - self.kms_key_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Cluster_EncryptionConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Cluster_EncryptionConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Cluster_State { - STATE_NOT_KNOWN = 0, - READY = 1, - CREATING = 2, - RESIZING = 3, - DISABLED = 4, -} - -impl ::protobuf::ProtobufEnum for Cluster_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Cluster_State::STATE_NOT_KNOWN), - 1 => ::std::option::Option::Some(Cluster_State::READY), - 2 => ::std::option::Option::Some(Cluster_State::CREATING), - 3 => ::std::option::Option::Some(Cluster_State::RESIZING), - 4 => ::std::option::Option::Some(Cluster_State::DISABLED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Cluster_State] = &[ - Cluster_State::STATE_NOT_KNOWN, - Cluster_State::READY, - Cluster_State::CREATING, - Cluster_State::RESIZING, - Cluster_State::DISABLED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Cluster.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Cluster_State { -} - -impl ::std::default::Default for Cluster_State { - fn default() -> Self { - Cluster_State::STATE_NOT_KNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for Cluster_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AppProfile { - // message fields - pub name: ::std::string::String, - pub etag: ::std::string::String, - pub description: ::std::string::String, - // message oneof groups - pub routing_policy: ::std::option::Option, - pub isolation: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AppProfile { - fn default() -> &'a AppProfile { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AppProfile_oneof_routing_policy { - multi_cluster_routing_use_any(AppProfile_MultiClusterRoutingUseAny), - single_cluster_routing(AppProfile_SingleClusterRouting), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AppProfile_oneof_isolation { - priority(AppProfile_Priority), - standard_isolation(AppProfile_StandardIsolation), -} - -impl AppProfile { - pub fn new() -> AppProfile { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string etag = 2; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; - - - pub fn get_multi_cluster_routing_use_any(&self) -> &AppProfile_MultiClusterRoutingUseAny { - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_multi_cluster_routing_use_any(&mut self) { - self.routing_policy = ::std::option::Option::None; - } - - pub fn has_multi_cluster_routing_use_any(&self) -> bool { - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_multi_cluster_routing_use_any(&mut self, v: AppProfile_MultiClusterRoutingUseAny) { - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(v)) - } - - // Mutable pointer to the field. - pub fn mut_multi_cluster_routing_use_any(&mut self) -> &mut AppProfile_MultiClusterRoutingUseAny { - if let ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(_)) = self.routing_policy { - } else { - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(AppProfile_MultiClusterRoutingUseAny::new())); - } - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_multi_cluster_routing_use_any(&mut self) -> AppProfile_MultiClusterRoutingUseAny { - if self.has_multi_cluster_routing_use_any() { - match self.routing_policy.take() { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(v)) => v, - _ => panic!(), - } - } else { - AppProfile_MultiClusterRoutingUseAny::new() - } - } - - // .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; - - - pub fn get_single_cluster_routing(&self) -> &AppProfile_SingleClusterRouting { - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_single_cluster_routing(&mut self) { - self.routing_policy = ::std::option::Option::None; - } - - pub fn has_single_cluster_routing(&self) -> bool { - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_single_cluster_routing(&mut self, v: AppProfile_SingleClusterRouting) { - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(v)) - } - - // Mutable pointer to the field. - pub fn mut_single_cluster_routing(&mut self) -> &mut AppProfile_SingleClusterRouting { - if let ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(_)) = self.routing_policy { - } else { - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(AppProfile_SingleClusterRouting::new())); - } - match self.routing_policy { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_single_cluster_routing(&mut self) -> AppProfile_SingleClusterRouting { - if self.has_single_cluster_routing() { - match self.routing_policy.take() { - ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(v)) => v, - _ => panic!(), - } - } else { - AppProfile_SingleClusterRouting::new() - } - } - - // .google.bigtable.admin.v2.AppProfile.Priority priority = 7; - - - pub fn get_priority(&self) -> AppProfile_Priority { - match self.isolation { - ::std::option::Option::Some(AppProfile_oneof_isolation::priority(v)) => v, - _ => AppProfile_Priority::PRIORITY_UNSPECIFIED, - } - } - pub fn clear_priority(&mut self) { - self.isolation = ::std::option::Option::None; - } - - pub fn has_priority(&self) -> bool { - match self.isolation { - ::std::option::Option::Some(AppProfile_oneof_isolation::priority(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_priority(&mut self, v: AppProfile_Priority) { - self.isolation = ::std::option::Option::Some(AppProfile_oneof_isolation::priority(v)) - } - - // .google.bigtable.admin.v2.AppProfile.StandardIsolation standard_isolation = 11; - - - pub fn get_standard_isolation(&self) -> &AppProfile_StandardIsolation { - match self.isolation { - ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_standard_isolation(&mut self) { - self.isolation = ::std::option::Option::None; - } - - pub fn has_standard_isolation(&self) -> bool { - match self.isolation { - ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_standard_isolation(&mut self, v: AppProfile_StandardIsolation) { - self.isolation = ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(v)) - } - - // Mutable pointer to the field. - pub fn mut_standard_isolation(&mut self) -> &mut AppProfile_StandardIsolation { - if let ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(_)) = self.isolation { - } else { - self.isolation = ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(AppProfile_StandardIsolation::new())); - } - match self.isolation { - ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_standard_isolation(&mut self) -> AppProfile_StandardIsolation { - if self.has_standard_isolation() { - match self.isolation.take() { - ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(v)) => v, - _ => panic!(), - } - } else { - AppProfile_StandardIsolation::new() - } - } -} - -impl ::protobuf::Message for AppProfile { - fn is_initialized(&self) -> bool { - if let Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(ref v)) = self.routing_policy { - if !v.is_initialized() { - return false; - } - } - if let Some(AppProfile_oneof_routing_policy::single_cluster_routing(ref v)) = self.routing_policy { - if !v.is_initialized() { - return false; - } - } - if let Some(AppProfile_oneof_isolation::standard_isolation(ref v)) = self.isolation { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.routing_policy = ::std::option::Option::Some(AppProfile_oneof_routing_policy::single_cluster_routing(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.isolation = ::std::option::Option::Some(AppProfile_oneof_isolation::priority(is.read_enum()?)); - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.isolation = ::std::option::Option::Some(AppProfile_oneof_isolation::standard_isolation(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.etag); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - if let ::std::option::Option::Some(ref v) = self.routing_policy { - match v { - &AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AppProfile_oneof_routing_policy::single_cluster_routing(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.isolation { - match v { - &AppProfile_oneof_isolation::priority(v) => { - my_size += ::protobuf::rt::enum_size(7, v); - }, - &AppProfile_oneof_isolation::standard_isolation(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.etag.is_empty() { - os.write_string(2, &self.etag)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if let ::std::option::Option::Some(ref v) = self.routing_policy { - match v { - &AppProfile_oneof_routing_policy::multi_cluster_routing_use_any(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AppProfile_oneof_routing_policy::single_cluster_routing(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.isolation { - match v { - &AppProfile_oneof_isolation::priority(v) => { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&v))?; - }, - &AppProfile_oneof_isolation::standard_isolation(ref v) => { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AppProfile { - AppProfile::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &AppProfile| { &m.name }, - |m: &mut AppProfile| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &AppProfile| { &m.etag }, - |m: &mut AppProfile| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &AppProfile| { &m.description }, - |m: &mut AppProfile| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AppProfile_MultiClusterRoutingUseAny>( - "multi_cluster_routing_use_any", - AppProfile::has_multi_cluster_routing_use_any, - AppProfile::get_multi_cluster_routing_use_any, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AppProfile_SingleClusterRouting>( - "single_cluster_routing", - AppProfile::has_single_cluster_routing, - AppProfile::get_single_cluster_routing, - )); - fields.push(::protobuf::reflect::accessor::make_singular_enum_accessor::<_, AppProfile_Priority>( - "priority", - AppProfile::has_priority, - AppProfile::get_priority, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AppProfile_StandardIsolation>( - "standard_isolation", - AppProfile::has_standard_isolation, - AppProfile::get_standard_isolation, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AppProfile", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AppProfile { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AppProfile::new) - } -} - -impl ::protobuf::Clear for AppProfile { - fn clear(&mut self) { - self.name.clear(); - self.etag.clear(); - self.description.clear(); - self.routing_policy = ::std::option::Option::None; - self.routing_policy = ::std::option::Option::None; - self.isolation = ::std::option::Option::None; - self.isolation = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AppProfile { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AppProfile { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AppProfile_MultiClusterRoutingUseAny { - // message fields - pub cluster_ids: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AppProfile_MultiClusterRoutingUseAny { - fn default() -> &'a AppProfile_MultiClusterRoutingUseAny { - ::default_instance() - } -} - -impl AppProfile_MultiClusterRoutingUseAny { - pub fn new() -> AppProfile_MultiClusterRoutingUseAny { - ::std::default::Default::default() - } - - // repeated string cluster_ids = 1; - - - pub fn get_cluster_ids(&self) -> &[::std::string::String] { - &self.cluster_ids - } - pub fn clear_cluster_ids(&mut self) { - self.cluster_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_cluster_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.cluster_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_cluster_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.cluster_ids - } - - // Take field - pub fn take_cluster_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.cluster_ids, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AppProfile_MultiClusterRoutingUseAny { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.cluster_ids)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.cluster_ids { - my_size += ::protobuf::rt::string_size(1, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.cluster_ids { - os.write_string(1, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AppProfile_MultiClusterRoutingUseAny { - AppProfile_MultiClusterRoutingUseAny::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cluster_ids", - |m: &AppProfile_MultiClusterRoutingUseAny| { &m.cluster_ids }, - |m: &mut AppProfile_MultiClusterRoutingUseAny| { &mut m.cluster_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AppProfile.MultiClusterRoutingUseAny", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AppProfile_MultiClusterRoutingUseAny { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AppProfile_MultiClusterRoutingUseAny::new) - } -} - -impl ::protobuf::Clear for AppProfile_MultiClusterRoutingUseAny { - fn clear(&mut self) { - self.cluster_ids.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AppProfile_MultiClusterRoutingUseAny { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AppProfile_MultiClusterRoutingUseAny { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AppProfile_SingleClusterRouting { - // message fields - pub cluster_id: ::std::string::String, - pub allow_transactional_writes: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AppProfile_SingleClusterRouting { - fn default() -> &'a AppProfile_SingleClusterRouting { - ::default_instance() - } -} - -impl AppProfile_SingleClusterRouting { - pub fn new() -> AppProfile_SingleClusterRouting { - ::std::default::Default::default() - } - - // string cluster_id = 1; - - - pub fn get_cluster_id(&self) -> &str { - &self.cluster_id - } - pub fn clear_cluster_id(&mut self) { - self.cluster_id.clear(); - } - - // Param is passed by value, moved - pub fn set_cluster_id(&mut self, v: ::std::string::String) { - self.cluster_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cluster_id(&mut self) -> &mut ::std::string::String { - &mut self.cluster_id - } - - // Take field - pub fn take_cluster_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cluster_id, ::std::string::String::new()) - } - - // bool allow_transactional_writes = 2; - - - pub fn get_allow_transactional_writes(&self) -> bool { - self.allow_transactional_writes - } - pub fn clear_allow_transactional_writes(&mut self) { - self.allow_transactional_writes = false; - } - - // Param is passed by value, moved - pub fn set_allow_transactional_writes(&mut self, v: bool) { - self.allow_transactional_writes = v; - } -} - -impl ::protobuf::Message for AppProfile_SingleClusterRouting { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cluster_id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_transactional_writes = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.cluster_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.cluster_id); - } - if self.allow_transactional_writes != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.cluster_id.is_empty() { - os.write_string(1, &self.cluster_id)?; + impl ::protobuf::EnumFull for State { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Cluster.State").unwrap()).clone() } - if self.allow_transactional_writes != false { - os.write_bool(2, self.allow_transactional_writes)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AppProfile_SingleClusterRouting { - AppProfile_SingleClusterRouting::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cluster_id", - |m: &AppProfile_SingleClusterRouting| { &m.cluster_id }, - |m: &mut AppProfile_SingleClusterRouting| { &mut m.cluster_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_transactional_writes", - |m: &AppProfile_SingleClusterRouting| { &m.allow_transactional_writes }, - |m: &mut AppProfile_SingleClusterRouting| { &mut m.allow_transactional_writes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AppProfile.SingleClusterRouting", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AppProfile_SingleClusterRouting { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AppProfile_SingleClusterRouting::new) - } -} - -impl ::protobuf::Clear for AppProfile_SingleClusterRouting { - fn clear(&mut self) { - self.cluster_id.clear(); - self.allow_transactional_writes = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AppProfile_SingleClusterRouting { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AppProfile_SingleClusterRouting { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AppProfile_StandardIsolation { - // message fields - pub priority: AppProfile_Priority, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AppProfile_StandardIsolation { - fn default() -> &'a AppProfile_StandardIsolation { - ::default_instance() - } -} - -impl AppProfile_StandardIsolation { - pub fn new() -> AppProfile_StandardIsolation { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.AppProfile.Priority priority = 1; - - - pub fn get_priority(&self) -> AppProfile_Priority { - self.priority - } - pub fn clear_priority(&mut self) { - self.priority = AppProfile_Priority::PRIORITY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_priority(&mut self, v: AppProfile_Priority) { - self.priority = v; - } -} - -impl ::protobuf::Message for AppProfile_StandardIsolation { - fn is_initialized(&self) -> bool { - true - } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.priority, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.priority != AppProfile_Priority::PRIORITY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.priority); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.priority != AppProfile_Priority::PRIORITY_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.priority))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AppProfile_StandardIsolation { - AppProfile_StandardIsolation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "priority", - |m: &AppProfile_StandardIsolation| { &m.priority }, - |m: &mut AppProfile_StandardIsolation| { &mut m.priority }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AppProfile.StandardIsolation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AppProfile_StandardIsolation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AppProfile_StandardIsolation::new) - } -} - -impl ::protobuf::Clear for AppProfile_StandardIsolation { - fn clear(&mut self) { - self.priority = AppProfile_Priority::PRIORITY_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AppProfile_StandardIsolation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AppProfile_StandardIsolation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AppProfile_Priority { - PRIORITY_UNSPECIFIED = 0, - PRIORITY_LOW = 1, - PRIORITY_MEDIUM = 2, - PRIORITY_HIGH = 3, -} - -impl ::protobuf::ProtobufEnum for AppProfile_Priority { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AppProfile_Priority::PRIORITY_UNSPECIFIED), - 1 => ::std::option::Option::Some(AppProfile_Priority::PRIORITY_LOW), - 2 => ::std::option::Option::Some(AppProfile_Priority::PRIORITY_MEDIUM), - 3 => ::std::option::Option::Some(AppProfile_Priority::PRIORITY_HIGH), - _ => ::std::option::Option::None + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) } } - fn values() -> &'static [Self] { - static values: &'static [AppProfile_Priority] = &[ - AppProfile_Priority::PRIORITY_UNSPECIFIED, - AppProfile_Priority::PRIORITY_LOW, - AppProfile_Priority::PRIORITY_MEDIUM, - AppProfile_Priority::PRIORITY_HIGH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AppProfile.Priority", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AppProfile_Priority { -} - -impl ::std::default::Default for AppProfile_Priority { - fn default() -> Self { - AppProfile_Priority::PRIORITY_UNSPECIFIED + impl ::std::default::Default for State { + fn default() -> Self { + State::STATE_NOT_KNOWN + } } -} -impl ::protobuf::reflect::ProtobufValue for AppProfile_Priority { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl State { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Cluster.State") + } } } -#[derive(PartialEq,Clone,Default)] -pub struct HotTablet { +/// A configuration object describing how Cloud Bigtable should treat traffic +/// from a particular end user application. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.AppProfile) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct AppProfile { // message fields + /// (`OutputOnly`) + /// The unique name of the app profile. Values are of the form + /// `projects//instances//appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.AppProfile.name) pub name: ::std::string::String, - pub table_name: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub start_key: ::std::string::String, - pub end_key: ::std::string::String, - pub node_cpu_usage_percent: f32, + /// Strongly validated etag for optimistic concurrency control. Preserve the + /// value returned from `GetAppProfile` when calling `UpdateAppProfile` to + /// fail the request if there has been a modification in the mean time. The + /// `update_mask` of the request need not include `etag` for this protection + /// to apply. + /// See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and + /// [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more + /// details. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.AppProfile.etag) + pub etag: ::std::string::String, + /// Optional long form description of the use case for this AppProfile. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.AppProfile.description) + pub description: ::std::string::String, + // message oneof groups + pub routing_policy: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.AppProfile.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a HotTablet { - fn default() -> &'a HotTablet { - ::default_instance() +impl<'a> ::std::default::Default for &'a AppProfile { + fn default() -> &'a AppProfile { + ::default_instance() } } -impl HotTablet { - pub fn new() -> HotTablet { +impl AppProfile { + pub fn new() -> AppProfile { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } + // .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + pub fn multi_cluster_routing_use_any(&self) -> &app_profile::MultiClusterRoutingUseAny { + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(ref v)) => v, + _ => ::default_instance(), + } } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + pub fn clear_multi_cluster_routing_use_any(&mut self) { + self.routing_policy = ::std::option::Option::None; } - // string table_name = 2; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); + pub fn has_multi_cluster_routing_use_any(&self) -> bool { + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; + pub fn set_multi_cluster_routing_use_any(&mut self, v: app_profile::MultiClusterRoutingUseAny) { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name + pub fn mut_multi_cluster_routing_use_any(&mut self) -> &mut app_profile::MultiClusterRoutingUseAny { + if let ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(_)) = self.routing_policy { + } else { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(app_profile::MultiClusterRoutingUseAny::new())); + } + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(ref mut v)) => v, + _ => panic!(), + } } // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) + pub fn take_multi_cluster_routing_use_any(&mut self) -> app_profile::MultiClusterRoutingUseAny { + if self.has_multi_cluster_routing_use_any() { + match self.routing_policy.take() { + ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(v)) => v, + _ => panic!(), + } + } else { + app_profile::MultiClusterRoutingUseAny::new() + } } - // .google.protobuf.Timestamp start_time = 3; - + // .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6; - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + pub fn single_cluster_routing(&self) -> &app_profile::SingleClusterRouting { + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(ref v)) => v, + _ => ::default_instance(), + } } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); + + pub fn clear_single_cluster_routing(&mut self) { + self.routing_policy = ::std::option::Option::None; } - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + pub fn has_single_cluster_routing(&self) -> bool { + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + pub fn set_single_cluster_routing(&mut self, v: app_profile::SingleClusterRouting) { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + pub fn mut_single_cluster_routing(&mut self) -> &mut app_profile::SingleClusterRouting { + if let ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(_)) = self.routing_policy { + } else { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(app_profile::SingleClusterRouting::new())); + } + match self.routing_policy { + ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(ref mut v)) => v, + _ => panic!(), } - self.start_time.as_mut().unwrap() } // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + pub fn take_single_cluster_routing(&mut self) -> app_profile::SingleClusterRouting { + if self.has_single_cluster_routing() { + match self.routing_policy.take() { + ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(v)) => v, + _ => panic!(), + } + } else { + app_profile::SingleClusterRouting::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &AppProfile| { &m.name }, + |m: &mut AppProfile| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "etag", + |m: &AppProfile| { &m.etag }, + |m: &mut AppProfile| { &mut m.etag }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &AppProfile| { &m.description }, + |m: &mut AppProfile| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, app_profile::MultiClusterRoutingUseAny>( + "multi_cluster_routing_use_any", + AppProfile::has_multi_cluster_routing_use_any, + AppProfile::multi_cluster_routing_use_any, + AppProfile::mut_multi_cluster_routing_use_any, + AppProfile::set_multi_cluster_routing_use_any, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, app_profile::SingleClusterRouting>( + "single_cluster_routing", + AppProfile::has_single_cluster_routing, + AppProfile::single_cluster_routing, + AppProfile::mut_single_cluster_routing, + AppProfile::set_single_cluster_routing, + )); + oneofs.push(app_profile::Routing_policy::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AppProfile", + fields, + oneofs, + ) } +} - // .google.protobuf.Timestamp end_time = 4; - +impl ::protobuf::Message for AppProfile { + const NAME: &'static str = "AppProfile"; - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.etag = is.read_string()?; + }, + 26 => { + self.description = is.read_string()?; + }, + 42 => { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::MultiClusterRoutingUseAny(is.read_message()?)); + }, + 50 => { + self.routing_policy = ::std::option::Option::Some(app_profile::Routing_policy::SingleClusterRouting(is.read_message()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.etag.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.etag); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.description); + } + if let ::std::option::Option::Some(ref v) = self.routing_policy { + match v { + &app_profile::Routing_policy::MultiClusterRoutingUseAny(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &app_profile::Routing_policy::SingleClusterRouting(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.etag.is_empty() { + os.write_string(2, &self.etag)?; + } + if !self.description.is_empty() { + os.write_string(3, &self.description)?; + } + if let ::std::option::Option::Some(ref v) = self.routing_policy { + match v { + &app_profile::Routing_policy::MultiClusterRoutingUseAny(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; + }, + &app_profile::Routing_policy::SingleClusterRouting(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; + }, + }; } - self.end_time.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // string start_key = 5; - - - pub fn get_start_key(&self) -> &str { - &self.start_key + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn clear_start_key(&mut self) { - self.start_key.clear(); + + fn new() -> AppProfile { + AppProfile::new() } - // Param is passed by value, moved - pub fn set_start_key(&mut self, v: ::std::string::String) { - self.start_key = v; + fn clear(&mut self) { + self.name.clear(); + self.etag.clear(); + self.description.clear(); + self.routing_policy = ::std::option::Option::None; + self.routing_policy = ::std::option::Option::None; + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_key(&mut self) -> &mut ::std::string::String { - &mut self.start_key + fn default_instance() -> &'static AppProfile { + static instance: AppProfile = AppProfile { + name: ::std::string::String::new(), + etag: ::std::string::String::new(), + description: ::std::string::String::new(), + routing_policy: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_start_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.start_key, ::std::string::String::new()) +impl ::protobuf::MessageFull for AppProfile { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AppProfile").unwrap()).clone() } +} - // string end_key = 6; +impl ::std::fmt::Display for AppProfile { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} +impl ::protobuf::reflect::ProtobufValue for AppProfile { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_end_key(&self) -> &str { - &self.end_key - } - pub fn clear_end_key(&mut self) { - self.end_key.clear(); - } +/// Nested message and enums of message `AppProfile` +pub mod app_profile { - // Param is passed by value, moved - pub fn set_end_key(&mut self, v: ::std::string::String) { - self.end_key = v; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.admin.v2.AppProfile.routing_policy) + pub enum Routing_policy { + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.AppProfile.multi_cluster_routing_use_any) + MultiClusterRoutingUseAny(MultiClusterRoutingUseAny), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.AppProfile.single_cluster_routing) + SingleClusterRouting(SingleClusterRouting), } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_key(&mut self) -> &mut ::std::string::String { - &mut self.end_key + impl ::protobuf::Oneof for Routing_policy { } - // Take field - pub fn take_end_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.end_key, ::std::string::String::new()) + impl ::protobuf::OneofFull for Routing_policy { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("routing_policy").unwrap()).clone() + } } - // float node_cpu_usage_percent = 7; - - - pub fn get_node_cpu_usage_percent(&self) -> f32 { - self.node_cpu_usage_percent + impl Routing_policy { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("routing_policy") + } } - pub fn clear_node_cpu_usage_percent(&mut self) { - self.node_cpu_usage_percent = 0.; + /// Read/write requests may be routed to any cluster in the instance, and will + /// fail over to another cluster in the event of transient errors or delays. + /// Choosing this option sacrifices read-your-writes consistency to improve + /// availability. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct MultiClusterRoutingUseAny { + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Param is passed by value, moved - pub fn set_node_cpu_usage_percent(&mut self, v: f32) { - self.node_cpu_usage_percent = v; + impl<'a> ::std::default::Default for &'a MultiClusterRoutingUseAny { + fn default() -> &'a MultiClusterRoutingUseAny { + ::default_instance() + } } -} -impl ::protobuf::Message for HotTablet { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } + impl MultiClusterRoutingUseAny { + pub fn new() -> MultiClusterRoutingUseAny { + ::std::default::Default::default() + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.start_key)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.end_key)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.node_cpu_usage_percent = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AppProfile.MultiClusterRoutingUseAny", + fields, + oneofs, + ) } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_name); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.start_key.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.start_key); - } - if !self.end_key.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.end_key); + impl ::protobuf::Message for MultiClusterRoutingUseAny { + const NAME: &'static str = "MultiClusterRoutingUseAny"; + + fn is_initialized(&self) -> bool { + true } - if self.node_cpu_usage_percent != 0. { - my_size += 5; + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - if !self.table_name.is_empty() { - os.write_string(2, &self.table_name)?; + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - if !self.start_key.is_empty() { - os.write_string(5, &self.start_key)?; + + fn new() -> MultiClusterRoutingUseAny { + MultiClusterRoutingUseAny::new() } - if !self.end_key.is_empty() { - os.write_string(6, &self.end_key)?; + + fn clear(&mut self) { + self.special_fields.clear(); } - if self.node_cpu_usage_percent != 0. { - os.write_float(7, self.node_cpu_usage_percent)?; + + fn default_instance() -> &'static MultiClusterRoutingUseAny { + static instance: MultiClusterRoutingUseAny = MultiClusterRoutingUseAny { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + impl ::protobuf::MessageFull for MultiClusterRoutingUseAny { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("AppProfile.MultiClusterRoutingUseAny").unwrap()).clone() + } } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + impl ::std::fmt::Display for MultiClusterRoutingUseAny { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + impl ::protobuf::reflect::ProtobufValue for MultiClusterRoutingUseAny { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + /// Unconditionally routes all read/write requests to a specific cluster. + /// This option preserves read-your-writes consistency, but does not improve + /// availability. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.AppProfile.SingleClusterRouting) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct SingleClusterRouting { + // message fields + /// The cluster to which read/write requests should be routed. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.AppProfile.SingleClusterRouting.cluster_id) + pub cluster_id: ::std::string::String, + /// Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are + /// allowed by this app profile. It is unsafe to send these requests to + /// the same table/row/column in multiple clusters. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.AppProfile.SingleClusterRouting.allow_transactional_writes) + pub allow_transactional_writes: bool, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.AppProfile.SingleClusterRouting.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a SingleClusterRouting { + fn default() -> &'a SingleClusterRouting { + ::default_instance() + } } - fn new() -> HotTablet { - HotTablet::new() - } + impl SingleClusterRouting { + pub fn new() -> SingleClusterRouting { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &HotTablet| { &m.name }, - |m: &mut HotTablet| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &HotTablet| { &m.table_name }, - |m: &mut HotTablet| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &HotTablet| { &m.start_time }, - |m: &mut HotTablet| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &HotTablet| { &m.end_time }, - |m: &mut HotTablet| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "start_key", - |m: &HotTablet| { &m.start_key }, - |m: &mut HotTablet| { &mut m.start_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "end_key", - |m: &HotTablet| { &m.end_key }, - |m: &mut HotTablet| { &mut m.end_key }, + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cluster_id", + |m: &SingleClusterRouting| { &m.cluster_id }, + |m: &mut SingleClusterRouting| { &mut m.cluster_id }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "node_cpu_usage_percent", - |m: &HotTablet| { &m.node_cpu_usage_percent }, - |m: &mut HotTablet| { &mut m.node_cpu_usage_percent }, + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "allow_transactional_writes", + |m: &SingleClusterRouting| { &m.allow_transactional_writes }, + |m: &mut SingleClusterRouting| { &mut m.allow_transactional_writes }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HotTablet", + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AppProfile.SingleClusterRouting", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static HotTablet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HotTablet::new) + impl ::protobuf::Message for SingleClusterRouting { + const NAME: &'static str = "SingleClusterRouting"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.cluster_id = is.read_string()?; + }, + 16 => { + self.allow_transactional_writes = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.cluster_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.cluster_id); + } + if self.allow_transactional_writes != false { + my_size += 1 + 1; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.cluster_id.is_empty() { + os.write_string(1, &self.cluster_id)?; + } + if self.allow_transactional_writes != false { + os.write_bool(2, self.allow_transactional_writes)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> SingleClusterRouting { + SingleClusterRouting::new() + } + + fn clear(&mut self) { + self.cluster_id.clear(); + self.allow_transactional_writes = false; + self.special_fields.clear(); + } + + fn default_instance() -> &'static SingleClusterRouting { + static instance: SingleClusterRouting = SingleClusterRouting { + cluster_id: ::std::string::String::new(), + allow_transactional_writes: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for HotTablet { - fn clear(&mut self) { - self.name.clear(); - self.table_name.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.start_key.clear(); - self.end_key.clear(); - self.node_cpu_usage_percent = 0.; - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for SingleClusterRouting { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("AppProfile.SingleClusterRouting").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for HotTablet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for SingleClusterRouting { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for HotTablet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for SingleClusterRouting { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } static file_descriptor_proto_data: &'static [u8] = b"\ \n'google/bigtable/admin/v2/instance.proto\x12\x18google.bigtable.admin.\ - v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.pro\ - to\x1a%google/bigtable/admin/v2/common.proto\x1a\x1fgoogle/protobuf/time\ - stamp.proto\"\x94\x05\n\x08Instance\x12\x12\n\x04name\x18\x01\x20\x01(\t\ - R\x04name\x12&\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayNameB\x03\ - \xe0A\x02\x12>\n\x05state\x18\x03\x20\x01(\x0e2(.google.bigtable.admin.v\ - 2.Instance.StateR\x05state\x12;\n\x04type\x18\x04\x20\x01(\x0e2'.google.\ - bigtable.admin.v2.Instance.TypeR\x04type\x12F\n\x06labels\x18\x05\x20\ - \x03(\x0b2..google.bigtable.admin.v2.Instance.LabelsEntryR\x06labels\x12\ - @\n\x0bcreate_time\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \ncreateTimeB\x03\xe0A\x03\x12-\n\rsatisfies_pzs\x18\x08\x20\x01(\x08H\0\ - R\x0csatisfiesPzsB\x03\xe0A\x03\x88\x01\x01\x1a9\n\x0bLabelsEntry\x12\ - \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\ - \x01(\tR\x05value:\x028\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\ - \x10\0\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08CREATING\x10\x02\"=\n\x04Ty\ - pe\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nPRODUCTION\x10\x01\x12\ - \x0f\n\x0bDEVELOPMENT\x10\x02B\x10\n\x0e_satisfies_pzs:S\xeaAP\n%bigtabl\ - eadmin.googleapis.com/Instance\x12'projects/{project}/instances/{instanc\ - e}\"\x94\x01\n\x12AutoscalingTargets\x126\n\x17cpu_utilization_percent\ - \x18\x02\x20\x01(\x05R\x15cpuUtilizationPercent\x12F\n\x20storage_utiliz\ - ation_gib_per_node\x18\x03\x20\x01(\x05R\x1cstorageUtilizationGibPerNode\ - \"m\n\x11AutoscalingLimits\x12+\n\x0fmin_serve_nodes\x18\x01\x20\x01(\ - \x05R\rminServeNodesB\x03\xe0A\x02\x12+\n\x0fmax_serve_nodes\x18\x02\x20\ - \x01(\x05R\rmaxServeNodesB\x03\xe0A\x02\"\xf7\x08\n\x07Cluster\x12\x12\n\ - \x04name\x18\x01\x20\x01(\tR\x04name\x12E\n\x08location\x18\x02\x20\x01(\ - \tR\x08locationB)\xfaA#\n!locations.googleapis.com/Location\xe0A\x05\x12\ - B\n\x05state\x18\x03\x20\x01(\x0e2'.google.bigtable.admin.v2.Cluster.Sta\ - teR\x05stateB\x03\xe0A\x03\x12\x1f\n\x0bserve_nodes\x18\x04\x20\x01(\x05\ - R\nserveNodes\x12X\n\x0ecluster_config\x18\x07\x20\x01(\x0b2/.google.big\ - table.admin.v2.Cluster.ClusterConfigH\0R\rclusterConfig\x12\\\n\x14defau\ - lt_storage_type\x18\x05\x20\x01(\x0e2%.google.bigtable.admin.v2.StorageT\ - ypeR\x12defaultStorageTypeB\x03\xe0A\x05\x12d\n\x11encryption_config\x18\ - \x06\x20\x01(\x0b22.google.bigtable.admin.v2.Cluster.EncryptionConfigR\ - \x10encryptionConfigB\x03\xe0A\x05\x1a\xdf\x01\n\x18ClusterAutoscalingCo\ - nfig\x12_\n\x12autoscaling_limits\x18\x01\x20\x01(\x0b2+.google.bigtable\ - .admin.v2.AutoscalingLimitsR\x11autoscalingLimitsB\x03\xe0A\x02\x12b\n\ - \x13autoscaling_targets\x18\x02\x20\x01(\x0b2,.google.bigtable.admin.v2.\ - AutoscalingTargetsR\x12autoscalingTargetsB\x03\xe0A\x02\x1a\x89\x01\n\rC\ - lusterConfig\x12x\n\x1acluster_autoscaling_config\x18\x01\x20\x01(\x0b2:\ - .google.bigtable.admin.v2.Cluster.ClusterAutoscalingConfigR\x18clusterAu\ - toscalingConfig\x1a\\\n\x10EncryptionConfig\x12H\n\x0ckms_key_name\x18\ - \x01\x20\x01(\tR\nkmsKeyNameB&\xfaA#\n!cloudkms.googleapis.com/CryptoKey\ - \"Q\n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\x12\t\n\x05READY\x10\ - \x01\x12\x0c\n\x08CREATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\ - \n\x08DISABLED\x10\x04B\x08\n\x06config:e\xeaAb\n$bigtableadmin.googleap\ - is.com/Cluster\x12:projects/{project}/instances/{instance}/clusters/{clu\ - ster}\"\x8b\x08\n\nAppProfile\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ - ame\x12\x12\n\x04etag\x18\x02\x20\x01(\tR\x04etag\x12\x20\n\x0bdescripti\ - on\x18\x03\x20\x01(\tR\x0bdescription\x12\x82\x01\n\x1dmulti_cluster_rou\ - ting_use_any\x18\x05\x20\x01(\x0b2>.google.bigtable.admin.v2.AppProfile.\ - MultiClusterRoutingUseAnyH\0R\x19multiClusterRoutingUseAny\x12q\n\x16sin\ - gle_cluster_routing\x18\x06\x20\x01(\x0b29.google.bigtable.admin.v2.AppP\ - rofile.SingleClusterRoutingH\0R\x14singleClusterRouting\x12O\n\x08priori\ - ty\x18\x07\x20\x01(\x0e2-.google.bigtable.admin.v2.AppProfile.PriorityH\ - \x01R\x08priorityB\x02\x18\x01\x12g\n\x12standard_isolation\x18\x0b\x20\ - \x01(\x0b26.google.bigtable.admin.v2.AppProfile.StandardIsolationH\x01R\ - \x11standardIsolation\x1a<\n\x19MultiClusterRoutingUseAny\x12\x1f\n\x0bc\ - luster_ids\x18\x01\x20\x03(\tR\nclusterIds\x1as\n\x14SingleClusterRoutin\ - g\x12\x1d\n\ncluster_id\x18\x01\x20\x01(\tR\tclusterId\x12<\n\x1aallow_t\ - ransactional_writes\x18\x02\x20\x01(\x08R\x18allowTransactionalWrites\ - \x1a^\n\x11StandardIsolation\x12I\n\x08priority\x18\x01\x20\x01(\x0e2-.g\ - oogle.bigtable.admin.v2.AppProfile.PriorityR\x08priority\"^\n\x08Priorit\ - y\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\0\x12\x10\n\x0cPRIORITY_LOW\x10\ - \x01\x12\x13\n\x0fPRIORITY_MEDIUM\x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\ - \x03B\x10\n\x0erouting_policyB\x0b\n\tisolation:o\xeaAl\n'bigtableadmin.\ - googleapis.com/AppProfile\x12Aprojects/{project}/instances/{instance}/ap\ - pProfiles/{app_profile}\"\xd4\x03\n\tHotTablet\x12\x12\n\x04name\x18\x01\ - \x20\x01(\tR\x04name\x12F\n\ntable_name\x18\x02\x20\x01(\tR\ttableNameB'\ - \xfaA$\n\"bigtableadmin.googleapis.com/Table\x12>\n\nstart_time\x18\x03\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTimeB\x03\xe0A\x03\ - \x12:\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x07endTimeB\x03\xe0A\x03\x12\x1b\n\tstart_key\x18\x05\x20\x01(\tR\x08st\ - artKey\x12\x17\n\x07end_key\x18\x06\x20\x01(\tR\x06endKey\x128\n\x16node\ - _cpu_usage_percent\x18\x07\x20\x01(\x02R\x13nodeCpuUsagePercentB\x03\xe0\ - A\x03:\x7f\xeaA|\n&bigtableadmin.googleapis.com/HotTablet\x12Rprojects/{\ - project}/instances/{instance}/clusters/{cluster}/hotTablets/{hot_tablet}\ - B\xd0\x02\n\x1ccom.google.bigtable.admin.v2B\rInstanceProtoP\x01Z=google\ - .golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogl\ - e.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\ - \xea\x02\"Google::Cloud::Bigtable::Admin::V2\xeaAx\n!cloudkms.googleapis\ - .com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key\ - _ring}/cryptoKeys/{crypto_key}J\x85s\n\x07\x12\x05\x0e\0\xfc\x02\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\ - \x03\x14\0/\n\t\n\x02\x03\x03\x12\x03\x15\0)\n\x08\n\x01\x08\x12\x03\x17\ - \0;\n\t\n\x02\x08%\x12\x03\x17\0;\n\x08\n\x01\x08\x12\x03\x18\0T\n\t\n\ - \x02\x08\x0b\x12\x03\x18\0T\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\ - \x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0.\n\t\n\x02\x08\x08\ - \x12\x03\x1a\0.\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\x02\x08\x01\x12\x03\ - \x1b\05\n\x08\n\x01\x08\x12\x03\x1c\0<\n\t\n\x02\x08)\x12\x03\x1c\0<\n\ - \x08\n\x01\x08\x12\x03\x1d\0;\n\t\n\x02\x08-\x12\x03\x1d\0;\n\t\n\x01\ - \x08\x12\x04\x1e\0!\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04\x1e\0!\x02\n\ - \xe2\x01\n\x02\x04\0\x12\x04'\0p\x01\x1a\xd5\x01\x20A\x20collection\x20o\ - f\x20Bigtable\x20[Tables][google.bigtable.admin.v2.Table]\x20and\n\x20th\ - e\x20resources\x20that\x20serve\x20them.\n\x20All\x20tables\x20in\x20an\ - \x20instance\x20are\x20served\x20from\x20all\n\x20[Clusters][google.bigt\ - able.admin.v2.Cluster]\x20in\x20the\x20instance.\n\n\n\n\x03\x04\0\x01\ - \x12\x03'\x08\x10\n\x0b\n\x03\x04\0\x07\x12\x04(\x02+\x04\n\r\n\x05\x04\ - \0\x07\x9d\x08\x12\x04(\x02+\x04\n/\n\x04\x04\0\x04\0\x12\x04.\x029\x03\ - \x1a!\x20Possible\x20states\x20of\x20an\x20instance.\n\n\x0c\n\x05\x04\0\ - \x04\0\x01\x12\x03.\x07\x0c\nC\n\x06\x04\0\x04\0\x02\0\x12\x030\x04\x18\ - \x1a4\x20The\x20state\x20of\x20the\x20instance\x20could\x20not\x20be\x20\ - determined.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x030\x04\x13\n\x0e\n\ - \x07\x04\0\x04\0\x02\0\x02\x12\x030\x16\x17\nb\n\x06\x04\0\x04\0\x02\x01\ - \x12\x034\x04\x0e\x1aS\x20The\x20instance\x20has\x20been\x20successfully\ - \x20created\x20and\x20can\x20serve\x20requests\n\x20to\x20its\x20tables.\ - \n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x034\x04\t\n\x0e\n\x07\x04\0\ - \x04\0\x02\x01\x02\x12\x034\x0c\r\n|\n\x06\x04\0\x04\0\x02\x02\x12\x038\ - \x04\x11\x1am\x20The\x20instance\x20is\x20currently\x20being\x20created,\ - \x20and\x20may\x20be\x20destroyed\n\x20if\x20the\x20creation\x20process\ - \x20encounters\x20an\x20error.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\ - \x038\x04\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x038\x0f\x10\n)\n\ - \x04\x04\0\x04\x01\x12\x04<\x02I\x03\x1a\x1b\x20The\x20type\x20of\x20the\ - \x20instance.\n\n\x0c\n\x05\x04\0\x04\x01\x01\x12\x03<\x07\x0b\n\xca\x01\ - \n\x06\x04\0\x04\x01\x02\0\x12\x03@\x04\x19\x1a\xba\x01\x20The\x20type\ - \x20of\x20the\x20instance\x20is\x20unspecified.\x20If\x20set\x20when\x20\ - creating\x20an\n\x20instance,\x20a\x20`PRODUCTION`\x20instance\x20will\ - \x20be\x20created.\x20If\x20set\x20when\x20updating\n\x20an\x20instance,\ - \x20the\x20type\x20will\x20be\x20left\x20unchanged.\n\n\x0e\n\x07\x04\0\ - \x04\x01\x02\0\x01\x12\x03@\x04\x14\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\ - \x12\x03@\x17\x18\na\n\x06\x04\0\x04\x01\x02\x01\x12\x03D\x04\x13\x1aR\ - \x20An\x20instance\x20meant\x20for\x20production\x20use.\x20`serve_nodes\ - `\x20must\x20be\x20set\n\x20on\x20the\x20cluster.\n\n\x0e\n\x07\x04\0\ - \x04\x01\x02\x01\x01\x12\x03D\x04\x0e\n\x0e\n\x07\x04\0\x04\x01\x02\x01\ - \x02\x12\x03D\x11\x12\n\x89\x01\n\x06\x04\0\x04\x01\x02\x02\x12\x03H\x04\ - \x14\x1az\x20DEPRECATED:\x20Prefer\x20PRODUCTION\x20for\x20all\x20use\ - \x20cases,\x20as\x20it\x20no\x20longer\x20enforces\n\x20a\x20higher\x20m\ - inimum\x20node\x20count\x20than\x20DEVELOPMENT.\n\n\x0e\n\x07\x04\0\x04\ - \x01\x02\x02\x01\x12\x03H\x04\x0f\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\ - \x12\x03H\x12\x13\n\x81\x01\n\x04\x04\0\x02\0\x12\x03M\x02\x12\x1at\x20T\ - he\x20unique\x20name\x20of\x20the\x20instance.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/{project}/instances/[a-z][a-z0-9\\\\-]+[a\ - -z0-9]`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03M\x02\x08\n\x0c\n\x05\x04\ - \0\x02\0\x01\x12\x03M\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03M\x10\x11\n\ - \xab\x01\n\x04\x04\0\x02\x01\x12\x03R\x02C\x1a\x9d\x01\x20Required.\x20T\ - he\x20descriptive\x20name\x20for\x20this\x20instance\x20as\x20it\x20appe\ - ars\x20in\x20UIs.\n\x20Can\x20be\x20changed\x20at\x20any\x20time,\x20but\ - \x20should\x20be\x20kept\x20globally\x20unique\n\x20to\x20avoid\x20confu\ - sion.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03R\t\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03R\x18\ - \x19\n\x0c\n\x05\x04\0\x02\x01\x08\x12\x03R\x1aB\n\x0f\n\x08\x04\0\x02\ - \x01\x08\x9c\x08\0\x12\x03R\x1bA\nA\n\x04\x04\0\x02\x02\x12\x03V\x02\x12\ + v2\x1a\x1cgoogle/api/annotations.proto\x1a%google/bigtable/admin/v2/comm\ + on.proto\"\xb7\x03\n\x08Instance\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ + \x04name\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12>\ + \n\x05state\x18\x03\x20\x01(\x0e2(.google.bigtable.admin.v2.Instance.Sta\ + teR\x05state\x12;\n\x04type\x18\x04\x20\x01(\x0e2'.google.bigtable.admin\ + .v2.Instance.TypeR\x04type\x12F\n\x06labels\x18\x05\x20\x03(\x0b2..googl\ + e.bigtable.admin.v2.Instance.LabelsEntryR\x06labels\x1a9\n\x0bLabelsEntr\ + y\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ + \x20\x01(\tR\x05value:\x028\x01\"5\n\x05State\x12\x13\n\x0fSTATE_NOT_KNO\ + WN\x10\0\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08CREATING\x10\x02\"=\n\x04\ + Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nPRODUCTION\x10\x01\ + \x12\x0f\n\x0bDEVELOPMENT\x10\x02\"\xc5\x02\n\x07Cluster\x12\x12\n\x04na\ + me\x18\x01\x20\x01(\tR\x04name\x12\x1a\n\x08location\x18\x02\x20\x01(\tR\ + \x08location\x12=\n\x05state\x18\x03\x20\x01(\x0e2'.google.bigtable.admi\ + n.v2.Cluster.StateR\x05state\x12\x1f\n\x0bserve_nodes\x18\x04\x20\x01(\ + \x05R\nserveNodes\x12W\n\x14default_storage_type\x18\x05\x20\x01(\x0e2%.\ + google.bigtable.admin.v2.StorageTypeR\x12defaultStorageType\"Q\n\x05Stat\ + e\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\x12\t\n\x05READY\x10\x01\x12\x0c\n\ + \x08CREATING\x10\x02\x12\x0c\n\x08RESIZING\x10\x03\x12\x0c\n\x08DISABLED\ + \x10\x04\"\xf2\x03\n\nAppProfile\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ + \x04name\x12\x12\n\x04etag\x18\x02\x20\x01(\tR\x04etag\x12\x20\n\x0bdesc\ + ription\x18\x03\x20\x01(\tR\x0bdescription\x12\x82\x01\n\x1dmulti_cluste\ + r_routing_use_any\x18\x05\x20\x01(\x0b2>.google.bigtable.admin.v2.AppPro\ + file.MultiClusterRoutingUseAnyH\0R\x19multiClusterRoutingUseAny\x12q\n\ + \x16single_cluster_routing\x18\x06\x20\x01(\x0b29.google.bigtable.admin.\ + v2.AppProfile.SingleClusterRoutingH\0R\x14singleClusterRouting\x1a\x1b\n\ + \x19MultiClusterRoutingUseAny\x1as\n\x14SingleClusterRouting\x12\x1d\n\n\ + cluster_id\x18\x01\x20\x01(\tR\tclusterId\x12<\n\x1aallow_transactional_\ + writes\x18\x02\x20\x01(\x08R\x18allowTransactionalWritesB\x10\n\x0erouti\ + ng_policyB\xb0\x01\n\x1ccom.google.bigtable.admin.v2B\rInstanceProtoP\ + \x01Z=google.golang.org/genproto/googleapis/bigtable/admin/v2;admin\xaa\ + \x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtabl\ + e\\Admin\\V2J\xc5?\n\x07\x12\x05\x0f\0\xcc\x01\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202018\x20Google\x20LLC.\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0!\n\t\n\x02\x03\0\x12\x03\x13\0&\n\ + \t\n\x02\x03\x01\x12\x03\x14\0/\n\x08\n\x01\x08\x12\x03\x16\0;\n\t\n\x02\ + \x08%\x12\x03\x16\0;\n\x08\n\x01\x08\x12\x03\x17\0T\n\t\n\x02\x08\x0b\ + \x12\x03\x17\0T\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\ + \x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0.\n\t\n\x02\x08\x08\x12\x03\x19\0.\ + \n\x08\n\x01\x08\x12\x03\x1a\05\n\t\n\x02\x08\x01\x12\x03\x1a\05\n\x08\n\ + \x01\x08\x12\x03\x1b\0<\n\t\n\x02\x08)\x12\x03\x1b\0<\n\xd6\x01\n\x02\ + \x04\0\x12\x04!\0b\x01\x1a\xc9\x01\x20A\x20collection\x20of\x20Bigtable\ + \x20[Tables][google.bigtable.admin.v2.Table]\x20and\n\x20the\x20resource\ + s\x20that\x20serve\x20them.\n\x20All\x20tables\x20in\x20an\x20instance\ + \x20are\x20served\x20from\x20a\x20single\n\x20[Cluster][google.bigtable.\ + admin.v2.Cluster].\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\n/\n\x04\x04\0\ + \x04\0\x12\x04#\x02.\x03\x1a!\x20Possible\x20states\x20of\x20an\x20insta\ + nce.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03#\x07\x0c\nC\n\x06\x04\0\x04\0\ + \x02\0\x12\x03%\x04\x18\x1a4\x20The\x20state\x20of\x20the\x20instance\ + \x20could\x20not\x20be\x20determined.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\ + \x01\x12\x03%\x04\x13\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03%\x16\x17\ + \nb\n\x06\x04\0\x04\0\x02\x01\x12\x03)\x04\x0e\x1aS\x20The\x20instance\ + \x20has\x20been\x20successfully\x20created\x20and\x20can\x20serve\x20req\ + uests\n\x20to\x20its\x20tables.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\ + \x12\x03)\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03)\x0c\r\n|\n\ + \x06\x04\0\x04\0\x02\x02\x12\x03-\x04\x11\x1am\x20The\x20instance\x20is\ + \x20currently\x20being\x20created,\x20and\x20may\x20be\x20destroyed\n\ + \x20if\x20the\x20creation\x20process\x20encounters\x20an\x20error.\n\n\ + \x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03-\x04\x0c\n\x0e\n\x07\x04\0\ + \x04\0\x02\x02\x02\x12\x03-\x0f\x10\n)\n\x04\x04\0\x04\x01\x12\x041\x02C\ + \x03\x1a\x1b\x20The\x20type\x20of\x20the\x20instance.\n\n\x0c\n\x05\x04\ + \0\x04\x01\x01\x12\x031\x07\x0b\n\xca\x01\n\x06\x04\0\x04\x01\x02\0\x12\ + \x035\x04\x19\x1a\xba\x01\x20The\x20type\x20of\x20the\x20instance\x20is\ + \x20unspecified.\x20If\x20set\x20when\x20creating\x20an\n\x20instance,\ + \x20a\x20`PRODUCTION`\x20instance\x20will\x20be\x20created.\x20If\x20set\ + \x20when\x20updating\n\x20an\x20instance,\x20the\x20type\x20will\x20be\ + \x20left\x20unchanged.\n\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x035\ + \x04\x14\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\x12\x035\x17\x18\na\n\x06\ + \x04\0\x04\x01\x02\x01\x12\x039\x04\x13\x1aR\x20An\x20instance\x20meant\ + \x20for\x20production\x20use.\x20`serve_nodes`\x20must\x20be\x20set\n\ + \x20on\x20the\x20cluster.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\ + \x039\x04\x0e\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x039\x11\x12\n\ + \xb7\x03\n\x06\x04\0\x04\x01\x02\x02\x12\x03B\x04\x14\x1a\xa7\x03\x20The\ + \x20instance\x20is\x20meant\x20for\x20development\x20and\x20testing\x20p\ + urposes\x20only;\x20it\x20has\n\x20no\x20performance\x20or\x20uptime\x20\ + guarantees\x20and\x20is\x20not\x20covered\x20by\x20SLA.\n\x20After\x20a\ + \x20development\x20instance\x20is\x20created,\x20it\x20can\x20be\x20upgr\ + aded\x20by\n\x20updating\x20the\x20instance\x20to\x20type\x20`PRODUCTION\ + `.\x20An\x20instance\x20created\n\x20as\x20a\x20production\x20instance\ + \x20cannot\x20be\x20changed\x20to\x20a\x20development\x20instance.\n\x20\ + When\x20creating\x20a\x20development\x20instance,\x20`serve_nodes`\x20on\ + \x20the\x20cluster\x20must\n\x20not\x20be\x20set.\n\n\x0e\n\x07\x04\0\ + \x04\x01\x02\x02\x01\x12\x03B\x04\x0f\n\x0e\n\x07\x04\0\x04\x01\x02\x02\ + \x02\x12\x03B\x12\x13\n\x92\x01\n\x04\x04\0\x02\0\x12\x03H\x02\x12\x1a\ + \x84\x01\x20(`OutputOnly`)\n\x20The\x20unique\x20name\x20of\x20the\x20in\ + stance.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//i\ + nstances/[a-z][a-z0-9\\\\-]+[a-z0-9]`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ + \x03H\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03H\t\r\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03H\x10\x11\n\xa1\x01\n\x04\x04\0\x02\x01\x12\x03M\x02\ + \x1a\x1a\x93\x01\x20The\x20descriptive\x20name\x20for\x20this\x20instanc\ + e\x20as\x20it\x20appears\x20in\x20UIs.\n\x20Can\x20be\x20changed\x20at\ + \x20any\x20time,\x20but\x20should\x20be\x20kept\x20globally\x20unique\n\ + \x20to\x20avoid\x20confusion.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03M\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03M\t\x15\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x03M\x18\x19\nA\n\x04\x04\0\x02\x02\x12\x03Q\x02\x12\ \x1a4\x20(`OutputOnly`)\n\x20The\x20current\x20state\x20of\x20the\x20ins\ - tance.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03V\x02\x07\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03V\x08\r\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03V\x10\ - \x11\nB\n\x04\x04\0\x02\x03\x12\x03Y\x02\x10\x1a5\x20The\x20type\x20of\ + tance.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03Q\x02\x07\n\x0c\n\x05\x04\ + \0\x02\x02\x01\x12\x03Q\x08\r\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03Q\x10\ + \x11\nB\n\x04\x04\0\x02\x03\x12\x03T\x02\x10\x1a5\x20The\x20type\x20of\ \x20the\x20instance.\x20Defaults\x20to\x20`PRODUCTION`.\n\n\x0c\n\x05\ - \x04\0\x02\x03\x06\x12\x03Y\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ - \x03Y\x07\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03Y\x0e\x0f\n\x82\x05\n\ - \x04\x04\0\x02\x04\x12\x03f\x02!\x1a\xf4\x04\x20Labels\x20are\x20a\x20fl\ + \x04\0\x02\x03\x06\x12\x03T\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\x12\ + \x03T\x07\x0b\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03T\x0e\x0f\n\x82\x05\n\ + \x04\x04\0\x02\x04\x12\x03a\x02!\x1a\xf4\x04\x20Labels\x20are\x20a\x20fl\ exible\x20and\x20lightweight\x20mechanism\x20for\x20organizing\x20cloud\ \n\x20resources\x20into\x20groups\x20that\x20reflect\x20a\x20customer's\ \x20organizational\x20needs\x20and\n\x20deployment\x20strategies.\x20The\ @@ -3694,359 +1419,169 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ]{0,63}`.\n\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\x20a\ ssociated\x20with\x20a\x20given\x20resource.\n\x20*\x20Keys\x20and\x20va\ lues\x20must\x20both\x20be\x20under\x20128\x20bytes.\n\n\x0c\n\x05\x04\0\ - \x02\x04\x06\x12\x03f\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03f\x16\ - \x1c\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03f\x1f\x20\n\xcf\x01\n\x04\x04\ - \0\x02\x05\x12\x04k\x02l2\x1a\xc0\x01\x20Output\x20only.\x20A\x20server-\ - assigned\x20timestamp\x20representing\x20when\x20this\x20Instance\n\x20w\ - as\x20created.\x20For\x20instances\x20created\x20before\x20this\x20field\ - \x20was\x20added\x20(August\n\x202021),\x20this\x20value\x20is\x20`secon\ - ds:\x200,\x20nanos:\x201`.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03k\x02\ - \x1b\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03k\x1c'\n\x0c\n\x05\x04\0\x02\ - \x05\x03\x12\x03k*+\n\x0c\n\x05\x04\0\x02\x05\x08\x12\x03l\x061\n\x0f\n\ - \x08\x04\0\x02\x05\x08\x9c\x08\0\x12\x03l\x070\n4\n\x04\x04\0\x02\x06\ - \x12\x03o\x02N\x1a'\x20Output\x20only.\x20Reserved\x20for\x20future\x20u\ - se.\n\n\x0c\n\x05\x04\0\x02\x06\x04\x12\x03o\x02\n\n\x0c\n\x05\x04\0\x02\ - \x06\x05\x12\x03o\x0b\x0f\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03o\x10\x1d\ - \n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03o\x20!\n\x0c\n\x05\x04\0\x02\x06\ - \x08\x12\x03o\"M\n\x0f\n\x08\x04\0\x02\x06\x08\x9c\x08\0\x12\x03o#L\n\\\ - \n\x02\x04\x01\x12\x05s\0\x81\x01\x01\x1aO\x20The\x20Autoscaling\x20targ\ - ets\x20for\x20a\x20Cluster.\x20These\x20determine\x20the\x20recommended\ - \x20nodes.\n\n\n\n\x03\x04\x01\x01\x12\x03s\x08\x1a\n\xf8\x01\n\x04\x04\ - \x01\x02\0\x12\x03x\x02$\x1a\xea\x01\x20The\x20cpu\x20utilization\x20tha\ - t\x20the\x20Autoscaler\x20should\x20be\x20trying\x20to\x20achieve.\n\x20\ - This\x20number\x20is\x20on\x20a\x20scale\x20from\x200\x20(no\x20utilizat\ - ion)\x20to\n\x20100\x20(total\x20utilization),\x20and\x20is\x20limited\ - \x20between\x2010\x20and\x2080,\x20otherwise\x20it\n\x20will\x20return\ - \x20INVALID_ARGUMENT\x20error.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03x\ - \x02\x07\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03x\x08\x1f\n\x0c\n\x05\x04\ - \x01\x02\0\x03\x12\x03x\"#\n\x8e\x03\n\x04\x04\x01\x02\x01\x12\x04\x80\ - \x01\x02-\x1a\xff\x02\x20The\x20storage\x20utilization\x20that\x20the\ - \x20Autoscaler\x20should\x20be\x20trying\x20to\x20achieve.\n\x20This\x20\ - number\x20is\x20limited\x20between\x202560\x20(2.5TiB)\x20and\x205120\ - \x20(5TiB)\x20for\x20a\x20SSD\n\x20cluster\x20and\x20between\x208192\x20\ - (8TiB)\x20and\x2016384\x20(16TiB)\x20for\x20an\x20HDD\x20cluster,\n\x20o\ - therwise\x20it\x20will\x20return\x20INVALID_ARGUMENT\x20error.\x20If\x20\ - this\x20value\x20is\x20set\x20to\x200,\n\x20it\x20will\x20be\x20treated\ - \x20as\x20if\x20it\x20were\x20set\x20to\x20the\x20default\x20value:\x202\ - 560\x20for\x20SSD,\n\x208192\x20for\x20HDD.\n\n\r\n\x05\x04\x01\x02\x01\ - \x05\x12\x04\x80\x01\x02\x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x80\ - \x01\x08(\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x80\x01+,\nR\n\x02\x04\ - \x02\x12\x06\x84\x01\0\x8a\x01\x01\x1aD\x20Limits\x20for\x20the\x20numbe\ - r\x20of\x20nodes\x20a\x20Cluster\x20can\x20autoscale\x20up/down\x20to.\n\ - \n\x0b\n\x03\x04\x02\x01\x12\x04\x84\x01\x08\x19\nC\n\x04\x04\x02\x02\0\ - \x12\x04\x86\x01\x02E\x1a5\x20Required.\x20Minimum\x20number\x20of\x20no\ - des\x20to\x20scale\x20down\x20to.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\ - \x86\x01\x02\x07\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x86\x01\x08\x17\n\r\ - \n\x05\x04\x02\x02\0\x03\x12\x04\x86\x01\x1a\x1b\n\r\n\x05\x04\x02\x02\0\ - \x08\x12\x04\x86\x01\x1cD\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\ - \x04\x86\x01\x1dC\nA\n\x04\x04\x02\x02\x01\x12\x04\x89\x01\x02E\x1a3\x20\ - Required.\x20Maximum\x20number\x20of\x20nodes\x20to\x20scale\x20up\x20to\ - .\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\x89\x01\x02\x07\n\r\n\x05\x04\ - \x02\x02\x01\x01\x12\x04\x89\x01\x08\x17\n\r\n\x05\x04\x02\x02\x01\x03\ - \x12\x04\x89\x01\x1a\x1b\n\r\n\x05\x04\x02\x02\x01\x08\x12\x04\x89\x01\ - \x1cD\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\x12\x04\x89\x01\x1dC\n\ - \xca\x01\n\x02\x04\x03\x12\x06\x8f\x01\0\xf4\x01\x01\x1a\xbb\x01\x20A\ - \x20resizable\x20group\x20of\x20nodes\x20in\x20a\x20particular\x20cloud\ - \x20location,\x20capable\n\x20of\x20serving\x20all\x20[Tables][google.bi\ - gtable.admin.v2.Table]\x20in\x20the\x20parent\n\x20[Instance][google.big\ - table.admin.v2.Instance].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x8f\x01\x08\ - \x0f\n\r\n\x03\x04\x03\x07\x12\x06\x90\x01\x02\x93\x01\x04\n\x0f\n\x05\ - \x04\x03\x07\x9d\x08\x12\x06\x90\x01\x02\x93\x01\x04\n/\n\x04\x04\x03\ - \x04\0\x12\x06\x96\x01\x02\xac\x01\x03\x1a\x1f\x20Possible\x20states\x20\ - of\x20a\x20cluster.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\x04\x96\x01\x07\ - \x0c\nC\n\x06\x04\x03\x04\0\x02\0\x12\x04\x98\x01\x04\x18\x1a3\x20The\ - \x20state\x20of\x20the\x20cluster\x20could\x20not\x20be\x20determined.\n\ - \n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\x12\x04\x98\x01\x04\x13\n\x0f\n\x07\ - \x04\x03\x04\0\x02\0\x02\x12\x04\x98\x01\x16\x17\n[\n\x06\x04\x03\x04\0\ - \x02\x01\x12\x04\x9b\x01\x04\x0e\x1aK\x20The\x20cluster\x20has\x20been\ - \x20successfully\x20created\x20and\x20is\x20ready\x20to\x20serve\x20requ\ - ests.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\x9b\x01\x04\t\n\ - \x0f\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x04\x9b\x01\x0c\r\n\xbf\x01\n\ - \x06\x04\x03\x04\0\x02\x02\x12\x04\xa0\x01\x04\x11\x1a\xae\x01\x20The\ - \x20cluster\x20is\x20currently\x20being\x20created,\x20and\x20may\x20be\ - \x20destroyed\n\x20if\x20the\x20creation\x20process\x20encounters\x20an\ - \x20error.\n\x20A\x20cluster\x20may\x20not\x20be\x20able\x20to\x20serve\ - \x20requests\x20while\x20being\x20created.\n\n\x0f\n\x07\x04\x03\x04\0\ - \x02\x02\x01\x12\x04\xa0\x01\x04\x0c\n\x0f\n\x07\x04\x03\x04\0\x02\x02\ - \x02\x12\x04\xa0\x01\x0f\x10\n\xbe\x02\n\x06\x04\x03\x04\0\x02\x03\x12\ - \x04\xa7\x01\x04\x11\x1a\xad\x02\x20The\x20cluster\x20is\x20currently\ - \x20being\x20resized,\x20and\x20may\x20revert\x20to\x20its\x20previous\n\ - \x20node\x20count\x20if\x20the\x20process\x20encounters\x20an\x20error.\ - \n\x20A\x20cluster\x20is\x20still\x20capable\x20of\x20serving\x20request\ - s\x20while\x20being\x20resized,\n\x20but\x20may\x20exhibit\x20performanc\ - e\x20as\x20if\x20its\x20number\x20of\x20allocated\x20nodes\x20is\n\x20be\ - tween\x20the\x20starting\x20and\x20requested\x20states.\n\n\x0f\n\x07\ - \x04\x03\x04\0\x02\x03\x01\x12\x04\xa7\x01\x04\x0c\n\x0f\n\x07\x04\x03\ - \x04\0\x02\x03\x02\x12\x04\xa7\x01\x0f\x10\n\x86\x01\n\x06\x04\x03\x04\0\ - \x02\x04\x12\x04\xab\x01\x04\x11\x1av\x20The\x20cluster\x20has\x20no\x20\ - backing\x20nodes.\x20The\x20data\x20(tables)\x20still\n\x20exist,\x20but\ - \x20no\x20operations\x20can\x20be\x20performed\x20on\x20the\x20cluster.\ - \n\n\x0f\n\x07\x04\x03\x04\0\x02\x04\x01\x12\x04\xab\x01\x04\x0c\n\x0f\n\ - \x07\x04\x03\x04\0\x02\x04\x02\x12\x04\xab\x01\x0f\x10\n3\n\x04\x04\x03\ - \x03\0\x12\x06\xaf\x01\x02\xb7\x01\x03\x1a#\x20Autoscaling\x20config\x20\ - for\x20a\x20cluster.\n\n\r\n\x05\x04\x03\x03\0\x01\x12\x04\xaf\x01\n\"\n\ - B\n\x06\x04\x03\x03\0\x02\0\x12\x06\xb1\x01\x04\xb2\x011\x1a0\x20Require\ - d.\x20Autoscaling\x20limits\x20for\x20this\x20cluster.\n\n\x0f\n\x07\x04\ - \x03\x03\0\x02\0\x06\x12\x04\xb1\x01\x04\x15\n\x0f\n\x07\x04\x03\x03\0\ - \x02\0\x01\x12\x04\xb1\x01\x16(\n\x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\ - \x04\xb1\x01+,\n\x0f\n\x07\x04\x03\x03\0\x02\0\x08\x12\x04\xb2\x01\x080\ - \n\x12\n\n\x04\x03\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xb2\x01\t/\nC\n\x06\ - \x04\x03\x03\0\x02\x01\x12\x06\xb5\x01\x04\xb6\x011\x1a1\x20Required.\ - \x20Autoscaling\x20targets\x20for\x20this\x20cluster.\n\n\x0f\n\x07\x04\ - \x03\x03\0\x02\x01\x06\x12\x04\xb5\x01\x04\x16\n\x0f\n\x07\x04\x03\x03\0\ - \x02\x01\x01\x12\x04\xb5\x01\x17*\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\ - \x12\x04\xb5\x01-.\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x08\x12\x04\xb6\x01\ - \x080\n\x12\n\n\x04\x03\x03\0\x02\x01\x08\x9c\x08\0\x12\x04\xb6\x01\t/\n\ - .\n\x04\x04\x03\x03\x01\x12\x06\xba\x01\x02\xbd\x01\x03\x1a\x1e\x20Confi\ - guration\x20for\x20a\x20cluster.\n\n\r\n\x05\x04\x03\x03\x01\x01\x12\x04\ - \xba\x01\n\x17\n=\n\x06\x04\x03\x03\x01\x02\0\x12\x04\xbc\x01\x04<\x1a-\ - \x20Autoscaling\x20configuration\x20for\x20this\x20cluster.\n\n\x0f\n\ - \x07\x04\x03\x03\x01\x02\0\x06\x12\x04\xbc\x01\x04\x1c\n\x0f\n\x07\x04\ - \x03\x03\x01\x02\0\x01\x12\x04\xbc\x01\x1d7\n\x0f\n\x07\x04\x03\x03\x01\ - \x02\0\x03\x12\x04\xbc\x01:;\nb\n\x04\x04\x03\x03\x02\x12\x06\xc1\x01\ - \x02\xcf\x01\x03\x1aR\x20Cloud\x20Key\x20Management\x20Service\x20(Cloud\ - \x20KMS)\x20settings\x20for\x20a\x20CMEK-protected\n\x20cluster.\n\n\r\n\ - \x05\x04\x03\x03\x02\x01\x12\x04\xc1\x01\n\x1a\n\xe5\x04\n\x06\x04\x03\ - \x03\x02\x02\0\x12\x06\xcc\x01\x04\xce\x01\x07\x1a\xd2\x04\x20Describes\ - \x20the\x20Cloud\x20KMS\x20encryption\x20key\x20that\x20will\x20be\x20us\ - ed\x20to\x20protect\x20the\n\x20destination\x20Bigtable\x20cluster.\x20T\ - he\x20requirements\x20for\x20this\x20key\x20are:\n\x20\x201)\x20The\x20C\ - loud\x20Bigtable\x20service\x20account\x20associated\x20with\x20the\x20p\ - roject\x20that\n\x20\x20contains\x20this\x20cluster\x20must\x20be\x20gra\ - nted\x20the\n\x20\x20`cloudkms.cryptoKeyEncrypterDecrypter`\x20role\x20o\ - n\x20the\x20CMEK\x20key.\n\x20\x202)\x20Only\x20regional\x20keys\x20can\ - \x20be\x20used\x20and\x20the\x20region\x20of\x20the\x20CMEK\x20key\x20mu\ - st\n\x20\x20match\x20the\x20region\x20of\x20the\x20cluster.\n\x20\x203)\ - \x20All\x20clusters\x20within\x20an\x20instance\x20must\x20use\x20the\ - \x20same\x20CMEK\x20key.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`p\ - rojects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{ke\ - y}`\n\n\x0f\n\x07\x04\x03\x03\x02\x02\0\x05\x12\x04\xcc\x01\x04\n\n\x0f\ - \n\x07\x04\x03\x03\x02\x02\0\x01\x12\x04\xcc\x01\x0b\x17\n\x0f\n\x07\x04\ - \x03\x03\x02\x02\0\x03\x12\x04\xcc\x01\x1a\x1b\n\x11\n\x07\x04\x03\x03\ - \x02\x02\0\x08\x12\x06\xcc\x01\x1c\xce\x01\x06\n\x13\n\t\x04\x03\x03\x02\ - \x02\0\x08\x9f\x08\x12\x06\xcc\x01\x1d\xce\x01\x05\n\x8b\x01\n\x04\x04\ - \x03\x02\0\x12\x04\xd3\x01\x02\x12\x1a}\x20The\x20unique\x20name\x20of\ - \x20the\x20cluster.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects\ - /{project}/instances/{instance}/clusters/[a-z][-a-z0-9]*`.\n\n\r\n\x05\ - \x04\x03\x02\0\x05\x12\x04\xd3\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\ - \x12\x04\xd3\x01\t\r\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd3\x01\x10\x11\ - \n\x9d\x02\n\x04\x04\x03\x02\x01\x12\x06\xd9\x01\x02\xde\x01\x04\x1a\x8c\ - \x02\x20Immutable.\x20The\x20location\x20where\x20this\x20cluster's\x20n\ - odes\x20and\x20storage\x20reside.\x20For\n\x20best\x20performance,\x20cl\ - ients\x20should\x20be\x20located\x20as\x20close\x20as\x20possible\x20to\ - \x20this\n\x20cluster.\x20Currently\x20only\x20zones\x20are\x20supported\ - ,\x20so\x20values\x20should\x20be\x20of\x20the\n\x20form\x20`projects/{p\ - roject}/locations/{zone}`.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xd9\ - \x01\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xd9\x01\t\x11\n\r\n\ - \x05\x04\x03\x02\x01\x03\x12\x04\xd9\x01\x14\x15\n\x0f\n\x05\x04\x03\x02\ - \x01\x08\x12\x06\xd9\x01\x16\xde\x01\x03\n\x10\n\x08\x04\x03\x02\x01\x08\ - \x9c\x08\0\x12\x04\xda\x01\x04+\n\x11\n\x07\x04\x03\x02\x01\x08\x9f\x08\ - \x12\x06\xdb\x01\x04\xdd\x01\x05\n>\n\x04\x04\x03\x02\x02\x12\x04\xe1\ - \x01\x02>\x1a0\x20Output\x20only.\x20The\x20current\x20state\x20of\x20th\ - e\x20cluster.\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xe1\x01\x02\x07\n\ - \r\n\x05\x04\x03\x02\x02\x01\x12\x04\xe1\x01\x08\r\n\r\n\x05\x04\x03\x02\ - \x02\x03\x12\x04\xe1\x01\x10\x11\n\r\n\x05\x04\x03\x02\x02\x08\x12\x04\ - \xe1\x01\x12=\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\x04\xe1\x01\ - \x13<\n\x84\x01\n\x04\x04\x03\x02\x03\x12\x04\xe5\x01\x02\x18\x1av\x20Th\ - e\x20number\x20of\x20nodes\x20allocated\x20to\x20this\x20cluster.\x20Mor\ - e\x20nodes\x20enable\x20higher\n\x20throughput\x20and\x20more\x20consist\ - ent\x20performance.\n\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\xe5\x01\x02\ - \x07\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xe5\x01\x08\x13\n\r\n\x05\x04\ - \x03\x02\x03\x03\x12\x04\xe5\x01\x16\x17\n\x0e\n\x04\x04\x03\x08\0\x12\ - \x06\xe7\x01\x02\xea\x01\x03\n\r\n\x05\x04\x03\x08\0\x01\x12\x04\xe7\x01\ - \x08\x0e\n/\n\x04\x04\x03\x02\x04\x12\x04\xe9\x01\x04%\x1a!\x20Configura\ - tion\x20for\x20this\x20cluster.\n\n\r\n\x05\x04\x03\x02\x04\x06\x12\x04\ - \xe9\x01\x04\x11\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\xe9\x01\x12\x20\n\ - \r\n\x05\x04\x03\x02\x04\x03\x12\x04\xe9\x01#$\n\x8b\x01\n\x04\x04\x03\ - \x02\x05\x12\x06\xee\x01\x02\xef\x010\x1a{\x20Immutable.\x20The\x20type\ - \x20of\x20storage\x20used\x20by\x20this\x20cluster\x20to\x20serve\x20its\ - \n\x20parent\x20instance's\x20tables,\x20unless\x20explicitly\x20overrid\ - den.\n\n\r\n\x05\x04\x03\x02\x05\x06\x12\x04\xee\x01\x02\r\n\r\n\x05\x04\ - \x03\x02\x05\x01\x12\x04\xee\x01\x0e\"\n\r\n\x05\x04\x03\x02\x05\x03\x12\ - \x04\xee\x01%&\n\r\n\x05\x04\x03\x02\x05\x08\x12\x04\xef\x01\x06/\n\x10\ - \n\x08\x04\x03\x02\x05\x08\x9c\x08\0\x12\x04\xef\x01\x07.\nV\n\x04\x04\ - \x03\x02\x06\x12\x06\xf2\x01\x02\xf3\x010\x1aF\x20Immutable.\x20The\x20e\ - ncryption\x20configuration\x20for\x20CMEK-protected\x20clusters.\n\n\r\n\ - \x05\x04\x03\x02\x06\x06\x12\x04\xf2\x01\x02\x12\n\r\n\x05\x04\x03\x02\ - \x06\x01\x12\x04\xf2\x01\x13$\n\r\n\x05\x04\x03\x02\x06\x03\x12\x04\xf2\ - \x01'(\n\r\n\x05\x04\x03\x02\x06\x08\x12\x04\xf3\x01\x06/\n\x10\n\x08\ - \x04\x03\x02\x06\x08\x9c\x08\0\x12\x04\xf3\x01\x07.\n\x82\x01\n\x02\x04\ - \x04\x12\x06\xf8\x01\0\xd2\x02\x01\x1at\x20A\x20configuration\x20object\ - \x20describing\x20how\x20Cloud\x20Bigtable\x20should\x20treat\x20traffic\ - \n\x20from\x20a\x20particular\x20end\x20user\x20application.\n\n\x0b\n\ - \x03\x04\x04\x01\x12\x04\xf8\x01\x08\x12\n\r\n\x03\x04\x04\x07\x12\x06\ - \xf9\x01\x02\xfc\x01\x04\n\x0f\n\x05\x04\x04\x07\x9d\x08\x12\x06\xf9\x01\ - \x02\xfc\x01\x04\n\xcc\x02\n\x04\x04\x04\x03\0\x12\x06\x83\x02\x02\x87\ - \x02\x03\x1a\xbb\x02\x20Read/write\x20requests\x20are\x20routed\x20to\ - \x20the\x20nearest\x20cluster\x20in\x20the\x20instance,\x20and\n\x20will\ - \x20fail\x20over\x20to\x20the\x20nearest\x20cluster\x20that\x20is\x20ava\ - ilable\x20in\x20the\x20event\x20of\n\x20transient\x20errors\x20or\x20del\ - ays.\x20Clusters\x20in\x20a\x20region\x20are\x20considered\n\x20equidist\ - ant.\x20Choosing\x20this\x20option\x20sacrifices\x20read-your-writes\x20\ - consistency\n\x20to\x20improve\x20availability.\n\n\r\n\x05\x04\x04\x03\ - \0\x01\x12\x04\x83\x02\n#\n\xa1\x01\n\x06\x04\x04\x03\0\x02\0\x12\x04\ - \x86\x02\x04$\x1a\x90\x01\x20The\x20set\x20of\x20clusters\x20to\x20route\ - \x20to.\x20The\x20order\x20is\x20ignored;\x20clusters\x20will\x20be\n\ - \x20tried\x20in\x20order\x20of\x20distance.\x20If\x20left\x20empty,\x20a\ - ll\x20clusters\x20are\x20eligible.\n\n\x0f\n\x07\x04\x04\x03\0\x02\0\x04\ - \x12\x04\x86\x02\x04\x0c\n\x0f\n\x07\x04\x04\x03\0\x02\0\x05\x12\x04\x86\ - \x02\r\x13\n\x0f\n\x07\x04\x04\x03\0\x02\0\x01\x12\x04\x86\x02\x14\x1f\n\ - \x0f\n\x07\x04\x04\x03\0\x02\0\x03\x12\x04\x86\x02\"#\n\xb0\x01\n\x04\ - \x04\x04\x03\x01\x12\x06\x8c\x02\x02\x94\x02\x03\x1a\x9f\x01\x20Uncondit\ - ionally\x20routes\x20all\x20read/write\x20requests\x20to\x20a\x20specifi\ - c\x20cluster.\n\x20This\x20option\x20preserves\x20read-your-writes\x20co\ - nsistency\x20but\x20does\x20not\x20improve\n\x20availability.\n\n\r\n\ - \x05\x04\x04\x03\x01\x01\x12\x04\x8c\x02\n\x1e\nL\n\x06\x04\x04\x03\x01\ - \x02\0\x12\x04\x8e\x02\x04\x1a\x1a<\x20The\x20cluster\x20to\x20which\x20\ - read/write\x20requests\x20should\x20be\x20routed.\n\n\x0f\n\x07\x04\x04\ - \x03\x01\x02\0\x05\x12\x04\x8e\x02\x04\n\n\x0f\n\x07\x04\x04\x03\x01\x02\ - \0\x01\x12\x04\x8e\x02\x0b\x15\n\x0f\n\x07\x04\x04\x03\x01\x02\0\x03\x12\ - \x04\x8e\x02\x18\x19\n\xd1\x01\n\x06\x04\x04\x03\x01\x02\x01\x12\x04\x93\ - \x02\x04(\x1a\xc0\x01\x20Whether\x20or\x20not\x20`CheckAndMutateRow`\x20\ - and\x20`ReadModifyWriteRow`\x20requests\x20are\n\x20allowed\x20by\x20thi\ - s\x20app\x20profile.\x20It\x20is\x20unsafe\x20to\x20send\x20these\x20req\ - uests\x20to\n\x20the\x20same\x20table/row/column\x20in\x20multiple\x20cl\ - usters.\n\n\x0f\n\x07\x04\x04\x03\x01\x02\x01\x05\x12\x04\x93\x02\x04\ - \x08\n\x0f\n\x07\x04\x04\x03\x01\x02\x01\x01\x12\x04\x93\x02\t#\n\x0f\n\ - \x07\x04\x04\x03\x01\x02\x01\x03\x12\x04\x93\x02&'\n\xde\x01\n\x04\x04\ - \x04\x04\0\x12\x06\x99\x02\x02\xa2\x02\x03\x1a\xcd\x01\x20Possible\x20pr\ - iorities\x20for\x20an\x20app\x20profile.\x20Note\x20that\x20higher\x20pr\ - iority\x20writes\n\x20can\x20sometimes\x20queue\x20behind\x20lower\x20pr\ - iority\x20writes\x20to\x20the\x20same\x20tablet,\x20as\n\x20writes\x20mu\ - st\x20be\x20strictly\x20sequenced\x20in\x20the\x20durability\x20log.\n\n\ - \r\n\x05\x04\x04\x04\0\x01\x12\x04\x99\x02\x07\x0f\n[\n\x06\x04\x04\x04\ - \0\x02\0\x12\x04\x9b\x02\x04\x1d\x1aK\x20Default\x20value.\x20Mapped\x20\ - to\x20PRIORITY_HIGH\x20(the\x20legacy\x20behavior)\x20on\x20creation.\n\ - \n\x0f\n\x07\x04\x04\x04\0\x02\0\x01\x12\x04\x9b\x02\x04\x18\n\x0f\n\x07\ - \x04\x04\x04\0\x02\0\x02\x12\x04\x9b\x02\x1b\x1c\n\x0e\n\x06\x04\x04\x04\ - \0\x02\x01\x12\x04\x9d\x02\x04\x15\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x01\ - \x12\x04\x9d\x02\x04\x10\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\ - \x9d\x02\x13\x14\n\x0e\n\x06\x04\x04\x04\0\x02\x02\x12\x04\x9f\x02\x04\ - \x18\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x01\x12\x04\x9f\x02\x04\x13\n\x0f\ - \n\x07\x04\x04\x04\0\x02\x02\x02\x12\x04\x9f\x02\x16\x17\n\x0e\n\x06\x04\ - \x04\x04\0\x02\x03\x12\x04\xa1\x02\x04\x16\n\x0f\n\x07\x04\x04\x04\0\x02\ - \x03\x01\x12\x04\xa1\x02\x04\x11\n\x0f\n\x07\x04\x04\x04\0\x02\x03\x02\ - \x12\x04\xa1\x02\x14\x15\nb\n\x04\x04\x04\x03\x02\x12\x06\xa6\x02\x02\ - \xa9\x02\x03\x1aR\x20Standard\x20options\x20for\x20isolating\x20this\x20\ - app\x20profile's\x20traffic\x20from\x20other\x20use\n\x20cases.\n\n\r\n\ - \x05\x04\x04\x03\x02\x01\x12\x04\xa6\x02\n\x1b\nG\n\x06\x04\x04\x03\x02\ - \x02\0\x12\x04\xa8\x02\x04\x1a\x1a7\x20The\x20priority\x20of\x20requests\ - \x20sent\x20using\x20this\x20app\x20profile.\n\n\x0f\n\x07\x04\x04\x03\ - \x02\x02\0\x06\x12\x04\xa8\x02\x04\x0c\n\x0f\n\x07\x04\x04\x03\x02\x02\0\ - \x01\x12\x04\xa8\x02\r\x15\n\x0f\n\x07\x04\x04\x03\x02\x02\0\x03\x12\x04\ - \xa8\x02\x18\x19\n\x9f\x01\n\x04\x04\x04\x02\0\x12\x04\xad\x02\x02\x12\ - \x1a\x90\x01\x20The\x20unique\x20name\x20of\x20the\x20app\x20profile.\ - \x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/instance\ - s/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\n\r\n\x05\x04\ - \x04\x02\0\x05\x12\x04\xad\x02\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\ - \x04\xad\x02\t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xad\x02\x10\x11\n\ - \xcd\x03\n\x04\x04\x04\x02\x01\x12\x04\xb7\x02\x02\x12\x1a\xbe\x03\x20St\ - rongly\x20validated\x20etag\x20for\x20optimistic\x20concurrency\x20contr\ - ol.\x20Preserve\x20the\n\x20value\x20returned\x20from\x20`GetAppProfile`\ - \x20when\x20calling\x20`UpdateAppProfile`\x20to\n\x20fail\x20the\x20requ\ - est\x20if\x20there\x20has\x20been\x20a\x20modification\x20in\x20the\x20m\ - ean\x20time.\x20The\n\x20`update_mask`\x20of\x20the\x20request\x20need\ - \x20not\x20include\x20`etag`\x20for\x20this\x20protection\n\x20to\x20app\ - ly.\n\x20See\x20[Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag)\x20\ - and\n\x20[RFC\x207232](https://tools.ietf.org/html/rfc7232#section-2.3)\ - \x20for\x20more\n\x20details.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\ - \xb7\x02\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xb7\x02\t\r\n\r\n\ - \x05\x04\x04\x02\x01\x03\x12\x04\xb7\x02\x10\x11\nJ\n\x04\x04\x04\x02\ - \x02\x12\x04\xba\x02\x02\x19\x1a<\x20Long\x20form\x20description\x20of\ - \x20the\x20use\x20case\x20for\x20this\x20AppProfile.\n\n\r\n\x05\x04\x04\ - \x02\x02\x05\x12\x04\xba\x02\x02\x08\n\r\n\x05\x04\x04\x02\x02\x01\x12\ - \x04\xba\x02\t\x14\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xba\x02\x17\x18\ - \n|\n\x04\x04\x04\x08\0\x12\x06\xbe\x02\x02\xc4\x02\x03\x1al\x20The\x20r\ - outing\x20policy\x20for\x20all\x20read/write\x20requests\x20that\x20use\ + \x02\x04\x06\x12\x03a\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03a\x16\ + \x1c\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03a\x1f\x20\n\xc9\x01\n\x02\x04\ + \x01\x12\x05g\0\x99\x01\x01\x1a\xbb\x01\x20A\x20resizable\x20group\x20of\ + \x20nodes\x20in\x20a\x20particular\x20cloud\x20location,\x20capable\n\ + \x20of\x20serving\x20all\x20[Tables][google.bigtable.admin.v2.Table]\x20\ + in\x20the\x20parent\n\x20[Instance][google.bigtable.admin.v2.Instance].\ + \n\n\n\n\x03\x04\x01\x01\x12\x03g\x08\x0f\n-\n\x04\x04\x01\x04\0\x12\x04\ + i\x02\x7f\x03\x1a\x1f\x20Possible\x20states\x20of\x20a\x20cluster.\n\n\ + \x0c\n\x05\x04\x01\x04\0\x01\x12\x03i\x07\x0c\nB\n\x06\x04\x01\x04\0\x02\ + \0\x12\x03k\x04\x18\x1a3\x20The\x20state\x20of\x20the\x20cluster\x20coul\ + d\x20not\x20be\x20determined.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\ + \x03k\x04\x13\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03k\x16\x17\nZ\n\ + \x06\x04\x01\x04\0\x02\x01\x12\x03n\x04\x0e\x1aK\x20The\x20cluster\x20ha\ + s\x20been\x20successfully\x20created\x20and\x20is\x20ready\x20to\x20serv\ + e\x20requests.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03n\x04\t\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03n\x0c\r\n\xbe\x01\n\x06\x04\ + \x01\x04\0\x02\x02\x12\x03s\x04\x11\x1a\xae\x01\x20The\x20cluster\x20is\ + \x20currently\x20being\x20created,\x20and\x20may\x20be\x20destroyed\n\ + \x20if\x20the\x20creation\x20process\x20encounters\x20an\x20error.\n\x20\ + A\x20cluster\x20may\x20not\x20be\x20able\x20to\x20serve\x20requests\x20w\ + hile\x20being\x20created.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ + \x03s\x04\x0c\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03s\x0f\x10\n\ + \xbd\x02\n\x06\x04\x01\x04\0\x02\x03\x12\x03z\x04\x11\x1a\xad\x02\x20The\ + \x20cluster\x20is\x20currently\x20being\x20resized,\x20and\x20may\x20rev\ + ert\x20to\x20its\x20previous\n\x20node\x20count\x20if\x20the\x20process\ + \x20encounters\x20an\x20error.\n\x20A\x20cluster\x20is\x20still\x20capab\ + le\x20of\x20serving\x20requests\x20while\x20being\x20resized,\n\x20but\ + \x20may\x20exhibit\x20performance\x20as\x20if\x20its\x20number\x20of\x20\ + allocated\x20nodes\x20is\n\x20between\x20the\x20starting\x20and\x20reque\ + sted\x20states.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03z\x04\x0c\ + \n\x0e\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x03z\x0f\x10\n\x85\x01\n\x06\ + \x04\x01\x04\0\x02\x04\x12\x03~\x04\x11\x1av\x20The\x20cluster\x20has\ + \x20no\x20backing\x20nodes.\x20The\x20data\x20(tables)\x20still\n\x20exi\ + st,\x20but\x20no\x20operations\x20can\x20be\x20performed\x20on\x20the\ + \x20cluster.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x04\x01\x12\x03~\x04\x0c\n\ + \x0e\n\x07\x04\x01\x04\0\x02\x04\x02\x12\x03~\x0f\x10\n\x9c\x01\n\x04\ + \x04\x01\x02\0\x12\x04\x84\x01\x02\x12\x1a\x8d\x01\x20(`OutputOnly`)\n\ + \x20The\x20unique\x20name\x20of\x20the\x20cluster.\x20Values\x20are\x20o\ + f\x20the\x20form\n\x20`projects//instances//clusters/\ + [a-z][-a-z0-9]*`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x84\x01\x02\x08\ + \n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x84\x01\t\r\n\r\n\x05\x04\x01\x02\0\ + \x03\x12\x04\x84\x01\x10\x11\n\xa2\x02\n\x04\x04\x01\x02\x01\x12\x04\x8b\ + \x01\x02\x16\x1a\x93\x02\x20(`CreationOnly`)\n\x20The\x20location\x20whe\ + re\x20this\x20cluster's\x20nodes\x20and\x20storage\x20reside.\x20For\x20\ + best\n\x20performance,\x20clients\x20should\x20be\x20located\x20as\x20cl\ + ose\x20as\x20possible\x20to\x20this\n\x20cluster.\x20Currently\x20only\ + \x20zones\x20are\x20supported,\x20so\x20values\x20should\x20be\x20of\x20\ + the\n\x20form\x20`projects//locations/`.\n\n\r\n\x05\x04\ + \x01\x02\x01\x05\x12\x04\x8b\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\ + \x12\x04\x8b\x01\t\x11\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8b\x01\x14\ + \x15\nA\n\x04\x04\x01\x02\x02\x12\x04\x8f\x01\x02\x12\x1a3\x20(`OutputOn\ + ly`)\n\x20The\x20current\x20state\x20of\x20the\x20cluster.\n\n\r\n\x05\ + \x04\x01\x02\x02\x06\x12\x04\x8f\x01\x02\x07\n\r\n\x05\x04\x01\x02\x02\ + \x01\x12\x04\x8f\x01\x08\r\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x8f\x01\ + \x10\x11\n\x84\x01\n\x04\x04\x01\x02\x03\x12\x04\x93\x01\x02\x18\x1av\ + \x20The\x20number\x20of\x20nodes\x20allocated\x20to\x20this\x20cluster.\ + \x20More\x20nodes\x20enable\x20higher\n\x20throughput\x20and\x20more\x20\ + consistent\x20performance.\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\x93\ + \x01\x02\x07\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x93\x01\x08\x13\n\r\n\ + \x05\x04\x01\x02\x03\x03\x12\x04\x93\x01\x16\x17\n\x91\x01\n\x04\x04\x01\ + \x02\x04\x12\x04\x98\x01\x02'\x1a\x82\x01\x20(`CreationOnly`)\n\x20The\ + \x20type\x20of\x20storage\x20used\x20by\x20this\x20cluster\x20to\x20serv\ + e\x20its\n\x20parent\x20instance's\x20tables,\x20unless\x20explicitly\ + \x20overridden.\n\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\x98\x01\x02\r\n\ + \r\n\x05\x04\x01\x02\x04\x01\x12\x04\x98\x01\x0e\"\n\r\n\x05\x04\x01\x02\ + \x04\x03\x12\x04\x98\x01%&\n\x82\x01\n\x02\x04\x02\x12\x06\x9d\x01\0\xcc\ + \x01\x01\x1at\x20A\x20configuration\x20object\x20describing\x20how\x20Cl\ + oud\x20Bigtable\x20should\x20treat\x20traffic\n\x20from\x20a\x20particul\ + ar\x20end\x20user\x20application.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x9d\ + \x01\x08\x12\n\xfd\x01\n\x04\x04\x02\x03\0\x12\x04\xa2\x01\x02&\x1a\xee\ + \x01\x20Read/write\x20requests\x20may\x20be\x20routed\x20to\x20any\x20cl\ + uster\x20in\x20the\x20instance,\x20and\x20will\n\x20fail\x20over\x20to\ + \x20another\x20cluster\x20in\x20the\x20event\x20of\x20transient\x20error\ + s\x20or\x20delays.\n\x20Choosing\x20this\x20option\x20sacrifices\x20read\ + -your-writes\x20consistency\x20to\x20improve\n\x20availability.\n\n\r\n\ + \x05\x04\x02\x03\0\x01\x12\x04\xa2\x01\n#\n\xb1\x01\n\x04\x04\x02\x03\ + \x01\x12\x06\xa7\x01\x02\xaf\x01\x03\x1a\xa0\x01\x20Unconditionally\x20r\ + outes\x20all\x20read/write\x20requests\x20to\x20a\x20specific\x20cluster\ + .\n\x20This\x20option\x20preserves\x20read-your-writes\x20consistency,\ + \x20but\x20does\x20not\x20improve\n\x20availability.\n\n\r\n\x05\x04\x02\ + \x03\x01\x01\x12\x04\xa7\x01\n\x1e\nL\n\x06\x04\x02\x03\x01\x02\0\x12\ + \x04\xa9\x01\x04\x1a\x1a<\x20The\x20cluster\x20to\x20which\x20read/write\ + \x20requests\x20should\x20be\x20routed.\n\n\x0f\n\x07\x04\x02\x03\x01\ + \x02\0\x05\x12\x04\xa9\x01\x04\n\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x01\ + \x12\x04\xa9\x01\x0b\x15\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x03\x12\x04\ + \xa9\x01\x18\x19\n\xd1\x01\n\x06\x04\x02\x03\x01\x02\x01\x12\x04\xae\x01\ + \x04(\x1a\xc0\x01\x20Whether\x20or\x20not\x20`CheckAndMutateRow`\x20and\ + \x20`ReadModifyWriteRow`\x20requests\x20are\n\x20allowed\x20by\x20this\ + \x20app\x20profile.\x20It\x20is\x20unsafe\x20to\x20send\x20these\x20requ\ + ests\x20to\n\x20the\x20same\x20table/row/column\x20in\x20multiple\x20clu\ + sters.\n\n\x0f\n\x07\x04\x02\x03\x01\x02\x01\x05\x12\x04\xae\x01\x04\x08\ + \n\x0f\n\x07\x04\x02\x03\x01\x02\x01\x01\x12\x04\xae\x01\t#\n\x0f\n\x07\ + \x04\x02\x03\x01\x02\x01\x03\x12\x04\xae\x01&'\n\xaf\x01\n\x04\x04\x02\ + \x02\0\x12\x04\xb4\x01\x02\x12\x1a\xa0\x01\x20(`OutputOnly`)\n\x20The\ + \x20unique\x20name\x20of\x20the\x20app\x20profile.\x20Values\x20are\x20o\ + f\x20the\x20form\n\x20`projects//instances//appProfil\ + es/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\ + \xb4\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb4\x01\t\r\n\r\n\ + \x05\x04\x02\x02\0\x03\x12\x04\xb4\x01\x10\x11\n\xcd\x03\n\x04\x04\x02\ + \x02\x01\x12\x04\xbe\x01\x02\x12\x1a\xbe\x03\x20Strongly\x20validated\ + \x20etag\x20for\x20optimistic\x20concurrency\x20control.\x20Preserve\x20\ + the\n\x20value\x20returned\x20from\x20`GetAppProfile`\x20when\x20calling\ + \x20`UpdateAppProfile`\x20to\n\x20fail\x20the\x20request\x20if\x20there\ + \x20has\x20been\x20a\x20modification\x20in\x20the\x20mean\x20time.\x20Th\ + e\n\x20`update_mask`\x20of\x20the\x20request\x20need\x20not\x20include\ + \x20`etag`\x20for\x20this\x20protection\n\x20to\x20apply.\n\x20See\x20[W\ + ikipedia](https://en.wikipedia.org/wiki/HTTP_ETag)\x20and\n\x20[RFC\x207\ + 232](https://tools.ietf.org/html/rfc7232#section-2.3)\x20for\x20more\n\ + \x20details.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xbe\x01\x02\x08\n\r\ + \n\x05\x04\x02\x02\x01\x01\x12\x04\xbe\x01\t\r\n\r\n\x05\x04\x02\x02\x01\ + \x03\x12\x04\xbe\x01\x10\x11\nS\n\x04\x04\x02\x02\x02\x12\x04\xc1\x01\ + \x02\x19\x1aE\x20Optional\x20long\x20form\x20description\x20of\x20the\ + \x20use\x20case\x20for\x20this\x20AppProfile.\n\n\r\n\x05\x04\x02\x02\ + \x02\x05\x12\x04\xc1\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\ + \xc1\x01\t\x14\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xc1\x01\x17\x18\n}\ + \n\x04\x04\x02\x08\0\x12\x06\xc5\x01\x02\xcb\x01\x03\x1am\x20The\x20rout\ + ing\x20policy\x20for\x20all\x20read/write\x20requests\x20which\x20use\ \x20this\x20app\x20profile.\n\x20A\x20value\x20must\x20be\x20explicitly\ - \x20set.\n\n\r\n\x05\x04\x04\x08\0\x01\x12\x04\xbe\x02\x08\x16\n3\n\x04\ - \x04\x04\x02\x03\x12\x04\xc0\x02\x04@\x1a%\x20Use\x20a\x20multi-cluster\ - \x20routing\x20policy.\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xc0\x02\ - \x04\x1d\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\xc0\x02\x1e;\n\r\n\x05\ - \x04\x04\x02\x03\x03\x12\x04\xc0\x02>?\n4\n\x04\x04\x04\x02\x04\x12\x04\ - \xc3\x02\x044\x1a&\x20Use\x20a\x20single-cluster\x20routing\x20policy.\n\ - \n\r\n\x05\x04\x04\x02\x04\x06\x12\x04\xc3\x02\x04\x18\n\r\n\x05\x04\x04\ - \x02\x04\x01\x12\x04\xc3\x02\x19/\n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\ - \xc3\x0223\nX\n\x04\x04\x04\x08\x01\x12\x06\xc7\x02\x02\xd1\x02\x03\x1aH\ - \x20Options\x20for\x20isolating\x20this\x20app\x20profile's\x20traffic\ - \x20from\x20other\x20use\x20cases.\n\n\r\n\x05\x04\x04\x08\x01\x01\x12\ - \x04\xc7\x02\x08\x11\n\xdd\x01\n\x04\x04\x04\x02\x05\x12\x04\xcc\x02\x04\ - .\x1a\xce\x01\x20This\x20field\x20has\x20been\x20deprecated\x20in\x20fav\ - or\x20of\x20`standard_isolation.priority`.\n\x20If\x20you\x20set\x20this\ - \x20field,\x20`standard_isolation.priority`\x20will\x20be\x20set\x20inst\ - ead.\n\n\x20The\x20priority\x20of\x20requests\x20sent\x20using\x20this\ - \x20app\x20profile.\n\n\r\n\x05\x04\x04\x02\x05\x06\x12\x04\xcc\x02\x04\ - \x0c\n\r\n\x05\x04\x04\x02\x05\x01\x12\x04\xcc\x02\r\x15\n\r\n\x05\x04\ - \x04\x02\x05\x03\x12\x04\xcc\x02\x18\x19\n\r\n\x05\x04\x04\x02\x05\x08\ - \x12\x04\xcc\x02\x1a-\n\x0e\n\x06\x04\x04\x02\x05\x08\x03\x12\x04\xcc\ - \x02\x1b,\ni\n\x04\x04\x04\x02\x06\x12\x04\xd0\x02\x04.\x1a[\x20The\x20s\ - tandard\x20options\x20used\x20for\x20isolating\x20this\x20app\x20profile\ - 's\x20traffic\x20from\n\x20other\x20use\x20cases.\n\n\r\n\x05\x04\x04\ - \x02\x06\x06\x12\x04\xd0\x02\x04\x15\n\r\n\x05\x04\x04\x02\x06\x01\x12\ - \x04\xd0\x02\x16(\n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\xd0\x02+-\n\xcb\ - \x02\n\x02\x04\x05\x12\x06\xd9\x02\0\xfc\x02\x01\x1a\xbc\x02\x20A\x20tab\ - let\x20is\x20a\x20defined\x20by\x20a\x20start\x20and\x20end\x20key\x20an\ - d\x20is\x20explained\x20in\n\x20https://cloud.google.com/bigtable/docs/o\ - verview#architecture\x20and\n\x20https://cloud.google.com/bigtable/docs/\ - performance#optimization.\n\x20A\x20Hot\x20tablet\x20is\x20a\x20tablet\ - \x20that\x20exhibits\x20high\x20average\x20cpu\x20usage\x20during\x20the\ - \x20time\n\x20interval\x20from\x20start\x20time\x20to\x20end\x20time.\n\ - \n\x0b\n\x03\x04\x05\x01\x12\x04\xd9\x02\x08\x11\n\r\n\x03\x04\x05\x07\ - \x12\x06\xda\x02\x02\xdd\x02\x04\n\x0f\n\x05\x04\x05\x07\x9d\x08\x12\x06\ - \xda\x02\x02\xdd\x02\x04\n\xa3\x01\n\x04\x04\x05\x02\0\x12\x04\xe1\x02\ - \x02\x12\x1a\x94\x01\x20The\x20unique\x20name\x20of\x20the\x20hot\x20tab\ - let.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ - ances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*`.\n\n\r\n\ - \x05\x04\x05\x02\0\x05\x12\x04\xe1\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\ - \x01\x12\x04\xe1\x02\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xe1\x02\x10\ - \x11\n\xa4\x01\n\x04\x04\x05\x02\x01\x12\x06\xe5\x02\x02\xe7\x02\x05\x1a\ - \x93\x01\x20Name\x20of\x20the\x20table\x20that\x20contains\x20the\x20tab\ - let.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/{project}/inst\ - ances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\n\r\n\x05\x04\ - \x05\x02\x01\x05\x12\x04\xe5\x02\x02\x08\n\r\n\x05\x04\x05\x02\x01\x01\ - \x12\x04\xe5\x02\t\x13\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xe5\x02\x16\ - \x17\n\x0f\n\x05\x04\x05\x02\x01\x08\x12\x06\xe5\x02\x18\xe7\x02\x04\n\ - \x11\n\x07\x04\x05\x02\x01\x08\x9f\x08\x12\x06\xe5\x02\x19\xe7\x02\x03\n\ - @\n\x04\x04\x05\x02\x02\x12\x06\xea\x02\x02\xeb\x022\x1a0\x20Output\x20o\ - nly.\x20The\x20start\x20time\x20of\x20the\x20hot\x20tablet.\n\n\r\n\x05\ - \x04\x05\x02\x02\x06\x12\x04\xea\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x02\ - \x01\x12\x04\xea\x02\x1c&\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xea\x02)\ - *\n\r\n\x05\x04\x05\x02\x02\x08\x12\x04\xeb\x02\x061\n\x10\n\x08\x04\x05\ - \x02\x02\x08\x9c\x08\0\x12\x04\xeb\x02\x070\n>\n\x04\x04\x05\x02\x03\x12\ - \x06\xee\x02\x02\xef\x022\x1a.\x20Output\x20only.\x20The\x20end\x20time\ - \x20of\x20the\x20hot\x20tablet.\n\n\r\n\x05\x04\x05\x02\x03\x06\x12\x04\ - \xee\x02\x02\x1b\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\xee\x02\x1c$\n\r\ - \n\x05\x04\x05\x02\x03\x03\x12\x04\xee\x02'(\n\r\n\x05\x04\x05\x02\x03\ - \x08\x12\x04\xef\x02\x061\n\x10\n\x08\x04\x05\x02\x03\x08\x9c\x08\0\x12\ - \x04\xef\x02\x070\n-\n\x04\x04\x05\x02\x04\x12\x04\xf2\x02\x02\x17\x1a\ - \x1f\x20Tablet\x20Start\x20Key\x20(inclusive).\n\n\r\n\x05\x04\x05\x02\ - \x04\x05\x12\x04\xf2\x02\x02\x08\n\r\n\x05\x04\x05\x02\x04\x01\x12\x04\ - \xf2\x02\t\x12\n\r\n\x05\x04\x05\x02\x04\x03\x12\x04\xf2\x02\x15\x16\n+\ - \n\x04\x04\x05\x02\x05\x12\x04\xf5\x02\x02\x15\x1a\x1d\x20Tablet\x20End\ - \x20Key\x20(inclusive).\n\n\r\n\x05\x04\x05\x02\x05\x05\x12\x04\xf5\x02\ - \x02\x08\n\r\n\x05\x04\x05\x02\x05\x01\x12\x04\xf5\x02\t\x10\n\r\n\x05\ - \x04\x05\x02\x05\x03\x12\x04\xf5\x02\x13\x14\n\xb0\x02\n\x04\x04\x05\x02\ - \x06\x12\x04\xfb\x02\x02O\x1a\xa1\x02\x20Output\x20only.\x20The\x20avera\ - ge\x20CPU\x20usage\x20spent\x20by\x20a\x20node\x20on\x20this\x20tablet\ - \x20over\x20the\n\x20start_time\x20to\x20end_time\x20time\x20range.\x20T\ - he\x20percentage\x20is\x20the\x20amount\x20of\x20CPU\x20used\n\x20by\x20\ - the\x20node\x20to\x20serve\x20the\x20tablet,\x20from\x200%\x20(tablet\ - \x20was\x20not\x20interacted\x20with)\n\x20to\x20100%\x20(the\x20node\ - \x20spent\x20all\x20cycles\x20serving\x20the\x20hot\x20tablet).\n\n\r\n\ - \x05\x04\x05\x02\x06\x05\x12\x04\xfb\x02\x02\x07\n\r\n\x05\x04\x05\x02\ - \x06\x01\x12\x04\xfb\x02\x08\x1e\n\r\n\x05\x04\x05\x02\x06\x03\x12\x04\ - \xfb\x02!\"\n\r\n\x05\x04\x05\x02\x06\x08\x12\x04\xfb\x02#N\n\x10\n\x08\ - \x04\x05\x02\x06\x08\x9c\x08\0\x12\x04\xfb\x02$Mb\x06proto3\ + \x20set.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xc5\x01\x08\x16\nM\n\x04\ + \x04\x02\x02\x03\x12\x04\xc7\x01\x04@\x1a?\x20Use\x20a\x20multi-cluster\ + \x20routing\x20policy\x20that\x20may\x20pick\x20any\x20cluster.\n\n\r\n\ + \x05\x04\x02\x02\x03\x06\x12\x04\xc7\x01\x04\x1d\n\r\n\x05\x04\x02\x02\ + \x03\x01\x12\x04\xc7\x01\x1e;\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xc7\ + \x01>?\n4\n\x04\x04\x02\x02\x04\x12\x04\xca\x01\x044\x1a&\x20Use\x20a\ + \x20single-cluster\x20routing\x20policy.\n\n\r\n\x05\x04\x02\x02\x04\x06\ + \x12\x04\xca\x01\x04\x18\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\xca\x01\ + \x19/\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xca\x0123b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::common::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(5); + messages.push(Instance::generated_message_descriptor_data()); + messages.push(Cluster::generated_message_descriptor_data()); + messages.push(AppProfile::generated_message_descriptor_data()); + messages.push(app_profile::MultiClusterRoutingUseAny::generated_message_descriptor_data()); + messages.push(app_profile::SingleClusterRouting::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(3); + enums.push(instance::State::generated_enum_descriptor_data()); + enums.push(instance::Type::generated_enum_descriptor_data()); + enums.push(cluster::State::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/admin/v2/mod.rs b/googleapis-raw/src/bigtable/admin/v2/mod.rs index 4261ce9..e3e707d 100644 --- a/googleapis-raw/src/bigtable/admin/v2/mod.rs +++ b/googleapis-raw/src/bigtable/admin/v2/mod.rs @@ -1,10 +1,9 @@ // @generated - -use crate::{ +pub(crate) use crate::{ + api::annotations, empty, iam::v1::{iam_policy, policy}, longrunning::operations, - rpc::status, }; pub mod bigtable_instance_admin; diff --git a/googleapis-raw/src/bigtable/admin/v2/table.rs b/googleapis-raw/src/bigtable/admin/v2/table.rs index 28d80a0..ffdddf6 100644 --- a/googleapis-raw/src/bigtable/admin/v2/table.rs +++ b/googleapis-raw/src/bigtable/admin/v2/table.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,131 +16,142 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/bigtable/admin/v2/table.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] -pub struct RestoreInfo { +/// A collection of user data indexed by row, column, and timestamp. +/// Each table is served using the resources of its parent cluster. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.Table) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Table { // message fields - pub source_type: RestoreSourceType, - // message oneof groups - pub source_info: ::std::option::Option, + /// (`OutputOnly`) + /// The unique name of the table. Values are of the form + /// `projects//instances//tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + /// Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Table.name) + pub name: ::std::string::String, + /// (`OutputOnly`) + /// Map from cluster ID to per-cluster table state. + /// 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` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Table.cluster_states) + pub cluster_states: ::std::collections::HashMap<::std::string::String, table::ClusterState>, + /// (`CreationOnly`) + /// The column families configured for this table, mapped by column family ID. + /// Views: `SCHEMA_VIEW`, `FULL` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Table.column_families) + pub column_families: ::std::collections::HashMap<::std::string::String, ColumnFamily>, + /// (`CreationOnly`) + /// The granularity (i.e. `MILLIS`) at which timestamps are stored in + /// this table. Timestamps not matching the granularity will be rejected. + /// If unspecified at creation time, the value will be set to `MILLIS`. + /// Views: `SCHEMA_VIEW`, `FULL` + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Table.granularity) + pub granularity: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.Table.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreInfo { - fn default() -> &'a RestoreInfo { - ::default_instance() +impl<'a> ::std::default::Default for &'a Table { + fn default() -> &'a Table { +
::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreInfo_oneof_source_info { - backup_info(BackupInfo), -} - -impl RestoreInfo { - pub fn new() -> RestoreInfo { +impl Table { + pub fn new() -> Table { ::std::default::Default::default() } - // .google.bigtable.admin.v2.RestoreSourceType source_type = 1; - - - pub fn get_source_type(&self) -> RestoreSourceType { - self.source_type - } - pub fn clear_source_type(&mut self) { - self.source_type = RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_source_type(&mut self, v: RestoreSourceType) { - self.source_type = v; - } - - // .google.bigtable.admin.v2.BackupInfo backup_info = 2; - - - pub fn get_backup_info(&self) -> &BackupInfo { - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_backup_info(&mut self) { - self.source_info = ::std::option::Option::None; - } - - pub fn has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_backup_info(&mut self, v: BackupInfo) { - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(v)) - } - - // Mutable pointer to the field. - pub fn mut_backup_info(&mut self) -> &mut BackupInfo { - if let ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(_)) = self.source_info { - } else { - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(BackupInfo::new())); - } - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_backup_info(&mut self) -> BackupInfo { - if self.has_backup_info() { - match self.source_info.take() { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(v)) => v, - _ => panic!(), - } - } else { - BackupInfo::new() - } + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Table| { &m.name }, + |m: &mut Table| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "cluster_states", + |m: &Table| { &m.cluster_states }, + |m: &mut Table| { &mut m.cluster_states }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "column_families", + |m: &Table| { &m.column_families }, + |m: &mut Table| { &mut m.column_families }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "granularity", + |m: &Table| { &m.granularity }, + |m: &mut Table| { &mut m.granularity }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::
( + "Table", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RestoreInfo { +impl ::protobuf::Message for Table { + const NAME: &'static str = "Table"; + fn is_initialized(&self) -> bool { - if let Some(RestoreInfo_oneof_source_info::backup_info(ref v)) = self.source_info { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.source_type, 1, &mut self.unknown_fields)? - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.cluster_states.insert(key, value); + }, + 26 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; } - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(is.read_message()?)); + is.pop_limit(old_limit); + self.column_families.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 32 => { + self.granularity = is.read_enum_or_unknown()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -148,192 +160,518 @@ impl ::protobuf::Message for RestoreInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.source_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.source_type); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreInfo_oneof_source_info::backup_info(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + for (k, v) in &self.cluster_states { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + for (k, v) in &self.column_families { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if self.granularity != ::protobuf::EnumOrUnknown::new(table::TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.granularity.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.source_type != RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.source_type))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreInfo_oneof_source_info::backup_info(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + for (k, v) in &self.cluster_states { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + for (k, v) in &self.column_families { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(26)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + if self.granularity != ::protobuf::EnumOrUnknown::new(table::TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.granularity))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn new() -> Table { + Table::new() } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn clear(&mut self) { + self.name.clear(); + self.cluster_states.clear(); + self.column_families.clear(); + self.granularity = ::protobuf::EnumOrUnknown::new(table::TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED); + self.special_fields.clear(); } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) + fn default_instance() -> &'static Table { + static instance: ::protobuf::rt::Lazy
= ::protobuf::rt::Lazy::new(); + instance.get(Table::new) } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) +} + +impl ::protobuf::MessageFull for Table { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Table").unwrap()).clone() } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self +} + +impl ::std::fmt::Display for Table { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} + +impl ::protobuf::reflect::ProtobufValue for Table { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() +/// Nested message and enums of message `Table` +pub mod table { + /// The state of a table's data in a particular cluster. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.Table.ClusterState) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ClusterState { + // message fields + /// (`OutputOnly`) + /// The state of replication for the table in this cluster. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Table.ClusterState.replication_state) + pub replication_state: ::protobuf::EnumOrUnknown, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.Table.ClusterState.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn new() -> RestoreInfo { - RestoreInfo::new() + impl<'a> ::std::default::Default for &'a ClusterState { + fn default() -> &'a ClusterState { + ::default_instance() + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "source_type", - |m: &RestoreInfo| { &m.source_type }, - |m: &mut RestoreInfo| { &mut m.source_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, BackupInfo>( - "backup_info", - RestoreInfo::has_backup_info, - RestoreInfo::get_backup_info, + impl ClusterState { + pub fn new() -> ClusterState { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "replication_state", + |m: &ClusterState| { &m.replication_state }, + |m: &mut ClusterState| { &mut m.replication_state }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreInfo", + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Table.ClusterState", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static RestoreInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreInfo::new) + impl ::protobuf::Message for ClusterState { + const NAME: &'static str = "ClusterState"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.replication_state = is.read_enum_or_unknown()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.replication_state != ::protobuf::EnumOrUnknown::new(cluster_state::ReplicationState::STATE_NOT_KNOWN) { + my_size += ::protobuf::rt::int32_size(1, self.replication_state.value()); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.replication_state != ::protobuf::EnumOrUnknown::new(cluster_state::ReplicationState::STATE_NOT_KNOWN) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.replication_state))?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> ClusterState { + ClusterState::new() + } + + fn clear(&mut self) { + self.replication_state = ::protobuf::EnumOrUnknown::new(cluster_state::ReplicationState::STATE_NOT_KNOWN); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ClusterState { + static instance: ClusterState = ClusterState { + replication_state: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for RestoreInfo { - fn clear(&mut self) { - self.source_type = RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED; - self.source_info = ::std::option::Option::None; - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for ClusterState { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Table.ClusterState").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for RestoreInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for ClusterState { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for RestoreInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for ClusterState { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -#[derive(PartialEq,Clone,Default)] -pub struct ChangeStreamConfig { - // message fields - pub retention_period: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + /// Nested message and enums of message `ClusterState` + pub mod cluster_state { + /// Table replication states. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Table.ClusterState.ReplicationState) + pub enum ReplicationState { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.ClusterState.ReplicationState.STATE_NOT_KNOWN) + STATE_NOT_KNOWN = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.ClusterState.ReplicationState.INITIALIZING) + INITIALIZING = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.ClusterState.ReplicationState.PLANNED_MAINTENANCE) + PLANNED_MAINTENANCE = 2, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.ClusterState.ReplicationState.UNPLANNED_MAINTENANCE) + UNPLANNED_MAINTENANCE = 3, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.ClusterState.ReplicationState.READY) + READY = 4, + } + + impl ::protobuf::Enum for ReplicationState { + const NAME: &'static str = "ReplicationState"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ReplicationState::STATE_NOT_KNOWN), + 1 => ::std::option::Option::Some(ReplicationState::INITIALIZING), + 2 => ::std::option::Option::Some(ReplicationState::PLANNED_MAINTENANCE), + 3 => ::std::option::Option::Some(ReplicationState::UNPLANNED_MAINTENANCE), + 4 => ::std::option::Option::Some(ReplicationState::READY), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_NOT_KNOWN" => ::std::option::Option::Some(ReplicationState::STATE_NOT_KNOWN), + "INITIALIZING" => ::std::option::Option::Some(ReplicationState::INITIALIZING), + "PLANNED_MAINTENANCE" => ::std::option::Option::Some(ReplicationState::PLANNED_MAINTENANCE), + "UNPLANNED_MAINTENANCE" => ::std::option::Option::Some(ReplicationState::UNPLANNED_MAINTENANCE), + "READY" => ::std::option::Option::Some(ReplicationState::READY), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [ReplicationState] = &[ + ReplicationState::STATE_NOT_KNOWN, + ReplicationState::INITIALIZING, + ReplicationState::PLANNED_MAINTENANCE, + ReplicationState::UNPLANNED_MAINTENANCE, + ReplicationState::READY, + ]; + } + + impl ::protobuf::EnumFull for ReplicationState { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::super::file_descriptor().enum_by_package_relative_name("Table.ClusterState.ReplicationState").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } + + impl ::std::default::Default for ReplicationState { + fn default() -> Self { + ReplicationState::STATE_NOT_KNOWN + } + } -impl<'a> ::std::default::Default for &'a ChangeStreamConfig { - fn default() -> &'a ChangeStreamConfig { - ::default_instance() + impl ReplicationState { + pub(in super::super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Table.ClusterState.ReplicationState") + } + } } -} -impl ChangeStreamConfig { - pub fn new() -> ChangeStreamConfig { - ::std::default::Default::default() + /// Possible timestamp granularities to use when keeping multiple versions + /// of data in a table. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Table.TimestampGranularity) + pub enum TimestampGranularity { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.TimestampGranularity.TIMESTAMP_GRANULARITY_UNSPECIFIED) + TIMESTAMP_GRANULARITY_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.TimestampGranularity.MILLIS) + MILLIS = 1, + } + + impl ::protobuf::Enum for TimestampGranularity { + const NAME: &'static str = "TimestampGranularity"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED), + 1 => ::std::option::Option::Some(TimestampGranularity::MILLIS), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "TIMESTAMP_GRANULARITY_UNSPECIFIED" => ::std::option::Option::Some(TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED), + "MILLIS" => ::std::option::Option::Some(TimestampGranularity::MILLIS), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [TimestampGranularity] = &[ + TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED, + TimestampGranularity::MILLIS, + ]; } - // .google.protobuf.Duration retention_period = 1; + impl ::protobuf::EnumFull for TimestampGranularity { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Table.TimestampGranularity").unwrap()).clone() + } + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } - pub fn get_retention_period(&self) -> &::protobuf::well_known_types::Duration { - self.retention_period.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) + impl ::std::default::Default for TimestampGranularity { + fn default() -> Self { + TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED + } } - pub fn clear_retention_period(&mut self) { - self.retention_period.clear(); + + impl TimestampGranularity { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Table.TimestampGranularity") + } } - pub fn has_retention_period(&self) -> bool { - self.retention_period.is_some() + /// Defines a view over a table's fields. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Table.View) + pub enum View { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.View.VIEW_UNSPECIFIED) + VIEW_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.View.NAME_ONLY) + NAME_ONLY = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.View.SCHEMA_VIEW) + SCHEMA_VIEW = 2, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.View.REPLICATION_VIEW) + REPLICATION_VIEW = 3, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Table.View.FULL) + FULL = 4, } - // Param is passed by value, moved - pub fn set_retention_period(&mut self, v: ::protobuf::well_known_types::Duration) { - self.retention_period = ::protobuf::SingularPtrField::some(v); + impl ::protobuf::Enum for View { + const NAME: &'static str = "View"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(View::VIEW_UNSPECIFIED), + 1 => ::std::option::Option::Some(View::NAME_ONLY), + 2 => ::std::option::Option::Some(View::SCHEMA_VIEW), + 3 => ::std::option::Option::Some(View::REPLICATION_VIEW), + 4 => ::std::option::Option::Some(View::FULL), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "VIEW_UNSPECIFIED" => ::std::option::Option::Some(View::VIEW_UNSPECIFIED), + "NAME_ONLY" => ::std::option::Option::Some(View::NAME_ONLY), + "SCHEMA_VIEW" => ::std::option::Option::Some(View::SCHEMA_VIEW), + "REPLICATION_VIEW" => ::std::option::Option::Some(View::REPLICATION_VIEW), + "FULL" => ::std::option::Option::Some(View::FULL), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [View] = &[ + View::VIEW_UNSPECIFIED, + View::NAME_ONLY, + View::SCHEMA_VIEW, + View::REPLICATION_VIEW, + View::FULL, + ]; } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_retention_period(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.retention_period.is_none() { - self.retention_period.set_default(); + impl ::protobuf::EnumFull for View { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Table.View").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) } - self.retention_period.as_mut().unwrap() } - // Take field - pub fn take_retention_period(&mut self) -> ::protobuf::well_known_types::Duration { - self.retention_period.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) + impl ::std::default::Default for View { + fn default() -> Self { + View::VIEW_UNSPECIFIED + } + } + + impl View { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Table.View") + } + } +} + +/// A set of columns within a table which share a common configuration. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.ColumnFamily) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ColumnFamily { + // message fields + /// Garbage collection rule specified as a protobuf. + /// Must serialize to at most 500 bytes. + /// + /// NOTE: Garbage collection executes opportunistically in the background, and + /// so it's possible for reads to return a cell even if it matches the active + /// GC expression for its family. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.ColumnFamily.gc_rule) + pub gc_rule: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.ColumnFamily.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ColumnFamily { + fn default() -> &'a ColumnFamily { + ::default_instance() + } +} + +impl ColumnFamily { + pub fn new() -> ColumnFamily { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, GcRule>( + "gc_rule", + |m: &ColumnFamily| { &m.gc_rule }, + |m: &mut ColumnFamily| { &mut m.gc_rule }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ColumnFamily", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ChangeStreamConfig { +impl ::protobuf::Message for ColumnFamily { + const NAME: &'static str = "ColumnFamily"; + fn is_initialized(&self) -> bool { - for v in &self.retention_period { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retention_period)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.gc_rule)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -342,3377 +680,849 @@ impl ::protobuf::Message for ChangeStreamConfig { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.retention_period.as_ref() { + if let Some(v) = self.gc_rule.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.retention_period.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.gc_rule.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ChangeStreamConfig { - ChangeStreamConfig::new() + fn new() -> ColumnFamily { + ColumnFamily::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "retention_period", - |m: &ChangeStreamConfig| { &m.retention_period }, - |m: &mut ChangeStreamConfig| { &mut m.retention_period }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ChangeStreamConfig", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.gc_rule.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ChangeStreamConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ChangeStreamConfig::new) + fn default_instance() -> &'static ColumnFamily { + static instance: ColumnFamily = ColumnFamily { + gc_rule: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ChangeStreamConfig { - fn clear(&mut self) { - self.retention_period.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ColumnFamily { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ColumnFamily").unwrap()).clone() } } -impl ::std::fmt::Debug for ChangeStreamConfig { +impl ::std::fmt::Display for ColumnFamily { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ChangeStreamConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ColumnFamily { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Table { - // message fields - pub name: ::std::string::String, - pub cluster_states: ::std::collections::HashMap<::std::string::String, Table_ClusterState>, - pub column_families: ::std::collections::HashMap<::std::string::String, ColumnFamily>, - pub granularity: Table_TimestampGranularity, - pub restore_info: ::protobuf::SingularPtrField, - pub change_stream_config: ::protobuf::SingularPtrField, - pub deletion_protection: bool, +/// Rule for determining which cells to delete during garbage collection. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.GcRule) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GcRule { + // message oneof groups + pub rule: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GcRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a Table { - fn default() -> &'a Table { -
::default_instance() +impl<'a> ::std::default::Default for &'a GcRule { + fn default() -> &'a GcRule { + ::default_instance() } } -impl Table { - pub fn new() -> Table { +impl GcRule { + pub fn new() -> GcRule { ::std::default::Default::default() } - // string name = 1; - + // int32 max_num_versions = 1; - pub fn get_name(&self) -> &str { - &self.name + pub fn max_num_versions(&self) -> i32 { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::MaxNumVersions(v)) => v, + _ => 0, + } } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.bigtable.admin.v2.Table.ClusterStatesEntry cluster_states = 2; - - - pub fn get_cluster_states(&self) -> &::std::collections::HashMap<::std::string::String, Table_ClusterState> { - &self.cluster_states - } - pub fn clear_cluster_states(&mut self) { - self.cluster_states.clear(); - } - - // Param is passed by value, moved - pub fn set_cluster_states(&mut self, v: ::std::collections::HashMap<::std::string::String, Table_ClusterState>) { - self.cluster_states = v; - } - - // Mutable pointer to the field. - pub fn mut_cluster_states(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Table_ClusterState> { - &mut self.cluster_states - } - - // Take field - pub fn take_cluster_states(&mut self) -> ::std::collections::HashMap<::std::string::String, Table_ClusterState> { - ::std::mem::replace(&mut self.cluster_states, ::std::collections::HashMap::new()) - } - - // repeated .google.bigtable.admin.v2.Table.ColumnFamiliesEntry column_families = 3; - - - pub fn get_column_families(&self) -> &::std::collections::HashMap<::std::string::String, ColumnFamily> { - &self.column_families - } - pub fn clear_column_families(&mut self) { - self.column_families.clear(); - } - - // Param is passed by value, moved - pub fn set_column_families(&mut self, v: ::std::collections::HashMap<::std::string::String, ColumnFamily>) { - self.column_families = v; - } - - // Mutable pointer to the field. - pub fn mut_column_families(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ColumnFamily> { - &mut self.column_families - } - - // Take field - pub fn take_column_families(&mut self) -> ::std::collections::HashMap<::std::string::String, ColumnFamily> { - ::std::mem::replace(&mut self.column_families, ::std::collections::HashMap::new()) - } - - // .google.bigtable.admin.v2.Table.TimestampGranularity granularity = 4; - - - pub fn get_granularity(&self) -> Table_TimestampGranularity { - self.granularity - } - pub fn clear_granularity(&mut self) { - self.granularity = Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_granularity(&mut self, v: Table_TimestampGranularity) { - self.granularity = v; - } - - // .google.bigtable.admin.v2.RestoreInfo restore_info = 6; - - - pub fn get_restore_info(&self) -> &RestoreInfo { - self.restore_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_restore_info(&mut self) { - self.restore_info.clear(); - } - - pub fn has_restore_info(&self) -> bool { - self.restore_info.is_some() - } - - // Param is passed by value, moved - pub fn set_restore_info(&mut self, v: RestoreInfo) { - self.restore_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_restore_info(&mut self) -> &mut RestoreInfo { - if self.restore_info.is_none() { - self.restore_info.set_default(); - } - self.restore_info.as_mut().unwrap() - } - - // Take field - pub fn take_restore_info(&mut self) -> RestoreInfo { - self.restore_info.take().unwrap_or_else(|| RestoreInfo::new()) - } - - // .google.bigtable.admin.v2.ChangeStreamConfig change_stream_config = 8; - - - pub fn get_change_stream_config(&self) -> &ChangeStreamConfig { - self.change_stream_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_change_stream_config(&mut self) { - self.change_stream_config.clear(); - } - - pub fn has_change_stream_config(&self) -> bool { - self.change_stream_config.is_some() - } - - // Param is passed by value, moved - pub fn set_change_stream_config(&mut self, v: ChangeStreamConfig) { - self.change_stream_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_change_stream_config(&mut self) -> &mut ChangeStreamConfig { - if self.change_stream_config.is_none() { - self.change_stream_config.set_default(); - } - self.change_stream_config.as_mut().unwrap() - } - - // Take field - pub fn take_change_stream_config(&mut self) -> ChangeStreamConfig { - self.change_stream_config.take().unwrap_or_else(|| ChangeStreamConfig::new()) - } - - // bool deletion_protection = 9; - - - pub fn get_deletion_protection(&self) -> bool { - self.deletion_protection - } - pub fn clear_deletion_protection(&mut self) { - self.deletion_protection = false; - } - - // Param is passed by value, moved - pub fn set_deletion_protection(&mut self, v: bool) { - self.deletion_protection = v; - } -} - -impl ::protobuf::Message for Table { - fn is_initialized(&self) -> bool { - for v in &self.restore_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.change_stream_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.cluster_states)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.column_families)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.granularity, 4, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.restore_info)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.change_stream_config)?; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.deletion_protection = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.cluster_states); - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.column_families); - if self.granularity != Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.granularity); - } - if let Some(ref v) = self.restore_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.change_stream_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.deletion_protection != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.cluster_states, os)?; - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.column_families, os)?; - if self.granularity != Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.granularity))?; - } - if let Some(ref v) = self.restore_info.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.change_stream_config.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.deletion_protection != false { - os.write_bool(9, self.deletion_protection)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Table { - Table::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Table| { &m.name }, - |m: &mut Table| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "cluster_states", - |m: &Table| { &m.cluster_states }, - |m: &mut Table| { &mut m.cluster_states }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "column_families", - |m: &Table| { &m.column_families }, - |m: &mut Table| { &mut m.column_families }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "granularity", - |m: &Table| { &m.granularity }, - |m: &mut Table| { &mut m.granularity }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "restore_info", - |m: &Table| { &m.restore_info }, - |m: &mut Table| { &mut m.restore_info }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "change_stream_config", - |m: &Table| { &m.change_stream_config }, - |m: &mut Table| { &mut m.change_stream_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "deletion_protection", - |m: &Table| { &m.deletion_protection }, - |m: &mut Table| { &mut m.deletion_protection }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::
( - "Table", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Table { - static instance: ::protobuf::rt::LazyV2
= ::protobuf::rt::LazyV2::INIT; - instance.get(Table::new) - } -} - -impl ::protobuf::Clear for Table { - fn clear(&mut self) { - self.name.clear(); - self.cluster_states.clear(); - self.column_families.clear(); - self.granularity = Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED; - self.restore_info.clear(); - self.change_stream_config.clear(); - self.deletion_protection = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Table { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Table { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Table_ClusterState { - // message fields - pub replication_state: Table_ClusterState_ReplicationState, - pub encryption_info: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Table_ClusterState { - fn default() -> &'a Table_ClusterState { - ::default_instance() - } -} - -impl Table_ClusterState { - pub fn new() -> Table_ClusterState { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.Table.ClusterState.ReplicationState replication_state = 1; - - - pub fn get_replication_state(&self) -> Table_ClusterState_ReplicationState { - self.replication_state - } - pub fn clear_replication_state(&mut self) { - self.replication_state = Table_ClusterState_ReplicationState::STATE_NOT_KNOWN; - } - - // Param is passed by value, moved - pub fn set_replication_state(&mut self, v: Table_ClusterState_ReplicationState) { - self.replication_state = v; - } - - // repeated .google.bigtable.admin.v2.EncryptionInfo encryption_info = 2; - - - pub fn get_encryption_info(&self) -> &[EncryptionInfo] { - &self.encryption_info - } - pub fn clear_encryption_info(&mut self) { - self.encryption_info.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: ::protobuf::RepeatedField) { - self.encryption_info = v; - } - - // Mutable pointer to the field. - pub fn mut_encryption_info(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.encryption_info - } - - // Take field - pub fn take_encryption_info(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.encryption_info, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Table_ClusterState { - fn is_initialized(&self) -> bool { - for v in &self.encryption_info { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.replication_state, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.encryption_info)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.replication_state != Table_ClusterState_ReplicationState::STATE_NOT_KNOWN { - my_size += ::protobuf::rt::enum_size(1, self.replication_state); - } - for value in &self.encryption_info { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.replication_state != Table_ClusterState_ReplicationState::STATE_NOT_KNOWN { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.replication_state))?; - } - for v in &self.encryption_info { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Table_ClusterState { - Table_ClusterState::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "replication_state", - |m: &Table_ClusterState| { &m.replication_state }, - |m: &mut Table_ClusterState| { &mut m.replication_state }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_info", - |m: &Table_ClusterState| { &m.encryption_info }, - |m: &mut Table_ClusterState| { &mut m.encryption_info }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Table.ClusterState", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Table_ClusterState { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Table_ClusterState::new) - } -} - -impl ::protobuf::Clear for Table_ClusterState { - fn clear(&mut self) { - self.replication_state = Table_ClusterState_ReplicationState::STATE_NOT_KNOWN; - self.encryption_info.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Table_ClusterState { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Table_ClusterState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Table_ClusterState_ReplicationState { - STATE_NOT_KNOWN = 0, - INITIALIZING = 1, - PLANNED_MAINTENANCE = 2, - UNPLANNED_MAINTENANCE = 3, - READY = 4, - READY_OPTIMIZING = 5, -} - -impl ::protobuf::ProtobufEnum for Table_ClusterState_ReplicationState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::STATE_NOT_KNOWN), - 1 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::INITIALIZING), - 2 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::PLANNED_MAINTENANCE), - 3 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::UNPLANNED_MAINTENANCE), - 4 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::READY), - 5 => ::std::option::Option::Some(Table_ClusterState_ReplicationState::READY_OPTIMIZING), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Table_ClusterState_ReplicationState] = &[ - Table_ClusterState_ReplicationState::STATE_NOT_KNOWN, - Table_ClusterState_ReplicationState::INITIALIZING, - Table_ClusterState_ReplicationState::PLANNED_MAINTENANCE, - Table_ClusterState_ReplicationState::UNPLANNED_MAINTENANCE, - Table_ClusterState_ReplicationState::READY, - Table_ClusterState_ReplicationState::READY_OPTIMIZING, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Table.ClusterState.ReplicationState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Table_ClusterState_ReplicationState { -} - -impl ::std::default::Default for Table_ClusterState_ReplicationState { - fn default() -> Self { - Table_ClusterState_ReplicationState::STATE_NOT_KNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for Table_ClusterState_ReplicationState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Table_TimestampGranularity { - TIMESTAMP_GRANULARITY_UNSPECIFIED = 0, - MILLIS = 1, -} - -impl ::protobuf::ProtobufEnum for Table_TimestampGranularity { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED), - 1 => ::std::option::Option::Some(Table_TimestampGranularity::MILLIS), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Table_TimestampGranularity] = &[ - Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED, - Table_TimestampGranularity::MILLIS, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Table.TimestampGranularity", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Table_TimestampGranularity { -} - -impl ::std::default::Default for Table_TimestampGranularity { - fn default() -> Self { - Table_TimestampGranularity::TIMESTAMP_GRANULARITY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Table_TimestampGranularity { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Table_View { - VIEW_UNSPECIFIED = 0, - NAME_ONLY = 1, - SCHEMA_VIEW = 2, - REPLICATION_VIEW = 3, - ENCRYPTION_VIEW = 5, - FULL = 4, -} - -impl ::protobuf::ProtobufEnum for Table_View { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Table_View::VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(Table_View::NAME_ONLY), - 2 => ::std::option::Option::Some(Table_View::SCHEMA_VIEW), - 3 => ::std::option::Option::Some(Table_View::REPLICATION_VIEW), - 5 => ::std::option::Option::Some(Table_View::ENCRYPTION_VIEW), - 4 => ::std::option::Option::Some(Table_View::FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Table_View] = &[ - Table_View::VIEW_UNSPECIFIED, - Table_View::NAME_ONLY, - Table_View::SCHEMA_VIEW, - Table_View::REPLICATION_VIEW, - Table_View::ENCRYPTION_VIEW, - Table_View::FULL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Table.View", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Table_View { -} - -impl ::std::default::Default for Table_View { - fn default() -> Self { - Table_View::VIEW_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Table_View { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ColumnFamily { - // message fields - pub gc_rule: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ColumnFamily { - fn default() -> &'a ColumnFamily { - ::default_instance() - } -} - -impl ColumnFamily { - pub fn new() -> ColumnFamily { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.GcRule gc_rule = 1; - - - pub fn get_gc_rule(&self) -> &GcRule { - self.gc_rule.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_gc_rule(&mut self) { - self.gc_rule.clear(); - } - - pub fn has_gc_rule(&self) -> bool { - self.gc_rule.is_some() - } - - // Param is passed by value, moved - pub fn set_gc_rule(&mut self, v: GcRule) { - self.gc_rule = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gc_rule(&mut self) -> &mut GcRule { - if self.gc_rule.is_none() { - self.gc_rule.set_default(); - } - self.gc_rule.as_mut().unwrap() - } - - // Take field - pub fn take_gc_rule(&mut self) -> GcRule { - self.gc_rule.take().unwrap_or_else(|| GcRule::new()) - } -} - -impl ::protobuf::Message for ColumnFamily { - fn is_initialized(&self) -> bool { - for v in &self.gc_rule { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.gc_rule)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.gc_rule.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.gc_rule.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ColumnFamily { - ColumnFamily::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "gc_rule", - |m: &ColumnFamily| { &m.gc_rule }, - |m: &mut ColumnFamily| { &mut m.gc_rule }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ColumnFamily", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ColumnFamily { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ColumnFamily::new) - } -} - -impl ::protobuf::Clear for ColumnFamily { - fn clear(&mut self) { - self.gc_rule.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ColumnFamily { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ColumnFamily { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcRule { - // message oneof groups - pub rule: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcRule { - fn default() -> &'a GcRule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum GcRule_oneof_rule { - max_num_versions(i32), - max_age(::protobuf::well_known_types::Duration), - intersection(GcRule_Intersection), - union(GcRule_Union), -} - -impl GcRule { - pub fn new() -> GcRule { - ::std::default::Default::default() - } - - // int32 max_num_versions = 1; - - - pub fn get_max_num_versions(&self) -> i32 { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::max_num_versions(v)) => v, - _ => 0, - } - } - pub fn clear_max_num_versions(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_max_num_versions(&self) -> bool { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::max_num_versions(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_max_num_versions(&mut self, v: i32) { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::max_num_versions(v)) - } - - // .google.protobuf.Duration max_age = 2; - - - pub fn get_max_age(&self) -> &::protobuf::well_known_types::Duration { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::max_age(ref v)) => v, - _ => <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance(), - } - } - pub fn clear_max_age(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_max_age(&self) -> bool { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::max_age(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_max_age(&mut self, v: ::protobuf::well_known_types::Duration) { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::max_age(v)) - } - - // Mutable pointer to the field. - pub fn mut_max_age(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if let ::std::option::Option::Some(GcRule_oneof_rule::max_age(_)) = self.rule { - } else { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::max_age(::protobuf::well_known_types::Duration::new())); - } - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::max_age(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_max_age(&mut self) -> ::protobuf::well_known_types::Duration { - if self.has_max_age() { - match self.rule.take() { - ::std::option::Option::Some(GcRule_oneof_rule::max_age(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Duration::new() - } - } - - // .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; - - - pub fn get_intersection(&self) -> &GcRule_Intersection { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::intersection(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_intersection(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_intersection(&self) -> bool { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::intersection(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_intersection(&mut self, v: GcRule_Intersection) { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::intersection(v)) - } - - // Mutable pointer to the field. - pub fn mut_intersection(&mut self) -> &mut GcRule_Intersection { - if let ::std::option::Option::Some(GcRule_oneof_rule::intersection(_)) = self.rule { - } else { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::intersection(GcRule_Intersection::new())); - } - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::intersection(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_intersection(&mut self) -> GcRule_Intersection { - if self.has_intersection() { - match self.rule.take() { - ::std::option::Option::Some(GcRule_oneof_rule::intersection(v)) => v, - _ => panic!(), - } - } else { - GcRule_Intersection::new() - } - } - - // .google.bigtable.admin.v2.GcRule.Union union = 4; - - - pub fn get_union(&self) -> &GcRule_Union { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::union(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_union(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_union(&self) -> bool { - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::union(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_union(&mut self, v: GcRule_Union) { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::union(v)) - } - - // Mutable pointer to the field. - pub fn mut_union(&mut self) -> &mut GcRule_Union { - if let ::std::option::Option::Some(GcRule_oneof_rule::union(_)) = self.rule { - } else { - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::union(GcRule_Union::new())); - } - match self.rule { - ::std::option::Option::Some(GcRule_oneof_rule::union(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_union(&mut self) -> GcRule_Union { - if self.has_union() { - match self.rule.take() { - ::std::option::Option::Some(GcRule_oneof_rule::union(v)) => v, - _ => panic!(), - } - } else { - GcRule_Union::new() - } - } -} - -impl ::protobuf::Message for GcRule { - fn is_initialized(&self) -> bool { - if let Some(GcRule_oneof_rule::max_age(ref v)) = self.rule { - if !v.is_initialized() { - return false; - } - } - if let Some(GcRule_oneof_rule::intersection(ref v)) = self.rule { - if !v.is_initialized() { - return false; - } - } - if let Some(GcRule_oneof_rule::union(ref v)) = self.rule { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::max_num_versions(is.read_int32()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::max_age(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::intersection(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(GcRule_oneof_rule::union(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.rule { - match v { - &GcRule_oneof_rule::max_num_versions(v) => { - my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); - }, - &GcRule_oneof_rule::max_age(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &GcRule_oneof_rule::intersection(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &GcRule_oneof_rule::union(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.rule { - match v { - &GcRule_oneof_rule::max_num_versions(v) => { - os.write_int32(1, v)?; - }, - &GcRule_oneof_rule::max_age(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &GcRule_oneof_rule::intersection(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &GcRule_oneof_rule::union(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcRule { - GcRule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "max_num_versions", - GcRule::has_max_num_versions, - GcRule::get_max_num_versions, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Duration>( - "max_age", - GcRule::has_max_age, - GcRule::get_max_age, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcRule_Intersection>( - "intersection", - GcRule::has_intersection, - GcRule::get_intersection, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcRule_Union>( - "union", - GcRule::has_union, - GcRule::get_union, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcRule::new) - } -} - -impl ::protobuf::Clear for GcRule { - fn clear(&mut self) { - self.rule = ::std::option::Option::None; - self.rule = ::std::option::Option::None; - self.rule = ::std::option::Option::None; - self.rule = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcRule_Intersection { - // message fields - pub rules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcRule_Intersection { - fn default() -> &'a GcRule_Intersection { - ::default_instance() - } -} - -impl GcRule_Intersection { - pub fn new() -> GcRule_Intersection { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.v2.GcRule rules = 1; - - - pub fn get_rules(&self) -> &[GcRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for GcRule_Intersection { - fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcRule_Intersection { - GcRule_Intersection::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &GcRule_Intersection| { &m.rules }, - |m: &mut GcRule_Intersection| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcRule.Intersection", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcRule_Intersection { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcRule_Intersection::new) - } -} - -impl ::protobuf::Clear for GcRule_Intersection { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcRule_Intersection { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcRule_Intersection { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcRule_Union { - // message fields - pub rules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcRule_Union { - fn default() -> &'a GcRule_Union { - ::default_instance() - } -} - -impl GcRule_Union { - pub fn new() -> GcRule_Union { - ::std::default::Default::default() - } - - // repeated .google.bigtable.admin.v2.GcRule rules = 1; - - - pub fn get_rules(&self) -> &[GcRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for GcRule_Union { - fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.rules { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcRule_Union { - GcRule_Union::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &GcRule_Union| { &m.rules }, - |m: &mut GcRule_Union| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcRule.Union", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcRule_Union { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcRule_Union::new) - } -} - -impl ::protobuf::Clear for GcRule_Union { - fn clear(&mut self) { - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcRule_Union { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcRule_Union { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EncryptionInfo { - // message fields - pub encryption_type: EncryptionInfo_EncryptionType, - pub encryption_status: ::protobuf::SingularPtrField, - pub kms_key_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EncryptionInfo { - fn default() -> &'a EncryptionInfo { - ::default_instance() - } -} - -impl EncryptionInfo { - pub fn new() -> EncryptionInfo { - ::std::default::Default::default() - } - - // .google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3; - - - pub fn get_encryption_type(&self) -> EncryptionInfo_EncryptionType { - self.encryption_type - } - pub fn clear_encryption_type(&mut self) { - self.encryption_type = EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encryption_type(&mut self, v: EncryptionInfo_EncryptionType) { - self.encryption_type = v; - } - - // .google.rpc.Status encryption_status = 4; - - - pub fn get_encryption_status(&self) -> &super::status::Status { - self.encryption_status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_status(&mut self) { - self.encryption_status.clear(); - } - - pub fn has_encryption_status(&self) -> bool { - self.encryption_status.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_status(&mut self, v: super::status::Status) { - self.encryption_status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_status(&mut self) -> &mut super::status::Status { - if self.encryption_status.is_none() { - self.encryption_status.set_default(); - } - self.encryption_status.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_status(&mut self) -> super::status::Status { - self.encryption_status.take().unwrap_or_else(|| super::status::Status::new()) - } - - // string kms_key_version = 2; - - - pub fn get_kms_key_version(&self) -> &str { - &self.kms_key_version - } - pub fn clear_kms_key_version(&mut self) { - self.kms_key_version.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_version(&mut self, v: ::std::string::String) { - self.kms_key_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_version(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_version - } - - // Take field - pub fn take_kms_key_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for EncryptionInfo { - fn is_initialized(&self) -> bool { - for v in &self.encryption_status { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_status)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.encryption_type != EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.encryption_type); - } - if let Some(ref v) = self.encryption_status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.kms_key_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.encryption_type != EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.encryption_type))?; - } - if let Some(ref v) = self.encryption_status.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.kms_key_version.is_empty() { - os.write_string(2, &self.kms_key_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> EncryptionInfo { - EncryptionInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encryption_type", - |m: &EncryptionInfo| { &m.encryption_type }, - |m: &mut EncryptionInfo| { &mut m.encryption_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_status", - |m: &EncryptionInfo| { &m.encryption_status }, - |m: &mut EncryptionInfo| { &mut m.encryption_status }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_version", - |m: &EncryptionInfo| { &m.kms_key_version }, - |m: &mut EncryptionInfo| { &mut m.kms_key_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EncryptionInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static EncryptionInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EncryptionInfo::new) - } -} - -impl ::protobuf::Clear for EncryptionInfo { - fn clear(&mut self) { - self.encryption_type = EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - self.encryption_status.clear(); - self.kms_key_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EncryptionInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for EncryptionInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum EncryptionInfo_EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - GOOGLE_DEFAULT_ENCRYPTION = 1, - CUSTOMER_MANAGED_ENCRYPTION = 2, -} - -impl ::protobuf::ProtobufEnum for EncryptionInfo_EncryptionType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(EncryptionInfo_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION), - 2 => ::std::option::Option::Some(EncryptionInfo_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [EncryptionInfo_EncryptionType] = &[ - EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED, - EncryptionInfo_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION, - EncryptionInfo_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("EncryptionInfo.EncryptionType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for EncryptionInfo_EncryptionType { -} - -impl ::std::default::Default for EncryptionInfo_EncryptionType { - fn default() -> Self { - EncryptionInfo_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for EncryptionInfo_EncryptionType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Snapshot { - // message fields - pub name: ::std::string::String, - pub source_table: ::protobuf::SingularPtrField
, - pub data_size_bytes: i64, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub delete_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub state: Snapshot_State, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Snapshot { - fn default() -> &'a Snapshot { - ::default_instance() - } -} - -impl Snapshot { - pub fn new() -> Snapshot { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.bigtable.admin.v2.Table source_table = 2; - - - pub fn get_source_table(&self) -> &Table { - self.source_table.as_ref().unwrap_or_else(||
::default_instance()) - } - pub fn clear_source_table(&mut self) { - self.source_table.clear(); - } - - pub fn has_source_table(&self) -> bool { - self.source_table.is_some() - } - - // Param is passed by value, moved - pub fn set_source_table(&mut self, v: Table) { - self.source_table = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_table(&mut self) -> &mut Table { - if self.source_table.is_none() { - self.source_table.set_default(); - } - self.source_table.as_mut().unwrap() - } - - // Take field - pub fn take_source_table(&mut self) -> Table { - self.source_table.take().unwrap_or_else(|| Table::new()) - } - - // int64 data_size_bytes = 3; - - - pub fn get_data_size_bytes(&self) -> i64 { - self.data_size_bytes - } - pub fn clear_data_size_bytes(&mut self) { - self.data_size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_data_size_bytes(&mut self, v: i64) { - self.data_size_bytes = v; - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp delete_time = 5; - - - pub fn get_delete_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.delete_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_delete_time(&mut self) { - self.delete_time.clear(); - } - - pub fn has_delete_time(&self) -> bool { - self.delete_time.is_some() - } - - // Param is passed by value, moved - pub fn set_delete_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.delete_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_delete_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.delete_time.is_none() { - self.delete_time.set_default(); - } - self.delete_time.as_mut().unwrap() - } - - // Take field - pub fn take_delete_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.delete_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.bigtable.admin.v2.Snapshot.State state = 6; - - - pub fn get_state(&self) -> Snapshot_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Snapshot_State::STATE_NOT_KNOWN; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Snapshot_State) { - self.state = v; - } - - // string description = 7; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Snapshot { - fn is_initialized(&self) -> bool { - for v in &self.source_table { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.delete_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_table)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.data_size_bytes = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.delete_time)?; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.source_table.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.data_size_bytes != 0 { - my_size += ::protobuf::rt::value_size(3, self.data_size_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.delete_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.state != Snapshot_State::STATE_NOT_KNOWN { - my_size += ::protobuf::rt::enum_size(6, self.state); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.description); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.source_table.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.data_size_bytes != 0 { - os.write_int64(3, self.data_size_bytes)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.delete_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.state != Snapshot_State::STATE_NOT_KNOWN { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.description.is_empty() { - os.write_string(7, &self.description)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Snapshot { - Snapshot::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Snapshot| { &m.name }, - |m: &mut Snapshot| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage
>( - "source_table", - |m: &Snapshot| { &m.source_table }, - |m: &mut Snapshot| { &mut m.source_table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "data_size_bytes", - |m: &Snapshot| { &m.data_size_bytes }, - |m: &mut Snapshot| { &mut m.data_size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Snapshot| { &m.create_time }, - |m: &mut Snapshot| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "delete_time", - |m: &Snapshot| { &m.delete_time }, - |m: &mut Snapshot| { &mut m.delete_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Snapshot| { &m.state }, - |m: &mut Snapshot| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Snapshot| { &m.description }, - |m: &mut Snapshot| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Snapshot", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Snapshot { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Snapshot::new) - } -} - -impl ::protobuf::Clear for Snapshot { - fn clear(&mut self) { - self.name.clear(); - self.source_table.clear(); - self.data_size_bytes = 0; - self.create_time.clear(); - self.delete_time.clear(); - self.state = Snapshot_State::STATE_NOT_KNOWN; - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Snapshot { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Snapshot { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Snapshot_State { - STATE_NOT_KNOWN = 0, - READY = 1, - CREATING = 2, -} - -impl ::protobuf::ProtobufEnum for Snapshot_State { - fn value(&self) -> i32 { - *self as i32 + pub fn clear_max_num_versions(&mut self) { + self.rule = ::std::option::Option::None; } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Snapshot_State::STATE_NOT_KNOWN), - 1 => ::std::option::Option::Some(Snapshot_State::READY), - 2 => ::std::option::Option::Some(Snapshot_State::CREATING), - _ => ::std::option::Option::None + pub fn has_max_num_versions(&self) -> bool { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::MaxNumVersions(..)) => true, + _ => false, } } - fn values() -> &'static [Self] { - static values: &'static [Snapshot_State] = &[ - Snapshot_State::STATE_NOT_KNOWN, - Snapshot_State::READY, - Snapshot_State::CREATING, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Snapshot.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Snapshot_State { -} - -impl ::std::default::Default for Snapshot_State { - fn default() -> Self { - Snapshot_State::STATE_NOT_KNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for Snapshot_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Backup { - // message fields - pub name: ::std::string::String, - pub source_table: ::std::string::String, - pub source_backup: ::std::string::String, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub size_bytes: i64, - pub state: Backup_State, - pub encryption_info: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Backup { - fn default() -> &'a Backup { - ::default_instance() - } -} - -impl Backup { - pub fn new() -> Backup { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string source_table = 2; - - - pub fn get_source_table(&self) -> &str { - &self.source_table - } - pub fn clear_source_table(&mut self) { - self.source_table.clear(); - } - - // Param is passed by value, moved - pub fn set_source_table(&mut self, v: ::std::string::String) { - self.source_table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_table(&mut self) -> &mut ::std::string::String { - &mut self.source_table - } - - // Take field - pub fn take_source_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_table, ::std::string::String::new()) - } - - // string source_backup = 10; - - - pub fn get_source_backup(&self) -> &str { - &self.source_backup - } - pub fn clear_source_backup(&mut self) { - self.source_backup.clear(); - } - // Param is passed by value, moved - pub fn set_source_backup(&mut self, v: ::std::string::String) { - self.source_backup = v; + pub fn set_max_num_versions(&mut self, v: i32) { + self.rule = ::std::option::Option::Some(gc_rule::Rule::MaxNumVersions(v)) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup(&mut self) -> &mut ::std::string::String { - &mut self.source_backup - } + // .google.protobuf.Duration max_age = 2; - // Take field - pub fn take_source_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_backup, ::std::string::String::new()) + pub fn max_age(&self) -> &::protobuf::well_known_types::duration::Duration { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::MaxAge(ref v)) => v, + _ => <::protobuf::well_known_types::duration::Duration as ::protobuf::Message>::default_instance(), + } } - // .google.protobuf.Timestamp expire_time = 3; - - - pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expire_time(&mut self) { - self.expire_time.clear(); + pub fn clear_max_age(&mut self) { + self.rule = ::std::option::Option::None; } - pub fn has_expire_time(&self) -> bool { - self.expire_time.is_some() + pub fn has_max_age(&self) -> bool { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::MaxAge(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expire_time = ::protobuf::SingularPtrField::some(v); + pub fn set_max_age(&mut self, v: ::protobuf::well_known_types::duration::Duration) { + self.rule = ::std::option::Option::Some(gc_rule::Rule::MaxAge(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expire_time.is_none() { - self.expire_time.set_default(); + pub fn mut_max_age(&mut self) -> &mut ::protobuf::well_known_types::duration::Duration { + if let ::std::option::Option::Some(gc_rule::Rule::MaxAge(_)) = self.rule { + } else { + self.rule = ::std::option::Option::Some(gc_rule::Rule::MaxAge(::protobuf::well_known_types::duration::Duration::new())); + } + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::MaxAge(ref mut v)) => v, + _ => panic!(), } - self.expire_time.as_mut().unwrap() } // Take field - pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp start_time = 4; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + pub fn take_max_age(&mut self) -> ::protobuf::well_known_types::duration::Duration { + if self.has_max_age() { + match self.rule.take() { + ::std::option::Option::Some(gc_rule::Rule::MaxAge(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::duration::Duration::new() + } } - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } + // .google.bigtable.admin.v2.GcRule.Intersection intersection = 3; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + pub fn intersection(&self) -> &gc_rule::Intersection { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Intersection(ref v)) => v, + _ => ::default_instance(), } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) } - // .google.protobuf.Timestamp end_time = 5; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); + pub fn clear_intersection(&mut self) { + self.rule = ::std::option::Option::None; } - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() + pub fn has_intersection(&self) -> bool { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Intersection(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); + pub fn set_intersection(&mut self, v: gc_rule::Intersection) { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Intersection(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); + pub fn mut_intersection(&mut self) -> &mut gc_rule::Intersection { + if let ::std::option::Option::Some(gc_rule::Rule::Intersection(_)) = self.rule { + } else { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Intersection(gc_rule::Intersection::new())); + } + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Intersection(ref mut v)) => v, + _ => panic!(), } - self.end_time.as_mut().unwrap() } // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // int64 size_bytes = 6; - - - pub fn get_size_bytes(&self) -> i64 { - self.size_bytes - } - pub fn clear_size_bytes(&mut self) { - self.size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_size_bytes(&mut self, v: i64) { - self.size_bytes = v; + pub fn take_intersection(&mut self) -> gc_rule::Intersection { + if self.has_intersection() { + match self.rule.take() { + ::std::option::Option::Some(gc_rule::Rule::Intersection(v)) => v, + _ => panic!(), + } + } else { + gc_rule::Intersection::new() + } } - // .google.bigtable.admin.v2.Backup.State state = 7; - - - pub fn get_state(&self) -> Backup_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Backup_State::STATE_UNSPECIFIED; - } + // .google.bigtable.admin.v2.GcRule.Union union = 4; - // Param is passed by value, moved - pub fn set_state(&mut self, v: Backup_State) { - self.state = v; + pub fn union(&self) -> &gc_rule::Union { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Union(ref v)) => v, + _ => ::default_instance(), + } } - // .google.bigtable.admin.v2.EncryptionInfo encryption_info = 9; - - - pub fn get_encryption_info(&self) -> &EncryptionInfo { - self.encryption_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_info(&mut self) { - self.encryption_info.clear(); + pub fn clear_union(&mut self) { + self.rule = ::std::option::Option::None; } - pub fn has_encryption_info(&self) -> bool { - self.encryption_info.is_some() + pub fn has_union(&self) -> bool { + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Union(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: EncryptionInfo) { - self.encryption_info = ::protobuf::SingularPtrField::some(v); + pub fn set_union(&mut self, v: gc_rule::Union) { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Union(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_info(&mut self) -> &mut EncryptionInfo { - if self.encryption_info.is_none() { - self.encryption_info.set_default(); + pub fn mut_union(&mut self) -> &mut gc_rule::Union { + if let ::std::option::Option::Some(gc_rule::Rule::Union(_)) = self.rule { + } else { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Union(gc_rule::Union::new())); + } + match self.rule { + ::std::option::Option::Some(gc_rule::Rule::Union(ref mut v)) => v, + _ => panic!(), } - self.encryption_info.as_mut().unwrap() } // Take field - pub fn take_encryption_info(&mut self) -> EncryptionInfo { - self.encryption_info.take().unwrap_or_else(|| EncryptionInfo::new()) - } -} - -impl ::protobuf::Message for Backup { - fn is_initialized(&self) -> bool { - for v in &self.expire_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_info { - if !v.is_initialized() { - return false; + pub fn take_union(&mut self) -> gc_rule::Union { + if self.has_union() { + match self.rule.take() { + ::std::option::Option::Some(gc_rule::Rule::Union(v)) => v, + _ => panic!(), } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_table)?; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_backup)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.size_bytes = tmp; - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 7, &mut self.unknown_fields)? - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_info)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.source_table.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source_table); - } - if !self.source_backup.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.source_backup); - } - if let Some(ref v) = self.expire_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.size_bytes != 0 { - my_size += ::protobuf::rt::value_size(6, self.size_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.state != Backup_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.state); - } - if let Some(ref v) = self.encryption_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size + } else { + gc_rule::Union::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "max_num_versions", + GcRule::has_max_num_versions, + GcRule::max_num_versions, + GcRule::set_max_num_versions, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "max_age", + GcRule::has_max_age, + GcRule::max_age, + GcRule::mut_max_age, + GcRule::set_max_age, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, gc_rule::Intersection>( + "intersection", + GcRule::has_intersection, + GcRule::intersection, + GcRule::mut_intersection, + GcRule::set_intersection, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, gc_rule::Union>( + "union", + GcRule::has_union, + GcRule::union, + GcRule::mut_union, + GcRule::set_union, + )); + oneofs.push(gc_rule::Rule::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GcRule", + fields, + oneofs, + ) } +} - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.source_table.is_empty() { - os.write_string(2, &self.source_table)?; - } - if !self.source_backup.is_empty() { - os.write_string(10, &self.source_backup)?; - } - if let Some(ref v) = self.expire_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.size_bytes != 0 { - os.write_int64(6, self.size_bytes)?; - } - if self.state != Backup_State::STATE_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let Some(ref v) = self.encryption_info.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } +impl ::protobuf::Message for GcRule { + const NAME: &'static str = "GcRule"; - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn is_initialized(&self) -> bool { + true } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.rule = ::std::option::Option::Some(gc_rule::Rule::MaxNumVersions(is.read_int32()?)); + }, + 18 => { + self.rule = ::std::option::Option::Some(gc_rule::Rule::MaxAge(is.read_message()?)); + }, + 26 => { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Intersection(is.read_message()?)); + }, + 34 => { + self.rule = ::std::option::Option::Some(gc_rule::Rule::Union(is.read_message()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let ::std::option::Option::Some(ref v) = self.rule { + match v { + &gc_rule::Rule::MaxNumVersions(v) => { + my_size += ::protobuf::rt::int32_size(1, v); + }, + &gc_rule::Rule::MaxAge(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &gc_rule::Rule::Intersection(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &gc_rule::Rule::Union(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let ::std::option::Option::Some(ref v) = self.rule { + match v { + &gc_rule::Rule::MaxNumVersions(v) => { + os.write_int32(1, v)?; + }, + &gc_rule::Rule::MaxAge(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &gc_rule::Rule::Intersection(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + &gc_rule::Rule::Union(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> Backup { - Backup::new() + fn new() -> GcRule { + GcRule::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Backup| { &m.name }, - |m: &mut Backup| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_table", - |m: &Backup| { &m.source_table }, - |m: &mut Backup| { &mut m.source_table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_backup", - |m: &Backup| { &m.source_backup }, - |m: &mut Backup| { &mut m.source_backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expire_time", - |m: &Backup| { &m.expire_time }, - |m: &mut Backup| { &mut m.expire_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &Backup| { &m.start_time }, - |m: &mut Backup| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &Backup| { &m.end_time }, - |m: &mut Backup| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "size_bytes", - |m: &Backup| { &m.size_bytes }, - |m: &mut Backup| { &mut m.size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Backup| { &m.state }, - |m: &mut Backup| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_info", - |m: &Backup| { &m.encryption_info }, - |m: &mut Backup| { &mut m.encryption_info }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Backup", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.rule = ::std::option::Option::None; + self.rule = ::std::option::Option::None; + self.rule = ::std::option::Option::None; + self.rule = ::std::option::Option::None; + self.special_fields.clear(); } - fn default_instance() -> &'static Backup { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Backup::new) + fn default_instance() -> &'static GcRule { + static instance: GcRule = GcRule { + rule: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Backup { - fn clear(&mut self) { - self.name.clear(); - self.source_table.clear(); - self.source_backup.clear(); - self.expire_time.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.size_bytes = 0; - self.state = Backup_State::STATE_UNSPECIFIED; - self.encryption_info.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GcRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GcRule").unwrap()).clone() } } -impl ::std::fmt::Debug for Backup { +impl ::std::fmt::Display for GcRule { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for Backup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GcRule { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Backup_State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2, -} +/// Nested message and enums of message `GcRule` +pub mod gc_rule { -impl ::protobuf::ProtobufEnum for Backup_State { - fn value(&self) -> i32 { - *self as i32 + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.admin.v2.GcRule.rule) + pub enum Rule { + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.GcRule.max_num_versions) + MaxNumVersions(i32), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.GcRule.max_age) + MaxAge(::protobuf::well_known_types::duration::Duration), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.GcRule.intersection) + Intersection(Intersection), + // @@protoc_insertion_point(oneof_field:google.bigtable.admin.v2.GcRule.union) + Union(Union), } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Backup_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Backup_State::CREATING), - 2 => ::std::option::Option::Some(Backup_State::READY), - _ => ::std::option::Option::None - } + impl ::protobuf::Oneof for Rule { } - fn values() -> &'static [Self] { - static values: &'static [Backup_State] = &[ - Backup_State::STATE_UNSPECIFIED, - Backup_State::CREATING, - Backup_State::READY, - ]; - values + impl ::protobuf::OneofFull for Rule { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("rule").unwrap()).clone() + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Backup.State", file_descriptor_proto()) - }) + impl Rule { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("rule") + } } -} - -impl ::std::marker::Copy for Backup_State { -} - -impl ::std::default::Default for Backup_State { - fn default() -> Self { - Backup_State::STATE_UNSPECIFIED + /// A GcRule which deletes cells matching all of the given rules. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.GcRule.Intersection) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Intersection { + // message fields + /// Only delete cells which would be deleted by every element of `rules`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GcRule.Intersection.rules) + pub rules: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GcRule.Intersection.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -} -impl ::protobuf::reflect::ProtobufValue for Backup_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl<'a> ::std::default::Default for &'a Intersection { + fn default() -> &'a Intersection { + ::default_instance() + } } -} -#[derive(PartialEq,Clone,Default)] -pub struct BackupInfo { - // message fields - pub backup: ::std::string::String, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub source_table: ::std::string::String, - pub source_backup: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + impl Intersection { + pub fn new() -> Intersection { + ::std::default::Default::default() + } -impl<'a> ::std::default::Default for &'a BackupInfo { - fn default() -> &'a BackupInfo { - ::default_instance() + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Intersection| { &m.rules }, + |m: &mut Intersection| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GcRule.Intersection", + fields, + oneofs, + ) + } } -} -impl BackupInfo { - pub fn new() -> BackupInfo { - ::std::default::Default::default() - } + impl ::protobuf::Message for Intersection { + const NAME: &'static str = "Intersection"; - // string backup = 1; + fn is_initialized(&self) -> bool { + true + } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - pub fn get_backup(&self) -> &str { - &self.backup - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.rules { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Param is passed by value, moved - pub fn set_backup(&mut self, v: ::std::string::String) { - self.backup = v; - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.rules { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut ::std::string::String { - &mut self.backup - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Take field - pub fn take_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup, ::std::string::String::new()) - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Intersection { + Intersection::new() + } - // .google.protobuf.Timestamp start_time = 2; + fn clear(&mut self) { + self.rules.clear(); + self.special_fields.clear(); + } + fn default_instance() -> &'static Intersection { + static instance: Intersection = Intersection { + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) + impl ::protobuf::MessageFull for Intersection { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("GcRule.Intersection").unwrap()).clone() + } } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); + + impl ::std::fmt::Display for Intersection { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + impl ::protobuf::reflect::ProtobufValue for Intersection { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + /// A GcRule which deletes cells matching any of the given rules. + // @@protoc_insertion_point(message:google.bigtable.admin.v2.GcRule.Union) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Union { + // message fields + /// Delete cells which would be deleted by any element of `rules`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.GcRule.Union.rules) + pub rules: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.GcRule.Union.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + impl<'a> ::std::default::Default for &'a Union { + fn default() -> &'a Union { + ::default_instance() } - self.start_time.as_mut().unwrap() } - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + impl Union { + pub fn new() -> Union { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &Union| { &m.rules }, + |m: &mut Union| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GcRule.Union", + fields, + oneofs, + ) + } } - // .google.protobuf.Timestamp end_time = 3; + impl ::protobuf::Message for Union { + const NAME: &'static str = "Union"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.rules.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.rules { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.rules { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - self.end_time.as_mut().unwrap() - } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // string source_table = 4; + fn new() -> Union { + Union::new() + } + fn clear(&mut self) { + self.rules.clear(); + self.special_fields.clear(); + } - pub fn get_source_table(&self) -> &str { - &self.source_table - } - pub fn clear_source_table(&mut self) { - self.source_table.clear(); + fn default_instance() -> &'static Union { + static instance: Union = Union { + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Param is passed by value, moved - pub fn set_source_table(&mut self, v: ::std::string::String) { - self.source_table = v; + impl ::protobuf::MessageFull for Union { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("GcRule.Union").unwrap()).clone() + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_table(&mut self) -> &mut ::std::string::String { - &mut self.source_table + impl ::std::fmt::Display for Union { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Take field - pub fn take_source_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_table, ::std::string::String::new()) + impl ::protobuf::reflect::ProtobufValue for Union { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } +} - // string source_backup = 10; - - - pub fn get_source_backup(&self) -> &str { - &self.source_backup - } - pub fn clear_source_backup(&mut self) { - self.source_backup.clear(); - } +/// 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. +/// +/// Note: This is a private alpha release of Cloud Bigtable snapshots. This +/// feature is not currently available to most Cloud Bigtable customers. This +/// 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. +// @@protoc_insertion_point(message:google.bigtable.admin.v2.Snapshot) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Snapshot { + // message fields + /// (`OutputOnly`) + /// The unique name of the snapshot. + /// Values are of the form + /// `projects//instances//clusters//snapshots/`. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.name) + pub name: ::std::string::String, + /// (`OutputOnly`) + /// The source table at the time the snapshot was taken. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.source_table) + pub source_table: ::protobuf::MessageField
, + /// (`OutputOnly`) + /// The size of the data in the source table at the time the snapshot was + /// taken. In some cases, this value may be computed asynchronously via a + /// background process and a placeholder of 0 will be used in the meantime. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.data_size_bytes) + pub data_size_bytes: i64, + /// (`OutputOnly`) + /// The time when the snapshot is created. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.create_time) + pub create_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// (`OutputOnly`) + /// The time when the snapshot will be deleted. The maximum amount of time a + /// snapshot can stay active is 365 days. If 'ttl' is not specified, + /// the default maximum of 365 days will be used. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.delete_time) + pub delete_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// (`OutputOnly`) + /// The current state of the snapshot. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.state) + pub state: ::protobuf::EnumOrUnknown, + /// (`OutputOnly`) + /// Description of the snapshot. + // @@protoc_insertion_point(field:google.bigtable.admin.v2.Snapshot.description) + pub description: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.admin.v2.Snapshot.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_source_backup(&mut self, v: ::std::string::String) { - self.source_backup = v; +impl<'a> ::std::default::Default for &'a Snapshot { + fn default() -> &'a Snapshot { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup(&mut self) -> &mut ::std::string::String { - &mut self.source_backup +impl Snapshot { + pub fn new() -> Snapshot { + ::std::default::Default::default() } - // Take field - pub fn take_source_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_backup, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Snapshot| { &m.name }, + |m: &mut Snapshot| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Table>( + "source_table", + |m: &Snapshot| { &m.source_table }, + |m: &mut Snapshot| { &mut m.source_table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "data_size_bytes", + |m: &Snapshot| { &m.data_size_bytes }, + |m: &mut Snapshot| { &mut m.data_size_bytes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "create_time", + |m: &Snapshot| { &m.create_time }, + |m: &mut Snapshot| { &mut m.create_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "delete_time", + |m: &Snapshot| { &m.delete_time }, + |m: &mut Snapshot| { &mut m.delete_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "state", + |m: &Snapshot| { &m.state }, + |m: &mut Snapshot| { &mut m.state }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Snapshot| { &m.description }, + |m: &mut Snapshot| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Snapshot", + fields, + oneofs, + ) } } -impl ::protobuf::Message for BackupInfo { +impl ::protobuf::Message for Snapshot { + const NAME: &'static str = "Snapshot"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.source_table)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 24 => { + self.data_size_bytes = is.read_int64()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_table)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.create_time)?; }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_backup)?; + 42 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.delete_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 48 => { + self.state = is.read_enum_or_unknown()?; + }, + 58 => { + self.description = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3721,826 +1531,512 @@ impl ::protobuf::Message for BackupInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.backup.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.backup); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if let Some(v) = self.source_table.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if self.data_size_bytes != 0 { + my_size += ::protobuf::rt::int64_size(3, self.data_size_bytes); } - if let Some(ref v) = self.start_time.as_ref() { + if let Some(v) = self.create_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.end_time.as_ref() { + if let Some(v) = self.delete_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.source_table.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.source_table); + if self.state != ::protobuf::EnumOrUnknown::new(snapshot::State::STATE_NOT_KNOWN) { + my_size += ::protobuf::rt::int32_size(6, self.state.value()); } - if !self.source_backup.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.source_backup); + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.backup.is_empty() { - os.write_string(1, &self.backup)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if let Some(v) = self.source_table.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if self.data_size_bytes != 0 { + os.write_int64(3, self.data_size_bytes)?; } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.create_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.delete_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; } - if !self.source_table.is_empty() { - os.write_string(4, &self.source_table)?; + if self.state != ::protobuf::EnumOrUnknown::new(snapshot::State::STATE_NOT_KNOWN) { + os.write_enum(6, ::protobuf::EnumOrUnknown::value(&self.state))?; } - if !self.source_backup.is_empty() { - os.write_string(10, &self.source_backup)?; + if !self.description.is_empty() { + os.write_string(7, &self.description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> BackupInfo { - BackupInfo::new() + fn new() -> Snapshot { + Snapshot::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup", - |m: &BackupInfo| { &m.backup }, - |m: &mut BackupInfo| { &mut m.backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &BackupInfo| { &m.start_time }, - |m: &mut BackupInfo| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &BackupInfo| { &m.end_time }, - |m: &mut BackupInfo| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_table", - |m: &BackupInfo| { &m.source_table }, - |m: &mut BackupInfo| { &mut m.source_table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_backup", - |m: &BackupInfo| { &m.source_backup }, - |m: &mut BackupInfo| { &mut m.source_backup }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BackupInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.source_table.clear(); + self.data_size_bytes = 0; + self.create_time.clear(); + self.delete_time.clear(); + self.state = ::protobuf::EnumOrUnknown::new(snapshot::State::STATE_NOT_KNOWN); + self.description.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static BackupInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BackupInfo::new) + fn default_instance() -> &'static Snapshot { + static instance: Snapshot = Snapshot { + name: ::std::string::String::new(), + source_table: ::protobuf::MessageField::none(), + data_size_bytes: 0, + create_time: ::protobuf::MessageField::none(), + delete_time: ::protobuf::MessageField::none(), + state: ::protobuf::EnumOrUnknown::from_i32(0), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BackupInfo { - fn clear(&mut self) { - self.backup.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.source_table.clear(); - self.source_backup.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Snapshot { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Snapshot").unwrap()).clone() } } -impl ::std::fmt::Debug for BackupInfo { +impl ::std::fmt::Display for Snapshot { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for BackupInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RestoreSourceType { - RESTORE_SOURCE_TYPE_UNSPECIFIED = 0, - BACKUP = 1, +impl ::protobuf::reflect::ProtobufValue for Snapshot { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for RestoreSourceType { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `Snapshot` +pub mod snapshot { + /// Possible states of a snapshot. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.bigtable.admin.v2.Snapshot.State) + pub enum State { + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Snapshot.State.STATE_NOT_KNOWN) + STATE_NOT_KNOWN = 0, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Snapshot.State.READY) + READY = 1, + // @@protoc_insertion_point(enum_value:google.bigtable.admin.v2.Snapshot.State.CREATING) + CREATING = 2, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(RestoreSourceType::BACKUP), - _ => ::std::option::Option::None + impl ::protobuf::Enum for State { + const NAME: &'static str = "State"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + 1 => ::std::option::Option::Some(State::READY), + 2 => ::std::option::Option::Some(State::CREATING), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_NOT_KNOWN" => ::std::option::Option::Some(State::STATE_NOT_KNOWN), + "READY" => ::std::option::Option::Some(State::READY), + "CREATING" => ::std::option::Option::Some(State::CREATING), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [RestoreSourceType] = &[ - RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED, - RestoreSourceType::BACKUP, + const VALUES: &'static [State] = &[ + State::STATE_NOT_KNOWN, + State::READY, + State::CREATING, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("RestoreSourceType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for State { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Snapshot.State").unwrap()).clone() + } -impl ::std::marker::Copy for RestoreSourceType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for RestoreSourceType { - fn default() -> Self { - RestoreSourceType::RESTORE_SOURCE_TYPE_UNSPECIFIED + impl ::std::default::Default for State { + fn default() -> Self { + State::STATE_NOT_KNOWN + } } -} -impl ::protobuf::reflect::ProtobufValue for RestoreSourceType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl State { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Snapshot.State") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n$google/bigtable/admin/v2/table.proto\x12\x18google.bigtable.admin.v2\ - \x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\ - \x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.\ - proto\x1a\x17google/rpc/status.proto\"\xb3\x01\n\x0bRestoreInfo\x12L\n\ - \x0bsource_type\x18\x01\x20\x01(\x0e2+.google.bigtable.admin.v2.RestoreS\ - ourceTypeR\nsourceType\x12G\n\x0bbackup_info\x18\x02\x20\x01(\x0b2$.goog\ - le.bigtable.admin.v2.BackupInfoH\0R\nbackupInfoB\r\n\x0bsource_info\"Z\n\ - \x12ChangeStreamConfig\x12D\n\x10retention_period\x18\x01\x20\x01(\x0b2\ - \x19.google.protobuf.DurationR\x0fretentionPeriod\"\xfb\n\n\x05Table\x12\ - \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12^\n\x0ecluster_states\x18\ - \x02\x20\x03(\x0b22.google.bigtable.admin.v2.Table.ClusterStatesEntryR\r\ - clusterStatesB\x03\xe0A\x03\x12\\\n\x0fcolumn_families\x18\x03\x20\x03(\ - \x0b23.google.bigtable.admin.v2.Table.ColumnFamiliesEntryR\x0ecolumnFami\ - lies\x12[\n\x0bgranularity\x18\x04\x20\x01(\x0e24.google.bigtable.admin.\ - v2.Table.TimestampGranularityR\x0bgranularityB\x03\xe0A\x05\x12M\n\x0cre\ - store_info\x18\x06\x20\x01(\x0b2%.google.bigtable.admin.v2.RestoreInfoR\ - \x0brestoreInfoB\x03\xe0A\x03\x12^\n\x14change_stream_config\x18\x08\x20\ - \x01(\x0b2,.google.bigtable.admin.v2.ChangeStreamConfigR\x12changeStream\ - Config\x12/\n\x13deletion_protection\x18\t\x20\x01(\x08R\x12deletionProt\ - ection\x1a\xe8\x02\n\x0cClusterState\x12o\n\x11replication_state\x18\x01\ - \x20\x01(\x0e2=.google.bigtable.admin.v2.Table.ClusterState.ReplicationS\ - tateR\x10replicationStateB\x03\xe0A\x03\x12V\n\x0fencryption_info\x18\ - \x02\x20\x03(\x0b2(.google.bigtable.admin.v2.EncryptionInfoR\x0eencrypti\ - onInfoB\x03\xe0A\x03\"\x8e\x01\n\x10ReplicationState\x12\x13\n\x0fSTATE_\ - NOT_KNOWN\x10\0\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x17\n\x13PLANNED_M\ - AINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTENANCE\x10\x03\x12\t\n\ - \x05READY\x10\x04\x12\x14\n\x10READY_OPTIMIZING\x10\x05\x1an\n\x12Cluste\ - rStatesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12B\n\x05value\ - \x18\x02\x20\x01(\x0b2,.google.bigtable.admin.v2.Table.ClusterStateR\x05\ - value:\x028\x01\x1ai\n\x13ColumnFamiliesEntry\x12\x10\n\x03key\x18\x01\ - \x20\x01(\tR\x03key\x12<\n\x05value\x18\x02\x20\x01(\x0b2&.google.bigtab\ - le.admin.v2.ColumnFamilyR\x05value:\x028\x01\"I\n\x14TimestampGranularit\ - y\x12%\n!TIMESTAMP_GRANULARITY_UNSPECIFIED\x10\0\x12\n\n\x06MILLIS\x10\ - \x01\"q\n\x04View\x12\x14\n\x10VIEW_UNSPECIFIED\x10\0\x12\r\n\tNAME_ONLY\ - \x10\x01\x12\x0f\n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\ - \x10\x03\x12\x13\n\x0fENCRYPTION_VIEW\x10\x05\x12\x08\n\x04FULL\x10\x04:\ - _\xeaA\\\n\"bigtableadmin.googleapis.com/Table\x126projects/{project}/in\ - stances/{instance}/tables/{table}\"I\n\x0cColumnFamily\x129\n\x07gc_rule\ - \x18\x01\x20\x01(\x0b2\x20.google.bigtable.admin.v2.GcRuleR\x06gcRule\"\ - \x90\x03\n\x06GcRule\x12*\n\x10max_num_versions\x18\x01\x20\x01(\x05H\0R\ - \x0emaxNumVersions\x124\n\x07max_age\x18\x02\x20\x01(\x0b2\x19.google.pr\ - otobuf.DurationH\0R\x06maxAge\x12S\n\x0cintersection\x18\x03\x20\x01(\ - \x0b2-.google.bigtable.admin.v2.GcRule.IntersectionH\0R\x0cintersection\ - \x12>\n\x05union\x18\x04\x20\x01(\x0b2&.google.bigtable.admin.v2.GcRule.\ - UnionH\0R\x05union\x1aF\n\x0cIntersection\x126\n\x05rules\x18\x01\x20\ - \x03(\x0b2\x20.google.bigtable.admin.v2.GcRuleR\x05rules\x1a?\n\x05Union\ - \x126\n\x05rules\x18\x01\x20\x03(\x0b2\x20.google.bigtable.admin.v2.GcRu\ - leR\x05rulesB\x06\n\x04rule\"\x8a\x03\n\x0eEncryptionInfo\x12e\n\x0fencr\ - yption_type\x18\x03\x20\x01(\x0e27.google.bigtable.admin.v2.EncryptionIn\ - fo.EncryptionTypeR\x0eencryptionTypeB\x03\xe0A\x03\x12D\n\x11encryption_\ - status\x18\x04\x20\x01(\x0b2\x12.google.rpc.StatusR\x10encryptionStatusB\ - \x03\xe0A\x03\x12X\n\x0fkms_key_version\x18\x02\x20\x01(\tR\rkmsKeyVersi\ - onB0\xfaA*\n(cloudkms.googleapis.com/CryptoKeyVersion\xe0A\x03\"q\n\x0eE\ - ncryptionType\x12\x1f\n\x1bENCRYPTION_TYPE_UNSPECIFIED\x10\0\x12\x1d\n\ - \x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1bCUSTOMER_MANAGED_ENCR\ - YPTION\x10\x02\"\xae\x04\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01\ - (\tR\x04name\x12G\n\x0csource_table\x18\x02\x20\x01(\x0b2\x1f.google.big\ - table.admin.v2.TableR\x0bsourceTableB\x03\xe0A\x03\x12+\n\x0fdata_size_b\ - ytes\x18\x03\x20\x01(\x03R\rdataSizeBytesB\x03\xe0A\x03\x12@\n\x0bcreate\ - _time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTimeB\ - \x03\xe0A\x03\x12;\n\x0bdelete_time\x18\x05\x20\x01(\x0b2\x1a.google.pro\ - tobuf.TimestampR\ndeleteTime\x12C\n\x05state\x18\x06\x20\x01(\x0e2(.goog\ - le.bigtable.admin.v2.Snapshot.StateR\x05stateB\x03\xe0A\x03\x12\x20\n\ - \x0bdescription\x18\x07\x20\x01(\tR\x0bdescription\"5\n\x05State\x12\x13\ - \n\x0fSTATE_NOT_KNOWN\x10\0\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08CREATI\ - NG\x10\x02:{\xeaAx\n%bigtableadmin.googleapis.com/Snapshot\x12Oprojects/\ - {project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}\"\ - \x9e\x05\n\x06Backup\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12)\ - \n\x0csource_table\x18\x02\x20\x01(\tR\x0bsourceTableB\x06\xe0A\x05\xe0A\ - \x02\x12(\n\rsource_backup\x18\n\x20\x01(\tR\x0csourceBackupB\x03\xe0A\ - \x03\x12@\n\x0bexpire_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Tim\ - estampR\nexpireTimeB\x03\xe0A\x02\x12>\n\nstart_time\x18\x04\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\tstartTimeB\x03\xe0A\x03\x12:\n\x08\ - end_time\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\ - B\x03\xe0A\x03\x12\"\n\nsize_bytes\x18\x06\x20\x01(\x03R\tsizeBytesB\x03\ - \xe0A\x03\x12A\n\x05state\x18\x07\x20\x01(\x0e2&.google.bigtable.admin.v\ - 2.Backup.StateR\x05stateB\x03\xe0A\x03\x12V\n\x0fencryption_info\x18\t\ - \x20\x01(\x0b2(.google.bigtable.admin.v2.EncryptionInfoR\x0eencryptionIn\ - foB\x03\xe0A\x03\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\ - \x0c\n\x08CREATING\x10\x01\x12\t\n\x05READY\x10\x02:u\xeaAr\n#bigtablead\ - min.googleapis.com/Backup\x12Kprojects/{project}/instances/{instance}/cl\ - usters/{cluster}/backups/{backup}\"\xf7\x01\n\nBackupInfo\x12\x1b\n\x06b\ - ackup\x18\x01\x20\x01(\tR\x06backupB\x03\xe0A\x03\x12>\n\nstart_time\x18\ - \x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTimeB\x03\xe0A\ - \x03\x12:\n\x08end_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampR\x07endTimeB\x03\xe0A\x03\x12&\n\x0csource_table\x18\x04\x20\x01(\tR\ - \x0bsourceTableB\x03\xe0A\x03\x12(\n\rsource_backup\x18\n\x20\x01(\tR\ - \x0csourceBackupB\x03\xe0A\x03*D\n\x11RestoreSourceType\x12#\n\x1fRESTOR\ - E_SOURCE_TYPE_UNSPECIFIED\x10\0\x12\n\n\x06BACKUP\x10\x01B\xfc\x02\n\x1c\ - com.google.bigtable.admin.v2B\nTableProtoP\x01Z=google.golang.org/genpro\ - to/googleapis/bigtable/admin/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.A\ - dmin.V2\xca\x02\x1eGoogle\\Cloud\\Bigtable\\Admin\\V2\xea\x02\"Google::C\ - loud::Bigtable::Admin::V2\xeaA\xa6\x01\n(cloudkms.googleapis.com/CryptoK\ - eyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring\ - }/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}J\xa3\ - \x85\x01\n\x07\x12\x05\x0e\0\xb9\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\ - \0\x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\ - \x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"Li\ - cense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ - \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ - S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ - \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ - \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\ - \x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0(\n\t\n\x02\x03\ - \x03\x12\x03\x15\0)\n\t\n\x02\x03\x04\x12\x03\x16\0!\n\x08\n\x01\x08\x12\ - \x03\x18\0;\n\t\n\x02\x08%\x12\x03\x18\0;\n\x08\n\x01\x08\x12\x03\x19\0T\ - \n\t\n\x02\x08\x0b\x12\x03\x19\0T\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\ - \x02\x08\n\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0+\n\t\n\x02\x08\ - \x08\x12\x03\x1b\0+\n\x08\n\x01\x08\x12\x03\x1c\05\n\t\n\x02\x08\x01\x12\ - \x03\x1c\05\n\x08\n\x01\x08\x12\x03\x1d\0<\n\t\n\x02\x08)\x12\x03\x1d\0<\ - \n\x08\n\x01\x08\x12\x03\x1e\0;\n\t\n\x02\x08-\x12\x03\x1e\0;\n\t\n\x01\ - \x08\x12\x04\x1f\0\"\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04\x1f\0\"\x02\n\ - 0\n\x02\x04\0\x12\x04%\0/\x01\x1a$\x20Information\x20about\x20a\x20table\ - \x20restore.\n\n\n\n\x03\x04\0\x01\x12\x03%\x08\x13\n.\n\x04\x04\0\x02\0\ - \x12\x03'\x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\ - \n\x0c\n\x05\x04\0\x02\0\x06\x12\x03'\x02\x13\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03'\x14\x1f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03'\"#\nG\n\x04\ - \x04\0\x08\0\x12\x04*\x02.\x03\x1a9\x20Information\x20about\x20the\x20so\ - urce\x20used\x20to\x20restore\x20the\x20table.\n\n\x0c\n\x05\x04\0\x08\0\ - \x01\x12\x03*\x08\x13\ng\n\x04\x04\0\x02\x01\x12\x03-\x04\x1f\x1aZ\x20In\ - formation\x20about\x20the\x20backup\x20used\x20to\x20restore\x20the\x20t\ - able.\x20The\x20backup\n\x20may\x20no\x20longer\x20exist.\n\n\x0c\n\x05\ - \x04\0\x02\x01\x06\x12\x03-\x04\x0e\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x03-\x0f\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-\x1d\x1e\n*\n\x02\ - \x04\x01\x12\x042\09\x01\x1a\x1e\x20Change\x20stream\x20configuration.\n\ - \n\n\n\x03\x04\x01\x01\x12\x032\x08\x1a\n\x9d\x02\n\x04\x04\x01\x02\0\ - \x12\x038\x020\x1a\x8f\x02\x20How\x20long\x20the\x20change\x20stream\x20\ - should\x20be\x20retained.\x20Change\x20stream\x20data\x20older\n\x20than\ - \x20the\x20retention\x20period\x20will\x20not\x20be\x20returned\x20when\ - \x20reading\x20the\x20change\n\x20stream\x20from\x20the\x20table.\n\x20V\ - alues\x20must\x20be\x20at\x20least\x201\x20day\x20and\x20at\x20most\x207\ - \x20days,\x20and\x20will\x20be\x20truncated\x20to\n\x20microsecond\x20gr\ - anularity.\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x038\x02\x1a\n\x0c\n\x05\ - \x04\x01\x02\0\x01\x12\x038\x1b+\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x038.\ - /\n\x91\x01\n\x02\x04\x02\x12\x05=\0\xba\x01\x01\x1a\x83\x01\x20A\x20col\ - lection\x20of\x20user\x20data\x20indexed\x20by\x20row,\x20column,\x20and\ - \x20timestamp.\n\x20Each\x20table\x20is\x20served\x20using\x20the\x20res\ - ources\x20of\x20its\x20parent\x20cluster.\n\n\n\n\x03\x04\x02\x01\x12\ - \x03=\x08\r\n\x0b\n\x03\x04\x02\x07\x12\x04>\x02A\x04\n\r\n\x05\x04\x02\ - \x07\x9d\x08\x12\x04>\x02A\x04\nD\n\x04\x04\x02\x03\0\x12\x04D\x02m\x03\ - \x1a6\x20The\x20state\x20of\x20a\x20table's\x20data\x20in\x20a\x20partic\ - ular\x20cluster.\n\n\x0c\n\x05\x04\x02\x03\0\x01\x12\x03D\n\x16\n+\n\x06\ - \x04\x02\x03\0\x04\0\x12\x04F\x04`\x05\x1a\x1b\x20Table\x20replication\ - \x20states.\n\n\x0e\n\x07\x04\x02\x03\0\x04\0\x01\x12\x03F\t\x19\nQ\n\ - \x08\x04\x02\x03\0\x04\0\x02\0\x12\x03H\x06\x1a\x1a@\x20The\x20replicati\ - on\x20state\x20of\x20the\x20table\x20is\x20unknown\x20in\x20this\x20clus\ - ter.\n\n\x10\n\t\x04\x02\x03\0\x04\0\x02\0\x01\x12\x03H\x06\x15\n\x10\n\ - \t\x04\x02\x03\0\x04\0\x02\0\x02\x12\x03H\x18\x19\n\xda\x01\n\x08\x04\ - \x02\x03\0\x04\0\x02\x01\x12\x03M\x06\x17\x1a\xc8\x01\x20The\x20cluster\ - \x20was\x20recently\x20created,\x20and\x20the\x20table\x20must\x20finish\ - \x20copying\n\x20over\x20pre-existing\x20data\x20from\x20other\x20cluste\ - rs\x20before\x20it\x20can\x20begin\n\x20receiving\x20live\x20replication\ - \x20updates\x20and\x20serving\x20Data\x20API\x20requests.\n\n\x10\n\t\ - \x04\x02\x03\0\x04\0\x02\x01\x01\x12\x03M\x06\x12\n\x10\n\t\x04\x02\x03\ - \0\x04\0\x02\x01\x02\x12\x03M\x15\x16\n\x85\x01\n\x08\x04\x02\x03\0\x04\ - \0\x02\x02\x12\x03Q\x06\x1e\x1at\x20The\x20table\x20is\x20temporarily\ - \x20unable\x20to\x20serve\x20Data\x20API\x20requests\x20from\x20this\n\ - \x20cluster\x20due\x20to\x20planned\x20internal\x20maintenance.\n\n\x10\ - \n\t\x04\x02\x03\0\x04\0\x02\x02\x01\x12\x03Q\x06\x19\n\x10\n\t\x04\x02\ - \x03\0\x04\0\x02\x02\x02\x12\x03Q\x1c\x1d\n\x8b\x01\n\x08\x04\x02\x03\0\ - \x04\0\x02\x03\x12\x03U\x06\x20\x1az\x20The\x20table\x20is\x20temporaril\ - y\x20unable\x20to\x20serve\x20Data\x20API\x20requests\x20from\x20this\n\ - \x20cluster\x20due\x20to\x20unplanned\x20or\x20emergency\x20maintenance.\ - \n\n\x10\n\t\x04\x02\x03\0\x04\0\x02\x03\x01\x12\x03U\x06\x1b\n\x10\n\t\ - \x04\x02\x03\0\x04\0\x02\x03\x02\x12\x03U\x1e\x1f\n\xba\x01\n\x08\x04\ - \x02\x03\0\x04\0\x02\x04\x12\x03Z\x06\x10\x1a\xa8\x01\x20The\x20table\ - \x20can\x20serve\x20Data\x20API\x20requests\x20from\x20this\x20cluster.\ - \x20Depending\x20on\n\x20replication\x20delay,\x20reads\x20may\x20not\ - \x20immediately\x20reflect\x20the\x20state\x20of\x20the\n\x20table\x20in\ - \x20other\x20clusters.\n\n\x10\n\t\x04\x02\x03\0\x04\0\x02\x04\x01\x12\ - \x03Z\x06\x0b\n\x10\n\t\x04\x02\x03\0\x04\0\x02\x04\x02\x12\x03Z\x0e\x0f\ - \n\xc8\x01\n\x08\x04\x02\x03\0\x04\0\x02\x05\x12\x03_\x06\x1b\x1a\xb6\ - \x01\x20The\x20table\x20is\x20fully\x20created\x20and\x20ready\x20for\ - \x20use\x20after\x20a\x20restore,\x20and\x20is\n\x20being\x20optimized\ - \x20for\x20performance.\x20When\x20optimizations\x20are\x20complete,\x20\ - the\n\x20table\x20will\x20transition\x20to\x20`READY`\x20state.\n\n\x10\ - \n\t\x04\x02\x03\0\x04\0\x02\x05\x01\x12\x03_\x06\x16\n\x10\n\t\x04\x02\ - \x03\0\x04\0\x02\x05\x02\x12\x03_\x19\x1a\nV\n\x06\x04\x02\x03\0\x02\0\ - \x12\x04c\x04d4\x1aF\x20Output\x20only.\x20The\x20state\x20of\x20replica\ - tion\x20for\x20the\x20table\x20in\x20this\x20cluster.\n\n\x0e\n\x07\x04\ - \x02\x03\0\x02\0\x06\x12\x03c\x04\x14\n\x0e\n\x07\x04\x02\x03\0\x02\0\ - \x01\x12\x03c\x15&\n\x0e\n\x07\x04\x02\x03\0\x02\0\x03\x12\x03c)*\n\x0e\ - \n\x07\x04\x02\x03\0\x02\0\x08\x12\x03d\x083\n\x11\n\n\x04\x02\x03\0\x02\ - \0\x08\x9c\x08\0\x12\x03d\t2\n\xda\x02\n\x06\x04\x02\x03\0\x02\x01\x12\ - \x04k\x04l4\x1a\xc9\x02\x20Output\x20only.\x20The\x20encryption\x20infor\ - mation\x20for\x20the\x20table\x20in\x20this\x20cluster.\n\x20If\x20the\ - \x20encryption\x20key\x20protecting\x20this\x20resource\x20is\x20custome\ - r\x20managed,\x20then\n\x20its\x20version\x20can\x20be\x20rotated\x20in\ - \x20Cloud\x20Key\x20Management\x20Service\x20(Cloud\x20KMS).\n\x20The\ - \x20primary\x20version\x20of\x20the\x20key\x20and\x20its\x20status\x20wi\ - ll\x20be\x20reflected\x20here\x20when\n\x20changes\x20propagate\x20from\ - \x20Cloud\x20KMS.\n\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x04\x12\x03k\x04\ - \x0c\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x06\x12\x03k\r\x1b\n\x0e\n\x07\ - \x04\x02\x03\0\x02\x01\x01\x12\x03k\x1c+\n\x0e\n\x07\x04\x02\x03\0\x02\ - \x01\x03\x12\x03k./\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x08\x12\x03l\x083\ - \n\x11\n\n\x04\x02\x03\0\x02\x01\x08\x9c\x08\0\x12\x03l\t2\nk\n\x04\x04\ - \x02\x04\0\x12\x04q\x02x\x03\x1a]\x20Possible\x20timestamp\x20granularit\ - ies\x20to\x20use\x20when\x20keeping\x20multiple\x20versions\n\x20of\x20d\ - ata\x20in\x20a\x20table.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03q\x07\ - \x1b\n\x8c\x01\n\x06\x04\x02\x04\0\x02\0\x12\x03t\x04*\x1a}\x20The\x20us\ - er\x20did\x20not\x20specify\x20a\x20granularity.\x20Should\x20not\x20be\ - \x20returned.\n\x20When\x20specified\x20during\x20table\x20creation,\x20\ - MILLIS\x20will\x20be\x20used.\n\n\x0e\n\x07\x04\x02\x04\0\x02\0\x01\x12\ - \x03t\x04%\n\x0e\n\x07\x04\x02\x04\0\x02\0\x02\x12\x03t()\nH\n\x06\x04\ - \x02\x04\0\x02\x01\x12\x03w\x04\x0f\x1a9\x20The\x20table\x20keeps\x20dat\ - a\x20versioned\x20at\x20a\x20granularity\x20of\x201ms.\n\n\x0e\n\x07\x04\ - \x02\x04\0\x02\x01\x01\x12\x03w\x04\n\n\x0e\n\x07\x04\x02\x04\0\x02\x01\ - \x02\x12\x03w\r\x0e\n6\n\x04\x04\x02\x04\x01\x12\x05{\x02\x8e\x01\x03\ - \x1a'\x20Defines\x20a\x20view\x20over\x20a\x20table's\x20fields.\n\n\x0c\ - \n\x05\x04\x02\x04\x01\x01\x12\x03{\x07\x0b\nT\n\x06\x04\x02\x04\x01\x02\ - \0\x12\x03}\x04\x19\x1aE\x20Uses\x20the\x20default\x20view\x20for\x20eac\ - h\x20method\x20as\x20documented\x20in\x20its\x20request.\n\n\x0e\n\x07\ - \x04\x02\x04\x01\x02\0\x01\x12\x03}\x04\x14\n\x0e\n\x07\x04\x02\x04\x01\ - \x02\0\x02\x12\x03}\x17\x18\n(\n\x06\x04\x02\x04\x01\x02\x01\x12\x04\x80\ - \x01\x04\x12\x1a\x18\x20Only\x20populates\x20`name`.\n\n\x0f\n\x07\x04\ - \x02\x04\x01\x02\x01\x01\x12\x04\x80\x01\x04\r\n\x0f\n\x07\x04\x02\x04\ - \x01\x02\x01\x02\x12\x04\x80\x01\x10\x11\nQ\n\x06\x04\x02\x04\x01\x02\ - \x02\x12\x04\x83\x01\x04\x14\x1aA\x20Only\x20populates\x20`name`\x20and\ - \x20fields\x20related\x20to\x20the\x20table's\x20schema.\n\n\x0f\n\x07\ - \x04\x02\x04\x01\x02\x02\x01\x12\x04\x83\x01\x04\x0f\n\x0f\n\x07\x04\x02\ - \x04\x01\x02\x02\x02\x12\x04\x83\x01\x12\x13\n]\n\x06\x04\x02\x04\x01\ - \x02\x03\x12\x04\x87\x01\x04\x19\x1aM\x20Only\x20populates\x20`name`\x20\ - and\x20fields\x20related\x20to\x20the\x20table's\x20replication\n\x20sta\ - te.\n\n\x0f\n\x07\x04\x02\x04\x01\x02\x03\x01\x12\x04\x87\x01\x04\x14\n\ - \x0f\n\x07\x04\x02\x04\x01\x02\x03\x02\x12\x04\x87\x01\x17\x18\n[\n\x06\ - \x04\x02\x04\x01\x02\x04\x12\x04\x8a\x01\x04\x18\x1aK\x20Only\x20populat\ - es\x20`name`\x20and\x20fields\x20related\x20to\x20the\x20table's\x20encr\ - yption\x20state.\n\n\x0f\n\x07\x04\x02\x04\x01\x02\x04\x01\x12\x04\x8a\ - \x01\x04\x13\n\x0f\n\x07\x04\x02\x04\x01\x02\x04\x02\x12\x04\x8a\x01\x16\ - \x17\n'\n\x06\x04\x02\x04\x01\x02\x05\x12\x04\x8d\x01\x04\r\x1a\x17\x20P\ - opulates\x20all\x20fields.\n\n\x0f\n\x07\x04\x02\x04\x01\x02\x05\x01\x12\ - \x04\x8d\x01\x04\x08\n\x0f\n\x07\x04\x02\x04\x01\x02\x05\x02\x12\x04\x8d\ - \x01\x0b\x0c\n\xd3\x01\n\x04\x04\x02\x02\0\x12\x04\x93\x01\x02\x12\x1a\ - \xc4\x01\x20The\x20unique\x20name\x20of\x20the\x20table.\x20Values\x20ar\ - e\x20of\x20the\x20form\n\x20`projects/{project}/instances/{instance}/tab\ - les/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.\n\x20Views:\x20`NAME_ONLY`,\x20`SCHEMA\ - _VIEW`,\x20`REPLICATION_VIEW`,\x20`FULL`\n\n\r\n\x05\x04\x02\x02\0\x05\ - \x12\x04\x93\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x93\x01\t\r\ - \n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x93\x01\x10\x11\n\xda\x02\n\x04\x04\ - \x02\x02\x01\x12\x06\x9a\x01\x02\x9b\x012\x1a\xc9\x02\x20Output\x20only.\ - \x20Map\x20from\x20cluster\x20ID\x20to\x20per-cluster\x20table\x20state.\ - \n\x20If\x20it\x20could\x20not\x20be\x20determined\x20whether\x20or\x20n\ - ot\x20the\x20table\x20has\x20data\x20in\x20a\n\x20particular\x20cluster\ - \x20(for\x20example,\x20if\x20its\x20zone\x20is\x20unavailable),\x20then\ - \n\x20there\x20will\x20be\x20an\x20entry\x20for\x20the\x20cluster\x20wit\ - h\x20UNKNOWN\x20`replication_status`.\n\x20Views:\x20`REPLICATION_VIEW`,\ - \x20`ENCRYPTION_VIEW`,\x20`FULL`\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\ - \x9a\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x9a\x01\x1c*\n\r\ - \n\x05\x04\x02\x02\x01\x03\x12\x04\x9a\x01-.\n\r\n\x05\x04\x02\x02\x01\ - \x08\x12\x04\x9b\x01\x061\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\x12\ - \x04\x9b\x01\x070\n\x86\x01\n\x04\x04\x02\x02\x02\x12\x04\x9f\x01\x020\ - \x1ax\x20The\x20column\x20families\x20configured\x20for\x20this\x20table\ - ,\x20mapped\x20by\x20column\x20family\x20ID.\n\x20Views:\x20`SCHEMA_VIEW\ - `,\x20`STATS_VIEW`,\x20`FULL`\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\ - \x9f\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9f\x01\x1c+\n\r\ - \n\x05\x04\x02\x02\x02\x03\x12\x04\x9f\x01./\n\x8a\x02\n\x04\x04\x02\x02\ - \x03\x12\x06\xa5\x01\x02\xa6\x010\x1a\xf9\x01\x20Immutable.\x20The\x20gr\ - anularity\x20(i.e.\x20`MILLIS`)\x20at\x20which\x20timestamps\x20are\x20s\ - tored\n\x20in\x20this\x20table.\x20Timestamps\x20not\x20matching\x20the\ - \x20granularity\x20will\x20be\x20rejected.\x20If\n\x20unspecified\x20at\ - \x20creation\x20time,\x20the\x20value\x20will\x20be\x20set\x20to\x20`MIL\ - LIS`.\x20Views:\n\x20`SCHEMA_VIEW`,\x20`FULL`.\n\n\r\n\x05\x04\x02\x02\ - \x03\x06\x12\x04\xa5\x01\x02\x16\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\ - \xa5\x01\x17\"\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xa5\x01%&\n\r\n\x05\ - \x04\x02\x02\x03\x08\x12\x04\xa6\x01\x06/\n\x10\n\x08\x04\x02\x02\x03\ - \x08\x9c\x08\0\x12\x04\xa6\x01\x07.\n\xa4\x01\n\x04\x04\x02\x02\x04\x12\ - \x04\xaa\x01\x02K\x1a\x95\x01\x20Output\x20only.\x20If\x20this\x20table\ - \x20was\x20restored\x20from\x20another\x20data\x20source\x20(e.g.\x20a\n\ - \x20backup),\x20this\x20field\x20will\x20be\x20populated\x20with\x20info\ - rmation\x20about\x20the\x20restore.\n\n\r\n\x05\x04\x02\x02\x04\x06\x12\ - \x04\xaa\x01\x02\r\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\xaa\x01\x0e\x1a\ - \n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xaa\x01\x1d\x1e\n\r\n\x05\x04\x02\ - \x02\x04\x08\x12\x04\xaa\x01\x1fJ\n\x10\n\x08\x04\x02\x02\x04\x08\x9c\ - \x08\0\x12\x04\xaa\x01\x20I\n\x98\x01\n\x04\x04\x02\x02\x05\x12\x04\xaf\ - \x01\x02.\x1a\x89\x01\x20If\x20specified,\x20enable\x20the\x20change\x20\ - stream\x20on\x20this\x20table.\n\x20Otherwise,\x20the\x20change\x20strea\ - m\x20is\x20disabled\x20and\x20the\x20change\x20stream\x20is\x20not\n\x20\ - retained.\n\n\r\n\x05\x04\x02\x02\x05\x06\x12\x04\xaf\x01\x02\x14\n\r\n\ - \x05\x04\x02\x02\x05\x01\x12\x04\xaf\x01\x15)\n\r\n\x05\x04\x02\x02\x05\ - \x03\x12\x04\xaf\x01,-\n\xbb\x02\n\x04\x04\x02\x02\x06\x12\x04\xb9\x01\ - \x02\x1f\x1a\xac\x02\x20Set\x20to\x20true\x20to\x20make\x20the\x20table\ - \x20protected\x20against\x20data\x20loss.\x20i.e.\x20deleting\n\x20the\ - \x20following\x20resources\x20through\x20Admin\x20APIs\x20are\x20prohibi\ - ted:\n\n\x20*\x20The\x20table.\n\x20*\x20The\x20column\x20families\x20in\ - \x20the\x20table.\n\x20*\x20The\x20instance\x20containing\x20the\x20tabl\ - e.\n\n\x20Note\x20one\x20can\x20still\x20delete\x20the\x20data\x20stored\ - \x20in\x20the\x20table\x20through\x20Data\x20APIs.\n\n\r\n\x05\x04\x02\ - \x02\x06\x05\x12\x04\xb9\x01\x02\x06\n\r\n\x05\x04\x02\x02\x06\x01\x12\ - \x04\xb9\x01\x07\x1a\n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xb9\x01\x1d\ - \x1e\nS\n\x02\x04\x03\x12\x06\xbd\x01\0\xc5\x01\x01\x1aE\x20A\x20set\x20\ - of\x20columns\x20within\x20a\x20table\x20which\x20share\x20a\x20common\ - \x20configuration.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xbd\x01\x08\x14\n\ - \x9e\x02\n\x04\x04\x03\x02\0\x12\x04\xc4\x01\x02\x15\x1a\x8f\x02\x20Garb\ + \x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.pro\ + to\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x07\n\x05Table\x12\x12\n\ + \x04name\x18\x01\x20\x01(\tR\x04name\x12Y\n\x0ecluster_states\x18\x02\ + \x20\x03(\x0b22.google.bigtable.admin.v2.Table.ClusterStatesEntryR\rclus\ + terStates\x12\\\n\x0fcolumn_families\x18\x03\x20\x03(\x0b23.google.bigta\ + ble.admin.v2.Table.ColumnFamiliesEntryR\x0ecolumnFamilies\x12V\n\x0bgran\ + ularity\x18\x04\x20\x01(\x0e24.google.bigtable.admin.v2.Table.TimestampG\ + ranularityR\x0bgranularity\x1a\xf4\x01\n\x0cClusterState\x12j\n\x11repli\ + cation_state\x18\x01\x20\x01(\x0e2=.google.bigtable.admin.v2.Table.Clust\ + erState.ReplicationStateR\x10replicationState\"x\n\x10ReplicationState\ + \x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\x12\x10\n\x0cINITIALIZING\x10\x01\ + \x12\x17\n\x13PLANNED_MAINTENANCE\x10\x02\x12\x19\n\x15UNPLANNED_MAINTEN\ + ANCE\x10\x03\x12\t\n\x05READY\x10\x04\x1an\n\x12ClusterStatesEntry\x12\ + \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12B\n\x05value\x18\x02\x20\x01\ + (\x0b2,.google.bigtable.admin.v2.Table.ClusterStateR\x05value:\x028\x01\ + \x1ai\n\x13ColumnFamiliesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03k\ + ey\x12<\n\x05value\x18\x02\x20\x01(\x0b2&.google.bigtable.admin.v2.Colum\ + nFamilyR\x05value:\x028\x01\"I\n\x14TimestampGranularity\x12%\n!TIMESTAM\ + P_GRANULARITY_UNSPECIFIED\x10\0\x12\n\n\x06MILLIS\x10\x01\"\\\n\x04View\ + \x12\x14\n\x10VIEW_UNSPECIFIED\x10\0\x12\r\n\tNAME_ONLY\x10\x01\x12\x0f\ + \n\x0bSCHEMA_VIEW\x10\x02\x12\x14\n\x10REPLICATION_VIEW\x10\x03\x12\x08\ + \n\x04FULL\x10\x04\"I\n\x0cColumnFamily\x129\n\x07gc_rule\x18\x01\x20\ + \x01(\x0b2\x20.google.bigtable.admin.v2.GcRuleR\x06gcRule\"\x90\x03\n\ + \x06GcRule\x12*\n\x10max_num_versions\x18\x01\x20\x01(\x05H\0R\x0emaxNum\ + Versions\x124\n\x07max_age\x18\x02\x20\x01(\x0b2\x19.google.protobuf.Dur\ + ationH\0R\x06maxAge\x12S\n\x0cintersection\x18\x03\x20\x01(\x0b2-.google\ + .bigtable.admin.v2.GcRule.IntersectionH\0R\x0cintersection\x12>\n\x05uni\ + on\x18\x04\x20\x01(\x0b2&.google.bigtable.admin.v2.GcRule.UnionH\0R\x05u\ + nion\x1aF\n\x0cIntersection\x126\n\x05rules\x18\x01\x20\x03(\x0b2\x20.go\ + ogle.bigtable.admin.v2.GcRuleR\x05rules\x1a?\n\x05Union\x126\n\x05rules\ + \x18\x01\x20\x03(\x0b2\x20.google.bigtable.admin.v2.GcRuleR\x05rulesB\ + \x06\n\x04rule\"\x9d\x03\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01\ + (\tR\x04name\x12B\n\x0csource_table\x18\x02\x20\x01(\x0b2\x1f.google.big\ + table.admin.v2.TableR\x0bsourceTable\x12&\n\x0fdata_size_bytes\x18\x03\ + \x20\x01(\x03R\rdataSizeBytes\x12;\n\x0bcreate_time\x18\x04\x20\x01(\x0b\ + 2\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bdelete_time\x18\ + \x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ndeleteTime\x12>\n\x05\ + state\x18\x06\x20\x01(\x0e2(.google.bigtable.admin.v2.Snapshot.StateR\ + \x05state\x12\x20\n\x0bdescription\x18\x07\x20\x01(\tR\x0bdescription\"5\ + \n\x05State\x12\x13\n\x0fSTATE_NOT_KNOWN\x10\0\x12\t\n\x05READY\x10\x01\ + \x12\x0c\n\x08CREATING\x10\x02B\xad\x01\n\x1ccom.google.bigtable.admin.v\ + 2B\nTableProtoP\x01Z=google.golang.org/genproto/googleapis/bigtable/admi\ + n/v2;admin\xaa\x02\x1eGoogle.Cloud.Bigtable.Admin.V2\xca\x02\x1eGoogle\\\ + Cloud\\Bigtable\\Admin\\V2J\xe0?\n\x07\x12\x05\x0f\0\xdb\x01\x01\n\xbe\ + \x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202018\x20Google\ + \x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ + ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ + \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ + \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ + riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ + \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ + RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ + \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0!\n\t\n\x02\x03\0\ + \x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0(\n\t\n\x02\x03\x02\x12\ + \x03\x15\0)\n\x08\n\x01\x08\x12\x03\x17\0;\n\t\n\x02\x08%\x12\x03\x17\0;\ + \n\x08\n\x01\x08\x12\x03\x18\0T\n\t\n\x02\x08\x0b\x12\x03\x18\0T\n\x08\n\ + \x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\ + \x12\x03\x1a\0+\n\t\n\x02\x08\x08\x12\x03\x1a\0+\n\x08\n\x01\x08\x12\x03\ + \x1b\05\n\t\n\x02\x08\x01\x12\x03\x1b\05\n\x08\n\x01\x08\x12\x03\x1c\0<\ + \n\t\n\x02\x08)\x12\x03\x1c\0<\n\x90\x01\n\x02\x04\0\x12\x04\x20\0w\x01\ + \x1a\x83\x01\x20A\x20collection\x20of\x20user\x20data\x20indexed\x20by\ + \x20row,\x20column,\x20and\x20timestamp.\n\x20Each\x20table\x20is\x20ser\ + ved\x20using\x20the\x20resources\x20of\x20its\x20parent\x20cluster.\n\n\ + \n\n\x03\x04\0\x01\x12\x03\x20\x08\r\nD\n\x04\x04\0\x03\0\x12\x04\"\x02>\ + \x03\x1a6\x20The\x20state\x20of\x20a\x20table's\x20data\x20in\x20a\x20pa\ + rticular\x20cluster.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\"\n\x16\n+\n\ + \x06\x04\0\x03\0\x04\0\x12\x04$\x049\x05\x1a\x1b\x20Table\x20replication\ + \x20states.\n\n\x0e\n\x07\x04\0\x03\0\x04\0\x01\x12\x03$\t\x19\nQ\n\x08\ + \x04\0\x03\0\x04\0\x02\0\x12\x03&\x06\x1a\x1a@\x20The\x20replication\x20\ + state\x20of\x20the\x20table\x20is\x20unknown\x20in\x20this\x20cluster.\n\ + \n\x10\n\t\x04\0\x03\0\x04\0\x02\0\x01\x12\x03&\x06\x15\n\x10\n\t\x04\0\ + \x03\0\x04\0\x02\0\x02\x12\x03&\x18\x19\n\xda\x01\n\x08\x04\0\x03\0\x04\ + \0\x02\x01\x12\x03+\x06\x17\x1a\xc8\x01\x20The\x20cluster\x20was\x20rece\ + ntly\x20created,\x20and\x20the\x20table\x20must\x20finish\x20copying\n\ + \x20over\x20pre-existing\x20data\x20from\x20other\x20clusters\x20before\ + \x20it\x20can\x20begin\n\x20receiving\x20live\x20replication\x20updates\ + \x20and\x20serving\x20Data\x20API\x20requests.\n\n\x10\n\t\x04\0\x03\0\ + \x04\0\x02\x01\x01\x12\x03+\x06\x12\n\x10\n\t\x04\0\x03\0\x04\0\x02\x01\ + \x02\x12\x03+\x15\x16\n\x85\x01\n\x08\x04\0\x03\0\x04\0\x02\x02\x12\x03/\ + \x06\x1e\x1at\x20The\x20table\x20is\x20temporarily\x20unable\x20to\x20se\ + rve\x20Data\x20API\x20requests\x20from\x20this\n\x20cluster\x20due\x20to\ + \x20planned\x20internal\x20maintenance.\n\n\x10\n\t\x04\0\x03\0\x04\0\ + \x02\x02\x01\x12\x03/\x06\x19\n\x10\n\t\x04\0\x03\0\x04\0\x02\x02\x02\ + \x12\x03/\x1c\x1d\n\x8b\x01\n\x08\x04\0\x03\0\x04\0\x02\x03\x12\x033\x06\ + \x20\x1az\x20The\x20table\x20is\x20temporarily\x20unable\x20to\x20serve\ + \x20Data\x20API\x20requests\x20from\x20this\n\x20cluster\x20due\x20to\ + \x20unplanned\x20or\x20emergency\x20maintenance.\n\n\x10\n\t\x04\0\x03\0\ + \x04\0\x02\x03\x01\x12\x033\x06\x1b\n\x10\n\t\x04\0\x03\0\x04\0\x02\x03\ + \x02\x12\x033\x1e\x1f\n\xba\x01\n\x08\x04\0\x03\0\x04\0\x02\x04\x12\x038\ + \x06\x10\x1a\xa8\x01\x20The\x20table\x20can\x20serve\x20Data\x20API\x20r\ + equests\x20from\x20this\x20cluster.\x20Depending\x20on\n\x20replication\ + \x20delay,\x20reads\x20may\x20not\x20immediately\x20reflect\x20the\x20st\ + ate\x20of\x20the\n\x20table\x20in\x20other\x20clusters.\n\n\x10\n\t\x04\ + \0\x03\0\x04\0\x02\x04\x01\x12\x038\x06\x0b\n\x10\n\t\x04\0\x03\0\x04\0\ + \x02\x04\x02\x12\x038\x0e\x0f\nX\n\x06\x04\0\x03\0\x02\0\x12\x03=\x04+\ + \x1aI\x20(`OutputOnly`)\n\x20The\x20state\x20of\x20replication\x20for\ + \x20the\x20table\x20in\x20this\x20cluster.\n\n\x0e\n\x07\x04\0\x03\0\x02\ + \0\x06\x12\x03=\x04\x14\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03=\x15&\ + \n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03=)*\nk\n\x04\x04\0\x04\0\x12\ + \x04B\x02I\x03\x1a]\x20Possible\x20timestamp\x20granularities\x20to\x20u\ + se\x20when\x20keeping\x20multiple\x20versions\n\x20of\x20data\x20in\x20a\ + \x20table.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03B\x07\x1b\n\x8c\x01\n\ + \x06\x04\0\x04\0\x02\0\x12\x03E\x04*\x1a}\x20The\x20user\x20did\x20not\ + \x20specify\x20a\x20granularity.\x20Should\x20not\x20be\x20returned.\n\ + \x20When\x20specified\x20during\x20table\x20creation,\x20MILLIS\x20will\ + \x20be\x20used.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03E\x04%\n\x0e\ + \n\x07\x04\0\x04\0\x02\0\x02\x12\x03E()\nH\n\x06\x04\0\x04\0\x02\x01\x12\ + \x03H\x04\x0f\x1a9\x20The\x20table\x20keeps\x20data\x20versioned\x20at\ + \x20a\x20granularity\x20of\x201ms.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\ + \x12\x03H\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03H\r\x0e\n5\n\ + \x04\x04\0\x04\x01\x12\x04L\x02\\\x03\x1a'\x20Defines\x20a\x20view\x20ov\ + er\x20a\x20table's\x20fields.\n\n\x0c\n\x05\x04\0\x04\x01\x01\x12\x03L\ + \x07\x0b\nT\n\x06\x04\0\x04\x01\x02\0\x12\x03N\x04\x19\x1aE\x20Uses\x20t\ + he\x20default\x20view\x20for\x20each\x20method\x20as\x20documented\x20in\ + \x20its\x20request.\n\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03N\x04\ + \x14\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\x12\x03N\x17\x18\n'\n\x06\x04\0\ + \x04\x01\x02\x01\x12\x03Q\x04\x12\x1a\x18\x20Only\x20populates\x20`name`\ + .\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x03Q\x04\r\n\x0e\n\x07\x04\ + \0\x04\x01\x02\x01\x02\x12\x03Q\x10\x11\nP\n\x06\x04\0\x04\x01\x02\x02\ + \x12\x03T\x04\x14\x1aA\x20Only\x20populates\x20`name`\x20and\x20fields\ + \x20related\x20to\x20the\x20table's\x20schema.\n\n\x0e\n\x07\x04\0\x04\ + \x01\x02\x02\x01\x12\x03T\x04\x0f\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\ + \x12\x03T\x12\x13\n\\\n\x06\x04\0\x04\x01\x02\x03\x12\x03X\x04\x19\x1aM\ + \x20Only\x20populates\x20`name`\x20and\x20fields\x20related\x20to\x20the\ + \x20table's\n\x20replication\x20state.\n\n\x0e\n\x07\x04\0\x04\x01\x02\ + \x03\x01\x12\x03X\x04\x14\n\x0e\n\x07\x04\0\x04\x01\x02\x03\x02\x12\x03X\ + \x17\x18\n&\n\x06\x04\0\x04\x01\x02\x04\x12\x03[\x04\r\x1a\x17\x20Popula\ + tes\x20all\x20fields.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\x03[\ + \x04\x08\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03[\x0b\x0c\n\xe2\ + \x01\n\x04\x04\0\x02\0\x12\x03b\x02\x12\x1a\xd4\x01\x20(`OutputOnly`)\n\ + \x20The\x20unique\x20name\x20of\x20the\x20table.\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances//tables/[_a\ + -zA-Z0-9][-_.a-zA-Z0-9]*`.\n\x20Views:\x20`NAME_ONLY`,\x20`SCHEMA_VIEW`,\ + \x20`REPLICATION_VIEW`,\x20`FULL`\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03b\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03b\t\r\n\x0c\n\x05\x04\0\x02\ + \0\x03\x12\x03b\x10\x11\n\xc7\x02\n\x04\x04\0\x02\x01\x12\x03j\x02/\x1a\ + \xb9\x02\x20(`OutputOnly`)\n\x20Map\x20from\x20cluster\x20ID\x20to\x20pe\ + r-cluster\x20table\x20state.\n\x20If\x20it\x20could\x20not\x20be\x20dete\ + rmined\x20whether\x20or\x20not\x20the\x20table\x20has\x20data\x20in\x20a\ + \n\x20particular\x20cluster\x20(for\x20example,\x20if\x20its\x20zone\x20\ + is\x20unavailable),\x20then\n\x20there\x20will\x20be\x20an\x20entry\x20f\ + or\x20the\x20cluster\x20with\x20UNKNOWN\x20`replication_status`.\n\x20Vi\ + ews:\x20`REPLICATION_VIEW`,\x20`FULL`\n\n\x0c\n\x05\x04\0\x02\x01\x06\ + \x12\x03j\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03j\x1c*\n\x0c\n\ + \x05\x04\0\x02\x01\x03\x12\x03j-.\n\x89\x01\n\x04\x04\0\x02\x02\x12\x03o\ + \x020\x1a|\x20(`CreationOnly`)\n\x20The\x20column\x20families\x20configu\ + red\x20for\x20this\x20table,\x20mapped\x20by\x20column\x20family\x20ID.\ + \n\x20Views:\x20`SCHEMA_VIEW`,\x20`FULL`\n\n\x0c\n\x05\x04\0\x02\x02\x06\ + \x12\x03o\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03o\x1c+\n\x0c\n\ + \x05\x04\0\x02\x02\x03\x12\x03o./\n\x8d\x02\n\x04\x04\0\x02\x03\x12\x03v\ + \x02'\x1a\xff\x01\x20(`CreationOnly`)\n\x20The\x20granularity\x20(i.e.\ + \x20`MILLIS`)\x20at\x20which\x20timestamps\x20are\x20stored\x20in\n\x20t\ + his\x20table.\x20Timestamps\x20not\x20matching\x20the\x20granularity\x20\ + will\x20be\x20rejected.\n\x20If\x20unspecified\x20at\x20creation\x20time\ + ,\x20the\x20value\x20will\x20be\x20set\x20to\x20`MILLIS`.\n\x20Views:\ + \x20`SCHEMA_VIEW`,\x20`FULL`\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03v\ + \x02\x16\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03v\x17\"\n\x0c\n\x05\x04\0\ + \x02\x03\x03\x12\x03v%&\nR\n\x02\x04\x01\x12\x05z\0\x82\x01\x01\x1aE\x20\ + A\x20set\x20of\x20columns\x20within\x20a\x20table\x20which\x20share\x20a\ + \x20common\x20configuration.\n\n\n\n\x03\x04\x01\x01\x12\x03z\x08\x14\n\ + \x9e\x02\n\x04\x04\x01\x02\0\x12\x04\x81\x01\x02\x15\x1a\x8f\x02\x20Garb\ age\x20collection\x20rule\x20specified\x20as\x20a\x20protobuf.\n\x20Must\ \x20serialize\x20to\x20at\x20most\x20500\x20bytes.\n\n\x20NOTE:\x20Garba\ ge\x20collection\x20executes\x20opportunistically\x20in\x20the\x20backgr\ ound,\x20and\n\x20so\x20it's\x20possible\x20for\x20reads\x20to\x20return\ \x20a\x20cell\x20even\x20if\x20it\x20matches\x20the\x20active\n\x20GC\ - \x20expression\x20for\x20its\x20family.\n\n\r\n\x05\x04\x03\x02\0\x06\ - \x12\x04\xc4\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc4\x01\t\ - \x10\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc4\x01\x13\x14\nU\n\x02\x04\ - \x04\x12\x06\xc8\x01\0\xe5\x01\x01\x1aG\x20Rule\x20for\x20determining\ + \x20expression\x20for\x20its\x20family.\n\n\r\n\x05\x04\x01\x02\0\x06\ + \x12\x04\x81\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x81\x01\t\ + \x10\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x81\x01\x13\x14\nU\n\x02\x04\ + \x02\x12\x06\x85\x01\0\xa2\x01\x01\x1aG\x20Rule\x20for\x20determining\ \x20which\x20cells\x20to\x20delete\x20during\x20garbage\x20collection.\n\ - \n\x0b\n\x03\x04\x04\x01\x12\x04\xc8\x01\x08\x0e\nO\n\x04\x04\x04\x03\0\ - \x12\x06\xca\x01\x02\xcd\x01\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\ + \n\x0b\n\x03\x04\x02\x01\x12\x04\x85\x01\x08\x0e\nO\n\x04\x04\x02\x03\0\ + \x12\x06\x87\x01\x02\x8a\x01\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\ \x20cells\x20matching\x20all\x20of\x20the\x20given\x20rules.\n\n\r\n\x05\ - \x04\x04\x03\0\x01\x12\x04\xca\x01\n\x16\nW\n\x06\x04\x04\x03\0\x02\0\ - \x12\x04\xcc\x01\x04\x1e\x1aG\x20Only\x20delete\x20cells\x20which\x20wou\ + \x04\x02\x03\0\x01\x12\x04\x87\x01\n\x16\nW\n\x06\x04\x02\x03\0\x02\0\ + \x12\x04\x89\x01\x04\x1e\x1aG\x20Only\x20delete\x20cells\x20which\x20wou\ ld\x20be\x20deleted\x20by\x20every\x20element\x20of\x20`rules`.\n\n\x0f\ - \n\x07\x04\x04\x03\0\x02\0\x04\x12\x04\xcc\x01\x04\x0c\n\x0f\n\x07\x04\ - \x04\x03\0\x02\0\x06\x12\x04\xcc\x01\r\x13\n\x0f\n\x07\x04\x04\x03\0\x02\ - \0\x01\x12\x04\xcc\x01\x14\x19\n\x0f\n\x07\x04\x04\x03\0\x02\0\x03\x12\ - \x04\xcc\x01\x1c\x1d\nO\n\x04\x04\x04\x03\x01\x12\x06\xd0\x01\x02\xd3\ + \n\x07\x04\x02\x03\0\x02\0\x04\x12\x04\x89\x01\x04\x0c\n\x0f\n\x07\x04\ + \x02\x03\0\x02\0\x06\x12\x04\x89\x01\r\x13\n\x0f\n\x07\x04\x02\x03\0\x02\ + \0\x01\x12\x04\x89\x01\x14\x19\n\x0f\n\x07\x04\x02\x03\0\x02\0\x03\x12\ + \x04\x89\x01\x1c\x1d\nO\n\x04\x04\x02\x03\x01\x12\x06\x8d\x01\x02\x90\ \x01\x03\x1a?\x20A\x20GcRule\x20which\x20deletes\x20cells\x20matching\ - \x20any\x20of\x20the\x20given\x20rules.\n\n\r\n\x05\x04\x04\x03\x01\x01\ - \x12\x04\xd0\x01\n\x0f\nP\n\x06\x04\x04\x03\x01\x02\0\x12\x04\xd2\x01\ + \x20any\x20of\x20the\x20given\x20rules.\n\n\r\n\x05\x04\x02\x03\x01\x01\ + \x12\x04\x8d\x01\n\x0f\nP\n\x06\x04\x02\x03\x01\x02\0\x12\x04\x8f\x01\ \x04\x1e\x1a@\x20Delete\x20cells\x20which\x20would\x20be\x20deleted\x20b\ - y\x20any\x20element\x20of\x20`rules`.\n\n\x0f\n\x07\x04\x04\x03\x01\x02\ - \0\x04\x12\x04\xd2\x01\x04\x0c\n\x0f\n\x07\x04\x04\x03\x01\x02\0\x06\x12\ - \x04\xd2\x01\r\x13\n\x0f\n\x07\x04\x04\x03\x01\x02\0\x01\x12\x04\xd2\x01\ - \x14\x19\n\x0f\n\x07\x04\x04\x03\x01\x02\0\x03\x12\x04\xd2\x01\x1c\x1d\n\ - +\n\x04\x04\x04\x08\0\x12\x06\xd6\x01\x02\xe4\x01\x03\x1a\x1b\x20Garbage\ - \x20collection\x20rules.\n\n\r\n\x05\x04\x04\x08\0\x01\x12\x04\xd6\x01\ - \x08\x0c\nF\n\x04\x04\x04\x02\0\x12\x04\xd8\x01\x04\x1f\x1a8\x20Delete\ + y\x20any\x20element\x20of\x20`rules`.\n\n\x0f\n\x07\x04\x02\x03\x01\x02\ + \0\x04\x12\x04\x8f\x01\x04\x0c\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x06\x12\ + \x04\x8f\x01\r\x13\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x04\x8f\x01\ + \x14\x19\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x03\x12\x04\x8f\x01\x1c\x1d\n\ + +\n\x04\x04\x02\x08\0\x12\x06\x93\x01\x02\xa1\x01\x03\x1a\x1b\x20Garbage\ + \x20collection\x20rules.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\x93\x01\ + \x08\x0c\nF\n\x04\x04\x02\x02\0\x12\x04\x95\x01\x04\x1f\x1a8\x20Delete\ \x20all\x20cells\x20in\x20a\x20column\x20except\x20the\x20most\x20recent\ - \x20N.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xd8\x01\x04\t\n\r\n\x05\x04\ - \x04\x02\0\x01\x12\x04\xd8\x01\n\x1a\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \xd8\x01\x1d\x1e\n\xa0\x01\n\x04\x04\x04\x02\x01\x12\x04\xdd\x01\x04)\ + \x20N.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x95\x01\x04\t\n\r\n\x05\x04\ + \x02\x02\0\x01\x12\x04\x95\x01\n\x1a\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\ + \x95\x01\x1d\x1e\n\xa0\x01\n\x04\x04\x02\x02\x01\x12\x04\x9a\x01\x04)\ \x1a\x91\x01\x20Delete\x20cells\x20in\x20a\x20column\x20older\x20than\ \x20the\x20given\x20age.\n\x20Values\x20must\x20be\x20at\x20least\x20one\ \x20millisecond,\x20and\x20will\x20be\x20truncated\x20to\n\x20microsecon\ - d\x20granularity.\n\n\r\n\x05\x04\x04\x02\x01\x06\x12\x04\xdd\x01\x04\ - \x1c\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xdd\x01\x1d$\n\r\n\x05\x04\ - \x04\x02\x01\x03\x12\x04\xdd\x01'(\nH\n\x04\x04\x04\x02\x02\x12\x04\xe0\ + d\x20granularity.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\x9a\x01\x04\ + \x1c\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x9a\x01\x1d$\n\r\n\x05\x04\ + \x02\x02\x01\x03\x12\x04\x9a\x01'(\nH\n\x04\x04\x02\x02\x02\x12\x04\x9d\ \x01\x04\"\x1a:\x20Delete\x20cells\x20that\x20would\x20be\x20deleted\x20\ - by\x20every\x20nested\x20rule.\n\n\r\n\x05\x04\x04\x02\x02\x06\x12\x04\ - \xe0\x01\x04\x10\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xe0\x01\x11\x1d\n\ - \r\n\x05\x04\x04\x02\x02\x03\x12\x04\xe0\x01\x20!\nF\n\x04\x04\x04\x02\ - \x03\x12\x04\xe3\x01\x04\x14\x1a8\x20Delete\x20cells\x20that\x20would\ - \x20be\x20deleted\x20by\x20any\x20nested\x20rule.\n\n\r\n\x05\x04\x04\ - \x02\x03\x06\x12\x04\xe3\x01\x04\t\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\ - \xe3\x01\n\x0f\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\xe3\x01\x12\x13\n\ - \xe4\x01\n\x02\x04\x05\x12\x06\xeb\x01\0\x92\x02\x01\x1a\xd5\x01\x20Encr\ - yption\x20information\x20for\x20a\x20given\x20resource.\n\x20If\x20this\ - \x20resource\x20is\x20protected\x20with\x20customer\x20managed\x20encryp\ - tion,\x20the\x20in-use\n\x20Cloud\x20Key\x20Management\x20Service\x20(Cl\ - oud\x20KMS)\x20key\x20version\x20is\x20specified\x20along\x20with\n\x20i\ - ts\x20status.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xeb\x01\x08\x16\n;\n\x04\ - \x04\x05\x04\0\x12\x06\xed\x01\x02\xfe\x01\x03\x1a+\x20Possible\x20encry\ - ption\x20types\x20for\x20a\x20resource.\n\n\r\n\x05\x04\x05\x04\0\x01\ - \x12\x04\xed\x01\x07\x15\n[\n\x06\x04\x05\x04\0\x02\0\x12\x04\xef\x01\ - \x04$\x1aK\x20Encryption\x20type\x20was\x20not\x20specified,\x20though\ - \x20data\x20at\x20rest\x20remains\x20encrypted.\n\n\x0f\n\x07\x04\x05\ - \x04\0\x02\0\x01\x12\x04\xef\x01\x04\x1f\n\x0f\n\x07\x04\x05\x04\0\x02\0\ - \x02\x12\x04\xef\x01\"#\n\xbb\x01\n\x06\x04\x05\x04\0\x02\x01\x12\x04\ - \xf4\x01\x04\"\x1a\xaa\x01\x20The\x20data\x20backing\x20this\x20resource\ - \x20is\x20encrypted\x20at\x20rest\x20with\x20a\x20key\x20that\x20is\n\ - \x20fully\x20managed\x20by\x20Google.\x20No\x20key\x20version\x20or\x20s\ - tatus\x20will\x20be\x20populated.\n\x20This\x20is\x20the\x20default\x20s\ - tate.\n\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x01\x12\x04\xf4\x01\x04\x1d\n\ - \x0f\n\x07\x04\x05\x04\0\x02\x01\x02\x12\x04\xf4\x01\x20!\n\x8f\x03\n\ - \x06\x04\x05\x04\0\x02\x02\x12\x04\xfd\x01\x04$\x1a\xfe\x02\x20The\x20da\ - ta\x20backing\x20this\x20resource\x20is\x20encrypted\x20at\x20rest\x20wi\ - th\x20a\x20key\x20that\x20is\n\x20managed\x20by\x20the\x20customer.\n\ - \x20The\x20in-use\x20version\x20of\x20the\x20key\x20and\x20its\x20status\ - \x20are\x20populated\x20for\n\x20CMEK-protected\x20tables.\n\x20CMEK-pro\ - tected\x20backups\x20are\x20pinned\x20to\x20the\x20key\x20version\x20tha\ - t\x20was\x20in\x20use\x20at\n\x20the\x20time\x20the\x20backup\x20was\x20\ - taken.\x20This\x20key\x20version\x20is\x20populated\x20but\x20its\n\x20s\ - tatus\x20is\x20not\x20tracked\x20and\x20is\x20reported\x20as\x20`UNKNOWN\ - `.\n\n\x0f\n\x07\x04\x05\x04\0\x02\x02\x01\x12\x04\xfd\x01\x04\x1f\n\x0f\ - \n\x07\x04\x05\x04\0\x02\x02\x02\x12\x04\xfd\x01\"#\nT\n\x04\x04\x05\x02\ - \0\x12\x06\x81\x02\x02\x82\x022\x1aD\x20Output\x20only.\x20The\x20type\ - \x20of\x20encryption\x20used\x20to\x20protect\x20this\x20resource.\n\n\r\ - \n\x05\x04\x05\x02\0\x06\x12\x04\x81\x02\x02\x10\n\r\n\x05\x04\x05\x02\0\ - \x01\x12\x04\x81\x02\x11\x20\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x81\x02\ - #$\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\x82\x02\x061\n\x10\n\x08\x04\x05\ - \x02\0\x08\x9c\x08\0\x12\x04\x82\x02\x070\n\xb0\x01\n\x04\x04\x05\x02\ - \x01\x12\x06\x87\x02\x02\x88\x022\x1a\x9f\x01\x20Output\x20only.\x20The\ - \x20status\x20of\x20encrypt/decrypt\x20calls\x20on\x20underlying\x20data\ - \x20for\n\x20this\x20resource.\x20Regardless\x20of\x20status,\x20the\x20\ - existing\x20data\x20is\x20always\x20encrypted\n\x20at\x20rest.\n\n\r\n\ - \x05\x04\x05\x02\x01\x06\x12\x04\x87\x02\x02\x13\n\r\n\x05\x04\x05\x02\ - \x01\x01\x12\x04\x87\x02\x14%\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x87\ - \x02()\n\r\n\x05\x04\x05\x02\x01\x08\x12\x04\x88\x02\x061\n\x10\n\x08\ - \x04\x05\x02\x01\x08\x9c\x08\0\x12\x04\x88\x02\x070\n\x94\x01\n\x04\x04\ - \x05\x02\x02\x12\x06\x8c\x02\x02\x91\x02\x04\x1a\x83\x01\x20Output\x20on\ - ly.\x20The\x20version\x20of\x20the\x20Cloud\x20KMS\x20key\x20specified\ - \x20in\x20the\x20parent\n\x20cluster\x20that\x20is\x20in\x20use\x20for\ - \x20the\x20data\x20underlying\x20this\x20table.\n\n\r\n\x05\x04\x05\x02\ - \x02\x05\x12\x04\x8c\x02\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\ - \x8c\x02\t\x18\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\x8c\x02\x1b\x1c\n\ - \x0f\n\x05\x04\x05\x02\x02\x08\x12\x06\x8c\x02\x1d\x91\x02\x03\n\x10\n\ - \x08\x04\x05\x02\x02\x08\x9c\x08\0\x12\x04\x8d\x02\x04-\n\x11\n\x07\x04\ - \x05\x02\x02\x08\x9f\x08\x12\x06\x8e\x02\x04\x90\x02\x05\n\xc8\x03\n\x02\ - \x04\x06\x12\x06\x9b\x02\0\xcb\x02\x01\x1a\xb9\x03\x20A\x20snapshot\x20o\ - f\x20a\x20table\x20at\x20a\x20particular\x20time.\x20A\x20snapshot\x20ca\ - n\x20be\x20used\x20as\x20a\n\x20checkpoint\x20for\x20data\x20restoration\ - \x20or\x20a\x20data\x20source\x20for\x20a\x20new\x20table.\n\n\x20Note:\ - \x20This\x20is\x20a\x20private\x20alpha\x20release\x20of\x20Cloud\x20Big\ - table\x20snapshots.\x20This\n\x20feature\x20is\x20not\x20currently\x20av\ - ailable\x20to\x20most\x20Cloud\x20Bigtable\x20customers.\x20This\n\x20fe\ - ature\x20might\x20be\x20changed\x20in\x20backward-incompatible\x20ways\ - \x20and\x20is\x20not\x20recommended\n\x20for\x20production\x20use.\x20It\ - \x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20pol\ - icy.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x9b\x02\x08\x10\n\r\n\x03\x04\x06\ - \x07\x12\x06\x9c\x02\x02\x9f\x02\x04\n\x0f\n\x05\x04\x06\x07\x9d\x08\x12\ - \x06\x9c\x02\x02\x9f\x02\x04\n0\n\x04\x04\x06\x04\0\x12\x06\xa2\x02\x02\ - \xad\x02\x03\x1a\x20\x20Possible\x20states\x20of\x20a\x20snapshot.\n\n\r\ - \n\x05\x04\x06\x04\0\x01\x12\x04\xa2\x02\x07\x0c\nD\n\x06\x04\x06\x04\0\ - \x02\0\x12\x04\xa4\x02\x04\x18\x1a4\x20The\x20state\x20of\x20the\x20snap\ - shot\x20could\x20not\x20be\x20determined.\n\n\x0f\n\x07\x04\x06\x04\0\ - \x02\0\x01\x12\x04\xa4\x02\x04\x13\n\x0f\n\x07\x04\x06\x04\0\x02\0\x02\ - \x12\x04\xa4\x02\x16\x17\nX\n\x06\x04\x06\x04\0\x02\x01\x12\x04\xa7\x02\ - \x04\x0e\x1aH\x20The\x20snapshot\x20has\x20been\x20successfully\x20creat\ - ed\x20and\x20can\x20serve\x20all\x20requests.\n\n\x0f\n\x07\x04\x06\x04\ - \0\x02\x01\x01\x12\x04\xa7\x02\x04\t\n\x0f\n\x07\x04\x06\x04\0\x02\x01\ - \x02\x12\x04\xa7\x02\x0c\r\n\xc4\x01\n\x06\x04\x06\x04\0\x02\x02\x12\x04\ - \xac\x02\x04\x11\x1a\xb3\x01\x20The\x20snapshot\x20is\x20currently\x20be\ - ing\x20created,\x20and\x20may\x20be\x20destroyed\x20if\x20the\n\x20creat\ - ion\x20process\x20encounters\x20an\x20error.\x20A\x20snapshot\x20may\x20\ - not\x20be\x20restored\x20to\x20a\n\x20table\x20while\x20it\x20is\x20bein\ - g\x20created.\n\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x01\x12\x04\xac\x02\ - \x04\x0c\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x02\x12\x04\xac\x02\x0f\x10\n\ - \x9d\x01\n\x04\x04\x06\x02\0\x12\x04\xb2\x02\x02\x12\x1a\x8e\x01\x20The\ - \x20unique\x20name\x20of\x20the\x20snapshot.\n\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects/{project}/instances/{instance}/clusters/{\ - cluster}/snapshots/{snapshot}`.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ - \xb2\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xb2\x02\t\r\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xb2\x02\x10\x11\nQ\n\x04\x04\x06\x02\x01\ - \x12\x04\xb5\x02\x02E\x1aC\x20Output\x20only.\x20The\x20source\x20table\ - \x20at\x20the\x20time\x20the\x20snapshot\x20was\x20taken.\n\n\r\n\x05\ - \x04\x06\x02\x01\x06\x12\x04\xb5\x02\x02\x07\n\r\n\x05\x04\x06\x02\x01\ - \x01\x12\x04\xb5\x02\x08\x14\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xb5\ - \x02\x17\x18\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\xb5\x02\x19D\n\x10\n\ - \x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\x04\xb5\x02\x1aC\n\xf4\x01\n\x04\ - \x04\x06\x02\x02\x12\x04\xbb\x02\x02H\x1a\xe5\x01\x20Output\x20only.\x20\ - The\x20size\x20of\x20the\x20data\x20in\x20the\x20source\x20table\x20at\ - \x20the\x20time\x20the\n\x20snapshot\x20was\x20taken.\x20In\x20some\x20c\ - ases,\x20this\x20value\x20may\x20be\x20computed\n\x20asynchronously\x20v\ - ia\x20a\x20background\x20process\x20and\x20a\x20placeholder\x20of\x200\ - \x20will\x20be\x20used\n\x20in\x20the\x20meantime.\n\n\r\n\x05\x04\x06\ - \x02\x02\x05\x12\x04\xbb\x02\x02\x07\n\r\n\x05\x04\x06\x02\x02\x01\x12\ - \x04\xbb\x02\x08\x17\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\xbb\x02\x1a\ - \x1b\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\xbb\x02\x1cG\n\x10\n\x08\x04\ - \x06\x02\x02\x08\x9c\x08\0\x12\x04\xbb\x02\x1dF\nE\n\x04\x04\x06\x02\x03\ - \x12\x06\xbe\x02\x02\xbf\x022\x1a5\x20Output\x20only.\x20The\x20time\x20\ - when\x20the\x20snapshot\x20is\x20created.\n\n\r\n\x05\x04\x06\x02\x03\ - \x06\x12\x04\xbe\x02\x02\x1b\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xbe\ - \x02\x1c'\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\xbe\x02*+\n\r\n\x05\x04\ - \x06\x02\x03\x08\x12\x04\xbf\x02\x061\n\x10\n\x08\x04\x06\x02\x03\x08\ - \x9c\x08\0\x12\x04\xbf\x02\x070\n\xca\x01\n\x04\x04\x06\x02\x04\x12\x04\ - \xc4\x02\x02,\x1a\xbb\x01\x20The\x20time\x20when\x20the\x20snapshot\x20w\ - ill\x20be\x20deleted.\x20The\x20maximum\x20amount\x20of\x20time\x20a\n\ - \x20snapshot\x20can\x20stay\x20active\x20is\x20365\x20days.\x20If\x20'tt\ - l'\x20is\x20not\x20specified,\n\x20the\x20default\x20maximum\x20of\x2036\ - 5\x20days\x20will\x20be\x20used.\n\n\r\n\x05\x04\x06\x02\x04\x06\x12\x04\ - \xc4\x02\x02\x1b\n\r\n\x05\x04\x06\x02\x04\x01\x12\x04\xc4\x02\x1c'\n\r\ - \n\x05\x04\x06\x02\x04\x03\x12\x04\xc4\x02*+\n?\n\x04\x04\x06\x02\x05\ - \x12\x04\xc7\x02\x02>\x1a1\x20Output\x20only.\x20The\x20current\x20state\ - \x20of\x20the\x20snapshot.\n\n\r\n\x05\x04\x06\x02\x05\x06\x12\x04\xc7\ - \x02\x02\x07\n\r\n\x05\x04\x06\x02\x05\x01\x12\x04\xc7\x02\x08\r\n\r\n\ - \x05\x04\x06\x02\x05\x03\x12\x04\xc7\x02\x10\x11\n\r\n\x05\x04\x06\x02\ - \x05\x08\x12\x04\xc7\x02\x12=\n\x10\n\x08\x04\x06\x02\x05\x08\x9c\x08\0\ - \x12\x04\xc7\x02\x13<\n,\n\x04\x04\x06\x02\x06\x12\x04\xca\x02\x02\x19\ - \x1a\x1e\x20Description\x20of\x20the\x20snapshot.\n\n\r\n\x05\x04\x06\ - \x02\x06\x05\x12\x04\xca\x02\x02\x08\n\r\n\x05\x04\x06\x02\x06\x01\x12\ - \x04\xca\x02\t\x14\n\r\n\x05\x04\x06\x02\x06\x03\x12\x04\xca\x02\x17\x18\ - \n3\n\x02\x04\x07\x12\x06\xce\x02\0\x98\x03\x01\x1a%\x20A\x20backup\x20o\ - f\x20a\x20Cloud\x20Bigtable\x20table.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\ - \xce\x02\x08\x0e\n\r\n\x03\x04\x07\x07\x12\x06\xcf\x02\x02\xd2\x02\x04\n\ - \x0f\n\x05\x04\x07\x07\x9d\x08\x12\x06\xcf\x02\x02\xd2\x02\x04\n<\n\x04\ - \x04\x07\x04\0\x12\x06\xd5\x02\x02\xdf\x02\x03\x1a,\x20Indicates\x20the\ - \x20current\x20state\x20of\x20the\x20backup.\n\n\r\n\x05\x04\x07\x04\0\ - \x01\x12\x04\xd5\x02\x07\x0c\n\x20\n\x06\x04\x07\x04\0\x02\0\x12\x04\xd7\ - \x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\x07\x04\0\ - \x02\0\x01\x12\x04\xd7\x02\x04\x15\n\x0f\n\x07\x04\x07\x04\0\x02\0\x02\ - \x12\x04\xd7\x02\x18\x19\n\x89\x01\n\x06\x04\x07\x04\0\x02\x01\x12\x04\ - \xdb\x02\x04\x11\x1ay\x20The\x20pending\x20backup\x20is\x20still\x20bein\ - g\x20created.\x20Operations\x20on\x20the\n\x20backup\x20may\x20fail\x20w\ - ith\x20`FAILED_PRECONDITION`\x20in\x20this\x20state.\n\n\x0f\n\x07\x04\ - \x07\x04\0\x02\x01\x01\x12\x04\xdb\x02\x04\x0c\n\x0f\n\x07\x04\x07\x04\0\ - \x02\x01\x02\x12\x04\xdb\x02\x0f\x10\n;\n\x06\x04\x07\x04\0\x02\x02\x12\ - \x04\xde\x02\x04\x0e\x1a+\x20The\x20backup\x20is\x20complete\x20and\x20r\ - eady\x20for\x20use.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x01\x12\x04\xde\ - \x02\x04\t\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x02\x12\x04\xde\x02\x0c\r\n\ - \xc1\x03\n\x04\x04\x07\x02\0\x12\x04\xeb\x02\x02\x12\x1a\xb2\x03\x20A\ - \x20globally\x20unique\x20identifier\x20for\x20the\x20backup\x20which\ - \x20cannot\x20be\n\x20changed.\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects/{project}/instances/{instance}/clusters/{cluster}/\n\x20\ - \x20\x20\x20backups/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`\n\x20The\x20final\x20se\ - gment\x20of\x20the\x20name\x20must\x20be\x20between\x201\x20and\x2050\ - \x20characters\n\x20in\x20length.\n\n\x20The\x20backup\x20is\x20stored\ - \x20in\x20the\x20cluster\x20identified\x20by\x20the\x20prefix\x20of\x20t\ - he\x20backup\n\x20name\x20of\x20the\x20form\n\x20`projects/{project}/ins\ - tances/{instance}/clusters/{cluster}`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\ - \x04\xeb\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xeb\x02\t\r\n\r\ - \n\x05\x04\x07\x02\0\x03\x12\x04\xeb\x02\x10\x11\n\xec\x01\n\x04\x04\x07\ - \x02\x01\x12\x06\xf0\x02\x02\xf3\x02\x04\x1a\xdb\x01\x20Required.\x20Imm\ - utable.\x20Name\x20of\x20the\x20table\x20from\x20which\x20this\x20backup\ - \x20was\x20created.\n\x20This\x20needs\x20to\x20be\x20in\x20the\x20same\ - \x20instance\x20as\x20the\x20backup.\x20Values\x20are\x20of\x20the\x20fo\ - rm\n\x20`projects/{project}/instances/{instance}/tables/{source_table}`.\ - \n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xf0\x02\x02\x08\n\r\n\x05\x04\ - \x07\x02\x01\x01\x12\x04\xf0\x02\t\x15\n\r\n\x05\x04\x07\x02\x01\x03\x12\ - \x04\xf0\x02\x18\x19\n\x0f\n\x05\x04\x07\x02\x01\x08\x12\x06\xf0\x02\x1a\ - \xf3\x02\x03\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xf1\x02\ - \x04+\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\x01\x12\x04\xf2\x02\x04*\n\ - \xf1\x01\n\x04\x04\x07\x02\x02\x12\x04\xf8\x02\x02H\x1a\xe2\x01\x20Outpu\ - t\x20only.\x20Name\x20of\x20the\x20backup\x20from\x20which\x20this\x20ba\ - ckup\x20was\x20copied.\x20If\x20a\n\x20backup\x20is\x20not\x20created\ - \x20by\x20copying\x20a\x20backup,\x20this\x20field\x20will\x20be\x20empt\ - y.\x20Values\n\x20are\x20of\x20the\x20form:\x20projects//instan\ - ces//backups/.\n\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\ - \xf8\x02\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xf8\x02\t\x16\n\r\ - \n\x05\x04\x07\x02\x02\x03\x12\x04\xf8\x02\x19\x1b\n\r\n\x05\x04\x07\x02\ - \x02\x08\x12\x04\xf8\x02\x1cG\n\x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\ - \x12\x04\xf8\x02\x1dF\n\xae\x02\n\x04\x04\x07\x02\x03\x12\x06\xff\x02\ - \x02\x80\x03/\x1a\x9d\x02\x20Required.\x20The\x20expiration\x20time\x20o\ - f\x20the\x20backup,\x20with\x20microseconds\n\x20granularity\x20that\x20\ - must\x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20most\x2090\x20da\ - ys\n\x20from\x20the\x20time\x20the\x20request\x20is\x20received.\x20Once\ - \x20the\x20`expire_time`\n\x20has\x20passed,\x20Cloud\x20Bigtable\x20wil\ - l\x20delete\x20the\x20backup\x20and\x20free\x20the\n\x20resources\x20use\ - d\x20by\x20the\x20backup.\n\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\xff\ - \x02\x02\x1b\n\r\n\x05\x04\x07\x02\x03\x01\x12\x04\xff\x02\x1c'\n\r\n\ - \x05\x04\x07\x02\x03\x03\x12\x04\xff\x02*+\n\r\n\x05\x04\x07\x02\x03\x08\ - \x12\x04\x80\x03\x06.\n\x10\n\x08\x04\x07\x02\x03\x08\x9c\x08\0\x12\x04\ - \x80\x03\x07-\n\x9b\x02\n\x04\x04\x07\x02\x04\x12\x06\x87\x03\x02\x88\ - \x032\x1a\x8a\x02\x20Output\x20only.\x20`start_time`\x20is\x20the\x20tim\ - e\x20that\x20the\x20backup\x20was\x20started\n\x20(i.e.\x20approximately\ - \x20the\x20time\x20the\n\x20[CreateBackup][google.bigtable.admin.v2.Bigt\ - ableTableAdmin.CreateBackup]\n\x20request\x20is\x20received).\x20\x20The\ - \x20row\x20data\x20in\x20this\x20backup\x20will\x20be\x20no\x20older\x20\ - than\n\x20this\x20timestamp.\n\n\r\n\x05\x04\x07\x02\x04\x06\x12\x04\x87\ - \x03\x02\x1b\n\r\n\x05\x04\x07\x02\x04\x01\x12\x04\x87\x03\x1c&\n\r\n\ - \x05\x04\x07\x02\x04\x03\x12\x04\x87\x03)*\n\r\n\x05\x04\x07\x02\x04\x08\ - \x12\x04\x88\x03\x061\n\x10\n\x08\x04\x07\x02\x04\x08\x9c\x08\0\x12\x04\ - \x88\x03\x070\n\x96\x01\n\x04\x04\x07\x02\x05\x12\x06\x8c\x03\x02\x8d\ - \x032\x1a\x85\x01\x20Output\x20only.\x20`end_time`\x20is\x20the\x20time\ - \x20that\x20the\x20backup\x20was\x20finished.\x20The\x20row\n\x20data\ - \x20in\x20the\x20backup\x20will\x20be\x20no\x20newer\x20than\x20this\x20\ - timestamp.\n\n\r\n\x05\x04\x07\x02\x05\x06\x12\x04\x8c\x03\x02\x1b\n\r\n\ - \x05\x04\x07\x02\x05\x01\x12\x04\x8c\x03\x1c$\n\r\n\x05\x04\x07\x02\x05\ - \x03\x12\x04\x8c\x03'(\n\r\n\x05\x04\x07\x02\x05\x08\x12\x04\x8d\x03\x06\ - 1\n\x10\n\x08\x04\x07\x02\x05\x08\x9c\x08\0\x12\x04\x8d\x03\x070\n9\n\ - \x04\x04\x07\x02\x06\x12\x04\x90\x03\x02C\x1a+\x20Output\x20only.\x20Siz\ - e\x20of\x20the\x20backup\x20in\x20bytes.\n\n\r\n\x05\x04\x07\x02\x06\x05\ - \x12\x04\x90\x03\x02\x07\n\r\n\x05\x04\x07\x02\x06\x01\x12\x04\x90\x03\ - \x08\x12\n\r\n\x05\x04\x07\x02\x06\x03\x12\x04\x90\x03\x15\x16\n\r\n\x05\ - \x04\x07\x02\x06\x08\x12\x04\x90\x03\x17B\n\x10\n\x08\x04\x07\x02\x06\ - \x08\x9c\x08\0\x12\x04\x90\x03\x18A\n=\n\x04\x04\x07\x02\x07\x12\x04\x93\ - \x03\x02>\x1a/\x20Output\x20only.\x20The\x20current\x20state\x20of\x20th\ - e\x20backup.\n\n\r\n\x05\x04\x07\x02\x07\x06\x12\x04\x93\x03\x02\x07\n\r\ - \n\x05\x04\x07\x02\x07\x01\x12\x04\x93\x03\x08\r\n\r\n\x05\x04\x07\x02\ - \x07\x03\x12\x04\x93\x03\x10\x11\n\r\n\x05\x04\x07\x02\x07\x08\x12\x04\ - \x93\x03\x12=\n\x10\n\x08\x04\x07\x02\x07\x08\x9c\x08\0\x12\x04\x93\x03\ - \x13<\nI\n\x04\x04\x07\x02\x08\x12\x06\x96\x03\x02\x97\x032\x1a9\x20Outp\ - ut\x20only.\x20The\x20encryption\x20information\x20for\x20the\x20backup.\ - \n\n\r\n\x05\x04\x07\x02\x08\x06\x12\x04\x96\x03\x02\x10\n\r\n\x05\x04\ - \x07\x02\x08\x01\x12\x04\x96\x03\x11\x20\n\r\n\x05\x04\x07\x02\x08\x03\ - \x12\x04\x96\x03#$\n\r\n\x05\x04\x07\x02\x08\x08\x12\x04\x97\x03\x061\n\ - \x10\n\x08\x04\x07\x02\x08\x08\x9c\x08\0\x12\x04\x97\x03\x070\n+\n\x02\ - \x04\x08\x12\x06\x9b\x03\0\xb0\x03\x01\x1a\x1d\x20Information\x20about\ - \x20a\x20backup.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x9b\x03\x08\x12\n0\n\ - \x04\x04\x08\x02\0\x12\x04\x9d\x03\x02@\x1a\"\x20Output\x20only.\x20Name\ - \x20of\x20the\x20backup.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x9d\x03\ - \x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\x9d\x03\t\x0f\n\r\n\x05\x04\ - \x08\x02\0\x03\x12\x04\x9d\x03\x12\x13\n\r\n\x05\x04\x08\x02\0\x08\x12\ - \x04\x9d\x03\x14?\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\x9d\ - \x03\x15>\n\x82\x01\n\x04\x04\x08\x02\x01\x12\x06\xa1\x03\x02\xa2\x032\ - \x1ar\x20Output\x20only.\x20The\x20time\x20that\x20the\x20backup\x20was\ - \x20started.\x20Row\x20data\x20in\x20the\x20backup\n\x20will\x20be\x20no\ - \x20older\x20than\x20this\x20timestamp.\n\n\r\n\x05\x04\x08\x02\x01\x06\ - \x12\x04\xa1\x03\x02\x1b\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xa1\x03\ - \x1c&\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xa1\x03)*\n\r\n\x05\x04\x08\ - \x02\x01\x08\x12\x04\xa2\x03\x061\n\x10\n\x08\x04\x08\x02\x01\x08\x9c\ - \x08\0\x12\x04\xa2\x03\x070\n\x84\x01\n\x04\x04\x08\x02\x02\x12\x06\xa6\ - \x03\x02\xa7\x032\x1at\x20Output\x20only.\x20This\x20time\x20that\x20the\ - \x20backup\x20was\x20finished.\x20Row\x20data\x20in\x20the\n\x20backup\ - \x20will\x20be\x20no\x20newer\x20than\x20this\x20timestamp.\n\n\r\n\x05\ - \x04\x08\x02\x02\x06\x12\x04\xa6\x03\x02\x1b\n\r\n\x05\x04\x08\x02\x02\ - \x01\x12\x04\xa6\x03\x1c$\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xa6\x03'\ - (\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\xa7\x03\x061\n\x10\n\x08\x04\x08\ - \x02\x02\x08\x9c\x08\0\x12\x04\xa7\x03\x070\nK\n\x04\x04\x08\x02\x03\x12\ - \x04\xaa\x03\x02F\x1a=\x20Output\x20only.\x20Name\x20of\x20the\x20table\ - \x20the\x20backup\x20was\x20created\x20from.\n\n\r\n\x05\x04\x08\x02\x03\ - \x05\x12\x04\xaa\x03\x02\x08\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xaa\ - \x03\t\x15\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xaa\x03\x18\x19\n\r\n\ - \x05\x04\x08\x02\x03\x08\x12\x04\xaa\x03\x1aE\n\x10\n\x08\x04\x08\x02\ - \x03\x08\x9c\x08\0\x12\x04\xaa\x03\x1bD\n\xf1\x01\n\x04\x04\x08\x02\x04\ - \x12\x04\xaf\x03\x02H\x1a\xe2\x01\x20Output\x20only.\x20Name\x20of\x20th\ - e\x20backup\x20from\x20which\x20this\x20backup\x20was\x20copied.\x20If\ - \x20a\n\x20backup\x20is\x20not\x20created\x20by\x20copying\x20a\x20backu\ - p,\x20this\x20field\x20will\x20be\x20empty.\x20Values\n\x20are\x20of\x20\ - the\x20form:\x20projects//instances//backups/\ - .\n\n\r\n\x05\x04\x08\x02\x04\x05\x12\x04\xaf\x03\x02\x08\n\r\n\x05\x04\ - \x08\x02\x04\x01\x12\x04\xaf\x03\t\x16\n\r\n\x05\x04\x08\x02\x04\x03\x12\ - \x04\xaf\x03\x19\x1b\n\r\n\x05\x04\x08\x02\x04\x08\x12\x04\xaf\x03\x1cG\ - \n\x10\n\x08\x04\x08\x02\x04\x08\x9c\x08\0\x12\x04\xaf\x03\x1dF\n9\n\x02\ - \x05\0\x12\x06\xb3\x03\0\xb9\x03\x01\x1a+\x20Indicates\x20the\x20type\ - \x20of\x20the\x20restore\x20source.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xb3\ - \x03\x05\x16\n&\n\x04\x05\0\x02\0\x12\x04\xb5\x03\x02&\x1a\x18\x20No\x20\ - restore\x20associated.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xb5\x03\x02!\ - \n\r\n\x05\x05\0\x02\0\x02\x12\x04\xb5\x03$%\n?\n\x04\x05\0\x02\x01\x12\ - \x04\xb8\x03\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\x20the\x20so\ - urce\x20of\x20the\x20restore.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\xb8\ - \x03\x02\x08\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xb8\x03\x0b\x0cb\x06pro\ + by\x20every\x20nested\x20rule.\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\ + \x9d\x01\x04\x10\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9d\x01\x11\x1d\n\ + \r\n\x05\x04\x02\x02\x02\x03\x12\x04\x9d\x01\x20!\nF\n\x04\x04\x02\x02\ + \x03\x12\x04\xa0\x01\x04\x14\x1a8\x20Delete\x20cells\x20that\x20would\ + \x20be\x20deleted\x20by\x20any\x20nested\x20rule.\n\n\r\n\x05\x04\x02\ + \x02\x03\x06\x12\x04\xa0\x01\x04\t\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\ + \xa0\x01\n\x0f\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xa0\x01\x12\x13\n\ + \xc8\x03\n\x02\x04\x03\x12\x06\xab\x01\0\xdb\x01\x01\x1a\xb9\x03\x20A\ + \x20snapshot\x20of\x20a\x20table\x20at\x20a\x20particular\x20time.\x20A\ + \x20snapshot\x20can\x20be\x20used\x20as\x20a\n\x20checkpoint\x20for\x20d\ + ata\x20restoration\x20or\x20a\x20data\x20source\x20for\x20a\x20new\x20ta\ + ble.\n\n\x20Note:\x20This\x20is\x20a\x20private\x20alpha\x20release\x20o\ + f\x20Cloud\x20Bigtable\x20snapshots.\x20This\n\x20feature\x20is\x20not\ + \x20currently\x20available\x20to\x20most\x20Cloud\x20Bigtable\x20custome\ + rs.\x20This\n\x20feature\x20might\x20be\x20changed\x20in\x20backward-inc\ + ompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20product\ + ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\ + eprecation\x20policy.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xab\x01\x08\x10\ + \n0\n\x04\x04\x03\x04\0\x12\x06\xad\x01\x02\xb8\x01\x03\x1a\x20\x20Possi\ + ble\x20states\x20of\x20a\x20snapshot.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\ + \x04\xad\x01\x07\x0c\nD\n\x06\x04\x03\x04\0\x02\0\x12\x04\xaf\x01\x04\ + \x18\x1a4\x20The\x20state\x20of\x20the\x20snapshot\x20could\x20not\x20be\ + \x20determined.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\x12\x04\xaf\x01\ + \x04\x13\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\xaf\x01\x16\x17\nX\ + \n\x06\x04\x03\x04\0\x02\x01\x12\x04\xb2\x01\x04\x0e\x1aH\x20The\x20snap\ + shot\x20has\x20been\x20successfully\x20created\x20and\x20can\x20serve\ + \x20all\x20requests.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\xb2\ + \x01\x04\t\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x04\xb2\x01\x0c\r\n\ + \xc4\x01\n\x06\x04\x03\x04\0\x02\x02\x12\x04\xb7\x01\x04\x11\x1a\xb3\x01\ + \x20The\x20snapshot\x20is\x20currently\x20being\x20created,\x20and\x20ma\ + y\x20be\x20destroyed\x20if\x20the\n\x20creation\x20process\x20encounters\ + \x20an\x20error.\x20A\x20snapshot\x20may\x20not\x20be\x20restored\x20to\ + \x20a\n\x20table\x20while\x20it\x20is\x20being\x20created.\n\n\x0f\n\x07\ + \x04\x03\x04\0\x02\x02\x01\x12\x04\xb7\x01\x04\x0c\n\x0f\n\x07\x04\x03\ + \x04\0\x02\x02\x02\x12\x04\xb7\x01\x0f\x10\n\xad\x01\n\x04\x04\x03\x02\0\ + \x12\x04\xbe\x01\x02\x12\x1a\x9e\x01\x20(`OutputOnly`)\n\x20The\x20uniqu\ + e\x20name\x20of\x20the\x20snapshot.\n\x20Values\x20are\x20of\x20the\x20f\ + orm\n\x20`projects//instances//clusters//sna\ + pshots/`.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xbe\x01\x02\ + \x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xbe\x01\t\r\n\r\n\x05\x04\x03\ + \x02\0\x03\x12\x04\xbe\x01\x10\x11\nT\n\x04\x04\x03\x02\x01\x12\x04\xc2\ + \x01\x02\x19\x1aF\x20(`OutputOnly`)\n\x20The\x20source\x20table\x20at\ + \x20the\x20time\x20the\x20snapshot\x20was\x20taken.\n\n\r\n\x05\x04\x03\ + \x02\x01\x06\x12\x04\xc2\x01\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\ + \x04\xc2\x01\x08\x14\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xc2\x01\x17\ + \x18\n\xf6\x01\n\x04\x04\x03\x02\x02\x12\x04\xc8\x01\x02\x1c\x1a\xe7\x01\ + \x20(`OutputOnly`)\n\x20The\x20size\x20of\x20the\x20data\x20in\x20the\ + \x20source\x20table\x20at\x20the\x20time\x20the\x20snapshot\x20was\n\x20\ + taken.\x20In\x20some\x20cases,\x20this\x20value\x20may\x20be\x20computed\ + \x20asynchronously\x20via\x20a\n\x20background\x20process\x20and\x20a\ + \x20placeholder\x20of\x200\x20will\x20be\x20used\x20in\x20the\x20meantim\ + e.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xc8\x01\x02\x07\n\r\n\x05\x04\ + \x03\x02\x02\x01\x12\x04\xc8\x01\x08\x17\n\r\n\x05\x04\x03\x02\x02\x03\ + \x12\x04\xc8\x01\x1a\x1b\nF\n\x04\x04\x03\x02\x03\x12\x04\xcc\x01\x02,\ + \x1a8\x20(`OutputOnly`)\n\x20The\x20time\x20when\x20the\x20snapshot\x20i\ + s\x20created.\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xcc\x01\x02\x1b\n\ + \r\n\x05\x04\x03\x02\x03\x01\x12\x04\xcc\x01\x1c'\n\r\n\x05\x04\x03\x02\ + \x03\x03\x12\x04\xcc\x01*+\n\xda\x01\n\x04\x04\x03\x02\x04\x12\x04\xd2\ + \x01\x02,\x1a\xcb\x01\x20(`OutputOnly`)\n\x20The\x20time\x20when\x20the\ + \x20snapshot\x20will\x20be\x20deleted.\x20The\x20maximum\x20amount\x20of\ + \x20time\x20a\n\x20snapshot\x20can\x20stay\x20active\x20is\x20365\x20day\ + s.\x20If\x20'ttl'\x20is\x20not\x20specified,\n\x20the\x20default\x20maxi\ + mum\x20of\x20365\x20days\x20will\x20be\x20used.\n\n\r\n\x05\x04\x03\x02\ + \x04\x06\x12\x04\xd2\x01\x02\x1b\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\ + \xd2\x01\x1c'\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\xd2\x01*+\nB\n\x04\ + \x04\x03\x02\x05\x12\x04\xd6\x01\x02\x12\x1a4\x20(`OutputOnly`)\n\x20The\ + \x20current\x20state\x20of\x20the\x20snapshot.\n\n\r\n\x05\x04\x03\x02\ + \x05\x06\x12\x04\xd6\x01\x02\x07\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\ + \xd6\x01\x08\r\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xd6\x01\x10\x11\n<\ + \n\x04\x04\x03\x02\x06\x12\x04\xda\x01\x02\x19\x1a.\x20(`OutputOnly`)\n\ + \x20Description\x20of\x20the\x20snapshot.\n\n\r\n\x05\x04\x03\x02\x06\ + \x05\x12\x04\xda\x01\x02\x08\n\r\n\x05\x04\x03\x02\x06\x01\x12\x04\xda\ + \x01\t\x14\n\r\n\x05\x04\x03\x02\x06\x03\x12\x04\xda\x01\x17\x18b\x06pro\ to3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(7); + messages.push(Table::generated_message_descriptor_data()); + messages.push(ColumnFamily::generated_message_descriptor_data()); + messages.push(GcRule::generated_message_descriptor_data()); + messages.push(Snapshot::generated_message_descriptor_data()); + messages.push(table::ClusterState::generated_message_descriptor_data()); + messages.push(gc_rule::Intersection::generated_message_descriptor_data()); + messages.push(gc_rule::Union::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(4); + enums.push(table::TimestampGranularity::generated_enum_descriptor_data()); + enums.push(table::View::generated_enum_descriptor_data()); + enums.push(table::cluster_state::ReplicationState::generated_enum_descriptor_data()); + enums.push(snapshot::State::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/v2/bigtable.rs b/googleapis-raw/src/bigtable/v2/bigtable.rs index 2d116cb..5ec1658 100644 --- a/googleapis-raw/src/bigtable/v2/bigtable.rs +++ b/googleapis-raw/src/bigtable/v2/bigtable.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,43 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/bigtable/v2/bigtable.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for Bigtable.ReadRows. +// @@protoc_insertion_point(message:google.bigtable.v2.ReadRowsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReadRowsRequest { // message fields + /// Required. The unique name of the table from which to read. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsRequest.table_name) pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsRequest.app_profile_id) pub app_profile_id: ::std::string::String, - pub rows: ::protobuf::SingularPtrField, - pub filter: ::protobuf::SingularPtrField, + /// The row keys and/or ranges to read. If not specified, reads from all rows. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsRequest.rows) + pub rows: ::protobuf::MessageField, + /// The filter to apply to the contents of the specified row(s). If unset, + /// reads the entirety of each row. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsRequest.filter) + pub filter: ::protobuf::MessageField, + /// The read will terminate after committing to N rows' worth of results. The + /// default (zero) is to return all results. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsRequest.rows_limit) pub rows_limit: i64, - pub request_stats_view: ReadRowsRequest_RequestStatsView, - pub reversed: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadRowsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReadRowsRequest { @@ -49,220 +66,69 @@ impl ReadRowsRequest { ::std::default::Default::default() } - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 5; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // .google.bigtable.v2.RowSet rows = 2; - - - pub fn get_rows(&self) -> &super::data::RowSet { - self.rows.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rows(&mut self) { - self.rows.clear(); - } - - pub fn has_rows(&self) -> bool { - self.rows.is_some() - } - - // Param is passed by value, moved - pub fn set_rows(&mut self, v: super::data::RowSet) { - self.rows = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rows(&mut self) -> &mut super::data::RowSet { - if self.rows.is_none() { - self.rows.set_default(); - } - self.rows.as_mut().unwrap() - } - - // Take field - pub fn take_rows(&mut self) -> super::data::RowSet { - self.rows.take().unwrap_or_else(|| super::data::RowSet::new()) - } - - // .google.bigtable.v2.RowFilter filter = 3; - - - pub fn get_filter(&self) -> &super::data::RowFilter { - self.filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - pub fn has_filter(&self) -> bool { - self.filter.is_some() - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: super::data::RowFilter) { - self.filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut super::data::RowFilter { - if self.filter.is_none() { - self.filter.set_default(); - } - self.filter.as_mut().unwrap() - } - - // Take field - pub fn take_filter(&mut self) -> super::data::RowFilter { - self.filter.take().unwrap_or_else(|| super::data::RowFilter::new()) - } - - // int64 rows_limit = 4; - - - pub fn get_rows_limit(&self) -> i64 { - self.rows_limit - } - pub fn clear_rows_limit(&mut self) { - self.rows_limit = 0; - } - - // Param is passed by value, moved - pub fn set_rows_limit(&mut self, v: i64) { - self.rows_limit = v; - } - - // .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; - - - pub fn get_request_stats_view(&self) -> ReadRowsRequest_RequestStatsView { - self.request_stats_view - } - pub fn clear_request_stats_view(&mut self) { - self.request_stats_view = ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_request_stats_view(&mut self, v: ReadRowsRequest_RequestStatsView) { - self.request_stats_view = v; - } - - // bool reversed = 7; - - - pub fn get_reversed(&self) -> bool { - self.reversed - } - pub fn clear_reversed(&mut self) { - self.reversed = false; - } - - // Param is passed by value, moved - pub fn set_reversed(&mut self, v: bool) { - self.reversed = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &ReadRowsRequest| { &m.table_name }, + |m: &mut ReadRowsRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &ReadRowsRequest| { &m.app_profile_id }, + |m: &mut ReadRowsRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::data::RowSet>( + "rows", + |m: &ReadRowsRequest| { &m.rows }, + |m: &mut ReadRowsRequest| { &mut m.rows }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::data::RowFilter>( + "filter", + |m: &ReadRowsRequest| { &m.filter }, + |m: &mut ReadRowsRequest| { &mut m.filter }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rows_limit", + |m: &ReadRowsRequest| { &m.rows_limit }, + |m: &mut ReadRowsRequest| { &mut m.rows_limit }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadRowsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReadRowsRequest { + const NAME: &'static str = "ReadRowsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.rows { - if !v.is_initialized() { - return false; - } - }; - for v in &self.filter { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rows)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.filter)?; + 42 => { + self.app_profile_id = is.read_string()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.rows_limit = tmp; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.rows)?; }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.request_stats_view, 6, &mut self.unknown_fields)? + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.filter)?; }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reversed = tmp; + 32 => { + self.rows_limit = is.read_int64()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -271,7 +137,7 @@ impl ::protobuf::Message for ReadRowsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.table_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.table_name); @@ -279,228 +145,113 @@ impl ::protobuf::Message for ReadRowsRequest { if !self.app_profile_id.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.app_profile_id); } - if let Some(ref v) = self.rows.as_ref() { + if let Some(v) = self.rows.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.filter.as_ref() { + if let Some(v) = self.filter.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.rows_limit != 0 { - my_size += ::protobuf::rt::value_size(4, self.rows_limit, ::protobuf::wire_format::WireTypeVarint); - } - if self.request_stats_view != ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.request_stats_view); + my_size += ::protobuf::rt::int64_size(4, self.rows_limit); } - if self.reversed != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.table_name.is_empty() { os.write_string(1, &self.table_name)?; } if !self.app_profile_id.is_empty() { os.write_string(5, &self.app_profile_id)?; } - if let Some(ref v) = self.rows.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.rows.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.filter.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.filter.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } if self.rows_limit != 0 { os.write_int64(4, self.rows_limit)?; } - if self.request_stats_view != ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.request_stats_view))?; - } - if self.reversed != false { - os.write_bool(7, self.reversed)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReadRowsRequest { ReadRowsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &ReadRowsRequest| { &m.table_name }, - |m: &mut ReadRowsRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &ReadRowsRequest| { &m.app_profile_id }, - |m: &mut ReadRowsRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rows", - |m: &ReadRowsRequest| { &m.rows }, - |m: &mut ReadRowsRequest| { &mut m.rows }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "filter", - |m: &ReadRowsRequest| { &m.filter }, - |m: &mut ReadRowsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "rows_limit", - |m: &ReadRowsRequest| { &m.rows_limit }, - |m: &mut ReadRowsRequest| { &mut m.rows_limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "request_stats_view", - |m: &ReadRowsRequest| { &m.request_stats_view }, - |m: &mut ReadRowsRequest| { &mut m.request_stats_view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reversed", - |m: &ReadRowsRequest| { &m.reversed }, - |m: &mut ReadRowsRequest| { &mut m.reversed }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadRowsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsRequest::new) - } -} - -impl ::protobuf::Clear for ReadRowsRequest { fn clear(&mut self) { self.table_name.clear(); self.app_profile_id.clear(); self.rows.clear(); self.filter.clear(); self.rows_limit = 0; - self.request_stats_view = ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED; - self.reversed = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadRowsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + self.special_fields.clear(); } -} -impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn default_instance() -> &'static ReadRowsRequest { + static instance: ReadRowsRequest = ReadRowsRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + rows: ::protobuf::MessageField::none(), + filter: ::protobuf::MessageField::none(), + rows_limit: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ReadRowsRequest_RequestStatsView { - REQUEST_STATS_VIEW_UNSPECIFIED = 0, - REQUEST_STATS_NONE = 1, - REQUEST_STATS_FULL = 2, -} - -impl ::protobuf::ProtobufEnum for ReadRowsRequest_RequestStatsView { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(ReadRowsRequest_RequestStatsView::REQUEST_STATS_NONE), - 2 => ::std::option::Option::Some(ReadRowsRequest_RequestStatsView::REQUEST_STATS_FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ReadRowsRequest_RequestStatsView] = &[ - ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED, - ReadRowsRequest_RequestStatsView::REQUEST_STATS_NONE, - ReadRowsRequest_RequestStatsView::REQUEST_STATS_FULL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ReadRowsRequest.RequestStatsView", file_descriptor_proto()) - }) +impl ::protobuf::MessageFull for ReadRowsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadRowsRequest").unwrap()).clone() } } -impl ::std::marker::Copy for ReadRowsRequest_RequestStatsView { -} - -impl ::std::default::Default for ReadRowsRequest_RequestStatsView { - fn default() -> Self { - ReadRowsRequest_RequestStatsView::REQUEST_STATS_VIEW_UNSPECIFIED +impl ::std::fmt::Display for ReadRowsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest_RequestStatsView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for ReadRowsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for Bigtable.ReadRows. +// @@protoc_insertion_point(message:google.bigtable.v2.ReadRowsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReadRowsResponse { // message fields - pub chunks: ::protobuf::RepeatedField, + /// A collection of a row's contents as part of the read request. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.chunks) + pub chunks: ::std::vec::Vec, + /// Optionally the server might return the row key of the last row it + /// has scanned. The client can use this to construct a more + /// efficient retry request if needed: any row keys or portions of + /// ranges less than this row key can be dropped from the request. + /// This is primarily useful for cases where the server has read a + /// lot of data that was filtered out since the last committed row + /// key, allowing the client to skip that work on a retry. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.last_scanned_row_key) pub last_scanned_row_key: ::std::vec::Vec, - pub request_stats: ::protobuf::SingularPtrField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadRowsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReadRowsResponse { @@ -514,121 +265,45 @@ impl ReadRowsResponse { ::std::default::Default::default() } - // repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 1; - - - pub fn get_chunks(&self) -> &[ReadRowsResponse_CellChunk] { - &self.chunks - } - pub fn clear_chunks(&mut self) { - self.chunks.clear(); - } - - // Param is passed by value, moved - pub fn set_chunks(&mut self, v: ::protobuf::RepeatedField) { - self.chunks = v; - } - - // Mutable pointer to the field. - pub fn mut_chunks(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.chunks - } - - // Take field - pub fn take_chunks(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.chunks, ::protobuf::RepeatedField::new()) - } - - // bytes last_scanned_row_key = 2; - - - pub fn get_last_scanned_row_key(&self) -> &[u8] { - &self.last_scanned_row_key - } - pub fn clear_last_scanned_row_key(&mut self) { - self.last_scanned_row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_last_scanned_row_key(&mut self, v: ::std::vec::Vec) { - self.last_scanned_row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_scanned_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.last_scanned_row_key - } - - // Take field - pub fn take_last_scanned_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.last_scanned_row_key, ::std::vec::Vec::new()) - } - - // .google.bigtable.v2.RequestStats request_stats = 3; - - - pub fn get_request_stats(&self) -> &super::request_stats::RequestStats { - self.request_stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_stats(&mut self) { - self.request_stats.clear(); - } - - pub fn has_request_stats(&self) -> bool { - self.request_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_request_stats(&mut self, v: super::request_stats::RequestStats) { - self.request_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_stats(&mut self) -> &mut super::request_stats::RequestStats { - if self.request_stats.is_none() { - self.request_stats.set_default(); - } - self.request_stats.as_mut().unwrap() - } - - // Take field - pub fn take_request_stats(&mut self) -> super::request_stats::RequestStats { - self.request_stats.take().unwrap_or_else(|| super::request_stats::RequestStats::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "chunks", + |m: &ReadRowsResponse| { &m.chunks }, + |m: &mut ReadRowsResponse| { &mut m.chunks }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "last_scanned_row_key", + |m: &ReadRowsResponse| { &m.last_scanned_row_key }, + |m: &mut ReadRowsResponse| { &mut m.last_scanned_row_key }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadRowsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReadRowsResponse { + const NAME: &'static str = "ReadRowsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.chunks { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_stats { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.chunks)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.last_scanned_row_key)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.chunks.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_stats)?; + 18 => { + self.last_scanned_row_key = is.read_bytes()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -637,662 +312,492 @@ impl ::protobuf::Message for ReadRowsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.chunks { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.last_scanned_row_key.is_empty() { my_size += ::protobuf::rt::bytes_size(2, &self.last_scanned_row_key); } - if let Some(ref v) = self.request_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.chunks { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.last_scanned_row_key.is_empty() { os.write_bytes(2, &self.last_scanned_row_key)?; } - if let Some(ref v) = self.request_stats.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReadRowsResponse { ReadRowsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "chunks", - |m: &ReadRowsResponse| { &m.chunks }, - |m: &mut ReadRowsResponse| { &mut m.chunks }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "last_scanned_row_key", - |m: &ReadRowsResponse| { &m.last_scanned_row_key }, - |m: &mut ReadRowsResponse| { &mut m.last_scanned_row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_stats", - |m: &ReadRowsResponse| { &m.request_stats }, - |m: &mut ReadRowsResponse| { &mut m.request_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.chunks.clear(); + self.last_scanned_row_key.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ReadRowsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse::new) + static instance: ReadRowsResponse = ReadRowsResponse { + chunks: ::std::vec::Vec::new(), + last_scanned_row_key: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReadRowsResponse { - fn clear(&mut self) { - self.chunks.clear(); - self.last_scanned_row_key.clear(); - self.request_stats.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReadRowsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadRowsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ReadRowsResponse { +impl ::std::fmt::Display for ReadRowsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ReadRowsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRowsResponse_CellChunk { - // message fields - pub row_key: ::std::vec::Vec, - pub family_name: ::protobuf::SingularPtrField<::protobuf::well_known_types::StringValue>, - pub qualifier: ::protobuf::SingularPtrField<::protobuf::well_known_types::BytesValue>, - pub timestamp_micros: i64, - pub labels: ::protobuf::RepeatedField<::std::string::String>, - pub value: ::std::vec::Vec, - pub value_size: i32, - // message oneof groups - pub row_status: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ReadRowsResponse` +pub mod read_rows_response { + /// Specifies a piece of a row's contents returned as part of the read + /// response stream. + // @@protoc_insertion_point(message:google.bigtable.v2.ReadRowsResponse.CellChunk) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct CellChunk { + // message fields + /// The row key for this chunk of data. If the row key is empty, + /// this CellChunk is a continuation of the same row as the previous + /// CellChunk in the response stream, even if that CellChunk was in a + /// previous ReadRowsResponse message. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.row_key) + pub row_key: ::std::vec::Vec, + /// The column family name for this chunk of data. If this message + /// is not present this CellChunk is a continuation of the same column + /// family as the previous CellChunk. The empty string can occur as a + /// column family name in a response so clients must check + /// explicitly for the presence of this message, not just for + /// `family_name.value` being non-empty. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.family_name) + pub family_name: ::protobuf::MessageField<::protobuf::well_known_types::wrappers::StringValue>, + /// The column qualifier for this chunk of data. If this message + /// is not present, this CellChunk is a continuation of the same column + /// as the previous CellChunk. Column qualifiers may be empty so + /// clients must check for the presence of this message, not just + /// for `qualifier.value` being non-empty. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.qualifier) + pub qualifier: ::protobuf::MessageField<::protobuf::well_known_types::wrappers::BytesValue>, + /// The cell's stored timestamp, which also uniquely identifies it + /// within its column. Values are always expressed in + /// microseconds, but individual tables may set a coarser + /// granularity to further restrict the allowed values. For + /// example, a table which specifies millisecond granularity will + /// only allow values of `timestamp_micros` which are multiples of + /// 1000. Timestamps are only set in the first CellChunk per cell + /// (for cells split into multiple chunks). + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.timestamp_micros) + pub timestamp_micros: i64, + /// Labels applied to the cell by a + /// [RowFilter][google.bigtable.v2.RowFilter]. Labels are only set + /// on the first CellChunk per cell. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.labels) + pub labels: ::std::vec::Vec<::std::string::String>, + /// The value stored in the cell. Cell values can be split across + /// multiple CellChunks. In that case only the value field will be + /// set in CellChunks after the first: the timestamp and labels + /// will only be present in the first CellChunk, even if the first + /// CellChunk came in a previous ReadRowsResponse. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.value) + pub value: ::std::vec::Vec, + /// If this CellChunk is part of a chunked cell value and this is + /// not the final chunk of that cell, value_size will be set to the + /// total length of the cell value. The client can use this size + /// to pre-allocate memory to hold the full cell value. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadRowsResponse.CellChunk.value_size) + pub value_size: i32, + // message oneof groups + pub row_status: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadRowsResponse.CellChunk.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a CellChunk { + fn default() -> &'a CellChunk { + ::default_instance() + } + } + + impl CellChunk { + pub fn new() -> CellChunk { + ::std::default::Default::default() + } + + // bool reset_row = 8; + + pub fn reset_row(&self) -> bool { + match self.row_status { + ::std::option::Option::Some(cell_chunk::Row_status::ResetRow(v)) => v, + _ => false, + } + } -impl<'a> ::std::default::Default for &'a ReadRowsResponse_CellChunk { - fn default() -> &'a ReadRowsResponse_CellChunk { - ::default_instance() - } -} + pub fn clear_reset_row(&mut self) { + self.row_status = ::std::option::Option::None; + } -#[derive(Clone,PartialEq,Debug)] -pub enum ReadRowsResponse_CellChunk_oneof_row_status { - reset_row(bool), - commit_row(bool), -} + pub fn has_reset_row(&self) -> bool { + match self.row_status { + ::std::option::Option::Some(cell_chunk::Row_status::ResetRow(..)) => true, + _ => false, + } + } -impl ReadRowsResponse_CellChunk { - pub fn new() -> ReadRowsResponse_CellChunk { - ::std::default::Default::default() - } + // Param is passed by value, moved + pub fn set_reset_row(&mut self, v: bool) { + self.row_status = ::std::option::Option::Some(cell_chunk::Row_status::ResetRow(v)) + } - // bytes row_key = 1; + // bool commit_row = 9; + pub fn commit_row(&self) -> bool { + match self.row_status { + ::std::option::Option::Some(cell_chunk::Row_status::CommitRow(v)) => v, + _ => false, + } + } - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } + pub fn clear_commit_row(&mut self) { + self.row_status = ::std::option::Option::None; + } - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } + pub fn has_commit_row(&self) -> bool { + match self.row_status { + ::std::option::Option::Some(cell_chunk::Row_status::CommitRow(..)) => true, + _ => false, + } + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } + // Param is passed by value, moved + pub fn set_commit_row(&mut self, v: bool) { + self.row_status = ::std::option::Option::Some(cell_chunk::Row_status::CommitRow(v)) + } - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(9); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &CellChunk| { &m.row_key }, + |m: &mut CellChunk| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::wrappers::StringValue>( + "family_name", + |m: &CellChunk| { &m.family_name }, + |m: &mut CellChunk| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::wrappers::BytesValue>( + "qualifier", + |m: &CellChunk| { &m.qualifier }, + |m: &mut CellChunk| { &mut m.qualifier }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "timestamp_micros", + |m: &CellChunk| { &m.timestamp_micros }, + |m: &mut CellChunk| { &mut m.timestamp_micros }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "labels", + |m: &CellChunk| { &m.labels }, + |m: &mut CellChunk| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value", + |m: &CellChunk| { &m.value }, + |m: &mut CellChunk| { &mut m.value }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value_size", + |m: &CellChunk| { &m.value_size }, + |m: &mut CellChunk| { &mut m.value_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "reset_row", + CellChunk::has_reset_row, + CellChunk::reset_row, + CellChunk::set_reset_row, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "commit_row", + CellChunk::has_commit_row, + CellChunk::commit_row, + CellChunk::set_commit_row, + )); + oneofs.push(cell_chunk::Row_status::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadRowsResponse.CellChunk", + fields, + oneofs, + ) + } } - // .google.protobuf.StringValue family_name = 2; - + impl ::protobuf::Message for CellChunk { + const NAME: &'static str = "CellChunk"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.row_key = is.read_bytes()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.family_name)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.qualifier)?; + }, + 32 => { + self.timestamp_micros = is.read_int64()?; + }, + 42 => { + self.labels.push(is.read_string()?); + }, + 50 => { + self.value = is.read_bytes()?; + }, + 56 => { + self.value_size = is.read_int32()?; + }, + 64 => { + self.row_status = ::std::option::Option::Some(cell_chunk::Row_status::ResetRow(is.read_bool()?)); + }, + 72 => { + self.row_status = ::std::option::Option::Some(cell_chunk::Row_status::CommitRow(is.read_bool()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - pub fn get_family_name(&self) -> &::protobuf::well_known_types::StringValue { - self.family_name.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::StringValue as ::protobuf::Message>::default_instance()) - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); - } - - pub fn has_family_name(&self) -> bool { - self.family_name.is_some() - } - - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::protobuf::well_known_types::StringValue) { - self.family_name = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::protobuf::well_known_types::StringValue { - if self.family_name.is_none() { - self.family_name.set_default(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.row_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.row_key); + } + if let Some(v) = self.family_name.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.qualifier.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if self.timestamp_micros != 0 { + my_size += ::protobuf::rt::int64_size(4, self.timestamp_micros); + } + for value in &self.labels { + my_size += ::protobuf::rt::string_size(5, &value); + }; + if !self.value.is_empty() { + my_size += ::protobuf::rt::bytes_size(6, &self.value); + } + if self.value_size != 0 { + my_size += ::protobuf::rt::int32_size(7, self.value_size); + } + if let ::std::option::Option::Some(ref v) = self.row_status { + match v { + &cell_chunk::Row_status::ResetRow(v) => { + my_size += 1 + 1; + }, + &cell_chunk::Row_status::CommitRow(v) => { + my_size += 1 + 1; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - self.family_name.as_mut().unwrap() - } - - // Take field - pub fn take_family_name(&mut self) -> ::protobuf::well_known_types::StringValue { - self.family_name.take().unwrap_or_else(|| ::protobuf::well_known_types::StringValue::new()) - } - - // .google.protobuf.BytesValue qualifier = 3; - - - pub fn get_qualifier(&self) -> &::protobuf::well_known_types::BytesValue { - self.qualifier.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::BytesValue as ::protobuf::Message>::default_instance()) - } - pub fn clear_qualifier(&mut self) { - self.qualifier.clear(); - } - - pub fn has_qualifier(&self) -> bool { - self.qualifier.is_some() - } - // Param is passed by value, moved - pub fn set_qualifier(&mut self, v: ::protobuf::well_known_types::BytesValue) { - self.qualifier = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_qualifier(&mut self) -> &mut ::protobuf::well_known_types::BytesValue { - if self.qualifier.is_none() { - self.qualifier.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.row_key.is_empty() { + os.write_bytes(1, &self.row_key)?; + } + if let Some(v) = self.family_name.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if let Some(v) = self.qualifier.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + if self.timestamp_micros != 0 { + os.write_int64(4, self.timestamp_micros)?; + } + for v in &self.labels { + os.write_string(5, &v)?; + }; + if !self.value.is_empty() { + os.write_bytes(6, &self.value)?; + } + if self.value_size != 0 { + os.write_int32(7, self.value_size)?; + } + if let ::std::option::Option::Some(ref v) = self.row_status { + match v { + &cell_chunk::Row_status::ResetRow(v) => { + os.write_bool(8, v)?; + }, + &cell_chunk::Row_status::CommitRow(v) => { + os.write_bool(9, v)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - self.qualifier.as_mut().unwrap() - } - - // Take field - pub fn take_qualifier(&mut self) -> ::protobuf::well_known_types::BytesValue { - self.qualifier.take().unwrap_or_else(|| ::protobuf::well_known_types::BytesValue::new()) - } - - // int64 timestamp_micros = 4; - - - pub fn get_timestamp_micros(&self) -> i64 { - self.timestamp_micros - } - pub fn clear_timestamp_micros(&mut self) { - self.timestamp_micros = 0; - } - - // Param is passed by value, moved - pub fn set_timestamp_micros(&mut self, v: i64) { - self.timestamp_micros = v; - } - - // repeated string labels = 5; - - - pub fn get_labels(&self) -> &[::std::string::String] { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new()) - } - - // bytes value = 6; - - - pub fn get_value(&self) -> &[u8] { - &self.value - } - pub fn clear_value(&mut self) { - self.value.clear(); - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: ::std::vec::Vec) { - self.value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value(&mut self) -> &mut ::std::vec::Vec { - &mut self.value - } - // Take field - pub fn take_value(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.value, ::std::vec::Vec::new()) - } - - // int32 value_size = 7; - - - pub fn get_value_size(&self) -> i32 { - self.value_size - } - pub fn clear_value_size(&mut self) { - self.value_size = 0; - } - - // Param is passed by value, moved - pub fn set_value_size(&mut self, v: i32) { - self.value_size = v; - } - - // bool reset_row = 8; - - - pub fn get_reset_row(&self) -> bool { - match self.row_status { - ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::reset_row(v)) => v, - _ => false, + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - } - pub fn clear_reset_row(&mut self) { - self.row_status = ::std::option::Option::None; - } - pub fn has_reset_row(&self) -> bool { - match self.row_status { - ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::reset_row(..)) => true, - _ => false, + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - } - - // Param is passed by value, moved - pub fn set_reset_row(&mut self, v: bool) { - self.row_status = ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::reset_row(v)) - } - // bool commit_row = 9; - - - pub fn get_commit_row(&self) -> bool { - match self.row_status { - ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::commit_row(v)) => v, - _ => false, + fn new() -> CellChunk { + CellChunk::new() } - } - pub fn clear_commit_row(&mut self) { - self.row_status = ::std::option::Option::None; - } - pub fn has_commit_row(&self) -> bool { - match self.row_status { - ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::commit_row(..)) => true, - _ => false, + fn clear(&mut self) { + self.row_key.clear(); + self.family_name.clear(); + self.qualifier.clear(); + self.timestamp_micros = 0; + self.labels.clear(); + self.value.clear(); + self.value_size = 0; + self.row_status = ::std::option::Option::None; + self.row_status = ::std::option::Option::None; + self.special_fields.clear(); } - } - - // Param is passed by value, moved - pub fn set_commit_row(&mut self, v: bool) { - self.row_status = ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::commit_row(v)) - } -} - -impl ::protobuf::Message for ReadRowsResponse_CellChunk { - fn is_initialized(&self) -> bool { - for v in &self.family_name { - if !v.is_initialized() { - return false; - } - }; - for v in &self.qualifier { - if !v.is_initialized() { - return false; - } - }; - true - } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.family_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.qualifier)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.timestamp_micros = tmp; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.labels)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.value_size = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.row_status = ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::reset_row(is.read_bool()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.row_status = ::std::option::Option::Some(ReadRowsResponse_CellChunk_oneof_row_status::commit_row(is.read_bool()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static CellChunk { + static instance: CellChunk = CellChunk { + row_key: ::std::vec::Vec::new(), + family_name: ::protobuf::MessageField::none(), + qualifier: ::protobuf::MessageField::none(), + timestamp_micros: 0, + labels: ::std::vec::Vec::new(), + value: ::std::vec::Vec::new(), + value_size: 0, + row_status: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.row_key); - } - if let Some(ref v) = self.family_name.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.qualifier.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(4, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.labels { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.value.is_empty() { - my_size += ::protobuf::rt::bytes_size(6, &self.value); + impl ::protobuf::MessageFull for CellChunk { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ReadRowsResponse.CellChunk").unwrap()).clone() } - if self.value_size != 0 { - my_size += ::protobuf::rt::value_size(7, self.value_size, ::protobuf::wire_format::WireTypeVarint); - } - if let ::std::option::Option::Some(ref v) = self.row_status { - match v { - &ReadRowsResponse_CellChunk_oneof_row_status::reset_row(v) => { - my_size += 2; - }, - &ReadRowsResponse_CellChunk_oneof_row_status::commit_row(v) => { - my_size += 2; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.row_key.is_empty() { - os.write_bytes(1, &self.row_key)?; + impl ::std::fmt::Display for CellChunk { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - if let Some(ref v) = self.family_name.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.qualifier.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.timestamp_micros != 0 { - os.write_int64(4, self.timestamp_micros)?; - } - for v in &self.labels { - os.write_string(5, &v)?; - }; - if !self.value.is_empty() { - os.write_bytes(6, &self.value)?; - } - if self.value_size != 0 { - os.write_int32(7, self.value_size)?; - } - if let ::std::option::Option::Some(ref v) = self.row_status { - match v { - &ReadRowsResponse_CellChunk_oneof_row_status::reset_row(v) => { - os.write_bool(8, v)?; - }, - &ReadRowsResponse_CellChunk_oneof_row_status::commit_row(v) => { - os.write_bool(9, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() } - fn new() -> ReadRowsResponse_CellChunk { - ReadRowsResponse_CellChunk::new() + impl ::protobuf::reflect::ProtobufValue for CellChunk { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &ReadRowsResponse_CellChunk| { &m.row_key }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::StringValue>>( - "family_name", - |m: &ReadRowsResponse_CellChunk| { &m.family_name }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::BytesValue>>( - "qualifier", - |m: &ReadRowsResponse_CellChunk| { &m.qualifier }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "timestamp_micros", - |m: &ReadRowsResponse_CellChunk| { &m.timestamp_micros }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.timestamp_micros }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &ReadRowsResponse_CellChunk| { &m.labels }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "value", - |m: &ReadRowsResponse_CellChunk| { &m.value }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "value_size", - |m: &ReadRowsResponse_CellChunk| { &m.value_size }, - |m: &mut ReadRowsResponse_CellChunk| { &mut m.value_size }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "reset_row", - ReadRowsResponse_CellChunk::has_reset_row, - ReadRowsResponse_CellChunk::get_reset_row, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "commit_row", - ReadRowsResponse_CellChunk::has_commit_row, - ReadRowsResponse_CellChunk::get_commit_row, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRowsResponse.CellChunk", - fields, - file_descriptor_proto() - ) - }) - } + /// Nested message and enums of message `CellChunk` + pub mod cell_chunk { - fn default_instance() -> &'static ReadRowsResponse_CellChunk { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRowsResponse_CellChunk::new) - } -} + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ReadRowsResponse.CellChunk.row_status) + pub enum Row_status { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ReadRowsResponse.CellChunk.reset_row) + ResetRow(bool), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ReadRowsResponse.CellChunk.commit_row) + CommitRow(bool), + } -impl ::protobuf::Clear for ReadRowsResponse_CellChunk { - fn clear(&mut self) { - self.row_key.clear(); - self.family_name.clear(); - self.qualifier.clear(); - self.timestamp_micros = 0; - self.labels.clear(); - self.value.clear(); - self.value_size = 0; - self.row_status = ::std::option::Option::None; - self.row_status = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} + impl ::protobuf::Oneof for Row_status { + } -impl ::std::fmt::Debug for ReadRowsResponse_CellChunk { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + impl ::protobuf::OneofFull for Row_status { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("row_status").unwrap()).clone() + } + } -impl ::protobuf::reflect::ProtobufValue for ReadRowsResponse_CellChunk { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl Row_status { + pub(in super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("row_status") + } + } } } -#[derive(PartialEq,Clone,Default)] +/// Request message for Bigtable.SampleRowKeys. +// @@protoc_insertion_point(message:google.bigtable.v2.SampleRowKeysRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SampleRowKeysRequest { // message fields + /// Required. The unique name of the table from which to sample row keys. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.v2.SampleRowKeysRequest.table_name) pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.SampleRowKeysRequest.app_profile_id) pub app_profile_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.SampleRowKeysRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SampleRowKeysRequest { @@ -1306,76 +811,45 @@ impl SampleRowKeysRequest { ::std::default::Default::default() } - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 2; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &SampleRowKeysRequest| { &m.table_name }, + |m: &mut SampleRowKeysRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &SampleRowKeysRequest| { &m.app_profile_id }, + |m: &mut SampleRowKeysRequest| { &mut m.app_profile_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SampleRowKeysRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for SampleRowKeysRequest { + const NAME: &'static str = "SampleRowKeysRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; + 18 => { + self.app_profile_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1384,7 +858,7 @@ impl ::protobuf::Message for SampleRowKeysRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.table_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.table_name); @@ -1392,108 +866,93 @@ impl ::protobuf::Message for SampleRowKeysRequest { if !self.app_profile_id.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.table_name.is_empty() { os.write_string(1, &self.table_name)?; } if !self.app_profile_id.is_empty() { os.write_string(2, &self.app_profile_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SampleRowKeysRequest { SampleRowKeysRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &SampleRowKeysRequest| { &m.table_name }, - |m: &mut SampleRowKeysRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &SampleRowKeysRequest| { &m.app_profile_id }, - |m: &mut SampleRowKeysRequest| { &mut m.app_profile_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SampleRowKeysRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.table_name.clear(); + self.app_profile_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SampleRowKeysRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysRequest::new) + static instance: SampleRowKeysRequest = SampleRowKeysRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SampleRowKeysRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SampleRowKeysRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SampleRowKeysRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for SampleRowKeysRequest { +impl ::std::fmt::Display for SampleRowKeysRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SampleRowKeysRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for Bigtable.SampleRowKeys. +// @@protoc_insertion_point(message:google.bigtable.v2.SampleRowKeysResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SampleRowKeysResponse { // message fields + /// Sorted streamed sequence of sample row keys in the table. The table might + /// have contents before the first row key in the list and after the last one, + /// but a key containing the empty string indicates "end of table" and will be + /// the last response given, if present. + /// Note that row keys in this list may not have ever been written to or read + /// from, and users should therefore not make any assumptions about the row key + /// structure that are specific to their use case. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.SampleRowKeysResponse.row_key) pub row_key: ::std::vec::Vec, + /// Approximate total storage space used by all rows in the table which precede + /// `row_key`. Buffering the contents of all rows between two subsequent + /// samples would require space roughly equal to the difference in their + /// `offset_bytes` fields. + // @@protoc_insertion_point(field:google.bigtable.v2.SampleRowKeysResponse.offset_bytes) pub offset_bytes: i64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.SampleRowKeysResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SampleRowKeysResponse { @@ -1507,69 +966,45 @@ impl SampleRowKeysResponse { ::std::default::Default::default() } - // bytes row_key = 1; - - - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } - - // int64 offset_bytes = 2; - - - pub fn get_offset_bytes(&self) -> i64 { - self.offset_bytes - } - pub fn clear_offset_bytes(&mut self) { - self.offset_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_offset_bytes(&mut self, v: i64) { - self.offset_bytes = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &SampleRowKeysResponse| { &m.row_key }, + |m: &mut SampleRowKeysResponse| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "offset_bytes", + |m: &SampleRowKeysResponse| { &m.offset_bytes }, + |m: &mut SampleRowKeysResponse| { &mut m.offset_bytes }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SampleRowKeysResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for SampleRowKeysResponse { + const NAME: &'static str = "SampleRowKeysResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.row_key = is.read_bytes()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.offset_bytes = tmp; + 16 => { + self.offset_bytes = is.read_int64()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1578,118 +1013,103 @@ impl ::protobuf::Message for SampleRowKeysResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.row_key.is_empty() { my_size += ::protobuf::rt::bytes_size(1, &self.row_key); } if self.offset_bytes != 0 { - my_size += ::protobuf::rt::value_size(2, self.offset_bytes, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(2, self.offset_bytes); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.row_key.is_empty() { os.write_bytes(1, &self.row_key)?; } if self.offset_bytes != 0 { os.write_int64(2, self.offset_bytes)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> SampleRowKeysResponse { + SampleRowKeysResponse::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SampleRowKeysResponse { - SampleRowKeysResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &SampleRowKeysResponse| { &m.row_key }, - |m: &mut SampleRowKeysResponse| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "offset_bytes", - |m: &SampleRowKeysResponse| { &m.offset_bytes }, - |m: &mut SampleRowKeysResponse| { &mut m.offset_bytes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SampleRowKeysResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.row_key.clear(); + self.offset_bytes = 0; + self.special_fields.clear(); } fn default_instance() -> &'static SampleRowKeysResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SampleRowKeysResponse::new) + static instance: SampleRowKeysResponse = SampleRowKeysResponse { + row_key: ::std::vec::Vec::new(), + offset_bytes: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SampleRowKeysResponse { - fn clear(&mut self) { - self.row_key.clear(); - self.offset_bytes = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SampleRowKeysResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SampleRowKeysResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for SampleRowKeysResponse { +impl ::std::fmt::Display for SampleRowKeysResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SampleRowKeysResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for Bigtable.MutateRow. +// @@protoc_insertion_point(message:google.bigtable.v2.MutateRowRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MutateRowRequest { // message fields + /// Required. The unique name of the table to which the mutation should be applied. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowRequest.table_name) pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowRequest.app_profile_id) pub app_profile_id: ::std::string::String, + /// Required. The key of the row to which the mutation should be applied. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowRequest.row_key) pub row_key: ::std::vec::Vec, - pub mutations: ::protobuf::RepeatedField, + /// Required. Changes to be atomically applied to the specified row. Entries are applied + /// in order, meaning that earlier mutations can be masked by later ones. + /// Must contain at least one entry and at most 100000. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowRequest.mutations) + pub mutations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MutateRowRequest { @@ -1703,138 +1123,61 @@ impl MutateRowRequest { ::std::default::Default::default() } - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 4; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // bytes row_key = 2; - - - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } - - // repeated .google.bigtable.v2.Mutation mutations = 3; - - - pub fn get_mutations(&self) -> &[super::data::Mutation] { - &self.mutations - } - pub fn clear_mutations(&mut self) { - self.mutations.clear(); - } - - // Param is passed by value, moved - pub fn set_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.mutations = v; - } - - // Mutable pointer to the field. - pub fn mut_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.mutations - } - - // Take field - pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &MutateRowRequest| { &m.table_name }, + |m: &mut MutateRowRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &MutateRowRequest| { &m.app_profile_id }, + |m: &mut MutateRowRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &MutateRowRequest| { &m.row_key }, + |m: &mut MutateRowRequest| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "mutations", + |m: &MutateRowRequest| { &m.mutations }, + |m: &mut MutateRowRequest| { &mut m.mutations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for MutateRowRequest { + const NAME: &'static str = "MutateRowRequest"; + fn is_initialized(&self) -> bool { - for v in &self.mutations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; + 34 => { + self.app_profile_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; + 18 => { + self.row_key = is.read_bytes()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; + 26 => { + self.mutations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1843,7 +1186,7 @@ impl ::protobuf::Message for MutateRowRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.table_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.table_name); @@ -1856,14 +1199,14 @@ impl ::protobuf::Message for MutateRowRequest { } for value in &self.mutations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.table_name.is_empty() { os.write_string(1, &self.table_name)?; } @@ -1874,109 +1217,68 @@ impl ::protobuf::Message for MutateRowRequest { os.write_bytes(2, &self.row_key)?; } for v in &self.mutations { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MutateRowRequest { MutateRowRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &MutateRowRequest| { &m.table_name }, - |m: &mut MutateRowRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &MutateRowRequest| { &m.app_profile_id }, - |m: &mut MutateRowRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &MutateRowRequest| { &m.row_key }, - |m: &mut MutateRowRequest| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutations", - |m: &MutateRowRequest| { &m.mutations }, - |m: &mut MutateRowRequest| { &mut m.mutations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.table_name.clear(); + self.app_profile_id.clear(); + self.row_key.clear(); + self.mutations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MutateRowRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowRequest::new) + static instance: MutateRowRequest = MutateRowRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + row_key: ::std::vec::Vec::new(), + mutations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MutateRowRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.row_key.clear(); - self.mutations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MutateRowRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MutateRowRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for MutateRowRequest { +impl ::std::fmt::Display for MutateRowRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MutateRowRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for Bigtable.MutateRow. +// @@protoc_insertion_point(message:google.bigtable.v2.MutateRowResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MutateRowResponse { // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MutateRowResponse { @@ -1989,19 +1291,30 @@ impl MutateRowResponse { pub fn new() -> MutateRowResponse { ::std::default::Default::default() } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowResponse", + fields, + oneofs, + ) + } } impl ::protobuf::Message for MutateRowResponse { + const NAME: &'static str = "MutateRowResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2010,93 +1323,81 @@ impl ::protobuf::Message for MutateRowResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MutateRowResponse { MutateRowResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.special_fields.clear(); } fn default_instance() -> &'static MutateRowResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowResponse::new) + static instance: MutateRowResponse = MutateRowResponse { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MutateRowResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MutateRowResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MutateRowResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for MutateRowResponse { +impl ::std::fmt::Display for MutateRowResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MutateRowResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for BigtableService.MutateRows. +// @@protoc_insertion_point(message:google.bigtable.v2.MutateRowsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MutateRowsRequest { // message fields + /// Required. The unique name of the table to which the mutations should be applied. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsRequest.table_name) pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsRequest.app_profile_id) pub app_profile_id: ::std::string::String, - pub entries: ::protobuf::RepeatedField, + /// Required. The row keys and corresponding mutations to be applied in bulk. + /// Each entry is applied as an atomic mutation, but the entries may be + /// applied in arbitrary order (even between entries for the same row). + /// At least one entry must be specified, and in total the entries can + /// contain at most 100000 mutations. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsRequest.entries) + pub entries: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MutateRowsRequest { @@ -2110,109 +1411,53 @@ impl MutateRowsRequest { ::std::default::Default::default() } - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 3; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // repeated .google.bigtable.v2.MutateRowsRequest.Entry entries = 2; - - - pub fn get_entries(&self) -> &[MutateRowsRequest_Entry] { - &self.entries - } - pub fn clear_entries(&mut self) { - self.entries.clear(); - } - - // Param is passed by value, moved - pub fn set_entries(&mut self, v: ::protobuf::RepeatedField) { - self.entries = v; - } - - // Mutable pointer to the field. - pub fn mut_entries(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.entries - } - - // Take field - pub fn take_entries(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.entries, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &MutateRowsRequest| { &m.table_name }, + |m: &mut MutateRowsRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &MutateRowsRequest| { &m.app_profile_id }, + |m: &mut MutateRowsRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "entries", + |m: &MutateRowsRequest| { &m.entries }, + |m: &mut MutateRowsRequest| { &mut m.entries }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for MutateRowsRequest { + const NAME: &'static str = "MutateRowsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.entries { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; + 26 => { + self.app_profile_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; + 18 => { + self.entries.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2221,7 +1466,7 @@ impl ::protobuf::Message for MutateRowsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.table_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.table_name); @@ -2231,14 +1476,14 @@ impl ::protobuf::Message for MutateRowsRequest { } for value in &self.entries { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.table_name.is_empty() { os.write_string(1, &self.table_name)?; } @@ -2246,193 +1491,267 @@ impl ::protobuf::Message for MutateRowsRequest { os.write_string(3, &self.app_profile_id)?; } for v in &self.entries { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MutateRowsRequest { MutateRowsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &MutateRowsRequest| { &m.table_name }, - |m: &mut MutateRowsRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &MutateRowsRequest| { &m.app_profile_id }, - |m: &mut MutateRowsRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "entries", - |m: &MutateRowsRequest| { &m.entries }, - |m: &mut MutateRowsRequest| { &mut m.entries }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.table_name.clear(); + self.app_profile_id.clear(); + self.entries.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MutateRowsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsRequest::new) + static instance: MutateRowsRequest = MutateRowsRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + entries: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MutateRowsRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.entries.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MutateRowsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MutateRowsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for MutateRowsRequest { +impl ::std::fmt::Display for MutateRowsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MutateRowsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `MutateRowsRequest` +pub mod mutate_rows_request { + /// A mutation for a given row. + // @@protoc_insertion_point(message:google.bigtable.v2.MutateRowsRequest.Entry) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Entry { + // message fields + /// The key of the row to which the `mutations` should be applied. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsRequest.Entry.row_key) + pub row_key: ::std::vec::Vec, + /// Required. Changes to be atomically applied to the specified row. Mutations are + /// applied in order, meaning that earlier mutations can be masked by + /// later ones. + /// You must specify at least one mutation. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsRequest.Entry.mutations) + pub mutations: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowsRequest.Entry.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Entry { + fn default() -> &'a Entry { + ::default_instance() + } + } + + impl Entry { + pub fn new() -> Entry { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &Entry| { &m.row_key }, + |m: &mut Entry| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "mutations", + |m: &Entry| { &m.mutations }, + |m: &mut Entry| { &mut m.mutations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowsRequest.Entry", + fields, + oneofs, + ) + } } -} -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowsRequest_Entry { - // message fields - pub row_key: ::std::vec::Vec, - pub mutations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + impl ::protobuf::Message for Entry { + const NAME: &'static str = "Entry"; -impl<'a> ::std::default::Default for &'a MutateRowsRequest_Entry { - fn default() -> &'a MutateRowsRequest_Entry { - ::default_instance() - } -} + fn is_initialized(&self) -> bool { + true + } -impl MutateRowsRequest_Entry { - pub fn new() -> MutateRowsRequest_Entry { - ::std::default::Default::default() - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.row_key = is.read_bytes()?; + }, + 18 => { + self.mutations.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // bytes row_key = 1; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.row_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.row_key); + } + for value in &self.mutations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.row_key.is_empty() { + os.write_bytes(1, &self.row_key)?; + } + for v in &self.mutations { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } + fn new() -> Entry { + Entry::new() + } - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } + fn clear(&mut self) { + self.row_key.clear(); + self.mutations.clear(); + self.special_fields.clear(); + } - // repeated .google.bigtable.v2.Mutation mutations = 2; + fn default_instance() -> &'static Entry { + static instance: Entry = Entry { + row_key: ::std::vec::Vec::new(), + mutations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } + impl ::protobuf::MessageFull for Entry { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("MutateRowsRequest.Entry").unwrap()).clone() + } + } - pub fn get_mutations(&self) -> &[super::data::Mutation] { - &self.mutations + impl ::std::fmt::Display for Entry { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - pub fn clear_mutations(&mut self) { - self.mutations.clear(); + + impl ::protobuf::reflect::ProtobufValue for Entry { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } +} - // Param is passed by value, moved - pub fn set_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.mutations = v; +/// Response message for BigtableService.MutateRows. +// @@protoc_insertion_point(message:google.bigtable.v2.MutateRowsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct MutateRowsResponse { + // message fields + /// One or more results for Entries from the batch request. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsResponse.entries) + pub entries: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a MutateRowsResponse { + fn default() -> &'a MutateRowsResponse { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.mutations +impl MutateRowsResponse { + pub fn new() -> MutateRowsResponse { + ::std::default::Default::default() } - // Take field - pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "entries", + |m: &MutateRowsResponse| { &m.entries }, + |m: &mut MutateRowsResponse| { &mut m.entries }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowsResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for MutateRowsRequest_Entry { +impl ::protobuf::Message for MutateRowsResponse { + const NAME: &'static str = "MutateRowsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.mutations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.entries.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2441,4146 +1760,347 @@ impl ::protobuf::Message for MutateRowsRequest_Entry { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.row_key); - } - for value in &self.mutations { + for value in &self.entries { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.row_key.is_empty() { - os.write_bytes(1, &self.row_key)?; - } - for v in &self.mutations { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.entries { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> MutateRowsResponse { + MutateRowsResponse::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MutateRowsRequest_Entry { - MutateRowsRequest_Entry::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &MutateRowsRequest_Entry| { &m.row_key }, - |m: &mut MutateRowsRequest_Entry| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutations", - |m: &MutateRowsRequest_Entry| { &m.mutations }, - |m: &mut MutateRowsRequest_Entry| { &mut m.mutations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowsRequest.Entry", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MutateRowsRequest_Entry { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsRequest_Entry::new) - } -} - -impl ::protobuf::Clear for MutateRowsRequest_Entry { - fn clear(&mut self) { - self.row_key.clear(); - self.mutations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MutateRowsRequest_Entry { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MutateRowsRequest_Entry { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowsResponse { - // message fields - pub entries: ::protobuf::RepeatedField, - // message oneof groups - pub _rate_limit_info: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowsResponse { - fn default() -> &'a MutateRowsResponse { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum MutateRowsResponse_oneof__rate_limit_info { - rate_limit_info(RateLimitInfo), -} - -impl MutateRowsResponse { - pub fn new() -> MutateRowsResponse { - ::std::default::Default::default() - } - - // repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 1; - - - pub fn get_entries(&self) -> &[MutateRowsResponse_Entry] { - &self.entries - } - pub fn clear_entries(&mut self) { - self.entries.clear(); - } - - // Param is passed by value, moved - pub fn set_entries(&mut self, v: ::protobuf::RepeatedField) { - self.entries = v; - } - - // Mutable pointer to the field. - pub fn mut_entries(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.entries - } - - // Take field - pub fn take_entries(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.entries, ::protobuf::RepeatedField::new()) - } - - // .google.bigtable.v2.RateLimitInfo rate_limit_info = 3; - - - pub fn get_rate_limit_info(&self) -> &RateLimitInfo { - match self._rate_limit_info { - ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_rate_limit_info(&mut self) { - self._rate_limit_info = ::std::option::Option::None; - } - - pub fn has_rate_limit_info(&self) -> bool { - match self._rate_limit_info { - ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_rate_limit_info(&mut self, v: RateLimitInfo) { - self._rate_limit_info = ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(v)) - } - - // Mutable pointer to the field. - pub fn mut_rate_limit_info(&mut self) -> &mut RateLimitInfo { - if let ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(_)) = self._rate_limit_info { - } else { - self._rate_limit_info = ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(RateLimitInfo::new())); - } - match self._rate_limit_info { - ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_rate_limit_info(&mut self) -> RateLimitInfo { - if self.has_rate_limit_info() { - match self._rate_limit_info.take() { - ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(v)) => v, - _ => panic!(), - } - } else { - RateLimitInfo::new() - } - } -} - -impl ::protobuf::Message for MutateRowsResponse { - fn is_initialized(&self) -> bool { - for v in &self.entries { - if !v.is_initialized() { - return false; - } - }; - if let Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(ref v)) = self._rate_limit_info { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.entries)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._rate_limit_info = ::std::option::Option::Some(MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.entries { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let ::std::option::Option::Some(ref v) = self._rate_limit_info { - match v { - &MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.entries { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let ::std::option::Option::Some(ref v) = self._rate_limit_info { - match v { - &MutateRowsResponse_oneof__rate_limit_info::rate_limit_info(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MutateRowsResponse { - MutateRowsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "entries", - |m: &MutateRowsResponse| { &m.entries }, - |m: &mut MutateRowsResponse| { &mut m.entries }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RateLimitInfo>( - "rate_limit_info", - MutateRowsResponse::has_rate_limit_info, - MutateRowsResponse::get_rate_limit_info, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MutateRowsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsResponse::new) - } -} - -impl ::protobuf::Clear for MutateRowsResponse { fn clear(&mut self) { self.entries.clear(); - self._rate_limit_info = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MutateRowsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MutateRowsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MutateRowsResponse_Entry { - // message fields - pub index: i64, - pub status: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MutateRowsResponse_Entry { - fn default() -> &'a MutateRowsResponse_Entry { - ::default_instance() - } -} - -impl MutateRowsResponse_Entry { - pub fn new() -> MutateRowsResponse_Entry { - ::std::default::Default::default() - } - - // int64 index = 1; - - - pub fn get_index(&self) -> i64 { - self.index - } - pub fn clear_index(&mut self) { - self.index = 0; - } - - // Param is passed by value, moved - pub fn set_index(&mut self, v: i64) { - self.index = v; - } - - // .google.rpc.Status status = 2; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) - } -} - -impl ::protobuf::Message for MutateRowsResponse_Entry { - fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.index = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.index != 0 { - my_size += ::protobuf::rt::value_size(1, self.index, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.index != 0 { - os.write_int64(1, self.index)?; - } - if let Some(ref v) = self.status.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MutateRowsResponse_Entry { - MutateRowsResponse_Entry::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "index", - |m: &MutateRowsResponse_Entry| { &m.index }, - |m: &mut MutateRowsResponse_Entry| { &mut m.index }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &MutateRowsResponse_Entry| { &m.status }, - |m: &mut MutateRowsResponse_Entry| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MutateRowsResponse.Entry", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MutateRowsResponse_Entry { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MutateRowsResponse_Entry::new) - } -} - -impl ::protobuf::Clear for MutateRowsResponse_Entry { - fn clear(&mut self) { - self.index = 0; - self.status.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MutateRowsResponse_Entry { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MutateRowsResponse_Entry { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RateLimitInfo { - // message fields - pub period: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub factor: f64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RateLimitInfo { - fn default() -> &'a RateLimitInfo { - ::default_instance() - } -} - -impl RateLimitInfo { - pub fn new() -> RateLimitInfo { - ::std::default::Default::default() - } - - // .google.protobuf.Duration period = 1; - - - pub fn get_period(&self) -> &::protobuf::well_known_types::Duration { - self.period.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_period(&mut self) { - self.period.clear(); - } - - pub fn has_period(&self) -> bool { - self.period.is_some() - } - - // Param is passed by value, moved - pub fn set_period(&mut self, v: ::protobuf::well_known_types::Duration) { - self.period = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_period(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.period.is_none() { - self.period.set_default(); - } - self.period.as_mut().unwrap() - } - - // Take field - pub fn take_period(&mut self) -> ::protobuf::well_known_types::Duration { - self.period.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // double factor = 2; - - - pub fn get_factor(&self) -> f64 { - self.factor - } - pub fn clear_factor(&mut self) { - self.factor = 0.; - } - - // Param is passed by value, moved - pub fn set_factor(&mut self, v: f64) { - self.factor = v; - } -} - -impl ::protobuf::Message for RateLimitInfo { - fn is_initialized(&self) -> bool { - for v in &self.period { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.period)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.factor = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.period.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.factor != 0. { - my_size += 9; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.period.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.factor != 0. { - os.write_double(2, self.factor)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RateLimitInfo { - RateLimitInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "period", - |m: &RateLimitInfo| { &m.period }, - |m: &mut RateLimitInfo| { &mut m.period }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "factor", - |m: &RateLimitInfo| { &m.factor }, - |m: &mut RateLimitInfo| { &mut m.factor }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RateLimitInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RateLimitInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RateLimitInfo::new) - } -} - -impl ::protobuf::Clear for RateLimitInfo { - fn clear(&mut self) { - self.period.clear(); - self.factor = 0.; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RateLimitInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RateLimitInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckAndMutateRowRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub row_key: ::std::vec::Vec, - pub predicate_filter: ::protobuf::SingularPtrField, - pub true_mutations: ::protobuf::RepeatedField, - pub false_mutations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckAndMutateRowRequest { - fn default() -> &'a CheckAndMutateRowRequest { - ::default_instance() - } -} - -impl CheckAndMutateRowRequest { - pub fn new() -> CheckAndMutateRowRequest { - ::std::default::Default::default() - } - - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 7; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // bytes row_key = 2; - - - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } - - // .google.bigtable.v2.RowFilter predicate_filter = 6; - - - pub fn get_predicate_filter(&self) -> &super::data::RowFilter { - self.predicate_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_predicate_filter(&mut self) { - self.predicate_filter.clear(); - } - - pub fn has_predicate_filter(&self) -> bool { - self.predicate_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_predicate_filter(&mut self, v: super::data::RowFilter) { - self.predicate_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_predicate_filter(&mut self) -> &mut super::data::RowFilter { - if self.predicate_filter.is_none() { - self.predicate_filter.set_default(); - } - self.predicate_filter.as_mut().unwrap() - } - - // Take field - pub fn take_predicate_filter(&mut self) -> super::data::RowFilter { - self.predicate_filter.take().unwrap_or_else(|| super::data::RowFilter::new()) - } - - // repeated .google.bigtable.v2.Mutation true_mutations = 4; - - - pub fn get_true_mutations(&self) -> &[super::data::Mutation] { - &self.true_mutations - } - pub fn clear_true_mutations(&mut self) { - self.true_mutations.clear(); - } - - // Param is passed by value, moved - pub fn set_true_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.true_mutations = v; - } - - // Mutable pointer to the field. - pub fn mut_true_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.true_mutations - } - - // Take field - pub fn take_true_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.true_mutations, ::protobuf::RepeatedField::new()) - } - - // repeated .google.bigtable.v2.Mutation false_mutations = 5; - - - pub fn get_false_mutations(&self) -> &[super::data::Mutation] { - &self.false_mutations - } - pub fn clear_false_mutations(&mut self) { - self.false_mutations.clear(); - } - - // Param is passed by value, moved - pub fn set_false_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.false_mutations = v; - } - - // Mutable pointer to the field. - pub fn mut_false_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.false_mutations - } - - // Take field - pub fn take_false_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.false_mutations, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for CheckAndMutateRowRequest { - fn is_initialized(&self) -> bool { - for v in &self.predicate_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.true_mutations { - if !v.is_initialized() { - return false; - } - }; - for v in &self.false_mutations { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.predicate_filter)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.true_mutations)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.false_mutations)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table_name); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.app_profile_id); - } - if !self.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.row_key); - } - if let Some(ref v) = self.predicate_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.true_mutations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.false_mutations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table_name.is_empty() { - os.write_string(1, &self.table_name)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(7, &self.app_profile_id)?; - } - if !self.row_key.is_empty() { - os.write_bytes(2, &self.row_key)?; - } - if let Some(ref v) = self.predicate_filter.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.true_mutations { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.false_mutations { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckAndMutateRowRequest { - CheckAndMutateRowRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &CheckAndMutateRowRequest| { &m.table_name }, - |m: &mut CheckAndMutateRowRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &CheckAndMutateRowRequest| { &m.app_profile_id }, - |m: &mut CheckAndMutateRowRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &CheckAndMutateRowRequest| { &m.row_key }, - |m: &mut CheckAndMutateRowRequest| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "predicate_filter", - |m: &CheckAndMutateRowRequest| { &m.predicate_filter }, - |m: &mut CheckAndMutateRowRequest| { &mut m.predicate_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "true_mutations", - |m: &CheckAndMutateRowRequest| { &m.true_mutations }, - |m: &mut CheckAndMutateRowRequest| { &mut m.true_mutations }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "false_mutations", - |m: &CheckAndMutateRowRequest| { &m.false_mutations }, - |m: &mut CheckAndMutateRowRequest| { &mut m.false_mutations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckAndMutateRowRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckAndMutateRowRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckAndMutateRowRequest::new) - } -} - -impl ::protobuf::Clear for CheckAndMutateRowRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.row_key.clear(); - self.predicate_filter.clear(); - self.true_mutations.clear(); - self.false_mutations.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckAndMutateRowRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckAndMutateRowRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CheckAndMutateRowResponse { - // message fields - pub predicate_matched: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckAndMutateRowResponse { - fn default() -> &'a CheckAndMutateRowResponse { - ::default_instance() - } -} - -impl CheckAndMutateRowResponse { - pub fn new() -> CheckAndMutateRowResponse { - ::std::default::Default::default() - } - - // bool predicate_matched = 1; - - - pub fn get_predicate_matched(&self) -> bool { - self.predicate_matched - } - pub fn clear_predicate_matched(&mut self) { - self.predicate_matched = false; - } - - // Param is passed by value, moved - pub fn set_predicate_matched(&mut self, v: bool) { - self.predicate_matched = v; - } -} - -impl ::protobuf::Message for CheckAndMutateRowResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.predicate_matched = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.predicate_matched != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.predicate_matched != false { - os.write_bool(1, self.predicate_matched)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckAndMutateRowResponse { - CheckAndMutateRowResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "predicate_matched", - |m: &CheckAndMutateRowResponse| { &m.predicate_matched }, - |m: &mut CheckAndMutateRowResponse| { &mut m.predicate_matched }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckAndMutateRowResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CheckAndMutateRowResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CheckAndMutateRowResponse::new) - } -} - -impl ::protobuf::Clear for CheckAndMutateRowResponse { - fn clear(&mut self) { - self.predicate_matched = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckAndMutateRowResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckAndMutateRowResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PingAndWarmRequest { - // message fields - pub name: ::std::string::String, - pub app_profile_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PingAndWarmRequest { - fn default() -> &'a PingAndWarmRequest { - ::default_instance() - } -} - -impl PingAndWarmRequest { - pub fn new() -> PingAndWarmRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string app_profile_id = 2; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PingAndWarmRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(2, &self.app_profile_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PingAndWarmRequest { - PingAndWarmRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &PingAndWarmRequest| { &m.name }, - |m: &mut PingAndWarmRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &PingAndWarmRequest| { &m.app_profile_id }, - |m: &mut PingAndWarmRequest| { &mut m.app_profile_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PingAndWarmRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PingAndWarmRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PingAndWarmRequest::new) - } -} - -impl ::protobuf::Clear for PingAndWarmRequest { - fn clear(&mut self) { - self.name.clear(); - self.app_profile_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PingAndWarmRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PingAndWarmRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PingAndWarmResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PingAndWarmResponse { - fn default() -> &'a PingAndWarmResponse { - ::default_instance() - } -} - -impl PingAndWarmResponse { - pub fn new() -> PingAndWarmResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for PingAndWarmResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PingAndWarmResponse { - PingAndWarmResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PingAndWarmResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PingAndWarmResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PingAndWarmResponse::new) - } -} - -impl ::protobuf::Clear for PingAndWarmResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PingAndWarmResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PingAndWarmResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadModifyWriteRowRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub row_key: ::std::vec::Vec, - pub rules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadModifyWriteRowRequest { - fn default() -> &'a ReadModifyWriteRowRequest { - ::default_instance() - } -} - -impl ReadModifyWriteRowRequest { - pub fn new() -> ReadModifyWriteRowRequest { - ::std::default::Default::default() - } - - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 4; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // bytes row_key = 2; - - - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } - - // repeated .google.bigtable.v2.ReadModifyWriteRule rules = 3; - - - pub fn get_rules(&self) -> &[super::data::ReadModifyWriteRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ReadModifyWriteRowRequest { - fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table_name); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.app_profile_id); - } - if !self.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.row_key); - } - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table_name.is_empty() { - os.write_string(1, &self.table_name)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(4, &self.app_profile_id)?; - } - if !self.row_key.is_empty() { - os.write_bytes(2, &self.row_key)?; - } - for v in &self.rules { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadModifyWriteRowRequest { - ReadModifyWriteRowRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &ReadModifyWriteRowRequest| { &m.table_name }, - |m: &mut ReadModifyWriteRowRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &ReadModifyWriteRowRequest| { &m.app_profile_id }, - |m: &mut ReadModifyWriteRowRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &ReadModifyWriteRowRequest| { &m.row_key }, - |m: &mut ReadModifyWriteRowRequest| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &ReadModifyWriteRowRequest| { &m.rules }, - |m: &mut ReadModifyWriteRowRequest| { &mut m.rules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadModifyWriteRowRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadModifyWriteRowRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadModifyWriteRowRequest::new) - } -} - -impl ::protobuf::Clear for ReadModifyWriteRowRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.row_key.clear(); - self.rules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadModifyWriteRowRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRowRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadModifyWriteRowResponse { - // message fields - pub row: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadModifyWriteRowResponse { - fn default() -> &'a ReadModifyWriteRowResponse { - ::default_instance() - } -} - -impl ReadModifyWriteRowResponse { - pub fn new() -> ReadModifyWriteRowResponse { - ::std::default::Default::default() - } - - // .google.bigtable.v2.Row row = 1; - - - pub fn get_row(&self) -> &super::data::Row { - self.row.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_row(&mut self) { - self.row.clear(); - } - - pub fn has_row(&self) -> bool { - self.row.is_some() - } - - // Param is passed by value, moved - pub fn set_row(&mut self, v: super::data::Row) { - self.row = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row(&mut self) -> &mut super::data::Row { - if self.row.is_none() { - self.row.set_default(); - } - self.row.as_mut().unwrap() - } - - // Take field - pub fn take_row(&mut self) -> super::data::Row { - self.row.take().unwrap_or_else(|| super::data::Row::new()) - } -} - -impl ::protobuf::Message for ReadModifyWriteRowResponse { - fn is_initialized(&self) -> bool { - for v in &self.row { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.row.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.row.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadModifyWriteRowResponse { - ReadModifyWriteRowResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "row", - |m: &ReadModifyWriteRowResponse| { &m.row }, - |m: &mut ReadModifyWriteRowResponse| { &mut m.row }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadModifyWriteRowResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadModifyWriteRowResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadModifyWriteRowResponse::new) - } -} - -impl ::protobuf::Clear for ReadModifyWriteRowResponse { - fn clear(&mut self) { - self.row.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadModifyWriteRowResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRowResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateInitialChangeStreamPartitionsRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateInitialChangeStreamPartitionsRequest { - fn default() -> &'a GenerateInitialChangeStreamPartitionsRequest { - ::default_instance() - } -} - -impl GenerateInitialChangeStreamPartitionsRequest { - pub fn new() -> GenerateInitialChangeStreamPartitionsRequest { - ::std::default::Default::default() - } - - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 2; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GenerateInitialChangeStreamPartitionsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table_name); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table_name.is_empty() { - os.write_string(1, &self.table_name)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(2, &self.app_profile_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GenerateInitialChangeStreamPartitionsRequest { - GenerateInitialChangeStreamPartitionsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &GenerateInitialChangeStreamPartitionsRequest| { &m.table_name }, - |m: &mut GenerateInitialChangeStreamPartitionsRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &GenerateInitialChangeStreamPartitionsRequest| { &m.app_profile_id }, - |m: &mut GenerateInitialChangeStreamPartitionsRequest| { &mut m.app_profile_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateInitialChangeStreamPartitionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GenerateInitialChangeStreamPartitionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateInitialChangeStreamPartitionsRequest::new) - } -} - -impl ::protobuf::Clear for GenerateInitialChangeStreamPartitionsRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GenerateInitialChangeStreamPartitionsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GenerateInitialChangeStreamPartitionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GenerateInitialChangeStreamPartitionsResponse { - // message fields - pub partition: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GenerateInitialChangeStreamPartitionsResponse { - fn default() -> &'a GenerateInitialChangeStreamPartitionsResponse { - ::default_instance() - } -} - -impl GenerateInitialChangeStreamPartitionsResponse { - pub fn new() -> GenerateInitialChangeStreamPartitionsResponse { - ::std::default::Default::default() - } - - // .google.bigtable.v2.StreamPartition partition = 1; - - - pub fn get_partition(&self) -> &super::data::StreamPartition { - self.partition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_partition(&mut self) { - self.partition.clear(); - } - - pub fn has_partition(&self) -> bool { - self.partition.is_some() - } - - // Param is passed by value, moved - pub fn set_partition(&mut self, v: super::data::StreamPartition) { - self.partition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition(&mut self) -> &mut super::data::StreamPartition { - if self.partition.is_none() { - self.partition.set_default(); - } - self.partition.as_mut().unwrap() - } - - // Take field - pub fn take_partition(&mut self) -> super::data::StreamPartition { - self.partition.take().unwrap_or_else(|| super::data::StreamPartition::new()) - } -} - -impl ::protobuf::Message for GenerateInitialChangeStreamPartitionsResponse { - fn is_initialized(&self) -> bool { - for v in &self.partition { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.partition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.partition.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GenerateInitialChangeStreamPartitionsResponse { - GenerateInitialChangeStreamPartitionsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition", - |m: &GenerateInitialChangeStreamPartitionsResponse| { &m.partition }, - |m: &mut GenerateInitialChangeStreamPartitionsResponse| { &mut m.partition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GenerateInitialChangeStreamPartitionsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GenerateInitialChangeStreamPartitionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GenerateInitialChangeStreamPartitionsResponse::new) - } -} - -impl ::protobuf::Clear for GenerateInitialChangeStreamPartitionsResponse { - fn clear(&mut self) { - self.partition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GenerateInitialChangeStreamPartitionsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GenerateInitialChangeStreamPartitionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamRequest { - // message fields - pub table_name: ::std::string::String, - pub app_profile_id: ::std::string::String, - pub partition: ::protobuf::SingularPtrField, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub heartbeat_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // message oneof groups - pub start_from: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadChangeStreamRequest { - fn default() -> &'a ReadChangeStreamRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadChangeStreamRequest_oneof_start_from { - start_time(::protobuf::well_known_types::Timestamp), - continuation_tokens(super::data::StreamContinuationTokens), -} - -impl ReadChangeStreamRequest { - pub fn new() -> ReadChangeStreamRequest { - ::std::default::Default::default() - } - - // string table_name = 1; - - - pub fn get_table_name(&self) -> &str { - &self.table_name - } - pub fn clear_table_name(&mut self) { - self.table_name.clear(); - } - - // Param is passed by value, moved - pub fn set_table_name(&mut self, v: ::std::string::String) { - self.table_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_name(&mut self) -> &mut ::std::string::String { - &mut self.table_name - } - - // Take field - pub fn take_table_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_name, ::std::string::String::new()) - } - - // string app_profile_id = 2; - - - pub fn get_app_profile_id(&self) -> &str { - &self.app_profile_id - } - pub fn clear_app_profile_id(&mut self) { - self.app_profile_id.clear(); - } - - // Param is passed by value, moved - pub fn set_app_profile_id(&mut self, v: ::std::string::String) { - self.app_profile_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_app_profile_id(&mut self) -> &mut ::std::string::String { - &mut self.app_profile_id - } - - // Take field - pub fn take_app_profile_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.app_profile_id, ::std::string::String::new()) - } - - // .google.bigtable.v2.StreamPartition partition = 3; - - - pub fn get_partition(&self) -> &super::data::StreamPartition { - self.partition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_partition(&mut self) { - self.partition.clear(); - } - - pub fn has_partition(&self) -> bool { - self.partition.is_some() - } - - // Param is passed by value, moved - pub fn set_partition(&mut self, v: super::data::StreamPartition) { - self.partition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition(&mut self) -> &mut super::data::StreamPartition { - if self.partition.is_none() { - self.partition.set_default(); - } - self.partition.as_mut().unwrap() - } - - // Take field - pub fn take_partition(&mut self) -> super::data::StreamPartition { - self.partition.take().unwrap_or_else(|| super::data::StreamPartition::new()) - } - - // .google.protobuf.Timestamp start_time = 4; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), - } - } - pub fn clear_start_time(&mut self) { - self.start_from = ::std::option::Option::None; - } - - pub fn has_start_time(&self) -> bool { - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(v)) - } - - // Mutable pointer to the field. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(_)) = self.start_from { - } else { - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(::protobuf::well_known_types::Timestamp::new())); - } - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_start_time() { - match self.start_from.take() { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Timestamp::new() - } - } - - // .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6; - - - pub fn get_continuation_tokens(&self) -> &super::data::StreamContinuationTokens { - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_continuation_tokens(&mut self) { - self.start_from = ::std::option::Option::None; - } - - pub fn has_continuation_tokens(&self) -> bool { - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_continuation_tokens(&mut self, v: super::data::StreamContinuationTokens) { - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(v)) - } - - // Mutable pointer to the field. - pub fn mut_continuation_tokens(&mut self) -> &mut super::data::StreamContinuationTokens { - if let ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(_)) = self.start_from { - } else { - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(super::data::StreamContinuationTokens::new())); - } - match self.start_from { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_continuation_tokens(&mut self) -> super::data::StreamContinuationTokens { - if self.has_continuation_tokens() { - match self.start_from.take() { - ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(v)) => v, - _ => panic!(), - } - } else { - super::data::StreamContinuationTokens::new() - } - } - - // .google.protobuf.Timestamp end_time = 5; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Duration heartbeat_duration = 7; - - - pub fn get_heartbeat_duration(&self) -> &::protobuf::well_known_types::Duration { - self.heartbeat_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_heartbeat_duration(&mut self) { - self.heartbeat_duration.clear(); - } - - pub fn has_heartbeat_duration(&self) -> bool { - self.heartbeat_duration.is_some() - } - - // Param is passed by value, moved - pub fn set_heartbeat_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.heartbeat_duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_heartbeat_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.heartbeat_duration.is_none() { - self.heartbeat_duration.set_default(); - } - self.heartbeat_duration.as_mut().unwrap() - } - - // Take field - pub fn take_heartbeat_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.heartbeat_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for ReadChangeStreamRequest { - fn is_initialized(&self) -> bool { - for v in &self.partition { - if !v.is_initialized() { - return false; - } - }; - if let Some(ReadChangeStreamRequest_oneof_start_from::start_time(ref v)) = self.start_from { - if !v.is_initialized() { - return false; - } - } - if let Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(ref v)) = self.start_from { - if !v.is_initialized() { - return false; - } - } - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.heartbeat_duration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_profile_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::start_time(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_from = ::std::option::Option::Some(ReadChangeStreamRequest_oneof_start_from::continuation_tokens(is.read_message()?)); - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.heartbeat_duration)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table_name); - } - if !self.app_profile_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.app_profile_id); - } - if let Some(ref v) = self.partition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.heartbeat_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.start_from { - match v { - &ReadChangeStreamRequest_oneof_start_from::start_time(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReadChangeStreamRequest_oneof_start_from::continuation_tokens(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table_name.is_empty() { - os.write_string(1, &self.table_name)?; - } - if !self.app_profile_id.is_empty() { - os.write_string(2, &self.app_profile_id)?; - } - if let Some(ref v) = self.partition.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.heartbeat_duration.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.start_from { - match v { - &ReadChangeStreamRequest_oneof_start_from::start_time(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReadChangeStreamRequest_oneof_start_from::continuation_tokens(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadChangeStreamRequest { - ReadChangeStreamRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_name", - |m: &ReadChangeStreamRequest| { &m.table_name }, - |m: &mut ReadChangeStreamRequest| { &mut m.table_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "app_profile_id", - |m: &ReadChangeStreamRequest| { &m.app_profile_id }, - |m: &mut ReadChangeStreamRequest| { &mut m.app_profile_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition", - |m: &ReadChangeStreamRequest| { &m.partition }, - |m: &mut ReadChangeStreamRequest| { &mut m.partition }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( - "start_time", - ReadChangeStreamRequest::has_start_time, - ReadChangeStreamRequest::get_start_time, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::data::StreamContinuationTokens>( - "continuation_tokens", - ReadChangeStreamRequest::has_continuation_tokens, - ReadChangeStreamRequest::get_continuation_tokens, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &ReadChangeStreamRequest| { &m.end_time }, - |m: &mut ReadChangeStreamRequest| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "heartbeat_duration", - |m: &ReadChangeStreamRequest| { &m.heartbeat_duration }, - |m: &mut ReadChangeStreamRequest| { &mut m.heartbeat_duration }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadChangeStreamRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamRequest::new) - } -} - -impl ::protobuf::Clear for ReadChangeStreamRequest { - fn clear(&mut self) { - self.table_name.clear(); - self.app_profile_id.clear(); - self.partition.clear(); - self.start_from = ::std::option::Option::None; - self.start_from = ::std::option::Option::None; - self.end_time.clear(); - self.heartbeat_duration.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadChangeStreamRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse { - // message oneof groups - pub stream_record: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse { - fn default() -> &'a ReadChangeStreamResponse { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadChangeStreamResponse_oneof_stream_record { - data_change(ReadChangeStreamResponse_DataChange), - heartbeat(ReadChangeStreamResponse_Heartbeat), - close_stream(ReadChangeStreamResponse_CloseStream), -} - -impl ReadChangeStreamResponse { - pub fn new() -> ReadChangeStreamResponse { - ::std::default::Default::default() - } - - // .google.bigtable.v2.ReadChangeStreamResponse.DataChange data_change = 1; - - - pub fn get_data_change(&self) -> &ReadChangeStreamResponse_DataChange { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_data_change(&mut self) { - self.stream_record = ::std::option::Option::None; - } - - pub fn has_data_change(&self) -> bool { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_data_change(&mut self, v: ReadChangeStreamResponse_DataChange) { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(v)) - } - - // Mutable pointer to the field. - pub fn mut_data_change(&mut self) -> &mut ReadChangeStreamResponse_DataChange { - if let ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(_)) = self.stream_record { - } else { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(ReadChangeStreamResponse_DataChange::new())); - } - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_data_change(&mut self) -> ReadChangeStreamResponse_DataChange { - if self.has_data_change() { - match self.stream_record.take() { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(v)) => v, - _ => panic!(), - } - } else { - ReadChangeStreamResponse_DataChange::new() - } - } - - // .google.bigtable.v2.ReadChangeStreamResponse.Heartbeat heartbeat = 2; - - - pub fn get_heartbeat(&self) -> &ReadChangeStreamResponse_Heartbeat { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_heartbeat(&mut self) { - self.stream_record = ::std::option::Option::None; - } - - pub fn has_heartbeat(&self) -> bool { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_heartbeat(&mut self, v: ReadChangeStreamResponse_Heartbeat) { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(v)) - } - - // Mutable pointer to the field. - pub fn mut_heartbeat(&mut self) -> &mut ReadChangeStreamResponse_Heartbeat { - if let ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(_)) = self.stream_record { - } else { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(ReadChangeStreamResponse_Heartbeat::new())); - } - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_heartbeat(&mut self) -> ReadChangeStreamResponse_Heartbeat { - if self.has_heartbeat() { - match self.stream_record.take() { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(v)) => v, - _ => panic!(), - } - } else { - ReadChangeStreamResponse_Heartbeat::new() - } - } - - // .google.bigtable.v2.ReadChangeStreamResponse.CloseStream close_stream = 3; - - - pub fn get_close_stream(&self) -> &ReadChangeStreamResponse_CloseStream { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_close_stream(&mut self) { - self.stream_record = ::std::option::Option::None; - } - - pub fn has_close_stream(&self) -> bool { - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_close_stream(&mut self, v: ReadChangeStreamResponse_CloseStream) { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(v)) - } - - // Mutable pointer to the field. - pub fn mut_close_stream(&mut self) -> &mut ReadChangeStreamResponse_CloseStream { - if let ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(_)) = self.stream_record { - } else { - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(ReadChangeStreamResponse_CloseStream::new())); - } - match self.stream_record { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_close_stream(&mut self) -> ReadChangeStreamResponse_CloseStream { - if self.has_close_stream() { - match self.stream_record.take() { - ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(v)) => v, - _ => panic!(), - } - } else { - ReadChangeStreamResponse_CloseStream::new() - } - } -} - -impl ::protobuf::Message for ReadChangeStreamResponse { - fn is_initialized(&self) -> bool { - if let Some(ReadChangeStreamResponse_oneof_stream_record::data_change(ref v)) = self.stream_record { - if !v.is_initialized() { - return false; - } - } - if let Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(ref v)) = self.stream_record { - if !v.is_initialized() { - return false; - } - } - if let Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(ref v)) = self.stream_record { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::data_change(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::heartbeat(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.stream_record = ::std::option::Option::Some(ReadChangeStreamResponse_oneof_stream_record::close_stream(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.stream_record { - match v { - &ReadChangeStreamResponse_oneof_stream_record::data_change(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReadChangeStreamResponse_oneof_stream_record::heartbeat(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReadChangeStreamResponse_oneof_stream_record::close_stream(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.stream_record { - match v { - &ReadChangeStreamResponse_oneof_stream_record::data_change(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReadChangeStreamResponse_oneof_stream_record::heartbeat(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReadChangeStreamResponse_oneof_stream_record::close_stream(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadChangeStreamResponse { - ReadChangeStreamResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ReadChangeStreamResponse_DataChange>( - "data_change", - ReadChangeStreamResponse::has_data_change, - ReadChangeStreamResponse::get_data_change, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ReadChangeStreamResponse_Heartbeat>( - "heartbeat", - ReadChangeStreamResponse::has_heartbeat, - ReadChangeStreamResponse::get_heartbeat, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ReadChangeStreamResponse_CloseStream>( - "close_stream", - ReadChangeStreamResponse::has_close_stream, - ReadChangeStreamResponse::get_close_stream, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadChangeStreamResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse::new) - } -} - -impl ::protobuf::Clear for ReadChangeStreamResponse { - fn clear(&mut self) { - self.stream_record = ::std::option::Option::None; - self.stream_record = ::std::option::Option::None; - self.stream_record = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadChangeStreamResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse_MutationChunk { - // message fields - pub chunk_info: ::protobuf::SingularPtrField, - pub mutation: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse_MutationChunk { - fn default() -> &'a ReadChangeStreamResponse_MutationChunk { - ::default_instance() - } -} - -impl ReadChangeStreamResponse_MutationChunk { - pub fn new() -> ReadChangeStreamResponse_MutationChunk { - ::std::default::Default::default() - } - - // .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfo chunk_info = 1; - - - pub fn get_chunk_info(&self) -> &ReadChangeStreamResponse_MutationChunk_ChunkInfo { - self.chunk_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_chunk_info(&mut self) { - self.chunk_info.clear(); - } - - pub fn has_chunk_info(&self) -> bool { - self.chunk_info.is_some() - } - - // Param is passed by value, moved - pub fn set_chunk_info(&mut self, v: ReadChangeStreamResponse_MutationChunk_ChunkInfo) { - self.chunk_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_chunk_info(&mut self) -> &mut ReadChangeStreamResponse_MutationChunk_ChunkInfo { - if self.chunk_info.is_none() { - self.chunk_info.set_default(); - } - self.chunk_info.as_mut().unwrap() - } - - // Take field - pub fn take_chunk_info(&mut self) -> ReadChangeStreamResponse_MutationChunk_ChunkInfo { - self.chunk_info.take().unwrap_or_else(|| ReadChangeStreamResponse_MutationChunk_ChunkInfo::new()) - } - - // .google.bigtable.v2.Mutation mutation = 2; - - - pub fn get_mutation(&self) -> &super::data::Mutation { - self.mutation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_mutation(&mut self) { - self.mutation.clear(); - } - - pub fn has_mutation(&self) -> bool { - self.mutation.is_some() - } - - // Param is passed by value, moved - pub fn set_mutation(&mut self, v: super::data::Mutation) { - self.mutation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_mutation(&mut self) -> &mut super::data::Mutation { - if self.mutation.is_none() { - self.mutation.set_default(); - } - self.mutation.as_mut().unwrap() - } - - // Take field - pub fn take_mutation(&mut self) -> super::data::Mutation { - self.mutation.take().unwrap_or_else(|| super::data::Mutation::new()) - } -} - -impl ::protobuf::Message for ReadChangeStreamResponse_MutationChunk { - fn is_initialized(&self) -> bool { - for v in &self.chunk_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.mutation { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.chunk_info)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.mutation)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.chunk_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.mutation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.chunk_info.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.mutation.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadChangeStreamResponse_MutationChunk { - ReadChangeStreamResponse_MutationChunk::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "chunk_info", - |m: &ReadChangeStreamResponse_MutationChunk| { &m.chunk_info }, - |m: &mut ReadChangeStreamResponse_MutationChunk| { &mut m.chunk_info }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutation", - |m: &ReadChangeStreamResponse_MutationChunk| { &m.mutation }, - |m: &mut ReadChangeStreamResponse_MutationChunk| { &mut m.mutation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse.MutationChunk", - fields, - file_descriptor_proto() - ) - }) + self.special_fields.clear(); } - fn default_instance() -> &'static ReadChangeStreamResponse_MutationChunk { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse_MutationChunk::new) + fn default_instance() -> &'static MutateRowsResponse { + static instance: MutateRowsResponse = MutateRowsResponse { + entries: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReadChangeStreamResponse_MutationChunk { - fn clear(&mut self) { - self.chunk_info.clear(); - self.mutation.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MutateRowsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MutateRowsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ReadChangeStreamResponse_MutationChunk { +impl ::std::fmt::Display for MutateRowsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_MutationChunk { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse_MutationChunk_ChunkInfo { - // message fields - pub chunked_value_size: i32, - pub chunked_value_offset: i32, - pub last_chunk: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse_MutationChunk_ChunkInfo { - fn default() -> &'a ReadChangeStreamResponse_MutationChunk_ChunkInfo { - ::default_instance() - } -} - -impl ReadChangeStreamResponse_MutationChunk_ChunkInfo { - pub fn new() -> ReadChangeStreamResponse_MutationChunk_ChunkInfo { - ::std::default::Default::default() - } - - // int32 chunked_value_size = 1; - - - pub fn get_chunked_value_size(&self) -> i32 { - self.chunked_value_size - } - pub fn clear_chunked_value_size(&mut self) { - self.chunked_value_size = 0; - } - - // Param is passed by value, moved - pub fn set_chunked_value_size(&mut self, v: i32) { - self.chunked_value_size = v; +impl ::protobuf::reflect::ProtobufValue for MutateRowsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `MutateRowsResponse` +pub mod mutate_rows_response { + /// The result of applying a passed mutation in the original request. + // @@protoc_insertion_point(message:google.bigtable.v2.MutateRowsResponse.Entry) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Entry { + // message fields + /// The index into the original request's `entries` list of the Entry + /// for which a result is being reported. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsResponse.Entry.index) + pub index: i64, + /// The result of the request Entry identified by `index`. + /// Depending on how requests are batched during execution, it is possible + /// for one Entry to fail due to an error with another Entry. In the event + /// that this occurs, the same error will be reported for both entries. + // @@protoc_insertion_point(field:google.bigtable.v2.MutateRowsResponse.Entry.status) + pub status: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.MutateRowsResponse.Entry.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Entry { + fn default() -> &'a Entry { + ::default_instance() + } + } + + impl Entry { + pub fn new() -> Entry { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "index", + |m: &Entry| { &m.index }, + |m: &mut Entry| { &mut m.index }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::status::Status>( + "status", + |m: &Entry| { &m.status }, + |m: &mut Entry| { &mut m.status }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MutateRowsResponse.Entry", + fields, + oneofs, + ) + } } - // int32 chunked_value_offset = 2; + impl ::protobuf::Message for Entry { + const NAME: &'static str = "Entry"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_chunked_value_offset(&self) -> i32 { - self.chunked_value_offset - } - pub fn clear_chunked_value_offset(&mut self) { - self.chunked_value_offset = 0; - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.index = is.read_int64()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.status)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_chunked_value_offset(&mut self, v: i32) { - self.chunked_value_offset = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.index != 0 { + my_size += ::protobuf::rt::int64_size(1, self.index); + } + if let Some(v) = self.status.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // bool last_chunk = 3; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.index != 0 { + os.write_int64(1, self.index)?; + } + if let Some(v) = self.status.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_last_chunk(&self) -> bool { - self.last_chunk - } - pub fn clear_last_chunk(&mut self) { - self.last_chunk = false; - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Param is passed by value, moved - pub fn set_last_chunk(&mut self, v: bool) { - self.last_chunk = v; - } -} + fn new() -> Entry { + Entry::new() + } -impl ::protobuf::Message for ReadChangeStreamResponse_MutationChunk_ChunkInfo { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.index = 0; + self.status.clear(); + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.chunked_value_size = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.chunked_value_offset = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.last_chunk = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static Entry { + static instance: Entry = Entry { + index: 0, + status: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.chunked_value_size != 0 { - my_size += ::protobuf::rt::value_size(1, self.chunked_value_size, ::protobuf::wire_format::WireTypeVarint); - } - if self.chunked_value_offset != 0 { - my_size += ::protobuf::rt::value_size(2, self.chunked_value_offset, ::protobuf::wire_format::WireTypeVarint); + impl ::protobuf::MessageFull for Entry { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("MutateRowsResponse.Entry").unwrap()).clone() } - if self.last_chunk != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.chunked_value_size != 0 { - os.write_int32(1, self.chunked_value_size)?; + impl ::std::fmt::Display for Entry { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - if self.chunked_value_offset != 0 { - os.write_int32(2, self.chunked_value_offset)?; - } - if self.last_chunk != false { - os.write_bool(3, self.last_chunk)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadChangeStreamResponse_MutationChunk_ChunkInfo { - ReadChangeStreamResponse_MutationChunk_ChunkInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "chunked_value_size", - |m: &ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &m.chunked_value_size }, - |m: &mut ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &mut m.chunked_value_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "chunked_value_offset", - |m: &ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &m.chunked_value_offset }, - |m: &mut ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &mut m.chunked_value_offset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "last_chunk", - |m: &ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &m.last_chunk }, - |m: &mut ReadChangeStreamResponse_MutationChunk_ChunkInfo| { &mut m.last_chunk }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse.MutationChunk.ChunkInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadChangeStreamResponse_MutationChunk_ChunkInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse_MutationChunk_ChunkInfo::new) - } -} - -impl ::protobuf::Clear for ReadChangeStreamResponse_MutationChunk_ChunkInfo { - fn clear(&mut self) { - self.chunked_value_size = 0; - self.chunked_value_offset = 0; - self.last_chunk = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadChangeStreamResponse_MutationChunk_ChunkInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) } -} -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_MutationChunk_ChunkInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Entry { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse_DataChange { +/// Request message for Bigtable.CheckAndMutateRow. +// @@protoc_insertion_point(message:google.bigtable.v2.CheckAndMutateRowRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CheckAndMutateRowRequest { // message fields - pub field_type: ReadChangeStreamResponse_DataChange_Type, - pub source_cluster_id: ::std::string::String, + /// Required. The unique name of the table to which the conditional mutation should be + /// applied. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.table_name) + pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.app_profile_id) + pub app_profile_id: ::std::string::String, + /// Required. The key of the row to which the conditional mutation should be applied. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.row_key) pub row_key: ::std::vec::Vec, - pub commit_timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub tiebreaker: i32, - pub chunks: ::protobuf::RepeatedField, - pub done: bool, - pub token: ::std::string::String, - pub estimated_low_watermark: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The filter to be applied to the contents of the specified row. Depending + /// on whether or not any results are yielded, either `true_mutations` or + /// `false_mutations` will be executed. If unset, checks that the row contains + /// any values at all. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.predicate_filter) + pub predicate_filter: ::protobuf::MessageField, + /// Changes to be atomically applied to the specified row if `predicate_filter` + /// yields at least one cell when applied to `row_key`. Entries are applied in + /// order, meaning that earlier mutations can be masked by later ones. + /// Must contain at least one entry if `false_mutations` is empty, and at most + /// 100000. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.true_mutations) + pub true_mutations: ::std::vec::Vec, + /// Changes to be atomically applied to the specified row if `predicate_filter` + /// does not yield any cells when applied to `row_key`. Entries are applied in + /// order, meaning that earlier mutations can be masked by later ones. + /// Must contain at least one entry if `true_mutations` is empty, and at most + /// 100000. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowRequest.false_mutations) + pub false_mutations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.CheckAndMutateRowRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse_DataChange { - fn default() -> &'a ReadChangeStreamResponse_DataChange { - ::default_instance() +impl<'a> ::std::default::Default for &'a CheckAndMutateRowRequest { + fn default() -> &'a CheckAndMutateRowRequest { + ::default_instance() } } -impl ReadChangeStreamResponse_DataChange { - pub fn new() -> ReadChangeStreamResponse_DataChange { +impl CheckAndMutateRowRequest { + pub fn new() -> CheckAndMutateRowRequest { ::std::default::Default::default() } - // .google.bigtable.v2.ReadChangeStreamResponse.DataChange.Type type = 1; - - - pub fn get_field_type(&self) -> ReadChangeStreamResponse_DataChange_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ReadChangeStreamResponse_DataChange_Type) { - self.field_type = v; - } - - // string source_cluster_id = 2; - - - pub fn get_source_cluster_id(&self) -> &str { - &self.source_cluster_id - } - pub fn clear_source_cluster_id(&mut self) { - self.source_cluster_id.clear(); - } - - // Param is passed by value, moved - pub fn set_source_cluster_id(&mut self, v: ::std::string::String) { - self.source_cluster_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_cluster_id(&mut self) -> &mut ::std::string::String { - &mut self.source_cluster_id - } - - // Take field - pub fn take_source_cluster_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_cluster_id, ::std::string::String::new()) - } - - // bytes row_key = 3; - - - pub fn get_row_key(&self) -> &[u8] { - &self.row_key - } - pub fn clear_row_key(&mut self) { - self.row_key.clear(); - } - - // Param is passed by value, moved - pub fn set_row_key(&mut self, v: ::std::vec::Vec) { - self.row_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.row_key - } - - // Take field - pub fn take_row_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.row_key, ::std::vec::Vec::new()) - } - - // .google.protobuf.Timestamp commit_timestamp = 4; - - - pub fn get_commit_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.commit_timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_commit_timestamp(&mut self) { - self.commit_timestamp.clear(); - } - - pub fn has_commit_timestamp(&self) -> bool { - self.commit_timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_commit_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.commit_timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_commit_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.commit_timestamp.is_none() { - self.commit_timestamp.set_default(); - } - self.commit_timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_commit_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.commit_timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // int32 tiebreaker = 5; - - - pub fn get_tiebreaker(&self) -> i32 { - self.tiebreaker - } - pub fn clear_tiebreaker(&mut self) { - self.tiebreaker = 0; - } - - // Param is passed by value, moved - pub fn set_tiebreaker(&mut self, v: i32) { - self.tiebreaker = v; - } - - // repeated .google.bigtable.v2.ReadChangeStreamResponse.MutationChunk chunks = 6; - - - pub fn get_chunks(&self) -> &[ReadChangeStreamResponse_MutationChunk] { - &self.chunks - } - pub fn clear_chunks(&mut self) { - self.chunks.clear(); - } - - // Param is passed by value, moved - pub fn set_chunks(&mut self, v: ::protobuf::RepeatedField) { - self.chunks = v; - } - - // Mutable pointer to the field. - pub fn mut_chunks(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.chunks - } - - // Take field - pub fn take_chunks(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.chunks, ::protobuf::RepeatedField::new()) - } - - // bool done = 8; - - - pub fn get_done(&self) -> bool { - self.done - } - pub fn clear_done(&mut self) { - self.done = false; - } - - // Param is passed by value, moved - pub fn set_done(&mut self, v: bool) { - self.done = v; - } - - // string token = 9; - - - pub fn get_token(&self) -> &str { - &self.token - } - pub fn clear_token(&mut self) { - self.token.clear(); - } - - // Param is passed by value, moved - pub fn set_token(&mut self, v: ::std::string::String) { - self.token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_token(&mut self) -> &mut ::std::string::String { - &mut self.token - } - - // Take field - pub fn take_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.token, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp estimated_low_watermark = 10; - - - pub fn get_estimated_low_watermark(&self) -> &::protobuf::well_known_types::Timestamp { - self.estimated_low_watermark.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_estimated_low_watermark(&mut self) { - self.estimated_low_watermark.clear(); - } - - pub fn has_estimated_low_watermark(&self) -> bool { - self.estimated_low_watermark.is_some() - } - - // Param is passed by value, moved - pub fn set_estimated_low_watermark(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.estimated_low_watermark = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_estimated_low_watermark(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.estimated_low_watermark.is_none() { - self.estimated_low_watermark.set_default(); - } - self.estimated_low_watermark.as_mut().unwrap() - } - - // Take field - pub fn take_estimated_low_watermark(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.estimated_low_watermark.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &CheckAndMutateRowRequest| { &m.table_name }, + |m: &mut CheckAndMutateRowRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &CheckAndMutateRowRequest| { &m.app_profile_id }, + |m: &mut CheckAndMutateRowRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &CheckAndMutateRowRequest| { &m.row_key }, + |m: &mut CheckAndMutateRowRequest| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::data::RowFilter>( + "predicate_filter", + |m: &CheckAndMutateRowRequest| { &m.predicate_filter }, + |m: &mut CheckAndMutateRowRequest| { &mut m.predicate_filter }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "true_mutations", + |m: &CheckAndMutateRowRequest| { &m.true_mutations }, + |m: &mut CheckAndMutateRowRequest| { &mut m.true_mutations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "false_mutations", + |m: &CheckAndMutateRowRequest| { &m.false_mutations }, + |m: &mut CheckAndMutateRowRequest| { &mut m.false_mutations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckAndMutateRowRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ReadChangeStreamResponse_DataChange { +impl ::protobuf::Message for CheckAndMutateRowRequest { + const NAME: &'static str = "CheckAndMutateRowRequest"; + fn is_initialized(&self) -> bool { - for v in &self.commit_timestamp { - if !v.is_initialized() { - return false; - } - }; - for v in &self.chunks { - if !v.is_initialized() { - return false; - } - }; - for v in &self.estimated_low_watermark { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_cluster_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.row_key)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.commit_timestamp)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.tiebreaker = tmp; + 58 => { + self.app_profile_id = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.chunks)?; + 18 => { + self.row_key = is.read_bytes()?; }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.done = tmp; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.predicate_filter)?; }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.token)?; + 34 => { + self.true_mutations.push(is.read_message()?); }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.estimated_low_watermark)?; + 42 => { + self.false_mutations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6589,372 +2109,166 @@ impl ::protobuf::Message for ReadChangeStreamResponse_DataChange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.field_type != ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); + if !self.table_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.table_name); } - if !self.source_cluster_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source_cluster_id); + if !self.app_profile_id.is_empty() { + my_size += ::protobuf::rt::string_size(7, &self.app_profile_id); } if !self.row_key.is_empty() { - my_size += ::protobuf::rt::bytes_size(3, &self.row_key); + my_size += ::protobuf::rt::bytes_size(2, &self.row_key); } - if let Some(ref v) = self.commit_timestamp.as_ref() { + if let Some(v) = self.predicate_filter.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.tiebreaker != 0 { - my_size += ::protobuf::rt::value_size(5, self.tiebreaker, ::protobuf::wire_format::WireTypeVarint); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - for value in &self.chunks { + for value in &self.true_mutations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if self.done != false { - my_size += 2; - } - if !self.token.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.token); - } - if let Some(ref v) = self.estimated_low_watermark.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.false_mutations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.table_name.is_empty() { + os.write_string(1, &self.table_name)?; } - if !self.source_cluster_id.is_empty() { - os.write_string(2, &self.source_cluster_id)?; + if !self.app_profile_id.is_empty() { + os.write_string(7, &self.app_profile_id)?; } if !self.row_key.is_empty() { - os.write_bytes(3, &self.row_key)?; - } - if let Some(ref v) = self.commit_timestamp.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.tiebreaker != 0 { - os.write_int32(5, self.tiebreaker)?; - } - for v in &self.chunks { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.done != false { - os.write_bool(8, self.done)?; - } - if !self.token.is_empty() { - os.write_string(9, &self.token)?; - } - if let Some(ref v) = self.estimated_low_watermark.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + os.write_bytes(2, &self.row_key)?; } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + if let Some(v) = self.predicate_filter.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; + } + for v in &self.true_mutations { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + }; + for v in &self.false_mutations { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn new() -> ReadChangeStreamResponse_DataChange { - ReadChangeStreamResponse_DataChange::new() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &ReadChangeStreamResponse_DataChange| { &m.field_type }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_cluster_id", - |m: &ReadChangeStreamResponse_DataChange| { &m.source_cluster_id }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.source_cluster_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_key", - |m: &ReadChangeStreamResponse_DataChange| { &m.row_key }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.row_key }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "commit_timestamp", - |m: &ReadChangeStreamResponse_DataChange| { &m.commit_timestamp }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.commit_timestamp }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "tiebreaker", - |m: &ReadChangeStreamResponse_DataChange| { &m.tiebreaker }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.tiebreaker }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "chunks", - |m: &ReadChangeStreamResponse_DataChange| { &m.chunks }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.chunks }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "done", - |m: &ReadChangeStreamResponse_DataChange| { &m.done }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.done }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "token", - |m: &ReadChangeStreamResponse_DataChange| { &m.token }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "estimated_low_watermark", - |m: &ReadChangeStreamResponse_DataChange| { &m.estimated_low_watermark }, - |m: &mut ReadChangeStreamResponse_DataChange| { &mut m.estimated_low_watermark }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse.DataChange", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static ReadChangeStreamResponse_DataChange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse_DataChange::new) + fn new() -> CheckAndMutateRowRequest { + CheckAndMutateRowRequest::new() } -} -impl ::protobuf::Clear for ReadChangeStreamResponse_DataChange { fn clear(&mut self) { - self.field_type = ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED; - self.source_cluster_id.clear(); + self.table_name.clear(); + self.app_profile_id.clear(); self.row_key.clear(); - self.commit_timestamp.clear(); - self.tiebreaker = 0; - self.chunks.clear(); - self.done = false; - self.token.clear(); - self.estimated_low_watermark.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadChangeStreamResponse_DataChange { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + self.predicate_filter.clear(); + self.true_mutations.clear(); + self.false_mutations.clear(); + self.special_fields.clear(); } -} -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_DataChange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn default_instance() -> &'static CheckAndMutateRowRequest { + static instance: CheckAndMutateRowRequest = CheckAndMutateRowRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + row_key: ::std::vec::Vec::new(), + predicate_filter: ::protobuf::MessageField::none(), + true_mutations: ::std::vec::Vec::new(), + false_mutations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ReadChangeStreamResponse_DataChange_Type { - TYPE_UNSPECIFIED = 0, - USER = 1, - GARBAGE_COLLECTION = 2, - CONTINUATION = 3, -} - -impl ::protobuf::ProtobufEnum for ReadChangeStreamResponse_DataChange_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ReadChangeStreamResponse_DataChange_Type::USER), - 2 => ::std::option::Option::Some(ReadChangeStreamResponse_DataChange_Type::GARBAGE_COLLECTION), - 3 => ::std::option::Option::Some(ReadChangeStreamResponse_DataChange_Type::CONTINUATION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ReadChangeStreamResponse_DataChange_Type] = &[ - ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED, - ReadChangeStreamResponse_DataChange_Type::USER, - ReadChangeStreamResponse_DataChange_Type::GARBAGE_COLLECTION, - ReadChangeStreamResponse_DataChange_Type::CONTINUATION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ReadChangeStreamResponse.DataChange.Type", file_descriptor_proto()) - }) +impl ::protobuf::MessageFull for CheckAndMutateRowRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckAndMutateRowRequest").unwrap()).clone() } } -impl ::std::marker::Copy for ReadChangeStreamResponse_DataChange_Type { -} - -impl ::std::default::Default for ReadChangeStreamResponse_DataChange_Type { - fn default() -> Self { - ReadChangeStreamResponse_DataChange_Type::TYPE_UNSPECIFIED +impl ::std::fmt::Display for CheckAndMutateRowRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_DataChange_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for CheckAndMutateRowRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse_Heartbeat { +/// Response message for Bigtable.CheckAndMutateRow. +// @@protoc_insertion_point(message:google.bigtable.v2.CheckAndMutateRowResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CheckAndMutateRowResponse { // message fields - pub continuation_token: ::protobuf::SingularPtrField, - pub estimated_low_watermark: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Whether or not the request's `predicate_filter` yielded any results for + /// the specified row. + // @@protoc_insertion_point(field:google.bigtable.v2.CheckAndMutateRowResponse.predicate_matched) + pub predicate_matched: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.CheckAndMutateRowResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse_Heartbeat { - fn default() -> &'a ReadChangeStreamResponse_Heartbeat { - ::default_instance() +impl<'a> ::std::default::Default for &'a CheckAndMutateRowResponse { + fn default() -> &'a CheckAndMutateRowResponse { + ::default_instance() } } -impl ReadChangeStreamResponse_Heartbeat { - pub fn new() -> ReadChangeStreamResponse_Heartbeat { +impl CheckAndMutateRowResponse { + pub fn new() -> CheckAndMutateRowResponse { ::std::default::Default::default() } - // .google.bigtable.v2.StreamContinuationToken continuation_token = 1; - - - pub fn get_continuation_token(&self) -> &super::data::StreamContinuationToken { - self.continuation_token.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_continuation_token(&mut self) { - self.continuation_token.clear(); - } - - pub fn has_continuation_token(&self) -> bool { - self.continuation_token.is_some() - } - - // Param is passed by value, moved - pub fn set_continuation_token(&mut self, v: super::data::StreamContinuationToken) { - self.continuation_token = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_continuation_token(&mut self) -> &mut super::data::StreamContinuationToken { - if self.continuation_token.is_none() { - self.continuation_token.set_default(); - } - self.continuation_token.as_mut().unwrap() - } - - // Take field - pub fn take_continuation_token(&mut self) -> super::data::StreamContinuationToken { - self.continuation_token.take().unwrap_or_else(|| super::data::StreamContinuationToken::new()) - } - - // .google.protobuf.Timestamp estimated_low_watermark = 2; - - - pub fn get_estimated_low_watermark(&self) -> &::protobuf::well_known_types::Timestamp { - self.estimated_low_watermark.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_estimated_low_watermark(&mut self) { - self.estimated_low_watermark.clear(); - } - - pub fn has_estimated_low_watermark(&self) -> bool { - self.estimated_low_watermark.is_some() - } - - // Param is passed by value, moved - pub fn set_estimated_low_watermark(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.estimated_low_watermark = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_estimated_low_watermark(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.estimated_low_watermark.is_none() { - self.estimated_low_watermark.set_default(); - } - self.estimated_low_watermark.as_mut().unwrap() - } - - // Take field - pub fn take_estimated_low_watermark(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.estimated_low_watermark.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "predicate_matched", + |m: &CheckAndMutateRowResponse| { &m.predicate_matched }, + |m: &mut CheckAndMutateRowResponse| { &mut m.predicate_matched }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CheckAndMutateRowResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ReadChangeStreamResponse_Heartbeat { +impl ::protobuf::Message for CheckAndMutateRowResponse { + const NAME: &'static str = "CheckAndMutateRowResponse"; + fn is_initialized(&self) -> bool { - for v in &self.continuation_token { - if !v.is_initialized() { - return false; - } - }; - for v in &self.estimated_low_watermark { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.continuation_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.estimated_low_watermark)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.predicate_matched = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6963,255 +2277,313 @@ impl ::protobuf::Message for ReadChangeStreamResponse_Heartbeat { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.continuation_token.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.estimated_low_watermark.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.predicate_matched != false { + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.continuation_token.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.estimated_low_watermark.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.predicate_matched != false { + os.write_bool(1, self.predicate_matched)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ReadChangeStreamResponse_Heartbeat { - ReadChangeStreamResponse_Heartbeat::new() + fn new() -> CheckAndMutateRowResponse { + CheckAndMutateRowResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "continuation_token", - |m: &ReadChangeStreamResponse_Heartbeat| { &m.continuation_token }, - |m: &mut ReadChangeStreamResponse_Heartbeat| { &mut m.continuation_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "estimated_low_watermark", - |m: &ReadChangeStreamResponse_Heartbeat| { &m.estimated_low_watermark }, - |m: &mut ReadChangeStreamResponse_Heartbeat| { &mut m.estimated_low_watermark }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse.Heartbeat", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.predicate_matched = false; + self.special_fields.clear(); } - fn default_instance() -> &'static ReadChangeStreamResponse_Heartbeat { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse_Heartbeat::new) + fn default_instance() -> &'static CheckAndMutateRowResponse { + static instance: CheckAndMutateRowResponse = CheckAndMutateRowResponse { + predicate_matched: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReadChangeStreamResponse_Heartbeat { - fn clear(&mut self) { - self.continuation_token.clear(); - self.estimated_low_watermark.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CheckAndMutateRowResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CheckAndMutateRowResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ReadChangeStreamResponse_Heartbeat { +impl ::std::fmt::Display for CheckAndMutateRowResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_Heartbeat { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CheckAndMutateRowResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ReadChangeStreamResponse_CloseStream { +/// Request message for Bigtable.ReadModifyWriteRow. +// @@protoc_insertion_point(message:google.bigtable.v2.ReadModifyWriteRowRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ReadModifyWriteRowRequest { // message fields - pub status: ::protobuf::SingularPtrField, - pub continuation_tokens: ::protobuf::RepeatedField, - pub new_partitions: ::protobuf::RepeatedField, + /// Required. The unique name of the table to which the read/modify/write rules should be + /// applied. + /// Values are of the form + /// `projects//instances//tables/
`. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRowRequest.table_name) + pub table_name: ::std::string::String, + /// This value specifies routing for replication. If not specified, the + /// "default" application profile will be used. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRowRequest.app_profile_id) + pub app_profile_id: ::std::string::String, + /// Required. The key of the row to which the read/modify/write rules should be applied. + /// + /// Classified as IDENTIFYING_ID to provide context around data accesses for + /// auditing systems. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRowRequest.row_key) + pub row_key: ::std::vec::Vec, + /// Required. Rules specifying how the specified row's contents are to be transformed + /// into writes. Entries are applied in order, meaning that earlier rules will + /// affect the results of later ones. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRowRequest.rules) + pub rules: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadModifyWriteRowRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ReadChangeStreamResponse_CloseStream { - fn default() -> &'a ReadChangeStreamResponse_CloseStream { - ::default_instance() +impl<'a> ::std::default::Default for &'a ReadModifyWriteRowRequest { + fn default() -> &'a ReadModifyWriteRowRequest { + ::default_instance() } } -impl ReadChangeStreamResponse_CloseStream { - pub fn new() -> ReadChangeStreamResponse_CloseStream { +impl ReadModifyWriteRowRequest { + pub fn new() -> ReadModifyWriteRowRequest { ::std::default::Default::default() } - // .google.rpc.Status status = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table_name", + |m: &ReadModifyWriteRowRequest| { &m.table_name }, + |m: &mut ReadModifyWriteRowRequest| { &mut m.table_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "app_profile_id", + |m: &ReadModifyWriteRowRequest| { &m.app_profile_id }, + |m: &mut ReadModifyWriteRowRequest| { &mut m.app_profile_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "row_key", + |m: &ReadModifyWriteRowRequest| { &m.row_key }, + |m: &mut ReadModifyWriteRowRequest| { &mut m.row_key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rules", + |m: &ReadModifyWriteRowRequest| { &m.rules }, + |m: &mut ReadModifyWriteRowRequest| { &mut m.rules }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadModifyWriteRowRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for ReadModifyWriteRowRequest { + const NAME: &'static str = "ReadModifyWriteRowRequest"; - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_status(&self) -> bool { - self.status.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table_name = is.read_string()?; + }, + 34 => { + self.app_profile_id = is.read_string()?; + }, + 18 => { + self.row_key = is.read_bytes()?; + }, + 26 => { + self.rules.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.table_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.table_name); + } + if !self.app_profile_id.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.app_profile_id); + } + if !self.row_key.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.row_key); + } + for value in &self.rules { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.table_name.is_empty() { + os.write_string(1, &self.table_name)?; + } + if !self.app_profile_id.is_empty() { + os.write_string(4, &self.app_profile_id)?; } - self.status.as_mut().unwrap() + if !self.row_key.is_empty() { + os.write_bytes(2, &self.row_key)?; + } + for v in &self.rules { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // repeated .google.bigtable.v2.StreamContinuationToken continuation_tokens = 2; - - - pub fn get_continuation_tokens(&self) -> &[super::data::StreamContinuationToken] { - &self.continuation_tokens + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn clear_continuation_tokens(&mut self) { - self.continuation_tokens.clear(); + + fn new() -> ReadModifyWriteRowRequest { + ReadModifyWriteRowRequest::new() } - // Param is passed by value, moved - pub fn set_continuation_tokens(&mut self, v: ::protobuf::RepeatedField) { - self.continuation_tokens = v; + fn clear(&mut self) { + self.table_name.clear(); + self.app_profile_id.clear(); + self.row_key.clear(); + self.rules.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - pub fn mut_continuation_tokens(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.continuation_tokens + fn default_instance() -> &'static ReadModifyWriteRowRequest { + static instance: ReadModifyWriteRowRequest = ReadModifyWriteRowRequest { + table_name: ::std::string::String::new(), + app_profile_id: ::std::string::String::new(), + row_key: ::std::vec::Vec::new(), + rules: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_continuation_tokens(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.continuation_tokens, ::protobuf::RepeatedField::new()) +impl ::protobuf::MessageFull for ReadModifyWriteRowRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadModifyWriteRowRequest").unwrap()).clone() } +} - // repeated .google.bigtable.v2.StreamPartition new_partitions = 3; +impl ::std::fmt::Display for ReadModifyWriteRowRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} +impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRowRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_new_partitions(&self) -> &[super::data::StreamPartition] { - &self.new_partitions - } - pub fn clear_new_partitions(&mut self) { - self.new_partitions.clear(); - } +/// Response message for Bigtable.ReadModifyWriteRow. +// @@protoc_insertion_point(message:google.bigtable.v2.ReadModifyWriteRowResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ReadModifyWriteRowResponse { + // message fields + /// A Row containing the new contents of all cells modified by the request. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRowResponse.row) + pub row: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadModifyWriteRowResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_new_partitions(&mut self, v: ::protobuf::RepeatedField) { - self.new_partitions = v; +impl<'a> ::std::default::Default for &'a ReadModifyWriteRowResponse { + fn default() -> &'a ReadModifyWriteRowResponse { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_new_partitions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.new_partitions +impl ReadModifyWriteRowResponse { + pub fn new() -> ReadModifyWriteRowResponse { + ::std::default::Default::default() } - // Take field - pub fn take_new_partitions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.new_partitions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::data::Row>( + "row", + |m: &ReadModifyWriteRowResponse| { &m.row }, + |m: &mut ReadModifyWriteRowResponse| { &mut m.row }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadModifyWriteRowResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ReadChangeStreamResponse_CloseStream { +impl ::protobuf::Message for ReadModifyWriteRowResponse { + const NAME: &'static str = "ReadModifyWriteRowResponse"; + fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; - for v in &self.continuation_tokens { - if !v.is_initialized() { - return false; - } - }; - for v in &self.new_partitions { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.continuation_tokens)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.new_partitions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.row)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7220,1285 +2592,702 @@ impl ::protobuf::Message for ReadChangeStreamResponse_CloseStream { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.status.as_ref() { + if let Some(v) = self.row.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - for value in &self.continuation_tokens { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.new_partitions { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.status.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.row.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - for v in &self.continuation_tokens { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.new_partitions { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ReadChangeStreamResponse_CloseStream { - ReadChangeStreamResponse_CloseStream::new() + fn new() -> ReadModifyWriteRowResponse { + ReadModifyWriteRowResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &ReadChangeStreamResponse_CloseStream| { &m.status }, - |m: &mut ReadChangeStreamResponse_CloseStream| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "continuation_tokens", - |m: &ReadChangeStreamResponse_CloseStream| { &m.continuation_tokens }, - |m: &mut ReadChangeStreamResponse_CloseStream| { &mut m.continuation_tokens }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "new_partitions", - |m: &ReadChangeStreamResponse_CloseStream| { &m.new_partitions }, - |m: &mut ReadChangeStreamResponse_CloseStream| { &mut m.new_partitions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadChangeStreamResponse.CloseStream", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.row.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ReadChangeStreamResponse_CloseStream { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadChangeStreamResponse_CloseStream::new) + fn default_instance() -> &'static ReadModifyWriteRowResponse { + static instance: ReadModifyWriteRowResponse = ReadModifyWriteRowResponse { + row: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReadChangeStreamResponse_CloseStream { - fn clear(&mut self) { - self.status.clear(); - self.continuation_tokens.clear(); - self.new_partitions.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReadModifyWriteRowResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadModifyWriteRowResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ReadChangeStreamResponse_CloseStream { +impl ::std::fmt::Display for ReadModifyWriteRowResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadChangeStreamResponse_CloseStream { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRowResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n!google/bigtable/v2/bigtable.proto\x12\x12google.bigtable.v2\x1a\x1cgo\ ogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/\ - api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/\ - api/routing.proto\x1a\x1dgoogle/bigtable/v2/data.proto\x1a&google/bigtab\ - le/v2/request_stats.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fg\ - oogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\ - \x17google/rpc/status.proto\"\xf0\x03\n\x0fReadRowsRequest\x12I\n\ntable\ - _name\x18\x01\x20\x01(\tR\ttableNameB*\xfaA$\n\"bigtableadmin.googleapis\ - .com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x05\x20\x01(\tR\x0cappP\ - rofileId\x12.\n\x04rows\x18\x02\x20\x01(\x0b2\x1a.google.bigtable.v2.Row\ - SetR\x04rows\x125\n\x06filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.\ - v2.RowFilterR\x06filter\x12\x1d\n\nrows_limit\x18\x04\x20\x01(\x03R\trow\ - sLimit\x12b\n\x12request_stats_view\x18\x06\x20\x01(\x0e24.google.bigtab\ - le.v2.ReadRowsRequest.RequestStatsViewR\x10requestStatsView\x12\x1a\n\ - \x08reversed\x18\x07\x20\x01(\x08R\x08reversed\"f\n\x10RequestStatsView\ - \x12\"\n\x1eREQUEST_STATS_VIEW_UNSPECIFIED\x10\0\x12\x16\n\x12REQUEST_ST\ - ATS_NONE\x10\x01\x12\x16\n\x12REQUEST_STATS_FULL\x10\x02\"\xb9\x04\n\x10\ - ReadRowsResponse\x12F\n\x06chunks\x18\x01\x20\x03(\x0b2..google.bigtable\ - .v2.ReadRowsResponse.CellChunkR\x06chunks\x12/\n\x14last_scanned_row_key\ - \x18\x02\x20\x01(\x0cR\x11lastScannedRowKey\x12E\n\rrequest_stats\x18\ - \x03\x20\x01(\x0b2\x20.google.bigtable.v2.RequestStatsR\x0crequestStats\ - \x1a\xe4\x02\n\tCellChunk\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\x06\ - rowKey\x12=\n\x0bfamily_name\x18\x02\x20\x01(\x0b2\x1c.google.protobuf.S\ - tringValueR\nfamilyName\x129\n\tqualifier\x18\x03\x20\x01(\x0b2\x1b.goog\ - le.protobuf.BytesValueR\tqualifier\x12)\n\x10timestamp_micros\x18\x04\ - \x20\x01(\x03R\x0ftimestampMicros\x12\x16\n\x06labels\x18\x05\x20\x03(\t\ - R\x06labels\x12\x14\n\x05value\x18\x06\x20\x01(\x0cR\x05value\x12\x1d\n\ - \nvalue_size\x18\x07\x20\x01(\x05R\tvalueSize\x12\x1d\n\treset_row\x18\ - \x08\x20\x01(\x08H\0R\x08resetRow\x12\x1f\n\ncommit_row\x18\t\x20\x01(\ - \x08H\0R\tcommitRowB\x0c\n\nrow_status\"\x87\x01\n\x14SampleRowKeysReque\ - st\x12I\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB*\xfaA$\n\"bigtable\ - admin.googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x02\x20\ - \x01(\tR\x0cappProfileId\"S\n\x15SampleRowKeysResponse\x12\x17\n\x07row_\ - key\x18\x01\x20\x01(\x0cR\x06rowKey\x12!\n\x0coffset_bytes\x18\x02\x20\ - \x01(\x03R\x0boffsetBytes\"\xe2\x01\n\x10MutateRowRequest\x12I\n\ntable_\ - name\x18\x01\x20\x01(\tR\ttableNameB*\xfaA$\n\"bigtableadmin.googleapis.\ - com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x04\x20\x01(\tR\x0cappPr\ - ofileId\x12\x1c\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKeyB\x03\xe0A\ - \x02\x12?\n\tmutations\x18\x03\x20\x03(\x0b2\x1c.google.bigtable.v2.Muta\ - tionR\tmutationsB\x03\xe0A\x02\"\x13\n\x11MutateRowResponse\"\xb3\x02\n\ - \x11MutateRowsRequest\x12I\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB\ - *\xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_pro\ - file_id\x18\x03\x20\x01(\tR\x0cappProfileId\x12J\n\x07entries\x18\x02\ - \x20\x03(\x0b2+.google.bigtable.v2.MutateRowsRequest.EntryR\x07entriesB\ - \x03\xe0A\x02\x1aa\n\x05Entry\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\ - \x06rowKey\x12?\n\tmutations\x18\x02\x20\x03(\x0b2\x1c.google.bigtable.v\ - 2.MutationR\tmutationsB\x03\xe0A\x02\"\x8b\x02\n\x12MutateRowsResponse\ - \x12F\n\x07entries\x18\x01\x20\x03(\x0b2,.google.bigtable.v2.MutateRowsR\ - esponse.EntryR\x07entries\x12N\n\x0frate_limit_info\x18\x03\x20\x01(\x0b\ - 2!.google.bigtable.v2.RateLimitInfoH\0R\rrateLimitInfo\x88\x01\x01\x1aI\ - \n\x05Entry\x12\x14\n\x05index\x18\x01\x20\x01(\x03R\x05index\x12*\n\x06\ - status\x18\x02\x20\x01(\x0b2\x12.google.rpc.StatusR\x06statusB\x12\n\x10\ - _rate_limit_info\"Z\n\rRateLimitInfo\x121\n\x06period\x18\x01\x20\x01(\ - \x0b2\x19.google.protobuf.DurationR\x06period\x12\x16\n\x06factor\x18\ - \x02\x20\x01(\x01R\x06factor\"\xff\x02\n\x18CheckAndMutateRowRequest\x12\ - I\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB*\xfaA$\n\"bigtableadmin.\ - googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x07\x20\x01(\ - \tR\x0cappProfileId\x12\x1c\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKey\ - B\x03\xe0A\x02\x12H\n\x10predicate_filter\x18\x06\x20\x01(\x0b2\x1d.goog\ - le.bigtable.v2.RowFilterR\x0fpredicateFilter\x12C\n\x0etrue_mutations\ - \x18\x04\x20\x03(\x0b2\x1c.google.bigtable.v2.MutationR\rtrueMutations\ - \x12E\n\x0ffalse_mutations\x18\x05\x20\x03(\x0b2\x1c.google.bigtable.v2.\ - MutationR\x0efalseMutations\"H\n\x19CheckAndMutateRowResponse\x12+\n\x11\ - predicate_matched\x18\x01\x20\x01(\x08R\x10predicateMatched\"}\n\x12Ping\ - AndWarmRequest\x12A\n\x04name\x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%bigt\ - ableadmin.googleapis.com/Instance\xe0A\x02\x12$\n\x0eapp_profile_id\x18\ - \x02\x20\x01(\tR\x0cappProfileId\"\x15\n\x13PingAndWarmResponse\"\xee\ - \x01\n\x19ReadModifyWriteRowRequest\x12I\n\ntable_name\x18\x01\x20\x01(\ - \tR\ttableNameB*\xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\ - \x12$\n\x0eapp_profile_id\x18\x04\x20\x01(\tR\x0cappProfileId\x12\x1c\n\ - \x07row_key\x18\x02\x20\x01(\x0cR\x06rowKeyB\x03\xe0A\x02\x12B\n\x05rule\ - s\x18\x03\x20\x03(\x0b2'.google.bigtable.v2.ReadModifyWriteRuleR\x05rule\ - sB\x03\xe0A\x02\"G\n\x1aReadModifyWriteRowResponse\x12)\n\x03row\x18\x01\ - \x20\x01(\x0b2\x17.google.bigtable.v2.RowR\x03row\"\x9f\x01\n,GenerateIn\ - itialChangeStreamPartitionsRequest\x12I\n\ntable_name\x18\x01\x20\x01(\t\ - R\ttableNameB*\xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\x12$\ - \n\x0eapp_profile_id\x18\x02\x20\x01(\tR\x0cappProfileId\"r\n-GenerateIn\ - itialChangeStreamPartitionsResponse\x12A\n\tpartition\x18\x01\x20\x01(\ - \x0b2#.google.bigtable.v2.StreamPartitionR\tpartition\"\xfa\x03\n\x17Rea\ - dChangeStreamRequest\x12I\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB*\ - \xfaA$\n\"bigtableadmin.googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_prof\ - ile_id\x18\x02\x20\x01(\tR\x0cappProfileId\x12A\n\tpartition\x18\x03\x20\ - \x01(\x0b2#.google.bigtable.v2.StreamPartitionR\tpartition\x12;\n\nstart\ - _time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampH\0R\tstartTime\ - \x12_\n\x13continuation_tokens\x18\x06\x20\x01(\x0b2,.google.bigtable.v2\ - .StreamContinuationTokensH\0R\x12continuationTokens\x125\n\x08end_time\ - \x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\x12H\n\ - \x12heartbeat_duration\x18\x07\x20\x01(\x0b2\x19.google.protobuf.Duratio\ - nR\x11heartbeatDurationB\x0c\n\nstart_from\"\xd1\x0c\n\x18ReadChangeStre\ - amResponse\x12Z\n\x0bdata_change\x18\x01\x20\x01(\x0b27.google.bigtable.\ - v2.ReadChangeStreamResponse.DataChangeH\0R\ndataChange\x12V\n\theartbeat\ - \x18\x02\x20\x01(\x0b26.google.bigtable.v2.ReadChangeStreamResponse.Hear\ - tbeatH\0R\theartbeat\x12]\n\x0cclose_stream\x18\x03\x20\x01(\x0b28.googl\ - e.bigtable.v2.ReadChangeStreamResponse.CloseStreamH\0R\x0bcloseStream\ - \x1a\xbb\x02\n\rMutationChunk\x12c\n\nchunk_info\x18\x01\x20\x01(\x0b2D.\ - google.bigtable.v2.ReadChangeStreamResponse.MutationChunk.ChunkInfoR\tch\ - unkInfo\x128\n\x08mutation\x18\x02\x20\x01(\x0b2\x1c.google.bigtable.v2.\ - MutationR\x08mutation\x1a\x8a\x01\n\tChunkInfo\x12,\n\x12chunked_value_s\ - ize\x18\x01\x20\x01(\x05R\x10chunkedValueSize\x120\n\x14chunked_value_of\ - fset\x18\x02\x20\x01(\x05R\x12chunkedValueOffset\x12\x1d\n\nlast_chunk\ - \x18\x03\x20\x01(\x08R\tlastChunk\x1a\xae\x04\n\nDataChange\x12P\n\x04ty\ - pe\x18\x01\x20\x01(\x0e2<.google.bigtable.v2.ReadChangeStreamResponse.Da\ - taChange.TypeR\x04type\x12*\n\x11source_cluster_id\x18\x02\x20\x01(\tR\ - \x0fsourceClusterId\x12\x17\n\x07row_key\x18\x03\x20\x01(\x0cR\x06rowKey\ - \x12E\n\x10commit_timestamp\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.Ti\ - mestampR\x0fcommitTimestamp\x12\x1e\n\ntiebreaker\x18\x05\x20\x01(\x05R\ - \ntiebreaker\x12R\n\x06chunks\x18\x06\x20\x03(\x0b2:.google.bigtable.v2.\ - ReadChangeStreamResponse.MutationChunkR\x06chunks\x12\x12\n\x04done\x18\ - \x08\x20\x01(\x08R\x04done\x12\x14\n\x05token\x18\t\x20\x01(\tR\x05token\ - \x12R\n\x17estimated_low_watermark\x18\n\x20\x01(\x0b2\x1a.google.protob\ - uf.TimestampR\x15estimatedLowWatermark\"P\n\x04Type\x12\x14\n\x10TYPE_UN\ - SPECIFIED\x10\0\x12\x08\n\x04USER\x10\x01\x12\x16\n\x12GARBAGE_COLLECTIO\ - N\x10\x02\x12\x10\n\x0cCONTINUATION\x10\x03\x1a\xbb\x01\n\tHeartbeat\x12\ - Z\n\x12continuation_token\x18\x01\x20\x01(\x0b2+.google.bigtable.v2.Stre\ - amContinuationTokenR\x11continuationToken\x12R\n\x17estimated_low_waterm\ - ark\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x15estimatedLow\ - Watermark\x1a\xe3\x01\n\x0bCloseStream\x12*\n\x06status\x18\x01\x20\x01(\ - \x0b2\x12.google.rpc.StatusR\x06status\x12\\\n\x13continuation_tokens\ - \x18\x02\x20\x03(\x0b2+.google.bigtable.v2.StreamContinuationTokenR\x12c\ - ontinuationTokens\x12J\n\x0enew_partitions\x18\x03\x20\x03(\x0b2#.google\ - .bigtable.v2.StreamPartitionR\rnewPartitionsB\x0f\n\rstream_record2\xd7\ - \x18\n\x08Bigtable\x12\x9b\x02\n\x08ReadRows\x12#.google.bigtable.v2.Rea\ - dRowsRequest\x1a$.google.bigtable.v2.ReadRowsResponse\"\xc1\x01\xdaA\nta\ - ble_name\xdaA\x19table_name,app_profile_id\x82\xd3\xe4\x93\x02>\"9/v2/{t\ - able_name=projects/*/instances/*/tables/*}:readRows:\x01*\x8a\xd3\xe4\ - \x93\x02N\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tabl\ - es/*}\x12\x10\n\x0eapp_profile_id0\x01\x12\xac\x02\n\rSampleRowKeys\x12(\ - .google.bigtable.v2.SampleRowKeysRequest\x1a).google.bigtable.v2.SampleR\ - owKeysResponse\"\xc3\x01\xdaA\ntable_name\xdaA\x19table_name,app_profile\ - _id\x82\xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tabl\ - es/*}:sampleRowKeys\x8a\xd3\xe4\x93\x02N\x12:\n\ntable_name\x12,{table_n\ - ame=projects/*/instances/*/tables/*}\x12\x10\n\x0eapp_profile_id0\x01\ - \x12\xc1\x02\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.\ - google.bigtable.v2.MutateRowResponse\"\xe6\x01\xdaA\x1ctable_name,row_ke\ - y,mutations\xdaA+table_name,row_key,mutations,app_profile_id\x82\xd3\xe4\ - \x93\x02?\":/v2/{table_name=projects/*/instances/*/tables/*}:mutateRow:\ - \x01*\x8a\xd3\xe4\x93\x02N\x12:\n\ntable_name\x12,{table_name=projects/*\ - /instances/*/tables/*}\x12\x10\n\x0eapp_profile_id\x12\xb3\x02\n\nMutate\ - Rows\x12%.google.bigtable.v2.MutateRowsRequest\x1a&.google.bigtable.v2.M\ - utateRowsResponse\"\xd3\x01\xdaA\x12table_name,entries\xdaA!table_name,e\ - ntries,app_profile_id\x82\xd3\xe4\x93\x02@\";/v2/{table_name=projects/*/\ - instances/*/tables/*}:mutateRows:\x01*\x8a\xd3\xe4\x93\x02N\x12:\n\ntabl\ - e_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\x0eapp\ - _profile_id0\x01\x12\xad\x03\n\x11CheckAndMutateRow\x12,.google.bigtable\ - .v2.CheckAndMutateRowRequest\x1a-.google.bigtable.v2.CheckAndMutateRowRe\ - sponse\"\xba\x02\xdaABtable_name,row_key,predicate_filter,true_mutations\ + api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1dgoogle/\ + bigtable/v2/data.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17goog\ + le/rpc/status.proto\"\x83\x02\n\x0fReadRowsRequest\x12D\n\ntable_name\ + \x18\x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/\ + Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x05\x20\x01(\tR\x0cappProfil\ + eId\x12.\n\x04rows\x18\x02\x20\x01(\x0b2\x1a.google.bigtable.v2.RowSetR\ + \x04rows\x125\n\x06filter\x18\x03\x20\x01(\x0b2\x1d.google.bigtable.v2.R\ + owFilterR\x06filter\x12\x1d\n\nrows_limit\x18\x04\x20\x01(\x03R\trowsLim\ + it\"\xf2\x03\n\x10ReadRowsResponse\x12F\n\x06chunks\x18\x01\x20\x03(\x0b\ + 2..google.bigtable.v2.ReadRowsResponse.CellChunkR\x06chunks\x12/\n\x14la\ + st_scanned_row_key\x18\x02\x20\x01(\x0cR\x11lastScannedRowKey\x1a\xe4\ + \x02\n\tCellChunk\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\x06rowKey\ + \x12=\n\x0bfamily_name\x18\x02\x20\x01(\x0b2\x1c.google.protobuf.StringV\ + alueR\nfamilyName\x129\n\tqualifier\x18\x03\x20\x01(\x0b2\x1b.google.pro\ + tobuf.BytesValueR\tqualifier\x12)\n\x10timestamp_micros\x18\x04\x20\x01(\ + \x03R\x0ftimestampMicros\x12\x16\n\x06labels\x18\x05\x20\x03(\tR\x06labe\ + ls\x12\x14\n\x05value\x18\x06\x20\x01(\x0cR\x05value\x12\x1d\n\nvalue_si\ + ze\x18\x07\x20\x01(\x05R\tvalueSize\x12\x1d\n\treset_row\x18\x08\x20\x01\ + (\x08H\0R\x08resetRow\x12\x1f\n\ncommit_row\x18\t\x20\x01(\x08H\0R\tcomm\ + itRowB\x0c\n\nrow_status\"\x82\x01\n\x14SampleRowKeysRequest\x12D\n\ntab\ + le_name\x18\x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\n\x1dbigtable.googleap\ + is.com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x02\x20\x01(\tR\x0cap\ + pProfileId\"S\n\x15SampleRowKeysResponse\x12\x17\n\x07row_key\x18\x01\ + \x20\x01(\x0cR\x06rowKey\x12!\n\x0coffset_bytes\x18\x02\x20\x01(\x03R\ + \x0boffsetBytes\"\xdd\x01\n\x10MutateRowRequest\x12D\n\ntable_name\x18\ + \x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/Tabl\ + e\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x04\x20\x01(\tR\x0cappProfileId\ + \x12\x1c\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKeyB\x03\xe0A\x02\x12?\ + \n\tmutations\x18\x03\x20\x03(\x0b2\x1c.google.bigtable.v2.MutationR\tmu\ + tationsB\x03\xe0A\x02\"\x13\n\x11MutateRowResponse\"\xae\x02\n\x11Mutate\ + RowsRequest\x12D\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\ + \n\x1dbigtable.googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\ + \x18\x03\x20\x01(\tR\x0cappProfileId\x12J\n\x07entries\x18\x02\x20\x03(\ + \x0b2+.google.bigtable.v2.MutateRowsRequest.EntryR\x07entriesB\x03\xe0A\ + \x02\x1aa\n\x05Entry\x12\x17\n\x07row_key\x18\x01\x20\x01(\x0cR\x06rowKe\ + y\x12?\n\tmutations\x18\x02\x20\x03(\x0b2\x1c.google.bigtable.v2.Mutatio\ + nR\tmutationsB\x03\xe0A\x02\"\xa7\x01\n\x12MutateRowsResponse\x12F\n\x07\ + entries\x18\x01\x20\x03(\x0b2,.google.bigtable.v2.MutateRowsResponse.Ent\ + ryR\x07entries\x1aI\n\x05Entry\x12\x14\n\x05index\x18\x01\x20\x01(\x03R\ + \x05index\x12*\n\x06status\x18\x02\x20\x01(\x0b2\x12.google.rpc.StatusR\ + \x06status\"\xfa\x02\n\x18CheckAndMutateRowRequest\x12D\n\ntable_name\ + \x18\x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\n\x1dbigtable.googleapis.com/\ + Table\xe0A\x02\x12$\n\x0eapp_profile_id\x18\x07\x20\x01(\tR\x0cappProfil\ + eId\x12\x1c\n\x07row_key\x18\x02\x20\x01(\x0cR\x06rowKeyB\x03\xe0A\x02\ + \x12H\n\x10predicate_filter\x18\x06\x20\x01(\x0b2\x1d.google.bigtable.v2\ + .RowFilterR\x0fpredicateFilter\x12C\n\x0etrue_mutations\x18\x04\x20\x03(\ + \x0b2\x1c.google.bigtable.v2.MutationR\rtrueMutations\x12E\n\x0ffalse_mu\ + tations\x18\x05\x20\x03(\x0b2\x1c.google.bigtable.v2.MutationR\x0efalseM\ + utations\"H\n\x19CheckAndMutateRowResponse\x12+\n\x11predicate_matched\ + \x18\x01\x20\x01(\x08R\x10predicateMatched\"\xe9\x01\n\x19ReadModifyWrit\ + eRowRequest\x12D\n\ntable_name\x18\x01\x20\x01(\tR\ttableNameB%\xfaA\x1f\ + \n\x1dbigtable.googleapis.com/Table\xe0A\x02\x12$\n\x0eapp_profile_id\ + \x18\x04\x20\x01(\tR\x0cappProfileId\x12\x1c\n\x07row_key\x18\x02\x20\ + \x01(\x0cR\x06rowKeyB\x03\xe0A\x02\x12B\n\x05rules\x18\x03\x20\x03(\x0b2\ + '.google.bigtable.v2.ReadModifyWriteRuleR\x05rulesB\x03\xe0A\x02\"G\n\ + \x1aReadModifyWriteRowResponse\x12)\n\x03row\x18\x01\x20\x01(\x0b2\x17.g\ + oogle.bigtable.v2.RowR\x03row2\xc4\x0e\n\x08Bigtable\x12\xc6\x01\n\x08Re\ + adRows\x12#.google.bigtable.v2.ReadRowsRequest\x1a$.google.bigtable.v2.R\ + eadRowsResponse\"m\x82\xd3\xe4\x93\x02>\"9/v2/{table_name=projects/*/ins\ + tances/*/tables/*}:readRows:\x01*\xdaA\ntable_name\xdaA\x19table_name,ap\ + p_profile_id0\x01\x12\xd7\x01\n\rSampleRowKeys\x12(.google.bigtable.v2.S\ + ampleRowKeysRequest\x1a).google.bigtable.v2.SampleRowKeysResponse\"o\x82\ + \xd3\xe4\x93\x02@\x12>/v2/{table_name=projects/*/instances/*/tables/*}:s\ + ampleRowKeys\xdaA\ntable_name\xdaA\x19table_name,app_profile_id0\x01\x12\ + \xed\x01\n\tMutateRow\x12$.google.bigtable.v2.MutateRowRequest\x1a%.goog\ + le.bigtable.v2.MutateRowResponse\"\x92\x01\x82\xd3\xe4\x93\x02?\":/v2/{t\ + able_name=projects/*/instances/*/tables/*}:mutateRow:\x01*\xdaA\x1ctable\ + _name,row_key,mutations\xdaA+table_name,row_key,mutations,app_profile_id\ + \x12\xde\x01\n\nMutateRows\x12%.google.bigtable.v2.MutateRowsRequest\x1a\ + &.google.bigtable.v2.MutateRowsResponse\"\x7f\x82\xd3\xe4\x93\x02@\";/v2\ + /{table_name=projects/*/instances/*/tables/*}:mutateRows:\x01*\xdaA\x12t\ + able_name,entries\xdaA!table_name,entries,app_profile_id0\x01\x12\xd9\ + \x02\n\x11CheckAndMutateRow\x12,.google.bigtable.v2.CheckAndMutateRowReq\ + uest\x1a-.google.bigtable.v2.CheckAndMutateRowResponse\"\xe6\x01\x82\xd3\ + \xe4\x93\x02G\"B/v2/{table_name=projects/*/instances/*/tables/*}:checkAn\ + dMutateRow:\x01*\xdaABtable_name,row_key,predicate_filter,true_mutations\ ,false_mutations\xdaAQtable_name,row_key,predicate_filter,true_mutations\ - ,false_mutations,app_profile_id\x82\xd3\xe4\x93\x02G\"B/v2/{table_name=p\ - rojects/*/instances/*/tables/*}:checkAndMutateRow:\x01*\x8a\xd3\xe4\x93\ - \x02N\x12:\n\ntable_name\x12,{table_name=projects/*/instances/*/tables/*\ - }\x12\x10\n\x0eapp_profile_id\x12\xee\x01\n\x0bPingAndWarm\x12&.google.b\ - igtable.v2.PingAndWarmRequest\x1a'.google.bigtable.v2.PingAndWarmRespons\ - e\"\x8d\x01\xdaA\x04name\xdaA\x13name,app_profile_id\x82\xd3\xe4\x93\x02\ - +\"&/v2/{name=projects/*/instances/*}:ping:\x01*\x8a\xd3\xe4\x93\x029\ - \x12%\n\x04name\x12\x1d{name=projects/*/instances/*}\x12\x10\n\x0eapp_pr\ - ofile_id\x12\xdd\x02\n\x12ReadModifyWriteRow\x12-.google.bigtable.v2.Rea\ - dModifyWriteRowRequest\x1a..google.bigtable.v2.ReadModifyWriteRowRespons\ - e\"\xe7\x01\xdaA\x18table_name,row_key,rules\xdaA'table_name,row_key,rul\ - es,app_profile_id\x82\xd3\xe4\x93\x02H\"C/v2/{table_name=projects/*/inst\ - ances/*/tables/*}:readModifyWriteRow:\x01*\x8a\xd3\xe4\x93\x02N\x12:\n\n\ - table_name\x12,{table_name=projects/*/instances/*/tables/*}\x12\x10\n\ - \x0eapp_profile_id\x12\xbb\x02\n%GenerateInitialChangeStreamPartitions\ - \x12@.google.bigtable.v2.GenerateInitialChangeStreamPartitionsRequest\ - \x1aA.google.bigtable.v2.GenerateInitialChangeStreamPartitionsResponse\"\ - \x8a\x01\x82\xd3\xe4\x93\x02[\"V/v2/{table_name=projects/*/instances/*/t\ - ables/*}:generateInitialChangeStreamPartitions:\x01*\xdaA\ntable_name\ - \xdaA\x19table_name,app_profile_id0\x01\x12\xe6\x01\n\x10ReadChangeStrea\ - m\x12+.google.bigtable.v2.ReadChangeStreamRequest\x1a,.google.bigtable.v\ - 2.ReadChangeStreamResponse\"u\x82\xd3\xe4\x93\x02F\"A/v2/{table_name=pro\ - jects/*/instances/*/tables/*}:readChangeStream:\x01*\xdaA\ntable_name\ - \xdaA\x19table_name,app_profile_id0\x01\x1a\xdb\x02\xd2A\xbd\x02https://\ - www.googleapis.com/auth/bigtable.data,https://www.googleapis.com/auth/bi\ - gtable.data.readonly,https://www.googleapis.com/auth/cloud-bigtable.data\ - ,https://www.googleapis.com/auth/cloud-bigtable.data.readonly,https://ww\ - w.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/clo\ - ud-platform.read-only\xcaA\x17bigtable.googleapis.comB\xeb\x02\n\x16com.\ - google.bigtable.v2B\rBigtableProtoP\x01Z:google.golang.org/genproto/goog\ - leapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\ - \x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2\ - \xeaAP\n%bigtableadmin.googleapis.com/Instance\x12'projects/{project}/in\ - stances/{instance}\xeaA\\\n\"bigtableadmin.googleapis.com/Table\x126proj\ - ects/{project}/instances/{instance}/tables/{table}J\xd7\xfb\x01\n\x07\ - \x12\x05\x0e\0\xea\x06\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ - he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ - \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ - ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ - of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ - licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ - w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0\x1b\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\ - \x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\ - \x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\0\"\n\t\n\x02\x03\x05\x12\x03\x17\ - \0'\n\t\n\x02\x03\x06\x12\x03\x18\00\n\t\n\x02\x03\x07\x12\x03\x19\0(\n\ - \t\n\x02\x03\x08\x12\x03\x1a\0)\n\t\n\x02\x03\t\x12\x03\x1b\0(\n\t\n\x02\ - \x03\n\x12\x03\x1c\0!\n\x08\n\x01\x08\x12\x03\x1e\05\n\t\n\x02\x08%\x12\ - \x03\x1e\05\n\x08\n\x01\x08\x12\x03\x1f\0Q\n\t\n\x02\x08\x0b\x12\x03\x1f\ - \0Q\n\x08\n\x01\x08\x12\x03\x20\0\"\n\t\n\x02\x08\n\x12\x03\x20\0\"\n\ - \x08\n\x01\x08\x12\x03!\0.\n\t\n\x02\x08\x08\x12\x03!\0.\n\x08\n\x01\x08\ - \x12\x03\"\0/\n\t\n\x02\x08\x01\x12\x03\"\0/\n\x08\n\x01\x08\x12\x03#\05\ - \n\t\n\x02\x08)\x12\x03#\05\n\x08\n\x01\x08\x12\x03$\04\n\t\n\x02\x08-\ - \x12\x03$\04\n\t\n\x01\x08\x12\x04%\0(\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\ - \x04%\0(\x02\n\t\n\x01\x08\x12\x04)\0,\x02\n\x0c\n\x04\x08\x9d\x08\x01\ - \x12\x04)\0,\x02\nP\n\x02\x06\0\x12\x05/\0\xe1\x01\x01\x1aC\x20Service\ - \x20for\x20reading\x20from\x20and\x20writing\x20to\x20existing\x20Bigtab\ - le\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03/\x08\x10\n\n\n\x03\x06\0\x03\ - \x12\x030\x02?\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x030\x02?\n\x0b\n\x03\ - \x06\0\x03\x12\x041\x027A\n\r\n\x05\x06\0\x03\x9a\x08\x12\x041\x027A\n\ - \xc1\x02\n\x04\x06\0\x02\0\x12\x04>\x02L\x03\x1a\xb2\x02\x20Streams\x20b\ - ack\x20the\x20contents\x20of\x20all\x20requested\x20rows\x20in\x20key\ - \x20order,\x20optionally\n\x20applying\x20the\x20same\x20Reader\x20filte\ - r\x20to\x20each.\x20Depending\x20on\x20their\x20size,\n\x20rows\x20and\ + ,false_mutations,app_profile_id\x12\x89\x02\n\x12ReadModifyWriteRow\x12-\ + .google.bigtable.v2.ReadModifyWriteRowRequest\x1a..google.bigtable.v2.Re\ + adModifyWriteRowResponse\"\x93\x01\x82\xd3\xe4\x93\x02H\"C/v2/{table_nam\ + e=projects/*/instances/*/tables/*}:readModifyWriteRow:\x01*\xdaA\x18tabl\ + e_name,row_key,rules\xdaA'table_name,row_key,rules,app_profile_id\x1a\ + \xdb\x02\xd2A\xbd\x02https://www.googleapis.com/auth/bigtable.data,https\ + ://www.googleapis.com/auth/bigtable.data.readonly,https://www.googleapis\ + .com/auth/cloud-bigtable.data,https://www.googleapis.com/auth/cloud-bigt\ + able.data.readonly,https://www.googleapis.com/auth/cloud-platform,https:\ + //www.googleapis.com/auth/cloud-platform.read-only\xcaA\x17bigtable.goog\ + leapis.comB\xf5\x01\n\x16com.google.bigtable.v2B\rBigtableProtoP\x01Z:go\ + ogle.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Goog\ + le.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xeaAW\n\x1db\ + igtable.googleapis.com/Table\x126projects/{project}/instances/{instance}\ + /tables/{table}J\xd2\x81\x01\n\x07\x12\x05\x0e\0\xbb\x03\x01\n\xbd\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1b\n\t\n\x02\x03\0\x12\ + \x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\ + \x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\0\ + '\n\t\n\x02\x03\x05\x12\x03\x17\0(\n\t\n\x02\x03\x06\x12\x03\x18\0!\n\ + \x08\n\x01\x08\x12\x03\x1a\05\n\t\n\x02\x08%\x12\x03\x1a\05\n\x08\n\x01\ + \x08\x12\x03\x1b\0Q\n\t\n\x02\x08\x0b\x12\x03\x1b\0Q\n\x08\n\x01\x08\x12\ + \x03\x1c\0\"\n\t\n\x02\x08\n\x12\x03\x1c\0\"\n\x08\n\x01\x08\x12\x03\x1d\ + \0.\n\t\n\x02\x08\x08\x12\x03\x1d\0.\n\x08\n\x01\x08\x12\x03\x1e\0/\n\t\ + \n\x02\x08\x01\x12\x03\x1e\0/\n\x08\n\x01\x08\x12\x03\x1f\05\n\t\n\x02\ + \x08)\x12\x03\x1f\05\n\t\n\x01\x08\x12\x04\x20\0#\x02\n\x0c\n\x04\x08\ + \x9d\x08\0\x12\x04\x20\0#\x02\nO\n\x02\x06\0\x12\x04&\0x\x01\x1aC\x20Ser\ + vice\x20for\x20reading\x20from\x20and\x20writing\x20to\x20existing\x20Bi\ + gtable\x20tables.\n\n\n\n\x03\x06\0\x01\x12\x03&\x08\x10\n\n\n\x03\x06\0\ + \x03\x12\x03'\x02?\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03'\x02?\n\x0b\n\ + \x03\x06\0\x03\x12\x04(\x02.A\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04(\x02.A\ + \n\xc1\x02\n\x04\x06\0\x02\0\x12\x045\x02<\x03\x1a\xb2\x02\x20Streams\ + \x20back\x20the\x20contents\x20of\x20all\x20requested\x20rows\x20in\x20k\ + ey\x20order,\x20optionally\n\x20applying\x20the\x20same\x20Reader\x20fil\ + ter\x20to\x20each.\x20Depending\x20on\x20their\x20size,\n\x20rows\x20and\ \x20cells\x20may\x20be\x20broken\x20up\x20across\x20multiple\x20response\ s,\x20but\n\x20atomicity\x20of\x20each\x20row\x20will\x20still\x20be\x20\ preserved.\x20See\x20the\n\x20ReadRowsResponse\x20documentation\x20for\ - \x20details.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03>\x06\x0e\n\x0c\n\x05\ - \x06\0\x02\0\x02\x12\x03>\x0f\x1e\n\x0c\n\x05\x06\0\x02\0\x06\x12\x03>)/\ - \n\x0c\n\x05\x06\0\x02\0\x03\x12\x03>0@\n\r\n\x05\x06\0\x02\0\x04\x12\ - \x04?\x04B\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04?\x04B\x06\ - \n\r\n\x05\x06\0\x02\0\x04\x12\x04C\x04I\x06\n\x11\n\t\x06\0\x02\0\x04\ - \xb1\xca\xbc\"\x12\x04C\x04I\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03J\ - \x048\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03J\x048\n\x0c\n\x05\ - \x06\0\x02\0\x04\x12\x03K\x04G\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\x01\ - \x12\x03K\x04G\n\xed\x01\n\x04\x06\0\x02\x01\x12\x04R\x02`\x03\x1a\xde\ - \x01\x20Returns\x20a\x20sample\x20of\x20row\x20keys\x20in\x20the\x20tabl\ - e.\x20The\x20returned\x20row\x20keys\x20will\n\x20delimit\x20contiguous\ - \x20sections\x20of\x20the\x20table\x20of\x20approximately\x20equal\x20si\ - ze,\n\x20which\x20can\x20be\x20used\x20to\x20break\x20up\x20the\x20data\ - \x20for\x20distributed\x20tasks\x20like\n\x20mapreduces.\n\n\x0c\n\x05\ - \x06\0\x02\x01\x01\x12\x03R\x06\x13\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ - \x03R\x14(\n\x0c\n\x05\x06\0\x02\x01\x06\x12\x03S\x0f\x15\n\x0c\n\x05\ - \x06\0\x02\x01\x03\x12\x03S\x16+\n\r\n\x05\x06\0\x02\x01\x04\x12\x04T\ - \x04V\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04T\x04V\x06\n\ - \r\n\x05\x06\0\x02\x01\x04\x12\x04W\x04]\x06\n\x11\n\t\x06\0\x02\x01\x04\ - \xb1\xca\xbc\"\x12\x04W\x04]\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03^\ - \x048\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03^\x048\n\x0c\n\x05\ - \x06\0\x02\x01\x04\x12\x03_\x04G\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\ - \x01\x12\x03_\x04G\n\x87\x01\n\x04\x06\0\x02\x02\x12\x04d\x02s\x03\x1ay\ - \x20Mutates\x20a\x20row\x20atomically.\x20Cells\x20already\x20present\ - \x20in\x20the\x20row\x20are\x20left\n\x20unchanged\x20unless\x20explicit\ - ly\x20changed\x20by\x20`mutation`.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\ - \x03d\x06\x0f\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03d\x10\x20\n\x0c\n\x05\ - \x06\0\x02\x02\x03\x12\x03d+<\n\r\n\x05\x06\0\x02\x02\x04\x12\x04e\x04h\ - \x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04e\x04h\x06\n\r\n\ - \x05\x06\0\x02\x02\x04\x12\x04i\x04o\x06\n\x11\n\t\x06\0\x02\x02\x04\xb1\ - \xca\xbc\"\x12\x04i\x04o\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03p\x04J\ - \n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03p\x04J\n\r\n\x05\x06\0\ - \x02\x02\x04\x12\x04q\x04r6\n\x10\n\x08\x06\0\x02\x02\x04\x9b\x08\x01\ - \x12\x04q\x04r6\n\xa1\x01\n\x04\x06\0\x02\x03\x12\x05x\x02\x86\x01\x03\ - \x1a\x91\x01\x20Mutates\x20multiple\x20rows\x20in\x20a\x20batch.\x20Each\ - \x20individual\x20row\x20is\x20mutated\n\x20atomically\x20as\x20in\x20Mu\ - tateRow,\x20but\x20the\x20entire\x20batch\x20is\x20not\x20executed\n\x20\ - atomically.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03x\x06\x10\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03x\x11\"\n\x0c\n\x05\x06\0\x02\x03\x06\x12\x03x\ - -3\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03x4F\n\r\n\x05\x06\0\x02\x03\x04\ - \x12\x04y\x04|\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04y\ - \x04|\x06\n\x0e\n\x05\x06\0\x02\x03\x04\x12\x05}\x04\x83\x01\x06\n\x12\n\ - \t\x06\0\x02\x03\x04\xb1\xca\xbc\"\x12\x05}\x04\x83\x01\x06\n\r\n\x05\ - \x06\0\x02\x03\x04\x12\x04\x84\x01\x04@\n\x10\n\x08\x06\0\x02\x03\x04\ - \x9b\x08\0\x12\x04\x84\x01\x04@\n\r\n\x05\x06\0\x02\x03\x04\x12\x04\x85\ - \x01\x04O\n\x10\n\x08\x06\0\x02\x03\x04\x9b\x08\x01\x12\x04\x85\x01\x04O\ - \n\\\n\x04\x06\0\x02\x04\x12\x06\x89\x01\x02\x9a\x01\x03\x1aL\x20Mutates\ - \x20a\x20row\x20atomically\x20based\x20on\x20the\x20output\x20of\x20a\ - \x20predicate\x20Reader\x20filter.\n\n\r\n\x05\x06\0\x02\x04\x01\x12\x04\ - \x89\x01\x06\x17\n\r\n\x05\x06\0\x02\x04\x02\x12\x04\x89\x01\x180\n\r\n\ - \x05\x06\0\x02\x04\x03\x12\x04\x8a\x01\x0f(\n\x0f\n\x05\x06\0\x02\x04\ - \x04\x12\x06\x8b\x01\x04\x8e\x01\x06\n\x13\n\t\x06\0\x02\x04\x04\xb0\xca\ - \xbc\"\x12\x06\x8b\x01\x04\x8e\x01\x06\n\x0f\n\x05\x06\0\x02\x04\x04\x12\ - \x06\x8f\x01\x04\x95\x01\x06\n\x13\n\t\x06\0\x02\x04\x04\xb1\xca\xbc\"\ - \x12\x06\x8f\x01\x04\x95\x01\x06\n\x0f\n\x05\x06\0\x02\x04\x04\x12\x06\ - \x96\x01\x04\x97\x01M\n\x12\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x06\ - \x96\x01\x04\x97\x01M\n\x0f\n\x05\x06\0\x02\x04\x04\x12\x06\x98\x01\x04\ - \x99\x01\\\n\x12\n\x08\x06\0\x02\x04\x04\x9b\x08\x01\x12\x06\x98\x01\x04\ - \x99\x01\\\n\x94\x01\n\x04\x06\0\x02\x05\x12\x06\x9e\x01\x02\xac\x01\x03\ - \x1a\x83\x01\x20Warm\x20up\x20associated\x20instance\x20metadata\x20for\ - \x20this\x20connection.\n\x20This\x20call\x20is\x20not\x20required\x20bu\ - t\x20may\x20be\x20useful\x20for\x20connection\x20keep-alive.\n\n\r\n\x05\ - \x06\0\x02\x05\x01\x12\x04\x9e\x01\x06\x11\n\r\n\x05\x06\0\x02\x05\x02\ - \x12\x04\x9e\x01\x12$\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\x9e\x01/B\n\ - \x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x9f\x01\x04\xa2\x01\x06\n\x13\n\t\ - \x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x9f\x01\x04\xa2\x01\x06\n\x0f\n\ - \x05\x06\0\x02\x05\x04\x12\x06\xa3\x01\x04\xa9\x01\x06\n\x13\n\t\x06\0\ - \x02\x05\x04\xb1\xca\xbc\"\x12\x06\xa3\x01\x04\xa9\x01\x06\n\r\n\x05\x06\ - \0\x02\x05\x04\x12\x04\xaa\x01\x042\n\x10\n\x08\x06\0\x02\x05\x04\x9b\ - \x08\0\x12\x04\xaa\x01\x042\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\xab\x01\ - \x04A\n\x10\n\x08\x06\0\x02\x05\x04\x9b\x08\x01\x12\x04\xab\x01\x04A\n\ - \xf8\x02\n\x04\x06\0\x02\x06\x12\x06\xb3\x01\x02\xc3\x01\x03\x1a\xe7\x02\ - \x20Modifies\x20a\x20row\x20atomically\x20on\x20the\x20server.\x20The\ - \x20method\x20reads\x20the\x20latest\n\x20existing\x20timestamp\x20and\ - \x20value\x20from\x20the\x20specified\x20columns\x20and\x20writes\x20a\ - \x20new\n\x20entry\x20based\x20on\x20pre-defined\x20read/modify/write\ - \x20rules.\x20The\x20new\x20value\x20for\x20the\n\x20timestamp\x20is\x20\ - the\x20greater\x20of\x20the\x20existing\x20timestamp\x20or\x20the\x20cur\ - rent\x20server\n\x20time.\x20The\x20method\x20returns\x20the\x20new\x20c\ - ontents\x20of\x20all\x20modified\x20cells.\n\n\r\n\x05\x06\0\x02\x06\x01\ - \x12\x04\xb3\x01\x06\x18\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\xb3\x01\x19\ - 2\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\xb4\x01\x0f)\n\x0f\n\x05\x06\0\x02\ - \x06\x04\x12\x06\xb5\x01\x04\xb8\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\ - \xca\xbc\"\x12\x06\xb5\x01\x04\xb8\x01\x06\n\x0f\n\x05\x06\0\x02\x06\x04\ - \x12\x06\xb9\x01\x04\xbf\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb1\xca\xbc\ - \"\x12\x06\xb9\x01\x04\xbf\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\ - \xc0\x01\x04F\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\xc0\x01\ - \x04F\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\xc1\x01\x04\xc2\x012\n\x12\n\ - \x08\x06\0\x02\x06\x04\x9b\x08\x01\x12\x06\xc1\x01\x04\xc2\x012\n\x8d\ - \x02\n\x04\x06\0\x02\x07\x12\x06\xc9\x01\x02\xd2\x01\x03\x1a\xfc\x01\x20\ - NOTE:\x20This\x20API\x20is\x20intended\x20to\x20be\x20used\x20by\x20Apac\ - he\x20Beam\x20BigtableIO.\n\x20Returns\x20the\x20current\x20list\x20of\ - \x20partitions\x20that\x20make\x20up\x20the\x20table's\n\x20change\x20st\ - ream.\x20The\x20union\x20of\x20partitions\x20will\x20cover\x20the\x20ent\ - ire\x20keyspace.\n\x20Partitions\x20can\x20be\x20read\x20with\x20`ReadCh\ - angeStream`.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\xc9\x01\x06+\n\r\n\ - \x05\x06\0\x02\x07\x02\x12\x04\xca\x01\x062\n\r\n\x05\x06\0\x02\x07\x06\ - \x12\x04\xcb\x01\x0f\x15\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xcb\x01\x16\ - C\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\xcc\x01\x04\xcf\x01\x06\n\x13\n\ - \t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\xcc\x01\x04\xcf\x01\x06\n\r\n\ - \x05\x06\0\x02\x07\x04\x12\x04\xd0\x01\x048\n\x10\n\x08\x06\0\x02\x07\ - \x04\x9b\x08\0\x12\x04\xd0\x01\x048\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\ - \xd1\x01\x04G\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\x01\x12\x04\xd1\x01\ - \x04G\n\xea\x01\n\x04\x06\0\x02\x08\x12\x06\xd8\x01\x02\xe0\x01\x03\x1a\ - \xd9\x01\x20NOTE:\x20This\x20API\x20is\x20intended\x20to\x20be\x20used\ - \x20by\x20Apache\x20Beam\x20BigtableIO.\n\x20Reads\x20changes\x20from\ - \x20a\x20table's\x20change\x20stream.\x20Changes\x20will\n\x20reflect\ - \x20both\x20user-initiated\x20mutations\x20and\x20mutations\x20that\x20a\ - re\x20caused\x20by\n\x20garbage\x20collection.\n\n\r\n\x05\x06\0\x02\x08\ - \x01\x12\x04\xd8\x01\x06\x16\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xd8\x01\ - \x17.\n\r\n\x05\x06\0\x02\x08\x06\x12\x04\xd9\x01\x0f\x15\n\r\n\x05\x06\ - \0\x02\x08\x03\x12\x04\xd9\x01\x16.\n\x0f\n\x05\x06\0\x02\x08\x04\x12\ - \x06\xda\x01\x04\xdd\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\ - \x12\x06\xda\x01\x04\xdd\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xde\ - \x01\x048\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xde\x01\x048\n\ - \r\n\x05\x06\0\x02\x08\x04\x12\x04\xdf\x01\x04G\n\x10\n\x08\x06\0\x02\ - \x08\x04\x9b\x08\x01\x12\x04\xdf\x01\x04G\n6\n\x02\x04\0\x12\x06\xe4\x01\ - \0\x9f\x02\x01\x1a(\x20Request\x20message\x20for\x20Bigtable.ReadRows.\n\ - \n\x0b\n\x03\x04\0\x01\x12\x04\xe4\x01\x08\x17\n\x7f\n\x04\x04\0\x04\0\ - \x12\x06\xe8\x01\x02\xf3\x01\x03\x1ao\x20The\x20desired\x20view\x20into\ - \x20RequestStats\x20that\x20should\x20be\x20returned\x20in\x20the\x20res\ - ponse.\n\n\x20See\x20also:\x20RequestStats\x20message.\n\n\r\n\x05\x04\0\ - \x04\0\x01\x12\x04\xe8\x01\x07\x17\n[\n\x06\x04\0\x04\0\x02\0\x12\x04\ - \xea\x01\x04'\x1aK\x20The\x20default\x20/\x20unset\x20value.\x20The\x20A\ - PI\x20will\x20default\x20to\x20the\x20NONE\x20option\x20below.\n\n\x0f\n\ - \x07\x04\0\x04\0\x02\0\x01\x12\x04\xea\x01\x04\"\n\x0f\n\x07\x04\0\x04\0\ - \x02\0\x02\x12\x04\xea\x01%&\n\x8c\x01\n\x06\x04\0\x04\0\x02\x01\x12\x04\ - \xee\x01\x04\x1b\x1a|\x20Do\x20not\x20include\x20any\x20RequestStats\x20\ - in\x20the\x20response.\x20This\x20will\x20leave\x20the\n\x20RequestStats\ - \x20embedded\x20message\x20unset\x20in\x20the\x20response.\n\n\x0f\n\x07\ - \x04\0\x04\0\x02\x01\x01\x12\x04\xee\x01\x04\x16\n\x0f\n\x07\x04\0\x04\0\ - \x02\x01\x02\x12\x04\xee\x01\x19\x1a\nk\n\x06\x04\0\x04\0\x02\x02\x12\ - \x04\xf2\x01\x04\x1b\x1a[\x20Include\x20the\x20full\x20set\x20of\x20avai\ - lable\x20RequestStats\x20in\x20the\x20response,\n\x20applicable\x20to\ - \x20this\x20read.\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\x12\x04\xf2\x01\ - \x04\x16\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xf2\x01\x19\x1a\n\ - \xa0\x01\n\x04\x04\0\x02\0\x12\x06\xf8\x01\x02\xfd\x01\x04\x1a\x8f\x01\ - \x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20from\x20\ - which\x20to\x20read.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`proje\ - cts//instances//tables/
`.\n\n\r\n\x05\x04\0\ - \x02\0\x05\x12\x04\xf8\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xf8\ - \x01\t\x13\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xf8\x01\x16\x17\n\x0f\n\x05\ - \x04\0\x02\0\x08\x12\x06\xf8\x01\x18\xfd\x01\x03\n\x10\n\x08\x04\0\x02\0\ - \x08\x9c\x08\0\x12\x04\xf9\x01\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\ - \x12\x06\xfa\x01\x04\xfc\x01\x05\n\x80\x01\n\x04\x04\0\x02\x01\x12\x04\ - \x81\x02\x02\x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\ - \x20replication.\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20a\ - pplication\x20profile\x20will\x20be\x20used.\n\n\r\n\x05\x04\0\x02\x01\ - \x05\x12\x04\x81\x02\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x81\x02\ - \t\x17\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x81\x02\x1a\x1b\nh\n\x04\x04\ - \0\x02\x02\x12\x04\x85\x02\x02\x12\x1aZ\x20The\x20row\x20keys\x20and/or\ - \x20ranges\x20to\x20read\x20sequentially.\x20If\x20not\x20specified,\x20\ - reads\n\x20from\x20all\x20rows.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\ - \x85\x02\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x85\x02\t\r\n\r\n\ - \x05\x04\0\x02\x02\x03\x12\x04\x85\x02\x10\x11\nw\n\x04\x04\0\x02\x03\ - \x12\x04\x89\x02\x02\x17\x1ai\x20The\x20filter\x20to\x20apply\x20to\x20t\ - he\x20contents\x20of\x20the\x20specified\x20row(s).\x20If\x20unset,\n\ - \x20reads\x20the\x20entirety\x20of\x20each\x20row.\n\n\r\n\x05\x04\0\x02\ - \x03\x06\x12\x04\x89\x02\x02\x0b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x89\ - \x02\x0c\x12\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x89\x02\x15\x16\n~\n\ - \x04\x04\0\x02\x04\x12\x04\x8d\x02\x02\x17\x1ap\x20The\x20read\x20will\ - \x20stop\x20after\x20committing\x20to\x20N\x20rows'\x20worth\x20of\x20re\ - sults.\x20The\n\x20default\x20(zero)\x20is\x20to\x20return\x20all\x20res\ - ults.\n\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\x8d\x02\x02\x07\n\r\n\x05\ - \x04\0\x02\x04\x01\x12\x04\x8d\x02\x08\x12\n\r\n\x05\x04\0\x02\x04\x03\ - \x12\x04\x8d\x02\x15\x16\n?\n\x04\x04\0\x02\x05\x12\x04\x90\x02\x02*\x1a\ - 1\x20The\x20view\x20into\x20RequestStats,\x20as\x20described\x20above.\n\ - \n\r\n\x05\x04\0\x02\x05\x06\x12\x04\x90\x02\x02\x12\n\r\n\x05\x04\0\x02\ - \x05\x01\x12\x04\x90\x02\x13%\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\x90\ - \x02()\n\xf9\x02\n\x04\x04\0\x02\x06\x12\x04\x9e\x02\x02\x14\x1a\xea\x02\ - \x20Experimental\x20API\x20-\x20Please\x20note\x20that\x20this\x20API\ - \x20is\x20currently\x20experimental\n\x20and\x20can\x20change\x20in\x20t\ - he\x20future.\n\n\x20Return\x20rows\x20in\x20lexiographical\x20descendin\ - g\x20order\x20of\x20the\x20row\x20keys.\x20The\x20row\n\x20contents\x20w\ - ill\x20not\x20be\x20affected\x20by\x20this\x20flag.\n\n\x20Example\x20re\ - sult\x20set:\n\n\x20\x20\x20\x20\x20[\n\x20\x20\x20\x20\x20\x20\x20{key:\ - \x20\"k2\",\x20\"f:col1\":\x20\"v1\",\x20\"f:col2\":\x20\"v1\"},\n\x20\ - \x20\x20\x20\x20\x20\x20{key:\x20\"k1\",\x20\"f:col1\":\x20\"v2\",\x20\"\ - f:col2\":\x20\"v2\"}\n\x20\x20\x20\x20\x20]\n\n\r\n\x05\x04\0\x02\x06\ - \x05\x12\x04\x9e\x02\x02\x06\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\x9e\x02\ - \x07\x0f\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\x9e\x02\x12\x13\n7\n\x02\ - \x04\x01\x12\x06\xa2\x02\0\x84\x03\x01\x1a)\x20Response\x20message\x20fo\ - r\x20Bigtable.ReadRows.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xa2\x02\x08\ - \x18\nf\n\x04\x04\x01\x03\0\x12\x06\xa5\x02\x02\xe1\x02\x03\x1aV\x20Spec\ + \x20details.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x035\x06\x0e\n\x0c\n\x05\ + \x06\0\x02\0\x02\x12\x035\x0f\x1e\n\x0c\n\x05\x06\0\x02\0\x06\x12\x035)/\ + \n\x0c\n\x05\x06\0\x02\0\x03\x12\x0350@\n\r\n\x05\x06\0\x02\0\x04\x12\ + \x046\x049\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x046\x049\x06\ + \n\x0c\n\x05\x06\0\x02\0\x04\x12\x03:\x048\n\x0f\n\x08\x06\0\x02\0\x04\ + \x9b\x08\0\x12\x03:\x048\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03;\x04G\n\x0f\ + \n\x08\x06\0\x02\0\x04\x9b\x08\x01\x12\x03;\x04G\n\xed\x01\n\x04\x06\0\ + \x02\x01\x12\x04B\x02H\x03\x1a\xde\x01\x20Returns\x20a\x20sample\x20of\ + \x20row\x20keys\x20in\x20the\x20table.\x20The\x20returned\x20row\x20keys\ + \x20will\n\x20delimit\x20contiguous\x20sections\x20of\x20the\x20table\ + \x20of\x20approximately\x20equal\x20size,\n\x20which\x20can\x20be\x20use\ + d\x20to\x20break\x20up\x20the\x20data\x20for\x20distributed\x20tasks\x20\ + like\n\x20mapreduces.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03B\x06\x13\n\ + \x0c\n\x05\x06\0\x02\x01\x02\x12\x03B\x14(\n\x0c\n\x05\x06\0\x02\x01\x06\ + \x12\x03B39\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03B:O\n\r\n\x05\x06\0\x02\ + \x01\x04\x12\x04C\x04E\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\ + \x04C\x04E\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03F\x048\n\x0f\n\x08\ + \x06\0\x02\x01\x04\x9b\x08\0\x12\x03F\x048\n\x0c\n\x05\x06\0\x02\x01\x04\ + \x12\x03G\x04G\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\x01\x12\x03G\x04G\n\ + \x87\x01\n\x04\x06\0\x02\x02\x12\x04L\x02S\x03\x1ay\x20Mutates\x20a\x20r\ + ow\x20atomically.\x20Cells\x20already\x20present\x20in\x20the\x20row\x20\ + are\x20left\n\x20unchanged\x20unless\x20explicitly\x20changed\x20by\x20`\ + mutation`.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03L\x06\x0f\n\x0c\n\x05\ + \x06\0\x02\x02\x02\x12\x03L\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\x12\ + \x03L+<\n\r\n\x05\x06\0\x02\x02\x04\x12\x04M\x04P\x06\n\x11\n\t\x06\0\ + \x02\x02\x04\xb0\xca\xbc\"\x12\x04M\x04P\x06\n\x0c\n\x05\x06\0\x02\x02\ + \x04\x12\x03Q\x04J\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03Q\x04J\ + \n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03R\x04Y\n\x0f\n\x08\x06\0\x02\x02\ + \x04\x9b\x08\x01\x12\x03R\x04Y\n\xa0\x01\n\x04\x06\0\x02\x03\x12\x04X\ + \x02_\x03\x1a\x91\x01\x20Mutates\x20multiple\x20rows\x20in\x20a\x20batch\ + .\x20Each\x20individual\x20row\x20is\x20mutated\n\x20atomically\x20as\ + \x20in\x20MutateRow,\x20but\x20the\x20entire\x20batch\x20is\x20not\x20ex\ + ecuted\n\x20atomically.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03X\x06\x10\ + \n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03X\x11\"\n\x0c\n\x05\x06\0\x02\x03\ + \x06\x12\x03X-3\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03X4F\n\r\n\x05\x06\0\ + \x02\x03\x04\x12\x04Y\x04\\\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\ + \"\x12\x04Y\x04\\\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03]\x04@\n\x0f\ + \n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03]\x04@\n\x0c\n\x05\x06\0\x02\ + \x03\x04\x12\x03^\x04O\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\x01\x12\x03\ + ^\x04O\nZ\n\x04\x06\0\x02\x04\x12\x04b\x02i\x03\x1aL\x20Mutates\x20a\x20\ + row\x20atomically\x20based\x20on\x20the\x20output\x20of\x20a\x20predicat\ + e\x20Reader\x20filter.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03b\x06\x17\ + \n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03b\x180\n\x0c\n\x05\x06\0\x02\x04\ + \x03\x12\x03b;T\n\r\n\x05\x06\0\x02\x04\x04\x12\x04c\x04f\x06\n\x11\n\t\ + \x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04c\x04f\x06\n\x0c\n\x05\x06\0\x02\ + \x04\x04\x12\x03g\x04p\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03g\ + \x04p\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03h\x04\x7f\n\x0f\n\x08\x06\0\ + \x02\x04\x04\x9b\x08\x01\x12\x03h\x04\x7f\n\xf6\x02\n\x04\x06\0\x02\x05\ + \x12\x04p\x02w\x03\x1a\xe7\x02\x20Modifies\x20a\x20row\x20atomically\x20\ + on\x20the\x20server.\x20The\x20method\x20reads\x20the\x20latest\n\x20exi\ + sting\x20timestamp\x20and\x20value\x20from\x20the\x20specified\x20column\ + s\x20and\x20writes\x20a\x20new\n\x20entry\x20based\x20on\x20pre-defined\ + \x20read/modify/write\x20rules.\x20The\x20new\x20value\x20for\x20the\n\ + \x20timestamp\x20is\x20the\x20greater\x20of\x20the\x20existing\x20timest\ + amp\x20or\x20the\x20current\x20server\n\x20time.\x20The\x20method\x20ret\ + urns\x20the\x20new\x20contents\x20of\x20all\x20modified\x20cells.\n\n\ + \x0c\n\x05\x06\0\x02\x05\x01\x12\x03p\x06\x18\n\x0c\n\x05\x06\0\x02\x05\ + \x02\x12\x03p\x192\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03p=W\n\r\n\x05\ + \x06\0\x02\x05\x04\x12\x04q\x04t\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\ + \xbc\"\x12\x04q\x04t\x06\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03u\x04F\n\ + \x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03u\x04F\n\x0c\n\x05\x06\0\ + \x02\x05\x04\x12\x03v\x04U\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\x01\x12\ + \x03v\x04U\n5\n\x02\x04\0\x12\x05{\0\x94\x01\x01\x1a(\x20Request\x20mess\ + age\x20for\x20Bigtable.ReadRows.\n\n\n\n\x03\x04\0\x01\x12\x03{\x08\x17\ + \n\x9f\x01\n\x04\x04\0\x02\0\x12\x05\x7f\x02\x84\x01\x04\x1a\x8f\x01\x20\ + Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20from\x20whic\ + h\x20to\x20read.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/\ + /instances//tables/
`.\n\n\x0c\n\x05\x04\0\x02\ + \0\x05\x12\x03\x7f\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x7f\t\x13\ + \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x7f\x16\x17\n\x0e\n\x05\x04\0\x02\0\ + \x08\x12\x05\x7f\x18\x84\x01\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\ + \x12\x04\x80\x01\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\x81\ + \x01\x04\x83\x01\x05\n\x80\x01\n\x04\x04\0\x02\x01\x12\x04\x88\x01\x02\ + \x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\x20replication\ + .\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20application\x20p\ + rofile\x20will\x20be\x20used.\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x88\ + \x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x88\x01\t\x17\n\r\n\x05\ + \x04\0\x02\x01\x03\x12\x04\x88\x01\x1a\x1b\nZ\n\x04\x04\0\x02\x02\x12\ + \x04\x8b\x01\x02\x12\x1aL\x20The\x20row\x20keys\x20and/or\x20ranges\x20t\ + o\x20read.\x20If\x20not\x20specified,\x20reads\x20from\x20all\x20rows.\n\ + \n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8b\x01\x02\x08\n\r\n\x05\x04\0\x02\ + \x02\x01\x12\x04\x8b\x01\t\r\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x8b\x01\ + \x10\x11\nw\n\x04\x04\0\x02\x03\x12\x04\x8f\x01\x02\x17\x1ai\x20The\x20f\ + ilter\x20to\x20apply\x20to\x20the\x20contents\x20of\x20the\x20specified\ + \x20row(s).\x20If\x20unset,\n\x20reads\x20the\x20entirety\x20of\x20each\ + \x20row.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x8f\x01\x02\x0b\n\r\n\x05\ + \x04\0\x02\x03\x01\x12\x04\x8f\x01\x0c\x12\n\r\n\x05\x04\0\x02\x03\x03\ + \x12\x04\x8f\x01\x15\x16\n\x83\x01\n\x04\x04\0\x02\x04\x12\x04\x93\x01\ + \x02\x17\x1au\x20The\x20read\x20will\x20terminate\x20after\x20committing\ + \x20to\x20N\x20rows'\x20worth\x20of\x20results.\x20The\n\x20default\x20(\ + zero)\x20is\x20to\x20return\x20all\x20results.\n\n\r\n\x05\x04\0\x02\x04\ + \x05\x12\x04\x93\x01\x02\x07\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\x93\x01\ + \x08\x12\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\x93\x01\x15\x16\n7\n\x02\ + \x04\x01\x12\x06\x97\x01\0\xe6\x01\x01\x1a)\x20Response\x20message\x20fo\ + r\x20Bigtable.ReadRows.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x97\x01\x08\ + \x18\nf\n\x04\x04\x01\x03\0\x12\x06\x9a\x01\x02\xd9\x01\x03\x1aV\x20Spec\ ifies\x20a\x20piece\x20of\x20a\x20row's\x20contents\x20returned\x20as\ \x20part\x20of\x20the\x20read\n\x20response\x20stream.\n\n\r\n\x05\x04\ - \x01\x03\0\x01\x12\x04\xa5\x02\n\x13\n\xf9\x01\n\x06\x04\x01\x03\0\x02\0\ - \x12\x04\xaa\x02\x04\x16\x1a\xe8\x01\x20The\x20row\x20key\x20for\x20this\ + \x01\x03\0\x01\x12\x04\x9a\x01\n\x13\n\xd7\x02\n\x06\x04\x01\x03\0\x02\0\ + \x12\x04\xa2\x01\x04\x16\x1a\xc6\x02\x20The\x20row\x20key\x20for\x20this\ \x20chunk\x20of\x20data.\x20\x20If\x20the\x20row\x20key\x20is\x20empty,\ \n\x20this\x20CellChunk\x20is\x20a\x20continuation\x20of\x20the\x20same\ \x20row\x20as\x20the\x20previous\n\x20CellChunk\x20in\x20the\x20response\ \x20stream,\x20even\x20if\x20that\x20CellChunk\x20was\x20in\x20a\n\x20pr\ - evious\x20ReadRowsResponse\x20message.\n\n\x0f\n\x07\x04\x01\x03\0\x02\0\ - \x05\x12\x04\xaa\x02\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\ - \xaa\x02\n\x11\n\x0f\n\x07\x04\x01\x03\0\x02\0\x03\x12\x04\xaa\x02\x14\ - \x15\n\xf3\x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04\xb2\x02\x040\x1a\xe2\ - \x02\x20The\x20column\x20family\x20name\x20for\x20this\x20chunk\x20of\ - \x20data.\x20\x20If\x20this\x20message\n\x20is\x20not\x20present\x20this\ - \x20CellChunk\x20is\x20a\x20continuation\x20of\x20the\x20same\x20column\ - \n\x20family\x20as\x20the\x20previous\x20CellChunk.\x20\x20The\x20empty\ - \x20string\x20can\x20occur\x20as\x20a\n\x20column\x20family\x20name\x20i\ - n\x20a\x20response\x20so\x20clients\x20must\x20check\n\x20explicitly\x20\ - for\x20the\x20presence\x20of\x20this\x20message,\x20not\x20just\x20for\n\ - \x20`family_name.value`\x20being\x20non-empty.\n\n\x0f\n\x07\x04\x01\x03\ - \0\x02\x01\x06\x12\x04\xb2\x02\x04\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x01\ - \x01\x12\x04\xb2\x02\x20+\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x04\ - \xb2\x02./\n\xbb\x02\n\x06\x04\x01\x03\0\x02\x02\x12\x04\xb9\x02\x04-\ - \x1a\xaa\x02\x20The\x20column\x20qualifier\x20for\x20this\x20chunk\x20of\ - \x20data.\x20\x20If\x20this\x20message\n\x20is\x20not\x20present,\x20thi\ - s\x20CellChunk\x20is\x20a\x20continuation\x20of\x20the\x20same\x20column\ - \n\x20as\x20the\x20previous\x20CellChunk.\x20\x20Column\x20qualifiers\ - \x20may\x20be\x20empty\x20so\n\x20clients\x20must\x20check\x20for\x20the\ - \x20presence\x20of\x20this\x20message,\x20not\x20just\n\x20for\x20`quali\ - fier.value`\x20being\x20non-empty.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x02\ - \x06\x12\x04\xb9\x02\x04\x1e\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x01\x12\ - \x04\xb9\x02\x1f(\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x03\x12\x04\xb9\x02+\ - ,\n\xdd\x03\n\x06\x04\x01\x03\0\x02\x03\x12\x04\xc3\x02\x04\x1f\x1a\xcc\ - \x03\x20The\x20cell's\x20stored\x20timestamp,\x20which\x20also\x20unique\ - ly\x20identifies\x20it\n\x20within\x20its\x20column.\x20\x20Values\x20ar\ - e\x20always\x20expressed\x20in\n\x20microseconds,\x20but\x20individual\ - \x20tables\x20may\x20set\x20a\x20coarser\n\x20granularity\x20to\x20furth\ - er\x20restrict\x20the\x20allowed\x20values.\x20For\n\x20example,\x20a\ - \x20table\x20which\x20specifies\x20millisecond\x20granularity\x20will\n\ - \x20only\x20allow\x20values\x20of\x20`timestamp_micros`\x20which\x20are\ - \x20multiples\x20of\n\x201000.\x20\x20Timestamps\x20are\x20only\x20set\ - \x20in\x20the\x20first\x20CellChunk\x20per\x20cell\n\x20(for\x20cells\ - \x20split\x20into\x20multiple\x20chunks).\n\n\x0f\n\x07\x04\x01\x03\0\ - \x02\x03\x05\x12\x04\xc3\x02\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x01\ - \x12\x04\xc3\x02\n\x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x03\x12\x04\xc3\ - \x02\x1d\x1e\n\x95\x01\n\x06\x04\x01\x03\0\x02\x04\x12\x04\xc8\x02\x04\ - \x1f\x1a\x84\x01\x20Labels\x20applied\x20to\x20the\x20cell\x20by\x20a\n\ - \x20[RowFilter][google.bigtable.v2.RowFilter].\x20\x20Labels\x20are\x20o\ - nly\x20set\n\x20on\x20the\x20first\x20CellChunk\x20per\x20cell.\n\n\x0f\ - \n\x07\x04\x01\x03\0\x02\x04\x04\x12\x04\xc8\x02\x04\x0c\n\x0f\n\x07\x04\ - \x01\x03\0\x02\x04\x05\x12\x04\xc8\x02\r\x13\n\x0f\n\x07\x04\x01\x03\0\ - \x02\x04\x01\x12\x04\xc8\x02\x14\x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x04\ - \x03\x12\x04\xc8\x02\x1d\x1e\n\xbf\x02\n\x06\x04\x01\x03\0\x02\x05\x12\ - \x04\xcf\x02\x04\x14\x1a\xae\x02\x20The\x20value\x20stored\x20in\x20the\ - \x20cell.\x20\x20Cell\x20values\x20can\x20be\x20split\x20across\n\x20mul\ - tiple\x20CellChunks.\x20\x20In\x20that\x20case\x20only\x20the\x20value\ - \x20field\x20will\x20be\n\x20set\x20in\x20CellChunks\x20after\x20the\x20\ - first:\x20the\x20timestamp\x20and\x20labels\n\x20will\x20only\x20be\x20p\ - resent\x20in\x20the\x20first\x20CellChunk,\x20even\x20if\x20the\x20first\ - \n\x20CellChunk\x20came\x20in\x20a\x20previous\x20ReadRowsResponse.\n\n\ - \x0f\n\x07\x04\x01\x03\0\x02\x05\x05\x12\x04\xcf\x02\x04\t\n\x0f\n\x07\ - \x04\x01\x03\0\x02\x05\x01\x12\x04\xcf\x02\n\x0f\n\x0f\n\x07\x04\x01\x03\ - \0\x02\x05\x03\x12\x04\xcf\x02\x12\x13\n\x85\x02\n\x06\x04\x01\x03\0\x02\ - \x06\x12\x04\xd5\x02\x04\x19\x1a\xf4\x01\x20If\x20this\x20CellChunk\x20i\ - s\x20part\x20of\x20a\x20chunked\x20cell\x20value\x20and\x20this\x20is\n\ - \x20not\x20the\x20final\x20chunk\x20of\x20that\x20cell,\x20value_size\ - \x20will\x20be\x20set\x20to\x20the\n\x20total\x20length\x20of\x20the\x20\ - cell\x20value.\x20\x20The\x20client\x20can\x20use\x20this\x20size\n\x20t\ - o\x20pre-allocate\x20memory\x20to\x20hold\x20the\x20full\x20cell\x20valu\ - e.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x06\x05\x12\x04\xd5\x02\x04\t\n\x0f\n\ - \x07\x04\x01\x03\0\x02\x06\x01\x12\x04\xd5\x02\n\x14\n\x0f\n\x07\x04\x01\ - \x03\0\x02\x06\x03\x12\x04\xd5\x02\x17\x18\nR\n\x06\x04\x01\x03\0\x08\0\ - \x12\x06\xd8\x02\x04\xe0\x02\x05\x1a@\x20Signals\x20to\x20the\x20client\ - \x20concerning\x20previous\x20CellChunks\x20received.\n\n\x0f\n\x07\x04\ - \x01\x03\0\x08\0\x01\x12\x04\xd8\x02\n\x14\n\x85\x01\n\x06\x04\x01\x03\0\ - \x02\x07\x12\x04\xdb\x02\x06\x19\x1au\x20Indicates\x20that\x20the\x20cli\ - ent\x20should\x20drop\x20all\x20previous\x20chunks\x20for\n\x20`row_key`\ - ,\x20as\x20it\x20will\x20be\x20re-read\x20from\x20the\x20beginning.\n\n\ - \x0f\n\x07\x04\x01\x03\0\x02\x07\x05\x12\x04\xdb\x02\x06\n\n\x0f\n\x07\ - \x04\x01\x03\0\x02\x07\x01\x12\x04\xdb\x02\x0b\x14\n\x0f\n\x07\x04\x01\ - \x03\0\x02\x07\x03\x12\x04\xdb\x02\x17\x18\n\x83\x01\n\x06\x04\x01\x03\0\ - \x02\x08\x12\x04\xdf\x02\x06\x1a\x1as\x20Indicates\x20that\x20the\x20cli\ - ent\x20can\x20safely\x20process\x20all\x20previous\x20chunks\x20for\n\ - \x20`row_key`,\x20as\x20its\x20data\x20has\x20been\x20fully\x20read.\n\n\ - \x0f\n\x07\x04\x01\x03\0\x02\x08\x05\x12\x04\xdf\x02\x06\n\n\x0f\n\x07\ - \x04\x01\x03\0\x02\x08\x01\x12\x04\xdf\x02\x0b\x15\n\x0f\n\x07\x04\x01\ - \x03\0\x02\x08\x03\x12\x04\xdf\x02\x18\x19\nM\n\x04\x04\x01\x02\0\x12\ - \x04\xe4\x02\x02\x20\x1a?\x20A\x20collection\x20of\x20a\x20row's\x20cont\ - ents\x20as\x20part\x20of\x20the\x20read\x20request.\n\n\r\n\x05\x04\x01\ - \x02\0\x04\x12\x04\xe4\x02\x02\n\n\r\n\x05\x04\x01\x02\0\x06\x12\x04\xe4\ - \x02\x0b\x14\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xe4\x02\x15\x1b\n\r\n\ - \x05\x04\x01\x02\0\x03\x12\x04\xe4\x02\x1e\x1f\n\xc5\x03\n\x04\x04\x01\ - \x02\x01\x12\x04\xed\x02\x02!\x1a\xb6\x03\x20Optionally\x20the\x20server\ - \x20might\x20return\x20the\x20row\x20key\x20of\x20the\x20last\x20row\x20\ - it\n\x20has\x20scanned.\x20\x20The\x20client\x20can\x20use\x20this\x20to\ - \x20construct\x20a\x20more\n\x20efficient\x20retry\x20request\x20if\x20n\ - eeded:\x20any\x20row\x20keys\x20or\x20portions\x20of\n\x20ranges\x20less\ - \x20than\x20this\x20row\x20key\x20can\x20be\x20dropped\x20from\x20the\ - \x20request.\n\x20This\x20is\x20primarily\x20useful\x20for\x20cases\x20w\ - here\x20the\x20server\x20has\x20read\x20a\n\x20lot\x20of\x20data\x20that\ - \x20was\x20filtered\x20out\x20since\x20the\x20last\x20committed\x20row\n\ - \x20key,\x20allowing\x20the\x20client\x20to\x20skip\x20that\x20work\x20o\ - n\x20a\x20retry.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xed\x02\x02\x07\ - \n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xed\x02\x08\x1c\n\r\n\x05\x04\x01\ - \x02\x01\x03\x12\x04\xed\x02\x1f\x20\n\x8c\x07\n\x04\x04\x01\x02\x02\x12\ - \x04\x83\x03\x02!\x1a\xfd\x06\n\x20If\x20requested,\x20provide\x20enhanc\ - ed\x20query\x20performance\x20statistics.\x20The\x20semantics\n\x20dicta\ - te:\n\x20\x20\x20*\x20request_stats\x20is\x20empty\x20on\x20every\x20(st\ - reamed)\x20response,\x20except\n\x20\x20\x20*\x20request_stats\x20has\ - \x20non-empty\x20information\x20after\x20all\x20chunks\x20have\x20been\n\ - \x20\x20\x20\x20\x20streamed,\x20where\x20the\x20ReadRowsResponse\x20mes\ - sage\x20only\x20contains\n\x20\x20\x20\x20\x20request_stats.\n\x20\x20\ - \x20\x20\x20\x20\x20*\x20For\x20example,\x20if\x20a\x20read\x20request\ - \x20would\x20have\x20returned\x20an\x20empty\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20response\x20instead\x20a\x20single\x20ReadRowsResponse\x20is\ - \x20streamed\x20with\x20empty\n\x20\x20\x20\x20\x20\x20\x20\x20\x20chunk\ - s\x20and\x20request_stats\x20filled.\n\n\x20Visually,\x20response\x20mes\ - sages\x20will\x20stream\x20as\x20follows:\n\x20\x20\x20\x20...\x20->\x20\ - {chunks:\x20[...]}\x20->\x20{chunks:\x20[],\x20request_stats:\x20{...}}\ - \n\x20\x20\x20\\______________________/\x20\x20\\_______________________\ - _________/\n\x20\x20\x20\x20\x20\x20\x20Primary\x20response\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20Trailer\x20of\x20RequestStats\x20info\n\n\x20Or\ - \x20if\x20the\x20read\x20did\x20not\x20return\x20any\x20values:\n\x20\ - \x20\x20{chunks:\x20[],\x20request_stats:\x20{...}}\n\x20\x20\x20\\_____\ - ___________________________/\n\x20\x20\x20\x20\x20\x20Trailer\x20of\x20R\ - equestStats\x20info\n\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\x83\x03\x02\ - \x0e\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x83\x03\x0f\x1c\n\r\n\x05\x04\ - \x01\x02\x02\x03\x12\x04\x83\x03\x1f\x20\n;\n\x02\x04\x02\x12\x06\x87\ - \x03\0\x95\x03\x01\x1a-\x20Request\x20message\x20for\x20Bigtable.SampleR\ - owKeys.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x87\x03\x08\x1c\n\xab\x01\n\ - \x04\x04\x02\x02\0\x12\x06\x8b\x03\x02\x90\x03\x04\x1a\x9a\x01\x20Requir\ - ed.\x20The\x20unique\x20name\x20of\x20the\x20table\x20from\x20which\x20t\ - o\x20sample\x20row\x20keys.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects//instances//tables/
`.\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\x8b\x03\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\x8b\x03\t\x13\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x8b\x03\ - \x16\x17\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x8b\x03\x18\x90\x03\x03\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x8c\x03\x04*\n\x11\n\x07\ - \x04\x02\x02\0\x08\x9f\x08\x12\x06\x8d\x03\x04\x8f\x03\x05\n\x80\x01\n\ - \x04\x04\x02\x02\x01\x12\x04\x94\x03\x02\x1c\x1ar\x20This\x20value\x20sp\ - ecifies\x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20\ - the\n\x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\ - \n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\x94\x03\x02\x08\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\x94\x03\t\x17\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \x94\x03\x1a\x1b\n<\n\x02\x04\x03\x12\x06\x98\x03\0\xa7\x03\x01\x1a.\x20\ - Response\x20message\x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\x98\x03\x08\x1d\n\xe0\x03\n\x04\x04\x03\x02\0\x12\x04\ - \xa0\x03\x02\x14\x1a\xd1\x03\x20Sorted\x20streamed\x20sequence\x20of\x20\ - sample\x20row\x20keys\x20in\x20the\x20table.\x20The\x20table\x20might\n\ - \x20have\x20contents\x20before\x20the\x20first\x20row\x20key\x20in\x20th\ - e\x20list\x20and\x20after\x20the\x20last\x20one,\n\x20but\x20a\x20key\ - \x20containing\x20the\x20empty\x20string\x20indicates\x20\"end\x20of\x20\ - table\"\x20and\x20will\x20be\n\x20the\x20last\x20response\x20given,\x20i\ - f\x20present.\n\x20Note\x20that\x20row\x20keys\x20in\x20this\x20list\x20\ - may\x20not\x20have\x20ever\x20been\x20written\x20to\x20or\x20read\n\x20f\ - rom,\x20and\x20users\x20should\x20therefore\x20not\x20make\x20any\x20ass\ - umptions\x20about\x20the\x20row\x20key\n\x20structure\x20that\x20are\x20\ - specific\x20to\x20their\x20use\x20case.\n\n\r\n\x05\x04\x03\x02\0\x05\ - \x12\x04\xa0\x03\x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa0\x03\x08\ - \x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa0\x03\x12\x13\n\x80\x02\n\x04\ - \x04\x03\x02\x01\x12\x04\xa6\x03\x02\x19\x1a\xf1\x01\x20Approximate\x20t\ - otal\x20storage\x20space\x20used\x20by\x20all\x20rows\x20in\x20the\x20ta\ - ble\x20which\x20precede\n\x20`row_key`.\x20Buffering\x20the\x20contents\ - \x20of\x20all\x20rows\x20between\x20two\x20subsequent\n\x20samples\x20wo\ - uld\x20require\x20space\x20roughly\x20equal\x20to\x20the\x20difference\ - \x20in\x20their\n\x20`offset_bytes`\x20fields.\n\n\r\n\x05\x04\x03\x02\ - \x01\x05\x12\x04\xa6\x03\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ - \xa6\x03\x08\x14\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xa6\x03\x17\x18\n\ - 7\n\x02\x04\x04\x12\x06\xaa\x03\0\xc0\x03\x01\x1a)\x20Request\x20message\ - \x20for\x20Bigtable.MutateRow.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xaa\x03\ - \x08\x18\n\xb5\x01\n\x04\x04\x04\x02\0\x12\x06\xae\x03\x02\xb3\x03\x04\ - \x1a\xa4\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\ - \x20to\x20which\x20the\x20mutation\x20should\x20be\n\x20applied.\x20Valu\ - es\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xae\x03\x02\ - \x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xae\x03\t\x13\n\r\n\x05\x04\x04\ - \x02\0\x03\x12\x04\xae\x03\x16\x17\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\ - \xae\x03\x18\xb3\x03\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\ - \xaf\x03\x04*\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xb0\x03\x04\ - \xb2\x03\x05\n\x80\x01\n\x04\x04\x04\x02\x01\x12\x04\xb7\x03\x02\x1c\x1a\ - r\x20This\x20value\x20specifies\x20routing\x20for\x20replication.\x20If\ - \x20not\x20specified,\x20the\n\x20\"default\"\x20application\x20profile\ - \x20will\x20be\x20used.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb7\x03\ - \x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xb7\x03\t\x17\n\r\n\x05\ - \x04\x04\x02\x01\x03\x12\x04\xb7\x03\x1a\x1b\nU\n\x04\x04\x04\x02\x02\ - \x12\x04\xba\x03\x02=\x1aG\x20Required.\x20The\x20key\x20of\x20the\x20ro\ - w\x20to\x20which\x20the\x20mutation\x20should\x20be\x20applied.\n\n\r\n\ - \x05\x04\x04\x02\x02\x05\x12\x04\xba\x03\x02\x07\n\r\n\x05\x04\x04\x02\ - \x02\x01\x12\x04\xba\x03\x08\x0f\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\ - \xba\x03\x12\x13\n\r\n\x05\x04\x04\x02\x02\x08\x12\x04\xba\x03\x14<\n\ - \x10\n\x08\x04\x04\x02\x02\x08\x9c\x08\0\x12\x04\xba\x03\x15;\n\xe1\x01\ - \n\x04\x04\x04\x02\x03\x12\x04\xbf\x03\x02K\x1a\xd2\x01\x20Required.\x20\ - Changes\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20specified\ - \x20row.\x20Entries\n\x20are\x20applied\x20in\x20order,\x20meaning\x20th\ - at\x20earlier\x20mutations\x20can\x20be\x20masked\x20by\x20later\n\x20on\ - es.\x20Must\x20contain\x20at\x20least\x20one\x20entry\x20and\x20at\x20mo\ - st\x20100000.\n\n\r\n\x05\x04\x04\x02\x03\x04\x12\x04\xbf\x03\x02\n\n\r\ - \n\x05\x04\x04\x02\x03\x06\x12\x04\xbf\x03\x0b\x13\n\r\n\x05\x04\x04\x02\ - \x03\x01\x12\x04\xbf\x03\x14\x1d\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\ - \xbf\x03\x20!\n\r\n\x05\x04\x04\x02\x03\x08\x12\x04\xbf\x03\"J\n\x10\n\ - \x08\x04\x04\x02\x03\x08\x9c\x08\0\x12\x04\xbf\x03#I\n6\n\x02\x04\x05\ - \x12\x04\xc3\x03\0\x1c\x1a*\x20Response\x20message\x20for\x20Bigtable.Mu\ - tateRow.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xc3\x03\x08\x19\n?\n\x02\x04\ - \x06\x12\x06\xc6\x03\0\xe5\x03\x01\x1a1\x20Request\x20message\x20for\x20\ - BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xc6\x03\ - \x08\x19\n-\n\x04\x04\x06\x03\0\x12\x06\xc8\x03\x02\xd0\x03\x03\x1a\x1d\ - \x20A\x20mutation\x20for\x20a\x20given\x20row.\n\n\r\n\x05\x04\x06\x03\0\ - \x01\x12\x04\xc8\x03\n\x0f\nP\n\x06\x04\x06\x03\0\x02\0\x12\x04\xca\x03\ - \x04\x16\x1a@\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\ - \x20`mutations`\x20should\x20be\x20applied.\n\n\x0f\n\x07\x04\x06\x03\0\ - \x02\0\x05\x12\x04\xca\x03\x04\t\n\x0f\n\x07\x04\x06\x03\0\x02\0\x01\x12\ - \x04\xca\x03\n\x11\n\x0f\n\x07\x04\x06\x03\0\x02\0\x03\x12\x04\xca\x03\ - \x14\x15\n\xd9\x01\n\x06\x04\x06\x03\0\x02\x01\x12\x04\xcf\x03\x04M\x1a\ - \xc8\x01\x20Required.\x20Changes\x20to\x20be\x20atomically\x20applied\ - \x20to\x20the\x20specified\x20row.\n\x20Mutations\x20are\x20applied\x20i\ - n\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\n\ - \x20masked\x20by\x20later\x20ones.\x20You\x20must\x20specify\x20at\x20le\ - ast\x20one\x20mutation.\n\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x04\x12\x04\ - \xcf\x03\x04\x0c\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x06\x12\x04\xcf\x03\r\ - \x15\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x01\x12\x04\xcf\x03\x16\x1f\n\x0f\ - \n\x07\x04\x06\x03\0\x02\x01\x03\x12\x04\xcf\x03\"#\n\x0f\n\x07\x04\x06\ - \x03\0\x02\x01\x08\x12\x04\xcf\x03$L\n\x12\n\n\x04\x06\x03\0\x02\x01\x08\ - \x9c\x08\0\x12\x04\xcf\x03%K\nc\n\x04\x04\x06\x02\0\x12\x06\xd4\x03\x02\ - \xd9\x03\x04\x1aS\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20\ - table\x20to\x20which\x20the\x20mutations\x20should\x20be\n\x20applied.\n\ - \n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xd4\x03\x02\x08\n\r\n\x05\x04\x06\ - \x02\0\x01\x12\x04\xd4\x03\t\x13\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xd4\ - \x03\x16\x17\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xd4\x03\x18\xd9\x03\ - \x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xd5\x03\x04*\n\x11\ - \n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xd6\x03\x04\xd8\x03\x05\n\x80\ - \x01\n\x04\x04\x06\x02\x01\x12\x04\xdd\x03\x02\x1c\x1ar\x20This\x20value\ - \x20specifies\x20routing\x20for\x20replication.\x20If\x20not\x20specifie\ - d,\x20the\n\x20\"default\"\x20application\x20profile\x20will\x20be\x20us\ - ed.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xdd\x03\x02\x08\n\r\n\x05\ - \x04\x06\x02\x01\x01\x12\x04\xdd\x03\t\x17\n\r\n\x05\x04\x06\x02\x01\x03\ - \x12\x04\xdd\x03\x1a\x1b\n\xcb\x02\n\x04\x04\x06\x02\x02\x12\x04\xe4\x03\ - \x02F\x1a\xbc\x02\x20Required.\x20The\x20row\x20keys\x20and\x20correspon\ - ding\x20mutations\x20to\x20be\x20applied\x20in\x20bulk.\n\x20Each\x20ent\ - ry\x20is\x20applied\x20as\x20an\x20atomic\x20mutation,\x20but\x20the\x20\ - entries\x20may\x20be\n\x20applied\x20in\x20arbitrary\x20order\x20(even\ - \x20between\x20entries\x20for\x20the\x20same\x20row).\n\x20At\x20least\ - \x20one\x20entry\x20must\x20be\x20specified,\x20and\x20in\x20total\x20th\ - e\x20entries\x20can\n\x20contain\x20at\x20most\x20100000\x20mutations.\n\ - \n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xe4\x03\x02\n\n\r\n\x05\x04\x06\ - \x02\x02\x06\x12\x04\xe4\x03\x0b\x10\n\r\n\x05\x04\x06\x02\x02\x01\x12\ - \x04\xe4\x03\x11\x18\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\xe4\x03\x1b\ - \x1c\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\xe4\x03\x1dE\n\x10\n\x08\x04\ - \x06\x02\x02\x08\x9c\x08\0\x12\x04\xe4\x03\x1eD\n@\n\x02\x04\x07\x12\x06\ - \xe8\x03\0\xfd\x03\x01\x1a2\x20Response\x20message\x20for\x20BigtableSer\ - vice.MutateRows.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xe8\x03\x08\x1a\nS\n\ - \x04\x04\x07\x03\0\x12\x06\xea\x03\x02\xf4\x03\x03\x1aC\x20The\x20result\ - \x20of\x20applying\x20a\x20passed\x20mutation\x20in\x20the\x20original\ - \x20request.\n\n\r\n\x05\x04\x07\x03\0\x01\x12\x04\xea\x03\n\x0f\nz\n\ - \x06\x04\x07\x03\0\x02\0\x12\x04\xed\x03\x04\x14\x1aj\x20The\x20index\ - \x20into\x20the\x20original\x20request's\x20`entries`\x20list\x20of\x20t\ - he\x20Entry\n\x20for\x20which\x20a\x20result\x20is\x20being\x20reported.\ - \n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\x04\xed\x03\x04\t\n\x0f\n\x07\ - \x04\x07\x03\0\x02\0\x01\x12\x04\xed\x03\n\x0f\n\x0f\n\x07\x04\x07\x03\0\ - \x02\0\x03\x12\x04\xed\x03\x12\x13\n\x9e\x02\n\x06\x04\x07\x03\0\x02\x01\ - \x12\x04\xf3\x03\x04!\x1a\x8d\x02\x20The\x20result\x20of\x20the\x20reque\ - st\x20Entry\x20identified\x20by\x20`index`.\n\x20Depending\x20on\x20how\ - \x20requests\x20are\x20batched\x20during\x20execution,\x20it\x20is\x20po\ - ssible\n\x20for\x20one\x20Entry\x20to\x20fail\x20due\x20to\x20an\x20erro\ - r\x20with\x20another\x20Entry.\x20In\x20the\x20event\n\x20that\x20this\ - \x20occurs,\x20the\x20same\x20error\x20will\x20be\x20reported\x20for\x20\ - both\x20entries.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x06\x12\x04\xf3\x03\ - \x04\x15\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x01\x12\x04\xf3\x03\x16\x1c\n\ - \x0f\n\x07\x04\x07\x03\0\x02\x01\x03\x12\x04\xf3\x03\x1f\x20\nG\n\x04\ - \x04\x07\x02\0\x12\x04\xf7\x03\x02\x1d\x1a9\x20One\x20or\x20more\x20resu\ - lts\x20for\x20Entries\x20from\x20the\x20batch\x20request.\n\n\r\n\x05\ - \x04\x07\x02\0\x04\x12\x04\xf7\x03\x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\ - \x04\xf7\x03\x0b\x10\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xf7\x03\x11\x18\ - \n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xf7\x03\x1b\x1c\n\xc6\x01\n\x04\x04\ - \x07\x02\x01\x12\x04\xfc\x03\x02-\x1a\xb7\x01\x20Information\x20about\ - \x20how\x20client\x20should\x20limit\x20the\x20rate\x20(QPS).\x20Primiri\ - ly\x20used\x20by\n\x20supported\x20official\x20Cloud\x20Bigtable\x20clie\ - nts.\x20If\x20unset,\x20the\x20rate\x20limit\x20info\x20is\n\x20not\x20p\ - rovided\x20by\x20the\x20server.\n\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\ - \xfc\x03\x02\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\xfc\x03\x0b\x18\n\r\ - \n\x05\x04\x07\x02\x01\x01\x12\x04\xfc\x03\x19(\n\r\n\x05\x04\x07\x02\ - \x01\x03\x12\x04\xfc\x03+,\nP\n\x02\x04\x08\x12\x06\x80\x04\0\x93\x04\ - \x01\x1aB\x20Information\x20about\x20how\x20client\x20should\x20adjust\ - \x20the\x20load\x20to\x20Bigtable.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x80\ - \x04\x08\x15\n\xfe\x02\n\x04\x04\x08\x02\0\x12\x04\x87\x04\x02&\x1a\xef\ - \x02\x20Time\x20that\x20clients\x20should\x20wait\x20before\x20adjusting\ - \x20the\x20target\x20rate\x20again.\n\x20If\x20clients\x20adjust\x20rate\ - \x20too\x20frequently,\x20the\x20impact\x20of\x20the\x20previous\n\x20ad\ - justment\x20may\x20not\x20have\x20been\x20taken\x20into\x20account\x20an\ - d\x20may\n\x20over-throttle\x20or\x20under-throttle.\x20If\x20clients\ - \x20adjust\x20rate\x20too\x20slowly,\x20they\n\x20will\x20not\x20be\x20r\ - esponsive\x20to\x20load\x20changes\x20on\x20server\x20side,\x20and\x20ma\ - y\n\x20over-throttle\x20or\x20under-throttle.\n\n\r\n\x05\x04\x08\x02\0\ - \x06\x12\x04\x87\x04\x02\x1a\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\x87\x04\ - \x1b!\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x87\x04$%\n\x8b\x04\n\x04\x04\ - \x08\x02\x01\x12\x04\x92\x04\x02\x14\x1a\xfc\x03\x20If\x20it\x20has\x20b\ - een\x20at\x20least\x20one\x20`period`\x20since\x20the\x20last\x20load\ - \x20adjustment,\x20the\n\x20client\x20should\x20multiply\x20the\x20curre\ - nt\x20load\x20by\x20this\x20value\x20to\x20get\x20the\x20new\x20target\n\ - \x20load.\x20For\x20example,\x20if\x20the\x20current\x20load\x20is\x2010\ - 0\x20and\x20`factor`\x20is\x200.8,\x20the\x20new\n\x20target\x20load\x20\ - should\x20be\x2080.\x20After\x20adjusting,\x20the\x20client\x20should\ - \x20ignore\n\x20`factor`\x20until\x20another\x20`period`\x20has\x20passe\ - d.\n\n\x20The\x20client\x20can\x20measure\x20its\x20load\x20using\x20any\ - \x20unit\x20that's\x20comparable\x20over\x20time\n\x20For\x20example,\ - \x20QPS\x20can\x20be\x20used\x20as\x20long\x20as\x20each\x20request\x20i\ - nvolves\x20a\x20similar\n\x20amount\x20of\x20work.\n\n\r\n\x05\x04\x08\ - \x02\x01\x05\x12\x04\x92\x04\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\ - \x04\x92\x04\t\x0f\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\x92\x04\x12\x13\ - \n?\n\x02\x04\t\x12\x06\x96\x04\0\xbc\x04\x01\x1a1\x20Request\x20message\ - \x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\x03\x04\t\x01\x12\x04\ - \x96\x04\x08\x20\n\xc1\x01\n\x04\x04\t\x02\0\x12\x06\x9a\x04\x02\x9f\x04\ - \x04\x1a\xb0\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20t\ - able\x20to\x20which\x20the\x20conditional\x20mutation\n\x20should\x20be\ - \x20applied.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\n\r\n\x05\x04\t\x02\0\x05\ - \x12\x04\x9a\x04\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x9a\x04\t\x13\ - \n\r\n\x05\x04\t\x02\0\x03\x12\x04\x9a\x04\x16\x17\n\x0f\n\x05\x04\t\x02\ - \0\x08\x12\x06\x9a\x04\x18\x9f\x04\x03\n\x10\n\x08\x04\t\x02\0\x08\x9c\ - \x08\0\x12\x04\x9b\x04\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\x06\ - \x9c\x04\x04\x9e\x04\x05\n\x80\x01\n\x04\x04\t\x02\x01\x12\x04\xa3\x04\ - \x02\x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\x20replica\ - tion.\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20application\ - \x20profile\x20will\x20be\x20used.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\ - \xa3\x04\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xa3\x04\t\x17\n\r\n\ - \x05\x04\t\x02\x01\x03\x12\x04\xa3\x04\x1a\x1b\nb\n\x04\x04\t\x02\x02\ - \x12\x04\xa7\x04\x02=\x1aT\x20Required.\x20The\x20key\x20of\x20the\x20ro\ - w\x20to\x20which\x20the\x20conditional\x20mutation\x20should\x20be\n\x20\ - applied.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\xa7\x04\x02\x07\n\r\n\x05\ - \x04\t\x02\x02\x01\x12\x04\xa7\x04\x08\x0f\n\r\n\x05\x04\t\x02\x02\x03\ - \x12\x04\xa7\x04\x12\x13\n\r\n\x05\x04\t\x02\x02\x08\x12\x04\xa7\x04\x14\ - <\n\x10\n\x08\x04\t\x02\x02\x08\x9c\x08\0\x12\x04\xa7\x04\x15;\n\x80\x02\ - \n\x04\x04\t\x02\x03\x12\x04\xad\x04\x02!\x1a\xf1\x01\x20The\x20filter\ - \x20to\x20be\x20applied\x20to\x20the\x20contents\x20of\x20the\x20specifi\ - ed\x20row.\x20Depending\n\x20on\x20whether\x20or\x20not\x20any\x20result\ - s\x20are\x20yielded,\x20either\x20`true_mutations`\x20or\n\x20`false_mut\ - ations`\x20will\x20be\x20executed.\x20If\x20unset,\x20checks\x20that\x20\ - the\x20row\x20contains\n\x20any\x20values\x20at\x20all.\n\n\r\n\x05\x04\ - \t\x02\x03\x06\x12\x04\xad\x04\x02\x0b\n\r\n\x05\x04\t\x02\x03\x01\x12\ - \x04\xad\x04\x0c\x1c\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xad\x04\x1f\x20\ - \n\xc1\x02\n\x04\x04\t\x02\x04\x12\x04\xb4\x04\x02'\x1a\xb2\x02\x20Chang\ + evious\x20ReadRowsResponse\x20message.\n\n\x20Classified\x20as\x20IDENTI\ + FYING_ID\x20to\x20provide\x20context\x20around\x20data\x20accesses\x20fo\ + r\n\x20auditing\x20systems.\n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\x12\ + \x04\xa2\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\xa2\x01\n\ + \x11\n\x0f\n\x07\x04\x01\x03\0\x02\0\x03\x12\x04\xa2\x01\x14\x15\n\xf3\ + \x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04\xaa\x01\x040\x1a\xe2\x02\x20The\ + \x20column\x20family\x20name\x20for\x20this\x20chunk\x20of\x20data.\x20\ + \x20If\x20this\x20message\n\x20is\x20not\x20present\x20this\x20CellChunk\ + \x20is\x20a\x20continuation\x20of\x20the\x20same\x20column\n\x20family\ + \x20as\x20the\x20previous\x20CellChunk.\x20\x20The\x20empty\x20string\ + \x20can\x20occur\x20as\x20a\n\x20column\x20family\x20name\x20in\x20a\x20\ + response\x20so\x20clients\x20must\x20check\n\x20explicitly\x20for\x20the\ + \x20presence\x20of\x20this\x20message,\x20not\x20just\x20for\n\x20`famil\ + y_name.value`\x20being\x20non-empty.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x01\ + \x06\x12\x04\xaa\x01\x04\x1f\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ + \x04\xaa\x01\x20+\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x04\xaa\x01.\ + /\n\xbb\x02\n\x06\x04\x01\x03\0\x02\x02\x12\x04\xb1\x01\x04-\x1a\xaa\x02\ + \x20The\x20column\x20qualifier\x20for\x20this\x20chunk\x20of\x20data.\ + \x20\x20If\x20this\x20message\n\x20is\x20not\x20present,\x20this\x20Cell\ + Chunk\x20is\x20a\x20continuation\x20of\x20the\x20same\x20column\n\x20as\ + \x20the\x20previous\x20CellChunk.\x20\x20Column\x20qualifiers\x20may\x20\ + be\x20empty\x20so\n\x20clients\x20must\x20check\x20for\x20the\x20presenc\ + e\x20of\x20this\x20message,\x20not\x20just\n\x20for\x20`qualifier.value`\ + \x20being\x20non-empty.\n\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x06\x12\x04\ + \xb1\x01\x04\x1e\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x01\x12\x04\xb1\x01\ + \x1f(\n\x0f\n\x07\x04\x01\x03\0\x02\x02\x03\x12\x04\xb1\x01+,\n\xdd\x03\ + \n\x06\x04\x01\x03\0\x02\x03\x12\x04\xbb\x01\x04\x1f\x1a\xcc\x03\x20The\ + \x20cell's\x20stored\x20timestamp,\x20which\x20also\x20uniquely\x20ident\ + ifies\x20it\n\x20within\x20its\x20column.\x20\x20Values\x20are\x20always\ + \x20expressed\x20in\n\x20microseconds,\x20but\x20individual\x20tables\ + \x20may\x20set\x20a\x20coarser\n\x20granularity\x20to\x20further\x20rest\ + rict\x20the\x20allowed\x20values.\x20For\n\x20example,\x20a\x20table\x20\ + which\x20specifies\x20millisecond\x20granularity\x20will\n\x20only\x20al\ + low\x20values\x20of\x20`timestamp_micros`\x20which\x20are\x20multiples\ + \x20of\n\x201000.\x20\x20Timestamps\x20are\x20only\x20set\x20in\x20the\ + \x20first\x20CellChunk\x20per\x20cell\n\x20(for\x20cells\x20split\x20int\ + o\x20multiple\x20chunks).\n\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x05\x12\ + \x04\xbb\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x01\x12\x04\xbb\x01\ + \n\x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x03\x03\x12\x04\xbb\x01\x1d\x1e\n\ + \x95\x01\n\x06\x04\x01\x03\0\x02\x04\x12\x04\xc0\x01\x04\x1f\x1a\x84\x01\ + \x20Labels\x20applied\x20to\x20the\x20cell\x20by\x20a\n\x20[RowFilter][g\ + oogle.bigtable.v2.RowFilter].\x20\x20Labels\x20are\x20only\x20set\n\x20o\ + n\x20the\x20first\x20CellChunk\x20per\x20cell.\n\n\x0f\n\x07\x04\x01\x03\ + \0\x02\x04\x04\x12\x04\xc0\x01\x04\x0c\n\x0f\n\x07\x04\x01\x03\0\x02\x04\ + \x05\x12\x04\xc0\x01\r\x13\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x01\x12\x04\ + \xc0\x01\x14\x1a\n\x0f\n\x07\x04\x01\x03\0\x02\x04\x03\x12\x04\xc0\x01\ + \x1d\x1e\n\xbf\x02\n\x06\x04\x01\x03\0\x02\x05\x12\x04\xc7\x01\x04\x14\ + \x1a\xae\x02\x20The\x20value\x20stored\x20in\x20the\x20cell.\x20\x20Cell\ + \x20values\x20can\x20be\x20split\x20across\n\x20multiple\x20CellChunks.\ + \x20\x20In\x20that\x20case\x20only\x20the\x20value\x20field\x20will\x20b\ + e\n\x20set\x20in\x20CellChunks\x20after\x20the\x20first:\x20the\x20times\ + tamp\x20and\x20labels\n\x20will\x20only\x20be\x20present\x20in\x20the\ + \x20first\x20CellChunk,\x20even\x20if\x20the\x20first\n\x20CellChunk\x20\ + came\x20in\x20a\x20previous\x20ReadRowsResponse.\n\n\x0f\n\x07\x04\x01\ + \x03\0\x02\x05\x05\x12\x04\xc7\x01\x04\t\n\x0f\n\x07\x04\x01\x03\0\x02\ + \x05\x01\x12\x04\xc7\x01\n\x0f\n\x0f\n\x07\x04\x01\x03\0\x02\x05\x03\x12\ + \x04\xc7\x01\x12\x13\n\x85\x02\n\x06\x04\x01\x03\0\x02\x06\x12\x04\xcd\ + \x01\x04\x19\x1a\xf4\x01\x20If\x20this\x20CellChunk\x20is\x20part\x20of\ + \x20a\x20chunked\x20cell\x20value\x20and\x20this\x20is\n\x20not\x20the\ + \x20final\x20chunk\x20of\x20that\x20cell,\x20value_size\x20will\x20be\ + \x20set\x20to\x20the\n\x20total\x20length\x20of\x20the\x20cell\x20value.\ + \x20\x20The\x20client\x20can\x20use\x20this\x20size\n\x20to\x20pre-alloc\ + ate\x20memory\x20to\x20hold\x20the\x20full\x20cell\x20value.\n\n\x0f\n\ + \x07\x04\x01\x03\0\x02\x06\x05\x12\x04\xcd\x01\x04\t\n\x0f\n\x07\x04\x01\ + \x03\0\x02\x06\x01\x12\x04\xcd\x01\n\x14\n\x0f\n\x07\x04\x01\x03\0\x02\ + \x06\x03\x12\x04\xcd\x01\x17\x18\nR\n\x06\x04\x01\x03\0\x08\0\x12\x06\ + \xd0\x01\x04\xd8\x01\x05\x1a@\x20Signals\x20to\x20the\x20client\x20conce\ + rning\x20previous\x20CellChunks\x20received.\n\n\x0f\n\x07\x04\x01\x03\0\ + \x08\0\x01\x12\x04\xd0\x01\n\x14\n\x85\x01\n\x06\x04\x01\x03\0\x02\x07\ + \x12\x04\xd3\x01\x06\x19\x1au\x20Indicates\x20that\x20the\x20client\x20s\ + hould\x20drop\x20all\x20previous\x20chunks\x20for\n\x20`row_key`,\x20as\ + \x20it\x20will\x20be\x20re-read\x20from\x20the\x20beginning.\n\n\x0f\n\ + \x07\x04\x01\x03\0\x02\x07\x05\x12\x04\xd3\x01\x06\n\n\x0f\n\x07\x04\x01\ + \x03\0\x02\x07\x01\x12\x04\xd3\x01\x0b\x14\n\x0f\n\x07\x04\x01\x03\0\x02\ + \x07\x03\x12\x04\xd3\x01\x17\x18\n\x83\x01\n\x06\x04\x01\x03\0\x02\x08\ + \x12\x04\xd7\x01\x06\x1a\x1as\x20Indicates\x20that\x20the\x20client\x20c\ + an\x20safely\x20process\x20all\x20previous\x20chunks\x20for\n\x20`row_ke\ + y`,\x20as\x20its\x20data\x20has\x20been\x20fully\x20read.\n\n\x0f\n\x07\ + \x04\x01\x03\0\x02\x08\x05\x12\x04\xd7\x01\x06\n\n\x0f\n\x07\x04\x01\x03\ + \0\x02\x08\x01\x12\x04\xd7\x01\x0b\x15\n\x0f\n\x07\x04\x01\x03\0\x02\x08\ + \x03\x12\x04\xd7\x01\x18\x19\nM\n\x04\x04\x01\x02\0\x12\x04\xdc\x01\x02\ + \x20\x1a?\x20A\x20collection\x20of\x20a\x20row's\x20contents\x20as\x20pa\ + rt\x20of\x20the\x20read\x20request.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\ + \x04\xdc\x01\x02\n\n\r\n\x05\x04\x01\x02\0\x06\x12\x04\xdc\x01\x0b\x14\n\ + \r\n\x05\x04\x01\x02\0\x01\x12\x04\xdc\x01\x15\x1b\n\r\n\x05\x04\x01\x02\ + \0\x03\x12\x04\xdc\x01\x1e\x1f\n\xc5\x03\n\x04\x04\x01\x02\x01\x12\x04\ + \xe5\x01\x02!\x1a\xb6\x03\x20Optionally\x20the\x20server\x20might\x20ret\ + urn\x20the\x20row\x20key\x20of\x20the\x20last\x20row\x20it\n\x20has\x20s\ + canned.\x20\x20The\x20client\x20can\x20use\x20this\x20to\x20construct\ + \x20a\x20more\n\x20efficient\x20retry\x20request\x20if\x20needed:\x20any\ + \x20row\x20keys\x20or\x20portions\x20of\n\x20ranges\x20less\x20than\x20t\ + his\x20row\x20key\x20can\x20be\x20dropped\x20from\x20the\x20request.\n\ + \x20This\x20is\x20primarily\x20useful\x20for\x20cases\x20where\x20the\ + \x20server\x20has\x20read\x20a\n\x20lot\x20of\x20data\x20that\x20was\x20\ + filtered\x20out\x20since\x20the\x20last\x20committed\x20row\n\x20key,\ + \x20allowing\x20the\x20client\x20to\x20skip\x20that\x20work\x20on\x20a\ + \x20retry.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xe5\x01\x02\x07\n\r\n\ + \x05\x04\x01\x02\x01\x01\x12\x04\xe5\x01\x08\x1c\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\xe5\x01\x1f\x20\n;\n\x02\x04\x02\x12\x06\xe9\x01\0\xf7\ + \x01\x01\x1a-\x20Request\x20message\x20for\x20Bigtable.SampleRowKeys.\n\ + \n\x0b\n\x03\x04\x02\x01\x12\x04\xe9\x01\x08\x1c\n\xab\x01\n\x04\x04\x02\ + \x02\0\x12\x06\xed\x01\x02\xf2\x01\x04\x1a\x9a\x01\x20Required.\x20The\ + \x20unique\x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20sampl\ + e\x20row\x20keys.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects\ + //instances//tables/
`.\n\n\r\n\x05\x04\x02\x02\ + \0\x05\x12\x04\xed\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xed\ + \x01\t\x13\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xed\x01\x16\x17\n\x0f\n\ + \x05\x04\x02\x02\0\x08\x12\x06\xed\x01\x18\xf2\x01\x03\n\x10\n\x08\x04\ + \x02\x02\0\x08\x9c\x08\0\x12\x04\xee\x01\x04*\n\x11\n\x07\x04\x02\x02\0\ + \x08\x9f\x08\x12\x06\xef\x01\x04\xf1\x01\x05\n\x80\x01\n\x04\x04\x02\x02\ + \x01\x12\x04\xf6\x01\x02\x1c\x1ar\x20This\x20value\x20specifies\x20routi\ + ng\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\x20\"defau\ + lt\"\x20application\x20profile\x20will\x20be\x20used.\n\n\r\n\x05\x04\ + \x02\x02\x01\x05\x12\x04\xf6\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\ + \x12\x04\xf6\x01\t\x17\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf6\x01\x1a\ + \x1b\n<\n\x02\x04\x03\x12\x06\xfa\x01\0\x8c\x02\x01\x1a.\x20Response\x20\ + message\x20for\x20Bigtable.SampleRowKeys.\n\n\x0b\n\x03\x04\x03\x01\x12\ + \x04\xfa\x01\x08\x1d\n\xbe\x04\n\x04\x04\x03\x02\0\x12\x04\x85\x02\x02\ + \x14\x1a\xaf\x04\x20Sorted\x20streamed\x20sequence\x20of\x20sample\x20ro\ + w\x20keys\x20in\x20the\x20table.\x20The\x20table\x20might\n\x20have\x20c\ + ontents\x20before\x20the\x20first\x20row\x20key\x20in\x20the\x20list\x20\ + and\x20after\x20the\x20last\x20one,\n\x20but\x20a\x20key\x20containing\ + \x20the\x20empty\x20string\x20indicates\x20\"end\x20of\x20table\"\x20and\ + \x20will\x20be\n\x20the\x20last\x20response\x20given,\x20if\x20present.\ + \n\x20Note\x20that\x20row\x20keys\x20in\x20this\x20list\x20may\x20not\ + \x20have\x20ever\x20been\x20written\x20to\x20or\x20read\n\x20from,\x20an\ + d\x20users\x20should\x20therefore\x20not\x20make\x20any\x20assumptions\ + \x20about\x20the\x20row\x20key\n\x20structure\x20that\x20are\x20specific\ + \x20to\x20their\x20use\x20case.\n\n\x20Classified\x20as\x20IDENTIFYING_I\ + D\x20to\x20provide\x20context\x20around\x20data\x20accesses\x20for\n\x20\ + auditing\x20systems.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x85\x02\x02\ + \x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x85\x02\x08\x0f\n\r\n\x05\x04\ + \x03\x02\0\x03\x12\x04\x85\x02\x12\x13\n\x80\x02\n\x04\x04\x03\x02\x01\ + \x12\x04\x8b\x02\x02\x19\x1a\xf1\x01\x20Approximate\x20total\x20storage\ + \x20space\x20used\x20by\x20all\x20rows\x20in\x20the\x20table\x20which\ + \x20precede\n\x20`row_key`.\x20Buffering\x20the\x20contents\x20of\x20all\ + \x20rows\x20between\x20two\x20subsequent\n\x20samples\x20would\x20requir\ + e\x20space\x20roughly\x20equal\x20to\x20the\x20difference\x20in\x20their\ + \n\x20`offset_bytes`\x20fields.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\ + \x8b\x02\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x8b\x02\x08\x14\n\ + \r\n\x05\x04\x03\x02\x01\x03\x12\x04\x8b\x02\x17\x18\n7\n\x02\x04\x04\ + \x12\x06\x8f\x02\0\xa8\x02\x01\x1a)\x20Request\x20message\x20for\x20Bigt\ + able.MutateRow.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8f\x02\x08\x18\n\xb5\ + \x01\n\x04\x04\x04\x02\0\x12\x06\x93\x02\x02\x98\x02\x04\x1a\xa4\x01\x20\ + Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20to\x20which\ + \x20the\x20mutation\x20should\x20be\x20applied.\n\x20Values\x20are\x20of\ + \x20the\x20form\n\x20`projects//instances//tables/`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x93\x02\x02\x08\n\r\n\x05\ + \x04\x04\x02\0\x01\x12\x04\x93\x02\t\x13\n\r\n\x05\x04\x04\x02\0\x03\x12\ + \x04\x93\x02\x16\x17\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x93\x02\x18\ + \x98\x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x94\x02\x04\ + *\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x95\x02\x04\x97\x02\x05\ + \n\x80\x01\n\x04\x04\x04\x02\x01\x12\x04\x9c\x02\x02\x1c\x1ar\x20This\ + \x20value\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\ + \x20specified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\ + \x20be\x20used.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\x9c\x02\x02\x08\ + \n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\x9c\x02\t\x17\n\r\n\x05\x04\x04\ + \x02\x01\x03\x12\x04\x9c\x02\x1a\x1b\n\xb4\x01\n\x04\x04\x04\x02\x02\x12\ + \x04\xa2\x02\x02=\x1a\xa5\x01\x20Required.\x20The\x20key\x20of\x20the\ + \x20row\x20to\x20which\x20the\x20mutation\x20should\x20be\x20applied.\n\ + \n\x20Classified\x20as\x20IDENTIFYING_ID\x20to\x20provide\x20context\x20\ + around\x20data\x20accesses\x20for\n\x20auditing\x20systems.\n\n\r\n\x05\ + \x04\x04\x02\x02\x05\x12\x04\xa2\x02\x02\x07\n\r\n\x05\x04\x04\x02\x02\ + \x01\x12\x04\xa2\x02\x08\x0f\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xa2\ + \x02\x12\x13\n\r\n\x05\x04\x04\x02\x02\x08\x12\x04\xa2\x02\x14<\n\x10\n\ + \x08\x04\x04\x02\x02\x08\x9c\x08\0\x12\x04\xa2\x02\x15;\n\xe1\x01\n\x04\ + \x04\x04\x02\x03\x12\x04\xa7\x02\x02K\x1a\xd2\x01\x20Required.\x20Change\ + s\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row.\ + \x20Entries\x20are\x20applied\n\x20in\x20order,\x20meaning\x20that\x20ea\ + rlier\x20mutations\x20can\x20be\x20masked\x20by\x20later\x20ones.\n\x20M\ + ust\x20contain\x20at\x20least\x20one\x20entry\x20and\x20at\x20most\x2010\ + 0000.\n\n\r\n\x05\x04\x04\x02\x03\x04\x12\x04\xa7\x02\x02\n\n\r\n\x05\ + \x04\x04\x02\x03\x06\x12\x04\xa7\x02\x0b\x13\n\r\n\x05\x04\x04\x02\x03\ + \x01\x12\x04\xa7\x02\x14\x1d\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\xa7\ + \x02\x20!\n\r\n\x05\x04\x04\x02\x03\x08\x12\x04\xa7\x02\"J\n\x10\n\x08\ + \x04\x04\x02\x03\x08\x9c\x08\0\x12\x04\xa7\x02#I\n8\n\x02\x04\x05\x12\ + \x06\xab\x02\0\xad\x02\x01\x1a*\x20Response\x20message\x20for\x20Bigtabl\ + e.MutateRow.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xab\x02\x08\x19\n?\n\x02\ + \x04\x06\x12\x06\xb0\x02\0\xd2\x02\x01\x1a1\x20Request\x20message\x20for\ + \x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xb0\ + \x02\x08\x19\n-\n\x04\x04\x06\x03\0\x12\x06\xb2\x02\x02\xbe\x02\x03\x1a\ + \x1d\x20A\x20mutation\x20for\x20a\x20given\x20row.\n\n\r\n\x05\x04\x06\ + \x03\0\x01\x12\x04\xb2\x02\n\x0f\n\xaf\x01\n\x06\x04\x06\x03\0\x02\0\x12\ + \x04\xb7\x02\x04\x16\x1a\x9e\x01\x20The\x20key\x20of\x20the\x20row\x20to\ + \x20which\x20the\x20`mutations`\x20should\x20be\x20applied.\n\n\x20Class\ + ified\x20as\x20IDENTIFYING_ID\x20to\x20provide\x20context\x20around\x20d\ + ata\x20accesses\x20for\n\x20auditing\x20systems.\n\n\x0f\n\x07\x04\x06\ + \x03\0\x02\0\x05\x12\x04\xb7\x02\x04\t\n\x0f\n\x07\x04\x06\x03\0\x02\0\ + \x01\x12\x04\xb7\x02\n\x11\n\x0f\n\x07\x04\x06\x03\0\x02\0\x03\x12\x04\ + \xb7\x02\x14\x15\n\xda\x01\n\x06\x04\x06\x03\0\x02\x01\x12\x04\xbd\x02\ + \x04M\x1a\xc9\x01\x20Required.\x20Changes\x20to\x20be\x20atomically\x20a\ + pplied\x20to\x20the\x20specified\x20row.\x20Mutations\x20are\n\x20applie\ + d\x20in\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20b\ + e\x20masked\x20by\n\x20later\x20ones.\n\x20You\x20must\x20specify\x20at\ + \x20least\x20one\x20mutation.\n\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x04\ + \x12\x04\xbd\x02\x04\x0c\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x06\x12\x04\ + \xbd\x02\r\x15\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x01\x12\x04\xbd\x02\x16\ + \x1f\n\x0f\n\x07\x04\x06\x03\0\x02\x01\x03\x12\x04\xbd\x02\"#\n\x0f\n\ + \x07\x04\x06\x03\0\x02\x01\x08\x12\x04\xbd\x02$L\n\x12\n\n\x04\x06\x03\0\ + \x02\x01\x08\x9c\x08\0\x12\x04\xbd\x02%K\nb\n\x04\x04\x06\x02\0\x12\x06\ + \xc1\x02\x02\xc6\x02\x04\x1aR\x20Required.\x20The\x20unique\x20name\x20o\ + f\x20the\x20table\x20to\x20which\x20the\x20mutations\x20should\x20be\x20\ + applied.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xc1\x02\x02\x08\n\r\n\x05\ + \x04\x06\x02\0\x01\x12\x04\xc1\x02\t\x13\n\r\n\x05\x04\x06\x02\0\x03\x12\ + \x04\xc1\x02\x16\x17\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xc1\x02\x18\ + \xc6\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc2\x02\x04\ + *\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xc3\x02\x04\xc5\x02\x05\ + \n\x80\x01\n\x04\x04\x06\x02\x01\x12\x04\xca\x02\x02\x1c\x1ar\x20This\ + \x20value\x20specifies\x20routing\x20for\x20replication.\x20If\x20not\ + \x20specified,\x20the\n\x20\"default\"\x20application\x20profile\x20will\ + \x20be\x20used.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xca\x02\x02\x08\ + \n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xca\x02\t\x17\n\r\n\x05\x04\x06\ + \x02\x01\x03\x12\x04\xca\x02\x1a\x1b\n\xcb\x02\n\x04\x04\x06\x02\x02\x12\ + \x04\xd1\x02\x02F\x1a\xbc\x02\x20Required.\x20The\x20row\x20keys\x20and\ + \x20corresponding\x20mutations\x20to\x20be\x20applied\x20in\x20bulk.\n\ + \x20Each\x20entry\x20is\x20applied\x20as\x20an\x20atomic\x20mutation,\ + \x20but\x20the\x20entries\x20may\x20be\n\x20applied\x20in\x20arbitrary\ + \x20order\x20(even\x20between\x20entries\x20for\x20the\x20same\x20row).\ + \n\x20At\x20least\x20one\x20entry\x20must\x20be\x20specified,\x20and\x20\ + in\x20total\x20the\x20entries\x20can\n\x20contain\x20at\x20most\x2010000\ + 0\x20mutations.\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xd1\x02\x02\n\n\ + \r\n\x05\x04\x06\x02\x02\x06\x12\x04\xd1\x02\x0b\x10\n\r\n\x05\x04\x06\ + \x02\x02\x01\x12\x04\xd1\x02\x11\x18\n\r\n\x05\x04\x06\x02\x02\x03\x12\ + \x04\xd1\x02\x1b\x1c\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\xd1\x02\x1dE\ + \n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\x04\xd1\x02\x1eD\n@\n\x02\ + \x04\x07\x12\x06\xd5\x02\0\xe5\x02\x01\x1a2\x20Response\x20message\x20fo\ + r\x20BigtableService.MutateRows.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xd5\ + \x02\x08\x1a\nS\n\x04\x04\x07\x03\0\x12\x06\xd7\x02\x02\xe1\x02\x03\x1aC\ + \x20The\x20result\x20of\x20applying\x20a\x20passed\x20mutation\x20in\x20\ + the\x20original\x20request.\n\n\r\n\x05\x04\x07\x03\0\x01\x12\x04\xd7\ + \x02\n\x0f\nz\n\x06\x04\x07\x03\0\x02\0\x12\x04\xda\x02\x04\x14\x1aj\x20\ + The\x20index\x20into\x20the\x20original\x20request's\x20`entries`\x20lis\ + t\x20of\x20the\x20Entry\n\x20for\x20which\x20a\x20result\x20is\x20being\ + \x20reported.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\x04\xda\x02\x04\ + \t\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xda\x02\n\x0f\n\x0f\n\x07\ + \x04\x07\x03\0\x02\0\x03\x12\x04\xda\x02\x12\x13\n\x9e\x02\n\x06\x04\x07\ + \x03\0\x02\x01\x12\x04\xe0\x02\x04!\x1a\x8d\x02\x20The\x20result\x20of\ + \x20the\x20request\x20Entry\x20identified\x20by\x20`index`.\n\x20Dependi\ + ng\x20on\x20how\x20requests\x20are\x20batched\x20during\x20execution,\ + \x20it\x20is\x20possible\n\x20for\x20one\x20Entry\x20to\x20fail\x20due\ + \x20to\x20an\x20error\x20with\x20another\x20Entry.\x20In\x20the\x20event\ + \n\x20that\x20this\x20occurs,\x20the\x20same\x20error\x20will\x20be\x20r\ + eported\x20for\x20both\x20entries.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x01\ + \x06\x12\x04\xe0\x02\x04\x15\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x01\x12\ + \x04\xe0\x02\x16\x1c\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x03\x12\x04\xe0\ + \x02\x1f\x20\nG\n\x04\x04\x07\x02\0\x12\x04\xe4\x02\x02\x1d\x1a9\x20One\ + \x20or\x20more\x20results\x20for\x20Entries\x20from\x20the\x20batch\x20r\ + equest.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xe4\x02\x02\n\n\r\n\x05\ + \x04\x07\x02\0\x06\x12\x04\xe4\x02\x0b\x10\n\r\n\x05\x04\x07\x02\0\x01\ + \x12\x04\xe4\x02\x11\x18\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe4\x02\x1b\ + \x1c\n?\n\x02\x04\x08\x12\x06\xe8\x02\0\x91\x03\x01\x1a1\x20Request\x20m\ + essage\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\x03\x04\x08\x01\ + \x12\x04\xe8\x02\x08\x20\n\xc2\x01\n\x04\x04\x08\x02\0\x12\x06\xed\x02\ + \x02\xf2\x02\x04\x1a\xb1\x01\x20Required.\x20The\x20unique\x20name\x20of\ + \x20the\x20table\x20to\x20which\x20the\x20conditional\x20mutation\x20sho\ + uld\x20be\n\x20applied.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`pr\ + ojects//instances//tables/
`.\n\n\r\n\x05\x04\ + \x08\x02\0\x05\x12\x04\xed\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\ + \x04\xed\x02\t\x13\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xed\x02\x16\x17\n\ + \x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xed\x02\x18\xf2\x02\x03\n\x10\n\x08\ + \x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xee\x02\x04*\n\x11\n\x07\x04\x08\ + \x02\0\x08\x9f\x08\x12\x06\xef\x02\x04\xf1\x02\x05\n\x80\x01\n\x04\x04\ + \x08\x02\x01\x12\x04\xf6\x02\x02\x1c\x1ar\x20This\x20value\x20specifies\ + \x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ + \x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\n\r\n\ + \x05\x04\x08\x02\x01\x05\x12\x04\xf6\x02\x02\x08\n\r\n\x05\x04\x08\x02\ + \x01\x01\x12\x04\xf6\x02\t\x17\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf6\ + \x02\x1a\x1b\n\xc0\x01\n\x04\x04\x08\x02\x02\x12\x04\xfc\x02\x02=\x1a\ + \xb1\x01\x20Required.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\ + \x20the\x20conditional\x20mutation\x20should\x20be\x20applied.\n\n\x20Cl\ + assified\x20as\x20IDENTIFYING_ID\x20to\x20provide\x20context\x20around\ + \x20data\x20accesses\x20for\n\x20auditing\x20systems.\n\n\r\n\x05\x04\ + \x08\x02\x02\x05\x12\x04\xfc\x02\x02\x07\n\r\n\x05\x04\x08\x02\x02\x01\ + \x12\x04\xfc\x02\x08\x0f\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xfc\x02\ + \x12\x13\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\xfc\x02\x14<\n\x10\n\x08\ + \x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xfc\x02\x15;\n\x80\x02\n\x04\x04\ + \x08\x02\x03\x12\x04\x82\x03\x02!\x1a\xf1\x01\x20The\x20filter\x20to\x20\ + be\x20applied\x20to\x20the\x20contents\x20of\x20the\x20specified\x20row.\ + \x20Depending\n\x20on\x20whether\x20or\x20not\x20any\x20results\x20are\ + \x20yielded,\x20either\x20`true_mutations`\x20or\n\x20`false_mutations`\ + \x20will\x20be\x20executed.\x20If\x20unset,\x20checks\x20that\x20the\x20\ + row\x20contains\n\x20any\x20values\x20at\x20all.\n\n\r\n\x05\x04\x08\x02\ + \x03\x06\x12\x04\x82\x03\x02\x0b\n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\ + \x82\x03\x0c\x1c\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\x82\x03\x1f\x20\n\ + \xc1\x02\n\x04\x04\x08\x02\x04\x12\x04\x89\x03\x02'\x1a\xb2\x02\x20Chang\ es\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20specified\x20row\ \x20if\x20`predicate_filter`\n\x20yields\x20at\x20least\x20one\x20cell\ \x20when\x20applied\x20to\x20`row_key`.\x20Entries\x20are\x20applied\x20\ in\n\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20can\x20be\ \x20masked\x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\x20least\ \x20one\x20entry\x20if\x20`false_mutations`\x20is\x20empty,\x20and\x20at\ - \x20most\n\x20100000.\n\n\r\n\x05\x04\t\x02\x04\x04\x12\x04\xb4\x04\x02\ - \n\n\r\n\x05\x04\t\x02\x04\x06\x12\x04\xb4\x04\x0b\x13\n\r\n\x05\x04\t\ - \x02\x04\x01\x12\x04\xb4\x04\x14\"\n\r\n\x05\x04\t\x02\x04\x03\x12\x04\ - \xb4\x04%&\n\xc0\x02\n\x04\x04\t\x02\x05\x12\x04\xbb\x04\x02(\x1a\xb1\ - \x02\x20Changes\x20to\x20be\x20atomically\x20applied\x20to\x20the\x20spe\ - cified\x20row\x20if\x20`predicate_filter`\n\x20does\x20not\x20yield\x20a\ - ny\x20cells\x20when\x20applied\x20to\x20`row_key`.\x20Entries\x20are\x20\ - applied\x20in\n\x20order,\x20meaning\x20that\x20earlier\x20mutations\x20\ - can\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\x20contain\x20at\ - \x20least\x20one\x20entry\x20if\x20`true_mutations`\x20is\x20empty,\x20a\ - nd\x20at\x20most\n\x20100000.\n\n\r\n\x05\x04\t\x02\x05\x04\x12\x04\xbb\ - \x04\x02\n\n\r\n\x05\x04\t\x02\x05\x06\x12\x04\xbb\x04\x0b\x13\n\r\n\x05\ - \x04\t\x02\x05\x01\x12\x04\xbb\x04\x14#\n\r\n\x05\x04\t\x02\x05\x03\x12\ - \x04\xbb\x04&'\n@\n\x02\x04\n\x12\x06\xbf\x04\0\xc3\x04\x01\x1a2\x20Resp\ - onse\x20message\x20for\x20Bigtable.CheckAndMutateRow.\n\n\x0b\n\x03\x04\ - \n\x01\x12\x04\xbf\x04\x08!\nk\n\x04\x04\n\x02\0\x12\x04\xc2\x04\x02\x1d\ - \x1a]\x20Whether\x20or\x20not\x20the\x20request's\x20`predicate_filter`\ - \x20yielded\x20any\x20results\x20for\n\x20the\x20specified\x20row.\n\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\xc2\x04\x02\x06\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\xc2\x04\x07\x18\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xc2\x04\x1b\ - \x1c\nM\n\x02\x04\x0b\x12\x06\xc6\x04\0\xd4\x04\x01\x1a?\x20Request\x20m\ - essage\x20for\x20client\x20connection\x20keep-alive\x20and\x20warming.\n\ - \n\x0b\n\x03\x04\x0b\x01\x12\x04\xc6\x04\x08\x1a\n\xad\x01\n\x04\x04\x0b\ - \x02\0\x12\x06\xca\x04\x02\xcf\x04\x04\x1a\x9c\x01\x20Required.\x20The\ - \x20unique\x20name\x20of\x20the\x20instance\x20to\x20check\x20permission\ - s\x20for\x20as\x20well\n\x20as\x20respond.\x20Values\x20are\x20of\x20the\ - \x20form\n\x20`projects//instances/`.\n\n\r\n\x05\x04\ - \x0b\x02\0\x05\x12\x04\xca\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\ - \x04\xca\x04\t\r\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xca\x04\x10\x11\n\ - \x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\xca\x04\x12\xcf\x04\x03\n\x10\n\x08\ - \x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\xcb\x04\x04*\n\x11\n\x07\x04\x0b\ - \x02\0\x08\x9f\x08\x12\x06\xcc\x04\x04\xce\x04\x05\n\x80\x01\n\x04\x04\ - \x0b\x02\x01\x12\x04\xd3\x04\x02\x1c\x1ar\x20This\x20value\x20specifies\ - \x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ + \x20most\n\x20100000.\n\n\r\n\x05\x04\x08\x02\x04\x04\x12\x04\x89\x03\ + \x02\n\n\r\n\x05\x04\x08\x02\x04\x06\x12\x04\x89\x03\x0b\x13\n\r\n\x05\ + \x04\x08\x02\x04\x01\x12\x04\x89\x03\x14\"\n\r\n\x05\x04\x08\x02\x04\x03\ + \x12\x04\x89\x03%&\n\xc0\x02\n\x04\x04\x08\x02\x05\x12\x04\x90\x03\x02(\ + \x1a\xb1\x02\x20Changes\x20to\x20be\x20atomically\x20applied\x20to\x20th\ + e\x20specified\x20row\x20if\x20`predicate_filter`\n\x20does\x20not\x20yi\ + eld\x20any\x20cells\x20when\x20applied\x20to\x20`row_key`.\x20Entries\ + \x20are\x20applied\x20in\n\x20order,\x20meaning\x20that\x20earlier\x20mu\ + tations\x20can\x20be\x20masked\x20by\x20later\x20ones.\n\x20Must\x20cont\ + ain\x20at\x20least\x20one\x20entry\x20if\x20`true_mutations`\x20is\x20em\ + pty,\x20and\x20at\x20most\n\x20100000.\n\n\r\n\x05\x04\x08\x02\x05\x04\ + \x12\x04\x90\x03\x02\n\n\r\n\x05\x04\x08\x02\x05\x06\x12\x04\x90\x03\x0b\ + \x13\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\x90\x03\x14#\n\r\n\x05\x04\ + \x08\x02\x05\x03\x12\x04\x90\x03&'\n@\n\x02\x04\t\x12\x06\x94\x03\0\x98\ + \x03\x01\x1a2\x20Response\x20message\x20for\x20Bigtable.CheckAndMutateRo\ + w.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x94\x03\x08!\nk\n\x04\x04\t\x02\0\x12\ + \x04\x97\x03\x02\x1d\x1a]\x20Whether\x20or\x20not\x20the\x20request's\ + \x20`predicate_filter`\x20yielded\x20any\x20results\x20for\n\x20the\x20s\ + pecified\x20row.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x97\x03\x02\x06\n\r\ + \n\x05\x04\t\x02\0\x01\x12\x04\x97\x03\x07\x18\n\r\n\x05\x04\t\x02\0\x03\ + \x12\x04\x97\x03\x1b\x1c\n@\n\x02\x04\n\x12\x06\x9b\x03\0\xb5\x03\x01\ + \x1a2\x20Request\x20message\x20for\x20Bigtable.ReadModifyWriteRow.\n\n\ + \x0b\n\x03\x04\n\x01\x12\x04\x9b\x03\x08!\n\xc5\x01\n\x04\x04\n\x02\0\ + \x12\x06\xa0\x03\x02\xa5\x03\x04\x1a\xb4\x01\x20Required.\x20The\x20uniq\ + ue\x20name\x20of\x20the\x20table\x20to\x20which\x20the\x20read/modify/wr\ + ite\x20rules\x20should\x20be\n\x20applied.\n\x20Values\x20are\x20of\x20t\ + he\x20form\n\x20`projects//instances//tables/
`\ + .\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xa0\x03\x02\x08\n\r\n\x05\x04\n\ + \x02\0\x01\x12\x04\xa0\x03\t\x13\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xa0\ + \x03\x16\x17\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\xa0\x03\x18\xa5\x03\x03\ + \n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xa1\x03\x04*\n\x11\n\x07\ + \x04\n\x02\0\x08\x9f\x08\x12\x06\xa2\x03\x04\xa4\x03\x05\n\x80\x01\n\x04\ + \x04\n\x02\x01\x12\x04\xa9\x03\x02\x1c\x1ar\x20This\x20value\x20specifie\ + s\x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ \x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\n\r\n\ - \x05\x04\x0b\x02\x01\x05\x12\x04\xd3\x04\x02\x08\n\r\n\x05\x04\x0b\x02\ - \x01\x01\x12\x04\xd3\x04\t\x17\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xd3\ - \x04\x1a\x1b\nY\n\x02\x04\x0c\x12\x04\xd7\x04\0\x1e\x1aM\x20Response\x20\ - message\x20for\x20Bigtable.PingAndWarm\x20connection\x20keepalive\x20and\ - \x20warming.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xd7\x04\x08\x1b\n@\n\x02\ - \x04\r\x12\x06\xda\x04\0\xf2\x04\x01\x1a2\x20Request\x20message\x20for\ - \x20Bigtable.ReadModifyWriteRow.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xda\x04\ - \x08!\n\xc4\x01\n\x04\x04\r\x02\0\x12\x06\xde\x04\x02\xe3\x04\x04\x1a\ - \xb3\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\x20\ - to\x20which\x20the\x20read/modify/write\x20rules\n\x20should\x20be\x20ap\ - plied.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//in\ - stances//tables/
`.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\ - \xde\x04\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xde\x04\t\x13\n\r\n\ - \x05\x04\r\x02\0\x03\x12\x04\xde\x04\x16\x17\n\x0f\n\x05\x04\r\x02\0\x08\ - \x12\x06\xde\x04\x18\xe3\x04\x03\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\ - \x12\x04\xdf\x04\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\x06\xe0\ - \x04\x04\xe2\x04\x05\n\x80\x01\n\x04\x04\r\x02\x01\x12\x04\xe7\x04\x02\ - \x1c\x1ar\x20This\x20value\x20specifies\x20routing\x20for\x20replication\ - .\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20application\x20p\ - rofile\x20will\x20be\x20used.\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xe7\ - \x04\x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xe7\x04\t\x17\n\r\n\x05\ - \x04\r\x02\x01\x03\x12\x04\xe7\x04\x1a\x1b\ne\n\x04\x04\r\x02\x02\x12\ - \x04\xeb\x04\x02=\x1aW\x20Required.\x20The\x20key\x20of\x20the\x20row\ - \x20to\x20which\x20the\x20read/modify/write\x20rules\x20should\x20be\n\ - \x20applied.\n\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xeb\x04\x02\x07\n\r\n\ - \x05\x04\r\x02\x02\x01\x12\x04\xeb\x04\x08\x0f\n\r\n\x05\x04\r\x02\x02\ - \x03\x12\x04\xeb\x04\x12\x13\n\r\n\x05\x04\r\x02\x02\x08\x12\x04\xeb\x04\ - \x14<\n\x10\n\x08\x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xeb\x04\x15;\n\xd3\ - \x01\n\x04\x04\r\x02\x03\x12\x06\xf0\x04\x02\xf1\x04/\x1a\xc2\x01\x20Req\ - uired.\x20Rules\x20specifying\x20how\x20the\x20specified\x20row's\x20con\ - tents\x20are\x20to\x20be\n\x20transformed\x20into\x20writes.\x20Entries\ - \x20are\x20applied\x20in\x20order,\x20meaning\x20that\x20earlier\n\x20ru\ - les\x20will\x20affect\x20the\x20results\x20of\x20later\x20ones.\n\n\r\n\ - \x05\x04\r\x02\x03\x04\x12\x04\xf0\x04\x02\n\n\r\n\x05\x04\r\x02\x03\x06\ - \x12\x04\xf0\x04\x0b\x1e\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xf0\x04\x1f\ - $\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\xf0\x04'(\n\r\n\x05\x04\r\x02\x03\ - \x08\x12\x04\xf1\x04\x06.\n\x10\n\x08\x04\r\x02\x03\x08\x9c\x08\0\x12\ - \x04\xf1\x04\x07-\nA\n\x02\x04\x0e\x12\x06\xf5\x04\0\xf8\x04\x01\x1a3\ - \x20Response\x20message\x20for\x20Bigtable.ReadModifyWriteRow.\n\n\x0b\n\ - \x03\x04\x0e\x01\x12\x04\xf5\x04\x08\"\nW\n\x04\x04\x0e\x02\0\x12\x04\ - \xf7\x04\x02\x0e\x1aI\x20A\x20Row\x20containing\x20the\x20new\x20content\ - s\x20of\x20all\x20cells\x20modified\x20by\x20the\x20request.\n\n\r\n\x05\ - \x04\x0e\x02\0\x06\x12\x04\xf7\x04\x02\x05\n\r\n\x05\x04\x0e\x02\0\x01\ - \x12\x04\xf7\x04\x06\t\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xf7\x04\x0c\r\ - \n\x96\x01\n\x02\x04\x0f\x12\x06\xfc\x04\0\x8c\x05\x01\x1a\x87\x01\x20NO\ - TE:\x20This\x20API\x20is\x20intended\x20to\x20be\x20used\x20by\x20Apache\ - \x20Beam\x20BigtableIO.\n\x20Request\x20message\x20for\x20Bigtable.Gener\ - ateInitialChangeStreamPartitions.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xfc\ - \x04\x084\n\xe8\x01\n\x04\x04\x0f\x02\0\x12\x06\x81\x05\x02\x86\x05\x04\ - \x1a\xd7\x01\x20Required.\x20The\x20unique\x20name\x20of\x20the\x20table\ - \x20from\x20which\x20to\x20get\x20change\x20stream\n\x20partitions.\x20V\ - alues\x20are\x20of\x20the\x20form\n\x20`projects//instances//tables/
`.\n\x20Change\x20streaming\x20must\x20be\x20enabl\ - ed\x20on\x20the\x20table.\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x81\x05\ - \x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x81\x05\t\x13\n\r\n\x05\x04\ - \x0f\x02\0\x03\x12\x04\x81\x05\x16\x17\n\x0f\n\x05\x04\x0f\x02\0\x08\x12\ - \x06\x81\x05\x18\x86\x05\x03\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\ - \x04\x82\x05\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\x08\x12\x06\x83\x05\ - \x04\x85\x05\x05\n\xbc\x01\n\x04\x04\x0f\x02\x01\x12\x04\x8b\x05\x02\x1c\ - \x1a\xad\x01\x20This\x20value\x20specifies\x20routing\x20for\x20replicat\ - ion.\x20If\x20not\x20specified,\x20the\n\x20\"default\"\x20application\ - \x20profile\x20will\x20be\x20used.\n\x20Single\x20cluster\x20routing\x20\ - must\x20be\x20configured\x20on\x20the\x20profile.\n\n\r\n\x05\x04\x0f\ - \x02\x01\x05\x12\x04\x8b\x05\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\ - \x04\x8b\x05\t\x17\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x8b\x05\x1a\x1b\ - \n\x97\x01\n\x02\x04\x10\x12\x06\x90\x05\0\x93\x05\x01\x1a\x88\x01\x20NO\ - TE:\x20This\x20API\x20is\x20intended\x20to\x20be\x20used\x20by\x20Apache\ - \x20Beam\x20BigtableIO.\n\x20Response\x20message\x20for\x20Bigtable.Gene\ - rateInitialChangeStreamPartitions.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x90\ - \x05\x085\n1\n\x04\x04\x10\x02\0\x12\x04\x92\x05\x02\x20\x1a#\x20A\x20pa\ - rtition\x20of\x20the\x20change\x20stream.\n\n\r\n\x05\x04\x10\x02\0\x06\ - \x12\x04\x92\x05\x02\x11\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\x92\x05\x12\ - \x1b\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x92\x05\x1e\x1f\n\x80\x01\n\x02\ - \x04\x11\x12\x06\x97\x05\0\xc8\x05\x01\x1ar\x20NOTE:\x20This\x20API\x20i\ - s\x20intended\x20to\x20be\x20used\x20by\x20Apache\x20Beam\x20BigtableIO.\ - \n\x20Request\x20message\x20for\x20Bigtable.ReadChangeStream.\n\n\x0b\n\ - \x03\x04\x11\x01\x12\x04\x97\x05\x08\x1f\n\xe0\x01\n\x04\x04\x11\x02\0\ - \x12\x06\x9c\x05\x02\xa1\x05\x04\x1a\xcf\x01\x20Required.\x20The\x20uniq\ - ue\x20name\x20of\x20the\x20table\x20from\x20which\x20to\x20read\x20a\x20\ - change\x20stream.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects\ - //instances//tables/
`.\n\x20Change\x20streamin\ - g\x20must\x20be\x20enabled\x20on\x20the\x20table.\n\n\r\n\x05\x04\x11\ - \x02\0\x05\x12\x04\x9c\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ - \x9c\x05\t\x13\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\x9c\x05\x16\x17\n\x0f\ - \n\x05\x04\x11\x02\0\x08\x12\x06\x9c\x05\x18\xa1\x05\x03\n\x10\n\x08\x04\ - \x11\x02\0\x08\x9c\x08\0\x12\x04\x9d\x05\x04*\n\x11\n\x07\x04\x11\x02\0\ - \x08\x9f\x08\x12\x06\x9e\x05\x04\xa0\x05\x05\n\xbc\x01\n\x04\x04\x11\x02\ - \x01\x12\x04\xa6\x05\x02\x1c\x1a\xad\x01\x20This\x20value\x20specifies\ - \x20routing\x20for\x20replication.\x20If\x20not\x20specified,\x20the\n\ - \x20\"default\"\x20application\x20profile\x20will\x20be\x20used.\n\x20Si\ - ngle\x20cluster\x20routing\x20must\x20be\x20configured\x20on\x20the\x20p\ - rofile.\n\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xa6\x05\x02\x08\n\r\n\ - \x05\x04\x11\x02\x01\x01\x12\x04\xa6\x05\t\x17\n\r\n\x05\x04\x11\x02\x01\ - \x03\x12\x04\xa6\x05\x1a\x1b\n3\n\x04\x04\x11\x02\x02\x12\x04\xa9\x05\ - \x02\x20\x1a%\x20The\x20partition\x20to\x20read\x20changes\x20from.\n\n\ - \r\n\x05\x04\x11\x02\x02\x06\x12\x04\xa9\x05\x02\x11\n\r\n\x05\x04\x11\ - \x02\x02\x01\x12\x04\xa9\x05\x12\x1b\n\r\n\x05\x04\x11\x02\x02\x03\x12\ - \x04\xa9\x05\x1e\x1f\nX\n\x04\x04\x11\x08\0\x12\x06\xac\x05\x02\xbe\x05\ - \x03\x1aH\x20Options\x20for\x20describing\x20where\x20we\x20want\x20to\ - \x20start\x20reading\x20from\x20the\x20stream.\n\n\r\n\x05\x04\x11\x08\0\ - \x01\x12\x04\xac\x05\x08\x12\n\xb4\x02\n\x04\x04\x11\x02\x03\x12\x04\xb1\ - \x05\x04-\x1a\xa5\x02\x20Start\x20reading\x20the\x20stream\x20at\x20the\ - \x20specified\x20timestamp.\x20This\x20timestamp\x20must\n\x20be\x20with\ - in\x20the\x20change\x20stream\x20retention\x20period,\x20less\x20than\ - \x20or\x20equal\x20to\x20the\n\x20current\x20time,\x20and\x20after\x20ch\ - ange\x20stream\x20creation,\x20whichever\x20is\x20greater.\n\x20This\x20\ - value\x20is\x20inclusive\x20and\x20will\x20be\x20truncated\x20to\x20micr\ - osecond\x20granularity.\n\n\r\n\x05\x04\x11\x02\x03\x06\x12\x04\xb1\x05\ - \x04\x1d\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xb1\x05\x1e(\n\r\n\x05\ - \x04\x11\x02\x03\x03\x12\x04\xb1\x05+,\n\xb0\x04\n\x04\x04\x11\x02\x04\ - \x12\x04\xbd\x05\x045\x1a\xa1\x04\x20Tokens\x20that\x20describe\x20how\ - \x20to\x20resume\x20reading\x20a\x20stream\x20where\x20reading\n\x20prev\ - iously\x20left\x20off.\x20If\x20specified,\x20changes\x20will\x20be\x20r\ - ead\x20starting\x20at\x20the\n\x20the\x20position.\x20Tokens\x20are\x20d\ - elivered\x20on\x20the\x20stream\x20as\x20part\x20of\x20`Heartbeat`\n\x20\ - and\x20`CloseStream`\x20messages.\n\n\x20If\x20a\x20single\x20token\x20i\ - s\x20provided,\x20the\x20token\xe2\x80\x99s\x20partition\x20must\x20exac\ - tly\x20match\n\x20the\x20request\xe2\x80\x99s\x20partition.\x20If\x20mul\ - tiple\x20tokens\x20are\x20provided,\x20as\x20in\x20the\x20case\n\x20of\ - \x20a\x20partition\x20merge,\x20the\x20union\x20of\x20the\x20token\x20pa\ - rtitions\x20must\x20exactly\n\x20cover\x20the\x20request\xe2\x80\x99s\ - \x20partition.\x20Otherwise,\x20INVALID_ARGUMENT\x20will\x20be\n\x20retu\ - rned.\n\n\r\n\x05\x04\x11\x02\x04\x06\x12\x04\xbd\x05\x04\x1c\n\r\n\x05\ - \x04\x11\x02\x04\x01\x12\x04\xbd\x05\x1d0\n\r\n\x05\x04\x11\x02\x04\x03\ - \x12\x04\xbd\x0534\n\xea\x01\n\x04\x04\x11\x02\x05\x12\x04\xc3\x05\x02)\ - \x1a\xdb\x01\x20If\x20specified,\x20OK\x20will\x20be\x20returned\x20when\ - \x20the\x20stream\x20advances\x20beyond\n\x20this\x20time.\x20Otherwise,\ - \x20changes\x20will\x20be\x20continuously\x20delivered\x20on\x20the\x20s\ - tream.\n\x20This\x20value\x20is\x20inclusive\x20and\x20will\x20be\x20tru\ - ncated\x20to\x20microsecond\x20granularity.\n\n\r\n\x05\x04\x11\x02\x05\ - \x06\x12\x04\xc3\x05\x02\x1b\n\r\n\x05\x04\x11\x02\x05\x01\x12\x04\xc3\ - \x05\x1c$\n\r\n\x05\x04\x11\x02\x05\x03\x12\x04\xc3\x05'(\ny\n\x04\x04\ - \x11\x02\x06\x12\x04\xc7\x05\x022\x1ak\x20If\x20specified,\x20the\x20dur\ - ation\x20between\x20`Heartbeat`\x20messages\x20on\x20the\x20stream.\n\ - \x20Otherwise,\x20defaults\x20to\x205\x20seconds.\n\n\r\n\x05\x04\x11\ - \x02\x06\x06\x12\x04\xc7\x05\x02\x1a\n\r\n\x05\x04\x11\x02\x06\x01\x12\ - \x04\xc7\x05\x1b-\n\r\n\x05\x04\x11\x02\x06\x03\x12\x04\xc7\x0501\n\x81\ - \x01\n\x02\x04\x12\x12\x06\xcc\x05\0\xea\x06\x01\x1as\x20NOTE:\x20This\ - \x20API\x20is\x20intended\x20to\x20be\x20used\x20by\x20Apache\x20Beam\ - \x20BigtableIO.\n\x20Response\x20message\x20for\x20Bigtable.ReadChangeSt\ - ream.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xcc\x05\x08\x20\n1\n\x04\x04\x12\ - \x03\0\x12\x06\xce\x05\x02\xe6\x05\x03\x1a!\x20A\x20partial\x20or\x20com\ - plete\x20mutation.\n\n\r\n\x05\x04\x12\x03\0\x01\x12\x04\xce\x05\n\x17\n\ - \xd8\x01\n\x06\x04\x12\x03\0\x03\0\x12\x06\xd2\x05\x04\xdc\x05\x05\x1a\ - \xc5\x01\x20Information\x20about\x20the\x20chunking\x20of\x20this\x20mut\ - ation.\n\x20Only\x20`SetCell`\x20mutations\x20can\x20be\x20chunked,\x20a\ - nd\x20all\x20chunks\x20for\x20a\x20`SetCell`\n\x20will\x20be\x20delivere\ - d\x20contiguously\x20with\x20no\x20other\x20mutation\x20types\x20interle\ - aved.\n\n\x0f\n\x07\x04\x12\x03\0\x03\0\x01\x12\x04\xd2\x05\x0c\x15\nV\n\ - \x08\x04\x12\x03\0\x03\0\x02\0\x12\x04\xd4\x05\x06#\x1aD\x20The\x20total\ - \x20value\x20size\x20of\x20all\x20the\x20chunks\x20that\x20make\x20up\ - \x20the\x20`SetCell`.\n\n\x11\n\t\x04\x12\x03\0\x03\0\x02\0\x05\x12\x04\ - \xd4\x05\x06\x0b\n\x11\n\t\x04\x12\x03\0\x03\0\x02\0\x01\x12\x04\xd4\x05\ - \x0c\x1e\n\x11\n\t\x04\x12\x03\0\x03\0\x02\0\x03\x12\x04\xd4\x05!\"\n]\n\ - \x08\x04\x12\x03\0\x03\0\x02\x01\x12\x04\xd8\x05\x06%\x1aK\x20The\x20byt\ - e\x20offset\x20of\x20this\x20chunk\x20into\x20the\x20total\x20value\x20s\ - ize\x20of\x20the\n\x20mutation.\n\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x01\ - \x05\x12\x04\xd8\x05\x06\x0b\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x01\x01\ - \x12\x04\xd8\x05\x0c\x20\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x01\x03\x12\ - \x04\xd8\x05#$\nM\n\x08\x04\x12\x03\0\x03\0\x02\x02\x12\x04\xdb\x05\x06\ - \x1a\x1a;\x20When\x20true,\x20this\x20is\x20the\x20last\x20chunk\x20of\ - \x20a\x20chunked\x20`SetCell`.\n\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x02\ - \x05\x12\x04\xdb\x05\x06\n\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x02\x01\x12\ - \x04\xdb\x05\x0b\x15\n\x11\n\t\x04\x12\x03\0\x03\0\x02\x02\x03\x12\x04\ - \xdb\x05\x18\x19\nj\n\x06\x04\x12\x03\0\x02\0\x12\x04\xe0\x05\x04\x1d\ - \x1aZ\x20If\x20set,\x20then\x20the\x20mutation\x20is\x20a\x20`SetCell`\ - \x20with\x20a\x20chunked\x20value\x20across\n\x20multiple\x20messages.\n\ - \n\x0f\n\x07\x04\x12\x03\0\x02\0\x06\x12\x04\xe0\x05\x04\r\n\x0f\n\x07\ - \x04\x12\x03\0\x02\0\x01\x12\x04\xe0\x05\x0e\x18\n\x0f\n\x07\x04\x12\x03\ - \0\x02\0\x03\x12\x04\xe0\x05\x1b\x1c\n\xda\x01\n\x06\x04\x12\x03\0\x02\ - \x01\x12\x04\xe5\x05\x04\x1a\x1a\xc9\x01\x20If\x20this\x20is\x20a\x20con\ - tinuation\x20of\x20a\x20chunked\x20message\x20(`chunked_value_offset`\ - \x20>\n\x200),\x20ignore\x20all\x20fields\x20except\x20the\x20`SetCell`'\ - s\x20value\x20and\x20merge\x20it\x20with\n\x20the\x20previous\x20message\ - \x20by\x20concatenating\x20the\x20value\x20fields.\n\n\x0f\n\x07\x04\x12\ - \x03\0\x02\x01\x06\x12\x04\xe5\x05\x04\x0c\n\x0f\n\x07\x04\x12\x03\0\x02\ - \x01\x01\x12\x04\xe5\x05\r\x15\n\x0f\n\x07\x04\x12\x03\0\x02\x01\x03\x12\ - \x04\xe5\x05\x18\x19\n\x84\x03\n\x04\x04\x12\x03\x01\x12\x06\xee\x05\x02\ - \xab\x06\x03\x1a\xf3\x02\x20A\x20message\x20corresponding\x20to\x20one\ - \x20or\x20more\x20mutations\x20to\x20the\x20partition\n\x20being\x20stre\ - amed.\x20A\x20single\x20logical\x20`DataChange`\x20message\x20may\x20als\ - o\x20be\x20split\n\x20across\x20a\x20sequence\x20of\x20multiple\x20indiv\ - idual\x20messages.\x20Messages\x20other\x20than\n\x20the\x20first\x20in\ - \x20a\x20sequence\x20will\x20only\x20have\x20the\x20`type`\x20and\x20`ch\ - unks`\x20fields\n\x20populated,\x20with\x20the\x20final\x20message\x20in\ - \x20the\x20sequence\x20also\x20containing\x20`done`\n\x20set\x20to\x20tr\ - ue.\n\n\r\n\x05\x04\x12\x03\x01\x01\x12\x04\xee\x05\n\x14\n)\n\x06\x04\ - \x12\x03\x01\x04\0\x12\x06\xf0\x05\x04\xfd\x05\x05\x1a\x17\x20The\x20typ\ - e\x20of\x20mutation.\n\n\x0f\n\x07\x04\x12\x03\x01\x04\0\x01\x12\x04\xf0\ - \x05\t\r\n,\n\x08\x04\x12\x03\x01\x04\0\x02\0\x12\x04\xf2\x05\x06\x1b\ - \x1a\x1a\x20The\x20type\x20is\x20unspecified.\n\n\x11\n\t\x04\x12\x03\ - \x01\x04\0\x02\0\x01\x12\x04\xf2\x05\x06\x16\n\x11\n\t\x04\x12\x03\x01\ - \x04\0\x02\0\x02\x12\x04\xf2\x05\x19\x1a\n.\n\x08\x04\x12\x03\x01\x04\0\ - \x02\x01\x12\x04\xf5\x05\x06\x0f\x1a\x1c\x20A\x20user-initiated\x20mutat\ - ion.\n\n\x11\n\t\x04\x12\x03\x01\x04\0\x02\x01\x01\x12\x04\xf5\x05\x06\n\ - \n\x11\n\t\x04\x12\x03\x01\x04\0\x02\x01\x02\x12\x04\xf5\x05\r\x0e\n\x89\ - \x01\n\x08\x04\x12\x03\x01\x04\0\x02\x02\x12\x04\xf9\x05\x06\x1d\x1aw\ - \x20A\x20system-initiated\x20mutation\x20as\x20part\x20of\x20garbage\x20\ - collection.\n\x20https://cloud.google.com/bigtable/docs/garbage-collecti\ - on\n\n\x11\n\t\x04\x12\x03\x01\x04\0\x02\x02\x01\x12\x04\xf9\x05\x06\x18\ - \n\x11\n\t\x04\x12\x03\x01\x04\0\x02\x02\x02\x12\x04\xf9\x05\x1b\x1c\nE\ - \n\x08\x04\x12\x03\x01\x04\0\x02\x03\x12\x04\xfc\x05\x06\x17\x1a3\x20Thi\ - s\x20is\x20a\x20continuation\x20of\x20a\x20multi-message\x20change.\n\n\ - \x11\n\t\x04\x12\x03\x01\x04\0\x02\x03\x01\x12\x04\xfc\x05\x06\x12\n\x11\ - \n\t\x04\x12\x03\x01\x04\0\x02\x03\x02\x12\x04\xfc\x05\x15\x16\n+\n\x06\ - \x04\x12\x03\x01\x02\0\x12\x04\x80\x06\x04\x12\x1a\x1b\x20The\x20type\ - \x20of\x20the\x20mutation.\n\n\x0f\n\x07\x04\x12\x03\x01\x02\0\x06\x12\ - \x04\x80\x06\x04\x08\n\x0f\n\x07\x04\x12\x03\x01\x02\0\x01\x12\x04\x80\ - \x06\t\r\n\x0f\n\x07\x04\x12\x03\x01\x02\0\x03\x12\x04\x80\x06\x10\x11\n\ - k\n\x06\x04\x12\x03\x01\x02\x01\x12\x04\x84\x06\x04!\x1a[\x20The\x20clus\ - ter\x20where\x20the\x20mutation\x20was\x20applied.\n\x20Not\x20set\x20wh\ - en\x20`type`\x20is\x20`GARBAGE_COLLECTION`.\n\n\x0f\n\x07\x04\x12\x03\ - \x01\x02\x01\x05\x12\x04\x84\x06\x04\n\n\x0f\n\x07\x04\x12\x03\x01\x02\ - \x01\x01\x12\x04\x84\x06\x0b\x1c\n\x0f\n\x07\x04\x12\x03\x01\x02\x01\x03\ - \x12\x04\x84\x06\x1f\x20\n\xc7\x01\n\x06\x04\x12\x03\x01\x02\x02\x12\x04\ - \x89\x06\x04\x16\x1a\xb6\x01\x20The\x20row\x20key\x20for\x20all\x20mutat\ - ions\x20that\x20are\x20part\x20of\x20this\x20`DataChange`.\n\x20If\x20th\ - e\x20`DataChange`\x20is\x20chunked\x20across\x20multiple\x20messages,\ - \x20then\x20this\x20field\n\x20will\x20only\x20be\x20set\x20for\x20the\ - \x20first\x20message.\n\n\x0f\n\x07\x04\x12\x03\x01\x02\x02\x05\x12\x04\ - \x89\x06\x04\t\n\x0f\n\x07\x04\x12\x03\x01\x02\x02\x01\x12\x04\x89\x06\n\ - \x11\n\x0f\n\x07\x04\x12\x03\x01\x02\x02\x03\x12\x04\x89\x06\x14\x15\nY\ - \n\x06\x04\x12\x03\x01\x02\x03\x12\x04\x8c\x06\x043\x1aI\x20The\x20times\ - tamp\x20at\x20which\x20the\x20mutation\x20was\x20applied\x20on\x20the\ - \x20Bigtable\x20server.\n\n\x0f\n\x07\x04\x12\x03\x01\x02\x03\x06\x12\ - \x04\x8c\x06\x04\x1d\n\x0f\n\x07\x04\x12\x03\x01\x02\x03\x01\x12\x04\x8c\ - \x06\x1e.\n\x0f\n\x07\x04\x12\x03\x01\x02\x03\x03\x12\x04\x8c\x0612\n\ - \xb9\x03\n\x06\x04\x12\x03\x01\x02\x04\x12\x04\x95\x06\x04\x19\x1a\xa8\ - \x03\x20A\x20value\x20that\x20lets\x20stream\x20consumers\x20reconstruct\ - \x20Bigtable's\n\x20conflict\x20resolution\x20semantics.\n\x20https://cl\ - oud.google.com/bigtable/docs/writes#conflict-resolution\n\x20In\x20the\ - \x20event\x20that\x20the\x20same\x20row\x20key,\x20column\x20family,\x20\ - column\x20qualifier,\n\x20timestamp\x20are\x20modified\x20on\x20differen\ - t\x20clusters\x20at\x20the\x20same\n\x20`commit_timestamp`,\x20the\x20mu\ - tation\x20with\x20the\x20larger\x20`tiebreaker`\x20will\x20be\x20the\n\ - \x20one\x20chosen\x20for\x20the\x20eventually\x20consistent\x20state\x20\ - of\x20the\x20system.\n\n\x0f\n\x07\x04\x12\x03\x01\x02\x04\x05\x12\x04\ - \x95\x06\x04\t\n\x0f\n\x07\x04\x12\x03\x01\x02\x04\x01\x12\x04\x95\x06\n\ - \x14\n\x0f\n\x07\x04\x12\x03\x01\x02\x04\x03\x12\x04\x95\x06\x17\x18\n\ - \xa9\x01\n\x06\x04\x12\x03\x01\x02\x05\x12\x04\x9a\x06\x04&\x1a\x98\x01\ - \x20The\x20mutations\x20associated\x20with\x20this\x20change\x20to\x20th\ - e\x20partition.\n\x20May\x20contain\x20complete\x20mutations\x20or\x20ch\ - unks\x20of\x20a\x20multi-message\x20chunked\n\x20`DataChange`\x20record.\ - \n\n\x0f\n\x07\x04\x12\x03\x01\x02\x05\x04\x12\x04\x9a\x06\x04\x0c\n\x0f\ - \n\x07\x04\x12\x03\x01\x02\x05\x06\x12\x04\x9a\x06\r\x1a\n\x0f\n\x07\x04\ - \x12\x03\x01\x02\x05\x01\x12\x04\x9a\x06\x1b!\n\x0f\n\x07\x04\x12\x03\ - \x01\x02\x05\x03\x12\x04\x9a\x06$%\n\x81\x01\n\x06\x04\x12\x03\x01\x02\ - \x06\x12\x04\x9e\x06\x04\x12\x1aq\x20When\x20true,\x20indicates\x20that\ - \x20the\x20entire\x20`DataChange`\x20has\x20been\x20read\n\x20and\x20the\ - \x20client\x20can\x20safely\x20process\x20the\x20message.\n\n\x0f\n\x07\ - \x04\x12\x03\x01\x02\x06\x05\x12\x04\x9e\x06\x04\x08\n\x0f\n\x07\x04\x12\ - \x03\x01\x02\x06\x01\x12\x04\x9e\x06\t\r\n\x0f\n\x07\x04\x12\x03\x01\x02\ - \x06\x03\x12\x04\x9e\x06\x10\x11\n\x94\x01\n\x06\x04\x12\x03\x01\x02\x07\ - \x12\x04\xa2\x06\x04\x15\x1a\x83\x01\x20An\x20encoded\x20position\x20for\ - \x20this\x20stream's\x20partition\x20to\x20restart\x20reading\x20from.\n\ - \x20This\x20token\x20is\x20for\x20the\x20StreamPartition\x20from\x20the\ - \x20request.\n\n\x0f\n\x07\x04\x12\x03\x01\x02\x07\x05\x12\x04\xa2\x06\ - \x04\n\n\x0f\n\x07\x04\x12\x03\x01\x02\x07\x01\x12\x04\xa2\x06\x0b\x10\n\ - \x0f\n\x07\x04\x12\x03\x01\x02\x07\x03\x12\x04\xa2\x06\x13\x14\n\x8a\x03\ - \n\x06\x04\x12\x03\x01\x02\x08\x12\x04\xaa\x06\x04;\x1a\xf9\x02\x20An\ - \x20estimate\x20of\x20the\x20commit\x20timestamp\x20that\x20is\x20usuall\ - y\x20lower\x20than\x20or\x20equal\n\x20to\x20any\x20timestamp\x20for\x20\ - a\x20record\x20that\x20will\x20be\x20delivered\x20in\x20the\x20future\ - \x20on\x20the\n\x20stream.\x20It\x20is\x20possible\x20that,\x20under\x20\ - particular\x20circumstances\x20that\x20a\x20future\n\x20record\x20has\ - \x20a\x20timestamp\x20is\x20is\x20lower\x20than\x20a\x20previously\x20se\ - en\x20timestamp.\x20For\n\x20an\x20example\x20usage\x20see\n\x20https://\ - beam.apache.org/documentation/basics/#watermarks\n\n\x0f\n\x07\x04\x12\ - \x03\x01\x02\x08\x06\x12\x04\xaa\x06\x04\x1d\n\x0f\n\x07\x04\x12\x03\x01\ - \x02\x08\x01\x12\x04\xaa\x06\x1e5\n\x0f\n\x07\x04\x12\x03\x01\x02\x08\ - \x03\x12\x04\xaa\x068:\nl\n\x04\x04\x12\x03\x02\x12\x06\xaf\x06\x02\xbb\ - \x06\x03\x1a\\\x20A\x20periodic\x20message\x20with\x20information\x20tha\ - t\x20can\x20be\x20used\x20to\x20checkpoint\n\x20the\x20state\x20of\x20a\ - \x20stream.\n\n\r\n\x05\x04\x12\x03\x02\x01\x12\x04\xaf\x06\n\x13\n\x8a\ - \x01\n\x06\x04\x12\x03\x02\x02\0\x12\x04\xb2\x06\x043\x1az\x20A\x20token\ - \x20that\x20can\x20be\x20provided\x20to\x20a\x20subsequent\x20`ReadChang\ - eStream`\x20call\n\x20to\x20pick\x20up\x20reading\x20at\x20the\x20curren\ - t\x20stream\x20position.\n\n\x0f\n\x07\x04\x12\x03\x02\x02\0\x06\x12\x04\ - \xb2\x06\x04\x1b\n\x0f\n\x07\x04\x12\x03\x02\x02\0\x01\x12\x04\xb2\x06\ - \x1c.\n\x0f\n\x07\x04\x12\x03\x02\x02\0\x03\x12\x04\xb2\x0612\n\x8a\x03\ - \n\x06\x04\x12\x03\x02\x02\x01\x12\x04\xba\x06\x04:\x1a\xf9\x02\x20An\ - \x20estimate\x20of\x20the\x20commit\x20timestamp\x20that\x20is\x20usuall\ - y\x20lower\x20than\x20or\x20equal\n\x20to\x20any\x20timestamp\x20for\x20\ - a\x20record\x20that\x20will\x20be\x20delivered\x20in\x20the\x20future\ - \x20on\x20the\n\x20stream.\x20It\x20is\x20possible\x20that,\x20under\x20\ - particular\x20circumstances\x20that\x20a\x20future\n\x20record\x20has\ - \x20a\x20timestamp\x20is\x20is\x20lower\x20than\x20a\x20previously\x20se\ - en\x20timestamp.\x20For\n\x20an\x20example\x20usage\x20see\n\x20https://\ - beam.apache.org/documentation/basics/#watermarks\n\n\x0f\n\x07\x04\x12\ - \x03\x02\x02\x01\x06\x12\x04\xba\x06\x04\x1d\n\x0f\n\x07\x04\x12\x03\x02\ - \x02\x01\x01\x12\x04\xba\x06\x1e5\n\x0f\n\x07\x04\x12\x03\x02\x02\x01\ - \x03\x12\x04\xba\x0689\n\xcd\x08\n\x04\x04\x12\x03\x03\x12\x06\xd1\x06\ - \x02\xdd\x06\x03\x1a\xbc\x08\x20A\x20message\x20indicating\x20that\x20th\ - e\x20client\x20should\x20stop\x20reading\x20from\x20the\x20stream.\n\x20\ - If\x20status\x20is\x20OK\x20and\x20`continuation_tokens`\x20&\x20`new_pa\ - rtitions`\x20are\x20empty,\x20the\n\x20stream\x20has\x20finished\x20(for\ - \x20example\x20if\x20there\x20was\x20an\x20`end_time`\x20specified).\n\ - \x20If\x20`continuation_tokens`\x20&\x20`new_partitions`\x20are\x20prese\ - nt,\x20then\x20a\x20change\x20in\n\x20partitioning\x20requires\x20the\ - \x20client\x20to\x20open\x20a\x20new\x20stream\x20for\x20each\x20token\ - \x20to\n\x20resume\x20reading.\x20Example:\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20[B,\x20\x20\x20\x20\x20\x20D)\x20end\ - s\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20v\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20new_partitions:\x20\x20[A,\x20\x20C)\x20[C,\x20\ - \x20E)\n\x20continuation_tokens.partitions:\x20\x20[B,C)\x20[C,D)\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^---^\x20^--\ - -^\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^\ - \x20\x20\x20\x20\x20^\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20|\x20\x20\x20\x20\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20StreamContinuationT\ - oken\x202\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - StreamContinuationToken\x201\n\x20To\x20read\x20the\x20new\x20partition\ - \x20[A,C),\x20supply\x20the\x20continuation\x20tokens\x20whose\n\x20rang\ - es\x20cover\x20the\x20new\x20partition,\x20for\x20example\x20Continuatio\ - nToken[A,B)\x20&\n\x20ContinuationToken[B,C).\n\n\r\n\x05\x04\x12\x03\ - \x03\x01\x12\x04\xd1\x06\n\x15\n+\n\x06\x04\x12\x03\x03\x02\0\x12\x04\ - \xd3\x06\x04!\x1a\x1b\x20The\x20status\x20of\x20the\x20stream.\n\n\x0f\n\ - \x07\x04\x12\x03\x03\x02\0\x06\x12\x04\xd3\x06\x04\x15\n\x0f\n\x07\x04\ - \x12\x03\x03\x02\0\x01\x12\x04\xd3\x06\x16\x1c\n\x0f\n\x07\x04\x12\x03\ - \x03\x02\0\x03\x12\x04\xd3\x06\x1f\x20\no\n\x06\x04\x12\x03\x03\x02\x01\ - \x12\x04\xd7\x06\x04=\x1a_\x20If\x20non-empty,\x20contains\x20the\x20inf\ - ormation\x20needed\x20to\x20resume\x20reading\x20their\n\x20associated\ - \x20partitions.\n\n\x0f\n\x07\x04\x12\x03\x03\x02\x01\x04\x12\x04\xd7\ - \x06\x04\x0c\n\x0f\n\x07\x04\x12\x03\x03\x02\x01\x06\x12\x04\xd7\x06\r$\ - \n\x0f\n\x07\x04\x12\x03\x03\x02\x01\x01\x12\x04\xd7\x06%8\n\x0f\n\x07\ - \x04\x12\x03\x03\x02\x01\x03\x12\x04\xd7\x06;<\n\xbf\x01\n\x06\x04\x12\ - \x03\x03\x02\x02\x12\x04\xdc\x06\x040\x1a\xae\x01\x20If\x20non-empty,\ - \x20contains\x20the\x20new\x20partitions\x20to\x20start\x20reading\x20fr\ - om,\x20which\n\x20are\x20related\x20to\x20but\x20not\x20necessarily\x20i\ - dentical\x20to\x20the\x20partitions\x20for\x20the\n\x20above\x20`continu\ - ation_tokens`.\n\n\x0f\n\x07\x04\x12\x03\x03\x02\x02\x04\x12\x04\xdc\x06\ - \x04\x0c\n\x0f\n\x07\x04\x12\x03\x03\x02\x02\x06\x12\x04\xdc\x06\r\x1c\n\ - \x0f\n\x07\x04\x12\x03\x03\x02\x02\x01\x12\x04\xdc\x06\x1d+\n\x0f\n\x07\ - \x04\x12\x03\x03\x02\x02\x03\x12\x04\xdc\x06./\n<\n\x04\x04\x12\x08\0\ - \x12\x06\xe0\x06\x02\xe9\x06\x03\x1a,\x20The\x20data\x20or\x20control\ - \x20message\x20on\x20the\x20stream.\n\n\r\n\x05\x04\x12\x08\0\x01\x12\ - \x04\xe0\x06\x08\x15\n,\n\x04\x04\x12\x02\0\x12\x04\xe2\x06\x04\x1f\x1a\ - \x1e\x20A\x20mutation\x20to\x20the\x20partition.\n\n\r\n\x05\x04\x12\x02\ - \0\x06\x12\x04\xe2\x06\x04\x0e\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xe2\ - \x06\x0f\x1a\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xe2\x06\x1d\x1e\n-\n\ - \x04\x04\x12\x02\x01\x12\x04\xe5\x06\x04\x1c\x1a\x1f\x20A\x20periodic\ - \x20heartbeat\x20message.\n\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xe5\ - \x06\x04\r\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xe5\x06\x0e\x17\n\r\n\ - \x05\x04\x12\x02\x01\x03\x12\x04\xe5\x06\x1a\x1b\n?\n\x04\x04\x12\x02\ - \x02\x12\x04\xe8\x06\x04!\x1a1\x20An\x20indication\x20that\x20the\x20str\ - eam\x20should\x20be\x20closed.\n\n\r\n\x05\x04\x12\x02\x02\x06\x12\x04\ - \xe8\x06\x04\x0f\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xe8\x06\x10\x1c\n\ - \r\n\x05\x04\x12\x02\x02\x03\x12\x04\xe8\x06\x1f\x20b\x06proto3\ + \x05\x04\n\x02\x01\x05\x12\x04\xa9\x03\x02\x08\n\r\n\x05\x04\n\x02\x01\ + \x01\x12\x04\xa9\x03\t\x17\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xa9\x03\ + \x1a\x1b\n\xc3\x01\n\x04\x04\n\x02\x02\x12\x04\xaf\x03\x02=\x1a\xb4\x01\ + \x20Required.\x20The\x20key\x20of\x20the\x20row\x20to\x20which\x20the\ + \x20read/modify/write\x20rules\x20should\x20be\x20applied.\n\n\x20Classi\ + fied\x20as\x20IDENTIFYING_ID\x20to\x20provide\x20context\x20around\x20da\ + ta\x20accesses\x20for\n\x20auditing\x20systems.\n\n\r\n\x05\x04\n\x02\ + \x02\x05\x12\x04\xaf\x03\x02\x07\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xaf\ + \x03\x08\x0f\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xaf\x03\x12\x13\n\r\n\ + \x05\x04\n\x02\x02\x08\x12\x04\xaf\x03\x14<\n\x10\n\x08\x04\n\x02\x02\ + \x08\x9c\x08\0\x12\x04\xaf\x03\x15;\n\xd1\x01\n\x04\x04\n\x02\x03\x12\ + \x04\xb4\x03\x02R\x1a\xc2\x01\x20Required.\x20Rules\x20specifying\x20how\ + \x20the\x20specified\x20row's\x20contents\x20are\x20to\x20be\x20transfor\ + med\n\x20into\x20writes.\x20Entries\x20are\x20applied\x20in\x20order,\ + \x20meaning\x20that\x20earlier\x20rules\x20will\n\x20affect\x20the\x20re\ + sults\x20of\x20later\x20ones.\n\n\r\n\x05\x04\n\x02\x03\x04\x12\x04\xb4\ + \x03\x02\n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xb4\x03\x0b\x1e\n\r\n\x05\ + \x04\n\x02\x03\x01\x12\x04\xb4\x03\x1f$\n\r\n\x05\x04\n\x02\x03\x03\x12\ + \x04\xb4\x03'(\n\r\n\x05\x04\n\x02\x03\x08\x12\x04\xb4\x03)Q\n\x10\n\x08\ + \x04\n\x02\x03\x08\x9c\x08\0\x12\x04\xb4\x03*P\nA\n\x02\x04\x0b\x12\x06\ + \xb8\x03\0\xbb\x03\x01\x1a3\x20Response\x20message\x20for\x20Bigtable.Re\ + adModifyWriteRow.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xb8\x03\x08\"\nW\n\ + \x04\x04\x0b\x02\0\x12\x04\xba\x03\x02\x0e\x1aI\x20A\x20Row\x20containin\ + g\x20the\x20new\x20contents\x20of\x20all\x20cells\x20modified\x20by\x20t\ + he\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\xba\x03\x02\x05\n\r\ + \n\x05\x04\x0b\x02\0\x01\x12\x04\xba\x03\x06\t\n\r\n\x05\x04\x0b\x02\0\ + \x03\x12\x04\xba\x03\x0c\rb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(7); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::data::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::wrappers::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(15); + messages.push(ReadRowsRequest::generated_message_descriptor_data()); + messages.push(ReadRowsResponse::generated_message_descriptor_data()); + messages.push(SampleRowKeysRequest::generated_message_descriptor_data()); + messages.push(SampleRowKeysResponse::generated_message_descriptor_data()); + messages.push(MutateRowRequest::generated_message_descriptor_data()); + messages.push(MutateRowResponse::generated_message_descriptor_data()); + messages.push(MutateRowsRequest::generated_message_descriptor_data()); + messages.push(MutateRowsResponse::generated_message_descriptor_data()); + messages.push(CheckAndMutateRowRequest::generated_message_descriptor_data()); + messages.push(CheckAndMutateRowResponse::generated_message_descriptor_data()); + messages.push(ReadModifyWriteRowRequest::generated_message_descriptor_data()); + messages.push(ReadModifyWriteRowResponse::generated_message_descriptor_data()); + messages.push(read_rows_response::CellChunk::generated_message_descriptor_data()); + messages.push(mutate_rows_request::Entry::generated_message_descriptor_data()); + messages.push(mutate_rows_response::Entry::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs b/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs index 49c92dc..35fab25 100644 --- a/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs +++ b/googleapis-raw/src/bigtable/v2/bigtable_grpc.rs @@ -51,13 +51,6 @@ const METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.bigtable.v2.Bigtable/PingAndWarm", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.bigtable.v2.Bigtable/ReadModifyWriteRow", @@ -65,20 +58,6 @@ const METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v2.Bigtable/GenerateInitialChangeStreamPartitions", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_BIGTABLE_READ_CHANGE_STREAM: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.bigtable.v2.Bigtable/ReadChangeStream", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct BigtableClient { pub client: ::grpcio::Client, @@ -147,22 +126,6 @@ impl BigtableClient { self.check_and_mutate_row_async_opt(req, ::grpcio::CallOption::default()) } - pub fn ping_and_warm_opt(&self, req: &super::bigtable::PingAndWarmRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_BIGTABLE_PING_AND_WARM, req, opt) - } - - pub fn ping_and_warm(&self, req: &super::bigtable::PingAndWarmRequest) -> ::grpcio::Result { - self.ping_and_warm_opt(req, ::grpcio::CallOption::default()) - } - - pub fn ping_and_warm_async_opt(&self, req: &super::bigtable::PingAndWarmRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_BIGTABLE_PING_AND_WARM, req, opt) - } - - pub fn ping_and_warm_async(&self, req: &super::bigtable::PingAndWarmRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.ping_and_warm_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn read_modify_write_row_opt(&self, req: &super::bigtable::ReadModifyWriteRowRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, req, opt) } @@ -178,22 +141,6 @@ impl BigtableClient { pub fn read_modify_write_row_async(&self, req: &super::bigtable::ReadModifyWriteRowRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.read_modify_write_row_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn generate_initial_change_stream_partitions_opt(&self, req: &super::bigtable::GenerateInitialChangeStreamPartitionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_GENERATE_INITIAL_CHANGE_STREAM_PARTITIONS, req, opt) - } - - pub fn generate_initial_change_stream_partitions(&self, req: &super::bigtable::GenerateInitialChangeStreamPartitionsRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.generate_initial_change_stream_partitions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn read_change_stream_opt(&self, req: &super::bigtable::ReadChangeStreamRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_BIGTABLE_READ_CHANGE_STREAM, req, opt) - } - - pub fn read_change_stream(&self, req: &super::bigtable::ReadChangeStreamRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.read_change_stream_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -215,18 +162,9 @@ pub trait Bigtable { fn check_and_mutate_row(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable::CheckAndMutateRowRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn ping_and_warm(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable::PingAndWarmRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn read_modify_write_row(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable::ReadModifyWriteRowRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn generate_initial_change_stream_partitions(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable::GenerateInitialChangeStreamPartitionsRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn read_change_stream(&mut self, ctx: ::grpcio::RpcContext, _req: super::bigtable::ReadChangeStreamRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_bigtable(s: S) -> ::grpcio::Service { @@ -251,21 +189,9 @@ pub fn create_bigtable(s: S) -> ::grpcio:: builder = builder.add_unary_handler(&METHOD_BIGTABLE_CHECK_AND_MUTATE_ROW, move |ctx, req, resp| { instance.check_and_mutate_row(ctx, req, resp) }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_BIGTABLE_PING_AND_WARM, move |ctx, req, resp| { - instance.ping_and_warm(ctx, req, resp) - }); - let mut instance = s.clone(); + let mut instance = s; builder = builder.add_unary_handler(&METHOD_BIGTABLE_READ_MODIFY_WRITE_ROW, move |ctx, req, resp| { instance.read_modify_write_row(ctx, req, resp) }); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_GENERATE_INITIAL_CHANGE_STREAM_PARTITIONS, move |ctx, req, resp| { - instance.generate_initial_change_stream_partitions(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_server_streaming_handler(&METHOD_BIGTABLE_READ_CHANGE_STREAM, move |ctx, req, resp| { - instance.read_change_stream(ctx, req, resp) - }); builder.build() } diff --git a/googleapis-raw/src/bigtable/v2/data.rs b/googleapis-raw/src/bigtable/v2/data.rs index d7f0dca..1e79729 100644 --- a/googleapis-raw/src/bigtable/v2/data.rs +++ b/googleapis-raw/src/bigtable/v2/data.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,33 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/bigtable/v2/data.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Specifies the complete (requested) contents of a single row of a table. +/// Rows which exceed 256MiB in size cannot be read in full. +// @@protoc_insertion_point(message:google.bigtable.v2.Row) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Row { // message fields + /// The unique key which identifies this row within its table. This is the same + /// key that's used to identify the row in, for example, a MutateRowRequest. + /// May contain any non-empty byte string up to 4KiB in length. + // @@protoc_insertion_point(field:google.bigtable.v2.Row.key) pub key: ::std::vec::Vec, - pub families: ::protobuf::RepeatedField, + /// May be empty, but only if the entire row is empty. + /// The mutual ordering of column families is not specified. + // @@protoc_insertion_point(field:google.bigtable.v2.Row.families) + pub families: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.Row.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Row { @@ -44,80 +56,45 @@ impl Row { ::std::default::Default::default() } - // bytes key = 1; - - - pub fn get_key(&self) -> &[u8] { - &self.key - } - pub fn clear_key(&mut self) { - self.key.clear(); - } - - // Param is passed by value, moved - pub fn set_key(&mut self, v: ::std::vec::Vec) { - self.key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key(&mut self) -> &mut ::std::vec::Vec { - &mut self.key - } - - // Take field - pub fn take_key(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.key, ::std::vec::Vec::new()) - } - - // repeated .google.bigtable.v2.Family families = 2; - - - pub fn get_families(&self) -> &[Family] { - &self.families - } - pub fn clear_families(&mut self) { - self.families.clear(); - } - - // Param is passed by value, moved - pub fn set_families(&mut self, v: ::protobuf::RepeatedField) { - self.families = v; - } - - // Mutable pointer to the field. - pub fn mut_families(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.families - } - - // Take field - pub fn take_families(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.families, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "key", + |m: &Row| { &m.key }, + |m: &mut Row| { &mut m.key }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "families", + |m: &Row| { &m.families }, + |m: &mut Row| { &mut m.families }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Row", + fields, + oneofs, + ) } } impl ::protobuf::Message for Row { + const NAME: &'static str = "Row"; + fn is_initialized(&self) -> bool { - for v in &self.families { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.key)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.key = is.read_bytes()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.families)?; + 18 => { + self.families.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -126,119 +103,96 @@ impl ::protobuf::Message for Row { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.key.is_empty() { my_size += ::protobuf::rt::bytes_size(1, &self.key); } for value in &self.families { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.key.is_empty() { os.write_bytes(1, &self.key)?; } for v in &self.families { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Row { Row::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "key", - |m: &Row| { &m.key }, - |m: &mut Row| { &mut m.key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "families", - |m: &Row| { &m.families }, - |m: &mut Row| { &mut m.families }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Row", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.key.clear(); + self.families.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Row { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Row::new) + static instance: Row = Row { + key: ::std::vec::Vec::new(), + families: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Row { - fn clear(&mut self) { - self.key.clear(); - self.families.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Row { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Row").unwrap()).clone() } } -impl ::std::fmt::Debug for Row { +impl ::std::fmt::Display for Row { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Row { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies (some of) the contents of a single row/column family intersection +/// of a table. +// @@protoc_insertion_point(message:google.bigtable.v2.Family) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Family { // message fields + /// The unique key which identifies this family within its row. This is the + /// same key that's used to identify the family in, for example, a RowFilter + /// which sets its "family_name_regex_filter" field. + /// Must match `[-_.a-zA-Z0-9]+`, except that AggregatingRowProcessors may + /// produce cells in a sentinel family with an empty name. + /// Must be no greater than 64 characters in length. + // @@protoc_insertion_point(field:google.bigtable.v2.Family.name) pub name: ::std::string::String, - pub columns: ::protobuf::RepeatedField, + /// Must not be empty. Sorted in order of increasing "qualifier". + // @@protoc_insertion_point(field:google.bigtable.v2.Family.columns) + pub columns: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.Family.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Family { @@ -252,80 +206,45 @@ impl Family { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.bigtable.v2.Column columns = 2; - - - pub fn get_columns(&self) -> &[Column] { - &self.columns - } - pub fn clear_columns(&mut self) { - self.columns.clear(); - } - - // Param is passed by value, moved - pub fn set_columns(&mut self, v: ::protobuf::RepeatedField) { - self.columns = v; - } - - // Mutable pointer to the field. - pub fn mut_columns(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.columns - } - - // Take field - pub fn take_columns(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.columns, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Family| { &m.name }, + |m: &mut Family| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "columns", + |m: &Family| { &m.columns }, + |m: &mut Family| { &mut m.columns }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Family", + fields, + oneofs, + ) } } impl ::protobuf::Message for Family { + const NAME: &'static str = "Family"; + fn is_initialized(&self) -> bool { - for v in &self.columns { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.columns)?; + 18 => { + self.columns.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -334,119 +253,95 @@ impl ::protobuf::Message for Family { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } for value in &self.columns { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } for v in &self.columns { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Family { Family::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Family| { &m.name }, - |m: &mut Family| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "columns", - |m: &Family| { &m.columns }, - |m: &mut Family| { &mut m.columns }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Family", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.columns.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Family { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Family::new) + static instance: Family = Family { + name: ::std::string::String::new(), + columns: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Family { - fn clear(&mut self) { - self.name.clear(); - self.columns.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Family { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Family").unwrap()).clone() } } -impl ::std::fmt::Debug for Family { +impl ::std::fmt::Display for Family { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Family { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies (some of) the contents of a single row/column intersection of a +/// table. +// @@protoc_insertion_point(message:google.bigtable.v2.Column) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Column { // message fields + /// The unique key which identifies this column within its family. This is the + /// same key that's used to identify the column in, for example, a RowFilter + /// which sets its `column_qualifier_regex_filter` field. + /// May contain any byte string, including the empty string, up to 16kiB in + /// length. + // @@protoc_insertion_point(field:google.bigtable.v2.Column.qualifier) pub qualifier: ::std::vec::Vec, - pub cells: ::protobuf::RepeatedField, + /// Must not be empty. Sorted in order of decreasing "timestamp_micros". + // @@protoc_insertion_point(field:google.bigtable.v2.Column.cells) + pub cells: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.Column.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Column { @@ -460,80 +355,45 @@ impl Column { ::std::default::Default::default() } - // bytes qualifier = 1; - - - pub fn get_qualifier(&self) -> &[u8] { - &self.qualifier - } - pub fn clear_qualifier(&mut self) { - self.qualifier.clear(); - } - - // Param is passed by value, moved - pub fn set_qualifier(&mut self, v: ::std::vec::Vec) { - self.qualifier = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_qualifier(&mut self) -> &mut ::std::vec::Vec { - &mut self.qualifier - } - - // Take field - pub fn take_qualifier(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.qualifier, ::std::vec::Vec::new()) - } - - // repeated .google.bigtable.v2.Cell cells = 2; - - - pub fn get_cells(&self) -> &[Cell] { - &self.cells - } - pub fn clear_cells(&mut self) { - self.cells.clear(); - } - - // Param is passed by value, moved - pub fn set_cells(&mut self, v: ::protobuf::RepeatedField) { - self.cells = v; - } - - // Mutable pointer to the field. - pub fn mut_cells(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.cells - } - - // Take field - pub fn take_cells(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.cells, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "qualifier", + |m: &Column| { &m.qualifier }, + |m: &mut Column| { &mut m.qualifier }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "cells", + |m: &Column| { &m.cells }, + |m: &mut Column| { &mut m.cells }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Column", + fields, + oneofs, + ) } } impl ::protobuf::Message for Column { + const NAME: &'static str = "Column"; + fn is_initialized(&self) -> bool { - for v in &self.cells { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.qualifier)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.qualifier = is.read_bytes()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.cells)?; + 18 => { + self.cells.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -542,120 +402,100 @@ impl ::protobuf::Message for Column { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.qualifier.is_empty() { my_size += ::protobuf::rt::bytes_size(1, &self.qualifier); } for value in &self.cells { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.qualifier.is_empty() { os.write_bytes(1, &self.qualifier)?; } for v in &self.cells { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Column { Column::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "qualifier", - |m: &Column| { &m.qualifier }, - |m: &mut Column| { &mut m.qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cells", - |m: &Column| { &m.cells }, - |m: &mut Column| { &mut m.cells }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Column", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.qualifier.clear(); + self.cells.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Column { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Column::new) + static instance: Column = Column { + qualifier: ::std::vec::Vec::new(), + cells: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Column { - fn clear(&mut self) { - self.qualifier.clear(); - self.cells.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Column { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Column").unwrap()).clone() } } -impl ::std::fmt::Debug for Column { +impl ::std::fmt::Display for Column { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Column { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies (some of) the contents of a single row/column/timestamp of a table. +// @@protoc_insertion_point(message:google.bigtable.v2.Cell) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Cell { // message fields + /// The cell's stored timestamp, which also uniquely identifies it within + /// its column. + /// Values are always expressed in microseconds, but individual tables may set + /// a coarser granularity to further restrict the allowed values. For + /// example, a table which specifies millisecond granularity will only allow + /// values of `timestamp_micros` which are multiples of 1000. + // @@protoc_insertion_point(field:google.bigtable.v2.Cell.timestamp_micros) pub timestamp_micros: i64, + /// The value stored in the cell. + /// May contain any byte string, including the empty string, up to 100MiB in + /// length. + // @@protoc_insertion_point(field:google.bigtable.v2.Cell.value) pub value: ::std::vec::Vec, - pub labels: ::protobuf::RepeatedField<::std::string::String>, + /// Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter]. + // @@protoc_insertion_point(field:google.bigtable.v2.Cell.labels) + pub labels: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.Cell.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Cell { @@ -669,97 +509,53 @@ impl Cell { ::std::default::Default::default() } - // int64 timestamp_micros = 1; - - - pub fn get_timestamp_micros(&self) -> i64 { - self.timestamp_micros - } - pub fn clear_timestamp_micros(&mut self) { - self.timestamp_micros = 0; - } - - // Param is passed by value, moved - pub fn set_timestamp_micros(&mut self, v: i64) { - self.timestamp_micros = v; - } - - // bytes value = 2; - - - pub fn get_value(&self) -> &[u8] { - &self.value - } - pub fn clear_value(&mut self) { - self.value.clear(); - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: ::std::vec::Vec) { - self.value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value(&mut self) -> &mut ::std::vec::Vec { - &mut self.value - } - - // Take field - pub fn take_value(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.value, ::std::vec::Vec::new()) - } - - // repeated string labels = 3; - - - pub fn get_labels(&self) -> &[::std::string::String] { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.labels, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "timestamp_micros", + |m: &Cell| { &m.timestamp_micros }, + |m: &mut Cell| { &mut m.timestamp_micros }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value", + |m: &Cell| { &m.value }, + |m: &mut Cell| { &mut m.value }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "labels", + |m: &Cell| { &m.labels }, + |m: &mut Cell| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Cell", + fields, + oneofs, + ) } } impl ::protobuf::Message for Cell { + const NAME: &'static str = "Cell"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.timestamp_micros = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.timestamp_micros = is.read_int64()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; + 18 => { + self.value = is.read_bytes()?; }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.labels)?; + 26 => { + self.labels.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -768,10 +564,10 @@ impl ::protobuf::Message for Cell { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(1, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(1, self.timestamp_micros); } if !self.value.is_empty() { my_size += ::protobuf::rt::bytes_size(2, &self.value); @@ -779,12 +575,12 @@ impl ::protobuf::Message for Cell { for value in &self.labels { my_size += ::protobuf::rt::string_size(3, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.timestamp_micros != 0 { os.write_int64(1, self.timestamp_micros)?; } @@ -794,102 +590,67 @@ impl ::protobuf::Message for Cell { for v in &self.labels { os.write_string(3, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Cell { Cell::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "timestamp_micros", - |m: &Cell| { &m.timestamp_micros }, - |m: &mut Cell| { &mut m.timestamp_micros }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "value", - |m: &Cell| { &m.value }, - |m: &mut Cell| { &mut m.value }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Cell| { &m.labels }, - |m: &mut Cell| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Cell", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.timestamp_micros = 0; + self.value.clear(); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Cell { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Cell::new) + static instance: Cell = Cell { + timestamp_micros: 0, + value: ::std::vec::Vec::new(), + labels: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Cell { - fn clear(&mut self) { - self.timestamp_micros = 0; - self.value.clear(); - self.labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Cell { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Cell").unwrap()).clone() } } -impl ::std::fmt::Debug for Cell { +impl ::std::fmt::Display for Cell { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Cell { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies a contiguous range of rows. +// @@protoc_insertion_point(message:google.bigtable.v2.RowRange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct RowRange { // message oneof groups - pub start_key: ::std::option::Option, - pub end_key: ::std::option::Option, + pub start_key: ::std::option::Option, + pub end_key: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowRange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a RowRange { @@ -898,18 +659,6 @@ impl<'a> ::std::default::Default for &'a RowRange { } } -#[derive(Clone,PartialEq,Debug)] -pub enum RowRange_oneof_start_key { - start_key_closed(::std::vec::Vec), - start_key_open(::std::vec::Vec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RowRange_oneof_end_key { - end_key_open(::std::vec::Vec), - end_key_closed(::std::vec::Vec), -} - impl RowRange { pub fn new() -> RowRange { ::std::default::Default::default() @@ -917,37 +666,37 @@ impl RowRange { // bytes start_key_closed = 1; - - pub fn get_start_key_closed(&self) -> &[u8] { + pub fn start_key_closed(&self) -> &[u8] { match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(ref v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(ref v)) => v, _ => &[], } } + pub fn clear_start_key_closed(&mut self) { self.start_key = ::std::option::Option::None; } pub fn has_start_key_closed(&self) -> bool { match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(..)) => true, + ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_key_closed(&mut self, v: ::std::vec::Vec) { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(v)) + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(v)) } // Mutable pointer to the field. pub fn mut_start_key_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(_)) = self.start_key { + if let ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(_)) = self.start_key { } else { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(::std::vec::Vec::new())); + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(::std::vec::Vec::new())); } match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(ref mut v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(ref mut v)) => v, _ => panic!(), } } @@ -956,7 +705,7 @@ impl RowRange { pub fn take_start_key_closed(&mut self) -> ::std::vec::Vec { if self.has_start_key_closed() { match self.start_key.take() { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(v)) => v, _ => panic!(), } } else { @@ -966,37 +715,37 @@ impl RowRange { // bytes start_key_open = 2; - - pub fn get_start_key_open(&self) -> &[u8] { + pub fn start_key_open(&self) -> &[u8] { match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(ref v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(ref v)) => v, _ => &[], } } + pub fn clear_start_key_open(&mut self) { self.start_key = ::std::option::Option::None; } pub fn has_start_key_open(&self) -> bool { match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(..)) => true, + ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_key_open(&mut self, v: ::std::vec::Vec) { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(v)) + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(v)) } // Mutable pointer to the field. pub fn mut_start_key_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(_)) = self.start_key { + if let ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(_)) = self.start_key { } else { - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(::std::vec::Vec::new())); + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(::std::vec::Vec::new())); } match self.start_key { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(ref mut v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(ref mut v)) => v, _ => panic!(), } } @@ -1005,7 +754,7 @@ impl RowRange { pub fn take_start_key_open(&mut self) -> ::std::vec::Vec { if self.has_start_key_open() { match self.start_key.take() { - ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(v)) => v, + ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(v)) => v, _ => panic!(), } } else { @@ -1015,37 +764,37 @@ impl RowRange { // bytes end_key_open = 3; - - pub fn get_end_key_open(&self) -> &[u8] { + pub fn end_key_open(&self) -> &[u8] { match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(ref v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyOpen(ref v)) => v, _ => &[], } } + pub fn clear_end_key_open(&mut self) { self.end_key = ::std::option::Option::None; } pub fn has_end_key_open(&self) -> bool { match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(..)) => true, + ::std::option::Option::Some(row_range::End_key::EndKeyOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_key_open(&mut self, v: ::std::vec::Vec) { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(v)) + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyOpen(v)) } // Mutable pointer to the field. pub fn mut_end_key_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(_)) = self.end_key { + if let ::std::option::Option::Some(row_range::End_key::EndKeyOpen(_)) = self.end_key { } else { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(::std::vec::Vec::new())); + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyOpen(::std::vec::Vec::new())); } match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(ref mut v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyOpen(ref mut v)) => v, _ => panic!(), } } @@ -1054,7 +803,7 @@ impl RowRange { pub fn take_end_key_open(&mut self) -> ::std::vec::Vec { if self.has_end_key_open() { match self.end_key.take() { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyOpen(v)) => v, _ => panic!(), } } else { @@ -1064,37 +813,37 @@ impl RowRange { // bytes end_key_closed = 4; - - pub fn get_end_key_closed(&self) -> &[u8] { + pub fn end_key_closed(&self) -> &[u8] { match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(ref v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyClosed(ref v)) => v, _ => &[], } } + pub fn clear_end_key_closed(&mut self) { self.end_key = ::std::option::Option::None; } pub fn has_end_key_closed(&self) -> bool { match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(..)) => true, + ::std::option::Option::Some(row_range::End_key::EndKeyClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_key_closed(&mut self, v: ::std::vec::Vec) { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(v)) + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyClosed(v)) } // Mutable pointer to the field. pub fn mut_end_key_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(_)) = self.end_key { + if let ::std::option::Option::Some(row_range::End_key::EndKeyClosed(_)) = self.end_key { } else { - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(::std::vec::Vec::new())); + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyClosed(::std::vec::Vec::new())); } match self.end_key { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(ref mut v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyClosed(ref mut v)) => v, _ => panic!(), } } @@ -1103,50 +852,75 @@ impl RowRange { pub fn take_end_key_closed(&mut self) -> ::std::vec::Vec { if self.has_end_key_closed() { match self.end_key.take() { - ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(v)) => v, + ::std::option::Option::Some(row_range::End_key::EndKeyClosed(v)) => v, _ => panic!(), } } else { ::std::vec::Vec::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(2); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_key_closed", + RowRange::has_start_key_closed, + RowRange::start_key_closed, + RowRange::set_start_key_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_key_open", + RowRange::has_start_key_open, + RowRange::start_key_open, + RowRange::set_start_key_open, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_key_open", + RowRange::has_end_key_open, + RowRange::end_key_open, + RowRange::set_end_key_open, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_key_closed", + RowRange::has_end_key_closed, + RowRange::end_key_closed, + RowRange::set_end_key_closed, + )); + oneofs.push(row_range::Start_key::generated_oneof_descriptor_data()); + oneofs.push(row_range::End_key::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowRange", + fields, + oneofs, + ) + } } impl ::protobuf::Message for RowRange { + const NAME: &'static str = "RowRange"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_closed(is.read_bytes()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_key = ::std::option::Option::Some(RowRange_oneof_start_key::start_key_open(is.read_bytes()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_open(is.read_bytes()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_key = ::std::option::Option::Some(RowRange_oneof_end_key::end_key_closed(is.read_bytes()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyClosed(is.read_bytes()?)); + }, + 18 => { + self.start_key = ::std::option::Option::Some(row_range::Start_key::StartKeyOpen(is.read_bytes()?)); + }, + 26 => { + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyOpen(is.read_bytes()?)); + }, + 34 => { + self.end_key = ::std::option::Option::Some(row_range::End_key::EndKeyClosed(is.read_bytes()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1155,242 +929,227 @@ impl ::protobuf::Message for RowRange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.start_key { match v { - &RowRange_oneof_start_key::start_key_closed(ref v) => { + &row_range::Start_key::StartKeyClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(1, &v); }, - &RowRange_oneof_start_key::start_key_open(ref v) => { + &row_range::Start_key::StartKeyOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(2, &v); }, }; } if let ::std::option::Option::Some(ref v) = self.end_key { match v { - &RowRange_oneof_end_key::end_key_open(ref v) => { + &row_range::End_key::EndKeyOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(3, &v); }, - &RowRange_oneof_end_key::end_key_closed(ref v) => { + &row_range::End_key::EndKeyClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(4, &v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.start_key { match v { - &RowRange_oneof_start_key::start_key_closed(ref v) => { + &row_range::Start_key::StartKeyClosed(ref v) => { os.write_bytes(1, v)?; }, - &RowRange_oneof_start_key::start_key_open(ref v) => { + &row_range::Start_key::StartKeyOpen(ref v) => { os.write_bytes(2, v)?; }, }; } if let ::std::option::Option::Some(ref v) = self.end_key { match v { - &RowRange_oneof_end_key::end_key_open(ref v) => { + &row_range::End_key::EndKeyOpen(ref v) => { os.write_bytes(3, v)?; }, - &RowRange_oneof_end_key::end_key_closed(ref v) => { + &row_range::End_key::EndKeyClosed(ref v) => { os.write_bytes(4, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> RowRange { + RowRange::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RowRange { - RowRange::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_key_closed", - RowRange::has_start_key_closed, - RowRange::get_start_key_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_key_open", - RowRange::has_start_key_open, - RowRange::get_start_key_open, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_key_open", - RowRange::has_end_key_open, - RowRange::get_end_key_open, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_key_closed", - RowRange::has_end_key_closed, - RowRange::get_end_key_closed, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowRange", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.start_key = ::std::option::Option::None; + self.start_key = ::std::option::Option::None; + self.end_key = ::std::option::Option::None; + self.end_key = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static RowRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowRange::new) + static instance: RowRange = RowRange { + start_key: ::std::option::Option::None, + end_key: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RowRange { - fn clear(&mut self) { - self.start_key = ::std::option::Option::None; - self.start_key = ::std::option::Option::None; - self.end_key = ::std::option::Option::None; - self.end_key = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for RowRange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RowRange").unwrap()).clone() } } -impl ::std::fmt::Debug for RowRange { +impl ::std::fmt::Display for RowRange { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for RowRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RowSet { - // message fields - pub row_keys: ::protobuf::RepeatedField<::std::vec::Vec>, - pub row_ranges: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `RowRange` +pub mod row_range { -impl<'a> ::std::default::Default for &'a RowSet { - fn default() -> &'a RowSet { - ::default_instance() + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.RowRange.start_key) + pub enum Start_key { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowRange.start_key_closed) + StartKeyClosed(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowRange.start_key_open) + StartKeyOpen(::std::vec::Vec), } -} -impl RowSet { - pub fn new() -> RowSet { - ::std::default::Default::default() + impl ::protobuf::Oneof for Start_key { } - // repeated bytes row_keys = 1; - - - pub fn get_row_keys(&self) -> &[::std::vec::Vec] { - &self.row_keys - } - pub fn clear_row_keys(&mut self) { - self.row_keys.clear(); + impl ::protobuf::OneofFull for Start_key { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("start_key").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_row_keys(&mut self, v: ::protobuf::RepeatedField<::std::vec::Vec>) { - self.row_keys = v; + impl Start_key { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("start_key") + } } - // Mutable pointer to the field. - pub fn mut_row_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::vec::Vec> { - &mut self.row_keys + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.RowRange.end_key) + pub enum End_key { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowRange.end_key_open) + EndKeyOpen(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowRange.end_key_closed) + EndKeyClosed(::std::vec::Vec), } - // Take field - pub fn take_row_keys(&mut self) -> ::protobuf::RepeatedField<::std::vec::Vec> { - ::std::mem::replace(&mut self.row_keys, ::protobuf::RepeatedField::new()) + impl ::protobuf::Oneof for End_key { } - // repeated .google.bigtable.v2.RowRange row_ranges = 2; - - - pub fn get_row_ranges(&self) -> &[RowRange] { - &self.row_ranges + impl ::protobuf::OneofFull for End_key { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("end_key").unwrap()).clone() + } } - pub fn clear_row_ranges(&mut self) { - self.row_ranges.clear(); + + impl End_key { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("end_key") + } } +} - // Param is passed by value, moved - pub fn set_row_ranges(&mut self, v: ::protobuf::RepeatedField) { - self.row_ranges = v; +/// Specifies a non-contiguous set of rows. +// @@protoc_insertion_point(message:google.bigtable.v2.RowSet) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct RowSet { + // message fields + /// Single rows included in the set. + // @@protoc_insertion_point(field:google.bigtable.v2.RowSet.row_keys) + pub row_keys: ::std::vec::Vec<::std::vec::Vec>, + /// Contiguous row ranges included in the set. + // @@protoc_insertion_point(field:google.bigtable.v2.RowSet.row_ranges) + pub row_ranges: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowSet.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a RowSet { + fn default() -> &'a RowSet { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_row_ranges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.row_ranges +impl RowSet { + pub fn new() -> RowSet { + ::std::default::Default::default() } - // Take field - pub fn take_row_ranges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.row_ranges, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "row_keys", + |m: &RowSet| { &m.row_keys }, + |m: &mut RowSet| { &mut m.row_keys }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "row_ranges", + |m: &RowSet| { &m.row_ranges }, + |m: &mut RowSet| { &mut m.row_ranges }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowSet", + fields, + oneofs, + ) } } impl ::protobuf::Message for RowSet { + const NAME: &'static str = "RowSet"; + fn is_initialized(&self) -> bool { - for v in &self.row_ranges { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_bytes_into(wire_type, is, &mut self.row_keys)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.row_keys.push(is.read_bytes()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.row_ranges)?; + 18 => { + self.row_ranges.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1399,121 +1158,93 @@ impl ::protobuf::Message for RowSet { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.row_keys { my_size += ::protobuf::rt::bytes_size(1, &value); }; for value in &self.row_ranges { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.row_keys { os.write_bytes(1, &v)?; }; for v in &self.row_ranges { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> RowSet { RowSet::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "row_keys", - |m: &RowSet| { &m.row_keys }, - |m: &mut RowSet| { &mut m.row_keys }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "row_ranges", - |m: &RowSet| { &m.row_ranges }, - |m: &mut RowSet| { &mut m.row_ranges }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowSet", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.row_keys.clear(); + self.row_ranges.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static RowSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowSet::new) + static instance: RowSet = RowSet { + row_keys: ::std::vec::Vec::new(), + row_ranges: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RowSet { - fn clear(&mut self) { - self.row_keys.clear(); - self.row_ranges.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for RowSet { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RowSet").unwrap()).clone() } } -impl ::std::fmt::Debug for RowSet { +impl ::std::fmt::Display for RowSet { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for RowSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies a contiguous range of columns within a single column family. +/// The range spans from <column_family>:<start_qualifier> to +/// <column_family>:<end_qualifier>, where both bounds can be either +/// inclusive or exclusive. +// @@protoc_insertion_point(message:google.bigtable.v2.ColumnRange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ColumnRange { // message fields + /// The name of the column family within which this range falls. + // @@protoc_insertion_point(field:google.bigtable.v2.ColumnRange.family_name) pub family_name: ::std::string::String, // message oneof groups - pub start_qualifier: ::std::option::Option, - pub end_qualifier: ::std::option::Option, + pub start_qualifier: ::std::option::Option, + pub end_qualifier: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ColumnRange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ColumnRange { @@ -1522,82 +1253,44 @@ impl<'a> ::std::default::Default for &'a ColumnRange { } } -#[derive(Clone,PartialEq,Debug)] -pub enum ColumnRange_oneof_start_qualifier { - start_qualifier_closed(::std::vec::Vec), - start_qualifier_open(::std::vec::Vec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ColumnRange_oneof_end_qualifier { - end_qualifier_closed(::std::vec::Vec), - end_qualifier_open(::std::vec::Vec), -} - impl ColumnRange { pub fn new() -> ColumnRange { ::std::default::Default::default() } - // string family_name = 1; - - - pub fn get_family_name(&self) -> &str { - &self.family_name - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); - } - - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::std::string::String) { - self.family_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::std::string::String { - &mut self.family_name - } - - // Take field - pub fn take_family_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.family_name, ::std::string::String::new()) - } - // bytes start_qualifier_closed = 2; - - pub fn get_start_qualifier_closed(&self) -> &[u8] { + pub fn start_qualifier_closed(&self) -> &[u8] { match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(ref v)) => v, _ => &[], } } + pub fn clear_start_qualifier_closed(&mut self) { self.start_qualifier = ::std::option::Option::None; } pub fn has_start_qualifier_closed(&self) -> bool { match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(..)) => true, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_qualifier_closed(&mut self, v: ::std::vec::Vec) { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(v)) + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(v)) } // Mutable pointer to the field. pub fn mut_start_qualifier_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(_)) = self.start_qualifier { + if let ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(_)) = self.start_qualifier { } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(::std::vec::Vec::new())); + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(::std::vec::Vec::new())); } match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref mut v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(ref mut v)) => v, _ => panic!(), } } @@ -1606,7 +1299,7 @@ impl ColumnRange { pub fn take_start_qualifier_closed(&mut self) -> ::std::vec::Vec { if self.has_start_qualifier_closed() { match self.start_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(v)) => v, _ => panic!(), } } else { @@ -1616,37 +1309,37 @@ impl ColumnRange { // bytes start_qualifier_open = 3; - - pub fn get_start_qualifier_open(&self) -> &[u8] { + pub fn start_qualifier_open(&self) -> &[u8] { match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(ref v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(ref v)) => v, _ => &[], } } + pub fn clear_start_qualifier_open(&mut self) { self.start_qualifier = ::std::option::Option::None; } pub fn has_start_qualifier_open(&self) -> bool { match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(..)) => true, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_qualifier_open(&mut self, v: ::std::vec::Vec) { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(v)) + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(v)) } // Mutable pointer to the field. pub fn mut_start_qualifier_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(_)) = self.start_qualifier { + if let ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(_)) = self.start_qualifier { } else { - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(::std::vec::Vec::new())); + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(::std::vec::Vec::new())); } match self.start_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(ref mut v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(ref mut v)) => v, _ => panic!(), } } @@ -1655,7 +1348,7 @@ impl ColumnRange { pub fn take_start_qualifier_open(&mut self) -> ::std::vec::Vec { if self.has_start_qualifier_open() { match self.start_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(v)) => v, + ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(v)) => v, _ => panic!(), } } else { @@ -1665,37 +1358,37 @@ impl ColumnRange { // bytes end_qualifier_closed = 4; - - pub fn get_end_qualifier_closed(&self) -> &[u8] { + pub fn end_qualifier_closed(&self) -> &[u8] { match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(ref v)) => v, _ => &[], } } + pub fn clear_end_qualifier_closed(&mut self) { self.end_qualifier = ::std::option::Option::None; } pub fn has_end_qualifier_closed(&self) -> bool { match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(..)) => true, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_qualifier_closed(&mut self, v: ::std::vec::Vec) { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(v)) + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(v)) } // Mutable pointer to the field. pub fn mut_end_qualifier_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(_)) = self.end_qualifier { + if let ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(_)) = self.end_qualifier { } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(::std::vec::Vec::new())); + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(::std::vec::Vec::new())); } match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref mut v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(ref mut v)) => v, _ => panic!(), } } @@ -1704,7 +1397,7 @@ impl ColumnRange { pub fn take_end_qualifier_closed(&mut self) -> ::std::vec::Vec { if self.has_end_qualifier_closed() { match self.end_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(v)) => v, _ => panic!(), } } else { @@ -1714,37 +1407,37 @@ impl ColumnRange { // bytes end_qualifier_open = 5; - - pub fn get_end_qualifier_open(&self) -> &[u8] { + pub fn end_qualifier_open(&self) -> &[u8] { match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(ref v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(ref v)) => v, _ => &[], } } + pub fn clear_end_qualifier_open(&mut self) { self.end_qualifier = ::std::option::Option::None; } pub fn has_end_qualifier_open(&self) -> bool { match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(..)) => true, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_qualifier_open(&mut self, v: ::std::vec::Vec) { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(v)) + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(v)) } // Mutable pointer to the field. pub fn mut_end_qualifier_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(_)) = self.end_qualifier { + if let ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(_)) = self.end_qualifier { } else { - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(::std::vec::Vec::new())); + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(::std::vec::Vec::new())); } match self.end_qualifier { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(ref mut v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(ref mut v)) => v, _ => panic!(), } } @@ -1753,53 +1446,83 @@ impl ColumnRange { pub fn take_end_qualifier_open(&mut self) -> ::std::vec::Vec { if self.has_end_qualifier_open() { match self.end_qualifier.take() { - ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(v)) => v, + ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(v)) => v, _ => panic!(), } } else { ::std::vec::Vec::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(2); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "family_name", + |m: &ColumnRange| { &m.family_name }, + |m: &mut ColumnRange| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_qualifier_closed", + ColumnRange::has_start_qualifier_closed, + ColumnRange::start_qualifier_closed, + ColumnRange::set_start_qualifier_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_qualifier_open", + ColumnRange::has_start_qualifier_open, + ColumnRange::start_qualifier_open, + ColumnRange::set_start_qualifier_open, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_qualifier_closed", + ColumnRange::has_end_qualifier_closed, + ColumnRange::end_qualifier_closed, + ColumnRange::set_end_qualifier_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_qualifier_open", + ColumnRange::has_end_qualifier_open, + ColumnRange::end_qualifier_open, + ColumnRange::set_end_qualifier_open, + )); + oneofs.push(column_range::Start_qualifier::generated_oneof_descriptor_data()); + oneofs.push(column_range::End_qualifier::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ColumnRange", + fields, + oneofs, + ) + } } impl ::protobuf::Message for ColumnRange { + const NAME: &'static str = "ColumnRange"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.family_name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_closed(is.read_bytes()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_qualifier = ::std::option::Option::Some(ColumnRange_oneof_start_qualifier::start_qualifier_open(is.read_bytes()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_closed(is.read_bytes()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_qualifier = ::std::option::Option::Some(ColumnRange_oneof_end_qualifier::end_qualifier_open(is.read_bytes()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.family_name = is.read_string()?; + }, + 18 => { + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierClosed(is.read_bytes()?)); + }, + 26 => { + self.start_qualifier = ::std::option::Option::Some(column_range::Start_qualifier::StartQualifierOpen(is.read_bytes()?)); + }, + 34 => { + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierClosed(is.read_bytes()?)); + }, + 42 => { + self.end_qualifier = ::std::option::Option::Some(column_range::End_qualifier::EndQualifierOpen(is.read_bytes()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1808,168 +1531,183 @@ impl ::protobuf::Message for ColumnRange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.family_name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.family_name); } if let ::std::option::Option::Some(ref v) = self.start_qualifier { match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { + &column_range::Start_qualifier::StartQualifierClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(2, &v); }, - &ColumnRange_oneof_start_qualifier::start_qualifier_open(ref v) => { + &column_range::Start_qualifier::StartQualifierOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(3, &v); }, }; } if let ::std::option::Option::Some(ref v) = self.end_qualifier { match v { - &ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref v) => { + &column_range::End_qualifier::EndQualifierClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(4, &v); }, - &ColumnRange_oneof_end_qualifier::end_qualifier_open(ref v) => { + &column_range::End_qualifier::EndQualifierOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(5, &v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.family_name.is_empty() { os.write_string(1, &self.family_name)?; } if let ::std::option::Option::Some(ref v) = self.start_qualifier { match v { - &ColumnRange_oneof_start_qualifier::start_qualifier_closed(ref v) => { + &column_range::Start_qualifier::StartQualifierClosed(ref v) => { os.write_bytes(2, v)?; }, - &ColumnRange_oneof_start_qualifier::start_qualifier_open(ref v) => { + &column_range::Start_qualifier::StartQualifierOpen(ref v) => { os.write_bytes(3, v)?; }, }; } if let ::std::option::Option::Some(ref v) = self.end_qualifier { match v { - &ColumnRange_oneof_end_qualifier::end_qualifier_closed(ref v) => { + &column_range::End_qualifier::EndQualifierClosed(ref v) => { os.write_bytes(4, v)?; }, - &ColumnRange_oneof_end_qualifier::end_qualifier_open(ref v) => { + &column_range::End_qualifier::EndQualifierOpen(ref v) => { os.write_bytes(5, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ColumnRange { ColumnRange::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "family_name", - |m: &ColumnRange| { &m.family_name }, - |m: &mut ColumnRange| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_qualifier_closed", - ColumnRange::has_start_qualifier_closed, - ColumnRange::get_start_qualifier_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_qualifier_open", - ColumnRange::has_start_qualifier_open, - ColumnRange::get_start_qualifier_open, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_qualifier_closed", - ColumnRange::has_end_qualifier_closed, - ColumnRange::get_end_qualifier_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_qualifier_open", - ColumnRange::has_end_qualifier_open, - ColumnRange::get_end_qualifier_open, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ColumnRange", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ColumnRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ColumnRange::new) - } -} - -impl ::protobuf::Clear for ColumnRange { fn clear(&mut self) { self.family_name.clear(); self.start_qualifier = ::std::option::Option::None; self.start_qualifier = ::std::option::Option::None; self.end_qualifier = ::std::option::Option::None; self.end_qualifier = ::std::option::Option::None; - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ColumnRange { + static instance: ColumnRange = ColumnRange { + family_name: ::std::string::String::new(), + start_qualifier: ::std::option::Option::None, + end_qualifier: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for ColumnRange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ColumnRange").unwrap()).clone() } } -impl ::std::fmt::Debug for ColumnRange { +impl ::std::fmt::Display for ColumnRange { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ColumnRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ColumnRange` +pub mod column_range { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ColumnRange.start_qualifier) + pub enum Start_qualifier { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ColumnRange.start_qualifier_closed) + StartQualifierClosed(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ColumnRange.start_qualifier_open) + StartQualifierOpen(::std::vec::Vec), + } + + impl ::protobuf::Oneof for Start_qualifier { + } + + impl ::protobuf::OneofFull for Start_qualifier { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("start_qualifier").unwrap()).clone() + } + } + + impl Start_qualifier { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("start_qualifier") + } + } + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ColumnRange.end_qualifier) + pub enum End_qualifier { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ColumnRange.end_qualifier_closed) + EndQualifierClosed(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ColumnRange.end_qualifier_open) + EndQualifierOpen(::std::vec::Vec), + } + + impl ::protobuf::Oneof for End_qualifier { + } + + impl ::protobuf::OneofFull for End_qualifier { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("end_qualifier").unwrap()).clone() + } + } + + impl End_qualifier { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("end_qualifier") + } } } -#[derive(PartialEq,Clone,Default)] +/// Specified a contiguous range of microsecond timestamps. +// @@protoc_insertion_point(message:google.bigtable.v2.TimestampRange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TimestampRange { // message fields + /// Inclusive lower bound. If left empty, interpreted as 0. + // @@protoc_insertion_point(field:google.bigtable.v2.TimestampRange.start_timestamp_micros) pub start_timestamp_micros: i64, + /// Exclusive upper bound. If left empty, interpreted as infinity. + // @@protoc_insertion_point(field:google.bigtable.v2.TimestampRange.end_timestamp_micros) pub end_timestamp_micros: i64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.TimestampRange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TimestampRange { @@ -1983,62 +1721,45 @@ impl TimestampRange { ::std::default::Default::default() } - // int64 start_timestamp_micros = 1; - - - pub fn get_start_timestamp_micros(&self) -> i64 { - self.start_timestamp_micros - } - pub fn clear_start_timestamp_micros(&mut self) { - self.start_timestamp_micros = 0; - } - - // Param is passed by value, moved - pub fn set_start_timestamp_micros(&mut self, v: i64) { - self.start_timestamp_micros = v; - } - - // int64 end_timestamp_micros = 2; - - - pub fn get_end_timestamp_micros(&self) -> i64 { - self.end_timestamp_micros - } - pub fn clear_end_timestamp_micros(&mut self) { - self.end_timestamp_micros = 0; - } - - // Param is passed by value, moved - pub fn set_end_timestamp_micros(&mut self, v: i64) { - self.end_timestamp_micros = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "start_timestamp_micros", + |m: &TimestampRange| { &m.start_timestamp_micros }, + |m: &mut TimestampRange| { &mut m.start_timestamp_micros }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "end_timestamp_micros", + |m: &TimestampRange| { &m.end_timestamp_micros }, + |m: &mut TimestampRange| { &mut m.end_timestamp_micros }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TimestampRange", + fields, + oneofs, + ) } } impl ::protobuf::Message for TimestampRange { + const NAME: &'static str = "TimestampRange"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.start_timestamp_micros = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.start_timestamp_micros = is.read_int64()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.end_timestamp_micros = tmp; + 16 => { + self.end_timestamp_micros = is.read_int64()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2047,116 +1768,85 @@ impl ::protobuf::Message for TimestampRange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.start_timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(1, self.start_timestamp_micros, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(1, self.start_timestamp_micros); } if self.end_timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(2, self.end_timestamp_micros, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(2, self.end_timestamp_micros); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.start_timestamp_micros != 0 { os.write_int64(1, self.start_timestamp_micros)?; } if self.end_timestamp_micros != 0 { os.write_int64(2, self.end_timestamp_micros)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TimestampRange { TimestampRange::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "start_timestamp_micros", - |m: &TimestampRange| { &m.start_timestamp_micros }, - |m: &mut TimestampRange| { &mut m.start_timestamp_micros }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "end_timestamp_micros", - |m: &TimestampRange| { &m.end_timestamp_micros }, - |m: &mut TimestampRange| { &mut m.end_timestamp_micros }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TimestampRange", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.start_timestamp_micros = 0; + self.end_timestamp_micros = 0; + self.special_fields.clear(); } fn default_instance() -> &'static TimestampRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimestampRange::new) + static instance: TimestampRange = TimestampRange { + start_timestamp_micros: 0, + end_timestamp_micros: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TimestampRange { - fn clear(&mut self) { - self.start_timestamp_micros = 0; - self.end_timestamp_micros = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TimestampRange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TimestampRange").unwrap()).clone() } } -impl ::std::fmt::Debug for TimestampRange { +impl ::std::fmt::Display for TimestampRange { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TimestampRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Specifies a contiguous range of raw byte values. +// @@protoc_insertion_point(message:google.bigtable.v2.ValueRange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ValueRange { // message oneof groups - pub start_value: ::std::option::Option, - pub end_value: ::std::option::Option, + pub start_value: ::std::option::Option, + pub end_value: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ValueRange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ValueRange { @@ -2165,18 +1855,6 @@ impl<'a> ::std::default::Default for &'a ValueRange { } } -#[derive(Clone,PartialEq,Debug)] -pub enum ValueRange_oneof_start_value { - start_value_closed(::std::vec::Vec), - start_value_open(::std::vec::Vec), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ValueRange_oneof_end_value { - end_value_closed(::std::vec::Vec), - end_value_open(::std::vec::Vec), -} - impl ValueRange { pub fn new() -> ValueRange { ::std::default::Default::default() @@ -2184,37 +1862,37 @@ impl ValueRange { // bytes start_value_closed = 1; - - pub fn get_start_value_closed(&self) -> &[u8] { + pub fn start_value_closed(&self) -> &[u8] { match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(ref v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueClosed(ref v)) => v, _ => &[], } } + pub fn clear_start_value_closed(&mut self) { self.start_value = ::std::option::Option::None; } pub fn has_start_value_closed(&self) -> bool { match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(..)) => true, + ::std::option::Option::Some(value_range::Start_value::StartValueClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_value_closed(&mut self, v: ::std::vec::Vec) { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(v)) + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueClosed(v)) } // Mutable pointer to the field. pub fn mut_start_value_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(_)) = self.start_value { + if let ::std::option::Option::Some(value_range::Start_value::StartValueClosed(_)) = self.start_value { } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(::std::vec::Vec::new())); + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueClosed(::std::vec::Vec::new())); } match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(ref mut v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueClosed(ref mut v)) => v, _ => panic!(), } } @@ -2223,7 +1901,7 @@ impl ValueRange { pub fn take_start_value_closed(&mut self) -> ::std::vec::Vec { if self.has_start_value_closed() { match self.start_value.take() { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueClosed(v)) => v, _ => panic!(), } } else { @@ -2233,37 +1911,37 @@ impl ValueRange { // bytes start_value_open = 2; - - pub fn get_start_value_open(&self) -> &[u8] { + pub fn start_value_open(&self) -> &[u8] { match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(ref v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueOpen(ref v)) => v, _ => &[], } } + pub fn clear_start_value_open(&mut self) { self.start_value = ::std::option::Option::None; } pub fn has_start_value_open(&self) -> bool { match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(..)) => true, + ::std::option::Option::Some(value_range::Start_value::StartValueOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_start_value_open(&mut self, v: ::std::vec::Vec) { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(v)) + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueOpen(v)) } // Mutable pointer to the field. pub fn mut_start_value_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(_)) = self.start_value { + if let ::std::option::Option::Some(value_range::Start_value::StartValueOpen(_)) = self.start_value { } else { - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(::std::vec::Vec::new())); + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueOpen(::std::vec::Vec::new())); } match self.start_value { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(ref mut v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueOpen(ref mut v)) => v, _ => panic!(), } } @@ -2272,7 +1950,7 @@ impl ValueRange { pub fn take_start_value_open(&mut self) -> ::std::vec::Vec { if self.has_start_value_open() { match self.start_value.take() { - ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(v)) => v, + ::std::option::Option::Some(value_range::Start_value::StartValueOpen(v)) => v, _ => panic!(), } } else { @@ -2282,37 +1960,37 @@ impl ValueRange { // bytes end_value_closed = 3; - - pub fn get_end_value_closed(&self) -> &[u8] { + pub fn end_value_closed(&self) -> &[u8] { match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(ref v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueClosed(ref v)) => v, _ => &[], } } + pub fn clear_end_value_closed(&mut self) { self.end_value = ::std::option::Option::None; } pub fn has_end_value_closed(&self) -> bool { match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(..)) => true, + ::std::option::Option::Some(value_range::End_value::EndValueClosed(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_value_closed(&mut self, v: ::std::vec::Vec) { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(v)) + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueClosed(v)) } // Mutable pointer to the field. pub fn mut_end_value_closed(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(_)) = self.end_value { + if let ::std::option::Option::Some(value_range::End_value::EndValueClosed(_)) = self.end_value { } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(::std::vec::Vec::new())); + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueClosed(::std::vec::Vec::new())); } match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(ref mut v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueClosed(ref mut v)) => v, _ => panic!(), } } @@ -2321,7 +1999,7 @@ impl ValueRange { pub fn take_end_value_closed(&mut self) -> ::std::vec::Vec { if self.has_end_value_closed() { match self.end_value.take() { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueClosed(v)) => v, _ => panic!(), } } else { @@ -2331,37 +2009,37 @@ impl ValueRange { // bytes end_value_open = 4; - - pub fn get_end_value_open(&self) -> &[u8] { + pub fn end_value_open(&self) -> &[u8] { match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(ref v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueOpen(ref v)) => v, _ => &[], } } + pub fn clear_end_value_open(&mut self) { self.end_value = ::std::option::Option::None; } pub fn has_end_value_open(&self) -> bool { match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(..)) => true, + ::std::option::Option::Some(value_range::End_value::EndValueOpen(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_end_value_open(&mut self, v: ::std::vec::Vec) { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(v)) + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueOpen(v)) } // Mutable pointer to the field. pub fn mut_end_value_open(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(_)) = self.end_value { + if let ::std::option::Option::Some(value_range::End_value::EndValueOpen(_)) = self.end_value { } else { - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(::std::vec::Vec::new())); + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueOpen(::std::vec::Vec::new())); } match self.end_value { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(ref mut v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueOpen(ref mut v)) => v, _ => panic!(), } } @@ -2370,50 +2048,75 @@ impl ValueRange { pub fn take_end_value_open(&mut self) -> ::std::vec::Vec { if self.has_end_value_open() { match self.end_value.take() { - ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(v)) => v, + ::std::option::Option::Some(value_range::End_value::EndValueOpen(v)) => v, _ => panic!(), } } else { ::std::vec::Vec::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(2); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_value_closed", + ValueRange::has_start_value_closed, + ValueRange::start_value_closed, + ValueRange::set_start_value_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "start_value_open", + ValueRange::has_start_value_open, + ValueRange::start_value_open, + ValueRange::set_start_value_open, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_value_closed", + ValueRange::has_end_value_closed, + ValueRange::end_value_closed, + ValueRange::set_end_value_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "end_value_open", + ValueRange::has_end_value_open, + ValueRange::end_value_open, + ValueRange::set_end_value_open, + )); + oneofs.push(value_range::Start_value::generated_oneof_descriptor_data()); + oneofs.push(value_range::End_value::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ValueRange", + fields, + oneofs, + ) + } } impl ::protobuf::Message for ValueRange { + const NAME: &'static str = "ValueRange"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_closed(is.read_bytes()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_value = ::std::option::Option::Some(ValueRange_oneof_start_value::start_value_open(is.read_bytes()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_closed(is.read_bytes()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_value = ::std::option::Option::Some(ValueRange_oneof_end_value::end_value_open(is.read_bytes()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueClosed(is.read_bytes()?)); + }, + 18 => { + self.start_value = ::std::option::Option::Some(value_range::Start_value::StartValueOpen(is.read_bytes()?)); + }, + 26 => { + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueClosed(is.read_bytes()?)); + }, + 34 => { + self.end_value = ::std::option::Option::Some(value_range::End_value::EndValueOpen(is.read_bytes()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2422,155 +2125,202 @@ impl ::protobuf::Message for ValueRange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.start_value { match v { - &ValueRange_oneof_start_value::start_value_closed(ref v) => { + &value_range::Start_value::StartValueClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(1, &v); }, - &ValueRange_oneof_start_value::start_value_open(ref v) => { + &value_range::Start_value::StartValueOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(2, &v); }, }; } if let ::std::option::Option::Some(ref v) = self.end_value { match v { - &ValueRange_oneof_end_value::end_value_closed(ref v) => { + &value_range::End_value::EndValueClosed(ref v) => { my_size += ::protobuf::rt::bytes_size(3, &v); }, - &ValueRange_oneof_end_value::end_value_open(ref v) => { + &value_range::End_value::EndValueOpen(ref v) => { my_size += ::protobuf::rt::bytes_size(4, &v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.start_value { match v { - &ValueRange_oneof_start_value::start_value_closed(ref v) => { + &value_range::Start_value::StartValueClosed(ref v) => { os.write_bytes(1, v)?; }, - &ValueRange_oneof_start_value::start_value_open(ref v) => { + &value_range::Start_value::StartValueOpen(ref v) => { os.write_bytes(2, v)?; }, }; } if let ::std::option::Option::Some(ref v) = self.end_value { match v { - &ValueRange_oneof_end_value::end_value_closed(ref v) => { + &value_range::End_value::EndValueClosed(ref v) => { os.write_bytes(3, v)?; }, - &ValueRange_oneof_end_value::end_value_open(ref v) => { + &value_range::End_value::EndValueOpen(ref v) => { os.write_bytes(4, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> ValueRange { + ValueRange::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) + fn clear(&mut self) { + self.start_value = ::std::option::Option::None; + self.start_value = ::std::option::Option::None; + self.end_value = ::std::option::Option::None; + self.end_value = ::std::option::Option::None; + self.special_fields.clear(); } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + + fn default_instance() -> &'static ValueRange { + static instance: ValueRange = ValueRange { + start_value: ::std::option::Option::None, + end_value: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() +impl ::protobuf::MessageFull for ValueRange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ValueRange").unwrap()).clone() } +} - fn new() -> ValueRange { - ValueRange::new() +impl ::std::fmt::Display for ValueRange { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_value_closed", - ValueRange::has_start_value_closed, - ValueRange::get_start_value_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "start_value_open", - ValueRange::has_start_value_open, - ValueRange::get_start_value_open, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_value_closed", - ValueRange::has_end_value_closed, - ValueRange::get_end_value_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "end_value_open", - ValueRange::has_end_value_open, - ValueRange::get_end_value_open, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValueRange", - fields, - file_descriptor_proto() - ) - }) +impl ::protobuf::reflect::ProtobufValue for ValueRange { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ValueRange` +pub mod value_range { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ValueRange.start_value) + pub enum Start_value { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ValueRange.start_value_closed) + StartValueClosed(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ValueRange.start_value_open) + StartValueOpen(::std::vec::Vec), } - fn default_instance() -> &'static ValueRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValueRange::new) + impl ::protobuf::Oneof for Start_value { } -} -impl ::protobuf::Clear for ValueRange { - fn clear(&mut self) { - self.start_value = ::std::option::Option::None; - self.start_value = ::std::option::Option::None; - self.end_value = ::std::option::Option::None; - self.end_value = ::std::option::Option::None; - self.unknown_fields.clear(); + impl ::protobuf::OneofFull for Start_value { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("start_value").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for ValueRange { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl Start_value { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("start_value") + } } -} -impl ::protobuf::reflect::ProtobufValue for ValueRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ValueRange.end_value) + pub enum End_value { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ValueRange.end_value_closed) + EndValueClosed(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ValueRange.end_value_open) + EndValueOpen(::std::vec::Vec), + } + + impl ::protobuf::Oneof for End_value { + } + + impl ::protobuf::OneofFull for End_value { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("end_value").unwrap()).clone() + } + } + + impl End_value { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("end_value") + } } } -#[derive(PartialEq,Clone,Default)] +/// Takes a row as input and produces an alternate view of the row based on +/// specified rules. For example, a RowFilter might trim down a row to include +/// just the cells from columns matching a given regular expression, or might +/// return all the cells of a row but not their values. More complicated filters +/// can be composed out of these components to express requests such as, "within +/// every column of a particular family, give just the two most recent cells +/// which are older than timestamp X." +/// +/// There are two broad categories of RowFilters (true filters and transformers), +/// as well as two ways to compose simple filters into more complex ones +/// (chains and interleaves). They work as follows: +/// +/// * True filters alter the input row by excluding some of its cells wholesale +/// from the output row. An example of a true filter is the `value_regex_filter`, +/// which excludes cells whose values don't match the specified pattern. All +/// regex true filters use RE2 syntax (https://github.com/google/re2/wiki/Syntax) +/// in raw byte mode (RE2::Latin1), and are evaluated as full matches. An +/// important point to keep in mind is that `RE2(.)` is equivalent by default to +/// `RE2([^\n])`, meaning that it does not match newlines. When attempting to +/// match an arbitrary byte, you should therefore use the escape sequence `\C`, +/// which may need to be further escaped as `\\C` in your client language. +/// +/// * Transformers alter the input row by changing the values of some of its +/// cells in the output, without excluding them completely. Currently, the only +/// supported transformer is the `strip_value_transformer`, which replaces every +/// cell's value with the empty string. +/// +/// * Chains and interleaves are described in more detail in the +/// RowFilter.Chain and RowFilter.Interleave documentation. +/// +/// The total serialized size of a RowFilter message must not +/// exceed 4096 bytes, and RowFilters may not be nested within each other +/// (in Chains or Interleaves) to a depth of more than 20. +// @@protoc_insertion_point(message:google.bigtable.v2.RowFilter) +#[derive(PartialEq,Clone,Default,Debug)] pub struct RowFilter { // message oneof groups - pub filter: ::std::option::Option, + pub filter: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowFilter.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a RowFilter { @@ -2579,29 +2329,6 @@ impl<'a> ::std::default::Default for &'a RowFilter { } } -#[derive(Clone,PartialEq,Debug)] -pub enum RowFilter_oneof_filter { - chain(RowFilter_Chain), - interleave(RowFilter_Interleave), - condition(RowFilter_Condition), - sink(bool), - pass_all_filter(bool), - block_all_filter(bool), - row_key_regex_filter(::std::vec::Vec), - row_sample_filter(f64), - family_name_regex_filter(::std::string::String), - column_qualifier_regex_filter(::std::vec::Vec), - column_range_filter(ColumnRange), - timestamp_range_filter(TimestampRange), - value_regex_filter(::std::vec::Vec), - value_range_filter(ValueRange), - cells_per_row_offset_filter(i32), - cells_per_row_limit_filter(i32), - cells_per_column_limit_filter(i32), - strip_value_transformer(bool), - apply_label_transformer(::std::string::String), -} - impl RowFilter { pub fn new() -> RowFilter { ::std::default::Default::default() @@ -2609,259 +2336,259 @@ impl RowFilter { // .google.bigtable.v2.RowFilter.Chain chain = 1; - - pub fn get_chain(&self) -> &RowFilter_Chain { + pub fn chain(&self) -> &row_filter::Chain { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(row_filter::Filter::Chain(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_chain(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_chain(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(..)) => true, + ::std::option::Option::Some(row_filter::Filter::Chain(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_chain(&mut self, v: RowFilter_Chain) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) + pub fn set_chain(&mut self, v: row_filter::Chain) { + self.filter = ::std::option::Option::Some(row_filter::Filter::Chain(v)) } // Mutable pointer to the field. - pub fn mut_chain(&mut self) -> &mut RowFilter_Chain { - if let ::std::option::Option::Some(RowFilter_oneof_filter::chain(_)) = self.filter { + pub fn mut_chain(&mut self) -> &mut row_filter::Chain { + if let ::std::option::Option::Some(row_filter::Filter::Chain(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(RowFilter_Chain::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::Chain(row_filter::Chain::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::Chain(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_chain(&mut self) -> RowFilter_Chain { + pub fn take_chain(&mut self) -> row_filter::Chain { if self.has_chain() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::chain(v)) => v, + ::std::option::Option::Some(row_filter::Filter::Chain(v)) => v, _ => panic!(), } } else { - RowFilter_Chain::new() + row_filter::Chain::new() } } // .google.bigtable.v2.RowFilter.Interleave interleave = 2; - - pub fn get_interleave(&self) -> &RowFilter_Interleave { + pub fn interleave(&self) -> &row_filter::Interleave { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(row_filter::Filter::Interleave(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_interleave(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_interleave(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(..)) => true, + ::std::option::Option::Some(row_filter::Filter::Interleave(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_interleave(&mut self, v: RowFilter_Interleave) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) + pub fn set_interleave(&mut self, v: row_filter::Interleave) { + self.filter = ::std::option::Option::Some(row_filter::Filter::Interleave(v)) } // Mutable pointer to the field. - pub fn mut_interleave(&mut self) -> &mut RowFilter_Interleave { - if let ::std::option::Option::Some(RowFilter_oneof_filter::interleave(_)) = self.filter { + pub fn mut_interleave(&mut self) -> &mut row_filter::Interleave { + if let ::std::option::Option::Some(row_filter::Filter::Interleave(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(RowFilter_Interleave::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::Interleave(row_filter::Interleave::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::Interleave(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_interleave(&mut self) -> RowFilter_Interleave { + pub fn take_interleave(&mut self) -> row_filter::Interleave { if self.has_interleave() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::interleave(v)) => v, + ::std::option::Option::Some(row_filter::Filter::Interleave(v)) => v, _ => panic!(), } } else { - RowFilter_Interleave::new() + row_filter::Interleave::new() } } // .google.bigtable.v2.RowFilter.Condition condition = 3; - - pub fn get_condition(&self) -> &RowFilter_Condition { + pub fn condition(&self) -> &row_filter::Condition { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(row_filter::Filter::Condition(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_condition(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_condition(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(..)) => true, + ::std::option::Option::Some(row_filter::Filter::Condition(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_condition(&mut self, v: RowFilter_Condition) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) + pub fn set_condition(&mut self, v: row_filter::Condition) { + self.filter = ::std::option::Option::Some(row_filter::Filter::Condition(v)) } // Mutable pointer to the field. - pub fn mut_condition(&mut self) -> &mut RowFilter_Condition { - if let ::std::option::Option::Some(RowFilter_oneof_filter::condition(_)) = self.filter { + pub fn mut_condition(&mut self) -> &mut row_filter::Condition { + if let ::std::option::Option::Some(row_filter::Filter::Condition(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(RowFilter_Condition::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::Condition(row_filter::Condition::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::Condition(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_condition(&mut self) -> RowFilter_Condition { + pub fn take_condition(&mut self) -> row_filter::Condition { if self.has_condition() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::condition(v)) => v, + ::std::option::Option::Some(row_filter::Filter::Condition(v)) => v, _ => panic!(), } } else { - RowFilter_Condition::new() + row_filter::Condition::new() } } // bool sink = 16; - - pub fn get_sink(&self) -> bool { + pub fn sink(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::sink(v)) => v, + ::std::option::Option::Some(row_filter::Filter::Sink(v)) => v, _ => false, } } + pub fn clear_sink(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_sink(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::sink(..)) => true, + ::std::option::Option::Some(row_filter::Filter::Sink(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_sink(&mut self, v: bool) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::sink(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::Sink(v)) } // bool pass_all_filter = 17; - - pub fn get_pass_all_filter(&self) -> bool { + pub fn pass_all_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::PassAllFilter(v)) => v, _ => false, } } + pub fn clear_pass_all_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_pass_all_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::PassAllFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_pass_all_filter(&mut self, v: bool) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::PassAllFilter(v)) } // bool block_all_filter = 18; - - pub fn get_block_all_filter(&self) -> bool { + pub fn block_all_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::BlockAllFilter(v)) => v, _ => false, } } + pub fn clear_block_all_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_block_all_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::BlockAllFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_block_all_filter(&mut self, v: bool) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::BlockAllFilter(v)) } // bytes row_key_regex_filter = 4; - - pub fn get_row_key_regex_filter(&self) -> &[u8] { + pub fn row_key_regex_filter(&self) -> &[u8] { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(ref v)) => v, _ => &[], } } + pub fn clear_row_key_regex_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_row_key_regex_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_row_key_regex_filter(&mut self, v: ::std::vec::Vec) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(v)) } // Mutable pointer to the field. pub fn mut_row_key_regex_filter(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(::std::vec::Vec::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(::std::vec::Vec::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(ref mut v)) => v, _ => panic!(), } } @@ -2870,7 +2597,7 @@ impl RowFilter { pub fn take_row_key_regex_filter(&mut self) -> ::std::vec::Vec { if self.has_row_key_regex_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(v)) => v, _ => panic!(), } } else { @@ -2880,62 +2607,62 @@ impl RowFilter { // double row_sample_filter = 14; - - pub fn get_row_sample_filter(&self) -> f64 { + pub fn row_sample_filter(&self) -> f64 { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::RowSampleFilter(v)) => v, _ => 0., } } + pub fn clear_row_sample_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_row_sample_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::RowSampleFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_row_sample_filter(&mut self, v: f64) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::RowSampleFilter(v)) } // string family_name_regex_filter = 5; - - pub fn get_family_name_regex_filter(&self) -> &str { + pub fn family_name_regex_filter(&self) -> &str { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(ref v)) => v, _ => "", } } + pub fn clear_family_name_regex_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_family_name_regex_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_family_name_regex_filter(&mut self, v: ::std::string::String) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(v)) } // Mutable pointer to the field. pub fn mut_family_name_regex_filter(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(::std::string::String::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(::std::string::String::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(ref mut v)) => v, _ => panic!(), } } @@ -2944,7 +2671,7 @@ impl RowFilter { pub fn take_family_name_regex_filter(&mut self) -> ::std::string::String { if self.has_family_name_regex_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(v)) => v, _ => panic!(), } } else { @@ -2954,37 +2681,37 @@ impl RowFilter { // bytes column_qualifier_regex_filter = 6; - - pub fn get_column_qualifier_regex_filter(&self) -> &[u8] { + pub fn column_qualifier_regex_filter(&self) -> &[u8] { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(ref v)) => v, _ => &[], } } + pub fn clear_column_qualifier_regex_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_column_qualifier_regex_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_column_qualifier_regex_filter(&mut self, v: ::std::vec::Vec) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(v)) } // Mutable pointer to the field. pub fn mut_column_qualifier_regex_filter(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(::std::vec::Vec::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(::std::vec::Vec::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(ref mut v)) => v, _ => panic!(), } } @@ -2993,7 +2720,7 @@ impl RowFilter { pub fn take_column_qualifier_regex_filter(&mut self) -> ::std::vec::Vec { if self.has_column_qualifier_regex_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(v)) => v, _ => panic!(), } } else { @@ -3003,37 +2730,37 @@ impl RowFilter { // .google.bigtable.v2.ColumnRange column_range_filter = 7; - - pub fn get_column_range_filter(&self) -> &ColumnRange { + pub fn column_range_filter(&self) -> &ColumnRange { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_column_range_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_column_range_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_column_range_filter(&mut self, v: ColumnRange) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(v)) } // Mutable pointer to the field. pub fn mut_column_range_filter(&mut self) -> &mut ColumnRange { - if let ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ColumnRange::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(ColumnRange::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(ref mut v)) => v, _ => panic!(), } } @@ -3042,7 +2769,7 @@ impl RowFilter { pub fn take_column_range_filter(&mut self) -> ColumnRange { if self.has_column_range_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(v)) => v, _ => panic!(), } } else { @@ -3052,37 +2779,37 @@ impl RowFilter { // .google.bigtable.v2.TimestampRange timestamp_range_filter = 8; - - pub fn get_timestamp_range_filter(&self) -> &TimestampRange { + pub fn timestamp_range_filter(&self) -> &TimestampRange { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_timestamp_range_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_timestamp_range_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_timestamp_range_filter(&mut self, v: TimestampRange) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(v)) } // Mutable pointer to the field. pub fn mut_timestamp_range_filter(&mut self) -> &mut TimestampRange { - if let ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(TimestampRange::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(TimestampRange::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(ref mut v)) => v, _ => panic!(), } } @@ -3091,7 +2818,7 @@ impl RowFilter { pub fn take_timestamp_range_filter(&mut self) -> TimestampRange { if self.has_timestamp_range_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(v)) => v, _ => panic!(), } } else { @@ -3101,37 +2828,37 @@ impl RowFilter { // bytes value_regex_filter = 9; - - pub fn get_value_regex_filter(&self) -> &[u8] { + pub fn value_regex_filter(&self) -> &[u8] { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(ref v)) => v, _ => &[], } } + pub fn clear_value_regex_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_value_regex_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_value_regex_filter(&mut self, v: ::std::vec::Vec) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(v)) } // Mutable pointer to the field. pub fn mut_value_regex_filter(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(::std::vec::Vec::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(::std::vec::Vec::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(ref mut v)) => v, _ => panic!(), } } @@ -3140,7 +2867,7 @@ impl RowFilter { pub fn take_value_regex_filter(&mut self) -> ::std::vec::Vec { if self.has_value_regex_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(v)) => v, _ => panic!(), } } else { @@ -3150,37 +2877,37 @@ impl RowFilter { // .google.bigtable.v2.ValueRange value_range_filter = 15; - - pub fn get_value_range_filter(&self) -> &ValueRange { + pub fn value_range_filter(&self) -> &ValueRange { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_value_range_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_value_range_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_value_range_filter(&mut self, v: ValueRange) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(v)) } // Mutable pointer to the field. pub fn mut_value_range_filter(&mut self) -> &mut ValueRange { - if let ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ValueRange::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(ValueRange::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(ref mut v)) => v, _ => panic!(), } } @@ -3189,7 +2916,7 @@ impl RowFilter { pub fn take_value_range_filter(&mut self) -> ValueRange { if self.has_value_range_filter() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(v)) => v, _ => panic!(), } } else { @@ -3199,137 +2926,137 @@ impl RowFilter { // int32 cells_per_row_offset_filter = 10; - - pub fn get_cells_per_row_offset_filter(&self) -> i32 { + pub fn cells_per_row_offset_filter(&self) -> i32 { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::CellsPerRowOffsetFilter(v)) => v, _ => 0, } } + pub fn clear_cells_per_row_offset_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_cells_per_row_offset_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::CellsPerRowOffsetFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_cells_per_row_offset_filter(&mut self, v: i32) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerRowOffsetFilter(v)) } // int32 cells_per_row_limit_filter = 11; - - pub fn get_cells_per_row_limit_filter(&self) -> i32 { + pub fn cells_per_row_limit_filter(&self) -> i32 { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::CellsPerRowLimitFilter(v)) => v, _ => 0, } } + pub fn clear_cells_per_row_limit_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_cells_per_row_limit_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::CellsPerRowLimitFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_cells_per_row_limit_filter(&mut self, v: i32) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerRowLimitFilter(v)) } // int32 cells_per_column_limit_filter = 12; - - pub fn get_cells_per_column_limit_filter(&self) -> i32 { + pub fn cells_per_column_limit_filter(&self) -> i32 { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(v)) => v, + ::std::option::Option::Some(row_filter::Filter::CellsPerColumnLimitFilter(v)) => v, _ => 0, } } + pub fn clear_cells_per_column_limit_filter(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_cells_per_column_limit_filter(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(..)) => true, + ::std::option::Option::Some(row_filter::Filter::CellsPerColumnLimitFilter(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_cells_per_column_limit_filter(&mut self, v: i32) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerColumnLimitFilter(v)) } // bool strip_value_transformer = 13; - - pub fn get_strip_value_transformer(&self) -> bool { + pub fn strip_value_transformer(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(v)) => v, + ::std::option::Option::Some(row_filter::Filter::StripValueTransformer(v)) => v, _ => false, } } + pub fn clear_strip_value_transformer(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_strip_value_transformer(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(..)) => true, + ::std::option::Option::Some(row_filter::Filter::StripValueTransformer(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_strip_value_transformer(&mut self, v: bool) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::StripValueTransformer(v)) } // string apply_label_transformer = 19; - - pub fn get_apply_label_transformer(&self) -> &str { + pub fn apply_label_transformer(&self) -> &str { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref v)) => v, + ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(ref v)) => v, _ => "", } } + pub fn clear_apply_label_transformer(&mut self) { self.filter = ::std::option::Option::None; } pub fn has_apply_label_transformer(&self) -> bool { match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(..)) => true, + ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_apply_label_transformer(&mut self, v: ::std::string::String) { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(v)) + self.filter = ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(v)) } // Mutable pointer to the field. pub fn mut_apply_label_transformer(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(_)) = self.filter { + if let ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(_)) = self.filter { } else { - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(::std::string::String::new())); + self.filter = ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(::std::string::String::new())); } match self.filter { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(ref mut v)) => v, + ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(ref mut v)) => v, _ => panic!(), } } @@ -3338,170 +3065,215 @@ impl RowFilter { pub fn take_apply_label_transformer(&mut self) -> ::std::string::String { if self.has_apply_label_transformer() { match self.filter.take() { - ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(v)) => v, + ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(v)) => v, _ => panic!(), } } else { ::std::string::String::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(19); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, row_filter::Chain>( + "chain", + RowFilter::has_chain, + RowFilter::chain, + RowFilter::mut_chain, + RowFilter::set_chain, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, row_filter::Interleave>( + "interleave", + RowFilter::has_interleave, + RowFilter::interleave, + RowFilter::mut_interleave, + RowFilter::set_interleave, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, row_filter::Condition>( + "condition", + RowFilter::has_condition, + RowFilter::condition, + RowFilter::mut_condition, + RowFilter::set_condition, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "sink", + RowFilter::has_sink, + RowFilter::sink, + RowFilter::set_sink, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "pass_all_filter", + RowFilter::has_pass_all_filter, + RowFilter::pass_all_filter, + RowFilter::set_pass_all_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "block_all_filter", + RowFilter::has_block_all_filter, + RowFilter::block_all_filter, + RowFilter::set_block_all_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "row_key_regex_filter", + RowFilter::has_row_key_regex_filter, + RowFilter::row_key_regex_filter, + RowFilter::set_row_key_regex_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "row_sample_filter", + RowFilter::has_row_sample_filter, + RowFilter::row_sample_filter, + RowFilter::set_row_sample_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "family_name_regex_filter", + RowFilter::has_family_name_regex_filter, + RowFilter::family_name_regex_filter, + RowFilter::set_family_name_regex_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "column_qualifier_regex_filter", + RowFilter::has_column_qualifier_regex_filter, + RowFilter::column_qualifier_regex_filter, + RowFilter::set_column_qualifier_regex_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ColumnRange>( + "column_range_filter", + RowFilter::has_column_range_filter, + RowFilter::column_range_filter, + RowFilter::mut_column_range_filter, + RowFilter::set_column_range_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, TimestampRange>( + "timestamp_range_filter", + RowFilter::has_timestamp_range_filter, + RowFilter::timestamp_range_filter, + RowFilter::mut_timestamp_range_filter, + RowFilter::set_timestamp_range_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "value_regex_filter", + RowFilter::has_value_regex_filter, + RowFilter::value_regex_filter, + RowFilter::set_value_regex_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ValueRange>( + "value_range_filter", + RowFilter::has_value_range_filter, + RowFilter::value_range_filter, + RowFilter::mut_value_range_filter, + RowFilter::set_value_range_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "cells_per_row_offset_filter", + RowFilter::has_cells_per_row_offset_filter, + RowFilter::cells_per_row_offset_filter, + RowFilter::set_cells_per_row_offset_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "cells_per_row_limit_filter", + RowFilter::has_cells_per_row_limit_filter, + RowFilter::cells_per_row_limit_filter, + RowFilter::set_cells_per_row_limit_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "cells_per_column_limit_filter", + RowFilter::has_cells_per_column_limit_filter, + RowFilter::cells_per_column_limit_filter, + RowFilter::set_cells_per_column_limit_filter, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "strip_value_transformer", + RowFilter::has_strip_value_transformer, + RowFilter::strip_value_transformer, + RowFilter::set_strip_value_transformer, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "apply_label_transformer", + RowFilter::has_apply_label_transformer, + RowFilter::apply_label_transformer, + RowFilter::set_apply_label_transformer, + )); + oneofs.push(row_filter::Filter::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowFilter", + fields, + oneofs, + ) + } } impl ::protobuf::Message for RowFilter { + const NAME: &'static str = "RowFilter"; + fn is_initialized(&self) -> bool { - if let Some(RowFilter_oneof_filter::chain(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } - if let Some(RowFilter_oneof_filter::interleave(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } - if let Some(RowFilter_oneof_filter::condition(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } - if let Some(RowFilter_oneof_filter::column_range_filter(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } - if let Some(RowFilter_oneof_filter::timestamp_range_filter(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } - if let Some(RowFilter_oneof_filter::value_range_filter(ref v)) = self.filter { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::chain(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::interleave(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::condition(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::Chain(is.read_message()?)); }, - 16 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::sink(is.read_bool()?)); + 18 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::Interleave(is.read_message()?)); }, - 17 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::pass_all_filter(is.read_bool()?)); + 26 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::Condition(is.read_message()?)); }, - 18 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::block_all_filter(is.read_bool()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_key_regex_filter(is.read_bytes()?)); - }, - 14 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::row_sample_filter(is.read_double()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::family_name_regex_filter(is.read_string()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_qualifier_regex_filter(is.read_bytes()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::column_range_filter(is.read_message()?)); + 128 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::Sink(is.read_bool()?)); }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::timestamp_range_filter(is.read_message()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_regex_filter(is.read_bytes()?)); - }, - 15 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::value_range_filter(is.read_message()?)); + 136 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::PassAllFilter(is.read_bool()?)); }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_offset_filter(is.read_int32()?)); - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_row_limit_filter(is.read_int32()?)); - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::cells_per_column_limit_filter(is.read_int32()?)); - }, - 13 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::strip_value_transformer(is.read_bool()?)); - }, - 19 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.filter = ::std::option::Option::Some(RowFilter_oneof_filter::apply_label_transformer(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 144 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::BlockAllFilter(is.read_bool()?)); + }, + 34 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::RowKeyRegexFilter(is.read_bytes()?)); + }, + 113 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::RowSampleFilter(is.read_double()?)); + }, + 42 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::FamilyNameRegexFilter(is.read_string()?)); + }, + 50 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnQualifierRegexFilter(is.read_bytes()?)); + }, + 58 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::ColumnRangeFilter(is.read_message()?)); + }, + 66 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::TimestampRangeFilter(is.read_message()?)); + }, + 74 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRegexFilter(is.read_bytes()?)); + }, + 122 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::ValueRangeFilter(is.read_message()?)); + }, + 80 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerRowOffsetFilter(is.read_int32()?)); + }, + 88 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerRowLimitFilter(is.read_int32()?)); + }, + 96 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::CellsPerColumnLimitFilter(is.read_int32()?)); + }, + 104 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::StripValueTransformer(is.read_bool()?)); + }, + 154 => { + self.filter = ::std::option::Option::Some(row_filter::Filter::ApplyLabelTransformer(is.read_string()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3510,302 +3282,158 @@ impl ::protobuf::Message for RowFilter { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.filter { match v { - &RowFilter_oneof_filter::chain(ref v) => { + &row_filter::Filter::Chain(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::interleave(ref v) => { + &row_filter::Filter::Interleave(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::condition(ref v) => { + &row_filter::Filter::Condition(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::sink(v) => { - my_size += 3; + &row_filter::Filter::Sink(v) => { + my_size += 2 + 1; }, - &RowFilter_oneof_filter::pass_all_filter(v) => { - my_size += 3; + &row_filter::Filter::PassAllFilter(v) => { + my_size += 2 + 1; }, - &RowFilter_oneof_filter::block_all_filter(v) => { - my_size += 3; + &row_filter::Filter::BlockAllFilter(v) => { + my_size += 2 + 1; }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + &row_filter::Filter::RowKeyRegexFilter(ref v) => { my_size += ::protobuf::rt::bytes_size(4, &v); }, - &RowFilter_oneof_filter::row_sample_filter(v) => { - my_size += 9; + &row_filter::Filter::RowSampleFilter(v) => { + my_size += 1 + 8; }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + &row_filter::Filter::FamilyNameRegexFilter(ref v) => { my_size += ::protobuf::rt::string_size(5, &v); }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { + &row_filter::Filter::ColumnQualifierRegexFilter(ref v) => { my_size += ::protobuf::rt::bytes_size(6, &v); }, - &RowFilter_oneof_filter::column_range_filter(ref v) => { + &row_filter::Filter::ColumnRangeFilter(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { + &row_filter::Filter::TimestampRangeFilter(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::value_regex_filter(ref v) => { + &row_filter::Filter::ValueRegexFilter(ref v) => { my_size += ::protobuf::rt::bytes_size(9, &v); }, - &RowFilter_oneof_filter::value_range_filter(ref v) => { + &row_filter::Filter::ValueRangeFilter(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { - my_size += ::protobuf::rt::value_size(10, v, ::protobuf::wire_format::WireTypeVarint); + &row_filter::Filter::CellsPerRowOffsetFilter(v) => { + my_size += ::protobuf::rt::int32_size(10, v); }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint); + &row_filter::Filter::CellsPerRowLimitFilter(v) => { + my_size += ::protobuf::rt::int32_size(11, v); }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { - my_size += ::protobuf::rt::value_size(12, v, ::protobuf::wire_format::WireTypeVarint); + &row_filter::Filter::CellsPerColumnLimitFilter(v) => { + my_size += ::protobuf::rt::int32_size(12, v); }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { - my_size += 2; + &row_filter::Filter::StripValueTransformer(v) => { + my_size += 1 + 1; }, - &RowFilter_oneof_filter::apply_label_transformer(ref v) => { + &row_filter::Filter::ApplyLabelTransformer(ref v) => { my_size += ::protobuf::rt::string_size(19, &v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.filter { match v { - &RowFilter_oneof_filter::chain(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &RowFilter_oneof_filter::interleave(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &RowFilter_oneof_filter::condition(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &RowFilter_oneof_filter::sink(v) => { + &row_filter::Filter::Chain(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }, + &row_filter::Filter::Interleave(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &row_filter::Filter::Condition(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + &row_filter::Filter::Sink(v) => { os.write_bool(16, v)?; }, - &RowFilter_oneof_filter::pass_all_filter(v) => { + &row_filter::Filter::PassAllFilter(v) => { os.write_bool(17, v)?; }, - &RowFilter_oneof_filter::block_all_filter(v) => { + &row_filter::Filter::BlockAllFilter(v) => { os.write_bool(18, v)?; }, - &RowFilter_oneof_filter::row_key_regex_filter(ref v) => { + &row_filter::Filter::RowKeyRegexFilter(ref v) => { os.write_bytes(4, v)?; }, - &RowFilter_oneof_filter::row_sample_filter(v) => { + &row_filter::Filter::RowSampleFilter(v) => { os.write_double(14, v)?; }, - &RowFilter_oneof_filter::family_name_regex_filter(ref v) => { + &row_filter::Filter::FamilyNameRegexFilter(ref v) => { os.write_string(5, v)?; }, - &RowFilter_oneof_filter::column_qualifier_regex_filter(ref v) => { + &row_filter::Filter::ColumnQualifierRegexFilter(ref v) => { os.write_bytes(6, v)?; }, - &RowFilter_oneof_filter::column_range_filter(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &row_filter::Filter::ColumnRangeFilter(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?; }, - &RowFilter_oneof_filter::timestamp_range_filter(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &row_filter::Filter::TimestampRangeFilter(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; }, - &RowFilter_oneof_filter::value_regex_filter(ref v) => { + &row_filter::Filter::ValueRegexFilter(ref v) => { os.write_bytes(9, v)?; }, - &RowFilter_oneof_filter::value_range_filter(ref v) => { - os.write_tag(15, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &row_filter::Filter::ValueRangeFilter(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(15, v, os)?; }, - &RowFilter_oneof_filter::cells_per_row_offset_filter(v) => { + &row_filter::Filter::CellsPerRowOffsetFilter(v) => { os.write_int32(10, v)?; }, - &RowFilter_oneof_filter::cells_per_row_limit_filter(v) => { + &row_filter::Filter::CellsPerRowLimitFilter(v) => { os.write_int32(11, v)?; }, - &RowFilter_oneof_filter::cells_per_column_limit_filter(v) => { + &row_filter::Filter::CellsPerColumnLimitFilter(v) => { os.write_int32(12, v)?; }, - &RowFilter_oneof_filter::strip_value_transformer(v) => { + &row_filter::Filter::StripValueTransformer(v) => { os.write_bool(13, v)?; }, - &RowFilter_oneof_filter::apply_label_transformer(ref v) => { + &row_filter::Filter::ApplyLabelTransformer(ref v) => { os.write_string(19, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> RowFilter { RowFilter::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RowFilter_Chain>( - "chain", - RowFilter::has_chain, - RowFilter::get_chain, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RowFilter_Interleave>( - "interleave", - RowFilter::has_interleave, - RowFilter::get_interleave, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RowFilter_Condition>( - "condition", - RowFilter::has_condition, - RowFilter::get_condition, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "sink", - RowFilter::has_sink, - RowFilter::get_sink, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "pass_all_filter", - RowFilter::has_pass_all_filter, - RowFilter::get_pass_all_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "block_all_filter", - RowFilter::has_block_all_filter, - RowFilter::get_block_all_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "row_key_regex_filter", - RowFilter::has_row_key_regex_filter, - RowFilter::get_row_key_regex_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_f64_accessor::<_>( - "row_sample_filter", - RowFilter::has_row_sample_filter, - RowFilter::get_row_sample_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "family_name_regex_filter", - RowFilter::has_family_name_regex_filter, - RowFilter::get_family_name_regex_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "column_qualifier_regex_filter", - RowFilter::has_column_qualifier_regex_filter, - RowFilter::get_column_qualifier_regex_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ColumnRange>( - "column_range_filter", - RowFilter::has_column_range_filter, - RowFilter::get_column_range_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TimestampRange>( - "timestamp_range_filter", - RowFilter::has_timestamp_range_filter, - RowFilter::get_timestamp_range_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "value_regex_filter", - RowFilter::has_value_regex_filter, - RowFilter::get_value_regex_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ValueRange>( - "value_range_filter", - RowFilter::has_value_range_filter, - RowFilter::get_value_range_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "cells_per_row_offset_filter", - RowFilter::has_cells_per_row_offset_filter, - RowFilter::get_cells_per_row_offset_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "cells_per_row_limit_filter", - RowFilter::has_cells_per_row_limit_filter, - RowFilter::get_cells_per_row_limit_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "cells_per_column_limit_filter", - RowFilter::has_cells_per_column_limit_filter, - RowFilter::get_cells_per_column_limit_filter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "strip_value_transformer", - RowFilter::has_strip_value_transformer, - RowFilter::get_strip_value_transformer, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "apply_label_transformer", - RowFilter::has_apply_label_transformer, - RowFilter::get_apply_label_transformer, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RowFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter::new) - } -} - -impl ::protobuf::Clear for RowFilter { fn clear(&mut self) { self.filter = ::std::option::Option::None; self.filter = ::std::option::Option::None; @@ -3826,649 +3454,534 @@ impl ::protobuf::Clear for RowFilter { self.filter = ::std::option::Option::None; self.filter = ::std::option::Option::None; self.filter = ::std::option::Option::None; - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for RowFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static RowFilter { + static instance: RowFilter = RowFilter { + filter: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for RowFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for RowFilter { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RowFilter").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct RowFilter_Chain { - // message fields - pub filters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowFilter_Chain { - fn default() -> &'a RowFilter_Chain { - ::default_instance() +impl ::std::fmt::Display for RowFilter { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl RowFilter_Chain { - pub fn new() -> RowFilter_Chain { - ::std::default::Default::default() +impl ::protobuf::reflect::ProtobufValue for RowFilter { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `RowFilter` +pub mod row_filter { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.RowFilter.filter) + pub enum Filter { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.chain) + Chain(Chain), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.interleave) + Interleave(Interleave), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.condition) + Condition(Condition), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.sink) + Sink(bool), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.pass_all_filter) + PassAllFilter(bool), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.block_all_filter) + BlockAllFilter(bool), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.row_key_regex_filter) + RowKeyRegexFilter(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.row_sample_filter) + RowSampleFilter(f64), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.family_name_regex_filter) + FamilyNameRegexFilter(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.column_qualifier_regex_filter) + ColumnQualifierRegexFilter(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.column_range_filter) + ColumnRangeFilter(super::ColumnRange), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.timestamp_range_filter) + TimestampRangeFilter(super::TimestampRange), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.value_regex_filter) + ValueRegexFilter(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.value_range_filter) + ValueRangeFilter(super::ValueRange), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.cells_per_row_offset_filter) + CellsPerRowOffsetFilter(i32), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.cells_per_row_limit_filter) + CellsPerRowLimitFilter(i32), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.cells_per_column_limit_filter) + CellsPerColumnLimitFilter(i32), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.strip_value_transformer) + StripValueTransformer(bool), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.RowFilter.apply_label_transformer) + ApplyLabelTransformer(::std::string::String), + } + + impl ::protobuf::Oneof for Filter { + } + + impl ::protobuf::OneofFull for Filter { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("filter").unwrap()).clone() + } + } + + impl Filter { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("filter") + } + } + /// A RowFilter which sends rows through several RowFilters in sequence. + // @@protoc_insertion_point(message:google.bigtable.v2.RowFilter.Chain) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Chain { + // message fields + /// The elements of "filters" are chained together to process the input row: + /// in row -> f(0) -> intermediate row -> f(1) -> ... -> f(N) -> out row + /// The full chain is executed atomically. + // @@protoc_insertion_point(field:google.bigtable.v2.RowFilter.Chain.filters) + pub filters: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowFilter.Chain.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Chain { + fn default() -> &'a Chain { + ::default_instance() + } + } + + impl Chain { + pub fn new() -> Chain { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "filters", + |m: &Chain| { &m.filters }, + |m: &mut Chain| { &mut m.filters }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowFilter.Chain", + fields, + oneofs, + ) + } } - // repeated .google.bigtable.v2.RowFilter filters = 1; + impl ::protobuf::Message for Chain { + const NAME: &'static str = "Chain"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters - } - pub fn clear_filters(&mut self) { - self.filters.clear(); - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.filters.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.filters { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.filters { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl ::protobuf::Message for RowFilter_Chain { - fn is_initialized(&self) -> bool { - for v in &self.filters { - if !v.is_initialized() { - return false; - } - }; - true - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.filters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn new() -> Chain { + Chain::new() } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.filters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + fn clear(&mut self) { + self.filters.clear(); + self.special_fields.clear(); + } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.filters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) + fn default_instance() -> &'static Chain { + static instance: Chain = Chain { + filters: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + impl ::protobuf::MessageFull for Chain { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("RowFilter.Chain").unwrap()).clone() + } } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + impl ::std::fmt::Display for Chain { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + impl ::protobuf::reflect::ProtobufValue for Chain { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + /// A RowFilter which sends each row to each of several component + /// RowFilters and interleaves the results. + // @@protoc_insertion_point(message:google.bigtable.v2.RowFilter.Interleave) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Interleave { + // message fields + // @@protoc_insertion_point(field:google.bigtable.v2.RowFilter.Interleave.filters) + pub filters: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowFilter.Interleave.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a Interleave { + fn default() -> &'a Interleave { + ::default_instance() + } } - fn new() -> RowFilter_Chain { - RowFilter_Chain::new() - } + impl Interleave { + pub fn new() -> Interleave { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( "filters", - |m: &RowFilter_Chain| { &m.filters }, - |m: &mut RowFilter_Chain| { &mut m.filters }, + |m: &Interleave| { &m.filters }, + |m: &mut Interleave| { &mut m.filters }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Chain", + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowFilter.Interleave", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static RowFilter_Chain { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Chain::new) - } -} + impl ::protobuf::Message for Interleave { + const NAME: &'static str = "Interleave"; -impl ::protobuf::Clear for RowFilter_Chain { - fn clear(&mut self) { - self.filters.clear(); - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::fmt::Debug for RowFilter_Chain { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.filters.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for RowFilter_Chain { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.filters { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(PartialEq,Clone,Default)] -pub struct RowFilter_Interleave { - // message fields - pub filters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.filters { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a RowFilter_Interleave { - fn default() -> &'a RowFilter_Interleave { - ::default_instance() - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl RowFilter_Interleave { - pub fn new() -> RowFilter_Interleave { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // repeated .google.bigtable.v2.RowFilter filters = 1; + fn new() -> Interleave { + Interleave::new() + } + fn clear(&mut self) { + self.filters.clear(); + self.special_fields.clear(); + } - pub fn get_filters(&self) -> &[RowFilter] { - &self.filters + fn default_instance() -> &'static Interleave { + static instance: Interleave = Interleave { + filters: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - pub fn clear_filters(&mut self) { - self.filters.clear(); + + impl ::protobuf::MessageFull for Interleave { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("RowFilter.Interleave").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_filters(&mut self, v: ::protobuf::RepeatedField) { - self.filters = v; + impl ::std::fmt::Display for Interleave { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Mutable pointer to the field. - pub fn mut_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.filters + impl ::protobuf::reflect::ProtobufValue for Interleave { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - // Take field - pub fn take_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.filters, ::protobuf::RepeatedField::new()) + /// A RowFilter which evaluates one of two possible RowFilters, depending on + /// whether or not a predicate RowFilter outputs any cells from the input row. + /// + /// IMPORTANT NOTE: The predicate filter does not execute atomically with the + /// true and false filters, which may lead to inconsistent or unexpected + /// results. Additionally, Condition filters have poor performance, especially + /// when filters are set for the false condition. + // @@protoc_insertion_point(message:google.bigtable.v2.RowFilter.Condition) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Condition { + // message fields + /// If `predicate_filter` outputs any cells, then `true_filter` will be + /// evaluated on the input row. Otherwise, `false_filter` will be evaluated. + // @@protoc_insertion_point(field:google.bigtable.v2.RowFilter.Condition.predicate_filter) + pub predicate_filter: ::protobuf::MessageField, + /// The filter to apply to the input row if `predicate_filter` returns any + /// results. If not provided, no results will be returned in the true case. + // @@protoc_insertion_point(field:google.bigtable.v2.RowFilter.Condition.true_filter) + pub true_filter: ::protobuf::MessageField, + /// The filter to apply to the input row if `predicate_filter` does not + /// return any results. If not provided, no results will be returned in the + /// false case. + // @@protoc_insertion_point(field:google.bigtable.v2.RowFilter.Condition.false_filter) + pub false_filter: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.RowFilter.Condition.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -} -impl ::protobuf::Message for RowFilter_Interleave { - fn is_initialized(&self) -> bool { - for v in &self.filters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.filters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + impl<'a> ::std::default::Default for &'a Condition { + fn default() -> &'a Condition { + ::default_instance() } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.filters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.filters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() } - fn new() -> RowFilter_Interleave { - RowFilter_Interleave::new() - } + impl Condition { + pub fn new() -> Condition { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "filters", - |m: &RowFilter_Interleave| { &m.filters }, - |m: &mut RowFilter_Interleave| { &mut m.filters }, + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::RowFilter>( + "predicate_filter", + |m: &Condition| { &m.predicate_filter }, + |m: &mut Condition| { &mut m.predicate_filter }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Interleave", + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::RowFilter>( + "true_filter", + |m: &Condition| { &m.true_filter }, + |m: &mut Condition| { &mut m.true_filter }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::RowFilter>( + "false_filter", + |m: &Condition| { &m.false_filter }, + |m: &mut Condition| { &mut m.false_filter }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RowFilter.Condition", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static RowFilter_Interleave { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Interleave::new) - } -} - -impl ::protobuf::Clear for RowFilter_Interleave { - fn clear(&mut self) { - self.filters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RowFilter_Interleave { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RowFilter_Interleave { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RowFilter_Condition { - // message fields - pub predicate_filter: ::protobuf::SingularPtrField, - pub true_filter: ::protobuf::SingularPtrField, - pub false_filter: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RowFilter_Condition { - fn default() -> &'a RowFilter_Condition { - ::default_instance() - } -} - -impl RowFilter_Condition { - pub fn new() -> RowFilter_Condition { - ::std::default::Default::default() - } - - // .google.bigtable.v2.RowFilter predicate_filter = 1; - - - pub fn get_predicate_filter(&self) -> &RowFilter { - self.predicate_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_predicate_filter(&mut self) { - self.predicate_filter.clear(); - } - - pub fn has_predicate_filter(&self) -> bool { - self.predicate_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_predicate_filter(&mut self, v: RowFilter) { - self.predicate_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_predicate_filter(&mut self) -> &mut RowFilter { - if self.predicate_filter.is_none() { - self.predicate_filter.set_default(); } - self.predicate_filter.as_mut().unwrap() - } - - // Take field - pub fn take_predicate_filter(&mut self) -> RowFilter { - self.predicate_filter.take().unwrap_or_else(|| RowFilter::new()) - } - - // .google.bigtable.v2.RowFilter true_filter = 2; - - - pub fn get_true_filter(&self) -> &RowFilter { - self.true_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_true_filter(&mut self) { - self.true_filter.clear(); - } - - pub fn has_true_filter(&self) -> bool { - self.true_filter.is_some() } - // Param is passed by value, moved - pub fn set_true_filter(&mut self, v: RowFilter) { - self.true_filter = ::protobuf::SingularPtrField::some(v); - } + impl ::protobuf::Message for Condition { + const NAME: &'static str = "Condition"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_true_filter(&mut self) -> &mut RowFilter { - if self.true_filter.is_none() { - self.true_filter.set_default(); + fn is_initialized(&self) -> bool { + true } - self.true_filter.as_mut().unwrap() - } - - // Take field - pub fn take_true_filter(&mut self) -> RowFilter { - self.true_filter.take().unwrap_or_else(|| RowFilter::new()) - } - // .google.bigtable.v2.RowFilter false_filter = 3; - - - pub fn get_false_filter(&self) -> &RowFilter { - self.false_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_false_filter(&mut self) { - self.false_filter.clear(); - } - - pub fn has_false_filter(&self) -> bool { - self.false_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_false_filter(&mut self, v: RowFilter) { - self.false_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_false_filter(&mut self) -> &mut RowFilter { - if self.false_filter.is_none() { - self.false_filter.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.predicate_filter)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.true_filter)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.false_filter)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - self.false_filter.as_mut().unwrap() - } - - // Take field - pub fn take_false_filter(&mut self) -> RowFilter { - self.false_filter.take().unwrap_or_else(|| RowFilter::new()) - } -} -impl ::protobuf::Message for RowFilter_Condition { - fn is_initialized(&self) -> bool { - for v in &self.predicate_filter { - if !v.is_initialized() { - return false; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.predicate_filter.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - }; - for v in &self.true_filter { - if !v.is_initialized() { - return false; + if let Some(v) = self.true_filter.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - }; - for v in &self.false_filter { - if !v.is_initialized() { - return false; + if let Some(v) = self.false_filter.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.predicate_filter)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.true_filter)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.false_filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.predicate_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.true_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.false_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.predicate_filter.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.true_filter.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if let Some(v) = self.false_filter.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.predicate_filter.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.true_filter.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - if let Some(ref v) = self.false_filter.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> RowFilter_Condition { - RowFilter_Condition::new() - } + fn new() -> Condition { + Condition::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "predicate_filter", - |m: &RowFilter_Condition| { &m.predicate_filter }, - |m: &mut RowFilter_Condition| { &mut m.predicate_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "true_filter", - |m: &RowFilter_Condition| { &m.true_filter }, - |m: &mut RowFilter_Condition| { &mut m.true_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "false_filter", - |m: &RowFilter_Condition| { &m.false_filter }, - |m: &mut RowFilter_Condition| { &mut m.false_filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RowFilter.Condition", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.predicate_filter.clear(); + self.true_filter.clear(); + self.false_filter.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static RowFilter_Condition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RowFilter_Condition::new) + fn default_instance() -> &'static Condition { + static instance: Condition = Condition { + predicate_filter: ::protobuf::MessageField::none(), + true_filter: ::protobuf::MessageField::none(), + false_filter: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for RowFilter_Condition { - fn clear(&mut self) { - self.predicate_filter.clear(); - self.true_filter.clear(); - self.false_filter.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for Condition { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("RowFilter.Condition").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for RowFilter_Condition { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for Condition { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for RowFilter_Condition { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Condition { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] +/// Specifies a particular change to be made to the contents of a row. +// @@protoc_insertion_point(message:google.bigtable.v2.Mutation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Mutation { // message oneof groups - pub mutation: ::std::option::Option, + pub mutation: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.Mutation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Mutation { @@ -4477,14 +3990,6 @@ impl<'a> ::std::default::Default for &'a Mutation { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Mutation_oneof_mutation { - set_cell(Mutation_SetCell), - delete_from_column(Mutation_DeleteFromColumn), - delete_from_family(Mutation_DeleteFromFamily), - delete_from_row(Mutation_DeleteFromRow), -} - impl Mutation { pub fn new() -> Mutation { ::std::default::Default::default() @@ -4492,256 +3997,264 @@ impl Mutation { // .google.bigtable.v2.Mutation.SetCell set_cell = 1; - - pub fn get_set_cell(&self) -> &Mutation_SetCell { + pub fn set_cell(&self) -> &mutation::SetCell { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Mutation::SetCell(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_set_cell(&mut self) { self.mutation = ::std::option::Option::None; } pub fn has_set_cell(&self) -> bool { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(..)) => true, + ::std::option::Option::Some(mutation::Mutation::SetCell(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_set_cell(&mut self, v: Mutation_SetCell) { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(v)) + pub fn set_set_cell(&mut self, v: mutation::SetCell) { + self.mutation = ::std::option::Option::Some(mutation::Mutation::SetCell(v)) } // Mutable pointer to the field. - pub fn mut_set_cell(&mut self) -> &mut Mutation_SetCell { - if let ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(_)) = self.mutation { + pub fn mut_set_cell(&mut self) -> &mut mutation::SetCell { + if let ::std::option::Option::Some(mutation::Mutation::SetCell(_)) = self.mutation { } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(Mutation_SetCell::new())); + self.mutation = ::std::option::Option::Some(mutation::Mutation::SetCell(mutation::SetCell::new())); } match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(ref mut v)) => v, + ::std::option::Option::Some(mutation::Mutation::SetCell(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_set_cell(&mut self) -> Mutation_SetCell { + pub fn take_set_cell(&mut self) -> mutation::SetCell { if self.has_set_cell() { match self.mutation.take() { - ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(v)) => v, + ::std::option::Option::Some(mutation::Mutation::SetCell(v)) => v, _ => panic!(), } } else { - Mutation_SetCell::new() + mutation::SetCell::new() } } // .google.bigtable.v2.Mutation.DeleteFromColumn delete_from_column = 2; - - pub fn get_delete_from_column(&self) -> &Mutation_DeleteFromColumn { + pub fn delete_from_column(&self) -> &mutation::DeleteFromColumn { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_delete_from_column(&mut self) { self.mutation = ::std::option::Option::None; } pub fn has_delete_from_column(&self) -> bool { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(..)) => true, + ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_delete_from_column(&mut self, v: Mutation_DeleteFromColumn) { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(v)) + pub fn set_delete_from_column(&mut self, v: mutation::DeleteFromColumn) { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(v)) } // Mutable pointer to the field. - pub fn mut_delete_from_column(&mut self) -> &mut Mutation_DeleteFromColumn { - if let ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(_)) = self.mutation { + pub fn mut_delete_from_column(&mut self) -> &mut mutation::DeleteFromColumn { + if let ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(_)) = self.mutation { } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(Mutation_DeleteFromColumn::new())); + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(mutation::DeleteFromColumn::new())); } match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(ref mut v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_delete_from_column(&mut self) -> Mutation_DeleteFromColumn { + pub fn take_delete_from_column(&mut self) -> mutation::DeleteFromColumn { if self.has_delete_from_column() { match self.mutation.take() { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(v)) => v, _ => panic!(), } } else { - Mutation_DeleteFromColumn::new() + mutation::DeleteFromColumn::new() } } // .google.bigtable.v2.Mutation.DeleteFromFamily delete_from_family = 3; - - pub fn get_delete_from_family(&self) -> &Mutation_DeleteFromFamily { + pub fn delete_from_family(&self) -> &mutation::DeleteFromFamily { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_delete_from_family(&mut self) { self.mutation = ::std::option::Option::None; } pub fn has_delete_from_family(&self) -> bool { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(..)) => true, + ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_delete_from_family(&mut self, v: Mutation_DeleteFromFamily) { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(v)) + pub fn set_delete_from_family(&mut self, v: mutation::DeleteFromFamily) { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(v)) } // Mutable pointer to the field. - pub fn mut_delete_from_family(&mut self) -> &mut Mutation_DeleteFromFamily { - if let ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(_)) = self.mutation { + pub fn mut_delete_from_family(&mut self) -> &mut mutation::DeleteFromFamily { + if let ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(_)) = self.mutation { } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(Mutation_DeleteFromFamily::new())); + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(mutation::DeleteFromFamily::new())); } match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(ref mut v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_delete_from_family(&mut self) -> Mutation_DeleteFromFamily { + pub fn take_delete_from_family(&mut self) -> mutation::DeleteFromFamily { if self.has_delete_from_family() { match self.mutation.take() { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(v)) => v, _ => panic!(), } } else { - Mutation_DeleteFromFamily::new() + mutation::DeleteFromFamily::new() } } // .google.bigtable.v2.Mutation.DeleteFromRow delete_from_row = 4; - - pub fn get_delete_from_row(&self) -> &Mutation_DeleteFromRow { + pub fn delete_from_row(&self) -> &mutation::DeleteFromRow { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_delete_from_row(&mut self) { self.mutation = ::std::option::Option::None; } pub fn has_delete_from_row(&self) -> bool { match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(..)) => true, + ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_delete_from_row(&mut self, v: Mutation_DeleteFromRow) { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(v)) + pub fn set_delete_from_row(&mut self, v: mutation::DeleteFromRow) { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(v)) } // Mutable pointer to the field. - pub fn mut_delete_from_row(&mut self) -> &mut Mutation_DeleteFromRow { - if let ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(_)) = self.mutation { + pub fn mut_delete_from_row(&mut self) -> &mut mutation::DeleteFromRow { + if let ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(_)) = self.mutation { } else { - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(Mutation_DeleteFromRow::new())); + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(mutation::DeleteFromRow::new())); } match self.mutation { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(ref mut v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_delete_from_row(&mut self) -> Mutation_DeleteFromRow { + pub fn take_delete_from_row(&mut self) -> mutation::DeleteFromRow { if self.has_delete_from_row() { match self.mutation.take() { - ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(v)) => v, + ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(v)) => v, _ => panic!(), } } else { - Mutation_DeleteFromRow::new() - } + mutation::DeleteFromRow::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::SetCell>( + "set_cell", + Mutation::has_set_cell, + Mutation::set_cell, + Mutation::mut_set_cell, + Mutation::set_set_cell, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::DeleteFromColumn>( + "delete_from_column", + Mutation::has_delete_from_column, + Mutation::delete_from_column, + Mutation::mut_delete_from_column, + Mutation::set_delete_from_column, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::DeleteFromFamily>( + "delete_from_family", + Mutation::has_delete_from_family, + Mutation::delete_from_family, + Mutation::mut_delete_from_family, + Mutation::set_delete_from_family, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::DeleteFromRow>( + "delete_from_row", + Mutation::has_delete_from_row, + Mutation::delete_from_row, + Mutation::mut_delete_from_row, + Mutation::set_delete_from_row, + )); + oneofs.push(mutation::Mutation::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Mutation", + fields, + oneofs, + ) } } impl ::protobuf::Message for Mutation { + const NAME: &'static str = "Mutation"; + fn is_initialized(&self) -> bool { - if let Some(Mutation_oneof_mutation::set_cell(ref v)) = self.mutation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_mutation::delete_from_column(ref v)) = self.mutation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_mutation::delete_from_family(ref v)) = self.mutation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_mutation::delete_from_row(ref v)) = self.mutation { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::set_cell(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_column(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_family(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mutation = ::std::option::Option::Some(Mutation_oneof_mutation::delete_from_row(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.mutation = ::std::option::Option::Some(mutation::Mutation::SetCell(is.read_message()?)); + }, + 18 => { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromColumn(is.read_message()?)); + }, + 26 => { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromFamily(is.read_message()?)); + }, + 34 => { + self.mutation = ::std::option::Option::Some(mutation::Mutation::DeleteFromRow(is.read_message()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4750,1733 +4263,880 @@ impl ::protobuf::Message for Mutation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.mutation { match v { - &Mutation_oneof_mutation::set_cell(ref v) => { + &mutation::Mutation::SetCell(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_mutation::delete_from_column(ref v) => { + &mutation::Mutation::DeleteFromColumn(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_mutation::delete_from_family(ref v) => { + &mutation::Mutation::DeleteFromFamily(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_mutation::delete_from_row(ref v) => { + &mutation::Mutation::DeleteFromRow(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.mutation { match v { - &Mutation_oneof_mutation::set_cell(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Mutation_oneof_mutation::delete_from_column(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Mutation_oneof_mutation::delete_from_family(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Mutation_oneof_mutation::delete_from_row(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Mutation::SetCell(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }, + &mutation::Mutation::DeleteFromColumn(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &mutation::Mutation::DeleteFromFamily(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + &mutation::Mutation::DeleteFromRow(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Mutation { Mutation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_SetCell>( - "set_cell", - Mutation::has_set_cell, - Mutation::get_set_cell, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_DeleteFromColumn>( - "delete_from_column", - Mutation::has_delete_from_column, - Mutation::get_delete_from_column, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_DeleteFromFamily>( - "delete_from_family", - Mutation::has_delete_from_family, - Mutation::get_delete_from_family, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_DeleteFromRow>( - "delete_from_row", - Mutation::has_delete_from_row, - Mutation::get_delete_from_row, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.mutation = ::std::option::Option::None; + self.mutation = ::std::option::Option::None; + self.mutation = ::std::option::Option::None; + self.mutation = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static Mutation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation::new) + static instance: Mutation = Mutation { + mutation: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Mutation { - fn clear(&mut self) { - self.mutation = ::std::option::Option::None; - self.mutation = ::std::option::Option::None; - self.mutation = ::std::option::Option::None; - self.mutation = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Mutation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Mutation").unwrap()).clone() } } -impl ::std::fmt::Debug for Mutation { +impl ::std::fmt::Display for Mutation { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Mutation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_SetCell { - // message fields - pub family_name: ::std::string::String, - pub column_qualifier: ::std::vec::Vec, - pub timestamp_micros: i64, - pub value: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `Mutation` +pub mod mutation { -impl<'a> ::std::default::Default for &'a Mutation_SetCell { - fn default() -> &'a Mutation_SetCell { - ::default_instance() + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.Mutation.mutation) + pub enum Mutation { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.Mutation.set_cell) + SetCell(SetCell), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.Mutation.delete_from_column) + DeleteFromColumn(DeleteFromColumn), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.Mutation.delete_from_family) + DeleteFromFamily(DeleteFromFamily), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.Mutation.delete_from_row) + DeleteFromRow(DeleteFromRow), } -} -impl Mutation_SetCell { - pub fn new() -> Mutation_SetCell { - ::std::default::Default::default() + impl ::protobuf::Oneof for Mutation { } - // string family_name = 1; - - - pub fn get_family_name(&self) -> &str { - &self.family_name - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); + impl ::protobuf::OneofFull for Mutation { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("mutation").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::std::string::String) { - self.family_name = v; + impl Mutation { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("mutation") + } } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::std::string::String { - &mut self.family_name + /// A Mutation which sets the value of the specified cell. + // @@protoc_insertion_point(message:google.bigtable.v2.Mutation.SetCell) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct SetCell { + // message fields + /// The name of the family into which new data should be written. + /// Must match `[-_.a-zA-Z0-9]+` + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.SetCell.family_name) + pub family_name: ::std::string::String, + /// The qualifier of the column into which new data should be written. + /// Can be any byte string, including the empty string. + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.SetCell.column_qualifier) + pub column_qualifier: ::std::vec::Vec, + /// The timestamp of the cell into which new data should be written. + /// Use -1 for current Bigtable server time. + /// Otherwise, the client should set this value itself, noting that the + /// default value is a timestamp of zero if the field is left unspecified. + /// Values must match the granularity of the table (e.g. micros, millis). + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.SetCell.timestamp_micros) + pub timestamp_micros: i64, + /// The value to be written into the specified cell. + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.SetCell.value) + pub value: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.Mutation.SetCell.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Take field - pub fn take_family_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.family_name, ::std::string::String::new()) + impl<'a> ::std::default::Default for &'a SetCell { + fn default() -> &'a SetCell { + ::default_instance() + } } - // bytes column_qualifier = 2; - + impl SetCell { + pub fn new() -> SetCell { + ::std::default::Default::default() + } - pub fn get_column_qualifier(&self) -> &[u8] { - &self.column_qualifier - } - pub fn clear_column_qualifier(&mut self) { - self.column_qualifier.clear(); - } - - // Param is passed by value, moved - pub fn set_column_qualifier(&mut self, v: ::std::vec::Vec) { - self.column_qualifier = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_column_qualifier(&mut self) -> &mut ::std::vec::Vec { - &mut self.column_qualifier - } - - // Take field - pub fn take_column_qualifier(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.column_qualifier, ::std::vec::Vec::new()) - } - - // int64 timestamp_micros = 3; - - - pub fn get_timestamp_micros(&self) -> i64 { - self.timestamp_micros - } - pub fn clear_timestamp_micros(&mut self) { - self.timestamp_micros = 0; - } - - // Param is passed by value, moved - pub fn set_timestamp_micros(&mut self, v: i64) { - self.timestamp_micros = v; - } - - // bytes value = 4; - - - pub fn get_value(&self) -> &[u8] { - &self.value - } - pub fn clear_value(&mut self) { - self.value.clear(); - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: ::std::vec::Vec) { - self.value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value(&mut self) -> &mut ::std::vec::Vec { - &mut self.value - } - - // Take field - pub fn take_value(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.value, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for Mutation_SetCell { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.family_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.column_qualifier)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.timestamp_micros = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.family_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.family_name); - } - if !self.column_qualifier.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); - } - if self.timestamp_micros != 0 { - my_size += ::protobuf::rt::value_size(3, self.timestamp_micros, ::protobuf::wire_format::WireTypeVarint); - } - if !self.value.is_empty() { - my_size += ::protobuf::rt::bytes_size(4, &self.value); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.family_name.is_empty() { - os.write_string(1, &self.family_name)?; - } - if !self.column_qualifier.is_empty() { - os.write_bytes(2, &self.column_qualifier)?; - } - if self.timestamp_micros != 0 { - os.write_int64(3, self.timestamp_micros)?; - } - if !self.value.is_empty() { - os.write_bytes(4, &self.value)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Mutation_SetCell { - Mutation_SetCell::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "family_name", - |m: &Mutation_SetCell| { &m.family_name }, - |m: &mut Mutation_SetCell| { &mut m.family_name }, + |m: &SetCell| { &m.family_name }, + |m: &mut SetCell| { &mut m.family_name }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "column_qualifier", - |m: &Mutation_SetCell| { &m.column_qualifier }, - |m: &mut Mutation_SetCell| { &mut m.column_qualifier }, + |m: &SetCell| { &m.column_qualifier }, + |m: &mut SetCell| { &mut m.column_qualifier }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "timestamp_micros", - |m: &Mutation_SetCell| { &m.timestamp_micros }, - |m: &mut Mutation_SetCell| { &mut m.timestamp_micros }, + |m: &SetCell| { &m.timestamp_micros }, + |m: &mut SetCell| { &mut m.timestamp_micros }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "value", - |m: &Mutation_SetCell| { &m.value }, - |m: &mut Mutation_SetCell| { &mut m.value }, + |m: &SetCell| { &m.value }, + |m: &mut SetCell| { &mut m.value }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Mutation.SetCell", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Mutation_SetCell { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_SetCell::new) - } -} - -impl ::protobuf::Clear for Mutation_SetCell { - fn clear(&mut self) { - self.family_name.clear(); - self.column_qualifier.clear(); - self.timestamp_micros = 0; - self.value.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Mutation_SetCell { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Mutation_SetCell { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_DeleteFromColumn { - // message fields - pub family_name: ::std::string::String, - pub column_qualifier: ::std::vec::Vec, - pub time_range: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation_DeleteFromColumn { - fn default() -> &'a Mutation_DeleteFromColumn { - ::default_instance() - } -} - -impl Mutation_DeleteFromColumn { - pub fn new() -> Mutation_DeleteFromColumn { - ::std::default::Default::default() - } - - // string family_name = 1; - - - pub fn get_family_name(&self) -> &str { - &self.family_name - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); - } - - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::std::string::String) { - self.family_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::std::string::String { - &mut self.family_name - } - - // Take field - pub fn take_family_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.family_name, ::std::string::String::new()) - } - - // bytes column_qualifier = 2; - - - pub fn get_column_qualifier(&self) -> &[u8] { - &self.column_qualifier - } - pub fn clear_column_qualifier(&mut self) { - self.column_qualifier.clear(); - } - - // Param is passed by value, moved - pub fn set_column_qualifier(&mut self, v: ::std::vec::Vec) { - self.column_qualifier = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_column_qualifier(&mut self) -> &mut ::std::vec::Vec { - &mut self.column_qualifier - } - - // Take field - pub fn take_column_qualifier(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.column_qualifier, ::std::vec::Vec::new()) - } - - // .google.bigtable.v2.TimestampRange time_range = 3; - - - pub fn get_time_range(&self) -> &TimestampRange { - self.time_range.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_time_range(&mut self) { - self.time_range.clear(); - } - - pub fn has_time_range(&self) -> bool { - self.time_range.is_some() - } - - // Param is passed by value, moved - pub fn set_time_range(&mut self, v: TimestampRange) { - self.time_range = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_time_range(&mut self) -> &mut TimestampRange { - if self.time_range.is_none() { - self.time_range.set_default(); } - self.time_range.as_mut().unwrap() - } - - // Take field - pub fn take_time_range(&mut self) -> TimestampRange { - self.time_range.take().unwrap_or_else(|| TimestampRange::new()) } -} -impl ::protobuf::Message for Mutation_DeleteFromColumn { - fn is_initialized(&self) -> bool { - for v in &self.time_range { - if !v.is_initialized() { - return false; + impl ::protobuf::Message for SetCell { + const NAME: &'static str = "SetCell"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.family_name = is.read_string()?; + }, + 18 => { + self.column_qualifier = is.read_bytes()?; + }, + 24 => { + self.timestamp_micros = is.read_int64()?; + }, + 34 => { + self.value = is.read_bytes()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - }; - true - } + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.family_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.column_qualifier)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_range)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.family_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.family_name); + } + if !self.column_qualifier.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); + } + if self.timestamp_micros != 0 { + my_size += ::protobuf::rt::int64_size(3, self.timestamp_micros); + } + if !self.value.is_empty() { + my_size += ::protobuf::rt::bytes_size(4, &self.value); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.family_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.family_name); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.family_name.is_empty() { + os.write_string(1, &self.family_name)?; + } + if !self.column_qualifier.is_empty() { + os.write_bytes(2, &self.column_qualifier)?; + } + if self.timestamp_micros != 0 { + os.write_int64(3, self.timestamp_micros)?; + } + if !self.value.is_empty() { + os.write_bytes(4, &self.value)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - if !self.column_qualifier.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - if let Some(ref v) = self.time_range.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.family_name.is_empty() { - os.write_string(1, &self.family_name)?; + fn new() -> SetCell { + SetCell::new() } - if !self.column_qualifier.is_empty() { - os.write_bytes(2, &self.column_qualifier)?; + + fn clear(&mut self) { + self.family_name.clear(); + self.column_qualifier.clear(); + self.timestamp_micros = 0; + self.value.clear(); + self.special_fields.clear(); } - if let Some(ref v) = self.time_range.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + + fn default_instance() -> &'static SetCell { + static instance: SetCell = SetCell { + family_name: ::std::string::String::new(), + column_qualifier: ::std::vec::Vec::new(), + timestamp_micros: 0, + value: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + impl ::protobuf::MessageFull for SetCell { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.SetCell").unwrap()).clone() + } } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + impl ::std::fmt::Display for SetCell { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + impl ::protobuf::reflect::ProtobufValue for SetCell { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + /// A Mutation which deletes cells from the specified column, optionally + /// restricting the deletions to a given timestamp range. + // @@protoc_insertion_point(message:google.bigtable.v2.Mutation.DeleteFromColumn) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct DeleteFromColumn { + // message fields + /// The name of the family from which cells should be deleted. + /// Must match `[-_.a-zA-Z0-9]+` + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.DeleteFromColumn.family_name) + pub family_name: ::std::string::String, + /// The qualifier of the column from which cells should be deleted. + /// Can be any byte string, including the empty string. + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.DeleteFromColumn.column_qualifier) + pub column_qualifier: ::std::vec::Vec, + /// The range of timestamps within which cells should be deleted. + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.DeleteFromColumn.time_range) + pub time_range: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.Mutation.DeleteFromColumn.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a DeleteFromColumn { + fn default() -> &'a DeleteFromColumn { + ::default_instance() + } } - fn new() -> Mutation_DeleteFromColumn { - Mutation_DeleteFromColumn::new() - } + impl DeleteFromColumn { + pub fn new() -> DeleteFromColumn { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "family_name", - |m: &Mutation_DeleteFromColumn| { &m.family_name }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.family_name }, + |m: &DeleteFromColumn| { &m.family_name }, + |m: &mut DeleteFromColumn| { &mut m.family_name }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "column_qualifier", - |m: &Mutation_DeleteFromColumn| { &m.column_qualifier }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.column_qualifier }, + |m: &DeleteFromColumn| { &m.column_qualifier }, + |m: &mut DeleteFromColumn| { &mut m.column_qualifier }, )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::TimestampRange>( "time_range", - |m: &Mutation_DeleteFromColumn| { &m.time_range }, - |m: &mut Mutation_DeleteFromColumn| { &mut m.time_range }, + |m: &DeleteFromColumn| { &m.time_range }, + |m: &mut DeleteFromColumn| { &mut m.time_range }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Mutation.DeleteFromColumn", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Mutation_DeleteFromColumn { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_DeleteFromColumn::new) - } -} - -impl ::protobuf::Clear for Mutation_DeleteFromColumn { - fn clear(&mut self) { - self.family_name.clear(); - self.column_qualifier.clear(); - self.time_range.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Mutation_DeleteFromColumn { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Mutation_DeleteFromColumn { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_DeleteFromFamily { - // message fields - pub family_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation_DeleteFromFamily { - fn default() -> &'a Mutation_DeleteFromFamily { - ::default_instance() - } -} - -impl Mutation_DeleteFromFamily { - pub fn new() -> Mutation_DeleteFromFamily { - ::std::default::Default::default() - } - - // string family_name = 1; - - - pub fn get_family_name(&self) -> &str { - &self.family_name - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); - } - - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::std::string::String) { - self.family_name = v; + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::std::string::String { - &mut self.family_name - } + impl ::protobuf::Message for DeleteFromColumn { + const NAME: &'static str = "DeleteFromColumn"; - // Take field - pub fn take_family_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.family_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Mutation_DeleteFromFamily { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.family_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.family_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.family_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.family_name.is_empty() { - os.write_string(1, &self.family_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Mutation_DeleteFromFamily { - Mutation_DeleteFromFamily::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "family_name", - |m: &Mutation_DeleteFromFamily| { &m.family_name }, - |m: &mut Mutation_DeleteFromFamily| { &mut m.family_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.DeleteFromFamily", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Mutation_DeleteFromFamily { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_DeleteFromFamily::new) - } -} - -impl ::protobuf::Clear for Mutation_DeleteFromFamily { - fn clear(&mut self) { - self.family_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Mutation_DeleteFromFamily { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Mutation_DeleteFromFamily { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_DeleteFromRow { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation_DeleteFromRow { - fn default() -> &'a Mutation_DeleteFromRow { - ::default_instance() - } -} - -impl Mutation_DeleteFromRow { - pub fn new() -> Mutation_DeleteFromRow { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Mutation_DeleteFromRow { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Mutation_DeleteFromRow { - Mutation_DeleteFromRow::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.DeleteFromRow", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Mutation_DeleteFromRow { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_DeleteFromRow::new) - } -} - -impl ::protobuf::Clear for Mutation_DeleteFromRow { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Mutation_DeleteFromRow { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Mutation_DeleteFromRow { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadModifyWriteRule { - // message fields - pub family_name: ::std::string::String, - pub column_qualifier: ::std::vec::Vec, - // message oneof groups - pub rule: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadModifyWriteRule { - fn default() -> &'a ReadModifyWriteRule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReadModifyWriteRule_oneof_rule { - append_value(::std::vec::Vec), - increment_amount(i64), -} - -impl ReadModifyWriteRule { - pub fn new() -> ReadModifyWriteRule { - ::std::default::Default::default() - } - - // string family_name = 1; - - - pub fn get_family_name(&self) -> &str { - &self.family_name - } - pub fn clear_family_name(&mut self) { - self.family_name.clear(); - } - - // Param is passed by value, moved - pub fn set_family_name(&mut self, v: ::std::string::String) { - self.family_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_family_name(&mut self) -> &mut ::std::string::String { - &mut self.family_name - } - - // Take field - pub fn take_family_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.family_name, ::std::string::String::new()) - } - - // bytes column_qualifier = 2; - - - pub fn get_column_qualifier(&self) -> &[u8] { - &self.column_qualifier - } - pub fn clear_column_qualifier(&mut self) { - self.column_qualifier.clear(); - } - - // Param is passed by value, moved - pub fn set_column_qualifier(&mut self, v: ::std::vec::Vec) { - self.column_qualifier = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_column_qualifier(&mut self) -> &mut ::std::vec::Vec { - &mut self.column_qualifier - } - - // Take field - pub fn take_column_qualifier(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.column_qualifier, ::std::vec::Vec::new()) - } - - // bytes append_value = 3; - - - pub fn get_append_value(&self) -> &[u8] { - match self.rule { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(ref v)) => v, - _ => &[], - } - } - pub fn clear_append_value(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_append_value(&self) -> bool { - match self.rule { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_append_value(&mut self, v: ::std::vec::Vec) { - self.rule = ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(v)) - } - - // Mutable pointer to the field. - pub fn mut_append_value(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(_)) = self.rule { - } else { - self.rule = ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(::std::vec::Vec::new())); - } - match self.rule { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_append_value(&mut self) -> ::std::vec::Vec { - if self.has_append_value() { - match self.rule.take() { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } - } - - // int64 increment_amount = 4; - - - pub fn get_increment_amount(&self) -> i64 { - match self.rule { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::increment_amount(v)) => v, - _ => 0, - } - } - pub fn clear_increment_amount(&mut self) { - self.rule = ::std::option::Option::None; - } - - pub fn has_increment_amount(&self) -> bool { - match self.rule { - ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::increment_amount(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_increment_amount(&mut self, v: i64) { - self.rule = ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::increment_amount(v)) - } -} - -impl ::protobuf::Message for ReadModifyWriteRule { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.family_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.column_qualifier)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::append_value(is.read_bytes()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.rule = ::std::option::Option::Some(ReadModifyWriteRule_oneof_rule::increment_amount(is.read_int64()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.family_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.family_name); - } - if !self.column_qualifier.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); - } - if let ::std::option::Option::Some(ref v) = self.rule { - match v { - &ReadModifyWriteRule_oneof_rule::append_value(ref v) => { - my_size += ::protobuf::rt::bytes_size(3, &v); - }, - &ReadModifyWriteRule_oneof_rule::increment_amount(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.family_name.is_empty() { - os.write_string(1, &self.family_name)?; + fn is_initialized(&self) -> bool { + true } - if !self.column_qualifier.is_empty() { - os.write_bytes(2, &self.column_qualifier)?; - } - if let ::std::option::Option::Some(ref v) = self.rule { - match v { - &ReadModifyWriteRule_oneof_rule::append_value(ref v) => { - os.write_bytes(3, v)?; - }, - &ReadModifyWriteRule_oneof_rule::increment_amount(v) => { - os.write_int64(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadModifyWriteRule { - ReadModifyWriteRule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "family_name", - |m: &ReadModifyWriteRule| { &m.family_name }, - |m: &mut ReadModifyWriteRule| { &mut m.family_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "column_qualifier", - |m: &ReadModifyWriteRule| { &m.column_qualifier }, - |m: &mut ReadModifyWriteRule| { &mut m.column_qualifier }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "append_value", - ReadModifyWriteRule::has_append_value, - ReadModifyWriteRule::get_append_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor::<_>( - "increment_amount", - ReadModifyWriteRule::has_increment_amount, - ReadModifyWriteRule::get_increment_amount, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadModifyWriteRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadModifyWriteRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadModifyWriteRule::new) - } -} - -impl ::protobuf::Clear for ReadModifyWriteRule { - fn clear(&mut self) { - self.family_name.clear(); - self.column_qualifier.clear(); - self.rule = ::std::option::Option::None; - self.rule = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadModifyWriteRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StreamPartition { - // message fields - pub row_range: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StreamPartition { - fn default() -> &'a StreamPartition { - ::default_instance() - } -} - -impl StreamPartition { - pub fn new() -> StreamPartition { - ::std::default::Default::default() - } - - // .google.bigtable.v2.RowRange row_range = 1; - - - pub fn get_row_range(&self) -> &RowRange { - self.row_range.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_row_range(&mut self) { - self.row_range.clear(); - } - - pub fn has_row_range(&self) -> bool { - self.row_range.is_some() - } - - // Param is passed by value, moved - pub fn set_row_range(&mut self, v: RowRange) { - self.row_range = ::protobuf::SingularPtrField::some(v); - } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_range(&mut self) -> &mut RowRange { - if self.row_range.is_none() { - self.row_range.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.family_name = is.read_string()?; + }, + 18 => { + self.column_qualifier = is.read_bytes()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.time_range)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - self.row_range.as_mut().unwrap() - } - // Take field - pub fn take_row_range(&mut self) -> RowRange { - self.row_range.take().unwrap_or_else(|| RowRange::new()) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.family_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.family_name); + } + if !self.column_qualifier.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); + } + if let Some(v) = self.time_range.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl ::protobuf::Message for StreamPartition { - fn is_initialized(&self) -> bool { - for v in &self.row_range { - if !v.is_initialized() { - return false; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.family_name.is_empty() { + os.write_string(1, &self.family_name)?; } - }; - true - } + if !self.column_qualifier.is_empty() { + os.write_bytes(2, &self.column_qualifier)?; + } + if let Some(v) = self.time_range.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row_range)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.row_range.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.row_range.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn new() -> DeleteFromColumn { + DeleteFromColumn::new() } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + fn clear(&mut self) { + self.family_name.clear(); + self.column_qualifier.clear(); + self.time_range.clear(); + self.special_fields.clear(); + } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn default_instance() -> &'static DeleteFromColumn { + static instance: DeleteFromColumn = DeleteFromColumn { + family_name: ::std::string::String::new(), + column_qualifier: ::std::vec::Vec::new(), + time_range: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + impl ::protobuf::MessageFull for DeleteFromColumn { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.DeleteFromColumn").unwrap()).clone() + } } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) + impl ::std::fmt::Display for DeleteFromColumn { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + + impl ::protobuf::reflect::ProtobufValue for DeleteFromColumn { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + /// A Mutation which deletes all cells from the specified column family. + // @@protoc_insertion_point(message:google.bigtable.v2.Mutation.DeleteFromFamily) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct DeleteFromFamily { + // message fields + /// The name of the family from which cells should be deleted. + /// Must match `[-_.a-zA-Z0-9]+` + // @@protoc_insertion_point(field:google.bigtable.v2.Mutation.DeleteFromFamily.family_name) + pub family_name: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.Mutation.DeleteFromFamily.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn new() -> StreamPartition { - StreamPartition::new() + impl<'a> ::std::default::Default for &'a DeleteFromFamily { + fn default() -> &'a DeleteFromFamily { + ::default_instance() + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "row_range", - |m: &StreamPartition| { &m.row_range }, - |m: &mut StreamPartition| { &mut m.row_range }, + impl DeleteFromFamily { + pub fn new() -> DeleteFromFamily { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "family_name", + |m: &DeleteFromFamily| { &m.family_name }, + |m: &mut DeleteFromFamily| { &mut m.family_name }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamPartition", + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Mutation.DeleteFromFamily", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static StreamPartition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamPartition::new) - } -} + impl ::protobuf::Message for DeleteFromFamily { + const NAME: &'static str = "DeleteFromFamily"; -impl ::protobuf::Clear for StreamPartition { - fn clear(&mut self) { - self.row_range.clear(); - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::fmt::Debug for StreamPartition { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.family_name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for StreamPartition { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.family_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.family_name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(PartialEq,Clone,Default)] -pub struct StreamContinuationTokens { - // message fields - pub tokens: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.family_name.is_empty() { + os.write_string(1, &self.family_name)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a StreamContinuationTokens { - fn default() -> &'a StreamContinuationTokens { - ::default_instance() - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl StreamContinuationTokens { - pub fn new() -> StreamContinuationTokens { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // repeated .google.bigtable.v2.StreamContinuationToken tokens = 1; + fn new() -> DeleteFromFamily { + DeleteFromFamily::new() + } + fn clear(&mut self) { + self.family_name.clear(); + self.special_fields.clear(); + } - pub fn get_tokens(&self) -> &[StreamContinuationToken] { - &self.tokens - } - pub fn clear_tokens(&mut self) { - self.tokens.clear(); + fn default_instance() -> &'static DeleteFromFamily { + static instance: DeleteFromFamily = DeleteFromFamily { + family_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Param is passed by value, moved - pub fn set_tokens(&mut self, v: ::protobuf::RepeatedField) { - self.tokens = v; + impl ::protobuf::MessageFull for DeleteFromFamily { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.DeleteFromFamily").unwrap()).clone() + } } - // Mutable pointer to the field. - pub fn mut_tokens(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.tokens + impl ::std::fmt::Display for DeleteFromFamily { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Take field - pub fn take_tokens(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.tokens, ::protobuf::RepeatedField::new()) + impl ::protobuf::reflect::ProtobufValue for DeleteFromFamily { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::protobuf::Message for StreamContinuationTokens { - fn is_initialized(&self) -> bool { - for v in &self.tokens { - if !v.is_initialized() { - return false; - } - }; - true + /// A Mutation which deletes all cells from the containing row. + // @@protoc_insertion_point(message:google.bigtable.v2.Mutation.DeleteFromRow) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct DeleteFromRow { + // special fields + // @@protoc_insertion_point(special_field:google.bigtable.v2.Mutation.DeleteFromRow.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.tokens)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + impl<'a> ::std::default::Default for &'a DeleteFromRow { + fn default() -> &'a DeleteFromRow { + ::default_instance() } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.tokens { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } + impl DeleteFromRow { + pub fn new() -> DeleteFromRow { + ::std::default::Default::default() + } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.tokens { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Mutation.DeleteFromRow", + fields, + oneofs, + ) + } } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } + impl ::protobuf::Message for DeleteFromRow { + const NAME: &'static str = "DeleteFromRow"; - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } + fn is_initialized(&self) -> bool { + true + } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn new() -> StreamContinuationTokens { - StreamContinuationTokens::new() - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "tokens", - |m: &StreamContinuationTokens| { &m.tokens }, - |m: &mut StreamContinuationTokens| { &mut m.tokens }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamContinuationTokens", - fields, - file_descriptor_proto() - ) - }) - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> DeleteFromRow { + DeleteFromRow::new() + } - fn default_instance() -> &'static StreamContinuationTokens { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamContinuationTokens::new) + fn clear(&mut self) { + self.special_fields.clear(); + } + + fn default_instance() -> &'static DeleteFromRow { + static instance: DeleteFromRow = DeleteFromRow { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for StreamContinuationTokens { - fn clear(&mut self) { - self.tokens.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for DeleteFromRow { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.DeleteFromRow").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for StreamContinuationTokens { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for DeleteFromRow { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for StreamContinuationTokens { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for DeleteFromRow { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] -pub struct StreamContinuationToken { +/// Specifies an atomic read/modify/write operation on the latest value of the +/// specified column. +// @@protoc_insertion_point(message:google.bigtable.v2.ReadModifyWriteRule) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ReadModifyWriteRule { // message fields - pub partition: ::protobuf::SingularPtrField, - pub token: ::std::string::String, + /// The name of the family to which the read/modify/write should be applied. + /// Must match `[-_.a-zA-Z0-9]+` + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRule.family_name) + pub family_name: ::std::string::String, + /// The qualifier of the column to which the read/modify/write should be + /// applied. + /// Can be any byte string, including the empty string. + // @@protoc_insertion_point(field:google.bigtable.v2.ReadModifyWriteRule.column_qualifier) + pub column_qualifier: ::std::vec::Vec, + // message oneof groups + pub rule: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.bigtable.v2.ReadModifyWriteRule.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a StreamContinuationToken { - fn default() -> &'a StreamContinuationToken { - ::default_instance() +impl<'a> ::std::default::Default for &'a ReadModifyWriteRule { + fn default() -> &'a ReadModifyWriteRule { + ::default_instance() } } -impl StreamContinuationToken { - pub fn new() -> StreamContinuationToken { +impl ReadModifyWriteRule { + pub fn new() -> ReadModifyWriteRule { ::std::default::Default::default() } - // .google.bigtable.v2.StreamPartition partition = 1; - + // bytes append_value = 3; - pub fn get_partition(&self) -> &StreamPartition { - self.partition.as_ref().unwrap_or_else(|| ::default_instance()) + pub fn append_value(&self) -> &[u8] { + match self.rule { + ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(ref v)) => v, + _ => &[], + } } - pub fn clear_partition(&mut self) { - self.partition.clear(); + + pub fn clear_append_value(&mut self) { + self.rule = ::std::option::Option::None; } - pub fn has_partition(&self) -> bool { - self.partition.is_some() + pub fn has_append_value(&self) -> bool { + match self.rule { + ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_partition(&mut self, v: StreamPartition) { - self.partition = ::protobuf::SingularPtrField::some(v); + pub fn set_append_value(&mut self, v: ::std::vec::Vec) { + self.rule = ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition(&mut self) -> &mut StreamPartition { - if self.partition.is_none() { - self.partition.set_default(); + pub fn mut_append_value(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(_)) = self.rule { + } else { + self.rule = ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(::std::vec::Vec::new())); + } + match self.rule { + ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(ref mut v)) => v, + _ => panic!(), } - self.partition.as_mut().unwrap() } // Take field - pub fn take_partition(&mut self) -> StreamPartition { - self.partition.take().unwrap_or_else(|| StreamPartition::new()) + pub fn take_append_value(&mut self) -> ::std::vec::Vec { + if self.has_append_value() { + match self.rule.take() { + ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } } - // string token = 2; - + // int64 increment_amount = 4; - pub fn get_token(&self) -> &str { - &self.token - } - pub fn clear_token(&mut self) { - self.token.clear(); + pub fn increment_amount(&self) -> i64 { + match self.rule { + ::std::option::Option::Some(read_modify_write_rule::Rule::IncrementAmount(v)) => v, + _ => 0, + } } - // Param is passed by value, moved - pub fn set_token(&mut self, v: ::std::string::String) { - self.token = v; + pub fn clear_increment_amount(&mut self) { + self.rule = ::std::option::Option::None; } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_token(&mut self) -> &mut ::std::string::String { - &mut self.token + pub fn has_increment_amount(&self) -> bool { + match self.rule { + ::std::option::Option::Some(read_modify_write_rule::Rule::IncrementAmount(..)) => true, + _ => false, + } } - // Take field - pub fn take_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.token, ::std::string::String::new()) + // Param is passed by value, moved + pub fn set_increment_amount(&mut self, v: i64) { + self.rule = ::std::option::Option::Some(read_modify_write_rule::Rule::IncrementAmount(v)) + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "family_name", + |m: &ReadModifyWriteRule| { &m.family_name }, + |m: &mut ReadModifyWriteRule| { &mut m.family_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "column_qualifier", + |m: &ReadModifyWriteRule| { &m.column_qualifier }, + |m: &mut ReadModifyWriteRule| { &mut m.column_qualifier }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "append_value", + ReadModifyWriteRule::has_append_value, + ReadModifyWriteRule::append_value, + ReadModifyWriteRule::set_append_value, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "increment_amount", + ReadModifyWriteRule::has_increment_amount, + ReadModifyWriteRule::increment_amount, + ReadModifyWriteRule::set_increment_amount, + )); + oneofs.push(read_modify_write_rule::Rule::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadModifyWriteRule", + fields, + oneofs, + ) } } -impl ::protobuf::Message for StreamContinuationToken { +impl ::protobuf::Message for ReadModifyWriteRule { + const NAME: &'static str = "ReadModifyWriteRule"; + fn is_initialized(&self) -> bool { - for v in &self.partition { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.family_name = is.read_string()?; + }, + 18 => { + self.column_qualifier = is.read_bytes()?; + }, + 26 => { + self.rule = ::std::option::Option::Some(read_modify_write_rule::Rule::AppendValue(is.read_bytes()?)); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.token)?; + 32 => { + self.rule = ::std::option::Option::Some(read_modify_write_rule::Rule::IncrementAmount(is.read_int64()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6485,108 +5145,125 @@ impl ::protobuf::Message for StreamContinuationToken { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.partition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.family_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.family_name); + } + if !self.column_qualifier.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.column_qualifier); } - if !self.token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.token); + if let ::std::option::Option::Some(ref v) = self.rule { + match v { + &read_modify_write_rule::Rule::AppendValue(ref v) => { + my_size += ::protobuf::rt::bytes_size(3, &v); + }, + &read_modify_write_rule::Rule::IncrementAmount(v) => { + my_size += ::protobuf::rt::int64_size(4, v); + }, + }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.partition.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.family_name.is_empty() { + os.write_string(1, &self.family_name)?; + } + if !self.column_qualifier.is_empty() { + os.write_bytes(2, &self.column_qualifier)?; } - if !self.token.is_empty() { - os.write_string(2, &self.token)?; + if let ::std::option::Option::Some(ref v) = self.rule { + match v { + &read_modify_write_rule::Rule::AppendValue(ref v) => { + os.write_bytes(3, v)?; + }, + &read_modify_write_rule::Rule::IncrementAmount(v) => { + os.write_int64(4, v)?; + }, + }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> ReadModifyWriteRule { + ReadModifyWriteRule::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn clear(&mut self) { + self.family_name.clear(); + self.column_qualifier.clear(); + self.rule = ::std::option::Option::None; + self.rule = ::std::option::Option::None; + self.special_fields.clear(); } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn default_instance() -> &'static ReadModifyWriteRule { + static instance: ReadModifyWriteRule = ReadModifyWriteRule { + family_name: ::std::string::String::new(), + column_qualifier: ::std::vec::Vec::new(), + rule: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - fn new() -> StreamContinuationToken { - StreamContinuationToken::new() +impl ::protobuf::MessageFull for ReadModifyWriteRule { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadModifyWriteRule").unwrap()).clone() } +} - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition", - |m: &StreamContinuationToken| { &m.partition }, - |m: &mut StreamContinuationToken| { &mut m.partition }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "token", - |m: &StreamContinuationToken| { &m.token }, - |m: &mut StreamContinuationToken| { &mut m.token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamContinuationToken", - fields, - file_descriptor_proto() - ) - }) +impl ::std::fmt::Display for ReadModifyWriteRule { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - fn default_instance() -> &'static StreamContinuationToken { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamContinuationToken::new) - } +impl ::protobuf::reflect::ProtobufValue for ReadModifyWriteRule { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::Clear for StreamContinuationToken { - fn clear(&mut self) { - self.partition.clear(); - self.token.clear(); - self.unknown_fields.clear(); +/// Nested message and enums of message `ReadModifyWriteRule` +pub mod read_modify_write_rule { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.bigtable.v2.ReadModifyWriteRule.rule) + pub enum Rule { + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ReadModifyWriteRule.append_value) + AppendValue(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.bigtable.v2.ReadModifyWriteRule.increment_amount) + IncrementAmount(i64), } -} -impl ::std::fmt::Debug for StreamContinuationToken { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::protobuf::Oneof for Rule { + } + + impl ::protobuf::OneofFull for Rule { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("rule").unwrap()).clone() + } } -} -impl ::protobuf::reflect::ProtobufValue for StreamContinuationToken { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl Rule { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("rule") + } } } @@ -6671,35 +5348,28 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\x01(\tR\nfamilyName\x12)\n\x10column_qualifier\x18\x02\x20\x01(\x0c\ R\x0fcolumnQualifier\x12#\n\x0cappend_value\x18\x03\x20\x01(\x0cH\0R\x0b\ appendValue\x12+\n\x10increment_amount\x18\x04\x20\x01(\x03H\0R\x0fincre\ - mentAmountB\x06\n\x04rule\"L\n\x0fStreamPartition\x129\n\trow_range\x18\ - \x01\x20\x01(\x0b2\x1c.google.bigtable.v2.RowRangeR\x08rowRange\"_\n\x18\ - StreamContinuationTokens\x12C\n\x06tokens\x18\x01\x20\x03(\x0b2+.google.\ - bigtable.v2.StreamContinuationTokenR\x06tokens\"r\n\x17StreamContinuatio\ - nToken\x12A\n\tpartition\x18\x01\x20\x01(\x0b2#.google.bigtable.v2.Strea\ - mPartitionR\tpartition\x12\x14\n\x05token\x18\x02\x20\x01(\tR\x05tokenB\ - \xb5\x01\n\x16com.google.bigtable.v2B\tDataProtoP\x01Z:google.golang.org\ - /genproto/googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtab\ - le.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::B\ - igtable::V2J\xe5\xbd\x01\n\x07\x12\x05\x0e\0\xaf\x04\x01\n\xbc\x04\n\x01\ - \x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\ - \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ - \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1b\n\x08\n\x01\x08\x12\ - \x03\x12\05\n\t\n\x02\x08%\x12\x03\x12\05\n\x08\n\x01\x08\x12\x03\x13\0Q\ - \n\t\n\x02\x08\x0b\x12\x03\x13\0Q\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0*\n\t\n\x02\x08\ - \x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0/\n\t\n\x02\x08\x01\x12\ - \x03\x16\0/\n\x08\n\x01\x08\x12\x03\x17\05\n\t\n\x02\x08)\x12\x03\x17\05\ - \n\x08\n\x01\x08\x12\x03\x18\04\n\t\n\x02\x08-\x12\x03\x18\04\n\x90\x01\ + mentAmountB\x06\n\x04ruleB\x97\x01\n\x16com.google.bigtable.v2B\tDataPro\ + toP\x01Z:google.golang.org/genproto/googleapis/bigtable/v2;bigtable\xaa\ + \x02\x18Google.Cloud.Bigtable.V2\xca\x02\x18Google\\Cloud\\Bigtable\\V2J\ + \xb1\xb5\x01\n\x07\x12\x05\x0f\0\x96\x04\x01\n\xbe\x04\n\x01\x0c\x12\x03\ + \x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licens\ + ed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"\ + License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20i\ + n\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20\ + a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://ww\ + w.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20app\ + licable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20\ + distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ + \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ + S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ + \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ + \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ + \n\x08\n\x01\x02\x12\x03\x11\0\x1b\n\x08\n\x01\x08\x12\x03\x13\05\n\t\n\ + \x02\x08%\x12\x03\x13\05\n\x08\n\x01\x08\x12\x03\x14\0Q\n\t\n\x02\x08\ + \x0b\x12\x03\x14\0Q\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\ + \x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0*\n\t\n\x02\x08\x08\x12\x03\ + \x16\0*\n\x08\n\x01\x08\x12\x03\x17\0/\n\t\n\x02\x08\x01\x12\x03\x17\0/\ + \n\x08\n\x01\x08\x12\x03\x18\05\n\t\n\x02\x08)\x12\x03\x18\05\n\x90\x01\ \n\x02\x04\0\x12\x04\x1c\0%\x01\x1a\x83\x01\x20Specifies\x20the\x20compl\ ete\x20(requested)\x20contents\x20of\x20a\x20single\x20row\x20of\x20a\ \x20table.\n\x20Rows\x20which\x20exceed\x20256MiB\x20in\x20size\x20canno\ @@ -6884,7 +5554,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ing\x20an\x20exclusive\x20upper\x20bound\x20for\x20the\x20range.\n\n\r\n\ \x05\x04\x08\x02\x03\x05\x12\x04\xb0\x01\x04\t\n\r\n\x05\x04\x08\x02\x03\ \x01\x12\x04\xb0\x01\n\x18\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xb0\x01\ - \x1b\x1c\n\xaa\x0f\n\x02\x04\t\x12\x06\xd5\x01\0\xb8\x03\x01\x1a\x9b\x0f\ + \x1b\x1c\n\xa9\x0f\n\x02\x04\t\x12\x06\xd5\x01\0\xb8\x03\x01\x1a\x9a\x0f\ \x20Takes\x20a\x20row\x20as\x20input\x20and\x20produces\x20an\x20alterna\ te\x20view\x20of\x20the\x20row\x20based\x20on\n\x20specified\x20rules.\ \x20For\x20example,\x20a\x20RowFilter\x20might\x20trim\x20down\x20a\x20r\ @@ -6923,7 +5593,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ are\x20described\x20in\x20more\x20detail\x20in\x20the\n\x20RowFilter.Cha\ in\x20and\x20RowFilter.Interleave\x20documentation.\n\n\x20The\x20total\ \x20serialized\x20size\x20of\x20a\x20RowFilter\x20message\x20must\x20not\ - \n\x20exceed\x2020480\x20bytes,\x20and\x20RowFilters\x20may\x20not\x20be\ + \n\x20exceed\x204096\x20bytes,\x20and\x20RowFilters\x20may\x20not\x20be\ \x20nested\x20within\x20each\x20other\n\x20(in\x20Chains\x20or\x20Interl\ eaves)\x20to\x20a\x20depth\x20of\x20more\x20than\x2020.\n\n\x0b\n\x03\ \x04\t\x01\x12\x04\xd5\x01\x08\x11\nV\n\x04\x04\t\x03\0\x12\x06\xd7\x01\ @@ -7255,7 +5925,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s\x20of\x20the\x20input.\x20This\x20may\x20be\x20relaxed\x20in\n\x20the\ \x20future.\n\n\r\n\x05\x04\t\x02\x12\x05\x12\x04\xb6\x03\x04\n\n\r\n\ \x05\x04\t\x02\x12\x01\x12\x04\xb6\x03\x0b\"\n\r\n\x05\x04\t\x02\x12\x03\ - \x12\x04\xb6\x03%'\nR\n\x02\x04\n\x12\x06\xbb\x03\0\xf8\x03\x01\x1aD\x20\ + \x12\x04\xb6\x03%'\nR\n\x02\x04\n\x12\x06\xbb\x03\0\xfa\x03\x01\x1aD\x20\ Specifies\x20a\x20particular\x20change\x20to\x20be\x20made\x20to\x20the\ \x20contents\x20of\x20a\x20row.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xbb\x03\ \x08\x10\nH\n\x04\x04\n\x03\0\x12\x06\xbd\x03\x02\xcf\x03\x03\x1a8\x20A\ @@ -7315,101 +5985,105 @@ static file_descriptor_proto_data: &'static [u8] = b"\ st\x20match\x20`[-_.a-zA-Z0-9]+`\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x05\ \x12\x04\xe4\x03\x04\n\n\x0f\n\x07\x04\n\x03\x02\x02\0\x01\x12\x04\xe4\ \x03\x0b\x16\n\x0f\n\x07\x04\n\x03\x02\x02\0\x03\x12\x04\xe4\x03\x19\x1a\ - \nK\n\x04\x04\n\x03\x03\x12\x04\xe8\x03\x02\x1a\x1a=\x20A\x20Mutation\ - \x20which\x20deletes\x20all\x20cells\x20from\x20the\x20containing\x20row\ - .\n\n\r\n\x05\x04\n\x03\x03\x01\x12\x04\xe8\x03\n\x17\n@\n\x04\x04\n\x08\ - \0\x12\x06\xeb\x03\x02\xf7\x03\x03\x1a0\x20Which\x20of\x20the\x20possibl\ - e\x20Mutation\x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\0\x01\x12\ - \x04\xeb\x03\x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xed\x03\x04\x19\x1a\ - \x15\x20Set\x20a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\ - \xed\x03\x04\x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xed\x03\x0c\x14\n\r\n\ - \x05\x04\n\x02\0\x03\x12\x04\xed\x03\x17\x18\n,\n\x04\x04\n\x02\x01\x12\ - \x04\xf0\x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\x20column.\n\ - \n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xf0\x03\x04\x14\n\r\n\x05\x04\n\x02\ - \x01\x01\x12\x04\xf0\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xf0\ - \x03*+\n3\n\x04\x04\n\x02\x02\x12\x04\xf3\x03\x04,\x1a%\x20Deletes\x20ce\ - lls\x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\ - \x04\xf3\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xf3\x03\x15'\n\ - \r\n\x05\x04\n\x02\x02\x03\x12\x04\xf3\x03*+\n2\n\x04\x04\n\x02\x03\x12\ - \x04\xf6\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\x20entire\x20r\ - ow.\n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xf6\x03\x04\x11\n\r\n\x05\x04\ - \n\x02\x03\x01\x12\x04\xf6\x03\x12!\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ - \xf6\x03$%\nm\n\x02\x04\x0b\x12\x06\xfc\x03\0\x94\x04\x01\x1a_\x20Specif\ - ies\x20an\x20atomic\x20read/modify/write\x20operation\x20on\x20the\x20la\ - test\x20value\x20of\x20the\n\x20specified\x20column.\n\n\x0b\n\x03\x04\ - \x0b\x01\x12\x04\xfc\x03\x08\x1b\nv\n\x04\x04\x0b\x02\0\x12\x04\xff\x03\ - \x02\x19\x1ah\x20The\x20name\x20of\x20the\x20family\x20to\x20which\x20th\ - e\x20read/modify/write\x20should\x20be\x20applied.\n\x20Must\x20match\ - \x20`[-_.a-zA-Z0-9]+`\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xff\x03\x02\ - \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xff\x03\t\x14\n\r\n\x05\x04\x0b\ - \x02\0\x03\x12\x04\xff\x03\x17\x18\n\x94\x01\n\x04\x04\x0b\x02\x01\x12\ - \x04\x84\x04\x02\x1d\x1a\x85\x01\x20The\x20qualifier\x20of\x20the\x20col\ - umn\x20to\x20which\x20the\x20read/modify/write\x20should\x20be\n\x20appl\ - ied.\n\x20Can\x20be\x20any\x20byte\x20string,\x20including\x20the\x20emp\ - ty\x20string.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\x84\x04\x02\x07\n\ - \r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x84\x04\x08\x18\n\r\n\x05\x04\x0b\ - \x02\x01\x03\x12\x04\x84\x04\x1b\x1c\nj\n\x04\x04\x0b\x08\0\x12\x06\x88\ - \x04\x02\x93\x04\x03\x1aZ\x20The\x20rule\x20used\x20to\x20determine\x20t\ - he\x20column's\x20new\x20latest\x20value\x20from\x20its\x20current\n\x20\ - latest\x20value.\n\n\r\n\x05\x04\x0b\x08\0\x01\x12\x04\x88\x04\x08\x0c\n\ - \xab\x01\n\x04\x04\x0b\x02\x02\x12\x04\x8c\x04\x04\x1b\x1a\x9c\x01\x20Ru\ - le\x20specifying\x20that\x20`append_value`\x20be\x20appended\x20to\x20th\ - e\x20existing\x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unse\ - t,\x20it\x20will\x20be\x20treated\x20as\x20containing\x20the\n\x20empty\ - \x20string.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\x04\x8c\x04\x04\t\n\r\n\ - \x05\x04\x0b\x02\x02\x01\x12\x04\x8c\x04\n\x16\n\r\n\x05\x04\x0b\x02\x02\ - \x03\x12\x04\x8c\x04\x19\x1a\n\xb3\x02\n\x04\x04\x0b\x02\x03\x12\x04\x92\ - \x04\x04\x1f\x1a\xa4\x02\x20Rule\x20specifying\x20that\x20`increment_amo\ - unt`\x20be\x20added\x20to\x20the\x20existing\x20value.\n\x20If\x20the\ - \x20targeted\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20a\ - s\x20containing\x20a\x20zero.\n\x20Otherwise,\x20the\x20targeted\x20cell\ - \x20must\x20contain\x20an\x208-byte\x20value\x20(interpreted\n\x20as\x20\ - a\x2064-bit\x20big-endian\x20signed\x20integer),\x20or\x20the\x20entire\ - \x20request\x20will\x20fail.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\x92\ - \x04\x04\t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\x92\x04\n\x1a\n\r\n\x05\ - \x04\x0b\x02\x03\x03\x12\x04\x92\x04\x1d\x1e\nq\n\x02\x04\x0c\x12\x06\ - \x98\x04\0\x9c\x04\x01\x1ac\x20NOTE:\x20This\x20API\x20is\x20intended\ - \x20to\x20be\x20used\x20by\x20Apache\x20Beam\x20BigtableIO.\n\x20A\x20pa\ - rtition\x20of\x20a\x20change\x20stream.\n\n\x0b\n\x03\x04\x0c\x01\x12\ - \x04\x98\x04\x08\x17\nr\n\x04\x04\x0c\x02\0\x12\x04\x9b\x04\x02\x19\x1ad\ - \x20The\x20row\x20range\x20covered\x20by\x20this\x20partition\x20and\x20\ - is\x20specified\x20by\n\x20[`start_key_closed`,\x20`end_key_open`).\n\n\ - \r\n\x05\x04\x0c\x02\0\x06\x12\x04\x9b\x04\x02\n\n\r\n\x05\x04\x0c\x02\0\ - \x01\x12\x04\x9b\x04\x0b\x14\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x9b\x04\ - \x17\x18\n\xcf\x01\n\x02\x04\r\x12\x06\xa1\x04\0\xa4\x04\x01\x1a\xc0\x01\ - \x20NOTE:\x20This\x20API\x20is\x20intended\x20to\x20be\x20used\x20by\x20\ - Apache\x20Beam\x20BigtableIO.\n\x20The\x20information\x20required\x20to\ - \x20continue\x20reading\x20the\x20data\x20from\x20multiple\n\x20`StreamP\ - artitions`\x20from\x20where\x20a\x20previous\x20read\x20left\x20off.\n\n\ - \x0b\n\x03\x04\r\x01\x12\x04\xa1\x04\x08\x20\n,\n\x04\x04\r\x02\0\x12\ - \x04\xa3\x04\x02.\x1a\x1e\x20List\x20of\x20continuation\x20tokens.\n\n\r\ - \n\x05\x04\r\x02\0\x04\x12\x04\xa3\x04\x02\n\n\r\n\x05\x04\r\x02\0\x06\ - \x12\x04\xa3\x04\x0b\"\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xa3\x04#)\n\r\n\ - \x05\x04\r\x02\0\x03\x12\x04\xa3\x04,-\n\xc7\x01\n\x02\x04\x0e\x12\x06\ - \xa9\x04\0\xaf\x04\x01\x1a\xb8\x01\x20NOTE:\x20This\x20API\x20is\x20inte\ - nded\x20to\x20be\x20used\x20by\x20Apache\x20Beam\x20BigtableIO.\n\x20The\ - \x20information\x20required\x20to\x20continue\x20reading\x20the\x20data\ - \x20from\x20a\n\x20`StreamPartition`\x20from\x20where\x20a\x20previous\ - \x20read\x20left\x20off.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xa9\x04\x08\ - \x1f\n9\n\x04\x04\x0e\x02\0\x12\x04\xab\x04\x02\x20\x1a+\x20The\x20parti\ - tion\x20that\x20this\x20token\x20applies\x20to.\n\n\r\n\x05\x04\x0e\x02\ - \0\x06\x12\x04\xab\x04\x02\x11\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xab\ - \x04\x12\x1b\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xab\x04\x1e\x1f\nJ\n\ - \x04\x04\x0e\x02\x01\x12\x04\xae\x04\x02\x13\x1a<\x20An\x20encoded\x20po\ - sition\x20in\x20the\x20stream\x20to\x20restart\x20reading\x20from.\n\n\r\ - \n\x05\x04\x0e\x02\x01\x05\x12\x04\xae\x04\x02\x08\n\r\n\x05\x04\x0e\x02\ - \x01\x01\x12\x04\xae\x04\t\x0e\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xae\ - \x04\x11\x12b\x06proto3\ + \nM\n\x04\x04\n\x03\x03\x12\x06\xe8\x03\x02\xea\x03\x03\x1a=\x20A\x20Mut\ + ation\x20which\x20deletes\x20all\x20cells\x20from\x20the\x20containing\ + \x20row.\n\n\r\n\x05\x04\n\x03\x03\x01\x12\x04\xe8\x03\n\x17\n@\n\x04\ + \x04\n\x08\0\x12\x06\xed\x03\x02\xf9\x03\x03\x1a0\x20Which\x20of\x20the\ + \x20possible\x20Mutation\x20types\x20to\x20apply.\n\n\r\n\x05\x04\n\x08\ + \0\x01\x12\x04\xed\x03\x08\x10\n#\n\x04\x04\n\x02\0\x12\x04\xef\x03\x04\ + \x19\x1a\x15\x20Set\x20a\x20cell's\x20value.\n\n\r\n\x05\x04\n\x02\0\x06\ + \x12\x04\xef\x03\x04\x0b\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xef\x03\x0c\ + \x14\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xef\x03\x17\x18\n,\n\x04\x04\n\ + \x02\x01\x12\x04\xf2\x03\x04,\x1a\x1e\x20Deletes\x20cells\x20from\x20a\ + \x20column.\n\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xf2\x03\x04\x14\n\r\n\ + \x05\x04\n\x02\x01\x01\x12\x04\xf2\x03\x15'\n\r\n\x05\x04\n\x02\x01\x03\ + \x12\x04\xf2\x03*+\n3\n\x04\x04\n\x02\x02\x12\x04\xf5\x03\x04,\x1a%\x20D\ + eletes\x20cells\x20from\x20a\x20column\x20family.\n\n\r\n\x05\x04\n\x02\ + \x02\x06\x12\x04\xf5\x03\x04\x14\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xf5\ + \x03\x15'\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xf5\x03*+\n2\n\x04\x04\n\ + \x02\x03\x12\x04\xf8\x03\x04&\x1a$\x20Deletes\x20cells\x20from\x20the\ + \x20entire\x20row.\n\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xf8\x03\x04\x11\ + \n\r\n\x05\x04\n\x02\x03\x01\x12\x04\xf8\x03\x12!\n\r\n\x05\x04\n\x02\ + \x03\x03\x12\x04\xf8\x03$%\nm\n\x02\x04\x0b\x12\x06\xfe\x03\0\x96\x04\ + \x01\x1a_\x20Specifies\x20an\x20atomic\x20read/modify/write\x20operation\ + \x20on\x20the\x20latest\x20value\x20of\x20the\n\x20specified\x20column.\ + \n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xfe\x03\x08\x1b\nv\n\x04\x04\x0b\x02\ + \0\x12\x04\x81\x04\x02\x19\x1ah\x20The\x20name\x20of\x20the\x20family\ + \x20to\x20which\x20the\x20read/modify/write\x20should\x20be\x20applied.\ + \n\x20Must\x20match\x20`[-_.a-zA-Z0-9]+`\n\n\r\n\x05\x04\x0b\x02\0\x05\ + \x12\x04\x81\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x81\x04\t\ + \x14\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x81\x04\x17\x18\n\x94\x01\n\x04\ + \x04\x0b\x02\x01\x12\x04\x86\x04\x02\x1d\x1a\x85\x01\x20The\x20qualifier\ + \x20of\x20the\x20column\x20to\x20which\x20the\x20read/modify/write\x20sh\ + ould\x20be\n\x20applied.\n\x20Can\x20be\x20any\x20byte\x20string,\x20inc\ + luding\x20the\x20empty\x20string.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\ + \x04\x86\x04\x02\x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x86\x04\x08\ + \x18\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x86\x04\x1b\x1c\nj\n\x04\x04\ + \x0b\x08\0\x12\x06\x8a\x04\x02\x95\x04\x03\x1aZ\x20The\x20rule\x20used\ + \x20to\x20determine\x20the\x20column's\x20new\x20latest\x20value\x20from\ + \x20its\x20current\n\x20latest\x20value.\n\n\r\n\x05\x04\x0b\x08\0\x01\ + \x12\x04\x8a\x04\x08\x0c\n\xab\x01\n\x04\x04\x0b\x02\x02\x12\x04\x8e\x04\ + \x04\x1b\x1a\x9c\x01\x20Rule\x20specifying\x20that\x20`append_value`\x20\ + be\x20appended\x20to\x20the\x20existing\x20value.\n\x20If\x20the\x20targ\ + eted\x20cell\x20is\x20unset,\x20it\x20will\x20be\x20treated\x20as\x20con\ + taining\x20the\n\x20empty\x20string.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\ + \x04\x8e\x04\x04\t\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\x8e\x04\n\x16\n\ + \r\n\x05\x04\x0b\x02\x02\x03\x12\x04\x8e\x04\x19\x1a\n\xb3\x02\n\x04\x04\ + \x0b\x02\x03\x12\x04\x94\x04\x04\x1f\x1a\xa4\x02\x20Rule\x20specifying\ + \x20that\x20`increment_amount`\x20be\x20added\x20to\x20the\x20existing\ + \x20value.\n\x20If\x20the\x20targeted\x20cell\x20is\x20unset,\x20it\x20w\ + ill\x20be\x20treated\x20as\x20containing\x20a\x20zero.\n\x20Otherwise,\ + \x20the\x20targeted\x20cell\x20must\x20contain\x20an\x208-byte\x20value\ + \x20(interpreted\n\x20as\x20a\x2064-bit\x20big-endian\x20signed\x20integ\ + er),\x20or\x20the\x20entire\x20request\x20will\x20fail.\n\n\r\n\x05\x04\ + \x0b\x02\x03\x05\x12\x04\x94\x04\x04\t\n\r\n\x05\x04\x0b\x02\x03\x01\x12\ + \x04\x94\x04\n\x1a\n\r\n\x05\x04\x0b\x02\x03\x03\x12\x04\x94\x04\x1d\x1e\ + b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(19); + messages.push(Row::generated_message_descriptor_data()); + messages.push(Family::generated_message_descriptor_data()); + messages.push(Column::generated_message_descriptor_data()); + messages.push(Cell::generated_message_descriptor_data()); + messages.push(RowRange::generated_message_descriptor_data()); + messages.push(RowSet::generated_message_descriptor_data()); + messages.push(ColumnRange::generated_message_descriptor_data()); + messages.push(TimestampRange::generated_message_descriptor_data()); + messages.push(ValueRange::generated_message_descriptor_data()); + messages.push(RowFilter::generated_message_descriptor_data()); + messages.push(Mutation::generated_message_descriptor_data()); + messages.push(ReadModifyWriteRule::generated_message_descriptor_data()); + messages.push(row_filter::Chain::generated_message_descriptor_data()); + messages.push(row_filter::Interleave::generated_message_descriptor_data()); + messages.push(row_filter::Condition::generated_message_descriptor_data()); + messages.push(mutation::SetCell::generated_message_descriptor_data()); + messages.push(mutation::DeleteFromColumn::generated_message_descriptor_data()); + messages.push(mutation::DeleteFromFamily::generated_message_descriptor_data()); + messages.push(mutation::DeleteFromRow::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/bigtable/v2/feature_flags.rs b/googleapis-raw/src/bigtable/v2/feature_flags.rs deleted file mode 100644 index a500c3e..0000000 --- a/googleapis-raw/src/bigtable/v2/feature_flags.rs +++ /dev/null @@ -1,360 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/bigtable/v2/feature_flags.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct FeatureFlags { - // message fields - pub reverse_scans: bool, - pub mutate_rows_rate_limit: bool, - pub mutate_rows_rate_limit2: bool, - pub last_scanned_row_responses: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FeatureFlags { - fn default() -> &'a FeatureFlags { - ::default_instance() - } -} - -impl FeatureFlags { - pub fn new() -> FeatureFlags { - ::std::default::Default::default() - } - - // bool reverse_scans = 1; - - - pub fn get_reverse_scans(&self) -> bool { - self.reverse_scans - } - pub fn clear_reverse_scans(&mut self) { - self.reverse_scans = false; - } - - // Param is passed by value, moved - pub fn set_reverse_scans(&mut self, v: bool) { - self.reverse_scans = v; - } - - // bool mutate_rows_rate_limit = 3; - - - pub fn get_mutate_rows_rate_limit(&self) -> bool { - self.mutate_rows_rate_limit - } - pub fn clear_mutate_rows_rate_limit(&mut self) { - self.mutate_rows_rate_limit = false; - } - - // Param is passed by value, moved - pub fn set_mutate_rows_rate_limit(&mut self, v: bool) { - self.mutate_rows_rate_limit = v; - } - - // bool mutate_rows_rate_limit2 = 5; - - - pub fn get_mutate_rows_rate_limit2(&self) -> bool { - self.mutate_rows_rate_limit2 - } - pub fn clear_mutate_rows_rate_limit2(&mut self) { - self.mutate_rows_rate_limit2 = false; - } - - // Param is passed by value, moved - pub fn set_mutate_rows_rate_limit2(&mut self, v: bool) { - self.mutate_rows_rate_limit2 = v; - } - - // bool last_scanned_row_responses = 4; - - - pub fn get_last_scanned_row_responses(&self) -> bool { - self.last_scanned_row_responses - } - pub fn clear_last_scanned_row_responses(&mut self) { - self.last_scanned_row_responses = false; - } - - // Param is passed by value, moved - pub fn set_last_scanned_row_responses(&mut self, v: bool) { - self.last_scanned_row_responses = v; - } -} - -impl ::protobuf::Message for FeatureFlags { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reverse_scans = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mutate_rows_rate_limit = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mutate_rows_rate_limit2 = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.last_scanned_row_responses = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.reverse_scans != false { - my_size += 2; - } - if self.mutate_rows_rate_limit != false { - my_size += 2; - } - if self.mutate_rows_rate_limit2 != false { - my_size += 2; - } - if self.last_scanned_row_responses != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.reverse_scans != false { - os.write_bool(1, self.reverse_scans)?; - } - if self.mutate_rows_rate_limit != false { - os.write_bool(3, self.mutate_rows_rate_limit)?; - } - if self.mutate_rows_rate_limit2 != false { - os.write_bool(5, self.mutate_rows_rate_limit2)?; - } - if self.last_scanned_row_responses != false { - os.write_bool(4, self.last_scanned_row_responses)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FeatureFlags { - FeatureFlags::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reverse_scans", - |m: &FeatureFlags| { &m.reverse_scans }, - |m: &mut FeatureFlags| { &mut m.reverse_scans }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mutate_rows_rate_limit", - |m: &FeatureFlags| { &m.mutate_rows_rate_limit }, - |m: &mut FeatureFlags| { &mut m.mutate_rows_rate_limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mutate_rows_rate_limit2", - |m: &FeatureFlags| { &m.mutate_rows_rate_limit2 }, - |m: &mut FeatureFlags| { &mut m.mutate_rows_rate_limit2 }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "last_scanned_row_responses", - |m: &FeatureFlags| { &m.last_scanned_row_responses }, - |m: &mut FeatureFlags| { &mut m.last_scanned_row_responses }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FeatureFlags", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FeatureFlags { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FeatureFlags::new) - } -} - -impl ::protobuf::Clear for FeatureFlags { - fn clear(&mut self) { - self.reverse_scans = false; - self.mutate_rows_rate_limit = false; - self.mutate_rows_rate_limit2 = false; - self.last_scanned_row_responses = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FeatureFlags { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FeatureFlags { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n&google/bigtable/v2/feature_flags.proto\x12\x12google.bigtable.v2\"\ - \xdc\x01\n\x0cFeatureFlags\x12#\n\rreverse_scans\x18\x01\x20\x01(\x08R\ - \x0creverseScans\x123\n\x16mutate_rows_rate_limit\x18\x03\x20\x01(\x08R\ - \x13mutateRowsRateLimit\x125\n\x17mutate_rows_rate_limit2\x18\x05\x20\ - \x01(\x08R\x14mutateRowsRateLimit2\x12;\n\x1alast_scanned_row_responses\ - \x18\x04\x20\x01(\x08R\x17lastScannedRowResponsesB\xbd\x01\n\x16com.goog\ - le.bigtable.v2B\x11FeatureFlagsProtoP\x01Z:google.golang.org/genproto/go\ - ogleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\ - \x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::\ - V2J\xb7\x10\n\x06\x12\x04\x0e\04\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20u\ - nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ - \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ - mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ - py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ - e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x1b\n\x08\n\x01\x08\x12\x03\x12\05\n\t\n\x02\x08%\x12\ - \x03\x12\05\n\x08\n\x01\x08\x12\x03\x13\0Q\n\t\n\x02\x08\x0b\x12\x03\x13\ - \0Q\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\ - \x08\n\x01\x08\x12\x03\x15\02\n\t\n\x02\x08\x08\x12\x03\x15\02\n\x08\n\ - \x01\x08\x12\x03\x16\0/\n\t\n\x02\x08\x01\x12\x03\x16\0/\n\x08\n\x01\x08\ - \x12\x03\x17\05\n\t\n\x02\x08)\x12\x03\x17\05\n\x08\n\x01\x08\x12\x03\ - \x18\04\n\t\n\x02\x08-\x12\x03\x18\04\n\x86\x04\n\x02\x04\0\x12\x04\"\04\ - \x01\x1a\xf9\x03\x20Feature\x20flags\x20supported\x20or\x20enabled\x20by\ - \x20a\x20client.\n\x20This\x20is\x20intended\x20to\x20be\x20sent\x20as\ - \x20part\x20of\x20request\x20metadata\x20to\x20assure\x20the\x20server\n\ - \x20that\x20certain\x20behaviors\x20are\x20safe\x20to\x20enable.\x20This\ - \x20proto\x20is\x20meant\x20to\x20be\n\x20serialized\x20and\x20websafe-b\ - ase64\x20encoded\x20under\x20the\x20`bigtable-features`\x20metadata\n\ - \x20key.\x20The\x20value\x20will\x20remain\x20constant\x20for\x20the\x20\ - lifetime\x20of\x20a\x20client\x20and\x20due\x20to\n\x20HTTP2's\x20HPACK\ - \x20compression,\x20the\x20request\x20overhead\x20will\x20be\x20tiny.\n\ - \x20This\x20is\x20an\x20internal\x20implementation\x20detail\x20and\x20s\ - hould\x20not\x20be\x20used\x20by\x20end\x20users\n\x20directly.\n\n\n\n\ - \x03\x04\0\x01\x12\x03\"\x08\x14\n\xa0\x01\n\x04\x04\0\x02\0\x12\x03%\ - \x02\x19\x1a\x92\x01\x20Notify\x20the\x20server\x20that\x20the\x20client\ - \x20supports\x20reverse\x20scans.\x20The\x20server\x20will\n\x20reject\ - \x20ReadRowsRequests\x20with\x20the\x20reverse\x20bit\x20set\x20when\x20\ - this\x20is\x20absent.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03%\x02\x06\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03%\x07\x14\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03%\x17\x18\n\xc2\x01\n\x04\x04\0\x02\x01\x12\x03*\x02\"\x1a\xb4\ - \x01\x20Notify\x20the\x20server\x20that\x20the\x20client\x20enables\x20b\ - atch\x20write\x20flow\x20control\x20by\n\x20requesting\x20RateLimitInfo\ - \x20from\x20MutateRowsResponse.\x20Due\x20to\x20technical\x20reasons,\n\ - \x20this\x20disables\x20partial\x20retries.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x05\x12\x03*\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03*\x07\x1d\n\ - \x0c\n\x05\x04\0\x02\x01\x03\x12\x03*\x20!\n\xa7\x01\n\x04\x04\0\x02\x02\ - \x12\x03/\x02#\x1a\x99\x01\x20Notify\x20the\x20server\x20that\x20the\x20\ - client\x20enables\x20batch\x20write\x20flow\x20control\x20by\n\x20reques\ - ting\x20RateLimitInfo\x20from\x20MutateRowsResponse.\x20With\x20partial\ - \x20retries\n\x20enabled.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03/\x02\ - \x06\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03/\x07\x1e\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x03/!\"\n\x81\x01\n\x04\x04\0\x02\x03\x12\x033\x02&\x1a\ - t\x20Notify\x20the\x20server\x20that\x20the\x20client\x20supports\x20the\ - \x20last_scanned_row\x20field\n\x20in\x20ReadRowsResponse\x20for\x20long\ - -running\x20scans.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x033\x02\x06\n\ - \x0c\n\x05\x04\0\x02\x03\x01\x12\x033\x07!\n\x0c\n\x05\x04\0\x02\x03\x03\ - \x12\x033$%b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/bigtable/v2/mod.rs b/googleapis-raw/src/bigtable/v2/mod.rs index 7dbbe6b..6471b45 100644 --- a/googleapis-raw/src/bigtable/v2/mod.rs +++ b/googleapis-raw/src/bigtable/v2/mod.rs @@ -1,8 +1,10 @@ -use crate::rpc::status; +// @generated + +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, + rpc::status, +}; pub mod bigtable; pub mod bigtable_grpc; pub mod data; -pub mod feature_flags; -pub mod request_stats; -pub mod response_params; diff --git a/googleapis-raw/src/bigtable/v2/request_stats.rs b/googleapis-raw/src/bigtable/v2/request_stats.rs deleted file mode 100644 index fbfe33b..0000000 --- a/googleapis-raw/src/bigtable/v2/request_stats.rs +++ /dev/null @@ -1,1040 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/bigtable/v2/request_stats.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ReadIterationStats { - // message fields - pub rows_seen_count: i64, - pub rows_returned_count: i64, - pub cells_seen_count: i64, - pub cells_returned_count: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadIterationStats { - fn default() -> &'a ReadIterationStats { - ::default_instance() - } -} - -impl ReadIterationStats { - pub fn new() -> ReadIterationStats { - ::std::default::Default::default() - } - - // int64 rows_seen_count = 1; - - - pub fn get_rows_seen_count(&self) -> i64 { - self.rows_seen_count - } - pub fn clear_rows_seen_count(&mut self) { - self.rows_seen_count = 0; - } - - // Param is passed by value, moved - pub fn set_rows_seen_count(&mut self, v: i64) { - self.rows_seen_count = v; - } - - // int64 rows_returned_count = 2; - - - pub fn get_rows_returned_count(&self) -> i64 { - self.rows_returned_count - } - pub fn clear_rows_returned_count(&mut self) { - self.rows_returned_count = 0; - } - - // Param is passed by value, moved - pub fn set_rows_returned_count(&mut self, v: i64) { - self.rows_returned_count = v; - } - - // int64 cells_seen_count = 3; - - - pub fn get_cells_seen_count(&self) -> i64 { - self.cells_seen_count - } - pub fn clear_cells_seen_count(&mut self) { - self.cells_seen_count = 0; - } - - // Param is passed by value, moved - pub fn set_cells_seen_count(&mut self, v: i64) { - self.cells_seen_count = v; - } - - // int64 cells_returned_count = 4; - - - pub fn get_cells_returned_count(&self) -> i64 { - self.cells_returned_count - } - pub fn clear_cells_returned_count(&mut self) { - self.cells_returned_count = 0; - } - - // Param is passed by value, moved - pub fn set_cells_returned_count(&mut self, v: i64) { - self.cells_returned_count = v; - } -} - -impl ::protobuf::Message for ReadIterationStats { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.rows_seen_count = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.rows_returned_count = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.cells_seen_count = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.cells_returned_count = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.rows_seen_count != 0 { - my_size += ::protobuf::rt::value_size(1, self.rows_seen_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.rows_returned_count != 0 { - my_size += ::protobuf::rt::value_size(2, self.rows_returned_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.cells_seen_count != 0 { - my_size += ::protobuf::rt::value_size(3, self.cells_seen_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.cells_returned_count != 0 { - my_size += ::protobuf::rt::value_size(4, self.cells_returned_count, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.rows_seen_count != 0 { - os.write_int64(1, self.rows_seen_count)?; - } - if self.rows_returned_count != 0 { - os.write_int64(2, self.rows_returned_count)?; - } - if self.cells_seen_count != 0 { - os.write_int64(3, self.cells_seen_count)?; - } - if self.cells_returned_count != 0 { - os.write_int64(4, self.cells_returned_count)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadIterationStats { - ReadIterationStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "rows_seen_count", - |m: &ReadIterationStats| { &m.rows_seen_count }, - |m: &mut ReadIterationStats| { &mut m.rows_seen_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "rows_returned_count", - |m: &ReadIterationStats| { &m.rows_returned_count }, - |m: &mut ReadIterationStats| { &mut m.rows_returned_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "cells_seen_count", - |m: &ReadIterationStats| { &m.cells_seen_count }, - |m: &mut ReadIterationStats| { &mut m.cells_seen_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "cells_returned_count", - |m: &ReadIterationStats| { &m.cells_returned_count }, - |m: &mut ReadIterationStats| { &mut m.cells_returned_count }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadIterationStats", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadIterationStats { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadIterationStats::new) - } -} - -impl ::protobuf::Clear for ReadIterationStats { - fn clear(&mut self) { - self.rows_seen_count = 0; - self.rows_returned_count = 0; - self.cells_seen_count = 0; - self.cells_returned_count = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadIterationStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadIterationStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RequestLatencyStats { - // message fields - pub frontend_server_latency: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RequestLatencyStats { - fn default() -> &'a RequestLatencyStats { - ::default_instance() - } -} - -impl RequestLatencyStats { - pub fn new() -> RequestLatencyStats { - ::std::default::Default::default() - } - - // .google.protobuf.Duration frontend_server_latency = 1; - - - pub fn get_frontend_server_latency(&self) -> &::protobuf::well_known_types::Duration { - self.frontend_server_latency.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_frontend_server_latency(&mut self) { - self.frontend_server_latency.clear(); - } - - pub fn has_frontend_server_latency(&self) -> bool { - self.frontend_server_latency.is_some() - } - - // Param is passed by value, moved - pub fn set_frontend_server_latency(&mut self, v: ::protobuf::well_known_types::Duration) { - self.frontend_server_latency = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_frontend_server_latency(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.frontend_server_latency.is_none() { - self.frontend_server_latency.set_default(); - } - self.frontend_server_latency.as_mut().unwrap() - } - - // Take field - pub fn take_frontend_server_latency(&mut self) -> ::protobuf::well_known_types::Duration { - self.frontend_server_latency.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for RequestLatencyStats { - fn is_initialized(&self) -> bool { - for v in &self.frontend_server_latency { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.frontend_server_latency)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.frontend_server_latency.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.frontend_server_latency.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RequestLatencyStats { - RequestLatencyStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "frontend_server_latency", - |m: &RequestLatencyStats| { &m.frontend_server_latency }, - |m: &mut RequestLatencyStats| { &mut m.frontend_server_latency }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RequestLatencyStats", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RequestLatencyStats { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RequestLatencyStats::new) - } -} - -impl ::protobuf::Clear for RequestLatencyStats { - fn clear(&mut self) { - self.frontend_server_latency.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RequestLatencyStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RequestLatencyStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct FullReadStatsView { - // message fields - pub read_iteration_stats: ::protobuf::SingularPtrField, - pub request_latency_stats: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FullReadStatsView { - fn default() -> &'a FullReadStatsView { - ::default_instance() - } -} - -impl FullReadStatsView { - pub fn new() -> FullReadStatsView { - ::std::default::Default::default() - } - - // .google.bigtable.v2.ReadIterationStats read_iteration_stats = 1; - - - pub fn get_read_iteration_stats(&self) -> &ReadIterationStats { - self.read_iteration_stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_read_iteration_stats(&mut self) { - self.read_iteration_stats.clear(); - } - - pub fn has_read_iteration_stats(&self) -> bool { - self.read_iteration_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_read_iteration_stats(&mut self, v: ReadIterationStats) { - self.read_iteration_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_iteration_stats(&mut self) -> &mut ReadIterationStats { - if self.read_iteration_stats.is_none() { - self.read_iteration_stats.set_default(); - } - self.read_iteration_stats.as_mut().unwrap() - } - - // Take field - pub fn take_read_iteration_stats(&mut self) -> ReadIterationStats { - self.read_iteration_stats.take().unwrap_or_else(|| ReadIterationStats::new()) - } - - // .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; - - - pub fn get_request_latency_stats(&self) -> &RequestLatencyStats { - self.request_latency_stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_latency_stats(&mut self) { - self.request_latency_stats.clear(); - } - - pub fn has_request_latency_stats(&self) -> bool { - self.request_latency_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_request_latency_stats(&mut self, v: RequestLatencyStats) { - self.request_latency_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_latency_stats(&mut self) -> &mut RequestLatencyStats { - if self.request_latency_stats.is_none() { - self.request_latency_stats.set_default(); - } - self.request_latency_stats.as_mut().unwrap() - } - - // Take field - pub fn take_request_latency_stats(&mut self) -> RequestLatencyStats { - self.request_latency_stats.take().unwrap_or_else(|| RequestLatencyStats::new()) - } -} - -impl ::protobuf::Message for FullReadStatsView { - fn is_initialized(&self) -> bool { - for v in &self.read_iteration_stats { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_latency_stats { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_iteration_stats)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_latency_stats)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.read_iteration_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.request_latency_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.read_iteration_stats.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.request_latency_stats.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FullReadStatsView { - FullReadStatsView::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "read_iteration_stats", - |m: &FullReadStatsView| { &m.read_iteration_stats }, - |m: &mut FullReadStatsView| { &mut m.read_iteration_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_latency_stats", - |m: &FullReadStatsView| { &m.request_latency_stats }, - |m: &mut FullReadStatsView| { &mut m.request_latency_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FullReadStatsView", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FullReadStatsView { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FullReadStatsView::new) - } -} - -impl ::protobuf::Clear for FullReadStatsView { - fn clear(&mut self) { - self.read_iteration_stats.clear(); - self.request_latency_stats.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FullReadStatsView { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FullReadStatsView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RequestStats { - // message oneof groups - pub stats_view: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RequestStats { - fn default() -> &'a RequestStats { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RequestStats_oneof_stats_view { - full_read_stats_view(FullReadStatsView), -} - -impl RequestStats { - pub fn new() -> RequestStats { - ::std::default::Default::default() - } - - // .google.bigtable.v2.FullReadStatsView full_read_stats_view = 1; - - - pub fn get_full_read_stats_view(&self) -> &FullReadStatsView { - match self.stats_view { - ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_full_read_stats_view(&mut self) { - self.stats_view = ::std::option::Option::None; - } - - pub fn has_full_read_stats_view(&self) -> bool { - match self.stats_view { - ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_full_read_stats_view(&mut self, v: FullReadStatsView) { - self.stats_view = ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(v)) - } - - // Mutable pointer to the field. - pub fn mut_full_read_stats_view(&mut self) -> &mut FullReadStatsView { - if let ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(_)) = self.stats_view { - } else { - self.stats_view = ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(FullReadStatsView::new())); - } - match self.stats_view { - ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_full_read_stats_view(&mut self) -> FullReadStatsView { - if self.has_full_read_stats_view() { - match self.stats_view.take() { - ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(v)) => v, - _ => panic!(), - } - } else { - FullReadStatsView::new() - } - } -} - -impl ::protobuf::Message for RequestStats { - fn is_initialized(&self) -> bool { - if let Some(RequestStats_oneof_stats_view::full_read_stats_view(ref v)) = self.stats_view { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.stats_view = ::std::option::Option::Some(RequestStats_oneof_stats_view::full_read_stats_view(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.stats_view { - match v { - &RequestStats_oneof_stats_view::full_read_stats_view(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.stats_view { - match v { - &RequestStats_oneof_stats_view::full_read_stats_view(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RequestStats { - RequestStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, FullReadStatsView>( - "full_read_stats_view", - RequestStats::has_full_read_stats_view, - RequestStats::get_full_read_stats_view, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RequestStats", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RequestStats { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RequestStats::new) - } -} - -impl ::protobuf::Clear for RequestStats { - fn clear(&mut self) { - self.stats_view = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RequestStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RequestStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n&google/bigtable/v2/request_stats.proto\x12\x12google.bigtable.v2\x1a\ - \x1egoogle/protobuf/duration.proto\"\xc8\x01\n\x12ReadIterationStats\x12\ - &\n\x0frows_seen_count\x18\x01\x20\x01(\x03R\rrowsSeenCount\x12.\n\x13ro\ - ws_returned_count\x18\x02\x20\x01(\x03R\x11rowsReturnedCount\x12(\n\x10c\ - ells_seen_count\x18\x03\x20\x01(\x03R\x0ecellsSeenCount\x120\n\x14cells_\ - returned_count\x18\x04\x20\x01(\x03R\x12cellsReturnedCount\"h\n\x13Reque\ - stLatencyStats\x12Q\n\x17frontend_server_latency\x18\x01\x20\x01(\x0b2\ - \x19.google.protobuf.DurationR\x15frontendServerLatency\"\xca\x01\n\x11F\ - ullReadStatsView\x12X\n\x14read_iteration_stats\x18\x01\x20\x01(\x0b2&.g\ - oogle.bigtable.v2.ReadIterationStatsR\x12readIterationStats\x12[\n\x15re\ - quest_latency_stats\x18\x02\x20\x01(\x0b2'.google.bigtable.v2.RequestLat\ - encyStatsR\x13requestLatencyStats\"v\n\x0cRequestStats\x12X\n\x14full_re\ - ad_stats_view\x18\x01\x20\x01(\x0b2%.google.bigtable.v2.FullReadStatsVie\ - wH\0R\x11fullReadStatsViewB\x0c\n\nstats_viewB\xbd\x01\n\x16com.google.b\ - igtable.v2B\x11RequestStatsProtoP\x01Z:google.golang.org/genproto/google\ - apis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\x02\ - \x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::V2J\ - \x86$\n\x06\x12\x04\x0e\0p\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x1b\n\t\n\x02\x03\0\x12\x03\x12\0(\n\x08\n\x01\x08\ - \x12\x03\x14\05\n\t\n\x02\x08%\x12\x03\x14\05\n\x08\n\x01\x08\x12\x03\ - \x15\0Q\n\t\n\x02\x08\x0b\x12\x03\x15\0Q\n\x08\n\x01\x08\x12\x03\x16\0\"\ - \n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\02\n\t\n\ - \x02\x08\x08\x12\x03\x17\02\n\x08\n\x01\x08\x12\x03\x18\0/\n\t\n\x02\x08\ - \x01\x12\x03\x18\0/\n\x08\n\x01\x08\x12\x03\x19\05\n\t\n\x02\x08)\x12\ - \x03\x19\05\n\x08\n\x01\x08\x12\x03\x1a\04\n\t\n\x02\x08-\x12\x03\x1a\04\ - \n\x83\x07\n\x02\x04\0\x12\x04-\0;\x01\x1a\xbf\x01\x20ReadIterationStats\ - \x20captures\x20information\x20about\x20the\x20iteration\x20of\x20rows\ - \x20or\x20cells\n\x20over\x20the\x20course\x20of\x20a\x20read,\x20e.g.\ - \x20how\x20many\x20results\x20were\x20scanned\x20in\x20a\x20read\n\x20op\ - eration\x20versus\x20the\x20results\x20returned.\n2\xb4\x05\n\x20Message\ - s\x20related\x20to\x20RequestStats,\x20part\x20of\x20the\x20Query\x20Sta\ - ts\x20feature,\x20that\x20can\n\x20help\x20understand\x20the\x20performa\ - nce\x20of\x20requests.\n\n\x20The\x20layout\x20of\x20requests\x20below\ - \x20is\x20as\x20follows:\n\x20\x20\x20*\x20RequestStats\x20serves\x20as\ - \x20the\x20top-level\x20container\x20for\x20statistics\x20and\n\x20\x20\ - \x20\x20\x20measures\x20related\x20to\x20Bigtable\x20requests.\x20This\ - \x20common\x20object\x20is\x20returned\x20as\n\x20\x20\x20\x20\x20part\ - \x20of\x20methods\x20in\x20the\x20Data\x20API.\n\x20\x20\x20*\x20Request\ - Stats\x20contains\x20multiple\x20*views*\x20of\x20related\x20data,\x20ch\ - osen\x20by\x20an\n\x20\x20\x20\x20\x20option\x20in\x20the\x20source\x20D\ - ata\x20API\x20method.\x20The\x20view\x20that\x20is\x20returned\x20is\n\ - \x20\x20\x20\x20\x20designed\x20to\x20have\x20all\x20submessages\x20(and\ - \x20their\x20submessages,\x20and\x20so\x20on)\n\x20\x20\x20\x20\x20fille\ - d-in,\x20to\x20provide\x20a\x20comprehensive\x20selection\x20of\x20stati\ - stics\x20and\n\x20\x20\x20\x20\x20measures\x20related\x20to\x20the\x20re\ - quested\x20view.\n\n\n\n\x03\x04\0\x01\x12\x03-\x08\x1a\n|\n\x04\x04\0\ - \x02\0\x12\x030\x02\x1c\x1ao\x20The\x20rows\x20seen\x20(scanned)\x20as\ - \x20part\x20of\x20the\x20request.\x20This\x20includes\x20the\x20count\ - \x20of\n\x20rows\x20returned,\x20as\x20captured\x20below.\n\n\x0c\n\x05\ - \x04\0\x02\0\x05\x12\x030\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x030\ - \x08\x17\n\x0c\n\x05\x04\0\x02\0\x03\x12\x030\x1a\x1b\n8\n\x04\x04\0\x02\ - \x01\x12\x033\x02\x20\x1a+\x20The\x20rows\x20returned\x20as\x20part\x20o\ - f\x20the\x20request.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x033\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x033\x08\x1b\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x033\x1e\x1f\n~\n\x04\x04\0\x02\x02\x12\x037\x02\x1d\x1aq\x20Th\ - e\x20cells\x20seen\x20(scanned)\x20as\x20part\x20of\x20the\x20request.\ - \x20This\x20includes\x20the\x20count\x20of\n\x20cells\x20returned,\x20as\ - \x20captured\x20below.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x037\x02\x07\ - \n\x0c\n\x05\x04\0\x02\x02\x01\x12\x037\x08\x18\n\x0c\n\x05\x04\0\x02\ - \x02\x03\x12\x037\x1b\x1c\n9\n\x04\x04\0\x02\x03\x12\x03:\x02!\x1a,\x20T\ - he\x20cells\x20returned\x20as\x20part\x20of\x20the\x20request.\n\n\x0c\n\ - \x05\x04\0\x02\x03\x05\x12\x03:\x02\x07\n\x0c\n\x05\x04\0\x02\x03\x01\ - \x12\x03:\x08\x1c\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03:\x1f\x20\n\xd7\ - \x01\n\x02\x04\x01\x12\x04@\0S\x01\x1a\xca\x01\x20RequestLatencyStats\ - \x20provides\x20a\x20measurement\x20of\x20the\x20latency\x20of\x20the\ - \x20request\x20as\n\x20it\x20interacts\x20with\x20different\x20systems\ - \x20over\x20its\x20lifetime,\x20e.g.\x20how\x20long\x20the\n\x20request\ - \x20took\x20to\x20execute\x20within\x20a\x20frontend\x20server.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03@\x08\x1b\n\xda\x07\n\x04\x04\x01\x02\0\x12\x03R\ - \x027\x1a\xcc\x07\x20The\x20latency\x20measured\x20by\x20the\x20frontend\ - \x20server\x20handling\x20this\x20request,\x20from\n\x20when\x20the\x20r\ - equest\x20was\x20received,\x20to\x20when\x20this\x20value\x20is\x20sent\ - \x20back\x20in\x20the\n\x20response.\x20For\x20more\x20context\x20on\x20\ - the\x20component\x20that\x20is\x20measuring\x20this\x20latency,\n\x20see\ - :\x20https://cloud.google.com/bigtable/docs/overview\n\n\x20Note:\x20Thi\ - s\x20value\x20may\x20be\x20slightly\x20shorter\x20than\x20the\x20value\ - \x20reported\x20into\n\x20aggregate\x20latency\x20metrics\x20in\x20Monit\ - oring\x20for\x20this\x20request\n\x20(https://cloud.google.com/bigtable/\ - docs/monitoring-instance)\x20as\x20this\x20value\n\x20needs\x20to\x20be\ - \x20sent\x20in\x20the\x20response\x20before\x20the\x20latency\x20measure\ - ment\x20including\n\x20that\x20transmission\x20is\x20finalized.\n\n\x20N\ - ote:\x20This\x20value\x20includes\x20the\x20end-to-end\x20latency\x20of\ - \x20contacting\x20nodes\x20in\n\x20the\x20targeted\x20cluster,\x20e.g.\ - \x20measuring\x20from\x20when\x20the\x20first\x20byte\x20arrives\x20at\n\ - \x20the\x20frontend\x20server,\x20to\x20when\x20this\x20value\x20is\x20s\ - ent\x20back\x20as\x20the\x20last\x20value\x20in\n\x20the\x20response,\ - \x20including\x20any\x20latency\x20incurred\x20by\x20contacting\x20nodes\ - ,\x20waiting\n\x20for\x20results\x20from\x20nodes,\x20and\x20finally\x20\ - sending\x20results\x20from\x20nodes\x20back\x20to\x20the\n\x20caller.\n\ - \n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03R\x02\x1a\n\x0c\n\x05\x04\x01\x02\ - \0\x01\x12\x03R\x1b2\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03R56\nL\n\x02\ - \x04\x02\x12\x04V\0`\x01\x1a@\x20FullReadStatsView\x20captures\x20all\ - \x20known\x20information\x20about\x20a\x20read.\n\n\n\n\x03\x04\x02\x01\ - \x12\x03V\x08\x19\n\xf4\x01\n\x04\x04\x02\x02\0\x12\x03[\x02.\x1a\xe6\ - \x01\x20Iteration\x20stats\x20describe\x20how\x20efficient\x20the\x20rea\ - d\x20is,\x20e.g.\x20comparing\n\x20rows\x20seen\x20vs.\x20rows\x20return\ - ed\x20or\x20cells\x20seen\x20vs\x20cells\x20returned\x20can\x20provide\ - \x20an\n\x20indication\x20of\x20read\x20efficiency\x20(the\x20higher\x20\ - the\x20ratio\x20of\x20seen\x20to\x20retuned\x20the\n\x20better).\n\n\x0c\ - \n\x05\x04\x02\x02\0\x06\x12\x03[\x02\x14\n\x0c\n\x05\x04\x02\x02\0\x01\ - \x12\x03[\x15)\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03[,-\nj\n\x04\x04\x02\ - \x02\x01\x12\x03_\x020\x1a]\x20Request\x20latency\x20stats\x20describe\ - \x20the\x20time\x20taken\x20to\x20complete\x20a\x20request,\x20from\n\ - \x20the\x20server\x20side.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03_\ - \x02\x15\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03_\x16+\n\x0c\n\x05\x04\ - \x02\x02\x01\x03\x12\x03_./\n\xfc\x01\n\x02\x04\x03\x12\x04f\0p\x01\x1a\ - \xef\x01\x20RequestStats\x20is\x20the\x20container\x20for\x20additional\ - \x20information\x20pertaining\x20to\x20a\n\x20single\x20request,\x20help\ - ful\x20for\x20evaluating\x20the\x20performance\x20of\x20the\x20sent\x20r\ - equest.\n\x20Currently,\x20there\x20are\x20the\x20following\x20supported\ - \x20methods:\n\x20\x20\x20*\x20google.bigtable.v2.ReadRows\n\n\n\n\x03\ - \x04\x03\x01\x12\x03f\x08\x14\n\xa8\x01\n\x04\x04\x03\x08\0\x12\x04k\x02\ - o\x03\x1a\x99\x01\x20Information\x20pertaining\x20to\x20each\x20request\ - \x20type\x20received.\x20The\x20type\x20is\x20chosen\n\x20based\x20on\ - \x20the\x20requested\x20view.\n\n\x20See\x20the\x20messages\x20above\x20\ - for\x20additional\x20context.\n\n\x0c\n\x05\x04\x03\x08\0\x01\x12\x03k\ - \x08\x12\n|\n\x04\x04\x03\x02\0\x12\x03n\x04/\x1ao\x20Available\x20with\ - \x20the\x20ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL\n\x20view\ - ,\x20see\x20package\x20google.bigtable.v2.\n\n\x0c\n\x05\x04\x03\x02\0\ - \x06\x12\x03n\x04\x15\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03n\x16*\n\x0c\ - \n\x05\x04\x03\x02\0\x03\x12\x03n-.b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/bigtable/v2/response_params.rs b/googleapis-raw/src/bigtable/v2/response_params.rs deleted file mode 100644 index 30f4d03..0000000 --- a/googleapis-raw/src/bigtable/v2/response_params.rs +++ /dev/null @@ -1,360 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/bigtable/v2/response_params.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ResponseParams { - // message oneof groups - pub _zone_id: ::std::option::Option, - pub _cluster_id: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResponseParams { - fn default() -> &'a ResponseParams { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ResponseParams_oneof__zone_id { - zone_id(::std::string::String), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ResponseParams_oneof__cluster_id { - cluster_id(::std::string::String), -} - -impl ResponseParams { - pub fn new() -> ResponseParams { - ::std::default::Default::default() - } - - // string zone_id = 1; - - - pub fn get_zone_id(&self) -> &str { - match self._zone_id { - ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(ref v)) => v, - _ => "", - } - } - pub fn clear_zone_id(&mut self) { - self._zone_id = ::std::option::Option::None; - } - - pub fn has_zone_id(&self) -> bool { - match self._zone_id { - ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zone_id(&mut self, v: ::std::string::String) { - self._zone_id = ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(v)) - } - - // Mutable pointer to the field. - pub fn mut_zone_id(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(_)) = self._zone_id { - } else { - self._zone_id = ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(::std::string::String::new())); - } - match self._zone_id { - ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zone_id(&mut self) -> ::std::string::String { - if self.has_zone_id() { - match self._zone_id.take() { - ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string cluster_id = 2; - - - pub fn get_cluster_id(&self) -> &str { - match self._cluster_id { - ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(ref v)) => v, - _ => "", - } - } - pub fn clear_cluster_id(&mut self) { - self._cluster_id = ::std::option::Option::None; - } - - pub fn has_cluster_id(&self) -> bool { - match self._cluster_id { - ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cluster_id(&mut self, v: ::std::string::String) { - self._cluster_id = ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(v)) - } - - // Mutable pointer to the field. - pub fn mut_cluster_id(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(_)) = self._cluster_id { - } else { - self._cluster_id = ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(::std::string::String::new())); - } - match self._cluster_id { - ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cluster_id(&mut self) -> ::std::string::String { - if self.has_cluster_id() { - match self._cluster_id.take() { - ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for ResponseParams { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._zone_id = ::std::option::Option::Some(ResponseParams_oneof__zone_id::zone_id(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._cluster_id = ::std::option::Option::Some(ResponseParams_oneof__cluster_id::cluster_id(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self._zone_id { - match v { - &ResponseParams_oneof__zone_id::zone_id(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._cluster_id { - match v { - &ResponseParams_oneof__cluster_id::cluster_id(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self._zone_id { - match v { - &ResponseParams_oneof__zone_id::zone_id(ref v) => { - os.write_string(1, v)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._cluster_id { - match v { - &ResponseParams_oneof__cluster_id::cluster_id(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ResponseParams { - ResponseParams::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "zone_id", - ResponseParams::has_zone_id, - ResponseParams::get_zone_id, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "cluster_id", - ResponseParams::has_cluster_id, - ResponseParams::get_cluster_id, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResponseParams", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ResponseParams { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResponseParams::new) - } -} - -impl ::protobuf::Clear for ResponseParams { - fn clear(&mut self) { - self._zone_id = ::std::option::Option::None; - self._cluster_id = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ResponseParams { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ResponseParams { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n(google/bigtable/v2/response_params.proto\x12\x12google.bigtable.v2\"m\ - \n\x0eResponseParams\x12\x1c\n\x07zone_id\x18\x01\x20\x01(\tH\0R\x06zone\ - Id\x88\x01\x01\x12\"\n\ncluster_id\x18\x02\x20\x01(\tH\x01R\tclusterId\ - \x88\x01\x01B\n\n\x08_zone_idB\r\n\x0b_cluster_idB\xbf\x01\n\x16com.goog\ - le.bigtable.v2B\x13ResponseParamsProtoP\x01Z:google.golang.org/genproto/\ - googleapis/bigtable/v2;bigtable\xaa\x02\x18Google.Cloud.Bigtable.V2\xca\ - \x02\x18Google\\Cloud\\Bigtable\\V2\xea\x02\x1bGoogle::Cloud::Bigtable::\ - V2J\xcf\t\n\x06\x12\x04\x0e\0%\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x12\ - 2\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x1b\n\x08\n\x01\x08\x12\x03\x12\05\n\t\n\x02\x08%\x12\ - \x03\x12\05\n\x08\n\x01\x08\x12\x03\x13\0Q\n\t\n\x02\x08\x0b\x12\x03\x13\ - \0Q\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\ - \x08\n\x01\x08\x12\x03\x15\04\n\t\n\x02\x08\x08\x12\x03\x15\04\n\x08\n\ - \x01\x08\x12\x03\x16\0/\n\t\n\x02\x08\x01\x12\x03\x16\0/\n\x08\n\x01\x08\ - \x12\x03\x17\05\n\t\n\x02\x08)\x12\x03\x17\05\n\x08\n\x01\x08\x12\x03\ - \x18\04\n\t\n\x02\x08-\x12\x03\x18\04\n\xd2\x01\n\x02\x04\0\x12\x04\x1e\ - \0%\x01\x1a\xc5\x01\x20Response\x20metadata\x20proto\n\x20This\x20is\x20\ - an\x20experimental\x20feature\x20that\x20will\x20be\x20used\x20to\x20get\ - \x20zone_id\x20and\n\x20cluster_id\x20from\x20response\x20trailers\x20to\ - \x20tag\x20the\x20metrics.\x20This\x20should\x20not\x20be\n\x20used\x20b\ - y\x20customers\x20directly\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x16\nC\ - \n\x04\x04\0\x02\0\x12\x03\x20\x02\x1e\x1a6\x20The\x20cloud\x20bigtable\ - \x20zone\x20associated\x20with\x20the\x20cluster.\n\n\x0c\n\x05\x04\0\ - \x02\0\x04\x12\x03\x20\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x20\x0b\ - \x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x20\x12\x19\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03\x20\x1c\x1d\nS\n\x04\x04\0\x02\x01\x12\x03$\x02!\x1aF\ - \x20Identifier\x20for\x20a\x20cluster\x20that\x20represents\x20set\x20of\ - \n\x20bigtable\x20resources.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03$\ - \x02\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03$\x0b\x11\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03$\x12\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03$\x1f\ - \x20b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/asset/v1/asset_service.rs b/googleapis-raw/src/cloud/asset/v1/asset_service.rs index 2560ea8..9db2773 100644 --- a/googleapis-raw/src/cloud/asset/v1/asset_service.rs +++ b/googleapis-raw/src/cloud/asset/v1/asset_service.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,87 +16,127 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/cloud/asset/v1/asset_service.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyLongrunningMetadata { +/// Export asset request. +// @@protoc_insertion_point(message:google.cloud.asset.v1.ExportAssetsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExportAssetsRequest { // message fields - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + /// Required. The relative name of the root asset. This can only be an + /// organization number (such as "organizations/123"), a project ID (such as + /// "projects/my-project-id"), or a project number (such as "projects/12345"), + /// or a folder number (such as "folders/123"). + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsRequest.parent) + pub parent: ::std::string::String, + /// Timestamp to take an asset snapshot. This can only be set to a timestamp + /// between 2018-10-02 UTC (inclusive) and the current time. If not specified, + /// the current time will be used. Due to delays in resource data collection + /// and indexing, there is a volatile window during which running the same + /// query may get different results. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsRequest.read_time) + pub read_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// A list of asset types of which to take a snapshot for. For example: + /// "compute.googleapis.com/Disk". If specified, only matching assets will be + /// returned. See [Introduction to Cloud Asset + /// Inventory](https://cloud.google.com/asset-inventory/docs/overview) + /// for all supported asset types. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsRequest.asset_types) + pub asset_types: ::std::vec::Vec<::std::string::String>, + /// Asset content type. If not specified, no content but the asset name will be + /// returned. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsRequest.content_type) + pub content_type: ::protobuf::EnumOrUnknown, + /// Required. Output configuration indicating where the results will be output + /// to. All results will be in newline delimited JSON format. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsRequest.output_config) + pub output_config: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.ExportAssetsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyLongrunningMetadata { - fn default() -> &'a AnalyzeIamPolicyLongrunningMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a ExportAssetsRequest { + fn default() -> &'a ExportAssetsRequest { + ::default_instance() } } -impl AnalyzeIamPolicyLongrunningMetadata { - pub fn new() -> AnalyzeIamPolicyLongrunningMetadata { +impl ExportAssetsRequest { + pub fn new() -> ExportAssetsRequest { ::std::default::Default::default() } - // .google.protobuf.Timestamp create_time = 1; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ExportAssetsRequest| { &m.parent }, + |m: &mut ExportAssetsRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "read_time", + |m: &ExportAssetsRequest| { &m.read_time }, + |m: &mut ExportAssetsRequest| { &mut m.read_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "asset_types", + |m: &ExportAssetsRequest| { &m.asset_types }, + |m: &mut ExportAssetsRequest| { &mut m.asset_types }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "content_type", + |m: &ExportAssetsRequest| { &m.content_type }, + |m: &mut ExportAssetsRequest| { &mut m.content_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, OutputConfig>( + "output_config", + |m: &ExportAssetsRequest| { &m.output_config }, + |m: &mut ExportAssetsRequest| { &mut m.output_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExportAssetsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for AnalyzeIamPolicyLongrunningMetadata { +impl ::protobuf::Message for ExportAssetsRequest { + const NAME: &'static str = "ExportAssetsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.read_time)?; + }, + 26 => { + self.asset_types.push(is.read_string()?); + }, + 32 => { + self.content_type = is.read_enum_or_unknown()?; + }, + 42 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.output_config)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -104,321 +145,353 @@ impl ::protobuf::Message for AnalyzeIamPolicyLongrunningMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.create_time.as_ref() { + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); + } + if let Some(v) = self.read_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for value in &self.asset_types { + my_size += ::protobuf::rt::string_size(3, &value); + }; + if self.content_type != ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(4, self.content_type.value()); + } + if let Some(v) = self.output_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if let Some(v) = self.read_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + for v in &self.asset_types { + os.write_string(3, &v)?; + }; + if self.content_type != ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED) { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.content_type))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + if let Some(v) = self.output_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> AnalyzeIamPolicyLongrunningMetadata { - AnalyzeIamPolicyLongrunningMetadata::new() + fn new() -> ExportAssetsRequest { + ExportAssetsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &AnalyzeIamPolicyLongrunningMetadata| { &m.create_time }, - |m: &mut AnalyzeIamPolicyLongrunningMetadata| { &mut m.create_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyLongrunningMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.read_time.clear(); + self.asset_types.clear(); + self.content_type = ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED); + self.output_config.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static AnalyzeIamPolicyLongrunningMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyLongrunningMetadata::new) + fn default_instance() -> &'static ExportAssetsRequest { + static instance: ExportAssetsRequest = ExportAssetsRequest { + parent: ::std::string::String::new(), + read_time: ::protobuf::MessageField::none(), + asset_types: ::std::vec::Vec::new(), + content_type: ::protobuf::EnumOrUnknown::from_i32(0), + output_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AnalyzeIamPolicyLongrunningMetadata { - fn clear(&mut self) { - self.create_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ExportAssetsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExportAssetsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for AnalyzeIamPolicyLongrunningMetadata { +impl ::std::fmt::Display for ExportAssetsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyLongrunningMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ExportAssetsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ExportAssetsRequest { +/// The export asset response. This message is returned by the +/// [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned +/// [google.longrunning.Operation.response][google.longrunning.Operation.response] field. +// @@protoc_insertion_point(message:google.cloud.asset.v1.ExportAssetsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExportAssetsResponse { // message fields - pub parent: ::std::string::String, - pub read_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub asset_types: ::protobuf::RepeatedField<::std::string::String>, - pub content_type: ContentType, - pub output_config: ::protobuf::SingularPtrField, - pub relationship_types: ::protobuf::RepeatedField<::std::string::String>, + /// Time the snapshot was taken. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsResponse.read_time) + pub read_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// Output configuration indicating where the results were output to. + /// All results are in JSON format. + // @@protoc_insertion_point(field:google.cloud.asset.v1.ExportAssetsResponse.output_config) + pub output_config: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.ExportAssetsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ExportAssetsRequest { - fn default() -> &'a ExportAssetsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ExportAssetsResponse { + fn default() -> &'a ExportAssetsResponse { + ::default_instance() } } -impl ExportAssetsRequest { - pub fn new() -> ExportAssetsRequest { +impl ExportAssetsResponse { + pub fn new() -> ExportAssetsResponse { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp read_time = 2; - - - pub fn get_read_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.read_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_time(&mut self) { - self.read_time.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "read_time", + |m: &ExportAssetsResponse| { &m.read_time }, + |m: &mut ExportAssetsResponse| { &mut m.read_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, OutputConfig>( + "output_config", + |m: &ExportAssetsResponse| { &m.output_config }, + |m: &mut ExportAssetsResponse| { &mut m.output_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExportAssetsResponse", + fields, + oneofs, + ) } +} - pub fn has_read_time(&self) -> bool { - self.read_time.is_some() - } +impl ::protobuf::Message for ExportAssetsResponse { + const NAME: &'static str = "ExportAssetsResponse"; - // Param is passed by value, moved - pub fn set_read_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.read_time = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.read_time.is_none() { - self.read_time.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.read_time)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.output_config)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.read_time.as_mut().unwrap() - } - - // Take field - pub fn take_read_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.read_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated string asset_types = 3; - - - pub fn get_asset_types(&self) -> &[::std::string::String] { - &self.asset_types - } - pub fn clear_asset_types(&mut self) { - self.asset_types.clear(); + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_asset_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_types = v; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.read_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.output_config.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - pub fn mut_asset_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_types + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.read_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.output_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_asset_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_types, ::protobuf::RepeatedField::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.cloud.asset.v1.ContentType content_type = 4; - - - pub fn get_content_type(&self) -> ContentType { - self.content_type - } - pub fn clear_content_type(&mut self) { - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_content_type(&mut self, v: ContentType) { - self.content_type = v; + fn new() -> ExportAssetsResponse { + ExportAssetsResponse::new() } - // .google.cloud.asset.v1.OutputConfig output_config = 5; - - - pub fn get_output_config(&self) -> &OutputConfig { - self.output_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_output_config(&mut self) { + fn clear(&mut self) { + self.read_time.clear(); self.output_config.clear(); + self.special_fields.clear(); } - pub fn has_output_config(&self) -> bool { - self.output_config.is_some() - } - - // Param is passed by value, moved - pub fn set_output_config(&mut self, v: OutputConfig) { - self.output_config = ::protobuf::SingularPtrField::some(v); + fn default_instance() -> &'static ExportAssetsResponse { + static instance: ExportAssetsResponse = ExportAssetsResponse { + read_time: ::protobuf::MessageField::none(), + output_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_config(&mut self) -> &mut OutputConfig { - if self.output_config.is_none() { - self.output_config.set_default(); - } - self.output_config.as_mut().unwrap() +impl ::protobuf::MessageFull for ExportAssetsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExportAssetsResponse").unwrap()).clone() } +} - // Take field - pub fn take_output_config(&mut self) -> OutputConfig { - self.output_config.take().unwrap_or_else(|| OutputConfig::new()) +impl ::std::fmt::Display for ExportAssetsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // repeated string relationship_types = 6; - +impl ::protobuf::reflect::ProtobufValue for ExportAssetsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_relationship_types(&self) -> &[::std::string::String] { - &self.relationship_types - } - pub fn clear_relationship_types(&mut self) { - self.relationship_types.clear(); - } +/// Batch get assets history request. +// @@protoc_insertion_point(message:google.cloud.asset.v1.BatchGetAssetsHistoryRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct BatchGetAssetsHistoryRequest { + // message fields + /// Required. The relative name of the root asset. It can only be an + /// organization number (such as "organizations/123"), a project ID (such as + /// "projects/my-project-id")", or a project number (such as "projects/12345"). + // @@protoc_insertion_point(field:google.cloud.asset.v1.BatchGetAssetsHistoryRequest.parent) + pub parent: ::std::string::String, + /// A list of the full names of the assets. For example: + /// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. + /// See [Resource + /// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + /// and [Resource Name + /// Format](https://cloud.google.com/asset-inventory/docs/resource-name-format) + /// for more info. + /// + /// The request becomes a no-op if the asset name list is empty, and the max + /// size of the asset name list is 100 in one request. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BatchGetAssetsHistoryRequest.asset_names) + pub asset_names: ::std::vec::Vec<::std::string::String>, + /// Optional. The content type. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BatchGetAssetsHistoryRequest.content_type) + pub content_type: ::protobuf::EnumOrUnknown, + /// Optional. The time window for the asset history. Both start_time and + /// end_time are optional and if set, it must be after 2018-10-02 UTC. If + /// end_time is not set, it is default to current timestamp. If start_time is + /// not set, the snapshot of the assets at end_time will be returned. The + /// returned results contain all temporal assets whose time window overlap with + /// read_time_window. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BatchGetAssetsHistoryRequest.read_time_window) + pub read_time_window: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.BatchGetAssetsHistoryRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_relationship_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.relationship_types = v; +impl<'a> ::std::default::Default for &'a BatchGetAssetsHistoryRequest { + fn default() -> &'a BatchGetAssetsHistoryRequest { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_relationship_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.relationship_types +impl BatchGetAssetsHistoryRequest { + pub fn new() -> BatchGetAssetsHistoryRequest { + ::std::default::Default::default() } - // Take field - pub fn take_relationship_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.relationship_types, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &BatchGetAssetsHistoryRequest| { &m.parent }, + |m: &mut BatchGetAssetsHistoryRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "asset_names", + |m: &BatchGetAssetsHistoryRequest| { &m.asset_names }, + |m: &mut BatchGetAssetsHistoryRequest| { &mut m.asset_names }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "content_type", + |m: &BatchGetAssetsHistoryRequest| { &m.content_type }, + |m: &mut BatchGetAssetsHistoryRequest| { &mut m.content_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::assets::TimeWindow>( + "read_time_window", + |m: &BatchGetAssetsHistoryRequest| { &m.read_time_window }, + |m: &mut BatchGetAssetsHistoryRequest| { &mut m.read_time_window }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BatchGetAssetsHistoryRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ExportAssetsRequest { +impl ::protobuf::Message for BatchGetAssetsHistoryRequest { + const NAME: &'static str = "BatchGetAssetsHistoryRequest"; + fn is_initialized(&self) -> bool { - for v in &self.read_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.output_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_types)?; + 18 => { + self.asset_names.push(is.read_string()?); }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.content_type, 4, &mut self.unknown_fields)? + 24 => { + self.content_type = is.read_enum_or_unknown()?; }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_config)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.read_time_window)?; }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.relationship_types)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -427,21242 +500,381 @@ impl ::protobuf::Message for ExportAssetsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.read_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.asset_types { - my_size += ::protobuf::rt::string_size(3, &value); + for value in &self.asset_names { + my_size += ::protobuf::rt::string_size(2, &value); }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.content_type); + if self.content_type != ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(3, self.content_type.value()); } - if let Some(ref v) = self.output_config.as_ref() { + if let Some(v) = self.read_time_window.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - for value in &self.relationship_types { - my_size += ::protobuf::rt::string_size(6, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } - if let Some(ref v) = self.read_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.asset_types { - os.write_string(3, &v)?; + for v in &self.asset_names { + os.write_string(2, &v)?; }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.content_type))?; + if self.content_type != ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED) { + os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.content_type))?; } - if let Some(ref v) = self.output_config.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.read_time_window.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - for v in &self.relationship_types { - os.write_string(6, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ExportAssetsRequest { - ExportAssetsRequest::new() + fn new() -> BatchGetAssetsHistoryRequest { + BatchGetAssetsHistoryRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ExportAssetsRequest| { &m.parent }, - |m: &mut ExportAssetsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "read_time", - |m: &ExportAssetsRequest| { &m.read_time }, - |m: &mut ExportAssetsRequest| { &mut m.read_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_types", - |m: &ExportAssetsRequest| { &m.asset_types }, - |m: &mut ExportAssetsRequest| { &mut m.asset_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "content_type", - |m: &ExportAssetsRequest| { &m.content_type }, - |m: &mut ExportAssetsRequest| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "output_config", - |m: &ExportAssetsRequest| { &m.output_config }, - |m: &mut ExportAssetsRequest| { &mut m.output_config }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "relationship_types", - |m: &ExportAssetsRequest| { &m.relationship_types }, - |m: &mut ExportAssetsRequest| { &mut m.relationship_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExportAssetsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.asset_names.clear(); + self.content_type = ::protobuf::EnumOrUnknown::new(ContentType::CONTENT_TYPE_UNSPECIFIED); + self.read_time_window.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ExportAssetsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExportAssetsRequest::new) + fn default_instance() -> &'static BatchGetAssetsHistoryRequest { + static instance: BatchGetAssetsHistoryRequest = BatchGetAssetsHistoryRequest { + parent: ::std::string::String::new(), + asset_names: ::std::vec::Vec::new(), + content_type: ::protobuf::EnumOrUnknown::from_i32(0), + read_time_window: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ExportAssetsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.read_time.clear(); - self.asset_types.clear(); - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - self.output_config.clear(); - self.relationship_types.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BatchGetAssetsHistoryRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BatchGetAssetsHistoryRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ExportAssetsRequest { +impl ::std::fmt::Display for BatchGetAssetsHistoryRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ExportAssetsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for BatchGetAssetsHistoryRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ExportAssetsResponse { +/// Batch get assets history response. +// @@protoc_insertion_point(message:google.cloud.asset.v1.BatchGetAssetsHistoryResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct BatchGetAssetsHistoryResponse { // message fields - pub read_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub output_config: ::protobuf::SingularPtrField, - pub output_result: ::protobuf::SingularPtrField, + /// A list of assets with valid time windows. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BatchGetAssetsHistoryResponse.assets) + pub assets: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.BatchGetAssetsHistoryResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ExportAssetsResponse { - fn default() -> &'a ExportAssetsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a BatchGetAssetsHistoryResponse { + fn default() -> &'a BatchGetAssetsHistoryResponse { + ::default_instance() } } -impl ExportAssetsResponse { - pub fn new() -> ExportAssetsResponse { +impl BatchGetAssetsHistoryResponse { + pub fn new() -> BatchGetAssetsHistoryResponse { ::std::default::Default::default() } - // .google.protobuf.Timestamp read_time = 1; - - - pub fn get_read_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.read_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_time(&mut self) { - self.read_time.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "assets", + |m: &BatchGetAssetsHistoryResponse| { &m.assets }, + |m: &mut BatchGetAssetsHistoryResponse| { &mut m.assets }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BatchGetAssetsHistoryResponse", + fields, + oneofs, + ) } +} - pub fn has_read_time(&self) -> bool { - self.read_time.is_some() - } +impl ::protobuf::Message for BatchGetAssetsHistoryResponse { + const NAME: &'static str = "BatchGetAssetsHistoryResponse"; - // Param is passed by value, moved - pub fn set_read_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.read_time = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.read_time.is_none() { - self.read_time.set_default(); - } - self.read_time.as_mut().unwrap() - } - - // Take field - pub fn take_read_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.read_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.asset.v1.OutputConfig output_config = 2; - - - pub fn get_output_config(&self) -> &OutputConfig { - self.output_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_output_config(&mut self) { - self.output_config.clear(); - } - - pub fn has_output_config(&self) -> bool { - self.output_config.is_some() - } - - // Param is passed by value, moved - pub fn set_output_config(&mut self, v: OutputConfig) { - self.output_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_config(&mut self) -> &mut OutputConfig { - if self.output_config.is_none() { - self.output_config.set_default(); - } - self.output_config.as_mut().unwrap() - } - - // Take field - pub fn take_output_config(&mut self) -> OutputConfig { - self.output_config.take().unwrap_or_else(|| OutputConfig::new()) - } - - // .google.cloud.asset.v1.OutputResult output_result = 3; - - - pub fn get_output_result(&self) -> &OutputResult { - self.output_result.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_output_result(&mut self) { - self.output_result.clear(); - } - - pub fn has_output_result(&self) -> bool { - self.output_result.is_some() - } - - // Param is passed by value, moved - pub fn set_output_result(&mut self, v: OutputResult) { - self.output_result = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_result(&mut self) -> &mut OutputResult { - if self.output_result.is_none() { - self.output_result.set_default(); - } - self.output_result.as_mut().unwrap() - } - - // Take field - pub fn take_output_result(&mut self) -> OutputResult { - self.output_result.take().unwrap_or_else(|| OutputResult::new()) - } -} - -impl ::protobuf::Message for ExportAssetsResponse { - fn is_initialized(&self) -> bool { - for v in &self.read_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.output_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.output_result { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_time)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_config)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_result)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.read_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.output_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.output_result.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.read_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.output_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.output_result.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExportAssetsResponse { - ExportAssetsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "read_time", - |m: &ExportAssetsResponse| { &m.read_time }, - |m: &mut ExportAssetsResponse| { &mut m.read_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "output_config", - |m: &ExportAssetsResponse| { &m.output_config }, - |m: &mut ExportAssetsResponse| { &mut m.output_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "output_result", - |m: &ExportAssetsResponse| { &m.output_result }, - |m: &mut ExportAssetsResponse| { &mut m.output_result }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExportAssetsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExportAssetsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExportAssetsResponse::new) - } -} - -impl ::protobuf::Clear for ExportAssetsResponse { - fn clear(&mut self) { - self.read_time.clear(); - self.output_config.clear(); - self.output_result.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExportAssetsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExportAssetsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAssetsRequest { - // message fields - pub parent: ::std::string::String, - pub read_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub asset_types: ::protobuf::RepeatedField<::std::string::String>, - pub content_type: ContentType, - pub page_size: i32, - pub page_token: ::std::string::String, - pub relationship_types: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAssetsRequest { - fn default() -> &'a ListAssetsRequest { - ::default_instance() - } -} - -impl ListAssetsRequest { - pub fn new() -> ListAssetsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp read_time = 2; - - - pub fn get_read_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.read_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_time(&mut self) { - self.read_time.clear(); - } - - pub fn has_read_time(&self) -> bool { - self.read_time.is_some() - } - - // Param is passed by value, moved - pub fn set_read_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.read_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.read_time.is_none() { - self.read_time.set_default(); - } - self.read_time.as_mut().unwrap() - } - - // Take field - pub fn take_read_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.read_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated string asset_types = 3; - - - pub fn get_asset_types(&self) -> &[::std::string::String] { - &self.asset_types - } - pub fn clear_asset_types(&mut self) { - self.asset_types.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_types = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_types - } - - // Take field - pub fn take_asset_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_types, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.ContentType content_type = 4; - - - pub fn get_content_type(&self) -> ContentType { - self.content_type - } - pub fn clear_content_type(&mut self) { - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_content_type(&mut self, v: ContentType) { - self.content_type = v; - } - - // int32 page_size = 5; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 6; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // repeated string relationship_types = 7; - - - pub fn get_relationship_types(&self) -> &[::std::string::String] { - &self.relationship_types - } - pub fn clear_relationship_types(&mut self) { - self.relationship_types.clear(); - } - - // Param is passed by value, moved - pub fn set_relationship_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.relationship_types = v; - } - - // Mutable pointer to the field. - pub fn mut_relationship_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.relationship_types - } - - // Take field - pub fn take_relationship_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.relationship_types, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListAssetsRequest { - fn is_initialized(&self) -> bool { - for v in &self.read_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_time)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_types)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.content_type, 4, &mut self.unknown_fields)? - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 7 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.relationship_types)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.read_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.asset_types { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.content_type); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(5, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.page_token); - } - for value in &self.relationship_types { - my_size += ::protobuf::rt::string_size(7, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.read_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.asset_types { - os.write_string(3, &v)?; - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.content_type))?; - } - if self.page_size != 0 { - os.write_int32(5, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(6, &self.page_token)?; - } - for v in &self.relationship_types { - os.write_string(7, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAssetsRequest { - ListAssetsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListAssetsRequest| { &m.parent }, - |m: &mut ListAssetsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "read_time", - |m: &ListAssetsRequest| { &m.read_time }, - |m: &mut ListAssetsRequest| { &mut m.read_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_types", - |m: &ListAssetsRequest| { &m.asset_types }, - |m: &mut ListAssetsRequest| { &mut m.asset_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "content_type", - |m: &ListAssetsRequest| { &m.content_type }, - |m: &mut ListAssetsRequest| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListAssetsRequest| { &m.page_size }, - |m: &mut ListAssetsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListAssetsRequest| { &m.page_token }, - |m: &mut ListAssetsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "relationship_types", - |m: &ListAssetsRequest| { &m.relationship_types }, - |m: &mut ListAssetsRequest| { &mut m.relationship_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAssetsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAssetsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAssetsRequest::new) - } -} - -impl ::protobuf::Clear for ListAssetsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.read_time.clear(); - self.asset_types.clear(); - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.relationship_types.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAssetsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAssetsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAssetsResponse { - // message fields - pub read_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub assets: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAssetsResponse { - fn default() -> &'a ListAssetsResponse { - ::default_instance() - } -} - -impl ListAssetsResponse { - pub fn new() -> ListAssetsResponse { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp read_time = 1; - - - pub fn get_read_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.read_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_time(&mut self) { - self.read_time.clear(); - } - - pub fn has_read_time(&self) -> bool { - self.read_time.is_some() - } - - // Param is passed by value, moved - pub fn set_read_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.read_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.read_time.is_none() { - self.read_time.set_default(); - } - self.read_time.as_mut().unwrap() - } - - // Take field - pub fn take_read_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.read_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.cloud.asset.v1.Asset assets = 2; - - - pub fn get_assets(&self) -> &[super::assets::Asset] { - &self.assets - } - pub fn clear_assets(&mut self) { - self.assets.clear(); - } - - // Param is passed by value, moved - pub fn set_assets(&mut self, v: ::protobuf::RepeatedField) { - self.assets = v; - } - - // Mutable pointer to the field. - pub fn mut_assets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.assets - } - - // Take field - pub fn take_assets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.assets, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListAssetsResponse { - fn is_initialized(&self) -> bool { - for v in &self.read_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.assets { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_time)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.assets)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.read_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.assets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.read_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.assets { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(3, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAssetsResponse { - ListAssetsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "read_time", - |m: &ListAssetsResponse| { &m.read_time }, - |m: &mut ListAssetsResponse| { &mut m.read_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "assets", - |m: &ListAssetsResponse| { &m.assets }, - |m: &mut ListAssetsResponse| { &mut m.assets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListAssetsResponse| { &m.next_page_token }, - |m: &mut ListAssetsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAssetsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAssetsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAssetsResponse::new) - } -} - -impl ::protobuf::Clear for ListAssetsResponse { - fn clear(&mut self) { - self.read_time.clear(); - self.assets.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAssetsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAssetsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetAssetsHistoryRequest { - // message fields - pub parent: ::std::string::String, - pub asset_names: ::protobuf::RepeatedField<::std::string::String>, - pub content_type: ContentType, - pub read_time_window: ::protobuf::SingularPtrField, - pub relationship_types: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetAssetsHistoryRequest { - fn default() -> &'a BatchGetAssetsHistoryRequest { - ::default_instance() - } -} - -impl BatchGetAssetsHistoryRequest { - pub fn new() -> BatchGetAssetsHistoryRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // repeated string asset_names = 2; - - - pub fn get_asset_names(&self) -> &[::std::string::String] { - &self.asset_names - } - pub fn clear_asset_names(&mut self) { - self.asset_names.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_names = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_names - } - - // Take field - pub fn take_asset_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_names, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.ContentType content_type = 3; - - - pub fn get_content_type(&self) -> ContentType { - self.content_type - } - pub fn clear_content_type(&mut self) { - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_content_type(&mut self, v: ContentType) { - self.content_type = v; - } - - // .google.cloud.asset.v1.TimeWindow read_time_window = 4; - - - pub fn get_read_time_window(&self) -> &super::assets::TimeWindow { - self.read_time_window.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_read_time_window(&mut self) { - self.read_time_window.clear(); - } - - pub fn has_read_time_window(&self) -> bool { - self.read_time_window.is_some() - } - - // Param is passed by value, moved - pub fn set_read_time_window(&mut self, v: super::assets::TimeWindow) { - self.read_time_window = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_time_window(&mut self) -> &mut super::assets::TimeWindow { - if self.read_time_window.is_none() { - self.read_time_window.set_default(); - } - self.read_time_window.as_mut().unwrap() - } - - // Take field - pub fn take_read_time_window(&mut self) -> super::assets::TimeWindow { - self.read_time_window.take().unwrap_or_else(|| super::assets::TimeWindow::new()) - } - - // repeated string relationship_types = 5; - - - pub fn get_relationship_types(&self) -> &[::std::string::String] { - &self.relationship_types - } - pub fn clear_relationship_types(&mut self) { - self.relationship_types.clear(); - } - - // Param is passed by value, moved - pub fn set_relationship_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.relationship_types = v; - } - - // Mutable pointer to the field. - pub fn mut_relationship_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.relationship_types - } - - // Take field - pub fn take_relationship_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.relationship_types, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BatchGetAssetsHistoryRequest { - fn is_initialized(&self) -> bool { - for v in &self.read_time_window { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_names)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.content_type, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_time_window)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.relationship_types)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - for value in &self.asset_names { - my_size += ::protobuf::rt::string_size(2, &value); - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.content_type); - } - if let Some(ref v) = self.read_time_window.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.relationship_types { - my_size += ::protobuf::rt::string_size(5, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - for v in &self.asset_names { - os.write_string(2, &v)?; - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.content_type))?; - } - if let Some(ref v) = self.read_time_window.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.relationship_types { - os.write_string(5, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetAssetsHistoryRequest { - BatchGetAssetsHistoryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &BatchGetAssetsHistoryRequest| { &m.parent }, - |m: &mut BatchGetAssetsHistoryRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_names", - |m: &BatchGetAssetsHistoryRequest| { &m.asset_names }, - |m: &mut BatchGetAssetsHistoryRequest| { &mut m.asset_names }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "content_type", - |m: &BatchGetAssetsHistoryRequest| { &m.content_type }, - |m: &mut BatchGetAssetsHistoryRequest| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "read_time_window", - |m: &BatchGetAssetsHistoryRequest| { &m.read_time_window }, - |m: &mut BatchGetAssetsHistoryRequest| { &mut m.read_time_window }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "relationship_types", - |m: &BatchGetAssetsHistoryRequest| { &m.relationship_types }, - |m: &mut BatchGetAssetsHistoryRequest| { &mut m.relationship_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetAssetsHistoryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetAssetsHistoryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetAssetsHistoryRequest::new) - } -} - -impl ::protobuf::Clear for BatchGetAssetsHistoryRequest { - fn clear(&mut self) { - self.parent.clear(); - self.asset_names.clear(); - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - self.read_time_window.clear(); - self.relationship_types.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetAssetsHistoryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetAssetsHistoryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetAssetsHistoryResponse { - // message fields - pub assets: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetAssetsHistoryResponse { - fn default() -> &'a BatchGetAssetsHistoryResponse { - ::default_instance() - } -} - -impl BatchGetAssetsHistoryResponse { - pub fn new() -> BatchGetAssetsHistoryResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.TemporalAsset assets = 1; - - - pub fn get_assets(&self) -> &[super::assets::TemporalAsset] { - &self.assets - } - pub fn clear_assets(&mut self) { - self.assets.clear(); - } - - // Param is passed by value, moved - pub fn set_assets(&mut self, v: ::protobuf::RepeatedField) { - self.assets = v; - } - - // Mutable pointer to the field. - pub fn mut_assets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.assets - } - - // Take field - pub fn take_assets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.assets, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BatchGetAssetsHistoryResponse { - fn is_initialized(&self) -> bool { - for v in &self.assets { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.assets)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.assets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.assets { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetAssetsHistoryResponse { - BatchGetAssetsHistoryResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "assets", - |m: &BatchGetAssetsHistoryResponse| { &m.assets }, - |m: &mut BatchGetAssetsHistoryResponse| { &mut m.assets }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetAssetsHistoryResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetAssetsHistoryResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetAssetsHistoryResponse::new) - } -} - -impl ::protobuf::Clear for BatchGetAssetsHistoryResponse { - fn clear(&mut self) { - self.assets.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetAssetsHistoryResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetAssetsHistoryResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateFeedRequest { - // message fields - pub parent: ::std::string::String, - pub feed_id: ::std::string::String, - pub feed: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateFeedRequest { - fn default() -> &'a CreateFeedRequest { - ::default_instance() - } -} - -impl CreateFeedRequest { - pub fn new() -> CreateFeedRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string feed_id = 2; - - - pub fn get_feed_id(&self) -> &str { - &self.feed_id - } - pub fn clear_feed_id(&mut self) { - self.feed_id.clear(); - } - - // Param is passed by value, moved - pub fn set_feed_id(&mut self, v: ::std::string::String) { - self.feed_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_feed_id(&mut self) -> &mut ::std::string::String { - &mut self.feed_id - } - - // Take field - pub fn take_feed_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.feed_id, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.Feed feed = 3; - - - pub fn get_feed(&self) -> &Feed { - self.feed.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_feed(&mut self) { - self.feed.clear(); - } - - pub fn has_feed(&self) -> bool { - self.feed.is_some() - } - - // Param is passed by value, moved - pub fn set_feed(&mut self, v: Feed) { - self.feed = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_feed(&mut self) -> &mut Feed { - if self.feed.is_none() { - self.feed.set_default(); - } - self.feed.as_mut().unwrap() - } - - // Take field - pub fn take_feed(&mut self) -> Feed { - self.feed.take().unwrap_or_else(|| Feed::new()) - } -} - -impl ::protobuf::Message for CreateFeedRequest { - fn is_initialized(&self) -> bool { - for v in &self.feed { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.feed_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feed)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.feed_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.feed_id); - } - if let Some(ref v) = self.feed.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.feed_id.is_empty() { - os.write_string(2, &self.feed_id)?; - } - if let Some(ref v) = self.feed.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateFeedRequest { - CreateFeedRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateFeedRequest| { &m.parent }, - |m: &mut CreateFeedRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "feed_id", - |m: &CreateFeedRequest| { &m.feed_id }, - |m: &mut CreateFeedRequest| { &mut m.feed_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "feed", - |m: &CreateFeedRequest| { &m.feed }, - |m: &mut CreateFeedRequest| { &mut m.feed }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateFeedRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateFeedRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateFeedRequest::new) - } -} - -impl ::protobuf::Clear for CreateFeedRequest { - fn clear(&mut self) { - self.parent.clear(); - self.feed_id.clear(); - self.feed.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateFeedRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateFeedRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetFeedRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetFeedRequest { - fn default() -> &'a GetFeedRequest { - ::default_instance() - } -} - -impl GetFeedRequest { - pub fn new() -> GetFeedRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetFeedRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetFeedRequest { - GetFeedRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetFeedRequest| { &m.name }, - |m: &mut GetFeedRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetFeedRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetFeedRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetFeedRequest::new) - } -} - -impl ::protobuf::Clear for GetFeedRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetFeedRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetFeedRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListFeedsRequest { - // message fields - pub parent: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListFeedsRequest { - fn default() -> &'a ListFeedsRequest { - ::default_instance() - } -} - -impl ListFeedsRequest { - pub fn new() -> ListFeedsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListFeedsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListFeedsRequest { - ListFeedsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListFeedsRequest| { &m.parent }, - |m: &mut ListFeedsRequest| { &mut m.parent }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListFeedsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListFeedsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListFeedsRequest::new) - } -} - -impl ::protobuf::Clear for ListFeedsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListFeedsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListFeedsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListFeedsResponse { - // message fields - pub feeds: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListFeedsResponse { - fn default() -> &'a ListFeedsResponse { - ::default_instance() - } -} - -impl ListFeedsResponse { - pub fn new() -> ListFeedsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.Feed feeds = 1; - - - pub fn get_feeds(&self) -> &[Feed] { - &self.feeds - } - pub fn clear_feeds(&mut self) { - self.feeds.clear(); - } - - // Param is passed by value, moved - pub fn set_feeds(&mut self, v: ::protobuf::RepeatedField) { - self.feeds = v; - } - - // Mutable pointer to the field. - pub fn mut_feeds(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.feeds - } - - // Take field - pub fn take_feeds(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.feeds, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListFeedsResponse { - fn is_initialized(&self) -> bool { - for v in &self.feeds { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.feeds)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.feeds { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.feeds { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListFeedsResponse { - ListFeedsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "feeds", - |m: &ListFeedsResponse| { &m.feeds }, - |m: &mut ListFeedsResponse| { &mut m.feeds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListFeedsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListFeedsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListFeedsResponse::new) - } -} - -impl ::protobuf::Clear for ListFeedsResponse { - fn clear(&mut self) { - self.feeds.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListFeedsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListFeedsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateFeedRequest { - // message fields - pub feed: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateFeedRequest { - fn default() -> &'a UpdateFeedRequest { - ::default_instance() - } -} - -impl UpdateFeedRequest { - pub fn new() -> UpdateFeedRequest { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.Feed feed = 1; - - - pub fn get_feed(&self) -> &Feed { - self.feed.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_feed(&mut self) { - self.feed.clear(); - } - - pub fn has_feed(&self) -> bool { - self.feed.is_some() - } - - // Param is passed by value, moved - pub fn set_feed(&mut self, v: Feed) { - self.feed = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_feed(&mut self) -> &mut Feed { - if self.feed.is_none() { - self.feed.set_default(); - } - self.feed.as_mut().unwrap() - } - - // Take field - pub fn take_feed(&mut self) -> Feed { - self.feed.take().unwrap_or_else(|| Feed::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateFeedRequest { - fn is_initialized(&self) -> bool { - for v in &self.feed { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feed)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.feed.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.feed.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateFeedRequest { - UpdateFeedRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "feed", - |m: &UpdateFeedRequest| { &m.feed }, - |m: &mut UpdateFeedRequest| { &mut m.feed }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateFeedRequest| { &m.update_mask }, - |m: &mut UpdateFeedRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateFeedRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateFeedRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateFeedRequest::new) - } -} - -impl ::protobuf::Clear for UpdateFeedRequest { - fn clear(&mut self) { - self.feed.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateFeedRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateFeedRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteFeedRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteFeedRequest { - fn default() -> &'a DeleteFeedRequest { - ::default_instance() - } -} - -impl DeleteFeedRequest { - pub fn new() -> DeleteFeedRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteFeedRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteFeedRequest { - DeleteFeedRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteFeedRequest| { &m.name }, - |m: &mut DeleteFeedRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteFeedRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteFeedRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteFeedRequest::new) - } -} - -impl ::protobuf::Clear for DeleteFeedRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteFeedRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteFeedRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OutputConfig { - // message oneof groups - pub destination: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OutputConfig { - fn default() -> &'a OutputConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OutputConfig_oneof_destination { - gcs_destination(GcsDestination), - bigquery_destination(BigQueryDestination), -} - -impl OutputConfig { - pub fn new() -> OutputConfig { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - - - pub fn get_gcs_destination(&self) -> &GcsDestination { - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs_destination(&mut self) { - self.destination = ::std::option::Option::None; - } - - pub fn has_gcs_destination(&self) -> bool { - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs_destination(&mut self, v: GcsDestination) { - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs_destination(&mut self) -> &mut GcsDestination { - if let ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(_)) = self.destination { - } else { - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(GcsDestination::new())); - } - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs_destination(&mut self) -> GcsDestination { - if self.has_gcs_destination() { - match self.destination.take() { - ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(v)) => v, - _ => panic!(), - } - } else { - GcsDestination::new() - } - } - - // .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - - - pub fn get_bigquery_destination(&self) -> &BigQueryDestination { - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_bigquery_destination(&mut self) { - self.destination = ::std::option::Option::None; - } - - pub fn has_bigquery_destination(&self) -> bool { - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_bigquery_destination(&mut self, v: BigQueryDestination) { - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(v)) - } - - // Mutable pointer to the field. - pub fn mut_bigquery_destination(&mut self) -> &mut BigQueryDestination { - if let ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(_)) = self.destination { - } else { - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(BigQueryDestination::new())); - } - match self.destination { - ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_bigquery_destination(&mut self) -> BigQueryDestination { - if self.has_bigquery_destination() { - match self.destination.take() { - ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(v)) => v, - _ => panic!(), - } - } else { - BigQueryDestination::new() - } - } -} - -impl ::protobuf::Message for OutputConfig { - fn is_initialized(&self) -> bool { - if let Some(OutputConfig_oneof_destination::gcs_destination(ref v)) = self.destination { - if !v.is_initialized() { - return false; - } - } - if let Some(OutputConfig_oneof_destination::bigquery_destination(ref v)) = self.destination { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::gcs_destination(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.destination = ::std::option::Option::Some(OutputConfig_oneof_destination::bigquery_destination(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &OutputConfig_oneof_destination::gcs_destination(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OutputConfig_oneof_destination::bigquery_destination(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &OutputConfig_oneof_destination::gcs_destination(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OutputConfig_oneof_destination::bigquery_destination(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OutputConfig { - OutputConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcsDestination>( - "gcs_destination", - OutputConfig::has_gcs_destination, - OutputConfig::get_gcs_destination, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, BigQueryDestination>( - "bigquery_destination", - OutputConfig::has_bigquery_destination, - OutputConfig::get_bigquery_destination, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OutputConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OutputConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OutputConfig::new) - } -} - -impl ::protobuf::Clear for OutputConfig { - fn clear(&mut self) { - self.destination = ::std::option::Option::None; - self.destination = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OutputConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OutputConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OutputResult { - // message oneof groups - pub result: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OutputResult { - fn default() -> &'a OutputResult { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OutputResult_oneof_result { - gcs_result(GcsOutputResult), -} - -impl OutputResult { - pub fn new() -> OutputResult { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - - - pub fn get_gcs_result(&self) -> &GcsOutputResult { - match self.result { - ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs_result(&mut self) { - self.result = ::std::option::Option::None; - } - - pub fn has_gcs_result(&self) -> bool { - match self.result { - ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs_result(&mut self, v: GcsOutputResult) { - self.result = ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs_result(&mut self) -> &mut GcsOutputResult { - if let ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(_)) = self.result { - } else { - self.result = ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(GcsOutputResult::new())); - } - match self.result { - ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs_result(&mut self) -> GcsOutputResult { - if self.has_gcs_result() { - match self.result.take() { - ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(v)) => v, - _ => panic!(), - } - } else { - GcsOutputResult::new() - } - } -} - -impl ::protobuf::Message for OutputResult { - fn is_initialized(&self) -> bool { - if let Some(OutputResult_oneof_result::gcs_result(ref v)) = self.result { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.result = ::std::option::Option::Some(OutputResult_oneof_result::gcs_result(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.result { - match v { - &OutputResult_oneof_result::gcs_result(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.result { - match v { - &OutputResult_oneof_result::gcs_result(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OutputResult { - OutputResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcsOutputResult>( - "gcs_result", - OutputResult::has_gcs_result, - OutputResult::get_gcs_result, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OutputResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OutputResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OutputResult::new) - } -} - -impl ::protobuf::Clear for OutputResult { - fn clear(&mut self) { - self.result = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OutputResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OutputResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcsOutputResult { - // message fields - pub uris: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcsOutputResult { - fn default() -> &'a GcsOutputResult { - ::default_instance() - } -} - -impl GcsOutputResult { - pub fn new() -> GcsOutputResult { - ::std::default::Default::default() - } - - // repeated string uris = 1; - - - pub fn get_uris(&self) -> &[::std::string::String] { - &self.uris - } - pub fn clear_uris(&mut self) { - self.uris.clear(); - } - - // Param is passed by value, moved - pub fn set_uris(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.uris = v; - } - - // Mutable pointer to the field. - pub fn mut_uris(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.uris - } - - // Take field - pub fn take_uris(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.uris, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for GcsOutputResult { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.uris)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.uris { - my_size += ::protobuf::rt::string_size(1, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.uris { - os.write_string(1, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcsOutputResult { - GcsOutputResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uris", - |m: &GcsOutputResult| { &m.uris }, - |m: &mut GcsOutputResult| { &mut m.uris }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcsOutputResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcsOutputResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcsOutputResult::new) - } -} - -impl ::protobuf::Clear for GcsOutputResult { - fn clear(&mut self) { - self.uris.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcsOutputResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcsOutputResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcsDestination { - // message oneof groups - pub object_uri: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcsDestination { - fn default() -> &'a GcsDestination { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum GcsDestination_oneof_object_uri { - uri(::std::string::String), - uri_prefix(::std::string::String), -} - -impl GcsDestination { - pub fn new() -> GcsDestination { - ::std::default::Default::default() - } - - // string uri = 1; - - - pub fn get_uri(&self) -> &str { - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(ref v)) => v, - _ => "", - } - } - pub fn clear_uri(&mut self) { - self.object_uri = ::std::option::Option::None; - } - - pub fn has_uri(&self) -> bool { - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(v)) - } - - // Mutable pointer to the field. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(_)) = self.object_uri { - } else { - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(::std::string::String::new())); - } - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - if self.has_uri() { - match self.object_uri.take() { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string uri_prefix = 2; - - - pub fn get_uri_prefix(&self) -> &str { - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(ref v)) => v, - _ => "", - } - } - pub fn clear_uri_prefix(&mut self) { - self.object_uri = ::std::option::Option::None; - } - - pub fn has_uri_prefix(&self) -> bool { - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_uri_prefix(&mut self, v: ::std::string::String) { - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(v)) - } - - // Mutable pointer to the field. - pub fn mut_uri_prefix(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(_)) = self.object_uri { - } else { - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(::std::string::String::new())); - } - match self.object_uri { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_uri_prefix(&mut self) -> ::std::string::String { - if self.has_uri_prefix() { - match self.object_uri.take() { - ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for GcsDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.object_uri = ::std::option::Option::Some(GcsDestination_oneof_object_uri::uri_prefix(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.object_uri { - match v { - &GcsDestination_oneof_object_uri::uri(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &GcsDestination_oneof_object_uri::uri_prefix(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.object_uri { - match v { - &GcsDestination_oneof_object_uri::uri(ref v) => { - os.write_string(1, v)?; - }, - &GcsDestination_oneof_object_uri::uri_prefix(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcsDestination { - GcsDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "uri", - GcsDestination::has_uri, - GcsDestination::get_uri, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "uri_prefix", - GcsDestination::has_uri_prefix, - GcsDestination::get_uri_prefix, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcsDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcsDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcsDestination::new) - } -} - -impl ::protobuf::Clear for GcsDestination { - fn clear(&mut self) { - self.object_uri = ::std::option::Option::None; - self.object_uri = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcsDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcsDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BigQueryDestination { - // message fields - pub dataset: ::std::string::String, - pub table: ::std::string::String, - pub force: bool, - pub partition_spec: ::protobuf::SingularPtrField, - pub separate_tables_per_asset_type: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BigQueryDestination { - fn default() -> &'a BigQueryDestination { - ::default_instance() - } -} - -impl BigQueryDestination { - pub fn new() -> BigQueryDestination { - ::std::default::Default::default() - } - - // string dataset = 1; - - - pub fn get_dataset(&self) -> &str { - &self.dataset - } - pub fn clear_dataset(&mut self) { - self.dataset.clear(); - } - - // Param is passed by value, moved - pub fn set_dataset(&mut self, v: ::std::string::String) { - self.dataset = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dataset(&mut self) -> &mut ::std::string::String { - &mut self.dataset - } - - // Take field - pub fn take_dataset(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dataset, ::std::string::String::new()) - } - - // string table = 2; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // bool force = 3; - - - pub fn get_force(&self) -> bool { - self.force - } - pub fn clear_force(&mut self) { - self.force = false; - } - - // Param is passed by value, moved - pub fn set_force(&mut self, v: bool) { - self.force = v; - } - - // .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - - - pub fn get_partition_spec(&self) -> &PartitionSpec { - self.partition_spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_partition_spec(&mut self) { - self.partition_spec.clear(); - } - - pub fn has_partition_spec(&self) -> bool { - self.partition_spec.is_some() - } - - // Param is passed by value, moved - pub fn set_partition_spec(&mut self, v: PartitionSpec) { - self.partition_spec = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_spec(&mut self) -> &mut PartitionSpec { - if self.partition_spec.is_none() { - self.partition_spec.set_default(); - } - self.partition_spec.as_mut().unwrap() - } - - // Take field - pub fn take_partition_spec(&mut self) -> PartitionSpec { - self.partition_spec.take().unwrap_or_else(|| PartitionSpec::new()) - } - - // bool separate_tables_per_asset_type = 5; - - - pub fn get_separate_tables_per_asset_type(&self) -> bool { - self.separate_tables_per_asset_type - } - pub fn clear_separate_tables_per_asset_type(&mut self) { - self.separate_tables_per_asset_type = false; - } - - // Param is passed by value, moved - pub fn set_separate_tables_per_asset_type(&mut self, v: bool) { - self.separate_tables_per_asset_type = v; - } -} - -impl ::protobuf::Message for BigQueryDestination { - fn is_initialized(&self) -> bool { - for v in &self.partition_spec { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dataset)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.force = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition_spec)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.separate_tables_per_asset_type = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dataset.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dataset); - } - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table); - } - if self.force != false { - my_size += 2; - } - if let Some(ref v) = self.partition_spec.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.separate_tables_per_asset_type != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dataset.is_empty() { - os.write_string(1, &self.dataset)?; - } - if !self.table.is_empty() { - os.write_string(2, &self.table)?; - } - if self.force != false { - os.write_bool(3, self.force)?; - } - if let Some(ref v) = self.partition_spec.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.separate_tables_per_asset_type != false { - os.write_bool(5, self.separate_tables_per_asset_type)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BigQueryDestination { - BigQueryDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dataset", - |m: &BigQueryDestination| { &m.dataset }, - |m: &mut BigQueryDestination| { &mut m.dataset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &BigQueryDestination| { &m.table }, - |m: &mut BigQueryDestination| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "force", - |m: &BigQueryDestination| { &m.force }, - |m: &mut BigQueryDestination| { &mut m.force }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition_spec", - |m: &BigQueryDestination| { &m.partition_spec }, - |m: &mut BigQueryDestination| { &mut m.partition_spec }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "separate_tables_per_asset_type", - |m: &BigQueryDestination| { &m.separate_tables_per_asset_type }, - |m: &mut BigQueryDestination| { &mut m.separate_tables_per_asset_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BigQueryDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BigQueryDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BigQueryDestination::new) - } -} - -impl ::protobuf::Clear for BigQueryDestination { - fn clear(&mut self) { - self.dataset.clear(); - self.table.clear(); - self.force = false; - self.partition_spec.clear(); - self.separate_tables_per_asset_type = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BigQueryDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BigQueryDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PartitionSpec { - // message fields - pub partition_key: PartitionSpec_PartitionKey, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PartitionSpec { - fn default() -> &'a PartitionSpec { - ::default_instance() - } -} - -impl PartitionSpec { - pub fn new() -> PartitionSpec { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.PartitionSpec.PartitionKey partition_key = 1; - - - pub fn get_partition_key(&self) -> PartitionSpec_PartitionKey { - self.partition_key - } - pub fn clear_partition_key(&mut self) { - self.partition_key = PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_partition_key(&mut self, v: PartitionSpec_PartitionKey) { - self.partition_key = v; - } -} - -impl ::protobuf::Message for PartitionSpec { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.partition_key, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.partition_key != PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.partition_key); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.partition_key != PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.partition_key))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartitionSpec { - PartitionSpec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "partition_key", - |m: &PartitionSpec| { &m.partition_key }, - |m: &mut PartitionSpec| { &mut m.partition_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartitionSpec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartitionSpec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartitionSpec::new) - } -} - -impl ::protobuf::Clear for PartitionSpec { - fn clear(&mut self) { - self.partition_key = PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartitionSpec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionSpec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PartitionSpec_PartitionKey { - PARTITION_KEY_UNSPECIFIED = 0, - READ_TIME = 1, - REQUEST_TIME = 2, -} - -impl ::protobuf::ProtobufEnum for PartitionSpec_PartitionKey { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED), - 1 => ::std::option::Option::Some(PartitionSpec_PartitionKey::READ_TIME), - 2 => ::std::option::Option::Some(PartitionSpec_PartitionKey::REQUEST_TIME), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PartitionSpec_PartitionKey] = &[ - PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED, - PartitionSpec_PartitionKey::READ_TIME, - PartitionSpec_PartitionKey::REQUEST_TIME, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PartitionSpec.PartitionKey", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PartitionSpec_PartitionKey { -} - -impl ::std::default::Default for PartitionSpec_PartitionKey { - fn default() -> Self { - PartitionSpec_PartitionKey::PARTITION_KEY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionSpec_PartitionKey { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PubsubDestination { - // message fields - pub topic: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PubsubDestination { - fn default() -> &'a PubsubDestination { - ::default_instance() - } -} - -impl PubsubDestination { - pub fn new() -> PubsubDestination { - ::std::default::Default::default() - } - - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PubsubDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.topic.is_empty() { - os.write_string(1, &self.topic)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PubsubDestination { - PubsubDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &PubsubDestination| { &m.topic }, - |m: &mut PubsubDestination| { &mut m.topic }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PubsubDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PubsubDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PubsubDestination::new) - } -} - -impl ::protobuf::Clear for PubsubDestination { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PubsubDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PubsubDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct FeedOutputConfig { - // message oneof groups - pub destination: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FeedOutputConfig { - fn default() -> &'a FeedOutputConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum FeedOutputConfig_oneof_destination { - pubsub_destination(PubsubDestination), -} - -impl FeedOutputConfig { - pub fn new() -> FeedOutputConfig { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.PubsubDestination pubsub_destination = 1; - - - pub fn get_pubsub_destination(&self) -> &PubsubDestination { - match self.destination { - ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_pubsub_destination(&mut self) { - self.destination = ::std::option::Option::None; - } - - pub fn has_pubsub_destination(&self) -> bool { - match self.destination { - ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_pubsub_destination(&mut self, v: PubsubDestination) { - self.destination = ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(v)) - } - - // Mutable pointer to the field. - pub fn mut_pubsub_destination(&mut self) -> &mut PubsubDestination { - if let ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(_)) = self.destination { - } else { - self.destination = ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(PubsubDestination::new())); - } - match self.destination { - ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_pubsub_destination(&mut self) -> PubsubDestination { - if self.has_pubsub_destination() { - match self.destination.take() { - ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(v)) => v, - _ => panic!(), - } - } else { - PubsubDestination::new() - } - } -} - -impl ::protobuf::Message for FeedOutputConfig { - fn is_initialized(&self) -> bool { - if let Some(FeedOutputConfig_oneof_destination::pubsub_destination(ref v)) = self.destination { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.destination = ::std::option::Option::Some(FeedOutputConfig_oneof_destination::pubsub_destination(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &FeedOutputConfig_oneof_destination::pubsub_destination(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &FeedOutputConfig_oneof_destination::pubsub_destination(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FeedOutputConfig { - FeedOutputConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PubsubDestination>( - "pubsub_destination", - FeedOutputConfig::has_pubsub_destination, - FeedOutputConfig::get_pubsub_destination, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FeedOutputConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FeedOutputConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FeedOutputConfig::new) - } -} - -impl ::protobuf::Clear for FeedOutputConfig { - fn clear(&mut self) { - self.destination = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FeedOutputConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FeedOutputConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Feed { - // message fields - pub name: ::std::string::String, - pub asset_names: ::protobuf::RepeatedField<::std::string::String>, - pub asset_types: ::protobuf::RepeatedField<::std::string::String>, - pub content_type: ContentType, - pub feed_output_config: ::protobuf::SingularPtrField, - pub condition: ::protobuf::SingularPtrField, - pub relationship_types: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Feed { - fn default() -> &'a Feed { - ::default_instance() - } -} - -impl Feed { - pub fn new() -> Feed { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated string asset_names = 2; - - - pub fn get_asset_names(&self) -> &[::std::string::String] { - &self.asset_names - } - pub fn clear_asset_names(&mut self) { - self.asset_names.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_names = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_names - } - - // Take field - pub fn take_asset_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_names, ::protobuf::RepeatedField::new()) - } - - // repeated string asset_types = 3; - - - pub fn get_asset_types(&self) -> &[::std::string::String] { - &self.asset_types - } - pub fn clear_asset_types(&mut self) { - self.asset_types.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_types = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_types - } - - // Take field - pub fn take_asset_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_types, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.ContentType content_type = 4; - - - pub fn get_content_type(&self) -> ContentType { - self.content_type - } - pub fn clear_content_type(&mut self) { - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_content_type(&mut self, v: ContentType) { - self.content_type = v; - } - - // .google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5; - - - pub fn get_feed_output_config(&self) -> &FeedOutputConfig { - self.feed_output_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_feed_output_config(&mut self) { - self.feed_output_config.clear(); - } - - pub fn has_feed_output_config(&self) -> bool { - self.feed_output_config.is_some() - } - - // Param is passed by value, moved - pub fn set_feed_output_config(&mut self, v: FeedOutputConfig) { - self.feed_output_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_feed_output_config(&mut self) -> &mut FeedOutputConfig { - if self.feed_output_config.is_none() { - self.feed_output_config.set_default(); - } - self.feed_output_config.as_mut().unwrap() - } - - // Take field - pub fn take_feed_output_config(&mut self) -> FeedOutputConfig { - self.feed_output_config.take().unwrap_or_else(|| FeedOutputConfig::new()) - } - - // .google.type.Expr condition = 6; - - - pub fn get_condition(&self) -> &super::expr::Expr { - self.condition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - pub fn has_condition(&self) -> bool { - self.condition.is_some() - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: super::expr::Expr) { - self.condition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut super::expr::Expr { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> super::expr::Expr { - self.condition.take().unwrap_or_else(|| super::expr::Expr::new()) - } - - // repeated string relationship_types = 7; - - - pub fn get_relationship_types(&self) -> &[::std::string::String] { - &self.relationship_types - } - pub fn clear_relationship_types(&mut self) { - self.relationship_types.clear(); - } - - // Param is passed by value, moved - pub fn set_relationship_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.relationship_types = v; - } - - // Mutable pointer to the field. - pub fn mut_relationship_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.relationship_types - } - - // Take field - pub fn take_relationship_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.relationship_types, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Feed { - fn is_initialized(&self) -> bool { - for v in &self.feed_output_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.condition { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_names)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_types)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.content_type, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.feed_output_config)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition)?; - }, - 7 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.relationship_types)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.asset_names { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.asset_types { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.content_type); - } - if let Some(ref v) = self.feed_output_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.condition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.relationship_types { - my_size += ::protobuf::rt::string_size(7, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.asset_names { - os.write_string(2, &v)?; - }; - for v in &self.asset_types { - os.write_string(3, &v)?; - }; - if self.content_type != ContentType::CONTENT_TYPE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.content_type))?; - } - if let Some(ref v) = self.feed_output_config.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.condition.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.relationship_types { - os.write_string(7, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Feed { - Feed::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Feed| { &m.name }, - |m: &mut Feed| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_names", - |m: &Feed| { &m.asset_names }, - |m: &mut Feed| { &mut m.asset_names }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_types", - |m: &Feed| { &m.asset_types }, - |m: &mut Feed| { &mut m.asset_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "content_type", - |m: &Feed| { &m.content_type }, - |m: &mut Feed| { &mut m.content_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "feed_output_config", - |m: &Feed| { &m.feed_output_config }, - |m: &mut Feed| { &mut m.feed_output_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &Feed| { &m.condition }, - |m: &mut Feed| { &mut m.condition }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "relationship_types", - |m: &Feed| { &m.relationship_types }, - |m: &mut Feed| { &mut m.relationship_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Feed", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Feed { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Feed::new) - } -} - -impl ::protobuf::Clear for Feed { - fn clear(&mut self) { - self.name.clear(); - self.asset_names.clear(); - self.asset_types.clear(); - self.content_type = ContentType::CONTENT_TYPE_UNSPECIFIED; - self.feed_output_config.clear(); - self.condition.clear(); - self.relationship_types.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Feed { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Feed { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SearchAllResourcesRequest { - // message fields - pub scope: ::std::string::String, - pub query: ::std::string::String, - pub asset_types: ::protobuf::RepeatedField<::std::string::String>, - pub page_size: i32, - pub page_token: ::std::string::String, - pub order_by: ::std::string::String, - pub read_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SearchAllResourcesRequest { - fn default() -> &'a SearchAllResourcesRequest { - ::default_instance() - } -} - -impl SearchAllResourcesRequest { - pub fn new() -> SearchAllResourcesRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // string query = 2; - - - pub fn get_query(&self) -> &str { - &self.query - } - pub fn clear_query(&mut self) { - self.query.clear(); - } - - // Param is passed by value, moved - pub fn set_query(&mut self, v: ::std::string::String) { - self.query = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_query(&mut self) -> &mut ::std::string::String { - &mut self.query - } - - // Take field - pub fn take_query(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.query, ::std::string::String::new()) - } - - // repeated string asset_types = 3; - - - pub fn get_asset_types(&self) -> &[::std::string::String] { - &self.asset_types - } - pub fn clear_asset_types(&mut self) { - self.asset_types.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_types = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_types - } - - // Take field - pub fn take_asset_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_types, ::protobuf::RepeatedField::new()) - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string order_by = 6; - - - pub fn get_order_by(&self) -> &str { - &self.order_by - } - pub fn clear_order_by(&mut self) { - self.order_by.clear(); - } - - // Param is passed by value, moved - pub fn set_order_by(&mut self, v: ::std::string::String) { - self.order_by = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_order_by(&mut self) -> &mut ::std::string::String { - &mut self.order_by - } - - // Take field - pub fn take_order_by(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.order_by, ::std::string::String::new()) - } - - // .google.protobuf.FieldMask read_mask = 8; - - - pub fn get_read_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.read_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_mask(&mut self) { - self.read_mask.clear(); - } - - pub fn has_read_mask(&self) -> bool { - self.read_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_read_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.read_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.read_mask.is_none() { - self.read_mask.set_default(); - } - self.read_mask.as_mut().unwrap() - } - - // Take field - pub fn take_read_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.read_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for SearchAllResourcesRequest { - fn is_initialized(&self) -> bool { - for v in &self.read_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.query)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_types)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.order_by)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if !self.query.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.query); - } - for value in &self.asset_types { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(4, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if !self.order_by.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.order_by); - } - if let Some(ref v) = self.read_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if !self.query.is_empty() { - os.write_string(2, &self.query)?; - } - for v in &self.asset_types { - os.write_string(3, &v)?; - }; - if self.page_size != 0 { - os.write_int32(4, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if !self.order_by.is_empty() { - os.write_string(6, &self.order_by)?; - } - if let Some(ref v) = self.read_mask.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SearchAllResourcesRequest { - SearchAllResourcesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &SearchAllResourcesRequest| { &m.scope }, - |m: &mut SearchAllResourcesRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "query", - |m: &SearchAllResourcesRequest| { &m.query }, - |m: &mut SearchAllResourcesRequest| { &mut m.query }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_types", - |m: &SearchAllResourcesRequest| { &m.asset_types }, - |m: &mut SearchAllResourcesRequest| { &mut m.asset_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &SearchAllResourcesRequest| { &m.page_size }, - |m: &mut SearchAllResourcesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &SearchAllResourcesRequest| { &m.page_token }, - |m: &mut SearchAllResourcesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "order_by", - |m: &SearchAllResourcesRequest| { &m.order_by }, - |m: &mut SearchAllResourcesRequest| { &mut m.order_by }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "read_mask", - |m: &SearchAllResourcesRequest| { &m.read_mask }, - |m: &mut SearchAllResourcesRequest| { &mut m.read_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SearchAllResourcesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SearchAllResourcesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SearchAllResourcesRequest::new) - } -} - -impl ::protobuf::Clear for SearchAllResourcesRequest { - fn clear(&mut self) { - self.scope.clear(); - self.query.clear(); - self.asset_types.clear(); - self.page_size = 0; - self.page_token.clear(); - self.order_by.clear(); - self.read_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SearchAllResourcesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SearchAllResourcesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SearchAllResourcesResponse { - // message fields - pub results: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SearchAllResourcesResponse { - fn default() -> &'a SearchAllResourcesResponse { - ::default_instance() - } -} - -impl SearchAllResourcesResponse { - pub fn new() -> SearchAllResourcesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.ResourceSearchResult results = 1; - - - pub fn get_results(&self) -> &[super::assets::ResourceSearchResult] { - &self.results - } - pub fn clear_results(&mut self) { - self.results.clear(); - } - - // Param is passed by value, moved - pub fn set_results(&mut self, v: ::protobuf::RepeatedField) { - self.results = v; - } - - // Mutable pointer to the field. - pub fn mut_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.results - } - - // Take field - pub fn take_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.results, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for SearchAllResourcesResponse { - fn is_initialized(&self) -> bool { - for v in &self.results { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.results)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.results { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SearchAllResourcesResponse { - SearchAllResourcesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "results", - |m: &SearchAllResourcesResponse| { &m.results }, - |m: &mut SearchAllResourcesResponse| { &mut m.results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &SearchAllResourcesResponse| { &m.next_page_token }, - |m: &mut SearchAllResourcesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SearchAllResourcesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SearchAllResourcesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SearchAllResourcesResponse::new) - } -} - -impl ::protobuf::Clear for SearchAllResourcesResponse { - fn clear(&mut self) { - self.results.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SearchAllResourcesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SearchAllResourcesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SearchAllIamPoliciesRequest { - // message fields - pub scope: ::std::string::String, - pub query: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub asset_types: ::protobuf::RepeatedField<::std::string::String>, - pub order_by: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SearchAllIamPoliciesRequest { - fn default() -> &'a SearchAllIamPoliciesRequest { - ::default_instance() - } -} - -impl SearchAllIamPoliciesRequest { - pub fn new() -> SearchAllIamPoliciesRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // string query = 2; - - - pub fn get_query(&self) -> &str { - &self.query - } - pub fn clear_query(&mut self) { - self.query.clear(); - } - - // Param is passed by value, moved - pub fn set_query(&mut self, v: ::std::string::String) { - self.query = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_query(&mut self) -> &mut ::std::string::String { - &mut self.query - } - - // Take field - pub fn take_query(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.query, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // repeated string asset_types = 5; - - - pub fn get_asset_types(&self) -> &[::std::string::String] { - &self.asset_types - } - pub fn clear_asset_types(&mut self) { - self.asset_types.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.asset_types = v; - } - - // Mutable pointer to the field. - pub fn mut_asset_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.asset_types - } - - // Take field - pub fn take_asset_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.asset_types, ::protobuf::RepeatedField::new()) - } - - // string order_by = 7; - - - pub fn get_order_by(&self) -> &str { - &self.order_by - } - pub fn clear_order_by(&mut self) { - self.order_by.clear(); - } - - // Param is passed by value, moved - pub fn set_order_by(&mut self, v: ::std::string::String) { - self.order_by = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_order_by(&mut self) -> &mut ::std::string::String { - &mut self.order_by - } - - // Take field - pub fn take_order_by(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.order_by, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for SearchAllIamPoliciesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.query)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.asset_types)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.order_by)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if !self.query.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.query); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - for value in &self.asset_types { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.order_by.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.order_by); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if !self.query.is_empty() { - os.write_string(2, &self.query)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - for v in &self.asset_types { - os.write_string(5, &v)?; - }; - if !self.order_by.is_empty() { - os.write_string(7, &self.order_by)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SearchAllIamPoliciesRequest { - SearchAllIamPoliciesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &SearchAllIamPoliciesRequest| { &m.scope }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "query", - |m: &SearchAllIamPoliciesRequest| { &m.query }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.query }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &SearchAllIamPoliciesRequest| { &m.page_size }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &SearchAllIamPoliciesRequest| { &m.page_token }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_types", - |m: &SearchAllIamPoliciesRequest| { &m.asset_types }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.asset_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "order_by", - |m: &SearchAllIamPoliciesRequest| { &m.order_by }, - |m: &mut SearchAllIamPoliciesRequest| { &mut m.order_by }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SearchAllIamPoliciesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SearchAllIamPoliciesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SearchAllIamPoliciesRequest::new) - } -} - -impl ::protobuf::Clear for SearchAllIamPoliciesRequest { - fn clear(&mut self) { - self.scope.clear(); - self.query.clear(); - self.page_size = 0; - self.page_token.clear(); - self.asset_types.clear(); - self.order_by.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SearchAllIamPoliciesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SearchAllIamPoliciesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SearchAllIamPoliciesResponse { - // message fields - pub results: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SearchAllIamPoliciesResponse { - fn default() -> &'a SearchAllIamPoliciesResponse { - ::default_instance() - } -} - -impl SearchAllIamPoliciesResponse { - pub fn new() -> SearchAllIamPoliciesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; - - - pub fn get_results(&self) -> &[super::assets::IamPolicySearchResult] { - &self.results - } - pub fn clear_results(&mut self) { - self.results.clear(); - } - - // Param is passed by value, moved - pub fn set_results(&mut self, v: ::protobuf::RepeatedField) { - self.results = v; - } - - // Mutable pointer to the field. - pub fn mut_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.results - } - - // Take field - pub fn take_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.results, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for SearchAllIamPoliciesResponse { - fn is_initialized(&self) -> bool { - for v in &self.results { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.results)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.results { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SearchAllIamPoliciesResponse { - SearchAllIamPoliciesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "results", - |m: &SearchAllIamPoliciesResponse| { &m.results }, - |m: &mut SearchAllIamPoliciesResponse| { &mut m.results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &SearchAllIamPoliciesResponse| { &m.next_page_token }, - |m: &mut SearchAllIamPoliciesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SearchAllIamPoliciesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SearchAllIamPoliciesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SearchAllIamPoliciesResponse::new) - } -} - -impl ::protobuf::Clear for SearchAllIamPoliciesResponse { - fn clear(&mut self) { - self.results.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SearchAllIamPoliciesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SearchAllIamPoliciesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery { - // message fields - pub scope: ::std::string::String, - pub resource_selector: ::protobuf::SingularPtrField, - pub identity_selector: ::protobuf::SingularPtrField, - pub access_selector: ::protobuf::SingularPtrField, - pub options: ::protobuf::SingularPtrField, - pub condition_context: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery { - fn default() -> &'a IamPolicyAnalysisQuery { - ::default_instance() - } -} - -impl IamPolicyAnalysisQuery { - pub fn new() -> IamPolicyAnalysisQuery { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector resource_selector = 2; - - - pub fn get_resource_selector(&self) -> &IamPolicyAnalysisQuery_ResourceSelector { - self.resource_selector.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_resource_selector(&mut self) { - self.resource_selector.clear(); - } - - pub fn has_resource_selector(&self) -> bool { - self.resource_selector.is_some() - } - - // Param is passed by value, moved - pub fn set_resource_selector(&mut self, v: IamPolicyAnalysisQuery_ResourceSelector) { - self.resource_selector = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_selector(&mut self) -> &mut IamPolicyAnalysisQuery_ResourceSelector { - if self.resource_selector.is_none() { - self.resource_selector.set_default(); - } - self.resource_selector.as_mut().unwrap() - } - - // Take field - pub fn take_resource_selector(&mut self) -> IamPolicyAnalysisQuery_ResourceSelector { - self.resource_selector.take().unwrap_or_else(|| IamPolicyAnalysisQuery_ResourceSelector::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector identity_selector = 3; - - - pub fn get_identity_selector(&self) -> &IamPolicyAnalysisQuery_IdentitySelector { - self.identity_selector.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_identity_selector(&mut self) { - self.identity_selector.clear(); - } - - pub fn has_identity_selector(&self) -> bool { - self.identity_selector.is_some() - } - - // Param is passed by value, moved - pub fn set_identity_selector(&mut self, v: IamPolicyAnalysisQuery_IdentitySelector) { - self.identity_selector = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_identity_selector(&mut self) -> &mut IamPolicyAnalysisQuery_IdentitySelector { - if self.identity_selector.is_none() { - self.identity_selector.set_default(); - } - self.identity_selector.as_mut().unwrap() - } - - // Take field - pub fn take_identity_selector(&mut self) -> IamPolicyAnalysisQuery_IdentitySelector { - self.identity_selector.take().unwrap_or_else(|| IamPolicyAnalysisQuery_IdentitySelector::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector access_selector = 4; - - - pub fn get_access_selector(&self) -> &IamPolicyAnalysisQuery_AccessSelector { - self.access_selector.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_access_selector(&mut self) { - self.access_selector.clear(); - } - - pub fn has_access_selector(&self) -> bool { - self.access_selector.is_some() - } - - // Param is passed by value, moved - pub fn set_access_selector(&mut self, v: IamPolicyAnalysisQuery_AccessSelector) { - self.access_selector = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_selector(&mut self) -> &mut IamPolicyAnalysisQuery_AccessSelector { - if self.access_selector.is_none() { - self.access_selector.set_default(); - } - self.access_selector.as_mut().unwrap() - } - - // Take field - pub fn take_access_selector(&mut self) -> IamPolicyAnalysisQuery_AccessSelector { - self.access_selector.take().unwrap_or_else(|| IamPolicyAnalysisQuery_AccessSelector::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery.Options options = 5; - - - pub fn get_options(&self) -> &IamPolicyAnalysisQuery_Options { - self.options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - pub fn has_options(&self) -> bool { - self.options.is_some() - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: IamPolicyAnalysisQuery_Options) { - self.options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_options(&mut self) -> &mut IamPolicyAnalysisQuery_Options { - if self.options.is_none() { - self.options.set_default(); - } - self.options.as_mut().unwrap() - } - - // Take field - pub fn take_options(&mut self) -> IamPolicyAnalysisQuery_Options { - self.options.take().unwrap_or_else(|| IamPolicyAnalysisQuery_Options::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery.ConditionContext condition_context = 6; - - - pub fn get_condition_context(&self) -> &IamPolicyAnalysisQuery_ConditionContext { - self.condition_context.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition_context(&mut self) { - self.condition_context.clear(); - } - - pub fn has_condition_context(&self) -> bool { - self.condition_context.is_some() - } - - // Param is passed by value, moved - pub fn set_condition_context(&mut self, v: IamPolicyAnalysisQuery_ConditionContext) { - self.condition_context = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition_context(&mut self) -> &mut IamPolicyAnalysisQuery_ConditionContext { - if self.condition_context.is_none() { - self.condition_context.set_default(); - } - self.condition_context.as_mut().unwrap() - } - - // Take field - pub fn take_condition_context(&mut self) -> IamPolicyAnalysisQuery_ConditionContext { - self.condition_context.take().unwrap_or_else(|| IamPolicyAnalysisQuery_ConditionContext::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery { - fn is_initialized(&self) -> bool { - for v in &self.resource_selector { - if !v.is_initialized() { - return false; - } - }; - for v in &self.identity_selector { - if !v.is_initialized() { - return false; - } - }; - for v in &self.access_selector { - if !v.is_initialized() { - return false; - } - }; - for v in &self.options { - if !v.is_initialized() { - return false; - } - }; - for v in &self.condition_context { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource_selector)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.identity_selector)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.access_selector)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition_context)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if let Some(ref v) = self.resource_selector.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.identity_selector.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.access_selector.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.condition_context.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if let Some(ref v) = self.resource_selector.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.identity_selector.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.access_selector.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.options.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.condition_context.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery { - IamPolicyAnalysisQuery::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &IamPolicyAnalysisQuery| { &m.scope }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource_selector", - |m: &IamPolicyAnalysisQuery| { &m.resource_selector }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.resource_selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "identity_selector", - |m: &IamPolicyAnalysisQuery| { &m.identity_selector }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.identity_selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_selector", - |m: &IamPolicyAnalysisQuery| { &m.access_selector }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.access_selector }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "options", - |m: &IamPolicyAnalysisQuery| { &m.options }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.options }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition_context", - |m: &IamPolicyAnalysisQuery| { &m.condition_context }, - |m: &mut IamPolicyAnalysisQuery| { &mut m.condition_context }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery { - fn clear(&mut self) { - self.scope.clear(); - self.resource_selector.clear(); - self.identity_selector.clear(); - self.access_selector.clear(); - self.options.clear(); - self.condition_context.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery_ResourceSelector { - // message fields - pub full_resource_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery_ResourceSelector { - fn default() -> &'a IamPolicyAnalysisQuery_ResourceSelector { - ::default_instance() - } -} - -impl IamPolicyAnalysisQuery_ResourceSelector { - pub fn new() -> IamPolicyAnalysisQuery_ResourceSelector { - ::std::default::Default::default() - } - - // string full_resource_name = 1; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery_ResourceSelector { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.full_resource_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.full_resource_name.is_empty() { - os.write_string(1, &self.full_resource_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery_ResourceSelector { - IamPolicyAnalysisQuery_ResourceSelector::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &IamPolicyAnalysisQuery_ResourceSelector| { &m.full_resource_name }, - |m: &mut IamPolicyAnalysisQuery_ResourceSelector| { &mut m.full_resource_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery.ResourceSelector", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery_ResourceSelector { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery_ResourceSelector::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery_ResourceSelector { - fn clear(&mut self) { - self.full_resource_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery_ResourceSelector { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery_ResourceSelector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery_IdentitySelector { - // message fields - pub identity: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery_IdentitySelector { - fn default() -> &'a IamPolicyAnalysisQuery_IdentitySelector { - ::default_instance() - } -} - -impl IamPolicyAnalysisQuery_IdentitySelector { - pub fn new() -> IamPolicyAnalysisQuery_IdentitySelector { - ::std::default::Default::default() - } - - // string identity = 1; - - - pub fn get_identity(&self) -> &str { - &self.identity - } - pub fn clear_identity(&mut self) { - self.identity.clear(); - } - - // Param is passed by value, moved - pub fn set_identity(&mut self, v: ::std::string::String) { - self.identity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_identity(&mut self) -> &mut ::std::string::String { - &mut self.identity - } - - // Take field - pub fn take_identity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.identity, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery_IdentitySelector { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.identity)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.identity.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.identity); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.identity.is_empty() { - os.write_string(1, &self.identity)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery_IdentitySelector { - IamPolicyAnalysisQuery_IdentitySelector::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "identity", - |m: &IamPolicyAnalysisQuery_IdentitySelector| { &m.identity }, - |m: &mut IamPolicyAnalysisQuery_IdentitySelector| { &mut m.identity }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery.IdentitySelector", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery_IdentitySelector { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery_IdentitySelector::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery_IdentitySelector { - fn clear(&mut self) { - self.identity.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery_IdentitySelector { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery_IdentitySelector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery_AccessSelector { - // message fields - pub roles: ::protobuf::RepeatedField<::std::string::String>, - pub permissions: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery_AccessSelector { - fn default() -> &'a IamPolicyAnalysisQuery_AccessSelector { - ::default_instance() - } -} - -impl IamPolicyAnalysisQuery_AccessSelector { - pub fn new() -> IamPolicyAnalysisQuery_AccessSelector { - ::std::default::Default::default() - } - - // repeated string roles = 1; - - - pub fn get_roles(&self) -> &[::std::string::String] { - &self.roles - } - pub fn clear_roles(&mut self) { - self.roles.clear(); - } - - // Param is passed by value, moved - pub fn set_roles(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.roles = v; - } - - // Mutable pointer to the field. - pub fn mut_roles(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.roles - } - - // Take field - pub fn take_roles(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.roles, ::protobuf::RepeatedField::new()) - } - - // repeated string permissions = 2; - - - pub fn get_permissions(&self) -> &[::std::string::String] { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.permissions = v; - } - - // Mutable pointer to the field. - pub fn mut_permissions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.permissions, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery_AccessSelector { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.roles)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.roles { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.permissions { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.roles { - os.write_string(1, &v)?; - }; - for v in &self.permissions { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery_AccessSelector { - IamPolicyAnalysisQuery_AccessSelector::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "roles", - |m: &IamPolicyAnalysisQuery_AccessSelector| { &m.roles }, - |m: &mut IamPolicyAnalysisQuery_AccessSelector| { &mut m.roles }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &IamPolicyAnalysisQuery_AccessSelector| { &m.permissions }, - |m: &mut IamPolicyAnalysisQuery_AccessSelector| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery.AccessSelector", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery_AccessSelector { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery_AccessSelector::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery_AccessSelector { - fn clear(&mut self) { - self.roles.clear(); - self.permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery_AccessSelector { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery_AccessSelector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery_Options { - // message fields - pub expand_groups: bool, - pub expand_roles: bool, - pub expand_resources: bool, - pub output_resource_edges: bool, - pub output_group_edges: bool, - pub analyze_service_account_impersonation: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery_Options { - fn default() -> &'a IamPolicyAnalysisQuery_Options { - ::default_instance() - } -} - -impl IamPolicyAnalysisQuery_Options { - pub fn new() -> IamPolicyAnalysisQuery_Options { - ::std::default::Default::default() - } - - // bool expand_groups = 1; - - - pub fn get_expand_groups(&self) -> bool { - self.expand_groups - } - pub fn clear_expand_groups(&mut self) { - self.expand_groups = false; - } - - // Param is passed by value, moved - pub fn set_expand_groups(&mut self, v: bool) { - self.expand_groups = v; - } - - // bool expand_roles = 2; - - - pub fn get_expand_roles(&self) -> bool { - self.expand_roles - } - pub fn clear_expand_roles(&mut self) { - self.expand_roles = false; - } - - // Param is passed by value, moved - pub fn set_expand_roles(&mut self, v: bool) { - self.expand_roles = v; - } - - // bool expand_resources = 3; - - - pub fn get_expand_resources(&self) -> bool { - self.expand_resources - } - pub fn clear_expand_resources(&mut self) { - self.expand_resources = false; - } - - // Param is passed by value, moved - pub fn set_expand_resources(&mut self, v: bool) { - self.expand_resources = v; - } - - // bool output_resource_edges = 4; - - - pub fn get_output_resource_edges(&self) -> bool { - self.output_resource_edges - } - pub fn clear_output_resource_edges(&mut self) { - self.output_resource_edges = false; - } - - // Param is passed by value, moved - pub fn set_output_resource_edges(&mut self, v: bool) { - self.output_resource_edges = v; - } - - // bool output_group_edges = 5; - - - pub fn get_output_group_edges(&self) -> bool { - self.output_group_edges - } - pub fn clear_output_group_edges(&mut self) { - self.output_group_edges = false; - } - - // Param is passed by value, moved - pub fn set_output_group_edges(&mut self, v: bool) { - self.output_group_edges = v; - } - - // bool analyze_service_account_impersonation = 6; - - - pub fn get_analyze_service_account_impersonation(&self) -> bool { - self.analyze_service_account_impersonation - } - pub fn clear_analyze_service_account_impersonation(&mut self) { - self.analyze_service_account_impersonation = false; - } - - // Param is passed by value, moved - pub fn set_analyze_service_account_impersonation(&mut self, v: bool) { - self.analyze_service_account_impersonation = v; - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery_Options { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.expand_groups = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.expand_roles = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.expand_resources = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.output_resource_edges = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.output_group_edges = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.analyze_service_account_impersonation = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.expand_groups != false { - my_size += 2; - } - if self.expand_roles != false { - my_size += 2; - } - if self.expand_resources != false { - my_size += 2; - } - if self.output_resource_edges != false { - my_size += 2; - } - if self.output_group_edges != false { - my_size += 2; - } - if self.analyze_service_account_impersonation != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.expand_groups != false { - os.write_bool(1, self.expand_groups)?; - } - if self.expand_roles != false { - os.write_bool(2, self.expand_roles)?; - } - if self.expand_resources != false { - os.write_bool(3, self.expand_resources)?; - } - if self.output_resource_edges != false { - os.write_bool(4, self.output_resource_edges)?; - } - if self.output_group_edges != false { - os.write_bool(5, self.output_group_edges)?; - } - if self.analyze_service_account_impersonation != false { - os.write_bool(6, self.analyze_service_account_impersonation)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery_Options { - IamPolicyAnalysisQuery_Options::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "expand_groups", - |m: &IamPolicyAnalysisQuery_Options| { &m.expand_groups }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.expand_groups }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "expand_roles", - |m: &IamPolicyAnalysisQuery_Options| { &m.expand_roles }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.expand_roles }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "expand_resources", - |m: &IamPolicyAnalysisQuery_Options| { &m.expand_resources }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.expand_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "output_resource_edges", - |m: &IamPolicyAnalysisQuery_Options| { &m.output_resource_edges }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.output_resource_edges }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "output_group_edges", - |m: &IamPolicyAnalysisQuery_Options| { &m.output_group_edges }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.output_group_edges }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "analyze_service_account_impersonation", - |m: &IamPolicyAnalysisQuery_Options| { &m.analyze_service_account_impersonation }, - |m: &mut IamPolicyAnalysisQuery_Options| { &mut m.analyze_service_account_impersonation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery.Options", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery_Options { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery_Options::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery_Options { - fn clear(&mut self) { - self.expand_groups = false; - self.expand_roles = false; - self.expand_resources = false; - self.output_resource_edges = false; - self.output_group_edges = false; - self.analyze_service_account_impersonation = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery_Options { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery_Options { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisQuery_ConditionContext { - // message oneof groups - pub TimeContext: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisQuery_ConditionContext { - fn default() -> &'a IamPolicyAnalysisQuery_ConditionContext { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext { - access_time(::protobuf::well_known_types::Timestamp), -} - -impl IamPolicyAnalysisQuery_ConditionContext { - pub fn new() -> IamPolicyAnalysisQuery_ConditionContext { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp access_time = 1; - - - pub fn get_access_time(&self) -> &::protobuf::well_known_types::Timestamp { - match self.TimeContext { - ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), - } - } - pub fn clear_access_time(&mut self) { - self.TimeContext = ::std::option::Option::None; - } - - pub fn has_access_time(&self) -> bool { - match self.TimeContext { - ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_access_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.TimeContext = ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(v)) - } - - // Mutable pointer to the field. - pub fn mut_access_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(_)) = self.TimeContext { - } else { - self.TimeContext = ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(::protobuf::well_known_types::Timestamp::new())); - } - match self.TimeContext { - ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_access_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_access_time() { - match self.TimeContext.take() { - ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Timestamp::new() - } - } -} - -impl ::protobuf::Message for IamPolicyAnalysisQuery_ConditionContext { - fn is_initialized(&self) -> bool { - if let Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(ref v)) = self.TimeContext { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.TimeContext = ::std::option::Option::Some(IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.TimeContext { - match v { - &IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.TimeContext { - match v { - &IamPolicyAnalysisQuery_ConditionContext_oneof_TimeContext::access_time(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisQuery_ConditionContext { - IamPolicyAnalysisQuery_ConditionContext::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( - "access_time", - IamPolicyAnalysisQuery_ConditionContext::has_access_time, - IamPolicyAnalysisQuery_ConditionContext::get_access_time, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisQuery.ConditionContext", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisQuery_ConditionContext { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisQuery_ConditionContext::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisQuery_ConditionContext { - fn clear(&mut self) { - self.TimeContext = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisQuery_ConditionContext { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisQuery_ConditionContext { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyRequest { - // message fields - pub analysis_query: ::protobuf::SingularPtrField, - pub saved_analysis_query: ::std::string::String, - pub execution_timeout: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyRequest { - fn default() -> &'a AnalyzeIamPolicyRequest { - ::default_instance() - } -} - -impl AnalyzeIamPolicyRequest { - pub fn new() -> AnalyzeIamPolicyRequest { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - - - pub fn get_analysis_query(&self) -> &IamPolicyAnalysisQuery { - self.analysis_query.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_query(&mut self) { - self.analysis_query.clear(); - } - - pub fn has_analysis_query(&self) -> bool { - self.analysis_query.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_query(&mut self, v: IamPolicyAnalysisQuery) { - self.analysis_query = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_query(&mut self) -> &mut IamPolicyAnalysisQuery { - if self.analysis_query.is_none() { - self.analysis_query.set_default(); - } - self.analysis_query.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_query(&mut self) -> IamPolicyAnalysisQuery { - self.analysis_query.take().unwrap_or_else(|| IamPolicyAnalysisQuery::new()) - } - - // string saved_analysis_query = 3; - - - pub fn get_saved_analysis_query(&self) -> &str { - &self.saved_analysis_query - } - pub fn clear_saved_analysis_query(&mut self) { - self.saved_analysis_query.clear(); - } - - // Param is passed by value, moved - pub fn set_saved_analysis_query(&mut self, v: ::std::string::String) { - self.saved_analysis_query = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_saved_analysis_query(&mut self) -> &mut ::std::string::String { - &mut self.saved_analysis_query - } - - // Take field - pub fn take_saved_analysis_query(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.saved_analysis_query, ::std::string::String::new()) - } - - // .google.protobuf.Duration execution_timeout = 2; - - - pub fn get_execution_timeout(&self) -> &::protobuf::well_known_types::Duration { - self.execution_timeout.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_execution_timeout(&mut self) { - self.execution_timeout.clear(); - } - - pub fn has_execution_timeout(&self) -> bool { - self.execution_timeout.is_some() - } - - // Param is passed by value, moved - pub fn set_execution_timeout(&mut self, v: ::protobuf::well_known_types::Duration) { - self.execution_timeout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_execution_timeout(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.execution_timeout.is_none() { - self.execution_timeout.set_default(); - } - self.execution_timeout.as_mut().unwrap() - } - - // Take field - pub fn take_execution_timeout(&mut self) -> ::protobuf::well_known_types::Duration { - self.execution_timeout.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for AnalyzeIamPolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.analysis_query { - if !v.is_initialized() { - return false; - } - }; - for v in &self.execution_timeout { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_query)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.saved_analysis_query)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.execution_timeout)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.analysis_query.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.saved_analysis_query.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.saved_analysis_query); - } - if let Some(ref v) = self.execution_timeout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.analysis_query.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.saved_analysis_query.is_empty() { - os.write_string(3, &self.saved_analysis_query)?; - } - if let Some(ref v) = self.execution_timeout.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeIamPolicyRequest { - AnalyzeIamPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_query", - |m: &AnalyzeIamPolicyRequest| { &m.analysis_query }, - |m: &mut AnalyzeIamPolicyRequest| { &mut m.analysis_query }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "saved_analysis_query", - |m: &AnalyzeIamPolicyRequest| { &m.saved_analysis_query }, - |m: &mut AnalyzeIamPolicyRequest| { &mut m.saved_analysis_query }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "execution_timeout", - |m: &AnalyzeIamPolicyRequest| { &m.execution_timeout }, - |m: &mut AnalyzeIamPolicyRequest| { &mut m.execution_timeout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeIamPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeIamPolicyRequest { - fn clear(&mut self) { - self.analysis_query.clear(); - self.saved_analysis_query.clear(); - self.execution_timeout.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeIamPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyResponse { - // message fields - pub main_analysis: ::protobuf::SingularPtrField, - pub service_account_impersonation_analysis: ::protobuf::RepeatedField, - pub fully_explored: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyResponse { - fn default() -> &'a AnalyzeIamPolicyResponse { - ::default_instance() - } -} - -impl AnalyzeIamPolicyResponse { - pub fn new() -> AnalyzeIamPolicyResponse { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1; - - - pub fn get_main_analysis(&self) -> &AnalyzeIamPolicyResponse_IamPolicyAnalysis { - self.main_analysis.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_main_analysis(&mut self) { - self.main_analysis.clear(); - } - - pub fn has_main_analysis(&self) -> bool { - self.main_analysis.is_some() - } - - // Param is passed by value, moved - pub fn set_main_analysis(&mut self, v: AnalyzeIamPolicyResponse_IamPolicyAnalysis) { - self.main_analysis = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_main_analysis(&mut self) -> &mut AnalyzeIamPolicyResponse_IamPolicyAnalysis { - if self.main_analysis.is_none() { - self.main_analysis.set_default(); - } - self.main_analysis.as_mut().unwrap() - } - - // Take field - pub fn take_main_analysis(&mut self) -> AnalyzeIamPolicyResponse_IamPolicyAnalysis { - self.main_analysis.take().unwrap_or_else(|| AnalyzeIamPolicyResponse_IamPolicyAnalysis::new()) - } - - // repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2; - - - pub fn get_service_account_impersonation_analysis(&self) -> &[AnalyzeIamPolicyResponse_IamPolicyAnalysis] { - &self.service_account_impersonation_analysis - } - pub fn clear_service_account_impersonation_analysis(&mut self) { - self.service_account_impersonation_analysis.clear(); - } - - // Param is passed by value, moved - pub fn set_service_account_impersonation_analysis(&mut self, v: ::protobuf::RepeatedField) { - self.service_account_impersonation_analysis = v; - } - - // Mutable pointer to the field. - pub fn mut_service_account_impersonation_analysis(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_account_impersonation_analysis - } - - // Take field - pub fn take_service_account_impersonation_analysis(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_account_impersonation_analysis, ::protobuf::RepeatedField::new()) - } - - // bool fully_explored = 3; - - - pub fn get_fully_explored(&self) -> bool { - self.fully_explored - } - pub fn clear_fully_explored(&mut self) { - self.fully_explored = false; - } - - // Param is passed by value, moved - pub fn set_fully_explored(&mut self, v: bool) { - self.fully_explored = v; - } -} - -impl ::protobuf::Message for AnalyzeIamPolicyResponse { - fn is_initialized(&self) -> bool { - for v in &self.main_analysis { - if !v.is_initialized() { - return false; - } - }; - for v in &self.service_account_impersonation_analysis { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.main_analysis)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_account_impersonation_analysis)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.fully_explored = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.main_analysis.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.service_account_impersonation_analysis { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.fully_explored != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.main_analysis.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.service_account_impersonation_analysis { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.fully_explored != false { - os.write_bool(3, self.fully_explored)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeIamPolicyResponse { - AnalyzeIamPolicyResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "main_analysis", - |m: &AnalyzeIamPolicyResponse| { &m.main_analysis }, - |m: &mut AnalyzeIamPolicyResponse| { &mut m.main_analysis }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_account_impersonation_analysis", - |m: &AnalyzeIamPolicyResponse| { &m.service_account_impersonation_analysis }, - |m: &mut AnalyzeIamPolicyResponse| { &mut m.service_account_impersonation_analysis }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "fully_explored", - |m: &AnalyzeIamPolicyResponse| { &m.fully_explored }, - |m: &mut AnalyzeIamPolicyResponse| { &mut m.fully_explored }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeIamPolicyResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeIamPolicyResponse { - fn clear(&mut self) { - self.main_analysis.clear(); - self.service_account_impersonation_analysis.clear(); - self.fully_explored = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeIamPolicyResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyResponse_IamPolicyAnalysis { - // message fields - pub analysis_query: ::protobuf::SingularPtrField, - pub analysis_results: ::protobuf::RepeatedField, - pub fully_explored: bool, - pub non_critical_errors: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyResponse_IamPolicyAnalysis { - fn default() -> &'a AnalyzeIamPolicyResponse_IamPolicyAnalysis { - ::default_instance() - } -} - -impl AnalyzeIamPolicyResponse_IamPolicyAnalysis { - pub fn new() -> AnalyzeIamPolicyResponse_IamPolicyAnalysis { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - - - pub fn get_analysis_query(&self) -> &IamPolicyAnalysisQuery { - self.analysis_query.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_query(&mut self) { - self.analysis_query.clear(); - } - - pub fn has_analysis_query(&self) -> bool { - self.analysis_query.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_query(&mut self, v: IamPolicyAnalysisQuery) { - self.analysis_query = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_query(&mut self) -> &mut IamPolicyAnalysisQuery { - if self.analysis_query.is_none() { - self.analysis_query.set_default(); - } - self.analysis_query.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_query(&mut self) -> IamPolicyAnalysisQuery { - self.analysis_query.take().unwrap_or_else(|| IamPolicyAnalysisQuery::new()) - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2; - - - pub fn get_analysis_results(&self) -> &[super::assets::IamPolicyAnalysisResult] { - &self.analysis_results - } - pub fn clear_analysis_results(&mut self) { - self.analysis_results.clear(); - } - - // Param is passed by value, moved - pub fn set_analysis_results(&mut self, v: ::protobuf::RepeatedField) { - self.analysis_results = v; - } - - // Mutable pointer to the field. - pub fn mut_analysis_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.analysis_results - } - - // Take field - pub fn take_analysis_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.analysis_results, ::protobuf::RepeatedField::new()) - } - - // bool fully_explored = 3; - - - pub fn get_fully_explored(&self) -> bool { - self.fully_explored - } - pub fn clear_fully_explored(&mut self) { - self.fully_explored = false; - } - - // Param is passed by value, moved - pub fn set_fully_explored(&mut self, v: bool) { - self.fully_explored = v; - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5; - - - pub fn get_non_critical_errors(&self) -> &[super::assets::IamPolicyAnalysisState] { - &self.non_critical_errors - } - pub fn clear_non_critical_errors(&mut self) { - self.non_critical_errors.clear(); - } - - // Param is passed by value, moved - pub fn set_non_critical_errors(&mut self, v: ::protobuf::RepeatedField) { - self.non_critical_errors = v; - } - - // Mutable pointer to the field. - pub fn mut_non_critical_errors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.non_critical_errors - } - - // Take field - pub fn take_non_critical_errors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.non_critical_errors, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AnalyzeIamPolicyResponse_IamPolicyAnalysis { - fn is_initialized(&self) -> bool { - for v in &self.analysis_query { - if !v.is_initialized() { - return false; - } - }; - for v in &self.analysis_results { - if !v.is_initialized() { - return false; - } - }; - for v in &self.non_critical_errors { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_query)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.analysis_results)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.fully_explored = tmp; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.non_critical_errors)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.analysis_query.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.analysis_results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.fully_explored != false { - my_size += 2; - } - for value in &self.non_critical_errors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.analysis_query.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.analysis_results { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.fully_explored != false { - os.write_bool(3, self.fully_explored)?; - } - for v in &self.non_critical_errors { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeIamPolicyResponse_IamPolicyAnalysis { - AnalyzeIamPolicyResponse_IamPolicyAnalysis::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_query", - |m: &AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &m.analysis_query }, - |m: &mut AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &mut m.analysis_query }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_results", - |m: &AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &m.analysis_results }, - |m: &mut AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &mut m.analysis_results }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "fully_explored", - |m: &AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &m.fully_explored }, - |m: &mut AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &mut m.fully_explored }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "non_critical_errors", - |m: &AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &m.non_critical_errors }, - |m: &mut AnalyzeIamPolicyResponse_IamPolicyAnalysis| { &mut m.non_critical_errors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyResponse.IamPolicyAnalysis", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeIamPolicyResponse_IamPolicyAnalysis { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyResponse_IamPolicyAnalysis::new) - } -} - -impl ::protobuf::Clear for AnalyzeIamPolicyResponse_IamPolicyAnalysis { - fn clear(&mut self) { - self.analysis_query.clear(); - self.analysis_results.clear(); - self.fully_explored = false; - self.non_critical_errors.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeIamPolicyResponse_IamPolicyAnalysis { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyResponse_IamPolicyAnalysis { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisOutputConfig { - // message oneof groups - pub destination: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisOutputConfig { - fn default() -> &'a IamPolicyAnalysisOutputConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum IamPolicyAnalysisOutputConfig_oneof_destination { - gcs_destination(IamPolicyAnalysisOutputConfig_GcsDestination), - bigquery_destination(IamPolicyAnalysisOutputConfig_BigQueryDestination), -} - -impl IamPolicyAnalysisOutputConfig { - pub fn new() -> IamPolicyAnalysisOutputConfig { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - - - pub fn get_gcs_destination(&self) -> &IamPolicyAnalysisOutputConfig_GcsDestination { - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs_destination(&mut self) { - self.destination = ::std::option::Option::None; - } - - pub fn has_gcs_destination(&self) -> bool { - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs_destination(&mut self, v: IamPolicyAnalysisOutputConfig_GcsDestination) { - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs_destination(&mut self) -> &mut IamPolicyAnalysisOutputConfig_GcsDestination { - if let ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(_)) = self.destination { - } else { - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(IamPolicyAnalysisOutputConfig_GcsDestination::new())); - } - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs_destination(&mut self) -> IamPolicyAnalysisOutputConfig_GcsDestination { - if self.has_gcs_destination() { - match self.destination.take() { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(v)) => v, - _ => panic!(), - } - } else { - IamPolicyAnalysisOutputConfig_GcsDestination::new() - } - } - - // .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - - - pub fn get_bigquery_destination(&self) -> &IamPolicyAnalysisOutputConfig_BigQueryDestination { - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_bigquery_destination(&mut self) { - self.destination = ::std::option::Option::None; - } - - pub fn has_bigquery_destination(&self) -> bool { - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_bigquery_destination(&mut self, v: IamPolicyAnalysisOutputConfig_BigQueryDestination) { - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(v)) - } - - // Mutable pointer to the field. - pub fn mut_bigquery_destination(&mut self) -> &mut IamPolicyAnalysisOutputConfig_BigQueryDestination { - if let ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(_)) = self.destination { - } else { - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(IamPolicyAnalysisOutputConfig_BigQueryDestination::new())); - } - match self.destination { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_bigquery_destination(&mut self) -> IamPolicyAnalysisOutputConfig_BigQueryDestination { - if self.has_bigquery_destination() { - match self.destination.take() { - ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(v)) => v, - _ => panic!(), - } - } else { - IamPolicyAnalysisOutputConfig_BigQueryDestination::new() - } - } -} - -impl ::protobuf::Message for IamPolicyAnalysisOutputConfig { - fn is_initialized(&self) -> bool { - if let Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(ref v)) = self.destination { - if !v.is_initialized() { - return false; - } - } - if let Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(ref v)) = self.destination { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.destination = ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.destination { - match v { - &IamPolicyAnalysisOutputConfig_oneof_destination::gcs_destination(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &IamPolicyAnalysisOutputConfig_oneof_destination::bigquery_destination(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisOutputConfig { - IamPolicyAnalysisOutputConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, IamPolicyAnalysisOutputConfig_GcsDestination>( - "gcs_destination", - IamPolicyAnalysisOutputConfig::has_gcs_destination, - IamPolicyAnalysisOutputConfig::get_gcs_destination, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, IamPolicyAnalysisOutputConfig_BigQueryDestination>( - "bigquery_destination", - IamPolicyAnalysisOutputConfig::has_bigquery_destination, - IamPolicyAnalysisOutputConfig::get_bigquery_destination, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisOutputConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisOutputConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisOutputConfig::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisOutputConfig { - fn clear(&mut self) { - self.destination = ::std::option::Option::None; - self.destination = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisOutputConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisOutputConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisOutputConfig_GcsDestination { - // message fields - pub uri: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisOutputConfig_GcsDestination { - fn default() -> &'a IamPolicyAnalysisOutputConfig_GcsDestination { - ::default_instance() - } -} - -impl IamPolicyAnalysisOutputConfig_GcsDestination { - pub fn new() -> IamPolicyAnalysisOutputConfig_GcsDestination { - ::std::default::Default::default() - } - - // string uri = 1; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisOutputConfig_GcsDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.uri); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.uri.is_empty() { - os.write_string(1, &self.uri)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisOutputConfig_GcsDestination { - IamPolicyAnalysisOutputConfig_GcsDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &IamPolicyAnalysisOutputConfig_GcsDestination| { &m.uri }, - |m: &mut IamPolicyAnalysisOutputConfig_GcsDestination| { &mut m.uri }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisOutputConfig.GcsDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisOutputConfig_GcsDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisOutputConfig_GcsDestination::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisOutputConfig_GcsDestination { - fn clear(&mut self) { - self.uri.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisOutputConfig_GcsDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisOutputConfig_GcsDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisOutputConfig_BigQueryDestination { - // message fields - pub dataset: ::std::string::String, - pub table_prefix: ::std::string::String, - pub partition_key: IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey, - pub write_disposition: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisOutputConfig_BigQueryDestination { - fn default() -> &'a IamPolicyAnalysisOutputConfig_BigQueryDestination { - ::default_instance() - } -} - -impl IamPolicyAnalysisOutputConfig_BigQueryDestination { - pub fn new() -> IamPolicyAnalysisOutputConfig_BigQueryDestination { - ::std::default::Default::default() - } - - // string dataset = 1; - - - pub fn get_dataset(&self) -> &str { - &self.dataset - } - pub fn clear_dataset(&mut self) { - self.dataset.clear(); - } - - // Param is passed by value, moved - pub fn set_dataset(&mut self, v: ::std::string::String) { - self.dataset = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dataset(&mut self) -> &mut ::std::string::String { - &mut self.dataset - } - - // Take field - pub fn take_dataset(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dataset, ::std::string::String::new()) - } - - // string table_prefix = 2; - - - pub fn get_table_prefix(&self) -> &str { - &self.table_prefix - } - pub fn clear_table_prefix(&mut self) { - self.table_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_table_prefix(&mut self, v: ::std::string::String) { - self.table_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table_prefix(&mut self) -> &mut ::std::string::String { - &mut self.table_prefix - } - - // Take field - pub fn take_table_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table_prefix, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3; - - - pub fn get_partition_key(&self) -> IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { - self.partition_key - } - pub fn clear_partition_key(&mut self) { - self.partition_key = IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_partition_key(&mut self, v: IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey) { - self.partition_key = v; - } - - // string write_disposition = 4; - - - pub fn get_write_disposition(&self) -> &str { - &self.write_disposition - } - pub fn clear_write_disposition(&mut self) { - self.write_disposition.clear(); - } - - // Param is passed by value, moved - pub fn set_write_disposition(&mut self, v: ::std::string::String) { - self.write_disposition = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_write_disposition(&mut self) -> &mut ::std::string::String { - &mut self.write_disposition - } - - // Take field - pub fn take_write_disposition(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.write_disposition, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisOutputConfig_BigQueryDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dataset)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table_prefix)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.partition_key, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.write_disposition)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dataset.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dataset); - } - if !self.table_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table_prefix); - } - if self.partition_key != IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.partition_key); - } - if !self.write_disposition.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.write_disposition); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dataset.is_empty() { - os.write_string(1, &self.dataset)?; - } - if !self.table_prefix.is_empty() { - os.write_string(2, &self.table_prefix)?; - } - if self.partition_key != IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.partition_key))?; - } - if !self.write_disposition.is_empty() { - os.write_string(4, &self.write_disposition)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisOutputConfig_BigQueryDestination { - IamPolicyAnalysisOutputConfig_BigQueryDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dataset", - |m: &IamPolicyAnalysisOutputConfig_BigQueryDestination| { &m.dataset }, - |m: &mut IamPolicyAnalysisOutputConfig_BigQueryDestination| { &mut m.dataset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table_prefix", - |m: &IamPolicyAnalysisOutputConfig_BigQueryDestination| { &m.table_prefix }, - |m: &mut IamPolicyAnalysisOutputConfig_BigQueryDestination| { &mut m.table_prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "partition_key", - |m: &IamPolicyAnalysisOutputConfig_BigQueryDestination| { &m.partition_key }, - |m: &mut IamPolicyAnalysisOutputConfig_BigQueryDestination| { &mut m.partition_key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "write_disposition", - |m: &IamPolicyAnalysisOutputConfig_BigQueryDestination| { &m.write_disposition }, - |m: &mut IamPolicyAnalysisOutputConfig_BigQueryDestination| { &mut m.write_disposition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisOutputConfig.BigQueryDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisOutputConfig_BigQueryDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisOutputConfig_BigQueryDestination::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisOutputConfig_BigQueryDestination { - fn clear(&mut self) { - self.dataset.clear(); - self.table_prefix.clear(); - self.partition_key = IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED; - self.write_disposition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisOutputConfig_BigQueryDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisOutputConfig_BigQueryDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { - PARTITION_KEY_UNSPECIFIED = 0, - REQUEST_TIME = 1, -} - -impl ::protobuf::ProtobufEnum for IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED), - 1 => ::std::option::Option::Some(IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::REQUEST_TIME), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey] = &[ - IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED, - IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::REQUEST_TIME, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { -} - -impl ::std::default::Default for IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { - fn default() -> Self { - IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey::PARTITION_KEY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisOutputConfig_BigQueryDestination_PartitionKey { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyLongrunningRequest { - // message fields - pub analysis_query: ::protobuf::SingularPtrField, - pub saved_analysis_query: ::std::string::String, - pub output_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyLongrunningRequest { - fn default() -> &'a AnalyzeIamPolicyLongrunningRequest { - ::default_instance() - } -} - -impl AnalyzeIamPolicyLongrunningRequest { - pub fn new() -> AnalyzeIamPolicyLongrunningRequest { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1; - - - pub fn get_analysis_query(&self) -> &IamPolicyAnalysisQuery { - self.analysis_query.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_query(&mut self) { - self.analysis_query.clear(); - } - - pub fn has_analysis_query(&self) -> bool { - self.analysis_query.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_query(&mut self, v: IamPolicyAnalysisQuery) { - self.analysis_query = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_query(&mut self) -> &mut IamPolicyAnalysisQuery { - if self.analysis_query.is_none() { - self.analysis_query.set_default(); - } - self.analysis_query.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_query(&mut self) -> IamPolicyAnalysisQuery { - self.analysis_query.take().unwrap_or_else(|| IamPolicyAnalysisQuery::new()) - } - - // string saved_analysis_query = 3; - - - pub fn get_saved_analysis_query(&self) -> &str { - &self.saved_analysis_query - } - pub fn clear_saved_analysis_query(&mut self) { - self.saved_analysis_query.clear(); - } - - // Param is passed by value, moved - pub fn set_saved_analysis_query(&mut self, v: ::std::string::String) { - self.saved_analysis_query = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_saved_analysis_query(&mut self) -> &mut ::std::string::String { - &mut self.saved_analysis_query - } - - // Take field - pub fn take_saved_analysis_query(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.saved_analysis_query, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig output_config = 2; - - - pub fn get_output_config(&self) -> &IamPolicyAnalysisOutputConfig { - self.output_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_output_config(&mut self) { - self.output_config.clear(); - } - - pub fn has_output_config(&self) -> bool { - self.output_config.is_some() - } - - // Param is passed by value, moved - pub fn set_output_config(&mut self, v: IamPolicyAnalysisOutputConfig) { - self.output_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_config(&mut self) -> &mut IamPolicyAnalysisOutputConfig { - if self.output_config.is_none() { - self.output_config.set_default(); - } - self.output_config.as_mut().unwrap() - } - - // Take field - pub fn take_output_config(&mut self) -> IamPolicyAnalysisOutputConfig { - self.output_config.take().unwrap_or_else(|| IamPolicyAnalysisOutputConfig::new()) - } -} - -impl ::protobuf::Message for AnalyzeIamPolicyLongrunningRequest { - fn is_initialized(&self) -> bool { - for v in &self.analysis_query { - if !v.is_initialized() { - return false; - } - }; - for v in &self.output_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_query)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.saved_analysis_query)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.analysis_query.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.saved_analysis_query.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.saved_analysis_query); - } - if let Some(ref v) = self.output_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.analysis_query.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.saved_analysis_query.is_empty() { - os.write_string(3, &self.saved_analysis_query)?; - } - if let Some(ref v) = self.output_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeIamPolicyLongrunningRequest { - AnalyzeIamPolicyLongrunningRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_query", - |m: &AnalyzeIamPolicyLongrunningRequest| { &m.analysis_query }, - |m: &mut AnalyzeIamPolicyLongrunningRequest| { &mut m.analysis_query }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "saved_analysis_query", - |m: &AnalyzeIamPolicyLongrunningRequest| { &m.saved_analysis_query }, - |m: &mut AnalyzeIamPolicyLongrunningRequest| { &mut m.saved_analysis_query }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "output_config", - |m: &AnalyzeIamPolicyLongrunningRequest| { &m.output_config }, - |m: &mut AnalyzeIamPolicyLongrunningRequest| { &mut m.output_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyLongrunningRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeIamPolicyLongrunningRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyLongrunningRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeIamPolicyLongrunningRequest { - fn clear(&mut self) { - self.analysis_query.clear(); - self.saved_analysis_query.clear(); - self.output_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeIamPolicyLongrunningRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyLongrunningRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeIamPolicyLongrunningResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeIamPolicyLongrunningResponse { - fn default() -> &'a AnalyzeIamPolicyLongrunningResponse { - ::default_instance() - } -} - -impl AnalyzeIamPolicyLongrunningResponse { - pub fn new() -> AnalyzeIamPolicyLongrunningResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for AnalyzeIamPolicyLongrunningResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeIamPolicyLongrunningResponse { - AnalyzeIamPolicyLongrunningResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeIamPolicyLongrunningResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeIamPolicyLongrunningResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeIamPolicyLongrunningResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeIamPolicyLongrunningResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeIamPolicyLongrunningResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeIamPolicyLongrunningResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SavedQuery { - // message fields - pub name: ::std::string::String, - pub description: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub creator: ::std::string::String, - pub last_update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub last_updater: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub content: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SavedQuery { - fn default() -> &'a SavedQuery { - ::default_instance() - } -} - -impl SavedQuery { - pub fn new() -> SavedQuery { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp create_time = 3; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string creator = 4; - - - pub fn get_creator(&self) -> &str { - &self.creator - } - pub fn clear_creator(&mut self) { - self.creator.clear(); - } - - // Param is passed by value, moved - pub fn set_creator(&mut self, v: ::std::string::String) { - self.creator = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_creator(&mut self) -> &mut ::std::string::String { - &mut self.creator - } - - // Take field - pub fn take_creator(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.creator, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp last_update_time = 5; - - - pub fn get_last_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_update_time(&mut self) { - self.last_update_time.clear(); - } - - pub fn has_last_update_time(&self) -> bool { - self.last_update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_update_time.is_none() { - self.last_update_time.set_default(); - } - self.last_update_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string last_updater = 6; - - - pub fn get_last_updater(&self) -> &str { - &self.last_updater - } - pub fn clear_last_updater(&mut self) { - self.last_updater.clear(); - } - - // Param is passed by value, moved - pub fn set_last_updater(&mut self, v: ::std::string::String) { - self.last_updater = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_updater(&mut self) -> &mut ::std::string::String { - &mut self.last_updater - } - - // Take field - pub fn take_last_updater(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.last_updater, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.SavedQuery.LabelsEntry labels = 7; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // .google.cloud.asset.v1.SavedQuery.QueryContent content = 8; - - - pub fn get_content(&self) -> &SavedQuery_QueryContent { - self.content.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_content(&mut self) { - self.content.clear(); - } - - pub fn has_content(&self) -> bool { - self.content.is_some() - } - - // Param is passed by value, moved - pub fn set_content(&mut self, v: SavedQuery_QueryContent) { - self.content = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_content(&mut self) -> &mut SavedQuery_QueryContent { - if self.content.is_none() { - self.content.set_default(); - } - self.content.as_mut().unwrap() - } - - // Take field - pub fn take_content(&mut self) -> SavedQuery_QueryContent { - self.content.take().unwrap_or_else(|| SavedQuery_QueryContent::new()) - } -} - -impl ::protobuf::Message for SavedQuery { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.content { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.creator)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_update_time)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.last_updater)?; - }, - 7 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.content)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.creator.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.creator); - } - if let Some(ref v) = self.last_update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.last_updater.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.last_updater); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels); - if let Some(ref v) = self.content.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.creator.is_empty() { - os.write_string(4, &self.creator)?; - } - if let Some(ref v) = self.last_update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.last_updater.is_empty() { - os.write_string(6, &self.last_updater)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels, os)?; - if let Some(ref v) = self.content.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SavedQuery { - SavedQuery::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &SavedQuery| { &m.name }, - |m: &mut SavedQuery| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &SavedQuery| { &m.description }, - |m: &mut SavedQuery| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &SavedQuery| { &m.create_time }, - |m: &mut SavedQuery| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "creator", - |m: &SavedQuery| { &m.creator }, - |m: &mut SavedQuery| { &mut m.creator }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_update_time", - |m: &SavedQuery| { &m.last_update_time }, - |m: &mut SavedQuery| { &mut m.last_update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "last_updater", - |m: &SavedQuery| { &m.last_updater }, - |m: &mut SavedQuery| { &mut m.last_updater }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &SavedQuery| { &m.labels }, - |m: &mut SavedQuery| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "content", - |m: &SavedQuery| { &m.content }, - |m: &mut SavedQuery| { &mut m.content }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SavedQuery", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SavedQuery { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SavedQuery::new) - } -} - -impl ::protobuf::Clear for SavedQuery { - fn clear(&mut self) { - self.name.clear(); - self.description.clear(); - self.create_time.clear(); - self.creator.clear(); - self.last_update_time.clear(); - self.last_updater.clear(); - self.labels.clear(); - self.content.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SavedQuery { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SavedQuery { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SavedQuery_QueryContent { - // message oneof groups - pub query_content: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SavedQuery_QueryContent { - fn default() -> &'a SavedQuery_QueryContent { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum SavedQuery_QueryContent_oneof_query_content { - iam_policy_analysis_query(IamPolicyAnalysisQuery), -} - -impl SavedQuery_QueryContent { - pub fn new() -> SavedQuery_QueryContent { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - - - pub fn get_iam_policy_analysis_query(&self) -> &IamPolicyAnalysisQuery { - match self.query_content { - ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_iam_policy_analysis_query(&mut self) { - self.query_content = ::std::option::Option::None; - } - - pub fn has_iam_policy_analysis_query(&self) -> bool { - match self.query_content { - ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_iam_policy_analysis_query(&mut self, v: IamPolicyAnalysisQuery) { - self.query_content = ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(v)) - } - - // Mutable pointer to the field. - pub fn mut_iam_policy_analysis_query(&mut self) -> &mut IamPolicyAnalysisQuery { - if let ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(_)) = self.query_content { - } else { - self.query_content = ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(IamPolicyAnalysisQuery::new())); - } - match self.query_content { - ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_iam_policy_analysis_query(&mut self) -> IamPolicyAnalysisQuery { - if self.has_iam_policy_analysis_query() { - match self.query_content.take() { - ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(v)) => v, - _ => panic!(), - } - } else { - IamPolicyAnalysisQuery::new() - } - } -} - -impl ::protobuf::Message for SavedQuery_QueryContent { - fn is_initialized(&self) -> bool { - if let Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(ref v)) = self.query_content { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.query_content = ::std::option::Option::Some(SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.query_content { - match v { - &SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.query_content { - match v { - &SavedQuery_QueryContent_oneof_query_content::iam_policy_analysis_query(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SavedQuery_QueryContent { - SavedQuery_QueryContent::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, IamPolicyAnalysisQuery>( - "iam_policy_analysis_query", - SavedQuery_QueryContent::has_iam_policy_analysis_query, - SavedQuery_QueryContent::get_iam_policy_analysis_query, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SavedQuery.QueryContent", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static SavedQuery_QueryContent { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SavedQuery_QueryContent::new) - } -} - -impl ::protobuf::Clear for SavedQuery_QueryContent { - fn clear(&mut self) { - self.query_content = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SavedQuery_QueryContent { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SavedQuery_QueryContent { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateSavedQueryRequest { - // message fields - pub parent: ::std::string::String, - pub saved_query: ::protobuf::SingularPtrField, - pub saved_query_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateSavedQueryRequest { - fn default() -> &'a CreateSavedQueryRequest { - ::default_instance() - } -} - -impl CreateSavedQueryRequest { - pub fn new() -> CreateSavedQueryRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.SavedQuery saved_query = 2; - - - pub fn get_saved_query(&self) -> &SavedQuery { - self.saved_query.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_saved_query(&mut self) { - self.saved_query.clear(); - } - - pub fn has_saved_query(&self) -> bool { - self.saved_query.is_some() - } - - // Param is passed by value, moved - pub fn set_saved_query(&mut self, v: SavedQuery) { - self.saved_query = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_saved_query(&mut self) -> &mut SavedQuery { - if self.saved_query.is_none() { - self.saved_query.set_default(); - } - self.saved_query.as_mut().unwrap() - } - - // Take field - pub fn take_saved_query(&mut self) -> SavedQuery { - self.saved_query.take().unwrap_or_else(|| SavedQuery::new()) - } - - // string saved_query_id = 3; - - - pub fn get_saved_query_id(&self) -> &str { - &self.saved_query_id - } - pub fn clear_saved_query_id(&mut self) { - self.saved_query_id.clear(); - } - - // Param is passed by value, moved - pub fn set_saved_query_id(&mut self, v: ::std::string::String) { - self.saved_query_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_saved_query_id(&mut self) -> &mut ::std::string::String { - &mut self.saved_query_id - } - - // Take field - pub fn take_saved_query_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.saved_query_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateSavedQueryRequest { - fn is_initialized(&self) -> bool { - for v in &self.saved_query { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.saved_query)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.saved_query_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.saved_query.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.saved_query_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.saved_query_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.saved_query.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.saved_query_id.is_empty() { - os.write_string(3, &self.saved_query_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateSavedQueryRequest { - CreateSavedQueryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateSavedQueryRequest| { &m.parent }, - |m: &mut CreateSavedQueryRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "saved_query", - |m: &CreateSavedQueryRequest| { &m.saved_query }, - |m: &mut CreateSavedQueryRequest| { &mut m.saved_query }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "saved_query_id", - |m: &CreateSavedQueryRequest| { &m.saved_query_id }, - |m: &mut CreateSavedQueryRequest| { &mut m.saved_query_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateSavedQueryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateSavedQueryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateSavedQueryRequest::new) - } -} - -impl ::protobuf::Clear for CreateSavedQueryRequest { - fn clear(&mut self) { - self.parent.clear(); - self.saved_query.clear(); - self.saved_query_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateSavedQueryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateSavedQueryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetSavedQueryRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetSavedQueryRequest { - fn default() -> &'a GetSavedQueryRequest { - ::default_instance() - } -} - -impl GetSavedQueryRequest { - pub fn new() -> GetSavedQueryRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetSavedQueryRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetSavedQueryRequest { - GetSavedQueryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetSavedQueryRequest| { &m.name }, - |m: &mut GetSavedQueryRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSavedQueryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetSavedQueryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSavedQueryRequest::new) - } -} - -impl ::protobuf::Clear for GetSavedQueryRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetSavedQueryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetSavedQueryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSavedQueriesRequest { - // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSavedQueriesRequest { - fn default() -> &'a ListSavedQueriesRequest { - ::default_instance() - } -} - -impl ListSavedQueriesRequest { - pub fn new() -> ListSavedQueriesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSavedQueriesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSavedQueriesRequest { - ListSavedQueriesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListSavedQueriesRequest| { &m.parent }, - |m: &mut ListSavedQueriesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListSavedQueriesRequest| { &m.filter }, - |m: &mut ListSavedQueriesRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSavedQueriesRequest| { &m.page_size }, - |m: &mut ListSavedQueriesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSavedQueriesRequest| { &m.page_token }, - |m: &mut ListSavedQueriesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSavedQueriesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSavedQueriesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSavedQueriesRequest::new) - } -} - -impl ::protobuf::Clear for ListSavedQueriesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSavedQueriesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSavedQueriesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSavedQueriesResponse { - // message fields - pub saved_queries: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSavedQueriesResponse { - fn default() -> &'a ListSavedQueriesResponse { - ::default_instance() - } -} - -impl ListSavedQueriesResponse { - pub fn new() -> ListSavedQueriesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.SavedQuery saved_queries = 1; - - - pub fn get_saved_queries(&self) -> &[SavedQuery] { - &self.saved_queries - } - pub fn clear_saved_queries(&mut self) { - self.saved_queries.clear(); - } - - // Param is passed by value, moved - pub fn set_saved_queries(&mut self, v: ::protobuf::RepeatedField) { - self.saved_queries = v; - } - - // Mutable pointer to the field. - pub fn mut_saved_queries(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.saved_queries - } - - // Take field - pub fn take_saved_queries(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.saved_queries, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSavedQueriesResponse { - fn is_initialized(&self) -> bool { - for v in &self.saved_queries { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.saved_queries)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.saved_queries { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.saved_queries { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSavedQueriesResponse { - ListSavedQueriesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "saved_queries", - |m: &ListSavedQueriesResponse| { &m.saved_queries }, - |m: &mut ListSavedQueriesResponse| { &mut m.saved_queries }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSavedQueriesResponse| { &m.next_page_token }, - |m: &mut ListSavedQueriesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSavedQueriesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSavedQueriesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSavedQueriesResponse::new) - } -} - -impl ::protobuf::Clear for ListSavedQueriesResponse { - fn clear(&mut self) { - self.saved_queries.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSavedQueriesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSavedQueriesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateSavedQueryRequest { - // message fields - pub saved_query: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateSavedQueryRequest { - fn default() -> &'a UpdateSavedQueryRequest { - ::default_instance() - } -} - -impl UpdateSavedQueryRequest { - pub fn new() -> UpdateSavedQueryRequest { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.SavedQuery saved_query = 1; - - - pub fn get_saved_query(&self) -> &SavedQuery { - self.saved_query.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_saved_query(&mut self) { - self.saved_query.clear(); - } - - pub fn has_saved_query(&self) -> bool { - self.saved_query.is_some() - } - - // Param is passed by value, moved - pub fn set_saved_query(&mut self, v: SavedQuery) { - self.saved_query = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_saved_query(&mut self) -> &mut SavedQuery { - if self.saved_query.is_none() { - self.saved_query.set_default(); - } - self.saved_query.as_mut().unwrap() - } - - // Take field - pub fn take_saved_query(&mut self) -> SavedQuery { - self.saved_query.take().unwrap_or_else(|| SavedQuery::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateSavedQueryRequest { - fn is_initialized(&self) -> bool { - for v in &self.saved_query { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.saved_query)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.saved_query.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.saved_query.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateSavedQueryRequest { - UpdateSavedQueryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "saved_query", - |m: &UpdateSavedQueryRequest| { &m.saved_query }, - |m: &mut UpdateSavedQueryRequest| { &mut m.saved_query }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateSavedQueryRequest| { &m.update_mask }, - |m: &mut UpdateSavedQueryRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateSavedQueryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateSavedQueryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateSavedQueryRequest::new) - } -} - -impl ::protobuf::Clear for UpdateSavedQueryRequest { - fn clear(&mut self) { - self.saved_query.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateSavedQueryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateSavedQueryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteSavedQueryRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteSavedQueryRequest { - fn default() -> &'a DeleteSavedQueryRequest { - ::default_instance() - } -} - -impl DeleteSavedQueryRequest { - pub fn new() -> DeleteSavedQueryRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteSavedQueryRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteSavedQueryRequest { - DeleteSavedQueryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteSavedQueryRequest| { &m.name }, - |m: &mut DeleteSavedQueryRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSavedQueryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteSavedQueryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSavedQueryRequest::new) - } -} - -impl ::protobuf::Clear for DeleteSavedQueryRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteSavedQueryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteSavedQueryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeMoveRequest { - // message fields - pub resource: ::std::string::String, - pub destination_parent: ::std::string::String, - pub view: AnalyzeMoveRequest_AnalysisView, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeMoveRequest { - fn default() -> &'a AnalyzeMoveRequest { - ::default_instance() - } -} - -impl AnalyzeMoveRequest { - pub fn new() -> AnalyzeMoveRequest { - ::std::default::Default::default() - } - - // string resource = 1; - - - pub fn get_resource(&self) -> &str { - &self.resource - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - &mut self.resource - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource, ::std::string::String::new()) - } - - // string destination_parent = 2; - - - pub fn get_destination_parent(&self) -> &str { - &self.destination_parent - } - pub fn clear_destination_parent(&mut self) { - self.destination_parent.clear(); - } - - // Param is passed by value, moved - pub fn set_destination_parent(&mut self, v: ::std::string::String) { - self.destination_parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination_parent(&mut self) -> &mut ::std::string::String { - &mut self.destination_parent - } - - // Take field - pub fn take_destination_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination_parent, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3; - - - pub fn get_view(&self) -> AnalyzeMoveRequest_AnalysisView { - self.view - } - pub fn clear_view(&mut self) { - self.view = AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: AnalyzeMoveRequest_AnalysisView) { - self.view = v; - } -} - -impl ::protobuf::Message for AnalyzeMoveRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination_parent)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 3, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.resource); - } - if !self.destination_parent.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.destination_parent); - } - if self.view != AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.view); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.resource.is_empty() { - os.write_string(1, &self.resource)?; - } - if !self.destination_parent.is_empty() { - os.write_string(2, &self.destination_parent)?; - } - if self.view != AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.view))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeMoveRequest { - AnalyzeMoveRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource", - |m: &AnalyzeMoveRequest| { &m.resource }, - |m: &mut AnalyzeMoveRequest| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination_parent", - |m: &AnalyzeMoveRequest| { &m.destination_parent }, - |m: &mut AnalyzeMoveRequest| { &mut m.destination_parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &AnalyzeMoveRequest| { &m.view }, - |m: &mut AnalyzeMoveRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeMoveRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeMoveRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeMoveRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeMoveRequest { - fn clear(&mut self) { - self.resource.clear(); - self.destination_parent.clear(); - self.view = AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeMoveRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeMoveRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AnalyzeMoveRequest_AnalysisView { - ANALYSIS_VIEW_UNSPECIFIED = 0, - FULL = 1, - BASIC = 2, -} - -impl ::protobuf::ProtobufEnum for AnalyzeMoveRequest_AnalysisView { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(AnalyzeMoveRequest_AnalysisView::FULL), - 2 => ::std::option::Option::Some(AnalyzeMoveRequest_AnalysisView::BASIC), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AnalyzeMoveRequest_AnalysisView] = &[ - AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED, - AnalyzeMoveRequest_AnalysisView::FULL, - AnalyzeMoveRequest_AnalysisView::BASIC, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AnalyzeMoveRequest.AnalysisView", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AnalyzeMoveRequest_AnalysisView { -} - -impl ::std::default::Default for AnalyzeMoveRequest_AnalysisView { - fn default() -> Self { - AnalyzeMoveRequest_AnalysisView::ANALYSIS_VIEW_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeMoveRequest_AnalysisView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeMoveResponse { - // message fields - pub move_analysis: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeMoveResponse { - fn default() -> &'a AnalyzeMoveResponse { - ::default_instance() - } -} - -impl AnalyzeMoveResponse { - pub fn new() -> AnalyzeMoveResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; - - - pub fn get_move_analysis(&self) -> &[MoveAnalysis] { - &self.move_analysis - } - pub fn clear_move_analysis(&mut self) { - self.move_analysis.clear(); - } - - // Param is passed by value, moved - pub fn set_move_analysis(&mut self, v: ::protobuf::RepeatedField) { - self.move_analysis = v; - } - - // Mutable pointer to the field. - pub fn mut_move_analysis(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.move_analysis - } - - // Take field - pub fn take_move_analysis(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.move_analysis, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AnalyzeMoveResponse { - fn is_initialized(&self) -> bool { - for v in &self.move_analysis { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.move_analysis)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.move_analysis { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.move_analysis { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeMoveResponse { - AnalyzeMoveResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "move_analysis", - |m: &AnalyzeMoveResponse| { &m.move_analysis }, - |m: &mut AnalyzeMoveResponse| { &mut m.move_analysis }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeMoveResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeMoveResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeMoveResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeMoveResponse { - fn clear(&mut self) { - self.move_analysis.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeMoveResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeMoveResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MoveAnalysis { - // message fields - pub display_name: ::std::string::String, - // message oneof groups - pub result: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MoveAnalysis { - fn default() -> &'a MoveAnalysis { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum MoveAnalysis_oneof_result { - analysis(MoveAnalysisResult), - error(super::status::Status), -} - -impl MoveAnalysis { - pub fn new() -> MoveAnalysis { - ::std::default::Default::default() - } - - // string display_name = 1; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.MoveAnalysisResult analysis = 2; - - - pub fn get_analysis(&self) -> &MoveAnalysisResult { - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_analysis(&mut self) { - self.result = ::std::option::Option::None; - } - - pub fn has_analysis(&self) -> bool { - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_analysis(&mut self, v: MoveAnalysisResult) { - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(v)) - } - - // Mutable pointer to the field. - pub fn mut_analysis(&mut self) -> &mut MoveAnalysisResult { - if let ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(_)) = self.result { - } else { - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(MoveAnalysisResult::new())); - } - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_analysis(&mut self) -> MoveAnalysisResult { - if self.has_analysis() { - match self.result.take() { - ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(v)) => v, - _ => panic!(), - } - } else { - MoveAnalysisResult::new() - } - } - - // .google.rpc.Status error = 3; - - - pub fn get_error(&self) -> &super::status::Status { - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::error(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_error(&mut self) { - self.result = ::std::option::Option::None; - } - - pub fn has_error(&self) -> bool { - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::error(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_error(&mut self, v: super::status::Status) { - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::error(v)) - } - - // Mutable pointer to the field. - pub fn mut_error(&mut self) -> &mut super::status::Status { - if let ::std::option::Option::Some(MoveAnalysis_oneof_result::error(_)) = self.result { - } else { - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::error(super::status::Status::new())); - } - match self.result { - ::std::option::Option::Some(MoveAnalysis_oneof_result::error(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_error(&mut self) -> super::status::Status { - if self.has_error() { - match self.result.take() { - ::std::option::Option::Some(MoveAnalysis_oneof_result::error(v)) => v, - _ => panic!(), - } - } else { - super::status::Status::new() - } - } -} - -impl ::protobuf::Message for MoveAnalysis { - fn is_initialized(&self) -> bool { - if let Some(MoveAnalysis_oneof_result::analysis(ref v)) = self.result { - if !v.is_initialized() { - return false; - } - } - if let Some(MoveAnalysis_oneof_result::error(ref v)) = self.result { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::analysis(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.result = ::std::option::Option::Some(MoveAnalysis_oneof_result::error(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.display_name); - } - if let ::std::option::Option::Some(ref v) = self.result { - match v { - &MoveAnalysis_oneof_result::analysis(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &MoveAnalysis_oneof_result::error(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.display_name.is_empty() { - os.write_string(1, &self.display_name)?; - } - if let ::std::option::Option::Some(ref v) = self.result { - match v { - &MoveAnalysis_oneof_result::analysis(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &MoveAnalysis_oneof_result::error(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MoveAnalysis { - MoveAnalysis::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &MoveAnalysis| { &m.display_name }, - |m: &mut MoveAnalysis| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, MoveAnalysisResult>( - "analysis", - MoveAnalysis::has_analysis, - MoveAnalysis::get_analysis, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::status::Status>( - "error", - MoveAnalysis::has_error, - MoveAnalysis::get_error, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MoveAnalysis", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MoveAnalysis { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MoveAnalysis::new) - } -} - -impl ::protobuf::Clear for MoveAnalysis { - fn clear(&mut self) { - self.display_name.clear(); - self.result = ::std::option::Option::None; - self.result = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MoveAnalysis { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MoveAnalysis { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MoveAnalysisResult { - // message fields - pub blockers: ::protobuf::RepeatedField, - pub warnings: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MoveAnalysisResult { - fn default() -> &'a MoveAnalysisResult { - ::default_instance() - } -} - -impl MoveAnalysisResult { - pub fn new() -> MoveAnalysisResult { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.MoveImpact blockers = 1; - - - pub fn get_blockers(&self) -> &[MoveImpact] { - &self.blockers - } - pub fn clear_blockers(&mut self) { - self.blockers.clear(); - } - - // Param is passed by value, moved - pub fn set_blockers(&mut self, v: ::protobuf::RepeatedField) { - self.blockers = v; - } - - // Mutable pointer to the field. - pub fn mut_blockers(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.blockers - } - - // Take field - pub fn take_blockers(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.blockers, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.MoveImpact warnings = 2; - - - pub fn get_warnings(&self) -> &[MoveImpact] { - &self.warnings - } - pub fn clear_warnings(&mut self) { - self.warnings.clear(); - } - - // Param is passed by value, moved - pub fn set_warnings(&mut self, v: ::protobuf::RepeatedField) { - self.warnings = v; - } - - // Mutable pointer to the field. - pub fn mut_warnings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.warnings - } - - // Take field - pub fn take_warnings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.warnings, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for MoveAnalysisResult { - fn is_initialized(&self) -> bool { - for v in &self.blockers { - if !v.is_initialized() { - return false; - } - }; - for v in &self.warnings { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.blockers)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.warnings)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.blockers { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.warnings { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.blockers { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.warnings { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MoveAnalysisResult { - MoveAnalysisResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "blockers", - |m: &MoveAnalysisResult| { &m.blockers }, - |m: &mut MoveAnalysisResult| { &mut m.blockers }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "warnings", - |m: &MoveAnalysisResult| { &m.warnings }, - |m: &mut MoveAnalysisResult| { &mut m.warnings }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MoveAnalysisResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MoveAnalysisResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MoveAnalysisResult::new) - } -} - -impl ::protobuf::Clear for MoveAnalysisResult { - fn clear(&mut self) { - self.blockers.clear(); - self.warnings.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MoveAnalysisResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MoveAnalysisResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MoveImpact { - // message fields - pub detail: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MoveImpact { - fn default() -> &'a MoveImpact { - ::default_instance() - } -} - -impl MoveImpact { - pub fn new() -> MoveImpact { - ::std::default::Default::default() - } - - // string detail = 1; - - - pub fn get_detail(&self) -> &str { - &self.detail - } - pub fn clear_detail(&mut self) { - self.detail.clear(); - } - - // Param is passed by value, moved - pub fn set_detail(&mut self, v: ::std::string::String) { - self.detail = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_detail(&mut self) -> &mut ::std::string::String { - &mut self.detail - } - - // Take field - pub fn take_detail(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.detail, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for MoveImpact { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.detail)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.detail.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.detail); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.detail.is_empty() { - os.write_string(1, &self.detail)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MoveImpact { - MoveImpact::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "detail", - |m: &MoveImpact| { &m.detail }, - |m: &mut MoveImpact| { &mut m.detail }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MoveImpact", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MoveImpact { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MoveImpact::new) - } -} - -impl ::protobuf::Clear for MoveImpact { - fn clear(&mut self) { - self.detail.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MoveImpact { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MoveImpact { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryAssetsOutputConfig { - // message fields - pub bigquery_destination: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryAssetsOutputConfig { - fn default() -> &'a QueryAssetsOutputConfig { - ::default_instance() - } -} - -impl QueryAssetsOutputConfig { - pub fn new() -> QueryAssetsOutputConfig { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.QueryAssetsOutputConfig.BigQueryDestination bigquery_destination = 1; - - - pub fn get_bigquery_destination(&self) -> &QueryAssetsOutputConfig_BigQueryDestination { - self.bigquery_destination.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bigquery_destination(&mut self) { - self.bigquery_destination.clear(); - } - - pub fn has_bigquery_destination(&self) -> bool { - self.bigquery_destination.is_some() - } - - // Param is passed by value, moved - pub fn set_bigquery_destination(&mut self, v: QueryAssetsOutputConfig_BigQueryDestination) { - self.bigquery_destination = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bigquery_destination(&mut self) -> &mut QueryAssetsOutputConfig_BigQueryDestination { - if self.bigquery_destination.is_none() { - self.bigquery_destination.set_default(); - } - self.bigquery_destination.as_mut().unwrap() - } - - // Take field - pub fn take_bigquery_destination(&mut self) -> QueryAssetsOutputConfig_BigQueryDestination { - self.bigquery_destination.take().unwrap_or_else(|| QueryAssetsOutputConfig_BigQueryDestination::new()) - } -} - -impl ::protobuf::Message for QueryAssetsOutputConfig { - fn is_initialized(&self) -> bool { - for v in &self.bigquery_destination { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bigquery_destination)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.bigquery_destination.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.bigquery_destination.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryAssetsOutputConfig { - QueryAssetsOutputConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bigquery_destination", - |m: &QueryAssetsOutputConfig| { &m.bigquery_destination }, - |m: &mut QueryAssetsOutputConfig| { &mut m.bigquery_destination }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryAssetsOutputConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryAssetsOutputConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryAssetsOutputConfig::new) - } -} - -impl ::protobuf::Clear for QueryAssetsOutputConfig { - fn clear(&mut self) { - self.bigquery_destination.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryAssetsOutputConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryAssetsOutputConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryAssetsOutputConfig_BigQueryDestination { - // message fields - pub dataset: ::std::string::String, - pub table: ::std::string::String, - pub write_disposition: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryAssetsOutputConfig_BigQueryDestination { - fn default() -> &'a QueryAssetsOutputConfig_BigQueryDestination { - ::default_instance() - } -} - -impl QueryAssetsOutputConfig_BigQueryDestination { - pub fn new() -> QueryAssetsOutputConfig_BigQueryDestination { - ::std::default::Default::default() - } - - // string dataset = 1; - - - pub fn get_dataset(&self) -> &str { - &self.dataset - } - pub fn clear_dataset(&mut self) { - self.dataset.clear(); - } - - // Param is passed by value, moved - pub fn set_dataset(&mut self, v: ::std::string::String) { - self.dataset = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dataset(&mut self) -> &mut ::std::string::String { - &mut self.dataset - } - - // Take field - pub fn take_dataset(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dataset, ::std::string::String::new()) - } - - // string table = 2; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // string write_disposition = 3; - - - pub fn get_write_disposition(&self) -> &str { - &self.write_disposition - } - pub fn clear_write_disposition(&mut self) { - self.write_disposition.clear(); - } - - // Param is passed by value, moved - pub fn set_write_disposition(&mut self, v: ::std::string::String) { - self.write_disposition = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_write_disposition(&mut self) -> &mut ::std::string::String { - &mut self.write_disposition - } - - // Take field - pub fn take_write_disposition(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.write_disposition, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for QueryAssetsOutputConfig_BigQueryDestination { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dataset)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.write_disposition)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dataset.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dataset); - } - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.table); - } - if !self.write_disposition.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.write_disposition); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dataset.is_empty() { - os.write_string(1, &self.dataset)?; - } - if !self.table.is_empty() { - os.write_string(2, &self.table)?; - } - if !self.write_disposition.is_empty() { - os.write_string(3, &self.write_disposition)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryAssetsOutputConfig_BigQueryDestination { - QueryAssetsOutputConfig_BigQueryDestination::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dataset", - |m: &QueryAssetsOutputConfig_BigQueryDestination| { &m.dataset }, - |m: &mut QueryAssetsOutputConfig_BigQueryDestination| { &mut m.dataset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &QueryAssetsOutputConfig_BigQueryDestination| { &m.table }, - |m: &mut QueryAssetsOutputConfig_BigQueryDestination| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "write_disposition", - |m: &QueryAssetsOutputConfig_BigQueryDestination| { &m.write_disposition }, - |m: &mut QueryAssetsOutputConfig_BigQueryDestination| { &mut m.write_disposition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryAssetsOutputConfig.BigQueryDestination", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryAssetsOutputConfig_BigQueryDestination { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryAssetsOutputConfig_BigQueryDestination::new) - } -} - -impl ::protobuf::Clear for QueryAssetsOutputConfig_BigQueryDestination { - fn clear(&mut self) { - self.dataset.clear(); - self.table.clear(); - self.write_disposition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryAssetsOutputConfig_BigQueryDestination { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryAssetsOutputConfig_BigQueryDestination { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryAssetsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub timeout: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub output_config: ::protobuf::SingularPtrField, - // message oneof groups - pub query: ::std::option::Option, - pub time: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryAssetsRequest { - fn default() -> &'a QueryAssetsRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum QueryAssetsRequest_oneof_query { - statement(::std::string::String), - job_reference(::std::string::String), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum QueryAssetsRequest_oneof_time { - read_time_window(super::assets::TimeWindow), - read_time(::protobuf::well_known_types::Timestamp), -} - -impl QueryAssetsRequest { - pub fn new() -> QueryAssetsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string statement = 2; - - - pub fn get_statement(&self) -> &str { - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(ref v)) => v, - _ => "", - } - } - pub fn clear_statement(&mut self) { - self.query = ::std::option::Option::None; - } - - pub fn has_statement(&self) -> bool { - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_statement(&mut self, v: ::std::string::String) { - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(v)) - } - - // Mutable pointer to the field. - pub fn mut_statement(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(_)) = self.query { - } else { - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(::std::string::String::new())); - } - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_statement(&mut self) -> ::std::string::String { - if self.has_statement() { - match self.query.take() { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string job_reference = 3; - - - pub fn get_job_reference(&self) -> &str { - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(ref v)) => v, - _ => "", - } - } - pub fn clear_job_reference(&mut self) { - self.query = ::std::option::Option::None; - } - - pub fn has_job_reference(&self) -> bool { - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_job_reference(&mut self, v: ::std::string::String) { - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(v)) - } - - // Mutable pointer to the field. - pub fn mut_job_reference(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(_)) = self.query { - } else { - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(::std::string::String::new())); - } - match self.query { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_job_reference(&mut self) -> ::std::string::String { - if self.has_job_reference() { - match self.query.take() { - ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // .google.protobuf.Duration timeout = 6; - - - pub fn get_timeout(&self) -> &::protobuf::well_known_types::Duration { - self.timeout.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_timeout(&mut self) { - self.timeout.clear(); - } - - pub fn has_timeout(&self) -> bool { - self.timeout.is_some() - } - - // Param is passed by value, moved - pub fn set_timeout(&mut self, v: ::protobuf::well_known_types::Duration) { - self.timeout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_timeout(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.timeout.is_none() { - self.timeout.set_default(); - } - self.timeout.as_mut().unwrap() - } - - // Take field - pub fn take_timeout(&mut self) -> ::protobuf::well_known_types::Duration { - self.timeout.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.cloud.asset.v1.TimeWindow read_time_window = 7; - - - pub fn get_read_time_window(&self) -> &super::assets::TimeWindow { - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_read_time_window(&mut self) { - self.time = ::std::option::Option::None; - } - - pub fn has_read_time_window(&self) -> bool { - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_read_time_window(&mut self, v: super::assets::TimeWindow) { - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(v)) - } - - // Mutable pointer to the field. - pub fn mut_read_time_window(&mut self) -> &mut super::assets::TimeWindow { - if let ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(_)) = self.time { - } else { - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(super::assets::TimeWindow::new())); - } - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_read_time_window(&mut self) -> super::assets::TimeWindow { - if self.has_read_time_window() { - match self.time.take() { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(v)) => v, - _ => panic!(), - } - } else { - super::assets::TimeWindow::new() - } - } - - // .google.protobuf.Timestamp read_time = 8; - - - pub fn get_read_time(&self) -> &::protobuf::well_known_types::Timestamp { - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), - } - } - pub fn clear_read_time(&mut self) { - self.time = ::std::option::Option::None; - } - - pub fn has_read_time(&self) -> bool { - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_read_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(v)) - } - - // Mutable pointer to the field. - pub fn mut_read_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(_)) = self.time { - } else { - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(::protobuf::well_known_types::Timestamp::new())); - } - match self.time { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_read_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_read_time() { - match self.time.take() { - ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Timestamp::new() - } - } - - // .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 9; - - - pub fn get_output_config(&self) -> &QueryAssetsOutputConfig { - self.output_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_output_config(&mut self) { - self.output_config.clear(); - } - - pub fn has_output_config(&self) -> bool { - self.output_config.is_some() - } - - // Param is passed by value, moved - pub fn set_output_config(&mut self, v: QueryAssetsOutputConfig) { - self.output_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_config(&mut self) -> &mut QueryAssetsOutputConfig { - if self.output_config.is_none() { - self.output_config.set_default(); - } - self.output_config.as_mut().unwrap() - } - - // Take field - pub fn take_output_config(&mut self) -> QueryAssetsOutputConfig { - self.output_config.take().unwrap_or_else(|| QueryAssetsOutputConfig::new()) - } -} - -impl ::protobuf::Message for QueryAssetsRequest { - fn is_initialized(&self) -> bool { - for v in &self.timeout { - if !v.is_initialized() { - return false; - } - }; - if let Some(QueryAssetsRequest_oneof_time::read_time_window(ref v)) = self.time { - if !v.is_initialized() { - return false; - } - } - if let Some(QueryAssetsRequest_oneof_time::read_time(ref v)) = self.time { - if !v.is_initialized() { - return false; - } - } - for v in &self.output_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::statement(is.read_string()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.query = ::std::option::Option::Some(QueryAssetsRequest_oneof_query::job_reference(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timeout)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time_window(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.time = ::std::option::Option::Some(QueryAssetsRequest_oneof_time::read_time(is.read_message()?)); - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.output_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(4, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if let Some(ref v) = self.timeout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.output_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.query { - match v { - &QueryAssetsRequest_oneof_query::statement(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - &QueryAssetsRequest_oneof_query::job_reference(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.time { - match v { - &QueryAssetsRequest_oneof_time::read_time_window(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &QueryAssetsRequest_oneof_time::read_time(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(4, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if let Some(ref v) = self.timeout.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.output_config.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.query { - match v { - &QueryAssetsRequest_oneof_query::statement(ref v) => { - os.write_string(2, v)?; - }, - &QueryAssetsRequest_oneof_query::job_reference(ref v) => { - os.write_string(3, v)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.time { - match v { - &QueryAssetsRequest_oneof_time::read_time_window(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &QueryAssetsRequest_oneof_time::read_time(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryAssetsRequest { - QueryAssetsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &QueryAssetsRequest| { &m.parent }, - |m: &mut QueryAssetsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "statement", - QueryAssetsRequest::has_statement, - QueryAssetsRequest::get_statement, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "job_reference", - QueryAssetsRequest::has_job_reference, - QueryAssetsRequest::get_job_reference, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &QueryAssetsRequest| { &m.page_size }, - |m: &mut QueryAssetsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &QueryAssetsRequest| { &m.page_token }, - |m: &mut QueryAssetsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "timeout", - |m: &QueryAssetsRequest| { &m.timeout }, - |m: &mut QueryAssetsRequest| { &mut m.timeout }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::assets::TimeWindow>( - "read_time_window", - QueryAssetsRequest::has_read_time_window, - QueryAssetsRequest::get_read_time_window, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( - "read_time", - QueryAssetsRequest::has_read_time, - QueryAssetsRequest::get_read_time, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "output_config", - |m: &QueryAssetsRequest| { &m.output_config }, - |m: &mut QueryAssetsRequest| { &mut m.output_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryAssetsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryAssetsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryAssetsRequest::new) - } -} - -impl ::protobuf::Clear for QueryAssetsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.query = ::std::option::Option::None; - self.query = ::std::option::Option::None; - self.page_size = 0; - self.page_token.clear(); - self.timeout.clear(); - self.time = ::std::option::Option::None; - self.time = ::std::option::Option::None; - self.output_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryAssetsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryAssetsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryAssetsResponse { - // message fields - pub job_reference: ::std::string::String, - pub done: bool, - // message oneof groups - pub response: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryAssetsResponse { - fn default() -> &'a QueryAssetsResponse { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum QueryAssetsResponse_oneof_response { - error(super::status::Status), - query_result(QueryResult), - output_config(QueryAssetsOutputConfig), -} - -impl QueryAssetsResponse { - pub fn new() -> QueryAssetsResponse { - ::std::default::Default::default() - } - - // string job_reference = 1; - - - pub fn get_job_reference(&self) -> &str { - &self.job_reference - } - pub fn clear_job_reference(&mut self) { - self.job_reference.clear(); - } - - // Param is passed by value, moved - pub fn set_job_reference(&mut self, v: ::std::string::String) { - self.job_reference = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_job_reference(&mut self) -> &mut ::std::string::String { - &mut self.job_reference - } - - // Take field - pub fn take_job_reference(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.job_reference, ::std::string::String::new()) - } - - // bool done = 2; - - - pub fn get_done(&self) -> bool { - self.done - } - pub fn clear_done(&mut self) { - self.done = false; - } - - // Param is passed by value, moved - pub fn set_done(&mut self, v: bool) { - self.done = v; - } - - // .google.rpc.Status error = 3; - - - pub fn get_error(&self) -> &super::status::Status { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_error(&mut self) { - self.response = ::std::option::Option::None; - } - - pub fn has_error(&self) -> bool { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_error(&mut self, v: super::status::Status) { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(v)) - } - - // Mutable pointer to the field. - pub fn mut_error(&mut self) -> &mut super::status::Status { - if let ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(_)) = self.response { - } else { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(super::status::Status::new())); - } - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_error(&mut self) -> super::status::Status { - if self.has_error() { - match self.response.take() { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(v)) => v, - _ => panic!(), - } - } else { - super::status::Status::new() - } - } - - // .google.cloud.asset.v1.QueryResult query_result = 4; - - - pub fn get_query_result(&self) -> &QueryResult { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_query_result(&mut self) { - self.response = ::std::option::Option::None; - } - - pub fn has_query_result(&self) -> bool { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_query_result(&mut self, v: QueryResult) { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(v)) - } - - // Mutable pointer to the field. - pub fn mut_query_result(&mut self) -> &mut QueryResult { - if let ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(_)) = self.response { - } else { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(QueryResult::new())); - } - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_query_result(&mut self) -> QueryResult { - if self.has_query_result() { - match self.response.take() { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(v)) => v, - _ => panic!(), - } - } else { - QueryResult::new() - } - } - - // .google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; - - - pub fn get_output_config(&self) -> &QueryAssetsOutputConfig { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_output_config(&mut self) { - self.response = ::std::option::Option::None; - } - - pub fn has_output_config(&self) -> bool { - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_output_config(&mut self, v: QueryAssetsOutputConfig) { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(v)) - } - - // Mutable pointer to the field. - pub fn mut_output_config(&mut self) -> &mut QueryAssetsOutputConfig { - if let ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(_)) = self.response { - } else { - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(QueryAssetsOutputConfig::new())); - } - match self.response { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_output_config(&mut self) -> QueryAssetsOutputConfig { - if self.has_output_config() { - match self.response.take() { - ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(v)) => v, - _ => panic!(), - } - } else { - QueryAssetsOutputConfig::new() - } - } -} - -impl ::protobuf::Message for QueryAssetsResponse { - fn is_initialized(&self) -> bool { - if let Some(QueryAssetsResponse_oneof_response::error(ref v)) = self.response { - if !v.is_initialized() { - return false; - } - } - if let Some(QueryAssetsResponse_oneof_response::query_result(ref v)) = self.response { - if !v.is_initialized() { - return false; - } - } - if let Some(QueryAssetsResponse_oneof_response::output_config(ref v)) = self.response { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.job_reference)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.done = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::error(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::query_result(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.response = ::std::option::Option::Some(QueryAssetsResponse_oneof_response::output_config(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.job_reference.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.job_reference); - } - if self.done != false { - my_size += 2; - } - if let ::std::option::Option::Some(ref v) = self.response { - match v { - &QueryAssetsResponse_oneof_response::error(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &QueryAssetsResponse_oneof_response::query_result(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &QueryAssetsResponse_oneof_response::output_config(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.job_reference.is_empty() { - os.write_string(1, &self.job_reference)?; - } - if self.done != false { - os.write_bool(2, self.done)?; - } - if let ::std::option::Option::Some(ref v) = self.response { - match v { - &QueryAssetsResponse_oneof_response::error(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &QueryAssetsResponse_oneof_response::query_result(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &QueryAssetsResponse_oneof_response::output_config(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryAssetsResponse { - QueryAssetsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "job_reference", - |m: &QueryAssetsResponse| { &m.job_reference }, - |m: &mut QueryAssetsResponse| { &mut m.job_reference }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "done", - |m: &QueryAssetsResponse| { &m.done }, - |m: &mut QueryAssetsResponse| { &mut m.done }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::status::Status>( - "error", - QueryAssetsResponse::has_error, - QueryAssetsResponse::get_error, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, QueryResult>( - "query_result", - QueryAssetsResponse::has_query_result, - QueryAssetsResponse::get_query_result, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, QueryAssetsOutputConfig>( - "output_config", - QueryAssetsResponse::has_output_config, - QueryAssetsResponse::get_output_config, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryAssetsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryAssetsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryAssetsResponse::new) - } -} - -impl ::protobuf::Clear for QueryAssetsResponse { - fn clear(&mut self) { - self.job_reference.clear(); - self.done = false; - self.response = ::std::option::Option::None; - self.response = ::std::option::Option::None; - self.response = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryAssetsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryAssetsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct QueryResult { - // message fields - pub rows: ::protobuf::RepeatedField<::protobuf::well_known_types::Struct>, - pub schema: ::protobuf::SingularPtrField, - pub next_page_token: ::std::string::String, - pub total_rows: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a QueryResult { - fn default() -> &'a QueryResult { - ::default_instance() - } -} - -impl QueryResult { - pub fn new() -> QueryResult { - ::std::default::Default::default() - } - - // repeated .google.protobuf.Struct rows = 1; - - - pub fn get_rows(&self) -> &[::protobuf::well_known_types::Struct] { - &self.rows - } - pub fn clear_rows(&mut self) { - self.rows.clear(); - } - - // Param is passed by value, moved - pub fn set_rows(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Struct>) { - self.rows = v; - } - - // Mutable pointer to the field. - pub fn mut_rows(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Struct> { - &mut self.rows - } - - // Take field - pub fn take_rows(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Struct> { - ::std::mem::replace(&mut self.rows, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.TableSchema schema = 2; - - - pub fn get_schema(&self) -> &TableSchema { - self.schema.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_schema(&mut self) { - self.schema.clear(); - } - - pub fn has_schema(&self) -> bool { - self.schema.is_some() - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: TableSchema) { - self.schema = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema(&mut self) -> &mut TableSchema { - if self.schema.is_none() { - self.schema.set_default(); - } - self.schema.as_mut().unwrap() - } - - // Take field - pub fn take_schema(&mut self) -> TableSchema { - self.schema.take().unwrap_or_else(|| TableSchema::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } - - // int64 total_rows = 4; - - - pub fn get_total_rows(&self) -> i64 { - self.total_rows - } - pub fn clear_total_rows(&mut self) { - self.total_rows = 0; - } - - // Param is passed by value, moved - pub fn set_total_rows(&mut self, v: i64) { - self.total_rows = v; - } -} - -impl ::protobuf::Message for QueryResult { - fn is_initialized(&self) -> bool { - for v in &self.rows { - if !v.is_initialized() { - return false; - } - }; - for v in &self.schema { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rows)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.schema)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.total_rows = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.rows { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.schema.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.next_page_token); - } - if self.total_rows != 0 { - my_size += ::protobuf::rt::value_size(4, self.total_rows, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.rows { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.schema.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.next_page_token.is_empty() { - os.write_string(3, &self.next_page_token)?; - } - if self.total_rows != 0 { - os.write_int64(4, self.total_rows)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QueryResult { - QueryResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "rows", - |m: &QueryResult| { &m.rows }, - |m: &mut QueryResult| { &mut m.rows }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schema", - |m: &QueryResult| { &m.schema }, - |m: &mut QueryResult| { &mut m.schema }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &QueryResult| { &m.next_page_token }, - |m: &mut QueryResult| { &mut m.next_page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "total_rows", - |m: &QueryResult| { &m.total_rows }, - |m: &mut QueryResult| { &mut m.total_rows }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QueryResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryResult::new) - } -} - -impl ::protobuf::Clear for QueryResult { - fn clear(&mut self) { - self.rows.clear(); - self.schema.clear(); - self.next_page_token.clear(); - self.total_rows = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QueryResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for QueryResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TableSchema { - // message fields - pub fields: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TableSchema { - fn default() -> &'a TableSchema { - ::default_instance() - } -} - -impl TableSchema { - pub fn new() -> TableSchema { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.TableFieldSchema fields = 1; - - - pub fn get_fields(&self) -> &[TableFieldSchema] { - &self.fields - } - pub fn clear_fields(&mut self) { - self.fields.clear(); - } - - // Param is passed by value, moved - pub fn set_fields(&mut self, v: ::protobuf::RepeatedField) { - self.fields = v; - } - - // Mutable pointer to the field. - pub fn mut_fields(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.fields - } - - // Take field - pub fn take_fields(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for TableSchema { - fn is_initialized(&self) -> bool { - for v in &self.fields { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.fields { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.fields { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> TableSchema { - TableSchema::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "fields", - |m: &TableSchema| { &m.fields }, - |m: &mut TableSchema| { &mut m.fields }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TableSchema", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static TableSchema { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TableSchema::new) - } -} - -impl ::protobuf::Clear for TableSchema { - fn clear(&mut self) { - self.fields.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TableSchema { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for TableSchema { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TableFieldSchema { - // message fields - pub field: ::std::string::String, - pub field_type: ::std::string::String, - pub mode: ::std::string::String, - pub fields: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TableFieldSchema { - fn default() -> &'a TableFieldSchema { - ::default_instance() - } -} - -impl TableFieldSchema { - pub fn new() -> TableFieldSchema { - ::std::default::Default::default() - } - - // string field = 1; - - - pub fn get_field(&self) -> &str { - &self.field - } - pub fn clear_field(&mut self) { - self.field.clear(); - } - - // Param is passed by value, moved - pub fn set_field(&mut self, v: ::std::string::String) { - self.field = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field(&mut self) -> &mut ::std::string::String { - &mut self.field - } - - // Take field - pub fn take_field(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field, ::std::string::String::new()) - } - - // string type = 2; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string mode = 3; - - - pub fn get_mode(&self) -> &str { - &self.mode - } - pub fn clear_mode(&mut self) { - self.mode.clear(); - } - - // Param is passed by value, moved - pub fn set_mode(&mut self, v: ::std::string::String) { - self.mode = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_mode(&mut self) -> &mut ::std::string::String { - &mut self.mode - } - - // Take field - pub fn take_mode(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.mode, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; - - - pub fn get_fields(&self) -> &[TableFieldSchema] { - &self.fields - } - pub fn clear_fields(&mut self) { - self.fields.clear(); - } - - // Param is passed by value, moved - pub fn set_fields(&mut self, v: ::protobuf::RepeatedField) { - self.fields = v; - } - - // Mutable pointer to the field. - pub fn mut_fields(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.fields - } - - // Take field - pub fn take_fields(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for TableFieldSchema { - fn is_initialized(&self) -> bool { - for v in &self.fields { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.mode)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.field.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.field_type); - } - if !self.mode.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.mode); - } - for value in &self.fields { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field.is_empty() { - os.write_string(1, &self.field)?; - } - if !self.field_type.is_empty() { - os.write_string(2, &self.field_type)?; - } - if !self.mode.is_empty() { - os.write_string(3, &self.mode)?; - } - for v in &self.fields { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> TableFieldSchema { - TableFieldSchema::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "field", - |m: &TableFieldSchema| { &m.field }, - |m: &mut TableFieldSchema| { &mut m.field }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &TableFieldSchema| { &m.field_type }, - |m: &mut TableFieldSchema| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "mode", - |m: &TableFieldSchema| { &m.mode }, - |m: &mut TableFieldSchema| { &mut m.mode }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "fields", - |m: &TableFieldSchema| { &m.fields }, - |m: &mut TableFieldSchema| { &mut m.fields }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TableFieldSchema", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static TableFieldSchema { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TableFieldSchema::new) - } -} - -impl ::protobuf::Clear for TableFieldSchema { - fn clear(&mut self) { - self.field.clear(); - self.field_type.clear(); - self.mode.clear(); - self.fields.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TableFieldSchema { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for TableFieldSchema { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetEffectiveIamPoliciesRequest { - // message fields - pub scope: ::std::string::String, - pub names: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetEffectiveIamPoliciesRequest { - fn default() -> &'a BatchGetEffectiveIamPoliciesRequest { - ::default_instance() - } -} - -impl BatchGetEffectiveIamPoliciesRequest { - pub fn new() -> BatchGetEffectiveIamPoliciesRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // repeated string names = 3; - - - pub fn get_names(&self) -> &[::std::string::String] { - &self.names - } - pub fn clear_names(&mut self) { - self.names.clear(); - } - - // Param is passed by value, moved - pub fn set_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.names = v; - } - - // Mutable pointer to the field. - pub fn mut_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.names - } - - // Take field - pub fn take_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.names, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BatchGetEffectiveIamPoliciesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.names)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - for value in &self.names { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - for v in &self.names { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetEffectiveIamPoliciesRequest { - BatchGetEffectiveIamPoliciesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &BatchGetEffectiveIamPoliciesRequest| { &m.scope }, - |m: &mut BatchGetEffectiveIamPoliciesRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "names", - |m: &BatchGetEffectiveIamPoliciesRequest| { &m.names }, - |m: &mut BatchGetEffectiveIamPoliciesRequest| { &mut m.names }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetEffectiveIamPoliciesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetEffectiveIamPoliciesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetEffectiveIamPoliciesRequest::new) - } -} - -impl ::protobuf::Clear for BatchGetEffectiveIamPoliciesRequest { - fn clear(&mut self) { - self.scope.clear(); - self.names.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetEffectiveIamPoliciesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetEffectiveIamPoliciesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetEffectiveIamPoliciesResponse { - // message fields - pub policy_results: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetEffectiveIamPoliciesResponse { - fn default() -> &'a BatchGetEffectiveIamPoliciesResponse { - ::default_instance() - } -} - -impl BatchGetEffectiveIamPoliciesResponse { - pub fn new() -> BatchGetEffectiveIamPoliciesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy policy_results = 2; - - - pub fn get_policy_results(&self) -> &[BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy] { - &self.policy_results - } - pub fn clear_policy_results(&mut self) { - self.policy_results.clear(); - } - - // Param is passed by value, moved - pub fn set_policy_results(&mut self, v: ::protobuf::RepeatedField) { - self.policy_results = v; - } - - // Mutable pointer to the field. - pub fn mut_policy_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policy_results - } - - // Take field - pub fn take_policy_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policy_results, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BatchGetEffectiveIamPoliciesResponse { - fn is_initialized(&self) -> bool { - for v in &self.policy_results { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policy_results)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.policy_results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.policy_results { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetEffectiveIamPoliciesResponse { - BatchGetEffectiveIamPoliciesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy_results", - |m: &BatchGetEffectiveIamPoliciesResponse| { &m.policy_results }, - |m: &mut BatchGetEffectiveIamPoliciesResponse| { &mut m.policy_results }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetEffectiveIamPoliciesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetEffectiveIamPoliciesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetEffectiveIamPoliciesResponse::new) - } -} - -impl ::protobuf::Clear for BatchGetEffectiveIamPoliciesResponse { - fn clear(&mut self) { - self.policy_results.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetEffectiveIamPoliciesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetEffectiveIamPoliciesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - // message fields - pub full_resource_name: ::std::string::String, - pub policies: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - fn default() -> &'a BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - ::default_instance() - } -} - -impl BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - pub fn new() -> BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - ::std::default::Default::default() - } - - // string full_resource_name = 1; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo policies = 2; - - - pub fn get_policies(&self) -> &[BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo] { - &self.policies - } - pub fn clear_policies(&mut self) { - self.policies.clear(); - } - - // Param is passed by value, moved - pub fn set_policies(&mut self, v: ::protobuf::RepeatedField) { - self.policies = v; - } - - // Mutable pointer to the field. - pub fn mut_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policies - } - - // Take field - pub fn take_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policies, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - fn is_initialized(&self) -> bool { - for v in &self.policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policies)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.full_resource_name); - } - for value in &self.policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.full_resource_name.is_empty() { - os.write_string(1, &self.full_resource_name)?; - } - for v in &self.policies { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy| { &m.full_resource_name }, - |m: &mut BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy| { &mut m.full_resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policies", - |m: &BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy| { &m.policies }, - |m: &mut BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy| { &mut m.policies }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy::new) - } -} - -impl ::protobuf::Clear for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - fn clear(&mut self) { - self.full_resource_name.clear(); - self.policies.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - // message fields - pub attached_resource: ::std::string::String, - pub policy: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - fn default() -> &'a BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - ::default_instance() - } -} - -impl BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - pub fn new() -> BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - ::std::default::Default::default() - } - - // string attached_resource = 1; - - - pub fn get_attached_resource(&self) -> &str { - &self.attached_resource - } - pub fn clear_attached_resource(&mut self) { - self.attached_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_attached_resource(&mut self, v: ::std::string::String) { - self.attached_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_attached_resource(&mut self) -> &mut ::std::string::String { - &mut self.attached_resource - } - - // Take field - pub fn take_attached_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.attached_resource, ::std::string::String::new()) - } - - // .google.iam.v1.Policy policy = 2; - - - pub fn get_policy(&self) -> &super::policy::Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: super::policy::Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut super::policy::Policy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> super::policy::Policy { - self.policy.take().unwrap_or_else(|| super::policy::Policy::new()) - } -} - -impl ::protobuf::Message for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.attached_resource)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.attached_resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.attached_resource); - } - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.attached_resource.is_empty() { - os.write_string(1, &self.attached_resource)?; - } - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "attached_resource", - |m: &BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo| { &m.attached_resource }, - |m: &mut BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo| { &mut m.attached_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo| { &m.policy }, - |m: &mut BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo| { &mut m.policy }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo::new) - } -} - -impl ::protobuf::Clear for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - fn clear(&mut self) { - self.attached_resource.clear(); - self.policy.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BatchGetEffectiveIamPoliciesResponse_EffectiveIamPolicy_PolicyInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicy { - // message fields - pub attached_resource: ::std::string::String, - pub applied_resource: ::std::string::String, - pub rules: ::protobuf::RepeatedField, - pub inherit_from_parent: bool, - pub reset: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicy { - fn default() -> &'a AnalyzerOrgPolicy { - ::default_instance() - } -} - -impl AnalyzerOrgPolicy { - pub fn new() -> AnalyzerOrgPolicy { - ::std::default::Default::default() - } - - // string attached_resource = 1; - - - pub fn get_attached_resource(&self) -> &str { - &self.attached_resource - } - pub fn clear_attached_resource(&mut self) { - self.attached_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_attached_resource(&mut self, v: ::std::string::String) { - self.attached_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_attached_resource(&mut self) -> &mut ::std::string::String { - &mut self.attached_resource - } - - // Take field - pub fn take_attached_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.attached_resource, ::std::string::String::new()) - } - - // string applied_resource = 5; - - - pub fn get_applied_resource(&self) -> &str { - &self.applied_resource - } - pub fn clear_applied_resource(&mut self) { - self.applied_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_applied_resource(&mut self, v: ::std::string::String) { - self.applied_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_applied_resource(&mut self) -> &mut ::std::string::String { - &mut self.applied_resource - } - - // Take field - pub fn take_applied_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.applied_resource, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule rules = 2; - - - pub fn get_rules(&self) -> &[AnalyzerOrgPolicy_Rule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // bool inherit_from_parent = 3; - - - pub fn get_inherit_from_parent(&self) -> bool { - self.inherit_from_parent - } - pub fn clear_inherit_from_parent(&mut self) { - self.inherit_from_parent = false; - } - - // Param is passed by value, moved - pub fn set_inherit_from_parent(&mut self, v: bool) { - self.inherit_from_parent = v; - } - - // bool reset = 4; - - - pub fn get_reset(&self) -> bool { - self.reset - } - pub fn clear_reset(&mut self) { - self.reset = false; - } - - // Param is passed by value, moved - pub fn set_reset(&mut self, v: bool) { - self.reset = v; - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicy { - fn is_initialized(&self) -> bool { - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.attached_resource)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.applied_resource)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.inherit_from_parent = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reset = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.attached_resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.attached_resource); - } - if !self.applied_resource.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.applied_resource); - } - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.inherit_from_parent != false { - my_size += 2; - } - if self.reset != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.attached_resource.is_empty() { - os.write_string(1, &self.attached_resource)?; - } - if !self.applied_resource.is_empty() { - os.write_string(5, &self.applied_resource)?; - } - for v in &self.rules { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.inherit_from_parent != false { - os.write_bool(3, self.inherit_from_parent)?; - } - if self.reset != false { - os.write_bool(4, self.reset)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicy { - AnalyzerOrgPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "attached_resource", - |m: &AnalyzerOrgPolicy| { &m.attached_resource }, - |m: &mut AnalyzerOrgPolicy| { &mut m.attached_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "applied_resource", - |m: &AnalyzerOrgPolicy| { &m.applied_resource }, - |m: &mut AnalyzerOrgPolicy| { &mut m.applied_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &AnalyzerOrgPolicy| { &m.rules }, - |m: &mut AnalyzerOrgPolicy| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "inherit_from_parent", - |m: &AnalyzerOrgPolicy| { &m.inherit_from_parent }, - |m: &mut AnalyzerOrgPolicy| { &mut m.inherit_from_parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reset", - |m: &AnalyzerOrgPolicy| { &m.reset }, - |m: &mut AnalyzerOrgPolicy| { &mut m.reset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicy::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicy { - fn clear(&mut self) { - self.attached_resource.clear(); - self.applied_resource.clear(); - self.rules.clear(); - self.inherit_from_parent = false; - self.reset = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicy_Rule { - // message fields - pub condition: ::protobuf::SingularPtrField, - // message oneof groups - pub kind: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicy_Rule { - fn default() -> &'a AnalyzerOrgPolicy_Rule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzerOrgPolicy_Rule_oneof_kind { - values(AnalyzerOrgPolicy_Rule_StringValues), - allow_all(bool), - deny_all(bool), - enforce(bool), -} - -impl AnalyzerOrgPolicy_Rule { - pub fn new() -> AnalyzerOrgPolicy_Rule { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3; - - - pub fn get_values(&self) -> &AnalyzerOrgPolicy_Rule_StringValues { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_values(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_values(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_values(&mut self, v: AnalyzerOrgPolicy_Rule_StringValues) { - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(v)) - } - - // Mutable pointer to the field. - pub fn mut_values(&mut self) -> &mut AnalyzerOrgPolicy_Rule_StringValues { - if let ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(AnalyzerOrgPolicy_Rule_StringValues::new())); - } - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_values(&mut self) -> AnalyzerOrgPolicy_Rule_StringValues { - if self.has_values() { - match self.kind.take() { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(v)) => v, - _ => panic!(), - } - } else { - AnalyzerOrgPolicy_Rule_StringValues::new() - } - } - - // bool allow_all = 4; - - - pub fn get_allow_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(v)) => v, - _ => false, - } - } - pub fn clear_allow_all(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_allow_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_allow_all(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(v)) - } - - // bool deny_all = 5; - - - pub fn get_deny_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(v)) => v, - _ => false, - } - } - pub fn clear_deny_all(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_deny_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_deny_all(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(v)) - } - - // bool enforce = 6; - - - pub fn get_enforce(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::enforce(v)) => v, - _ => false, - } - } - pub fn clear_enforce(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_enforce(&self) -> bool { - match self.kind { - ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::enforce(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_enforce(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::enforce(v)) - } - - // .google.type.Expr condition = 7; - - - pub fn get_condition(&self) -> &super::expr::Expr { - self.condition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - pub fn has_condition(&self) -> bool { - self.condition.is_some() - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: super::expr::Expr) { - self.condition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut super::expr::Expr { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> super::expr::Expr { - self.condition.take().unwrap_or_else(|| super::expr::Expr::new()) - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicy_Rule { - fn is_initialized(&self) -> bool { - if let Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(ref v)) = self.kind { - if !v.is_initialized() { - return false; - } - } - for v in &self.condition { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::values(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(is.read_bool()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(is.read_bool()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(AnalyzerOrgPolicy_Rule_oneof_kind::enforce(is.read_bool()?)); - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.condition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &AnalyzerOrgPolicy_Rule_oneof_kind::values(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(v) => { - my_size += 2; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(v) => { - my_size += 2; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::enforce(v) => { - my_size += 2; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.condition.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &AnalyzerOrgPolicy_Rule_oneof_kind::values(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::allow_all(v) => { - os.write_bool(4, v)?; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::deny_all(v) => { - os.write_bool(5, v)?; - }, - &AnalyzerOrgPolicy_Rule_oneof_kind::enforce(v) => { - os.write_bool(6, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicy_Rule { - AnalyzerOrgPolicy_Rule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzerOrgPolicy_Rule_StringValues>( - "values", - AnalyzerOrgPolicy_Rule::has_values, - AnalyzerOrgPolicy_Rule::get_values, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "allow_all", - AnalyzerOrgPolicy_Rule::has_allow_all, - AnalyzerOrgPolicy_Rule::get_allow_all, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "deny_all", - AnalyzerOrgPolicy_Rule::has_deny_all, - AnalyzerOrgPolicy_Rule::get_deny_all, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "enforce", - AnalyzerOrgPolicy_Rule::has_enforce, - AnalyzerOrgPolicy_Rule::get_enforce, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &AnalyzerOrgPolicy_Rule| { &m.condition }, - |m: &mut AnalyzerOrgPolicy_Rule| { &mut m.condition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicy.Rule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicy_Rule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicy_Rule::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicy_Rule { - fn clear(&mut self) { - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.condition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicy_Rule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicy_Rule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicy_Rule_StringValues { - // message fields - pub allowed_values: ::protobuf::RepeatedField<::std::string::String>, - pub denied_values: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicy_Rule_StringValues { - fn default() -> &'a AnalyzerOrgPolicy_Rule_StringValues { - ::default_instance() - } -} - -impl AnalyzerOrgPolicy_Rule_StringValues { - pub fn new() -> AnalyzerOrgPolicy_Rule_StringValues { - ::std::default::Default::default() - } - - // repeated string allowed_values = 1; - - - pub fn get_allowed_values(&self) -> &[::std::string::String] { - &self.allowed_values - } - pub fn clear_allowed_values(&mut self) { - self.allowed_values.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_values = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_values - } - - // Take field - pub fn take_allowed_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_values, ::protobuf::RepeatedField::new()) - } - - // repeated string denied_values = 2; - - - pub fn get_denied_values(&self) -> &[::std::string::String] { - &self.denied_values - } - pub fn clear_denied_values(&mut self) { - self.denied_values.clear(); - } - - // Param is passed by value, moved - pub fn set_denied_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.denied_values = v; - } - - // Mutable pointer to the field. - pub fn mut_denied_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.denied_values - } - - // Take field - pub fn take_denied_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.denied_values, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicy_Rule_StringValues { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_values)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.denied_values)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.allowed_values { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.denied_values { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_values { - os.write_string(1, &v)?; - }; - for v in &self.denied_values { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicy_Rule_StringValues { - AnalyzerOrgPolicy_Rule_StringValues::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_values", - |m: &AnalyzerOrgPolicy_Rule_StringValues| { &m.allowed_values }, - |m: &mut AnalyzerOrgPolicy_Rule_StringValues| { &mut m.allowed_values }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "denied_values", - |m: &AnalyzerOrgPolicy_Rule_StringValues| { &m.denied_values }, - |m: &mut AnalyzerOrgPolicy_Rule_StringValues| { &mut m.denied_values }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicy.Rule.StringValues", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicy_Rule_StringValues { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicy_Rule_StringValues::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicy_Rule_StringValues { - fn clear(&mut self) { - self.allowed_values.clear(); - self.denied_values.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicy_Rule_StringValues { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicy_Rule_StringValues { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicyConstraint { - // message oneof groups - pub constraint_definition: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicyConstraint { - fn default() -> &'a AnalyzerOrgPolicyConstraint { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzerOrgPolicyConstraint_oneof_constraint_definition { - google_defined_constraint(AnalyzerOrgPolicyConstraint_Constraint), - custom_constraint(AnalyzerOrgPolicyConstraint_CustomConstraint), -} - -impl AnalyzerOrgPolicyConstraint { - pub fn new() -> AnalyzerOrgPolicyConstraint { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint google_defined_constraint = 1; - - - pub fn get_google_defined_constraint(&self) -> &AnalyzerOrgPolicyConstraint_Constraint { - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_google_defined_constraint(&mut self) { - self.constraint_definition = ::std::option::Option::None; - } - - pub fn has_google_defined_constraint(&self) -> bool { - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_google_defined_constraint(&mut self, v: AnalyzerOrgPolicyConstraint_Constraint) { - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_google_defined_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint_Constraint { - if let ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(_)) = self.constraint_definition { - } else { - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(AnalyzerOrgPolicyConstraint_Constraint::new())); - } - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_google_defined_constraint(&mut self) -> AnalyzerOrgPolicyConstraint_Constraint { - if self.has_google_defined_constraint() { - match self.constraint_definition.take() { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(v)) => v, - _ => panic!(), - } - } else { - AnalyzerOrgPolicyConstraint_Constraint::new() - } - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint custom_constraint = 2; - - - pub fn get_custom_constraint(&self) -> &AnalyzerOrgPolicyConstraint_CustomConstraint { - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_custom_constraint(&mut self) { - self.constraint_definition = ::std::option::Option::None; - } - - pub fn has_custom_constraint(&self) -> bool { - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_custom_constraint(&mut self, v: AnalyzerOrgPolicyConstraint_CustomConstraint) { - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_custom_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint_CustomConstraint { - if let ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(_)) = self.constraint_definition { - } else { - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(AnalyzerOrgPolicyConstraint_CustomConstraint::new())); - } - match self.constraint_definition { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_custom_constraint(&mut self) -> AnalyzerOrgPolicyConstraint_CustomConstraint { - if self.has_custom_constraint() { - match self.constraint_definition.take() { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(v)) => v, - _ => panic!(), - } - } else { - AnalyzerOrgPolicyConstraint_CustomConstraint::new() - } - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicyConstraint { - fn is_initialized(&self) -> bool { - if let Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(ref v)) = self.constraint_definition { - if !v.is_initialized() { - return false; - } - } - if let Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(ref v)) = self.constraint_definition { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_definition = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.constraint_definition { - match v { - &AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.constraint_definition { - match v { - &AnalyzerOrgPolicyConstraint_oneof_constraint_definition::google_defined_constraint(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AnalyzerOrgPolicyConstraint_oneof_constraint_definition::custom_constraint(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicyConstraint { - AnalyzerOrgPolicyConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzerOrgPolicyConstraint_Constraint>( - "google_defined_constraint", - AnalyzerOrgPolicyConstraint::has_google_defined_constraint, - AnalyzerOrgPolicyConstraint::get_google_defined_constraint, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzerOrgPolicyConstraint_CustomConstraint>( - "custom_constraint", - AnalyzerOrgPolicyConstraint::has_custom_constraint, - AnalyzerOrgPolicyConstraint::get_custom_constraint, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicyConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicyConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicyConstraint::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicyConstraint { - fn clear(&mut self) { - self.constraint_definition = ::std::option::Option::None; - self.constraint_definition = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicyConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicyConstraint_Constraint { - // message fields - pub name: ::std::string::String, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - pub constraint_default: AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault, - // message oneof groups - pub constraint_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicyConstraint_Constraint { - fn default() -> &'a AnalyzerOrgPolicyConstraint_Constraint { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type { - list_constraint(AnalyzerOrgPolicyConstraint_Constraint_ListConstraint), - boolean_constraint(AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint), -} - -impl AnalyzerOrgPolicyConstraint_Constraint { - pub fn new() -> AnalyzerOrgPolicyConstraint_Constraint { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault constraint_default = 4; - - - pub fn get_constraint_default(&self) -> AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { - self.constraint_default - } - pub fn clear_constraint_default(&mut self) { - self.constraint_default = AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_constraint_default(&mut self, v: AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault) { - self.constraint_default = v; - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.ListConstraint list_constraint = 5; - - - pub fn get_list_constraint(&self) -> &AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_list_constraint(&mut self) { - self.constraint_type = ::std::option::Option::None; - } - - pub fn has_list_constraint(&self) -> bool { - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_list_constraint(&mut self, v: AnalyzerOrgPolicyConstraint_Constraint_ListConstraint) { - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_list_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - if let ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(_)) = self.constraint_type { - } else { - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(AnalyzerOrgPolicyConstraint_Constraint_ListConstraint::new())); - } - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_list_constraint(&mut self) -> AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - if self.has_list_constraint() { - match self.constraint_type.take() { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(v)) => v, - _ => panic!(), - } - } else { - AnalyzerOrgPolicyConstraint_Constraint_ListConstraint::new() - } - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint boolean_constraint = 6; - - - pub fn get_boolean_constraint(&self) -> &AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_boolean_constraint(&mut self) { - self.constraint_type = ::std::option::Option::None; - } - - pub fn has_boolean_constraint(&self) -> bool { - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_boolean_constraint(&mut self, v: AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint) { - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_boolean_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - if let ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(_)) = self.constraint_type { - } else { - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint::new())); - } - match self.constraint_type { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_boolean_constraint(&mut self) -> AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - if self.has_boolean_constraint() { - match self.constraint_type.take() { - ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(v)) => v, - _ => panic!(), - } - } else { - AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint::new() - } - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicyConstraint_Constraint { - fn is_initialized(&self) -> bool { - if let Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(ref v)) = self.constraint_type { - if !v.is_initialized() { - return false; - } - } - if let Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(ref v)) = self.constraint_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.constraint_default, 4, &mut self.unknown_fields)? - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_type = ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - if self.constraint_default != AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.constraint_default); - } - if let ::std::option::Option::Some(ref v) = self.constraint_type { - match v { - &AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if self.constraint_default != AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.constraint_default))?; - } - if let ::std::option::Option::Some(ref v) = self.constraint_type { - match v { - &AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::list_constraint(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AnalyzerOrgPolicyConstraint_Constraint_oneof_constraint_type::boolean_constraint(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicyConstraint_Constraint { - AnalyzerOrgPolicyConstraint_Constraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &AnalyzerOrgPolicyConstraint_Constraint| { &m.name }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &AnalyzerOrgPolicyConstraint_Constraint| { &m.display_name }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &AnalyzerOrgPolicyConstraint_Constraint| { &m.description }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "constraint_default", - |m: &AnalyzerOrgPolicyConstraint_Constraint| { &m.constraint_default }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint| { &mut m.constraint_default }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzerOrgPolicyConstraint_Constraint_ListConstraint>( - "list_constraint", - AnalyzerOrgPolicyConstraint_Constraint::has_list_constraint, - AnalyzerOrgPolicyConstraint_Constraint::get_list_constraint, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint>( - "boolean_constraint", - AnalyzerOrgPolicyConstraint_Constraint::has_boolean_constraint, - AnalyzerOrgPolicyConstraint_Constraint::get_boolean_constraint, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicyConstraint.Constraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicyConstraint_Constraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicyConstraint_Constraint::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicyConstraint_Constraint { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.description.clear(); - self.constraint_default = AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED; - self.constraint_type = ::std::option::Option::None; - self.constraint_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicyConstraint_Constraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_Constraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - // message fields - pub supports_in: bool, - pub supports_under: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - fn default() -> &'a AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - ::default_instance() - } -} - -impl AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - pub fn new() -> AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - ::std::default::Default::default() - } - - // bool supports_in = 1; - - - pub fn get_supports_in(&self) -> bool { - self.supports_in - } - pub fn clear_supports_in(&mut self) { - self.supports_in = false; - } - - // Param is passed by value, moved - pub fn set_supports_in(&mut self, v: bool) { - self.supports_in = v; - } - - // bool supports_under = 2; - - - pub fn get_supports_under(&self) -> bool { - self.supports_under - } - pub fn clear_supports_under(&mut self) { - self.supports_under = false; - } - - // Param is passed by value, moved - pub fn set_supports_under(&mut self, v: bool) { - self.supports_under = v; - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.supports_in = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.supports_under = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.supports_in != false { - my_size += 2; - } - if self.supports_under != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.supports_in != false { - os.write_bool(1, self.supports_in)?; - } - if self.supports_under != false { - os.write_bool(2, self.supports_under)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - AnalyzerOrgPolicyConstraint_Constraint_ListConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "supports_in", - |m: &AnalyzerOrgPolicyConstraint_Constraint_ListConstraint| { &m.supports_in }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint_ListConstraint| { &mut m.supports_in }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "supports_under", - |m: &AnalyzerOrgPolicyConstraint_Constraint_ListConstraint| { &m.supports_under }, - |m: &mut AnalyzerOrgPolicyConstraint_Constraint_ListConstraint| { &mut m.supports_under }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicyConstraint.Constraint.ListConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicyConstraint_Constraint_ListConstraint::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - fn clear(&mut self) { - self.supports_in = false; - self.supports_under = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_Constraint_ListConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - fn default() -> &'a AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - ::default_instance() - } -} - -impl AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - pub fn new() -> AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicyConstraint.Constraint.BooleanConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_Constraint_BooleanConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { - CONSTRAINT_DEFAULT_UNSPECIFIED = 0, - ALLOW = 1, - DENY = 2, -} - -impl ::protobuf::ProtobufEnum for AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED), - 1 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::ALLOW), - 2 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::DENY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault] = &[ - AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED, - AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::ALLOW, - AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::DENY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AnalyzerOrgPolicyConstraint.Constraint.ConstraintDefault", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { -} - -impl ::std::default::Default for AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { - fn default() -> Self { - AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_Constraint_ConstraintDefault { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzerOrgPolicyConstraint_CustomConstraint { - // message fields - pub name: ::std::string::String, - pub resource_types: ::protobuf::RepeatedField<::std::string::String>, - pub method_types: ::std::vec::Vec, - pub condition: ::std::string::String, - pub action_type: AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzerOrgPolicyConstraint_CustomConstraint { - fn default() -> &'a AnalyzerOrgPolicyConstraint_CustomConstraint { - ::default_instance() - } -} - -impl AnalyzerOrgPolicyConstraint_CustomConstraint { - pub fn new() -> AnalyzerOrgPolicyConstraint_CustomConstraint { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated string resource_types = 2; - - - pub fn get_resource_types(&self) -> &[::std::string::String] { - &self.resource_types - } - pub fn clear_resource_types(&mut self) { - self.resource_types.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_types(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.resource_types = v; - } - - // Mutable pointer to the field. - pub fn mut_resource_types(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.resource_types - } - - // Take field - pub fn take_resource_types(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.resource_types, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType method_types = 3; - - - pub fn get_method_types(&self) -> &[AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType] { - &self.method_types - } - pub fn clear_method_types(&mut self) { - self.method_types.clear(); - } - - // Param is passed by value, moved - pub fn set_method_types(&mut self, v: ::std::vec::Vec) { - self.method_types = v; - } - - // Mutable pointer to the field. - pub fn mut_method_types(&mut self) -> &mut ::std::vec::Vec { - &mut self.method_types - } - - // Take field - pub fn take_method_types(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.method_types, ::std::vec::Vec::new()) - } - - // string condition = 4; - - - pub fn get_condition(&self) -> &str { - &self.condition - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: ::std::string::String) { - self.condition = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut ::std::string::String { - &mut self.condition - } - - // Take field - pub fn take_condition(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.condition, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType action_type = 5; - - - pub fn get_action_type(&self) -> AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { - self.action_type - } - pub fn clear_action_type(&mut self) { - self.action_type = AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_action_type(&mut self, v: AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType) { - self.action_type = v; - } - - // string display_name = 6; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 7; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzerOrgPolicyConstraint_CustomConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.resource_types)?; - }, - 3 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.method_types, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.condition)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.action_type, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.resource_types { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.method_types { - my_size += ::protobuf::rt::enum_size(3, *value); - }; - if !self.condition.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.condition); - } - if self.action_type != AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.action_type); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.display_name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.description); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.resource_types { - os.write_string(2, &v)?; - }; - for v in &self.method_types { - os.write_enum(3, ::protobuf::ProtobufEnum::value(v))?; - }; - if !self.condition.is_empty() { - os.write_string(4, &self.condition)?; - } - if self.action_type != AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.action_type))?; - } - if !self.display_name.is_empty() { - os.write_string(6, &self.display_name)?; - } - if !self.description.is_empty() { - os.write_string(7, &self.description)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzerOrgPolicyConstraint_CustomConstraint { - AnalyzerOrgPolicyConstraint_CustomConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.name }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_types", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.resource_types }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.resource_types }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "method_types", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.method_types }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.method_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "condition", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.condition }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.condition }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "action_type", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.action_type }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.action_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.display_name }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &AnalyzerOrgPolicyConstraint_CustomConstraint| { &m.description }, - |m: &mut AnalyzerOrgPolicyConstraint_CustomConstraint| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzerOrgPolicyConstraint.CustomConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzerOrgPolicyConstraint_CustomConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzerOrgPolicyConstraint_CustomConstraint::new) - } -} - -impl ::protobuf::Clear for AnalyzerOrgPolicyConstraint_CustomConstraint { - fn clear(&mut self) { - self.name.clear(); - self.resource_types.clear(); - self.method_types.clear(); - self.condition.clear(); - self.action_type = AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED; - self.display_name.clear(); - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzerOrgPolicyConstraint_CustomConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_CustomConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType { - METHOD_TYPE_UNSPECIFIED = 0, - CREATE = 1, - UPDATE = 2, - DELETE = 3, -} - -impl ::protobuf::ProtobufEnum for AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::METHOD_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::CREATE), - 2 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::UPDATE), - 3 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::DELETE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType] = &[ - AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::METHOD_TYPE_UNSPECIFIED, - AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::CREATE, - AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::UPDATE, - AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::DELETE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType { -} - -impl ::std::default::Default for AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType { - fn default() -> Self { - AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType::METHOD_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_CustomConstraint_MethodType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { - ACTION_TYPE_UNSPECIFIED = 0, - ALLOW = 1, - DENY = 2, -} - -impl ::protobuf::ProtobufEnum for AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ALLOW), - 2 => ::std::option::Option::Some(AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::DENY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType] = &[ - AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED, - AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ALLOW, - AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::DENY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AnalyzerOrgPolicyConstraint.CustomConstraint.ActionType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { -} - -impl ::std::default::Default for AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { - fn default() -> Self { - AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType::ACTION_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzerOrgPolicyConstraint_CustomConstraint_ActionType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPoliciesRequest { - // message fields - pub scope: ::std::string::String, - pub constraint: ::std::string::String, - pub filter: ::std::string::String, - pub page_token: ::std::string::String, - // message oneof groups - pub _page_size: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPoliciesRequest { - fn default() -> &'a AnalyzeOrgPoliciesRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzeOrgPoliciesRequest_oneof__page_size { - page_size(i32), -} - -impl AnalyzeOrgPoliciesRequest { - pub fn new() -> AnalyzeOrgPoliciesRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // string constraint = 2; - - - pub fn get_constraint(&self) -> &str { - &self.constraint - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: ::std::string::String) { - self.constraint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut ::std::string::String { - &mut self.constraint - } - - // Take field - pub fn take_constraint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.constraint, ::std::string::String::new()) - } - - // string filter = 3; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(v)) => v, - _ => 0, - } - } - pub fn clear_page_size(&mut self) { - self._page_size = ::std::option::Option::None; - } - - pub fn has_page_size(&self) -> bool { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self._page_size = ::std::option::Option::Some(AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(v)) - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPoliciesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._page_size = ::std::option::Option::Some(AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(is.read_int32()?)); - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if !self.constraint.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.constraint); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filter); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if !self.constraint.is_empty() { - os.write_string(2, &self.constraint)?; - } - if !self.filter.is_empty() { - os.write_string(3, &self.filter)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPoliciesRequest_oneof__page_size::page_size(v) => { - os.write_int32(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPoliciesRequest { - AnalyzeOrgPoliciesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &AnalyzeOrgPoliciesRequest| { &m.scope }, - |m: &mut AnalyzeOrgPoliciesRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "constraint", - |m: &AnalyzeOrgPoliciesRequest| { &m.constraint }, - |m: &mut AnalyzeOrgPoliciesRequest| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &AnalyzeOrgPoliciesRequest| { &m.filter }, - |m: &mut AnalyzeOrgPoliciesRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "page_size", - AnalyzeOrgPoliciesRequest::has_page_size, - AnalyzeOrgPoliciesRequest::get_page_size, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &AnalyzeOrgPoliciesRequest| { &m.page_token }, - |m: &mut AnalyzeOrgPoliciesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPoliciesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPoliciesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPoliciesRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPoliciesRequest { - fn clear(&mut self) { - self.scope.clear(); - self.constraint.clear(); - self.filter.clear(); - self._page_size = ::std::option::Option::None; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPoliciesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPoliciesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPoliciesResponse { - // message fields - pub org_policy_results: ::protobuf::RepeatedField, - pub constraint: ::protobuf::SingularPtrField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPoliciesResponse { - fn default() -> &'a AnalyzeOrgPoliciesResponse { - ::default_instance() - } -} - -impl AnalyzeOrgPoliciesResponse { - pub fn new() -> AnalyzeOrgPoliciesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1; - - - pub fn get_org_policy_results(&self) -> &[AnalyzeOrgPoliciesResponse_OrgPolicyResult] { - &self.org_policy_results - } - pub fn clear_org_policy_results(&mut self) { - self.org_policy_results.clear(); - } - - // Param is passed by value, moved - pub fn set_org_policy_results(&mut self, v: ::protobuf::RepeatedField) { - self.org_policy_results = v; - } - - // Mutable pointer to the field. - pub fn mut_org_policy_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.org_policy_results - } - - // Take field - pub fn take_org_policy_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.org_policy_results, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - - - pub fn get_constraint(&self) -> &AnalyzerOrgPolicyConstraint { - self.constraint.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - pub fn has_constraint(&self) -> bool { - self.constraint.is_some() - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: AnalyzerOrgPolicyConstraint) { - self.constraint = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint { - if self.constraint.is_none() { - self.constraint.set_default(); - } - self.constraint.as_mut().unwrap() - } - - // Take field - pub fn take_constraint(&mut self) -> AnalyzerOrgPolicyConstraint { - self.constraint.take().unwrap_or_else(|| AnalyzerOrgPolicyConstraint::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPoliciesResponse { - fn is_initialized(&self) -> bool { - for v in &self.org_policy_results { - if !v.is_initialized() { - return false; - } - }; - for v in &self.constraint { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.org_policy_results)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.org_policy_results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.constraint.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.org_policy_results { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.constraint.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.next_page_token.is_empty() { - os.write_string(3, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPoliciesResponse { - AnalyzeOrgPoliciesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "org_policy_results", - |m: &AnalyzeOrgPoliciesResponse| { &m.org_policy_results }, - |m: &mut AnalyzeOrgPoliciesResponse| { &mut m.org_policy_results }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "constraint", - |m: &AnalyzeOrgPoliciesResponse| { &m.constraint }, - |m: &mut AnalyzeOrgPoliciesResponse| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &AnalyzeOrgPoliciesResponse| { &m.next_page_token }, - |m: &mut AnalyzeOrgPoliciesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPoliciesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPoliciesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPoliciesResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPoliciesResponse { - fn clear(&mut self) { - self.org_policy_results.clear(); - self.constraint.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPoliciesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPoliciesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPoliciesResponse_OrgPolicyResult { - // message fields - pub consolidated_policy: ::protobuf::SingularPtrField, - pub policy_bundle: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPoliciesResponse_OrgPolicyResult { - fn default() -> &'a AnalyzeOrgPoliciesResponse_OrgPolicyResult { - ::default_instance() - } -} - -impl AnalyzeOrgPoliciesResponse_OrgPolicyResult { - pub fn new() -> AnalyzeOrgPoliciesResponse_OrgPolicyResult { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1; - - - pub fn get_consolidated_policy(&self) -> &AnalyzerOrgPolicy { - self.consolidated_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_consolidated_policy(&mut self) { - self.consolidated_policy.clear(); - } - - pub fn has_consolidated_policy(&self) -> bool { - self.consolidated_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_consolidated_policy(&mut self, v: AnalyzerOrgPolicy) { - self.consolidated_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consolidated_policy(&mut self) -> &mut AnalyzerOrgPolicy { - if self.consolidated_policy.is_none() { - self.consolidated_policy.set_default(); - } - self.consolidated_policy.as_mut().unwrap() - } - - // Take field - pub fn take_consolidated_policy(&mut self) -> AnalyzerOrgPolicy { - self.consolidated_policy.take().unwrap_or_else(|| AnalyzerOrgPolicy::new()) - } - - // repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2; - - - pub fn get_policy_bundle(&self) -> &[AnalyzerOrgPolicy] { - &self.policy_bundle - } - pub fn clear_policy_bundle(&mut self) { - self.policy_bundle.clear(); - } - - // Param is passed by value, moved - pub fn set_policy_bundle(&mut self, v: ::protobuf::RepeatedField) { - self.policy_bundle = v; - } - - // Mutable pointer to the field. - pub fn mut_policy_bundle(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policy_bundle - } - - // Take field - pub fn take_policy_bundle(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policy_bundle, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPoliciesResponse_OrgPolicyResult { - fn is_initialized(&self) -> bool { - for v in &self.consolidated_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.policy_bundle { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.consolidated_policy)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policy_bundle)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.consolidated_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.policy_bundle { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.consolidated_policy.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.policy_bundle { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPoliciesResponse_OrgPolicyResult { - AnalyzeOrgPoliciesResponse_OrgPolicyResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consolidated_policy", - |m: &AnalyzeOrgPoliciesResponse_OrgPolicyResult| { &m.consolidated_policy }, - |m: &mut AnalyzeOrgPoliciesResponse_OrgPolicyResult| { &mut m.consolidated_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy_bundle", - |m: &AnalyzeOrgPoliciesResponse_OrgPolicyResult| { &m.policy_bundle }, - |m: &mut AnalyzeOrgPoliciesResponse_OrgPolicyResult| { &mut m.policy_bundle }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPoliciesResponse.OrgPolicyResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPoliciesResponse_OrgPolicyResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPoliciesResponse_OrgPolicyResult::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPoliciesResponse_OrgPolicyResult { - fn clear(&mut self) { - self.consolidated_policy.clear(); - self.policy_bundle.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPoliciesResponse_OrgPolicyResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPoliciesResponse_OrgPolicyResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedContainersRequest { - // message fields - pub scope: ::std::string::String, - pub constraint: ::std::string::String, - pub filter: ::std::string::String, - pub page_token: ::std::string::String, - // message oneof groups - pub _page_size: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedContainersRequest { - fn default() -> &'a AnalyzeOrgPolicyGovernedContainersRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size { - page_size(i32), -} - -impl AnalyzeOrgPolicyGovernedContainersRequest { - pub fn new() -> AnalyzeOrgPolicyGovernedContainersRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // string constraint = 2; - - - pub fn get_constraint(&self) -> &str { - &self.constraint - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: ::std::string::String) { - self.constraint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut ::std::string::String { - &mut self.constraint - } - - // Take field - pub fn take_constraint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.constraint, ::std::string::String::new()) - } - - // string filter = 3; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(v)) => v, - _ => 0, - } - } - pub fn clear_page_size(&mut self) { - self._page_size = ::std::option::Option::None; - } - - pub fn has_page_size(&self) -> bool { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self._page_size = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(v)) - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedContainersRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._page_size = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(is.read_int32()?)); - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if !self.constraint.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.constraint); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filter); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if !self.constraint.is_empty() { - os.write_string(2, &self.constraint)?; - } - if !self.filter.is_empty() { - os.write_string(3, &self.filter)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPolicyGovernedContainersRequest_oneof__page_size::page_size(v) => { - os.write_int32(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedContainersRequest { - AnalyzeOrgPolicyGovernedContainersRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &AnalyzeOrgPolicyGovernedContainersRequest| { &m.scope }, - |m: &mut AnalyzeOrgPolicyGovernedContainersRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "constraint", - |m: &AnalyzeOrgPolicyGovernedContainersRequest| { &m.constraint }, - |m: &mut AnalyzeOrgPolicyGovernedContainersRequest| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &AnalyzeOrgPolicyGovernedContainersRequest| { &m.filter }, - |m: &mut AnalyzeOrgPolicyGovernedContainersRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "page_size", - AnalyzeOrgPolicyGovernedContainersRequest::has_page_size, - AnalyzeOrgPolicyGovernedContainersRequest::get_page_size, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &AnalyzeOrgPolicyGovernedContainersRequest| { &m.page_token }, - |m: &mut AnalyzeOrgPolicyGovernedContainersRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedContainersRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedContainersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedContainersRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedContainersRequest { - fn clear(&mut self) { - self.scope.clear(); - self.constraint.clear(); - self.filter.clear(); - self._page_size = ::std::option::Option::None; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedContainersRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedContainersRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedContainersResponse { - // message fields - pub governed_containers: ::protobuf::RepeatedField, - pub constraint: ::protobuf::SingularPtrField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedContainersResponse { - fn default() -> &'a AnalyzeOrgPolicyGovernedContainersResponse { - ::default_instance() - } -} - -impl AnalyzeOrgPolicyGovernedContainersResponse { - pub fn new() -> AnalyzeOrgPolicyGovernedContainersResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer governed_containers = 1; - - - pub fn get_governed_containers(&self) -> &[AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer] { - &self.governed_containers - } - pub fn clear_governed_containers(&mut self) { - self.governed_containers.clear(); - } - - // Param is passed by value, moved - pub fn set_governed_containers(&mut self, v: ::protobuf::RepeatedField) { - self.governed_containers = v; - } - - // Mutable pointer to the field. - pub fn mut_governed_containers(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.governed_containers - } - - // Take field - pub fn take_governed_containers(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.governed_containers, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - - - pub fn get_constraint(&self) -> &AnalyzerOrgPolicyConstraint { - self.constraint.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - pub fn has_constraint(&self) -> bool { - self.constraint.is_some() - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: AnalyzerOrgPolicyConstraint) { - self.constraint = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint { - if self.constraint.is_none() { - self.constraint.set_default(); - } - self.constraint.as_mut().unwrap() - } - - // Take field - pub fn take_constraint(&mut self) -> AnalyzerOrgPolicyConstraint { - self.constraint.take().unwrap_or_else(|| AnalyzerOrgPolicyConstraint::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedContainersResponse { - fn is_initialized(&self) -> bool { - for v in &self.governed_containers { - if !v.is_initialized() { - return false; - } - }; - for v in &self.constraint { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.governed_containers)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.governed_containers { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.constraint.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.governed_containers { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.constraint.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.next_page_token.is_empty() { - os.write_string(3, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedContainersResponse { - AnalyzeOrgPolicyGovernedContainersResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "governed_containers", - |m: &AnalyzeOrgPolicyGovernedContainersResponse| { &m.governed_containers }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse| { &mut m.governed_containers }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "constraint", - |m: &AnalyzeOrgPolicyGovernedContainersResponse| { &m.constraint }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &AnalyzeOrgPolicyGovernedContainersResponse| { &m.next_page_token }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedContainersResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedContainersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedContainersResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedContainersResponse { - fn clear(&mut self) { - self.governed_containers.clear(); - self.constraint.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedContainersResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedContainersResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - // message fields - pub full_resource_name: ::std::string::String, - pub parent: ::std::string::String, - pub consolidated_policy: ::protobuf::SingularPtrField, - pub policy_bundle: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - fn default() -> &'a AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - ::default_instance() - } -} - -impl AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - pub fn new() -> AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - ::std::default::Default::default() - } - - // string full_resource_name = 1; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } - - // string parent = 2; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; - - - pub fn get_consolidated_policy(&self) -> &AnalyzerOrgPolicy { - self.consolidated_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_consolidated_policy(&mut self) { - self.consolidated_policy.clear(); - } - - pub fn has_consolidated_policy(&self) -> bool { - self.consolidated_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_consolidated_policy(&mut self, v: AnalyzerOrgPolicy) { - self.consolidated_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consolidated_policy(&mut self) -> &mut AnalyzerOrgPolicy { - if self.consolidated_policy.is_none() { - self.consolidated_policy.set_default(); - } - self.consolidated_policy.as_mut().unwrap() - } - - // Take field - pub fn take_consolidated_policy(&mut self) -> AnalyzerOrgPolicy { - self.consolidated_policy.take().unwrap_or_else(|| AnalyzerOrgPolicy::new()) - } - - // repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - - - pub fn get_policy_bundle(&self) -> &[AnalyzerOrgPolicy] { - &self.policy_bundle - } - pub fn clear_policy_bundle(&mut self) { - self.policy_bundle.clear(); - } - - // Param is passed by value, moved - pub fn set_policy_bundle(&mut self, v: ::protobuf::RepeatedField) { - self.policy_bundle = v; - } - - // Mutable pointer to the field. - pub fn mut_policy_bundle(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policy_bundle - } - - // Take field - pub fn take_policy_bundle(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policy_bundle, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - fn is_initialized(&self) -> bool { - for v in &self.consolidated_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.policy_bundle { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.consolidated_policy)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policy_bundle)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.full_resource_name); - } - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.parent); - } - if let Some(ref v) = self.consolidated_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.policy_bundle { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.full_resource_name.is_empty() { - os.write_string(1, &self.full_resource_name)?; - } - if !self.parent.is_empty() { - os.write_string(2, &self.parent)?; - } - if let Some(ref v) = self.consolidated_policy.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.policy_bundle { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &m.full_resource_name }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &mut m.full_resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &m.parent }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consolidated_policy", - |m: &AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &m.consolidated_policy }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &mut m.consolidated_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy_bundle", - |m: &AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &m.policy_bundle }, - |m: &mut AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer| { &mut m.policy_bundle }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - fn clear(&mut self) { - self.full_resource_name.clear(); - self.parent.clear(); - self.consolidated_policy.clear(); - self.policy_bundle.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedAssetsRequest { - // message fields - pub scope: ::std::string::String, - pub constraint: ::std::string::String, - pub filter: ::std::string::String, - pub page_token: ::std::string::String, - // message oneof groups - pub _page_size: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedAssetsRequest { - fn default() -> &'a AnalyzeOrgPolicyGovernedAssetsRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size { - page_size(i32), -} - -impl AnalyzeOrgPolicyGovernedAssetsRequest { - pub fn new() -> AnalyzeOrgPolicyGovernedAssetsRequest { - ::std::default::Default::default() - } - - // string scope = 1; - - - pub fn get_scope(&self) -> &str { - &self.scope - } - pub fn clear_scope(&mut self) { - self.scope.clear(); - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: ::std::string::String) { - self.scope = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_scope(&mut self) -> &mut ::std::string::String { - &mut self.scope - } - - // Take field - pub fn take_scope(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.scope, ::std::string::String::new()) - } - - // string constraint = 2; - - - pub fn get_constraint(&self) -> &str { - &self.constraint - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: ::std::string::String) { - self.constraint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut ::std::string::String { - &mut self.constraint - } - - // Take field - pub fn take_constraint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.constraint, ::std::string::String::new()) - } - - // string filter = 3; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 4; - - - pub fn get_page_size(&self) -> i32 { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(v)) => v, - _ => 0, - } - } - pub fn clear_page_size(&mut self) { - self._page_size = ::std::option::Option::None; - } - - pub fn has_page_size(&self) -> bool { - match self._page_size { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self._page_size = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(v)) - } - - // string page_token = 5; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.scope)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._page_size = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(is.read_int32()?)); - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.scope.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.scope); - } - if !self.constraint.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.constraint); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filter); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.page_token); - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.scope.is_empty() { - os.write_string(1, &self.scope)?; - } - if !self.constraint.is_empty() { - os.write_string(2, &self.constraint)?; - } - if !self.filter.is_empty() { - os.write_string(3, &self.filter)?; - } - if !self.page_token.is_empty() { - os.write_string(5, &self.page_token)?; - } - if let ::std::option::Option::Some(ref v) = self._page_size { - match v { - &AnalyzeOrgPolicyGovernedAssetsRequest_oneof__page_size::page_size(v) => { - os.write_int32(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedAssetsRequest { - AnalyzeOrgPolicyGovernedAssetsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scope", - |m: &AnalyzeOrgPolicyGovernedAssetsRequest| { &m.scope }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsRequest| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "constraint", - |m: &AnalyzeOrgPolicyGovernedAssetsRequest| { &m.constraint }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsRequest| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &AnalyzeOrgPolicyGovernedAssetsRequest| { &m.filter }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "page_size", - AnalyzeOrgPolicyGovernedAssetsRequest::has_page_size, - AnalyzeOrgPolicyGovernedAssetsRequest::get_page_size, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &AnalyzeOrgPolicyGovernedAssetsRequest| { &m.page_token }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedAssetsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedAssetsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedAssetsRequest::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedAssetsRequest { - fn clear(&mut self) { - self.scope.clear(); - self.constraint.clear(); - self.filter.clear(); - self._page_size = ::std::option::Option::None; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedAssetsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedAssetsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedAssetsResponse { - // message fields - pub governed_assets: ::protobuf::RepeatedField, - pub constraint: ::protobuf::SingularPtrField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedAssetsResponse { - fn default() -> &'a AnalyzeOrgPolicyGovernedAssetsResponse { - ::default_instance() - } -} - -impl AnalyzeOrgPolicyGovernedAssetsResponse { - pub fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1; - - - pub fn get_governed_assets(&self) -> &[AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset] { - &self.governed_assets - } - pub fn clear_governed_assets(&mut self) { - self.governed_assets.clear(); - } - - // Param is passed by value, moved - pub fn set_governed_assets(&mut self, v: ::protobuf::RepeatedField) { - self.governed_assets = v; - } - - // Mutable pointer to the field. - pub fn mut_governed_assets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.governed_assets - } - - // Take field - pub fn take_governed_assets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.governed_assets, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2; - - - pub fn get_constraint(&self) -> &AnalyzerOrgPolicyConstraint { - self.constraint.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - pub fn has_constraint(&self) -> bool { - self.constraint.is_some() - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: AnalyzerOrgPolicyConstraint) { - self.constraint = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut AnalyzerOrgPolicyConstraint { - if self.constraint.is_none() { - self.constraint.set_default(); - } - self.constraint.as_mut().unwrap() - } - - // Take field - pub fn take_constraint(&mut self) -> AnalyzerOrgPolicyConstraint { - self.constraint.take().unwrap_or_else(|| AnalyzerOrgPolicyConstraint::new()) - } - - // string next_page_token = 3; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse { - fn is_initialized(&self) -> bool { - for v in &self.governed_assets { - if !v.is_initialized() { - return false; - } - }; - for v in &self.constraint { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.governed_assets)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.governed_assets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.constraint.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.governed_assets { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.constraint.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.next_page_token.is_empty() { - os.write_string(3, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse { - AnalyzeOrgPolicyGovernedAssetsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "governed_assets", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse| { &m.governed_assets }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse| { &mut m.governed_assets }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "constraint", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse| { &m.constraint }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse| { &m.next_page_token }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedAssetsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedAssetsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedAssetsResponse::new) - } -} - -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedAssetsResponse { - fn clear(&mut self) { - self.governed_assets.clear(); - self.constraint.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedAssetsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedAssetsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - // message fields - pub full_resource_name: ::std::string::String, - pub parent: ::std::string::String, - pub project: ::std::string::String, - pub folders: ::protobuf::RepeatedField<::std::string::String>, - pub organization: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - fn default() -> &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - ::default_instance() - } -} - -impl AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - pub fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - ::std::default::Default::default() - } - - // string full_resource_name = 1; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } - - // string parent = 2; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string project = 5; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // repeated string folders = 6; - - - pub fn get_folders(&self) -> &[::std::string::String] { - &self.folders - } - pub fn clear_folders(&mut self) { - self.folders.clear(); - } - - // Param is passed by value, moved - pub fn set_folders(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.folders = v; - } - - // Mutable pointer to the field. - pub fn mut_folders(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.folders - } - - // Take field - pub fn take_folders(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.folders, ::protobuf::RepeatedField::new()) - } - - // string organization = 7; - - - pub fn get_organization(&self) -> &str { - &self.organization - } - pub fn clear_organization(&mut self) { - self.organization.clear(); - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ::std::string::String) { - self.organization = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_organization(&mut self) -> &mut ::std::string::String { - &mut self.organization - } - - // Take field - pub fn take_organization(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.organization, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.folders)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.organization)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.assets.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.full_resource_name); - } - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.parent); - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.project); - } - for value in &self.folders { - my_size += ::protobuf::rt::string_size(6, &value); + for value in &self.assets { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if !self.organization.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.organization); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.full_resource_name.is_empty() { - os.write_string(1, &self.full_resource_name)?; - } - if !self.parent.is_empty() { - os.write_string(2, &self.parent)?; - } - if !self.project.is_empty() { - os.write_string(5, &self.project)?; - } - for v in &self.folders { - os.write_string(6, &v)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.assets { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - if !self.organization.is_empty() { - os.write_string(7, &self.organization)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource::new() + fn new() -> BatchGetAssetsHistoryResponse { + BatchGetAssetsHistoryResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &m.full_resource_name }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &mut m.full_resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &m.parent }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &m.project }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "folders", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &m.folders }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &mut m.folders }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "organization", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &m.organization }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource| { &mut m.organization }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.assets.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource::new) + fn default_instance() -> &'static BatchGetAssetsHistoryResponse { + static instance: BatchGetAssetsHistoryResponse = BatchGetAssetsHistoryResponse { + assets: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - fn clear(&mut self) { - self.full_resource_name.clear(); - self.parent.clear(); - self.project.clear(); - self.folders.clear(); - self.organization.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BatchGetAssetsHistoryResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BatchGetAssetsHistoryResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { +impl ::std::fmt::Display for BatchGetAssetsHistoryResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for BatchGetAssetsHistoryResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - // message fields - pub attached_resource: ::std::string::String, - pub policy: ::protobuf::SingularPtrField, - pub project: ::std::string::String, - pub folders: ::protobuf::RepeatedField<::std::string::String>, - pub organization: ::std::string::String, +/// Output configuration for export assets destination. +// @@protoc_insertion_point(message:google.cloud.asset.v1.OutputConfig) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct OutputConfig { + // message oneof groups + pub destination: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.OutputConfig.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - fn default() -> &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - ::default_instance() +impl<'a> ::std::default::Default for &'a OutputConfig { + fn default() -> &'a OutputConfig { + ::default_instance() } } -impl AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - pub fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { +impl OutputConfig { + pub fn new() -> OutputConfig { ::std::default::Default::default() } - // string attached_resource = 1; - - - pub fn get_attached_resource(&self) -> &str { - &self.attached_resource - } - pub fn clear_attached_resource(&mut self) { - self.attached_resource.clear(); - } - - // Param is passed by value, moved - pub fn set_attached_resource(&mut self, v: ::std::string::String) { - self.attached_resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_attached_resource(&mut self) -> &mut ::std::string::String { - &mut self.attached_resource - } + // .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - // Take field - pub fn take_attached_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.attached_resource, ::std::string::String::new()) + pub fn gcs_destination(&self) -> &GcsDestination { + match self.destination { + ::std::option::Option::Some(output_config::Destination::GcsDestination(ref v)) => v, + _ => ::default_instance(), + } } - // .google.iam.v1.Policy policy = 2; - - - pub fn get_policy(&self) -> &super::policy::Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); + pub fn clear_gcs_destination(&mut self) { + self.destination = ::std::option::Option::None; } - pub fn has_policy(&self) -> bool { - self.policy.is_some() + pub fn has_gcs_destination(&self) -> bool { + match self.destination { + ::std::option::Option::Some(output_config::Destination::GcsDestination(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_policy(&mut self, v: super::policy::Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); + pub fn set_gcs_destination(&mut self, v: GcsDestination) { + self.destination = ::std::option::Option::Some(output_config::Destination::GcsDestination(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut super::policy::Policy { - if self.policy.is_none() { - self.policy.set_default(); + pub fn mut_gcs_destination(&mut self) -> &mut GcsDestination { + if let ::std::option::Option::Some(output_config::Destination::GcsDestination(_)) = self.destination { + } else { + self.destination = ::std::option::Option::Some(output_config::Destination::GcsDestination(GcsDestination::new())); + } + match self.destination { + ::std::option::Option::Some(output_config::Destination::GcsDestination(ref mut v)) => v, + _ => panic!(), } - self.policy.as_mut().unwrap() } // Take field - pub fn take_policy(&mut self) -> super::policy::Policy { - self.policy.take().unwrap_or_else(|| super::policy::Policy::new()) - } - - // string project = 5; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); + pub fn take_gcs_destination(&mut self) -> GcsDestination { + if self.has_gcs_destination() { + match self.destination.take() { + ::std::option::Option::Some(output_config::Destination::GcsDestination(v)) => v, + _ => panic!(), + } + } else { + GcsDestination::new() + } } - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } + // .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project + pub fn bigquery_destination(&self) -> &BigQueryDestination { + match self.destination { + ::std::option::Option::Some(output_config::Destination::BigqueryDestination(ref v)) => v, + _ => ::default_instance(), + } } - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) + pub fn clear_bigquery_destination(&mut self) { + self.destination = ::std::option::Option::None; } - // repeated string folders = 6; - - - pub fn get_folders(&self) -> &[::std::string::String] { - &self.folders - } - pub fn clear_folders(&mut self) { - self.folders.clear(); + pub fn has_bigquery_destination(&self) -> bool { + match self.destination { + ::std::option::Option::Some(output_config::Destination::BigqueryDestination(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_folders(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.folders = v; + pub fn set_bigquery_destination(&mut self, v: BigQueryDestination) { + self.destination = ::std::option::Option::Some(output_config::Destination::BigqueryDestination(v)) } // Mutable pointer to the field. - pub fn mut_folders(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.folders + pub fn mut_bigquery_destination(&mut self) -> &mut BigQueryDestination { + if let ::std::option::Option::Some(output_config::Destination::BigqueryDestination(_)) = self.destination { + } else { + self.destination = ::std::option::Option::Some(output_config::Destination::BigqueryDestination(BigQueryDestination::new())); + } + match self.destination { + ::std::option::Option::Some(output_config::Destination::BigqueryDestination(ref mut v)) => v, + _ => panic!(), + } } // Take field - pub fn take_folders(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.folders, ::protobuf::RepeatedField::new()) - } - - // string organization = 7; - - - pub fn get_organization(&self) -> &str { - &self.organization - } - pub fn clear_organization(&mut self) { - self.organization.clear(); - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ::std::string::String) { - self.organization = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_organization(&mut self) -> &mut ::std::string::String { - &mut self.organization + pub fn take_bigquery_destination(&mut self) -> BigQueryDestination { + if self.has_bigquery_destination() { + match self.destination.take() { + ::std::option::Option::Some(output_config::Destination::BigqueryDestination(v)) => v, + _ => panic!(), + } + } else { + BigQueryDestination::new() + } } - // Take field - pub fn take_organization(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.organization, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, GcsDestination>( + "gcs_destination", + OutputConfig::has_gcs_destination, + OutputConfig::gcs_destination, + OutputConfig::mut_gcs_destination, + OutputConfig::set_gcs_destination, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, BigQueryDestination>( + "bigquery_destination", + OutputConfig::has_bigquery_destination, + OutputConfig::bigquery_destination, + OutputConfig::mut_bigquery_destination, + OutputConfig::set_bigquery_destination, + )); + oneofs.push(output_config::Destination::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "OutputConfig", + fields, + oneofs, + ) } } -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { +impl ::protobuf::Message for OutputConfig { + const NAME: &'static str = "OutputConfig"; + fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.attached_resource)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.destination = ::std::option::Option::Some(output_config::Destination::GcsDestination(is.read_message()?)); }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + 18 => { + self.destination = ::std::option::Option::Some(output_config::Destination::BigqueryDestination(is.read_message()?)); }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.folders)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.organization)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -21671,382 +883,475 @@ impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamP // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.attached_resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.attached_resource); - } - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.project); - } - for value in &self.folders { - my_size += ::protobuf::rt::string_size(6, &value); - }; - if !self.organization.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.organization); + if let ::std::option::Option::Some(ref v) = self.destination { + match v { + &output_config::Destination::GcsDestination(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &output_config::Destination::BigqueryDestination(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.attached_resource.is_empty() { - os.write_string(1, &self.attached_resource)?; - } - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.project.is_empty() { - os.write_string(5, &self.project)?; - } - for v in &self.folders { - os.write_string(6, &v)?; - }; - if !self.organization.is_empty() { - os.write_string(7, &self.organization)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let ::std::option::Option::Some(ref v) = self.destination { + match v { + &output_config::Destination::GcsDestination(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }, + &output_config::Destination::BigqueryDestination(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> OutputConfig { + OutputConfig::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn clear(&mut self) { + self.destination = ::std::option::Option::None; + self.destination = ::std::option::Option::None; + self.special_fields.clear(); } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn default_instance() -> &'static OutputConfig { + static instance: OutputConfig = OutputConfig { + destination: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy::new() +impl ::protobuf::MessageFull for OutputConfig { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("OutputConfig").unwrap()).clone() } +} - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "attached_resource", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &m.attached_resource }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &mut m.attached_resource }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &m.policy }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &mut m.policy }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &m.project }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "folders", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &m.folders }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &mut m.folders }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "organization", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &m.organization }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy| { &mut m.organization }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy", - fields, - file_descriptor_proto() - ) - }) +impl ::std::fmt::Display for OutputConfig { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy::new) - } +impl ::protobuf::reflect::ProtobufValue for OutputConfig { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - fn clear(&mut self) { - self.attached_resource.clear(); - self.policy.clear(); - self.project.clear(); - self.folders.clear(); - self.organization.clear(); - self.unknown_fields.clear(); +/// Nested message and enums of message `OutputConfig` +pub mod output_config { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.cloud.asset.v1.OutputConfig.destination) + pub enum Destination { + // @@protoc_insertion_point(oneof_field:google.cloud.asset.v1.OutputConfig.gcs_destination) + GcsDestination(super::GcsDestination), + // @@protoc_insertion_point(oneof_field:google.cloud.asset.v1.OutputConfig.bigquery_destination) + BigqueryDestination(super::BigQueryDestination), } -} -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::protobuf::Oneof for Destination { + } + + impl ::protobuf::OneofFull for Destination { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("destination").unwrap()).clone() + } } -} -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl Destination { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("destination") + } } } -#[derive(PartialEq,Clone,Default)] -pub struct AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - // message fields - pub consolidated_policy: ::protobuf::SingularPtrField, - pub policy_bundle: ::protobuf::RepeatedField, +/// A Cloud Storage location. +// @@protoc_insertion_point(message:google.cloud.asset.v1.GcsDestination) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GcsDestination { // message oneof groups - pub governed_asset: ::std::option::Option, + pub object_uri: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.GcsDestination.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - fn default() -> &'a AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - ::default_instance() +impl<'a> ::std::default::Default for &'a GcsDestination { + fn default() -> &'a GcsDestination { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset { - governed_resource(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource), - governed_iam_policy(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy), -} - -impl AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - pub fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { +impl GcsDestination { + pub fn new() -> GcsDestination { ::std::default::Default::default() } - // .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1; - + // string uri = 1; - pub fn get_governed_resource(&self) -> &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(ref v)) => v, - _ => ::default_instance(), + pub fn uri(&self) -> &str { + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::Uri(ref v)) => v, + _ => "", } } - pub fn clear_governed_resource(&mut self) { - self.governed_asset = ::std::option::Option::None; + + pub fn clear_uri(&mut self) { + self.object_uri = ::std::option::Option::None; } - pub fn has_governed_resource(&self) -> bool { - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(..)) => true, + pub fn has_uri(&self) -> bool { + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::Uri(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_governed_resource(&mut self, v: AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource) { - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(v)) + pub fn set_uri(&mut self, v: ::std::string::String) { + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::Uri(v)) } // Mutable pointer to the field. - pub fn mut_governed_resource(&mut self) -> &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - if let ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(_)) = self.governed_asset { + pub fn mut_uri(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(gcs_destination::Object_uri::Uri(_)) = self.object_uri { } else { - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource::new())); + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::Uri(::std::string::String::new())); } - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(ref mut v)) => v, + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::Uri(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_governed_resource(&mut self) -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource { - if self.has_governed_resource() { - match self.governed_asset.take() { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(v)) => v, + pub fn take_uri(&mut self) -> ::std::string::String { + if self.has_uri() { + match self.object_uri.take() { + ::std::option::Option::Some(gcs_destination::Object_uri::Uri(v)) => v, _ => panic!(), } } else { - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource::new() + ::std::string::String::new() } } - // .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2; - + // string uri_prefix = 2; - pub fn get_governed_iam_policy(&self) -> &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(ref v)) => v, - _ => ::default_instance(), + pub fn uri_prefix(&self) -> &str { + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(ref v)) => v, + _ => "", } } - pub fn clear_governed_iam_policy(&mut self) { - self.governed_asset = ::std::option::Option::None; + + pub fn clear_uri_prefix(&mut self) { + self.object_uri = ::std::option::Option::None; } - pub fn has_governed_iam_policy(&self) -> bool { - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(..)) => true, + pub fn has_uri_prefix(&self) -> bool { + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_governed_iam_policy(&mut self, v: AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy) { - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(v)) + pub fn set_uri_prefix(&mut self, v: ::std::string::String) { + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(v)) } // Mutable pointer to the field. - pub fn mut_governed_iam_policy(&mut self) -> &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - if let ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(_)) = self.governed_asset { + pub fn mut_uri_prefix(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(_)) = self.object_uri { } else { - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy::new())); + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(::std::string::String::new())); } - match self.governed_asset { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(ref mut v)) => v, + match self.object_uri { + ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_governed_iam_policy(&mut self) -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy { - if self.has_governed_iam_policy() { - match self.governed_asset.take() { - ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(v)) => v, + pub fn take_uri_prefix(&mut self) -> ::std::string::String { + if self.has_uri_prefix() { + match self.object_uri.take() { + ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(v)) => v, _ => panic!(), } } else { - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy::new() + ::std::string::String::new() } } - // .google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "uri", + GcsDestination::has_uri, + GcsDestination::uri, + GcsDestination::set_uri, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "uri_prefix", + GcsDestination::has_uri_prefix, + GcsDestination::uri_prefix, + GcsDestination::set_uri_prefix, + )); + oneofs.push(gcs_destination::Object_uri::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GcsDestination", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for GcsDestination { + const NAME: &'static str = "GcsDestination"; - pub fn get_consolidated_policy(&self) -> &AnalyzerOrgPolicy { - self.consolidated_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_consolidated_policy(&mut self) { - self.consolidated_policy.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_consolidated_policy(&self) -> bool { - self.consolidated_policy.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::Uri(is.read_string()?)); + }, + 18 => { + self.object_uri = ::std::option::Option::Some(gcs_destination::Object_uri::UriPrefix(is.read_string()?)); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_consolidated_policy(&mut self, v: AnalyzerOrgPolicy) { - self.consolidated_policy = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let ::std::option::Option::Some(ref v) = self.object_uri { + match v { + &gcs_destination::Object_uri::Uri(ref v) => { + my_size += ::protobuf::rt::string_size(1, &v); + }, + &gcs_destination::Object_uri::UriPrefix(ref v) => { + my_size += ::protobuf::rt::string_size(2, &v); + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_consolidated_policy(&mut self) -> &mut AnalyzerOrgPolicy { - if self.consolidated_policy.is_none() { - self.consolidated_policy.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let ::std::option::Option::Some(ref v) = self.object_uri { + match v { + &gcs_destination::Object_uri::Uri(ref v) => { + os.write_string(1, v)?; + }, + &gcs_destination::Object_uri::UriPrefix(ref v) => { + os.write_string(2, v)?; + }, + }; } - self.consolidated_policy.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_consolidated_policy(&mut self) -> AnalyzerOrgPolicy { - self.consolidated_policy.take().unwrap_or_else(|| AnalyzerOrgPolicy::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; - + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - pub fn get_policy_bundle(&self) -> &[AnalyzerOrgPolicy] { - &self.policy_bundle + fn new() -> GcsDestination { + GcsDestination::new() } - pub fn clear_policy_bundle(&mut self) { - self.policy_bundle.clear(); + + fn clear(&mut self) { + self.object_uri = ::std::option::Option::None; + self.object_uri = ::std::option::Option::None; + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_policy_bundle(&mut self, v: ::protobuf::RepeatedField) { - self.policy_bundle = v; + fn default_instance() -> &'static GcsDestination { + static instance: GcsDestination = GcsDestination { + object_uri: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - pub fn mut_policy_bundle(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policy_bundle +impl ::protobuf::MessageFull for GcsDestination { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GcsDestination").unwrap()).clone() } +} - // Take field - pub fn take_policy_bundle(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policy_bundle, ::protobuf::RepeatedField::new()) +impl ::std::fmt::Display for GcsDestination { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - fn is_initialized(&self) -> bool { - if let Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(ref v)) = self.governed_asset { - if !v.is_initialized() { - return false; - } +impl ::protobuf::reflect::ProtobufValue for GcsDestination { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `GcsDestination` +pub mod gcs_destination { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.cloud.asset.v1.GcsDestination.object_uri) + pub enum Object_uri { + // @@protoc_insertion_point(oneof_field:google.cloud.asset.v1.GcsDestination.uri) + Uri(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.cloud.asset.v1.GcsDestination.uri_prefix) + UriPrefix(::std::string::String), + } + + impl ::protobuf::Oneof for Object_uri { + } + + impl ::protobuf::OneofFull for Object_uri { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("object_uri").unwrap()).clone() } - if let Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(ref v)) = self.governed_asset { - if !v.is_initialized() { - return false; - } + } + + impl Object_uri { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("object_uri") } - for v in &self.consolidated_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.policy_bundle { - if !v.is_initialized() { - return false; - } - }; + } +} + +/// A BigQuery destination. +// @@protoc_insertion_point(message:google.cloud.asset.v1.BigQueryDestination) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct BigQueryDestination { + // message fields + /// Required. The BigQuery dataset in format + /// "projects/projectId/datasets/datasetId", to which the snapshot result + /// should be exported. If this dataset does not exist, the export call returns + /// an error. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BigQueryDestination.dataset) + pub dataset: ::std::string::String, + /// Required. The BigQuery table to which the snapshot result should be + /// written. If this table does not exist, a new table with the given name + /// will be created. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BigQueryDestination.table) + pub table: ::std::string::String, + /// If the destination table already exists and this flag is `TRUE`, the + /// table will be overwritten by the contents of assets snapshot. If the flag + /// is not set and the destination table already exists, the export call + /// returns an error. + // @@protoc_insertion_point(field:google.cloud.asset.v1.BigQueryDestination.force) + pub force: bool, + // special fields + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.BigQueryDestination.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a BigQueryDestination { + fn default() -> &'a BigQueryDestination { + ::default_instance() + } +} + +impl BigQueryDestination { + pub fn new() -> BigQueryDestination { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "dataset", + |m: &BigQueryDestination| { &m.dataset }, + |m: &mut BigQueryDestination| { &mut m.dataset }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table", + |m: &BigQueryDestination| { &m.table }, + |m: &mut BigQueryDestination| { &mut m.table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "force", + |m: &BigQueryDestination| { &m.force }, + |m: &mut BigQueryDestination| { &mut m.force }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BigQueryDestination", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for BigQueryDestination { + const NAME: &'static str = "BigQueryDestination"; + + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.dataset = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.governed_asset = ::std::option::Option::Some(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(is.read_message()?)); + 18 => { + self.table = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.consolidated_policy)?; + 24 => { + self.force = is.read_bool()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policy_bundle)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -22055,164 +1360,102 @@ impl ::protobuf::Message for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsse // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.consolidated_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.dataset.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.dataset); } - for value in &self.policy_bundle { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let ::std::option::Option::Some(ref v) = self.governed_asset { - match v { - &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + if !self.table.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.table); + } + if self.force != false { + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.consolidated_policy.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.dataset.is_empty() { + os.write_string(1, &self.dataset)?; } - for v in &self.policy_bundle { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let ::std::option::Option::Some(ref v) = self.governed_asset { - match v { - &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_resource(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_oneof_governed_asset::governed_iam_policy(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + if !self.table.is_empty() { + os.write_string(2, &self.table)?; + } + if self.force != false { + os.write_bool(3, self.force)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::new() + fn new() -> BigQueryDestination { + BigQueryDestination::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource>( - "governed_resource", - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::has_governed_resource, - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::get_governed_resource, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy>( - "governed_iam_policy", - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::has_governed_iam_policy, - AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::get_governed_iam_policy, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "consolidated_policy", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset| { &m.consolidated_policy }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset| { &mut m.consolidated_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy_bundle", - |m: &AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset| { &m.policy_bundle }, - |m: &mut AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset| { &mut m.policy_bundle }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.dataset.clear(); + self.table.clear(); + self.force = false; + self.special_fields.clear(); } - fn default_instance() -> &'static AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset::new) + fn default_instance() -> &'static BigQueryDestination { + static instance: BigQueryDestination = BigQueryDestination { + dataset: ::std::string::String::new(), + table: ::std::string::String::new(), + force: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - fn clear(&mut self) { - self.governed_asset = ::std::option::Option::None; - self.governed_asset = ::std::option::Option::None; - self.consolidated_policy.clear(); - self.policy_bundle.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BigQueryDestination { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BigQueryDestination").unwrap()).clone() } } -impl ::std::fmt::Debug for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { +impl ::std::fmt::Display for BigQueryDestination { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for BigQueryDestination { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// Asset content type. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.cloud.asset.v1.ContentType) pub enum ContentType { + // @@protoc_insertion_point(enum_value:google.cloud.asset.v1.ContentType.CONTENT_TYPE_UNSPECIFIED) CONTENT_TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.cloud.asset.v1.ContentType.RESOURCE) RESOURCE = 1, + // @@protoc_insertion_point(enum_value:google.cloud.asset.v1.ContentType.IAM_POLICY) IAM_POLICY = 2, + // @@protoc_insertion_point(enum_value:google.cloud.asset.v1.ContentType.ORG_POLICY) ORG_POLICY = 4, + // @@protoc_insertion_point(enum_value:google.cloud.asset.v1.ContentType.ACCESS_POLICY) ACCESS_POLICY = 5, - OS_INVENTORY = 6, - RELATIONSHIP = 7, } -impl ::protobuf::ProtobufEnum for ContentType { +impl ::protobuf::Enum for ContentType { + const NAME: &'static str = "ContentType"; + fn value(&self) -> i32 { *self as i32 } @@ -22224,34 +1467,46 @@ impl ::protobuf::ProtobufEnum for ContentType { 2 => ::std::option::Option::Some(ContentType::IAM_POLICY), 4 => ::std::option::Option::Some(ContentType::ORG_POLICY), 5 => ::std::option::Option::Some(ContentType::ACCESS_POLICY), - 6 => ::std::option::Option::Some(ContentType::OS_INVENTORY), - 7 => ::std::option::Option::Some(ContentType::RELATIONSHIP), _ => ::std::option::Option::None } } - fn values() -> &'static [Self] { - static values: &'static [ContentType] = &[ - ContentType::CONTENT_TYPE_UNSPECIFIED, - ContentType::RESOURCE, - ContentType::IAM_POLICY, - ContentType::ORG_POLICY, - ContentType::ACCESS_POLICY, - ContentType::OS_INVENTORY, - ContentType::RELATIONSHIP, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "CONTENT_TYPE_UNSPECIFIED" => ::std::option::Option::Some(ContentType::CONTENT_TYPE_UNSPECIFIED), + "RESOURCE" => ::std::option::Option::Some(ContentType::RESOURCE), + "IAM_POLICY" => ::std::option::Option::Some(ContentType::IAM_POLICY), + "ORG_POLICY" => ::std::option::Option::Some(ContentType::ORG_POLICY), + "ACCESS_POLICY" => ::std::option::Option::Some(ContentType::ACCESS_POLICY), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ContentType", file_descriptor_proto()) - }) - } + const VALUES: &'static [ContentType] = &[ + ContentType::CONTENT_TYPE_UNSPECIFIED, + ContentType::RESOURCE, + ContentType::IAM_POLICY, + ContentType::ORG_POLICY, + ContentType::ACCESS_POLICY, + ]; } -impl ::std::marker::Copy for ContentType { +impl ::protobuf::EnumFull for ContentType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("ContentType").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + ContentType::CONTENT_TYPE_UNSPECIFIED => 0, + ContentType::RESOURCE => 1, + ContentType::IAM_POLICY => 2, + ContentType::ORG_POLICY => 3, + ContentType::ACCESS_POLICY => 4, + }; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for ContentType { @@ -22260,9 +1515,9 @@ impl ::std::default::Default for ContentType { } } -impl ::protobuf::reflect::ProtobufValue for ContentType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl ContentType { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ContentType") } } @@ -22270,3444 +1525,333 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n)google/cloud/asset/v1/asset_service.proto\x12\x15google.cloud.asset.v\ 1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\ \x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\ - \"google/cloud/asset/v1/assets.proto\x1a\x1agoogle/iam/v1/policy.proto\ - \x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration\ - .proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/protobuf/field_m\ - ask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/tim\ - estamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/expr.prot\ - o\"g\n#AnalyzeIamPolicyLongrunningMetadata\x12@\n\x0bcreate_time\x18\x01\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTimeB\x03\xe0A\x03\ - \"\xf5\x02\n\x13ExportAssetsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB'\xfaA!\x12\x1fcloudasset.googleapis.com/Asset\xe0A\x02\x127\ - \n\tread_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x08re\ - adTime\x12\x1f\n\x0basset_types\x18\x03\x20\x03(\tR\nassetTypes\x12E\n\ - \x0ccontent_type\x18\x04\x20\x01(\x0e2\".google.cloud.asset.v1.ContentTy\ - peR\x0bcontentType\x12M\n\routput_config\x18\x05\x20\x01(\x0b2#.google.c\ - loud.asset.v1.OutputConfigR\x0coutputConfigB\x03\xe0A\x02\x12-\n\x12rela\ - tionship_types\x18\x06\x20\x03(\tR\x11relationshipTypes\"\xe3\x01\n\x14E\ - xportAssetsResponse\x127\n\tread_time\x18\x01\x20\x01(\x0b2\x1a.google.p\ - rotobuf.TimestampR\x08readTime\x12H\n\routput_config\x18\x02\x20\x01(\ - \x0b2#.google.cloud.asset.v1.OutputConfigR\x0coutputConfig\x12H\n\routpu\ - t_result\x18\x03\x20\x01(\x0b2#.google.cloud.asset.v1.OutputResultR\x0co\ - utputResult\"\xe0\x02\n\x11ListAssetsRequest\x12?\n\x06parent\x18\x01\ - \x20\x01(\tR\x06parentB'\xfaA!\x12\x1fcloudasset.googleapis.com/Asset\ - \xe0A\x02\x127\n\tread_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.Ti\ - mestampR\x08readTime\x12\x1f\n\x0basset_types\x18\x03\x20\x03(\tR\nasset\ - Types\x12E\n\x0ccontent_type\x18\x04\x20\x01(\x0e2\".google.cloud.asset.\ - v1.ContentTypeR\x0bcontentType\x12\x1b\n\tpage_size\x18\x05\x20\x01(\x05\ - R\x08pageSize\x12\x1d\n\npage_token\x18\x06\x20\x01(\tR\tpageToken\x12-\ - \n\x12relationship_types\x18\x07\x20\x03(\tR\x11relationshipTypes\"\xab\ - \x01\n\x12ListAssetsResponse\x127\n\tread_time\x18\x01\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampR\x08readTime\x124\n\x06assets\x18\x02\x20\x03\ - (\x0b2\x1c.google.cloud.asset.v1.AssetR\x06assets\x12&\n\x0fnext_page_to\ - ken\x18\x03\x20\x01(\tR\rnextPageToken\"\xd2\x02\n\x1cBatchGetAssetsHist\ - oryRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\x12\ - \x1fcloudasset.googleapis.com/Asset\xe0A\x02\x12\x1f\n\x0basset_names\ - \x18\x02\x20\x03(\tR\nassetNames\x12J\n\x0ccontent_type\x18\x03\x20\x01(\ - \x0e2\".google.cloud.asset.v1.ContentTypeR\x0bcontentTypeB\x03\xe0A\x01\ - \x12P\n\x10read_time_window\x18\x04\x20\x01(\x0b2!.google.cloud.asset.v1\ - .TimeWindowR\x0ereadTimeWindowB\x03\xe0A\x01\x122\n\x12relationship_type\ - s\x18\x05\x20\x03(\tR\x11relationshipTypesB\x03\xe0A\x01\"]\n\x1dBatchGe\ - tAssetsHistoryResponse\x12<\n\x06assets\x18\x01\x20\x03(\x0b2$.google.cl\ - oud.asset.v1.TemporalAssetR\x06assets\"\x84\x01\n\x11CreateFeedRequest\ - \x12\x1b\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\x03\xe0A\x02\x12\x1c\ - \n\x07feed_id\x18\x02\x20\x01(\tR\x06feedIdB\x03\xe0A\x02\x124\n\x04feed\ - \x18\x03\x20\x01(\x0b2\x1b.google.cloud.asset.v1.FeedR\x04feedB\x03\xe0A\ - \x02\"L\n\x0eGetFeedRequest\x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\ - \xfaA\x20\n\x1ecloudasset.googleapis.com/Feed\xe0A\x02\"/\n\x10ListFeeds\ - Request\x12\x1b\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\x03\xe0A\x02\ - \"F\n\x11ListFeedsResponse\x121\n\x05feeds\x18\x01\x20\x03(\x0b2\x1b.goo\ - gle.cloud.asset.v1.FeedR\x05feeds\"\x8b\x01\n\x11UpdateFeedRequest\x124\ - \n\x04feed\x18\x01\x20\x01(\x0b2\x1b.google.cloud.asset.v1.FeedR\x04feed\ - B\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.pr\ - otobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"O\n\x11DeleteFeedRequest\ - \x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\xfaA\x20\n\x1ecloudasset.g\ - oogleapis.com/Feed\xe0A\x02\"\xd0\x01\n\x0cOutputConfig\x12P\n\x0fgcs_de\ - stination\x18\x01\x20\x01(\x0b2%.google.cloud.asset.v1.GcsDestinationH\0\ - R\x0egcsDestination\x12_\n\x14bigquery_destination\x18\x02\x20\x01(\x0b2\ - *.google.cloud.asset.v1.BigQueryDestinationH\0R\x13bigqueryDestinationB\ - \r\n\x0bdestination\"a\n\x0cOutputResult\x12G\n\ngcs_result\x18\x01\x20\ - \x01(\x0b2&.google.cloud.asset.v1.GcsOutputResultH\0R\tgcsResultB\x08\n\ - \x06result\"%\n\x0fGcsOutputResult\x12\x12\n\x04uris\x18\x01\x20\x03(\tR\ - \x04uris\"S\n\x0eGcsDestination\x12\x12\n\x03uri\x18\x01\x20\x01(\tH\0R\ - \x03uri\x12\x1f\n\nuri_prefix\x18\x02\x20\x01(\tH\0R\turiPrefixB\x0c\n\n\ - object_uri\"\xf6\x01\n\x13BigQueryDestination\x12\x1d\n\x07dataset\x18\ - \x01\x20\x01(\tR\x07datasetB\x03\xe0A\x02\x12\x19\n\x05table\x18\x02\x20\ - \x01(\tR\x05tableB\x03\xe0A\x02\x12\x14\n\x05force\x18\x03\x20\x01(\x08R\ - \x05force\x12K\n\x0epartition_spec\x18\x04\x20\x01(\x0b2$.google.cloud.a\ - sset.v1.PartitionSpecR\rpartitionSpec\x12B\n\x1eseparate_tables_per_asse\ - t_type\x18\x05\x20\x01(\x08R\x1aseparateTablesPerAssetType\"\xb7\x01\n\r\ - PartitionSpec\x12V\n\rpartition_key\x18\x01\x20\x01(\x0e21.google.cloud.\ - asset.v1.PartitionSpec.PartitionKeyR\x0cpartitionKey\"N\n\x0cPartitionKe\ - y\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\0\x12\r\n\tREAD_TIME\x10\ - \x01\x12\x10\n\x0cREQUEST_TIME\x10\x02\")\n\x11PubsubDestination\x12\x14\ - \n\x05topic\x18\x01\x20\x01(\tR\x05topic\"|\n\x10FeedOutputConfig\x12Y\n\ - \x12pubsub_destination\x18\x01\x20\x01(\x0b2(.google.cloud.asset.v1.Pubs\ - ubDestinationH\0R\x11pubsubDestinationB\r\n\x0bdestination\"\xf8\x03\n\ - \x04Feed\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x12\ - \x1f\n\x0basset_names\x18\x02\x20\x03(\tR\nassetNames\x12\x1f\n\x0basset\ + \"google/cloud/asset/v1/assets.proto\x1a#google/longrunning/operations.p\ + roto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/protobuf/field_mas\ + k.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x02\n\x13ExportAsse\ + tsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\x12\x1f\ + cloudasset.googleapis.com/Asset\xe0A\x02\x127\n\tread_time\x18\x02\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\x08readTime\x12\x1f\n\x0basset\ _types\x18\x03\x20\x03(\tR\nassetTypes\x12E\n\x0ccontent_type\x18\x04\ - \x20\x01(\x0e2\".google.cloud.asset.v1.ContentTypeR\x0bcontentType\x12Z\ - \n\x12feed_output_config\x18\x05\x20\x01(\x0b2'.google.cloud.asset.v1.Fe\ - edOutputConfigR\x10feedOutputConfigB\x03\xe0A\x02\x12/\n\tcondition\x18\ - \x06\x20\x01(\x0b2\x11.google.type.ExprR\tcondition\x12-\n\x12relationsh\ - ip_types\x18\x07\x20\x03(\tR\x11relationshipTypes:\x91\x01\xeaA\x8d\x01\ - \n\x1ecloudasset.googleapis.com/Feed\x12\x1fprojects/{project}/feeds/{fe\ - ed}\x12\x1dfolders/{folder}/feeds/{feed}\x12)organizations/{organization\ - }/feeds/{feed}\x20\x01\"\x9b\x02\n\x19SearchAllResourcesRequest\x12\x19\ - \n\x05scope\x18\x01\x20\x01(\tR\x05scopeB\x03\xe0A\x02\x12\x19\n\x05quer\ - y\x18\x02\x20\x01(\tR\x05queryB\x03\xe0A\x01\x12$\n\x0basset_types\x18\ - \x03\x20\x03(\tR\nassetTypesB\x03\xe0A\x01\x12\x20\n\tpage_size\x18\x04\ - \x20\x01(\x05R\x08pageSizeB\x03\xe0A\x01\x12\"\n\npage_token\x18\x05\x20\ - \x01(\tR\tpageTokenB\x03\xe0A\x01\x12\x1e\n\x08order_by\x18\x06\x20\x01(\ - \tR\x07orderByB\x03\xe0A\x01\x12<\n\tread_mask\x18\x08\x20\x01(\x0b2\x1a\ - .google.protobuf.FieldMaskR\x08readMaskB\x03\xe0A\x01\"\x8b\x01\n\x1aSea\ - rchAllResourcesResponse\x12E\n\x07results\x18\x01\x20\x03(\x0b2+.google.\ - cloud.asset.v1.ResourceSearchResultR\x07results\x12&\n\x0fnext_page_toke\ - n\x18\x02\x20\x01(\tR\rnextPageToken\"\xdf\x01\n\x1bSearchAllIamPolicies\ - Request\x12\x19\n\x05scope\x18\x01\x20\x01(\tR\x05scopeB\x03\xe0A\x02\ - \x12\x19\n\x05query\x18\x02\x20\x01(\tR\x05queryB\x03\xe0A\x01\x12\x20\n\ - \tpage_size\x18\x03\x20\x01(\x05R\x08pageSizeB\x03\xe0A\x01\x12\"\n\npag\ - e_token\x18\x04\x20\x01(\tR\tpageTokenB\x03\xe0A\x01\x12$\n\x0basset_typ\ - es\x18\x05\x20\x03(\tR\nassetTypesB\x03\xe0A\x01\x12\x1e\n\x08order_by\ - \x18\x07\x20\x01(\tR\x07orderByB\x03\xe0A\x01\"\x8e\x01\n\x1cSearchAllIa\ - mPoliciesResponse\x12F\n\x07results\x18\x01\x20\x03(\x0b2,.google.cloud.\ - asset.v1.IamPolicySearchResultR\x07results\x12&\n\x0fnext_page_token\x18\ - \x02\x20\x01(\tR\rnextPageToken\"\xcf\t\n\x16IamPolicyAnalysisQuery\x12\ - \x19\n\x05scope\x18\x01\x20\x01(\tR\x05scopeB\x03\xe0A\x02\x12p\n\x11res\ - ource_selector\x18\x02\x20\x01(\x0b2>.google.cloud.asset.v1.IamPolicyAna\ - lysisQuery.ResourceSelectorR\x10resourceSelectorB\x03\xe0A\x01\x12p\n\ - \x11identity_selector\x18\x03\x20\x01(\x0b2>.google.cloud.asset.v1.IamPo\ - licyAnalysisQuery.IdentitySelectorR\x10identitySelectorB\x03\xe0A\x01\ - \x12j\n\x0faccess_selector\x18\x04\x20\x01(\x0b2<.google.cloud.asset.v1.\ - IamPolicyAnalysisQuery.AccessSelectorR\x0eaccessSelectorB\x03\xe0A\x01\ - \x12T\n\x07options\x18\x05\x20\x01(\x0b25.google.cloud.asset.v1.IamPolic\ - yAnalysisQuery.OptionsR\x07optionsB\x03\xe0A\x01\x12p\n\x11condition_con\ - text\x18\x06\x20\x01(\x0b2>.google.cloud.asset.v1.IamPolicyAnalysisQuery\ - .ConditionContextR\x10conditionContextB\x03\xe0A\x01\x1aE\n\x10ResourceS\ - elector\x121\n\x12full_resource_name\x18\x01\x20\x01(\tR\x10fullResource\ - NameB\x03\xe0A\x02\x1a3\n\x10IdentitySelector\x12\x1f\n\x08identity\x18\ - \x01\x20\x01(\tR\x08identityB\x03\xe0A\x02\x1aR\n\x0eAccessSelector\x12\ - \x19\n\x05roles\x18\x01\x20\x03(\tR\x05rolesB\x03\xe0A\x01\x12%\n\x0bper\ - missions\x18\x02\x20\x03(\tR\x0bpermissionsB\x03\xe0A\x01\x1a\xcf\x02\n\ - \x07Options\x12(\n\rexpand_groups\x18\x01\x20\x01(\x08R\x0cexpandGroupsB\ - \x03\xe0A\x01\x12&\n\x0cexpand_roles\x18\x02\x20\x01(\x08R\x0bexpandRole\ - sB\x03\xe0A\x01\x12.\n\x10expand_resources\x18\x03\x20\x01(\x08R\x0fexpa\ - ndResourcesB\x03\xe0A\x01\x127\n\x15output_resource_edges\x18\x04\x20\ - \x01(\x08R\x13outputResourceEdgesB\x03\xe0A\x01\x121\n\x12output_group_e\ - dges\x18\x05\x20\x01(\x08R\x10outputGroupEdgesB\x03\xe0A\x01\x12V\n%anal\ - yze_service_account_impersonation\x18\x06\x20\x01(\x08R\"analyzeServiceA\ - ccountImpersonationB\x03\xe0A\x01\x1a`\n\x10ConditionContext\x12=\n\x0ba\ - ccess_time\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampH\0R\nacce\ - ssTimeB\r\n\x0bTimeContext\"\xf8\x01\n\x17AnalyzeIamPolicyRequest\x12Y\n\ - \x0eanalysis_query\x18\x01\x20\x01(\x0b2-.google.cloud.asset.v1.IamPolic\ - yAnalysisQueryR\ranalysisQueryB\x03\xe0A\x02\x125\n\x14saved_analysis_qu\ - ery\x18\x03\x20\x01(\tR\x12savedAnalysisQueryB\x03\xe0A\x01\x12K\n\x11ex\ - ecution_timeout\x18\x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x10e\ - xecutionTimeoutB\x03\xe0A\x01\"\x8f\x05\n\x18AnalyzeIamPolicyResponse\ - \x12f\n\rmain_analysis\x18\x01\x20\x01(\x0b2A.google.cloud.asset.v1.Anal\ - yzeIamPolicyResponse.IamPolicyAnalysisR\x0cmainAnalysis\x12\x96\x01\n&se\ - rvice_account_impersonation_analysis\x18\x02\x20\x03(\x0b2A.google.cloud\ - .asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisR#serviceAccountImpe\ - rsonationAnalysis\x12%\n\x0efully_explored\x18\x03\x20\x01(\x08R\rfullyE\ - xplored\x1a\xca\x02\n\x11IamPolicyAnalysis\x12T\n\x0eanalysis_query\x18\ - \x01\x20\x01(\x0b2-.google.cloud.asset.v1.IamPolicyAnalysisQueryR\ranaly\ - sisQuery\x12Y\n\x10analysis_results\x18\x02\x20\x03(\x0b2..google.cloud.\ - asset.v1.IamPolicyAnalysisResultR\x0fanalysisResults\x12%\n\x0efully_exp\ - lored\x18\x03\x20\x01(\x08R\rfullyExplored\x12]\n\x13non_critical_errors\ - \x18\x05\x20\x03(\x0b2-.google.cloud.asset.v1.IamPolicyAnalysisStateR\ - \x11nonCriticalErrors\"\x94\x05\n\x1dIamPolicyAnalysisOutputConfig\x12n\ - \n\x0fgcs_destination\x18\x01\x20\x01(\x0b2C.google.cloud.asset.v1.IamPo\ - licyAnalysisOutputConfig.GcsDestinationH\0R\x0egcsDestination\x12}\n\x14\ - bigquery_destination\x18\x02\x20\x01(\x0b2H.google.cloud.asset.v1.IamPol\ - icyAnalysisOutputConfig.BigQueryDestinationH\0R\x13bigqueryDestination\ - \x1a'\n\x0eGcsDestination\x12\x15\n\x03uri\x18\x01\x20\x01(\tR\x03uriB\ - \x03\xe0A\x02\x1a\xcb\x02\n\x13BigQueryDestination\x12\x1d\n\x07dataset\ - \x18\x01\x20\x01(\tR\x07datasetB\x03\xe0A\x02\x12&\n\x0ctable_prefix\x18\ - \x02\x20\x01(\tR\x0btablePrefixB\x03\xe0A\x02\x12z\n\rpartition_key\x18\ - \x03\x20\x01(\x0e2U.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.\ - BigQueryDestination.PartitionKeyR\x0cpartitionKey\x120\n\x11write_dispos\ - ition\x18\x04\x20\x01(\tR\x10writeDispositionB\x03\xe0A\x01\"?\n\x0cPart\ - itionKey\x12\x1d\n\x19PARTITION_KEY_UNSPECIFIED\x10\0\x12\x10\n\x0cREQUE\ - ST_TIME\x10\x01B\r\n\x0bdestination\"\x96\x02\n\"AnalyzeIamPolicyLongrun\ - ningRequest\x12Y\n\x0eanalysis_query\x18\x01\x20\x01(\x0b2-.google.cloud\ - .asset.v1.IamPolicyAnalysisQueryR\ranalysisQueryB\x03\xe0A\x02\x125\n\ - \x14saved_analysis_query\x18\x03\x20\x01(\tR\x12savedAnalysisQueryB\x03\ - \xe0A\x01\x12^\n\routput_config\x18\x02\x20\x01(\x0b24.google.cloud.asse\ - t.v1.IamPolicyAnalysisOutputConfigR\x0coutputConfigB\x03\xe0A\x02\"%\n#A\ - nalyzeIamPolicyLongrunningResponse\"\xb2\x06\n\nSavedQuery\x12\x12\n\x04\ - name\x18\x01\x20\x01(\tR\x04name\x12\x20\n\x0bdescription\x18\x02\x20\ - \x01(\tR\x0bdescription\x12@\n\x0bcreate_time\x18\x03\x20\x01(\x0b2\x1a.\ - google.protobuf.TimestampR\ncreateTimeB\x03\xe0A\x03\x12\x1d\n\x07creato\ - r\x18\x04\x20\x01(\tR\x07creatorB\x03\xe0A\x03\x12I\n\x10last_update_tim\ - e\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0elastUpdateTime\ - B\x03\xe0A\x03\x12&\n\x0clast_updater\x18\x06\x20\x01(\tR\x0blastUpdater\ - B\x03\xe0A\x03\x12E\n\x06labels\x18\x07\x20\x03(\x0b2-.google.cloud.asse\ - t.v1.SavedQuery.LabelsEntryR\x06labels\x12H\n\x07content\x18\x08\x20\x01\ - (\x0b2..google.cloud.asset.v1.SavedQuery.QueryContentR\x07content\x1a\ - \x8b\x01\n\x0cQueryContent\x12j\n\x19iam_policy_analysis_query\x18\x01\ - \x20\x01(\x0b2-.google.cloud.asset.v1.IamPolicyAnalysisQueryH\0R\x16iamP\ - olicyAnalysisQueryB\x0f\n\rquery_content\x1a9\n\x0bLabelsEntry\x12\x10\n\ - \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\t\ - R\x05value:\x028\x01:\xbf\x01\xeaA\xbb\x01\n$cloudasset.googleapis.com/S\ - avedQuery\x12-projects/{project}/savedQueries/{saved_query}\x12+folders/\ - {folder}/savedQueries/{saved_query}\x127organizations/{organization}/sav\ - edQueries/{saved_query}\"\xd3\x01\n\x17CreateSavedQueryRequest\x12D\n\ - \x06parent\x18\x01\x20\x01(\tR\x06parentB,\xfaA&\x12$cloudasset.googleap\ - is.com/SavedQuery\xe0A\x02\x12G\n\x0bsaved_query\x18\x02\x20\x01(\x0b2!.\ - google.cloud.asset.v1.SavedQueryR\nsavedQueryB\x03\xe0A\x02\x12)\n\x0esa\ - ved_query_id\x18\x03\x20\x01(\tR\x0csavedQueryIdB\x03\xe0A\x02\"X\n\x14G\ - etSavedQueryRequest\x12@\n\x04name\x18\x01\x20\x01(\tR\x04nameB,\xfaA&\n\ - $cloudasset.googleapis.com/SavedQuery\xe0A\x02\"\xc2\x01\n\x17ListSavedQ\ - ueriesRequest\x12D\n\x06parent\x18\x01\x20\x01(\tR\x06parentB,\xfaA&\x12\ - $cloudasset.googleapis.com/SavedQuery\xe0A\x02\x12\x1b\n\x06filter\x18\ - \x04\x20\x01(\tR\x06filterB\x03\xe0A\x01\x12\x20\n\tpage_size\x18\x02\ - \x20\x01(\x05R\x08pageSizeB\x03\xe0A\x01\x12\"\n\npage_token\x18\x03\x20\ - \x01(\tR\tpageTokenB\x03\xe0A\x01\"\x8a\x01\n\x18ListSavedQueriesRespons\ - e\x12F\n\rsaved_queries\x18\x01\x20\x03(\x0b2!.google.cloud.asset.v1.Sav\ - edQueryR\x0csavedQueries\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\r\ - nextPageToken\"\xa4\x01\n\x17UpdateSavedQueryRequest\x12G\n\x0bsaved_que\ - ry\x18\x01\x20\x01(\x0b2!.google.cloud.asset.v1.SavedQueryR\nsavedQueryB\ - \x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.pro\ - tobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"[\n\x17DeleteSavedQueryReque\ - st\x12@\n\x04name\x18\x01\x20\x01(\tR\x04nameB,\xfaA&\n$cloudasset.googl\ - eapis.com/SavedQuery\xe0A\x02\"\xf9\x01\n\x12AnalyzeMoveRequest\x12\x1f\ - \n\x08resource\x18\x01\x20\x01(\tR\x08resourceB\x03\xe0A\x02\x122\n\x12d\ - estination_parent\x18\x02\x20\x01(\tR\x11destinationParentB\x03\xe0A\x02\ - \x12J\n\x04view\x18\x03\x20\x01(\x0e26.google.cloud.asset.v1.AnalyzeMove\ - Request.AnalysisViewR\x04view\"B\n\x0cAnalysisView\x12\x1d\n\x19ANALYSIS\ - _VIEW_UNSPECIFIED\x10\0\x12\x08\n\x04FULL\x10\x01\x12\t\n\x05BASIC\x10\ - \x02\"_\n\x13AnalyzeMoveResponse\x12H\n\rmove_analysis\x18\x01\x20\x03(\ - \x0b2#.google.cloud.asset.v1.MoveAnalysisR\x0cmoveAnalysis\"\xb0\x01\n\ - \x0cMoveAnalysis\x12!\n\x0cdisplay_name\x18\x01\x20\x01(\tR\x0bdisplayNa\ - me\x12G\n\x08analysis\x18\x02\x20\x01(\x0b2).google.cloud.asset.v1.MoveA\ - nalysisResultH\0R\x08analysis\x12*\n\x05error\x18\x03\x20\x01(\x0b2\x12.\ - google.rpc.StatusH\0R\x05errorB\x08\n\x06result\"\x92\x01\n\x12MoveAnaly\ - sisResult\x12=\n\x08blockers\x18\x01\x20\x03(\x0b2!.google.cloud.asset.v\ - 1.MoveImpactR\x08blockers\x12=\n\x08warnings\x18\x02\x20\x03(\x0b2!.goog\ - le.cloud.asset.v1.MoveImpactR\x08warnings\"$\n\nMoveImpact\x12\x16\n\x06\ - detail\x18\x01\x20\x01(\tR\x06detail\"\x8e\x02\n\x17QueryAssetsOutputCon\ - fig\x12u\n\x14bigquery_destination\x18\x01\x20\x01(\x0b2B.google.cloud.a\ - sset.v1.QueryAssetsOutputConfig.BigQueryDestinationR\x13bigqueryDestinat\ - ion\x1a|\n\x13BigQueryDestination\x12\x1d\n\x07dataset\x18\x01\x20\x01(\ - \tR\x07datasetB\x03\xe0A\x02\x12\x19\n\x05table\x18\x02\x20\x01(\tR\x05t\ - ableB\x03\xe0A\x02\x12+\n\x11write_disposition\x18\x03\x20\x01(\tR\x10wr\ - iteDisposition\"\xa5\x04\n\x12QueryAssetsRequest\x12?\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB'\xfaA!\x12\x1fcloudasset.googleapis.com/Asse\ - t\xe0A\x02\x12#\n\tstatement\x18\x02\x20\x01(\tH\0R\tstatementB\x03\xe0A\ - \x01\x12*\n\rjob_reference\x18\x03\x20\x01(\tH\0R\x0cjobReferenceB\x03\ - \xe0A\x01\x12\x20\n\tpage_size\x18\x04\x20\x01(\x05R\x08pageSizeB\x03\ - \xe0A\x01\x12\"\n\npage_token\x18\x05\x20\x01(\tR\tpageTokenB\x03\xe0A\ - \x01\x128\n\x07timeout\x18\x06\x20\x01(\x0b2\x19.google.protobuf.Duratio\ - nR\x07timeoutB\x03\xe0A\x01\x12R\n\x10read_time_window\x18\x07\x20\x01(\ - \x0b2!.google.cloud.asset.v1.TimeWindowH\x01R\x0ereadTimeWindowB\x03\xe0\ - A\x01\x12>\n\tread_time\x18\x08\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampH\x01R\x08readTimeB\x03\xe0A\x01\x12X\n\routput_config\x18\t\x20\x01(\ - \x0b2..google.cloud.asset.v1.QueryAssetsOutputConfigR\x0coutputConfigB\ - \x03\xe0A\x01B\x07\n\x05queryB\x06\n\x04time\"\xa6\x02\n\x13QueryAssetsR\ - esponse\x12#\n\rjob_reference\x18\x01\x20\x01(\tR\x0cjobReference\x12\ - \x12\n\x04done\x18\x02\x20\x01(\x08R\x04done\x12*\n\x05error\x18\x03\x20\ - \x01(\x0b2\x12.google.rpc.StatusH\0R\x05error\x12G\n\x0cquery_result\x18\ - \x04\x20\x01(\x0b2\".google.cloud.asset.v1.QueryResultH\0R\x0bqueryResul\ - t\x12U\n\routput_config\x18\x05\x20\x01(\x0b2..google.cloud.asset.v1.Que\ - ryAssetsOutputConfigH\0R\x0coutputConfigB\n\n\x08response\"\xbd\x01\n\ - \x0bQueryResult\x12+\n\x04rows\x18\x01\x20\x03(\x0b2\x17.google.protobuf\ - .StructR\x04rows\x12:\n\x06schema\x18\x02\x20\x01(\x0b2\".google.cloud.a\ - sset.v1.TableSchemaR\x06schema\x12&\n\x0fnext_page_token\x18\x03\x20\x01\ - (\tR\rnextPageToken\x12\x1d\n\ntotal_rows\x18\x04\x20\x01(\x03R\ttotalRo\ - ws\"N\n\x0bTableSchema\x12?\n\x06fields\x18\x01\x20\x03(\x0b2'.google.cl\ - oud.asset.v1.TableFieldSchemaR\x06fields\"\x91\x01\n\x10TableFieldSchema\ - \x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05field\x12\x12\n\x04type\x18\ - \x02\x20\x01(\tR\x04type\x12\x12\n\x04mode\x18\x03\x20\x01(\tR\x04mode\ - \x12?\n\x06fields\x18\x04\x20\x03(\x0b2'.google.cloud.asset.v1.TableFiel\ - dSchemaR\x06fields\"g\n#BatchGetEffectiveIamPoliciesRequest\x12\x1f\n\ - \x05scope\x18\x01\x20\x01(\tR\x05scopeB\t\xfaA\x03\x12\x01*\xe0A\x02\x12\ - \x1f\n\x05names\x18\x03\x20\x03(\tR\x05namesB\t\xfaA\x03\n\x01*\xe0A\x02\ - \"\xc3\x03\n$BatchGetEffectiveIamPoliciesResponse\x12u\n\x0epolicy_resul\ - ts\x18\x02\x20\x03(\x0b2N.google.cloud.asset.v1.BatchGetEffectiveIamPoli\ - ciesResponse.EffectiveIamPolicyR\rpolicyResults\x1a\xa3\x02\n\x12Effecti\ - veIamPolicy\x12,\n\x12full_resource_name\x18\x01\x20\x01(\tR\x10fullReso\ - urceName\x12u\n\x08policies\x18\x02\x20\x03(\x0b2Y.google.cloud.asset.v1\ - .BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfoR\x08\ - policies\x1ah\n\nPolicyInfo\x12+\n\x11attached_resource\x18\x01\x20\x01(\ - \tR\x10attachedResource\x12-\n\x06policy\x18\x02\x20\x01(\x0b2\x15.googl\ - e.iam.v1.PolicyR\x06policy\"\xc2\x04\n\x11AnalyzerOrgPolicy\x12+\n\x11at\ - tached_resource\x18\x01\x20\x01(\tR\x10attachedResource\x12)\n\x10applie\ - d_resource\x18\x05\x20\x01(\tR\x0fappliedResource\x12C\n\x05rules\x18\ - \x02\x20\x03(\x0b2-.google.cloud.asset.v1.AnalyzerOrgPolicy.RuleR\x05rul\ - es\x12.\n\x13inherit_from_parent\x18\x03\x20\x01(\x08R\x11inheritFromPar\ - ent\x12\x14\n\x05reset\x18\x04\x20\x01(\x08R\x05reset\x1a\xc9\x02\n\x04R\ - ule\x12T\n\x06values\x18\x03\x20\x01(\x0b2:.google.cloud.asset.v1.Analyz\ - erOrgPolicy.Rule.StringValuesH\0R\x06values\x12\x1d\n\tallow_all\x18\x04\ - \x20\x01(\x08H\0R\x08allowAll\x12\x1b\n\x08deny_all\x18\x05\x20\x01(\x08\ - H\0R\x07denyAll\x12\x1a\n\x07enforce\x18\x06\x20\x01(\x08H\0R\x07enforce\ - \x12/\n\tcondition\x18\x07\x20\x01(\x0b2\x11.google.type.ExprR\tconditio\ - n\x1aZ\n\x0cStringValues\x12%\n\x0eallowed_values\x18\x01\x20\x03(\tR\ra\ - llowedValues\x12#\n\rdenied_values\x18\x02\x20\x03(\tR\x0cdeniedValuesB\ - \x06\n\x04kind\"\x81\x0c\n\x1bAnalyzerOrgPolicyConstraint\x12{\n\x19goog\ - le_defined_constraint\x18\x01\x20\x01(\x0b2=.google.cloud.asset.v1.Analy\ - zerOrgPolicyConstraint.ConstraintH\0R\x17googleDefinedConstraint\x12r\n\ - \x11custom_constraint\x18\x02\x20\x01(\x0b2C.google.cloud.asset.v1.Analy\ - zerOrgPolicyConstraint.CustomConstraintH\0R\x10customConstraint\x1a\xb1\ - \x05\n\nConstraint\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12!\n\ - \x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x20\n\x0bdescrip\ - tion\x18\x03\x20\x01(\tR\x0bdescription\x12~\n\x12constraint_default\x18\ - \x04\x20\x01(\x0e2O.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Co\ - nstraint.ConstraintDefaultR\x11constraintDefault\x12w\n\x0flist_constrai\ - nt\x18\x05\x20\x01(\x0b2L.google.cloud.asset.v1.AnalyzerOrgPolicyConstra\ - int.Constraint.ListConstraintH\0R\x0elistConstraint\x12\x80\x01\n\x12boo\ - lean_constraint\x18\x06\x20\x01(\x0b2O.google.cloud.asset.v1.AnalyzerOrg\ - PolicyConstraint.Constraint.BooleanConstraintH\0R\x11booleanConstraint\ - \x1aX\n\x0eListConstraint\x12\x1f\n\x0bsupports_in\x18\x01\x20\x01(\x08R\ - \nsupportsIn\x12%\n\x0esupports_under\x18\x02\x20\x01(\x08R\rsupportsUnd\ - er\x1a\x13\n\x11BooleanConstraint\"L\n\x11ConstraintDefault\x12\"\n\x1eC\ - ONSTRAINT_DEFAULT_UNSPECIFIED\x10\0\x12\t\n\x05ALLOW\x10\x01\x12\x08\n\ - \x04DENY\x10\x02B\x11\n\x0fconstraint_type\x1a\xa3\x04\n\x10CustomConstr\ - aint\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12%\n\x0eresource_ty\ - pes\x18\x02\x20\x03(\tR\rresourceTypes\x12q\n\x0cmethod_types\x18\x03\ - \x20\x03(\x0e2N.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Custom\ - Constraint.MethodTypeR\x0bmethodTypes\x12\x1c\n\tcondition\x18\x04\x20\ - \x01(\tR\tcondition\x12o\n\x0baction_type\x18\x05\x20\x01(\x0e2N.google.\ - cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.ActionTypeR\ - \nactionType\x12!\n\x0cdisplay_name\x18\x06\x20\x01(\tR\x0bdisplayName\ - \x12\x20\n\x0bdescription\x18\x07\x20\x01(\tR\x0bdescription\"M\n\nMetho\ - dType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\0\x12\n\n\x06CREATE\x10\ - \x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06DELETE\x10\x03\">\n\nActionTyp\ - e\x12\x1b\n\x17ACTION_TYPE_UNSPECIFIED\x10\0\x12\t\n\x05ALLOW\x10\x01\ - \x12\x08\n\x04DENY\x10\x02B\x17\n\x15constraint_definition\"\xc2\x01\n\ - \x19AnalyzeOrgPoliciesRequest\x12\x19\n\x05scope\x18\x01\x20\x01(\tR\x05\ - scopeB\x03\xe0A\x02\x12#\n\nconstraint\x18\x02\x20\x01(\tR\nconstraintB\ - \x03\xe0A\x02\x12\x16\n\x06filter\x18\x03\x20\x01(\tR\x06filter\x12\x20\ - \n\tpage_size\x18\x04\x20\x01(\x05H\0R\x08pageSize\x88\x01\x01\x12\x1d\n\ - \npage_token\x18\x05\x20\x01(\tR\tpageTokenB\x0c\n\n_page_size\"\xc7\x03\ - \n\x1aAnalyzeOrgPoliciesResponse\x12o\n\x12org_policy_results\x18\x01\ - \x20\x03(\x0b2A.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPoli\ - cyResultR\x10orgPolicyResults\x12R\n\nconstraint\x18\x02\x20\x01(\x0b22.\ - google.cloud.asset.v1.AnalyzerOrgPolicyConstraintR\nconstraint\x12&\n\ - \x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\x1a\xbb\x01\n\x0f\ - OrgPolicyResult\x12Y\n\x13consolidated_policy\x18\x01\x20\x01(\x0b2(.goo\ - gle.cloud.asset.v1.AnalyzerOrgPolicyR\x12consolidatedPolicy\x12M\n\rpoli\ - cy_bundle\x18\x02\x20\x03(\x0b2(.google.cloud.asset.v1.AnalyzerOrgPolicy\ - R\x0cpolicyBundle\"\xd2\x01\n)AnalyzeOrgPolicyGovernedContainersRequest\ - \x12\x19\n\x05scope\x18\x01\x20\x01(\tR\x05scopeB\x03\xe0A\x02\x12#\n\nc\ - onstraint\x18\x02\x20\x01(\tR\nconstraintB\x03\xe0A\x02\x12\x16\n\x06fil\ - ter\x18\x03\x20\x01(\tR\x06filter\x12\x20\n\tpage_size\x18\x04\x20\x01(\ - \x05H\0R\x08pageSize\x88\x01\x01\x12\x1d\n\npage_token\x18\x05\x20\x01(\ - \tR\tpageTokenB\x0c\n\n_page_size\"\xb5\x04\n*AnalyzeOrgPolicyGovernedCo\ - ntainersResponse\x12\x84\x01\n\x13governed_containers\x18\x01\x20\x03(\ - \x0b2S.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.\ - GovernedContainerR\x12governedContainers\x12R\n\nconstraint\x18\x02\x20\ - \x01(\x0b22.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintR\nconstrai\ - nt\x12&\n\x0fnext_page_token\x18\x03\x20\x01(\tR\rnextPageToken\x1a\x83\ - \x02\n\x11GovernedContainer\x12,\n\x12full_resource_name\x18\x01\x20\x01\ - (\tR\x10fullResourceName\x12\x16\n\x06parent\x18\x02\x20\x01(\tR\x06pare\ - nt\x12Y\n\x13consolidated_policy\x18\x03\x20\x01(\x0b2(.google.cloud.ass\ - et.v1.AnalyzerOrgPolicyR\x12consolidatedPolicy\x12M\n\rpolicy_bundle\x18\ - \x04\x20\x03(\x0b2(.google.cloud.asset.v1.AnalyzerOrgPolicyR\x0cpolicyBu\ - ndle\"\xce\x01\n%AnalyzeOrgPolicyGovernedAssetsRequest\x12\x19\n\x05scop\ - e\x18\x01\x20\x01(\tR\x05scopeB\x03\xe0A\x02\x12#\n\nconstraint\x18\x02\ - \x20\x01(\tR\nconstraintB\x03\xe0A\x02\x12\x16\n\x06filter\x18\x03\x20\ - \x01(\tR\x06filter\x12\x20\n\tpage_size\x18\x04\x20\x01(\x05H\0R\x08page\ - Size\x88\x01\x01\x12\x1d\n\npage_token\x18\x05\x20\x01(\tR\tpageTokenB\ - \x0c\n\n_page_size\"\xe8\x08\n&AnalyzeOrgPolicyGovernedAssetsResponse\ - \x12t\n\x0fgoverned_assets\x18\x01\x20\x03(\x0b2K.google.cloud.asset.v1.\ - AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetR\x0egovernedAssets\ - \x12R\n\nconstraint\x18\x02\x20\x01(\x0b22.google.cloud.asset.v1.Analyze\ - rOrgPolicyConstraintR\nconstraint\x12&\n\x0fnext_page_token\x18\x03\x20\ - \x01(\tR\rnextPageToken\x1a\xb0\x01\n\x10GovernedResource\x12,\n\x12full\ - _resource_name\x18\x01\x20\x01(\tR\x10fullResourceName\x12\x16\n\x06pare\ - nt\x18\x02\x20\x01(\tR\x06parent\x12\x18\n\x07project\x18\x05\x20\x01(\t\ - R\x07project\x12\x18\n\x07folders\x18\x06\x20\x03(\tR\x07folders\x12\"\n\ - \x0corganization\x18\x07\x20\x01(\tR\x0corganization\x1a\xc7\x01\n\x11Go\ - vernedIamPolicy\x12+\n\x11attached_resource\x18\x01\x20\x01(\tR\x10attac\ - hedResource\x12-\n\x06policy\x18\x02\x20\x01(\x0b2\x15.google.iam.v1.Pol\ - icyR\x06policy\x12\x18\n\x07project\x18\x05\x20\x01(\tR\x07project\x12\ - \x18\n\x07folders\x18\x06\x20\x03(\tR\x07folders\x12\"\n\x0corganization\ - \x18\x07\x20\x01(\tR\x0corganization\x1a\xce\x03\n\rGovernedAsset\x12}\n\ - \x11governed_resource\x18\x01\x20\x01(\x0b2N.google.cloud.asset.v1.Analy\ - zeOrgPolicyGovernedAssetsResponse.GovernedResourceH\0R\x10governedResour\ - ce\x12\x81\x01\n\x13governed_iam_policy\x18\x02\x20\x01(\x0b2O.google.cl\ - oud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyH\0\ - R\x11governedIamPolicy\x12Y\n\x13consolidated_policy\x18\x03\x20\x01(\ - \x0b2(.google.cloud.asset.v1.AnalyzerOrgPolicyR\x12consolidatedPolicy\ - \x12M\n\rpolicy_bundle\x18\x04\x20\x03(\x0b2(.google.cloud.asset.v1.Anal\ - yzerOrgPolicyR\x0cpolicyBundleB\x10\n\x0egoverned_asset*\x90\x01\n\x0bCo\ - ntentType\x12\x1c\n\x18CONTENT_TYPE_UNSPECIFIED\x10\0\x12\x0c\n\x08RESOU\ - RCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x12\x0e\n\nORG_POLICY\x10\x04\ - \x12\x11\n\rACCESS_POLICY\x10\x05\x12\x10\n\x0cOS_INVENTORY\x10\x06\x12\ - \x10\n\x0cRELATIONSHIP\x10\x072\xd1\x20\n\x0cAssetService\x12\xde\x01\n\ - \x0cExportAssets\x12*.google.cloud.asset.v1.ExportAssetsRequest\x1a\x1d.\ - google.longrunning.Operation\"\x82\x01\xcaAW\n*google.cloud.asset.v1.Exp\ - ortAssetsResponse\x12)google.cloud.asset.v1.ExportAssetsRequest\x82\xd3\ - \xe4\x93\x02\"\"\x1d/v1/{parent=*/*}:exportAssets:\x01*\x12\x8b\x01\n\nL\ - istAssets\x12(.google.cloud.asset.v1.ListAssetsRequest\x1a).google.cloud\ - .asset.v1.ListAssetsResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{pare\ - nt=*/*}/assets\xdaA\x06parent\x12\xb2\x01\n\x15BatchGetAssetsHistory\x12\ - 3.google.cloud.asset.v1.BatchGetAssetsHistoryRequest\x1a4.google.cloud.a\ - sset.v1.BatchGetAssetsHistoryResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{p\ - arent=*/*}:batchGetAssetsHistory\x12\x7f\n\nCreateFeed\x12(.google.cloud\ - .asset.v1.CreateFeedRequest\x1a\x1b.google.cloud.asset.v1.Feed\"*\x82\ - \xd3\xe4\x93\x02\x1b\"\x16/v1/{parent=*/*}/feeds:\x01*\xdaA\x06parent\ - \x12t\n\x07GetFeed\x12%.google.cloud.asset.v1.GetFeedRequest\x1a\x1b.goo\ - gle.cloud.asset.v1.Feed\"%\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/{name=*/*/\ - feeds/*}\xdaA\x04name\x12\x87\x01\n\tListFeeds\x12'.google.cloud.asset.v\ - 1.ListFeedsRequest\x1a(.google.cloud.asset.v1.ListFeedsResponse\"'\x82\ - \xd3\xe4\x93\x02\x18\x12\x16/v1/{parent=*/*}/feeds\xdaA\x06parent\x12\ - \x82\x01\n\nUpdateFeed\x12(.google.cloud.asset.v1.UpdateFeedRequest\x1a\ - \x1b.google.cloud.asset.v1.Feed\"-\x82\xd3\xe4\x93\x02\x202\x1b/v1/{feed\ - .name=*/*/feeds/*}:\x01*\xdaA\x04feed\x12u\n\nDeleteFeed\x12(.google.clo\ - ud.asset.v1.DeleteFeedRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\ - \xe4\x93\x02\x18*\x16/v1/{name=*/*/feeds/*}\xdaA\x04name\x12\xbf\x01\n\ - \x12SearchAllResources\x120.google.cloud.asset.v1.SearchAllResourcesRequ\ - est\x1a1.google.cloud.asset.v1.SearchAllResourcesResponse\"D\x82\xd3\xe4\ - \x93\x02$\x12\"/v1/{scope=*/*}:searchAllResources\xdaA\x17scope,query,as\ - set_types\x12\xbb\x01\n\x14SearchAllIamPolicies\x122.google.cloud.asset.\ - v1.SearchAllIamPoliciesRequest\x1a3.google.cloud.asset.v1.SearchAllIamPo\ - liciesResponse\":\x82\xd3\xe4\x93\x02&\x12$/v1/{scope=*/*}:searchAllIamP\ - olicies\xdaA\x0bscope,query\x12\xac\x01\n\x10AnalyzeIamPolicy\x12..googl\ - e.cloud.asset.v1.AnalyzeIamPolicyRequest\x1a/.google.cloud.asset.v1.Anal\ - yzeIamPolicyResponse\"7\x82\xd3\xe4\x93\x021\x12//v1/{analysis_query.sco\ - pe=*/*}:analyzeIamPolicy\x12\xb8\x02\n\x1bAnalyzeIamPolicyLongrunning\ - \x129.google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest\x1a\x1d.g\ - oogle.longrunning.Operation\"\xbe\x01\xcaAv\n9google.cloud.asset.v1.Anal\ - yzeIamPolicyLongrunningResponse\x129google.cloud.asset.v1.AnalyzeIamPoli\ - cyLongrunningMetadata\x82\xd3\xe4\x93\x02?\":/v1/{analysis_query.scope=*\ - /*}:analyzeIamPolicyLongrunning:\x01*\x12\x8c\x01\n\x0bAnalyzeMove\x12).\ - google.cloud.asset.v1.AnalyzeMoveRequest\x1a*.google.cloud.asset.v1.Anal\ - yzeMoveResponse\"&\x82\xd3\xe4\x93\x02\x20\x12\x1e/v1/{resource=*/*}:ana\ - lyzeMove\x12\x8d\x01\n\x0bQueryAssets\x12).google.cloud.asset.v1.QueryAs\ - setsRequest\x1a*.google.cloud.asset.v1.QueryAssetsResponse\"'\x82\xd3\ - \xe4\x93\x02!\"\x1c/v1/{parent=*/*}:queryAssets:\x01*\x12\xbd\x01\n\x10C\ - reateSavedQuery\x12..google.cloud.asset.v1.CreateSavedQueryRequest\x1a!.\ - google.cloud.asset.v1.SavedQuery\"V\x82\xd3\xe4\x93\x02,\"\x1d/v1/{paren\ - t=*/*}/savedQueries:\x0bsaved_query\xdaA!parent,saved_query,saved_query_\ - id\x12\x8d\x01\n\rGetSavedQuery\x12+.google.cloud.asset.v1.GetSavedQuery\ - Request\x1a!.google.cloud.asset.v1.SavedQuery\",\x82\xd3\xe4\x93\x02\x1f\ - \x12\x1d/v1/{name=*/*/savedQueries/*}\xdaA\x04name\x12\xa3\x01\n\x10List\ - SavedQueries\x12..google.cloud.asset.v1.ListSavedQueriesRequest\x1a/.goo\ - gle.cloud.asset.v1.ListSavedQueriesResponse\".\x82\xd3\xe4\x93\x02\x1f\ - \x12\x1d/v1/{parent=*/*}/savedQueries\xdaA\x06parent\x12\xbf\x01\n\x10Up\ - dateSavedQuery\x12..google.cloud.asset.v1.UpdateSavedQueryRequest\x1a!.g\ - oogle.cloud.asset.v1.SavedQuery\"X\x82\xd3\xe4\x93\x0282)/v1/{saved_quer\ - y.name=*/*/savedQueries/*}:\x0bsaved_query\xdaA\x17saved_query,update_ma\ - sk\x12\x88\x01\n\x10DeleteSavedQuery\x12..google.cloud.asset.v1.DeleteSa\ - vedQueryRequest\x1a\x16.google.protobuf.Empty\",\x82\xd3\xe4\x93\x02\x1f\ - *\x1d/v1/{name=*/*/savedQueries/*}\xdaA\x04name\x12\xce\x01\n\x1cBatchGe\ - tEffectiveIamPolicies\x12:.google.cloud.asset.v1.BatchGetEffectiveIamPol\ - iciesRequest\x1a;.google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResp\ - onse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{scope=*/*}/effectiveIamPolicies:ba\ - tchGet\x12\xbf\x01\n\x12AnalyzeOrgPolicies\x120.google.cloud.asset.v1.An\ - alyzeOrgPoliciesRequest\x1a1.google.cloud.asset.v1.AnalyzeOrgPoliciesRes\ - ponse\"D\x82\xd3\xe4\x93\x02$\x12\"/v1/{scope=*/*}:analyzeOrgPolicies\ - \xdaA\x17scope,constraint,filter\x12\xff\x01\n\"AnalyzeOrgPolicyGoverned\ - Containers\x12@.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainers\ - Request\x1aA.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersRes\ - ponse\"T\x82\xd3\xe4\x93\x024\x122/v1/{scope=*/*}:analyzeOrgPolicyGovern\ - edContainers\xdaA\x17scope,constraint,filter\x12\xef\x01\n\x1eAnalyzeOrg\ - PolicyGovernedAssets\x12<.google.cloud.asset.v1.AnalyzeOrgPolicyGoverned\ - AssetsRequest\x1a=.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsR\ - esponse\"P\x82\xd3\xe4\x93\x020\x12./v1/{scope=*/*}:analyzeOrgPolicyGove\ - rnedAssets\xdaA\x17scope,constraint,filter\x1aM\xd2A.https://www.googlea\ - pis.com/auth/cloud-platform\xcaA\x19cloudasset.googleapis.comB\x91\x01\n\ - \x19com.google.cloud.asset.v1B\x11AssetServiceProtoP\x01Z/cloud.google.c\ - om/go/asset/apiv1/assetpb;assetpb\xaa\x02\x15Google.Cloud.Asset.V1\xca\ - \x02\x15Google\\Cloud\\Asset\\V1J\xbc\xee\x06\n\x07\x12\x05\x0e\0\xdf\ - \x14\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20\ - 2023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ - se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ - \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ - License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ - \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ - \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1e\ - \n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\ - \x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\ - \x03\x04\x12\x03\x16\0,\n\t\n\x02\x03\x05\x12\x03\x17\0$\n\t\n\x02\x03\ - \x06\x12\x03\x18\0-\n\t\n\x02\x03\x07\x12\x03\x19\0(\n\t\n\x02\x03\x08\ - \x12\x03\x1a\0%\n\t\n\x02\x03\t\x12\x03\x1b\0*\n\t\n\x02\x03\n\x12\x03\ - \x1c\0&\n\t\n\x02\x03\x0b\x12\x03\x1d\0)\n\t\n\x02\x03\x0c\x12\x03\x1e\0\ - !\n\t\n\x02\x03\r\x12\x03\x1f\0\x20\n\x08\n\x01\x08\x12\x03!\02\n\t\n\ - \x02\x08%\x12\x03!\02\n\x08\n\x01\x08\x12\x03\"\0F\n\t\n\x02\x08\x0b\x12\ - \x03\"\0F\n\x08\n\x01\x08\x12\x03#\0\"\n\t\n\x02\x08\n\x12\x03#\0\"\n\ - \x08\n\x01\x08\x12\x03$\02\n\t\n\x02\x08\x08\x12\x03$\02\n\x08\n\x01\x08\ - \x12\x03%\02\n\t\n\x02\x08\x01\x12\x03%\02\n\x08\n\x01\x08\x12\x03&\02\n\ - \t\n\x02\x08)\x12\x03&\02\n(\n\x02\x06\0\x12\x05)\0\xbd\x02\x01\x1a\x1b\ - \x20Asset\x20service\x20definition.\n\n\n\n\x03\x06\0\x01\x12\x03)\x08\ - \x14\n\n\n\x03\x06\0\x03\x12\x03*\x02A\n\x0c\n\x05\x06\0\x03\x99\x08\x12\ - \x03*\x02A\n\x0b\n\x03\x06\0\x03\x12\x04+\x02,7\n\r\n\x05\x06\0\x03\x9a\ - \x08\x12\x04+\x02,7\n\xe1\x05\n\x04\x06\0\x02\0\x12\x049\x02B\x03\x1a\ - \xd2\x05\x20Exports\x20assets\x20with\x20time\x20and\x20resource\x20type\ - s\x20to\x20a\x20given\x20Cloud\x20Storage\n\x20location/BigQuery\x20tabl\ - e.\x20For\x20Cloud\x20Storage\x20location\x20destinations,\x20the\n\x20o\ - utput\x20format\x20is\x20newline-delimited\x20JSON.\x20Each\x20line\x20r\ - epresents\x20a\n\x20[google.cloud.asset.v1.Asset][google.cloud.asset.v1.\ - Asset]\x20in\x20the\x20JSON\n\x20format;\x20for\x20BigQuery\x20table\x20\ - destinations,\x20the\x20output\x20table\x20stores\x20the\x20fields\n\x20\ - in\x20asset\x20Protobuf\x20as\x20columns.\x20This\x20API\x20implements\ - \x20the\n\x20[google.longrunning.Operation][google.longrunning.Operation\ - ]\x20API,\x20which\n\x20allows\x20you\x20to\x20keep\x20track\x20of\x20th\ - e\x20export.\x20We\x20recommend\x20intervals\x20of\x20at\x20least\n\x202\ - \x20seconds\x20with\x20exponential\x20retry\x20to\x20poll\x20the\x20expo\ - rt\x20operation\x20result.\x20For\n\x20regular-size\x20resource\x20paren\ - t,\x20the\x20export\x20operation\x20usually\x20finishes\x20within\n\x205\ - \x20minutes.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x039\x06\x12\n\x0c\n\x05\ - \x06\0\x02\0\x02\x12\x039\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0391M\n\ - \r\n\x05\x06\0\x02\0\x04\x12\x04:\x04=\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\ - \xca\xbc\"\x12\x04:\x04=\x06\n\r\n\x05\x06\0\x02\0\x04\x12\x04>\x04A\x06\ - \n\x0f\n\x07\x06\0\x02\0\x04\x99\x08\x12\x04>\x04A\x06\na\n\x04\x06\0\ - \x02\x01\x12\x04F\x02K\x03\x1aS\x20Lists\x20assets\x20with\x20time\x20an\ - d\x20resource\x20types\x20and\x20returns\x20paged\x20results\x20in\n\x20\ - response.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03F\x06\x10\n\x0c\n\x05\ - \x06\0\x02\x01\x02\x12\x03F\x11\"\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03F\ - -?\n\r\n\x05\x06\0\x02\x01\x04\x12\x04G\x04I\x06\n\x11\n\t\x06\0\x02\x01\ - \x04\xb0\xca\xbc\"\x12\x04G\x04I\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\ - \x03J\x044\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03J\x044\n\x94\ - \x03\n\x04\x06\0\x02\x02\x12\x04T\x02Y\x03\x1a\x85\x03\x20Batch\x20gets\ - \x20the\x20update\x20history\x20of\x20assets\x20that\x20overlap\x20a\x20\ - time\x20window.\n\x20For\x20IAM_POLICY\x20content,\x20this\x20API\x20out\ - puts\x20history\x20when\x20the\x20asset\x20and\x20its\n\x20attached\x20I\ - AM\x20POLICY\x20both\x20exist.\x20This\x20can\x20create\x20gaps\x20in\ - \x20the\x20output\x20history.\n\x20Otherwise,\x20this\x20API\x20outputs\ - \x20history\x20with\x20asset\x20in\x20both\x20non-delete\x20or\n\x20dele\ - ted\x20status.\n\x20If\x20a\x20specified\x20asset\x20does\x20not\x20exis\ - t,\x20this\x20API\x20returns\x20an\x20INVALID_ARGUMENT\n\x20error.\n\n\ - \x0c\n\x05\x06\0\x02\x02\x01\x12\x03T\x06\x1b\n\x0c\n\x05\x06\0\x02\x02\ - \x02\x12\x03T\x1c8\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03U\x0f,\n\r\n\x05\ - \x06\0\x02\x02\x04\x12\x04V\x04X\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ - \xbc\"\x12\x04V\x04X\x06\ng\n\x04\x06\0\x02\x03\x12\x04]\x02c\x03\x1aY\ - \x20Creates\x20a\x20feed\x20in\x20a\x20parent\x20project/folder/organiza\ - tion\x20to\x20listen\x20to\x20its\n\x20asset\x20updates.\n\n\x0c\n\x05\ - \x06\0\x02\x03\x01\x12\x03]\x06\x10\n\x0c\n\x05\x06\0\x02\x03\x02\x12\ - \x03]\x11\"\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03]-1\n\r\n\x05\x06\0\x02\ - \x03\x04\x12\x04^\x04a\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\ - \x04^\x04a\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03b\x044\n\x0f\n\x08\ - \x06\0\x02\x03\x04\x9b\x08\0\x12\x03b\x044\n1\n\x04\x06\0\x02\x04\x12\ - \x04f\x02k\x03\x1a#\x20Gets\x20details\x20about\x20an\x20asset\x20feed.\ - \n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03f\x06\r\n\x0c\n\x05\x06\0\x02\ - \x04\x02\x12\x03f\x0e\x1c\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03f'+\n\r\n\ - \x05\x06\0\x02\x04\x04\x12\x04g\x04i\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\ - \xca\xbc\"\x12\x04g\x04i\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03j\x042\ - \n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03j\x042\nN\n\x04\x06\0\ - \x02\x05\x12\x04n\x02s\x03\x1a@\x20Lists\x20all\x20asset\x20feeds\x20in\ - \x20a\x20parent\x20project/folder/organization.\n\n\x0c\n\x05\x06\0\x02\ - \x05\x01\x12\x03n\x06\x0f\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03n\x10\x20\ - \n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03n+<\n\r\n\x05\x06\0\x02\x05\x04\ - \x12\x04o\x04q\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04o\ - \x04q\x06\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03r\x044\n\x0f\n\x08\x06\0\ - \x02\x05\x04\x9b\x08\0\x12\x03r\x044\n4\n\x04\x06\0\x02\x06\x12\x04v\x02\ - |\x03\x1a&\x20Updates\x20an\x20asset\x20feed\x20configuration.\n\n\x0c\n\ - \x05\x06\0\x02\x06\x01\x12\x03v\x06\x10\n\x0c\n\x05\x06\0\x02\x06\x02\ - \x12\x03v\x11\"\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03v-1\n\r\n\x05\x06\0\ - \x02\x06\x04\x12\x04w\x04z\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\ - \x12\x04w\x04z\x06\n\x0c\n\x05\x06\0\x02\x06\x04\x12\x03{\x042\n\x0f\n\ - \x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x03{\x042\n'\n\x04\x06\0\x02\x07\ - \x12\x05\x7f\x02\x84\x01\x03\x1a\x18\x20Deletes\x20an\x20asset\x20feed.\ - \n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03\x7f\x06\x10\n\x0c\n\x05\x06\0\ - \x02\x07\x02\x12\x03\x7f\x11\"\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03\x7f\ - -B\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x80\x01\x04\x82\x01\x06\n\x13\n\ - \t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x80\x01\x04\x82\x01\x06\n\r\n\ - \x05\x06\0\x02\x07\x04\x12\x04\x83\x01\x042\n\x10\n\x08\x06\0\x02\x07\ - \x04\x9b\x08\0\x12\x04\x83\x01\x042\n\x90\x02\n\x04\x06\0\x02\x08\x12\ - \x06\x8a\x01\x02\x90\x01\x03\x1a\xff\x01\x20Searches\x20all\x20Google\ - \x20Cloud\x20resources\x20within\x20the\x20specified\x20scope,\x20such\ - \x20as\x20a\n\x20project,\x20folder,\x20or\x20organization.\x20The\x20ca\ - ller\x20must\x20be\x20granted\x20the\n\x20`cloudasset.assets.searchAllRe\ - sources`\x20permission\x20on\x20the\x20desired\x20scope,\n\x20otherwise\ - \x20the\x20request\x20will\x20be\x20rejected.\n\n\r\n\x05\x06\0\x02\x08\ - \x01\x12\x04\x8a\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x8a\x01\ - \x192\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x8b\x01\x0f)\n\x0f\n\x05\x06\0\ - \x02\x08\x04\x12\x06\x8c\x01\x04\x8e\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\ - \xb0\xca\xbc\"\x12\x06\x8c\x01\x04\x8e\x01\x06\n\r\n\x05\x06\0\x02\x08\ - \x04\x12\x04\x8f\x01\x04E\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\ - \x04\x8f\x01\x04E\n\x88\x02\n\x04\x06\0\x02\t\x12\x06\x96\x01\x02\x9c\ - \x01\x03\x1a\xf7\x01\x20Searches\x20all\x20IAM\x20policies\x20within\x20\ - the\x20specified\x20scope,\x20such\x20as\x20a\x20project,\n\x20folder,\ - \x20or\x20organization.\x20The\x20caller\x20must\x20be\x20granted\x20the\ - \n\x20`cloudasset.assets.searchAllIamPolicies`\x20permission\x20on\x20th\ - e\x20desired\x20scope,\n\x20otherwise\x20the\x20request\x20will\x20be\ - \x20rejected.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\x96\x01\x06\x1a\n\r\n\ - \x05\x06\0\x02\t\x02\x12\x04\x96\x01\x1b6\n\r\n\x05\x06\0\x02\t\x03\x12\ - \x04\x97\x01\x0f+\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\x98\x01\x04\x9a\ - \x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\x98\x01\x04\x9a\ - \x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\x9b\x01\x049\n\x10\n\x08\x06\ - \0\x02\t\x04\x9b\x08\0\x12\x04\x9b\x01\x049\nj\n\x04\x06\0\x02\n\x12\x06\ - \xa0\x01\x02\xa5\x01\x03\x1aZ\x20Analyzes\x20IAM\x20policies\x20to\x20an\ - swer\x20which\x20identities\x20have\x20what\x20accesses\x20on\n\x20which\ - \x20resources.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xa0\x01\x06\x16\n\r\n\ - \x05\x06\0\x02\n\x02\x12\x04\xa0\x01\x17.\n\r\n\x05\x06\0\x02\n\x03\x12\ - \x04\xa1\x01\x0f'\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xa2\x01\x04\xa4\ - \x01\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xa2\x01\x04\xa4\ - \x01\x06\n\xaf\x05\n\x04\x06\0\x02\x0b\x12\x06\xb1\x01\x02\xbb\x01\x03\ - \x1a\x9e\x05\x20Analyzes\x20IAM\x20policies\x20asynchronously\x20to\x20a\ - nswer\x20which\x20identities\x20have\x20what\n\x20accesses\x20on\x20whic\ - h\x20resources,\x20and\x20writes\x20the\x20analysis\x20results\x20to\x20\ - a\x20Google\n\x20Cloud\x20Storage\x20or\x20a\x20BigQuery\x20destination.\ - \x20For\x20Cloud\x20Storage\x20destination,\x20the\n\x20output\x20format\ - \x20is\x20the\x20JSON\x20format\x20that\x20represents\x20a\n\x20[Analyze\ - IamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].\n\ - \x20This\x20method\x20implements\x20the\n\x20[google.longrunning.Operati\ - on][google.longrunning.Operation],\x20which\x20allows\n\x20you\x20to\x20\ - track\x20the\x20operation\x20status.\x20We\x20recommend\x20intervals\x20\ - of\x20at\x20least\x202\n\x20seconds\x20with\x20exponential\x20backoff\ - \x20retry\x20to\x20poll\x20the\x20operation\x20result.\x20The\n\x20metad\ - ata\x20contains\x20the\x20metadata\x20for\x20the\x20long-running\x20oper\ - ation.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xb1\x01\x06!\n\r\n\x05\x06\ - \0\x02\x0b\x02\x12\x04\xb1\x01\"D\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\ - \xb2\x01\x0f+\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xb3\x01\x04\xb6\x01\ - \x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xb3\x01\x04\xb6\ - \x01\x06\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xb7\x01\x04\xba\x01\x06\n\ - \x11\n\x07\x06\0\x02\x0b\x04\x99\x08\x12\x06\xb7\x01\x04\xba\x01\x06\n\ - \xd6\x02\n\x04\x06\0\x02\x0c\x12\x06\xc2\x01\x02\xc6\x01\x03\x1a\xc5\x02\ - \x20Analyze\x20moving\x20a\x20resource\x20to\x20a\x20specified\x20destin\ - ation\x20without\x20kicking\x20off\n\x20the\x20actual\x20move.\x20The\ - \x20analysis\x20is\x20best\x20effort\x20depending\x20on\x20the\x20user's\ - \n\x20permissions\x20of\x20viewing\x20different\x20hierarchical\x20polic\ - ies\x20and\x20configurations.\n\x20The\x20policies\x20and\x20configurati\ - on\x20are\x20subject\x20to\x20change\x20before\x20the\x20actual\n\x20res\ - ource\x20migration\x20takes\x20place.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\ - \x04\xc2\x01\x06\x11\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xc2\x01\x12$\n\ - \r\n\x05\x06\0\x02\x0c\x03\x12\x04\xc2\x01/B\n\x0f\n\x05\x06\0\x02\x0c\ - \x04\x12\x06\xc3\x01\x04\xc5\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\ - \xbc\"\x12\x06\xc3\x01\x04\xc5\x01\x06\n\x96\x05\n\x04\x06\0\x02\r\x12\ - \x06\xd4\x01\x02\xd9\x01\x03\x1a\x85\x05\x20Issue\x20a\x20job\x20that\ - \x20queries\x20assets\x20using\x20a\x20SQL\x20statement\x20compatible\ - \x20with\n\x20[BigQuery\x20SQL](https://cloud.google.com/bigquery/docs/i\ - ntroduction-sql).\n\n\x20If\x20the\x20query\x20execution\x20finishes\x20\ - within\x20timeout\x20and\x20there's\x20no\x20pagination,\n\x20the\x20ful\ - l\x20query\x20results\x20will\x20be\x20returned\x20in\x20the\x20`QueryAs\ - setsResponse`.\n\n\x20Otherwise,\x20full\x20query\x20results\x20can\x20b\ - e\x20obtained\x20by\x20issuing\x20extra\x20requests\n\x20with\x20the\x20\ - `job_reference`\x20from\x20the\x20a\x20previous\x20`QueryAssets`\x20call\ - .\n\n\x20Note,\x20the\x20query\x20result\x20has\x20approximately\x2010\ - \x20GB\x20limitation\x20enforced\x20by\n\x20[BigQuery](https://cloud.goo\ - gle.com/bigquery/docs/best-practices-performance-output).\n\x20Queries\ - \x20return\x20larger\x20results\x20will\x20result\x20in\x20errors.\n\n\r\ - \n\x05\x06\0\x02\r\x01\x12\x04\xd4\x01\x06\x11\n\r\n\x05\x06\0\x02\r\x02\ - \x12\x04\xd4\x01\x12$\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xd4\x01/B\n\x0f\ - \n\x05\x06\0\x02\r\x04\x12\x06\xd5\x01\x04\xd8\x01\x06\n\x13\n\t\x06\0\ - \x02\r\x04\xb0\xca\xbc\"\x12\x06\xd5\x01\x04\xd8\x01\x06\nP\n\x04\x06\0\ - \x02\x0e\x12\x06\xdc\x01\x02\xe2\x01\x03\x1a@\x20Creates\x20a\x20saved\ - \x20query\x20in\x20a\x20parent\x20project/folder/organization.\n\n\r\n\ - \x05\x06\0\x02\x0e\x01\x12\x04\xdc\x01\x06\x16\n\r\n\x05\x06\0\x02\x0e\ - \x02\x12\x04\xdc\x01\x17.\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\xdc\x019C\ - \n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xdd\x01\x04\xe0\x01\x06\n\x13\n\t\ - \x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xdd\x01\x04\xe0\x01\x06\n\r\n\ - \x05\x06\0\x02\x0e\x04\x12\x04\xe1\x01\x04O\n\x10\n\x08\x06\0\x02\x0e\ - \x04\x9b\x08\0\x12\x04\xe1\x01\x04O\n3\n\x04\x06\0\x02\x0f\x12\x06\xe5\ - \x01\x02\xea\x01\x03\x1a#\x20Gets\x20details\x20about\x20a\x20saved\x20q\ - uery.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\x04\xe5\x01\x06\x13\n\r\n\x05\ - \x06\0\x02\x0f\x02\x12\x04\xe5\x01\x14(\n\r\n\x05\x06\0\x02\x0f\x03\x12\ - \x04\xe5\x013=\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xe6\x01\x04\xe8\x01\ - \x06\n\x13\n\t\x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xe6\x01\x04\xe8\ - \x01\x06\n\r\n\x05\x06\0\x02\x0f\x04\x12\x04\xe9\x01\x042\n\x10\n\x08\ - \x06\0\x02\x0f\x04\x9b\x08\0\x12\x04\xe9\x01\x042\nR\n\x04\x06\0\x02\x10\ - \x12\x06\xed\x01\x02\xf3\x01\x03\x1aB\x20Lists\x20all\x20saved\x20querie\ - s\x20in\x20a\x20parent\x20project/folder/organization.\n\n\r\n\x05\x06\0\ - \x02\x10\x01\x12\x04\xed\x01\x06\x16\n\r\n\x05\x06\0\x02\x10\x02\x12\x04\ - \xed\x01\x17.\n\r\n\x05\x06\0\x02\x10\x03\x12\x04\xee\x01\x0f'\n\x0f\n\ - \x05\x06\0\x02\x10\x04\x12\x06\xef\x01\x04\xf1\x01\x06\n\x13\n\t\x06\0\ - \x02\x10\x04\xb0\xca\xbc\"\x12\x06\xef\x01\x04\xf1\x01\x06\n\r\n\x05\x06\ - \0\x02\x10\x04\x12\x04\xf2\x01\x044\n\x10\n\x08\x06\0\x02\x10\x04\x9b\ - \x08\0\x12\x04\xf2\x01\x044\n(\n\x04\x06\0\x02\x11\x12\x06\xf6\x01\x02\ - \xfc\x01\x03\x1a\x18\x20Updates\x20a\x20saved\x20query.\n\n\r\n\x05\x06\ - \0\x02\x11\x01\x12\x04\xf6\x01\x06\x16\n\r\n\x05\x06\0\x02\x11\x02\x12\ - \x04\xf6\x01\x17.\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\xf6\x019C\n\x0f\n\ - \x05\x06\0\x02\x11\x04\x12\x06\xf7\x01\x04\xfa\x01\x06\n\x13\n\t\x06\0\ - \x02\x11\x04\xb0\xca\xbc\"\x12\x06\xf7\x01\x04\xfa\x01\x06\n\r\n\x05\x06\ - \0\x02\x11\x04\x12\x04\xfb\x01\x04E\n\x10\n\x08\x06\0\x02\x11\x04\x9b\ - \x08\0\x12\x04\xfb\x01\x04E\n(\n\x04\x06\0\x02\x12\x12\x06\xff\x01\x02\ - \x85\x02\x03\x1a\x18\x20Deletes\x20a\x20saved\x20query.\n\n\r\n\x05\x06\ - \0\x02\x12\x01\x12\x04\xff\x01\x06\x16\n\r\n\x05\x06\0\x02\x12\x02\x12\ - \x04\xff\x01\x17.\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\x80\x02\x0f$\n\x0f\ - \n\x05\x06\0\x02\x12\x04\x12\x06\x81\x02\x04\x83\x02\x06\n\x13\n\t\x06\0\ - \x02\x12\x04\xb0\xca\xbc\"\x12\x06\x81\x02\x04\x83\x02\x06\n\r\n\x05\x06\ - \0\x02\x12\x04\x12\x04\x84\x02\x042\n\x10\n\x08\x06\0\x02\x12\x04\x9b\ - \x08\0\x12\x04\x84\x02\x042\nG\n\x04\x06\0\x02\x13\x12\x06\x88\x02\x02\ - \x8d\x02\x03\x1a7\x20Gets\x20effective\x20IAM\x20policies\x20for\x20a\ - \x20batch\x20of\x20resources.\n\n\r\n\x05\x06\0\x02\x13\x01\x12\x04\x88\ - \x02\x06\"\n\r\n\x05\x06\0\x02\x13\x02\x12\x04\x88\x02#F\n\r\n\x05\x06\0\ - \x02\x13\x03\x12\x04\x89\x02\x0f3\n\x0f\n\x05\x06\0\x02\x13\x04\x12\x06\ - \x8a\x02\x04\x8c\x02\x06\n\x13\n\t\x06\0\x02\x13\x04\xb0\xca\xbc\"\x12\ - \x06\x8a\x02\x04\x8c\x02\x06\n?\n\x04\x06\0\x02\x14\x12\x06\x90\x02\x02\ - \x96\x02\x03\x1a/\x20Analyzes\x20organization\x20policies\x20under\x20a\ - \x20scope.\n\n\r\n\x05\x06\0\x02\x14\x01\x12\x04\x90\x02\x06\x18\n\r\n\ - \x05\x06\0\x02\x14\x02\x12\x04\x90\x02\x192\n\r\n\x05\x06\0\x02\x14\x03\ - \x12\x04\x91\x02\x0f)\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\x92\x02\x04\ - \x94\x02\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\xca\xbc\"\x12\x06\x92\x02\ - \x04\x94\x02\x06\n\r\n\x05\x06\0\x02\x14\x04\x12\x04\x95\x02\x04E\n\x10\ - \n\x08\x06\0\x02\x14\x04\x9b\x08\0\x12\x04\x95\x02\x04E\nx\n\x04\x06\0\ - \x02\x15\x12\x06\x9a\x02\x02\xa1\x02\x03\x1ah\x20Analyzes\x20organizatio\ - n\x20policies\x20governed\x20containers\x20(projects,\x20folders\x20or\n\ - \x20organization)\x20under\x20a\x20scope.\n\n\r\n\x05\x06\0\x02\x15\x01\ - \x12\x04\x9a\x02\x06(\n\r\n\x05\x06\0\x02\x15\x02\x12\x04\x9b\x02\x06/\n\ - \r\n\x05\x06\0\x02\x15\x03\x12\x04\x9c\x02\x0f9\n\x0f\n\x05\x06\0\x02\ - \x15\x04\x12\x06\x9d\x02\x04\x9f\x02\x06\n\x13\n\t\x06\0\x02\x15\x04\xb0\ - \xca\xbc\"\x12\x06\x9d\x02\x04\x9f\x02\x06\n\r\n\x05\x06\0\x02\x15\x04\ - \x12\x04\xa0\x02\x04E\n\x10\n\x08\x06\0\x02\x15\x04\x9b\x08\0\x12\x04\ - \xa0\x02\x04E\n\xe8\x05\n\x04\x06\0\x02\x16\x12\x06\xb6\x02\x02\xbc\x02\ - \x03\x1a\xd7\x05\x20Analyzes\x20organization\x20policies\x20governed\x20\ - assets\x20(Google\x20Cloud\x20resources\x20or\n\x20policies)\x20under\ - \x20a\x20scope.\x20This\x20RPC\x20supports\x20custom\x20constraints\x20a\ - nd\x20the\n\x20following\x2010\x20canned\x20constraints:\n\n\x20*\x20sto\ - rage.uniformBucketLevelAccess\n\x20*\x20iam.disableServiceAccountKeyCrea\ - tion\n\x20*\x20iam.allowedPolicyMemberDomains\n\x20*\x20compute.vmExtern\ - alIpAccess\n\x20*\x20appengine.enforceServiceAccountActAsCheck\n\x20*\ - \x20gcp.resourceLocations\n\x20*\x20compute.trustedImageProjects\n\x20*\ - \x20compute.skipDefaultNetworkCreation\n\x20*\x20compute.requireOsLogin\ - \n\x20*\x20compute.disableNestedVirtualization\n\n\x20This\x20RPC\x20onl\ - y\x20returns\x20either\x20resources\x20of\x20types\x20supported\x20by\ - \x20[searchable\n\x20asset\n\x20types](https://cloud.google.com/asset-in\ - ventory/docs/supported-asset-types#searchable_asset_types),\n\x20or\x20I\ - AM\x20policies.\n\n\r\n\x05\x06\0\x02\x16\x01\x12\x04\xb6\x02\x06$\n\r\n\ - \x05\x06\0\x02\x16\x02\x12\x04\xb6\x02%J\n\r\n\x05\x06\0\x02\x16\x03\x12\ - \x04\xb7\x02\x0f5\n\x0f\n\x05\x06\0\x02\x16\x04\x12\x06\xb8\x02\x04\xba\ - \x02\x06\n\x13\n\t\x06\0\x02\x16\x04\xb0\xca\xbc\"\x12\x06\xb8\x02\x04\ - \xba\x02\x06\n\r\n\x05\x06\0\x02\x16\x04\x12\x04\xbb\x02\x04E\n\x10\n\ - \x08\x06\0\x02\x16\x04\x9b\x08\0\x12\x04\xbb\x02\x04E\nn\n\x02\x04\0\x12\ - \x06\xc1\x02\0\xc5\x02\x01\x1a`\x20Represents\x20the\x20metadata\x20of\ - \x20the\x20longrunning\x20operation\x20for\x20the\n\x20AnalyzeIamPolicyL\ - ongrunning\x20RPC.\n\n\x0b\n\x03\x04\0\x01\x12\x04\xc1\x02\x08+\nB\n\x04\ - \x04\0\x02\0\x12\x06\xc3\x02\x02\xc4\x022\x1a2\x20Output\x20only.\x20The\ - \x20time\x20the\x20operation\x20was\x20created.\n\n\r\n\x05\x04\0\x02\0\ - \x06\x12\x04\xc3\x02\x02\x1b\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xc3\x02\ - \x1c'\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xc3\x02*+\n\r\n\x05\x04\0\x02\0\ - \x08\x12\x04\xc4\x02\x061\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\ - \xc4\x02\x070\n%\n\x02\x04\x01\x12\x06\xc8\x02\0\x87\x03\x01\x1a\x17\x20\ - Export\x20asset\x20request.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xc8\x02\ - \x08\x1b\n\x98\x02\n\x04\x04\x01\x02\0\x12\x06\xcd\x02\x02\xd2\x02\x04\ + \x20\x01(\x0e2\".google.cloud.asset.v1.ContentTypeR\x0bcontentType\x12M\ + \n\routput_config\x18\x05\x20\x01(\x0b2#.google.cloud.asset.v1.OutputCon\ + figR\x0coutputConfigB\x03\xe0A\x02\"\x99\x01\n\x14ExportAssetsResponse\ + \x127\n\tread_time\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ + \x08readTime\x12H\n\routput_config\x18\x02\x20\x01(\x0b2#.google.cloud.a\ + sset.v1.OutputConfigR\x0coutputConfig\"\x9e\x02\n\x1cBatchGetAssetsHisto\ + ryRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\x12\x1f\ + cloudasset.googleapis.com/Asset\xe0A\x02\x12\x1f\n\x0basset_names\x18\ + \x02\x20\x03(\tR\nassetNames\x12J\n\x0ccontent_type\x18\x03\x20\x01(\x0e\ + 2\".google.cloud.asset.v1.ContentTypeR\x0bcontentTypeB\x03\xe0A\x01\x12P\ + \n\x10read_time_window\x18\x04\x20\x01(\x0b2!.google.cloud.asset.v1.Time\ + WindowR\x0ereadTimeWindowB\x03\xe0A\x01\"]\n\x1dBatchGetAssetsHistoryRes\ + ponse\x12<\n\x06assets\x18\x01\x20\x03(\x0b2$.google.cloud.asset.v1.Temp\ + oralAssetR\x06assets\"\xd0\x01\n\x0cOutputConfig\x12P\n\x0fgcs_destinati\ + on\x18\x01\x20\x01(\x0b2%.google.cloud.asset.v1.GcsDestinationH\0R\x0egc\ + sDestination\x12_\n\x14bigquery_destination\x18\x02\x20\x01(\x0b2*.googl\ + e.cloud.asset.v1.BigQueryDestinationH\0R\x13bigqueryDestinationB\r\n\x0b\ + destination\"S\n\x0eGcsDestination\x12\x12\n\x03uri\x18\x01\x20\x01(\tH\ + \0R\x03uri\x12\x1f\n\nuri_prefix\x18\x02\x20\x01(\tH\0R\turiPrefixB\x0c\ + \n\nobject_uri\"e\n\x13BigQueryDestination\x12\x1d\n\x07dataset\x18\x01\ + \x20\x01(\tR\x07datasetB\x03\xe0A\x02\x12\x19\n\x05table\x18\x02\x20\x01\ + (\tR\x05tableB\x03\xe0A\x02\x12\x14\n\x05force\x18\x03\x20\x01(\x08R\x05\ + force*l\n\x0bContentType\x12\x1c\n\x18CONTENT_TYPE_UNSPECIFIED\x10\0\x12\ + \x0c\n\x08RESOURCE\x10\x01\x12\x0e\n\nIAM_POLICY\x10\x02\x12\x0e\n\nORG_\ + POLICY\x10\x04\x12\x11\n\rACCESS_POLICY\x10\x052\xf3\x03\n\x0cAssetServi\ + ce\x12\xde\x01\n\x0cExportAssets\x12*.google.cloud.asset.v1.ExportAssets\ + Request\x1a\x1d.google.longrunning.Operation\"\x82\x01\xcaAW\n*google.cl\ + oud.asset.v1.ExportAssetsResponse\x12)google.cloud.asset.v1.ExportAssets\ + Request\x82\xd3\xe4\x93\x02\"\"\x1d/v1/{parent=*/*}:exportAssets:\x01*\ + \x12\xb2\x01\n\x15BatchGetAssetsHistory\x123.google.cloud.asset.v1.Batch\ + GetAssetsHistoryRequest\x1a4.google.cloud.asset.v1.BatchGetAssetsHistory\ + Response\".\x82\xd3\xe4\x93\x02(\x12&/v1/{parent=*/*}:batchGetAssetsHist\ + ory\x1aM\xd2A.https://www.googleapis.com/auth/cloud-platform\xcaA\x19clo\ + udasset.googleapis.comB\x9c\x01\n\x19com.google.cloud.asset.v1B\x11Asset\ + ServiceProtoP\x01Z:google.golang.org/genproto/googleapis/cloud/asset/v1;\ + asset\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\\ + V1J\xf7B\n\x07\x12\x05\x0f\0\xeb\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\ + \0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\ + \x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"Li\ + cense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ + \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ + \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ + .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ + icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ + istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ + \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ + S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ + \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ + \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ + \n\x08\n\x01\x02\x12\x03\x11\0\x1e\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\ + \x02\x03\x01\x12\x03\x14\0!\n\t\n\x02\x03\x02\x12\x03\x15\0)\n\t\n\x02\ + \x03\x03\x12\x03\x16\0#\n\t\n\x02\x03\x04\x12\x03\x17\0,\n\t\n\x02\x03\ + \x05\x12\x03\x18\0-\n\t\n\x02\x03\x06\x12\x03\x19\0%\n\t\n\x02\x03\x07\ + \x12\x03\x1a\0*\n\t\n\x02\x03\x08\x12\x03\x1b\0)\n\x08\n\x01\x08\x12\x03\ + \x1d\02\n\t\n\x02\x08%\x12\x03\x1d\02\n\x08\n\x01\x08\x12\x03\x1e\0Q\n\t\ + \n\x02\x08\x0b\x12\x03\x1e\0Q\n\x08\n\x01\x08\x12\x03\x1f\0\"\n\t\n\x02\ + \x08\n\x12\x03\x1f\0\"\n\x08\n\x01\x08\x12\x03\x20\02\n\t\n\x02\x08\x08\ + \x12\x03\x20\02\n\x08\n\x01\x08\x12\x03!\02\n\t\n\x02\x08\x01\x12\x03!\0\ + 2\n\x08\n\x01\x08\x12\x03\"\02\n\t\n\x02\x08)\x12\x03\"\02\n'\n\x02\x06\ + \0\x12\x04%\0D\x01\x1a\x1b\x20Asset\x20service\x20definition.\n\n\n\n\ + \x03\x06\0\x01\x12\x03%\x08\x14\n\n\n\x03\x06\0\x03\x12\x03&\x02A\n\x0c\ + \n\x05\x06\0\x03\x99\x08\x12\x03&\x02A\n\n\n\x03\x06\0\x03\x12\x03'\x02V\ + \n\x0c\n\x05\x06\0\x03\x9a\x08\x12\x03'\x02V\n\x92\x02\n\x04\x06\0\x02\0\ + \x12\x04-\x026\x03\x1a\x83\x02\x20Exports\x20assets\x20with\x20time\x20a\ + nd\x20resource\x20types\x20to\x20a\x20given\x20Cloud\x20Storage\n\x20loc\ + ation.\x20The\x20output\x20format\x20is\x20newline-delimited\x20JSON.\n\ + \x20This\x20API\x20implements\x20the\x20[google.longrunning.Operation][g\ + oogle.longrunning.Operation]\x20API\x20allowing\x20you\n\x20to\x20keep\ + \x20track\x20of\x20the\x20export.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03-\ + \x06\x12\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03-\x13&\n\x0c\n\x05\x06\0\x02\ + \0\x03\x12\x03-1M\n\r\n\x05\x06\0\x02\0\x04\x12\x04.\x041\x06\n\x11\n\t\ + \x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04.\x041\x06\n\r\n\x05\x06\0\x02\0\ + \x04\x12\x042\x045\x06\n\x0f\n\x07\x06\0\x02\0\x04\x99\x08\x12\x042\x045\ + \x06\n\x9f\x03\n\x04\x06\0\x02\x01\x12\x04?\x02C\x03\x1a\x90\x03\x20Batc\ + h\x20gets\x20the\x20update\x20history\x20of\x20assets\x20that\x20overlap\ + \x20a\x20time\x20window.\n\x20For\x20RESOURCE\x20content,\x20this\x20API\ + \x20outputs\x20history\x20with\x20asset\x20in\x20both\n\x20non-delete\ + \x20or\x20deleted\x20status.\n\x20For\x20IAM_POLICY\x20content,\x20this\ + \x20API\x20outputs\x20history\x20when\x20the\x20asset\x20and\x20its\n\ + \x20attached\x20IAM\x20POLICY\x20both\x20exist.\x20This\x20can\x20create\ + \x20gaps\x20in\x20the\x20output\x20history.\n\x20If\x20a\x20specified\ + \x20asset\x20does\x20not\x20exist,\x20this\x20API\x20returns\x20an\x20IN\ + VALID_ARGUMENT\n\x20error.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03?\x06\ + \x1b\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03?\x1c8\n\x0c\n\x05\x06\0\x02\ + \x01\x03\x12\x03?C`\n\r\n\x05\x06\0\x02\x01\x04\x12\x04@\x04B\x06\n\x11\ + \n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04@\x04B\x06\n#\n\x02\x04\0\ + \x12\x04G\0h\x01\x1a\x17\x20Export\x20asset\x20request.\n\n\n\n\x03\x04\ + \0\x01\x12\x03G\x08\x1b\n\x96\x02\n\x04\x04\0\x02\0\x12\x04L\x02Q\x04\ \x1a\x87\x02\x20Required.\x20The\x20relative\x20name\x20of\x20the\x20roo\ t\x20asset.\x20This\x20can\x20only\x20be\x20an\n\x20organization\x20numb\ er\x20(such\x20as\x20\"organizations/123\"),\x20a\x20project\x20ID\x20(s\ uch\x20as\n\x20\"projects/my-project-id\"),\x20or\x20a\x20project\x20num\ ber\x20(such\x20as\x20\"projects/12345\"),\n\x20or\x20a\x20folder\x20num\ - ber\x20(such\x20as\x20\"folders/123\").\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xcd\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xcd\x02\t\ - \x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xcd\x02\x12\x13\n\x0f\n\x05\x04\ - \x01\x02\0\x08\x12\x06\xcd\x02\x14\xd2\x02\x03\n\x10\n\x08\x04\x01\x02\0\ - \x08\x9c\x08\0\x12\x04\xce\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\ - \x08\x12\x06\xcf\x02\x04\xd1\x02\x05\n\xe9\x02\n\x04\x04\x01\x02\x01\x12\ - \x04\xd9\x02\x02*\x1a\xda\x02\x20Timestamp\x20to\x20take\x20an\x20asset\ - \x20snapshot.\x20This\x20can\x20only\x20be\x20set\x20to\x20a\x20timestam\ - p\n\x20between\x20the\x20current\x20time\x20and\x20the\x20current\x20tim\ - e\x20minus\x2035\x20days\x20(inclusive).\n\x20If\x20not\x20specified,\ - \x20the\x20current\x20time\x20will\x20be\x20used.\x20Due\x20to\x20delays\ - \x20in\x20resource\n\x20data\x20collection\x20and\x20indexing,\x20there\ - \x20is\x20a\x20volatile\x20window\x20during\x20which\n\x20running\x20the\ - \x20same\x20query\x20may\x20get\x20different\x20results.\n\n\r\n\x05\x04\ - \x01\x02\x01\x06\x12\x04\xd9\x02\x02\x1b\n\r\n\x05\x04\x01\x02\x01\x01\ - \x12\x04\xd9\x02\x1c%\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xd9\x02()\n\ - \xe3\x06\n\x04\x04\x01\x02\x02\x12\x04\xed\x02\x02\"\x1a\xd4\x06\x20A\ - \x20list\x20of\x20asset\x20types\x20to\x20take\x20a\x20snapshot\x20for.\ - \x20For\x20example:\n\x20\"compute.googleapis.com/Disk\".\n\n\x20Regular\ - \x20expressions\x20are\x20also\x20supported.\x20For\x20example:\n\n\x20*\ - \x20\"compute.googleapis.com.*\"\x20snapshots\x20resources\x20whose\x20a\ - sset\x20type\x20starts\n\x20with\x20\"compute.googleapis.com\".\n\x20*\ - \x20\".*Instance\"\x20snapshots\x20resources\x20whose\x20asset\x20type\ - \x20ends\x20with\x20\"Instance\".\n\x20*\x20\".*Instance.*\"\x20snapshot\ - s\x20resources\x20whose\x20asset\x20type\x20contains\x20\"Instance\".\n\ - \n\x20See\x20[RE2](https://github.com/google/re2/wiki/Syntax)\x20for\x20\ - all\x20supported\n\x20regular\x20expression\x20syntax.\x20If\x20the\x20r\ - egular\x20expression\x20does\x20not\x20match\x20any\n\x20supported\x20as\ - set\x20type,\x20an\x20INVALID_ARGUMENT\x20error\x20will\x20be\x20returne\ - d.\n\n\x20If\x20specified,\x20only\x20matching\x20assets\x20will\x20be\ - \x20returned,\x20otherwise,\x20it\x20will\n\x20snapshot\x20all\x20asset\ - \x20types.\x20See\x20[Introduction\x20to\x20Cloud\x20Asset\n\x20Inventor\ - y](https://cloud.google.com/asset-inventory/docs/overview)\n\x20for\x20a\ - ll\x20supported\x20asset\x20types.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\ - \x04\xed\x02\x02\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xed\x02\x0b\x11\ - \n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xed\x02\x12\x1d\n\r\n\x05\x04\x01\ - \x02\x02\x03\x12\x04\xed\x02\x20!\nf\n\x04\x04\x01\x02\x03\x12\x04\xf1\ - \x02\x02\x1f\x1aX\x20Asset\x20content\x20type.\x20If\x20not\x20specified\ - ,\x20no\x20content\x20but\x20the\x20asset\x20name\x20will\x20be\n\x20ret\ - urned.\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\xf1\x02\x02\r\n\r\n\x05\ - \x04\x01\x02\x03\x01\x12\x04\xf1\x02\x0e\x1a\n\r\n\x05\x04\x01\x02\x03\ - \x03\x12\x04\xf1\x02\x1d\x1e\n_\n\x04\x04\x01\x02\x04\x12\x04\xf5\x02\ - \x02J\x1aQ\x20Required.\x20Output\x20configuration\x20indicating\x20wher\ - e\x20the\x20results\x20will\x20be\x20output\n\x20to.\n\n\r\n\x05\x04\x01\ - \x02\x04\x06\x12\x04\xf5\x02\x02\x0e\n\r\n\x05\x04\x01\x02\x04\x01\x12\ - \x04\xf5\x02\x0f\x1c\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xf5\x02\x1f\ - \x20\n\r\n\x05\x04\x01\x02\x04\x08\x12\x04\xf5\x02!I\n\x10\n\x08\x04\x01\ - \x02\x04\x08\x9c\x08\0\x12\x04\xf5\x02\"H\n\xbb\x06\n\x04\x04\x01\x02\ - \x05\x12\x04\x86\x03\x02)\x1a\xac\x06\x20A\x20list\x20of\x20relationship\ - \x20types\x20to\x20export,\x20for\x20example:\n\x20`INSTANCE_TO_INSTANCE\ - GROUP`.\x20This\x20field\x20should\x20only\x20be\x20specified\x20if\n\ - \x20content_type=RELATIONSHIP.\n\x20*\x20If\x20specified:\n\x20it\x20sna\ - pshots\x20specified\x20relationships.\x20It\x20returns\x20an\x20error\ - \x20if\n\x20any\x20of\x20the\x20[relationship_types]\x20doesn't\x20belon\ - g\x20to\x20the\x20supported\n\x20relationship\x20types\x20of\x20the\x20[\ - asset_types]\x20or\x20if\x20any\x20of\x20the\x20[asset_types]\n\x20doesn\ - 't\x20belong\x20to\x20the\x20source\x20types\x20of\x20the\x20[relationsh\ - ip_types].\n\x20*\x20Otherwise:\n\x20it\x20snapshots\x20the\x20supported\ - \x20relationships\x20for\x20all\x20[asset_types]\x20or\x20returns\n\x20a\ - n\x20error\x20if\x20any\x20of\x20the\x20[asset_types]\x20has\x20no\x20re\ - lationship\x20support.\n\x20An\x20unspecified\x20asset\x20types\x20field\ - \x20means\x20all\x20supported\x20asset_types.\n\x20See\x20[Introduction\ - \x20to\x20Cloud\x20Asset\n\x20Inventory](https://cloud.google.com/asset-\ - inventory/docs/overview)\x20for\x20all\n\x20supported\x20asset\x20types\ - \x20and\x20relationship\x20types.\n\n\r\n\x05\x04\x01\x02\x05\x04\x12\ - \x04\x86\x03\x02\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\x86\x03\x0b\x11\ - \n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\x86\x03\x12$\n\r\n\x05\x04\x01\ - \x02\x05\x03\x12\x04\x86\x03'(\n\x95\x02\n\x02\x04\x02\x12\x06\x8e\x03\0\ - \x9b\x03\x01\x1a\x86\x02\x20The\x20export\x20asset\x20response.\x20This\ - \x20message\x20is\x20returned\x20by\x20the\n\x20[google.longrunning.Oper\ - ations.GetOperation][google.longrunning.Operations.GetOperation]\n\x20me\ - thod\x20in\x20the\x20returned\n\x20[google.longrunning.Operation.respons\ - e][google.longrunning.Operation.response]\n\x20field.\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\x8e\x03\x08\x1c\n,\n\x04\x04\x02\x02\0\x12\x04\x90\x03\ - \x02*\x1a\x1e\x20Time\x20the\x20snapshot\x20was\x20taken.\n\n\r\n\x05\ - \x04\x02\x02\0\x06\x12\x04\x90\x03\x02\x1b\n\r\n\x05\x04\x02\x02\0\x01\ - \x12\x04\x90\x03\x1c%\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x90\x03()\nQ\n\ - \x04\x04\x02\x02\x01\x12\x04\x93\x03\x02!\x1aC\x20Output\x20configuratio\ - n\x20indicating\x20where\x20the\x20results\x20were\x20output\x20to.\n\n\ - \r\n\x05\x04\x02\x02\x01\x06\x12\x04\x93\x03\x02\x0e\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\x93\x03\x0f\x1c\n\r\n\x05\x04\x02\x02\x01\x03\x12\ - \x04\x93\x03\x1f\x20\n\xe0\x02\n\x04\x04\x02\x02\x02\x12\x04\x9a\x03\x02\ - !\x1a\xd1\x02\x20Output\x20result\x20indicating\x20where\x20the\x20asset\ - s\x20were\x20exported\x20to.\x20For\x20example,\x20a\n\x20set\x20of\x20a\ - ctual\x20Cloud\x20Storage\x20object\x20URIs\x20where\x20the\x20assets\ - \x20are\x20exported\x20to.\n\x20The\x20URIs\x20can\x20be\x20different\ - \x20from\x20what\x20[output_config]\x20has\x20specified,\x20as\x20the\n\ - \x20service\x20will\x20split\x20the\x20output\x20object\x20into\x20multi\ - ple\x20ones\x20once\x20it\x20exceeds\x20a\n\x20single\x20Cloud\x20Storag\ - e\x20object\x20limit.\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\x9a\x03\ - \x02\x0e\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9a\x03\x0f\x1c\n\r\n\x05\ - \x04\x02\x02\x02\x03\x12\x04\x9a\x03\x1f\x20\n#\n\x02\x04\x03\x12\x06\ - \x9e\x03\0\xe3\x03\x01\x1a\x15\x20ListAssets\x20request.\n\n\x0b\n\x03\ - \x04\x03\x01\x12\x04\x9e\x03\x08\x19\n\xdc\x02\n\x04\x04\x03\x02\0\x12\ - \x06\xa4\x03\x02\xa9\x03\x04\x1a\xcb\x02\x20Required.\x20Name\x20of\x20t\ - he\x20organization,\x20folder,\x20or\x20project\x20the\x20assets\x20belo\ - ng\n\x20to.\x20Format:\x20\"organizations/[organization-number]\"\x20(su\ - ch\x20as\n\x20\"organizations/123\"),\x20\"projects/[project-id]\"\x20(s\ - uch\x20as\n\x20\"projects/my-project-id\"),\x20\"projects/[project-numbe\ - r]\"\x20(such\x20as\n\x20\"projects/12345\"),\x20or\x20\"folders/[folder\ - -number]\"\x20(such\x20as\x20\"folders/12345\").\n\n\r\n\x05\x04\x03\x02\ - \0\x05\x12\x04\xa4\x03\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa4\ - \x03\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa4\x03\x12\x13\n\x0f\n\ - \x05\x04\x03\x02\0\x08\x12\x06\xa4\x03\x14\xa9\x03\x03\n\x10\n\x08\x04\ - \x03\x02\0\x08\x9c\x08\0\x12\x04\xa5\x03\x04*\n\x11\n\x07\x04\x03\x02\0\ - \x08\x9f\x08\x12\x06\xa6\x03\x04\xa8\x03\x05\n\xe9\x02\n\x04\x04\x03\x02\ - \x01\x12\x04\xb0\x03\x02*\x1a\xda\x02\x20Timestamp\x20to\x20take\x20an\ - \x20asset\x20snapshot.\x20This\x20can\x20only\x20be\x20set\x20to\x20a\ - \x20timestamp\n\x20between\x20the\x20current\x20time\x20and\x20the\x20cu\ - rrent\x20time\x20minus\x2035\x20days\x20(inclusive).\n\x20If\x20not\x20s\ - pecified,\x20the\x20current\x20time\x20will\x20be\x20used.\x20Due\x20to\ - \x20delays\x20in\x20resource\n\x20data\x20collection\x20and\x20indexing,\ - \x20there\x20is\x20a\x20volatile\x20window\x20during\x20which\n\x20runni\ - ng\x20the\x20same\x20query\x20may\x20get\x20different\x20results.\n\n\r\ - \n\x05\x04\x03\x02\x01\x06\x12\x04\xb0\x03\x02\x1b\n\r\n\x05\x04\x03\x02\ - \x01\x01\x12\x04\xb0\x03\x1c%\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xb0\ - \x03()\n\xe1\x06\n\x04\x04\x03\x02\x02\x12\x04\xc4\x03\x02\"\x1a\xd2\x06\ - \x20A\x20list\x20of\x20asset\x20types\x20to\x20take\x20a\x20snapshot\x20\ - for.\x20For\x20example:\n\x20\"compute.googleapis.com/Disk\".\n\n\x20Reg\ - ular\x20expression\x20is\x20also\x20supported.\x20For\x20example:\n\n\ - \x20*\x20\"compute.googleapis.com.*\"\x20snapshots\x20resources\x20whose\ - \x20asset\x20type\x20starts\n\x20with\x20\"compute.googleapis.com\".\n\ - \x20*\x20\".*Instance\"\x20snapshots\x20resources\x20whose\x20asset\x20t\ - ype\x20ends\x20with\x20\"Instance\".\n\x20*\x20\".*Instance.*\"\x20snaps\ - hots\x20resources\x20whose\x20asset\x20type\x20contains\x20\"Instance\".\ - \n\n\x20See\x20[RE2](https://github.com/google/re2/wiki/Syntax)\x20for\ - \x20all\x20supported\n\x20regular\x20expression\x20syntax.\x20If\x20the\ - \x20regular\x20expression\x20does\x20not\x20match\x20any\n\x20supported\ - \x20asset\x20type,\x20an\x20INVALID_ARGUMENT\x20error\x20will\x20be\x20r\ - eturned.\n\n\x20If\x20specified,\x20only\x20matching\x20assets\x20will\ - \x20be\x20returned,\x20otherwise,\x20it\x20will\n\x20snapshot\x20all\x20\ - asset\x20types.\x20See\x20[Introduction\x20to\x20Cloud\x20Asset\n\x20Inv\ - entory](https://cloud.google.com/asset-inventory/docs/overview)\n\x20for\ - \x20all\x20supported\x20asset\x20types.\n\n\r\n\x05\x04\x03\x02\x02\x04\ - \x12\x04\xc4\x03\x02\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xc4\x03\x0b\ - \x11\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xc4\x03\x12\x1d\n\r\n\x05\x04\ - \x03\x02\x02\x03\x12\x04\xc4\x03\x20!\nf\n\x04\x04\x03\x02\x03\x12\x04\ - \xc8\x03\x02\x1f\x1aX\x20Asset\x20content\x20type.\x20If\x20not\x20speci\ - fied,\x20no\x20content\x20but\x20the\x20asset\x20name\x20will\n\x20be\ - \x20returned.\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xc8\x03\x02\r\n\r\ - \n\x05\x04\x03\x02\x03\x01\x12\x04\xc8\x03\x0e\x1a\n\r\n\x05\x04\x03\x02\ - \x03\x03\x12\x04\xc8\x03\x1d\x1e\n\x85\x01\n\x04\x04\x03\x02\x04\x12\x04\ - \xcc\x03\x02\x16\x1aw\x20The\x20maximum\x20number\x20of\x20assets\x20to\ - \x20be\x20returned\x20in\x20a\x20single\x20response.\x20Default\n\x20is\ - \x20100,\x20minimum\x20is\x201,\x20and\x20maximum\x20is\x201000.\n\n\r\n\ - \x05\x04\x03\x02\x04\x05\x12\x04\xcc\x03\x02\x07\n\r\n\x05\x04\x03\x02\ - \x04\x01\x12\x04\xcc\x03\x08\x11\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\ - \xcc\x03\x14\x15\n\xf1\x01\n\x04\x04\x03\x02\x05\x12\x04\xd1\x03\x02\x18\ - \x1a\xe2\x01\x20The\x20`next_page_token`\x20returned\x20from\x20the\x20p\ - revious\x20`ListAssetsResponse`,\x20or\n\x20unspecified\x20for\x20the\ - \x20first\x20`ListAssetsRequest`.\x20It\x20is\x20a\x20continuation\x20of\ - \x20a\n\x20prior\x20`ListAssets`\x20call,\x20and\x20the\x20API\x20should\ - \x20return\x20the\x20next\x20page\x20of\x20assets.\n\n\r\n\x05\x04\x03\ - \x02\x05\x05\x12\x04\xd1\x03\x02\x08\n\r\n\x05\x04\x03\x02\x05\x01\x12\ - \x04\xd1\x03\t\x13\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xd1\x03\x16\x17\ - \n\xbb\x06\n\x04\x04\x03\x02\x06\x12\x04\xe2\x03\x02)\x1a\xac\x06\x20A\ - \x20list\x20of\x20relationship\x20types\x20to\x20output,\x20for\x20examp\ - le:\n\x20`INSTANCE_TO_INSTANCEGROUP`.\x20This\x20field\x20should\x20only\ - \x20be\x20specified\x20if\n\x20content_type=RELATIONSHIP.\n\x20*\x20If\ - \x20specified:\n\x20it\x20snapshots\x20specified\x20relationships.\x20It\ - \x20returns\x20an\x20error\x20if\n\x20any\x20of\x20the\x20[relationship_\ - types]\x20doesn't\x20belong\x20to\x20the\x20supported\n\x20relationship\ - \x20types\x20of\x20the\x20[asset_types]\x20or\x20if\x20any\x20of\x20the\ - \x20[asset_types]\n\x20doesn't\x20belong\x20to\x20the\x20source\x20types\ - \x20of\x20the\x20[relationship_types].\n\x20*\x20Otherwise:\n\x20it\x20s\ - napshots\x20the\x20supported\x20relationships\x20for\x20all\x20[asset_ty\ - pes]\x20or\x20returns\n\x20an\x20error\x20if\x20any\x20of\x20the\x20[ass\ - et_types]\x20has\x20no\x20relationship\x20support.\n\x20An\x20unspecifie\ - d\x20asset\x20types\x20field\x20means\x20all\x20supported\x20asset_types\ - .\n\x20See\x20[Introduction\x20to\x20Cloud\x20Asset\n\x20Inventory](http\ - s://cloud.google.com/asset-inventory/docs/overview)\n\x20for\x20all\x20s\ - upported\x20asset\x20types\x20and\x20relationship\x20types.\n\n\r\n\x05\ - \x04\x03\x02\x06\x04\x12\x04\xe2\x03\x02\n\n\r\n\x05\x04\x03\x02\x06\x05\ - \x12\x04\xe2\x03\x0b\x11\n\r\n\x05\x04\x03\x02\x06\x01\x12\x04\xe2\x03\ - \x12$\n\r\n\x05\x04\x03\x02\x06\x03\x12\x04\xe2\x03'(\n$\n\x02\x04\x04\ - \x12\x06\xe6\x03\0\xf1\x03\x01\x1a\x16\x20ListAssets\x20response.\n\n\ - \x0b\n\x03\x04\x04\x01\x12\x04\xe6\x03\x08\x1a\n,\n\x04\x04\x04\x02\0\ - \x12\x04\xe8\x03\x02*\x1a\x1e\x20Time\x20the\x20snapshot\x20was\x20taken\ - .\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xe8\x03\x02\x1b\n\r\n\x05\x04\ - \x04\x02\0\x01\x12\x04\xe8\x03\x1c%\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \xe8\x03()\n\x17\n\x04\x04\x04\x02\x01\x12\x04\xeb\x03\x02\x1c\x1a\t\x20\ - Assets.\n\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04\xeb\x03\x02\n\n\r\n\x05\ - \x04\x04\x02\x01\x06\x12\x04\xeb\x03\x0b\x10\n\r\n\x05\x04\x04\x02\x01\ - \x01\x12\x04\xeb\x03\x11\x17\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xeb\ - \x03\x1a\x1b\n\xb8\x01\n\x04\x04\x04\x02\x02\x12\x04\xf0\x03\x02\x1d\x1a\ - \xa9\x01\x20Token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20resu\ - lts.\x20It\x20expires\x2072\x20hours\x20after\x20the\n\x20page\x20token\ - \x20for\x20the\x20first\x20page\x20is\x20generated.\x20Set\x20to\x20empt\ - y\x20if\x20there\x20are\x20no\n\x20remaining\x20results.\n\n\r\n\x05\x04\ - \x04\x02\x02\x05\x12\x04\xf0\x03\x02\x08\n\r\n\x05\x04\x04\x02\x02\x01\ - \x12\x04\xf0\x03\t\x18\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xf0\x03\x1b\ - \x1c\n1\n\x02\x04\x05\x12\x06\xf4\x03\0\xa6\x04\x01\x1a#\x20Batch\x20get\ - \x20assets\x20history\x20request.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xf4\ - \x03\x08$\n\xea\x01\n\x04\x04\x05\x02\0\x12\x06\xf8\x03\x02\xfd\x03\x04\ - \x1a\xd9\x01\x20Required.\x20The\x20relative\x20name\x20of\x20the\x20roo\ - t\x20asset.\x20It\x20can\x20only\x20be\x20an\n\x20organization\x20number\ - \x20(such\x20as\x20\"organizations/123\"),\x20a\x20project\x20ID\x20(suc\ - h\x20as\n\x20\"projects/my-project-id\")\",\x20or\x20a\x20project\x20num\ - ber\x20(such\x20as\x20\"projects/12345\").\n\n\r\n\x05\x04\x05\x02\0\x05\ - \x12\x04\xf8\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xf8\x03\t\ - \x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xf8\x03\x12\x13\n\x0f\n\x05\x04\ - \x05\x02\0\x08\x12\x06\xf8\x03\x14\xfd\x03\x03\n\x10\n\x08\x04\x05\x02\0\ - \x08\x9c\x08\0\x12\x04\xf9\x03\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\ - \x08\x12\x06\xfa\x03\x04\xfc\x03\x05\n\xe0\x02\n\x04\x04\x05\x02\x01\x12\ - \x04\x87\x04\x02\"\x1a\xd1\x02\x20A\x20list\x20of\x20the\x20full\x20name\ - s\x20of\x20the\x20assets.\n\x20See:\x20https://cloud.google.com/asset-in\ - ventory/docs/resource-name-format\n\x20Example:\n\n\x20`//compute.google\ - apis.com/projects/my_project_123/zones/zone1/instances/instance1`.\n\n\ - \x20The\x20request\x20becomes\x20a\x20no-op\x20if\x20the\x20asset\x20nam\ - e\x20list\x20is\x20empty,\x20and\x20the\x20max\n\x20size\x20of\x20the\ - \x20asset\x20name\x20list\x20is\x20100\x20in\x20one\x20request.\n\n\r\n\ - \x05\x04\x05\x02\x01\x04\x12\x04\x87\x04\x02\n\n\r\n\x05\x04\x05\x02\x01\ - \x05\x12\x04\x87\x04\x0b\x11\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x87\ - \x04\x12\x1d\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x87\x04\x20!\n+\n\x04\ - \x04\x05\x02\x02\x12\x04\x8a\x04\x02H\x1a\x1d\x20Optional.\x20The\x20con\ - tent\x20type.\n\n\r\n\x05\x04\x05\x02\x02\x06\x12\x04\x8a\x04\x02\r\n\r\ - \n\x05\x04\x05\x02\x02\x01\x12\x04\x8a\x04\x0e\x1a\n\r\n\x05\x04\x05\x02\ - \x02\x03\x12\x04\x8a\x04\x1d\x1e\n\r\n\x05\x04\x05\x02\x02\x08\x12\x04\ - \x8a\x04\x1fG\n\x10\n\x08\x04\x05\x02\x02\x08\x9c\x08\0\x12\x04\x8a\x04\ - \x20F\n\x9e\x03\n\x04\x04\x05\x02\x03\x12\x04\x92\x04\x02K\x1a\x8f\x03\ - \x20Optional.\x20The\x20time\x20window\x20for\x20the\x20asset\x20history\ - .\x20Both\x20start_time\x20and\n\x20end_time\x20are\x20optional\x20and\ - \x20if\x20set,\x20it\x20must\x20be\x20after\x20the\x20current\x20time\ - \x20minus\n\x2035\x20days.\x20If\x20end_time\x20is\x20not\x20set,\x20it\ - \x20is\x20default\x20to\x20current\x20timestamp.\n\x20If\x20start_time\ - \x20is\x20not\x20set,\x20the\x20snapshot\x20of\x20the\x20assets\x20at\ - \x20end_time\x20will\x20be\n\x20returned.\x20The\x20returned\x20results\ - \x20contain\x20all\x20temporal\x20assets\x20whose\x20time\n\x20window\ - \x20overlap\x20with\x20read_time_window.\n\n\r\n\x05\x04\x05\x02\x03\x06\ - \x12\x04\x92\x04\x02\x0c\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\x92\x04\r\ - \x1d\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\x92\x04\x20!\n\r\n\x05\x04\ - \x05\x02\x03\x08\x12\x04\x92\x04\"J\n\x10\n\x08\x04\x05\x02\x03\x08\x9c\ - \x08\0\x12\x04\x92\x04#I\n\xb8\x06\n\x04\x04\x05\x02\x04\x12\x06\xa4\x04\ - \x02\xa5\x04/\x1a\xa7\x06\x20Optional.\x20A\x20list\x20of\x20relationshi\ - p\x20types\x20to\x20output,\x20for\x20example:\n\x20`INSTANCE_TO_INSTANC\ - EGROUP`.\x20This\x20field\x20should\x20only\x20be\x20specified\x20if\n\ - \x20content_type=RELATIONSHIP.\n\x20*\x20If\x20specified:\n\x20it\x20out\ - puts\x20specified\x20relationships'\x20history\x20on\x20the\x20[asset_na\ - mes].\x20It\n\x20returns\x20an\x20error\x20if\x20any\x20of\x20the\x20[re\ - lationship_types]\x20doesn't\x20belong\x20to\x20the\n\x20supported\x20re\ - lationship\x20types\x20of\x20the\x20[asset_names]\x20or\x20if\x20any\x20\ - of\x20the\n\x20[asset_names]'s\x20types\x20doesn't\x20belong\x20to\x20th\ - e\x20source\x20types\x20of\x20the\n\x20[relationship_types].\n\x20*\x20O\ - therwise:\n\x20it\x20outputs\x20the\x20supported\x20relationships'\x20hi\ - story\x20on\x20the\x20[asset_names]\x20or\n\x20returns\x20an\x20error\ - \x20if\x20any\x20of\x20the\x20[asset_names]'s\x20types\x20has\x20no\x20r\ - elationship\n\x20support.\n\x20See\x20[Introduction\x20to\x20Cloud\x20As\ - set\n\x20Inventory](https://cloud.google.com/asset-inventory/docs/overvi\ - ew)\x20for\x20all\n\x20supported\x20asset\x20types\x20and\x20relationshi\ - p\x20types.\n\n\r\n\x05\x04\x05\x02\x04\x04\x12\x04\xa4\x04\x02\n\n\r\n\ - \x05\x04\x05\x02\x04\x05\x12\x04\xa4\x04\x0b\x11\n\r\n\x05\x04\x05\x02\ - \x04\x01\x12\x04\xa4\x04\x12$\n\r\n\x05\x04\x05\x02\x04\x03\x12\x04\xa4\ - \x04'(\n\r\n\x05\x04\x05\x02\x04\x08\x12\x04\xa5\x04\x06.\n\x10\n\x08\ - \x04\x05\x02\x04\x08\x9c\x08\0\x12\x04\xa5\x04\x07-\n2\n\x02\x04\x06\x12\ - \x06\xa9\x04\0\xac\x04\x01\x1a$\x20Batch\x20get\x20assets\x20history\x20\ - response.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xa9\x04\x08%\n9\n\x04\x04\ - \x06\x02\0\x12\x04\xab\x04\x02$\x1a+\x20A\x20list\x20of\x20assets\x20wit\ - h\x20valid\x20time\x20windows.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xab\ - \x04\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xab\x04\x0b\x18\n\r\n\x05\ - \x04\x06\x02\0\x01\x12\x04\xab\x04\x19\x1f\n\r\n\x05\x04\x06\x02\0\x03\ - \x12\x04\xab\x04\"#\n*\n\x02\x04\x07\x12\x06\xaf\x04\0\xc0\x04\x01\x1a\ - \x1c\x20Create\x20asset\x20feed\x20request.\n\n\x0b\n\x03\x04\x07\x01\ - \x12\x04\xaf\x04\x08\x19\n\xbf\x02\n\x04\x04\x07\x02\0\x12\x04\xb5\x04\ - \x02=\x1a\xb0\x02\x20Required.\x20The\x20name\x20of\x20the\x20project/fo\ - lder/organization\x20where\x20this\x20feed\n\x20should\x20be\x20created\ - \x20in.\x20It\x20can\x20only\x20be\x20an\x20organization\x20number\x20(s\ - uch\x20as\n\x20\"organizations/123\"),\x20a\x20folder\x20number\x20(such\ - \x20as\x20\"folders/123\"),\x20a\x20project\x20ID\n\x20(such\x20as\x20\"\ - projects/my-project-id\"),\x20or\x20a\x20project\x20number\x20(such\x20a\ - s\n\x20\"projects/12345\").\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xb5\ - \x04\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xb5\x04\t\x0f\n\r\n\x05\ - \x04\x07\x02\0\x03\x12\x04\xb5\x04\x12\x13\n\r\n\x05\x04\x07\x02\0\x08\ - \x12\x04\xb5\x04\x14<\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\ - \xb5\x04\x15;\n\x9c\x01\n\x04\x04\x07\x02\x01\x12\x04\xb9\x04\x02>\x1a\ - \x8d\x01\x20Required.\x20This\x20is\x20the\x20client-assigned\x20asset\ - \x20feed\x20identifier\x20and\x20it\x20needs\x20to\n\x20be\x20unique\x20\ - under\x20a\x20specific\x20parent\x20project/folder/organization.\n\n\r\n\ - \x05\x04\x07\x02\x01\x05\x12\x04\xb9\x04\x02\x08\n\r\n\x05\x04\x07\x02\ - \x01\x01\x12\x04\xb9\x04\t\x10\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xb9\ - \x04\x13\x14\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\xb9\x04\x15=\n\x10\n\ - \x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xb9\x04\x16<\n\xf3\x01\n\x04\ - \x04\x07\x02\x02\x12\x04\xbf\x04\x029\x1a\xe4\x01\x20Required.\x20The\ - \x20feed\x20details.\x20The\x20field\x20`name`\x20must\x20be\x20empty\ - \x20and\x20it\x20will\x20be\n\x20generated\x20in\x20the\x20format\x20of:\ - \x20projects/project_number/feeds/feed_id\n\x20folders/folder_number/fee\ - ds/feed_id\n\x20organizations/organization_number/feeds/feed_id\n\n\r\n\ - \x05\x04\x07\x02\x02\x06\x12\x04\xbf\x04\x02\x06\n\r\n\x05\x04\x07\x02\ - \x02\x01\x12\x04\xbf\x04\x07\x0b\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\ - \xbf\x04\x0e\x0f\n\r\n\x05\x04\x07\x02\x02\x08\x12\x04\xbf\x04\x108\n\ - \x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\xbf\x04\x117\n'\n\x02\ - \x04\x08\x12\x06\xc3\x04\0\xcc\x04\x01\x1a\x19\x20Get\x20asset\x20feed\ - \x20request.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xc3\x04\x08\x16\n\xcf\x01\ - \n\x04\x04\x08\x02\0\x12\x06\xc8\x04\x02\xcb\x04\x04\x1a\xbe\x01\x20Requ\ - ired.\x20The\x20name\x20of\x20the\x20Feed\x20and\x20it\x20must\x20be\x20\ - in\x20the\x20format\x20of:\n\x20projects/project_number/feeds/feed_id\n\ - \x20folders/folder_number/feeds/feed_id\n\x20organizations/organization_\ - number/feeds/feed_id\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xc8\x04\x02\ - \x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xc8\x04\t\r\n\r\n\x05\x04\x08\ - \x02\0\x03\x12\x04\xc8\x04\x10\x11\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\ - \xc8\x04\x12\xcb\x04\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\ - \xc9\x04\x04*\n\x0f\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x04\xca\x04\x04P\ - \n)\n\x02\x04\t\x12\x06\xcf\x04\0\xd4\x04\x01\x1a\x1b\x20List\x20asset\ - \x20feeds\x20request.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xcf\x04\x08\x18\n\ - \xe9\x01\n\x04\x04\t\x02\0\x12\x04\xd3\x04\x02=\x1a\xda\x01\x20Required.\ - \x20The\x20parent\x20project/folder/organization\x20whose\x20feeds\x20ar\ - e\x20to\x20be\n\x20listed.\x20It\x20can\x20only\x20be\x20using\x20projec\ - t/folder/organization\x20number\x20(such\x20as\n\x20\"folders/12345\")\"\ - ,\x20or\x20a\x20project\x20ID\x20(such\x20as\x20\"projects/my-project-id\ - \").\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xd3\x04\x02\x08\n\r\n\x05\x04\t\ - \x02\0\x01\x12\x04\xd3\x04\t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xd3\ - \x04\x12\x13\n\r\n\x05\x04\t\x02\0\x08\x12\x04\xd3\x04\x14<\n\x10\n\x08\ - \x04\t\x02\0\x08\x9c\x08\0\x12\x04\xd3\x04\x15;\n\x0c\n\x02\x04\n\x12\ - \x06\xd6\x04\0\xd9\x04\x01\n\x0b\n\x03\x04\n\x01\x12\x04\xd6\x04\x08\x19\ - \n\x20\n\x04\x04\n\x02\0\x12\x04\xd8\x04\x02\x1a\x1a\x12\x20A\x20list\ - \x20of\x20feeds.\n\n\r\n\x05\x04\n\x02\0\x04\x12\x04\xd8\x04\x02\n\n\r\n\ - \x05\x04\n\x02\0\x06\x12\x04\xd8\x04\x0b\x0f\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\xd8\x04\x10\x15\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd8\x04\x18\ - \x19\n*\n\x02\x04\x0b\x12\x06\xdc\x04\0\xe9\x04\x01\x1a\x1c\x20Update\ - \x20asset\x20feed\x20request.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xdc\x04\ - \x08\x19\n\x8d\x02\n\x04\x04\x0b\x02\0\x12\x04\xe2\x04\x029\x1a\xfe\x01\ - \x20Required.\x20The\x20new\x20values\x20of\x20feed\x20details.\x20It\ - \x20must\x20match\x20an\x20existing\x20feed\n\x20and\x20the\x20field\x20\ - `name`\x20must\x20be\x20in\x20the\x20format\x20of:\n\x20projects/project\ - _number/feeds/feed_id\x20or\n\x20folders/folder_number/feeds/feed_id\x20\ - or\n\x20organizations/organization_number/feeds/feed_id.\n\n\r\n\x05\x04\ - \x0b\x02\0\x06\x12\x04\xe2\x04\x02\x06\n\r\n\x05\x04\x0b\x02\0\x01\x12\ - \x04\xe2\x04\x07\x0b\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xe2\x04\x0e\x0f\ - \n\r\n\x05\x04\x0b\x02\0\x08\x12\x04\xe2\x04\x108\n\x10\n\x08\x04\x0b\ - \x02\0\x08\x9c\x08\0\x12\x04\xe2\x04\x117\n\xc4\x01\n\x04\x04\x0b\x02\ - \x01\x12\x06\xe7\x04\x02\xe8\x04/\x1a\xb3\x01\x20Required.\x20Only\x20up\ - dates\x20the\x20`feed`\x20fields\x20indicated\x20by\x20this\x20mask.\n\ - \x20The\x20field\x20mask\x20must\x20not\x20be\x20empty,\x20and\x20it\x20\ - must\x20not\x20contain\x20fields\x20that\n\x20are\x20immutable\x20or\x20\ - only\x20set\x20by\x20the\x20server.\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\ - \x04\xe7\x04\x02\x1b\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xe7\x04\x1c'\ - \n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xe7\x04*+\n\r\n\x05\x04\x0b\x02\ - \x01\x08\x12\x04\xe8\x04\x06.\n\x10\n\x08\x04\x0b\x02\x01\x08\x9c\x08\0\ - \x12\x04\xe8\x04\x07-\n\x0c\n\x02\x04\x0c\x12\x06\xeb\x04\0\xf4\x04\x01\ - \n\x0b\n\x03\x04\x0c\x01\x12\x04\xeb\x04\x08\x19\n\xcf\x01\n\x04\x04\x0c\ - \x02\0\x12\x06\xf0\x04\x02\xf3\x04\x04\x1a\xbe\x01\x20Required.\x20The\ - \x20name\x20of\x20the\x20feed\x20and\x20it\x20must\x20be\x20in\x20the\ - \x20format\x20of:\n\x20projects/project_number/feeds/feed_id\n\x20folder\ - s/folder_number/feeds/feed_id\n\x20organizations/organization_number/fee\ - ds/feed_id\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xf0\x04\x02\x08\n\r\n\ - \x05\x04\x0c\x02\0\x01\x12\x04\xf0\x04\t\r\n\r\n\x05\x04\x0c\x02\0\x03\ - \x12\x04\xf0\x04\x10\x11\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xf0\x04\ - \x12\xf3\x04\x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xf1\x04\ - \x04*\n\x0f\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x04\xf2\x04\x04P\nC\n\ - \x02\x04\r\x12\x06\xf7\x04\0\x81\x05\x01\x1a5\x20Output\x20configuration\ - \x20for\x20export\x20assets\x20destination.\n\n\x0b\n\x03\x04\r\x01\x12\ - \x04\xf7\x04\x08\x14\n+\n\x04\x04\r\x08\0\x12\x06\xf9\x04\x02\x80\x05\ - \x03\x1a\x1b\x20Asset\x20export\x20destination.\n\n\r\n\x05\x04\r\x08\0\ - \x01\x12\x04\xf9\x04\x08\x13\n-\n\x04\x04\r\x02\0\x12\x04\xfb\x04\x04'\ - \x1a\x1f\x20Destination\x20on\x20Cloud\x20Storage.\n\n\r\n\x05\x04\r\x02\ - \0\x06\x12\x04\xfb\x04\x04\x12\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xfb\x04\ - \x13\"\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xfb\x04%&\nv\n\x04\x04\r\x02\ - \x01\x12\x04\xff\x04\x041\x1ah\x20Destination\x20on\x20BigQuery.\x20The\ - \x20output\x20table\x20stores\x20the\x20fields\x20in\x20asset\n\x20Proto\ - buf\x20as\x20columns\x20in\x20BigQuery.\n\n\r\n\x05\x04\r\x02\x01\x06\ - \x12\x04\xff\x04\x04\x17\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xff\x04\x18\ - ,\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xff\x04/0\n/\n\x02\x04\x0e\x12\x06\ - \x84\x05\0\x8a\x05\x01\x1a!\x20Output\x20result\x20of\x20export\x20asset\ - s.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x84\x05\x08\x14\n&\n\x04\x04\x0e\ - \x08\0\x12\x06\x86\x05\x02\x89\x05\x03\x1a\x16\x20Asset\x20export\x20res\ - ult.\n\n\r\n\x05\x04\x0e\x08\0\x01\x12\x04\x86\x05\x08\x0e\n/\n\x04\x04\ - \x0e\x02\0\x12\x04\x88\x05\x04#\x1a!\x20Export\x20result\x20on\x20Cloud\ - \x20Storage.\n\n\r\n\x05\x04\x0e\x02\0\x06\x12\x04\x88\x05\x04\x13\n\r\n\ - \x05\x04\x0e\x02\0\x01\x12\x04\x88\x05\x14\x1e\n\r\n\x05\x04\x0e\x02\0\ - \x03\x12\x04\x88\x05!\"\n.\n\x02\x04\x0f\x12\x06\x8d\x05\0\x91\x05\x01\ - \x1a\x20\x20A\x20Cloud\x20Storage\x20output\x20result.\n\n\x0b\n\x03\x04\ - \x0f\x01\x12\x04\x8d\x05\x08\x17\nd\n\x04\x04\x0f\x02\0\x12\x04\x90\x05\ - \x02\x1b\x1aV\x20List\x20of\x20URIs\x20of\x20the\x20Cloud\x20Storage\x20\ - objects.\x20Example:\n\x20\"gs://bucket_name/object_name\".\n\n\r\n\x05\ - \x04\x0f\x02\0\x04\x12\x04\x90\x05\x02\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\ - \x04\x90\x05\x0b\x11\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x90\x05\x12\x16\ - \n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\x90\x05\x19\x1a\n)\n\x02\x04\x10\ - \x12\x06\x94\x05\0\xad\x05\x01\x1a\x1b\x20A\x20Cloud\x20Storage\x20locat\ - ion.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x94\x05\x08\x16\n\x1b\n\x04\x04\ - \x10\x08\0\x12\x06\x96\x05\x02\xac\x05\x03\x1a\x0b\x20Required.\n\n\r\n\ - \x05\x04\x10\x08\0\x01\x12\x04\x96\x05\x08\x12\n\xc2\x03\n\x04\x04\x10\ - \x02\0\x12\x04\xa0\x05\x04\x13\x1a\xb3\x03\x20The\x20URI\x20of\x20the\ - \x20Cloud\x20Storage\x20object.\x20It's\x20the\x20same\x20URI\x20that\ - \x20is\x20used\x20by\n\x20gsutil.\x20Example:\x20\"gs://bucket_name/obje\ - ct_name\".\x20See\x20[Viewing\x20and\n\x20Editing\x20Object\n\x20Metadat\ - a](https://cloud.google.com/storage/docs/viewing-editing-metadata)\n\x20\ - for\x20more\x20information.\n\n\x20If\x20the\x20specified\x20Cloud\x20St\ - orage\x20object\x20already\x20exists\x20and\x20there\x20is\x20no\n\x20[h\ - old](https://cloud.google.com/storage/docs/object-holds),\x20it\x20will\ - \x20be\n\x20overwritten\x20with\x20the\x20exported\x20result.\n\n\r\n\ - \x05\x04\x10\x02\0\x05\x12\x04\xa0\x05\x04\n\n\r\n\x05\x04\x10\x02\0\x01\ - \x12\x04\xa0\x05\x0b\x0e\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xa0\x05\x11\ - \x12\n\xc5\x04\n\x04\x04\x10\x02\x01\x12\x04\xab\x05\x04\x1a\x1a\xb6\x04\ - \x20The\x20URI\x20prefix\x20of\x20all\x20generated\x20Cloud\x20Storage\ - \x20objects.\x20Example:\n\x20\"gs://bucket_name/object_name_prefix\".\ - \x20Each\x20object\x20URI\x20is\x20in\x20format:\n\x20\"gs://bucket_name\ + ber\x20(such\x20as\x20\"folders/123\").\n\n\x0c\n\x05\x04\0\x02\0\x05\ + \x12\x03L\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03L\t\x0f\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03L\x12\x13\n\r\n\x05\x04\0\x02\0\x08\x12\x04L\x14\ + Q\x03\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03M\x04*\n\x0f\n\x07\ + \x04\0\x02\0\x08\x9f\x08\x12\x04N\x04P\x05\n\xd8\x02\n\x04\x04\0\x02\x01\ + \x12\x03X\x02*\x1a\xca\x02\x20Timestamp\x20to\x20take\x20an\x20asset\x20\ + snapshot.\x20This\x20can\x20only\x20be\x20set\x20to\x20a\x20timestamp\n\ + \x20between\x202018-10-02\x20UTC\x20(inclusive)\x20and\x20the\x20current\ + \x20time.\x20If\x20not\x20specified,\n\x20the\x20current\x20time\x20will\ + \x20be\x20used.\x20Due\x20to\x20delays\x20in\x20resource\x20data\x20coll\ + ection\n\x20and\x20indexing,\x20there\x20is\x20a\x20volatile\x20window\ + \x20during\x20which\x20running\x20the\x20same\n\x20query\x20may\x20get\ + \x20different\x20results.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03X\x02\ + \x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03X\x1c%\n\x0c\n\x05\x04\0\x02\ + \x01\x03\x12\x03X()\n\xae\x02\n\x04\x04\0\x02\x02\x12\x03_\x02\"\x1a\xa0\ + \x02\x20A\x20list\x20of\x20asset\x20types\x20of\x20which\x20to\x20take\ + \x20a\x20snapshot\x20for.\x20For\x20example:\n\x20\"compute.googleapis.c\ + om/Disk\".\x20If\x20specified,\x20only\x20matching\x20assets\x20will\x20\ + be\n\x20returned.\x20See\x20[Introduction\x20to\x20Cloud\x20Asset\n\x20I\ + nventory](https://cloud.google.com/asset-inventory/docs/overview)\n\x20f\ + or\x20all\x20supported\x20asset\x20types.\n\n\x0c\n\x05\x04\0\x02\x02\ + \x04\x12\x03_\x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03_\x0b\x11\n\x0c\ + \n\x05\x04\0\x02\x02\x01\x12\x03_\x12\x1d\n\x0c\n\x05\x04\0\x02\x02\x03\ + \x12\x03_\x20!\ne\n\x04\x04\0\x02\x03\x12\x03c\x02\x1f\x1aX\x20Asset\x20\ + content\x20type.\x20If\x20not\x20specified,\x20no\x20content\x20but\x20t\ + he\x20asset\x20name\x20will\x20be\n\x20returned.\n\n\x0c\n\x05\x04\0\x02\ + \x03\x06\x12\x03c\x02\r\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03c\x0e\x1a\n\ + \x0c\n\x05\x04\0\x02\x03\x03\x12\x03c\x1d\x1e\n\x95\x01\n\x04\x04\0\x02\ + \x04\x12\x03g\x02J\x1a\x87\x01\x20Required.\x20Output\x20configuration\ + \x20indicating\x20where\x20the\x20results\x20will\x20be\x20output\n\x20t\ + o.\x20All\x20results\x20will\x20be\x20in\x20newline\x20delimited\x20JSON\ + \x20format.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03g\x02\x0e\n\x0c\n\x05\ + \x04\0\x02\x04\x01\x12\x03g\x0f\x1c\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ + \x03g\x1f\x20\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03g!I\n\x0f\n\x08\x04\0\ + \x02\x04\x08\x9c\x08\0\x12\x03g\"H\n\x91\x02\n\x02\x04\x01\x12\x04m\0t\ + \x01\x1a\x84\x02\x20The\x20export\x20asset\x20response.\x20This\x20messa\ + ge\x20is\x20returned\x20by\x20the\n\x20[google.longrunning.Operations.Ge\ + tOperation][google.longrunning.Operations.GetOperation]\x20method\x20in\ + \x20the\x20returned\n\x20[google.longrunning.Operation.response][google.\ + longrunning.Operation.response]\x20field.\n\n\n\n\x03\x04\x01\x01\x12\ + \x03m\x08\x1c\n+\n\x04\x04\x01\x02\0\x12\x03o\x02*\x1a\x1e\x20Time\x20th\ + e\x20snapshot\x20was\x20taken.\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03o\ + \x02\x1b\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03o\x1c%\n\x0c\n\x05\x04\x01\ + \x02\0\x03\x12\x03o()\nq\n\x04\x04\x01\x02\x01\x12\x03s\x02!\x1ad\x20Out\ + put\x20configuration\x20indicating\x20where\x20the\x20results\x20were\ + \x20output\x20to.\n\x20All\x20results\x20are\x20in\x20JSON\x20format.\n\ + \n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03s\x02\x0e\n\x0c\n\x05\x04\x01\ + \x02\x01\x01\x12\x03s\x0f\x1c\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03s\ + \x1f\x20\n0\n\x02\x04\x02\x12\x05w\0\x98\x01\x01\x1a#\x20Batch\x20get\ + \x20assets\x20history\x20request.\n\n\n\n\x03\x04\x02\x01\x12\x03w\x08$\ + \n\xe9\x01\n\x04\x04\x02\x02\0\x12\x05{\x02\x80\x01\x04\x1a\xd9\x01\x20R\ + equired.\x20The\x20relative\x20name\x20of\x20the\x20root\x20asset.\x20It\ + \x20can\x20only\x20be\x20an\n\x20organization\x20number\x20(such\x20as\ + \x20\"organizations/123\"),\x20a\x20project\x20ID\x20(such\x20as\n\x20\"\ + projects/my-project-id\")\",\x20or\x20a\x20project\x20number\x20(such\ + \x20as\x20\"projects/12345\").\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03{\ + \x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03{\t\x0f\n\x0c\n\x05\x04\ + \x02\x02\0\x03\x12\x03{\x12\x13\n\x0e\n\x05\x04\x02\x02\0\x08\x12\x05{\ + \x14\x80\x01\x03\n\x0f\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x03|\x04*\n\ + \x0f\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x04}\x04\x7f\x05\n\xe9\x03\n\ + \x04\x04\x02\x02\x01\x12\x04\x8c\x01\x02\"\x1a\xda\x03\x20A\x20list\x20o\ + f\x20the\x20full\x20names\x20of\x20the\x20assets.\x20For\x20example:\n\ + \x20`//compute.googleapis.com/projects/my_project_123/zones/zone1/instan\ + ces/instance1`.\n\x20See\x20[Resource\n\x20Names](https://cloud.google.c\ + om/apis/design/resource_names#full_resource_name)\n\x20and\x20[Resource\ + \x20Name\n\x20Format](https://cloud.google.com/asset-inventory/docs/reso\ + urce-name-format)\n\x20for\x20more\x20info.\n\n\x20The\x20request\x20bec\ + omes\x20a\x20no-op\x20if\x20the\x20asset\x20name\x20list\x20is\x20empty,\ + \x20and\x20the\x20max\n\x20size\x20of\x20the\x20asset\x20name\x20list\ + \x20is\x20100\x20in\x20one\x20request.\n\n\r\n\x05\x04\x02\x02\x01\x04\ + \x12\x04\x8c\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\x8c\x01\x0b\ + \x11\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x8c\x01\x12\x1d\n\r\n\x05\x04\ + \x02\x02\x01\x03\x12\x04\x8c\x01\x20!\n+\n\x04\x04\x02\x02\x02\x12\x04\ + \x8f\x01\x02H\x1a\x1d\x20Optional.\x20The\x20content\x20type.\n\n\r\n\ + \x05\x04\x02\x02\x02\x06\x12\x04\x8f\x01\x02\r\n\r\n\x05\x04\x02\x02\x02\ + \x01\x12\x04\x8f\x01\x0e\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\x8f\ + \x01\x1d\x1e\n\r\n\x05\x04\x02\x02\x02\x08\x12\x04\x8f\x01\x1fG\n\x10\n\ + \x08\x04\x02\x02\x02\x08\x9c\x08\0\x12\x04\x8f\x01\x20F\n\x8e\x03\n\x04\ + \x04\x02\x02\x03\x12\x04\x97\x01\x02K\x1a\xff\x02\x20Optional.\x20The\ + \x20time\x20window\x20for\x20the\x20asset\x20history.\x20Both\x20start_t\ + ime\x20and\n\x20end_time\x20are\x20optional\x20and\x20if\x20set,\x20it\ + \x20must\x20be\x20after\x202018-10-02\x20UTC.\x20If\n\x20end_time\x20is\ + \x20not\x20set,\x20it\x20is\x20default\x20to\x20current\x20timestamp.\ + \x20If\x20start_time\x20is\n\x20not\x20set,\x20the\x20snapshot\x20of\x20\ + the\x20assets\x20at\x20end_time\x20will\x20be\x20returned.\x20The\n\x20r\ + eturned\x20results\x20contain\x20all\x20temporal\x20assets\x20whose\x20t\ + ime\x20window\x20overlap\x20with\n\x20read_time_window.\n\n\r\n\x05\x04\ + \x02\x02\x03\x06\x12\x04\x97\x01\x02\x0c\n\r\n\x05\x04\x02\x02\x03\x01\ + \x12\x04\x97\x01\r\x1d\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\x97\x01\x20\ + !\n\r\n\x05\x04\x02\x02\x03\x08\x12\x04\x97\x01\"J\n\x10\n\x08\x04\x02\ + \x02\x03\x08\x9c\x08\0\x12\x04\x97\x01#I\n2\n\x02\x04\x03\x12\x06\x9b\ + \x01\0\x9e\x01\x01\x1a$\x20Batch\x20get\x20assets\x20history\x20response\ + .\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x9b\x01\x08%\n9\n\x04\x04\x03\x02\0\ + \x12\x04\x9d\x01\x02$\x1a+\x20A\x20list\x20of\x20assets\x20with\x20valid\ + \x20time\x20windows.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\x9d\x01\x02\n\ + \n\r\n\x05\x04\x03\x02\0\x06\x12\x04\x9d\x01\x0b\x18\n\r\n\x05\x04\x03\ + \x02\0\x01\x12\x04\x9d\x01\x19\x1f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\ + \x9d\x01\"#\nC\n\x02\x04\x04\x12\x06\xa1\x01\0\xad\x01\x01\x1a5\x20Outpu\ + t\x20configuration\x20for\x20export\x20assets\x20destination.\n\n\x0b\n\ + \x03\x04\x04\x01\x12\x04\xa1\x01\x08\x14\n+\n\x04\x04\x04\x08\0\x12\x06\ + \xa3\x01\x02\xac\x01\x03\x1a\x1b\x20Asset\x20export\x20destination.\n\n\ + \r\n\x05\x04\x04\x08\0\x01\x12\x04\xa3\x01\x08\x13\n-\n\x04\x04\x04\x02\ + \0\x12\x04\xa5\x01\x04'\x1a\x1f\x20Destination\x20on\x20Cloud\x20Storage\ + .\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xa5\x01\x04\x12\n\r\n\x05\x04\ + \x04\x02\0\x01\x12\x04\xa5\x01\x13\"\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ + \xa5\x01%&\n\xf3\x01\n\x04\x04\x04\x02\x01\x12\x04\xab\x01\x041\x1a\xe4\ + \x01\x20Destination\x20on\x20BigQuery.\x20The\x20output\x20table\x20stor\ + es\x20the\x20fields\x20in\x20asset\n\x20proto\x20as\x20columns\x20in\x20\ + BigQuery.\x20The\x20resource/iam_policy\x20field\x20is\x20converted\n\ + \x20to\x20a\x20record\x20with\x20each\x20field\x20to\x20a\x20column,\x20\ + except\x20metadata\x20to\x20a\x20single\x20JSON\n\x20string.\n\n\r\n\x05\ + \x04\x04\x02\x01\x06\x12\x04\xab\x01\x04\x17\n\r\n\x05\x04\x04\x02\x01\ + \x01\x12\x04\xab\x01\x18,\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xab\x01/\ + 0\n)\n\x02\x04\x05\x12\x06\xb0\x01\0\xc5\x01\x01\x1a\x1b\x20A\x20Cloud\ + \x20Storage\x20location.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xb0\x01\x08\ + \x16\n\x1b\n\x04\x04\x05\x08\0\x12\x06\xb2\x01\x02\xc4\x01\x03\x1a\x0b\ + \x20Required.\n\n\r\n\x05\x04\x05\x08\0\x01\x12\x04\xb2\x01\x08\x12\n\ + \x90\x02\n\x04\x04\x05\x02\0\x12\x04\xb8\x01\x04\x13\x1a\x81\x02\x20The\ + \x20uri\x20of\x20the\x20Cloud\x20Storage\x20object.\x20It's\x20the\x20sa\ + me\x20uri\x20that\x20is\x20used\x20by\n\x20gsutil.\x20For\x20example:\ + \x20\"gs://bucket_name/object_name\".\x20See\x20[Viewing\x20and\n\x20Edi\ + ting\x20Object\n\x20Metadata](https://cloud.google.com/storage/docs/view\ + ing-editing-metadata)\n\x20for\x20more\x20information.\n\n\r\n\x05\x04\ + \x05\x02\0\x05\x12\x04\xb8\x01\x04\n\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\ + \xb8\x01\x0b\x0e\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb8\x01\x11\x12\n\ + \xcd\x04\n\x04\x04\x05\x02\x01\x12\x04\xc3\x01\x04\x1a\x1a\xbe\x04\x20Th\ + e\x20uri\x20prefix\x20of\x20all\x20generated\x20Cloud\x20Storage\x20obje\ + cts.\x20For\x20example:\n\x20\"gs://bucket_name/object_name_prefix\".\ + \x20Each\x20object\x20uri\x20is\x20in\x20format:\n\x20\"gs://bucket_name\ /object_name_prefix//\x20and\x20only\n\ \x20contains\x20assets\x20for\x20that\x20type.\x20\x20s\ - tarts\x20from\x200.\x20Example:\n\x20\"gs://bucket_name/object_name_pref\ - ix/compute.googleapis.com/Disk/0\"\x20is\n\x20the\x20first\x20shard\x20o\ - f\x20output\x20objects\x20containing\x20all\n\x20compute.googleapis.com/\ - Disk\x20assets.\x20An\x20INVALID_ARGUMENT\x20error\x20will\x20be\n\x20re\ - turned\x20if\x20file\x20with\x20the\x20same\x20name\x20\"gs://bucket_nam\ - e/object_name_prefix\"\n\x20already\x20exists.\n\n\r\n\x05\x04\x10\x02\ - \x01\x05\x12\x04\xab\x05\x04\n\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xab\ - \x05\x0b\x15\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xab\x05\x18\x19\n?\n\ - \x02\x04\x11\x12\x06\xb0\x05\0\xf5\x05\x01\x1a1\x20A\x20BigQuery\x20dest\ - ination\x20for\x20exporting\x20assets\x20to.\n\n\x0b\n\x03\x04\x11\x01\ - \x12\x04\xb0\x05\x08\x1b\n\xd1\x03\n\x04\x04\x11\x02\0\x12\x04\xb9\x05\ - \x02>\x1a\xc2\x03\x20Required.\x20The\x20BigQuery\x20dataset\x20in\x20fo\ - rmat\n\x20\"projects/projectId/datasets/datasetId\",\x20to\x20which\x20t\ - he\x20snapshot\x20result\n\x20should\x20be\x20exported.\x20If\x20this\ - \x20dataset\x20does\x20not\x20exist,\x20the\x20export\x20call\x20returns\ - \n\x20an\x20INVALID_ARGUMENT\x20error.\x20Setting\x20the\x20`contentType\ - `\x20for\x20`exportAssets`\n\x20determines\x20the\n\x20[schema](/asset-i\ - nventory/docs/exporting-to-bigquery#bigquery-schema)\n\x20of\x20the\x20B\ - igQuery\x20table.\x20Setting\x20`separateTablesPerAssetType`\x20to\x20`T\ - RUE`\x20also\n\x20influences\x20the\x20schema.\n\n\r\n\x05\x04\x11\x02\0\ - \x05\x12\x04\xb9\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xb9\x05\ - \t\x10\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xb9\x05\x13\x14\n\r\n\x05\x04\ - \x11\x02\0\x08\x12\x04\xb9\x05\x15=\n\x10\n\x08\x04\x11\x02\0\x08\x9c\ - \x08\0\x12\x04\xb9\x05\x16<\n\xae\x01\n\x04\x04\x11\x02\x01\x12\x04\xbe\ - \x05\x02<\x1a\x9f\x01\x20Required.\x20The\x20BigQuery\x20table\x20to\x20\ - which\x20the\x20snapshot\x20result\x20should\x20be\n\x20written.\x20If\ - \x20this\x20table\x20does\x20not\x20exist,\x20a\x20new\x20table\x20with\ - \x20the\x20given\x20name\n\x20will\x20be\x20created.\n\n\r\n\x05\x04\x11\ - \x02\x01\x05\x12\x04\xbe\x05\x02\x08\n\r\n\x05\x04\x11\x02\x01\x01\x12\ - \x04\xbe\x05\t\x0e\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xbe\x05\x11\x12\ - \n\r\n\x05\x04\x11\x02\x01\x08\x12\x04\xbe\x05\x13;\n\x10\n\x08\x04\x11\ - \x02\x01\x08\x9c\x08\0\x12\x04\xbe\x05\x14:\n\x93\x02\n\x04\x04\x11\x02\ - \x02\x12\x04\xc4\x05\x02\x11\x1a\x84\x02\x20If\x20the\x20destination\x20\ - table\x20already\x20exists\x20and\x20this\x20flag\x20is\x20`TRUE`,\x20th\ - e\n\x20table\x20will\x20be\x20overwritten\x20by\x20the\x20contents\x20of\ - \x20assets\x20snapshot.\x20If\x20the\x20flag\n\x20is\x20`FALSE`\x20or\ - \x20unset\x20and\x20the\x20destination\x20table\x20already\x20exists,\ - \x20the\x20export\n\x20call\x20returns\x20an\x20INVALID_ARGUMEMT\x20erro\ - r.\n\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\xc4\x05\x02\x06\n\r\n\x05\x04\ - \x11\x02\x02\x01\x12\x04\xc4\x05\x07\x0c\n\r\n\x05\x04\x11\x02\x02\x03\ - \x12\x04\xc4\x05\x0f\x10\n\xf6\x07\n\x04\x04\x11\x02\x03\x12\x04\xd7\x05\ - \x02#\x1a\xe7\x07\x20[partition_spec]\x20determines\x20whether\x20to\x20\ - export\x20to\x20partitioned\x20table(s)\x20and\n\x20how\x20to\x20partiti\ - on\x20the\x20data.\n\n\x20If\x20[partition_spec]\x20is\x20unset\x20or\ - \x20[partition_spec.partition_key]\x20is\x20unset\x20or\n\x20`PARTITION_\ - KEY_UNSPECIFIED`,\x20the\x20snapshot\x20results\x20will\x20be\x20exporte\ - d\x20to\n\x20non-partitioned\x20table(s).\x20[force]\x20will\x20decide\ - \x20whether\x20to\x20overwrite\x20existing\n\x20table(s).\n\n\x20If\x20[\ - partition_spec]\x20is\x20specified.\x20First,\x20the\x20snapshot\x20resu\ - lts\x20will\x20be\n\x20written\x20to\x20partitioned\x20table(s)\x20with\ - \x20two\x20additional\x20timestamp\x20columns,\n\x20readTime\x20and\x20r\ - equestTime,\x20one\x20of\x20which\x20will\x20be\x20the\x20partition\x20k\ - ey.\x20Secondly,\n\x20in\x20the\x20case\x20when\x20any\x20destination\ - \x20table\x20already\x20exists,\x20it\x20will\x20first\x20try\x20to\n\ - \x20update\x20existing\x20table's\x20schema\x20as\x20necessary\x20by\x20\ - appending\x20additional\n\x20columns.\x20Then,\x20if\x20[force]\x20is\ - \x20`TRUE`,\x20the\x20corresponding\x20partition\x20will\x20be\n\x20over\ - written\x20by\x20the\x20snapshot\x20results\x20(data\x20in\x20different\ - \x20partitions\x20will\n\x20remain\x20intact);\x20if\x20[force]\x20is\ - \x20unset\x20or\x20`FALSE`,\x20it\x20will\x20append\x20the\x20data.\x20A\ - n\n\x20error\x20will\x20be\x20returned\x20if\x20the\x20schema\x20update\ - \x20or\x20data\x20appension\x20fails.\n\n\r\n\x05\x04\x11\x02\x03\x06\ - \x12\x04\xd7\x05\x02\x0f\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xd7\x05\ - \x10\x1e\n\r\n\x05\x04\x11\x02\x03\x03\x12\x04\xd7\x05!\"\n\xcd\x0c\n\ - \x04\x04\x11\x02\x04\x12\x04\xf4\x05\x02*\x1a\xbe\x0c\x20If\x20this\x20f\ - lag\x20is\x20`TRUE`,\x20the\x20snapshot\x20results\x20will\x20be\x20writ\ - ten\x20to\x20one\x20or\n\x20multiple\x20tables,\x20each\x20of\x20which\ - \x20contains\x20results\x20of\x20one\x20asset\x20type.\x20The\n\x20[forc\ - e]\x20and\x20[partition_spec]\x20fields\x20will\x20apply\x20to\x20each\ - \x20of\x20them.\n\n\x20Field\x20[table]\x20will\x20be\x20concatenated\ - \x20with\x20\"_\"\x20and\x20the\x20asset\x20type\x20names\x20(see\n\x20h\ - ttps://cloud.google.com/asset-inventory/docs/supported-asset-types\x20fo\ - r\n\x20supported\x20asset\x20types)\x20to\x20construct\x20per-asset-type\ - \x20table\x20names,\x20in\x20which\n\x20all\x20non-alphanumeric\x20chara\ - cters\x20like\x20\".\"\x20and\x20\"/\"\x20will\x20be\x20substituted\x20b\ - y\n\x20\"_\".\x20Example:\x20if\x20field\x20[table]\x20is\x20\"mytable\"\ - \x20and\x20snapshot\x20results\n\x20contain\x20\"storage.googleapis.com/\ - Bucket\"\x20assets,\x20the\x20corresponding\x20table\n\x20name\x20will\ - \x20be\x20\"mytable_storage_googleapis_com_Bucket\".\x20If\x20any\x20of\ - \x20these\n\x20tables\x20does\x20not\x20exist,\x20a\x20new\x20table\x20w\ - ith\x20the\x20concatenated\x20name\x20will\x20be\n\x20created.\n\n\x20Wh\ - en\x20[content_type]\x20in\x20the\x20ExportAssetsRequest\x20is\x20`RESOU\ - RCE`,\x20the\x20schema\x20of\n\x20each\x20table\x20will\x20include\x20RE\ - CORD-type\x20columns\x20mapped\x20to\x20the\x20nested\x20fields\x20in\n\ - \x20the\x20Asset.resource.data\x20field\x20of\x20that\x20asset\x20type\ - \x20(up\x20to\x20the\x2015\x20nested\x20level\n\x20BigQuery\x20supports\ - \n\x20(https://cloud.google.com/bigquery/docs/nested-repeated#limitation\ - s)).\x20The\n\x20fields\x20in\x20>15\x20nested\x20levels\x20will\x20be\ - \x20stored\x20in\x20JSON\x20format\x20string\x20as\x20a\x20child\n\x20co\ - lumn\x20of\x20its\x20parent\x20RECORD\x20column.\n\n\x20If\x20error\x20o\ - ccurs\x20when\x20exporting\x20to\x20any\x20table,\x20the\x20whole\x20exp\ - ort\x20call\x20will\n\x20return\x20an\x20error\x20but\x20the\x20export\ - \x20results\x20that\x20already\x20succeed\x20will\x20persist.\n\x20Examp\ - le:\x20if\x20exporting\x20to\x20table_type_A\x20succeeds\x20when\x20expo\ - rting\x20to\n\x20table_type_B\x20fails\x20during\x20one\x20export\x20cal\ - l,\x20the\x20results\x20in\x20table_type_A\x20will\n\x20persist\x20and\ - \x20there\x20will\x20not\x20be\x20partial\x20results\x20persisting\x20in\ - \x20a\x20table.\n\n\r\n\x05\x04\x11\x02\x04\x05\x12\x04\xf4\x05\x02\x06\ - \n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xf4\x05\x07%\n\r\n\x05\x04\x11\ - \x02\x04\x03\x12\x04\xf4\x05()\nS\n\x02\x04\x12\x12\x06\xf8\x05\0\x92\ - \x06\x01\x1aE\x20Specifications\x20of\x20BigQuery\x20partitioned\x20tabl\ - e\x20as\x20export\x20destination.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xf8\ - \x05\x08\x15\n\xed\x02\n\x04\x04\x12\x04\0\x12\x06\xfe\x05\x02\x8e\x06\ - \x03\x1a\xdc\x02\x20This\x20enum\x20is\x20used\x20to\x20determine\x20the\ - \x20partition\x20key\x20column\x20when\x20exporting\n\x20assets\x20to\ - \x20BigQuery\x20partitioned\x20table(s).\x20Note\x20that,\x20if\x20the\ - \x20partition\x20key\x20is\n\x20a\x20timestamp\x20column,\x20the\x20actu\ - al\x20partition\x20is\x20based\x20on\x20its\x20date\x20value\n\x20(expre\ - ssed\x20in\x20UTC.\x20see\x20details\x20in\n\x20https://cloud.google.com\ - /bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).\n\ - \n\r\n\x05\x04\x12\x04\0\x01\x12\x04\xfe\x05\x07\x13\n[\n\x06\x04\x12\ - \x04\0\x02\0\x12\x04\x80\x06\x04\"\x1aK\x20Unspecified\x20partition\x20k\ - ey.\x20If\x20used,\x20it\x20means\x20using\x20non-partitioned\x20table.\ - \n\n\x0f\n\x07\x04\x12\x04\0\x02\0\x01\x12\x04\x80\x06\x04\x1d\n\x0f\n\ - \x07\x04\x12\x04\0\x02\0\x02\x12\x04\x80\x06\x20!\n\xe3\x02\n\x06\x04\ - \x12\x04\0\x02\x01\x12\x04\x87\x06\x04\x12\x1a\xd2\x02\x20The\x20time\ - \x20when\x20the\x20snapshot\x20is\x20taken.\x20If\x20specified\x20as\x20\ - partition\x20key,\x20the\n\x20result\x20table(s)\x20is\x20partitoned\x20\ - by\x20the\x20additional\x20timestamp\x20column,\n\x20readTime.\x20If\x20\ - [read_time]\x20in\x20ExportAssetsRequest\x20is\x20specified,\x20the\n\ - \x20readTime\x20column's\x20value\x20will\x20be\x20the\x20same\x20as\x20\ - it.\x20Otherwise,\x20its\x20value\x20will\n\x20be\x20the\x20current\x20t\ - ime\x20that\x20is\x20used\x20to\x20take\x20the\x20snapshot.\n\n\x0f\n\ - \x07\x04\x12\x04\0\x02\x01\x01\x12\x04\x87\x06\x04\r\n\x0f\n\x07\x04\x12\ - \x04\0\x02\x01\x02\x12\x04\x87\x06\x10\x11\n\xff\x01\n\x06\x04\x12\x04\0\ - \x02\x02\x12\x04\x8d\x06\x04\x15\x1a\xee\x01\x20The\x20time\x20when\x20t\ - he\x20request\x20is\x20received\x20and\x20started\x20to\x20be\x20process\ - ed.\x20If\n\x20specified\x20as\x20partition\x20key,\x20the\x20result\x20\ - table(s)\x20is\x20partitoned\x20by\x20the\n\x20requestTime\x20column,\ - \x20an\x20additional\x20timestamp\x20column\x20representing\x20when\x20t\ - he\n\x20request\x20was\x20received.\n\n\x0f\n\x07\x04\x12\x04\0\x02\x02\ - \x01\x12\x04\x8d\x06\x04\x10\n\x0f\n\x07\x04\x12\x04\0\x02\x02\x02\x12\ - \x04\x8d\x06\x13\x14\nA\n\x04\x04\x12\x02\0\x12\x04\x91\x06\x02!\x1a3\ - \x20The\x20partition\x20key\x20for\x20BigQuery\x20partitioned\x20table.\ - \n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\x91\x06\x02\x0e\n\r\n\x05\x04\x12\ - \x02\0\x01\x12\x04\x91\x06\x0f\x1c\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\ - \x91\x06\x1f\x20\n&\n\x02\x04\x13\x12\x06\x95\x06\0\x99\x06\x01\x1a\x18\ - \x20A\x20Pub/Sub\x20destination.\n\n\x0b\n\x03\x04\x13\x01\x12\x04\x95\ - \x06\x08\x19\nm\n\x04\x04\x13\x02\0\x12\x04\x98\x06\x02\x13\x1a_\x20The\ - \x20name\x20of\x20the\x20Pub/Sub\x20topic\x20to\x20publish\x20to.\n\x20E\ - xample:\x20`projects/PROJECT_ID/topics/TOPIC_ID`.\n\n\r\n\x05\x04\x13\ - \x02\0\x05\x12\x04\x98\x06\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\ - \x98\x06\t\x0e\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\x98\x06\x11\x12\n@\n\ - \x02\x04\x14\x12\x06\x9c\x06\0\xa2\x06\x01\x1a2\x20Output\x20configurati\ - on\x20for\x20asset\x20feed\x20destination.\n\n\x0b\n\x03\x04\x14\x01\x12\ - \x04\x9c\x06\x08\x18\n)\n\x04\x04\x14\x08\0\x12\x06\x9e\x06\x02\xa1\x06\ - \x03\x1a\x19\x20Asset\x20feed\x20destination.\n\n\r\n\x05\x04\x14\x08\0\ - \x01\x12\x04\x9e\x06\x08\x13\n'\n\x04\x04\x14\x02\0\x12\x04\xa0\x06\x04-\ - \x1a\x19\x20Destination\x20on\x20Pub/Sub.\n\n\r\n\x05\x04\x14\x02\0\x06\ - \x12\x04\xa0\x06\x04\x15\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xa0\x06\x16\ - (\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xa0\x06+,\n\x81\x02\n\x02\x04\x15\ - \x12\x06\xa9\x06\0\xf5\x06\x01\x1a\xf2\x01\x20An\x20asset\x20feed\x20use\ - d\x20to\x20export\x20asset\x20updates\x20to\x20a\x20destinations.\n\x20A\ - n\x20asset\x20feed\x20filter\x20controls\x20what\x20updates\x20are\x20ex\ - ported.\n\x20The\x20asset\x20feed\x20must\x20be\x20created\x20within\x20\ - a\x20project,\x20organization,\x20or\n\x20folder.\x20Supported\x20destin\ - ations\x20are:\n\x20Pub/Sub\x20topics.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\ - \xa9\x06\x08\x0c\n\r\n\x03\x04\x15\x07\x12\x06\xaa\x06\x02\xb0\x06\x04\n\ - \x0f\n\x05\x04\x15\x07\x9d\x08\x12\x06\xaa\x06\x02\xb0\x06\x04\n\xe9\x02\ - \n\x04\x04\x15\x02\0\x12\x04\xb9\x06\x02;\x1a\xda\x02\x20Required.\x20Th\ - e\x20format\x20will\x20be\n\x20projects/{project_number}/feeds/{client-a\ - ssigned_feed_identifier}\x20or\n\x20folders/{folder_number}/feeds/{clien\ - t-assigned_feed_identifier}\x20or\n\x20organizations/{organization_numbe\ - r}/feeds/{client-assigned_feed_identifier}\n\n\x20The\x20client-assigned\ - \x20feed\x20identifier\x20must\x20be\x20unique\x20within\x20the\x20paren\ - t\n\x20project/folder/organization.\n\n\r\n\x05\x04\x15\x02\0\x05\x12\ - \x04\xb9\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xb9\x06\t\r\n\r\ - \n\x05\x04\x15\x02\0\x03\x12\x04\xb9\x06\x10\x11\n\r\n\x05\x04\x15\x02\0\ - \x08\x12\x04\xb9\x06\x12:\n\x10\n\x08\x04\x15\x02\0\x08\x9c\x08\0\x12\ - \x04\xb9\x06\x139\n\xc9\x03\n\x04\x04\x15\x02\x01\x12\x04\xc2\x06\x02\"\ - \x1a\xba\x03\x20A\x20list\x20of\x20the\x20full\x20names\x20of\x20the\x20\ - assets\x20to\x20receive\x20updates.\x20You\x20must\x20specify\n\x20eithe\ - r\x20or\x20both\x20of\x20asset_names\x20and\x20asset_types.\x20Only\x20a\ - sset\x20updates\x20matching\n\x20specified\x20asset_names\x20or\x20asset\ - _types\x20are\x20exported\x20to\x20the\x20feed.\n\x20Example:\n\x20`//co\ - mpute.googleapis.com/projects/my_project_123/zones/zone1/instances/insta\ - nce1`.\n\x20For\x20a\x20list\x20of\x20the\x20full\x20names\x20for\x20sup\ - ported\x20asset\x20types,\x20see\x20[Resource\n\x20name\x20format](/asse\ - t-inventory/docs/resource-name-format).\n\n\r\n\x05\x04\x15\x02\x01\x04\ - \x12\x04\xc2\x06\x02\n\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\xc2\x06\x0b\ - \x11\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\xc2\x06\x12\x1d\n\r\n\x05\x04\ - \x15\x02\x01\x03\x12\x04\xc2\x06\x20!\n\xff\x02\n\x04\x04\x15\x02\x02\ - \x12\x04\xcb\x06\x02\"\x1a\xf0\x02\x20A\x20list\x20of\x20types\x20of\x20\ - the\x20assets\x20to\x20receive\x20updates.\x20You\x20must\x20specify\x20\ - either\n\x20or\x20both\x20of\x20asset_names\x20and\x20asset_types.\x20On\ - ly\x20asset\x20updates\x20matching\n\x20specified\x20asset_names\x20or\ - \x20asset_types\x20are\x20exported\x20to\x20the\x20feed.\n\x20Example:\ - \x20`\"compute.googleapis.com/Disk\"`\n\n\x20For\x20a\x20list\x20of\x20a\ - ll\x20supported\x20asset\x20types,\x20see\n\x20[Supported\x20asset\x20ty\ - pes](/asset-inventory/docs/supported-asset-types).\n\n\r\n\x05\x04\x15\ - \x02\x02\x04\x12\x04\xcb\x06\x02\n\n\r\n\x05\x04\x15\x02\x02\x05\x12\x04\ - \xcb\x06\x0b\x11\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\xcb\x06\x12\x1d\n\ - \r\n\x05\x04\x15\x02\x02\x03\x12\x04\xcb\x06\x20!\no\n\x04\x04\x15\x02\ - \x03\x12\x04\xcf\x06\x02\x1f\x1aa\x20Asset\x20content\x20type.\x20If\x20\ - not\x20specified,\x20no\x20content\x20but\x20the\x20asset\x20name\x20and\ - \n\x20type\x20will\x20be\x20returned.\n\n\r\n\x05\x04\x15\x02\x03\x06\ - \x12\x04\xcf\x06\x02\r\n\r\n\x05\x04\x15\x02\x03\x01\x12\x04\xcf\x06\x0e\ - \x1a\n\r\n\x05\x04\x15\x02\x03\x03\x12\x04\xcf\x06\x1d\x1e\ni\n\x04\x04\ - \x15\x02\x04\x12\x06\xd3\x06\x02\xd4\x06/\x1aY\x20Required.\x20Feed\x20o\ - utput\x20configuration\x20defining\x20where\x20the\x20asset\x20updates\ - \x20are\n\x20published\x20to.\n\n\r\n\x05\x04\x15\x02\x04\x06\x12\x04\ - \xd3\x06\x02\x12\n\r\n\x05\x04\x15\x02\x04\x01\x12\x04\xd3\x06\x13%\n\r\ - \n\x05\x04\x15\x02\x04\x03\x12\x04\xd3\x06()\n\r\n\x05\x04\x15\x02\x04\ - \x08\x12\x04\xd4\x06\x06.\n\x10\n\x08\x04\x15\x02\x04\x08\x9c\x08\0\x12\ - \x04\xd4\x06\x07-\n\xeb\x04\n\x04\x04\x15\x02\x05\x12\x04\xe2\x06\x02!\ - \x1a\xdc\x04\x20A\x20condition\x20which\x20determines\x20whether\x20an\ - \x20asset\x20update\x20should\x20be\x20published.\n\x20If\x20specified,\ - \x20an\x20asset\x20will\x20be\x20returned\x20only\x20when\x20the\x20expr\ - ession\x20evaluates\n\x20to\x20true.\n\x20When\x20set,\x20`expression`\ - \x20field\x20in\x20the\x20`Expr`\x20must\x20be\x20a\x20valid\x20[CEL\x20\ - expression]\n\x20(https://github.com/google/cel-spec)\x20on\x20a\x20Temp\ - oralAsset\x20with\x20name\n\x20`temporal_asset`.\x20Example:\x20a\x20Fee\ - d\x20with\x20expression\x20(\"temporal_asset.deleted\n\x20==\x20true\")\ - \x20will\x20only\x20publish\x20Asset\x20deletions.\x20Other\x20fields\ - \x20of\x20`Expr`\x20are\n\x20optional.\n\n\x20See\x20our\x20[user\n\x20g\ - uide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-cha\ - nges-with-condition)\n\x20for\x20detailed\x20instructions.\n\n\r\n\x05\ - \x04\x15\x02\x05\x06\x12\x04\xe2\x06\x02\x12\n\r\n\x05\x04\x15\x02\x05\ - \x01\x12\x04\xe2\x06\x13\x1c\n\r\n\x05\x04\x15\x02\x05\x03\x12\x04\xe2\ - \x06\x1f\x20\n\xfb\x06\n\x04\x04\x15\x02\x06\x12\x04\xf4\x06\x02)\x1a\ - \xec\x06\x20A\x20list\x20of\x20relationship\x20types\x20to\x20output,\ - \x20for\x20example:\n\x20`INSTANCE_TO_INSTANCEGROUP`.\x20This\x20field\ - \x20should\x20only\x20be\x20specified\x20if\n\x20content_type=RELATIONSH\ - IP.\n\x20*\x20If\x20specified:\n\x20it\x20outputs\x20specified\x20relati\ - onship\x20updates\x20on\x20the\x20[asset_names]\x20or\x20the\n\x20[asset\ - _types].\x20It\x20returns\x20an\x20error\x20if\x20any\x20of\x20the\x20[r\ - elationship_types]\n\x20doesn't\x20belong\x20to\x20the\x20supported\x20r\ - elationship\x20types\x20of\x20the\x20[asset_names]\x20or\n\x20[asset_typ\ - es],\x20or\x20any\x20of\x20the\x20[asset_names]\x20or\x20the\x20[asset_t\ - ypes]\x20doesn't\n\x20belong\x20to\x20the\x20source\x20types\x20of\x20th\ - e\x20[relationship_types].\n\x20*\x20Otherwise:\n\x20it\x20outputs\x20th\ - e\x20supported\x20relationships\x20of\x20the\x20types\x20of\x20[asset_na\ - mes]\x20and\n\x20[asset_types]\x20or\x20returns\x20an\x20error\x20if\x20\ - any\x20of\x20the\x20[asset_names]\x20or\x20the\n\x20[asset_types]\x20has\ - \x20no\x20replationship\x20support.\n\x20See\x20[Introduction\x20to\x20C\ - loud\x20Asset\n\x20Inventory](https://cloud.google.com/asset-inventory/d\ - ocs/overview)\n\x20for\x20all\x20supported\x20asset\x20types\x20and\x20r\ - elationship\x20types.\n\n\r\n\x05\x04\x15\x02\x06\x04\x12\x04\xf4\x06\ - \x02\n\n\r\n\x05\x04\x15\x02\x06\x05\x12\x04\xf4\x06\x0b\x11\n\r\n\x05\ - \x04\x15\x02\x06\x01\x12\x04\xf4\x06\x12$\n\r\n\x05\x04\x15\x02\x06\x03\ - \x12\x04\xf4\x06'(\n-\n\x02\x04\x16\x12\x06\xf8\x06\0\xa6\x08\x01\x1a\ - \x1f\x20Search\x20all\x20resources\x20request.\n\n\x0b\n\x03\x04\x16\x01\ - \x12\x04\xf8\x06\x08!\n\xd0\x04\n\x04\x04\x16\x02\0\x12\x04\x85\x07\x02<\ - \x1a\xc1\x04\x20Required.\x20A\x20scope\x20can\x20be\x20a\x20project,\ - \x20a\x20folder,\x20or\x20an\x20organization.\x20The\n\x20search\x20is\ - \x20limited\x20to\x20the\x20resources\x20within\x20the\x20`scope`.\x20Th\ - e\x20caller\x20must\x20be\n\x20granted\x20the\n\x20[`cloudasset.assets.s\ - earchAllResources`](https://cloud.google.com/asset-inventory/docs/access\ - -control#required_permissions)\n\x20permission\x20on\x20the\x20desired\ - \x20scope.\n\n\x20The\x20allowed\x20values\x20are:\n\n\x20*\x20projects/\ - {PROJECT_ID}\x20(e.g.,\x20\"projects/foo-bar\")\n\x20*\x20projects/{PROJ\ - ECT_NUMBER}\x20(e.g.,\x20\"projects/12345678\")\n\x20*\x20folders/{FOLDE\ - R_NUMBER}\x20(e.g.,\x20\"folders/1234567\")\n\x20*\x20organizations/{ORG\ - ANIZATION_NUMBER}\x20(e.g.,\x20\"organizations/123456\")\n\n\r\n\x05\x04\ - \x16\x02\0\x05\x12\x04\x85\x07\x02\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\ - \x04\x85\x07\t\x0e\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\x85\x07\x11\x12\n\ - \r\n\x05\x04\x16\x02\0\x08\x12\x04\x85\x07\x13;\n\x10\n\x08\x04\x16\x02\ - \0\x08\x9c\x08\0\x12\x04\x85\x07\x14:\n\xb4#\n\x04\x04\x16\x02\x01\x12\ - \x04\xd3\x07\x02<\x1a\xa5#\x20Optional.\x20The\x20query\x20statement.\ - \x20See\x20[how\x20to\x20construct\x20a\n\x20query](https://cloud.google\ - .com/asset-inventory/docs/searching-resources#how_to_construct_a_query)\ - \n\x20for\x20more\x20information.\x20If\x20not\x20specified\x20or\x20emp\ - ty,\x20it\x20will\x20search\x20all\x20the\n\x20resources\x20within\x20th\ - e\x20specified\x20`scope`.\n\n\x20Examples:\n\n\x20*\x20`name:Important`\ - \x20to\x20find\x20Google\x20Cloud\x20resources\x20whose\x20name\x20conta\ - ins\n\x20\x20\x20`Important`\x20as\x20a\x20word.\n\x20*\x20`name=Importa\ - nt`\x20to\x20find\x20the\x20Google\x20Cloud\x20resource\x20whose\x20name\ - \x20is\x20exactly\n\x20\x20\x20`Important`.\n\x20*\x20`displayName:Impor\ - *`\x20to\x20find\x20Google\x20Cloud\x20resources\x20whose\x20display\x20\ - name\n\x20\x20\x20contains\x20`Impor`\x20as\x20a\x20prefix\x20of\x20any\ - \x20word\x20in\x20the\x20field.\n\x20*\x20`location:us-west*`\x20to\x20f\ - ind\x20Google\x20Cloud\x20resources\x20whose\x20location\n\x20\x20\x20co\ - ntains\x20both\x20`us`\x20and\x20`west`\x20as\x20prefixes.\n\x20*\x20`la\ - bels:prod`\x20to\x20find\x20Google\x20Cloud\x20resources\x20whose\x20lab\ - els\x20contain\x20`prod`\n\x20\x20\x20as\x20a\x20key\x20or\x20value.\n\ - \x20*\x20`labels.env:prod`\x20to\x20find\x20Google\x20Cloud\x20resources\ - \x20that\x20have\x20a\x20label\x20`env`\n\x20\x20\x20and\x20its\x20value\ - \x20is\x20`prod`.\n\x20*\x20`labels.env:*`\x20to\x20find\x20Google\x20Cl\ - oud\x20resources\x20that\x20have\x20a\x20label\x20`env`.\n\x20*\x20`tagK\ - eys:env`\x20to\x20find\x20Google\x20Cloud\x20resources\x20that\x20have\ - \x20directly\n\x20\x20\x20attached\x20tags\x20where\x20the\n\x20\x20\x20\ - [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/t\ - agKeys#resource:-tagkey)\n\x20\x20\x20.`namespacedName`\x20contains\x20`\ - env`.\n\x20*\x20`tagValues:prod*`\x20to\x20find\x20Google\x20Cloud\x20re\ - sources\x20that\x20have\x20directly\n\x20\x20\x20attached\x20tags\x20whe\ - re\x20the\n\x20\x20\x20[`TagValue`](https://cloud.google.com/resource-ma\ - nager/reference/rest/v3/tagValues#resource:-tagvalue)\n\x20\x20\x20.`nam\ - espacedName`\x20contains\x20a\x20word\x20prefixed\x20by\x20`prod`.\n\x20\ - *\x20`tagValueIds=tagValues/123`\x20to\x20find\x20Google\x20Cloud\x20res\ - ources\x20that\x20have\n\x20\x20\x20directly\x20attached\x20tags\x20wher\ - e\x20the\n\x20\x20\x20[`TagValue`](https://cloud.google.com/resource-man\ - ager/reference/rest/v3/tagValues#resource:-tagvalue)\n\x20\x20\x20.`name\ - `\x20is\x20exactly\x20`tagValues/123`.\n\x20*\x20`effectiveTagKeys:env`\ - \x20to\x20find\x20Google\x20Cloud\x20resources\x20that\x20have\n\x20\x20\ - \x20directly\x20attached\x20or\x20inherited\x20tags\x20where\x20the\n\ - \x20\x20\x20[`TagKey`](https://cloud.google.com/resource-manager/referen\ - ce/rest/v3/tagKeys#resource:-tagkey)\n\x20\x20\x20.`namespacedName`\x20c\ - ontains\x20`env`.\n\x20*\x20`effectiveTagValues:prod*`\x20to\x20find\x20\ - Google\x20Cloud\x20resources\x20that\x20have\n\x20\x20\x20directly\x20at\ - tached\x20or\x20inherited\x20tags\x20where\x20the\n\x20\x20\x20[`TagValu\ - e`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValue\ - s#resource:-tagvalue)\n\x20\x20\x20.`namespacedName`\x20contains\x20a\ - \x20word\x20prefixed\x20by\x20`prod`.\n\x20*\x20`effectiveTagValueIds=ta\ - gValues/123`\x20to\x20find\x20Google\x20Cloud\x20resources\x20that\n\x20\ - \x20\x20\x20have\x20directly\x20attached\x20or\x20inherited\x20tags\x20w\ - here\x20the\n\x20\x20\x20[`TagValue`](https://cloud.google.com/resource-\ - manager/reference/rest/v3/tagValues#resource:-tagvalue)\n\x20\x20\x20.`n\ - ame`\x20is\x20exactly\x20`tagValues/123`.\n\x20*\x20`kmsKey:key`\x20to\ - \x20find\x20Google\x20Cloud\x20resources\x20encrypted\x20with\x20a\n\x20\ - \x20\x20customer-managed\x20encryption\x20key\x20whose\x20name\x20contai\ - ns\x20`key`\x20as\x20a\x20word.\x20This\n\x20\x20\x20field\x20is\x20depr\ - ecated.\x20Please\x20use\x20the\x20`kmsKeys`\x20field\x20to\x20retrieve\ - \x20Cloud\x20KMS\n\x20\x20\x20key\x20information.\n\x20*\x20`kmsKeys:key\ - `\x20to\x20find\x20Google\x20Cloud\x20resources\x20encrypted\x20with\n\ - \x20\x20\x20customer-managed\x20encryption\x20keys\x20whose\x20name\x20c\ - ontains\x20the\x20word\x20`key`.\n\x20*\x20`relationships:instance-group\ - -1`\x20to\x20find\x20Google\x20Cloud\x20resources\x20that\x20have\n\x20\ - \x20\x20relationships\x20with\x20`instance-group-1`\x20in\x20the\x20rela\ - ted\x20resource\x20name.\n\x20*\x20`relationships:INSTANCE_TO_INSTANCEGR\ - OUP`\x20to\x20find\x20Compute\x20Engine\n\x20\x20\x20instances\x20that\ - \x20have\x20relationships\x20of\x20type\x20`INSTANCE_TO_INSTANCEGROUP`.\ - \n\x20*\x20`relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1`\ - \x20to\x20find\n\x20\x20\x20Compute\x20Engine\x20instances\x20that\x20ha\ - ve\x20relationships\x20with\x20`instance-group-1`\n\x20\x20\x20in\x20the\ - \x20Compute\x20Engine\x20instance\x20group\x20resource\x20name,\x20for\ - \x20relationship\x20type\n\x20\x20\x20`INSTANCE_TO_INSTANCEGROUP`.\n\x20\ - *\x20`state:ACTIVE`\x20to\x20find\x20Google\x20Cloud\x20resources\x20who\ - se\x20state\x20contains\n\x20\x20\x20`ACTIVE`\x20as\x20a\x20word.\n\x20*\ - \x20`NOT\x20state:ACTIVE`\x20to\x20find\x20Google\x20Cloud\x20resources\ - \x20whose\x20state\x20doesn't\n\x20\x20\x20contain\x20`ACTIVE`\x20as\x20\ - a\x20word.\n\x20*\x20`createTime<1609459200`\x20to\x20find\x20Google\x20\ - Cloud\x20resources\x20that\x20were\x20created\n\x20\x20\x20before\x20`20\ - 21-01-01\x2000:00:00\x20UTC`.\x20`1609459200`\x20is\x20the\x20epoch\x20t\ - imestamp\x20of\n\x20\x20\x20`2021-01-01\x2000:00:00\x20UTC`\x20in\x20sec\ - onds.\n\x20*\x20`updateTime>1609459200`\x20to\x20find\x20Google\x20Cloud\ - \x20resources\x20that\x20were\x20updated\n\x20\x20\x20after\x20`2021-01-\ - 01\x2000:00:00\x20UTC`.\x20`1609459200`\x20is\x20the\x20epoch\x20timesta\ - mp\x20of\n\x20\x20\x20`2021-01-01\x2000:00:00\x20UTC`\x20in\x20seconds.\ - \n\x20*\x20`Important`\x20to\x20find\x20Google\x20Cloud\x20resources\x20\ - that\x20contain\x20`Important`\x20as\x20a\n\x20\x20\x20word\x20in\x20any\ - \x20of\x20the\x20searchable\x20fields.\n\x20*\x20`Impor*`\x20to\x20find\ - \x20Google\x20Cloud\x20resources\x20that\x20contain\x20`Impor`\x20as\x20\ - a\x20prefix\n\x20\x20\x20of\x20any\x20word\x20in\x20any\x20of\x20the\x20\ - searchable\x20fields.\n\x20*\x20`Important\x20location:(us-west1\x20OR\ - \x20global)`\x20to\x20find\x20Google\x20Cloud\n\x20\x20\x20resources\x20\ - that\x20contain\x20`Important`\x20as\x20a\x20word\x20in\x20any\x20of\x20\ - the\x20searchable\n\x20\x20\x20fields\x20and\x20are\x20also\x20located\ - \x20in\x20the\x20`us-west1`\x20region\x20or\x20the\x20`global`\n\x20\x20\ - \x20location.\n\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xd3\x07\x02\x08\n\ - \r\n\x05\x04\x16\x02\x01\x01\x12\x04\xd3\x07\t\x0e\n\r\n\x05\x04\x16\x02\ - \x01\x03\x12\x04\xd3\x07\x11\x12\n\r\n\x05\x04\x16\x02\x01\x08\x12\x04\ - \xd3\x07\x13;\n\x10\n\x08\x04\x16\x02\x01\x08\x9c\x08\0\x12\x04\xd3\x07\ - \x14:\n\xf7\x05\n\x04\x04\x16\x02\x02\x12\x04\xe3\x07\x02K\x1a\xe8\x05\ - \x20Optional.\x20A\x20list\x20of\x20asset\x20types\x20that\x20this\x20re\ - quest\x20searches\x20for.\x20If\x20empty,\n\x20it\x20will\x20search\x20a\ - ll\x20the\x20[searchable\x20asset\n\x20types](https://cloud.google.com/a\ - sset-inventory/docs/supported-asset-types#searchable_asset_types).\n\n\ - \x20Regular\x20expressions\x20are\x20also\x20supported.\x20For\x20exampl\ - e:\n\n\x20*\x20\"compute.googleapis.com.*\"\x20snapshots\x20resources\ - \x20whose\x20asset\x20type\x20starts\n\x20with\x20\"compute.googleapis.c\ - om\".\n\x20*\x20\".*Instance\"\x20snapshots\x20resources\x20whose\x20ass\ - et\x20type\x20ends\x20with\x20\"Instance\".\n\x20*\x20\".*Instance.*\"\ - \x20snapshots\x20resources\x20whose\x20asset\x20type\x20contains\x20\"In\ - stance\".\n\n\x20See\x20[RE2](https://github.com/google/re2/wiki/Syntax)\ - \x20for\x20all\x20supported\n\x20regular\x20expression\x20syntax.\x20If\ - \x20the\x20regular\x20expression\x20does\x20not\x20match\x20any\n\x20sup\ - ported\x20asset\x20type,\x20an\x20INVALID_ARGUMENT\x20error\x20will\x20b\ - e\x20returned.\n\n\r\n\x05\x04\x16\x02\x02\x04\x12\x04\xe3\x07\x02\n\n\r\ - \n\x05\x04\x16\x02\x02\x05\x12\x04\xe3\x07\x0b\x11\n\r\n\x05\x04\x16\x02\ - \x02\x01\x12\x04\xe3\x07\x12\x1d\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\ - \xe3\x07\x20!\n\r\n\x05\x04\x16\x02\x02\x08\x12\x04\xe3\x07\"J\n\x10\n\ - \x08\x04\x16\x02\x02\x08\x9c\x08\0\x12\x04\xe3\x07#I\n\xda\x02\n\x04\x04\ - \x16\x02\x03\x12\x04\xea\x07\x02?\x1a\xcb\x02\x20Optional.\x20The\x20pag\ - e\x20size\x20for\x20search\x20result\x20pagination.\x20Page\x20size\x20i\ - s\x20capped\n\x20at\x20500\x20even\x20if\x20a\x20larger\x20value\x20is\ - \x20given.\x20If\x20set\x20to\x20zero\x20or\x20a\x20negative\x20value,\n\ - \x20server\x20will\x20pick\x20an\x20appropriate\x20default.\x20Returned\ - \x20results\x20may\x20be\x20fewer\x20than\n\x20requested.\x20When\x20thi\ - s\x20happens,\x20there\x20could\x20be\x20more\x20results\x20as\x20long\ - \x20as\n\x20`next_page_token`\x20is\x20returned.\n\n\r\n\x05\x04\x16\x02\ - \x03\x05\x12\x04\xea\x07\x02\x07\n\r\n\x05\x04\x16\x02\x03\x01\x12\x04\ - \xea\x07\x08\x11\n\r\n\x05\x04\x16\x02\x03\x03\x12\x04\xea\x07\x14\x15\n\ - \r\n\x05\x04\x16\x02\x03\x08\x12\x04\xea\x07\x16>\n\x10\n\x08\x04\x16\ - \x02\x03\x08\x9c\x08\0\x12\x04\xea\x07\x17=\n\xa5\x02\n\x04\x04\x16\x02\ - \x04\x12\x04\xf0\x07\x02A\x1a\x96\x02\x20Optional.\x20If\x20present,\x20\ - then\x20retrieve\x20the\x20next\x20batch\x20of\x20results\x20from\x20the\ - \n\x20preceding\x20call\x20to\x20this\x20method.\x20`page_token`\x20must\ - \x20be\x20the\x20value\x20of\n\x20`next_page_token`\x20from\x20the\x20pr\ - evious\x20response.\x20The\x20values\x20of\x20all\x20other\n\x20method\ - \x20parameters,\x20must\x20be\x20identical\x20to\x20those\x20in\x20the\ - \x20previous\x20call.\n\n\r\n\x05\x04\x16\x02\x04\x05\x12\x04\xf0\x07\ - \x02\x08\n\r\n\x05\x04\x16\x02\x04\x01\x12\x04\xf0\x07\t\x13\n\r\n\x05\ - \x04\x16\x02\x04\x03\x12\x04\xf0\x07\x16\x17\n\r\n\x05\x04\x16\x02\x04\ - \x08\x12\x04\xf0\x07\x18@\n\x10\n\x08\x04\x16\x02\x04\x08\x9c\x08\0\x12\ - \x04\xf0\x07\x19?\n\xfe\x03\n\x04\x04\x16\x02\x05\x12\x04\x83\x08\x02?\ - \x1a\xef\x03\x20Optional.\x20A\x20comma-separated\x20list\x20of\x20field\ - s\x20specifying\x20the\x20sorting\x20order\x20of\n\x20the\x20results.\ - \x20The\x20default\x20order\x20is\x20ascending.\x20Add\x20\"\x20DESC\"\ - \x20after\x20the\x20field\n\x20name\x20to\x20indicate\x20descending\x20o\ - rder.\x20Redundant\x20space\x20characters\x20are\x20ignored.\n\x20Exampl\ - e:\x20\"location\x20DESC,\x20name\".\n\x20Only\x20the\x20following\x20fi\ - elds\x20in\x20the\x20response\x20are\x20sortable:\n\n\x20\x20\x20*\x20na\ - me\n\x20\x20\x20*\x20assetType\n\x20\x20\x20*\x20project\n\x20\x20\x20*\ - \x20displayName\n\x20\x20\x20*\x20description\n\x20\x20\x20*\x20location\ - \n\x20\x20\x20*\x20createTime\n\x20\x20\x20*\x20updateTime\n\x20\x20\x20\ - *\x20state\n\x20\x20\x20*\x20parentFullResourceName\n\x20\x20\x20*\x20pa\ - rentAssetType\n\n\r\n\x05\x04\x16\x02\x05\x05\x12\x04\x83\x08\x02\x08\n\ - \r\n\x05\x04\x16\x02\x05\x01\x12\x04\x83\x08\t\x11\n\r\n\x05\x04\x16\x02\ - \x05\x03\x12\x04\x83\x08\x14\x15\n\r\n\x05\x04\x16\x02\x05\x08\x12\x04\ - \x83\x08\x16>\n\x10\n\x08\x04\x16\x02\x05\x08\x9c\x08\0\x12\x04\x83\x08\ - \x17=\n\x85\x08\n\x04\x04\x16\x02\x06\x12\x06\xa4\x08\x02\xa5\x08/\x1a\ - \xf4\x07\x20Optional.\x20A\x20comma-separated\x20list\x20of\x20fields\ - \x20that\x20you\x20want\x20returned\x20in\x20the\n\x20results.\x20The\ - \x20following\x20fields\x20are\x20returned\x20by\x20default\x20if\x20not\ - \x20specified:\n\n\x20\x20\x20*\x20`name`\n\x20\x20\x20*\x20`assetType`\ - \n\x20\x20\x20*\x20`project`\n\x20\x20\x20*\x20`folders`\n\x20\x20\x20*\ - \x20`organization`\n\x20\x20\x20*\x20`displayName`\n\x20\x20\x20*\x20`de\ - scription`\n\x20\x20\x20*\x20`location`\n\x20\x20\x20*\x20`labels`\n\x20\ - \x20\x20*\x20`tags`\n\x20\x20\x20*\x20`effectiveTags`\n\x20\x20\x20*\x20\ - `networkTags`\n\x20\x20\x20*\x20`kmsKeys`\n\x20\x20\x20*\x20`createTime`\ - \n\x20\x20\x20*\x20`updateTime`\n\x20\x20\x20*\x20`state`\n\x20\x20\x20*\ - \x20`additionalAttributes`\n\x20\x20\x20*\x20`parentFullResourceName`\n\ - \x20\x20\x20*\x20`parentAssetType`\n\n\x20Some\x20fields\x20of\x20large\ - \x20size,\x20such\x20as\x20`versionedResources`,\n\x20`attachedResources\ - `,\x20`effectiveTags`\x20etc.,\x20are\x20not\x20returned\x20by\x20defaul\ - t,\x20but\n\x20you\x20can\x20specify\x20them\x20in\x20the\x20`read_mask`\ - \x20parameter\x20if\x20you\x20want\x20to\x20include\n\x20them.\x20If\x20\ - `\"*\"`\x20is\x20specified,\x20all\x20[available\n\x20fields](https://cl\ - oud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAll\ - Resources#resourcesearchresult)\n\x20are\x20returned.\n\x20Examples:\x20\ - `\"name,location\"`,\x20`\"name,versionedResources\"`,\x20`\"*\"`.\n\x20\ - Any\x20invalid\x20field\x20path\x20will\x20trigger\x20INVALID_ARGUMENT\ - \x20error.\n\n\r\n\x05\x04\x16\x02\x06\x06\x12\x04\xa4\x08\x02\x1b\n\r\n\ - \x05\x04\x16\x02\x06\x01\x12\x04\xa4\x08\x1c%\n\r\n\x05\x04\x16\x02\x06\ - \x03\x12\x04\xa4\x08()\n\r\n\x05\x04\x16\x02\x06\x08\x12\x04\xa5\x08\x06\ - .\n\x10\n\x08\x04\x16\x02\x06\x08\x9c\x08\0\x12\x04\xa5\x08\x07-\n.\n\ - \x02\x04\x17\x12\x06\xa9\x08\0\xb2\x08\x01\x1a\x20\x20Search\x20all\x20r\ - esources\x20response.\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xa9\x08\x08\"\ny\ - \n\x04\x04\x17\x02\0\x12\x04\xac\x08\x02,\x1ak\x20A\x20list\x20of\x20Res\ - ources\x20that\x20match\x20the\x20search\x20query.\x20It\x20contains\x20\ - the\x20resource\n\x20standard\x20metadata\x20information.\n\n\r\n\x05\ - \x04\x17\x02\0\x04\x12\x04\xac\x08\x02\n\n\r\n\x05\x04\x17\x02\0\x06\x12\ - \x04\xac\x08\x0b\x1f\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xac\x08\x20'\n\ - \r\n\x05\x04\x17\x02\0\x03\x12\x04\xac\x08*+\n\xe4\x01\n\x04\x04\x17\x02\ - \x01\x12\x04\xb1\x08\x02\x1d\x1a\xd5\x01\x20If\x20there\x20are\x20more\ - \x20results\x20than\x20those\x20appearing\x20in\x20this\x20response,\x20\ - then\n\x20`next_page_token`\x20is\x20included.\x20To\x20get\x20the\x20ne\ - xt\x20set\x20of\x20results,\x20call\x20this\n\x20method\x20again\x20usin\ - g\x20the\x20value\x20of\x20`next_page_token`\x20as\x20`page_token`.\n\n\ - \r\n\x05\x04\x17\x02\x01\x05\x12\x04\xb1\x08\x02\x08\n\r\n\x05\x04\x17\ - \x02\x01\x01\x12\x04\xb1\x08\t\x18\n\r\n\x05\x04\x17\x02\x01\x03\x12\x04\ - \xb1\x08\x1b\x1c\n0\n\x02\x04\x18\x12\x06\xb5\x08\0\x9b\t\x01\x1a\"\x20S\ - earch\x20all\x20IAM\x20policies\x20request.\n\n\x0b\n\x03\x04\x18\x01\ - \x12\x04\xb5\x08\x08#\n\xd5\x04\n\x04\x04\x18\x02\0\x12\x04\xc2\x08\x02<\ - \x1a\xc6\x04\x20Required.\x20A\x20scope\x20can\x20be\x20a\x20project,\ - \x20a\x20folder,\x20or\x20an\x20organization.\x20The\n\x20search\x20is\ - \x20limited\x20to\x20the\x20IAM\x20policies\x20within\x20the\x20`scope`.\ - \x20The\x20caller\x20must\n\x20be\x20granted\x20the\n\x20[`cloudasset.as\ - sets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/doc\ - s/access-control#required_permissions)\n\x20permission\x20on\x20the\x20d\ - esired\x20scope.\n\n\x20The\x20allowed\x20values\x20are:\n\n\x20*\x20pro\ - jects/{PROJECT_ID}\x20(e.g.,\x20\"projects/foo-bar\")\n\x20*\x20projects\ - /{PROJECT_NUMBER}\x20(e.g.,\x20\"projects/12345678\")\n\x20*\x20folders/\ - {FOLDER_NUMBER}\x20(e.g.,\x20\"folders/1234567\")\n\x20*\x20organization\ - s/{ORGANIZATION_NUMBER}\x20(e.g.,\x20\"organizations/123456\")\n\n\r\n\ - \x05\x04\x18\x02\0\x05\x12\x04\xc2\x08\x02\x08\n\r\n\x05\x04\x18\x02\0\ - \x01\x12\x04\xc2\x08\t\x0e\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xc2\x08\ - \x11\x12\n\r\n\x05\x04\x18\x02\0\x08\x12\x04\xc2\x08\x13;\n\x10\n\x08\ - \x04\x18\x02\0\x08\x9c\x08\0\x12\x04\xc2\x08\x14:\n\xce\x12\n\x04\x04\ - \x18\x02\x01\x12\x04\xee\x08\x02<\x1a\xbf\x12\x20Optional.\x20The\x20que\ - ry\x20statement.\x20See\x20[how\x20to\x20construct\x20a\n\x20query](http\ - s://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_\ - construct_a_query)\n\x20for\x20more\x20information.\x20If\x20not\x20spec\ - ified\x20or\x20empty,\x20it\x20will\x20search\x20all\x20the\n\x20IAM\x20\ - policies\x20within\x20the\x20specified\x20`scope`.\x20Note\x20that\x20th\ - e\x20query\x20string\x20is\n\x20compared\x20against\x20each\x20IAM\x20po\ - licy\x20binding,\x20including\x20its\x20principals,\n\x20roles,\x20and\ - \x20IAM\x20conditions.\x20The\x20returned\x20IAM\x20policies\x20will\x20\ - only\n\x20contain\x20the\x20bindings\x20that\x20match\x20your\x20query.\ - \x20To\x20learn\x20more\x20about\x20the\x20IAM\n\x20policy\x20structure,\ - \x20see\x20the\x20[IAM\x20policy\n\x20documentation](https://cloud.googl\ - e.com/iam/help/allow-policies/structure).\n\n\x20Examples:\n\n\x20*\x20`\ - policy:amy@gmail.com`\x20to\x20find\x20IAM\x20policy\x20bindings\x20that\ - \x20specify\x20user\n\x20\x20\x20\"amy@gmail.com\".\n\x20*\x20`policy:ro\ - les/compute.admin`\x20to\x20find\x20IAM\x20policy\x20bindings\x20that\ - \x20specify\n\x20\x20\x20the\x20Compute\x20Admin\x20role.\n\x20*\x20`pol\ - icy:comp*`\x20to\x20find\x20IAM\x20policy\x20bindings\x20that\x20contain\ - \x20\"comp\"\x20as\x20a\n\x20\x20\x20prefix\x20of\x20any\x20word\x20in\ - \x20the\x20binding.\n\x20*\x20`policy.role.permissions:storage.buckets.u\ - pdate`\x20to\x20find\x20IAM\x20policy\n\x20\x20\x20bindings\x20that\x20s\ - pecify\x20a\x20role\x20containing\x20\"storage.buckets.update\"\n\x20\ - \x20\x20permission.\x20Note\x20that\x20if\x20callers\x20don't\x20have\ - \x20`iam.roles.get`\x20access\x20to\x20a\n\x20\x20\x20role's\x20included\ - \x20permissions,\x20policy\x20bindings\x20that\x20specify\x20this\x20rol\ - e\x20will\n\x20\x20\x20be\x20dropped\x20from\x20the\x20search\x20results\ - .\n\x20*\x20`policy.role.permissions:upd*`\x20to\x20find\x20IAM\x20polic\ - y\x20bindings\x20that\x20specify\x20a\n\x20\x20\x20role\x20containing\ - \x20\"upd\"\x20as\x20a\x20prefix\x20of\x20any\x20word\x20in\x20the\x20ro\ - le\x20permission.\n\x20\x20\x20Note\x20that\x20if\x20callers\x20don't\ - \x20have\x20`iam.roles.get`\x20access\x20to\x20a\x20role's\n\x20\x20\x20\ - included\x20permissions,\x20policy\x20bindings\x20that\x20specify\x20thi\ - s\x20role\x20will\x20be\n\x20\x20\x20dropped\x20from\x20the\x20search\ - \x20results.\n\x20*\x20`resource:organizations/123456`\x20to\x20find\x20\ - IAM\x20policy\x20bindings\n\x20\x20\x20that\x20are\x20set\x20on\x20\"org\ - anizations/123456\".\n\x20*\x20`resource=//cloudresourcemanager.googleap\ - is.com/projects/myproject`\x20to\n\x20\x20\x20find\x20IAM\x20policy\x20b\ - indings\x20that\x20are\x20set\x20on\x20the\x20project\x20named\x20\"mypr\ - oject\".\n\x20*\x20`Important`\x20to\x20find\x20IAM\x20policy\x20binding\ - s\x20that\x20contain\x20\"Important\"\x20as\x20a\n\x20\x20\x20word\x20in\ - \x20any\x20of\x20the\x20searchable\x20fields\x20(except\x20for\x20the\ - \x20included\n\x20\x20\x20permissions).\n\x20*\x20`resource:(instance1\ - \x20OR\x20instance2)\x20policy:amy`\x20to\x20find\n\x20\x20\x20IAM\x20po\ - licy\x20bindings\x20that\x20are\x20set\x20on\x20resources\x20\"instance1\ - \"\x20or\n\x20\x20\x20\"instance2\"\x20and\x20also\x20specify\x20user\ - \x20\"amy\".\n\x20*\x20`roles:roles/compute.admin`\x20to\x20find\x20IAM\ - \x20policy\x20bindings\x20that\x20specify\x20the\n\x20\x20\x20Compute\ - \x20Admin\x20role.\n\x20*\x20`memberTypes:user`\x20to\x20find\x20IAM\x20\ - policy\x20bindings\x20that\x20contain\x20the\n\x20\x20\x20principal\x20t\ - ype\x20\"user\".\n\n\r\n\x05\x04\x18\x02\x01\x05\x12\x04\xee\x08\x02\x08\ - \n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\xee\x08\t\x0e\n\r\n\x05\x04\x18\ - \x02\x01\x03\x12\x04\xee\x08\x11\x12\n\r\n\x05\x04\x18\x02\x01\x08\x12\ - \x04\xee\x08\x13;\n\x10\n\x08\x04\x18\x02\x01\x08\x9c\x08\0\x12\x04\xee\ - \x08\x14:\n\xda\x02\n\x04\x04\x18\x02\x02\x12\x04\xf5\x08\x02?\x1a\xcb\ - \x02\x20Optional.\x20The\x20page\x20size\x20for\x20search\x20result\x20p\ - agination.\x20Page\x20size\x20is\x20capped\n\x20at\x20500\x20even\x20if\ - \x20a\x20larger\x20value\x20is\x20given.\x20If\x20set\x20to\x20zero\x20o\ - r\x20a\x20negative\x20value,\n\x20server\x20will\x20pick\x20an\x20approp\ - riate\x20default.\x20Returned\x20results\x20may\x20be\x20fewer\x20than\n\ - \x20requested.\x20When\x20this\x20happens,\x20there\x20could\x20be\x20mo\ - re\x20results\x20as\x20long\x20as\n\x20`next_page_token`\x20is\x20return\ - ed.\n\n\r\n\x05\x04\x18\x02\x02\x05\x12\x04\xf5\x08\x02\x07\n\r\n\x05\ - \x04\x18\x02\x02\x01\x12\x04\xf5\x08\x08\x11\n\r\n\x05\x04\x18\x02\x02\ - \x03\x12\x04\xf5\x08\x14\x15\n\r\n\x05\x04\x18\x02\x02\x08\x12\x04\xf5\ - \x08\x16>\n\x10\n\x08\x04\x18\x02\x02\x08\x9c\x08\0\x12\x04\xf5\x08\x17=\ - \n\x9f\x02\n\x04\x04\x18\x02\x03\x12\x04\xfb\x08\x02A\x1a\x90\x02\x20Opt\ - ional.\x20If\x20present,\x20retrieve\x20the\x20next\x20batch\x20of\x20re\ - sults\x20from\x20the\x20preceding\n\x20call\x20to\x20this\x20method.\x20\ - `page_token`\x20must\x20be\x20the\x20value\x20of\x20`next_page_token`\n\ - \x20from\x20the\x20previous\x20response.\x20The\x20values\x20of\x20all\ - \x20other\x20method\x20parameters\x20must\n\x20be\x20identical\x20to\x20\ - those\x20in\x20the\x20previous\x20call.\n\n\r\n\x05\x04\x18\x02\x03\x05\ - \x12\x04\xfb\x08\x02\x08\n\r\n\x05\x04\x18\x02\x03\x01\x12\x04\xfb\x08\t\ - \x13\n\r\n\x05\x04\x18\x02\x03\x03\x12\x04\xfb\x08\x16\x17\n\r\n\x05\x04\ - \x18\x02\x03\x08\x12\x04\xfb\x08\x18@\n\x10\n\x08\x04\x18\x02\x03\x08\ - \x9c\x08\0\x12\x04\xfb\x08\x19?\n\xc2\x06\n\x04\x04\x18\x02\x04\x12\x04\ - \x8e\t\x02K\x1a\xb3\x06\x20Optional.\x20A\x20list\x20of\x20asset\x20type\ - s\x20that\x20the\x20IAM\x20policies\x20are\x20attached\x20to.\x20If\n\ - \x20empty,\x20it\x20will\x20search\x20the\x20IAM\x20policies\x20that\x20\ - are\x20attached\x20to\x20all\x20the\n\x20[searchable\x20asset\n\x20types\ - ](https://cloud.google.com/asset-inventory/docs/supported-asset-types#se\ - archable_asset_types).\n\n\x20Regular\x20expressions\x20are\x20also\x20s\ - upported.\x20For\x20example:\n\n\x20*\x20\"compute.googleapis.com.*\"\ - \x20snapshots\x20IAM\x20policies\x20attached\x20to\x20asset\x20type\n\ - \x20starts\x20with\x20\"compute.googleapis.com\".\n\x20*\x20\".*Instance\ - \"\x20snapshots\x20IAM\x20policies\x20attached\x20to\x20asset\x20type\ - \x20ends\x20with\n\x20\"Instance\".\n\x20*\x20\".*Instance.*\"\x20snapsh\ - ots\x20IAM\x20policies\x20attached\x20to\x20asset\x20type\x20contains\n\ - \x20\"Instance\".\n\n\x20See\x20[RE2](https://github.com/google/re2/wiki\ - /Syntax)\x20for\x20all\x20supported\n\x20regular\x20expression\x20syntax\ - .\x20If\x20the\x20regular\x20expression\x20does\x20not\x20match\x20any\n\ - \x20supported\x20asset\x20type,\x20an\x20INVALID_ARGUMENT\x20error\x20wi\ - ll\x20be\x20returned.\n\n\r\n\x05\x04\x18\x02\x04\x04\x12\x04\x8e\t\x02\ - \n\n\r\n\x05\x04\x18\x02\x04\x05\x12\x04\x8e\t\x0b\x11\n\r\n\x05\x04\x18\ - \x02\x04\x01\x12\x04\x8e\t\x12\x1d\n\r\n\x05\x04\x18\x02\x04\x03\x12\x04\ - \x8e\t\x20!\n\r\n\x05\x04\x18\x02\x04\x08\x12\x04\x8e\t\"J\n\x10\n\x08\ - \x04\x18\x02\x04\x08\x9c\x08\0\x12\x04\x8e\t#I\n\xfd\x03\n\x04\x04\x18\ - \x02\x05\x12\x04\x9a\t\x02?\x1a\xee\x03\x20Optional.\x20A\x20comma-separ\ - ated\x20list\x20of\x20fields\x20specifying\x20the\x20sorting\x20order\ - \x20of\n\x20the\x20results.\x20The\x20default\x20order\x20is\x20ascendin\ - g.\x20Add\x20\"\x20DESC\"\x20after\x20the\x20field\n\x20name\x20to\x20in\ - dicate\x20descending\x20order.\x20Redundant\x20space\x20characters\x20ar\ - e\x20ignored.\n\x20Example:\x20\"assetType\x20DESC,\x20resource\".\n\x20\ - Only\x20singular\x20primitive\x20fields\x20in\x20the\x20response\x20are\ - \x20sortable:\n\x20\x20\x20*\x20resource\n\x20\x20\x20*\x20assetType\n\ - \x20\x20\x20*\x20project\n\x20All\x20the\x20other\x20fields\x20such\x20a\ - s\x20repeated\x20fields\x20(e.g.,\x20`folders`)\x20and\n\x20non-primitiv\ - e\x20fields\x20(e.g.,\x20`policy`)\x20are\x20not\x20supported.\n\n\r\n\ - \x05\x04\x18\x02\x05\x05\x12\x04\x9a\t\x02\x08\n\r\n\x05\x04\x18\x02\x05\ - \x01\x12\x04\x9a\t\t\x11\n\r\n\x05\x04\x18\x02\x05\x03\x12\x04\x9a\t\x14\ - \x15\n\r\n\x05\x04\x18\x02\x05\x08\x12\x04\x9a\t\x16>\n\x10\n\x08\x04\ - \x18\x02\x05\x08\x9c\x08\0\x12\x04\x9a\t\x17=\n1\n\x02\x04\x19\x12\x06\ - \x9e\t\0\xa7\t\x01\x1a#\x20Search\x20all\x20IAM\x20policies\x20response.\ - \n\n\x0b\n\x03\x04\x19\x01\x12\x04\x9e\t\x08$\n\x9c\x01\n\x04\x04\x19\ - \x02\0\x12\x04\xa1\t\x02-\x1a\x8d\x01\x20A\x20list\x20of\x20IAM\x20polic\ - ies\x20that\x20match\x20the\x20search\x20query.\x20Related\x20informatio\ - n\n\x20such\x20as\x20the\x20associated\x20resource\x20is\x20returned\x20\ - along\x20with\x20the\x20policy.\n\n\r\n\x05\x04\x19\x02\0\x04\x12\x04\ - \xa1\t\x02\n\n\r\n\x05\x04\x19\x02\0\x06\x12\x04\xa1\t\x0b\x20\n\r\n\x05\ - \x04\x19\x02\0\x01\x12\x04\xa1\t!(\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\ - \xa1\t+,\n\xb5\x01\n\x04\x04\x19\x02\x01\x12\x04\xa6\t\x02\x1d\x1a\xa6\ - \x01\x20Set\x20if\x20there\x20are\x20more\x20results\x20than\x20those\ - \x20appearing\x20in\x20this\x20response;\x20to\x20get\n\x20the\x20next\ - \x20set\x20of\x20results,\x20call\x20this\x20method\x20again,\x20using\ - \x20this\x20value\x20as\x20the\n\x20`page_token`.\n\n\r\n\x05\x04\x19\ - \x02\x01\x05\x12\x04\xa6\t\x02\x08\n\r\n\x05\x04\x19\x02\x01\x01\x12\x04\ - \xa6\t\t\x18\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\xa6\t\x1b\x1c\n2\n\ - \x02\x04\x1a\x12\x06\xaa\t\0\xe8\n\x01\x1a$\x20IAM\x20policy\x20analysis\ - \x20query\x20message.\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\xaa\t\x08\x1e\n\ - \xb2\x01\n\x04\x04\x1a\x03\0\x12\x06\xae\t\x02\xb4\t\x03\x1a\xa1\x01\x20\ - Specifies\x20the\x20resource\x20to\x20analyze\x20for\x20access\x20polici\ - es,\x20which\x20may\x20be\x20set\n\x20directly\x20on\x20the\x20resource,\ - \x20or\x20on\x20ancestors\x20such\x20as\x20organizations,\x20folders\x20\ - or\n\x20projects.\n\n\r\n\x05\x04\x1a\x03\0\x01\x12\x04\xae\t\n\x1a\n\ - \x86\x02\n\x06\x04\x1a\x03\0\x02\0\x12\x04\xb3\t\x04K\x1a\xf5\x01\x20Req\ - uired.\x20The\x20[full\x20resource\x20name]\n\x20(https://cloud.google.c\ - om/asset-inventory/docs/resource-name-format)\n\x20of\x20a\x20resource\ - \x20of\x20[supported\x20resource\n\x20types](https://cloud.google.com/as\ - set-inventory/docs/supported-asset-types#analyzable_asset_types).\n\n\ - \x0f\n\x07\x04\x1a\x03\0\x02\0\x05\x12\x04\xb3\t\x04\n\n\x0f\n\x07\x04\ - \x1a\x03\0\x02\0\x01\x12\x04\xb3\t\x0b\x1d\n\x0f\n\x07\x04\x1a\x03\0\x02\ - \0\x03\x12\x04\xb3\t\x20!\n\x0f\n\x07\x04\x1a\x03\0\x02\0\x08\x12\x04\ - \xb3\t\"J\n\x12\n\n\x04\x1a\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xb3\t#I\n\ - \xbb\x01\n\x04\x04\x1a\x03\x01\x12\x06\xb9\t\x02\xc7\t\x03\x1a\xaa\x01\ - \x20Specifies\x20an\x20identity\x20for\x20which\x20to\x20determine\x20re\ - source\x20access,\x20based\x20on\n\x20roles\x20assigned\x20either\x20dir\ - ectly\x20to\x20them\x20or\x20to\x20the\x20groups\x20they\x20belong\x20to\ - ,\n\x20directly\x20or\x20indirectly.\n\n\r\n\x05\x04\x1a\x03\x01\x01\x12\ - \x04\xb9\t\n\x1a\n\xb9\x03\n\x06\x04\x1a\x03\x01\x02\0\x12\x04\xc6\t\x04\ - A\x1a\xa8\x03\x20Required.\x20The\x20identity\x20appear\x20in\x20the\x20\ - form\x20of\x20principals\x20in\n\x20[IAM\x20policy\n\x20binding](https:/\ - /cloud.google.com/iam/reference/rest/v1/Binding).\n\n\x20The\x20examples\ - \x20of\x20supported\x20forms\x20are:\n\x20\"user:mike@example.com\",\n\ - \x20\"group:admins@example.com\",\n\x20\"domain:google.com\",\n\x20\"ser\ - viceAccount:my-project-id@appspot.gserviceaccount.com\".\n\n\x20Notice\ - \x20that\x20wildcard\x20characters\x20(such\x20as\x20*\x20and\x20?)\x20a\ - re\x20not\x20supported.\n\x20You\x20must\x20give\x20a\x20specific\x20ide\ - ntity.\n\n\x0f\n\x07\x04\x1a\x03\x01\x02\0\x05\x12\x04\xc6\t\x04\n\n\x0f\ - \n\x07\x04\x1a\x03\x01\x02\0\x01\x12\x04\xc6\t\x0b\x13\n\x0f\n\x07\x04\ - \x1a\x03\x01\x02\0\x03\x12\x04\xc6\t\x16\x17\n\x0f\n\x07\x04\x1a\x03\x01\ - \x02\0\x08\x12\x04\xc6\t\x18@\n\x12\n\n\x04\x1a\x03\x01\x02\0\x08\x9c\ - \x08\0\x12\x04\xc6\t\x19?\n\xc3\x02\n\x04\x04\x1a\x03\x02\x12\x06\xce\t\ - \x02\xd4\t\x03\x1a\xb2\x02\x20Specifies\x20roles\x20and/or\x20permission\ - s\x20to\x20analyze,\x20to\x20determine\x20both\x20the\n\x20identities\ - \x20possessing\x20them\x20and\x20the\x20resources\x20they\x20control.\ - \x20If\x20multiple\n\x20values\x20are\x20specified,\x20results\x20will\ - \x20include\x20roles\x20or\x20permissions\x20matching\n\x20any\x20of\x20\ - them.\x20The\x20total\x20number\x20of\x20roles\x20and\x20permissions\x20\ - should\x20be\x20equal\x20or\n\x20less\x20than\x2010.\n\n\r\n\x05\x04\x1a\ - \x03\x02\x01\x12\x04\xce\t\n\x18\n:\n\x06\x04\x1a\x03\x02\x02\0\x12\x04\ - \xd0\t\x04G\x1a*\x20Optional.\x20The\x20roles\x20to\x20appear\x20in\x20r\ - esult.\n\n\x0f\n\x07\x04\x1a\x03\x02\x02\0\x04\x12\x04\xd0\t\x04\x0c\n\ - \x0f\n\x07\x04\x1a\x03\x02\x02\0\x05\x12\x04\xd0\t\r\x13\n\x0f\n\x07\x04\ - \x1a\x03\x02\x02\0\x01\x12\x04\xd0\t\x14\x19\n\x0f\n\x07\x04\x1a\x03\x02\ - \x02\0\x03\x12\x04\xd0\t\x1c\x1d\n\x0f\n\x07\x04\x1a\x03\x02\x02\0\x08\ - \x12\x04\xd0\t\x1eF\n\x12\n\n\x04\x1a\x03\x02\x02\0\x08\x9c\x08\0\x12\ - \x04\xd0\t\x1fE\n@\n\x06\x04\x1a\x03\x02\x02\x01\x12\x04\xd3\t\x04M\x1a0\ - \x20Optional.\x20The\x20permissions\x20to\x20appear\x20in\x20result.\n\n\ - \x0f\n\x07\x04\x1a\x03\x02\x02\x01\x04\x12\x04\xd3\t\x04\x0c\n\x0f\n\x07\ - \x04\x1a\x03\x02\x02\x01\x05\x12\x04\xd3\t\r\x13\n\x0f\n\x07\x04\x1a\x03\ - \x02\x02\x01\x01\x12\x04\xd3\t\x14\x1f\n\x0f\n\x07\x04\x1a\x03\x02\x02\ - \x01\x03\x12\x04\xd3\t\"#\n\x0f\n\x07\x04\x1a\x03\x02\x02\x01\x08\x12\ - \x04\xd3\t$L\n\x12\n\n\x04\x1a\x03\x02\x02\x01\x08\x9c\x08\0\x12\x04\xd3\ - \t%K\n)\n\x04\x04\x1a\x03\x03\x12\x06\xd7\t\x02\xbc\n\x03\x1a\x19\x20Con\ - tains\x20query\x20options.\n\n\r\n\x05\x04\x1a\x03\x03\x01\x12\x04\xd7\t\ - \n\x11\n\xe4\x03\n\x06\x04\x1a\x03\x03\x02\0\x12\x04\xe4\t\x04D\x1a\xd3\ - \x03\x20Optional.\x20If\x20true,\x20the\x20identities\x20section\x20of\ - \x20the\x20result\x20will\x20expand\x20any\n\x20Google\x20groups\x20appe\ - aring\x20in\x20an\x20IAM\x20policy\x20binding.\n\n\x20If\n\x20[IamPolicy\ - AnalysisQuery.identity_selector][google.cloud.asset.v1.IamPolicyAnalysis\ - Query.identity_selector]\n\x20is\x20specified,\x20the\x20identity\x20in\ - \x20the\x20result\x20will\x20be\x20determined\x20by\x20the\n\x20selector\ - ,\x20and\x20this\x20flag\x20is\x20not\x20allowed\x20to\x20set.\n\n\x20If\ - \x20true,\x20the\x20default\x20max\x20expansion\x20per\x20group\x20is\ - \x201000\x20for\n\x20AssetService.AnalyzeIamPolicy][].\n\n\x20Default\ - \x20is\x20false.\n\n\x0f\n\x07\x04\x1a\x03\x03\x02\0\x05\x12\x04\xe4\t\ - \x04\x08\n\x0f\n\x07\x04\x1a\x03\x03\x02\0\x01\x12\x04\xe4\t\t\x16\n\x0f\ - \n\x07\x04\x1a\x03\x03\x02\0\x03\x12\x04\xe4\t\x19\x1a\n\x0f\n\x07\x04\ - \x1a\x03\x03\x02\0\x08\x12\x04\xe4\t\x1bC\n\x12\n\n\x04\x1a\x03\x03\x02\ - \0\x08\x9c\x08\0\x12\x04\xe4\t\x1cB\n\x93\x03\n\x06\x04\x1a\x03\x03\x02\ - \x01\x12\x04\xef\t\x04C\x1a\x82\x03\x20Optional.\x20If\x20true,\x20the\ - \x20access\x20section\x20of\x20result\x20will\x20expand\x20any\x20roles\ - \n\x20appearing\x20in\x20IAM\x20policy\x20bindings\x20to\x20include\x20t\ - heir\x20permissions.\n\n\x20If\n\x20[IamPolicyAnalysisQuery.access_selec\ - tor][google.cloud.asset.v1.IamPolicyAnalysisQuery.access_selector]\n\x20\ - is\x20specified,\x20the\x20access\x20section\x20of\x20the\x20result\x20w\ - ill\x20be\x20determined\x20by\x20the\n\x20selector,\x20and\x20this\x20fl\ - ag\x20is\x20not\x20allowed\x20to\x20set.\n\n\x20Default\x20is\x20false.\ - \n\n\x0f\n\x07\x04\x1a\x03\x03\x02\x01\x05\x12\x04\xef\t\x04\x08\n\x0f\n\ - \x07\x04\x1a\x03\x03\x02\x01\x01\x12\x04\xef\t\t\x15\n\x0f\n\x07\x04\x1a\ - \x03\x03\x02\x01\x03\x12\x04\xef\t\x18\x19\n\x0f\n\x07\x04\x1a\x03\x03\ - \x02\x01\x08\x12\x04\xef\t\x1aB\n\x12\n\n\x04\x1a\x03\x03\x02\x01\x08\ - \x9c\x08\0\x12\x04\xef\t\x1bA\n\xb0\n\n\x06\x04\x1a\x03\x03\x02\x02\x12\ - \x04\x8c\n\x04G\x1a\x9f\n\x20Optional.\x20If\x20true\x20and\n\x20[IamPol\ - icyAnalysisQuery.resource_selector][google.cloud.asset.v1.IamPolicyAnaly\ - sisQuery.resource_selector]\n\x20is\x20not\x20specified,\x20the\x20resou\ - rce\x20section\x20of\x20the\x20result\x20will\x20expand\x20any\n\x20reso\ - urce\x20attached\x20to\x20an\x20IAM\x20policy\x20to\x20include\x20resour\ - ces\x20lower\x20in\x20the\n\x20resource\x20hierarchy.\n\n\x20For\x20exam\ - ple,\x20if\x20the\x20request\x20analyzes\x20for\x20which\x20resources\ - \x20user\x20A\x20has\n\x20permission\x20P,\x20and\x20the\x20results\x20i\ - nclude\x20an\x20IAM\x20policy\x20with\x20P\x20on\x20a\x20Google\n\x20Clo\ - ud\x20folder,\x20the\x20results\x20will\x20also\x20include\x20resources\ - \x20in\x20that\x20folder\x20with\n\x20permission\x20P.\n\n\x20If\x20true\ - \x20and\n\x20[IamPolicyAnalysisQuery.resource_selector][google.cloud.ass\ - et.v1.IamPolicyAnalysisQuery.resource_selector]\n\x20is\x20specified,\ - \x20the\x20resource\x20section\x20of\x20the\x20result\x20will\x20expand\ - \x20the\n\x20specified\x20resource\x20to\x20include\x20resources\x20lowe\ - r\x20in\x20the\x20resource\x20hierarchy.\n\x20Only\x20project\x20or\x20l\ - ower\x20resources\x20are\x20supported.\x20Folder\x20and\x20organization\ - \n\x20resources\x20cannot\x20be\x20used\x20together\x20with\x20this\x20o\ - ption.\n\n\x20For\x20example,\x20if\x20the\x20request\x20analyzes\x20for\ - \x20which\x20users\x20have\x20permission\x20P\x20on\n\x20a\x20Google\x20\ - Cloud\x20project\x20with\x20this\x20option\x20enabled,\x20the\x20results\ - \x20will\x20include\n\x20all\x20users\x20who\x20have\x20permission\x20P\ - \x20on\x20that\x20project\x20or\x20any\x20lower\x20resource.\n\n\x20If\ - \x20true,\x20the\x20default\x20max\x20expansion\x20per\x20resource\x20is\ - \x201000\x20for\n\x20AssetService.AnalyzeIamPolicy][]\x20and\x20100000\ - \x20for\n\x20AssetService.AnalyzeIamPolicyLongrunning][].\n\n\x20Default\ - \x20is\x20false.\n\n\x0f\n\x07\x04\x1a\x03\x03\x02\x02\x05\x12\x04\x8c\n\ - \x04\x08\n\x0f\n\x07\x04\x1a\x03\x03\x02\x02\x01\x12\x04\x8c\n\t\x19\n\ - \x0f\n\x07\x04\x1a\x03\x03\x02\x02\x03\x12\x04\x8c\n\x1c\x1d\n\x0f\n\x07\ - \x04\x1a\x03\x03\x02\x02\x08\x12\x04\x8c\n\x1eF\n\x12\n\n\x04\x1a\x03\ - \x03\x02\x02\x08\x9c\x08\0\x12\x04\x8c\n\x1fE\n\x89\x01\n\x06\x04\x1a\ - \x03\x03\x02\x03\x12\x04\x90\n\x04L\x1ay\x20Optional.\x20If\x20true,\x20\ - the\x20result\x20will\x20output\x20the\x20relevant\x20parent/child\n\x20\ - relationships\x20between\x20resources.\x20Default\x20is\x20false.\n\n\ - \x0f\n\x07\x04\x1a\x03\x03\x02\x03\x05\x12\x04\x90\n\x04\x08\n\x0f\n\x07\ - \x04\x1a\x03\x03\x02\x03\x01\x12\x04\x90\n\t\x1e\n\x0f\n\x07\x04\x1a\x03\ - \x03\x02\x03\x03\x12\x04\x90\n!\"\n\x0f\n\x07\x04\x1a\x03\x03\x02\x03\ - \x08\x12\x04\x90\n#K\n\x12\n\n\x04\x1a\x03\x03\x02\x03\x08\x9c\x08\0\x12\ - \x04\x90\n$J\n\xba\x01\n\x06\x04\x1a\x03\x03\x02\x04\x12\x04\x95\n\x04I\ - \x1a\xa9\x01\x20Optional.\x20If\x20true,\x20the\x20result\x20will\x20out\ - put\x20the\x20relevant\x20membership\n\x20relationships\x20between\x20gr\ - oups\x20and\x20other\x20groups,\x20and\x20between\x20groups\x20and\n\x20\ - principals.\x20Default\x20is\x20false.\n\n\x0f\n\x07\x04\x1a\x03\x03\x02\ - \x04\x05\x12\x04\x95\n\x04\x08\n\x0f\n\x07\x04\x1a\x03\x03\x02\x04\x01\ - \x12\x04\x95\n\t\x1b\n\x0f\n\x07\x04\x1a\x03\x03\x02\x04\x03\x12\x04\x95\ - \n\x1e\x1f\n\x0f\n\x07\x04\x1a\x03\x03\x02\x04\x08\x12\x04\x95\n\x20H\n\ - \x12\n\n\x04\x1a\x03\x03\x02\x04\x08\x9c\x08\0\x12\x04\x95\n!G\n\xc5\x0e\ - \n\x06\x04\x1a\x03\x03\x02\x05\x12\x06\xba\n\x04\xbb\n1\x1a\xb2\x0e\x20O\ - ptional.\x20If\x20true,\x20the\x20response\x20will\x20include\x20access\ - \x20analysis\x20from\n\x20identities\x20to\x20resources\x20via\x20servic\ - e\x20account\x20impersonation.\x20This\x20is\x20a\x20very\n\x20expensive\ - \x20operation,\x20because\x20many\x20derived\x20queries\x20will\x20be\ - \x20executed.\x20We\n\x20highly\x20recommend\x20you\x20use\n\x20[AssetSe\ - rvice.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.An\ - alyzeIamPolicyLongrunning]\n\x20RPC\x20instead.\n\n\x20For\x20example,\ - \x20if\x20the\x20request\x20analyzes\x20for\x20which\x20resources\x20use\ - r\x20A\x20has\n\x20permission\x20P,\x20and\x20there's\x20an\x20IAM\x20po\ - licy\x20states\x20user\x20A\x20has\n\x20iam.serviceAccounts.getAccessTok\ - en\x20permission\x20to\x20a\x20service\x20account\x20SA,\n\x20and\x20the\ - re's\x20another\x20IAM\x20policy\x20states\x20service\x20account\x20SA\ - \x20has\x20permission\x20P\n\x20to\x20a\x20Google\x20Cloud\x20folder\x20\ - F,\x20then\x20user\x20A\x20potentially\x20has\x20access\x20to\x20the\n\ - \x20Google\x20Cloud\x20folder\x20F.\x20And\x20those\x20advanced\x20analy\ - sis\x20results\x20will\x20be\n\x20included\x20in\n\x20[AnalyzeIamPolicyR\ - esponse.service_account_impersonation_analysis][google.cloud.asset.v1.An\ - alyzeIamPolicyResponse.service_account_impersonation_analysis].\n\n\x20A\ - nother\x20example,\x20if\x20the\x20request\x20analyzes\x20for\x20who\x20\ - has\n\x20permission\x20P\x20to\x20a\x20Google\x20Cloud\x20folder\x20F,\ - \x20and\x20there's\x20an\x20IAM\x20policy\x20states\n\x20user\x20A\x20ha\ - s\x20iam.serviceAccounts.actAs\x20permission\x20to\x20a\x20service\x20ac\ - count\x20SA,\n\x20and\x20there's\x20another\x20IAM\x20policy\x20states\ - \x20service\x20account\x20SA\x20has\x20permission\x20P\n\x20to\x20the\ - \x20Google\x20Cloud\x20folder\x20F,\x20then\x20user\x20A\x20potentially\ - \x20has\x20access\x20to\x20the\n\x20Google\x20Cloud\x20folder\x20F.\x20A\ - nd\x20those\x20advanced\x20analysis\x20results\x20will\x20be\n\x20includ\ - ed\x20in\n\x20[AnalyzeIamPolicyResponse.service_account_impersonation_an\ - alysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_i\ - mpersonation_analysis].\n\n\x20Only\x20the\x20following\x20permissions\ - \x20are\x20considered\x20in\x20this\x20analysis:\n\n\x20*\x20`iam.servic\ - eAccounts.actAs`\n\x20*\x20`iam.serviceAccounts.signBlob`\n\x20*\x20`iam\ - .serviceAccounts.signJwt`\n\x20*\x20`iam.serviceAccounts.getAccessToken`\ - \n\x20*\x20`iam.serviceAccounts.getOpenIdToken`\n\x20*\x20`iam.serviceAc\ - counts.implicitDelegation`\n\n\x20Default\x20is\x20false.\n\n\x0f\n\x07\ - \x04\x1a\x03\x03\x02\x05\x05\x12\x04\xba\n\x04\x08\n\x0f\n\x07\x04\x1a\ - \x03\x03\x02\x05\x01\x12\x04\xba\n\t.\n\x0f\n\x07\x04\x1a\x03\x03\x02\ - \x05\x03\x12\x04\xba\n12\n\x0f\n\x07\x04\x1a\x03\x03\x02\x05\x08\x12\x04\ - \xbb\n\x080\n\x12\n\n\x04\x1a\x03\x03\x02\x05\x08\x9c\x08\0\x12\x04\xbb\ - \n\t/\n-\n\x04\x04\x1a\x03\x04\x12\x06\xbf\n\x02\xc7\n\x03\x1a\x1d\x20Th\ - e\x20IAM\x20conditions\x20context.\n\n\r\n\x05\x04\x1a\x03\x04\x01\x12\ - \x04\xbf\n\n\x1a\n4\n\x06\x04\x1a\x03\x04\x08\0\x12\x06\xc1\n\x04\xc6\n\ - \x05\x1a\"\x20The\x20IAM\x20conditions\x20time\x20context.\n\n\x0f\n\x07\ - \x04\x1a\x03\x04\x08\0\x01\x12\x04\xc1\n\n\x15\n\xc9\x01\n\x06\x04\x1a\ - \x03\x04\x02\0\x12\x04\xc5\n\x060\x1a\xb8\x01\x20The\x20hypothetical\x20\ - access\x20timestamp\x20to\x20evaluate\x20IAM\x20conditions.\x20Note\x20t\ - hat\n\x20this\x20value\x20must\x20not\x20be\x20earlier\x20than\x20the\ - \x20current\x20time;\x20otherwise,\x20an\n\x20INVALID_ARGUMENT\x20error\ - \x20will\x20be\x20returned.\n\n\x0f\n\x07\x04\x1a\x03\x04\x02\0\x06\x12\ - \x04\xc5\n\x06\x1f\n\x0f\n\x07\x04\x1a\x03\x04\x02\0\x01\x12\x04\xc5\n\ - \x20+\n\x0f\n\x07\x04\x1a\x03\x04\x02\0\x03\x12\x04\xc5\n./\n\xaa\x05\n\ - \x04\x04\x1a\x02\0\x12\x04\xd5\n\x02<\x1a\x9b\x05\x20Required.\x20The\ - \x20relative\x20name\x20of\x20the\x20root\x20asset.\x20Only\x20resources\ - \x20and\x20IAM\n\x20policies\x20within\x20the\x20scope\x20will\x20be\x20\ - analyzed.\n\n\x20This\x20can\x20only\x20be\x20an\x20organization\x20numb\ - er\x20(such\x20as\x20\"organizations/123\"),\x20a\n\x20folder\x20number\ - \x20(such\x20as\x20\"folders/123\"),\x20a\x20project\x20ID\x20(such\x20a\ - s\n\x20\"projects/my-project-id\"),\x20or\x20a\x20project\x20number\x20(\ - such\x20as\x20\"projects/12345\").\n\n\x20To\x20know\x20how\x20to\x20get\ - \x20organization\x20id,\x20visit\x20[here\n\x20](https://cloud.google.co\ - m/resource-manager/docs/creating-managing-organization#retrieving_your_o\ - rganization_id).\n\n\x20To\x20know\x20how\x20to\x20get\x20folder\x20or\ - \x20project\x20id,\x20visit\x20[here\n\x20](https://cloud.google.com/res\ - ource-manager/docs/creating-managing-folders#viewing_or_listing_folders_\ - and_projects).\n\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\xd5\n\x02\x08\n\r\n\ - \x05\x04\x1a\x02\0\x01\x12\x04\xd5\n\t\x0e\n\r\n\x05\x04\x1a\x02\0\x03\ - \x12\x04\xd5\n\x11\x12\n\r\n\x05\x04\x1a\x02\0\x08\x12\x04\xd5\n\x13;\n\ - \x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\x04\xd5\n\x14:\n>\n\x04\x04\ - \x1a\x02\x01\x12\x06\xd8\n\x02\xd9\n/\x1a.\x20Optional.\x20Specifies\x20\ - a\x20resource\x20for\x20analysis.\n\n\r\n\x05\x04\x1a\x02\x01\x06\x12\ - \x04\xd8\n\x02\x12\n\r\n\x05\x04\x1a\x02\x01\x01\x12\x04\xd8\n\x13$\n\r\ - \n\x05\x04\x1a\x02\x01\x03\x12\x04\xd8\n'(\n\r\n\x05\x04\x1a\x02\x01\x08\ - \x12\x04\xd9\n\x06.\n\x10\n\x08\x04\x1a\x02\x01\x08\x9c\x08\0\x12\x04\ - \xd9\n\x07-\n?\n\x04\x04\x1a\x02\x02\x12\x06\xdc\n\x02\xdd\n/\x1a/\x20Op\ - tional.\x20Specifies\x20an\x20identity\x20for\x20analysis.\n\n\r\n\x05\ - \x04\x1a\x02\x02\x06\x12\x04\xdc\n\x02\x12\n\r\n\x05\x04\x1a\x02\x02\x01\ - \x12\x04\xdc\n\x13$\n\r\n\x05\x04\x1a\x02\x02\x03\x12\x04\xdc\n'(\n\r\n\ - \x05\x04\x1a\x02\x02\x08\x12\x04\xdd\n\x06.\n\x10\n\x08\x04\x1a\x02\x02\ - \x08\x9c\x08\0\x12\x04\xdd\n\x07-\nX\n\x04\x04\x1a\x02\x03\x12\x04\xe0\n\ - \x02N\x1aJ\x20Optional.\x20Specifies\x20roles\x20or\x20permissions\x20fo\ - r\x20analysis.\x20This\x20is\x20optional.\n\n\r\n\x05\x04\x1a\x02\x03\ - \x06\x12\x04\xe0\n\x02\x10\n\r\n\x05\x04\x1a\x02\x03\x01\x12\x04\xe0\n\ - \x11\x20\n\r\n\x05\x04\x1a\x02\x03\x03\x12\x04\xe0\n#$\n\r\n\x05\x04\x1a\ - \x02\x03\x08\x12\x04\xe0\n%M\n\x10\n\x08\x04\x1a\x02\x03\x08\x9c\x08\0\ - \x12\x04\xe0\n&L\n,\n\x04\x04\x1a\x02\x04\x12\x04\xe3\n\x02?\x1a\x1e\x20\ - Optional.\x20The\x20query\x20options.\n\n\r\n\x05\x04\x1a\x02\x04\x06\ - \x12\x04\xe3\n\x02\t\n\r\n\x05\x04\x1a\x02\x04\x01\x12\x04\xe3\n\n\x11\n\ - \r\n\x05\x04\x1a\x02\x04\x03\x12\x04\xe3\n\x14\x15\n\r\n\x05\x04\x1a\x02\ - \x04\x08\x12\x04\xe3\n\x16>\n\x10\n\x08\x04\x1a\x02\x04\x08\x9c\x08\0\ - \x12\x04\xe3\n\x17=\nS\n\x04\x04\x1a\x02\x05\x12\x06\xe6\n\x02\xe7\n/\ - \x1aC\x20Optional.\x20The\x20hypothetical\x20context\x20for\x20IAM\x20co\ - nditions\x20evaluation.\n\n\r\n\x05\x04\x1a\x02\x05\x06\x12\x04\xe6\n\ - \x02\x12\n\r\n\x05\x04\x1a\x02\x05\x01\x12\x04\xe6\n\x13$\n\r\n\x05\x04\ - \x1a\x02\x05\x03\x12\x04\xe6\n'(\n\r\n\x05\x04\x1a\x02\x05\x08\x12\x04\ - \xe7\n\x06.\n\x10\n\x08\x04\x1a\x02\x05\x08\x9c\x08\0\x12\x04\xe7\n\x07-\ - \n|\n\x02\x04\x1b\x12\x06\xec\n\0\x90\x0b\x01\x1an\x20A\x20request\x20me\ - ssage\x20for\n\x20[AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.\ - AssetService.AnalyzeIamPolicy].\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xec\n\ - \x08\x1f\n.\n\x04\x04\x1b\x02\0\x12\x06\xee\n\x02\xef\n/\x1a\x1e\x20Requ\ - ired.\x20The\x20request\x20query.\n\n\r\n\x05\x04\x1b\x02\0\x06\x12\x04\ - \xee\n\x02\x18\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xee\n\x19'\n\r\n\x05\ - \x04\x1b\x02\0\x03\x12\x04\xee\n*+\n\r\n\x05\x04\x1b\x02\0\x08\x12\x04\ - \xef\n\x06.\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\xef\n\x07-\n\ - \xa4\x06\n\x04\x04\x1b\x02\x01\x12\x04\x81\x0b\x02K\x1a\x95\x06\x20Optio\ - nal.\x20The\x20name\x20of\x20a\x20saved\x20query,\x20which\x20must\x20be\ - \x20in\x20the\x20format\x20of:\n\n\x20*\x20projects/project_number/saved\ - Queries/saved_query_id\n\x20*\x20folders/folder_number/savedQueries/save\ - d_query_id\n\x20*\x20organizations/organization_number/savedQueries/save\ - d_query_id\n\n\x20If\x20both\x20`analysis_query`\x20and\x20`saved_analys\ - is_query`\x20are\x20provided,\x20they\n\x20will\x20be\x20merged\x20toget\ - her\x20with\x20the\x20`saved_analysis_query`\x20as\x20base\x20and\n\x20t\ - he\x20`analysis_query`\x20as\x20overrides.\x20For\x20more\x20details\x20\ - of\x20the\x20merge\x20behavior,\n\x20please\x20refer\x20to\x20the\n\x20[\ - MergeFrom](https://developers.google.com/protocol-buffers/docs/reference\ - /cpp/google.protobuf.message#Message.MergeFrom.details)\n\x20page.\n\n\ - \x20Note\x20that\x20you\x20cannot\x20override\x20primitive\x20fields\x20\ - with\x20default\x20value,\x20such\x20as\n\x200\x20or\x20empty\x20string,\ - \x20etc.,\x20because\x20we\x20use\x20proto3,\x20which\x20doesn't\x20supp\ - ort\x20field\n\x20presence\x20yet.\n\n\r\n\x05\x04\x1b\x02\x01\x05\x12\ - \x04\x81\x0b\x02\x08\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\x81\x0b\t\x1d\ - \n\r\n\x05\x04\x1b\x02\x01\x03\x12\x04\x81\x0b\x20!\n\r\n\x05\x04\x1b\ - \x02\x01\x08\x12\x04\x81\x0b\"J\n\x10\n\x08\x04\x1b\x02\x01\x08\x9c\x08\ - \0\x12\x04\x81\x0b#I\n\x9e\x04\n\x04\x04\x1b\x02\x02\x12\x06\x8e\x0b\x02\ - \x8f\x0b/\x1a\x8d\x04\x20Optional.\x20Amount\x20of\x20time\x20executable\ - \x20has\x20to\x20complete.\x20\x20See\x20JSON\n\x20representation\x20of\ - \n\x20[Duration](https://developers.google.com/protocol-buffers/docs/pro\ - to3#json).\n\n\x20If\x20this\x20field\x20is\x20set\x20with\x20a\x20value\ - \x20less\x20than\x20the\x20RPC\x20deadline,\x20and\x20the\n\x20execution\ - \x20of\x20your\x20query\x20hasn't\x20finished\x20in\x20the\x20specified\ - \n\x20execution\x20timeout,\x20\x20you\x20will\x20get\x20a\x20response\ - \x20with\x20partial\x20result.\n\x20Otherwise,\x20your\x20query's\x20exe\ - cution\x20will\x20continue\x20until\x20the\x20RPC\x20deadline.\n\x20If\ - \x20it's\x20not\x20finished\x20until\x20then,\x20you\x20will\x20get\x20a\ - \x20\x20DEADLINE_EXCEEDED\x20error.\n\n\x20Default\x20is\x20empty.\n\n\r\ - \n\x05\x04\x1b\x02\x02\x06\x12\x04\x8e\x0b\x02\x1a\n\r\n\x05\x04\x1b\x02\ - \x02\x01\x12\x04\x8e\x0b\x1b,\n\r\n\x05\x04\x1b\x02\x02\x03\x12\x04\x8e\ - \x0b/0\n\r\n\x05\x04\x1b\x02\x02\x08\x12\x04\x8f\x0b\x06.\n\x10\n\x08\ - \x04\x1b\x02\x02\x08\x9c\x08\0\x12\x04\x8f\x0b\x07-\n}\n\x02\x04\x1c\x12\ - \x06\x94\x0b\0\xb6\x0b\x01\x1ao\x20A\x20response\x20message\x20for\n\x20\ - [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.Analy\ - zeIamPolicy].\n\n\x0b\n\x03\x04\x1c\x01\x12\x04\x94\x0b\x08\x20\nE\n\x04\ - \x04\x1c\x03\0\x12\x06\x96\x0b\x02\xa6\x0b\x03\x1a5\x20An\x20analysis\ - \x20message\x20to\x20group\x20the\x20query\x20and\x20results.\n\n\r\n\ - \x05\x04\x1c\x03\0\x01\x12\x04\x96\x0b\n\x1b\n%\n\x06\x04\x1c\x03\0\x02\ - \0\x12\x04\x98\x0b\x04.\x1a\x15\x20The\x20analysis\x20query.\n\n\x0f\n\ - \x07\x04\x1c\x03\0\x02\0\x06\x12\x04\x98\x0b\x04\x1a\n\x0f\n\x07\x04\x1c\ - \x03\0\x02\0\x01\x12\x04\x98\x0b\x1b)\n\x0f\n\x07\x04\x1c\x03\0\x02\0\ - \x03\x12\x04\x98\x0b,-\n\xa8\x01\n\x06\x04\x1c\x03\0\x02\x01\x12\x04\x9d\ - \x0b\x04:\x1a\x97\x01\x20A\x20list\x20of\n\x20[IamPolicyAnalysisResult][\ - google.cloud.asset.v1.IamPolicyAnalysisResult]\n\x20that\x20matches\x20t\ - he\x20analysis\x20query,\x20or\x20empty\x20if\x20no\x20result\x20is\x20f\ - ound.\n\n\x0f\n\x07\x04\x1c\x03\0\x02\x01\x04\x12\x04\x9d\x0b\x04\x0c\n\ - \x0f\n\x07\x04\x1c\x03\0\x02\x01\x06\x12\x04\x9d\x0b\r$\n\x0f\n\x07\x04\ - \x1c\x03\0\x02\x01\x01\x12\x04\x9d\x0b%5\n\x0f\n\x07\x04\x1c\x03\0\x02\ - \x01\x03\x12\x04\x9d\x0b89\n\xce\x01\n\x06\x04\x1c\x03\0\x02\x02\x12\x04\ - \xa2\x0b\x04\x1c\x1a\xbd\x01\x20Represents\x20whether\x20all\x20entries\ - \x20in\x20the\n\x20[analysis_results][google.cloud.asset.v1.AnalyzeIamPo\ - licyResponse.IamPolicyAnalysis.analysis_results]\n\x20have\x20been\x20fu\ - lly\x20explored\x20to\x20answer\x20the\x20query.\n\n\x0f\n\x07\x04\x1c\ - \x03\0\x02\x02\x05\x12\x04\xa2\x0b\x04\x08\n\x0f\n\x07\x04\x1c\x03\0\x02\ - \x02\x01\x12\x04\xa2\x0b\t\x17\n\x0f\n\x07\x04\x1c\x03\0\x02\x02\x03\x12\ - \x04\xa2\x0b\x1a\x1b\nS\n\x06\x04\x1c\x03\0\x02\x03\x12\x04\xa5\x0b\x04<\ - \x1aC\x20A\x20list\x20of\x20non-critical\x20errors\x20happened\x20during\ - \x20the\x20query\x20handling.\n\n\x0f\n\x07\x04\x1c\x03\0\x02\x03\x04\ - \x12\x04\xa5\x0b\x04\x0c\n\x0f\n\x07\x04\x1c\x03\0\x02\x03\x06\x12\x04\ - \xa5\x0b\r#\n\x0f\n\x07\x04\x1c\x03\0\x02\x03\x01\x12\x04\xa5\x0b$7\n\ - \x0f\n\x07\x04\x1c\x03\0\x02\x03\x03\x12\x04\xa5\x0b:;\nD\n\x04\x04\x1c\ - \x02\0\x12\x04\xa9\x0b\x02&\x1a6\x20The\x20main\x20analysis\x20that\x20m\ - atches\x20the\x20original\x20request.\n\n\r\n\x05\x04\x1c\x02\0\x06\x12\ - \x04\xa9\x0b\x02\x13\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\xa9\x0b\x14!\n\ - \r\n\x05\x04\x1c\x02\0\x03\x12\x04\xa9\x0b$%\n\x8d\x01\n\x04\x04\x1c\x02\ - \x01\x12\x04\xae\x0b\x02H\x1a\x7f\x20The\x20service\x20account\x20impers\ - onation\x20analysis\x20if\n\x20[AnalyzeIamPolicyRequest.analyze_service_\ - account_impersonation][]\x20is\n\x20enabled.\n\n\r\n\x05\x04\x1c\x02\x01\ - \x04\x12\x04\xae\x0b\x02\n\n\r\n\x05\x04\x1c\x02\x01\x06\x12\x04\xae\x0b\ - \x0b\x1c\n\r\n\x05\x04\x1c\x02\x01\x01\x12\x04\xae\x0b\x1dC\n\r\n\x05\ - \x04\x1c\x02\x01\x03\x12\x04\xae\x0bFG\n\xc9\x02\n\x04\x04\x1c\x02\x02\ - \x12\x04\xb5\x0b\x02\x1a\x1a\xba\x02\x20Represents\x20whether\x20all\x20\ - entries\x20in\x20the\n\x20[main_analysis][google.cloud.asset.v1.AnalyzeI\ - amPolicyResponse.main_analysis]\n\x20and\n\x20[service_account_impersona\ - tion_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_ac\ - count_impersonation_analysis]\n\x20have\x20been\x20fully\x20explored\x20\ - to\x20answer\x20the\x20query\x20in\x20the\x20request.\n\n\r\n\x05\x04\ - \x1c\x02\x02\x05\x12\x04\xb5\x0b\x02\x06\n\r\n\x05\x04\x1c\x02\x02\x01\ - \x12\x04\xb5\x0b\x07\x15\n\r\n\x05\x04\x1c\x02\x02\x03\x12\x04\xb5\x0b\ - \x18\x19\nP\n\x02\x04\x1d\x12\x06\xb9\x0b\0\x84\x0c\x01\x1aB\x20Output\ - \x20configuration\x20for\x20export\x20IAM\x20policy\x20analysis\x20desti\ - nation.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xb9\x0b\x08%\n+\n\x04\x04\x1d\ - \x03\0\x12\x06\xbb\x0b\x02\xc6\x0b\x03\x1a\x1b\x20A\x20Cloud\x20Storage\ - \x20location.\n\n\r\n\x05\x04\x1d\x03\0\x01\x12\x04\xbb\x0b\n\x18\n\xce\ - \x03\n\x06\x04\x1d\x03\0\x02\0\x12\x04\xc5\x0b\x04<\x1a\xbd\x03\x20Requi\ - red.\x20The\x20URI\x20of\x20the\x20Cloud\x20Storage\x20object.\x20It's\ - \x20the\x20same\x20URI\x20that\x20is\n\x20used\x20by\x20gsutil.\x20Examp\ - le:\x20\"gs://bucket_name/object_name\".\x20See\x20[Viewing\x20and\n\x20\ - Editing\x20Object\n\x20Metadata](https://cloud.google.com/storage/docs/v\ - iewing-editing-metadata)\n\x20for\x20more\x20information.\n\n\x20If\x20t\ - he\x20specified\x20Cloud\x20Storage\x20object\x20already\x20exists\x20an\ - d\x20there\x20is\x20no\n\x20[hold](https://cloud.google.com/storage/docs\ - /object-holds),\x20it\x20will\x20be\n\x20overwritten\x20with\x20the\x20a\ - nalysis\x20result.\n\n\x0f\n\x07\x04\x1d\x03\0\x02\0\x05\x12\x04\xc5\x0b\ - \x04\n\n\x0f\n\x07\x04\x1d\x03\0\x02\0\x01\x12\x04\xc5\x0b\x0b\x0e\n\x0f\ - \n\x07\x04\x1d\x03\0\x02\0\x03\x12\x04\xc5\x0b\x11\x12\n\x0f\n\x07\x04\ - \x1d\x03\0\x02\0\x08\x12\x04\xc5\x0b\x13;\n\x12\n\n\x04\x1d\x03\0\x02\0\ - \x08\x9c\x08\0\x12\x04\xc5\x0b\x14:\n)\n\x04\x04\x1d\x03\x01\x12\x06\xc9\ - \x0b\x02\xfa\x0b\x03\x1a\x19\x20A\x20BigQuery\x20destination.\n\n\r\n\ - \x05\x04\x1d\x03\x01\x01\x12\x04\xc9\x0b\n\x1d\n\x88\x02\n\x06\x04\x1d\ - \x03\x01\x04\0\x12\x06\xce\x0b\x04\xd7\x0b\x05\x1a\xf5\x01\x20This\x20en\ - um\x20determines\x20the\x20partition\x20key\x20column\x20for\x20the\x20b\ - igquery\x20tables.\n\x20Partitioning\x20can\x20improve\x20query\x20perfo\ - rmance\x20and\x20reduce\x20query\x20cost\x20by\n\x20filtering\x20partiti\ - ons.\x20Refer\x20to\n\x20https://cloud.google.com/bigquery/docs/partitio\ - ned-tables\x20for\x20details.\n\n\x0f\n\x07\x04\x1d\x03\x01\x04\0\x01\ - \x12\x04\xce\x0b\t\x15\n^\n\x08\x04\x1d\x03\x01\x04\0\x02\0\x12\x04\xd1\ - \x0b\x06$\x1aL\x20Unspecified\x20partition\x20key.\x20Tables\x20won't\ - \x20be\x20partitioned\x20using\x20this\n\x20option.\n\n\x11\n\t\x04\x1d\ - \x03\x01\x04\0\x02\0\x01\x12\x04\xd1\x0b\x06\x1f\n\x11\n\t\x04\x1d\x03\ - \x01\x04\0\x02\0\x02\x12\x04\xd1\x0b\"#\n\xe4\x01\n\x08\x04\x1d\x03\x01\ - \x04\0\x02\x01\x12\x04\xd6\x0b\x06\x17\x1a\xd1\x01\x20The\x20time\x20whe\ - n\x20the\x20request\x20is\x20received.\x20If\x20specified\x20as\x20parti\ - tion\x20key,\n\x20the\x20result\x20table(s)\x20is\x20partitoned\x20by\ - \x20the\x20RequestTime\x20column,\x20an\n\x20additional\x20timestamp\x20\ - column\x20representing\x20when\x20the\x20request\x20was\x20received.\n\n\ - \x11\n\t\x04\x1d\x03\x01\x04\0\x02\x01\x01\x12\x04\xd6\x0b\x06\x12\n\x11\ - \n\t\x04\x1d\x03\x01\x04\0\x02\x01\x02\x12\x04\xd6\x0b\x15\x16\n\xf0\x01\ - \n\x06\x04\x1d\x03\x01\x02\0\x12\x04\xdd\x0b\x04@\x1a\xdf\x01\x20Require\ + tarts\x20from\x200.\x20For\x20example:\n\x20\"gs://bucket_name/object_na\ + me_prefix/compute.googleapis.com/Disk/0\"\x20is\n\x20the\x20first\x20sha\ + rd\x20of\x20output\x20objects\x20containing\x20all\n\x20compute.googleap\ + is.com/Disk\x20assets.\x20An\x20INVALID_ARGUMENT\x20error\x20will\x20be\ + \n\x20returned\x20if\x20file\x20with\x20the\x20same\x20name\x20\"gs://bu\ + cket_name/object_name_prefix\"\n\x20already\x20exists.\n\n\r\n\x05\x04\ + \x05\x02\x01\x05\x12\x04\xc3\x01\x04\n\n\r\n\x05\x04\x05\x02\x01\x01\x12\ + \x04\xc3\x01\x0b\x15\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xc3\x01\x18\ + \x19\n'\n\x02\x04\x06\x12\x06\xc8\x01\0\xd9\x01\x01\x1a\x19\x20A\x20BigQ\ + uery\x20destination.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xc8\x01\x08\x1b\n\ + \xd8\x01\n\x04\x04\x06\x02\0\x12\x04\xcd\x01\x02>\x1a\xc9\x01\x20Require\ d.\x20The\x20BigQuery\x20dataset\x20in\x20format\n\x20\"projects/project\ - Id/datasets/datasetId\",\x20to\x20which\x20the\x20analysis\x20results\n\ + Id/datasets/datasetId\",\x20to\x20which\x20the\x20snapshot\x20result\n\ \x20should\x20be\x20exported.\x20If\x20this\x20dataset\x20does\x20not\ - \x20exist,\x20the\x20export\x20call\x20will\n\x20return\x20an\x20INVALID\ - _ARGUMENT\x20error.\n\n\x0f\n\x07\x04\x1d\x03\x01\x02\0\x05\x12\x04\xdd\ - \x0b\x04\n\n\x0f\n\x07\x04\x1d\x03\x01\x02\0\x01\x12\x04\xdd\x0b\x0b\x12\ - \n\x0f\n\x07\x04\x1d\x03\x01\x02\0\x03\x12\x04\xdd\x0b\x15\x16\n\x0f\n\ - \x07\x04\x1d\x03\x01\x02\0\x08\x12\x04\xdd\x0b\x17?\n\x12\n\n\x04\x1d\ - \x03\x01\x02\0\x08\x9c\x08\0\x12\x04\xdd\x0b\x18>\n\xe1\x03\n\x06\x04\ - \x1d\x03\x01\x02\x01\x12\x04\xe7\x0b\x04E\x1a\xd0\x03\x20Required.\x20Th\ - e\x20prefix\x20of\x20the\x20BigQuery\x20tables\x20to\x20which\x20the\x20\ - analysis\x20results\n\x20will\x20be\x20written.\x20Tables\x20will\x20be\ - \x20created\x20based\x20on\x20this\x20table_prefix\x20if\x20not\n\x20exi\ - st:\n\x20*\x20_analysis\x20table\x20will\x20contain\x20exp\ - ort\x20operation's\x20metadata.\n\x20*\x20_analysis_result\ - \x20will\x20contain\x20all\x20the\n\x20\x20\x20[IamPolicyAnalysisResult]\ - [google.cloud.asset.v1.IamPolicyAnalysisResult].\n\x20When\x20[partition\ - _key]\x20is\x20specified,\x20both\x20tables\x20will\x20be\x20partitioned\ - \x20based\n\x20on\x20the\x20[partition_key].\n\n\x0f\n\x07\x04\x1d\x03\ - \x01\x02\x01\x05\x12\x04\xe7\x0b\x04\n\n\x0f\n\x07\x04\x1d\x03\x01\x02\ - \x01\x01\x12\x04\xe7\x0b\x0b\x17\n\x0f\n\x07\x04\x1d\x03\x01\x02\x01\x03\ - \x12\x04\xe7\x0b\x1a\x1b\n\x0f\n\x07\x04\x1d\x03\x01\x02\x01\x08\x12\x04\ - \xe7\x0b\x1cD\n\x12\n\n\x04\x1d\x03\x01\x02\x01\x08\x9c\x08\0\x12\x04\ - \xe7\x0b\x1dC\nC\n\x06\x04\x1d\x03\x01\x02\x02\x12\x04\xea\x0b\x04#\x1a3\ - \x20The\x20partition\x20key\x20for\x20BigQuery\x20partitioned\x20table.\ - \n\n\x0f\n\x07\x04\x1d\x03\x01\x02\x02\x06\x12\x04\xea\x0b\x04\x10\n\x0f\ - \n\x07\x04\x1d\x03\x01\x02\x02\x01\x12\x04\xea\x0b\x11\x1e\n\x0f\n\x07\ - \x04\x1d\x03\x01\x02\x02\x03\x12\x04\xea\x0b!\"\n\xee\x05\n\x06\x04\x1d\ - \x03\x01\x02\x03\x12\x04\xf9\x0b\x04J\x1a\xdd\x05\x20Optional.\x20Specif\ - ies\x20the\x20action\x20that\x20occurs\x20if\x20the\x20destination\x20ta\ - ble\x20or\n\x20partition\x20already\x20exists.\x20The\x20following\x20va\ - lues\x20are\x20supported:\n\n\x20*\x20WRITE_TRUNCATE:\x20If\x20the\x20ta\ - ble\x20or\x20partition\x20already\x20exists,\x20BigQuery\n\x20overwrites\ - \x20the\x20entire\x20table\x20or\x20all\x20the\x20partitions\x20data.\n\ - \x20*\x20WRITE_APPEND:\x20If\x20the\x20table\x20or\x20partition\x20alrea\ - dy\x20exists,\x20BigQuery\n\x20appends\x20the\x20data\x20to\x20the\x20ta\ - ble\x20or\x20the\x20latest\x20partition.\n\x20*\x20WRITE_EMPTY:\x20If\ - \x20the\x20table\x20already\x20exists\x20and\x20contains\x20data,\x20an\ - \x20error\x20is\n\x20returned.\n\n\x20The\x20default\x20value\x20is\x20W\ - RITE_APPEND.\x20Each\x20action\x20is\x20atomic\x20and\x20only\x20occurs\ - \n\x20if\x20BigQuery\x20is\x20able\x20to\x20complete\x20the\x20job\x20su\ - ccessfully.\x20Details\x20are\x20at\n\x20https://cloud.google.com/bigque\ - ry/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_l\ - ocal_file.\n\n\x0f\n\x07\x04\x1d\x03\x01\x02\x03\x05\x12\x04\xf9\x0b\x04\ - \n\n\x0f\n\x07\x04\x1d\x03\x01\x02\x03\x01\x12\x04\xf9\x0b\x0b\x1c\n\x0f\ - \n\x07\x04\x1d\x03\x01\x02\x03\x03\x12\x04\xf9\x0b\x1f\x20\n\x0f\n\x07\ - \x04\x1d\x03\x01\x02\x03\x08\x12\x04\xf9\x0b!I\n\x12\n\n\x04\x1d\x03\x01\ - \x02\x03\x08\x9c\x08\0\x12\x04\xf9\x0b\"H\n9\n\x04\x04\x1d\x08\0\x12\x06\ - \xfd\x0b\x02\x83\x0c\x03\x1a)\x20IAM\x20policy\x20analysis\x20export\x20\ - destination.\n\n\r\n\x05\x04\x1d\x08\0\x01\x12\x04\xfd\x0b\x08\x13\n-\n\ - \x04\x04\x1d\x02\0\x12\x04\xff\x0b\x04'\x1a\x1f\x20Destination\x20on\x20\ - Cloud\x20Storage.\n\n\r\n\x05\x04\x1d\x02\0\x06\x12\x04\xff\x0b\x04\x12\ - \n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\xff\x0b\x13\"\n\r\n\x05\x04\x1d\x02\ - \0\x03\x12\x04\xff\x0b%&\n(\n\x04\x04\x1d\x02\x01\x12\x04\x82\x0c\x041\ - \x1a\x1a\x20Destination\x20on\x20BigQuery.\n\n\r\n\x05\x04\x1d\x02\x01\ - \x06\x12\x04\x82\x0c\x04\x17\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\x82\ - \x0c\x18,\n\r\n\x05\x04\x1d\x02\x01\x03\x12\x04\x82\x0c/0\n\x93\x01\n\ - \x02\x04\x1e\x12\x06\x88\x0c\0\xa3\x0c\x01\x1a\x84\x01\x20A\x20request\ - \x20message\x20for\n\x20[AssetService.AnalyzeIamPolicyLongrunning][googl\ - e.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].\n\n\x0b\n\ - \x03\x04\x1e\x01\x12\x04\x88\x0c\x08*\n.\n\x04\x04\x1e\x02\0\x12\x06\x8a\ - \x0c\x02\x8b\x0c/\x1a\x1e\x20Required.\x20The\x20request\x20query.\n\n\r\ - \n\x05\x04\x1e\x02\0\x06\x12\x04\x8a\x0c\x02\x18\n\r\n\x05\x04\x1e\x02\0\ - \x01\x12\x04\x8a\x0c\x19'\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\x8a\x0c*+\ - \n\r\n\x05\x04\x1e\x02\0\x08\x12\x04\x8b\x0c\x06.\n\x10\n\x08\x04\x1e\ - \x02\0\x08\x9c\x08\0\x12\x04\x8b\x0c\x07-\n\xa3\x06\n\x04\x04\x1e\x02\ - \x01\x12\x04\x9d\x0c\x02K\x1a\x94\x06\x20Optional.\x20The\x20name\x20of\ - \x20a\x20saved\x20query,\x20which\x20must\x20be\x20in\x20the\x20format\ - \x20of:\n\n\x20*\x20projects/project_number/savedQueries/saved_query_id\ - \n\x20*\x20folders/folder_number/savedQueries/saved_query_id\n\x20*\x20o\ - rganizations/organization_number/savedQueries/saved_query_id\n\n\x20If\ - \x20both\x20`analysis_query`\x20and\x20`saved_analysis_query`\x20are\x20\ - provided,\x20they\n\x20will\x20be\x20merged\x20together\x20with\x20the\ - \x20`saved_analysis_query`\x20as\x20base\x20and\n\x20the\x20`analysis_qu\ - ery`\x20as\x20overrides.\x20For\x20more\x20details\x20of\x20the\x20merge\ - \x20behavior,\n\x20please\x20refer\x20to\x20the\n\x20[MergeFrom](https:/\ - /developers.google.com/protocol-buffers/docs/reference/cpp/google.protob\ - uf.message#Message.MergeFrom.details)\n\x20doc.\n\n\x20Note\x20that\x20y\ - ou\x20cannot\x20override\x20primitive\x20fields\x20with\x20default\x20va\ - lue,\x20such\x20as\n\x200\x20or\x20empty\x20string,\x20etc.,\x20because\ - \x20we\x20use\x20proto3,\x20which\x20doesn't\x20support\x20field\n\x20pr\ - esence\x20yet.\n\n\r\n\x05\x04\x1e\x02\x01\x05\x12\x04\x9d\x0c\x02\x08\n\ - \r\n\x05\x04\x1e\x02\x01\x01\x12\x04\x9d\x0c\t\x1d\n\r\n\x05\x04\x1e\x02\ - \x01\x03\x12\x04\x9d\x0c\x20!\n\r\n\x05\x04\x1e\x02\x01\x08\x12\x04\x9d\ - \x0c\"J\n\x10\n\x08\x04\x1e\x02\x01\x08\x9c\x08\0\x12\x04\x9d\x0c#I\na\n\ - \x04\x04\x1e\x02\x02\x12\x06\xa1\x0c\x02\xa2\x0c/\x1aQ\x20Required.\x20O\ - utput\x20configuration\x20indicating\x20where\x20the\x20results\x20will\ - \x20be\x20output\n\x20to.\n\n\r\n\x05\x04\x1e\x02\x02\x06\x12\x04\xa1\ - \x0c\x02\x1f\n\r\n\x05\x04\x1e\x02\x02\x01\x12\x04\xa1\x0c\x20-\n\r\n\ - \x05\x04\x1e\x02\x02\x03\x12\x04\xa1\x0c01\n\r\n\x05\x04\x1e\x02\x02\x08\ - \x12\x04\xa2\x0c\x06.\n\x10\n\x08\x04\x1e\x02\x02\x08\x9c\x08\0\x12\x04\ - \xa2\x0c\x07-\n\x92\x01\n\x02\x04\x1f\x12\x04\xa7\x0c\0.\x1a\x85\x01\x20\ - A\x20response\x20message\x20for\n\x20[AssetService.AnalyzeIamPolicyLongr\ - unning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning].\ - \n\n\x0b\n\x03\x04\x1f\x01\x12\x04\xa7\x0c\x08+\nL\n\x02\x04\x20\x12\x06\ - \xaa\x0c\0\xe0\x0c\x01\x1a>\x20A\x20saved\x20query\x20which\x20can\x20be\ - \x20shared\x20with\x20others\x20or\x20used\x20later.\n\n\x0b\n\x03\x04\ - \x20\x01\x12\x04\xaa\x0c\x08\x12\n\r\n\x03\x04\x20\x07\x12\x06\xab\x0c\ - \x02\xb0\x0c\x04\n\x0f\n\x05\x04\x20\x07\x9d\x08\x12\x06\xab\x0c\x02\xb0\ - \x0c\x04\n$\n\x04\x04\x20\x03\0\x12\x06\xb3\x0c\x02\xbd\x0c\x03\x1a\x14\ - \x20The\x20query\x20content.\n\n\r\n\x05\x04\x20\x03\0\x01\x12\x04\xb3\ - \x0c\n\x16\n\x10\n\x06\x04\x20\x03\0\x08\0\x12\x06\xb4\x0c\x04\xbc\x0c\ - \x05\n\x0f\n\x07\x04\x20\x03\0\x08\0\x01\x12\x04\xb4\x0c\n\x17\n\xa0\x02\ - \n\x06\x04\x20\x03\0\x02\0\x12\x04\xbb\x0c\x06;\x1a\x8f\x02\x20An\x20IAM\ - \x20Policy\x20Analysis\x20query,\x20which\x20could\x20be\x20used\x20in\n\ - \x20the\n\x20[AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.Asset\ - Service.AnalyzeIamPolicy]\n\x20RPC\x20or\x20the\n\x20[AssetService.Analy\ - zeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPol\ - icyLongrunning]\n\x20RPC.\n\n\x0f\n\x07\x04\x20\x03\0\x02\0\x06\x12\x04\ - \xbb\x0c\x06\x1c\n\x0f\n\x07\x04\x20\x03\0\x02\0\x01\x12\x04\xbb\x0c\x1d\ - 6\n\x0f\n\x07\x04\x20\x03\0\x02\0\x03\x12\x04\xbb\x0c9:\n\xf8\x01\n\x04\ - \x04\x20\x02\0\x12\x04\xc4\x0c\x02\x12\x1a\xe9\x01\x20The\x20resource\ - \x20name\x20of\x20the\x20saved\x20query.\x20The\x20format\x20must\x20be:\ - \n\n\x20*\x20projects/project_number/savedQueries/saved_query_id\n\x20*\ - \x20folders/folder_number/savedQueries/saved_query_id\n\x20*\x20organiza\ - tions/organization_number/savedQueries/saved_query_id\n\n\r\n\x05\x04\ - \x20\x02\0\x05\x12\x04\xc4\x0c\x02\x08\n\r\n\x05\x04\x20\x02\0\x01\x12\ - \x04\xc4\x0c\t\r\n\r\n\x05\x04\x20\x02\0\x03\x12\x04\xc4\x0c\x10\x11\ne\ - \n\x04\x04\x20\x02\x01\x12\x04\xc8\x0c\x02\x19\x1aW\x20The\x20descriptio\ - n\x20of\x20this\x20saved\x20query.\x20This\x20value\x20should\x20be\x20f\ - ewer\x20than\x20255\n\x20characters.\n\n\r\n\x05\x04\x20\x02\x01\x05\x12\ - \x04\xc8\x0c\x02\x08\n\r\n\x05\x04\x20\x02\x01\x01\x12\x04\xc8\x0c\t\x14\ - \n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\xc8\x0c\x17\x18\nC\n\x04\x04\x20\ - \x02\x02\x12\x06\xcb\x0c\x02\xcc\x0c2\x1a3\x20Output\x20only.\x20The\x20\ - create\x20time\x20of\x20this\x20saved\x20query.\n\n\r\n\x05\x04\x20\x02\ - \x02\x06\x12\x04\xcb\x0c\x02\x1b\n\r\n\x05\x04\x20\x02\x02\x01\x12\x04\ - \xcb\x0c\x1c'\n\r\n\x05\x04\x20\x02\x02\x03\x12\x04\xcb\x0c*+\n\r\n\x05\ - \x04\x20\x02\x02\x08\x12\x04\xcc\x0c\x061\n\x10\n\x08\x04\x20\x02\x02\ - \x08\x9c\x08\0\x12\x04\xcc\x0c\x070\nZ\n\x04\x04\x20\x02\x03\x12\x04\xcf\ - \x0c\x02A\x1aL\x20Output\x20only.\x20The\x20account's\x20email\x20addres\ - s\x20who\x20has\x20created\x20this\x20saved\x20query.\n\n\r\n\x05\x04\ - \x20\x02\x03\x05\x12\x04\xcf\x0c\x02\x08\n\r\n\x05\x04\x20\x02\x03\x01\ - \x12\x04\xcf\x0c\t\x10\n\r\n\x05\x04\x20\x02\x03\x03\x12\x04\xcf\x0c\x13\ - \x14\n\r\n\x05\x04\x20\x02\x03\x08\x12\x04\xcf\x0c\x15@\n\x10\n\x08\x04\ - \x20\x02\x03\x08\x9c\x08\0\x12\x04\xcf\x0c\x16?\nH\n\x04\x04\x20\x02\x04\ - \x12\x06\xd2\x0c\x02\xd3\x0c2\x1a8\x20Output\x20only.\x20The\x20last\x20\ - update\x20time\x20of\x20this\x20saved\x20query.\n\n\r\n\x05\x04\x20\x02\ - \x04\x06\x12\x04\xd2\x0c\x02\x1b\n\r\n\x05\x04\x20\x02\x04\x01\x12\x04\ - \xd2\x0c\x1c,\n\r\n\x05\x04\x20\x02\x04\x03\x12\x04\xd2\x0c/0\n\r\n\x05\ - \x04\x20\x02\x04\x08\x12\x04\xd3\x0c\x061\n\x10\n\x08\x04\x20\x02\x04\ - \x08\x9c\x08\0\x12\x04\xd3\x0c\x070\ni\n\x04\x04\x20\x02\x05\x12\x04\xd7\ - \x0c\x02F\x1a[\x20Output\x20only.\x20The\x20account's\x20email\x20addres\ - s\x20who\x20has\x20updated\x20this\x20saved\x20query\n\x20most\x20recent\ - ly.\n\n\r\n\x05\x04\x20\x02\x05\x05\x12\x04\xd7\x0c\x02\x08\n\r\n\x05\ - \x04\x20\x02\x05\x01\x12\x04\xd7\x0c\t\x15\n\r\n\x05\x04\x20\x02\x05\x03\ - \x12\x04\xd7\x0c\x18\x19\n\r\n\x05\x04\x20\x02\x05\x08\x12\x04\xd7\x0c\ - \x1aE\n\x10\n\x08\x04\x20\x02\x05\x08\x9c\x08\0\x12\x04\xd7\x0c\x1bD\n\ - \xb6\x01\n\x04\x04\x20\x02\x06\x12\x04\xdc\x0c\x02!\x1a\xa7\x01\x20Label\ - s\x20applied\x20on\x20the\x20resource.\n\x20This\x20value\x20should\x20n\ - ot\x20contain\x20more\x20than\x2010\x20entries.\x20The\x20key\x20and\x20\ - value\x20of\n\x20each\x20entry\x20must\x20be\x20non-empty\x20and\x20fewe\ - r\x20than\x2064\x20characters.\n\n\r\n\x05\x04\x20\x02\x06\x06\x12\x04\ - \xdc\x0c\x02\x15\n\r\n\x05\x04\x20\x02\x06\x01\x12\x04\xdc\x0c\x16\x1c\n\ - \r\n\x05\x04\x20\x02\x06\x03\x12\x04\xdc\x0c\x1f\x20\n\"\n\x04\x04\x20\ - \x02\x07\x12\x04\xdf\x0c\x02\x1b\x1a\x14\x20The\x20query\x20content.\n\n\ - \r\n\x05\x04\x20\x02\x07\x06\x12\x04\xdf\x0c\x02\x0e\n\r\n\x05\x04\x20\ - \x02\x07\x01\x12\x04\xdf\x0c\x0f\x16\n\r\n\x05\x04\x20\x02\x07\x03\x12\ - \x04\xdf\x0c\x19\x1a\n0\n\x02\x04!\x12\x06\xe3\x0c\0\xfe\x0c\x01\x1a\"\ - \x20Request\x20to\x20create\x20a\x20saved\x20query.\n\n\x0b\n\x03\x04!\ - \x01\x12\x04\xe3\x0c\x08\x1f\n\xc8\x02\n\x04\x04!\x02\0\x12\x06\xe9\x0c\ - \x02\xee\x0c\x04\x1a\xb7\x02\x20Required.\x20The\x20name\x20of\x20the\ - \x20project/folder/organization\x20where\x20this\n\x20saved_query\x20sho\ - uld\x20be\x20created\x20in.\x20It\x20can\x20only\x20be\x20an\x20organiza\ - tion\x20number\n\x20(such\x20as\x20\"organizations/123\"),\x20a\x20folde\ - r\x20number\x20(such\x20as\x20\"folders/123\"),\x20a\n\x20project\x20ID\ - \x20(such\x20as\x20\"projects/my-project-id\"),\x20or\x20a\x20project\ - \x20number\x20(such\x20as\n\x20\"projects/12345\").\n\n\r\n\x05\x04!\x02\ - \0\x05\x12\x04\xe9\x0c\x02\x08\n\r\n\x05\x04!\x02\0\x01\x12\x04\xe9\x0c\ - \t\x0f\n\r\n\x05\x04!\x02\0\x03\x12\x04\xe9\x0c\x12\x13\n\x0f\n\x05\x04!\ - \x02\0\x08\x12\x06\xe9\x0c\x14\xee\x0c\x03\n\x10\n\x08\x04!\x02\0\x08\ - \x9c\x08\0\x12\x04\xea\x0c\x04*\n\x11\n\x07\x04!\x02\0\x08\x9f\x08\x12\ - \x06\xeb\x0c\x04\xed\x0c\x05\n\x93\x01\n\x04\x04!\x02\x01\x12\x04\xf2\ - \x0c\x02F\x1a\x84\x01\x20Required.\x20The\x20saved_query\x20details.\x20\ - The\x20`name`\x20field\x20must\x20be\x20empty\x20as\x20it\n\x20will\x20b\ - e\x20generated\x20based\x20on\x20the\x20parent\x20and\x20saved_query_id.\ - \n\n\r\n\x05\x04!\x02\x01\x06\x12\x04\xf2\x0c\x02\x0c\n\r\n\x05\x04!\x02\ - \x01\x01\x12\x04\xf2\x0c\r\x18\n\r\n\x05\x04!\x02\x01\x03\x12\x04\xf2\ - \x0c\x1b\x1c\n\r\n\x05\x04!\x02\x01\x08\x12\x04\xf2\x0c\x1dE\n\x10\n\x08\ - \x04!\x02\x01\x08\x9c\x08\0\x12\x04\xf2\x0c\x1eD\n\x83\x03\n\x04\x04!\ - \x02\x02\x12\x04\xfd\x0c\x02E\x1a\xf4\x02\x20Required.\x20The\x20ID\x20t\ - o\x20use\x20for\x20the\x20saved\x20query,\x20which\x20must\x20be\x20uniq\ - ue\x20in\x20the\n\x20specified\x20parent.\x20It\x20will\x20become\x20the\ - \x20final\x20component\x20of\x20the\x20saved\x20query's\n\x20resource\ - \x20name.\n\n\x20This\x20value\x20should\x20be\x204-63\x20characters,\ - \x20and\x20valid\x20characters\n\x20are\x20`[a-z][0-9]-`.\n\n\x20Notice\ - \x20that\x20this\x20field\x20is\x20required\x20in\x20the\x20saved\x20que\ - ry\x20creation,\x20and\x20the\n\x20`name`\x20field\x20of\x20the\x20`save\ - d_query`\x20will\x20be\x20ignored.\n\n\r\n\x05\x04!\x02\x02\x05\x12\x04\ - \xfd\x0c\x02\x08\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xfd\x0c\t\x17\n\r\n\ - \x05\x04!\x02\x02\x03\x12\x04\xfd\x0c\x1a\x1b\n\r\n\x05\x04!\x02\x02\x08\ - \x12\x04\xfd\x0c\x1cD\n\x10\n\x08\x04!\x02\x02\x08\x9c\x08\0\x12\x04\xfd\ - \x0c\x1dC\n-\n\x02\x04\"\x12\x06\x81\r\0\x8d\r\x01\x1a\x1f\x20Request\ - \x20to\x20get\x20a\x20saved\x20query.\n\n\x0b\n\x03\x04\"\x01\x12\x04\ - \x81\r\x08\x1c\n\x87\x02\n\x04\x04\"\x02\0\x12\x06\x87\r\x02\x8c\r\x04\ - \x1a\xf6\x01\x20Required.\x20The\x20name\x20of\x20the\x20saved\x20query\ - \x20and\x20it\x20must\x20be\x20in\x20the\x20format\x20of:\n\n\x20*\x20pr\ - ojects/project_number/savedQueries/saved_query_id\n\x20*\x20folders/fold\ - er_number/savedQueries/saved_query_id\n\x20*\x20organizations/organizati\ - on_number/savedQueries/saved_query_id\n\n\r\n\x05\x04\"\x02\0\x05\x12\ - \x04\x87\r\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\x04\x87\r\t\r\n\r\n\x05\ - \x04\"\x02\0\x03\x12\x04\x87\r\x10\x11\n\x0f\n\x05\x04\"\x02\0\x08\x12\ - \x06\x87\r\x12\x8c\r\x03\n\x10\n\x08\x04\"\x02\0\x08\x9c\x08\0\x12\x04\ - \x88\r\x04*\n\x11\n\x07\x04\"\x02\0\x08\x9f\x08\x12\x06\x89\r\x04\x8b\r\ - \x05\n.\n\x02\x04#\x12\x06\x90\r\0\xb0\r\x01\x1a\x20\x20Request\x20to\ - \x20list\x20saved\x20queries.\n\n\x0b\n\x03\x04#\x01\x12\x04\x90\r\x08\ - \x1f\n\xf2\x01\n\x04\x04#\x02\0\x12\x06\x94\r\x02\x99\r\x04\x1a\xe1\x01\ - \x20Required.\x20The\x20parent\x20project/folder/organization\x20whose\ - \x20savedQueries\x20are\x20to\n\x20be\x20listed.\x20It\x20can\x20only\ - \x20be\x20using\x20project/folder/organization\x20number\x20(such\x20as\ - \n\x20\"folders/12345\")\",\x20or\x20a\x20project\x20ID\x20(such\x20as\ - \x20\"projects/my-project-id\").\n\n\r\n\x05\x04#\x02\0\x05\x12\x04\x94\ - \r\x02\x08\n\r\n\x05\x04#\x02\0\x01\x12\x04\x94\r\t\x0f\n\r\n\x05\x04#\ - \x02\0\x03\x12\x04\x94\r\x12\x13\n\x0f\n\x05\x04#\x02\0\x08\x12\x06\x94\ - \r\x14\x99\r\x03\n\x10\n\x08\x04#\x02\0\x08\x9c\x08\0\x12\x04\x95\r\x04*\ - \n\x11\n\x07\x04#\x02\0\x08\x9f\x08\x12\x06\x96\r\x04\x98\r\x05\n\x99\ - \x03\n\x04\x04#\x02\x01\x12\x04\xa2\r\x02=\x1a\x8a\x03\x20Optional.\x20T\ - he\x20expression\x20to\x20filter\x20resources.\n\x20The\x20expression\ - \x20is\x20a\x20list\x20of\x20zero\x20or\x20more\x20restrictions\x20combi\ - ned\x20via\x20logical\n\x20operators\x20`AND`\x20and\x20`OR`.\x20When\ - \x20`AND`\x20and\x20`OR`\x20are\x20both\x20used\x20in\x20the\n\x20expres\ - sion,\x20parentheses\x20must\x20be\x20appropriately\x20used\x20to\x20gro\ - up\x20the\n\x20combinations.\x20The\x20expression\x20may\x20also\x20cont\ - ain\x20regular\x20expressions.\n\n\x20See\x20https://google.aip.dev/160\ - \x20for\x20more\x20information\x20on\x20the\x20grammar.\n\n\r\n\x05\x04#\ - \x02\x01\x05\x12\x04\xa2\r\x02\x08\n\r\n\x05\x04#\x02\x01\x01\x12\x04\ - \xa2\r\t\x0f\n\r\n\x05\x04#\x02\x01\x03\x12\x04\xa2\r\x12\x13\n\r\n\x05\ - \x04#\x02\x01\x08\x12\x04\xa2\r\x14<\n\x10\n\x08\x04#\x02\x01\x08\x9c\ - \x08\0\x12\x04\xa2\r\x15;\n\xf6\x01\n\x04\x04#\x02\x02\x12\x04\xa8\r\x02\ - ?\x1a\xe7\x01\x20Optional.\x20The\x20maximum\x20number\x20of\x20saved\ - \x20queries\x20to\x20return\x20per\x20page.\x20The\n\x20service\x20may\ - \x20return\x20fewer\x20than\x20this\x20value.\x20If\x20unspecified,\x20a\ - t\x20most\x2050\x20will\n\x20be\x20returned.\x20The\x20maximum\x20value\ - \x20is\x201000;\x20values\x20above\x201000\x20will\x20be\x20coerced\n\ - \x20to\x201000.\n\n\r\n\x05\x04#\x02\x02\x05\x12\x04\xa8\r\x02\x07\n\r\n\ - \x05\x04#\x02\x02\x01\x12\x04\xa8\r\x08\x11\n\r\n\x05\x04#\x02\x02\x03\ - \x12\x04\xa8\r\x14\x15\n\r\n\x05\x04#\x02\x02\x08\x12\x04\xa8\r\x16>\n\ - \x10\n\x08\x04#\x02\x02\x08\x9c\x08\0\x12\x04\xa8\r\x17=\n\x83\x02\n\x04\ - \x04#\x02\x03\x12\x04\xaf\r\x02A\x1a\xf4\x01\x20Optional.\x20A\x20page\ - \x20token,\x20received\x20from\x20a\x20previous\x20`ListSavedQueries`\ - \x20call.\n\x20Provide\x20this\x20to\x20retrieve\x20the\x20subsequent\ - \x20page.\n\n\x20When\x20paginating,\x20all\x20other\x20parameters\x20pr\ - ovided\x20to\x20`ListSavedQueries`\x20must\n\x20match\x20the\x20call\x20\ - that\x20provided\x20the\x20page\x20token.\n\n\r\n\x05\x04#\x02\x03\x05\ - \x12\x04\xaf\r\x02\x08\n\r\n\x05\x04#\x02\x03\x01\x12\x04\xaf\r\t\x13\n\ - \r\n\x05\x04#\x02\x03\x03\x12\x04\xaf\r\x16\x17\n\r\n\x05\x04#\x02\x03\ - \x08\x12\x04\xaf\r\x18@\n\x10\n\x08\x04#\x02\x03\x08\x9c\x08\0\x12\x04\ - \xaf\r\x19?\n2\n\x02\x04$\x12\x06\xb3\r\0\xba\r\x01\x1a$\x20Response\x20\ - of\x20listing\x20saved\x20queries.\n\n\x0b\n\x03\x04$\x01\x12\x04\xb3\r\ - \x08\x20\n'\n\x04\x04$\x02\0\x12\x04\xb5\r\x02(\x1a\x19\x20A\x20list\x20\ - of\x20savedQueries.\n\n\r\n\x05\x04$\x02\0\x04\x12\x04\xb5\r\x02\n\n\r\n\ - \x05\x04$\x02\0\x06\x12\x04\xb5\r\x0b\x15\n\r\n\x05\x04$\x02\0\x01\x12\ - \x04\xb5\r\x16#\n\r\n\x05\x04$\x02\0\x03\x12\x04\xb5\r&'\n\x90\x01\n\x04\ - \x04$\x02\x01\x12\x04\xb9\r\x02\x1d\x1a\x81\x01\x20A\x20token,\x20which\ - \x20can\x20be\x20sent\x20as\x20`page_token`\x20to\x20retrieve\x20the\x20\ - next\x20page.\n\x20If\x20this\x20field\x20is\x20omitted,\x20there\x20are\ - \x20no\x20subsequent\x20pages.\n\n\r\n\x05\x04$\x02\x01\x05\x12\x04\xb9\ - \r\x02\x08\n\r\n\x05\x04$\x02\x01\x01\x12\x04\xb9\r\t\x18\n\r\n\x05\x04$\ - \x02\x01\x03\x12\x04\xb9\r\x1b\x1c\n0\n\x02\x04%\x12\x06\xbd\r\0\xcb\r\ - \x01\x1a\"\x20Request\x20to\x20update\x20a\x20saved\x20query.\n\n\x0b\n\ - \x03\x04%\x01\x12\x04\xbd\r\x08\x1f\n\xc7\x02\n\x04\x04%\x02\0\x12\x04\ - \xc6\r\x02F\x1a\xb8\x02\x20Required.\x20The\x20saved\x20query\x20to\x20u\ - pdate.\n\n\x20The\x20saved\x20query's\x20`name`\x20field\x20is\x20used\ - \x20to\x20identify\x20the\x20one\x20to\x20update,\n\x20which\x20has\x20f\ - ormat\x20as\x20below:\n\n\x20*\x20projects/project_number/savedQueries/s\ - aved_query_id\n\x20*\x20folders/folder_number/savedQueries/saved_query_i\ - d\n\x20*\x20organizations/organization_number/savedQueries/saved_query_i\ - d\n\n\r\n\x05\x04%\x02\0\x06\x12\x04\xc6\r\x02\x0c\n\r\n\x05\x04%\x02\0\ - \x01\x12\x04\xc6\r\r\x18\n\r\n\x05\x04%\x02\0\x03\x12\x04\xc6\r\x1b\x1c\ - \n\r\n\x05\x04%\x02\0\x08\x12\x04\xc6\r\x1dE\n\x10\n\x08\x04%\x02\0\x08\ - \x9c\x08\0\x12\x04\xc6\r\x1eD\n9\n\x04\x04%\x02\x01\x12\x06\xc9\r\x02\ - \xca\r/\x1a)\x20Required.\x20The\x20list\x20of\x20fields\x20to\x20update\ - .\n\n\r\n\x05\x04%\x02\x01\x06\x12\x04\xc9\r\x02\x1b\n\r\n\x05\x04%\x02\ - \x01\x01\x12\x04\xc9\r\x1c'\n\r\n\x05\x04%\x02\x01\x03\x12\x04\xc9\r*+\n\ - \r\n\x05\x04%\x02\x01\x08\x12\x04\xca\r\x06.\n\x10\n\x08\x04%\x02\x01\ - \x08\x9c\x08\0\x12\x04\xca\r\x07-\n0\n\x02\x04&\x12\x06\xce\r\0\xdb\r\ - \x01\x1a\"\x20Request\x20to\x20delete\x20a\x20saved\x20query.\n\n\x0b\n\ - \x03\x04&\x01\x12\x04\xce\r\x08\x1f\n\x8f\x02\n\x04\x04&\x02\0\x12\x06\ - \xd5\r\x02\xda\r\x04\x1a\xfe\x01\x20Required.\x20The\x20name\x20of\x20th\ - e\x20saved\x20query\x20to\x20delete.\x20It\x20must\x20be\x20in\x20the\ - \x20format\n\x20of:\n\n\x20*\x20projects/project_number/savedQueries/sav\ - ed_query_id\n\x20*\x20folders/folder_number/savedQueries/saved_query_id\ - \n\x20*\x20organizations/organization_number/savedQueries/saved_query_id\ - \n\n\r\n\x05\x04&\x02\0\x05\x12\x04\xd5\r\x02\x08\n\r\n\x05\x04&\x02\0\ - \x01\x12\x04\xd5\r\t\r\n\r\n\x05\x04&\x02\0\x03\x12\x04\xd5\r\x10\x11\n\ - \x0f\n\x05\x04&\x02\0\x08\x12\x06\xd5\r\x12\xda\r\x03\n\x10\n\x08\x04&\ - \x02\0\x08\x9c\x08\0\x12\x04\xd6\r\x04*\n\x11\n\x07\x04&\x02\0\x08\x9f\ - \x08\x12\x06\xd7\r\x04\xd9\r\x05\nJ\n\x02\x04'\x12\x06\xde\r\0\xfe\r\x01\ - \x1a<\x20The\x20request\x20message\x20for\x20performing\x20resource\x20m\ - ove\x20analysis.\n\n\x0b\n\x03\x04'\x01\x12\x04\xde\r\x08\x1a\nF\n\x04\ - \x04'\x04\0\x12\x06\xe0\r\x02\xec\r\x03\x1a6\x20View\x20enum\x20for\x20s\ - upporting\x20partial\x20analysis\x20responses.\n\n\r\n\x05\x04'\x04\0\ - \x01\x12\x04\xe0\r\x07\x13\nR\n\x06\x04'\x04\0\x02\0\x12\x04\xe3\r\x04\"\ - \x1aB\x20The\x20default/unset\x20value.\n\x20The\x20API\x20will\x20defau\ - lt\x20to\x20the\x20FULL\x20view.\n\n\x0f\n\x07\x04'\x04\0\x02\0\x01\x12\ - \x04\xe3\r\x04\x1d\n\x0f\n\x07\x04'\x04\0\x02\0\x02\x12\x04\xe3\r\x20!\n\ - _\n\x06\x04'\x04\0\x02\x01\x12\x04\xe7\r\x04\r\x1aO\x20Full\x20analysis\ - \x20including\x20all\x20level\x20of\x20impacts\x20of\x20the\x20specified\ - \x20resource\n\x20move.\n\n\x0f\n\x07\x04'\x04\0\x02\x01\x01\x12\x04\xe7\ - \r\x04\x08\n\x0f\n\x07\x04'\x04\0\x02\x01\x02\x12\x04\xe7\r\x0b\x0c\nt\n\ - \x06\x04'\x04\0\x02\x02\x12\x04\xeb\r\x04\x0e\x1ad\x20Basic\x20analysis\ - \x20only\x20including\x20blockers\x20which\x20will\x20prevent\x20the\x20\ - specified\n\x20resource\x20move\x20at\x20runtime.\n\n\x0f\n\x07\x04'\x04\ - \0\x02\x02\x01\x12\x04\xeb\r\x04\t\n\x0f\n\x07\x04'\x04\0\x02\x02\x02\ - \x12\x04\xeb\r\x0c\r\n\x81\x02\n\x04\x04'\x02\0\x12\x04\xf2\r\x02?\x1a\ - \xf2\x01\x20Required.\x20Name\x20of\x20the\x20resource\x20to\x20perform\ - \x20the\x20analysis\x20against.\n\x20Only\x20Google\x20Cloud\x20projects\ - \x20are\x20supported\x20as\x20of\x20today.\x20Hence,\x20this\x20can\x20o\ - nly\n\x20be\x20a\x20project\x20ID\x20(such\x20as\x20\"projects/my-projec\ - t-id\")\x20or\x20a\x20project\x20number\n\x20(such\x20as\x20\"projects/1\ - 2345\").\n\n\r\n\x05\x04'\x02\0\x05\x12\x04\xf2\r\x02\x08\n\r\n\x05\x04'\ - \x02\0\x01\x12\x04\xf2\r\t\x11\n\r\n\x05\x04'\x02\0\x03\x12\x04\xf2\r\ - \x14\x15\n\r\n\x05\x04'\x02\0\x08\x12\x04\xf2\r\x16>\n\x10\n\x08\x04'\ - \x02\0\x08\x9c\x08\0\x12\x04\xf2\r\x17=\n\xd2\x02\n\x04\x04'\x02\x01\x12\ - \x04\xf9\r\x02I\x1a\xc3\x02\x20Required.\x20Name\x20of\x20the\x20Google\ - \x20Cloud\x20folder\x20or\x20organization\x20to\x20reparent\x20the\n\x20\ - target\x20resource.\x20The\x20analysis\x20will\x20be\x20performed\x20aga\ - inst\x20hypothetically\n\x20moving\x20the\x20resource\x20to\x20this\x20s\ - pecified\x20desitination\x20parent.\x20This\x20can\x20only\x20be\n\x20a\ - \x20folder\x20number\x20(such\x20as\x20\"folders/123\")\x20or\x20an\x20o\ - rganization\x20number\x20(such\x20as\n\x20\"organizations/123\").\n\n\r\ - \n\x05\x04'\x02\x01\x05\x12\x04\xf9\r\x02\x08\n\r\n\x05\x04'\x02\x01\x01\ - \x12\x04\xf9\r\t\x1b\n\r\n\x05\x04'\x02\x01\x03\x12\x04\xf9\r\x1e\x1f\n\ - \r\n\x05\x04'\x02\x01\x08\x12\x04\xf9\r\x20H\n\x10\n\x08\x04'\x02\x01\ - \x08\x9c\x08\0\x12\x04\xf9\r!G\n\x92\x01\n\x04\x04'\x02\x02\x12\x04\xfd\ - \r\x02\x18\x1a\x83\x01\x20Analysis\x20view\x20indicating\x20what\x20info\ - rmation\x20should\x20be\x20included\x20in\x20the\n\x20analysis\x20respon\ - se.\x20If\x20unspecified,\x20the\x20default\x20view\x20is\x20FULL.\n\n\r\ - \n\x05\x04'\x02\x02\x06\x12\x04\xfd\r\x02\x0e\n\r\n\x05\x04'\x02\x02\x01\ - \x12\x04\xfd\r\x0f\x13\n\r\n\x05\x04'\x02\x02\x03\x12\x04\xfd\r\x16\x17\ - \n@\n\x02\x04(\x12\x06\x81\x0e\0\x85\x0e\x01\x1a2\x20The\x20response\x20\ - message\x20for\x20resource\x20move\x20analysis.\n\n\x0b\n\x03\x04(\x01\ - \x12\x04\x81\x0e\x08\x1b\n\xa0\x01\n\x04\x04(\x02\0\x12\x04\x84\x0e\x02*\ - \x1a\x91\x01\x20The\x20list\x20of\x20analyses\x20returned\x20from\x20per\ - forming\x20the\x20intended\x20resource\x20move\n\x20analysis.\x20The\x20\ - analysis\x20is\x20grouped\x20by\x20different\x20Google\x20Cloud\x20servi\ - ces.\n\n\r\n\x05\x04(\x02\0\x04\x12\x04\x84\x0e\x02\n\n\r\n\x05\x04(\x02\ - \0\x06\x12\x04\x84\x0e\x0b\x17\n\r\n\x05\x04(\x02\0\x01\x12\x04\x84\x0e\ - \x18%\n\r\n\x05\x04(\x02\0\x03\x12\x04\x84\x0e()\n<\n\x02\x04)\x12\x06\ - \x88\x0e\0\x94\x0e\x01\x1a.\x20A\x20message\x20to\x20group\x20the\x20ana\ - lysis\x20information.\n\n\x0b\n\x03\x04)\x01\x12\x04\x88\x0e\x08\x14\nc\ - \n\x04\x04)\x02\0\x12\x04\x8b\x0e\x02\x1a\x1aU\x20The\x20user\x20friendl\ - y\x20display\x20name\x20of\x20the\x20analysis.\x20E.g.\x20IAM,\x20organi\ - zation\n\x20policy\x20etc.\n\n\r\n\x05\x04)\x02\0\x05\x12\x04\x8b\x0e\ - \x02\x08\n\r\n\x05\x04)\x02\0\x01\x12\x04\x8b\x0e\t\x15\n\r\n\x05\x04)\ - \x02\0\x03\x12\x04\x8b\x0e\x18\x19\n\x0e\n\x04\x04)\x08\0\x12\x06\x8d\ - \x0e\x02\x93\x0e\x03\n\r\n\x05\x04)\x08\0\x01\x12\x04\x8d\x0e\x08\x0e\n>\ - \n\x04\x04)\x02\x01\x12\x04\x8f\x0e\x04$\x1a0\x20Analysis\x20result\x20o\ - f\x20moving\x20the\x20target\x20resource.\n\n\r\n\x05\x04)\x02\x01\x06\ - \x12\x04\x8f\x0e\x04\x16\n\r\n\x05\x04)\x02\x01\x01\x12\x04\x8f\x0e\x17\ - \x1f\n\r\n\x05\x04)\x02\x01\x03\x12\x04\x8f\x0e\"#\nN\n\x04\x04)\x02\x02\ - \x12\x04\x92\x0e\x04\x20\x1a@\x20Description\x20of\x20error\x20encounter\ - ed\x20when\x20performing\x20the\x20analysis.\n\n\r\n\x05\x04)\x02\x02\ - \x06\x12\x04\x92\x0e\x04\x15\n\r\n\x05\x04)\x02\x02\x01\x12\x04\x92\x0e\ - \x16\x1b\n\r\n\x05\x04)\x02\x02\x03\x12\x04\x92\x0e\x1e\x1f\nC\n\x02\x04\ - *\x12\x06\x97\x0e\0\xa0\x0e\x01\x1a5\x20An\x20analysis\x20result\x20incl\ - uding\x20blockers\x20and\x20warnings.\n\n\x0b\n\x03\x04*\x01\x12\x04\x97\ - \x0e\x08\x1a\n\x81\x01\n\x04\x04*\x02\0\x12\x04\x9a\x0e\x02#\x1as\x20Blo\ - cking\x20information\x20that\x20would\x20prevent\x20the\x20target\x20res\ - ource\x20from\x20moving\n\x20to\x20the\x20specified\x20destination\x20at\ - \x20runtime.\n\n\r\n\x05\x04*\x02\0\x04\x12\x04\x9a\x0e\x02\n\n\r\n\x05\ - \x04*\x02\0\x06\x12\x04\x9a\x0e\x0b\x15\n\r\n\x05\x04*\x02\0\x01\x12\x04\ - \x9a\x0e\x16\x1e\n\r\n\x05\x04*\x02\0\x03\x12\x04\x9a\x0e!\"\n\xed\x01\n\ - \x04\x04*\x02\x01\x12\x04\x9f\x0e\x02#\x1a\xde\x01\x20Warning\x20informa\ - tion\x20indicating\x20that\x20moving\x20the\x20target\x20resource\x20to\ - \x20the\n\x20specified\x20destination\x20might\x20be\x20unsafe.\x20This\ - \x20can\x20include\x20important\x20policy\n\x20information\x20and\x20con\ - figuration\x20changes,\x20but\x20will\x20not\x20block\x20moves\x20at\x20\ - runtime.\n\n\r\n\x05\x04*\x02\x01\x04\x12\x04\x9f\x0e\x02\n\n\r\n\x05\ - \x04*\x02\x01\x06\x12\x04\x9f\x0e\x0b\x15\n\r\n\x05\x04*\x02\x01\x01\x12\ - \x04\x9f\x0e\x16\x1e\n\r\n\x05\x04*\x02\x01\x03\x12\x04\x9f\x0e!\"\nI\n\ - \x02\x04+\x12\x06\xa3\x0e\0\xa6\x0e\x01\x1a;\x20A\x20message\x20to\x20gr\ - oup\x20impacts\x20of\x20moving\x20the\x20target\x20resource.\n\n\x0b\n\ - \x03\x04+\x01\x12\x04\xa3\x0e\x08\x12\nC\n\x04\x04+\x02\0\x12\x04\xa5\ - \x0e\x02\x14\x1a5\x20User\x20friendly\x20impact\x20detail\x20in\x20a\x20\ - free\x20form\x20message.\n\n\r\n\x05\x04+\x02\0\x05\x12\x04\xa5\x0e\x02\ - \x08\n\r\n\x05\x04+\x02\0\x01\x12\x04\xa5\x0e\t\x0f\n\r\n\x05\x04+\x02\0\ - \x03\x12\x04\xa5\x0e\x12\x13\n2\n\x02\x04,\x12\x06\xa9\x0e\0\xc5\x0e\x01\ - \x1a$\x20Output\x20configuration\x20query\x20assets.\n\n\x0b\n\x03\x04,\ - \x01\x12\x04\xa9\x0e\x08\x1f\n'\n\x04\x04,\x03\0\x12\x06\xab\x0e\x02\xc1\ - \x0e\x03\x1a\x17\x20BigQuery\x20destination.\n\n\r\n\x05\x04,\x03\0\x01\ - \x12\x04\xab\x0e\n\x1d\n\x9b\x01\n\x06\x04,\x03\0\x02\0\x12\x04\xae\x0e\ - \x04@\x1a\x8a\x01\x20Required.\x20The\x20BigQuery\x20dataset\x20where\ - \x20the\x20query\x20results\x20will\x20be\x20saved.\x20It\n\x20has\x20th\ - e\x20format\x20of\x20\"projects/{projectId}/datasets/{datasetId}\".\n\n\ - \x0f\n\x07\x04,\x03\0\x02\0\x05\x12\x04\xae\x0e\x04\n\n\x0f\n\x07\x04,\ - \x03\0\x02\0\x01\x12\x04\xae\x0e\x0b\x12\n\x0f\n\x07\x04,\x03\0\x02\0\ - \x03\x12\x04\xae\x0e\x15\x16\n\x0f\n\x07\x04,\x03\0\x02\0\x08\x12\x04\ - \xae\x0e\x17?\n\x12\n\n\x04,\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xae\x0e\ - \x18>\n\xa7\x01\n\x06\x04,\x03\0\x02\x01\x12\x04\xb3\x0e\x04>\x1a\x96\ - \x01\x20Required.\x20The\x20BigQuery\x20table\x20where\x20the\x20query\ - \x20results\x20will\x20be\x20saved.\x20If\n\x20this\x20table\x20does\x20\ - not\x20exist,\x20a\x20new\x20table\x20with\x20the\x20given\x20name\x20wi\ - ll\x20be\n\x20created.\n\n\x0f\n\x07\x04,\x03\0\x02\x01\x05\x12\x04\xb3\ - \x0e\x04\n\n\x0f\n\x07\x04,\x03\0\x02\x01\x01\x12\x04\xb3\x0e\x0b\x10\n\ - \x0f\n\x07\x04,\x03\0\x02\x01\x03\x12\x04\xb3\x0e\x13\x14\n\x0f\n\x07\ - \x04,\x03\0\x02\x01\x08\x12\x04\xb3\x0e\x15=\n\x12\n\n\x04,\x03\0\x02\ - \x01\x08\x9c\x08\0\x12\x04\xb3\x0e\x16<\n\xa1\x04\n\x06\x04,\x03\0\x02\ - \x02\x12\x04\xc0\x0e\x04!\x1a\x90\x04\x20Specifies\x20the\x20action\x20t\ - hat\x20occurs\x20if\x20the\x20destination\x20table\x20or\x20partition\n\ - \x20already\x20exists.\x20The\x20following\x20values\x20are\x20supported\ - :\n\n\x20*\x20WRITE_TRUNCATE:\x20If\x20the\x20table\x20or\x20partition\ - \x20already\x20exists,\x20BigQuery\n\x20overwrites\x20the\x20entire\x20t\ - able\x20or\x20all\x20the\x20partitions\x20data.\n\x20*\x20WRITE_APPEND:\ - \x20If\x20the\x20table\x20or\x20partition\x20already\x20exists,\x20BigQu\ - ery\n\x20appends\x20the\x20data\x20to\x20the\x20table\x20or\x20the\x20la\ - test\x20partition.\n\x20*\x20WRITE_EMPTY:\x20If\x20the\x20table\x20alrea\ - dy\x20exists\x20and\x20contains\x20data,\x20a\n\x20'duplicate'\x20error\ - \x20is\x20returned\x20in\x20the\x20job\x20result.\n\n\x20The\x20default\ - \x20value\x20is\x20WRITE_EMPTY.\n\n\x0f\n\x07\x04,\x03\0\x02\x02\x05\x12\ - \x04\xc0\x0e\x04\n\n\x0f\n\x07\x04,\x03\0\x02\x02\x01\x12\x04\xc0\x0e\ - \x0b\x1c\n\x0f\n\x07\x04,\x03\0\x02\x02\x03\x12\x04\xc0\x0e\x1f\x20\nK\n\ - \x04\x04,\x02\0\x12\x04\xc4\x0e\x02/\x1a=\x20BigQuery\x20destination\x20\ - where\x20the\x20query\x20results\x20will\x20be\x20saved.\n\n\r\n\x05\x04\ - ,\x02\0\x06\x12\x04\xc4\x0e\x02\x15\n\r\n\x05\x04,\x02\0\x01\x12\x04\xc4\ - \x0e\x16*\n\r\n\x05\x04,\x02\0\x03\x12\x04\xc4\x0e-.\n$\n\x02\x04-\x12\ - \x06\xc8\x0e\0\x9b\x0f\x01\x1a\x16\x20QueryAssets\x20request.\n\n\x0b\n\ - \x03\x04-\x01\x12\x04\xc8\x0e\x08\x1a\n\xd2\x02\n\x04\x04-\x02\0\x12\x06\ - \xcf\x0e\x02\xd4\x0e\x04\x1a\xc1\x02\x20Required.\x20The\x20relative\x20\ - name\x20of\x20the\x20root\x20asset.\x20This\x20can\x20only\x20be\x20an\n\ - \x20organization\x20number\x20(such\x20as\x20\"organizations/123\"),\x20\ - a\x20project\x20ID\x20(such\x20as\n\x20\"projects/my-project-id\"),\x20o\ - r\x20a\x20project\x20number\x20(such\x20as\x20\"projects/12345\"),\n\x20\ - or\x20a\x20folder\x20number\x20(such\x20as\x20\"folders/123\").\n\n\x20O\ - nly\x20assets\x20belonging\x20to\x20the\x20`parent`\x20will\x20be\x20ret\ - urned.\n\n\r\n\x05\x04-\x02\0\x05\x12\x04\xcf\x0e\x02\x08\n\r\n\x05\x04-\ - \x02\0\x01\x12\x04\xcf\x0e\t\x0f\n\r\n\x05\x04-\x02\0\x03\x12\x04\xcf\ - \x0e\x12\x13\n\x0f\n\x05\x04-\x02\0\x08\x12\x06\xcf\x0e\x14\xd4\x0e\x03\ - \n\x10\n\x08\x04-\x02\0\x08\x9c\x08\0\x12\x04\xd0\x0e\x04*\n\x11\n\x07\ - \x04-\x02\0\x08\x9f\x08\x12\x06\xd1\x0e\x04\xd3\x0e\x05\n\x0e\n\x04\x04-\ - \x08\0\x12\x06\xd6\x0e\x02\xde\x0e\x03\n\r\n\x05\x04-\x08\0\x01\x12\x04\ - \xd6\x0e\x08\r\n\x8a\x01\n\x04\x04-\x02\x01\x12\x04\xd9\x0e\x04B\x1a|\ - \x20Optional.\x20A\x20SQL\x20statement\x20that's\x20compatible\x20with\ - \x20[BigQuery\n\x20SQL](https://cloud.google.com/bigquery/docs/introduct\ - ion-sql).\n\n\r\n\x05\x04-\x02\x01\x05\x12\x04\xd9\x0e\x04\n\n\r\n\x05\ - \x04-\x02\x01\x01\x12\x04\xd9\x0e\x0b\x14\n\r\n\x05\x04-\x02\x01\x03\x12\ - \x04\xd9\x0e\x17\x18\n\r\n\x05\x04-\x02\x01\x08\x12\x04\xd9\x0e\x19A\n\ - \x10\n\x08\x04-\x02\x01\x08\x9c\x08\0\x12\x04\xd9\x0e\x1a@\n~\n\x04\x04-\ - \x02\x02\x12\x04\xdd\x0e\x04F\x1ap\x20Optional.\x20Reference\x20to\x20th\ - e\x20query\x20job,\x20which\x20is\x20from\x20the\n\x20`QueryAssetsRespon\ - se`\x20of\x20previous\x20`QueryAssets`\x20call.\n\n\r\n\x05\x04-\x02\x02\ - \x05\x12\x04\xdd\x0e\x04\n\n\r\n\x05\x04-\x02\x02\x01\x12\x04\xdd\x0e\ - \x0b\x18\n\r\n\x05\x04-\x02\x02\x03\x12\x04\xdd\x0e\x1b\x1c\n\r\n\x05\ - \x04-\x02\x02\x08\x12\x04\xdd\x0e\x1dE\n\x10\n\x08\x04-\x02\x02\x08\x9c\ - \x08\0\x12\x04\xdd\x0e\x1eD\n\xc9\x02\n\x04\x04-\x02\x03\x12\x04\xe7\x0e\ - \x02?\x1a\xba\x02\x20Optional.\x20The\x20maximum\x20number\x20of\x20rows\ - \x20to\x20return\x20in\x20the\x20results.\x20Responses\n\x20are\x20limit\ - ed\x20to\x2010\x20MB\x20and\x201000\x20rows.\n\n\x20By\x20default,\x20th\ - e\x20maximum\x20row\x20count\x20is\x201000.\x20When\x20the\x20byte\x20or\ - \x20row\x20count\x20limit\n\x20is\x20reached,\x20the\x20rest\x20of\x20th\ - e\x20query\x20results\x20will\x20be\x20paginated.\n\n\x20The\x20field\ - \x20will\x20be\x20ignored\x20when\x20[output_config]\x20is\x20specified.\ - \n\n\r\n\x05\x04-\x02\x03\x05\x12\x04\xe7\x0e\x02\x07\n\r\n\x05\x04-\x02\ - \x03\x01\x12\x04\xe7\x0e\x08\x11\n\r\n\x05\x04-\x02\x03\x03\x12\x04\xe7\ - \x0e\x14\x15\n\r\n\x05\x04-\x02\x03\x08\x12\x04\xe7\x0e\x16>\n\x10\n\x08\ - \x04-\x02\x03\x08\x9c\x08\0\x12\x04\xe7\x0e\x17=\n\x8b\x01\n\x04\x04-\ - \x02\x04\x12\x04\xec\x0e\x02A\x1a}\x20Optional.\x20A\x20page\x20token\ - \x20received\x20from\x20previous\x20`QueryAssets`.\n\n\x20The\x20field\ - \x20will\x20be\x20ignored\x20when\x20[output_config]\x20is\x20specified.\ - \n\n\r\n\x05\x04-\x02\x04\x05\x12\x04\xec\x0e\x02\x08\n\r\n\x05\x04-\x02\ - \x04\x01\x12\x04\xec\x0e\t\x13\n\r\n\x05\x04-\x02\x04\x03\x12\x04\xec\ - \x0e\x16\x17\n\r\n\x05\x04-\x02\x04\x08\x12\x04\xec\x0e\x18@\n\x10\n\x08\ - \x04-\x02\x04\x08\x9c\x08\0\x12\x04\xec\x0e\x19?\n\x9d\x05\n\x04\x04-\ - \x02\x05\x12\x04\xfb\x0e\x02P\x1a\x8e\x05\x20Optional.\x20Specifies\x20t\ - he\x20maximum\x20amount\x20of\x20time\x20that\x20the\x20client\x20is\x20\ - willing\n\x20to\x20wait\x20for\x20the\x20query\x20to\x20complete.\x20By\ - \x20default,\x20this\x20limit\x20is\x205\x20min\x20for\x20the\n\x20first\ - \x20query,\x20and\x201\x20minute\x20for\x20the\x20following\x20queries.\ - \x20If\x20the\x20query\x20is\n\x20complete,\x20the\x20`done`\x20field\ - \x20in\x20the\x20`QueryAssetsResponse`\x20is\x20true,\x20otherwise\n\x20\ - false.\n\n\x20Like\x20BigQuery\x20[jobs.query\n\x20API](https://cloud.go\ - ogle.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)\n\x20T\ - he\x20call\x20is\x20not\x20guaranteed\x20to\x20wait\x20for\x20the\x20spe\ - cified\x20timeout;\x20it\x20typically\n\x20returns\x20after\x20around\ - \x20200\x20seconds\x20(200,000\x20milliseconds),\x20even\x20if\x20the\ - \x20query\n\x20is\x20not\x20complete.\n\n\x20The\x20field\x20will\x20be\ - \x20ignored\x20when\x20[output_config]\x20is\x20specified.\n\n\r\n\x05\ - \x04-\x02\x05\x06\x12\x04\xfb\x0e\x02\x1a\n\r\n\x05\x04-\x02\x05\x01\x12\ - \x04\xfb\x0e\x1b\"\n\r\n\x05\x04-\x02\x05\x03\x12\x04\xfb\x0e%&\n\r\n\ - \x05\x04-\x02\x05\x08\x12\x04\xfb\x0e'O\n\x10\n\x08\x04-\x02\x05\x08\x9c\ - \x08\0\x12\x04\xfb\x0e(N\n\xbb\x03\n\x04\x04-\x08\x01\x12\x06\x84\x0f\ - \x02\x8e\x0f\x03\x1a\xaa\x03\x20Specifies\x20what\x20time\x20period\x20o\ - r\x20point\x20in\x20time\x20to\x20query\x20asset\x20metadata\x20at.\n\ - \x20*\x20unset\x20-\x20query\x20asset\x20metadata\x20as\x20it\x20is\x20r\ - ight\x20now\n\x20*\x20[read_time_window]\x20-\x20query\x20asset\x20metad\ - ata\x20as\x20it\x20was\x20at\x20any\x20point\x20in\x20time\n\x20between\ - \x20[start_time]\x20and\x20[end_time].\n\x20*\x20[read_time]\x20-\x20que\ - ry\x20asset\x20metadata\x20as\x20it\x20was\x20at\x20that\x20point\x20in\ - \x20time.\n\x20If\x20data\x20for\x20the\x20timestamp/date\x20range\x20se\ - lected\x20does\x20not\x20exist,\n\x20it\x20will\x20simply\x20return\x20a\ - \x20valid\x20response\x20with\x20no\x20rows.\n\n\r\n\x05\x04-\x08\x01\ - \x01\x12\x04\x84\x0f\x08\x0c\n\xd0\x01\n\x04\x04-\x02\x06\x12\x04\x88\ - \x0f\x04M\x1a\xc1\x01\x20Optional.\x20[start_time]\x20is\x20required.\ - \x20[start_time]\x20must\x20be\x20less\x20than\n\x20[end_time]\x20Defaul\ - ts\x20[end_time]\x20to\x20now\x20if\x20[start_time]\x20is\x20set\x20and\ - \n\x20[end_time]\x20isn't.\x20Maximum\x20permitted\x20time\x20range\x20i\ - s\x207\x20days.\n\n\r\n\x05\x04-\x02\x06\x06\x12\x04\x88\x0f\x04\x0e\n\r\ - \n\x05\x04-\x02\x06\x01\x12\x04\x88\x0f\x0f\x1f\n\r\n\x05\x04-\x02\x06\ - \x03\x12\x04\x88\x0f\"#\n\r\n\x05\x04-\x02\x06\x08\x12\x04\x88\x0f$L\n\ - \x10\n\x08\x04-\x02\x06\x08\x9c\x08\0\x12\x04\x88\x0f%K\nb\n\x04\x04-\ - \x02\x07\x12\x06\x8c\x0f\x04\x8d\x0f1\x1aR\x20Optional.\x20Queries\x20cl\ - oud\x20assets\x20as\x20they\x20appeared\x20at\x20the\x20specified\x20poi\ - nt\x20in\n\x20time.\n\n\r\n\x05\x04-\x02\x07\x06\x12\x04\x8c\x0f\x04\x1d\ - \n\r\n\x05\x04-\x02\x07\x01\x12\x04\x8c\x0f\x1e'\n\r\n\x05\x04-\x02\x07\ - \x03\x12\x04\x8c\x0f*+\n\r\n\x05\x04-\x02\x07\x08\x12\x04\x8d\x0f\x080\n\ - \x10\n\x08\x04-\x02\x07\x08\x9c\x08\0\x12\x04\x8d\x0f\t/\n\x9d\x03\n\x04\ - \x04-\x02\x08\x12\x06\x99\x0f\x02\x9a\x0f/\x1a\x8c\x03\x20Optional.\x20D\ - estination\x20where\x20the\x20query\x20results\x20will\x20be\x20saved.\n\ - \n\x20When\x20this\x20field\x20is\x20specified,\x20the\x20query\x20resul\ - ts\x20won't\x20be\x20saved\x20in\x20the\n\x20[QueryAssetsResponse.query_\ - result].\x20Instead\n\x20[QueryAssetsResponse.output_config]\x20will\x20\ - be\x20set.\n\n\x20Meanwhile,\x20[QueryAssetsResponse.job_reference]\x20w\ - ill\x20be\x20set\x20and\x20can\x20be\x20used\n\x20to\x20check\x20the\x20\ - status\x20of\x20the\x20query\x20job\x20when\x20passed\x20to\x20a\x20foll\ - owing\n\x20[QueryAssets]\x20API\x20call.\n\n\r\n\x05\x04-\x02\x08\x06\ - \x12\x04\x99\x0f\x02\x19\n\r\n\x05\x04-\x02\x08\x01\x12\x04\x99\x0f\x1a'\ - \n\r\n\x05\x04-\x02\x08\x03\x12\x04\x99\x0f*+\n\r\n\x05\x04-\x02\x08\x08\ - \x12\x04\x9a\x0f\x06.\n\x10\n\x08\x04-\x02\x08\x08\x9c\x08\0\x12\x04\x9a\ - \x0f\x07-\n%\n\x02\x04.\x12\x06\x9e\x0f\0\xb5\x0f\x01\x1a\x17\x20QueryAs\ - sets\x20response.\n\n\x0b\n\x03\x04.\x01\x12\x04\x9e\x0f\x08\x1b\n)\n\ - \x04\x04.\x02\0\x12\x04\xa0\x0f\x02\x1b\x1a\x1b\x20Reference\x20to\x20a\ - \x20query\x20job.\n\n\r\n\x05\x04.\x02\0\x05\x12\x04\xa0\x0f\x02\x08\n\r\ - \n\x05\x04.\x02\0\x01\x12\x04\xa0\x0f\t\x16\n\r\n\x05\x04.\x02\0\x03\x12\ - \x04\xa0\x0f\x19\x1a\n\xa6\x02\n\x04\x04.\x02\x01\x12\x04\xa8\x0f\x02\ - \x10\x1a\x97\x02\x20The\x20query\x20response,\x20which\x20can\x20be\x20e\ - ither\x20an\x20`error`\x20or\x20a\x20valid\x20`response`.\n\n\x20If\x20`\ - done`\x20==\x20`false`\x20and\x20the\x20query\x20result\x20is\x20being\ - \x20saved\x20in\x20a\x20output,\x20the\n\x20output_config\x20field\x20wi\ - ll\x20be\x20set.\n\x20If\x20`done`\x20==\x20`true`,\x20exactly\x20one\ - \x20of\n\x20`error`,\x20`query_result`\x20or\x20`output_config`\x20will\ - \x20be\x20set.\n\n\r\n\x05\x04.\x02\x01\x05\x12\x04\xa8\x0f\x02\x06\n\r\ - \n\x05\x04.\x02\x01\x01\x12\x04\xa8\x0f\x07\x0b\n\r\n\x05\x04.\x02\x01\ - \x03\x12\x04\xa8\x0f\x0e\x0f\n\x0e\n\x04\x04.\x08\0\x12\x06\xaa\x0f\x02\ - \xb4\x0f\x03\n\r\n\x05\x04.\x08\0\x01\x12\x04\xaa\x0f\x08\x10\n\x1d\n\ - \x04\x04.\x02\x02\x12\x04\xac\x0f\x04\x20\x1a\x0f\x20Error\x20status.\n\ - \n\r\n\x05\x04.\x02\x02\x06\x12\x04\xac\x0f\x04\x15\n\r\n\x05\x04.\x02\ - \x02\x01\x12\x04\xac\x0f\x16\x1b\n\r\n\x05\x04.\x02\x02\x03\x12\x04\xac\ - \x0f\x1e\x1f\n$\n\x04\x04.\x02\x03\x12\x04\xaf\x0f\x04!\x1a\x16\x20Resul\ - t\x20of\x20the\x20query.\n\n\r\n\x05\x04.\x02\x03\x06\x12\x04\xaf\x0f\ - \x04\x0f\n\r\n\x05\x04.\x02\x03\x01\x12\x04\xaf\x0f\x10\x1c\n\r\n\x05\ - \x04.\x02\x03\x03\x12\x04\xaf\x0f\x1f\x20\n\xa1\x01\n\x04\x04.\x02\x04\ - \x12\x04\xb3\x0f\x04.\x1a\x92\x01\x20Output\x20configuration\x20which\ - \x20indicates\x20instead\x20of\x20being\x20returned\x20in\x20API\n\x20re\ - sponse\x20on\x20the\x20fly,\x20the\x20query\x20result\x20will\x20be\x20s\ - aved\x20in\x20a\x20specific\x20output.\n\n\r\n\x05\x04.\x02\x04\x06\x12\ - \x04\xb3\x0f\x04\x1b\n\r\n\x05\x04.\x02\x04\x01\x12\x04\xb3\x0f\x1c)\n\r\ - \n\x05\x04.\x02\x04\x03\x12\x04\xb3\x0f,-\n\xeb\x01\n\x02\x04/\x12\x06\ - \xbc\x0f\0\xc8\x0f\x01\x1a\xdc\x01\x20Execution\x20results\x20of\x20the\ - \x20query.\n\n\x20The\x20result\x20is\x20formatted\x20as\x20rows\x20repr\ - esented\x20by\x20BigQuery\x20compatible\x20[schema].\n\x20When\x20pagina\ - tion\x20is\x20necessary,\x20it\x20will\x20contains\x20the\x20page\x20tok\ - en\x20to\x20retrieve\n\x20the\x20results\x20of\x20following\x20pages.\n\ - \n\x0b\n\x03\x04/\x01\x12\x04\xbc\x0f\x08\x13\nG\n\x04\x04/\x02\0\x12\ - \x04\xbe\x0f\x02+\x1a9\x20Each\x20row\x20hold\x20a\x20query\x20result\ - \x20in\x20the\x20format\x20of\x20`Struct`.\n\n\r\n\x05\x04/\x02\0\x04\ - \x12\x04\xbe\x0f\x02\n\n\r\n\x05\x04/\x02\0\x06\x12\x04\xbe\x0f\x0b!\n\r\ - \n\x05\x04/\x02\0\x01\x12\x04\xbe\x0f\"&\n\r\n\x05\x04/\x02\0\x03\x12\ - \x04\xbe\x0f)*\n3\n\x04\x04/\x02\x01\x12\x04\xc1\x0f\x02\x19\x1a%\x20Des\ - cribes\x20the\x20format\x20of\x20the\x20[rows].\n\n\r\n\x05\x04/\x02\x01\ - \x06\x12\x04\xc1\x0f\x02\r\n\r\n\x05\x04/\x02\x01\x01\x12\x04\xc1\x0f\ - \x0e\x14\n\r\n\x05\x04/\x02\x01\x03\x12\x04\xc1\x0f\x17\x18\n?\n\x04\x04\ - /\x02\x02\x12\x04\xc4\x0f\x02\x1d\x1a1\x20Token\x20to\x20retrieve\x20the\ - \x20next\x20page\x20of\x20the\x20results.\n\n\r\n\x05\x04/\x02\x02\x05\ - \x12\x04\xc4\x0f\x02\x08\n\r\n\x05\x04/\x02\x02\x01\x12\x04\xc4\x0f\t\ - \x18\n\r\n\x05\x04/\x02\x02\x03\x12\x04\xc4\x0f\x1b\x1c\n6\n\x04\x04/\ - \x02\x03\x12\x04\xc7\x0f\x02\x17\x1a(\x20Total\x20rows\x20of\x20the\x20w\ - hole\x20query\x20results.\n\n\r\n\x05\x04/\x02\x03\x05\x12\x04\xc7\x0f\ - \x02\x07\n\r\n\x05\x04/\x02\x03\x01\x12\x04\xc7\x0f\x08\x12\n\r\n\x05\ - \x04/\x02\x03\x03\x12\x04\xc7\x0f\x15\x16\n1\n\x02\x040\x12\x06\xcb\x0f\ - \0\xce\x0f\x01\x1a#\x20BigQuery\x20Compatible\x20table\x20schema.\n\n\ - \x0b\n\x03\x040\x01\x12\x04\xcb\x0f\x08\x13\n0\n\x04\x040\x02\0\x12\x04\ - \xcd\x0f\x02'\x1a\"\x20Describes\x20the\x20fields\x20in\x20a\x20table.\n\ - \n\r\n\x05\x040\x02\0\x04\x12\x04\xcd\x0f\x02\n\n\r\n\x05\x040\x02\0\x06\ - \x12\x04\xcd\x0f\x0b\x1b\n\r\n\x05\x040\x02\0\x01\x12\x04\xcd\x0f\x1c\"\ - \n\r\n\x05\x040\x02\0\x03\x12\x04\xcd\x0f%&\n'\n\x02\x041\x12\x06\xd1\ - \x0f\0\xef\x0f\x01\x1a\x19\x20A\x20field\x20in\x20TableSchema.\n\n\x0b\n\ - \x03\x041\x01\x12\x04\xd1\x0f\x08\x18\n\xc6\x01\n\x04\x041\x02\0\x12\x04\ - \xd5\x0f\x02\x13\x1a\xb7\x01\x20The\x20field\x20name.\x20The\x20name\x20\ - must\x20contain\x20only\x20letters\x20(a-z,\x20A-Z),\n\x20numbers\x20(0-\ - 9),\x20or\x20underscores\x20(_),\x20and\x20must\x20start\x20with\x20a\ - \x20letter\x20or\n\x20underscore.\x20The\x20maximum\x20length\x20is\x201\ - 28\x20characters.\n\n\r\n\x05\x041\x02\0\x05\x12\x04\xd5\x0f\x02\x08\n\r\ - \n\x05\x041\x02\0\x01\x12\x04\xd5\x0f\t\x0e\n\r\n\x05\x041\x02\0\x03\x12\ - \x04\xd5\x0f\x11\x12\n\x8e\x02\n\x04\x041\x02\x01\x12\x04\xe6\x0f\x02\ - \x12\x1a\xff\x01\x20The\x20field\x20data\x20type.\x20Possible\x20values\ - \x20include\n\x20*\x20STRING\n\x20*\x20BYTES\n\x20*\x20INTEGER\n\x20*\ - \x20FLOAT\n\x20*\x20BOOLEAN\n\x20*\x20TIMESTAMP\n\x20*\x20DATE\n\x20*\ - \x20TIME\n\x20*\x20DATETIME\n\x20*\x20GEOGRAPHY,\n\x20*\x20NUMERIC,\n\ - \x20*\x20BIGNUMERIC,\n\x20*\x20RECORD\n\x20(where\x20RECORD\x20indicates\ - \x20that\x20the\x20field\x20contains\x20a\x20nested\x20schema).\n\n\r\n\ - \x05\x041\x02\x01\x05\x12\x04\xe6\x0f\x02\x08\n\r\n\x05\x041\x02\x01\x01\ - \x12\x04\xe6\x0f\t\r\n\r\n\x05\x041\x02\x01\x03\x12\x04\xe6\x0f\x10\x11\ - \nx\n\x04\x041\x02\x02\x12\x04\xea\x0f\x02\x12\x1aj\x20The\x20field\x20m\ - ode.\x20Possible\x20values\x20include\x20NULLABLE,\x20REQUIRED\x20and\n\ - \x20REPEATED.\x20The\x20default\x20value\x20is\x20NULLABLE.\n\n\r\n\x05\ - \x041\x02\x02\x05\x12\x04\xea\x0f\x02\x08\n\r\n\x05\x041\x02\x02\x01\x12\ - \x04\xea\x0f\t\r\n\r\n\x05\x041\x02\x02\x03\x12\x04\xea\x0f\x10\x11\nZ\n\ - \x04\x041\x02\x03\x12\x04\xee\x0f\x02'\x1aL\x20Describes\x20the\x20neste\ - d\x20schema\x20fields\x20if\x20the\x20type\x20property\x20is\x20set\n\ - \x20to\x20RECORD.\n\n\r\n\x05\x041\x02\x03\x04\x12\x04\xee\x0f\x02\n\n\r\ - \n\x05\x041\x02\x03\x06\x12\x04\xee\x0f\x0b\x1b\n\r\n\x05\x041\x02\x03\ - \x01\x12\x04\xee\x0f\x1c\"\n\r\n\x05\x041\x02\x03\x03\x12\x04\xee\x0f%&\ - \n\x95\x01\n\x02\x042\x12\x06\xf3\x0f\0\x8d\x10\x01\x1a\x86\x01\x20A\x20\ - request\x20message\x20for\n\x20[AssetService.BatchGetEffectiveIamPolicie\ - s][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].\n\n\ - \x0b\n\x03\x042\x01\x12\x04\xf3\x0f\x08+\n\xfd\x04\n\x04\x042\x02\0\x12\ - \x06\xff\x0f\x02\x82\x10\x04\x1a\xec\x04\x20Required.\x20Only\x20IAM\x20\ - policies\x20on\x20or\x20below\x20the\x20scope\x20will\x20be\x20returned.\ - \n\n\x20This\x20can\x20only\x20be\x20an\x20organization\x20number\x20(su\ - ch\x20as\x20\"organizations/123\"),\x20a\n\x20folder\x20number\x20(such\ - \x20as\x20\"folders/123\"),\x20a\x20project\x20ID\x20(such\x20as\n\x20\"\ - projects/my-project-id\"),\x20or\x20a\x20project\x20number\x20(such\x20a\ - s\x20\"projects/12345\").\n\n\x20To\x20know\x20how\x20to\x20get\x20organ\ - ization\x20id,\x20visit\x20[here\n\x20](https://cloud.google.com/resourc\ - e-manager/docs/creating-managing-organization#retrieving_your_organizati\ - on_id).\n\n\x20To\x20know\x20how\x20to\x20get\x20folder\x20or\x20project\ - \x20id,\x20visit\x20[here\n\x20](https://cloud.google.com/resource-manag\ - er/docs/creating-managing-folders#viewing_or_listing_folders_and_project\ - s).\n\n\r\n\x05\x042\x02\0\x05\x12\x04\xff\x0f\x02\x08\n\r\n\x05\x042\ - \x02\0\x01\x12\x04\xff\x0f\t\x0e\n\r\n\x05\x042\x02\0\x03\x12\x04\xff\ - \x0f\x11\x12\n\x0f\n\x05\x042\x02\0\x08\x12\x06\xff\x0f\x13\x82\x10\x03\ - \n\x10\n\x08\x042\x02\0\x08\x9c\x08\0\x12\x04\x80\x10\x04*\n\x0f\n\x07\ - \x042\x02\0\x08\x9f\x08\x12\x04\x81\x10\x049\n\xd6\x02\n\x04\x042\x02\ - \x01\x12\x06\x89\x10\x02\x8c\x10\x04\x1a\xc5\x02\x20Required.\x20The\x20\ - names\x20refer\x20to\x20the\x20[full_resource_names]\n\x20(https://cloud\ - .google.com/asset-inventory/docs/resource-name-format)\n\x20of\x20[searc\ - hable\x20asset\n\x20types](https://cloud.google.com/asset-inventory/docs\ - /supported-asset-types#searchable_asset_types).\n\x20A\x20maximum\x20of\ - \x2020\x20resources'\x20effective\x20policies\x20can\x20be\x20retrieved\ - \x20in\x20a\x20batch.\n\n\r\n\x05\x042\x02\x01\x04\x12\x04\x89\x10\x02\n\ - \n\r\n\x05\x042\x02\x01\x05\x12\x04\x89\x10\x0b\x11\n\r\n\x05\x042\x02\ - \x01\x01\x12\x04\x89\x10\x12\x17\n\r\n\x05\x042\x02\x01\x03\x12\x04\x89\ - \x10\x1a\x1b\n\x0f\n\x05\x042\x02\x01\x08\x12\x06\x89\x10\x1c\x8c\x10\ - \x03\n\x10\n\x08\x042\x02\x01\x08\x9c\x08\0\x12\x04\x8a\x10\x04*\n\x0f\n\ - \x07\x042\x02\x01\x08\x9f\x08\x12\x04\x8b\x10\x043\n\x96\x01\n\x02\x043\ - \x12\x06\x91\x10\0\xc7\x10\x01\x1a\x87\x01\x20A\x20response\x20message\ - \x20for\n\x20[AssetService.BatchGetEffectiveIamPolicies][google.cloud.as\ - set.v1.AssetService.BatchGetEffectiveIamPolicies].\n\n\x0b\n\x03\x043\ - \x01\x12\x04\x91\x10\x08,\n=\n\x04\x043\x03\0\x12\x06\x93\x10\x02\xbe\ - \x10\x03\x1a-\x20The\x20effective\x20IAM\x20policies\x20on\x20one\x20res\ - ource.\n\n\r\n\x05\x043\x03\0\x01\x12\x04\x93\x10\n\x1c\n=\n\x06\x043\ - \x03\0\x03\0\x12\x06\x95\x10\x04\x9e\x10\x05\x1a+\x20The\x20IAM\x20polic\ - y\x20and\x20its\x20attached\x20resource.\n\n\x0f\n\x07\x043\x03\0\x03\0\ - \x01\x12\x04\x95\x10\x0c\x16\n\xb4\x01\n\x08\x043\x03\0\x03\0\x02\0\x12\ - \x04\x99\x10\x06#\x1a\xa1\x01\x20The\x20full\x20resource\x20name\x20the\ - \n\x20[policy][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesRespons\ - e.EffectiveIamPolicy.PolicyInfo.policy]\n\x20is\x20directly\x20attached\ - \x20to.\n\n\x11\n\t\x043\x03\0\x03\0\x02\0\x05\x12\x04\x99\x10\x06\x0c\n\ - \x11\n\t\x043\x03\0\x03\0\x02\0\x01\x12\x04\x99\x10\r\x1e\n\x11\n\t\x043\ - \x03\0\x03\0\x02\0\x03\x12\x04\x99\x10!\"\n\xc5\x01\n\x08\x043\x03\0\x03\ - \0\x02\x01\x12\x04\x9d\x10\x06&\x1a\xb2\x01\x20The\x20IAM\x20policy\x20t\ - hat's\x20directly\x20attached\x20to\x20the\n\x20[attached_resource][goog\ - le.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolic\ - y.PolicyInfo.attached_resource].\n\n\x11\n\t\x043\x03\0\x03\0\x02\x01\ - \x06\x12\x04\x9d\x10\x06\x1a\n\x11\n\t\x043\x03\0\x03\0\x02\x01\x01\x12\ - \x04\x9d\x10\x1b!\n\x11\n\t\x043\x03\0\x03\0\x02\x01\x03\x12\x04\x9d\x10\ - $%\n\x99\x03\n\x06\x043\x03\0\x02\0\x12\x04\xa7\x10\x04\"\x1a\x88\x03\ - \x20The\x20[full_resource_name]\n\x20(https://cloud.google.com/asset-inv\ - entory/docs/resource-name-format)\n\x20for\x20which\x20the\n\x20[policie\ - s][google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveI\ - amPolicy.policies]\n\x20are\x20computed.\x20This\x20is\x20one\x20of\x20t\ - he\n\x20[BatchGetEffectiveIamPoliciesRequest.names][google.cloud.asset.v\ - 1.BatchGetEffectiveIamPoliciesRequest.names]\n\x20the\x20caller\x20provi\ - des\x20in\x20the\x20request.\n\n\x0f\n\x07\x043\x03\0\x02\0\x05\x12\x04\ - \xa7\x10\x04\n\n\x0f\n\x07\x043\x03\0\x02\0\x01\x12\x04\xa7\x10\x0b\x1d\ - \n\x0f\n\x07\x043\x03\0\x02\0\x03\x12\x04\xa7\x10\x20!\n\x95\x0b\n\x06\ - \x043\x03\0\x02\x01\x12\x04\xbd\x10\x04%\x1a\x84\x0b\x20The\x20effective\ - \x20policies\x20for\x20the\n\x20[full_resource_name][google.cloud.asset.\ - v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_resource\ - _name].\n\n\x20These\x20policies\x20include\x20the\x20policy\x20set\x20o\ - n\x20the\n\x20[full_resource_name][google.cloud.asset.v1.BatchGetEffecti\ - veIamPoliciesResponse.EffectiveIamPolicy.full_resource_name]\n\x20and\ - \x20those\x20set\x20on\x20its\x20parents\x20and\x20ancestors\x20up\x20to\ - \x20the\n\x20[BatchGetEffectiveIamPoliciesRequest.scope][google.cloud.as\ - set.v1.BatchGetEffectiveIamPoliciesRequest.scope].\n\x20Note\x20that\x20\ - these\x20policies\x20are\x20not\x20filtered\x20according\x20to\x20the\ - \x20resource\x20type\n\x20of\x20the\n\x20[full_resource_name][google.clo\ - ud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full\ - _resource_name].\n\n\x20These\x20policies\x20are\x20hierarchically\x20or\ - dered\x20by\n\x20[PolicyInfo.attached_resource][google.cloud.asset.v1.Ba\ - tchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attache\ - d_resource]\n\x20starting\x20from\n\x20[full_resource_name][google.cloud\ - .asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.full_r\ - esource_name]\n\x20itself\x20to\x20its\x20parents\x20and\x20ancestors,\ - \x20such\x20that\x20policies[i]'s\n\x20[PolicyInfo.attached_resource][go\ - ogle.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse.EffectiveIamPol\ - icy.PolicyInfo.attached_resource]\n\x20is\x20the\x20child\x20of\x20polic\ - ies[i+1]'s\n\x20[PolicyInfo.attached_resource][google.cloud.asset.v1.Bat\ - chGetEffectiveIamPoliciesResponse.EffectiveIamPolicy.PolicyInfo.attached\ - _resource],\n\x20if\x20policies[i+1]\x20exists.\n\n\x0f\n\x07\x043\x03\0\ - \x02\x01\x04\x12\x04\xbd\x10\x04\x0c\n\x0f\n\x07\x043\x03\0\x02\x01\x06\ - \x12\x04\xbd\x10\r\x17\n\x0f\n\x07\x043\x03\0\x02\x01\x01\x12\x04\xbd\ - \x10\x18\x20\n\x0f\n\x07\x043\x03\0\x02\x01\x03\x12\x04\xbd\x10#$\n\xd0\ - \x03\n\x04\x043\x02\0\x12\x04\xc6\x10\x021\x1a\xc1\x03\x20The\x20effecti\ - ve\x20policies\x20for\x20a\x20batch\x20of\x20resources.\x20Note\x20that\ - \x20the\x20results\n\x20order\x20is\x20the\x20same\x20as\x20the\x20order\ - \x20of\n\x20[BatchGetEffectiveIamPoliciesRequest.names][google.cloud.ass\ - et.v1.BatchGetEffectiveIamPoliciesRequest.names].\n\x20When\x20a\x20reso\ - urce\x20does\x20not\x20have\x20any\x20effective\x20IAM\x20policies,\x20i\ - ts\x20corresponding\n\x20policy_result\x20will\x20contain\x20empty\n\x20\ - [EffectiveIamPolicy.policies][google.cloud.asset.v1.BatchGetEffectiveIam\ - PoliciesResponse.EffectiveIamPolicy.policies].\n\n\r\n\x05\x043\x02\0\ - \x04\x12\x04\xc6\x10\x02\n\n\r\n\x05\x043\x02\0\x06\x12\x04\xc6\x10\x0b\ - \x1d\n\r\n\x05\x043\x02\0\x01\x12\x04\xc6\x10\x1e,\n\r\n\x05\x043\x02\0\ - \x03\x12\x04\xc6\x10/0\n\xfc\x01\n\x02\x044\x12\x06\xcd\x10\0\x95\x11\ - \x01\x1a\xed\x01\x20This\x20organization\x20policy\x20message\x20is\x20a\ - \x20modified\x20version\x20of\x20the\x20one\x20defined\x20in\n\x20the\ - \x20Organization\x20Policy\x20system.\x20This\x20message\x20contains\x20\ - several\x20fields\x20defined\n\x20in\x20the\x20original\x20organization\ - \x20policy\x20with\x20some\x20new\x20fields\x20for\x20analysis\n\x20purp\ - ose.\n\n\x0b\n\x03\x044\x01\x12\x04\xcd\x10\x08\x19\n\x96\x02\n\x04\x044\ - \x03\0\x12\x06\xd2\x10\x02\xf1\x10\x03\x1a\x85\x02\x20This\x20rule\x20me\ - ssage\x20is\x20a\x20customized\x20version\x20of\x20the\x20one\x20defined\ - \x20in\x20the\n\x20Organization\x20Policy\x20system.\x20In\x20addition\ - \x20to\x20the\x20fields\x20defined\x20in\x20the\n\x20original\x20organiz\ - ation\x20policy,\x20it\x20contains\x20additional\x20field(s)\x20under\n\ - \x20specific\x20circumstances\x20to\x20support\x20analysis\x20results.\n\ - \n\r\n\x05\x044\x03\0\x01\x12\x04\xd2\x10\n\x0e\n?\n\x06\x044\x03\0\x03\ - \0\x12\x06\xd4\x10\x04\xda\x10\x05\x1a-\x20The\x20string\x20values\x20fo\ - r\x20the\x20list\x20constraints.\n\n\x0f\n\x07\x044\x03\0\x03\0\x01\x12\ - \x04\xd4\x10\x0c\x18\n<\n\x08\x044\x03\0\x03\0\x02\0\x12\x04\xd6\x10\x06\ - )\x1a*\x20List\x20of\x20values\x20allowed\x20at\x20this\x20resource.\n\n\ - \x11\n\t\x044\x03\0\x03\0\x02\0\x04\x12\x04\xd6\x10\x06\x0e\n\x11\n\t\ - \x044\x03\0\x03\0\x02\0\x05\x12\x04\xd6\x10\x0f\x15\n\x11\n\t\x044\x03\0\ - \x03\0\x02\0\x01\x12\x04\xd6\x10\x16$\n\x11\n\t\x044\x03\0\x03\0\x02\0\ - \x03\x12\x04\xd6\x10'(\n;\n\x08\x044\x03\0\x03\0\x02\x01\x12\x04\xd9\x10\ - \x06(\x1a)\x20List\x20of\x20values\x20denied\x20at\x20this\x20resource.\ - \n\n\x11\n\t\x044\x03\0\x03\0\x02\x01\x04\x12\x04\xd9\x10\x06\x0e\n\x11\ - \n\t\x044\x03\0\x03\0\x02\x01\x05\x12\x04\xd9\x10\x0f\x15\n\x11\n\t\x044\ - \x03\0\x03\0\x02\x01\x01\x12\x04\xd9\x10\x16#\n\x11\n\t\x044\x03\0\x03\0\ - \x02\x01\x03\x12\x04\xd9\x10&'\n\x10\n\x06\x044\x03\0\x08\0\x12\x06\xdc\ - \x10\x04\xed\x10\x05\n\x0f\n\x07\x044\x03\0\x08\0\x01\x12\x04\xdc\x10\n\ - \x0e\n~\n\x06\x044\x03\0\x02\0\x12\x04\xdf\x10\x06\x1e\x1an\x20List\x20o\ - f\x20values\x20to\x20be\x20used\x20for\x20this\x20PolicyRule.\x20This\ - \x20field\x20can\x20be\x20set\n\x20only\x20in\x20Policies\x20for\x20list\ - \x20constraints.\n\n\x0f\n\x07\x044\x03\0\x02\0\x06\x12\x04\xdf\x10\x06\ - \x12\n\x0f\n\x07\x044\x03\0\x02\0\x01\x12\x04\xdf\x10\x13\x19\n\x0f\n\ - \x07\x044\x03\0\x02\0\x03\x12\x04\xdf\x10\x1c\x1d\n\x87\x01\n\x06\x044\ - \x03\0\x02\x01\x12\x04\xe3\x10\x06\x19\x1aw\x20Setting\x20this\x20to\x20\ - true\x20means\x20that\x20all\x20values\x20are\x20allowed.\x20This\x20fie\ - ld\x20can\n\x20be\x20set\x20only\x20in\x20Policies\x20for\x20list\x20con\ - straints.\n\n\x0f\n\x07\x044\x03\0\x02\x01\x05\x12\x04\xe3\x10\x06\n\n\ - \x0f\n\x07\x044\x03\0\x02\x01\x01\x12\x04\xe3\x10\x0b\x14\n\x0f\n\x07\ - \x044\x03\0\x02\x01\x03\x12\x04\xe3\x10\x17\x18\n\x86\x01\n\x06\x044\x03\ - \0\x02\x02\x12\x04\xe7\x10\x06\x18\x1av\x20Setting\x20this\x20to\x20true\ - \x20means\x20that\x20all\x20values\x20are\x20denied.\x20This\x20field\ - \x20can\n\x20be\x20set\x20only\x20in\x20Policies\x20for\x20list\x20const\ - raints.\n\n\x0f\n\x07\x044\x03\0\x02\x02\x05\x12\x04\xe7\x10\x06\n\n\x0f\ - \n\x07\x044\x03\0\x02\x02\x01\x12\x04\xe7\x10\x0b\x13\n\x0f\n\x07\x044\ - \x03\0\x02\x02\x03\x12\x04\xe7\x10\x16\x17\n\xb0\x01\n\x06\x044\x03\0\ - \x02\x03\x12\x04\xec\x10\x06\x17\x1a\x9f\x01\x20If\x20`true`,\x20then\ - \x20the\x20`Policy`\x20is\x20enforced.\x20If\x20`false`,\x20then\x20any\ - \n\x20configuration\x20is\x20acceptable.\n\x20This\x20field\x20can\x20be\ - \x20set\x20only\x20in\x20Policies\x20for\x20boolean\x20constraints.\n\n\ - \x0f\n\x07\x044\x03\0\x02\x03\x05\x12\x04\xec\x10\x06\n\n\x0f\n\x07\x044\ - \x03\0\x02\x03\x01\x12\x04\xec\x10\x0b\x12\n\x0f\n\x07\x044\x03\0\x02\ - \x03\x03\x12\x04\xec\x10\x15\x16\n9\n\x06\x044\x03\0\x02\x04\x12\x04\xf0\ - \x10\x04#\x1a)\x20The\x20evaluating\x20condition\x20for\x20this\x20rule.\ - \n\n\x0f\n\x07\x044\x03\0\x02\x04\x06\x12\x04\xf0\x10\x04\x14\n\x0f\n\ - \x07\x044\x03\0\x02\x04\x01\x12\x04\xf0\x10\x15\x1e\n\x0f\n\x07\x044\x03\ - \0\x02\x04\x03\x12\x04\xf0\x10!\"\n\xaf\x02\n\x04\x044\x02\0\x12\x04\xfa\ - \x10\x02\x1f\x1a\xa0\x02\x20The\x20[full\x20resource\x20name]\n\x20(http\ - s://cloud.google.com/asset-inventory/docs/resource-name-format)\x20of\n\ - \x20an\x20organization/folder/project\x20resource\x20where\x20this\x20or\ - ganization\x20policy\x20is\n\x20set.\n\n\x20Notice\x20that\x20some\x20ty\ - pe\x20of\x20constraints\x20are\x20defined\x20with\x20default\x20policy.\ - \x20This\n\x20field\x20will\x20be\x20empty\x20for\x20them.\n\n\r\n\x05\ - \x044\x02\0\x05\x12\x04\xfa\x10\x02\x08\n\r\n\x05\x044\x02\0\x01\x12\x04\ - \xfa\x10\t\x1a\n\r\n\x05\x044\x02\0\x03\x12\x04\xfa\x10\x1d\x1e\n\xeb\ - \x02\n\x04\x044\x02\x01\x12\x04\x84\x11\x02\x1e\x1a\xdc\x02\x20The\x20[f\ - ull\x20resource\x20name]\n\x20(https://cloud.google.com/asset-inventory/\ - docs/resource-name-format)\x20of\n\x20an\x20organization/folder/project\ - \x20resource\x20where\x20this\x20organization\x20policy\n\x20applies\x20\ - to.\n\n\x20For\x20any\x20user\x20defined\x20org\x20policies,\x20this\x20\ - field\x20has\x20the\x20same\x20value\x20as\n\x20the\x20[attached_resourc\ - e]\x20field.\x20Only\x20for\x20default\x20policy,\x20this\x20field\x20ha\ - s\n\x20the\x20different\x20value.\n\n\r\n\x05\x044\x02\x01\x05\x12\x04\ - \x84\x11\x02\x08\n\r\n\x05\x044\x02\x01\x01\x12\x04\x84\x11\t\x19\n\r\n\ - \x05\x044\x02\x01\x03\x12\x04\x84\x11\x1c\x1d\n;\n\x04\x044\x02\x02\x12\ - \x04\x87\x11\x02\x1a\x1a-\x20List\x20of\x20rules\x20for\x20this\x20organ\ - ization\x20policy.\n\n\r\n\x05\x044\x02\x02\x04\x12\x04\x87\x11\x02\n\n\ - \r\n\x05\x044\x02\x02\x06\x12\x04\x87\x11\x0b\x0f\n\r\n\x05\x044\x02\x02\ - \x01\x12\x04\x87\x11\x10\x15\n\r\n\x05\x044\x02\x02\x03\x12\x04\x87\x11\ - \x18\x19\n\x8e\x02\n\x04\x044\x02\x03\x12\x04\x8d\x11\x02\x1f\x1a\xff\ - \x01\x20If\x20`inherit_from_parent`\x20is\x20true,\x20Rules\x20set\x20hi\ - gher\x20up\x20in\x20the\n\x20hierarchy\x20(up\x20to\x20the\x20closest\ - \x20root)\x20are\x20inherited\x20and\x20present\x20in\x20the\n\x20effect\ - ive\x20policy.\x20If\x20it\x20is\x20false,\x20then\x20no\x20rules\x20are\ - \x20inherited,\x20and\x20this\n\x20policy\x20becomes\x20the\x20effective\ - \x20root\x20for\x20evaluation.\n\n\r\n\x05\x044\x02\x03\x05\x12\x04\x8d\ - \x11\x02\x06\n\r\n\x05\x044\x02\x03\x01\x12\x04\x8d\x11\x07\x1a\n\r\n\ - \x05\x044\x02\x03\x03\x12\x04\x8d\x11\x1d\x1e\n\x9b\x02\n\x04\x044\x02\ - \x04\x12\x04\x94\x11\x02\x11\x1a\x8c\x02\x20Ignores\x20policies\x20set\ - \x20above\x20this\x20resource\x20and\x20restores\x20the\x20default\x20be\ - havior\n\x20of\x20the\x20constraint\x20at\x20this\x20resource.\n\x20This\ - \x20field\x20can\x20be\x20set\x20in\x20policies\x20for\x20either\x20list\ - \x20or\x20boolean\n\x20constraints.\x20If\x20set,\x20`rules`\x20must\x20\ - be\x20empty\x20and\x20`inherit_from_parent`\n\x20must\x20be\x20set\x20to\ - \x20false.\n\n\r\n\x05\x044\x02\x04\x05\x12\x04\x94\x11\x02\x06\n\r\n\ - \x05\x044\x02\x04\x01\x12\x04\x94\x11\x07\x0c\n\r\n\x05\x044\x02\x04\x03\ - \x12\x04\x94\x11\x0f\x10\n>\n\x02\x045\x12\x06\x98\x11\0\xa3\x12\x01\x1a\ - 0\x20The\x20organization\x20policy\x20constraint\x20definition.\n\n\x0b\ - \n\x03\x045\x01\x12\x04\x98\x11\x08#\n1\n\x04\x045\x03\0\x12\x06\x9a\x11\ - \x02\xdb\x11\x03\x1a!\x20The\x20definition\x20of\x20a\x20constraint.\n\n\ - \r\n\x05\x045\x03\0\x01\x12\x04\x9a\x11\n\x14\n\x9c\x01\n\x06\x045\x03\0\ - \x04\0\x12\x06\x9d\x11\x04\xa9\x11\x05\x1a\x89\x01\x20Specifies\x20the\ - \x20default\x20behavior\x20in\x20the\x20absence\x20of\x20any\x20`Policy`\ - \x20for\x20the\n\x20`Constraint`.\x20This\x20must\x20not\x20be\x20`CONST\ - RAINT_DEFAULT_UNSPECIFIED`.\n\n\x0f\n\x07\x045\x03\0\x04\0\x01\x12\x04\ - \x9d\x11\t\x1a\n`\n\x08\x045\x03\0\x04\0\x02\0\x12\x04\xa0\x11\x06)\x1aN\ - \x20This\x20is\x20only\x20used\x20for\x20distinguishing\x20unset\x20valu\ - es\x20and\x20should\x20never\x20be\n\x20used.\n\n\x11\n\t\x045\x03\0\x04\ - \0\x02\0\x01\x12\x04\xa0\x11\x06$\n\x11\n\t\x045\x03\0\x04\0\x02\0\x02\ - \x12\x04\xa0\x11'(\n\x89\x01\n\x08\x045\x03\0\x04\0\x02\x01\x12\x04\xa4\ - \x11\x06\x10\x1aw\x20Indicate\x20that\x20all\x20values\x20are\x20allowed\ - \x20for\x20list\x20constraints.\n\x20Indicate\x20that\x20enforcement\x20\ - is\x20off\x20for\x20boolean\x20constraints.\n\n\x11\n\t\x045\x03\0\x04\0\ - \x02\x01\x01\x12\x04\xa4\x11\x06\x0b\n\x11\n\t\x045\x03\0\x04\0\x02\x01\ - \x02\x12\x04\xa4\x11\x0e\x0f\n\x87\x01\n\x08\x045\x03\0\x04\0\x02\x02\ - \x12\x04\xa8\x11\x06\x0f\x1au\x20Indicate\x20that\x20all\x20values\x20ar\ - e\x20denied\x20for\x20list\x20constraints.\n\x20Indicate\x20that\x20enfo\ - rcement\x20is\x20on\x20for\x20boolean\x20constraints.\n\n\x11\n\t\x045\ - \x03\0\x04\0\x02\x02\x01\x12\x04\xa8\x11\x06\n\n\x11\n\t\x045\x03\0\x04\ - \0\x02\x02\x02\x12\x04\xa8\x11\r\x0e\n\xa6\x01\n\x06\x045\x03\0\x03\0\ - \x12\x06\xad\x11\x04\xb8\x11\x05\x1a\x93\x01\x20A\x20`Constraint`\x20tha\ - t\x20allows\x20or\x20disallows\x20a\x20list\x20of\x20string\x20values,\ - \x20which\n\x20are\x20configured\x20by\x20an\x20organization's\x20policy\ - \x20administrator\x20with\x20a\x20`Policy`.\n\n\x0f\n\x07\x045\x03\0\x03\ - \0\x01\x12\x04\xad\x11\x0c\x1a\n\xd2\x01\n\x08\x045\x03\0\x03\0\x02\0\ - \x12\x04\xb1\x11\x06\x1b\x1a\xbf\x01\x20Indicates\x20whether\x20values\ - \x20grouped\x20into\x20categories\x20can\x20be\x20used\x20in\n\x20`Polic\ - y.allowed_values`\x20and\x20`Policy.denied_values`.\x20For\x20example,\n\ - \x20`\"in:Python\"`\x20would\x20match\x20any\x20value\x20in\x20the\x20'P\ - ython'\x20group.\n\n\x11\n\t\x045\x03\0\x03\0\x02\0\x05\x12\x04\xb1\x11\ - \x06\n\n\x11\n\t\x045\x03\0\x03\0\x02\0\x01\x12\x04\xb1\x11\x0b\x16\n\ - \x11\n\t\x045\x03\0\x03\0\x02\0\x03\x12\x04\xb1\x11\x19\x1a\n\xfe\x01\n\ - \x08\x045\x03\0\x03\0\x02\x01\x12\x04\xb7\x11\x06\x1e\x1a\xeb\x01\x20Ind\ - icates\x20whether\x20subtrees\x20of\x20Cloud\x20Resource\x20Manager\x20r\ - esource\x20hierarchy\n\x20can\x20be\x20used\x20in\x20`Policy.allowed_val\ - ues`\x20and\x20`Policy.denied_values`.\x20For\n\x20example,\x20`\"under:\ - folders/123\"`\x20would\x20match\x20any\x20resource\x20under\x20the\n\ - \x20'folders/123'\x20folder.\n\n\x11\n\t\x045\x03\0\x03\0\x02\x01\x05\ - \x12\x04\xb7\x11\x06\n\n\x11\n\t\x045\x03\0\x03\0\x02\x01\x01\x12\x04\ - \xb7\x11\x0b\x19\n\x11\n\t\x045\x03\0\x03\0\x02\x01\x03\x12\x04\xb7\x11\ - \x1c\x1d\n\xee\x01\n\x06\x045\x03\0\x03\x01\x12\x04\xbf\x11\x04\x20\x1a\ - \xdd\x01\x20A\x20`Constraint`\x20that\x20is\x20either\x20enforced\x20or\ - \x20not.\n\n\x20For\x20example\x20a\x20constraint\x20`constraints/comput\ - e.disableSerialPortAccess`.\n\x20If\x20it\x20is\x20enforced\x20on\x20a\ - \x20VM\x20instance,\x20serial\x20port\x20connections\x20will\x20not\x20b\ - e\n\x20opened\x20to\x20that\x20instance.\n\n\x0f\n\x07\x045\x03\0\x03\ - \x01\x01\x12\x04\xbf\x11\x0c\x1d\n\xb3\x01\n\x06\x045\x03\0\x02\0\x12\ - \x04\xc5\x11\x04\x14\x1a\xa2\x01\x20The\x20unique\x20name\x20of\x20the\ - \x20constraint.\x20Format\x20of\x20the\x20name\x20should\x20be\n\x20*\ - \x20`constraints/{constraint_name}`\n\n\x20For\x20example,\x20`constrain\ - ts/compute.disableSerialPortAccess`.\n\n\x0f\n\x07\x045\x03\0\x02\0\x05\ - \x12\x04\xc5\x11\x04\n\n\x0f\n\x07\x045\x03\0\x02\0\x01\x12\x04\xc5\x11\ - \x0b\x0f\n\x0f\n\x07\x045\x03\0\x02\0\x03\x12\x04\xc5\x11\x12\x13\n<\n\ - \x06\x045\x03\0\x02\x01\x12\x04\xc8\x11\x04\x1c\x1a,\x20The\x20human\x20\ - readable\x20name\x20of\x20the\x20constraint.\n\n\x0f\n\x07\x045\x03\0\ - \x02\x01\x05\x12\x04\xc8\x11\x04\n\n\x0f\n\x07\x045\x03\0\x02\x01\x01\ - \x12\x04\xc8\x11\x0b\x17\n\x0f\n\x07\x045\x03\0\x02\x01\x03\x12\x04\xc8\ - \x11\x1a\x1b\ns\n\x06\x045\x03\0\x02\x02\x12\x04\xcc\x11\x04\x1b\x1ac\ - \x20Detailed\x20description\x20of\x20what\x20this\x20`Constraint`\x20con\ - trols\x20as\x20well\x20as\x20how\n\x20and\x20where\x20it\x20is\x20enforc\ - ed.\n\n\x0f\n\x07\x045\x03\0\x02\x02\x05\x12\x04\xcc\x11\x04\n\n\x0f\n\ - \x07\x045\x03\0\x02\x02\x01\x12\x04\xcc\x11\x0b\x16\n\x0f\n\x07\x045\x03\ - \0\x02\x02\x03\x12\x04\xcc\x11\x19\x1a\nX\n\x06\x045\x03\0\x02\x03\x12\ - \x04\xcf\x11\x04-\x1aH\x20The\x20evaluation\x20behavior\x20of\x20this\ - \x20constraint\x20in\x20the\x20absence\x20of\x20'Policy'.\n\n\x0f\n\x07\ - \x045\x03\0\x02\x03\x06\x12\x04\xcf\x11\x04\x15\n\x0f\n\x07\x045\x03\0\ - \x02\x03\x01\x12\x04\xcf\x11\x16(\n\x0f\n\x07\x045\x03\0\x02\x03\x03\x12\ - \x04\xcf\x11+,\n_\n\x06\x045\x03\0\x08\0\x12\x06\xd4\x11\x04\xda\x11\x05\ - \x1aM\x20The\x20type\x20of\x20restrictions\x20for\x20this\x20`Constraint\ - `.\n\n\x20Immutable\x20after\x20creation.\n\n\x0f\n\x07\x045\x03\0\x08\0\ - \x01\x12\x04\xd4\x11\n\x19\nD\n\x06\x045\x03\0\x02\x04\x12\x04\xd6\x11\ - \x06)\x1a4\x20Defines\x20this\x20constraint\x20as\x20being\x20a\x20ListC\ - onstraint.\n\n\x0f\n\x07\x045\x03\0\x02\x04\x06\x12\x04\xd6\x11\x06\x14\ - \n\x0f\n\x07\x045\x03\0\x02\x04\x01\x12\x04\xd6\x11\x15$\n\x0f\n\x07\x04\ - 5\x03\0\x02\x04\x03\x12\x04\xd6\x11'(\nG\n\x06\x045\x03\0\x02\x05\x12\ - \x04\xd9\x11\x06/\x1a7\x20Defines\x20this\x20constraint\x20as\x20being\ - \x20a\x20BooleanConstraint.\n\n\x0f\n\x07\x045\x03\0\x02\x05\x06\x12\x04\ - \xd9\x11\x06\x17\n\x0f\n\x07\x045\x03\0\x02\x05\x01\x12\x04\xd9\x11\x18*\ - \n\x0f\n\x07\x045\x03\0\x02\x05\x03\x12\x04\xd9\x11-.\n8\n\x04\x045\x03\ - \x01\x12\x06\xde\x11\x02\x9a\x12\x03\x1a(\x20The\x20definition\x20of\x20\ - a\x20custom\x20constraint.\n\n\r\n\x05\x045\x03\x01\x01\x12\x04\xde\x11\ - \n\x1a\n\x99\x02\n\x06\x045\x03\x01\x04\0\x12\x06\xe3\x11\x04\xef\x11\ - \x05\x1a\x86\x02\x20The\x20operation\x20in\x20which\x20this\x20constrain\ - t\x20will\x20be\x20applied.\x20For\x20example:\n\x20If\x20the\x20constra\ - int\x20applies\x20only\x20when\x20create\x20VMs,\x20the\x20method_types\ - \x20will\x20be\n\x20\"CREATE\"\x20only.\x20If\x20the\x20constraint\x20ap\ - plied\x20when\x20create\x20or\x20delete\x20VMs,\x20the\n\x20method_types\ - \x20will\x20be\x20\"CREATE\"\x20and\x20\"DELETE\".\n\n\x0f\n\x07\x045\ - \x03\x01\x04\0\x01\x12\x04\xe3\x11\t\x13\n<\n\x08\x045\x03\x01\x04\0\x02\ - \0\x12\x04\xe5\x11\x06\"\x1a*\x20Unspecified.\x20Will\x20results\x20in\ - \x20user\x20error.\n\n\x11\n\t\x045\x03\x01\x04\0\x02\0\x01\x12\x04\xe5\ - \x11\x06\x1d\n\x11\n\t\x045\x03\x01\x04\0\x02\0\x02\x12\x04\xe5\x11\x20!\ - \nB\n\x08\x045\x03\x01\x04\0\x02\x01\x12\x04\xe8\x11\x06\x11\x1a0\x20Con\ - straint\x20applied\x20when\x20creating\x20the\x20resource.\n\n\x11\n\t\ - \x045\x03\x01\x04\0\x02\x01\x01\x12\x04\xe8\x11\x06\x0c\n\x11\n\t\x045\ - \x03\x01\x04\0\x02\x01\x02\x12\x04\xe8\x11\x0f\x10\nB\n\x08\x045\x03\x01\ - \x04\0\x02\x02\x12\x04\xeb\x11\x06\x11\x1a0\x20Constraint\x20applied\x20\ - when\x20updating\x20the\x20resource.\n\n\x11\n\t\x045\x03\x01\x04\0\x02\ - \x02\x01\x12\x04\xeb\x11\x06\x0c\n\x11\n\t\x045\x03\x01\x04\0\x02\x02\ - \x02\x12\x04\xeb\x11\x0f\x10\nB\n\x08\x045\x03\x01\x04\0\x02\x03\x12\x04\ - \xee\x11\x06\x11\x1a0\x20Constraint\x20applied\x20when\x20deleting\x20th\ - e\x20resource.\n\n\x11\n\t\x045\x03\x01\x04\0\x02\x03\x01\x12\x04\xee\ - \x11\x06\x0c\n\x11\n\t\x045\x03\x01\x04\0\x02\x03\x02\x12\x04\xee\x11\ - \x0f\x10\n'\n\x06\x045\x03\x01\x04\x01\x12\x06\xf2\x11\x04\xfb\x11\x05\ - \x1a\x15\x20Allow\x20or\x20deny\x20type.\n\n\x0f\n\x07\x045\x03\x01\x04\ - \x01\x01\x12\x04\xf2\x11\t\x13\n<\n\x08\x045\x03\x01\x04\x01\x02\0\x12\ - \x04\xf4\x11\x06\"\x1a*\x20Unspecified.\x20Will\x20results\x20in\x20user\ - \x20error.\n\n\x11\n\t\x045\x03\x01\x04\x01\x02\0\x01\x12\x04\xf4\x11\ - \x06\x1d\n\x11\n\t\x045\x03\x01\x04\x01\x02\0\x02\x12\x04\xf4\x11\x20!\n\ - (\n\x08\x045\x03\x01\x04\x01\x02\x01\x12\x04\xf7\x11\x06\x10\x1a\x16\x20\ - Allowed\x20action\x20type.\n\n\x11\n\t\x045\x03\x01\x04\x01\x02\x01\x01\ - \x12\x04\xf7\x11\x06\x0b\n\x11\n\t\x045\x03\x01\x04\x01\x02\x01\x02\x12\ - \x04\xf7\x11\x0e\x0f\n%\n\x08\x045\x03\x01\x04\x01\x02\x02\x12\x04\xfa\ - \x11\x06\x0f\x1a\x13\x20Deny\x20action\x20type.\n\n\x11\n\t\x045\x03\x01\ - \x04\x01\x02\x02\x01\x12\x04\xfa\x11\x06\n\n\x11\n\t\x045\x03\x01\x04\ - \x01\x02\x02\x02\x12\x04\xfa\x11\r\x0e\n\x8c\x02\n\x06\x045\x03\x01\x02\ - \0\x12\x04\x83\x12\x04\x14\x1a\xfb\x01\x20Name\x20of\x20the\x20constrain\ - t.\x20This\x20is\x20unique\x20within\x20the\x20organization.\x20Format\ - \x20of\n\x20the\x20name\x20should\x20be\n\x20*\x20`organizations/{organi\ - zation_id}/customConstraints/{custom_constraint_id}`\n\n\x20Example\x20:\ - \n\x20\"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"\ - \n\n\x0f\n\x07\x045\x03\x01\x02\0\x05\x12\x04\x83\x12\x04\n\n\x0f\n\x07\ - \x045\x03\x01\x02\0\x01\x12\x04\x83\x12\x0b\x0f\n\x0f\n\x07\x045\x03\x01\ - \x02\0\x03\x12\x04\x83\x12\x12\x13\n\xbe\x01\n\x06\x045\x03\x01\x02\x01\ - \x12\x04\x88\x12\x04'\x1a\xad\x01\x20The\x20Resource\x20Instance\x20type\ - \x20on\x20which\x20this\x20policy\x20applies\x20to.\x20Format\x20will\n\ - \x20be\x20of\x20the\x20form\x20:\x20\"/\"\x20Example:\n\x20\x20*\x20`compute.googleapis.com/Instance`.\n\n\ - \x0f\n\x07\x045\x03\x01\x02\x01\x04\x12\x04\x88\x12\x04\x0c\n\x0f\n\x07\ - \x045\x03\x01\x02\x01\x05\x12\x04\x88\x12\r\x13\n\x0f\n\x07\x045\x03\x01\ - \x02\x01\x01\x12\x04\x88\x12\x14\"\n\x0f\n\x07\x045\x03\x01\x02\x01\x03\ - \x12\x04\x88\x12%&\nG\n\x06\x045\x03\x01\x02\x02\x12\x04\x8b\x12\x04)\ - \x1a7\x20All\x20the\x20operations\x20being\x20applied\x20for\x20this\x20\ - constraint.\n\n\x0f\n\x07\x045\x03\x01\x02\x02\x04\x12\x04\x8b\x12\x04\ - \x0c\n\x0f\n\x07\x045\x03\x01\x02\x02\x06\x12\x04\x8b\x12\r\x17\n\x0f\n\ - \x07\x045\x03\x01\x02\x02\x01\x12\x04\x8b\x12\x18$\n\x0f\n\x07\x045\x03\ - \x01\x02\x02\x03\x12\x04\x8b\x12'(\n\xb9\x01\n\x06\x045\x03\x01\x02\x03\ - \x12\x04\x90\x12\x04\x19\x1a\xa8\x01\x20Organization\x20Policy\x20condit\ - ion/expression.\x20For\x20example:\n\x20`resource.instanceName.matches(\ - \"[production|test]_.*_(\\d)+\")'`\x20or,\n\x20`resource.management.auto\ - _upgrade\x20==\x20true`\n\n\x0f\n\x07\x045\x03\x01\x02\x03\x05\x12\x04\ - \x90\x12\x04\n\n\x0f\n\x07\x045\x03\x01\x02\x03\x01\x12\x04\x90\x12\x0b\ - \x14\n\x0f\n\x07\x045\x03\x01\x02\x03\x03\x12\x04\x90\x12\x17\x18\n%\n\ - \x06\x045\x03\x01\x02\x04\x12\x04\x93\x12\x04\x1f\x1a\x15\x20Allow\x20or\ - \x20deny\x20type.\n\n\x0f\n\x07\x045\x03\x01\x02\x04\x06\x12\x04\x93\x12\ - \x04\x0e\n\x0f\n\x07\x045\x03\x01\x02\x04\x01\x12\x04\x93\x12\x0f\x1a\n\ - \x0f\n\x07\x045\x03\x01\x02\x04\x03\x12\x04\x93\x12\x1d\x1e\n3\n\x06\x04\ - 5\x03\x01\x02\x05\x12\x04\x96\x12\x04\x1c\x1a#\x20One\x20line\x20display\ - \x20name\x20for\x20the\x20UI.\n\n\x0f\n\x07\x045\x03\x01\x02\x05\x05\x12\ - \x04\x96\x12\x04\n\n\x0f\n\x07\x045\x03\x01\x02\x05\x01\x12\x04\x96\x12\ - \x0b\x17\n\x0f\n\x07\x045\x03\x01\x02\x05\x03\x12\x04\x96\x12\x1a\x1b\nK\ - \n\x06\x045\x03\x01\x02\x06\x12\x04\x99\x12\x04\x1b\x1a;\x20Detailed\x20\ - information\x20about\x20this\x20custom\x20policy\x20constraint.\n\n\x0f\ - \n\x07\x045\x03\x01\x02\x06\x05\x12\x04\x99\x12\x04\n\n\x0f\n\x07\x045\ - \x03\x01\x02\x06\x01\x12\x04\x99\x12\x0b\x16\n\x0f\n\x07\x045\x03\x01\ - \x02\x06\x03\x12\x04\x99\x12\x19\x1a\n\x0e\n\x04\x045\x08\0\x12\x06\x9c\ - \x12\x02\xa2\x12\x03\n\r\n\x05\x045\x08\0\x01\x12\x04\x9c\x12\x08\x1d\nJ\ - \n\x04\x045\x02\0\x12\x04\x9e\x12\x04-\x1a<\x20The\x20definition\x20of\ - \x20the\x20canned\x20constraint\x20defined\x20by\x20Google.\n\n\r\n\x05\ - \x045\x02\0\x06\x12\x04\x9e\x12\x04\x0e\n\r\n\x05\x045\x02\0\x01\x12\x04\ - \x9e\x12\x0f(\n\r\n\x05\x045\x02\0\x03\x12\x04\x9e\x12+,\n8\n\x04\x045\ - \x02\x01\x12\x04\xa1\x12\x04+\x1a*\x20The\x20definition\x20of\x20the\x20\ - custom\x20constraint.\n\n\r\n\x05\x045\x02\x01\x06\x12\x04\xa1\x12\x04\ - \x14\n\r\n\x05\x045\x02\x01\x01\x12\x04\xa1\x12\x15&\n\r\n\x05\x045\x02\ - \x01\x03\x12\x04\xa1\x12)*\n\x80\x01\n\x02\x046\x12\x06\xa7\x12\0\xc4\ - \x12\x01\x1ar\x20A\x20request\x20message\x20for\n\x20[AssetService.Analy\ - zeOrgPolicies][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies].\n\ - \n\x0b\n\x03\x046\x01\x12\x04\xa7\x12\x08!\n\xc7\x01\n\x04\x046\x02\0\ - \x12\x04\xac\x12\x02<\x1a\xb8\x01\x20Required.\x20The\x20organization\ - \x20to\x20scope\x20the\x20request.\x20Only\x20organization\n\x20policies\ - \x20within\x20the\x20scope\x20will\x20be\x20analyzed.\n\n\x20*\x20organi\ - zations/{ORGANIZATION_NUMBER}\x20(e.g.,\x20\"organizations/123456\")\n\n\ - \r\n\x05\x046\x02\0\x05\x12\x04\xac\x12\x02\x08\n\r\n\x05\x046\x02\0\x01\ - \x12\x04\xac\x12\t\x0e\n\r\n\x05\x046\x02\0\x03\x12\x04\xac\x12\x11\x12\ - \n\r\n\x05\x046\x02\0\x08\x12\x04\xac\x12\x13;\n\x10\n\x08\x046\x02\0\ - \x08\x9c\x08\0\x12\x04\xac\x12\x14:\n\xb4\x01\n\x04\x046\x02\x01\x12\x04\ - \xb1\x12\x02A\x1a\xa5\x01\x20Required.\x20The\x20name\x20of\x20the\x20co\ - nstraint\x20to\x20analyze\x20organization\x20policies\x20for.\n\x20The\ - \x20response\x20only\x20contains\x20analyzed\x20organization\x20policies\ - \x20for\x20the\x20provided\n\x20constraint.\n\n\r\n\x05\x046\x02\x01\x05\ - \x12\x04\xb1\x12\x02\x08\n\r\n\x05\x046\x02\x01\x01\x12\x04\xb1\x12\t\ - \x13\n\r\n\x05\x046\x02\x01\x03\x12\x04\xb1\x12\x16\x17\n\r\n\x05\x046\ - \x02\x01\x08\x12\x04\xb1\x12\x18@\n\x10\n\x08\x046\x02\x01\x08\x9c\x08\0\ - \x12\x04\xb1\x12\x19?\n\xaa\x03\n\x04\x046\x02\x02\x12\x04\xbb\x12\x02\ - \x14\x1a\x9b\x03\x20The\x20expression\x20to\x20filter\n\x20[AnalyzeOrgPo\ - liciesResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPolic\ - iesResponse.org_policy_results].\n\x20The\x20only\x20supported\x20field\ - \x20is\x20`consolidated_policy.attached_resource`,\x20and\n\x20the\x20on\ - ly\x20supported\x20operator\x20is\x20`=`.\n\n\x20Example:\n\x20consolida\ - ted_policy.attached_resource=\"//cloudresourcemanager.googleapis.com/fol\ - ders/001\"\n\x20will\x20return\x20the\x20org\x20policy\x20results\x20of\ - \"folders/001\".\n\n\r\n\x05\x046\x02\x02\x05\x12\x04\xbb\x12\x02\x08\n\ - \r\n\x05\x046\x02\x02\x01\x12\x04\xbb\x12\t\x0f\n\r\n\x05\x046\x02\x02\ - \x03\x12\x04\xbb\x12\x12\x13\n\xf4\x01\n\x04\x046\x02\x03\x12\x04\xc0\ - \x12\x02\x1f\x1a\xe5\x01\x20The\x20maximum\x20number\x20of\x20items\x20t\ - o\x20return\x20per\x20page.\x20If\x20unspecified,\n\x20[AnalyzeOrgPolici\ - esResponse.org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesR\ - esponse.org_policy_results]\n\x20will\x20contain\x2020\x20items\x20with\ - \x20a\x20maximum\x20of\x20200.\n\n\r\n\x05\x046\x02\x03\x04\x12\x04\xc0\ - \x12\x02\n\n\r\n\x05\x046\x02\x03\x05\x12\x04\xc0\x12\x0b\x10\n\r\n\x05\ - \x046\x02\x03\x01\x12\x04\xc0\x12\x11\x1a\n\r\n\x05\x046\x02\x03\x03\x12\ - \x04\xc0\x12\x1d\x1e\n?\n\x04\x046\x02\x04\x12\x04\xc3\x12\x02\x18\x1a1\ - \x20The\x20pagination\x20token\x20to\x20retrieve\x20the\x20next\x20page.\ - \n\n\r\n\x05\x046\x02\x04\x05\x12\x04\xc3\x12\x02\x08\n\r\n\x05\x046\x02\ - \x04\x01\x12\x04\xc3\x12\t\x13\n\r\n\x05\x046\x02\x04\x03\x12\x04\xc3\ - \x12\x16\x17\n\x83\x01\n\x02\x047\x12\x06\xc8\x12\0\xe7\x12\x01\x1au\x20\ - The\x20response\x20message\x20for\n\x20[AssetService.AnalyzeOrgPolicies]\ - [google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies].\n\n\x0b\n\x03\ - \x047\x01\x12\x04\xc8\x12\x08\"\n>\n\x04\x047\x03\0\x12\x06\xca\x12\x02\ - \xd9\x12\x03\x1a.\x20The\x20organization\x20policy\x20result\x20to\x20th\ - e\x20query.\n\n\r\n\x05\x047\x03\0\x01\x12\x04\xca\x12\n\x19\n\xf2\x02\n\ - \x06\x047\x03\0\x02\0\x12\x04\xd0\x12\x04.\x1a\xe1\x02\x20The\x20consoli\ - dated\x20organization\x20policy\x20for\x20the\x20analyzed\x20resource.\ - \x20The\n\x20consolidated\x20organization\x20policy\x20is\x20computed\ - \x20by\x20merging\x20and\x20evaluating\n\x20[AnalyzeOrgPoliciesResponse.\ - policy_bundle][].\n\x20The\x20evaluation\x20will\x20respect\x20the\x20or\ - ganization\x20policy\x20[hierarchy\n\x20rules](https://cloud.google.com/\ - resource-manager/docs/organization-policy/understanding-hierarchy).\n\n\ - \x0f\n\x07\x047\x03\0\x02\0\x06\x12\x04\xd0\x12\x04\x15\n\x0f\n\x07\x047\ - \x03\0\x02\0\x01\x12\x04\xd0\x12\x16)\n\x0f\n\x07\x047\x03\0\x02\0\x03\ - \x12\x04\xd0\x12,-\n\x9e\x02\n\x06\x047\x03\0\x02\x01\x12\x04\xd8\x12\ - \x041\x1a\x8d\x02\x20The\x20ordered\x20list\x20of\x20all\x20organization\ - \x20policies\x20from\x20the\n\x20[AnalyzeOrgPoliciesResponse.OrgPolicyRe\ - sult.consolidated_policy.attached_resource][].\n\x20to\x20the\x20scope\ - \x20specified\x20in\x20the\x20request.\n\n\x20If\x20the\x20constraint\ - \x20is\x20defined\x20with\x20default\x20policy,\x20it\x20will\x20also\ - \x20appear\x20in\n\x20the\x20list.\n\n\x0f\n\x07\x047\x03\0\x02\x01\x04\ - \x12\x04\xd8\x12\x04\x0c\n\x0f\n\x07\x047\x03\0\x02\x01\x06\x12\x04\xd8\ - \x12\r\x1e\n\x0f\n\x07\x047\x03\0\x02\x01\x01\x12\x04\xd8\x12\x1f,\n\x0f\ - \n\x07\x047\x03\0\x02\x01\x03\x12\x04\xd8\x12/0\n\xfd\x01\n\x04\x047\x02\ - \0\x12\x04\xdf\x12\x022\x1a\xee\x01\x20The\x20organization\x20policies\ - \x20under\x20the\n\x20[AnalyzeOrgPoliciesRequest.scope][google.cloud.ass\ - et.v1.AnalyzeOrgPoliciesRequest.scope]\n\x20with\x20the\n\x20[AnalyzeOrg\ - PoliciesRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPoliciesRequ\ - est.constraint].\n\n\r\n\x05\x047\x02\0\x04\x12\x04\xdf\x12\x02\n\n\r\n\ - \x05\x047\x02\0\x06\x12\x04\xdf\x12\x0b\x1a\n\r\n\x05\x047\x02\0\x01\x12\ - \x04\xdf\x12\x1b-\n\r\n\x05\x047\x02\0\x03\x12\x04\xdf\x1201\n@\n\x04\ - \x047\x02\x01\x12\x04\xe2\x12\x02-\x1a2\x20The\x20definition\x20of\x20th\ - e\x20constraint\x20in\x20the\x20request.\n\n\r\n\x05\x047\x02\x01\x06\ - \x12\x04\xe2\x12\x02\x1d\n\r\n\x05\x047\x02\x01\x01\x12\x04\xe2\x12\x1e(\ - \n\r\n\x05\x047\x02\x01\x03\x12\x04\xe2\x12+,\n\xb1\x01\n\x04\x047\x02\ - \x02\x12\x04\xe6\x12\x02\x1d\x1a\xa2\x01\x20The\x20page\x20token\x20to\ - \x20fetch\x20the\x20next\x20page\x20for\n\x20[AnalyzeOrgPoliciesResponse\ - .org_policy_results][google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.or\ - g_policy_results].\n\n\r\n\x05\x047\x02\x02\x05\x12\x04\xe6\x12\x02\x08\ - \n\r\n\x05\x047\x02\x02\x01\x12\x04\xe6\x12\t\x18\n\r\n\x05\x047\x02\x02\ - \x03\x12\x04\xe6\x12\x1b\x1c\n\xa1\x01\n\x02\x048\x12\x06\xeb\x12\0\x89\ - \x13\x01\x1a\x92\x01\x20A\x20request\x20message\x20for\n\x20[AssetServic\ - e.AnalyzeOrgPolicyGovernedContainers][google.cloud.asset.v1.AssetService\ - .AnalyzeOrgPolicyGovernedContainers].\n\n\x0b\n\x03\x048\x01\x12\x04\xeb\ - \x12\x081\n\xb2\x02\n\x04\x048\x02\0\x12\x04\xf2\x12\x02<\x1a\xa3\x02\ - \x20Required.\x20The\x20organization\x20to\x20scope\x20the\x20request.\ - \x20Only\x20organization\n\x20policies\x20within\x20the\x20scope\x20will\ - \x20be\x20analyzed.\x20The\x20output\x20containers\x20will\n\x20also\x20\ - be\x20limited\x20to\x20the\x20ones\x20governed\x20by\x20those\x20in-scop\ - e\x20organization\n\x20policies.\n\n\x20*\x20organizations/{ORGANIZATION\ - _NUMBER}\x20(e.g.,\x20\"organizations/123456\")\n\n\r\n\x05\x048\x02\0\ - \x05\x12\x04\xf2\x12\x02\x08\n\r\n\x05\x048\x02\0\x01\x12\x04\xf2\x12\t\ - \x0e\n\r\n\x05\x048\x02\0\x03\x12\x04\xf2\x12\x11\x12\n\r\n\x05\x048\x02\ - \0\x08\x12\x04\xf2\x12\x13;\n\x10\n\x08\x048\x02\0\x08\x9c\x08\0\x12\x04\ - \xf2\x12\x14:\n\xa9\x01\n\x04\x048\x02\x01\x12\x04\xf7\x12\x02A\x1a\x9a\ - \x01\x20Required.\x20The\x20name\x20of\x20the\x20constraint\x20to\x20ana\ - lyze\x20governed\x20containers\x20for.\n\x20The\x20analysis\x20only\x20c\ - ontains\x20organization\x20policies\x20for\x20the\x20provided\n\x20const\ - raint.\n\n\r\n\x05\x048\x02\x01\x05\x12\x04\xf7\x12\x02\x08\n\r\n\x05\ - \x048\x02\x01\x01\x12\x04\xf7\x12\t\x13\n\r\n\x05\x048\x02\x01\x03\x12\ - \x04\xf7\x12\x16\x17\n\r\n\x05\x048\x02\x01\x08\x12\x04\xf7\x12\x18@\n\ - \x10\n\x08\x048\x02\x01\x08\x9c\x08\0\x12\x04\xf7\x12\x19?\n\x94\x02\n\ - \x04\x048\x02\x02\x12\x04\x80\x13\x02\x14\x1a\x85\x02\x20The\x20expressi\ - on\x20to\x20filter\x20the\x20governed\x20containers\x20in\x20result.\n\ - \x20The\x20only\x20supported\x20field\x20is\x20`parent`,\x20and\x20the\ - \x20only\x20supported\x20operator\x20is\n\x20`=`.\n\n\x20Example:\n\x20p\ - arent=\"//cloudresourcemanager.googleapis.com/folders/001\"\x20will\x20r\ - eturn\x20all\n\x20containers\x20under\x20\"folders/001\".\n\n\r\n\x05\ - \x048\x02\x02\x05\x12\x04\x80\x13\x02\x08\n\r\n\x05\x048\x02\x02\x01\x12\ - \x04\x80\x13\t\x0f\n\r\n\x05\x048\x02\x02\x03\x12\x04\x80\x13\x12\x13\n\ - \x97\x02\n\x04\x048\x02\x03\x12\x04\x85\x13\x02\x1f\x1a\x88\x02\x20The\ - \x20maximum\x20number\x20of\x20items\x20to\x20return\x20per\x20page.\x20\ - If\x20unspecified,\n\x20[AnalyzeOrgPolicyGovernedContainersResponse.gove\ - rned_containers][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainer\ - sResponse.governed_containers]\n\x20will\x20contain\x20100\x20items\x20w\ - ith\x20a\x20maximum\x20of\x20200.\n\n\r\n\x05\x048\x02\x03\x04\x12\x04\ - \x85\x13\x02\n\n\r\n\x05\x048\x02\x03\x05\x12\x04\x85\x13\x0b\x10\n\r\n\ - \x05\x048\x02\x03\x01\x12\x04\x85\x13\x11\x1a\n\r\n\x05\x048\x02\x03\x03\ - \x12\x04\x85\x13\x1d\x1e\n?\n\x04\x048\x02\x04\x12\x04\x88\x13\x02\x18\ - \x1a1\x20The\x20pagination\x20token\x20to\x20retrieve\x20the\x20next\x20\ - page.\n\n\r\n\x05\x048\x02\x04\x05\x12\x04\x88\x13\x02\x08\n\r\n\x05\x04\ - 8\x02\x04\x01\x12\x04\x88\x13\t\x13\n\r\n\x05\x048\x02\x04\x03\x12\x04\ - \x88\x13\x16\x17\n\xa4\x01\n\x02\x049\x12\x06\x8d\x13\0\xb6\x13\x01\x1a\ - \x95\x01\x20The\x20response\x20message\x20for\n\x20[AssetService.Analyze\ - OrgPolicyGovernedContainers][google.cloud.asset.v1.AssetService.AnalyzeO\ - rgPolicyGovernedContainers].\n\n\x0b\n\x03\x049\x01\x12\x04\x8d\x13\x082\ - \n\xe6\x01\n\x04\x049\x03\0\x12\x06\x91\x13\x02\xab\x13\x03\x1a\xd5\x01\ - \x20The\x20organization/folder/project\x20resource\x20governed\x20by\x20\ - organization\x20policies\n\x20of\n\x20[AnalyzeOrgPolicyGovernedContainer\ - sRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedConta\ - inersRequest.constraint].\n\n\r\n\x05\x049\x03\0\x01\x12\x04\x91\x13\n\ - \x1b\n\x9e\x01\n\x06\x049\x03\0\x02\0\x12\x04\x95\x13\x04\"\x1a\x8d\x01\ - \x20The\x20[full\x20resource\x20name]\n\x20(https://cloud.google.com/ass\ - et-inventory/docs/resource-name-format)\x20of\n\x20an\x20organization/fo\ - lder/project\x20resource.\n\n\x0f\n\x07\x049\x03\0\x02\0\x05\x12\x04\x95\ - \x13\x04\n\n\x0f\n\x07\x049\x03\0\x02\0\x01\x12\x04\x95\x13\x0b\x1d\n\ - \x0f\n\x07\x049\x03\0\x02\0\x03\x12\x04\x95\x13\x20!\n\xbe\x02\n\x06\x04\ - 9\x03\0\x02\x01\x12\x04\x9b\x13\x04\x16\x1a\xad\x02\x20The\x20[full\x20r\ - esource\x20name]\n\x20(https://cloud.google.com/asset-inventory/docs/res\ - ource-name-format)\x20of\n\x20the\x20parent\x20of\n\x20[AnalyzeOrgPolicy\ - GovernedContainersResponse.GovernedContainer.full_resource_name][google.\ - cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContai\ - ner.full_resource_name].\n\n\x0f\n\x07\x049\x03\0\x02\x01\x05\x12\x04\ - \x9b\x13\x04\n\n\x0f\n\x07\x049\x03\0\x02\x01\x01\x12\x04\x9b\x13\x0b\ - \x11\n\x0f\n\x07\x049\x03\0\x02\x01\x03\x12\x04\x9b\x13\x14\x15\n\xf4\ - \x03\n\x06\x049\x03\0\x02\x02\x12\x04\xa2\x13\x04.\x1a\xe3\x03\x20The\ - \x20consolidated\x20organization\x20policy\x20for\x20the\x20analyzed\x20\ - resource.\x20The\n\x20consolidated\x20organization\x20policy\x20is\x20co\ - mputed\x20by\x20merging\x20and\x20evaluating\n\x20[AnalyzeOrgPolicyGover\ - nedContainersResponse.GovernedContainer.policy_bundle][google.cloud.asse\ - t.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.policy\ - _bundle].\n\x20The\x20evaluation\x20will\x20respect\x20the\x20organizati\ - on\x20policy\x20[hierarchy\n\x20rules](https://cloud.google.com/resource\ - -manager/docs/organization-policy/understanding-hierarchy).\n\n\x0f\n\ - \x07\x049\x03\0\x02\x02\x06\x12\x04\xa2\x13\x04\x15\n\x0f\n\x07\x049\x03\ - \0\x02\x02\x01\x12\x04\xa2\x13\x16)\n\x0f\n\x07\x049\x03\0\x02\x02\x03\ - \x12\x04\xa2\x13,-\n\x9e\x02\n\x06\x049\x03\0\x02\x03\x12\x04\xaa\x13\ - \x041\x1a\x8d\x02\x20The\x20ordered\x20list\x20of\x20all\x20organization\ - \x20policies\x20from\x20the\n\x20[AnalyzeOrgPoliciesResponse.OrgPolicyRe\ - sult.consolidated_policy.attached_resource][].\n\x20to\x20the\x20scope\ - \x20specified\x20in\x20the\x20request.\n\n\x20If\x20the\x20constraint\ - \x20is\x20defined\x20with\x20default\x20policy,\x20it\x20will\x20also\ - \x20appear\x20in\n\x20the\x20list.\n\n\x0f\n\x07\x049\x03\0\x02\x03\x04\ - \x12\x04\xaa\x13\x04\x0c\n\x0f\n\x07\x049\x03\0\x02\x03\x06\x12\x04\xaa\ - \x13\r\x1e\n\x0f\n\x07\x049\x03\0\x02\x03\x01\x12\x04\xaa\x13\x1f,\n\x0f\ - \n\x07\x049\x03\0\x02\x03\x03\x12\x04\xaa\x13/0\n=\n\x04\x049\x02\0\x12\ - \x04\xae\x13\x025\x1a/\x20The\x20list\x20of\x20the\x20analyzed\x20govern\ - ed\x20containers.\n\n\r\n\x05\x049\x02\0\x04\x12\x04\xae\x13\x02\n\n\r\n\ - \x05\x049\x02\0\x06\x12\x04\xae\x13\x0b\x1c\n\r\n\x05\x049\x02\0\x01\x12\ - \x04\xae\x13\x1d0\n\r\n\x05\x049\x02\0\x03\x12\x04\xae\x1334\n@\n\x04\ - \x049\x02\x01\x12\x04\xb1\x13\x02-\x1a2\x20The\x20definition\x20of\x20th\ - e\x20constraint\x20in\x20the\x20request.\n\n\r\n\x05\x049\x02\x01\x06\ - \x12\x04\xb1\x13\x02\x1d\n\r\n\x05\x049\x02\x01\x01\x12\x04\xb1\x13\x1e(\ - \n\r\n\x05\x049\x02\x01\x03\x12\x04\xb1\x13+,\n\xd3\x01\n\x04\x049\x02\ - \x02\x12\x04\xb5\x13\x02\x1d\x1a\xc4\x01\x20The\x20page\x20token\x20to\ - \x20fetch\x20the\x20next\x20page\x20for\n\x20[AnalyzeOrgPolicyGovernedCo\ - ntainersResponse.governed_containers][google.cloud.asset.v1.AnalyzeOrgPo\ - licyGovernedContainersResponse.governed_containers].\n\n\r\n\x05\x049\ - \x02\x02\x05\x12\x04\xb5\x13\x02\x08\n\r\n\x05\x049\x02\x02\x01\x12\x04\ - \xb5\x13\t\x18\n\r\n\x05\x049\x02\x02\x03\x12\x04\xb5\x13\x1b\x1c\n\x99\ - \x01\n\x02\x04:\x12\x06\xba\x13\0\xdd\x13\x01\x1a\x8a\x01\x20A\x20reques\ - t\x20message\x20for\n\x20[AssetService.AnalyzeOrgPolicyGovernedAssets][g\ - oogle.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets].\n\n\ - \x0b\n\x03\x04:\x01\x12\x04\xba\x13\x08-\n\xae\x02\n\x04\x04:\x02\0\x12\ - \x04\xc1\x13\x02<\x1a\x9f\x02\x20Required.\x20The\x20organization\x20to\ - \x20scope\x20the\x20request.\x20Only\x20organization\n\x20policies\x20wi\ - thin\x20the\x20scope\x20will\x20be\x20analyzed.\x20The\x20output\x20asse\ - ts\x20will\n\x20also\x20be\x20limited\x20to\x20the\x20ones\x20governed\ - \x20by\x20those\x20in-scope\x20organization\n\x20policies.\n\n\x20*\x20o\ - rganizations/{ORGANIZATION_NUMBER}\x20(e.g.,\x20\"organizations/123456\"\ - )\n\n\r\n\x05\x04:\x02\0\x05\x12\x04\xc1\x13\x02\x08\n\r\n\x05\x04:\x02\ - \0\x01\x12\x04\xc1\x13\t\x0e\n\r\n\x05\x04:\x02\0\x03\x12\x04\xc1\x13\ - \x11\x12\n\r\n\x05\x04:\x02\0\x08\x12\x04\xc1\x13\x13;\n\x10\n\x08\x04:\ - \x02\0\x08\x9c\x08\0\x12\x04\xc1\x13\x14:\n\xae\x01\n\x04\x04:\x02\x01\ - \x12\x04\xc6\x13\x02A\x1a\x9f\x01\x20Required.\x20The\x20name\x20of\x20t\ - he\x20constraint\x20to\x20analyze\x20governed\x20assets\x20for.\x20The\n\ - \x20analysis\x20only\x20contains\x20analyzed\x20organization\x20policies\ - \x20for\x20the\x20provided\n\x20constraint.\n\n\r\n\x05\x04:\x02\x01\x05\ - \x12\x04\xc6\x13\x02\x08\n\r\n\x05\x04:\x02\x01\x01\x12\x04\xc6\x13\t\ - \x13\n\r\n\x05\x04:\x02\x01\x03\x12\x04\xc6\x13\x16\x17\n\r\n\x05\x04:\ - \x02\x01\x08\x12\x04\xc6\x13\x18@\n\x10\n\x08\x04:\x02\x01\x08\x9c\x08\0\ - \x12\x04\xc6\x13\x19?\n\x98\x05\n\x04\x04:\x02\x02\x12\x04\xd4\x13\x02\ - \x14\x1a\x89\x05\x20The\x20expression\x20to\x20filter\x20the\x20governed\ - \x20assets\x20in\x20result.\x20The\x20only\x20supported\n\x20fields\x20f\ - or\x20governed\x20resources\x20are\x20`governed_resource.project`\x20and\ - \n\x20`governed_resource.folders`.\x20The\x20only\x20supported\x20fields\ - \x20for\x20governed\x20iam\n\x20policies\x20are\x20`governed_iam_policy.\ - project`\x20and\n\x20`governed_iam_policy.folders`.\x20The\x20only\x20su\ - pported\x20operator\x20is\x20`=`.\n\n\x20Example\x201:\x20governed_resou\ - rce.project=\"projects/12345678\"\x20filter\x20will\x20return\n\x20all\ - \x20governed\x20resources\x20under\x20projects/12345678\x20including\x20\ - the\x20project\n\x20ifself,\x20if\x20applicable.\n\n\x20Example\x202:\ - \x20governed_iam_policy.folders=\"folders/12345678\"\x20filter\x20will\n\ - \x20return\x20all\x20governed\x20iam\x20policies\x20under\x20folders/123\ - 45678,\x20if\x20applicable.\n\n\r\n\x05\x04:\x02\x02\x05\x12\x04\xd4\x13\ - \x02\x08\n\r\n\x05\x04:\x02\x02\x01\x12\x04\xd4\x13\t\x0f\n\r\n\x05\x04:\ - \x02\x02\x03\x12\x04\xd4\x13\x12\x13\n\x87\x02\n\x04\x04:\x02\x03\x12\ - \x04\xd9\x13\x02\x1f\x1a\xf8\x01\x20The\x20maximum\x20number\x20of\x20it\ - ems\x20to\x20return\x20per\x20page.\x20If\x20unspecified,\n\x20[AnalyzeO\ - rgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.An\ - alyzeOrgPolicyGovernedAssetsResponse.governed_assets]\n\x20will\x20conta\ - in\x20100\x20items\x20with\x20a\x20maximum\x20of\x20200.\n\n\r\n\x05\x04\ - :\x02\x03\x04\x12\x04\xd9\x13\x02\n\n\r\n\x05\x04:\x02\x03\x05\x12\x04\ - \xd9\x13\x0b\x10\n\r\n\x05\x04:\x02\x03\x01\x12\x04\xd9\x13\x11\x1a\n\r\ - \n\x05\x04:\x02\x03\x03\x12\x04\xd9\x13\x1d\x1e\n?\n\x04\x04:\x02\x04\ - \x12\x04\xdc\x13\x02\x18\x1a1\x20The\x20pagination\x20token\x20to\x20ret\ - rieve\x20the\x20next\x20page.\n\n\r\n\x05\x04:\x02\x04\x05\x12\x04\xdc\ - \x13\x02\x08\n\r\n\x05\x04:\x02\x04\x01\x12\x04\xdc\x13\t\x13\n\r\n\x05\ - \x04:\x02\x04\x03\x12\x04\xdc\x13\x16\x17\n\x9c\x01\n\x02\x04;\x12\x06\ - \xe1\x13\0\xc7\x14\x01\x1a\x8d\x01\x20The\x20response\x20message\x20for\ - \n\x20[AssetService.AnalyzeOrgPolicyGovernedAssets][google.cloud.asset.v\ - 1.AssetService.AnalyzeOrgPolicyGovernedAssets].\n\n\x0b\n\x03\x04;\x01\ - \x12\x04\xe1\x13\x08.\n\xd7\x01\n\x04\x04;\x03\0\x12\x06\xe4\x13\x02\xfe\ - \x13\x03\x1a\xc6\x01\x20The\x20Google\x20Cloud\x20resources\x20governed\ - \x20by\x20the\x20organization\x20policies\x20of\x20the\n\x20[AnalyzeOrgP\ - olicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgP\ - olicyGovernedAssetsRequest.constraint].\n\n\r\n\x05\x04;\x03\0\x01\x12\ - \x04\xe4\x13\n\x1a\n\x8f\x01\n\x06\x04;\x03\0\x02\0\x12\x04\xe8\x13\x04\ - \"\x1a\x7f\x20The\x20[full\x20resource\x20name]\n\x20(https://cloud.goog\ - le.com/asset-inventory/docs/resource-name-format)\x20of\n\x20the\x20Goog\ - le\x20Cloud\x20resource.\n\n\x0f\n\x07\x04;\x03\0\x02\0\x05\x12\x04\xe8\ - \x13\x04\n\n\x0f\n\x07\x04;\x03\0\x02\0\x01\x12\x04\xe8\x13\x0b\x1d\n\ - \x0f\n\x07\x04;\x03\0\x02\0\x03\x12\x04\xe8\x13\x20!\n\xb4\x02\n\x06\x04\ - ;\x03\0\x02\x01\x12\x04\xee\x13\x04\x16\x1a\xa3\x02\x20The\x20[full\x20r\ - esource\x20name]\n\x20(https://cloud.google.com/asset-inventory/docs/res\ - ource-name-format)\x20of\n\x20the\x20parent\x20of\n\x20[AnalyzeOrgPolicy\ - GovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud\ - .asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_r\ - esource_name].\n\n\x0f\n\x07\x04;\x03\0\x02\x01\x05\x12\x04\xee\x13\x04\ - \n\n\x0f\n\x07\x04;\x03\0\x02\x01\x01\x12\x04\xee\x13\x0b\x11\n\x0f\n\ - \x07\x04;\x03\0\x02\x01\x03\x12\x04\xee\x13\x14\x15\n\xab\x01\n\x06\x04;\ - \x03\0\x02\x02\x12\x04\xf3\x13\x04\x17\x1a\x9a\x01\x20The\x20project\x20\ - that\x20this\x20resource\x20belongs\x20to,\x20in\x20the\x20format\x20of\ - \n\x20projects/{PROJECT_NUMBER}.\x20This\x20field\x20is\x20available\x20\ - when\x20the\x20resource\n\x20belongs\x20to\x20a\x20project.\n\n\x0f\n\ - \x07\x04;\x03\0\x02\x02\x05\x12\x04\xf3\x13\x04\n\n\x0f\n\x07\x04;\x03\0\ - \x02\x02\x01\x12\x04\xf3\x13\x0b\x12\n\x0f\n\x07\x04;\x03\0\x02\x02\x03\ - \x12\x04\xf3\x13\x15\x16\n\xcf\x01\n\x06\x04;\x03\0\x02\x03\x12\x04\xf8\ - \x13\x04\x20\x1a\xbe\x01\x20The\x20folder(s)\x20that\x20this\x20resource\ - \x20belongs\x20to,\x20in\x20the\x20format\x20of\n\x20folders/{FOLDER_NUM\ - BER}.\x20This\x20field\x20is\x20available\x20when\x20the\x20resource\n\ - \x20belongs\x20(directly\x20or\x20cascadingly)\x20to\x20one\x20or\x20mor\ - e\x20folders.\n\n\x0f\n\x07\x04;\x03\0\x02\x03\x04\x12\x04\xf8\x13\x04\ - \x0c\n\x0f\n\x07\x04;\x03\0\x02\x03\x05\x12\x04\xf8\x13\r\x13\n\x0f\n\ - \x07\x04;\x03\0\x02\x03\x01\x12\x04\xf8\x13\x14\x1b\n\x0f\n\x07\x04;\x03\ - \0\x02\x03\x03\x12\x04\xf8\x13\x1e\x1f\n\xda\x01\n\x06\x04;\x03\0\x02\ - \x04\x12\x04\xfd\x13\x04\x1c\x1a\xc9\x01\x20The\x20organization\x20that\ - \x20this\x20resource\x20belongs\x20to,\x20in\x20the\x20format\x20of\n\ - \x20organizations/{ORGANIZATION_NUMBER}.\x20This\x20field\x20is\x20avail\ - able\x20when\x20the\n\x20resource\x20belongs\x20(directly\x20or\x20casca\ - dingly)\x20to\x20an\x20organization.\n\n\x0f\n\x07\x04;\x03\0\x02\x04\ - \x05\x12\x04\xfd\x13\x04\n\n\x0f\n\x07\x04;\x03\0\x02\x04\x01\x12\x04\ - \xfd\x13\x0b\x17\n\x0f\n\x07\x04;\x03\0\x02\x04\x03\x12\x04\xfd\x13\x1a\ - \x1b\n\xcd\x01\n\x04\x04;\x03\x01\x12\x06\x82\x14\x02\x9c\x14\x03\x1a\ - \xbc\x01\x20The\x20IAM\x20policies\x20governed\x20by\x20the\x20organizat\ - ion\x20policies\x20of\x20the\n\x20[AnalyzeOrgPolicyGovernedAssetsRequest\ - .constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest\ - .constraint].\n\n\r\n\x05\x04;\x03\x01\x01\x12\x04\x82\x14\n\x1b\n\xc7\ - \x02\n\x06\x04;\x03\x01\x02\0\x12\x04\x89\x14\x04!\x1a\xb6\x02\x20The\ - \x20full\x20resource\x20name\x20of\x20the\x20resource\x20on\x20which\x20\ - this\x20IAM\x20policy\x20is\x20set.\n\x20Example:\n\x20`//compute.google\ - apis.com/projects/my_project_123/zones/zone1/instances/instance1`.\n\x20\ - See\x20[Cloud\x20Asset\x20Inventory\x20Resource\x20Name\n\x20Format](htt\ - ps://cloud.google.com/asset-inventory/docs/resource-name-format)\n\x20fo\ - r\x20more\x20information.\n\n\x0f\n\x07\x04;\x03\x01\x02\0\x05\x12\x04\ - \x89\x14\x04\n\n\x0f\n\x07\x04;\x03\x01\x02\0\x01\x12\x04\x89\x14\x0b\ - \x1c\n\x0f\n\x07\x04;\x03\x01\x02\0\x03\x12\x04\x89\x14\x1f\x20\nD\n\x06\ - \x04;\x03\x01\x02\x01\x12\x04\x8c\x14\x04$\x1a4\x20The\x20IAM\x20policy\ - \x20directly\x20set\x20on\x20the\x20given\x20resource.\n\n\x0f\n\x07\x04\ - ;\x03\x01\x02\x01\x06\x12\x04\x8c\x14\x04\x18\n\x0f\n\x07\x04;\x03\x01\ - \x02\x01\x01\x12\x04\x8c\x14\x19\x1f\n\x0f\n\x07\x04;\x03\x01\x02\x01\ - \x03\x12\x04\x8c\x14\"#\n\xaf\x01\n\x06\x04;\x03\x01\x02\x02\x12\x04\x91\ - \x14\x04\x17\x1a\x9e\x01\x20The\x20project\x20that\x20this\x20IAM\x20pol\ - icy\x20belongs\x20to,\x20in\x20the\x20format\x20of\n\x20projects/{PROJEC\ - T_NUMBER}.\x20This\x20field\x20is\x20available\x20when\x20the\x20IAM\x20\ - policy\n\x20belongs\x20to\x20a\x20project.\n\n\x0f\n\x07\x04;\x03\x01\ - \x02\x02\x05\x12\x04\x91\x14\x04\n\n\x0f\n\x07\x04;\x03\x01\x02\x02\x01\ - \x12\x04\x91\x14\x0b\x12\n\x0f\n\x07\x04;\x03\x01\x02\x02\x03\x12\x04\ - \x91\x14\x15\x16\n\xd3\x01\n\x06\x04;\x03\x01\x02\x03\x12\x04\x96\x14\ - \x04\x20\x1a\xc2\x01\x20The\x20folder(s)\x20that\x20this\x20IAM\x20polic\ - y\x20belongs\x20to,\x20in\x20the\x20format\x20of\n\x20folders/{FOLDER_NU\ - MBER}.\x20This\x20field\x20is\x20available\x20when\x20the\x20IAM\x20poli\ - cy\n\x20belongs\x20(directly\x20or\x20cascadingly)\x20to\x20one\x20or\ - \x20more\x20folders.\n\n\x0f\n\x07\x04;\x03\x01\x02\x03\x04\x12\x04\x96\ - \x14\x04\x0c\n\x0f\n\x07\x04;\x03\x01\x02\x03\x05\x12\x04\x96\x14\r\x13\ - \n\x0f\n\x07\x04;\x03\x01\x02\x03\x01\x12\x04\x96\x14\x14\x1b\n\x0f\n\ - \x07\x04;\x03\x01\x02\x03\x03\x12\x04\x96\x14\x1e\x1f\n\xde\x01\n\x06\ - \x04;\x03\x01\x02\x04\x12\x04\x9b\x14\x04\x1c\x1a\xcd\x01\x20The\x20orga\ - nization\x20that\x20this\x20IAM\x20policy\x20belongs\x20to,\x20in\x20the\ - \x20format\x20of\n\x20organizations/{ORGANIZATION_NUMBER}.\x20This\x20fi\ - eld\x20is\x20available\x20when\x20the\n\x20IAM\x20policy\x20belongs\x20(\ - directly\x20or\x20cascadingly)\x20to\x20an\x20organization.\n\n\x0f\n\ - \x07\x04;\x03\x01\x02\x04\x05\x12\x04\x9b\x14\x04\n\n\x0f\n\x07\x04;\x03\ - \x01\x02\x04\x01\x12\x04\x9b\x14\x0b\x17\n\x0f\n\x07\x04;\x03\x01\x02\ - \x04\x03\x12\x04\x9b\x14\x1a\x1b\n\xf5\x01\n\x04\x04;\x03\x02\x12\x06\ - \xa1\x14\x02\xbc\x14\x03\x1a\xe4\x01\x20Represents\x20a\x20Google\x20Clo\ - ud\x20asset(resource\x20or\x20IAM\x20policy)\x20governed\x20by\x20the\n\ - \x20organization\x20policies\x20of\x20the\n\x20[AnalyzeOrgPolicyGoverned\ - AssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGoverned\ - AssetsRequest.constraint].\n\n\r\n\x05\x04;\x03\x02\x01\x12\x04\xa1\x14\ - \n\x17\n\x10\n\x06\x04;\x03\x02\x08\0\x12\x06\xa2\x14\x04\xac\x14\x05\n\ - \x0f\n\x07\x04;\x03\x02\x08\0\x01\x12\x04\xa2\x14\n\x18\n\xd5\x01\n\x06\ - \x04;\x03\x02\x02\0\x12\x04\xa6\x14\x06-\x1a\xc4\x01\x20A\x20Google\x20C\ - loud\x20resource\x20governed\x20by\x20the\x20organization\n\x20policies\ - \x20of\x20the\n\x20[AnalyzeOrgPolicyGovernedAssetsRequest.constraint][go\ - ogle.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].\n\ - \n\x0f\n\x07\x04;\x03\x02\x02\0\x06\x12\x04\xa6\x14\x06\x16\n\x0f\n\x07\ - \x04;\x03\x02\x02\0\x01\x12\x04\xa6\x14\x17(\n\x0f\n\x07\x04;\x03\x02\ - \x02\0\x03\x12\x04\xa6\x14+,\n\xcb\x01\n\x06\x04;\x03\x02\x02\x01\x12\ - \x04\xab\x14\x060\x1a\xba\x01\x20An\x20IAM\x20policy\x20governed\x20by\ - \x20the\x20organization\n\x20policies\x20of\x20the\n\x20[AnalyzeOrgPolic\ - yGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolic\ - yGovernedAssetsRequest.constraint].\n\n\x0f\n\x07\x04;\x03\x02\x02\x01\ - \x06\x12\x04\xab\x14\x06\x17\n\x0f\n\x07\x04;\x03\x02\x02\x01\x01\x12\ - \x04\xab\x14\x18+\n\x0f\n\x07\x04;\x03\x02\x02\x01\x03\x12\x04\xab\x14./\ - \n\xc7\x03\n\x06\x04;\x03\x02\x02\x02\x12\x04\xb3\x14\x04.\x1a\xb6\x03\ - \x20The\x20consolidated\x20policy\x20for\x20the\x20analyzed\x20asset.\ - \x20The\x20consolidated\n\x20policy\x20is\x20computed\x20by\x20merging\ - \x20and\x20evaluating\n\x20[AnalyzeOrgPolicyGovernedAssetsResponse.Gover\ - nedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAs\ - setsResponse.GovernedAsset.policy_bundle].\n\x20The\x20evaluation\x20wil\ - l\x20respect\x20the\x20organization\x20policy\x20[hierarchy\n\x20rules](\ - https://cloud.google.com/resource-manager/docs/organization-policy/under\ - standing-hierarchy).\n\n\x0f\n\x07\x04;\x03\x02\x02\x02\x06\x12\x04\xb3\ - \x14\x04\x15\n\x0f\n\x07\x04;\x03\x02\x02\x02\x01\x12\x04\xb3\x14\x16)\n\ - \x0f\n\x07\x04;\x03\x02\x02\x02\x03\x12\x04\xb3\x14,-\n\x9d\x02\n\x06\ - \x04;\x03\x02\x02\x03\x12\x04\xbb\x14\x041\x1a\x8c\x02\x20The\x20ordered\ - \x20list\x20of\x20all\x20organization\x20policies\x20from\x20the\n\x20[A\ - nalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_r\ - esource][]\n\x20to\x20the\x20scope\x20specified\x20in\x20the\x20request.\ - \n\n\x20If\x20the\x20constraint\x20is\x20defined\x20with\x20default\x20p\ - olicy,\x20it\x20will\x20also\x20appear\x20in\n\x20the\x20list.\n\n\x0f\n\ - \x07\x04;\x03\x02\x02\x03\x04\x12\x04\xbb\x14\x04\x0c\n\x0f\n\x07\x04;\ - \x03\x02\x02\x03\x06\x12\x04\xbb\x14\r\x1e\n\x0f\n\x07\x04;\x03\x02\x02\ - \x03\x01\x12\x04\xbb\x14\x1f,\n\x0f\n\x07\x04;\x03\x02\x02\x03\x03\x12\ - \x04\xbb\x14/0\n9\n\x04\x04;\x02\0\x12\x04\xbf\x14\x02-\x1a+\x20The\x20l\ - ist\x20of\x20the\x20analyzed\x20governed\x20assets.\n\n\r\n\x05\x04;\x02\ - \0\x04\x12\x04\xbf\x14\x02\n\n\r\n\x05\x04;\x02\0\x06\x12\x04\xbf\x14\ - \x0b\x18\n\r\n\x05\x04;\x02\0\x01\x12\x04\xbf\x14\x19(\n\r\n\x05\x04;\ - \x02\0\x03\x12\x04\xbf\x14+,\n@\n\x04\x04;\x02\x01\x12\x04\xc2\x14\x02-\ - \x1a2\x20The\x20definition\x20of\x20the\x20constraint\x20in\x20the\x20re\ - quest.\n\n\r\n\x05\x04;\x02\x01\x06\x12\x04\xc2\x14\x02\x1d\n\r\n\x05\ - \x04;\x02\x01\x01\x12\x04\xc2\x14\x1e(\n\r\n\x05\x04;\x02\x01\x03\x12\ - \x04\xc2\x14+,\n\xc3\x01\n\x04\x04;\x02\x02\x12\x04\xc6\x14\x02\x1d\x1a\ - \xb4\x01\x20The\x20page\x20token\x20to\x20fetch\x20the\x20next\x20page\ - \x20for\n\x20[AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][go\ - ogle.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_asse\ - ts].\n\n\r\n\x05\x04;\x02\x02\x05\x12\x04\xc6\x14\x02\x08\n\r\n\x05\x04;\ - \x02\x02\x01\x12\x04\xc6\x14\t\x18\n\r\n\x05\x04;\x02\x02\x03\x12\x04\ - \xc6\x14\x1b\x1c\n#\n\x02\x05\0\x12\x06\xca\x14\0\xdf\x14\x01\x1a\x15\ - \x20Asset\x20content\x20type.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xca\x14\ - \x05\x10\n)\n\x04\x05\0\x02\0\x12\x04\xcc\x14\x02\x1f\x1a\x1b\x20Unspeci\ - fied\x20content\x20type.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xcc\x14\x02\ - \x1a\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xcc\x14\x1d\x1e\n\"\n\x04\x05\0\ - \x02\x01\x12\x04\xcf\x14\x02\x0f\x1a\x14\x20Resource\x20metadata.\n\n\r\ - \n\x05\x05\0\x02\x01\x01\x12\x04\xcf\x14\x02\n\n\r\n\x05\x05\0\x02\x01\ - \x02\x12\x04\xcf\x14\r\x0e\n8\n\x04\x05\0\x02\x02\x12\x04\xd2\x14\x02\ + \x20exist,\x20the\x20export\x20call\x20returns\n\x20an\x20error.\n\n\r\n\ + \x05\x04\x06\x02\0\x05\x12\x04\xcd\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\ + \x01\x12\x04\xcd\x01\t\x10\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xcd\x01\ + \x13\x14\n\r\n\x05\x04\x06\x02\0\x08\x12\x04\xcd\x01\x15=\n\x10\n\x08\ + \x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xcd\x01\x16<\n\xae\x01\n\x04\x04\ + \x06\x02\x01\x12\x04\xd2\x01\x02<\x1a\x9f\x01\x20Required.\x20The\x20Big\ + Query\x20table\x20to\x20which\x20the\x20snapshot\x20result\x20should\x20\ + be\n\x20written.\x20If\x20this\x20table\x20does\x20not\x20exist,\x20a\ + \x20new\x20table\x20with\x20the\x20given\x20name\n\x20will\x20be\x20crea\ + ted.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xd2\x01\x02\x08\n\r\n\x05\ + \x04\x06\x02\x01\x01\x12\x04\xd2\x01\t\x0e\n\r\n\x05\x04\x06\x02\x01\x03\ + \x12\x04\xd2\x01\x11\x12\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\xd2\x01\ + \x13;\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\x04\xd2\x01\x14:\n\ + \xf9\x01\n\x04\x04\x06\x02\x02\x12\x04\xd8\x01\x02\x11\x1a\xea\x01\x20If\ + \x20the\x20destination\x20table\x20already\x20exists\x20and\x20this\x20f\ + lag\x20is\x20`TRUE`,\x20the\n\x20table\x20will\x20be\x20overwritten\x20b\ + y\x20the\x20contents\x20of\x20assets\x20snapshot.\x20If\x20the\x20flag\n\ + \x20is\x20not\x20set\x20and\x20the\x20destination\x20table\x20already\ + \x20exists,\x20the\x20export\x20call\n\x20returns\x20an\x20error.\n\n\r\ + \n\x05\x04\x06\x02\x02\x05\x12\x04\xd8\x01\x02\x06\n\r\n\x05\x04\x06\x02\ + \x02\x01\x12\x04\xd8\x01\x07\x0c\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\ + \xd8\x01\x0f\x10\n#\n\x02\x05\0\x12\x06\xdc\x01\0\xeb\x01\x01\x1a\x15\ + \x20Asset\x20content\x20type.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xdc\x01\ + \x05\x10\n)\n\x04\x05\0\x02\0\x12\x04\xde\x01\x02\x1f\x1a\x1b\x20Unspeci\ + fied\x20content\x20type.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xde\x01\x02\ + \x1a\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xde\x01\x1d\x1e\n\"\n\x04\x05\0\ + \x02\x01\x12\x04\xe1\x01\x02\x0f\x1a\x14\x20Resource\x20metadata.\n\n\r\ + \n\x05\x05\0\x02\x01\x01\x12\x04\xe1\x01\x02\n\n\r\n\x05\x05\0\x02\x01\ + \x02\x12\x04\xe1\x01\r\x0e\n8\n\x04\x05\0\x02\x02\x12\x04\xe4\x01\x02\ \x11\x1a*\x20The\x20actual\x20IAM\x20policy\x20set\x20on\x20a\x20resourc\ - e.\n\n\r\n\x05\x05\0\x02\x02\x01\x12\x04\xd2\x14\x02\x0c\n\r\n\x05\x05\0\ - \x02\x02\x02\x12\x04\xd2\x14\x0f\x10\n8\n\x04\x05\0\x02\x03\x12\x04\xd5\ - \x14\x02\x11\x1a*\x20The\x20organization\x20policy\x20set\x20on\x20an\ - \x20asset.\n\n\r\n\x05\x05\0\x02\x03\x01\x12\x04\xd5\x14\x02\x0c\n\r\n\ - \x05\x05\0\x02\x03\x02\x12\x04\xd5\x14\x0f\x10\nB\n\x04\x05\0\x02\x04\ - \x12\x04\xd8\x14\x02\x14\x1a4\x20The\x20Access\x20Context\x20Manager\x20\ - policy\x20set\x20on\x20an\x20asset.\n\n\r\n\x05\x05\0\x02\x04\x01\x12\ - \x04\xd8\x14\x02\x0f\n\r\n\x05\x05\0\x02\x04\x02\x12\x04\xd8\x14\x12\x13\ - \n5\n\x04\x05\0\x02\x05\x12\x04\xdb\x14\x02\x13\x1a'\x20The\x20runtime\ - \x20OS\x20Inventory\x20information.\n\n\r\n\x05\x05\0\x02\x05\x01\x12\ - \x04\xdb\x14\x02\x0e\n\r\n\x05\x05\0\x02\x05\x02\x12\x04\xdb\x14\x11\x12\ - \n&\n\x04\x05\0\x02\x06\x12\x04\xde\x14\x02\x13\x1a\x18\x20The\x20relate\ - d\x20resources.\n\n\r\n\x05\x05\0\x02\x06\x01\x12\x04\xde\x14\x02\x0e\n\ - \r\n\x05\x05\0\x02\x06\x02\x12\x04\xde\x14\x11\x12b\x06proto3\ + e.\n\n\r\n\x05\x05\0\x02\x02\x01\x12\x04\xe4\x01\x02\x0c\n\r\n\x05\x05\0\ + \x02\x02\x02\x12\x04\xe4\x01\x0f\x10\n>\n\x04\x05\0\x02\x03\x12\x04\xe7\ + \x01\x02\x11\x1a0\x20The\x20Cloud\x20Organization\x20Policy\x20set\x20on\ + \x20an\x20asset.\n\n\r\n\x05\x05\0\x02\x03\x01\x12\x04\xe7\x01\x02\x0c\n\ + \r\n\x05\x05\0\x02\x03\x02\x12\x04\xe7\x01\x0f\x10\nI\n\x04\x05\0\x02\ + \x04\x12\x04\xea\x01\x02\x14\x1a;\x20The\x20Cloud\x20Access\x20context\ + \x20mananger\x20Policy\x20set\x20on\x20an\x20asset.\n\n\r\n\x05\x05\0\ + \x02\x04\x01\x12\x04\xea\x01\x02\x0f\n\r\n\x05\x05\0\x02\x04\x02\x12\x04\ + \xea\x01\x12\x13b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(9); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::assets::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(7); + messages.push(ExportAssetsRequest::generated_message_descriptor_data()); + messages.push(ExportAssetsResponse::generated_message_descriptor_data()); + messages.push(BatchGetAssetsHistoryRequest::generated_message_descriptor_data()); + messages.push(BatchGetAssetsHistoryResponse::generated_message_descriptor_data()); + messages.push(OutputConfig::generated_message_descriptor_data()); + messages.push(GcsDestination::generated_message_descriptor_data()); + messages.push(BigQueryDestination::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(ContentType::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/cloud/asset/v1/asset_service_grpc.rs b/googleapis-raw/src/cloud/asset/v1/asset_service_grpc.rs index 1a53eea..9e9a1b0 100644 --- a/googleapis-raw/src/cloud/asset/v1/asset_service_grpc.rs +++ b/googleapis-raw/src/cloud/asset/v1/asset_service_grpc.rs @@ -23,13 +23,6 @@ const METHOD_ASSET_SERVICE_EXPORT_ASSETS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/ListAssets", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_ASSET_SERVICE_BATCH_GET_ASSETS_HISTORY: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.cloud.asset.v1.AssetService/BatchGetAssetsHistory", @@ -37,146 +30,6 @@ const METHOD_ASSET_SERVICE_BATCH_GET_ASSETS_HISTORY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/CreateFeed", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_GET_FEED: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/GetFeed", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_LIST_FEEDS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/ListFeeds", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_UPDATE_FEED: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/UpdateFeed", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_DELETE_FEED: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/DeleteFeed", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_SEARCH_ALL_RESOURCES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/SearchAllResources", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_SEARCH_ALL_IAM_POLICIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/SearchAllIamPolicies", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeIamPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY_LONGRUNNING: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeIamPolicyLongrunning", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_MOVE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeMove", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_QUERY_ASSETS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/QueryAssets", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_CREATE_SAVED_QUERY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/CreateSavedQuery", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_GET_SAVED_QUERY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/GetSavedQuery", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_LIST_SAVED_QUERIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/ListSavedQueries", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_UPDATE_SAVED_QUERY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/UpdateSavedQuery", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_DELETE_SAVED_QUERY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/DeleteSavedQuery", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_BATCH_GET_EFFECTIVE_IAM_POLICIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/BatchGetEffectiveIamPolicies", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicies", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedContainers", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_ASSETS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.asset.v1.AssetService/AnalyzeOrgPolicyGovernedAssets", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct AssetServiceClient { pub client: ::grpcio::Client, @@ -205,22 +58,6 @@ impl AssetServiceClient { self.export_assets_async_opt(req, ::grpcio::CallOption::default()) } - pub fn list_assets_opt(&self, req: &super::asset_service::ListAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_LIST_ASSETS, req, opt) - } - - pub fn list_assets(&self, req: &super::asset_service::ListAssetsRequest) -> ::grpcio::Result { - self.list_assets_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_assets_async_opt(&self, req: &super::asset_service::ListAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_LIST_ASSETS, req, opt) - } - - pub fn list_assets_async(&self, req: &super::asset_service::ListAssetsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_assets_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn batch_get_assets_history_opt(&self, req: &super::asset_service::BatchGetAssetsHistoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_ASSET_SERVICE_BATCH_GET_ASSETS_HISTORY, req, opt) } @@ -236,326 +73,6 @@ impl AssetServiceClient { pub fn batch_get_assets_history_async(&self, req: &super::asset_service::BatchGetAssetsHistoryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.batch_get_assets_history_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn create_feed_opt(&self, req: &super::asset_service::CreateFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_CREATE_FEED, req, opt) - } - - pub fn create_feed(&self, req: &super::asset_service::CreateFeedRequest) -> ::grpcio::Result { - self.create_feed_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_feed_async_opt(&self, req: &super::asset_service::CreateFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_CREATE_FEED, req, opt) - } - - pub fn create_feed_async(&self, req: &super::asset_service::CreateFeedRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_feed_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_feed_opt(&self, req: &super::asset_service::GetFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_GET_FEED, req, opt) - } - - pub fn get_feed(&self, req: &super::asset_service::GetFeedRequest) -> ::grpcio::Result { - self.get_feed_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_feed_async_opt(&self, req: &super::asset_service::GetFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_GET_FEED, req, opt) - } - - pub fn get_feed_async(&self, req: &super::asset_service::GetFeedRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_feed_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_feeds_opt(&self, req: &super::asset_service::ListFeedsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_LIST_FEEDS, req, opt) - } - - pub fn list_feeds(&self, req: &super::asset_service::ListFeedsRequest) -> ::grpcio::Result { - self.list_feeds_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_feeds_async_opt(&self, req: &super::asset_service::ListFeedsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_LIST_FEEDS, req, opt) - } - - pub fn list_feeds_async(&self, req: &super::asset_service::ListFeedsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_feeds_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_feed_opt(&self, req: &super::asset_service::UpdateFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_UPDATE_FEED, req, opt) - } - - pub fn update_feed(&self, req: &super::asset_service::UpdateFeedRequest) -> ::grpcio::Result { - self.update_feed_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_feed_async_opt(&self, req: &super::asset_service::UpdateFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_UPDATE_FEED, req, opt) - } - - pub fn update_feed_async(&self, req: &super::asset_service::UpdateFeedRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_feed_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_feed_opt(&self, req: &super::asset_service::DeleteFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_DELETE_FEED, req, opt) - } - - pub fn delete_feed(&self, req: &super::asset_service::DeleteFeedRequest) -> ::grpcio::Result { - self.delete_feed_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_feed_async_opt(&self, req: &super::asset_service::DeleteFeedRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_DELETE_FEED, req, opt) - } - - pub fn delete_feed_async(&self, req: &super::asset_service::DeleteFeedRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_feed_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn search_all_resources_opt(&self, req: &super::asset_service::SearchAllResourcesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_SEARCH_ALL_RESOURCES, req, opt) - } - - pub fn search_all_resources(&self, req: &super::asset_service::SearchAllResourcesRequest) -> ::grpcio::Result { - self.search_all_resources_opt(req, ::grpcio::CallOption::default()) - } - - pub fn search_all_resources_async_opt(&self, req: &super::asset_service::SearchAllResourcesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_SEARCH_ALL_RESOURCES, req, opt) - } - - pub fn search_all_resources_async(&self, req: &super::asset_service::SearchAllResourcesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.search_all_resources_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn search_all_iam_policies_opt(&self, req: &super::asset_service::SearchAllIamPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_SEARCH_ALL_IAM_POLICIES, req, opt) - } - - pub fn search_all_iam_policies(&self, req: &super::asset_service::SearchAllIamPoliciesRequest) -> ::grpcio::Result { - self.search_all_iam_policies_opt(req, ::grpcio::CallOption::default()) - } - - pub fn search_all_iam_policies_async_opt(&self, req: &super::asset_service::SearchAllIamPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_SEARCH_ALL_IAM_POLICIES, req, opt) - } - - pub fn search_all_iam_policies_async(&self, req: &super::asset_service::SearchAllIamPoliciesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.search_all_iam_policies_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_iam_policy_opt(&self, req: &super::asset_service::AnalyzeIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY, req, opt) - } - - pub fn analyze_iam_policy(&self, req: &super::asset_service::AnalyzeIamPolicyRequest) -> ::grpcio::Result { - self.analyze_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_iam_policy_async_opt(&self, req: &super::asset_service::AnalyzeIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY, req, opt) - } - - pub fn analyze_iam_policy_async(&self, req: &super::asset_service::AnalyzeIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_iam_policy_longrunning_opt(&self, req: &super::asset_service::AnalyzeIamPolicyLongrunningRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY_LONGRUNNING, req, opt) - } - - pub fn analyze_iam_policy_longrunning(&self, req: &super::asset_service::AnalyzeIamPolicyLongrunningRequest) -> ::grpcio::Result { - self.analyze_iam_policy_longrunning_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_iam_policy_longrunning_async_opt(&self, req: &super::asset_service::AnalyzeIamPolicyLongrunningRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY_LONGRUNNING, req, opt) - } - - pub fn analyze_iam_policy_longrunning_async(&self, req: &super::asset_service::AnalyzeIamPolicyLongrunningRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_iam_policy_longrunning_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_move_opt(&self, req: &super::asset_service::AnalyzeMoveRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_MOVE, req, opt) - } - - pub fn analyze_move(&self, req: &super::asset_service::AnalyzeMoveRequest) -> ::grpcio::Result { - self.analyze_move_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_move_async_opt(&self, req: &super::asset_service::AnalyzeMoveRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_MOVE, req, opt) - } - - pub fn analyze_move_async(&self, req: &super::asset_service::AnalyzeMoveRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_move_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn query_assets_opt(&self, req: &super::asset_service::QueryAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_QUERY_ASSETS, req, opt) - } - - pub fn query_assets(&self, req: &super::asset_service::QueryAssetsRequest) -> ::grpcio::Result { - self.query_assets_opt(req, ::grpcio::CallOption::default()) - } - - pub fn query_assets_async_opt(&self, req: &super::asset_service::QueryAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_QUERY_ASSETS, req, opt) - } - - pub fn query_assets_async(&self, req: &super::asset_service::QueryAssetsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.query_assets_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_saved_query_opt(&self, req: &super::asset_service::CreateSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_CREATE_SAVED_QUERY, req, opt) - } - - pub fn create_saved_query(&self, req: &super::asset_service::CreateSavedQueryRequest) -> ::grpcio::Result { - self.create_saved_query_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_saved_query_async_opt(&self, req: &super::asset_service::CreateSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_CREATE_SAVED_QUERY, req, opt) - } - - pub fn create_saved_query_async(&self, req: &super::asset_service::CreateSavedQueryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_saved_query_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_saved_query_opt(&self, req: &super::asset_service::GetSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_GET_SAVED_QUERY, req, opt) - } - - pub fn get_saved_query(&self, req: &super::asset_service::GetSavedQueryRequest) -> ::grpcio::Result { - self.get_saved_query_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_saved_query_async_opt(&self, req: &super::asset_service::GetSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_GET_SAVED_QUERY, req, opt) - } - - pub fn get_saved_query_async(&self, req: &super::asset_service::GetSavedQueryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_saved_query_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_saved_queries_opt(&self, req: &super::asset_service::ListSavedQueriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_LIST_SAVED_QUERIES, req, opt) - } - - pub fn list_saved_queries(&self, req: &super::asset_service::ListSavedQueriesRequest) -> ::grpcio::Result { - self.list_saved_queries_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_saved_queries_async_opt(&self, req: &super::asset_service::ListSavedQueriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_LIST_SAVED_QUERIES, req, opt) - } - - pub fn list_saved_queries_async(&self, req: &super::asset_service::ListSavedQueriesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_saved_queries_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_saved_query_opt(&self, req: &super::asset_service::UpdateSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_UPDATE_SAVED_QUERY, req, opt) - } - - pub fn update_saved_query(&self, req: &super::asset_service::UpdateSavedQueryRequest) -> ::grpcio::Result { - self.update_saved_query_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_saved_query_async_opt(&self, req: &super::asset_service::UpdateSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_UPDATE_SAVED_QUERY, req, opt) - } - - pub fn update_saved_query_async(&self, req: &super::asset_service::UpdateSavedQueryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_saved_query_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_saved_query_opt(&self, req: &super::asset_service::DeleteSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_DELETE_SAVED_QUERY, req, opt) - } - - pub fn delete_saved_query(&self, req: &super::asset_service::DeleteSavedQueryRequest) -> ::grpcio::Result { - self.delete_saved_query_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_saved_query_async_opt(&self, req: &super::asset_service::DeleteSavedQueryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_DELETE_SAVED_QUERY, req, opt) - } - - pub fn delete_saved_query_async(&self, req: &super::asset_service::DeleteSavedQueryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_saved_query_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn batch_get_effective_iam_policies_opt(&self, req: &super::asset_service::BatchGetEffectiveIamPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_BATCH_GET_EFFECTIVE_IAM_POLICIES, req, opt) - } - - pub fn batch_get_effective_iam_policies(&self, req: &super::asset_service::BatchGetEffectiveIamPoliciesRequest) -> ::grpcio::Result { - self.batch_get_effective_iam_policies_opt(req, ::grpcio::CallOption::default()) - } - - pub fn batch_get_effective_iam_policies_async_opt(&self, req: &super::asset_service::BatchGetEffectiveIamPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_BATCH_GET_EFFECTIVE_IAM_POLICIES, req, opt) - } - - pub fn batch_get_effective_iam_policies_async(&self, req: &super::asset_service::BatchGetEffectiveIamPoliciesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.batch_get_effective_iam_policies_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policies_opt(&self, req: &super::asset_service::AnalyzeOrgPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICIES, req, opt) - } - - pub fn analyze_org_policies(&self, req: &super::asset_service::AnalyzeOrgPoliciesRequest) -> ::grpcio::Result { - self.analyze_org_policies_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policies_async_opt(&self, req: &super::asset_service::AnalyzeOrgPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICIES, req, opt) - } - - pub fn analyze_org_policies_async(&self, req: &super::asset_service::AnalyzeOrgPoliciesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_org_policies_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policy_governed_containers_opt(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedContainersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS, req, opt) - } - - pub fn analyze_org_policy_governed_containers(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedContainersRequest) -> ::grpcio::Result { - self.analyze_org_policy_governed_containers_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policy_governed_containers_async_opt(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedContainersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS, req, opt) - } - - pub fn analyze_org_policy_governed_containers_async(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedContainersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_org_policy_governed_containers_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policy_governed_assets_opt(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_ASSETS, req, opt) - } - - pub fn analyze_org_policy_governed_assets(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedAssetsRequest) -> ::grpcio::Result { - self.analyze_org_policy_governed_assets_opt(req, ::grpcio::CallOption::default()) - } - - pub fn analyze_org_policy_governed_assets_async_opt(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedAssetsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_ASSETS, req, opt) - } - - pub fn analyze_org_policy_governed_assets_async(&self, req: &super::asset_service::AnalyzeOrgPolicyGovernedAssetsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.analyze_org_policy_governed_assets_async_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -565,72 +82,9 @@ pub trait AssetService { fn export_assets(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::ExportAssetsRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn list_assets(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::ListAssetsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn batch_get_assets_history(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::BatchGetAssetsHistoryRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn create_feed(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::CreateFeedRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_feed(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::GetFeedRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_feeds(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::ListFeedsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_feed(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::UpdateFeedRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_feed(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::DeleteFeedRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn search_all_resources(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::SearchAllResourcesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn search_all_iam_policies(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::SearchAllIamPoliciesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeIamPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_iam_policy_longrunning(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeIamPolicyLongrunningRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_move(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeMoveRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn query_assets(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::QueryAssetsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_saved_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::CreateSavedQueryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_saved_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::GetSavedQueryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_saved_queries(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::ListSavedQueriesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_saved_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::UpdateSavedQueryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_saved_query(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::DeleteSavedQueryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn batch_get_effective_iam_policies(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::BatchGetEffectiveIamPoliciesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_org_policies(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeOrgPoliciesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_org_policy_governed_containers(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeOrgPolicyGovernedContainersRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn analyze_org_policy_governed_assets(&mut self, ctx: ::grpcio::RpcContext, _req: super::asset_service::AnalyzeOrgPolicyGovernedAssetsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_asset_service(s: S) -> ::grpcio::Service { @@ -639,93 +93,9 @@ pub fn create_asset_service(s: S) -> : builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_EXPORT_ASSETS, move |ctx, req, resp| { instance.export_assets(ctx, req, resp) }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_LIST_ASSETS, move |ctx, req, resp| { - instance.list_assets(ctx, req, resp) - }); - let mut instance = s.clone(); + let mut instance = s; builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_BATCH_GET_ASSETS_HISTORY, move |ctx, req, resp| { instance.batch_get_assets_history(ctx, req, resp) }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_CREATE_FEED, move |ctx, req, resp| { - instance.create_feed(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_GET_FEED, move |ctx, req, resp| { - instance.get_feed(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_LIST_FEEDS, move |ctx, req, resp| { - instance.list_feeds(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_UPDATE_FEED, move |ctx, req, resp| { - instance.update_feed(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_DELETE_FEED, move |ctx, req, resp| { - instance.delete_feed(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_SEARCH_ALL_RESOURCES, move |ctx, req, resp| { - instance.search_all_resources(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_SEARCH_ALL_IAM_POLICIES, move |ctx, req, resp| { - instance.search_all_iam_policies(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY, move |ctx, req, resp| { - instance.analyze_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_IAM_POLICY_LONGRUNNING, move |ctx, req, resp| { - instance.analyze_iam_policy_longrunning(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_MOVE, move |ctx, req, resp| { - instance.analyze_move(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_QUERY_ASSETS, move |ctx, req, resp| { - instance.query_assets(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_CREATE_SAVED_QUERY, move |ctx, req, resp| { - instance.create_saved_query(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_GET_SAVED_QUERY, move |ctx, req, resp| { - instance.get_saved_query(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_LIST_SAVED_QUERIES, move |ctx, req, resp| { - instance.list_saved_queries(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_UPDATE_SAVED_QUERY, move |ctx, req, resp| { - instance.update_saved_query(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_DELETE_SAVED_QUERY, move |ctx, req, resp| { - instance.delete_saved_query(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_BATCH_GET_EFFECTIVE_IAM_POLICIES, move |ctx, req, resp| { - instance.batch_get_effective_iam_policies(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICIES, move |ctx, req, resp| { - instance.analyze_org_policies(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_CONTAINERS, move |ctx, req, resp| { - instance.analyze_org_policy_governed_containers(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_ASSET_SERVICE_ANALYZE_ORG_POLICY_GOVERNED_ASSETS, move |ctx, req, resp| { - instance.analyze_org_policy_governed_assets(ctx, req, resp) - }); builder.build() } diff --git a/googleapis-raw/src/cloud/asset/v1/assets.rs b/googleapis-raw/src/cloud/asset/v1/assets.rs index 0fbf81b..1924895 100644 --- a/googleapis-raw/src/cloud/asset/v1/assets.rs +++ b/googleapis-raw/src/cloud/asset/v1/assets.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,25 +16,33 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/cloud/asset/v1/assets.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Temporal asset. In addition to the asset, the temporal asset includes the +/// status of the asset and valid from and to time of it. +// @@protoc_insertion_point(message:google.cloud.asset.v1.TemporalAsset) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TemporalAsset { // message fields - pub window: ::protobuf::SingularPtrField, + /// The time window when the asset data and state was observed. + // @@protoc_insertion_point(field:google.cloud.asset.v1.TemporalAsset.window) + pub window: ::protobuf::MessageField, + /// If the asset is deleted or not. + // @@protoc_insertion_point(field:google.cloud.asset.v1.TemporalAsset.deleted) pub deleted: bool, - pub asset: ::protobuf::SingularPtrField, - pub prior_asset_state: TemporalAsset_PriorAssetState, - pub prior_asset: ::protobuf::SingularPtrField, + /// Asset. + // @@protoc_insertion_point(field:google.cloud.asset.v1.TemporalAsset.asset) + pub asset: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.TemporalAsset.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TemporalAsset { @@ -47,181 +56,53 @@ impl TemporalAsset { ::std::default::Default::default() } - // .google.cloud.asset.v1.TimeWindow window = 1; - - - pub fn get_window(&self) -> &TimeWindow { - self.window.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_window(&mut self) { - self.window.clear(); - } - - pub fn has_window(&self) -> bool { - self.window.is_some() - } - - // Param is passed by value, moved - pub fn set_window(&mut self, v: TimeWindow) { - self.window = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_window(&mut self) -> &mut TimeWindow { - if self.window.is_none() { - self.window.set_default(); - } - self.window.as_mut().unwrap() - } - - // Take field - pub fn take_window(&mut self) -> TimeWindow { - self.window.take().unwrap_or_else(|| TimeWindow::new()) - } - - // bool deleted = 2; - - - pub fn get_deleted(&self) -> bool { - self.deleted - } - pub fn clear_deleted(&mut self) { - self.deleted = false; - } - - // Param is passed by value, moved - pub fn set_deleted(&mut self, v: bool) { - self.deleted = v; - } - - // .google.cloud.asset.v1.Asset asset = 3; - - - pub fn get_asset(&self) -> &Asset { - self.asset.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_asset(&mut self) { - self.asset.clear(); - } - - pub fn has_asset(&self) -> bool { - self.asset.is_some() - } - - // Param is passed by value, moved - pub fn set_asset(&mut self, v: Asset) { - self.asset = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset(&mut self) -> &mut Asset { - if self.asset.is_none() { - self.asset.set_default(); - } - self.asset.as_mut().unwrap() - } - - // Take field - pub fn take_asset(&mut self) -> Asset { - self.asset.take().unwrap_or_else(|| Asset::new()) - } - - // .google.cloud.asset.v1.TemporalAsset.PriorAssetState prior_asset_state = 4; - - - pub fn get_prior_asset_state(&self) -> TemporalAsset_PriorAssetState { - self.prior_asset_state - } - pub fn clear_prior_asset_state(&mut self) { - self.prior_asset_state = TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_prior_asset_state(&mut self, v: TemporalAsset_PriorAssetState) { - self.prior_asset_state = v; - } - - // .google.cloud.asset.v1.Asset prior_asset = 5; - - - pub fn get_prior_asset(&self) -> &Asset { - self.prior_asset.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_prior_asset(&mut self) { - self.prior_asset.clear(); - } - - pub fn has_prior_asset(&self) -> bool { - self.prior_asset.is_some() - } - - // Param is passed by value, moved - pub fn set_prior_asset(&mut self, v: Asset) { - self.prior_asset = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_prior_asset(&mut self) -> &mut Asset { - if self.prior_asset.is_none() { - self.prior_asset.set_default(); - } - self.prior_asset.as_mut().unwrap() - } - - // Take field - pub fn take_prior_asset(&mut self) -> Asset { - self.prior_asset.take().unwrap_or_else(|| Asset::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, TimeWindow>( + "window", + |m: &TemporalAsset| { &m.window }, + |m: &mut TemporalAsset| { &mut m.window }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "deleted", + |m: &TemporalAsset| { &m.deleted }, + |m: &mut TemporalAsset| { &mut m.deleted }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Asset>( + "asset", + |m: &TemporalAsset| { &m.asset }, + |m: &mut TemporalAsset| { &mut m.asset }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TemporalAsset", + fields, + oneofs, + ) } } impl ::protobuf::Message for TemporalAsset { + const NAME: &'static str = "TemporalAsset"; + fn is_initialized(&self) -> bool { - for v in &self.window { - if !v.is_initialized() { - return false; - } - }; - for v in &self.asset { - if !v.is_initialized() { - return false; - } - }; - for v in &self.prior_asset { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.window)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.deleted = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.asset)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.window)?; }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.prior_asset_state, 4, &mut self.unknown_fields)? + 16 => { + self.deleted = is.read_bool()?; }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.prior_asset)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.asset)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -230,220 +111,100 @@ impl ::protobuf::Message for TemporalAsset { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.window.as_ref() { + if let Some(v) = self.window.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.deleted != false { - my_size += 2; - } - if let Some(ref v) = self.asset.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.prior_asset_state != TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.prior_asset_state); + my_size += 1 + 1; } - if let Some(ref v) = self.prior_asset.as_ref() { + if let Some(v) = self.asset.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.window.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.window.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } if self.deleted != false { os.write_bool(2, self.deleted)?; } - if let Some(ref v) = self.asset.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.prior_asset_state != TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.prior_asset_state))?; - } - if let Some(ref v) = self.prior_asset.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.asset.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TemporalAsset { TemporalAsset::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "window", - |m: &TemporalAsset| { &m.window }, - |m: &mut TemporalAsset| { &mut m.window }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "deleted", - |m: &TemporalAsset| { &m.deleted }, - |m: &mut TemporalAsset| { &mut m.deleted }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "asset", - |m: &TemporalAsset| { &m.asset }, - |m: &mut TemporalAsset| { &mut m.asset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "prior_asset_state", - |m: &TemporalAsset| { &m.prior_asset_state }, - |m: &mut TemporalAsset| { &mut m.prior_asset_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "prior_asset", - |m: &TemporalAsset| { &m.prior_asset }, - |m: &mut TemporalAsset| { &mut m.prior_asset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TemporalAsset", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static TemporalAsset { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TemporalAsset::new) - } -} - -impl ::protobuf::Clear for TemporalAsset { fn clear(&mut self) { self.window.clear(); self.deleted = false; self.asset.clear(); - self.prior_asset_state = TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED; - self.prior_asset.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TemporalAsset { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + self.special_fields.clear(); } -} -impl ::protobuf::reflect::ProtobufValue for TemporalAsset { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn default_instance() -> &'static TemporalAsset { + static instance: TemporalAsset = TemporalAsset { + window: ::protobuf::MessageField::none(), + deleted: false, + asset: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TemporalAsset_PriorAssetState { - PRIOR_ASSET_STATE_UNSPECIFIED = 0, - PRESENT = 1, - INVALID = 2, - DOES_NOT_EXIST = 3, - DELETED = 4, -} - -impl ::protobuf::ProtobufEnum for TemporalAsset_PriorAssetState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(TemporalAsset_PriorAssetState::PRESENT), - 2 => ::std::option::Option::Some(TemporalAsset_PriorAssetState::INVALID), - 3 => ::std::option::Option::Some(TemporalAsset_PriorAssetState::DOES_NOT_EXIST), - 4 => ::std::option::Option::Some(TemporalAsset_PriorAssetState::DELETED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [TemporalAsset_PriorAssetState] = &[ - TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED, - TemporalAsset_PriorAssetState::PRESENT, - TemporalAsset_PriorAssetState::INVALID, - TemporalAsset_PriorAssetState::DOES_NOT_EXIST, - TemporalAsset_PriorAssetState::DELETED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TemporalAsset.PriorAssetState", file_descriptor_proto()) - }) +impl ::protobuf::MessageFull for TemporalAsset { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TemporalAsset").unwrap()).clone() } } -impl ::std::marker::Copy for TemporalAsset_PriorAssetState { -} - -impl ::std::default::Default for TemporalAsset_PriorAssetState { - fn default() -> Self { - TemporalAsset_PriorAssetState::PRIOR_ASSET_STATE_UNSPECIFIED +impl ::std::fmt::Display for TemporalAsset { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for TemporalAsset_PriorAssetState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for TemporalAsset { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A time window of (start_time, end_time]. +// @@protoc_insertion_point(message:google.cloud.asset.v1.TimeWindow) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TimeWindow { // message fields - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Start time of the time window (exclusive). + // @@protoc_insertion_point(field:google.cloud.asset.v1.TimeWindow.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// End time of the time window (inclusive). + /// Current timestamp if not specified. + // @@protoc_insertion_point(field:google.cloud.asset.v1.TimeWindow.end_time) + pub end_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.TimeWindow.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TimeWindow { @@ -457,100 +218,45 @@ impl TimeWindow { ::std::default::Default::default() } - // .google.protobuf.Timestamp start_time = 1; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 2; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &TimeWindow| { &m.start_time }, + |m: &mut TimeWindow| { &mut m.start_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "end_time", + |m: &TimeWindow| { &m.end_time }, + |m: &mut TimeWindow| { &mut m.end_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TimeWindow", + fields, + oneofs, + ) } } impl ::protobuf::Message for TimeWindow { + const NAME: &'static str = "TimeWindow"; + fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.end_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -559,132 +265,103 @@ impl ::protobuf::Message for TimeWindow { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.start_time.as_ref() { + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.end_time.as_ref() { + if let Some(v) = self.end_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.end_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TimeWindow { TimeWindow::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &TimeWindow| { &m.start_time }, - |m: &mut TimeWindow| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &TimeWindow| { &m.end_time }, - |m: &mut TimeWindow| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TimeWindow", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.start_time.clear(); + self.end_time.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static TimeWindow { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimeWindow::new) + static instance: TimeWindow = TimeWindow { + start_time: ::protobuf::MessageField::none(), + end_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TimeWindow { - fn clear(&mut self) { - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TimeWindow { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TimeWindow").unwrap()).clone() } } -impl ::std::fmt::Debug for TimeWindow { +impl ::std::fmt::Display for TimeWindow { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TimeWindow { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Cloud asset. This includes all Google Cloud Platform resources, +/// Cloud IAM policies, and other non-GCP assets. +// @@protoc_insertion_point(message:google.cloud.asset.v1.Asset) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Asset { // message fields - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The full name of the asset. For example: + /// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. + /// See [Resource + /// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + /// for more information. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Asset.name) pub name: ::std::string::String, + /// Type of the asset. Example: "compute.googleapis.com/Disk". + // @@protoc_insertion_point(field:google.cloud.asset.v1.Asset.asset_type) pub asset_type: ::std::string::String, - pub resource: ::protobuf::SingularPtrField, - pub iam_policy: ::protobuf::SingularPtrField, - pub org_policy: ::protobuf::RepeatedField, - pub os_inventory: ::protobuf::SingularPtrField, - pub related_assets: ::protobuf::SingularPtrField, - pub related_asset: ::protobuf::SingularPtrField, - pub ancestors: ::protobuf::RepeatedField<::std::string::String>, - // message oneof groups - pub access_context_policy: ::std::option::Option, + /// Representation of the resource. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Asset.resource) + pub resource: ::protobuf::MessageField, + /// Representation of the actual Cloud IAM policy set on a cloud resource. For + /// each resource, there must be at most one Cloud IAM policy set on it. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Asset.iam_policy) + pub iam_policy: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.Asset.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Asset { @@ -693,575 +370,292 @@ impl<'a> ::std::default::Default for &'a Asset { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Asset_oneof_access_context_policy { - access_policy(super::access_policy::AccessPolicy), - access_level(super::access_level::AccessLevel), - service_perimeter(super::service_perimeter::ServicePerimeter), -} - impl Asset { pub fn new() -> Asset { ::std::default::Default::default() } - // .google.protobuf.Timestamp update_time = 11; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Asset| { &m.name }, + |m: &mut Asset| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "asset_type", + |m: &Asset| { &m.asset_type }, + |m: &mut Asset| { &mut m.asset_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Resource>( + "resource", + |m: &Asset| { &m.resource }, + |m: &mut Asset| { &mut m.resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::policy::Policy>( + "iam_policy", + |m: &Asset| { &m.iam_policy }, + |m: &mut Asset| { &mut m.iam_policy }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Asset", + fields, + oneofs, + ) } +} - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } +impl ::protobuf::Message for Asset { + const NAME: &'static str = "Asset"; - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.asset_type = is.read_string()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.resource)?; + }, + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.iam_policy)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.update_time.as_mut().unwrap() + ::std::result::Result::Ok(()) } - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.asset_type.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.asset_type); + } + if let Some(v) = self.resource.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.iam_policy.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.asset_type.is_empty() { + os.write_string(2, &self.asset_type)?; + } + if let Some(v) = self.resource.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + if let Some(v) = self.iam_policy.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn new() -> Asset { + Asset::new() } - // string asset_type = 2; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { + fn clear(&mut self) { + self.name.clear(); self.asset_type.clear(); + self.resource.clear(); + self.iam_policy.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; + fn default_instance() -> &'static Asset { + static instance: Asset = Asset { + name: ::std::string::String::new(), + asset_type: ::std::string::String::new(), + resource: ::protobuf::MessageField::none(), + iam_policy: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type +impl ::protobuf::MessageFull for Asset { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Asset").unwrap()).clone() } +} - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) +impl ::std::fmt::Display for Asset { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.cloud.asset.v1.Resource resource = 3; - - - pub fn get_resource(&self) -> &Resource { - self.resource.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } +impl ::protobuf::reflect::ProtobufValue for Asset { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn has_resource(&self) -> bool { - self.resource.is_some() - } +/// Representation of a cloud resource. +// @@protoc_insertion_point(message:google.cloud.asset.v1.Resource) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Resource { + // message fields + /// The API version. Example: "v1". + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.version) + pub version: ::std::string::String, + /// The URL of the discovery document containing the resource's JSON schema. + /// For example: + /// `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. + /// It will be left unspecified for resources without a discovery-based API, + /// such as Cloud Bigtable. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.discovery_document_uri) + pub discovery_document_uri: ::std::string::String, + /// The JSON schema name listed in the discovery document. + /// Example: "Project". It will be left unspecified for resources (such as + /// Cloud Bigtable) without a discovery-based API. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.discovery_name) + pub discovery_name: ::std::string::String, + /// The REST URL for accessing the resource. An HTTP GET operation using this + /// URL returns the resource itself. + /// Example: + /// `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. + /// It will be left unspecified for resources without a REST API. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.resource_url) + pub resource_url: ::std::string::String, + /// The full name of the immediate parent of this resource. See + /// [Resource + /// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) + /// for more information. + /// + /// For GCP assets, it is the parent resource defined in the [Cloud IAM policy + /// hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). + /// For example: + /// `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. + /// + /// For third-party assets, it is up to the users to define. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.parent) + pub parent: ::std::string::String, + /// The content of the resource, in which some sensitive fields are scrubbed + /// away and may not be present. + // @@protoc_insertion_point(field:google.cloud.asset.v1.Resource.data) + pub data: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + // special fields + // @@protoc_insertion_point(special_field:google.cloud.asset.v1.Resource.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_resource(&mut self, v: Resource) { - self.resource = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a Resource { + fn default() -> &'a Resource { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut Resource { - if self.resource.is_none() { - self.resource.set_default(); - } - self.resource.as_mut().unwrap() +impl Resource { + pub fn new() -> Resource { + ::std::default::Default::default() } - // Take field - pub fn take_resource(&mut self) -> Resource { - self.resource.take().unwrap_or_else(|| Resource::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "version", + |m: &Resource| { &m.version }, + |m: &mut Resource| { &mut m.version }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "discovery_document_uri", + |m: &Resource| { &m.discovery_document_uri }, + |m: &mut Resource| { &mut m.discovery_document_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "discovery_name", + |m: &Resource| { &m.discovery_name }, + |m: &mut Resource| { &mut m.discovery_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource_url", + |m: &Resource| { &m.resource_url }, + |m: &mut Resource| { &mut m.resource_url }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &Resource| { &m.parent }, + |m: &mut Resource| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "data", + |m: &Resource| { &m.data }, + |m: &mut Resource| { &mut m.data }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Resource", + fields, + oneofs, + ) } +} - // .google.iam.v1.Policy iam_policy = 4; - +impl ::protobuf::Message for Resource { + const NAME: &'static str = "Resource"; - pub fn get_iam_policy(&self) -> &super::policy::Policy { - self.iam_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_policy(&mut self) { - self.iam_policy.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_iam_policy(&self) -> bool { - self.iam_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_policy(&mut self, v: super::policy::Policy) { - self.iam_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_iam_policy(&mut self) -> &mut super::policy::Policy { - if self.iam_policy.is_none() { - self.iam_policy.set_default(); - } - self.iam_policy.as_mut().unwrap() - } - - // Take field - pub fn take_iam_policy(&mut self) -> super::policy::Policy { - self.iam_policy.take().unwrap_or_else(|| super::policy::Policy::new()) - } - - // repeated .google.cloud.orgpolicy.v1.Policy org_policy = 6; - - - pub fn get_org_policy(&self) -> &[super::orgpolicy::Policy] { - &self.org_policy - } - pub fn clear_org_policy(&mut self) { - self.org_policy.clear(); - } - - // Param is passed by value, moved - pub fn set_org_policy(&mut self, v: ::protobuf::RepeatedField) { - self.org_policy = v; - } - - // Mutable pointer to the field. - pub fn mut_org_policy(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.org_policy - } - - // Take field - pub fn take_org_policy(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.org_policy, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7; - - - pub fn get_access_policy(&self) -> &super::access_policy::AccessPolicy { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_access_policy(&mut self) { - self.access_context_policy = ::std::option::Option::None; - } - - pub fn has_access_policy(&self) -> bool { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_access_policy(&mut self, v: super::access_policy::AccessPolicy) { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(v)) - } - - // Mutable pointer to the field. - pub fn mut_access_policy(&mut self) -> &mut super::access_policy::AccessPolicy { - if let ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(_)) = self.access_context_policy { - } else { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(super::access_policy::AccessPolicy::new())); - } - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_access_policy(&mut self) -> super::access_policy::AccessPolicy { - if self.has_access_policy() { - match self.access_context_policy.take() { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(v)) => v, - _ => panic!(), - } - } else { - super::access_policy::AccessPolicy::new() - } - } - - // .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8; - - - pub fn get_access_level(&self) -> &super::access_level::AccessLevel { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_access_level(&mut self) { - self.access_context_policy = ::std::option::Option::None; - } - - pub fn has_access_level(&self) -> bool { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_access_level(&mut self, v: super::access_level::AccessLevel) { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(v)) - } - - // Mutable pointer to the field. - pub fn mut_access_level(&mut self) -> &mut super::access_level::AccessLevel { - if let ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(_)) = self.access_context_policy { - } else { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(super::access_level::AccessLevel::new())); - } - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_access_level(&mut self) -> super::access_level::AccessLevel { - if self.has_access_level() { - match self.access_context_policy.take() { - ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(v)) => v, - _ => panic!(), - } - } else { - super::access_level::AccessLevel::new() - } - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 9; - - - pub fn get_service_perimeter(&self) -> &super::service_perimeter::ServicePerimeter { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_service_perimeter(&mut self) { - self.access_context_policy = ::std::option::Option::None; - } - - pub fn has_service_perimeter(&self) -> bool { - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_service_perimeter(&mut self, v: super::service_perimeter::ServicePerimeter) { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(v)) - } - - // Mutable pointer to the field. - pub fn mut_service_perimeter(&mut self) -> &mut super::service_perimeter::ServicePerimeter { - if let ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(_)) = self.access_context_policy { - } else { - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(super::service_perimeter::ServicePerimeter::new())); - } - match self.access_context_policy { - ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_service_perimeter(&mut self) -> super::service_perimeter::ServicePerimeter { - if self.has_service_perimeter() { - match self.access_context_policy.take() { - ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(v)) => v, - _ => panic!(), - } - } else { - super::service_perimeter::ServicePerimeter::new() - } - } - - // .google.cloud.osconfig.v1.Inventory os_inventory = 12; - - - pub fn get_os_inventory(&self) -> &super::inventory::Inventory { - self.os_inventory.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_inventory(&mut self) { - self.os_inventory.clear(); - } - - pub fn has_os_inventory(&self) -> bool { - self.os_inventory.is_some() - } - - // Param is passed by value, moved - pub fn set_os_inventory(&mut self, v: super::inventory::Inventory) { - self.os_inventory = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_inventory(&mut self) -> &mut super::inventory::Inventory { - if self.os_inventory.is_none() { - self.os_inventory.set_default(); - } - self.os_inventory.as_mut().unwrap() - } - - // Take field - pub fn take_os_inventory(&mut self) -> super::inventory::Inventory { - self.os_inventory.take().unwrap_or_else(|| super::inventory::Inventory::new()) - } - - // .google.cloud.asset.v1.RelatedAssets related_assets = 13; - - - pub fn get_related_assets(&self) -> &RelatedAssets { - self.related_assets.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_related_assets(&mut self) { - self.related_assets.clear(); - } - - pub fn has_related_assets(&self) -> bool { - self.related_assets.is_some() - } - - // Param is passed by value, moved - pub fn set_related_assets(&mut self, v: RelatedAssets) { - self.related_assets = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_related_assets(&mut self) -> &mut RelatedAssets { - if self.related_assets.is_none() { - self.related_assets.set_default(); - } - self.related_assets.as_mut().unwrap() - } - - // Take field - pub fn take_related_assets(&mut self) -> RelatedAssets { - self.related_assets.take().unwrap_or_else(|| RelatedAssets::new()) - } - - // .google.cloud.asset.v1.RelatedAsset related_asset = 15; - - - pub fn get_related_asset(&self) -> &RelatedAsset { - self.related_asset.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_related_asset(&mut self) { - self.related_asset.clear(); - } - - pub fn has_related_asset(&self) -> bool { - self.related_asset.is_some() - } - - // Param is passed by value, moved - pub fn set_related_asset(&mut self, v: RelatedAsset) { - self.related_asset = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_related_asset(&mut self) -> &mut RelatedAsset { - if self.related_asset.is_none() { - self.related_asset.set_default(); - } - self.related_asset.as_mut().unwrap() - } - - // Take field - pub fn take_related_asset(&mut self) -> RelatedAsset { - self.related_asset.take().unwrap_or_else(|| RelatedAsset::new()) - } - - // repeated string ancestors = 10; - - - pub fn get_ancestors(&self) -> &[::std::string::String] { - &self.ancestors - } - pub fn clear_ancestors(&mut self) { - self.ancestors.clear(); - } - - // Param is passed by value, moved - pub fn set_ancestors(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ancestors = v; - } - - // Mutable pointer to the field. - pub fn mut_ancestors(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ancestors - } - - // Take field - pub fn take_ancestors(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ancestors, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Asset { - fn is_initialized(&self) -> bool { - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.resource { - if !v.is_initialized() { - return false; - } - }; - for v in &self.iam_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.org_policy { - if !v.is_initialized() { - return false; - } - }; - if let Some(Asset_oneof_access_context_policy::access_policy(ref v)) = self.access_context_policy { - if !v.is_initialized() { - return false; - } - } - if let Some(Asset_oneof_access_context_policy::access_level(ref v)) = self.access_context_policy { - if !v.is_initialized() { - return false; - } - } - if let Some(Asset_oneof_access_context_policy::service_perimeter(ref v)) = self.access_context_policy { - if !v.is_initialized() { - return false; - } - } - for v in &self.os_inventory { - if !v.is_initialized() { - return false; - } - }; - for v in &self.related_assets { - if !v.is_initialized() { - return false; - } - }; - for v in &self.related_asset { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.iam_policy)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.org_policy)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_policy(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::access_level(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.version = is.read_string()?; }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.access_context_policy = ::std::option::Option::Some(Asset_oneof_access_context_policy::service_perimeter(is.read_message()?)); + 18 => { + self.discovery_document_uri = is.read_string()?; }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_inventory)?; + 26 => { + self.discovery_name = is.read_string()?; }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.related_assets)?; + 34 => { + self.resource_url = is.read_string()?; }, - 15 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.related_asset)?; + 42 => { + self.parent = is.read_string()?; }, - 10 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ancestors)?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.data)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1270,8450 +664,283 @@ impl ::protobuf::Message for Asset { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.asset_type); + if !self.version.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.version); } - if let Some(ref v) = self.resource.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.discovery_document_uri.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.discovery_document_uri); } - if let Some(ref v) = self.iam_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.discovery_name.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.discovery_name); } - for value in &self.org_policy { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.os_inventory.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.resource_url.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.resource_url); } - if let Some(ref v) = self.related_assets.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.parent); } - if let Some(ref v) = self.related_asset.as_ref() { + if let Some(v) = self.data.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - for value in &self.ancestors { - my_size += ::protobuf::rt::string_size(10, &value); - }; - if let ::std::option::Option::Some(ref v) = self.access_context_policy { - match v { - &Asset_oneof_access_context_policy::access_policy(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Asset_oneof_access_context_policy::access_level(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Asset_oneof_access_context_policy::service_perimeter(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.asset_type.is_empty() { - os.write_string(2, &self.asset_type)?; - } - if let Some(ref v) = self.resource.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.version.is_empty() { + os.write_string(1, &self.version)?; } - if let Some(ref v) = self.iam_policy.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.discovery_document_uri.is_empty() { + os.write_string(2, &self.discovery_document_uri)?; } - for v in &self.org_policy { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.os_inventory.as_ref() { - os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.discovery_name.is_empty() { + os.write_string(3, &self.discovery_name)?; } - if let Some(ref v) = self.related_assets.as_ref() { - os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.resource_url.is_empty() { + os.write_string(4, &self.resource_url)?; } - if let Some(ref v) = self.related_asset.as_ref() { - os.write_tag(15, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.parent.is_empty() { + os.write_string(5, &self.parent)?; } - for v in &self.ancestors { - os.write_string(10, &v)?; - }; - if let ::std::option::Option::Some(ref v) = self.access_context_policy { - match v { - &Asset_oneof_access_context_policy::access_policy(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Asset_oneof_access_context_policy::access_level(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Asset_oneof_access_context_policy::service_perimeter(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + if let Some(v) = self.data.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> Asset { - Asset::new() + fn new() -> Resource { + Resource::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Asset| { &m.update_time }, - |m: &mut Asset| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Asset| { &m.name }, - |m: &mut Asset| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &Asset| { &m.asset_type }, - |m: &mut Asset| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource", - |m: &Asset| { &m.resource }, - |m: &mut Asset| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_policy", - |m: &Asset| { &m.iam_policy }, - |m: &mut Asset| { &mut m.iam_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "org_policy", - |m: &Asset| { &m.org_policy }, - |m: &mut Asset| { &mut m.org_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::access_policy::AccessPolicy>( - "access_policy", - Asset::has_access_policy, - Asset::get_access_policy, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::access_level::AccessLevel>( - "access_level", - Asset::has_access_level, - Asset::get_access_level, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::service_perimeter::ServicePerimeter>( - "service_perimeter", - Asset::has_service_perimeter, - Asset::get_service_perimeter, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_inventory", - |m: &Asset| { &m.os_inventory }, - |m: &mut Asset| { &mut m.os_inventory }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "related_assets", - |m: &Asset| { &m.related_assets }, - |m: &mut Asset| { &mut m.related_assets }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "related_asset", - |m: &Asset| { &m.related_asset }, - |m: &mut Asset| { &mut m.related_asset }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ancestors", - |m: &Asset| { &m.ancestors }, - |m: &mut Asset| { &mut m.ancestors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Asset", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.version.clear(); + self.discovery_document_uri.clear(); + self.discovery_name.clear(); + self.resource_url.clear(); + self.parent.clear(); + self.data.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static Asset { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Asset::new) + fn default_instance() -> &'static Resource { + static instance: Resource = Resource { + version: ::std::string::String::new(), + discovery_document_uri: ::std::string::String::new(), + discovery_name: ::std::string::String::new(), + resource_url: ::std::string::String::new(), + parent: ::std::string::String::new(), + data: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Asset { - fn clear(&mut self) { - self.update_time.clear(); - self.name.clear(); - self.asset_type.clear(); - self.resource.clear(); - self.iam_policy.clear(); - self.org_policy.clear(); - self.access_context_policy = ::std::option::Option::None; - self.access_context_policy = ::std::option::Option::None; - self.access_context_policy = ::std::option::Option::None; - self.os_inventory.clear(); - self.related_assets.clear(); - self.related_asset.clear(); - self.ancestors.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Resource { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Resource").unwrap()).clone() } } -impl ::std::fmt::Debug for Asset { +impl ::std::fmt::Display for Resource { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for Asset { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for Resource { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Resource { - // message fields - pub version: ::std::string::String, - pub discovery_document_uri: ::std::string::String, - pub discovery_name: ::std::string::String, - pub resource_url: ::std::string::String, - pub parent: ::std::string::String, - pub data: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub location: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\ + \x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\ + \x1agoogle/iam/v1/policy.proto\x1a\x19google/protobuf/any.proto\x1a\x1cg\ + oogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\ + \x01\n\rTemporalAsset\x129\n\x06window\x18\x01\x20\x01(\x0b2!.google.clo\ + ud.asset.v1.TimeWindowR\x06window\x12\x18\n\x07deleted\x18\x02\x20\x01(\ + \x08R\x07deleted\x122\n\x05asset\x18\x03\x20\x01(\x0b2\x1c.google.cloud.\ + asset.v1.AssetR\x05asset\"~\n\nTimeWindow\x129\n\nstart_time\x18\x01\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\ + \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\xd6\ + \x01\n\x05Asset\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1d\n\ + \nasset_type\x18\x02\x20\x01(\tR\tassetType\x12;\n\x08resource\x18\x03\ + \x20\x01(\x0b2\x1f.google.cloud.asset.v1.ResourceR\x08resource\x124\n\ni\ + am_policy\x18\x04\x20\x01(\x0b2\x15.google.iam.v1.PolicyR\tiamPolicy:'\ + \xeaA$\n\x1fcloudasset.googleapis.com/Asset\x12\x01*\"\xe9\x01\n\x08Reso\ + urce\x12\x18\n\x07version\x18\x01\x20\x01(\tR\x07version\x124\n\x16disco\ + very_document_uri\x18\x02\x20\x01(\tR\x14discoveryDocumentUri\x12%\n\x0e\ + discovery_name\x18\x03\x20\x01(\tR\rdiscoveryName\x12!\n\x0cresource_url\ + \x18\x04\x20\x01(\tR\x0bresourceUrl\x12\x16\n\x06parent\x18\x05\x20\x01(\ + \tR\x06parent\x12+\n\x04data\x18\x06\x20\x01(\x0b2\x17.google.protobuf.S\ + tructR\x04dataB\x98\x01\n\x19com.google.cloud.asset.v1B\nAssetProtoP\x01\ + Z:google.golang.org/genproto/googleapis/cloud/asset/v1;asset\xf8\x01\x01\ + \xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15Google\\Cloud\\Asset\\V1J\ + \xa2\x20\n\x06\x12\x04\x0f\0{\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\ + \xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\ + \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ + \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ + ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ + \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ + org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\ + \x01\x02\x12\x03\x11\0\x1e\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\ + \x01\x12\x03\x14\0#\n\t\n\x02\x03\x02\x12\x03\x15\0$\n\t\n\x02\x03\x03\ + \x12\x03\x16\0#\n\t\n\x02\x03\x04\x12\x03\x17\0&\n\t\n\x02\x03\x05\x12\ + \x03\x18\0)\n\x08\n\x01\x08\x12\x03\x1a\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ + \x1a\0\x1f\n\x08\n\x01\x08\x12\x03\x1b\02\n\t\n\x02\x08%\x12\x03\x1b\02\ + \n\x08\n\x01\x08\x12\x03\x1c\0Q\n\t\n\x02\x08\x0b\x12\x03\x1c\0Q\n\x08\n\ + \x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\x08\n\x01\x08\ + \x12\x03\x1e\0+\n\t\n\x02\x08\x08\x12\x03\x1e\0+\n\x08\n\x01\x08\x12\x03\ + \x1f\02\n\t\n\x02\x08\x01\x12\x03\x1f\02\n\x08\n\x01\x08\x12\x03\x20\02\ + \n\t\n\x02\x08)\x12\x03\x20\02\n\x8f\x01\n\x02\x04\0\x12\x04$\0-\x01\x1a\ + \x82\x01\x20Temporal\x20asset.\x20In\x20addition\x20to\x20the\x20asset,\ + \x20the\x20temporal\x20asset\x20includes\x20the\n\x20status\x20of\x20the\ + \x20asset\x20and\x20valid\x20from\x20and\x20to\x20time\x20of\x20it.\n\n\ + \n\n\x03\x04\0\x01\x12\x03$\x08\x15\nJ\n\x04\x04\0\x02\0\x12\x03&\x02\ + \x18\x1a=\x20The\x20time\x20window\x20when\x20the\x20asset\x20data\x20an\ + d\x20state\x20was\x20observed.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03&\ + \x02\x0c\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03&\r\x13\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03&\x16\x17\n.\n\x04\x04\0\x02\x01\x12\x03)\x02\x13\x1a!\ + \x20If\x20the\x20asset\x20is\x20deleted\x20or\x20not.\n\n\x0c\n\x05\x04\ + \0\x02\x01\x05\x12\x03)\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03)\ + \x07\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03)\x11\x12\n\x15\n\x04\x04\ + \0\x02\x02\x12\x03,\x02\x12\x1a\x08\x20Asset.\n\n\x0c\n\x05\x04\0\x02\ + \x02\x06\x12\x03,\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03,\x08\r\n\ + \x0c\n\x05\x04\0\x02\x02\x03\x12\x03,\x10\x11\n6\n\x02\x04\x01\x12\x040\ + \07\x01\x1a*\x20A\x20time\x20window\x20of\x20(start_time,\x20end_time].\ + \n\n\n\n\x03\x04\x01\x01\x12\x030\x08\x12\n9\n\x04\x04\x01\x02\0\x12\x03\ + 2\x02+\x1a,\x20Start\x20time\x20of\x20the\x20time\x20window\x20(exclusiv\ + e).\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x032\x02\x1b\n\x0c\n\x05\x04\x01\ + \x02\0\x01\x12\x032\x1c&\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x032)*\n\\\n\ + \x04\x04\x01\x02\x01\x12\x036\x02)\x1aO\x20End\x20time\x20of\x20the\x20t\ + ime\x20window\x20(inclusive).\n\x20Current\x20timestamp\x20if\x20not\x20\ + specified.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x036\x02\x1b\n\x0c\n\ + \x05\x04\x01\x02\x01\x01\x12\x036\x1c$\n\x0c\n\x05\x04\x01\x02\x01\x03\ + \x12\x036'(\n|\n\x02\x04\x02\x12\x04;\0Q\x01\x1ap\x20Cloud\x20asset.\x20\ + This\x20includes\x20all\x20Google\x20Cloud\x20Platform\x20resources,\n\ + \x20Cloud\x20IAM\x20policies,\x20and\x20other\x20non-GCP\x20assets.\n\n\ + \n\n\x03\x04\x02\x01\x12\x03;\x08\r\n\x0b\n\x03\x04\x02\x07\x12\x04<\x02\ + ?\x04\n\r\n\x05\x04\x02\x07\x9d\x08\x12\x04<\x02?\x04\n\x83\x02\n\x04\ + \x04\x02\x02\0\x12\x03F\x02\x12\x1a\xf5\x01\x20The\x20full\x20name\x20of\ + \x20the\x20asset.\x20For\x20example:\n\x20`//compute.googleapis.com/proj\ + ects/my_project_123/zones/zone1/instances/instance1`.\n\x20See\x20[Resou\ + rce\n\x20Names](https://cloud.google.com/apis/design/resource_names#full\ + _resource_name)\n\x20for\x20more\x20information.\n\n\x0c\n\x05\x04\x02\ + \x02\0\x05\x12\x03F\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03F\t\r\n\ + \x0c\n\x05\x04\x02\x02\0\x03\x12\x03F\x10\x11\nI\n\x04\x04\x02\x02\x01\ + \x12\x03I\x02\x18\x1a<\x20Type\x20of\x20the\x20asset.\x20Example:\x20\"c\ + ompute.googleapis.com/Disk\".\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03I\ + \x02\x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03I\t\x13\n\x0c\n\x05\x04\ + \x02\x02\x01\x03\x12\x03I\x16\x17\n.\n\x04\x04\x02\x02\x02\x12\x03L\x02\ + \x18\x1a!\x20Representation\x20of\x20the\x20resource.\n\n\x0c\n\x05\x04\ + \x02\x02\x02\x06\x12\x03L\x02\n\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03L\ + \x0b\x13\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03L\x16\x17\n\xa0\x01\n\ + \x04\x04\x02\x02\x03\x12\x03P\x02&\x1a\x92\x01\x20Representation\x20of\ + \x20the\x20actual\x20Cloud\x20IAM\x20policy\x20set\x20on\x20a\x20cloud\ + \x20resource.\x20For\n\x20each\x20resource,\x20there\x20must\x20be\x20at\ + \x20most\x20one\x20Cloud\x20IAM\x20policy\x20set\x20on\x20it.\n\n\x0c\n\ + \x05\x04\x02\x02\x03\x06\x12\x03P\x02\x16\n\x0c\n\x05\x04\x02\x02\x03\ + \x01\x12\x03P\x17!\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03P$%\n1\n\x02\ + \x04\x03\x12\x04T\0{\x01\x1a%\x20Representation\x20of\x20a\x20cloud\x20r\ + esource.\n\n\n\n\x03\x04\x03\x01\x12\x03T\x08\x10\n.\n\x04\x04\x03\x02\0\ + \x12\x03V\x02\x15\x1a!\x20The\x20API\x20version.\x20Example:\x20\"v1\".\ + \n\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03V\x02\x08\n\x0c\n\x05\x04\x03\ + \x02\0\x01\x12\x03V\t\x10\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03V\x13\x14\ + \n\x8c\x02\n\x04\x04\x03\x02\x01\x12\x03]\x02$\x1a\xfe\x01\x20The\x20URL\ + \x20of\x20the\x20discovery\x20document\x20containing\x20the\x20resource'\ + s\x20JSON\x20schema.\n\x20For\x20example:\n\x20`\"https://www.googleapis\ + .com/discovery/v1/apis/compute/v1/rest\"`.\n\x20It\x20will\x20be\x20left\ + \x20unspecified\x20for\x20resources\x20without\x20a\x20discovery-based\ + \x20API,\n\x20such\x20as\x20Cloud\x20Bigtable.\n\n\x0c\n\x05\x04\x03\x02\ + \x01\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03]\t\x1f\ + \n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03]\"#\n\xbe\x01\n\x04\x04\x03\x02\ + \x02\x12\x03b\x02\x1c\x1a\xb0\x01\x20The\x20JSON\x20schema\x20name\x20li\ + sted\x20in\x20the\x20discovery\x20document.\n\x20Example:\x20\"Project\"\ + .\x20It\x20will\x20be\x20left\x20unspecified\x20for\x20resources\x20(suc\ + h\x20as\n\x20Cloud\x20Bigtable)\x20without\x20a\x20discovery-based\x20AP\ + I.\n\n\x0c\n\x05\x04\x03\x02\x02\x05\x12\x03b\x02\x08\n\x0c\n\x05\x04\ + \x03\x02\x02\x01\x12\x03b\t\x17\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03b\ + \x1a\x1b\n\x8f\x02\n\x04\x04\x03\x02\x03\x12\x03i\x02\x1a\x1a\x81\x02\ + \x20The\x20REST\x20URL\x20for\x20accessing\x20the\x20resource.\x20An\x20\ + HTTP\x20GET\x20operation\x20using\x20this\n\x20URL\x20returns\x20the\x20\ + resource\x20itself.\n\x20Example:\n\x20`https://cloudresourcemanager.goo\ + gleapis.com/v1/projects/my-project-123`.\n\x20It\x20will\x20be\x20left\ + \x20unspecified\x20for\x20resources\x20without\x20a\x20REST\x20API.\n\n\ + \x0c\n\x05\x04\x03\x02\x03\x05\x12\x03i\x02\x08\n\x0c\n\x05\x04\x03\x02\ + \x03\x01\x12\x03i\t\x15\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\x03i\x18\x19\ + \n\xe1\x03\n\x04\x04\x03\x02\x04\x12\x03v\x02\x14\x1a\xd3\x03\x20The\x20\ + full\x20name\x20of\x20the\x20immediate\x20parent\x20of\x20this\x20resour\ + ce.\x20See\n\x20[Resource\n\x20Names](https://cloud.google.com/apis/desi\ + gn/resource_names#full_resource_name)\n\x20for\x20more\x20information.\n\ + \n\x20For\x20GCP\x20assets,\x20it\x20is\x20the\x20parent\x20resource\x20\ + defined\x20in\x20the\x20[Cloud\x20IAM\x20policy\n\x20hierarchy](https://\ + cloud.google.com/iam/docs/overview#policy_hierarchy).\n\x20For\x20exampl\ + e:\n\x20`\"//cloudresourcemanager.googleapis.com/projects/my_project_123\ + \"`.\n\n\x20For\x20third-party\x20assets,\x20it\x20is\x20up\x20to\x20the\ + \x20users\x20to\x20define.\n\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x03v\ + \x02\x08\n\x0c\n\x05\x04\x03\x02\x04\x01\x12\x03v\t\x0f\n\x0c\n\x05\x04\ + \x03\x02\x04\x03\x12\x03v\x12\x13\nu\n\x04\x04\x03\x02\x05\x12\x03z\x02\ + \"\x1ah\x20The\x20content\x20of\x20the\x20resource,\x20in\x20which\x20so\ + me\x20sensitive\x20fields\x20are\x20scrubbed\n\x20away\x20and\x20may\x20\ + not\x20be\x20present.\n\n\x0c\n\x05\x04\x03\x02\x05\x06\x12\x03z\x02\x18\ + \n\x0c\n\x05\x04\x03\x02\x05\x01\x12\x03z\x19\x1d\n\x0c\n\x05\x04\x03\ + \x02\x05\x03\x12\x03z\x20!b\x06proto3\ +"; -impl<'a> ::std::default::Default for &'a Resource { - fn default() -> &'a Resource { - ::default_instance() - } +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -impl Resource { - pub fn new() -> Resource { - ::std::default::Default::default() - } - - // string version = 1; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // string discovery_document_uri = 2; - - - pub fn get_discovery_document_uri(&self) -> &str { - &self.discovery_document_uri - } - pub fn clear_discovery_document_uri(&mut self) { - self.discovery_document_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_discovery_document_uri(&mut self, v: ::std::string::String) { - self.discovery_document_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_discovery_document_uri(&mut self) -> &mut ::std::string::String { - &mut self.discovery_document_uri - } - - // Take field - pub fn take_discovery_document_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.discovery_document_uri, ::std::string::String::new()) - } - - // string discovery_name = 3; - - - pub fn get_discovery_name(&self) -> &str { - &self.discovery_name - } - pub fn clear_discovery_name(&mut self) { - self.discovery_name.clear(); - } - - // Param is passed by value, moved - pub fn set_discovery_name(&mut self, v: ::std::string::String) { - self.discovery_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_discovery_name(&mut self) -> &mut ::std::string::String { - &mut self.discovery_name - } - - // Take field - pub fn take_discovery_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.discovery_name, ::std::string::String::new()) - } - - // string resource_url = 4; - - - pub fn get_resource_url(&self) -> &str { - &self.resource_url - } - pub fn clear_resource_url(&mut self) { - self.resource_url.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_url(&mut self, v: ::std::string::String) { - self.resource_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_url(&mut self) -> &mut ::std::string::String { - &mut self.resource_url - } - - // Take field - pub fn take_resource_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_url, ::std::string::String::new()) - } - - // string parent = 5; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.protobuf.Struct data = 6; - - - pub fn get_data(&self) -> &::protobuf::well_known_types::Struct { - self.data.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - pub fn has_data(&self) -> bool { - self.data.is_some() - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::protobuf::well_known_types::Struct) { - self.data = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.data.is_none() { - self.data.set_default(); - } - self.data.as_mut().unwrap() - } - - // Take field - pub fn take_data(&mut self) -> ::protobuf::well_known_types::Struct { - self.data.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // string location = 8; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Resource { - fn is_initialized(&self) -> bool { - for v in &self.data { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.discovery_document_uri)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.discovery_name)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_url)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.data)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.version); - } - if !self.discovery_document_uri.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.discovery_document_uri); - } - if !self.discovery_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.discovery_name); - } - if !self.resource_url.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.resource_url); - } - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.parent); - } - if let Some(ref v) = self.data.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.location.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.location); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.version.is_empty() { - os.write_string(1, &self.version)?; - } - if !self.discovery_document_uri.is_empty() { - os.write_string(2, &self.discovery_document_uri)?; - } - if !self.discovery_name.is_empty() { - os.write_string(3, &self.discovery_name)?; - } - if !self.resource_url.is_empty() { - os.write_string(4, &self.resource_url)?; - } - if !self.parent.is_empty() { - os.write_string(5, &self.parent)?; - } - if let Some(ref v) = self.data.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.location.is_empty() { - os.write_string(8, &self.location)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Resource { - Resource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Resource| { &m.version }, - |m: &mut Resource| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "discovery_document_uri", - |m: &Resource| { &m.discovery_document_uri }, - |m: &mut Resource| { &mut m.discovery_document_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "discovery_name", - |m: &Resource| { &m.discovery_name }, - |m: &mut Resource| { &mut m.discovery_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_url", - |m: &Resource| { &m.resource_url }, - |m: &mut Resource| { &mut m.resource_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &Resource| { &m.parent }, - |m: &mut Resource| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "data", - |m: &Resource| { &m.data }, - |m: &mut Resource| { &mut m.data }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &Resource| { &m.location }, - |m: &mut Resource| { &mut m.location }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Resource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Resource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Resource::new) - } -} - -impl ::protobuf::Clear for Resource { - fn clear(&mut self) { - self.version.clear(); - self.discovery_document_uri.clear(); - self.discovery_name.clear(); - self.resource_url.clear(); - self.parent.clear(); - self.data.clear(); - self.location.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Resource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Resource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RelatedAssets { - // message fields - pub relationship_attributes: ::protobuf::SingularPtrField, - pub assets: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RelatedAssets { - fn default() -> &'a RelatedAssets { - ::default_instance() - } -} - -impl RelatedAssets { - pub fn new() -> RelatedAssets { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1; - - - pub fn get_relationship_attributes(&self) -> &RelationshipAttributes { - self.relationship_attributes.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_relationship_attributes(&mut self) { - self.relationship_attributes.clear(); - } - - pub fn has_relationship_attributes(&self) -> bool { - self.relationship_attributes.is_some() - } - - // Param is passed by value, moved - pub fn set_relationship_attributes(&mut self, v: RelationshipAttributes) { - self.relationship_attributes = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_relationship_attributes(&mut self) -> &mut RelationshipAttributes { - if self.relationship_attributes.is_none() { - self.relationship_attributes.set_default(); - } - self.relationship_attributes.as_mut().unwrap() - } - - // Take field - pub fn take_relationship_attributes(&mut self) -> RelationshipAttributes { - self.relationship_attributes.take().unwrap_or_else(|| RelationshipAttributes::new()) - } - - // repeated .google.cloud.asset.v1.RelatedAsset assets = 2; - - - pub fn get_assets(&self) -> &[RelatedAsset] { - &self.assets - } - pub fn clear_assets(&mut self) { - self.assets.clear(); - } - - // Param is passed by value, moved - pub fn set_assets(&mut self, v: ::protobuf::RepeatedField) { - self.assets = v; - } - - // Mutable pointer to the field. - pub fn mut_assets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.assets - } - - // Take field - pub fn take_assets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.assets, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for RelatedAssets { - fn is_initialized(&self) -> bool { - for v in &self.relationship_attributes { - if !v.is_initialized() { - return false; - } - }; - for v in &self.assets { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.relationship_attributes)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.assets)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.relationship_attributes.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.assets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.relationship_attributes.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.assets { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RelatedAssets { - RelatedAssets::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "relationship_attributes", - |m: &RelatedAssets| { &m.relationship_attributes }, - |m: &mut RelatedAssets| { &mut m.relationship_attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "assets", - |m: &RelatedAssets| { &m.assets }, - |m: &mut RelatedAssets| { &mut m.assets }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RelatedAssets", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RelatedAssets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RelatedAssets::new) - } -} - -impl ::protobuf::Clear for RelatedAssets { - fn clear(&mut self) { - self.relationship_attributes.clear(); - self.assets.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RelatedAssets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RelatedAssets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RelationshipAttributes { - // message fields - pub field_type: ::std::string::String, - pub source_resource_type: ::std::string::String, - pub target_resource_type: ::std::string::String, - pub action: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RelationshipAttributes { - fn default() -> &'a RelationshipAttributes { - ::default_instance() - } -} - -impl RelationshipAttributes { - pub fn new() -> RelationshipAttributes { - ::std::default::Default::default() - } - - // string type = 4; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string source_resource_type = 1; - - - pub fn get_source_resource_type(&self) -> &str { - &self.source_resource_type - } - pub fn clear_source_resource_type(&mut self) { - self.source_resource_type.clear(); - } - - // Param is passed by value, moved - pub fn set_source_resource_type(&mut self, v: ::std::string::String) { - self.source_resource_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_resource_type(&mut self) -> &mut ::std::string::String { - &mut self.source_resource_type - } - - // Take field - pub fn take_source_resource_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_resource_type, ::std::string::String::new()) - } - - // string target_resource_type = 2; - - - pub fn get_target_resource_type(&self) -> &str { - &self.target_resource_type - } - pub fn clear_target_resource_type(&mut self) { - self.target_resource_type.clear(); - } - - // Param is passed by value, moved - pub fn set_target_resource_type(&mut self, v: ::std::string::String) { - self.target_resource_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_target_resource_type(&mut self) -> &mut ::std::string::String { - &mut self.target_resource_type - } - - // Take field - pub fn take_target_resource_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.target_resource_type, ::std::string::String::new()) - } - - // string action = 3; - - - pub fn get_action(&self) -> &str { - &self.action - } - pub fn clear_action(&mut self) { - self.action.clear(); - } - - // Param is passed by value, moved - pub fn set_action(&mut self, v: ::std::string::String) { - self.action = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_action(&mut self) -> &mut ::std::string::String { - &mut self.action - } - - // Take field - pub fn take_action(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.action, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RelationshipAttributes { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_resource_type)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target_resource_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.action)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.field_type); - } - if !self.source_resource_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.source_resource_type); - } - if !self.target_resource_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.target_resource_type); - } - if !self.action.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.action); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(4, &self.field_type)?; - } - if !self.source_resource_type.is_empty() { - os.write_string(1, &self.source_resource_type)?; - } - if !self.target_resource_type.is_empty() { - os.write_string(2, &self.target_resource_type)?; - } - if !self.action.is_empty() { - os.write_string(3, &self.action)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RelationshipAttributes { - RelationshipAttributes::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &RelationshipAttributes| { &m.field_type }, - |m: &mut RelationshipAttributes| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_resource_type", - |m: &RelationshipAttributes| { &m.source_resource_type }, - |m: &mut RelationshipAttributes| { &mut m.source_resource_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "target_resource_type", - |m: &RelationshipAttributes| { &m.target_resource_type }, - |m: &mut RelationshipAttributes| { &mut m.target_resource_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "action", - |m: &RelationshipAttributes| { &m.action }, - |m: &mut RelationshipAttributes| { &mut m.action }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RelationshipAttributes", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RelationshipAttributes { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RelationshipAttributes::new) - } -} - -impl ::protobuf::Clear for RelationshipAttributes { - fn clear(&mut self) { - self.field_type.clear(); - self.source_resource_type.clear(); - self.target_resource_type.clear(); - self.action.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RelationshipAttributes { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RelationshipAttributes { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RelatedAsset { - // message fields - pub asset: ::std::string::String, - pub asset_type: ::std::string::String, - pub ancestors: ::protobuf::RepeatedField<::std::string::String>, - pub relationship_type: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RelatedAsset { - fn default() -> &'a RelatedAsset { - ::default_instance() - } -} - -impl RelatedAsset { - pub fn new() -> RelatedAsset { - ::std::default::Default::default() - } - - // string asset = 1; - - - pub fn get_asset(&self) -> &str { - &self.asset - } - pub fn clear_asset(&mut self) { - self.asset.clear(); - } - - // Param is passed by value, moved - pub fn set_asset(&mut self, v: ::std::string::String) { - self.asset = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset(&mut self) -> &mut ::std::string::String { - &mut self.asset - } - - // Take field - pub fn take_asset(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset, ::std::string::String::new()) - } - - // string asset_type = 2; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { - self.asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type - } - - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) - } - - // repeated string ancestors = 3; - - - pub fn get_ancestors(&self) -> &[::std::string::String] { - &self.ancestors - } - pub fn clear_ancestors(&mut self) { - self.ancestors.clear(); - } - - // Param is passed by value, moved - pub fn set_ancestors(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ancestors = v; - } - - // Mutable pointer to the field. - pub fn mut_ancestors(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ancestors - } - - // Take field - pub fn take_ancestors(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ancestors, ::protobuf::RepeatedField::new()) - } - - // string relationship_type = 4; - - - pub fn get_relationship_type(&self) -> &str { - &self.relationship_type - } - pub fn clear_relationship_type(&mut self) { - self.relationship_type.clear(); - } - - // Param is passed by value, moved - pub fn set_relationship_type(&mut self, v: ::std::string::String) { - self.relationship_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_relationship_type(&mut self) -> &mut ::std::string::String { - &mut self.relationship_type - } - - // Take field - pub fn take_relationship_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.relationship_type, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RelatedAsset { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ancestors)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.relationship_type)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.asset.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.asset); - } - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.asset_type); - } - for value in &self.ancestors { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if !self.relationship_type.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.relationship_type); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.asset.is_empty() { - os.write_string(1, &self.asset)?; - } - if !self.asset_type.is_empty() { - os.write_string(2, &self.asset_type)?; - } - for v in &self.ancestors { - os.write_string(3, &v)?; - }; - if !self.relationship_type.is_empty() { - os.write_string(4, &self.relationship_type)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RelatedAsset { - RelatedAsset::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset", - |m: &RelatedAsset| { &m.asset }, - |m: &mut RelatedAsset| { &mut m.asset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &RelatedAsset| { &m.asset_type }, - |m: &mut RelatedAsset| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ancestors", - |m: &RelatedAsset| { &m.ancestors }, - |m: &mut RelatedAsset| { &mut m.ancestors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "relationship_type", - |m: &RelatedAsset| { &m.relationship_type }, - |m: &mut RelatedAsset| { &mut m.relationship_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RelatedAsset", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RelatedAsset { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RelatedAsset::new) - } -} - -impl ::protobuf::Clear for RelatedAsset { - fn clear(&mut self) { - self.asset.clear(); - self.asset_type.clear(); - self.ancestors.clear(); - self.relationship_type.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RelatedAsset { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RelatedAsset { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Tag { - // message oneof groups - pub _tag_key: ::std::option::Option, - pub _tag_value: ::std::option::Option, - pub _tag_value_id: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Tag { - fn default() -> &'a Tag { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Tag_oneof__tag_key { - tag_key(::std::string::String), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Tag_oneof__tag_value { - tag_value(::std::string::String), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Tag_oneof__tag_value_id { - tag_value_id(::std::string::String), -} - -impl Tag { - pub fn new() -> Tag { - ::std::default::Default::default() - } - - // string tag_key = 1; - - - pub fn get_tag_key(&self) -> &str { - match self._tag_key { - ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(ref v)) => v, - _ => "", - } - } - pub fn clear_tag_key(&mut self) { - self._tag_key = ::std::option::Option::None; - } - - pub fn has_tag_key(&self) -> bool { - match self._tag_key { - ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_tag_key(&mut self, v: ::std::string::String) { - self._tag_key = ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(v)) - } - - // Mutable pointer to the field. - pub fn mut_tag_key(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(_)) = self._tag_key { - } else { - self._tag_key = ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(::std::string::String::new())); - } - match self._tag_key { - ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_tag_key(&mut self) -> ::std::string::String { - if self.has_tag_key() { - match self._tag_key.take() { - ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string tag_value = 3; - - - pub fn get_tag_value(&self) -> &str { - match self._tag_value { - ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(ref v)) => v, - _ => "", - } - } - pub fn clear_tag_value(&mut self) { - self._tag_value = ::std::option::Option::None; - } - - pub fn has_tag_value(&self) -> bool { - match self._tag_value { - ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_tag_value(&mut self, v: ::std::string::String) { - self._tag_value = ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(v)) - } - - // Mutable pointer to the field. - pub fn mut_tag_value(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(_)) = self._tag_value { - } else { - self._tag_value = ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(::std::string::String::new())); - } - match self._tag_value { - ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_tag_value(&mut self) -> ::std::string::String { - if self.has_tag_value() { - match self._tag_value.take() { - ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string tag_value_id = 4; - - - pub fn get_tag_value_id(&self) -> &str { - match self._tag_value_id { - ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(ref v)) => v, - _ => "", - } - } - pub fn clear_tag_value_id(&mut self) { - self._tag_value_id = ::std::option::Option::None; - } - - pub fn has_tag_value_id(&self) -> bool { - match self._tag_value_id { - ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_tag_value_id(&mut self, v: ::std::string::String) { - self._tag_value_id = ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(v)) - } - - // Mutable pointer to the field. - pub fn mut_tag_value_id(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(_)) = self._tag_value_id { - } else { - self._tag_value_id = ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(::std::string::String::new())); - } - match self._tag_value_id { - ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_tag_value_id(&mut self) -> ::std::string::String { - if self.has_tag_value_id() { - match self._tag_value_id.take() { - ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for Tag { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._tag_key = ::std::option::Option::Some(Tag_oneof__tag_key::tag_key(is.read_string()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._tag_value = ::std::option::Option::Some(Tag_oneof__tag_value::tag_value(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._tag_value_id = ::std::option::Option::Some(Tag_oneof__tag_value_id::tag_value_id(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self._tag_key { - match v { - &Tag_oneof__tag_key::tag_key(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._tag_value { - match v { - &Tag_oneof__tag_value::tag_value(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._tag_value_id { - match v { - &Tag_oneof__tag_value_id::tag_value_id(ref v) => { - my_size += ::protobuf::rt::string_size(4, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self._tag_key { - match v { - &Tag_oneof__tag_key::tag_key(ref v) => { - os.write_string(1, v)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._tag_value { - match v { - &Tag_oneof__tag_value::tag_value(ref v) => { - os.write_string(3, v)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self._tag_value_id { - match v { - &Tag_oneof__tag_value_id::tag_value_id(ref v) => { - os.write_string(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Tag { - Tag::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "tag_key", - Tag::has_tag_key, - Tag::get_tag_key, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "tag_value", - Tag::has_tag_value, - Tag::get_tag_value, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "tag_value_id", - Tag::has_tag_value_id, - Tag::get_tag_value_id, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Tag", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Tag { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Tag::new) - } -} - -impl ::protobuf::Clear for Tag { - fn clear(&mut self) { - self._tag_key = ::std::option::Option::None; - self._tag_value = ::std::option::Option::None; - self._tag_value_id = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Tag { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Tag { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EffectiveTagDetails { - // message fields - pub effective_tags: ::protobuf::RepeatedField, - // message oneof groups - pub _attached_resource: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EffectiveTagDetails { - fn default() -> &'a EffectiveTagDetails { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum EffectiveTagDetails_oneof__attached_resource { - attached_resource(::std::string::String), -} - -impl EffectiveTagDetails { - pub fn new() -> EffectiveTagDetails { - ::std::default::Default::default() - } - - // string attached_resource = 1; - - - pub fn get_attached_resource(&self) -> &str { - match self._attached_resource { - ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(ref v)) => v, - _ => "", - } - } - pub fn clear_attached_resource(&mut self) { - self._attached_resource = ::std::option::Option::None; - } - - pub fn has_attached_resource(&self) -> bool { - match self._attached_resource { - ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_attached_resource(&mut self, v: ::std::string::String) { - self._attached_resource = ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(v)) - } - - // Mutable pointer to the field. - pub fn mut_attached_resource(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(_)) = self._attached_resource { - } else { - self._attached_resource = ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(::std::string::String::new())); - } - match self._attached_resource { - ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_attached_resource(&mut self) -> ::std::string::String { - if self.has_attached_resource() { - match self._attached_resource.take() { - ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // repeated .google.cloud.asset.v1.Tag effective_tags = 2; - - - pub fn get_effective_tags(&self) -> &[Tag] { - &self.effective_tags - } - pub fn clear_effective_tags(&mut self) { - self.effective_tags.clear(); - } - - // Param is passed by value, moved - pub fn set_effective_tags(&mut self, v: ::protobuf::RepeatedField) { - self.effective_tags = v; - } - - // Mutable pointer to the field. - pub fn mut_effective_tags(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.effective_tags - } - - // Take field - pub fn take_effective_tags(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.effective_tags, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for EffectiveTagDetails { - fn is_initialized(&self) -> bool { - for v in &self.effective_tags { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self._attached_resource = ::std::option::Option::Some(EffectiveTagDetails_oneof__attached_resource::attached_resource(is.read_string()?)); - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.effective_tags)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.effective_tags { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let ::std::option::Option::Some(ref v) = self._attached_resource { - match v { - &EffectiveTagDetails_oneof__attached_resource::attached_resource(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.effective_tags { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let ::std::option::Option::Some(ref v) = self._attached_resource { - match v { - &EffectiveTagDetails_oneof__attached_resource::attached_resource(ref v) => { - os.write_string(1, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> EffectiveTagDetails { - EffectiveTagDetails::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "attached_resource", - EffectiveTagDetails::has_attached_resource, - EffectiveTagDetails::get_attached_resource, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "effective_tags", - |m: &EffectiveTagDetails| { &m.effective_tags }, - |m: &mut EffectiveTagDetails| { &mut m.effective_tags }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EffectiveTagDetails", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static EffectiveTagDetails { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EffectiveTagDetails::new) - } -} - -impl ::protobuf::Clear for EffectiveTagDetails { - fn clear(&mut self) { - self._attached_resource = ::std::option::Option::None; - self.effective_tags.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EffectiveTagDetails { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for EffectiveTagDetails { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ResourceSearchResult { - // message fields - pub name: ::std::string::String, - pub asset_type: ::std::string::String, - pub project: ::std::string::String, - pub folders: ::protobuf::RepeatedField<::std::string::String>, - pub organization: ::std::string::String, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - pub location: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub network_tags: ::protobuf::RepeatedField<::std::string::String>, - pub kms_key: ::std::string::String, - pub kms_keys: ::protobuf::RepeatedField<::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub state: ::std::string::String, - pub additional_attributes: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub parent_full_resource_name: ::std::string::String, - pub versioned_resources: ::protobuf::RepeatedField, - pub attached_resources: ::protobuf::RepeatedField, - pub relationships: ::std::collections::HashMap<::std::string::String, RelatedResources>, - pub tag_keys: ::protobuf::RepeatedField<::std::string::String>, - pub tag_values: ::protobuf::RepeatedField<::std::string::String>, - pub tag_value_ids: ::protobuf::RepeatedField<::std::string::String>, - pub tags: ::protobuf::RepeatedField, - pub effective_tags: ::protobuf::RepeatedField, - pub parent_asset_type: ::std::string::String, - pub scc_security_marks: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResourceSearchResult { - fn default() -> &'a ResourceSearchResult { - ::default_instance() - } -} - -impl ResourceSearchResult { - pub fn new() -> ResourceSearchResult { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string asset_type = 2; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { - self.asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type - } - - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) - } - - // string project = 3; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // repeated string folders = 17; - - - pub fn get_folders(&self) -> &[::std::string::String] { - &self.folders - } - pub fn clear_folders(&mut self) { - self.folders.clear(); - } - - // Param is passed by value, moved - pub fn set_folders(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.folders = v; - } - - // Mutable pointer to the field. - pub fn mut_folders(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.folders - } - - // Take field - pub fn take_folders(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.folders, ::protobuf::RepeatedField::new()) - } - - // string organization = 18; - - - pub fn get_organization(&self) -> &str { - &self.organization - } - pub fn clear_organization(&mut self) { - self.organization.clear(); - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ::std::string::String) { - self.organization = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_organization(&mut self) -> &mut ::std::string::String { - &mut self.organization - } - - // Take field - pub fn take_organization(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.organization, ::std::string::String::new()) - } - - // string display_name = 4; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 5; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string location = 6; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.ResourceSearchResult.LabelsEntry labels = 7; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // repeated string network_tags = 8; - - - pub fn get_network_tags(&self) -> &[::std::string::String] { - &self.network_tags - } - pub fn clear_network_tags(&mut self) { - self.network_tags.clear(); - } - - // Param is passed by value, moved - pub fn set_network_tags(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.network_tags = v; - } - - // Mutable pointer to the field. - pub fn mut_network_tags(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.network_tags - } - - // Take field - pub fn take_network_tags(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.network_tags, ::protobuf::RepeatedField::new()) - } - - // string kms_key = 10; - - - pub fn get_kms_key(&self) -> &str { - &self.kms_key - } - pub fn clear_kms_key(&mut self) { - self.kms_key.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key(&mut self, v: ::std::string::String) { - self.kms_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key(&mut self) -> &mut ::std::string::String { - &mut self.kms_key - } - - // Take field - pub fn take_kms_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key, ::std::string::String::new()) - } - - // repeated string kms_keys = 28; - - - pub fn get_kms_keys(&self) -> &[::std::string::String] { - &self.kms_keys - } - pub fn clear_kms_keys(&mut self) { - self.kms_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.kms_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_kms_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.kms_keys - } - - // Take field - pub fn take_kms_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.kms_keys, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp create_time = 11; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 12; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string state = 13; - - - pub fn get_state(&self) -> &str { - &self.state - } - pub fn clear_state(&mut self) { - self.state.clear(); - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ::std::string::String) { - self.state = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_state(&mut self) -> &mut ::std::string::String { - &mut self.state - } - - // Take field - pub fn take_state(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.state, ::std::string::String::new()) - } - - // .google.protobuf.Struct additional_attributes = 9; - - - pub fn get_additional_attributes(&self) -> &::protobuf::well_known_types::Struct { - self.additional_attributes.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_additional_attributes(&mut self) { - self.additional_attributes.clear(); - } - - pub fn has_additional_attributes(&self) -> bool { - self.additional_attributes.is_some() - } - - // Param is passed by value, moved - pub fn set_additional_attributes(&mut self, v: ::protobuf::well_known_types::Struct) { - self.additional_attributes = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_additional_attributes(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.additional_attributes.is_none() { - self.additional_attributes.set_default(); - } - self.additional_attributes.as_mut().unwrap() - } - - // Take field - pub fn take_additional_attributes(&mut self) -> ::protobuf::well_known_types::Struct { - self.additional_attributes.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // string parent_full_resource_name = 19; - - - pub fn get_parent_full_resource_name(&self) -> &str { - &self.parent_full_resource_name - } - pub fn clear_parent_full_resource_name(&mut self) { - self.parent_full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_parent_full_resource_name(&mut self, v: ::std::string::String) { - self.parent_full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.parent_full_resource_name - } - - // Take field - pub fn take_parent_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent_full_resource_name, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 16; - - - pub fn get_versioned_resources(&self) -> &[VersionedResource] { - &self.versioned_resources - } - pub fn clear_versioned_resources(&mut self) { - self.versioned_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_versioned_resources(&mut self, v: ::protobuf::RepeatedField) { - self.versioned_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_versioned_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.versioned_resources - } - - // Take field - pub fn take_versioned_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.versioned_resources, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.AttachedResource attached_resources = 20; - - - pub fn get_attached_resources(&self) -> &[AttachedResource] { - &self.attached_resources - } - pub fn clear_attached_resources(&mut self) { - self.attached_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_attached_resources(&mut self, v: ::protobuf::RepeatedField) { - self.attached_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_attached_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.attached_resources - } - - // Take field - pub fn take_attached_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.attached_resources, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.ResourceSearchResult.RelationshipsEntry relationships = 21; - - - pub fn get_relationships(&self) -> &::std::collections::HashMap<::std::string::String, RelatedResources> { - &self.relationships - } - pub fn clear_relationships(&mut self) { - self.relationships.clear(); - } - - // Param is passed by value, moved - pub fn set_relationships(&mut self, v: ::std::collections::HashMap<::std::string::String, RelatedResources>) { - self.relationships = v; - } - - // Mutable pointer to the field. - pub fn mut_relationships(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, RelatedResources> { - &mut self.relationships - } - - // Take field - pub fn take_relationships(&mut self) -> ::std::collections::HashMap<::std::string::String, RelatedResources> { - ::std::mem::replace(&mut self.relationships, ::std::collections::HashMap::new()) - } - - // repeated string tag_keys = 23; - - - pub fn get_tag_keys(&self) -> &[::std::string::String] { - &self.tag_keys - } - pub fn clear_tag_keys(&mut self) { - self.tag_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_tag_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.tag_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_tag_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.tag_keys - } - - // Take field - pub fn take_tag_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.tag_keys, ::protobuf::RepeatedField::new()) - } - - // repeated string tag_values = 25; - - - pub fn get_tag_values(&self) -> &[::std::string::String] { - &self.tag_values - } - pub fn clear_tag_values(&mut self) { - self.tag_values.clear(); - } - - // Param is passed by value, moved - pub fn set_tag_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.tag_values = v; - } - - // Mutable pointer to the field. - pub fn mut_tag_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.tag_values - } - - // Take field - pub fn take_tag_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.tag_values, ::protobuf::RepeatedField::new()) - } - - // repeated string tag_value_ids = 26; - - - pub fn get_tag_value_ids(&self) -> &[::std::string::String] { - &self.tag_value_ids - } - pub fn clear_tag_value_ids(&mut self) { - self.tag_value_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_tag_value_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.tag_value_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_tag_value_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.tag_value_ids - } - - // Take field - pub fn take_tag_value_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.tag_value_ids, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.Tag tags = 29; - - - pub fn get_tags(&self) -> &[Tag] { - &self.tags - } - pub fn clear_tags(&mut self) { - self.tags.clear(); - } - - // Param is passed by value, moved - pub fn set_tags(&mut self, v: ::protobuf::RepeatedField) { - self.tags = v; - } - - // Mutable pointer to the field. - pub fn mut_tags(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.tags - } - - // Take field - pub fn take_tags(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.tags, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 30; - - - pub fn get_effective_tags(&self) -> &[EffectiveTagDetails] { - &self.effective_tags - } - pub fn clear_effective_tags(&mut self) { - self.effective_tags.clear(); - } - - // Param is passed by value, moved - pub fn set_effective_tags(&mut self, v: ::protobuf::RepeatedField) { - self.effective_tags = v; - } - - // Mutable pointer to the field. - pub fn mut_effective_tags(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.effective_tags - } - - // Take field - pub fn take_effective_tags(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.effective_tags, ::protobuf::RepeatedField::new()) - } - - // string parent_asset_type = 103; - - - pub fn get_parent_asset_type(&self) -> &str { - &self.parent_asset_type - } - pub fn clear_parent_asset_type(&mut self) { - self.parent_asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_parent_asset_type(&mut self, v: ::std::string::String) { - self.parent_asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.parent_asset_type - } - - // Take field - pub fn take_parent_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent_asset_type, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.ResourceSearchResult.SccSecurityMarksEntry scc_security_marks = 32; - - - pub fn get_scc_security_marks(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.scc_security_marks - } - pub fn clear_scc_security_marks(&mut self) { - self.scc_security_marks.clear(); - } - - // Param is passed by value, moved - pub fn set_scc_security_marks(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.scc_security_marks = v; - } - - // Mutable pointer to the field. - pub fn mut_scc_security_marks(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.scc_security_marks - } - - // Take field - pub fn take_scc_security_marks(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.scc_security_marks, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for ResourceSearchResult { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.additional_attributes { - if !v.is_initialized() { - return false; - } - }; - for v in &self.versioned_resources { - if !v.is_initialized() { - return false; - } - }; - for v in &self.attached_resources { - if !v.is_initialized() { - return false; - } - }; - for v in &self.tags { - if !v.is_initialized() { - return false; - } - }; - for v in &self.effective_tags { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 17 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.folders)?; - }, - 18 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.organization)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; - }, - 7 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 8 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.network_tags)?; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key)?; - }, - 28 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.kms_keys)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.state)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.additional_attributes)?; - }, - 19 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent_full_resource_name)?; - }, - 16 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.versioned_resources)?; - }, - 20 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.attached_resources)?; - }, - 21 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.relationships)?; - }, - 23 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tag_keys)?; - }, - 25 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tag_values)?; - }, - 26 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tag_value_ids)?; - }, - 29 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.tags)?; - }, - 30 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.effective_tags)?; - }, - 103 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent_asset_type)?; - }, - 32 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.scc_security_marks)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.asset_type); - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.project); - } - for value in &self.folders { - my_size += ::protobuf::rt::string_size(17, &value); - }; - if !self.organization.is_empty() { - my_size += ::protobuf::rt::string_size(18, &self.organization); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.display_name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.description); - } - if !self.location.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.location); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels); - for value in &self.network_tags { - my_size += ::protobuf::rt::string_size(8, &value); - }; - if !self.kms_key.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.kms_key); - } - for value in &self.kms_keys { - my_size += ::protobuf::rt::string_size(28, &value); - }; - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.state.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.state); - } - if let Some(ref v) = self.additional_attributes.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.parent_full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(19, &self.parent_full_resource_name); - } - for value in &self.versioned_resources { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.attached_resources { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(21, &self.relationships); - for value in &self.tag_keys { - my_size += ::protobuf::rt::string_size(23, &value); - }; - for value in &self.tag_values { - my_size += ::protobuf::rt::string_size(25, &value); - }; - for value in &self.tag_value_ids { - my_size += ::protobuf::rt::string_size(26, &value); - }; - for value in &self.tags { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.effective_tags { - let len = value.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.parent_asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(103, &self.parent_asset_type); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(32, &self.scc_security_marks); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.asset_type.is_empty() { - os.write_string(2, &self.asset_type)?; - } - if !self.project.is_empty() { - os.write_string(3, &self.project)?; - } - for v in &self.folders { - os.write_string(17, &v)?; - }; - if !self.organization.is_empty() { - os.write_string(18, &self.organization)?; - } - if !self.display_name.is_empty() { - os.write_string(4, &self.display_name)?; - } - if !self.description.is_empty() { - os.write_string(5, &self.description)?; - } - if !self.location.is_empty() { - os.write_string(6, &self.location)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels, os)?; - for v in &self.network_tags { - os.write_string(8, &v)?; - }; - if !self.kms_key.is_empty() { - os.write_string(10, &self.kms_key)?; - } - for v in &self.kms_keys { - os.write_string(28, &v)?; - }; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.state.is_empty() { - os.write_string(13, &self.state)?; - } - if let Some(ref v) = self.additional_attributes.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.parent_full_resource_name.is_empty() { - os.write_string(19, &self.parent_full_resource_name)?; - } - for v in &self.versioned_resources { - os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.attached_resources { - os.write_tag(20, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(21, &self.relationships, os)?; - for v in &self.tag_keys { - os.write_string(23, &v)?; - }; - for v in &self.tag_values { - os.write_string(25, &v)?; - }; - for v in &self.tag_value_ids { - os.write_string(26, &v)?; - }; - for v in &self.tags { - os.write_tag(29, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.effective_tags { - os.write_tag(30, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.parent_asset_type.is_empty() { - os.write_string(103, &self.parent_asset_type)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(32, &self.scc_security_marks, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ResourceSearchResult { - ResourceSearchResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ResourceSearchResult| { &m.name }, - |m: &mut ResourceSearchResult| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &ResourceSearchResult| { &m.asset_type }, - |m: &mut ResourceSearchResult| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ResourceSearchResult| { &m.project }, - |m: &mut ResourceSearchResult| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "folders", - |m: &ResourceSearchResult| { &m.folders }, - |m: &mut ResourceSearchResult| { &mut m.folders }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "organization", - |m: &ResourceSearchResult| { &m.organization }, - |m: &mut ResourceSearchResult| { &mut m.organization }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &ResourceSearchResult| { &m.display_name }, - |m: &mut ResourceSearchResult| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &ResourceSearchResult| { &m.description }, - |m: &mut ResourceSearchResult| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &ResourceSearchResult| { &m.location }, - |m: &mut ResourceSearchResult| { &mut m.location }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &ResourceSearchResult| { &m.labels }, - |m: &mut ResourceSearchResult| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "network_tags", - |m: &ResourceSearchResult| { &m.network_tags }, - |m: &mut ResourceSearchResult| { &mut m.network_tags }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key", - |m: &ResourceSearchResult| { &m.kms_key }, - |m: &mut ResourceSearchResult| { &mut m.kms_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_keys", - |m: &ResourceSearchResult| { &m.kms_keys }, - |m: &mut ResourceSearchResult| { &mut m.kms_keys }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &ResourceSearchResult| { &m.create_time }, - |m: &mut ResourceSearchResult| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &ResourceSearchResult| { &m.update_time }, - |m: &mut ResourceSearchResult| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "state", - |m: &ResourceSearchResult| { &m.state }, - |m: &mut ResourceSearchResult| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "additional_attributes", - |m: &ResourceSearchResult| { &m.additional_attributes }, - |m: &mut ResourceSearchResult| { &mut m.additional_attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent_full_resource_name", - |m: &ResourceSearchResult| { &m.parent_full_resource_name }, - |m: &mut ResourceSearchResult| { &mut m.parent_full_resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "versioned_resources", - |m: &ResourceSearchResult| { &m.versioned_resources }, - |m: &mut ResourceSearchResult| { &mut m.versioned_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "attached_resources", - |m: &ResourceSearchResult| { &m.attached_resources }, - |m: &mut ResourceSearchResult| { &mut m.attached_resources }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "relationships", - |m: &ResourceSearchResult| { &m.relationships }, - |m: &mut ResourceSearchResult| { &mut m.relationships }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "tag_keys", - |m: &ResourceSearchResult| { &m.tag_keys }, - |m: &mut ResourceSearchResult| { &mut m.tag_keys }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "tag_values", - |m: &ResourceSearchResult| { &m.tag_values }, - |m: &mut ResourceSearchResult| { &mut m.tag_values }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "tag_value_ids", - |m: &ResourceSearchResult| { &m.tag_value_ids }, - |m: &mut ResourceSearchResult| { &mut m.tag_value_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "tags", - |m: &ResourceSearchResult| { &m.tags }, - |m: &mut ResourceSearchResult| { &mut m.tags }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "effective_tags", - |m: &ResourceSearchResult| { &m.effective_tags }, - |m: &mut ResourceSearchResult| { &mut m.effective_tags }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent_asset_type", - |m: &ResourceSearchResult| { &m.parent_asset_type }, - |m: &mut ResourceSearchResult| { &mut m.parent_asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "scc_security_marks", - |m: &ResourceSearchResult| { &m.scc_security_marks }, - |m: &mut ResourceSearchResult| { &mut m.scc_security_marks }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResourceSearchResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ResourceSearchResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceSearchResult::new) - } -} - -impl ::protobuf::Clear for ResourceSearchResult { - fn clear(&mut self) { - self.name.clear(); - self.asset_type.clear(); - self.project.clear(); - self.folders.clear(); - self.organization.clear(); - self.display_name.clear(); - self.description.clear(); - self.location.clear(); - self.labels.clear(); - self.network_tags.clear(); - self.kms_key.clear(); - self.kms_keys.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.state.clear(); - self.additional_attributes.clear(); - self.parent_full_resource_name.clear(); - self.versioned_resources.clear(); - self.attached_resources.clear(); - self.relationships.clear(); - self.tag_keys.clear(); - self.tag_values.clear(); - self.tag_value_ids.clear(); - self.tags.clear(); - self.effective_tags.clear(); - self.parent_asset_type.clear(); - self.scc_security_marks.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ResourceSearchResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ResourceSearchResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VersionedResource { - // message fields - pub version: ::std::string::String, - pub resource: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VersionedResource { - fn default() -> &'a VersionedResource { - ::default_instance() - } -} - -impl VersionedResource { - pub fn new() -> VersionedResource { - ::std::default::Default::default() - } - - // string version = 1; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // .google.protobuf.Struct resource = 2; - - - pub fn get_resource(&self) -> &::protobuf::well_known_types::Struct { - self.resource.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - pub fn has_resource(&self) -> bool { - self.resource.is_some() - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::protobuf::well_known_types::Struct) { - self.resource = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.resource.is_none() { - self.resource.set_default(); - } - self.resource.as_mut().unwrap() - } - - // Take field - pub fn take_resource(&mut self) -> ::protobuf::well_known_types::Struct { - self.resource.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } -} - -impl ::protobuf::Message for VersionedResource { - fn is_initialized(&self) -> bool { - for v in &self.resource { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resource)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.version); - } - if let Some(ref v) = self.resource.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.version.is_empty() { - os.write_string(1, &self.version)?; - } - if let Some(ref v) = self.resource.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VersionedResource { - VersionedResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &VersionedResource| { &m.version }, - |m: &mut VersionedResource| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "resource", - |m: &VersionedResource| { &m.resource }, - |m: &mut VersionedResource| { &mut m.resource }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VersionedResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VersionedResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VersionedResource::new) - } -} - -impl ::protobuf::Clear for VersionedResource { - fn clear(&mut self) { - self.version.clear(); - self.resource.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VersionedResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VersionedResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AttachedResource { - // message fields - pub asset_type: ::std::string::String, - pub versioned_resources: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AttachedResource { - fn default() -> &'a AttachedResource { - ::default_instance() - } -} - -impl AttachedResource { - pub fn new() -> AttachedResource { - ::std::default::Default::default() - } - - // string asset_type = 1; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { - self.asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type - } - - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) - } - - // repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; - - - pub fn get_versioned_resources(&self) -> &[VersionedResource] { - &self.versioned_resources - } - pub fn clear_versioned_resources(&mut self) { - self.versioned_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_versioned_resources(&mut self, v: ::protobuf::RepeatedField) { - self.versioned_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_versioned_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.versioned_resources - } - - // Take field - pub fn take_versioned_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.versioned_resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AttachedResource { - fn is_initialized(&self) -> bool { - for v in &self.versioned_resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.versioned_resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.asset_type); - } - for value in &self.versioned_resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.asset_type.is_empty() { - os.write_string(1, &self.asset_type)?; - } - for v in &self.versioned_resources { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AttachedResource { - AttachedResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &AttachedResource| { &m.asset_type }, - |m: &mut AttachedResource| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "versioned_resources", - |m: &AttachedResource| { &m.versioned_resources }, - |m: &mut AttachedResource| { &mut m.versioned_resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AttachedResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AttachedResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AttachedResource::new) - } -} - -impl ::protobuf::Clear for AttachedResource { - fn clear(&mut self) { - self.asset_type.clear(); - self.versioned_resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AttachedResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AttachedResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RelatedResources { - // message fields - pub related_resources: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RelatedResources { - fn default() -> &'a RelatedResources { - ::default_instance() - } -} - -impl RelatedResources { - pub fn new() -> RelatedResources { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.RelatedResource related_resources = 1; - - - pub fn get_related_resources(&self) -> &[RelatedResource] { - &self.related_resources - } - pub fn clear_related_resources(&mut self) { - self.related_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_related_resources(&mut self, v: ::protobuf::RepeatedField) { - self.related_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_related_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.related_resources - } - - // Take field - pub fn take_related_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.related_resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for RelatedResources { - fn is_initialized(&self) -> bool { - for v in &self.related_resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.related_resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.related_resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.related_resources { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RelatedResources { - RelatedResources::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "related_resources", - |m: &RelatedResources| { &m.related_resources }, - |m: &mut RelatedResources| { &mut m.related_resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RelatedResources", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RelatedResources { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RelatedResources::new) - } -} - -impl ::protobuf::Clear for RelatedResources { - fn clear(&mut self) { - self.related_resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RelatedResources { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RelatedResources { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RelatedResource { - // message fields - pub asset_type: ::std::string::String, - pub full_resource_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RelatedResource { - fn default() -> &'a RelatedResource { - ::default_instance() - } -} - -impl RelatedResource { - pub fn new() -> RelatedResource { - ::std::default::Default::default() - } - - // string asset_type = 1; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { - self.asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type - } - - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) - } - - // string full_resource_name = 2; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RelatedResource { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.asset_type); - } - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.full_resource_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.asset_type.is_empty() { - os.write_string(1, &self.asset_type)?; - } - if !self.full_resource_name.is_empty() { - os.write_string(2, &self.full_resource_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RelatedResource { - RelatedResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &RelatedResource| { &m.asset_type }, - |m: &mut RelatedResource| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &RelatedResource| { &m.full_resource_name }, - |m: &mut RelatedResource| { &mut m.full_resource_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RelatedResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RelatedResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RelatedResource::new) - } -} - -impl ::protobuf::Clear for RelatedResource { - fn clear(&mut self) { - self.asset_type.clear(); - self.full_resource_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RelatedResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RelatedResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicySearchResult { - // message fields - pub resource: ::std::string::String, - pub asset_type: ::std::string::String, - pub project: ::std::string::String, - pub folders: ::protobuf::RepeatedField<::std::string::String>, - pub organization: ::std::string::String, - pub policy: ::protobuf::SingularPtrField, - pub explanation: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicySearchResult { - fn default() -> &'a IamPolicySearchResult { - ::default_instance() - } -} - -impl IamPolicySearchResult { - pub fn new() -> IamPolicySearchResult { - ::std::default::Default::default() - } - - // string resource = 1; - - - pub fn get_resource(&self) -> &str { - &self.resource - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - &mut self.resource - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource, ::std::string::String::new()) - } - - // string asset_type = 5; - - - pub fn get_asset_type(&self) -> &str { - &self.asset_type - } - pub fn clear_asset_type(&mut self) { - self.asset_type.clear(); - } - - // Param is passed by value, moved - pub fn set_asset_type(&mut self, v: ::std::string::String) { - self.asset_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_asset_type(&mut self) -> &mut ::std::string::String { - &mut self.asset_type - } - - // Take field - pub fn take_asset_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.asset_type, ::std::string::String::new()) - } - - // string project = 2; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // repeated string folders = 6; - - - pub fn get_folders(&self) -> &[::std::string::String] { - &self.folders - } - pub fn clear_folders(&mut self) { - self.folders.clear(); - } - - // Param is passed by value, moved - pub fn set_folders(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.folders = v; - } - - // Mutable pointer to the field. - pub fn mut_folders(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.folders - } - - // Take field - pub fn take_folders(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.folders, ::protobuf::RepeatedField::new()) - } - - // string organization = 7; - - - pub fn get_organization(&self) -> &str { - &self.organization - } - pub fn clear_organization(&mut self) { - self.organization.clear(); - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ::std::string::String) { - self.organization = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_organization(&mut self) -> &mut ::std::string::String { - &mut self.organization - } - - // Take field - pub fn take_organization(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.organization, ::std::string::String::new()) - } - - // .google.iam.v1.Policy policy = 3; - - - pub fn get_policy(&self) -> &super::policy::Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: super::policy::Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut super::policy::Policy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> super::policy::Policy { - self.policy.take().unwrap_or_else(|| super::policy::Policy::new()) - } - - // .google.cloud.asset.v1.IamPolicySearchResult.Explanation explanation = 4; - - - pub fn get_explanation(&self) -> &IamPolicySearchResult_Explanation { - self.explanation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_explanation(&mut self) { - self.explanation.clear(); - } - - pub fn has_explanation(&self) -> bool { - self.explanation.is_some() - } - - // Param is passed by value, moved - pub fn set_explanation(&mut self, v: IamPolicySearchResult_Explanation) { - self.explanation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_explanation(&mut self) -> &mut IamPolicySearchResult_Explanation { - if self.explanation.is_none() { - self.explanation.set_default(); - } - self.explanation.as_mut().unwrap() - } - - // Take field - pub fn take_explanation(&mut self) -> IamPolicySearchResult_Explanation { - self.explanation.take().unwrap_or_else(|| IamPolicySearchResult_Explanation::new()) - } -} - -impl ::protobuf::Message for IamPolicySearchResult { - fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.explanation { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.asset_type)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.folders)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.organization)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.explanation)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.resource.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.resource); - } - if !self.asset_type.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.asset_type); - } - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.project); - } - for value in &self.folders { - my_size += ::protobuf::rt::string_size(6, &value); - }; - if !self.organization.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.organization); - } - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.explanation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.resource.is_empty() { - os.write_string(1, &self.resource)?; - } - if !self.asset_type.is_empty() { - os.write_string(5, &self.asset_type)?; - } - if !self.project.is_empty() { - os.write_string(2, &self.project)?; - } - for v in &self.folders { - os.write_string(6, &v)?; - }; - if !self.organization.is_empty() { - os.write_string(7, &self.organization)?; - } - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.explanation.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicySearchResult { - IamPolicySearchResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource", - |m: &IamPolicySearchResult| { &m.resource }, - |m: &mut IamPolicySearchResult| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "asset_type", - |m: &IamPolicySearchResult| { &m.asset_type }, - |m: &mut IamPolicySearchResult| { &mut m.asset_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &IamPolicySearchResult| { &m.project }, - |m: &mut IamPolicySearchResult| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "folders", - |m: &IamPolicySearchResult| { &m.folders }, - |m: &mut IamPolicySearchResult| { &mut m.folders }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "organization", - |m: &IamPolicySearchResult| { &m.organization }, - |m: &mut IamPolicySearchResult| { &mut m.organization }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &IamPolicySearchResult| { &m.policy }, - |m: &mut IamPolicySearchResult| { &mut m.policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "explanation", - |m: &IamPolicySearchResult| { &m.explanation }, - |m: &mut IamPolicySearchResult| { &mut m.explanation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicySearchResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicySearchResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicySearchResult::new) - } -} - -impl ::protobuf::Clear for IamPolicySearchResult { - fn clear(&mut self) { - self.resource.clear(); - self.asset_type.clear(); - self.project.clear(); - self.folders.clear(); - self.organization.clear(); - self.policy.clear(); - self.explanation.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicySearchResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicySearchResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicySearchResult_Explanation { - // message fields - pub matched_permissions: ::std::collections::HashMap<::std::string::String, IamPolicySearchResult_Explanation_Permissions>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicySearchResult_Explanation { - fn default() -> &'a IamPolicySearchResult_Explanation { - ::default_instance() - } -} - -impl IamPolicySearchResult_Explanation { - pub fn new() -> IamPolicySearchResult_Explanation { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.IamPolicySearchResult.Explanation.MatchedPermissionsEntry matched_permissions = 1; - - - pub fn get_matched_permissions(&self) -> &::std::collections::HashMap<::std::string::String, IamPolicySearchResult_Explanation_Permissions> { - &self.matched_permissions - } - pub fn clear_matched_permissions(&mut self) { - self.matched_permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_matched_permissions(&mut self, v: ::std::collections::HashMap<::std::string::String, IamPolicySearchResult_Explanation_Permissions>) { - self.matched_permissions = v; - } - - // Mutable pointer to the field. - pub fn mut_matched_permissions(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, IamPolicySearchResult_Explanation_Permissions> { - &mut self.matched_permissions - } - - // Take field - pub fn take_matched_permissions(&mut self) -> ::std::collections::HashMap<::std::string::String, IamPolicySearchResult_Explanation_Permissions> { - ::std::mem::replace(&mut self.matched_permissions, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for IamPolicySearchResult_Explanation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.matched_permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(1, &self.matched_permissions); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(1, &self.matched_permissions, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicySearchResult_Explanation { - IamPolicySearchResult_Explanation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "matched_permissions", - |m: &IamPolicySearchResult_Explanation| { &m.matched_permissions }, - |m: &mut IamPolicySearchResult_Explanation| { &mut m.matched_permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicySearchResult.Explanation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicySearchResult_Explanation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicySearchResult_Explanation::new) - } -} - -impl ::protobuf::Clear for IamPolicySearchResult_Explanation { - fn clear(&mut self) { - self.matched_permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicySearchResult_Explanation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicySearchResult_Explanation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicySearchResult_Explanation_Permissions { - // message fields - pub permissions: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicySearchResult_Explanation_Permissions { - fn default() -> &'a IamPolicySearchResult_Explanation_Permissions { - ::default_instance() - } -} - -impl IamPolicySearchResult_Explanation_Permissions { - pub fn new() -> IamPolicySearchResult_Explanation_Permissions { - ::std::default::Default::default() - } - - // repeated string permissions = 1; - - - pub fn get_permissions(&self) -> &[::std::string::String] { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.permissions = v; - } - - // Mutable pointer to the field. - pub fn mut_permissions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.permissions, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for IamPolicySearchResult_Explanation_Permissions { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.permissions { - my_size += ::protobuf::rt::string_size(1, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.permissions { - os.write_string(1, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicySearchResult_Explanation_Permissions { - IamPolicySearchResult_Explanation_Permissions::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &IamPolicySearchResult_Explanation_Permissions| { &m.permissions }, - |m: &mut IamPolicySearchResult_Explanation_Permissions| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicySearchResult.Explanation.Permissions", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicySearchResult_Explanation_Permissions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicySearchResult_Explanation_Permissions::new) - } -} - -impl ::protobuf::Clear for IamPolicySearchResult_Explanation_Permissions { - fn clear(&mut self) { - self.permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicySearchResult_Explanation_Permissions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicySearchResult_Explanation_Permissions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisState { - // message fields - pub code: super::code::Code, - pub cause: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisState { - fn default() -> &'a IamPolicyAnalysisState { - ::default_instance() - } -} - -impl IamPolicyAnalysisState { - pub fn new() -> IamPolicyAnalysisState { - ::std::default::Default::default() - } - - // .google.rpc.Code code = 1; - - - pub fn get_code(&self) -> super::code::Code { - self.code - } - pub fn clear_code(&mut self) { - self.code = super::code::Code::OK; - } - - // Param is passed by value, moved - pub fn set_code(&mut self, v: super::code::Code) { - self.code = v; - } - - // string cause = 2; - - - pub fn get_cause(&self) -> &str { - &self.cause - } - pub fn clear_cause(&mut self) { - self.cause.clear(); - } - - // Param is passed by value, moved - pub fn set_cause(&mut self, v: ::std::string::String) { - self.cause = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cause(&mut self) -> &mut ::std::string::String { - &mut self.cause - } - - // Take field - pub fn take_cause(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cause, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisState { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cause)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.code != super::code::Code::OK { - my_size += ::protobuf::rt::enum_size(1, self.code); - } - if !self.cause.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.cause); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.code != super::code::Code::OK { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; - } - if !self.cause.is_empty() { - os.write_string(2, &self.cause)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisState { - IamPolicyAnalysisState::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "code", - |m: &IamPolicyAnalysisState| { &m.code }, - |m: &mut IamPolicyAnalysisState| { &mut m.code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cause", - |m: &IamPolicyAnalysisState| { &m.cause }, - |m: &mut IamPolicyAnalysisState| { &mut m.cause }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisState", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisState { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisState::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisState { - fn clear(&mut self) { - self.code = super::code::Code::OK; - self.cause.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisState { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ConditionEvaluation { - // message fields - pub evaluation_value: ConditionEvaluation_EvaluationValue, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ConditionEvaluation { - fn default() -> &'a ConditionEvaluation { - ::default_instance() - } -} - -impl ConditionEvaluation { - pub fn new() -> ConditionEvaluation { - ::std::default::Default::default() - } - - // .google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1; - - - pub fn get_evaluation_value(&self) -> ConditionEvaluation_EvaluationValue { - self.evaluation_value - } - pub fn clear_evaluation_value(&mut self) { - self.evaluation_value = ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_evaluation_value(&mut self, v: ConditionEvaluation_EvaluationValue) { - self.evaluation_value = v; - } -} - -impl ::protobuf::Message for ConditionEvaluation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.evaluation_value, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.evaluation_value != ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.evaluation_value); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.evaluation_value != ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.evaluation_value))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ConditionEvaluation { - ConditionEvaluation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "evaluation_value", - |m: &ConditionEvaluation| { &m.evaluation_value }, - |m: &mut ConditionEvaluation| { &mut m.evaluation_value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ConditionEvaluation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ConditionEvaluation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ConditionEvaluation::new) - } -} - -impl ::protobuf::Clear for ConditionEvaluation { - fn clear(&mut self) { - self.evaluation_value = ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ConditionEvaluation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ConditionEvaluation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ConditionEvaluation_EvaluationValue { - EVALUATION_VALUE_UNSPECIFIED = 0, - TRUE = 1, - FALSE = 2, - CONDITIONAL = 3, -} - -impl ::protobuf::ProtobufEnum for ConditionEvaluation_EvaluationValue { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ConditionEvaluation_EvaluationValue::TRUE), - 2 => ::std::option::Option::Some(ConditionEvaluation_EvaluationValue::FALSE), - 3 => ::std::option::Option::Some(ConditionEvaluation_EvaluationValue::CONDITIONAL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ConditionEvaluation_EvaluationValue] = &[ - ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED, - ConditionEvaluation_EvaluationValue::TRUE, - ConditionEvaluation_EvaluationValue::FALSE, - ConditionEvaluation_EvaluationValue::CONDITIONAL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ConditionEvaluation.EvaluationValue", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ConditionEvaluation_EvaluationValue { -} - -impl ::std::default::Default for ConditionEvaluation_EvaluationValue { - fn default() -> Self { - ConditionEvaluation_EvaluationValue::EVALUATION_VALUE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ConditionEvaluation_EvaluationValue { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult { - // message fields - pub attached_resource_full_name: ::std::string::String, - pub iam_binding: ::protobuf::SingularPtrField, - pub access_control_lists: ::protobuf::RepeatedField, - pub identity_list: ::protobuf::SingularPtrField, - pub fully_explored: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult { - fn default() -> &'a IamPolicyAnalysisResult { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult { - pub fn new() -> IamPolicyAnalysisResult { - ::std::default::Default::default() - } - - // string attached_resource_full_name = 1; - - - pub fn get_attached_resource_full_name(&self) -> &str { - &self.attached_resource_full_name - } - pub fn clear_attached_resource_full_name(&mut self) { - self.attached_resource_full_name.clear(); - } - - // Param is passed by value, moved - pub fn set_attached_resource_full_name(&mut self, v: ::std::string::String) { - self.attached_resource_full_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_attached_resource_full_name(&mut self) -> &mut ::std::string::String { - &mut self.attached_resource_full_name - } - - // Take field - pub fn take_attached_resource_full_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.attached_resource_full_name, ::std::string::String::new()) - } - - // .google.iam.v1.Binding iam_binding = 2; - - - pub fn get_iam_binding(&self) -> &super::policy::Binding { - self.iam_binding.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_iam_binding(&mut self) { - self.iam_binding.clear(); - } - - pub fn has_iam_binding(&self) -> bool { - self.iam_binding.is_some() - } - - // Param is passed by value, moved - pub fn set_iam_binding(&mut self, v: super::policy::Binding) { - self.iam_binding = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_iam_binding(&mut self) -> &mut super::policy::Binding { - if self.iam_binding.is_none() { - self.iam_binding.set_default(); - } - self.iam_binding.as_mut().unwrap() - } - - // Take field - pub fn take_iam_binding(&mut self) -> super::policy::Binding { - self.iam_binding.take().unwrap_or_else(|| super::policy::Binding::new()) - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlList access_control_lists = 3; - - - pub fn get_access_control_lists(&self) -> &[IamPolicyAnalysisResult_AccessControlList] { - &self.access_control_lists - } - pub fn clear_access_control_lists(&mut self) { - self.access_control_lists.clear(); - } - - // Param is passed by value, moved - pub fn set_access_control_lists(&mut self, v: ::protobuf::RepeatedField) { - self.access_control_lists = v; - } - - // Mutable pointer to the field. - pub fn mut_access_control_lists(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.access_control_lists - } - - // Take field - pub fn take_access_control_lists(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.access_control_lists, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisResult.IdentityList identity_list = 4; - - - pub fn get_identity_list(&self) -> &IamPolicyAnalysisResult_IdentityList { - self.identity_list.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_identity_list(&mut self) { - self.identity_list.clear(); - } - - pub fn has_identity_list(&self) -> bool { - self.identity_list.is_some() - } - - // Param is passed by value, moved - pub fn set_identity_list(&mut self, v: IamPolicyAnalysisResult_IdentityList) { - self.identity_list = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_identity_list(&mut self) -> &mut IamPolicyAnalysisResult_IdentityList { - if self.identity_list.is_none() { - self.identity_list.set_default(); - } - self.identity_list.as_mut().unwrap() - } - - // Take field - pub fn take_identity_list(&mut self) -> IamPolicyAnalysisResult_IdentityList { - self.identity_list.take().unwrap_or_else(|| IamPolicyAnalysisResult_IdentityList::new()) - } - - // bool fully_explored = 5; - - - pub fn get_fully_explored(&self) -> bool { - self.fully_explored - } - pub fn clear_fully_explored(&mut self) { - self.fully_explored = false; - } - - // Param is passed by value, moved - pub fn set_fully_explored(&mut self, v: bool) { - self.fully_explored = v; - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult { - fn is_initialized(&self) -> bool { - for v in &self.iam_binding { - if !v.is_initialized() { - return false; - } - }; - for v in &self.access_control_lists { - if !v.is_initialized() { - return false; - } - }; - for v in &self.identity_list { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.attached_resource_full_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.iam_binding)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.access_control_lists)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.identity_list)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.fully_explored = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.attached_resource_full_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.attached_resource_full_name); - } - if let Some(ref v) = self.iam_binding.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.access_control_lists { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.identity_list.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.fully_explored != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.attached_resource_full_name.is_empty() { - os.write_string(1, &self.attached_resource_full_name)?; - } - if let Some(ref v) = self.iam_binding.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.access_control_lists { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.identity_list.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.fully_explored != false { - os.write_bool(5, self.fully_explored)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult { - IamPolicyAnalysisResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "attached_resource_full_name", - |m: &IamPolicyAnalysisResult| { &m.attached_resource_full_name }, - |m: &mut IamPolicyAnalysisResult| { &mut m.attached_resource_full_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "iam_binding", - |m: &IamPolicyAnalysisResult| { &m.iam_binding }, - |m: &mut IamPolicyAnalysisResult| { &mut m.iam_binding }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_control_lists", - |m: &IamPolicyAnalysisResult| { &m.access_control_lists }, - |m: &mut IamPolicyAnalysisResult| { &mut m.access_control_lists }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "identity_list", - |m: &IamPolicyAnalysisResult| { &m.identity_list }, - |m: &mut IamPolicyAnalysisResult| { &mut m.identity_list }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "fully_explored", - |m: &IamPolicyAnalysisResult| { &m.fully_explored }, - |m: &mut IamPolicyAnalysisResult| { &mut m.fully_explored }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult { - fn clear(&mut self) { - self.attached_resource_full_name.clear(); - self.iam_binding.clear(); - self.access_control_lists.clear(); - self.identity_list.clear(); - self.fully_explored = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_Resource { - // message fields - pub full_resource_name: ::std::string::String, - pub analysis_state: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_Resource { - fn default() -> &'a IamPolicyAnalysisResult_Resource { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult_Resource { - pub fn new() -> IamPolicyAnalysisResult_Resource { - ::std::default::Default::default() - } - - // string full_resource_name = 1; - - - pub fn get_full_resource_name(&self) -> &str { - &self.full_resource_name - } - pub fn clear_full_resource_name(&mut self) { - self.full_resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_full_resource_name(&mut self, v: ::std::string::String) { - self.full_resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_full_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.full_resource_name - } - - // Take field - pub fn take_full_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.full_resource_name, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - - - pub fn get_analysis_state(&self) -> &IamPolicyAnalysisState { - self.analysis_state.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_state(&mut self) { - self.analysis_state.clear(); - } - - pub fn has_analysis_state(&self) -> bool { - self.analysis_state.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_state(&mut self, v: IamPolicyAnalysisState) { - self.analysis_state = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_state(&mut self) -> &mut IamPolicyAnalysisState { - if self.analysis_state.is_none() { - self.analysis_state.set_default(); - } - self.analysis_state.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_state(&mut self) -> IamPolicyAnalysisState { - self.analysis_state.take().unwrap_or_else(|| IamPolicyAnalysisState::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_Resource { - fn is_initialized(&self) -> bool { - for v in &self.analysis_state { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.full_resource_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_state)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.full_resource_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.full_resource_name); - } - if let Some(ref v) = self.analysis_state.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.full_resource_name.is_empty() { - os.write_string(1, &self.full_resource_name)?; - } - if let Some(ref v) = self.analysis_state.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_Resource { - IamPolicyAnalysisResult_Resource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "full_resource_name", - |m: &IamPolicyAnalysisResult_Resource| { &m.full_resource_name }, - |m: &mut IamPolicyAnalysisResult_Resource| { &mut m.full_resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_state", - |m: &IamPolicyAnalysisResult_Resource| { &m.analysis_state }, - |m: &mut IamPolicyAnalysisResult_Resource| { &mut m.analysis_state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.Resource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_Resource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_Resource::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_Resource { - fn clear(&mut self) { - self.full_resource_name.clear(); - self.analysis_state.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_Resource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_Resource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_Access { - // message fields - pub analysis_state: ::protobuf::SingularPtrField, - // message oneof groups - pub oneof_access: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_Access { - fn default() -> &'a IamPolicyAnalysisResult_Access { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum IamPolicyAnalysisResult_Access_oneof_oneof_access { - role(::std::string::String), - permission(::std::string::String), -} - -impl IamPolicyAnalysisResult_Access { - pub fn new() -> IamPolicyAnalysisResult_Access { - ::std::default::Default::default() - } - - // string role = 1; - - - pub fn get_role(&self) -> &str { - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(ref v)) => v, - _ => "", - } - } - pub fn clear_role(&mut self) { - self.oneof_access = ::std::option::Option::None; - } - - pub fn has_role(&self) -> bool { - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_role(&mut self, v: ::std::string::String) { - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(v)) - } - - // Mutable pointer to the field. - pub fn mut_role(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(_)) = self.oneof_access { - } else { - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(::std::string::String::new())); - } - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_role(&mut self) -> ::std::string::String { - if self.has_role() { - match self.oneof_access.take() { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string permission = 2; - - - pub fn get_permission(&self) -> &str { - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(ref v)) => v, - _ => "", - } - } - pub fn clear_permission(&mut self) { - self.oneof_access = ::std::option::Option::None; - } - - pub fn has_permission(&self) -> bool { - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_permission(&mut self, v: ::std::string::String) { - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(v)) - } - - // Mutable pointer to the field. - pub fn mut_permission(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(_)) = self.oneof_access { - } else { - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(::std::string::String::new())); - } - match self.oneof_access { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_permission(&mut self) -> ::std::string::String { - if self.has_permission() { - match self.oneof_access.take() { - ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3; - - - pub fn get_analysis_state(&self) -> &IamPolicyAnalysisState { - self.analysis_state.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_state(&mut self) { - self.analysis_state.clear(); - } - - pub fn has_analysis_state(&self) -> bool { - self.analysis_state.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_state(&mut self, v: IamPolicyAnalysisState) { - self.analysis_state = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_state(&mut self) -> &mut IamPolicyAnalysisState { - if self.analysis_state.is_none() { - self.analysis_state.set_default(); - } - self.analysis_state.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_state(&mut self) -> IamPolicyAnalysisState { - self.analysis_state.take().unwrap_or_else(|| IamPolicyAnalysisState::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_Access { - fn is_initialized(&self) -> bool { - for v in &self.analysis_state { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::role(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.oneof_access = ::std::option::Option::Some(IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_state)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.analysis_state.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.oneof_access { - match v { - &IamPolicyAnalysisResult_Access_oneof_oneof_access::role(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.analysis_state.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.oneof_access { - match v { - &IamPolicyAnalysisResult_Access_oneof_oneof_access::role(ref v) => { - os.write_string(1, v)?; - }, - &IamPolicyAnalysisResult_Access_oneof_oneof_access::permission(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_Access { - IamPolicyAnalysisResult_Access::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "role", - IamPolicyAnalysisResult_Access::has_role, - IamPolicyAnalysisResult_Access::get_role, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "permission", - IamPolicyAnalysisResult_Access::has_permission, - IamPolicyAnalysisResult_Access::get_permission, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_state", - |m: &IamPolicyAnalysisResult_Access| { &m.analysis_state }, - |m: &mut IamPolicyAnalysisResult_Access| { &mut m.analysis_state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.Access", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_Access { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_Access::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_Access { - fn clear(&mut self) { - self.oneof_access = ::std::option::Option::None; - self.oneof_access = ::std::option::Option::None; - self.analysis_state.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_Access { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_Access { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_Identity { - // message fields - pub name: ::std::string::String, - pub analysis_state: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_Identity { - fn default() -> &'a IamPolicyAnalysisResult_Identity { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult_Identity { - pub fn new() -> IamPolicyAnalysisResult_Identity { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 2; - - - pub fn get_analysis_state(&self) -> &IamPolicyAnalysisState { - self.analysis_state.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_analysis_state(&mut self) { - self.analysis_state.clear(); - } - - pub fn has_analysis_state(&self) -> bool { - self.analysis_state.is_some() - } - - // Param is passed by value, moved - pub fn set_analysis_state(&mut self, v: IamPolicyAnalysisState) { - self.analysis_state = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_analysis_state(&mut self) -> &mut IamPolicyAnalysisState { - if self.analysis_state.is_none() { - self.analysis_state.set_default(); - } - self.analysis_state.as_mut().unwrap() - } - - // Take field - pub fn take_analysis_state(&mut self) -> IamPolicyAnalysisState { - self.analysis_state.take().unwrap_or_else(|| IamPolicyAnalysisState::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_Identity { - fn is_initialized(&self) -> bool { - for v in &self.analysis_state { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.analysis_state)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.analysis_state.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.analysis_state.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_Identity { - IamPolicyAnalysisResult_Identity::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &IamPolicyAnalysisResult_Identity| { &m.name }, - |m: &mut IamPolicyAnalysisResult_Identity| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "analysis_state", - |m: &IamPolicyAnalysisResult_Identity| { &m.analysis_state }, - |m: &mut IamPolicyAnalysisResult_Identity| { &mut m.analysis_state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.Identity", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_Identity { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_Identity::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_Identity { - fn clear(&mut self) { - self.name.clear(); - self.analysis_state.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_Identity { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_Identity { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_Edge { - // message fields - pub source_node: ::std::string::String, - pub target_node: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_Edge { - fn default() -> &'a IamPolicyAnalysisResult_Edge { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult_Edge { - pub fn new() -> IamPolicyAnalysisResult_Edge { - ::std::default::Default::default() - } - - // string source_node = 1; - - - pub fn get_source_node(&self) -> &str { - &self.source_node - } - pub fn clear_source_node(&mut self) { - self.source_node.clear(); - } - - // Param is passed by value, moved - pub fn set_source_node(&mut self, v: ::std::string::String) { - self.source_node = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_node(&mut self) -> &mut ::std::string::String { - &mut self.source_node - } - - // Take field - pub fn take_source_node(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_node, ::std::string::String::new()) - } - - // string target_node = 2; - - - pub fn get_target_node(&self) -> &str { - &self.target_node - } - pub fn clear_target_node(&mut self) { - self.target_node.clear(); - } - - // Param is passed by value, moved - pub fn set_target_node(&mut self, v: ::std::string::String) { - self.target_node = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_target_node(&mut self) -> &mut ::std::string::String { - &mut self.target_node - } - - // Take field - pub fn take_target_node(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.target_node, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_Edge { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_node)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.target_node)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.source_node.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.source_node); - } - if !self.target_node.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.target_node); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.source_node.is_empty() { - os.write_string(1, &self.source_node)?; - } - if !self.target_node.is_empty() { - os.write_string(2, &self.target_node)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_Edge { - IamPolicyAnalysisResult_Edge::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_node", - |m: &IamPolicyAnalysisResult_Edge| { &m.source_node }, - |m: &mut IamPolicyAnalysisResult_Edge| { &mut m.source_node }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "target_node", - |m: &IamPolicyAnalysisResult_Edge| { &m.target_node }, - |m: &mut IamPolicyAnalysisResult_Edge| { &mut m.target_node }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.Edge", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_Edge { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_Edge::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_Edge { - fn clear(&mut self) { - self.source_node.clear(); - self.target_node.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_Edge { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_Edge { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_AccessControlList { - // message fields - pub resources: ::protobuf::RepeatedField, - pub accesses: ::protobuf::RepeatedField, - pub resource_edges: ::protobuf::RepeatedField, - pub condition_evaluation: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_AccessControlList { - fn default() -> &'a IamPolicyAnalysisResult_AccessControlList { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult_AccessControlList { - pub fn new() -> IamPolicyAnalysisResult_AccessControlList { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Resource resources = 1; - - - pub fn get_resources(&self) -> &[IamPolicyAnalysisResult_Resource] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Access accesses = 2; - - - pub fn get_accesses(&self) -> &[IamPolicyAnalysisResult_Access] { - &self.accesses - } - pub fn clear_accesses(&mut self) { - self.accesses.clear(); - } - - // Param is passed by value, moved - pub fn set_accesses(&mut self, v: ::protobuf::RepeatedField) { - self.accesses = v; - } - - // Mutable pointer to the field. - pub fn mut_accesses(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.accesses - } - - // Take field - pub fn take_accesses(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.accesses, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge resource_edges = 3; - - - pub fn get_resource_edges(&self) -> &[IamPolicyAnalysisResult_Edge] { - &self.resource_edges - } - pub fn clear_resource_edges(&mut self) { - self.resource_edges.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_edges(&mut self, v: ::protobuf::RepeatedField) { - self.resource_edges = v; - } - - // Mutable pointer to the field. - pub fn mut_resource_edges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resource_edges - } - - // Take field - pub fn take_resource_edges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resource_edges, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; - - - pub fn get_condition_evaluation(&self) -> &ConditionEvaluation { - self.condition_evaluation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition_evaluation(&mut self) { - self.condition_evaluation.clear(); - } - - pub fn has_condition_evaluation(&self) -> bool { - self.condition_evaluation.is_some() - } - - // Param is passed by value, moved - pub fn set_condition_evaluation(&mut self, v: ConditionEvaluation) { - self.condition_evaluation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition_evaluation(&mut self) -> &mut ConditionEvaluation { - if self.condition_evaluation.is_none() { - self.condition_evaluation.set_default(); - } - self.condition_evaluation.as_mut().unwrap() - } - - // Take field - pub fn take_condition_evaluation(&mut self) -> ConditionEvaluation { - self.condition_evaluation.take().unwrap_or_else(|| ConditionEvaluation::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_AccessControlList { - fn is_initialized(&self) -> bool { - for v in &self.resources { - if !v.is_initialized() { - return false; - } - }; - for v in &self.accesses { - if !v.is_initialized() { - return false; - } - }; - for v in &self.resource_edges { - if !v.is_initialized() { - return false; - } - }; - for v in &self.condition_evaluation { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.accesses)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resource_edges)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition_evaluation)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.accesses { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.resource_edges { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.condition_evaluation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.resources { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.accesses { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.resource_edges { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.condition_evaluation.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_AccessControlList { - IamPolicyAnalysisResult_AccessControlList::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resources", - |m: &IamPolicyAnalysisResult_AccessControlList| { &m.resources }, - |m: &mut IamPolicyAnalysisResult_AccessControlList| { &mut m.resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "accesses", - |m: &IamPolicyAnalysisResult_AccessControlList| { &m.accesses }, - |m: &mut IamPolicyAnalysisResult_AccessControlList| { &mut m.accesses }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource_edges", - |m: &IamPolicyAnalysisResult_AccessControlList| { &m.resource_edges }, - |m: &mut IamPolicyAnalysisResult_AccessControlList| { &mut m.resource_edges }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition_evaluation", - |m: &IamPolicyAnalysisResult_AccessControlList| { &m.condition_evaluation }, - |m: &mut IamPolicyAnalysisResult_AccessControlList| { &mut m.condition_evaluation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.AccessControlList", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_AccessControlList { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_AccessControlList::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_AccessControlList { - fn clear(&mut self) { - self.resources.clear(); - self.accesses.clear(); - self.resource_edges.clear(); - self.condition_evaluation.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_AccessControlList { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_AccessControlList { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct IamPolicyAnalysisResult_IdentityList { - // message fields - pub identities: ::protobuf::RepeatedField, - pub group_edges: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IamPolicyAnalysisResult_IdentityList { - fn default() -> &'a IamPolicyAnalysisResult_IdentityList { - ::default_instance() - } -} - -impl IamPolicyAnalysisResult_IdentityList { - pub fn new() -> IamPolicyAnalysisResult_IdentityList { - ::std::default::Default::default() - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Identity identities = 1; - - - pub fn get_identities(&self) -> &[IamPolicyAnalysisResult_Identity] { - &self.identities - } - pub fn clear_identities(&mut self) { - self.identities.clear(); - } - - // Param is passed by value, moved - pub fn set_identities(&mut self, v: ::protobuf::RepeatedField) { - self.identities = v; - } - - // Mutable pointer to the field. - pub fn mut_identities(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.identities - } - - // Take field - pub fn take_identities(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.identities, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.asset.v1.IamPolicyAnalysisResult.Edge group_edges = 2; - - - pub fn get_group_edges(&self) -> &[IamPolicyAnalysisResult_Edge] { - &self.group_edges - } - pub fn clear_group_edges(&mut self) { - self.group_edges.clear(); - } - - // Param is passed by value, moved - pub fn set_group_edges(&mut self, v: ::protobuf::RepeatedField) { - self.group_edges = v; - } - - // Mutable pointer to the field. - pub fn mut_group_edges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.group_edges - } - - // Take field - pub fn take_group_edges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.group_edges, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for IamPolicyAnalysisResult_IdentityList { - fn is_initialized(&self) -> bool { - for v in &self.identities { - if !v.is_initialized() { - return false; - } - }; - for v in &self.group_edges { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.identities)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.group_edges)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.identities { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.group_edges { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.identities { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.group_edges { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IamPolicyAnalysisResult_IdentityList { - IamPolicyAnalysisResult_IdentityList::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "identities", - |m: &IamPolicyAnalysisResult_IdentityList| { &m.identities }, - |m: &mut IamPolicyAnalysisResult_IdentityList| { &mut m.identities }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "group_edges", - |m: &IamPolicyAnalysisResult_IdentityList| { &m.group_edges }, - |m: &mut IamPolicyAnalysisResult_IdentityList| { &mut m.group_edges }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IamPolicyAnalysisResult.IdentityList", - fields, - file_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(6); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(TemporalAsset::generated_message_descriptor_data()); + messages.push(TimeWindow::generated_message_descriptor_data()); + messages.push(Asset::generated_message_descriptor_data()); + messages.push(Resource::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, ) - }) - } - - fn default_instance() -> &'static IamPolicyAnalysisResult_IdentityList { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(IamPolicyAnalysisResult_IdentityList::new) - } -} - -impl ::protobuf::Clear for IamPolicyAnalysisResult_IdentityList { - fn clear(&mut self) { - self.identities.clear(); - self.group_edges.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IamPolicyAnalysisResult_IdentityList { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IamPolicyAnalysisResult_IdentityList { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\"google/cloud/asset/v1/assets.proto\x12\x15google.cloud.asset.v1\x1a\ - \x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\ - )google/cloud/orgpolicy/v1/orgpolicy.proto\x1a(google/cloud/osconfig/v1/\ - inventory.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a:google/identity/ac\ - cesscontextmanager/v1/access_level.proto\x1a;google/identity/accessconte\ - xtmanager/v1/access_policy.proto\x1a?google/identity/accesscontextmanage\ - r/v1/service_perimeter.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1f\ - google/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xaa\x03\n\ - \rTemporalAsset\x129\n\x06window\x18\x01\x20\x01(\x0b2!.google.cloud.ass\ - et.v1.TimeWindowR\x06window\x12\x18\n\x07deleted\x18\x02\x20\x01(\x08R\ - \x07deleted\x122\n\x05asset\x18\x03\x20\x01(\x0b2\x1c.google.cloud.asset\ - .v1.AssetR\x05asset\x12`\n\x11prior_asset_state\x18\x04\x20\x01(\x0e24.g\ - oogle.cloud.asset.v1.TemporalAsset.PriorAssetStateR\x0fpriorAssetState\ - \x12=\n\x0bprior_asset\x18\x05\x20\x01(\x0b2\x1c.google.cloud.asset.v1.A\ - ssetR\npriorAsset\"o\n\x0fPriorAssetState\x12!\n\x1dPRIOR_ASSET_STATE_UN\ - SPECIFIED\x10\0\x12\x0b\n\x07PRESENT\x10\x01\x12\x0b\n\x07INVALID\x10\ - \x02\x12\x12\n\x0eDOES_NOT_EXIST\x10\x03\x12\x0b\n\x07DELETED\x10\x04\"~\ - \n\nTimeWindow\x129\n\nstart_time\x18\x01\x20\x01(\x0b2\x1a.google.proto\ - buf.TimestampR\tstartTime\x125\n\x08end_time\x18\x02\x20\x01(\x0b2\x1a.g\ - oogle.protobuf.TimestampR\x07endTime\"\x92\x07\n\x05Asset\x12;\n\x0bupda\ - te_time\x18\x0b\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTime\ - \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1d\n\nasset_type\x18\ - \x02\x20\x01(\tR\tassetType\x12;\n\x08resource\x18\x03\x20\x01(\x0b2\x1f\ - .google.cloud.asset.v1.ResourceR\x08resource\x124\n\niam_policy\x18\x04\ - \x20\x01(\x0b2\x15.google.iam.v1.PolicyR\tiamPolicy\x12@\n\norg_policy\ - \x18\x06\x20\x03(\x0b2!.google.cloud.orgpolicy.v1.PolicyR\torgPolicy\x12\ - \\\n\raccess_policy\x18\x07\x20\x01(\x0b25.google.identity.accesscontext\ - manager.v1.AccessPolicyH\0R\x0caccessPolicy\x12Y\n\x0caccess_level\x18\ - \x08\x20\x01(\x0b24.google.identity.accesscontextmanager.v1.AccessLevelH\ - \0R\x0baccessLevel\x12h\n\x11service_perimeter\x18\t\x20\x01(\x0b29.goog\ - le.identity.accesscontextmanager.v1.ServicePerimeterH\0R\x10servicePerim\ - eter\x12F\n\x0cos_inventory\x18\x0c\x20\x01(\x0b2#.google.cloud.osconfig\ - .v1.InventoryR\x0bosInventory\x12O\n\x0erelated_assets\x18\r\x20\x01(\ - \x0b2$.google.cloud.asset.v1.RelatedAssetsR\rrelatedAssetsB\x02\x18\x01\ - \x12H\n\rrelated_asset\x18\x0f\x20\x01(\x0b2#.google.cloud.asset.v1.Rela\ - tedAssetR\x0crelatedAsset\x12\x1c\n\tancestors\x18\n\x20\x03(\tR\tancest\ - orsB\x17\n\x15access_context_policy:'\xeaA$\n\x1fcloudasset.googleapis.c\ - om/Asset\x12\x01*\"\x85\x02\n\x08Resource\x12\x18\n\x07version\x18\x01\ - \x20\x01(\tR\x07version\x124\n\x16discovery_document_uri\x18\x02\x20\x01\ - (\tR\x14discoveryDocumentUri\x12%\n\x0ediscovery_name\x18\x03\x20\x01(\t\ - R\rdiscoveryName\x12!\n\x0cresource_url\x18\x04\x20\x01(\tR\x0bresourceU\ - rl\x12\x16\n\x06parent\x18\x05\x20\x01(\tR\x06parent\x12+\n\x04data\x18\ - \x06\x20\x01(\x0b2\x17.google.protobuf.StructR\x04data\x12\x1a\n\x08loca\ - tion\x18\x08\x20\x01(\tR\x08location\"\xb8\x01\n\rRelatedAssets\x12f\n\ - \x17relationship_attributes\x18\x01\x20\x01(\x0b2-.google.cloud.asset.v1\ - .RelationshipAttributesR\x16relationshipAttributes\x12;\n\x06assets\x18\ - \x02\x20\x03(\x0b2#.google.cloud.asset.v1.RelatedAssetR\x06assets:\x02\ - \x18\x01\"\xac\x01\n\x16RelationshipAttributes\x12\x12\n\x04type\x18\x04\ - \x20\x01(\tR\x04type\x120\n\x14source_resource_type\x18\x01\x20\x01(\tR\ - \x12sourceResourceType\x120\n\x14target_resource_type\x18\x02\x20\x01(\t\ - R\x12targetResourceType\x12\x16\n\x06action\x18\x03\x20\x01(\tR\x06actio\ - n:\x02\x18\x01\"\xb4\x01\n\x0cRelatedAsset\x12:\n\x05asset\x18\x01\x20\ - \x01(\tR\x05assetB$\xfaA!\n\x1fcloudasset.googleapis.com/Asset\x12\x1d\n\ - \nasset_type\x18\x02\x20\x01(\tR\tassetType\x12\x1c\n\tancestors\x18\x03\ - \x20\x03(\tR\tancestors\x12+\n\x11relationship_type\x18\x04\x20\x01(\tR\ - \x10relationshipType\"\x97\x01\n\x03Tag\x12\x1c\n\x07tag_key\x18\x01\x20\ - \x01(\tH\0R\x06tagKey\x88\x01\x01\x12\x20\n\ttag_value\x18\x03\x20\x01(\ - \tH\x01R\x08tagValue\x88\x01\x01\x12%\n\x0ctag_value_id\x18\x04\x20\x01(\ - \tH\x02R\ntagValueId\x88\x01\x01B\n\n\x08_tag_keyB\x0c\n\n_tag_valueB\ - \x0f\n\r_tag_value_id\"\xa0\x01\n\x13EffectiveTagDetails\x120\n\x11attac\ - hed_resource\x18\x01\x20\x01(\tH\0R\x10attachedResource\x88\x01\x01\x12A\ - \n\x0eeffective_tags\x18\x02\x20\x03(\x0b2\x1a.google.cloud.asset.v1.Tag\ - R\reffectiveTagsB\x14\n\x12_attached_resource\"\xd5\x0c\n\x14ResourceSea\ - rchResult\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1d\n\nasset\ - _type\x18\x02\x20\x01(\tR\tassetType\x12\x18\n\x07project\x18\x03\x20\ - \x01(\tR\x07project\x12\x18\n\x07folders\x18\x11\x20\x03(\tR\x07folders\ - \x12\"\n\x0corganization\x18\x12\x20\x01(\tR\x0corganization\x12!\n\x0cd\ - isplay_name\x18\x04\x20\x01(\tR\x0bdisplayName\x12\x20\n\x0bdescription\ - \x18\x05\x20\x01(\tR\x0bdescription\x12\x1a\n\x08location\x18\x06\x20\ - \x01(\tR\x08location\x12O\n\x06labels\x18\x07\x20\x03(\x0b27.google.clou\ - d.asset.v1.ResourceSearchResult.LabelsEntryR\x06labels\x12!\n\x0cnetwork\ - _tags\x18\x08\x20\x03(\tR\x0bnetworkTags\x12\x1b\n\x07kms_key\x18\n\x20\ - \x01(\tR\x06kmsKeyB\x02\x18\x01\x12\x19\n\x08kms_keys\x18\x1c\x20\x03(\t\ - R\x07kmsKeys\x12;\n\x0bcreate_time\x18\x0b\x20\x01(\x0b2\x1a.google.prot\ - obuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x0c\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\nupdateTime\x12\x14\n\x05state\x18\r\x20\ - \x01(\tR\x05state\x12L\n\x15additional_attributes\x18\t\x20\x01(\x0b2\ - \x17.google.protobuf.StructR\x14additionalAttributes\x129\n\x19parent_fu\ - ll_resource_name\x18\x13\x20\x01(\tR\x16parentFullResourceName\x12Y\n\ - \x13versioned_resources\x18\x10\x20\x03(\x0b2(.google.cloud.asset.v1.Ver\ - sionedResourceR\x12versionedResources\x12V\n\x12attached_resources\x18\ - \x14\x20\x03(\x0b2'.google.cloud.asset.v1.AttachedResourceR\x11attachedR\ - esources\x12d\n\rrelationships\x18\x15\x20\x03(\x0b2>.google.cloud.asset\ - .v1.ResourceSearchResult.RelationshipsEntryR\rrelationships\x12\x1d\n\ - \x08tag_keys\x18\x17\x20\x03(\tR\x07tagKeysB\x02\x18\x01\x12!\n\ntag_val\ - ues\x18\x19\x20\x03(\tR\ttagValuesB\x02\x18\x01\x12&\n\rtag_value_ids\ - \x18\x1a\x20\x03(\tR\x0btagValueIdsB\x02\x18\x01\x12.\n\x04tags\x18\x1d\ - \x20\x03(\x0b2\x1a.google.cloud.asset.v1.TagR\x04tags\x12Q\n\x0eeffectiv\ - e_tags\x18\x1e\x20\x03(\x0b2*.google.cloud.asset.v1.EffectiveTagDetailsR\ - \reffectiveTags\x12*\n\x11parent_asset_type\x18g\x20\x01(\tR\x0fparentAs\ - setType\x12o\n\x12scc_security_marks\x18\x20\x20\x03(\x0b2A.google.cloud\ - .asset.v1.ResourceSearchResult.SccSecurityMarksEntryR\x10sccSecurityMark\ - s\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\ - \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1ai\n\x12Relatio\ - nshipsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12=\n\x05value\ - \x18\x02\x20\x01(\x0b2'.google.cloud.asset.v1.RelatedResourcesR\x05value\ - :\x028\x01\x1aC\n\x15SccSecurityMarksEntry\x12\x10\n\x03key\x18\x01\x20\ - \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\ - \x01\"b\n\x11VersionedResource\x12\x18\n\x07version\x18\x01\x20\x01(\tR\ - \x07version\x123\n\x08resource\x18\x02\x20\x01(\x0b2\x17.google.protobuf\ - .StructR\x08resource\"\x8c\x01\n\x10AttachedResource\x12\x1d\n\nasset_ty\ - pe\x18\x01\x20\x01(\tR\tassetType\x12Y\n\x13versioned_resources\x18\x03\ - \x20\x03(\x0b2(.google.cloud.asset.v1.VersionedResourceR\x12versionedRes\ - ources\"g\n\x10RelatedResources\x12S\n\x11related_resources\x18\x01\x20\ - \x03(\x0b2&.google.cloud.asset.v1.RelatedResourceR\x10relatedResources\"\ - ^\n\x0fRelatedResource\x12\x1d\n\nasset_type\x18\x01\x20\x01(\tR\tassetT\ - ype\x12,\n\x12full_resource_name\x18\x02\x20\x01(\tR\x10fullResourceName\ - \"\x88\x05\n\x15IamPolicySearchResult\x12\x1a\n\x08resource\x18\x01\x20\ - \x01(\tR\x08resource\x12\x1d\n\nasset_type\x18\x05\x20\x01(\tR\tassetTyp\ - e\x12\x18\n\x07project\x18\x02\x20\x01(\tR\x07project\x12\x18\n\x07folde\ - rs\x18\x06\x20\x03(\tR\x07folders\x12\"\n\x0corganization\x18\x07\x20\ - \x01(\tR\x0corganization\x12-\n\x06policy\x18\x03\x20\x01(\x0b2\x15.goog\ - le.iam.v1.PolicyR\x06policy\x12Z\n\x0bexplanation\x18\x04\x20\x01(\x0b28\ - .google.cloud.asset.v1.IamPolicySearchResult.ExplanationR\x0bexplanation\ - \x1a\xd0\x02\n\x0bExplanation\x12\x81\x01\n\x13matched_permissions\x18\ - \x01\x20\x03(\x0b2P.google.cloud.asset.v1.IamPolicySearchResult.Explanat\ - ion.MatchedPermissionsEntryR\x12matchedPermissions\x1a/\n\x0bPermissions\ - \x12\x20\n\x0bpermissions\x18\x01\x20\x03(\tR\x0bpermissions\x1a\x8b\x01\ - \n\x17MatchedPermissionsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03ke\ - y\x12Z\n\x05value\x18\x02\x20\x01(\x0b2D.google.cloud.asset.v1.IamPolicy\ - SearchResult.Explanation.PermissionsR\x05value:\x028\x01\"T\n\x16IamPoli\ - cyAnalysisState\x12$\n\x04code\x18\x01\x20\x01(\x0e2\x10.google.rpc.Code\ - R\x04code\x12\x14\n\x05cause\x18\x02\x20\x01(\tR\x05cause\"\xd7\x01\n\ - \x13ConditionEvaluation\x12e\n\x10evaluation_value\x18\x01\x20\x01(\x0e2\ - :.google.cloud.asset.v1.ConditionEvaluation.EvaluationValueR\x0fevaluati\ - onValue\"Y\n\x0fEvaluationValue\x12\x20\n\x1cEVALUATION_VALUE_UNSPECIFIE\ - D\x10\0\x12\x08\n\x04TRUE\x10\x01\x12\t\n\x05FALSE\x10\x02\x12\x0f\n\x0b\ - CONDITIONAL\x10\x03\"\xc3\x0b\n\x17IamPolicyAnalysisResult\x12=\n\x1batt\ - ached_resource_full_name\x18\x01\x20\x01(\tR\x18attachedResourceFullName\ - \x127\n\x0biam_binding\x18\x02\x20\x01(\x0b2\x16.google.iam.v1.BindingR\ - \niamBinding\x12r\n\x14access_control_lists\x18\x03\x20\x03(\x0b2@.googl\ - e.cloud.asset.v1.IamPolicyAnalysisResult.AccessControlListR\x12accessCon\ - trolLists\x12`\n\ridentity_list\x18\x04\x20\x01(\x0b2;.google.cloud.asse\ - t.v1.IamPolicyAnalysisResult.IdentityListR\x0cidentityList\x12%\n\x0eful\ - ly_explored\x18\x05\x20\x01(\x08R\rfullyExplored\x1a\x8e\x01\n\x08Resour\ - ce\x12,\n\x12full_resource_name\x18\x01\x20\x01(\tR\x10fullResourceName\ - \x12T\n\x0eanalysis_state\x18\x02\x20\x01(\x0b2-.google.cloud.asset.v1.I\ - amPolicyAnalysisStateR\ranalysisState\x1a\xa6\x01\n\x06Access\x12\x14\n\ - \x04role\x18\x01\x20\x01(\tH\0R\x04role\x12\x20\n\npermission\x18\x02\ - \x20\x01(\tH\0R\npermission\x12T\n\x0eanalysis_state\x18\x03\x20\x01(\ - \x0b2-.google.cloud.asset.v1.IamPolicyAnalysisStateR\ranalysisStateB\x0e\ - \n\x0coneof_access\x1at\n\x08Identity\x12\x12\n\x04name\x18\x01\x20\x01(\ - \tR\x04name\x12T\n\x0eanalysis_state\x18\x02\x20\x01(\x0b2-.google.cloud\ - .asset.v1.IamPolicyAnalysisStateR\ranalysisState\x1aH\n\x04Edge\x12\x1f\ - \n\x0bsource_node\x18\x01\x20\x01(\tR\nsourceNode\x12\x1f\n\x0btarget_no\ - de\x18\x02\x20\x01(\tR\ntargetNode\x1a\xf8\x02\n\x11AccessControlList\ - \x12U\n\tresources\x18\x01\x20\x03(\x0b27.google.cloud.asset.v1.IamPolic\ - yAnalysisResult.ResourceR\tresources\x12Q\n\x08accesses\x18\x02\x20\x03(\ - \x0b25.google.cloud.asset.v1.IamPolicyAnalysisResult.AccessR\x08accesses\ - \x12Z\n\x0eresource_edges\x18\x03\x20\x03(\x0b23.google.cloud.asset.v1.I\ - amPolicyAnalysisResult.EdgeR\rresourceEdges\x12]\n\x14condition_evaluati\ - on\x18\x04\x20\x01(\x0b2*.google.cloud.asset.v1.ConditionEvaluationR\x13\ - conditionEvaluation\x1a\xbd\x01\n\x0cIdentityList\x12W\n\nidentities\x18\ - \x01\x20\x03(\x0b27.google.cloud.asset.v1.IamPolicyAnalysisResult.Identi\ - tyR\nidentities\x12T\n\x0bgroup_edges\x18\x02\x20\x03(\x0b23.google.clou\ - d.asset.v1.IamPolicyAnalysisResult.EdgeR\ngroupEdgesB\x8d\x01\n\x19com.g\ - oogle.cloud.asset.v1B\nAssetProtoP\x01Z/cloud.google.com/go/asset/apiv1/\ - assetpb;assetpb\xf8\x01\x01\xaa\x02\x15Google.Cloud.Asset.V1\xca\x02\x15\ - Google\\Cloud\\Asset\\V1J\x90\xc5\x02\n\x07\x12\x05\x0e\0\x89\x08\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1e\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\ - \x03\x14\03\n\t\n\x02\x03\x03\x12\x03\x15\02\n\t\n\x02\x03\x04\x12\x03\ - \x16\0$\n\t\n\x02\x03\x05\x12\x03\x17\0D\n\t\n\x02\x03\x06\x12\x03\x18\0\ - E\n\t\n\x02\x03\x07\x12\x03\x19\0I\n\t\n\x02\x03\x08\x12\x03\x1a\0&\n\t\ - \n\x02\x03\t\x12\x03\x1b\0)\n\t\n\x02\x03\n\x12\x03\x1c\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x1e\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x1e\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x1f\02\n\t\n\x02\x08%\x12\x03\x1f\02\n\x08\n\x01\x08\ - \x12\x03\x20\0F\n\t\n\x02\x08\x0b\x12\x03\x20\0F\n\x08\n\x01\x08\x12\x03\ - !\0\"\n\t\n\x02\x08\n\x12\x03!\0\"\n\x08\n\x01\x08\x12\x03\"\0+\n\t\n\ - \x02\x08\x08\x12\x03\"\0+\n\x08\n\x01\x08\x12\x03#\02\n\t\n\x02\x08\x01\ - \x12\x03#\02\n\x08\n\x01\x08\x12\x03$\02\n\t\n\x02\x08)\x12\x03$\02\n\ - \x95\x01\n\x02\x04\0\x12\x04(\0J\x01\x1a\x88\x01\x20An\x20asset\x20in\ - \x20Google\x20Cloud\x20and\x20its\x20temporal\x20metadata,\x20including\ - \x20the\x20time\x20window\n\x20when\x20it\x20was\x20observed\x20and\x20i\ - ts\x20status\x20during\x20that\x20window.\n\n\n\n\x03\x04\0\x01\x12\x03(\ - \x08\x15\n%\n\x04\x04\0\x04\0\x12\x04*\x029\x03\x1a\x17\x20State\x20of\ - \x20prior\x20asset.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03*\x07\x16\nE\n\ - \x06\x04\0\x04\0\x02\0\x12\x03,\x04&\x1a6\x20prior_asset\x20is\x20not\ - \x20applicable\x20for\x20the\x20current\x20asset.\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\0\x01\x12\x03,\x04!\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\ - ,$%\n4\n\x06\x04\0\x04\0\x02\x01\x12\x03/\x04\x10\x1a%\x20prior_asset\ - \x20is\x20populated\x20correctly.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\ - \x12\x03/\x04\x0b\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03/\x0e\x0f\n\ - +\n\x06\x04\0\x04\0\x02\x02\x12\x032\x04\x10\x1a\x1c\x20Failed\x20to\x20\ - set\x20prior_asset.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x032\x04\ - \x0b\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x032\x0e\x0f\n8\n\x06\x04\0\ - \x04\0\x02\x03\x12\x035\x04\x17\x1a)\x20Current\x20asset\x20is\x20the\ - \x20first\x20known\x20state.\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\ - \x035\x04\x12\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\x12\x035\x15\x16\n+\n\ - \x06\x04\0\x04\0\x02\x04\x12\x038\x04\x10\x1a\x1c\x20prior_asset\x20is\ - \x20a\x20deletion.\n\n\x0e\n\x07\x04\0\x04\0\x02\x04\x01\x12\x038\x04\ - \x0b\n\x0e\n\x07\x04\0\x04\0\x02\x04\x02\x12\x038\x0e\x0f\nJ\n\x04\x04\0\ - \x02\0\x12\x03<\x02\x18\x1a=\x20The\x20time\x20window\x20when\x20the\x20\ - asset\x20data\x20and\x20state\x20was\x20observed.\n\n\x0c\n\x05\x04\0\ - \x02\0\x06\x12\x03<\x02\x0c\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03<\r\x13\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03<\x16\x17\n9\n\x04\x04\0\x02\x01\x12\ - \x03?\x02\x13\x1a,\x20Whether\x20the\x20asset\x20has\x20been\x20deleted\ - \x20or\x20not.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03?\x02\x06\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03?\x07\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03?\x11\x12\n(\n\x04\x04\0\x02\x02\x12\x03B\x02\x12\x1a\x1b\x20An\ - \x20asset\x20in\x20Google\x20Cloud.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\ - \x03B\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03B\x08\r\n\x0c\n\x05\ - \x04\0\x02\x02\x03\x12\x03B\x10\x11\n$\n\x04\x04\0\x02\x03\x12\x03E\x02(\ - \x1a\x17\x20State\x20of\x20prior_asset.\n\n\x0c\n\x05\x04\0\x02\x03\x06\ - \x12\x03E\x02\x11\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03E\x12#\n\x0c\n\ - \x05\x04\0\x02\x03\x03\x12\x03E&'\n\x90\x01\n\x04\x04\0\x02\x04\x12\x03I\ - \x02\x18\x1a\x82\x01\x20Prior\x20copy\x20of\x20the\x20asset.\x20Populate\ - d\x20if\x20prior_asset_state\x20is\x20PRESENT.\n\x20Currently\x20this\ - \x20is\x20only\x20set\x20for\x20responses\x20in\x20Real-Time\x20Feed.\n\ - \n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03I\x02\x07\n\x0c\n\x05\x04\0\x02\ - \x04\x01\x12\x03I\x08\x13\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03I\x16\x17\ - \nI\n\x02\x04\x01\x12\x04M\0T\x01\x1a=\x20A\x20time\x20window\x20specifi\ - ed\x20by\x20its\x20`start_time`\x20and\x20`end_time`.\n\n\n\n\x03\x04\ - \x01\x01\x12\x03M\x08\x12\n9\n\x04\x04\x01\x02\0\x12\x03O\x02+\x1a,\x20S\ - tart\x20time\x20of\x20the\x20time\x20window\x20(exclusive).\n\n\x0c\n\ - \x05\x04\x01\x02\0\x06\x12\x03O\x02\x1b\n\x0c\n\x05\x04\x01\x02\0\x01\ - \x12\x03O\x1c&\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03O)*\nq\n\x04\x04\x01\ - \x02\x01\x12\x03S\x02)\x1ad\x20End\x20time\x20of\x20the\x20time\x20windo\ - w\x20(inclusive).\x20If\x20not\x20specified,\x20the\x20current\n\x20time\ - stamp\x20is\x20used\x20instead.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\ - \x03S\x02\x1b\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03S\x1c$\n\x0c\n\x05\ - \x04\x01\x02\x01\x03\x12\x03S'(\n\x94\x04\n\x02\x04\x02\x12\x05_\0\xb5\ - \x01\x01\x1a\x86\x04\x20An\x20asset\x20in\x20Google\x20Cloud.\x20An\x20a\ - sset\x20can\x20be\x20any\x20resource\x20in\x20the\x20Google\x20Cloud\n\ - \x20[resource\n\x20hierarchy](https://cloud.google.com/resource-manager/\ - docs/cloud-platform-resource-hierarchy),\n\x20a\x20resource\x20outside\ - \x20the\x20Google\x20Cloud\x20resource\x20hierarchy\x20(such\x20as\x20Go\ - ogle\n\x20Kubernetes\x20Engine\x20clusters\x20and\x20objects),\x20or\x20\ - a\x20policy\x20(e.g.\x20IAM\x20policy),\n\x20or\x20a\x20relationship\x20\ - (e.g.\x20an\x20INSTANCE_TO_INSTANCEGROUP\x20relationship).\n\x20See\x20[\ - Supported\x20asset\n\x20types](https://cloud.google.com/asset-inventory/\ - docs/supported-asset-types)\n\x20for\x20more\x20information.\n\n\n\n\x03\ - \x04\x02\x01\x12\x03_\x08\r\n\x0b\n\x03\x04\x02\x07\x12\x04`\x02c\x04\n\ - \r\n\x05\x04\x02\x07\x9d\x08\x12\x04`\x02c\x04\n\x7f\n\x04\x04\x02\x02\0\ - \x12\x03g\x02-\x1ar\x20The\x20last\x20update\x20timestamp\x20of\x20an\ - \x20asset.\x20update_time\x20is\x20updated\x20when\n\x20create/update/de\ - lete\x20operation\x20is\x20performed.\n\n\x0c\n\x05\x04\x02\x02\0\x06\ - \x12\x03g\x02\x1b\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03g\x1c'\n\x0c\n\ - \x05\x04\x02\x02\0\x03\x12\x03g*,\n\xff\x01\n\x04\x04\x02\x02\x01\x12\ - \x03o\x02\x12\x1a\xf1\x01\x20The\x20full\x20name\x20of\x20the\x20asset.\ - \x20Example:\n\x20`//compute.googleapis.com/projects/my_project_123/zone\ - s/zone1/instances/instance1`\n\n\x20See\x20[Resource\n\x20names](https:/\ - /cloud.google.com/apis/design/resource_names#full_resource_name)\n\x20fo\ - r\x20more\x20information.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03o\x02\ - \x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03o\t\r\n\x0c\n\x05\x04\x02\ - \x02\x01\x03\x12\x03o\x10\x11\n\xc8\x01\n\x04\x04\x02\x02\x02\x12\x03v\ - \x02\x18\x1a\xba\x01\x20The\x20type\x20of\x20the\x20asset.\x20Example:\ - \x20`compute.googleapis.com/Disk`\n\n\x20See\x20[Supported\x20asset\n\ - \x20types](https://cloud.google.com/asset-inventory/docs/supported-asset\ - -types)\n\x20for\x20more\x20information.\n\n\x0c\n\x05\x04\x02\x02\x02\ - \x05\x12\x03v\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03v\t\x13\n\ - \x0c\n\x05\x04\x02\x02\x02\x03\x12\x03v\x16\x17\n0\n\x04\x04\x02\x02\x03\ - \x12\x03y\x02\x18\x1a#\x20A\x20representation\x20of\x20the\x20resource.\ - \n\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03y\x02\n\n\x0c\n\x05\x04\x02\ - \x02\x03\x01\x12\x03y\x0b\x13\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03y\ - \x16\x17\n\xb5\x04\n\x04\x04\x02\x02\x04\x12\x04\x84\x01\x02&\x1a\xa6\ - \x04\x20A\x20representation\x20of\x20the\x20IAM\x20policy\x20set\x20on\ - \x20a\x20Google\x20Cloud\x20resource.\n\x20There\x20can\x20be\x20a\x20ma\ - ximum\x20of\x20one\x20IAM\x20policy\x20set\x20on\x20any\x20given\x20reso\ - urce.\n\x20In\x20addition,\x20IAM\x20policies\x20inherit\x20their\x20gra\ - nted\x20access\x20scope\x20from\x20any\n\x20policies\x20set\x20on\x20par\ - ent\x20resources\x20in\x20the\x20resource\x20hierarchy.\x20Therefore,\ - \x20the\n\x20effectively\x20policy\x20is\x20the\x20union\x20of\x20both\ - \x20the\x20policy\x20set\x20on\x20this\x20resource\n\x20and\x20each\x20p\ - olicy\x20set\x20on\x20all\x20of\x20the\x20resource's\x20ancestry\x20reso\ - urce\x20levels\x20in\n\x20the\x20hierarchy.\x20See\n\x20[this\x20topic](\ - https://cloud.google.com/iam/help/allow-policies/inheritance)\n\x20for\ - \x20more\x20information.\n\n\r\n\x05\x04\x02\x02\x04\x06\x12\x04\x84\x01\ - \x02\x16\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\x84\x01\x17!\n\r\n\x05\ - \x04\x02\x02\x04\x03\x12\x04\x84\x01$%\n\x85\x02\n\x04\x04\x02\x02\x05\ - \x12\x04\x8a\x01\x02;\x1a\xf6\x01\x20A\x20representation\x20of\x20an\x20\ - [organization\n\x20policy](https://cloud.google.com/resource-manager/doc\ - s/organization-policy/overview#organization_policy).\n\x20There\x20can\ - \x20be\x20more\x20than\x20one\x20organization\x20policy\x20with\x20diffe\ - rent\x20constraints\n\x20set\x20on\x20a\x20given\x20resource.\n\n\r\n\ - \x05\x04\x02\x02\x05\x04\x12\x04\x8a\x01\x02\n\n\r\n\x05\x04\x02\x02\x05\ - \x06\x12\x04\x8a\x01\x0b+\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\x8a\x01,\ - 6\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x8a\x019:\n\x89\x01\n\x04\x04\ - \x02\x08\0\x12\x06\x8e\x01\x02\x9b\x01\x03\x1ay\x20A\x20representation\ - \x20of\x20an\x20[access\n\x20policy](https://cloud.google.com/access-con\ - text-manager/docs/overview#access-policies).\n\n\r\n\x05\x04\x02\x08\0\ - \x01\x12\x04\x8e\x01\x08\x1d\n\x95\x01\n\x04\x04\x02\x02\x06\x12\x04\x91\ - \x01\x04K\x1a\x86\x01\x20Please\x20also\x20refer\x20to\x20the\x20[access\ - \x20policy\x20user\n\x20guide](https://cloud.google.com/access-context-m\ - anager/docs/overview#access-policies).\n\n\r\n\x05\x04\x02\x02\x06\x06\ - \x12\x04\x91\x01\x048\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\x91\x019F\n\ - \r\n\x05\x04\x02\x02\x06\x03\x12\x04\x91\x01IJ\n\x92\x01\n\x04\x04\x02\ - \x02\x07\x12\x04\x95\x01\x04I\x1a\x83\x01\x20Please\x20also\x20refer\x20\ - to\x20the\x20[access\x20level\x20user\n\x20guide](https://cloud.google.c\ - om/access-context-manager/docs/overview#access-levels).\n\n\r\n\x05\x04\ - \x02\x02\x07\x06\x12\x04\x95\x01\x047\n\r\n\x05\x04\x02\x02\x07\x01\x12\ - \x04\x95\x018D\n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\x95\x01GH\n\x88\x01\ - \n\x04\x04\x02\x02\x08\x12\x06\x99\x01\x04\x9a\x01\n\x1ax\x20Please\x20a\ - lso\x20refer\x20to\x20the\x20[service\x20perimeter\x20user\n\x20guide](h\ - ttps://cloud.google.com/vpc-service-controls/docs/overview).\n\n\r\n\x05\ - \x04\x02\x02\x08\x06\x12\x04\x99\x01\x04<\n\r\n\x05\x04\x02\x02\x08\x01\ - \x12\x04\x99\x01=N\n\r\n\x05\x04\x02\x02\x08\x03\x12\x04\x9a\x01\x08\t\n\ - \xb8\x01\n\x04\x04\x02\x02\t\x12\x04\xa0\x01\x027\x1a\xa9\x01\x20A\x20re\ - presentation\x20of\x20runtime\x20OS\x20Inventory\x20information.\x20See\ - \x20[this\n\x20topic](https://cloud.google.com/compute/docs/instances/os\ - -inventory-management)\n\x20for\x20more\x20information.\n\n\r\n\x05\x04\ - \x02\x02\t\x06\x12\x04\xa0\x01\x02$\n\r\n\x05\x04\x02\x02\t\x01\x12\x04\ - \xa0\x01%1\n\r\n\x05\x04\x02\x02\t\x03\x12\x04\xa0\x0146\n\x8c\x02\n\x04\ - \x04\x02\x02\n\x12\x04\xa7\x01\x028\x1a\xfd\x01\x20DEPRECATED.\x20This\ - \x20field\x20only\x20presents\x20for\x20the\x20purpose\x20of\n\x20backwa\ - rd-compatibility.\x20The\x20server\x20will\x20never\x20generate\x20respo\ - nses\x20with\x20this\n\x20field.\n\x20The\x20related\x20assets\x20of\x20\ - the\x20asset\x20of\x20one\x20relationship\x20type.\x20One\x20asset\n\x20\ - only\x20represents\x20one\x20type\x20of\x20relationship.\n\n\r\n\x05\x04\ - \x02\x02\n\x06\x12\x04\xa7\x01\x02\x0f\n\r\n\x05\x04\x02\x02\n\x01\x12\ - \x04\xa7\x01\x10\x1e\n\r\n\x05\x04\x02\x02\n\x03\x12\x04\xa7\x01!#\n\r\n\ - \x05\x04\x02\x02\n\x08\x12\x04\xa7\x01$7\n\x0e\n\x06\x04\x02\x02\n\x08\ - \x03\x12\x04\xa7\x01%6\n7\n\x04\x04\x02\x02\x0b\x12\x04\xaa\x01\x02\"\ - \x1a)\x20One\x20related\x20asset\x20of\x20the\x20current\x20asset.\n\n\r\ - \n\x05\x04\x02\x02\x0b\x06\x12\x04\xaa\x01\x02\x0e\n\r\n\x05\x04\x02\x02\ - \x0b\x01\x12\x04\xaa\x01\x0f\x1c\n\r\n\x05\x04\x02\x02\x0b\x03\x12\x04\ - \xaa\x01\x1f!\n\xe0\x03\n\x04\x04\x02\x02\x0c\x12\x04\xb4\x01\x02!\x1a\ - \xd1\x03\x20The\x20ancestry\x20path\x20of\x20an\x20asset\x20in\x20Google\ - \x20Cloud\x20[resource\n\x20hierarchy](https://cloud.google.com/resource\ - -manager/docs/cloud-platform-resource-hierarchy),\n\x20represented\x20as\ - \x20a\x20list\x20of\x20relative\x20resource\x20names.\x20An\x20ancestry\ - \x20path\x20starts\n\x20with\x20the\x20closest\x20ancestor\x20in\x20the\ - \x20hierarchy\x20and\x20ends\x20at\x20root.\x20If\x20the\x20asset\n\x20i\ - s\x20a\x20project,\x20folder,\x20or\x20organization,\x20the\x20ancestry\ - \x20path\x20starts\x20from\x20the\n\x20asset\x20itself.\n\n\x20Example:\ - \x20`[\"projects/123456789\",\x20\"folders/5432\",\x20\"organizations/12\ - 34\"]`\n\n\r\n\x05\x04\x02\x02\x0c\x04\x12\x04\xb4\x01\x02\n\n\r\n\x05\ - \x04\x02\x02\x0c\x05\x12\x04\xb4\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x0c\ - \x01\x12\x04\xb4\x01\x12\x1b\n\r\n\x05\x04\x02\x02\x0c\x03\x12\x04\xb4\ - \x01\x1e\x20\n<\n\x02\x04\x03\x12\x06\xb8\x01\0\xe7\x01\x01\x1a.\x20A\ - \x20representation\x20of\x20a\x20Google\x20Cloud\x20resource.\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\xb8\x01\x08\x10\n.\n\x04\x04\x03\x02\0\x12\x04\ - \xba\x01\x02\x15\x1a\x20\x20The\x20API\x20version.\x20Example:\x20`v1`\n\ - \n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xba\x01\x02\x08\n\r\n\x05\x04\x03\ - \x02\0\x01\x12\x04\xba\x01\t\x10\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xba\ - \x01\x13\x14\n\x9d\x02\n\x04\x04\x03\x02\x01\x12\x04\xc2\x01\x02$\x1a\ - \x8e\x02\x20The\x20URL\x20of\x20the\x20discovery\x20document\x20containi\ - ng\x20the\x20resource's\x20JSON\x20schema.\n\x20Example:\n\x20`https://w\ - ww.googleapis.com/discovery/v1/apis/compute/v1/rest`\n\n\x20This\x20valu\ - e\x20is\x20unspecified\x20for\x20resources\x20that\x20do\x20not\x20have\ - \x20an\x20API\x20based\x20on\x20a\n\x20discovery\x20document,\x20such\ - \x20as\x20Cloud\x20Bigtable.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc2\ - \x01\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xc2\x01\t\x1f\n\r\n\ - \x05\x04\x03\x02\x01\x03\x12\x04\xc2\x01\"#\n\xd5\x01\n\x04\x04\x03\x02\ - \x02\x12\x04\xc9\x01\x02\x1c\x1a\xc6\x01\x20The\x20JSON\x20schema\x20nam\ - e\x20listed\x20in\x20the\x20discovery\x20document.\x20Example:\n\x20`Pro\ - ject`\n\n\x20This\x20value\x20is\x20unspecified\x20for\x20resources\x20t\ - hat\x20do\x20not\x20have\x20an\x20API\x20based\x20on\x20a\n\x20discovery\ - \x20document,\x20such\x20as\x20Cloud\x20Bigtable.\n\n\r\n\x05\x04\x03\ - \x02\x02\x05\x12\x04\xc9\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\ - \x04\xc9\x01\t\x17\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xc9\x01\x1a\x1b\ - \n\x8d\x02\n\x04\x04\x03\x02\x03\x12\x04\xd0\x01\x02\x1a\x1a\xfe\x01\x20\ - The\x20REST\x20URL\x20for\x20accessing\x20the\x20resource.\x20An\x20HTTP\ - \x20`GET`\x20request\x20using\x20this\n\x20URL\x20returns\x20the\x20reso\ - urce\x20itself.\x20Example:\n\x20`https://cloudresourcemanager.googleapi\ - s.com/v1/projects/my-project-123`\n\n\x20This\x20value\x20is\x20unspecif\ - ied\x20for\x20resources\x20without\x20a\x20REST\x20API.\n\n\r\n\x05\x04\ - \x03\x02\x03\x05\x12\x04\xd0\x01\x02\x08\n\r\n\x05\x04\x03\x02\x03\x01\ - \x12\x04\xd0\x01\t\x15\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xd0\x01\x18\ - \x19\n\xe9\x03\n\x04\x04\x03\x02\x04\x12\x04\xde\x01\x02\x14\x1a\xda\x03\ - \x20The\x20full\x20name\x20of\x20the\x20immediate\x20parent\x20of\x20thi\ - s\x20resource.\x20See\n\x20[Resource\n\x20Names](https://cloud.google.co\ - m/apis/design/resource_names#full_resource_name)\n\x20for\x20more\x20inf\ - ormation.\n\n\x20For\x20Google\x20Cloud\x20assets,\x20this\x20value\x20i\ - s\x20the\x20parent\x20resource\x20defined\x20in\x20the\n\x20[IAM\x20poli\ - cy\n\x20hierarchy](https://cloud.google.com/iam/docs/overview#policy_hie\ - rarchy).\n\x20Example:\n\x20`//cloudresourcemanager.googleapis.com/proje\ - cts/my_project_123`\n\n\x20For\x20third-party\x20assets,\x20this\x20fiel\ - d\x20may\x20be\x20set\x20differently.\n\n\r\n\x05\x04\x03\x02\x04\x05\ - \x12\x04\xde\x01\x02\x08\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\xde\x01\t\ - \x0f\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\xde\x01\x12\x13\np\n\x04\x04\ - \x03\x02\x05\x12\x04\xe2\x01\x02\"\x1ab\x20The\x20content\x20of\x20the\ - \x20resource,\x20in\x20which\x20some\x20sensitive\x20fields\x20are\x20re\ - moved\n\x20and\x20may\x20not\x20be\x20present.\n\n\r\n\x05\x04\x03\x02\ - \x05\x06\x12\x04\xe2\x01\x02\x18\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\ - \xe2\x01\x19\x1d\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xe2\x01\x20!\n\ - \xa1\x01\n\x04\x04\x03\x02\x06\x12\x04\xe6\x01\x02\x16\x1a\x92\x01\x20Th\ - e\x20location\x20of\x20the\x20resource\x20in\x20Google\x20Cloud,\x20such\ - \x20as\x20its\x20zone\x20and\x20region.\n\x20For\x20more\x20information,\ - \x20see\x20https://cloud.google.com/about/locations/.\n\n\r\n\x05\x04\ - \x03\x02\x06\x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\x04\x03\x02\x06\x01\ - \x12\x04\xe6\x01\t\x11\n\r\n\x05\x04\x03\x02\x06\x03\x12\x04\xe6\x01\x14\ - \x15\n\xd9\x01\n\x02\x04\x04\x12\x06\xed\x01\0\xf5\x01\x01\x1a\xca\x01\ - \x20DEPRECATED.\x20This\x20message\x20only\x20presents\x20for\x20the\x20\ - purpose\x20of\n\x20backward-compatibility.\x20The\x20server\x20will\x20n\ - ever\x20populate\x20this\x20message\x20in\n\x20responses.\n\x20The\x20de\ - tailed\x20related\x20assets\x20with\x20the\x20`relationship_type`.\n\n\ - \x0b\n\x03\x04\x04\x01\x12\x04\xed\x01\x08\x15\n\x0b\n\x03\x04\x04\x07\ - \x12\x04\xee\x01\x02\x1b\n\x0c\n\x04\x04\x04\x07\x03\x12\x04\xee\x01\x02\ - \x1b\n5\n\x04\x04\x04\x02\0\x12\x04\xf1\x01\x025\x1a'\x20The\x20detailed\ - \x20relationship\x20attributes.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\ - \xf1\x01\x02\x18\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xf1\x01\x190\n\r\n\ - \x05\x04\x04\x02\0\x03\x12\x04\xf1\x0134\n7\n\x04\x04\x04\x02\x01\x12\ - \x04\xf4\x01\x02#\x1a)\x20The\x20peer\x20resources\x20of\x20the\x20relat\ - ionship.\n\n\r\n\x05\x04\x04\x02\x01\x04\x12\x04\xf4\x01\x02\n\n\r\n\x05\ - \x04\x04\x02\x01\x06\x12\x04\xf4\x01\x0b\x17\n\r\n\x05\x04\x04\x02\x01\ - \x01\x12\x04\xf4\x01\x18\x1e\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xf4\ - \x01!\"\n\x90\x02\n\x02\x04\x05\x12\x06\xfc\x01\0\x8b\x02\x01\x1a\x81\ - \x02\x20DEPRECATED.\x20This\x20message\x20only\x20presents\x20for\x20the\ - \x20purpose\x20of\n\x20backward-compatibility.\x20The\x20server\x20will\ - \x20never\x20populate\x20this\x20message\x20in\n\x20responses.\n\x20The\ - \x20relationship\x20attributes\x20which\x20include\x20\x20`type`,\x20`so\ - urce_resource_type`,\n\x20`target_resource_type`\x20and\x20`action`.\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\xfc\x01\x08\x1e\n\x0b\n\x03\x04\x05\x07\ - \x12\x04\xfd\x01\x02\x1b\n\x0c\n\x04\x04\x05\x07\x03\x12\x04\xfd\x01\x02\ - \x1b\ne\n\x04\x04\x05\x02\0\x12\x04\x81\x02\x02\x12\x1aW\x20The\x20uniqu\ - e\x20identifier\x20of\x20the\x20relationship\x20type.\x20Example:\n\x20`\ - INSTANCE_TO_INSTANCEGROUP`\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x81\x02\ - \x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x81\x02\t\r\n\r\n\x05\x04\ - \x05\x02\0\x03\x12\x04\x81\x02\x10\x11\nQ\n\x04\x04\x05\x02\x01\x12\x04\ - \x84\x02\x02\"\x1aC\x20The\x20source\x20asset\x20type.\x20Example:\x20`c\ - ompute.googleapis.com/Instance`\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\ - \x84\x02\x02\x08\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x84\x02\t\x1d\n\r\ - \n\x05\x04\x05\x02\x01\x03\x12\x04\x84\x02\x20!\nM\n\x04\x04\x05\x02\x02\ - \x12\x04\x87\x02\x02\"\x1a?\x20The\x20target\x20asset\x20type.\x20Exampl\ - e:\x20`compute.googleapis.com/Disk`\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\ - \x04\x87\x02\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\x87\x02\t\x1d\ - \n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\x87\x02\x20!\nK\n\x04\x04\x05\x02\ - \x03\x12\x04\x8a\x02\x02\x14\x1a=\x20The\x20detail\x20of\x20the\x20relat\ - ionship,\x20e.g.\x20`contains`,\x20`attaches`\n\n\r\n\x05\x04\x05\x02\ - \x03\x05\x12\x04\x8a\x02\x02\x08\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\ - \x8a\x02\t\x0f\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\x8a\x02\x12\x13\n\ - \x87\x04\n\x02\x04\x06\x12\x06\x95\x02\0\xb2\x02\x01\x1a\xf8\x03\x20An\ - \x20asset\x20identifier\x20in\x20Google\x20Cloud\x20which\x20contains\ - \x20its\x20name,\x20type\x20and\n\x20ancestors.\x20An\x20asset\x20can\ - \x20be\x20any\x20resource\x20in\x20the\x20Google\x20Cloud\x20[resource\n\ - \x20hierarchy](https://cloud.google.com/resource-manager/docs/cloud-plat\ - form-resource-hierarchy),\n\x20a\x20resource\x20outside\x20the\x20Google\ - \x20Cloud\x20resource\x20hierarchy\x20(such\x20as\x20Google\n\x20Kuberne\ - tes\x20Engine\x20clusters\x20and\x20objects),\x20or\x20a\x20policy\x20(e\ - .g.\x20IAM\x20policy).\n\x20See\x20[Supported\x20asset\n\x20types](https\ - ://cloud.google.com/asset-inventory/docs/supported-asset-types)\n\x20for\ - \x20more\x20information.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x95\x02\x08\ - \x14\n\x82\x02\n\x04\x04\x06\x02\0\x12\x06\x9c\x02\x02\x9e\x02\x05\x1a\ - \xf1\x01\x20The\x20full\x20name\x20of\x20the\x20asset.\x20Example:\n\x20\ - `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/\ - instance1`\n\n\x20See\x20[Resource\n\x20names](https://cloud.google.com/\ - apis/design/resource_names#full_resource_name)\n\x20for\x20more\x20infor\ - mation.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\x9c\x02\x02\x08\n\r\n\x05\ - \x04\x06\x02\0\x01\x12\x04\x9c\x02\t\x0e\n\r\n\x05\x04\x06\x02\0\x03\x12\ - \x04\x9c\x02\x11\x12\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\x9c\x02\x13\ - \x9e\x02\x04\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\x9c\x02\x14\ - \x9e\x02\x03\n\xc9\x01\n\x04\x04\x06\x02\x01\x12\x04\xa5\x02\x02\x18\x1a\ - \xba\x01\x20The\x20type\x20of\x20the\x20asset.\x20Example:\x20`compute.g\ - oogleapis.com/Disk`\n\n\x20See\x20[Supported\x20asset\n\x20types](https:\ - //cloud.google.com/asset-inventory/docs/supported-asset-types)\n\x20for\ - \x20more\x20information.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xa5\x02\ - \x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xa5\x02\t\x13\n\r\n\x05\ - \x04\x06\x02\x01\x03\x12\x04\xa5\x02\x16\x17\n\xf6\x02\n\x04\x04\x06\x02\ - \x02\x12\x04\xad\x02\x02\x20\x1a\xe7\x02\x20The\x20ancestors\x20of\x20an\ - \x20asset\x20in\x20Google\x20Cloud\x20[resource\n\x20hierarchy](https://\ - cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy\ - ),\n\x20represented\x20as\x20a\x20list\x20of\x20relative\x20resource\x20\ - names.\x20An\x20ancestry\x20path\x20starts\n\x20with\x20the\x20closest\ - \x20ancestor\x20in\x20the\x20hierarchy\x20and\x20ends\x20at\x20root.\n\n\ - \x20Example:\x20`[\"projects/123456789\",\x20\"folders/5432\",\x20\"orga\ - nizations/1234\"]`\n\n\r\n\x05\x04\x06\x02\x02\x04\x12\x04\xad\x02\x02\n\ - \n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\xad\x02\x0b\x11\n\r\n\x05\x04\x06\ - \x02\x02\x01\x12\x04\xad\x02\x12\x1b\n\r\n\x05\x04\x06\x02\x02\x03\x12\ - \x04\xad\x02\x1e\x1f\ne\n\x04\x04\x06\x02\x03\x12\x04\xb1\x02\x02\x1f\ - \x1aW\x20The\x20unique\x20identifier\x20of\x20the\x20relationship\x20typ\ - e.\x20Example:\n\x20`INSTANCE_TO_INSTANCEGROUP`\n\n\r\n\x05\x04\x06\x02\ - \x03\x05\x12\x04\xb1\x02\x02\x08\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\ - \xb1\x02\t\x1a\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\xb1\x02\x1d\x1e\nr\ - \n\x02\x04\x07\x12\x06\xb6\x02\0\xc0\x02\x01\x1ad\x20The\x20key\x20and\ - \x20value\x20for\x20a\n\x20[tag](https://cloud.google.com/resource-manag\ - er/docs/tags/tags-overview),\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xb6\x02\ - \x08\x0b\nW\n\x04\x04\x07\x02\0\x12\x04\xb8\x02\x02\x1e\x1aI\x20TagKey\ - \x20namespaced\x20name,\x20in\x20the\x20format\x20of\x20{ORG_ID}/{TAG_KE\ - Y_SHORT_NAME}.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xb8\x02\x02\n\n\r\n\ - \x05\x04\x07\x02\0\x05\x12\x04\xb8\x02\x0b\x11\n\r\n\x05\x04\x07\x02\0\ - \x01\x12\x04\xb8\x02\x12\x19\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xb8\x02\ - \x1c\x1d\nq\n\x04\x04\x07\x02\x01\x12\x04\xbc\x02\x02\x20\x1ac\x20TagVal\ - ue\x20namespaced\x20name,\x20in\x20the\x20format\x20of\n\x20{ORG_ID}/{TA\ - G_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.\n\n\r\n\x05\x04\x07\x02\x01\ - \x04\x12\x04\xbc\x02\x02\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xbc\x02\ - \x0b\x11\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xbc\x02\x12\x1b\n\r\n\x05\ - \x04\x07\x02\x01\x03\x12\x04\xbc\x02\x1e\x1f\nG\n\x04\x04\x07\x02\x02\ - \x12\x04\xbf\x02\x02#\x1a9\x20TagValue\x20ID,\x20in\x20the\x20format\x20\ - of\x20tagValues/{TAG_VALUE_ID}.\n\n\r\n\x05\x04\x07\x02\x02\x04\x12\x04\ - \xbf\x02\x02\n\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xbf\x02\x0b\x11\n\r\ - \n\x05\x04\x07\x02\x02\x01\x12\x04\xbf\x02\x12\x1e\n\r\n\x05\x04\x07\x02\ - \x02\x03\x12\x04\xbf\x02!\"\n]\n\x02\x04\x08\x12\x06\xc3\x02\0\xd4\x02\ - \x01\x1aO\x20The\x20effective\x20tags\x20and\x20the\x20ancestor\x20resou\ - rces\x20from\x20which\x20they\x20were\x20inherited.\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xc3\x02\x08\x1b\n\x9e\x02\n\x04\x04\x08\x02\0\x12\x04\ - \xc9\x02\x02(\x1a\x8f\x02\x20The\x20[full\x20resource\n\x20name](https:/\ - /cloud.google.com/asset-inventory/docs/resource-name-format)\n\x20of\x20\ - the\x20ancestor\x20from\x20which\x20an\x20[effective_tag][]\x20is\x20inh\ - erited,\x20according\x20to\n\x20[tag\n\x20inheritance](https://cloud.goo\ - gle.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n\r\n\ - \x05\x04\x08\x02\0\x04\x12\x04\xc9\x02\x02\n\n\r\n\x05\x04\x08\x02\0\x05\ - \x12\x04\xc9\x02\x0b\x11\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xc9\x02\x12\ - #\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xc9\x02&'\n\xa6\x04\n\x04\x04\x08\ - \x02\x01\x12\x04\xd3\x02\x02\"\x1a\x97\x04\x20The\x20effective\x20tags\ - \x20inherited\x20from\x20the\n\x20[attached_resource][google.cloud.asset\ - .v1.EffectiveTagDetails.attached_resource].\n\x20Note\x20that\x20tags\ - \x20with\x20the\x20same\x20key\x20but\x20different\x20values\x20may\x20a\ - ttach\x20to\n\x20resources\x20at\x20a\x20different\x20hierarchy\x20level\ - s.\x20The\x20lower\x20hierarchy\x20tag\x20value\n\x20will\x20overwrite\ - \x20the\x20higher\x20hierarchy\x20tag\x20value\x20of\x20the\x20same\x20t\ - ag\x20key.\x20In\x20this\n\x20case,\x20the\x20tag\x20value\x20at\x20the\ - \x20higher\x20hierarchy\x20level\x20will\x20be\x20removed.\x20For\x20mor\ - e\n\x20information,\x20see\x20[tag\n\x20inheritance](https://cloud.googl\ - e.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n\r\n\x05\ - \x04\x08\x02\x01\x04\x12\x04\xd3\x02\x02\n\n\r\n\x05\x04\x08\x02\x01\x06\ - \x12\x04\xd3\x02\x0b\x0e\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xd3\x02\ - \x0f\x1d\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xd3\x02\x20!\ne\n\x02\x04\ - \t\x12\x06\xd8\x02\0\xb8\x05\x01\x1aW\x20A\x20result\x20of\x20Resource\ - \x20Search,\x20containing\x20information\x20of\x20a\x20cloud\x20resource\ - .\n\x20Next\x20ID:\x2034\n\n\x0b\n\x03\x04\t\x01\x12\x04\xd8\x02\x08\x1c\ - \n\xa5\x03\n\x04\x04\t\x02\0\x12\x04\xe3\x02\x02\x12\x1a\x96\x03\x20The\ - \x20full\x20resource\x20name\x20of\x20this\x20resource.\x20Example:\n\ - \x20`//compute.googleapis.com/projects/my_project_123/zones/zone1/instan\ - ces/instance1`.\n\x20See\x20[Cloud\x20Asset\x20Inventory\x20Resource\x20\ - Name\n\x20Format](https://cloud.google.com/asset-inventory/docs/resource\ - -name-format)\n\x20for\x20more\x20information.\n\n\x20To\x20search\x20ag\ - ainst\x20the\x20`name`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Examp\ - le:\x20`name:instance1`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20\ - Example:\x20`instance1`\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xe3\x02\x02\ - \x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xe3\x02\t\r\n\r\n\x05\x04\t\x02\0\ - \x03\x12\x04\xe3\x02\x10\x11\n\xb4\x01\n\x04\x04\t\x02\x01\x12\x04\xea\ - \x02\x02\x18\x1a\xa5\x01\x20The\x20type\x20of\x20this\x20resource.\x20Ex\ - ample:\x20`compute.googleapis.com/Disk`.\n\n\x20To\x20search\x20against\ - \x20the\x20`asset_type`:\n\n\x20*\x20Specify\x20the\x20`asset_type`\x20f\ - ield\x20in\x20your\x20search\x20request.\n\n\r\n\x05\x04\t\x02\x01\x05\ - \x12\x04\xea\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xea\x02\t\ - \x13\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xea\x02\x16\x17\n\xe6\x02\n\x04\ - \x04\t\x02\x02\x12\x04\xf5\x02\x02\x15\x1a\xd7\x02\x20The\x20project\x20\ - that\x20this\x20resource\x20belongs\x20to,\x20in\x20the\x20form\x20of\n\ - \x20projects/{PROJECT_NUMBER}.\x20This\x20field\x20is\x20available\x20wh\ - en\x20the\x20resource\n\x20belongs\x20to\x20a\x20project.\n\n\x20To\x20s\ - earch\x20against\x20`project`:\n\n\x20*\x20Use\x20a\x20field\x20query.\ - \x20Example:\x20`project:12345`\n\x20*\x20Use\x20a\x20free\x20text\x20qu\ - ery.\x20Example:\x20`12345`\n\x20*\x20Specify\x20the\x20`scope`\x20field\ - \x20as\x20this\x20project\x20in\x20your\x20search\x20request.\n\n\r\n\ - \x05\x04\t\x02\x02\x05\x12\x04\xf5\x02\x02\x08\n\r\n\x05\x04\t\x02\x02\ - \x01\x12\x04\xf5\x02\t\x10\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xf5\x02\ - \x13\x14\n\xf4\x02\n\x04\x04\t\x02\x03\x12\x04\x80\x03\x02\x1f\x1a\xe5\ - \x02\x20The\x20folder(s)\x20that\x20this\x20resource\x20belongs\x20to,\ - \x20in\x20the\x20form\x20of\n\x20folders/{FOLDER_NUMBER}.\x20This\x20fie\ - ld\x20is\x20available\x20when\x20the\x20resource\n\x20belongs\x20to\x20o\ - ne\x20or\x20more\x20folders.\n\n\x20To\x20search\x20against\x20`folders`\ - :\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example:\x20`folders:(123\ - \x20OR\x20456)`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20Example:\ - \x20`123`\n\x20*\x20Specify\x20the\x20`scope`\x20field\x20as\x20this\x20\ - folder\x20in\x20your\x20search\x20request.\n\n\r\n\x05\x04\t\x02\x03\x04\ - \x12\x04\x80\x03\x02\n\n\r\n\x05\x04\t\x02\x03\x05\x12\x04\x80\x03\x0b\ - \x11\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\x80\x03\x12\x19\n\r\n\x05\x04\t\ - \x02\x03\x03\x12\x04\x80\x03\x1c\x1e\n\x86\x03\n\x04\x04\t\x02\x04\x12\ - \x04\x8b\x03\x02\x1b\x1a\xf7\x02\x20The\x20organization\x20that\x20this\ - \x20resource\x20belongs\x20to,\x20in\x20the\x20form\x20of\n\x20organizat\ - ions/{ORGANIZATION_NUMBER}.\x20This\x20field\x20is\x20available\x20when\ - \x20the\n\x20resource\x20belongs\x20to\x20an\x20organization.\n\n\x20To\ - \x20search\x20against\x20`organization`:\n\n\x20*\x20Use\x20a\x20field\ - \x20query.\x20Example:\x20`organization:123`\n\x20*\x20Use\x20a\x20free\ - \x20text\x20query.\x20Example:\x20`123`\n\x20*\x20Specify\x20the\x20`sco\ - pe`\x20field\x20as\x20this\x20organization\x20in\x20your\x20search\x20re\ - quest.\n\n\r\n\x05\x04\t\x02\x04\x05\x12\x04\x8b\x03\x02\x08\n\r\n\x05\ - \x04\t\x02\x04\x01\x12\x04\x8b\x03\t\x15\n\r\n\x05\x04\t\x02\x04\x03\x12\ - \x04\x8b\x03\x18\x1a\n\x92\x02\n\x04\x04\t\x02\x05\x12\x04\x94\x03\x02\ - \x1a\x1a\x83\x02\x20The\x20display\x20name\x20of\x20this\x20resource.\ - \x20This\x20field\x20is\x20available\x20only\x20when\x20the\n\x20resourc\ - e's\x20Protobuf\x20contains\x20it.\n\n\x20To\x20search\x20against\x20the\ - \x20`display_name`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example:\ - \x20`displayName:\"My\x20Instance\"`\n\x20*\x20Use\x20a\x20free\x20text\ - \x20query.\x20Example:\x20`\"My\x20Instance\"`\n\n\r\n\x05\x04\t\x02\x05\ - \x05\x12\x04\x94\x03\x02\x08\n\r\n\x05\x04\t\x02\x05\x01\x12\x04\x94\x03\ - \t\x15\n\r\n\x05\x04\t\x02\x05\x03\x12\x04\x94\x03\x18\x19\n\xe2\x02\n\ - \x04\x04\t\x02\x06\x12\x04\x9e\x03\x02\x19\x1a\xd3\x02\x20One\x20or\x20m\ - ore\x20paragraphs\x20of\x20text\x20description\x20of\x20this\x20resource\ - .\x20Maximum\x20length\n\x20could\x20be\x20up\x20to\x201M\x20bytes.\x20T\ - his\x20field\x20is\x20available\x20only\x20when\x20the\x20resource's\n\ - \x20Protobuf\x20contains\x20it.\n\n\x20To\x20search\x20against\x20the\ - \x20`description`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example:\ - \x20`description:\"important\x20instance\"`\n\x20*\x20Use\x20a\x20free\ - \x20text\x20query.\x20Example:\x20`\"important\x20instance\"`\n\n\r\n\ - \x05\x04\t\x02\x06\x05\x12\x04\x9e\x03\x02\x08\n\r\n\x05\x04\t\x02\x06\ - \x01\x12\x04\x9e\x03\t\x14\n\r\n\x05\x04\t\x02\x06\x03\x12\x04\x9e\x03\ - \x17\x18\n\xaf\x02\n\x04\x04\t\x02\x07\x12\x04\xa8\x03\x02\x16\x1a\xa0\ - \x02\x20Location\x20can\x20be\x20`global`,\x20regional\x20like\x20`us-ea\ - st1`,\x20or\x20zonal\x20like\n\x20`us-west1-b`.\x20This\x20field\x20is\ - \x20available\x20only\x20when\x20the\x20resource's\x20Protobuf\n\x20cont\ - ains\x20it.\n\n\x20To\x20search\x20against\x20the\x20`location`:\n\n\x20\ - *\x20Use\x20a\x20field\x20query.\x20Example:\x20`location:us-west*`\n\ - \x20*\x20Use\x20a\x20free\x20text\x20query.\x20Example:\x20`us-west*`\n\ - \n\r\n\x05\x04\t\x02\x07\x05\x12\x04\xa8\x03\x02\x08\n\r\n\x05\x04\t\x02\ - \x07\x01\x12\x04\xa8\x03\t\x11\n\r\n\x05\x04\t\x02\x07\x03\x12\x04\xa8\ - \x03\x14\x15\n\xd4\x04\n\x04\x04\t\x02\x08\x12\x04\xb7\x03\x02!\x1a\xc5\ - \x04\x20Labels\x20associated\x20with\x20this\x20resource.\x20See\x20[Lab\ - elling\x20and\x20grouping\x20Google\n\x20Cloud\n\x20resources](https://c\ - loud.google.com/blog/products/gcp/labelling-and-grouping-your-google-clo\ - ud-platform-resources)\n\x20for\x20more\x20information.\x20This\x20field\ - \x20is\x20available\x20only\x20when\x20the\x20resource's\n\x20Protobuf\ - \x20contains\x20it.\n\n\x20To\x20search\x20against\x20the\x20`labels`:\n\ - \n\x20*\x20Use\x20a\x20field\x20query:\n\x20\x20\x20\x20\x20-\x20query\ - \x20on\x20any\x20label's\x20key\x20or\x20value.\x20Example:\x20`labels:p\ - rod`\n\x20\x20\x20\x20\x20-\x20query\x20by\x20a\x20given\x20label.\x20Ex\ - ample:\x20`labels.env:prod`\n\x20\x20\x20\x20\x20-\x20query\x20by\x20a\ - \x20given\x20label's\x20existence.\x20Example:\x20`labels.env:*`\n\x20*\ - \x20Use\x20a\x20free\x20text\x20query.\x20Example:\x20`prod`\n\n\r\n\x05\ - \x04\t\x02\x08\x06\x12\x04\xb7\x03\x02\x15\n\r\n\x05\x04\t\x02\x08\x01\ - \x12\x04\xb7\x03\x16\x1c\n\r\n\x05\x04\t\x02\x08\x03\x12\x04\xb7\x03\x1f\ - \x20\n\x94\x04\n\x04\x04\t\x02\t\x12\x04\xc4\x03\x02#\x1a\x85\x04\x20Net\ - work\x20tags\x20associated\x20with\x20this\x20resource.\x20Like\x20label\ - s,\x20network\x20tags\x20are\x20a\n\x20type\x20of\x20annotations\x20used\ - \x20to\x20group\x20Google\x20Cloud\x20resources.\x20See\x20[Labelling\n\ - \x20Google\x20Cloud\n\x20resources](https://cloud.google.com/blog/produc\ - ts/gcp/labelling-and-grouping-your-google-cloud-platform-resources)\n\ - \x20for\x20more\x20information.\x20This\x20field\x20is\x20available\x20o\ - nly\x20when\x20the\x20resource's\n\x20Protobuf\x20contains\x20it.\n\n\ - \x20To\x20search\x20against\x20the\x20`network_tags`:\n\n\x20*\x20Use\ - \x20a\x20field\x20query.\x20Example:\x20`networkTags:internal`\n\x20*\ - \x20Use\x20a\x20free\x20text\x20query.\x20Example:\x20`internal`\n\n\r\n\ - \x05\x04\t\x02\t\x04\x12\x04\xc4\x03\x02\n\n\r\n\x05\x04\t\x02\t\x05\x12\ - \x04\xc4\x03\x0b\x11\n\r\n\x05\x04\t\x02\t\x01\x12\x04\xc4\x03\x12\x1e\n\ - \r\n\x05\x04\t\x02\t\x03\x12\x04\xc4\x03!\"\n\xba\x06\n\x04\x04\t\x02\n\ - \x12\x04\xd7\x03\x02*\x1a\xab\x06\x20The\x20Cloud\x20KMS\n\x20[CryptoKey\ - ](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations\ - .keyRings.cryptoKeys)\n\x20name\x20or\n\x20[CryptoKeyVersion](https://cl\ - oud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cr\ - yptoKeys.cryptoKeyVersions)\n\x20name.\n\n\x20This\x20field\x20only\x20p\ - resents\x20for\x20the\x20purpose\x20of\x20backward\x20compatibility.\x20\ - Please\n\x20use\x20the\x20`kms_keys`\x20field\x20to\x20retrieve\x20Cloud\ - \x20KMS\x20key\x20information.\x20This\x20field\n\x20is\x20available\x20\ - only\x20when\x20the\x20resource's\x20Protobuf\x20contains\x20it\x20and\ - \x20will\x20only\x20be\n\x20populated\x20for\x20[these\x20resource\n\x20\ - types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#\ - resource_types_with_the_to_be_deprecated_kmskey_field)\n\x20for\x20backw\ - ard\x20compatible\x20purposes.\n\n\x20To\x20search\x20against\x20the\x20\ - `kms_key`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example:\x20`kmsKe\ - y:key`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20Example:\x20`key`\ - \n\n\r\n\x05\x04\t\x02\n\x05\x12\x04\xd7\x03\x02\x08\n\r\n\x05\x04\t\x02\ - \n\x01\x12\x04\xd7\x03\t\x10\n\r\n\x05\x04\t\x02\n\x03\x12\x04\xd7\x03\ - \x13\x15\n\r\n\x05\x04\t\x02\n\x08\x12\x04\xd7\x03\x16)\n\x0e\n\x06\x04\ - \t\x02\n\x08\x03\x12\x04\xd7\x03\x17(\n\xde\x03\n\x04\x04\t\x02\x0b\x12\ - \x04\xe4\x03\x02\x20\x1a\xcf\x03\x20The\x20Cloud\x20KMS\n\x20[CryptoKey]\ - (https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.\ - keyRings.cryptoKeys)\n\x20names\x20or\n\x20[CryptoKeyVersion](https://cl\ - oud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cr\ - yptoKeys.cryptoKeyVersions)\n\x20names.\x20This\x20field\x20is\x20availa\ - ble\x20only\x20when\x20the\x20resource's\x20Protobuf\x20contains\n\x20it\ - .\n\n\x20To\x20search\x20against\x20the\x20`kms_keys`:\n\n\x20*\x20Use\ - \x20a\x20field\x20query.\x20Example:\x20`kmsKeys:key`\n\x20*\x20Use\x20a\ - \x20free\x20text\x20query.\x20Example:\x20`key`\n\n\r\n\x05\x04\t\x02\ - \x0b\x04\x12\x04\xe4\x03\x02\n\n\r\n\x05\x04\t\x02\x0b\x05\x12\x04\xe4\ - \x03\x0b\x11\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\xe4\x03\x12\x1a\n\r\n\ - \x05\x04\t\x02\x0b\x03\x12\x04\xe4\x03\x1d\x1f\n\x91\x04\n\x04\x04\t\x02\ - \x0c\x12\x04\xf1\x03\x02-\x1a\x82\x04\x20The\x20create\x20timestamp\x20o\ - f\x20this\x20resource,\x20at\x20which\x20the\x20resource\x20was\x20creat\ - ed.\n\x20The\x20granularity\x20is\x20in\x20seconds.\x20Timestamp.nanos\ - \x20will\x20always\x20be\x200.\x20This\x20field\n\x20is\x20available\x20\ - only\x20when\x20the\x20resource's\x20Protobuf\x20contains\x20it.\n\n\x20\ - To\x20search\x20against\x20`create_time`:\n\n\x20*\x20Use\x20a\x20field\ - \x20query.\n\x20\x20\x20\x20\x20-\x20value\x20in\x20seconds\x20since\x20\ - unix\x20epoch.\x20Example:\x20`createTime\x20>\x201609459200`\n\x20\x20\ - \x20\x20\x20-\x20value\x20in\x20date\x20string.\x20Example:\x20`createTi\ - me\x20>\x202021-01-01`\n\x20\x20\x20\x20\x20-\x20value\x20in\x20date-tim\ - e\x20string\x20(must\x20be\x20quoted).\x20Example:\x20`createTime\x20>\n\ - \x20\x20\x20\x20\x20\"2021-01-01T00:00:00\"`\n\n\r\n\x05\x04\t\x02\x0c\ - \x06\x12\x04\xf1\x03\x02\x1b\n\r\n\x05\x04\t\x02\x0c\x01\x12\x04\xf1\x03\ - \x1c'\n\r\n\x05\x04\t\x02\x0c\x03\x12\x04\xf1\x03*,\n\xa8\x04\n\x04\x04\ - \t\x02\r\x12\x04\xff\x03\x02-\x1a\x99\x04\x20The\x20last\x20update\x20ti\ - mestamp\x20of\x20this\x20resource,\x20at\x20which\x20the\x20resource\x20\ - was\x20last\n\x20modified\x20or\x20deleted.\x20The\x20granularity\x20is\ - \x20in\x20seconds.\x20Timestamp.nanos\x20will\n\x20always\x20be\x200.\ - \x20This\x20field\x20is\x20available\x20only\x20when\x20the\x20resource'\ - s\x20Protobuf\n\x20contains\x20it.\n\n\x20To\x20search\x20against\x20`up\ - date_time`:\n\n\x20*\x20Use\x20a\x20field\x20query.\n\x20\x20\x20\x20\ - \x20-\x20value\x20in\x20seconds\x20since\x20unix\x20epoch.\x20Example:\ - \x20`updateTime\x20<\x201609459200`\n\x20\x20\x20\x20\x20-\x20value\x20i\ - n\x20date\x20string.\x20Example:\x20`updateTime\x20<\x202021-01-01`\n\ - \x20\x20\x20\x20\x20-\x20value\x20in\x20date-time\x20string\x20(must\x20\ - be\x20quoted).\x20Example:\x20`updateTime\x20<\n\x20\x20\x20\x20\x20\"20\ - 21-01-01T00:00:00\"`\n\n\r\n\x05\x04\t\x02\r\x06\x12\x04\xff\x03\x02\x1b\ - \n\r\n\x05\x04\t\x02\r\x01\x12\x04\xff\x03\x1c'\n\r\n\x05\x04\t\x02\r\ - \x03\x12\x04\xff\x03*,\n\xbb\x07\n\x04\x04\t\x02\x0e\x12\x04\x95\x04\x02\ - \x14\x1a\xac\x07\x20The\x20state\x20of\x20this\x20resource.\x20Different\ - \x20resources\x20types\x20have\x20different\x20state\n\x20definitions\ - \x20that\x20are\x20mapped\x20from\x20various\x20fields\x20of\x20differen\ - t\x20resource\n\x20types.\x20This\x20field\x20is\x20available\x20only\ - \x20when\x20the\x20resource's\x20Protobuf\x20contains\n\x20it.\n\n\x20Ex\ - ample:\n\x20If\x20the\x20resource\x20is\x20an\x20instance\x20provided\ - \x20by\x20Compute\x20Engine,\n\x20its\x20state\x20will\x20include\x20PRO\ - VISIONING,\x20STAGING,\x20RUNNING,\x20STOPPING,\n\x20SUSPENDING,\x20SUSP\ - ENDED,\x20REPAIRING,\x20and\x20TERMINATED.\x20See\x20`status`\x20definit\ - ion\n\x20in\x20[API\n\x20Reference](https://cloud.google.com/compute/doc\ - s/reference/rest/v1/instances).\n\x20If\x20the\x20resource\x20is\x20a\ - \x20project\x20provided\x20by\x20Resource\x20Manager,\x20its\x20state\n\ - \x20will\x20include\x20LIFECYCLE_STATE_UNSPECIFIED,\x20ACTIVE,\x20DELETE\ - _REQUESTED\x20and\n\x20DELETE_IN_PROGRESS.\x20See\x20`lifecycleState`\ - \x20definition\x20in\x20[API\n\x20Reference](https://cloud.google.com/re\ - source-manager/reference/rest/v1/projects).\n\n\x20To\x20search\x20again\ - st\x20the\x20`state`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example\ - :\x20`state:RUNNING`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20Exa\ - mple:\x20`RUNNING`\n\n\r\n\x05\x04\t\x02\x0e\x05\x12\x04\x95\x04\x02\x08\ - \n\r\n\x05\x04\t\x02\x0e\x01\x12\x04\x95\x04\t\x0e\n\r\n\x05\x04\t\x02\ - \x0e\x03\x12\x04\x95\x04\x11\x13\n\xf6\x07\n\x04\x04\t\x02\x0f\x12\x04\ - \xaa\x04\x023\x1a\xe7\x07\x20The\x20additional\x20searchable\x20attribut\ - es\x20of\x20this\x20resource.\x20The\x20attributes\x20may\n\x20vary\x20f\ - rom\x20one\x20resource\x20type\x20to\x20another.\x20Examples:\x20`projec\ - tId`\x20for\x20Project,\n\x20`dnsName`\x20for\x20DNS\x20ManagedZone.\x20\ - This\x20field\x20contains\x20a\x20subset\x20of\x20the\x20resource\n\x20m\ - etadata\x20fields\x20that\x20are\x20returned\x20by\x20the\x20List\x20or\ - \x20Get\x20APIs\x20provided\x20by\x20the\n\x20corresponding\x20Google\ - \x20Cloud\x20service\x20(e.g.,\x20Compute\x20Engine).\x20see\x20[API\n\ - \x20references\x20and\x20supported\x20searchable\n\x20attributes](https:\ - //cloud.google.com/asset-inventory/docs/supported-asset-types#searchable\ - _asset_types)\n\x20to\x20see\x20which\x20fields\x20are\x20included.\n\n\ - \x20You\x20can\x20search\x20values\x20of\x20these\x20fields\x20through\ - \x20free\x20text\x20search.\x20However,\n\x20you\x20should\x20not\x20con\ - sume\x20the\x20field\x20programically\x20as\x20the\x20field\x20names\x20\ - and\n\x20values\x20may\x20change\x20as\x20the\x20Google\x20Cloud\x20serv\ - ice\x20updates\x20to\x20a\x20new\x20incompatible\n\x20API\x20version.\n\ - \n\x20To\x20search\x20against\x20the\x20`additional_attributes`:\n\n\x20\ - *\x20Use\x20a\x20free\x20text\x20query\x20to\x20match\x20the\x20attribut\ - es\x20values.\x20Example:\x20to\x20search\n\x20\x20\x20`additional_attri\ - butes\x20=\x20{\x20dnsName:\x20\"foobar\"\x20}`,\x20you\x20can\x20issue\ - \x20a\x20query\n\x20\x20\x20`foobar`.\n\n\r\n\x05\x04\t\x02\x0f\x06\x12\ - \x04\xaa\x04\x02\x18\n\r\n\x05\x04\t\x02\x0f\x01\x12\x04\xaa\x04\x19.\n\ - \r\n\x05\x04\t\x02\x0f\x03\x12\x04\xaa\x0412\n\x81\x02\n\x04\x04\t\x02\ - \x10\x12\x04\xb3\x04\x02(\x1a\xf2\x01\x20The\x20full\x20resource\x20name\ - \x20of\x20this\x20resource's\x20parent,\x20if\x20it\x20has\x20one.\n\x20\ - To\x20search\x20against\x20the\x20`parent_full_resource_name`:\n\n\x20*\ - \x20Use\x20a\x20field\x20query.\x20Example:\n\x20`parentFullResourceName\ - :\"project-name\"`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20Examp\ - le:\n\x20`project-name`\n\n\r\n\x05\x04\t\x02\x10\x05\x12\x04\xb3\x04\ - \x02\x08\n\r\n\x05\x04\t\x02\x10\x01\x12\x04\xb3\x04\t\"\n\r\n\x05\x04\t\ - \x02\x10\x03\x12\x04\xb3\x04%'\n\xf5\x02\n\x04\x04\t\x02\x11\x12\x04\xbc\ - \x04\x026\x1a\xe6\x02\x20Versioned\x20resource\x20representations\x20of\ - \x20this\x20resource.\x20This\x20is\x20repeated\n\x20because\x20there\ - \x20could\x20be\x20multiple\x20versions\x20of\x20resource\x20representat\ - ions\x20during\n\x20version\x20migration.\n\n\x20This\x20`versioned_reso\ - urces`\x20field\x20is\x20not\x20searchable.\x20Some\x20attributes\x20of\ - \x20the\n\x20resource\x20representations\x20are\x20exposed\x20in\x20`add\ - itional_attributes`\x20field,\x20so\n\x20as\x20to\x20allow\x20users\x20t\ - o\x20search\x20on\x20them.\n\n\r\n\x05\x04\t\x02\x11\x04\x12\x04\xbc\x04\ - \x02\n\n\r\n\x05\x04\t\x02\x11\x06\x12\x04\xbc\x04\x0b\x1c\n\r\n\x05\x04\ - \t\x02\x11\x01\x12\x04\xbc\x04\x1d0\n\r\n\x05\x04\t\x02\x11\x03\x12\x04\ - \xbc\x0435\n\x92\x03\n\x04\x04\t\x02\x12\x12\x04\xc5\x04\x024\x1a\x83\ - \x03\x20Attached\x20resources\x20of\x20this\x20resource.\x20For\x20examp\ - le,\x20an\x20OSConfig\n\x20Inventory\x20is\x20an\x20attached\x20resource\ - \x20of\x20a\x20Compute\x20Instance.\x20This\x20field\x20is\n\x20repeated\ - \x20because\x20a\x20resource\x20could\x20have\x20multiple\x20attached\ - \x20resources.\n\n\x20This\x20`attached_resources`\x20field\x20is\x20not\ - \x20searchable.\x20Some\x20attributes\n\x20of\x20the\x20attached\x20reso\ - urces\x20are\x20exposed\x20in\x20`additional_attributes`\x20field,\x20so\ - \n\x20as\x20to\x20allow\x20users\x20to\x20search\x20on\x20them.\n\n\r\n\ - \x05\x04\t\x02\x12\x04\x12\x04\xc5\x04\x02\n\n\r\n\x05\x04\t\x02\x12\x06\ - \x12\x04\xc5\x04\x0b\x1b\n\r\n\x05\x04\t\x02\x12\x01\x12\x04\xc5\x04\x1c\ - .\n\r\n\x05\x04\t\x02\x12\x03\x12\x04\xc5\x0413\n\xff\x02\n\x04\x04\t\ - \x02\x13\x12\x04\xcd\x04\x023\x1a\xf0\x02\x20A\x20map\x20of\x20related\ - \x20resources\x20of\x20this\x20resource,\x20keyed\x20by\x20the\n\x20rela\ - tionship\x20type.\x20A\x20relationship\x20type\x20is\x20in\x20the\x20for\ - mat\x20of\n\x20{SourceType}_{ACTION}_{DestType}.\x20Example:\x20`DISK_TO\ - _INSTANCE`,\n\x20`DISK_TO_NETWORK`,\x20`INSTANCE_TO_INSTANCEGROUP`.\n\ - \x20See\x20[supported\x20relationship\n\x20types](https://cloud.google.c\ - om/asset-inventory/docs/supported-asset-types#supported_relationship_typ\ - es).\n\n\r\n\x05\x04\t\x02\x13\x06\x12\x04\xcd\x04\x02\x1f\n\r\n\x05\x04\ - \t\x02\x13\x01\x12\x04\xcd\x04\x20-\n\r\n\x05\x04\t\x02\x13\x03\x12\x04\ - \xcd\x0402\n\x94\x03\n\x04\x04\t\x02\x14\x12\x04\xdc\x04\x024\x1a\x85\ - \x03\x20This\x20field\x20is\x20only\x20present\x20for\x20the\x20purpose\ - \x20of\x20backward\x20compatibility.\n\x20Please\x20use\x20the\x20`tags`\ - \x20field\x20instead.\n\n\x20TagKey\x20namespaced\x20names,\x20in\x20the\ - \x20format\x20of\x20{ORG_ID}/{TAG_KEY_SHORT_NAME}.\n\x20To\x20search\x20\ - against\x20the\x20`tagKeys`:\n\n\x20*\x20Use\x20a\x20field\x20query.\x20\ - Example:\n\x20\x20\x20\x20\x20-\x20`tagKeys:\"123456789/env*\"`\n\x20\ - \x20\x20\x20\x20-\x20`tagKeys=\"123456789/env\"`\n\x20\x20\x20\x20\x20-\ - \x20`tagKeys:\"env\"`\n\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20\ - Example:\n\x20\x20\x20\x20\x20-\x20`env`\n\n\r\n\x05\x04\t\x02\x14\x04\ - \x12\x04\xdc\x04\x02\n\n\r\n\x05\x04\t\x02\x14\x05\x12\x04\xdc\x04\x0b\ - \x11\n\r\n\x05\x04\t\x02\x14\x01\x12\x04\xdc\x04\x12\x1a\n\r\n\x05\x04\t\ - \x02\x14\x03\x12\x04\xdc\x04\x1d\x1f\n\r\n\x05\x04\t\x02\x14\x08\x12\x04\ - \xdc\x04\x203\n\x0e\n\x06\x04\t\x02\x14\x08\x03\x12\x04\xdc\x04!2\n\xdf\ - \x03\n\x04\x04\t\x02\x15\x12\x04\xed\x04\x026\x1a\xd0\x03\x20This\x20fie\ - ld\x20is\x20only\x20present\x20for\x20the\x20purpose\x20of\x20backward\ - \x20compatibility.\n\x20Please\x20use\x20the\x20`tags`\x20field\x20inste\ - ad.\n\n\x20TagValue\x20namespaced\x20names,\x20in\x20the\x20format\x20of\ - \n\x20{ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.\n\x20To\x20s\ - earch\x20against\x20the\x20`tagValues`:\n\n\x20*\x20Use\x20a\x20field\ - \x20query.\x20Example:\n\x20\x20\x20\x20\x20-\x20`tagValues:\"env\"`\n\ - \x20\x20\x20\x20\x20-\x20`tagValues:\"env/prod\"`\n\x20\x20\x20\x20\x20-\ - \x20`tagValues:\"123456789/env/prod*\"`\n\x20\x20\x20\x20\x20-\x20`tagVa\ - lues=\"123456789/env/prod\"`\n\n\x20*\x20Use\x20a\x20free\x20text\x20que\ - ry.\x20Example:\n\x20\x20\x20\x20\x20-\x20`prod`\n\n\r\n\x05\x04\t\x02\ - \x15\x04\x12\x04\xed\x04\x02\n\n\r\n\x05\x04\t\x02\x15\x05\x12\x04\xed\ - \x04\x0b\x11\n\r\n\x05\x04\t\x02\x15\x01\x12\x04\xed\x04\x12\x1c\n\r\n\ - \x05\x04\t\x02\x15\x03\x12\x04\xed\x04\x1f!\n\r\n\x05\x04\t\x02\x15\x08\ - \x12\x04\xed\x04\"5\n\x0e\n\x06\x04\t\x02\x15\x08\x03\x12\x04\xed\x04#4\ - \n\xd3\x02\n\x04\x04\t\x02\x16\x12\x04\xfa\x04\x029\x1a\xc4\x02\x20This\ - \x20field\x20is\x20only\x20present\x20for\x20the\x20purpose\x20of\x20bac\ - kward\x20compatibility.\n\x20Please\x20use\x20the\x20`tags`\x20field\x20\ - instead.\n\n\x20TagValue\x20IDs,\x20in\x20the\x20format\x20of\x20tagValu\ - es/{TAG_VALUE_ID}.\n\x20To\x20search\x20against\x20the\x20`tagValueIds`:\ - \n\n\x20*\x20Use\x20a\x20field\x20query.\x20Example:\n\x20\x20\x20\x20\ - \x20-\x20`tagValueIds=\"tagValues/456\"`\n\n\x20*\x20Use\x20a\x20free\ - \x20text\x20query.\x20Example:\n\x20\x20\x20\x20\x20-\x20`456`\n\n\r\n\ - \x05\x04\t\x02\x16\x04\x12\x04\xfa\x04\x02\n\n\r\n\x05\x04\t\x02\x16\x05\ - \x12\x04\xfa\x04\x0b\x11\n\r\n\x05\x04\t\x02\x16\x01\x12\x04\xfa\x04\x12\ - \x1f\n\r\n\x05\x04\t\x02\x16\x03\x12\x04\xfa\x04\"$\n\r\n\x05\x04\t\x02\ - \x16\x08\x12\x04\xfa\x04%8\n\x0e\n\x06\x04\t\x02\x16\x08\x03\x12\x04\xfa\ - \x04&7\n\xba\x03\n\x04\x04\t\x02\x17\x12\x04\x8c\x05\x02\x19\x1a\xab\x03\ - \x20The\x20tags\x20directly\x20attached\x20to\x20this\x20resource.\n\n\ - \x20To\x20search\x20against\x20the\x20`tags`:\n\n\x20*\x20Use\x20a\x20fi\ - eld\x20query.\x20Example:\n\x20\x20\x20\x20\x20-\x20`tagKeys:\"123456789\ - /env*\"`\n\x20\x20\x20\x20\x20-\x20`tagKeys=\"123456789/env\"`\n\x20\x20\ - \x20\x20\x20-\x20`tagKeys:\"env\"`\n\x20\x20\x20\x20\x20-\x20`tagValues:\ - \"env\"`\n\x20\x20\x20\x20\x20-\x20`tagValues:\"env/prod\"`\n\x20\x20\ - \x20\x20\x20-\x20`tagValues:\"123456789/env/prod*\"`\n\x20\x20\x20\x20\ - \x20-\x20`tagValues=\"123456789/env/prod\"`\n\x20\x20\x20\x20\x20-\x20`t\ - agValueIds=\"tagValues/456\"`\n\n\x20*\x20Use\x20a\x20free\x20text\x20qu\ - ery.\x20Example:\n\x20\x20\x20\x20\x20-\x20`env/prod`\n\n\r\n\x05\x04\t\ - \x02\x17\x04\x12\x04\x8c\x05\x02\n\n\r\n\x05\x04\t\x02\x17\x06\x12\x04\ - \x8c\x05\x0b\x0e\n\r\n\x05\x04\t\x02\x17\x01\x12\x04\x8c\x05\x0f\x13\n\r\ - \n\x05\x04\t\x02\x17\x03\x12\x04\x8c\x05\x16\x18\n\xbf\x05\n\x04\x04\t\ - \x02\x18\x12\x04\x9e\x05\x023\x1a\xb0\x05\x20The\x20effective\x20tags\ - \x20on\x20this\x20resource.\x20All\x20of\x20the\x20tags\x20that\x20are\ - \x20both\x20attached\n\x20to\x20and\x20inherited\x20by\x20a\x20resource\ - \x20are\x20collectively\x20called\x20the\x20effective\n\x20tags.\x20For\ - \x20more\x20information,\x20see\x20[tag\n\x20inheritance](https://cloud.\ - google.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n\ - \x20To\x20search\x20against\x20the\x20`effective_tags`:\n\n\x20*\x20Use\ - \x20a\x20field\x20query.\x20Example:\n\x20\x20\x20\x20\x20-\x20`effectiv\ - eTagKeys:\"123456789/env*\"`\n\x20\x20\x20\x20\x20-\x20`effectiveTagKeys\ - =\"123456789/env\"`\n\x20\x20\x20\x20\x20-\x20`effectiveTagKeys:\"env\"`\ - \n\x20\x20\x20\x20\x20-\x20`effectiveTagValues:\"env\"`\n\x20\x20\x20\ - \x20\x20-\x20`effectiveTagValues:\"env/prod\"`\n\x20\x20\x20\x20\x20-\ - \x20`effectiveTagValues:\"123456789/env/prod*\"`\n\x20\x20\x20\x20\x20-\ - \x20`effectiveTagValues=\"123456789/env/prod\"`\n\x20\x20\x20\x20\x20-\ - \x20`effectiveTagValueIds=\"tagValues/456\"`\n\n\r\n\x05\x04\t\x02\x18\ - \x04\x12\x04\x9e\x05\x02\n\n\r\n\x05\x04\t\x02\x18\x06\x12\x04\x9e\x05\ - \x0b\x1e\n\r\n\x05\x04\t\x02\x18\x01\x12\x04\x9e\x05\x1f-\n\r\n\x05\x04\ - \t\x02\x18\x03\x12\x04\x9e\x0502\n\xaf\x02\n\x04\x04\t\x02\x19\x12\x04\ - \xa8\x05\x02!\x1a\xa0\x02\x20The\x20type\x20of\x20this\x20resource's\x20\ - immediate\x20parent,\x20if\x20there\x20is\x20one.\n\n\x20To\x20search\ - \x20against\x20the\x20`parent_asset_type`:\n\n\x20*\x20Use\x20a\x20field\ - \x20query.\x20Example:\n\x20`parentAssetType:\"cloudresourcemanager.goog\ - leapis.com/Project\"`\n\x20*\x20Use\x20a\x20free\x20text\x20query.\x20Ex\ - ample:\n\x20`cloudresourcemanager.googleapis.com/Project`\n\n\r\n\x05\ - \x04\t\x02\x19\x05\x12\x04\xa8\x05\x02\x08\n\r\n\x05\x04\t\x02\x19\x01\ - \x12\x04\xa8\x05\t\x1a\n\r\n\x05\x04\t\x02\x19\x03\x12\x04\xa8\x05\x1d\ - \x20\n\xe7\x04\n\x04\x04\t\x02\x1a\x12\x04\xb7\x05\x02.\x1a\xd8\x04\x20T\ - he\x20actual\x20content\x20of\x20Security\x20Command\x20Center\x20securi\ - ty\x20marks\x20associated\n\x20with\x20the\x20asset.\n\n\n\x20Note\x20th\ - at\x20both\x20staging\x20&\x20prod\x20SecurityMarks\x20are\x20attached\ - \x20on\x20prod\x20resources.\n\x20In\x20CAS\x20preprod/prod,\x20both\x20\ - staging\x20&\x20prod\x20SecurityMarks\x20are\x20ingested\x20and\n\x20ret\ - urned\x20in\x20the\x20following\x20`security_marks`\x20map.\x20In\x20tha\ - t\x20case,\x20the\x20prefix\n\x20\"staging.\"\x20will\x20be\x20added\x20\ - to\x20the\x20keys\x20of\x20all\x20the\x20staging\x20marks.\n\x20To\x20se\ - arch\x20against\x20SCC\x20SecurityMarks\x20field:\n\n\x20\x20\x20*\x20Us\ - e\x20a\x20field\x20query:\n\x20\x20\x20\x20\x20-\x20query\x20by\x20a\x20\ - given\x20key\x20value\x20pair.\x20Example:\x20`sccSecurityMarks.foo=bar`\ - \n\x20\x20\x20\x20\x20-\x20query\x20by\x20a\x20given\x20key's\x20existen\ - ce.\x20Example:\x20`sccSecurityMarks.foo:*`\n\n\r\n\x05\x04\t\x02\x1a\ - \x06\x12\x04\xb7\x05\x02\x15\n\r\n\x05\x04\t\x02\x1a\x01\x12\x04\xb7\x05\ - \x16(\n\r\n\x05\x04\t\x02\x1a\x03\x12\x04\xb7\x05+-\n\x80\x01\n\x02\x04\ - \n\x12\x06\xbc\x05\0\xd2\x05\x01\x1ar\x20Resource\x20representation\x20a\ - s\x20defined\x20by\x20the\x20corresponding\x20service\x20providing\x20th\ - e\n\x20resource\x20for\x20a\x20given\x20API\x20version.\n\n\x0b\n\x03\ - \x04\n\x01\x12\x04\xbc\x05\x08\x19\n\xe5\x01\n\x04\x04\n\x02\0\x12\x04\ - \xc3\x05\x02\x15\x1a\xd6\x01\x20API\x20version\x20of\x20the\x20resource.\ - \n\n\x20Example:\n\x20If\x20the\x20resource\x20is\x20an\x20instance\x20p\ - rovided\x20by\x20Compute\x20Engine\x20v1\x20API\x20as\x20defined\n\x20in\ - \x20`https://cloud.google.com/compute/docs/reference/rest/v1/instances`,\ - \n\x20version\x20will\x20be\x20\"v1\".\n\n\r\n\x05\x04\n\x02\0\x05\x12\ - \x04\xc3\x05\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xc3\x05\t\x10\n\r\ - \n\x05\x04\n\x02\0\x03\x12\x04\xc3\x05\x13\x14\n\x99\x04\n\x04\x04\n\x02\ - \x01\x12\x04\xd1\x05\x02&\x1a\x8a\x04\x20JSON\x20representation\x20of\ - \x20the\x20resource\x20as\x20defined\x20by\x20the\x20corresponding\n\x20\ - service\x20providing\x20this\x20resource.\n\n\x20Example:\n\x20If\x20the\ - \x20resource\x20is\x20an\x20instance\x20provided\x20by\x20Compute\x20Eng\ - ine,\x20this\x20field\x20will\n\x20contain\x20the\x20JSON\x20representat\ - ion\x20of\x20the\x20instance\x20as\x20defined\x20by\x20Compute\n\x20Engi\ - ne:\n\x20`https://cloud.google.com/compute/docs/reference/rest/v1/instan\ - ces`.\n\n\x20You\x20can\x20find\x20the\x20resource\x20definition\x20for\ - \x20each\x20supported\x20resource\x20type\x20in\n\x20this\x20table:\n\ - \x20`https://cloud.google.com/asset-inventory/docs/supported-asset-types\ - #searchable_asset_types`\n\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xd1\x05\ - \x02\x18\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xd1\x05\x19!\n\r\n\x05\x04\ - \n\x02\x01\x03\x12\x04\xd1\x05$%\n\x99\x01\n\x02\x04\x0b\x12\x06\xd6\x05\ - \0\xe4\x05\x01\x1a\x8a\x01\x20Attached\x20resource\x20representation,\ - \x20which\x20is\x20defined\x20by\x20the\x20corresponding\n\x20service\ - \x20provider.\x20It\x20represents\x20an\x20attached\x20resource's\x20pay\ - load.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xd6\x05\x08\x18\n\x94\x02\n\x04\ - \x04\x0b\x02\0\x12\x04\xde\x05\x02\x18\x1a\x85\x02\x20The\x20type\x20of\ - \x20this\x20attached\x20resource.\n\n\x20Example:\x20`osconfig.googleapi\ - s.com/Inventory`\n\n\x20You\x20can\x20find\x20the\x20supported\x20attach\ - ed\x20asset\x20types\x20of\x20each\x20resource\x20in\x20this\n\x20table:\ - \n\x20`https://cloud.google.com/asset-inventory/docs/supported-asset-typ\ - es#searchable_asset_types`\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xde\x05\ - \x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xde\x05\t\x13\n\r\n\x05\x04\ - \x0b\x02\0\x03\x12\x04\xde\x05\x16\x17\n\xcd\x01\n\x04\x04\x0b\x02\x01\ - \x12\x04\xe3\x05\x025\x1a\xbe\x01\x20Versioned\x20resource\x20representa\ - tions\x20of\x20this\x20attached\x20resource.\x20This\x20is\n\x20repeated\ - \x20because\x20there\x20could\x20be\x20multiple\x20versions\x20of\x20the\ - \x20attached\x20resource\n\x20representations\x20during\x20version\x20mi\ - gration.\n\n\r\n\x05\x04\x0b\x02\x01\x04\x12\x04\xe3\x05\x02\n\n\r\n\x05\ - \x04\x0b\x02\x01\x06\x12\x04\xe3\x05\x0b\x1c\n\r\n\x05\x04\x0b\x02\x01\ - \x01\x12\x04\xe3\x05\x1d0\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xe3\x053\ - 4\n>\n\x02\x04\x0c\x12\x06\xe7\x05\0\xea\x05\x01\x1a0\x20The\x20related\ - \x20resources\x20of\x20the\x20primary\x20resource.\n\n\x0b\n\x03\x04\x0c\ - \x01\x12\x04\xe7\x05\x08\x18\nG\n\x04\x04\x0c\x02\0\x12\x04\xe9\x05\x021\ - \x1a9\x20The\x20detailed\x20related\x20resources\x20of\x20the\x20primary\ - \x20resource.\n\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\xe9\x05\x02\n\n\r\n\ - \x05\x04\x0c\x02\0\x06\x12\x04\xe9\x05\x0b\x1a\n\r\n\x05\x04\x0c\x02\0\ - \x01\x12\x04\xe9\x05\x1b,\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xe9\x05/0\ - \n.\n\x02\x04\r\x12\x06\xed\x05\0\xf4\x05\x01\x1a\x20\x20The\x20detailed\ - \x20related\x20resource.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xed\x05\x08\x17\ - \nQ\n\x04\x04\r\x02\0\x12\x04\xef\x05\x02\x18\x1aC\x20The\x20type\x20of\ - \x20the\x20asset.\x20Example:\x20`compute.googleapis.com/Instance`\n\n\r\ - \n\x05\x04\r\x02\0\x05\x12\x04\xef\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\ - \x12\x04\xef\x05\t\x13\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xef\x05\x16\x17\ - \n\x95\x01\n\x04\x04\r\x02\x01\x12\x04\xf3\x05\x02\x20\x1a\x86\x01\x20Th\ - e\x20full\x20resource\x20name\x20of\x20the\x20related\x20resource.\x20Ex\ - ample:\n\x20`//compute.googleapis.com/projects/my_proj_123/zones/instanc\ - e/instance123`\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xf3\x05\x02\x08\n\r\ - \n\x05\x04\r\x02\x01\x01\x12\x04\xf3\x05\t\x1b\n\r\n\x05\x04\r\x02\x01\ - \x03\x12\x04\xf3\x05\x1e\x1f\nW\n\x02\x04\x0e\x12\x06\xf7\x05\0\xd2\x06\ - \x01\x1aI\x20A\x20result\x20of\x20IAM\x20Policy\x20search,\x20containing\ - \x20information\x20of\x20an\x20IAM\x20policy.\n\n\x0b\n\x03\x04\x0e\x01\ - \x12\x04\xf7\x05\x08\x1d\nA\n\x04\x04\x0e\x03\0\x12\x06\xf9\x05\x02\x88\ - \x06\x03\x1a1\x20Explanation\x20about\x20the\x20IAM\x20policy\x20search\ - \x20result.\n\n\r\n\x05\x04\x0e\x03\0\x01\x12\x04\xf9\x05\n\x15\n#\n\x06\ - \x04\x0e\x03\0\x03\0\x12\x06\xfb\x05\x04\xfe\x05\x05\x1a\x11\x20IAM\x20p\ - ermissions\n\n\x0f\n\x07\x04\x0e\x03\0\x03\0\x01\x12\x04\xfb\x05\x0c\x17\ - \nZ\n\x08\x04\x0e\x03\0\x03\0\x02\0\x12\x04\xfd\x05\x06&\x1aH\x20A\x20li\ - st\x20of\x20permissions.\x20A\x20sample\x20permission\x20string:\x20`com\ - pute.disk.get`.\n\n\x11\n\t\x04\x0e\x03\0\x03\0\x02\0\x04\x12\x04\xfd\ - \x05\x06\x0e\n\x11\n\t\x04\x0e\x03\0\x03\0\x02\0\x05\x12\x04\xfd\x05\x0f\ - \x15\n\x11\n\t\x04\x0e\x03\0\x03\0\x02\0\x01\x12\x04\xfd\x05\x16!\n\x11\ - \n\t\x04\x0e\x03\0\x03\0\x02\0\x03\x12\x04\xfd\x05$%\n\xe2\x03\n\x06\x04\ - \x0e\x03\0\x02\0\x12\x04\x87\x06\x045\x1a\xd1\x03\x20The\x20map\x20from\ - \x20roles\x20to\x20their\x20included\x20permissions\x20that\x20match\x20\ - the\n\x20permission\x20query\x20(i.e.,\x20a\x20query\x20containing\x20`p\ - olicy.role.permissions:`).\n\x20Example:\x20if\x20query\x20`policy.role.\ - permissions:compute.disk.get`\n\x20matches\x20a\x20policy\x20binding\x20\ - that\x20contains\x20owner\x20role,\x20the\n\x20matched_permissions\x20wi\ - ll\x20be\x20`{\"roles/owner\":\x20[\"compute.disk.get\"]}`.\x20The\n\x20\ - roles\x20can\x20also\x20be\x20found\x20in\x20the\x20returned\x20`policy`\ - \x20bindings.\x20Note\x20that\x20the\n\x20map\x20is\x20populated\x20only\ - \x20for\x20requests\x20with\x20permission\x20queries.\n\n\x0f\n\x07\x04\ - \x0e\x03\0\x02\0\x06\x12\x04\x87\x06\x04\x1c\n\x0f\n\x07\x04\x0e\x03\0\ - \x02\0\x01\x12\x04\x87\x06\x1d0\n\x0f\n\x07\x04\x0e\x03\0\x02\0\x03\x12\ - \x04\x87\x0634\n\xa6\x03\n\x04\x04\x0e\x02\0\x12\x04\x94\x06\x02\x16\x1a\ - \x97\x03\x20The\x20full\x20resource\x20name\x20of\x20the\x20resource\x20\ - associated\x20with\x20this\x20IAM\x20policy.\n\x20Example:\n\x20`//compu\ - te.googleapis.com/projects/my_project_123/zones/zone1/instances/instance\ - 1`.\n\x20See\x20[Cloud\x20Asset\x20Inventory\x20Resource\x20Name\n\x20Fo\ - rmat](https://cloud.google.com/asset-inventory/docs/resource-name-format\ - )\n\x20for\x20more\x20information.\n\n\x20To\x20search\x20against\x20the\ - \x20`resource`:\n\n\x20*\x20use\x20a\x20field\x20query.\x20Example:\x20`\ - resource:organizations/123`\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x94\ - \x06\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\x94\x06\t\x11\n\r\n\x05\ - \x04\x0e\x02\0\x03\x12\x04\x94\x06\x14\x15\n\xd5\x01\n\x04\x04\x0e\x02\ - \x01\x12\x04\x9c\x06\x02\x18\x1a\xc6\x01\x20The\x20type\x20of\x20the\x20\ - resource\x20associated\x20with\x20this\x20IAM\x20policy.\x20Example:\n\ - \x20`compute.googleapis.com/Disk`.\n\n\x20To\x20search\x20against\x20the\ - \x20`asset_type`:\n\n\x20*\x20specify\x20the\x20`asset_types`\x20field\ - \x20in\x20your\x20search\x20request.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\ - \x04\x9c\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\x9c\x06\t\x13\ - \n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\x9c\x06\x16\x17\n\xcf\x03\n\x04\ - \x04\x0e\x02\x02\x12\x04\xa7\x06\x02\x15\x1a\xc0\x03\x20The\x20project\ - \x20that\x20the\x20associated\x20Google\x20Cloud\x20resource\x20belongs\ - \x20to,\x20in\x20the\n\x20form\x20of\x20projects/{PROJECT_NUMBER}.\x20If\ - \x20an\x20IAM\x20policy\x20is\x20set\x20on\x20a\x20resource\n\x20(like\ - \x20VM\x20instance,\x20Cloud\x20Storage\x20bucket),\x20the\x20project\ - \x20field\x20will\x20indicate\n\x20the\x20project\x20that\x20contains\ - \x20the\x20resource.\x20If\x20an\x20IAM\x20policy\x20is\x20set\x20on\x20\ - a\x20folder\n\x20or\x20orgnization,\x20this\x20field\x20will\x20be\x20em\ - pty.\n\n\x20To\x20search\x20against\x20the\x20`project`:\n\n\x20*\x20spe\ - cify\x20the\x20`scope`\x20field\x20as\x20this\x20project\x20in\x20your\ - \x20search\x20request.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xa7\x06\ - \x02\x08\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xa7\x06\t\x10\n\r\n\x05\ - \x04\x0e\x02\x02\x03\x12\x04\xa7\x06\x13\x14\n\xf7\x02\n\x04\x04\x0e\x02\ - \x03\x12\x04\xb2\x06\x02\x1e\x1a\xe8\x02\x20The\x20folder(s)\x20that\x20\ - the\x20IAM\x20policy\x20belongs\x20to,\x20in\x20the\x20form\x20of\n\x20f\ - olders/{FOLDER_NUMBER}.\x20This\x20field\x20is\x20available\x20when\x20t\ - he\x20IAM\x20policy\n\x20belongs\x20to\x20one\x20or\x20more\x20folders.\ - \n\n\x20To\x20search\x20against\x20`folders`:\n\n\x20*\x20use\x20a\x20fi\ - eld\x20query.\x20Example:\x20`folders:(123\x20OR\x20456)`\n\x20*\x20use\ - \x20a\x20free\x20text\x20query.\x20Example:\x20`123`\n\x20*\x20specify\ - \x20the\x20`scope`\x20field\x20as\x20this\x20folder\x20in\x20your\x20sea\ - rch\x20request.\n\n\r\n\x05\x04\x0e\x02\x03\x04\x12\x04\xb2\x06\x02\n\n\ - \r\n\x05\x04\x0e\x02\x03\x05\x12\x04\xb2\x06\x0b\x11\n\r\n\x05\x04\x0e\ - \x02\x03\x01\x12\x04\xb2\x06\x12\x19\n\r\n\x05\x04\x0e\x02\x03\x03\x12\ - \x04\xb2\x06\x1c\x1d\n\x89\x03\n\x04\x04\x0e\x02\x04\x12\x04\xbd\x06\x02\ - \x1a\x1a\xfa\x02\x20The\x20organization\x20that\x20the\x20IAM\x20policy\ - \x20belongs\x20to,\x20in\x20the\x20form\n\x20of\x20organizations/{ORGANI\ - ZATION_NUMBER}.\x20This\x20field\x20is\x20available\x20when\x20the\n\x20\ - IAM\x20policy\x20belongs\x20to\x20an\x20organization.\n\n\x20To\x20searc\ - h\x20against\x20`organization`:\n\n\x20*\x20use\x20a\x20field\x20query.\ - \x20Example:\x20`organization:123`\n\x20*\x20use\x20a\x20free\x20text\ - \x20query.\x20Example:\x20`123`\n\x20*\x20specify\x20the\x20`scope`\x20f\ - ield\x20as\x20this\x20organization\x20in\x20your\x20search\x20request.\n\ - \n\r\n\x05\x04\x0e\x02\x04\x05\x12\x04\xbd\x06\x02\x08\n\r\n\x05\x04\x0e\ - \x02\x04\x01\x12\x04\xbd\x06\t\x15\n\r\n\x05\x04\x0e\x02\x04\x03\x12\x04\ - \xbd\x06\x18\x19\n\xa7\x05\n\x04\x04\x0e\x02\x05\x12\x04\xcd\x06\x02\"\ - \x1a\x98\x05\x20The\x20IAM\x20policy\x20directly\x20set\x20on\x20the\x20\ - given\x20resource.\x20Note\x20that\x20the\x20original\n\x20IAM\x20policy\ - \x20can\x20contain\x20multiple\x20bindings.\x20This\x20only\x20contains\ - \x20the\x20bindings\n\x20that\x20match\x20the\x20given\x20query.\x20For\ - \x20queries\x20that\x20don't\x20contain\x20a\x20constrain\x20on\n\x20pol\ - icies\x20(e.g.,\x20an\x20empty\x20query),\x20this\x20contains\x20all\x20\ - the\x20bindings.\n\n\x20To\x20search\x20against\x20the\x20`policy`\x20bi\ - ndings:\n\n\x20*\x20use\x20a\x20field\x20query:\n\x20\x20\x20\x20\x20-\ - \x20query\x20by\x20the\x20policy\x20contained\x20members.\x20Example:\n\ - \x20\x20\x20\x20\x20\x20\x20`policy:amy@gmail.com`\n\x20\x20\x20\x20\x20\ - -\x20query\x20by\x20the\x20policy\x20contained\x20roles.\x20Example:\n\ - \x20\x20\x20\x20\x20\x20\x20`policy:roles/compute.admin`\n\x20\x20\x20\ - \x20\x20-\x20query\x20by\x20the\x20policy\x20contained\x20roles'\x20incl\ - uded\x20permissions.\x20Example:\n\x20\x20\x20\x20\x20\x20\x20`policy.ro\ - le.permissions:compute.instances.create`\n\n\r\n\x05\x04\x0e\x02\x05\x06\ - \x12\x04\xcd\x06\x02\x16\n\r\n\x05\x04\x0e\x02\x05\x01\x12\x04\xcd\x06\ - \x17\x1d\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\xcd\x06\x20!\n\x98\x01\n\ - \x04\x04\x0e\x02\x06\x12\x04\xd1\x06\x02\x1e\x1a\x89\x01\x20Explanation\ - \x20about\x20the\x20IAM\x20policy\x20search\x20result.\x20It\x20contains\ - \x20additional\n\x20information\x20to\x20explain\x20why\x20the\x20search\ - \x20result\x20matches\x20the\x20query.\n\n\r\n\x05\x04\x0e\x02\x06\x06\ - \x12\x04\xd1\x06\x02\r\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\xd1\x06\x0e\ - \x19\n\r\n\x05\x04\x0e\x02\x06\x03\x12\x04\xd1\x06\x1c\x1d\ny\n\x02\x04\ - \x0f\x12\x06\xd6\x06\0\xe1\x06\x01\x1ak\x20Represents\x20the\x20detailed\ - \x20state\x20of\x20an\x20entity\x20under\x20analysis,\x20such\x20as\x20a\ - \n\x20resource,\x20an\x20identity\x20or\x20an\x20access.\n\n\x0b\n\x03\ - \x04\x0f\x01\x12\x04\xd6\x06\x08\x1e\n\xbb\x02\n\x04\x04\x0f\x02\0\x12\ - \x04\xdd\x06\x02\x1b\x1a\xac\x02\x20The\x20Google\x20standard\x20error\ - \x20code\x20that\x20best\x20describes\x20the\x20state.\n\x20For\x20examp\ - le:\n\x20-\x20OK\x20means\x20the\x20analysis\x20on\x20this\x20entity\x20\ - has\x20been\x20successfully\x20finished;\n\x20-\x20PERMISSION_DENIED\x20\ - means\x20an\x20access\x20denied\x20error\x20is\x20encountered;\n\x20-\ - \x20DEADLINE_EXCEEDED\x20means\x20the\x20analysis\x20on\x20this\x20entit\ - y\x20hasn't\x20been\x20started\n\x20in\x20time;\n\n\r\n\x05\x04\x0f\x02\ - \0\x06\x12\x04\xdd\x06\x02\x11\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xdd\ - \x06\x12\x16\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xdd\x06\x19\x1a\nG\n\ - \x04\x04\x0f\x02\x01\x12\x04\xe0\x06\x02\x13\x1a9\x20The\x20human-readab\ - le\x20description\x20of\x20the\x20cause\x20of\x20failure.\n\n\r\n\x05\ - \x04\x0f\x02\x01\x05\x12\x04\xe0\x06\x02\x08\n\r\n\x05\x04\x0f\x02\x01\ - \x01\x12\x04\xe0\x06\t\x0e\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xe0\x06\ - \x11\x12\n)\n\x02\x04\x10\x12\x06\xe4\x06\0\xf8\x06\x01\x1a\x1b\x20The\ - \x20Condition\x20evaluation.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xe4\x06\ - \x08\x1b\n+\n\x04\x04\x10\x04\0\x12\x06\xe6\x06\x02\xf4\x06\x03\x1a\x1b\ - \x20Value\x20of\x20this\x20expression.\n\n\r\n\x05\x04\x10\x04\0\x01\x12\ - \x04\xe6\x06\x07\x16\n*\n\x06\x04\x10\x04\0\x02\0\x12\x04\xe8\x06\x04%\ - \x1a\x1a\x20Reserved\x20for\x20future\x20use.\n\n\x0f\n\x07\x04\x10\x04\ - \0\x02\0\x01\x12\x04\xe8\x06\x04\x20\n\x0f\n\x07\x04\x10\x04\0\x02\0\x02\ - \x12\x04\xe8\x06#$\n2\n\x06\x04\x10\x04\0\x02\x01\x12\x04\xeb\x06\x04\r\ - \x1a\"\x20The\x20evaluation\x20result\x20is\x20`true`.\n\n\x0f\n\x07\x04\ - \x10\x04\0\x02\x01\x01\x12\x04\xeb\x06\x04\x08\n\x0f\n\x07\x04\x10\x04\0\ - \x02\x01\x02\x12\x04\xeb\x06\x0b\x0c\n3\n\x06\x04\x10\x04\0\x02\x02\x12\ - \x04\xee\x06\x04\x0e\x1a#\x20The\x20evaluation\x20result\x20is\x20`false\ - `.\n\n\x0f\n\x07\x04\x10\x04\0\x02\x02\x01\x12\x04\xee\x06\x04\t\n\x0f\n\ - \x07\x04\x10\x04\0\x02\x02\x02\x12\x04\xee\x06\x0c\r\n\xbd\x01\n\x06\x04\ - \x10\x04\0\x02\x03\x12\x04\xf3\x06\x04\x14\x1a\xac\x01\x20The\x20evaluat\ - ion\x20result\x20is\x20`conditional`\x20when\x20the\x20condition\x20expr\ - ession\n\x20contains\x20variables\x20that\x20are\x20either\x20missing\ - \x20input\x20values\x20or\x20have\x20not\x20been\n\x20supported\x20by\ - \x20Analyzer\x20yet.\n\n\x0f\n\x07\x04\x10\x04\0\x02\x03\x01\x12\x04\xf3\ - \x06\x04\x0f\n\x0f\n\x07\x04\x10\x04\0\x02\x03\x02\x12\x04\xf3\x06\x12\ - \x13\n&\n\x04\x04\x10\x02\0\x12\x04\xf7\x06\x02'\x1a\x18\x20The\x20evalu\ - ation\x20result.\n\n\r\n\x05\x04\x10\x02\0\x06\x12\x04\xf7\x06\x02\x11\n\ - \r\n\x05\x04\x10\x02\0\x01\x12\x04\xf7\x06\x12\"\n\r\n\x05\x04\x10\x02\0\ - \x03\x12\x04\xf7\x06%&\ns\n\x02\x04\x11\x12\x06\xfc\x06\0\x89\x08\x01\ - \x1ae\x20IAM\x20Policy\x20analysis\x20result,\x20consisting\x20of\x20one\ - \x20IAM\x20policy\x20binding\x20and\x20derived\n\x20access\x20control\ - \x20lists.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xfc\x06\x08\x1f\n9\n\x04\ - \x04\x11\x03\0\x12\x06\xfe\x06\x02\x85\x07\x03\x1a)\x20A\x20Google\x20Cl\ - oud\x20resource\x20under\x20analysis.\n\n\r\n\x05\x04\x11\x03\0\x01\x12\ - \x04\xfe\x06\n\x12\no\n\x06\x04\x11\x03\0\x02\0\x12\x04\x81\x07\x04\"\ - \x1a_\x20The\x20[full\x20resource\n\x20name](https://cloud.google.com/as\ - set-inventory/docs/resource-name-format)\n\n\x0f\n\x07\x04\x11\x03\0\x02\ - \0\x05\x12\x04\x81\x07\x04\n\n\x0f\n\x07\x04\x11\x03\0\x02\0\x01\x12\x04\ - \x81\x07\x0b\x1d\n\x0f\n\x07\x04\x11\x03\0\x02\0\x03\x12\x04\x81\x07\x20\ - !\n6\n\x06\x04\x11\x03\0\x02\x01\x12\x04\x84\x07\x04.\x1a&\x20The\x20ana\ - lysis\x20state\x20of\x20this\x20resource.\n\n\x0f\n\x07\x04\x11\x03\0\ - \x02\x01\x06\x12\x04\x84\x07\x04\x1a\n\x0f\n\x07\x04\x11\x03\0\x02\x01\ - \x01\x12\x04\x84\x07\x1b)\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x03\x12\x04\ - \x84\x07,-\n;\n\x04\x04\x11\x03\x01\x12\x06\x88\x07\x02\x93\x07\x03\x1a+\ - \x20An\x20IAM\x20role\x20or\x20permission\x20under\x20analysis.\n\n\r\n\ - \x05\x04\x11\x03\x01\x01\x12\x04\x88\x07\n\x10\n\x10\n\x06\x04\x11\x03\ - \x01\x08\0\x12\x06\x89\x07\x04\x8f\x07\x05\n\x0f\n\x07\x04\x11\x03\x01\ - \x08\0\x01\x12\x04\x89\x07\n\x16\n\x1b\n\x06\x04\x11\x03\x01\x02\0\x12\ - \x04\x8b\x07\x06\x16\x1a\x0b\x20The\x20role.\n\n\x0f\n\x07\x04\x11\x03\ - \x01\x02\0\x05\x12\x04\x8b\x07\x06\x0c\n\x0f\n\x07\x04\x11\x03\x01\x02\0\ - \x01\x12\x04\x8b\x07\r\x11\n\x0f\n\x07\x04\x11\x03\x01\x02\0\x03\x12\x04\ - \x8b\x07\x14\x15\n!\n\x06\x04\x11\x03\x01\x02\x01\x12\x04\x8e\x07\x06\ - \x1c\x1a\x11\x20The\x20permission.\n\n\x0f\n\x07\x04\x11\x03\x01\x02\x01\ - \x05\x12\x04\x8e\x07\x06\x0c\n\x0f\n\x07\x04\x11\x03\x01\x02\x01\x01\x12\ - \x04\x8e\x07\r\x17\n\x0f\n\x07\x04\x11\x03\x01\x02\x01\x03\x12\x04\x8e\ - \x07\x1a\x1b\n4\n\x06\x04\x11\x03\x01\x02\x02\x12\x04\x92\x07\x04.\x1a$\ - \x20The\x20analysis\x20state\x20of\x20this\x20access.\n\n\x0f\n\x07\x04\ - \x11\x03\x01\x02\x02\x06\x12\x04\x92\x07\x04\x1a\n\x0f\n\x07\x04\x11\x03\ - \x01\x02\x02\x01\x12\x04\x92\x07\x1b)\n\x0f\n\x07\x04\x11\x03\x01\x02\ - \x02\x03\x12\x04\x92\x07,-\n-\n\x04\x04\x11\x03\x02\x12\x06\x96\x07\x02\ - \xa6\x07\x03\x1a\x1d\x20An\x20identity\x20under\x20analysis.\n\n\r\n\x05\ - \x04\x11\x03\x02\x01\x12\x04\x96\x07\n\x12\n\xf5\x02\n\x06\x04\x11\x03\ - \x02\x02\0\x12\x04\xa2\x07\x04\x14\x1a\xe4\x02\x20The\x20identity\x20of\ - \x20members,\x20formatted\x20as\x20appear\x20in\x20an\n\x20[IAM\x20polic\ - y\n\x20binding](https://cloud.google.com/iam/reference/rest/v1/Binding).\ - \x20For\n\x20example,\x20they\x20might\x20be\x20formatted\x20like\x20the\ - \x20following:\n\n\x20-\x20user:foo@google.com\n\x20-\x20group:group1@go\ - ogle.com\n\x20-\x20serviceAccount:s1@prj1.iam.gserviceaccount.com\n\x20-\ - \x20projectOwner:some_project_id\n\x20-\x20domain:google.com\n\x20-\x20a\ - llUsers\n\n\x0f\n\x07\x04\x11\x03\x02\x02\0\x05\x12\x04\xa2\x07\x04\n\n\ - \x0f\n\x07\x04\x11\x03\x02\x02\0\x01\x12\x04\xa2\x07\x0b\x0f\n\x0f\n\x07\ - \x04\x11\x03\x02\x02\0\x03\x12\x04\xa2\x07\x12\x13\n6\n\x06\x04\x11\x03\ - \x02\x02\x01\x12\x04\xa5\x07\x04.\x1a&\x20The\x20analysis\x20state\x20of\ - \x20this\x20identity.\n\n\x0f\n\x07\x04\x11\x03\x02\x02\x01\x06\x12\x04\ - \xa5\x07\x04\x1a\n\x0f\n\x07\x04\x11\x03\x02\x02\x01\x01\x12\x04\xa5\x07\ - \x1b)\n\x0f\n\x07\x04\x11\x03\x02\x02\x01\x03\x12\x04\xa5\x07,-\n%\n\x04\ - \x04\x11\x03\x03\x12\x06\xa9\x07\x02\xb1\x07\x03\x1a\x15\x20A\x20directi\ - onal\x20edge.\n\n\r\n\x05\x04\x11\x03\x03\x01\x12\x04\xa9\x07\n\x0e\n\ - \x8d\x01\n\x06\x04\x11\x03\x03\x02\0\x12\x04\xac\x07\x04\x1b\x1a}\x20The\ - \x20source\x20node\x20of\x20the\x20edge.\x20For\x20example,\x20it\x20cou\ - ld\x20be\x20a\x20full\x20resource\n\x20name\x20for\x20a\x20resource\x20n\ - ode\x20or\x20an\x20email\x20of\x20an\x20identity.\n\n\x0f\n\x07\x04\x11\ - \x03\x03\x02\0\x05\x12\x04\xac\x07\x04\n\n\x0f\n\x07\x04\x11\x03\x03\x02\ - \0\x01\x12\x04\xac\x07\x0b\x16\n\x0f\n\x07\x04\x11\x03\x03\x02\0\x03\x12\ - \x04\xac\x07\x19\x1a\n\x8d\x01\n\x06\x04\x11\x03\x03\x02\x01\x12\x04\xb0\ - \x07\x04\x1b\x1a}\x20The\x20target\x20node\x20of\x20the\x20edge.\x20For\ - \x20example,\x20it\x20could\x20be\x20a\x20full\x20resource\n\x20name\x20\ - for\x20a\x20resource\x20node\x20or\x20an\x20email\x20of\x20an\x20identit\ - y.\n\n\x0f\n\x07\x04\x11\x03\x03\x02\x01\x05\x12\x04\xb0\x07\x04\n\n\x0f\ - \n\x07\x04\x11\x03\x03\x02\x01\x01\x12\x04\xb0\x07\x0b\x16\n\x0f\n\x07\ - \x04\x11\x03\x03\x02\x01\x03\x12\x04\xb0\x07\x19\x1a\n\xb5\x05\n\x04\x04\ - \x11\x03\x04\x12\x06\xc2\x07\x02\xd9\x07\x03\x1a\xa4\x05\x20An\x20access\ - \x20control\x20list,\x20derived\x20from\x20the\x20above\x20IAM\x20policy\ - \x20binding,\x20which\n\x20contains\x20a\x20set\x20of\x20resources\x20an\ - d\x20accesses.\x20May\x20include\x20one\n\x20item\x20from\x20each\x20set\ - \x20to\x20compose\x20an\x20access\x20control\x20entry.\n\n\x20NOTICE\x20\ - that\x20there\x20could\x20be\x20multiple\x20access\x20control\x20lists\ - \x20for\x20one\x20IAM\x20policy\n\x20binding.\x20The\x20access\x20contro\ - l\x20lists\x20are\x20created\x20based\x20on\x20resource\x20and\x20access\ - \n\x20combinations.\n\n\x20For\x20example,\x20assume\x20we\x20have\x20th\ - e\x20following\x20cases\x20in\x20one\x20IAM\x20policy\x20binding:\n\x20-\ - \x20Permission\x20P1\x20and\x20P2\x20apply\x20to\x20resource\x20R1\x20an\ - d\x20R2;\n\x20-\x20Permission\x20P3\x20applies\x20to\x20resource\x20R2\ - \x20and\x20R3;\n\n\x20This\x20will\x20result\x20in\x20the\x20following\ - \x20access\x20control\x20lists:\n\x20-\x20AccessControlList\x201:\x20[R1\ - ,\x20R2],\x20[P1,\x20P2]\n\x20-\x20AccessControlList\x202:\x20[R2,\x20R3\ - ],\x20[P3]\n\n\r\n\x05\x04\x11\x03\x04\x01\x12\x04\xc2\x07\n\x1b\n\xca\ - \x01\n\x06\x04\x11\x03\x04\x02\0\x12\x04\xc6\x07\x04$\x1a\xb9\x01\x20The\ - \x20resources\x20that\x20match\x20one\x20of\x20the\x20following\x20condi\ - tions:\n\x20-\x20The\x20resource_selector,\x20if\x20it\x20is\x20specifie\ - d\x20in\x20request;\n\x20-\x20Otherwise,\x20resources\x20reachable\x20fr\ - om\x20the\x20policy\x20attached\x20resource.\n\n\x0f\n\x07\x04\x11\x03\ - \x04\x02\0\x04\x12\x04\xc6\x07\x04\x0c\n\x0f\n\x07\x04\x11\x03\x04\x02\0\ - \x06\x12\x04\xc6\x07\r\x15\n\x0f\n\x07\x04\x11\x03\x04\x02\0\x01\x12\x04\ - \xc6\x07\x16\x1f\n\x0f\n\x07\x04\x11\x03\x04\x02\0\x03\x12\x04\xc6\x07\"\ - #\n\xcc\x01\n\x06\x04\x11\x03\x04\x02\x01\x12\x04\xcb\x07\x04!\x1a\xbb\ - \x01\x20The\x20accesses\x20that\x20match\x20one\x20of\x20the\x20followin\ - g\x20conditions:\n\x20-\x20The\x20access_selector,\x20if\x20it\x20is\x20\ - specified\x20in\x20request;\n\x20-\x20Otherwise,\x20access\x20specifiers\ - \x20reachable\x20from\x20the\x20policy\x20binding's\x20role.\n\n\x0f\n\ - \x07\x04\x11\x03\x04\x02\x01\x04\x12\x04\xcb\x07\x04\x0c\n\x0f\n\x07\x04\ - \x11\x03\x04\x02\x01\x06\x12\x04\xcb\x07\r\x13\n\x0f\n\x07\x04\x11\x03\ - \x04\x02\x01\x01\x12\x04\xcb\x07\x14\x1c\n\x0f\n\x07\x04\x11\x03\x04\x02\ - \x01\x03\x12\x04\xcb\x07\x1f\x20\n\xea\x03\n\x06\x04\x11\x03\x04\x02\x02\ - \x12\x04\xd4\x07\x04%\x1a\xd9\x03\x20Resource\x20edges\x20of\x20the\x20g\ - raph\x20starting\x20from\x20the\x20policy\x20attached\n\x20resource\x20t\ - o\x20any\x20descendant\x20resources.\x20The\n\x20[Edge.source_node][goog\ - le.cloud.asset.v1.IamPolicyAnalysisResult.Edge.source_node]\n\x20contain\ - s\x20the\x20full\x20resource\x20name\x20of\x20a\x20parent\x20resource\ - \x20and\n\x20[Edge.target_node][google.cloud.asset.v1.IamPolicyAnalysisR\ - esult.Edge.target_node]\n\x20contains\x20the\x20full\x20resource\x20name\ - \x20of\x20a\x20child\x20resource.\x20This\x20field\x20is\n\x20present\ - \x20only\x20if\x20the\x20output_resource_edges\x20option\x20is\x20enable\ - d\x20in\x20request.\n\n\x0f\n\x07\x04\x11\x03\x04\x02\x02\x04\x12\x04\ - \xd4\x07\x04\x0c\n\x0f\n\x07\x04\x11\x03\x04\x02\x02\x06\x12\x04\xd4\x07\ - \r\x11\n\x0f\n\x07\x04\x11\x03\x04\x02\x02\x01\x12\x04\xd4\x07\x12\x20\n\ - \x0f\n\x07\x04\x11\x03\x04\x02\x02\x03\x12\x04\xd4\x07#$\n\x84\x01\n\x06\ - \x04\x11\x03\x04\x02\x03\x12\x04\xd8\x07\x041\x1at\x20Condition\x20evalu\ - ation\x20for\x20this\x20AccessControlList,\x20if\x20there\x20is\x20a\x20\ - condition\n\x20defined\x20in\x20the\x20above\x20IAM\x20policy\x20binding\ - .\n\n\x0f\n\x07\x04\x11\x03\x04\x02\x03\x06\x12\x04\xd8\x07\x04\x17\n\ - \x0f\n\x07\x04\x11\x03\x04\x02\x03\x01\x12\x04\xd8\x07\x18,\n\x0f\n\x07\ - \x04\x11\x03\x04\x02\x03\x03\x12\x04\xd8\x07/0\n1\n\x04\x04\x11\x03\x05\ - \x12\x06\xdc\x07\x02\xee\x07\x03\x1a!\x20The\x20identities\x20and\x20gro\ - up\x20edges.\n\n\r\n\x05\x04\x11\x03\x05\x01\x12\x04\xdc\x07\n\x16\n\xe4\ - \x01\n\x06\x04\x11\x03\x05\x02\0\x12\x04\xe1\x07\x04%\x1a\xd3\x01\x20Onl\ - y\x20the\x20identities\x20that\x20match\x20one\x20of\x20the\x20following\ - \x20conditions\x20will\x20be\n\x20presented:\n\x20-\x20The\x20identity_s\ - elector,\x20if\x20it\x20is\x20specified\x20in\x20request;\n\x20-\x20Othe\ - rwise,\x20identities\x20reachable\x20from\x20the\x20policy\x20binding's\ - \x20members.\n\n\x0f\n\x07\x04\x11\x03\x05\x02\0\x04\x12\x04\xe1\x07\x04\ - \x0c\n\x0f\n\x07\x04\x11\x03\x05\x02\0\x06\x12\x04\xe1\x07\r\x15\n\x0f\n\ - \x07\x04\x11\x03\x05\x02\0\x01\x12\x04\xe1\x07\x16\x20\n\x0f\n\x07\x04\ - \x11\x03\x05\x02\0\x03\x12\x04\xe1\x07#$\n\xe0\x04\n\x06\x04\x11\x03\x05\ - \x02\x01\x12\x04\xed\x07\x04\"\x1a\xcf\x04\x20Group\x20identity\x20edges\ - \x20of\x20the\x20graph\x20starting\x20from\x20the\x20binding's\n\x20grou\ - p\x20members\x20to\x20any\x20node\x20of\x20the\n\x20[identities][google.\ - cloud.asset.v1.IamPolicyAnalysisResult.IdentityList.identities].\n\x20Th\ - e\n\x20[Edge.source_node][google.cloud.asset.v1.IamPolicyAnalysisResult.\ - Edge.source_node]\n\x20contains\x20a\x20group,\x20such\x20as\x20`group:p\ - arent@google.com`.\x20The\n\x20[Edge.target_node][google.cloud.asset.v1.\ - IamPolicyAnalysisResult.Edge.target_node]\n\x20contains\x20a\x20member\ - \x20of\x20the\x20group,\x20such\x20as\x20`group:child@google.com`\x20or\ - \n\x20`user:foo@google.com`.\x20This\x20field\x20is\x20present\x20only\ - \x20if\x20the\n\x20output_group_edges\x20option\x20is\x20enabled\x20in\ - \x20request.\n\n\x0f\n\x07\x04\x11\x03\x05\x02\x01\x04\x12\x04\xed\x07\ - \x04\x0c\n\x0f\n\x07\x04\x11\x03\x05\x02\x01\x06\x12\x04\xed\x07\r\x11\n\ - \x0f\n\x07\x04\x11\x03\x05\x02\x01\x01\x12\x04\xed\x07\x12\x1d\n\x0f\n\ - \x07\x04\x11\x03\x05\x02\x01\x03\x12\x04\xed\x07\x20!\n\xe8\x01\n\x04\ - \x04\x11\x02\0\x12\x04\xf5\x07\x02)\x1a\xd9\x01\x20The\x20[full\x20resou\ - rce\n\x20name](https://cloud.google.com/asset-inventory/docs/resource-na\ - me-format)\n\x20of\x20the\x20resource\x20to\x20which\x20the\n\x20[iam_bi\ - nding][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]\n\x20p\ - olicy\x20attaches.\n\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xf5\x07\x02\x08\ - \n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xf5\x07\t$\n\r\n\x05\x04\x11\x02\0\ - \x03\x12\x04\xf5\x07'(\n6\n\x04\x04\x11\x02\x01\x12\x04\xf8\x07\x02(\x1a\ - (\x20The\x20IAM\x20policy\x20binding\x20under\x20analysis.\n\n\r\n\x05\ - \x04\x11\x02\x01\x06\x12\x04\xf8\x07\x02\x17\n\r\n\x05\x04\x11\x02\x01\ - \x01\x12\x04\xf8\x07\x18#\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xf8\x07&\ - '\n\xde\x01\n\x04\x04\x11\x02\x02\x12\x04\xfe\x07\x026\x1a\xcf\x01\x20Th\ - e\x20access\x20control\x20lists\x20derived\x20from\x20the\n\x20[iam_bind\ - ing][google.cloud.asset.v1.IamPolicyAnalysisResult.iam_binding]\n\x20tha\ - t\x20match\x20or\x20potentially\x20match\x20resource\x20and\x20access\ - \x20selectors\x20specified\x20in\n\x20the\x20request.\n\n\r\n\x05\x04\ - \x11\x02\x02\x04\x12\x04\xfe\x07\x02\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\ - \x04\xfe\x07\x0b\x1c\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xfe\x07\x1d1\ - \n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\xfe\x0745\n\xd5\x01\n\x04\x04\x11\ - \x02\x03\x12\x04\x83\x08\x02!\x1a\xc6\x01\x20The\x20identity\x20list\x20\ - derived\x20from\x20members\x20of\x20the\n\x20[iam_binding][google.cloud.\ - asset.v1.IamPolicyAnalysisResult.iam_binding]\n\x20that\x20match\x20or\ - \x20potentially\x20match\x20identity\x20selector\x20specified\x20in\x20t\ - he\x20request.\n\n\r\n\x05\x04\x11\x02\x03\x06\x12\x04\x83\x08\x02\x0e\n\ - \r\n\x05\x04\x11\x02\x03\x01\x12\x04\x83\x08\x0f\x1c\n\r\n\x05\x04\x11\ - \x02\x03\x03\x12\x04\x83\x08\x1f\x20\n\x9e\x01\n\x04\x04\x11\x02\x04\x12\ - \x04\x88\x08\x02\x1a\x1a\x8f\x01\x20Represents\x20whether\x20all\x20anal\ - yses\x20on\x20the\n\x20[iam_binding][google.cloud.asset.v1.IamPolicyAnal\ - ysisResult.iam_binding]\n\x20have\x20successfully\x20finished.\n\n\r\n\ - \x05\x04\x11\x02\x04\x05\x12\x04\x88\x08\x02\x06\n\r\n\x05\x04\x11\x02\ - \x04\x01\x12\x04\x88\x08\x07\x15\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\ - \x88\x08\x18\x19b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/cloud/asset/v1/mod.rs b/googleapis-raw/src/cloud/asset/v1/mod.rs index 3221ccc..a2d7947 100644 --- a/googleapis-raw/src/cloud/asset/v1/mod.rs +++ b/googleapis-raw/src/cloud/asset/v1/mod.rs @@ -1,14 +1,8 @@ // @generated - -use crate::{ - empty, - cloud::orgpolicy::v2::orgpolicy, - cloud::osconfig::v1::inventory, - longrunning::operations, +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, iam::v1::policy, - identity::accesscontextmanager::v1::{access_policy, access_level, service_perimeter}, - rpc::{code, status}, - r#type::expr, + longrunning::operations, }; pub mod asset_service; diff --git a/googleapis-raw/src/cloud/orgpolicy/v1/mod.rs b/googleapis-raw/src/cloud/orgpolicy/v1/mod.rs index 527d6b7..e69de29 100644 --- a/googleapis-raw/src/cloud/orgpolicy/v1/mod.rs +++ b/googleapis-raw/src/cloud/orgpolicy/v1/mod.rs @@ -1 +0,0 @@ -pub mod orgpolicy; diff --git a/googleapis-raw/src/cloud/orgpolicy/v1/orgpolicy.rs b/googleapis-raw/src/cloud/orgpolicy/v1/orgpolicy.rs deleted file mode 100644 index f28e8e6..0000000 --- a/googleapis-raw/src/cloud/orgpolicy/v1/orgpolicy.rs +++ /dev/null @@ -1,1535 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/orgpolicy/v1/orgpolicy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Policy { - // message fields - pub version: i32, - pub constraint: ::std::string::String, - pub etag: ::std::vec::Vec, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // message oneof groups - pub policy_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Policy { - fn default() -> &'a Policy { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Policy_oneof_policy_type { - list_policy(Policy_ListPolicy), - boolean_policy(Policy_BooleanPolicy), - restore_default(Policy_RestoreDefault), -} - -impl Policy { - pub fn new() -> Policy { - ::std::default::Default::default() - } - - // int32 version = 1; - - - pub fn get_version(&self) -> i32 { - self.version - } - pub fn clear_version(&mut self) { - self.version = 0; - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: i32) { - self.version = v; - } - - // string constraint = 2; - - - pub fn get_constraint(&self) -> &str { - &self.constraint - } - pub fn clear_constraint(&mut self) { - self.constraint.clear(); - } - - // Param is passed by value, moved - pub fn set_constraint(&mut self, v: ::std::string::String) { - self.constraint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_constraint(&mut self) -> &mut ::std::string::String { - &mut self.constraint - } - - // Take field - pub fn take_constraint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.constraint, ::std::string::String::new()) - } - - // bytes etag = 3; - - - pub fn get_etag(&self) -> &[u8] { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::vec::Vec) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.etag, ::std::vec::Vec::new()) - } - - // .google.protobuf.Timestamp update_time = 4; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.orgpolicy.v1.Policy.ListPolicy list_policy = 5; - - - pub fn get_list_policy(&self) -> &Policy_ListPolicy { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_list_policy(&mut self) { - self.policy_type = ::std::option::Option::None; - } - - pub fn has_list_policy(&self) -> bool { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_list_policy(&mut self, v: Policy_ListPolicy) { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(v)) - } - - // Mutable pointer to the field. - pub fn mut_list_policy(&mut self) -> &mut Policy_ListPolicy { - if let ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(_)) = self.policy_type { - } else { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(Policy_ListPolicy::new())); - } - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_list_policy(&mut self) -> Policy_ListPolicy { - if self.has_list_policy() { - match self.policy_type.take() { - ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(v)) => v, - _ => panic!(), - } - } else { - Policy_ListPolicy::new() - } - } - - // .google.cloud.orgpolicy.v1.Policy.BooleanPolicy boolean_policy = 6; - - - pub fn get_boolean_policy(&self) -> &Policy_BooleanPolicy { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_boolean_policy(&mut self) { - self.policy_type = ::std::option::Option::None; - } - - pub fn has_boolean_policy(&self) -> bool { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_boolean_policy(&mut self, v: Policy_BooleanPolicy) { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(v)) - } - - // Mutable pointer to the field. - pub fn mut_boolean_policy(&mut self) -> &mut Policy_BooleanPolicy { - if let ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(_)) = self.policy_type { - } else { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(Policy_BooleanPolicy::new())); - } - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_boolean_policy(&mut self) -> Policy_BooleanPolicy { - if self.has_boolean_policy() { - match self.policy_type.take() { - ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(v)) => v, - _ => panic!(), - } - } else { - Policy_BooleanPolicy::new() - } - } - - // .google.cloud.orgpolicy.v1.Policy.RestoreDefault restore_default = 7; - - - pub fn get_restore_default(&self) -> &Policy_RestoreDefault { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_restore_default(&mut self) { - self.policy_type = ::std::option::Option::None; - } - - pub fn has_restore_default(&self) -> bool { - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_restore_default(&mut self, v: Policy_RestoreDefault) { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(v)) - } - - // Mutable pointer to the field. - pub fn mut_restore_default(&mut self) -> &mut Policy_RestoreDefault { - if let ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(_)) = self.policy_type { - } else { - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(Policy_RestoreDefault::new())); - } - match self.policy_type { - ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_restore_default(&mut self) -> Policy_RestoreDefault { - if self.has_restore_default() { - match self.policy_type.take() { - ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(v)) => v, - _ => panic!(), - } - } else { - Policy_RestoreDefault::new() - } - } -} - -impl ::protobuf::Message for Policy { - fn is_initialized(&self) -> bool { - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - if let Some(Policy_oneof_policy_type::list_policy(ref v)) = self.policy_type { - if !v.is_initialized() { - return false; - } - } - if let Some(Policy_oneof_policy_type::boolean_policy(ref v)) = self.policy_type { - if !v.is_initialized() { - return false; - } - } - if let Some(Policy_oneof_policy_type::restore_default(ref v)) = self.policy_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.version = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.constraint)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.etag)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::list_policy(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::boolean_policy(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.policy_type = ::std::option::Option::Some(Policy_oneof_policy_type::restore_default(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.version != 0 { - my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint); - } - if !self.constraint.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.constraint); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::bytes_size(3, &self.etag); - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.policy_type { - match v { - &Policy_oneof_policy_type::list_policy(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Policy_oneof_policy_type::boolean_policy(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Policy_oneof_policy_type::restore_default(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.version != 0 { - os.write_int32(1, self.version)?; - } - if !self.constraint.is_empty() { - os.write_string(2, &self.constraint)?; - } - if !self.etag.is_empty() { - os.write_bytes(3, &self.etag)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.policy_type { - match v { - &Policy_oneof_policy_type::list_policy(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Policy_oneof_policy_type::boolean_policy(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Policy_oneof_policy_type::restore_default(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Policy { - Policy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "version", - |m: &Policy| { &m.version }, - |m: &mut Policy| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "constraint", - |m: &Policy| { &m.constraint }, - |m: &mut Policy| { &mut m.constraint }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "etag", - |m: &Policy| { &m.etag }, - |m: &mut Policy| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Policy| { &m.update_time }, - |m: &mut Policy| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Policy_ListPolicy>( - "list_policy", - Policy::has_list_policy, - Policy::get_list_policy, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Policy_BooleanPolicy>( - "boolean_policy", - Policy::has_boolean_policy, - Policy::get_boolean_policy, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Policy_RestoreDefault>( - "restore_default", - Policy::has_restore_default, - Policy::get_restore_default, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Policy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy::new) - } -} - -impl ::protobuf::Clear for Policy { - fn clear(&mut self) { - self.version = 0; - self.constraint.clear(); - self.etag.clear(); - self.update_time.clear(); - self.policy_type = ::std::option::Option::None; - self.policy_type = ::std::option::Option::None; - self.policy_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Policy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Policy_ListPolicy { - // message fields - pub allowed_values: ::protobuf::RepeatedField<::std::string::String>, - pub denied_values: ::protobuf::RepeatedField<::std::string::String>, - pub all_values: Policy_ListPolicy_AllValues, - pub suggested_value: ::std::string::String, - pub inherit_from_parent: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Policy_ListPolicy { - fn default() -> &'a Policy_ListPolicy { - ::default_instance() - } -} - -impl Policy_ListPolicy { - pub fn new() -> Policy_ListPolicy { - ::std::default::Default::default() - } - - // repeated string allowed_values = 1; - - - pub fn get_allowed_values(&self) -> &[::std::string::String] { - &self.allowed_values - } - pub fn clear_allowed_values(&mut self) { - self.allowed_values.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_values = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_values - } - - // Take field - pub fn take_allowed_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_values, ::protobuf::RepeatedField::new()) - } - - // repeated string denied_values = 2; - - - pub fn get_denied_values(&self) -> &[::std::string::String] { - &self.denied_values - } - pub fn clear_denied_values(&mut self) { - self.denied_values.clear(); - } - - // Param is passed by value, moved - pub fn set_denied_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.denied_values = v; - } - - // Mutable pointer to the field. - pub fn mut_denied_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.denied_values - } - - // Take field - pub fn take_denied_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.denied_values, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.orgpolicy.v1.Policy.ListPolicy.AllValues all_values = 3; - - - pub fn get_all_values(&self) -> Policy_ListPolicy_AllValues { - self.all_values - } - pub fn clear_all_values(&mut self) { - self.all_values = Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_all_values(&mut self, v: Policy_ListPolicy_AllValues) { - self.all_values = v; - } - - // string suggested_value = 4; - - - pub fn get_suggested_value(&self) -> &str { - &self.suggested_value - } - pub fn clear_suggested_value(&mut self) { - self.suggested_value.clear(); - } - - // Param is passed by value, moved - pub fn set_suggested_value(&mut self, v: ::std::string::String) { - self.suggested_value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_suggested_value(&mut self) -> &mut ::std::string::String { - &mut self.suggested_value - } - - // Take field - pub fn take_suggested_value(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.suggested_value, ::std::string::String::new()) - } - - // bool inherit_from_parent = 5; - - - pub fn get_inherit_from_parent(&self) -> bool { - self.inherit_from_parent - } - pub fn clear_inherit_from_parent(&mut self) { - self.inherit_from_parent = false; - } - - // Param is passed by value, moved - pub fn set_inherit_from_parent(&mut self, v: bool) { - self.inherit_from_parent = v; - } -} - -impl ::protobuf::Message for Policy_ListPolicy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_values)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.denied_values)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.all_values, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.suggested_value)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.inherit_from_parent = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.allowed_values { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.denied_values { - my_size += ::protobuf::rt::string_size(2, &value); - }; - if self.all_values != Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.all_values); - } - if !self.suggested_value.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.suggested_value); - } - if self.inherit_from_parent != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_values { - os.write_string(1, &v)?; - }; - for v in &self.denied_values { - os.write_string(2, &v)?; - }; - if self.all_values != Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.all_values))?; - } - if !self.suggested_value.is_empty() { - os.write_string(4, &self.suggested_value)?; - } - if self.inherit_from_parent != false { - os.write_bool(5, self.inherit_from_parent)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Policy_ListPolicy { - Policy_ListPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_values", - |m: &Policy_ListPolicy| { &m.allowed_values }, - |m: &mut Policy_ListPolicy| { &mut m.allowed_values }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "denied_values", - |m: &Policy_ListPolicy| { &m.denied_values }, - |m: &mut Policy_ListPolicy| { &mut m.denied_values }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "all_values", - |m: &Policy_ListPolicy| { &m.all_values }, - |m: &mut Policy_ListPolicy| { &mut m.all_values }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "suggested_value", - |m: &Policy_ListPolicy| { &m.suggested_value }, - |m: &mut Policy_ListPolicy| { &mut m.suggested_value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "inherit_from_parent", - |m: &Policy_ListPolicy| { &m.inherit_from_parent }, - |m: &mut Policy_ListPolicy| { &mut m.inherit_from_parent }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy.ListPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Policy_ListPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy_ListPolicy::new) - } -} - -impl ::protobuf::Clear for Policy_ListPolicy { - fn clear(&mut self) { - self.allowed_values.clear(); - self.denied_values.clear(); - self.all_values = Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED; - self.suggested_value.clear(); - self.inherit_from_parent = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Policy_ListPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy_ListPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Policy_ListPolicy_AllValues { - ALL_VALUES_UNSPECIFIED = 0, - ALLOW = 1, - DENY = 2, -} - -impl ::protobuf::ProtobufEnum for Policy_ListPolicy_AllValues { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED), - 1 => ::std::option::Option::Some(Policy_ListPolicy_AllValues::ALLOW), - 2 => ::std::option::Option::Some(Policy_ListPolicy_AllValues::DENY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Policy_ListPolicy_AllValues] = &[ - Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED, - Policy_ListPolicy_AllValues::ALLOW, - Policy_ListPolicy_AllValues::DENY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Policy.ListPolicy.AllValues", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Policy_ListPolicy_AllValues { -} - -impl ::std::default::Default for Policy_ListPolicy_AllValues { - fn default() -> Self { - Policy_ListPolicy_AllValues::ALL_VALUES_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy_ListPolicy_AllValues { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Policy_BooleanPolicy { - // message fields - pub enforced: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Policy_BooleanPolicy { - fn default() -> &'a Policy_BooleanPolicy { - ::default_instance() - } -} - -impl Policy_BooleanPolicy { - pub fn new() -> Policy_BooleanPolicy { - ::std::default::Default::default() - } - - // bool enforced = 1; - - - pub fn get_enforced(&self) -> bool { - self.enforced - } - pub fn clear_enforced(&mut self) { - self.enforced = false; - } - - // Param is passed by value, moved - pub fn set_enforced(&mut self, v: bool) { - self.enforced = v; - } -} - -impl ::protobuf::Message for Policy_BooleanPolicy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enforced = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.enforced != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.enforced != false { - os.write_bool(1, self.enforced)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Policy_BooleanPolicy { - Policy_BooleanPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enforced", - |m: &Policy_BooleanPolicy| { &m.enforced }, - |m: &mut Policy_BooleanPolicy| { &mut m.enforced }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy.BooleanPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Policy_BooleanPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy_BooleanPolicy::new) - } -} - -impl ::protobuf::Clear for Policy_BooleanPolicy { - fn clear(&mut self) { - self.enforced = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Policy_BooleanPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy_BooleanPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Policy_RestoreDefault { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Policy_RestoreDefault { - fn default() -> &'a Policy_RestoreDefault { - ::default_instance() - } -} - -impl Policy_RestoreDefault { - pub fn new() -> Policy_RestoreDefault { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Policy_RestoreDefault { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Policy_RestoreDefault { - Policy_RestoreDefault::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy.RestoreDefault", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Policy_RestoreDefault { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy_RestoreDefault::new) - } -} - -impl ::protobuf::Clear for Policy_RestoreDefault { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Policy_RestoreDefault { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy_RestoreDefault { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n)google/cloud/orgpolicy/v1/orgpolicy.proto\x12\x19google.cloud.orgpoli\ - cy.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x06\n\x06Policy\x12\ - \x18\n\x07version\x18\x01\x20\x01(\x05R\x07version\x12\x1e\n\nconstraint\ - \x18\x02\x20\x01(\tR\nconstraint\x12\x12\n\x04etag\x18\x03\x20\x01(\x0cR\ - \x04etag\x12;\n\x0bupdate_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf\ - .TimestampR\nupdateTime\x12O\n\x0blist_policy\x18\x05\x20\x01(\x0b2,.goo\ - gle.cloud.orgpolicy.v1.Policy.ListPolicyH\0R\nlistPolicy\x12X\n\x0eboole\ - an_policy\x18\x06\x20\x01(\x0b2/.google.cloud.orgpolicy.v1.Policy.Boolea\ - nPolicyH\0R\rbooleanPolicy\x12[\n\x0frestore_default\x18\x07\x20\x01(\ - \x0b20.google.cloud.orgpolicy.v1.Policy.RestoreDefaultH\0R\x0erestoreDef\ - ault\x1a\xc6\x02\n\nListPolicy\x12%\n\x0eallowed_values\x18\x01\x20\x03(\ - \tR\rallowedValues\x12#\n\rdenied_values\x18\x02\x20\x03(\tR\x0cdeniedVa\ - lues\x12U\n\nall_values\x18\x03\x20\x01(\x0e26.google.cloud.orgpolicy.v1\ - .Policy.ListPolicy.AllValuesR\tallValues\x12'\n\x0fsuggested_value\x18\ - \x04\x20\x01(\tR\x0esuggestedValue\x12.\n\x13inherit_from_parent\x18\x05\ - \x20\x01(\x08R\x11inheritFromParent\"<\n\tAllValues\x12\x1a\n\x16ALL_VAL\ - UES_UNSPECIFIED\x10\0\x12\t\n\x05ALLOW\x10\x01\x12\x08\n\x04DENY\x10\x02\ - \x1a+\n\rBooleanPolicy\x12\x1a\n\x08enforced\x18\x01\x20\x01(\x08R\x08en\ - forced\x1a\x10\n\x0eRestoreDefaultB\r\n\x0bpolicy_typeB\xc5\x01\n\x1dcom\ - .google.cloud.orgpolicy.v1B\x0eOrgPolicyProtoP\x01Z;cloud.google.com/go/\ - orgpolicy/apiv1/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolic\ - y.V1\xca\x02\x19Google\\Cloud\\OrgPolicy\\V1\xea\x02\x1cGoogle::Cloud::O\ - rgPolicy::V1J\xecg\n\x07\x12\x05\x0f\0\xb8\x02\x01\n\xbe\x04\n\x01\x0c\ - \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\"\n\t\n\x02\x03\0\x12\x03\x13\0)\ - \n\x08\n\x01\x08\x12\x03\x15\06\n\t\n\x02\x08%\x12\x03\x15\06\n\x08\n\ - \x01\x08\x12\x03\x16\0R\n\t\n\x02\x08\x0b\x12\x03\x16\0R\n\x08\n\x01\x08\ - \x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\ - \x18\0/\n\t\n\x02\x08\x08\x12\x03\x18\0/\n\x08\n\x01\x08\x12\x03\x19\06\ - \n\t\n\x02\x08\x01\x12\x03\x19\06\n\x08\n\x01\x08\x12\x03\x1a\06\n\t\n\ - \x02\x08)\x12\x03\x1a\06\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\x02\x08-\ - \x12\x03\x1b\05\n\x8c\x01\n\x02\x04\0\x12\x05\x1f\0\xb8\x02\x01\x1a\x7f\ - \x20Defines\x20a\x20Cloud\x20Organization\x20`Policy`\x20which\x20is\x20\ - used\x20to\x20specify\x20`Constraints`\n\x20for\x20configurations\x20of\ - \x20Cloud\x20Platform\x20resources.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\ - \x08\x0e\n\xf1\t\n\x04\x04\0\x03\0\x12\x055\x02\xbd\x01\x03\x1a\xe1\t\ - \x20Used\x20in\x20`policy_type`\x20to\x20specify\x20how\x20`list_policy`\ - \x20behaves\x20at\x20this\n\x20resource.\n\n\x20`ListPolicy`\x20can\x20d\ - efine\x20specific\x20values\x20and\x20subtrees\x20of\x20Cloud\x20Resourc\ - e\n\x20Manager\x20resource\x20hierarchy\x20(`Organizations`,\x20`Folders\ - `,\x20`Projects`)\x20that\n\x20are\x20allowed\x20or\x20denied\x20by\x20s\ - etting\x20the\x20`allowed_values`\x20and\x20`denied_values`\n\x20fields.\ - \x20This\x20is\x20achieved\x20by\x20using\x20the\x20`under:`\x20and\x20o\ - ptional\x20`is:`\x20prefixes.\n\x20The\x20`under:`\x20prefix\x20is\x20us\ - ed\x20to\x20denote\x20resource\x20subtree\x20values.\n\x20The\x20`is:`\ - \x20prefix\x20is\x20used\x20to\x20denote\x20specific\x20values,\x20and\ - \x20is\x20required\x20only\n\x20if\x20the\x20value\x20contains\x20a\x20\ - \":\".\x20Values\x20prefixed\x20with\x20\"is:\"\x20are\x20treated\x20the\ - \n\x20same\x20as\x20values\x20with\x20no\x20prefix.\n\x20Ancestry\x20sub\ - trees\x20must\x20be\x20in\x20one\x20of\x20the\x20following\x20formats:\n\ - \x20\x20\x20\x20\x20-\x20\"projects/\",\x20e.g.\x20\"project\ - s/tokyo-rain-123\"\n\x20\x20\x20\x20\x20-\x20\"folders/\",\ - \x20e.g.\x20\"folders/1234\"\n\x20\x20\x20\x20\x20-\x20\"organizations/<\ - organization-id>\",\x20e.g.\x20\"organizations/1234\"\n\x20The\x20`suppo\ - rts_under`\x20field\x20of\x20the\x20associated\x20`Constraint`\x20\x20de\ - fines\x20whether\n\x20ancestry\x20prefixes\x20can\x20be\x20used.\x20You\ - \x20can\x20set\x20`allowed_values`\x20and\n\x20`denied_values`\x20in\x20\ - the\x20same\x20`Policy`\x20if\x20`all_values`\x20is\n\x20`ALL_VALUES_UNS\ - PECIFIED`.\x20`ALLOW`\x20or\x20`DENY`\x20are\x20used\x20to\x20allow\x20o\ - r\x20deny\x20all\n\x20values.\x20If\x20`all_values`\x20is\x20set\x20to\ - \x20either\x20`ALLOW`\x20or\x20`DENY`,\n\x20`allowed_values`\x20and\x20`\ - denied_values`\x20must\x20be\x20unset.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\ - \x035\n\x14\n\xf5\x03\n\x06\x04\0\x03\0\x04\0\x12\x04?\x04H\x05\x1a\xe4\ - \x03\x20This\x20enum\x20can\x20be\x20used\x20to\x20set\x20`Policies`\x20\ - that\x20apply\x20to\x20all\x20possible\n\x20configuration\x20values\x20r\ - ather\x20than\x20specific\x20values\x20in\x20`allowed_values`\x20or\n\ - \x20`denied_values`.\n\n\x20Settting\x20this\x20to\x20`ALLOW`\x20will\ - \x20mean\x20this\x20`Policy`\x20allows\x20all\x20values.\n\x20Similarly,\ - \x20setting\x20it\x20to\x20`DENY`\x20will\x20mean\x20no\x20values\x20are\ - \x20allowed.\x20If\n\x20set\x20to\x20either\x20`ALLOW`\x20or\x20`DENY,\ - \x20\x20`allowed_values`\x20and\x20`denied_values`\n\x20must\x20be\x20un\ - set.\x20Setting\x20this\x20to\x20`ALL_VALUES_UNSPECIFIED`\x20allows\x20f\ - or\n\x20setting\x20`allowed_values`\x20and\x20`denied_values`.\n\n\x0e\n\ - \x07\x04\0\x03\0\x04\0\x01\x12\x03?\t\x12\nN\n\x08\x04\0\x03\0\x04\0\x02\ - \0\x12\x03A\x06!\x1a=\x20Indicates\x20that\x20allowed_values\x20or\x20de\ - nied_values\x20must\x20be\x20set.\n\n\x10\n\t\x04\0\x03\0\x04\0\x02\0\ - \x01\x12\x03A\x06\x1c\n\x10\n\t\x04\0\x03\0\x04\0\x02\0\x02\x12\x03A\x1f\ - \x20\n<\n\x08\x04\0\x03\0\x04\0\x02\x01\x12\x03D\x06\x10\x1a+\x20A\x20po\ - licy\x20with\x20this\x20set\x20allows\x20all\x20values.\n\n\x10\n\t\x04\ - \0\x03\0\x04\0\x02\x01\x01\x12\x03D\x06\x0b\n\x10\n\t\x04\0\x03\0\x04\0\ - \x02\x01\x02\x12\x03D\x0e\x0f\n<\n\x08\x04\0\x03\0\x04\0\x02\x02\x12\x03\ - G\x06\x0f\x1a+\x20A\x20policy\x20with\x20this\x20set\x20denies\x20all\ - \x20values.\n\n\x10\n\t\x04\0\x03\0\x04\0\x02\x02\x01\x12\x03G\x06\n\n\ - \x10\n\t\x04\0\x03\0\x04\0\x02\x02\x02\x12\x03G\r\x0e\n\x7f\n\x06\x04\0\ - \x03\0\x02\0\x12\x03L\x04'\x1ap\x20List\x20of\x20values\x20allowed\x20\ - \x20at\x20this\x20resource.\x20Can\x20only\x20be\x20set\x20if\x20`all_va\ - lues`\n\x20is\x20set\x20to\x20`ALL_VALUES_UNSPECIFIED`.\n\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x04\x12\x03L\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x05\x12\x03L\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03L\x14\"\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03L%&\n}\n\x06\x04\0\x03\0\x02\x01\ - \x12\x03P\x04&\x1an\x20List\x20of\x20values\x20denied\x20at\x20this\x20r\ - esource.\x20Can\x20only\x20be\x20set\x20if\x20`all_values`\n\x20is\x20se\ - t\x20to\x20`ALL_VALUES_UNSPECIFIED`.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x04\x12\x03P\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03P\r\x13\ - \n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03P\x14!\n\x0e\n\x07\x04\0\x03\ - \0\x02\x01\x03\x12\x03P$%\n-\n\x06\x04\0\x03\0\x02\x02\x12\x03S\x04\x1d\ - \x1a\x1e\x20The\x20policy\x20all_values\x20state.\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x06\x12\x03S\x04\r\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\ - \x12\x03S\x0e\x18\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03S\x1b\x1c\n\ - \x98\x02\n\x06\x04\0\x03\0\x02\x03\x12\x03Y\x04\x1f\x1a\x88\x02\x20Optio\ - nal.\x20The\x20Google\x20Cloud\x20Console\x20will\x20try\x20to\x20defaul\ - t\x20to\x20a\x20configuration\n\x20that\x20matches\x20the\x20value\x20sp\ - ecified\x20in\x20this\x20`Policy`.\x20If\x20`suggested_value`\n\x20is\ - \x20not\x20set,\x20it\x20will\x20inherit\x20the\x20value\x20specified\ - \x20higher\x20in\x20the\x20hierarchy,\n\x20unless\x20`inherit_from_paren\ - t`\x20is\x20`false`.\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x05\x12\x03Y\x04\ - \n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x01\x12\x03Y\x0b\x1a\n\x0e\n\x07\x04\ - \0\x03\0\x02\x03\x03\x12\x03Y\x1d\x1e\n\xbb\"\n\x06\x04\0\x03\0\x02\x04\ - \x12\x04\xbc\x01\x04!\x1a\xaa\"\x20Determines\x20the\x20inheritance\x20b\ - ehavior\x20for\x20this\x20`Policy`.\n\n\x20By\x20default,\x20a\x20`ListP\ - olicy`\x20set\x20at\x20a\x20resource\x20supercedes\x20any\x20`Policy`\ - \x20set\n\x20anywhere\x20up\x20the\x20resource\x20hierarchy.\x20However,\ - \x20if\x20`inherit_from_parent`\x20is\n\x20set\x20to\x20`true`,\x20then\ - \x20the\x20values\x20from\x20the\x20effective\x20`Policy`\x20of\x20the\ - \x20parent\n\x20resource\x20are\x20inherited,\x20meaning\x20the\x20value\ - s\x20set\x20in\x20this\x20`Policy`\x20are\n\x20added\x20to\x20the\x20val\ - ues\x20inherited\x20up\x20the\x20hierarchy.\n\n\x20Setting\x20`Policy`\ - \x20hierarchies\x20that\x20inherit\x20both\x20allowed\x20values\x20and\ - \x20denied\n\x20values\x20isn't\x20recommended\x20in\x20most\x20circumst\ - ances\x20to\x20keep\x20the\x20configuration\n\x20simple\x20and\x20unders\ - tandable.\x20However,\x20it\x20is\x20possible\x20to\x20set\x20a\x20`Poli\ - cy`\x20with\n\x20`allowed_values`\x20set\x20that\x20inherits\x20a\x20`Po\ - licy`\x20with\x20`denied_values`\x20set.\n\x20In\x20this\x20case,\x20the\ - \x20values\x20that\x20are\x20allowed\x20must\x20be\x20in\x20`allowed_val\ - ues`\x20and\n\x20not\x20present\x20in\x20`denied_values`.\n\n\x20For\x20\ - example,\x20suppose\x20you\x20have\x20a\x20`Constraint`\n\x20`constraint\ - s/serviceuser.services`,\x20which\x20has\x20a\x20`constraint_type`\x20of\ - \n\x20`list_constraint`,\x20and\x20with\x20`constraint_default`\x20set\ - \x20to\x20`ALLOW`.\n\x20Suppose\x20that\x20at\x20the\x20Organization\x20\ - level,\x20a\x20`Policy`\x20is\x20applied\x20that\n\x20restricts\x20the\ - \x20allowed\x20API\x20activations\x20to\x20{`E1`,\x20`E2`}.\x20Then,\x20\ - if\x20a\n\x20`Policy`\x20is\x20applied\x20to\x20a\x20project\x20below\ - \x20the\x20Organization\x20that\x20has\n\x20`inherit_from_parent`\x20set\ - \x20to\x20`false`\x20and\x20field\x20all_values\x20set\x20to\x20DENY,\n\ - \x20then\x20an\x20attempt\x20to\x20activate\x20any\x20API\x20will\x20be\ - \x20denied.\n\n\x20The\x20following\x20examples\x20demonstrate\x20differ\ - ent\x20possible\x20layerings\x20for\n\x20`projects/bar`\x20parented\x20b\ - y\x20`organizations/foo`:\n\n\x20Example\x201\x20(no\x20inherited\x20val\ - ues):\n\x20\x20\x20`organizations/foo`\x20has\x20a\x20`Policy`\x20with\ - \x20values:\n\x20\x20\x20\x20\x20{allowed_values:\x20\"E1\"\x20allowed_v\ - alues:\"E2\"}\n\x20\x20\x20`projects/bar`\x20has\x20`inherit_from_parent\ - `\x20`false`\x20and\x20values:\n\x20\x20\x20\x20\x20{allowed_values:\x20\ - \"E3\"\x20allowed_values:\x20\"E4\"}\n\x20The\x20accepted\x20values\x20a\ - t\x20`organizations/foo`\x20are\x20`E1`,\x20`E2`.\n\x20The\x20accepted\ - \x20values\x20at\x20`projects/bar`\x20are\x20`E3`,\x20and\x20`E4`.\n\n\ - \x20Example\x202\x20(inherited\x20values):\n\x20\x20\x20`organizations/f\ - oo`\x20has\x20a\x20`Policy`\x20with\x20values:\n\x20\x20\x20\x20\x20{all\ - owed_values:\x20\"E1\"\x20allowed_values:\"E2\"}\n\x20\x20\x20`projects/\ - bar`\x20has\x20a\x20`Policy`\x20with\x20values:\n\x20\x20\x20\x20\x20{va\ - lue:\x20\"E3\"\x20value:\x20\"E4\"\x20inherit_from_parent:\x20true}\n\ - \x20The\x20accepted\x20values\x20at\x20`organizations/foo`\x20are\x20`E1\ - `,\x20`E2`.\n\x20The\x20accepted\x20values\x20at\x20`projects/bar`\x20ar\ - e\x20`E1`,\x20`E2`,\x20`E3`,\x20and\x20`E4`.\n\n\x20Example\x203\x20(inh\ - eriting\x20both\x20allowed\x20and\x20denied\x20values):\n\x20\x20\x20`or\ - ganizations/foo`\x20has\x20a\x20`Policy`\x20with\x20values:\n\x20\x20\ - \x20\x20\x20{allowed_values:\x20\"E1\"\x20allowed_values:\x20\"E2\"}\n\ - \x20\x20\x20`projects/bar`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\ - \x20\x20\x20{denied_values:\x20\"E1\"}\n\x20The\x20accepted\x20values\ - \x20at\x20`organizations/foo`\x20are\x20`E1`,\x20`E2`.\n\x20The\x20value\ - \x20accepted\x20at\x20`projects/bar`\x20is\x20`E2`.\n\n\x20Example\x204\ - \x20(RestoreDefault):\n\x20\x20\x20`organizations/foo`\x20has\x20a\x20`P\ - olicy`\x20with\x20values:\n\x20\x20\x20\x20\x20{allowed_values:\x20\"E1\ - \"\x20allowed_values:\"E2\"}\n\x20\x20\x20`projects/bar`\x20has\x20a\x20\ - `Policy`\x20with\x20values:\n\x20\x20\x20\x20\x20{RestoreDefault:\x20{}}\ - \n\x20The\x20accepted\x20values\x20at\x20`organizations/foo`\x20are\x20`\ - E1`,\x20`E2`.\n\x20The\x20accepted\x20values\x20at\x20`projects/bar`\x20\ - are\x20either\x20all\x20or\x20none\x20depending\x20on\n\x20the\x20value\ - \x20of\x20`constraint_default`\x20(if\x20`ALLOW`,\x20all;\x20if\n\x20`DE\ - NY`,\x20none).\n\n\x20Example\x205\x20(no\x20policy\x20inherits\x20paren\ - t\x20policy):\n\x20\x20\x20`organizations/foo`\x20has\x20no\x20`Policy`\ - \x20set.\n\x20\x20\x20`projects/bar`\x20has\x20no\x20`Policy`\x20set.\n\ - \x20The\x20accepted\x20values\x20at\x20both\x20levels\x20are\x20either\ - \x20all\x20or\x20none\x20depending\x20on\n\x20the\x20value\x20of\x20`con\ - straint_default`\x20(if\x20`ALLOW`,\x20all;\x20if\n\x20`DENY`,\x20none).\ - \n\n\x20Example\x206\x20(ListConstraint\x20allowing\x20all):\n\x20\x20\ - \x20`organizations/foo`\x20has\x20a\x20`Policy`\x20with\x20values:\n\x20\ - \x20\x20\x20\x20{allowed_values:\x20\"E1\"\x20allowed_values:\x20\"E2\"}\ - \n\x20\x20\x20`projects/bar`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\ - \x20\x20\x20{all:\x20ALLOW}\n\x20The\x20accepted\x20values\x20at\x20`org\ - anizations/foo`\x20are\x20`E1`,\x20E2`.\n\x20Any\x20value\x20is\x20accep\ - ted\x20at\x20`projects/bar`.\n\n\x20Example\x207\x20(ListConstraint\x20a\ - llowing\x20none):\n\x20\x20\x20`organizations/foo`\x20has\x20a\x20`Polic\ - y`\x20with\x20values:\n\x20\x20\x20\x20\x20{allowed_values:\x20\"E1\"\ - \x20allowed_values:\x20\"E2\"}\n\x20\x20\x20`projects/bar`\x20has\x20a\ - \x20`Policy`\x20with:\n\x20\x20\x20\x20\x20{all:\x20DENY}\n\x20The\x20ac\ - cepted\x20values\x20at\x20`organizations/foo`\x20are\x20`E1`,\x20E2`.\n\ - \x20No\x20value\x20is\x20accepted\x20at\x20`projects/bar`.\n\n\x20Exampl\ - e\x2010\x20(allowed\x20and\x20denied\x20subtrees\x20of\x20Resource\x20Ma\ - nager\x20hierarchy):\n\x20Given\x20the\x20following\x20resource\x20hiera\ - rchy\n\x20\x20\x20O1->{F1,\x20F2};\x20F1->{P1};\x20F2->{P2,\x20P3},\n\ - \x20\x20\x20`organizations/foo`\x20has\x20a\x20`Policy`\x20with\x20value\ - s:\n\x20\x20\x20\x20\x20{allowed_values:\x20\"under:organizations/O1\"}\ - \n\x20\x20\x20`projects/bar`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\ - \x20\x20\x20{allowed_values:\x20\"under:projects/P3\"}\n\x20\x20\x20\x20\ - \x20{denied_values:\x20\"under:folders/F2\"}\n\x20The\x20accepted\x20val\ - ues\x20at\x20`organizations/foo`\x20are\x20`organizations/O1`,\n\x20\x20\ - \x20`folders/F1`,\x20`folders/F2`,\x20`projects/P1`,\x20`projects/P2`,\n\ - \x20\x20\x20`projects/P3`.\n\x20The\x20accepted\x20values\x20at\x20`proj\ - ects/bar`\x20are\x20`organizations/O1`,\n\x20\x20\x20`folders/F1`,\x20`p\ - rojects/P1`.\n\n\x0f\n\x07\x04\0\x03\0\x02\x04\x05\x12\x04\xbc\x01\x04\ - \x08\n\x0f\n\x07\x04\0\x03\0\x02\x04\x01\x12\x04\xbc\x01\t\x1c\n\x0f\n\ - \x07\x04\0\x03\0\x02\x04\x03\x12\x04\xbc\x01\x1f\x20\nf\n\x04\x04\0\x03\ - \x01\x12\x06\xc1\x01\x02\xef\x01\x03\x1aV\x20Used\x20in\x20`policy_type`\ - \x20to\x20specify\x20how\x20`boolean_policy`\x20will\x20behave\x20at\x20\ - this\n\x20resource.\n\n\r\n\x05\x04\0\x03\x01\x01\x12\x04\xc1\x01\n\x17\ - \n\xc7\x0e\n\x06\x04\0\x03\x01\x02\0\x12\x04\xee\x01\x04\x16\x1a\xb6\x0e\ - \x20If\x20`true`,\x20then\x20the\x20`Policy`\x20is\x20enforced.\x20If\ - \x20`false`,\x20then\x20any\n\x20configuration\x20is\x20acceptable.\n\n\ - \x20Suppose\x20you\x20have\x20a\x20`Constraint`\n\x20`constraints/comput\ - e.disableSerialPortAccess`\x20with\x20`constraint_default`\n\x20set\x20t\ - o\x20`ALLOW`.\x20A\x20`Policy`\x20for\x20that\x20`Constraint`\x20exhibit\ - s\x20the\x20following\n\x20behavior:\n\x20\x20\x20-\x20If\x20the\x20`Pol\ - icy`\x20at\x20this\x20resource\x20has\x20enforced\x20set\x20to\x20`false\ - `,\x20serial\n\x20\x20\x20\x20\x20port\x20connection\x20attempts\x20will\ - \x20be\x20allowed.\n\x20\x20\x20-\x20If\x20the\x20`Policy`\x20at\x20this\ - \x20resource\x20has\x20enforced\x20set\x20to\x20`true`,\x20serial\n\x20\ - \x20\x20\x20\x20port\x20connection\x20attempts\x20will\x20be\x20refused.\ - \n\x20\x20\x20-\x20If\x20the\x20`Policy`\x20at\x20this\x20resource\x20is\ - \x20`RestoreDefault`,\x20serial\x20port\n\x20\x20\x20\x20\x20connection\ - \x20attempts\x20will\x20be\x20allowed.\n\x20\x20\x20-\x20If\x20no\x20`Po\ - licy`\x20is\x20set\x20at\x20this\x20resource\x20or\x20anywhere\x20higher\ - \x20in\x20the\n\x20\x20\x20\x20\x20resource\x20hierarchy,\x20serial\x20p\ - ort\x20connection\x20attempts\x20will\x20be\x20allowed.\n\x20\x20\x20-\ - \x20If\x20no\x20`Policy`\x20is\x20set\x20at\x20this\x20resource,\x20but\ - \x20one\x20exists\x20higher\x20in\x20the\n\x20\x20\x20\x20\x20resource\ - \x20hierarchy,\x20the\x20behavior\x20is\x20as\x20if\x20the`Policy`\x20we\ - re\x20set\x20at\n\x20\x20\x20\x20\x20this\x20resource.\n\n\x20The\x20fol\ - lowing\x20examples\x20demonstrate\x20the\x20different\x20possible\x20lay\ - erings:\n\n\x20Example\x201\x20(nearest\x20`Constraint`\x20wins):\n\x20\ - \x20\x20`organizations/foo`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\ - \x20\x20\x20{enforced:\x20false}\n\x20\x20\x20`projects/bar`\x20has\x20n\ - o\x20`Policy`\x20set.\n\x20The\x20constraint\x20at\x20`projects/bar`\x20\ - and\x20`organizations/foo`\x20will\x20not\x20be\n\x20enforced.\n\n\x20Ex\ - ample\x202\x20(enforcement\x20gets\x20replaced):\n\x20\x20\x20`organizat\ - ions/foo`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\x20\x20\x20{enforce\ - d:\x20false}\n\x20\x20\x20`projects/bar`\x20has\x20a\x20`Policy`\x20with\ - :\n\x20\x20\x20\x20\x20{enforced:\x20true}\n\x20The\x20constraint\x20at\ - \x20`organizations/foo`\x20is\x20not\x20enforced.\n\x20The\x20constraint\ - \x20at\x20`projects/bar`\x20is\x20enforced.\n\n\x20Example\x203\x20(Rest\ - oreDefault):\n\x20\x20\x20`organizations/foo`\x20has\x20a\x20`Policy`\ - \x20with:\n\x20\x20\x20\x20\x20{enforced:\x20true}\n\x20\x20\x20`project\ - s/bar`\x20has\x20a\x20`Policy`\x20with:\n\x20\x20\x20\x20\x20{RestoreDef\ - ault:\x20{}}\n\x20The\x20constraint\x20at\x20`organizations/foo`\x20is\ - \x20enforced.\n\x20The\x20constraint\x20at\x20`projects/bar`\x20is\x20no\ - t\x20enforced,\x20because\n\x20`constraint_default`\x20for\x20the\x20`Co\ - nstraint`\x20is\x20`ALLOW`.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x05\x12\ - \x04\xee\x01\x04\x08\n\x0f\n\x07\x04\0\x03\x01\x02\0\x01\x12\x04\xee\x01\ - \t\x11\n\x0f\n\x07\x04\0\x03\x01\x02\0\x03\x12\x04\xee\x01\x14\x15\n\xc1\ - \x05\n\x04\x04\0\x03\x02\x12\x06\xfd\x01\x02\xff\x01\x03\x1a\xb0\x05\x20\ - Ignores\x20policies\x20set\x20above\x20this\x20resource\x20and\x20restor\ - es\x20the\n\x20`constraint_default`\x20enforcement\x20behavior\x20of\x20\ - the\x20specific\x20`Constraint`\x20at\n\x20this\x20resource.\n\n\x20Supp\ - ose\x20that\x20`constraint_default`\x20is\x20set\x20to\x20`ALLOW`\x20for\ - \x20the\n\x20`Constraint`\x20`constraints/serviceuser.services`.\x20Supp\ - ose\x20that\x20organization\n\x20foo.com\x20sets\x20a\x20`Policy`\x20at\ - \x20their\x20Organization\x20resource\x20node\x20that\x20restricts\n\x20\ - the\x20allowed\x20service\x20activations\x20to\x20deny\x20all\x20service\ - \x20activations.\x20They\n\x20could\x20then\x20set\x20a\x20`Policy`\x20w\ - ith\x20the\x20`policy_type`\x20`restore_default`\x20on\n\x20several\x20e\ - xperimental\x20projects,\x20restoring\x20the\x20`constraint_default`\n\ - \x20enforcement\x20of\x20the\x20`Constraint`\x20for\x20only\x20those\x20\ - projects,\x20allowing\x20those\n\x20projects\x20to\x20have\x20all\x20ser\ - vices\x20activated.\n\n\r\n\x05\x04\0\x03\x02\x01\x12\x04\xfd\x01\n\x18\ - \n>\n\x04\x04\0\x02\0\x12\x04\x82\x02\x02\x14\x1a0\x20Version\x20of\x20t\ - he\x20`Policy`.\x20Default\x20version\x20is\x200;\n\n\r\n\x05\x04\0\x02\ - \0\x05\x12\x04\x82\x02\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x82\x02\ - \x08\x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x82\x02\x12\x13\n\x98\x01\n\ - \x04\x04\0\x02\x01\x12\x04\x88\x02\x02\x18\x1a\x89\x01\x20The\x20name\ - \x20of\x20the\x20`Constraint`\x20the\x20`Policy`\x20is\x20configuring,\ - \x20for\x20example,\n\x20`constraints/serviceuser.services`.\n\n\x20Immu\ - table\x20after\x20creation.\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x88\ - \x02\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x88\x02\t\x13\n\r\n\x05\ - \x04\0\x02\x01\x03\x12\x04\x88\x02\x16\x17\n\xb8\x05\n\x04\x04\0\x02\x02\ - \x12\x04\x99\x02\x02\x11\x1a\xa9\x05\x20An\x20opaque\x20tag\x20indicatin\ - g\x20the\x20current\x20version\x20of\x20the\x20`Policy`,\x20used\x20for\ - \n\x20concurrency\x20control.\n\n\x20When\x20the\x20`Policy`\x20is\x20re\ - turned\x20from\x20either\x20a\x20`GetPolicy`\x20or\x20a\n\x20`ListOrgPol\ - icy`\x20request,\x20this\x20`etag`\x20indicates\x20the\x20version\x20of\ - \x20the\x20current\n\x20`Policy`\x20to\x20use\x20when\x20executing\x20a\ - \x20read-modify-write\x20loop.\n\n\x20When\x20the\x20`Policy`\x20is\x20r\ - eturned\x20from\x20a\x20`GetEffectivePolicy`\x20request,\x20the\n\x20`et\ - ag`\x20will\x20be\x20unset.\n\n\x20When\x20the\x20`Policy`\x20is\x20used\ - \x20in\x20a\x20`SetOrgPolicy`\x20method,\x20use\x20the\x20`etag`\x20valu\ - e\n\x20that\x20was\x20returned\x20from\x20a\x20`GetOrgPolicy`\x20request\ - \x20as\x20part\x20of\x20a\n\x20read-modify-write\x20loop\x20for\x20concu\ - rrency\x20control.\x20Not\x20setting\x20the\x20`etag`in\x20a\n\x20`SetOr\ - gPolicy`\x20request\x20will\x20result\x20in\x20an\x20unconditional\x20wr\ - ite\x20of\x20the\n\x20`Policy`.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\ - \x99\x02\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x99\x02\x08\x0c\n\r\ - \n\x05\x04\0\x02\x02\x03\x12\x04\x99\x02\x0f\x10\n\xfe\x01\n\x04\x04\0\ - \x02\x03\x12\x04\x9f\x02\x02,\x1a\xef\x01\x20The\x20time\x20stamp\x20the\ - \x20`Policy`\x20was\x20previously\x20updated.\x20This\x20is\x20set\x20by\ - \x20the\n\x20server,\x20not\x20specified\x20by\x20the\x20caller,\x20and\ - \x20represents\x20the\x20last\x20time\x20a\x20call\x20to\n\x20`SetOrgPol\ - icy`\x20was\x20made\x20for\x20that\x20`Policy`.\x20Any\x20value\x20set\ - \x20by\x20the\x20client\x20will\n\x20be\x20ignored.\n\n\r\n\x05\x04\0\ - \x02\x03\x06\x12\x04\x9f\x02\x02\x1b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\ - \x9f\x02\x1c'\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x9f\x02*+\n\xdc\x03\n\ - \x04\x04\0\x08\0\x12\x06\xad\x02\x02\xb7\x02\x03\x1a\xcb\x03\x20The\x20f\ - ield\x20to\x20populate\x20is\x20based\x20on\x20the\x20`constraint_type`\ - \x20value\x20in\x20the\n\x20`Constraint`.\n\x20\x20\x20`list_constraint`\ - \x20=>\x20`list_policy`\n\x20\x20\x20`boolean_constraint`\x20=>\x20`bool\ - ean_policy`\n\n\x20\x20A\x20`restore_default`\x20message\x20may\x20be\ - \x20used\x20with\x20any\x20`Constraint`\x20type.\n\n\x20Providing\x20a\ - \x20*_policy\x20that\x20is\x20incompatible\x20with\x20the\x20`constraint\ - _type`\x20will\n\x20result\x20in\x20an\x20`invalid_argument`\x20error.\n\ - \n\x20Attempting\x20to\x20set\x20a\x20`Policy`\x20with\x20a\x20`policy_t\ - ype`\x20not\x20set\x20will\x20result\x20in\x20an\n\x20`invalid_argument`\ - \x20error.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\xad\x02\x08\x13\n<\n\x04\ - \x04\0\x02\x04\x12\x04\xaf\x02\x04\x1f\x1a.\x20List\x20of\x20values\x20e\ - ither\x20allowed\x20or\x20disallowed.\n\n\r\n\x05\x04\0\x02\x04\x06\x12\ - \x04\xaf\x02\x04\x0e\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xaf\x02\x0f\x1a\ - \n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xaf\x02\x1d\x1e\nV\n\x04\x04\0\x02\ - \x05\x12\x04\xb2\x02\x04%\x1aH\x20For\x20boolean\x20`Constraints`,\x20wh\ - ether\x20to\x20enforce\x20the\x20`Constraint`\x20or\x20not.\n\n\r\n\x05\ - \x04\0\x02\x05\x06\x12\x04\xb2\x02\x04\x11\n\r\n\x05\x04\0\x02\x05\x01\ - \x12\x04\xb2\x02\x12\x20\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xb2\x02#$\n\ - c\n\x04\x04\0\x02\x06\x12\x04\xb6\x02\x04'\x1aU\x20Restores\x20the\x20de\ - fault\x20behavior\x20of\x20the\x20constraint;\x20independent\x20of\n\x20\ - `Constraint`\x20type.\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xb6\x02\x04\ - \x12\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xb6\x02\x13\"\n\r\n\x05\x04\0\ - \x02\x06\x03\x12\x04\xb6\x02%&b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/orgpolicy/v2/constraint.rs b/googleapis-raw/src/cloud/orgpolicy/v2/constraint.rs deleted file mode 100644 index fc8f1c6..0000000 --- a/googleapis-raw/src/cloud/orgpolicy/v2/constraint.rs +++ /dev/null @@ -1,974 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/orgpolicy/v2/constraint.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Constraint { - // message fields - pub name: ::std::string::String, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - pub constraint_default: Constraint_ConstraintDefault, - // message oneof groups - pub constraint_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Constraint { - fn default() -> &'a Constraint { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Constraint_oneof_constraint_type { - list_constraint(Constraint_ListConstraint), - boolean_constraint(Constraint_BooleanConstraint), -} - -impl Constraint { - pub fn new() -> Constraint { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.orgpolicy.v2.Constraint.ConstraintDefault constraint_default = 4; - - - pub fn get_constraint_default(&self) -> Constraint_ConstraintDefault { - self.constraint_default - } - pub fn clear_constraint_default(&mut self) { - self.constraint_default = Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_constraint_default(&mut self, v: Constraint_ConstraintDefault) { - self.constraint_default = v; - } - - // .google.cloud.orgpolicy.v2.Constraint.ListConstraint list_constraint = 5; - - - pub fn get_list_constraint(&self) -> &Constraint_ListConstraint { - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_list_constraint(&mut self) { - self.constraint_type = ::std::option::Option::None; - } - - pub fn has_list_constraint(&self) -> bool { - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_list_constraint(&mut self, v: Constraint_ListConstraint) { - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_list_constraint(&mut self) -> &mut Constraint_ListConstraint { - if let ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(_)) = self.constraint_type { - } else { - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(Constraint_ListConstraint::new())); - } - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_list_constraint(&mut self) -> Constraint_ListConstraint { - if self.has_list_constraint() { - match self.constraint_type.take() { - ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(v)) => v, - _ => panic!(), - } - } else { - Constraint_ListConstraint::new() - } - } - - // .google.cloud.orgpolicy.v2.Constraint.BooleanConstraint boolean_constraint = 6; - - - pub fn get_boolean_constraint(&self) -> &Constraint_BooleanConstraint { - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_boolean_constraint(&mut self) { - self.constraint_type = ::std::option::Option::None; - } - - pub fn has_boolean_constraint(&self) -> bool { - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_boolean_constraint(&mut self, v: Constraint_BooleanConstraint) { - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(v)) - } - - // Mutable pointer to the field. - pub fn mut_boolean_constraint(&mut self) -> &mut Constraint_BooleanConstraint { - if let ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(_)) = self.constraint_type { - } else { - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(Constraint_BooleanConstraint::new())); - } - match self.constraint_type { - ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_boolean_constraint(&mut self) -> Constraint_BooleanConstraint { - if self.has_boolean_constraint() { - match self.constraint_type.take() { - ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(v)) => v, - _ => panic!(), - } - } else { - Constraint_BooleanConstraint::new() - } - } -} - -impl ::protobuf::Message for Constraint { - fn is_initialized(&self) -> bool { - if let Some(Constraint_oneof_constraint_type::list_constraint(ref v)) = self.constraint_type { - if !v.is_initialized() { - return false; - } - } - if let Some(Constraint_oneof_constraint_type::boolean_constraint(ref v)) = self.constraint_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.constraint_default, 4, &mut self.unknown_fields)? - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::list_constraint(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.constraint_type = ::std::option::Option::Some(Constraint_oneof_constraint_type::boolean_constraint(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - if self.constraint_default != Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.constraint_default); - } - if let ::std::option::Option::Some(ref v) = self.constraint_type { - match v { - &Constraint_oneof_constraint_type::list_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Constraint_oneof_constraint_type::boolean_constraint(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if self.constraint_default != Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.constraint_default))?; - } - if let ::std::option::Option::Some(ref v) = self.constraint_type { - match v { - &Constraint_oneof_constraint_type::list_constraint(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Constraint_oneof_constraint_type::boolean_constraint(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Constraint { - Constraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Constraint| { &m.name }, - |m: &mut Constraint| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Constraint| { &m.display_name }, - |m: &mut Constraint| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Constraint| { &m.description }, - |m: &mut Constraint| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "constraint_default", - |m: &Constraint| { &m.constraint_default }, - |m: &mut Constraint| { &mut m.constraint_default }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Constraint_ListConstraint>( - "list_constraint", - Constraint::has_list_constraint, - Constraint::get_list_constraint, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Constraint_BooleanConstraint>( - "boolean_constraint", - Constraint::has_boolean_constraint, - Constraint::get_boolean_constraint, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Constraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Constraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Constraint::new) - } -} - -impl ::protobuf::Clear for Constraint { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.description.clear(); - self.constraint_default = Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED; - self.constraint_type = ::std::option::Option::None; - self.constraint_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Constraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Constraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Constraint_ListConstraint { - // message fields - pub supports_in: bool, - pub supports_under: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Constraint_ListConstraint { - fn default() -> &'a Constraint_ListConstraint { - ::default_instance() - } -} - -impl Constraint_ListConstraint { - pub fn new() -> Constraint_ListConstraint { - ::std::default::Default::default() - } - - // bool supports_in = 1; - - - pub fn get_supports_in(&self) -> bool { - self.supports_in - } - pub fn clear_supports_in(&mut self) { - self.supports_in = false; - } - - // Param is passed by value, moved - pub fn set_supports_in(&mut self, v: bool) { - self.supports_in = v; - } - - // bool supports_under = 2; - - - pub fn get_supports_under(&self) -> bool { - self.supports_under - } - pub fn clear_supports_under(&mut self) { - self.supports_under = false; - } - - // Param is passed by value, moved - pub fn set_supports_under(&mut self, v: bool) { - self.supports_under = v; - } -} - -impl ::protobuf::Message for Constraint_ListConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.supports_in = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.supports_under = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.supports_in != false { - my_size += 2; - } - if self.supports_under != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.supports_in != false { - os.write_bool(1, self.supports_in)?; - } - if self.supports_under != false { - os.write_bool(2, self.supports_under)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Constraint_ListConstraint { - Constraint_ListConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "supports_in", - |m: &Constraint_ListConstraint| { &m.supports_in }, - |m: &mut Constraint_ListConstraint| { &mut m.supports_in }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "supports_under", - |m: &Constraint_ListConstraint| { &m.supports_under }, - |m: &mut Constraint_ListConstraint| { &mut m.supports_under }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Constraint.ListConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Constraint_ListConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Constraint_ListConstraint::new) - } -} - -impl ::protobuf::Clear for Constraint_ListConstraint { - fn clear(&mut self) { - self.supports_in = false; - self.supports_under = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Constraint_ListConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Constraint_ListConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Constraint_BooleanConstraint { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Constraint_BooleanConstraint { - fn default() -> &'a Constraint_BooleanConstraint { - ::default_instance() - } -} - -impl Constraint_BooleanConstraint { - pub fn new() -> Constraint_BooleanConstraint { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Constraint_BooleanConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Constraint_BooleanConstraint { - Constraint_BooleanConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Constraint.BooleanConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Constraint_BooleanConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Constraint_BooleanConstraint::new) - } -} - -impl ::protobuf::Clear for Constraint_BooleanConstraint { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Constraint_BooleanConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Constraint_BooleanConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Constraint_ConstraintDefault { - CONSTRAINT_DEFAULT_UNSPECIFIED = 0, - ALLOW = 1, - DENY = 2, -} - -impl ::protobuf::ProtobufEnum for Constraint_ConstraintDefault { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED), - 1 => ::std::option::Option::Some(Constraint_ConstraintDefault::ALLOW), - 2 => ::std::option::Option::Some(Constraint_ConstraintDefault::DENY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Constraint_ConstraintDefault] = &[ - Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED, - Constraint_ConstraintDefault::ALLOW, - Constraint_ConstraintDefault::DENY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Constraint.ConstraintDefault", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Constraint_ConstraintDefault { -} - -impl ::std::default::Default for Constraint_ConstraintDefault { - fn default() -> Self { - Constraint_ConstraintDefault::CONSTRAINT_DEFAULT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Constraint_ConstraintDefault { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n*google/cloud/orgpolicy/v2/constraint.proto\x12\x19google.cloud.orgpol\ - icy.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource\ - .proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8\x06\n\nConstraint\ - \x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x05\x12!\n\x0cd\ - isplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x20\n\x0bdescription\ - \x18\x03\x20\x01(\tR\x0bdescription\x12f\n\x12constraint_default\x18\x04\ - \x20\x01(\x0e27.google.cloud.orgpolicy.v2.Constraint.ConstraintDefaultR\ - \x11constraintDefault\x12_\n\x0flist_constraint\x18\x05\x20\x01(\x0b24.g\ - oogle.cloud.orgpolicy.v2.Constraint.ListConstraintH\0R\x0elistConstraint\ - \x12h\n\x12boolean_constraint\x18\x06\x20\x01(\x0b27.google.cloud.orgpol\ - icy.v2.Constraint.BooleanConstraintH\0R\x11booleanConstraint\x1aX\n\x0eL\ - istConstraint\x12\x1f\n\x0bsupports_in\x18\x01\x20\x01(\x08R\nsupportsIn\ - \x12%\n\x0esupports_under\x18\x02\x20\x01(\x08R\rsupportsUnder\x1a\x13\n\ - \x11BooleanConstraint\"L\n\x11ConstraintDefault\x12\"\n\x1eCONSTRAINT_DE\ - FAULT_UNSPECIFIED\x10\0\x12\t\n\x05ALLOW\x10\x01\x12\x08\n\x04DENY\x10\ - \x02B\x11\n\x0fconstraint_type:\xb8\x01\xeaA\xb4\x01\n#orgpolicy.googlea\ - pis.com/Constraint\x12+projects/{project}/constraints/{constraint}\x12)f\ - olders/{folder}/constraints/{constraint}\x125organizations/{organization\ - }/constraints/{constraint}B\xc6\x01\n\x1dcom.google.cloud.orgpolicy.v2B\ - \x0fConstraintProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv2/orgpolicyp\ - b;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V2\xca\x02\x19Google\\Cl\ - oud\\OrgPolicy\\V2\xea\x02\x1cGoogle::Cloud::OrgPolicy::V2J\xdb#\n\x06\ - \x12\x04\x0e\0}\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ - \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ - \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ - LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ - \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\ - \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\ - ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ - D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ - for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0\"\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\ - \n\t\n\x02\x03\x02\x12\x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\06\n\t\n\ - \x02\x08%\x12\x03\x16\06\n\x08\n\x01\x08\x12\x03\x17\0R\n\t\n\x02\x08\ - \x0b\x12\x03\x17\0R\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\ - \x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\00\n\t\n\x02\x08\x08\x12\x03\ - \x19\00\n\x08\n\x01\x08\x12\x03\x1a\06\n\t\n\x02\x08\x01\x12\x03\x1a\06\ - \n\x08\n\x01\x08\x12\x03\x1b\06\n\t\n\x02\x08)\x12\x03\x1b\06\n\x08\n\ - \x01\x08\x12\x03\x1c\05\n\t\n\x02\x08-\x12\x03\x1c\05\n\xb4\x07\n\x02\ - \x04\0\x12\x04,\0}\x01\x1a\xa7\x07\x20A\x20`constraint`\x20describes\x20\ - a\x20way\x20to\x20restrict\x20resource's\x20configuration.\x20For\n\x20e\ - xample,\x20you\x20could\x20enforce\x20a\x20constraint\x20that\x20control\ - s\x20which\x20cloud\x20services\n\x20can\x20be\x20activated\x20across\ - \x20an\x20organization,\x20or\x20whether\x20a\x20Compute\x20Engine\x20in\ - stance\n\x20can\x20have\x20serial\x20port\x20connections\x20established.\ - \x20`Constraints`\x20can\x20be\x20configured\n\x20by\x20the\x20organizat\ - ion's\x20policy\x20administrator\x20to\x20fit\x20the\x20needs\x20of\x20t\ - he\n\x20organization\x20by\x20setting\x20a\x20`policy`\x20that\x20includ\ - es\x20`constraints`\x20at\x20different\n\x20locations\x20in\x20the\x20or\ - ganization's\x20resource\x20hierarchy.\x20Policies\x20are\x20inherited\n\ - \x20down\x20the\x20resource\x20hierarchy\x20from\x20higher\x20levels,\ - \x20but\x20can\x20also\x20be\x20overridden.\n\x20For\x20details\x20about\ - \x20the\x20inheritance\x20rules\x20please\x20read\x20about\n\x20[`polici\ - es`][google.cloud.OrgPolicy.v2.Policy].\n\n\x20`Constraints`\x20have\x20\ - a\x20default\x20behavior\x20determined\x20by\x20the\x20`constraint_defau\ - lt`\n\x20field,\x20which\x20is\x20the\x20enforcement\x20behavior\x20that\ - \x20is\x20used\x20in\x20the\x20absence\x20of\x20a\n\x20`policy`\x20being\ - \x20defined\x20or\x20inherited\x20for\x20the\x20resource\x20in\x20questi\ - on.\n\n\n\n\x03\x04\0\x01\x12\x03,\x08\x12\n\x0b\n\x03\x04\0\x07\x12\x04\ - -\x022\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04-\x022\x04\n\xb4\x01\n\x04\ - \x04\0\x04\0\x12\x048\x02D\x03\x1a\xa5\x01\x20Specifies\x20the\x20defaul\ - t\x20behavior\x20in\x20the\x20absence\x20of\x20any\x20`Policy`\x20for\ - \x20the\n\x20`Constraint`.\x20This\x20must\x20not\x20be\x20`CONSTRAINT_D\ - EFAULT_UNSPECIFIED`.\n\n\x20Immutable\x20after\x20creation.\n\n\x0c\n\ - \x05\x04\0\x04\0\x01\x12\x038\x07\x18\n]\n\x06\x04\0\x04\0\x02\0\x12\x03\ - ;\x04'\x1aN\x20This\x20is\x20only\x20used\x20for\x20distinguishing\x20un\ - set\x20values\x20and\x20should\x20never\x20be\n\x20used.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x01\x12\x03;\x04\"\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\ - \x12\x03;%&\n\x86\x01\n\x06\x04\0\x04\0\x02\x01\x12\x03?\x04\x0e\x1aw\ - \x20Indicate\x20that\x20all\x20values\x20are\x20allowed\x20for\x20list\ - \x20constraints.\n\x20Indicate\x20that\x20enforcement\x20is\x20off\x20fo\ - r\x20boolean\x20constraints.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\ - \x03?\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03?\x0c\r\n\x84\x01\ - \n\x06\x04\0\x04\0\x02\x02\x12\x03C\x04\r\x1au\x20Indicate\x20that\x20al\ - l\x20values\x20are\x20denied\x20for\x20list\x20constraints.\n\x20Indicat\ - e\x20that\x20enforcement\x20is\x20on\x20for\x20boolean\x20constraints.\n\ - \n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03C\x04\x08\n\x0e\n\x07\x04\0\ - \x04\0\x02\x02\x02\x12\x03C\x0b\x0c\n\xa2\x01\n\x04\x04\0\x03\0\x12\x04H\ - \x02S\x03\x1a\x93\x01\x20A\x20`Constraint`\x20that\x20allows\x20or\x20di\ - sallows\x20a\x20list\x20of\x20string\x20values,\x20which\x20are\n\x20con\ - figured\x20by\x20an\x20Organization's\x20policy\x20administrator\x20with\ - \x20a\x20`Policy`.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03H\n\x18\n\xcf\ - \x01\n\x06\x04\0\x03\0\x02\0\x12\x03L\x04\x19\x1a\xbf\x01\x20Indicates\ - \x20whether\x20values\x20grouped\x20into\x20categories\x20can\x20be\x20u\ - sed\x20in\n\x20`Policy.allowed_values`\x20and\x20`Policy.denied_values`.\ - \x20For\x20example,\n\x20`\"in:Python\"`\x20would\x20match\x20any\x20val\ - ue\x20in\x20the\x20'Python'\x20group.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x05\x12\x03L\x04\x08\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03L\t\x14\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03L\x17\x18\n\xfb\x01\n\x06\x04\0\ - \x03\0\x02\x01\x12\x03R\x04\x1c\x1a\xeb\x01\x20Indicates\x20whether\x20s\ - ubtrees\x20of\x20Cloud\x20Resource\x20Manager\x20resource\x20hierarchy\n\ - \x20can\x20be\x20used\x20in\x20`Policy.allowed_values`\x20and\x20`Policy\ - .denied_values`.\x20For\n\x20example,\x20`\"under:folders/123\"`\x20woul\ - d\x20match\x20any\x20resource\x20under\x20the\n\x20'folders/123'\x20fold\ - er.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03R\x04\x08\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x01\x12\x03R\t\x17\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x03R\x1a\x1b\n\xeb\x01\n\x04\x04\0\x03\x01\x12\x03Z\x02\x1e\x1a\ - \xdd\x01\x20A\x20`Constraint`\x20that\x20is\x20either\x20enforced\x20or\ - \x20not.\n\n\x20For\x20example\x20a\x20constraint\x20`constraints/comput\ - e.disableSerialPortAccess`.\n\x20If\x20it\x20is\x20enforced\x20on\x20a\ - \x20VM\x20instance,\x20serial\x20port\x20connections\x20will\x20not\x20b\ - e\n\x20opened\x20to\x20that\x20instance.\n\n\x0c\n\x05\x04\0\x03\x01\x01\ - \x12\x03Z\n\x1b\n\xea\x02\n\x04\x04\0\x02\0\x12\x03c\x02<\x1a\xdc\x02\ - \x20Immutable.\x20The\x20resource\x20name\x20of\x20the\x20Constraint.\ - \x20Must\x20be\x20in\x20one\x20of\n\x20the\x20following\x20forms:\n\x20*\ - \x20`projects/{project_number}/constraints/{constraint_name}`\n\x20*\x20\ - `folders/{folder_id}/constraints/{constraint_name}`\n\x20*\x20`organizat\ - ions/{organization_id}/constraints/{constraint_name}`\n\n\x20For\x20exam\ - ple,\x20\"/projects/123/constraints/compute.disableSerialPortAccess\".\n\ - \n\x0c\n\x05\x04\0\x02\0\x05\x12\x03c\x02\x08\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03c\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03c\x10\x11\n\x0c\n\ - \x05\x04\0\x02\0\x08\x12\x03c\x12;\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\ - \x12\x03c\x13:\n2\n\x04\x04\0\x02\x01\x12\x03h\x02\x1a\x1a%\x20The\x20hu\ - man\x20readable\x20name.\n\n\x20Mutable.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03h\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03h\t\x15\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03h\x18\x19\n{\n\x04\x04\0\x02\x02\x12\x03n\ - \x02\x19\x1an\x20Detailed\x20description\x20of\x20what\x20this\x20`Const\ - raint`\x20controls\x20as\x20well\x20as\x20how\x20and\n\x20where\x20it\ - \x20is\x20enforced.\n\n\x20Mutable.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\ - \x03n\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03n\t\x14\n\x0c\n\x05\ - \x04\0\x02\x02\x03\x12\x03n\x17\x18\nU\n\x04\x04\0\x02\x03\x12\x03q\x02+\ - \x1aH\x20The\x20evaluation\x20behavior\x20of\x20this\x20constraint\x20in\ - \x20the\x20absence\x20of\x20'Policy'.\n\n\x0c\n\x05\x04\0\x02\x03\x06\ - \x12\x03q\x02\x13\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03q\x14&\n\x0c\n\ - \x05\x04\0\x02\x03\x03\x12\x03q)*\n[\n\x04\x04\0\x08\0\x12\x04v\x02|\x03\ - \x1aM\x20The\x20type\x20of\x20restrictions\x20for\x20this\x20`Constraint\ - `.\n\n\x20Immutable\x20after\x20creation.\n\n\x0c\n\x05\x04\0\x08\0\x01\ - \x12\x03v\x08\x17\nA\n\x04\x04\0\x02\x04\x12\x03x\x04'\x1a4\x20Defines\ - \x20this\x20constraint\x20as\x20being\x20a\x20ListConstraint.\n\n\x0c\n\ - \x05\x04\0\x02\x04\x06\x12\x03x\x04\x12\n\x0c\n\x05\x04\0\x02\x04\x01\ - \x12\x03x\x13\"\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03x%&\nD\n\x04\x04\0\ - \x02\x05\x12\x03{\x04-\x1a7\x20Defines\x20this\x20constraint\x20as\x20be\ - ing\x20a\x20BooleanConstraint.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03{\ - \x04\x15\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03{\x16(\n\x0c\n\x05\x04\0\ - \x02\x05\x03\x12\x03{+,b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs b/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs index d100722..478249a 100644 --- a/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs +++ b/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs @@ -3,6 +3,3 @@ use crate::{ r#type::expr, }; -pub mod constraint; -pub mod orgpolicy; -pub mod orgpolicy_grpc; diff --git a/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy.rs b/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy.rs deleted file mode 100644 index fa3574d..0000000 --- a/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy.rs +++ /dev/null @@ -1,3867 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/orgpolicy/v2/orgpolicy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Policy { - // message fields - pub name: ::std::string::String, - pub spec: ::protobuf::SingularPtrField, - pub alternate: ::protobuf::SingularPtrField, - pub dry_run_spec: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Policy { - fn default() -> &'a Policy { - ::default_instance() - } -} - -impl Policy { - pub fn new() -> Policy { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.orgpolicy.v2.PolicySpec spec = 2; - - - pub fn get_spec(&self) -> &PolicySpec { - self.spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_spec(&mut self) { - self.spec.clear(); - } - - pub fn has_spec(&self) -> bool { - self.spec.is_some() - } - - // Param is passed by value, moved - pub fn set_spec(&mut self, v: PolicySpec) { - self.spec = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_spec(&mut self) -> &mut PolicySpec { - if self.spec.is_none() { - self.spec.set_default(); - } - self.spec.as_mut().unwrap() - } - - // Take field - pub fn take_spec(&mut self) -> PolicySpec { - self.spec.take().unwrap_or_else(|| PolicySpec::new()) - } - - // .google.cloud.orgpolicy.v2.AlternatePolicySpec alternate = 3; - - - pub fn get_alternate(&self) -> &AlternatePolicySpec { - self.alternate.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_alternate(&mut self) { - self.alternate.clear(); - } - - pub fn has_alternate(&self) -> bool { - self.alternate.is_some() - } - - // Param is passed by value, moved - pub fn set_alternate(&mut self, v: AlternatePolicySpec) { - self.alternate = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_alternate(&mut self) -> &mut AlternatePolicySpec { - if self.alternate.is_none() { - self.alternate.set_default(); - } - self.alternate.as_mut().unwrap() - } - - // Take field - pub fn take_alternate(&mut self) -> AlternatePolicySpec { - self.alternate.take().unwrap_or_else(|| AlternatePolicySpec::new()) - } - - // .google.cloud.orgpolicy.v2.PolicySpec dry_run_spec = 4; - - - pub fn get_dry_run_spec(&self) -> &PolicySpec { - self.dry_run_spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_dry_run_spec(&mut self) { - self.dry_run_spec.clear(); - } - - pub fn has_dry_run_spec(&self) -> bool { - self.dry_run_spec.is_some() - } - - // Param is passed by value, moved - pub fn set_dry_run_spec(&mut self, v: PolicySpec) { - self.dry_run_spec = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dry_run_spec(&mut self) -> &mut PolicySpec { - if self.dry_run_spec.is_none() { - self.dry_run_spec.set_default(); - } - self.dry_run_spec.as_mut().unwrap() - } - - // Take field - pub fn take_dry_run_spec(&mut self) -> PolicySpec { - self.dry_run_spec.take().unwrap_or_else(|| PolicySpec::new()) - } -} - -impl ::protobuf::Message for Policy { - fn is_initialized(&self) -> bool { - for v in &self.spec { - if !v.is_initialized() { - return false; - } - }; - for v in &self.alternate { - if !v.is_initialized() { - return false; - } - }; - for v in &self.dry_run_spec { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.spec)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.alternate)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.dry_run_spec)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.spec.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.alternate.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.dry_run_spec.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.spec.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.alternate.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.dry_run_spec.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Policy { - Policy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Policy| { &m.name }, - |m: &mut Policy| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "spec", - |m: &Policy| { &m.spec }, - |m: &mut Policy| { &mut m.spec }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "alternate", - |m: &Policy| { &m.alternate }, - |m: &mut Policy| { &mut m.alternate }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "dry_run_spec", - |m: &Policy| { &m.dry_run_spec }, - |m: &mut Policy| { &mut m.dry_run_spec }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Policy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy::new) - } -} - -impl ::protobuf::Clear for Policy { - fn clear(&mut self) { - self.name.clear(); - self.spec.clear(); - self.alternate.clear(); - self.dry_run_spec.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Policy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Policy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AlternatePolicySpec { - // message fields - pub launch: ::std::string::String, - pub spec: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AlternatePolicySpec { - fn default() -> &'a AlternatePolicySpec { - ::default_instance() - } -} - -impl AlternatePolicySpec { - pub fn new() -> AlternatePolicySpec { - ::std::default::Default::default() - } - - // string launch = 1; - - - pub fn get_launch(&self) -> &str { - &self.launch - } - pub fn clear_launch(&mut self) { - self.launch.clear(); - } - - // Param is passed by value, moved - pub fn set_launch(&mut self, v: ::std::string::String) { - self.launch = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_launch(&mut self) -> &mut ::std::string::String { - &mut self.launch - } - - // Take field - pub fn take_launch(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.launch, ::std::string::String::new()) - } - - // .google.cloud.orgpolicy.v2.PolicySpec spec = 2; - - - pub fn get_spec(&self) -> &PolicySpec { - self.spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_spec(&mut self) { - self.spec.clear(); - } - - pub fn has_spec(&self) -> bool { - self.spec.is_some() - } - - // Param is passed by value, moved - pub fn set_spec(&mut self, v: PolicySpec) { - self.spec = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_spec(&mut self) -> &mut PolicySpec { - if self.spec.is_none() { - self.spec.set_default(); - } - self.spec.as_mut().unwrap() - } - - // Take field - pub fn take_spec(&mut self) -> PolicySpec { - self.spec.take().unwrap_or_else(|| PolicySpec::new()) - } -} - -impl ::protobuf::Message for AlternatePolicySpec { - fn is_initialized(&self) -> bool { - for v in &self.spec { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.launch)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.spec)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.launch.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.launch); - } - if let Some(ref v) = self.spec.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.launch.is_empty() { - os.write_string(1, &self.launch)?; - } - if let Some(ref v) = self.spec.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AlternatePolicySpec { - AlternatePolicySpec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "launch", - |m: &AlternatePolicySpec| { &m.launch }, - |m: &mut AlternatePolicySpec| { &mut m.launch }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "spec", - |m: &AlternatePolicySpec| { &m.spec }, - |m: &mut AlternatePolicySpec| { &mut m.spec }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AlternatePolicySpec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AlternatePolicySpec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AlternatePolicySpec::new) - } -} - -impl ::protobuf::Clear for AlternatePolicySpec { - fn clear(&mut self) { - self.launch.clear(); - self.spec.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AlternatePolicySpec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AlternatePolicySpec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PolicySpec { - // message fields - pub etag: ::std::string::String, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub rules: ::protobuf::RepeatedField, - pub inherit_from_parent: bool, - pub reset: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PolicySpec { - fn default() -> &'a PolicySpec { - ::default_instance() - } -} - -impl PolicySpec { - pub fn new() -> PolicySpec { - ::std::default::Default::default() - } - - // string etag = 1; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp update_time = 2; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.cloud.orgpolicy.v2.PolicySpec.PolicyRule rules = 3; - - - pub fn get_rules(&self) -> &[PolicySpec_PolicyRule] { - &self.rules - } - pub fn clear_rules(&mut self) { - self.rules.clear(); - } - - // Param is passed by value, moved - pub fn set_rules(&mut self, v: ::protobuf::RepeatedField) { - self.rules = v; - } - - // Mutable pointer to the field. - pub fn mut_rules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.rules - } - - // Take field - pub fn take_rules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.rules, ::protobuf::RepeatedField::new()) - } - - // bool inherit_from_parent = 4; - - - pub fn get_inherit_from_parent(&self) -> bool { - self.inherit_from_parent - } - pub fn clear_inherit_from_parent(&mut self) { - self.inherit_from_parent = false; - } - - // Param is passed by value, moved - pub fn set_inherit_from_parent(&mut self, v: bool) { - self.inherit_from_parent = v; - } - - // bool reset = 5; - - - pub fn get_reset(&self) -> bool { - self.reset - } - pub fn clear_reset(&mut self) { - self.reset = false; - } - - // Param is passed by value, moved - pub fn set_reset(&mut self, v: bool) { - self.reset = v; - } -} - -impl ::protobuf::Message for PolicySpec { - fn is_initialized(&self) -> bool { - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rules)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.inherit_from_parent = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reset = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.etag); - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.rules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.inherit_from_parent != false { - my_size += 2; - } - if self.reset != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.etag.is_empty() { - os.write_string(1, &self.etag)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.rules { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.inherit_from_parent != false { - os.write_bool(4, self.inherit_from_parent)?; - } - if self.reset != false { - os.write_bool(5, self.reset)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PolicySpec { - PolicySpec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &PolicySpec| { &m.etag }, - |m: &mut PolicySpec| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &PolicySpec| { &m.update_time }, - |m: &mut PolicySpec| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rules", - |m: &PolicySpec| { &m.rules }, - |m: &mut PolicySpec| { &mut m.rules }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "inherit_from_parent", - |m: &PolicySpec| { &m.inherit_from_parent }, - |m: &mut PolicySpec| { &mut m.inherit_from_parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reset", - |m: &PolicySpec| { &m.reset }, - |m: &mut PolicySpec| { &mut m.reset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PolicySpec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PolicySpec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PolicySpec::new) - } -} - -impl ::protobuf::Clear for PolicySpec { - fn clear(&mut self) { - self.etag.clear(); - self.update_time.clear(); - self.rules.clear(); - self.inherit_from_parent = false; - self.reset = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PolicySpec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PolicySpec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PolicySpec_PolicyRule { - // message fields - pub condition: ::protobuf::SingularPtrField, - // message oneof groups - pub kind: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PolicySpec_PolicyRule { - fn default() -> &'a PolicySpec_PolicyRule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum PolicySpec_PolicyRule_oneof_kind { - values(PolicySpec_PolicyRule_StringValues), - allow_all(bool), - deny_all(bool), - enforce(bool), -} - -impl PolicySpec_PolicyRule { - pub fn new() -> PolicySpec_PolicyRule { - ::std::default::Default::default() - } - - // .google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1; - - - pub fn get_values(&self) -> &PolicySpec_PolicyRule_StringValues { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_values(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_values(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_values(&mut self, v: PolicySpec_PolicyRule_StringValues) { - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(v)) - } - - // Mutable pointer to the field. - pub fn mut_values(&mut self) -> &mut PolicySpec_PolicyRule_StringValues { - if let ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(PolicySpec_PolicyRule_StringValues::new())); - } - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_values(&mut self) -> PolicySpec_PolicyRule_StringValues { - if self.has_values() { - match self.kind.take() { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(v)) => v, - _ => panic!(), - } - } else { - PolicySpec_PolicyRule_StringValues::new() - } - } - - // bool allow_all = 2; - - - pub fn get_allow_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::allow_all(v)) => v, - _ => false, - } - } - pub fn clear_allow_all(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_allow_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::allow_all(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_allow_all(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::allow_all(v)) - } - - // bool deny_all = 3; - - - pub fn get_deny_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::deny_all(v)) => v, - _ => false, - } - } - pub fn clear_deny_all(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_deny_all(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::deny_all(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_deny_all(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::deny_all(v)) - } - - // bool enforce = 4; - - - pub fn get_enforce(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::enforce(v)) => v, - _ => false, - } - } - pub fn clear_enforce(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_enforce(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::enforce(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_enforce(&mut self, v: bool) { - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::enforce(v)) - } - - // .google.type.Expr condition = 5; - - - pub fn get_condition(&self) -> &super::expr::Expr { - self.condition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - pub fn has_condition(&self) -> bool { - self.condition.is_some() - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: super::expr::Expr) { - self.condition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut super::expr::Expr { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> super::expr::Expr { - self.condition.take().unwrap_or_else(|| super::expr::Expr::new()) - } -} - -impl ::protobuf::Message for PolicySpec_PolicyRule { - fn is_initialized(&self) -> bool { - if let Some(PolicySpec_PolicyRule_oneof_kind::values(ref v)) = self.kind { - if !v.is_initialized() { - return false; - } - } - for v in &self.condition { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::values(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::allow_all(is.read_bool()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::deny_all(is.read_bool()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PolicySpec_PolicyRule_oneof_kind::enforce(is.read_bool()?)); - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.condition.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &PolicySpec_PolicyRule_oneof_kind::values(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &PolicySpec_PolicyRule_oneof_kind::allow_all(v) => { - my_size += 2; - }, - &PolicySpec_PolicyRule_oneof_kind::deny_all(v) => { - my_size += 2; - }, - &PolicySpec_PolicyRule_oneof_kind::enforce(v) => { - my_size += 2; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.condition.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &PolicySpec_PolicyRule_oneof_kind::values(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &PolicySpec_PolicyRule_oneof_kind::allow_all(v) => { - os.write_bool(2, v)?; - }, - &PolicySpec_PolicyRule_oneof_kind::deny_all(v) => { - os.write_bool(3, v)?; - }, - &PolicySpec_PolicyRule_oneof_kind::enforce(v) => { - os.write_bool(4, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PolicySpec_PolicyRule { - PolicySpec_PolicyRule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PolicySpec_PolicyRule_StringValues>( - "values", - PolicySpec_PolicyRule::has_values, - PolicySpec_PolicyRule::get_values, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "allow_all", - PolicySpec_PolicyRule::has_allow_all, - PolicySpec_PolicyRule::get_allow_all, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "deny_all", - PolicySpec_PolicyRule::has_deny_all, - PolicySpec_PolicyRule::get_deny_all, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( - "enforce", - PolicySpec_PolicyRule::has_enforce, - PolicySpec_PolicyRule::get_enforce, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &PolicySpec_PolicyRule| { &m.condition }, - |m: &mut PolicySpec_PolicyRule| { &mut m.condition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PolicySpec.PolicyRule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PolicySpec_PolicyRule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PolicySpec_PolicyRule::new) - } -} - -impl ::protobuf::Clear for PolicySpec_PolicyRule { - fn clear(&mut self) { - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.condition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PolicySpec_PolicyRule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PolicySpec_PolicyRule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PolicySpec_PolicyRule_StringValues { - // message fields - pub allowed_values: ::protobuf::RepeatedField<::std::string::String>, - pub denied_values: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PolicySpec_PolicyRule_StringValues { - fn default() -> &'a PolicySpec_PolicyRule_StringValues { - ::default_instance() - } -} - -impl PolicySpec_PolicyRule_StringValues { - pub fn new() -> PolicySpec_PolicyRule_StringValues { - ::std::default::Default::default() - } - - // repeated string allowed_values = 1; - - - pub fn get_allowed_values(&self) -> &[::std::string::String] { - &self.allowed_values - } - pub fn clear_allowed_values(&mut self) { - self.allowed_values.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_values = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_values - } - - // Take field - pub fn take_allowed_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_values, ::protobuf::RepeatedField::new()) - } - - // repeated string denied_values = 2; - - - pub fn get_denied_values(&self) -> &[::std::string::String] { - &self.denied_values - } - pub fn clear_denied_values(&mut self) { - self.denied_values.clear(); - } - - // Param is passed by value, moved - pub fn set_denied_values(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.denied_values = v; - } - - // Mutable pointer to the field. - pub fn mut_denied_values(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.denied_values - } - - // Take field - pub fn take_denied_values(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.denied_values, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for PolicySpec_PolicyRule_StringValues { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_values)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.denied_values)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.allowed_values { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.denied_values { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_values { - os.write_string(1, &v)?; - }; - for v in &self.denied_values { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PolicySpec_PolicyRule_StringValues { - PolicySpec_PolicyRule_StringValues::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_values", - |m: &PolicySpec_PolicyRule_StringValues| { &m.allowed_values }, - |m: &mut PolicySpec_PolicyRule_StringValues| { &mut m.allowed_values }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "denied_values", - |m: &PolicySpec_PolicyRule_StringValues| { &m.denied_values }, - |m: &mut PolicySpec_PolicyRule_StringValues| { &mut m.denied_values }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PolicySpec.PolicyRule.StringValues", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PolicySpec_PolicyRule_StringValues { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PolicySpec_PolicyRule_StringValues::new) - } -} - -impl ::protobuf::Clear for PolicySpec_PolicyRule_StringValues { - fn clear(&mut self) { - self.allowed_values.clear(); - self.denied_values.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PolicySpec_PolicyRule_StringValues { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PolicySpec_PolicyRule_StringValues { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListConstraintsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListConstraintsRequest { - fn default() -> &'a ListConstraintsRequest { - ::default_instance() - } -} - -impl ListConstraintsRequest { - pub fn new() -> ListConstraintsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListConstraintsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListConstraintsRequest { - ListConstraintsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListConstraintsRequest| { &m.parent }, - |m: &mut ListConstraintsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListConstraintsRequest| { &m.page_size }, - |m: &mut ListConstraintsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListConstraintsRequest| { &m.page_token }, - |m: &mut ListConstraintsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListConstraintsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListConstraintsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListConstraintsRequest::new) - } -} - -impl ::protobuf::Clear for ListConstraintsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListConstraintsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListConstraintsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListConstraintsResponse { - // message fields - pub constraints: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListConstraintsResponse { - fn default() -> &'a ListConstraintsResponse { - ::default_instance() - } -} - -impl ListConstraintsResponse { - pub fn new() -> ListConstraintsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.orgpolicy.v2.Constraint constraints = 1; - - - pub fn get_constraints(&self) -> &[super::constraint::Constraint] { - &self.constraints - } - pub fn clear_constraints(&mut self) { - self.constraints.clear(); - } - - // Param is passed by value, moved - pub fn set_constraints(&mut self, v: ::protobuf::RepeatedField) { - self.constraints = v; - } - - // Mutable pointer to the field. - pub fn mut_constraints(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.constraints - } - - // Take field - pub fn take_constraints(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.constraints, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListConstraintsResponse { - fn is_initialized(&self) -> bool { - for v in &self.constraints { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.constraints)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.constraints { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.constraints { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListConstraintsResponse { - ListConstraintsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "constraints", - |m: &ListConstraintsResponse| { &m.constraints }, - |m: &mut ListConstraintsResponse| { &mut m.constraints }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListConstraintsResponse| { &m.next_page_token }, - |m: &mut ListConstraintsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListConstraintsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListConstraintsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListConstraintsResponse::new) - } -} - -impl ::protobuf::Clear for ListConstraintsResponse { - fn clear(&mut self) { - self.constraints.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListConstraintsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListConstraintsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPoliciesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPoliciesRequest { - fn default() -> &'a ListPoliciesRequest { - ::default_instance() - } -} - -impl ListPoliciesRequest { - pub fn new() -> ListPoliciesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPoliciesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPoliciesRequest { - ListPoliciesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListPoliciesRequest| { &m.parent }, - |m: &mut ListPoliciesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListPoliciesRequest| { &m.page_size }, - |m: &mut ListPoliciesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListPoliciesRequest| { &m.page_token }, - |m: &mut ListPoliciesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPoliciesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPoliciesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPoliciesRequest::new) - } -} - -impl ::protobuf::Clear for ListPoliciesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPoliciesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPoliciesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPoliciesResponse { - // message fields - pub policies: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPoliciesResponse { - fn default() -> &'a ListPoliciesResponse { - ::default_instance() - } -} - -impl ListPoliciesResponse { - pub fn new() -> ListPoliciesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.orgpolicy.v2.Policy policies = 1; - - - pub fn get_policies(&self) -> &[Policy] { - &self.policies - } - pub fn clear_policies(&mut self) { - self.policies.clear(); - } - - // Param is passed by value, moved - pub fn set_policies(&mut self, v: ::protobuf::RepeatedField) { - self.policies = v; - } - - // Mutable pointer to the field. - pub fn mut_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.policies - } - - // Take field - pub fn take_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.policies, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPoliciesResponse { - fn is_initialized(&self) -> bool { - for v in &self.policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.policies)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.policies { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPoliciesResponse { - ListPoliciesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policies", - |m: &ListPoliciesResponse| { &m.policies }, - |m: &mut ListPoliciesResponse| { &mut m.policies }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListPoliciesResponse| { &m.next_page_token }, - |m: &mut ListPoliciesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPoliciesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPoliciesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPoliciesResponse::new) - } -} - -impl ::protobuf::Clear for ListPoliciesResponse { - fn clear(&mut self) { - self.policies.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPoliciesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPoliciesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetPolicyRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetPolicyRequest { - fn default() -> &'a GetPolicyRequest { - ::default_instance() - } -} - -impl GetPolicyRequest { - pub fn new() -> GetPolicyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetPolicyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetPolicyRequest { - GetPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetPolicyRequest| { &m.name }, - |m: &mut GetPolicyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetPolicyRequest::new) - } -} - -impl ::protobuf::Clear for GetPolicyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetEffectivePolicyRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetEffectivePolicyRequest { - fn default() -> &'a GetEffectivePolicyRequest { - ::default_instance() - } -} - -impl GetEffectivePolicyRequest { - pub fn new() -> GetEffectivePolicyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetEffectivePolicyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetEffectivePolicyRequest { - GetEffectivePolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetEffectivePolicyRequest| { &m.name }, - |m: &mut GetEffectivePolicyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetEffectivePolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetEffectivePolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetEffectivePolicyRequest::new) - } -} - -impl ::protobuf::Clear for GetEffectivePolicyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetEffectivePolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetEffectivePolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreatePolicyRequest { - // message fields - pub parent: ::std::string::String, - pub policy: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreatePolicyRequest { - fn default() -> &'a CreatePolicyRequest { - ::default_instance() - } -} - -impl CreatePolicyRequest { - pub fn new() -> CreatePolicyRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.orgpolicy.v2.Policy policy = 3; - - - pub fn get_policy(&self) -> &Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut Policy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> Policy { - self.policy.take().unwrap_or_else(|| Policy::new()) - } -} - -impl ::protobuf::Message for CreatePolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreatePolicyRequest { - CreatePolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreatePolicyRequest| { &m.parent }, - |m: &mut CreatePolicyRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &CreatePolicyRequest| { &m.policy }, - |m: &mut CreatePolicyRequest| { &mut m.policy }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreatePolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreatePolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreatePolicyRequest::new) - } -} - -impl ::protobuf::Clear for CreatePolicyRequest { - fn clear(&mut self) { - self.parent.clear(); - self.policy.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreatePolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreatePolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdatePolicyRequest { - // message fields - pub policy: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdatePolicyRequest { - fn default() -> &'a UpdatePolicyRequest { - ::default_instance() - } -} - -impl UpdatePolicyRequest { - pub fn new() -> UpdatePolicyRequest { - ::std::default::Default::default() - } - - // .google.cloud.orgpolicy.v2.Policy policy = 1; - - - pub fn get_policy(&self) -> &Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut Policy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> Policy { - self.policy.take().unwrap_or_else(|| Policy::new()) - } - - // .google.protobuf.FieldMask update_mask = 3; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdatePolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdatePolicyRequest { - UpdatePolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &UpdatePolicyRequest| { &m.policy }, - |m: &mut UpdatePolicyRequest| { &mut m.policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdatePolicyRequest| { &m.update_mask }, - |m: &mut UpdatePolicyRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdatePolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdatePolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdatePolicyRequest::new) - } -} - -impl ::protobuf::Clear for UpdatePolicyRequest { - fn clear(&mut self) { - self.policy.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdatePolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdatePolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeletePolicyRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeletePolicyRequest { - fn default() -> &'a DeletePolicyRequest { - ::default_instance() - } -} - -impl DeletePolicyRequest { - pub fn new() -> DeletePolicyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeletePolicyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeletePolicyRequest { - DeletePolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeletePolicyRequest| { &m.name }, - |m: &mut DeletePolicyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeletePolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeletePolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeletePolicyRequest::new) - } -} - -impl ::protobuf::Clear for DeletePolicyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeletePolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeletePolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n)google/cloud/orgpolicy/v2/orgpolicy.proto\x12\x19google.cloud.orgpoli\ - cy.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\ - \x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\ - \x1a*google/cloud/orgpolicy/v2/constraint.proto\x1a\x1bgoogle/protobuf/e\ - mpty.proto\x1a\x20google/protobuf/field_mask.proto\x1a\x1fgoogle/protobu\ - f/timestamp.proto\x1a\x16google/type/expr.proto\"\x99\x03\n\x06Policy\ - \x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x05\x129\n\x04s\ - pec\x18\x02\x20\x01(\x0b2%.google.cloud.orgpolicy.v2.PolicySpecR\x04spec\ - \x12P\n\talternate\x18\x03\x20\x01(\x0b2..google.cloud.orgpolicy.v2.Alte\ - rnatePolicySpecR\talternateB\x02\x18\x01\x12G\n\x0cdry_run_spec\x18\x04\ - \x20\x01(\x0b2%.google.cloud.orgpolicy.v2.PolicySpecR\ndryRunSpec:\x9f\ - \x01\xeaA\x9b\x01\n\x1forgpolicy.googleapis.com/Policy\x12$projects/{pro\ - ject}/policies/{policy}\x12\"folders/{folder}/policies/{policy}\x12.orga\ - nizations/{organization}/policies/{policy}\"h\n\x13AlternatePolicySpec\ - \x12\x16\n\x06launch\x18\x01\x20\x01(\tR\x06launch\x129\n\x04spec\x18\ - \x02\x20\x01(\x0b2%.google.cloud.orgpolicy.v2.PolicySpecR\x04spec\"\xc5\ - \x04\n\nPolicySpec\x12\x12\n\x04etag\x18\x01\x20\x01(\tR\x04etag\x12@\n\ - \x0bupdate_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nup\ - dateTimeB\x03\xe0A\x03\x12F\n\x05rules\x18\x03\x20\x03(\x0b20.google.clo\ - ud.orgpolicy.v2.PolicySpec.PolicyRuleR\x05rules\x12.\n\x13inherit_from_p\ - arent\x18\x04\x20\x01(\x08R\x11inheritFromParent\x12\x14\n\x05reset\x18\ - \x05\x20\x01(\x08R\x05reset\x1a\xd2\x02\n\nPolicyRule\x12W\n\x06values\ - \x18\x01\x20\x01(\x0b2=.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.\ - StringValuesH\0R\x06values\x12\x1d\n\tallow_all\x18\x02\x20\x01(\x08H\0R\ - \x08allowAll\x12\x1b\n\x08deny_all\x18\x03\x20\x01(\x08H\0R\x07denyAll\ - \x12\x1a\n\x07enforce\x18\x04\x20\x01(\x08H\0R\x07enforce\x12/\n\tcondit\ - ion\x18\x05\x20\x01(\x0b2\x11.google.type.ExprR\tcondition\x1aZ\n\x0cStr\ - ingValues\x12%\n\x0eallowed_values\x18\x01\x20\x03(\tR\rallowedValues\ - \x12#\n\rdenied_values\x18\x02\x20\x03(\tR\x0cdeniedValuesB\x06\n\x04kin\ - d\"\x99\x01\n\x16ListConstraintsRequest\x12C\n\x06parent\x18\x01\x20\x01\ - (\tR\x06parentB+\xfaA%\x12#orgpolicy.googleapis.com/Constraint\xe0A\x02\ - \x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_\ - token\x18\x03\x20\x01(\tR\tpageToken\"\x8a\x01\n\x17ListConstraintsRespo\ - nse\x12G\n\x0bconstraints\x18\x01\x20\x03(\x0b2%.google.cloud.orgpolicy.\ - v2.ConstraintR\x0bconstraints\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\ - \tR\rnextPageToken\"\x92\x01\n\x13ListPoliciesRequest\x12?\n\x06parent\ - \x18\x01\x20\x01(\tR\x06parentB'\xfaA!\x12\x1forgpolicy.googleapis.com/P\ - olicy\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\ - \x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"}\n\x14ListPolici\ - esResponse\x12=\n\x08policies\x18\x01\x20\x03(\x0b2!.google.cloud.orgpol\ - icy.v2.PolicyR\x08policies\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\ - \rnextPageToken\"O\n\x10GetPolicyRequest\x12;\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB'\xfaA!\n\x1forgpolicy.googleapis.com/Policy\xe0A\x02\"X\n\ - \x19GetEffectivePolicyRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04name\ - B'\xfaA!\n\x1forgpolicy.googleapis.com/Policy\xe0A\x02\"\x96\x01\n\x13Cr\ - eatePolicyRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\ - \x12\x1forgpolicy.googleapis.com/Policy\xe0A\x02\x12>\n\x06policy\x18\ - \x03\x20\x01(\x0b2!.google.cloud.orgpolicy.v2.PolicyR\x06policyB\x03\xe0\ - A\x02\"\x92\x01\n\x13UpdatePolicyRequest\x12>\n\x06policy\x18\x01\x20\ - \x01(\x0b2!.google.cloud.orgpolicy.v2.PolicyR\x06policyB\x03\xe0A\x02\ - \x12;\n\x0bupdate_mask\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.FieldMa\ - skR\nupdateMask\"R\n\x13DeletePolicyRequest\x12;\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB'\xfaA!\n\x1forgpolicy.googleapis.com/Policy\xe0A\x022\ - \xbd\x0e\n\tOrgPolicy\x12\x81\x02\n\x0fListConstraints\x121.google.cloud\ - .orgpolicy.v2.ListConstraintsRequest\x1a2.google.cloud.orgpolicy.v2.List\ - ConstraintsResponse\"\x86\x01\x82\xd3\xe4\x93\x02w\x12#/v2/{parent=proje\ - cts/*}/constraintsZ$\x12\"/v2/{parent=folders/*}/constraintsZ*\x12(/v2/{\ - parent=organizations/*}/constraints\xdaA\x06parent\x12\xee\x01\n\x0cList\ - Policies\x12..google.cloud.orgpolicy.v2.ListPoliciesRequest\x1a/.google.\ - cloud.orgpolicy.v2.ListPoliciesResponse\"}\x82\xd3\xe4\x93\x02n\x12\x20/\ - v2/{parent=projects/*}/policiesZ!\x12\x1f/v2/{parent=folders/*}/policies\ - Z'\x12%/v2/{parent=organizations/*}/policies\xdaA\x06parent\x12\xd8\x01\ - \n\tGetPolicy\x12+.google.cloud.orgpolicy.v2.GetPolicyRequest\x1a!.googl\ - e.cloud.orgpolicy.v2.Policy\"{\x82\xd3\xe4\x93\x02n\x12\x20/v2/{name=pro\ - jects/*/policies/*}Z!\x12\x1f/v2/{name=folders/*/policies/*}Z'\x12%/v2/{\ - name=organizations/*/policies/*}\xdaA\x04name\x12\xa5\x02\n\x12GetEffect\ - ivePolicy\x124.google.cloud.orgpolicy.v2.GetEffectivePolicyRequest\x1a!.\ - google.cloud.orgpolicy.v2.Policy\"\xb5\x01\x82\xd3\xe4\x93\x02\xa7\x01\ - \x123/v2/{name=projects/*/policies/*}:getEffectivePolicyZ4\x122/v2/{name\ - =folders/*/policies/*}:getEffectivePolicyZ:\x128/v2/{name=organizations/\ - */policies/*}:getEffectivePolicy\xdaA\x04name\x12\x81\x02\n\x0cCreatePol\ - icy\x12..google.cloud.orgpolicy.v2.CreatePolicyRequest\x1a!.google.cloud\ - .orgpolicy.v2.Policy\"\x9d\x01\x82\xd3\xe4\x93\x02\x86\x01\"\x20/v2/{par\ - ent=projects/*}/policies:\x06policyZ)\"\x1f/v2/{parent=folders/*}/polici\ - es:\x06policyZ/\"%/v2/{parent=organizations/*}/policies:\x06policy\xdaA\ - \rparent,policy\x12\x8f\x02\n\x0cUpdatePolicy\x12..google.cloud.orgpolic\ - y.v2.UpdatePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\xab\x01\ - \x82\xd3\xe4\x93\x02\x9b\x012'/v2/{policy.name=projects/*/policies/*}:\ - \x06policyZ02&/v2/{policy.name=folders/*/policies/*}:\x06policyZ62,/v2/{\ - policy.name=organizations/*/policies/*}:\x06policy\xdaA\x06policy\x12\ - \xd3\x01\n\x0cDeletePolicy\x12..google.cloud.orgpolicy.v2.DeletePolicyRe\ - quest\x1a\x16.google.protobuf.Empty\"{\x82\xd3\xe4\x93\x02n*\x20/v2/{nam\ - e=projects/*/policies/*}Z!*\x1f/v2/{name=folders/*/policies/*}Z'*%/v2/{n\ - ame=organizations/*/policies/*}\xdaA\x04name\x1aL\xd2A.https://www.googl\ - eapis.com/auth/cloud-platform\xcaA\x18orgpolicy.googleapis.comB\xc5\x01\ - \n\x1dcom.google.cloud.orgpolicy.v2B\x0eOrgPolicyProtoP\x01Z;cloud.googl\ - e.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud\ - .OrgPolicy.V2\xca\x02\x19Google\\Cloud\\OrgPolicy\\V2\xea\x02\x1cGoogle:\ - :Cloud::OrgPolicy::V2J\xc0}\n\x07\x12\x05\x0e\0\xdd\x03\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\"\n\t\n\x02\x03\0\x12\x03\ - \x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0\ - )\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\04\n\t\ - \n\x02\x03\x05\x12\x03\x17\0%\n\t\n\x02\x03\x06\x12\x03\x18\0*\n\t\n\x02\ - \x03\x07\x12\x03\x19\0)\n\t\n\x02\x03\x08\x12\x03\x1a\0\x20\n\x08\n\x01\ - \x08\x12\x03\x1c\06\n\t\n\x02\x08%\x12\x03\x1c\06\n\x08\n\x01\x08\x12\ - \x03\x1d\0R\n\t\n\x02\x08\x0b\x12\x03\x1d\0R\n\x08\n\x01\x08\x12\x03\x1e\ - \0\"\n\t\n\x02\x08\n\x12\x03\x1e\0\"\n\x08\n\x01\x08\x12\x03\x1f\0/\n\t\ - \n\x02\x08\x08\x12\x03\x1f\0/\n\x08\n\x01\x08\x12\x03\x20\06\n\t\n\x02\ - \x08\x01\x12\x03\x20\06\n\x08\n\x01\x08\x12\x03!\06\n\t\n\x02\x08)\x12\ - \x03!\06\n\x08\n\x01\x08\x12\x03\"\05\n\t\n\x02\x08-\x12\x03\"\05\n\xf2\ - \x07\n\x02\x06\0\x12\x058\0\xae\x01\x01\x1a\xe4\x07\x20An\x20interface\ - \x20for\x20managing\x20organization\x20policies.\n\n\x20The\x20Cloud\x20\ - Org\x20Policy\x20service\x20provides\x20a\x20simple\x20mechanism\x20for\ - \x20organizations\x20to\n\x20restrict\x20the\x20allowed\x20configuration\ - s\x20across\x20their\x20entire\x20Cloud\x20Resource\n\x20hierarchy.\n\n\ - \x20You\x20can\x20use\x20a\x20`policy`\x20to\x20configure\x20restriction\ - s\x20in\x20Cloud\x20resources.\x20For\n\x20example,\x20you\x20can\x20enf\ - orce\x20a\x20`policy`\x20that\x20restricts\x20which\x20Google\n\x20Cloud\ - \x20Platform\x20APIs\x20can\x20be\x20activated\x20in\x20a\x20certain\x20\ - part\x20of\x20your\x20resource\n\x20hierarchy,\x20or\x20prevents\x20seri\ - al\x20port\x20access\x20to\x20VM\x20instances\x20in\x20a\x20particular\n\ - \x20folder.\n\n\x20`Policies`\x20are\x20inherited\x20down\x20through\x20\ - the\x20resource\x20hierarchy.\x20A\x20`policy`\n\x20applied\x20to\x20a\ - \x20parent\x20resource\x20automatically\x20applies\x20to\x20all\x20its\ - \x20child\x20resources\n\x20unless\x20overridden\x20with\x20a\x20`policy\ - `\x20lower\x20in\x20the\x20hierarchy.\n\n\x20A\x20`constraint`\x20define\ - s\x20an\x20aspect\x20of\x20a\x20resource's\x20configuration\x20that\x20c\ - an\x20be\n\x20controlled\x20by\x20an\x20organization's\x20policy\x20admi\ - nistrator.\x20`Policies`\x20are\x20a\n\x20collection\x20of\x20`constrain\ - ts`\x20that\x20defines\x20their\x20allowable\x20configuration\x20on\x20a\ - \n\x20particular\x20resource\x20and\x20its\x20child\x20resources.\n\n\n\ - \n\x03\x06\0\x01\x12\x038\x08\x11\n\n\n\x03\x06\0\x03\x12\x039\x02@\n\ - \x0c\n\x05\x06\0\x03\x99\x08\x12\x039\x02@\n\x0b\n\x03\x06\0\x03\x12\x04\ - :\x02;7\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04:\x02;7\nT\n\x04\x06\0\x02\0\ - \x12\x04>\x02F\x03\x1aF\x20Lists\x20`Constraints`\x20that\x20could\x20be\ - \x20applied\x20on\x20the\x20specified\x20resource.\n\n\x0c\n\x05\x06\0\ - \x02\0\x01\x12\x03>\x06\x15\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03>\x16,\n\ - \x0c\n\x05\x06\0\x02\0\x03\x12\x03?\x0f&\n\r\n\x05\x06\0\x02\0\x04\x12\ - \x04@\x04D\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04@\x04D\x06\ - \n\x0c\n\x05\x06\0\x02\0\x04\x12\x03E\x044\n\x0f\n\x08\x06\0\x02\0\x04\ - \x9b\x08\0\x12\x03E\x044\nT\n\x04\x06\0\x02\x01\x12\x04I\x02P\x03\x1aF\ - \x20Retrieves\x20all\x20of\x20the\x20`Policies`\x20that\x20exist\x20on\ - \x20a\x20particular\x20resource.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\ - I\x06\x12\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03I\x13&\n\x0c\n\x05\x06\0\ - \x02\x01\x03\x12\x03I1E\n\r\n\x05\x06\0\x02\x01\x04\x12\x04J\x04N\x06\n\ - \x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04J\x04N\x06\n\x0c\n\x05\ - \x06\0\x02\x01\x04\x12\x03O\x044\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\ - \x12\x03O\x044\n\xd3\x01\n\x04\x06\0\x02\x02\x12\x04W\x02^\x03\x1a\xc4\ - \x01\x20Gets\x20a\x20`Policy`\x20on\x20a\x20resource.\n\n\x20If\x20no\ - \x20`Policy`\x20is\x20set\x20on\x20the\x20resource,\x20NOT_FOUND\x20is\ - \x20returned.\x20The\n\x20`etag`\x20value\x20can\x20be\x20used\x20with\ - \x20`UpdatePolicy()`\x20to\x20update\x20a\n\x20`Policy`\x20during\x20rea\ - d-modify-write.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03W\x06\x0f\n\x0c\n\ - \x05\x06\0\x02\x02\x02\x12\x03W\x10\x20\n\x0c\n\x05\x06\0\x02\x02\x03\ - \x12\x03W+1\n\r\n\x05\x06\0\x02\x02\x04\x12\x04X\x04\\\x06\n\x11\n\t\x06\ - \0\x02\x02\x04\xb0\xca\xbc\"\x12\x04X\x04\\\x06\n\x0c\n\x05\x06\0\x02\ - \x02\x04\x12\x03]\x042\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03]\ - \x042\n\xf7\x02\n\x04\x06\0\x02\x03\x12\x04f\x02q\x03\x1a\xe8\x02\x20Get\ - s\x20the\x20effective\x20`Policy`\x20on\x20a\x20resource.\x20This\x20is\ - \x20the\x20result\x20of\x20merging\n\x20`Policies`\x20in\x20the\x20resou\ - rce\x20hierarchy\x20and\x20evaluating\x20conditions.\x20The\n\x20returne\ - d\x20`Policy`\x20will\x20not\x20have\x20an\x20`etag`\x20or\x20`condition\ - `\x20set\x20because\x20it\x20is\n\x20a\x20computed\x20`Policy`\x20across\ - \x20multiple\x20resources.\n\x20Subtrees\x20of\x20Resource\x20Manager\ - \x20resource\x20hierarchy\x20with\x20'under:'\x20prefix\x20will\n\x20not\ - \x20be\x20expanded.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03f\x06\x18\n\ - \x0c\n\x05\x06\0\x02\x03\x02\x12\x03f\x192\n\x0c\n\x05\x06\0\x02\x03\x03\ - \x12\x03f=C\n\r\n\x05\x06\0\x02\x03\x04\x12\x04g\x04o\x06\n\x11\n\t\x06\ - \0\x02\x03\x04\xb0\xca\xbc\"\x12\x04g\x04o\x06\n\x0c\n\x05\x06\0\x02\x03\ - \x04\x12\x03p\x042\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03p\x042\ - \n\x87\x02\n\x04\x06\0\x02\x04\x12\x05y\x02\x87\x01\x03\x1a\xf7\x01\x20C\ - reates\x20a\x20Policy.\n\n\x20Returns\x20a\x20`google.rpc.Status`\x20wit\ - h\x20`google.rpc.Code.NOT_FOUND`\x20if\x20the\n\x20constraint\x20does\ - \x20not\x20exist.\n\x20Returns\x20a\x20`google.rpc.Status`\x20with\x20`g\ - oogle.rpc.Code.ALREADY_EXISTS`\x20if\x20the\n\x20policy\x20already\x20ex\ - ists\x20on\x20the\x20given\x20Cloud\x20resource.\n\n\x0c\n\x05\x06\0\x02\ - \x04\x01\x12\x03y\x06\x12\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03y\x13&\n\ - \x0c\n\x05\x06\0\x02\x04\x03\x12\x03y17\n\x0e\n\x05\x06\0\x02\x04\x04\ - \x12\x05z\x04\x85\x01\x06\n\x12\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\ - \x05z\x04\x85\x01\x06\n\r\n\x05\x06\0\x02\x04\x04\x12\x04\x86\x01\x04;\n\ - \x10\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x04\x86\x01\x04;\n\xf1\x02\n\ - \x04\x06\0\x02\x05\x12\x06\x92\x01\x02\xa0\x01\x03\x1a\xe0\x02\x20Update\ - s\x20a\x20Policy.\n\n\x20Returns\x20a\x20`google.rpc.Status`\x20with\x20\ - `google.rpc.Code.NOT_FOUND`\x20if\x20the\n\x20constraint\x20or\x20the\ - \x20policy\x20do\x20not\x20exist.\n\x20Returns\x20a\x20`google.rpc.Statu\ - s`\x20with\x20`google.rpc.Code.ABORTED`\x20if\x20the\x20etag\n\x20suppli\ - ed\x20in\x20the\x20request\x20does\x20not\x20match\x20the\x20persisted\ - \x20etag\x20of\x20the\x20policy\n\n\x20Note:\x20the\x20supplied\x20polic\ - y\x20will\x20perform\x20a\x20full\x20overwrite\x20of\x20all\n\x20fields.\ - \n\n\r\n\x05\x06\0\x02\x05\x01\x12\x04\x92\x01\x06\x12\n\r\n\x05\x06\0\ - \x02\x05\x02\x12\x04\x92\x01\x13&\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\ - \x92\x0117\n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x93\x01\x04\x9e\x01\x06\ - \n\x13\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x93\x01\x04\x9e\x01\ - \x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\x9f\x01\x044\n\x10\n\x08\x06\0\ - \x02\x05\x04\x9b\x08\0\x12\x04\x9f\x01\x044\n\x96\x01\n\x04\x06\0\x02\ - \x06\x12\x06\xa6\x01\x02\xad\x01\x03\x1a\x85\x01\x20Deletes\x20a\x20Poli\ - cy.\n\n\x20Returns\x20a\x20`google.rpc.Status`\x20with\x20`google.rpc.Co\ - de.NOT_FOUND`\x20if\x20the\n\x20constraint\x20or\x20Org\x20Policy\x20doe\ - s\x20not\x20exist.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\xa6\x01\x06\x12\ - \n\r\n\x05\x06\0\x02\x06\x02\x12\x04\xa6\x01\x13&\n\r\n\x05\x06\0\x02\ - \x06\x03\x12\x04\xa6\x011F\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\xa7\x01\ - \x04\xab\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\xa7\ - \x01\x04\xab\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\xac\x01\x042\n\ - \x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\xac\x01\x042\n\x8d\x01\n\ - \x02\x04\0\x12\x06\xb2\x01\0\xd2\x01\x01\x1a\x7f\x20Defines\x20a\x20Clou\ - d\x20Organization\x20`Policy`\x20which\x20is\x20used\x20to\x20specify\ - \x20`Constraints`\n\x20for\x20configurations\x20of\x20Cloud\x20Platform\ - \x20resources.\n\n\x0b\n\x03\x04\0\x01\x12\x04\xb2\x01\x08\x0e\n\r\n\x03\ - \x04\0\x07\x12\x06\xb3\x01\x02\xb8\x01\x04\n\x0f\n\x05\x04\0\x07\x9d\x08\ - \x12\x06\xb3\x01\x02\xb8\x01\x04\n\xdc\x04\n\x04\x04\0\x02\0\x12\x04\xc6\ - \x01\x02<\x1a\xcd\x04\x20Immutable.\x20The\x20resource\x20name\x20of\x20\ - the\x20Policy.\x20Must\x20be\x20one\x20of\x20the\x20following\n\x20forms\ - ,\x20where\x20constraint_name\x20is\x20the\x20name\x20of\x20the\x20const\ - raint\x20which\x20this\n\x20Policy\x20configures:\n\x20*\x20`projects/{p\ - roject_number}/policies/{constraint_name}`\n\x20*\x20`folders/{folder_id\ - }/policies/{constraint_name}`\n\x20*\x20`organizations/{organization_id}\ - /policies/{constraint_name}`\n\n\x20For\x20example,\x20\"projects/123/po\ - licies/compute.disableSerialPortAccess\".\n\n\x20Note:\x20`projects/{pro\ - ject_id}/policies/{constraint_name}`\x20is\x20also\x20an\n\x20acceptable\ - \x20name\x20for\x20API\x20requests,\x20but\x20responses\x20will\x20retur\ - n\x20the\x20name\x20using\n\x20the\x20equivalent\x20project\x20number.\n\ - \n\r\n\x05\x04\0\x02\0\x05\x12\x04\xc6\x01\x02\x08\n\r\n\x05\x04\0\x02\0\ - \x01\x12\x04\xc6\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xc6\x01\x10\ - \x11\n\r\n\x05\x04\0\x02\0\x08\x12\x04\xc6\x01\x12;\n\x10\n\x08\x04\0\ - \x02\0\x08\x9c\x08\0\x12\x04\xc6\x01\x13:\n@\n\x04\x04\0\x02\x01\x12\x04\ - \xc9\x01\x02\x16\x1a2\x20Basic\x20information\x20about\x20the\x20Organiz\ - ation\x20Policy.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xc9\x01\x02\x0c\n\ - \r\n\x05\x04\0\x02\x01\x01\x12\x04\xc9\x01\r\x11\n\r\n\x05\x04\0\x02\x01\ - \x03\x12\x04\xc9\x01\x14\x15\n\x1b\n\x04\x04\0\x02\x02\x12\x04\xcc\x01\ - \x028\x1a\r\x20Deprecated.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\xcc\x01\ - \x02\x15\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xcc\x01\x16\x1f\n\r\n\x05\ - \x04\0\x02\x02\x03\x12\x04\xcc\x01\"#\n\r\n\x05\x04\0\x02\x02\x08\x12\ - \x04\xcc\x01$7\n\x0e\n\x06\x04\0\x02\x02\x08\x03\x12\x04\xcc\x01%6\n\xa3\ - \x01\n\x04\x04\0\x02\x03\x12\x04\xd1\x01\x02\x1e\x1a\x94\x01\x20dry-run\ - \x20policy.\n\x20Audit-only\x20policy,\x20can\x20be\x20used\x20to\x20mon\ - itor\x20how\x20the\x20policy\x20would\x20have\n\x20impacted\x20the\x20ex\ - isting\x20and\x20future\x20resources\x20if\x20it's\x20enforced.\n\n\r\n\ - \x05\x04\0\x02\x03\x06\x12\x04\xd1\x01\x02\x0c\n\r\n\x05\x04\0\x02\x03\ - \x01\x12\x04\xd1\x01\r\x19\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xd1\x01\ - \x1c\x1d\n\x96\x01\n\x02\x04\x01\x12\x06\xd6\x01\0\xde\x01\x01\x1a\x87\ - \x01\x20Similar\x20to\x20PolicySpec\x20but\x20with\x20an\x20extra\x20'la\ - unch'\x20field\x20for\x20launch\x20reference.\n\x20The\x20PolicySpec\x20\ - here\x20is\x20specific\x20for\x20dry-run/darklaunch.\n\n\x0b\n\x03\x04\ - \x01\x01\x12\x04\xd6\x01\x08\x1b\n\x97\x01\n\x04\x04\x01\x02\0\x12\x04\ - \xda\x01\x02\x14\x1a\x88\x01\x20Reference\x20to\x20the\x20launch\x20that\ - \x20will\x20be\x20used\x20while\x20audit\x20logging\x20and\x20to\n\x20co\ - ntrol\x20the\x20launch.\n\x20Should\x20be\x20set\x20only\x20in\x20the\ - \x20alternate\x20policy.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xda\x01\ - \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xda\x01\t\x0f\n\r\n\x05\x04\ - \x01\x02\0\x03\x12\x04\xda\x01\x12\x13\nT\n\x04\x04\x01\x02\x01\x12\x04\ - \xdd\x01\x02\x16\x1aF\x20Specify\x20`Constraint`\x20for\x20configuration\ - s\x20of\x20Cloud\x20Platform\x20resources.\n\n\r\n\x05\x04\x01\x02\x01\ - \x06\x12\x04\xdd\x01\x02\x0c\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xdd\ - \x01\r\x11\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xdd\x01\x14\x15\n\x92\ - \x01\n\x02\x04\x02\x12\x06\xe2\x01\0\xcb\x02\x01\x1a\x83\x01\x20Defines\ - \x20a\x20Cloud\x20Organization\x20`PolicySpec`\x20which\x20is\x20used\ - \x20to\x20specify\n\x20`Constraints`\x20for\x20configurations\x20of\x20C\ - loud\x20Platform\x20resources.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xe2\x01\ - \x08\x12\n5\n\x04\x04\x02\x03\0\x12\x06\xe4\x01\x02\x9c\x02\x03\x1a%\x20\ - A\x20rule\x20used\x20to\x20express\x20this\x20policy.\n\n\r\n\x05\x04\ - \x02\x03\0\x01\x12\x04\xe4\x01\n\x14\n\x8c\x07\n\x06\x04\x02\x03\0\x03\0\ - \x12\x06\xf4\x01\x04\xfa\x01\x05\x1a\xf9\x06\x20A\x20message\x20that\x20\ - holds\x20specific\x20allowed\x20and\x20denied\x20values.\n\x20This\x20me\ - ssage\x20can\x20define\x20specific\x20values\x20and\x20subtrees\x20of\ - \x20Cloud\x20Resource\n\x20Manager\x20resource\x20hierarchy\x20(`Organiz\ - ations`,\x20`Folders`,\x20`Projects`)\x20that\n\x20are\x20allowed\x20or\ - \x20denied.\x20This\x20is\x20achieved\x20by\x20using\x20the\x20`under:`\ - \x20and\n\x20optional\x20`is:`\x20prefixes.\n\x20The\x20`under:`\x20pref\ - ix\x20is\x20used\x20to\x20denote\x20resource\x20subtree\x20values.\n\x20\ - The\x20`is:`\x20prefix\x20is\x20used\x20to\x20denote\x20specific\x20valu\ - es,\x20and\x20is\x20required\x20only\n\x20if\x20the\x20value\x20contains\ - \x20a\x20\":\".\x20Values\x20prefixed\x20with\x20\"is:\"\x20are\x20treat\ - ed\x20the\n\x20same\x20as\x20values\x20with\x20no\x20prefix.\n\x20Ancest\ - ry\x20subtrees\x20must\x20be\x20in\x20one\x20of\x20the\x20following\x20f\ - ormats:\n\x20\x20\x20\x20\x20-\x20\"projects/\",\x20e.g.\x20\ - \"projects/tokyo-rain-123\"\n\x20\x20\x20\x20\x20-\x20\"folders/\",\x20e.g.\x20\"folders/1234\"\n\x20\x20\x20\x20\x20-\x20\"organizat\ - ions/\",\x20e.g.\x20\"organizations/1234\"\n\x20The\x20\ - `supports_under`\x20field\x20of\x20the\x20associated\x20`Constraint`\x20\ - \x20defines\n\x20whether\x20ancestry\x20prefixes\x20can\x20be\x20used.\n\ - \n\x0f\n\x07\x04\x02\x03\0\x03\0\x01\x12\x04\xf4\x01\x0c\x18\n<\n\x08\ - \x04\x02\x03\0\x03\0\x02\0\x12\x04\xf6\x01\x06)\x1a*\x20List\x20of\x20va\ - lues\x20allowed\x20at\x20this\x20resource.\n\n\x11\n\t\x04\x02\x03\0\x03\ - \0\x02\0\x04\x12\x04\xf6\x01\x06\x0e\n\x11\n\t\x04\x02\x03\0\x03\0\x02\0\ - \x05\x12\x04\xf6\x01\x0f\x15\n\x11\n\t\x04\x02\x03\0\x03\0\x02\0\x01\x12\ - \x04\xf6\x01\x16$\n\x11\n\t\x04\x02\x03\0\x03\0\x02\0\x03\x12\x04\xf6\ - \x01'(\n;\n\x08\x04\x02\x03\0\x03\0\x02\x01\x12\x04\xf9\x01\x06(\x1a)\ - \x20List\x20of\x20values\x20denied\x20at\x20this\x20resource.\n\n\x11\n\ - \t\x04\x02\x03\0\x03\0\x02\x01\x04\x12\x04\xf9\x01\x06\x0e\n\x11\n\t\x04\ - \x02\x03\0\x03\0\x02\x01\x05\x12\x04\xf9\x01\x0f\x15\n\x11\n\t\x04\x02\ - \x03\0\x03\0\x02\x01\x01\x12\x04\xf9\x01\x16#\n\x11\n\t\x04\x02\x03\0\ - \x03\0\x02\x01\x03\x12\x04\xf9\x01&'\n\x10\n\x06\x04\x02\x03\0\x08\0\x12\ - \x06\xfc\x01\x04\x8d\x02\x05\n\x0f\n\x07\x04\x02\x03\0\x08\0\x01\x12\x04\ - \xfc\x01\n\x0e\n~\n\x06\x04\x02\x03\0\x02\0\x12\x04\xff\x01\x06\x1e\x1an\ - \x20List\x20of\x20values\x20to\x20be\x20used\x20for\x20this\x20PolicyRul\ - e.\x20This\x20field\x20can\x20be\x20set\n\x20only\x20in\x20Policies\x20f\ - or\x20list\x20constraints.\n\n\x0f\n\x07\x04\x02\x03\0\x02\0\x06\x12\x04\ - \xff\x01\x06\x12\n\x0f\n\x07\x04\x02\x03\0\x02\0\x01\x12\x04\xff\x01\x13\ - \x19\n\x0f\n\x07\x04\x02\x03\0\x02\0\x03\x12\x04\xff\x01\x1c\x1d\n\x87\ - \x01\n\x06\x04\x02\x03\0\x02\x01\x12\x04\x83\x02\x06\x19\x1aw\x20Setting\ - \x20this\x20to\x20true\x20means\x20that\x20all\x20values\x20are\x20allow\ - ed.\x20This\x20field\x20can\n\x20be\x20set\x20only\x20in\x20Policies\x20\ - for\x20list\x20constraints.\n\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x05\x12\ - \x04\x83\x02\x06\n\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x01\x12\x04\x83\x02\ - \x0b\x14\n\x0f\n\x07\x04\x02\x03\0\x02\x01\x03\x12\x04\x83\x02\x17\x18\n\ - \x86\x01\n\x06\x04\x02\x03\0\x02\x02\x12\x04\x87\x02\x06\x18\x1av\x20Set\ - ting\x20this\x20to\x20true\x20means\x20that\x20all\x20values\x20are\x20d\ - enied.\x20This\x20field\x20can\n\x20be\x20set\x20only\x20in\x20Policies\ - \x20for\x20list\x20constraints.\n\n\x0f\n\x07\x04\x02\x03\0\x02\x02\x05\ - \x12\x04\x87\x02\x06\n\n\x0f\n\x07\x04\x02\x03\0\x02\x02\x01\x12\x04\x87\ - \x02\x0b\x13\n\x0f\n\x07\x04\x02\x03\0\x02\x02\x03\x12\x04\x87\x02\x16\ - \x17\n\xb0\x01\n\x06\x04\x02\x03\0\x02\x03\x12\x04\x8c\x02\x06\x17\x1a\ - \x9f\x01\x20If\x20`true`,\x20then\x20the\x20`Policy`\x20is\x20enforced.\ - \x20If\x20`false`,\x20then\x20any\n\x20configuration\x20is\x20acceptable\ - .\n\x20This\x20field\x20can\x20be\x20set\x20only\x20in\x20Policies\x20fo\ - r\x20boolean\x20constraints.\n\n\x0f\n\x07\x04\x02\x03\0\x02\x03\x05\x12\ - \x04\x8c\x02\x06\n\n\x0f\n\x07\x04\x02\x03\0\x02\x03\x01\x12\x04\x8c\x02\ - \x0b\x12\n\x0f\n\x07\x04\x02\x03\0\x02\x03\x03\x12\x04\x8c\x02\x15\x16\n\ - \xb9\x05\n\x06\x04\x02\x03\0\x02\x04\x12\x04\x9b\x02\x04#\x1a\xa8\x05\ - \x20A\x20condition\x20which\x20determines\x20whether\x20this\x20rule\x20\ - is\x20used\n\x20in\x20the\x20evaluation\x20of\x20the\x20policy.\x20When\ - \x20set,\x20the\x20`expression`\x20field\x20in\n\x20the\x20`Expr'\x20mus\ - t\x20include\x20from\x201\x20to\x2010\x20subexpressions,\x20joined\x20by\ - \x20the\x20\"||\"\n\x20or\x20\"&&\"\x20operators.\x20Each\x20subexpressi\ - on\x20must\x20be\x20of\x20the\x20form\n\x20\"resource.matchTag('\ - /tag_key_short_name,\n\x20'tag_value_short_name')\".\x20or\x20\"resource\ - .matchTagId('tagKeys/key_id',\n\x20'tagValues/value_id')\".\x20where\x20\ - key_name\x20and\x20value_name\x20are\x20the\x20resource\n\x20names\x20fo\ - r\x20Label\x20Keys\x20and\x20Values.\x20These\x20names\x20are\x20availab\ - le\x20from\x20the\x20Tag\n\x20Manager\x20Service.\x20An\x20example\x20ex\ - pression\x20is:\n\x20\"resource.matchTag('123456789/environment,\n\x20'p\ - rod')\".\x20or\x20\"resource.matchTagId('tagKeys/123',\n\x20'tagValues/4\ - 56')\".\n\n\x0f\n\x07\x04\x02\x03\0\x02\x04\x06\x12\x04\x9b\x02\x04\x14\ - \n\x0f\n\x07\x04\x02\x03\0\x02\x04\x01\x12\x04\x9b\x02\x15\x1e\n\x0f\n\ - \x07\x04\x02\x03\0\x02\x04\x03\x12\x04\x9b\x02!\"\n\xcd\x03\n\x04\x04\ - \x02\x02\0\x12\x04\xa9\x02\x02\x12\x1a\xbe\x03\x20An\x20opaque\x20tag\ - \x20indicating\x20the\x20current\x20version\x20of\x20the\x20`Policy`,\ - \x20used\x20for\n\x20concurrency\x20control.\n\n\x20This\x20field\x20is\ - \x20ignored\x20if\x20used\x20in\x20a\x20`CreatePolicy`\x20request.\n\n\ - \x20When\x20the\x20`Policy`\x20is\x20returned\x20from\x20either\x20a\x20\ - `GetPolicy`\x20or\x20a\n\x20`ListPolicies`\x20request,\x20this\x20`etag`\ - \x20indicates\x20the\x20version\x20of\x20the\n\x20current\x20`Policy`\ - \x20to\x20use\x20when\x20executing\x20a\x20read-modify-write\x20loop.\n\ - \n\x20When\x20the\x20`Policy`\x20is\x20returned\x20from\x20a\x20`GetEffe\ - ctivePolicy`\x20request,\x20the\n\x20`etag`\x20will\x20be\x20unset.\n\n\ - \r\n\x05\x04\x02\x02\0\x05\x12\x04\xa9\x02\x02\x08\n\r\n\x05\x04\x02\x02\ - \0\x01\x12\x04\xa9\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xa9\x02\ - \x10\x11\n\xb2\x01\n\x04\x04\x02\x02\x01\x12\x06\xae\x02\x02\xaf\x022\ - \x1a\xa1\x01\x20Output\x20only.\x20The\x20time\x20stamp\x20this\x20was\ - \x20previously\x20updated.\x20This\n\x20represents\x20the\x20last\x20tim\ - e\x20a\x20call\x20to\x20`CreatePolicy`\x20or\x20`UpdatePolicy`\x20was\n\ - \x20made\x20for\x20that\x20`Policy`.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\ - \x04\xae\x02\x02\x1b\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xae\x02\x1c'\ - \n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xae\x02*+\n\r\n\x05\x04\x02\x02\ - \x01\x08\x12\x04\xaf\x02\x061\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\ - \x12\x04\xaf\x02\x070\n\xb1\x03\n\x04\x04\x02\x02\x02\x12\x04\xb9\x02\ - \x02\x20\x1a\xa2\x03\x20Up\x20to\x2010\x20PolicyRules\x20are\x20allowed.\ - \n\n\x20In\x20Policies\x20for\x20boolean\x20constraints,\x20the\x20follo\ - wing\x20requirements\x20apply:\n\x20\x20\x20-\x20There\x20must\x20be\x20\ - one\x20and\x20only\x20one\x20PolicyRule\x20where\x20condition\x20is\x20u\ - nset.\n\x20\x20\x20-\x20BooleanPolicyRules\x20with\x20conditions\x20must\ - \x20set\x20`enforced`\x20to\x20the\x20opposite\n\x20\x20\x20\x20\x20of\ - \x20the\x20PolicyRule\x20without\x20a\x20condition.\n\x20\x20\x20-\x20Du\ - ring\x20policy\x20evaluation,\x20PolicyRules\x20with\x20conditions\x20th\ - at\x20are\n\x20\x20\x20\x20\x20true\x20for\x20a\x20target\x20resource\ - \x20take\x20precedence.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\xb9\x02\ - \x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xb9\x02\x0b\x15\n\r\n\x05\ - \x04\x02\x02\x02\x01\x12\x04\xb9\x02\x16\x1b\n\r\n\x05\x04\x02\x02\x02\ - \x03\x12\x04\xb9\x02\x1e\x1f\n\x92\x03\n\x04\x04\x02\x02\x03\x12\x04\xc2\ - \x02\x02\x1f\x1a\x83\x03\x20Determines\x20the\x20inheritance\x20behavior\ - \x20for\x20this\x20`Policy`.\n\n\x20If\x20`inherit_from_parent`\x20is\ - \x20true,\x20PolicyRules\x20set\x20higher\x20up\x20in\x20the\n\x20hierar\ - chy\x20(up\x20to\x20the\x20closest\x20root)\x20are\x20inherited\x20and\ - \x20present\x20in\x20the\n\x20effective\x20policy.\x20If\x20it\x20is\x20\ - false,\x20then\x20no\x20rules\x20are\x20inherited,\x20and\x20this\n\x20P\ - olicy\x20becomes\x20the\x20new\x20root\x20for\x20evaluation.\n\x20This\ - \x20field\x20can\x20be\x20set\x20only\x20for\x20Policies\x20which\x20con\ - figure\x20list\x20constraints.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\ - \xc2\x02\x02\x06\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xc2\x02\x07\x1a\n\ - \r\n\x05\x04\x02\x02\x03\x03\x12\x04\xc2\x02\x1d\x1e\n\xc0\x02\n\x04\x04\ - \x02\x02\x04\x12\x04\xca\x02\x02\x11\x1a\xb1\x02\x20Ignores\x20policies\ - \x20set\x20above\x20this\x20resource\x20and\x20restores\x20the\n\x20`con\ - straint_default`\x20enforcement\x20behavior\x20of\x20the\x20specific\x20\ - `Constraint`\x20at\n\x20this\x20resource.\n\x20This\x20field\x20can\x20b\ - e\x20set\x20in\x20policies\x20for\x20either\x20list\x20or\x20boolean\n\ - \x20constraints.\x20If\x20set,\x20`rules`\x20must\x20be\x20empty\x20and\ - \x20`inherit_from_parent`\n\x20must\x20be\x20set\x20to\x20false.\n\n\r\n\ - \x05\x04\x02\x02\x04\x05\x12\x04\xca\x02\x02\x06\n\r\n\x05\x04\x02\x02\ - \x04\x01\x12\x04\xca\x02\x07\x0c\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ - \xca\x02\x0f\x10\nx\n\x02\x04\x03\x12\x06\xcf\x02\0\xe5\x02\x01\x1aj\x20\ - The\x20request\x20sent\x20to\x20the\x20[ListConstraints]\n\x20[google.cl\ - oud.orgpolicy.v2.OrgPolicy.ListConstraints]\x20method.\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\xcf\x02\x08\x1e\n\xec\x01\n\x04\x04\x03\x02\0\x12\x06\ - \xd6\x02\x02\xdb\x02\x04\x1a\xdb\x01\x20Required.\x20The\x20Cloud\x20res\ - ource\x20that\x20parents\x20the\x20constraint.\x20Must\x20be\x20in\x20on\ - e\x20of\n\x20the\x20following\x20forms:\n\x20*\x20`projects/{project_num\ - ber}`\n\x20*\x20`projects/{project_id}`\n\x20*\x20`folders/{folder_id}`\ - \n\x20*\x20`organizations/{organization_id}`\n\n\r\n\x05\x04\x03\x02\0\ - \x05\x12\x04\xd6\x02\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd6\x02\ - \t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xd6\x02\x12\x13\n\x0f\n\x05\ - \x04\x03\x02\0\x08\x12\x06\xd6\x02\x14\xdb\x02\x03\n\x10\n\x08\x04\x03\ - \x02\0\x08\x9c\x08\0\x12\x04\xd7\x02\x04*\n\x11\n\x07\x04\x03\x02\0\x08\ - \x9f\x08\x12\x06\xd8\x02\x04\xda\x02\x05\n\xae\x01\n\x04\x04\x03\x02\x01\ - \x12\x04\xe0\x02\x02\x16\x1a\x9f\x01\x20Size\x20of\x20the\x20pages\x20to\ - \x20be\x20returned.\x20This\x20is\x20currently\x20unsupported\x20and\x20\ - will\n\x20be\x20ignored.\x20The\x20server\x20may\x20at\x20any\x20point\ - \x20start\x20using\x20this\x20field\x20to\x20limit\n\x20page\x20size.\n\ - \n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xe0\x02\x02\x07\n\r\n\x05\x04\x03\ - \x02\x01\x01\x12\x04\xe0\x02\x08\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\ - \x04\xe0\x02\x14\x15\n\xa3\x01\n\x04\x04\x03\x02\x02\x12\x04\xe4\x02\x02\ - \x18\x1a\x94\x01\x20Page\x20token\x20used\x20to\x20retrieve\x20the\x20ne\ - xt\x20page.\x20This\x20is\x20currently\x20unsupported\n\x20and\x20will\ - \x20be\x20ignored.\x20The\x20server\x20may\x20at\x20any\x20point\x20star\ - t\x20using\x20this\x20field.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xe4\ - \x02\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xe4\x02\t\x13\n\r\n\ - \x05\x04\x03\x02\x02\x03\x12\x04\xe4\x02\x16\x17\n\x7f\n\x02\x04\x04\x12\ - \x06\xe9\x02\0\xef\x02\x01\x1aq\x20The\x20response\x20returned\x20from\ - \x20the\x20[ListConstraints]\n\x20[google.cloud.orgpolicy.v2.OrgPolicy.L\ - istConstraints]\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xe9\x02\x08\ - \x1f\nZ\n\x04\x04\x04\x02\0\x12\x04\xeb\x02\x02&\x1aL\x20The\x20collecti\ - on\x20of\x20constraints\x20that\x20are\x20available\x20on\x20the\x20targ\ - eted\x20resource.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xeb\x02\x02\n\n\ - \r\n\x05\x04\x04\x02\0\x06\x12\x04\xeb\x02\x0b\x15\n\r\n\x05\x04\x04\x02\ - \0\x01\x12\x04\xeb\x02\x16!\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xeb\x02$\ - %\nV\n\x04\x04\x04\x02\x01\x12\x04\xee\x02\x02\x1d\x1aH\x20Page\x20token\ - \x20used\x20to\x20retrieve\x20the\x20next\x20page.\x20This\x20is\x20curr\ - ently\x20not\x20used.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xee\x02\ - \x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xee\x02\t\x18\n\r\n\x05\ - \x04\x04\x02\x01\x03\x12\x04\xee\x02\x1b\x1c\nr\n\x02\x04\x05\x12\x06\ - \xf3\x02\0\x8a\x03\x01\x1ad\x20The\x20request\x20sent\x20to\x20the\x20[L\ - istPolicies]\n\x20[google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies]\x20\ - method.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xf3\x02\x08\x1b\n\xae\x02\n\ - \x04\x04\x05\x02\0\x12\x06\xfb\x02\x02\x80\x03\x04\x1a\x9d\x02\x20Requir\ - ed.\x20The\x20target\x20Cloud\x20resource\x20that\x20parents\x20the\x20s\ - et\x20of\x20constraints\x20and\n\x20policies\x20that\x20will\x20be\x20re\ - turned\x20from\x20this\x20call.\x20Must\x20be\x20in\x20one\x20of\x20the\ - \n\x20following\x20forms:\n\x20*\x20`projects/{project_number}`\n\x20*\ - \x20`projects/{project_id}`\n\x20*\x20`folders/{folder_id}`\n\x20*\x20`o\ - rganizations/{organization_id}`\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ - \xfb\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xfb\x02\t\x0f\n\r\n\ - \x05\x04\x05\x02\0\x03\x12\x04\xfb\x02\x12\x13\n\x0f\n\x05\x04\x05\x02\0\ - \x08\x12\x06\xfb\x02\x14\x80\x03\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ - \x08\0\x12\x04\xfc\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ - \x06\xfd\x02\x04\xff\x02\x05\n\xae\x01\n\x04\x04\x05\x02\x01\x12\x04\x85\ - \x03\x02\x16\x1a\x9f\x01\x20Size\x20of\x20the\x20pages\x20to\x20be\x20re\ - turned.\x20This\x20is\x20currently\x20unsupported\x20and\x20will\n\x20be\ - \x20ignored.\x20The\x20server\x20may\x20at\x20any\x20point\x20start\x20u\ - sing\x20this\x20field\x20to\x20limit\n\x20page\x20size.\n\n\r\n\x05\x04\ - \x05\x02\x01\x05\x12\x04\x85\x03\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\ - \x12\x04\x85\x03\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x85\x03\ - \x14\x15\n\xa3\x01\n\x04\x04\x05\x02\x02\x12\x04\x89\x03\x02\x18\x1a\x94\ - \x01\x20Page\x20token\x20used\x20to\x20retrieve\x20the\x20next\x20page.\ - \x20This\x20is\x20currently\x20unsupported\n\x20and\x20will\x20be\x20ign\ - ored.\x20The\x20server\x20may\x20at\x20any\x20point\x20start\x20using\ - \x20this\x20field.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\x89\x03\x02\ - \x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\x89\x03\t\x13\n\r\n\x05\x04\ - \x05\x02\x02\x03\x12\x04\x89\x03\x16\x17\n\xb6\x01\n\x02\x04\x06\x12\x06\ - \x8f\x03\0\x97\x03\x01\x1a\xa7\x01\x20The\x20response\x20returned\x20fro\ - m\x20the\x20[ListPolicies]\n\x20[google.cloud.orgpolicy.v2.OrgPolicy.Lis\ - tPolicies]\x20method.\x20It\x20will\x20be\x20empty\n\x20if\x20no\x20`Pol\ - icies`\x20are\x20set\x20on\x20the\x20resource.\n\n\x0b\n\x03\x04\x06\x01\ - \x12\x04\x8f\x03\x08\x1c\nf\n\x04\x04\x06\x02\0\x12\x04\x92\x03\x02\x1f\ - \x1aX\x20All\x20`Policies`\x20that\x20exist\x20on\x20the\x20resource.\ - \x20It\x20will\x20be\x20empty\x20if\x20no\n\x20`Policies`\x20are\x20set.\ - \n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\x92\x03\x02\n\n\r\n\x05\x04\x06\ - \x02\0\x06\x12\x04\x92\x03\x0b\x11\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\ - \x92\x03\x12\x1a\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x92\x03\x1d\x1e\n\ - \x97\x01\n\x04\x04\x06\x02\x01\x12\x04\x96\x03\x02\x1d\x1a\x88\x01\x20Pa\ - ge\x20token\x20used\x20to\x20retrieve\x20the\x20next\x20page.\x20This\ - \x20is\x20currently\x20not\x20used,\x20but\n\x20the\x20server\x20may\x20\ - at\x20any\x20point\x20start\x20supplying\x20a\x20valid\x20token.\n\n\r\n\ - \x05\x04\x06\x02\x01\x05\x12\x04\x96\x03\x02\x08\n\r\n\x05\x04\x06\x02\ - \x01\x01\x12\x04\x96\x03\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x96\ - \x03\x1b\x1c\nl\n\x02\x04\x07\x12\x06\x9b\x03\0\xa4\x03\x01\x1a^\x20The\ - \x20request\x20sent\x20to\x20the\x20[GetPolicy]\n\x20[google.cloud.orgpo\ - licy.v2.OrgPolicy.GetPolicy]\x20method.\n\n\x0b\n\x03\x04\x07\x01\x12\ - \x04\x9b\x03\x08\x18\n_\n\x04\x04\x07\x02\0\x12\x06\x9e\x03\x02\xa3\x03\ - \x04\x1aO\x20Required.\x20Resource\x20name\x20of\x20the\x20policy.\x20Se\ - e\x20`Policy`\x20for\x20naming\n\x20requirements.\n\n\r\n\x05\x04\x07\ - \x02\0\x05\x12\x04\x9e\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\ - \x9e\x03\t\r\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x9e\x03\x10\x11\n\x0f\n\ - \x05\x04\x07\x02\0\x08\x12\x06\x9e\x03\x12\xa3\x03\x03\n\x10\n\x08\x04\ - \x07\x02\0\x08\x9c\x08\0\x12\x04\x9f\x03\x04*\n\x11\n\x07\x04\x07\x02\0\ - \x08\x9f\x08\x12\x06\xa0\x03\x04\xa2\x03\x05\n~\n\x02\x04\x08\x12\x06\ - \xa8\x03\0\xb0\x03\x01\x1ap\x20The\x20request\x20sent\x20to\x20the\x20[G\ - etEffectivePolicy]\n\x20[google.cloud.orgpolicy.v2.OrgPolicy.GetEffectiv\ - ePolicy]\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xa8\x03\x08!\n[\n\ - \x04\x04\x08\x02\0\x12\x06\xaa\x03\x02\xaf\x03\x04\x1aK\x20Required.\x20\ - The\x20effective\x20policy\x20to\x20compute.\x20See\x20`Policy`\x20for\ - \x20naming\x20rules.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xaa\x03\x02\ - \x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xaa\x03\t\r\n\r\n\x05\x04\x08\ - \x02\0\x03\x12\x04\xaa\x03\x10\x11\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\ - \xaa\x03\x12\xaf\x03\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\ - \xab\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xac\x03\x04\ - \xae\x03\x05\ny\n\x02\x04\t\x12\x06\xb4\x03\0\xc4\x03\x01\x1ak\x20The\ - \x20request\x20sent\x20to\x20the\x20[CreatePolicyRequest]\n\x20[google.c\ - loud.orgpolicy.v2.OrgPolicy.CreatePolicy]\x20method.\n\n\x0b\n\x03\x04\t\ - \x01\x12\x04\xb4\x03\x08\x1b\n\xf0\x01\n\x04\x04\t\x02\0\x12\x06\xbb\x03\ - \x02\xc0\x03\x04\x1a\xdf\x01\x20Required.\x20The\x20Cloud\x20resource\ - \x20that\x20will\x20parent\x20the\x20new\x20Policy.\x20Must\x20be\x20in\ - \n\x20one\x20of\x20the\x20following\x20forms:\n\x20*\x20`projects/{proje\ - ct_number}`\n\x20*\x20`projects/{project_id}`\n\x20*\x20`folders/{folder\ - _id}`\n\x20*\x20`organizations/{organization_id}`\n\n\r\n\x05\x04\t\x02\ - \0\x05\x12\x04\xbb\x03\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xbb\x03\ - \t\x0f\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xbb\x03\x12\x13\n\x0f\n\x05\x04\ - \t\x02\0\x08\x12\x06\xbb\x03\x14\xc0\x03\x03\n\x10\n\x08\x04\t\x02\0\x08\ - \x9c\x08\0\x12\x04\xbc\x03\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\ - \x06\xbd\x03\x04\xbf\x03\x05\n-\n\x04\x04\t\x02\x01\x12\x04\xc3\x03\x02=\ - \x1a\x1f\x20Required.\x20`Policy`\x20to\x20create.\n\n\r\n\x05\x04\t\x02\ - \x01\x06\x12\x04\xc3\x03\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xc3\ - \x03\t\x0f\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xc3\x03\x12\x13\n\r\n\x05\ - \x04\t\x02\x01\x08\x12\x04\xc3\x03\x14<\n\x10\n\x08\x04\t\x02\x01\x08\ - \x9c\x08\0\x12\x04\xc3\x03\x15;\ny\n\x02\x04\n\x12\x06\xc8\x03\0\xd0\x03\ - \x01\x1ak\x20The\x20request\x20sent\x20to\x20the\x20[UpdatePolicyRequest\ - ]\n\x20[google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy]\x20method.\n\n\ - \x0b\n\x03\x04\n\x01\x12\x04\xc8\x03\x08\x1b\n-\n\x04\x04\n\x02\0\x12\ - \x04\xca\x03\x02=\x1a\x1f\x20Required.\x20`Policy`\x20to\x20update.\n\n\ - \r\n\x05\x04\n\x02\0\x06\x12\x04\xca\x03\x02\x08\n\r\n\x05\x04\n\x02\0\ - \x01\x12\x04\xca\x03\t\x0f\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xca\x03\x12\ - \x13\n\r\n\x05\x04\n\x02\0\x08\x12\x04\xca\x03\x14<\n\x10\n\x08\x04\n\ - \x02\0\x08\x9c\x08\0\x12\x04\xca\x03\x15;\n\xbe\x01\n\x04\x04\n\x02\x01\ - \x12\x04\xcf\x03\x02,\x1a\xaf\x01\x20Field\x20mask\x20used\x20to\x20spec\ - ify\x20the\x20fields\x20to\x20be\x20overwritten\x20in\x20the\x20policy\n\ - \x20by\x20the\x20set.\x20The\x20fields\x20specified\x20in\x20the\x20upda\ - te_mask\x20are\x20relative\x20to\x20the\n\x20policy,\x20not\x20the\x20fu\ - ll\x20request.\n\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xcf\x03\x02\x1b\n\r\ - \n\x05\x04\n\x02\x01\x01\x12\x04\xcf\x03\x1c'\n\r\n\x05\x04\n\x02\x01\ - \x03\x12\x04\xcf\x03*+\nr\n\x02\x04\x0b\x12\x06\xd4\x03\0\xdd\x03\x01\ - \x1ad\x20The\x20request\x20sent\x20to\x20the\x20[DeletePolicy]\n\x20[goo\ - gle.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy]\x20method.\n\n\x0b\n\x03\ - \x04\x0b\x01\x12\x04\xd4\x03\x08\x1b\nY\n\x04\x04\x0b\x02\0\x12\x06\xd7\ - \x03\x02\xdc\x03\x04\x1aI\x20Required.\x20Name\x20of\x20the\x20policy\ - \x20to\x20delete.\n\x20See\x20`Policy`\x20for\x20naming\x20rules.\n\n\r\ - \n\x05\x04\x0b\x02\0\x05\x12\x04\xd7\x03\x02\x08\n\r\n\x05\x04\x0b\x02\0\ - \x01\x12\x04\xd7\x03\t\r\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xd7\x03\x10\ - \x11\n\x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\xd7\x03\x12\xdc\x03\x03\n\x10\ - \n\x08\x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\xd8\x03\x04*\n\x11\n\x07\x04\ - \x0b\x02\0\x08\x9f\x08\x12\x06\xd9\x03\x04\xdb\x03\x05b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy_grpc.rs b/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy_grpc.rs deleted file mode 100644 index 0e9b4b9..0000000 --- a/googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy_grpc.rs +++ /dev/null @@ -1,251 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_ORG_POLICY_LIST_CONSTRAINTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/ListConstraints", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_LIST_POLICIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/ListPolicies", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_GET_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/GetPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_GET_EFFECTIVE_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/GetEffectivePolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_CREATE_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/CreatePolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_UPDATE_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/UpdatePolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ORG_POLICY_DELETE_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.orgpolicy.v2.OrgPolicy/DeletePolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct OrgPolicyClient { - pub client: ::grpcio::Client, -} - -impl OrgPolicyClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - OrgPolicyClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn list_constraints_opt(&self, req: &super::orgpolicy::ListConstraintsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_LIST_CONSTRAINTS, req, opt) - } - - pub fn list_constraints(&self, req: &super::orgpolicy::ListConstraintsRequest) -> ::grpcio::Result { - self.list_constraints_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_constraints_async_opt(&self, req: &super::orgpolicy::ListConstraintsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_LIST_CONSTRAINTS, req, opt) - } - - pub fn list_constraints_async(&self, req: &super::orgpolicy::ListConstraintsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_constraints_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_policies_opt(&self, req: &super::orgpolicy::ListPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_LIST_POLICIES, req, opt) - } - - pub fn list_policies(&self, req: &super::orgpolicy::ListPoliciesRequest) -> ::grpcio::Result { - self.list_policies_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_policies_async_opt(&self, req: &super::orgpolicy::ListPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_LIST_POLICIES, req, opt) - } - - pub fn list_policies_async(&self, req: &super::orgpolicy::ListPoliciesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_policies_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_policy_opt(&self, req: &super::orgpolicy::GetPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_GET_POLICY, req, opt) - } - - pub fn get_policy(&self, req: &super::orgpolicy::GetPolicyRequest) -> ::grpcio::Result { - self.get_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_policy_async_opt(&self, req: &super::orgpolicy::GetPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_GET_POLICY, req, opt) - } - - pub fn get_policy_async(&self, req: &super::orgpolicy::GetPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_effective_policy_opt(&self, req: &super::orgpolicy::GetEffectivePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_GET_EFFECTIVE_POLICY, req, opt) - } - - pub fn get_effective_policy(&self, req: &super::orgpolicy::GetEffectivePolicyRequest) -> ::grpcio::Result { - self.get_effective_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_effective_policy_async_opt(&self, req: &super::orgpolicy::GetEffectivePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_GET_EFFECTIVE_POLICY, req, opt) - } - - pub fn get_effective_policy_async(&self, req: &super::orgpolicy::GetEffectivePolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_effective_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_policy_opt(&self, req: &super::orgpolicy::CreatePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_CREATE_POLICY, req, opt) - } - - pub fn create_policy(&self, req: &super::orgpolicy::CreatePolicyRequest) -> ::grpcio::Result { - self.create_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_policy_async_opt(&self, req: &super::orgpolicy::CreatePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_CREATE_POLICY, req, opt) - } - - pub fn create_policy_async(&self, req: &super::orgpolicy::CreatePolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_policy_opt(&self, req: &super::orgpolicy::UpdatePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_UPDATE_POLICY, req, opt) - } - - pub fn update_policy(&self, req: &super::orgpolicy::UpdatePolicyRequest) -> ::grpcio::Result { - self.update_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_policy_async_opt(&self, req: &super::orgpolicy::UpdatePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_UPDATE_POLICY, req, opt) - } - - pub fn update_policy_async(&self, req: &super::orgpolicy::UpdatePolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_policy_opt(&self, req: &super::orgpolicy::DeletePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ORG_POLICY_DELETE_POLICY, req, opt) - } - - pub fn delete_policy(&self, req: &super::orgpolicy::DeletePolicyRequest) -> ::grpcio::Result { - self.delete_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_policy_async_opt(&self, req: &super::orgpolicy::DeletePolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ORG_POLICY_DELETE_POLICY, req, opt) - } - - pub fn delete_policy_async(&self, req: &super::orgpolicy::DeletePolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_policy_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait OrgPolicy { - fn list_constraints(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::ListConstraintsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_policies(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::ListPoliciesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::GetPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_effective_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::GetEffectivePolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::CreatePolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::UpdatePolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::orgpolicy::DeletePolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_org_policy(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_LIST_CONSTRAINTS, move |ctx, req, resp| { - instance.list_constraints(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_LIST_POLICIES, move |ctx, req, resp| { - instance.list_policies(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_GET_POLICY, move |ctx, req, resp| { - instance.get_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_GET_EFFECTIVE_POLICY, move |ctx, req, resp| { - instance.get_effective_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_CREATE_POLICY, move |ctx, req, resp| { - instance.create_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_UPDATE_POLICY, move |ctx, req, resp| { - instance.update_policy(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_ORG_POLICY_DELETE_POLICY, move |ctx, req, resp| { - instance.delete_policy(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint.rs deleted file mode 100644 index 03cf0d4..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint.rs +++ /dev/null @@ -1,3215 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ReceiveTaskNotificationRequest { - // message fields - pub instance_id_token: ::std::string::String, - pub agent_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReceiveTaskNotificationRequest { - fn default() -> &'a ReceiveTaskNotificationRequest { - ::default_instance() - } -} - -impl ReceiveTaskNotificationRequest { - pub fn new() -> ReceiveTaskNotificationRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } - - // string agent_version = 2; - - - pub fn get_agent_version(&self) -> &str { - &self.agent_version - } - pub fn clear_agent_version(&mut self) { - self.agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_agent_version(&mut self, v: ::std::string::String) { - self.agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.agent_version - } - - // Take field - pub fn take_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.agent_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ReceiveTaskNotificationRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.agent_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - if !self.agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.agent_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - if !self.agent_version.is_empty() { - os.write_string(2, &self.agent_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReceiveTaskNotificationRequest { - ReceiveTaskNotificationRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &ReceiveTaskNotificationRequest| { &m.instance_id_token }, - |m: &mut ReceiveTaskNotificationRequest| { &mut m.instance_id_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "agent_version", - |m: &ReceiveTaskNotificationRequest| { &m.agent_version }, - |m: &mut ReceiveTaskNotificationRequest| { &mut m.agent_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReceiveTaskNotificationRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReceiveTaskNotificationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReceiveTaskNotificationRequest::new) - } -} - -impl ::protobuf::Clear for ReceiveTaskNotificationRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.agent_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReceiveTaskNotificationRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReceiveTaskNotificationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReceiveTaskNotificationResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReceiveTaskNotificationResponse { - fn default() -> &'a ReceiveTaskNotificationResponse { - ::default_instance() - } -} - -impl ReceiveTaskNotificationResponse { - pub fn new() -> ReceiveTaskNotificationResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ReceiveTaskNotificationResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReceiveTaskNotificationResponse { - ReceiveTaskNotificationResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReceiveTaskNotificationResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReceiveTaskNotificationResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReceiveTaskNotificationResponse::new) - } -} - -impl ::protobuf::Clear for ReceiveTaskNotificationResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReceiveTaskNotificationResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReceiveTaskNotificationResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartNextTaskRequest { - // message fields - pub instance_id_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartNextTaskRequest { - fn default() -> &'a StartNextTaskRequest { - ::default_instance() - } -} - -impl StartNextTaskRequest { - pub fn new() -> StartNextTaskRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for StartNextTaskRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StartNextTaskRequest { - StartNextTaskRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &StartNextTaskRequest| { &m.instance_id_token }, - |m: &mut StartNextTaskRequest| { &mut m.instance_id_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartNextTaskRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StartNextTaskRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StartNextTaskRequest::new) - } -} - -impl ::protobuf::Clear for StartNextTaskRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartNextTaskRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartNextTaskRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartNextTaskResponse { - // message fields - pub task: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartNextTaskResponse { - fn default() -> &'a StartNextTaskResponse { - ::default_instance() - } -} - -impl StartNextTaskResponse { - pub fn new() -> StartNextTaskResponse { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.Task task = 1; - - - pub fn get_task(&self) -> &super::tasks::Task { - self.task.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_task(&mut self) { - self.task.clear(); - } - - pub fn has_task(&self) -> bool { - self.task.is_some() - } - - // Param is passed by value, moved - pub fn set_task(&mut self, v: super::tasks::Task) { - self.task = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_task(&mut self) -> &mut super::tasks::Task { - if self.task.is_none() { - self.task.set_default(); - } - self.task.as_mut().unwrap() - } - - // Take field - pub fn take_task(&mut self) -> super::tasks::Task { - self.task.take().unwrap_or_else(|| super::tasks::Task::new()) - } -} - -impl ::protobuf::Message for StartNextTaskResponse { - fn is_initialized(&self) -> bool { - for v in &self.task { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.task)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.task.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.task.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StartNextTaskResponse { - StartNextTaskResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "task", - |m: &StartNextTaskResponse| { &m.task }, - |m: &mut StartNextTaskResponse| { &mut m.task }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartNextTaskResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StartNextTaskResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StartNextTaskResponse::new) - } -} - -impl ::protobuf::Clear for StartNextTaskResponse { - fn clear(&mut self) { - self.task.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartNextTaskResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartNextTaskResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportTaskProgressRequest { - // message fields - pub instance_id_token: ::std::string::String, - pub task_id: ::std::string::String, - pub task_type: super::tasks::TaskType, - // message oneof groups - pub progress: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportTaskProgressRequest { - fn default() -> &'a ReportTaskProgressRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReportTaskProgressRequest_oneof_progress { - apply_patches_task_progress(super::tasks::ApplyPatchesTaskProgress), - exec_step_task_progress(super::tasks::ExecStepTaskProgress), - apply_config_task_progress(super::tasks::ApplyConfigTaskProgress), -} - -impl ReportTaskProgressRequest { - pub fn new() -> ReportTaskProgressRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } - - // string task_id = 2; - - - pub fn get_task_id(&self) -> &str { - &self.task_id - } - pub fn clear_task_id(&mut self) { - self.task_id.clear(); - } - - // Param is passed by value, moved - pub fn set_task_id(&mut self, v: ::std::string::String) { - self.task_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_task_id(&mut self) -> &mut ::std::string::String { - &mut self.task_id - } - - // Take field - pub fn take_task_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.task_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.TaskType task_type = 3; - - - pub fn get_task_type(&self) -> super::tasks::TaskType { - self.task_type - } - pub fn clear_task_type(&mut self) { - self.task_type = super::tasks::TaskType::TASK_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_task_type(&mut self, v: super::tasks::TaskType) { - self.task_type = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskProgress apply_patches_task_progress = 4; - - - pub fn get_apply_patches_task_progress(&self) -> &super::tasks::ApplyPatchesTaskProgress { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_patches_task_progress(&mut self) { - self.progress = ::std::option::Option::None; - } - - pub fn has_apply_patches_task_progress(&self) -> bool { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_patches_task_progress(&mut self, v: super::tasks::ApplyPatchesTaskProgress) { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_patches_task_progress(&mut self) -> &mut super::tasks::ApplyPatchesTaskProgress { - if let ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(_)) = self.progress { - } else { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(super::tasks::ApplyPatchesTaskProgress::new())); - } - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_patches_task_progress(&mut self) -> super::tasks::ApplyPatchesTaskProgress { - if self.has_apply_patches_task_progress() { - match self.progress.take() { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ApplyPatchesTaskProgress::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepTaskProgress exec_step_task_progress = 5; - - - pub fn get_exec_step_task_progress(&self) -> &super::tasks::ExecStepTaskProgress { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_step_task_progress(&mut self) { - self.progress = ::std::option::Option::None; - } - - pub fn has_exec_step_task_progress(&self) -> bool { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_step_task_progress(&mut self, v: super::tasks::ExecStepTaskProgress) { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_step_task_progress(&mut self) -> &mut super::tasks::ExecStepTaskProgress { - if let ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(_)) = self.progress { - } else { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(super::tasks::ExecStepTaskProgress::new())); - } - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_step_task_progress(&mut self) -> super::tasks::ExecStepTaskProgress { - if self.has_exec_step_task_progress() { - match self.progress.take() { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ExecStepTaskProgress::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskProgress apply_config_task_progress = 6; - - - pub fn get_apply_config_task_progress(&self) -> &super::tasks::ApplyConfigTaskProgress { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_config_task_progress(&mut self) { - self.progress = ::std::option::Option::None; - } - - pub fn has_apply_config_task_progress(&self) -> bool { - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_config_task_progress(&mut self, v: super::tasks::ApplyConfigTaskProgress) { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_config_task_progress(&mut self) -> &mut super::tasks::ApplyConfigTaskProgress { - if let ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(_)) = self.progress { - } else { - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(super::tasks::ApplyConfigTaskProgress::new())); - } - match self.progress { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_config_task_progress(&mut self) -> super::tasks::ApplyConfigTaskProgress { - if self.has_apply_config_task_progress() { - match self.progress.take() { - ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ApplyConfigTaskProgress::new() - } - } -} - -impl ::protobuf::Message for ReportTaskProgressRequest { - fn is_initialized(&self) -> bool { - if let Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(ref v)) = self.progress { - if !v.is_initialized() { - return false; - } - } - if let Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(ref v)) = self.progress { - if !v.is_initialized() { - return false; - } - } - if let Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(ref v)) = self.progress { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.task_id)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.task_type, 3, &mut self.unknown_fields)? - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.progress = ::std::option::Option::Some(ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - if !self.task_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.task_id); - } - if self.task_type != super::tasks::TaskType::TASK_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.task_type); - } - if let ::std::option::Option::Some(ref v) = self.progress { - match v { - &ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - if !self.task_id.is_empty() { - os.write_string(2, &self.task_id)?; - } - if self.task_type != super::tasks::TaskType::TASK_TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.task_type))?; - } - if let ::std::option::Option::Some(ref v) = self.progress { - match v { - &ReportTaskProgressRequest_oneof_progress::apply_patches_task_progress(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReportTaskProgressRequest_oneof_progress::exec_step_task_progress(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReportTaskProgressRequest_oneof_progress::apply_config_task_progress(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportTaskProgressRequest { - ReportTaskProgressRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &ReportTaskProgressRequest| { &m.instance_id_token }, - |m: &mut ReportTaskProgressRequest| { &mut m.instance_id_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "task_id", - |m: &ReportTaskProgressRequest| { &m.task_id }, - |m: &mut ReportTaskProgressRequest| { &mut m.task_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "task_type", - |m: &ReportTaskProgressRequest| { &m.task_type }, - |m: &mut ReportTaskProgressRequest| { &mut m.task_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ApplyPatchesTaskProgress>( - "apply_patches_task_progress", - ReportTaskProgressRequest::has_apply_patches_task_progress, - ReportTaskProgressRequest::get_apply_patches_task_progress, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ExecStepTaskProgress>( - "exec_step_task_progress", - ReportTaskProgressRequest::has_exec_step_task_progress, - ReportTaskProgressRequest::get_exec_step_task_progress, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ApplyConfigTaskProgress>( - "apply_config_task_progress", - ReportTaskProgressRequest::has_apply_config_task_progress, - ReportTaskProgressRequest::get_apply_config_task_progress, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportTaskProgressRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportTaskProgressRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportTaskProgressRequest::new) - } -} - -impl ::protobuf::Clear for ReportTaskProgressRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.task_id.clear(); - self.task_type = super::tasks::TaskType::TASK_TYPE_UNSPECIFIED; - self.progress = ::std::option::Option::None; - self.progress = ::std::option::Option::None; - self.progress = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportTaskProgressRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportTaskProgressRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportTaskProgressResponse { - // message fields - pub task_directive: super::tasks::TaskDirective, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportTaskProgressResponse { - fn default() -> &'a ReportTaskProgressResponse { - ::default_instance() - } -} - -impl ReportTaskProgressResponse { - pub fn new() -> ReportTaskProgressResponse { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.TaskDirective task_directive = 1; - - - pub fn get_task_directive(&self) -> super::tasks::TaskDirective { - self.task_directive - } - pub fn clear_task_directive(&mut self) { - self.task_directive = super::tasks::TaskDirective::TASK_DIRECTIVE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_task_directive(&mut self, v: super::tasks::TaskDirective) { - self.task_directive = v; - } -} - -impl ::protobuf::Message for ReportTaskProgressResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.task_directive, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.task_directive != super::tasks::TaskDirective::TASK_DIRECTIVE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.task_directive); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.task_directive != super::tasks::TaskDirective::TASK_DIRECTIVE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.task_directive))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportTaskProgressResponse { - ReportTaskProgressResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "task_directive", - |m: &ReportTaskProgressResponse| { &m.task_directive }, - |m: &mut ReportTaskProgressResponse| { &mut m.task_directive }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportTaskProgressResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportTaskProgressResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportTaskProgressResponse::new) - } -} - -impl ::protobuf::Clear for ReportTaskProgressResponse { - fn clear(&mut self) { - self.task_directive = super::tasks::TaskDirective::TASK_DIRECTIVE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportTaskProgressResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportTaskProgressResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportTaskCompleteRequest { - // message fields - pub instance_id_token: ::std::string::String, - pub task_id: ::std::string::String, - pub task_type: super::tasks::TaskType, - pub error_message: ::std::string::String, - // message oneof groups - pub output: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportTaskCompleteRequest { - fn default() -> &'a ReportTaskCompleteRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ReportTaskCompleteRequest_oneof_output { - apply_patches_task_output(super::tasks::ApplyPatchesTaskOutput), - exec_step_task_output(super::tasks::ExecStepTaskOutput), - apply_config_task_output(super::tasks::ApplyConfigTaskOutput), -} - -impl ReportTaskCompleteRequest { - pub fn new() -> ReportTaskCompleteRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } - - // string task_id = 2; - - - pub fn get_task_id(&self) -> &str { - &self.task_id - } - pub fn clear_task_id(&mut self) { - self.task_id.clear(); - } - - // Param is passed by value, moved - pub fn set_task_id(&mut self, v: ::std::string::String) { - self.task_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_task_id(&mut self) -> &mut ::std::string::String { - &mut self.task_id - } - - // Take field - pub fn take_task_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.task_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.TaskType task_type = 3; - - - pub fn get_task_type(&self) -> super::tasks::TaskType { - self.task_type - } - pub fn clear_task_type(&mut self) { - self.task_type = super::tasks::TaskType::TASK_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_task_type(&mut self, v: super::tasks::TaskType) { - self.task_type = v; - } - - // string error_message = 4; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskOutput apply_patches_task_output = 5; - - - pub fn get_apply_patches_task_output(&self) -> &super::tasks::ApplyPatchesTaskOutput { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_patches_task_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_apply_patches_task_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_patches_task_output(&mut self, v: super::tasks::ApplyPatchesTaskOutput) { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_patches_task_output(&mut self) -> &mut super::tasks::ApplyPatchesTaskOutput { - if let ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(super::tasks::ApplyPatchesTaskOutput::new())); - } - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_patches_task_output(&mut self) -> super::tasks::ApplyPatchesTaskOutput { - if self.has_apply_patches_task_output() { - match self.output.take() { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ApplyPatchesTaskOutput::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepTaskOutput exec_step_task_output = 6; - - - pub fn get_exec_step_task_output(&self) -> &super::tasks::ExecStepTaskOutput { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_step_task_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_exec_step_task_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_step_task_output(&mut self, v: super::tasks::ExecStepTaskOutput) { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_step_task_output(&mut self) -> &mut super::tasks::ExecStepTaskOutput { - if let ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(super::tasks::ExecStepTaskOutput::new())); - } - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_step_task_output(&mut self) -> super::tasks::ExecStepTaskOutput { - if self.has_exec_step_task_output() { - match self.output.take() { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ExecStepTaskOutput::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskOutput apply_config_task_output = 7; - - - pub fn get_apply_config_task_output(&self) -> &super::tasks::ApplyConfigTaskOutput { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_config_task_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_apply_config_task_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_config_task_output(&mut self, v: super::tasks::ApplyConfigTaskOutput) { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_config_task_output(&mut self) -> &mut super::tasks::ApplyConfigTaskOutput { - if let ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(super::tasks::ApplyConfigTaskOutput::new())); - } - match self.output { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_config_task_output(&mut self) -> super::tasks::ApplyConfigTaskOutput { - if self.has_apply_config_task_output() { - match self.output.take() { - ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(v)) => v, - _ => panic!(), - } - } else { - super::tasks::ApplyConfigTaskOutput::new() - } - } -} - -impl ::protobuf::Message for ReportTaskCompleteRequest { - fn is_initialized(&self) -> bool { - if let Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - if let Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - if let Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.task_id)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.task_type, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::exec_step_task_output(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(ReportTaskCompleteRequest_oneof_output::apply_config_task_output(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - if !self.task_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.task_id); - } - if self.task_type != super::tasks::TaskType::TASK_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.task_type); - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.error_message); - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReportTaskCompleteRequest_oneof_output::exec_step_task_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &ReportTaskCompleteRequest_oneof_output::apply_config_task_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - if !self.task_id.is_empty() { - os.write_string(2, &self.task_id)?; - } - if self.task_type != super::tasks::TaskType::TASK_TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.task_type))?; - } - if !self.error_message.is_empty() { - os.write_string(4, &self.error_message)?; - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &ReportTaskCompleteRequest_oneof_output::apply_patches_task_output(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReportTaskCompleteRequest_oneof_output::exec_step_task_output(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &ReportTaskCompleteRequest_oneof_output::apply_config_task_output(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportTaskCompleteRequest { - ReportTaskCompleteRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &ReportTaskCompleteRequest| { &m.instance_id_token }, - |m: &mut ReportTaskCompleteRequest| { &mut m.instance_id_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "task_id", - |m: &ReportTaskCompleteRequest| { &m.task_id }, - |m: &mut ReportTaskCompleteRequest| { &mut m.task_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "task_type", - |m: &ReportTaskCompleteRequest| { &m.task_type }, - |m: &mut ReportTaskCompleteRequest| { &mut m.task_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &ReportTaskCompleteRequest| { &m.error_message }, - |m: &mut ReportTaskCompleteRequest| { &mut m.error_message }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ApplyPatchesTaskOutput>( - "apply_patches_task_output", - ReportTaskCompleteRequest::has_apply_patches_task_output, - ReportTaskCompleteRequest::get_apply_patches_task_output, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ExecStepTaskOutput>( - "exec_step_task_output", - ReportTaskCompleteRequest::has_exec_step_task_output, - ReportTaskCompleteRequest::get_exec_step_task_output, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::tasks::ApplyConfigTaskOutput>( - "apply_config_task_output", - ReportTaskCompleteRequest::has_apply_config_task_output, - ReportTaskCompleteRequest::get_apply_config_task_output, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportTaskCompleteRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportTaskCompleteRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportTaskCompleteRequest::new) - } -} - -impl ::protobuf::Clear for ReportTaskCompleteRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.task_id.clear(); - self.task_type = super::tasks::TaskType::TASK_TYPE_UNSPECIFIED; - self.error_message.clear(); - self.output = ::std::option::Option::None; - self.output = ::std::option::Option::None; - self.output = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportTaskCompleteRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportTaskCompleteRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportTaskCompleteResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportTaskCompleteResponse { - fn default() -> &'a ReportTaskCompleteResponse { - ::default_instance() - } -} - -impl ReportTaskCompleteResponse { - pub fn new() -> ReportTaskCompleteResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ReportTaskCompleteResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportTaskCompleteResponse { - ReportTaskCompleteResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportTaskCompleteResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportTaskCompleteResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportTaskCompleteResponse::new) - } -} - -impl ::protobuf::Clear for ReportTaskCompleteResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportTaskCompleteResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportTaskCompleteResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RegisterAgentRequest { - // message fields - pub instance_id_token: ::std::string::String, - pub agent_version: ::std::string::String, - pub supported_capabilities: ::protobuf::RepeatedField<::std::string::String>, - pub os_long_name: ::std::string::String, - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - pub os_architecture: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RegisterAgentRequest { - fn default() -> &'a RegisterAgentRequest { - ::default_instance() - } -} - -impl RegisterAgentRequest { - pub fn new() -> RegisterAgentRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } - - // string agent_version = 2; - - - pub fn get_agent_version(&self) -> &str { - &self.agent_version - } - pub fn clear_agent_version(&mut self) { - self.agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_agent_version(&mut self, v: ::std::string::String) { - self.agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.agent_version - } - - // Take field - pub fn take_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.agent_version, ::std::string::String::new()) - } - - // repeated string supported_capabilities = 3; - - - pub fn get_supported_capabilities(&self) -> &[::std::string::String] { - &self.supported_capabilities - } - pub fn clear_supported_capabilities(&mut self) { - self.supported_capabilities.clear(); - } - - // Param is passed by value, moved - pub fn set_supported_capabilities(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.supported_capabilities = v; - } - - // Mutable pointer to the field. - pub fn mut_supported_capabilities(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.supported_capabilities - } - - // Take field - pub fn take_supported_capabilities(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.supported_capabilities, ::protobuf::RepeatedField::new()) - } - - // string os_long_name = 4; - - - pub fn get_os_long_name(&self) -> &str { - &self.os_long_name - } - pub fn clear_os_long_name(&mut self) { - self.os_long_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_long_name(&mut self, v: ::std::string::String) { - self.os_long_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_long_name(&mut self) -> &mut ::std::string::String { - &mut self.os_long_name - } - - // Take field - pub fn take_os_long_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_long_name, ::std::string::String::new()) - } - - // string os_short_name = 5; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 6; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } - - // string os_architecture = 7; - - - pub fn get_os_architecture(&self) -> &str { - &self.os_architecture - } - pub fn clear_os_architecture(&mut self) { - self.os_architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_os_architecture(&mut self, v: ::std::string::String) { - self.os_architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_architecture(&mut self) -> &mut ::std::string::String { - &mut self.os_architecture - } - - // Take field - pub fn take_os_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_architecture, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RegisterAgentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.agent_version)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.supported_capabilities)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_long_name)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_architecture)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - if !self.agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.agent_version); - } - for value in &self.supported_capabilities { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if !self.os_long_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.os_long_name); - } - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.os_version); - } - if !self.os_architecture.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.os_architecture); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - if !self.agent_version.is_empty() { - os.write_string(2, &self.agent_version)?; - } - for v in &self.supported_capabilities { - os.write_string(3, &v)?; - }; - if !self.os_long_name.is_empty() { - os.write_string(4, &self.os_long_name)?; - } - if !self.os_short_name.is_empty() { - os.write_string(5, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(6, &self.os_version)?; - } - if !self.os_architecture.is_empty() { - os.write_string(7, &self.os_architecture)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RegisterAgentRequest { - RegisterAgentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &RegisterAgentRequest| { &m.instance_id_token }, - |m: &mut RegisterAgentRequest| { &mut m.instance_id_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "agent_version", - |m: &RegisterAgentRequest| { &m.agent_version }, - |m: &mut RegisterAgentRequest| { &mut m.agent_version }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "supported_capabilities", - |m: &RegisterAgentRequest| { &m.supported_capabilities }, - |m: &mut RegisterAgentRequest| { &mut m.supported_capabilities }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_long_name", - |m: &RegisterAgentRequest| { &m.os_long_name }, - |m: &mut RegisterAgentRequest| { &mut m.os_long_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &RegisterAgentRequest| { &m.os_short_name }, - |m: &mut RegisterAgentRequest| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &RegisterAgentRequest| { &m.os_version }, - |m: &mut RegisterAgentRequest| { &mut m.os_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_architecture", - |m: &RegisterAgentRequest| { &m.os_architecture }, - |m: &mut RegisterAgentRequest| { &mut m.os_architecture }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RegisterAgentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RegisterAgentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RegisterAgentRequest::new) - } -} - -impl ::protobuf::Clear for RegisterAgentRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.agent_version.clear(); - self.supported_capabilities.clear(); - self.os_long_name.clear(); - self.os_short_name.clear(); - self.os_version.clear(); - self.os_architecture.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RegisterAgentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RegisterAgentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RegisterAgentResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RegisterAgentResponse { - fn default() -> &'a RegisterAgentResponse { - ::default_instance() - } -} - -impl RegisterAgentResponse { - pub fn new() -> RegisterAgentResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for RegisterAgentResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RegisterAgentResponse { - RegisterAgentResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RegisterAgentResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RegisterAgentResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RegisterAgentResponse::new) - } -} - -impl ::protobuf::Clear for RegisterAgentResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RegisterAgentResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RegisterAgentResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportInventoryRequest { - // message fields - pub instance_id_token: ::std::string::String, - pub inventory_checksum: ::std::string::String, - pub inventory: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportInventoryRequest { - fn default() -> &'a ReportInventoryRequest { - ::default_instance() - } -} - -impl ReportInventoryRequest { - pub fn new() -> ReportInventoryRequest { - ::std::default::Default::default() - } - - // string instance_id_token = 1; - - - pub fn get_instance_id_token(&self) -> &str { - &self.instance_id_token - } - pub fn clear_instance_id_token(&mut self) { - self.instance_id_token.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id_token(&mut self, v: ::std::string::String) { - self.instance_id_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id_token(&mut self) -> &mut ::std::string::String { - &mut self.instance_id_token - } - - // Take field - pub fn take_instance_id_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id_token, ::std::string::String::new()) - } - - // string inventory_checksum = 2; - - - pub fn get_inventory_checksum(&self) -> &str { - &self.inventory_checksum - } - pub fn clear_inventory_checksum(&mut self) { - self.inventory_checksum.clear(); - } - - // Param is passed by value, moved - pub fn set_inventory_checksum(&mut self, v: ::std::string::String) { - self.inventory_checksum = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_inventory_checksum(&mut self) -> &mut ::std::string::String { - &mut self.inventory_checksum - } - - // Take field - pub fn take_inventory_checksum(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.inventory_checksum, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory inventory = 3; - - - pub fn get_inventory(&self) -> &super::inventory::Inventory { - self.inventory.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_inventory(&mut self) { - self.inventory.clear(); - } - - pub fn has_inventory(&self) -> bool { - self.inventory.is_some() - } - - // Param is passed by value, moved - pub fn set_inventory(&mut self, v: super::inventory::Inventory) { - self.inventory = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_inventory(&mut self) -> &mut super::inventory::Inventory { - if self.inventory.is_none() { - self.inventory.set_default(); - } - self.inventory.as_mut().unwrap() - } - - // Take field - pub fn take_inventory(&mut self) -> super::inventory::Inventory { - self.inventory.take().unwrap_or_else(|| super::inventory::Inventory::new()) - } -} - -impl ::protobuf::Message for ReportInventoryRequest { - fn is_initialized(&self) -> bool { - for v in &self.inventory { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id_token)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.inventory_checksum)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.inventory)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.instance_id_token.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.instance_id_token); - } - if !self.inventory_checksum.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.inventory_checksum); - } - if let Some(ref v) = self.inventory.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.instance_id_token.is_empty() { - os.write_string(1, &self.instance_id_token)?; - } - if !self.inventory_checksum.is_empty() { - os.write_string(2, &self.inventory_checksum)?; - } - if let Some(ref v) = self.inventory.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportInventoryRequest { - ReportInventoryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id_token", - |m: &ReportInventoryRequest| { &m.instance_id_token }, - |m: &mut ReportInventoryRequest| { &mut m.instance_id_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "inventory_checksum", - |m: &ReportInventoryRequest| { &m.inventory_checksum }, - |m: &mut ReportInventoryRequest| { &mut m.inventory_checksum }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventory", - |m: &ReportInventoryRequest| { &m.inventory }, - |m: &mut ReportInventoryRequest| { &mut m.inventory }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportInventoryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportInventoryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportInventoryRequest::new) - } -} - -impl ::protobuf::Clear for ReportInventoryRequest { - fn clear(&mut self) { - self.instance_id_token.clear(); - self.inventory_checksum.clear(); - self.inventory.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportInventoryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportInventoryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReportInventoryResponse { - // message fields - pub report_full_inventory: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReportInventoryResponse { - fn default() -> &'a ReportInventoryResponse { - ::default_instance() - } -} - -impl ReportInventoryResponse { - pub fn new() -> ReportInventoryResponse { - ::std::default::Default::default() - } - - // bool report_full_inventory = 1; - - - pub fn get_report_full_inventory(&self) -> bool { - self.report_full_inventory - } - pub fn clear_report_full_inventory(&mut self) { - self.report_full_inventory = false; - } - - // Param is passed by value, moved - pub fn set_report_full_inventory(&mut self, v: bool) { - self.report_full_inventory = v; - } -} - -impl ::protobuf::Message for ReportInventoryResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.report_full_inventory = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.report_full_inventory != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.report_full_inventory != false { - os.write_bool(1, self.report_full_inventory)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReportInventoryResponse { - ReportInventoryResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "report_full_inventory", - |m: &ReportInventoryResponse| { &m.report_full_inventory }, - |m: &mut ReportInventoryResponse| { &mut m.report_full_inventory }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReportInventoryResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReportInventoryResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReportInventoryResponse::new) - } -} - -impl ::protobuf::Clear for ReportInventoryResponse { - fn clear(&mut self) { - self.report_full_inventory = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReportInventoryResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReportInventoryResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n:google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto\x12&google\ - .cloud.osconfig.agentendpoint.v1\x1a\x17google/api/client.proto\x1a\x1fg\ - oogle/api/field_behavior.proto\x1a6google/cloud/osconfig/agentendpoint/v\ - 1/inventory.proto\x1a2google/cloud/osconfig/agentendpoint/v1/tasks.proto\ - \"{\n\x1eReceiveTaskNotificationRequest\x12/\n\x11instance_id_token\x18\ - \x01\x20\x01(\tR\x0finstanceIdTokenB\x03\xe0A\x02\x12(\n\ragent_version\ - \x18\x02\x20\x01(\tR\x0cagentVersionB\x03\xe0A\x02\"!\n\x1fReceiveTaskNo\ - tificationResponse\"G\n\x14StartNextTaskRequest\x12/\n\x11instance_id_to\ - ken\x18\x01\x20\x01(\tR\x0finstanceIdTokenB\x03\xe0A\x02\"Y\n\x15StartNe\ - xtTaskResponse\x12@\n\x04task\x18\x01\x20\x01(\x0b2,.google.cloud.osconf\ - ig.agentendpoint.v1.TaskR\x04task\"\xc5\x04\n\x19ReportTaskProgressReque\ - st\x12/\n\x11instance_id_token\x18\x01\x20\x01(\tR\x0finstanceIdTokenB\ - \x03\xe0A\x02\x12\x1c\n\x07task_id\x18\x02\x20\x01(\tR\x06taskIdB\x03\ - \xe0A\x02\x12R\n\ttask_type\x18\x03\x20\x01(\x0e20.google.cloud.osconfig\ - .agentendpoint.v1.TaskTypeR\x08taskTypeB\x03\xe0A\x02\x12\x81\x01\n\x1ba\ - pply_patches_task_progress\x18\x04\x20\x01(\x0b2@.google.cloud.osconfig.\ - agentendpoint.v1.ApplyPatchesTaskProgressH\0R\x18applyPatchesTaskProgres\ - s\x12u\n\x17exec_step_task_progress\x18\x05\x20\x01(\x0b2<.google.cloud.\ - osconfig.agentendpoint.v1.ExecStepTaskProgressH\0R\x14execStepTaskProgre\ - ss\x12~\n\x1aapply_config_task_progress\x18\x06\x20\x01(\x0b2?.google.cl\ - oud.osconfig.agentendpoint.v1.ApplyConfigTaskProgressH\0R\x17applyConfig\ - TaskProgressB\n\n\x08progress\"z\n\x1aReportTaskProgressResponse\x12\\\n\ - \x0etask_directive\x18\x01\x20\x01(\x0e25.google.cloud.osconfig.agentend\ - point.v1.TaskDirectiveR\rtaskDirective\"\xd5\x04\n\x19ReportTaskComplete\ - Request\x12/\n\x11instance_id_token\x18\x01\x20\x01(\tR\x0finstanceIdTok\ - enB\x03\xe0A\x02\x12\x1c\n\x07task_id\x18\x02\x20\x01(\tR\x06taskIdB\x03\ - \xe0A\x02\x12R\n\ttask_type\x18\x03\x20\x01(\x0e20.google.cloud.osconfig\ - .agentendpoint.v1.TaskTypeR\x08taskTypeB\x03\xe0A\x02\x12#\n\rerror_mess\ - age\x18\x04\x20\x01(\tR\x0cerrorMessage\x12{\n\x19apply_patches_task_out\ - put\x18\x05\x20\x01(\x0b2>.google.cloud.osconfig.agentendpoint.v1.ApplyP\ - atchesTaskOutputH\0R\x16applyPatchesTaskOutput\x12o\n\x15exec_step_task_\ - output\x18\x06\x20\x01(\x0b2:.google.cloud.osconfig.agentendpoint.v1.Exe\ - cStepTaskOutputH\0R\x12execStepTaskOutput\x12x\n\x18apply_config_task_ou\ - tput\x18\x07\x20\x01(\x0b2=.google.cloud.osconfig.agentendpoint.v1.Apply\ - ConfigTaskOutputH\0R\x15applyConfigTaskOutputB\x08\n\x06output\"\x1c\n\ - \x1aReportTaskCompleteResponse\"\xbb\x02\n\x14RegisterAgentRequest\x12/\ - \n\x11instance_id_token\x18\x01\x20\x01(\tR\x0finstanceIdTokenB\x03\xe0A\ - \x02\x12(\n\ragent_version\x18\x02\x20\x01(\tR\x0cagentVersionB\x03\xe0A\ - \x02\x12:\n\x16supported_capabilities\x18\x03\x20\x03(\tR\x15supportedCa\ - pabilitiesB\x03\xe0A\x02\x12\x20\n\x0cos_long_name\x18\x04\x20\x01(\tR\n\ - osLongName\x12\"\n\ros_short_name\x18\x05\x20\x01(\tR\x0bosShortName\x12\ - \x1d\n\nos_version\x18\x06\x20\x01(\tR\tosVersion\x12'\n\x0fos_architect\ - ure\x18\x07\x20\x01(\tR\x0eosArchitecture\"\x17\n\x15RegisterAgentRespon\ - se\"\xd3\x01\n\x16ReportInventoryRequest\x12/\n\x11instance_id_token\x18\ - \x01\x20\x01(\tR\x0finstanceIdTokenB\x03\xe0A\x02\x122\n\x12inventory_ch\ - ecksum\x18\x02\x20\x01(\tR\x11inventoryChecksumB\x03\xe0A\x02\x12T\n\tin\ - ventory\x18\x03\x20\x01(\x0b21.google.cloud.osconfig.agentendpoint.v1.In\ - ventoryR\tinventoryB\x03\xe0A\x01\"M\n\x17ReportInventoryResponse\x122\n\ - \x15report_full_inventory\x18\x01\x20\x01(\x08R\x13reportFullInventory2\ - \xd6\t\n\x14AgentEndpointService\x12\xd0\x01\n\x17ReceiveTaskNotificatio\ - n\x12F.google.cloud.osconfig.agentendpoint.v1.ReceiveTaskNotificationReq\ - uest\x1aG.google.cloud.osconfig.agentendpoint.v1.ReceiveTaskNotification\ - Response\"\"\xdaA\x1finstance_id_token,agent_version0\x01\x12\xa2\x01\n\ - \rStartNextTask\x12<.google.cloud.osconfig.agentendpoint.v1.StartNextTas\ - kRequest\x1a=.google.cloud.osconfig.agentendpoint.v1.StartNextTaskRespon\ - se\"\x14\xdaA\x11instance_id_token\x12\xc3\x01\n\x12ReportTaskProgress\ - \x12A.google.cloud.osconfig.agentendpoint.v1.ReportTaskProgressRequest\ - \x1aB.google.cloud.osconfig.agentendpoint.v1.ReportTaskProgressResponse\ - \"&\xdaA#instance_id_token,task_id,task_type\x12\xd1\x01\n\x12ReportTask\ - Complete\x12A.google.cloud.osconfig.agentendpoint.v1.ReportTaskCompleteR\ - equest\x1aB.google.cloud.osconfig.agentendpoint.v1.ReportTaskCompleteRes\ - ponse\"4\xdaA1instance_id_token,task_id,task_type,error_message\x12\xc7\ - \x01\n\rRegisterAgent\x12<.google.cloud.osconfig.agentendpoint.v1.Regist\ - erAgentRequest\x1a=.google.cloud.osconfig.agentendpoint.v1.RegisterAgent\ - Response\"9\xdaA6instance_id_token,agent_version,supported_capabilities\ - \x12\xc5\x01\n\x0fReportInventory\x12>.google.cloud.osconfig.agentendpoi\ - nt.v1.ReportInventoryRequest\x1a?.google.cloud.osconfig.agentendpoint.v1\ - .ReportInventoryResponse\"1\xdaA.instance_id_token,inventory_checksum,in\ - ventory\x1a\x1a\xcaA\x17osconfig.googleapis.comB\x94\x01\n*com.google.cl\ - oud.osconfig.agentendpoint.v1B\x12AgentEndpointProtoP\x01ZPcloud.google.\ - com/go/osconfig/agentendpoint/apiv1/agentendpointpb;agentendpointpbJ\xf0\ - C\n\x07\x12\x05\x0e\0\xe9\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202020\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0/\n\t\n\x02\x03\0\x12\x03\x12\0!\n\t\n\x02\x03\x01\x12\ - \x03\x13\0)\n\t\n\x02\x03\x02\x12\x03\x14\0@\n\t\n\x02\x03\x03\x12\x03\ - \x15\0<\n\x08\n\x01\x08\x12\x03\x17\0g\n\t\n\x02\x08\x0b\x12\x03\x17\0g\ - \n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\ - \x01\x08\x12\x03\x19\03\n\t\n\x02\x08\x08\x12\x03\x19\03\n\x08\n\x01\x08\ - \x12\x03\x1a\0C\n\t\n\x02\x08\x01\x12\x03\x1a\0C\n+\n\x02\x06\0\x12\x04\ - \x1d\0>\x01\x1a\x1f\x20OS\x20Config\x20agent\x20endpoint\x20API.\n\n\n\n\ - \x03\x06\0\x01\x12\x03\x1d\x08\x1c\n\n\n\x03\x06\0\x03\x12\x03\x1e\x02?\ - \n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03\x1e\x02?\nK\n\x04\x06\0\x02\0\x12\ - \x04!\x02#\x03\x1a=\x20Stream\x20established\x20by\x20client\x20to\x20re\ - ceive\x20Task\x20notifications.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03!\ - \x06\x1d\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03!\x1e<\n\x0c\n\x05\x06\0\x02\ - \0\x06\x12\x03!GM\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03!Nm\n\x0c\n\x05\x06\ - \0\x02\0\x04\x12\x03\"\x04M\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\ - \x03\"\x04M\nP\n\x04\x06\0\x02\x01\x12\x04&\x02(\x03\x1aB\x20Signals\x20\ - the\x20start\x20of\x20a\x20task\x20execution\x20and\x20returns\x20the\ - \x20task\x20info.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03&\x06\x13\n\x0c\ - \n\x05\x06\0\x02\x01\x02\x12\x03&\x14(\n\x0c\n\x05\x06\0\x02\x01\x03\x12\ - \x03&3H\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03'\x04?\n\x0f\n\x08\x06\0\ - \x02\x01\x04\x9b\x08\0\x12\x03'\x04?\nN\n\x04\x06\0\x02\x02\x12\x04+\x02\ - -\x03\x1a@\x20Signals\x20an\x20intermediary\x20progress\x20checkpoint\ - \x20in\x20task\x20execution.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03+\ - \x06\x18\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03+\x192\n\x0c\n\x05\x06\0\ - \x02\x02\x03\x12\x03+=W\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03,\x04Q\n\ - \x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03,\x04Q\nb\n\x04\x06\0\x02\ - \x03\x12\x041\x023\x03\x1aT\x20Signals\x20that\x20the\x20task\x20executi\ - on\x20is\x20complete\x20and\x20optionally\x20returns\x20the\x20next\n\ - \x20task.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x031\x06\x18\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x031\x192\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x031=\ - W\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x032\x04_\n\x0f\n\x08\x06\0\x02\x03\ - \x04\x9b\x08\0\x12\x032\x04_\n6\n\x04\x06\0\x02\x04\x12\x046\x028\x03\ - \x1a(\x20Registers\x20the\x20agent\x20running\x20on\x20the\x20VM.\n\n\ - \x0c\n\x05\x06\0\x02\x04\x01\x12\x036\x06\x13\n\x0c\n\x05\x06\0\x02\x04\ - \x02\x12\x036\x14(\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x0363H\n\x0c\n\x05\ - \x06\0\x02\x04\x04\x12\x037\x04d\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\ - \x12\x037\x04d\n2\n\x04\x06\0\x02\x05\x12\x04;\x02=\x03\x1a$\x20Reports\ - \x20the\x20VMs\x20current\x20inventory.\n\n\x0c\n\x05\x06\0\x02\x05\x01\ - \x12\x03;\x06\x15\n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03;\x16,\n\x0c\n\ - \x05\x06\0\x02\x05\x03\x12\x03;7N\n\x0c\n\x05\x06\0\x02\x05\x04\x12\x03<\ - \x04\\\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03<\x04\\\n>\n\x02\ - \x04\0\x12\x04A\0I\x01\x1a2\x20A\x20request\x20message\x20to\x20receive\ - \x20task\x20notifications.\n\n\n\n\x03\x04\0\x01\x12\x03A\x08&\n\xf1\x01\ - \n\x04\x04\0\x02\0\x12\x03E\x02H\x1a\xe3\x01\x20Required.\x20This\x20is\ - \x20the\x20Compute\x20Engine\x20instance\x20identity\x20token\x20describ\ - ed\x20in\n\x20https://cloud.google.com/compute/docs/instances/verifying-\ - instance-identity\n\x20where\x20the\x20audience\x20is\x20'osconfig.googl\ - eapis.com'\x20and\x20the\x20format\x20is\x20'full'.\n\n\x0c\n\x05\x04\0\ - \x02\0\x05\x12\x03E\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03E\t\x1a\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03E\x1d\x1e\n\x0c\n\x05\x04\0\x02\0\x08\ - \x12\x03E\x1fG\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03E\x20F\nE\n\ - \x04\x04\0\x02\x01\x12\x03H\x02D\x1a8\x20Required.\x20The\x20version\x20\ - of\x20the\x20agent\x20making\x20the\x20request.\n\n\x0c\n\x05\x04\0\x02\ - \x01\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03H\t\x16\n\ - \x0c\n\x05\x04\0\x02\x01\x03\x12\x03H\x19\x1a\n\x0c\n\x05\x04\0\x02\x01\ - \x08\x12\x03H\x1bC\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x03H\x1cB\ - \n{\n\x02\x04\x01\x12\x04M\0O\x01\x1ao\x20The\x20streaming\x20rpc\x20mes\ - sage\x20that\x20will\x20notify\x20the\x20agent\x20when\x20it\x20has\x20a\ - \x20task\n\x20it\x20needs\x20to\x20perform\x20on\x20the\x20instance.\n\n\ - \n\n\x03\x04\x01\x01\x12\x03M\x08'\nL\n\x02\x04\x02\x12\x04R\0W\x01\x1a@\ - \x20A\x20request\x20message\x20for\x20signaling\x20the\x20start\x20of\ - \x20a\x20task\x20execution.\n\n\n\n\x03\x04\x02\x01\x12\x03R\x08\x1c\n\ - \xf1\x01\n\x04\x04\x02\x02\0\x12\x03V\x02H\x1a\xe3\x01\x20Required.\x20T\ - his\x20is\x20the\x20Compute\x20Engine\x20instance\x20identity\x20token\ - \x20described\x20in\n\x20https://cloud.google.com/compute/docs/instances\ - /verifying-instance-identity\n\x20where\x20the\x20audience\x20is\x20'osc\ - onfig.googleapis.com'\x20and\x20the\x20format\x20is\x20'full'.\n\n\x0c\n\ - \x05\x04\x02\x02\0\x05\x12\x03V\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\ - \x12\x03V\t\x1a\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03V\x1d\x1e\n\x0c\n\ - \x05\x04\x02\x02\0\x08\x12\x03V\x1fG\n\x0f\n\x08\x04\x02\x02\0\x08\x9c\ - \x08\0\x12\x03V\x20F\nR\n\x02\x04\x03\x12\x04Z\0^\x01\x1aF\x20A\x20respo\ - nse\x20message\x20that\x20contains\x20the\x20details\x20of\x20the\x20tas\ - k\x20to\x20work\x20on.\n\n\n\n\x03\x04\x03\x01\x12\x03Z\x08\x1d\ns\n\x04\ - \x04\x03\x02\0\x12\x03]\x02\x10\x1af\x20The\x20details\x20of\x20the\x20t\ - ask\x20that\x20should\x20be\x20worked\x20on.\x20\x20Can\x20be\x20empty\ - \x20if\x20there\n\x20is\x20no\x20new\x20task\x20to\x20work\x20on.\n\n\ - \x0c\n\x05\x04\x03\x02\0\x06\x12\x03]\x02\x06\n\x0c\n\x05\x04\x03\x02\0\ - \x01\x12\x03]\x07\x0b\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03]\x0e\x0f\nK\ - \n\x02\x04\x04\x12\x04a\0~\x01\x1a?\x20A\x20request\x20message\x20for\ - \x20reporting\x20the\x20progress\x20of\x20current\x20task.\n\n\n\n\x03\ - \x04\x04\x01\x12\x03a\x08!\n\xf1\x01\n\x04\x04\x04\x02\0\x12\x03e\x02H\ - \x1a\xe3\x01\x20Required.\x20This\x20is\x20the\x20Compute\x20Engine\x20i\ - nstance\x20identity\x20token\x20described\x20in\n\x20https://cloud.googl\ - e.com/compute/docs/instances/verifying-instance-identity\n\x20where\x20t\ - he\x20audience\x20is\x20'osconfig.googleapis.com'\x20and\x20the\x20forma\ - t\x20is\x20'full'.\n\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03e\x02\x08\n\ - \x0c\n\x05\x04\x04\x02\0\x01\x12\x03e\t\x1a\n\x0c\n\x05\x04\x04\x02\0\ - \x03\x12\x03e\x1d\x1e\n\x0c\n\x05\x04\x04\x02\0\x08\x12\x03e\x1fG\n\x0f\ - \n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x03e\x20F\nG\n\x04\x04\x04\x02\ - \x01\x12\x03h\x02>\x1a:\x20Required.\x20Unique\x20identifier\x20of\x20th\ - e\x20task\x20this\x20applies\x20to.\n\n\x0c\n\x05\x04\x04\x02\x01\x05\ - \x12\x03h\x02\x08\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03h\t\x10\n\x0c\n\ - \x05\x04\x04\x02\x01\x03\x12\x03h\x13\x14\n\x0c\n\x05\x04\x04\x02\x01\ - \x08\x12\x03h\x15=\n\x0f\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x03h\ - \x16<\n\xa3\x02\n\x04\x04\x04\x02\x02\x12\x03q\x02B\x1a\x95\x02\x20Requi\ - red.\x20The\x20type\x20of\x20task\x20to\x20report\x20progress\x20on.\n\n\ - \x20Progress\x20must\x20include\x20the\x20appropriate\x20message\x20base\ - d\x20on\x20this\x20enum\x20as\n\x20specified\x20below:\n\x20APPLY_PATCHE\ - S\x20=\x20ApplyPatchesTaskProgress\n\x20EXEC_STEP\x20=\x20Progress\x20no\ - t\x20supported\x20for\x20this\x20type.\n\x20APPLY_CONFIG_TASK\x20=\x20Ap\ - plyConfigTaskProgress\n\n\x0c\n\x05\x04\x04\x02\x02\x06\x12\x03q\x02\n\n\ - \x0c\n\x05\x04\x04\x02\x02\x01\x12\x03q\x0b\x14\n\x0c\n\x05\x04\x04\x02\ - \x02\x03\x12\x03q\x17\x18\n\x0c\n\x05\x04\x04\x02\x02\x08\x12\x03q\x19A\ - \n\x0f\n\x08\x04\x04\x02\x02\x08\x9c\x08\0\x12\x03q\x1a@\n:\n\x04\x04\ - \x04\x08\0\x12\x04t\x02}\x03\x1a,\x20Intermediate\x20progress\x20of\x20t\ - he\x20current\x20task.\n\n\x0c\n\x05\x04\x04\x08\0\x01\x12\x03t\x08\x10\ - \nD\n\x04\x04\x04\x02\x03\x12\x03v\x04=\x1a7\x20Details\x20about\x20the\ - \x20progress\x20of\x20the\x20apply\x20patches\x20task.\n\n\x0c\n\x05\x04\ - \x04\x02\x03\x06\x12\x03v\x04\x1c\n\x0c\n\x05\x04\x04\x02\x03\x01\x12\ - \x03v\x1d8\n\x0c\n\x05\x04\x04\x02\x03\x03\x12\x03v;<\n@\n\x04\x04\x04\ - \x02\x04\x12\x03y\x045\x1a3\x20Details\x20about\x20the\x20progress\x20of\ - \x20the\x20exec\x20step\x20task.\n\n\x0c\n\x05\x04\x04\x02\x04\x06\x12\ - \x03y\x04\x18\n\x0c\n\x05\x04\x04\x02\x04\x01\x12\x03y\x190\n\x0c\n\x05\ - \x04\x04\x02\x04\x03\x12\x03y34\nC\n\x04\x04\x04\x02\x05\x12\x03|\x04;\ - \x1a6\x20Details\x20about\x20the\x20progress\x20of\x20the\x20apply\x20co\ - nfig\x20task.\n\n\x0c\n\x05\x04\x04\x02\x05\x06\x12\x03|\x04\x1b\n\x0c\n\ - \x05\x04\x04\x02\x05\x01\x12\x03|\x1c6\n\x0c\n\x05\x04\x04\x02\x05\x03\ - \x12\x03|9:\nX\n\x02\x04\x05\x12\x06\x81\x01\0\x84\x01\x01\x1aJ\x20The\ - \x20response\x20message\x20after\x20the\x20agent\x20reported\x20the\x20c\ - urrent\x20task\x20progress.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\x81\x01\ - \x08\"\n3\n\x04\x04\x05\x02\0\x12\x04\x83\x01\x02#\x1a%\x20Instructs\x20\ - agent\x20to\x20continue\x20or\x20not.\n\n\r\n\x05\x04\x05\x02\0\x06\x12\ - \x04\x83\x01\x02\x0f\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x83\x01\x10\x1e\ - \n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x83\x01!\"\nS\n\x02\x04\x06\x12\x06\ - \x87\x01\0\xa7\x01\x01\x1aE\x20A\x20request\x20message\x20for\x20signali\ - ng\x20the\x20completion\x20of\x20a\x20task\x20execution.\n\n\x0b\n\x03\ - \x04\x06\x01\x12\x04\x87\x01\x08!\n\xf2\x01\n\x04\x04\x06\x02\0\x12\x04\ - \x8b\x01\x02H\x1a\xe3\x01\x20Required.\x20This\x20is\x20the\x20Compute\ - \x20Engine\x20instance\x20identity\x20token\x20described\x20in\n\x20http\ - s://cloud.google.com/compute/docs/instances/verifying-instance-identity\ - \n\x20where\x20the\x20audience\x20is\x20'osconfig.googleapis.com'\x20and\ - \x20the\x20format\x20is\x20'full'.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ - \x8b\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x8b\x01\t\x1a\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\x8b\x01\x1d\x1e\n\r\n\x05\x04\x06\x02\0\ - \x08\x12\x04\x8b\x01\x1fG\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\ - \x04\x8b\x01\x20F\nH\n\x04\x04\x06\x02\x01\x12\x04\x8e\x01\x02>\x1a:\x20\ - Required.\x20Unique\x20identifier\x20of\x20the\x20task\x20this\x20applie\ - s\x20to.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x8e\x01\x02\x08\n\r\n\ - \x05\x04\x06\x02\x01\x01\x12\x04\x8e\x01\t\x10\n\r\n\x05\x04\x06\x02\x01\ - \x03\x12\x04\x8e\x01\x13\x14\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\x8e\ - \x01\x15=\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\x04\x8e\x01\x16<\ - \n\x89\x02\n\x04\x04\x06\x02\x02\x12\x04\x97\x01\x02B\x1a\xfa\x01\x20Req\ - uired.\x20The\x20type\x20of\x20task\x20to\x20report\x20completed.\n\n\ - \x20Output\x20must\x20include\x20the\x20appropriate\x20message\x20based\ - \x20on\x20this\x20enum\x20as\n\x20specified\x20below:\n\x20APPLY_PATCHES\ - \x20=\x20ApplyPatchesTaskOutput\n\x20EXEC_STEP\x20=\x20ExecStepTaskOutpu\ - t\n\x20APPLY_CONFIG_TASK\x20=\x20ApplyConfigTaskOutput\n\n\r\n\x05\x04\ - \x06\x02\x02\x06\x12\x04\x97\x01\x02\n\n\r\n\x05\x04\x06\x02\x02\x01\x12\ - \x04\x97\x01\x0b\x14\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\x97\x01\x17\ - \x18\n\r\n\x05\x04\x06\x02\x02\x08\x12\x04\x97\x01\x19A\n\x10\n\x08\x04\ - \x06\x02\x02\x08\x9c\x08\0\x12\x04\x97\x01\x1a@\nO\n\x04\x04\x06\x02\x03\ - \x12\x04\x9a\x01\x02\x1b\x1aA\x20Descriptive\x20error\x20message\x20if\ - \x20the\x20task\x20execution\x20ended\x20in\x20error.\n\n\r\n\x05\x04\ - \x06\x02\x03\x05\x12\x04\x9a\x01\x02\x08\n\r\n\x05\x04\x06\x02\x03\x01\ - \x12\x04\x9a\x01\t\x16\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x9a\x01\x19\ - \x1a\n;\n\x04\x04\x06\x08\0\x12\x06\x9d\x01\x02\xa6\x01\x03\x1a+\x20Fina\ - l\x20output\x20details\x20of\x20the\x20current\x20task.\n\n\r\n\x05\x04\ - \x06\x08\0\x01\x12\x04\x9d\x01\x08\x0e\n?\n\x04\x04\x06\x02\x04\x12\x04\ - \x9f\x01\x049\x1a1\x20Final\x20output\x20details\x20of\x20the\x20apply\ - \x20patches\x20task;\n\n\r\n\x05\x04\x06\x02\x04\x06\x12\x04\x9f\x01\x04\ - \x1a\n\r\n\x05\x04\x06\x02\x04\x01\x12\x04\x9f\x01\x1b4\n\r\n\x05\x04\ - \x06\x02\x04\x03\x12\x04\x9f\x0178\n;\n\x04\x04\x06\x02\x05\x12\x04\xa2\ - \x01\x041\x1a-\x20Final\x20output\x20details\x20of\x20the\x20exec\x20ste\ - p\x20task;\n\n\r\n\x05\x04\x06\x02\x05\x06\x12\x04\xa2\x01\x04\x16\n\r\n\ - \x05\x04\x06\x02\x05\x01\x12\x04\xa2\x01\x17,\n\r\n\x05\x04\x06\x02\x05\ - \x03\x12\x04\xa2\x01/0\n>\n\x04\x04\x06\x02\x06\x12\x04\xa5\x01\x047\x1a\ - 0\x20Final\x20output\x20details\x20of\x20the\x20apply\x20config\x20task;\ - \n\n\r\n\x05\x04\x06\x02\x06\x06\x12\x04\xa5\x01\x04\x19\n\r\n\x05\x04\ - \x06\x02\x06\x01\x12\x04\xa5\x01\x1a2\n\r\n\x05\x04\x06\x02\x06\x03\x12\ - \x04\xa5\x0156\nX\n\x02\x04\x07\x12\x06\xaa\x01\0\xac\x01\x01\x1aJ\x20Th\ - e\x20response\x20message\x20after\x20the\x20agent\x20signaled\x20the\x20\ - current\x20task\x20complete.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xaa\x01\ - \x08\"\n>\n\x02\x04\x08\x12\x06\xaf\x01\0\xcc\x01\x01\x1a0\x20The\x20req\ - uest\x20message\x20for\x20registering\x20the\x20agent.\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xaf\x01\x08\x1c\n\xf2\x01\n\x04\x04\x08\x02\0\x12\x04\ - \xb3\x01\x02H\x1a\xe3\x01\x20Required.\x20This\x20is\x20the\x20Compute\ - \x20Engine\x20instance\x20identity\x20token\x20described\x20in\n\x20http\ - s://cloud.google.com/compute/docs/instances/verifying-instance-identity\ - \n\x20where\x20the\x20audience\x20is\x20'osconfig.googleapis.com'\x20and\ - \x20the\x20format\x20is\x20'full'.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\ - \xb3\x01\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xb3\x01\t\x1a\n\r\n\ - \x05\x04\x08\x02\0\x03\x12\x04\xb3\x01\x1d\x1e\n\r\n\x05\x04\x08\x02\0\ - \x08\x12\x04\xb3\x01\x1fG\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\ - \x04\xb3\x01\x20F\n3\n\x04\x04\x08\x02\x01\x12\x04\xb6\x01\x02D\x1a%\x20\ - Required.\x20The\x20version\x20of\x20the\x20agent.\n\n\r\n\x05\x04\x08\ - \x02\x01\x05\x12\x04\xb6\x01\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\ - \x04\xb6\x01\t\x16\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xb6\x01\x19\x1a\ - \n\r\n\x05\x04\x08\x02\x01\x08\x12\x04\xb6\x01\x1bC\n\x10\n\x08\x04\x08\ - \x02\x01\x08\x9c\x08\0\x12\x04\xb6\x01\x1cB\n\x80\x01\n\x04\x04\x08\x02\ - \x02\x12\x04\xbc\x01\x02V\x1ar\x20Required.\x20The\x20capabilities\x20su\ - pported\x20by\x20the\x20agent.\x20Supported\x20values\x20are:\n\x20PATCH\ - _GA\n\x20GUEST_POLICY_BETA\n\x20CONFIG_V1\n\n\r\n\x05\x04\x08\x02\x02\ - \x04\x12\x04\xbc\x01\x02\n\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xbc\x01\ - \x0b\x11\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xbc\x01\x12(\n\r\n\x05\ - \x04\x08\x02\x02\x03\x12\x04\xbc\x01+,\n\r\n\x05\x04\x08\x02\x02\x08\x12\ - \x04\xbc\x01-U\n\x10\n\x08\x04\x08\x02\x02\x08\x9c\x08\0\x12\x04\xbc\x01\ - .T\n\x80\x01\n\x04\x04\x08\x02\x03\x12\x04\xc1\x01\x02\x1a\x1ar\x20The\ - \x20operating\x20system\x20long\x20name.\n\x20For\x20example\x20'Debian\ - \x20GNU/Linux\x209'\x20or\x20'Microsoft\x20Window\x20Server\x202019\n\ - \x20Datacenter'.\n\n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\xc1\x01\x02\x08\ - \n\r\n\x05\x04\x08\x02\x03\x01\x12\x04\xc1\x01\t\x15\n\r\n\x05\x04\x08\ - \x02\x03\x03\x12\x04\xc1\x01\x18\x19\nU\n\x04\x04\x08\x02\x04\x12\x04\ - \xc5\x01\x02\x1b\x1aG\x20The\x20operating\x20system\x20short\x20name.\n\ - \x20For\x20example,\x20'windows'\x20or\x20'debian'.\n\n\r\n\x05\x04\x08\ - \x02\x04\x05\x12\x04\xc5\x01\x02\x08\n\r\n\x05\x04\x08\x02\x04\x01\x12\ - \x04\xc5\x01\t\x16\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xc5\x01\x19\x1a\ - \n4\n\x04\x04\x08\x02\x05\x12\x04\xc8\x01\x02\x18\x1a&\x20The\x20version\ - \x20of\x20the\x20operating\x20system.\n\n\r\n\x05\x04\x08\x02\x05\x05\ - \x12\x04\xc8\x01\x02\x08\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\xc8\x01\t\ - \x13\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\xc8\x01\x16\x17\n@\n\x04\x04\ - \x08\x02\x06\x12\x04\xcb\x01\x02\x1d\x1a2\x20The\x20system\x20architectu\ - re\x20of\x20the\x20operating\x20system.\n\n\r\n\x05\x04\x08\x02\x06\x05\ - \x12\x04\xcb\x01\x02\x08\n\r\n\x05\x04\x08\x02\x06\x01\x12\x04\xcb\x01\t\ - \x18\n\r\n\x05\x04\x08\x02\x06\x03\x12\x04\xcb\x01\x1b\x1c\n@\n\x02\x04\ - \t\x12\x06\xcf\x01\0\xd1\x01\x01\x1a2\x20The\x20response\x20message\x20a\ - fter\x20the\x20agent\x20registered.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xcf\ - \x01\x08\x1d\nJ\n\x02\x04\n\x12\x06\xd4\x01\0\xe3\x01\x01\x1a<\x20The\ - \x20request\x20message\x20for\x20having\x20the\x20agent\x20report\x20inv\ - entory.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xd4\x01\x08\x1e\n\xf2\x01\n\x04\ - \x04\n\x02\0\x12\x04\xd8\x01\x02H\x1a\xe3\x01\x20Required.\x20This\x20is\ - \x20the\x20Compute\x20Engine\x20instance\x20identity\x20token\x20describ\ - ed\x20in\n\x20https://cloud.google.com/compute/docs/instances/verifying-\ - instance-identity\n\x20where\x20the\x20audience\x20is\x20'osconfig.googl\ - eapis.com'\x20and\x20the\x20format\x20is\x20'full'.\n\n\r\n\x05\x04\n\ - \x02\0\x05\x12\x04\xd8\x01\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd8\ - \x01\t\x1a\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd8\x01\x1d\x1e\n\r\n\x05\ - \x04\n\x02\0\x08\x12\x04\xd8\x01\x1fG\n\x10\n\x08\x04\n\x02\0\x08\x9c\ - \x08\0\x12\x04\xd8\x01\x20F\n\xe2\x01\n\x04\x04\n\x02\x01\x12\x04\xdd\ - \x01\x02I\x1a\xd3\x01\x20Required.\x20This\x20is\x20a\x20client\x20creat\ - ed\x20checksum\x20that\x20should\x20be\x20generated\x20based\x20on\x20th\ - e\n\x20contents\x20of\x20the\x20reported\x20inventory.\x20\x20This\x20wi\ - ll\x20be\x20used\x20by\x20the\x20service\x20to\n\x20determine\x20if\x20i\ - t\x20has\x20the\x20latest\x20version\x20of\x20inventory.\n\n\r\n\x05\x04\ - \n\x02\x01\x05\x12\x04\xdd\x01\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\ - \x04\xdd\x01\t\x1b\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xdd\x01\x1e\x1f\n\ - \r\n\x05\x04\n\x02\x01\x08\x12\x04\xdd\x01\x20H\n\x10\n\x08\x04\n\x02\ - \x01\x08\x9c\x08\0\x12\x04\xdd\x01!G\n\xca\x01\n\x04\x04\n\x02\x02\x12\ - \x04\xe2\x01\x02C\x1a\xbb\x01\x20Optional.\x20This\x20is\x20the\x20detai\ - ls\x20of\x20the\x20inventory.\x20\x20Should\x20only\x20be\x20provided\ - \x20if\x20the\n\x20inventory\x20has\x20changed\x20since\x20the\x20last\ - \x20report,\x20or\x20if\x20instructed\x20by\x20the\n\x20service\x20to\ - \x20provide\x20full\x20inventory.\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\ - \xe2\x01\x02\x0b\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xe2\x01\x0c\x15\n\r\ - \n\x05\x04\n\x02\x02\x03\x12\x04\xe2\x01\x18\x19\n\r\n\x05\x04\n\x02\x02\ - \x08\x12\x04\xe2\x01\x1aB\n\x10\n\x08\x04\n\x02\x02\x08\x9c\x08\0\x12\ - \x04\xe2\x01\x1bA\nL\n\x02\x04\x0b\x12\x06\xe6\x01\0\xe9\x01\x01\x1a>\ - \x20The\x20response\x20message\x20after\x20the\x20agent\x20has\x20report\ - ed\x20inventory.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xe6\x01\x08\x1f\nR\n\ - \x04\x04\x0b\x02\0\x12\x04\xe8\x01\x02!\x1aD\x20If\x20true,\x20the\x20fu\ - ll\x20inventory\x20should\x20be\x20reported\x20back\x20to\x20the\x20serv\ - er.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xe8\x01\x02\x06\n\r\n\x05\x04\ - \x0b\x02\0\x01\x12\x04\xe8\x01\x07\x1c\n\r\n\x05\x04\x0b\x02\0\x03\x12\ - \x04\xe8\x01\x1f\x20b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc.rs deleted file mode 100644 index bcc4d17..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc.rs +++ /dev/null @@ -1,213 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_AGENT_ENDPOINT_SERVICE_RECEIVE_TASK_NOTIFICATION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/ReceiveTaskNotification", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_AGENT_ENDPOINT_SERVICE_START_NEXT_TASK: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/StartNextTask", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_PROGRESS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/ReportTaskProgress", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_COMPLETE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/ReportTaskComplete", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_AGENT_ENDPOINT_SERVICE_REGISTER_AGENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/RegisterAgent", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_AGENT_ENDPOINT_SERVICE_REPORT_INVENTORY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.agentendpoint.v1.AgentEndpointService/ReportInventory", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct AgentEndpointServiceClient { - pub client: ::grpcio::Client, -} - -impl AgentEndpointServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - AgentEndpointServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn receive_task_notification_opt(&self, req: &super::agentendpoint::ReceiveTaskNotificationRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_AGENT_ENDPOINT_SERVICE_RECEIVE_TASK_NOTIFICATION, req, opt) - } - - pub fn receive_task_notification(&self, req: &super::agentendpoint::ReceiveTaskNotificationRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.receive_task_notification_opt(req, ::grpcio::CallOption::default()) - } - - pub fn start_next_task_opt(&self, req: &super::agentendpoint::StartNextTaskRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_AGENT_ENDPOINT_SERVICE_START_NEXT_TASK, req, opt) - } - - pub fn start_next_task(&self, req: &super::agentendpoint::StartNextTaskRequest) -> ::grpcio::Result { - self.start_next_task_opt(req, ::grpcio::CallOption::default()) - } - - pub fn start_next_task_async_opt(&self, req: &super::agentendpoint::StartNextTaskRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_AGENT_ENDPOINT_SERVICE_START_NEXT_TASK, req, opt) - } - - pub fn start_next_task_async(&self, req: &super::agentendpoint::StartNextTaskRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.start_next_task_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_task_progress_opt(&self, req: &super::agentendpoint::ReportTaskProgressRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_PROGRESS, req, opt) - } - - pub fn report_task_progress(&self, req: &super::agentendpoint::ReportTaskProgressRequest) -> ::grpcio::Result { - self.report_task_progress_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_task_progress_async_opt(&self, req: &super::agentendpoint::ReportTaskProgressRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_PROGRESS, req, opt) - } - - pub fn report_task_progress_async(&self, req: &super::agentendpoint::ReportTaskProgressRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.report_task_progress_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_task_complete_opt(&self, req: &super::agentendpoint::ReportTaskCompleteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_COMPLETE, req, opt) - } - - pub fn report_task_complete(&self, req: &super::agentendpoint::ReportTaskCompleteRequest) -> ::grpcio::Result { - self.report_task_complete_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_task_complete_async_opt(&self, req: &super::agentendpoint::ReportTaskCompleteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_COMPLETE, req, opt) - } - - pub fn report_task_complete_async(&self, req: &super::agentendpoint::ReportTaskCompleteRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.report_task_complete_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn register_agent_opt(&self, req: &super::agentendpoint::RegisterAgentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_AGENT_ENDPOINT_SERVICE_REGISTER_AGENT, req, opt) - } - - pub fn register_agent(&self, req: &super::agentendpoint::RegisterAgentRequest) -> ::grpcio::Result { - self.register_agent_opt(req, ::grpcio::CallOption::default()) - } - - pub fn register_agent_async_opt(&self, req: &super::agentendpoint::RegisterAgentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_AGENT_ENDPOINT_SERVICE_REGISTER_AGENT, req, opt) - } - - pub fn register_agent_async(&self, req: &super::agentendpoint::RegisterAgentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.register_agent_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_inventory_opt(&self, req: &super::agentendpoint::ReportInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_INVENTORY, req, opt) - } - - pub fn report_inventory(&self, req: &super::agentendpoint::ReportInventoryRequest) -> ::grpcio::Result { - self.report_inventory_opt(req, ::grpcio::CallOption::default()) - } - - pub fn report_inventory_async_opt(&self, req: &super::agentendpoint::ReportInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_INVENTORY, req, opt) - } - - pub fn report_inventory_async(&self, req: &super::agentendpoint::ReportInventoryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.report_inventory_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait AgentEndpointService { - fn receive_task_notification(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::ReceiveTaskNotificationRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn start_next_task(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::StartNextTaskRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn report_task_progress(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::ReportTaskProgressRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn report_task_complete(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::ReportTaskCompleteRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn register_agent(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::RegisterAgentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn report_inventory(&mut self, ctx: ::grpcio::RpcContext, _req: super::agentendpoint::ReportInventoryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_agent_endpoint_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_server_streaming_handler(&METHOD_AGENT_ENDPOINT_SERVICE_RECEIVE_TASK_NOTIFICATION, move |ctx, req, resp| { - instance.receive_task_notification(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_AGENT_ENDPOINT_SERVICE_START_NEXT_TASK, move |ctx, req, resp| { - instance.start_next_task(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_PROGRESS, move |ctx, req, resp| { - instance.report_task_progress(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_TASK_COMPLETE, move |ctx, req, resp| { - instance.report_task_complete(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_AGENT_ENDPOINT_SERVICE_REGISTER_AGENT, move |ctx, req, resp| { - instance.register_agent(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_AGENT_ENDPOINT_SERVICE_REPORT_INVENTORY, move |ctx, req, resp| { - instance.report_inventory(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/config_common.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/config_common.rs deleted file mode 100644 index 352a1ac..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/config_common.rs +++ /dev/null @@ -1,1054 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/config_common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceConfigStep { - // message fields - pub field_type: OSPolicyResourceConfigStep_Type, - pub outcome: OSPolicyResourceConfigStep_Outcome, - pub error_message: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceConfigStep { - fn default() -> &'a OSPolicyResourceConfigStep { - ::default_instance() - } -} - -impl OSPolicyResourceConfigStep { - pub fn new() -> OSPolicyResourceConfigStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicyResourceConfigStep.Type type = 1; - - - pub fn get_field_type(&self) -> OSPolicyResourceConfigStep_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: OSPolicyResourceConfigStep_Type) { - self.field_type = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicyResourceConfigStep.Outcome outcome = 2; - - - pub fn get_outcome(&self) -> OSPolicyResourceConfigStep_Outcome { - self.outcome - } - pub fn clear_outcome(&mut self) { - self.outcome = OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_outcome(&mut self, v: OSPolicyResourceConfigStep_Outcome) { - self.outcome = v; - } - - // string error_message = 3; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyResourceConfigStep { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.outcome, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - if self.outcome != OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.outcome); - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.error_message); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if self.outcome != OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.outcome))?; - } - if !self.error_message.is_empty() { - os.write_string(3, &self.error_message)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceConfigStep { - OSPolicyResourceConfigStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &OSPolicyResourceConfigStep| { &m.field_type }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "outcome", - |m: &OSPolicyResourceConfigStep| { &m.outcome }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.outcome }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &OSPolicyResourceConfigStep| { &m.error_message }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.error_message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceConfigStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceConfigStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceConfigStep::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceConfigStep { - fn clear(&mut self) { - self.field_type = OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - self.outcome = OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED; - self.error_message.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceConfigStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyResourceConfigStep_Type { - TYPE_UNSPECIFIED = 0, - VALIDATION = 1, - DESIRED_STATE_CHECK = 2, - DESIRED_STATE_ENFORCEMENT = 3, - DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyResourceConfigStep_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK), - 3 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT), - 4 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyResourceConfigStep_Type] = &[ - OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED, - OSPolicyResourceConfigStep_Type::VALIDATION, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyResourceConfigStep.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyResourceConfigStep_Type { -} - -impl ::std::default::Default for OSPolicyResourceConfigStep_Type { - fn default() -> Self { - OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyResourceConfigStep_Outcome { - OUTCOME_UNSPECIFIED = 0, - SUCCEEDED = 1, - FAILED = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyResourceConfigStep_Outcome { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::SUCCEEDED), - 2 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::FAILED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyResourceConfigStep_Outcome] = &[ - OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED, - OSPolicyResourceConfigStep_Outcome::SUCCEEDED, - OSPolicyResourceConfigStep_Outcome::FAILED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyResourceConfigStep.Outcome", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyResourceConfigStep_Outcome { -} - -impl ::std::default::Default for OSPolicyResourceConfigStep_Outcome { - fn default() -> Self { - OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep_Outcome { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceCompliance { - // message fields - pub os_policy_resource_id: ::std::string::String, - pub config_steps: ::protobuf::RepeatedField, - pub state: OSPolicyComplianceState, - // message oneof groups - pub output: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceCompliance { - fn default() -> &'a OSPolicyResourceCompliance { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicyResourceCompliance_oneof_output { - exec_resource_output(OSPolicyResourceCompliance_ExecResourceOutput), -} - -impl OSPolicyResourceCompliance { - pub fn new() -> OSPolicyResourceCompliance { - ::std::default::Default::default() - } - - // string os_policy_resource_id = 1; - - - pub fn get_os_policy_resource_id(&self) -> &str { - &self.os_policy_resource_id - } - pub fn clear_os_policy_resource_id(&mut self) { - self.os_policy_resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_id(&mut self, v: ::std::string::String) { - self.os_policy_resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_resource_id - } - - // Take field - pub fn take_os_policy_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_resource_id, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.OSPolicyResourceConfigStep config_steps = 2; - - - pub fn get_config_steps(&self) -> &[OSPolicyResourceConfigStep] { - &self.config_steps - } - pub fn clear_config_steps(&mut self) { - self.config_steps.clear(); - } - - // Param is passed by value, moved - pub fn set_config_steps(&mut self, v: ::protobuf::RepeatedField) { - self.config_steps = v; - } - - // Mutable pointer to the field. - pub fn mut_config_steps(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.config_steps - } - - // Take field - pub fn take_config_steps(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.config_steps, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicyComplianceState state = 3; - - - pub fn get_state(&self) -> OSPolicyComplianceState { - self.state - } - pub fn clear_state(&mut self) { - self.state = OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: OSPolicyComplianceState) { - self.state = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4; - - - pub fn get_exec_resource_output(&self) -> &OSPolicyResourceCompliance_ExecResourceOutput { - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_resource_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_exec_resource_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_resource_output(&mut self, v: OSPolicyResourceCompliance_ExecResourceOutput) { - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_resource_output(&mut self) -> &mut OSPolicyResourceCompliance_ExecResourceOutput { - if let ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(OSPolicyResourceCompliance_ExecResourceOutput::new())); - } - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_resource_output(&mut self) -> OSPolicyResourceCompliance_ExecResourceOutput { - if self.has_exec_resource_output() { - match self.output.take() { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) => v, - _ => panic!(), - } - } else { - OSPolicyResourceCompliance_ExecResourceOutput::new() - } - } -} - -impl ::protobuf::Message for OSPolicyResourceCompliance { - fn is_initialized(&self) -> bool { - for v in &self.config_steps { - if !v.is_initialized() { - return false; - } - }; - if let Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_resource_id)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.config_steps)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_resource_id); - } - for value in &self.config_steps { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.state != OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_resource_id.is_empty() { - os.write_string(1, &self.os_policy_resource_id)?; - } - for v in &self.config_steps { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.state != OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceCompliance { - OSPolicyResourceCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_resource_id", - |m: &OSPolicyResourceCompliance| { &m.os_policy_resource_id }, - |m: &mut OSPolicyResourceCompliance| { &mut m.os_policy_resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_steps", - |m: &OSPolicyResourceCompliance| { &m.config_steps }, - |m: &mut OSPolicyResourceCompliance| { &mut m.config_steps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &OSPolicyResourceCompliance| { &m.state }, - |m: &mut OSPolicyResourceCompliance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicyResourceCompliance_ExecResourceOutput>( - "exec_resource_output", - OSPolicyResourceCompliance::has_exec_resource_output, - OSPolicyResourceCompliance::get_exec_resource_output, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceCompliance { - fn clear(&mut self) { - self.os_policy_resource_id.clear(); - self.config_steps.clear(); - self.state = OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - self.output = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceCompliance_ExecResourceOutput { - // message fields - pub enforcement_output: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceCompliance_ExecResourceOutput { - fn default() -> &'a OSPolicyResourceCompliance_ExecResourceOutput { - ::default_instance() - } -} - -impl OSPolicyResourceCompliance_ExecResourceOutput { - pub fn new() -> OSPolicyResourceCompliance_ExecResourceOutput { - ::std::default::Default::default() - } - - // bytes enforcement_output = 2; - - - pub fn get_enforcement_output(&self) -> &[u8] { - &self.enforcement_output - } - pub fn clear_enforcement_output(&mut self) { - self.enforcement_output.clear(); - } - - // Param is passed by value, moved - pub fn set_enforcement_output(&mut self, v: ::std::vec::Vec) { - self.enforcement_output = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforcement_output(&mut self) -> &mut ::std::vec::Vec { - &mut self.enforcement_output - } - - // Take field - pub fn take_enforcement_output(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.enforcement_output, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for OSPolicyResourceCompliance_ExecResourceOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.enforcement_output)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.enforcement_output.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.enforcement_output); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.enforcement_output.is_empty() { - os.write_bytes(2, &self.enforcement_output)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceCompliance_ExecResourceOutput { - OSPolicyResourceCompliance_ExecResourceOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "enforcement_output", - |m: &OSPolicyResourceCompliance_ExecResourceOutput| { &m.enforcement_output }, - |m: &mut OSPolicyResourceCompliance_ExecResourceOutput| { &mut m.enforcement_output }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceCompliance.ExecResourceOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceCompliance_ExecResourceOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceCompliance_ExecResourceOutput::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceCompliance_ExecResourceOutput { - fn clear(&mut self) { - self.enforcement_output.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceCompliance_ExecResourceOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceCompliance_ExecResourceOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyComplianceState { - OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, - UNKNOWN = 3, - NO_OS_POLICIES_APPLICABLE = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyComplianceState::NON_COMPLIANT), - 3 => ::std::option::Option::Some(OSPolicyComplianceState::UNKNOWN), - 4 => ::std::option::Option::Some(OSPolicyComplianceState::NO_OS_POLICIES_APPLICABLE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyComplianceState] = &[ - OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED, - OSPolicyComplianceState::COMPLIANT, - OSPolicyComplianceState::NON_COMPLIANT, - OSPolicyComplianceState::UNKNOWN, - OSPolicyComplianceState::NO_OS_POLICIES_APPLICABLE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyComplianceState { -} - -impl ::std::default::Default for OSPolicyComplianceState { - fn default() -> Self { - OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n:google/cloud/osconfig/agentendpoint/v1/config_common.proto\x12&google\ - .cloud.osconfig.agentendpoint.v1\"\xd4\x03\n\x1aOSPolicyResourceConfigSt\ - ep\x12[\n\x04type\x18\x01\x20\x01(\x0e2G.google.cloud.osconfig.agentendp\ - oint.v1.OSPolicyResourceConfigStep.TypeR\x04type\x12d\n\x07outcome\x18\ - \x02\x20\x01(\x0e2J.google.cloud.osconfig.agentendpoint.v1.OSPolicyResou\ - rceConfigStep.OutcomeR\x07outcome\x12#\n\rerror_message\x18\x03\x20\x01(\ - \tR\x0cerrorMessage\"\x8e\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\ - \x10\0\x12\x0e\n\nVALIDATION\x10\x01\x12\x17\n\x13DESIRED_STATE_CHECK\ - \x10\x02\x12\x1d\n\x19DESIRED_STATE_ENFORCEMENT\x10\x03\x12(\n$DESIRED_S\ - TATE_CHECK_POST_ENFORCEMENT\x10\x04\"=\n\x07Outcome\x12\x17\n\x13OUTCOME\ - _UNSPECIFIED\x10\0\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06FAILED\x10\x02\ - \"\xe8\x03\n\x1aOSPolicyResourceCompliance\x121\n\x15os_policy_resource_\ - id\x18\x01\x20\x01(\tR\x12osPolicyResourceId\x12e\n\x0cconfig_steps\x18\ - \x02\x20\x03(\x0b2B.google.cloud.osconfig.agentendpoint.v1.OSPolicyResou\ - rceConfigStepR\x0bconfigSteps\x12U\n\x05state\x18\x03\x20\x01(\x0e2?.goo\ - gle.cloud.osconfig.agentendpoint.v1.OSPolicyComplianceStateR\x05state\ - \x12\x89\x01\n\x14exec_resource_output\x18\x04\x20\x01(\x0b2U.google.clo\ - ud.osconfig.agentendpoint.v1.OSPolicyResourceCompliance.ExecResourceOutp\ - utH\0R\x12execResourceOutput\x1aC\n\x12ExecResourceOutput\x12-\n\x12enfo\ - rcement_output\x18\x02\x20\x01(\x0cR\x11enforcementOutputB\x08\n\x06outp\ - ut*\x93\x01\n\x17OSPolicyComplianceState\x12*\n&OS_POLICY_COMPLIANCE_STA\ - TE_UNSPECIFIED\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\ - \x10\x02\x12\x0b\n\x07UNKNOWN\x10\x03\x12\x1d\n\x19NO_OS_POLICIES_APPLIC\ - ABLE\x10\x04B\x93\x01\n*com.google.cloud.osconfig.agentendpoint.v1B\x11C\ - onfigCommonProtoP\x01ZPcloud.google.com/go/osconfig/agentendpoint/apiv1/\ - agentendpointpb;agentendpointpbJ\xa6\x1c\n\x06\x12\x04\x0e\0t\x01\n\xbc\ - \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\ - \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ - \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ - \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ - ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ - \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ - \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ - riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ - \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ - RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ - \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0/\n\x08\n\x01\x08\ - \x12\x03\x12\0g\n\t\n\x02\x08\x0b\x12\x03\x12\0g\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\02\ - \n\t\n\x02\x08\x08\x12\x03\x14\02\n\x08\n\x01\x08\x12\x03\x15\0C\n\t\n\ - \x02\x08\x01\x12\x03\x15\0C\np\n\x02\x04\0\x12\x04\x19\0G\x01\x1ad\x20St\ - ep\x20performed\x20by\x20the\x20OS\x20Config\x20agent\x20for\x20configur\ - ing\x20an\x20`OSPolicyResource`\n\x20to\x20its\x20desired\x20state.\n\n\ - \n\n\x03\x04\0\x01\x12\x03\x19\x08\"\n2\n\x04\x04\0\x04\0\x12\x04\x1b\ - \x020\x03\x1a$\x20Supported\x20configuration\x20step\x20types\n\n\x0c\n\ - \x05\x04\0\x04\0\x01\x12\x03\x1b\x07\x0b\n5\n\x06\x04\0\x04\0\x02\0\x12\ - \x03\x1d\x04\x19\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unu\ - sed.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1d\x04\x14\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x02\x12\x03\x1d\x17\x18\nM\n\x06\x04\0\x04\0\x02\x01\ - \x12\x03\x20\x04\x13\x1a>\x20Validation\x20to\x20detect\x20resource\x20c\ - onflicts,\x20schema\x20errors,\x20etc.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\ - \x01\x12\x03\x20\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03\x20\ - \x11\x12\nH\n\x06\x04\0\x04\0\x02\x02\x12\x03#\x04\x1c\x1a9\x20Check\x20\ - the\x20current\x20desired\x20state\x20status\x20of\x20the\x20resource.\n\ - \n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03#\x04\x17\n\x0e\n\x07\x04\0\ - \x04\0\x02\x02\x02\x12\x03#\x1a\x1b\nW\n\x06\x04\0\x04\0\x02\x03\x12\x03\ - &\x04\"\x1aH\x20Enforce\x20the\x20desired\x20state\x20for\x20a\x20resour\ - ce\x20that\x20is\x20not\x20in\x20desired\x20state.\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\x03\x01\x12\x03&\x04\x1d\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\ - \x12\x03&\x20!\n\x83\x03\n\x06\x04\0\x04\0\x02\x04\x12\x03/\x04-\x1a\xf3\ - \x02\x20Re-check\x20desired\x20state\x20status\x20for\x20a\x20resource\ - \x20after\x20enforcement\x20of\x20all\n\x20resources\x20in\x20the\x20cur\ - rent\x20configuration\x20run.\n\n\x20This\x20step\x20is\x20used\x20to\ - \x20determine\x20the\x20final\x20desired\x20state\x20status\x20for\x20th\ - e\n\x20resource.\x20It\x20accounts\x20for\x20any\x20resources\x20that\ - \x20might\x20have\x20drifted\x20from\n\x20their\x20desired\x20state\x20d\ - ue\x20to\x20side\x20effects\x20from\x20configuring\x20other\x20resources\ - \n\x20during\x20the\x20current\x20configuration\x20run.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\x04\x01\x12\x03/\x04(\n\x0e\n\x07\x04\0\x04\0\x02\x04\ - \x02\x12\x03/+,\n<\n\x04\x04\0\x04\x01\x12\x043\x02<\x03\x1a.\x20Support\ - ed\x20outcomes\x20for\x20a\x20configuration\x20step.\n\n\x0c\n\x05\x04\0\ - \x04\x01\x01\x12\x033\x07\x0e\n5\n\x06\x04\0\x04\x01\x02\0\x12\x035\x04\ - \x1c\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unused.\n\n\x0e\ - \n\x07\x04\0\x04\x01\x02\0\x01\x12\x035\x04\x17\n\x0e\n\x07\x04\0\x04\ - \x01\x02\0\x02\x12\x035\x1a\x1b\n$\n\x06\x04\0\x04\x01\x02\x01\x12\x038\ - \x04\x12\x1a\x15\x20The\x20step\x20succeeded.\n\n\x0e\n\x07\x04\0\x04\ - \x01\x02\x01\x01\x12\x038\x04\r\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\ - \x12\x038\x10\x11\n!\n\x06\x04\0\x04\x01\x02\x02\x12\x03;\x04\x0f\x1a\ - \x12\x20The\x20step\x20failed.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x01\ - \x12\x03;\x04\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03;\r\x0e\n'\ - \n\x04\x04\0\x02\0\x12\x03?\x02\x10\x1a\x1a\x20Configuration\x20step\x20\ - type.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03?\x02\x06\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03?\x07\x0b\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03?\x0e\x0f\ - \n1\n\x04\x04\0\x02\x01\x12\x03B\x02\x16\x1a$\x20Outcome\x20of\x20the\ - \x20configuration\x20step.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03B\x02\ - \t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03B\n\x11\n\x0c\n\x05\x04\0\x02\ - \x01\x03\x12\x03B\x14\x15\ns\n\x04\x04\0\x02\x02\x12\x03F\x02\x1b\x1af\ - \x20An\x20error\x20message\x20recorded\x20during\x20the\x20execution\x20\ - of\x20this\x20step.\n\x20Only\x20populated\x20when\x20outcome\x20is\x20F\ - AILED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03F\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03F\t\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03F\x19\ - \x1a\n8\n\x02\x04\x01\x12\x04J\0a\x01\x1a,\x20Compliance\x20data\x20for\ - \x20an\x20OS\x20policy\x20resource.\n\n\n\n\x03\x04\x01\x01\x12\x03J\x08\ - \"\n-\n\x04\x04\x01\x03\0\x12\x04L\x02P\x03\x1a\x1f\x20ExecResource\x20s\ - pecific\x20output.\n\n\x0c\n\x05\x04\x01\x03\0\x01\x12\x03L\n\x1c\nk\n\ - \x06\x04\x01\x03\0\x02\0\x12\x03O\x04!\x1a\\\x20Output\x20from\x20Enforc\ - ement\x20phase\x20output\x20file\x20(if\x20run).\n\x20Output\x20size\x20\ - is\x20limited\x20to\x20100K\x20bytes.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\ - \x05\x12\x03O\x04\t\n\x0e\n\x07\x04\x01\x03\0\x02\0\x01\x12\x03O\n\x1c\n\ - \x0e\n\x07\x04\x01\x03\0\x02\0\x03\x12\x03O\x1f\x20\n0\n\x04\x04\x01\x02\ - \0\x12\x03S\x02#\x1a#\x20The\x20id\x20of\x20the\x20OS\x20policy\x20resou\ - rce.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03S\x02\x08\n\x0c\n\x05\x04\ - \x01\x02\0\x01\x12\x03S\t\x1e\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03S!\"\ - \nb\n\x04\x04\x01\x02\x01\x12\x03W\x027\x1aU\x20Ordered\x20list\x20of\ - \x20configuration\x20steps\x20taken\x20by\x20the\x20agent\x20for\x20the\ - \x20OS\x20policy\n\x20resource.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\ - \x03W\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03W\x0b%\n\x0c\n\x05\ - \x04\x01\x02\x01\x01\x12\x03W&2\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03W\ - 56\n:\n\x04\x04\x01\x02\x02\x12\x03Z\x02$\x1a-\x20Compliance\x20state\ - \x20of\x20the\x20OS\x20policy\x20resource.\n\n\x0c\n\x05\x04\x01\x02\x02\ - \x06\x12\x03Z\x02\x19\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03Z\x1a\x1f\n\ - \x0c\n\x05\x04\x01\x02\x02\x03\x12\x03Z\"#\n)\n\x04\x04\x01\x08\0\x12\ - \x04]\x02`\x03\x1a\x1b\x20Resource\x20specific\x20output.\n\n\x0c\n\x05\ - \x04\x01\x08\0\x01\x12\x03]\x08\x0e\n,\n\x04\x04\x01\x02\x03\x12\x03_\ - \x040\x1a\x1f\x20ExecResource\x20specific\x20output.\n\n\x0c\n\x05\x04\ - \x01\x02\x03\x06\x12\x03_\x04\x16\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\ - \x03_\x17+\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03_./\n3\n\x02\x05\0\x12\ - \x04d\0t\x01\x1a'\x20Supported\x20OSPolicy\x20compliance\x20states.\n\n\ - \n\n\x03\x05\0\x01\x12\x03d\x05\x1c\n3\n\x04\x05\0\x02\0\x12\x03f\x02-\ - \x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unused.\n\n\x0c\n\ - \x05\x05\0\x02\0\x01\x12\x03f\x02(\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03f+\ - ,\n\x1f\n\x04\x05\0\x02\x01\x12\x03i\x02\x10\x1a\x12\x20Compliant\x20sta\ - te.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03i\x02\x0b\n\x0c\n\x05\x05\0\ - \x02\x01\x02\x12\x03i\x0e\x0f\n\"\n\x04\x05\0\x02\x02\x12\x03l\x02\x14\ - \x1a\x15\x20Non-compliant\x20state\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\ - \x03l\x02\x0f\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03l\x12\x13\n(\n\x04\ - \x05\0\x02\x03\x12\x03o\x02\x0e\x1a\x1b\x20Unknown\x20compliance\x20stat\ - e.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03o\x02\t\n\x0c\n\x05\x05\0\x02\ - \x03\x02\x12\x03o\x0c\r\nu\n\x04\x05\0\x02\x04\x12\x03s\x02\x20\x1ah\x20\ - No\x20applicable\x20OS\x20policies\x20were\x20found\x20for\x20the\x20ins\ - tance.\n\x20This\x20state\x20is\x20only\x20applicable\x20to\x20the\x20in\ - stance.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03s\x02\x1b\n\x0c\n\x05\x05\ - \0\x02\x04\x02\x12\x03s\x1e\x1fb\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/inventory.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/inventory.rs deleted file mode 100644 index 7cb4497..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/inventory.rs +++ /dev/null @@ -1,3791 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/inventory.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory { - // message fields - pub os_info: ::protobuf::SingularPtrField, - pub installed_packages: ::protobuf::RepeatedField, - pub available_packages: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory { - fn default() -> &'a Inventory { - ::default_instance() - } -} - -impl Inventory { - pub fn new() -> Inventory { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.OsInfo os_info = 1; - - - pub fn get_os_info(&self) -> &Inventory_OsInfo { - self.os_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_info(&mut self) { - self.os_info.clear(); - } - - pub fn has_os_info(&self) -> bool { - self.os_info.is_some() - } - - // Param is passed by value, moved - pub fn set_os_info(&mut self, v: Inventory_OsInfo) { - self.os_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_info(&mut self) -> &mut Inventory_OsInfo { - if self.os_info.is_none() { - self.os_info.set_default(); - } - self.os_info.as_mut().unwrap() - } - - // Take field - pub fn take_os_info(&mut self) -> Inventory_OsInfo { - self.os_info.take().unwrap_or_else(|| Inventory_OsInfo::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.Inventory.SoftwarePackage installed_packages = 2; - - - pub fn get_installed_packages(&self) -> &[Inventory_SoftwarePackage] { - &self.installed_packages - } - pub fn clear_installed_packages(&mut self) { - self.installed_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_installed_packages(&mut self, v: ::protobuf::RepeatedField) { - self.installed_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_installed_packages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.installed_packages - } - - // Take field - pub fn take_installed_packages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.installed_packages, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.Inventory.SoftwarePackage available_packages = 3; - - - pub fn get_available_packages(&self) -> &[Inventory_SoftwarePackage] { - &self.available_packages - } - pub fn clear_available_packages(&mut self) { - self.available_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_available_packages(&mut self, v: ::protobuf::RepeatedField) { - self.available_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_available_packages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.available_packages - } - - // Take field - pub fn take_available_packages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.available_packages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Inventory { - fn is_initialized(&self) -> bool { - for v in &self.os_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.installed_packages { - if !v.is_initialized() { - return false; - } - }; - for v in &self.available_packages { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_info)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.installed_packages)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.available_packages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.os_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.installed_packages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.available_packages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.os_info.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.installed_packages { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.available_packages { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory { - Inventory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_info", - |m: &Inventory| { &m.os_info }, - |m: &mut Inventory| { &mut m.os_info }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "installed_packages", - |m: &Inventory| { &m.installed_packages }, - |m: &mut Inventory| { &mut m.installed_packages }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "available_packages", - |m: &Inventory| { &m.available_packages }, - |m: &mut Inventory| { &mut m.available_packages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory::new) - } -} - -impl ::protobuf::Clear for Inventory { - fn clear(&mut self) { - self.os_info.clear(); - self.installed_packages.clear(); - self.available_packages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_OsInfo { - // message fields - pub hostname: ::std::string::String, - pub long_name: ::std::string::String, - pub short_name: ::std::string::String, - pub version: ::std::string::String, - pub architecture: ::std::string::String, - pub kernel_version: ::std::string::String, - pub kernel_release: ::std::string::String, - pub osconfig_agent_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_OsInfo { - fn default() -> &'a Inventory_OsInfo { - ::default_instance() - } -} - -impl Inventory_OsInfo { - pub fn new() -> Inventory_OsInfo { - ::std::default::Default::default() - } - - // string hostname = 1; - - - pub fn get_hostname(&self) -> &str { - &self.hostname - } - pub fn clear_hostname(&mut self) { - self.hostname.clear(); - } - - // Param is passed by value, moved - pub fn set_hostname(&mut self, v: ::std::string::String) { - self.hostname = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hostname(&mut self) -> &mut ::std::string::String { - &mut self.hostname - } - - // Take field - pub fn take_hostname(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hostname, ::std::string::String::new()) - } - - // string long_name = 2; - - - pub fn get_long_name(&self) -> &str { - &self.long_name - } - pub fn clear_long_name(&mut self) { - self.long_name.clear(); - } - - // Param is passed by value, moved - pub fn set_long_name(&mut self, v: ::std::string::String) { - self.long_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_long_name(&mut self) -> &mut ::std::string::String { - &mut self.long_name - } - - // Take field - pub fn take_long_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.long_name, ::std::string::String::new()) - } - - // string short_name = 3; - - - pub fn get_short_name(&self) -> &str { - &self.short_name - } - pub fn clear_short_name(&mut self) { - self.short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_short_name(&mut self, v: ::std::string::String) { - self.short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_short_name(&mut self) -> &mut ::std::string::String { - &mut self.short_name - } - - // Take field - pub fn take_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.short_name, ::std::string::String::new()) - } - - // string version = 4; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // string architecture = 5; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string kernel_version = 6; - - - pub fn get_kernel_version(&self) -> &str { - &self.kernel_version - } - pub fn clear_kernel_version(&mut self) { - self.kernel_version.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_version(&mut self, v: ::std::string::String) { - self.kernel_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_version(&mut self) -> &mut ::std::string::String { - &mut self.kernel_version - } - - // Take field - pub fn take_kernel_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_version, ::std::string::String::new()) - } - - // string kernel_release = 7; - - - pub fn get_kernel_release(&self) -> &str { - &self.kernel_release - } - pub fn clear_kernel_release(&mut self) { - self.kernel_release.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_release(&mut self, v: ::std::string::String) { - self.kernel_release = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_release(&mut self) -> &mut ::std::string::String { - &mut self.kernel_release - } - - // Take field - pub fn take_kernel_release(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_release, ::std::string::String::new()) - } - - // string osconfig_agent_version = 8; - - - pub fn get_osconfig_agent_version(&self) -> &str { - &self.osconfig_agent_version - } - pub fn clear_osconfig_agent_version(&mut self) { - self.osconfig_agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_osconfig_agent_version(&mut self, v: ::std::string::String) { - self.osconfig_agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_osconfig_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.osconfig_agent_version - } - - // Take field - pub fn take_osconfig_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.osconfig_agent_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_OsInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hostname)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.long_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.short_name)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_version)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_release)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.osconfig_agent_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.hostname.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.hostname); - } - if !self.long_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.long_name); - } - if !self.short_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.short_name); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.version); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.architecture); - } - if !self.kernel_version.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.kernel_version); - } - if !self.kernel_release.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.kernel_release); - } - if !self.osconfig_agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.osconfig_agent_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.hostname.is_empty() { - os.write_string(1, &self.hostname)?; - } - if !self.long_name.is_empty() { - os.write_string(2, &self.long_name)?; - } - if !self.short_name.is_empty() { - os.write_string(3, &self.short_name)?; - } - if !self.version.is_empty() { - os.write_string(4, &self.version)?; - } - if !self.architecture.is_empty() { - os.write_string(5, &self.architecture)?; - } - if !self.kernel_version.is_empty() { - os.write_string(6, &self.kernel_version)?; - } - if !self.kernel_release.is_empty() { - os.write_string(7, &self.kernel_release)?; - } - if !self.osconfig_agent_version.is_empty() { - os.write_string(8, &self.osconfig_agent_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_OsInfo { - Inventory_OsInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hostname", - |m: &Inventory_OsInfo| { &m.hostname }, - |m: &mut Inventory_OsInfo| { &mut m.hostname }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "long_name", - |m: &Inventory_OsInfo| { &m.long_name }, - |m: &mut Inventory_OsInfo| { &mut m.long_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "short_name", - |m: &Inventory_OsInfo| { &m.short_name }, - |m: &mut Inventory_OsInfo| { &mut m.short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_OsInfo| { &m.version }, - |m: &mut Inventory_OsInfo| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_OsInfo| { &m.architecture }, - |m: &mut Inventory_OsInfo| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_version", - |m: &Inventory_OsInfo| { &m.kernel_version }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_release", - |m: &Inventory_OsInfo| { &m.kernel_release }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_release }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "osconfig_agent_version", - |m: &Inventory_OsInfo| { &m.osconfig_agent_version }, - |m: &mut Inventory_OsInfo| { &mut m.osconfig_agent_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.OsInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_OsInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_OsInfo::new) - } -} - -impl ::protobuf::Clear for Inventory_OsInfo { - fn clear(&mut self) { - self.hostname.clear(); - self.long_name.clear(); - self.short_name.clear(); - self.version.clear(); - self.architecture.clear(); - self.kernel_version.clear(); - self.kernel_release.clear(); - self.osconfig_agent_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_OsInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_OsInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_SoftwarePackage { - // message oneof groups - pub details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_SoftwarePackage { - fn default() -> &'a Inventory_SoftwarePackage { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Inventory_SoftwarePackage_oneof_details { - yum_package(Inventory_VersionedPackage), - apt_package(Inventory_VersionedPackage), - zypper_package(Inventory_VersionedPackage), - googet_package(Inventory_VersionedPackage), - zypper_patch(Inventory_ZypperPatch), - wua_package(Inventory_WindowsUpdatePackage), - qfe_package(Inventory_WindowsQuickFixEngineeringPackage), - cos_package(Inventory_VersionedPackage), - windows_application(Inventory_WindowsApplication), -} - -impl Inventory_SoftwarePackage { - pub fn new() -> Inventory_SoftwarePackage { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage yum_package = 1; - - - pub fn get_yum_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_yum_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum_package(&mut self) -> Inventory_VersionedPackage { - if self.has_yum_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage apt_package = 2; - - - pub fn get_apt_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_apt_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt_package(&mut self) -> Inventory_VersionedPackage { - if self.has_apt_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage zypper_package = 3; - - - pub fn get_zypper_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_package(&mut self) -> Inventory_VersionedPackage { - if self.has_zypper_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage googet_package = 4; - - - pub fn get_googet_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_googet_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet_package(&mut self) -> Inventory_VersionedPackage { - if self.has_googet_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.ZypperPatch zypper_patch = 5; - - - pub fn get_zypper_patch(&self) -> &Inventory_ZypperPatch { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_patch(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_patch(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_patch(&mut self, v: Inventory_ZypperPatch) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_patch(&mut self) -> &mut Inventory_ZypperPatch { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(Inventory_ZypperPatch::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_patch(&mut self) -> Inventory_ZypperPatch { - if self.has_zypper_patch() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) => v, - _ => panic!(), - } - } else { - Inventory_ZypperPatch::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsUpdatePackage wua_package = 6; - - - pub fn get_wua_package(&self) -> &Inventory_WindowsUpdatePackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_wua_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_wua_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_wua_package(&mut self, v: Inventory_WindowsUpdatePackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_wua_package(&mut self) -> &mut Inventory_WindowsUpdatePackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(Inventory_WindowsUpdatePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_wua_package(&mut self) -> Inventory_WindowsUpdatePackage { - if self.has_wua_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsUpdatePackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7; - - - pub fn get_qfe_package(&self) -> &Inventory_WindowsQuickFixEngineeringPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_qfe_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_qfe_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_qfe_package(&mut self, v: Inventory_WindowsQuickFixEngineeringPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_qfe_package(&mut self) -> &mut Inventory_WindowsQuickFixEngineeringPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(Inventory_WindowsQuickFixEngineeringPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_qfe_package(&mut self) -> Inventory_WindowsQuickFixEngineeringPackage { - if self.has_qfe_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage cos_package = 8; - - - pub fn get_cos_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_cos_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_cos_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cos_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_cos_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cos_package(&mut self) -> Inventory_VersionedPackage { - if self.has_cos_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsApplication windows_application = 9; - - - pub fn get_windows_application(&self) -> &Inventory_WindowsApplication { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_windows_application(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_windows_application(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_windows_application(&mut self, v: Inventory_WindowsApplication) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) - } - - // Mutable pointer to the field. - pub fn mut_windows_application(&mut self) -> &mut Inventory_WindowsApplication { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(Inventory_WindowsApplication::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_windows_application(&mut self) -> Inventory_WindowsApplication { - if self.has_windows_application() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsApplication::new() - } - } -} - -impl ::protobuf::Message for Inventory_SoftwarePackage { - fn is_initialized(&self) -> bool { - if let Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(is.read_message()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_SoftwarePackage { - Inventory_SoftwarePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "yum_package", - Inventory_SoftwarePackage::has_yum_package, - Inventory_SoftwarePackage::get_yum_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "apt_package", - Inventory_SoftwarePackage::has_apt_package, - Inventory_SoftwarePackage::get_apt_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "zypper_package", - Inventory_SoftwarePackage::has_zypper_package, - Inventory_SoftwarePackage::get_zypper_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "googet_package", - Inventory_SoftwarePackage::has_googet_package, - Inventory_SoftwarePackage::get_googet_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_ZypperPatch>( - "zypper_patch", - Inventory_SoftwarePackage::has_zypper_patch, - Inventory_SoftwarePackage::get_zypper_patch, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsUpdatePackage>( - "wua_package", - Inventory_SoftwarePackage::has_wua_package, - Inventory_SoftwarePackage::get_wua_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsQuickFixEngineeringPackage>( - "qfe_package", - Inventory_SoftwarePackage::has_qfe_package, - Inventory_SoftwarePackage::get_qfe_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "cos_package", - Inventory_SoftwarePackage::has_cos_package, - Inventory_SoftwarePackage::get_cos_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsApplication>( - "windows_application", - Inventory_SoftwarePackage::has_windows_application, - Inventory_SoftwarePackage::get_windows_application, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.SoftwarePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_SoftwarePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_SoftwarePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_SoftwarePackage { - fn clear(&mut self) { - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_SoftwarePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_SoftwarePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_VersionedPackage { - // message fields - pub package_name: ::std::string::String, - pub architecture: ::std::string::String, - pub version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_VersionedPackage { - fn default() -> &'a Inventory_VersionedPackage { - ::default_instance() - } -} - -impl Inventory_VersionedPackage { - pub fn new() -> Inventory_VersionedPackage { - ::std::default::Default::default() - } - - // string package_name = 1; - - - pub fn get_package_name(&self) -> &str { - &self.package_name - } - pub fn clear_package_name(&mut self) { - self.package_name.clear(); - } - - // Param is passed by value, moved - pub fn set_package_name(&mut self, v: ::std::string::String) { - self.package_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_package_name(&mut self) -> &mut ::std::string::String { - &mut self.package_name - } - - // Take field - pub fn take_package_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.package_name, ::std::string::String::new()) - } - - // string architecture = 2; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string version = 3; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_VersionedPackage { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.package_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.package_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.package_name); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.architecture); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.package_name.is_empty() { - os.write_string(1, &self.package_name)?; - } - if !self.architecture.is_empty() { - os.write_string(2, &self.architecture)?; - } - if !self.version.is_empty() { - os.write_string(3, &self.version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_VersionedPackage { - Inventory_VersionedPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "package_name", - |m: &Inventory_VersionedPackage| { &m.package_name }, - |m: &mut Inventory_VersionedPackage| { &mut m.package_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_VersionedPackage| { &m.architecture }, - |m: &mut Inventory_VersionedPackage| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_VersionedPackage| { &m.version }, - |m: &mut Inventory_VersionedPackage| { &mut m.version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.VersionedPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_VersionedPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_VersionedPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_VersionedPackage { - fn clear(&mut self) { - self.package_name.clear(); - self.architecture.clear(); - self.version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_VersionedPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_VersionedPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_ZypperPatch { - // message fields - pub patch_name: ::std::string::String, - pub category: ::std::string::String, - pub severity: ::std::string::String, - pub summary: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_ZypperPatch { - fn default() -> &'a Inventory_ZypperPatch { - ::default_instance() - } -} - -impl Inventory_ZypperPatch { - pub fn new() -> Inventory_ZypperPatch { - ::std::default::Default::default() - } - - // string patch_name = 1; - - - pub fn get_patch_name(&self) -> &str { - &self.patch_name - } - pub fn clear_patch_name(&mut self) { - self.patch_name.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_name(&mut self, v: ::std::string::String) { - self.patch_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_name(&mut self) -> &mut ::std::string::String { - &mut self.patch_name - } - - // Take field - pub fn take_patch_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.patch_name, ::std::string::String::new()) - } - - // string category = 2; - - - pub fn get_category(&self) -> &str { - &self.category - } - pub fn clear_category(&mut self) { - self.category.clear(); - } - - // Param is passed by value, moved - pub fn set_category(&mut self, v: ::std::string::String) { - self.category = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_category(&mut self) -> &mut ::std::string::String { - &mut self.category - } - - // Take field - pub fn take_category(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.category, ::std::string::String::new()) - } - - // string severity = 3; - - - pub fn get_severity(&self) -> &str { - &self.severity - } - pub fn clear_severity(&mut self) { - self.severity.clear(); - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: ::std::string::String) { - self.severity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_severity(&mut self) -> &mut ::std::string::String { - &mut self.severity - } - - // Take field - pub fn take_severity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.severity, ::std::string::String::new()) - } - - // string summary = 4; - - - pub fn get_summary(&self) -> &str { - &self.summary - } - pub fn clear_summary(&mut self) { - self.summary.clear(); - } - - // Param is passed by value, moved - pub fn set_summary(&mut self, v: ::std::string::String) { - self.summary = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_summary(&mut self) -> &mut ::std::string::String { - &mut self.summary - } - - // Take field - pub fn take_summary(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.summary, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_ZypperPatch { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.patch_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.category)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.severity)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.summary)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.patch_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.patch_name); - } - if !self.category.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.category); - } - if !self.severity.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.severity); - } - if !self.summary.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.summary); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.patch_name.is_empty() { - os.write_string(1, &self.patch_name)?; - } - if !self.category.is_empty() { - os.write_string(2, &self.category)?; - } - if !self.severity.is_empty() { - os.write_string(3, &self.severity)?; - } - if !self.summary.is_empty() { - os.write_string(4, &self.summary)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_ZypperPatch { - Inventory_ZypperPatch::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "patch_name", - |m: &Inventory_ZypperPatch| { &m.patch_name }, - |m: &mut Inventory_ZypperPatch| { &mut m.patch_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "category", - |m: &Inventory_ZypperPatch| { &m.category }, - |m: &mut Inventory_ZypperPatch| { &mut m.category }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severity", - |m: &Inventory_ZypperPatch| { &m.severity }, - |m: &mut Inventory_ZypperPatch| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "summary", - |m: &Inventory_ZypperPatch| { &m.summary }, - |m: &mut Inventory_ZypperPatch| { &mut m.summary }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.ZypperPatch", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_ZypperPatch { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_ZypperPatch::new) - } -} - -impl ::protobuf::Clear for Inventory_ZypperPatch { - fn clear(&mut self) { - self.patch_name.clear(); - self.category.clear(); - self.severity.clear(); - self.summary.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_ZypperPatch { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_ZypperPatch { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage { - // message fields - pub title: ::std::string::String, - pub description: ::std::string::String, - pub categories: ::protobuf::RepeatedField, - pub kb_article_ids: ::protobuf::RepeatedField<::std::string::String>, - pub support_url: ::std::string::String, - pub more_info_urls: ::protobuf::RepeatedField<::std::string::String>, - pub update_id: ::std::string::String, - pub revision_number: i32, - pub last_deployment_change_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage { - fn default() -> &'a Inventory_WindowsUpdatePackage { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage { - pub fn new() -> Inventory_WindowsUpdatePackage { - ::std::default::Default::default() - } - - // string title = 1; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3; - - - pub fn get_categories(&self) -> &[Inventory_WindowsUpdatePackage_WindowsUpdateCategory] { - &self.categories - } - pub fn clear_categories(&mut self) { - self.categories.clear(); - } - - // Param is passed by value, moved - pub fn set_categories(&mut self, v: ::protobuf::RepeatedField) { - self.categories = v; - } - - // Mutable pointer to the field. - pub fn mut_categories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.categories - } - - // Take field - pub fn take_categories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.categories, ::protobuf::RepeatedField::new()) - } - - // repeated string kb_article_ids = 4; - - - pub fn get_kb_article_ids(&self) -> &[::std::string::String] { - &self.kb_article_ids - } - pub fn clear_kb_article_ids(&mut self) { - self.kb_article_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_kb_article_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.kb_article_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_kb_article_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.kb_article_ids - } - - // Take field - pub fn take_kb_article_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.kb_article_ids, ::protobuf::RepeatedField::new()) - } - - // string support_url = 5; - - - pub fn get_support_url(&self) -> &str { - &self.support_url - } - pub fn clear_support_url(&mut self) { - self.support_url.clear(); - } - - // Param is passed by value, moved - pub fn set_support_url(&mut self, v: ::std::string::String) { - self.support_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_support_url(&mut self) -> &mut ::std::string::String { - &mut self.support_url - } - - // Take field - pub fn take_support_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.support_url, ::std::string::String::new()) - } - - // repeated string more_info_urls = 6; - - - pub fn get_more_info_urls(&self) -> &[::std::string::String] { - &self.more_info_urls - } - pub fn clear_more_info_urls(&mut self) { - self.more_info_urls.clear(); - } - - // Param is passed by value, moved - pub fn set_more_info_urls(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.more_info_urls = v; - } - - // Mutable pointer to the field. - pub fn mut_more_info_urls(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.more_info_urls - } - - // Take field - pub fn take_more_info_urls(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.more_info_urls, ::protobuf::RepeatedField::new()) - } - - // string update_id = 7; - - - pub fn get_update_id(&self) -> &str { - &self.update_id - } - pub fn clear_update_id(&mut self) { - self.update_id.clear(); - } - - // Param is passed by value, moved - pub fn set_update_id(&mut self, v: ::std::string::String) { - self.update_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_id(&mut self) -> &mut ::std::string::String { - &mut self.update_id - } - - // Take field - pub fn take_update_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.update_id, ::std::string::String::new()) - } - - // int32 revision_number = 8; - - - pub fn get_revision_number(&self) -> i32 { - self.revision_number - } - pub fn clear_revision_number(&mut self) { - self.revision_number = 0; - } - - // Param is passed by value, moved - pub fn set_revision_number(&mut self, v: i32) { - self.revision_number = v; - } - - // .google.protobuf.Timestamp last_deployment_change_time = 9; - - - pub fn get_last_deployment_change_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_deployment_change_time(&mut self) { - self.last_deployment_change_time.clear(); - } - - pub fn has_last_deployment_change_time(&self) -> bool { - self.last_deployment_change_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_deployment_change_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_deployment_change_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_deployment_change_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_deployment_change_time.is_none() { - self.last_deployment_change_time.set_default(); - } - self.last_deployment_change_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_deployment_change_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage { - fn is_initialized(&self) -> bool { - for v in &self.categories { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_deployment_change_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.categories)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.kb_article_ids)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.support_url)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.more_info_urls)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.update_id)?; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.revision_number = tmp; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_deployment_change_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.title); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - for value in &self.categories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.kb_article_ids { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.support_url.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.support_url); - } - for value in &self.more_info_urls { - my_size += ::protobuf::rt::string_size(6, &value); - }; - if !self.update_id.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.update_id); - } - if self.revision_number != 0 { - my_size += ::protobuf::rt::value_size(8, self.revision_number, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.title.is_empty() { - os.write_string(1, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - for v in &self.categories { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.kb_article_ids { - os.write_string(4, &v)?; - }; - if !self.support_url.is_empty() { - os.write_string(5, &self.support_url)?; - } - for v in &self.more_info_urls { - os.write_string(6, &v)?; - }; - if !self.update_id.is_empty() { - os.write_string(7, &self.update_id)?; - } - if self.revision_number != 0 { - os.write_int32(8, self.revision_number)?; - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage { - Inventory_WindowsUpdatePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &Inventory_WindowsUpdatePackage| { &m.title }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsUpdatePackage| { &m.description }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "categories", - |m: &Inventory_WindowsUpdatePackage| { &m.categories }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.categories }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kb_article_ids", - |m: &Inventory_WindowsUpdatePackage| { &m.kb_article_ids }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.kb_article_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "support_url", - |m: &Inventory_WindowsUpdatePackage| { &m.support_url }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.support_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "more_info_urls", - |m: &Inventory_WindowsUpdatePackage| { &m.more_info_urls }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.more_info_urls }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "update_id", - |m: &Inventory_WindowsUpdatePackage| { &m.update_id }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.update_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "revision_number", - |m: &Inventory_WindowsUpdatePackage| { &m.revision_number }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.revision_number }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_deployment_change_time", - |m: &Inventory_WindowsUpdatePackage| { &m.last_deployment_change_time }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.last_deployment_change_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage { - fn clear(&mut self) { - self.title.clear(); - self.description.clear(); - self.categories.clear(); - self.kb_article_ids.clear(); - self.support_url.clear(); - self.more_info_urls.clear(); - self.update_id.clear(); - self.revision_number = 0; - self.last_deployment_change_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - // message fields - pub id: ::std::string::String, - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn default() -> &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - pub fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string name = 2; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.name.is_empty() { - os.write_string(2, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.id }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.name }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage.WindowsUpdateCategory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn clear(&mut self) { - self.id.clear(); - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsQuickFixEngineeringPackage { - // message fields - pub caption: ::std::string::String, - pub description: ::std::string::String, - pub hot_fix_id: ::std::string::String, - pub install_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsQuickFixEngineeringPackage { - fn default() -> &'a Inventory_WindowsQuickFixEngineeringPackage { - ::default_instance() - } -} - -impl Inventory_WindowsQuickFixEngineeringPackage { - pub fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - ::std::default::Default::default() - } - - // string caption = 1; - - - pub fn get_caption(&self) -> &str { - &self.caption - } - pub fn clear_caption(&mut self) { - self.caption.clear(); - } - - // Param is passed by value, moved - pub fn set_caption(&mut self, v: ::std::string::String) { - self.caption = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_caption(&mut self) -> &mut ::std::string::String { - &mut self.caption - } - - // Take field - pub fn take_caption(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.caption, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string hot_fix_id = 3; - - - pub fn get_hot_fix_id(&self) -> &str { - &self.hot_fix_id - } - pub fn clear_hot_fix_id(&mut self) { - self.hot_fix_id.clear(); - } - - // Param is passed by value, moved - pub fn set_hot_fix_id(&mut self, v: ::std::string::String) { - self.hot_fix_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hot_fix_id(&mut self) -> &mut ::std::string::String { - &mut self.hot_fix_id - } - - // Take field - pub fn take_hot_fix_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hot_fix_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp install_time = 4; - - - pub fn get_install_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.install_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_install_time(&mut self) { - self.install_time.clear(); - } - - pub fn has_install_time(&self) -> bool { - self.install_time.is_some() - } - - // Param is passed by value, moved - pub fn set_install_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.install_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.install_time.is_none() { - self.install_time.set_default(); - } - self.install_time.as_mut().unwrap() - } - - // Take field - pub fn take_install_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.install_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsQuickFixEngineeringPackage { - fn is_initialized(&self) -> bool { - for v in &self.install_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.caption)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hot_fix_id)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.caption.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.caption); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if !self.hot_fix_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.hot_fix_id); - } - if let Some(ref v) = self.install_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.caption.is_empty() { - os.write_string(1, &self.caption)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if !self.hot_fix_id.is_empty() { - os.write_string(3, &self.hot_fix_id)?; - } - if let Some(ref v) = self.install_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "caption", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.caption }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.caption }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.description }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hot_fix_id", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.hot_fix_id }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.hot_fix_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "install_time", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.install_time }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.install_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsQuickFixEngineeringPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsQuickFixEngineeringPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsQuickFixEngineeringPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsQuickFixEngineeringPackage { - fn clear(&mut self) { - self.caption.clear(); - self.description.clear(); - self.hot_fix_id.clear(); - self.install_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsQuickFixEngineeringPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsQuickFixEngineeringPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsApplication { - // message fields - pub display_name: ::std::string::String, - pub display_version: ::std::string::String, - pub publisher: ::std::string::String, - pub install_date: ::protobuf::SingularPtrField, - pub help_link: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsApplication { - fn default() -> &'a Inventory_WindowsApplication { - ::default_instance() - } -} - -impl Inventory_WindowsApplication { - pub fn new() -> Inventory_WindowsApplication { - ::std::default::Default::default() - } - - // string display_name = 1; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string display_version = 2; - - - pub fn get_display_version(&self) -> &str { - &self.display_version - } - pub fn clear_display_version(&mut self) { - self.display_version.clear(); - } - - // Param is passed by value, moved - pub fn set_display_version(&mut self, v: ::std::string::String) { - self.display_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_version(&mut self) -> &mut ::std::string::String { - &mut self.display_version - } - - // Take field - pub fn take_display_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_version, ::std::string::String::new()) - } - - // string publisher = 3; - - - pub fn get_publisher(&self) -> &str { - &self.publisher - } - pub fn clear_publisher(&mut self) { - self.publisher.clear(); - } - - // Param is passed by value, moved - pub fn set_publisher(&mut self, v: ::std::string::String) { - self.publisher = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_publisher(&mut self) -> &mut ::std::string::String { - &mut self.publisher - } - - // Take field - pub fn take_publisher(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.publisher, ::std::string::String::new()) - } - - // .google.type.Date install_date = 4; - - - pub fn get_install_date(&self) -> &super::date::Date { - self.install_date.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_install_date(&mut self) { - self.install_date.clear(); - } - - pub fn has_install_date(&self) -> bool { - self.install_date.is_some() - } - - // Param is passed by value, moved - pub fn set_install_date(&mut self, v: super::date::Date) { - self.install_date = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_date(&mut self) -> &mut super::date::Date { - if self.install_date.is_none() { - self.install_date.set_default(); - } - self.install_date.as_mut().unwrap() - } - - // Take field - pub fn take_install_date(&mut self) -> super::date::Date { - self.install_date.take().unwrap_or_else(|| super::date::Date::new()) - } - - // string help_link = 5; - - - pub fn get_help_link(&self) -> &str { - &self.help_link - } - pub fn clear_help_link(&mut self) { - self.help_link.clear(); - } - - // Param is passed by value, moved - pub fn set_help_link(&mut self, v: ::std::string::String) { - self.help_link = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_help_link(&mut self) -> &mut ::std::string::String { - &mut self.help_link - } - - // Take field - pub fn take_help_link(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.help_link, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsApplication { - fn is_initialized(&self) -> bool { - for v in &self.install_date { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_version)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.publisher)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_date)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.help_link)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.display_name); - } - if !self.display_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_version); - } - if !self.publisher.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.publisher); - } - if let Some(ref v) = self.install_date.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.help_link.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.help_link); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.display_name.is_empty() { - os.write_string(1, &self.display_name)?; - } - if !self.display_version.is_empty() { - os.write_string(2, &self.display_version)?; - } - if !self.publisher.is_empty() { - os.write_string(3, &self.publisher)?; - } - if let Some(ref v) = self.install_date.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.help_link.is_empty() { - os.write_string(5, &self.help_link)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsApplication { - Inventory_WindowsApplication::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Inventory_WindowsApplication| { &m.display_name }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_version", - |m: &Inventory_WindowsApplication| { &m.display_version }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "publisher", - |m: &Inventory_WindowsApplication| { &m.publisher }, - |m: &mut Inventory_WindowsApplication| { &mut m.publisher }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "install_date", - |m: &Inventory_WindowsApplication| { &m.install_date }, - |m: &mut Inventory_WindowsApplication| { &mut m.install_date }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "help_link", - |m: &Inventory_WindowsApplication| { &m.help_link }, - |m: &mut Inventory_WindowsApplication| { &mut m.help_link }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsApplication", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsApplication { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsApplication::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsApplication { - fn clear(&mut self) { - self.display_name.clear(); - self.display_version.clear(); - self.publisher.clear(); - self.install_date.clear(); - self.help_link.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsApplication { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsApplication { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n6google/cloud/osconfig/agentendpoint/v1/inventory.proto\x12&google.clo\ - ud.osconfig.agentendpoint.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\ - \x16google/type/date.proto\"\xf7\x15\n\tInventory\x12Q\n\x07os_info\x18\ - \x01\x20\x01(\x0b28.google.cloud.osconfig.agentendpoint.v1.Inventory.OsI\ - nfoR\x06osInfo\x12p\n\x12installed_packages\x18\x02\x20\x03(\x0b2A.googl\ - e.cloud.osconfig.agentendpoint.v1.Inventory.SoftwarePackageR\x11installe\ - dPackages\x12p\n\x12available_packages\x18\x03\x20\x03(\x0b2A.google.clo\ - ud.osconfig.agentendpoint.v1.Inventory.SoftwarePackageR\x11availablePack\ - ages\x1a\xa2\x02\n\x06OsInfo\x12\x1a\n\x08hostname\x18\x01\x20\x01(\tR\ - \x08hostname\x12\x1b\n\tlong_name\x18\x02\x20\x01(\tR\x08longName\x12\ - \x1d\n\nshort_name\x18\x03\x20\x01(\tR\tshortName\x12\x18\n\x07version\ - \x18\x04\x20\x01(\tR\x07version\x12\"\n\x0carchitecture\x18\x05\x20\x01(\ - \tR\x0carchitecture\x12%\n\x0ekernel_version\x18\x06\x20\x01(\tR\rkernel\ - Version\x12%\n\x0ekernel_release\x18\x07\x20\x01(\tR\rkernelRelease\x124\ - \n\x16osconfig_agent_version\x18\x08\x20\x01(\tR\x14osconfigAgentVersion\ - \x1a\xeb\x07\n\x0fSoftwarePackage\x12e\n\x0byum_package\x18\x01\x20\x01(\ - \x0b2B.google.cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackage\ - H\0R\nyumPackage\x12e\n\x0bapt_package\x18\x02\x20\x01(\x0b2B.google.clo\ - ud.osconfig.agentendpoint.v1.Inventory.VersionedPackageH\0R\naptPackage\ - \x12k\n\x0ezypper_package\x18\x03\x20\x01(\x0b2B.google.cloud.osconfig.a\ - gentendpoint.v1.Inventory.VersionedPackageH\0R\rzypperPackage\x12k\n\x0e\ - googet_package\x18\x04\x20\x01(\x0b2B.google.cloud.osconfig.agentendpoin\ - t.v1.Inventory.VersionedPackageH\0R\rgoogetPackage\x12b\n\x0czypper_patc\ - h\x18\x05\x20\x01(\x0b2=.google.cloud.osconfig.agentendpoint.v1.Inventor\ - y.ZypperPatchH\0R\x0bzypperPatch\x12i\n\x0bwua_package\x18\x06\x20\x01(\ - \x0b2F.google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsUpdatePac\ - kageH\0R\nwuaPackage\x12v\n\x0bqfe_package\x18\x07\x20\x01(\x0b2S.google\ - .cloud.osconfig.agentendpoint.v1.Inventory.WindowsQuickFixEngineeringPac\ - kageH\0R\nqfePackage\x12e\n\x0bcos_package\x18\x08\x20\x01(\x0b2B.google\ - .cloud.osconfig.agentendpoint.v1.Inventory.VersionedPackageH\0R\ncosPack\ - age\x12w\n\x13windows_application\x18\t\x20\x01(\x0b2D.google.cloud.osco\ - nfig.agentendpoint.v1.Inventory.WindowsApplicationH\0R\x12windowsApplica\ - tionB\t\n\x07details\x1as\n\x10VersionedPackage\x12!\n\x0cpackage_name\ - \x18\x01\x20\x01(\tR\x0bpackageName\x12\"\n\x0carchitecture\x18\x02\x20\ - \x01(\tR\x0carchitecture\x12\x18\n\x07version\x18\x03\x20\x01(\tR\x07ver\ - sion\x1a~\n\x0bZypperPatch\x12\x1d\n\npatch_name\x18\x01\x20\x01(\tR\tpa\ - tchName\x12\x1a\n\x08category\x18\x02\x20\x01(\tR\x08category\x12\x1a\n\ - \x08severity\x18\x03\x20\x01(\tR\x08severity\x12\x18\n\x07summary\x18\ - \x04\x20\x01(\tR\x07summary\x1a\x97\x04\n\x14WindowsUpdatePackage\x12\ - \x14\n\x05title\x18\x01\x20\x01(\tR\x05title\x12\x20\n\x0bdescription\ - \x18\x02\x20\x01(\tR\x0bdescription\x12|\n\ncategories\x18\x03\x20\x03(\ - \x0b2\\.google.cloud.osconfig.agentendpoint.v1.Inventory.WindowsUpdatePa\ - ckage.WindowsUpdateCategoryR\ncategories\x12$\n\x0ekb_article_ids\x18\ - \x04\x20\x03(\tR\x0ckbArticleIds\x12\x1f\n\x0bsupport_url\x18\x05\x20\ - \x01(\tR\nsupportUrl\x12$\n\x0emore_info_urls\x18\x06\x20\x03(\tR\x0cmor\ - eInfoUrls\x12\x1b\n\tupdate_id\x18\x07\x20\x01(\tR\x08updateId\x12'\n\ - \x0frevision_number\x18\x08\x20\x01(\x05R\x0erevisionNumber\x12Y\n\x1bla\ - st_deployment_change_time\x18\t\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampR\x18lastDeploymentChangeTime\x1a;\n\x15WindowsUpdateCategory\x12\x0e\ - \n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\ - \x04name\x1a\xbc\x01\n!WindowsQuickFixEngineeringPackage\x12\x18\n\x07ca\ - ption\x18\x01\x20\x01(\tR\x07caption\x12\x20\n\x0bdescription\x18\x02\ - \x20\x01(\tR\x0bdescription\x12\x1c\n\nhot_fix_id\x18\x03\x20\x01(\tR\ - \x08hotFixId\x12=\n\x0cinstall_time\x18\x04\x20\x01(\x0b2\x1a.google.pro\ - tobuf.TimestampR\x0binstallTime\x1a\xd1\x01\n\x12WindowsApplication\x12!\ - \n\x0cdisplay_name\x18\x01\x20\x01(\tR\x0bdisplayName\x12'\n\x0fdisplay_\ - version\x18\x02\x20\x01(\tR\x0edisplayVersion\x12\x1c\n\tpublisher\x18\ - \x03\x20\x01(\tR\tpublisher\x124\n\x0cinstall_date\x18\x04\x20\x01(\x0b2\ - \x11.google.type.DateR\x0binstallDate\x12\x1b\n\thelp_link\x18\x05\x20\ - \x01(\tR\x08helpLinkB\x90\x01\n*com.google.cloud.osconfig.agentendpoint.\ - v1B\x0eInventoryProtoP\x01ZPcloud.google.com/go/osconfig/agentendpoint/a\ - piv1/agentendpointpb;agentendpointpbJ\xe4B\n\x07\x12\x05\x0e\0\xe6\x01\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0/\n\t\n\x02\ - \x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0\x20\n\x08\n\x01\ - \x08\x12\x03\x15\0g\n\t\n\x02\x08\x0b\x12\x03\x15\0g\n\x08\n\x01\x08\x12\ - \x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\ - \0/\n\t\n\x02\x08\x08\x12\x03\x17\0/\n\x08\n\x01\x08\x12\x03\x18\0C\n\t\ - \n\x02\x08\x01\x12\x03\x18\0C\n\xa9\x01\n\x02\x04\0\x12\x05\x1e\0\xe6\ - \x01\x01\x1a\x20\x20The\x20inventory\x20details\x20of\x20a\x20VM.\n2z\ - \x20OS\x20Config\x20Inventory\x20is\x20a\x20service\x20for\x20collecting\ - \x20and\x20reporting\x20operating\n\x20system\x20and\x20package\x20infor\ - mation\x20on\x20VM\x20instances.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\ - \x11\n8\n\x04\x04\0\x03\0\x12\x04\x20\x02;\x03\x1a*\x20Operating\x20syst\ - em\x20information\x20for\x20the\x20VM.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\ - \x03\x20\n\x10\n!\n\x06\x04\0\x03\0\x02\0\x12\x03\"\x04\x18\x1a\x12\x20T\ - he\x20VM\x20hostname.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03\"\x04\ - \n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03\"\x0b\x13\n\x0e\n\x07\x04\0\ - \x03\0\x02\0\x03\x12\x03\"\x16\x17\n\x81\x01\n\x06\x04\0\x03\0\x02\x01\ - \x12\x03'\x04\x19\x1ar\x20The\x20operating\x20system\x20long\x20name.\n\ - \x20For\x20example\x20'Debian\x20GNU/Linux\x209'\x20or\x20'Microsoft\x20\ - Window\x20Server\x202019\n\x20Datacenter'.\n\n\x0e\n\x07\x04\0\x03\0\x02\ - \x01\x05\x12\x03'\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03'\x0b\ - \x14\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03'\x17\x18\nV\n\x06\x04\0\ - \x03\0\x02\x02\x12\x03+\x04\x1a\x1aG\x20The\x20operating\x20system\x20sh\ - ort\x20name.\n\x20For\x20example,\x20'windows'\x20or\x20'debian'.\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\x03+\x04\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x02\x01\x12\x03+\x0b\x15\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\ - \x03+\x18\x19\n5\n\x06\x04\0\x03\0\x02\x03\x12\x03.\x04\x17\x1a&\x20The\ - \x20version\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x03\x05\x12\x03.\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x01\x12\ - \x03.\x0b\x12\n\x0e\n\x07\x04\0\x03\0\x02\x03\x03\x12\x03.\x15\x16\nA\n\ - \x06\x04\0\x03\0\x02\x04\x12\x031\x04\x1c\x1a2\x20The\x20system\x20archi\ - tecture\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x04\x05\x12\x031\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x04\x01\x12\x031\ - \x0b\x17\n\x0e\n\x07\x04\0\x03\0\x02\x04\x03\x12\x031\x1a\x1b\n<\n\x06\ - \x04\0\x03\0\x02\x05\x12\x034\x04\x1e\x1a-\x20The\x20kernel\x20version\ - \x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\0\x02\x05\ - \x05\x12\x034\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x05\x01\x12\x034\x0b\x19\ - \n\x0e\n\x07\x04\0\x03\0\x02\x05\x03\x12\x034\x1c\x1d\n<\n\x06\x04\0\x03\ - \0\x02\x06\x12\x037\x04\x1e\x1a-\x20The\x20kernel\x20release\x20of\x20th\ - e\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\0\x02\x06\x05\x12\x037\ - \x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x06\x01\x12\x037\x0b\x19\n\x0e\n\x07\ - \x04\0\x03\0\x02\x06\x03\x12\x037\x1c\x1d\nN\n\x06\x04\0\x03\0\x02\x07\ - \x12\x03:\x04&\x1a?\x20The\x20current\x20version\x20of\x20the\x20OS\x20C\ - onfig\x20agent\x20running\x20on\x20the\x20VM.\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x07\x05\x12\x03:\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x07\x01\x12\x03:\ - \x0b!\n\x0e\n\x07\x04\0\x03\0\x02\x07\x03\x12\x03:$%\nE\n\x04\x04\0\x03\ - \x01\x12\x04>\x02k\x03\x1a7\x20Software\x20package\x20information\x20of\ - \x20the\x20operating\x20system.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03>\ - \n\x19\nM\n\x06\x04\0\x03\x01\x08\0\x12\x04@\x04j\x05\x1a=\x20Informatio\ - n\x20about\x20the\x20different\x20types\x20of\x20software\x20packages.\n\ - \n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\x12\x03@\n\x11\n\xbb\x01\n\x06\x04\ - \0\x03\x01\x02\0\x12\x03D\x06'\x1a\xab\x01\x20Yum\x20package\x20info.\n\ - \x20For\x20details\x20about\x20the\x20yum\x20package\x20manager,\x20see\ - \n\x20https://access.redhat.com/documentation/en-us/red_hat_enterprise_l\ - inux/6/html/deployment_guide/ch-yum.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\ - \x06\x12\x03D\x06\x16\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03D\x17\"\ - \n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03D%&\ny\n\x06\x04\0\x03\x01\ - \x02\x01\x12\x03I\x06'\x1aj\x20Details\x20of\x20an\x20APT\x20package.\n\ - \x20For\x20details\x20about\x20the\x20apt\x20package\x20manager,\x20see\ - \n\x20https://wiki.debian.org/Apt.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\ - \x06\x12\x03I\x06\x16\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03I\x17\ - \"\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03I%&\n\x8c\x01\n\x06\x04\ - \0\x03\x01\x02\x02\x12\x03N\x06*\x1a}\x20Details\x20of\x20a\x20Zypper\ - \x20package.\n\x20For\x20details\x20about\x20the\x20Zypper\x20package\ - \x20manager,\x20see\n\x20https://en.opensuse.org/SDB:Zypper_manual.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x02\x06\x12\x03N\x06\x16\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x02\x01\x12\x03N\x17%\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\ - \x12\x03N()\n\x85\x01\n\x06\x04\0\x03\x01\x02\x03\x12\x03S\x06*\x1av\x20\ - Details\x20of\x20a\x20Googet\x20package.\n\x20\x20For\x20details\x20abou\ - t\x20the\x20googet\x20package\x20manager,\x20see\n\x20\x20https://github\ - .com/google/googet.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x06\x12\x03S\x06\ - \x16\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x01\x12\x03S\x17%\n\x0e\n\x07\x04\ - \0\x03\x01\x02\x03\x03\x12\x03S()\n\x8a\x01\n\x06\x04\0\x03\x01\x02\x04\ - \x12\x03X\x06#\x1a{\x20Details\x20of\x20a\x20Zypper\x20patch.\n\x20For\ - \x20details\x20about\x20the\x20Zypper\x20package\x20manager,\x20see\n\ - \x20https://en.opensuse.org/SDB:Zypper_manual.\n\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x04\x06\x12\x03X\x06\x11\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x01\ - \x12\x03X\x12\x1e\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x03\x12\x03X!\"\n\ - \x9b\x01\n\x06\x04\0\x03\x01\x02\x05\x12\x03]\x06+\x1a\x8b\x01\x20Detail\ - s\x20of\x20a\x20Windows\x20Update\x20package.\n\x20See\x20https://docs.m\ - icrosoft.com/en-us/windows/win32/api/_wua/\x20for\n\x20information\x20ab\ - out\x20Windows\x20Update.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x05\x06\x12\ - \x03]\x06\x1a\n\x0e\n\x07\x04\0\x03\x01\x02\x05\x01\x12\x03]\x1b&\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x05\x03\x12\x03])*\n\xcd\x01\n\x06\x04\0\x03\ - \x01\x02\x06\x12\x03c\x068\x1a\xbd\x01\x20Details\x20of\x20a\x20Windows\ - \x20Quick\x20Fix\x20engineering\x20package.\n\x20See\n\x20https://docs.m\ - icrosoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering\ - \n\x20for\x20info\x20in\x20Windows\x20Quick\x20Fix\x20Engineering.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x06\x06\x12\x03c\x06'\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x06\x01\x12\x03c(3\n\x0e\n\x07\x04\0\x03\x01\x02\x06\x03\x12\ - \x03c67\n*\n\x06\x04\0\x03\x01\x02\x07\x12\x03f\x06'\x1a\x1b\x20Details\ - \x20of\x20a\x20COS\x20package.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x07\x06\ - \x12\x03f\x06\x16\n\x0e\n\x07\x04\0\x03\x01\x02\x07\x01\x12\x03f\x17\"\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x07\x03\x12\x03f%&\n0\n\x06\x04\0\x03\x01\ - \x02\x08\x12\x03i\x061\x1a!\x20Details\x20of\x20Windows\x20Application.\ - \n\n\x0e\n\x07\x04\0\x03\x01\x02\x08\x06\x12\x03i\x06\x18\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x08\x01\x12\x03i\x19,\n\x0e\n\x07\x04\0\x03\x01\x02\ - \x08\x03\x12\x03i/0\n\x99\x01\n\x04\x04\0\x03\x02\x12\x04o\x02x\x03\x1a\ - \x8a\x01\x20Information\x20related\x20to\x20the\x20a\x20standard\x20vers\ - ioned\x20package.\x20\x20This\x20includes\n\x20package\x20info\x20for\ - \x20APT,\x20Yum,\x20Zypper,\x20and\x20Googet\x20package\x20managers.\n\n\ - \x0c\n\x05\x04\0\x03\x02\x01\x12\x03o\n\x1a\n)\n\x06\x04\0\x03\x02\x02\0\ - \x12\x03q\x04\x1c\x1a\x1a\x20The\x20name\x20of\x20the\x20package.\n\n\ - \x0e\n\x07\x04\0\x03\x02\x02\0\x05\x12\x03q\x04\n\n\x0e\n\x07\x04\0\x03\ - \x02\x02\0\x01\x12\x03q\x0b\x17\n\x0e\n\x07\x04\0\x03\x02\x02\0\x03\x12\ - \x03q\x1a\x1b\nF\n\x06\x04\0\x03\x02\x02\x01\x12\x03t\x04\x1c\x1a7\x20Th\ - e\x20system\x20architecture\x20this\x20package\x20is\x20intended\x20for.\ - \n\n\x0e\n\x07\x04\0\x03\x02\x02\x01\x05\x12\x03t\x04\n\n\x0e\n\x07\x04\ - \0\x03\x02\x02\x01\x01\x12\x03t\x0b\x17\n\x0e\n\x07\x04\0\x03\x02\x02\ - \x01\x03\x12\x03t\x1a\x1b\n,\n\x06\x04\0\x03\x02\x02\x02\x12\x03w\x04\ - \x17\x1a\x1d\x20The\x20version\x20of\x20the\x20package.\n\n\x0e\n\x07\ - \x04\0\x03\x02\x02\x02\x05\x12\x03w\x04\n\n\x0e\n\x07\x04\0\x03\x02\x02\ - \x02\x01\x12\x03w\x0b\x12\n\x0e\n\x07\x04\0\x03\x02\x02\x02\x03\x12\x03w\ - \x15\x16\n3\n\x04\x04\0\x03\x03\x12\x05{\x02\x87\x01\x03\x1a$\x20Details\ - \x20related\x20to\x20a\x20Zypper\x20Patch.\n\n\x0c\n\x05\x04\0\x03\x03\ - \x01\x12\x03{\n\x15\n'\n\x06\x04\0\x03\x03\x02\0\x12\x03}\x04\x1a\x1a\ - \x18\x20The\x20name\x20of\x20the\x20patch.\n\n\x0e\n\x07\x04\0\x03\x03\ - \x02\0\x05\x12\x03}\x04\n\n\x0e\n\x07\x04\0\x03\x03\x02\0\x01\x12\x03}\ - \x0b\x15\n\x0e\n\x07\x04\0\x03\x03\x02\0\x03\x12\x03}\x18\x19\n,\n\x06\ - \x04\0\x03\x03\x02\x01\x12\x04\x80\x01\x04\x18\x1a\x1c\x20The\x20categor\ - y\x20of\x20the\x20patch.\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x05\x12\x04\ - \x80\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x01\x12\x04\x80\x01\x0b\ - \x13\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x03\x12\x04\x80\x01\x16\x17\n7\n\ - \x06\x04\0\x03\x03\x02\x02\x12\x04\x83\x01\x04\x18\x1a'\x20The\x20severi\ - ty\x20specified\x20for\x20this\x20patch\n\n\x0f\n\x07\x04\0\x03\x03\x02\ - \x02\x05\x12\x04\x83\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x01\x12\ - \x04\x83\x01\x0b\x13\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x03\x12\x04\x83\ - \x01\x16\x17\nD\n\x06\x04\0\x03\x03\x02\x03\x12\x04\x86\x01\x04\x17\x1a4\ - \x20Any\x20summary\x20information\x20provided\x20about\x20this\x20patch.\ - \n\n\x0f\n\x07\x04\0\x03\x03\x02\x03\x05\x12\x04\x86\x01\x04\n\n\x0f\n\ - \x07\x04\0\x03\x03\x02\x03\x01\x12\x04\x86\x01\x0b\x12\n\x0f\n\x07\x04\0\ - \x03\x03\x02\x03\x03\x12\x04\x86\x01\x15\x16\n\xb0\x02\n\x04\x04\0\x03\ - \x04\x12\x06\x8e\x01\x02\xb5\x01\x03\x1a\x9f\x02\x20Details\x20related\ - \x20to\x20a\x20Windows\x20Update\x20package.\n\x20Field\x20data\x20and\ - \x20names\x20are\x20taken\x20from\x20Windows\x20Update\x20API\x20IUpdate\ - \x20Interface:\n\x20https://docs.microsoft.com/en-us/windows/win32/api/_\ - wua/\n\x20Descriptive\x20fields\x20like\x20title,\x20and\x20description\ - \x20are\x20localized\x20based\x20on\n\x20the\x20locale\x20of\x20the\x20V\ - M\x20being\x20updated.\n\n\r\n\x05\x04\0\x03\x04\x01\x12\x04\x8e\x01\n\ - \x1e\n?\n\x06\x04\0\x03\x04\x03\0\x12\x06\x90\x01\x04\x96\x01\x05\x1a-\ - \x20Categories\x20specified\x20by\x20the\x20Windows\x20Update.\n\n\x0f\n\ - \x07\x04\0\x03\x04\x03\0\x01\x12\x04\x90\x01\x0c!\nB\n\x08\x04\0\x03\x04\ - \x03\0\x02\0\x12\x04\x92\x01\x06\x14\x1a0\x20The\x20identifier\x20of\x20\ - the\x20windows\x20update\x20category.\n\n\x11\n\t\x04\0\x03\x04\x03\0\ - \x02\0\x05\x12\x04\x92\x01\x06\x0c\n\x11\n\t\x04\0\x03\x04\x03\0\x02\0\ - \x01\x12\x04\x92\x01\r\x0f\n\x11\n\t\x04\0\x03\x04\x03\0\x02\0\x03\x12\ - \x04\x92\x01\x12\x13\n<\n\x08\x04\0\x03\x04\x03\0\x02\x01\x12\x04\x95\ - \x01\x06\x16\x1a*\x20The\x20name\x20of\x20the\x20windows\x20update\x20ca\ - tegory.\n\n\x11\n\t\x04\0\x03\x04\x03\0\x02\x01\x05\x12\x04\x95\x01\x06\ - \x0c\n\x11\n\t\x04\0\x03\x04\x03\0\x02\x01\x01\x12\x04\x95\x01\r\x11\n\ - \x11\n\t\x04\0\x03\x04\x03\0\x02\x01\x03\x12\x04\x95\x01\x14\x15\n<\n\ - \x06\x04\0\x03\x04\x02\0\x12\x04\x99\x01\x04\x15\x1a,\x20The\x20localize\ - d\x20title\x20of\x20the\x20update\x20package.\n\n\x0f\n\x07\x04\0\x03\ - \x04\x02\0\x05\x12\x04\x99\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\0\x01\ - \x12\x04\x99\x01\x0b\x10\n\x0f\n\x07\x04\0\x03\x04\x02\0\x03\x12\x04\x99\ - \x01\x13\x14\nB\n\x06\x04\0\x03\x04\x02\x01\x12\x04\x9c\x01\x04\x1b\x1a2\ - \x20The\x20localized\x20description\x20of\x20the\x20update\x20package.\n\ - \n\x0f\n\x07\x04\0\x03\x04\x02\x01\x05\x12\x04\x9c\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x04\x02\x01\x01\x12\x04\x9c\x01\x0b\x16\n\x0f\n\x07\x04\0\x03\ - \x04\x02\x01\x03\x12\x04\x9c\x01\x19\x1a\nN\n\x06\x04\0\x03\x04\x02\x02\ - \x12\x04\x9f\x01\x042\x1a>\x20The\x20categories\x20that\x20are\x20associ\ - ated\x20with\x20this\x20update\x20package.\n\n\x0f\n\x07\x04\0\x03\x04\ - \x02\x02\x04\x12\x04\x9f\x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x04\x02\x02\ - \x06\x12\x04\x9f\x01\r\"\n\x0f\n\x07\x04\0\x03\x04\x02\x02\x01\x12\x04\ - \x9f\x01#-\n\x0f\n\x07\x04\0\x03\x04\x02\x02\x03\x12\x04\x9f\x0101\nt\n\ - \x06\x04\0\x03\x04\x02\x03\x12\x04\xa3\x01\x04'\x1ad\x20A\x20collection\ - \x20of\x20Microsoft\x20Knowledge\x20Base\x20article\x20IDs\x20that\x20ar\ - e\x20associated\n\x20with\x20the\x20update\x20package.\n\n\x0f\n\x07\x04\ - \0\x03\x04\x02\x03\x04\x12\x04\xa3\x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x04\ - \x02\x03\x05\x12\x04\xa3\x01\r\x13\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x01\ - \x12\x04\xa3\x01\x14\"\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x03\x12\x04\xa3\ - \x01%&\nZ\n\x06\x04\0\x03\x04\x02\x04\x12\x04\xa6\x01\x04\x1b\x1aJ\x20A\ - \x20hyperlink\x20to\x20the\x20language-specific\x20support\x20informatio\ - n\x20for\x20the\x20update.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x04\x05\x12\ - \x04\xa6\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\x04\x01\x12\x04\xa6\x01\ - \x0b\x16\n\x0f\n\x07\x04\0\x03\x04\x02\x04\x03\x12\x04\xa6\x01\x19\x1a\n\ - _\n\x06\x04\0\x03\x04\x02\x05\x12\x04\xaa\x01\x04'\x1aO\x20A\x20collecti\ - on\x20of\x20URLs\x20that\x20provide\x20more\x20information\x20about\x20t\ - he\x20update\n\x20package.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x05\x04\x12\ - \x04\xaa\x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x04\x02\x05\x05\x12\x04\xaa\ - \x01\r\x13\n\x0f\n\x07\x04\0\x03\x04\x02\x05\x01\x12\x04\xaa\x01\x14\"\n\ - \x0f\n\x07\x04\0\x03\x04\x02\x05\x03\x12\x04\xaa\x01%&\n^\n\x06\x04\0\ - \x03\x04\x02\x06\x12\x04\xae\x01\x04\x19\x1aN\x20Gets\x20the\x20identifi\ - er\x20of\x20an\x20update\x20package.\x20\x20Stays\x20the\x20same\x20acro\ - ss\n\x20revisions.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x06\x05\x12\x04\xae\ - \x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\x06\x01\x12\x04\xae\x01\x0b\x14\ - \n\x0f\n\x07\x04\0\x03\x04\x02\x06\x03\x12\x04\xae\x01\x17\x18\n=\n\x06\ - \x04\0\x03\x04\x02\x07\x12\x04\xb1\x01\x04\x1e\x1a-\x20The\x20revision\ - \x20number\x20of\x20this\x20update\x20package.\n\n\x0f\n\x07\x04\0\x03\ - \x04\x02\x07\x05\x12\x04\xb1\x01\x04\t\n\x0f\n\x07\x04\0\x03\x04\x02\x07\ - \x01\x12\x04\xb1\x01\n\x19\n\x0f\n\x07\x04\0\x03\x04\x02\x07\x03\x12\x04\ - \xb1\x01\x1c\x1d\nP\n\x06\x04\0\x03\x04\x02\x08\x12\x04\xb4\x01\x04>\x1a\ - @\x20The\x20last\x20published\x20date\x20of\x20the\x20update,\x20in\x20(\ - UTC)\x20date\x20and\x20time.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x08\x06\x12\ - \x04\xb4\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x04\x02\x08\x01\x12\x04\xb4\ - \x01\x1e9\n\x0f\n\x07\x04\0\x03\x04\x02\x08\x03\x12\x04\xb4\x01<=\n\xfb\ - \x01\n\x04\x04\0\x03\x05\x12\x06\xbb\x01\x02\xc7\x01\x03\x1a\xea\x01\x20\ - Information\x20related\x20to\x20a\x20Quick\x20Fix\x20Engineering\x20pack\ - age.\n\x20Fields\x20are\x20taken\x20from\x20Windows\x20QuickFixEngineeri\ - ng\x20Interface\x20and\x20match\n\x20the\x20source\x20names:\n\x20https:\ - //docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengi\ - neering\n\n\r\n\x05\x04\0\x03\x05\x01\x12\x04\xbb\x01\n+\n@\n\x06\x04\0\ - \x03\x05\x02\0\x12\x04\xbd\x01\x04\x17\x1a0\x20A\x20short\x20textual\x20\ - description\x20of\x20the\x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x05\ - \x02\0\x05\x12\x04\xbd\x01\x04\n\n\x0f\n\x07\x04\0\x03\x05\x02\0\x01\x12\ - \x04\xbd\x01\x0b\x12\n\x0f\n\x07\x04\0\x03\x05\x02\0\x03\x12\x04\xbd\x01\ - \x15\x16\n:\n\x06\x04\0\x03\x05\x02\x01\x12\x04\xc0\x01\x04\x1b\x1a*\x20\ - A\x20textual\x20description\x20of\x20the\x20QFE\x20update.\n\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x01\x05\x12\x04\xc0\x01\x04\n\n\x0f\n\x07\x04\0\x03\ - \x05\x02\x01\x01\x12\x04\xc0\x01\x0b\x16\n\x0f\n\x07\x04\0\x03\x05\x02\ - \x01\x03\x12\x04\xc0\x01\x19\x1a\nL\n\x06\x04\0\x03\x05\x02\x02\x12\x04\ - \xc3\x01\x04\x1a\x1a<\x20Unique\x20identifier\x20associated\x20with\x20a\ - \x20particular\x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x02\x05\ - \x12\x04\xc3\x01\x04\n\n\x0f\n\x07\x04\0\x03\x05\x02\x02\x01\x12\x04\xc3\ - \x01\x0b\x15\n\x0f\n\x07\x04\0\x03\x05\x02\x02\x03\x12\x04\xc3\x01\x18\ - \x19\nZ\n\x06\x04\0\x03\x05\x02\x03\x12\x04\xc6\x01\x04/\x1aJ\x20Date\ - \x20that\x20the\x20QFE\x20update\x20was\x20installed.\x20\x20Mapped\x20f\ - rom\x20installed_on\x20field.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x06\ - \x12\x04\xc6\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x01\x12\x04\ - \xc6\x01\x1e*\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x03\x12\x04\xc6\x01-.\n\ - \xc8\x01\n\x04\x04\0\x03\x06\x12\x06\xcc\x01\x02\xdb\x01\x03\x1a\xb7\x01\ - \x20Details\x20about\x20Windows\x20Application\x20-\x20based\x20on\x20Wi\ - ndows\x20Registry.\n\x20All\x20fields\x20in\x20this\x20message\x20are\ - \x20taken\x20from:\n\x20https://docs.microsoft.com/en-us/windows/win32/m\ - si/uninstall-registry-key\n\n\r\n\x05\x04\0\x03\x06\x01\x12\x04\xcc\x01\ - \n\x1c\n:\n\x06\x04\0\x03\x06\x02\0\x12\x04\xce\x01\x04\x1c\x1a*\x20Disp\ - layName\x20field\x20from\x20Windows\x20Registry.\n\n\x0f\n\x07\x04\0\x03\ - \x06\x02\0\x05\x12\x04\xce\x01\x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\0\x01\ - \x12\x04\xce\x01\x0b\x17\n\x0f\n\x07\x04\0\x03\x06\x02\0\x03\x12\x04\xce\ - \x01\x1a\x1b\n=\n\x06\x04\0\x03\x06\x02\x01\x12\x04\xd1\x01\x04\x1f\x1a-\ - \x20DisplayVersion\x20field\x20from\x20Windows\x20Registry.\n\n\x0f\n\ - \x07\x04\0\x03\x06\x02\x01\x05\x12\x04\xd1\x01\x04\n\n\x0f\n\x07\x04\0\ - \x03\x06\x02\x01\x01\x12\x04\xd1\x01\x0b\x1a\n\x0f\n\x07\x04\0\x03\x06\ - \x02\x01\x03\x12\x04\xd1\x01\x1d\x1e\n8\n\x06\x04\0\x03\x06\x02\x02\x12\ - \x04\xd4\x01\x04\x19\x1a(\x20Publisher\x20field\x20from\x20Windows\x20Re\ - gistry.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x02\x05\x12\x04\xd4\x01\x04\n\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x02\x01\x12\x04\xd4\x01\x0b\x14\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x02\x03\x12\x04\xd4\x01\x17\x18\n@\n\x06\x04\0\x03\ - \x06\x02\x03\x12\x04\xd7\x01\x04&\x1a0\x20Installation\x20date\x20field\ - \x20from\x20Windows\x20Registry.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x03\x06\ - \x12\x04\xd7\x01\x04\x14\n\x0f\n\x07\x04\0\x03\x06\x02\x03\x01\x12\x04\ - \xd7\x01\x15!\n\x0f\n\x07\x04\0\x03\x06\x02\x03\x03\x12\x04\xd7\x01$%\n7\ - \n\x06\x04\0\x03\x06\x02\x04\x12\x04\xda\x01\x04\x19\x1a'\x20HelpLink\ - \x20field\x20from\x20Windows\x20Registry.\n\n\x0f\n\x07\x04\0\x03\x06\ - \x02\x04\x05\x12\x04\xda\x01\x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\x04\x01\ - \x12\x04\xda\x01\x0b\x14\n\x0f\n\x07\x04\0\x03\x06\x02\x04\x03\x12\x04\ - \xda\x01\x17\x18\nC\n\x04\x04\0\x02\0\x12\x04\xde\x01\x02\x15\x1a5\x20Ba\ - se\x20level\x20operating\x20system\x20information\x20for\x20the\x20VM.\n\ - \n\r\n\x05\x04\0\x02\0\x06\x12\x04\xde\x01\x02\x08\n\r\n\x05\x04\0\x02\0\ - \x01\x12\x04\xde\x01\t\x10\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xde\x01\x13\ - \x14\nA\n\x04\x04\0\x02\x01\x12\x04\xe1\x01\x022\x1a3\x20A\x20list\x20of\ - \x20installed\x20packages\x20currently\x20on\x20the\x20VM.\n\n\r\n\x05\ - \x04\0\x02\x01\x04\x12\x04\xe1\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x06\x12\ - \x04\xe1\x01\x0b\x1a\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xe1\x01\x1b-\n\ - \r\n\x05\x04\0\x02\x01\x03\x12\x04\xe1\x0101\nd\n\x04\x04\0\x02\x02\x12\ - \x04\xe5\x01\x022\x1aV\x20A\x20list\x20of\x20software\x20updates\x20avai\ - lable\x20for\x20the\x20VM\x20as\x20reported\x20by\x20the\x20update\n\x20\ - managers.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\xe5\x01\x02\n\n\r\n\x05\ - \x04\0\x02\x02\x06\x12\x04\xe5\x01\x0b\x1a\n\r\n\x05\x04\0\x02\x02\x01\ - \x12\x04\xe5\x01\x1b-\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xe5\x0101b\x06\ - proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs index 59eeb60..f185835 100644 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs +++ b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs @@ -1,9 +1,2 @@ use crate::r#type::date; -pub mod agentendpoint; -pub mod agentendpoint_grpc; -pub mod config_common; -pub mod inventory; -pub mod os_policy; -pub mod patch_jobs; -pub mod tasks; diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/os_policy.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/os_policy.rs deleted file mode 100644 index 6c46732..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/os_policy.rs +++ /dev/null @@ -1,6920 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/os_policy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy { - fn default() -> &'a OSPolicy { - ::default_instance() - } -} - -impl OSPolicy { - pub fn new() -> OSPolicy { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for OSPolicy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy { - OSPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy::new) - } -} - -impl ::protobuf::Clear for OSPolicy { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource { - // message fields - pub id: ::std::string::String, - // message oneof groups - pub resource_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource { - fn default() -> &'a OSPolicy_Resource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_oneof_resource_type { - pkg(OSPolicy_Resource_PackageResource), - repository(OSPolicy_Resource_RepositoryResource), - exec(OSPolicy_Resource_ExecResource), - file(OSPolicy_Resource_FileResource), -} - -impl OSPolicy_Resource { - pub fn new() -> OSPolicy_Resource { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource pkg = 2; - - - pub fn get_pkg(&self) -> &OSPolicy_Resource_PackageResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_pkg(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_pkg(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_pkg(&mut self, v: OSPolicy_Resource_PackageResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) - } - - // Mutable pointer to the field. - pub fn mut_pkg(&mut self) -> &mut OSPolicy_Resource_PackageResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(OSPolicy_Resource_PackageResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_pkg(&mut self) -> OSPolicy_Resource_PackageResource { - if self.has_pkg() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource repository = 3; - - - pub fn get_repository(&self) -> &OSPolicy_Resource_RepositoryResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_repository(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_repository(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_repository(&mut self, v: OSPolicy_Resource_RepositoryResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) - } - - // Mutable pointer to the field. - pub fn mut_repository(&mut self) -> &mut OSPolicy_Resource_RepositoryResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(OSPolicy_Resource_RepositoryResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_repository(&mut self) -> OSPolicy_Resource_RepositoryResource { - if self.has_repository() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource exec = 4; - - - pub fn get_exec(&self) -> &OSPolicy_Resource_ExecResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_exec(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec(&mut self, v: OSPolicy_Resource_ExecResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec(&mut self) -> &mut OSPolicy_Resource_ExecResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(OSPolicy_Resource_ExecResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec(&mut self) -> OSPolicy_Resource_ExecResource { - if self.has_exec() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_ExecResource::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.FileResource file = 5; - - - pub fn get_file(&self) -> &OSPolicy_Resource_FileResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_FileResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_FileResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(OSPolicy_Resource_FileResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_FileResource { - if self.has_file() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_FileResource::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource { - OSPolicy_Resource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource| { &m.id }, - |m: &mut OSPolicy_Resource| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource>( - "pkg", - OSPolicy_Resource::has_pkg, - OSPolicy_Resource::get_pkg, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource>( - "repository", - OSPolicy_Resource::has_repository, - OSPolicy_Resource::get_repository, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_ExecResource>( - "exec", - OSPolicy_Resource::has_exec, - OSPolicy_Resource::get_exec, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_FileResource>( - "file", - OSPolicy_Resource::has_file, - OSPolicy_Resource::get_file, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource { - fn clear(&mut self) { - self.id.clear(); - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File { - // message fields - pub allow_insecure: bool, - // message oneof groups - pub field_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File { - fn default() -> &'a OSPolicy_Resource_File { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_File_oneof_type { - remote(OSPolicy_Resource_File_Remote), - gcs(OSPolicy_Resource_File_Gcs), - local_path(::std::string::String), -} - -impl OSPolicy_Resource_File { - pub fn new() -> OSPolicy_Resource_File { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File.Remote remote = 1; - - - pub fn get_remote(&self) -> &OSPolicy_Resource_File_Remote { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_remote(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_remote(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_remote(&mut self, v: OSPolicy_Resource_File_Remote) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) - } - - // Mutable pointer to the field. - pub fn mut_remote(&mut self) -> &mut OSPolicy_Resource_File_Remote { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(OSPolicy_Resource_File_Remote::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_remote(&mut self) -> OSPolicy_Resource_File_Remote { - if self.has_remote() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Remote::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File.Gcs gcs = 2; - - - pub fn get_gcs(&self) -> &OSPolicy_Resource_File_Gcs { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_gcs(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs(&mut self, v: OSPolicy_Resource_File_Gcs) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs(&mut self) -> &mut OSPolicy_Resource_File_Gcs { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(OSPolicy_Resource_File_Gcs::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs(&mut self) -> OSPolicy_Resource_File_Gcs { - if self.has_gcs() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Gcs::new() - } - } - - // string local_path = 3; - - - pub fn get_local_path(&self) -> &str { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref v)) => v, - _ => "", - } - } - pub fn clear_local_path(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_local_path(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_local_path(&mut self, v: ::std::string::String) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) - } - - // Mutable pointer to the field. - pub fn mut_local_path(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(::std::string::String::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_local_path(&mut self) -> ::std::string::String { - if self.has_local_path() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // bool allow_insecure = 4; - - - pub fn get_allow_insecure(&self) -> bool { - self.allow_insecure - } - pub fn clear_allow_insecure(&mut self) { - self.allow_insecure = false; - } - - // Param is passed by value, moved - pub fn set_allow_insecure(&mut self, v: bool) { - self.allow_insecure = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_insecure = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.allow_insecure != false { - my_size += 2; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.allow_insecure != false { - os.write_bool(4, self.allow_insecure)?; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - os.write_string(3, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File { - OSPolicy_Resource_File::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Remote>( - "remote", - OSPolicy_Resource_File::has_remote, - OSPolicy_Resource_File::get_remote, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Gcs>( - "gcs", - OSPolicy_Resource_File::has_gcs, - OSPolicy_Resource_File::get_gcs, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "local_path", - OSPolicy_Resource_File::has_local_path, - OSPolicy_Resource_File::get_local_path, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_insecure", - |m: &OSPolicy_Resource_File| { &m.allow_insecure }, - |m: &mut OSPolicy_Resource_File| { &mut m.allow_insecure }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File { - fn clear(&mut self) { - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.allow_insecure = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Remote { - // message fields - pub uri: ::std::string::String, - pub sha256_checksum: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Remote { - fn default() -> &'a OSPolicy_Resource_File_Remote { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Remote { - pub fn new() -> OSPolicy_Resource_File_Remote { - ::std::default::Default::default() - } - - // string uri = 1; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string sha256_checksum = 2; - - - pub fn get_sha256_checksum(&self) -> &str { - &self.sha256_checksum - } - pub fn clear_sha256_checksum(&mut self) { - self.sha256_checksum.clear(); - } - - // Param is passed by value, moved - pub fn set_sha256_checksum(&mut self, v: ::std::string::String) { - self.sha256_checksum = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sha256_checksum(&mut self) -> &mut ::std::string::String { - &mut self.sha256_checksum - } - - // Take field - pub fn take_sha256_checksum(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sha256_checksum, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Remote { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sha256_checksum)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.uri); - } - if !self.sha256_checksum.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.sha256_checksum); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.uri.is_empty() { - os.write_string(1, &self.uri)?; - } - if !self.sha256_checksum.is_empty() { - os.write_string(2, &self.sha256_checksum)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Remote { - OSPolicy_Resource_File_Remote::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_File_Remote| { &m.uri }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sha256_checksum", - |m: &OSPolicy_Resource_File_Remote| { &m.sha256_checksum }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.sha256_checksum }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Remote", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Remote { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Remote::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Remote { - fn clear(&mut self) { - self.uri.clear(); - self.sha256_checksum.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Remote { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Remote { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Gcs { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Gcs { - fn default() -> &'a OSPolicy_Resource_File_Gcs { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Gcs { - pub fn new() -> OSPolicy_Resource_File_Gcs { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string object = 2; - - - pub fn get_object(&self) -> &str { - &self.object - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: ::std::string::String) { - self.object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object(&mut self) -> &mut ::std::string::String { - &mut self.object - } - - // Take field - pub fn take_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object, ::std::string::String::new()) - } - - // int64 generation = 3; - - - pub fn get_generation(&self) -> i64 { - self.generation - } - pub fn clear_generation(&mut self) { - self.generation = 0; - } - - // Param is passed by value, moved - pub fn set_generation(&mut self, v: i64) { - self.generation = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Gcs { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.generation = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(3, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if self.generation != 0 { - os.write_int64(3, self.generation)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Gcs { - OSPolicy_Resource_File_Gcs::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &OSPolicy_Resource_File_Gcs| { &m.bucket }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &OSPolicy_Resource_File_Gcs| { &m.object }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &OSPolicy_Resource_File_Gcs| { &m.generation }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.generation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Gcs", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Gcs { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Gcs::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Gcs { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Gcs { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Gcs { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource { - // message fields - pub desired_state: OSPolicy_Resource_PackageResource_DesiredState, - // message oneof groups - pub system_package: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource { - fn default() -> &'a OSPolicy_Resource_PackageResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_PackageResource_oneof_system_package { - apt(OSPolicy_Resource_PackageResource_APT), - deb(OSPolicy_Resource_PackageResource_Deb), - yum(OSPolicy_Resource_PackageResource_YUM), - zypper(OSPolicy_Resource_PackageResource_Zypper), - rpm(OSPolicy_Resource_PackageResource_RPM), - googet(OSPolicy_Resource_PackageResource_GooGet), - msi(OSPolicy_Resource_PackageResource_MSI), -} - -impl OSPolicy_Resource_PackageResource { - pub fn new() -> OSPolicy_Resource_PackageResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1; - - - pub fn get_desired_state(&self) -> OSPolicy_Resource_PackageResource_DesiredState { - self.desired_state - } - pub fn clear_desired_state(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_desired_state(&mut self, v: OSPolicy_Resource_PackageResource_DesiredState) { - self.desired_state = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.APT apt = 2; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_PackageResource_APT { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_PackageResource_APT) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_PackageResource_APT { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(OSPolicy_Resource_PackageResource_APT::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_PackageResource_APT { - if self.has_apt() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_APT::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.Deb deb = 3; - - - pub fn get_deb(&self) -> &OSPolicy_Resource_PackageResource_Deb { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_deb(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_deb(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_deb(&mut self, v: OSPolicy_Resource_PackageResource_Deb) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) - } - - // Mutable pointer to the field. - pub fn mut_deb(&mut self) -> &mut OSPolicy_Resource_PackageResource_Deb { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(OSPolicy_Resource_PackageResource_Deb::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_deb(&mut self) -> OSPolicy_Resource_PackageResource_Deb { - if self.has_deb() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Deb::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.YUM yum = 4; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_PackageResource_YUM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_PackageResource_YUM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_PackageResource_YUM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(OSPolicy_Resource_PackageResource_YUM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_PackageResource_YUM { - if self.has_yum() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_YUM::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_PackageResource_Zypper { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_PackageResource_Zypper) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_PackageResource_Zypper { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(OSPolicy_Resource_PackageResource_Zypper::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_PackageResource_Zypper { - if self.has_zypper() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Zypper::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6; - - - pub fn get_rpm(&self) -> &OSPolicy_Resource_PackageResource_RPM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_rpm(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_rpm(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_rpm(&mut self, v: OSPolicy_Resource_PackageResource_RPM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) - } - - // Mutable pointer to the field. - pub fn mut_rpm(&mut self) -> &mut OSPolicy_Resource_PackageResource_RPM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(OSPolicy_Resource_PackageResource_RPM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_rpm(&mut self) -> OSPolicy_Resource_PackageResource_RPM { - if self.has_rpm() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_RPM::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.GooGet googet = 7; - - - pub fn get_googet(&self) -> &OSPolicy_Resource_PackageResource_GooGet { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_googet(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet(&mut self, v: OSPolicy_Resource_PackageResource_GooGet) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet(&mut self) -> &mut OSPolicy_Resource_PackageResource_GooGet { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(OSPolicy_Resource_PackageResource_GooGet::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet(&mut self) -> OSPolicy_Resource_PackageResource_GooGet { - if self.has_googet() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_GooGet::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.MSI msi = 8; - - - pub fn get_msi(&self) -> &OSPolicy_Resource_PackageResource_MSI { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_msi(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_msi(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_msi(&mut self, v: OSPolicy_Resource_PackageResource_MSI) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) - } - - // Mutable pointer to the field. - pub fn mut_msi(&mut self) -> &mut OSPolicy_Resource_PackageResource_MSI { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(OSPolicy_Resource_PackageResource_MSI::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_msi(&mut self) -> OSPolicy_Resource_PackageResource_MSI { - if self.has_msi() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_MSI::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.desired_state, 1, &mut self.unknown_fields)? - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.desired_state); - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.desired_state))?; - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource { - OSPolicy_Resource_PackageResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "desired_state", - |m: &OSPolicy_Resource_PackageResource| { &m.desired_state }, - |m: &mut OSPolicy_Resource_PackageResource| { &mut m.desired_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_APT>( - "apt", - OSPolicy_Resource_PackageResource::has_apt, - OSPolicy_Resource_PackageResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Deb>( - "deb", - OSPolicy_Resource_PackageResource::has_deb, - OSPolicy_Resource_PackageResource::get_deb, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_YUM>( - "yum", - OSPolicy_Resource_PackageResource::has_yum, - OSPolicy_Resource_PackageResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Zypper>( - "zypper", - OSPolicy_Resource_PackageResource::has_zypper, - OSPolicy_Resource_PackageResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_RPM>( - "rpm", - OSPolicy_Resource_PackageResource::has_rpm, - OSPolicy_Resource_PackageResource::get_rpm, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_GooGet>( - "googet", - OSPolicy_Resource_PackageResource::has_googet, - OSPolicy_Resource_PackageResource::get_googet, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_MSI>( - "msi", - OSPolicy_Resource_PackageResource::has_msi, - OSPolicy_Resource_PackageResource::get_msi, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource { - fn clear(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Deb { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Deb { - fn default() -> &'a OSPolicy_Resource_PackageResource_Deb { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Deb { - pub fn new() -> OSPolicy_Resource_PackageResource_Deb { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Deb { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Deb { - OSPolicy_Resource_PackageResource_Deb::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Deb", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Deb { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Deb::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Deb { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Deb { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Deb { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_APT { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_APT { - fn default() -> &'a OSPolicy_Resource_PackageResource_APT { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_APT { - pub fn new() -> OSPolicy_Resource_PackageResource_APT { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_APT { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_APT { - OSPolicy_Resource_PackageResource_APT::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_APT| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_APT| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.APT", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_APT { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_APT::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_APT { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_APT { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_APT { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_RPM { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_RPM { - fn default() -> &'a OSPolicy_Resource_PackageResource_RPM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_RPM { - pub fn new() -> OSPolicy_Resource_PackageResource_RPM { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_RPM { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_RPM { - OSPolicy_Resource_PackageResource_RPM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.RPM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_RPM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_RPM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_RPM { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_RPM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_RPM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_YUM { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_YUM { - fn default() -> &'a OSPolicy_Resource_PackageResource_YUM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_YUM { - pub fn new() -> OSPolicy_Resource_PackageResource_YUM { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_YUM { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_YUM { - OSPolicy_Resource_PackageResource_YUM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_YUM| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_YUM| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.YUM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_YUM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_YUM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_YUM { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_YUM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_YUM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Zypper { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Zypper { - fn default() -> &'a OSPolicy_Resource_PackageResource_Zypper { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Zypper { - pub fn new() -> OSPolicy_Resource_PackageResource_Zypper { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Zypper { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Zypper { - OSPolicy_Resource_PackageResource_Zypper::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_Zypper| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_Zypper| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Zypper", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Zypper { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Zypper::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Zypper { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Zypper { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Zypper { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_GooGet { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_GooGet { - fn default() -> &'a OSPolicy_Resource_PackageResource_GooGet { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_GooGet { - pub fn new() -> OSPolicy_Resource_PackageResource_GooGet { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_GooGet { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_GooGet { - OSPolicy_Resource_PackageResource_GooGet::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_GooGet| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_GooGet| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.GooGet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_GooGet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_GooGet::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_GooGet { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_GooGet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_GooGet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_MSI { - // message fields - pub source: ::protobuf::SingularPtrField, - pub properties: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_MSI { - fn default() -> &'a OSPolicy_Resource_PackageResource_MSI { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_MSI { - pub fn new() -> OSPolicy_Resource_PackageResource_MSI { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // repeated string properties = 2; - - - pub fn get_properties(&self) -> &[::std::string::String] { - &self.properties - } - pub fn clear_properties(&mut self) { - self.properties.clear(); - } - - // Param is passed by value, moved - pub fn set_properties(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.properties = v; - } - - // Mutable pointer to the field. - pub fn mut_properties(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.properties - } - - // Take field - pub fn take_properties(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.properties, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_MSI { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.properties)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.properties { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.properties { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_MSI { - OSPolicy_Resource_PackageResource_MSI::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "properties", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.properties }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.properties }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.MSI", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_MSI { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_MSI::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_MSI { - fn clear(&mut self) { - self.source.clear(); - self.properties.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_MSI { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_MSI { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_PackageResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - INSTALLED = 1, - REMOVED = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_PackageResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::INSTALLED), - 2 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::REMOVED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_PackageResource_DesiredState] = &[ - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_PackageResource_DesiredState::INSTALLED, - OSPolicy_Resource_PackageResource_DesiredState::REMOVED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.PackageResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_PackageResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_PackageResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource { - // message oneof groups - pub repository: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource { - fn default() -> &'a OSPolicy_Resource_RepositoryResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_RepositoryResource_oneof_repository { - apt(OSPolicy_Resource_RepositoryResource_AptRepository), - yum(OSPolicy_Resource_RepositoryResource_YumRepository), - zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository), - goo(OSPolicy_Resource_RepositoryResource_GooRepository), -} - -impl OSPolicy_Resource_RepositoryResource { - pub fn new() -> OSPolicy_Resource_RepositoryResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_RepositoryResource_AptRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_AptRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(OSPolicy_Resource_RepositoryResource_AptRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_RepositoryResource_AptRepository { - if self.has_apt() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_RepositoryResource_YumRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_RepositoryResource_YumRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_YumRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(OSPolicy_Resource_RepositoryResource_YumRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_RepositoryResource_YumRepository { - if self.has_yum() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_RepositoryResource_ZypperRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_RepositoryResource_ZypperRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_ZypperRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - if self.has_zypper() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4; - - - pub fn get_goo(&self) -> &OSPolicy_Resource_RepositoryResource_GooRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_goo(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_goo(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_goo(&mut self, v: OSPolicy_Resource_RepositoryResource_GooRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) - } - - // Mutable pointer to the field. - pub fn mut_goo(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_GooRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(OSPolicy_Resource_RepositoryResource_GooRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_goo(&mut self) -> OSPolicy_Resource_RepositoryResource_GooRepository { - if self.has_goo() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource { - OSPolicy_Resource_RepositoryResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_AptRepository>( - "apt", - OSPolicy_Resource_RepositoryResource::has_apt, - OSPolicy_Resource_RepositoryResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_YumRepository>( - "yum", - OSPolicy_Resource_RepositoryResource::has_yum, - OSPolicy_Resource_RepositoryResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_ZypperRepository>( - "zypper", - OSPolicy_Resource_RepositoryResource::has_zypper, - OSPolicy_Resource_RepositoryResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_GooRepository>( - "goo", - OSPolicy_Resource_RepositoryResource::has_goo, - OSPolicy_Resource_RepositoryResource::get_goo, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource { - fn clear(&mut self) { - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_AptRepository { - // message fields - pub archive_type: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType, - pub uri: ::std::string::String, - pub distribution: ::std::string::String, - pub components: ::protobuf::RepeatedField<::std::string::String>, - pub gpg_key: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_AptRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_AptRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_AptRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1; - - - pub fn get_archive_type(&self) -> OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - self.archive_type - } - pub fn clear_archive_type(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_archive_type(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) { - self.archive_type = v; - } - - // string uri = 2; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string distribution = 3; - - - pub fn get_distribution(&self) -> &str { - &self.distribution - } - pub fn clear_distribution(&mut self) { - self.distribution.clear(); - } - - // Param is passed by value, moved - pub fn set_distribution(&mut self, v: ::std::string::String) { - self.distribution = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_distribution(&mut self) -> &mut ::std::string::String { - &mut self.distribution - } - - // Take field - pub fn take_distribution(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.distribution, ::std::string::String::new()) - } - - // repeated string components = 4; - - - pub fn get_components(&self) -> &[::std::string::String] { - &self.components - } - pub fn clear_components(&mut self) { - self.components.clear(); - } - - // Param is passed by value, moved - pub fn set_components(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.components = v; - } - - // Mutable pointer to the field. - pub fn mut_components(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.components - } - - // Take field - pub fn take_components(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.components, ::protobuf::RepeatedField::new()) - } - - // string gpg_key = 5; - - - pub fn get_gpg_key(&self) -> &str { - &self.gpg_key - } - pub fn clear_gpg_key(&mut self) { - self.gpg_key.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_key(&mut self, v: ::std::string::String) { - self.gpg_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gpg_key(&mut self) -> &mut ::std::string::String { - &mut self.gpg_key - } - - // Take field - pub fn take_gpg_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gpg_key, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_AptRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.archive_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.distribution)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.components)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gpg_key)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.archive_type); - } - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.uri); - } - if !self.distribution.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.distribution); - } - for value in &self.components { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.gpg_key.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.gpg_key); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.archive_type))?; - } - if !self.uri.is_empty() { - os.write_string(2, &self.uri)?; - } - if !self.distribution.is_empty() { - os.write_string(3, &self.distribution)?; - } - for v in &self.components { - os.write_string(4, &v)?; - }; - if !self.gpg_key.is_empty() { - os.write_string(5, &self.gpg_key)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "archive_type", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.archive_type }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.archive_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.uri }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "distribution", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.distribution }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.distribution }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "components", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.components }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.components }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_key", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.gpg_key }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.gpg_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.AptRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_AptRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_AptRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_AptRepository { - fn clear(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - self.uri.clear(); - self.distribution.clear(); - self.components.clear(); - self.gpg_key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_AptRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - ARCHIVE_TYPE_UNSPECIFIED = 0, - DEB = 1, - DEB_SRC = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB), - 2 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType] = &[ - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { -} - -impl ::std::default::Default for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn default() -> Self { - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_YumRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_YumRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_YumRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_YumRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_YumRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.YumRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_YumRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_YumRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_YumRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_YumRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_YumRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_ZypperRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_ZypperRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.ZypperRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_ZypperRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_ZypperRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_GooRepository { - // message fields - pub name: ::std::string::String, - pub url: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_GooRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_GooRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_GooRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string url = 2; - - - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } - - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } - - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_GooRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.url); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.url.is_empty() { - os.write_string(2, &self.url)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.name }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.url }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.url }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.GooRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_GooRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_GooRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_GooRepository { - fn clear(&mut self) { - self.name.clear(); - self.url.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_GooRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_GooRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource { - // message fields - pub validate: ::protobuf::SingularPtrField, - pub enforce: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource { - fn default() -> &'a OSPolicy_Resource_ExecResource { - ::default_instance() - } -} - -impl OSPolicy_Resource_ExecResource { - pub fn new() -> OSPolicy_Resource_ExecResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.Exec validate = 1; - - - pub fn get_validate(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.validate.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_validate(&mut self) { - self.validate.clear(); - } - - pub fn has_validate(&self) -> bool { - self.validate.is_some() - } - - // Param is passed by value, moved - pub fn set_validate(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.validate = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_validate(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.validate.is_none() { - self.validate.set_default(); - } - self.validate.as_mut().unwrap() - } - - // Take field - pub fn take_validate(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.validate.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.Exec enforce = 2; - - - pub fn get_enforce(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.enforce.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_enforce(&mut self) { - self.enforce.clear(); - } - - pub fn has_enforce(&self) -> bool { - self.enforce.is_some() - } - - // Param is passed by value, moved - pub fn set_enforce(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.enforce = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforce(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.enforce.is_none() { - self.enforce.set_default(); - } - self.enforce.as_mut().unwrap() - } - - // Take field - pub fn take_enforce(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.enforce.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource { - fn is_initialized(&self) -> bool { - for v in &self.validate { - if !v.is_initialized() { - return false; - } - }; - for v in &self.enforce { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.validate)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.enforce)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.validate.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.enforce.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.validate.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.enforce.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource { - OSPolicy_Resource_ExecResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "validate", - |m: &OSPolicy_Resource_ExecResource| { &m.validate }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.validate }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "enforce", - |m: &OSPolicy_Resource_ExecResource| { &m.enforce }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.enforce }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource { - fn clear(&mut self) { - self.validate.clear(); - self.enforce.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource_Exec { - // message fields - pub args: ::protobuf::RepeatedField<::std::string::String>, - pub interpreter: OSPolicy_Resource_ExecResource_Exec_Interpreter, - pub output_file_path: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource_Exec { - fn default() -> &'a OSPolicy_Resource_ExecResource_Exec { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_ExecResource_Exec_oneof_source { - file(OSPolicy_Resource_File), - script(::std::string::String), -} - -impl OSPolicy_Resource_ExecResource_Exec { - pub fn new() -> OSPolicy_Resource_ExecResource_Exec { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string script = 2; - - - pub fn get_script(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v)) => v, - _ => "", - } - } - pub fn clear_script(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_script(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_script(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) - } - - // Mutable pointer to the field. - pub fn mut_script(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_script(&mut self) -> ::std::string::String { - if self.has_script() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // repeated string args = 3; - - - pub fn get_args(&self) -> &[::std::string::String] { - &self.args - } - pub fn clear_args(&mut self) { - self.args.clear(); - } - - // Param is passed by value, moved - pub fn set_args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.args = v; - } - - // Mutable pointer to the field. - pub fn mut_args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.args - } - - // Take field - pub fn take_args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.args, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4; - - - pub fn get_interpreter(&self) -> OSPolicy_Resource_ExecResource_Exec_Interpreter { - self.interpreter - } - pub fn clear_interpreter(&mut self) { - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_interpreter(&mut self, v: OSPolicy_Resource_ExecResource_Exec_Interpreter) { - self.interpreter = v; - } - - // string output_file_path = 5; - - - pub fn get_output_file_path(&self) -> &str { - &self.output_file_path - } - pub fn clear_output_file_path(&mut self) { - self.output_file_path.clear(); - } - - // Param is passed by value, moved - pub fn set_output_file_path(&mut self, v: ::std::string::String) { - self.output_file_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_file_path(&mut self) -> &mut ::std::string::String { - &mut self.output_file_path - } - - // Take field - pub fn take_output_file_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.output_file_path, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource_Exec { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.args)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.interpreter, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.output_file_path)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.args { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.interpreter); - } - if !self.output_file_path.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.output_file_path); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.args { - os.write_string(3, &v)?; - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.interpreter))?; - } - if !self.output_file_path.is_empty() { - os.write_string(5, &self.output_file_path)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource_Exec { - OSPolicy_Resource_ExecResource_Exec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_ExecResource_Exec::has_file, - OSPolicy_Resource_ExecResource_Exec::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "script", - OSPolicy_Resource_ExecResource_Exec::has_script, - OSPolicy_Resource_ExecResource_Exec::get_script, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "args", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.args }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.args }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "interpreter", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.interpreter }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.interpreter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "output_file_path", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.output_file_path }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.output_file_path }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource.Exec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource_Exec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource_Exec::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource_Exec { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.args.clear(); - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - self.output_file_path.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource_Exec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_ExecResource_Exec_Interpreter { - INTERPRETER_UNSPECIFIED = 0, - NONE = 1, - SHELL = 2, - POWERSHELL = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE), - 2 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL), - 3 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_ExecResource_Exec_Interpreter] = &[ - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED, - OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE, - OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL, - OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.ExecResource.Exec.Interpreter", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_ExecResource_Exec_Interpreter { -} - -impl ::std::default::Default for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn default() -> Self { - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_FileResource { - // message fields - pub path: ::std::string::String, - pub state: OSPolicy_Resource_FileResource_DesiredState, - pub permissions: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_FileResource { - fn default() -> &'a OSPolicy_Resource_FileResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_FileResource_oneof_source { - file(OSPolicy_Resource_File), - content(::std::string::String), -} - -impl OSPolicy_Resource_FileResource { - pub fn new() -> OSPolicy_Resource_FileResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string content = 2; - - - pub fn get_content(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref v)) => v, - _ => "", - } - } - pub fn clear_content(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_content(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_content(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) - } - - // Mutable pointer to the field. - pub fn mut_content(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_content(&mut self) -> ::std::string::String { - if self.has_content() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string path = 3; - - - pub fn get_path(&self) -> &str { - &self.path - } - pub fn clear_path(&mut self) { - self.path.clear(); - } - - // Param is passed by value, moved - pub fn set_path(&mut self, v: ::std::string::String) { - self.path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path(&mut self) -> &mut ::std::string::String { - &mut self.path - } - - // Take field - pub fn take_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.FileResource.DesiredState state = 4; - - - pub fn get_state(&self) -> OSPolicy_Resource_FileResource_DesiredState { - self.state - } - pub fn clear_state(&mut self) { - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: OSPolicy_Resource_FileResource_DesiredState) { - self.state = v; - } - - // string permissions = 5; - - - pub fn get_permissions(&self) -> &str { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::std::string::String) { - self.permissions = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_permissions(&mut self) -> &mut ::std::string::String { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.permissions, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_FileResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.path.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.path); - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.state); - } - if !self.permissions.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.permissions); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.path.is_empty() { - os.write_string(3, &self.path)?; - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.permissions.is_empty() { - os.write_string(5, &self.permissions)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_FileResource { - OSPolicy_Resource_FileResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_FileResource::has_file, - OSPolicy_Resource_FileResource::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "content", - OSPolicy_Resource_FileResource::has_content, - OSPolicy_Resource_FileResource::get_content, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path", - |m: &OSPolicy_Resource_FileResource| { &m.path }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &OSPolicy_Resource_FileResource| { &m.state }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &OSPolicy_Resource_FileResource| { &m.permissions }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.FileResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_FileResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_FileResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_FileResource { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.path.clear(); - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_FileResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_FileResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - PRESENT = 1, - ABSENT = 2, - CONTENTS_MATCH = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_FileResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::PRESENT), - 2 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::ABSENT), - 3 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_FileResource_DesiredState] = &[ - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_FileResource_DesiredState::PRESENT, - OSPolicy_Resource_FileResource_DesiredState::ABSENT, - OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.FileResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_FileResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_FileResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Mode { - MODE_UNSPECIFIED = 0, - VALIDATION = 1, - ENFORCEMENT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Mode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Mode::MODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Mode::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicy_Mode::ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Mode] = &[ - OSPolicy_Mode::MODE_UNSPECIFIED, - OSPolicy_Mode::VALIDATION, - OSPolicy_Mode::ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Mode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Mode { -} - -impl ::std::default::Default for OSPolicy_Mode { - fn default() -> Self { - OSPolicy_Mode::MODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Mode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n6google/cloud/osconfig/agentendpoint/v1/os_policy.proto\x12&google.clo\ - ud.osconfig.agentendpoint.v1\x1a\x1fgoogle/api/field_behavior.proto\"\ - \xb8$\n\x08OSPolicy\x1a\xec#\n\x08Resource\x12\x13\n\x02id\x18\x01\x20\ - \x01(\tR\x02idB\x03\xe0A\x02\x12]\n\x03pkg\x18\x02\x20\x01(\x0b2I.google\ - .cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResourceH\0R\ - \x03pkg\x12n\n\nrepository\x18\x03\x20\x01(\x0b2L.google.cloud.osconfig.\ - agentendpoint.v1.OSPolicy.Resource.RepositoryResourceH\0R\nrepository\ - \x12\\\n\x04exec\x18\x04\x20\x01(\x0b2F.google.cloud.osconfig.agentendpo\ - int.v1.OSPolicy.Resource.ExecResourceH\0R\x04exec\x12\\\n\x04file\x18\ - \x05\x20\x01(\x0b2F.google.cloud.osconfig.agentendpoint.v1.OSPolicy.Reso\ - urce.FileResourceH\0R\x04file\x1a\xba\x03\n\x04File\x12_\n\x06remote\x18\ - \x01\x20\x01(\x0b2E.google.cloud.osconfig.agentendpoint.v1.OSPolicy.Reso\ - urce.File.RemoteH\0R\x06remote\x12V\n\x03gcs\x18\x02\x20\x01(\x0b2B.goog\ - le.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.File.GcsH\0R\x03gcs\ - \x12\x1f\n\nlocal_path\x18\x03\x20\x01(\tH\0R\tlocalPath\x12%\n\x0eallow\ - _insecure\x18\x04\x20\x01(\x08R\rallowInsecure\x1aH\n\x06Remote\x12\x15\ - \n\x03uri\x18\x01\x20\x01(\tR\x03uriB\x03\xe0A\x02\x12'\n\x0fsha256_chec\ - ksum\x18\x02\x20\x01(\tR\x0esha256Checksum\x1a_\n\x03Gcs\x12\x1b\n\x06bu\ - cket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06object\x18\ - \x02\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x03\ - \x20\x01(\x03R\ngenerationB\x06\n\x04type\x1a\xc5\x0b\n\x0fPackageResour\ - ce\x12\x80\x01\n\rdesired_state\x18\x01\x20\x01(\x0e2V.google.cloud.osco\ - nfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.DesiredStateR\ - \x0cdesiredStateB\x03\xe0A\x02\x12a\n\x03apt\x18\x02\x20\x01(\x0b2M.goog\ - le.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.APT\ - H\0R\x03apt\x12a\n\x03deb\x18\x03\x20\x01(\x0b2M.google.cloud.osconfig.a\ - gentendpoint.v1.OSPolicy.Resource.PackageResource.DebH\0R\x03deb\x12a\n\ - \x03yum\x18\x04\x20\x01(\x0b2M.google.cloud.osconfig.agentendpoint.v1.OS\ - Policy.Resource.PackageResource.YUMH\0R\x03yum\x12j\n\x06zypper\x18\x05\ - \x20\x01(\x0b2P.google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource\ - .PackageResource.ZypperH\0R\x06zypper\x12a\n\x03rpm\x18\x06\x20\x01(\x0b\ - 2M.google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResou\ - rce.RPMH\0R\x03rpm\x12j\n\x06googet\x18\x07\x20\x01(\x0b2P.google.cloud.\ - osconfig.agentendpoint.v1.OSPolicy.Resource.PackageResource.GooGetH\0R\ - \x06googet\x12a\n\x03msi\x18\x08\x20\x01(\x0b2M.google.cloud.osconfig.ag\ - entendpoint.v1.OSPolicy.Resource.PackageResource.MSIH\0R\x03msi\x1a\x7f\ - \n\x03Deb\x12[\n\x06source\x18\x01\x20\x01(\x0b2>.google.cloud.osconfig.\ - agentendpoint.v1.OSPolicy.Resource.FileR\x06sourceB\x03\xe0A\x02\x12\x1b\ - \n\tpull_deps\x18\x02\x20\x01(\x08R\x08pullDeps\x1a\x1e\n\x03APT\x12\x17\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x1a\x7f\n\x03RPM\ - \x12[\n\x06source\x18\x01\x20\x01(\x0b2>.google.cloud.osconfig.agentendp\ - oint.v1.OSPolicy.Resource.FileR\x06sourceB\x03\xe0A\x02\x12\x1b\n\tpull_\ - deps\x18\x02\x20\x01(\x08R\x08pullDeps\x1a\x1e\n\x03YUM\x12\x17\n\x04nam\ - e\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x1a!\n\x06Zypper\x12\x17\n\ - \x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x1a!\n\x06GooGet\x12\ - \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x1a\x82\x01\n\ - \x03MSI\x12[\n\x06source\x18\x01\x20\x01(\x0b2>.google.cloud.osconfig.ag\ - entendpoint.v1.OSPolicy.Resource.FileR\x06sourceB\x03\xe0A\x02\x12\x1e\n\ - \nproperties\x18\x02\x20\x03(\tR\nproperties\"I\n\x0cDesiredState\x12\ - \x1d\n\x19DESIRED_STATE_UNSPECIFIED\x10\0\x12\r\n\tINSTALLED\x10\x01\x12\ - \x0b\n\x07REMOVED\x10\x02B\x10\n\x0esystem_package\x1a\x9d\t\n\x12Reposi\ - toryResource\x12n\n\x03apt\x18\x01\x20\x01(\x0b2Z.google.cloud.osconfig.\ - agentendpoint.v1.OSPolicy.Resource.RepositoryResource.AptRepositoryH\0R\ - \x03apt\x12n\n\x03yum\x18\x02\x20\x01(\x0b2Z.google.cloud.osconfig.agent\ - endpoint.v1.OSPolicy.Resource.RepositoryResource.YumRepositoryH\0R\x03yu\ - m\x12w\n\x06zypper\x18\x03\x20\x01(\x0b2].google.cloud.osconfig.agentend\ - point.v1.OSPolicy.Resource.RepositoryResource.ZypperRepositoryH\0R\x06zy\ - pper\x12n\n\x03goo\x18\x04\x20\x01(\x0b2Z.google.cloud.osconfig.agentend\ - point.v1.OSPolicy.Resource.RepositoryResource.GooRepositoryH\0R\x03goo\ - \x1a\xe1\x02\n\rAptRepository\x12\x8e\x01\n\x0carchive_type\x18\x01\x20\ - \x01(\x0e2f.google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.Rep\ - ositoryResource.AptRepository.ArchiveTypeR\x0barchiveTypeB\x03\xe0A\x02\ - \x12\x15\n\x03uri\x18\x02\x20\x01(\tR\x03uriB\x03\xe0A\x02\x12'\n\x0cdis\ - tribution\x18\x03\x20\x01(\tR\x0cdistributionB\x03\xe0A\x02\x12#\n\ncomp\ - onents\x18\x04\x20\x03(\tR\ncomponentsB\x03\xe0A\x02\x12\x17\n\x07gpg_ke\ - y\x18\x05\x20\x01(\tR\x06gpgKey\"A\n\x0bArchiveType\x12\x1c\n\x18ARCHIVE\ - _TYPE_UNSPECIFIED\x10\0\x12\x07\n\x03DEB\x10\x01\x12\x0b\n\x07DEB_SRC\ - \x10\x02\x1a\x82\x01\n\rYumRepository\x12\x13\n\x02id\x18\x01\x20\x01(\t\ - R\x02idB\x03\xe0A\x02\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisp\ - layName\x12\x1e\n\x08base_url\x18\x03\x20\x01(\tR\x07baseUrlB\x03\xe0A\ - \x02\x12\x19\n\x08gpg_keys\x18\x04\x20\x03(\tR\x07gpgKeys\x1a\x85\x01\n\ - \x10ZypperRepository\x12\x13\n\x02id\x18\x01\x20\x01(\tR\x02idB\x03\xe0A\ - \x02\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x1e\n\ - \x08base_url\x18\x03\x20\x01(\tR\x07baseUrlB\x03\xe0A\x02\x12\x19\n\x08g\ - pg_keys\x18\x04\x20\x03(\tR\x07gpgKeys\x1a?\n\rGooRepository\x12\x17\n\ - \x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x12\x15\n\x03url\x18\ - \x02\x20\x01(\tR\x03urlB\x03\xe0A\x02B\x0c\n\nrepository\x1a\xf5\x04\n\ - \x0cExecResource\x12l\n\x08validate\x18\x01\x20\x01(\x0b2K.google.cloud.\ - osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.ExecR\x08valida\ - teB\x03\xe0A\x02\x12e\n\x07enforce\x18\x02\x20\x01(\x0b2K.google.cloud.o\ - sconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.ExecR\x07enforce\ - \x1a\x8f\x03\n\x04Exec\x12T\n\x04file\x18\x01\x20\x01(\x0b2>.google.clou\ - d.osconfig.agentendpoint.v1.OSPolicy.Resource.FileH\0R\x04file\x12\x18\n\ - \x06script\x18\x02\x20\x01(\tH\0R\x06script\x12\x12\n\x04args\x18\x03\ - \x20\x03(\tR\x04args\x12~\n\x0binterpreter\x18\x04\x20\x01(\x0e2W.google\ - .cloud.osconfig.agentendpoint.v1.OSPolicy.Resource.ExecResource.Exec.Int\ - erpreterR\x0binterpreterB\x03\xe0A\x02\x12(\n\x10output_file_path\x18\ - \x05\x20\x01(\tR\x0eoutputFilePath\"O\n\x0bInterpreter\x12\x1b\n\x17INTE\ - RPRETER_UNSPECIFIED\x10\0\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05SHELL\x10\ - \x02\x12\x0e\n\nPOWERSHELL\x10\x03B\x08\n\x06source\x1a\x91\x03\n\x0cFil\ - eResource\x12T\n\x04file\x18\x01\x20\x01(\x0b2>.google.cloud.osconfig.ag\ - entendpoint.v1.OSPolicy.Resource.FileH\0R\x04file\x12\x1a\n\x07content\ - \x18\x02\x20\x01(\tH\0R\x07content\x12\x17\n\x04path\x18\x03\x20\x01(\tR\ - \x04pathB\x03\xe0A\x02\x12n\n\x05state\x18\x04\x20\x01(\x0e2S.google.clo\ - ud.osconfig.agentendpoint.v1.OSPolicy.Resource.FileResource.DesiredState\ - R\x05stateB\x03\xe0A\x02\x12\x20\n\x0bpermissions\x18\x05\x20\x01(\tR\ - \x0bpermissions\"Z\n\x0cDesiredState\x12\x1d\n\x19DESIRED_STATE_UNSPECIF\ - IED\x10\0\x12\x0b\n\x07PRESENT\x10\x01\x12\n\n\x06ABSENT\x10\x02\x12\x12\ - \n\x0eCONTENTS_MATCH\x10\x03B\x08\n\x06sourceB\x0f\n\rresource_type\"=\n\ - \x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\0\x12\x0e\n\nVALIDATION\x10\ - \x01\x12\x0f\n\x0bENFORCEMENT\x10\x02B\x8f\x01\n*com.google.cloud.osconf\ - ig.agentendpoint.v1B\rOSPolicyProtoP\x01ZPcloud.google.com/go/osconfig/a\ - gentendpoint/apiv1/agentendpointpb;agentendpointpbJ\x9a\x89\x01\n\x07\ - \x12\x05\x0e\0\xbc\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ - \x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ - he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ - \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ - ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ - of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ - licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ - w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0/\n\t\n\x02\x03\0\x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\ - \x14\0g\n\t\n\x02\x08\x0b\x12\x03\x14\0g\n\x08\n\x01\x08\x12\x03\x15\0\"\ - \n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0.\n\t\n\ - \x02\x08\x08\x12\x03\x16\0.\n\x08\n\x01\x08\x12\x03\x17\0C\n\t\n\x02\x08\ - \x01\x12\x03\x17\0C\nT\n\x02\x04\0\x12\x05\x1a\0\xbc\x03\x01\x1aG\x20An\ - \x20OS\x20policy\x20defines\x20the\x20desired\x20state\x20configuration\ - \x20for\x20an\x20instance.\n\n\n\n\x03\x04\0\x01\x12\x03\x1a\x08\x10\n\ - \x1b\n\x04\x04\0\x04\0\x12\x04\x1c\x02(\x03\x1a\r\x20Policy\x20mode\n\n\ - \x0c\n\x05\x04\0\x04\0\x01\x12\x03\x1c\x07\x0b\n\x1d\n\x06\x04\0\x04\0\ - \x02\0\x12\x03\x1e\x04\x19\x1a\x0e\x20Invalid\x20mode\n\n\x0e\n\x07\x04\ - \0\x04\0\x02\0\x01\x12\x03\x1e\x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\ - \x12\x03\x1e\x17\x18\n\xd6\x01\n\x06\x04\0\x04\0\x02\x01\x12\x03#\x04\ - \x13\x1a\xc6\x01\x20This\x20mode\x20checks\x20if\x20the\x20configuration\ - \x20resources\x20in\x20the\x20policy\x20are\x20in\n\x20their\x20desired\ - \x20state.\x20No\x20actions\x20are\x20performed\x20if\x20they\x20are\x20\ - not\x20in\x20the\n\x20desired\x20state.\x20This\x20mode\x20is\x20used\ - \x20for\x20reporting\x20purposes.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\ - \x12\x03#\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03#\x11\x12\n\ - \x94\x01\n\x06\x04\0\x04\0\x02\x02\x12\x03'\x04\x14\x1a\x84\x01\x20This\ - \x20mode\x20checks\x20if\x20the\x20configuration\x20resources\x20in\x20t\ - he\x20policy\x20are\x20in\n\x20their\x20desired\x20state,\x20and\x20if\ - \x20not,\x20enforces\x20the\x20desired\x20state.\n\n\x0e\n\x07\x04\0\x04\ - \0\x02\x02\x01\x12\x03'\x04\x0f\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\ - \x03'\x12\x13\n\xce\x02\n\x04\x04\0\x03\0\x12\x050\x02\xb9\x03\x03\x1a\ - \xbe\x02\x20An\x20OS\x20policy\x20resource\x20is\x20used\x20to\x20define\ - \x20the\x20desired\x20state\x20configuration\n\x20and\x20provides\x20a\ - \x20specific\x20functionality\x20like\x20installing/removing\x20packages\ - ,\n\x20executing\x20a\x20script\x20etc.\n\n\x20The\x20system\x20ensures\ - \x20that\x20resources\x20are\x20always\x20in\x20their\x20desired\x20stat\ - e\x20by\n\x20taking\x20necessary\x20actions\x20if\x20they\x20have\x20dri\ - fted\x20from\x20their\x20desired\x20state.\n\n\x0c\n\x05\x04\0\x03\0\x01\ - \x12\x030\n\x12\n)\n\x06\x04\0\x03\0\x03\0\x12\x042\x04[\x05\x1a\x19\x20\ - A\x20remote\x20or\x20local\x20file.\n\n\x0e\n\x07\x04\0\x03\0\x03\0\x01\ - \x12\x032\x0c\x10\n<\n\x08\x04\0\x03\0\x03\0\x03\0\x12\x044\x06;\x07\x1a\ - *\x20Specifies\x20a\x20file\x20available\x20via\x20some\x20URI.\n\n\x10\ - \n\t\x04\0\x03\0\x03\0\x03\0\x01\x12\x034\x0e\x14\n\xa1\x01\n\n\x04\0\ - \x03\0\x03\0\x03\0\x02\0\x12\x037\x08@\x1a\x8d\x01\x20Required.\x20URI\ - \x20from\x20which\x20to\x20fetch\x20the\x20object.\x20It\x20should\x20co\ - ntain\x20both\x20the\n\x20protocol\x20and\x20path\x20following\x20the\ - \x20format\x20`{protocol}://{location}`.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\ - \x03\0\x02\0\x05\x12\x037\x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\ - \x02\0\x01\x12\x037\x0f\x12\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\ - \x03\x12\x037\x15\x16\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\x08\x12\ - \x037\x17?\n\x15\n\x0e\x04\0\x03\0\x03\0\x03\0\x02\0\x08\x9c\x08\0\x12\ - \x037\x18>\n8\n\n\x04\0\x03\0\x03\0\x03\0\x02\x01\x12\x03:\x08#\x1a%\x20\ - SHA256\x20checksum\x20of\x20the\x20remote\x20file.\n\n\x12\n\x0b\x04\0\ - \x03\0\x03\0\x03\0\x02\x01\x05\x12\x03:\x08\x0e\n\x12\n\x0b\x04\0\x03\0\ - \x03\0\x03\0\x02\x01\x01\x12\x03:\x0f\x1e\n\x12\n\x0b\x04\0\x03\0\x03\0\ - \x03\0\x02\x01\x03\x12\x03:!\"\nI\n\x08\x04\0\x03\0\x03\0\x03\x01\x12\ - \x04>\x06G\x07\x1a7\x20Specifies\x20a\x20file\x20available\x20as\x20a\ - \x20Cloud\x20Storage\x20Object.\n\n\x10\n\t\x04\0\x03\0\x03\0\x03\x01\ - \x01\x12\x03>\x0e\x11\nB\n\n\x04\0\x03\0\x03\0\x03\x01\x02\0\x12\x03@\ - \x08C\x1a/\x20Required.\x20Bucket\x20of\x20the\x20Cloud\x20Storage\x20ob\ - ject.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\0\x05\x12\x03@\x08\x0e\ - \n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\0\x01\x12\x03@\x0f\x15\n\x12\ - \n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\0\x03\x12\x03@\x18\x19\n\x12\n\x0b\ - \x04\0\x03\0\x03\0\x03\x01\x02\0\x08\x12\x03@\x1aB\n\x15\n\x0e\x04\0\x03\ - \0\x03\0\x03\x01\x02\0\x08\x9c\x08\0\x12\x03@\x1bA\n@\n\n\x04\0\x03\0\ - \x03\0\x03\x01\x02\x01\x12\x03C\x08C\x1a-\x20Required.\x20Name\x20of\x20\ - the\x20Cloud\x20Storage\x20object.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\ - \x01\x02\x01\x05\x12\x03C\x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\ - \x02\x01\x01\x12\x03C\x0f\x15\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\ - \x01\x03\x12\x03C\x18\x19\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\x01\ - \x08\x12\x03C\x1aB\n\x15\n\x0e\x04\0\x03\0\x03\0\x03\x01\x02\x01\x08\x9c\ - \x08\0\x12\x03C\x1bA\nC\n\n\x04\0\x03\0\x03\0\x03\x01\x02\x02\x12\x03F\ - \x08\x1d\x1a0\x20Generation\x20number\x20of\x20the\x20Cloud\x20Storage\ - \x20object.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\x02\x05\x12\x03F\ - \x08\r\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\x02\x01\x12\x03F\x0e\ - \x18\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\x01\x02\x02\x03\x12\x03F\x1b\x1c\ - \n,\n\x08\x04\0\x03\0\x03\0\x08\0\x12\x04J\x06S\x07\x1a\x1a\x20A\x20spec\ - ific\x20type\x20of\x20file.\n\n\x10\n\t\x04\0\x03\0\x03\0\x08\0\x01\x12\ - \x03J\x0c\x10\n)\n\x08\x04\0\x03\0\x03\0\x02\0\x12\x03L\x08\x1a\x1a\x18\ - \x20A\x20generic\x20remote\x20file.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\ - \x06\x12\x03L\x08\x0e\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\x01\x12\x03L\x0f\ - \x15\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\x03\x12\x03L\x18\x19\n*\n\x08\x04\ - \0\x03\0\x03\0\x02\x01\x12\x03O\x08\x14\x1a\x19\x20A\x20Cloud\x20Storage\ - \x20object.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x01\x06\x12\x03O\x08\x0b\n\ - \x10\n\t\x04\0\x03\0\x03\0\x02\x01\x01\x12\x03O\x0c\x0f\n\x10\n\t\x04\0\ - \x03\0\x03\0\x02\x01\x03\x12\x03O\x12\x13\n'\n\x08\x04\0\x03\0\x03\0\x02\ - \x02\x12\x03R\x08\x1e\x1a\x16\x20A\x20local\x20path\x20to\x20use.\n\n\ - \x10\n\t\x04\0\x03\0\x03\0\x02\x02\x05\x12\x03R\x08\x0e\n\x10\n\t\x04\0\ - \x03\0\x03\0\x02\x02\x01\x12\x03R\x0f\x19\n\x10\n\t\x04\0\x03\0\x03\0\ - \x02\x02\x03\x12\x03R\x1c\x1d\n\xd3\x01\n\x08\x04\0\x03\0\x03\0\x02\x03\ - \x12\x03Z\x06\x1e\x1a\xc1\x01\x20Defaults\x20to\x20false.\x20When\x20fal\ - se,\x20files\x20are\x20subject\x20to\x20validations\n\x20based\x20on\x20\ - the\x20file\x20type:\n\n\x20Remote:\x20A\x20checksum\x20must\x20be\x20sp\ - ecified.\n\x20Cloud\x20Storage:\x20An\x20object\x20generation\x20number\ - \x20must\x20be\x20specified.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x03\x05\ - \x12\x03Z\x06\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x03\x01\x12\x03Z\x0b\x19\ - \n\x10\n\t\x04\0\x03\0\x03\0\x02\x03\x03\x12\x03Z\x1c\x1d\n<\n\x06\x04\0\ - \x03\0\x03\x01\x12\x05^\x04\xcb\x01\x05\x1a+\x20A\x20resource\x20that\ - \x20manages\x20a\x20system\x20package.\n\n\x0e\n\x07\x04\0\x03\0\x03\x01\ - \x01\x12\x03^\x0c\x1b\nS\n\x08\x04\0\x03\0\x03\x01\x04\0\x12\x04`\x06j\ - \x07\x1aA\x20The\x20desired\x20state\x20that\x20the\x20OS\x20Config\x20a\ - gent\x20maintains\x20on\x20the\x20VM.\n\n\x10\n\t\x04\0\x03\0\x03\x01\ - \x04\0\x01\x12\x03`\x0b\x17\n,\n\n\x04\0\x03\0\x03\x01\x04\0\x02\0\x12\ - \x03b\x08&\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x12\n\x0b\x04\0\ - \x03\0\x03\x01\x04\0\x02\0\x01\x12\x03b\x08!\n\x12\n\x0b\x04\0\x03\0\x03\ - \x01\x04\0\x02\0\x02\x12\x03b$%\n:\n\n\x04\0\x03\0\x03\x01\x04\0\x02\x01\ - \x12\x03e\x08\x16\x1a'\x20Ensure\x20that\x20the\x20package\x20is\x20inst\ - alled.\n\n\x12\n\x0b\x04\0\x03\0\x03\x01\x04\0\x02\x01\x01\x12\x03e\x08\ - \x11\n\x12\n\x0b\x04\0\x03\0\x03\x01\x04\0\x02\x01\x02\x12\x03e\x14\x15\ - \nh\n\n\x04\0\x03\0\x03\x01\x04\0\x02\x02\x12\x03i\x08\x14\x1aU\x20The\ - \x20agent\x20ensures\x20that\x20the\x20package\x20is\x20not\x20installed\ - \x20and\n\x20uninstalls\x20it\x20if\x20detected.\n\n\x12\n\x0b\x04\0\x03\ - \0\x03\x01\x04\0\x02\x02\x01\x12\x03i\x08\x0f\n\x12\n\x0b\x04\0\x03\0\ - \x03\x01\x04\0\x02\x02\x02\x12\x03i\x12\x13\nS\n\x08\x04\0\x03\0\x03\x01\ - \x03\0\x12\x04m\x06v\x07\x1aA\x20A\x20deb\x20package\x20file.\x20dpkg\ - \x20packages\x20only\x20support\x20INSTALLED\x20state.\n\n\x10\n\t\x04\0\ - \x03\0\x03\x01\x03\0\x01\x12\x03m\x0e\x11\n-\n\n\x04\0\x03\0\x03\x01\x03\ - \0\x02\0\x12\x03o\x08A\x1a\x1a\x20Required.\x20A\x20deb\x20package.\n\n\ - \x12\n\x0b\x04\0\x03\0\x03\x01\x03\0\x02\0\x06\x12\x03o\x08\x0c\n\x12\n\ - \x0b\x04\0\x03\0\x03\x01\x03\0\x02\0\x01\x12\x03o\r\x13\n\x12\n\x0b\x04\ - \0\x03\0\x03\x01\x03\0\x02\0\x03\x12\x03o\x16\x17\n\x12\n\x0b\x04\0\x03\ - \0\x03\x01\x03\0\x02\0\x08\x12\x03o\x18@\n\x15\n\x0e\x04\0\x03\0\x03\x01\ - \x03\0\x02\0\x08\x9c\x08\0\x12\x03o\x19?\n\xb3\x01\n\n\x04\0\x03\0\x03\ - \x01\x03\0\x02\x01\x12\x03u\x08\x1b\x1a\x9f\x01\x20Whether\x20dependenci\ - es\x20should\x20also\x20be\x20installed.\n\x20install\x20when\x20false:\ - \x20`dpkg\x20-i\x20package`\n\x20install\x20when\x20true:\x20`apt-get\ - \x20update\x20&&\x20apt-get\x20-y\x20install\n\x20package.deb`\n\n\x12\n\ - \x0b\x04\0\x03\0\x03\x01\x03\0\x02\x01\x05\x12\x03u\x08\x0c\n\x12\n\x0b\ - \x04\0\x03\0\x03\x01\x03\0\x02\x01\x01\x12\x03u\r\x16\n\x12\n\x0b\x04\0\ - \x03\0\x03\x01\x03\0\x02\x01\x03\x12\x03u\x19\x1a\n\x89\x01\n\x08\x04\0\ - \x03\0\x03\x01\x03\x01\x12\x04{\x06~\x07\x1aw\x20A\x20package\x20managed\ - \x20by\x20APT.\n\x20install:\x20`apt-get\x20update\x20&&\x20apt-get\x20-\ - y\x20install\x20[name]`\n\x20remove:\x20`apt-get\x20-y\x20remove\x20[nam\ - e]`\n\n\x10\n\t\x04\0\x03\0\x03\x01\x03\x01\x01\x12\x03{\x0e\x11\n,\n\n\ - \x04\0\x03\0\x03\x01\x03\x01\x02\0\x12\x03}\x08A\x1a\x19\x20Required.\ - \x20Package\x20name.\n\n\x12\n\x0b\x04\0\x03\0\x03\x01\x03\x01\x02\0\x05\ - \x12\x03}\x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\x01\x03\x01\x02\0\x01\x12\ - \x03}\x0f\x13\n\x12\n\x0b\x04\0\x03\0\x03\x01\x03\x01\x02\0\x03\x12\x03}\ - \x16\x17\n\x12\n\x0b\x04\0\x03\0\x03\x01\x03\x01\x02\0\x08\x12\x03}\x18@\ - \n\x15\n\x0e\x04\0\x03\0\x03\x01\x03\x01\x02\0\x08\x9c\x08\0\x12\x03}\ - \x19?\nU\n\x08\x04\0\x03\0\x03\x01\x03\x02\x12\x06\x81\x01\x06\x8a\x01\ - \x07\x1aA\x20An\x20RPM\x20package\x20file.\x20RPM\x20packages\x20only\ - \x20support\x20INSTALLED\x20state.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x03\ - \x02\x01\x12\x04\x81\x01\x0e\x11\n/\n\n\x04\0\x03\0\x03\x01\x03\x02\x02\ - \0\x12\x04\x83\x01\x08A\x1a\x1b\x20Required.\x20An\x20rpm\x20package.\n\ - \n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\0\x06\x12\x04\x83\x01\x08\ - \x0c\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\0\x01\x12\x04\x83\x01\r\ - \x13\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\0\x03\x12\x04\x83\x01\ - \x16\x17\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\0\x08\x12\x04\x83\ - \x01\x18@\n\x16\n\x0e\x04\0\x03\0\x03\x01\x03\x02\x02\0\x08\x9c\x08\0\ - \x12\x04\x83\x01\x19?\n\xd9\x01\n\n\x04\0\x03\0\x03\x01\x03\x02\x02\x01\ - \x12\x04\x89\x01\x08\x1b\x1a\xc4\x01\x20Whether\x20dependencies\x20shoul\ - d\x20also\x20be\x20installed.\n\x20install\x20when\x20false:\x20`rpm\x20\ - --upgrade\x20--replacepkgs\x20package.rpm`\n\x20install\x20when\x20true:\ - \x20`yum\x20-y\x20install\x20package.rpm`\x20or\n\x20`zypper\x20-y\x20in\ - stall\x20package.rpm`\n\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\x01\ - \x05\x12\x04\x89\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\x02\ - \x01\x01\x12\x04\x89\x01\r\x16\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x02\ - \x02\x01\x03\x12\x04\x89\x01\x19\x1a\ns\n\x08\x04\0\x03\0\x03\x01\x03\ - \x03\x12\x06\x8f\x01\x06\x92\x01\x07\x1a_\x20A\x20package\x20managed\x20\ - by\x20YUM.\n\x20install:\x20`yum\x20-y\x20install\x20package`\n\x20remov\ - e:\x20`yum\x20-y\x20remove\x20package`\n\n\x11\n\t\x04\0\x03\0\x03\x01\ - \x03\x03\x01\x12\x04\x8f\x01\x0e\x11\n-\n\n\x04\0\x03\0\x03\x01\x03\x03\ - \x02\0\x12\x04\x91\x01\x08A\x1a\x19\x20Required.\x20Package\x20name.\n\n\ - \x13\n\x0b\x04\0\x03\0\x03\x01\x03\x03\x02\0\x05\x12\x04\x91\x01\x08\x0e\ - \n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x03\x02\0\x01\x12\x04\x91\x01\x0f\ - \x13\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x03\x02\0\x03\x12\x04\x91\x01\ - \x16\x17\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x03\x02\0\x08\x12\x04\x91\ - \x01\x18@\n\x16\n\x0e\x04\0\x03\0\x03\x01\x03\x03\x02\0\x08\x9c\x08\0\ - \x12\x04\x91\x01\x19?\nx\n\x08\x04\0\x03\0\x03\x01\x03\x04\x12\x06\x97\ - \x01\x06\x9a\x01\x07\x1ad\x20A\x20package\x20managed\x20by\x20Zypper.\n\ - \x20install:\x20`zypper\x20-y\x20install\x20package`\n\x20remove:\x20`zy\ - pper\x20-y\x20rm\x20package`\n\n\x11\n\t\x04\0\x03\0\x03\x01\x03\x04\x01\ - \x12\x04\x97\x01\x0e\x14\n-\n\n\x04\0\x03\0\x03\x01\x03\x04\x02\0\x12\ - \x04\x99\x01\x08A\x1a\x19\x20Required.\x20Package\x20name.\n\n\x13\n\x0b\ - \x04\0\x03\0\x03\x01\x03\x04\x02\0\x05\x12\x04\x99\x01\x08\x0e\n\x13\n\ - \x0b\x04\0\x03\0\x03\x01\x03\x04\x02\0\x01\x12\x04\x99\x01\x0f\x13\n\x13\ - \n\x0b\x04\0\x03\0\x03\x01\x03\x04\x02\0\x03\x12\x04\x99\x01\x16\x17\n\ - \x13\n\x0b\x04\0\x03\0\x03\x01\x03\x04\x02\0\x08\x12\x04\x99\x01\x18@\n\ - \x16\n\x0e\x04\0\x03\0\x03\x01\x03\x04\x02\0\x08\x9c\x08\0\x12\x04\x99\ - \x01\x19?\n\x8c\x01\n\x08\x04\0\x03\0\x03\x01\x03\x05\x12\x06\x9f\x01\ - \x06\xa2\x01\x07\x1ax\x20A\x20package\x20managed\x20by\x20GooGet.\n\x20i\ - nstall:\x20`googet\x20-noconfirm\x20install\x20package`\n\x20remove:\x20\ - `googet\x20-noconfirm\x20remove\x20package`\n\n\x11\n\t\x04\0\x03\0\x03\ - \x01\x03\x05\x01\x12\x04\x9f\x01\x0e\x14\n-\n\n\x04\0\x03\0\x03\x01\x03\ - \x05\x02\0\x12\x04\xa1\x01\x08A\x1a\x19\x20Required.\x20Package\x20name.\ - \n\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x05\x02\0\x05\x12\x04\xa1\x01\x08\ - \x0e\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x05\x02\0\x01\x12\x04\xa1\x01\ - \x0f\x13\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x05\x02\0\x03\x12\x04\xa1\ - \x01\x16\x17\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x05\x02\0\x08\x12\x04\ - \xa1\x01\x18@\n\x16\n\x0e\x04\0\x03\0\x03\x01\x03\x05\x02\0\x08\x9c\x08\ - \0\x12\x04\xa1\x01\x19?\nP\n\x08\x04\0\x03\0\x03\x01\x03\x06\x12\x06\xa5\ - \x01\x06\xae\x01\x07\x1a<\x20An\x20MSI\x20package.\x20MSI\x20packages\ - \x20only\x20support\x20INSTALLED\x20state.\n\n\x11\n\t\x04\0\x03\0\x03\ - \x01\x03\x06\x01\x12\x04\xa5\x01\x0e\x11\n0\n\n\x04\0\x03\0\x03\x01\x03\ - \x06\x02\0\x12\x04\xa7\x01\x08A\x1a\x1c\x20Required.\x20The\x20MSI\x20pa\ - ckage.\n\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\0\x06\x12\x04\xa7\ - \x01\x08\x0c\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\0\x01\x12\x04\ - \xa7\x01\r\x13\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\0\x03\x12\x04\ - \xa7\x01\x16\x17\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\0\x08\x12\ - \x04\xa7\x01\x18@\n\x16\n\x0e\x04\0\x03\0\x03\x01\x03\x06\x02\0\x08\x9c\ - \x08\0\x12\x04\xa7\x01\x19?\n\xc1\x01\n\n\x04\0\x03\0\x03\x01\x03\x06\ - \x02\x01\x12\x04\xad\x01\x08'\x1a\xac\x01\x20Additional\x20properties\ - \x20to\x20use\x20during\x20installation.\n\x20This\x20should\x20be\x20in\ - \x20the\x20format\x20of\x20Property=Setting.\n\x20Appended\x20to\x20the\ - \x20defaults\x20of\x20\"ACTION=INSTALL\n\x20REBOOT=ReallySuppress\".\n\n\ - \x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\x01\x04\x12\x04\xad\x01\x08\ - \x10\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\x01\x05\x12\x04\xad\x01\ - \x11\x17\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\x01\x01\x12\x04\xad\ - \x01\x18\"\n\x13\n\x0b\x04\0\x03\0\x03\x01\x03\x06\x02\x01\x03\x12\x04\ - \xad\x01%&\n\x8f\x01\n\x08\x04\0\x03\0\x03\x01\x02\0\x12\x04\xb2\x01\x06\ - N\x1a}\x20Required.\x20The\x20desired\x20state\x20the\x20agent\x20should\ - \x20maintain\x20for\x20this\x20package.\x20The\n\x20default\x20is\x20to\ - \x20ensure\x20the\x20package\x20is\x20installed.\n\n\x11\n\t\x04\0\x03\0\ - \x03\x01\x02\0\x06\x12\x04\xb2\x01\x06\x12\n\x11\n\t\x04\0\x03\0\x03\x01\ - \x02\0\x01\x12\x04\xb2\x01\x13\x20\n\x11\n\t\x04\0\x03\0\x03\x01\x02\0\ - \x03\x12\x04\xb2\x01#$\n\x11\n\t\x04\0\x03\0\x03\x01\x02\0\x08\x12\x04\ - \xb2\x01%M\n\x14\n\x0c\x04\0\x03\0\x03\x01\x02\0\x08\x9c\x08\0\x12\x04\ - \xb2\x01&L\n'\n\x08\x04\0\x03\0\x03\x01\x08\0\x12\x06\xb5\x01\x06\xca\ - \x01\x07\x1a\x13\x20A\x20system\x20package.\n\n\x11\n\t\x04\0\x03\0\x03\ - \x01\x08\0\x01\x12\x04\xb5\x01\x0c\x1a\n-\n\x08\x04\0\x03\0\x03\x01\x02\ - \x01\x12\x04\xb7\x01\x08\x14\x1a\x1b\x20A\x20package\x20managed\x20by\ - \x20Apt.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x01\x06\x12\x04\xb7\x01\x08\ - \x0b\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x01\x01\x12\x04\xb7\x01\x0c\x0f\n\ - \x11\n\t\x04\0\x03\0\x03\x01\x02\x01\x03\x12\x04\xb7\x01\x12\x13\n'\n\ - \x08\x04\0\x03\0\x03\x01\x02\x02\x12\x04\xba\x01\x08\x14\x1a\x15\x20A\ - \x20deb\x20package\x20file.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x02\x06\ - \x12\x04\xba\x01\x08\x0b\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x02\x01\x12\ - \x04\xba\x01\x0c\x0f\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x02\x03\x12\x04\ - \xba\x01\x12\x13\n-\n\x08\x04\0\x03\0\x03\x01\x02\x03\x12\x04\xbd\x01\ - \x08\x14\x1a\x1b\x20A\x20package\x20managed\x20by\x20YUM.\n\n\x11\n\t\ - \x04\0\x03\0\x03\x01\x02\x03\x06\x12\x04\xbd\x01\x08\x0b\n\x11\n\t\x04\0\ - \x03\0\x03\x01\x02\x03\x01\x12\x04\xbd\x01\x0c\x0f\n\x11\n\t\x04\0\x03\0\ - \x03\x01\x02\x03\x03\x12\x04\xbd\x01\x12\x13\n0\n\x08\x04\0\x03\0\x03\ - \x01\x02\x04\x12\x04\xc0\x01\x08\x1a\x1a\x1e\x20A\x20package\x20managed\ - \x20by\x20Zypper.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x04\x06\x12\x04\ - \xc0\x01\x08\x0e\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x04\x01\x12\x04\xc0\ - \x01\x0f\x15\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x04\x03\x12\x04\xc0\x01\ - \x18\x19\n(\n\x08\x04\0\x03\0\x03\x01\x02\x05\x12\x04\xc3\x01\x08\x14\ - \x1a\x16\x20An\x20rpm\x20package\x20file.\n\n\x11\n\t\x04\0\x03\0\x03\ - \x01\x02\x05\x06\x12\x04\xc3\x01\x08\x0b\n\x11\n\t\x04\0\x03\0\x03\x01\ - \x02\x05\x01\x12\x04\xc3\x01\x0c\x0f\n\x11\n\t\x04\0\x03\0\x03\x01\x02\ - \x05\x03\x12\x04\xc3\x01\x12\x13\n0\n\x08\x04\0\x03\0\x03\x01\x02\x06\ - \x12\x04\xc6\x01\x08\x1a\x1a\x1e\x20A\x20package\x20managed\x20by\x20Goo\ - Get.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x06\x06\x12\x04\xc6\x01\x08\x0e\ - \n\x11\n\t\x04\0\x03\0\x03\x01\x02\x06\x01\x12\x04\xc6\x01\x0f\x15\n\x11\ - \n\t\x04\0\x03\0\x03\x01\x02\x06\x03\x12\x04\xc6\x01\x18\x19\n#\n\x08\ - \x04\0\x03\0\x03\x01\x02\x07\x12\x04\xc9\x01\x08\x14\x1a\x11\x20An\x20MS\ - I\x20package.\n\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x07\x06\x12\x04\xc9\ - \x01\x08\x0b\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x07\x01\x12\x04\xc9\x01\ - \x0c\x0f\n\x11\n\t\x04\0\x03\0\x03\x01\x02\x07\x03\x12\x04\xc9\x01\x12\ - \x13\nA\n\x06\x04\0\x03\0\x03\x02\x12\x06\xce\x01\x04\xb3\x02\x05\x1a/\ - \x20A\x20resource\x20that\x20manages\x20a\x20package\x20repository.\n\n\ - \x0f\n\x07\x04\0\x03\0\x03\x02\x01\x12\x04\xce\x01\x0c\x1e\n\xad\x01\n\ - \x08\x04\0\x03\0\x03\x02\x03\0\x12\x06\xd2\x01\x06\xf0\x01\x07\x1a\x98\ - \x01\x20Represents\x20a\x20single\x20apt\x20package\x20repository.\x20Th\ - ese\x20will\x20be\x20added\x20to\n\x20a\x20repo\x20file\x20that\x20will\ - \x20be\x20managed\x20at\n\x20/etc/apt/sources.list.d/google_osconfig.lis\ - t.\n\n\x11\n\t\x04\0\x03\0\x03\x02\x03\0\x01\x12\x04\xd2\x01\x0e\x1b\n(\ - \n\n\x04\0\x03\0\x03\x02\x03\0\x04\0\x12\x06\xd4\x01\x08\xdd\x01\t\x1a\ - \x12\x20Type\x20of\x20archive.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\ - \x04\0\x01\x12\x04\xd4\x01\r\x18\n/\n\x0c\x04\0\x03\0\x03\x02\x03\0\x04\ - \0\x02\0\x12\x04\xd6\x01\n'\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\ - \x15\n\r\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\0\x01\x12\x04\xd6\x01\n\"\n\ - \x15\n\r\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\0\x02\x12\x04\xd6\x01%&\nM\ - \n\x0c\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\x01\x12\x04\xd9\x01\n\x12\x1a\ - 7\x20Deb\x20indicates\x20that\x20the\x20archive\x20contains\x20binary\ - \x20files.\n\n\x15\n\r\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\x01\x01\x12\ - \x04\xd9\x01\n\r\n\x15\n\r\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\x01\x02\ - \x12\x04\xd9\x01\x10\x11\nQ\n\x0c\x04\0\x03\0\x03\x02\x03\0\x04\0\x02\ - \x02\x12\x04\xdc\x01\n\x16\x1a;\x20Deb-src\x20indicates\x20that\x20the\ - \x20archive\x20contains\x20source\x20files.\n\n\x15\n\r\x04\0\x03\0\x03\ - \x02\x03\0\x04\0\x02\x02\x01\x12\x04\xdc\x01\n\x11\n\x15\n\r\x04\0\x03\0\ - \x03\x02\x03\0\x04\0\x02\x02\x02\x12\x04\xdc\x01\x14\x15\ng\n\n\x04\0\ - \x03\0\x03\x02\x03\0\x02\0\x12\x04\xe1\x01\x08N\x1aS\x20Required.\x20Typ\ - e\x20of\x20archive\x20files\x20in\x20this\x20repository.\x20The\x20defau\ - lt\x20behavior\x20is\n\x20DEB.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\ - \x02\0\x06\x12\x04\xe1\x01\x08\x13\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\ - \x02\0\x01\x12\x04\xe1\x01\x14\x20\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\ - \x02\0\x03\x12\x04\xe1\x01#$\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\0\ - \x08\x12\x04\xe1\x01%M\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\0\x02\0\x08\ - \x9c\x08\0\x12\x04\xe1\x01&L\n8\n\n\x04\0\x03\0\x03\x02\x03\0\x02\x01\ - \x12\x04\xe4\x01\x08@\x1a$\x20Required.\x20URI\x20for\x20this\x20reposit\ - ory.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x01\x05\x12\x04\xe4\x01\ - \x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x01\x01\x12\x04\xe4\ - \x01\x0f\x12\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x01\x03\x12\x04\ - \xe4\x01\x15\x16\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x01\x08\x12\ - \x04\xe4\x01\x17?\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\0\x02\x01\x08\x9c\ - \x08\0\x12\x04\xe4\x01\x18>\n@\n\n\x04\0\x03\0\x03\x02\x03\0\x02\x02\x12\ - \x04\xe7\x01\x08I\x1a,\x20Required.\x20Distribution\x20of\x20this\x20rep\ - ository.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x02\x05\x12\x04\xe7\ - \x01\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x02\x01\x12\x04\ - \xe7\x01\x0f\x1b\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x02\x03\x12\ - \x04\xe7\x01\x1e\x1f\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x02\x08\ - \x12\x04\xe7\x01\x20H\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\0\x02\x02\x08\ - \x9c\x08\0\x12\x04\xe7\x01!G\nh\n\n\x04\0\x03\0\x03\x02\x03\0\x02\x03\ - \x12\x04\xeb\x01\x08P\x1aT\x20Required.\x20List\x20of\x20components\x20f\ - or\x20this\x20repository.\x20Must\x20contain\x20at\x20least\x20one\n\x20\ - item.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x03\x04\x12\x04\xeb\ - \x01\x08\x10\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x03\x05\x12\x04\ - \xeb\x01\x11\x17\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x03\x01\x12\ - \x04\xeb\x01\x18\"\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x03\x03\x12\ - \x04\xeb\x01%&\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x03\x08\x12\x04\ - \xeb\x01'O\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\0\x02\x03\x08\x9c\x08\0\ - \x12\x04\xeb\x01(N\n\x93\x01\n\n\x04\0\x03\0\x03\x02\x03\0\x02\x04\x12\ - \x04\xef\x01\x08\x1b\x1a\x7f\x20URI\x20of\x20the\x20key\x20file\x20for\ - \x20this\x20repository.\x20The\x20agent\x20maintains\x20a\n\x20keyring\ - \x20at\x20/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg.\n\n\x13\n\ - \x0b\x04\0\x03\0\x03\x02\x03\0\x02\x04\x05\x12\x04\xef\x01\x08\x0e\n\x13\ - \n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x04\x01\x12\x04\xef\x01\x0f\x16\n\ - \x13\n\x0b\x04\0\x03\0\x03\x02\x03\0\x02\x04\x03\x12\x04\xef\x01\x19\x1a\ - \n\x9f\x01\n\x08\x04\0\x03\0\x03\x02\x03\x01\x12\x06\xf5\x01\x06\x84\x02\ - \x07\x1a\x8a\x01\x20Represents\x20a\x20single\x20yum\x20package\x20repos\ - itory.\x20These\x20are\x20added\x20to\x20a\n\x20repo\x20file\x20that\x20\ - is\x20managed\x20at\n\x20`/etc/yum.repos.d/google_osconfig.repo`.\n\n\ - \x11\n\t\x04\0\x03\0\x03\x02\x03\x01\x01\x12\x04\xf5\x01\x0e\x1b\n\x8c\ - \x02\n\n\x04\0\x03\0\x03\x02\x03\x01\x02\0\x12\x04\xfa\x01\x08?\x1a\xf7\ - \x01\x20Required.\x20A\x20one\x20word,\x20unique\x20name\x20for\x20this\ - \x20repository.\x20This\x20is\x20\x20the\x20`repo\n\x20id`\x20in\x20the\ - \x20yum\x20config\x20file\x20and\x20also\x20the\x20`display_name`\x20if\ - \n\x20`display_name`\x20is\x20omitted.\x20This\x20id\x20is\x20also\x20us\ - ed\x20as\x20the\x20unique\n\x20identifier\x20when\x20checking\x20for\x20\ - resource\x20conflicts.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x01\x02\0\ - \x05\x12\x04\xfa\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x01\x02\ - \0\x01\x12\x04\xfa\x01\x0f\x11\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x01\ - \x02\0\x03\x12\x04\xfa\x01\x14\x15\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\ - \x01\x02\0\x08\x12\x04\xfa\x01\x16>\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\ - \x01\x02\0\x08\x9c\x08\0\x12\x04\xfa\x01\x17=\n9\n\n\x04\0\x03\0\x03\x02\ - \x03\x01\x02\x01\x12\x04\xfd\x01\x08\x20\x1a%\x20The\x20display\x20name\ - \x20of\x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x01\ - \x02\x01\x05\x12\x04\xfd\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\ - \x01\x02\x01\x01\x12\x04\xfd\x01\x0f\x1b\n\x13\n\x0b\x04\0\x03\0\x03\x02\ - \x03\x01\x02\x01\x03\x12\x04\xfd\x01\x1e\x1f\nI\n\n\x04\0\x03\0\x03\x02\ - \x03\x01\x02\x02\x12\x04\x80\x02\x08E\x1a5\x20Required.\x20The\x20locati\ - on\x20of\x20the\x20repository\x20directory.\n\n\x13\n\x0b\x04\0\x03\0\ - \x03\x02\x03\x01\x02\x02\x05\x12\x04\x80\x02\x08\x0e\n\x13\n\x0b\x04\0\ - \x03\0\x03\x02\x03\x01\x02\x02\x01\x12\x04\x80\x02\x0f\x17\n\x13\n\x0b\ - \x04\0\x03\0\x03\x02\x03\x01\x02\x02\x03\x12\x04\x80\x02\x1a\x1b\n\x13\n\ - \x0b\x04\0\x03\0\x03\x02\x03\x01\x02\x02\x08\x12\x04\x80\x02\x1cD\n\x16\ - \n\x0e\x04\0\x03\0\x03\x02\x03\x01\x02\x02\x08\x9c\x08\0\x12\x04\x80\x02\ - \x1dC\n'\n\n\x04\0\x03\0\x03\x02\x03\x01\x02\x03\x12\x04\x83\x02\x08%\ - \x1a\x13\x20URIs\x20of\x20GPG\x20keys.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\ - \x03\x01\x02\x03\x04\x12\x04\x83\x02\x08\x10\n\x13\n\x0b\x04\0\x03\0\x03\ - \x02\x03\x01\x02\x03\x05\x12\x04\x83\x02\x11\x17\n\x13\n\x0b\x04\0\x03\0\ - \x03\x02\x03\x01\x02\x03\x01\x12\x04\x83\x02\x18\x20\n\x13\n\x0b\x04\0\ - \x03\0\x03\x02\x03\x01\x02\x03\x03\x12\x04\x83\x02#$\n\xa3\x01\n\x08\x04\ - \0\x03\0\x03\x02\x03\x02\x12\x06\x89\x02\x06\x98\x02\x07\x1a\x8e\x01\x20\ - Represents\x20a\x20single\x20zypper\x20package\x20repository.\x20These\ - \x20are\x20added\x20to\x20a\n\x20repo\x20file\x20that\x20is\x20managed\ - \x20at\n\x20`/etc/zypp/repos.d/google_osconfig.repo`.\n\n\x11\n\t\x04\0\ - \x03\0\x03\x02\x03\x02\x01\x12\x04\x89\x02\x0e\x1e\n\x91\x02\n\n\x04\0\ - \x03\0\x03\x02\x03\x02\x02\0\x12\x04\x8e\x02\x08?\x1a\xfc\x01\x20Require\ - d.\x20A\x20one\x20word,\x20unique\x20name\x20for\x20this\x20repository.\ - \x20This\x20is\x20the\x20`repo\n\x20id`\x20in\x20the\x20zypper\x20config\ - \x20file\x20and\x20also\x20the\x20`display_name`\x20if\n\x20`display_nam\ - e`\x20is\x20omitted.\x20This\x20id\x20is\x20also\x20used\x20as\x20the\ - \x20unique\n\x20identifier\x20when\x20checking\x20for\x20GuestPolicy\x20\ - conflicts.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\0\x05\x12\x04\ - \x8e\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\0\x01\x12\ - \x04\x8e\x02\x0f\x11\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\0\x03\ - \x12\x04\x8e\x02\x14\x15\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\0\ - \x08\x12\x04\x8e\x02\x16>\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\x02\x02\0\ - \x08\x9c\x08\0\x12\x04\x8e\x02\x17=\n9\n\n\x04\0\x03\0\x03\x02\x03\x02\ - \x02\x01\x12\x04\x91\x02\x08\x20\x1a%\x20The\x20display\x20name\x20of\ - \x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\x01\ - \x05\x12\x04\x91\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\ - \x01\x01\x12\x04\x91\x02\x0f\x1b\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\ - \x02\x01\x03\x12\x04\x91\x02\x1e\x1f\nI\n\n\x04\0\x03\0\x03\x02\x03\x02\ - \x02\x02\x12\x04\x94\x02\x08E\x1a5\x20Required.\x20The\x20location\x20of\ - \x20the\x20repository\x20directory.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\ - \x03\x02\x02\x02\x05\x12\x04\x94\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\ - \x02\x03\x02\x02\x02\x01\x12\x04\x94\x02\x0f\x17\n\x13\n\x0b\x04\0\x03\0\ - \x03\x02\x03\x02\x02\x02\x03\x12\x04\x94\x02\x1a\x1b\n\x13\n\x0b\x04\0\ - \x03\0\x03\x02\x03\x02\x02\x02\x08\x12\x04\x94\x02\x1cD\n\x16\n\x0e\x04\ - \0\x03\0\x03\x02\x03\x02\x02\x02\x08\x9c\x08\0\x12\x04\x94\x02\x1dC\n'\n\ - \n\x04\0\x03\0\x03\x02\x03\x02\x02\x03\x12\x04\x97\x02\x08%\x1a\x13\x20U\ - RIs\x20of\x20GPG\x20keys.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\x02\ - \x03\x04\x12\x04\x97\x02\x08\x10\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x02\ - \x02\x03\x05\x12\x04\x97\x02\x11\x17\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\ - \x02\x02\x03\x01\x12\x04\x97\x02\x18\x20\n\x13\n\x0b\x04\0\x03\0\x03\x02\ - \x03\x02\x02\x03\x03\x12\x04\x97\x02#$\n\xa3\x01\n\x08\x04\0\x03\0\x03\ - \x02\x03\x03\x12\x06\x9d\x02\x06\xa3\x02\x07\x1a\x8e\x01\x20Represents\ - \x20a\x20Goo\x20package\x20repository.\x20These\x20are\x20added\x20to\ - \x20a\x20repo\x20file\n\x20that\x20is\x20managed\x20at\n\x20`C:/ProgramD\ - ata/GooGet/repos/google_osconfig.repo`.\n\n\x11\n\t\x04\0\x03\0\x03\x02\ - \x03\x03\x01\x12\x04\x9d\x02\x0e\x1b\n;\n\n\x04\0\x03\0\x03\x02\x03\x03\ - \x02\0\x12\x04\x9f\x02\x08A\x1a'\x20Required.\x20The\x20name\x20of\x20th\ - e\x20repository.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\0\x05\x12\ - \x04\x9f\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\0\x01\ - \x12\x04\x9f\x02\x0f\x13\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\0\ - \x03\x12\x04\x9f\x02\x16\x17\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\ - \0\x08\x12\x04\x9f\x02\x18@\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\x03\x02\ - \0\x08\x9c\x08\0\x12\x04\x9f\x02\x19?\n:\n\n\x04\0\x03\0\x03\x02\x03\x03\ - \x02\x01\x12\x04\xa2\x02\x08@\x1a&\x20Required.\x20The\x20url\x20of\x20t\ - he\x20repository.\n\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\x01\x05\ - \x12\x04\xa2\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\x01\ - \x01\x12\x04\xa2\x02\x0f\x12\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\x02\ - \x01\x03\x12\x04\xa2\x02\x15\x16\n\x13\n\x0b\x04\0\x03\0\x03\x02\x03\x03\ - \x02\x01\x08\x12\x04\xa2\x02\x17?\n\x16\n\x0e\x04\0\x03\0\x03\x02\x03\ - \x03\x02\x01\x08\x9c\x08\0\x12\x04\xa2\x02\x18>\n4\n\x08\x04\0\x03\0\x03\ - \x02\x08\0\x12\x06\xa6\x02\x06\xb2\x02\x07\x1a\x20\x20A\x20specific\x20t\ - ype\x20of\x20repository.\n\n\x11\n\t\x04\0\x03\0\x03\x02\x08\0\x01\x12\ - \x04\xa6\x02\x0c\x16\n&\n\x08\x04\0\x03\0\x03\x02\x02\0\x12\x04\xa8\x02\ - \x08\x1e\x1a\x14\x20An\x20Apt\x20Repository.\n\n\x11\n\t\x04\0\x03\0\x03\ - \x02\x02\0\x06\x12\x04\xa8\x02\x08\x15\n\x11\n\t\x04\0\x03\0\x03\x02\x02\ - \0\x01\x12\x04\xa8\x02\x16\x19\n\x11\n\t\x04\0\x03\0\x03\x02\x02\0\x03\ - \x12\x04\xa8\x02\x1c\x1d\n%\n\x08\x04\0\x03\0\x03\x02\x02\x01\x12\x04\ - \xab\x02\x08\x1e\x1a\x13\x20A\x20Yum\x20Repository.\n\n\x11\n\t\x04\0\ - \x03\0\x03\x02\x02\x01\x06\x12\x04\xab\x02\x08\x15\n\x11\n\t\x04\0\x03\0\ - \x03\x02\x02\x01\x01\x12\x04\xab\x02\x16\x19\n\x11\n\t\x04\0\x03\0\x03\ - \x02\x02\x01\x03\x12\x04\xab\x02\x1c\x1d\n(\n\x08\x04\0\x03\0\x03\x02\ - \x02\x02\x12\x04\xae\x02\x08$\x1a\x16\x20A\x20Zypper\x20Repository.\n\n\ - \x11\n\t\x04\0\x03\0\x03\x02\x02\x02\x06\x12\x04\xae\x02\x08\x18\n\x11\n\ - \t\x04\0\x03\0\x03\x02\x02\x02\x01\x12\x04\xae\x02\x19\x1f\n\x11\n\t\x04\ - \0\x03\0\x03\x02\x02\x02\x03\x12\x04\xae\x02\"#\n%\n\x08\x04\0\x03\0\x03\ - \x02\x02\x03\x12\x04\xb1\x02\x08\x1e\x1a\x13\x20A\x20Goo\x20Repository.\ - \n\n\x11\n\t\x04\0\x03\0\x03\x02\x02\x03\x06\x12\x04\xb1\x02\x08\x15\n\ - \x11\n\t\x04\0\x03\0\x03\x02\x02\x03\x01\x12\x04\xb1\x02\x16\x19\n\x11\n\ - \t\x04\0\x03\0\x03\x02\x02\x03\x03\x12\x04\xb1\x02\x1c\x1d\nU\n\x06\x04\ - \0\x03\0\x03\x03\x12\x06\xb6\x02\x04\xef\x02\x05\x1aC\x20A\x20resource\ - \x20that\x20contains\x20custom\x20validation\x20and\x20enforcement\x20st\ - eps.\n\n\x0f\n\x07\x04\0\x03\0\x03\x03\x01\x12\x04\xb6\x02\x0c\x18\n2\n\ - \x08\x04\0\x03\0\x03\x03\x03\0\x12\x06\xb8\x02\x06\xe3\x02\x07\x1a\x1e\ - \x20A\x20file\x20or\x20script\x20to\x20execute.\n\n\x11\n\t\x04\0\x03\0\ - \x03\x03\x03\0\x01\x12\x04\xb8\x02\x0e\x12\n/\n\n\x04\0\x03\0\x03\x03\ - \x03\0\x04\0\x12\x06\xba\x02\x08\xcb\x02\t\x1a\x19\x20The\x20interpreter\ - \x20to\x20use.\n\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x04\0\x01\x12\x04\ - \xba\x02\r\x18\nP\n\x0c\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\0\x12\x04\ - \xbc\x02\n&\x1a:\x20Invalid\x20value,\x20the\x20request\x20will\x20retur\ - n\x20validation\x20error.\n\n\x15\n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\ - \x02\0\x01\x12\x04\xbc\x02\n!\n\x15\n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\ - \x02\0\x02\x12\x04\xbc\x02$%\n\xf3\x01\n\x0c\x04\0\x03\0\x03\x03\x03\0\ - \x04\0\x02\x01\x12\x04\xc3\x02\n\x13\x1a\xdc\x01\x20If\x20no\x20interpre\ - ter\x20is\x20specified\x20the\n\x20source\x20will\x20be\x20executed\x20d\ - irectly,\x20which\x20will\x20likely\x20only\n\x20succeed\x20for\x20execu\ - tables\x20and\x20scripts\x20with\x20shebang\x20lines.\n\x20[Wikipedia\n\ - \x20shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).\n\n\x15\n\r\ - \x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x01\x01\x12\x04\xc3\x02\n\x0e\n\x15\ - \n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x01\x02\x12\x04\xc3\x02\x11\x12\ - \nl\n\x0c\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x02\x12\x04\xc7\x02\n\x14\ - \x1aV\x20Indicates\x20that\x20the\x20script\x20will\x20be\x20run\x20with\ - \x20/bin/sh\x20on\x20Linux\x20and\n\x20cmd.exe\x20on\x20windows.\n\n\x15\ - \n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x02\x01\x12\x04\xc7\x02\n\x0f\n\ - \x15\n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x02\x02\x12\x04\xc7\x02\x12\ - \x13\nN\n\x0c\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x03\x12\x04\xca\x02\n\ - \x19\x1a8\x20Indicates\x20that\x20the\x20script\x20will\x20be\x20run\x20\ - with\x20powershell.\n\n\x15\n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\x03\ - \x01\x12\x04\xca\x02\n\x14\n\x15\n\r\x04\0\x03\0\x03\x03\x03\0\x04\0\x02\ - \x03\x02\x12\x04\xca\x02\x17\x18\n(\n\n\x04\0\x03\0\x03\x03\x03\0\x08\0\ - \x12\x06\xce\x02\x08\xd4\x02\t\x1a\x12\x20What\x20to\x20execute.\n\n\x13\ - \n\x0b\x04\0\x03\0\x03\x03\x03\0\x08\0\x01\x12\x04\xce\x02\x0e\x14\n-\n\ - \n\x04\0\x03\0\x03\x03\x03\0\x02\0\x12\x04\xd0\x02\n\x18\x1a\x19\x20A\ - \x20remote\x20or\x20local\x20file.\n\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\ - \0\x02\0\x06\x12\x04\xd0\x02\n\x0e\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\ - \x02\0\x01\x12\x04\xd0\x02\x0f\x13\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\ - \x02\0\x03\x12\x04\xd0\x02\x16\x17\n'\n\n\x04\0\x03\0\x03\x03\x03\0\x02\ - \x01\x12\x04\xd3\x02\n\x1c\x1a\x13\x20An\x20inline\x20script.\n\n\x13\n\ - \x0b\x04\0\x03\0\x03\x03\x03\0\x02\x01\x05\x12\x04\xd3\x02\n\x10\n\x13\n\ - \x0b\x04\0\x03\0\x03\x03\x03\0\x02\x01\x01\x12\x04\xd3\x02\x11\x17\n\x13\ - \n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x01\x03\x12\x04\xd3\x02\x1a\x1b\nP\ - \n\n\x04\0\x03\0\x03\x03\x03\0\x02\x02\x12\x04\xd7\x02\x08!\x1a<\x20Opti\ - onal\x20arguments\x20to\x20pass\x20to\x20the\x20source\x20during\x20exec\ - ution.\n\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x02\x04\x12\x04\xd7\ - \x02\x08\x10\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x02\x05\x12\x04\ - \xd7\x02\x11\x17\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x02\x01\x12\ - \x04\xd7\x02\x18\x1c\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x02\x03\ - \x12\x04\xd7\x02\x1f\x20\n>\n\n\x04\0\x03\0\x03\x03\x03\0\x02\x03\x12\ - \x04\xda\x02\x08M\x1a*\x20Required.\x20The\x20script\x20interpreter\x20t\ - o\x20use.\n\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x03\x06\x12\x04\ - \xda\x02\x08\x13\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x03\x01\x12\ - \x04\xda\x02\x14\x1f\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x03\x03\ - \x12\x04\xda\x02\"#\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x03\x08\ - \x12\x04\xda\x02$L\n\x16\n\x0e\x04\0\x03\0\x03\x03\x03\0\x02\x03\x08\x9c\ - \x08\0\x12\x04\xda\x02%K\n\xcc\x02\n\n\x04\0\x03\0\x03\x03\x03\0\x02\x04\ - \x12\x04\xe2\x02\x08$\x1a\xb7\x02\x20Only\x20recorded\x20for\x20enforce\ - \x20Exec.\n\x20Path\x20to\x20an\x20output\x20file\x20(that\x20is\x20crea\ - ted\x20by\x20this\x20Exec)\x20whose\n\x20content\x20will\x20be\x20record\ - ed\x20in\x20OSPolicyResourceCompliance\x20after\x20a\n\x20successful\x20\ - run.\x20Absence\x20or\x20failure\x20to\x20read\x20this\x20file\x20will\ - \x20result\x20in\n\x20this\x20ExecResource\x20being\x20non-compliant.\ - \x20Output\x20file\x20size\x20is\x20limited\x20to\n\x20100K\x20bytes.\n\ - \n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x04\x05\x12\x04\xe2\x02\x08\ - \x0e\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x04\x01\x12\x04\xe2\x02\ - \x0f\x1f\n\x13\n\x0b\x04\0\x03\0\x03\x03\x03\0\x02\x04\x03\x12\x04\xe2\ - \x02\"#\n\x83\x02\n\x08\x04\0\x03\0\x03\x03\x02\0\x12\x04\xe9\x02\x06A\ - \x1a\xf0\x01\x20Required.\x20What\x20to\x20run\x20to\x20validate\x20this\ - \x20resource\x20is\x20in\x20the\x20desired\x20state.\n\x20An\x20exit\x20\ - code\x20of\x20100\x20indicates\x20\"in\x20desired\x20state\",\x20and\x20\ - exit\x20code\x20of\x20101\n\x20indicates\x20\"not\x20in\x20desired\x20st\ - ate\".\x20Any\x20other\x20exit\x20code\x20indicates\x20a\n\x20failure\ - \x20running\x20validate.\n\n\x11\n\t\x04\0\x03\0\x03\x03\x02\0\x06\x12\ - \x04\xe9\x02\x06\n\n\x11\n\t\x04\0\x03\0\x03\x03\x02\0\x01\x12\x04\xe9\ - \x02\x0b\x13\n\x11\n\t\x04\0\x03\0\x03\x03\x02\0\x03\x12\x04\xe9\x02\x16\ - \x17\n\x11\n\t\x04\0\x03\0\x03\x03\x02\0\x08\x12\x04\xe9\x02\x18@\n\x14\ - \n\x0c\x04\0\x03\0\x03\x03\x02\0\x08\x9c\x08\0\x12\x04\xe9\x02\x19?\n\ - \xb1\x01\n\x08\x04\0\x03\0\x03\x03\x02\x01\x12\x04\xee\x02\x06\x17\x1a\ - \x9e\x01\x20What\x20to\x20run\x20to\x20bring\x20this\x20resource\x20into\ - \x20the\x20desired\x20state.\n\x20A\x20exit\x20code\x20of\x20100\x20indi\ - cates\x20\"success\",\x20any\x20other\x20exit\x20code\x20idicates\x20a\n\ - \x20failure\x20running\x20enforce.\n\n\x11\n\t\x04\0\x03\0\x03\x03\x02\ - \x01\x06\x12\x04\xee\x02\x06\n\n\x11\n\t\x04\0\x03\0\x03\x03\x02\x01\x01\ - \x12\x04\xee\x02\x0b\x12\n\x11\n\t\x04\0\x03\0\x03\x03\x02\x01\x03\x12\ - \x04\xee\x02\x15\x16\n@\n\x06\x04\0\x03\0\x03\x04\x12\x06\xf2\x02\x04\ - \xa0\x03\x05\x1a.\x20A\x20resource\x20that\x20manages\x20the\x20state\ - \x20of\x20a\x20file.\n\n\x0f\n\x07\x04\0\x03\0\x03\x04\x01\x12\x04\xf2\ - \x02\x0c\x18\n0\n\x08\x04\0\x03\0\x03\x04\x04\0\x12\x06\xf4\x02\x06\x81\ - \x03\x07\x1a\x1c\x20Desired\x20state\x20of\x20the\x20file.\n\n\x11\n\t\ - \x04\0\x03\0\x03\x04\x04\0\x01\x12\x04\xf4\x02\x0b\x17\n-\n\n\x04\0\x03\ - \0\x03\x04\x04\0\x02\0\x12\x04\xf6\x02\x08&\x1a\x19\x20Unspecified\x20is\ - \x20invalid.\n\n\x13\n\x0b\x04\0\x03\0\x03\x04\x04\0\x02\0\x01\x12\x04\ - \xf6\x02\x08!\n\x13\n\x0b\x04\0\x03\0\x03\x04\x04\0\x02\0\x02\x12\x04\ - \xf6\x02$%\n5\n\n\x04\0\x03\0\x03\x04\x04\0\x02\x01\x12\x04\xf9\x02\x08\ - \x14\x1a!\x20Ensure\x20file\x20at\x20path\x20is\x20present.\n\n\x13\n\ - \x0b\x04\0\x03\0\x03\x04\x04\0\x02\x01\x01\x12\x04\xf9\x02\x08\x0f\n\x13\ - \n\x0b\x04\0\x03\0\x03\x04\x04\0\x02\x01\x02\x12\x04\xf9\x02\x12\x13\n4\ - \n\n\x04\0\x03\0\x03\x04\x04\0\x02\x02\x12\x04\xfc\x02\x08\x13\x1a\x20\ - \x20Ensure\x20file\x20at\x20path\x20is\x20absent.\n\n\x13\n\x0b\x04\0\ - \x03\0\x03\x04\x04\0\x02\x02\x01\x12\x04\xfc\x02\x08\x0e\n\x13\n\x0b\x04\ - \0\x03\0\x03\x04\x04\0\x02\x02\x02\x12\x04\xfc\x02\x11\x12\nv\n\n\x04\0\ - \x03\0\x03\x04\x04\0\x02\x03\x12\x04\x80\x03\x08\x1b\x1ab\x20Ensure\x20t\ - he\x20contents\x20of\x20the\x20file\x20at\x20path\x20matches.\x20If\x20t\ - he\x20file\x20does\n\x20not\x20exist\x20it\x20will\x20be\x20created.\n\n\ - \x13\n\x0b\x04\0\x03\0\x03\x04\x04\0\x02\x03\x01\x12\x04\x80\x03\x08\x16\ - \n\x13\n\x0b\x04\0\x03\0\x03\x04\x04\0\x02\x03\x02\x12\x04\x80\x03\x19\ - \x1a\n>\n\x08\x04\0\x03\0\x03\x04\x08\0\x12\x06\x84\x03\x06\x8a\x03\x07\ - \x1a*\x20The\x20source\x20for\x20the\x20contents\x20of\x20the\x20file.\n\ - \n\x11\n\t\x04\0\x03\0\x03\x04\x08\0\x01\x12\x04\x84\x03\x0c\x12\n-\n\ - \x08\x04\0\x03\0\x03\x04\x02\0\x12\x04\x86\x03\x08\x16\x1a\x1b\x20A\x20r\ - emote\x20or\x20local\x20source.\n\n\x11\n\t\x04\0\x03\0\x03\x04\x02\0\ - \x06\x12\x04\x86\x03\x08\x0c\n\x11\n\t\x04\0\x03\0\x03\x04\x02\0\x01\x12\ - \x04\x86\x03\r\x11\n\x11\n\t\x04\0\x03\0\x03\x04\x02\0\x03\x12\x04\x86\ - \x03\x14\x15\n/\n\x08\x04\0\x03\0\x03\x04\x02\x01\x12\x04\x89\x03\x08\ - \x1b\x1a\x1d\x20A\x20a\x20file\x20with\x20this\x20content.\n\n\x11\n\t\ - \x04\0\x03\0\x03\x04\x02\x01\x05\x12\x04\x89\x03\x08\x0e\n\x11\n\t\x04\0\ - \x03\0\x03\x04\x02\x01\x01\x12\x04\x89\x03\x0f\x16\n\x11\n\t\x04\0\x03\0\ - \x03\x04\x02\x01\x03\x12\x04\x89\x03\x19\x1a\n<\n\x08\x04\0\x03\0\x03\ - \x04\x02\x02\x12\x04\x8d\x03\x06?\x1a*\x20Required.\x20The\x20absolute\ - \x20path\x20of\x20the\x20file.\n\n\x11\n\t\x04\0\x03\0\x03\x04\x02\x02\ - \x05\x12\x04\x8d\x03\x06\x0c\n\x11\n\t\x04\0\x03\0\x03\x04\x02\x02\x01\ - \x12\x04\x8d\x03\r\x11\n\x11\n\t\x04\0\x03\0\x03\x04\x02\x02\x03\x12\x04\ - \x8d\x03\x14\x15\n\x11\n\t\x04\0\x03\0\x03\x04\x02\x02\x08\x12\x04\x8d\ - \x03\x16>\n\x14\n\x0c\x04\0\x03\0\x03\x04\x02\x02\x08\x9c\x08\0\x12\x04\ - \x8d\x03\x17=\n8\n\x08\x04\0\x03\0\x03\x04\x02\x03\x12\x04\x90\x03\x06F\ - \x1a&\x20Required.\x20Desired\x20state\x20of\x20the\x20file.\n\n\x11\n\t\ - \x04\0\x03\0\x03\x04\x02\x03\x06\x12\x04\x90\x03\x06\x12\n\x11\n\t\x04\0\ - \x03\0\x03\x04\x02\x03\x01\x12\x04\x90\x03\x13\x18\n\x11\n\t\x04\0\x03\0\ - \x03\x04\x02\x03\x03\x12\x04\x90\x03\x1b\x1c\n\x11\n\t\x04\0\x03\0\x03\ - \x04\x02\x03\x08\x12\x04\x90\x03\x1dE\n\x14\n\x0c\x04\0\x03\0\x03\x04\ - \x02\x03\x08\x9c\x08\0\x12\x04\x90\x03\x1eD\n\xc7\x04\n\x08\x04\0\x03\0\ - \x03\x04\x02\x04\x12\x04\x9f\x03\x06\x1d\x1a\xb4\x04\x20Consists\x20of\ - \x20three\x20octal\x20digits\x20which\x20represent,\x20in\n\x20order,\ - \x20the\x20permissions\x20of\x20the\x20owner,\x20group,\x20and\x20other\ - \x20users\x20for\x20the\n\x20file\x20(similarly\x20to\x20the\x20numeric\ - \x20mode\x20used\x20in\x20the\x20linux\x20chmod\n\x20utility).\x20Each\ - \x20digit\x20represents\x20a\x20three\x20bit\x20number\x20with\x20the\ - \x204\x20bit\n\x20corresponding\x20to\x20the\x20read\x20permissions,\x20\ - the\x202\x20bit\x20corresponds\x20to\x20the\n\x20write\x20bit,\x20and\ - \x20the\x20one\x20bit\x20corresponds\x20to\x20the\x20execute\x20permissi\ - on.\n\x20Default\x20behavior\x20is\x20755.\n\n\x20Below\x20are\x20some\ - \x20examples\x20of\x20permissions\x20and\x20their\x20associated\x20value\ - s:\n\x20read,\x20write,\x20and\x20execute:\x207\n\x20read\x20and\x20exec\ - ute:\x205\n\x20read\x20and\x20write:\x206\n\x20read\x20only:\x204\n\n\ - \x11\n\t\x04\0\x03\0\x03\x04\x02\x04\x05\x12\x04\x9f\x03\x06\x0c\n\x11\n\ - \t\x04\0\x03\0\x03\x04\x02\x04\x01\x12\x04\x9f\x03\r\x18\n\x11\n\t\x04\0\ - \x03\0\x03\x04\x02\x04\x03\x12\x04\x9f\x03\x1b\x1c\n\xa3\x02\n\x06\x04\0\ - \x03\0\x02\0\x12\x04\xa9\x03\x04;\x1a\x92\x02\x20Required.\x20The\x20id\ - \x20of\x20the\x20resource\x20with\x20the\x20following\x20restrictions:\n\ - \n\x20*\x20Must\x20contain\x20only\x20lowercase\x20letters,\x20numbers,\ - \x20and\x20hyphens.\n\x20*\x20Must\x20start\x20with\x20a\x20letter.\n\ - \x20*\x20Must\x20be\x20between\x201-63\x20characters.\n\x20*\x20Must\x20\ - end\x20with\x20a\x20number\x20or\x20a\x20letter.\n\x20*\x20Must\x20be\ - \x20unique\x20within\x20the\x20OS\x20policy.\n\n\x0f\n\x07\x04\0\x03\0\ - \x02\0\x05\x12\x04\xa9\x03\x04\n\n\x0f\n\x07\x04\0\x03\0\x02\0\x01\x12\ - \x04\xa9\x03\x0b\r\n\x0f\n\x07\x04\0\x03\0\x02\0\x03\x12\x04\xa9\x03\x10\ - \x11\n\x0f\n\x07\x04\0\x03\0\x02\0\x08\x12\x04\xa9\x03\x12:\n\x12\n\n\ - \x04\0\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xa9\x03\x139\n\"\n\x06\x04\0\ - \x03\0\x08\0\x12\x06\xac\x03\x04\xb8\x03\x05\x1a\x10\x20Resource\x20type\ - .\n\n\x0f\n\x07\x04\0\x03\0\x08\0\x01\x12\x04\xac\x03\n\x17\n\"\n\x06\ - \x04\0\x03\0\x02\x01\x12\x04\xae\x03\x06\x1e\x1a\x12\x20Package\x20resou\ - rce\n\n\x0f\n\x07\x04\0\x03\0\x02\x01\x06\x12\x04\xae\x03\x06\x15\n\x0f\ - \n\x07\x04\0\x03\0\x02\x01\x01\x12\x04\xae\x03\x16\x19\n\x0f\n\x07\x04\0\ - \x03\0\x02\x01\x03\x12\x04\xae\x03\x1c\x1d\n-\n\x06\x04\0\x03\0\x02\x02\ - \x12\x04\xb1\x03\x06(\x1a\x1d\x20Package\x20repository\x20resource\n\n\ - \x0f\n\x07\x04\0\x03\0\x02\x02\x06\x12\x04\xb1\x03\x06\x18\n\x0f\n\x07\ - \x04\0\x03\0\x02\x02\x01\x12\x04\xb1\x03\x19#\n\x0f\n\x07\x04\0\x03\0\ - \x02\x02\x03\x12\x04\xb1\x03&'\n\x1f\n\x06\x04\0\x03\0\x02\x03\x12\x04\ - \xb4\x03\x06\x1c\x1a\x0f\x20Exec\x20resource\n\n\x0f\n\x07\x04\0\x03\0\ - \x02\x03\x06\x12\x04\xb4\x03\x06\x12\n\x0f\n\x07\x04\0\x03\0\x02\x03\x01\ - \x12\x04\xb4\x03\x13\x17\n\x0f\n\x07\x04\0\x03\0\x02\x03\x03\x12\x04\xb4\ - \x03\x1a\x1b\n\x1f\n\x06\x04\0\x03\0\x02\x04\x12\x04\xb7\x03\x06\x1c\x1a\ - \x0f\x20File\x20resource\n\n\x0f\n\x07\x04\0\x03\0\x02\x04\x06\x12\x04\ - \xb7\x03\x06\x12\n\x0f\n\x07\x04\0\x03\0\x02\x04\x01\x12\x04\xb7\x03\x13\ - \x17\n\x0f\n\x07\x04\0\x03\0\x02\x04\x03\x12\x04\xb7\x03\x1a\x1bb\x06pro\ - to3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/patch_jobs.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/patch_jobs.rs deleted file mode 100644 index f509eaf..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/patch_jobs.rs +++ /dev/null @@ -1,3492 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/patch_jobs.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct PatchConfig { - // message fields - pub reboot_config: PatchConfig_RebootConfig, - pub retry_strategy: ::protobuf::SingularPtrField, - pub apt: ::protobuf::SingularPtrField, - pub yum: ::protobuf::SingularPtrField, - pub goo: ::protobuf::SingularPtrField, - pub zypper: ::protobuf::SingularPtrField, - pub windows_update: ::protobuf::SingularPtrField, - pub pre_step: ::protobuf::SingularPtrField, - pub post_step: ::protobuf::SingularPtrField, - pub mig_instances_allowed: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchConfig { - fn default() -> &'a PatchConfig { - ::default_instance() - } -} - -impl PatchConfig { - pub fn new() -> PatchConfig { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.PatchConfig.RebootConfig reboot_config = 1; - - - pub fn get_reboot_config(&self) -> PatchConfig_RebootConfig { - self.reboot_config - } - pub fn clear_reboot_config(&mut self) { - self.reboot_config = PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_reboot_config(&mut self, v: PatchConfig_RebootConfig) { - self.reboot_config = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.RetryStrategy retry_strategy = 2; - - - pub fn get_retry_strategy(&self) -> &RetryStrategy { - self.retry_strategy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_retry_strategy(&mut self) { - self.retry_strategy.clear(); - } - - pub fn has_retry_strategy(&self) -> bool { - self.retry_strategy.is_some() - } - - // Param is passed by value, moved - pub fn set_retry_strategy(&mut self, v: RetryStrategy) { - self.retry_strategy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_retry_strategy(&mut self) -> &mut RetryStrategy { - if self.retry_strategy.is_none() { - self.retry_strategy.set_default(); - } - self.retry_strategy.as_mut().unwrap() - } - - // Take field - pub fn take_retry_strategy(&mut self) -> RetryStrategy { - self.retry_strategy.take().unwrap_or_else(|| RetryStrategy::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.AptSettings apt = 3; - - - pub fn get_apt(&self) -> &AptSettings { - self.apt.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_apt(&mut self) { - self.apt.clear(); - } - - pub fn has_apt(&self) -> bool { - self.apt.is_some() - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: AptSettings) { - self.apt = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_apt(&mut self) -> &mut AptSettings { - if self.apt.is_none() { - self.apt.set_default(); - } - self.apt.as_mut().unwrap() - } - - // Take field - pub fn take_apt(&mut self) -> AptSettings { - self.apt.take().unwrap_or_else(|| AptSettings::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.YumSettings yum = 4; - - - pub fn get_yum(&self) -> &YumSettings { - self.yum.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_yum(&mut self) { - self.yum.clear(); - } - - pub fn has_yum(&self) -> bool { - self.yum.is_some() - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: YumSettings) { - self.yum = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_yum(&mut self) -> &mut YumSettings { - if self.yum.is_none() { - self.yum.set_default(); - } - self.yum.as_mut().unwrap() - } - - // Take field - pub fn take_yum(&mut self) -> YumSettings { - self.yum.take().unwrap_or_else(|| YumSettings::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.GooSettings goo = 5; - - - pub fn get_goo(&self) -> &GooSettings { - self.goo.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_goo(&mut self) { - self.goo.clear(); - } - - pub fn has_goo(&self) -> bool { - self.goo.is_some() - } - - // Param is passed by value, moved - pub fn set_goo(&mut self, v: GooSettings) { - self.goo = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_goo(&mut self) -> &mut GooSettings { - if self.goo.is_none() { - self.goo.set_default(); - } - self.goo.as_mut().unwrap() - } - - // Take field - pub fn take_goo(&mut self) -> GooSettings { - self.goo.take().unwrap_or_else(|| GooSettings::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ZypperSettings zypper = 6; - - - pub fn get_zypper(&self) -> &ZypperSettings { - self.zypper.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_zypper(&mut self) { - self.zypper.clear(); - } - - pub fn has_zypper(&self) -> bool { - self.zypper.is_some() - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: ZypperSettings) { - self.zypper = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_zypper(&mut self) -> &mut ZypperSettings { - if self.zypper.is_none() { - self.zypper.set_default(); - } - self.zypper.as_mut().unwrap() - } - - // Take field - pub fn take_zypper(&mut self) -> ZypperSettings { - self.zypper.take().unwrap_or_else(|| ZypperSettings::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.WindowsUpdateSettings windows_update = 7; - - - pub fn get_windows_update(&self) -> &WindowsUpdateSettings { - self.windows_update.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_windows_update(&mut self) { - self.windows_update.clear(); - } - - pub fn has_windows_update(&self) -> bool { - self.windows_update.is_some() - } - - // Param is passed by value, moved - pub fn set_windows_update(&mut self, v: WindowsUpdateSettings) { - self.windows_update = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_windows_update(&mut self) -> &mut WindowsUpdateSettings { - if self.windows_update.is_none() { - self.windows_update.set_default(); - } - self.windows_update.as_mut().unwrap() - } - - // Take field - pub fn take_windows_update(&mut self) -> WindowsUpdateSettings { - self.windows_update.take().unwrap_or_else(|| WindowsUpdateSettings::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStep pre_step = 8; - - - pub fn get_pre_step(&self) -> &ExecStep { - self.pre_step.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_pre_step(&mut self) { - self.pre_step.clear(); - } - - pub fn has_pre_step(&self) -> bool { - self.pre_step.is_some() - } - - // Param is passed by value, moved - pub fn set_pre_step(&mut self, v: ExecStep) { - self.pre_step = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_pre_step(&mut self) -> &mut ExecStep { - if self.pre_step.is_none() { - self.pre_step.set_default(); - } - self.pre_step.as_mut().unwrap() - } - - // Take field - pub fn take_pre_step(&mut self) -> ExecStep { - self.pre_step.take().unwrap_or_else(|| ExecStep::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStep post_step = 9; - - - pub fn get_post_step(&self) -> &ExecStep { - self.post_step.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_post_step(&mut self) { - self.post_step.clear(); - } - - pub fn has_post_step(&self) -> bool { - self.post_step.is_some() - } - - // Param is passed by value, moved - pub fn set_post_step(&mut self, v: ExecStep) { - self.post_step = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_post_step(&mut self) -> &mut ExecStep { - if self.post_step.is_none() { - self.post_step.set_default(); - } - self.post_step.as_mut().unwrap() - } - - // Take field - pub fn take_post_step(&mut self) -> ExecStep { - self.post_step.take().unwrap_or_else(|| ExecStep::new()) - } - - // bool mig_instances_allowed = 10; - - - pub fn get_mig_instances_allowed(&self) -> bool { - self.mig_instances_allowed - } - pub fn clear_mig_instances_allowed(&mut self) { - self.mig_instances_allowed = false; - } - - // Param is passed by value, moved - pub fn set_mig_instances_allowed(&mut self, v: bool) { - self.mig_instances_allowed = v; - } -} - -impl ::protobuf::Message for PatchConfig { - fn is_initialized(&self) -> bool { - for v in &self.retry_strategy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.apt { - if !v.is_initialized() { - return false; - } - }; - for v in &self.yum { - if !v.is_initialized() { - return false; - } - }; - for v in &self.goo { - if !v.is_initialized() { - return false; - } - }; - for v in &self.zypper { - if !v.is_initialized() { - return false; - } - }; - for v in &self.windows_update { - if !v.is_initialized() { - return false; - } - }; - for v in &self.pre_step { - if !v.is_initialized() { - return false; - } - }; - for v in &self.post_step { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.reboot_config, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retry_strategy)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.apt)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.yum)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.goo)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.zypper)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.windows_update)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pre_step)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.post_step)?; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mig_instances_allowed = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.reboot_config != PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.reboot_config); - } - if let Some(ref v) = self.retry_strategy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.apt.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.yum.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.goo.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.zypper.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.windows_update.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.pre_step.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.post_step.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.mig_instances_allowed != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.reboot_config != PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.reboot_config))?; - } - if let Some(ref v) = self.retry_strategy.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.apt.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.yum.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.goo.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.zypper.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.windows_update.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.pre_step.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.post_step.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.mig_instances_allowed != false { - os.write_bool(10, self.mig_instances_allowed)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchConfig { - PatchConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "reboot_config", - |m: &PatchConfig| { &m.reboot_config }, - |m: &mut PatchConfig| { &mut m.reboot_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "retry_strategy", - |m: &PatchConfig| { &m.retry_strategy }, - |m: &mut PatchConfig| { &mut m.retry_strategy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "apt", - |m: &PatchConfig| { &m.apt }, - |m: &mut PatchConfig| { &mut m.apt }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "yum", - |m: &PatchConfig| { &m.yum }, - |m: &mut PatchConfig| { &mut m.yum }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "goo", - |m: &PatchConfig| { &m.goo }, - |m: &mut PatchConfig| { &mut m.goo }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "zypper", - |m: &PatchConfig| { &m.zypper }, - |m: &mut PatchConfig| { &mut m.zypper }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "windows_update", - |m: &PatchConfig| { &m.windows_update }, - |m: &mut PatchConfig| { &mut m.windows_update }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "pre_step", - |m: &PatchConfig| { &m.pre_step }, - |m: &mut PatchConfig| { &mut m.pre_step }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "post_step", - |m: &PatchConfig| { &m.post_step }, - |m: &mut PatchConfig| { &mut m.post_step }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mig_instances_allowed", - |m: &PatchConfig| { &m.mig_instances_allowed }, - |m: &mut PatchConfig| { &mut m.mig_instances_allowed }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchConfig::new) - } -} - -impl ::protobuf::Clear for PatchConfig { - fn clear(&mut self) { - self.reboot_config = PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED; - self.retry_strategy.clear(); - self.apt.clear(); - self.yum.clear(); - self.goo.clear(); - self.zypper.clear(); - self.windows_update.clear(); - self.pre_step.clear(); - self.post_step.clear(); - self.mig_instances_allowed = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PatchConfig_RebootConfig { - REBOOT_CONFIG_UNSPECIFIED = 0, - DEFAULT = 1, - ALWAYS = 2, - NEVER = 3, -} - -impl ::protobuf::ProtobufEnum for PatchConfig_RebootConfig { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED), - 1 => ::std::option::Option::Some(PatchConfig_RebootConfig::DEFAULT), - 2 => ::std::option::Option::Some(PatchConfig_RebootConfig::ALWAYS), - 3 => ::std::option::Option::Some(PatchConfig_RebootConfig::NEVER), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PatchConfig_RebootConfig] = &[ - PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED, - PatchConfig_RebootConfig::DEFAULT, - PatchConfig_RebootConfig::ALWAYS, - PatchConfig_RebootConfig::NEVER, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PatchConfig.RebootConfig", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PatchConfig_RebootConfig { -} - -impl ::std::default::Default for PatchConfig_RebootConfig { - fn default() -> Self { - PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchConfig_RebootConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AptSettings { - // message fields - pub field_type: AptSettings_Type, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_packages: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AptSettings { - fn default() -> &'a AptSettings { - ::default_instance() - } -} - -impl AptSettings { - pub fn new() -> AptSettings { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.AptSettings.Type type = 1; - - - pub fn get_field_type(&self) -> AptSettings_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = AptSettings_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: AptSettings_Type) { - self.field_type = v; - } - - // repeated string excludes = 2; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_packages = 3; - - - pub fn get_exclusive_packages(&self) -> &[::std::string::String] { - &self.exclusive_packages - } - pub fn clear_exclusive_packages(&mut self) { - self.exclusive_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_packages(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_packages(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_packages - } - - // Take field - pub fn take_exclusive_packages(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_packages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AptSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_packages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != AptSettings_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.exclusive_packages { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != AptSettings_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - for v in &self.excludes { - os.write_string(2, &v)?; - }; - for v in &self.exclusive_packages { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AptSettings { - AptSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &AptSettings| { &m.field_type }, - |m: &mut AptSettings| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &AptSettings| { &m.excludes }, - |m: &mut AptSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_packages", - |m: &AptSettings| { &m.exclusive_packages }, - |m: &mut AptSettings| { &mut m.exclusive_packages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AptSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AptSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AptSettings::new) - } -} - -impl ::protobuf::Clear for AptSettings { - fn clear(&mut self) { - self.field_type = AptSettings_Type::TYPE_UNSPECIFIED; - self.excludes.clear(); - self.exclusive_packages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AptSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AptSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AptSettings_Type { - TYPE_UNSPECIFIED = 0, - DIST = 1, - UPGRADE = 2, -} - -impl ::protobuf::ProtobufEnum for AptSettings_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AptSettings_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(AptSettings_Type::DIST), - 2 => ::std::option::Option::Some(AptSettings_Type::UPGRADE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AptSettings_Type] = &[ - AptSettings_Type::TYPE_UNSPECIFIED, - AptSettings_Type::DIST, - AptSettings_Type::UPGRADE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AptSettings.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AptSettings_Type { -} - -impl ::std::default::Default for AptSettings_Type { - fn default() -> Self { - AptSettings_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AptSettings_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct YumSettings { - // message fields - pub security: bool, - pub minimal: bool, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_packages: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a YumSettings { - fn default() -> &'a YumSettings { - ::default_instance() - } -} - -impl YumSettings { - pub fn new() -> YumSettings { - ::std::default::Default::default() - } - - // bool security = 1; - - - pub fn get_security(&self) -> bool { - self.security - } - pub fn clear_security(&mut self) { - self.security = false; - } - - // Param is passed by value, moved - pub fn set_security(&mut self, v: bool) { - self.security = v; - } - - // bool minimal = 2; - - - pub fn get_minimal(&self) -> bool { - self.minimal - } - pub fn clear_minimal(&mut self) { - self.minimal = false; - } - - // Param is passed by value, moved - pub fn set_minimal(&mut self, v: bool) { - self.minimal = v; - } - - // repeated string excludes = 3; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_packages = 4; - - - pub fn get_exclusive_packages(&self) -> &[::std::string::String] { - &self.exclusive_packages - } - pub fn clear_exclusive_packages(&mut self) { - self.exclusive_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_packages(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_packages(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_packages - } - - // Take field - pub fn take_exclusive_packages(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_packages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for YumSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.security = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.minimal = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_packages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.security != false { - my_size += 2; - } - if self.minimal != false { - my_size += 2; - } - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.exclusive_packages { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.security != false { - os.write_bool(1, self.security)?; - } - if self.minimal != false { - os.write_bool(2, self.minimal)?; - } - for v in &self.excludes { - os.write_string(3, &v)?; - }; - for v in &self.exclusive_packages { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> YumSettings { - YumSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "security", - |m: &YumSettings| { &m.security }, - |m: &mut YumSettings| { &mut m.security }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "minimal", - |m: &YumSettings| { &m.minimal }, - |m: &mut YumSettings| { &mut m.minimal }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &YumSettings| { &m.excludes }, - |m: &mut YumSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_packages", - |m: &YumSettings| { &m.exclusive_packages }, - |m: &mut YumSettings| { &mut m.exclusive_packages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "YumSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static YumSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(YumSettings::new) - } -} - -impl ::protobuf::Clear for YumSettings { - fn clear(&mut self) { - self.security = false; - self.minimal = false; - self.excludes.clear(); - self.exclusive_packages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for YumSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for YumSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GooSettings { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GooSettings { - fn default() -> &'a GooSettings { - ::default_instance() - } -} - -impl GooSettings { - pub fn new() -> GooSettings { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for GooSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GooSettings { - GooSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GooSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GooSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GooSettings::new) - } -} - -impl ::protobuf::Clear for GooSettings { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GooSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GooSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ZypperSettings { - // message fields - pub with_optional: bool, - pub with_update: bool, - pub categories: ::protobuf::RepeatedField<::std::string::String>, - pub severities: ::protobuf::RepeatedField<::std::string::String>, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_patches: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ZypperSettings { - fn default() -> &'a ZypperSettings { - ::default_instance() - } -} - -impl ZypperSettings { - pub fn new() -> ZypperSettings { - ::std::default::Default::default() - } - - // bool with_optional = 1; - - - pub fn get_with_optional(&self) -> bool { - self.with_optional - } - pub fn clear_with_optional(&mut self) { - self.with_optional = false; - } - - // Param is passed by value, moved - pub fn set_with_optional(&mut self, v: bool) { - self.with_optional = v; - } - - // bool with_update = 2; - - - pub fn get_with_update(&self) -> bool { - self.with_update - } - pub fn clear_with_update(&mut self) { - self.with_update = false; - } - - // Param is passed by value, moved - pub fn set_with_update(&mut self, v: bool) { - self.with_update = v; - } - - // repeated string categories = 3; - - - pub fn get_categories(&self) -> &[::std::string::String] { - &self.categories - } - pub fn clear_categories(&mut self) { - self.categories.clear(); - } - - // Param is passed by value, moved - pub fn set_categories(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.categories = v; - } - - // Mutable pointer to the field. - pub fn mut_categories(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.categories - } - - // Take field - pub fn take_categories(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.categories, ::protobuf::RepeatedField::new()) - } - - // repeated string severities = 4; - - - pub fn get_severities(&self) -> &[::std::string::String] { - &self.severities - } - pub fn clear_severities(&mut self) { - self.severities.clear(); - } - - // Param is passed by value, moved - pub fn set_severities(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.severities = v; - } - - // Mutable pointer to the field. - pub fn mut_severities(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.severities - } - - // Take field - pub fn take_severities(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.severities, ::protobuf::RepeatedField::new()) - } - - // repeated string excludes = 5; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_patches = 6; - - - pub fn get_exclusive_patches(&self) -> &[::std::string::String] { - &self.exclusive_patches - } - pub fn clear_exclusive_patches(&mut self) { - self.exclusive_patches.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_patches(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_patches = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_patches(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_patches - } - - // Take field - pub fn take_exclusive_patches(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_patches, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ZypperSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.with_optional = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.with_update = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.categories)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.severities)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_patches)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.with_optional != false { - my_size += 2; - } - if self.with_update != false { - my_size += 2; - } - for value in &self.categories { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.severities { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(5, &value); - }; - for value in &self.exclusive_patches { - my_size += ::protobuf::rt::string_size(6, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.with_optional != false { - os.write_bool(1, self.with_optional)?; - } - if self.with_update != false { - os.write_bool(2, self.with_update)?; - } - for v in &self.categories { - os.write_string(3, &v)?; - }; - for v in &self.severities { - os.write_string(4, &v)?; - }; - for v in &self.excludes { - os.write_string(5, &v)?; - }; - for v in &self.exclusive_patches { - os.write_string(6, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ZypperSettings { - ZypperSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "with_optional", - |m: &ZypperSettings| { &m.with_optional }, - |m: &mut ZypperSettings| { &mut m.with_optional }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "with_update", - |m: &ZypperSettings| { &m.with_update }, - |m: &mut ZypperSettings| { &mut m.with_update }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "categories", - |m: &ZypperSettings| { &m.categories }, - |m: &mut ZypperSettings| { &mut m.categories }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severities", - |m: &ZypperSettings| { &m.severities }, - |m: &mut ZypperSettings| { &mut m.severities }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &ZypperSettings| { &m.excludes }, - |m: &mut ZypperSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_patches", - |m: &ZypperSettings| { &m.exclusive_patches }, - |m: &mut ZypperSettings| { &mut m.exclusive_patches }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ZypperSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ZypperSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ZypperSettings::new) - } -} - -impl ::protobuf::Clear for ZypperSettings { - fn clear(&mut self) { - self.with_optional = false; - self.with_update = false; - self.categories.clear(); - self.severities.clear(); - self.excludes.clear(); - self.exclusive_patches.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ZypperSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ZypperSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WindowsUpdateSettings { - // message fields - pub classifications: ::std::vec::Vec, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_patches: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WindowsUpdateSettings { - fn default() -> &'a WindowsUpdateSettings { - ::default_instance() - } -} - -impl WindowsUpdateSettings { - pub fn new() -> WindowsUpdateSettings { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.WindowsUpdateSettings.Classification classifications = 1; - - - pub fn get_classifications(&self) -> &[WindowsUpdateSettings_Classification] { - &self.classifications - } - pub fn clear_classifications(&mut self) { - self.classifications.clear(); - } - - // Param is passed by value, moved - pub fn set_classifications(&mut self, v: ::std::vec::Vec) { - self.classifications = v; - } - - // Mutable pointer to the field. - pub fn mut_classifications(&mut self) -> &mut ::std::vec::Vec { - &mut self.classifications - } - - // Take field - pub fn take_classifications(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.classifications, ::std::vec::Vec::new()) - } - - // repeated string excludes = 2; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_patches = 3; - - - pub fn get_exclusive_patches(&self) -> &[::std::string::String] { - &self.exclusive_patches - } - pub fn clear_exclusive_patches(&mut self) { - self.exclusive_patches.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_patches(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_patches = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_patches(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_patches - } - - // Take field - pub fn take_exclusive_patches(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_patches, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for WindowsUpdateSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.classifications, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_patches)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.classifications { - my_size += ::protobuf::rt::enum_size(1, *value); - }; - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.exclusive_patches { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.classifications { - os.write_enum(1, ::protobuf::ProtobufEnum::value(v))?; - }; - for v in &self.excludes { - os.write_string(2, &v)?; - }; - for v in &self.exclusive_patches { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WindowsUpdateSettings { - WindowsUpdateSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "classifications", - |m: &WindowsUpdateSettings| { &m.classifications }, - |m: &mut WindowsUpdateSettings| { &mut m.classifications }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &WindowsUpdateSettings| { &m.excludes }, - |m: &mut WindowsUpdateSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_patches", - |m: &WindowsUpdateSettings| { &m.exclusive_patches }, - |m: &mut WindowsUpdateSettings| { &mut m.exclusive_patches }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WindowsUpdateSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static WindowsUpdateSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WindowsUpdateSettings::new) - } -} - -impl ::protobuf::Clear for WindowsUpdateSettings { - fn clear(&mut self) { - self.classifications.clear(); - self.excludes.clear(); - self.exclusive_patches.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WindowsUpdateSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WindowsUpdateSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum WindowsUpdateSettings_Classification { - CLASSIFICATION_UNSPECIFIED = 0, - CRITICAL = 1, - SECURITY = 2, - DEFINITION = 3, - DRIVER = 4, - FEATURE_PACK = 5, - SERVICE_PACK = 6, - TOOL = 7, - UPDATE_ROLLUP = 8, - UPDATE = 9, -} - -impl ::protobuf::ProtobufEnum for WindowsUpdateSettings_Classification { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED), - 1 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::CRITICAL), - 2 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::SECURITY), - 3 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::DEFINITION), - 4 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::DRIVER), - 5 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::FEATURE_PACK), - 6 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::SERVICE_PACK), - 7 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::TOOL), - 8 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::UPDATE_ROLLUP), - 9 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::UPDATE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [WindowsUpdateSettings_Classification] = &[ - WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED, - WindowsUpdateSettings_Classification::CRITICAL, - WindowsUpdateSettings_Classification::SECURITY, - WindowsUpdateSettings_Classification::DEFINITION, - WindowsUpdateSettings_Classification::DRIVER, - WindowsUpdateSettings_Classification::FEATURE_PACK, - WindowsUpdateSettings_Classification::SERVICE_PACK, - WindowsUpdateSettings_Classification::TOOL, - WindowsUpdateSettings_Classification::UPDATE_ROLLUP, - WindowsUpdateSettings_Classification::UPDATE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("WindowsUpdateSettings.Classification", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for WindowsUpdateSettings_Classification { -} - -impl ::std::default::Default for WindowsUpdateSettings_Classification { - fn default() -> Self { - WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for WindowsUpdateSettings_Classification { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RetryStrategy { - // message fields - pub enabled: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RetryStrategy { - fn default() -> &'a RetryStrategy { - ::default_instance() - } -} - -impl RetryStrategy { - pub fn new() -> RetryStrategy { - ::std::default::Default::default() - } - - // bool enabled = 1; - - - pub fn get_enabled(&self) -> bool { - self.enabled - } - pub fn clear_enabled(&mut self) { - self.enabled = false; - } - - // Param is passed by value, moved - pub fn set_enabled(&mut self, v: bool) { - self.enabled = v; - } -} - -impl ::protobuf::Message for RetryStrategy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enabled = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.enabled != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.enabled != false { - os.write_bool(1, self.enabled)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RetryStrategy { - RetryStrategy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enabled", - |m: &RetryStrategy| { &m.enabled }, - |m: &mut RetryStrategy| { &mut m.enabled }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RetryStrategy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RetryStrategy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RetryStrategy::new) - } -} - -impl ::protobuf::Clear for RetryStrategy { - fn clear(&mut self) { - self.enabled = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RetryStrategy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RetryStrategy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStep { - // message fields - pub linux_exec_step_config: ::protobuf::SingularPtrField, - pub windows_exec_step_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStep { - fn default() -> &'a ExecStep { - ::default_instance() - } -} - -impl ExecStep { - pub fn new() -> ExecStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepConfig linux_exec_step_config = 1; - - - pub fn get_linux_exec_step_config(&self) -> &ExecStepConfig { - self.linux_exec_step_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_linux_exec_step_config(&mut self) { - self.linux_exec_step_config.clear(); - } - - pub fn has_linux_exec_step_config(&self) -> bool { - self.linux_exec_step_config.is_some() - } - - // Param is passed by value, moved - pub fn set_linux_exec_step_config(&mut self, v: ExecStepConfig) { - self.linux_exec_step_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_linux_exec_step_config(&mut self) -> &mut ExecStepConfig { - if self.linux_exec_step_config.is_none() { - self.linux_exec_step_config.set_default(); - } - self.linux_exec_step_config.as_mut().unwrap() - } - - // Take field - pub fn take_linux_exec_step_config(&mut self) -> ExecStepConfig { - self.linux_exec_step_config.take().unwrap_or_else(|| ExecStepConfig::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepConfig windows_exec_step_config = 2; - - - pub fn get_windows_exec_step_config(&self) -> &ExecStepConfig { - self.windows_exec_step_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_windows_exec_step_config(&mut self) { - self.windows_exec_step_config.clear(); - } - - pub fn has_windows_exec_step_config(&self) -> bool { - self.windows_exec_step_config.is_some() - } - - // Param is passed by value, moved - pub fn set_windows_exec_step_config(&mut self, v: ExecStepConfig) { - self.windows_exec_step_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_windows_exec_step_config(&mut self) -> &mut ExecStepConfig { - if self.windows_exec_step_config.is_none() { - self.windows_exec_step_config.set_default(); - } - self.windows_exec_step_config.as_mut().unwrap() - } - - // Take field - pub fn take_windows_exec_step_config(&mut self) -> ExecStepConfig { - self.windows_exec_step_config.take().unwrap_or_else(|| ExecStepConfig::new()) - } -} - -impl ::protobuf::Message for ExecStep { - fn is_initialized(&self) -> bool { - for v in &self.linux_exec_step_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.windows_exec_step_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.linux_exec_step_config)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.windows_exec_step_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.linux_exec_step_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.windows_exec_step_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.linux_exec_step_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.windows_exec_step_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStep { - ExecStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "linux_exec_step_config", - |m: &ExecStep| { &m.linux_exec_step_config }, - |m: &mut ExecStep| { &mut m.linux_exec_step_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "windows_exec_step_config", - |m: &ExecStep| { &m.windows_exec_step_config }, - |m: &mut ExecStep| { &mut m.windows_exec_step_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStep::new) - } -} - -impl ::protobuf::Clear for ExecStep { - fn clear(&mut self) { - self.linux_exec_step_config.clear(); - self.windows_exec_step_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStepConfig { - // message fields - pub allowed_success_codes: ::std::vec::Vec, - pub interpreter: ExecStepConfig_Interpreter, - // message oneof groups - pub executable: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStepConfig { - fn default() -> &'a ExecStepConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ExecStepConfig_oneof_executable { - local_path(::std::string::String), - gcs_object(GcsObject), -} - -impl ExecStepConfig { - pub fn new() -> ExecStepConfig { - ::std::default::Default::default() - } - - // string local_path = 1; - - - pub fn get_local_path(&self) -> &str { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(ref v)) => v, - _ => "", - } - } - pub fn clear_local_path(&mut self) { - self.executable = ::std::option::Option::None; - } - - pub fn has_local_path(&self) -> bool { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_local_path(&mut self, v: ::std::string::String) { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(v)) - } - - // Mutable pointer to the field. - pub fn mut_local_path(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(_)) = self.executable { - } else { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(::std::string::String::new())); - } - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_local_path(&mut self) -> ::std::string::String { - if self.has_local_path() { - match self.executable.take() { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.GcsObject gcs_object = 2; - - - pub fn get_gcs_object(&self) -> &GcsObject { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs_object(&mut self) { - self.executable = ::std::option::Option::None; - } - - pub fn has_gcs_object(&self) -> bool { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs_object(&mut self, v: GcsObject) { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs_object(&mut self) -> &mut GcsObject { - if let ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(_)) = self.executable { - } else { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(GcsObject::new())); - } - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs_object(&mut self) -> GcsObject { - if self.has_gcs_object() { - match self.executable.take() { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(v)) => v, - _ => panic!(), - } - } else { - GcsObject::new() - } - } - - // repeated int32 allowed_success_codes = 3; - - - pub fn get_allowed_success_codes(&self) -> &[i32] { - &self.allowed_success_codes - } - pub fn clear_allowed_success_codes(&mut self) { - self.allowed_success_codes.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_success_codes(&mut self, v: ::std::vec::Vec) { - self.allowed_success_codes = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_success_codes(&mut self) -> &mut ::std::vec::Vec { - &mut self.allowed_success_codes - } - - // Take field - pub fn take_allowed_success_codes(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.allowed_success_codes, ::std::vec::Vec::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepConfig.Interpreter interpreter = 4; - - - pub fn get_interpreter(&self) -> ExecStepConfig_Interpreter { - self.interpreter - } - pub fn clear_interpreter(&mut self) { - self.interpreter = ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_interpreter(&mut self, v: ExecStepConfig_Interpreter) { - self.interpreter = v; - } -} - -impl ::protobuf::Message for ExecStepConfig { - fn is_initialized(&self) -> bool { - if let Some(ExecStepConfig_oneof_executable::gcs_object(ref v)) = self.executable { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(is.read_message()?)); - }, - 3 => { - ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.allowed_success_codes)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.interpreter, 4, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.allowed_success_codes { - my_size += ::protobuf::rt::value_size(3, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if self.interpreter != ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.interpreter); - } - if let ::std::option::Option::Some(ref v) = self.executable { - match v { - &ExecStepConfig_oneof_executable::local_path(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &ExecStepConfig_oneof_executable::gcs_object(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_success_codes { - os.write_int32(3, *v)?; - }; - if self.interpreter != ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.interpreter))?; - } - if let ::std::option::Option::Some(ref v) = self.executable { - match v { - &ExecStepConfig_oneof_executable::local_path(ref v) => { - os.write_string(1, v)?; - }, - &ExecStepConfig_oneof_executable::gcs_object(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStepConfig { - ExecStepConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "local_path", - ExecStepConfig::has_local_path, - ExecStepConfig::get_local_path, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcsObject>( - "gcs_object", - ExecStepConfig::has_gcs_object, - ExecStepConfig::get_gcs_object, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "allowed_success_codes", - |m: &ExecStepConfig| { &m.allowed_success_codes }, - |m: &mut ExecStepConfig| { &mut m.allowed_success_codes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "interpreter", - |m: &ExecStepConfig| { &m.interpreter }, - |m: &mut ExecStepConfig| { &mut m.interpreter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStepConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStepConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStepConfig::new) - } -} - -impl ::protobuf::Clear for ExecStepConfig { - fn clear(&mut self) { - self.executable = ::std::option::Option::None; - self.executable = ::std::option::Option::None; - self.allowed_success_codes.clear(); - self.interpreter = ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStepConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ExecStepConfig_Interpreter { - INTERPRETER_UNSPECIFIED = 0, - NONE = 3, - SHELL = 1, - POWERSHELL = 2, -} - -impl ::protobuf::ProtobufEnum for ExecStepConfig_Interpreter { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED), - 3 => ::std::option::Option::Some(ExecStepConfig_Interpreter::NONE), - 1 => ::std::option::Option::Some(ExecStepConfig_Interpreter::SHELL), - 2 => ::std::option::Option::Some(ExecStepConfig_Interpreter::POWERSHELL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ExecStepConfig_Interpreter] = &[ - ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED, - ExecStepConfig_Interpreter::NONE, - ExecStepConfig_Interpreter::SHELL, - ExecStepConfig_Interpreter::POWERSHELL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ExecStepConfig.Interpreter", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ExecStepConfig_Interpreter { -} - -impl ::std::default::Default for ExecStepConfig_Interpreter { - fn default() -> Self { - ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepConfig_Interpreter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcsObject { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation_number: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcsObject { - fn default() -> &'a GcsObject { - ::default_instance() - } -} - -impl GcsObject { - pub fn new() -> GcsObject { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string object = 2; - - - pub fn get_object(&self) -> &str { - &self.object - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: ::std::string::String) { - self.object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object(&mut self) -> &mut ::std::string::String { - &mut self.object - } - - // Take field - pub fn take_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object, ::std::string::String::new()) - } - - // int64 generation_number = 3; - - - pub fn get_generation_number(&self) -> i64 { - self.generation_number - } - pub fn clear_generation_number(&mut self) { - self.generation_number = 0; - } - - // Param is passed by value, moved - pub fn set_generation_number(&mut self, v: i64) { - self.generation_number = v; - } -} - -impl ::protobuf::Message for GcsObject { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.generation_number = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.object); - } - if self.generation_number != 0 { - my_size += ::protobuf::rt::value_size(3, self.generation_number, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if self.generation_number != 0 { - os.write_int64(3, self.generation_number)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcsObject { - GcsObject::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &GcsObject| { &m.bucket }, - |m: &mut GcsObject| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &GcsObject| { &m.object }, - |m: &mut GcsObject| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation_number", - |m: &GcsObject| { &m.generation_number }, - |m: &mut GcsObject| { &mut m.generation_number }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcsObject", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcsObject { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcsObject::new) - } -} - -impl ::protobuf::Clear for GcsObject { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation_number = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcsObject { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcsObject { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n7google/cloud/osconfig/agentendpoint/v1/patch_jobs.proto\x12&google.cl\ - oud.osconfig.agentendpoint.v1\"\x80\x07\n\x0bPatchConfig\x12e\n\rreboot_\ - config\x18\x01\x20\x01(\x0e2@.google.cloud.osconfig.agentendpoint.v1.Pat\ - chConfig.RebootConfigR\x0crebootConfig\x12\\\n\x0eretry_strategy\x18\x02\ - \x20\x01(\x0b25.google.cloud.osconfig.agentendpoint.v1.RetryStrategyR\rr\ - etryStrategy\x12E\n\x03apt\x18\x03\x20\x01(\x0b23.google.cloud.osconfig.\ - agentendpoint.v1.AptSettingsR\x03apt\x12E\n\x03yum\x18\x04\x20\x01(\x0b2\ - 3.google.cloud.osconfig.agentendpoint.v1.YumSettingsR\x03yum\x12E\n\x03g\ - oo\x18\x05\x20\x01(\x0b23.google.cloud.osconfig.agentendpoint.v1.GooSett\ - ingsR\x03goo\x12N\n\x06zypper\x18\x06\x20\x01(\x0b26.google.cloud.osconf\ - ig.agentendpoint.v1.ZypperSettingsR\x06zypper\x12d\n\x0ewindows_update\ - \x18\x07\x20\x01(\x0b2=.google.cloud.osconfig.agentendpoint.v1.WindowsUp\ - dateSettingsR\rwindowsUpdate\x12K\n\x08pre_step\x18\x08\x20\x01(\x0b20.g\ - oogle.cloud.osconfig.agentendpoint.v1.ExecStepR\x07preStep\x12M\n\tpost_\ - step\x18\t\x20\x01(\x0b20.google.cloud.osconfig.agentendpoint.v1.ExecSte\ - pR\x08postStep\x122\n\x15mig_instances_allowed\x18\n\x20\x01(\x08R\x13mi\ - gInstancesAllowed\"Q\n\x0cRebootConfig\x12\x1d\n\x19REBOOT_CONFIG_UNSPEC\ - IFIED\x10\0\x12\x0b\n\x07DEFAULT\x10\x01\x12\n\n\x06ALWAYS\x10\x02\x12\t\ - \n\x05NEVER\x10\x03\"\xdb\x01\n\x0bAptSettings\x12L\n\x04type\x18\x01\ - \x20\x01(\x0e28.google.cloud.osconfig.agentendpoint.v1.AptSettings.TypeR\ - \x04type\x12\x1a\n\x08excludes\x18\x02\x20\x03(\tR\x08excludes\x12-\n\ - \x12exclusive_packages\x18\x03\x20\x03(\tR\x11exclusivePackages\"3\n\x04\ - Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x08\n\x04DIST\x10\x01\x12\ - \x0b\n\x07UPGRADE\x10\x02\"\x8e\x01\n\x0bYumSettings\x12\x1a\n\x08securi\ - ty\x18\x01\x20\x01(\x08R\x08security\x12\x18\n\x07minimal\x18\x02\x20\ - \x01(\x08R\x07minimal\x12\x1a\n\x08excludes\x18\x03\x20\x03(\tR\x08exclu\ - des\x12-\n\x12exclusive_packages\x18\x04\x20\x03(\tR\x11exclusivePackage\ - s\"\r\n\x0bGooSettings\"\xdf\x01\n\x0eZypperSettings\x12#\n\rwith_option\ - al\x18\x01\x20\x01(\x08R\x0cwithOptional\x12\x1f\n\x0bwith_update\x18\ - \x02\x20\x01(\x08R\nwithUpdate\x12\x1e\n\ncategories\x18\x03\x20\x03(\tR\ - \ncategories\x12\x1e\n\nseverities\x18\x04\x20\x03(\tR\nseverities\x12\ - \x1a\n\x08excludes\x18\x05\x20\x03(\tR\x08excludes\x12+\n\x11exclusive_p\ - atches\x18\x06\x20\x03(\tR\x10exclusivePatches\"\x90\x03\n\x15WindowsUpd\ - ateSettings\x12v\n\x0fclassifications\x18\x01\x20\x03(\x0e2L.google.clou\ - d.osconfig.agentendpoint.v1.WindowsUpdateSettings.ClassificationR\x0fcla\ - ssifications\x12\x1a\n\x08excludes\x18\x02\x20\x03(\tR\x08excludes\x12+\ - \n\x11exclusive_patches\x18\x03\x20\x03(\tR\x10exclusivePatches\"\xb5\ - \x01\n\x0eClassification\x12\x1e\n\x1aCLASSIFICATION_UNSPECIFIED\x10\0\ - \x12\x0c\n\x08CRITICAL\x10\x01\x12\x0c\n\x08SECURITY\x10\x02\x12\x0e\n\n\ - DEFINITION\x10\x03\x12\n\n\x06DRIVER\x10\x04\x12\x10\n\x0cFEATURE_PACK\ - \x10\x05\x12\x10\n\x0cSERVICE_PACK\x10\x06\x12\x08\n\x04TOOL\x10\x07\x12\ - \x11\n\rUPDATE_ROLLUP\x10\x08\x12\n\n\x06UPDATE\x10\t\")\n\rRetryStrateg\ - y\x12\x18\n\x07enabled\x18\x01\x20\x01(\x08R\x07enabled\"\xe8\x01\n\x08E\ - xecStep\x12k\n\x16linux_exec_step_config\x18\x01\x20\x01(\x0b26.google.c\ - loud.osconfig.agentendpoint.v1.ExecStepConfigR\x13linuxExecStepConfig\ - \x12o\n\x18windows_exec_step_config\x18\x02\x20\x01(\x0b26.google.cloud.\ - osconfig.agentendpoint.v1.ExecStepConfigR\x15windowsExecStepConfig\"\xfe\ - \x02\n\x0eExecStepConfig\x12\x1f\n\nlocal_path\x18\x01\x20\x01(\tH\0R\tl\ - ocalPath\x12R\n\ngcs_object\x18\x02\x20\x01(\x0b21.google.cloud.osconfig\ - .agentendpoint.v1.GcsObjectH\0R\tgcsObject\x122\n\x15allowed_success_cod\ - es\x18\x03\x20\x03(\x05R\x13allowedSuccessCodes\x12d\n\x0binterpreter\ - \x18\x04\x20\x01(\x0e2B.google.cloud.osconfig.agentendpoint.v1.ExecStepC\ - onfig.InterpreterR\x0binterpreter\"O\n\x0bInterpreter\x12\x1b\n\x17INTER\ - PRETER_UNSPECIFIED\x10\0\x12\x08\n\x04NONE\x10\x03\x12\t\n\x05SHELL\x10\ - \x01\x12\x0e\n\nPOWERSHELL\x10\x02B\x0c\n\nexecutable\"h\n\tGcsObject\ - \x12\x16\n\x06bucket\x18\x01\x20\x01(\tR\x06bucket\x12\x16\n\x06object\ - \x18\x02\x20\x01(\tR\x06object\x12+\n\x11generation_number\x18\x03\x20\ - \x01(\x03R\x10generationNumberB\x89\x01\n*com.google.cloud.osconfig.agen\ - tendpoint.v1B\tPatchJobsZPcloud.google.com/go/osconfig/agentendpoint/api\ - v1/agentendpointpb;agentendpointpbJ\xc1Y\n\x07\x12\x05\x0e\0\xa5\x02\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0/\n\x08\n\x01\x08\ - \x12\x03\x12\0g\n\t\n\x02\x08\x0b\x12\x03\x12\0g\n\x08\n\x01\x08\x12\x03\ - \x13\0*\n\t\n\x02\x08\x08\x12\x03\x13\0*\n\x08\n\x01\x08\x12\x03\x14\0C\ - \n\t\n\x02\x08\x01\x12\x03\x14\0C\nm\n\x02\x04\0\x12\x04\x18\0J\x01\x1aa\ - \x20Patch\x20configuration\x20specifications.\x20Contains\x20details\x20\ - on\x20how\x20to\n\x20apply\x20patches\x20to\x20a\x20VM\x20instance.\n\n\ - \n\n\x03\x04\0\x01\x12\x03\x18\x08\x13\n+\n\x04\x04\0\x04\0\x12\x04\x1a\ - \x02)\x03\x1a\x1d\x20Post-patch\x20reboot\x20settings.\n\n\x0c\n\x05\x04\ - \0\x04\0\x01\x12\x03\x1a\x07\x13\n1\n\x06\x04\0\x04\0\x02\0\x12\x03\x1c\ - \x04\"\x1a\"\x20The\x20default\x20behavior\x20is\x20DEFAULT.\n\n\x0e\n\ - \x07\x04\0\x04\0\x02\0\x01\x12\x03\x1c\x04\x1d\n\x0e\n\x07\x04\0\x04\0\ - \x02\0\x02\x12\x03\x1c\x20!\n\x8d\x02\n\x06\x04\0\x04\0\x02\x01\x12\x03\ - \"\x04\x10\x1a\xfd\x01\x20The\x20agent\x20decides\x20if\x20a\x20reboot\ - \x20is\x20necessary\x20by\x20checking\n\x20signals\x20such\x20as\x20regi\ - stry\x20keys\x20on\x20Windows\x20or\x20`/var/run/reboot-required`\x20on\ - \n\x20APT\x20based\x20systems.\x20On\x20RPM\x20based\x20systems,\x20a\ - \x20set\x20of\x20core\x20system\x20package\n\x20install\x20times\x20are\ - \x20compared\x20with\x20system\x20boot\x20time.\n\n\x0e\n\x07\x04\0\x04\ - \0\x02\x01\x01\x12\x03\"\x04\x0b\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\ - \x03\"\x0e\x0f\nF\n\x06\x04\0\x04\0\x02\x02\x12\x03%\x04\x0f\x1a7\x20Alw\ - ays\x20reboot\x20the\x20machine\x20after\x20the\x20update\x20completes.\ - \n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03%\x04\n\n\x0e\n\x07\x04\0\ - \x04\0\x02\x02\x02\x12\x03%\r\x0e\nE\n\x06\x04\0\x04\0\x02\x03\x12\x03(\ - \x04\x0e\x1a6\x20Never\x20reboot\x20the\x20machine\x20after\x20the\x20up\ - date\x20completes.\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x03(\x04\t\ - \n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\x12\x03(\x0c\r\n*\n\x04\x04\0\x02\0\ - \x12\x03,\x02!\x1a\x1d\x20Post-patch\x20reboot\x20settings.\n\n\x0c\n\ - \x05\x04\0\x02\0\x06\x12\x03,\x02\x0e\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03,\x0f\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03,\x1f\x20\n\xb0\x01\n\ - \x04\x04\0\x02\x01\x12\x031\x02#\x1a\xa2\x01\x20Retry\x20strategy\x20can\ - \x20be\x20defined\x20to\x20have\x20the\x20agent\x20retry\x20patching\n\ - \x20during\x20the\x20window\x20if\x20patching\x20fails.\x20If\x20omitted\ - ,\x20the\x20agent\x20will\x20use\x20its\n\x20default\x20retry\x20strateg\ - y.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x031\x02\x0f\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x031\x10\x1e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x031!\"\ - \nR\n\x04\x04\0\x02\x02\x12\x034\x02\x16\x1aE\x20Apt\x20update\x20settin\ - gs.\x20Use\x20this\x20override\x20the\x20default\x20apt\x20patch\x20rule\ - s.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x034\x02\r\n\x0c\n\x05\x04\0\x02\ - \x02\x01\x12\x034\x0e\x11\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x034\x14\x15\ - \nR\n\x04\x04\0\x02\x03\x12\x037\x02\x16\x1aE\x20Yum\x20update\x20settin\ - gs.\x20Use\x20this\x20override\x20the\x20default\x20yum\x20patch\x20rule\ - s.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x037\x02\r\n\x0c\n\x05\x04\0\x02\ - \x03\x01\x12\x037\x0e\x11\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x037\x14\x15\ - \nR\n\x04\x04\0\x02\x04\x12\x03:\x02\x16\x1aE\x20Goo\x20update\x20settin\ - gs.\x20Use\x20this\x20override\x20the\x20default\x20goo\x20patch\x20rule\ - s.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03:\x02\r\n\x0c\n\x05\x04\0\x02\ - \x04\x01\x12\x03:\x0e\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03:\x14\x15\ - \nX\n\x04\x04\0\x02\x05\x12\x03=\x02\x1c\x1aK\x20Zypper\x20update\x20set\ - tings.\x20Use\x20this\x20override\x20the\x20default\x20zypper\x20patch\ - \x20rules.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03=\x02\x10\n\x0c\n\x05\ - \x04\0\x02\x05\x01\x12\x03=\x11\x17\n\x0c\n\x05\x04\0\x02\x05\x03\x12\ - \x03=\x1a\x1b\nZ\n\x04\x04\0\x02\x06\x12\x03@\x02+\x1aM\x20Windows\x20up\ - date\x20settings.\x20Use\x20this\x20override\x20the\x20default\x20window\ - s\x20patch\x20rules.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03@\x02\x17\n\ - \x0c\n\x05\x04\0\x02\x06\x01\x12\x03@\x18&\n\x0c\n\x05\x04\0\x02\x06\x03\ - \x12\x03@)*\n;\n\x04\x04\0\x02\x07\x12\x03C\x02\x18\x1a.\x20The\x20ExecS\ - tep\x20to\x20run\x20before\x20the\x20patch\x20update.\n\n\x0c\n\x05\x04\ - \0\x02\x07\x06\x12\x03C\x02\n\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03C\x0b\ - \x13\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03C\x16\x17\n:\n\x04\x04\0\x02\ - \x08\x12\x03F\x02\x19\x1a-\x20The\x20ExecStep\x20to\x20run\x20after\x20t\ - he\x20patch\x20update.\n\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03F\x02\n\n\ - \x0c\n\x05\x04\0\x02\x08\x01\x12\x03F\x0b\x14\n\x0c\n\x05\x04\0\x02\x08\ - \x03\x12\x03F\x17\x18\nM\n\x04\x04\0\x02\t\x12\x03I\x02\"\x1a@\x20Allows\ - \x20the\x20patch\x20job\x20to\x20run\x20on\x20Managed\x20instance\x20gro\ - ups\x20(MIGs).\n\n\x0c\n\x05\x04\0\x02\t\x05\x12\x03I\x02\x06\n\x0c\n\ - \x05\x04\0\x02\t\x01\x12\x03I\x07\x1c\n\x0c\n\x05\x04\0\x02\t\x03\x12\ - \x03I\x1f!\n\x9f\x01\n\x02\x04\x01\x12\x04N\0g\x01\x1a\x92\x01\x20Apt\ - \x20patching\x20will\x20be\x20performed\x20by\x20executing\x20`apt-get\ - \x20update\x20&&\x20apt-get\n\x20upgrade`.\x20Additional\x20options\x20c\ - an\x20be\x20set\x20to\x20control\x20how\x20this\x20is\x20executed.\n\n\n\ - \n\x03\x04\x01\x01\x12\x03N\x08\x13\n\x1f\n\x04\x04\x01\x04\0\x12\x04P\ - \x02Y\x03\x1a\x11\x20Apt\x20patch\x20type.\n\n\x0c\n\x05\x04\x01\x04\0\ - \x01\x12\x03P\x07\x0b\n7\n\x06\x04\x01\x04\0\x02\0\x12\x03R\x04\x19\x1a(\ - \x20By\x20default,\x20upgrade\x20will\x20be\x20performed.\n\n\x0e\n\x07\ - \x04\x01\x04\0\x02\0\x01\x12\x03R\x04\x14\n\x0e\n\x07\x04\x01\x04\0\x02\ - \0\x02\x12\x03R\x17\x18\n-\n\x06\x04\x01\x04\0\x02\x01\x12\x03U\x04\r\ - \x1a\x1e\x20Runs\x20`apt-get\x20dist-upgrade`.\n\n\x0e\n\x07\x04\x01\x04\ - \0\x02\x01\x01\x12\x03U\x04\x08\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\ - \x12\x03U\x0b\x0c\n(\n\x06\x04\x01\x04\0\x02\x02\x12\x03X\x04\x10\x1a\ - \x19\x20Runs\x20`apt-get\x20upgrade`.\n\n\x0e\n\x07\x04\x01\x04\0\x02\ - \x02\x01\x12\x03X\x04\x0b\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03X\ - \x0e\x0f\nr\n\x04\x04\x01\x02\0\x12\x03]\x02\x10\x1ae\x20By\x20changing\ - \x20the\x20type\x20to\x20DIST,\x20the\x20patching\x20will\x20be\x20perfo\ - rmed\n\x20using\x20`apt-get\x20dist-upgrade`\x20instead.\n\n\x0c\n\x05\ - \x04\x01\x02\0\x06\x12\x03]\x02\x06\n\x0c\n\x05\x04\x01\x02\0\x01\x12\ - \x03]\x07\x0b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03]\x0e\x0f\n7\n\x04\ - \x04\x01\x02\x01\x12\x03`\x02\x1f\x1a*\x20List\x20of\x20packages\x20to\ - \x20exclude\x20from\x20update.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03\ - `\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03`\x0b\x11\n\x0c\n\x05\x04\ - \x01\x02\x01\x01\x12\x03`\x12\x1a\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ - \x03`\x1d\x1e\n\xf6\x01\n\x04\x04\x01\x02\x02\x12\x03f\x02)\x1a\xe8\x01\ - \x20An\x20exclusive\x20list\x20of\x20packages\x20to\x20be\x20updated.\ - \x20These\x20are\x20the\x20only\x20packages\n\x20that\x20will\x20be\x20u\ - pdated.\x20If\x20these\x20packages\x20are\x20not\x20installed,\x20they\ - \x20will\x20be\n\x20ignored.\x20This\x20field\x20cannot\x20be\x20specifi\ - ed\x20with\x20any\x20other\x20patch\x20configuration\n\x20fields.\n\n\ - \x0c\n\x05\x04\x01\x02\x02\x04\x12\x03f\x02\n\n\x0c\n\x05\x04\x01\x02\ - \x02\x05\x12\x03f\x0b\x11\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03f\x12$\ - \n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03f'(\n\xc5\x01\n\x02\x04\x02\x12\ - \x04m\0~\x01\x1a\xb8\x01\x20Yum\x20patching\x20will\x20be\x20performed\ - \x20by\x20executing\x20`yum\x20update`.\x20Additional\x20options\n\x20ca\ - n\x20be\x20set\x20to\x20control\x20how\x20this\x20is\x20executed.\n\n\ - \x20Note\x20that\x20not\x20all\x20settings\x20are\x20supported\x20on\x20\ - all\x20platforms.\n\n\n\n\x03\x04\x02\x01\x12\x03m\x08\x13\n[\n\x04\x04\ - \x02\x02\0\x12\x03p\x02\x14\x1aN\x20Adds\x20the\x20`--security`\x20flag\ - \x20to\x20`yum\x20update`.\x20Not\x20supported\x20on\n\x20all\x20platfor\ - ms.\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03p\x02\x06\n\x0c\n\x05\x04\x02\ - \x02\0\x01\x12\x03p\x07\x0f\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03p\x12\ - \x13\nD\n\x04\x04\x02\x02\x01\x12\x03s\x02\x13\x1a7\x20Will\x20cause\x20\ - patch\x20to\x20run\x20`yum\x20update-minimal`\x20instead.\n\n\x0c\n\x05\ - \x04\x02\x02\x01\x05\x12\x03s\x02\x06\n\x0c\n\x05\x04\x02\x02\x01\x01\ - \x12\x03s\x07\x0e\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03s\x11\x12\n{\n\ - \x04\x04\x02\x02\x02\x12\x03w\x02\x1f\x1an\x20List\x20of\x20packages\x20\ - to\x20exclude\x20from\x20update.\x20These\x20packages\x20will\x20be\x20e\ - xcluded\x20by\n\x20using\x20the\x20yum\x20`--exclude`\x20flag.\n\n\x0c\n\ - \x05\x04\x02\x02\x02\x04\x12\x03w\x02\n\n\x0c\n\x05\x04\x02\x02\x02\x05\ - \x12\x03w\x0b\x11\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03w\x12\x1a\n\x0c\ - \n\x05\x04\x02\x02\x02\x03\x12\x03w\x1d\x1e\n\xf8\x01\n\x04\x04\x02\x02\ - \x03\x12\x03}\x02)\x1a\xea\x01\x20An\x20exclusive\x20list\x20of\x20packa\ - ges\x20to\x20be\x20updated.\x20These\x20are\x20the\x20only\x20packages\n\ - \x20that\x20will\x20be\x20updated.\x20If\x20these\x20packages\x20are\x20\ - not\x20installed,\x20they\x20will\x20be\n\x20ignored.\x20This\x20field\ - \x20must\x20not\x20be\x20specified\x20with\x20any\x20other\x20patch\n\ - \x20configuration\x20fields.\n\n\x0c\n\x05\x04\x02\x02\x03\x04\x12\x03}\ - \x02\n\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03}\x0b\x11\n\x0c\n\x05\x04\ - \x02\x02\x03\x01\x12\x03}\x12$\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03}'\ - (\nH\n\x02\x04\x03\x12\x06\x81\x01\0\x83\x01\x01\x1a:\x20Googet\x20patch\ - ing\x20is\x20performed\x20by\x20running\x20`googet\x20update`.\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\x81\x01\x08\x13\n|\n\x02\x04\x04\x12\x06\x87\ - \x01\0\x9d\x01\x01\x1an\x20Zypper\x20patching\x20is\x20performed\x20by\ - \x20running\x20`zypper\x20patch`.\n\x20See\x20also\x20https://en.opensus\ - e.org/SDB:Zypper_manual.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x87\x01\x08\ - \x16\nB\n\x04\x04\x04\x02\0\x12\x04\x89\x01\x02\x19\x1a4\x20Adds\x20the\ - \x20`--with-optional`\x20flag\x20to\x20`zypper\x20patch`.\n\n\r\n\x05\ - \x04\x04\x02\0\x05\x12\x04\x89\x01\x02\x06\n\r\n\x05\x04\x04\x02\0\x01\ - \x12\x04\x89\x01\x07\x14\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x89\x01\x17\ - \x18\nA\n\x04\x04\x04\x02\x01\x12\x04\x8c\x01\x02\x17\x1a3\x20Adds\x20th\ - e\x20`--with-update`\x20flag,\x20to\x20`zypper\x20patch`.\n\n\r\n\x05\ - \x04\x04\x02\x01\x05\x12\x04\x8c\x01\x02\x06\n\r\n\x05\x04\x04\x02\x01\ - \x01\x12\x04\x8c\x01\x07\x12\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\x8c\ - \x01\x15\x16\nz\n\x04\x04\x04\x02\x02\x12\x04\x90\x01\x02!\x1al\x20Insta\ - ll\x20only\x20patches\x20with\x20these\x20categories.\n\x20Common\x20cat\ - egories\x20include\x20security,\x20recommended,\x20and\x20feature.\n\n\r\ - \n\x05\x04\x04\x02\x02\x04\x12\x04\x90\x01\x02\n\n\r\n\x05\x04\x04\x02\ - \x02\x05\x12\x04\x90\x01\x0b\x11\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\ - \x90\x01\x12\x1c\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x90\x01\x1f\x20\n\ - ~\n\x04\x04\x04\x02\x03\x12\x04\x94\x01\x02!\x1ap\x20Install\x20only\x20\ - patches\x20with\x20these\x20severities.\n\x20Common\x20severities\x20inc\ - lude\x20critical,\x20important,\x20moderate,\x20and\x20low.\n\n\r\n\x05\ - \x04\x04\x02\x03\x04\x12\x04\x94\x01\x02\n\n\r\n\x05\x04\x04\x02\x03\x05\ - \x12\x04\x94\x01\x0b\x11\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x94\x01\ - \x12\x1c\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\x94\x01\x1f\x20\n7\n\x04\ - \x04\x04\x02\x04\x12\x04\x97\x01\x02\x1f\x1a)\x20List\x20of\x20patches\ - \x20to\x20exclude\x20from\x20update.\n\n\r\n\x05\x04\x04\x02\x04\x04\x12\ - \x04\x97\x01\x02\n\n\r\n\x05\x04\x04\x02\x04\x05\x12\x04\x97\x01\x0b\x11\ - \n\r\n\x05\x04\x04\x02\x04\x01\x12\x04\x97\x01\x12\x1a\n\r\n\x05\x04\x04\ - \x02\x04\x03\x12\x04\x97\x01\x1d\x1e\n\xe8\x01\n\x04\x04\x04\x02\x05\x12\ - \x04\x9c\x01\x02(\x1a\xd9\x01\x20An\x20exclusive\x20list\x20of\x20patche\ - s\x20to\x20be\x20updated.\x20These\x20are\x20the\x20only\x20patches\n\ - \x20that\x20will\x20be\x20installed\x20using\x20'zypper\x20patch\x20patc\ - h:'\x20command.\n\x20This\x20field\x20must\x20not\x20be\x20u\ - sed\x20with\x20any\x20other\x20patch\x20configuration\x20fields.\n\n\r\n\ - \x05\x04\x04\x02\x05\x04\x12\x04\x9c\x01\x02\n\n\r\n\x05\x04\x04\x02\x05\ - \x05\x12\x04\x9c\x01\x0b\x11\n\r\n\x05\x04\x04\x02\x05\x01\x12\x04\x9c\ - \x01\x12#\n\r\n\x05\x04\x04\x02\x05\x03\x12\x04\x9c\x01&'\nM\n\x02\x04\ - \x05\x12\x06\xa0\x01\0\xe0\x01\x01\x1a?\x20Windows\x20patching\x20is\x20\ - performed\x20using\x20the\x20Windows\x20Update\x20Agent.\n\n\x0b\n\x03\ - \x04\x05\x01\x12\x04\xa0\x01\x08\x1d\n\xc6\x01\n\x04\x04\x05\x04\0\x12\ - \x06\xa4\x01\x02\xd3\x01\x03\x1a\xb5\x01\x20Microsoft\x20Windows\x20upda\ - te\x20classifications\x20as\x20defined\x20in\n\x20[1]\n\x20https://suppo\ - rt.microsoft.com/en-us/help/824684/description-of-the-standard-terminolo\ - gy-that-is-used-to-describe-micro\n\n\r\n\x05\x04\x05\x04\0\x01\x12\x04\ - \xa4\x01\x07\x15\nS\n\x06\x04\x05\x04\0\x02\0\x12\x04\xa6\x01\x04#\x1aC\ - \x20Invalid.\x20If\x20classifications\x20are\x20included,\x20they\x20mus\ - t\x20be\x20specified.\n\n\x0f\n\x07\x04\x05\x04\0\x02\0\x01\x12\x04\xa6\ - \x01\x04\x1e\n\x0f\n\x07\x04\x05\x04\0\x02\0\x02\x12\x04\xa6\x01!\"\nz\n\ - \x06\x04\x05\x04\0\x02\x01\x12\x04\xaa\x01\x04\x11\x1aj\x20\"A\x20widely\ - \x20released\x20fix\x20for\x20a\x20specific\x20problem\x20that\x20addres\ - ses\x20a\x20critical,\n\x20non-security-related\x20bug.\"\x20[1]\n\n\x0f\ - \n\x07\x04\x05\x04\0\x02\x01\x01\x12\x04\xaa\x01\x04\x0c\n\x0f\n\x07\x04\ - \x05\x04\0\x02\x01\x02\x12\x04\xaa\x01\x0f\x10\n\x8d\x02\n\x06\x04\x05\ - \x04\0\x02\x02\x12\x04\xb0\x01\x04\x11\x1a\xfc\x01\x20\"A\x20widely\x20r\ - eleased\x20fix\x20for\x20a\x20product-specific,\x20security-related\n\ - \x20vulnerability.\x20Security\x20vulnerabilities\x20are\x20rated\x20by\ - \x20their\x20severity.\x20The\n\x20severity\x20rating\x20is\x20indicated\ - \x20in\x20the\x20Microsoft\x20security\x20bulletin\x20as\n\x20critical,\ - \x20important,\x20moderate,\x20or\x20low.\"\x20[1]\n\n\x0f\n\x07\x04\x05\ - \x04\0\x02\x02\x01\x12\x04\xb0\x01\x04\x0c\n\x0f\n\x07\x04\x05\x04\0\x02\ - \x02\x02\x12\x04\xb0\x01\x0f\x10\n\x96\x02\n\x06\x04\x05\x04\0\x02\x03\ - \x12\x04\xb6\x01\x04\x13\x1a\x85\x02\x20\"A\x20widely\x20released\x20and\ - \x20frequent\x20software\x20update\x20that\x20contains\x20additions\n\ - \x20to\x20a\x20product\xe2\x80\x99s\x20definition\x20database.\x20Defini\ - tion\x20databases\x20are\x20often\x20used\n\x20to\x20detect\x20objects\ - \x20that\x20have\x20specific\x20attributes,\x20such\x20as\x20malicious\ - \x20code,\n\x20phishing\x20websites,\x20or\x20junk\x20mail.\"\x20[1]\n\n\ - \x0f\n\x07\x04\x05\x04\0\x02\x03\x01\x12\x04\xb6\x01\x04\x0e\n\x0f\n\x07\ - \x04\x05\x04\0\x02\x03\x02\x12\x04\xb6\x01\x11\x12\nP\n\x06\x04\x05\x04\ - \0\x02\x04\x12\x04\xb9\x01\x04\x0f\x1a@\x20\"Software\x20that\x20control\ - s\x20the\x20input\x20and\x20output\x20of\x20a\x20device.\"\x20[1]\n\n\ - \x0f\n\x07\x04\x05\x04\0\x02\x04\x01\x12\x04\xb9\x01\x04\n\n\x0f\n\x07\ - \x04\x05\x04\0\x02\x04\x02\x12\x04\xb9\x01\r\x0e\n\xb8\x01\n\x06\x04\x05\ - \x04\0\x02\x05\x12\x04\xbe\x01\x04\x15\x1a\xa7\x01\x20\"New\x20product\ - \x20functionality\x20that\x20is\x20first\x20distributed\x20outside\x20th\ - e\x20context\n\x20of\x20a\x20product\x20release\x20and\x20that\x20is\x20\ - typically\x20included\x20in\x20the\x20next\x20full\n\x20product\x20relea\ - se.\"\x20[1]\n\n\x0f\n\x07\x04\x05\x04\0\x02\x05\x01\x12\x04\xbe\x01\x04\ - \x10\n\x0f\n\x07\x04\x05\x04\0\x02\x05\x02\x12\x04\xbe\x01\x13\x14\n\xda\ - \x02\n\x06\x04\x05\x04\0\x02\x06\x12\x04\xc5\x01\x04\x15\x1a\xc9\x02\x20\ - \"A\x20tested,\x20cumulative\x20set\x20of\x20all\x20hotfixes,\x20securit\ - y\x20updates,\x20critical\n\x20updates,\x20and\x20updates.\x20Additional\ - ly,\x20service\x20packs\x20may\x20contain\x20additional\n\x20fixes\x20fo\ - r\x20problems\x20that\x20are\x20found\x20internally\x20since\x20the\x20r\ - elease\x20of\x20the\n\x20product.\x20Service\x20packs\x20my\x20also\x20c\ - ontain\x20a\x20limited\x20number\x20of\n\x20customer-requested\x20design\ - \x20changes\x20or\x20features.\"\x20[1]\n\n\x0f\n\x07\x04\x05\x04\0\x02\ - \x06\x01\x12\x04\xc5\x01\x04\x10\n\x0f\n\x07\x04\x05\x04\0\x02\x06\x02\ - \x12\x04\xc5\x01\x13\x14\nX\n\x06\x04\x05\x04\0\x02\x07\x12\x04\xc8\x01\ - \x04\r\x1aH\x20\"A\x20utility\x20or\x20feature\x20that\x20helps\x20compl\ - ete\x20a\x20task\x20or\x20set\x20of\x20tasks.\"\x20[1]\n\n\x0f\n\x07\x04\ - \x05\x04\0\x02\x07\x01\x12\x04\xc8\x01\x04\x08\n\x0f\n\x07\x04\x05\x04\0\ - \x02\x07\x02\x12\x04\xc8\x01\x0b\x0c\n\xa9\x02\n\x06\x04\x05\x04\0\x02\ - \x08\x12\x04\xce\x01\x04\x16\x1a\x98\x02\x20\"A\x20tested,\x20cumulative\ - \x20set\x20of\x20hotfixes,\x20security\x20updates,\x20critical\n\x20upda\ - tes,\x20and\x20updates\x20that\x20are\x20packaged\x20together\x20for\x20\ - easy\x20deployment.\x20A\n\x20rollup\x20generally\x20targets\x20a\x20spe\ - cific\x20area,\x20such\x20as\x20security,\x20or\x20a\n\x20component\x20o\ - f\x20a\x20product,\x20such\x20as\x20Internet\x20Information\x20Services\ - \x20(IIS).\"\x20[1]\n\n\x0f\n\x07\x04\x05\x04\0\x02\x08\x01\x12\x04\xce\ - \x01\x04\x11\n\x0f\n\x07\x04\x05\x04\0\x02\x08\x02\x12\x04\xce\x01\x14\ - \x15\n\x83\x01\n\x06\x04\x05\x04\0\x02\t\x12\x04\xd2\x01\x04\x0f\x1as\ - \x20\"A\x20widely\x20released\x20fix\x20for\x20a\x20specific\x20problem.\ - \x20An\x20update\x20addresses\x20a\n\x20noncritical,\x20non-security-rel\ - ated\x20bug.\"\x20[1]\n\n\x0f\n\x07\x04\x05\x04\0\x02\t\x01\x12\x04\xd2\ - \x01\x04\n\n\x0f\n\x07\x04\x05\x04\0\x02\t\x02\x12\x04\xd2\x01\r\x0e\ns\ - \n\x04\x04\x05\x02\0\x12\x04\xd7\x01\x02.\x1ae\x20Only\x20apply\x20updat\ - es\x20of\x20these\x20windows\x20update\x20classifications.\x20If\x20empt\ - y,\x20all\n\x20updates\x20will\x20be\x20applied.\n\n\r\n\x05\x04\x05\x02\ - \0\x04\x12\x04\xd7\x01\x02\n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xd7\x01\ - \x0b\x19\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd7\x01\x1a)\n\r\n\x05\x04\ - \x05\x02\0\x03\x12\x04\xd7\x01,-\n3\n\x04\x04\x05\x02\x01\x12\x04\xda\ - \x01\x02\x1f\x1a%\x20List\x20of\x20KBs\x20to\x20exclude\x20from\x20updat\ - e.\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04\xda\x01\x02\n\n\r\n\x05\x04\ - \x05\x02\x01\x05\x12\x04\xda\x01\x0b\x11\n\r\n\x05\x04\x05\x02\x01\x01\ - \x12\x04\xda\x01\x12\x1a\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xda\x01\ - \x1d\x1e\n\xa8\x01\n\x04\x04\x05\x02\x02\x12\x04\xdf\x01\x02(\x1a\x99\ - \x01\x20An\x20exclusive\x20list\x20of\x20kbs\x20to\x20be\x20updated.\x20\ - These\x20are\x20the\x20only\x20patches\n\x20that\x20will\x20be\x20update\ - d.\x20This\x20field\x20must\x20not\x20be\x20used\x20with\x20other\n\x20p\ - atch\x20configurations.\n\n\r\n\x05\x04\x05\x02\x02\x04\x12\x04\xdf\x01\ - \x02\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xdf\x01\x0b\x11\n\r\n\x05\ - \x04\x05\x02\x02\x01\x12\x04\xdf\x01\x12#\n\r\n\x05\x04\x05\x02\x02\x03\ - \x12\x04\xdf\x01&'\nQ\n\x02\x04\x06\x12\x06\xe3\x01\0\xe7\x01\x01\x1aC\ - \x20The\x20strategy\x20for\x20retrying\x20failed\x20patches\x20during\ - \x20the\x20patch\x20window.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xe3\x01\ - \x08\x15\n^\n\x04\x04\x06\x02\0\x12\x04\xe6\x01\x02\x13\x1aP\x20If\x20tr\ - ue,\x20the\x20agent\x20will\x20continue\x20to\x20try\x20and\x20patch\x20\ - until\x20the\x20window\x20has\n\x20ended.\n\n\r\n\x05\x04\x06\x02\0\x05\ - \x12\x04\xe6\x01\x02\x06\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xe6\x01\x07\ - \x0e\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xe6\x01\x11\x12\n>\n\x02\x04\ - \x07\x12\x06\xea\x01\0\xf0\x01\x01\x1a0\x20A\x20step\x20that\x20runs\x20\ - an\x20executable\x20for\x20a\x20PatchJob.\n\n\x0b\n\x03\x04\x07\x01\x12\ - \x04\xea\x01\x08\x10\nN\n\x04\x04\x07\x02\0\x12\x04\xec\x01\x02,\x1a@\ - \x20The\x20ExecStepConfig\x20for\x20all\x20Linux\x20VMs\x20targeted\x20b\ - y\x20the\x20PatchJob.\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\xec\x01\x02\ - \x10\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xec\x01\x11'\n\r\n\x05\x04\x07\ - \x02\0\x03\x12\x04\xec\x01*+\nP\n\x04\x04\x07\x02\x01\x12\x04\xef\x01\ - \x02.\x1aB\x20The\x20ExecStepConfig\x20for\x20all\x20Windows\x20VMs\x20t\ - argeted\x20by\x20the\x20PatchJob.\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\ - \x04\xef\x01\x02\x10\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xef\x01\x11)\ - \n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xef\x01,-\n6\n\x02\x04\x08\x12\ - \x06\xf3\x01\0\x98\x02\x01\x1a(\x20Common\x20configurations\x20for\x20an\ - \x20ExecStep.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xf3\x01\x08\x16\n=\n\x04\ - \x04\x08\x04\0\x12\x06\xf5\x01\x02\x84\x02\x03\x1a-\x20The\x20interprete\ - r\x20used\x20to\x20execute\x20the\x20a\x20file.\n\n\r\n\x05\x04\x08\x04\ - \0\x01\x12\x04\xf5\x01\x07\x12\nI\n\x06\x04\x08\x04\0\x02\0\x12\x04\xf7\ - \x01\x04\x20\x1a9\x20Deprecated,\x20defaults\x20to\x20NONE\x20for\x20com\ - patibility\x20reasons.\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x01\x12\x04\xf7\ - \x01\x04\x1b\n\x0f\n\x07\x04\x08\x04\0\x02\0\x02\x12\x04\xf7\x01\x1e\x1f\ - \n\xa9\x01\n\x06\x04\x08\x04\0\x02\x01\x12\x04\xfc\x01\x04\r\x1a\x98\x01\ - \x20Invalid\x20for\x20a\x20Windows\x20ExecStepConfig.\x20For\x20a\x20Lin\ - ux\x20ExecStepConfig,\x20the\n\x20interpreter\x20will\x20be\x20parsed\ - \x20from\x20the\x20shebang\x20line\x20of\x20the\x20script\x20if\n\x20uns\ - pecified.\n\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x01\x12\x04\xfc\x01\x04\ - \x08\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x02\x12\x04\xfc\x01\x0b\x0c\nb\n\ - \x06\x04\x08\x04\0\x02\x02\x12\x04\x80\x02\x04\x0e\x1aR\x20Indicates\x20\ - that\x20the\x20script\x20will\x20be\x20run\x20with\x20/bin/sh\x20on\x20L\ - inux\x20and\x20cmd\n\x20on\x20windows.\n\n\x0f\n\x07\x04\x08\x04\0\x02\ - \x02\x01\x12\x04\x80\x02\x04\t\n\x0f\n\x07\x04\x08\x04\0\x02\x02\x02\x12\ - \x04\x80\x02\x0c\r\nF\n\x06\x04\x08\x04\0\x02\x03\x12\x04\x83\x02\x04\ - \x13\x1a6\x20Indicates\x20that\x20the\x20file\x20will\x20be\x20run\x20wi\ - th\x20PowerShell.\n\n\x0f\n\x07\x04\x08\x04\0\x02\x03\x01\x12\x04\x83\ - \x02\x04\x0e\n\x0f\n\x07\x04\x08\x04\0\x02\x03\x02\x12\x04\x83\x02\x11\ - \x12\n-\n\x04\x04\x08\x08\0\x12\x06\x87\x02\x02\x8d\x02\x03\x1a\x1d\x20L\ - ocation\x20of\x20the\x20executable.\n\n\r\n\x05\x04\x08\x08\0\x01\x12\ - \x04\x87\x02\x08\x12\n=\n\x04\x04\x08\x02\0\x12\x04\x89\x02\x04\x1a\x1a/\ - \x20An\x20absolute\x20path\x20to\x20the\x20executable\x20on\x20the\x20VM\ - .\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\x89\x02\x04\n\n\r\n\x05\x04\x08\ - \x02\0\x01\x12\x04\x89\x02\x0b\x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\ - \x89\x02\x18\x19\n7\n\x04\x04\x08\x02\x01\x12\x04\x8c\x02\x04\x1d\x1a)\ - \x20A\x20GCS\x20object\x20containing\x20the\x20executable.\n\n\r\n\x05\ - \x04\x08\x02\x01\x06\x12\x04\x8c\x02\x04\r\n\r\n\x05\x04\x08\x02\x01\x01\ - \x12\x04\x8c\x02\x0e\x18\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\x8c\x02\ - \x1b\x1c\nw\n\x04\x04\x08\x02\x02\x12\x04\x91\x02\x02+\x1ai\x20Defaults\ - \x20to\x20[0].\x20A\x20list\x20of\x20possible\x20return\x20values\x20tha\ - t\x20the\n\x20execution\x20can\x20return\x20to\x20indicate\x20a\x20succe\ - ss.\n\n\r\n\x05\x04\x08\x02\x02\x04\x12\x04\x91\x02\x02\n\n\r\n\x05\x04\ - \x08\x02\x02\x05\x12\x04\x91\x02\x0b\x10\n\r\n\x05\x04\x08\x02\x02\x01\ - \x12\x04\x91\x02\x11&\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\x91\x02)*\n\ - \x8b\x02\n\x04\x04\x08\x02\x03\x12\x04\x97\x02\x02\x1e\x1a\xfc\x01\x20Th\ - e\x20script\x20interpreter\x20to\x20use\x20to\x20run\x20the\x20script.\ - \x20If\x20no\x20interpreter\x20is\n\x20specified\x20the\x20script\x20wil\ - l\x20be\x20executed\x20directly,\x20which\x20will\x20likely\n\x20only\ - \x20succeed\x20for\x20scripts\x20with\x20shebang\x20lines.\n\x20[Wikiped\ - ia\x20shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).\n\n\r\n\ - \x05\x04\x08\x02\x03\x06\x12\x04\x97\x02\x02\r\n\r\n\x05\x04\x08\x02\x03\ - \x01\x12\x04\x97\x02\x0e\x19\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\x97\ - \x02\x1c\x1d\n*\n\x02\x04\t\x12\x06\x9b\x02\0\xa5\x02\x01\x1a\x1c\x20GCS\ - \x20object\x20representation.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9b\x02\ - \x08\x11\n)\n\x04\x04\t\x02\0\x12\x04\x9d\x02\x02\x14\x1a\x1b\x20Bucket\ - \x20of\x20the\x20GCS\x20object.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x9d\ - \x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x9d\x02\t\x0f\n\r\n\x05\ - \x04\t\x02\0\x03\x12\x04\x9d\x02\x12\x13\n'\n\x04\x04\t\x02\x01\x12\x04\ - \xa0\x02\x02\x14\x1a\x19\x20Name\x20of\x20the\x20GCS\x20object.\n\n\r\n\ - \x05\x04\t\x02\x01\x05\x12\x04\xa0\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\ - \x01\x12\x04\xa0\x02\t\x0f\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xa0\x02\ - \x12\x13\n\x8a\x01\n\x04\x04\t\x02\x02\x12\x04\xa4\x02\x02\x1e\x1a|\x20G\ - eneration\x20number\x20of\x20the\x20GCS\x20object.\x20This\x20is\x20used\ - \x20to\x20ensure\x20that\x20the\n\x20ExecStep\x20specified\x20by\x20this\ - \x20PatchJob\x20does\x20not\x20change.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\ - \x04\xa4\x02\x02\x07\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xa4\x02\x08\x19\ - \n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xa4\x02\x1c\x1db\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/tasks.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/tasks.rs deleted file mode 100644 index e5b7fa0..0000000 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/tasks.rs +++ /dev/null @@ -1,3401 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/agentendpoint/v1/tasks.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Task { - // message fields - pub task_id: ::std::string::String, - pub task_type: TaskType, - pub task_directive: TaskDirective, - pub service_labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // message oneof groups - pub task_details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Task { - fn default() -> &'a Task { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Task_oneof_task_details { - apply_patches_task(ApplyPatchesTask), - exec_step_task(ExecStepTask), - apply_config_task(ApplyConfigTask), -} - -impl Task { - pub fn new() -> Task { - ::std::default::Default::default() - } - - // string task_id = 1; - - - pub fn get_task_id(&self) -> &str { - &self.task_id - } - pub fn clear_task_id(&mut self) { - self.task_id.clear(); - } - - // Param is passed by value, moved - pub fn set_task_id(&mut self, v: ::std::string::String) { - self.task_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_task_id(&mut self) -> &mut ::std::string::String { - &mut self.task_id - } - - // Take field - pub fn take_task_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.task_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.TaskType task_type = 2; - - - pub fn get_task_type(&self) -> TaskType { - self.task_type - } - pub fn clear_task_type(&mut self) { - self.task_type = TaskType::TASK_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_task_type(&mut self, v: TaskType) { - self.task_type = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.TaskDirective task_directive = 3; - - - pub fn get_task_directive(&self) -> TaskDirective { - self.task_directive - } - pub fn clear_task_directive(&mut self) { - self.task_directive = TaskDirective::TASK_DIRECTIVE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_task_directive(&mut self, v: TaskDirective) { - self.task_directive = v; - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTask apply_patches_task = 4; - - - pub fn get_apply_patches_task(&self) -> &ApplyPatchesTask { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_patches_task(&mut self) { - self.task_details = ::std::option::Option::None; - } - - pub fn has_apply_patches_task(&self) -> bool { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_patches_task(&mut self, v: ApplyPatchesTask) { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_patches_task(&mut self) -> &mut ApplyPatchesTask { - if let ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(_)) = self.task_details { - } else { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(ApplyPatchesTask::new())); - } - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_patches_task(&mut self) -> ApplyPatchesTask { - if self.has_apply_patches_task() { - match self.task_details.take() { - ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(v)) => v, - _ => panic!(), - } - } else { - ApplyPatchesTask::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepTask exec_step_task = 5; - - - pub fn get_exec_step_task(&self) -> &ExecStepTask { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_step_task(&mut self) { - self.task_details = ::std::option::Option::None; - } - - pub fn has_exec_step_task(&self) -> bool { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_step_task(&mut self, v: ExecStepTask) { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_step_task(&mut self) -> &mut ExecStepTask { - if let ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(_)) = self.task_details { - } else { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(ExecStepTask::new())); - } - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_step_task(&mut self) -> ExecStepTask { - if self.has_exec_step_task() { - match self.task_details.take() { - ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(v)) => v, - _ => panic!(), - } - } else { - ExecStepTask::new() - } - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTask apply_config_task = 7; - - - pub fn get_apply_config_task(&self) -> &ApplyConfigTask { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apply_config_task(&mut self) { - self.task_details = ::std::option::Option::None; - } - - pub fn has_apply_config_task(&self) -> bool { - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apply_config_task(&mut self, v: ApplyConfigTask) { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(v)) - } - - // Mutable pointer to the field. - pub fn mut_apply_config_task(&mut self) -> &mut ApplyConfigTask { - if let ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(_)) = self.task_details { - } else { - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(ApplyConfigTask::new())); - } - match self.task_details { - ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apply_config_task(&mut self) -> ApplyConfigTask { - if self.has_apply_config_task() { - match self.task_details.take() { - ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(v)) => v, - _ => panic!(), - } - } else { - ApplyConfigTask::new() - } - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.Task.ServiceLabelsEntry service_labels = 6; - - - pub fn get_service_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.service_labels - } - pub fn clear_service_labels(&mut self) { - self.service_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_service_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.service_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_service_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.service_labels - } - - // Take field - pub fn take_service_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.service_labels, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for Task { - fn is_initialized(&self) -> bool { - if let Some(Task_oneof_task_details::apply_patches_task(ref v)) = self.task_details { - if !v.is_initialized() { - return false; - } - } - if let Some(Task_oneof_task_details::exec_step_task(ref v)) = self.task_details { - if !v.is_initialized() { - return false; - } - } - if let Some(Task_oneof_task_details::apply_config_task(ref v)) = self.task_details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.task_id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.task_type, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.task_directive, 3, &mut self.unknown_fields)? - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_patches_task(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::exec_step_task(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.task_details = ::std::option::Option::Some(Task_oneof_task_details::apply_config_task(is.read_message()?)); - }, - 6 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.service_labels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.task_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.task_id); - } - if self.task_type != TaskType::TASK_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.task_type); - } - if self.task_directive != TaskDirective::TASK_DIRECTIVE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.task_directive); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.service_labels); - if let ::std::option::Option::Some(ref v) = self.task_details { - match v { - &Task_oneof_task_details::apply_patches_task(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Task_oneof_task_details::exec_step_task(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Task_oneof_task_details::apply_config_task(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.task_id.is_empty() { - os.write_string(1, &self.task_id)?; - } - if self.task_type != TaskType::TASK_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.task_type))?; - } - if self.task_directive != TaskDirective::TASK_DIRECTIVE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.task_directive))?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(6, &self.service_labels, os)?; - if let ::std::option::Option::Some(ref v) = self.task_details { - match v { - &Task_oneof_task_details::apply_patches_task(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Task_oneof_task_details::exec_step_task(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Task_oneof_task_details::apply_config_task(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Task { - Task::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "task_id", - |m: &Task| { &m.task_id }, - |m: &mut Task| { &mut m.task_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "task_type", - |m: &Task| { &m.task_type }, - |m: &mut Task| { &mut m.task_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "task_directive", - |m: &Task| { &m.task_directive }, - |m: &mut Task| { &mut m.task_directive }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ApplyPatchesTask>( - "apply_patches_task", - Task::has_apply_patches_task, - Task::get_apply_patches_task, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ExecStepTask>( - "exec_step_task", - Task::has_exec_step_task, - Task::get_exec_step_task, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ApplyConfigTask>( - "apply_config_task", - Task::has_apply_config_task, - Task::get_apply_config_task, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "service_labels", - |m: &Task| { &m.service_labels }, - |m: &mut Task| { &mut m.service_labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Task", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Task { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Task::new) - } -} - -impl ::protobuf::Clear for Task { - fn clear(&mut self) { - self.task_id.clear(); - self.task_type = TaskType::TASK_TYPE_UNSPECIFIED; - self.task_directive = TaskDirective::TASK_DIRECTIVE_UNSPECIFIED; - self.task_details = ::std::option::Option::None; - self.task_details = ::std::option::Option::None; - self.task_details = ::std::option::Option::None; - self.service_labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Task { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Task { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyPatchesTask { - // message fields - pub patch_config: ::protobuf::SingularPtrField, - pub dry_run: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyPatchesTask { - fn default() -> &'a ApplyPatchesTask { - ::default_instance() - } -} - -impl ApplyPatchesTask { - pub fn new() -> ApplyPatchesTask { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.PatchConfig patch_config = 1; - - - pub fn get_patch_config(&self) -> &super::patch_jobs::PatchConfig { - self.patch_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_config(&mut self) { - self.patch_config.clear(); - } - - pub fn has_patch_config(&self) -> bool { - self.patch_config.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_config(&mut self, v: super::patch_jobs::PatchConfig) { - self.patch_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_config(&mut self) -> &mut super::patch_jobs::PatchConfig { - if self.patch_config.is_none() { - self.patch_config.set_default(); - } - self.patch_config.as_mut().unwrap() - } - - // Take field - pub fn take_patch_config(&mut self) -> super::patch_jobs::PatchConfig { - self.patch_config.take().unwrap_or_else(|| super::patch_jobs::PatchConfig::new()) - } - - // bool dry_run = 3; - - - pub fn get_dry_run(&self) -> bool { - self.dry_run - } - pub fn clear_dry_run(&mut self) { - self.dry_run = false; - } - - // Param is passed by value, moved - pub fn set_dry_run(&mut self, v: bool) { - self.dry_run = v; - } -} - -impl ::protobuf::Message for ApplyPatchesTask { - fn is_initialized(&self) -> bool { - for v in &self.patch_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_config)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.dry_run = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.patch_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.dry_run != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.patch_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.dry_run != false { - os.write_bool(3, self.dry_run)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyPatchesTask { - ApplyPatchesTask::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_config", - |m: &ApplyPatchesTask| { &m.patch_config }, - |m: &mut ApplyPatchesTask| { &mut m.patch_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "dry_run", - |m: &ApplyPatchesTask| { &m.dry_run }, - |m: &mut ApplyPatchesTask| { &mut m.dry_run }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyPatchesTask", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyPatchesTask { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyPatchesTask::new) - } -} - -impl ::protobuf::Clear for ApplyPatchesTask { - fn clear(&mut self) { - self.patch_config.clear(); - self.dry_run = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyPatchesTask { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyPatchesTask { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyPatchesTaskProgress { - // message fields - pub state: ApplyPatchesTaskProgress_State, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyPatchesTaskProgress { - fn default() -> &'a ApplyPatchesTaskProgress { - ::default_instance() - } -} - -impl ApplyPatchesTaskProgress { - pub fn new() -> ApplyPatchesTaskProgress { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskProgress.State state = 1; - - - pub fn get_state(&self) -> ApplyPatchesTaskProgress_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ApplyPatchesTaskProgress_State) { - self.state = v; - } -} - -impl ::protobuf::Message for ApplyPatchesTaskProgress { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyPatchesTaskProgress { - ApplyPatchesTaskProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ApplyPatchesTaskProgress| { &m.state }, - |m: &mut ApplyPatchesTaskProgress| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyPatchesTaskProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyPatchesTaskProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyPatchesTaskProgress::new) - } -} - -impl ::protobuf::Clear for ApplyPatchesTaskProgress { - fn clear(&mut self) { - self.state = ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyPatchesTaskProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyPatchesTaskProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ApplyPatchesTaskProgress_State { - STATE_UNSPECIFIED = 0, - STARTED = 4, - DOWNLOADING_PATCHES = 1, - APPLYING_PATCHES = 2, - REBOOTING = 3, -} - -impl ::protobuf::ProtobufEnum for ApplyPatchesTaskProgress_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED), - 4 => ::std::option::Option::Some(ApplyPatchesTaskProgress_State::STARTED), - 1 => ::std::option::Option::Some(ApplyPatchesTaskProgress_State::DOWNLOADING_PATCHES), - 2 => ::std::option::Option::Some(ApplyPatchesTaskProgress_State::APPLYING_PATCHES), - 3 => ::std::option::Option::Some(ApplyPatchesTaskProgress_State::REBOOTING), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ApplyPatchesTaskProgress_State] = &[ - ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED, - ApplyPatchesTaskProgress_State::STARTED, - ApplyPatchesTaskProgress_State::DOWNLOADING_PATCHES, - ApplyPatchesTaskProgress_State::APPLYING_PATCHES, - ApplyPatchesTaskProgress_State::REBOOTING, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ApplyPatchesTaskProgress.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ApplyPatchesTaskProgress_State { -} - -impl ::std::default::Default for ApplyPatchesTaskProgress_State { - fn default() -> Self { - ApplyPatchesTaskProgress_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyPatchesTaskProgress_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyPatchesTaskOutput { - // message fields - pub state: ApplyPatchesTaskOutput_State, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyPatchesTaskOutput { - fn default() -> &'a ApplyPatchesTaskOutput { - ::default_instance() - } -} - -impl ApplyPatchesTaskOutput { - pub fn new() -> ApplyPatchesTaskOutput { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskOutput.State state = 1; - - - pub fn get_state(&self) -> ApplyPatchesTaskOutput_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ApplyPatchesTaskOutput_State) { - self.state = v; - } -} - -impl ::protobuf::Message for ApplyPatchesTaskOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyPatchesTaskOutput { - ApplyPatchesTaskOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ApplyPatchesTaskOutput| { &m.state }, - |m: &mut ApplyPatchesTaskOutput| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyPatchesTaskOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyPatchesTaskOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyPatchesTaskOutput::new) - } -} - -impl ::protobuf::Clear for ApplyPatchesTaskOutput { - fn clear(&mut self) { - self.state = ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyPatchesTaskOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyPatchesTaskOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ApplyPatchesTaskOutput_State { - STATE_UNSPECIFIED = 0, - SUCCEEDED = 1, - SUCCEEDED_REBOOT_REQUIRED = 2, - FAILED = 3, -} - -impl ::protobuf::ProtobufEnum for ApplyPatchesTaskOutput_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ApplyPatchesTaskOutput_State::SUCCEEDED), - 2 => ::std::option::Option::Some(ApplyPatchesTaskOutput_State::SUCCEEDED_REBOOT_REQUIRED), - 3 => ::std::option::Option::Some(ApplyPatchesTaskOutput_State::FAILED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ApplyPatchesTaskOutput_State] = &[ - ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED, - ApplyPatchesTaskOutput_State::SUCCEEDED, - ApplyPatchesTaskOutput_State::SUCCEEDED_REBOOT_REQUIRED, - ApplyPatchesTaskOutput_State::FAILED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ApplyPatchesTaskOutput.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ApplyPatchesTaskOutput_State { -} - -impl ::std::default::Default for ApplyPatchesTaskOutput_State { - fn default() -> Self { - ApplyPatchesTaskOutput_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyPatchesTaskOutput_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStepTask { - // message fields - pub exec_step: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStepTask { - fn default() -> &'a ExecStepTask { - ::default_instance() - } -} - -impl ExecStepTask { - pub fn new() -> ExecStepTask { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStep exec_step = 1; - - - pub fn get_exec_step(&self) -> &super::patch_jobs::ExecStep { - self.exec_step.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_exec_step(&mut self) { - self.exec_step.clear(); - } - - pub fn has_exec_step(&self) -> bool { - self.exec_step.is_some() - } - - // Param is passed by value, moved - pub fn set_exec_step(&mut self, v: super::patch_jobs::ExecStep) { - self.exec_step = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_step(&mut self) -> &mut super::patch_jobs::ExecStep { - if self.exec_step.is_none() { - self.exec_step.set_default(); - } - self.exec_step.as_mut().unwrap() - } - - // Take field - pub fn take_exec_step(&mut self) -> super::patch_jobs::ExecStep { - self.exec_step.take().unwrap_or_else(|| super::patch_jobs::ExecStep::new()) - } -} - -impl ::protobuf::Message for ExecStepTask { - fn is_initialized(&self) -> bool { - for v in &self.exec_step { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.exec_step)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.exec_step.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.exec_step.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStepTask { - ExecStepTask::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "exec_step", - |m: &ExecStepTask| { &m.exec_step }, - |m: &mut ExecStepTask| { &mut m.exec_step }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStepTask", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStepTask { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStepTask::new) - } -} - -impl ::protobuf::Clear for ExecStepTask { - fn clear(&mut self) { - self.exec_step.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStepTask { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepTask { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStepTaskProgress { - // message fields - pub state: ExecStepTaskProgress_State, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStepTaskProgress { - fn default() -> &'a ExecStepTaskProgress { - ::default_instance() - } -} - -impl ExecStepTaskProgress { - pub fn new() -> ExecStepTaskProgress { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepTaskProgress.State state = 1; - - - pub fn get_state(&self) -> ExecStepTaskProgress_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ExecStepTaskProgress_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ExecStepTaskProgress_State) { - self.state = v; - } -} - -impl ::protobuf::Message for ExecStepTaskProgress { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ExecStepTaskProgress_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ExecStepTaskProgress_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStepTaskProgress { - ExecStepTaskProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ExecStepTaskProgress| { &m.state }, - |m: &mut ExecStepTaskProgress| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStepTaskProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStepTaskProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStepTaskProgress::new) - } -} - -impl ::protobuf::Clear for ExecStepTaskProgress { - fn clear(&mut self) { - self.state = ExecStepTaskProgress_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStepTaskProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepTaskProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ExecStepTaskProgress_State { - STATE_UNSPECIFIED = 0, - STARTED = 1, -} - -impl ::protobuf::ProtobufEnum for ExecStepTaskProgress_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ExecStepTaskProgress_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ExecStepTaskProgress_State::STARTED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ExecStepTaskProgress_State] = &[ - ExecStepTaskProgress_State::STATE_UNSPECIFIED, - ExecStepTaskProgress_State::STARTED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ExecStepTaskProgress.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ExecStepTaskProgress_State { -} - -impl ::std::default::Default for ExecStepTaskProgress_State { - fn default() -> Self { - ExecStepTaskProgress_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepTaskProgress_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStepTaskOutput { - // message fields - pub state: ExecStepTaskOutput_State, - pub exit_code: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStepTaskOutput { - fn default() -> &'a ExecStepTaskOutput { - ::default_instance() - } -} - -impl ExecStepTaskOutput { - pub fn new() -> ExecStepTaskOutput { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ExecStepTaskOutput.State state = 1; - - - pub fn get_state(&self) -> ExecStepTaskOutput_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ExecStepTaskOutput_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ExecStepTaskOutput_State) { - self.state = v; - } - - // int32 exit_code = 2; - - - pub fn get_exit_code(&self) -> i32 { - self.exit_code - } - pub fn clear_exit_code(&mut self) { - self.exit_code = 0; - } - - // Param is passed by value, moved - pub fn set_exit_code(&mut self, v: i32) { - self.exit_code = v; - } -} - -impl ::protobuf::Message for ExecStepTaskOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.exit_code = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ExecStepTaskOutput_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - if self.exit_code != 0 { - my_size += ::protobuf::rt::value_size(2, self.exit_code, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ExecStepTaskOutput_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if self.exit_code != 0 { - os.write_int32(2, self.exit_code)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStepTaskOutput { - ExecStepTaskOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ExecStepTaskOutput| { &m.state }, - |m: &mut ExecStepTaskOutput| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "exit_code", - |m: &ExecStepTaskOutput| { &m.exit_code }, - |m: &mut ExecStepTaskOutput| { &mut m.exit_code }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStepTaskOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStepTaskOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStepTaskOutput::new) - } -} - -impl ::protobuf::Clear for ExecStepTaskOutput { - fn clear(&mut self) { - self.state = ExecStepTaskOutput_State::STATE_UNSPECIFIED; - self.exit_code = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStepTaskOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepTaskOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ExecStepTaskOutput_State { - STATE_UNSPECIFIED = 0, - COMPLETED = 1, - TIMED_OUT = 2, - CANCELLED = 3, -} - -impl ::protobuf::ProtobufEnum for ExecStepTaskOutput_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ExecStepTaskOutput_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ExecStepTaskOutput_State::COMPLETED), - 2 => ::std::option::Option::Some(ExecStepTaskOutput_State::TIMED_OUT), - 3 => ::std::option::Option::Some(ExecStepTaskOutput_State::CANCELLED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ExecStepTaskOutput_State] = &[ - ExecStepTaskOutput_State::STATE_UNSPECIFIED, - ExecStepTaskOutput_State::COMPLETED, - ExecStepTaskOutput_State::TIMED_OUT, - ExecStepTaskOutput_State::CANCELLED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ExecStepTaskOutput.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ExecStepTaskOutput_State { -} - -impl ::std::default::Default for ExecStepTaskOutput_State { - fn default() -> Self { - ExecStepTaskOutput_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepTaskOutput_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyConfigTask { - // message fields - pub os_policies: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyConfigTask { - fn default() -> &'a ApplyConfigTask { - ::default_instance() - } -} - -impl ApplyConfigTask { - pub fn new() -> ApplyConfigTask { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTask.OSPolicy os_policies = 1; - - - pub fn get_os_policies(&self) -> &[ApplyConfigTask_OSPolicy] { - &self.os_policies - } - pub fn clear_os_policies(&mut self) { - self.os_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policies(&mut self, v: ::protobuf::RepeatedField) { - self.os_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policies - } - - // Take field - pub fn take_os_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policies, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ApplyConfigTask { - fn is_initialized(&self) -> bool { - for v in &self.os_policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policies)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policies { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyConfigTask { - ApplyConfigTask::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policies", - |m: &ApplyConfigTask| { &m.os_policies }, - |m: &mut ApplyConfigTask| { &mut m.os_policies }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyConfigTask", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyConfigTask { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyConfigTask::new) - } -} - -impl ::protobuf::Clear for ApplyConfigTask { - fn clear(&mut self) { - self.os_policies.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyConfigTask { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTask { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyConfigTask_OSPolicy { - // message fields - pub id: ::std::string::String, - pub mode: super::os_policy::OSPolicy_Mode, - pub os_policy_assignment: ::std::string::String, - pub resources: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyConfigTask_OSPolicy { - fn default() -> &'a ApplyConfigTask_OSPolicy { - ::default_instance() - } -} - -impl ApplyConfigTask_OSPolicy { - pub fn new() -> ApplyConfigTask_OSPolicy { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Mode mode = 2; - - - pub fn get_mode(&self) -> super::os_policy::OSPolicy_Mode { - self.mode - } - pub fn clear_mode(&mut self) { - self.mode = super::os_policy::OSPolicy_Mode::MODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_mode(&mut self, v: super::os_policy::OSPolicy_Mode) { - self.mode = v; - } - - // string os_policy_assignment = 3; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource resources = 4; - - - pub fn get_resources(&self) -> &[super::os_policy::OSPolicy_Resource] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ApplyConfigTask_OSPolicy { - fn is_initialized(&self) -> bool { - for v in &self.resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.mode, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if self.mode != super::os_policy::OSPolicy_Mode::MODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.mode); - } - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.os_policy_assignment); - } - for value in &self.resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if self.mode != super::os_policy::OSPolicy_Mode::MODE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.mode))?; - } - if !self.os_policy_assignment.is_empty() { - os.write_string(3, &self.os_policy_assignment)?; - } - for v in &self.resources { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyConfigTask_OSPolicy { - ApplyConfigTask_OSPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &ApplyConfigTask_OSPolicy| { &m.id }, - |m: &mut ApplyConfigTask_OSPolicy| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "mode", - |m: &ApplyConfigTask_OSPolicy| { &m.mode }, - |m: &mut ApplyConfigTask_OSPolicy| { &mut m.mode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &ApplyConfigTask_OSPolicy| { &m.os_policy_assignment }, - |m: &mut ApplyConfigTask_OSPolicy| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resources", - |m: &ApplyConfigTask_OSPolicy| { &m.resources }, - |m: &mut ApplyConfigTask_OSPolicy| { &mut m.resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyConfigTask.OSPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyConfigTask_OSPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyConfigTask_OSPolicy::new) - } -} - -impl ::protobuf::Clear for ApplyConfigTask_OSPolicy { - fn clear(&mut self) { - self.id.clear(); - self.mode = super::os_policy::OSPolicy_Mode::MODE_UNSPECIFIED; - self.os_policy_assignment.clear(); - self.resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyConfigTask_OSPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTask_OSPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyConfigTaskProgress { - // message fields - pub state: ApplyConfigTaskProgress_State, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyConfigTaskProgress { - fn default() -> &'a ApplyConfigTaskProgress { - ::default_instance() - } -} - -impl ApplyConfigTaskProgress { - pub fn new() -> ApplyConfigTaskProgress { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskProgress.State state = 1; - - - pub fn get_state(&self) -> ApplyConfigTaskProgress_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ApplyConfigTaskProgress_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ApplyConfigTaskProgress_State) { - self.state = v; - } -} - -impl ::protobuf::Message for ApplyConfigTaskProgress { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ApplyConfigTaskProgress_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ApplyConfigTaskProgress_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyConfigTaskProgress { - ApplyConfigTaskProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ApplyConfigTaskProgress| { &m.state }, - |m: &mut ApplyConfigTaskProgress| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyConfigTaskProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyConfigTaskProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyConfigTaskProgress::new) - } -} - -impl ::protobuf::Clear for ApplyConfigTaskProgress { - fn clear(&mut self) { - self.state = ApplyConfigTaskProgress_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyConfigTaskProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTaskProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ApplyConfigTaskProgress_State { - STATE_UNSPECIFIED = 0, - STARTED = 1, - APPLYING_CONFIG = 2, -} - -impl ::protobuf::ProtobufEnum for ApplyConfigTaskProgress_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ApplyConfigTaskProgress_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ApplyConfigTaskProgress_State::STARTED), - 2 => ::std::option::Option::Some(ApplyConfigTaskProgress_State::APPLYING_CONFIG), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ApplyConfigTaskProgress_State] = &[ - ApplyConfigTaskProgress_State::STATE_UNSPECIFIED, - ApplyConfigTaskProgress_State::STARTED, - ApplyConfigTaskProgress_State::APPLYING_CONFIG, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ApplyConfigTaskProgress.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ApplyConfigTaskProgress_State { -} - -impl ::std::default::Default for ApplyConfigTaskProgress_State { - fn default() -> Self { - ApplyConfigTaskProgress_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTaskProgress_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyConfigTaskOutput { - // message fields - pub state: ApplyConfigTaskOutput_State, - pub os_policy_results: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyConfigTaskOutput { - fn default() -> &'a ApplyConfigTaskOutput { - ::default_instance() - } -} - -impl ApplyConfigTaskOutput { - pub fn new() -> ApplyConfigTaskOutput { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskOutput.State state = 1; - - - pub fn get_state(&self) -> ApplyConfigTaskOutput_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = ApplyConfigTaskOutput_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: ApplyConfigTaskOutput_State) { - self.state = v; - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskOutput.OSPolicyResult os_policy_results = 2; - - - pub fn get_os_policy_results(&self) -> &[ApplyConfigTaskOutput_OSPolicyResult] { - &self.os_policy_results - } - pub fn clear_os_policy_results(&mut self) { - self.os_policy_results.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_results(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_results = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_results(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_results - } - - // Take field - pub fn take_os_policy_results(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_results, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ApplyConfigTaskOutput { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_results { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_results)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.state != ApplyConfigTaskOutput_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.state); - } - for value in &self.os_policy_results { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.state != ApplyConfigTaskOutput_State::STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.state))?; - } - for v in &self.os_policy_results { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyConfigTaskOutput { - ApplyConfigTaskOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &ApplyConfigTaskOutput| { &m.state }, - |m: &mut ApplyConfigTaskOutput| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_results", - |m: &ApplyConfigTaskOutput| { &m.os_policy_results }, - |m: &mut ApplyConfigTaskOutput| { &mut m.os_policy_results }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyConfigTaskOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyConfigTaskOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyConfigTaskOutput::new) - } -} - -impl ::protobuf::Clear for ApplyConfigTaskOutput { - fn clear(&mut self) { - self.state = ApplyConfigTaskOutput_State::STATE_UNSPECIFIED; - self.os_policy_results.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyConfigTaskOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTaskOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ApplyConfigTaskOutput_OSPolicyResult { - // message fields - pub os_policy_id: ::std::string::String, - pub os_policy_assignment: ::std::string::String, - pub os_policy_resource_compliances: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ApplyConfigTaskOutput_OSPolicyResult { - fn default() -> &'a ApplyConfigTaskOutput_OSPolicyResult { - ::default_instance() - } -} - -impl ApplyConfigTaskOutput_OSPolicyResult { - pub fn new() -> ApplyConfigTaskOutput_OSPolicyResult { - ::std::default::Default::default() - } - - // string os_policy_id = 1; - - - pub fn get_os_policy_id(&self) -> &str { - &self.os_policy_id - } - pub fn clear_os_policy_id(&mut self) { - self.os_policy_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_id(&mut self, v: ::std::string::String) { - self.os_policy_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_id - } - - // Take field - pub fn take_os_policy_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_id, ::std::string::String::new()) - } - - // string os_policy_assignment = 2; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.agentendpoint.v1.OSPolicyResourceCompliance os_policy_resource_compliances = 3; - - - pub fn get_os_policy_resource_compliances(&self) -> &[super::config_common::OSPolicyResourceCompliance] { - &self.os_policy_resource_compliances - } - pub fn clear_os_policy_resource_compliances(&mut self) { - self.os_policy_resource_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_resource_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_resource_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_resource_compliances - } - - // Take field - pub fn take_os_policy_resource_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_resource_compliances, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ApplyConfigTaskOutput_OSPolicyResult { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_resource_compliances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_resource_compliances)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_id); - } - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_policy_assignment); - } - for value in &self.os_policy_resource_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_id.is_empty() { - os.write_string(1, &self.os_policy_id)?; - } - if !self.os_policy_assignment.is_empty() { - os.write_string(2, &self.os_policy_assignment)?; - } - for v in &self.os_policy_resource_compliances { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ApplyConfigTaskOutput_OSPolicyResult { - ApplyConfigTaskOutput_OSPolicyResult::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_id", - |m: &ApplyConfigTaskOutput_OSPolicyResult| { &m.os_policy_id }, - |m: &mut ApplyConfigTaskOutput_OSPolicyResult| { &mut m.os_policy_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &ApplyConfigTaskOutput_OSPolicyResult| { &m.os_policy_assignment }, - |m: &mut ApplyConfigTaskOutput_OSPolicyResult| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_resource_compliances", - |m: &ApplyConfigTaskOutput_OSPolicyResult| { &m.os_policy_resource_compliances }, - |m: &mut ApplyConfigTaskOutput_OSPolicyResult| { &mut m.os_policy_resource_compliances }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ApplyConfigTaskOutput.OSPolicyResult", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ApplyConfigTaskOutput_OSPolicyResult { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ApplyConfigTaskOutput_OSPolicyResult::new) - } -} - -impl ::protobuf::Clear for ApplyConfigTaskOutput_OSPolicyResult { - fn clear(&mut self) { - self.os_policy_id.clear(); - self.os_policy_assignment.clear(); - self.os_policy_resource_compliances.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ApplyConfigTaskOutput_OSPolicyResult { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTaskOutput_OSPolicyResult { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ApplyConfigTaskOutput_State { - STATE_UNSPECIFIED = 0, - SUCCEEDED = 1, - FAILED = 2, - CANCELLED = 3, -} - -impl ::protobuf::ProtobufEnum for ApplyConfigTaskOutput_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ApplyConfigTaskOutput_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ApplyConfigTaskOutput_State::SUCCEEDED), - 2 => ::std::option::Option::Some(ApplyConfigTaskOutput_State::FAILED), - 3 => ::std::option::Option::Some(ApplyConfigTaskOutput_State::CANCELLED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ApplyConfigTaskOutput_State] = &[ - ApplyConfigTaskOutput_State::STATE_UNSPECIFIED, - ApplyConfigTaskOutput_State::SUCCEEDED, - ApplyConfigTaskOutput_State::FAILED, - ApplyConfigTaskOutput_State::CANCELLED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ApplyConfigTaskOutput.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ApplyConfigTaskOutput_State { -} - -impl ::std::default::Default for ApplyConfigTaskOutput_State { - fn default() -> Self { - ApplyConfigTaskOutput_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ApplyConfigTaskOutput_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TaskDirective { - TASK_DIRECTIVE_UNSPECIFIED = 0, - CONTINUE = 1, - STOP = 2, -} - -impl ::protobuf::ProtobufEnum for TaskDirective { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TaskDirective::TASK_DIRECTIVE_UNSPECIFIED), - 1 => ::std::option::Option::Some(TaskDirective::CONTINUE), - 2 => ::std::option::Option::Some(TaskDirective::STOP), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [TaskDirective] = &[ - TaskDirective::TASK_DIRECTIVE_UNSPECIFIED, - TaskDirective::CONTINUE, - TaskDirective::STOP, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TaskDirective", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for TaskDirective { -} - -impl ::std::default::Default for TaskDirective { - fn default() -> Self { - TaskDirective::TASK_DIRECTIVE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for TaskDirective { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TaskType { - TASK_TYPE_UNSPECIFIED = 0, - APPLY_PATCHES = 1, - EXEC_STEP_TASK = 2, - APPLY_CONFIG_TASK = 3, -} - -impl ::protobuf::ProtobufEnum for TaskType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TaskType::TASK_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(TaskType::APPLY_PATCHES), - 2 => ::std::option::Option::Some(TaskType::EXEC_STEP_TASK), - 3 => ::std::option::Option::Some(TaskType::APPLY_CONFIG_TASK), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [TaskType] = &[ - TaskType::TASK_TYPE_UNSPECIFIED, - TaskType::APPLY_PATCHES, - TaskType::EXEC_STEP_TASK, - TaskType::APPLY_CONFIG_TASK, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TaskType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for TaskType { -} - -impl ::std::default::Default for TaskType { - fn default() -> Self { - TaskType::TASK_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for TaskType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n2google/cloud/osconfig/agentendpoint/v1/tasks.proto\x12&google.cloud.o\ - sconfig.agentendpoint.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19g\ - oogle/api/resource.proto\x1a:google/cloud/osconfig/agentendpoint/v1/conf\ - ig_common.proto\x1a6google/cloud/osconfig/agentendpoint/v1/os_policy.pro\ - to\x1a7google/cloud/osconfig/agentendpoint/v1/patch_jobs.proto\"\xb5\x05\ - \n\x04Task\x12\x17\n\x07task_id\x18\x01\x20\x01(\tR\x06taskId\x12M\n\tta\ - sk_type\x18\x02\x20\x01(\x0e20.google.cloud.osconfig.agentendpoint.v1.Ta\ - skTypeR\x08taskType\x12\\\n\x0etask_directive\x18\x03\x20\x01(\x0e25.goo\ - gle.cloud.osconfig.agentendpoint.v1.TaskDirectiveR\rtaskDirective\x12h\n\ - \x12apply_patches_task\x18\x04\x20\x01(\x0b28.google.cloud.osconfig.agen\ - tendpoint.v1.ApplyPatchesTaskH\0R\x10applyPatchesTask\x12\\\n\x0eexec_st\ - ep_task\x18\x05\x20\x01(\x0b24.google.cloud.osconfig.agentendpoint.v1.Ex\ - ecStepTaskH\0R\x0cexecStepTask\x12e\n\x11apply_config_task\x18\x07\x20\ - \x01(\x0b27.google.cloud.osconfig.agentendpoint.v1.ApplyConfigTaskH\0R\ - \x0fapplyConfigTask\x12f\n\x0eservice_labels\x18\x06\x20\x03(\x0b2?.goog\ - le.cloud.osconfig.agentendpoint.v1.Task.ServiceLabelsEntryR\rserviceLabe\ - ls\x1a@\n\x12ServiceLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03\ - key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\x0e\n\x0c\ - task_details\"\x83\x01\n\x10ApplyPatchesTask\x12V\n\x0cpatch_config\x18\ - \x01\x20\x01(\x0b23.google.cloud.osconfig.agentendpoint.v1.PatchConfigR\ - \x0bpatchConfig\x12\x17\n\x07dry_run\x18\x03\x20\x01(\x08R\x06dryRun\"\ - \xe8\x01\n\x18ApplyPatchesTaskProgress\x12a\n\x05state\x18\x01\x20\x01(\ - \x0e2F.google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskProgress.S\ - tateR\x05stateB\x03\xe0A\x02\"i\n\x05State\x12\x15\n\x11STATE_UNSPECIFIE\ - D\x10\0\x12\x0b\n\x07STARTED\x10\x04\x12\x17\n\x13DOWNLOADING_PATCHES\ - \x10\x01\x12\x14\n\x10APPLYING_PATCHES\x10\x02\x12\r\n\tREBOOTING\x10\ - \x03\"\xd3\x01\n\x16ApplyPatchesTaskOutput\x12_\n\x05state\x18\x01\x20\ - \x01(\x0e2D.google.cloud.osconfig.agentendpoint.v1.ApplyPatchesTaskOutpu\ - t.StateR\x05stateB\x03\xe0A\x02\"X\n\x05State\x12\x15\n\x11STATE_UNSPECI\ - FIED\x10\0\x12\r\n\tSUCCEEDED\x10\x01\x12\x1d\n\x19SUCCEEDED_REBOOT_REQU\ - IRED\x10\x02\x12\n\n\x06FAILED\x10\x03\"]\n\x0cExecStepTask\x12M\n\texec\ - _step\x18\x01\x20\x01(\x0b20.google.cloud.osconfig.agentendpoint.v1.Exec\ - StepR\x08execStep\"\xa2\x01\n\x14ExecStepTaskProgress\x12]\n\x05state\ - \x18\x01\x20\x01(\x0e2B.google.cloud.osconfig.agentendpoint.v1.ExecStepT\ - askProgress.StateR\x05stateB\x03\xe0A\x02\"+\n\x05State\x12\x15\n\x11STA\ - TE_UNSPECIFIED\x10\0\x12\x0b\n\x07STARTED\x10\x01\"\xe0\x01\n\x12ExecSte\ - pTaskOutput\x12[\n\x05state\x18\x01\x20\x01(\x0e2@.google.cloud.osconfig\ - .agentendpoint.v1.ExecStepTaskOutput.StateR\x05stateB\x03\xe0A\x02\x12\ - \x20\n\texit_code\x18\x02\x20\x01(\x05R\x08exitCodeB\x03\xe0A\x02\"K\n\ - \x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\r\n\tCOMPLETED\x10\ - \x01\x12\r\n\tTIMED_OUT\x10\x02\x12\r\n\tCANCELLED\x10\x03\"\x98\x03\n\ - \x0fApplyConfigTask\x12a\n\x0bos_policies\x18\x01\x20\x03(\x0b2@.google.\ - cloud.osconfig.agentendpoint.v1.ApplyConfigTask.OSPolicyR\nosPolicies\ - \x1a\xa1\x02\n\x08OSPolicy\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\ - I\n\x04mode\x18\x02\x20\x01(\x0e25.google.cloud.osconfig.agentendpoint.v\ - 1.OSPolicy.ModeR\x04mode\x12a\n\x14os_policy_assignment\x18\x03\x20\x01(\ - \tR\x12osPolicyAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssi\ - gnment\x12W\n\tresources\x18\x04\x20\x03(\x0b29.google.cloud.osconfig.ag\ - entendpoint.v1.OSPolicy.ResourceR\tresources\"\xb8\x01\n\x17ApplyConfigT\ - askProgress\x12[\n\x05state\x18\x01\x20\x01(\x0e2E.google.cloud.osconfig\ - .agentendpoint.v1.ApplyConfigTaskProgress.StateR\x05state\"@\n\x05State\ - \x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\x0b\n\x07STARTED\x10\x01\x12\ - \x13\n\x0fAPPLYING_CONFIG\x10\x02\"\xdd\x04\n\x15ApplyConfigTaskOutput\ - \x12^\n\x05state\x18\x01\x20\x01(\x0e2C.google.cloud.osconfig.agentendpo\ - int.v1.ApplyConfigTaskOutput.StateR\x05stateB\x03\xe0A\x02\x12x\n\x11os_\ - policy_results\x18\x02\x20\x03(\x0b2L.google.cloud.osconfig.agentendpoin\ - t.v1.ApplyConfigTaskOutput.OSPolicyResultR\x0fosPolicyResults\x1a\x9f\ - \x02\n\x0eOSPolicyResult\x12\x20\n\x0cos_policy_id\x18\x01\x20\x01(\tR\n\ - osPolicyId\x12a\n\x14os_policy_assignment\x18\x02\x20\x01(\tR\x12osPolic\ - yAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignment\x12\x87\ - \x01\n\x1eos_policy_resource_compliances\x18\x03\x20\x03(\x0b2B.google.c\ - loud.osconfig.agentendpoint.v1.OSPolicyResourceComplianceR\x1bosPolicyRe\ - sourceCompliances\"H\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\ - \r\n\tSUCCEEDED\x10\x01\x12\n\n\x06FAILED\x10\x02\x12\r\n\tCANCELLED\x10\ - \x03*G\n\rTaskDirective\x12\x1e\n\x1aTASK_DIRECTIVE_UNSPECIFIED\x10\0\ - \x12\x0c\n\x08CONTINUE\x10\x01\x12\x08\n\x04STOP\x10\x02*c\n\x08TaskType\ - \x12\x19\n\x15TASK_TYPE_UNSPECIFIED\x10\0\x12\x11\n\rAPPLY_PATCHES\x10\ - \x01\x12\x12\n\x0eEXEC_STEP_TASK\x10\x02\x12\x15\n\x11APPLY_CONFIG_TASK\ - \x10\x03B\x8b\x02\n*com.google.cloud.osconfig.agentendpoint.v1B\x05Tasks\ - P\x01ZPcloud.google.com/go/osconfig/agentendpoint/apiv1/agentendpointpb;\ - agentendpointpb\xeaA\x80\x01\n*osconfig.googleapis.com/OSPolicyAssignmen\ - t\x12Rprojects/{project}/locations/{location}/osPolicyAssignments/{os_po\ - licy_assignment}J\xe7F\n\x07\x12\x05\x0e\0\x9d\x02\x01\n\xbc\x04\n\x01\ - \x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\x20Google\x20LLC\n\ - \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ - \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0/\n\t\n\x02\x03\0\x12\x03\ - \x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0\ - D\n\t\n\x02\x03\x03\x12\x03\x15\0@\n\t\n\x02\x03\x04\x12\x03\x16\0A\n\ - \x08\n\x01\x08\x12\x03\x18\0g\n\t\n\x02\x08\x0b\x12\x03\x18\0g\n\x08\n\ - \x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\ - \x12\x03\x1a\0&\n\t\n\x02\x08\x08\x12\x03\x1a\0&\n\x08\n\x01\x08\x12\x03\ - \x1b\0C\n\t\n\x02\x08\x01\x12\x03\x1b\0C\n\t\n\x01\x08\x12\x04\x1c\0\x1f\ - \x02\n\x0c\n\x04\x08\x9d\x08\0\x12\x04\x1c\0\x1f\x02\n3\n\x02\x05\0\x12\ - \x04\"\0-\x01\x1a'\x20Specifies\x20the\x20current\x20agent\x20behavior.\ - \n\n\n\n\x03\x05\0\x01\x12\x03\"\x05\x12\n&\n\x04\x05\0\x02\0\x12\x03$\ - \x02!\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x0c\n\x05\x05\0\x02\0\ - \x01\x12\x03$\x02\x1c\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03$\x1f\x20\n4\n\ - \x04\x05\0\x02\x01\x12\x03'\x02\x0f\x1a'\x20The\x20task\x20should\x20con\ - tinue\x20to\x20progress.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03'\x02\n\ - \n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03'\r\x0e\n\xa9\x01\n\x04\x05\0\x02\ - \x02\x12\x03,\x02\x0b\x1a\x9b\x01\x20Task\x20should\x20not\x20be\x20star\ - ted,\x20or\x20if\x20already\x20in\x20progress,\x20should\x20stop\n\x20at\ - \x20first\x20safe\x20stopping\x20point.\x20\x20Task\x20should\x20be\x20c\ - onsidered\x20done\x20and\x20will\n\x20never\x20repeat.\n\n\x0c\n\x05\x05\ - \0\x02\x02\x01\x12\x03,\x02\x06\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03,\t\ - \n\n4\n\x02\x05\x01\x12\x040\0<\x01\x1a(\x20Specifies\x20the\x20type\x20\ - of\x20task\x20to\x20perform.\n\n\n\n\x03\x05\x01\x01\x12\x030\x05\r\n&\n\ - \x04\x05\x01\x02\0\x12\x032\x02\x1c\x1a\x19\x20Unspecified\x20is\x20inva\ - lid.\n\n\x0c\n\x05\x05\x01\x02\0\x01\x12\x032\x02\x17\n\x0c\n\x05\x05\ - \x01\x02\0\x02\x12\x032\x1a\x1b\n&\n\x04\x05\x01\x02\x01\x12\x035\x02\ - \x14\x1a\x19\x20The\x20apply\x20patches\x20task.\n\n\x0c\n\x05\x05\x01\ - \x02\x01\x01\x12\x035\x02\x0f\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x035\ - \x12\x13\n\"\n\x04\x05\x01\x02\x02\x12\x038\x02\x15\x1a\x15\x20The\x20ex\ - ec\x20step\x20task.\n\n\x0c\n\x05\x05\x01\x02\x02\x01\x12\x038\x02\x10\n\ - \x0c\n\x05\x05\x01\x02\x02\x02\x12\x038\x13\x14\n$\n\x04\x05\x01\x02\x03\ - \x12\x03;\x02\x18\x1a\x17\x20The\x20apply\x20config\x20task\n\n\x0c\n\ - \x05\x05\x01\x02\x03\x01\x12\x03;\x02\x13\n\x0c\n\x05\x05\x01\x02\x03\ - \x02\x12\x03;\x16\x17\n:\n\x02\x04\0\x12\x04?\0]\x01\x1a.\x20A\x20unit\ - \x20of\x20work\x20to\x20be\x20performed\x20by\x20the\x20agent.\n\n\n\n\ - \x03\x04\0\x01\x12\x03?\x08\x0c\n\x1e\n\x04\x04\0\x02\0\x12\x03A\x02\x15\ - \x1a\x11\x20Unique\x20task\x20id.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03A\ - \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03A\t\x10\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03A\x13\x14\n\xe9\x01\n\x04\x04\0\x02\x01\x12\x03J\x02\ - \x19\x1a\xdb\x01\x20The\x20type\x20of\x20task\x20to\x20perform.\n\n\x20T\ - ask\x20details\x20must\x20include\x20the\x20appropriate\x20message\x20ba\ - sed\x20on\x20this\x20enum\x20as\n\x20specified\x20below:\n\x20APPLY_PATC\ - HES\x20=\x20ApplyPatchesTask\n\x20EXEC_STEP\x20=\x20ExecStepTask\n\x20AP\ - PLY_CONFIG_TASK\x20=\x20ApplyConfigTask\n\n\x0c\n\x05\x04\0\x02\x01\x06\ - \x12\x03J\x02\n\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03J\x0b\x14\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03J\x17\x18\n.\n\x04\x04\0\x02\x02\x12\x03M\ - \x02#\x1a!\x20Current\x20directive\x20to\x20the\x20agent.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x03M\x02\x0f\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x03M\x10\x1e\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03M!\"\nC\n\x04\x04\0\ - \x08\0\x12\x04P\x02Y\x03\x1a5\x20Specific\x20details\x20about\x20the\x20\ - current\x20task\x20to\x20perform.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03P\ - \x08\x14\n?\n\x04\x04\0\x02\x03\x12\x03R\x04,\x1a2\x20Details\x20about\ - \x20the\x20apply\x20patches\x20task\x20to\x20perform.\n\n\x0c\n\x05\x04\ - \0\x02\x03\x06\x12\x03R\x04\x14\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03R\ - \x15'\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03R*+\n;\n\x04\x04\0\x02\x04\ - \x12\x03U\x04$\x1a.\x20Details\x20about\x20the\x20exec\x20step\x20task\ - \x20to\x20perform.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03U\x04\x10\n\ - \x0c\n\x05\x04\0\x02\x04\x01\x12\x03U\x11\x1f\n\x0c\n\x05\x04\0\x02\x04\ - \x03\x12\x03U\"#\nC\n\x04\x04\0\x02\x05\x12\x03X\x04*\x1a6\x20Details\ - \x20about\x20the\x20apply\x20config\x20step\x20task\x20to\x20perform.\n\ - \n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03X\x04\x13\n\x0c\n\x05\x04\0\x02\ - \x05\x01\x12\x03X\x14%\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03X()\nJ\n\x04\ - \x04\0\x02\x06\x12\x03\\\x02)\x1a=\x20Labels\x20describing\x20the\x20tas\ - k.\x20\x20Used\x20for\x20logging\x20by\x20the\x20agent.\n\n\x0c\n\x05\ - \x04\0\x02\x06\x06\x12\x03\\\x02\x15\n\x0c\n\x05\x04\0\x02\x06\x01\x12\ - \x03\\\x16$\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03\\'(\n=\n\x02\x04\x01\ - \x12\x04`\0g\x01\x1a1\x20Message\x20which\x20instructs\x20agent\x20to\ - \x20apply\x20patches.\n\n\n\n\x03\x04\x01\x01\x12\x03`\x08\x18\nH\n\x04\ - \x04\x01\x02\0\x12\x03b\x02\x1f\x1a;\x20Specific\x20information\x20about\ - \x20how\x20patches\x20should\x20be\x20applied.\n\n\x0c\n\x05\x04\x01\x02\ - \0\x06\x12\x03b\x02\r\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03b\x0e\x1a\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03b\x1d\x1e\n\x94\x01\n\x04\x04\x01\ - \x02\x01\x12\x03f\x02\x13\x1a\x86\x01\x20If\x20true,\x20the\x20agent\x20\ - will\x20report\x20its\x20status\x20as\x20it\x20goes\x20through\x20the\ - \x20motions\n\x20but\x20won't\x20actually\x20run\x20any\x20updates\x20or\ - \x20perform\x20any\x20reboots.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\ - f\x02\x06\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03f\x07\x0e\n\x0c\n\x05\ - \x04\x01\x02\x01\x03\x12\x03f\x11\x12\nS\n\x02\x04\x02\x12\x04j\0\x7f\ - \x01\x1aG\x20Information\x20reported\x20from\x20the\x20agent\x20about\ - \x20applying\x20patches\x20execution.\n\n\n\n\x03\x04\x02\x01\x12\x03j\ - \x08\x20\n<\n\x04\x04\x02\x04\0\x12\x04l\x02{\x03\x1a.\x20The\x20interme\ - diate\x20states\x20of\x20applying\x20patches.\n\n\x0c\n\x05\x04\x02\x04\ - \0\x01\x12\x03l\x07\x0c\n(\n\x06\x04\x02\x04\0\x02\0\x12\x03n\x04\x1a\ - \x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x0e\n\x07\x04\x02\x04\0\ - \x02\0\x01\x12\x03n\x04\x15\n\x0e\n\x07\x04\x02\x04\0\x02\0\x02\x12\x03n\ - \x18\x19\n6\n\x06\x04\x02\x04\0\x02\x01\x12\x03q\x04\x10\x1a'\x20The\x20\ - agent\x20has\x20started\x20the\x20patch\x20task.\n\n\x0e\n\x07\x04\x02\ - \x04\0\x02\x01\x01\x12\x03q\x04\x0b\n\x0e\n\x07\x04\x02\x04\0\x02\x01\ - \x02\x12\x03q\x0e\x0f\n<\n\x06\x04\x02\x04\0\x02\x02\x12\x03t\x04\x1c\ - \x1a-\x20The\x20agent\x20is\x20currently\x20downloading\x20patches.\n\n\ - \x0e\n\x07\x04\x02\x04\0\x02\x02\x01\x12\x03t\x04\x17\n\x0e\n\x07\x04\ - \x02\x04\0\x02\x02\x02\x12\x03t\x1a\x1b\n9\n\x06\x04\x02\x04\0\x02\x03\ - \x12\x03w\x04\x19\x1a*\x20The\x20agent\x20is\x20currently\x20applying\ - \x20patches.\n\n\x0e\n\x07\x04\x02\x04\0\x02\x03\x01\x12\x03w\x04\x14\n\ - \x0e\n\x07\x04\x02\x04\0\x02\x03\x02\x12\x03w\x17\x18\n?\n\x06\x04\x02\ - \x04\0\x02\x04\x12\x03z\x04\x12\x1a0\x20The\x20agent\x20is\x20currently\ - \x20rebooting\x20the\x20instance.\n\n\x0e\n\x07\x04\x02\x04\0\x02\x04\ - \x01\x12\x03z\x04\r\n\x0e\n\x07\x04\x02\x04\0\x02\x04\x02\x12\x03z\x10\ - \x11\nC\n\x04\x04\x02\x02\0\x12\x03~\x02;\x1a6\x20Required.\x20The\x20cu\ - rrent\x20state\x20of\x20this\x20patch\x20execution.\n\n\x0c\n\x05\x04\ - \x02\x02\0\x06\x12\x03~\x02\x07\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03~\ - \x08\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03~\x10\x11\n\x0c\n\x05\x04\ - \x02\x02\0\x08\x12\x03~\x12:\n\x0f\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\ - \x03~\x139\nU\n\x02\x04\x03\x12\x06\x82\x01\0\x94\x01\x01\x1aG\x20Inform\ - ation\x20reported\x20from\x20the\x20agent\x20about\x20applying\x20patche\ - s\x20execution.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x82\x01\x08\x1e\n7\n\ - \x04\x04\x03\x04\0\x12\x06\x84\x01\x02\x90\x01\x03\x1a'\x20The\x20final\ - \x20states\x20of\x20applying\x20patches.\n\n\r\n\x05\x04\x03\x04\0\x01\ - \x12\x04\x84\x01\x07\x0c\n)\n\x06\x04\x03\x04\0\x02\0\x12\x04\x86\x01\ - \x04\x1a\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x0f\n\x07\x04\x03\ - \x04\0\x02\0\x01\x12\x04\x86\x01\x04\x15\n\x0f\n\x07\x04\x03\x04\0\x02\0\ - \x02\x12\x04\x86\x01\x18\x19\n:\n\x06\x04\x03\x04\0\x02\x01\x12\x04\x89\ - \x01\x04\x12\x1a*\x20Applying\x20patches\x20completed\x20successfully.\n\ - \n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\x89\x01\x04\r\n\x0f\n\x07\ - \x04\x03\x04\0\x02\x01\x02\x12\x04\x89\x01\x10\x11\nT\n\x06\x04\x03\x04\ - \0\x02\x02\x12\x04\x8c\x01\x04\"\x1aD\x20Applying\x20patches\x20complete\ - d\x20successfully,\x20but\x20a\x20reboot\x20is\x20required.\n\n\x0f\n\ - \x07\x04\x03\x04\0\x02\x02\x01\x12\x04\x8c\x01\x04\x1d\n\x0f\n\x07\x04\ - \x03\x04\0\x02\x02\x02\x12\x04\x8c\x01\x20!\n*\n\x06\x04\x03\x04\0\x02\ - \x03\x12\x04\x8f\x01\x04\x0f\x1a\x1a\x20Applying\x20patches\x20failed.\n\ - \n\x0f\n\x07\x04\x03\x04\0\x02\x03\x01\x12\x04\x8f\x01\x04\n\n\x0f\n\x07\ - \x04\x03\x04\0\x02\x03\x02\x12\x04\x8f\x01\r\x0e\n7\n\x04\x04\x03\x02\0\ - \x12\x04\x93\x01\x02;\x1a)\x20Required.\x20The\x20final\x20state\x20of\ - \x20this\x20task.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\x93\x01\x02\x07\ - \n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x93\x01\x08\r\n\r\n\x05\x04\x03\x02\ - \0\x03\x12\x04\x93\x01\x10\x11\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\x93\ - \x01\x12:\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\x93\x01\x139\n\ - O\n\x02\x04\x04\x12\x06\x97\x01\0\x9a\x01\x01\x1aA\x20Message\x20which\ - \x20instructs\x20agent\x20to\x20execute\x20the\x20following\x20command.\ - \n\n\x0b\n\x03\x04\x04\x01\x12\x04\x97\x01\x08\x14\n0\n\x04\x04\x04\x02\ - \0\x12\x04\x99\x01\x02\x19\x1a\"\x20Details\x20of\x20the\x20exec\x20step\ - \x20to\x20run.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\x99\x01\x02\n\n\r\n\ - \x05\x04\x04\x02\0\x01\x12\x04\x99\x01\x0b\x14\n\r\n\x05\x04\x04\x02\0\ - \x03\x12\x04\x99\x01\x17\x18\nR\n\x02\x04\x05\x12\x06\x9d\x01\0\xa9\x01\ - \x01\x1aD\x20Information\x20reported\x20from\x20the\x20agent\x20about\ - \x20the\x20exec\x20step\x20execution.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\ - \x9d\x01\x08\x1c\n8\n\x04\x04\x05\x04\0\x12\x06\x9f\x01\x02\xa5\x01\x03\ - \x1a(\x20The\x20intermediate\x20states\x20of\x20exec\x20steps.\n\n\r\n\ - \x05\x04\x05\x04\0\x01\x12\x04\x9f\x01\x07\x0c\n)\n\x06\x04\x05\x04\0\ - \x02\0\x12\x04\xa1\x01\x04\x1a\x1a\x19\x20Unspecified\x20is\x20invalid.\ - \n\n\x0f\n\x07\x04\x05\x04\0\x02\0\x01\x12\x04\xa1\x01\x04\x15\n\x0f\n\ - \x07\x04\x05\x04\0\x02\0\x02\x12\x04\xa1\x01\x18\x19\n;\n\x06\x04\x05\ - \x04\0\x02\x01\x12\x04\xa4\x01\x04\x10\x1a+\x20The\x20agent\x20has\x20st\ - arted\x20the\x20exec\x20step\x20task.\n\n\x0f\n\x07\x04\x05\x04\0\x02\ - \x01\x01\x12\x04\xa4\x01\x04\x0b\n\x0f\n\x07\x04\x05\x04\0\x02\x01\x02\ - \x12\x04\xa4\x01\x0e\x0f\n>\n\x04\x04\x05\x02\0\x12\x04\xa8\x01\x02;\x1a\ - 0\x20Required.\x20The\x20current\x20state\x20of\x20this\x20exec\x20step.\ - \n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xa8\x01\x02\x07\n\r\n\x05\x04\x05\ - \x02\0\x01\x12\x04\xa8\x01\x08\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xa8\ - \x01\x10\x11\n\r\n\x05\x04\x05\x02\0\x08\x12\x04\xa8\x01\x12:\n\x10\n\ - \x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xa8\x01\x139\nR\n\x02\x04\x06\ - \x12\x06\xac\x01\0\xc1\x01\x01\x1aD\x20Information\x20reported\x20from\ - \x20the\x20agent\x20about\x20the\x20exec\x20step\x20execution.\n\n\x0b\n\ - \x03\x04\x06\x01\x12\x04\xac\x01\x08\x1a\n1\n\x04\x04\x06\x04\0\x12\x06\ - \xae\x01\x02\xba\x01\x03\x1a!\x20The\x20final\x20states\x20of\x20exec\ - \x20steps.\n\n\r\n\x05\x04\x06\x04\0\x01\x12\x04\xae\x01\x07\x0c\n)\n\ - \x06\x04\x06\x04\0\x02\0\x12\x04\xb0\x01\x04\x1a\x1a\x19\x20Unspecified\ - \x20is\x20invalid.\n\n\x0f\n\x07\x04\x06\x04\0\x02\0\x01\x12\x04\xb0\x01\ - \x04\x15\n\x0f\n\x07\x04\x06\x04\0\x02\0\x02\x12\x04\xb0\x01\x18\x19\n3\ - \n\x06\x04\x06\x04\0\x02\x01\x12\x04\xb3\x01\x04\x12\x1a#\x20The\x20exec\ - \x20step\x20completed\x20normally.\n\n\x0f\n\x07\x04\x06\x04\0\x02\x01\ - \x01\x12\x04\xb3\x01\x04\r\n\x0f\n\x07\x04\x06\x04\0\x02\x01\x02\x12\x04\ - \xb3\x01\x10\x11\nH\n\x06\x04\x06\x04\0\x02\x02\x12\x04\xb6\x01\x04\x12\ - \x1a8\x20The\x20exec\x20step\x20was\x20terminated\x20because\x20it\x20to\ - ok\x20too\x20long.\n\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x01\x12\x04\xb6\ - \x01\x04\r\n\x0f\n\x07\x04\x06\x04\0\x02\x02\x02\x12\x04\xb6\x01\x10\x11\ - \nE\n\x06\x04\x06\x04\0\x02\x03\x12\x04\xb9\x01\x04\x12\x1a5\x20The\x20e\ - xec\x20step\x20task\x20was\x20cancelled\x20before\x20it\x20started.\n\n\ - \x0f\n\x07\x04\x06\x04\0\x02\x03\x01\x12\x04\xb9\x01\x04\r\n\x0f\n\x07\ - \x04\x06\x04\0\x02\x03\x02\x12\x04\xb9\x01\x10\x11\n;\n\x04\x04\x06\x02\ - \0\x12\x04\xbd\x01\x02;\x1a-\x20Required.\x20The\x20final\x20state\x20of\ - \x20the\x20exec\x20step.\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xbd\x01\ - \x02\x07\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xbd\x01\x08\r\n\r\n\x05\x04\ - \x06\x02\0\x03\x12\x04\xbd\x01\x10\x11\n\r\n\x05\x04\x06\x02\0\x08\x12\ - \x04\xbd\x01\x12:\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xbd\ - \x01\x139\nd\n\x04\x04\x06\x02\x01\x12\x04\xc0\x01\x02?\x1aV\x20Required\ - .\x20The\x20exit\x20code\x20received\x20from\x20the\x20script\x20which\ - \x20ran\x20as\x20part\x20of\x20the\x20exec\x20step.\n\n\r\n\x05\x04\x06\ - \x02\x01\x05\x12\x04\xc0\x01\x02\x07\n\r\n\x05\x04\x06\x02\x01\x01\x12\ - \x04\xc0\x01\x08\x11\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc0\x01\x14\ - \x15\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\xc0\x01\x16>\n\x10\n\x08\x04\ - \x06\x02\x01\x08\x9c\x08\0\x12\x04\xc0\x01\x17=\nb\n\x02\x04\x07\x12\x06\ - \xc5\x01\0\xdf\x01\x01\x1aT\x20Message\x20which\x20instructs\x20OS\x20Co\ - nfig\x20agent\x20to\x20apply\x20the\x20desired\x20state\n\x20configurati\ - on.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xc5\x01\x08\x17\n4\n\x04\x04\x07\ - \x03\0\x12\x06\xc7\x01\x02\xdb\x01\x03\x1a$\x20Message\x20representing\ - \x20an\x20OS\x20policy.\n\n\r\n\x05\x04\x07\x03\0\x01\x12\x04\xc7\x01\n\ - \x12\nX\n\x06\x04\x07\x03\0\x02\0\x12\x04\xca\x01\x04\x12\x1aH\x20User\ - \x20provided\x20policy\x20id.\n\x20Used\x20for\x20reporting\x20and\x20lo\ - gging\x20by\x20the\x20agent.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\ - \x04\xca\x01\x04\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xca\x01\ - \x0b\r\n\x0f\n\x07\x04\x07\x03\0\x02\0\x03\x12\x04\xca\x01\x10\x11\n!\n\ - \x06\x04\x07\x03\0\x02\x01\x12\x04\xcd\x01\x04C\x1a\x11\x20The\x20policy\ - \x20mode\n\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x06\x12\x04\xcd\x01\x049\n\ - \x0f\n\x07\x04\x07\x03\0\x02\x01\x01\x12\x04\xcd\x01:>\n\x0f\n\x07\x04\ - \x07\x03\0\x02\x01\x03\x12\x04\xcd\x01AB\n\x8a\x02\n\x06\x04\x07\x03\0\ - \x02\x02\x12\x06\xd4\x01\x04\xd6\x01(\x1a\xf7\x01\x20Reference\x20to\x20\ - the\x20`OSPolicyAssignment`\x20API\x20resource\x20that\x20this\x20`OSPol\ - icy`\n\x20belongs\x20to.\n\x20Format:\n\x20projects/{project_number}/loc\ - ations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_\ - id}\n\x20Used\x20for\x20reporting\x20and\x20logging\x20by\x20the\x20agen\ - t.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x05\x12\x04\xd4\x01\x04\n\n\x0f\n\ - \x07\x04\x07\x03\0\x02\x02\x01\x12\x04\xd4\x01\x0b\x1f\n\x0f\n\x07\x04\ - \x07\x03\0\x02\x02\x03\x12\x04\xd4\x01\"#\n\x11\n\x07\x04\x07\x03\0\x02\ - \x02\x08\x12\x06\xd4\x01$\xd6\x01'\n\x13\n\t\x04\x07\x03\0\x02\x02\x08\ - \x9f\x08\x12\x06\xd4\x01%\xd6\x01&\na\n\x06\x04\x07\x03\0\x02\x03\x12\ - \x04\xda\x01\x04U\x1aQ\x20List\x20of\x20resources\x20associated\x20with\ - \x20the\x20policy\x20to\x20be\x20set\x20to\x20their\n\x20desired\x20stat\ - e.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x03\x04\x12\x04\xda\x01\x04\x0c\n\x0f\ - \n\x07\x04\x07\x03\0\x02\x03\x06\x12\x04\xda\x01\rF\n\x0f\n\x07\x04\x07\ - \x03\0\x02\x03\x01\x12\x04\xda\x01GP\n\x0f\n\x07\x04\x07\x03\0\x02\x03\ - \x03\x12\x04\xda\x01ST\nC\n\x04\x04\x07\x02\0\x12\x04\xde\x01\x02$\x1a5\ - \x20List\x20of\x20os\x20policies\x20to\x20be\x20applied\x20for\x20the\ - \x20instance.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\xde\x01\x02\n\n\r\n\ - \x05\x04\x07\x02\0\x06\x12\x04\xde\x01\x0b\x13\n\r\n\x05\x04\x07\x02\0\ - \x01\x12\x04\xde\x01\x14\x1f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xde\x01\ - \"#\n\x80\x01\n\x02\x04\x08\x12\x06\xe3\x01\0\xf2\x01\x01\x1ar\x20Inform\ - ation\x20reported\x20from\x20the\x20agent\x20regarding\x20the\x20progres\ - s\x20of\x20the\x20task\x20of\n\x20applying\x20desired\x20state\x20config\ - uration.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe3\x01\x08\x1f\n?\n\x04\x04\ - \x08\x04\0\x12\x06\xe5\x01\x02\xee\x01\x03\x1a/\x20The\x20intermediate\ - \x20states\x20of\x20apply\x20config\x20task.\n\n\r\n\x05\x04\x08\x04\0\ - \x01\x12\x04\xe5\x01\x07\x0c\n\x1f\n\x06\x04\x08\x04\0\x02\0\x12\x04\xe7\ - \x01\x04\x1a\x1a\x0f\x20Invalid\x20state\n\n\x0f\n\x07\x04\x08\x04\0\x02\ - \0\x01\x12\x04\xe7\x01\x04\x15\n\x0f\n\x07\x04\x08\x04\0\x02\0\x02\x12\ - \x04\xe7\x01\x18\x19\n1\n\x06\x04\x08\x04\0\x02\x01\x12\x04\xea\x01\x04\ - \x10\x1a!\x20The\x20agent\x20has\x20started\x20the\x20task.\n\n\x0f\n\ - \x07\x04\x08\x04\0\x02\x01\x01\x12\x04\xea\x01\x04\x0b\n\x0f\n\x07\x04\ - \x08\x04\0\x02\x01\x02\x12\x04\xea\x01\x0e\x0f\nL\n\x06\x04\x08\x04\0\ - \x02\x02\x12\x04\xed\x01\x04\x18\x1a<\x20The\x20agent\x20is\x20in\x20the\ - \x20process\x20of\x20applying\x20the\x20configuration.\n\n\x0f\n\x07\x04\ - \x08\x04\0\x02\x02\x01\x12\x04\xed\x01\x04\x13\n\x0f\n\x07\x04\x08\x04\0\ - \x02\x02\x02\x12\x04\xed\x01\x16\x17\n/\n\x04\x04\x08\x02\0\x12\x04\xf1\ - \x01\x02\x12\x1a!\x20The\x20current\x20state\x20of\x20this\x20task.\n\n\ - \r\n\x05\x04\x08\x02\0\x06\x12\x04\xf1\x01\x02\x07\n\r\n\x05\x04\x08\x02\ - \0\x01\x12\x04\xf1\x01\x08\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf1\x01\ - \x10\x11\n~\n\x02\x04\t\x12\x06\xf6\x01\0\x9d\x02\x01\x1ap\x20Informatio\ - n\x20reported\x20from\x20the\x20agent\x20regarding\x20the\x20output\x20o\ - f\x20the\x20task\x20of\n\x20applying\x20desired\x20state\x20configuratio\ - n.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xf6\x01\x08\x1d\nK\n\x04\x04\t\x03\0\ - \x12\x06\xf8\x01\x02\x87\x02\x03\x1a;\x20Result\x20of\x20applying\x20des\ - ired\x20state\x20config\x20for\x20an\x20OS\x20policy.\n\n\r\n\x05\x04\t\ - \x03\0\x01\x12\x04\xf8\x01\n\x18\n\"\n\x06\x04\t\x03\0\x02\0\x12\x04\xfa\ - \x01\x04\x1c\x1a\x12\x20The\x20OS\x20policy\x20id\n\n\x0f\n\x07\x04\t\ - \x03\0\x02\0\x05\x12\x04\xfa\x01\x04\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x01\ - \x12\x04\xfa\x01\x0b\x17\n\x0f\n\x07\x04\t\x03\0\x02\0\x03\x12\x04\xfa\ - \x01\x1a\x1b\n\x8a\x02\n\x06\x04\t\x03\0\x02\x01\x12\x06\x81\x02\x04\x83\ - \x02(\x1a\xf7\x01\x20Reference\x20to\x20the\x20`OSPolicyAssignment`\x20A\ - PI\x20resource\x20that\x20this\x20`OSPolicy`\n\x20belongs\x20to.\n\x20Fo\ - rmat:\n\x20projects/{project_number}/locations/{location}/osPolicyAssign\ - ments/{os_policy_assignment_id@revision_id}\n\x20Used\x20for\x20reportin\ - g\x20and\x20logging\x20by\x20the\x20agent.\n\n\x0f\n\x07\x04\t\x03\0\x02\ - \x01\x05\x12\x04\x81\x02\x04\n\n\x0f\n\x07\x04\t\x03\0\x02\x01\x01\x12\ - \x04\x81\x02\x0b\x1f\n\x0f\n\x07\x04\t\x03\0\x02\x01\x03\x12\x04\x81\x02\ - \"#\n\x11\n\x07\x04\t\x03\0\x02\x01\x08\x12\x06\x81\x02$\x83\x02'\n\x13\ - \n\t\x04\t\x03\0\x02\x01\x08\x9f\x08\x12\x06\x81\x02%\x83\x02&\nW\n\x06\ - \x04\t\x03\0\x02\x02\x12\x04\x86\x02\x04K\x1aG\x20Results\x20of\x20apply\ - ing\x20desired\x20state\x20config\x20for\x20the\x20OS\x20policy\x20resou\ - rces.\n\n\x0f\n\x07\x04\t\x03\0\x02\x02\x04\x12\x04\x86\x02\x04\x0c\n\ - \x0f\n\x07\x04\t\x03\0\x02\x02\x06\x12\x04\x86\x02\r'\n\x0f\n\x07\x04\t\ - \x03\0\x02\x02\x01\x12\x04\x86\x02(F\n\x0f\n\x07\x04\t\x03\0\x02\x02\x03\ - \x12\x04\x86\x02IJ\n/\n\x04\x04\t\x04\0\x12\x06\x8a\x02\x02\x96\x02\x03\ - \x1a\x1f\x20The\x20final\x20state\x20of\x20this\x20task.\n\n\r\n\x05\x04\ - \t\x04\0\x01\x12\x04\x8a\x02\x07\x0c\n)\n\x06\x04\t\x04\0\x02\0\x12\x04\ - \x8c\x02\x04\x1a\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x0f\n\x07\ - \x04\t\x04\0\x02\0\x01\x12\x04\x8c\x02\x04\x15\n\x0f\n\x07\x04\t\x04\0\ - \x02\0\x02\x12\x04\x8c\x02\x18\x19\n?\n\x06\x04\t\x04\0\x02\x01\x12\x04\ - \x8f\x02\x04\x12\x1a/\x20The\x20apply\x20config\x20task\x20completed\x20\ - successfully.\n\n\x0f\n\x07\x04\t\x04\0\x02\x01\x01\x12\x04\x8f\x02\x04\ - \r\n\x0f\n\x07\x04\t\x04\0\x02\x01\x02\x12\x04\x8f\x02\x10\x11\n/\n\x06\ - \x04\t\x04\0\x02\x02\x12\x04\x92\x02\x04\x0f\x1a\x1f\x20The\x20apply\x20\ - config\x20task\x20failed.\n\n\x0f\n\x07\x04\t\x04\0\x02\x02\x01\x12\x04\ - \x92\x02\x04\n\n\x0f\n\x07\x04\t\x04\0\x02\x02\x02\x12\x04\x92\x02\r\x0e\ - \n6\n\x06\x04\t\x04\0\x02\x03\x12\x04\x95\x02\x04\x12\x1a&\x20The\x20app\ - ly\x20config\x20task\x20was\x20cancelled.\n\n\x0f\n\x07\x04\t\x04\0\x02\ - \x03\x01\x12\x04\x95\x02\x04\r\n\x0f\n\x07\x04\t\x04\0\x02\x03\x02\x12\ - \x04\x95\x02\x10\x11\n7\n\x04\x04\t\x02\0\x12\x04\x99\x02\x02;\x1a)\x20R\ - equired.\x20The\x20final\x20state\x20of\x20this\x20task.\n\n\r\n\x05\x04\ - \t\x02\0\x06\x12\x04\x99\x02\x02\x07\n\r\n\x05\x04\t\x02\0\x01\x12\x04\ - \x99\x02\x08\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x99\x02\x10\x11\n\r\n\ - \x05\x04\t\x02\0\x08\x12\x04\x99\x02\x12:\n\x10\n\x08\x04\t\x02\0\x08\ - \x9c\x08\0\x12\x04\x99\x02\x139\nM\n\x04\x04\t\x02\x01\x12\x04\x9c\x02\ - \x020\x1a?\x20Results\x20of\x20applying\x20desired\x20state\x20config\ - \x20for\x20the\x20OS\x20policies.\n\n\r\n\x05\x04\t\x02\x01\x04\x12\x04\ - \x9c\x02\x02\n\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\x9c\x02\x0b\x19\n\r\n\ - \x05\x04\t\x02\x01\x01\x12\x04\x9c\x02\x1a+\n\r\n\x05\x04\t\x02\x01\x03\ - \x12\x04\x9c\x02./b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/inventory.rs b/googleapis-raw/src/cloud/osconfig/v1/inventory.rs deleted file mode 100644 index a1a287d..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/inventory.rs +++ /dev/null @@ -1,5391 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/inventory.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory { - // message fields - pub name: ::std::string::String, - pub os_info: ::protobuf::SingularPtrField, - pub items: ::std::collections::HashMap<::std::string::String, Inventory_Item>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory { - fn default() -> &'a Inventory { - ::default_instance() - } -} - -impl Inventory { - pub fn new() -> Inventory { - ::std::default::Default::default() - } - - // string name = 3; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.Inventory.OsInfo os_info = 1; - - - pub fn get_os_info(&self) -> &Inventory_OsInfo { - self.os_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_info(&mut self) { - self.os_info.clear(); - } - - pub fn has_os_info(&self) -> bool { - self.os_info.is_some() - } - - // Param is passed by value, moved - pub fn set_os_info(&mut self, v: Inventory_OsInfo) { - self.os_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_info(&mut self) -> &mut Inventory_OsInfo { - if self.os_info.is_none() { - self.os_info.set_default(); - } - self.os_info.as_mut().unwrap() - } - - // Take field - pub fn take_os_info(&mut self) -> Inventory_OsInfo { - self.os_info.take().unwrap_or_else(|| Inventory_OsInfo::new()) - } - - // repeated .google.cloud.osconfig.v1.Inventory.ItemsEntry items = 2; - - - pub fn get_items(&self) -> &::std::collections::HashMap<::std::string::String, Inventory_Item> { - &self.items - } - pub fn clear_items(&mut self) { - self.items.clear(); - } - - // Param is passed by value, moved - pub fn set_items(&mut self, v: ::std::collections::HashMap<::std::string::String, Inventory_Item>) { - self.items = v; - } - - // Mutable pointer to the field. - pub fn mut_items(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Inventory_Item> { - &mut self.items - } - - // Take field - pub fn take_items(&mut self) -> ::std::collections::HashMap<::std::string::String, Inventory_Item> { - ::std::mem::replace(&mut self.items, ::std::collections::HashMap::new()) - } - - // .google.protobuf.Timestamp update_time = 4; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory { - fn is_initialized(&self) -> bool { - for v in &self.os_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_info)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.items)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.name); - } - if let Some(ref v) = self.os_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.items); - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(3, &self.name)?; - } - if let Some(ref v) = self.os_info.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.items, os)?; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory { - Inventory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Inventory| { &m.name }, - |m: &mut Inventory| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_info", - |m: &Inventory| { &m.os_info }, - |m: &mut Inventory| { &mut m.os_info }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &Inventory| { &m.items }, - |m: &mut Inventory| { &mut m.items }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Inventory| { &m.update_time }, - |m: &mut Inventory| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory::new) - } -} - -impl ::protobuf::Clear for Inventory { - fn clear(&mut self) { - self.name.clear(); - self.os_info.clear(); - self.items.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_OsInfo { - // message fields - pub hostname: ::std::string::String, - pub long_name: ::std::string::String, - pub short_name: ::std::string::String, - pub version: ::std::string::String, - pub architecture: ::std::string::String, - pub kernel_version: ::std::string::String, - pub kernel_release: ::std::string::String, - pub osconfig_agent_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_OsInfo { - fn default() -> &'a Inventory_OsInfo { - ::default_instance() - } -} - -impl Inventory_OsInfo { - pub fn new() -> Inventory_OsInfo { - ::std::default::Default::default() - } - - // string hostname = 9; - - - pub fn get_hostname(&self) -> &str { - &self.hostname - } - pub fn clear_hostname(&mut self) { - self.hostname.clear(); - } - - // Param is passed by value, moved - pub fn set_hostname(&mut self, v: ::std::string::String) { - self.hostname = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hostname(&mut self) -> &mut ::std::string::String { - &mut self.hostname - } - - // Take field - pub fn take_hostname(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hostname, ::std::string::String::new()) - } - - // string long_name = 2; - - - pub fn get_long_name(&self) -> &str { - &self.long_name - } - pub fn clear_long_name(&mut self) { - self.long_name.clear(); - } - - // Param is passed by value, moved - pub fn set_long_name(&mut self, v: ::std::string::String) { - self.long_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_long_name(&mut self) -> &mut ::std::string::String { - &mut self.long_name - } - - // Take field - pub fn take_long_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.long_name, ::std::string::String::new()) - } - - // string short_name = 3; - - - pub fn get_short_name(&self) -> &str { - &self.short_name - } - pub fn clear_short_name(&mut self) { - self.short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_short_name(&mut self, v: ::std::string::String) { - self.short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_short_name(&mut self) -> &mut ::std::string::String { - &mut self.short_name - } - - // Take field - pub fn take_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.short_name, ::std::string::String::new()) - } - - // string version = 4; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // string architecture = 5; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string kernel_version = 6; - - - pub fn get_kernel_version(&self) -> &str { - &self.kernel_version - } - pub fn clear_kernel_version(&mut self) { - self.kernel_version.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_version(&mut self, v: ::std::string::String) { - self.kernel_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_version(&mut self) -> &mut ::std::string::String { - &mut self.kernel_version - } - - // Take field - pub fn take_kernel_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_version, ::std::string::String::new()) - } - - // string kernel_release = 7; - - - pub fn get_kernel_release(&self) -> &str { - &self.kernel_release - } - pub fn clear_kernel_release(&mut self) { - self.kernel_release.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_release(&mut self, v: ::std::string::String) { - self.kernel_release = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_release(&mut self) -> &mut ::std::string::String { - &mut self.kernel_release - } - - // Take field - pub fn take_kernel_release(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_release, ::std::string::String::new()) - } - - // string osconfig_agent_version = 8; - - - pub fn get_osconfig_agent_version(&self) -> &str { - &self.osconfig_agent_version - } - pub fn clear_osconfig_agent_version(&mut self) { - self.osconfig_agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_osconfig_agent_version(&mut self, v: ::std::string::String) { - self.osconfig_agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_osconfig_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.osconfig_agent_version - } - - // Take field - pub fn take_osconfig_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.osconfig_agent_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_OsInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hostname)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.long_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.short_name)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_version)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_release)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.osconfig_agent_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.hostname.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.hostname); - } - if !self.long_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.long_name); - } - if !self.short_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.short_name); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.version); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.architecture); - } - if !self.kernel_version.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.kernel_version); - } - if !self.kernel_release.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.kernel_release); - } - if !self.osconfig_agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.osconfig_agent_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.hostname.is_empty() { - os.write_string(9, &self.hostname)?; - } - if !self.long_name.is_empty() { - os.write_string(2, &self.long_name)?; - } - if !self.short_name.is_empty() { - os.write_string(3, &self.short_name)?; - } - if !self.version.is_empty() { - os.write_string(4, &self.version)?; - } - if !self.architecture.is_empty() { - os.write_string(5, &self.architecture)?; - } - if !self.kernel_version.is_empty() { - os.write_string(6, &self.kernel_version)?; - } - if !self.kernel_release.is_empty() { - os.write_string(7, &self.kernel_release)?; - } - if !self.osconfig_agent_version.is_empty() { - os.write_string(8, &self.osconfig_agent_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_OsInfo { - Inventory_OsInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hostname", - |m: &Inventory_OsInfo| { &m.hostname }, - |m: &mut Inventory_OsInfo| { &mut m.hostname }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "long_name", - |m: &Inventory_OsInfo| { &m.long_name }, - |m: &mut Inventory_OsInfo| { &mut m.long_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "short_name", - |m: &Inventory_OsInfo| { &m.short_name }, - |m: &mut Inventory_OsInfo| { &mut m.short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_OsInfo| { &m.version }, - |m: &mut Inventory_OsInfo| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_OsInfo| { &m.architecture }, - |m: &mut Inventory_OsInfo| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_version", - |m: &Inventory_OsInfo| { &m.kernel_version }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_release", - |m: &Inventory_OsInfo| { &m.kernel_release }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_release }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "osconfig_agent_version", - |m: &Inventory_OsInfo| { &m.osconfig_agent_version }, - |m: &mut Inventory_OsInfo| { &mut m.osconfig_agent_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.OsInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_OsInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_OsInfo::new) - } -} - -impl ::protobuf::Clear for Inventory_OsInfo { - fn clear(&mut self) { - self.hostname.clear(); - self.long_name.clear(); - self.short_name.clear(); - self.version.clear(); - self.architecture.clear(); - self.kernel_version.clear(); - self.kernel_release.clear(); - self.osconfig_agent_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_OsInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_OsInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_Item { - // message fields - pub id: ::std::string::String, - pub origin_type: Inventory_Item_OriginType, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub field_type: Inventory_Item_Type, - // message oneof groups - pub details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_Item { - fn default() -> &'a Inventory_Item { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Inventory_Item_oneof_details { - installed_package(Inventory_SoftwarePackage), - available_package(Inventory_SoftwarePackage), -} - -impl Inventory_Item { - pub fn new() -> Inventory_Item { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.Inventory.Item.OriginType origin_type = 2; - - - pub fn get_origin_type(&self) -> Inventory_Item_OriginType { - self.origin_type - } - pub fn clear_origin_type(&mut self) { - self.origin_type = Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_origin_type(&mut self, v: Inventory_Item_OriginType) { - self.origin_type = v; - } - - // .google.protobuf.Timestamp create_time = 8; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 9; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.osconfig.v1.Inventory.Item.Type type = 5; - - - pub fn get_field_type(&self) -> Inventory_Item_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = Inventory_Item_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Inventory_Item_Type) { - self.field_type = v; - } - - // .google.cloud.osconfig.v1.Inventory.SoftwarePackage installed_package = 6; - - - pub fn get_installed_package(&self) -> &Inventory_SoftwarePackage { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_installed_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_installed_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_installed_package(&mut self, v: Inventory_SoftwarePackage) { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_installed_package(&mut self) -> &mut Inventory_SoftwarePackage { - if let ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(Inventory_SoftwarePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_installed_package(&mut self) -> Inventory_SoftwarePackage { - if self.has_installed_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_SoftwarePackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.SoftwarePackage available_package = 7; - - - pub fn get_available_package(&self) -> &Inventory_SoftwarePackage { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_available_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_available_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_available_package(&mut self, v: Inventory_SoftwarePackage) { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_available_package(&mut self) -> &mut Inventory_SoftwarePackage { - if let ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(Inventory_SoftwarePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_available_package(&mut self) -> Inventory_SoftwarePackage { - if self.has_available_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_SoftwarePackage::new() - } - } -} - -impl ::protobuf::Message for Inventory_Item { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - if let Some(Inventory_Item_oneof_details::installed_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_Item_oneof_details::available_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.origin_type, 2, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 5, &mut self.unknown_fields)? - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if self.origin_type != Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.origin_type); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.field_type != Inventory_Item_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.field_type); - } - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_Item_oneof_details::installed_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_Item_oneof_details::available_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if self.origin_type != Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.origin_type))?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.field_type != Inventory_Item_Type::TYPE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_Item_oneof_details::installed_package(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_Item_oneof_details::available_package(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_Item { - Inventory_Item::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Inventory_Item| { &m.id }, - |m: &mut Inventory_Item| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "origin_type", - |m: &Inventory_Item| { &m.origin_type }, - |m: &mut Inventory_Item| { &mut m.origin_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Inventory_Item| { &m.create_time }, - |m: &mut Inventory_Item| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Inventory_Item| { &m.update_time }, - |m: &mut Inventory_Item| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &Inventory_Item| { &m.field_type }, - |m: &mut Inventory_Item| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_SoftwarePackage>( - "installed_package", - Inventory_Item::has_installed_package, - Inventory_Item::get_installed_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_SoftwarePackage>( - "available_package", - Inventory_Item::has_available_package, - Inventory_Item::get_available_package, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.Item", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_Item { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_Item::new) - } -} - -impl ::protobuf::Clear for Inventory_Item { - fn clear(&mut self) { - self.id.clear(); - self.origin_type = Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED; - self.create_time.clear(); - self.update_time.clear(); - self.field_type = Inventory_Item_Type::TYPE_UNSPECIFIED; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_Item { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Inventory_Item_OriginType { - ORIGIN_TYPE_UNSPECIFIED = 0, - INVENTORY_REPORT = 1, -} - -impl ::protobuf::ProtobufEnum for Inventory_Item_OriginType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Inventory_Item_OriginType::INVENTORY_REPORT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Inventory_Item_OriginType] = &[ - Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED, - Inventory_Item_OriginType::INVENTORY_REPORT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Inventory.Item.OriginType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Inventory_Item_OriginType { -} - -impl ::std::default::Default for Inventory_Item_OriginType { - fn default() -> Self { - Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item_OriginType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Inventory_Item_Type { - TYPE_UNSPECIFIED = 0, - INSTALLED_PACKAGE = 1, - AVAILABLE_PACKAGE = 2, -} - -impl ::protobuf::ProtobufEnum for Inventory_Item_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Inventory_Item_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Inventory_Item_Type::INSTALLED_PACKAGE), - 2 => ::std::option::Option::Some(Inventory_Item_Type::AVAILABLE_PACKAGE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Inventory_Item_Type] = &[ - Inventory_Item_Type::TYPE_UNSPECIFIED, - Inventory_Item_Type::INSTALLED_PACKAGE, - Inventory_Item_Type::AVAILABLE_PACKAGE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Inventory.Item.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Inventory_Item_Type { -} - -impl ::std::default::Default for Inventory_Item_Type { - fn default() -> Self { - Inventory_Item_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_SoftwarePackage { - // message oneof groups - pub details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_SoftwarePackage { - fn default() -> &'a Inventory_SoftwarePackage { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Inventory_SoftwarePackage_oneof_details { - yum_package(Inventory_VersionedPackage), - apt_package(Inventory_VersionedPackage), - zypper_package(Inventory_VersionedPackage), - googet_package(Inventory_VersionedPackage), - zypper_patch(Inventory_ZypperPatch), - wua_package(Inventory_WindowsUpdatePackage), - qfe_package(Inventory_WindowsQuickFixEngineeringPackage), - cos_package(Inventory_VersionedPackage), - windows_application(Inventory_WindowsApplication), -} - -impl Inventory_SoftwarePackage { - pub fn new() -> Inventory_SoftwarePackage { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.Inventory.VersionedPackage yum_package = 1; - - - pub fn get_yum_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_yum_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum_package(&mut self) -> Inventory_VersionedPackage { - if self.has_yum_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.VersionedPackage apt_package = 2; - - - pub fn get_apt_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_apt_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt_package(&mut self) -> Inventory_VersionedPackage { - if self.has_apt_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.VersionedPackage zypper_package = 3; - - - pub fn get_zypper_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_package(&mut self) -> Inventory_VersionedPackage { - if self.has_zypper_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.VersionedPackage googet_package = 4; - - - pub fn get_googet_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_googet_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet_package(&mut self) -> Inventory_VersionedPackage { - if self.has_googet_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.ZypperPatch zypper_patch = 5; - - - pub fn get_zypper_patch(&self) -> &Inventory_ZypperPatch { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_patch(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_patch(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_patch(&mut self, v: Inventory_ZypperPatch) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_patch(&mut self) -> &mut Inventory_ZypperPatch { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(Inventory_ZypperPatch::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_patch(&mut self) -> Inventory_ZypperPatch { - if self.has_zypper_patch() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) => v, - _ => panic!(), - } - } else { - Inventory_ZypperPatch::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage wua_package = 6; - - - pub fn get_wua_package(&self) -> &Inventory_WindowsUpdatePackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_wua_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_wua_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_wua_package(&mut self, v: Inventory_WindowsUpdatePackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_wua_package(&mut self) -> &mut Inventory_WindowsUpdatePackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(Inventory_WindowsUpdatePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_wua_package(&mut self) -> Inventory_WindowsUpdatePackage { - if self.has_wua_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsUpdatePackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7; - - - pub fn get_qfe_package(&self) -> &Inventory_WindowsQuickFixEngineeringPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_qfe_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_qfe_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_qfe_package(&mut self, v: Inventory_WindowsQuickFixEngineeringPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_qfe_package(&mut self) -> &mut Inventory_WindowsQuickFixEngineeringPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(Inventory_WindowsQuickFixEngineeringPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_qfe_package(&mut self) -> Inventory_WindowsQuickFixEngineeringPackage { - if self.has_qfe_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.VersionedPackage cos_package = 8; - - - pub fn get_cos_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_cos_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_cos_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cos_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_cos_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cos_package(&mut self) -> Inventory_VersionedPackage { - if self.has_cos_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1.Inventory.WindowsApplication windows_application = 9; - - - pub fn get_windows_application(&self) -> &Inventory_WindowsApplication { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_windows_application(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_windows_application(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_windows_application(&mut self, v: Inventory_WindowsApplication) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) - } - - // Mutable pointer to the field. - pub fn mut_windows_application(&mut self) -> &mut Inventory_WindowsApplication { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(Inventory_WindowsApplication::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_windows_application(&mut self) -> Inventory_WindowsApplication { - if self.has_windows_application() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsApplication::new() - } - } -} - -impl ::protobuf::Message for Inventory_SoftwarePackage { - fn is_initialized(&self) -> bool { - if let Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(is.read_message()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_SoftwarePackage { - Inventory_SoftwarePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "yum_package", - Inventory_SoftwarePackage::has_yum_package, - Inventory_SoftwarePackage::get_yum_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "apt_package", - Inventory_SoftwarePackage::has_apt_package, - Inventory_SoftwarePackage::get_apt_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "zypper_package", - Inventory_SoftwarePackage::has_zypper_package, - Inventory_SoftwarePackage::get_zypper_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "googet_package", - Inventory_SoftwarePackage::has_googet_package, - Inventory_SoftwarePackage::get_googet_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_ZypperPatch>( - "zypper_patch", - Inventory_SoftwarePackage::has_zypper_patch, - Inventory_SoftwarePackage::get_zypper_patch, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsUpdatePackage>( - "wua_package", - Inventory_SoftwarePackage::has_wua_package, - Inventory_SoftwarePackage::get_wua_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsQuickFixEngineeringPackage>( - "qfe_package", - Inventory_SoftwarePackage::has_qfe_package, - Inventory_SoftwarePackage::get_qfe_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "cos_package", - Inventory_SoftwarePackage::has_cos_package, - Inventory_SoftwarePackage::get_cos_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsApplication>( - "windows_application", - Inventory_SoftwarePackage::has_windows_application, - Inventory_SoftwarePackage::get_windows_application, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.SoftwarePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_SoftwarePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_SoftwarePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_SoftwarePackage { - fn clear(&mut self) { - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_SoftwarePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_SoftwarePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_VersionedPackage { - // message fields - pub package_name: ::std::string::String, - pub architecture: ::std::string::String, - pub version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_VersionedPackage { - fn default() -> &'a Inventory_VersionedPackage { - ::default_instance() - } -} - -impl Inventory_VersionedPackage { - pub fn new() -> Inventory_VersionedPackage { - ::std::default::Default::default() - } - - // string package_name = 4; - - - pub fn get_package_name(&self) -> &str { - &self.package_name - } - pub fn clear_package_name(&mut self) { - self.package_name.clear(); - } - - // Param is passed by value, moved - pub fn set_package_name(&mut self, v: ::std::string::String) { - self.package_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_package_name(&mut self) -> &mut ::std::string::String { - &mut self.package_name - } - - // Take field - pub fn take_package_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.package_name, ::std::string::String::new()) - } - - // string architecture = 2; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string version = 3; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_VersionedPackage { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.package_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.package_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.package_name); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.architecture); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.package_name.is_empty() { - os.write_string(4, &self.package_name)?; - } - if !self.architecture.is_empty() { - os.write_string(2, &self.architecture)?; - } - if !self.version.is_empty() { - os.write_string(3, &self.version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_VersionedPackage { - Inventory_VersionedPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "package_name", - |m: &Inventory_VersionedPackage| { &m.package_name }, - |m: &mut Inventory_VersionedPackage| { &mut m.package_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_VersionedPackage| { &m.architecture }, - |m: &mut Inventory_VersionedPackage| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_VersionedPackage| { &m.version }, - |m: &mut Inventory_VersionedPackage| { &mut m.version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.VersionedPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_VersionedPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_VersionedPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_VersionedPackage { - fn clear(&mut self) { - self.package_name.clear(); - self.architecture.clear(); - self.version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_VersionedPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_VersionedPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_ZypperPatch { - // message fields - pub patch_name: ::std::string::String, - pub category: ::std::string::String, - pub severity: ::std::string::String, - pub summary: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_ZypperPatch { - fn default() -> &'a Inventory_ZypperPatch { - ::default_instance() - } -} - -impl Inventory_ZypperPatch { - pub fn new() -> Inventory_ZypperPatch { - ::std::default::Default::default() - } - - // string patch_name = 5; - - - pub fn get_patch_name(&self) -> &str { - &self.patch_name - } - pub fn clear_patch_name(&mut self) { - self.patch_name.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_name(&mut self, v: ::std::string::String) { - self.patch_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_name(&mut self) -> &mut ::std::string::String { - &mut self.patch_name - } - - // Take field - pub fn take_patch_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.patch_name, ::std::string::String::new()) - } - - // string category = 2; - - - pub fn get_category(&self) -> &str { - &self.category - } - pub fn clear_category(&mut self) { - self.category.clear(); - } - - // Param is passed by value, moved - pub fn set_category(&mut self, v: ::std::string::String) { - self.category = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_category(&mut self) -> &mut ::std::string::String { - &mut self.category - } - - // Take field - pub fn take_category(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.category, ::std::string::String::new()) - } - - // string severity = 3; - - - pub fn get_severity(&self) -> &str { - &self.severity - } - pub fn clear_severity(&mut self) { - self.severity.clear(); - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: ::std::string::String) { - self.severity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_severity(&mut self) -> &mut ::std::string::String { - &mut self.severity - } - - // Take field - pub fn take_severity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.severity, ::std::string::String::new()) - } - - // string summary = 4; - - - pub fn get_summary(&self) -> &str { - &self.summary - } - pub fn clear_summary(&mut self) { - self.summary.clear(); - } - - // Param is passed by value, moved - pub fn set_summary(&mut self, v: ::std::string::String) { - self.summary = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_summary(&mut self) -> &mut ::std::string::String { - &mut self.summary - } - - // Take field - pub fn take_summary(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.summary, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_ZypperPatch { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.patch_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.category)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.severity)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.summary)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.patch_name.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.patch_name); - } - if !self.category.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.category); - } - if !self.severity.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.severity); - } - if !self.summary.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.summary); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.patch_name.is_empty() { - os.write_string(5, &self.patch_name)?; - } - if !self.category.is_empty() { - os.write_string(2, &self.category)?; - } - if !self.severity.is_empty() { - os.write_string(3, &self.severity)?; - } - if !self.summary.is_empty() { - os.write_string(4, &self.summary)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_ZypperPatch { - Inventory_ZypperPatch::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "patch_name", - |m: &Inventory_ZypperPatch| { &m.patch_name }, - |m: &mut Inventory_ZypperPatch| { &mut m.patch_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "category", - |m: &Inventory_ZypperPatch| { &m.category }, - |m: &mut Inventory_ZypperPatch| { &mut m.category }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severity", - |m: &Inventory_ZypperPatch| { &m.severity }, - |m: &mut Inventory_ZypperPatch| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "summary", - |m: &Inventory_ZypperPatch| { &m.summary }, - |m: &mut Inventory_ZypperPatch| { &mut m.summary }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.ZypperPatch", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_ZypperPatch { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_ZypperPatch::new) - } -} - -impl ::protobuf::Clear for Inventory_ZypperPatch { - fn clear(&mut self) { - self.patch_name.clear(); - self.category.clear(); - self.severity.clear(); - self.summary.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_ZypperPatch { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_ZypperPatch { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage { - // message fields - pub title: ::std::string::String, - pub description: ::std::string::String, - pub categories: ::protobuf::RepeatedField, - pub kb_article_ids: ::protobuf::RepeatedField<::std::string::String>, - pub support_url: ::std::string::String, - pub more_info_urls: ::protobuf::RepeatedField<::std::string::String>, - pub update_id: ::std::string::String, - pub revision_number: i32, - pub last_deployment_change_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage { - fn default() -> &'a Inventory_WindowsUpdatePackage { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage { - pub fn new() -> Inventory_WindowsUpdatePackage { - ::std::default::Default::default() - } - - // string title = 1; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3; - - - pub fn get_categories(&self) -> &[Inventory_WindowsUpdatePackage_WindowsUpdateCategory] { - &self.categories - } - pub fn clear_categories(&mut self) { - self.categories.clear(); - } - - // Param is passed by value, moved - pub fn set_categories(&mut self, v: ::protobuf::RepeatedField) { - self.categories = v; - } - - // Mutable pointer to the field. - pub fn mut_categories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.categories - } - - // Take field - pub fn take_categories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.categories, ::protobuf::RepeatedField::new()) - } - - // repeated string kb_article_ids = 4; - - - pub fn get_kb_article_ids(&self) -> &[::std::string::String] { - &self.kb_article_ids - } - pub fn clear_kb_article_ids(&mut self) { - self.kb_article_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_kb_article_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.kb_article_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_kb_article_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.kb_article_ids - } - - // Take field - pub fn take_kb_article_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.kb_article_ids, ::protobuf::RepeatedField::new()) - } - - // string support_url = 11; - - - pub fn get_support_url(&self) -> &str { - &self.support_url - } - pub fn clear_support_url(&mut self) { - self.support_url.clear(); - } - - // Param is passed by value, moved - pub fn set_support_url(&mut self, v: ::std::string::String) { - self.support_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_support_url(&mut self) -> &mut ::std::string::String { - &mut self.support_url - } - - // Take field - pub fn take_support_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.support_url, ::std::string::String::new()) - } - - // repeated string more_info_urls = 5; - - - pub fn get_more_info_urls(&self) -> &[::std::string::String] { - &self.more_info_urls - } - pub fn clear_more_info_urls(&mut self) { - self.more_info_urls.clear(); - } - - // Param is passed by value, moved - pub fn set_more_info_urls(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.more_info_urls = v; - } - - // Mutable pointer to the field. - pub fn mut_more_info_urls(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.more_info_urls - } - - // Take field - pub fn take_more_info_urls(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.more_info_urls, ::protobuf::RepeatedField::new()) - } - - // string update_id = 6; - - - pub fn get_update_id(&self) -> &str { - &self.update_id - } - pub fn clear_update_id(&mut self) { - self.update_id.clear(); - } - - // Param is passed by value, moved - pub fn set_update_id(&mut self, v: ::std::string::String) { - self.update_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_id(&mut self) -> &mut ::std::string::String { - &mut self.update_id - } - - // Take field - pub fn take_update_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.update_id, ::std::string::String::new()) - } - - // int32 revision_number = 7; - - - pub fn get_revision_number(&self) -> i32 { - self.revision_number - } - pub fn clear_revision_number(&mut self) { - self.revision_number = 0; - } - - // Param is passed by value, moved - pub fn set_revision_number(&mut self, v: i32) { - self.revision_number = v; - } - - // .google.protobuf.Timestamp last_deployment_change_time = 10; - - - pub fn get_last_deployment_change_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_deployment_change_time(&mut self) { - self.last_deployment_change_time.clear(); - } - - pub fn has_last_deployment_change_time(&self) -> bool { - self.last_deployment_change_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_deployment_change_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_deployment_change_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_deployment_change_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_deployment_change_time.is_none() { - self.last_deployment_change_time.set_default(); - } - self.last_deployment_change_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_deployment_change_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage { - fn is_initialized(&self) -> bool { - for v in &self.categories { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_deployment_change_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.categories)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.kb_article_ids)?; - }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.support_url)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.more_info_urls)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.update_id)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.revision_number = tmp; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_deployment_change_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.title); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - for value in &self.categories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.kb_article_ids { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.support_url.is_empty() { - my_size += ::protobuf::rt::string_size(11, &self.support_url); - } - for value in &self.more_info_urls { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.update_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.update_id); - } - if self.revision_number != 0 { - my_size += ::protobuf::rt::value_size(7, self.revision_number, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.title.is_empty() { - os.write_string(1, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - for v in &self.categories { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.kb_article_ids { - os.write_string(4, &v)?; - }; - if !self.support_url.is_empty() { - os.write_string(11, &self.support_url)?; - } - for v in &self.more_info_urls { - os.write_string(5, &v)?; - }; - if !self.update_id.is_empty() { - os.write_string(6, &self.update_id)?; - } - if self.revision_number != 0 { - os.write_int32(7, self.revision_number)?; - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage { - Inventory_WindowsUpdatePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &Inventory_WindowsUpdatePackage| { &m.title }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsUpdatePackage| { &m.description }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "categories", - |m: &Inventory_WindowsUpdatePackage| { &m.categories }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.categories }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kb_article_ids", - |m: &Inventory_WindowsUpdatePackage| { &m.kb_article_ids }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.kb_article_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "support_url", - |m: &Inventory_WindowsUpdatePackage| { &m.support_url }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.support_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "more_info_urls", - |m: &Inventory_WindowsUpdatePackage| { &m.more_info_urls }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.more_info_urls }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "update_id", - |m: &Inventory_WindowsUpdatePackage| { &m.update_id }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.update_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "revision_number", - |m: &Inventory_WindowsUpdatePackage| { &m.revision_number }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.revision_number }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_deployment_change_time", - |m: &Inventory_WindowsUpdatePackage| { &m.last_deployment_change_time }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.last_deployment_change_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage { - fn clear(&mut self) { - self.title.clear(); - self.description.clear(); - self.categories.clear(); - self.kb_article_ids.clear(); - self.support_url.clear(); - self.more_info_urls.clear(); - self.update_id.clear(); - self.revision_number = 0; - self.last_deployment_change_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - // message fields - pub id: ::std::string::String, - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn default() -> &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - pub fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string name = 2; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.name.is_empty() { - os.write_string(2, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.id }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.name }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage.WindowsUpdateCategory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn clear(&mut self) { - self.id.clear(); - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsQuickFixEngineeringPackage { - // message fields - pub caption: ::std::string::String, - pub description: ::std::string::String, - pub hot_fix_id: ::std::string::String, - pub install_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsQuickFixEngineeringPackage { - fn default() -> &'a Inventory_WindowsQuickFixEngineeringPackage { - ::default_instance() - } -} - -impl Inventory_WindowsQuickFixEngineeringPackage { - pub fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - ::std::default::Default::default() - } - - // string caption = 1; - - - pub fn get_caption(&self) -> &str { - &self.caption - } - pub fn clear_caption(&mut self) { - self.caption.clear(); - } - - // Param is passed by value, moved - pub fn set_caption(&mut self, v: ::std::string::String) { - self.caption = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_caption(&mut self) -> &mut ::std::string::String { - &mut self.caption - } - - // Take field - pub fn take_caption(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.caption, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string hot_fix_id = 3; - - - pub fn get_hot_fix_id(&self) -> &str { - &self.hot_fix_id - } - pub fn clear_hot_fix_id(&mut self) { - self.hot_fix_id.clear(); - } - - // Param is passed by value, moved - pub fn set_hot_fix_id(&mut self, v: ::std::string::String) { - self.hot_fix_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hot_fix_id(&mut self) -> &mut ::std::string::String { - &mut self.hot_fix_id - } - - // Take field - pub fn take_hot_fix_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hot_fix_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp install_time = 5; - - - pub fn get_install_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.install_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_install_time(&mut self) { - self.install_time.clear(); - } - - pub fn has_install_time(&self) -> bool { - self.install_time.is_some() - } - - // Param is passed by value, moved - pub fn set_install_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.install_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.install_time.is_none() { - self.install_time.set_default(); - } - self.install_time.as_mut().unwrap() - } - - // Take field - pub fn take_install_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.install_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsQuickFixEngineeringPackage { - fn is_initialized(&self) -> bool { - for v in &self.install_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.caption)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hot_fix_id)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.caption.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.caption); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if !self.hot_fix_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.hot_fix_id); - } - if let Some(ref v) = self.install_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.caption.is_empty() { - os.write_string(1, &self.caption)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if !self.hot_fix_id.is_empty() { - os.write_string(3, &self.hot_fix_id)?; - } - if let Some(ref v) = self.install_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "caption", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.caption }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.caption }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.description }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hot_fix_id", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.hot_fix_id }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.hot_fix_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "install_time", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.install_time }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.install_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsQuickFixEngineeringPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsQuickFixEngineeringPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsQuickFixEngineeringPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsQuickFixEngineeringPackage { - fn clear(&mut self) { - self.caption.clear(); - self.description.clear(); - self.hot_fix_id.clear(); - self.install_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsQuickFixEngineeringPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsQuickFixEngineeringPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsApplication { - // message fields - pub display_name: ::std::string::String, - pub display_version: ::std::string::String, - pub publisher: ::std::string::String, - pub install_date: ::protobuf::SingularPtrField, - pub help_link: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsApplication { - fn default() -> &'a Inventory_WindowsApplication { - ::default_instance() - } -} - -impl Inventory_WindowsApplication { - pub fn new() -> Inventory_WindowsApplication { - ::std::default::Default::default() - } - - // string display_name = 1; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string display_version = 2; - - - pub fn get_display_version(&self) -> &str { - &self.display_version - } - pub fn clear_display_version(&mut self) { - self.display_version.clear(); - } - - // Param is passed by value, moved - pub fn set_display_version(&mut self, v: ::std::string::String) { - self.display_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_version(&mut self) -> &mut ::std::string::String { - &mut self.display_version - } - - // Take field - pub fn take_display_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_version, ::std::string::String::new()) - } - - // string publisher = 3; - - - pub fn get_publisher(&self) -> &str { - &self.publisher - } - pub fn clear_publisher(&mut self) { - self.publisher.clear(); - } - - // Param is passed by value, moved - pub fn set_publisher(&mut self, v: ::std::string::String) { - self.publisher = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_publisher(&mut self) -> &mut ::std::string::String { - &mut self.publisher - } - - // Take field - pub fn take_publisher(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.publisher, ::std::string::String::new()) - } - - // .google.type.Date install_date = 4; - - - pub fn get_install_date(&self) -> &super::date::Date { - self.install_date.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_install_date(&mut self) { - self.install_date.clear(); - } - - pub fn has_install_date(&self) -> bool { - self.install_date.is_some() - } - - // Param is passed by value, moved - pub fn set_install_date(&mut self, v: super::date::Date) { - self.install_date = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_date(&mut self) -> &mut super::date::Date { - if self.install_date.is_none() { - self.install_date.set_default(); - } - self.install_date.as_mut().unwrap() - } - - // Take field - pub fn take_install_date(&mut self) -> super::date::Date { - self.install_date.take().unwrap_or_else(|| super::date::Date::new()) - } - - // string help_link = 5; - - - pub fn get_help_link(&self) -> &str { - &self.help_link - } - pub fn clear_help_link(&mut self) { - self.help_link.clear(); - } - - // Param is passed by value, moved - pub fn set_help_link(&mut self, v: ::std::string::String) { - self.help_link = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_help_link(&mut self) -> &mut ::std::string::String { - &mut self.help_link - } - - // Take field - pub fn take_help_link(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.help_link, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsApplication { - fn is_initialized(&self) -> bool { - for v in &self.install_date { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_version)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.publisher)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_date)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.help_link)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.display_name); - } - if !self.display_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_version); - } - if !self.publisher.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.publisher); - } - if let Some(ref v) = self.install_date.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.help_link.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.help_link); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.display_name.is_empty() { - os.write_string(1, &self.display_name)?; - } - if !self.display_version.is_empty() { - os.write_string(2, &self.display_version)?; - } - if !self.publisher.is_empty() { - os.write_string(3, &self.publisher)?; - } - if let Some(ref v) = self.install_date.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.help_link.is_empty() { - os.write_string(5, &self.help_link)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsApplication { - Inventory_WindowsApplication::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Inventory_WindowsApplication| { &m.display_name }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_version", - |m: &Inventory_WindowsApplication| { &m.display_version }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "publisher", - |m: &Inventory_WindowsApplication| { &m.publisher }, - |m: &mut Inventory_WindowsApplication| { &mut m.publisher }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "install_date", - |m: &Inventory_WindowsApplication| { &m.install_date }, - |m: &mut Inventory_WindowsApplication| { &mut m.install_date }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "help_link", - |m: &Inventory_WindowsApplication| { &m.help_link }, - |m: &mut Inventory_WindowsApplication| { &mut m.help_link }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsApplication", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsApplication { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsApplication::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsApplication { - fn clear(&mut self) { - self.display_name.clear(); - self.display_version.clear(); - self.publisher.clear(); - self.install_date.clear(); - self.help_link.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsApplication { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsApplication { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetInventoryRequest { - // message fields - pub name: ::std::string::String, - pub view: InventoryView, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetInventoryRequest { - fn default() -> &'a GetInventoryRequest { - ::default_instance() - } -} - -impl GetInventoryRequest { - pub fn new() -> GetInventoryRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.InventoryView view = 2; - - - pub fn get_view(&self) -> InventoryView { - self.view - } - pub fn clear_view(&mut self) { - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: InventoryView) { - self.view = v; - } -} - -impl ::protobuf::Message for GetInventoryRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetInventoryRequest { - GetInventoryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInventoryRequest| { &m.name }, - |m: &mut GetInventoryRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &GetInventoryRequest| { &m.view }, - |m: &mut GetInventoryRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInventoryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetInventoryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInventoryRequest::new) - } -} - -impl ::protobuf::Clear for GetInventoryRequest { - fn clear(&mut self) { - self.name.clear(); - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetInventoryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetInventoryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInventoriesRequest { - // message fields - pub parent: ::std::string::String, - pub view: InventoryView, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInventoriesRequest { - fn default() -> &'a ListInventoriesRequest { - ::default_instance() - } -} - -impl ListInventoriesRequest { - pub fn new() -> ListInventoriesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.InventoryView view = 2; - - - pub fn get_view(&self) -> InventoryView { - self.view - } - pub fn clear_view(&mut self) { - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: InventoryView) { - self.view = v; - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 5; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInventoriesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(5, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInventoriesRequest { - ListInventoriesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInventoriesRequest| { &m.parent }, - |m: &mut ListInventoriesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &ListInventoriesRequest| { &m.view }, - |m: &mut ListInventoriesRequest| { &mut m.view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInventoriesRequest| { &m.page_size }, - |m: &mut ListInventoriesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInventoriesRequest| { &m.page_token }, - |m: &mut ListInventoriesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListInventoriesRequest| { &m.filter }, - |m: &mut ListInventoriesRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInventoriesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInventoriesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInventoriesRequest::new) - } -} - -impl ::protobuf::Clear for ListInventoriesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInventoriesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInventoriesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInventoriesResponse { - // message fields - pub inventories: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInventoriesResponse { - fn default() -> &'a ListInventoriesResponse { - ::default_instance() - } -} - -impl ListInventoriesResponse { - pub fn new() -> ListInventoriesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.Inventory inventories = 1; - - - pub fn get_inventories(&self) -> &[Inventory] { - &self.inventories - } - pub fn clear_inventories(&mut self) { - self.inventories.clear(); - } - - // Param is passed by value, moved - pub fn set_inventories(&mut self, v: ::protobuf::RepeatedField) { - self.inventories = v; - } - - // Mutable pointer to the field. - pub fn mut_inventories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventories - } - - // Take field - pub fn take_inventories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventories, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInventoriesResponse { - fn is_initialized(&self) -> bool { - for v in &self.inventories { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventories)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.inventories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.inventories { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInventoriesResponse { - ListInventoriesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventories", - |m: &ListInventoriesResponse| { &m.inventories }, - |m: &mut ListInventoriesResponse| { &mut m.inventories }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInventoriesResponse| { &m.next_page_token }, - |m: &mut ListInventoriesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInventoriesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInventoriesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInventoriesResponse::new) - } -} - -impl ::protobuf::Clear for ListInventoriesResponse { - fn clear(&mut self) { - self.inventories.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInventoriesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInventoriesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum InventoryView { - INVENTORY_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2, -} - -impl ::protobuf::ProtobufEnum for InventoryView { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(InventoryView::INVENTORY_VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(InventoryView::BASIC), - 2 => ::std::option::Option::Some(InventoryView::FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [InventoryView] = &[ - InventoryView::INVENTORY_VIEW_UNSPECIFIED, - InventoryView::BASIC, - InventoryView::FULL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("InventoryView", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for InventoryView { -} - -impl ::std::default::Default for InventoryView { - fn default() -> Self { - InventoryView::INVENTORY_VIEW_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for InventoryView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n(google/cloud/osconfig/v1/inventory.proto\x12\x18google.cloud.osconfig\ - .v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.pr\ - oto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\ - \"\xfa\x1a\n\tInventory\x12\x17\n\x04name\x18\x03\x20\x01(\tR\x04nameB\ - \x03\xe0A\x03\x12C\n\x07os_info\x18\x01\x20\x01(\x0b2*.google.cloud.osco\ - nfig.v1.Inventory.OsInfoR\x06osInfo\x12D\n\x05items\x18\x02\x20\x03(\x0b\ - 2..google.cloud.osconfig.v1.Inventory.ItemsEntryR\x05items\x12@\n\x0bupd\ - ate_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTim\ - eB\x03\xe0A\x03\x1a\xa2\x02\n\x06OsInfo\x12\x1a\n\x08hostname\x18\t\x20\ - \x01(\tR\x08hostname\x12\x1b\n\tlong_name\x18\x02\x20\x01(\tR\x08longNam\ - e\x12\x1d\n\nshort_name\x18\x03\x20\x01(\tR\tshortName\x12\x18\n\x07vers\ - ion\x18\x04\x20\x01(\tR\x07version\x12\"\n\x0carchitecture\x18\x05\x20\ - \x01(\tR\x0carchitecture\x12%\n\x0ekernel_version\x18\x06\x20\x01(\tR\rk\ - ernelVersion\x12%\n\x0ekernel_release\x18\x07\x20\x01(\tR\rkernelRelease\ - \x124\n\x16osconfig_agent_version\x18\x08\x20\x01(\tR\x14osconfigAgentVe\ - rsion\x1a\x89\x05\n\x04Item\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\ - \x12T\n\x0borigin_type\x18\x02\x20\x01(\x0e23.google.cloud.osconfig.v1.I\ - nventory.Item.OriginTypeR\noriginType\x12;\n\x0bcreate_time\x18\x08\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_t\ - ime\x18\t\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTime\x12A\ - \n\x04type\x18\x05\x20\x01(\x0e2-.google.cloud.osconfig.v1.Inventory.Ite\ - m.TypeR\x04type\x12b\n\x11installed_package\x18\x06\x20\x01(\x0b23.googl\ - e.cloud.osconfig.v1.Inventory.SoftwarePackageH\0R\x10installedPackage\ - \x12b\n\x11available_package\x18\x07\x20\x01(\x0b23.google.cloud.osconfi\ - g.v1.Inventory.SoftwarePackageH\0R\x10availablePackage\"?\n\nOriginType\ - \x12\x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\0\x12\x14\n\x10INVENTORY_REPOR\ - T\x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x15\n\x11\ - INSTALLED_PACKAGE\x10\x01\x12\x15\n\x11AVAILABLE_PACKAGE\x10\x02B\t\n\ - \x07details\x1a\xed\x06\n\x0fSoftwarePackage\x12W\n\x0byum_package\x18\ - \x01\x20\x01(\x0b24.google.cloud.osconfig.v1.Inventory.VersionedPackageH\ - \0R\nyumPackage\x12W\n\x0bapt_package\x18\x02\x20\x01(\x0b24.google.clou\ - d.osconfig.v1.Inventory.VersionedPackageH\0R\naptPackage\x12]\n\x0ezyppe\ - r_package\x18\x03\x20\x01(\x0b24.google.cloud.osconfig.v1.Inventory.Vers\ - ionedPackageH\0R\rzypperPackage\x12]\n\x0egooget_package\x18\x04\x20\x01\ - (\x0b24.google.cloud.osconfig.v1.Inventory.VersionedPackageH\0R\rgoogetP\ - ackage\x12T\n\x0czypper_patch\x18\x05\x20\x01(\x0b2/.google.cloud.osconf\ - ig.v1.Inventory.ZypperPatchH\0R\x0bzypperPatch\x12[\n\x0bwua_package\x18\ - \x06\x20\x01(\x0b28.google.cloud.osconfig.v1.Inventory.WindowsUpdatePack\ - ageH\0R\nwuaPackage\x12h\n\x0bqfe_package\x18\x07\x20\x01(\x0b2E.google.\ - cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackageH\0R\nqfePa\ - ckage\x12W\n\x0bcos_package\x18\x08\x20\x01(\x0b24.google.cloud.osconfig\ - .v1.Inventory.VersionedPackageH\0R\ncosPackage\x12i\n\x13windows_applica\ - tion\x18\t\x20\x01(\x0b26.google.cloud.osconfig.v1.Inventory.WindowsAppl\ - icationH\0R\x12windowsApplicationB\t\n\x07details\x1as\n\x10VersionedPac\ - kage\x12!\n\x0cpackage_name\x18\x04\x20\x01(\tR\x0bpackageName\x12\"\n\ - \x0carchitecture\x18\x02\x20\x01(\tR\x0carchitecture\x12\x18\n\x07versio\ - n\x18\x03\x20\x01(\tR\x07version\x1a~\n\x0bZypperPatch\x12\x1d\n\npatch_\ - name\x18\x05\x20\x01(\tR\tpatchName\x12\x1a\n\x08category\x18\x02\x20\ - \x01(\tR\x08category\x12\x1a\n\x08severity\x18\x03\x20\x01(\tR\x08severi\ - ty\x12\x18\n\x07summary\x18\x04\x20\x01(\tR\x07summary\x1a\x89\x04\n\x14\ - WindowsUpdatePackage\x12\x14\n\x05title\x18\x01\x20\x01(\tR\x05title\x12\ - \x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x12n\n\ncategor\ - ies\x18\x03\x20\x03(\x0b2N.google.cloud.osconfig.v1.Inventory.WindowsUpd\ - atePackage.WindowsUpdateCategoryR\ncategories\x12$\n\x0ekb_article_ids\ - \x18\x04\x20\x03(\tR\x0ckbArticleIds\x12\x1f\n\x0bsupport_url\x18\x0b\ - \x20\x01(\tR\nsupportUrl\x12$\n\x0emore_info_urls\x18\x05\x20\x03(\tR\ - \x0cmoreInfoUrls\x12\x1b\n\tupdate_id\x18\x06\x20\x01(\tR\x08updateId\ - \x12'\n\x0frevision_number\x18\x07\x20\x01(\x05R\x0erevisionNumber\x12Y\ - \n\x1blast_deployment_change_time\x18\n\x20\x01(\x0b2\x1a.google.protobu\ - f.TimestampR\x18lastDeploymentChangeTime\x1a;\n\x15WindowsUpdateCategory\ - \x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\ - \x01(\tR\x04name\x1a\xbc\x01\n!WindowsQuickFixEngineeringPackage\x12\x18\ - \n\x07caption\x18\x01\x20\x01(\tR\x07caption\x12\x20\n\x0bdescription\ - \x18\x02\x20\x01(\tR\x0bdescription\x12\x1c\n\nhot_fix_id\x18\x03\x20\ - \x01(\tR\x08hotFixId\x12=\n\x0cinstall_time\x18\x05\x20\x01(\x0b2\x1a.go\ - ogle.protobuf.TimestampR\x0binstallTime\x1a\xd1\x01\n\x12WindowsApplicat\ - ion\x12!\n\x0cdisplay_name\x18\x01\x20\x01(\tR\x0bdisplayName\x12'\n\x0f\ - display_version\x18\x02\x20\x01(\tR\x0edisplayVersion\x12\x1c\n\tpublish\ - er\x18\x03\x20\x01(\tR\tpublisher\x124\n\x0cinstall_date\x18\x04\x20\x01\ - (\x0b2\x11.google.type.DateR\x0binstallDate\x12\x1b\n\thelp_link\x18\x05\ - \x20\x01(\tR\x08helpLink\x1ab\n\nItemsEntry\x12\x10\n\x03key\x18\x01\x20\ - \x01(\tR\x03key\x12>\n\x05value\x18\x02\x20\x01(\x0b2(.google.cloud.osco\ - nfig.v1.Inventory.ItemR\x05value:\x028\x01:n\xeaAk\n!osconfig.googleapis\ - .com/Inventory\x12Fprojects/{project}/locations/{location}/instances/{in\ - stance}/inventory\"\x91\x01\n\x13GetInventoryRequest\x12=\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB)\xfaA#\n!osconfig.googleapis.com/Inventory\xe0\ - A\x02\x12;\n\x04view\x18\x02\x20\x01(\x0e2'.google.cloud.osconfig.v1.Inv\ - entoryViewR\x04view\"\xea\x01\n\x16ListInventoriesRequest\x12?\n\x06pare\ - nt\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fcompute.googleapis.com/Ins\ - tance\xe0A\x02\x12;\n\x04view\x18\x02\x20\x01(\x0e2'.google.cloud.osconf\ - ig.v1.InventoryViewR\x04view\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\ - \x08pageSize\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\x12\ - \x16\n\x06filter\x18\x05\x20\x01(\tR\x06filter\"\x88\x01\n\x17ListInvent\ - oriesResponse\x12E\n\x0binventories\x18\x01\x20\x03(\x0b2#.google.cloud.\ - osconfig.v1.InventoryR\x0binventories\x12&\n\x0fnext_page_token\x18\x02\ - \x20\x01(\tR\rnextPageToken*D\n\rInventoryView\x12\x1e\n\x1aINVENTORY_VI\ - EW_UNSPECIFIED\x10\0\x12\t\n\x05BASIC\x10\x01\x12\x08\n\x04FULL\x10\x02B\ - \xbb\x01\n\x1ccom.google.cloud.osconfig.v1B\x0bInventoriesP\x01Z8cloud.g\ - oogle.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Clou\ - d.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::\ - Cloud::OsConfig::V1J\xfcl\n\x07\x12\x05\x0e\0\xff\x02\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\ - \x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0\ - )\n\t\n\x02\x03\x03\x12\x03\x15\0\x20\n\x08\n\x01\x08\x12\x03\x17\05\n\t\ - \n\x02\x08%\x12\x03\x17\05\n\x08\n\x01\x08\x12\x03\x18\0O\n\t\n\x02\x08\ - \x0b\x12\x03\x18\0O\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\ - \x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0,\n\t\n\x02\x08\x08\x12\x03\ - \x1a\0,\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\x02\x08\x01\x12\x03\x1b\05\ - \n\x08\n\x01\x08\x12\x03\x1c\05\n\t\n\x02\x08)\x12\x03\x1c\05\n\x08\n\ - \x01\x08\x12\x03\x1d\04\n\t\n\x02\x08-\x12\x03\x1d\04\n\x87\x04\n\x02\ - \x04\0\x12\x05)\0\xb2\x02\x01\x1a\xfd\x02\x20This\x20API\x20resource\x20\ - represents\x20the\x20available\x20inventory\x20data\x20for\x20a\n\x20Com\ - pute\x20Engine\x20virtual\x20machine\x20(VM)\x20instance\x20at\x20a\x20g\ - iven\x20point\x20in\x20time.\n\n\x20You\x20can\x20use\x20this\x20API\x20\ - resource\x20to\x20determine\x20the\x20inventory\x20data\x20of\x20your\ - \x20VM.\n\n\x20For\x20more\x20information,\x20see\x20[Information\x20pro\ - vided\x20by\x20OS\x20inventory\n\x20management](https://cloud.google.com\ - /compute/docs/instances/os-inventory-management#data-collected).\n2z\x20\ - OS\x20Config\x20Inventory\x20is\x20a\x20service\x20for\x20collecting\x20\ - and\x20reporting\x20operating\n\x20system\x20and\x20package\x20informati\ - on\x20on\x20VM\x20instances.\n\n\n\n\x03\x04\0\x01\x12\x03)\x08\x11\n\ - \x0b\n\x03\x04\0\x07\x12\x04*\x02-\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\ - \x04*\x02-\x04\n8\n\x04\x04\0\x03\0\x12\x040\x02K\x03\x1a*\x20Operating\ - \x20system\x20information\x20for\x20the\x20VM.\n\n\x0c\n\x05\x04\0\x03\0\ - \x01\x12\x030\n\x10\n!\n\x06\x04\0\x03\0\x02\0\x12\x032\x04\x18\x1a\x12\ - \x20The\x20VM\x20hostname.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x032\ - \x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x032\x0b\x13\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x03\x12\x032\x16\x17\n\x81\x01\n\x06\x04\0\x03\0\x02\ - \x01\x12\x037\x04\x19\x1ar\x20The\x20operating\x20system\x20long\x20name\ - .\n\x20For\x20example\x20'Debian\x20GNU/Linux\x209'\x20or\x20'Microsoft\ - \x20Window\x20Server\x202019\n\x20Datacenter'.\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x01\x05\x12\x037\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x037\ - \x0b\x14\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x037\x17\x18\nV\n\x06\ - \x04\0\x03\0\x02\x02\x12\x03;\x04\x1a\x1aG\x20The\x20operating\x20system\ - \x20short\x20name.\n\x20For\x20example,\x20'windows'\x20or\x20'debian'.\ - \n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\x03;\x04\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x01\x12\x03;\x0b\x15\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\ - \x12\x03;\x18\x19\n5\n\x06\x04\0\x03\0\x02\x03\x12\x03>\x04\x17\x1a&\x20\ - The\x20version\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\x03\x05\x12\x03>\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x01\ - \x12\x03>\x0b\x12\n\x0e\n\x07\x04\0\x03\0\x02\x03\x03\x12\x03>\x15\x16\n\ - A\n\x06\x04\0\x03\0\x02\x04\x12\x03A\x04\x1c\x1a2\x20The\x20system\x20ar\ - chitecture\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x04\x05\x12\x03A\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x04\x01\x12\ - \x03A\x0b\x17\n\x0e\n\x07\x04\0\x03\0\x02\x04\x03\x12\x03A\x1a\x1b\n<\n\ - \x06\x04\0\x03\0\x02\x05\x12\x03D\x04\x1e\x1a-\x20The\x20kernel\x20versi\ - on\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\0\x02\ - \x05\x05\x12\x03D\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x05\x01\x12\x03D\x0b\ - \x19\n\x0e\n\x07\x04\0\x03\0\x02\x05\x03\x12\x03D\x1c\x1d\n<\n\x06\x04\0\ - \x03\0\x02\x06\x12\x03G\x04\x1e\x1a-\x20The\x20kernel\x20release\x20of\ - \x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\0\x02\x06\x05\ - \x12\x03G\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x06\x01\x12\x03G\x0b\x19\n\ - \x0e\n\x07\x04\0\x03\0\x02\x06\x03\x12\x03G\x1c\x1d\nN\n\x06\x04\0\x03\0\ - \x02\x07\x12\x03J\x04&\x1a?\x20The\x20current\x20version\x20of\x20the\ - \x20OS\x20Config\x20agent\x20running\x20on\x20the\x20VM.\n\n\x0e\n\x07\ - \x04\0\x03\0\x02\x07\x05\x12\x03J\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x07\ - \x01\x12\x03J\x0b!\n\x0e\n\x07\x04\0\x03\0\x02\x07\x03\x12\x03J$%\n4\n\ - \x04\x04\0\x03\x01\x12\x04N\x02|\x03\x1a&\x20A\x20single\x20piece\x20of\ - \x20inventory\x20on\x20a\x20VM.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03N\ - \n\x0e\n:\n\x06\x04\0\x03\x01\x04\0\x12\x04P\x04W\x05\x1a*\x20The\x20ori\ - gin\x20of\x20a\x20specific\x20inventory\x20item.\n\n\x0e\n\x07\x04\0\x03\ - \x01\x04\0\x01\x12\x03P\t\x13\n=\n\x08\x04\0\x03\x01\x04\0\x02\0\x12\x03\ - R\x06\"\x1a,\x20Invalid.\x20An\x20origin\x20type\x20must\x20be\x20specif\ - ied.\n\n\x10\n\t\x04\0\x03\x01\x04\0\x02\0\x01\x12\x03R\x06\x1d\n\x10\n\ - \t\x04\0\x03\x01\x04\0\x02\0\x02\x12\x03R\x20!\n|\n\x08\x04\0\x03\x01\ - \x04\0\x02\x01\x12\x03V\x06\x1b\x1ak\x20This\x20inventory\x20item\x20was\ - \x20discovered\x20as\x20the\x20result\x20of\x20the\x20agent\n\x20reporti\ - ng\x20inventory\x20via\x20the\x20reporting\x20API.\n\n\x10\n\t\x04\0\x03\ - \x01\x04\0\x02\x01\x01\x12\x03V\x06\x16\n\x10\n\t\x04\0\x03\x01\x04\0\ - \x02\x01\x02\x12\x03V\x19\x1a\nL\n\x06\x04\0\x03\x01\x04\x01\x12\x04Z\ - \x04c\x05\x1a<\x20The\x20different\x20types\x20of\x20inventory\x20that\ - \x20are\x20tracked\x20on\x20a\x20VM.\n\n\x0e\n\x07\x04\0\x03\x01\x04\x01\ - \x01\x12\x03Z\t\r\n6\n\x08\x04\0\x03\x01\x04\x01\x02\0\x12\x03\\\x06\x1b\ - \x1a%\x20Invalid.\x20An\x20type\x20must\x20be\x20specified.\n\n\x10\n\t\ - \x04\0\x03\x01\x04\x01\x02\0\x01\x12\x03\\\x06\x16\n\x10\n\t\x04\0\x03\ - \x01\x04\x01\x02\0\x02\x12\x03\\\x19\x1a\nI\n\x08\x04\0\x03\x01\x04\x01\ - \x02\x01\x12\x03_\x06\x1c\x1a8\x20This\x20represents\x20a\x20package\x20\ - that\x20is\x20installed\x20on\x20the\x20VM.\n\n\x10\n\t\x04\0\x03\x01\ - \x04\x01\x02\x01\x01\x12\x03_\x06\x17\n\x10\n\t\x04\0\x03\x01\x04\x01\ - \x02\x01\x02\x12\x03_\x1a\x1b\nM\n\x08\x04\0\x03\x01\x04\x01\x02\x02\x12\ - \x03b\x06\x1c\x1a<\x20This\x20represents\x20an\x20update\x20that\x20is\ - \x20available\x20for\x20a\x20package.\n\n\x10\n\t\x04\0\x03\x01\x04\x01\ - \x02\x02\x01\x12\x03b\x06\x17\n\x10\n\t\x04\0\x03\x01\x04\x01\x02\x02\ - \x02\x12\x03b\x1a\x1b\nK\n\x06\x04\0\x03\x01\x02\0\x12\x03f\x04\x12\x1a<\ - \x20Identifier\x20for\x20this\x20item,\x20unique\x20across\x20items\x20f\ - or\x20this\x20VM.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\x03f\x04\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03f\x0b\r\n\x0e\n\x07\x04\0\x03\ - \x01\x02\0\x03\x12\x03f\x10\x11\n3\n\x06\x04\0\x03\x01\x02\x01\x12\x03i\ - \x04\x1f\x1a$\x20The\x20origin\x20of\x20this\x20inventory\x20item.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x03i\x04\x0e\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x01\x01\x12\x03i\x0f\x1a\n\x0e\n\x07\x04\0\x03\x01\x02\x01\ - \x03\x12\x03i\x1d\x1e\n=\n\x06\x04\0\x03\x01\x02\x02\x12\x03l\x04.\x1a.\ - \x20When\x20this\x20inventory\x20item\x20was\x20first\x20detected.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x02\x06\x12\x03l\x04\x1d\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x02\x01\x12\x03l\x1e)\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\ - \x12\x03l,-\n<\n\x06\x04\0\x03\x01\x02\x03\x12\x03o\x04.\x1a-\x20When\ - \x20this\x20inventory\x20item\x20was\x20last\x20modified.\n\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x03\x06\x12\x03o\x04\x1d\n\x0e\n\x07\x04\0\x03\x01\ - \x02\x03\x01\x12\x03o\x1e)\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x03\x12\x03\ - o,-\nU\n\x06\x04\0\x03\x01\x02\x04\x12\x03r\x04\x12\x1aF\x20The\x20speci\ - fic\x20type\x20of\x20inventory,\x20correlating\x20to\x20its\x20specific\ - \x20details.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x06\x12\x03r\x04\x08\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x04\x01\x12\x03r\t\r\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x04\x03\x12\x03r\x10\x11\nL\n\x06\x04\0\x03\x01\x08\0\x12\x04u\ - \x04{\x05\x1a<\x20Specific\x20details\x20of\x20this\x20inventory\x20item\ - \x20based\x20on\x20its\x20type.\n\n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\ - \x12\x03u\n\x11\n=\n\x06\x04\0\x03\x01\x02\x05\x12\x03w\x06,\x1a.\x20Sof\ - tware\x20package\x20present\x20on\x20the\x20VM\x20instance.\n\n\x0e\n\ - \x07\x04\0\x03\x01\x02\x05\x06\x12\x03w\x06\x15\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x05\x01\x12\x03w\x16'\n\x0e\n\x07\x04\0\x03\x01\x02\x05\x03\x12\ - \x03w*+\nO\n\x06\x04\0\x03\x01\x02\x06\x12\x03z\x06,\x1a@\x20Software\ - \x20package\x20available\x20to\x20be\x20installed\x20on\x20the\x20VM\x20\ - instance.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x06\x06\x12\x03z\x06\x15\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x06\x01\x12\x03z\x16'\n\x0e\n\x07\x04\0\x03\x01\ - \x02\x06\x03\x12\x03z*+\nF\n\x04\x04\0\x03\x02\x12\x05\x7f\x02\xac\x01\ - \x03\x1a7\x20Software\x20package\x20information\x20of\x20the\x20operatin\ - g\x20system.\n\n\x0c\n\x05\x04\0\x03\x02\x01\x12\x03\x7f\n\x19\nO\n\x06\ - \x04\0\x03\x02\x08\0\x12\x06\x81\x01\x04\xab\x01\x05\x1a=\x20Information\ - \x20about\x20the\x20different\x20types\x20of\x20software\x20packages.\n\ - \n\x0f\n\x07\x04\0\x03\x02\x08\0\x01\x12\x04\x81\x01\n\x11\n\xbc\x01\n\ - \x06\x04\0\x03\x02\x02\0\x12\x04\x85\x01\x06'\x1a\xab\x01\x20Yum\x20pack\ - age\x20info.\n\x20For\x20details\x20about\x20the\x20yum\x20package\x20ma\ - nager,\x20see\n\x20https://access.redhat.com/documentation/en-us/red_hat\ - _enterprise_linux/6/html/deployment_guide/ch-yum.\n\n\x0f\n\x07\x04\0\ - \x03\x02\x02\0\x06\x12\x04\x85\x01\x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\ - \0\x01\x12\x04\x85\x01\x17\"\n\x0f\n\x07\x04\0\x03\x02\x02\0\x03\x12\x04\ - \x85\x01%&\nz\n\x06\x04\0\x03\x02\x02\x01\x12\x04\x8a\x01\x06'\x1aj\x20D\ - etails\x20of\x20an\x20APT\x20package.\n\x20For\x20details\x20about\x20th\ - e\x20apt\x20package\x20manager,\x20see\n\x20https://wiki.debian.org/Apt.\ - \n\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x06\x12\x04\x8a\x01\x06\x16\n\x0f\n\ - \x07\x04\0\x03\x02\x02\x01\x01\x12\x04\x8a\x01\x17\"\n\x0f\n\x07\x04\0\ - \x03\x02\x02\x01\x03\x12\x04\x8a\x01%&\n\x8d\x01\n\x06\x04\0\x03\x02\x02\ - \x02\x12\x04\x8f\x01\x06*\x1a}\x20Details\x20of\x20a\x20Zypper\x20packag\ - e.\n\x20For\x20details\x20about\x20the\x20Zypper\x20package\x20manager,\ - \x20see\n\x20https://en.opensuse.org/SDB:Zypper_manual.\n\n\x0f\n\x07\ - \x04\0\x03\x02\x02\x02\x06\x12\x04\x8f\x01\x06\x16\n\x0f\n\x07\x04\0\x03\ - \x02\x02\x02\x01\x12\x04\x8f\x01\x17%\n\x0f\n\x07\x04\0\x03\x02\x02\x02\ - \x03\x12\x04\x8f\x01()\n\x86\x01\n\x06\x04\0\x03\x02\x02\x03\x12\x04\x94\ - \x01\x06*\x1av\x20Details\x20of\x20a\x20Googet\x20package.\n\x20\x20For\ - \x20details\x20about\x20the\x20googet\x20package\x20manager,\x20see\n\ - \x20\x20https://github.com/google/googet.\n\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x03\x06\x12\x04\x94\x01\x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\x03\ - \x01\x12\x04\x94\x01\x17%\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\ - \x94\x01()\n\x8b\x01\n\x06\x04\0\x03\x02\x02\x04\x12\x04\x99\x01\x06#\ - \x1a{\x20Details\x20of\x20a\x20Zypper\x20patch.\n\x20For\x20details\x20a\ - bout\x20the\x20Zypper\x20package\x20manager,\x20see\n\x20https://en.open\ - suse.org/SDB:Zypper_manual.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\x12\ - \x04\x99\x01\x06\x11\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\x99\ - \x01\x12\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\x99\x01!\"\n\ - \x9c\x01\n\x06\x04\0\x03\x02\x02\x05\x12\x04\x9e\x01\x06+\x1a\x8b\x01\ - \x20Details\x20of\x20a\x20Windows\x20Update\x20package.\n\x20See\x20http\ - s://docs.microsoft.com/en-us/windows/win32/api/_wua/\x20for\n\x20informa\ - tion\x20about\x20Windows\x20Update.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x05\ - \x06\x12\x04\x9e\x01\x06\x1a\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x01\x12\ - \x04\x9e\x01\x1b&\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\x12\x04\x9e\x01)\ - *\n\xce\x01\n\x06\x04\0\x03\x02\x02\x06\x12\x04\xa4\x01\x068\x1a\xbd\x01\ - \x20Details\x20of\x20a\x20Windows\x20Quick\x20Fix\x20engineering\x20pack\ - age.\n\x20See\n\x20https://docs.microsoft.com/en-us/windows/win32/cimwin\ - 32prov/win32-quickfixengineering\n\x20for\x20info\x20in\x20Windows\x20Qu\ - ick\x20Fix\x20Engineering.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x06\x12\ - \x04\xa4\x01\x06'\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x01\x12\x04\xa4\x01(\ - 3\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x03\x12\x04\xa4\x0167\n+\n\x06\x04\0\ - \x03\x02\x02\x07\x12\x04\xa7\x01\x06'\x1a\x1b\x20Details\x20of\x20a\x20C\ - OS\x20package.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x07\x06\x12\x04\xa7\x01\ - \x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\x07\x01\x12\x04\xa7\x01\x17\"\n\ - \x0f\n\x07\x04\0\x03\x02\x02\x07\x03\x12\x04\xa7\x01%&\n1\n\x06\x04\0\ - \x03\x02\x02\x08\x12\x04\xaa\x01\x061\x1a!\x20Details\x20of\x20Windows\ - \x20Application.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x08\x06\x12\x04\xaa\x01\ - \x06\x18\n\x0f\n\x07\x04\0\x03\x02\x02\x08\x01\x12\x04\xaa\x01\x19,\n\ - \x0f\n\x07\x04\0\x03\x02\x02\x08\x03\x12\x04\xaa\x01/0\n\x9b\x01\n\x04\ - \x04\0\x03\x03\x12\x06\xb0\x01\x02\xb9\x01\x03\x1a\x8a\x01\x20Informatio\ - n\x20related\x20to\x20the\x20a\x20standard\x20versioned\x20package.\x20\ - \x20This\x20includes\n\x20package\x20info\x20for\x20APT,\x20Yum,\x20Zypp\ - er,\x20and\x20Googet\x20package\x20managers.\n\n\r\n\x05\x04\0\x03\x03\ - \x01\x12\x04\xb0\x01\n\x1a\n*\n\x06\x04\0\x03\x03\x02\0\x12\x04\xb2\x01\ - \x04\x1c\x1a\x1a\x20The\x20name\x20of\x20the\x20package.\n\n\x0f\n\x07\ - \x04\0\x03\x03\x02\0\x05\x12\x04\xb2\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\ - \x02\0\x01\x12\x04\xb2\x01\x0b\x17\n\x0f\n\x07\x04\0\x03\x03\x02\0\x03\ - \x12\x04\xb2\x01\x1a\x1b\nG\n\x06\x04\0\x03\x03\x02\x01\x12\x04\xb5\x01\ - \x04\x1c\x1a7\x20The\x20system\x20architecture\x20this\x20package\x20is\ - \x20intended\x20for.\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x05\x12\x04\xb5\ - \x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x01\x12\x04\xb5\x01\x0b\x17\ - \n\x0f\n\x07\x04\0\x03\x03\x02\x01\x03\x12\x04\xb5\x01\x1a\x1b\n-\n\x06\ - \x04\0\x03\x03\x02\x02\x12\x04\xb8\x01\x04\x17\x1a\x1d\x20The\x20version\ - \x20of\x20the\x20package.\n\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x05\x12\ - \x04\xb8\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x01\x12\x04\xb8\x01\ - \x0b\x12\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x03\x12\x04\xb8\x01\x15\x16\n\ - 4\n\x04\x04\0\x03\x04\x12\x06\xbc\x01\x02\xc8\x01\x03\x1a$\x20Details\ - \x20related\x20to\x20a\x20Zypper\x20Patch.\n\n\r\n\x05\x04\0\x03\x04\x01\ - \x12\x04\xbc\x01\n\x15\n(\n\x06\x04\0\x03\x04\x02\0\x12\x04\xbe\x01\x04\ - \x1a\x1a\x18\x20The\x20name\x20of\x20the\x20patch.\n\n\x0f\n\x07\x04\0\ - \x03\x04\x02\0\x05\x12\x04\xbe\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\0\ - \x01\x12\x04\xbe\x01\x0b\x15\n\x0f\n\x07\x04\0\x03\x04\x02\0\x03\x12\x04\ - \xbe\x01\x18\x19\n,\n\x06\x04\0\x03\x04\x02\x01\x12\x04\xc1\x01\x04\x18\ - \x1a\x1c\x20The\x20category\x20of\x20the\x20patch.\n\n\x0f\n\x07\x04\0\ - \x03\x04\x02\x01\x05\x12\x04\xc1\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\ - \x01\x01\x12\x04\xc1\x01\x0b\x13\n\x0f\n\x07\x04\0\x03\x04\x02\x01\x03\ - \x12\x04\xc1\x01\x16\x17\n7\n\x06\x04\0\x03\x04\x02\x02\x12\x04\xc4\x01\ - \x04\x18\x1a'\x20The\x20severity\x20specified\x20for\x20this\x20patch\n\ - \n\x0f\n\x07\x04\0\x03\x04\x02\x02\x05\x12\x04\xc4\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x04\x02\x02\x01\x12\x04\xc4\x01\x0b\x13\n\x0f\n\x07\x04\0\x03\ - \x04\x02\x02\x03\x12\x04\xc4\x01\x16\x17\nD\n\x06\x04\0\x03\x04\x02\x03\ - \x12\x04\xc7\x01\x04\x17\x1a4\x20Any\x20summary\x20information\x20provid\ - ed\x20about\x20this\x20patch.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x05\ - \x12\x04\xc7\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x01\x12\x04\xc7\ - \x01\x0b\x12\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x03\x12\x04\xc7\x01\x15\ - \x16\n\xb0\x02\n\x04\x04\0\x03\x05\x12\x06\xcf\x01\x02\xf6\x01\x03\x1a\ - \x9f\x02\x20Details\x20related\x20to\x20a\x20Windows\x20Update\x20packag\ - e.\n\x20Field\x20data\x20and\x20names\x20are\x20taken\x20from\x20Windows\ - \x20Update\x20API\x20IUpdate\x20Interface:\n\x20https://docs.microsoft.c\ - om/en-us/windows/win32/api/_wua/\n\x20Descriptive\x20fields\x20like\x20t\ - itle,\x20and\x20description\x20are\x20localized\x20based\x20on\n\x20the\ - \x20locale\x20of\x20the\x20VM\x20being\x20updated.\n\n\r\n\x05\x04\0\x03\ - \x05\x01\x12\x04\xcf\x01\n\x1e\n?\n\x06\x04\0\x03\x05\x03\0\x12\x06\xd1\ - \x01\x04\xd7\x01\x05\x1a-\x20Categories\x20specified\x20by\x20the\x20Win\ - dows\x20Update.\n\n\x0f\n\x07\x04\0\x03\x05\x03\0\x01\x12\x04\xd1\x01\ - \x0c!\nB\n\x08\x04\0\x03\x05\x03\0\x02\0\x12\x04\xd3\x01\x06\x14\x1a0\ - \x20The\x20identifier\x20of\x20the\x20windows\x20update\x20category.\n\n\ - \x11\n\t\x04\0\x03\x05\x03\0\x02\0\x05\x12\x04\xd3\x01\x06\x0c\n\x11\n\t\ - \x04\0\x03\x05\x03\0\x02\0\x01\x12\x04\xd3\x01\r\x0f\n\x11\n\t\x04\0\x03\ - \x05\x03\0\x02\0\x03\x12\x04\xd3\x01\x12\x13\n<\n\x08\x04\0\x03\x05\x03\ - \0\x02\x01\x12\x04\xd6\x01\x06\x16\x1a*\x20The\x20name\x20of\x20the\x20w\ - indows\x20update\x20category.\n\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\ - \x05\x12\x04\xd6\x01\x06\x0c\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\x01\ - \x12\x04\xd6\x01\r\x11\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\x03\x12\x04\ - \xd6\x01\x14\x15\n<\n\x06\x04\0\x03\x05\x02\0\x12\x04\xda\x01\x04\x15\ - \x1a,\x20The\x20localized\x20title\x20of\x20the\x20update\x20package.\n\ - \n\x0f\n\x07\x04\0\x03\x05\x02\0\x05\x12\x04\xda\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x05\x02\0\x01\x12\x04\xda\x01\x0b\x10\n\x0f\n\x07\x04\0\x03\ - \x05\x02\0\x03\x12\x04\xda\x01\x13\x14\nB\n\x06\x04\0\x03\x05\x02\x01\ - \x12\x04\xdd\x01\x04\x1b\x1a2\x20The\x20localized\x20description\x20of\ - \x20the\x20update\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x05\ - \x12\x04\xdd\x01\x04\n\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x01\x12\x04\xdd\ - \x01\x0b\x16\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x03\x12\x04\xdd\x01\x19\ - \x1a\nN\n\x06\x04\0\x03\x05\x02\x02\x12\x04\xe0\x01\x042\x1a>\x20The\x20\ - categories\x20that\x20are\x20associated\x20with\x20this\x20update\x20pac\ - kage.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x02\x04\x12\x04\xe0\x01\x04\x0c\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x02\x06\x12\x04\xe0\x01\r\"\n\x0f\n\x07\x04\ - \0\x03\x05\x02\x02\x01\x12\x04\xe0\x01#-\n\x0f\n\x07\x04\0\x03\x05\x02\ - \x02\x03\x12\x04\xe0\x0101\nt\n\x06\x04\0\x03\x05\x02\x03\x12\x04\xe4\ - \x01\x04'\x1ad\x20A\x20collection\x20of\x20Microsoft\x20Knowledge\x20Bas\ - e\x20article\x20IDs\x20that\x20are\x20associated\n\x20with\x20the\x20upd\ - ate\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x04\x12\x04\xe4\x01\ - \x04\x0c\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x05\x12\x04\xe4\x01\r\x13\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x03\x01\x12\x04\xe4\x01\x14\"\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x03\x03\x12\x04\xe4\x01%&\nZ\n\x06\x04\0\x03\x05\x02\ - \x04\x12\x04\xe7\x01\x04\x1c\x1aJ\x20A\x20hyperlink\x20to\x20the\x20lang\ - uage-specific\x20support\x20information\x20for\x20the\x20update.\n\n\x0f\ - \n\x07\x04\0\x03\x05\x02\x04\x05\x12\x04\xe7\x01\x04\n\n\x0f\n\x07\x04\0\ - \x03\x05\x02\x04\x01\x12\x04\xe7\x01\x0b\x16\n\x0f\n\x07\x04\0\x03\x05\ - \x02\x04\x03\x12\x04\xe7\x01\x19\x1b\n_\n\x06\x04\0\x03\x05\x02\x05\x12\ - \x04\xeb\x01\x04'\x1aO\x20A\x20collection\x20of\x20URLs\x20that\x20provi\ - de\x20more\x20information\x20about\x20the\x20update\n\x20package.\n\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x05\x04\x12\x04\xeb\x01\x04\x0c\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x05\x05\x12\x04\xeb\x01\r\x13\n\x0f\n\x07\x04\0\x03\ - \x05\x02\x05\x01\x12\x04\xeb\x01\x14\"\n\x0f\n\x07\x04\0\x03\x05\x02\x05\ - \x03\x12\x04\xeb\x01%&\n^\n\x06\x04\0\x03\x05\x02\x06\x12\x04\xef\x01\ - \x04\x19\x1aN\x20Gets\x20the\x20identifier\x20of\x20an\x20update\x20pack\ - age.\x20\x20Stays\x20the\x20same\x20across\n\x20revisions.\n\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x06\x05\x12\x04\xef\x01\x04\n\n\x0f\n\x07\x04\0\x03\ - \x05\x02\x06\x01\x12\x04\xef\x01\x0b\x14\n\x0f\n\x07\x04\0\x03\x05\x02\ - \x06\x03\x12\x04\xef\x01\x17\x18\n=\n\x06\x04\0\x03\x05\x02\x07\x12\x04\ - \xf2\x01\x04\x1e\x1a-\x20The\x20revision\x20number\x20of\x20this\x20upda\ - te\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x07\x05\x12\x04\xf2\x01\ - \x04\t\n\x0f\n\x07\x04\0\x03\x05\x02\x07\x01\x12\x04\xf2\x01\n\x19\n\x0f\ - \n\x07\x04\0\x03\x05\x02\x07\x03\x12\x04\xf2\x01\x1c\x1d\nP\n\x06\x04\0\ - \x03\x05\x02\x08\x12\x04\xf5\x01\x04?\x1a@\x20The\x20last\x20published\ - \x20date\x20of\x20the\x20update,\x20in\x20(UTC)\x20date\x20and\x20time.\ - \n\n\x0f\n\x07\x04\0\x03\x05\x02\x08\x06\x12\x04\xf5\x01\x04\x1d\n\x0f\n\ - \x07\x04\0\x03\x05\x02\x08\x01\x12\x04\xf5\x01\x1e9\n\x0f\n\x07\x04\0\ - \x03\x05\x02\x08\x03\x12\x04\xf5\x01<>\n\xfb\x01\n\x04\x04\0\x03\x06\x12\ - \x06\xfc\x01\x02\x88\x02\x03\x1a\xea\x01\x20Information\x20related\x20to\ - \x20a\x20Quick\x20Fix\x20Engineering\x20package.\n\x20Fields\x20are\x20t\ - aken\x20from\x20Windows\x20QuickFixEngineering\x20Interface\x20and\x20ma\ - tch\n\x20the\x20source\x20names:\n\x20https://docs.microsoft.com/en-us/w\ - indows/win32/cimwin32prov/win32-quickfixengineering\n\n\r\n\x05\x04\0\ - \x03\x06\x01\x12\x04\xfc\x01\n+\n@\n\x06\x04\0\x03\x06\x02\0\x12\x04\xfe\ - \x01\x04\x17\x1a0\x20A\x20short\x20textual\x20description\x20of\x20the\ - \x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\0\x05\x12\x04\xfe\x01\ - \x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\0\x01\x12\x04\xfe\x01\x0b\x12\n\x0f\ - \n\x07\x04\0\x03\x06\x02\0\x03\x12\x04\xfe\x01\x15\x16\n:\n\x06\x04\0\ - \x03\x06\x02\x01\x12\x04\x81\x02\x04\x1b\x1a*\x20A\x20textual\x20descrip\ - tion\x20of\x20the\x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x01\ - \x05\x12\x04\x81\x02\x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x01\x12\x04\ - \x81\x02\x0b\x16\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x03\x12\x04\x81\x02\ - \x19\x1a\nL\n\x06\x04\0\x03\x06\x02\x02\x12\x04\x84\x02\x04\x1a\x1a<\x20\ - Unique\x20identifier\x20associated\x20with\x20a\x20particular\x20QFE\x20\ - update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x02\x05\x12\x04\x84\x02\x04\n\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x02\x01\x12\x04\x84\x02\x0b\x15\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x02\x03\x12\x04\x84\x02\x18\x19\nZ\n\x06\x04\0\x03\ - \x06\x02\x03\x12\x04\x87\x02\x04/\x1aJ\x20Date\x20that\x20the\x20QFE\x20\ - update\x20was\x20installed.\x20\x20Mapped\x20from\x20installed_on\x20fie\ - ld.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x03\x06\x12\x04\x87\x02\x04\x1d\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x03\x01\x12\x04\x87\x02\x1e*\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x03\x03\x12\x04\x87\x02-.\n\xea\x01\n\x04\x04\0\x03\ - \x07\x12\x06\x8d\x02\x02\x9e\x02\x03\x1a\xd9\x01\x20Contains\x20informat\ - ion\x20about\x20a\x20Windows\x20application\x20that\x20is\x20retrieved\ - \x20from\x20the\n\x20Windows\x20Registry.\x20For\x20more\x20information\ - \x20about\x20these\x20fields,\x20see:\n\x20https://docs.microsoft.com/en\ - -us/windows/win32/msi/uninstall-registry-key\n\n\r\n\x05\x04\0\x03\x07\ - \x01\x12\x04\x8d\x02\n\x1c\n9\n\x06\x04\0\x03\x07\x02\0\x12\x04\x8f\x02\ - \x04\x1c\x1a)\x20The\x20name\x20of\x20the\x20application\x20or\x20produc\ - t.\n\n\x0f\n\x07\x04\0\x03\x07\x02\0\x05\x12\x04\x8f\x02\x04\n\n\x0f\n\ - \x07\x04\0\x03\x07\x02\0\x01\x12\x04\x8f\x02\x0b\x17\n\x0f\n\x07\x04\0\ - \x03\x07\x02\0\x03\x12\x04\x8f\x02\x1a\x1b\nM\n\x06\x04\0\x03\x07\x02\ - \x01\x12\x04\x92\x02\x04\x1f\x1a=\x20The\x20version\x20of\x20the\x20prod\ - uct\x20or\x20application\x20in\x20string\x20format.\n\n\x0f\n\x07\x04\0\ - \x03\x07\x02\x01\x05\x12\x04\x92\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\ - \x01\x01\x12\x04\x92\x02\x0b\x1a\n\x0f\n\x07\x04\0\x03\x07\x02\x01\x03\ - \x12\x04\x92\x02\x1d\x1e\nN\n\x06\x04\0\x03\x07\x02\x02\x12\x04\x95\x02\ - \x04\x19\x1a>\x20The\x20name\x20of\x20the\x20manufacturer\x20for\x20the\ - \x20product\x20or\x20application.\n\n\x0f\n\x07\x04\0\x03\x07\x02\x02\ - \x05\x12\x04\x95\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\x02\x01\x12\x04\ - \x95\x02\x0b\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x02\x03\x12\x04\x95\x02\ - \x17\x18\n\xdb\x01\n\x06\x04\0\x03\x07\x02\x03\x12\x04\x9a\x02\x04&\x1a\ - \xca\x01\x20The\x20last\x20time\x20this\x20product\x20received\x20servic\ - e.\x20The\x20value\x20of\x20this\x20property\n\x20is\x20replaced\x20each\ - \x20time\x20a\x20patch\x20is\x20applied\x20or\x20removed\x20from\x20the\ - \x20product\x20or\n\x20the\x20command-line\x20option\x20is\x20used\x20to\ - \x20repair\x20the\x20product.\n\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x06\ - \x12\x04\x9a\x02\x04\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x01\x12\x04\ - \x9a\x02\x15!\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x03\x12\x04\x9a\x02$%\n=\ - \n\x06\x04\0\x03\x07\x02\x04\x12\x04\x9d\x02\x04\x19\x1a-\x20The\x20inte\ - rnet\x20address\x20for\x20technical\x20support.\n\n\x0f\n\x07\x04\0\x03\ - \x07\x02\x04\x05\x12\x04\x9d\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\x04\ - \x01\x12\x04\x9d\x02\x0b\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x04\x03\x12\ - \x04\x9d\x02\x17\x18\n\x9e\x01\n\x04\x04\0\x02\0\x12\x04\xa4\x02\x02>\ - \x1a\x8f\x01\x20Output\x20only.\x20The\x20`Inventory`\x20API\x20resource\ - \x20name.\n\n\x20Format:\n\x20`projects/{project_number}/locations/{loca\ - tion}/instances/{instance_id}/inventory`\n\n\r\n\x05\x04\0\x02\0\x05\x12\ - \x04\xa4\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa4\x02\t\r\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\xa4\x02\x10\x11\n\r\n\x05\x04\0\x02\0\x08\ - \x12\x04\xa4\x02\x12=\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xa4\ - \x02\x13<\nC\n\x04\x04\0\x02\x01\x12\x04\xa7\x02\x02\x15\x1a5\x20Base\ - \x20level\x20operating\x20system\x20information\x20for\x20the\x20VM.\n\n\ - \r\n\x05\x04\0\x02\x01\x06\x12\x04\xa7\x02\x02\x08\n\r\n\x05\x04\0\x02\ - \x01\x01\x12\x04\xa7\x02\t\x10\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xa7\ - \x02\x13\x14\n\xf3\x01\n\x04\x04\0\x02\x02\x12\x04\xad\x02\x02\x1e\x1a\ - \xe4\x01\x20Inventory\x20items\x20related\x20to\x20the\x20VM\x20keyed\ - \x20by\x20an\x20opaque\x20unique\x20identifier\x20for\n\x20each\x20inven\ - tory\x20item.\x20\x20The\x20identifier\x20is\x20unique\x20to\x20each\x20\ - distinct\x20and\n\x20addressable\x20inventory\x20item\x20and\x20will\x20\ - change,\x20when\x20there\x20is\x20a\x20new\x20package\n\x20version.\n\n\ - \r\n\x05\x04\0\x02\x02\x06\x12\x04\xad\x02\x02\x13\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\xad\x02\x14\x19\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xad\ - \x02\x1c\x1d\nS\n\x04\x04\0\x02\x03\x12\x06\xb0\x02\x02\xb1\x022\x1aC\ - \x20Output\x20only.\x20Timestamp\x20of\x20the\x20last\x20reported\x20inv\ - entory\x20for\x20the\x20VM.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xb0\ - \x02\x02\x1b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xb0\x02\x1c'\n\r\n\x05\ - \x04\0\x02\x03\x03\x12\x04\xb0\x02*+\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\ - \xb1\x02\x061\n\x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\xb1\x02\ - \x070\nR\n\x02\x04\x01\x12\x06\xb5\x02\0\xc8\x02\x01\x1aD\x20A\x20reques\ - t\x20message\x20for\x20getting\x20inventory\x20data\x20for\x20the\x20spe\ - cified\x20VM.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xb5\x02\x08\x1b\n\xc3\ - \x02\n\x04\x04\x01\x02\0\x12\x06\xbe\x02\x02\xc3\x02\x04\x1a\xb2\x02\x20\ - Required.\x20API\x20resource\x20name\x20for\x20inventory\x20resource.\n\ - \n\x20Format:\n\x20`projects/{project}/locations/{location}/instances/{i\ - nstance}/inventory`\n\n\x20For\x20`{project}`,\x20either\x20`project-num\ - ber`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\x20For\x20`{insta\ - nce}`,\x20either\x20Compute\x20Engine\x20\x20`instance-id`\x20or\x20`ins\ - tance-name`\n\x20can\x20be\x20provided.\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xbe\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xbe\x02\t\r\ - \n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbe\x02\x10\x11\n\x0f\n\x05\x04\x01\ - \x02\0\x08\x12\x06\xbe\x02\x12\xc3\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\ - \x9c\x08\0\x12\x04\xbf\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\ - \x12\x06\xc0\x02\x04\xc2\x02\x05\n\x95\x01\n\x04\x04\x01\x02\x01\x12\x04\ - \xc7\x02\x02\x19\x1a\x86\x01\x20Inventory\x20view\x20indicating\x20what\ - \x20information\x20should\x20be\x20included\x20in\x20the\n\x20inventory\ - \x20resource.\x20If\x20unspecified,\x20the\x20default\x20view\x20is\x20B\ - ASIC.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xc7\x02\x02\x0f\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\xc7\x02\x10\x14\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xc7\x02\x17\x18\nd\n\x02\x04\x02\x12\x06\xcc\x02\0\xe8\x02\ - \x01\x1aV\x20A\x20request\x20message\x20for\x20listing\x20inventory\x20d\ - ata\x20for\x20all\x20VMs\x20in\x20the\x20specified\n\x20location.\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xcc\x02\x08\x1e\n\xc2\x01\n\x04\x04\x02\ - \x02\0\x12\x06\xd2\x02\x02\xd7\x02\x04\x1a\xb1\x01\x20Required.\x20The\ - \x20parent\x20resource\x20name.\n\n\x20Format:\x20`projects/{project}/lo\ - cations/{location}/instances/-`\n\n\x20For\x20`{project}`,\x20either\x20\ - `project-number`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\xd2\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xd2\x02\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xd2\x02\ - \x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xd2\x02\x14\xd7\x02\x03\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xd3\x02\x04*\n\x11\n\x07\ - \x04\x02\x02\0\x08\x9f\x08\x12\x06\xd4\x02\x04\xd6\x02\x05\n\x95\x01\n\ - \x04\x04\x02\x02\x01\x12\x04\xdb\x02\x02\x19\x1a\x86\x01\x20Inventory\ - \x20view\x20indicating\x20what\x20information\x20should\x20be\x20include\ - d\x20in\x20the\n\x20inventory\x20resource.\x20If\x20unspecified,\x20the\ - \x20default\x20view\x20is\x20BASIC.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\ - \x04\xdb\x02\x02\x0f\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xdb\x02\x10\ - \x14\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xdb\x02\x17\x18\n8\n\x04\x04\ - \x02\x02\x02\x12\x04\xde\x02\x02\x16\x1a*\x20The\x20maximum\x20number\ - \x20of\x20results\x20to\x20return.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\ - \x04\xde\x02\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xde\x02\x08\ - \x11\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xde\x02\x14\x15\n\x90\x01\n\ - \x04\x04\x02\x02\x03\x12\x04\xe3\x02\x02\x18\x1a\x81\x01\x20A\x20paginat\ - ion\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\n\x20`Li\ - stInventories`\x20that\x20indicates\x20where\x20this\x20listing\n\x20sho\ - uld\x20continue\x20from.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\xe3\x02\ - \x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xe3\x02\t\x13\n\r\n\x05\ - \x04\x02\x02\x03\x03\x12\x04\xe3\x02\x16\x17\n\x8f\x01\n\x04\x04\x02\x02\ - \x04\x12\x04\xe7\x02\x02\x14\x1a\x80\x01\x20If\x20provided,\x20this\x20f\ - ield\x20specifies\x20the\x20criteria\x20that\x20must\x20be\x20met\x20by\ - \x20a\n\x20`Inventory`\x20API\x20resource\x20to\x20be\x20included\x20in\ - \x20the\x20response.\n\n\r\n\x05\x04\x02\x02\x04\x05\x12\x04\xe7\x02\x02\ - \x08\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\xe7\x02\t\x0f\n\r\n\x05\x04\ - \x02\x02\x04\x03\x12\x04\xe7\x02\x12\x13\nc\n\x02\x04\x03\x12\x06\xec\ - \x02\0\xf2\x02\x01\x1aU\x20A\x20response\x20message\x20for\x20listing\ - \x20inventory\x20data\x20for\x20all\x20VMs\x20in\x20a\x20specified\n\x20\ - location.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xec\x02\x08\x1f\n*\n\x04\x04\ - \x03\x02\0\x12\x04\xee\x02\x02%\x1a\x1c\x20List\x20of\x20inventory\x20ob\ - jects.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xee\x02\x02\n\n\r\n\x05\x04\ - \x03\x02\0\x06\x12\x04\xee\x02\x0b\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\ - \x04\xee\x02\x15\x20\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xee\x02#$\nT\n\ - \x04\x04\x03\x02\x01\x12\x04\xf1\x02\x02\x1d\x1aF\x20The\x20pagination\ - \x20token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20inventory\ - \x20objects.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xf1\x02\x02\x08\n\r\ - \n\x05\x04\x03\x02\x01\x01\x12\x04\xf1\x02\t\x18\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\xf1\x02\x1b\x1c\n/\n\x02\x05\0\x12\x06\xf5\x02\0\xff\ - \x02\x01\x1a!\x20The\x20view\x20for\x20inventory\x20objects.\n\n\x0b\n\ - \x03\x05\0\x01\x12\x04\xf5\x02\x05\x12\nG\n\x04\x05\0\x02\0\x12\x04\xf8\ - \x02\x02!\x1a9\x20The\x20default\x20value.\n\x20The\x20API\x20defaults\ - \x20to\x20the\x20BASIC\x20view.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xf8\ - \x02\x02\x1c\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xf8\x02\x1f\x20\nP\n\x04\ - \x05\0\x02\x01\x12\x04\xfb\x02\x02\x0c\x1aB\x20Returns\x20the\x20basic\ - \x20inventory\x20information\x20that\x20includes\x20`os_info`.\n\n\r\n\ - \x05\x05\0\x02\x01\x01\x12\x04\xfb\x02\x02\x07\n\r\n\x05\x05\0\x02\x01\ - \x02\x12\x04\xfb\x02\n\x0b\n#\n\x04\x05\0\x02\x02\x12\x04\xfe\x02\x02\ - \x0b\x1a\x15\x20Returns\x20all\x20fields.\n\n\r\n\x05\x05\0\x02\x02\x01\ - \x12\x04\xfe\x02\x02\x06\n\r\n\x05\x05\0\x02\x02\x02\x12\x04\xfe\x02\t\n\ - b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/mod.rs b/googleapis-raw/src/cloud/osconfig/v1/mod.rs index f9c737e..8b13789 100644 --- a/googleapis-raw/src/cloud/osconfig/v1/mod.rs +++ b/googleapis-raw/src/cloud/osconfig/v1/mod.rs @@ -1,23 +1 @@ -use crate::{ - empty, - longrunning::operations, - r#type::{ - date, - datetime, - dayofweek, - timeofday, - }, -}; -pub mod inventory; -pub mod os_policy; -pub mod os_policy_assignment_reports; -pub mod os_policy_assignments; -pub mod osconfig_common; -pub mod osconfig_service; -pub mod osconfig_service_grpc; -pub mod osconfig_zonal_service; -pub mod osconfig_zonal_service_grpc; -pub mod patch_deployments; -pub mod patch_jobs; -pub mod vulnerability; diff --git a/googleapis-raw/src/cloud/osconfig/v1/os_policy.rs b/googleapis-raw/src/cloud/osconfig/v1/os_policy.rs deleted file mode 100644 index c514b12..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/os_policy.rs +++ /dev/null @@ -1,7681 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/os_policy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy { - // message fields - pub id: ::std::string::String, - pub description: ::std::string::String, - pub mode: OSPolicy_Mode, - pub resource_groups: ::protobuf::RepeatedField, - pub allow_no_resource_group_match: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy { - fn default() -> &'a OSPolicy { - ::default_instance() - } -} - -impl OSPolicy { - pub fn new() -> OSPolicy { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicy.Mode mode = 3; - - - pub fn get_mode(&self) -> OSPolicy_Mode { - self.mode - } - pub fn clear_mode(&mut self) { - self.mode = OSPolicy_Mode::MODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_mode(&mut self, v: OSPolicy_Mode) { - self.mode = v; - } - - // repeated .google.cloud.osconfig.v1.OSPolicy.ResourceGroup resource_groups = 4; - - - pub fn get_resource_groups(&self) -> &[OSPolicy_ResourceGroup] { - &self.resource_groups - } - pub fn clear_resource_groups(&mut self) { - self.resource_groups.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_groups(&mut self, v: ::protobuf::RepeatedField) { - self.resource_groups = v; - } - - // Mutable pointer to the field. - pub fn mut_resource_groups(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resource_groups - } - - // Take field - pub fn take_resource_groups(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resource_groups, ::protobuf::RepeatedField::new()) - } - - // bool allow_no_resource_group_match = 5; - - - pub fn get_allow_no_resource_group_match(&self) -> bool { - self.allow_no_resource_group_match - } - pub fn clear_allow_no_resource_group_match(&mut self) { - self.allow_no_resource_group_match = false; - } - - // Param is passed by value, moved - pub fn set_allow_no_resource_group_match(&mut self, v: bool) { - self.allow_no_resource_group_match = v; - } -} - -impl ::protobuf::Message for OSPolicy { - fn is_initialized(&self) -> bool { - for v in &self.resource_groups { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.mode, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resource_groups)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_no_resource_group_match = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if self.mode != OSPolicy_Mode::MODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.mode); - } - for value in &self.resource_groups { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.allow_no_resource_group_match != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if self.mode != OSPolicy_Mode::MODE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.mode))?; - } - for v in &self.resource_groups { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.allow_no_resource_group_match != false { - os.write_bool(5, self.allow_no_resource_group_match)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy { - OSPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy| { &m.id }, - |m: &mut OSPolicy| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &OSPolicy| { &m.description }, - |m: &mut OSPolicy| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "mode", - |m: &OSPolicy| { &m.mode }, - |m: &mut OSPolicy| { &mut m.mode }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource_groups", - |m: &OSPolicy| { &m.resource_groups }, - |m: &mut OSPolicy| { &mut m.resource_groups }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_no_resource_group_match", - |m: &OSPolicy| { &m.allow_no_resource_group_match }, - |m: &mut OSPolicy| { &mut m.allow_no_resource_group_match }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy::new) - } -} - -impl ::protobuf::Clear for OSPolicy { - fn clear(&mut self) { - self.id.clear(); - self.description.clear(); - self.mode = OSPolicy_Mode::MODE_UNSPECIFIED; - self.resource_groups.clear(); - self.allow_no_resource_group_match = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_InventoryFilter { - // message fields - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_InventoryFilter { - fn default() -> &'a OSPolicy_InventoryFilter { - ::default_instance() - } -} - -impl OSPolicy_InventoryFilter { - pub fn new() -> OSPolicy_InventoryFilter { - ::std::default::Default::default() - } - - // string os_short_name = 1; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 2; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_InventoryFilter { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_short_name.is_empty() { - os.write_string(1, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(2, &self.os_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_InventoryFilter { - OSPolicy_InventoryFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &OSPolicy_InventoryFilter| { &m.os_short_name }, - |m: &mut OSPolicy_InventoryFilter| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &OSPolicy_InventoryFilter| { &m.os_version }, - |m: &mut OSPolicy_InventoryFilter| { &mut m.os_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.InventoryFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_InventoryFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_InventoryFilter::new) - } -} - -impl ::protobuf::Clear for OSPolicy_InventoryFilter { - fn clear(&mut self) { - self.os_short_name.clear(); - self.os_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_InventoryFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_InventoryFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource { - // message fields - pub id: ::std::string::String, - // message oneof groups - pub resource_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource { - fn default() -> &'a OSPolicy_Resource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_oneof_resource_type { - pkg(OSPolicy_Resource_PackageResource), - repository(OSPolicy_Resource_RepositoryResource), - exec(OSPolicy_Resource_ExecResource), - file(OSPolicy_Resource_FileResource), -} - -impl OSPolicy_Resource { - pub fn new() -> OSPolicy_Resource { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource pkg = 2; - - - pub fn get_pkg(&self) -> &OSPolicy_Resource_PackageResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_pkg(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_pkg(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_pkg(&mut self, v: OSPolicy_Resource_PackageResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) - } - - // Mutable pointer to the field. - pub fn mut_pkg(&mut self) -> &mut OSPolicy_Resource_PackageResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(OSPolicy_Resource_PackageResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_pkg(&mut self) -> OSPolicy_Resource_PackageResource { - if self.has_pkg() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource repository = 3; - - - pub fn get_repository(&self) -> &OSPolicy_Resource_RepositoryResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_repository(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_repository(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_repository(&mut self, v: OSPolicy_Resource_RepositoryResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) - } - - // Mutable pointer to the field. - pub fn mut_repository(&mut self) -> &mut OSPolicy_Resource_RepositoryResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(OSPolicy_Resource_RepositoryResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_repository(&mut self) -> OSPolicy_Resource_RepositoryResource { - if self.has_repository() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource exec = 4; - - - pub fn get_exec(&self) -> &OSPolicy_Resource_ExecResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_exec(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec(&mut self, v: OSPolicy_Resource_ExecResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec(&mut self) -> &mut OSPolicy_Resource_ExecResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(OSPolicy_Resource_ExecResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec(&mut self) -> OSPolicy_Resource_ExecResource { - if self.has_exec() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_ExecResource::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.FileResource file = 5; - - - pub fn get_file(&self) -> &OSPolicy_Resource_FileResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_FileResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_FileResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(OSPolicy_Resource_FileResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_FileResource { - if self.has_file() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_FileResource::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource { - OSPolicy_Resource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource| { &m.id }, - |m: &mut OSPolicy_Resource| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource>( - "pkg", - OSPolicy_Resource::has_pkg, - OSPolicy_Resource::get_pkg, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource>( - "repository", - OSPolicy_Resource::has_repository, - OSPolicy_Resource::get_repository, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_ExecResource>( - "exec", - OSPolicy_Resource::has_exec, - OSPolicy_Resource::get_exec, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_FileResource>( - "file", - OSPolicy_Resource::has_file, - OSPolicy_Resource::get_file, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource { - fn clear(&mut self) { - self.id.clear(); - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File { - // message fields - pub allow_insecure: bool, - // message oneof groups - pub field_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File { - fn default() -> &'a OSPolicy_Resource_File { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_File_oneof_type { - remote(OSPolicy_Resource_File_Remote), - gcs(OSPolicy_Resource_File_Gcs), - local_path(::std::string::String), -} - -impl OSPolicy_Resource_File { - pub fn new() -> OSPolicy_Resource_File { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File.Remote remote = 1; - - - pub fn get_remote(&self) -> &OSPolicy_Resource_File_Remote { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_remote(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_remote(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_remote(&mut self, v: OSPolicy_Resource_File_Remote) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) - } - - // Mutable pointer to the field. - pub fn mut_remote(&mut self) -> &mut OSPolicy_Resource_File_Remote { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(OSPolicy_Resource_File_Remote::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_remote(&mut self) -> OSPolicy_Resource_File_Remote { - if self.has_remote() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Remote::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs gcs = 2; - - - pub fn get_gcs(&self) -> &OSPolicy_Resource_File_Gcs { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_gcs(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs(&mut self, v: OSPolicy_Resource_File_Gcs) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs(&mut self) -> &mut OSPolicy_Resource_File_Gcs { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(OSPolicy_Resource_File_Gcs::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs(&mut self) -> OSPolicy_Resource_File_Gcs { - if self.has_gcs() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Gcs::new() - } - } - - // string local_path = 3; - - - pub fn get_local_path(&self) -> &str { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref v)) => v, - _ => "", - } - } - pub fn clear_local_path(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_local_path(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_local_path(&mut self, v: ::std::string::String) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) - } - - // Mutable pointer to the field. - pub fn mut_local_path(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(::std::string::String::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_local_path(&mut self) -> ::std::string::String { - if self.has_local_path() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // bool allow_insecure = 4; - - - pub fn get_allow_insecure(&self) -> bool { - self.allow_insecure - } - pub fn clear_allow_insecure(&mut self) { - self.allow_insecure = false; - } - - // Param is passed by value, moved - pub fn set_allow_insecure(&mut self, v: bool) { - self.allow_insecure = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_insecure = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.allow_insecure != false { - my_size += 2; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.allow_insecure != false { - os.write_bool(4, self.allow_insecure)?; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - os.write_string(3, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File { - OSPolicy_Resource_File::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Remote>( - "remote", - OSPolicy_Resource_File::has_remote, - OSPolicy_Resource_File::get_remote, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Gcs>( - "gcs", - OSPolicy_Resource_File::has_gcs, - OSPolicy_Resource_File::get_gcs, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "local_path", - OSPolicy_Resource_File::has_local_path, - OSPolicy_Resource_File::get_local_path, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_insecure", - |m: &OSPolicy_Resource_File| { &m.allow_insecure }, - |m: &mut OSPolicy_Resource_File| { &mut m.allow_insecure }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File { - fn clear(&mut self) { - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.allow_insecure = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Remote { - // message fields - pub uri: ::std::string::String, - pub sha256_checksum: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Remote { - fn default() -> &'a OSPolicy_Resource_File_Remote { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Remote { - pub fn new() -> OSPolicy_Resource_File_Remote { - ::std::default::Default::default() - } - - // string uri = 1; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string sha256_checksum = 2; - - - pub fn get_sha256_checksum(&self) -> &str { - &self.sha256_checksum - } - pub fn clear_sha256_checksum(&mut self) { - self.sha256_checksum.clear(); - } - - // Param is passed by value, moved - pub fn set_sha256_checksum(&mut self, v: ::std::string::String) { - self.sha256_checksum = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sha256_checksum(&mut self) -> &mut ::std::string::String { - &mut self.sha256_checksum - } - - // Take field - pub fn take_sha256_checksum(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sha256_checksum, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Remote { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sha256_checksum)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.uri); - } - if !self.sha256_checksum.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.sha256_checksum); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.uri.is_empty() { - os.write_string(1, &self.uri)?; - } - if !self.sha256_checksum.is_empty() { - os.write_string(2, &self.sha256_checksum)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Remote { - OSPolicy_Resource_File_Remote::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_File_Remote| { &m.uri }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sha256_checksum", - |m: &OSPolicy_Resource_File_Remote| { &m.sha256_checksum }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.sha256_checksum }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Remote", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Remote { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Remote::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Remote { - fn clear(&mut self) { - self.uri.clear(); - self.sha256_checksum.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Remote { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Remote { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Gcs { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Gcs { - fn default() -> &'a OSPolicy_Resource_File_Gcs { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Gcs { - pub fn new() -> OSPolicy_Resource_File_Gcs { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string object = 2; - - - pub fn get_object(&self) -> &str { - &self.object - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: ::std::string::String) { - self.object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object(&mut self) -> &mut ::std::string::String { - &mut self.object - } - - // Take field - pub fn take_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object, ::std::string::String::new()) - } - - // int64 generation = 3; - - - pub fn get_generation(&self) -> i64 { - self.generation - } - pub fn clear_generation(&mut self) { - self.generation = 0; - } - - // Param is passed by value, moved - pub fn set_generation(&mut self, v: i64) { - self.generation = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Gcs { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.generation = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(3, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if self.generation != 0 { - os.write_int64(3, self.generation)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Gcs { - OSPolicy_Resource_File_Gcs::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &OSPolicy_Resource_File_Gcs| { &m.bucket }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &OSPolicy_Resource_File_Gcs| { &m.object }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &OSPolicy_Resource_File_Gcs| { &m.generation }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.generation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Gcs", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Gcs { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Gcs::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Gcs { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Gcs { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Gcs { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource { - // message fields - pub desired_state: OSPolicy_Resource_PackageResource_DesiredState, - // message oneof groups - pub system_package: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource { - fn default() -> &'a OSPolicy_Resource_PackageResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_PackageResource_oneof_system_package { - apt(OSPolicy_Resource_PackageResource_APT), - deb(OSPolicy_Resource_PackageResource_Deb), - yum(OSPolicy_Resource_PackageResource_YUM), - zypper(OSPolicy_Resource_PackageResource_Zypper), - rpm(OSPolicy_Resource_PackageResource_RPM), - googet(OSPolicy_Resource_PackageResource_GooGet), - msi(OSPolicy_Resource_PackageResource_MSI), -} - -impl OSPolicy_Resource_PackageResource { - pub fn new() -> OSPolicy_Resource_PackageResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1; - - - pub fn get_desired_state(&self) -> OSPolicy_Resource_PackageResource_DesiredState { - self.desired_state - } - pub fn clear_desired_state(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_desired_state(&mut self, v: OSPolicy_Resource_PackageResource_DesiredState) { - self.desired_state = v; - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_PackageResource_APT { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_PackageResource_APT) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_PackageResource_APT { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(OSPolicy_Resource_PackageResource_APT::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_PackageResource_APT { - if self.has_apt() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_APT::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb deb = 3; - - - pub fn get_deb(&self) -> &OSPolicy_Resource_PackageResource_Deb { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_deb(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_deb(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_deb(&mut self, v: OSPolicy_Resource_PackageResource_Deb) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) - } - - // Mutable pointer to the field. - pub fn mut_deb(&mut self) -> &mut OSPolicy_Resource_PackageResource_Deb { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(OSPolicy_Resource_PackageResource_Deb::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_deb(&mut self) -> OSPolicy_Resource_PackageResource_Deb { - if self.has_deb() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Deb::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM yum = 4; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_PackageResource_YUM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_PackageResource_YUM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_PackageResource_YUM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(OSPolicy_Resource_PackageResource_YUM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_PackageResource_YUM { - if self.has_yum() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_YUM::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_PackageResource_Zypper { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_PackageResource_Zypper) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_PackageResource_Zypper { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(OSPolicy_Resource_PackageResource_Zypper::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_PackageResource_Zypper { - if self.has_zypper() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Zypper::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6; - - - pub fn get_rpm(&self) -> &OSPolicy_Resource_PackageResource_RPM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_rpm(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_rpm(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_rpm(&mut self, v: OSPolicy_Resource_PackageResource_RPM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) - } - - // Mutable pointer to the field. - pub fn mut_rpm(&mut self) -> &mut OSPolicy_Resource_PackageResource_RPM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(OSPolicy_Resource_PackageResource_RPM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_rpm(&mut self) -> OSPolicy_Resource_PackageResource_RPM { - if self.has_rpm() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_RPM::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet googet = 7; - - - pub fn get_googet(&self) -> &OSPolicy_Resource_PackageResource_GooGet { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_googet(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet(&mut self, v: OSPolicy_Resource_PackageResource_GooGet) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet(&mut self) -> &mut OSPolicy_Resource_PackageResource_GooGet { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(OSPolicy_Resource_PackageResource_GooGet::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet(&mut self) -> OSPolicy_Resource_PackageResource_GooGet { - if self.has_googet() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_GooGet::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8; - - - pub fn get_msi(&self) -> &OSPolicy_Resource_PackageResource_MSI { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_msi(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_msi(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_msi(&mut self, v: OSPolicy_Resource_PackageResource_MSI) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) - } - - // Mutable pointer to the field. - pub fn mut_msi(&mut self) -> &mut OSPolicy_Resource_PackageResource_MSI { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(OSPolicy_Resource_PackageResource_MSI::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_msi(&mut self) -> OSPolicy_Resource_PackageResource_MSI { - if self.has_msi() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_MSI::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.desired_state, 1, &mut self.unknown_fields)? - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.desired_state); - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.desired_state))?; - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource { - OSPolicy_Resource_PackageResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "desired_state", - |m: &OSPolicy_Resource_PackageResource| { &m.desired_state }, - |m: &mut OSPolicy_Resource_PackageResource| { &mut m.desired_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_APT>( - "apt", - OSPolicy_Resource_PackageResource::has_apt, - OSPolicy_Resource_PackageResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Deb>( - "deb", - OSPolicy_Resource_PackageResource::has_deb, - OSPolicy_Resource_PackageResource::get_deb, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_YUM>( - "yum", - OSPolicy_Resource_PackageResource::has_yum, - OSPolicy_Resource_PackageResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Zypper>( - "zypper", - OSPolicy_Resource_PackageResource::has_zypper, - OSPolicy_Resource_PackageResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_RPM>( - "rpm", - OSPolicy_Resource_PackageResource::has_rpm, - OSPolicy_Resource_PackageResource::get_rpm, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_GooGet>( - "googet", - OSPolicy_Resource_PackageResource::has_googet, - OSPolicy_Resource_PackageResource::get_googet, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_MSI>( - "msi", - OSPolicy_Resource_PackageResource::has_msi, - OSPolicy_Resource_PackageResource::get_msi, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource { - fn clear(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Deb { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Deb { - fn default() -> &'a OSPolicy_Resource_PackageResource_Deb { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Deb { - pub fn new() -> OSPolicy_Resource_PackageResource_Deb { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Deb { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Deb { - OSPolicy_Resource_PackageResource_Deb::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Deb", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Deb { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Deb::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Deb { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Deb { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Deb { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_APT { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_APT { - fn default() -> &'a OSPolicy_Resource_PackageResource_APT { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_APT { - pub fn new() -> OSPolicy_Resource_PackageResource_APT { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_APT { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_APT { - OSPolicy_Resource_PackageResource_APT::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_APT| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_APT| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.APT", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_APT { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_APT::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_APT { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_APT { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_APT { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_RPM { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_RPM { - fn default() -> &'a OSPolicy_Resource_PackageResource_RPM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_RPM { - pub fn new() -> OSPolicy_Resource_PackageResource_RPM { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_RPM { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_RPM { - OSPolicy_Resource_PackageResource_RPM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.RPM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_RPM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_RPM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_RPM { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_RPM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_RPM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_YUM { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_YUM { - fn default() -> &'a OSPolicy_Resource_PackageResource_YUM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_YUM { - pub fn new() -> OSPolicy_Resource_PackageResource_YUM { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_YUM { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_YUM { - OSPolicy_Resource_PackageResource_YUM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_YUM| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_YUM| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.YUM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_YUM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_YUM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_YUM { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_YUM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_YUM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Zypper { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Zypper { - fn default() -> &'a OSPolicy_Resource_PackageResource_Zypper { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Zypper { - pub fn new() -> OSPolicy_Resource_PackageResource_Zypper { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Zypper { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Zypper { - OSPolicy_Resource_PackageResource_Zypper::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_Zypper| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_Zypper| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Zypper", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Zypper { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Zypper::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Zypper { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Zypper { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Zypper { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_GooGet { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_GooGet { - fn default() -> &'a OSPolicy_Resource_PackageResource_GooGet { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_GooGet { - pub fn new() -> OSPolicy_Resource_PackageResource_GooGet { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_GooGet { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_GooGet { - OSPolicy_Resource_PackageResource_GooGet::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_GooGet| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_GooGet| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.GooGet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_GooGet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_GooGet::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_GooGet { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_GooGet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_GooGet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_MSI { - // message fields - pub source: ::protobuf::SingularPtrField, - pub properties: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_MSI { - fn default() -> &'a OSPolicy_Resource_PackageResource_MSI { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_MSI { - pub fn new() -> OSPolicy_Resource_PackageResource_MSI { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // repeated string properties = 2; - - - pub fn get_properties(&self) -> &[::std::string::String] { - &self.properties - } - pub fn clear_properties(&mut self) { - self.properties.clear(); - } - - // Param is passed by value, moved - pub fn set_properties(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.properties = v; - } - - // Mutable pointer to the field. - pub fn mut_properties(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.properties - } - - // Take field - pub fn take_properties(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.properties, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_MSI { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.properties)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.properties { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.properties { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_MSI { - OSPolicy_Resource_PackageResource_MSI::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "properties", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.properties }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.properties }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.MSI", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_MSI { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_MSI::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_MSI { - fn clear(&mut self) { - self.source.clear(); - self.properties.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_MSI { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_MSI { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_PackageResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - INSTALLED = 1, - REMOVED = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_PackageResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::INSTALLED), - 2 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::REMOVED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_PackageResource_DesiredState] = &[ - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_PackageResource_DesiredState::INSTALLED, - OSPolicy_Resource_PackageResource_DesiredState::REMOVED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.PackageResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_PackageResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_PackageResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource { - // message oneof groups - pub repository: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource { - fn default() -> &'a OSPolicy_Resource_RepositoryResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_RepositoryResource_oneof_repository { - apt(OSPolicy_Resource_RepositoryResource_AptRepository), - yum(OSPolicy_Resource_RepositoryResource_YumRepository), - zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository), - goo(OSPolicy_Resource_RepositoryResource_GooRepository), -} - -impl OSPolicy_Resource_RepositoryResource { - pub fn new() -> OSPolicy_Resource_RepositoryResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_RepositoryResource_AptRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_AptRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(OSPolicy_Resource_RepositoryResource_AptRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_RepositoryResource_AptRepository { - if self.has_apt() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_RepositoryResource_YumRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_RepositoryResource_YumRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_YumRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(OSPolicy_Resource_RepositoryResource_YumRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_RepositoryResource_YumRepository { - if self.has_yum() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_RepositoryResource_ZypperRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_RepositoryResource_ZypperRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_ZypperRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - if self.has_zypper() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4; - - - pub fn get_goo(&self) -> &OSPolicy_Resource_RepositoryResource_GooRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_goo(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_goo(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_goo(&mut self, v: OSPolicy_Resource_RepositoryResource_GooRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) - } - - // Mutable pointer to the field. - pub fn mut_goo(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_GooRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(OSPolicy_Resource_RepositoryResource_GooRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_goo(&mut self) -> OSPolicy_Resource_RepositoryResource_GooRepository { - if self.has_goo() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource { - OSPolicy_Resource_RepositoryResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_AptRepository>( - "apt", - OSPolicy_Resource_RepositoryResource::has_apt, - OSPolicy_Resource_RepositoryResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_YumRepository>( - "yum", - OSPolicy_Resource_RepositoryResource::has_yum, - OSPolicy_Resource_RepositoryResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_ZypperRepository>( - "zypper", - OSPolicy_Resource_RepositoryResource::has_zypper, - OSPolicy_Resource_RepositoryResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_GooRepository>( - "goo", - OSPolicy_Resource_RepositoryResource::has_goo, - OSPolicy_Resource_RepositoryResource::get_goo, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource { - fn clear(&mut self) { - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_AptRepository { - // message fields - pub archive_type: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType, - pub uri: ::std::string::String, - pub distribution: ::std::string::String, - pub components: ::protobuf::RepeatedField<::std::string::String>, - pub gpg_key: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_AptRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_AptRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_AptRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1; - - - pub fn get_archive_type(&self) -> OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - self.archive_type - } - pub fn clear_archive_type(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_archive_type(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) { - self.archive_type = v; - } - - // string uri = 2; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string distribution = 3; - - - pub fn get_distribution(&self) -> &str { - &self.distribution - } - pub fn clear_distribution(&mut self) { - self.distribution.clear(); - } - - // Param is passed by value, moved - pub fn set_distribution(&mut self, v: ::std::string::String) { - self.distribution = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_distribution(&mut self) -> &mut ::std::string::String { - &mut self.distribution - } - - // Take field - pub fn take_distribution(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.distribution, ::std::string::String::new()) - } - - // repeated string components = 4; - - - pub fn get_components(&self) -> &[::std::string::String] { - &self.components - } - pub fn clear_components(&mut self) { - self.components.clear(); - } - - // Param is passed by value, moved - pub fn set_components(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.components = v; - } - - // Mutable pointer to the field. - pub fn mut_components(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.components - } - - // Take field - pub fn take_components(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.components, ::protobuf::RepeatedField::new()) - } - - // string gpg_key = 5; - - - pub fn get_gpg_key(&self) -> &str { - &self.gpg_key - } - pub fn clear_gpg_key(&mut self) { - self.gpg_key.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_key(&mut self, v: ::std::string::String) { - self.gpg_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gpg_key(&mut self) -> &mut ::std::string::String { - &mut self.gpg_key - } - - // Take field - pub fn take_gpg_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gpg_key, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_AptRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.archive_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.distribution)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.components)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gpg_key)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.archive_type); - } - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.uri); - } - if !self.distribution.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.distribution); - } - for value in &self.components { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.gpg_key.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.gpg_key); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.archive_type))?; - } - if !self.uri.is_empty() { - os.write_string(2, &self.uri)?; - } - if !self.distribution.is_empty() { - os.write_string(3, &self.distribution)?; - } - for v in &self.components { - os.write_string(4, &v)?; - }; - if !self.gpg_key.is_empty() { - os.write_string(5, &self.gpg_key)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "archive_type", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.archive_type }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.archive_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.uri }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "distribution", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.distribution }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.distribution }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "components", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.components }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.components }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_key", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.gpg_key }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.gpg_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.AptRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_AptRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_AptRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_AptRepository { - fn clear(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - self.uri.clear(); - self.distribution.clear(); - self.components.clear(); - self.gpg_key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_AptRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - ARCHIVE_TYPE_UNSPECIFIED = 0, - DEB = 1, - DEB_SRC = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB), - 2 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType] = &[ - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { -} - -impl ::std::default::Default for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn default() -> Self { - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_YumRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_YumRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_YumRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_YumRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_YumRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.YumRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_YumRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_YumRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_YumRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_YumRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_YumRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_ZypperRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_ZypperRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.ZypperRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_ZypperRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_ZypperRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_GooRepository { - // message fields - pub name: ::std::string::String, - pub url: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_GooRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_GooRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_GooRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string url = 2; - - - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } - - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } - - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_GooRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.url); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.url.is_empty() { - os.write_string(2, &self.url)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.name }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.url }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.url }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.GooRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_GooRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_GooRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_GooRepository { - fn clear(&mut self) { - self.name.clear(); - self.url.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_GooRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_GooRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource { - // message fields - pub validate: ::protobuf::SingularPtrField, - pub enforce: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource { - fn default() -> &'a OSPolicy_Resource_ExecResource { - ::default_instance() - } -} - -impl OSPolicy_Resource_ExecResource { - pub fn new() -> OSPolicy_Resource_ExecResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec validate = 1; - - - pub fn get_validate(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.validate.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_validate(&mut self) { - self.validate.clear(); - } - - pub fn has_validate(&self) -> bool { - self.validate.is_some() - } - - // Param is passed by value, moved - pub fn set_validate(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.validate = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_validate(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.validate.is_none() { - self.validate.set_default(); - } - self.validate.as_mut().unwrap() - } - - // Take field - pub fn take_validate(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.validate.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec enforce = 2; - - - pub fn get_enforce(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.enforce.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_enforce(&mut self) { - self.enforce.clear(); - } - - pub fn has_enforce(&self) -> bool { - self.enforce.is_some() - } - - // Param is passed by value, moved - pub fn set_enforce(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.enforce = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforce(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.enforce.is_none() { - self.enforce.set_default(); - } - self.enforce.as_mut().unwrap() - } - - // Take field - pub fn take_enforce(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.enforce.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource { - fn is_initialized(&self) -> bool { - for v in &self.validate { - if !v.is_initialized() { - return false; - } - }; - for v in &self.enforce { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.validate)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.enforce)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.validate.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.enforce.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.validate.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.enforce.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource { - OSPolicy_Resource_ExecResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "validate", - |m: &OSPolicy_Resource_ExecResource| { &m.validate }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.validate }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "enforce", - |m: &OSPolicy_Resource_ExecResource| { &m.enforce }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.enforce }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource { - fn clear(&mut self) { - self.validate.clear(); - self.enforce.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource_Exec { - // message fields - pub args: ::protobuf::RepeatedField<::std::string::String>, - pub interpreter: OSPolicy_Resource_ExecResource_Exec_Interpreter, - pub output_file_path: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource_Exec { - fn default() -> &'a OSPolicy_Resource_ExecResource_Exec { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_ExecResource_Exec_oneof_source { - file(OSPolicy_Resource_File), - script(::std::string::String), -} - -impl OSPolicy_Resource_ExecResource_Exec { - pub fn new() -> OSPolicy_Resource_ExecResource_Exec { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string script = 2; - - - pub fn get_script(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v)) => v, - _ => "", - } - } - pub fn clear_script(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_script(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_script(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) - } - - // Mutable pointer to the field. - pub fn mut_script(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_script(&mut self) -> ::std::string::String { - if self.has_script() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // repeated string args = 3; - - - pub fn get_args(&self) -> &[::std::string::String] { - &self.args - } - pub fn clear_args(&mut self) { - self.args.clear(); - } - - // Param is passed by value, moved - pub fn set_args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.args = v; - } - - // Mutable pointer to the field. - pub fn mut_args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.args - } - - // Take field - pub fn take_args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.args, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4; - - - pub fn get_interpreter(&self) -> OSPolicy_Resource_ExecResource_Exec_Interpreter { - self.interpreter - } - pub fn clear_interpreter(&mut self) { - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_interpreter(&mut self, v: OSPolicy_Resource_ExecResource_Exec_Interpreter) { - self.interpreter = v; - } - - // string output_file_path = 5; - - - pub fn get_output_file_path(&self) -> &str { - &self.output_file_path - } - pub fn clear_output_file_path(&mut self) { - self.output_file_path.clear(); - } - - // Param is passed by value, moved - pub fn set_output_file_path(&mut self, v: ::std::string::String) { - self.output_file_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_file_path(&mut self) -> &mut ::std::string::String { - &mut self.output_file_path - } - - // Take field - pub fn take_output_file_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.output_file_path, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource_Exec { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.args)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.interpreter, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.output_file_path)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.args { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.interpreter); - } - if !self.output_file_path.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.output_file_path); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.args { - os.write_string(3, &v)?; - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.interpreter))?; - } - if !self.output_file_path.is_empty() { - os.write_string(5, &self.output_file_path)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource_Exec { - OSPolicy_Resource_ExecResource_Exec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_ExecResource_Exec::has_file, - OSPolicy_Resource_ExecResource_Exec::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "script", - OSPolicy_Resource_ExecResource_Exec::has_script, - OSPolicy_Resource_ExecResource_Exec::get_script, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "args", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.args }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.args }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "interpreter", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.interpreter }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.interpreter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "output_file_path", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.output_file_path }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.output_file_path }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource.Exec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource_Exec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource_Exec::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource_Exec { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.args.clear(); - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - self.output_file_path.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource_Exec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_ExecResource_Exec_Interpreter { - INTERPRETER_UNSPECIFIED = 0, - NONE = 1, - SHELL = 2, - POWERSHELL = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE), - 2 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL), - 3 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_ExecResource_Exec_Interpreter] = &[ - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED, - OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE, - OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL, - OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.ExecResource.Exec.Interpreter", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_ExecResource_Exec_Interpreter { -} - -impl ::std::default::Default for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn default() -> Self { - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_FileResource { - // message fields - pub path: ::std::string::String, - pub state: OSPolicy_Resource_FileResource_DesiredState, - pub permissions: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_FileResource { - fn default() -> &'a OSPolicy_Resource_FileResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_FileResource_oneof_source { - file(OSPolicy_Resource_File), - content(::std::string::String), -} - -impl OSPolicy_Resource_FileResource { - pub fn new() -> OSPolicy_Resource_FileResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string content = 2; - - - pub fn get_content(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref v)) => v, - _ => "", - } - } - pub fn clear_content(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_content(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_content(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) - } - - // Mutable pointer to the field. - pub fn mut_content(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_content(&mut self) -> ::std::string::String { - if self.has_content() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string path = 3; - - - pub fn get_path(&self) -> &str { - &self.path - } - pub fn clear_path(&mut self) { - self.path.clear(); - } - - // Param is passed by value, moved - pub fn set_path(&mut self, v: ::std::string::String) { - self.path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path(&mut self) -> &mut ::std::string::String { - &mut self.path - } - - // Take field - pub fn take_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicy.Resource.FileResource.DesiredState state = 4; - - - pub fn get_state(&self) -> OSPolicy_Resource_FileResource_DesiredState { - self.state - } - pub fn clear_state(&mut self) { - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: OSPolicy_Resource_FileResource_DesiredState) { - self.state = v; - } - - // string permissions = 5; - - - pub fn get_permissions(&self) -> &str { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::std::string::String) { - self.permissions = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_permissions(&mut self) -> &mut ::std::string::String { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.permissions, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_FileResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.path.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.path); - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.state); - } - if !self.permissions.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.permissions); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.path.is_empty() { - os.write_string(3, &self.path)?; - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.permissions.is_empty() { - os.write_string(5, &self.permissions)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_FileResource { - OSPolicy_Resource_FileResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_FileResource::has_file, - OSPolicy_Resource_FileResource::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "content", - OSPolicy_Resource_FileResource::has_content, - OSPolicy_Resource_FileResource::get_content, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path", - |m: &OSPolicy_Resource_FileResource| { &m.path }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &OSPolicy_Resource_FileResource| { &m.state }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &OSPolicy_Resource_FileResource| { &m.permissions }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.FileResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_FileResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_FileResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_FileResource { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.path.clear(); - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_FileResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_FileResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - PRESENT = 1, - ABSENT = 2, - CONTENTS_MATCH = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_FileResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::PRESENT), - 2 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::ABSENT), - 3 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_FileResource_DesiredState] = &[ - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_FileResource_DesiredState::PRESENT, - OSPolicy_Resource_FileResource_DesiredState::ABSENT, - OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.FileResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_FileResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_FileResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_ResourceGroup { - // message fields - pub inventory_filters: ::protobuf::RepeatedField, - pub resources: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_ResourceGroup { - fn default() -> &'a OSPolicy_ResourceGroup { - ::default_instance() - } -} - -impl OSPolicy_ResourceGroup { - pub fn new() -> OSPolicy_ResourceGroup { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1; - - - pub fn get_inventory_filters(&self) -> &[OSPolicy_InventoryFilter] { - &self.inventory_filters - } - pub fn clear_inventory_filters(&mut self) { - self.inventory_filters.clear(); - } - - // Param is passed by value, moved - pub fn set_inventory_filters(&mut self, v: ::protobuf::RepeatedField) { - self.inventory_filters = v; - } - - // Mutable pointer to the field. - pub fn mut_inventory_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventory_filters - } - - // Take field - pub fn take_inventory_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventory_filters, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2; - - - pub fn get_resources(&self) -> &[OSPolicy_Resource] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_ResourceGroup { - fn is_initialized(&self) -> bool { - for v in &self.inventory_filters { - if !v.is_initialized() { - return false; - } - }; - for v in &self.resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventory_filters)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.inventory_filters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.inventory_filters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.resources { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_ResourceGroup { - OSPolicy_ResourceGroup::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventory_filters", - |m: &OSPolicy_ResourceGroup| { &m.inventory_filters }, - |m: &mut OSPolicy_ResourceGroup| { &mut m.inventory_filters }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resources", - |m: &OSPolicy_ResourceGroup| { &m.resources }, - |m: &mut OSPolicy_ResourceGroup| { &mut m.resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.ResourceGroup", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_ResourceGroup { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_ResourceGroup::new) - } -} - -impl ::protobuf::Clear for OSPolicy_ResourceGroup { - fn clear(&mut self) { - self.inventory_filters.clear(); - self.resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_ResourceGroup { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_ResourceGroup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Mode { - MODE_UNSPECIFIED = 0, - VALIDATION = 1, - ENFORCEMENT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Mode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Mode::MODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Mode::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicy_Mode::ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Mode] = &[ - OSPolicy_Mode::MODE_UNSPECIFIED, - OSPolicy_Mode::VALIDATION, - OSPolicy_Mode::ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Mode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Mode { -} - -impl ::std::default::Default for OSPolicy_Mode { - fn default() -> Self { - OSPolicy_Mode::MODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Mode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n(google/cloud/osconfig/v1/os_policy.proto\x12\x18google.cloud.osconfig\ - .v1\x1a\x1fgoogle/api/field_behavior.proto\"\xe7%\n\x08OSPolicy\x12\x13\ - \n\x02id\x18\x01\x20\x01(\tR\x02idB\x03\xe0A\x02\x12\x20\n\x0bdescriptio\ - n\x18\x02\x20\x01(\tR\x0bdescription\x12@\n\x04mode\x18\x03\x20\x01(\x0e\ - 2'.google.cloud.osconfig.v1.OSPolicy.ModeR\x04modeB\x03\xe0A\x02\x12^\n\ - \x0fresource_groups\x18\x04\x20\x03(\x0b20.google.cloud.osconfig.v1.OSPo\ - licy.ResourceGroupR\x0eresourceGroupsB\x03\xe0A\x02\x12@\n\x1dallow_no_r\ - esource_group_match\x18\x05\x20\x01(\x08R\x19allowNoResourceGroupMatch\ - \x1aY\n\x0fInventoryFilter\x12'\n\ros_short_name\x18\x01\x20\x01(\tR\x0b\ - osShortNameB\x03\xe0A\x02\x12\x1d\n\nos_version\x18\x02\x20\x01(\tR\tosV\ - ersion\x1a\xe2\x20\n\x08Resource\x12\x13\n\x02id\x18\x01\x20\x01(\tR\x02\ - idB\x03\xe0A\x02\x12O\n\x03pkg\x18\x02\x20\x01(\x0b2;.google.cloud.oscon\ - fig.v1.OSPolicy.Resource.PackageResourceH\0R\x03pkg\x12`\n\nrepository\ - \x18\x03\x20\x01(\x0b2>.google.cloud.osconfig.v1.OSPolicy.Resource.Repos\ - itoryResourceH\0R\nrepository\x12N\n\x04exec\x18\x04\x20\x01(\x0b28.goog\ - le.cloud.osconfig.v1.OSPolicy.Resource.ExecResourceH\0R\x04exec\x12N\n\ - \x04file\x18\x05\x20\x01(\x0b28.google.cloud.osconfig.v1.OSPolicy.Resour\ - ce.FileResourceH\0R\x04file\x1a\x9e\x03\n\x04File\x12Q\n\x06remote\x18\ - \x01\x20\x01(\x0b27.google.cloud.osconfig.v1.OSPolicy.Resource.File.Remo\ - teH\0R\x06remote\x12H\n\x03gcs\x18\x02\x20\x01(\x0b24.google.cloud.oscon\ - fig.v1.OSPolicy.Resource.File.GcsH\0R\x03gcs\x12\x1f\n\nlocal_path\x18\ - \x03\x20\x01(\tH\0R\tlocalPath\x12%\n\x0eallow_insecure\x18\x04\x20\x01(\ - \x08R\rallowInsecure\x1aH\n\x06Remote\x12\x15\n\x03uri\x18\x01\x20\x01(\ - \tR\x03uriB\x03\xe0A\x02\x12'\n\x0fsha256_checksum\x18\x02\x20\x01(\tR\ - \x0esha256Checksum\x1a_\n\x03Gcs\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\ - \x06bucketB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x02\x20\x01(\tR\x06obje\ - ctB\x03\xe0A\x02\x12\x1e\n\ngeneration\x18\x03\x20\x01(\x03R\ngeneration\ - B\x06\n\x04type\x1a\xa9\n\n\x0fPackageResource\x12r\n\rdesired_state\x18\ - \x01\x20\x01(\x0e2H.google.cloud.osconfig.v1.OSPolicy.Resource.PackageRe\ - source.DesiredStateR\x0cdesiredStateB\x03\xe0A\x02\x12S\n\x03apt\x18\x02\ - \x20\x01(\x0b2?.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResour\ - ce.APTH\0R\x03apt\x12S\n\x03deb\x18\x03\x20\x01(\x0b2?.google.cloud.osco\ - nfig.v1.OSPolicy.Resource.PackageResource.DebH\0R\x03deb\x12S\n\x03yum\ - \x18\x04\x20\x01(\x0b2?.google.cloud.osconfig.v1.OSPolicy.Resource.Packa\ - geResource.YUMH\0R\x03yum\x12\\\n\x06zypper\x18\x05\x20\x01(\x0b2B.googl\ - e.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.ZypperH\0R\x06zypp\ - er\x12S\n\x03rpm\x18\x06\x20\x01(\x0b2?.google.cloud.osconfig.v1.OSPolic\ - y.Resource.PackageResource.RPMH\0R\x03rpm\x12\\\n\x06googet\x18\x07\x20\ - \x01(\x0b2B.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.G\ - ooGetH\0R\x06googet\x12S\n\x03msi\x18\x08\x20\x01(\x0b2?.google.cloud.os\ - config.v1.OSPolicy.Resource.PackageResource.MSIH\0R\x03msi\x1aq\n\x03Deb\ - \x12M\n\x06source\x18\x01\x20\x01(\x0b20.google.cloud.osconfig.v1.OSPoli\ - cy.Resource.FileR\x06sourceB\x03\xe0A\x02\x12\x1b\n\tpull_deps\x18\x02\ - \x20\x01(\x08R\x08pullDeps\x1a\x1e\n\x03APT\x12\x17\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB\x03\xe0A\x02\x1aq\n\x03RPM\x12M\n\x06source\x18\ - \x01\x20\x01(\x0b20.google.cloud.osconfig.v1.OSPolicy.Resource.FileR\x06\ - sourceB\x03\xe0A\x02\x12\x1b\n\tpull_deps\x18\x02\x20\x01(\x08R\x08pullD\ - eps\x1a\x1e\n\x03YUM\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\ - \xe0A\x02\x1a!\n\x06Zypper\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04name\ - B\x03\xe0A\x02\x1a!\n\x06GooGet\x12\x17\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB\x03\xe0A\x02\x1at\n\x03MSI\x12M\n\x06source\x18\x01\x20\x01(\ - \x0b20.google.cloud.osconfig.v1.OSPolicy.Resource.FileR\x06sourceB\x03\ - \xe0A\x02\x12\x1e\n\nproperties\x18\x02\x20\x03(\tR\nproperties\"I\n\x0c\ - DesiredState\x12\x1d\n\x19DESIRED_STATE_UNSPECIFIED\x10\0\x12\r\n\tINSTA\ - LLED\x10\x01\x12\x0b\n\x07REMOVED\x10\x02B\x10\n\x0esystem_package\x1a\ - \xd7\x08\n\x12RepositoryResource\x12`\n\x03apt\x18\x01\x20\x01(\x0b2L.go\ - ogle.cloud.osconfig.v1.OSPolicy.Resource.RepositoryResource.AptRepositor\ - yH\0R\x03apt\x12`\n\x03yum\x18\x02\x20\x01(\x0b2L.google.cloud.osconfig.\ - v1.OSPolicy.Resource.RepositoryResource.YumRepositoryH\0R\x03yum\x12i\n\ - \x06zypper\x18\x03\x20\x01(\x0b2O.google.cloud.osconfig.v1.OSPolicy.Reso\ - urce.RepositoryResource.ZypperRepositoryH\0R\x06zypper\x12`\n\x03goo\x18\ - \x04\x20\x01(\x0b2L.google.cloud.osconfig.v1.OSPolicy.Resource.Repositor\ - yResource.GooRepositoryH\0R\x03goo\x1a\xd3\x02\n\rAptRepository\x12\x80\ - \x01\n\x0carchive_type\x18\x01\x20\x01(\x0e2X.google.cloud.osconfig.v1.O\ - SPolicy.Resource.RepositoryResource.AptRepository.ArchiveTypeR\x0barchiv\ - eTypeB\x03\xe0A\x02\x12\x15\n\x03uri\x18\x02\x20\x01(\tR\x03uriB\x03\xe0\ - A\x02\x12'\n\x0cdistribution\x18\x03\x20\x01(\tR\x0cdistributionB\x03\ - \xe0A\x02\x12#\n\ncomponents\x18\x04\x20\x03(\tR\ncomponentsB\x03\xe0A\ - \x02\x12\x17\n\x07gpg_key\x18\x05\x20\x01(\tR\x06gpgKey\"A\n\x0bArchiveT\ - ype\x12\x1c\n\x18ARCHIVE_TYPE_UNSPECIFIED\x10\0\x12\x07\n\x03DEB\x10\x01\ - \x12\x0b\n\x07DEB_SRC\x10\x02\x1a\x82\x01\n\rYumRepository\x12\x13\n\x02\ - id\x18\x01\x20\x01(\tR\x02idB\x03\xe0A\x02\x12!\n\x0cdisplay_name\x18\ - \x02\x20\x01(\tR\x0bdisplayName\x12\x1e\n\x08base_url\x18\x03\x20\x01(\t\ - R\x07baseUrlB\x03\xe0A\x02\x12\x19\n\x08gpg_keys\x18\x04\x20\x03(\tR\x07\ - gpgKeys\x1a\x85\x01\n\x10ZypperRepository\x12\x13\n\x02id\x18\x01\x20\ - \x01(\tR\x02idB\x03\xe0A\x02\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\ - \x0bdisplayName\x12\x1e\n\x08base_url\x18\x03\x20\x01(\tR\x07baseUrlB\ - \x03\xe0A\x02\x12\x19\n\x08gpg_keys\x18\x04\x20\x03(\tR\x07gpgKeys\x1a?\ - \n\rGooRepository\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0\ - A\x02\x12\x15\n\x03url\x18\x02\x20\x01(\tR\x03urlB\x03\xe0A\x02B\x0c\n\n\ - repository\x1a\xbd\x04\n\x0cExecResource\x12^\n\x08validate\x18\x01\x20\ - \x01(\x0b2=.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec\ - R\x08validateB\x03\xe0A\x02\x12W\n\x07enforce\x18\x02\x20\x01(\x0b2=.goo\ - gle.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.ExecR\x07enforce\ - \x1a\xf3\x02\n\x04Exec\x12F\n\x04file\x18\x01\x20\x01(\x0b20.google.clou\ - d.osconfig.v1.OSPolicy.Resource.FileH\0R\x04file\x12\x18\n\x06script\x18\ - \x02\x20\x01(\tH\0R\x06script\x12\x12\n\x04args\x18\x03\x20\x03(\tR\x04a\ - rgs\x12p\n\x0binterpreter\x18\x04\x20\x01(\x0e2I.google.cloud.osconfig.v\ - 1.OSPolicy.Resource.ExecResource.Exec.InterpreterR\x0binterpreterB\x03\ - \xe0A\x02\x12(\n\x10output_file_path\x18\x05\x20\x01(\tR\x0eoutputFilePa\ - th\"O\n\x0bInterpreter\x12\x1b\n\x17INTERPRETER_UNSPECIFIED\x10\0\x12\ - \x08\n\x04NONE\x10\x01\x12\t\n\x05SHELL\x10\x02\x12\x0e\n\nPOWERSHELL\ - \x10\x03B\x08\n\x06source\x1a\xf5\x02\n\x0cFileResource\x12F\n\x04file\ - \x18\x01\x20\x01(\x0b20.google.cloud.osconfig.v1.OSPolicy.Resource.FileH\ - \0R\x04file\x12\x1a\n\x07content\x18\x02\x20\x01(\tH\0R\x07content\x12\ - \x17\n\x04path\x18\x03\x20\x01(\tR\x04pathB\x03\xe0A\x02\x12`\n\x05state\ - \x18\x04\x20\x01(\x0e2E.google.cloud.osconfig.v1.OSPolicy.Resource.FileR\ - esource.DesiredStateR\x05stateB\x03\xe0A\x02\x12\x20\n\x0bpermissions\ - \x18\x05\x20\x01(\tR\x0bpermissions\"Z\n\x0cDesiredState\x12\x1d\n\x19DE\ - SIRED_STATE_UNSPECIFIED\x10\0\x12\x0b\n\x07PRESENT\x10\x01\x12\n\n\x06AB\ - SENT\x10\x02\x12\x12\n\x0eCONTENTS_MATCH\x10\x03B\x08\n\x06sourceB\x0f\n\ - \rresource_type\x1a\xc0\x01\n\rResourceGroup\x12_\n\x11inventory_filters\ - \x18\x01\x20\x03(\x0b22.google.cloud.osconfig.v1.OSPolicy.InventoryFilte\ - rR\x10inventoryFilters\x12N\n\tresources\x18\x02\x20\x03(\x0b2+.google.c\ - loud.osconfig.v1.OSPolicy.ResourceR\tresourcesB\x03\xe0A\x02\"=\n\x04Mod\ - e\x12\x14\n\x10MODE_UNSPECIFIED\x10\0\x12\x0e\n\nVALIDATION\x10\x01\x12\ - \x0f\n\x0bENFORCEMENT\x10\x02B\xbd\x01\n\x1ccom.google.cloud.osconfig.v1\ - B\rOsPolicyProtoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osc\ - onfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\Os\ - Config\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1J\xed\xae\x01\n\x07\x12\ - \x05\x0e\0\xa3\x04\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ - \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ - ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ - \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ - \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ - censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ - \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\ - \x14\05\n\t\n\x02\x08%\x12\x03\x14\05\n\x08\n\x01\x08\x12\x03\x15\0O\n\t\ - \n\x02\x08\x0b\x12\x03\x15\0O\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ - \x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\x08\ - \x12\x03\x17\0.\n\x08\n\x01\x08\x12\x03\x18\05\n\t\n\x02\x08\x01\x12\x03\ - \x18\05\n\x08\n\x01\x08\x12\x03\x19\05\n\t\n\x02\x08)\x12\x03\x19\05\n\ - \x08\n\x01\x08\x12\x03\x1a\04\n\t\n\x02\x08-\x12\x03\x1a\04\nM\n\x02\x04\ - \0\x12\x05\x1d\0\xa3\x04\x01\x1a@\x20An\x20OS\x20policy\x20defines\x20th\ - e\x20desired\x20state\x20configuration\x20for\x20a\x20VM.\n\n\n\n\x03\ - \x04\0\x01\x12\x03\x1d\x08\x10\n\x1b\n\x04\x04\0\x04\0\x12\x04\x1f\x02+\ - \x03\x1a\r\x20Policy\x20mode\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\x1f\ - \x07\x0b\n\x1d\n\x06\x04\0\x04\0\x02\0\x12\x03!\x04\x19\x1a\x0e\x20Inval\ - id\x20mode\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03!\x04\x14\n\x0e\n\ - \x07\x04\0\x04\0\x02\0\x02\x12\x03!\x17\x18\n\xd6\x01\n\x06\x04\0\x04\0\ - \x02\x01\x12\x03&\x04\x13\x1a\xc6\x01\x20This\x20mode\x20checks\x20if\ - \x20the\x20configuration\x20resources\x20in\x20the\x20policy\x20are\x20i\ - n\n\x20their\x20desired\x20state.\x20No\x20actions\x20are\x20performed\ - \x20if\x20they\x20are\x20not\x20in\x20the\n\x20desired\x20state.\x20This\ - \x20mode\x20is\x20used\x20for\x20reporting\x20purposes.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\x01\x01\x12\x03&\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\ - \x01\x02\x12\x03&\x11\x12\n\x94\x01\n\x06\x04\0\x04\0\x02\x02\x12\x03*\ - \x04\x14\x1a\x84\x01\x20This\x20mode\x20checks\x20if\x20the\x20configura\ - tion\x20resources\x20in\x20the\x20policy\x20are\x20in\n\x20their\x20desi\ - red\x20state,\x20and\x20if\x20not,\x20enforces\x20the\x20desired\x20stat\ - e.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03*\x04\x0f\n\x0e\n\x07\ - \x04\0\x04\0\x02\x02\x02\x12\x03*\x12\x13\nL\n\x04\x04\0\x03\0\x12\x04.\ - \x02:\x03\x1a>\x20Filtering\x20criteria\x20to\x20select\x20VMs\x20based\ - \x20on\x20inventory\x20details.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03.\n\ - \x19\n,\n\x06\x04\0\x03\0\x02\0\x12\x030\x04F\x1a\x1d\x20Required.\x20Th\ - e\x20OS\x20short\x20name\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x030\ - \x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x030\x0b\x18\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x03\x12\x030\x1b\x1c\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x08\x12\x030\x1dE\n\x11\n\n\x04\0\x03\0\x02\0\x08\x9c\x08\0\x12\x030\ - \x1eD\n\x8f\x02\n\x06\x04\0\x03\0\x02\x01\x12\x039\x04\x1a\x1a\xff\x01\ - \x20The\x20OS\x20version\n\n\x20Prefix\x20matches\x20are\x20supported\ - \x20if\x20asterisk(*)\x20is\x20provided\x20as\x20the\n\x20last\x20charac\ - ter.\x20For\x20example,\x20to\x20match\x20all\x20versions\x20with\x20a\ - \x20major\n\x20version\x20of\x20`7`,\x20specify\x20the\x20following\x20v\ - alue\x20for\x20this\x20field\x20`7.*`\n\n\x20An\x20empty\x20string\x20ma\ - tches\x20all\x20OS\x20versions.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\ - \x12\x039\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x039\x0b\x15\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x039\x18\x19\n\xce\x02\n\x04\x04\ - \0\x03\x01\x12\x05B\x02\xe4\x03\x03\x1a\xbe\x02\x20An\x20OS\x20policy\ - \x20resource\x20is\x20used\x20to\x20define\x20the\x20desired\x20state\ - \x20configuration\n\x20and\x20provides\x20a\x20specific\x20functionality\ - \x20like\x20installing/removing\x20packages,\n\x20executing\x20a\x20scri\ - pt\x20etc.\n\n\x20The\x20system\x20ensures\x20that\x20resources\x20are\ - \x20always\x20in\x20their\x20desired\x20state\x20by\n\x20taking\x20neces\ - sary\x20actions\x20if\x20they\x20have\x20drifted\x20from\x20their\x20des\ - ired\x20state.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03B\n\x12\n)\n\x06\ - \x04\0\x03\x01\x03\0\x12\x04D\x04m\x05\x1a\x19\x20A\x20remote\x20or\x20l\ - ocal\x20file.\n\n\x0e\n\x07\x04\0\x03\x01\x03\0\x01\x12\x03D\x0c\x10\n<\ - \n\x08\x04\0\x03\x01\x03\0\x03\0\x12\x04F\x06M\x07\x1a*\x20Specifies\x20\ - a\x20file\x20available\x20via\x20some\x20URI.\n\n\x10\n\t\x04\0\x03\x01\ - \x03\0\x03\0\x01\x12\x03F\x0e\x14\n\xa1\x01\n\n\x04\0\x03\x01\x03\0\x03\ - \0\x02\0\x12\x03I\x08@\x1a\x8d\x01\x20Required.\x20URI\x20from\x20which\ - \x20to\x20fetch\x20the\x20object.\x20It\x20should\x20contain\x20both\n\ - \x20the\x20protocol\x20and\x20path\x20following\x20the\x20format\x20`{pr\ - otocol}://{location}`.\n\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\0\x02\0\x05\ - \x12\x03I\x08\x0e\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\0\x02\0\x01\x12\ - \x03I\x0f\x12\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\0\x02\0\x03\x12\x03I\ - \x15\x16\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\0\x02\0\x08\x12\x03I\x17?\n\ - \x15\n\x0e\x04\0\x03\x01\x03\0\x03\0\x02\0\x08\x9c\x08\0\x12\x03I\x18>\n\ - 8\n\n\x04\0\x03\x01\x03\0\x03\0\x02\x01\x12\x03L\x08#\x1a%\x20SHA256\x20\ - checksum\x20of\x20the\x20remote\x20file.\n\n\x12\n\x0b\x04\0\x03\x01\x03\ - \0\x03\0\x02\x01\x05\x12\x03L\x08\x0e\n\x12\n\x0b\x04\0\x03\x01\x03\0\ - \x03\0\x02\x01\x01\x12\x03L\x0f\x1e\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\ - \0\x02\x01\x03\x12\x03L!\"\nI\n\x08\x04\0\x03\x01\x03\0\x03\x01\x12\x04P\ - \x06Y\x07\x1a7\x20Specifies\x20a\x20file\x20available\x20as\x20a\x20Clou\ - d\x20Storage\x20Object.\n\n\x10\n\t\x04\0\x03\x01\x03\0\x03\x01\x01\x12\ - \x03P\x0e\x11\nB\n\n\x04\0\x03\x01\x03\0\x03\x01\x02\0\x12\x03R\x08C\x1a\ - /\x20Required.\x20Bucket\x20of\x20the\x20Cloud\x20Storage\x20object.\n\n\ - \x12\n\x0b\x04\0\x03\x01\x03\0\x03\x01\x02\0\x05\x12\x03R\x08\x0e\n\x12\ - \n\x0b\x04\0\x03\x01\x03\0\x03\x01\x02\0\x01\x12\x03R\x0f\x15\n\x12\n\ - \x0b\x04\0\x03\x01\x03\0\x03\x01\x02\0\x03\x12\x03R\x18\x19\n\x12\n\x0b\ - \x04\0\x03\x01\x03\0\x03\x01\x02\0\x08\x12\x03R\x1aB\n\x15\n\x0e\x04\0\ - \x03\x01\x03\0\x03\x01\x02\0\x08\x9c\x08\0\x12\x03R\x1bA\n@\n\n\x04\0\ - \x03\x01\x03\0\x03\x01\x02\x01\x12\x03U\x08C\x1a-\x20Required.\x20Name\ - \x20of\x20the\x20Cloud\x20Storage\x20object.\n\n\x12\n\x0b\x04\0\x03\x01\ - \x03\0\x03\x01\x02\x01\x05\x12\x03U\x08\x0e\n\x12\n\x0b\x04\0\x03\x01\ - \x03\0\x03\x01\x02\x01\x01\x12\x03U\x0f\x15\n\x12\n\x0b\x04\0\x03\x01\ - \x03\0\x03\x01\x02\x01\x03\x12\x03U\x18\x19\n\x12\n\x0b\x04\0\x03\x01\ - \x03\0\x03\x01\x02\x01\x08\x12\x03U\x1aB\n\x15\n\x0e\x04\0\x03\x01\x03\0\ - \x03\x01\x02\x01\x08\x9c\x08\0\x12\x03U\x1bA\nC\n\n\x04\0\x03\x01\x03\0\ - \x03\x01\x02\x02\x12\x03X\x08\x1d\x1a0\x20Generation\x20number\x20of\x20\ - the\x20Cloud\x20Storage\x20object.\n\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\ - \x01\x02\x02\x05\x12\x03X\x08\r\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\x01\ - \x02\x02\x01\x12\x03X\x0e\x18\n\x12\n\x0b\x04\0\x03\x01\x03\0\x03\x01\ - \x02\x02\x03\x12\x03X\x1b\x1c\n,\n\x08\x04\0\x03\x01\x03\0\x08\0\x12\x04\ - \\\x06e\x07\x1a\x1a\x20A\x20specific\x20type\x20of\x20file.\n\n\x10\n\t\ - \x04\0\x03\x01\x03\0\x08\0\x01\x12\x03\\\x0c\x10\n)\n\x08\x04\0\x03\x01\ - \x03\0\x02\0\x12\x03^\x08\x1a\x1a\x18\x20A\x20generic\x20remote\x20file.\ - \n\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x06\x12\x03^\x08\x0e\n\x10\n\t\ - \x04\0\x03\x01\x03\0\x02\0\x01\x12\x03^\x0f\x15\n\x10\n\t\x04\0\x03\x01\ - \x03\0\x02\0\x03\x12\x03^\x18\x19\n*\n\x08\x04\0\x03\x01\x03\0\x02\x01\ - \x12\x03a\x08\x14\x1a\x19\x20A\x20Cloud\x20Storage\x20object.\n\n\x10\n\ - \t\x04\0\x03\x01\x03\0\x02\x01\x06\x12\x03a\x08\x0b\n\x10\n\t\x04\0\x03\ - \x01\x03\0\x02\x01\x01\x12\x03a\x0c\x0f\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\x01\x03\x12\x03a\x12\x13\n5\n\x08\x04\0\x03\x01\x03\0\x02\x02\x12\ - \x03d\x08\x1e\x1a$\x20A\x20local\x20path\x20within\x20the\x20VM\x20to\ - \x20use.\n\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x02\x05\x12\x03d\x08\x0e\n\ - \x10\n\t\x04\0\x03\x01\x03\0\x02\x02\x01\x12\x03d\x0f\x19\n\x10\n\t\x04\ - \0\x03\x01\x03\0\x02\x02\x03\x12\x03d\x1c\x1d\n\xd3\x01\n\x08\x04\0\x03\ - \x01\x03\0\x02\x03\x12\x03l\x06\x1e\x1a\xc1\x01\x20Defaults\x20to\x20fal\ - se.\x20When\x20false,\x20files\x20are\x20subject\x20to\x20validations\n\ - \x20based\x20on\x20the\x20file\x20type:\n\n\x20Remote:\x20A\x20checksum\ - \x20must\x20be\x20specified.\n\x20Cloud\x20Storage:\x20An\x20object\x20g\ - eneration\x20number\x20must\x20be\x20specified.\n\n\x10\n\t\x04\0\x03\ - \x01\x03\0\x02\x03\x05\x12\x03l\x06\n\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ - \x03\x01\x12\x03l\x0b\x19\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x03\x03\x12\ - \x03l\x1c\x1d\n<\n\x06\x04\0\x03\x01\x03\x01\x12\x05p\x04\xdc\x01\x05\ - \x1a+\x20A\x20resource\x20that\x20manages\x20a\x20system\x20package.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x03\x01\x01\x12\x03p\x0c\x1b\nS\n\x08\x04\0\x03\ - \x01\x03\x01\x04\0\x12\x04r\x06|\x07\x1aA\x20The\x20desired\x20state\x20\ - that\x20the\x20OS\x20Config\x20agent\x20maintains\x20on\x20the\x20VM.\n\ - \n\x10\n\t\x04\0\x03\x01\x03\x01\x04\0\x01\x12\x03r\x0b\x17\n,\n\n\x04\0\ - \x03\x01\x03\x01\x04\0\x02\0\x12\x03t\x08&\x1a\x19\x20Unspecified\x20is\ - \x20invalid.\n\n\x12\n\x0b\x04\0\x03\x01\x03\x01\x04\0\x02\0\x01\x12\x03\ - t\x08!\n\x12\n\x0b\x04\0\x03\x01\x03\x01\x04\0\x02\0\x02\x12\x03t$%\n:\n\ - \n\x04\0\x03\x01\x03\x01\x04\0\x02\x01\x12\x03w\x08\x16\x1a'\x20Ensure\ - \x20that\x20the\x20package\x20is\x20installed.\n\n\x12\n\x0b\x04\0\x03\ - \x01\x03\x01\x04\0\x02\x01\x01\x12\x03w\x08\x11\n\x12\n\x0b\x04\0\x03\ - \x01\x03\x01\x04\0\x02\x01\x02\x12\x03w\x14\x15\nh\n\n\x04\0\x03\x01\x03\ - \x01\x04\0\x02\x02\x12\x03{\x08\x14\x1aU\x20The\x20agent\x20ensures\x20t\ - hat\x20the\x20package\x20is\x20not\x20installed\x20and\n\x20uninstalls\ - \x20it\x20if\x20detected.\n\n\x12\n\x0b\x04\0\x03\x01\x03\x01\x04\0\x02\ - \x02\x01\x12\x03{\x08\x0f\n\x12\n\x0b\x04\0\x03\x01\x03\x01\x04\0\x02\ - \x02\x02\x12\x03{\x12\x13\nT\n\x08\x04\0\x03\x01\x03\x01\x03\0\x12\x05\ - \x7f\x06\x88\x01\x07\x1aA\x20A\x20deb\x20package\x20file.\x20dpkg\x20pac\ - kages\x20only\x20support\x20INSTALLED\x20state.\n\n\x10\n\t\x04\0\x03\ - \x01\x03\x01\x03\0\x01\x12\x03\x7f\x0e\x11\n.\n\n\x04\0\x03\x01\x03\x01\ - \x03\0\x02\0\x12\x04\x81\x01\x08A\x1a\x1a\x20Required.\x20A\x20deb\x20pa\ - ckage.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\0\x06\x12\x04\x81\ - \x01\x08\x0c\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\0\x01\x12\x04\ - \x81\x01\r\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\0\x03\x12\x04\ - \x81\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\0\x08\x12\ - \x04\x81\x01\x18@\n\x16\n\x0e\x04\0\x03\x01\x03\x01\x03\0\x02\0\x08\x9c\ - \x08\0\x12\x04\x81\x01\x19?\n\xb8\x01\n\n\x04\0\x03\x01\x03\x01\x03\0\ - \x02\x01\x12\x04\x87\x01\x08\x1b\x1a\xa3\x01\x20Whether\x20dependencies\ - \x20should\x20also\x20be\x20installed.\n\x20-\x20install\x20when\x20fals\ - e:\x20`dpkg\x20-i\x20package`\n\x20-\x20install\x20when\x20true:\x20`apt\ - -get\x20update\x20&&\x20apt-get\x20-y\x20install\n\x20package.deb`\n\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\x01\x05\x12\x04\x87\x01\x08\ - \x0c\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\x01\x01\x12\x04\x87\x01\ - \r\x16\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\0\x02\x01\x03\x12\x04\x87\ - \x01\x19\x1a\n\x8f\x01\n\x08\x04\0\x03\x01\x03\x01\x03\x01\x12\x06\x8d\ - \x01\x06\x90\x01\x07\x1a{\x20A\x20package\x20managed\x20by\x20APT.\n\x20\ - -\x20install:\x20`apt-get\x20update\x20&&\x20apt-get\x20-y\x20install\ - \x20[name]`\n\x20-\x20remove:\x20`apt-get\x20-y\x20remove\x20[name]`\n\n\ - \x11\n\t\x04\0\x03\x01\x03\x01\x03\x01\x01\x12\x04\x8d\x01\x0e\x11\n-\n\ - \n\x04\0\x03\x01\x03\x01\x03\x01\x02\0\x12\x04\x8f\x01\x08A\x1a\x19\x20R\ - equired.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x01\ - \x02\0\x05\x12\x04\x8f\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\ - \x01\x02\0\x01\x12\x04\x8f\x01\x0f\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x01\ - \x03\x01\x02\0\x03\x12\x04\x8f\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x01\x03\x01\x02\0\x08\x12\x04\x8f\x01\x18@\n\x16\n\x0e\x04\0\x03\x01\ - \x03\x01\x03\x01\x02\0\x08\x9c\x08\0\x12\x04\x8f\x01\x19?\nU\n\x08\x04\0\ - \x03\x01\x03\x01\x03\x02\x12\x06\x93\x01\x06\x9c\x01\x07\x1aA\x20An\x20R\ - PM\x20package\x20file.\x20RPM\x20packages\x20only\x20support\x20INSTALLE\ - D\x20state.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x03\x02\x01\x12\x04\x93\ - \x01\x0e\x11\n/\n\n\x04\0\x03\x01\x03\x01\x03\x02\x02\0\x12\x04\x95\x01\ - \x08A\x1a\x1b\x20Required.\x20An\x20rpm\x20package.\n\n\x13\n\x0b\x04\0\ - \x03\x01\x03\x01\x03\x02\x02\0\x06\x12\x04\x95\x01\x08\x0c\n\x13\n\x0b\ - \x04\0\x03\x01\x03\x01\x03\x02\x02\0\x01\x12\x04\x95\x01\r\x13\n\x13\n\ - \x0b\x04\0\x03\x01\x03\x01\x03\x02\x02\0\x03\x12\x04\x95\x01\x16\x17\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x02\x02\0\x08\x12\x04\x95\x01\x18@\ - \n\x16\n\x0e\x04\0\x03\x01\x03\x01\x03\x02\x02\0\x08\x9c\x08\0\x12\x04\ - \x95\x01\x19?\n\xdd\x01\n\n\x04\0\x03\x01\x03\x01\x03\x02\x02\x01\x12\ - \x04\x9b\x01\x08\x1b\x1a\xc8\x01\x20Whether\x20dependencies\x20should\ - \x20also\x20be\x20installed.\n\x20-\x20install\x20when\x20false:\x20`rpm\ - \x20--upgrade\x20--replacepkgs\x20package.rpm`\n\x20-\x20install\x20when\ - \x20true:\x20`yum\x20-y\x20install\x20package.rpm`\x20or\n\x20`zypper\ - \x20-y\x20install\x20package.rpm`\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\ - \x03\x02\x02\x01\x05\x12\x04\x9b\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\x01\ - \x03\x01\x03\x02\x02\x01\x01\x12\x04\x9b\x01\r\x16\n\x13\n\x0b\x04\0\x03\ - \x01\x03\x01\x03\x02\x02\x01\x03\x12\x04\x9b\x01\x19\x1a\nw\n\x08\x04\0\ - \x03\x01\x03\x01\x03\x03\x12\x06\xa1\x01\x06\xa4\x01\x07\x1ac\x20A\x20pa\ - ckage\x20managed\x20by\x20YUM.\n\x20-\x20install:\x20`yum\x20-y\x20insta\ - ll\x20package`\n\x20-\x20remove:\x20`yum\x20-y\x20remove\x20package`\n\n\ - \x11\n\t\x04\0\x03\x01\x03\x01\x03\x03\x01\x12\x04\xa1\x01\x0e\x11\n-\n\ - \n\x04\0\x03\x01\x03\x01\x03\x03\x02\0\x12\x04\xa3\x01\x08A\x1a\x19\x20R\ - equired.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x03\ - \x02\0\x05\x12\x04\xa3\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\ - \x03\x02\0\x01\x12\x04\xa3\x01\x0f\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x01\ - \x03\x03\x02\0\x03\x12\x04\xa3\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x01\x03\x03\x02\0\x08\x12\x04\xa3\x01\x18@\n\x16\n\x0e\x04\0\x03\x01\ - \x03\x01\x03\x03\x02\0\x08\x9c\x08\0\x12\x04\xa3\x01\x19?\n|\n\x08\x04\0\ - \x03\x01\x03\x01\x03\x04\x12\x06\xa9\x01\x06\xac\x01\x07\x1ah\x20A\x20pa\ - ckage\x20managed\x20by\x20Zypper.\n\x20-\x20install:\x20`zypper\x20-y\ - \x20install\x20package`\n\x20-\x20remove:\x20`zypper\x20-y\x20rm\x20pack\ - age`\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x03\x04\x01\x12\x04\xa9\x01\x0e\ - \x14\n-\n\n\x04\0\x03\x01\x03\x01\x03\x04\x02\0\x12\x04\xab\x01\x08A\x1a\ - \x19\x20Required.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x01\x03\x04\x02\0\x05\x12\x04\xab\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\ - \x03\x01\x03\x04\x02\0\x01\x12\x04\xab\x01\x0f\x13\n\x13\n\x0b\x04\0\x03\ - \x01\x03\x01\x03\x04\x02\0\x03\x12\x04\xab\x01\x16\x17\n\x13\n\x0b\x04\0\ - \x03\x01\x03\x01\x03\x04\x02\0\x08\x12\x04\xab\x01\x18@\n\x16\n\x0e\x04\ - \0\x03\x01\x03\x01\x03\x04\x02\0\x08\x9c\x08\0\x12\x04\xab\x01\x19?\n\ - \x90\x01\n\x08\x04\0\x03\x01\x03\x01\x03\x05\x12\x06\xb1\x01\x06\xb4\x01\ - \x07\x1a|\x20A\x20package\x20managed\x20by\x20GooGet.\n\x20-\x20install:\ - \x20`googet\x20-noconfirm\x20install\x20package`\n\x20-\x20remove:\x20`g\ - ooget\x20-noconfirm\x20remove\x20package`\n\n\x11\n\t\x04\0\x03\x01\x03\ - \x01\x03\x05\x01\x12\x04\xb1\x01\x0e\x14\n-\n\n\x04\0\x03\x01\x03\x01\ - \x03\x05\x02\0\x12\x04\xb3\x01\x08A\x1a\x19\x20Required.\x20Package\x20n\ - ame.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x05\x02\0\x05\x12\x04\xb3\ - \x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x05\x02\0\x01\x12\x04\ - \xb3\x01\x0f\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x05\x02\0\x03\x12\ - \x04\xb3\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x05\x02\0\x08\ - \x12\x04\xb3\x01\x18@\n\x16\n\x0e\x04\0\x03\x01\x03\x01\x03\x05\x02\0\ - \x08\x9c\x08\0\x12\x04\xb3\x01\x19?\nP\n\x08\x04\0\x03\x01\x03\x01\x03\ - \x06\x12\x06\xb7\x01\x06\xc0\x01\x07\x1a<\x20An\x20MSI\x20package.\x20MS\ - I\x20packages\x20only\x20support\x20INSTALLED\x20state.\n\n\x11\n\t\x04\ - \0\x03\x01\x03\x01\x03\x06\x01\x12\x04\xb7\x01\x0e\x11\n0\n\n\x04\0\x03\ - \x01\x03\x01\x03\x06\x02\0\x12\x04\xb9\x01\x08A\x1a\x1c\x20Required.\x20\ - The\x20MSI\x20package.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x06\x02\0\ - \x06\x12\x04\xb9\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x06\ - \x02\0\x01\x12\x04\xb9\x01\r\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\ - \x06\x02\0\x03\x12\x04\xb9\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x01\ - \x03\x06\x02\0\x08\x12\x04\xb9\x01\x18@\n\x16\n\x0e\x04\0\x03\x01\x03\ - \x01\x03\x06\x02\0\x08\x9c\x08\0\x12\x04\xb9\x01\x19?\n\xc1\x01\n\n\x04\ - \0\x03\x01\x03\x01\x03\x06\x02\x01\x12\x04\xbf\x01\x08'\x1a\xac\x01\x20A\ - dditional\x20properties\x20to\x20use\x20during\x20installation.\n\x20Thi\ - s\x20should\x20be\x20in\x20the\x20format\x20of\x20Property=Setting.\n\ - \x20Appended\x20to\x20the\x20defaults\x20of\x20`ACTION=INSTALL\n\x20REBO\ - OT=ReallySuppress`.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x06\x02\x01\ - \x04\x12\x04\xbf\x01\x08\x10\n\x13\n\x0b\x04\0\x03\x01\x03\x01\x03\x06\ - \x02\x01\x05\x12\x04\xbf\x01\x11\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x01\ - \x03\x06\x02\x01\x01\x12\x04\xbf\x01\x18\"\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x01\x03\x06\x02\x01\x03\x12\x04\xbf\x01%&\n[\n\x08\x04\0\x03\x01\x03\ - \x01\x02\0\x12\x04\xc3\x01\x06N\x1aI\x20Required.\x20The\x20desired\x20s\ - tate\x20the\x20agent\x20should\x20maintain\x20for\x20this\x20package.\n\ - \n\x11\n\t\x04\0\x03\x01\x03\x01\x02\0\x06\x12\x04\xc3\x01\x06\x12\n\x11\ - \n\t\x04\0\x03\x01\x03\x01\x02\0\x01\x12\x04\xc3\x01\x13\x20\n\x11\n\t\ - \x04\0\x03\x01\x03\x01\x02\0\x03\x12\x04\xc3\x01#$\n\x11\n\t\x04\0\x03\ - \x01\x03\x01\x02\0\x08\x12\x04\xc3\x01%M\n\x14\n\x0c\x04\0\x03\x01\x03\ - \x01\x02\0\x08\x9c\x08\0\x12\x04\xc3\x01&L\n'\n\x08\x04\0\x03\x01\x03\ - \x01\x08\0\x12\x06\xc6\x01\x06\xdb\x01\x07\x1a\x13\x20A\x20system\x20pac\ - kage.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x08\0\x01\x12\x04\xc6\x01\x0c\ - \x1a\n-\n\x08\x04\0\x03\x01\x03\x01\x02\x01\x12\x04\xc8\x01\x08\x14\x1a\ - \x1b\x20A\x20package\x20managed\x20by\x20Apt.\n\n\x11\n\t\x04\0\x03\x01\ - \x03\x01\x02\x01\x06\x12\x04\xc8\x01\x08\x0b\n\x11\n\t\x04\0\x03\x01\x03\ - \x01\x02\x01\x01\x12\x04\xc8\x01\x0c\x0f\n\x11\n\t\x04\0\x03\x01\x03\x01\ - \x02\x01\x03\x12\x04\xc8\x01\x12\x13\n'\n\x08\x04\0\x03\x01\x03\x01\x02\ - \x02\x12\x04\xcb\x01\x08\x14\x1a\x15\x20A\x20deb\x20package\x20file.\n\n\ - \x11\n\t\x04\0\x03\x01\x03\x01\x02\x02\x06\x12\x04\xcb\x01\x08\x0b\n\x11\ - \n\t\x04\0\x03\x01\x03\x01\x02\x02\x01\x12\x04\xcb\x01\x0c\x0f\n\x11\n\t\ - \x04\0\x03\x01\x03\x01\x02\x02\x03\x12\x04\xcb\x01\x12\x13\n-\n\x08\x04\ - \0\x03\x01\x03\x01\x02\x03\x12\x04\xce\x01\x08\x14\x1a\x1b\x20A\x20packa\ - ge\x20managed\x20by\x20YUM.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x03\ - \x06\x12\x04\xce\x01\x08\x0b\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x03\x01\ - \x12\x04\xce\x01\x0c\x0f\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x03\x03\x12\ - \x04\xce\x01\x12\x13\n0\n\x08\x04\0\x03\x01\x03\x01\x02\x04\x12\x04\xd1\ - \x01\x08\x1a\x1a\x1e\x20A\x20package\x20managed\x20by\x20Zypper.\n\n\x11\ - \n\t\x04\0\x03\x01\x03\x01\x02\x04\x06\x12\x04\xd1\x01\x08\x0e\n\x11\n\t\ - \x04\0\x03\x01\x03\x01\x02\x04\x01\x12\x04\xd1\x01\x0f\x15\n\x11\n\t\x04\ - \0\x03\x01\x03\x01\x02\x04\x03\x12\x04\xd1\x01\x18\x19\n(\n\x08\x04\0\ - \x03\x01\x03\x01\x02\x05\x12\x04\xd4\x01\x08\x14\x1a\x16\x20An\x20rpm\ - \x20package\x20file.\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x05\x06\x12\ - \x04\xd4\x01\x08\x0b\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x05\x01\x12\x04\ - \xd4\x01\x0c\x0f\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x05\x03\x12\x04\xd4\ - \x01\x12\x13\n0\n\x08\x04\0\x03\x01\x03\x01\x02\x06\x12\x04\xd7\x01\x08\ - \x1a\x1a\x1e\x20A\x20package\x20managed\x20by\x20GooGet.\n\n\x11\n\t\x04\ - \0\x03\x01\x03\x01\x02\x06\x06\x12\x04\xd7\x01\x08\x0e\n\x11\n\t\x04\0\ - \x03\x01\x03\x01\x02\x06\x01\x12\x04\xd7\x01\x0f\x15\n\x11\n\t\x04\0\x03\ - \x01\x03\x01\x02\x06\x03\x12\x04\xd7\x01\x18\x19\n#\n\x08\x04\0\x03\x01\ - \x03\x01\x02\x07\x12\x04\xda\x01\x08\x14\x1a\x11\x20An\x20MSI\x20package\ - .\n\n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x07\x06\x12\x04\xda\x01\x08\x0b\ - \n\x11\n\t\x04\0\x03\x01\x03\x01\x02\x07\x01\x12\x04\xda\x01\x0c\x0f\n\ - \x11\n\t\x04\0\x03\x01\x03\x01\x02\x07\x03\x12\x04\xda\x01\x12\x13\nA\n\ - \x06\x04\0\x03\x01\x03\x02\x12\x06\xdf\x01\x04\xc3\x02\x05\x1a/\x20A\x20\ - resource\x20that\x20manages\x20a\x20package\x20repository.\n\n\x0f\n\x07\ - \x04\0\x03\x01\x03\x02\x01\x12\x04\xdf\x01\x0c\x1e\n\xaf\x01\n\x08\x04\0\ - \x03\x01\x03\x02\x03\0\x12\x06\xe3\x01\x06\x80\x02\x07\x1a\x9a\x01\x20Re\ - presents\x20a\x20single\x20apt\x20package\x20repository.\x20These\x20wil\ - l\x20be\x20added\x20to\n\x20a\x20repo\x20file\x20that\x20will\x20be\x20m\ - anaged\x20at\n\x20`/etc/apt/sources.list.d/google_osconfig.list`.\n\n\ - \x11\n\t\x04\0\x03\x01\x03\x02\x03\0\x01\x12\x04\xe3\x01\x0e\x1b\n(\n\n\ - \x04\0\x03\x01\x03\x02\x03\0\x04\0\x12\x06\xe5\x01\x08\xee\x01\t\x1a\x12\ - \x20Type\x20of\x20archive.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x04\ - \0\x01\x12\x04\xe5\x01\r\x18\n/\n\x0c\x04\0\x03\x01\x03\x02\x03\0\x04\0\ - \x02\0\x12\x04\xe7\x01\n'\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\ - \x15\n\r\x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\0\x01\x12\x04\xe7\x01\n\"\ - \n\x15\n\r\x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\0\x02\x12\x04\xe7\x01%&\ - \nM\n\x0c\x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\x01\x12\x04\xea\x01\n\ - \x12\x1a7\x20Deb\x20indicates\x20that\x20the\x20archive\x20contains\x20b\ - inary\x20files.\n\n\x15\n\r\x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\x01\ - \x01\x12\x04\xea\x01\n\r\n\x15\n\r\x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\ - \x01\x02\x12\x04\xea\x01\x10\x11\nQ\n\x0c\x04\0\x03\x01\x03\x02\x03\0\ - \x04\0\x02\x02\x12\x04\xed\x01\n\x16\x1a;\x20Deb-src\x20indicates\x20tha\ - t\x20the\x20archive\x20contains\x20source\x20files.\n\n\x15\n\r\x04\0\ - \x03\x01\x03\x02\x03\0\x04\0\x02\x02\x01\x12\x04\xed\x01\n\x11\n\x15\n\r\ - \x04\0\x03\x01\x03\x02\x03\0\x04\0\x02\x02\x02\x12\x04\xed\x01\x14\x15\n\ - I\n\n\x04\0\x03\x01\x03\x02\x03\0\x02\0\x12\x04\xf1\x01\x08N\x1a5\x20Req\ - uired.\x20Type\x20of\x20archive\x20files\x20in\x20this\x20repository.\n\ - \n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\0\x06\x12\x04\xf1\x01\x08\ - \x13\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\0\x01\x12\x04\xf1\x01\ - \x14\x20\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\0\x03\x12\x04\xf1\ - \x01#$\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\0\x08\x12\x04\xf1\x01\ - %M\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\0\x02\0\x08\x9c\x08\0\x12\x04\ - \xf1\x01&L\n8\n\n\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x12\x04\xf4\x01\ - \x08@\x1a$\x20Required.\x20URI\x20for\x20this\x20repository.\n\n\x13\n\ - \x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x05\x12\x04\xf4\x01\x08\x0e\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x01\x12\x04\xf4\x01\x0f\ - \x12\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x03\x12\x04\xf4\x01\ - \x15\x16\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x08\x12\x04\xf4\ - \x01\x17?\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\0\x02\x01\x08\x9c\x08\0\ - \x12\x04\xf4\x01\x18>\n@\n\n\x04\0\x03\x01\x03\x02\x03\0\x02\x02\x12\x04\ - \xf7\x01\x08I\x1a,\x20Required.\x20Distribution\x20of\x20this\x20reposit\ - ory.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x02\x05\x12\x04\xf7\ - \x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x02\x01\x12\x04\ - \xf7\x01\x0f\x1b\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x02\x03\x12\ - \x04\xf7\x01\x1e\x1f\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x02\x08\ - \x12\x04\xf7\x01\x20H\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\0\x02\x02\ - \x08\x9c\x08\0\x12\x04\xf7\x01!G\nh\n\n\x04\0\x03\x01\x03\x02\x03\0\x02\ - \x03\x12\x04\xfb\x01\x08P\x1aT\x20Required.\x20List\x20of\x20components\ - \x20for\x20this\x20repository.\x20Must\x20contain\x20at\n\x20least\x20on\ - e\x20item.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x03\x04\x12\x04\ - \xfb\x01\x08\x10\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x03\x05\x12\ - \x04\xfb\x01\x11\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x03\x01\ - \x12\x04\xfb\x01\x18\"\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x03\ - \x03\x12\x04\xfb\x01%&\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x03\ - \x08\x12\x04\xfb\x01'O\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\0\x02\x03\ - \x08\x9c\x08\0\x12\x04\xfb\x01(N\n\x96\x01\n\n\x04\0\x03\x01\x03\x02\x03\ - \0\x02\x04\x12\x04\xff\x01\x08\x1b\x1a\x81\x01\x20URI\x20of\x20the\x20ke\ - y\x20file\x20for\x20this\x20repository.\x20The\x20agent\x20maintains\x20\ - a\n\x20keyring\x20at\x20`/etc/apt/trusted.gpg.d/osconfig_agent_managed.g\ - pg`.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x04\x05\x12\x04\xff\ - \x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x04\x01\x12\x04\ - \xff\x01\x0f\x16\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\0\x02\x04\x03\x12\ - \x04\xff\x01\x19\x1a\n\x9f\x01\n\x08\x04\0\x03\x01\x03\x02\x03\x01\x12\ - \x06\x85\x02\x06\x94\x02\x07\x1a\x8a\x01\x20Represents\x20a\x20single\ - \x20yum\x20package\x20repository.\x20These\x20are\x20added\x20to\x20a\n\ - \x20repo\x20file\x20that\x20is\x20managed\x20at\n\x20`/etc/yum.repos.d/g\ - oogle_osconfig.repo`.\n\n\x11\n\t\x04\0\x03\x01\x03\x02\x03\x01\x01\x12\ - \x04\x85\x02\x0e\x1b\n\x8c\x02\n\n\x04\0\x03\x01\x03\x02\x03\x01\x02\0\ - \x12\x04\x8a\x02\x08?\x1a\xf7\x01\x20Required.\x20A\x20one\x20word,\x20u\ - nique\x20name\x20for\x20this\x20repository.\x20This\x20is\x20\x20the\n\ - \x20`repo\x20id`\x20in\x20the\x20yum\x20config\x20file\x20and\x20also\ - \x20the\x20`display_name`\x20if\n\x20`display_name`\x20is\x20omitted.\ - \x20This\x20id\x20is\x20also\x20used\x20as\x20the\x20unique\n\x20identif\ - ier\x20when\x20checking\x20for\x20resource\x20conflicts.\n\n\x13\n\x0b\ - \x04\0\x03\x01\x03\x02\x03\x01\x02\0\x05\x12\x04\x8a\x02\x08\x0e\n\x13\n\ - \x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\0\x01\x12\x04\x8a\x02\x0f\x11\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\0\x03\x12\x04\x8a\x02\x14\ - \x15\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\0\x08\x12\x04\x8a\x02\ - \x16>\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\x01\x02\0\x08\x9c\x08\0\x12\ - \x04\x8a\x02\x17=\n9\n\n\x04\0\x03\x01\x03\x02\x03\x01\x02\x01\x12\x04\ - \x8d\x02\x08\x20\x1a%\x20The\x20display\x20name\x20of\x20the\x20reposito\ - ry.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\x01\x05\x12\x04\x8d\ - \x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\x01\x01\x12\ - \x04\x8d\x02\x0f\x1b\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x01\x02\x01\ - \x03\x12\x04\x8d\x02\x1e\x1f\nI\n\n\x04\0\x03\x01\x03\x02\x03\x01\x02\ - \x02\x12\x04\x90\x02\x08E\x1a5\x20Required.\x20The\x20location\x20of\x20\ - the\x20repository\x20directory.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\ - \x01\x02\x02\x05\x12\x04\x90\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x02\x03\x01\x02\x02\x01\x12\x04\x90\x02\x0f\x17\n\x13\n\x0b\x04\0\x03\ - \x01\x03\x02\x03\x01\x02\x02\x03\x12\x04\x90\x02\x1a\x1b\n\x13\n\x0b\x04\ - \0\x03\x01\x03\x02\x03\x01\x02\x02\x08\x12\x04\x90\x02\x1cD\n\x16\n\x0e\ - \x04\0\x03\x01\x03\x02\x03\x01\x02\x02\x08\x9c\x08\0\x12\x04\x90\x02\x1d\ - C\n'\n\n\x04\0\x03\x01\x03\x02\x03\x01\x02\x03\x12\x04\x93\x02\x08%\x1a\ - \x13\x20URIs\x20of\x20GPG\x20keys.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\ - \x03\x01\x02\x03\x04\x12\x04\x93\x02\x08\x10\n\x13\n\x0b\x04\0\x03\x01\ - \x03\x02\x03\x01\x02\x03\x05\x12\x04\x93\x02\x11\x17\n\x13\n\x0b\x04\0\ - \x03\x01\x03\x02\x03\x01\x02\x03\x01\x12\x04\x93\x02\x18\x20\n\x13\n\x0b\ - \x04\0\x03\x01\x03\x02\x03\x01\x02\x03\x03\x12\x04\x93\x02#$\n\xa3\x01\n\ - \x08\x04\0\x03\x01\x03\x02\x03\x02\x12\x06\x99\x02\x06\xa8\x02\x07\x1a\ - \x8e\x01\x20Represents\x20a\x20single\x20zypper\x20package\x20repository\ - .\x20These\x20are\x20added\x20to\x20a\n\x20repo\x20file\x20that\x20is\ - \x20managed\x20at\n\x20`/etc/zypp/repos.d/google_osconfig.repo`.\n\n\x11\ - \n\t\x04\0\x03\x01\x03\x02\x03\x02\x01\x12\x04\x99\x02\x0e\x1e\n\x91\x02\ - \n\n\x04\0\x03\x01\x03\x02\x03\x02\x02\0\x12\x04\x9e\x02\x08?\x1a\xfc\ - \x01\x20Required.\x20A\x20one\x20word,\x20unique\x20name\x20for\x20this\ - \x20repository.\x20This\x20is\x20the\n\x20`repo\x20id`\x20in\x20the\x20z\ - ypper\x20config\x20file\x20and\x20also\x20the\x20`display_name`\x20if\n\ - \x20`display_name`\x20is\x20omitted.\x20This\x20id\x20is\x20also\x20used\ - \x20as\x20the\x20unique\n\x20identifier\x20when\x20checking\x20for\x20Gu\ - estPolicy\x20conflicts.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\ - \0\x05\x12\x04\x9e\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\ - \x02\0\x01\x12\x04\x9e\x02\x0f\x11\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\ - \x02\x02\0\x03\x12\x04\x9e\x02\x14\x15\n\x13\n\x0b\x04\0\x03\x01\x03\x02\ - \x03\x02\x02\0\x08\x12\x04\x9e\x02\x16>\n\x16\n\x0e\x04\0\x03\x01\x03\ - \x02\x03\x02\x02\0\x08\x9c\x08\0\x12\x04\x9e\x02\x17=\n9\n\n\x04\0\x03\ - \x01\x03\x02\x03\x02\x02\x01\x12\x04\xa1\x02\x08\x20\x1a%\x20The\x20disp\ - lay\x20name\x20of\x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x02\x03\x02\x02\x01\x05\x12\x04\xa1\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\ - \x01\x03\x02\x03\x02\x02\x01\x01\x12\x04\xa1\x02\x0f\x1b\n\x13\n\x0b\x04\ - \0\x03\x01\x03\x02\x03\x02\x02\x01\x03\x12\x04\xa1\x02\x1e\x1f\nI\n\n\ - \x04\0\x03\x01\x03\x02\x03\x02\x02\x02\x12\x04\xa4\x02\x08E\x1a5\x20Requ\ - ired.\x20The\x20location\x20of\x20the\x20repository\x20directory.\n\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x02\x05\x12\x04\xa4\x02\x08\ - \x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x02\x01\x12\x04\xa4\ - \x02\x0f\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x02\x03\x12\ - \x04\xa4\x02\x1a\x1b\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x02\ - \x08\x12\x04\xa4\x02\x1cD\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\x02\x02\ - \x02\x08\x9c\x08\0\x12\x04\xa4\x02\x1dC\n'\n\n\x04\0\x03\x01\x03\x02\x03\ - \x02\x02\x03\x12\x04\xa7\x02\x08%\x1a\x13\x20URIs\x20of\x20GPG\x20keys.\ - \n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x03\x04\x12\x04\xa7\x02\ - \x08\x10\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x03\x05\x12\x04\ - \xa7\x02\x11\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\x03\x01\ - \x12\x04\xa7\x02\x18\x20\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x02\x02\ - \x03\x03\x12\x04\xa7\x02#$\n\xa3\x01\n\x08\x04\0\x03\x01\x03\x02\x03\x03\ - \x12\x06\xad\x02\x06\xb3\x02\x07\x1a\x8e\x01\x20Represents\x20a\x20Goo\ - \x20package\x20repository.\x20These\x20are\x20added\x20to\x20a\x20repo\ - \x20file\n\x20that\x20is\x20managed\x20at\n\x20`C:/ProgramData/GooGet/re\ - pos/google_osconfig.repo`.\n\n\x11\n\t\x04\0\x03\x01\x03\x02\x03\x03\x01\ - \x12\x04\xad\x02\x0e\x1b\n;\n\n\x04\0\x03\x01\x03\x02\x03\x03\x02\0\x12\ - \x04\xaf\x02\x08A\x1a'\x20Required.\x20The\x20name\x20of\x20the\x20repos\ - itory.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\x02\0\x05\x12\x04\xaf\ - \x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\x02\0\x01\x12\x04\ - \xaf\x02\x0f\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\x02\0\x03\x12\ - \x04\xaf\x02\x16\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\x02\0\x08\ - \x12\x04\xaf\x02\x18@\n\x16\n\x0e\x04\0\x03\x01\x03\x02\x03\x03\x02\0\ - \x08\x9c\x08\0\x12\x04\xaf\x02\x19?\n:\n\n\x04\0\x03\x01\x03\x02\x03\x03\ - \x02\x01\x12\x04\xb2\x02\x08@\x1a&\x20Required.\x20The\x20url\x20of\x20t\ - he\x20repository.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\x02\x01\ - \x05\x12\x04\xb2\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x02\x03\x03\ - \x02\x01\x01\x12\x04\xb2\x02\x0f\x12\n\x13\n\x0b\x04\0\x03\x01\x03\x02\ - \x03\x03\x02\x01\x03\x12\x04\xb2\x02\x15\x16\n\x13\n\x0b\x04\0\x03\x01\ - \x03\x02\x03\x03\x02\x01\x08\x12\x04\xb2\x02\x17?\n\x16\n\x0e\x04\0\x03\ - \x01\x03\x02\x03\x03\x02\x01\x08\x9c\x08\0\x12\x04\xb2\x02\x18>\n4\n\x08\ - \x04\0\x03\x01\x03\x02\x08\0\x12\x06\xb6\x02\x06\xc2\x02\x07\x1a\x20\x20\ - A\x20specific\x20type\x20of\x20repository.\n\n\x11\n\t\x04\0\x03\x01\x03\ - \x02\x08\0\x01\x12\x04\xb6\x02\x0c\x16\n&\n\x08\x04\0\x03\x01\x03\x02\ - \x02\0\x12\x04\xb8\x02\x08\x1e\x1a\x14\x20An\x20Apt\x20Repository.\n\n\ - \x11\n\t\x04\0\x03\x01\x03\x02\x02\0\x06\x12\x04\xb8\x02\x08\x15\n\x11\n\ - \t\x04\0\x03\x01\x03\x02\x02\0\x01\x12\x04\xb8\x02\x16\x19\n\x11\n\t\x04\ - \0\x03\x01\x03\x02\x02\0\x03\x12\x04\xb8\x02\x1c\x1d\n%\n\x08\x04\0\x03\ - \x01\x03\x02\x02\x01\x12\x04\xbb\x02\x08\x1e\x1a\x13\x20A\x20Yum\x20Repo\ - sitory.\n\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x01\x06\x12\x04\xbb\x02\ - \x08\x15\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x01\x01\x12\x04\xbb\x02\x16\ - \x19\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x01\x03\x12\x04\xbb\x02\x1c\x1d\ - \n(\n\x08\x04\0\x03\x01\x03\x02\x02\x02\x12\x04\xbe\x02\x08$\x1a\x16\x20\ - A\x20Zypper\x20Repository.\n\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x02\x06\ - \x12\x04\xbe\x02\x08\x18\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x02\x01\x12\ - \x04\xbe\x02\x19\x1f\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\x02\x03\x12\x04\ - \xbe\x02\"#\n%\n\x08\x04\0\x03\x01\x03\x02\x02\x03\x12\x04\xc1\x02\x08\ - \x1e\x1a\x13\x20A\x20Goo\x20Repository.\n\n\x11\n\t\x04\0\x03\x01\x03\ - \x02\x02\x03\x06\x12\x04\xc1\x02\x08\x15\n\x11\n\t\x04\0\x03\x01\x03\x02\ - \x02\x03\x01\x12\x04\xc1\x02\x16\x19\n\x11\n\t\x04\0\x03\x01\x03\x02\x02\ - \x03\x03\x12\x04\xc1\x02\x1c\x1d\n\x8a\x0b\n\x06\x04\0\x03\x01\x03\x03\ - \x12\x06\xdf\x02\x04\x99\x03\x05\x1a\xf7\n\x20A\x20resource\x20that\x20a\ - llows\x20executing\x20scripts\x20on\x20the\x20VM.\n\n\x20The\x20`ExecRes\ - ource`\x20has\x202\x20stages:\x20`validate`\x20and\x20`enforce`\x20and\ - \x20both\x20stages\n\x20accept\x20a\x20script\x20as\x20an\x20argument\ - \x20to\x20execute.\n\n\x20When\x20the\x20`ExecResource`\x20is\x20applied\ - \x20by\x20the\x20agent,\x20it\x20first\x20executes\x20the\n\x20script\ - \x20in\x20the\x20`validate`\x20stage.\x20The\x20`validate`\x20stage\x20c\ - an\x20signal\x20that\x20the\n\x20`ExecResource`\x20is\x20already\x20in\ - \x20the\x20desired\x20state\x20by\x20returning\x20an\x20exit\x20code\n\ - \x20of\x20`100`.\x20If\x20the\x20`ExecResource`\x20is\x20not\x20in\x20th\ - e\x20desired\x20state,\x20it\x20should\n\x20return\x20an\x20exit\x20code\ - \x20of\x20`101`.\x20Any\x20other\x20exit\x20code\x20returned\x20by\x20th\ - is\x20stage\n\x20is\x20considered\x20an\x20error.\n\n\x20If\x20the\x20`E\ - xecResource`\x20is\x20not\x20in\x20the\x20desired\x20state\x20based\x20o\ - n\x20the\x20exit\x20code\n\x20from\x20the\x20`validate`\x20stage,\x20the\ - \x20agent\x20proceeds\x20to\x20execute\x20the\x20script\x20from\n\x20the\ - \x20`enforce`\x20stage.\x20If\x20the\x20`ExecResource`\x20is\x20already\ - \x20in\x20the\x20desired\n\x20state,\x20the\x20`enforce`\x20stage\x20wil\ - l\x20not\x20be\x20run.\n\x20Similar\x20to\x20`validate`\x20stage,\x20the\ - \x20`enforce`\x20stage\x20should\x20return\x20an\x20exit\n\x20code\x20of\ - \x20`100`\x20to\x20indicate\x20that\x20the\x20resource\x20in\x20now\x20i\ - n\x20its\x20desired\x20state.\n\x20Any\x20other\x20exit\x20code\x20is\ - \x20considered\x20an\x20error.\n\n\x20NOTE:\x20An\x20exit\x20code\x20of\ - \x20`100`\x20was\x20chosen\x20over\x20`0`\x20(and\x20`101`\x20vs\x20`1`)\ - \x20to\n\x20have\x20an\x20explicit\x20indicator\x20of\x20`in\x20desired\ - \x20state`,\x20`not\x20in\x20desired\x20state`\n\x20and\x20errors.\x20Be\ - cause,\x20for\x20example,\x20Powershell\x20will\x20always\x20return\x20a\ - n\x20exit\n\x20code\x20of\x20`0`\x20unless\x20an\x20`exit`\x20statement\ - \x20is\x20provided\x20in\x20the\x20script.\x20So,\x20for\n\x20reasons\ - \x20of\x20consistency\x20and\x20being\x20explicit,\x20exit\x20codes\x20`\ - 100`\x20and\x20`101`\n\x20were\x20chosen.\n\n\x0f\n\x07\x04\0\x03\x01\ - \x03\x03\x01\x12\x04\xdf\x02\x0c\x18\n2\n\x08\x04\0\x03\x01\x03\x03\x03\ - \0\x12\x06\xe1\x02\x06\x8d\x03\x07\x1a\x1e\x20A\x20file\x20or\x20script\ - \x20to\x20execute.\n\n\x11\n\t\x04\0\x03\x01\x03\x03\x03\0\x01\x12\x04\ - \xe1\x02\x0e\x12\n/\n\n\x04\0\x03\x01\x03\x03\x03\0\x04\0\x12\x06\xe3\ - \x02\x08\xf4\x02\t\x1a\x19\x20The\x20interpreter\x20to\x20use.\n\n\x13\n\ - \x0b\x04\0\x03\x01\x03\x03\x03\0\x04\0\x01\x12\x04\xe3\x02\r\x18\nP\n\ - \x0c\x04\0\x03\x01\x03\x03\x03\0\x04\0\x02\0\x12\x04\xe5\x02\n&\x1a:\x20\ - Invalid\x20value,\x20the\x20request\x20will\x20return\x20validation\x20e\ - rror.\n\n\x15\n\r\x04\0\x03\x01\x03\x03\x03\0\x04\0\x02\0\x01\x12\x04\ - \xe5\x02\n!\n\x15\n\r\x04\0\x03\x01\x03\x03\x03\0\x04\0\x02\0\x02\x12\ - \x04\xe5\x02$%\n\x98\x02\n\x0c\x04\0\x03\x01\x03\x03\x03\0\x04\0\x02\x01\ - \x12\x04\xec\x02\n\x13\x1a\x81\x02\x20If\x20an\x20interpreter\x20is\x20n\ - ot\x20specified,\x20the\n\x20source\x20is\x20executed\x20directly.\x20Th\ - is\x20execution,\x20without\x20an\n\x20interpreter,\x20only\x20succeeds\ - \x20for\x20executables\x20and\x20scripts\x20that\x20have\x20shebang\x20lines.\n\n\x15\n\r\x04\0\x03\x01\x03\x03\x03\0\x04\0\ - \x02\x01\x01\x12\x04\xec\x02\n\x0e\n\x15\n\r\x04\0\x03\x01\x03\x03\x03\0\ - \x04\0\x02\x01\x02\x12\x04\xec\x02\x11\x12\ni\n\x0c\x04\0\x03\x01\x03\ - \x03\x03\0\x04\0\x02\x02\x12\x04\xf0\x02\n\x14\x1aS\x20Indicates\x20that\ - \x20the\x20script\x20runs\x20with\x20`/bin/sh`\x20on\x20Linux\x20and\n\ - \x20`cmd.exe`\x20on\x20Windows.\n\n\x15\n\r\x04\0\x03\x01\x03\x03\x03\0\ - \x04\0\x02\x02\x01\x12\x04\xf0\x02\n\x0f\n\x15\n\r\x04\0\x03\x01\x03\x03\ - \x03\0\x04\0\x02\x02\x02\x12\x04\xf0\x02\x12\x13\nG\n\x0c\x04\0\x03\x01\ - \x03\x03\x03\0\x04\0\x02\x03\x12\x04\xf3\x02\n\x19\x1a1\x20Indicates\x20\ - that\x20the\x20script\x20runs\x20with\x20PowerShell.\n\n\x15\n\r\x04\0\ - \x03\x01\x03\x03\x03\0\x04\0\x02\x03\x01\x12\x04\xf3\x02\n\x14\n\x15\n\r\ - \x04\0\x03\x01\x03\x03\x03\0\x04\0\x02\x03\x02\x12\x04\xf3\x02\x17\x18\n\ - (\n\n\x04\0\x03\x01\x03\x03\x03\0\x08\0\x12\x06\xf7\x02\x08\xfe\x02\t\ - \x1a\x12\x20What\x20to\x20execute.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x03\ - \x03\0\x08\0\x01\x12\x04\xf7\x02\x0e\x14\n-\n\n\x04\0\x03\x01\x03\x03\ - \x03\0\x02\0\x12\x04\xf9\x02\n\x18\x1a\x19\x20A\x20remote\x20or\x20local\ - \x20file.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\0\x06\x12\x04\ - \xf9\x02\n\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\0\x01\x12\x04\ - \xf9\x02\x0f\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\0\x03\x12\ - \x04\xf9\x02\x16\x17\n^\n\n\x04\0\x03\x01\x03\x03\x03\0\x02\x01\x12\x04\ - \xfd\x02\n\x1c\x1aJ\x20An\x20inline\x20script.\n\x20The\x20size\x20of\ - \x20the\x20script\x20is\x20limited\x20to\x201024\x20characters.\n\n\x13\ - \n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\x01\x05\x12\x04\xfd\x02\n\x10\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\x01\x01\x12\x04\xfd\x02\x11\ - \x17\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\x01\x03\x12\x04\xfd\x02\ - \x1a\x1b\nP\n\n\x04\0\x03\x01\x03\x03\x03\0\x02\x02\x12\x04\x81\x03\x08!\ - \x1a<\x20Optional\x20arguments\x20to\x20pass\x20to\x20the\x20source\x20d\ - uring\x20execution.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\x02\ - \x04\x12\x04\x81\x03\x08\x10\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\ - \x02\x05\x12\x04\x81\x03\x11\x17\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\ - \x02\x02\x01\x12\x04\x81\x03\x18\x1c\n\x13\n\x0b\x04\0\x03\x01\x03\x03\ - \x03\0\x02\x02\x03\x12\x04\x81\x03\x1f\x20\n>\n\n\x04\0\x03\x01\x03\x03\ - \x03\0\x02\x03\x12\x04\x84\x03\x08M\x1a*\x20Required.\x20The\x20script\ - \x20interpreter\x20to\x20use.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\ - \x02\x03\x06\x12\x04\x84\x03\x08\x13\n\x13\n\x0b\x04\0\x03\x01\x03\x03\ - \x03\0\x02\x03\x01\x12\x04\x84\x03\x14\x1f\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x03\x03\0\x02\x03\x03\x12\x04\x84\x03\"#\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x03\x03\0\x02\x03\x08\x12\x04\x84\x03$L\n\x16\n\x0e\x04\0\x03\x01\x03\ - \x03\x03\0\x02\x03\x08\x9c\x08\0\x12\x04\x84\x03%K\n\xcc\x02\n\n\x04\0\ - \x03\x01\x03\x03\x03\0\x02\x04\x12\x04\x8c\x03\x08$\x1a\xb7\x02\x20Only\ - \x20recorded\x20for\x20enforce\x20Exec.\n\x20Path\x20to\x20an\x20output\ - \x20file\x20(that\x20is\x20created\x20by\x20this\x20Exec)\x20whose\n\x20\ - content\x20will\x20be\x20recorded\x20in\x20OSPolicyResourceCompliance\ - \x20after\x20a\n\x20successful\x20run.\x20Absence\x20or\x20failure\x20to\ - \x20read\x20this\x20file\x20will\x20result\x20in\n\x20this\x20ExecResour\ - ce\x20being\x20non-compliant.\x20Output\x20file\x20size\x20is\x20limited\ - \x20to\n\x20100K\x20bytes.\n\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\x02\ - \x04\x05\x12\x04\x8c\x03\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\x03\x03\x03\0\ - \x02\x04\x01\x12\x04\x8c\x03\x0f\x1f\n\x13\n\x0b\x04\0\x03\x01\x03\x03\ - \x03\0\x02\x04\x03\x12\x04\x8c\x03\"#\n\x83\x02\n\x08\x04\0\x03\x01\x03\ - \x03\x02\0\x12\x04\x93\x03\x06A\x1a\xf0\x01\x20Required.\x20What\x20to\ - \x20run\x20to\x20validate\x20this\x20resource\x20is\x20in\x20the\x20desi\ - red\n\x20state.\x20An\x20exit\x20code\x20of\x20100\x20indicates\x20\"in\ - \x20desired\x20state\",\x20and\x20exit\x20code\n\x20of\x20101\x20indicat\ - es\x20\"not\x20in\x20desired\x20state\".\x20Any\x20other\x20exit\x20code\ - \x20indicates\n\x20a\x20failure\x20running\x20validate.\n\n\x11\n\t\x04\ - \0\x03\x01\x03\x03\x02\0\x06\x12\x04\x93\x03\x06\n\n\x11\n\t\x04\0\x03\ - \x01\x03\x03\x02\0\x01\x12\x04\x93\x03\x0b\x13\n\x11\n\t\x04\0\x03\x01\ - \x03\x03\x02\0\x03\x12\x04\x93\x03\x16\x17\n\x11\n\t\x04\0\x03\x01\x03\ - \x03\x02\0\x08\x12\x04\x93\x03\x18@\n\x14\n\x0c\x04\0\x03\x01\x03\x03\ - \x02\0\x08\x9c\x08\0\x12\x04\x93\x03\x19?\n\xb3\x01\n\x08\x04\0\x03\x01\ - \x03\x03\x02\x01\x12\x04\x98\x03\x06\x17\x1a\xa0\x01\x20What\x20to\x20ru\ - n\x20to\x20bring\x20this\x20resource\x20into\x20the\x20desired\x20state.\ - \n\x20An\x20exit\x20code\x20of\x20100\x20indicates\x20\"success\",\x20an\ - y\x20other\x20exit\x20code\x20indicates\n\x20a\x20failure\x20running\x20\ - enforce.\n\n\x11\n\t\x04\0\x03\x01\x03\x03\x02\x01\x06\x12\x04\x98\x03\ - \x06\n\n\x11\n\t\x04\0\x03\x01\x03\x03\x02\x01\x01\x12\x04\x98\x03\x0b\ - \x12\n\x11\n\t\x04\0\x03\x01\x03\x03\x02\x01\x03\x12\x04\x98\x03\x15\x16\ - \n@\n\x06\x04\0\x03\x01\x03\x04\x12\x06\x9c\x03\x04\xcb\x03\x05\x1a.\x20\ - A\x20resource\x20that\x20manages\x20the\x20state\x20of\x20a\x20file.\n\n\ - \x0f\n\x07\x04\0\x03\x01\x03\x04\x01\x12\x04\x9c\x03\x0c\x18\n0\n\x08\ - \x04\0\x03\x01\x03\x04\x04\0\x12\x06\x9e\x03\x06\xab\x03\x07\x1a\x1c\x20\ - Desired\x20state\x20of\x20the\x20file.\n\n\x11\n\t\x04\0\x03\x01\x03\x04\ - \x04\0\x01\x12\x04\x9e\x03\x0b\x17\n-\n\n\x04\0\x03\x01\x03\x04\x04\0\ - \x02\0\x12\x04\xa0\x03\x08&\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x04\x04\0\x02\0\x01\x12\x04\xa0\x03\x08!\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x04\x04\0\x02\0\x02\x12\x04\xa0\x03$%\n5\n\ - \n\x04\0\x03\x01\x03\x04\x04\0\x02\x01\x12\x04\xa3\x03\x08\x14\x1a!\x20E\ - nsure\x20file\x20at\x20path\x20is\x20present.\n\n\x13\n\x0b\x04\0\x03\ - \x01\x03\x04\x04\0\x02\x01\x01\x12\x04\xa3\x03\x08\x0f\n\x13\n\x0b\x04\0\ - \x03\x01\x03\x04\x04\0\x02\x01\x02\x12\x04\xa3\x03\x12\x13\n4\n\n\x04\0\ - \x03\x01\x03\x04\x04\0\x02\x02\x12\x04\xa6\x03\x08\x13\x1a\x20\x20Ensure\ - \x20file\x20at\x20path\x20is\x20absent.\n\n\x13\n\x0b\x04\0\x03\x01\x03\ - \x04\x04\0\x02\x02\x01\x12\x04\xa6\x03\x08\x0e\n\x13\n\x0b\x04\0\x03\x01\ - \x03\x04\x04\0\x02\x02\x02\x12\x04\xa6\x03\x11\x12\nv\n\n\x04\0\x03\x01\ - \x03\x04\x04\0\x02\x03\x12\x04\xaa\x03\x08\x1b\x1ab\x20Ensure\x20the\x20\ - contents\x20of\x20the\x20file\x20at\x20path\x20matches.\x20If\x20the\x20\ - file\x20does\n\x20not\x20exist\x20it\x20will\x20be\x20created.\n\n\x13\n\ - \x0b\x04\0\x03\x01\x03\x04\x04\0\x02\x03\x01\x12\x04\xaa\x03\x08\x16\n\ - \x13\n\x0b\x04\0\x03\x01\x03\x04\x04\0\x02\x03\x02\x12\x04\xaa\x03\x19\ - \x1a\n>\n\x08\x04\0\x03\x01\x03\x04\x08\0\x12\x06\xae\x03\x06\xb5\x03\ - \x07\x1a*\x20The\x20source\x20for\x20the\x20contents\x20of\x20the\x20fil\ - e.\n\n\x11\n\t\x04\0\x03\x01\x03\x04\x08\0\x01\x12\x04\xae\x03\x0c\x12\n\ - -\n\x08\x04\0\x03\x01\x03\x04\x02\0\x12\x04\xb0\x03\x08\x16\x1a\x1b\x20A\ - \x20remote\x20or\x20local\x20source.\n\n\x11\n\t\x04\0\x03\x01\x03\x04\ - \x02\0\x06\x12\x04\xb0\x03\x08\x0c\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\0\ - \x01\x12\x04\xb0\x03\r\x11\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\0\x03\x12\ - \x04\xb0\x03\x14\x15\ng\n\x08\x04\0\x03\x01\x03\x04\x02\x01\x12\x04\xb4\ - \x03\x08\x1b\x1aU\x20A\x20a\x20file\x20with\x20this\x20content.\n\x20The\ - \x20size\x20of\x20the\x20content\x20is\x20limited\x20to\x201024\x20chara\ - cters.\n\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\x01\x05\x12\x04\xb4\x03\x08\ - \x0e\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\x01\x01\x12\x04\xb4\x03\x0f\x16\ - \n\x11\n\t\x04\0\x03\x01\x03\x04\x02\x01\x03\x12\x04\xb4\x03\x19\x1a\nJ\ - \n\x08\x04\0\x03\x01\x03\x04\x02\x02\x12\x04\xb8\x03\x06?\x1a8\x20Requir\ - ed.\x20The\x20absolute\x20path\x20of\x20the\x20file\x20within\x20the\x20\ - VM.\n\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\x02\x05\x12\x04\xb8\x03\x06\ - \x0c\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\x02\x01\x12\x04\xb8\x03\r\x11\n\ - \x11\n\t\x04\0\x03\x01\x03\x04\x02\x02\x03\x12\x04\xb8\x03\x14\x15\n\x11\ - \n\t\x04\0\x03\x01\x03\x04\x02\x02\x08\x12\x04\xb8\x03\x16>\n\x14\n\x0c\ - \x04\0\x03\x01\x03\x04\x02\x02\x08\x9c\x08\0\x12\x04\xb8\x03\x17=\n8\n\ - \x08\x04\0\x03\x01\x03\x04\x02\x03\x12\x04\xbb\x03\x06F\x1a&\x20Required\ - .\x20Desired\x20state\x20of\x20the\x20file.\n\n\x11\n\t\x04\0\x03\x01\ - \x03\x04\x02\x03\x06\x12\x04\xbb\x03\x06\x12\n\x11\n\t\x04\0\x03\x01\x03\ - \x04\x02\x03\x01\x12\x04\xbb\x03\x13\x18\n\x11\n\t\x04\0\x03\x01\x03\x04\ - \x02\x03\x03\x12\x04\xbb\x03\x1b\x1c\n\x11\n\t\x04\0\x03\x01\x03\x04\x02\ - \x03\x08\x12\x04\xbb\x03\x1dE\n\x14\n\x0c\x04\0\x03\x01\x03\x04\x02\x03\ - \x08\x9c\x08\0\x12\x04\xbb\x03\x1eD\n\xc7\x04\n\x08\x04\0\x03\x01\x03\ - \x04\x02\x04\x12\x04\xca\x03\x06\x1d\x1a\xb4\x04\x20Consists\x20of\x20th\ - ree\x20octal\x20digits\x20which\x20represent,\x20in\n\x20order,\x20the\ - \x20permissions\x20of\x20the\x20owner,\x20group,\x20and\x20other\x20user\ - s\x20for\x20the\n\x20file\x20(similarly\x20to\x20the\x20numeric\x20mode\ - \x20used\x20in\x20the\x20linux\x20chmod\n\x20utility).\x20Each\x20digit\ - \x20represents\x20a\x20three\x20bit\x20number\x20with\x20the\x204\x20bit\ - \n\x20corresponding\x20to\x20the\x20read\x20permissions,\x20the\x202\x20\ - bit\x20corresponds\x20to\x20the\n\x20write\x20bit,\x20and\x20the\x20one\ - \x20bit\x20corresponds\x20to\x20the\x20execute\x20permission.\n\x20Defau\ - lt\x20behavior\x20is\x20755.\n\n\x20Below\x20are\x20some\x20examples\x20\ - of\x20permissions\x20and\x20their\x20associated\x20values:\n\x20read,\ - \x20write,\x20and\x20execute:\x207\n\x20read\x20and\x20execute:\x205\n\ - \x20read\x20and\x20write:\x206\n\x20read\x20only:\x204\n\n\x11\n\t\x04\0\ - \x03\x01\x03\x04\x02\x04\x05\x12\x04\xca\x03\x06\x0c\n\x11\n\t\x04\0\x03\ - \x01\x03\x04\x02\x04\x01\x12\x04\xca\x03\r\x18\n\x11\n\t\x04\0\x03\x01\ - \x03\x04\x02\x04\x03\x12\x04\xca\x03\x1b\x1c\n\xa3\x02\n\x06\x04\0\x03\ - \x01\x02\0\x12\x04\xd4\x03\x04;\x1a\x92\x02\x20Required.\x20The\x20id\ - \x20of\x20the\x20resource\x20with\x20the\x20following\x20restrictions:\n\ - \n\x20*\x20Must\x20contain\x20only\x20lowercase\x20letters,\x20numbers,\ - \x20and\x20hyphens.\n\x20*\x20Must\x20start\x20with\x20a\x20letter.\n\ - \x20*\x20Must\x20be\x20between\x201-63\x20characters.\n\x20*\x20Must\x20\ - end\x20with\x20a\x20number\x20or\x20a\x20letter.\n\x20*\x20Must\x20be\ - \x20unique\x20within\x20the\x20OS\x20policy.\n\n\x0f\n\x07\x04\0\x03\x01\ - \x02\0\x05\x12\x04\xd4\x03\x04\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x01\x12\ - \x04\xd4\x03\x0b\r\n\x0f\n\x07\x04\0\x03\x01\x02\0\x03\x12\x04\xd4\x03\ - \x10\x11\n\x0f\n\x07\x04\0\x03\x01\x02\0\x08\x12\x04\xd4\x03\x12:\n\x12\ - \n\n\x04\0\x03\x01\x02\0\x08\x9c\x08\0\x12\x04\xd4\x03\x139\n\"\n\x06\ - \x04\0\x03\x01\x08\0\x12\x06\xd7\x03\x04\xe3\x03\x05\x1a\x10\x20Resource\ - \x20type.\n\n\x0f\n\x07\x04\0\x03\x01\x08\0\x01\x12\x04\xd7\x03\n\x17\n\ - \"\n\x06\x04\0\x03\x01\x02\x01\x12\x04\xd9\x03\x06\x1e\x1a\x12\x20Packag\ - e\x20resource\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\xd9\x03\ - \x06\x15\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x04\xd9\x03\x16\x19\n\ - \x0f\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x04\xd9\x03\x1c\x1d\n-\n\x06\ - \x04\0\x03\x01\x02\x02\x12\x04\xdc\x03\x06(\x1a\x1d\x20Package\x20reposi\ - tory\x20resource\n\n\x0f\n\x07\x04\0\x03\x01\x02\x02\x06\x12\x04\xdc\x03\ - \x06\x18\n\x0f\n\x07\x04\0\x03\x01\x02\x02\x01\x12\x04\xdc\x03\x19#\n\ - \x0f\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x04\xdc\x03&'\n\x1f\n\x06\x04\0\ - \x03\x01\x02\x03\x12\x04\xdf\x03\x06\x1c\x1a\x0f\x20Exec\x20resource\n\n\ - \x0f\n\x07\x04\0\x03\x01\x02\x03\x06\x12\x04\xdf\x03\x06\x12\n\x0f\n\x07\ - \x04\0\x03\x01\x02\x03\x01\x12\x04\xdf\x03\x13\x17\n\x0f\n\x07\x04\0\x03\ - \x01\x02\x03\x03\x12\x04\xdf\x03\x1a\x1b\n\x1f\n\x06\x04\0\x03\x01\x02\ - \x04\x12\x04\xe2\x03\x06\x1c\x1a\x0f\x20File\x20resource\n\n\x0f\n\x07\ - \x04\0\x03\x01\x02\x04\x06\x12\x04\xe2\x03\x06\x12\n\x0f\n\x07\x04\0\x03\ - \x01\x02\x04\x01\x12\x04\xe2\x03\x13\x17\n\x0f\n\x07\x04\0\x03\x01\x02\ - \x04\x03\x12\x04\xe2\x03\x1a\x1b\n\x86\x03\n\x04\x04\0\x03\x02\x12\x06\ - \xee\x03\x02\x81\x04\x03\x1a\xf5\x02\x20Resource\x20groups\x20provide\ - \x20a\x20mechanism\x20to\x20group\x20OS\x20policy\x20resources.\n\n\x20R\ - esource\x20groups\x20enable\x20OS\x20policy\x20authors\x20to\x20create\ - \x20a\x20single\x20OS\x20policy\n\x20to\x20be\x20applied\x20to\x20VMs\ - \x20running\x20different\x20operating\x20Systems.\n\n\x20When\x20the\x20\ - OS\x20policy\x20is\x20applied\x20to\x20a\x20target\x20VM,\x20the\x20appr\ - opriate\x20resource\n\x20group\x20within\x20the\x20OS\x20policy\x20is\ - \x20selected\x20based\x20on\x20the\x20`OSFilter`\x20specified\n\x20withi\ - n\x20the\x20resource\x20group.\n\n\r\n\x05\x04\0\x03\x02\x01\x12\x04\xee\ - \x03\n\x17\n\xa3\x04\n\x06\x04\0\x03\x02\x02\0\x12\x04\xfc\x03\x043\x1a\ - \x92\x04\x20List\x20of\x20inventory\x20filters\x20for\x20the\x20resource\ - \x20group.\n\n\x20The\x20resources\x20in\x20this\x20resource\x20group\ - \x20are\x20applied\x20to\x20the\x20target\x20VM\x20if\x20it\n\x20satisfi\ - es\x20at\x20least\x20one\x20of\x20the\x20following\x20inventory\x20filte\ - rs.\n\n\x20For\x20example,\x20to\x20apply\x20this\x20resource\x20group\ - \x20to\x20VMs\x20running\x20either\x20`RHEL`\x20or\n\x20`CentOS`\x20oper\ - ating\x20systems,\x20specify\x202\x20items\x20for\x20the\x20list\x20with\ - \x20following\n\x20values:\n\x20inventory_filters[0].os_short_name='rhel\ - '\x20and\n\x20inventory_filters[1].os_short_name='centos'\n\n\x20If\x20t\ - he\x20list\x20is\x20empty,\x20this\x20resource\x20group\x20will\x20be\ - \x20applied\x20to\x20the\x20target\n\x20VM\x20unconditionally.\n\n\x0f\n\ - \x07\x04\0\x03\x02\x02\0\x04\x12\x04\xfc\x03\x04\x0c\n\x0f\n\x07\x04\0\ - \x03\x02\x02\0\x06\x12\x04\xfc\x03\r\x1c\n\x0f\n\x07\x04\0\x03\x02\x02\0\ - \x01\x12\x04\xfc\x03\x1d.\n\x0f\n\x07\x04\0\x03\x02\x02\0\x03\x12\x04\ - \xfc\x0312\n\x91\x01\n\x06\x04\0\x03\x02\x02\x01\x12\x04\x80\x04\x04M\ - \x1a\x80\x01\x20Required.\x20List\x20of\x20resources\x20configured\x20fo\ - r\x20this\x20resource\x20group.\n\x20The\x20resources\x20are\x20executed\ - \x20in\x20the\x20exact\x20order\x20specified\x20here.\n\n\x0f\n\x07\x04\ - \0\x03\x02\x02\x01\x04\x12\x04\x80\x04\x04\x0c\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x01\x06\x12\x04\x80\x04\r\x15\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\ - \x12\x04\x80\x04\x16\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\ - \x80\x04\"#\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x08\x12\x04\x80\x04$L\n\ - \x12\n\n\x04\0\x03\x02\x02\x01\x08\x9c\x08\0\x12\x04\x80\x04%K\n\xa3\x02\ - \n\x04\x04\0\x02\0\x12\x04\x8a\x04\x029\x1a\x94\x02\x20Required.\x20The\ - \x20id\x20of\x20the\x20OS\x20policy\x20with\x20the\x20following\x20restr\ - ictions:\n\n\x20*\x20Must\x20contain\x20only\x20lowercase\x20letters,\ - \x20numbers,\x20and\x20hyphens.\n\x20*\x20Must\x20start\x20with\x20a\x20\ - letter.\n\x20*\x20Must\x20be\x20between\x201-63\x20characters.\n\x20*\ - \x20Must\x20end\x20with\x20a\x20number\x20or\x20a\x20letter.\n\x20*\x20M\ - ust\x20be\x20unique\x20within\x20the\x20assignment.\n\n\r\n\x05\x04\0\ - \x02\0\x05\x12\x04\x8a\x04\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8a\ - \x04\t\x0b\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8a\x04\x0e\x0f\n\r\n\x05\ - \x04\0\x02\0\x08\x12\x04\x8a\x04\x108\n\x10\n\x08\x04\0\x02\0\x08\x9c\ - \x08\0\x12\x04\x8a\x04\x117\n]\n\x04\x04\0\x02\x01\x12\x04\x8e\x04\x02\ - \x19\x1aO\x20Policy\x20description.\n\x20Length\x20of\x20the\x20descript\ - ion\x20is\x20limited\x20to\x201024\x20characters.\n\n\r\n\x05\x04\0\x02\ - \x01\x05\x12\x04\x8e\x04\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x8e\ - \x04\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x8e\x04\x17\x18\n%\n\x04\ - \x04\0\x02\x02\x12\x04\x91\x04\x029\x1a\x17\x20Required.\x20Policy\x20mo\ - de\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x91\x04\x02\x06\n\r\n\x05\x04\0\ - \x02\x02\x01\x12\x04\x91\x04\x07\x0b\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\ - \x91\x04\x0e\x0f\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\x91\x04\x108\n\x10\ - \n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\x91\x04\x117\n\xa8\x03\n\x04\ - \x04\0\x02\x03\x12\x06\x9b\x04\x02\x9c\x04/\x1a\x97\x03\x20Required.\x20\ - List\x20of\x20resource\x20groups\x20for\x20the\x20policy.\n\x20For\x20a\ - \x20particular\x20VM,\x20resource\x20groups\x20are\x20evaluated\x20in\ - \x20the\x20order\x20specified\n\x20and\x20the\x20first\x20resource\x20gr\ - oup\x20that\x20is\x20applicable\x20is\x20selected\x20and\x20the\x20rest\ - \n\x20are\x20ignored.\n\n\x20If\x20none\x20of\x20the\x20resource\x20grou\ - ps\x20are\x20applicable\x20for\x20a\x20VM,\x20the\x20VM\x20is\n\x20consi\ - dered\x20to\x20be\x20non-compliant\x20w.r.t\x20this\x20policy.\x20This\ - \x20behavior\x20can\x20be\n\x20toggled\x20by\x20the\x20flag\x20`allow_no\ - _resource_group_match`\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04\x9b\x04\x02\ - \n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x9b\x04\x0b\x18\n\r\n\x05\x04\0\ - \x02\x03\x01\x12\x04\x9b\x04\x19(\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\ - \x9b\x04+,\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\x9c\x04\x06.\n\x10\n\x08\ - \x04\0\x02\x03\x08\x9c\x08\0\x12\x04\x9c\x04\x07-\n\x94\x02\n\x04\x04\0\ - \x02\x04\x12\x04\xa2\x04\x02)\x1a\x85\x02\x20This\x20flag\x20determines\ - \x20the\x20OS\x20policy\x20compliance\x20status\x20when\x20none\x20of\ - \x20the\n\x20resource\x20groups\x20within\x20the\x20policy\x20are\x20app\ - licable\x20for\x20a\x20VM.\x20Set\x20this\x20value\n\x20to\x20`true`\x20\ - if\x20the\x20policy\x20needs\x20to\x20be\x20reported\x20as\x20compliant\ - \x20even\x20if\x20the\n\x20policy\x20has\x20nothing\x20to\x20validate\ - \x20or\x20enforce.\n\n\r\n\x05\x04\0\x02\x04\x05\x12\x04\xa2\x04\x02\x06\ - \n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xa2\x04\x07$\n\r\n\x05\x04\0\x02\ - \x04\x03\x12\x04\xa2\x04'(b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignment_reports.rs b/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignment_reports.rs deleted file mode 100644 index 8ed2492..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignment_reports.rs +++ /dev/null @@ -1,2609 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/os_policy_assignment_reports.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct GetOSPolicyAssignmentReportRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetOSPolicyAssignmentReportRequest { - fn default() -> &'a GetOSPolicyAssignmentReportRequest { - ::default_instance() - } -} - -impl GetOSPolicyAssignmentReportRequest { - pub fn new() -> GetOSPolicyAssignmentReportRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetOSPolicyAssignmentReportRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetOSPolicyAssignmentReportRequest { - GetOSPolicyAssignmentReportRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetOSPolicyAssignmentReportRequest| { &m.name }, - |m: &mut GetOSPolicyAssignmentReportRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOSPolicyAssignmentReportRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetOSPolicyAssignmentReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetOSPolicyAssignmentReportRequest::new) - } -} - -impl ::protobuf::Clear for GetOSPolicyAssignmentReportRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetOSPolicyAssignmentReportRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetOSPolicyAssignmentReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentReportsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub filter: ::std::string::String, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentReportsRequest { - fn default() -> &'a ListOSPolicyAssignmentReportsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentReportsRequest { - pub fn new() -> ListOSPolicyAssignmentReportsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string filter = 3; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentReportsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filter); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.filter.is_empty() { - os.write_string(3, &self.filter)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentReportsRequest { - ListOSPolicyAssignmentReportsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.parent }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.filter }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentReportsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentReportsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentReportsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentReportsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.filter.clear(); - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentReportsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentReportsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentReportsResponse { - // message fields - pub os_policy_assignment_reports: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentReportsResponse { - fn default() -> &'a ListOSPolicyAssignmentReportsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentReportsResponse { - pub fn new() -> ListOSPolicyAssignmentReportsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport os_policy_assignment_reports = 1; - - - pub fn get_os_policy_assignment_reports(&self) -> &[OSPolicyAssignmentReport] { - &self.os_policy_assignment_reports - } - pub fn clear_os_policy_assignment_reports(&mut self) { - self.os_policy_assignment_reports.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment_reports(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignment_reports = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignment_reports(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignment_reports - } - - // Take field - pub fn take_os_policy_assignment_reports(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignment_reports, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentReportsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment_reports { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignment_reports)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignment_reports { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignment_reports { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentReportsResponse { - ListOSPolicyAssignmentReportsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment_reports", - |m: &ListOSPolicyAssignmentReportsResponse| { &m.os_policy_assignment_reports }, - |m: &mut ListOSPolicyAssignmentReportsResponse| { &mut m.os_policy_assignment_reports }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentReportsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentReportsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentReportsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentReportsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentReportsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentReportsResponse { - fn clear(&mut self) { - self.os_policy_assignment_reports.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentReportsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentReportsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport { - // message fields - pub name: ::std::string::String, - pub instance: ::std::string::String, - pub os_policy_assignment: ::std::string::String, - pub os_policy_compliances: ::protobuf::RepeatedField, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub last_run_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport { - fn default() -> &'a OSPolicyAssignmentReport { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport { - pub fn new() -> OSPolicyAssignmentReport { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string instance = 2; - - - pub fn get_instance(&self) -> &str { - &self.instance - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: ::std::string::String) { - self.instance = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut ::std::string::String { - &mut self.instance - } - - // Take field - pub fn take_instance(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance, ::std::string::String::new()) - } - - // string os_policy_assignment = 3; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4; - - - pub fn get_os_policy_compliances(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance] { - &self.os_policy_compliances - } - pub fn clear_os_policy_compliances(&mut self) { - self.os_policy_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_compliances - } - - // Take field - pub fn take_os_policy_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_compliances, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string last_run_id = 6; - - - pub fn get_last_run_id(&self) -> &str { - &self.last_run_id - } - pub fn clear_last_run_id(&mut self) { - self.last_run_id.clear(); - } - - // Param is passed by value, moved - pub fn set_last_run_id(&mut self, v: ::std::string::String) { - self.last_run_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_run_id(&mut self) -> &mut ::std::string::String { - &mut self.last_run_id - } - - // Take field - pub fn take_last_run_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.last_run_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_compliances { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_compliances)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.last_run_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.instance.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance); - } - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.os_policy_assignment); - } - for value in &self.os_policy_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.last_run_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.last_run_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.instance.is_empty() { - os.write_string(2, &self.instance)?; - } - if !self.os_policy_assignment.is_empty() { - os.write_string(3, &self.os_policy_assignment)?; - } - for v in &self.os_policy_compliances { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.last_run_id.is_empty() { - os.write_string(6, &self.last_run_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport { - OSPolicyAssignmentReport::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicyAssignmentReport| { &m.name }, - |m: &mut OSPolicyAssignmentReport| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance", - |m: &OSPolicyAssignmentReport| { &m.instance }, - |m: &mut OSPolicyAssignmentReport| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &OSPolicyAssignmentReport| { &m.os_policy_assignment }, - |m: &mut OSPolicyAssignmentReport| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_compliances", - |m: &OSPolicyAssignmentReport| { &m.os_policy_compliances }, - |m: &mut OSPolicyAssignmentReport| { &mut m.os_policy_compliances }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &OSPolicyAssignmentReport| { &m.update_time }, - |m: &mut OSPolicyAssignmentReport| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "last_run_id", - |m: &OSPolicyAssignmentReport| { &m.last_run_id }, - |m: &mut OSPolicyAssignmentReport| { &mut m.last_run_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport { - fn clear(&mut self) { - self.name.clear(); - self.instance.clear(); - self.os_policy_assignment.clear(); - self.os_policy_compliances.clear(); - self.update_time.clear(); - self.last_run_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance { - // message fields - pub os_policy_id: ::std::string::String, - pub compliance_state: OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState, - pub compliance_state_reason: ::std::string::String, - pub os_policy_resource_compliances: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance { - ::std::default::Default::default() - } - - // string os_policy_id = 1; - - - pub fn get_os_policy_id(&self) -> &str { - &self.os_policy_id - } - pub fn clear_os_policy_id(&mut self) { - self.os_policy_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_id(&mut self, v: ::std::string::String) { - self.os_policy_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_id - } - - // Take field - pub fn take_os_policy_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2; - - - pub fn get_compliance_state(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - self.compliance_state - } - pub fn clear_compliance_state(&mut self) { - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_compliance_state(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState) { - self.compliance_state = v; - } - - // string compliance_state_reason = 3; - - - pub fn get_compliance_state_reason(&self) -> &str { - &self.compliance_state_reason - } - pub fn clear_compliance_state_reason(&mut self) { - self.compliance_state_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_compliance_state_reason(&mut self, v: ::std::string::String) { - self.compliance_state_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_compliance_state_reason(&mut self) -> &mut ::std::string::String { - &mut self.compliance_state_reason - } - - // Take field - pub fn take_compliance_state_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.compliance_state_reason, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4; - - - pub fn get_os_policy_resource_compliances(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance] { - &self.os_policy_resource_compliances - } - pub fn clear_os_policy_resource_compliances(&mut self) { - self.os_policy_resource_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_resource_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_resource_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_resource_compliances - } - - // Take field - pub fn take_os_policy_resource_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_resource_compliances, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_resource_compliances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.compliance_state, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.compliance_state_reason)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_resource_compliances)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_id); - } - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN { - my_size += ::protobuf::rt::enum_size(2, self.compliance_state); - } - if !self.compliance_state_reason.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.compliance_state_reason); - } - for value in &self.os_policy_resource_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_id.is_empty() { - os.write_string(1, &self.os_policy_id)?; - } - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.compliance_state))?; - } - if !self.compliance_state_reason.is_empty() { - os.write_string(3, &self.compliance_state_reason)?; - } - for v in &self.os_policy_resource_compliances { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance { - OSPolicyAssignmentReport_OSPolicyCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_id", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.os_policy_id }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.os_policy_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "compliance_state", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.compliance_state }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.compliance_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "compliance_state_reason", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.compliance_state_reason }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.compliance_state_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_resource_compliances", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.os_policy_resource_compliances }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.os_policy_resource_compliances }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance { - fn clear(&mut self) { - self.os_policy_id.clear(); - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN; - self.compliance_state_reason.clear(); - self.os_policy_resource_compliances.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - // message fields - pub os_policy_resource_id: ::std::string::String, - pub config_steps: ::protobuf::RepeatedField, - pub compliance_state: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState, - pub compliance_state_reason: ::std::string::String, - // message oneof groups - pub output: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output { - exec_resource_output(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput), -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - ::std::default::Default::default() - } - - // string os_policy_resource_id = 1; - - - pub fn get_os_policy_resource_id(&self) -> &str { - &self.os_policy_resource_id - } - pub fn clear_os_policy_resource_id(&mut self) { - self.os_policy_resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_id(&mut self, v: ::std::string::String) { - self.os_policy_resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_resource_id - } - - // Take field - pub fn take_os_policy_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_resource_id, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2; - - - pub fn get_config_steps(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep] { - &self.config_steps - } - pub fn clear_config_steps(&mut self) { - self.config_steps.clear(); - } - - // Param is passed by value, moved - pub fn set_config_steps(&mut self, v: ::protobuf::RepeatedField) { - self.config_steps = v; - } - - // Mutable pointer to the field. - pub fn mut_config_steps(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.config_steps - } - - // Take field - pub fn take_config_steps(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.config_steps, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3; - - - pub fn get_compliance_state(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - self.compliance_state - } - pub fn clear_compliance_state(&mut self) { - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_compliance_state(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState) { - self.compliance_state = v; - } - - // string compliance_state_reason = 4; - - - pub fn get_compliance_state_reason(&self) -> &str { - &self.compliance_state_reason - } - pub fn clear_compliance_state_reason(&mut self) { - self.compliance_state_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_compliance_state_reason(&mut self, v: ::std::string::String) { - self.compliance_state_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_compliance_state_reason(&mut self) -> &mut ::std::string::String { - &mut self.compliance_state_reason - } - - // Take field - pub fn take_compliance_state_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.compliance_state_reason, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5; - - - pub fn get_exec_resource_output(&self) -> &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_resource_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_exec_resource_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_resource_output(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput) { - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_resource_output(&mut self) -> &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - if let ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new())); - } - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_resource_output(&mut self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - if self.has_exec_resource_output() { - match self.output.take() { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) => v, - _ => panic!(), - } - } else { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new() - } - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn is_initialized(&self) -> bool { - for v in &self.config_steps { - if !v.is_initialized() { - return false; - } - }; - if let Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_resource_id)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.config_steps)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.compliance_state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.compliance_state_reason)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_resource_id); - } - for value in &self.config_steps { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN { - my_size += ::protobuf::rt::enum_size(3, self.compliance_state); - } - if !self.compliance_state_reason.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.compliance_state_reason); - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_resource_id.is_empty() { - os.write_string(1, &self.os_policy_resource_id)?; - } - for v in &self.config_steps { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.compliance_state))?; - } - if !self.compliance_state_reason.is_empty() { - os.write_string(4, &self.compliance_state_reason)?; - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_resource_id", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.os_policy_resource_id }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.os_policy_resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_steps", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.config_steps }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.config_steps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "compliance_state", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.compliance_state }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.compliance_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "compliance_state_reason", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.compliance_state_reason }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.compliance_state_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput>( - "exec_resource_output", - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::has_exec_resource_output, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::get_exec_resource_output, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn clear(&mut self) { - self.os_policy_resource_id.clear(); - self.config_steps.clear(); - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN; - self.compliance_state_reason.clear(); - self.output = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - // message fields - pub field_type: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type, - pub error_message: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1; - - - pub fn get_field_type(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type) { - self.field_type = v; - } - - // string error_message = 2; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.error_message); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if !self.error_message.is_empty() { - os.write_string(2, &self.error_message)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &m.field_type }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &m.error_message }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &mut m.error_message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn clear(&mut self) { - self.field_type = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - self.error_message.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - TYPE_UNSPECIFIED = 0, - VALIDATION = 1, - DESIRED_STATE_CHECK = 2, - DESIRED_STATE_ENFORCEMENT = 3, - DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK), - 3 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT), - 4 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::VALIDATION, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - // message fields - pub enforcement_output: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - ::std::default::Default::default() - } - - // bytes enforcement_output = 2; - - - pub fn get_enforcement_output(&self) -> &[u8] { - &self.enforcement_output - } - pub fn clear_enforcement_output(&mut self) { - self.enforcement_output.clear(); - } - - // Param is passed by value, moved - pub fn set_enforcement_output(&mut self, v: ::std::vec::Vec) { - self.enforcement_output = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforcement_output(&mut self) -> &mut ::std::vec::Vec { - &mut self.enforcement_output - } - - // Take field - pub fn take_enforcement_output(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.enforcement_output, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.enforcement_output)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.enforcement_output.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.enforcement_output); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.enforcement_output.is_empty() { - os.write_bytes(2, &self.enforcement_output)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "enforcement_output", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput| { &m.enforcement_output }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput| { &mut m.enforcement_output }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn clear(&mut self) { - self.enforcement_output.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - UNKNOWN = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::NON_COMPLIANT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::COMPLIANT, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::NON_COMPLIANT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - UNKNOWN = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::NON_COMPLIANT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN, - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::COMPLIANT, - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::NON_COMPLIANT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n;google/cloud/osconfig/v1/os_policy_assignment_reports.proto\x12\x18go\ - ogle.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19goo\ - gle/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"r\n\"GetO\ - SPolicyAssignmentReportRequest\x12L\n\x04name\x18\x01\x20\x01(\tR\x04nam\ - eB8\xfaA2\n0osconfig.googleapis.com/OSPolicyAssignmentReport\xe0A\x02\"\ - \xce\x01\n$ListOSPolicyAssignmentReportsRequest\x12R\n\x06parent\x18\x01\ - \x20\x01(\tR\x06parentB:\xfaA4\n2osconfig.googleapis.com/InstanceOSPolic\ - yAssignment\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageS\ - ize\x12\x16\n\x06filter\x18\x03\x20\x01(\tR\x06filter\x12\x1d\n\npage_to\ - ken\x18\x04\x20\x01(\tR\tpageToken\"\xc4\x01\n%ListOSPolicyAssignmentRep\ - ortsResponse\x12s\n\x1cos_policy_assignment_reports\x18\x01\x20\x03(\x0b\ - 22.google.cloud.osconfig.v1.OSPolicyAssignmentReportR\x19osPolicyAssignm\ - entReports\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\ - \"\xf3\x10\n\x18OSPolicyAssignmentReport\x12\x12\n\x04name\x18\x01\x20\ - \x01(\tR\x04name\x12\x1a\n\x08instance\x18\x02\x20\x01(\tR\x08instance\ - \x12a\n\x14os_policy_assignment\x18\x03\x20\x01(\tR\x12osPolicyAssignmen\ - tB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignment\x12y\n\x15os_poli\ - cy_compliances\x18\x04\x20\x03(\x0b2E.google.cloud.osconfig.v1.OSPolicyA\ - ssignmentReport.OSPolicyComplianceR\x13osPolicyCompliances\x12;\n\x0bupd\ - ate_time\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTim\ - e\x12\x1e\n\x0blast_run_id\x18\x06\x20\x01(\tR\tlastRunId\x1a\xcc\x0c\n\ - \x12OSPolicyCompliance\x12\x20\n\x0cos_policy_id\x18\x01\x20\x01(\tR\nos\ - PolicyId\x12\x80\x01\n\x10compliance_state\x18\x02\x20\x01(\x0e2U.google\ - .cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCompliance.Complianc\ - eStateR\x0fcomplianceState\x126\n\x17compliance_state_reason\x18\x03\x20\ - \x01(\tR\x15complianceStateReason\x12\xa5\x01\n\x1eos_policy_resource_co\ - mpliances\x18\x04\x20\x03(\x0b2`.google.cloud.osconfig.v1.OSPolicyAssign\ - mentReport.OSPolicyCompliance.OSPolicyResourceComplianceR\x1bosPolicyRes\ - ourceCompliances\x1a\xee\x08\n\x1aOSPolicyResourceCompliance\x121\n\x15o\ - s_policy_resource_id\x18\x01\x20\x01(\tR\x12osPolicyResourceId\x12\x9e\ - \x01\n\x0cconfig_steps\x18\x02\x20\x03(\x0b2{.google.cloud.osconfig.v1.O\ - SPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OS\ - PolicyResourceConfigStepR\x0bconfigSteps\x12\x9b\x01\n\x10compliance_sta\ - te\x18\x03\x20\x01(\x0e2p.google.cloud.osconfig.v1.OSPolicyAssignmentRep\ - ort.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceStateR\x0fco\ - mplianceState\x126\n\x17compliance_state_reason\x18\x04\x20\x01(\tR\x15c\ - omplianceStateReason\x12\xa7\x01\n\x14exec_resource_output\x18\x05\x20\ - \x01(\x0b2s.google.cloud.osconfig.v1.OSPolicyAssignmentReport.OSPolicyCo\ - mpliance.OSPolicyResourceCompliance.ExecResourceOutputH\0R\x12execResour\ - ceOutput\x1a\xea\x02\n\x1aOSPolicyResourceConfigStep\x12\x95\x01\n\x04ty\ - pe\x18\x01\x20\x01(\x0e2\x80\x01.google.cloud.osconfig.v1.OSPolicyAssign\ - mentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourc\ - eConfigStep.TypeR\x04type\x12#\n\rerror_message\x18\x02\x20\x01(\tR\x0ce\ - rrorMessage\"\x8e\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\ - \x0e\n\nVALIDATION\x10\x01\x12\x17\n\x13DESIRED_STATE_CHECK\x10\x02\x12\ - \x1d\n\x19DESIRED_STATE_ENFORCEMENT\x10\x03\x12(\n$DESIRED_STATE_CHECK_P\ - OST_ENFORCEMENT\x10\x04\x1aC\n\x12ExecResourceOutput\x12-\n\x12enforceme\ - nt_output\x18\x02\x20\x01(\x0cR\x11enforcementOutput\"@\n\x0fComplianceS\ - tate\x12\x0b\n\x07UNKNOWN\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNO\ - N_COMPLIANT\x10\x02B\x08\n\x06output\"@\n\x0fComplianceState\x12\x0b\n\ - \x07UNKNOWN\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\ - \x10\x02:\x9c\x01\xeaA\x98\x01\n0osconfig.googleapis.com/OSPolicyAssignm\ - entReport\x12dprojects/{project}/locations/{location}/instances/{instanc\ - e}/osPolicyAssignments/{assignment}/reportB\xe5\x02\n\x1ccom.google.clou\ - d.osconfig.v1B\x1eOSPolicyAssignmentReportsProtoP\x01Z8cloud.google.com/\ - go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig\ - .V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsC\ - onfig::V1\xeaA\x93\x01\n2osconfig.googleapis.com/InstanceOSPolicyAssignm\ - ent\x12]projects/{project}/locations/{location}/instances/{instance}/osP\ - olicyAssignments/{assignment}J\xeeU\n\x07\x12\x05\x0e\0\xa7\x02\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\ - \x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\05\n\t\n\x02\x08%\x12\x03\x16\05\ - \n\x08\n\x01\x08\x12\x03\x17\0O\n\t\n\x02\x08\x0b\x12\x03\x17\0O\n\x08\n\ - \x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\ - \x12\x03\x19\0?\n\t\n\x02\x08\x08\x12\x03\x19\0?\n\x08\n\x01\x08\x12\x03\ - \x1a\05\n\t\n\x02\x08\x01\x12\x03\x1a\05\n\x08\n\x01\x08\x12\x03\x1b\05\ - \n\t\n\x02\x08)\x12\x03\x1b\05\n\x08\n\x01\x08\x12\x03\x1c\04\n\t\n\x02\ - \x08-\x12\x03\x1c\04\n\t\n\x01\x08\x12\x04\x1d\0\x20\x02\n\x0c\n\x04\x08\ - \x9d\x08\0\x12\x04\x1d\0\x20\x02\nI\n\x02\x04\0\x12\x04#\03\x01\x1a=\x20\ - Get\x20a\x20report\x20of\x20the\x20OS\x20policy\x20assignment\x20for\x20\ - a\x20VM\x20instance.\n\n\n\n\x03\x04\0\x01\x12\x03#\x08*\n\xaf\x03\n\x04\ - \x04\0\x02\0\x12\x04-\x022\x04\x1a\xa0\x03\x20Required.\x20API\x20resour\ - ce\x20name\x20for\x20OS\x20policy\x20assignment\x20report.\n\n\x20Format\ - :\n\x20`/projects/{project}/locations/{location}/instances/{instance}/os\ - PolicyAssignments/{assignment}/report`\n\n\x20For\x20`{project}`,\x20eit\ - her\x20`project-number`\x20or\x20`project-id`\x20can\x20be\x20provided.\ - \n\x20For\x20`{instance_id}`,\x20either\x20Compute\x20Engine\x20`instanc\ - e-id`\x20or\x20`instance-name`\n\x20can\x20be\x20provided.\n\x20For\x20`\ - {assignment_id}`,\x20the\x20OSPolicyAssignment\x20id\x20must\x20be\x20pr\ - ovided.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03-\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03-\x10\x11\n\r\ - \n\x05\x04\0\x02\0\x08\x12\x04-\x122\x03\n\x0f\n\x08\x04\0\x02\0\x08\x9c\ - \x08\0\x12\x03.\x04*\n\x0f\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x04/\x041\ - \x05\nE\n\x02\x04\x01\x12\x046\0^\x01\x1a9\x20List\x20the\x20OS\x20polic\ - y\x20assignment\x20reports\x20for\x20VM\x20instances.\n\n\n\n\x03\x04\ - \x01\x01\x12\x036\x08,\n\x86\t\n\x04\x04\x01\x02\0\x12\x04L\x02Q\x04\x1a\ - \xf7\x08\x20Required.\x20The\x20parent\x20resource\x20name.\n\n\x20Forma\ - t:\n\x20`projects/{project}/locations/{location}/instances/{instance}/os\ - PolicyAssignments/{assignment}/reports`\n\n\x20For\x20`{project}`,\x20ei\ - ther\x20`project-number`\x20or\x20`project-id`\x20can\x20be\x20provided.\ - \n\x20For\x20`{instance}`,\x20either\x20`instance-name`,\x20`instance-id\ - `,\x20or\x20`-`\x20can\x20be\n\x20provided.\x20If\x20'-'\x20is\x20provid\ - ed,\x20the\x20response\x20will\x20include\n\x20OSPolicyAssignmentReports\ - \x20for\x20all\x20instances\x20in\x20the\x20project/location.\n\x20For\ - \x20`{assignment}`,\x20either\x20`assignment-id`\x20or\x20`-`\x20can\x20\ - be\x20provided.\x20If\x20'-'\n\x20is\x20provided,\x20the\x20response\x20\ - will\x20include\x20OSPolicyAssignmentReports\x20for\x20all\n\x20OSPolicy\ - Assignments\x20in\x20the\x20project/location.\n\x20Either\x20{instance}\ - \x20or\x20{assignment}\x20must\x20be\x20`-`.\n\n\x20For\x20example:\n\ - \x20`projects/{project}/locations/{location}/instances/{instance}/osPoli\ - cyAssignments/-/reports`\n\x20\x20returns\x20all\x20reports\x20for\x20th\ - e\x20instance\n\x20`projects/{project}/locations/{location}/instances/-/\ - osPolicyAssignments/{assignment-id}/reports`\n\x20\x20returns\x20all\x20\ - the\x20reports\x20for\x20the\x20given\x20assignment\x20across\x20all\x20\ - instances.\n\x20`projects/{project}/locations/{location}/instances/-/osP\ - olicyAssignments/-/reports`\n\x20\x20returns\x20all\x20the\x20reports\ - \x20for\x20all\x20assignments\x20across\x20all\x20instances.\n\n\x0c\n\ - \x05\x04\x01\x02\0\x05\x12\x03L\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\ - \x12\x03L\t\x0f\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03L\x12\x13\n\r\n\x05\ - \x04\x01\x02\0\x08\x12\x04L\x14Q\x03\n\x0f\n\x08\x04\x01\x02\0\x08\x9c\ - \x08\0\x12\x03M\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x04N\x04P\ - \x05\n7\n\x04\x04\x01\x02\x01\x12\x03T\x02\x16\x1a*\x20The\x20maximum\ - \x20number\x20of\x20results\x20to\x20return.\n\n\x0c\n\x05\x04\x01\x02\ - \x01\x05\x12\x03T\x02\x07\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03T\x08\ - \x11\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03T\x14\x15\n\xa1\x01\n\x04\ - \x04\x01\x02\x02\x12\x03X\x02\x14\x1a\x93\x01\x20If\x20provided,\x20this\ - \x20field\x20specifies\x20the\x20criteria\x20that\x20must\x20be\x20met\ - \x20by\x20the\n\x20`OSPolicyAssignmentReport`\x20API\x20resource\x20that\ - \x20is\x20included\x20in\x20the\x20response.\n\n\x0c\n\x05\x04\x01\x02\ - \x02\x05\x12\x03X\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03X\t\x0f\ - \n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03X\x12\x13\n\xa8\x01\n\x04\x04\ - \x01\x02\x03\x12\x03]\x02\x18\x1a\x9a\x01\x20A\x20pagination\x20token\ - \x20returned\x20from\x20a\x20previous\x20call\x20to\x20the\n\x20`ListOSP\ - olicyAssignmentReports`\x20method\x20that\x20indicates\x20where\x20this\ - \x20listing\n\x20should\x20continue\x20from.\n\n\x0c\n\x05\x04\x01\x02\ - \x03\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03]\t\x13\ - \n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03]\x16\x17\nx\n\x02\x04\x02\x12\ - \x04b\0i\x01\x1al\x20A\x20response\x20message\x20for\x20listing\x20OS\ - \x20Policy\x20assignment\x20reports\x20including\x20the\n\x20page\x20of\ - \x20results\x20and\x20page\x20token.\n\n\n\n\x03\x04\x02\x01\x12\x03b\ - \x08-\n4\n\x04\x04\x02\x02\0\x12\x03d\x02E\x1a'\x20List\x20of\x20OS\x20p\ - olicy\x20assignment\x20reports.\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03d\ - \x02\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03d\x0b#\n\x0c\n\x05\x04\x02\ - \x02\0\x01\x12\x03d$@\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03dCD\nf\n\x04\ - \x04\x02\x02\x01\x12\x03h\x02\x1d\x1aY\x20The\x20pagination\x20token\x20\ - to\x20retrieve\x20the\x20next\x20page\x20of\x20OS\x20policy\x20assignmen\ - t\n\x20report\x20objects.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03h\x02\ - \x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03h\t\x18\n\x0c\n\x05\x04\x02\ - \x02\x01\x03\x12\x03h\x1b\x1c\nP\n\x02\x04\x03\x12\x05l\0\xa7\x02\x01\ - \x1aC\x20A\x20report\x20of\x20the\x20OS\x20policy\x20assignment\x20statu\ - s\x20for\x20a\x20given\x20instance.\n\n\n\n\x03\x04\x03\x01\x12\x03l\x08\ - \x20\n\x0b\n\x03\x04\x03\x07\x12\x04m\x02p\x04\n\r\n\x05\x04\x03\x07\x9d\ - \x08\x12\x04m\x02p\x04\n1\n\x04\x04\x03\x03\0\x12\x05s\x02\x85\x02\x03\ - \x1a\"\x20Compliance\x20data\x20for\x20an\x20OS\x20policy\n\n\x0c\n\x05\ - \x04\x03\x03\0\x01\x12\x03s\n\x1c\n?\n\x06\x04\x03\x03\0\x04\0\x12\x05u\ - \x04\x87\x01\x05\x1a.\x20Possible\x20compliance\x20states\x20for\x20an\ - \x20os\x20policy.\n\n\x0e\n\x07\x04\x03\x03\0\x04\0\x01\x12\x03u\t\x18\n\ - \xba\x01\n\x08\x04\x03\x03\0\x04\0\x02\0\x12\x03z\x06\x12\x1a\xa8\x01\ - \x20The\x20policy\x20is\x20in\x20an\x20unknown\x20compliance\x20state.\n\ - \n\x20Refer\x20to\x20the\x20field\x20`compliance_state_reason`\x20to\x20\ - learn\x20the\x20exact\x20reason\n\x20for\x20the\x20policy\x20to\x20be\ - \x20in\x20this\x20compliance\x20state.\n\n\x10\n\t\x04\x03\x03\0\x04\0\ - \x02\0\x01\x12\x03z\x06\r\n\x10\n\t\x04\x03\x03\0\x04\0\x02\0\x02\x12\ - \x03z\x10\x11\nw\n\x08\x04\x03\x03\0\x04\0\x02\x01\x12\x04\x80\x01\x06\ - \x14\x1ae\x20Policy\x20is\x20compliant.\n\n\x20The\x20policy\x20is\x20co\ - mpliant\x20if\x20all\x20the\x20underlying\x20resources\x20are\x20also\n\ - \x20compliant.\n\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x01\x01\x12\x04\x80\ - \x01\x06\x0f\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x01\x02\x12\x04\x80\x01\ - \x12\x13\n\x82\x01\n\x08\x04\x03\x03\0\x04\0\x02\x02\x12\x04\x86\x01\x06\ - \x18\x1ap\x20Policy\x20is\x20non-compliant.\n\n\x20The\x20policy\x20is\ - \x20non-compliant\x20if\x20one\x20or\x20more\x20underlying\x20resources\ - \x20are\n\x20non-compliant.\n\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x02\x01\ - \x12\x04\x86\x01\x06\x13\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x02\x02\x12\ - \x04\x86\x01\x16\x17\n>\n\x06\x04\x03\x03\0\x03\0\x12\x06\x8a\x01\x04\ - \xe4\x01\x05\x1a,\x20Compliance\x20data\x20for\x20an\x20OS\x20policy\x20\ - resource.\n\n\x0f\n\x07\x04\x03\x03\0\x03\0\x01\x12\x04\x8a\x01\x0c&\ny\ - \n\x08\x04\x03\x03\0\x03\0\x03\0\x12\x06\x8d\x01\x06\xad\x01\x07\x1ae\ - \x20Step\x20performed\x20by\x20the\x20OS\x20Config\x20agent\x20for\x20co\ - nfiguring\x20an\n\x20`OSPolicy`\x20resource\x20to\x20its\x20desired\x20s\ - tate.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x03\0\x01\x12\x04\x8d\x01\x0e(\n:\ - \n\n\x04\x03\x03\0\x03\0\x03\0\x04\0\x12\x06\x8f\x01\x08\xa5\x01\t\x1a$\ - \x20Supported\x20configuration\x20step\x20types\n\n\x13\n\x0b\x04\x03\ - \x03\0\x03\0\x03\0\x04\0\x01\x12\x04\x8f\x01\r\x11\n<\n\x0c\x04\x03\x03\ - \0\x03\0\x03\0\x04\0\x02\0\x12\x04\x91\x01\n\x1f\x1a&\x20Default\x20valu\ - e.\x20This\x20value\x20is\x20unused.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\ - \0\x04\0\x02\0\x01\x12\x04\x91\x01\n\x1a\n\x15\n\r\x04\x03\x03\0\x03\0\ - \x03\0\x04\0\x02\0\x02\x12\x04\x91\x01\x1d\x1e\nL\n\x0c\x04\x03\x03\0\ - \x03\0\x03\0\x04\0\x02\x01\x12\x04\x94\x01\n\x19\x1a6\x20Checks\x20for\ - \x20resource\x20conflicts\x20such\x20as\x20schema\x20errors.\n\n\x15\n\r\ - \x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x01\x01\x12\x04\x94\x01\n\x14\n\x15\ - \n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x01\x02\x12\x04\x94\x01\x17\x18\ - \nV\n\x0c\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x02\x12\x04\x97\x01\n\"\ - \x1a@\x20Checks\x20the\x20current\x20status\x20of\x20the\x20desired\x20s\ - tate\x20for\x20a\x20resource.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\ - \0\x02\x02\x01\x12\x04\x97\x01\n\x1d\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\ - \x04\0\x02\x02\x02\x12\x04\x97\x01\x20!\n`\n\x0c\x04\x03\x03\0\x03\0\x03\ - \0\x04\0\x02\x03\x12\x04\x9b\x01\n(\x1aJ\x20Enforces\x20the\x20desired\ - \x20state\x20for\x20a\x20resource\x20that\x20is\x20not\x20in\x20desired\ - \n\x20state.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x03\x01\x12\ - \x04\x9b\x01\n#\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x03\x02\ - \x12\x04\x9b\x01&'\n\xe8\x02\n\x0c\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\ - \x04\x12\x04\xa4\x01\n3\x1a\xd1\x02\x20Re-checks\x20the\x20status\x20of\ - \x20the\x20desired\x20state.\x20This\x20check\x20is\x20done\n\x20for\x20\ - a\x20resource\x20after\x20the\x20enforcement\x20of\x20all\x20OS\x20polic\ - ies.\n\n\x20This\x20step\x20is\x20used\x20to\x20determine\x20the\x20fina\ - l\x20desired\x20state\x20status\x20for\n\x20the\x20resource.\x20It\x20ac\ - counts\x20for\x20any\x20resources\x20that\x20might\x20have\x20drifted\n\ - \x20from\x20their\x20desired\x20state\x20due\x20to\x20side\x20effects\ - \x20from\x20executing\x20other\n\x20resources.\n\n\x15\n\r\x04\x03\x03\0\ - \x03\0\x03\0\x04\0\x02\x04\x01\x12\x04\xa4\x01\n.\n\x15\n\r\x04\x03\x03\ - \0\x03\0\x03\0\x04\0\x02\x04\x02\x12\x04\xa4\x0112\n.\n\n\x04\x03\x03\0\ - \x03\0\x03\0\x02\0\x12\x04\xa8\x01\x08\x16\x1a\x1a\x20Configuration\x20s\ - tep\x20type.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x06\x12\x04\ - \xa8\x01\x08\x0c\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x01\x12\x04\ - \xa8\x01\r\x11\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x03\x12\x04\ - \xa8\x01\x14\x15\n\x9a\x01\n\n\x04\x03\x03\0\x03\0\x03\0\x02\x01\x12\x04\ - \xac\x01\x08!\x1a\x85\x01\x20An\x20error\x20message\x20recorded\x20durin\ - g\x20the\x20execution\x20of\x20this\x20step.\n\x20Only\x20populated\x20i\ - f\x20errors\x20were\x20encountered\x20during\x20this\x20step\x20executio\ - n.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x05\x12\x04\xac\x01\ - \x08\x0e\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x01\x12\x04\xac\ - \x01\x0f\x1c\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x03\x12\x04\ - \xac\x01\x1f\x20\n@\n\x08\x04\x03\x03\0\x03\0\x04\0\x12\x06\xb0\x01\x06\ - \xbc\x01\x07\x1a,\x20Possible\x20compliance\x20states\x20for\x20a\x20res\ - ource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x04\0\x01\x12\x04\xb0\x01\x0b\x1a\ - \n\xbe\x01\n\n\x04\x03\x03\0\x03\0\x04\0\x02\0\x12\x04\xb5\x01\x08\x14\ - \x1a\xa9\x01\x20The\x20resource\x20is\x20in\x20an\x20unknown\x20complian\ - ce\x20state.\n\n\x20To\x20get\x20more\x20details\x20about\x20why\x20the\ - \x20policy\x20is\x20in\x20this\x20state,\x20review\n\x20the\x20output\ - \x20of\x20the\x20`compliance_state_reason`\x20field.\n\n\x13\n\x0b\x04\ - \x03\x03\0\x03\0\x04\0\x02\0\x01\x12\x04\xb5\x01\x08\x0f\n\x13\n\x0b\x04\ - \x03\x03\0\x03\0\x04\0\x02\0\x02\x12\x04\xb5\x01\x12\x13\n,\n\n\x04\x03\ - \x03\0\x03\0\x04\0\x02\x01\x12\x04\xb8\x01\x08\x16\x1a\x18\x20Resource\ - \x20is\x20compliant.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x01\x01\ - \x12\x04\xb8\x01\x08\x11\n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x01\ - \x02\x12\x04\xb8\x01\x14\x15\n0\n\n\x04\x03\x03\0\x03\0\x04\0\x02\x02\ - \x12\x04\xbb\x01\x08\x1a\x1a\x1c\x20Resource\x20is\x20non-compliant.\n\n\ - \x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x02\x01\x12\x04\xbb\x01\x08\x15\ - \n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x02\x02\x12\x04\xbb\x01\x18\ - \x19\n3\n\x08\x04\x03\x03\0\x03\0\x03\x01\x12\x06\xbf\x01\x06\xc3\x01\ - \x07\x1a\x1f\x20ExecResource\x20specific\x20output.\n\n\x11\n\t\x04\x03\ - \x03\0\x03\0\x03\x01\x01\x12\x04\xbf\x01\x0e\x20\np\n\n\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x12\x04\xc2\x01\x08%\x1a\\\x20Output\x20from\x20enf\ - orcement\x20phase\x20output\x20file\x20(if\x20run).\n\x20Output\x20size\ - \x20is\x20limited\x20to\x20100K\x20bytes.\n\n\x13\n\x0b\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x05\x12\x04\xc2\x01\x08\r\n\x13\n\x0b\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x01\x12\x04\xc2\x01\x0e\x20\n\x13\n\x0b\x04\x03\x03\ - \0\x03\0\x03\x01\x02\0\x03\x12\x04\xc2\x01#$\n5\n\x08\x04\x03\x03\0\x03\ - \0\x02\0\x12\x04\xc6\x01\x06'\x1a#\x20The\x20ID\x20of\x20the\x20OS\x20po\ - licy\x20resource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x05\x12\x04\xc6\ - \x01\x06\x0c\n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x01\x12\x04\xc6\x01\r\"\ - \n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x03\x12\x04\xc6\x01%&\ne\n\x08\x04\ - \x03\x03\0\x03\0\x02\x01\x12\x04\xca\x01\x06;\x1aS\x20Ordered\x20list\ - \x20of\x20configuration\x20completed\x20by\x20the\x20agent\x20for\x20the\ - \x20OS\x20policy\n\x20resource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\ - \x04\x12\x04\xca\x01\x06\x0e\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x06\ - \x12\x04\xca\x01\x0f)\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x01\x12\x04\ - \xca\x01*6\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x03\x12\x04\xca\x019:\n\ - 9\n\x08\x04\x03\x03\0\x03\0\x02\x02\x12\x04\xcd\x01\x06+\x1a'\x20The\x20\ - compliance\x20state\x20of\x20the\x20resource.\n\n\x11\n\t\x04\x03\x03\0\ - \x03\0\x02\x02\x06\x12\x04\xcd\x01\x06\x15\n\x11\n\t\x04\x03\x03\0\x03\0\ - \x02\x02\x01\x12\x04\xcd\x01\x16&\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x02\ - \x03\x12\x04\xcd\x01)*\n\xaa\x05\n\x08\x04\x03\x03\0\x03\0\x02\x03\x12\ - \x04\xdd\x01\x06)\x1a\x97\x05\x20A\x20reason\x20for\x20the\x20resource\ - \x20to\x20be\x20in\x20the\x20given\x20compliance\x20state.\n\x20This\x20\ - field\x20is\x20always\x20populated\x20when\x20`compliance_state`\x20is\ - \x20`UNKNOWN`.\n\n\x20The\x20following\x20values\x20are\x20supported\x20\ - when\x20`compliance_state\x20==\x20UNKNOWN`\n\n\x20*\x20`execution-error\ - s`:\x20Errors\x20were\x20encountered\x20by\x20the\x20agent\x20while\n\ - \x20executing\x20the\x20resource\x20and\x20the\x20compliance\x20state\ - \x20couldn't\x20be\n\x20determined.\n\x20*\x20`execution-skipped-by-agen\ - t`:\x20Resource\x20execution\x20was\x20skipped\x20by\x20the\n\x20agent\ - \x20because\x20errors\x20were\x20encountered\x20while\x20executing\x20pr\ - ior\x20resources\n\x20in\x20the\x20OS\x20policy.\n\x20*\x20`os-policy-ex\ - ecution-attempt-failed`:\x20The\x20execution\x20of\x20the\x20OS\x20polic\ - y\n\x20containing\x20this\x20resource\x20failed\x20and\x20the\x20complia\ - nce\x20state\x20couldn't\x20be\n\x20determined.\n\n\x11\n\t\x04\x03\x03\ - \0\x03\0\x02\x03\x05\x12\x04\xdd\x01\x06\x0c\n\x11\n\t\x04\x03\x03\0\x03\ - \0\x02\x03\x01\x12\x04\xdd\x01\r$\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x03\ - \x03\x12\x04\xdd\x01'(\n/\n\x08\x04\x03\x03\0\x03\0\x08\0\x12\x06\xe0\ - \x01\x06\xe3\x01\x07\x1a\x1b\x20Resource\x20specific\x20output.\n\n\x11\ - \n\t\x04\x03\x03\0\x03\0\x08\0\x01\x12\x04\xe0\x01\x0c\x12\n1\n\x08\x04\ - \x03\x03\0\x03\0\x02\x04\x12\x04\xe2\x01\x084\x1a\x1f\x20ExecResource\ - \x20specific\x20output.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x06\x12\ - \x04\xe2\x01\x08\x1a\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x01\x12\x04\ - \xe2\x01\x1b/\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x03\x12\x04\xe2\x012\ - 3\n\"\n\x06\x04\x03\x03\0\x02\0\x12\x04\xe7\x01\x04\x1c\x1a\x12\x20The\ - \x20OS\x20policy\x20id\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\xe7\ - \x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\xe7\x01\x0b\x17\n\ - \x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xe7\x01\x1a\x1b\n8\n\x06\x04\ - \x03\x03\0\x02\x01\x12\x04\xea\x01\x04)\x1a(\x20The\x20compliance\x20sta\ - te\x20of\x20the\x20OS\x20policy.\n\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x06\ - \x12\x04\xea\x01\x04\x13\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\x12\x04\ - \xea\x01\x14$\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\xea\x01'(\n\ - \xe9\x08\n\x06\x04\x03\x03\0\x02\x02\x12\x04\x80\x02\x04'\x1a\xd8\x08\ - \x20The\x20reason\x20for\x20the\x20OS\x20policy\x20to\x20be\x20in\x20an\ - \x20unknown\x20compliance\x20state.\n\x20This\x20field\x20is\x20always\ - \x20populated\x20when\x20`compliance_state`\x20is\x20`UNKNOWN`.\n\n\x20I\ - f\x20populated,\x20the\x20field\x20can\x20contain\x20one\x20of\x20the\ - \x20following\x20values:\n\n\x20*\x20`vm-not-running`:\x20The\x20VM\x20w\ - as\x20not\x20running.\n\x20*\x20`os-policies-not-supported-by-agent`:\ - \x20The\x20version\x20of\x20the\x20OS\x20Config\n\x20agent\x20running\ - \x20on\x20the\x20VM\x20does\x20not\x20support\x20running\x20OS\x20polici\ - es.\n\x20*\x20`no-agent-detected`:\x20The\x20OS\x20Config\x20agent\x20is\ - \x20not\x20detected\x20for\x20the\x20VM.\n\x20*\x20`resource-execution-e\ - rrors`:\x20The\x20OS\x20Config\x20agent\x20encountered\x20errors\n\x20wh\ - ile\x20executing\x20one\x20or\x20more\x20resources\x20in\x20the\x20polic\ - y.\x20See\n\x20`os_policy_resource_compliances`\x20for\x20details.\n\x20\ - *\x20`task-timeout`:\x20The\x20task\x20sent\x20to\x20the\x20agent\x20to\ - \x20apply\x20the\x20policy\x20timed\n\x20out.\n\x20*\x20`unexpected-agen\ - t-state`:\x20The\x20OS\x20Config\x20agent\x20did\x20not\x20report\x20the\ - \x20final\n\x20status\x20of\x20the\x20task\x20that\x20attempted\x20to\ - \x20apply\x20the\x20policy.\x20Instead,\x20the\x20agent\n\x20unexpectedl\ - y\x20started\x20working\x20on\x20a\x20different\x20task.\x20This\x20most\ - ly\x20happens\n\x20when\x20the\x20agent\x20or\x20VM\x20unexpectedly\x20r\ - estarts\x20while\x20applying\x20OS\x20policies.\n\x20*\x20`internal-serv\ - ice-errors`:\x20Internal\x20service\x20errors\x20were\x20encountered\n\ - \x20while\x20attempting\x20to\x20apply\x20the\x20policy.\n\n\x0f\n\x07\ - \x04\x03\x03\0\x02\x02\x05\x12\x04\x80\x02\x04\n\n\x0f\n\x07\x04\x03\x03\ - \0\x02\x02\x01\x12\x04\x80\x02\x0b\"\n\x0f\n\x07\x04\x03\x03\0\x02\x02\ - \x03\x12\x04\x80\x02%&\na\n\x06\x04\x03\x03\0\x02\x03\x12\x04\x84\x02\ - \x04K\x1aQ\x20Compliance\x20data\x20for\x20each\x20resource\x20within\ - \x20the\x20policy\x20that\x20is\x20applied\x20to\n\x20the\x20VM.\n\n\x0f\ - \n\x07\x04\x03\x03\0\x02\x03\x04\x12\x04\x84\x02\x04\x0c\n\x0f\n\x07\x04\ - \x03\x03\0\x02\x03\x06\x12\x04\x84\x02\r'\n\x0f\n\x07\x04\x03\x03\0\x02\ - \x03\x01\x12\x04\x84\x02(F\n\x0f\n\x07\x04\x03\x03\0\x02\x03\x03\x12\x04\ - \x84\x02IJ\n\xcb\x01\n\x04\x04\x03\x02\0\x12\x04\x8b\x02\x02\x12\x1a\xbc\ - \x01\x20The\x20`OSPolicyAssignmentReport`\x20API\x20resource\x20name.\n\ - \n\x20Format:\n\x20`projects/{project_number}/locations/{location}/insta\ - nces/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`\ - \n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x8b\x02\x02\x08\n\r\n\x05\x04\x03\ - \x02\0\x01\x12\x04\x8b\x02\t\r\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x8b\ - \x02\x10\x11\n4\n\x04\x04\x03\x02\x01\x12\x04\x8e\x02\x02\x16\x1a&\x20Th\ - e\x20Compute\x20Engine\x20VM\x20instance\x20name.\n\n\r\n\x05\x04\x03\ - \x02\x01\x05\x12\x04\x8e\x02\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\ - \x04\x8e\x02\t\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x8e\x02\x14\x15\ - \n\xdc\x01\n\x04\x04\x03\x02\x02\x12\x06\x95\x02\x02\x97\x02\x05\x1a\xcb\ - \x01\x20Reference\x20to\x20the\x20`OSPolicyAssignment`\x20API\x20resourc\ - e\x20that\x20the\x20`OSPolicy`\n\x20belongs\x20to.\n\n\x20Format:\n\x20`\ - projects/{project_number}/locations/{location}/osPolicyAssignments/{os_p\ - olicy_assignment_id@revision_id}`\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\ - \x04\x95\x02\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x95\x02\t\x1d\ - \n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\x95\x02\x20!\n\x0f\n\x05\x04\x03\ - \x02\x02\x08\x12\x06\x95\x02\"\x97\x02\x04\n\x11\n\x07\x04\x03\x02\x02\ - \x08\x9f\x08\x12\x06\x95\x02#\x97\x02\x03\nN\n\x04\x04\x03\x02\x03\x12\ - \x04\x9a\x02\x028\x1a@\x20Compliance\x20data\x20for\x20each\x20`OSPolicy\ - `\x20that\x20is\x20applied\x20to\x20the\x20VM.\n\n\r\n\x05\x04\x03\x02\ - \x03\x04\x12\x04\x9a\x02\x02\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\x9a\ - \x02\x0b\x1d\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\x9a\x02\x1e3\n\r\n\ - \x05\x04\x03\x02\x03\x03\x12\x04\x9a\x0267\nA\n\x04\x04\x03\x02\x04\x12\ - \x04\x9d\x02\x02,\x1a3\x20Timestamp\x20for\x20when\x20the\x20report\x20w\ - as\x20last\x20generated.\n\n\r\n\x05\x04\x03\x02\x04\x06\x12\x04\x9d\x02\ - \x02\x1b\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\x9d\x02\x1c'\n\r\n\x05\ - \x04\x03\x02\x04\x03\x12\x04\x9d\x02*+\n\x81\x03\n\x04\x04\x03\x02\x05\ - \x12\x04\xa6\x02\x02\x19\x1a\xf2\x02\x20Unique\x20identifier\x20of\x20th\ - e\x20last\x20attempted\x20run\x20to\x20apply\x20the\x20OS\x20policies\n\ - \x20associated\x20with\x20this\x20assignment\x20on\x20the\x20VM.\n\n\x20\ - This\x20ID\x20is\x20logged\x20by\x20the\x20OS\x20Config\x20agent\x20whil\ - e\x20applying\x20the\x20OS\n\x20policies\x20associated\x20with\x20this\ - \x20assignment\x20on\x20the\x20VM.\n\x20NOTE:\x20If\x20the\x20service\ - \x20is\x20unable\x20to\x20successfully\x20connect\x20to\x20the\x20agent\ - \x20for\n\x20this\x20run,\x20then\x20this\x20id\x20will\x20not\x20be\x20\ - available\x20in\x20the\x20agent\x20logs.\n\n\r\n\x05\x04\x03\x02\x05\x05\ - \x12\x04\xa6\x02\x02\x08\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\xa6\x02\t\ - \x14\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xa6\x02\x17\x18b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignments.rs b/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignments.rs deleted file mode 100644 index 684b503..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/os_policy_assignments.rs +++ /dev/null @@ -1,4308 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/os_policy_assignments.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment { - // message fields - pub name: ::std::string::String, - pub description: ::std::string::String, - pub os_policies: ::protobuf::RepeatedField, - pub instance_filter: ::protobuf::SingularPtrField, - pub rollout: ::protobuf::SingularPtrField, - pub revision_id: ::std::string::String, - pub revision_create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub etag: ::std::string::String, - pub rollout_state: OSPolicyAssignment_RolloutState, - pub baseline: bool, - pub deleted: bool, - pub reconciling: bool, - pub uid: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment { - fn default() -> &'a OSPolicyAssignment { - ::default_instance() - } -} - -impl OSPolicyAssignment { - pub fn new() -> OSPolicyAssignment { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicy os_policies = 3; - - - pub fn get_os_policies(&self) -> &[super::os_policy::OSPolicy] { - &self.os_policies - } - pub fn clear_os_policies(&mut self) { - self.os_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policies(&mut self, v: ::protobuf::RepeatedField) { - self.os_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policies - } - - // Take field - pub fn take_os_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policies, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter instance_filter = 4; - - - pub fn get_instance_filter(&self) -> &OSPolicyAssignment_InstanceFilter { - self.instance_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_filter(&mut self) { - self.instance_filter.clear(); - } - - pub fn has_instance_filter(&self) -> bool { - self.instance_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_filter(&mut self, v: OSPolicyAssignment_InstanceFilter) { - self.instance_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_filter(&mut self) -> &mut OSPolicyAssignment_InstanceFilter { - if self.instance_filter.is_none() { - self.instance_filter.set_default(); - } - self.instance_filter.as_mut().unwrap() - } - - // Take field - pub fn take_instance_filter(&mut self) -> OSPolicyAssignment_InstanceFilter { - self.instance_filter.take().unwrap_or_else(|| OSPolicyAssignment_InstanceFilter::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignment.Rollout rollout = 5; - - - pub fn get_rollout(&self) -> &OSPolicyAssignment_Rollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: OSPolicyAssignment_Rollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut OSPolicyAssignment_Rollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> OSPolicyAssignment_Rollout { - self.rollout.take().unwrap_or_else(|| OSPolicyAssignment_Rollout::new()) - } - - // string revision_id = 6; - - - pub fn get_revision_id(&self) -> &str { - &self.revision_id - } - pub fn clear_revision_id(&mut self) { - self.revision_id.clear(); - } - - // Param is passed by value, moved - pub fn set_revision_id(&mut self, v: ::std::string::String) { - self.revision_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.revision_id - } - - // Take field - pub fn take_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.revision_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp revision_create_time = 7; - - - pub fn get_revision_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.revision_create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_revision_create_time(&mut self) { - self.revision_create_time.clear(); - } - - pub fn has_revision_create_time(&self) -> bool { - self.revision_create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_revision_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.revision_create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.revision_create_time.is_none() { - self.revision_create_time.set_default(); - } - self.revision_create_time.as_mut().unwrap() - } - - // Take field - pub fn take_revision_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.revision_create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string etag = 8; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState rollout_state = 9; - - - pub fn get_rollout_state(&self) -> OSPolicyAssignment_RolloutState { - self.rollout_state - } - pub fn clear_rollout_state(&mut self) { - self.rollout_state = OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_rollout_state(&mut self, v: OSPolicyAssignment_RolloutState) { - self.rollout_state = v; - } - - // bool baseline = 10; - - - pub fn get_baseline(&self) -> bool { - self.baseline - } - pub fn clear_baseline(&mut self) { - self.baseline = false; - } - - // Param is passed by value, moved - pub fn set_baseline(&mut self, v: bool) { - self.baseline = v; - } - - // bool deleted = 11; - - - pub fn get_deleted(&self) -> bool { - self.deleted - } - pub fn clear_deleted(&mut self) { - self.deleted = false; - } - - // Param is passed by value, moved - pub fn set_deleted(&mut self, v: bool) { - self.deleted = v; - } - - // bool reconciling = 12; - - - pub fn get_reconciling(&self) -> bool { - self.reconciling - } - pub fn clear_reconciling(&mut self) { - self.reconciling = false; - } - - // Param is passed by value, moved - pub fn set_reconciling(&mut self, v: bool) { - self.reconciling = v; - } - - // string uid = 13; - - - pub fn get_uid(&self) -> &str { - &self.uid - } - pub fn clear_uid(&mut self) { - self.uid.clear(); - } - - // Param is passed by value, moved - pub fn set_uid(&mut self, v: ::std::string::String) { - self.uid = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uid(&mut self) -> &mut ::std::string::String { - &mut self.uid - } - - // Take field - pub fn take_uid(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uid, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment { - fn is_initialized(&self) -> bool { - for v in &self.os_policies { - if !v.is_initialized() { - return false; - } - }; - for v in &self.instance_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; - for v in &self.revision_create_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policies)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_filter)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.revision_id)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.revision_create_time)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.rollout_state, 9, &mut self.unknown_fields)? - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.baseline = tmp; - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.deleted = tmp; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reconciling = tmp; - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uid)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - for value in &self.os_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.instance_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.rollout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.revision_id); - } - if let Some(ref v) = self.revision_create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.etag); - } - if self.rollout_state != OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.rollout_state); - } - if self.baseline != false { - my_size += 2; - } - if self.deleted != false { - my_size += 2; - } - if self.reconciling != false { - my_size += 2; - } - if !self.uid.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.uid); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - for v in &self.os_policies { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.instance_filter.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.revision_id.is_empty() { - os.write_string(6, &self.revision_id)?; - } - if let Some(ref v) = self.revision_create_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.etag.is_empty() { - os.write_string(8, &self.etag)?; - } - if self.rollout_state != OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.rollout_state))?; - } - if self.baseline != false { - os.write_bool(10, self.baseline)?; - } - if self.deleted != false { - os.write_bool(11, self.deleted)?; - } - if self.reconciling != false { - os.write_bool(12, self.reconciling)?; - } - if !self.uid.is_empty() { - os.write_string(13, &self.uid)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment { - OSPolicyAssignment::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicyAssignment| { &m.name }, - |m: &mut OSPolicyAssignment| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &OSPolicyAssignment| { &m.description }, - |m: &mut OSPolicyAssignment| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policies", - |m: &OSPolicyAssignment| { &m.os_policies }, - |m: &mut OSPolicyAssignment| { &mut m.os_policies }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_filter", - |m: &OSPolicyAssignment| { &m.instance_filter }, - |m: &mut OSPolicyAssignment| { &mut m.instance_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &OSPolicyAssignment| { &m.rollout }, - |m: &mut OSPolicyAssignment| { &mut m.rollout }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "revision_id", - |m: &OSPolicyAssignment| { &m.revision_id }, - |m: &mut OSPolicyAssignment| { &mut m.revision_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "revision_create_time", - |m: &OSPolicyAssignment| { &m.revision_create_time }, - |m: &mut OSPolicyAssignment| { &mut m.revision_create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &OSPolicyAssignment| { &m.etag }, - |m: &mut OSPolicyAssignment| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "rollout_state", - |m: &OSPolicyAssignment| { &m.rollout_state }, - |m: &mut OSPolicyAssignment| { &mut m.rollout_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "baseline", - |m: &OSPolicyAssignment| { &m.baseline }, - |m: &mut OSPolicyAssignment| { &mut m.baseline }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "deleted", - |m: &OSPolicyAssignment| { &m.deleted }, - |m: &mut OSPolicyAssignment| { &mut m.deleted }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reconciling", - |m: &OSPolicyAssignment| { &m.reconciling }, - |m: &mut OSPolicyAssignment| { &mut m.reconciling }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uid", - |m: &OSPolicyAssignment| { &m.uid }, - |m: &mut OSPolicyAssignment| { &mut m.uid }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment { - fn clear(&mut self) { - self.name.clear(); - self.description.clear(); - self.os_policies.clear(); - self.instance_filter.clear(); - self.rollout.clear(); - self.revision_id.clear(); - self.revision_create_time.clear(); - self.etag.clear(); - self.rollout_state = OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - self.baseline = false; - self.deleted = false; - self.reconciling = false; - self.uid.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_LabelSet { - // message fields - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_LabelSet { - fn default() -> &'a OSPolicyAssignment_LabelSet { - ::default_instance() - } -} - -impl OSPolicyAssignment_LabelSet { - pub fn new() -> OSPolicyAssignment_LabelSet { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.LabelsEntry labels = 1; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_LabelSet { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_LabelSet { - OSPolicyAssignment_LabelSet::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &OSPolicyAssignment_LabelSet| { &m.labels }, - |m: &mut OSPolicyAssignment_LabelSet| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.LabelSet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_LabelSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_LabelSet::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_LabelSet { - fn clear(&mut self) { - self.labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_LabelSet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_LabelSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_InstanceFilter { - // message fields - pub all: bool, - pub inclusion_labels: ::protobuf::RepeatedField, - pub exclusion_labels: ::protobuf::RepeatedField, - pub inventories: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_InstanceFilter { - fn default() -> &'a OSPolicyAssignment_InstanceFilter { - ::default_instance() - } -} - -impl OSPolicyAssignment_InstanceFilter { - pub fn new() -> OSPolicyAssignment_InstanceFilter { - ::std::default::Default::default() - } - - // bool all = 1; - - - pub fn get_all(&self) -> bool { - self.all - } - pub fn clear_all(&mut self) { - self.all = false; - } - - // Param is passed by value, moved - pub fn set_all(&mut self, v: bool) { - self.all = v; - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet inclusion_labels = 2; - - - pub fn get_inclusion_labels(&self) -> &[OSPolicyAssignment_LabelSet] { - &self.inclusion_labels - } - pub fn clear_inclusion_labels(&mut self) { - self.inclusion_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_inclusion_labels(&mut self, v: ::protobuf::RepeatedField) { - self.inclusion_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_inclusion_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inclusion_labels - } - - // Take field - pub fn take_inclusion_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inclusion_labels, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet exclusion_labels = 3; - - - pub fn get_exclusion_labels(&self) -> &[OSPolicyAssignment_LabelSet] { - &self.exclusion_labels - } - pub fn clear_exclusion_labels(&mut self) { - self.exclusion_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusion_labels(&mut self, v: ::protobuf::RepeatedField) { - self.exclusion_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusion_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.exclusion_labels - } - - // Take field - pub fn take_exclusion_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.exclusion_labels, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory inventories = 4; - - - pub fn get_inventories(&self) -> &[OSPolicyAssignment_InstanceFilter_Inventory] { - &self.inventories - } - pub fn clear_inventories(&mut self) { - self.inventories.clear(); - } - - // Param is passed by value, moved - pub fn set_inventories(&mut self, v: ::protobuf::RepeatedField) { - self.inventories = v; - } - - // Mutable pointer to the field. - pub fn mut_inventories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventories - } - - // Take field - pub fn take_inventories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventories, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_InstanceFilter { - fn is_initialized(&self) -> bool { - for v in &self.inclusion_labels { - if !v.is_initialized() { - return false; - } - }; - for v in &self.exclusion_labels { - if !v.is_initialized() { - return false; - } - }; - for v in &self.inventories { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.all = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inclusion_labels)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exclusion_labels)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventories)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.all != false { - my_size += 2; - } - for value in &self.inclusion_labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.exclusion_labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.inventories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.all != false { - os.write_bool(1, self.all)?; - } - for v in &self.inclusion_labels { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.exclusion_labels { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.inventories { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_InstanceFilter { - OSPolicyAssignment_InstanceFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "all", - |m: &OSPolicyAssignment_InstanceFilter| { &m.all }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.all }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inclusion_labels", - |m: &OSPolicyAssignment_InstanceFilter| { &m.inclusion_labels }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.inclusion_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "exclusion_labels", - |m: &OSPolicyAssignment_InstanceFilter| { &m.exclusion_labels }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.exclusion_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventories", - |m: &OSPolicyAssignment_InstanceFilter| { &m.inventories }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.inventories }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.InstanceFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_InstanceFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_InstanceFilter::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_InstanceFilter { - fn clear(&mut self) { - self.all = false; - self.inclusion_labels.clear(); - self.exclusion_labels.clear(); - self.inventories.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_InstanceFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_InstanceFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_InstanceFilter_Inventory { - // message fields - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_InstanceFilter_Inventory { - fn default() -> &'a OSPolicyAssignment_InstanceFilter_Inventory { - ::default_instance() - } -} - -impl OSPolicyAssignment_InstanceFilter_Inventory { - pub fn new() -> OSPolicyAssignment_InstanceFilter_Inventory { - ::std::default::Default::default() - } - - // string os_short_name = 1; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 2; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_InstanceFilter_Inventory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_short_name.is_empty() { - os.write_string(1, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(2, &self.os_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_InstanceFilter_Inventory { - OSPolicyAssignment_InstanceFilter_Inventory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &OSPolicyAssignment_InstanceFilter_Inventory| { &m.os_short_name }, - |m: &mut OSPolicyAssignment_InstanceFilter_Inventory| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &OSPolicyAssignment_InstanceFilter_Inventory| { &m.os_version }, - |m: &mut OSPolicyAssignment_InstanceFilter_Inventory| { &mut m.os_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.InstanceFilter.Inventory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_InstanceFilter_Inventory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_InstanceFilter_Inventory::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_InstanceFilter_Inventory { - fn clear(&mut self) { - self.os_short_name.clear(); - self.os_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_InstanceFilter_Inventory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_InstanceFilter_Inventory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_Rollout { - // message fields - pub disruption_budget: ::protobuf::SingularPtrField, - pub min_wait_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_Rollout { - fn default() -> &'a OSPolicyAssignment_Rollout { - ::default_instance() - } -} - -impl OSPolicyAssignment_Rollout { - pub fn new() -> OSPolicyAssignment_Rollout { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 1; - - - pub fn get_disruption_budget(&self) -> &super::osconfig_common::FixedOrPercent { - self.disruption_budget.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_disruption_budget(&mut self) { - self.disruption_budget.clear(); - } - - pub fn has_disruption_budget(&self) -> bool { - self.disruption_budget.is_some() - } - - // Param is passed by value, moved - pub fn set_disruption_budget(&mut self, v: super::osconfig_common::FixedOrPercent) { - self.disruption_budget = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_disruption_budget(&mut self) -> &mut super::osconfig_common::FixedOrPercent { - if self.disruption_budget.is_none() { - self.disruption_budget.set_default(); - } - self.disruption_budget.as_mut().unwrap() - } - - // Take field - pub fn take_disruption_budget(&mut self) -> super::osconfig_common::FixedOrPercent { - self.disruption_budget.take().unwrap_or_else(|| super::osconfig_common::FixedOrPercent::new()) - } - - // .google.protobuf.Duration min_wait_duration = 2; - - - pub fn get_min_wait_duration(&self) -> &::protobuf::well_known_types::Duration { - self.min_wait_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_min_wait_duration(&mut self) { - self.min_wait_duration.clear(); - } - - pub fn has_min_wait_duration(&self) -> bool { - self.min_wait_duration.is_some() - } - - // Param is passed by value, moved - pub fn set_min_wait_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.min_wait_duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_min_wait_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.min_wait_duration.is_none() { - self.min_wait_duration.set_default(); - } - self.min_wait_duration.as_mut().unwrap() - } - - // Take field - pub fn take_min_wait_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.min_wait_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_Rollout { - fn is_initialized(&self) -> bool { - for v in &self.disruption_budget { - if !v.is_initialized() { - return false; - } - }; - for v in &self.min_wait_duration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.disruption_budget)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.min_wait_duration)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.disruption_budget.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.min_wait_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.disruption_budget.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.min_wait_duration.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_Rollout { - OSPolicyAssignment_Rollout::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "disruption_budget", - |m: &OSPolicyAssignment_Rollout| { &m.disruption_budget }, - |m: &mut OSPolicyAssignment_Rollout| { &mut m.disruption_budget }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "min_wait_duration", - |m: &OSPolicyAssignment_Rollout| { &m.min_wait_duration }, - |m: &mut OSPolicyAssignment_Rollout| { &mut m.min_wait_duration }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.Rollout", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_Rollout { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_Rollout::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_Rollout { - fn clear(&mut self) { - self.disruption_budget.clear(); - self.min_wait_duration.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_Rollout { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_Rollout { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignment_RolloutState { - ROLLOUT_STATE_UNSPECIFIED = 0, - IN_PROGRESS = 1, - CANCELLING = 2, - CANCELLED = 3, - SUCCEEDED = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignment_RolloutState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::IN_PROGRESS), - 2 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::CANCELLING), - 3 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::CANCELLED), - 4 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::SUCCEEDED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignment_RolloutState] = &[ - OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED, - OSPolicyAssignment_RolloutState::IN_PROGRESS, - OSPolicyAssignment_RolloutState::CANCELLING, - OSPolicyAssignment_RolloutState::CANCELLED, - OSPolicyAssignment_RolloutState::SUCCEEDED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignment.RolloutState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignment_RolloutState { -} - -impl ::std::default::Default for OSPolicyAssignment_RolloutState { - fn default() -> Self { - OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_RolloutState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentOperationMetadata { - // message fields - pub os_policy_assignment: ::std::string::String, - pub api_method: OSPolicyAssignmentOperationMetadata_APIMethod, - pub rollout_state: OSPolicyAssignmentOperationMetadata_RolloutState, - pub rollout_start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub rollout_update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentOperationMetadata { - fn default() -> &'a OSPolicyAssignmentOperationMetadata { - ::default_instance() - } -} - -impl OSPolicyAssignmentOperationMetadata { - pub fn new() -> OSPolicyAssignmentOperationMetadata { - ::std::default::Default::default() - } - - // string os_policy_assignment = 1; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2; - - - pub fn get_api_method(&self) -> OSPolicyAssignmentOperationMetadata_APIMethod { - self.api_method - } - pub fn clear_api_method(&mut self) { - self.api_method = OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_api_method(&mut self, v: OSPolicyAssignmentOperationMetadata_APIMethod) { - self.api_method = v; - } - - // .google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState rollout_state = 3; - - - pub fn get_rollout_state(&self) -> OSPolicyAssignmentOperationMetadata_RolloutState { - self.rollout_state - } - pub fn clear_rollout_state(&mut self) { - self.rollout_state = OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_rollout_state(&mut self, v: OSPolicyAssignmentOperationMetadata_RolloutState) { - self.rollout_state = v; - } - - // .google.protobuf.Timestamp rollout_start_time = 4; - - - pub fn get_rollout_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.rollout_start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_rollout_start_time(&mut self) { - self.rollout_start_time.clear(); - } - - pub fn has_rollout_start_time(&self) -> bool { - self.rollout_start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.rollout_start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.rollout_start_time.is_none() { - self.rollout_start_time.set_default(); - } - self.rollout_start_time.as_mut().unwrap() - } - - // Take field - pub fn take_rollout_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.rollout_start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp rollout_update_time = 5; - - - pub fn get_rollout_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.rollout_update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_rollout_update_time(&mut self) { - self.rollout_update_time.clear(); - } - - pub fn has_rollout_update_time(&self) -> bool { - self.rollout_update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.rollout_update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.rollout_update_time.is_none() { - self.rollout_update_time.set_default(); - } - self.rollout_update_time.as_mut().unwrap() - } - - // Take field - pub fn take_rollout_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.rollout_update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentOperationMetadata { - fn is_initialized(&self) -> bool { - for v in &self.rollout_start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout_update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.api_method, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.rollout_state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout_start_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout_update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_assignment); - } - if self.api_method != OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.api_method); - } - if self.rollout_state != OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.rollout_state); - } - if let Some(ref v) = self.rollout_start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.rollout_update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_assignment.is_empty() { - os.write_string(1, &self.os_policy_assignment)?; - } - if self.api_method != OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.api_method))?; - } - if self.rollout_state != OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.rollout_state))?; - } - if let Some(ref v) = self.rollout_start_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.rollout_update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentOperationMetadata { - OSPolicyAssignmentOperationMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &OSPolicyAssignmentOperationMetadata| { &m.os_policy_assignment }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "api_method", - |m: &OSPolicyAssignmentOperationMetadata| { &m.api_method }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.api_method }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "rollout_state", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_state }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "rollout_start_time", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_start_time }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "rollout_update_time", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_update_time }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentOperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentOperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentOperationMetadata::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentOperationMetadata { - fn clear(&mut self) { - self.os_policy_assignment.clear(); - self.api_method = OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED; - self.rollout_state = OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - self.rollout_start_time.clear(); - self.rollout_update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentOperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentOperationMetadata_APIMethod { - API_METHOD_UNSPECIFIED = 0, - CREATE = 1, - UPDATE = 2, - DELETE = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentOperationMetadata_APIMethod { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::CREATE), - 2 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::UPDATE), - 3 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::DELETE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentOperationMetadata_APIMethod] = &[ - OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED, - OSPolicyAssignmentOperationMetadata_APIMethod::CREATE, - OSPolicyAssignmentOperationMetadata_APIMethod::UPDATE, - OSPolicyAssignmentOperationMetadata_APIMethod::DELETE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentOperationMetadata.APIMethod", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentOperationMetadata_APIMethod { -} - -impl ::std::default::Default for OSPolicyAssignmentOperationMetadata_APIMethod { - fn default() -> Self { - OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata_APIMethod { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentOperationMetadata_RolloutState { - ROLLOUT_STATE_UNSPECIFIED = 0, - IN_PROGRESS = 1, - CANCELLING = 2, - CANCELLED = 3, - SUCCEEDED = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentOperationMetadata_RolloutState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::IN_PROGRESS), - 2 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLING), - 3 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLED), - 4 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::SUCCEEDED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentOperationMetadata_RolloutState] = &[ - OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED, - OSPolicyAssignmentOperationMetadata_RolloutState::IN_PROGRESS, - OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLING, - OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLED, - OSPolicyAssignmentOperationMetadata_RolloutState::SUCCEEDED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentOperationMetadata.RolloutState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentOperationMetadata_RolloutState { -} - -impl ::std::default::Default for OSPolicyAssignmentOperationMetadata_RolloutState { - fn default() -> Self { - OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata_RolloutState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateOSPolicyAssignmentRequest { - // message fields - pub parent: ::std::string::String, - pub os_policy_assignment: ::protobuf::SingularPtrField, - pub os_policy_assignment_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateOSPolicyAssignmentRequest { - fn default() -> &'a CreateOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl CreateOSPolicyAssignmentRequest { - pub fn new() -> CreateOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 2; - - - pub fn get_os_policy_assignment(&self) -> &OSPolicyAssignment { - self.os_policy_assignment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - pub fn has_os_policy_assignment(&self) -> bool { - self.os_policy_assignment.is_some() - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: OSPolicyAssignment) { - self.os_policy_assignment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut OSPolicyAssignment { - if self.os_policy_assignment.is_none() { - self.os_policy_assignment.set_default(); - } - self.os_policy_assignment.as_mut().unwrap() - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> OSPolicyAssignment { - self.os_policy_assignment.take().unwrap_or_else(|| OSPolicyAssignment::new()) - } - - // string os_policy_assignment_id = 3; - - - pub fn get_os_policy_assignment_id(&self) -> &str { - &self.os_policy_assignment_id - } - pub fn clear_os_policy_assignment_id(&mut self) { - self.os_policy_assignment_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment_id(&mut self, v: ::std::string::String) { - self.os_policy_assignment_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment_id - } - - // Take field - pub fn take_os_policy_assignment_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.os_policy_assignment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.os_policy_assignment_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.os_policy_assignment_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.os_policy_assignment.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.os_policy_assignment_id.is_empty() { - os.write_string(3, &self.os_policy_assignment_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateOSPolicyAssignmentRequest { - CreateOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateOSPolicyAssignmentRequest| { &m.parent }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment", - |m: &CreateOSPolicyAssignmentRequest| { &m.os_policy_assignment }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment_id", - |m: &CreateOSPolicyAssignmentRequest| { &m.os_policy_assignment_id }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for CreateOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.parent.clear(); - self.os_policy_assignment.clear(); - self.os_policy_assignment_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateOSPolicyAssignmentRequest { - // message fields - pub os_policy_assignment: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateOSPolicyAssignmentRequest { - fn default() -> &'a UpdateOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl UpdateOSPolicyAssignmentRequest { - pub fn new() -> UpdateOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignment = 1; - - - pub fn get_os_policy_assignment(&self) -> &OSPolicyAssignment { - self.os_policy_assignment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - pub fn has_os_policy_assignment(&self) -> bool { - self.os_policy_assignment.is_some() - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: OSPolicyAssignment) { - self.os_policy_assignment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut OSPolicyAssignment { - if self.os_policy_assignment.is_none() { - self.os_policy_assignment.set_default(); - } - self.os_policy_assignment.as_mut().unwrap() - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> OSPolicyAssignment { - self.os_policy_assignment.take().unwrap_or_else(|| OSPolicyAssignment::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.os_policy_assignment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.os_policy_assignment.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateOSPolicyAssignmentRequest { - UpdateOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment", - |m: &UpdateOSPolicyAssignmentRequest| { &m.os_policy_assignment }, - |m: &mut UpdateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateOSPolicyAssignmentRequest| { &m.update_mask }, - |m: &mut UpdateOSPolicyAssignmentRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for UpdateOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.os_policy_assignment.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetOSPolicyAssignmentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetOSPolicyAssignmentRequest { - fn default() -> &'a GetOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl GetOSPolicyAssignmentRequest { - pub fn new() -> GetOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetOSPolicyAssignmentRequest { - GetOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetOSPolicyAssignmentRequest| { &m.name }, - |m: &mut GetOSPolicyAssignmentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for GetOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentsRequest { - fn default() -> &'a ListOSPolicyAssignmentsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentsRequest { - pub fn new() -> ListOSPolicyAssignmentsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentsRequest { - ListOSPolicyAssignmentsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListOSPolicyAssignmentsRequest| { &m.parent }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentsResponse { - // message fields - pub os_policy_assignments: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentsResponse { - fn default() -> &'a ListOSPolicyAssignmentsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentsResponse { - pub fn new() -> ListOSPolicyAssignmentsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1; - - - pub fn get_os_policy_assignments(&self) -> &[OSPolicyAssignment] { - &self.os_policy_assignments - } - pub fn clear_os_policy_assignments(&mut self) { - self.os_policy_assignments.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignments(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignments = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignments(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignments - } - - // Take field - pub fn take_os_policy_assignments(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignments, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignments)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignments { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentsResponse { - ListOSPolicyAssignmentsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignments", - |m: &ListOSPolicyAssignmentsResponse| { &m.os_policy_assignments }, - |m: &mut ListOSPolicyAssignmentsResponse| { &mut m.os_policy_assignments }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentsResponse { - fn clear(&mut self) { - self.os_policy_assignments.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentRevisionsRequest { - // message fields - pub name: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentRevisionsRequest { - fn default() -> &'a ListOSPolicyAssignmentRevisionsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentRevisionsRequest { - pub fn new() -> ListOSPolicyAssignmentRevisionsRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentRevisionsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentRevisionsRequest { - ListOSPolicyAssignmentRevisionsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.name }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentRevisionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentRevisionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentRevisionsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentRevisionsRequest { - fn clear(&mut self) { - self.name.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentRevisionsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentRevisionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentRevisionsResponse { - // message fields - pub os_policy_assignments: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentRevisionsResponse { - fn default() -> &'a ListOSPolicyAssignmentRevisionsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentRevisionsResponse { - pub fn new() -> ListOSPolicyAssignmentRevisionsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.OSPolicyAssignment os_policy_assignments = 1; - - - pub fn get_os_policy_assignments(&self) -> &[OSPolicyAssignment] { - &self.os_policy_assignments - } - pub fn clear_os_policy_assignments(&mut self) { - self.os_policy_assignments.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignments(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignments = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignments(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignments - } - - // Take field - pub fn take_os_policy_assignments(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignments, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentRevisionsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignments)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignments { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentRevisionsResponse { - ListOSPolicyAssignmentRevisionsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignments", - |m: &ListOSPolicyAssignmentRevisionsResponse| { &m.os_policy_assignments }, - |m: &mut ListOSPolicyAssignmentRevisionsResponse| { &mut m.os_policy_assignments }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentRevisionsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentRevisionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentRevisionsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentRevisionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentRevisionsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentRevisionsResponse { - fn clear(&mut self) { - self.os_policy_assignments.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentRevisionsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentRevisionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteOSPolicyAssignmentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteOSPolicyAssignmentRequest { - fn default() -> &'a DeleteOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl DeleteOSPolicyAssignmentRequest { - pub fn new() -> DeleteOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteOSPolicyAssignmentRequest { - DeleteOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteOSPolicyAssignmentRequest| { &m.name }, - |m: &mut DeleteOSPolicyAssignmentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for DeleteOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n4google/cloud/osconfig/v1/os_policy_assignments.proto\x12\x18google.cl\ - oud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api\ - /resource.proto\x1a(google/cloud/osconfig/v1/os_policy.proto\x1a.google/\ - cloud/osconfig/v1/osconfig_common.proto\x1a\x1egoogle/protobuf/duration.\ - proto\x1a\x20google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/tim\ - estamp.proto\"\xb7\r\n\x12OSPolicyAssignment\x12\x12\n\x04name\x18\x01\ - \x20\x01(\tR\x04name\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdes\ - cription\x12H\n\x0bos_policies\x18\x03\x20\x03(\x0b2\".google.cloud.osco\ - nfig.v1.OSPolicyR\nosPoliciesB\x03\xe0A\x02\x12i\n\x0finstance_filter\ - \x18\x04\x20\x01(\x0b2;.google.cloud.osconfig.v1.OSPolicyAssignment.Inst\ - anceFilterR\x0einstanceFilterB\x03\xe0A\x02\x12S\n\x07rollout\x18\x05\ - \x20\x01(\x0b24.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutR\x07\ - rolloutB\x03\xe0A\x02\x12$\n\x0brevision_id\x18\x06\x20\x01(\tR\nrevisio\ - nIdB\x03\xe0A\x03\x12Q\n\x14revision_create_time\x18\x07\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\x12revisionCreateTimeB\x03\xe0A\x03\x12\ - \x12\n\x04etag\x18\x08\x20\x01(\tR\x04etag\x12c\n\rrollout_state\x18\t\ - \x20\x01(\x0e29.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState\ - R\x0crolloutStateB\x03\xe0A\x03\x12\x1f\n\x08baseline\x18\n\x20\x01(\x08\ - R\x08baselineB\x03\xe0A\x03\x12\x1d\n\x07deleted\x18\x0b\x20\x01(\x08R\ - \x07deletedB\x03\xe0A\x03\x12%\n\x0breconciling\x18\x0c\x20\x01(\x08R\ - \x0breconcilingB\x03\xe0A\x03\x12\x15\n\x03uid\x18\r\x20\x01(\tR\x03uidB\ - \x03\xe0A\x03\x1a\xa0\x01\n\x08LabelSet\x12Y\n\x06labels\x18\x01\x20\x03\ - (\x0b2A.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.LabelsEntry\ - R\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ - \x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1a\ - \xa4\x03\n\x0eInstanceFilter\x12\x10\n\x03all\x18\x01\x20\x01(\x08R\x03a\ - ll\x12`\n\x10inclusion_labels\x18\x02\x20\x03(\x0b25.google.cloud.osconf\ - ig.v1.OSPolicyAssignment.LabelSetR\x0finclusionLabels\x12`\n\x10exclusio\ - n_labels\x18\x03\x20\x03(\x0b25.google.cloud.osconfig.v1.OSPolicyAssignm\ - ent.LabelSetR\x0fexclusionLabels\x12g\n\x0binventories\x18\x04\x20\x03(\ - \x0b2E.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Invent\ - oryR\x0binventories\x1aS\n\tInventory\x12'\n\ros_short_name\x18\x01\x20\ - \x01(\tR\x0bosShortNameB\x03\xe0A\x02\x12\x1d\n\nos_version\x18\x02\x20\ - \x01(\tR\tosVersion\x1a\xb1\x01\n\x07Rollout\x12Z\n\x11disruption_budget\ - \x18\x01\x20\x01(\x0b2(.google.cloud.osconfig.v1.FixedOrPercentR\x10disr\ - uptionBudgetB\x03\xe0A\x02\x12J\n\x11min_wait_duration\x18\x02\x20\x01(\ - \x0b2\x19.google.protobuf.DurationR\x0fminWaitDurationB\x03\xe0A\x02\"l\ - \n\x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\0\x12\x0f\ - \n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELL\ - ED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\x84\x01\xeaA\x80\x01\n*osconfig.g\ - oogleapis.com/OSPolicyAssignment\x12Rprojects/{project}/locations/{locat\ - ion}/osPolicyAssignments/{os_policy_assignment}\"\xb2\x05\n#OSPolicyAssi\ - gnmentOperationMetadata\x12a\n\x14os_policy_assignment\x18\x01\x20\x01(\ - \tR\x12osPolicyAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssi\ - gnment\x12f\n\napi_method\x18\x02\x20\x01(\x0e2G.google.cloud.osconfig.v\ - 1.OSPolicyAssignmentOperationMetadata.APIMethodR\tapiMethod\x12o\n\rroll\ - out_state\x18\x03\x20\x01(\x0e2J.google.cloud.osconfig.v1.OSPolicyAssign\ - mentOperationMetadata.RolloutStateR\x0crolloutState\x12H\n\x12rollout_st\ - art_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x10rollout\ - StartTime\x12J\n\x13rollout_update_time\x18\x05\x20\x01(\x0b2\x1a.google\ - .protobuf.TimestampR\x11rolloutUpdateTime\"K\n\tAPIMethod\x12\x1a\n\x16A\ - PI_METHOD_UNSPECIFIED\x10\0\x12\n\n\x06CREATE\x10\x01\x12\n\n\x06UPDATE\ - \x10\x02\x12\n\n\x06DELETE\x10\x03\"l\n\x0cRolloutState\x12\x1d\n\x19ROL\ - LOUT_STATE_UNSPECIFIED\x10\0\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\ - \nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\ - \x04\"\x85\x02\n\x1fCreateOSPolicyAssignmentRequest\x12A\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB)\xfaA#\n!locations.googleapis.com/Location\ - \xe0A\x02\x12c\n\x14os_policy_assignment\x18\x02\x20\x01(\x0b2,.google.c\ - loud.osconfig.v1.OSPolicyAssignmentR\x12osPolicyAssignmentB\x03\xe0A\x02\ - \x12:\n\x17os_policy_assignment_id\x18\x03\x20\x01(\tR\x14osPolicyAssign\ - mentIdB\x03\xe0A\x02\"\xc8\x01\n\x1fUpdateOSPolicyAssignmentRequest\x12c\ - \n\x14os_policy_assignment\x18\x01\x20\x01(\x0b2,.google.cloud.osconfig.\ - v1.OSPolicyAssignmentR\x12osPolicyAssignmentB\x03\xe0A\x02\x12@\n\x0bupd\ - ate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMas\ - kB\x03\xe0A\x01\"f\n\x1cGetOSPolicyAssignmentRequest\x12F\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB2\xfaA,\n*osconfig.googleapis.com/OSPolicyAssig\ - nment\xe0A\x02\"\x9f\x01\n\x1eListOSPolicyAssignmentsRequest\x12A\n\x06p\ - arent\x18\x01\x20\x01(\tR\x06parentB)\xfaA#\n!locations.googleapis.com/L\ - ocation\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\ - \x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\xab\x01\n\x1fLis\ - tOSPolicyAssignmentsResponse\x12`\n\x15os_policy_assignments\x18\x01\x20\ - \x03(\x0b2,.google.cloud.osconfig.v1.OSPolicyAssignmentR\x13osPolicyAssi\ - gnments\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\ - \xac\x01\n&ListOSPolicyAssignmentRevisionsRequest\x12F\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB2\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignmen\ - t\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\ - \x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\xb3\x01\n'ListOSPoli\ - cyAssignmentRevisionsResponse\x12`\n\x15os_policy_assignments\x18\x01\ - \x20\x03(\x0b2,.google.cloud.osconfig.v1.OSPolicyAssignmentR\x13osPolicy\ - Assignments\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\ - \"i\n\x1fDeleteOSPolicyAssignmentRequest\x12F\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB2\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignment\xe0A\ - \x02B\xc8\x01\n\x1ccom.google.cloud.osconfig.v1B\x18OsPolicyAssignmentsP\ - rotoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\ - \x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\ - \xea\x02\x1bGoogle::Cloud::OsConfig::V1J\x89e\n\x07\x12\x05\x0e\0\x81\ - \x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20\ - 2021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ - se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ - \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ - License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ - \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ - \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\ - \n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\ - \x03\x02\x12\x03\x14\02\n\t\n\x02\x03\x03\x12\x03\x15\08\n\t\n\x02\x03\ - \x04\x12\x03\x16\0(\n\t\n\x02\x03\x05\x12\x03\x17\0*\n\t\n\x02\x03\x06\ - \x12\x03\x18\0)\n\x08\n\x01\x08\x12\x03\x1a\05\n\t\n\x02\x08%\x12\x03\ - \x1a\05\n\x08\n\x01\x08\x12\x03\x1b\0O\n\t\n\x02\x08\x0b\x12\x03\x1b\0O\ - \n\x08\n\x01\x08\x12\x03\x1c\0\"\n\t\n\x02\x08\n\x12\x03\x1c\0\"\n\x08\n\ - \x01\x08\x12\x03\x1d\09\n\t\n\x02\x08\x08\x12\x03\x1d\09\n\x08\n\x01\x08\ - \x12\x03\x1e\05\n\t\n\x02\x08\x01\x12\x03\x1e\05\n\x08\n\x01\x08\x12\x03\ - \x1f\05\n\t\n\x02\x08)\x12\x03\x1f\05\n\x08\n\x01\x08\x12\x03\x20\04\n\t\ - \n\x02\x08-\x12\x03\x20\04\n\xb4\x04\n\x02\x04\0\x12\x05-\0\xd0\x01\x01\ - \x1a\xa6\x04\x20OS\x20policy\x20assignment\x20is\x20an\x20API\x20resourc\ - e\x20that\x20is\x20used\x20to\n\x20apply\x20a\x20set\x20of\x20OS\x20poli\ - cies\x20to\x20a\x20dynamically\x20targeted\x20group\x20of\x20Compute\x20\ - Engine\n\x20VM\x20instances.\n\n\x20An\x20OS\x20policy\x20is\x20used\x20\ - to\x20define\x20the\x20desired\x20state\x20configuration\x20for\x20a\n\ - \x20Compute\x20Engine\x20VM\x20instance\x20through\x20a\x20set\x20of\x20\ - configuration\x20resources\x20that\n\x20provide\x20capabilities\x20such\ - \x20as\x20installing\x20or\x20removing\x20software\x20packages,\x20or\n\ - \x20executing\x20a\x20script.\n\n\x20For\x20more\x20information,\x20see\ - \x20[OS\x20policy\x20and\x20OS\x20policy\n\x20assignment](https://cloud.\ - google.com/compute/docs/os-configuration-management/working-with-os-poli\ - cies).\n\n\n\n\x03\x04\0\x01\x12\x03-\x08\x1a\n\x0b\n\x03\x04\0\x07\x12\ - \x04.\x021\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04.\x021\x04\n\xaf\x03\n\ - \x04\x04\0\x03\0\x12\x04<\x02A\x03\x1a\xa0\x03\x20Message\x20representin\ - g\x20label\x20set.\n\x20*\x20A\x20label\x20is\x20a\x20key\x20value\x20pa\ - ir\x20set\x20for\x20a\x20VM.\n\x20*\x20A\x20LabelSet\x20is\x20a\x20set\ - \x20of\x20labels.\n\x20*\x20Labels\x20within\x20a\x20LabelSet\x20are\x20\ - ANDed.\x20In\x20other\x20words,\x20a\x20LabelSet\x20is\n\x20\x20\x20appl\ - icable\x20for\x20a\x20VM\x20only\x20if\x20it\x20matches\x20all\x20the\ - \x20labels\x20in\x20the\n\x20\x20\x20LabelSet.\n\x20*\x20Example:\x20A\ - \x20LabelSet\x20with\x202\x20labels:\x20`env=prod`\x20and\x20`type=webse\ - rver`\x20will\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20only\x20b\ - e\x20applicable\x20for\x20those\x20VMs\x20with\x20both\x20labels\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20present.\n\n\x0c\n\x05\x04\0\ - \x03\0\x01\x12\x03<\n\x12\n\x9b\x01\n\x06\x04\0\x03\0\x02\0\x12\x03@\x04\ - #\x1a\x8b\x01\x20Labels\x20are\x20identified\x20by\x20key/value\x20pairs\ - \x20in\x20this\x20map.\n\x20A\x20VM\x20should\x20contain\x20all\x20the\ - \x20key/value\x20pairs\x20specified\x20in\x20this\n\x20map\x20to\x20be\ - \x20selected.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03@\x04\x17\n\x0e\ - \n\x07\x04\0\x03\0\x02\0\x01\x12\x03@\x18\x1e\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x03\x12\x03@!\"\n\xb7\x01\n\x04\x04\0\x03\x01\x12\x04G\x02l\x03\ - \x1a\xa8\x01\x20Filters\x20to\x20select\x20target\x20VMs\x20for\x20an\ - \x20assignment.\n\n\x20If\x20more\x20than\x20one\x20filter\x20criteria\ - \x20is\x20specified\x20below,\x20a\x20VM\x20will\x20be\x20selected\n\x20\ - if\x20and\x20only\x20if\x20it\x20satisfies\x20all\x20of\x20them.\n\n\x0c\ - \n\x05\x04\0\x03\x01\x01\x12\x03G\n\x18\n'\n\x06\x04\0\x03\x01\x03\0\x12\ - \x04I\x04U\x05\x1a\x17\x20VM\x20inventory\x20details.\n\n\x0e\n\x07\x04\ - \0\x03\x01\x03\0\x01\x12\x03I\x0c\x15\n.\n\x08\x04\0\x03\x01\x03\0\x02\0\ - \x12\x03K\x06H\x1a\x1d\x20Required.\x20The\x20OS\x20short\x20name\n\n\ - \x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03K\x06\x0c\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\0\x01\x12\x03K\r\x1a\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\0\x03\x12\x03K\x1d\x1e\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x08\x12\ - \x03K\x1fG\n\x13\n\x0c\x04\0\x03\x01\x03\0\x02\0\x08\x9c\x08\0\x12\x03K\ - \x20F\n\x91\x02\n\x08\x04\0\x03\x01\x03\0\x02\x01\x12\x03T\x06\x1c\x1a\ - \xff\x01\x20The\x20OS\x20version\n\n\x20Prefix\x20matches\x20are\x20supp\ - orted\x20if\x20asterisk(*)\x20is\x20provided\x20as\x20the\n\x20last\x20c\ - haracter.\x20For\x20example,\x20to\x20match\x20all\x20versions\x20with\ - \x20a\x20major\n\x20version\x20of\x20`7`,\x20specify\x20the\x20following\ - \x20value\x20for\x20this\x20field\x20`7.*`\n\n\x20An\x20empty\x20string\ - \x20matches\x20all\x20OS\x20versions.\n\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\x01\x05\x12\x03T\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x01\ - \x12\x03T\r\x17\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x03\x12\x03T\x1a\ - \x1b\nY\n\x06\x04\0\x03\x01\x02\0\x12\x03Y\x04\x11\x1aJ\x20Target\x20all\ - \x20VMs\x20in\x20the\x20project.\x20If\x20true,\x20no\x20other\x20criter\ - ia\x20is\n\x20permitted.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\x03Y\ - \x04\x08\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03Y\t\x0c\n\x0e\n\x07\ - \x04\0\x03\x01\x02\0\x03\x12\x03Y\x0f\x10\n\xaf\x01\n\x06\x04\0\x03\x01\ - \x02\x01\x12\x03_\x04+\x1a\x9f\x01\x20List\x20of\x20label\x20sets\x20use\ - d\x20for\x20VM\x20inclusion.\n\n\x20If\x20the\x20list\x20has\x20more\x20\ - than\x20one\x20`LabelSet`,\x20the\x20VM\x20is\x20included\x20if\x20any\n\ - \x20of\x20the\x20label\x20sets\x20are\x20applicable\x20for\x20the\x20VM.\ - \n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x03_\x04\x0c\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x01\x06\x12\x03_\r\x15\n\x0e\n\x07\x04\0\x03\x01\x02\ - \x01\x01\x12\x03_\x16&\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03_)*\ - \n\xae\x01\n\x06\x04\0\x03\x01\x02\x02\x12\x03e\x04+\x1a\x9e\x01\x20List\ - \x20of\x20label\x20sets\x20used\x20for\x20VM\x20exclusion.\n\n\x20If\x20\ - the\x20list\x20has\x20more\x20than\x20one\x20label\x20set,\x20the\x20VM\ - \x20is\x20excluded\x20if\x20any\n\x20of\x20the\x20label\x20sets\x20are\ - \x20applicable\x20for\x20the\x20VM.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\ - \x04\x12\x03e\x04\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x06\x12\x03e\r\ - \x15\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x01\x12\x03e\x16&\n\x0e\n\x07\x04\ - \0\x03\x01\x02\x02\x03\x12\x03e)*\n\x91\x01\n\x06\x04\0\x03\x01\x02\x03\ - \x12\x03k\x04'\x1a\x81\x01\x20List\x20of\x20inventories\x20to\x20select\ - \x20VMs.\n\n\x20A\x20VM\x20is\x20selected\x20if\x20its\x20inventory\x20d\ - ata\x20matches\x20at\x20least\x20one\x20of\x20the\n\x20following\x20inve\ - ntories.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x04\x12\x03k\x04\x0c\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x03\x06\x12\x03k\r\x16\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x03\x01\x12\x03k\x17\"\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x03\ - \x12\x03k%&\nb\n\x04\x04\0\x03\x02\x12\x04p\x02}\x03\x1aT\x20Message\x20\ - to\x20configure\x20the\x20rollout\x20at\x20the\x20zonal\x20level\x20for\ - \x20the\x20OS\x20policy\n\x20assignment.\n\n\x0c\n\x05\x04\0\x03\x02\x01\ - \x12\x03p\n\x11\no\n\x06\x04\0\x03\x02\x02\0\x12\x04s\x04t1\x1a_\x20Requ\ - ired.\x20The\x20maximum\x20number\x20(or\x20percentage)\x20of\x20VMs\x20\ - per\x20zone\x20to\x20disrupt\n\x20at\x20any\x20given\x20moment.\n\n\x0e\ - \n\x07\x04\0\x03\x02\x02\0\x06\x12\x03s\x04\x12\n\x0e\n\x07\x04\0\x03\ - \x02\x02\0\x01\x12\x03s\x13$\n\x0e\n\x07\x04\0\x03\x02\x02\0\x03\x12\x03\ - s'(\n\x0e\n\x07\x04\0\x03\x02\x02\0\x08\x12\x03t\x080\n\x11\n\n\x04\0\ - \x03\x02\x02\0\x08\x9c\x08\0\x12\x03t\t/\n\xaf\x02\n\x06\x04\0\x03\x02\ - \x02\x01\x12\x04{\x04|1\x1a\x9e\x02\x20Required.\x20This\x20determines\ - \x20the\x20minimum\x20duration\x20of\x20time\x20to\x20wait\x20after\x20t\ - he\n\x20configuration\x20changes\x20are\x20applied\x20through\x20the\x20\ - current\x20rollout.\x20A\n\x20VM\x20continues\x20to\x20count\x20towards\ - \x20the\x20`disruption_budget`\x20at\x20least\n\x20until\x20this\x20dura\ - tion\x20of\x20time\x20has\x20passed\x20after\x20configuration\x20changes\ - \x20are\n\x20applied.\n\n\x0e\n\x07\x04\0\x03\x02\x02\x01\x06\x12\x03{\ - \x04\x1c\n\x0e\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x03{\x1d.\n\x0e\n\x07\ - \x04\0\x03\x02\x02\x01\x03\x12\x03{12\n\x0e\n\x07\x04\0\x03\x02\x02\x01\ - \x08\x12\x03|\x080\n\x11\n\n\x04\0\x03\x02\x02\x01\x08\x9c\x08\0\x12\x03\ - |\t/\n4\n\x04\x04\0\x04\0\x12\x06\x80\x01\x02\x8f\x01\x03\x1a$\x20OS\x20\ - policy\x20assignment\x20rollout\x20state\n\n\r\n\x05\x04\0\x04\0\x01\x12\ - \x04\x80\x01\x07\x13\n\x1f\n\x06\x04\0\x04\0\x02\0\x12\x04\x82\x01\x04\"\ - \x1a\x0f\x20Invalid\x20value\n\n\x0f\n\x07\x04\0\x04\0\x02\0\x01\x12\x04\ - \x82\x01\x04\x1d\n\x0f\n\x07\x04\0\x04\0\x02\0\x02\x12\x04\x82\x01\x20!\ - \n-\n\x06\x04\0\x04\0\x02\x01\x12\x04\x85\x01\x04\x14\x1a\x1d\x20The\x20\ - rollout\x20is\x20in\x20progress.\n\n\x0f\n\x07\x04\0\x04\0\x02\x01\x01\ - \x12\x04\x85\x01\x04\x0f\n\x0f\n\x07\x04\0\x04\0\x02\x01\x02\x12\x04\x85\ - \x01\x12\x13\n1\n\x06\x04\0\x04\0\x02\x02\x12\x04\x88\x01\x04\x13\x1a!\ - \x20The\x20rollout\x20is\x20being\x20cancelled.\n\n\x0f\n\x07\x04\0\x04\ - \0\x02\x02\x01\x12\x04\x88\x01\x04\x0e\n\x0f\n\x07\x04\0\x04\0\x02\x02\ - \x02\x12\x04\x88\x01\x11\x12\n+\n\x06\x04\0\x04\0\x02\x03\x12\x04\x8b\ - \x01\x04\x12\x1a\x1b\x20The\x20rollout\x20is\x20cancelled.\n\n\x0f\n\x07\ - \x04\0\x04\0\x02\x03\x01\x12\x04\x8b\x01\x04\r\n\x0f\n\x07\x04\0\x04\0\ - \x02\x03\x02\x12\x04\x8b\x01\x10\x11\n9\n\x06\x04\0\x04\0\x02\x04\x12\ - \x04\x8e\x01\x04\x12\x1a)\x20The\x20rollout\x20has\x20completed\x20succe\ - ssfully.\n\n\x0f\n\x07\x04\0\x04\0\x02\x04\x01\x12\x04\x8e\x01\x04\r\n\ - \x0f\n\x07\x04\0\x04\0\x02\x04\x02\x12\x04\x8e\x01\x10\x11\n\xca\x01\n\ - \x04\x04\0\x02\0\x12\x04\x97\x01\x02\x12\x1a\xbb\x01\x20Resource\x20name\ - .\n\n\x20Format:\n\x20`projects/{project_number}/locations/{location}/os\ - PolicyAssignments/{os_policy_assignment_id}`\n\n\x20This\x20field\x20is\ - \x20ignored\x20when\x20you\x20create\x20an\x20OS\x20policy\x20assignment\ - .\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x97\x01\x02\x08\n\r\n\x05\x04\0\ - \x02\0\x01\x12\x04\x97\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x97\x01\ - \x10\x11\nk\n\x04\x04\0\x02\x01\x12\x04\x9b\x01\x02\x19\x1a]\x20OS\x20po\ - licy\x20assignment\x20description.\n\x20Length\x20of\x20the\x20descripti\ - on\x20is\x20limited\x20to\x201024\x20characters.\n\n\r\n\x05\x04\0\x02\ - \x01\x05\x12\x04\x9b\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x9b\ - \x01\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x9b\x01\x17\x18\nG\n\x04\ - \x04\0\x02\x02\x12\x04\x9e\x01\x02M\x1a9\x20Required.\x20List\x20of\x20O\ - S\x20policies\x20to\x20be\x20applied\x20to\x20the\x20VMs.\n\n\r\n\x05\ - \x04\0\x02\x02\x04\x12\x04\x9e\x01\x02\n\n\r\n\x05\x04\0\x02\x02\x06\x12\ - \x04\x9e\x01\x0b\x13\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x9e\x01\x14\x1f\ - \n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x9e\x01\"#\n\r\n\x05\x04\0\x02\x02\ - \x08\x12\x04\x9e\x01$L\n\x10\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\ - \x9e\x01%K\n/\n\x04\x04\0\x02\x03\x12\x04\xa1\x01\x02N\x1a!\x20Required.\ - \x20Filter\x20to\x20select\x20VMs.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\ - \xa1\x01\x02\x10\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xa1\x01\x11\x20\n\r\ - \n\x05\x04\0\x02\x03\x03\x12\x04\xa1\x01#$\n\r\n\x05\x04\0\x02\x03\x08\ - \x12\x04\xa1\x01%M\n\x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\xa1\ - \x01&L\n\xcc\x02\n\x04\x04\0\x02\x04\x12\x04\xab\x01\x02?\x1a\xbd\x02\ - \x20Required.\x20Rollout\x20to\x20deploy\x20the\x20OS\x20policy\x20assig\ - nment.\n\x20A\x20rollout\x20is\x20triggered\x20in\x20the\x20following\ - \x20situations:\n\x201)\x20OSPolicyAssignment\x20is\x20created.\n\x202)\ - \x20OSPolicyAssignment\x20is\x20updated\x20and\x20the\x20update\x20conta\ - ins\x20changes\x20to\x20one\x20of\n\x20the\x20following\x20fields:\n\x20\ - \x20\x20\x20-\x20instance_filter\n\x20\x20\x20\x20-\x20os_policies\n\x20\ - 3)\x20OSPolicyAssignment\x20is\x20deleted.\n\n\r\n\x05\x04\0\x02\x04\x06\ - \x12\x04\xab\x01\x02\t\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xab\x01\n\x11\ - \n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xab\x01\x14\x15\n\r\n\x05\x04\0\x02\ - \x04\x08\x12\x04\xab\x01\x16>\n\x10\n\x08\x04\0\x02\x04\x08\x9c\x08\0\ - \x12\x04\xab\x01\x17=\n\x91\x01\n\x04\x04\0\x02\x05\x12\x04\xb0\x01\x02E\ - \x1a\x82\x01\x20Output\x20only.\x20The\x20assignment\x20revision\x20ID\n\ - \x20A\x20new\x20revision\x20is\x20committed\x20whenever\x20a\x20rollout\ - \x20is\x20triggered\x20for\x20a\x20OS\x20policy\n\x20assignment\n\n\r\n\ - \x05\x04\0\x02\x05\x05\x12\x04\xb0\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\ - \x01\x12\x04\xb0\x01\t\x14\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xb0\x01\ - \x17\x18\n\r\n\x05\x04\0\x02\x05\x08\x12\x04\xb0\x01\x19D\n\x10\n\x08\ - \x04\0\x02\x05\x08\x9c\x08\0\x12\x04\xb0\x01\x1aC\nK\n\x04\x04\0\x02\x06\ - \x12\x06\xb3\x01\x02\xb4\x012\x1a;\x20Output\x20only.\x20The\x20timestam\ - p\x20that\x20the\x20revision\x20was\x20created.\n\n\r\n\x05\x04\0\x02\ - \x06\x06\x12\x04\xb3\x01\x02\x1b\n\r\n\x05\x04\0\x02\x06\x01\x12\x04\xb3\ - \x01\x1c0\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xb3\x0134\n\r\n\x05\x04\0\ - \x02\x06\x08\x12\x04\xb4\x01\x061\n\x10\n\x08\x04\0\x02\x06\x08\x9c\x08\ - \0\x12\x04\xb4\x01\x070\nx\n\x04\x04\0\x02\x07\x12\x04\xb8\x01\x02\x12\ - \x1aj\x20The\x20etag\x20for\x20this\x20OS\x20policy\x20assignment.\n\x20\ - If\x20this\x20is\x20provided\x20on\x20update,\x20it\x20must\x20match\x20\ - the\x20server's\x20etag.\n\n\r\n\x05\x04\0\x02\x07\x05\x12\x04\xb8\x01\ - \x02\x08\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\xb8\x01\t\r\n\r\n\x05\x04\0\ - \x02\x07\x03\x12\x04\xb8\x01\x10\x11\n?\n\x04\x04\0\x02\x08\x12\x04\xbb\ - \x01\x02M\x1a1\x20Output\x20only.\x20OS\x20policy\x20assignment\x20rollo\ - ut\x20state\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xbb\x01\x02\x0e\n\r\n\ - \x05\x04\0\x02\x08\x01\x12\x04\xbb\x01\x0f\x1c\n\r\n\x05\x04\0\x02\x08\ - \x03\x12\x04\xbb\x01\x1f\x20\n\r\n\x05\x04\0\x02\x08\x08\x12\x04\xbb\x01\ - !L\n\x10\n\x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x04\xbb\x01\"K\n\x8d\x02\ - \n\x04\x04\0\x02\t\x12\x04\xc2\x01\x02A\x1a\xfe\x01\x20Output\x20only.\ - \x20Indicates\x20that\x20this\x20revision\x20has\x20been\x20successfully\ - \x20rolled\x20out\n\x20in\x20this\x20zone\x20and\x20new\x20VMs\x20will\ - \x20be\x20assigned\x20OS\x20policies\x20from\x20this\x20revision.\n\n\ - \x20For\x20a\x20given\x20OS\x20policy\x20assignment,\x20there\x20is\x20o\ - nly\x20one\x20revision\x20with\x20a\x20value\n\x20of\x20`true`\x20for\ - \x20this\x20field.\n\n\r\n\x05\x04\0\x02\t\x05\x12\x04\xc2\x01\x02\x06\n\ - \r\n\x05\x04\0\x02\t\x01\x12\x04\xc2\x01\x07\x0f\n\r\n\x05\x04\0\x02\t\ - \x03\x12\x04\xc2\x01\x12\x14\n\r\n\x05\x04\0\x02\t\x08\x12\x04\xc2\x01\ - \x15@\n\x10\n\x08\x04\0\x02\t\x08\x9c\x08\0\x12\x04\xc2\x01\x16?\n[\n\ - \x04\x04\0\x02\n\x12\x04\xc5\x01\x02@\x1aM\x20Output\x20only.\x20Indicat\ - es\x20that\x20this\x20revision\x20deletes\x20the\x20OS\x20policy\x20assi\ - gnment.\n\n\r\n\x05\x04\0\x02\n\x05\x12\x04\xc5\x01\x02\x06\n\r\n\x05\ - \x04\0\x02\n\x01\x12\x04\xc5\x01\x07\x0e\n\r\n\x05\x04\0\x02\n\x03\x12\ - \x04\xc5\x01\x11\x13\n\r\n\x05\x04\0\x02\n\x08\x12\x04\xc5\x01\x14?\n\ - \x10\n\x08\x04\0\x02\n\x08\x9c\x08\0\x12\x04\xc5\x01\x15>\n\xb3\x01\n\ - \x04\x04\0\x02\x0b\x12\x04\xcb\x01\x02D\x1a\xa4\x01\x20Output\x20only.\ - \x20Indicates\x20that\x20reconciliation\x20is\x20in\x20progress\x20for\ - \x20the\x20revision.\n\x20This\x20value\x20is\x20`true`\x20when\x20the\ - \x20`rollout_state`\x20is\x20one\x20of:\n\x20*\x20IN_PROGRESS\n\x20*\x20\ - CANCELLING\n\n\r\n\x05\x04\0\x02\x0b\x05\x12\x04\xcb\x01\x02\x06\n\r\n\ - \x05\x04\0\x02\x0b\x01\x12\x04\xcb\x01\x07\x12\n\r\n\x05\x04\0\x02\x0b\ - \x03\x12\x04\xcb\x01\x15\x17\n\r\n\x05\x04\0\x02\x0b\x08\x12\x04\xcb\x01\ - \x18C\n\x10\n\x08\x04\0\x02\x0b\x08\x9c\x08\0\x12\x04\xcb\x01\x19B\n_\n\ - \x04\x04\0\x02\x0c\x12\x04\xcf\x01\x02>\x1aQ\x20Output\x20only.\x20Serve\ - r\x20generated\x20unique\x20id\x20for\x20the\x20OS\x20policy\x20assignme\ - nt\n\x20resource.\n\n\r\n\x05\x04\0\x02\x0c\x05\x12\x04\xcf\x01\x02\x08\ - \n\r\n\x05\x04\0\x02\x0c\x01\x12\x04\xcf\x01\t\x0c\n\r\n\x05\x04\0\x02\ - \x0c\x03\x12\x04\xcf\x01\x0f\x11\n\r\n\x05\x04\0\x02\x0c\x08\x12\x04\xcf\ - \x01\x12=\n\x10\n\x08\x04\0\x02\x0c\x08\x9c\x08\0\x12\x04\xcf\x01\x13<\n\ - \x8a\x01\n\x02\x04\x01\x12\x06\xd4\x01\0\x89\x02\x01\x1a|\x20OS\x20polic\ - y\x20assignment\x20operation\x20metadata\x20provided\x20by\x20OS\x20poli\ - cy\x20assignment\x20API\n\x20methods\x20that\x20return\x20long\x20runnin\ - g\x20operations.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xd4\x01\x08+\n6\n\x04\ - \x04\x01\x04\0\x12\x06\xd6\x01\x02\xe2\x01\x03\x1a&\x20The\x20OS\x20poli\ - cy\x20assignment\x20API\x20method.\n\n\r\n\x05\x04\x01\x04\0\x01\x12\x04\ - \xd6\x01\x07\x10\n\x1f\n\x06\x04\x01\x04\0\x02\0\x12\x04\xd8\x01\x04\x1f\ - \x1a\x0f\x20Invalid\x20value\n\n\x0f\n\x07\x04\x01\x04\0\x02\0\x01\x12\ - \x04\xd8\x01\x04\x1a\n\x0f\n\x07\x04\x01\x04\0\x02\0\x02\x12\x04\xd8\x01\ - \x1d\x1e\n8\n\x06\x04\x01\x04\0\x02\x01\x12\x04\xdb\x01\x04\x0f\x1a(\x20\ - Create\x20OS\x20policy\x20assignment\x20API\x20method\n\n\x0f\n\x07\x04\ - \x01\x04\0\x02\x01\x01\x12\x04\xdb\x01\x04\n\n\x0f\n\x07\x04\x01\x04\0\ - \x02\x01\x02\x12\x04\xdb\x01\r\x0e\n8\n\x06\x04\x01\x04\0\x02\x02\x12\ - \x04\xde\x01\x04\x0f\x1a(\x20Update\x20OS\x20policy\x20assignment\x20API\ - \x20method\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x04\xde\x01\x04\n\ - \n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\xde\x01\r\x0e\n8\n\x06\ - \x04\x01\x04\0\x02\x03\x12\x04\xe1\x01\x04\x0f\x1a(\x20Delete\x20OS\x20p\ - olicy\x20assignment\x20API\x20method\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\ - \x01\x12\x04\xe1\x01\x04\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x04\ - \xe1\x01\r\x0e\n&\n\x04\x04\x01\x04\x01\x12\x06\xe5\x01\x02\xf4\x01\x03\ - \x1a\x16\x20State\x20of\x20the\x20rollout\n\n\r\n\x05\x04\x01\x04\x01\ - \x01\x12\x04\xe5\x01\x07\x13\n\x1f\n\x06\x04\x01\x04\x01\x02\0\x12\x04\ - \xe7\x01\x04\"\x1a\x0f\x20Invalid\x20value\n\n\x0f\n\x07\x04\x01\x04\x01\ - \x02\0\x01\x12\x04\xe7\x01\x04\x1d\n\x0f\n\x07\x04\x01\x04\x01\x02\0\x02\ - \x12\x04\xe7\x01\x20!\n-\n\x06\x04\x01\x04\x01\x02\x01\x12\x04\xea\x01\ - \x04\x14\x1a\x1d\x20The\x20rollout\x20is\x20in\x20progress.\n\n\x0f\n\ - \x07\x04\x01\x04\x01\x02\x01\x01\x12\x04\xea\x01\x04\x0f\n\x0f\n\x07\x04\ - \x01\x04\x01\x02\x01\x02\x12\x04\xea\x01\x12\x13\n1\n\x06\x04\x01\x04\ - \x01\x02\x02\x12\x04\xed\x01\x04\x13\x1a!\x20The\x20rollout\x20is\x20bei\ - ng\x20cancelled.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x02\x01\x12\x04\xed\ - \x01\x04\x0e\n\x0f\n\x07\x04\x01\x04\x01\x02\x02\x02\x12\x04\xed\x01\x11\ - \x12\n+\n\x06\x04\x01\x04\x01\x02\x03\x12\x04\xf0\x01\x04\x12\x1a\x1b\ - \x20The\x20rollout\x20is\x20cancelled.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\ - \x03\x01\x12\x04\xf0\x01\x04\r\n\x0f\n\x07\x04\x01\x04\x01\x02\x03\x02\ - \x12\x04\xf0\x01\x10\x11\n9\n\x06\x04\x01\x04\x01\x02\x04\x12\x04\xf3\ - \x01\x04\x12\x1a)\x20The\x20rollout\x20has\x20completed\x20successfully.\ - \n\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x01\x12\x04\xf3\x01\x04\r\n\x0f\n\ - \x07\x04\x01\x04\x01\x02\x04\x02\x12\x04\xf3\x01\x10\x11\n\xbc\x01\n\x04\ - \x04\x01\x02\0\x12\x06\xfa\x01\x02\xfc\x01\x05\x1a\xab\x01\x20Reference\ - \x20to\x20the\x20`OSPolicyAssignment`\x20API\x20resource.\n\n\x20Format:\ - \n\x20`projects/{project_number}/locations/{location}/osPolicyAssignment\ - s/{os_policy_assignment_id@revision_id}`\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xfa\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xfa\x01\t\ - \x1d\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xfa\x01\x20!\n\x0f\n\x05\x04\ - \x01\x02\0\x08\x12\x06\xfa\x01\"\xfc\x01\x04\n\x11\n\x07\x04\x01\x02\0\ - \x08\x9f\x08\x12\x06\xfa\x01#\xfc\x01\x03\n4\n\x04\x04\x01\x02\x01\x12\ - \x04\xff\x01\x02\x1b\x1a&\x20The\x20OS\x20policy\x20assignment\x20API\ - \x20method.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xff\x01\x02\x0b\n\r\ - \n\x05\x04\x01\x02\x01\x01\x12\x04\xff\x01\x0c\x16\n\r\n\x05\x04\x01\x02\ - \x01\x03\x12\x04\xff\x01\x19\x1a\n$\n\x04\x04\x01\x02\x02\x12\x04\x82\ - \x02\x02!\x1a\x16\x20State\x20of\x20the\x20rollout\n\n\r\n\x05\x04\x01\ - \x02\x02\x06\x12\x04\x82\x02\x02\x0e\n\r\n\x05\x04\x01\x02\x02\x01\x12\ - \x04\x82\x02\x0f\x1c\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x82\x02\x1f\ - \x20\n\"\n\x04\x04\x01\x02\x03\x12\x04\x85\x02\x023\x1a\x14\x20Rollout\ - \x20start\x20time\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\x85\x02\x02\ - \x1b\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x85\x02\x1c.\n\r\n\x05\x04\ - \x01\x02\x03\x03\x12\x04\x85\x0212\n#\n\x04\x04\x01\x02\x04\x12\x04\x88\ - \x02\x024\x1a\x15\x20Rollout\x20update\x20time\n\n\r\n\x05\x04\x01\x02\ - \x04\x06\x12\x04\x88\x02\x02\x1b\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ - \x88\x02\x1c/\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x88\x0223\nC\n\x02\ - \x04\x02\x12\x06\x8c\x02\0\xa3\x02\x01\x1a5\x20A\x20request\x20message\ - \x20to\x20create\x20an\x20OS\x20policy\x20assignment\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\x8c\x02\x08'\nj\n\x04\x04\x02\x02\0\x12\x06\x8f\x02\x02\ - \x94\x02\x04\x1aZ\x20Required.\x20The\x20parent\x20resource\x20name\x20i\ - n\x20the\x20form:\n\x20projects/{project}/locations/{location}\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\x8f\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\x8f\x02\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x8f\x02\ - \x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x8f\x02\x14\x94\x02\x03\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x90\x02\x04*\n\x11\n\x07\ - \x04\x02\x02\0\x08\x9f\x08\x12\x06\x91\x02\x04\x93\x02\x05\nC\n\x04\x04\ - \x02\x02\x01\x12\x06\x97\x02\x02\x98\x02/\x1a3\x20Required.\x20The\x20OS\ - \x20policy\x20assignment\x20to\x20be\x20created.\n\n\r\n\x05\x04\x02\x02\ - \x01\x06\x12\x04\x97\x02\x02\x14\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ - \x97\x02\x15)\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x97\x02,-\n\r\n\x05\ - \x04\x02\x02\x01\x08\x12\x04\x98\x02\x06.\n\x10\n\x08\x04\x02\x02\x01\ - \x08\x9c\x08\0\x12\x04\x98\x02\x07-\n\xc5\x02\n\x04\x04\x02\x02\x02\x12\ - \x04\xa2\x02\x02N\x1a\xb6\x02\x20Required.\x20The\x20logical\x20name\x20\ - of\x20the\x20OS\x20policy\x20assignment\x20in\x20the\x20project\n\x20wit\ - h\x20the\x20following\x20restrictions:\n\n\x20*\x20Must\x20contain\x20on\ - ly\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.\n\x20*\x20Mus\ - t\x20start\x20with\x20a\x20letter.\n\x20*\x20Must\x20be\x20between\x201-\ - 63\x20characters.\n\x20*\x20Must\x20end\x20with\x20a\x20number\x20or\x20\ - a\x20letter.\n\x20*\x20Must\x20be\x20unique\x20within\x20the\x20project.\ - \n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\ - \x02\x02\x02\x01\x12\x04\xa2\x02\t\x20\n\r\n\x05\x04\x02\x02\x02\x03\x12\ - \x04\xa2\x02#$\n\r\n\x05\x04\x02\x02\x02\x08\x12\x04\xa2\x02%M\n\x10\n\ - \x08\x04\x02\x02\x02\x08\x9c\x08\0\x12\x04\xa2\x02&L\nC\n\x02\x04\x03\ - \x12\x06\xa6\x02\0\xaf\x02\x01\x1a5\x20A\x20request\x20message\x20to\x20\ - update\x20an\x20OS\x20policy\x20assignment\n\n\x0b\n\x03\x04\x03\x01\x12\ - \x04\xa6\x02\x08'\n=\n\x04\x04\x03\x02\0\x12\x06\xa8\x02\x02\xa9\x02/\ - \x1a-\x20Required.\x20The\x20updated\x20OS\x20policy\x20assignment.\n\n\ - \r\n\x05\x04\x03\x02\0\x06\x12\x04\xa8\x02\x02\x14\n\r\n\x05\x04\x03\x02\ - \0\x01\x12\x04\xa8\x02\x15)\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa8\x02,\ - -\n\r\n\x05\x04\x03\x02\0\x08\x12\x04\xa9\x02\x06.\n\x10\n\x08\x04\x03\ - \x02\0\x08\x9c\x08\0\x12\x04\xa9\x02\x07-\ng\n\x04\x04\x03\x02\x01\x12\ - \x06\xad\x02\x02\xae\x02/\x1aW\x20Optional.\x20Field\x20mask\x20that\x20\ - controls\x20which\x20fields\x20of\x20the\x20assignment\x20should\x20be\n\ - \x20updated.\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\xad\x02\x02\x1b\n\r\ - \n\x05\x04\x03\x02\x01\x01\x12\x04\xad\x02\x1c'\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\xad\x02*+\n\r\n\x05\x04\x03\x02\x01\x08\x12\x04\xae\x02\ - \x06.\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\x08\0\x12\x04\xae\x02\x07-\n@\ - \n\x02\x04\x04\x12\x06\xb2\x02\0\xbd\x02\x01\x1a2\x20A\x20request\x20mes\ - sage\x20to\x20get\x20an\x20OS\x20policy\x20assignment\n\n\x0b\n\x03\x04\ - \x04\x01\x12\x04\xb2\x02\x08$\n\xb4\x01\n\x04\x04\x04\x02\0\x12\x06\xb7\ - \x02\x02\xbc\x02\x04\x1a\xa3\x01\x20Required.\x20The\x20resource\x20name\ - \x20of\x20OS\x20policy\x20assignment.\n\n\x20Format:\n\x20`projects/{pro\ - ject}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{r\ - evisionId}`\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xb7\x02\x02\x08\n\r\n\ - \x05\x04\x04\x02\0\x01\x12\x04\xb7\x02\t\r\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\xb7\x02\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xb7\x02\ - \x12\xbc\x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xb8\x02\ - \x04*\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xb9\x02\x04\xbb\x02\ - \x05\nU\n\x02\x04\x05\x12\x06\xc0\x02\0\xd0\x02\x01\x1aG\x20A\x20request\ - \x20message\x20to\x20list\x20OS\x20policy\x20assignments\x20for\x20a\x20\ - parent\x20resource\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xc0\x02\x08&\n5\n\ - \x04\x04\x05\x02\0\x12\x06\xc2\x02\x02\xc7\x02\x04\x1a%\x20Required.\x20\ - The\x20parent\x20resource\x20name.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ - \xc2\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xc2\x02\t\x0f\n\r\n\ - \x05\x04\x05\x02\0\x03\x12\x04\xc2\x02\x12\x13\n\x0f\n\x05\x04\x05\x02\0\ - \x08\x12\x06\xc2\x02\x14\xc7\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ - \x08\0\x12\x04\xc3\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ - \x06\xc4\x02\x04\xc6\x02\x05\n<\n\x04\x04\x05\x02\x01\x12\x04\xca\x02\ - \x02\x16\x1a.\x20The\x20maximum\x20number\x20of\x20assignments\x20to\x20\ - return.\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xca\x02\x02\x07\n\r\n\ - \x05\x04\x05\x02\x01\x01\x12\x04\xca\x02\x08\x11\n\r\n\x05\x04\x05\x02\ - \x01\x03\x12\x04\xca\x02\x14\x15\n\x98\x01\n\x04\x04\x05\x02\x02\x12\x04\ - \xcf\x02\x02\x18\x1a\x89\x01\x20A\x20pagination\x20token\x20returned\x20\ - from\x20a\x20previous\x20call\x20to\n\x20`ListOSPolicyAssignments`\x20th\ - at\x20indicates\x20where\x20this\x20listing\x20should\x20continue\n\x20f\ - rom.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xcf\x02\x02\x08\n\r\n\x05\ - \x04\x05\x02\x02\x01\x12\x04\xcf\x02\t\x13\n\r\n\x05\x04\x05\x02\x02\x03\ - \x12\x04\xcf\x02\x16\x17\nR\n\x02\x04\x06\x12\x06\xd3\x02\0\xd9\x02\x01\ - \x1aD\x20A\x20response\x20message\x20for\x20listing\x20all\x20assignment\ - s\x20under\x20given\x20parent.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xd3\x02\ - \x08'\n'\n\x04\x04\x06\x02\0\x12\x04\xd5\x02\x028\x1a\x19\x20The\x20list\ - \x20of\x20assignments\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xd5\x02\x02\ - \n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xd5\x02\x0b\x1d\n\r\n\x05\x04\x06\ - \x02\0\x01\x12\x04\xd5\x02\x1e3\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xd5\ - \x0267\nX\n\x04\x04\x06\x02\x01\x12\x04\xd8\x02\x02\x1d\x1aJ\x20The\x20p\ - agination\x20token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20OS\ - \x20policy\x20assignments.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xd8\ - \x02\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xd8\x02\t\x18\n\r\n\ - \x05\x04\x06\x02\x01\x03\x12\x04\xd8\x02\x1b\x1c\nN\n\x02\x04\x07\x12\ - \x06\xdc\x02\0\xec\x02\x01\x1a@\x20A\x20request\x20message\x20to\x20list\ - \x20revisions\x20for\x20a\x20OS\x20policy\x20assignment\n\n\x0b\n\x03\ - \x04\x07\x01\x12\x04\xdc\x02\x08.\nW\n\x04\x04\x07\x02\0\x12\x06\xde\x02\ - \x02\xe3\x02\x04\x1aG\x20Required.\x20The\x20name\x20of\x20the\x20OS\x20\ - policy\x20assignment\x20to\x20list\x20revisions\x20for.\n\n\r\n\x05\x04\ - \x07\x02\0\x05\x12\x04\xde\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\ - \x04\xde\x02\t\r\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xde\x02\x10\x11\n\ - \x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xde\x02\x12\xe3\x02\x03\n\x10\n\x08\ - \x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xdf\x02\x04*\n\x11\n\x07\x04\x07\ - \x02\0\x08\x9f\x08\x12\x06\xe0\x02\x04\xe2\x02\x05\n:\n\x04\x04\x07\x02\ - \x01\x12\x04\xe6\x02\x02\x16\x1a,\x20The\x20maximum\x20number\x20of\x20r\ - evisions\x20to\x20return.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xe6\ - \x02\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xe6\x02\x08\x11\n\r\n\ - \x05\x04\x07\x02\x01\x03\x12\x04\xe6\x02\x14\x15\n\xa0\x01\n\x04\x04\x07\ - \x02\x02\x12\x04\xeb\x02\x02\x18\x1a\x91\x01\x20A\x20pagination\x20token\ - \x20returned\x20from\x20a\x20previous\x20call\x20to\n\x20`ListOSPolicyAs\ - signmentRevisions`\x20that\x20indicates\x20where\x20this\x20listing\x20s\ - hould\n\x20continue\x20from.\n\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xeb\ - \x02\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xeb\x02\t\x13\n\r\n\ - \x05\x04\x07\x02\x02\x03\x12\x04\xeb\x02\x16\x17\nX\n\x02\x04\x08\x12\ - \x06\xef\x02\0\xf6\x02\x01\x1aJ\x20A\x20response\x20message\x20for\x20li\ - sting\x20all\x20revisions\x20for\x20a\x20OS\x20policy\x20assignment.\n\n\ - \x0b\n\x03\x04\x08\x01\x12\x04\xef\x02\x08/\n2\n\x04\x04\x08\x02\0\x12\ - \x04\xf1\x02\x028\x1a$\x20The\x20OS\x20policy\x20assignment\x20revisions\ - \n\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\xf1\x02\x02\n\n\r\n\x05\x04\x08\ - \x02\0\x06\x12\x04\xf1\x02\x0b\x1d\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\ - \xf1\x02\x1e3\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf1\x0267\nb\n\x04\x04\ - \x08\x02\x01\x12\x04\xf5\x02\x02\x1d\x1aT\x20The\x20pagination\x20token\ - \x20to\x20retrieve\x20the\x20next\x20page\x20of\x20OS\x20policy\x20assig\ - nment\n\x20revisions.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xf5\x02\ - \x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xf5\x02\t\x18\n\r\n\x05\ - \x04\x08\x02\x01\x03\x12\x04\xf5\x02\x1b\x1c\nF\n\x02\x04\t\x12\x06\xf9\ - \x02\0\x81\x03\x01\x1a8\x20A\x20request\x20message\x20for\x20deleting\ - \x20a\x20OS\x20policy\x20assignment.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xf9\ - \x02\x08'\nN\n\x04\x04\t\x02\0\x12\x06\xfb\x02\x02\x80\x03\x04\x1a>\x20R\ - equired.\x20The\x20name\x20of\x20the\x20OS\x20policy\x20assignment\x20to\ - \x20be\x20deleted\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xfb\x02\x02\x08\n\ - \r\n\x05\x04\t\x02\0\x01\x12\x04\xfb\x02\t\r\n\r\n\x05\x04\t\x02\0\x03\ - \x12\x04\xfb\x02\x10\x11\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xfb\x02\x12\ - \x80\x03\x03\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xfc\x02\x04*\ - \n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\x12\x06\xfd\x02\x04\xff\x02\x05b\ - \x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/osconfig_common.rs b/googleapis-raw/src/cloud/osconfig/v1/osconfig_common.rs deleted file mode 100644 index 5851e6b..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/osconfig_common.rs +++ /dev/null @@ -1,296 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/osconfig_common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct FixedOrPercent { - // message oneof groups - pub mode: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FixedOrPercent { - fn default() -> &'a FixedOrPercent { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum FixedOrPercent_oneof_mode { - fixed(i32), - percent(i32), -} - -impl FixedOrPercent { - pub fn new() -> FixedOrPercent { - ::std::default::Default::default() - } - - // int32 fixed = 1; - - - pub fn get_fixed(&self) -> i32 { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(v)) => v, - _ => 0, - } - } - pub fn clear_fixed(&mut self) { - self.mode = ::std::option::Option::None; - } - - pub fn has_fixed(&self) -> bool { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_fixed(&mut self, v: i32) { - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(v)) - } - - // int32 percent = 2; - - - pub fn get_percent(&self) -> i32 { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(v)) => v, - _ => 0, - } - } - pub fn clear_percent(&mut self) { - self.mode = ::std::option::Option::None; - } - - pub fn has_percent(&self) -> bool { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_percent(&mut self, v: i32) { - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(v)) - } -} - -impl ::protobuf::Message for FixedOrPercent { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(is.read_int32()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(is.read_int32()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.mode { - match v { - &FixedOrPercent_oneof_mode::fixed(v) => { - my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); - }, - &FixedOrPercent_oneof_mode::percent(v) => { - my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.mode { - match v { - &FixedOrPercent_oneof_mode::fixed(v) => { - os.write_int32(1, v)?; - }, - &FixedOrPercent_oneof_mode::percent(v) => { - os.write_int32(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FixedOrPercent { - FixedOrPercent::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "fixed", - FixedOrPercent::has_fixed, - FixedOrPercent::get_fixed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "percent", - FixedOrPercent::has_percent, - FixedOrPercent::get_percent, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FixedOrPercent", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FixedOrPercent { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FixedOrPercent::new) - } -} - -impl ::protobuf::Clear for FixedOrPercent { - fn clear(&mut self) { - self.mode = ::std::option::Option::None; - self.mode = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FixedOrPercent { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FixedOrPercent { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n.google/cloud/osconfig/v1/osconfig_common.proto\x12\x18google.cloud.os\ - config.v1\"L\n\x0eFixedOrPercent\x12\x16\n\x05fixed\x18\x01\x20\x01(\x05\ - H\0R\x05fixed\x12\x1a\n\x07percent\x18\x02\x20\x01(\x05H\0R\x07percentB\ - \x06\n\x04modeB\xb4\x01\n\x1ccom.google.cloud.osconfig.v1B\x06CommonZ8cl\ - oud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google\ - .Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoo\ - gle::Cloud::OsConfig::V1J\xf8\x08\n\x06\x12\x04\x0e\0%\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\x08\n\x01\x08\x12\x03\ - \x12\05\n\t\n\x02\x08%\x12\x03\x12\05\n\x08\n\x01\x08\x12\x03\x13\0O\n\t\ - \n\x02\x08\x0b\x12\x03\x13\0O\n\x08\n\x01\x08\x12\x03\x14\0'\n\t\n\x02\ - \x08\x08\x12\x03\x14\0'\n\x08\n\x01\x08\x12\x03\x15\05\n\t\n\x02\x08\x01\ - \x12\x03\x15\05\n\x08\n\x01\x08\x12\x03\x16\05\n\t\n\x02\x08)\x12\x03\ - \x16\05\n\x08\n\x01\x08\x12\x03\x17\04\n\t\n\x02\x08-\x12\x03\x17\04\nv\ - \n\x02\x04\0\x12\x04\x1b\0%\x01\x1aj\x20Message\x20encapsulating\x20a\ - \x20value\x20that\x20can\x20be\x20either\x20absolute\x20(\"fixed\")\x20o\ - r\n\x20relative\x20(\"percent\")\x20to\x20a\x20value.\n\n\n\n\x03\x04\0\ - \x01\x12\x03\x1b\x08\x16\n\"\n\x04\x04\0\x08\0\x12\x04\x1d\x02$\x03\x1a\ - \x14\x20Type\x20of\x20the\x20value.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\ - \x03\x1d\x08\x0c\n'\n\x04\x04\0\x02\0\x12\x03\x1f\x04\x14\x1a\x1a\x20Spe\ - cifies\x20a\x20fixed\x20value.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1f\ - \x04\t\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1f\n\x0f\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03\x1f\x12\x13\nt\n\x04\x04\0\x02\x01\x12\x03#\x04\x16\ - \x1ag\x20Specifies\x20the\x20relative\x20value\x20defined\x20as\x20a\x20\ - percentage,\x20which\x20will\x20be\n\x20multiplied\x20by\x20a\x20referen\ - ce\x20value.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03#\x04\t\n\x0c\n\x05\ - \x04\0\x02\x01\x01\x12\x03#\n\x11\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03#\ - \x14\x15b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/osconfig_service.rs b/googleapis-raw/src/cloud/osconfig/v1/osconfig_service.rs deleted file mode 100644 index a642c90..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/osconfig_service.rs +++ /dev/null @@ -1,201 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/osconfig_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n/google/cloud/osconfig/v1/osconfig_service.proto\x12\x18google.cloud.o\ - sconfig.v1\x1a\x17google/api/client.proto\x1a\x19google/api/resource.pro\ - to\x1a0google/cloud/osconfig/v1/patch_deployments.proto\x1a)google/cloud\ - /osconfig/v1/patch_jobs.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1c\ - google/api/annotations.proto2\xac\x12\n\x0fOsConfigService\x12\x9d\x01\n\ - \x0fExecutePatchJob\x120.google.cloud.osconfig.v1.ExecutePatchJobRequest\ - \x1a\".google.cloud.osconfig.v1.PatchJob\"4\x82\xd3\xe4\x93\x02.\")/v1/{\ - parent=projects/*}/patchJobs:execute:\x01*\x12\x91\x01\n\x0bGetPatchJob\ - \x12,.google.cloud.osconfig.v1.GetPatchJobRequest\x1a\".google.cloud.osc\ - onfig.v1.PatchJob\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/patch\ - Jobs/*}\xdaA\x04name\x12\x9a\x01\n\x0eCancelPatchJob\x12/.google.cloud.o\ - sconfig.v1.CancelPatchJobRequest\x1a\".google.cloud.osconfig.v1.PatchJob\ - \"3\x82\xd3\xe4\x93\x02-\"(/v1/{name=projects/*/patchJobs/*}:cancel:\x01\ - *\x12\xa4\x01\n\rListPatchJobs\x12..google.cloud.osconfig.v1.ListPatchJo\ - bsRequest\x1a/.google.cloud.osconfig.v1.ListPatchJobsResponse\"2\x82\xd3\ - \xe4\x93\x02#\x12!/v1/{parent=projects/*}/patchJobs\xdaA\x06parent\x12\ - \xe0\x01\n\x1bListPatchJobInstanceDetails\x12<.google.cloud.osconfig.v1.\ - ListPatchJobInstanceDetailsRequest\x1a=.google.cloud.osconfig.v1.ListPat\ - chJobInstanceDetailsResponse\"D\x82\xd3\xe4\x93\x025\x123/v1/{parent=pro\ - jects/*/patchJobs/*}/instanceDetails\xdaA\x06parent\x12\xec\x01\n\x15Cre\ - atePatchDeployment\x126.google.cloud.osconfig.v1.CreatePatchDeploymentRe\ - quest\x1a).google.cloud.osconfig.v1.PatchDeployment\"p\x82\xd3\xe4\x93\ - \x02<\"(/v1/{parent=projects/*}/patchDeployments:\x10patch_deployment\ - \xdaA+parent,patch_deployment,patch_deployment_id\x12\xad\x01\n\x12GetPa\ - tchDeployment\x123.google.cloud.osconfig.v1.GetPatchDeploymentRequest\ - \x1a).google.cloud.osconfig.v1.PatchDeployment\"7\x82\xd3\xe4\x93\x02*\ - \x12(/v1/{name=projects/*/patchDeployments/*}\xdaA\x04name\x12\xc0\x01\n\ - \x14ListPatchDeployments\x125.google.cloud.osconfig.v1.ListPatchDeployme\ - ntsRequest\x1a6.google.cloud.osconfig.v1.ListPatchDeploymentsResponse\"9\ - \x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*}/patchDeployments\xdaA\ - \x06parent\x12\xa0\x01\n\x15DeletePatchDeployment\x126.google.cloud.osco\ - nfig.v1.DeletePatchDeploymentRequest\x1a\x16.google.protobuf.Empty\"7\ - \x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/patchDeployments/*}\xdaA\x04\ - name\x12\xee\x01\n\x15UpdatePatchDeployment\x126.google.cloud.osconfig.v\ - 1.UpdatePatchDeploymentRequest\x1a).google.cloud.osconfig.v1.PatchDeploy\ - ment\"r\x82\xd3\xe4\x93\x02M29/v1/{patch_deployment.name=projects/*/patc\ - hDeployments/*}:\x10patch_deployment\xdaA\x1cpatch_deployment,update_mas\ - k\x12\xba\x01\n\x14PausePatchDeployment\x125.google.cloud.osconfig.v1.Pa\ - usePatchDeploymentRequest\x1a).google.cloud.osconfig.v1.PatchDeployment\ - \"@\x82\xd3\xe4\x93\x023\"./v1/{name=projects/*/patchDeployments/*}:paus\ - e:\x01*\xdaA\x04name\x12\xbd\x01\n\x15ResumePatchDeployment\x126.google.\ - cloud.osconfig.v1.ResumePatchDeploymentRequest\x1a).google.cloud.osconfi\ - g.v1.PatchDeployment\"A\x82\xd3\xe4\x93\x024\"//v1/{name=projects/*/patc\ - hDeployments/*}:resume:\x01*\xdaA\x04name\x1aK\xd2A.https://www.googleap\ - is.com/auth/cloud-platform\xcaA\x17osconfig.googleapis.comB\xd4\x02\n\ - \x1ccom.google.cloud.osconfig.v1B\rOsConfigProtoZ8cloud.google.com/go/os\ - config/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\ - \xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConf\ - ig::V1\xeaA\x95\x01\n\x1fcompute.googleapis.com/Instance\x124projects/{p\ - roject}/zones/{zone}/instances/{instance}\x12 = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/osconfig_service_grpc.rs b/googleapis-raw/src/cloud/osconfig/v1/osconfig_service_grpc.rs deleted file mode 100644 index 381badb..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/osconfig_service_grpc.rs +++ /dev/null @@ -1,401 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_OS_CONFIG_SERVICE_EXECUTE_PATCH_JOB: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/ExecutePatchJob", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_GET_PATCH_JOB: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/GetPatchJob", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_CANCEL_PATCH_JOB: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/CancelPatchJob", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOBS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobs", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOB_INSTANCE_DETAILS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/ListPatchJobInstanceDetails", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_CREATE_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/CreatePatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_GET_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/GetPatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_LIST_PATCH_DEPLOYMENTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/ListPatchDeployments", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_DELETE_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/DeletePatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_UPDATE_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/UpdatePatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_PAUSE_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/PausePatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_SERVICE_RESUME_PATCH_DEPLOYMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigService/ResumePatchDeployment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct OsConfigServiceClient { - pub client: ::grpcio::Client, -} - -impl OsConfigServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - OsConfigServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn execute_patch_job_opt(&self, req: &super::patch_jobs::ExecutePatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_EXECUTE_PATCH_JOB, req, opt) - } - - pub fn execute_patch_job(&self, req: &super::patch_jobs::ExecutePatchJobRequest) -> ::grpcio::Result { - self.execute_patch_job_opt(req, ::grpcio::CallOption::default()) - } - - pub fn execute_patch_job_async_opt(&self, req: &super::patch_jobs::ExecutePatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_EXECUTE_PATCH_JOB, req, opt) - } - - pub fn execute_patch_job_async(&self, req: &super::patch_jobs::ExecutePatchJobRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.execute_patch_job_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_patch_job_opt(&self, req: &super::patch_jobs::GetPatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_JOB, req, opt) - } - - pub fn get_patch_job(&self, req: &super::patch_jobs::GetPatchJobRequest) -> ::grpcio::Result { - self.get_patch_job_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_patch_job_async_opt(&self, req: &super::patch_jobs::GetPatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_JOB, req, opt) - } - - pub fn get_patch_job_async(&self, req: &super::patch_jobs::GetPatchJobRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_patch_job_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn cancel_patch_job_opt(&self, req: &super::patch_jobs::CancelPatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_CANCEL_PATCH_JOB, req, opt) - } - - pub fn cancel_patch_job(&self, req: &super::patch_jobs::CancelPatchJobRequest) -> ::grpcio::Result { - self.cancel_patch_job_opt(req, ::grpcio::CallOption::default()) - } - - pub fn cancel_patch_job_async_opt(&self, req: &super::patch_jobs::CancelPatchJobRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_CANCEL_PATCH_JOB, req, opt) - } - - pub fn cancel_patch_job_async(&self, req: &super::patch_jobs::CancelPatchJobRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.cancel_patch_job_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_jobs_opt(&self, req: &super::patch_jobs::ListPatchJobsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOBS, req, opt) - } - - pub fn list_patch_jobs(&self, req: &super::patch_jobs::ListPatchJobsRequest) -> ::grpcio::Result { - self.list_patch_jobs_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_jobs_async_opt(&self, req: &super::patch_jobs::ListPatchJobsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOBS, req, opt) - } - - pub fn list_patch_jobs_async(&self, req: &super::patch_jobs::ListPatchJobsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_patch_jobs_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_job_instance_details_opt(&self, req: &super::patch_jobs::ListPatchJobInstanceDetailsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOB_INSTANCE_DETAILS, req, opt) - } - - pub fn list_patch_job_instance_details(&self, req: &super::patch_jobs::ListPatchJobInstanceDetailsRequest) -> ::grpcio::Result { - self.list_patch_job_instance_details_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_job_instance_details_async_opt(&self, req: &super::patch_jobs::ListPatchJobInstanceDetailsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOB_INSTANCE_DETAILS, req, opt) - } - - pub fn list_patch_job_instance_details_async(&self, req: &super::patch_jobs::ListPatchJobInstanceDetailsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_patch_job_instance_details_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_patch_deployment_opt(&self, req: &super::patch_deployments::CreatePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_CREATE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn create_patch_deployment(&self, req: &super::patch_deployments::CreatePatchDeploymentRequest) -> ::grpcio::Result { - self.create_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_patch_deployment_async_opt(&self, req: &super::patch_deployments::CreatePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_CREATE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn create_patch_deployment_async(&self, req: &super::patch_deployments::CreatePatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_patch_deployment_opt(&self, req: &super::patch_deployments::GetPatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_DEPLOYMENT, req, opt) - } - - pub fn get_patch_deployment(&self, req: &super::patch_deployments::GetPatchDeploymentRequest) -> ::grpcio::Result { - self.get_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_patch_deployment_async_opt(&self, req: &super::patch_deployments::GetPatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_DEPLOYMENT, req, opt) - } - - pub fn get_patch_deployment_async(&self, req: &super::patch_deployments::GetPatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_deployments_opt(&self, req: &super::patch_deployments::ListPatchDeploymentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_DEPLOYMENTS, req, opt) - } - - pub fn list_patch_deployments(&self, req: &super::patch_deployments::ListPatchDeploymentsRequest) -> ::grpcio::Result { - self.list_patch_deployments_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_patch_deployments_async_opt(&self, req: &super::patch_deployments::ListPatchDeploymentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_DEPLOYMENTS, req, opt) - } - - pub fn list_patch_deployments_async(&self, req: &super::patch_deployments::ListPatchDeploymentsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_patch_deployments_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_patch_deployment_opt(&self, req: &super::patch_deployments::DeletePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_DELETE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn delete_patch_deployment(&self, req: &super::patch_deployments::DeletePatchDeploymentRequest) -> ::grpcio::Result { - self.delete_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_patch_deployment_async_opt(&self, req: &super::patch_deployments::DeletePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_DELETE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn delete_patch_deployment_async(&self, req: &super::patch_deployments::DeletePatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_patch_deployment_opt(&self, req: &super::patch_deployments::UpdatePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_UPDATE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn update_patch_deployment(&self, req: &super::patch_deployments::UpdatePatchDeploymentRequest) -> ::grpcio::Result { - self.update_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_patch_deployment_async_opt(&self, req: &super::patch_deployments::UpdatePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_UPDATE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn update_patch_deployment_async(&self, req: &super::patch_deployments::UpdatePatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pause_patch_deployment_opt(&self, req: &super::patch_deployments::PausePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_PAUSE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn pause_patch_deployment(&self, req: &super::patch_deployments::PausePatchDeploymentRequest) -> ::grpcio::Result { - self.pause_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn pause_patch_deployment_async_opt(&self, req: &super::patch_deployments::PausePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_PAUSE_PATCH_DEPLOYMENT, req, opt) - } - - pub fn pause_patch_deployment_async(&self, req: &super::patch_deployments::PausePatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.pause_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn resume_patch_deployment_opt(&self, req: &super::patch_deployments::ResumePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_SERVICE_RESUME_PATCH_DEPLOYMENT, req, opt) - } - - pub fn resume_patch_deployment(&self, req: &super::patch_deployments::ResumePatchDeploymentRequest) -> ::grpcio::Result { - self.resume_patch_deployment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn resume_patch_deployment_async_opt(&self, req: &super::patch_deployments::ResumePatchDeploymentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_SERVICE_RESUME_PATCH_DEPLOYMENT, req, opt) - } - - pub fn resume_patch_deployment_async(&self, req: &super::patch_deployments::ResumePatchDeploymentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.resume_patch_deployment_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait OsConfigService { - fn execute_patch_job(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_jobs::ExecutePatchJobRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_patch_job(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_jobs::GetPatchJobRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn cancel_patch_job(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_jobs::CancelPatchJobRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_patch_jobs(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_jobs::ListPatchJobsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_patch_job_instance_details(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_jobs::ListPatchJobInstanceDetailsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::CreatePatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::GetPatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_patch_deployments(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::ListPatchDeploymentsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::DeletePatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::UpdatePatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn pause_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::PausePatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn resume_patch_deployment(&mut self, ctx: ::grpcio::RpcContext, _req: super::patch_deployments::ResumePatchDeploymentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_os_config_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_EXECUTE_PATCH_JOB, move |ctx, req, resp| { - instance.execute_patch_job(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_JOB, move |ctx, req, resp| { - instance.get_patch_job(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_CANCEL_PATCH_JOB, move |ctx, req, resp| { - instance.cancel_patch_job(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOBS, move |ctx, req, resp| { - instance.list_patch_jobs(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_JOB_INSTANCE_DETAILS, move |ctx, req, resp| { - instance.list_patch_job_instance_details(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_CREATE_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.create_patch_deployment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_GET_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.get_patch_deployment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_LIST_PATCH_DEPLOYMENTS, move |ctx, req, resp| { - instance.list_patch_deployments(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_DELETE_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.delete_patch_deployment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_UPDATE_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.update_patch_deployment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_PAUSE_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.pause_patch_deployment(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_SERVICE_RESUME_PATCH_DEPLOYMENT, move |ctx, req, resp| { - instance.resume_patch_deployment(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service.rs b/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service.rs deleted file mode 100644 index 1d06fb2..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service.rs +++ /dev/null @@ -1,254 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/osconfig_zonal_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n5google/cloud/osconfig/v1/osconfig_zonal_service.proto\x12\x18google.c\ - loud.osconfig.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/c\ - lient.proto\x1a(google/cloud/osconfig/v1/inventory.proto\x1a;google/clou\ - d/osconfig/v1/os_policy_assignment_reports.proto\x1a4google/cloud/osconf\ - ig/v1/os_policy_assignments.proto\x1a,google/cloud/osconfig/v1/vulnerabi\ - lity.proto\x1a#google/longrunning/operations.proto2\xac\x17\n\x14OsConfi\ - gZonalService\x12\xbe\x02\n\x18CreateOSPolicyAssignment\x129.google.clou\ - d.osconfig.v1.CreateOSPolicyAssignmentRequest\x1a\x1d.google.longrunning\ - .Operation\"\xc7\x01\xcaA9\n\x12OSPolicyAssignment\x12#OSPolicyAssignmen\ - tOperationMetadata\x82\xd3\xe4\x93\x02O\"7/v1/{parent=projects/*/locatio\ - ns/*}/osPolicyAssignments:\x14os_policy_assignment\xdaA3parent,os_policy\ - _assignment,os_policy_assignment_id\x12\xc0\x02\n\x18UpdateOSPolicyAssig\ - nment\x129.google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest\x1a\ - \x1d.google.longrunning.Operation\"\xc9\x01\xcaA9\n\x12OSPolicyAssignmen\ - t\x12#OSPolicyAssignmentOperationMetadata\x82\xd3\xe4\x93\x02d2L/v1/{os_\ - policy_assignment.name=projects/*/locations/*/osPolicyAssignments/*}:\ - \x14os_policy_assignment\xdaA\x20os_policy_assignment,update_mask\x12\ - \xc5\x01\n\x15GetOSPolicyAssignment\x126.google.cloud.osconfig.v1.GetOSP\ - olicyAssignmentRequest\x1a,.google.cloud.osconfig.v1.OSPolicyAssignment\ - \"F\x82\xd3\xe4\x93\x029\x127/v1/{name=projects/*/locations/*/osPolicyAs\ - signments/*}\xdaA\x04name\x12\xd8\x01\n\x17ListOSPolicyAssignments\x128.\ - google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest\x1a9.google.clou\ - d.osconfig.v1.ListOSPolicyAssignmentsResponse\"H\x82\xd3\xe4\x93\x029\ - \x127/v1/{parent=projects/*/locations/*}/osPolicyAssignments\xdaA\x06par\ - ent\x12\xfc\x01\n\x1fListOSPolicyAssignmentRevisions\x12@.google.cloud.o\ - sconfig.v1.ListOSPolicyAssignmentRevisionsRequest\x1aA.google.cloud.osco\ - nfig.v1.ListOSPolicyAssignmentRevisionsResponse\"T\x82\xd3\xe4\x93\x02G\ - \x12E/v1/{name=projects/*/locations/*/osPolicyAssignments/*}:listRevisio\ - ns\xdaA\x04name\x12\xfc\x01\n\x18DeleteOSPolicyAssignment\x129.google.cl\ - oud.osconfig.v1.DeleteOSPolicyAssignmentRequest\x1a\x1d.google.longrunni\ - ng.Operation\"\x85\x01\xcaA<\n\x15google.protobuf.Empty\x12#OSPolicyAssi\ - gnmentOperationMetadata\x82\xd3\xe4\x93\x029*7/v1/{name=projects/*/locat\ - ions/*/osPolicyAssignments/*}\xdaA\x04name\x12\xea\x01\n\x1bGetOSPolicyA\ - ssignmentReport\x12<.google.cloud.osconfig.v1.GetOSPolicyAssignmentRepor\ - tRequest\x1a2.google.cloud.osconfig.v1.OSPolicyAssignmentReport\"Y\x82\ - \xd3\xe4\x93\x02L\x12J/v1/{name=projects/*/locations/*/instances/*/osPol\ - icyAssignments/*/report}\xdaA\x04name\x12\x80\x02\n\x1dListOSPolicyAssig\ - nmentReports\x12>.google.cloud.osconfig.v1.ListOSPolicyAssignmentReports\ - Request\x1a?.google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsRespo\ - nse\"^\x82\xd3\xe4\x93\x02O\x12M/v1/{parent=projects/*/locations/*/insta\ - nces/*/osPolicyAssignments/*}/reports\xdaA\x06parent\x12\xaa\x01\n\x0cGe\ - tInventory\x12-.google.cloud.osconfig.v1.GetInventoryRequest\x1a#.google\ - .cloud.osconfig.v1.Inventory\"F\x82\xd3\xe4\x93\x029\x127/v1/{name=proje\ - cts/*/locations/*/instances/*/inventory}\xdaA\x04name\x12\xc4\x01\n\x0fL\ - istInventories\x120.google.cloud.osconfig.v1.ListInventoriesRequest\x1a1\ - .google.cloud.osconfig.v1.ListInventoriesResponse\"L\x82\xd3\xe4\x93\x02\ - =\x12;/v1/{parent=projects/*/locations/*/instances/*}/inventories\xdaA\ - \x06parent\x12\xd2\x01\n\x16GetVulnerabilityReport\x127.google.cloud.osc\ - onfig.v1.GetVulnerabilityReportRequest\x1a-.google.cloud.osconfig.v1.Vul\ - nerabilityReport\"P\x82\xd3\xe4\x93\x02C\x12A/v1/{name=projects/*/locati\ - ons/*/instances/*/vulnerabilityReport}\xdaA\x04name\x12\xe8\x01\n\x18Lis\ - tVulnerabilityReports\x129.google.cloud.osconfig.v1.ListVulnerabilityRep\ - ortsRequest\x1a:.google.cloud.osconfig.v1.ListVulnerabilityReportsRespon\ - se\"U\x82\xd3\xe4\x93\x02F\x12D/v1/{parent=projects/*/locations/*/instan\ - ces/*}/vulnerabilityReports\xdaA\x06parent\x1aK\xd2A.https://www.googlea\ - pis.com/auth/cloud-platform\xcaA\x17osconfig.googleapis.comB\xc9\x01\n\ - \x1ccom.google.cloud.osconfig.v1B\x19OsConfigZonalServiceProtoP\x01Z8clo\ - ud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.\ - Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoog\ - le::Cloud::OsConfig::V1J\xe6(\n\x07\x12\x05\x0e\0\xc9\x01\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20\ - LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x20\ - 2.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fi\ - le\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20\ - may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\ - \x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0\ - 2\n\t\n\x02\x03\x03\x12\x03\x15\0E\n\t\n\x02\x03\x04\x12\x03\x16\0>\n\t\ - \n\x02\x03\x05\x12\x03\x17\06\n\t\n\x02\x03\x06\x12\x03\x18\0-\n\x08\n\ - \x01\x08\x12\x03\x1a\05\n\t\n\x02\x08%\x12\x03\x1a\05\n\x08\n\x01\x08\ - \x12\x03\x1b\0O\n\t\n\x02\x08\x0b\x12\x03\x1b\0O\n\x08\n\x01\x08\x12\x03\ - \x1c\0\"\n\t\n\x02\x08\n\x12\x03\x1c\0\"\n\x08\n\x01\x08\x12\x03\x1d\0:\ - \n\t\n\x02\x08\x08\x12\x03\x1d\0:\n\x08\n\x01\x08\x12\x03\x1e\05\n\t\n\ - \x02\x08\x01\x12\x03\x1e\05\n\x08\n\x01\x08\x12\x03\x1f\05\n\t\n\x02\x08\ - )\x12\x03\x1f\05\n\x08\n\x01\x08\x12\x03\x20\04\n\t\n\x02\x08-\x12\x03\ - \x20\04\n\xbb\x01\n\x02\x06\0\x12\x05&\0\xc9\x01\x01\x1a\xad\x01\x20Zona\ - l\x20OS\x20Config\x20API\n\n\x20The\x20OS\x20Config\x20service\x20is\x20\ - the\x20server-side\x20component\x20that\x20allows\x20users\x20to\n\x20ma\ - nage\x20package\x20installations\x20and\x20patch\x20jobs\x20for\x20Compu\ - te\x20Engine\x20VM\x20instances.\n\n\n\n\x03\x06\0\x01\x12\x03&\x08\x1c\ - \n\n\n\x03\x06\0\x03\x12\x03'\x02?\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03\ - '\x02?\n\x0b\n\x03\x06\0\x03\x12\x04(\x02)7\n\r\n\x05\x06\0\x03\x9a\x08\ - \x12\x04(\x02)7\n\xda\x03\n\x04\x06\0\x02\0\x12\x044\x02@\x03\x1a\xcb\ - \x03\x20Create\x20an\x20OS\x20policy\x20assignment.\n\n\x20This\x20metho\ - d\x20also\x20creates\x20the\x20first\x20revision\x20of\x20the\x20OS\x20p\ - olicy\x20assignment.\n\n\x20This\x20method\x20returns\x20a\x20long\x20ru\ - nning\x20operation\x20(LRO)\x20that\x20contains\x20the\n\x20rollout\x20d\ - etails.\x20The\x20rollout\x20can\x20be\x20cancelled\x20by\x20cancelling\ - \x20the\x20LRO.\n\n\x20For\x20more\x20information,\x20see\x20[Method:\n\ - \x20projects.locations.osPolicyAssignments.operations.cancel](https://cl\ - oud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicy\ - Assignments.operations/cancel).\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x034\ - \x06\x1e\n\x0c\n\x05\x06\0\x02\0\x02\x12\x034\x1f>\n\x0c\n\x05\x06\0\x02\ - \0\x03\x12\x035\x0f+\n\r\n\x05\x06\0\x02\0\x04\x12\x046\x049\x06\n\x11\n\ - \t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x046\x049\x06\n\r\n\x05\x06\0\x02\0\ - \x04\x12\x04:\x04;>\n\x10\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x04:\x04;>\ - \n\r\n\x05\x06\0\x02\0\x04\x12\x04<\x04?\x06\n\x0f\n\x07\x06\0\x02\0\x04\ - \x99\x08\x12\x04<\x04?\x06\n\xda\x03\n\x04\x06\0\x02\x01\x12\x04K\x02V\ - \x03\x1a\xcb\x03\x20Update\x20an\x20existing\x20OS\x20policy\x20assignme\ - nt.\n\n\x20This\x20method\x20creates\x20a\x20new\x20revision\x20of\x20th\ - e\x20OS\x20policy\x20assignment.\n\n\x20This\x20method\x20returns\x20a\ - \x20long\x20running\x20operation\x20(LRO)\x20that\x20contains\x20the\n\ - \x20rollout\x20details.\x20The\x20rollout\x20can\x20be\x20cancelled\x20b\ - y\x20cancelling\x20the\x20LRO.\n\n\x20For\x20more\x20information,\x20see\ - \x20[Method:\n\x20projects.locations.osPolicyAssignments.operations.canc\ - el](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.loca\ - tions.osPolicyAssignments.operations/cancel).\n\n\x0c\n\x05\x06\0\x02\ - \x01\x01\x12\x03K\x06\x1e\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03K\x1f>\n\ - \x0c\n\x05\x06\0\x02\x01\x03\x12\x03L\x0f+\n\r\n\x05\x06\0\x02\x01\x04\ - \x12\x04M\x04P\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04M\ - \x04P\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03Q\x04N\n\x0f\n\x08\x06\0\ - \x02\x01\x04\x9b\x08\0\x12\x03Q\x04N\n\r\n\x05\x06\0\x02\x01\x04\x12\x04\ - R\x04U\x06\n\x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\x04R\x04U\x06\n\xe1\ - \x01\n\x04\x06\0\x02\x02\x12\x04]\x02c\x03\x1a\xd2\x01\x20Retrieve\x20an\ - \x20existing\x20OS\x20policy\x20assignment.\n\n\x20This\x20method\x20alw\ - ays\x20returns\x20the\x20latest\x20revision.\x20In\x20order\x20to\x20ret\ - rieve\x20a\n\x20previous\x20revision\x20of\x20the\x20assignment,\x20also\ - \x20provide\x20the\x20revision\x20ID\x20in\x20the\n\x20`name`\x20paramet\ - er.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03]\x06\x1b\n\x0c\n\x05\x06\0\ - \x02\x02\x02\x12\x03]\x1c8\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03^\x0f!\n\ - \r\n\x05\x06\0\x02\x02\x04\x12\x04_\x04a\x06\n\x11\n\t\x06\0\x02\x02\x04\ - \xb0\xca\xbc\"\x12\x04_\x04a\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03b\ - \x042\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03b\x042\n\x8b\x01\n\ - \x04\x06\0\x02\x03\x12\x04h\x02n\x03\x1a}\x20List\x20the\x20OS\x20policy\ - \x20assignments\x20under\x20the\x20parent\x20resource.\n\n\x20For\x20eac\ - h\x20OS\x20policy\x20assignment,\x20the\x20latest\x20revision\x20is\x20r\ - eturned.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03h\x06\x1d\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03h\x1e<\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03i\ - \x0f.\n\r\n\x05\x06\0\x02\x03\x04\x12\x04j\x04l\x06\n\x11\n\t\x06\0\x02\ - \x03\x04\xb0\xca\xbc\"\x12\x04j\x04l\x06\n\x0c\n\x05\x06\0\x02\x03\x04\ - \x12\x03m\x044\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03m\x044\nY\ - \n\x04\x06\0\x02\x04\x12\x04q\x02w\x03\x1aK\x20List\x20the\x20OS\x20poli\ - cy\x20assignment\x20revisions\x20for\x20a\x20given\x20OS\x20policy\x20as\ - signment.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03q\x06%\n\x0c\n\x05\x06\ - \0\x02\x04\x02\x12\x03q&L\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03r\x0f6\n\ - \r\n\x05\x06\0\x02\x04\x04\x12\x04s\x04u\x06\n\x11\n\t\x06\0\x02\x04\x04\ - \xb0\xca\xbc\"\x12\x04s\x04u\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03v\ - \x042\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03v\x042\n\xc6\x04\n\ - \x04\x06\0\x02\x05\x12\x06\x85\x01\x02\x8f\x01\x03\x1a\xb5\x04\x20Delete\ - \x20the\x20OS\x20policy\x20assignment.\n\n\x20This\x20method\x20creates\ - \x20a\x20new\x20revision\x20of\x20the\x20OS\x20policy\x20assignment.\n\n\ - \x20This\x20method\x20returns\x20a\x20long\x20running\x20operation\x20(L\ - RO)\x20that\x20contains\x20the\n\x20rollout\x20details.\x20The\x20rollou\ - t\x20can\x20be\x20cancelled\x20by\x20cancelling\x20the\x20LRO.\n\n\x20If\ - \x20the\x20LRO\x20completes\x20and\x20is\x20not\x20cancelled,\x20all\x20\ - revisions\x20associated\x20with\n\x20the\x20OS\x20policy\x20assignment\ - \x20are\x20deleted.\n\n\x20For\x20more\x20information,\x20see\x20[Method\ - :\n\x20projects.locations.osPolicyAssignments.operations.cancel](https:/\ - /cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPol\ - icyAssignments.operations/cancel).\n\n\r\n\x05\x06\0\x02\x05\x01\x12\x04\ - \x85\x01\x06\x1e\n\r\n\x05\x06\0\x02\x05\x02\x12\x04\x85\x01\x1f>\n\r\n\ - \x05\x06\0\x02\x05\x03\x12\x04\x86\x01\x0f+\n\x0f\n\x05\x06\0\x02\x05\ - \x04\x12\x06\x87\x01\x04\x89\x01\x06\n\x13\n\t\x06\0\x02\x05\x04\xb0\xca\ - \xbc\"\x12\x06\x87\x01\x04\x89\x01\x06\n\r\n\x05\x06\0\x02\x05\x04\x12\ - \x04\x8a\x01\x042\n\x10\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x04\x8a\ - \x01\x042\n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x8b\x01\x04\x8e\x01\x06\ - \n\x11\n\x07\x06\0\x02\x05\x04\x99\x08\x12\x06\x8b\x01\x04\x8e\x01\x06\n\ - e\n\x04\x06\0\x02\x06\x12\x06\x93\x01\x02\x99\x01\x03\x1aU\x20Get\x20the\ - \x20OS\x20policy\x20asssignment\x20report\x20for\x20the\x20specified\x20\ - Compute\x20Engine\x20VM\n\x20instance.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\ - \x04\x93\x01\x06!\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\x93\x01\"D\n\r\n\ - \x05\x06\0\x02\x06\x03\x12\x04\x94\x01\x0f'\n\x0f\n\x05\x06\0\x02\x06\ - \x04\x12\x06\x95\x01\x04\x97\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\ - \xbc\"\x12\x06\x95\x01\x04\x97\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\ - \x04\x98\x01\x042\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x98\ - \x01\x042\np\n\x04\x06\0\x02\x07\x12\x06\x9d\x01\x02\xa3\x01\x03\x1a`\ - \x20List\x20OS\x20policy\x20asssignment\x20reports\x20for\x20all\x20Comp\ - ute\x20Engine\x20VM\x20instances\x20in\n\x20the\x20specified\x20zone.\n\ - \n\r\n\x05\x06\0\x02\x07\x01\x12\x04\x9d\x01\x06#\n\r\n\x05\x06\0\x02\ - \x07\x02\x12\x04\x9d\x01$H\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\x9e\x01\ - \x0f4\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x9f\x01\x04\xa1\x01\x06\n\ - \x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x9f\x01\x04\xa1\x01\x06\ - \n\r\n\x05\x06\0\x02\x07\x04\x12\x04\xa2\x01\x044\n\x10\n\x08\x06\0\x02\ - \x07\x04\x9b\x08\0\x12\x04\xa2\x01\x044\n\x91\x01\n\x04\x06\0\x02\x08\ - \x12\x06\xa7\x01\x02\xac\x01\x03\x1a\x80\x01\x20Get\x20inventory\x20data\ - \x20for\x20the\x20specified\x20VM\x20instance.\x20If\x20the\x20VM\x20has\ - \x20no\n\x20associated\x20inventory,\x20the\x20message\x20`NOT_FOUND`\ - \x20is\x20returned.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xa7\x01\x06\ - \x12\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xa7\x01\x13&\n\r\n\x05\x06\0\ - \x02\x08\x03\x12\x04\xa7\x011:\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\xa8\ - \x01\x04\xaa\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\ - \xa8\x01\x04\xaa\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xab\x01\x04\ - 2\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xab\x01\x042\nQ\n\x04\ - \x06\0\x02\t\x12\x06\xaf\x01\x02\xb5\x01\x03\x1aA\x20List\x20inventory\ - \x20data\x20for\x20all\x20VM\x20instances\x20in\x20the\x20specified\x20z\ - one.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xaf\x01\x06\x15\n\r\n\x05\x06\0\ - \x02\t\x02\x12\x04\xaf\x01\x16,\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xb0\ - \x01\x0f&\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xb1\x01\x04\xb3\x01\x06\n\ - \x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xb1\x01\x04\xb3\x01\x06\n\ - \r\n\x05\x06\0\x02\t\x04\x12\x04\xb4\x01\x044\n\x10\n\x08\x06\0\x02\t\ - \x04\x9b\x08\0\x12\x04\xb4\x01\x044\n\x9e\x01\n\x04\x06\0\x02\n\x12\x06\ - \xb9\x01\x02\xbf\x01\x03\x1a\x8d\x01\x20Gets\x20the\x20vulnerability\x20\ - report\x20for\x20the\x20specified\x20VM\x20instance.\x20Only\x20VMs\x20w\ - ith\n\x20inventory\x20data\x20have\x20vulnerability\x20reports\x20associ\ - ated\x20with\x20them.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xb9\x01\x06\ - \x1c\n\r\n\x05\x06\0\x02\n\x02\x12\x04\xb9\x01\x1d:\n\r\n\x05\x06\0\x02\ - \n\x03\x12\x04\xba\x01\x0f\"\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xbb\x01\ - \x04\xbd\x01\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xbb\x01\ - \x04\xbd\x01\x06\n\r\n\x05\x06\0\x02\n\x04\x12\x04\xbe\x01\x042\n\x10\n\ - \x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\xbe\x01\x042\nX\n\x04\x06\0\x02\ - \x0b\x12\x06\xc2\x01\x02\xc8\x01\x03\x1aH\x20List\x20vulnerability\x20re\ - ports\x20for\x20all\x20VM\x20instances\x20in\x20the\x20specified\x20zone\ - .\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xc2\x01\x06\x1e\n\r\n\x05\x06\0\ - \x02\x0b\x02\x12\x04\xc2\x01\x1f>\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\ - \xc3\x01\x0f/\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xc4\x01\x04\xc6\x01\ - \x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc4\x01\x04\xc6\ - \x01\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xc7\x01\x044\n\x10\n\x08\ - \x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xc7\x01\x044b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service_grpc.rs b/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service_grpc.rs deleted file mode 100644 index 0300a21..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service_grpc.rs +++ /dev/null @@ -1,401 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/CreateOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/UpdateOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/GetOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignments", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignmentRevisions", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/DeleteOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/GetOSPolicyAssignmentReport", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignmentReports", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/GetInventory", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/ListInventories", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/GetVulnerabilityReport", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1.OsConfigZonalService/ListVulnerabilityReports", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct OsConfigZonalServiceClient { - pub client: ::grpcio::Client, -} - -impl OsConfigZonalServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - OsConfigZonalServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn create_os_policy_assignment(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.create_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn create_os_policy_assignment_async(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn update_os_policy_assignment(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.update_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn update_os_policy_assignment_async(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn get_os_policy_assignment(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.get_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn get_os_policy_assignment_async(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignments_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, req, opt) - } - - pub fn list_os_policy_assignments(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest) -> ::grpcio::Result { - self.list_os_policy_assignments_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignments_async_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, req, opt) - } - - pub fn list_os_policy_assignments_async(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignments_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_revisions_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, req, opt) - } - - pub fn list_os_policy_assignment_revisions(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest) -> ::grpcio::Result { - self.list_os_policy_assignment_revisions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_revisions_async_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, req, opt) - } - - pub fn list_os_policy_assignment_revisions_async(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignment_revisions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn delete_os_policy_assignment(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.delete_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn delete_os_policy_assignment_async(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_report_opt(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, req, opt) - } - - pub fn get_os_policy_assignment_report(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest) -> ::grpcio::Result { - self.get_os_policy_assignment_report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_report_async_opt(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, req, opt) - } - - pub fn get_os_policy_assignment_report_async(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_os_policy_assignment_report_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_reports_opt(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, req, opt) - } - - pub fn list_os_policy_assignment_reports(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest) -> ::grpcio::Result { - self.list_os_policy_assignment_reports_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_reports_async_opt(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, req, opt) - } - - pub fn list_os_policy_assignment_reports_async(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignment_reports_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_inventory_opt(&self, req: &super::inventory::GetInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, req, opt) - } - - pub fn get_inventory(&self, req: &super::inventory::GetInventoryRequest) -> ::grpcio::Result { - self.get_inventory_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_inventory_async_opt(&self, req: &super::inventory::GetInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, req, opt) - } - - pub fn get_inventory_async(&self, req: &super::inventory::GetInventoryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_inventory_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_inventories_opt(&self, req: &super::inventory::ListInventoriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, req, opt) - } - - pub fn list_inventories(&self, req: &super::inventory::ListInventoriesRequest) -> ::grpcio::Result { - self.list_inventories_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_inventories_async_opt(&self, req: &super::inventory::ListInventoriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, req, opt) - } - - pub fn list_inventories_async(&self, req: &super::inventory::ListInventoriesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_inventories_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_vulnerability_report_opt(&self, req: &super::vulnerability::GetVulnerabilityReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, req, opt) - } - - pub fn get_vulnerability_report(&self, req: &super::vulnerability::GetVulnerabilityReportRequest) -> ::grpcio::Result { - self.get_vulnerability_report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_vulnerability_report_async_opt(&self, req: &super::vulnerability::GetVulnerabilityReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, req, opt) - } - - pub fn get_vulnerability_report_async(&self, req: &super::vulnerability::GetVulnerabilityReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_vulnerability_report_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_vulnerability_reports_opt(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, req, opt) - } - - pub fn list_vulnerability_reports(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest) -> ::grpcio::Result { - self.list_vulnerability_reports_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_vulnerability_reports_async_opt(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, req, opt) - } - - pub fn list_vulnerability_reports_async(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_vulnerability_reports_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait OsConfigZonalService { - fn create_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::CreateOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::GetOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignments(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::ListOSPolicyAssignmentsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignment_revisions(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_os_policy_assignment_report(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignment_reports(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_inventory(&mut self, ctx: ::grpcio::RpcContext, _req: super::inventory::GetInventoryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_inventories(&mut self, ctx: ::grpcio::RpcContext, _req: super::inventory::ListInventoriesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_vulnerability_report(&mut self, ctx: ::grpcio::RpcContext, _req: super::vulnerability::GetVulnerabilityReportRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_vulnerability_reports(&mut self, ctx: ::grpcio::RpcContext, _req: super::vulnerability::ListVulnerabilityReportsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_os_config_zonal_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.create_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.update_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.get_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, move |ctx, req, resp| { - instance.list_os_policy_assignments(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, move |ctx, req, resp| { - instance.list_os_policy_assignment_revisions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.delete_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, move |ctx, req, resp| { - instance.get_os_policy_assignment_report(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, move |ctx, req, resp| { - instance.list_os_policy_assignment_reports(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, move |ctx, req, resp| { - instance.get_inventory(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, move |ctx, req, resp| { - instance.list_inventories(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, move |ctx, req, resp| { - instance.get_vulnerability_report(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, move |ctx, req, resp| { - instance.list_vulnerability_reports(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/patch_deployments.rs b/googleapis-raw/src/cloud/osconfig/v1/patch_deployments.rs deleted file mode 100644 index e346695..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/patch_deployments.rs +++ /dev/null @@ -1,4421 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/patch_deployments.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct PatchDeployment { - // message fields - pub name: ::std::string::String, - pub description: ::std::string::String, - pub instance_filter: ::protobuf::SingularPtrField, - pub patch_config: ::protobuf::SingularPtrField, - pub duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub last_execute_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub rollout: ::protobuf::SingularPtrField, - pub state: PatchDeployment_State, - // message oneof groups - pub schedule: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchDeployment { - fn default() -> &'a PatchDeployment { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum PatchDeployment_oneof_schedule { - one_time_schedule(OneTimeSchedule), - recurring_schedule(RecurringSchedule), -} - -impl PatchDeployment { - pub fn new() -> PatchDeployment { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 3; - - - pub fn get_instance_filter(&self) -> &super::patch_jobs::PatchInstanceFilter { - self.instance_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_filter(&mut self) { - self.instance_filter.clear(); - } - - pub fn has_instance_filter(&self) -> bool { - self.instance_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_filter(&mut self, v: super::patch_jobs::PatchInstanceFilter) { - self.instance_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_filter(&mut self) -> &mut super::patch_jobs::PatchInstanceFilter { - if self.instance_filter.is_none() { - self.instance_filter.set_default(); - } - self.instance_filter.as_mut().unwrap() - } - - // Take field - pub fn take_instance_filter(&mut self) -> super::patch_jobs::PatchInstanceFilter { - self.instance_filter.take().unwrap_or_else(|| super::patch_jobs::PatchInstanceFilter::new()) - } - - // .google.cloud.osconfig.v1.PatchConfig patch_config = 4; - - - pub fn get_patch_config(&self) -> &super::patch_jobs::PatchConfig { - self.patch_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_config(&mut self) { - self.patch_config.clear(); - } - - pub fn has_patch_config(&self) -> bool { - self.patch_config.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_config(&mut self, v: super::patch_jobs::PatchConfig) { - self.patch_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_config(&mut self) -> &mut super::patch_jobs::PatchConfig { - if self.patch_config.is_none() { - self.patch_config.set_default(); - } - self.patch_config.as_mut().unwrap() - } - - // Take field - pub fn take_patch_config(&mut self) -> super::patch_jobs::PatchConfig { - self.patch_config.take().unwrap_or_else(|| super::patch_jobs::PatchConfig::new()) - } - - // .google.protobuf.Duration duration = 5; - - - pub fn get_duration(&self) -> &::protobuf::well_known_types::Duration { - self.duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_duration(&mut self) { - self.duration.clear(); - } - - pub fn has_duration(&self) -> bool { - self.duration.is_some() - } - - // Param is passed by value, moved - pub fn set_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.duration.is_none() { - self.duration.set_default(); - } - self.duration.as_mut().unwrap() - } - - // Take field - pub fn take_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.cloud.osconfig.v1.OneTimeSchedule one_time_schedule = 6; - - - pub fn get_one_time_schedule(&self) -> &OneTimeSchedule { - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_one_time_schedule(&mut self) { - self.schedule = ::std::option::Option::None; - } - - pub fn has_one_time_schedule(&self) -> bool { - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_one_time_schedule(&mut self, v: OneTimeSchedule) { - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(v)) - } - - // Mutable pointer to the field. - pub fn mut_one_time_schedule(&mut self) -> &mut OneTimeSchedule { - if let ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(_)) = self.schedule { - } else { - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(OneTimeSchedule::new())); - } - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_one_time_schedule(&mut self) -> OneTimeSchedule { - if self.has_one_time_schedule() { - match self.schedule.take() { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(v)) => v, - _ => panic!(), - } - } else { - OneTimeSchedule::new() - } - } - - // .google.cloud.osconfig.v1.RecurringSchedule recurring_schedule = 7; - - - pub fn get_recurring_schedule(&self) -> &RecurringSchedule { - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_recurring_schedule(&mut self) { - self.schedule = ::std::option::Option::None; - } - - pub fn has_recurring_schedule(&self) -> bool { - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_recurring_schedule(&mut self, v: RecurringSchedule) { - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(v)) - } - - // Mutable pointer to the field. - pub fn mut_recurring_schedule(&mut self) -> &mut RecurringSchedule { - if let ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(_)) = self.schedule { - } else { - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(RecurringSchedule::new())); - } - match self.schedule { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_recurring_schedule(&mut self) -> RecurringSchedule { - if self.has_recurring_schedule() { - match self.schedule.take() { - ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(v)) => v, - _ => panic!(), - } - } else { - RecurringSchedule::new() - } - } - - // .google.protobuf.Timestamp create_time = 8; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 9; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp last_execute_time = 10; - - - pub fn get_last_execute_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_execute_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_execute_time(&mut self) { - self.last_execute_time.clear(); - } - - pub fn has_last_execute_time(&self) -> bool { - self.last_execute_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_execute_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_execute_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_execute_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_execute_time.is_none() { - self.last_execute_time.set_default(); - } - self.last_execute_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_execute_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_execute_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.osconfig.v1.PatchRollout rollout = 11; - - - pub fn get_rollout(&self) -> &super::patch_jobs::PatchRollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: super::patch_jobs::PatchRollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut super::patch_jobs::PatchRollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> super::patch_jobs::PatchRollout { - self.rollout.take().unwrap_or_else(|| super::patch_jobs::PatchRollout::new()) - } - - // .google.cloud.osconfig.v1.PatchDeployment.State state = 12; - - - pub fn get_state(&self) -> PatchDeployment_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = PatchDeployment_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: PatchDeployment_State) { - self.state = v; - } -} - -impl ::protobuf::Message for PatchDeployment { - fn is_initialized(&self) -> bool { - for v in &self.instance_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.patch_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.duration { - if !v.is_initialized() { - return false; - } - }; - if let Some(PatchDeployment_oneof_schedule::one_time_schedule(ref v)) = self.schedule { - if !v.is_initialized() { - return false; - } - } - if let Some(PatchDeployment_oneof_schedule::recurring_schedule(ref v)) = self.schedule { - if !v.is_initialized() { - return false; - } - } - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_execute_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_filter)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_config)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.duration)?; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::one_time_schedule(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schedule = ::std::option::Option::Some(PatchDeployment_oneof_schedule::recurring_schedule(is.read_message()?)); - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_execute_time)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 12, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if let Some(ref v) = self.instance_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.patch_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.last_execute_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.rollout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.state != PatchDeployment_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.state); - } - if let ::std::option::Option::Some(ref v) = self.schedule { - match v { - &PatchDeployment_oneof_schedule::one_time_schedule(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &PatchDeployment_oneof_schedule::recurring_schedule(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if let Some(ref v) = self.instance_filter.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.patch_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.duration.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.last_execute_time.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.state != PatchDeployment_State::STATE_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let ::std::option::Option::Some(ref v) = self.schedule { - match v { - &PatchDeployment_oneof_schedule::one_time_schedule(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &PatchDeployment_oneof_schedule::recurring_schedule(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchDeployment { - PatchDeployment::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &PatchDeployment| { &m.name }, - |m: &mut PatchDeployment| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &PatchDeployment| { &m.description }, - |m: &mut PatchDeployment| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_filter", - |m: &PatchDeployment| { &m.instance_filter }, - |m: &mut PatchDeployment| { &mut m.instance_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_config", - |m: &PatchDeployment| { &m.patch_config }, - |m: &mut PatchDeployment| { &mut m.patch_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "duration", - |m: &PatchDeployment| { &m.duration }, - |m: &mut PatchDeployment| { &mut m.duration }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OneTimeSchedule>( - "one_time_schedule", - PatchDeployment::has_one_time_schedule, - PatchDeployment::get_one_time_schedule, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, RecurringSchedule>( - "recurring_schedule", - PatchDeployment::has_recurring_schedule, - PatchDeployment::get_recurring_schedule, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &PatchDeployment| { &m.create_time }, - |m: &mut PatchDeployment| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &PatchDeployment| { &m.update_time }, - |m: &mut PatchDeployment| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_execute_time", - |m: &PatchDeployment| { &m.last_execute_time }, - |m: &mut PatchDeployment| { &mut m.last_execute_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &PatchDeployment| { &m.rollout }, - |m: &mut PatchDeployment| { &mut m.rollout }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &PatchDeployment| { &m.state }, - |m: &mut PatchDeployment| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchDeployment", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchDeployment { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchDeployment::new) - } -} - -impl ::protobuf::Clear for PatchDeployment { - fn clear(&mut self) { - self.name.clear(); - self.description.clear(); - self.instance_filter.clear(); - self.patch_config.clear(); - self.duration.clear(); - self.schedule = ::std::option::Option::None; - self.schedule = ::std::option::Option::None; - self.create_time.clear(); - self.update_time.clear(); - self.last_execute_time.clear(); - self.rollout.clear(); - self.state = PatchDeployment_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchDeployment { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchDeployment { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PatchDeployment_State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - PAUSED = 2, -} - -impl ::protobuf::ProtobufEnum for PatchDeployment_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PatchDeployment_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(PatchDeployment_State::ACTIVE), - 2 => ::std::option::Option::Some(PatchDeployment_State::PAUSED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PatchDeployment_State] = &[ - PatchDeployment_State::STATE_UNSPECIFIED, - PatchDeployment_State::ACTIVE, - PatchDeployment_State::PAUSED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PatchDeployment.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PatchDeployment_State { -} - -impl ::std::default::Default for PatchDeployment_State { - fn default() -> Self { - PatchDeployment_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchDeployment_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OneTimeSchedule { - // message fields - pub execute_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OneTimeSchedule { - fn default() -> &'a OneTimeSchedule { - ::default_instance() - } -} - -impl OneTimeSchedule { - pub fn new() -> OneTimeSchedule { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp execute_time = 1; - - - pub fn get_execute_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.execute_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_execute_time(&mut self) { - self.execute_time.clear(); - } - - pub fn has_execute_time(&self) -> bool { - self.execute_time.is_some() - } - - // Param is passed by value, moved - pub fn set_execute_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.execute_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_execute_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.execute_time.is_none() { - self.execute_time.set_default(); - } - self.execute_time.as_mut().unwrap() - } - - // Take field - pub fn take_execute_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.execute_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OneTimeSchedule { - fn is_initialized(&self) -> bool { - for v in &self.execute_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.execute_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.execute_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.execute_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OneTimeSchedule { - OneTimeSchedule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "execute_time", - |m: &OneTimeSchedule| { &m.execute_time }, - |m: &mut OneTimeSchedule| { &mut m.execute_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OneTimeSchedule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OneTimeSchedule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OneTimeSchedule::new) - } -} - -impl ::protobuf::Clear for OneTimeSchedule { - fn clear(&mut self) { - self.execute_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OneTimeSchedule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OneTimeSchedule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RecurringSchedule { - // message fields - pub time_zone: ::protobuf::SingularPtrField, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub time_of_day: ::protobuf::SingularPtrField, - pub frequency: RecurringSchedule_Frequency, - pub last_execute_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub next_execute_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // message oneof groups - pub schedule_config: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RecurringSchedule { - fn default() -> &'a RecurringSchedule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum RecurringSchedule_oneof_schedule_config { - weekly(WeeklySchedule), - monthly(MonthlySchedule), -} - -impl RecurringSchedule { - pub fn new() -> RecurringSchedule { - ::std::default::Default::default() - } - - // .google.type.TimeZone time_zone = 1; - - - pub fn get_time_zone(&self) -> &super::datetime::TimeZone { - self.time_zone.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_time_zone(&mut self) { - self.time_zone.clear(); - } - - pub fn has_time_zone(&self) -> bool { - self.time_zone.is_some() - } - - // Param is passed by value, moved - pub fn set_time_zone(&mut self, v: super::datetime::TimeZone) { - self.time_zone = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_time_zone(&mut self) -> &mut super::datetime::TimeZone { - if self.time_zone.is_none() { - self.time_zone.set_default(); - } - self.time_zone.as_mut().unwrap() - } - - // Take field - pub fn take_time_zone(&mut self) -> super::datetime::TimeZone { - self.time_zone.take().unwrap_or_else(|| super::datetime::TimeZone::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.type.TimeOfDay time_of_day = 4; - - - pub fn get_time_of_day(&self) -> &super::timeofday::TimeOfDay { - self.time_of_day.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_time_of_day(&mut self) { - self.time_of_day.clear(); - } - - pub fn has_time_of_day(&self) -> bool { - self.time_of_day.is_some() - } - - // Param is passed by value, moved - pub fn set_time_of_day(&mut self, v: super::timeofday::TimeOfDay) { - self.time_of_day = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_time_of_day(&mut self) -> &mut super::timeofday::TimeOfDay { - if self.time_of_day.is_none() { - self.time_of_day.set_default(); - } - self.time_of_day.as_mut().unwrap() - } - - // Take field - pub fn take_time_of_day(&mut self) -> super::timeofday::TimeOfDay { - self.time_of_day.take().unwrap_or_else(|| super::timeofday::TimeOfDay::new()) - } - - // .google.cloud.osconfig.v1.RecurringSchedule.Frequency frequency = 5; - - - pub fn get_frequency(&self) -> RecurringSchedule_Frequency { - self.frequency - } - pub fn clear_frequency(&mut self) { - self.frequency = RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_frequency(&mut self, v: RecurringSchedule_Frequency) { - self.frequency = v; - } - - // .google.cloud.osconfig.v1.WeeklySchedule weekly = 6; - - - pub fn get_weekly(&self) -> &WeeklySchedule { - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_weekly(&mut self) { - self.schedule_config = ::std::option::Option::None; - } - - pub fn has_weekly(&self) -> bool { - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_weekly(&mut self, v: WeeklySchedule) { - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(v)) - } - - // Mutable pointer to the field. - pub fn mut_weekly(&mut self) -> &mut WeeklySchedule { - if let ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(_)) = self.schedule_config { - } else { - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(WeeklySchedule::new())); - } - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_weekly(&mut self) -> WeeklySchedule { - if self.has_weekly() { - match self.schedule_config.take() { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(v)) => v, - _ => panic!(), - } - } else { - WeeklySchedule::new() - } - } - - // .google.cloud.osconfig.v1.MonthlySchedule monthly = 7; - - - pub fn get_monthly(&self) -> &MonthlySchedule { - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_monthly(&mut self) { - self.schedule_config = ::std::option::Option::None; - } - - pub fn has_monthly(&self) -> bool { - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_monthly(&mut self, v: MonthlySchedule) { - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(v)) - } - - // Mutable pointer to the field. - pub fn mut_monthly(&mut self) -> &mut MonthlySchedule { - if let ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(_)) = self.schedule_config { - } else { - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(MonthlySchedule::new())); - } - match self.schedule_config { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_monthly(&mut self) -> MonthlySchedule { - if self.has_monthly() { - match self.schedule_config.take() { - ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(v)) => v, - _ => panic!(), - } - } else { - MonthlySchedule::new() - } - } - - // .google.protobuf.Timestamp last_execute_time = 9; - - - pub fn get_last_execute_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_execute_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_execute_time(&mut self) { - self.last_execute_time.clear(); - } - - pub fn has_last_execute_time(&self) -> bool { - self.last_execute_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_execute_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_execute_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_execute_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_execute_time.is_none() { - self.last_execute_time.set_default(); - } - self.last_execute_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_execute_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_execute_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp next_execute_time = 10; - - - pub fn get_next_execute_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.next_execute_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_next_execute_time(&mut self) { - self.next_execute_time.clear(); - } - - pub fn has_next_execute_time(&self) -> bool { - self.next_execute_time.is_some() - } - - // Param is passed by value, moved - pub fn set_next_execute_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.next_execute_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_execute_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.next_execute_time.is_none() { - self.next_execute_time.set_default(); - } - self.next_execute_time.as_mut().unwrap() - } - - // Take field - pub fn take_next_execute_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.next_execute_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for RecurringSchedule { - fn is_initialized(&self) -> bool { - for v in &self.time_zone { - if !v.is_initialized() { - return false; - } - }; - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.time_of_day { - if !v.is_initialized() { - return false; - } - }; - if let Some(RecurringSchedule_oneof_schedule_config::weekly(ref v)) = self.schedule_config { - if !v.is_initialized() { - return false; - } - } - if let Some(RecurringSchedule_oneof_schedule_config::monthly(ref v)) = self.schedule_config { - if !v.is_initialized() { - return false; - } - } - for v in &self.last_execute_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.next_execute_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_zone)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.time_of_day)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.frequency, 5, &mut self.unknown_fields)? - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::weekly(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schedule_config = ::std::option::Option::Some(RecurringSchedule_oneof_schedule_config::monthly(is.read_message()?)); - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_execute_time)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.next_execute_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.time_zone.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.time_of_day.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.frequency != RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.frequency); - } - if let Some(ref v) = self.last_execute_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.next_execute_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.schedule_config { - match v { - &RecurringSchedule_oneof_schedule_config::weekly(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &RecurringSchedule_oneof_schedule_config::monthly(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.time_zone.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.time_of_day.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.frequency != RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.frequency))?; - } - if let Some(ref v) = self.last_execute_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.next_execute_time.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.schedule_config { - match v { - &RecurringSchedule_oneof_schedule_config::weekly(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &RecurringSchedule_oneof_schedule_config::monthly(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RecurringSchedule { - RecurringSchedule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "time_zone", - |m: &RecurringSchedule| { &m.time_zone }, - |m: &mut RecurringSchedule| { &mut m.time_zone }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &RecurringSchedule| { &m.start_time }, - |m: &mut RecurringSchedule| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &RecurringSchedule| { &m.end_time }, - |m: &mut RecurringSchedule| { &mut m.end_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "time_of_day", - |m: &RecurringSchedule| { &m.time_of_day }, - |m: &mut RecurringSchedule| { &mut m.time_of_day }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "frequency", - |m: &RecurringSchedule| { &m.frequency }, - |m: &mut RecurringSchedule| { &mut m.frequency }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, WeeklySchedule>( - "weekly", - RecurringSchedule::has_weekly, - RecurringSchedule::get_weekly, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, MonthlySchedule>( - "monthly", - RecurringSchedule::has_monthly, - RecurringSchedule::get_monthly, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_execute_time", - |m: &RecurringSchedule| { &m.last_execute_time }, - |m: &mut RecurringSchedule| { &mut m.last_execute_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "next_execute_time", - |m: &RecurringSchedule| { &m.next_execute_time }, - |m: &mut RecurringSchedule| { &mut m.next_execute_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RecurringSchedule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RecurringSchedule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RecurringSchedule::new) - } -} - -impl ::protobuf::Clear for RecurringSchedule { - fn clear(&mut self) { - self.time_zone.clear(); - self.start_time.clear(); - self.end_time.clear(); - self.time_of_day.clear(); - self.frequency = RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED; - self.schedule_config = ::std::option::Option::None; - self.schedule_config = ::std::option::Option::None; - self.last_execute_time.clear(); - self.next_execute_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RecurringSchedule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RecurringSchedule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RecurringSchedule_Frequency { - FREQUENCY_UNSPECIFIED = 0, - WEEKLY = 1, - MONTHLY = 2, - DAILY = 3, -} - -impl ::protobuf::ProtobufEnum for RecurringSchedule_Frequency { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED), - 1 => ::std::option::Option::Some(RecurringSchedule_Frequency::WEEKLY), - 2 => ::std::option::Option::Some(RecurringSchedule_Frequency::MONTHLY), - 3 => ::std::option::Option::Some(RecurringSchedule_Frequency::DAILY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [RecurringSchedule_Frequency] = &[ - RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED, - RecurringSchedule_Frequency::WEEKLY, - RecurringSchedule_Frequency::MONTHLY, - RecurringSchedule_Frequency::DAILY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("RecurringSchedule.Frequency", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for RecurringSchedule_Frequency { -} - -impl ::std::default::Default for RecurringSchedule_Frequency { - fn default() -> Self { - RecurringSchedule_Frequency::FREQUENCY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for RecurringSchedule_Frequency { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WeeklySchedule { - // message fields - pub day_of_week: super::dayofweek::DayOfWeek, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WeeklySchedule { - fn default() -> &'a WeeklySchedule { - ::default_instance() - } -} - -impl WeeklySchedule { - pub fn new() -> WeeklySchedule { - ::std::default::Default::default() - } - - // .google.type.DayOfWeek day_of_week = 1; - - - pub fn get_day_of_week(&self) -> super::dayofweek::DayOfWeek { - self.day_of_week - } - pub fn clear_day_of_week(&mut self) { - self.day_of_week = super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_day_of_week(&mut self, v: super::dayofweek::DayOfWeek) { - self.day_of_week = v; - } -} - -impl ::protobuf::Message for WeeklySchedule { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.day_of_week, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.day_of_week != super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.day_of_week); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.day_of_week != super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.day_of_week))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WeeklySchedule { - WeeklySchedule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "day_of_week", - |m: &WeeklySchedule| { &m.day_of_week }, - |m: &mut WeeklySchedule| { &mut m.day_of_week }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WeeklySchedule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static WeeklySchedule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WeeklySchedule::new) - } -} - -impl ::protobuf::Clear for WeeklySchedule { - fn clear(&mut self) { - self.day_of_week = super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WeeklySchedule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WeeklySchedule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MonthlySchedule { - // message oneof groups - pub day_of_month: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MonthlySchedule { - fn default() -> &'a MonthlySchedule { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum MonthlySchedule_oneof_day_of_month { - week_day_of_month(WeekDayOfMonth), - month_day(i32), -} - -impl MonthlySchedule { - pub fn new() -> MonthlySchedule { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.WeekDayOfMonth week_day_of_month = 1; - - - pub fn get_week_day_of_month(&self) -> &WeekDayOfMonth { - match self.day_of_month { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_week_day_of_month(&mut self) { - self.day_of_month = ::std::option::Option::None; - } - - pub fn has_week_day_of_month(&self) -> bool { - match self.day_of_month { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_week_day_of_month(&mut self, v: WeekDayOfMonth) { - self.day_of_month = ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(v)) - } - - // Mutable pointer to the field. - pub fn mut_week_day_of_month(&mut self) -> &mut WeekDayOfMonth { - if let ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(_)) = self.day_of_month { - } else { - self.day_of_month = ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(WeekDayOfMonth::new())); - } - match self.day_of_month { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_week_day_of_month(&mut self) -> WeekDayOfMonth { - if self.has_week_day_of_month() { - match self.day_of_month.take() { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(v)) => v, - _ => panic!(), - } - } else { - WeekDayOfMonth::new() - } - } - - // int32 month_day = 2; - - - pub fn get_month_day(&self) -> i32 { - match self.day_of_month { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::month_day(v)) => v, - _ => 0, - } - } - pub fn clear_month_day(&mut self) { - self.day_of_month = ::std::option::Option::None; - } - - pub fn has_month_day(&self) -> bool { - match self.day_of_month { - ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::month_day(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_month_day(&mut self, v: i32) { - self.day_of_month = ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::month_day(v)) - } -} - -impl ::protobuf::Message for MonthlySchedule { - fn is_initialized(&self) -> bool { - if let Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(ref v)) = self.day_of_month { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.day_of_month = ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::week_day_of_month(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.day_of_month = ::std::option::Option::Some(MonthlySchedule_oneof_day_of_month::month_day(is.read_int32()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.day_of_month { - match v { - &MonthlySchedule_oneof_day_of_month::week_day_of_month(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &MonthlySchedule_oneof_day_of_month::month_day(v) => { - my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.day_of_month { - match v { - &MonthlySchedule_oneof_day_of_month::week_day_of_month(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &MonthlySchedule_oneof_day_of_month::month_day(v) => { - os.write_int32(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MonthlySchedule { - MonthlySchedule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, WeekDayOfMonth>( - "week_day_of_month", - MonthlySchedule::has_week_day_of_month, - MonthlySchedule::get_week_day_of_month, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "month_day", - MonthlySchedule::has_month_day, - MonthlySchedule::get_month_day, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MonthlySchedule", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static MonthlySchedule { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MonthlySchedule::new) - } -} - -impl ::protobuf::Clear for MonthlySchedule { - fn clear(&mut self) { - self.day_of_month = ::std::option::Option::None; - self.day_of_month = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MonthlySchedule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MonthlySchedule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WeekDayOfMonth { - // message fields - pub week_ordinal: i32, - pub day_of_week: super::dayofweek::DayOfWeek, - pub day_offset: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WeekDayOfMonth { - fn default() -> &'a WeekDayOfMonth { - ::default_instance() - } -} - -impl WeekDayOfMonth { - pub fn new() -> WeekDayOfMonth { - ::std::default::Default::default() - } - - // int32 week_ordinal = 1; - - - pub fn get_week_ordinal(&self) -> i32 { - self.week_ordinal - } - pub fn clear_week_ordinal(&mut self) { - self.week_ordinal = 0; - } - - // Param is passed by value, moved - pub fn set_week_ordinal(&mut self, v: i32) { - self.week_ordinal = v; - } - - // .google.type.DayOfWeek day_of_week = 2; - - - pub fn get_day_of_week(&self) -> super::dayofweek::DayOfWeek { - self.day_of_week - } - pub fn clear_day_of_week(&mut self) { - self.day_of_week = super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_day_of_week(&mut self, v: super::dayofweek::DayOfWeek) { - self.day_of_week = v; - } - - // int32 day_offset = 3; - - - pub fn get_day_offset(&self) -> i32 { - self.day_offset - } - pub fn clear_day_offset(&mut self) { - self.day_offset = 0; - } - - // Param is passed by value, moved - pub fn set_day_offset(&mut self, v: i32) { - self.day_offset = v; - } -} - -impl ::protobuf::Message for WeekDayOfMonth { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.week_ordinal = tmp; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.day_of_week, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.day_offset = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.week_ordinal != 0 { - my_size += ::protobuf::rt::value_size(1, self.week_ordinal, ::protobuf::wire_format::WireTypeVarint); - } - if self.day_of_week != super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.day_of_week); - } - if self.day_offset != 0 { - my_size += ::protobuf::rt::value_size(3, self.day_offset, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.week_ordinal != 0 { - os.write_int32(1, self.week_ordinal)?; - } - if self.day_of_week != super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.day_of_week))?; - } - if self.day_offset != 0 { - os.write_int32(3, self.day_offset)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WeekDayOfMonth { - WeekDayOfMonth::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "week_ordinal", - |m: &WeekDayOfMonth| { &m.week_ordinal }, - |m: &mut WeekDayOfMonth| { &mut m.week_ordinal }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "day_of_week", - |m: &WeekDayOfMonth| { &m.day_of_week }, - |m: &mut WeekDayOfMonth| { &mut m.day_of_week }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "day_offset", - |m: &WeekDayOfMonth| { &m.day_offset }, - |m: &mut WeekDayOfMonth| { &mut m.day_offset }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WeekDayOfMonth", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static WeekDayOfMonth { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WeekDayOfMonth::new) - } -} - -impl ::protobuf::Clear for WeekDayOfMonth { - fn clear(&mut self) { - self.week_ordinal = 0; - self.day_of_week = super::dayofweek::DayOfWeek::DAY_OF_WEEK_UNSPECIFIED; - self.day_offset = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WeekDayOfMonth { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WeekDayOfMonth { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreatePatchDeploymentRequest { - // message fields - pub parent: ::std::string::String, - pub patch_deployment_id: ::std::string::String, - pub patch_deployment: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreatePatchDeploymentRequest { - fn default() -> &'a CreatePatchDeploymentRequest { - ::default_instance() - } -} - -impl CreatePatchDeploymentRequest { - pub fn new() -> CreatePatchDeploymentRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string patch_deployment_id = 2; - - - pub fn get_patch_deployment_id(&self) -> &str { - &self.patch_deployment_id - } - pub fn clear_patch_deployment_id(&mut self) { - self.patch_deployment_id.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_deployment_id(&mut self, v: ::std::string::String) { - self.patch_deployment_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_deployment_id(&mut self) -> &mut ::std::string::String { - &mut self.patch_deployment_id - } - - // Take field - pub fn take_patch_deployment_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.patch_deployment_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.PatchDeployment patch_deployment = 3; - - - pub fn get_patch_deployment(&self) -> &PatchDeployment { - self.patch_deployment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_deployment(&mut self) { - self.patch_deployment.clear(); - } - - pub fn has_patch_deployment(&self) -> bool { - self.patch_deployment.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_deployment(&mut self, v: PatchDeployment) { - self.patch_deployment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_deployment(&mut self) -> &mut PatchDeployment { - if self.patch_deployment.is_none() { - self.patch_deployment.set_default(); - } - self.patch_deployment.as_mut().unwrap() - } - - // Take field - pub fn take_patch_deployment(&mut self) -> PatchDeployment { - self.patch_deployment.take().unwrap_or_else(|| PatchDeployment::new()) - } -} - -impl ::protobuf::Message for CreatePatchDeploymentRequest { - fn is_initialized(&self) -> bool { - for v in &self.patch_deployment { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.patch_deployment_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_deployment)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.patch_deployment_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.patch_deployment_id); - } - if let Some(ref v) = self.patch_deployment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.patch_deployment_id.is_empty() { - os.write_string(2, &self.patch_deployment_id)?; - } - if let Some(ref v) = self.patch_deployment.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreatePatchDeploymentRequest { - CreatePatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreatePatchDeploymentRequest| { &m.parent }, - |m: &mut CreatePatchDeploymentRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "patch_deployment_id", - |m: &CreatePatchDeploymentRequest| { &m.patch_deployment_id }, - |m: &mut CreatePatchDeploymentRequest| { &mut m.patch_deployment_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_deployment", - |m: &CreatePatchDeploymentRequest| { &m.patch_deployment }, - |m: &mut CreatePatchDeploymentRequest| { &mut m.patch_deployment }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreatePatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreatePatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreatePatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for CreatePatchDeploymentRequest { - fn clear(&mut self) { - self.parent.clear(); - self.patch_deployment_id.clear(); - self.patch_deployment.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreatePatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreatePatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetPatchDeploymentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetPatchDeploymentRequest { - fn default() -> &'a GetPatchDeploymentRequest { - ::default_instance() - } -} - -impl GetPatchDeploymentRequest { - pub fn new() -> GetPatchDeploymentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetPatchDeploymentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetPatchDeploymentRequest { - GetPatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetPatchDeploymentRequest| { &m.name }, - |m: &mut GetPatchDeploymentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetPatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetPatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetPatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for GetPatchDeploymentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetPatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetPatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchDeploymentsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchDeploymentsRequest { - fn default() -> &'a ListPatchDeploymentsRequest { - ::default_instance() - } -} - -impl ListPatchDeploymentsRequest { - pub fn new() -> ListPatchDeploymentsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchDeploymentsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchDeploymentsRequest { - ListPatchDeploymentsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListPatchDeploymentsRequest| { &m.parent }, - |m: &mut ListPatchDeploymentsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListPatchDeploymentsRequest| { &m.page_size }, - |m: &mut ListPatchDeploymentsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListPatchDeploymentsRequest| { &m.page_token }, - |m: &mut ListPatchDeploymentsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchDeploymentsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchDeploymentsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchDeploymentsRequest::new) - } -} - -impl ::protobuf::Clear for ListPatchDeploymentsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchDeploymentsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchDeploymentsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchDeploymentsResponse { - // message fields - pub patch_deployments: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchDeploymentsResponse { - fn default() -> &'a ListPatchDeploymentsResponse { - ::default_instance() - } -} - -impl ListPatchDeploymentsResponse { - pub fn new() -> ListPatchDeploymentsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.PatchDeployment patch_deployments = 1; - - - pub fn get_patch_deployments(&self) -> &[PatchDeployment] { - &self.patch_deployments - } - pub fn clear_patch_deployments(&mut self) { - self.patch_deployments.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_deployments(&mut self, v: ::protobuf::RepeatedField) { - self.patch_deployments = v; - } - - // Mutable pointer to the field. - pub fn mut_patch_deployments(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.patch_deployments - } - - // Take field - pub fn take_patch_deployments(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.patch_deployments, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchDeploymentsResponse { - fn is_initialized(&self) -> bool { - for v in &self.patch_deployments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.patch_deployments)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.patch_deployments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.patch_deployments { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchDeploymentsResponse { - ListPatchDeploymentsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_deployments", - |m: &ListPatchDeploymentsResponse| { &m.patch_deployments }, - |m: &mut ListPatchDeploymentsResponse| { &mut m.patch_deployments }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListPatchDeploymentsResponse| { &m.next_page_token }, - |m: &mut ListPatchDeploymentsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchDeploymentsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchDeploymentsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchDeploymentsResponse::new) - } -} - -impl ::protobuf::Clear for ListPatchDeploymentsResponse { - fn clear(&mut self) { - self.patch_deployments.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchDeploymentsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchDeploymentsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeletePatchDeploymentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeletePatchDeploymentRequest { - fn default() -> &'a DeletePatchDeploymentRequest { - ::default_instance() - } -} - -impl DeletePatchDeploymentRequest { - pub fn new() -> DeletePatchDeploymentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeletePatchDeploymentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeletePatchDeploymentRequest { - DeletePatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeletePatchDeploymentRequest| { &m.name }, - |m: &mut DeletePatchDeploymentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeletePatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeletePatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeletePatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for DeletePatchDeploymentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeletePatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeletePatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdatePatchDeploymentRequest { - // message fields - pub patch_deployment: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdatePatchDeploymentRequest { - fn default() -> &'a UpdatePatchDeploymentRequest { - ::default_instance() - } -} - -impl UpdatePatchDeploymentRequest { - pub fn new() -> UpdatePatchDeploymentRequest { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.PatchDeployment patch_deployment = 1; - - - pub fn get_patch_deployment(&self) -> &PatchDeployment { - self.patch_deployment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_deployment(&mut self) { - self.patch_deployment.clear(); - } - - pub fn has_patch_deployment(&self) -> bool { - self.patch_deployment.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_deployment(&mut self, v: PatchDeployment) { - self.patch_deployment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_deployment(&mut self) -> &mut PatchDeployment { - if self.patch_deployment.is_none() { - self.patch_deployment.set_default(); - } - self.patch_deployment.as_mut().unwrap() - } - - // Take field - pub fn take_patch_deployment(&mut self) -> PatchDeployment { - self.patch_deployment.take().unwrap_or_else(|| PatchDeployment::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdatePatchDeploymentRequest { - fn is_initialized(&self) -> bool { - for v in &self.patch_deployment { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_deployment)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.patch_deployment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.patch_deployment.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdatePatchDeploymentRequest { - UpdatePatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_deployment", - |m: &UpdatePatchDeploymentRequest| { &m.patch_deployment }, - |m: &mut UpdatePatchDeploymentRequest| { &mut m.patch_deployment }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdatePatchDeploymentRequest| { &m.update_mask }, - |m: &mut UpdatePatchDeploymentRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdatePatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdatePatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdatePatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for UpdatePatchDeploymentRequest { - fn clear(&mut self) { - self.patch_deployment.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdatePatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdatePatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PausePatchDeploymentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PausePatchDeploymentRequest { - fn default() -> &'a PausePatchDeploymentRequest { - ::default_instance() - } -} - -impl PausePatchDeploymentRequest { - pub fn new() -> PausePatchDeploymentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PausePatchDeploymentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PausePatchDeploymentRequest { - PausePatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &PausePatchDeploymentRequest| { &m.name }, - |m: &mut PausePatchDeploymentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PausePatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PausePatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PausePatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for PausePatchDeploymentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PausePatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PausePatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ResumePatchDeploymentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResumePatchDeploymentRequest { - fn default() -> &'a ResumePatchDeploymentRequest { - ::default_instance() - } -} - -impl ResumePatchDeploymentRequest { - pub fn new() -> ResumePatchDeploymentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ResumePatchDeploymentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ResumePatchDeploymentRequest { - ResumePatchDeploymentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ResumePatchDeploymentRequest| { &m.name }, - |m: &mut ResumePatchDeploymentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResumePatchDeploymentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ResumePatchDeploymentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResumePatchDeploymentRequest::new) - } -} - -impl ::protobuf::Clear for ResumePatchDeploymentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ResumePatchDeploymentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ResumePatchDeploymentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n0google/cloud/osconfig/v1/patch_deployments.proto\x12\x18google.cloud.\ - osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/res\ - ource.proto\x1a)google/cloud/osconfig/v1/patch_jobs.proto\x1a\x1egoogle/\ - protobuf/duration.proto\x1a\x20google/protobuf/field_mask.proto\x1a\x1fg\ - oogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\x1a\x1b\ - google/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\x83\x08\ - \n\x0fPatchDeployment\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12%\ - \n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescriptionB\x03\xe0A\x01\x12[\ - \n\x0finstance_filter\x18\x03\x20\x01(\x0b2-.google.cloud.osconfig.v1.Pa\ - tchInstanceFilterR\x0einstanceFilterB\x03\xe0A\x02\x12M\n\x0cpatch_confi\ - g\x18\x04\x20\x01(\x0b2%.google.cloud.osconfig.v1.PatchConfigR\x0bpatchC\ - onfigB\x03\xe0A\x01\x12:\n\x08duration\x18\x05\x20\x01(\x0b2\x19.google.\ - protobuf.DurationR\x08durationB\x03\xe0A\x01\x12\\\n\x11one_time_schedul\ - e\x18\x06\x20\x01(\x0b2).google.cloud.osconfig.v1.OneTimeScheduleH\0R\ - \x0foneTimeScheduleB\x03\xe0A\x02\x12a\n\x12recurring_schedule\x18\x07\ - \x20\x01(\x0b2+.google.cloud.osconfig.v1.RecurringScheduleH\0R\x11recurr\ - ingScheduleB\x03\xe0A\x02\x12@\n\x0bcreate_time\x18\x08\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\ncreateTimeB\x03\xe0A\x03\x12@\n\x0bupda\ - te_time\x18\t\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTimeB\ - \x03\xe0A\x03\x12K\n\x11last_execute_time\x18\n\x20\x01(\x0b2\x1a.google\ - .protobuf.TimestampR\x0flastExecuteTimeB\x03\xe0A\x03\x12E\n\x07rollout\ - \x18\x0b\x20\x01(\x0b2&.google.cloud.osconfig.v1.PatchRolloutR\x07rollou\ - tB\x03\xe0A\x01\x12J\n\x05state\x18\x0c\x20\x01(\x0e2/.google.cloud.osco\ - nfig.v1.PatchDeployment.StateR\x05stateB\x03\xe0A\x03\"6\n\x05State\x12\ - \x15\n\x11STATE_UNSPECIFIED\x10\0\x12\n\n\x06ACTIVE\x10\x01\x12\n\n\x06P\ - AUSED\x10\x02B\n\n\x08schedule:d\xeaAa\n'osconfig.googleapis.com/PatchDe\ - ployment\x126projects/{project}/patchDeployments/{patch_deployment}\"U\n\ - \x0fOneTimeSchedule\x12B\n\x0cexecute_time\x18\x01\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\x0bexecuteTimeB\x03\xe0A\x02\"\xed\x05\n\x11Recu\ - rringSchedule\x127\n\ttime_zone\x18\x01\x20\x01(\x0b2\x15.google.type.Ti\ - meZoneR\x08timeZoneB\x03\xe0A\x02\x12>\n\nstart_time\x18\x02\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\tstartTimeB\x03\xe0A\x01\x12:\n\x08\ - end_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\ - B\x03\xe0A\x01\x12;\n\x0btime_of_day\x18\x04\x20\x01(\x0b2\x16.google.ty\ - pe.TimeOfDayR\ttimeOfDayB\x03\xe0A\x02\x12X\n\tfrequency\x18\x05\x20\x01\ - (\x0e25.google.cloud.osconfig.v1.RecurringSchedule.FrequencyR\tfrequency\ - B\x03\xe0A\x02\x12G\n\x06weekly\x18\x06\x20\x01(\x0b2(.google.cloud.osco\ - nfig.v1.WeeklyScheduleH\0R\x06weeklyB\x03\xe0A\x02\x12J\n\x07monthly\x18\ - \x07\x20\x01(\x0b2).google.cloud.osconfig.v1.MonthlyScheduleH\0R\x07mont\ - hlyB\x03\xe0A\x02\x12K\n\x11last_execute_time\x18\t\x20\x01(\x0b2\x1a.go\ - ogle.protobuf.TimestampR\x0flastExecuteTimeB\x03\xe0A\x03\x12K\n\x11next\ - _execute_time\x18\n\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x0fnext\ - ExecuteTimeB\x03\xe0A\x03\"J\n\tFrequency\x12\x19\n\x15FREQUENCY_UNSPECI\ - FIED\x10\0\x12\n\n\x06WEEKLY\x10\x01\x12\x0b\n\x07MONTHLY\x10\x02\x12\t\ - \n\x05DAILY\x10\x03B\x11\n\x0fschedule_config\"M\n\x0eWeeklySchedule\x12\ - ;\n\x0bday_of_week\x18\x01\x20\x01(\x0e2\x16.google.type.DayOfWeekR\tday\ - OfWeekB\x03\xe0A\x02\"\xa1\x01\n\x0fMonthlySchedule\x12Z\n\x11week_day_o\ - f_month\x18\x01\x20\x01(\x0b2(.google.cloud.osconfig.v1.WeekDayOfMonthH\ - \0R\x0eweekDayOfMonthB\x03\xe0A\x02\x12\"\n\tmonth_day\x18\x02\x20\x01(\ - \x05H\0R\x08monthDayB\x03\xe0A\x02B\x0e\n\x0cday_of_month\"\x99\x01\n\ - \x0eWeekDayOfMonth\x12&\n\x0cweek_ordinal\x18\x01\x20\x01(\x05R\x0bweekO\ - rdinalB\x03\xe0A\x02\x12;\n\x0bday_of_week\x18\x02\x20\x01(\x0e2\x16.goo\ - gle.type.DayOfWeekR\tdayOfWeekB\x03\xe0A\x02\x12\"\n\nday_offset\x18\x03\ - \x20\x01(\x05R\tdayOffsetB\x03\xe0A\x01\"\xfb\x01\n\x1cCreatePatchDeploy\ - mentRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+clo\ - udresourcemanager.googleapis.com/Project\xe0A\x02\x123\n\x13patch_deploy\ - ment_id\x18\x02\x20\x01(\tR\x11patchDeploymentIdB\x03\xe0A\x02\x12Y\n\ - \x10patch_deployment\x18\x03\x20\x01(\x0b2).google.cloud.osconfig.v1.Pat\ - chDeploymentR\x0fpatchDeploymentB\x03\xe0A\x02\"`\n\x19GetPatchDeploymen\ - tRequest\x12C\n\x04name\x18\x01\x20\x01(\tR\x04nameB/\xfaA)\n'osconfig.g\ - oogleapis.com/PatchDeployment\xe0A\x02\"\xb0\x01\n\x1bListPatchDeploymen\ - tsRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloud\ - resourcemanager.googleapis.com/Project\xe0A\x02\x12\x20\n\tpage_size\x18\ - \x02\x20\x01(\x05R\x08pageSizeB\x03\xe0A\x01\x12\"\n\npage_token\x18\x03\ - \x20\x01(\tR\tpageTokenB\x03\xe0A\x01\"\x9e\x01\n\x1cListPatchDeployment\ - sResponse\x12V\n\x11patch_deployments\x18\x01\x20\x03(\x0b2).google.clou\ - d.osconfig.v1.PatchDeploymentR\x10patchDeployments\x12&\n\x0fnext_page_t\ - oken\x18\x02\x20\x01(\tR\rnextPageToken\"c\n\x1cDeletePatchDeploymentReq\ - uest\x12C\n\x04name\x18\x01\x20\x01(\tR\x04nameB/\xfaA)\n'osconfig.googl\ - eapis.com/PatchDeployment\xe0A\x02\"\xbb\x01\n\x1cUpdatePatchDeploymentR\ - equest\x12Y\n\x10patch_deployment\x18\x01\x20\x01(\x0b2).google.cloud.os\ - config.v1.PatchDeploymentR\x0fpatchDeploymentB\x03\xe0A\x02\x12@\n\x0bup\ - date_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMa\ - skB\x03\xe0A\x01\"b\n\x1bPausePatchDeploymentRequest\x12C\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB/\xfaA)\n'osconfig.googleapis.com/PatchDeployme\ - nt\xe0A\x02\"c\n\x1cResumePatchDeploymentRequest\x12C\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB/\xfaA)\n'osconfig.googleapis.com/PatchDeployment\ - \xe0A\x02B\xbe\x01\n\x1ccom.google.cloud.osconfig.v1B\x10PatchDeployment\ - sZ8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18G\ - oogle.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\ - \x1bGoogle::Cloud::OsConfig::V1J\x88]\n\x07\x12\x05\x0e\0\xd2\x02\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\ - \x03\x14\03\n\t\n\x02\x03\x03\x12\x03\x15\0(\n\t\n\x02\x03\x04\x12\x03\ - \x16\0*\n\t\n\x02\x03\x05\x12\x03\x17\0)\n\t\n\x02\x03\x06\x12\x03\x18\0\ - $\n\t\n\x02\x03\x07\x12\x03\x19\0%\n\t\n\x02\x03\x08\x12\x03\x1a\0%\n\ - \x08\n\x01\x08\x12\x03\x1c\05\n\t\n\x02\x08%\x12\x03\x1c\05\n\x08\n\x01\ - \x08\x12\x03\x1d\0O\n\t\n\x02\x08\x0b\x12\x03\x1d\0O\n\x08\n\x01\x08\x12\ - \x03\x1e\01\n\t\n\x02\x08\x08\x12\x03\x1e\01\n\x08\n\x01\x08\x12\x03\x1f\ - \05\n\t\n\x02\x08\x01\x12\x03\x1f\05\n\x08\n\x01\x08\x12\x03\x20\05\n\t\ - \n\x02\x08)\x12\x03\x20\05\n\x08\n\x01\x08\x12\x03!\04\n\t\n\x02\x08-\ - \x12\x03!\04\n\xf6\x02\n\x02\x04\0\x12\x04(\0q\x01\x1a\xe9\x02\x20Patch\ - \x20deployments\x20are\x20configurations\x20that\x20individual\x20patch\ - \x20jobs\x20use\x20to\n\x20complete\x20a\x20patch.\x20These\x20configura\ - tions\x20include\x20instance\x20filter,\x20package\n\x20repository\x20se\ - ttings,\x20and\x20a\x20schedule.\x20For\x20more\x20information\x20about\ - \x20creating\x20and\n\x20managing\x20patch\x20deployments,\x20see\x20[Sc\ - heduling\x20patch\n\x20jobs](https://cloud.google.com/compute/docs/os-pa\ - tch-management/schedule-patch-jobs).\n\n\n\n\x03\x04\0\x01\x12\x03(\x08\ - \x17\n\x0b\n\x03\x04\0\x07\x12\x04)\x02,\x04\n\r\n\x05\x04\0\x07\x9d\x08\ - \x12\x04)\x02,\x04\n5\n\x04\x04\0\x04\0\x12\x04/\x029\x03\x1a'\x20Repres\ - ents\x20state\x20of\x20patch\x20peployment.\n\n\x0c\n\x05\x04\0\x04\0\ - \x01\x12\x03/\x07\x0c\nO\n\x06\x04\0\x04\0\x02\0\x12\x031\x04\x1a\x1a@\ - \x20The\x20default\x20value.\x20This\x20value\x20is\x20used\x20if\x20the\ - \x20state\x20is\x20omitted.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x031\ - \x04\x15\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x031\x18\x19\nO\n\x06\x04\ - \0\x04\0\x02\x01\x12\x034\x04\x0f\x1a@\x20Active\x20value\x20means\x20th\ - at\x20patch\x20deployment\x20generates\x20Patch\x20Jobs.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\x01\x01\x12\x034\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\ - \x02\x12\x034\r\x0e\n\x92\x01\n\x06\x04\0\x04\0\x02\x02\x12\x038\x04\x0f\ - \x1a\x82\x01\x20Paused\x20value\x20means\x20that\x20patch\x20deployment\ - \x20does\x20not\x20generate\n\x20Patch\x20jobs.\x20Requires\x20user\x20a\ - ction\x20to\x20move\x20in\x20and\x20out\x20from\x20this\x20state.\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x038\x04\n\n\x0e\n\x07\x04\0\x04\ - \0\x02\x02\x02\x12\x038\r\x0e\n\xf6\x01\n\x04\x04\0\x02\0\x12\x03?\x02\ - \x12\x1a\xe8\x01\x20Unique\x20name\x20for\x20the\x20patch\x20deployment\ - \x20resource\x20in\x20a\x20project.\x20The\x20patch\n\x20deployment\x20n\ - ame\x20is\x20in\x20the\x20form:\n\x20`projects/{project_id}/patchDeploym\ - ents/{patch_deployment_id}`.\n\x20This\x20field\x20is\x20ignored\x20when\ - \x20you\x20create\x20a\x20new\x20patch\x20deployment.\n\n\x0c\n\x05\x04\ - \0\x02\0\x05\x12\x03?\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03?\t\r\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03?\x10\x11\nw\n\x04\x04\0\x02\x01\x12\ - \x03C\x02B\x1aj\x20Optional.\x20Description\x20of\x20the\x20patch\x20dep\ - loyment.\x20Length\x20of\x20the\x20description\x20is\n\x20limited\x20to\ - \x201024\x20characters.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03C\x02\x08\ - \n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03C\t\x14\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03C\x17\x18\n\x0c\n\x05\x04\0\x02\x01\x08\x12\x03C\x19A\n\x0f\ - \n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x03C\x1a@\n0\n\x04\x04\0\x02\x02\ - \x12\x04F\x02G/\x1a\"\x20Required.\x20VM\x20instances\x20to\x20patch.\n\ - \n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03F\x02\x15\n\x0c\n\x05\x04\0\x02\ - \x02\x01\x12\x03F\x16%\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03F()\n\x0c\n\ - \x05\x04\0\x02\x02\x08\x12\x03G\x06.\n\x0f\n\x08\x04\0\x02\x02\x08\x9c\ - \x08\0\x12\x03G\x07-\n=\n\x04\x04\0\x02\x03\x12\x03J\x02H\x1a0\x20Option\ - al.\x20Patch\x20configuration\x20that\x20is\x20applied.\n\n\x0c\n\x05\ - \x04\0\x02\x03\x06\x12\x03J\x02\r\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03J\ - \x0e\x1a\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03J\x1d\x1e\n\x0c\n\x05\x04\ - \0\x02\x03\x08\x12\x03J\x1fG\n\x0f\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\ - \x03J\x20F\n_\n\x04\x04\0\x02\x04\x12\x04N\x02O/\x1aQ\x20Optional.\x20Du\ - ration\x20of\x20the\x20patch.\x20After\x20the\x20duration\x20ends,\x20th\ - e\x20patch\x20times\n\x20out.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03N\ - \x02\x1a\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03N\x1b#\n\x0c\n\x05\x04\0\ - \x02\x04\x03\x12\x03N&'\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03O\x06.\n\ - \x0f\n\x08\x04\0\x02\x04\x08\x9c\x08\0\x12\x03O\x07-\n'\n\x04\x04\0\x08\ - \0\x12\x04R\x02Z\x03\x1a\x19\x20Schedule\x20for\x20the\x20patch.\n\n\x0c\ - \n\x05\x04\0\x08\0\x01\x12\x03R\x08\x10\n8\n\x04\x04\0\x02\x05\x12\x04T\ - \x04U1\x1a*\x20Required.\x20Schedule\x20a\x20one-time\x20execution.\n\n\ - \x0c\n\x05\x04\0\x02\x05\x06\x12\x03T\x04\x13\n\x0c\n\x05\x04\0\x02\x05\ - \x01\x12\x03T\x14%\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03T()\n\x0c\n\x05\ - \x04\0\x02\x05\x08\x12\x03U\x080\n\x0f\n\x08\x04\0\x02\x05\x08\x9c\x08\0\ - \x12\x03U\t/\n8\n\x04\x04\0\x02\x06\x12\x04X\x04Y1\x1a*\x20Required.\x20\ - Schedule\x20recurring\x20executions.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\ - \x03X\x04\x15\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03X\x16(\n\x0c\n\x05\ - \x04\0\x02\x06\x03\x12\x03X+,\n\x0c\n\x05\x04\0\x02\x06\x08\x12\x03Y\x08\ - 0\n\x0f\n\x08\x04\0\x02\x06\x08\x9c\x08\0\x12\x03Y\t/\n\x92\x01\n\x04\ - \x04\0\x02\x07\x12\x04^\x02_2\x1a\x83\x01\x20Output\x20only.\x20Time\x20\ - the\x20patch\x20deployment\x20was\x20created.\x20Timestamp\x20is\x20in\n\ - \x20[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\x20text\x20format.\n\ - \n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03^\x02\x1b\n\x0c\n\x05\x04\0\x02\ - \x07\x01\x12\x03^\x1c'\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03^*+\n\x0c\n\ - \x05\x04\0\x02\x07\x08\x12\x03_\x061\n\x0f\n\x08\x04\0\x02\x07\x08\x9c\ - \x08\0\x12\x03_\x070\n\x97\x01\n\x04\x04\0\x02\x08\x12\x04c\x02d2\x1a\ - \x88\x01\x20Output\x20only.\x20Time\x20the\x20patch\x20deployment\x20was\ - \x20last\x20updated.\x20Timestamp\x20is\x20in\n\x20[RFC3339](https://www\ - .ietf.org/rfc/rfc3339.txt)\x20text\x20format.\n\n\x0c\n\x05\x04\0\x02\ - \x08\x06\x12\x03c\x02\x1b\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03c\x1c'\n\ - \x0c\n\x05\x04\0\x02\x08\x03\x12\x03c*+\n\x0c\n\x05\x04\0\x02\x08\x08\ - \x12\x03d\x061\n\x0f\n\x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x03d\x070\n\ - \xa6\x01\n\x04\x04\0\x02\t\x12\x04i\x02j2\x1a\x97\x01\x20Output\x20only.\ - \x20The\x20last\x20time\x20a\x20patch\x20job\x20was\x20started\x20by\x20\ - this\x20deployment.\n\x20Timestamp\x20is\x20in\x20[RFC3339](https://www.\ - ietf.org/rfc/rfc3339.txt)\x20text\n\x20format.\n\n\x0c\n\x05\x04\0\x02\t\ - \x06\x12\x03i\x02\x1b\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03i\x1c-\n\x0c\n\ - \x05\x04\0\x02\t\x03\x12\x03i02\n\x0c\n\x05\x04\0\x02\t\x08\x12\x03j\x06\ - 1\n\x0f\n\x08\x04\0\x02\t\x08\x9c\x08\0\x12\x03j\x070\n;\n\x04\x04\0\x02\ - \n\x12\x03m\x02E\x1a.\x20Optional.\x20Rollout\x20strategy\x20of\x20the\ - \x20patch\x20job.\n\n\x0c\n\x05\x04\0\x02\n\x06\x12\x03m\x02\x0e\n\x0c\n\ - \x05\x04\0\x02\n\x01\x12\x03m\x0f\x16\n\x0c\n\x05\x04\0\x02\n\x03\x12\ - \x03m\x19\x1b\n\x0c\n\x05\x04\0\x02\n\x08\x12\x03m\x1cD\n\x0f\n\x08\x04\ - \0\x02\n\x08\x9c\x08\0\x12\x03m\x1dC\nB\n\x04\x04\0\x02\x0b\x12\x03p\x02\ - ?\x1a5\x20Output\x20only.\x20Current\x20state\x20of\x20the\x20patch\x20d\ - eployment.\n\n\x0c\n\x05\x04\0\x02\x0b\x06\x12\x03p\x02\x07\n\x0c\n\x05\ - \x04\0\x02\x0b\x01\x12\x03p\x08\r\n\x0c\n\x05\x04\0\x02\x0b\x03\x12\x03p\ - \x10\x12\n\x0c\n\x05\x04\0\x02\x0b\x08\x12\x03p\x13>\n\x0f\n\x08\x04\0\ - \x02\x0b\x08\x9c\x08\0\x12\x03p\x14=\n\x8a\x01\n\x02\x04\x01\x12\x04u\0y\ - \x01\x1a~\x20Sets\x20the\x20time\x20for\x20a\x20one\x20time\x20patch\x20\ - deployment.\x20Timestamp\x20is\x20in\n\x20[RFC3339](https://www.ietf.org\ - /rfc/rfc3339.txt)\x20text\x20format.\n\n\n\n\x03\x04\x01\x01\x12\x03u\ - \x08\x17\n?\n\x04\x04\x01\x02\0\x12\x04w\x02x/\x1a1\x20Required.\x20The\ - \x20desired\x20patch\x20job\x20execution\x20time.\n\n\x0c\n\x05\x04\x01\ - \x02\0\x06\x12\x03w\x02\x1b\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03w\x1c(\ - \n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03w+,\n\x0c\n\x05\x04\x01\x02\0\x08\ - \x12\x03x\x06.\n\x0f\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x03x\x07-\n=\ - \n\x02\x04\x02\x12\x05|\0\xb5\x01\x01\x1a0\x20Sets\x20the\x20time\x20for\ - \x20recurring\x20patch\x20deployments.\n\n\n\n\x03\x04\x02\x01\x12\x03|\ - \x08\x19\nL\n\x04\x04\x02\x04\0\x12\x05~\x02\x8d\x01\x03\x1a=\x20Specifi\ - es\x20the\x20frequency\x20of\x20the\x20recurring\x20patch\x20deployments\ - .\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03~\x07\x10\n9\n\x06\x04\x02\x04\ - \0\x02\0\x12\x04\x80\x01\x04\x1e\x1a)\x20Invalid.\x20A\x20frequency\x20m\ - ust\x20be\x20specified.\n\n\x0f\n\x07\x04\x02\x04\0\x02\0\x01\x12\x04\ - \x80\x01\x04\x19\n\x0f\n\x07\x04\x02\x04\0\x02\0\x02\x12\x04\x80\x01\x1c\ - \x1d\nd\n\x06\x04\x02\x04\0\x02\x01\x12\x04\x84\x01\x04\x0f\x1aT\x20Indi\ - cates\x20that\x20the\x20frequency\x20of\x20recurrence\x20should\x20be\ - \x20expressed\x20in\x20terms\n\x20of\x20weeks.\n\n\x0f\n\x07\x04\x02\x04\ - \0\x02\x01\x01\x12\x04\x84\x01\x04\n\n\x0f\n\x07\x04\x02\x04\0\x02\x01\ - \x02\x12\x04\x84\x01\r\x0e\ne\n\x06\x04\x02\x04\0\x02\x02\x12\x04\x88\ - \x01\x04\x10\x1aU\x20Indicates\x20that\x20the\x20frequency\x20of\x20recu\ - rrence\x20should\x20be\x20expressed\x20in\x20terms\n\x20of\x20months.\n\ - \n\x0f\n\x07\x04\x02\x04\0\x02\x02\x01\x12\x04\x88\x01\x04\x0b\n\x0f\n\ - \x07\x04\x02\x04\0\x02\x02\x02\x12\x04\x88\x01\x0e\x0f\nc\n\x06\x04\x02\ - \x04\0\x02\x03\x12\x04\x8c\x01\x04\x0e\x1aS\x20Indicates\x20that\x20the\ - \x20frequency\x20of\x20recurrence\x20should\x20be\x20expressed\x20in\x20\ - terms\n\x20of\x20days.\n\n\x0f\n\x07\x04\x02\x04\0\x02\x03\x01\x12\x04\ - \x8c\x01\x04\t\n\x0f\n\x07\x04\x02\x04\0\x02\x03\x02\x12\x04\x8c\x01\x0c\ - \r\n\x9f\x01\n\x04\x04\x02\x02\0\x12\x04\x91\x01\x02N\x1a\x90\x01\x20Req\ - uired.\x20Defines\x20the\x20time\x20zone\x20that\x20`time_of_day`\x20is\ - \x20relative\x20to.\n\x20The\x20rules\x20for\x20daylight\x20saving\x20ti\ - me\x20are\x20determined\x20by\x20the\x20chosen\x20time\x20zone.\n\n\r\n\ - \x05\x04\x02\x02\0\x06\x12\x04\x91\x01\x02\x16\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\x91\x01\x17\x20\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x91\x01\ - #$\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\x91\x01%M\n\x10\n\x08\x04\x02\x02\ - \0\x08\x9c\x08\0\x12\x04\x91\x01&L\n\x87\x01\n\x04\x04\x02\x02\x01\x12\ - \x06\x95\x01\x02\x96\x01/\x1aw\x20Optional.\x20The\x20time\x20that\x20th\ - e\x20recurring\x20schedule\x20becomes\x20effective.\n\x20Defaults\x20to\ - \x20`create_time`\x20of\x20the\x20patch\x20deployment.\n\n\r\n\x05\x04\ - \x02\x02\x01\x06\x12\x04\x95\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x01\x01\ - \x12\x04\x95\x01\x1c&\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x95\x01)*\n\ - \r\n\x05\x04\x02\x02\x01\x08\x12\x04\x96\x01\x06.\n\x10\n\x08\x04\x02\ - \x02\x01\x08\x9c\x08\0\x12\x04\x96\x01\x07-\nm\n\x04\x04\x02\x02\x02\x12\ - \x06\x9a\x01\x02\x9b\x01/\x1a]\x20Optional.\x20The\x20end\x20time\x20at\ - \x20which\x20a\x20recurring\x20patch\x20deployment\x20schedule\x20is\x20\ - no\n\x20longer\x20active.\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\x9a\ - \x01\x02\x1b\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9a\x01\x1c$\n\r\n\ - \x05\x04\x02\x02\x02\x03\x12\x04\x9a\x01'(\n\r\n\x05\x04\x02\x02\x02\x08\ - \x12\x04\x9b\x01\x06.\n\x10\n\x08\x04\x02\x02\x02\x08\x9c\x08\0\x12\x04\ - \x9b\x01\x07-\nJ\n\x04\x04\x02\x02\x03\x12\x06\x9e\x01\x02\x9f\x01/\x1a:\ - \x20Required.\x20Time\x20of\x20the\x20day\x20to\x20run\x20a\x20recurring\ - \x20deployment.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\x9e\x01\x02\x17\ - \n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\x9e\x01\x18#\n\r\n\x05\x04\x02\ - \x02\x03\x03\x12\x04\x9e\x01&'\n\r\n\x05\x04\x02\x02\x03\x08\x12\x04\x9f\ - \x01\x06.\n\x10\n\x08\x04\x02\x02\x03\x08\x9c\x08\0\x12\x04\x9f\x01\x07-\ - \nH\n\x04\x04\x02\x02\x04\x12\x04\xa2\x01\x02C\x1a:\x20Required.\x20The\ - \x20frequency\x20unit\x20of\x20this\x20recurring\x20schedule.\n\n\r\n\ - \x05\x04\x02\x02\x04\x06\x12\x04\xa2\x01\x02\x0b\n\r\n\x05\x04\x02\x02\ - \x04\x01\x12\x04\xa2\x01\x0c\x15\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ - \xa2\x01\x18\x19\n\r\n\x05\x04\x02\x02\x04\x08\x12\x04\xa2\x01\x1aB\n\ - \x10\n\x08\x04\x02\x02\x04\x08\x9c\x08\0\x12\x04\xa2\x01\x1bA\nc\n\x04\ - \x04\x02\x08\0\x12\x06\xa6\x01\x02\xac\x01\x03\x1aS\x20Configurations\ - \x20for\x20this\x20recurring\x20schedule.\n\x20Configurations\x20must\ - \x20match\x20frequency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\xa6\x01\ - \x08\x17\n:\n\x04\x04\x02\x02\x05\x12\x04\xa8\x01\x04G\x1a,\x20Required.\ - \x20Schedule\x20with\x20weekly\x20executions.\n\n\r\n\x05\x04\x02\x02\ - \x05\x06\x12\x04\xa8\x01\x04\x12\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\ - \xa8\x01\x13\x19\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\xa8\x01\x1c\x1d\n\ - \r\n\x05\x04\x02\x02\x05\x08\x12\x04\xa8\x01\x1eF\n\x10\n\x08\x04\x02\ - \x02\x05\x08\x9c\x08\0\x12\x04\xa8\x01\x1fE\n;\n\x04\x04\x02\x02\x06\x12\ - \x04\xab\x01\x04I\x1a-\x20Required.\x20Schedule\x20with\x20monthly\x20ex\ - ecutions.\n\n\r\n\x05\x04\x02\x02\x06\x06\x12\x04\xab\x01\x04\x13\n\r\n\ - \x05\x04\x02\x02\x06\x01\x12\x04\xab\x01\x14\x1b\n\r\n\x05\x04\x02\x02\ - \x06\x03\x12\x04\xab\x01\x1e\x1f\n\r\n\x05\x04\x02\x02\x06\x08\x12\x04\ - \xab\x01\x20H\n\x10\n\x08\x04\x02\x02\x06\x08\x9c\x08\0\x12\x04\xab\x01!\ - G\nL\n\x04\x04\x02\x02\x07\x12\x06\xaf\x01\x02\xb0\x012\x1a<\x20Output\ - \x20only.\x20The\x20time\x20the\x20last\x20patch\x20job\x20ran\x20succes\ - sfully.\n\n\r\n\x05\x04\x02\x02\x07\x06\x12\x04\xaf\x01\x02\x1b\n\r\n\ - \x05\x04\x02\x02\x07\x01\x12\x04\xaf\x01\x1c-\n\r\n\x05\x04\x02\x02\x07\ - \x03\x12\x04\xaf\x0101\n\r\n\x05\x04\x02\x02\x07\x08\x12\x04\xb0\x01\x06\ - 1\n\x10\n\x08\x04\x02\x02\x07\x08\x9c\x08\0\x12\x04\xb0\x01\x070\nO\n\ - \x04\x04\x02\x02\x08\x12\x06\xb3\x01\x02\xb4\x012\x1a?\x20Output\x20only\ - .\x20The\x20time\x20the\x20next\x20patch\x20job\x20is\x20scheduled\x20to\ - \x20run.\n\n\r\n\x05\x04\x02\x02\x08\x06\x12\x04\xb3\x01\x02\x1b\n\r\n\ - \x05\x04\x02\x02\x08\x01\x12\x04\xb3\x01\x1c-\n\r\n\x05\x04\x02\x02\x08\ - \x03\x12\x04\xb3\x0102\n\r\n\x05\x04\x02\x02\x08\x08\x12\x04\xb4\x01\x06\ - 1\n\x10\n\x08\x04\x02\x02\x08\x08\x9c\x08\0\x12\x04\xb4\x01\x070\n-\n\ - \x02\x04\x03\x12\x06\xb8\x01\0\xbc\x01\x01\x1a\x1f\x20Represents\x20a\ - \x20weekly\x20schedule.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xb8\x01\x08\ - \x16\n,\n\x04\x04\x03\x02\0\x12\x06\xba\x01\x02\xbb\x01/\x1a\x1c\x20Requ\ - ired.\x20Day\x20of\x20the\x20week.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\ - \xba\x01\x02\x17\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xba\x01\x18#\n\r\n\ - \x05\x04\x03\x02\0\x03\x12\x04\xba\x01&'\n\r\n\x05\x04\x03\x02\0\x08\x12\ - \x04\xbb\x01\x06.\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xbb\ - \x01\x07-\n\x9d\x01\n\x02\x04\x04\x12\x06\xc0\x01\0\xcd\x01\x01\x1a\x8e\ - \x01\x20Represents\x20a\x20monthly\x20schedule.\x20An\x20example\x20of\ - \x20a\x20valid\x20monthly\x20schedule\x20is\n\x20\"on\x20the\x20third\ - \x20Tuesday\x20of\x20the\x20month\"\x20or\x20\"on\x20the\x2015th\x20of\ - \x20the\x20month\".\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xc0\x01\x08\x17\n%\ - \n\x04\x04\x04\x08\0\x12\x06\xc2\x01\x02\xcc\x01\x03\x1a\x15\x20One\x20d\ - ay\x20in\x20a\x20month.\n\n\r\n\x05\x04\x04\x08\0\x01\x12\x04\xc2\x01\ - \x08\x14\n0\n\x04\x04\x04\x02\0\x12\x06\xc4\x01\x04\xc5\x011\x1a\x20\x20\ - Required.\x20Week\x20day\x20in\x20a\x20month.\n\n\r\n\x05\x04\x04\x02\0\ - \x06\x12\x04\xc4\x01\x04\x12\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc4\x01\ - \x13$\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xc4\x01'(\n\r\n\x05\x04\x04\ - \x02\0\x08\x12\x04\xc5\x01\x080\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\ - \x12\x04\xc5\x01\t/\n\x97\x02\n\x04\x04\x04\x02\x01\x12\x04\xcb\x01\x04A\ - \x1a\x88\x02\x20Required.\x20One\x20day\x20of\x20the\x20month.\x201-31\ - \x20indicates\x20the\x201st\x20to\x20the\x2031st\x20day.\n\x20-1\x20indi\ - cates\x20the\x20last\x20day\x20of\x20the\x20month.\x20Months\x20without\ - \x20the\x20target\x20day\n\x20will\x20be\x20skipped.\x20For\x20example,\ - \x20a\x20schedule\x20to\x20run\x20\"every\x20month\x20on\x20the\x2031st\ - \"\n\x20will\x20not\x20run\x20in\x20February,\x20April,\x20June,\x20etc.\ - \n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xcb\x01\x04\t\n\r\n\x05\x04\x04\ - \x02\x01\x01\x12\x04\xcb\x01\n\x13\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\ - \xcb\x01\x16\x17\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xcb\x01\x18@\n\ - \x10\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\xcb\x01\x19?\nS\n\x02\ - \x04\x05\x12\x06\xd0\x01\0\xe1\x01\x01\x1aE\x20Represents\x20one\x20week\ - \x20day\x20in\x20a\x20month.\x20An\x20example\x20is\x20\"the\x204th\x20S\ - unday\".\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xd0\x01\x08\x16\n\x8b\x01\n\ - \x04\x04\x05\x02\0\x12\x04\xd3\x01\x02B\x1a}\x20Required.\x20Week\x20num\ - ber\x20in\x20a\x20month.\x201-4\x20indicates\x20the\x201st\x20to\x204th\ - \x20week\x20of\x20the\n\x20month.\x20-1\x20indicates\x20the\x20last\x20w\ - eek\x20of\x20the\x20month.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xd3\x01\ - \x02\x07\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd3\x01\x08\x14\n\r\n\x05\ - \x04\x05\x02\0\x03\x12\x04\xd3\x01\x17\x18\n\r\n\x05\x04\x05\x02\0\x08\ - \x12\x04\xd3\x01\x19A\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\ - \xd3\x01\x1a@\n.\n\x04\x04\x05\x02\x01\x12\x06\xd6\x01\x02\xd7\x01/\x1a\ - \x1e\x20Required.\x20A\x20day\x20of\x20the\x20week.\n\n\r\n\x05\x04\x05\ - \x02\x01\x06\x12\x04\xd6\x01\x02\x17\n\r\n\x05\x04\x05\x02\x01\x01\x12\ - \x04\xd6\x01\x18#\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xd6\x01&'\n\r\n\ - \x05\x04\x05\x02\x01\x08\x12\x04\xd7\x01\x06.\n\x10\n\x08\x04\x05\x02\ - \x01\x08\x9c\x08\0\x12\x04\xd7\x01\x07-\n\x94\x04\n\x04\x04\x05\x02\x02\ - \x12\x04\xe0\x01\x02@\x1a\x85\x04\x20Optional.\x20Represents\x20the\x20n\ - umber\x20of\x20days\x20before\x20or\x20after\x20the\x20given\x20week\x20\ - day\n\x20of\x20month\x20that\x20the\x20patch\x20deployment\x20is\x20sche\ - duled\x20for.\x20For\x20example\x20if\n\x20`week_ordinal`\x20and\x20`day\ - _of_week`\x20values\x20point\x20to\x20the\x20second\x20day\x20of\x20the\ - \n\x20month\x20and\x20this\x20`day_offset`\x20value\x20is\x20set\x20to\ - \x20`3`,\x20the\x20patch\x20deployment\x20takes\n\x20place\x20three\x20d\ - ays\x20after\x20the\x20second\x20Tuesday\x20of\x20the\x20month.\x20If\ - \x20this\x20value\x20is\n\x20negative,\x20for\x20example\x20-5,\x20the\ - \x20patches\x20are\x20deployed\x20five\x20days\x20before\x20before\n\x20\ - the\x20second\x20Tuesday\x20of\x20the\x20month.\x20Allowed\x20values\x20\ - are\x20in\x20range\x20[-30,\x2030].\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\ - \x04\xe0\x01\x02\x07\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xe0\x01\x08\ - \x12\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xe0\x01\x15\x16\n\r\n\x05\x04\ - \x05\x02\x02\x08\x12\x04\xe0\x01\x17?\n\x10\n\x08\x04\x05\x02\x02\x08\ - \x9c\x08\0\x12\x04\xe0\x01\x18>\nB\n\x02\x04\x06\x12\x06\xe4\x01\0\xf9\ - \x01\x01\x1a4\x20A\x20request\x20message\x20for\x20creating\x20a\x20patc\ - h\x20deployment.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xe4\x01\x08$\nd\n\x04\ - \x04\x06\x02\0\x12\x06\xe7\x01\x02\xec\x01\x04\x1aT\x20Required.\x20The\ - \x20project\x20to\x20apply\x20this\x20patch\x20deployment\x20to\x20in\ - \x20the\x20form\n\x20`projects/*`.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ - \xe7\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xe7\x01\t\x0f\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xe7\x01\x12\x13\n\x0f\n\x05\x04\x06\x02\0\ - \x08\x12\x06\xe7\x01\x14\xec\x01\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\ - \x08\0\x12\x04\xe8\x01\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\ - \x06\xe9\x01\x04\xeb\x01\x05\n\xc7\x02\n\x04\x04\x06\x02\x01\x12\x04\xf5\ - \x01\x02J\x1a\xb8\x02\x20Required.\x20A\x20name\x20for\x20the\x20patch\ - \x20deployment\x20in\x20the\x20project.\x20When\x20creating\x20a\n\x20na\ - me\x20the\x20following\x20rules\x20apply:\n\x20*\x20Must\x20contain\x20o\ - nly\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.\n\x20*\x20Mu\ - st\x20start\x20with\x20a\x20letter.\n\x20*\x20Must\x20be\x20between\x201\ - -63\x20characters.\n\x20*\x20Must\x20end\x20with\x20a\x20number\x20or\ - \x20a\x20letter.\n\x20*\x20Must\x20be\x20unique\x20within\x20the\x20proj\ - ect.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xf5\x01\x02\x08\n\r\n\x05\ - \x04\x06\x02\x01\x01\x12\x04\xf5\x01\t\x1c\n\r\n\x05\x04\x06\x02\x01\x03\ - \x12\x04\xf5\x01\x1f\x20\n\r\n\x05\x04\x06\x02\x01\x08\x12\x04\xf5\x01!I\ - \n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\x04\xf5\x01\"H\n9\n\x04\ - \x04\x06\x02\x02\x12\x04\xf8\x01\x02P\x1a+\x20Required.\x20The\x20patch\ - \x20deployment\x20to\x20create.\n\n\r\n\x05\x04\x06\x02\x02\x06\x12\x04\ - \xf8\x01\x02\x11\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xf8\x01\x12\"\n\r\ - \n\x05\x04\x06\x02\x02\x03\x12\x04\xf8\x01%&\n\r\n\x05\x04\x06\x02\x02\ - \x08\x12\x04\xf8\x01'O\n\x10\n\x08\x04\x06\x02\x02\x08\x9c\x08\0\x12\x04\ - \xf8\x01(N\nD\n\x02\x04\x07\x12\x06\xfc\x01\0\x85\x02\x01\x1a6\x20A\x20r\ - equest\x20message\x20for\x20retrieving\x20a\x20patch\x20deployment.\n\n\ - \x0b\n\x03\x04\x07\x01\x12\x04\xfc\x01\x08!\ns\n\x04\x04\x07\x02\0\x12\ - \x06\xff\x01\x02\x84\x02\x04\x1ac\x20Required.\x20The\x20resource\x20nam\ - e\x20of\x20the\x20patch\x20deployment\x20in\x20the\x20form\n\x20`project\ - s/*/patchDeployments/*`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xff\x01\ - \x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xff\x01\t\r\n\r\n\x05\x04\ - \x07\x02\0\x03\x12\x04\xff\x01\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\x12\ - \x06\xff\x01\x12\x84\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\ - \x04\x80\x02\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\x81\x02\ - \x04\x83\x02\x05\n@\n\x02\x04\x08\x12\x06\x88\x02\0\x99\x02\x01\x1a2\x20\ - A\x20request\x20message\x20for\x20listing\x20patch\x20deployments.\n\n\ - \x0b\n\x03\x04\x08\x01\x12\x04\x88\x02\x08#\nU\n\x04\x04\x08\x02\0\x12\ - \x06\x8a\x02\x02\x8f\x02\x04\x1aE\x20Required.\x20The\x20resource\x20nam\ - e\x20of\x20the\x20parent\x20in\x20the\x20form\x20`projects/*`.\n\n\r\n\ - \x05\x04\x08\x02\0\x05\x12\x04\x8a\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\x8a\x02\t\x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x8a\x02\ - \x12\x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\x8a\x02\x14\x8f\x02\x03\n\ - \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\x8b\x02\x04*\n\x11\n\x07\ - \x04\x08\x02\0\x08\x9f\x08\x12\x06\x8c\x02\x04\x8e\x02\x05\n]\n\x04\x04\ - \x08\x02\x01\x12\x04\x93\x02\x02?\x1aO\x20Optional.\x20The\x20maximum\ - \x20number\x20of\x20patch\x20deployments\x20to\x20return.\x20Default\x20\ - is\n\x20100.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\x93\x02\x02\x07\n\r\ - \n\x05\x04\x08\x02\x01\x01\x12\x04\x93\x02\x08\x11\n\r\n\x05\x04\x08\x02\ - \x01\x03\x12\x04\x93\x02\x14\x15\n\r\n\x05\x04\x08\x02\x01\x08\x12\x04\ - \x93\x02\x16>\n\x10\n\x08\x04\x08\x02\x01\x08\x9c\x08\0\x12\x04\x93\x02\ - \x17=\n\x9d\x01\n\x04\x04\x08\x02\x02\x12\x04\x98\x02\x02A\x1a\x8e\x01\ - \x20Optional.\x20A\x20pagination\x20token\x20returned\x20from\x20a\x20pr\ - evious\x20call\x20to\n\x20ListPatchDeployments\x20that\x20indicates\x20w\ - here\x20this\x20listing\x20should\x20continue\n\x20from.\n\n\r\n\x05\x04\ - \x08\x02\x02\x05\x12\x04\x98\x02\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\ - \x12\x04\x98\x02\t\x13\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\x98\x02\x16\ - \x17\n\r\n\x05\x04\x08\x02\x02\x08\x12\x04\x98\x02\x18@\n\x10\n\x08\x04\ - \x08\x02\x02\x08\x9c\x08\0\x12\x04\x98\x02\x19?\nA\n\x02\x04\t\x12\x06\ - \x9c\x02\0\xa3\x02\x01\x1a3\x20A\x20response\x20message\x20for\x20listin\ - g\x20patch\x20deployments.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9c\x02\x08$\ - \n.\n\x04\x04\t\x02\0\x12\x04\x9e\x02\x021\x1a\x20\x20The\x20list\x20of\ - \x20patch\x20deployments.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\x9e\x02\ - \x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x9e\x02\x0b\x1a\n\r\n\x05\x04\t\ - \x02\0\x01\x12\x04\x9e\x02\x1b,\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x9e\ - \x02/0\n_\n\x04\x04\t\x02\x01\x12\x04\xa2\x02\x02\x1d\x1aQ\x20A\x20pagin\ - ation\x20token\x20that\x20can\x20be\x20used\x20to\x20get\x20the\x20next\ - \x20page\x20of\x20patch\n\x20deployments.\n\n\r\n\x05\x04\t\x02\x01\x05\ - \x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xa2\x02\t\ - \x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xa2\x02\x1b\x1c\nB\n\x02\x04\n\ - \x12\x06\xa6\x02\0\xaf\x02\x01\x1a4\x20A\x20request\x20message\x20for\ - \x20deleting\x20a\x20patch\x20deployment.\n\n\x0b\n\x03\x04\n\x01\x12\ - \x04\xa6\x02\x08$\ns\n\x04\x04\n\x02\0\x12\x06\xa9\x02\x02\xae\x02\x04\ - \x1ac\x20Required.\x20The\x20resource\x20name\x20of\x20the\x20patch\x20d\ - eployment\x20in\x20the\x20form\n\x20`projects/*/patchDeployments/*`.\n\n\ - \r\n\x05\x04\n\x02\0\x05\x12\x04\xa9\x02\x02\x08\n\r\n\x05\x04\n\x02\0\ - \x01\x12\x04\xa9\x02\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xa9\x02\x10\ - \x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\xa9\x02\x12\xae\x02\x03\n\x10\n\ - \x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xaa\x02\x04*\n\x11\n\x07\x04\n\ - \x02\0\x08\x9f\x08\x12\x06\xab\x02\x04\xad\x02\x05\nB\n\x02\x04\x0b\x12\ - \x06\xb2\x02\0\xba\x02\x01\x1a4\x20A\x20request\x20message\x20for\x20upd\ - ating\x20a\x20patch\x20deployment.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xb2\ - \x02\x08$\n9\n\x04\x04\x0b\x02\0\x12\x04\xb4\x02\x02P\x1a+\x20Required.\ - \x20The\x20patch\x20deployment\x20to\x20Update.\n\n\r\n\x05\x04\x0b\x02\ - \0\x06\x12\x04\xb4\x02\x02\x11\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xb4\ - \x02\x12\"\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xb4\x02%&\n\r\n\x05\x04\ - \x0b\x02\0\x08\x12\x04\xb4\x02'O\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\ - \x12\x04\xb4\x02(N\nm\n\x04\x04\x0b\x02\x01\x12\x06\xb8\x02\x02\xb9\x02/\ - \x1a]\x20Optional.\x20Field\x20mask\x20that\x20controls\x20which\x20fiel\ - ds\x20of\x20the\x20patch\x20deployment\n\x20should\x20be\x20updated.\n\n\ - \r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xb8\x02\x02\x1b\n\r\n\x05\x04\x0b\ - \x02\x01\x01\x12\x04\xb8\x02\x1c'\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\ - \xb8\x02*+\n\r\n\x05\x04\x0b\x02\x01\x08\x12\x04\xb9\x02\x06.\n\x10\n\ - \x08\x04\x0b\x02\x01\x08\x9c\x08\0\x12\x04\xb9\x02\x07-\nA\n\x02\x04\x0c\ - \x12\x06\xbd\x02\0\xc6\x02\x01\x1a3\x20A\x20request\x20message\x20for\ - \x20pausing\x20a\x20patch\x20deployment.\n\n\x0b\n\x03\x04\x0c\x01\x12\ - \x04\xbd\x02\x08#\ns\n\x04\x04\x0c\x02\0\x12\x06\xc0\x02\x02\xc5\x02\x04\ - \x1ac\x20Required.\x20The\x20resource\x20name\x20of\x20the\x20patch\x20d\ - eployment\x20in\x20the\x20form\n\x20`projects/*/patchDeployments/*`.\n\n\ - \r\n\x05\x04\x0c\x02\0\x05\x12\x04\xc0\x02\x02\x08\n\r\n\x05\x04\x0c\x02\ - \0\x01\x12\x04\xc0\x02\t\r\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xc0\x02\ - \x10\x11\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xc0\x02\x12\xc5\x02\x03\n\ - \x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xc1\x02\x04*\n\x11\n\x07\ - \x04\x0c\x02\0\x08\x9f\x08\x12\x06\xc2\x02\x04\xc4\x02\x05\nB\n\x02\x04\ - \r\x12\x06\xc9\x02\0\xd2\x02\x01\x1a4\x20A\x20request\x20message\x20for\ - \x20resuming\x20a\x20patch\x20deployment.\n\n\x0b\n\x03\x04\r\x01\x12\ - \x04\xc9\x02\x08$\ns\n\x04\x04\r\x02\0\x12\x06\xcc\x02\x02\xd1\x02\x04\ - \x1ac\x20Required.\x20The\x20resource\x20name\x20of\x20the\x20patch\x20d\ - eployment\x20in\x20the\x20form\n\x20`projects/*/patchDeployments/*`.\n\n\ - \r\n\x05\x04\r\x02\0\x05\x12\x04\xcc\x02\x02\x08\n\r\n\x05\x04\r\x02\0\ - \x01\x12\x04\xcc\x02\t\r\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xcc\x02\x10\ - \x11\n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xcc\x02\x12\xd1\x02\x03\n\x10\n\ - \x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xcd\x02\x04*\n\x11\n\x07\x04\r\ - \x02\0\x08\x9f\x08\x12\x06\xce\x02\x04\xd0\x02\x05b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/patch_jobs.rs b/googleapis-raw/src/cloud/osconfig/v1/patch_jobs.rs deleted file mode 100644 index afbc001..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/patch_jobs.rs +++ /dev/null @@ -1,8484 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/patch_jobs.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ExecutePatchJobRequest { - // message fields - pub parent: ::std::string::String, - pub description: ::std::string::String, - pub instance_filter: ::protobuf::SingularPtrField, - pub patch_config: ::protobuf::SingularPtrField, - pub duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub dry_run: bool, - pub display_name: ::std::string::String, - pub rollout: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecutePatchJobRequest { - fn default() -> &'a ExecutePatchJobRequest { - ::default_instance() - } -} - -impl ExecutePatchJobRequest { - pub fn new() -> ExecutePatchJobRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 7; - - - pub fn get_instance_filter(&self) -> &PatchInstanceFilter { - self.instance_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_filter(&mut self) { - self.instance_filter.clear(); - } - - pub fn has_instance_filter(&self) -> bool { - self.instance_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_filter(&mut self, v: PatchInstanceFilter) { - self.instance_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_filter(&mut self) -> &mut PatchInstanceFilter { - if self.instance_filter.is_none() { - self.instance_filter.set_default(); - } - self.instance_filter.as_mut().unwrap() - } - - // Take field - pub fn take_instance_filter(&mut self) -> PatchInstanceFilter { - self.instance_filter.take().unwrap_or_else(|| PatchInstanceFilter::new()) - } - - // .google.cloud.osconfig.v1.PatchConfig patch_config = 4; - - - pub fn get_patch_config(&self) -> &PatchConfig { - self.patch_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_config(&mut self) { - self.patch_config.clear(); - } - - pub fn has_patch_config(&self) -> bool { - self.patch_config.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_config(&mut self, v: PatchConfig) { - self.patch_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_config(&mut self) -> &mut PatchConfig { - if self.patch_config.is_none() { - self.patch_config.set_default(); - } - self.patch_config.as_mut().unwrap() - } - - // Take field - pub fn take_patch_config(&mut self) -> PatchConfig { - self.patch_config.take().unwrap_or_else(|| PatchConfig::new()) - } - - // .google.protobuf.Duration duration = 5; - - - pub fn get_duration(&self) -> &::protobuf::well_known_types::Duration { - self.duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_duration(&mut self) { - self.duration.clear(); - } - - pub fn has_duration(&self) -> bool { - self.duration.is_some() - } - - // Param is passed by value, moved - pub fn set_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.duration.is_none() { - self.duration.set_default(); - } - self.duration.as_mut().unwrap() - } - - // Take field - pub fn take_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // bool dry_run = 6; - - - pub fn get_dry_run(&self) -> bool { - self.dry_run - } - pub fn clear_dry_run(&mut self) { - self.dry_run = false; - } - - // Param is passed by value, moved - pub fn set_dry_run(&mut self, v: bool) { - self.dry_run = v; - } - - // string display_name = 8; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.PatchRollout rollout = 9; - - - pub fn get_rollout(&self) -> &PatchRollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: PatchRollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut PatchRollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> PatchRollout { - self.rollout.take().unwrap_or_else(|| PatchRollout::new()) - } -} - -impl ::protobuf::Message for ExecutePatchJobRequest { - fn is_initialized(&self) -> bool { - for v in &self.instance_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.patch_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.duration { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_filter)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_config)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.duration)?; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.dry_run = tmp; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if let Some(ref v) = self.instance_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.patch_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.dry_run != false { - my_size += 2; - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.display_name); - } - if let Some(ref v) = self.rollout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if let Some(ref v) = self.instance_filter.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.patch_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.duration.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.dry_run != false { - os.write_bool(6, self.dry_run)?; - } - if !self.display_name.is_empty() { - os.write_string(8, &self.display_name)?; - } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecutePatchJobRequest { - ExecutePatchJobRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ExecutePatchJobRequest| { &m.parent }, - |m: &mut ExecutePatchJobRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &ExecutePatchJobRequest| { &m.description }, - |m: &mut ExecutePatchJobRequest| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_filter", - |m: &ExecutePatchJobRequest| { &m.instance_filter }, - |m: &mut ExecutePatchJobRequest| { &mut m.instance_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_config", - |m: &ExecutePatchJobRequest| { &m.patch_config }, - |m: &mut ExecutePatchJobRequest| { &mut m.patch_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "duration", - |m: &ExecutePatchJobRequest| { &m.duration }, - |m: &mut ExecutePatchJobRequest| { &mut m.duration }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "dry_run", - |m: &ExecutePatchJobRequest| { &m.dry_run }, - |m: &mut ExecutePatchJobRequest| { &mut m.dry_run }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &ExecutePatchJobRequest| { &m.display_name }, - |m: &mut ExecutePatchJobRequest| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &ExecutePatchJobRequest| { &m.rollout }, - |m: &mut ExecutePatchJobRequest| { &mut m.rollout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecutePatchJobRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecutePatchJobRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecutePatchJobRequest::new) - } -} - -impl ::protobuf::Clear for ExecutePatchJobRequest { - fn clear(&mut self) { - self.parent.clear(); - self.description.clear(); - self.instance_filter.clear(); - self.patch_config.clear(); - self.duration.clear(); - self.dry_run = false; - self.display_name.clear(); - self.rollout.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecutePatchJobRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecutePatchJobRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetPatchJobRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetPatchJobRequest { - fn default() -> &'a GetPatchJobRequest { - ::default_instance() - } -} - -impl GetPatchJobRequest { - pub fn new() -> GetPatchJobRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetPatchJobRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetPatchJobRequest { - GetPatchJobRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetPatchJobRequest| { &m.name }, - |m: &mut GetPatchJobRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetPatchJobRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetPatchJobRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetPatchJobRequest::new) - } -} - -impl ::protobuf::Clear for GetPatchJobRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetPatchJobRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetPatchJobRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchJobInstanceDetailsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchJobInstanceDetailsRequest { - fn default() -> &'a ListPatchJobInstanceDetailsRequest { - ::default_instance() - } -} - -impl ListPatchJobInstanceDetailsRequest { - pub fn new() -> ListPatchJobInstanceDetailsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchJobInstanceDetailsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchJobInstanceDetailsRequest { - ListPatchJobInstanceDetailsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListPatchJobInstanceDetailsRequest| { &m.parent }, - |m: &mut ListPatchJobInstanceDetailsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListPatchJobInstanceDetailsRequest| { &m.page_size }, - |m: &mut ListPatchJobInstanceDetailsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListPatchJobInstanceDetailsRequest| { &m.page_token }, - |m: &mut ListPatchJobInstanceDetailsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListPatchJobInstanceDetailsRequest| { &m.filter }, - |m: &mut ListPatchJobInstanceDetailsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchJobInstanceDetailsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchJobInstanceDetailsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchJobInstanceDetailsRequest::new) - } -} - -impl ::protobuf::Clear for ListPatchJobInstanceDetailsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchJobInstanceDetailsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchJobInstanceDetailsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchJobInstanceDetailsResponse { - // message fields - pub patch_job_instance_details: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchJobInstanceDetailsResponse { - fn default() -> &'a ListPatchJobInstanceDetailsResponse { - ::default_instance() - } -} - -impl ListPatchJobInstanceDetailsResponse { - pub fn new() -> ListPatchJobInstanceDetailsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.PatchJobInstanceDetails patch_job_instance_details = 1; - - - pub fn get_patch_job_instance_details(&self) -> &[PatchJobInstanceDetails] { - &self.patch_job_instance_details - } - pub fn clear_patch_job_instance_details(&mut self) { - self.patch_job_instance_details.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_job_instance_details(&mut self, v: ::protobuf::RepeatedField) { - self.patch_job_instance_details = v; - } - - // Mutable pointer to the field. - pub fn mut_patch_job_instance_details(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.patch_job_instance_details - } - - // Take field - pub fn take_patch_job_instance_details(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.patch_job_instance_details, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchJobInstanceDetailsResponse { - fn is_initialized(&self) -> bool { - for v in &self.patch_job_instance_details { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.patch_job_instance_details)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.patch_job_instance_details { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.patch_job_instance_details { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchJobInstanceDetailsResponse { - ListPatchJobInstanceDetailsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_job_instance_details", - |m: &ListPatchJobInstanceDetailsResponse| { &m.patch_job_instance_details }, - |m: &mut ListPatchJobInstanceDetailsResponse| { &mut m.patch_job_instance_details }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListPatchJobInstanceDetailsResponse| { &m.next_page_token }, - |m: &mut ListPatchJobInstanceDetailsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchJobInstanceDetailsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchJobInstanceDetailsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchJobInstanceDetailsResponse::new) - } -} - -impl ::protobuf::Clear for ListPatchJobInstanceDetailsResponse { - fn clear(&mut self) { - self.patch_job_instance_details.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchJobInstanceDetailsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchJobInstanceDetailsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchJobInstanceDetails { - // message fields - pub name: ::std::string::String, - pub instance_system_id: ::std::string::String, - pub state: Instance_PatchState, - pub failure_reason: ::std::string::String, - pub attempt_count: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchJobInstanceDetails { - fn default() -> &'a PatchJobInstanceDetails { - ::default_instance() - } -} - -impl PatchJobInstanceDetails { - pub fn new() -> PatchJobInstanceDetails { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string instance_system_id = 2; - - - pub fn get_instance_system_id(&self) -> &str { - &self.instance_system_id - } - pub fn clear_instance_system_id(&mut self) { - self.instance_system_id.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_system_id(&mut self, v: ::std::string::String) { - self.instance_system_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_system_id(&mut self) -> &mut ::std::string::String { - &mut self.instance_system_id - } - - // Take field - pub fn take_instance_system_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_system_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.Instance.PatchState state = 3; - - - pub fn get_state(&self) -> Instance_PatchState { - self.state - } - pub fn clear_state(&mut self) { - self.state = Instance_PatchState::PATCH_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Instance_PatchState) { - self.state = v; - } - - // string failure_reason = 4; - - - pub fn get_failure_reason(&self) -> &str { - &self.failure_reason - } - pub fn clear_failure_reason(&mut self) { - self.failure_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_failure_reason(&mut self, v: ::std::string::String) { - self.failure_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_failure_reason(&mut self) -> &mut ::std::string::String { - &mut self.failure_reason - } - - // Take field - pub fn take_failure_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.failure_reason, ::std::string::String::new()) - } - - // int64 attempt_count = 5; - - - pub fn get_attempt_count(&self) -> i64 { - self.attempt_count - } - pub fn clear_attempt_count(&mut self) { - self.attempt_count = 0; - } - - // Param is passed by value, moved - pub fn set_attempt_count(&mut self, v: i64) { - self.attempt_count = v; - } -} - -impl ::protobuf::Message for PatchJobInstanceDetails { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_system_id)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.failure_reason)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.attempt_count = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.instance_system_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance_system_id); - } - if self.state != Instance_PatchState::PATCH_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if !self.failure_reason.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.failure_reason); - } - if self.attempt_count != 0 { - my_size += ::protobuf::rt::value_size(5, self.attempt_count, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.instance_system_id.is_empty() { - os.write_string(2, &self.instance_system_id)?; - } - if self.state != Instance_PatchState::PATCH_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.failure_reason.is_empty() { - os.write_string(4, &self.failure_reason)?; - } - if self.attempt_count != 0 { - os.write_int64(5, self.attempt_count)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchJobInstanceDetails { - PatchJobInstanceDetails::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &PatchJobInstanceDetails| { &m.name }, - |m: &mut PatchJobInstanceDetails| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_system_id", - |m: &PatchJobInstanceDetails| { &m.instance_system_id }, - |m: &mut PatchJobInstanceDetails| { &mut m.instance_system_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &PatchJobInstanceDetails| { &m.state }, - |m: &mut PatchJobInstanceDetails| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "failure_reason", - |m: &PatchJobInstanceDetails| { &m.failure_reason }, - |m: &mut PatchJobInstanceDetails| { &mut m.failure_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "attempt_count", - |m: &PatchJobInstanceDetails| { &m.attempt_count }, - |m: &mut PatchJobInstanceDetails| { &mut m.attempt_count }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchJobInstanceDetails", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchJobInstanceDetails { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchJobInstanceDetails::new) - } -} - -impl ::protobuf::Clear for PatchJobInstanceDetails { - fn clear(&mut self) { - self.name.clear(); - self.instance_system_id.clear(); - self.state = Instance_PatchState::PATCH_STATE_UNSPECIFIED; - self.failure_reason.clear(); - self.attempt_count = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchJobInstanceDetails { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchJobInstanceDetails { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchJobsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchJobsRequest { - fn default() -> &'a ListPatchJobsRequest { - ::default_instance() - } -} - -impl ListPatchJobsRequest { - pub fn new() -> ListPatchJobsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchJobsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchJobsRequest { - ListPatchJobsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListPatchJobsRequest| { &m.parent }, - |m: &mut ListPatchJobsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListPatchJobsRequest| { &m.page_size }, - |m: &mut ListPatchJobsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListPatchJobsRequest| { &m.page_token }, - |m: &mut ListPatchJobsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListPatchJobsRequest| { &m.filter }, - |m: &mut ListPatchJobsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchJobsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchJobsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchJobsRequest::new) - } -} - -impl ::protobuf::Clear for ListPatchJobsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchJobsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchJobsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListPatchJobsResponse { - // message fields - pub patch_jobs: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListPatchJobsResponse { - fn default() -> &'a ListPatchJobsResponse { - ::default_instance() - } -} - -impl ListPatchJobsResponse { - pub fn new() -> ListPatchJobsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.PatchJob patch_jobs = 1; - - - pub fn get_patch_jobs(&self) -> &[PatchJob] { - &self.patch_jobs - } - pub fn clear_patch_jobs(&mut self) { - self.patch_jobs.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_jobs(&mut self, v: ::protobuf::RepeatedField) { - self.patch_jobs = v; - } - - // Mutable pointer to the field. - pub fn mut_patch_jobs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.patch_jobs - } - - // Take field - pub fn take_patch_jobs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.patch_jobs, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListPatchJobsResponse { - fn is_initialized(&self) -> bool { - for v in &self.patch_jobs { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.patch_jobs)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.patch_jobs { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.patch_jobs { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListPatchJobsResponse { - ListPatchJobsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_jobs", - |m: &ListPatchJobsResponse| { &m.patch_jobs }, - |m: &mut ListPatchJobsResponse| { &mut m.patch_jobs }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListPatchJobsResponse| { &m.next_page_token }, - |m: &mut ListPatchJobsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListPatchJobsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListPatchJobsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListPatchJobsResponse::new) - } -} - -impl ::protobuf::Clear for ListPatchJobsResponse { - fn clear(&mut self) { - self.patch_jobs.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListPatchJobsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListPatchJobsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchJob { - // message fields - pub name: ::std::string::String, - pub display_name: ::std::string::String, - pub description: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub state: PatchJob_State, - pub instance_filter: ::protobuf::SingularPtrField, - pub patch_config: ::protobuf::SingularPtrField, - pub duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub instance_details_summary: ::protobuf::SingularPtrField, - pub dry_run: bool, - pub error_message: ::std::string::String, - pub percent_complete: f64, - pub patch_deployment: ::std::string::String, - pub rollout: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchJob { - fn default() -> &'a PatchJob { - ::default_instance() - } -} - -impl PatchJob { - pub fn new() -> PatchJob { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string display_name = 14; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp create_time = 3; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 4; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.osconfig.v1.PatchJob.State state = 5; - - - pub fn get_state(&self) -> PatchJob_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = PatchJob_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: PatchJob_State) { - self.state = v; - } - - // .google.cloud.osconfig.v1.PatchInstanceFilter instance_filter = 13; - - - pub fn get_instance_filter(&self) -> &PatchInstanceFilter { - self.instance_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_filter(&mut self) { - self.instance_filter.clear(); - } - - pub fn has_instance_filter(&self) -> bool { - self.instance_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_filter(&mut self, v: PatchInstanceFilter) { - self.instance_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_filter(&mut self) -> &mut PatchInstanceFilter { - if self.instance_filter.is_none() { - self.instance_filter.set_default(); - } - self.instance_filter.as_mut().unwrap() - } - - // Take field - pub fn take_instance_filter(&mut self) -> PatchInstanceFilter { - self.instance_filter.take().unwrap_or_else(|| PatchInstanceFilter::new()) - } - - // .google.cloud.osconfig.v1.PatchConfig patch_config = 7; - - - pub fn get_patch_config(&self) -> &PatchConfig { - self.patch_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_patch_config(&mut self) { - self.patch_config.clear(); - } - - pub fn has_patch_config(&self) -> bool { - self.patch_config.is_some() - } - - // Param is passed by value, moved - pub fn set_patch_config(&mut self, v: PatchConfig) { - self.patch_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_config(&mut self) -> &mut PatchConfig { - if self.patch_config.is_none() { - self.patch_config.set_default(); - } - self.patch_config.as_mut().unwrap() - } - - // Take field - pub fn take_patch_config(&mut self) -> PatchConfig { - self.patch_config.take().unwrap_or_else(|| PatchConfig::new()) - } - - // .google.protobuf.Duration duration = 8; - - - pub fn get_duration(&self) -> &::protobuf::well_known_types::Duration { - self.duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_duration(&mut self) { - self.duration.clear(); - } - - pub fn has_duration(&self) -> bool { - self.duration.is_some() - } - - // Param is passed by value, moved - pub fn set_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.duration.is_none() { - self.duration.set_default(); - } - self.duration.as_mut().unwrap() - } - - // Take field - pub fn take_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummary instance_details_summary = 9; - - - pub fn get_instance_details_summary(&self) -> &PatchJob_InstanceDetailsSummary { - self.instance_details_summary.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_details_summary(&mut self) { - self.instance_details_summary.clear(); - } - - pub fn has_instance_details_summary(&self) -> bool { - self.instance_details_summary.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_details_summary(&mut self, v: PatchJob_InstanceDetailsSummary) { - self.instance_details_summary = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_details_summary(&mut self) -> &mut PatchJob_InstanceDetailsSummary { - if self.instance_details_summary.is_none() { - self.instance_details_summary.set_default(); - } - self.instance_details_summary.as_mut().unwrap() - } - - // Take field - pub fn take_instance_details_summary(&mut self) -> PatchJob_InstanceDetailsSummary { - self.instance_details_summary.take().unwrap_or_else(|| PatchJob_InstanceDetailsSummary::new()) - } - - // bool dry_run = 10; - - - pub fn get_dry_run(&self) -> bool { - self.dry_run - } - pub fn clear_dry_run(&mut self) { - self.dry_run = false; - } - - // Param is passed by value, moved - pub fn set_dry_run(&mut self, v: bool) { - self.dry_run = v; - } - - // string error_message = 11; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } - - // double percent_complete = 12; - - - pub fn get_percent_complete(&self) -> f64 { - self.percent_complete - } - pub fn clear_percent_complete(&mut self) { - self.percent_complete = 0.; - } - - // Param is passed by value, moved - pub fn set_percent_complete(&mut self, v: f64) { - self.percent_complete = v; - } - - // string patch_deployment = 15; - - - pub fn get_patch_deployment(&self) -> &str { - &self.patch_deployment - } - pub fn clear_patch_deployment(&mut self) { - self.patch_deployment.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_deployment(&mut self, v: ::std::string::String) { - self.patch_deployment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_deployment(&mut self) -> &mut ::std::string::String { - &mut self.patch_deployment - } - - // Take field - pub fn take_patch_deployment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.patch_deployment, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1.PatchRollout rollout = 16; - - - pub fn get_rollout(&self) -> &PatchRollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: PatchRollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut PatchRollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> PatchRollout { - self.rollout.take().unwrap_or_else(|| PatchRollout::new()) - } -} - -impl ::protobuf::Message for PatchJob { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.instance_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.patch_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.duration { - if !v.is_initialized() { - return false; - } - }; - for v in &self.instance_details_summary { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 14 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 5, &mut self.unknown_fields)? - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_filter)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.patch_config)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.duration)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_details_summary)?; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.dry_run = tmp; - }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.percent_complete = tmp; - }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.patch_deployment)?; - }, - 16 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(14, &self.display_name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.state != PatchJob_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.state); - } - if let Some(ref v) = self.instance_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.patch_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.instance_details_summary.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.dry_run != false { - my_size += 2; - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(11, &self.error_message); - } - if self.percent_complete != 0. { - my_size += 9; - } - if !self.patch_deployment.is_empty() { - my_size += ::protobuf::rt::string_size(15, &self.patch_deployment); - } - if let Some(ref v) = self.rollout.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.display_name.is_empty() { - os.write_string(14, &self.display_name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.state != PatchJob_State::STATE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let Some(ref v) = self.instance_filter.as_ref() { - os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.patch_config.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.duration.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.instance_details_summary.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.dry_run != false { - os.write_bool(10, self.dry_run)?; - } - if !self.error_message.is_empty() { - os.write_string(11, &self.error_message)?; - } - if self.percent_complete != 0. { - os.write_double(12, self.percent_complete)?; - } - if !self.patch_deployment.is_empty() { - os.write_string(15, &self.patch_deployment)?; - } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(16, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchJob { - PatchJob::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &PatchJob| { &m.name }, - |m: &mut PatchJob| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &PatchJob| { &m.display_name }, - |m: &mut PatchJob| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &PatchJob| { &m.description }, - |m: &mut PatchJob| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &PatchJob| { &m.create_time }, - |m: &mut PatchJob| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &PatchJob| { &m.update_time }, - |m: &mut PatchJob| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &PatchJob| { &m.state }, - |m: &mut PatchJob| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_filter", - |m: &PatchJob| { &m.instance_filter }, - |m: &mut PatchJob| { &mut m.instance_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "patch_config", - |m: &PatchJob| { &m.patch_config }, - |m: &mut PatchJob| { &mut m.patch_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "duration", - |m: &PatchJob| { &m.duration }, - |m: &mut PatchJob| { &mut m.duration }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_details_summary", - |m: &PatchJob| { &m.instance_details_summary }, - |m: &mut PatchJob| { &mut m.instance_details_summary }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "dry_run", - |m: &PatchJob| { &m.dry_run }, - |m: &mut PatchJob| { &mut m.dry_run }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &PatchJob| { &m.error_message }, - |m: &mut PatchJob| { &mut m.error_message }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "percent_complete", - |m: &PatchJob| { &m.percent_complete }, - |m: &mut PatchJob| { &mut m.percent_complete }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "patch_deployment", - |m: &PatchJob| { &m.patch_deployment }, - |m: &mut PatchJob| { &mut m.patch_deployment }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &PatchJob| { &m.rollout }, - |m: &mut PatchJob| { &mut m.rollout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchJob", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchJob { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchJob::new) - } -} - -impl ::protobuf::Clear for PatchJob { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.description.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.state = PatchJob_State::STATE_UNSPECIFIED; - self.instance_filter.clear(); - self.patch_config.clear(); - self.duration.clear(); - self.instance_details_summary.clear(); - self.dry_run = false; - self.error_message.clear(); - self.percent_complete = 0.; - self.patch_deployment.clear(); - self.rollout.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchJob { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchJob { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchJob_InstanceDetailsSummary { - // message fields - pub pending_instance_count: i64, - pub inactive_instance_count: i64, - pub notified_instance_count: i64, - pub started_instance_count: i64, - pub downloading_patches_instance_count: i64, - pub applying_patches_instance_count: i64, - pub rebooting_instance_count: i64, - pub succeeded_instance_count: i64, - pub succeeded_reboot_required_instance_count: i64, - pub failed_instance_count: i64, - pub acked_instance_count: i64, - pub timed_out_instance_count: i64, - pub pre_patch_step_instance_count: i64, - pub post_patch_step_instance_count: i64, - pub no_agent_detected_instance_count: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchJob_InstanceDetailsSummary { - fn default() -> &'a PatchJob_InstanceDetailsSummary { - ::default_instance() - } -} - -impl PatchJob_InstanceDetailsSummary { - pub fn new() -> PatchJob_InstanceDetailsSummary { - ::std::default::Default::default() - } - - // int64 pending_instance_count = 1; - - - pub fn get_pending_instance_count(&self) -> i64 { - self.pending_instance_count - } - pub fn clear_pending_instance_count(&mut self) { - self.pending_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_pending_instance_count(&mut self, v: i64) { - self.pending_instance_count = v; - } - - // int64 inactive_instance_count = 2; - - - pub fn get_inactive_instance_count(&self) -> i64 { - self.inactive_instance_count - } - pub fn clear_inactive_instance_count(&mut self) { - self.inactive_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_inactive_instance_count(&mut self, v: i64) { - self.inactive_instance_count = v; - } - - // int64 notified_instance_count = 3; - - - pub fn get_notified_instance_count(&self) -> i64 { - self.notified_instance_count - } - pub fn clear_notified_instance_count(&mut self) { - self.notified_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_notified_instance_count(&mut self, v: i64) { - self.notified_instance_count = v; - } - - // int64 started_instance_count = 4; - - - pub fn get_started_instance_count(&self) -> i64 { - self.started_instance_count - } - pub fn clear_started_instance_count(&mut self) { - self.started_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_started_instance_count(&mut self, v: i64) { - self.started_instance_count = v; - } - - // int64 downloading_patches_instance_count = 5; - - - pub fn get_downloading_patches_instance_count(&self) -> i64 { - self.downloading_patches_instance_count - } - pub fn clear_downloading_patches_instance_count(&mut self) { - self.downloading_patches_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_downloading_patches_instance_count(&mut self, v: i64) { - self.downloading_patches_instance_count = v; - } - - // int64 applying_patches_instance_count = 6; - - - pub fn get_applying_patches_instance_count(&self) -> i64 { - self.applying_patches_instance_count - } - pub fn clear_applying_patches_instance_count(&mut self) { - self.applying_patches_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_applying_patches_instance_count(&mut self, v: i64) { - self.applying_patches_instance_count = v; - } - - // int64 rebooting_instance_count = 7; - - - pub fn get_rebooting_instance_count(&self) -> i64 { - self.rebooting_instance_count - } - pub fn clear_rebooting_instance_count(&mut self) { - self.rebooting_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_rebooting_instance_count(&mut self, v: i64) { - self.rebooting_instance_count = v; - } - - // int64 succeeded_instance_count = 8; - - - pub fn get_succeeded_instance_count(&self) -> i64 { - self.succeeded_instance_count - } - pub fn clear_succeeded_instance_count(&mut self) { - self.succeeded_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_succeeded_instance_count(&mut self, v: i64) { - self.succeeded_instance_count = v; - } - - // int64 succeeded_reboot_required_instance_count = 9; - - - pub fn get_succeeded_reboot_required_instance_count(&self) -> i64 { - self.succeeded_reboot_required_instance_count - } - pub fn clear_succeeded_reboot_required_instance_count(&mut self) { - self.succeeded_reboot_required_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_succeeded_reboot_required_instance_count(&mut self, v: i64) { - self.succeeded_reboot_required_instance_count = v; - } - - // int64 failed_instance_count = 10; - - - pub fn get_failed_instance_count(&self) -> i64 { - self.failed_instance_count - } - pub fn clear_failed_instance_count(&mut self) { - self.failed_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_failed_instance_count(&mut self, v: i64) { - self.failed_instance_count = v; - } - - // int64 acked_instance_count = 11; - - - pub fn get_acked_instance_count(&self) -> i64 { - self.acked_instance_count - } - pub fn clear_acked_instance_count(&mut self) { - self.acked_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_acked_instance_count(&mut self, v: i64) { - self.acked_instance_count = v; - } - - // int64 timed_out_instance_count = 12; - - - pub fn get_timed_out_instance_count(&self) -> i64 { - self.timed_out_instance_count - } - pub fn clear_timed_out_instance_count(&mut self) { - self.timed_out_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_timed_out_instance_count(&mut self, v: i64) { - self.timed_out_instance_count = v; - } - - // int64 pre_patch_step_instance_count = 13; - - - pub fn get_pre_patch_step_instance_count(&self) -> i64 { - self.pre_patch_step_instance_count - } - pub fn clear_pre_patch_step_instance_count(&mut self) { - self.pre_patch_step_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_pre_patch_step_instance_count(&mut self, v: i64) { - self.pre_patch_step_instance_count = v; - } - - // int64 post_patch_step_instance_count = 14; - - - pub fn get_post_patch_step_instance_count(&self) -> i64 { - self.post_patch_step_instance_count - } - pub fn clear_post_patch_step_instance_count(&mut self) { - self.post_patch_step_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_post_patch_step_instance_count(&mut self, v: i64) { - self.post_patch_step_instance_count = v; - } - - // int64 no_agent_detected_instance_count = 15; - - - pub fn get_no_agent_detected_instance_count(&self) -> i64 { - self.no_agent_detected_instance_count - } - pub fn clear_no_agent_detected_instance_count(&mut self) { - self.no_agent_detected_instance_count = 0; - } - - // Param is passed by value, moved - pub fn set_no_agent_detected_instance_count(&mut self, v: i64) { - self.no_agent_detected_instance_count = v; - } -} - -impl ::protobuf::Message for PatchJob_InstanceDetailsSummary { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.pending_instance_count = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.inactive_instance_count = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.notified_instance_count = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.started_instance_count = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.downloading_patches_instance_count = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.applying_patches_instance_count = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.rebooting_instance_count = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.succeeded_instance_count = tmp; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.succeeded_reboot_required_instance_count = tmp; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.failed_instance_count = tmp; - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.acked_instance_count = tmp; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.timed_out_instance_count = tmp; - }, - 13 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.pre_patch_step_instance_count = tmp; - }, - 14 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.post_patch_step_instance_count = tmp; - }, - 15 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.no_agent_detected_instance_count = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.pending_instance_count != 0 { - my_size += ::protobuf::rt::value_size(1, self.pending_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.inactive_instance_count != 0 { - my_size += ::protobuf::rt::value_size(2, self.inactive_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.notified_instance_count != 0 { - my_size += ::protobuf::rt::value_size(3, self.notified_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.started_instance_count != 0 { - my_size += ::protobuf::rt::value_size(4, self.started_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.downloading_patches_instance_count != 0 { - my_size += ::protobuf::rt::value_size(5, self.downloading_patches_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.applying_patches_instance_count != 0 { - my_size += ::protobuf::rt::value_size(6, self.applying_patches_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.rebooting_instance_count != 0 { - my_size += ::protobuf::rt::value_size(7, self.rebooting_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.succeeded_instance_count != 0 { - my_size += ::protobuf::rt::value_size(8, self.succeeded_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.succeeded_reboot_required_instance_count != 0 { - my_size += ::protobuf::rt::value_size(9, self.succeeded_reboot_required_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.failed_instance_count != 0 { - my_size += ::protobuf::rt::value_size(10, self.failed_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.acked_instance_count != 0 { - my_size += ::protobuf::rt::value_size(11, self.acked_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.timed_out_instance_count != 0 { - my_size += ::protobuf::rt::value_size(12, self.timed_out_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.pre_patch_step_instance_count != 0 { - my_size += ::protobuf::rt::value_size(13, self.pre_patch_step_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.post_patch_step_instance_count != 0 { - my_size += ::protobuf::rt::value_size(14, self.post_patch_step_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.no_agent_detected_instance_count != 0 { - my_size += ::protobuf::rt::value_size(15, self.no_agent_detected_instance_count, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.pending_instance_count != 0 { - os.write_int64(1, self.pending_instance_count)?; - } - if self.inactive_instance_count != 0 { - os.write_int64(2, self.inactive_instance_count)?; - } - if self.notified_instance_count != 0 { - os.write_int64(3, self.notified_instance_count)?; - } - if self.started_instance_count != 0 { - os.write_int64(4, self.started_instance_count)?; - } - if self.downloading_patches_instance_count != 0 { - os.write_int64(5, self.downloading_patches_instance_count)?; - } - if self.applying_patches_instance_count != 0 { - os.write_int64(6, self.applying_patches_instance_count)?; - } - if self.rebooting_instance_count != 0 { - os.write_int64(7, self.rebooting_instance_count)?; - } - if self.succeeded_instance_count != 0 { - os.write_int64(8, self.succeeded_instance_count)?; - } - if self.succeeded_reboot_required_instance_count != 0 { - os.write_int64(9, self.succeeded_reboot_required_instance_count)?; - } - if self.failed_instance_count != 0 { - os.write_int64(10, self.failed_instance_count)?; - } - if self.acked_instance_count != 0 { - os.write_int64(11, self.acked_instance_count)?; - } - if self.timed_out_instance_count != 0 { - os.write_int64(12, self.timed_out_instance_count)?; - } - if self.pre_patch_step_instance_count != 0 { - os.write_int64(13, self.pre_patch_step_instance_count)?; - } - if self.post_patch_step_instance_count != 0 { - os.write_int64(14, self.post_patch_step_instance_count)?; - } - if self.no_agent_detected_instance_count != 0 { - os.write_int64(15, self.no_agent_detected_instance_count)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchJob_InstanceDetailsSummary { - PatchJob_InstanceDetailsSummary::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "pending_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.pending_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.pending_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "inactive_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.inactive_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.inactive_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "notified_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.notified_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.notified_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "started_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.started_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.started_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "downloading_patches_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.downloading_patches_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.downloading_patches_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "applying_patches_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.applying_patches_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.applying_patches_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "rebooting_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.rebooting_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.rebooting_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "succeeded_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.succeeded_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.succeeded_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "succeeded_reboot_required_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.succeeded_reboot_required_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.succeeded_reboot_required_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "failed_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.failed_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.failed_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "acked_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.acked_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.acked_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "timed_out_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.timed_out_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.timed_out_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "pre_patch_step_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.pre_patch_step_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.pre_patch_step_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "post_patch_step_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.post_patch_step_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.post_patch_step_instance_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "no_agent_detected_instance_count", - |m: &PatchJob_InstanceDetailsSummary| { &m.no_agent_detected_instance_count }, - |m: &mut PatchJob_InstanceDetailsSummary| { &mut m.no_agent_detected_instance_count }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchJob.InstanceDetailsSummary", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchJob_InstanceDetailsSummary { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchJob_InstanceDetailsSummary::new) - } -} - -impl ::protobuf::Clear for PatchJob_InstanceDetailsSummary { - fn clear(&mut self) { - self.pending_instance_count = 0; - self.inactive_instance_count = 0; - self.notified_instance_count = 0; - self.started_instance_count = 0; - self.downloading_patches_instance_count = 0; - self.applying_patches_instance_count = 0; - self.rebooting_instance_count = 0; - self.succeeded_instance_count = 0; - self.succeeded_reboot_required_instance_count = 0; - self.failed_instance_count = 0; - self.acked_instance_count = 0; - self.timed_out_instance_count = 0; - self.pre_patch_step_instance_count = 0; - self.post_patch_step_instance_count = 0; - self.no_agent_detected_instance_count = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchJob_InstanceDetailsSummary { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchJob_InstanceDetailsSummary { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PatchJob_State { - STATE_UNSPECIFIED = 0, - STARTED = 1, - INSTANCE_LOOKUP = 2, - PATCHING = 3, - SUCCEEDED = 4, - COMPLETED_WITH_ERRORS = 5, - CANCELED = 6, - TIMED_OUT = 7, -} - -impl ::protobuf::ProtobufEnum for PatchJob_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PatchJob_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(PatchJob_State::STARTED), - 2 => ::std::option::Option::Some(PatchJob_State::INSTANCE_LOOKUP), - 3 => ::std::option::Option::Some(PatchJob_State::PATCHING), - 4 => ::std::option::Option::Some(PatchJob_State::SUCCEEDED), - 5 => ::std::option::Option::Some(PatchJob_State::COMPLETED_WITH_ERRORS), - 6 => ::std::option::Option::Some(PatchJob_State::CANCELED), - 7 => ::std::option::Option::Some(PatchJob_State::TIMED_OUT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PatchJob_State] = &[ - PatchJob_State::STATE_UNSPECIFIED, - PatchJob_State::STARTED, - PatchJob_State::INSTANCE_LOOKUP, - PatchJob_State::PATCHING, - PatchJob_State::SUCCEEDED, - PatchJob_State::COMPLETED_WITH_ERRORS, - PatchJob_State::CANCELED, - PatchJob_State::TIMED_OUT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PatchJob.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PatchJob_State { -} - -impl ::std::default::Default for PatchJob_State { - fn default() -> Self { - PatchJob_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchJob_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchConfig { - // message fields - pub reboot_config: PatchConfig_RebootConfig, - pub apt: ::protobuf::SingularPtrField, - pub yum: ::protobuf::SingularPtrField, - pub goo: ::protobuf::SingularPtrField, - pub zypper: ::protobuf::SingularPtrField, - pub windows_update: ::protobuf::SingularPtrField, - pub pre_step: ::protobuf::SingularPtrField, - pub post_step: ::protobuf::SingularPtrField, - pub mig_instances_allowed: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchConfig { - fn default() -> &'a PatchConfig { - ::default_instance() - } -} - -impl PatchConfig { - pub fn new() -> PatchConfig { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.PatchConfig.RebootConfig reboot_config = 1; - - - pub fn get_reboot_config(&self) -> PatchConfig_RebootConfig { - self.reboot_config - } - pub fn clear_reboot_config(&mut self) { - self.reboot_config = PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_reboot_config(&mut self, v: PatchConfig_RebootConfig) { - self.reboot_config = v; - } - - // .google.cloud.osconfig.v1.AptSettings apt = 3; - - - pub fn get_apt(&self) -> &AptSettings { - self.apt.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_apt(&mut self) { - self.apt.clear(); - } - - pub fn has_apt(&self) -> bool { - self.apt.is_some() - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: AptSettings) { - self.apt = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_apt(&mut self) -> &mut AptSettings { - if self.apt.is_none() { - self.apt.set_default(); - } - self.apt.as_mut().unwrap() - } - - // Take field - pub fn take_apt(&mut self) -> AptSettings { - self.apt.take().unwrap_or_else(|| AptSettings::new()) - } - - // .google.cloud.osconfig.v1.YumSettings yum = 4; - - - pub fn get_yum(&self) -> &YumSettings { - self.yum.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_yum(&mut self) { - self.yum.clear(); - } - - pub fn has_yum(&self) -> bool { - self.yum.is_some() - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: YumSettings) { - self.yum = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_yum(&mut self) -> &mut YumSettings { - if self.yum.is_none() { - self.yum.set_default(); - } - self.yum.as_mut().unwrap() - } - - // Take field - pub fn take_yum(&mut self) -> YumSettings { - self.yum.take().unwrap_or_else(|| YumSettings::new()) - } - - // .google.cloud.osconfig.v1.GooSettings goo = 5; - - - pub fn get_goo(&self) -> &GooSettings { - self.goo.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_goo(&mut self) { - self.goo.clear(); - } - - pub fn has_goo(&self) -> bool { - self.goo.is_some() - } - - // Param is passed by value, moved - pub fn set_goo(&mut self, v: GooSettings) { - self.goo = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_goo(&mut self) -> &mut GooSettings { - if self.goo.is_none() { - self.goo.set_default(); - } - self.goo.as_mut().unwrap() - } - - // Take field - pub fn take_goo(&mut self) -> GooSettings { - self.goo.take().unwrap_or_else(|| GooSettings::new()) - } - - // .google.cloud.osconfig.v1.ZypperSettings zypper = 6; - - - pub fn get_zypper(&self) -> &ZypperSettings { - self.zypper.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_zypper(&mut self) { - self.zypper.clear(); - } - - pub fn has_zypper(&self) -> bool { - self.zypper.is_some() - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: ZypperSettings) { - self.zypper = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_zypper(&mut self) -> &mut ZypperSettings { - if self.zypper.is_none() { - self.zypper.set_default(); - } - self.zypper.as_mut().unwrap() - } - - // Take field - pub fn take_zypper(&mut self) -> ZypperSettings { - self.zypper.take().unwrap_or_else(|| ZypperSettings::new()) - } - - // .google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7; - - - pub fn get_windows_update(&self) -> &WindowsUpdateSettings { - self.windows_update.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_windows_update(&mut self) { - self.windows_update.clear(); - } - - pub fn has_windows_update(&self) -> bool { - self.windows_update.is_some() - } - - // Param is passed by value, moved - pub fn set_windows_update(&mut self, v: WindowsUpdateSettings) { - self.windows_update = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_windows_update(&mut self) -> &mut WindowsUpdateSettings { - if self.windows_update.is_none() { - self.windows_update.set_default(); - } - self.windows_update.as_mut().unwrap() - } - - // Take field - pub fn take_windows_update(&mut self) -> WindowsUpdateSettings { - self.windows_update.take().unwrap_or_else(|| WindowsUpdateSettings::new()) - } - - // .google.cloud.osconfig.v1.ExecStep pre_step = 8; - - - pub fn get_pre_step(&self) -> &ExecStep { - self.pre_step.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_pre_step(&mut self) { - self.pre_step.clear(); - } - - pub fn has_pre_step(&self) -> bool { - self.pre_step.is_some() - } - - // Param is passed by value, moved - pub fn set_pre_step(&mut self, v: ExecStep) { - self.pre_step = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_pre_step(&mut self) -> &mut ExecStep { - if self.pre_step.is_none() { - self.pre_step.set_default(); - } - self.pre_step.as_mut().unwrap() - } - - // Take field - pub fn take_pre_step(&mut self) -> ExecStep { - self.pre_step.take().unwrap_or_else(|| ExecStep::new()) - } - - // .google.cloud.osconfig.v1.ExecStep post_step = 9; - - - pub fn get_post_step(&self) -> &ExecStep { - self.post_step.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_post_step(&mut self) { - self.post_step.clear(); - } - - pub fn has_post_step(&self) -> bool { - self.post_step.is_some() - } - - // Param is passed by value, moved - pub fn set_post_step(&mut self, v: ExecStep) { - self.post_step = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_post_step(&mut self) -> &mut ExecStep { - if self.post_step.is_none() { - self.post_step.set_default(); - } - self.post_step.as_mut().unwrap() - } - - // Take field - pub fn take_post_step(&mut self) -> ExecStep { - self.post_step.take().unwrap_or_else(|| ExecStep::new()) - } - - // bool mig_instances_allowed = 10; - - - pub fn get_mig_instances_allowed(&self) -> bool { - self.mig_instances_allowed - } - pub fn clear_mig_instances_allowed(&mut self) { - self.mig_instances_allowed = false; - } - - // Param is passed by value, moved - pub fn set_mig_instances_allowed(&mut self, v: bool) { - self.mig_instances_allowed = v; - } -} - -impl ::protobuf::Message for PatchConfig { - fn is_initialized(&self) -> bool { - for v in &self.apt { - if !v.is_initialized() { - return false; - } - }; - for v in &self.yum { - if !v.is_initialized() { - return false; - } - }; - for v in &self.goo { - if !v.is_initialized() { - return false; - } - }; - for v in &self.zypper { - if !v.is_initialized() { - return false; - } - }; - for v in &self.windows_update { - if !v.is_initialized() { - return false; - } - }; - for v in &self.pre_step { - if !v.is_initialized() { - return false; - } - }; - for v in &self.post_step { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.reboot_config, 1, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.apt)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.yum)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.goo)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.zypper)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.windows_update)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pre_step)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.post_step)?; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mig_instances_allowed = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.reboot_config != PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.reboot_config); - } - if let Some(ref v) = self.apt.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.yum.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.goo.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.zypper.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.windows_update.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.pre_step.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.post_step.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.mig_instances_allowed != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.reboot_config != PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.reboot_config))?; - } - if let Some(ref v) = self.apt.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.yum.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.goo.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.zypper.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.windows_update.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.pre_step.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.post_step.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.mig_instances_allowed != false { - os.write_bool(10, self.mig_instances_allowed)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchConfig { - PatchConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "reboot_config", - |m: &PatchConfig| { &m.reboot_config }, - |m: &mut PatchConfig| { &mut m.reboot_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "apt", - |m: &PatchConfig| { &m.apt }, - |m: &mut PatchConfig| { &mut m.apt }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "yum", - |m: &PatchConfig| { &m.yum }, - |m: &mut PatchConfig| { &mut m.yum }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "goo", - |m: &PatchConfig| { &m.goo }, - |m: &mut PatchConfig| { &mut m.goo }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "zypper", - |m: &PatchConfig| { &m.zypper }, - |m: &mut PatchConfig| { &mut m.zypper }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "windows_update", - |m: &PatchConfig| { &m.windows_update }, - |m: &mut PatchConfig| { &mut m.windows_update }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "pre_step", - |m: &PatchConfig| { &m.pre_step }, - |m: &mut PatchConfig| { &mut m.pre_step }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "post_step", - |m: &PatchConfig| { &m.post_step }, - |m: &mut PatchConfig| { &mut m.post_step }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mig_instances_allowed", - |m: &PatchConfig| { &m.mig_instances_allowed }, - |m: &mut PatchConfig| { &mut m.mig_instances_allowed }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchConfig::new) - } -} - -impl ::protobuf::Clear for PatchConfig { - fn clear(&mut self) { - self.reboot_config = PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED; - self.apt.clear(); - self.yum.clear(); - self.goo.clear(); - self.zypper.clear(); - self.windows_update.clear(); - self.pre_step.clear(); - self.post_step.clear(); - self.mig_instances_allowed = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PatchConfig_RebootConfig { - REBOOT_CONFIG_UNSPECIFIED = 0, - DEFAULT = 1, - ALWAYS = 2, - NEVER = 3, -} - -impl ::protobuf::ProtobufEnum for PatchConfig_RebootConfig { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED), - 1 => ::std::option::Option::Some(PatchConfig_RebootConfig::DEFAULT), - 2 => ::std::option::Option::Some(PatchConfig_RebootConfig::ALWAYS), - 3 => ::std::option::Option::Some(PatchConfig_RebootConfig::NEVER), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PatchConfig_RebootConfig] = &[ - PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED, - PatchConfig_RebootConfig::DEFAULT, - PatchConfig_RebootConfig::ALWAYS, - PatchConfig_RebootConfig::NEVER, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PatchConfig.RebootConfig", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PatchConfig_RebootConfig { -} - -impl ::std::default::Default for PatchConfig_RebootConfig { - fn default() -> Self { - PatchConfig_RebootConfig::REBOOT_CONFIG_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchConfig_RebootConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Instance { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Instance { - fn default() -> &'a Instance { - ::default_instance() - } -} - -impl Instance { - pub fn new() -> Instance { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Instance { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Instance { - Instance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Instance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Instance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Instance::new) - } -} - -impl ::protobuf::Clear for Instance { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Instance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Instance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Instance_PatchState { - PATCH_STATE_UNSPECIFIED = 0, - PENDING = 1, - INACTIVE = 2, - NOTIFIED = 3, - STARTED = 4, - DOWNLOADING_PATCHES = 5, - APPLYING_PATCHES = 6, - REBOOTING = 7, - SUCCEEDED = 8, - SUCCEEDED_REBOOT_REQUIRED = 9, - FAILED = 10, - ACKED = 11, - TIMED_OUT = 12, - RUNNING_PRE_PATCH_STEP = 13, - RUNNING_POST_PATCH_STEP = 14, - NO_AGENT_DETECTED = 15, -} - -impl ::protobuf::ProtobufEnum for Instance_PatchState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Instance_PatchState::PATCH_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Instance_PatchState::PENDING), - 2 => ::std::option::Option::Some(Instance_PatchState::INACTIVE), - 3 => ::std::option::Option::Some(Instance_PatchState::NOTIFIED), - 4 => ::std::option::Option::Some(Instance_PatchState::STARTED), - 5 => ::std::option::Option::Some(Instance_PatchState::DOWNLOADING_PATCHES), - 6 => ::std::option::Option::Some(Instance_PatchState::APPLYING_PATCHES), - 7 => ::std::option::Option::Some(Instance_PatchState::REBOOTING), - 8 => ::std::option::Option::Some(Instance_PatchState::SUCCEEDED), - 9 => ::std::option::Option::Some(Instance_PatchState::SUCCEEDED_REBOOT_REQUIRED), - 10 => ::std::option::Option::Some(Instance_PatchState::FAILED), - 11 => ::std::option::Option::Some(Instance_PatchState::ACKED), - 12 => ::std::option::Option::Some(Instance_PatchState::TIMED_OUT), - 13 => ::std::option::Option::Some(Instance_PatchState::RUNNING_PRE_PATCH_STEP), - 14 => ::std::option::Option::Some(Instance_PatchState::RUNNING_POST_PATCH_STEP), - 15 => ::std::option::Option::Some(Instance_PatchState::NO_AGENT_DETECTED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Instance_PatchState] = &[ - Instance_PatchState::PATCH_STATE_UNSPECIFIED, - Instance_PatchState::PENDING, - Instance_PatchState::INACTIVE, - Instance_PatchState::NOTIFIED, - Instance_PatchState::STARTED, - Instance_PatchState::DOWNLOADING_PATCHES, - Instance_PatchState::APPLYING_PATCHES, - Instance_PatchState::REBOOTING, - Instance_PatchState::SUCCEEDED, - Instance_PatchState::SUCCEEDED_REBOOT_REQUIRED, - Instance_PatchState::FAILED, - Instance_PatchState::ACKED, - Instance_PatchState::TIMED_OUT, - Instance_PatchState::RUNNING_PRE_PATCH_STEP, - Instance_PatchState::RUNNING_POST_PATCH_STEP, - Instance_PatchState::NO_AGENT_DETECTED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Instance.PatchState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Instance_PatchState { -} - -impl ::std::default::Default for Instance_PatchState { - fn default() -> Self { - Instance_PatchState::PATCH_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Instance_PatchState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CancelPatchJobRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CancelPatchJobRequest { - fn default() -> &'a CancelPatchJobRequest { - ::default_instance() - } -} - -impl CancelPatchJobRequest { - pub fn new() -> CancelPatchJobRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CancelPatchJobRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CancelPatchJobRequest { - CancelPatchJobRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CancelPatchJobRequest| { &m.name }, - |m: &mut CancelPatchJobRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CancelPatchJobRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CancelPatchJobRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CancelPatchJobRequest::new) - } -} - -impl ::protobuf::Clear for CancelPatchJobRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CancelPatchJobRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CancelPatchJobRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AptSettings { - // message fields - pub field_type: AptSettings_Type, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_packages: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AptSettings { - fn default() -> &'a AptSettings { - ::default_instance() - } -} - -impl AptSettings { - pub fn new() -> AptSettings { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.AptSettings.Type type = 1; - - - pub fn get_field_type(&self) -> AptSettings_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = AptSettings_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: AptSettings_Type) { - self.field_type = v; - } - - // repeated string excludes = 2; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_packages = 3; - - - pub fn get_exclusive_packages(&self) -> &[::std::string::String] { - &self.exclusive_packages - } - pub fn clear_exclusive_packages(&mut self) { - self.exclusive_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_packages(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_packages(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_packages - } - - // Take field - pub fn take_exclusive_packages(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_packages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AptSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_packages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != AptSettings_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.exclusive_packages { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != AptSettings_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - for v in &self.excludes { - os.write_string(2, &v)?; - }; - for v in &self.exclusive_packages { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AptSettings { - AptSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &AptSettings| { &m.field_type }, - |m: &mut AptSettings| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &AptSettings| { &m.excludes }, - |m: &mut AptSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_packages", - |m: &AptSettings| { &m.exclusive_packages }, - |m: &mut AptSettings| { &mut m.exclusive_packages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AptSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AptSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AptSettings::new) - } -} - -impl ::protobuf::Clear for AptSettings { - fn clear(&mut self) { - self.field_type = AptSettings_Type::TYPE_UNSPECIFIED; - self.excludes.clear(); - self.exclusive_packages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AptSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AptSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AptSettings_Type { - TYPE_UNSPECIFIED = 0, - DIST = 1, - UPGRADE = 2, -} - -impl ::protobuf::ProtobufEnum for AptSettings_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AptSettings_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(AptSettings_Type::DIST), - 2 => ::std::option::Option::Some(AptSettings_Type::UPGRADE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AptSettings_Type] = &[ - AptSettings_Type::TYPE_UNSPECIFIED, - AptSettings_Type::DIST, - AptSettings_Type::UPGRADE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AptSettings.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for AptSettings_Type { -} - -impl ::std::default::Default for AptSettings_Type { - fn default() -> Self { - AptSettings_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for AptSettings_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct YumSettings { - // message fields - pub security: bool, - pub minimal: bool, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_packages: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a YumSettings { - fn default() -> &'a YumSettings { - ::default_instance() - } -} - -impl YumSettings { - pub fn new() -> YumSettings { - ::std::default::Default::default() - } - - // bool security = 1; - - - pub fn get_security(&self) -> bool { - self.security - } - pub fn clear_security(&mut self) { - self.security = false; - } - - // Param is passed by value, moved - pub fn set_security(&mut self, v: bool) { - self.security = v; - } - - // bool minimal = 2; - - - pub fn get_minimal(&self) -> bool { - self.minimal - } - pub fn clear_minimal(&mut self) { - self.minimal = false; - } - - // Param is passed by value, moved - pub fn set_minimal(&mut self, v: bool) { - self.minimal = v; - } - - // repeated string excludes = 3; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_packages = 4; - - - pub fn get_exclusive_packages(&self) -> &[::std::string::String] { - &self.exclusive_packages - } - pub fn clear_exclusive_packages(&mut self) { - self.exclusive_packages.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_packages(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_packages = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_packages(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_packages - } - - // Take field - pub fn take_exclusive_packages(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_packages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for YumSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.security = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.minimal = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_packages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.security != false { - my_size += 2; - } - if self.minimal != false { - my_size += 2; - } - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.exclusive_packages { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.security != false { - os.write_bool(1, self.security)?; - } - if self.minimal != false { - os.write_bool(2, self.minimal)?; - } - for v in &self.excludes { - os.write_string(3, &v)?; - }; - for v in &self.exclusive_packages { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> YumSettings { - YumSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "security", - |m: &YumSettings| { &m.security }, - |m: &mut YumSettings| { &mut m.security }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "minimal", - |m: &YumSettings| { &m.minimal }, - |m: &mut YumSettings| { &mut m.minimal }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &YumSettings| { &m.excludes }, - |m: &mut YumSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_packages", - |m: &YumSettings| { &m.exclusive_packages }, - |m: &mut YumSettings| { &mut m.exclusive_packages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "YumSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static YumSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(YumSettings::new) - } -} - -impl ::protobuf::Clear for YumSettings { - fn clear(&mut self) { - self.security = false; - self.minimal = false; - self.excludes.clear(); - self.exclusive_packages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for YumSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for YumSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GooSettings { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GooSettings { - fn default() -> &'a GooSettings { - ::default_instance() - } -} - -impl GooSettings { - pub fn new() -> GooSettings { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for GooSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GooSettings { - GooSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GooSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GooSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GooSettings::new) - } -} - -impl ::protobuf::Clear for GooSettings { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GooSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GooSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ZypperSettings { - // message fields - pub with_optional: bool, - pub with_update: bool, - pub categories: ::protobuf::RepeatedField<::std::string::String>, - pub severities: ::protobuf::RepeatedField<::std::string::String>, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_patches: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ZypperSettings { - fn default() -> &'a ZypperSettings { - ::default_instance() - } -} - -impl ZypperSettings { - pub fn new() -> ZypperSettings { - ::std::default::Default::default() - } - - // bool with_optional = 1; - - - pub fn get_with_optional(&self) -> bool { - self.with_optional - } - pub fn clear_with_optional(&mut self) { - self.with_optional = false; - } - - // Param is passed by value, moved - pub fn set_with_optional(&mut self, v: bool) { - self.with_optional = v; - } - - // bool with_update = 2; - - - pub fn get_with_update(&self) -> bool { - self.with_update - } - pub fn clear_with_update(&mut self) { - self.with_update = false; - } - - // Param is passed by value, moved - pub fn set_with_update(&mut self, v: bool) { - self.with_update = v; - } - - // repeated string categories = 3; - - - pub fn get_categories(&self) -> &[::std::string::String] { - &self.categories - } - pub fn clear_categories(&mut self) { - self.categories.clear(); - } - - // Param is passed by value, moved - pub fn set_categories(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.categories = v; - } - - // Mutable pointer to the field. - pub fn mut_categories(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.categories - } - - // Take field - pub fn take_categories(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.categories, ::protobuf::RepeatedField::new()) - } - - // repeated string severities = 4; - - - pub fn get_severities(&self) -> &[::std::string::String] { - &self.severities - } - pub fn clear_severities(&mut self) { - self.severities.clear(); - } - - // Param is passed by value, moved - pub fn set_severities(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.severities = v; - } - - // Mutable pointer to the field. - pub fn mut_severities(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.severities - } - - // Take field - pub fn take_severities(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.severities, ::protobuf::RepeatedField::new()) - } - - // repeated string excludes = 5; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_patches = 6; - - - pub fn get_exclusive_patches(&self) -> &[::std::string::String] { - &self.exclusive_patches - } - pub fn clear_exclusive_patches(&mut self) { - self.exclusive_patches.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_patches(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_patches = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_patches(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_patches - } - - // Take field - pub fn take_exclusive_patches(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_patches, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ZypperSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.with_optional = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.with_update = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.categories)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.severities)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_patches)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.with_optional != false { - my_size += 2; - } - if self.with_update != false { - my_size += 2; - } - for value in &self.categories { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.severities { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(5, &value); - }; - for value in &self.exclusive_patches { - my_size += ::protobuf::rt::string_size(6, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.with_optional != false { - os.write_bool(1, self.with_optional)?; - } - if self.with_update != false { - os.write_bool(2, self.with_update)?; - } - for v in &self.categories { - os.write_string(3, &v)?; - }; - for v in &self.severities { - os.write_string(4, &v)?; - }; - for v in &self.excludes { - os.write_string(5, &v)?; - }; - for v in &self.exclusive_patches { - os.write_string(6, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ZypperSettings { - ZypperSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "with_optional", - |m: &ZypperSettings| { &m.with_optional }, - |m: &mut ZypperSettings| { &mut m.with_optional }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "with_update", - |m: &ZypperSettings| { &m.with_update }, - |m: &mut ZypperSettings| { &mut m.with_update }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "categories", - |m: &ZypperSettings| { &m.categories }, - |m: &mut ZypperSettings| { &mut m.categories }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severities", - |m: &ZypperSettings| { &m.severities }, - |m: &mut ZypperSettings| { &mut m.severities }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &ZypperSettings| { &m.excludes }, - |m: &mut ZypperSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_patches", - |m: &ZypperSettings| { &m.exclusive_patches }, - |m: &mut ZypperSettings| { &mut m.exclusive_patches }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ZypperSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ZypperSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ZypperSettings::new) - } -} - -impl ::protobuf::Clear for ZypperSettings { - fn clear(&mut self) { - self.with_optional = false; - self.with_update = false; - self.categories.clear(); - self.severities.clear(); - self.excludes.clear(); - self.exclusive_patches.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ZypperSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ZypperSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WindowsUpdateSettings { - // message fields - pub classifications: ::std::vec::Vec, - pub excludes: ::protobuf::RepeatedField<::std::string::String>, - pub exclusive_patches: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WindowsUpdateSettings { - fn default() -> &'a WindowsUpdateSettings { - ::default_instance() - } -} - -impl WindowsUpdateSettings { - pub fn new() -> WindowsUpdateSettings { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.WindowsUpdateSettings.Classification classifications = 1; - - - pub fn get_classifications(&self) -> &[WindowsUpdateSettings_Classification] { - &self.classifications - } - pub fn clear_classifications(&mut self) { - self.classifications.clear(); - } - - // Param is passed by value, moved - pub fn set_classifications(&mut self, v: ::std::vec::Vec) { - self.classifications = v; - } - - // Mutable pointer to the field. - pub fn mut_classifications(&mut self) -> &mut ::std::vec::Vec { - &mut self.classifications - } - - // Take field - pub fn take_classifications(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.classifications, ::std::vec::Vec::new()) - } - - // repeated string excludes = 2; - - - pub fn get_excludes(&self) -> &[::std::string::String] { - &self.excludes - } - pub fn clear_excludes(&mut self) { - self.excludes.clear(); - } - - // Param is passed by value, moved - pub fn set_excludes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.excludes = v; - } - - // Mutable pointer to the field. - pub fn mut_excludes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.excludes - } - - // Take field - pub fn take_excludes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.excludes, ::protobuf::RepeatedField::new()) - } - - // repeated string exclusive_patches = 3; - - - pub fn get_exclusive_patches(&self) -> &[::std::string::String] { - &self.exclusive_patches - } - pub fn clear_exclusive_patches(&mut self) { - self.exclusive_patches.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusive_patches(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exclusive_patches = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusive_patches(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exclusive_patches - } - - // Take field - pub fn take_exclusive_patches(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exclusive_patches, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for WindowsUpdateSettings { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.classifications, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.excludes)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exclusive_patches)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.classifications { - my_size += ::protobuf::rt::enum_size(1, *value); - }; - for value in &self.excludes { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.exclusive_patches { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.classifications { - os.write_enum(1, ::protobuf::ProtobufEnum::value(v))?; - }; - for v in &self.excludes { - os.write_string(2, &v)?; - }; - for v in &self.exclusive_patches { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WindowsUpdateSettings { - WindowsUpdateSettings::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "classifications", - |m: &WindowsUpdateSettings| { &m.classifications }, - |m: &mut WindowsUpdateSettings| { &mut m.classifications }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "excludes", - |m: &WindowsUpdateSettings| { &m.excludes }, - |m: &mut WindowsUpdateSettings| { &mut m.excludes }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exclusive_patches", - |m: &WindowsUpdateSettings| { &m.exclusive_patches }, - |m: &mut WindowsUpdateSettings| { &mut m.exclusive_patches }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WindowsUpdateSettings", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static WindowsUpdateSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WindowsUpdateSettings::new) - } -} - -impl ::protobuf::Clear for WindowsUpdateSettings { - fn clear(&mut self) { - self.classifications.clear(); - self.excludes.clear(); - self.exclusive_patches.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WindowsUpdateSettings { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WindowsUpdateSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum WindowsUpdateSettings_Classification { - CLASSIFICATION_UNSPECIFIED = 0, - CRITICAL = 1, - SECURITY = 2, - DEFINITION = 3, - DRIVER = 4, - FEATURE_PACK = 5, - SERVICE_PACK = 6, - TOOL = 7, - UPDATE_ROLLUP = 8, - UPDATE = 9, -} - -impl ::protobuf::ProtobufEnum for WindowsUpdateSettings_Classification { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED), - 1 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::CRITICAL), - 2 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::SECURITY), - 3 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::DEFINITION), - 4 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::DRIVER), - 5 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::FEATURE_PACK), - 6 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::SERVICE_PACK), - 7 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::TOOL), - 8 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::UPDATE_ROLLUP), - 9 => ::std::option::Option::Some(WindowsUpdateSettings_Classification::UPDATE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [WindowsUpdateSettings_Classification] = &[ - WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED, - WindowsUpdateSettings_Classification::CRITICAL, - WindowsUpdateSettings_Classification::SECURITY, - WindowsUpdateSettings_Classification::DEFINITION, - WindowsUpdateSettings_Classification::DRIVER, - WindowsUpdateSettings_Classification::FEATURE_PACK, - WindowsUpdateSettings_Classification::SERVICE_PACK, - WindowsUpdateSettings_Classification::TOOL, - WindowsUpdateSettings_Classification::UPDATE_ROLLUP, - WindowsUpdateSettings_Classification::UPDATE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("WindowsUpdateSettings.Classification", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for WindowsUpdateSettings_Classification { -} - -impl ::std::default::Default for WindowsUpdateSettings_Classification { - fn default() -> Self { - WindowsUpdateSettings_Classification::CLASSIFICATION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for WindowsUpdateSettings_Classification { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStep { - // message fields - pub linux_exec_step_config: ::protobuf::SingularPtrField, - pub windows_exec_step_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStep { - fn default() -> &'a ExecStep { - ::default_instance() - } -} - -impl ExecStep { - pub fn new() -> ExecStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1; - - - pub fn get_linux_exec_step_config(&self) -> &ExecStepConfig { - self.linux_exec_step_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_linux_exec_step_config(&mut self) { - self.linux_exec_step_config.clear(); - } - - pub fn has_linux_exec_step_config(&self) -> bool { - self.linux_exec_step_config.is_some() - } - - // Param is passed by value, moved - pub fn set_linux_exec_step_config(&mut self, v: ExecStepConfig) { - self.linux_exec_step_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_linux_exec_step_config(&mut self) -> &mut ExecStepConfig { - if self.linux_exec_step_config.is_none() { - self.linux_exec_step_config.set_default(); - } - self.linux_exec_step_config.as_mut().unwrap() - } - - // Take field - pub fn take_linux_exec_step_config(&mut self) -> ExecStepConfig { - self.linux_exec_step_config.take().unwrap_or_else(|| ExecStepConfig::new()) - } - - // .google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2; - - - pub fn get_windows_exec_step_config(&self) -> &ExecStepConfig { - self.windows_exec_step_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_windows_exec_step_config(&mut self) { - self.windows_exec_step_config.clear(); - } - - pub fn has_windows_exec_step_config(&self) -> bool { - self.windows_exec_step_config.is_some() - } - - // Param is passed by value, moved - pub fn set_windows_exec_step_config(&mut self, v: ExecStepConfig) { - self.windows_exec_step_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_windows_exec_step_config(&mut self) -> &mut ExecStepConfig { - if self.windows_exec_step_config.is_none() { - self.windows_exec_step_config.set_default(); - } - self.windows_exec_step_config.as_mut().unwrap() - } - - // Take field - pub fn take_windows_exec_step_config(&mut self) -> ExecStepConfig { - self.windows_exec_step_config.take().unwrap_or_else(|| ExecStepConfig::new()) - } -} - -impl ::protobuf::Message for ExecStep { - fn is_initialized(&self) -> bool { - for v in &self.linux_exec_step_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.windows_exec_step_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.linux_exec_step_config)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.windows_exec_step_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.linux_exec_step_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.windows_exec_step_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.linux_exec_step_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.windows_exec_step_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStep { - ExecStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "linux_exec_step_config", - |m: &ExecStep| { &m.linux_exec_step_config }, - |m: &mut ExecStep| { &mut m.linux_exec_step_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "windows_exec_step_config", - |m: &ExecStep| { &m.windows_exec_step_config }, - |m: &mut ExecStep| { &mut m.windows_exec_step_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStep::new) - } -} - -impl ::protobuf::Clear for ExecStep { - fn clear(&mut self) { - self.linux_exec_step_config.clear(); - self.windows_exec_step_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecStepConfig { - // message fields - pub allowed_success_codes: ::std::vec::Vec, - pub interpreter: ExecStepConfig_Interpreter, - // message oneof groups - pub executable: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecStepConfig { - fn default() -> &'a ExecStepConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ExecStepConfig_oneof_executable { - local_path(::std::string::String), - gcs_object(GcsObject), -} - -impl ExecStepConfig { - pub fn new() -> ExecStepConfig { - ::std::default::Default::default() - } - - // string local_path = 1; - - - pub fn get_local_path(&self) -> &str { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(ref v)) => v, - _ => "", - } - } - pub fn clear_local_path(&mut self) { - self.executable = ::std::option::Option::None; - } - - pub fn has_local_path(&self) -> bool { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_local_path(&mut self, v: ::std::string::String) { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(v)) - } - - // Mutable pointer to the field. - pub fn mut_local_path(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(_)) = self.executable { - } else { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(::std::string::String::new())); - } - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_local_path(&mut self) -> ::std::string::String { - if self.has_local_path() { - match self.executable.take() { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.cloud.osconfig.v1.GcsObject gcs_object = 2; - - - pub fn get_gcs_object(&self) -> &GcsObject { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs_object(&mut self) { - self.executable = ::std::option::Option::None; - } - - pub fn has_gcs_object(&self) -> bool { - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs_object(&mut self, v: GcsObject) { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs_object(&mut self) -> &mut GcsObject { - if let ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(_)) = self.executable { - } else { - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(GcsObject::new())); - } - match self.executable { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs_object(&mut self) -> GcsObject { - if self.has_gcs_object() { - match self.executable.take() { - ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(v)) => v, - _ => panic!(), - } - } else { - GcsObject::new() - } - } - - // repeated int32 allowed_success_codes = 3; - - - pub fn get_allowed_success_codes(&self) -> &[i32] { - &self.allowed_success_codes - } - pub fn clear_allowed_success_codes(&mut self) { - self.allowed_success_codes.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_success_codes(&mut self, v: ::std::vec::Vec) { - self.allowed_success_codes = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_success_codes(&mut self) -> &mut ::std::vec::Vec { - &mut self.allowed_success_codes - } - - // Take field - pub fn take_allowed_success_codes(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.allowed_success_codes, ::std::vec::Vec::new()) - } - - // .google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4; - - - pub fn get_interpreter(&self) -> ExecStepConfig_Interpreter { - self.interpreter - } - pub fn clear_interpreter(&mut self) { - self.interpreter = ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_interpreter(&mut self, v: ExecStepConfig_Interpreter) { - self.interpreter = v; - } -} - -impl ::protobuf::Message for ExecStepConfig { - fn is_initialized(&self) -> bool { - if let Some(ExecStepConfig_oneof_executable::gcs_object(ref v)) = self.executable { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::local_path(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.executable = ::std::option::Option::Some(ExecStepConfig_oneof_executable::gcs_object(is.read_message()?)); - }, - 3 => { - ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.allowed_success_codes)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.interpreter, 4, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.allowed_success_codes { - my_size += ::protobuf::rt::value_size(3, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if self.interpreter != ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.interpreter); - } - if let ::std::option::Option::Some(ref v) = self.executable { - match v { - &ExecStepConfig_oneof_executable::local_path(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &ExecStepConfig_oneof_executable::gcs_object(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.allowed_success_codes { - os.write_int32(3, *v)?; - }; - if self.interpreter != ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.interpreter))?; - } - if let ::std::option::Option::Some(ref v) = self.executable { - match v { - &ExecStepConfig_oneof_executable::local_path(ref v) => { - os.write_string(1, v)?; - }, - &ExecStepConfig_oneof_executable::gcs_object(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecStepConfig { - ExecStepConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "local_path", - ExecStepConfig::has_local_path, - ExecStepConfig::get_local_path, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, GcsObject>( - "gcs_object", - ExecStepConfig::has_gcs_object, - ExecStepConfig::get_gcs_object, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "allowed_success_codes", - |m: &ExecStepConfig| { &m.allowed_success_codes }, - |m: &mut ExecStepConfig| { &mut m.allowed_success_codes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "interpreter", - |m: &ExecStepConfig| { &m.interpreter }, - |m: &mut ExecStepConfig| { &mut m.interpreter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecStepConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecStepConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecStepConfig::new) - } -} - -impl ::protobuf::Clear for ExecStepConfig { - fn clear(&mut self) { - self.executable = ::std::option::Option::None; - self.executable = ::std::option::Option::None; - self.allowed_success_codes.clear(); - self.interpreter = ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecStepConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ExecStepConfig_Interpreter { - INTERPRETER_UNSPECIFIED = 0, - SHELL = 1, - POWERSHELL = 2, -} - -impl ::protobuf::ProtobufEnum for ExecStepConfig_Interpreter { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED), - 1 => ::std::option::Option::Some(ExecStepConfig_Interpreter::SHELL), - 2 => ::std::option::Option::Some(ExecStepConfig_Interpreter::POWERSHELL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ExecStepConfig_Interpreter] = &[ - ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED, - ExecStepConfig_Interpreter::SHELL, - ExecStepConfig_Interpreter::POWERSHELL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ExecStepConfig.Interpreter", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ExecStepConfig_Interpreter { -} - -impl ::std::default::Default for ExecStepConfig_Interpreter { - fn default() -> Self { - ExecStepConfig_Interpreter::INTERPRETER_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecStepConfig_Interpreter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcsObject { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation_number: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcsObject { - fn default() -> &'a GcsObject { - ::default_instance() - } -} - -impl GcsObject { - pub fn new() -> GcsObject { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string object = 2; - - - pub fn get_object(&self) -> &str { - &self.object - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: ::std::string::String) { - self.object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object(&mut self) -> &mut ::std::string::String { - &mut self.object - } - - // Take field - pub fn take_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object, ::std::string::String::new()) - } - - // int64 generation_number = 3; - - - pub fn get_generation_number(&self) -> i64 { - self.generation_number - } - pub fn clear_generation_number(&mut self) { - self.generation_number = 0; - } - - // Param is passed by value, moved - pub fn set_generation_number(&mut self, v: i64) { - self.generation_number = v; - } -} - -impl ::protobuf::Message for GcsObject { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.generation_number = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.object); - } - if self.generation_number != 0 { - my_size += ::protobuf::rt::value_size(3, self.generation_number, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if self.generation_number != 0 { - os.write_int64(3, self.generation_number)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcsObject { - GcsObject::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &GcsObject| { &m.bucket }, - |m: &mut GcsObject| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &GcsObject| { &m.object }, - |m: &mut GcsObject| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation_number", - |m: &GcsObject| { &m.generation_number }, - |m: &mut GcsObject| { &mut m.generation_number }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcsObject", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcsObject { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcsObject::new) - } -} - -impl ::protobuf::Clear for GcsObject { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation_number = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcsObject { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcsObject { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchInstanceFilter { - // message fields - pub all: bool, - pub group_labels: ::protobuf::RepeatedField, - pub zones: ::protobuf::RepeatedField<::std::string::String>, - pub instances: ::protobuf::RepeatedField<::std::string::String>, - pub instance_name_prefixes: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchInstanceFilter { - fn default() -> &'a PatchInstanceFilter { - ::default_instance() - } -} - -impl PatchInstanceFilter { - pub fn new() -> PatchInstanceFilter { - ::std::default::Default::default() - } - - // bool all = 1; - - - pub fn get_all(&self) -> bool { - self.all - } - pub fn clear_all(&mut self) { - self.all = false; - } - - // Param is passed by value, moved - pub fn set_all(&mut self, v: bool) { - self.all = v; - } - - // repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2; - - - pub fn get_group_labels(&self) -> &[PatchInstanceFilter_GroupLabel] { - &self.group_labels - } - pub fn clear_group_labels(&mut self) { - self.group_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_group_labels(&mut self, v: ::protobuf::RepeatedField) { - self.group_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_group_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.group_labels - } - - // Take field - pub fn take_group_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.group_labels, ::protobuf::RepeatedField::new()) - } - - // repeated string zones = 3; - - - pub fn get_zones(&self) -> &[::std::string::String] { - &self.zones - } - pub fn clear_zones(&mut self) { - self.zones.clear(); - } - - // Param is passed by value, moved - pub fn set_zones(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.zones = v; - } - - // Mutable pointer to the field. - pub fn mut_zones(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.zones - } - - // Take field - pub fn take_zones(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.zones, ::protobuf::RepeatedField::new()) - } - - // repeated string instances = 4; - - - pub fn get_instances(&self) -> &[::std::string::String] { - &self.instances - } - pub fn clear_instances(&mut self) { - self.instances.clear(); - } - - // Param is passed by value, moved - pub fn set_instances(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.instances = v; - } - - // Mutable pointer to the field. - pub fn mut_instances(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.instances - } - - // Take field - pub fn take_instances(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.instances, ::protobuf::RepeatedField::new()) - } - - // repeated string instance_name_prefixes = 5; - - - pub fn get_instance_name_prefixes(&self) -> &[::std::string::String] { - &self.instance_name_prefixes - } - pub fn clear_instance_name_prefixes(&mut self) { - self.instance_name_prefixes.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_name_prefixes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.instance_name_prefixes = v; - } - - // Mutable pointer to the field. - pub fn mut_instance_name_prefixes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.instance_name_prefixes - } - - // Take field - pub fn take_instance_name_prefixes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.instance_name_prefixes, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for PatchInstanceFilter { - fn is_initialized(&self) -> bool { - for v in &self.group_labels { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.all = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.group_labels)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.zones)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.instances)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.instance_name_prefixes)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.all != false { - my_size += 2; - } - for value in &self.group_labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.zones { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.instances { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.instance_name_prefixes { - my_size += ::protobuf::rt::string_size(5, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.all != false { - os.write_bool(1, self.all)?; - } - for v in &self.group_labels { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.zones { - os.write_string(3, &v)?; - }; - for v in &self.instances { - os.write_string(4, &v)?; - }; - for v in &self.instance_name_prefixes { - os.write_string(5, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchInstanceFilter { - PatchInstanceFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "all", - |m: &PatchInstanceFilter| { &m.all }, - |m: &mut PatchInstanceFilter| { &mut m.all }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "group_labels", - |m: &PatchInstanceFilter| { &m.group_labels }, - |m: &mut PatchInstanceFilter| { &mut m.group_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "zones", - |m: &PatchInstanceFilter| { &m.zones }, - |m: &mut PatchInstanceFilter| { &mut m.zones }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instances", - |m: &PatchInstanceFilter| { &m.instances }, - |m: &mut PatchInstanceFilter| { &mut m.instances }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_name_prefixes", - |m: &PatchInstanceFilter| { &m.instance_name_prefixes }, - |m: &mut PatchInstanceFilter| { &mut m.instance_name_prefixes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchInstanceFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchInstanceFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchInstanceFilter::new) - } -} - -impl ::protobuf::Clear for PatchInstanceFilter { - fn clear(&mut self) { - self.all = false; - self.group_labels.clear(); - self.zones.clear(); - self.instances.clear(); - self.instance_name_prefixes.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchInstanceFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchInstanceFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchInstanceFilter_GroupLabel { - // message fields - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchInstanceFilter_GroupLabel { - fn default() -> &'a PatchInstanceFilter_GroupLabel { - ::default_instance() - } -} - -impl PatchInstanceFilter_GroupLabel { - pub fn new() -> PatchInstanceFilter_GroupLabel { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel.LabelsEntry labels = 1; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for PatchInstanceFilter_GroupLabel { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchInstanceFilter_GroupLabel { - PatchInstanceFilter_GroupLabel::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &PatchInstanceFilter_GroupLabel| { &m.labels }, - |m: &mut PatchInstanceFilter_GroupLabel| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchInstanceFilter.GroupLabel", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchInstanceFilter_GroupLabel { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchInstanceFilter_GroupLabel::new) - } -} - -impl ::protobuf::Clear for PatchInstanceFilter_GroupLabel { - fn clear(&mut self) { - self.labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchInstanceFilter_GroupLabel { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchInstanceFilter_GroupLabel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PatchRollout { - // message fields - pub mode: PatchRollout_Mode, - pub disruption_budget: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PatchRollout { - fn default() -> &'a PatchRollout { - ::default_instance() - } -} - -impl PatchRollout { - pub fn new() -> PatchRollout { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.PatchRollout.Mode mode = 1; - - - pub fn get_mode(&self) -> PatchRollout_Mode { - self.mode - } - pub fn clear_mode(&mut self) { - self.mode = PatchRollout_Mode::MODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_mode(&mut self, v: PatchRollout_Mode) { - self.mode = v; - } - - // .google.cloud.osconfig.v1.FixedOrPercent disruption_budget = 2; - - - pub fn get_disruption_budget(&self) -> &super::osconfig_common::FixedOrPercent { - self.disruption_budget.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_disruption_budget(&mut self) { - self.disruption_budget.clear(); - } - - pub fn has_disruption_budget(&self) -> bool { - self.disruption_budget.is_some() - } - - // Param is passed by value, moved - pub fn set_disruption_budget(&mut self, v: super::osconfig_common::FixedOrPercent) { - self.disruption_budget = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_disruption_budget(&mut self) -> &mut super::osconfig_common::FixedOrPercent { - if self.disruption_budget.is_none() { - self.disruption_budget.set_default(); - } - self.disruption_budget.as_mut().unwrap() - } - - // Take field - pub fn take_disruption_budget(&mut self) -> super::osconfig_common::FixedOrPercent { - self.disruption_budget.take().unwrap_or_else(|| super::osconfig_common::FixedOrPercent::new()) - } -} - -impl ::protobuf::Message for PatchRollout { - fn is_initialized(&self) -> bool { - for v in &self.disruption_budget { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.mode, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.disruption_budget)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.mode != PatchRollout_Mode::MODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.mode); - } - if let Some(ref v) = self.disruption_budget.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.mode != PatchRollout_Mode::MODE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.mode))?; - } - if let Some(ref v) = self.disruption_budget.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PatchRollout { - PatchRollout::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "mode", - |m: &PatchRollout| { &m.mode }, - |m: &mut PatchRollout| { &mut m.mode }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "disruption_budget", - |m: &PatchRollout| { &m.disruption_budget }, - |m: &mut PatchRollout| { &mut m.disruption_budget }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PatchRollout", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PatchRollout { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PatchRollout::new) - } -} - -impl ::protobuf::Clear for PatchRollout { - fn clear(&mut self) { - self.mode = PatchRollout_Mode::MODE_UNSPECIFIED; - self.disruption_budget.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PatchRollout { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchRollout { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PatchRollout_Mode { - MODE_UNSPECIFIED = 0, - ZONE_BY_ZONE = 1, - CONCURRENT_ZONES = 2, -} - -impl ::protobuf::ProtobufEnum for PatchRollout_Mode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PatchRollout_Mode::MODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(PatchRollout_Mode::ZONE_BY_ZONE), - 2 => ::std::option::Option::Some(PatchRollout_Mode::CONCURRENT_ZONES), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [PatchRollout_Mode] = &[ - PatchRollout_Mode::MODE_UNSPECIFIED, - PatchRollout_Mode::ZONE_BY_ZONE, - PatchRollout_Mode::CONCURRENT_ZONES, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PatchRollout.Mode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for PatchRollout_Mode { -} - -impl ::std::default::Default for PatchRollout_Mode { - fn default() -> Self { - PatchRollout_Mode::MODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for PatchRollout_Mode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n)google/cloud/osconfig/v1/patch_jobs.proto\x12\x18google.cloud.osconfi\ - g.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.p\ - roto\x1a.google/cloud/osconfig/v1/osconfig_common.proto\x1a\x1egoogle/pr\ - otobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe3\x03\n\ - \x16ExecutePatchJobRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06paren\ - tB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\x02\x12\x20\ - \n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x12[\n\x0finstance_\ - filter\x18\x07\x20\x01(\x0b2-.google.cloud.osconfig.v1.PatchInstanceFilt\ - erR\x0einstanceFilterB\x03\xe0A\x02\x12H\n\x0cpatch_config\x18\x04\x20\ - \x01(\x0b2%.google.cloud.osconfig.v1.PatchConfigR\x0bpatchConfig\x125\n\ - \x08duration\x18\x05\x20\x01(\x0b2\x19.google.protobuf.DurationR\x08dura\ - tion\x12\x17\n\x07dry_run\x18\x06\x20\x01(\x08R\x06dryRun\x12!\n\x0cdisp\ - lay_name\x18\x08\x20\x01(\tR\x0bdisplayName\x12@\n\x07rollout\x18\t\x20\ - \x01(\x0b2&.google.cloud.osconfig.v1.PatchRolloutR\x07rollout\"R\n\x12Ge\ - tPatchJobRequest\x12<\n\x04name\x18\x01\x20\x01(\tR\x04nameB(\xfaA\"\n\ - \x20osconfig.googleapis.com/PatchJob\xe0A\x02\"\xba\x01\n\"ListPatchJobI\ - nstanceDetailsRequest\x12@\n\x06parent\x18\x01\x20\x01(\tR\x06parentB(\ - \xfaA\"\n\x20osconfig.googleapis.com/PatchJob\xe0A\x02\x12\x1b\n\tpage_s\ - ize\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\ - \x01(\tR\tpageToken\x12\x16\n\x06filter\x18\x04\x20\x01(\tR\x06filter\"\ - \xbd\x01\n#ListPatchJobInstanceDetailsResponse\x12n\n\x1apatch_job_insta\ - nce_details\x18\x01\x20\x03(\x0b21.google.cloud.osconfig.v1.PatchJobInst\ - anceDetailsR\x17patchJobInstanceDetails\x12&\n\x0fnext_page_token\x18\ - \x02\x20\x01(\tR\rnextPageToken\"\x92\x02\n\x17PatchJobInstanceDetails\ - \x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\xfaA!\n\x1fcompute.googlea\ - pis.com/Instance\x12,\n\x12instance_system_id\x18\x02\x20\x01(\tR\x10ins\ - tanceSystemId\x12C\n\x05state\x18\x03\x20\x01(\x0e2-.google.cloud.osconf\ - ig.v1.Instance.PatchStateR\x05state\x12%\n\x0efailure_reason\x18\x04\x20\ - \x01(\tR\rfailureReason\x12#\n\rattempt_count\x18\x05\x20\x01(\x03R\x0ca\ - ttemptCount\"\xb7\x01\n\x14ListPatchJobsRequest\x12K\n\x06parent\x18\x01\ - \x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcemanager.googleapis.com/Pro\ - ject\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\ - \x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\ - \x18\x04\x20\x01(\tR\x06filter\"\x82\x01\n\x15ListPatchJobsResponse\x12A\ - \n\npatch_jobs\x18\x01\x20\x03(\x0b2\".google.cloud.osconfig.v1.PatchJob\ - R\tpatchJobs\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToke\ - n\"\x9f\x10\n\x08PatchJob\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\ - \x12!\n\x0cdisplay_name\x18\x0e\x20\x01(\tR\x0bdisplayName\x12\x20\n\x0b\ - description\x18\x02\x20\x01(\tR\x0bdescription\x12;\n\x0bcreate_time\x18\ - \x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0b\ - update_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdate\ - Time\x12>\n\x05state\x18\x05\x20\x01(\x0e2(.google.cloud.osconfig.v1.Pat\ - chJob.StateR\x05state\x12V\n\x0finstance_filter\x18\r\x20\x01(\x0b2-.goo\ - gle.cloud.osconfig.v1.PatchInstanceFilterR\x0einstanceFilter\x12H\n\x0cp\ - atch_config\x18\x07\x20\x01(\x0b2%.google.cloud.osconfig.v1.PatchConfigR\ - \x0bpatchConfig\x125\n\x08duration\x18\x08\x20\x01(\x0b2\x19.google.prot\ - obuf.DurationR\x08duration\x12s\n\x18instance_details_summary\x18\t\x20\ - \x01(\x0b29.google.cloud.osconfig.v1.PatchJob.InstanceDetailsSummaryR\ - \x16instanceDetailsSummary\x12\x17\n\x07dry_run\x18\n\x20\x01(\x08R\x06d\ - ryRun\x12#\n\rerror_message\x18\x0b\x20\x01(\tR\x0cerrorMessage\x12)\n\ - \x10percent_complete\x18\x0c\x20\x01(\x01R\x0fpercentComplete\x12Z\n\x10\ - patch_deployment\x18\x0f\x20\x01(\tR\x0fpatchDeploymentB/\xfaA)\n'osconf\ - ig.googleapis.com/PatchDeployment\xe0A\x03\x12@\n\x07rollout\x18\x10\x20\ - \x01(\x0b2&.google.cloud.osconfig.v1.PatchRolloutR\x07rollout\x1a\xc1\ - \x07\n\x16InstanceDetailsSummary\x124\n\x16pending_instance_count\x18\ - \x01\x20\x01(\x03R\x14pendingInstanceCount\x126\n\x17inactive_instance_c\ - ount\x18\x02\x20\x01(\x03R\x15inactiveInstanceCount\x126\n\x17notified_i\ - nstance_count\x18\x03\x20\x01(\x03R\x15notifiedInstanceCount\x124\n\x16s\ - tarted_instance_count\x18\x04\x20\x01(\x03R\x14startedInstanceCount\x12K\ - \n\"downloading_patches_instance_count\x18\x05\x20\x01(\x03R\x1fdownload\ - ingPatchesInstanceCount\x12E\n\x1fapplying_patches_instance_count\x18\ - \x06\x20\x01(\x03R\x1capplyingPatchesInstanceCount\x128\n\x18rebooting_i\ - nstance_count\x18\x07\x20\x01(\x03R\x16rebootingInstanceCount\x128\n\x18\ - succeeded_instance_count\x18\x08\x20\x01(\x03R\x16succeededInstanceCount\ - \x12V\n(succeeded_reboot_required_instance_count\x18\t\x20\x01(\x03R$suc\ - ceededRebootRequiredInstanceCount\x122\n\x15failed_instance_count\x18\n\ - \x20\x01(\x03R\x13failedInstanceCount\x120\n\x14acked_instance_count\x18\ - \x0b\x20\x01(\x03R\x12ackedInstanceCount\x127\n\x18timed_out_instance_co\ - unt\x18\x0c\x20\x01(\x03R\x15timedOutInstanceCount\x12@\n\x1dpre_patch_s\ - tep_instance_count\x18\r\x20\x01(\x03R\x19prePatchStepInstanceCount\x12B\ - \n\x1epost_patch_step_instance_count\x18\x0e\x20\x01(\x03R\x1apostPatchS\ - tepInstanceCount\x12F\n\x20no_agent_detected_instance_count\x18\x0f\x20\ - \x01(\x03R\x1cnoAgentDetectedInstanceCount\"\x95\x01\n\x05State\x12\x15\ - \n\x11STATE_UNSPECIFIED\x10\0\x12\x0b\n\x07STARTED\x10\x01\x12\x13\n\x0f\ - INSTANCE_LOOKUP\x10\x02\x12\x0c\n\x08PATCHING\x10\x03\x12\r\n\tSUCCEEDED\ - \x10\x04\x12\x19\n\x15COMPLETED_WITH_ERRORS\x10\x05\x12\x0c\n\x08CANCELE\ - D\x10\x06\x12\r\n\tTIMED_OUT\x10\x07:O\xeaAL\n\x20osconfig.googleapis.co\ - m/PatchJob\x12(projects/{project}/patchJobs/{patch_job}\"\xb2\x05\n\x0bP\ - atchConfig\x12W\n\rreboot_config\x18\x01\x20\x01(\x0e22.google.cloud.osc\ - onfig.v1.PatchConfig.RebootConfigR\x0crebootConfig\x127\n\x03apt\x18\x03\ - \x20\x01(\x0b2%.google.cloud.osconfig.v1.AptSettingsR\x03apt\x127\n\x03y\ - um\x18\x04\x20\x01(\x0b2%.google.cloud.osconfig.v1.YumSettingsR\x03yum\ - \x127\n\x03goo\x18\x05\x20\x01(\x0b2%.google.cloud.osconfig.v1.GooSettin\ - gsR\x03goo\x12@\n\x06zypper\x18\x06\x20\x01(\x0b2(.google.cloud.osconfig\ - .v1.ZypperSettingsR\x06zypper\x12V\n\x0ewindows_update\x18\x07\x20\x01(\ - \x0b2/.google.cloud.osconfig.v1.WindowsUpdateSettingsR\rwindowsUpdate\ - \x12=\n\x08pre_step\x18\x08\x20\x01(\x0b2\".google.cloud.osconfig.v1.Exe\ - cStepR\x07preStep\x12?\n\tpost_step\x18\t\x20\x01(\x0b2\".google.cloud.o\ - sconfig.v1.ExecStepR\x08postStep\x122\n\x15mig_instances_allowed\x18\n\ - \x20\x01(\x08R\x13migInstancesAllowed\"Q\n\x0cRebootConfig\x12\x1d\n\x19\ - REBOOT_CONFIG_UNSPECIFIED\x10\0\x12\x0b\n\x07DEFAULT\x10\x01\x12\n\n\x06\ - ALWAYS\x10\x02\x12\t\n\x05NEVER\x10\x03\"\xce\x02\n\x08Instance\"\xc1\ - \x02\n\nPatchState\x12\x1b\n\x17PATCH_STATE_UNSPECIFIED\x10\0\x12\x0b\n\ - \x07PENDING\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\x12\x0c\n\x08NOTIFIED\ - \x10\x03\x12\x0b\n\x07STARTED\x10\x04\x12\x17\n\x13DOWNLOADING_PATCHES\ - \x10\x05\x12\x14\n\x10APPLYING_PATCHES\x10\x06\x12\r\n\tREBOOTING\x10\ - \x07\x12\r\n\tSUCCEEDED\x10\x08\x12\x1d\n\x19SUCCEEDED_REBOOT_REQUIRED\ - \x10\t\x12\n\n\x06FAILED\x10\n\x12\t\n\x05ACKED\x10\x0b\x12\r\n\tTIMED_O\ - UT\x10\x0c\x12\x1a\n\x16RUNNING_PRE_PATCH_STEP\x10\r\x12\x1b\n\x17RUNNIN\ - G_POST_PATCH_STEP\x10\x0e\x12\x15\n\x11NO_AGENT_DETECTED\x10\x0f\"U\n\ - \x15CancelPatchJobRequest\x12<\n\x04name\x18\x01\x20\x01(\tR\x04nameB(\ - \xfaA\"\n\x20osconfig.googleapis.com/PatchJob\xe0A\x02\"\xcd\x01\n\x0bAp\ - tSettings\x12>\n\x04type\x18\x01\x20\x01(\x0e2*.google.cloud.osconfig.v1\ - .AptSettings.TypeR\x04type\x12\x1a\n\x08excludes\x18\x02\x20\x03(\tR\x08\ - excludes\x12-\n\x12exclusive_packages\x18\x03\x20\x03(\tR\x11exclusivePa\ - ckages\"3\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x08\n\x04DIS\ - T\x10\x01\x12\x0b\n\x07UPGRADE\x10\x02\"\x8e\x01\n\x0bYumSettings\x12\ - \x1a\n\x08security\x18\x01\x20\x01(\x08R\x08security\x12\x18\n\x07minima\ - l\x18\x02\x20\x01(\x08R\x07minimal\x12\x1a\n\x08excludes\x18\x03\x20\x03\ - (\tR\x08excludes\x12-\n\x12exclusive_packages\x18\x04\x20\x03(\tR\x11exc\ - lusivePackages\"\r\n\x0bGooSettings\"\xdf\x01\n\x0eZypperSettings\x12#\n\ - \rwith_optional\x18\x01\x20\x01(\x08R\x0cwithOptional\x12\x1f\n\x0bwith_\ - update\x18\x02\x20\x01(\x08R\nwithUpdate\x12\x1e\n\ncategories\x18\x03\ - \x20\x03(\tR\ncategories\x12\x1e\n\nseverities\x18\x04\x20\x03(\tR\nseve\ - rities\x12\x1a\n\x08excludes\x18\x05\x20\x03(\tR\x08excludes\x12+\n\x11e\ - xclusive_patches\x18\x06\x20\x03(\tR\x10exclusivePatches\"\x82\x03\n\x15\ - WindowsUpdateSettings\x12h\n\x0fclassifications\x18\x01\x20\x03(\x0e2>.g\ - oogle.cloud.osconfig.v1.WindowsUpdateSettings.ClassificationR\x0fclassif\ - ications\x12\x1a\n\x08excludes\x18\x02\x20\x03(\tR\x08excludes\x12+\n\ - \x11exclusive_patches\x18\x03\x20\x03(\tR\x10exclusivePatches\"\xb5\x01\ - \n\x0eClassification\x12\x1e\n\x1aCLASSIFICATION_UNSPECIFIED\x10\0\x12\ - \x0c\n\x08CRITICAL\x10\x01\x12\x0c\n\x08SECURITY\x10\x02\x12\x0e\n\nDEFI\ - NITION\x10\x03\x12\n\n\x06DRIVER\x10\x04\x12\x10\n\x0cFEATURE_PACK\x10\ - \x05\x12\x10\n\x0cSERVICE_PACK\x10\x06\x12\x08\n\x04TOOL\x10\x07\x12\x11\ - \n\rUPDATE_ROLLUP\x10\x08\x12\n\n\x06UPDATE\x10\t\"\xcc\x01\n\x08ExecSte\ - p\x12]\n\x16linux_exec_step_config\x18\x01\x20\x01(\x0b2(.google.cloud.o\ - sconfig.v1.ExecStepConfigR\x13linuxExecStepConfig\x12a\n\x18windows_exec\ - _step_config\x18\x02\x20\x01(\x0b2(.google.cloud.osconfig.v1.ExecStepCon\ - figR\x15windowsExecStepConfig\"\xd8\x02\n\x0eExecStepConfig\x12\x1f\n\nl\ - ocal_path\x18\x01\x20\x01(\tH\0R\tlocalPath\x12D\n\ngcs_object\x18\x02\ - \x20\x01(\x0b2#.google.cloud.osconfig.v1.GcsObjectH\0R\tgcsObject\x122\n\ - \x15allowed_success_codes\x18\x03\x20\x03(\x05R\x13allowedSuccessCodes\ - \x12V\n\x0binterpreter\x18\x04\x20\x01(\x0e24.google.cloud.osconfig.v1.E\ - xecStepConfig.InterpreterR\x0binterpreter\"E\n\x0bInterpreter\x12\x1b\n\ - \x17INTERPRETER_UNSPECIFIED\x10\0\x12\t\n\x05SHELL\x10\x01\x12\x0e\n\nPO\ - WERSHELL\x10\x02B\x0c\n\nexecutable\"w\n\tGcsObject\x12\x1b\n\x06bucket\ - \x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06object\x18\x02\ - \x20\x01(\tR\x06objectB\x03\xe0A\x02\x120\n\x11generation_number\x18\x03\ - \x20\x01(\x03R\x10generationNumberB\x03\xe0A\x02\"\x96\x03\n\x13PatchIns\ - tanceFilter\x12\x10\n\x03all\x18\x01\x20\x01(\x08R\x03all\x12[\n\x0cgrou\ - p_labels\x18\x02\x20\x03(\x0b28.google.cloud.osconfig.v1.PatchInstanceFi\ - lter.GroupLabelR\x0bgroupLabels\x12\x14\n\x05zones\x18\x03\x20\x03(\tR\ - \x05zones\x12\x1c\n\tinstances\x18\x04\x20\x03(\tR\tinstances\x124\n\x16\ - instance_name_prefixes\x18\x05\x20\x03(\tR\x14instanceNamePrefixes\x1a\ - \xa5\x01\n\nGroupLabel\x12\\\n\x06labels\x18\x01\x20\x03(\x0b2D.google.c\ - loud.osconfig.v1.PatchInstanceFilter.GroupLabel.LabelsEntryR\x06labels\ - \x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\ - \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xec\x01\n\x0cPa\ - tchRollout\x12?\n\x04mode\x18\x01\x20\x01(\x0e2+.google.cloud.osconfig.v\ - 1.PatchRollout.ModeR\x04mode\x12U\n\x11disruption_budget\x18\x02\x20\x01\ - (\x0b2(.google.cloud.osconfig.v1.FixedOrPercentR\x10disruptionBudget\"D\ - \n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\0\x12\x10\n\x0cZONE_BY_ZONE\ - \x10\x01\x12\x14\n\x10CONCURRENT_ZONES\x10\x02B\xb7\x01\n\x1ccom.google.\ - cloud.osconfig.v1B\tPatchJobsZ8cloud.google.com/go/osconfig/apiv1/osconf\ - igpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\C\ - loud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::V1J\xbe\xd8\x01\n\ - \x07\x12\x05\x0e\0\xe5\x05\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202020\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\ - \x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\08\n\t\n\x02\x03\x03\x12\x03\ - \x15\0(\n\t\n\x02\x03\x04\x12\x03\x16\0)\n\x08\n\x01\x08\x12\x03\x18\05\ - \n\t\n\x02\x08%\x12\x03\x18\05\n\x08\n\x01\x08\x12\x03\x19\0O\n\t\n\x02\ - \x08\x0b\x12\x03\x19\0O\n\x08\n\x01\x08\x12\x03\x1a\0*\n\t\n\x02\x08\x08\ - \x12\x03\x1a\0*\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\x02\x08\x01\x12\x03\ - \x1b\05\n\x08\n\x01\x08\x12\x03\x1c\05\n\t\n\x02\x08)\x12\x03\x1c\05\n\ - \x08\n\x01\x08\x12\x03\x1d\04\n\t\n\x02\x08-\x12\x03\x1d\04\nV\n\x02\x04\ - \0\x12\x04!\0D\x01\x1aJ\x20A\x20request\x20message\x20to\x20initiate\x20\ - patching\x20across\x20Compute\x20Engine\n\x20instances.\n\n\n\n\x03\x04\ - \0\x01\x12\x03!\x08\x1e\nY\n\x04\x04\0\x02\0\x12\x04#\x02(\x04\x1aK\x20R\ - equired.\x20The\x20project\x20in\x20which\x20to\x20run\x20this\x20patch\ - \x20in\x20the\x20form\x20`projects/*`\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ - \x03#\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03#\t\x0f\n\x0c\n\x05\x04\ - \0\x02\0\x03\x12\x03#\x12\x13\n\r\n\x05\x04\0\x02\0\x08\x12\x04#\x14(\ - \x03\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03$\x04*\n\x0f\n\x07\x04\ - \0\x02\0\x08\x9f\x08\x12\x04%\x04'\x05\nf\n\x04\x04\0\x02\x01\x12\x03,\ - \x02\x19\x1aY\x20Description\x20of\x20the\x20patch\x20job.\x20Length\x20\ - of\x20the\x20description\x20is\x20limited\n\x20to\x201024\x20characters.\ - \n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03,\x02\x08\n\x0c\n\x05\x04\0\x02\ - \x01\x01\x12\x03,\t\x14\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03,\x17\x18\n\ - u\n\x04\x04\0\x02\x02\x12\x040\x021/\x1ag\x20Required.\x20Instances\x20t\ - o\x20patch,\x20either\x20explicitly\x20or\x20filtered\x20by\x20some\n\ - \x20criteria\x20such\x20as\x20zone\x20or\x20labels.\n\n\x0c\n\x05\x04\0\ - \x02\x02\x06\x12\x030\x02\x15\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x030\x16\ - %\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x030()\n\x0c\n\x05\x04\0\x02\x02\x08\ - \x12\x031\x06.\n\x0f\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x031\x07-\nv\ - \n\x04\x04\0\x02\x03\x12\x035\x02\x1f\x1ai\x20Patch\x20configuration\x20\ - being\x20applied.\x20If\x20omitted,\x20instances\x20are\n\x20patched\x20\ - using\x20the\x20default\x20configurations.\n\n\x0c\n\x05\x04\0\x02\x03\ - \x06\x12\x035\x02\r\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x035\x0e\x1a\n\x0c\ - \n\x05\x04\0\x02\x03\x03\x12\x035\x1d\x1e\n\\\n\x04\x04\0\x02\x04\x12\ - \x039\x02(\x1aO\x20Duration\x20of\x20the\x20patch\x20job.\x20After\x20th\ - e\x20duration\x20ends,\x20the\x20patch\x20job\n\x20times\x20out.\n\n\x0c\ - \n\x05\x04\0\x02\x04\x06\x12\x039\x02\x1a\n\x0c\n\x05\x04\0\x02\x04\x01\ - \x12\x039\x1b#\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x039&'\n]\n\x04\x04\0\ - \x02\x05\x12\x03=\x02\x13\x1aP\x20If\x20this\x20patch\x20is\x20a\x20dry-\ - run\x20only,\x20instances\x20are\x20contacted\x20but\n\x20will\x20do\x20\ - nothing.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03=\x02\x06\n\x0c\n\x05\ - \x04\0\x02\x05\x01\x12\x03=\x07\x0e\n\x0c\n\x05\x04\0\x02\x05\x03\x12\ - \x03=\x11\x12\nP\n\x04\x04\0\x02\x06\x12\x03@\x02\x1a\x1aC\x20Display\ - \x20name\x20for\x20this\x20patch\x20job.\x20This\x20does\x20not\x20have\ - \x20to\x20be\x20unique.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03@\x02\x08\ - \n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03@\t\x15\n\x0c\n\x05\x04\0\x02\x06\ - \x03\x12\x03@\x18\x19\n1\n\x04\x04\0\x02\x07\x12\x03C\x02\x1b\x1a$\x20Ro\ - llout\x20strategy\x20of\x20the\x20patch\x20job.\n\n\x0c\n\x05\x04\0\x02\ - \x07\x06\x12\x03C\x02\x0e\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03C\x0f\x16\ - \n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03C\x19\x1a\n>\n\x02\x04\x01\x12\x04\ - G\0O\x01\x1a2\x20Request\x20to\x20get\x20an\x20active\x20or\x20completed\ - \x20patch\x20job.\n\n\n\n\x03\x04\x01\x01\x12\x03G\x08\x1a\nP\n\x04\x04\ - \x01\x02\0\x12\x04I\x02N\x04\x1aB\x20Required.\x20Name\x20of\x20the\x20p\ - atch\x20in\x20the\x20form\x20`projects/*/patchJobs/*`\n\n\x0c\n\x05\x04\ - \x01\x02\0\x05\x12\x03I\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03I\t\ - \r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03I\x10\x11\n\r\n\x05\x04\x01\x02\ - \0\x08\x12\x04I\x12N\x03\n\x0f\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x03\ - J\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x04K\x04M\x05\nU\n\x02\ - \x04\x02\x12\x04R\0g\x01\x1aI\x20Request\x20to\x20list\x20details\x20for\ - \x20all\x20instances\x20that\x20are\x20part\x20of\x20a\x20patch\x20job.\ - \n\n\n\n\x03\x04\x02\x01\x12\x03R\x08*\nd\n\x04\x04\x02\x02\0\x12\x04U\ - \x02Z\x04\x1aV\x20Required.\x20The\x20parent\x20for\x20the\x20instances\ - \x20are\x20in\x20the\x20form\x20of\n\x20`projects/*/patchJobs/*`.\n\n\ - \x0c\n\x05\x04\x02\x02\0\x05\x12\x03U\x02\x08\n\x0c\n\x05\x04\x02\x02\0\ - \x01\x12\x03U\t\x0f\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03U\x12\x13\n\r\n\ - \x05\x04\x02\x02\0\x08\x12\x04U\x14Z\x03\n\x0f\n\x08\x04\x02\x02\0\x08\ - \x9c\x08\0\x12\x03V\x04*\n\x0f\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x04W\ - \x04Y\x05\nY\n\x04\x04\x02\x02\x01\x12\x03]\x02\x16\x1aL\x20The\x20maxim\ - um\x20number\x20of\x20instance\x20details\x20records\x20to\x20return.\ - \x20\x20Default\x20is\x20100.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03]\ - \x02\x07\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03]\x08\x11\n\x0c\n\x05\ - \x04\x02\x02\x01\x03\x12\x03]\x14\x15\nx\n\x04\x04\x02\x02\x02\x12\x03a\ - \x02\x18\x1ak\x20A\x20pagination\x20token\x20returned\x20from\x20a\x20pr\ - evious\x20call\n\x20that\x20indicates\x20where\x20this\x20listing\x20sho\ - uld\x20continue\x20from.\n\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03a\x02\ - \x08\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03a\t\x13\n\x0c\n\x05\x04\x02\ - \x02\x02\x03\x12\x03a\x16\x17\n\xac\x01\n\x04\x04\x02\x02\x03\x12\x03f\ - \x02\x14\x1a\x9e\x01\x20A\x20filter\x20expression\x20that\x20filters\x20\ - results\x20listed\x20in\x20the\x20response.\x20This\n\x20field\x20suppor\ - ts\x20filtering\x20results\x20by\x20instance\x20zone,\x20name,\x20state,\ - \x20or\n\x20`failure_reason`.\n\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03f\ - \x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03f\t\x0f\n\x0c\n\x05\x04\ - \x02\x02\x03\x03\x12\x03f\x12\x13\nS\n\x02\x04\x03\x12\x04j\0p\x01\x1aG\ - \x20A\x20response\x20message\x20for\x20listing\x20the\x20instances\x20de\ - tails\x20for\x20a\x20patch\x20job.\n\n\n\n\x03\x04\x03\x01\x12\x03j\x08+\ - \n)\n\x04\x04\x03\x02\0\x12\x03l\x02B\x1a\x1c\x20A\x20list\x20of\x20inst\ - ance\x20status.\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03l\x02\n\n\x0c\n\ - \x05\x04\x03\x02\0\x06\x12\x03l\x0b\"\n\x0c\n\x05\x04\x03\x02\0\x01\x12\ - \x03l#=\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03l@A\nS\n\x04\x04\x03\x02\ - \x01\x12\x03o\x02\x1d\x1aF\x20A\x20pagination\x20token\x20that\x20can\ - \x20be\x20used\x20to\x20get\x20the\x20next\x20page\x20of\x20results.\n\n\ - \x0c\n\x05\x04\x03\x02\x01\x05\x12\x03o\x02\x08\n\x0c\n\x05\x04\x03\x02\ - \x01\x01\x12\x03o\t\x18\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03o\x1b\x1c\ - \n\x90\x02\n\x02\x04\x04\x12\x05v\0\x88\x01\x01\x1a\x82\x02\x20Patch\x20\ - details\x20for\x20a\x20VM\x20instance.\x20For\x20more\x20information\x20\ - about\x20reviewing\x20VM\n\x20instance\x20details,\x20see\n\x20[Listing\ - \x20all\x20VM\x20instance\x20details\x20for\x20a\x20specific\x20patch\n\ - \x20job](https://cloud.google.com/compute/docs/os-patch-management/manag\ - e-patch-jobs#list-instance-details).\n\n\n\n\x03\x04\x04\x01\x12\x03v\ - \x08\x1f\nN\n\x04\x04\x04\x02\0\x12\x04x\x02z\x05\x1a@\x20The\x20instanc\ - e\x20name\x20in\x20the\x20form\x20`projects/*/zones/*/instances/*`\n\n\ - \x0c\n\x05\x04\x04\x02\0\x05\x12\x03x\x02\x08\n\x0c\n\x05\x04\x04\x02\0\ - \x01\x12\x03x\t\r\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03x\x10\x11\n\r\n\ - \x05\x04\x04\x02\0\x08\x12\x04x\x12z\x04\n\x0f\n\x07\x04\x04\x02\0\x08\ - \x9f\x08\x12\x04x\x13z\x03\na\n\x04\x04\x04\x02\x01\x12\x03~\x02\x20\x1a\ - T\x20The\x20unique\x20identifier\x20for\x20the\x20instance.\x20This\x20i\ - dentifier\x20is\n\x20defined\x20by\x20the\x20server.\n\n\x0c\n\x05\x04\ - \x04\x02\x01\x05\x12\x03~\x02\x08\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\ - \x03~\t\x1b\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03~\x1e\x1f\n0\n\x04\ - \x04\x04\x02\x02\x12\x04\x81\x01\x02\x20\x1a\"\x20Current\x20state\x20of\ - \x20instance\x20patch.\n\n\r\n\x05\x04\x04\x02\x02\x06\x12\x04\x81\x01\ - \x02\x15\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x81\x01\x16\x1b\n\r\n\x05\ - \x04\x04\x02\x02\x03\x12\x04\x81\x01\x1e\x1f\nC\n\x04\x04\x04\x02\x03\ - \x12\x04\x84\x01\x02\x1c\x1a5\x20If\x20the\x20patch\x20fails,\x20this\ - \x20field\x20provides\x20the\x20reason.\n\n\r\n\x05\x04\x04\x02\x03\x05\ - \x12\x04\x84\x01\x02\x08\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\x84\x01\t\ - \x17\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\x84\x01\x1a\x1b\nY\n\x04\x04\ - \x04\x02\x04\x12\x04\x87\x01\x02\x1a\x1aK\x20The\x20number\x20of\x20time\ - s\x20the\x20agent\x20that\x20the\x20agent\x20attempts\x20to\x20apply\x20\ - the\x20patch.\n\n\r\n\x05\x04\x04\x02\x04\x05\x12\x04\x87\x01\x02\x07\n\ - \r\n\x05\x04\x04\x02\x04\x01\x12\x04\x87\x01\x08\x15\n\r\n\x05\x04\x04\ - \x02\x04\x03\x12\x04\x87\x01\x18\x19\n9\n\x02\x04\x05\x12\x06\x8b\x01\0\ - \x9f\x01\x01\x1a+\x20A\x20request\x20message\x20for\x20listing\x20patch\ - \x20jobs.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\x8b\x01\x08\x1c\n7\n\x04\x04\ - \x05\x02\0\x12\x06\x8d\x01\x02\x92\x01\x04\x1a'\x20Required.\x20In\x20th\ - e\x20form\x20of\x20`projects/*`\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\ - \x8d\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x8d\x01\t\x0f\n\r\n\ - \x05\x04\x05\x02\0\x03\x12\x04\x8d\x01\x12\x13\n\x0f\n\x05\x04\x05\x02\0\ - \x08\x12\x06\x8d\x01\x14\x92\x01\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\ - \x08\0\x12\x04\x8e\x01\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\ - \x06\x8f\x01\x04\x91\x01\x05\n@\n\x04\x04\x05\x02\x01\x12\x04\x95\x01\ - \x02\x16\x1a2\x20The\x20maximum\x20number\x20of\x20instance\x20status\ - \x20to\x20return.\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\x95\x01\x02\ - \x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x95\x01\x08\x11\n\r\n\x05\x04\ - \x05\x02\x01\x03\x12\x04\x95\x01\x14\x15\ny\n\x04\x04\x05\x02\x02\x12\ - \x04\x99\x01\x02\x18\x1ak\x20A\x20pagination\x20token\x20returned\x20fro\ - m\x20a\x20previous\x20call\n\x20that\x20indicates\x20where\x20this\x20li\ - sting\x20should\x20continue\x20from.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\ - \x04\x99\x01\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\x99\x01\t\x13\ - \n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\x99\x01\x16\x17\n\xc6\x01\n\x04\ - \x04\x05\x02\x03\x12\x04\x9e\x01\x02\x14\x1a\xb7\x01\x20If\x20provided,\ - \x20this\x20field\x20specifies\x20the\x20criteria\x20that\x20must\x20be\ - \x20met\x20by\x20patch\n\x20jobs\x20to\x20be\x20included\x20in\x20the\ - \x20response.\n\x20Currently,\x20filtering\x20is\x20only\x20available\ - \x20on\x20the\x20patch_deployment\x20field.\n\n\r\n\x05\x04\x05\x02\x03\ - \x05\x12\x04\x9e\x01\x02\x08\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\x9e\ - \x01\t\x0f\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\x9e\x01\x12\x13\n:\n\ - \x02\x04\x06\x12\x06\xa2\x01\0\xa8\x01\x01\x1a,\x20A\x20response\x20mess\ - age\x20for\x20listing\x20patch\x20jobs.\n\n\x0b\n\x03\x04\x06\x01\x12\ - \x04\xa2\x01\x08\x1d\n'\n\x04\x04\x06\x02\0\x12\x04\xa4\x01\x02#\x1a\x19\ - \x20The\x20list\x20of\x20patch\x20jobs.\n\n\r\n\x05\x04\x06\x02\0\x04\ - \x12\x04\xa4\x01\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xa4\x01\x0b\ - \x13\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xa4\x01\x14\x1e\n\r\n\x05\x04\ - \x06\x02\0\x03\x12\x04\xa4\x01!\"\nT\n\x04\x04\x06\x02\x01\x12\x04\xa7\ - \x01\x02\x1d\x1aF\x20A\x20pagination\x20token\x20that\x20can\x20be\x20us\ - ed\x20to\x20get\x20the\x20next\x20page\x20of\x20results.\n\n\r\n\x05\x04\ - \x06\x02\x01\x05\x12\x04\xa7\x01\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\ - \x12\x04\xa7\x01\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xa7\x01\x1b\ - \x1c\n\xf3\x02\n\x02\x04\x07\x12\x06\xb3\x01\0\xc1\x02\x01\x1a\xe4\x02\ - \x20A\x20high\x20level\x20representation\x20of\x20a\x20patch\x20job\x20t\ - hat\x20is\x20either\x20in\x20progress\n\x20or\x20has\x20completed.\n\n\ - \x20Instance\x20details\x20are\x20not\x20included\x20in\x20the\x20job.\ - \x20To\x20paginate\x20through\x20instance\n\x20details,\x20use\x20ListPa\ - tchJobInstanceDetails.\n\n\x20For\x20more\x20information\x20about\x20pat\ - ch\x20jobs,\x20see\n\x20[Creating\x20patch\n\x20jobs](https://cloud.goog\ - le.com/compute/docs/os-patch-management/create-patch-job).\n\n\x0b\n\x03\ - \x04\x07\x01\x12\x04\xb3\x01\x08\x10\n\r\n\x03\x04\x07\x07\x12\x06\xb4\ - \x01\x02\xb7\x01\x04\n\x0f\n\x05\x04\x07\x07\x9d\x08\x12\x06\xb4\x01\x02\ - \xb7\x01\x04\n_\n\x04\x04\x07\x04\0\x12\x06\xbb\x01\x02\xd3\x01\x03\x1aO\ - \x20Enumeration\x20of\x20the\x20various\x20states\x20a\x20patch\x20job\ - \x20passes\x20through\x20as\x20it\n\x20executes.\n\n\r\n\x05\x04\x07\x04\ - \0\x01\x12\x04\xbb\x01\x07\x0c\n*\n\x06\x04\x07\x04\0\x02\0\x12\x04\xbd\ - \x01\x04\x1a\x1a\x1a\x20State\x20must\x20be\x20specified.\n\n\x0f\n\x07\ - \x04\x07\x04\0\x02\0\x01\x12\x04\xbd\x01\x04\x15\n\x0f\n\x07\x04\x07\x04\ - \0\x02\0\x02\x12\x04\xbd\x01\x18\x19\n;\n\x06\x04\x07\x04\0\x02\x01\x12\ - \x04\xc0\x01\x04\x10\x1a+\x20The\x20patch\x20job\x20was\x20successfully\ - \x20initiated.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x01\x12\x04\xc0\x01\ - \x04\x0b\n\x0f\n\x07\x04\x07\x04\0\x02\x01\x02\x12\x04\xc0\x01\x0e\x0f\n\ - L\n\x06\x04\x07\x04\0\x02\x02\x12\x04\xc3\x01\x04\x18\x1a<\x20The\x20pat\ - ch\x20job\x20is\x20looking\x20up\x20instances\x20to\x20run\x20the\x20pat\ - ch\x20on.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x01\x12\x04\xc3\x01\x04\ - \x13\n\x0f\n\x07\x04\x07\x04\0\x02\x02\x02\x12\x04\xc3\x01\x16\x17\n.\n\ - \x06\x04\x07\x04\0\x02\x03\x12\x04\xc6\x01\x04\x11\x1a\x1e\x20Instances\ - \x20are\x20being\x20patched.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x03\x01\x12\ - \x04\xc6\x01\x04\x0c\n\x0f\n\x07\x04\x07\x04\0\x02\x03\x02\x12\x04\xc6\ - \x01\x0f\x10\n3\n\x06\x04\x07\x04\0\x02\x04\x12\x04\xc9\x01\x04\x12\x1a#\ - \x20Patch\x20job\x20completed\x20successfully.\n\n\x0f\n\x07\x04\x07\x04\ - \0\x02\x04\x01\x12\x04\xc9\x01\x04\r\n\x0f\n\x07\x04\x07\x04\0\x02\x04\ - \x02\x12\x04\xc9\x01\x10\x11\n<\n\x06\x04\x07\x04\0\x02\x05\x12\x04\xcc\ - \x01\x04\x1e\x1a,\x20Patch\x20job\x20completed\x20but\x20there\x20were\ - \x20errors.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x05\x01\x12\x04\xcc\x01\x04\ - \x19\n\x0f\n\x07\x04\x07\x04\0\x02\x05\x02\x12\x04\xcc\x01\x1c\x1d\n-\n\ - \x06\x04\x07\x04\0\x02\x06\x12\x04\xcf\x01\x04\x11\x1a\x1d\x20The\x20pat\ - ch\x20job\x20was\x20canceled.\n\n\x0f\n\x07\x04\x07\x04\0\x02\x06\x01\ - \x12\x04\xcf\x01\x04\x0c\n\x0f\n\x07\x04\x07\x04\0\x02\x06\x02\x12\x04\ - \xcf\x01\x0f\x10\n*\n\x06\x04\x07\x04\0\x02\x07\x12\x04\xd2\x01\x04\x12\ - \x1a\x1a\x20The\x20patch\x20job\x20timed\x20out.\n\n\x0f\n\x07\x04\x07\ - \x04\0\x02\x07\x01\x12\x04\xd2\x01\x04\r\n\x0f\n\x07\x04\x07\x04\0\x02\ - \x07\x02\x12\x04\xd2\x01\x10\x11\n\x95\x02\n\x04\x04\x07\x03\0\x12\x06\ - \xd9\x01\x02\x88\x02\x03\x1a\x84\x02\x20A\x20summary\x20of\x20the\x20cur\ - rent\x20patch\x20state\x20across\x20all\x20instances\x20that\x20this\x20\ - patch\n\x20job\x20affects.\x20Contains\x20counts\x20of\x20instances\x20i\ - n\x20different\x20states.\x20These\x20states\n\x20map\x20to\x20`Instance\ - PatchState`.\x20List\x20patch\x20job\x20instance\x20details\x20to\x20see\ - \x20the\n\x20specific\x20states\x20of\x20each\x20instance.\n\n\r\n\x05\ - \x04\x07\x03\0\x01\x12\x04\xd9\x01\n\x20\n8\n\x06\x04\x07\x03\0\x02\0\ - \x12\x04\xdb\x01\x04%\x1a(\x20Number\x20of\x20instances\x20pending\x20pa\ - tch\x20job.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\x04\xdb\x01\x04\t\ - \n\x0f\n\x07\x04\x07\x03\0\x02\0\x01\x12\x04\xdb\x01\n\x20\n\x0f\n\x07\ - \x04\x07\x03\0\x02\0\x03\x12\x04\xdb\x01#$\n8\n\x06\x04\x07\x03\0\x02\ - \x01\x12\x04\xde\x01\x04&\x1a(\x20Number\x20of\x20instances\x20that\x20a\ - re\x20inactive.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x05\x12\x04\xde\x01\ - \x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x01\x01\x12\x04\xde\x01\n!\n\x0f\n\ - \x07\x04\x07\x03\0\x02\x01\x03\x12\x04\xde\x01$%\n?\n\x06\x04\x07\x03\0\ - \x02\x02\x12\x04\xe1\x01\x04&\x1a/\x20Number\x20of\x20instances\x20notif\ - ied\x20about\x20patch\x20job.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x05\ - \x12\x04\xe1\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x01\x12\x04\xe1\ - \x01\n!\n\x0f\n\x07\x04\x07\x03\0\x02\x02\x03\x12\x04\xe1\x01$%\n8\n\x06\ - \x04\x07\x03\0\x02\x03\x12\x04\xe4\x01\x04%\x1a(\x20Number\x20of\x20inst\ - ances\x20that\x20have\x20started.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x03\ - \x05\x12\x04\xe4\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x03\x01\x12\x04\ - \xe4\x01\n\x20\n\x0f\n\x07\x04\x07\x03\0\x02\x03\x03\x12\x04\xe4\x01#$\n\ - C\n\x06\x04\x07\x03\0\x02\x04\x12\x04\xe7\x01\x041\x1a3\x20Number\x20of\ - \x20instances\x20that\x20are\x20downloading\x20patches.\n\n\x0f\n\x07\ - \x04\x07\x03\0\x02\x04\x05\x12\x04\xe7\x01\x04\t\n\x0f\n\x07\x04\x07\x03\ - \0\x02\x04\x01\x12\x04\xe7\x01\n,\n\x0f\n\x07\x04\x07\x03\0\x02\x04\x03\ - \x12\x04\xe7\x01/0\n@\n\x06\x04\x07\x03\0\x02\x05\x12\x04\xea\x01\x04.\ - \x1a0\x20Number\x20of\x20instances\x20that\x20are\x20applying\x20patches\ - .\n\n\x0f\n\x07\x04\x07\x03\0\x02\x05\x05\x12\x04\xea\x01\x04\t\n\x0f\n\ - \x07\x04\x07\x03\0\x02\x05\x01\x12\x04\xea\x01\n)\n\x0f\n\x07\x04\x07\ - \x03\0\x02\x05\x03\x12\x04\xea\x01,-\n0\n\x06\x04\x07\x03\0\x02\x06\x12\ - \x04\xed\x01\x04'\x1a\x20\x20Number\x20of\x20instances\x20rebooting.\n\n\ - \x0f\n\x07\x04\x07\x03\0\x02\x06\x05\x12\x04\xed\x01\x04\t\n\x0f\n\x07\ - \x04\x07\x03\0\x02\x06\x01\x12\x04\xed\x01\n\"\n\x0f\n\x07\x04\x07\x03\0\ - \x02\x06\x03\x12\x04\xed\x01%&\nG\n\x06\x04\x07\x03\0\x02\x07\x12\x04\ - \xf0\x01\x04'\x1a7\x20Number\x20of\x20instances\x20that\x20have\x20compl\ - eted\x20successfully.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x07\x05\x12\x04\ - \xf0\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x07\x01\x12\x04\xf0\x01\n\"\ - \n\x0f\n\x07\x04\x07\x03\0\x02\x07\x03\x12\x04\xf0\x01%&\n:\n\x06\x04\ - \x07\x03\0\x02\x08\x12\x04\xf3\x01\x047\x1a*\x20Number\x20of\x20instance\ - s\x20that\x20require\x20reboot.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x08\x05\ - \x12\x04\xf3\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x08\x01\x12\x04\xf3\ - \x01\n2\n\x0f\n\x07\x04\x07\x03\0\x02\x08\x03\x12\x04\xf3\x0156\n2\n\x06\ - \x04\x07\x03\0\x02\t\x12\x04\xf6\x01\x04%\x1a\"\x20Number\x20of\x20insta\ - nces\x20that\x20failed.\n\n\x0f\n\x07\x04\x07\x03\0\x02\t\x05\x12\x04\ - \xf6\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\t\x01\x12\x04\xf6\x01\n\x1f\ - \n\x0f\n\x07\x04\x07\x03\0\x02\t\x03\x12\x04\xf6\x01\"$\nM\n\x06\x04\x07\ - \x03\0\x02\n\x12\x04\xf9\x01\x04$\x1a=\x20Number\x20of\x20instances\x20t\ - hat\x20have\x20acked\x20and\x20will\x20start\x20shortly.\n\n\x0f\n\x07\ - \x04\x07\x03\0\x02\n\x05\x12\x04\xf9\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\ - \x02\n\x01\x12\x04\xf9\x01\n\x1e\n\x0f\n\x07\x04\x07\x03\0\x02\n\x03\x12\ - \x04\xf9\x01!#\nZ\n\x06\x04\x07\x03\0\x02\x0b\x12\x04\xfc\x01\x04(\x1aJ\ - \x20Number\x20of\x20instances\x20that\x20exceeded\x20the\x20time\x20out\ - \x20while\x20applying\x20the\x20patch.\n\n\x0f\n\x07\x04\x07\x03\0\x02\ - \x0b\x05\x12\x04\xfc\x01\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x0b\x01\x12\ - \x04\xfc\x01\n\"\n\x0f\n\x07\x04\x07\x03\0\x02\x0b\x03\x12\x04\xfc\x01%'\ - \nJ\n\x06\x04\x07\x03\0\x02\x0c\x12\x04\xff\x01\x04-\x1a:\x20Number\x20o\ - f\x20instances\x20that\x20are\x20running\x20the\x20pre-patch\x20step.\n\ - \n\x0f\n\x07\x04\x07\x03\0\x02\x0c\x05\x12\x04\xff\x01\x04\t\n\x0f\n\x07\ - \x04\x07\x03\0\x02\x0c\x01\x12\x04\xff\x01\n'\n\x0f\n\x07\x04\x07\x03\0\ - \x02\x0c\x03\x12\x04\xff\x01*,\nK\n\x06\x04\x07\x03\0\x02\r\x12\x04\x82\ - \x02\x04.\x1a;\x20Number\x20of\x20instances\x20that\x20are\x20running\ - \x20the\x20post-patch\x20step.\n\n\x0f\n\x07\x04\x07\x03\0\x02\r\x05\x12\ - \x04\x82\x02\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\r\x01\x12\x04\x82\x02\n\ - (\n\x0f\n\x07\x04\x07\x03\0\x02\r\x03\x12\x04\x82\x02+-\n\xb4\x01\n\x06\ - \x04\x07\x03\0\x02\x0e\x12\x04\x87\x02\x040\x1a\xa3\x01\x20Number\x20of\ - \x20instances\x20that\x20do\x20not\x20appear\x20to\x20be\x20running\x20t\ - he\x20agent.\x20Check\x20to\n\x20ensure\x20that\x20the\x20agent\x20is\ - \x20installed,\x20running,\x20and\x20able\x20to\x20communicate\x20with\n\ - \x20the\x20service.\n\n\x0f\n\x07\x04\x07\x03\0\x02\x0e\x05\x12\x04\x87\ - \x02\x04\t\n\x0f\n\x07\x04\x07\x03\0\x02\x0e\x01\x12\x04\x87\x02\n*\n\ - \x0f\n\x07\x04\x07\x03\0\x02\x0e\x03\x12\x04\x87\x02-/\nZ\n\x04\x04\x07\ - \x02\0\x12\x04\x8c\x02\x02\x12\x1aL\x20Unique\x20identifier\x20for\x20th\ - is\x20patch\x20job\x20in\x20the\x20form\n\x20`projects/*/patchJobs/*`\n\ - \n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x8c\x02\x02\x08\n\r\n\x05\x04\x07\ - \x02\0\x01\x12\x04\x8c\x02\t\r\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x8c\ - \x02\x10\x11\nQ\n\x04\x04\x07\x02\x01\x12\x04\x8f\x02\x02\x1b\x1aC\x20Di\ - splay\x20name\x20for\x20this\x20patch\x20job.\x20This\x20is\x20not\x20a\ - \x20unique\x20identifier.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\x8f\ - \x02\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x8f\x02\t\x15\n\r\n\ - \x05\x04\x07\x02\x01\x03\x12\x04\x8f\x02\x18\x1a\ng\n\x04\x04\x07\x02\ - \x02\x12\x04\x93\x02\x02\x19\x1aY\x20Description\x20of\x20the\x20patch\ - \x20job.\x20Length\x20of\x20the\x20description\x20is\x20limited\n\x20to\ - \x201024\x20characters.\n\n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\x93\x02\ - \x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\x93\x02\t\x14\n\r\n\x05\ - \x04\x07\x02\x02\x03\x12\x04\x93\x02\x17\x18\n0\n\x04\x04\x07\x02\x03\ - \x12\x04\x96\x02\x02,\x1a\"\x20Time\x20this\x20patch\x20job\x20was\x20cr\ - eated.\n\n\r\n\x05\x04\x07\x02\x03\x06\x12\x04\x96\x02\x02\x1b\n\r\n\x05\ - \x04\x07\x02\x03\x01\x12\x04\x96\x02\x1c'\n\r\n\x05\x04\x07\x02\x03\x03\ - \x12\x04\x96\x02*+\n5\n\x04\x04\x07\x02\x04\x12\x04\x99\x02\x02,\x1a'\ - \x20Last\x20time\x20this\x20patch\x20job\x20was\x20updated.\n\n\r\n\x05\ - \x04\x07\x02\x04\x06\x12\x04\x99\x02\x02\x1b\n\r\n\x05\x04\x07\x02\x04\ - \x01\x12\x04\x99\x02\x1c'\n\r\n\x05\x04\x07\x02\x04\x03\x12\x04\x99\x02*\ - +\n2\n\x04\x04\x07\x02\x05\x12\x04\x9c\x02\x02\x12\x1a$\x20The\x20curren\ - t\x20state\x20of\x20the\x20PatchJob.\n\n\r\n\x05\x04\x07\x02\x05\x06\x12\ - \x04\x9c\x02\x02\x07\n\r\n\x05\x04\x07\x02\x05\x01\x12\x04\x9c\x02\x08\r\ - \n\r\n\x05\x04\x07\x02\x05\x03\x12\x04\x9c\x02\x10\x11\n#\n\x04\x04\x07\ - \x02\x06\x12\x04\x9f\x02\x02+\x1a\x15\x20Instances\x20to\x20patch.\n\n\r\ - \n\x05\x04\x07\x02\x06\x06\x12\x04\x9f\x02\x02\x15\n\r\n\x05\x04\x07\x02\ - \x06\x01\x12\x04\x9f\x02\x16%\n\r\n\x05\x04\x07\x02\x06\x03\x12\x04\x9f\ - \x02(*\n2\n\x04\x04\x07\x02\x07\x12\x04\xa2\x02\x02\x1f\x1a$\x20Patch\ - \x20configuration\x20being\x20applied.\n\n\r\n\x05\x04\x07\x02\x07\x06\ - \x12\x04\xa2\x02\x02\r\n\r\n\x05\x04\x07\x02\x07\x01\x12\x04\xa2\x02\x0e\ - \x1a\n\r\n\x05\x04\x07\x02\x07\x03\x12\x04\xa2\x02\x1d\x1e\n]\n\x04\x04\ - \x07\x02\x08\x12\x04\xa6\x02\x02(\x1aO\x20Duration\x20of\x20the\x20patch\ - \x20job.\x20After\x20the\x20duration\x20ends,\x20the\n\x20patch\x20job\ - \x20times\x20out.\n\n\r\n\x05\x04\x07\x02\x08\x06\x12\x04\xa6\x02\x02\ - \x1a\n\r\n\x05\x04\x07\x02\x08\x01\x12\x04\xa6\x02\x1b#\n\r\n\x05\x04\ - \x07\x02\x08\x03\x12\x04\xa6\x02&'\n,\n\x04\x04\x07\x02\t\x12\x04\xa9\ - \x02\x026\x1a\x1e\x20Summary\x20of\x20instance\x20details.\n\n\r\n\x05\ - \x04\x07\x02\t\x06\x12\x04\xa9\x02\x02\x18\n\r\n\x05\x04\x07\x02\t\x01\ - \x12\x04\xa9\x02\x191\n\r\n\x05\x04\x07\x02\t\x03\x12\x04\xa9\x0245\n\ - \x87\x01\n\x04\x04\x07\x02\n\x12\x04\xad\x02\x02\x14\x1ay\x20If\x20this\ - \x20patch\x20job\x20is\x20a\x20dry\x20run,\x20the\x20agent\x20reports\ - \x20that\x20it\x20has\n\x20finished\x20without\x20running\x20any\x20upda\ - tes\x20on\x20the\x20VM\x20instance.\n\n\r\n\x05\x04\x07\x02\n\x05\x12\ - \x04\xad\x02\x02\x06\n\r\n\x05\x04\x07\x02\n\x01\x12\x04\xad\x02\x07\x0e\ - \n\r\n\x05\x04\x07\x02\n\x03\x12\x04\xad\x02\x11\x13\n_\n\x04\x04\x07\ - \x02\x0b\x12\x04\xb1\x02\x02\x1c\x1aQ\x20If\x20this\x20patch\x20job\x20f\ - ailed,\x20this\x20message\x20provides\x20information\x20about\x20the\n\ - \x20failure.\n\n\r\n\x05\x04\x07\x02\x0b\x05\x12\x04\xb1\x02\x02\x08\n\r\ - \n\x05\x04\x07\x02\x0b\x01\x12\x04\xb1\x02\t\x16\n\r\n\x05\x04\x07\x02\ - \x0b\x03\x12\x04\xb1\x02\x19\x1b\n~\n\x04\x04\x07\x02\x0c\x12\x04\xb5\ - \x02\x02\x1f\x1ap\x20Reflects\x20the\x20overall\x20progress\x20of\x20the\ - \x20patch\x20job\x20in\x20the\x20range\x20of\n\x200.0\x20being\x20no\x20\ - progress\x20to\x20100.0\x20being\x20complete.\n\n\r\n\x05\x04\x07\x02\ - \x0c\x05\x12\x04\xb5\x02\x02\x08\n\r\n\x05\x04\x07\x02\x0c\x01\x12\x04\ - \xb5\x02\t\x19\n\r\n\x05\x04\x07\x02\x0c\x03\x12\x04\xb5\x02\x1c\x1e\nX\ - \n\x04\x04\x07\x02\r\x12\x06\xb8\x02\x02\xbd\x02\x04\x1aH\x20Output\x20o\ - nly.\x20Name\x20of\x20the\x20patch\x20deployment\x20that\x20created\x20t\ - his\x20patch\x20job.\n\n\r\n\x05\x04\x07\x02\r\x05\x12\x04\xb8\x02\x02\ - \x08\n\r\n\x05\x04\x07\x02\r\x01\x12\x04\xb8\x02\t\x19\n\r\n\x05\x04\x07\ - \x02\r\x03\x12\x04\xb8\x02\x1c\x1e\n\x0f\n\x05\x04\x07\x02\r\x08\x12\x06\ - \xb8\x02\x1f\xbd\x02\x03\n\x10\n\x08\x04\x07\x02\r\x08\x9c\x08\0\x12\x04\ - \xb9\x02\x04-\n\x11\n\x07\x04\x07\x02\r\x08\x9f\x08\x12\x06\xba\x02\x04\ - \xbc\x02\x05\n/\n\x04\x04\x07\x02\x0e\x12\x04\xc0\x02\x02\x1c\x1a!\x20Ro\ - llout\x20strategy\x20being\x20applied.\n\n\r\n\x05\x04\x07\x02\x0e\x06\ - \x12\x04\xc0\x02\x02\x0e\n\r\n\x05\x04\x07\x02\x0e\x01\x12\x04\xc0\x02\ - \x0f\x16\n\r\n\x05\x04\x07\x02\x0e\x03\x12\x04\xc0\x02\x19\x1b\nu\n\x02\ - \x04\x08\x12\x06\xc5\x02\0\xf6\x02\x01\x1ag\x20Patch\x20configuration\ - \x20specifications.\x20Contains\x20details\x20on\x20how\x20to\x20apply\ - \x20the\n\x20patch(es)\x20to\x20a\x20VM\x20instance.\n\n\x0b\n\x03\x04\ - \x08\x01\x12\x04\xc5\x02\x08\x13\n-\n\x04\x04\x08\x04\0\x12\x06\xc7\x02\ - \x02\xd6\x02\x03\x1a\x1d\x20Post-patch\x20reboot\x20settings.\n\n\r\n\ - \x05\x04\x08\x04\0\x01\x12\x04\xc7\x02\x07\x13\n2\n\x06\x04\x08\x04\0\ - \x02\0\x12\x04\xc9\x02\x04\"\x1a\"\x20The\x20default\x20behavior\x20is\ - \x20DEFAULT.\n\n\x0f\n\x07\x04\x08\x04\0\x02\0\x01\x12\x04\xc9\x02\x04\ - \x1d\n\x0f\n\x07\x04\x08\x04\0\x02\0\x02\x12\x04\xc9\x02\x20!\n\x8e\x02\ - \n\x06\x04\x08\x04\0\x02\x01\x12\x04\xcf\x02\x04\x10\x1a\xfd\x01\x20The\ - \x20agent\x20decides\x20if\x20a\x20reboot\x20is\x20necessary\x20by\x20ch\ - ecking\x20signals\x20such\x20as\n\x20registry\x20keys\x20on\x20Windows\ - \x20or\x20`/var/run/reboot-required`\x20on\x20APT\x20based\n\x20systems.\ - \x20On\x20RPM\x20based\x20systems,\x20a\x20set\x20of\x20core\x20system\ - \x20package\x20install\x20times\n\x20are\x20compared\x20with\x20system\ - \x20boot\x20time.\n\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x01\x12\x04\xcf\ - \x02\x04\x0b\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x02\x12\x04\xcf\x02\x0e\ - \x0f\nG\n\x06\x04\x08\x04\0\x02\x02\x12\x04\xd2\x02\x04\x0f\x1a7\x20Alwa\ - ys\x20reboot\x20the\x20machine\x20after\x20the\x20update\x20completes.\n\ - \n\x0f\n\x07\x04\x08\x04\0\x02\x02\x01\x12\x04\xd2\x02\x04\n\n\x0f\n\x07\ - \x04\x08\x04\0\x02\x02\x02\x12\x04\xd2\x02\r\x0e\nF\n\x06\x04\x08\x04\0\ - \x02\x03\x12\x04\xd5\x02\x04\x0e\x1a6\x20Never\x20reboot\x20the\x20machi\ - ne\x20after\x20the\x20update\x20completes.\n\n\x0f\n\x07\x04\x08\x04\0\ - \x02\x03\x01\x12\x04\xd5\x02\x04\t\n\x0f\n\x07\x04\x08\x04\0\x02\x03\x02\ - \x12\x04\xd5\x02\x0c\r\n+\n\x04\x04\x08\x02\0\x12\x04\xd9\x02\x02!\x1a\ - \x1d\x20Post-patch\x20reboot\x20settings.\n\n\r\n\x05\x04\x08\x02\0\x06\ - \x12\x04\xd9\x02\x02\x0e\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xd9\x02\x0f\ - \x1c\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xd9\x02\x1f\x20\na\n\x04\x04\ - \x08\x02\x01\x12\x04\xdd\x02\x02\x16\x1aS\x20Apt\x20update\x20settings.\ - \x20Use\x20this\x20setting\x20to\x20override\x20the\x20default\x20`apt`\ - \x20patch\n\x20rules.\n\n\r\n\x05\x04\x08\x02\x01\x06\x12\x04\xdd\x02\ - \x02\r\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xdd\x02\x0e\x11\n\r\n\x05\ - \x04\x08\x02\x01\x03\x12\x04\xdd\x02\x14\x15\na\n\x04\x04\x08\x02\x02\ - \x12\x04\xe1\x02\x02\x16\x1aS\x20Yum\x20update\x20settings.\x20Use\x20th\ - is\x20setting\x20to\x20override\x20the\x20default\x20`yum`\x20patch\n\ - \x20rules.\n\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\xe1\x02\x02\r\n\r\n\ - \x05\x04\x08\x02\x02\x01\x12\x04\xe1\x02\x0e\x11\n\r\n\x05\x04\x08\x02\ - \x02\x03\x12\x04\xe1\x02\x14\x15\na\n\x04\x04\x08\x02\x03\x12\x04\xe5\ - \x02\x02\x16\x1aS\x20Goo\x20update\x20settings.\x20Use\x20this\x20settin\ - g\x20to\x20override\x20the\x20default\x20`goo`\x20patch\n\x20rules.\n\n\ - \r\n\x05\x04\x08\x02\x03\x06\x12\x04\xe5\x02\x02\r\n\r\n\x05\x04\x08\x02\ - \x03\x01\x12\x04\xe5\x02\x0e\x11\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\ - \xe5\x02\x14\x15\ng\n\x04\x04\x08\x02\x04\x12\x04\xe9\x02\x02\x1c\x1aY\ - \x20Zypper\x20update\x20settings.\x20Use\x20this\x20setting\x20to\x20ove\ - rride\x20the\x20default\x20`zypper`\n\x20patch\x20rules.\n\n\r\n\x05\x04\ - \x08\x02\x04\x06\x12\x04\xe9\x02\x02\x10\n\r\n\x05\x04\x08\x02\x04\x01\ - \x12\x04\xe9\x02\x11\x17\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xe9\x02\ - \x1a\x1b\n[\n\x04\x04\x08\x02\x05\x12\x04\xec\x02\x02+\x1aM\x20Windows\ - \x20update\x20settings.\x20Use\x20this\x20override\x20the\x20default\x20\ - windows\x20patch\x20rules.\n\n\r\n\x05\x04\x08\x02\x05\x06\x12\x04\xec\ - \x02\x02\x17\n\r\n\x05\x04\x08\x02\x05\x01\x12\x04\xec\x02\x18&\n\r\n\ - \x05\x04\x08\x02\x05\x03\x12\x04\xec\x02)*\n>\n\x04\x04\x08\x02\x06\x12\ - \x04\xef\x02\x02\x18\x1a0\x20The\x20`ExecStep`\x20to\x20run\x20before\ - \x20the\x20patch\x20update.\n\n\r\n\x05\x04\x08\x02\x06\x06\x12\x04\xef\ - \x02\x02\n\n\r\n\x05\x04\x08\x02\x06\x01\x12\x04\xef\x02\x0b\x13\n\r\n\ - \x05\x04\x08\x02\x06\x03\x12\x04\xef\x02\x16\x17\n=\n\x04\x04\x08\x02\ - \x07\x12\x04\xf2\x02\x02\x19\x1a/\x20The\x20`ExecStep`\x20to\x20run\x20a\ - fter\x20the\x20patch\x20update.\n\n\r\n\x05\x04\x08\x02\x07\x06\x12\x04\ - \xf2\x02\x02\n\n\r\n\x05\x04\x08\x02\x07\x01\x12\x04\xf2\x02\x0b\x14\n\r\ - \n\x05\x04\x08\x02\x07\x03\x12\x04\xf2\x02\x17\x18\nN\n\x04\x04\x08\x02\ - \x08\x12\x04\xf5\x02\x02\"\x1a@\x20Allows\x20the\x20patch\x20job\x20to\ - \x20run\x20on\x20Managed\x20instance\x20groups\x20(MIGs).\n\n\r\n\x05\ - \x04\x08\x02\x08\x05\x12\x04\xf5\x02\x02\x06\n\r\n\x05\x04\x08\x02\x08\ - \x01\x12\x04\xf5\x02\x07\x1c\n\r\n\x05\x04\x08\x02\x08\x03\x12\x04\xf5\ - \x02\x1f!\n3\n\x02\x04\t\x12\x06\xf9\x02\0\xae\x03\x01\x1a%\x20Namespace\ - \x20for\x20instance\x20state\x20enums.\n\n\x0b\n\x03\x04\t\x01\x12\x04\ - \xf9\x02\x08\x10\n-\n\x04\x04\t\x04\0\x12\x06\xfb\x02\x02\xad\x03\x03\ - \x1a\x1d\x20Patch\x20state\x20of\x20an\x20instance.\n\n\r\n\x05\x04\t\ - \x04\0\x01\x12\x04\xfb\x02\x07\x11\n\x1e\n\x06\x04\t\x04\0\x02\0\x12\x04\ - \xfd\x02\x04\x20\x1a\x0e\x20Unspecified.\n\n\x0f\n\x07\x04\t\x04\0\x02\0\ - \x01\x12\x04\xfd\x02\x04\x1b\n\x0f\n\x07\x04\t\x04\0\x02\0\x02\x12\x04\ - \xfd\x02\x1e\x1f\n3\n\x06\x04\t\x04\0\x02\x01\x12\x04\x80\x03\x04\x10\ - \x1a#\x20The\x20instance\x20is\x20not\x20yet\x20notified.\n\n\x0f\n\x07\ - \x04\t\x04\0\x02\x01\x01\x12\x04\x80\x03\x04\x0b\n\x0f\n\x07\x04\t\x04\0\ - \x02\x01\x02\x12\x04\x80\x03\x0e\x0f\n=\n\x06\x04\t\x04\0\x02\x02\x12\ - \x04\x83\x03\x04\x11\x1a-\x20Instance\x20is\x20inactive\x20and\x20cannot\ - \x20be\x20patched.\n\n\x0f\n\x07\x04\t\x04\0\x02\x02\x01\x12\x04\x83\x03\ - \x04\x0c\n\x0f\n\x07\x04\t\x04\0\x02\x02\x02\x12\x04\x83\x03\x0f\x10\nE\ - \n\x06\x04\t\x04\0\x02\x03\x12\x04\x86\x03\x04\x11\x1a5\x20The\x20instan\ - ce\x20is\x20notified\x20that\x20it\x20should\x20be\x20patched.\n\n\x0f\n\ - \x07\x04\t\x04\0\x02\x03\x01\x12\x04\x86\x03\x04\x0c\n\x0f\n\x07\x04\t\ - \x04\0\x02\x03\x02\x12\x04\x86\x03\x0f\x10\n@\n\x06\x04\t\x04\0\x02\x04\ - \x12\x04\x89\x03\x04\x10\x1a0\x20The\x20instance\x20has\x20started\x20th\ - e\x20patching\x20process.\n\n\x0f\n\x07\x04\t\x04\0\x02\x04\x01\x12\x04\ - \x89\x03\x04\x0b\n\x0f\n\x07\x04\t\x04\0\x02\x04\x02\x12\x04\x89\x03\x0e\ - \x0f\n6\n\x06\x04\t\x04\0\x02\x05\x12\x04\x8c\x03\x04\x1c\x1a&\x20The\ - \x20instance\x20is\x20downloading\x20patches.\n\n\x0f\n\x07\x04\t\x04\0\ - \x02\x05\x01\x12\x04\x8c\x03\x04\x17\n\x0f\n\x07\x04\t\x04\0\x02\x05\x02\ - \x12\x04\x8c\x03\x1a\x1b\n3\n\x06\x04\t\x04\0\x02\x06\x12\x04\x8f\x03\ - \x04\x19\x1a#\x20The\x20instance\x20is\x20applying\x20patches.\n\n\x0f\n\ - \x07\x04\t\x04\0\x02\x06\x01\x12\x04\x8f\x03\x04\x14\n\x0f\n\x07\x04\t\ - \x04\0\x02\x06\x02\x12\x04\x8f\x03\x17\x18\n,\n\x06\x04\t\x04\0\x02\x07\ - \x12\x04\x92\x03\x04\x12\x1a\x1c\x20The\x20instance\x20is\x20rebooting.\ - \n\n\x0f\n\x07\x04\t\x04\0\x02\x07\x01\x12\x04\x92\x03\x04\r\n\x0f\n\x07\ - \x04\t\x04\0\x02\x07\x02\x12\x04\x92\x03\x10\x11\n>\n\x06\x04\t\x04\0\ - \x02\x08\x12\x04\x95\x03\x04\x12\x1a.\x20The\x20instance\x20has\x20compl\ - eted\x20applying\x20patches.\n\n\x0f\n\x07\x04\t\x04\0\x02\x08\x01\x12\ - \x04\x95\x03\x04\r\n\x0f\n\x07\x04\t\x04\0\x02\x08\x02\x12\x04\x95\x03\ - \x10\x11\nW\n\x06\x04\t\x04\0\x02\t\x12\x04\x98\x03\x04\"\x1aG\x20The\ - \x20instance\x20has\x20completed\x20applying\x20patches\x20but\x20a\x20r\ - eboot\x20is\x20required.\n\n\x0f\n\x07\x04\t\x04\0\x02\t\x01\x12\x04\x98\ - \x03\x04\x1d\n\x0f\n\x07\x04\t\x04\0\x02\t\x02\x12\x04\x98\x03\x20!\n=\n\ - \x06\x04\t\x04\0\x02\n\x12\x04\x9b\x03\x04\x10\x1a-\x20The\x20instance\ - \x20has\x20failed\x20to\x20apply\x20the\x20patch.\n\n\x0f\n\x07\x04\t\ - \x04\0\x02\n\x01\x12\x04\x9b\x03\x04\n\n\x0f\n\x07\x04\t\x04\0\x02\n\x02\ - \x12\x04\x9b\x03\r\x0f\nM\n\x06\x04\t\x04\0\x02\x0b\x12\x04\x9e\x03\x04\ - \x0f\x1a=\x20The\x20instance\x20acked\x20the\x20notification\x20and\x20w\ - ill\x20start\x20shortly.\n\n\x0f\n\x07\x04\t\x04\0\x02\x0b\x01\x12\x04\ - \x9e\x03\x04\t\n\x0f\n\x07\x04\t\x04\0\x02\x0b\x02\x12\x04\x9e\x03\x0c\ - \x0e\nN\n\x06\x04\t\x04\0\x02\x0c\x12\x04\xa1\x03\x04\x13\x1a>\x20The\ - \x20instance\x20exceeded\x20the\x20time\x20out\x20while\x20applying\x20t\ - he\x20patch.\n\n\x0f\n\x07\x04\t\x04\0\x02\x0c\x01\x12\x04\xa1\x03\x04\r\ - \n\x0f\n\x07\x04\t\x04\0\x02\x0c\x02\x12\x04\xa1\x03\x10\x12\n=\n\x06\ - \x04\t\x04\0\x02\r\x12\x04\xa4\x03\x04\x20\x1a-\x20The\x20instance\x20is\ - \x20running\x20the\x20pre-patch\x20step.\n\n\x0f\n\x07\x04\t\x04\0\x02\r\ - \x01\x12\x04\xa4\x03\x04\x1a\n\x0f\n\x07\x04\t\x04\0\x02\r\x02\x12\x04\ - \xa4\x03\x1d\x1f\n>\n\x06\x04\t\x04\0\x02\x0e\x12\x04\xa7\x03\x04!\x1a.\ - \x20The\x20instance\x20is\x20running\x20the\x20post-patch\x20step.\n\n\ - \x0f\n\x07\x04\t\x04\0\x02\x0e\x01\x12\x04\xa7\x03\x04\x1b\n\x0f\n\x07\ - \x04\t\x04\0\x02\x0e\x02\x12\x04\xa7\x03\x1e\x20\n\xac\x01\n\x06\x04\t\ - \x04\0\x02\x0f\x12\x04\xac\x03\x04\x1b\x1a\x9b\x01\x20The\x20service\x20\ - could\x20not\x20detect\x20the\x20presence\x20of\x20the\x20agent.\x20Chec\ - k\x20to\x20ensure\n\x20that\x20the\x20agent\x20is\x20installed,\x20runni\ - ng,\x20and\x20able\x20to\x20communicate\x20with\x20the\n\x20service.\n\n\ - \x0f\n\x07\x04\t\x04\0\x02\x0f\x01\x12\x04\xac\x03\x04\x15\n\x0f\n\x07\ - \x04\t\x04\0\x02\x0f\x02\x12\x04\xac\x03\x18\x1a\n2\n\x02\x04\n\x12\x06\ - \xb1\x03\0\xb9\x03\x01\x1a$\x20Message\x20for\x20canceling\x20a\x20patch\ - \x20job.\n\n\x0b\n\x03\x04\n\x01\x12\x04\xb1\x03\x08\x1d\nR\n\x04\x04\n\ - \x02\0\x12\x06\xb3\x03\x02\xb8\x03\x04\x1aB\x20Required.\x20Name\x20of\ - \x20the\x20patch\x20in\x20the\x20form\x20`projects/*/patchJobs/*`\n\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\xb3\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\xb3\x03\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xb3\x03\x10\x11\n\ - \x0f\n\x05\x04\n\x02\0\x08\x12\x06\xb3\x03\x12\xb8\x03\x03\n\x10\n\x08\ - \x04\n\x02\0\x08\x9c\x08\0\x12\x04\xb4\x03\x04*\n\x11\n\x07\x04\n\x02\0\ - \x08\x9f\x08\x12\x06\xb5\x03\x04\xb7\x03\x05\n\x9c\x01\n\x02\x04\x0b\x12\ - \x06\xbd\x03\0\xd6\x03\x01\x1a\x8d\x01\x20Apt\x20patching\x20is\x20compl\ - eted\x20by\x20executing\x20`apt-get\x20update\x20&&\x20apt-get\n\x20upgr\ - ade`.\x20Additional\x20options\x20can\x20be\x20set\x20to\x20control\x20h\ - ow\x20this\x20is\x20executed.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xbd\x03\ - \x08\x13\n!\n\x04\x04\x0b\x04\0\x12\x06\xbf\x03\x02\xc8\x03\x03\x1a\x11\ - \x20Apt\x20patch\x20type.\n\n\r\n\x05\x04\x0b\x04\0\x01\x12\x04\xbf\x03\ - \x07\x0b\n8\n\x06\x04\x0b\x04\0\x02\0\x12\x04\xc1\x03\x04\x19\x1a(\x20By\ - \x20default,\x20upgrade\x20will\x20be\x20performed.\n\n\x0f\n\x07\x04\ - \x0b\x04\0\x02\0\x01\x12\x04\xc1\x03\x04\x14\n\x0f\n\x07\x04\x0b\x04\0\ - \x02\0\x02\x12\x04\xc1\x03\x17\x18\n.\n\x06\x04\x0b\x04\0\x02\x01\x12\ - \x04\xc4\x03\x04\r\x1a\x1e\x20Runs\x20`apt-get\x20dist-upgrade`.\n\n\x0f\ - \n\x07\x04\x0b\x04\0\x02\x01\x01\x12\x04\xc4\x03\x04\x08\n\x0f\n\x07\x04\ - \x0b\x04\0\x02\x01\x02\x12\x04\xc4\x03\x0b\x0c\n)\n\x06\x04\x0b\x04\0\ - \x02\x02\x12\x04\xc7\x03\x04\x10\x1a\x19\x20Runs\x20`apt-get\x20upgrade`\ - .\n\n\x0f\n\x07\x04\x0b\x04\0\x02\x02\x01\x12\x04\xc7\x03\x04\x0b\n\x0f\ - \n\x07\x04\x0b\x04\0\x02\x02\x02\x12\x04\xc7\x03\x0e\x0f\nn\n\x04\x04\ - \x0b\x02\0\x12\x04\xcc\x03\x02\x10\x1a`\x20By\x20changing\x20the\x20type\ - \x20to\x20DIST,\x20the\x20patching\x20is\x20performed\n\x20using\x20`apt\ - -get\x20dist-upgrade`\x20instead.\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\ - \xcc\x03\x02\x06\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xcc\x03\x07\x0b\n\r\ - \n\x05\x04\x0b\x02\0\x03\x12\x04\xcc\x03\x0e\x0f\nX\n\x04\x04\x0b\x02\ - \x01\x12\x04\xcf\x03\x02\x1f\x1aJ\x20List\x20of\x20packages\x20to\x20exc\ - lude\x20from\x20update.\x20These\x20packages\x20will\x20be\x20excluded\n\ - \n\r\n\x05\x04\x0b\x02\x01\x04\x12\x04\xcf\x03\x02\n\n\r\n\x05\x04\x0b\ - \x02\x01\x05\x12\x04\xcf\x03\x0b\x11\n\r\n\x05\x04\x0b\x02\x01\x01\x12\ - \x04\xcf\x03\x12\x1a\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xcf\x03\x1d\ - \x1e\n\xf7\x01\n\x04\x04\x0b\x02\x02\x12\x04\xd5\x03\x02)\x1a\xe8\x01\ - \x20An\x20exclusive\x20list\x20of\x20packages\x20to\x20be\x20updated.\ - \x20These\x20are\x20the\x20only\x20packages\n\x20that\x20will\x20be\x20u\ - pdated.\x20If\x20these\x20packages\x20are\x20not\x20installed,\x20they\ - \x20will\x20be\n\x20ignored.\x20This\x20field\x20cannot\x20be\x20specifi\ - ed\x20with\x20any\x20other\x20patch\x20configuration\n\x20fields.\n\n\r\ - \n\x05\x04\x0b\x02\x02\x04\x12\x04\xd5\x03\x02\n\n\r\n\x05\x04\x0b\x02\ - \x02\x05\x12\x04\xd5\x03\x0b\x11\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\ - \xd5\x03\x12$\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xd5\x03'(\n\xc2\x01\ - \n\x02\x04\x0c\x12\x06\xdc\x03\0\xed\x03\x01\x1a\xb3\x01\x20Yum\x20patch\ - ing\x20is\x20performed\x20by\x20executing\x20`yum\x20update`.\x20Additio\ - nal\x20options\n\x20can\x20be\x20set\x20to\x20control\x20how\x20this\x20\ - is\x20executed.\n\n\x20Note\x20that\x20not\x20all\x20settings\x20are\x20\ - supported\x20on\x20all\x20platforms.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\ - \xdc\x03\x08\x13\n\\\n\x04\x04\x0c\x02\0\x12\x04\xdf\x03\x02\x14\x1aN\ - \x20Adds\x20the\x20`--security`\x20flag\x20to\x20`yum\x20update`.\x20Not\ - \x20supported\x20on\n\x20all\x20platforms.\n\n\r\n\x05\x04\x0c\x02\0\x05\ - \x12\x04\xdf\x03\x02\x06\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xdf\x03\x07\ - \x0f\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xdf\x03\x12\x13\nE\n\x04\x04\ - \x0c\x02\x01\x12\x04\xe2\x03\x02\x13\x1a7\x20Will\x20cause\x20patch\x20t\ - o\x20run\x20`yum\x20update-minimal`\x20instead.\n\n\r\n\x05\x04\x0c\x02\ - \x01\x05\x12\x04\xe2\x03\x02\x06\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\ - \xe2\x03\x07\x0e\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xe2\x03\x11\x12\n\ - x\n\x04\x04\x0c\x02\x02\x12\x04\xe6\x03\x02\x1f\x1aj\x20List\x20of\x20pa\ - ckages\x20to\x20exclude\x20from\x20update.\x20These\x20packages\x20are\ - \x20excluded\x20by\n\x20using\x20the\x20yum\x20`--exclude`\x20flag.\n\n\ - \r\n\x05\x04\x0c\x02\x02\x04\x12\x04\xe6\x03\x02\n\n\r\n\x05\x04\x0c\x02\ - \x02\x05\x12\x04\xe6\x03\x0b\x11\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\ - \xe6\x03\x12\x1a\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xe6\x03\x1d\x1e\n\ - \xf9\x01\n\x04\x04\x0c\x02\x03\x12\x04\xec\x03\x02)\x1a\xea\x01\x20An\ - \x20exclusive\x20list\x20of\x20packages\x20to\x20be\x20updated.\x20These\ - \x20are\x20the\x20only\x20packages\n\x20that\x20will\x20be\x20updated.\ - \x20If\x20these\x20packages\x20are\x20not\x20installed,\x20they\x20will\ - \x20be\n\x20ignored.\x20This\x20field\x20must\x20not\x20be\x20specified\ - \x20with\x20any\x20other\x20patch\n\x20configuration\x20fields.\n\n\r\n\ - \x05\x04\x0c\x02\x03\x04\x12\x04\xec\x03\x02\n\n\r\n\x05\x04\x0c\x02\x03\ - \x05\x12\x04\xec\x03\x0b\x11\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\xec\ - \x03\x12$\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xec\x03'(\nF\n\x02\x04\r\ - \x12\x04\xf0\x03\0\x16\x1a:\x20Googet\x20patching\x20is\x20performed\x20\ - by\x20running\x20`googet\x20update`.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xf0\ - \x03\x08\x13\n|\n\x02\x04\x0e\x12\x06\xf4\x03\0\x8a\x04\x01\x1an\x20Zypp\ - er\x20patching\x20is\x20performed\x20by\x20running\x20`zypper\x20patch`.\ - \n\x20See\x20also\x20https://en.opensuse.org/SDB:Zypper_manual.\n\n\x0b\ - \n\x03\x04\x0e\x01\x12\x04\xf4\x03\x08\x16\nB\n\x04\x04\x0e\x02\0\x12\ - \x04\xf6\x03\x02\x19\x1a4\x20Adds\x20the\x20`--with-optional`\x20flag\ - \x20to\x20`zypper\x20patch`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xf6\ - \x03\x02\x06\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xf6\x03\x07\x14\n\r\n\ - \x05\x04\x0e\x02\0\x03\x12\x04\xf6\x03\x17\x18\nA\n\x04\x04\x0e\x02\x01\ - \x12\x04\xf9\x03\x02\x17\x1a3\x20Adds\x20the\x20`--with-update`\x20flag,\ - \x20to\x20`zypper\x20patch`.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xf9\ - \x03\x02\x06\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xf9\x03\x07\x12\n\r\n\ - \x05\x04\x0e\x02\x01\x03\x12\x04\xf9\x03\x15\x16\nz\n\x04\x04\x0e\x02\ - \x02\x12\x04\xfd\x03\x02!\x1al\x20Install\x20only\x20patches\x20with\x20\ - these\x20categories.\n\x20Common\x20categories\x20include\x20security,\ - \x20recommended,\x20and\x20feature.\n\n\r\n\x05\x04\x0e\x02\x02\x04\x12\ - \x04\xfd\x03\x02\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xfd\x03\x0b\x11\ - \n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xfd\x03\x12\x1c\n\r\n\x05\x04\x0e\ - \x02\x02\x03\x12\x04\xfd\x03\x1f\x20\n~\n\x04\x04\x0e\x02\x03\x12\x04\ - \x81\x04\x02!\x1ap\x20Install\x20only\x20patches\x20with\x20these\x20sev\ - erities.\n\x20Common\x20severities\x20include\x20critical,\x20important,\ - \x20moderate,\x20and\x20low.\n\n\r\n\x05\x04\x0e\x02\x03\x04\x12\x04\x81\ - \x04\x02\n\n\r\n\x05\x04\x0e\x02\x03\x05\x12\x04\x81\x04\x0b\x11\n\r\n\ - \x05\x04\x0e\x02\x03\x01\x12\x04\x81\x04\x12\x1c\n\r\n\x05\x04\x0e\x02\ - \x03\x03\x12\x04\x81\x04\x1f\x20\n7\n\x04\x04\x0e\x02\x04\x12\x04\x84\ - \x04\x02\x1f\x1a)\x20List\x20of\x20patches\x20to\x20exclude\x20from\x20u\ - pdate.\n\n\r\n\x05\x04\x0e\x02\x04\x04\x12\x04\x84\x04\x02\n\n\r\n\x05\ - \x04\x0e\x02\x04\x05\x12\x04\x84\x04\x0b\x11\n\r\n\x05\x04\x0e\x02\x04\ - \x01\x12\x04\x84\x04\x12\x1a\n\r\n\x05\x04\x0e\x02\x04\x03\x12\x04\x84\ - \x04\x1d\x1e\n\xe8\x01\n\x04\x04\x0e\x02\x05\x12\x04\x89\x04\x02(\x1a\ - \xd9\x01\x20An\x20exclusive\x20list\x20of\x20patches\x20to\x20be\x20upda\ - ted.\x20These\x20are\x20the\x20only\x20patches\n\x20that\x20will\x20be\ - \x20installed\x20using\x20'zypper\x20patch\x20patch:'\x20com\ - mand.\n\x20This\x20field\x20must\x20not\x20be\x20used\x20with\x20any\x20\ - other\x20patch\x20configuration\x20fields.\n\n\r\n\x05\x04\x0e\x02\x05\ - \x04\x12\x04\x89\x04\x02\n\n\r\n\x05\x04\x0e\x02\x05\x05\x12\x04\x89\x04\ - \x0b\x11\n\r\n\x05\x04\x0e\x02\x05\x01\x12\x04\x89\x04\x12#\n\r\n\x05\ - \x04\x0e\x02\x05\x03\x12\x04\x89\x04&'\nM\n\x02\x04\x0f\x12\x06\x8d\x04\ - \0\xcd\x04\x01\x1a?\x20Windows\x20patching\x20is\x20performed\x20using\ - \x20the\x20Windows\x20Update\x20Agent.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\ - \x8d\x04\x08\x1d\n\xc6\x01\n\x04\x04\x0f\x04\0\x12\x06\x91\x04\x02\xc0\ - \x04\x03\x1a\xb5\x01\x20Microsoft\x20Windows\x20update\x20classification\ - s\x20as\x20defined\x20in\n\x20[1]\n\x20https://support.microsoft.com/en-\ - us/help/824684/description-of-the-standard-terminology-that-is-used-to-d\ - escribe-micro\n\n\r\n\x05\x04\x0f\x04\0\x01\x12\x04\x91\x04\x07\x15\nS\n\ - \x06\x04\x0f\x04\0\x02\0\x12\x04\x93\x04\x04#\x1aC\x20Invalid.\x20If\x20\ - classifications\x20are\x20included,\x20they\x20must\x20be\x20specified.\ - \n\n\x0f\n\x07\x04\x0f\x04\0\x02\0\x01\x12\x04\x93\x04\x04\x1e\n\x0f\n\ - \x07\x04\x0f\x04\0\x02\0\x02\x12\x04\x93\x04!\"\nz\n\x06\x04\x0f\x04\0\ - \x02\x01\x12\x04\x97\x04\x04\x11\x1aj\x20\"A\x20widely\x20released\x20fi\ - x\x20for\x20a\x20specific\x20problem\x20that\x20addresses\x20a\x20critic\ - al,\n\x20non-security-related\x20bug.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\ - \0\x02\x01\x01\x12\x04\x97\x04\x04\x0c\n\x0f\n\x07\x04\x0f\x04\0\x02\x01\ - \x02\x12\x04\x97\x04\x0f\x10\n\x8d\x02\n\x06\x04\x0f\x04\0\x02\x02\x12\ - \x04\x9d\x04\x04\x11\x1a\xfc\x01\x20\"A\x20widely\x20released\x20fix\x20\ - for\x20a\x20product-specific,\x20security-related\n\x20vulnerability.\ - \x20Security\x20vulnerabilities\x20are\x20rated\x20by\x20their\x20severi\ - ty.\x20The\n\x20severity\x20rating\x20is\x20indicated\x20in\x20the\x20Mi\ - crosoft\x20security\x20bulletin\x20as\n\x20critical,\x20important,\x20mo\ - derate,\x20or\x20low.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x02\x01\ - \x12\x04\x9d\x04\x04\x0c\n\x0f\n\x07\x04\x0f\x04\0\x02\x02\x02\x12\x04\ - \x9d\x04\x0f\x10\n\x94\x02\n\x06\x04\x0f\x04\0\x02\x03\x12\x04\xa3\x04\ - \x04\x13\x1a\x83\x02\x20\"A\x20widely\x20released\x20and\x20frequent\x20\ - software\x20update\x20that\x20contains\x20additions\n\x20to\x20a\x20prod\ - uct's\x20definition\x20database.\x20Definition\x20databases\x20are\x20of\ - ten\x20used\n\x20to\x20detect\x20objects\x20that\x20have\x20specific\x20\ - attributes,\x20such\x20as\x20malicious\x20code,\n\x20phishing\x20website\ - s,\x20or\x20junk\x20mail.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\ - \x01\x12\x04\xa3\x04\x04\x0e\n\x0f\n\x07\x04\x0f\x04\0\x02\x03\x02\x12\ - \x04\xa3\x04\x11\x12\nP\n\x06\x04\x0f\x04\0\x02\x04\x12\x04\xa6\x04\x04\ - \x0f\x1a@\x20\"Software\x20that\x20controls\x20the\x20input\x20and\x20ou\ - tput\x20of\x20a\x20device.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x04\ - \x01\x12\x04\xa6\x04\x04\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x04\x02\x12\x04\ - \xa6\x04\r\x0e\n\xb8\x01\n\x06\x04\x0f\x04\0\x02\x05\x12\x04\xab\x04\x04\ - \x15\x1a\xa7\x01\x20\"New\x20product\x20functionality\x20that\x20is\x20f\ - irst\x20distributed\x20outside\x20the\x20context\n\x20of\x20a\x20product\ - \x20release\x20and\x20that\x20is\x20typically\x20included\x20in\x20the\ - \x20next\x20full\n\x20product\x20release.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\ - \x04\0\x02\x05\x01\x12\x04\xab\x04\x04\x10\n\x0f\n\x07\x04\x0f\x04\0\x02\ - \x05\x02\x12\x04\xab\x04\x13\x14\n\xda\x02\n\x06\x04\x0f\x04\0\x02\x06\ - \x12\x04\xb2\x04\x04\x15\x1a\xc9\x02\x20\"A\x20tested,\x20cumulative\x20\ - set\x20of\x20all\x20hotfixes,\x20security\x20updates,\x20critical\n\x20u\ - pdates,\x20and\x20updates.\x20Additionally,\x20service\x20packs\x20may\ - \x20contain\x20additional\n\x20fixes\x20for\x20problems\x20that\x20are\ - \x20found\x20internally\x20since\x20the\x20release\x20of\x20the\n\x20pro\ - duct.\x20Service\x20packs\x20my\x20also\x20contain\x20a\x20limited\x20nu\ - mber\x20of\n\x20customer-requested\x20design\x20changes\x20or\x20feature\ - s.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x06\x01\x12\x04\xb2\x04\x04\ - \x10\n\x0f\n\x07\x04\x0f\x04\0\x02\x06\x02\x12\x04\xb2\x04\x13\x14\nX\n\ - \x06\x04\x0f\x04\0\x02\x07\x12\x04\xb5\x04\x04\r\x1aH\x20\"A\x20utility\ - \x20or\x20feature\x20that\x20helps\x20complete\x20a\x20task\x20or\x20set\ - \x20of\x20tasks.\"\x20[1]\n\n\x0f\n\x07\x04\x0f\x04\0\x02\x07\x01\x12\ - \x04\xb5\x04\x04\x08\n\x0f\n\x07\x04\x0f\x04\0\x02\x07\x02\x12\x04\xb5\ - \x04\x0b\x0c\n\xa9\x02\n\x06\x04\x0f\x04\0\x02\x08\x12\x04\xbb\x04\x04\ - \x16\x1a\x98\x02\x20\"A\x20tested,\x20cumulative\x20set\x20of\x20hotfixe\ - s,\x20security\x20updates,\x20critical\n\x20updates,\x20and\x20updates\ - \x20that\x20are\x20packaged\x20together\x20for\x20easy\x20deployment.\ - \x20A\n\x20rollup\x20generally\x20targets\x20a\x20specific\x20area,\x20s\ - uch\x20as\x20security,\x20or\x20a\n\x20component\x20of\x20a\x20product,\ - \x20such\x20as\x20Internet\x20Information\x20Services\x20(IIS).\"\x20[1]\ - \n\n\x0f\n\x07\x04\x0f\x04\0\x02\x08\x01\x12\x04\xbb\x04\x04\x11\n\x0f\n\ - \x07\x04\x0f\x04\0\x02\x08\x02\x12\x04\xbb\x04\x14\x15\n\x83\x01\n\x06\ - \x04\x0f\x04\0\x02\t\x12\x04\xbf\x04\x04\x0f\x1as\x20\"A\x20widely\x20re\ - leased\x20fix\x20for\x20a\x20specific\x20problem.\x20An\x20update\x20add\ - resses\x20a\n\x20noncritical,\x20non-security-related\x20bug.\"\x20[1]\n\ - \n\x0f\n\x07\x04\x0f\x04\0\x02\t\x01\x12\x04\xbf\x04\x04\n\n\x0f\n\x07\ - \x04\x0f\x04\0\x02\t\x02\x12\x04\xbf\x04\r\x0e\no\n\x04\x04\x0f\x02\0\ - \x12\x04\xc4\x04\x02.\x1aa\x20Only\x20apply\x20updates\x20of\x20these\ - \x20windows\x20update\x20classifications.\x20If\x20empty,\x20all\n\x20up\ - dates\x20are\x20applied.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\xc4\x04\ - \x02\n\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\xc4\x04\x0b\x19\n\r\n\x05\x04\ - \x0f\x02\0\x01\x12\x04\xc4\x04\x1a)\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\ - \xc4\x04,-\n3\n\x04\x04\x0f\x02\x01\x12\x04\xc7\x04\x02\x1f\x1a%\x20List\ - \x20of\x20KBs\x20to\x20exclude\x20from\x20update.\n\n\r\n\x05\x04\x0f\ - \x02\x01\x04\x12\x04\xc7\x04\x02\n\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\ - \xc7\x04\x0b\x11\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xc7\x04\x12\x1a\n\ - \r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xc7\x04\x1d\x1e\n\xa8\x01\n\x04\x04\ - \x0f\x02\x02\x12\x04\xcc\x04\x02(\x1a\x99\x01\x20An\x20exclusive\x20list\ - \x20of\x20kbs\x20to\x20be\x20updated.\x20These\x20are\x20the\x20only\x20\ - patches\n\x20that\x20will\x20be\x20updated.\x20This\x20field\x20must\x20\ - not\x20be\x20used\x20with\x20other\n\x20patch\x20configurations.\n\n\r\n\ - \x05\x04\x0f\x02\x02\x04\x12\x04\xcc\x04\x02\n\n\r\n\x05\x04\x0f\x02\x02\ - \x05\x12\x04\xcc\x04\x0b\x11\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\xcc\ - \x04\x12#\n\r\n\x05\x04\x0f\x02\x02\x03\x12\x04\xcc\x04&'\n>\n\x02\x04\ - \x10\x12\x06\xd0\x04\0\xd6\x04\x01\x1a0\x20A\x20step\x20that\x20runs\x20\ - an\x20executable\x20for\x20a\x20PatchJob.\n\n\x0b\n\x03\x04\x10\x01\x12\ - \x04\xd0\x04\x08\x10\nN\n\x04\x04\x10\x02\0\x12\x04\xd2\x04\x02,\x1a@\ - \x20The\x20ExecStepConfig\x20for\x20all\x20Linux\x20VMs\x20targeted\x20b\ - y\x20the\x20PatchJob.\n\n\r\n\x05\x04\x10\x02\0\x06\x12\x04\xd2\x04\x02\ - \x10\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xd2\x04\x11'\n\r\n\x05\x04\x10\ - \x02\0\x03\x12\x04\xd2\x04*+\nP\n\x04\x04\x10\x02\x01\x12\x04\xd5\x04\ - \x02.\x1aB\x20The\x20ExecStepConfig\x20for\x20all\x20Windows\x20VMs\x20t\ - argeted\x20by\x20the\x20PatchJob.\n\n\r\n\x05\x04\x10\x02\x01\x06\x12\ - \x04\xd5\x04\x02\x10\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xd5\x04\x11)\ - \n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xd5\x04,-\n6\n\x02\x04\x11\x12\ - \x06\xd9\x04\0\xfc\x04\x01\x1a(\x20Common\x20configurations\x20for\x20an\ - \x20ExecStep.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd9\x04\x08\x16\n=\n\x04\ - \x04\x11\x04\0\x12\x06\xdb\x04\x02\xe8\x04\x03\x1a-\x20The\x20interprete\ - r\x20used\x20to\x20execute\x20the\x20a\x20file.\n\n\r\n\x05\x04\x11\x04\ - \0\x01\x12\x04\xdb\x04\x07\x12\n\xa9\x01\n\x06\x04\x11\x04\0\x02\0\x12\ - \x04\xdf\x04\x04\x20\x1a\x98\x01\x20Invalid\x20for\x20a\x20Windows\x20Ex\ - ecStepConfig.\x20For\x20a\x20Linux\x20ExecStepConfig,\x20the\n\x20interp\ - reter\x20will\x20be\x20parsed\x20from\x20the\x20shebang\x20line\x20of\ - \x20the\x20script\x20if\n\x20unspecified.\n\n\x0f\n\x07\x04\x11\x04\0\ - \x02\0\x01\x12\x04\xdf\x04\x04\x1b\n\x0f\n\x07\x04\x11\x04\0\x02\0\x02\ - \x12\x04\xdf\x04\x1e\x1f\na\n\x06\x04\x11\x04\0\x02\x01\x12\x04\xe3\x04\ - \x04\x0e\x1aQ\x20Indicates\x20that\x20the\x20script\x20is\x20run\x20with\ - \x20`/bin/sh`\x20on\x20Linux\x20and\x20`cmd`\n\x20on\x20Windows.\n\n\x0f\ - \n\x07\x04\x11\x04\0\x02\x01\x01\x12\x04\xe3\x04\x04\t\n\x0f\n\x07\x04\ - \x11\x04\0\x02\x01\x02\x12\x04\xe3\x04\x0c\r\n\x87\x01\n\x06\x04\x11\x04\ - \0\x02\x02\x12\x04\xe7\x04\x04\x13\x1aw\x20Indicates\x20that\x20the\x20f\ - ile\x20is\x20run\x20with\x20PowerShell\x20flags\n\x20`-NonInteractive`,\ - \x20`-NoProfile`,\x20and\x20`-ExecutionPolicy\x20Bypass`.\n\n\x0f\n\x07\ - \x04\x11\x04\0\x02\x02\x01\x12\x04\xe7\x04\x04\x0e\n\x0f\n\x07\x04\x11\ - \x04\0\x02\x02\x02\x12\x04\xe7\x04\x11\x12\n-\n\x04\x04\x11\x08\0\x12\ - \x06\xeb\x04\x02\xf1\x04\x03\x1a\x1d\x20Location\x20of\x20the\x20executa\ - ble.\n\n\r\n\x05\x04\x11\x08\0\x01\x12\x04\xeb\x04\x08\x12\n=\n\x04\x04\ - \x11\x02\0\x12\x04\xed\x04\x04\x1a\x1a/\x20An\x20absolute\x20path\x20to\ - \x20the\x20executable\x20on\x20the\x20VM.\n\n\r\n\x05\x04\x11\x02\0\x05\ - \x12\x04\xed\x04\x04\n\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xed\x04\x0b\ - \x15\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xed\x04\x18\x19\nA\n\x04\x04\ - \x11\x02\x01\x12\x04\xf0\x04\x04\x1d\x1a3\x20A\x20Cloud\x20Storage\x20ob\ - ject\x20containing\x20the\x20executable.\n\n\r\n\x05\x04\x11\x02\x01\x06\ - \x12\x04\xf0\x04\x04\r\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xf0\x04\x0e\ - \x18\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xf0\x04\x1b\x1c\nw\n\x04\x04\ - \x11\x02\x02\x12\x04\xf5\x04\x02+\x1ai\x20Defaults\x20to\x20[0].\x20A\ - \x20list\x20of\x20possible\x20return\x20values\x20that\x20the\n\x20execu\ - tion\x20can\x20return\x20to\x20indicate\x20a\x20success.\n\n\r\n\x05\x04\ - \x11\x02\x02\x04\x12\x04\xf5\x04\x02\n\n\r\n\x05\x04\x11\x02\x02\x05\x12\ - \x04\xf5\x04\x0b\x10\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xf5\x04\x11&\ - \n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\xf5\x04)*\n\xfb\x01\n\x04\x04\x11\ - \x02\x03\x12\x04\xfb\x04\x02\x1e\x1a\xec\x01\x20The\x20script\x20interpr\ - eter\x20to\x20use\x20to\x20run\x20the\x20script.\x20If\x20no\x20interpre\ - ter\x20is\n\x20specified\x20the\x20script\x20will\x20be\x20executed\x20d\ - irectly,\x20which\x20will\x20likely\n\x20only\x20succeed\x20for\x20scrip\ - ts\x20with\x20[shebang\x20lines]\n\x20(https://en.wikipedia.org/wiki/She\ - bang_\\(Unix\\)).\n\n\r\n\x05\x04\x11\x02\x03\x06\x12\x04\xfb\x04\x02\r\ - \n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xfb\x04\x0e\x19\n\r\n\x05\x04\x11\ - \x02\x03\x03\x12\x04\xfb\x04\x1c\x1d\n4\n\x02\x04\x12\x12\x06\xff\x04\0\ - \x89\x05\x01\x1a&\x20Cloud\x20Storage\x20object\x20representation.\n\n\ - \x0b\n\x03\x04\x12\x01\x12\x04\xff\x04\x08\x11\n=\n\x04\x04\x12\x02\0\ - \x12\x04\x81\x05\x02=\x1a/\x20Required.\x20Bucket\x20of\x20the\x20Cloud\ - \x20Storage\x20object.\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\x81\x05\x02\ - \x08\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\x81\x05\t\x0f\n\r\n\x05\x04\x12\ - \x02\0\x03\x12\x04\x81\x05\x12\x13\n\r\n\x05\x04\x12\x02\0\x08\x12\x04\ - \x81\x05\x14<\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\x81\x05\ - \x15;\n;\n\x04\x04\x12\x02\x01\x12\x04\x84\x05\x02=\x1a-\x20Required.\ - \x20Name\x20of\x20the\x20Cloud\x20Storage\x20object.\n\n\r\n\x05\x04\x12\ - \x02\x01\x05\x12\x04\x84\x05\x02\x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\ - \x04\x84\x05\t\x0f\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\x84\x05\x12\x13\ - \n\r\n\x05\x04\x12\x02\x01\x08\x12\x04\x84\x05\x14<\n\x10\n\x08\x04\x12\ - \x02\x01\x08\x9c\x08\0\x12\x04\x84\x05\x15;\n\x9f\x01\n\x04\x04\x12\x02\ - \x02\x12\x04\x88\x05\x02G\x1a\x90\x01\x20Required.\x20Generation\x20numb\ - er\x20of\x20the\x20Cloud\x20Storage\x20object.\x20This\x20is\x20used\x20\ - to\n\x20ensure\x20that\x20the\x20ExecStep\x20specified\x20by\x20this\x20\ - PatchJob\x20does\x20not\x20change.\n\n\r\n\x05\x04\x12\x02\x02\x05\x12\ - \x04\x88\x05\x02\x07\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\x88\x05\x08\ - \x19\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\x88\x05\x1c\x1d\n\r\n\x05\x04\ - \x12\x02\x02\x08\x12\x04\x88\x05\x1eF\n\x10\n\x08\x04\x12\x02\x02\x08\ - \x9c\x08\0\x12\x04\x88\x05\x1fE\n\xe4\x01\n\x02\x04\x13\x12\x06\x8f\x05\ - \0\xb4\x05\x01\x1a\xd5\x01\x20A\x20filter\x20to\x20target\x20VM\x20insta\ - nces\x20for\x20patching.\x20The\x20targeted\n\x20VMs\x20must\x20meet\x20\ - all\x20criteria\x20specified.\x20So\x20if\x20both\x20labels\x20and\x20zo\ - nes\x20are\n\x20specified,\x20the\x20patch\x20job\x20targets\x20only\x20\ - VMs\x20with\x20those\x20labels\x20and\x20in\x20those\n\x20zones.\n\n\x0b\ - \n\x03\x04\x13\x01\x12\x04\x8f\x05\x08\x1b\n\xd8\x03\n\x04\x04\x13\x03\0\ - \x12\x06\x98\x05\x02\x9c\x05\x03\x1a\xc7\x03\x20Targets\x20a\x20group\ - \x20of\x20VM\x20instances\x20by\x20using\x20their\x20[assigned\n\x20labe\ - ls](https://cloud.google.com/compute/docs/labeling-resources).\x20Labels\ - \n\x20are\x20key-value\x20pairs.\x20A\x20`GroupLabel`\x20is\x20a\x20comb\ - ination\x20of\x20labels\n\x20that\x20is\x20used\x20to\x20target\x20VMs\ - \x20for\x20a\x20patch\x20job.\n\n\x20For\x20example,\x20a\x20patch\x20jo\ - b\x20can\x20target\x20VMs\x20that\x20have\x20the\x20following\n\x20`Grou\ - pLabel`:\x20`{\"env\":\"test\",\x20\"app\":\"web\"}`.\x20This\x20means\ - \x20that\x20the\x20patch\x20job\n\x20is\x20applied\x20to\x20VMs\x20that\ - \x20have\x20both\x20the\x20labels\x20`env=test`\x20and\x20`app=web`.\n\n\ - \r\n\x05\x04\x13\x03\0\x01\x12\x04\x98\x05\n\x14\nw\n\x06\x04\x13\x03\0\ - \x02\0\x12\x04\x9b\x05\x04#\x1ag\x20Compute\x20Engine\x20instance\x20lab\ - els\x20that\x20must\x20be\x20present\x20for\x20a\x20VM\n\x20instance\x20\ - to\x20be\x20targeted\x20by\x20this\x20filter.\n\n\x0f\n\x07\x04\x13\x03\ - \0\x02\0\x06\x12\x04\x9b\x05\x04\x17\n\x0f\n\x07\x04\x13\x03\0\x02\0\x01\ - \x12\x04\x9b\x05\x18\x1e\n\x0f\n\x07\x04\x13\x03\0\x02\0\x03\x12\x04\x9b\ - \x05!\"\na\n\x04\x04\x13\x02\0\x12\x04\xa0\x05\x02\x0f\x1aS\x20Target\ - \x20all\x20VM\x20instances\x20in\x20the\x20project.\x20If\x20true,\x20no\ - \x20other\x20criteria\x20is\n\x20permitted.\n\n\r\n\x05\x04\x13\x02\0\ - \x05\x12\x04\xa0\x05\x02\x06\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xa0\x05\ - \x07\n\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xa0\x05\r\x0e\n\x83\x01\n\x04\ - \x04\x13\x02\x01\x12\x04\xa4\x05\x02'\x1au\x20Targets\x20VM\x20instances\ - \x20matching\x20ANY\x20of\x20these\x20GroupLabels.\x20This\x20allows\n\ - \x20targeting\x20of\x20disparate\x20groups\x20of\x20VM\x20instances.\n\n\ - \r\n\x05\x04\x13\x02\x01\x04\x12\x04\xa4\x05\x02\n\n\r\n\x05\x04\x13\x02\ - \x01\x06\x12\x04\xa4\x05\x0b\x15\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\ - \xa4\x05\x16\"\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xa4\x05%&\nl\n\x04\ - \x04\x13\x02\x02\x12\x04\xa8\x05\x02\x1c\x1a^\x20Targets\x20VM\x20instan\ - ces\x20in\x20ANY\x20of\x20these\x20zones.\x20Leave\x20empty\x20to\x20tar\ - get\x20VM\n\x20instances\x20in\x20any\x20zone.\n\n\r\n\x05\x04\x13\x02\ - \x02\x04\x12\x04\xa8\x05\x02\n\n\r\n\x05\x04\x13\x02\x02\x05\x12\x04\xa8\ - \x05\x0b\x11\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xa8\x05\x12\x17\n\r\n\ - \x05\x04\x13\x02\x02\x03\x12\x04\xa8\x05\x1a\x1b\n\xc1\x02\n\x04\x04\x13\ - \x02\x03\x12\x04\xae\x05\x02\x20\x1a\xb2\x02\x20Targets\x20any\x20of\x20\ - the\x20VM\x20instances\x20specified.\x20Instances\x20are\x20specified\ - \x20by\x20their\n\x20URI\x20in\x20the\x20form\x20`zones/[ZONE]/instances\ - /[INSTANCE_NAME]`,\n\x20`projects/[PROJECT_ID]/zones/[ZONE]/instances/[I\ - NSTANCE_NAME]`,\x20or\n\x20`https://www.googleapis.com/compute/v1/projec\ - ts/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`\n\n\r\n\x05\x04\ - \x13\x02\x03\x04\x12\x04\xae\x05\x02\n\n\r\n\x05\x04\x13\x02\x03\x05\x12\ - \x04\xae\x05\x0b\x11\n\r\n\x05\x04\x13\x02\x03\x01\x12\x04\xae\x05\x12\ - \x1b\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\xae\x05\x1e\x1f\n\xb4\x01\n\ - \x04\x04\x13\x02\x04\x12\x04\xb3\x05\x02-\x1a\xa5\x01\x20Targets\x20VMs\ - \x20whose\x20name\x20starts\x20with\x20one\x20of\x20these\x20prefixes.\ - \x20Similar\x20to\n\x20labels,\x20this\x20is\x20another\x20way\x20to\x20\ - group\x20VMs\x20when\x20targeting\x20configs,\x20for\n\x20example\x20pre\ - fix=\"prod-\".\n\n\r\n\x05\x04\x13\x02\x04\x04\x12\x04\xb3\x05\x02\n\n\r\ - \n\x05\x04\x13\x02\x04\x05\x12\x04\xb3\x05\x0b\x11\n\r\n\x05\x04\x13\x02\ - \x04\x01\x12\x04\xb3\x05\x12(\n\r\n\x05\x04\x13\x02\x04\x03\x12\x04\xb3\ - \x05+,\n\x96\x01\n\x02\x04\x14\x12\x06\xb8\x05\0\xe5\x05\x01\x1a\x87\x01\ - \x20Patch\x20rollout\x20configuration\x20specifications.\x20Contains\x20\ - details\x20on\x20the\n\x20concurrency\x20control\x20when\x20applying\x20\ - patch(es)\x20to\x20all\x20targeted\x20VMs.\n\n\x0b\n\x03\x04\x14\x01\x12\ - \x04\xb8\x05\x08\x14\n&\n\x04\x04\x14\x04\0\x12\x06\xba\x05\x02\xc8\x05\ - \x03\x1a\x16\x20Type\x20of\x20the\x20rollout.\n\n\r\n\x05\x04\x14\x04\0\ - \x01\x12\x04\xba\x05\x07\x0b\n)\n\x06\x04\x14\x04\0\x02\0\x12\x04\xbc\ - \x05\x04\x19\x1a\x19\x20Mode\x20must\x20be\x20specified.\n\n\x0f\n\x07\ - \x04\x14\x04\0\x02\0\x01\x12\x04\xbc\x05\x04\x14\n\x0f\n\x07\x04\x14\x04\ - \0\x02\0\x02\x12\x04\xbc\x05\x17\x18\n\x87\x03\n\x06\x04\x14\x04\0\x02\ - \x01\x12\x04\xc4\x05\x04\x15\x1a\xf6\x02\x20Patches\x20are\x20applied\ - \x20one\x20zone\x20at\x20a\x20time.\x20The\x20patch\x20job\x20begins\x20\ - in\x20the\n\x20region\x20with\x20the\x20lowest\x20number\x20of\x20target\ - ed\x20VMs.\x20Within\x20the\x20region,\n\x20patching\x20begins\x20in\x20\ - the\x20zone\x20with\x20the\x20lowest\x20number\x20of\x20targeted\x20VMs.\ - \x20If\n\x20multiple\x20regions\x20(or\x20zones\x20within\x20a\x20region\ - )\x20have\x20the\x20same\x20number\x20of\n\x20targeted\x20VMs,\x20a\x20t\ - ie-breaker\x20is\x20achieved\x20by\x20sorting\x20the\x20regions\x20or\ - \x20zones\n\x20in\x20alphabetical\x20order.\n\n\x0f\n\x07\x04\x14\x04\0\ - \x02\x01\x01\x12\x04\xc4\x05\x04\x10\n\x0f\n\x07\x04\x14\x04\0\x02\x01\ - \x02\x12\x04\xc4\x05\x13\x14\nK\n\x06\x04\x14\x04\0\x02\x02\x12\x04\xc7\ - \x05\x04\x19\x1a;\x20Patches\x20are\x20applied\x20to\x20VMs\x20in\x20all\ - \x20zones\x20at\x20the\x20same\x20time.\n\n\x0f\n\x07\x04\x14\x04\0\x02\ - \x02\x01\x12\x04\xc7\x05\x04\x14\n\x0f\n\x07\x04\x14\x04\0\x02\x02\x02\ - \x12\x04\xc7\x05\x17\x18\n*\n\x04\x04\x14\x02\0\x12\x04\xcb\x05\x02\x10\ - \x1a\x1c\x20Mode\x20of\x20the\x20patch\x20rollout.\n\n\r\n\x05\x04\x14\ - \x02\0\x06\x12\x04\xcb\x05\x02\x06\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\ - \xcb\x05\x07\x0b\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xcb\x05\x0e\x0f\n\ - \x91\n\n\x04\x04\x14\x02\x01\x12\x04\xe4\x05\x02'\x1a\x82\n\x20The\x20ma\ - ximum\x20number\x20(or\x20percentage)\x20of\x20VMs\x20per\x20zone\x20to\ - \x20disrupt\x20at\x20any\x20given\n\x20moment.\x20The\x20number\x20of\ - \x20VMs\x20calculated\x20from\x20multiplying\x20the\x20percentage\x20by\ - \x20the\n\x20total\x20number\x20of\x20VMs\x20in\x20a\x20zone\x20is\x20ro\ - unded\x20up.\n\n\x20During\x20patching,\x20a\x20VM\x20is\x20considered\ - \x20disrupted\x20from\x20the\x20time\x20the\x20agent\x20is\n\x20notified\ - \x20to\x20begin\x20until\x20patching\x20has\x20completed.\x20This\x20dis\ - ruption\x20time\n\x20includes\x20the\x20time\x20to\x20complete\x20reboot\ - \x20and\x20any\x20post-patch\x20steps.\n\n\x20A\x20VM\x20contributes\x20\ - to\x20the\x20disruption\x20budget\x20if\x20its\x20patching\x20operation\ - \x20fails\n\x20either\x20when\x20applying\x20the\x20patches,\x20running\ - \x20pre\x20or\x20post\x20patch\x20steps,\x20or\x20if\x20it\n\x20fails\ - \x20to\x20respond\x20with\x20a\x20success\x20notification\x20before\x20t\ - iming\x20out.\x20VMs\x20that\n\x20are\x20not\x20running\x20or\x20do\x20n\ - ot\x20have\x20an\x20active\x20agent\x20do\x20not\x20count\x20toward\x20t\ - his\n\x20disruption\x20budget.\n\n\x20For\x20zone-by-zone\x20rollouts,\ - \x20if\x20the\x20disruption\x20budget\x20in\x20a\x20zone\x20is\x20exceed\ - ed,\n\x20the\x20patch\x20job\x20stops,\x20because\x20continuing\x20to\ - \x20the\x20next\x20zone\x20requires\n\x20completion\x20of\x20the\x20patc\ - h\x20process\x20in\x20the\x20previous\x20zone.\n\n\x20For\x20example,\ - \x20if\x20the\x20disruption\x20budget\x20has\x20a\x20fixed\x20value\x20o\ - f\x20`10`,\x20and\x208\x20VMs\n\x20fail\x20to\x20patch\x20in\x20the\x20c\ - urrent\x20zone,\x20the\x20patch\x20job\x20continues\x20to\x20patch\x202\ - \x20VMs\n\x20at\x20a\x20time\x20until\x20the\x20zone\x20is\x20completed.\ - \x20When\x20that\x20zone\x20is\x20completed\n\x20successfully,\x20patchi\ - ng\x20begins\x20with\x2010\x20VMs\x20at\x20a\x20time\x20in\x20the\x20nex\ - t\x20zone.\x20If\x2010\n\x20VMs\x20in\x20the\x20next\x20zone\x20fail\x20\ - to\x20patch,\x20the\x20patch\x20job\x20stops.\n\n\r\n\x05\x04\x14\x02\ - \x01\x06\x12\x04\xe4\x05\x02\x10\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\ - \xe4\x05\x11\"\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xe4\x05%&b\x06proto\ - 3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1/vulnerability.rs b/googleapis-raw/src/cloud/osconfig/v1/vulnerability.rs deleted file mode 100644 index 4a70242..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1/vulnerability.rs +++ /dev/null @@ -1,3537 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1/vulnerability.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport { - // message fields - pub name: ::std::string::String, - pub vulnerabilities: ::protobuf::RepeatedField, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport { - fn default() -> &'a VulnerabilityReport { - ::default_instance() - } -} - -impl VulnerabilityReport { - pub fn new() -> VulnerabilityReport { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2; - - - pub fn get_vulnerabilities(&self) -> &[VulnerabilityReport_Vulnerability] { - &self.vulnerabilities - } - pub fn clear_vulnerabilities(&mut self) { - self.vulnerabilities.clear(); - } - - // Param is passed by value, moved - pub fn set_vulnerabilities(&mut self, v: ::protobuf::RepeatedField) { - self.vulnerabilities = v; - } - - // Mutable pointer to the field. - pub fn mut_vulnerabilities(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.vulnerabilities - } - - // Take field - pub fn take_vulnerabilities(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.vulnerabilities, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp update_time = 3; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport { - fn is_initialized(&self) -> bool { - for v in &self.vulnerabilities { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.vulnerabilities)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.vulnerabilities { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.vulnerabilities { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport { - VulnerabilityReport::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &VulnerabilityReport| { &m.name }, - |m: &mut VulnerabilityReport| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "vulnerabilities", - |m: &VulnerabilityReport| { &m.vulnerabilities }, - |m: &mut VulnerabilityReport| { &mut m.vulnerabilities }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &VulnerabilityReport| { &m.update_time }, - |m: &mut VulnerabilityReport| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport { - fn clear(&mut self) { - self.name.clear(); - self.vulnerabilities.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability { - // message fields - pub details: ::protobuf::SingularPtrField, - pub installed_inventory_item_ids: ::protobuf::RepeatedField<::std::string::String>, - pub available_inventory_item_ids: ::protobuf::RepeatedField<::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability { - fn default() -> &'a VulnerabilityReport_Vulnerability { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability { - pub fn new() -> VulnerabilityReport_Vulnerability { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1; - - - pub fn get_details(&self) -> &VulnerabilityReport_Vulnerability_Details { - self.details.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_details(&mut self) { - self.details.clear(); - } - - pub fn has_details(&self) -> bool { - self.details.is_some() - } - - // Param is passed by value, moved - pub fn set_details(&mut self, v: VulnerabilityReport_Vulnerability_Details) { - self.details = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_details(&mut self) -> &mut VulnerabilityReport_Vulnerability_Details { - if self.details.is_none() { - self.details.set_default(); - } - self.details.as_mut().unwrap() - } - - // Take field - pub fn take_details(&mut self) -> VulnerabilityReport_Vulnerability_Details { - self.details.take().unwrap_or_else(|| VulnerabilityReport_Vulnerability_Details::new()) - } - - // repeated string installed_inventory_item_ids = 2; - - - pub fn get_installed_inventory_item_ids(&self) -> &[::std::string::String] { - &self.installed_inventory_item_ids - } - pub fn clear_installed_inventory_item_ids(&mut self) { - self.installed_inventory_item_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_installed_inventory_item_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.installed_inventory_item_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_installed_inventory_item_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.installed_inventory_item_ids - } - - // Take field - pub fn take_installed_inventory_item_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.installed_inventory_item_ids, ::protobuf::RepeatedField::new()) - } - - // repeated string available_inventory_item_ids = 3; - - - pub fn get_available_inventory_item_ids(&self) -> &[::std::string::String] { - &self.available_inventory_item_ids - } - pub fn clear_available_inventory_item_ids(&mut self) { - self.available_inventory_item_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_available_inventory_item_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.available_inventory_item_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_available_inventory_item_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.available_inventory_item_ids - } - - // Take field - pub fn take_available_inventory_item_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.available_inventory_item_ids, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6; - - - pub fn get_items(&self) -> &[VulnerabilityReport_Vulnerability_Item] { - &self.items - } - pub fn clear_items(&mut self) { - self.items.clear(); - } - - // Param is passed by value, moved - pub fn set_items(&mut self, v: ::protobuf::RepeatedField) { - self.items = v; - } - - // Mutable pointer to the field. - pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.items - } - - // Take field - pub fn take_items(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability { - fn is_initialized(&self) -> bool { - for v in &self.details { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.items { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.details)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.installed_inventory_item_ids)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.available_inventory_item_ids)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.details.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.installed_inventory_item_ids { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.available_inventory_item_ids { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.items { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.details.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.installed_inventory_item_ids { - os.write_string(2, &v)?; - }; - for v in &self.available_inventory_item_ids { - os.write_string(3, &v)?; - }; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.items { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability { - VulnerabilityReport_Vulnerability::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "details", - |m: &VulnerabilityReport_Vulnerability| { &m.details }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.details }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "installed_inventory_item_ids", - |m: &VulnerabilityReport_Vulnerability| { &m.installed_inventory_item_ids }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.installed_inventory_item_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "available_inventory_item_ids", - |m: &VulnerabilityReport_Vulnerability| { &m.available_inventory_item_ids }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.available_inventory_item_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &VulnerabilityReport_Vulnerability| { &m.create_time }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &VulnerabilityReport_Vulnerability| { &m.update_time }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &VulnerabilityReport_Vulnerability| { &m.items }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability { - fn clear(&mut self) { - self.details.clear(); - self.installed_inventory_item_ids.clear(); - self.available_inventory_item_ids.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Details { - // message fields - pub cve: ::std::string::String, - pub cvss_v2_score: f32, - pub cvss_v3: ::protobuf::SingularPtrField, - pub severity: ::std::string::String, - pub description: ::std::string::String, - pub references: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Details { - fn default() -> &'a VulnerabilityReport_Vulnerability_Details { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Details { - pub fn new() -> VulnerabilityReport_Vulnerability_Details { - ::std::default::Default::default() - } - - // string cve = 1; - - - pub fn get_cve(&self) -> &str { - &self.cve - } - pub fn clear_cve(&mut self) { - self.cve.clear(); - } - - // Param is passed by value, moved - pub fn set_cve(&mut self, v: ::std::string::String) { - self.cve = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cve(&mut self) -> &mut ::std::string::String { - &mut self.cve - } - - // Take field - pub fn take_cve(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cve, ::std::string::String::new()) - } - - // float cvss_v2_score = 2; - - - pub fn get_cvss_v2_score(&self) -> f32 { - self.cvss_v2_score - } - pub fn clear_cvss_v2_score(&mut self) { - self.cvss_v2_score = 0.; - } - - // Param is passed by value, moved - pub fn set_cvss_v2_score(&mut self, v: f32) { - self.cvss_v2_score = v; - } - - // .google.cloud.osconfig.v1.CVSSv3 cvss_v3 = 3; - - - pub fn get_cvss_v3(&self) -> &CVSSv3 { - self.cvss_v3.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cvss_v3(&mut self) { - self.cvss_v3.clear(); - } - - pub fn has_cvss_v3(&self) -> bool { - self.cvss_v3.is_some() - } - - // Param is passed by value, moved - pub fn set_cvss_v3(&mut self, v: CVSSv3) { - self.cvss_v3 = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cvss_v3(&mut self) -> &mut CVSSv3 { - if self.cvss_v3.is_none() { - self.cvss_v3.set_default(); - } - self.cvss_v3.as_mut().unwrap() - } - - // Take field - pub fn take_cvss_v3(&mut self) -> CVSSv3 { - self.cvss_v3.take().unwrap_or_else(|| CVSSv3::new()) - } - - // string severity = 4; - - - pub fn get_severity(&self) -> &str { - &self.severity - } - pub fn clear_severity(&mut self) { - self.severity.clear(); - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: ::std::string::String) { - self.severity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_severity(&mut self) -> &mut ::std::string::String { - &mut self.severity - } - - // Take field - pub fn take_severity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.severity, ::std::string::String::new()) - } - - // string description = 5; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details.Reference references = 6; - - - pub fn get_references(&self) -> &[VulnerabilityReport_Vulnerability_Details_Reference] { - &self.references - } - pub fn clear_references(&mut self) { - self.references.clear(); - } - - // Param is passed by value, moved - pub fn set_references(&mut self, v: ::protobuf::RepeatedField) { - self.references = v; - } - - // Mutable pointer to the field. - pub fn mut_references(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.references - } - - // Take field - pub fn take_references(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.references, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Details { - fn is_initialized(&self) -> bool { - for v in &self.cvss_v3 { - if !v.is_initialized() { - return false; - } - }; - for v in &self.references { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cve)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.cvss_v2_score = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cvss_v3)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.severity)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.references)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.cve.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.cve); - } - if self.cvss_v2_score != 0. { - my_size += 5; - } - if let Some(ref v) = self.cvss_v3.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.severity.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.severity); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.description); - } - for value in &self.references { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.cve.is_empty() { - os.write_string(1, &self.cve)?; - } - if self.cvss_v2_score != 0. { - os.write_float(2, self.cvss_v2_score)?; - } - if let Some(ref v) = self.cvss_v3.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.severity.is_empty() { - os.write_string(4, &self.severity)?; - } - if !self.description.is_empty() { - os.write_string(5, &self.description)?; - } - for v in &self.references { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Details { - VulnerabilityReport_Vulnerability_Details::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cve", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cve }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cve }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "cvss_v2_score", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cvss_v2_score }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cvss_v2_score }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cvss_v3", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cvss_v3 }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cvss_v3 }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severity", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.severity }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.description }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "references", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.references }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.references }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Details", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Details { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Details::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Details { - fn clear(&mut self) { - self.cve.clear(); - self.cvss_v2_score = 0.; - self.cvss_v3.clear(); - self.severity.clear(); - self.description.clear(); - self.references.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Details { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Details { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Details_Reference { - // message fields - pub url: ::std::string::String, - pub source: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Details_Reference { - fn default() -> &'a VulnerabilityReport_Vulnerability_Details_Reference { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Details_Reference { - pub fn new() -> VulnerabilityReport_Vulnerability_Details_Reference { - ::std::default::Default::default() - } - - // string url = 1; - - - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } - - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } - - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } - - // string source = 2; - - - pub fn get_source(&self) -> &str { - &self.source - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: ::std::string::String) { - self.source = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut ::std::string::String { - &mut self.source - } - - // Take field - pub fn take_source(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Details_Reference { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.url); - } - if !self.source.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.url.is_empty() { - os.write_string(1, &self.url)?; - } - if !self.source.is_empty() { - os.write_string(2, &self.source)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Details_Reference { - VulnerabilityReport_Vulnerability_Details_Reference::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &VulnerabilityReport_Vulnerability_Details_Reference| { &m.url }, - |m: &mut VulnerabilityReport_Vulnerability_Details_Reference| { &mut m.url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source", - |m: &VulnerabilityReport_Vulnerability_Details_Reference| { &m.source }, - |m: &mut VulnerabilityReport_Vulnerability_Details_Reference| { &mut m.source }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Details.Reference", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Details_Reference { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Details_Reference::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Details_Reference { - fn clear(&mut self) { - self.url.clear(); - self.source.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Details_Reference { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Details_Reference { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Item { - // message fields - pub installed_inventory_item_id: ::std::string::String, - pub available_inventory_item_id: ::std::string::String, - pub fixed_cpe_uri: ::std::string::String, - pub upstream_fix: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Item { - fn default() -> &'a VulnerabilityReport_Vulnerability_Item { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Item { - pub fn new() -> VulnerabilityReport_Vulnerability_Item { - ::std::default::Default::default() - } - - // string installed_inventory_item_id = 1; - - - pub fn get_installed_inventory_item_id(&self) -> &str { - &self.installed_inventory_item_id - } - pub fn clear_installed_inventory_item_id(&mut self) { - self.installed_inventory_item_id.clear(); - } - - // Param is passed by value, moved - pub fn set_installed_inventory_item_id(&mut self, v: ::std::string::String) { - self.installed_inventory_item_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_installed_inventory_item_id(&mut self) -> &mut ::std::string::String { - &mut self.installed_inventory_item_id - } - - // Take field - pub fn take_installed_inventory_item_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.installed_inventory_item_id, ::std::string::String::new()) - } - - // string available_inventory_item_id = 2; - - - pub fn get_available_inventory_item_id(&self) -> &str { - &self.available_inventory_item_id - } - pub fn clear_available_inventory_item_id(&mut self) { - self.available_inventory_item_id.clear(); - } - - // Param is passed by value, moved - pub fn set_available_inventory_item_id(&mut self, v: ::std::string::String) { - self.available_inventory_item_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_available_inventory_item_id(&mut self) -> &mut ::std::string::String { - &mut self.available_inventory_item_id - } - - // Take field - pub fn take_available_inventory_item_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.available_inventory_item_id, ::std::string::String::new()) - } - - // string fixed_cpe_uri = 3; - - - pub fn get_fixed_cpe_uri(&self) -> &str { - &self.fixed_cpe_uri - } - pub fn clear_fixed_cpe_uri(&mut self) { - self.fixed_cpe_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_fixed_cpe_uri(&mut self, v: ::std::string::String) { - self.fixed_cpe_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_fixed_cpe_uri(&mut self) -> &mut ::std::string::String { - &mut self.fixed_cpe_uri - } - - // Take field - pub fn take_fixed_cpe_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.fixed_cpe_uri, ::std::string::String::new()) - } - - // string upstream_fix = 4; - - - pub fn get_upstream_fix(&self) -> &str { - &self.upstream_fix - } - pub fn clear_upstream_fix(&mut self) { - self.upstream_fix.clear(); - } - - // Param is passed by value, moved - pub fn set_upstream_fix(&mut self, v: ::std::string::String) { - self.upstream_fix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_upstream_fix(&mut self) -> &mut ::std::string::String { - &mut self.upstream_fix - } - - // Take field - pub fn take_upstream_fix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.upstream_fix, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Item { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.installed_inventory_item_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.available_inventory_item_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.fixed_cpe_uri)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upstream_fix)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.installed_inventory_item_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.installed_inventory_item_id); - } - if !self.available_inventory_item_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.available_inventory_item_id); - } - if !self.fixed_cpe_uri.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.fixed_cpe_uri); - } - if !self.upstream_fix.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.upstream_fix); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.installed_inventory_item_id.is_empty() { - os.write_string(1, &self.installed_inventory_item_id)?; - } - if !self.available_inventory_item_id.is_empty() { - os.write_string(2, &self.available_inventory_item_id)?; - } - if !self.fixed_cpe_uri.is_empty() { - os.write_string(3, &self.fixed_cpe_uri)?; - } - if !self.upstream_fix.is_empty() { - os.write_string(4, &self.upstream_fix)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Item { - VulnerabilityReport_Vulnerability_Item::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "installed_inventory_item_id", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.installed_inventory_item_id }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.installed_inventory_item_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "available_inventory_item_id", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.available_inventory_item_id }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.available_inventory_item_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "fixed_cpe_uri", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.fixed_cpe_uri }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.fixed_cpe_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "upstream_fix", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.upstream_fix }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.upstream_fix }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Item", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Item { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Item::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Item { - fn clear(&mut self) { - self.installed_inventory_item_id.clear(); - self.available_inventory_item_id.clear(); - self.fixed_cpe_uri.clear(); - self.upstream_fix.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Item { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Item { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetVulnerabilityReportRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetVulnerabilityReportRequest { - fn default() -> &'a GetVulnerabilityReportRequest { - ::default_instance() - } -} - -impl GetVulnerabilityReportRequest { - pub fn new() -> GetVulnerabilityReportRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetVulnerabilityReportRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetVulnerabilityReportRequest { - GetVulnerabilityReportRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetVulnerabilityReportRequest| { &m.name }, - |m: &mut GetVulnerabilityReportRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetVulnerabilityReportRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetVulnerabilityReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetVulnerabilityReportRequest::new) - } -} - -impl ::protobuf::Clear for GetVulnerabilityReportRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetVulnerabilityReportRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetVulnerabilityReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListVulnerabilityReportsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListVulnerabilityReportsRequest { - fn default() -> &'a ListVulnerabilityReportsRequest { - ::default_instance() - } -} - -impl ListVulnerabilityReportsRequest { - pub fn new() -> ListVulnerabilityReportsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListVulnerabilityReportsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListVulnerabilityReportsRequest { - ListVulnerabilityReportsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListVulnerabilityReportsRequest| { &m.parent }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListVulnerabilityReportsRequest| { &m.page_size }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListVulnerabilityReportsRequest| { &m.page_token }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListVulnerabilityReportsRequest| { &m.filter }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListVulnerabilityReportsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListVulnerabilityReportsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListVulnerabilityReportsRequest::new) - } -} - -impl ::protobuf::Clear for ListVulnerabilityReportsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListVulnerabilityReportsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListVulnerabilityReportsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListVulnerabilityReportsResponse { - // message fields - pub vulnerability_reports: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListVulnerabilityReportsResponse { - fn default() -> &'a ListVulnerabilityReportsResponse { - ::default_instance() - } -} - -impl ListVulnerabilityReportsResponse { - pub fn new() -> ListVulnerabilityReportsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1.VulnerabilityReport vulnerability_reports = 1; - - - pub fn get_vulnerability_reports(&self) -> &[VulnerabilityReport] { - &self.vulnerability_reports - } - pub fn clear_vulnerability_reports(&mut self) { - self.vulnerability_reports.clear(); - } - - // Param is passed by value, moved - pub fn set_vulnerability_reports(&mut self, v: ::protobuf::RepeatedField) { - self.vulnerability_reports = v; - } - - // Mutable pointer to the field. - pub fn mut_vulnerability_reports(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.vulnerability_reports - } - - // Take field - pub fn take_vulnerability_reports(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.vulnerability_reports, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListVulnerabilityReportsResponse { - fn is_initialized(&self) -> bool { - for v in &self.vulnerability_reports { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.vulnerability_reports)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.vulnerability_reports { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.vulnerability_reports { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListVulnerabilityReportsResponse { - ListVulnerabilityReportsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "vulnerability_reports", - |m: &ListVulnerabilityReportsResponse| { &m.vulnerability_reports }, - |m: &mut ListVulnerabilityReportsResponse| { &mut m.vulnerability_reports }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListVulnerabilityReportsResponse| { &m.next_page_token }, - |m: &mut ListVulnerabilityReportsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListVulnerabilityReportsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListVulnerabilityReportsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListVulnerabilityReportsResponse::new) - } -} - -impl ::protobuf::Clear for ListVulnerabilityReportsResponse { - fn clear(&mut self) { - self.vulnerability_reports.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListVulnerabilityReportsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListVulnerabilityReportsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CVSSv3 { - // message fields - pub base_score: f32, - pub exploitability_score: f32, - pub impact_score: f32, - pub attack_vector: CVSSv3_AttackVector, - pub attack_complexity: CVSSv3_AttackComplexity, - pub privileges_required: CVSSv3_PrivilegesRequired, - pub user_interaction: CVSSv3_UserInteraction, - pub scope: CVSSv3_Scope, - pub confidentiality_impact: CVSSv3_Impact, - pub integrity_impact: CVSSv3_Impact, - pub availability_impact: CVSSv3_Impact, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CVSSv3 { - fn default() -> &'a CVSSv3 { - ::default_instance() - } -} - -impl CVSSv3 { - pub fn new() -> CVSSv3 { - ::std::default::Default::default() - } - - // float base_score = 1; - - - pub fn get_base_score(&self) -> f32 { - self.base_score - } - pub fn clear_base_score(&mut self) { - self.base_score = 0.; - } - - // Param is passed by value, moved - pub fn set_base_score(&mut self, v: f32) { - self.base_score = v; - } - - // float exploitability_score = 2; - - - pub fn get_exploitability_score(&self) -> f32 { - self.exploitability_score - } - pub fn clear_exploitability_score(&mut self) { - self.exploitability_score = 0.; - } - - // Param is passed by value, moved - pub fn set_exploitability_score(&mut self, v: f32) { - self.exploitability_score = v; - } - - // float impact_score = 3; - - - pub fn get_impact_score(&self) -> f32 { - self.impact_score - } - pub fn clear_impact_score(&mut self) { - self.impact_score = 0.; - } - - // Param is passed by value, moved - pub fn set_impact_score(&mut self, v: f32) { - self.impact_score = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.AttackVector attack_vector = 5; - - - pub fn get_attack_vector(&self) -> CVSSv3_AttackVector { - self.attack_vector - } - pub fn clear_attack_vector(&mut self) { - self.attack_vector = CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_attack_vector(&mut self, v: CVSSv3_AttackVector) { - self.attack_vector = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.AttackComplexity attack_complexity = 6; - - - pub fn get_attack_complexity(&self) -> CVSSv3_AttackComplexity { - self.attack_complexity - } - pub fn clear_attack_complexity(&mut self) { - self.attack_complexity = CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_attack_complexity(&mut self, v: CVSSv3_AttackComplexity) { - self.attack_complexity = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.PrivilegesRequired privileges_required = 7; - - - pub fn get_privileges_required(&self) -> CVSSv3_PrivilegesRequired { - self.privileges_required - } - pub fn clear_privileges_required(&mut self) { - self.privileges_required = CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_privileges_required(&mut self, v: CVSSv3_PrivilegesRequired) { - self.privileges_required = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.UserInteraction user_interaction = 8; - - - pub fn get_user_interaction(&self) -> CVSSv3_UserInteraction { - self.user_interaction - } - pub fn clear_user_interaction(&mut self) { - self.user_interaction = CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_user_interaction(&mut self, v: CVSSv3_UserInteraction) { - self.user_interaction = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.Scope scope = 9; - - - pub fn get_scope(&self) -> CVSSv3_Scope { - self.scope - } - pub fn clear_scope(&mut self) { - self.scope = CVSSv3_Scope::SCOPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: CVSSv3_Scope) { - self.scope = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.Impact confidentiality_impact = 10; - - - pub fn get_confidentiality_impact(&self) -> CVSSv3_Impact { - self.confidentiality_impact - } - pub fn clear_confidentiality_impact(&mut self) { - self.confidentiality_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_confidentiality_impact(&mut self, v: CVSSv3_Impact) { - self.confidentiality_impact = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.Impact integrity_impact = 11; - - - pub fn get_integrity_impact(&self) -> CVSSv3_Impact { - self.integrity_impact - } - pub fn clear_integrity_impact(&mut self) { - self.integrity_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_integrity_impact(&mut self, v: CVSSv3_Impact) { - self.integrity_impact = v; - } - - // .google.cloud.osconfig.v1.CVSSv3.Impact availability_impact = 12; - - - pub fn get_availability_impact(&self) -> CVSSv3_Impact { - self.availability_impact - } - pub fn clear_availability_impact(&mut self) { - self.availability_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_availability_impact(&mut self, v: CVSSv3_Impact) { - self.availability_impact = v; - } -} - -impl ::protobuf::Message for CVSSv3 { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.base_score = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.exploitability_score = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.impact_score = tmp; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.attack_vector, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.attack_complexity, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.privileges_required, 7, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.user_interaction, 8, &mut self.unknown_fields)? - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.scope, 9, &mut self.unknown_fields)? - }, - 10 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.confidentiality_impact, 10, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.integrity_impact, 11, &mut self.unknown_fields)? - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.availability_impact, 12, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.base_score != 0. { - my_size += 5; - } - if self.exploitability_score != 0. { - my_size += 5; - } - if self.impact_score != 0. { - my_size += 5; - } - if self.attack_vector != CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.attack_vector); - } - if self.attack_complexity != CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.attack_complexity); - } - if self.privileges_required != CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.privileges_required); - } - if self.user_interaction != CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.user_interaction); - } - if self.scope != CVSSv3_Scope::SCOPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.scope); - } - if self.confidentiality_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(10, self.confidentiality_impact); - } - if self.integrity_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(11, self.integrity_impact); - } - if self.availability_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.availability_impact); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.base_score != 0. { - os.write_float(1, self.base_score)?; - } - if self.exploitability_score != 0. { - os.write_float(2, self.exploitability_score)?; - } - if self.impact_score != 0. { - os.write_float(3, self.impact_score)?; - } - if self.attack_vector != CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.attack_vector))?; - } - if self.attack_complexity != CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.attack_complexity))?; - } - if self.privileges_required != CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.privileges_required))?; - } - if self.user_interaction != CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.user_interaction))?; - } - if self.scope != CVSSv3_Scope::SCOPE_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.scope))?; - } - if self.confidentiality_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(10, ::protobuf::ProtobufEnum::value(&self.confidentiality_impact))?; - } - if self.integrity_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(11, ::protobuf::ProtobufEnum::value(&self.integrity_impact))?; - } - if self.availability_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.availability_impact))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CVSSv3 { - CVSSv3::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "base_score", - |m: &CVSSv3| { &m.base_score }, - |m: &mut CVSSv3| { &mut m.base_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "exploitability_score", - |m: &CVSSv3| { &m.exploitability_score }, - |m: &mut CVSSv3| { &mut m.exploitability_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "impact_score", - |m: &CVSSv3| { &m.impact_score }, - |m: &mut CVSSv3| { &mut m.impact_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "attack_vector", - |m: &CVSSv3| { &m.attack_vector }, - |m: &mut CVSSv3| { &mut m.attack_vector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "attack_complexity", - |m: &CVSSv3| { &m.attack_complexity }, - |m: &mut CVSSv3| { &mut m.attack_complexity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "privileges_required", - |m: &CVSSv3| { &m.privileges_required }, - |m: &mut CVSSv3| { &mut m.privileges_required }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "user_interaction", - |m: &CVSSv3| { &m.user_interaction }, - |m: &mut CVSSv3| { &mut m.user_interaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "scope", - |m: &CVSSv3| { &m.scope }, - |m: &mut CVSSv3| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "confidentiality_impact", - |m: &CVSSv3| { &m.confidentiality_impact }, - |m: &mut CVSSv3| { &mut m.confidentiality_impact }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "integrity_impact", - |m: &CVSSv3| { &m.integrity_impact }, - |m: &mut CVSSv3| { &mut m.integrity_impact }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "availability_impact", - |m: &CVSSv3| { &m.availability_impact }, - |m: &mut CVSSv3| { &mut m.availability_impact }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CVSSv3", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CVSSv3 { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CVSSv3::new) - } -} - -impl ::protobuf::Clear for CVSSv3 { - fn clear(&mut self) { - self.base_score = 0.; - self.exploitability_score = 0.; - self.impact_score = 0.; - self.attack_vector = CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED; - self.attack_complexity = CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED; - self.privileges_required = CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED; - self.user_interaction = CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED; - self.scope = CVSSv3_Scope::SCOPE_UNSPECIFIED; - self.confidentiality_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.integrity_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.availability_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CVSSv3 { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3 { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_AttackVector { - ATTACK_VECTOR_UNSPECIFIED = 0, - ATTACK_VECTOR_NETWORK = 1, - ATTACK_VECTOR_ADJACENT = 2, - ATTACK_VECTOR_LOCAL = 3, - ATTACK_VECTOR_PHYSICAL = 4, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_AttackVector { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_NETWORK), - 2 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_ADJACENT), - 3 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_LOCAL), - 4 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_PHYSICAL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_AttackVector] = &[ - CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED, - CVSSv3_AttackVector::ATTACK_VECTOR_NETWORK, - CVSSv3_AttackVector::ATTACK_VECTOR_ADJACENT, - CVSSv3_AttackVector::ATTACK_VECTOR_LOCAL, - CVSSv3_AttackVector::ATTACK_VECTOR_PHYSICAL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.AttackVector", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_AttackVector { -} - -impl ::std::default::Default for CVSSv3_AttackVector { - fn default() -> Self { - CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_AttackVector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_AttackComplexity { - ATTACK_COMPLEXITY_UNSPECIFIED = 0, - ATTACK_COMPLEXITY_LOW = 1, - ATTACK_COMPLEXITY_HIGH = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_AttackComplexity { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_LOW), - 2 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_HIGH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_AttackComplexity] = &[ - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED, - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_LOW, - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_HIGH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.AttackComplexity", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_AttackComplexity { -} - -impl ::std::default::Default for CVSSv3_AttackComplexity { - fn default() -> Self { - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_AttackComplexity { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_PrivilegesRequired { - PRIVILEGES_REQUIRED_UNSPECIFIED = 0, - PRIVILEGES_REQUIRED_NONE = 1, - PRIVILEGES_REQUIRED_LOW = 2, - PRIVILEGES_REQUIRED_HIGH = 3, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_PrivilegesRequired { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_NONE), - 2 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_LOW), - 3 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_HIGH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_PrivilegesRequired] = &[ - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_NONE, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_LOW, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_HIGH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.PrivilegesRequired", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_PrivilegesRequired { -} - -impl ::std::default::Default for CVSSv3_PrivilegesRequired { - fn default() -> Self { - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_PrivilegesRequired { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_UserInteraction { - USER_INTERACTION_UNSPECIFIED = 0, - USER_INTERACTION_NONE = 1, - USER_INTERACTION_REQUIRED = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_UserInteraction { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_NONE), - 2 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_REQUIRED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_UserInteraction] = &[ - CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED, - CVSSv3_UserInteraction::USER_INTERACTION_NONE, - CVSSv3_UserInteraction::USER_INTERACTION_REQUIRED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.UserInteraction", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_UserInteraction { -} - -impl ::std::default::Default for CVSSv3_UserInteraction { - fn default() -> Self { - CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_UserInteraction { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_Scope { - SCOPE_UNSPECIFIED = 0, - SCOPE_UNCHANGED = 1, - SCOPE_CHANGED = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_Scope { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_UNCHANGED), - 2 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_CHANGED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_Scope] = &[ - CVSSv3_Scope::SCOPE_UNSPECIFIED, - CVSSv3_Scope::SCOPE_UNCHANGED, - CVSSv3_Scope::SCOPE_CHANGED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.Scope", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_Scope { -} - -impl ::std::default::Default for CVSSv3_Scope { - fn default() -> Self { - CVSSv3_Scope::SCOPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_Scope { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_Impact { - IMPACT_UNSPECIFIED = 0, - IMPACT_HIGH = 1, - IMPACT_LOW = 2, - IMPACT_NONE = 3, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_Impact { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_HIGH), - 2 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_LOW), - 3 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_NONE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_Impact] = &[ - CVSSv3_Impact::IMPACT_UNSPECIFIED, - CVSSv3_Impact::IMPACT_HIGH, - CVSSv3_Impact::IMPACT_LOW, - CVSSv3_Impact::IMPACT_NONE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.Impact", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_Impact { -} - -impl ::std::default::Default for CVSSv3_Impact { - fn default() -> Self { - CVSSv3_Impact::IMPACT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_Impact { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n,google/cloud/osconfig/v1/vulnerability.proto\x12\x18google.cloud.osco\ - nfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resourc\ - e.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\n\n\x13Vulnerabilit\ - yReport\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12j\ - \n\x0fvulnerabilities\x18\x02\x20\x03(\x0b2;.google.cloud.osconfig.v1.Vu\ - lnerabilityReport.VulnerabilityR\x0fvulnerabilitiesB\x03\xe0A\x03\x12@\n\ - \x0bupdate_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nup\ - dateTimeB\x03\xe0A\x03\x1a\xf9\x07\n\rVulnerability\x12]\n\x07details\ - \x18\x01\x20\x01(\x0b2C.google.cloud.osconfig.v1.VulnerabilityReport.Vul\ - nerability.DetailsR\x07details\x12C\n\x1cinstalled_inventory_item_ids\ - \x18\x02\x20\x03(\tR\x19installedInventoryItemIdsB\x02\x18\x01\x12C\n\ - \x1cavailable_inventory_item_ids\x18\x03\x20\x03(\tR\x19availableInvento\ - ryItemIdsB\x02\x18\x01\x12;\n\x0bcreate_time\x18\x04\x20\x01(\x0b2\x1a.g\ - oogle.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x05\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTime\x12V\n\x05items\ - \x18\x06\x20\x03(\x0b2@.google.cloud.osconfig.v1.VulnerabilityReport.Vul\ - nerability.ItemR\x05items\x1a\xde\x02\n\x07Details\x12\x10\n\x03cve\x18\ - \x01\x20\x01(\tR\x03cve\x12\"\n\rcvss_v2_score\x18\x02\x20\x01(\x02R\x0b\ - cvssV2Score\x129\n\x07cvss_v3\x18\x03\x20\x01(\x0b2\x20.google.cloud.osc\ - onfig.v1.CVSSv3R\x06cvssV3\x12\x1a\n\x08severity\x18\x04\x20\x01(\tR\x08\ - severity\x12\x20\n\x0bdescription\x18\x05\x20\x01(\tR\x0bdescription\x12\ - m\n\nreferences\x18\x06\x20\x03(\x0b2M.google.cloud.osconfig.v1.Vulnerab\ - ilityReport.Vulnerability.Details.ReferenceR\nreferences\x1a5\n\tReferen\ - ce\x12\x10\n\x03url\x18\x01\x20\x01(\tR\x03url\x12\x16\n\x06source\x18\ - \x02\x20\x01(\tR\x06source\x1a\xcb\x01\n\x04Item\x12=\n\x1binstalled_inv\ - entory_item_id\x18\x01\x20\x01(\tR\x18installedInventoryItemId\x12=\n\ - \x1bavailable_inventory_item_id\x18\x02\x20\x01(\tR\x18availableInventor\ - yItemId\x12\"\n\rfixed_cpe_uri\x18\x03\x20\x01(\tR\x0bfixedCpeUri\x12!\n\ - \x0cupstream_fix\x18\x04\x20\x01(\tR\x0bupstreamFix:\x82\x01\xeaA\x7f\n+\ - osconfig.googleapis.com/VulnerabilityReport\x12Pprojects/{project}/locat\ - ions/{location}/instances/{instance}/vulnerabilityReport\"h\n\x1dGetVuln\ - erabilityReportRequest\x12G\n\x04name\x18\x01\x20\x01(\tR\x04nameB3\xfaA\ - -\n+osconfig.googleapis.com/VulnerabilityReport\xe0A\x02\"\xb6\x01\n\x1f\ - ListVulnerabilityReportsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06\ - parentB'\xfaA!\n\x1fcompute.googleapis.com/Instance\xe0A\x02\x12\x1b\n\t\ - page_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\ - \x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\x18\x04\x20\x01(\tR\x06f\ - ilter\"\xae\x01\n\x20ListVulnerabilityReportsResponse\x12b\n\x15vulnerab\ - ility_reports\x18\x01\x20\x03(\x0b2-.google.cloud.osconfig.v1.Vulnerabil\ - ityReportR\x14vulnerabilityReports\x12&\n\x0fnext_page_token\x18\x02\x20\ - \x01(\tR\rnextPageToken\"\xea\x0b\n\x06CVSSv3\x12\x1d\n\nbase_score\x18\ - \x01\x20\x01(\x02R\tbaseScore\x121\n\x14exploitability_score\x18\x02\x20\ - \x01(\x02R\x13exploitabilityScore\x12!\n\x0cimpact_score\x18\x03\x20\x01\ - (\x02R\x0bimpactScore\x12R\n\rattack_vector\x18\x05\x20\x01(\x0e2-.googl\ - e.cloud.osconfig.v1.CVSSv3.AttackVectorR\x0cattackVector\x12^\n\x11attac\ - k_complexity\x18\x06\x20\x01(\x0e21.google.cloud.osconfig.v1.CVSSv3.Atta\ - ckComplexityR\x10attackComplexity\x12d\n\x13privileges_required\x18\x07\ - \x20\x01(\x0e23.google.cloud.osconfig.v1.CVSSv3.PrivilegesRequiredR\x12p\ - rivilegesRequired\x12[\n\x10user_interaction\x18\x08\x20\x01(\x0e20.goog\ - le.cloud.osconfig.v1.CVSSv3.UserInteractionR\x0fuserInteraction\x12<\n\ - \x05scope\x18\t\x20\x01(\x0e2&.google.cloud.osconfig.v1.CVSSv3.ScopeR\ - \x05scope\x12^\n\x16confidentiality_impact\x18\n\x20\x01(\x0e2'.google.c\ - loud.osconfig.v1.CVSSv3.ImpactR\x15confidentialityImpact\x12R\n\x10integ\ - rity_impact\x18\x0b\x20\x01(\x0e2'.google.cloud.osconfig.v1.CVSSv3.Impac\ - tR\x0fintegrityImpact\x12X\n\x13availability_impact\x18\x0c\x20\x01(\x0e\ - 2'.google.cloud.osconfig.v1.CVSSv3.ImpactR\x12availabilityImpact\"\x99\ - \x01\n\x0cAttackVector\x12\x1d\n\x19ATTACK_VECTOR_UNSPECIFIED\x10\0\x12\ - \x19\n\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16ATTACK_VECTOR_ADJAC\ - ENT\x10\x02\x12\x17\n\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16ATTACK\ - _VECTOR_PHYSICAL\x10\x04\"l\n\x10AttackComplexity\x12!\n\x1dATTACK_COMPL\ - EXITY_UNSPECIFIED\x10\0\x12\x19\n\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\ - \x1a\n\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\n\x12PrivilegesRequir\ - ed\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\0\x12\x1c\n\x18PRIVILEG\ - ES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\ - \x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\ - \x12\x20\n\x1cUSER_INTERACTION_UNSPECIFIED\x10\0\x12\x19\n\x15USER_INTER\ - ACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\ - \x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\0\x12\x13\n\x0fSCOPE_UNCHAN\ - GED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"R\n\x06Impact\x12\x16\n\ - \x12IMPACT_UNSPECIFIED\x10\0\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\ - \nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03B\xc2\x01\n\x1ccom.\ - google.cloud.osconfig.v1B\x12VulnerabilityProtoP\x01Z8cloud.google.com/g\ - o/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.\ - V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsCo\ - nfig::V1J\xf2p\n\x07\x12\x05\x0e\0\xec\x02\x01\n\xbc\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20Lic\ - ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\x08\n\x01\x02\x12\x03\x10\0!\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\ - \x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\x08\n\x01\ - \x08\x12\x03\x16\05\n\t\n\x02\x08%\x12\x03\x16\05\n\x08\n\x01\x08\x12\ - \x03\x17\0O\n\t\n\x02\x08\x0b\x12\x03\x17\0O\n\x08\n\x01\x08\x12\x03\x18\ - \0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\03\n\t\ - \n\x02\x08\x08\x12\x03\x19\03\n\x08\n\x01\x08\x12\x03\x1a\05\n\t\n\x02\ - \x08\x01\x12\x03\x1a\05\n\x08\n\x01\x08\x12\x03\x1b\05\n\t\n\x02\x08)\ - \x12\x03\x1b\05\n\x08\n\x01\x08\x12\x03\x1c\04\n\t\n\x02\x08-\x12\x03\ - \x1c\04\n\xb2\x02\n\x02\x04\0\x12\x05#\0\x90\x01\x01\x1a\xa4\x02\x20This\ - \x20API\x20resource\x20represents\x20the\x20vulnerability\x20report\x20f\ - or\x20a\x20specified\n\x20Compute\x20Engine\x20virtual\x20machine\x20(VM\ - )\x20instance\x20at\x20a\x20given\x20point\x20in\x20time.\n\n\x20For\x20\ - more\x20information,\x20see\x20[Vulnerability\n\x20reports](https://clou\ - d.google.com/compute/docs/instances/os-inventory-management#vulnerabilit\ - y-reports).\n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x1b\n\x0b\n\x03\x04\0\x07\ - \x12\x04$\x02'\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04$\x02'\x04\n;\n\ - \x04\x04\0\x03\0\x12\x05*\x02\x82\x01\x03\x1a,\x20A\x20vulnerability\x20\ - affecting\x20the\x20VM\x20instance.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\ - \x03*\n\x17\n\x96\x01\n\x06\x04\0\x03\0\x03\0\x12\x04-\x04K\x05\x1a\x85\ - \x01\x20Contains\x20metadata\x20information\x20for\x20the\x20vulnerabili\ - ty.\x20This\x20information\x20is\n\x20collected\x20from\x20the\x20upstre\ - am\x20feed\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\ - \0\x03\0\x01\x12\x03-\x0c\x13\n7\n\x08\x04\0\x03\0\x03\0\x03\0\x12\x04/\ - \x065\x07\x1a%\x20A\x20reference\x20for\x20this\x20vulnerability.\n\n\ - \x10\n\t\x04\0\x03\0\x03\0\x03\0\x01\x12\x03/\x0e\x17\n.\n\n\x04\0\x03\0\ - \x03\0\x03\0\x02\0\x12\x031\x08\x17\x1a\x1b\x20The\x20url\x20of\x20the\ - \x20reference.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\x05\x12\x031\ - \x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\x01\x12\x031\x0f\x12\ - \n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\x03\x12\x031\x15\x16\n:\n\n\ - \x04\0\x03\0\x03\0\x03\0\x02\x01\x12\x034\x08\x1a\x1a'\x20The\x20source\ - \x20of\x20the\x20reference\x20e.g.\x20NVD.\n\n\x12\n\x0b\x04\0\x03\0\x03\ - \0\x03\0\x02\x01\x05\x12\x034\x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\ - \0\x02\x01\x01\x12\x034\x0f\x15\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\ - \x01\x03\x12\x034\x18\x19\n\xa6\x01\n\x08\x04\0\x03\0\x03\0\x02\0\x12\ - \x03:\x06\x15\x1a\x94\x01\x20The\x20CVE\x20of\x20the\x20vulnerability.\ - \x20CVE\x20cannot\x20be\n\x20empty\x20and\x20the\x20combination\x20of\ - \x20\x20should\x20be\x20unique\n\x20across\x20vu\ - lnerabilities\x20for\x20a\x20VM.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\x05\ - \x12\x03:\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\x01\x12\x03:\r\x10\n\ - \x10\n\t\x04\0\x03\0\x03\0\x02\0\x03\x12\x03:\x13\x14\n\xa2\x01\n\x08\ - \x04\0\x03\0\x03\0\x02\x01\x12\x03>\x06\x1e\x1a\x90\x01\x20The\x20CVSS\ - \x20V2\x20score\x20of\x20this\x20vulnerability.\x20CVSS\x20V2\x20score\ - \x20is\x20on\x20a\x20scale\x20of\n\x200\x20-\x2010\x20where\x200\x20indi\ - cates\x20low\x20severity\x20and\x2010\x20indicates\x20high\x20severity.\ - \n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x01\x05\x12\x03>\x06\x0b\n\x10\n\t\ - \x04\0\x03\0\x03\0\x02\x01\x01\x12\x03>\x0c\x19\n\x10\n\t\x04\0\x03\0\ - \x03\0\x02\x01\x03\x12\x03>\x1c\x1d\nV\n\x08\x04\0\x03\0\x03\0\x02\x02\ - \x12\x03A\x06\x19\x1aE\x20The\x20full\x20description\x20of\x20the\x20CVS\ - Sv3\x20for\x20this\x20vulnerability\x20from\x20NVD.\n\n\x10\n\t\x04\0\ - \x03\0\x03\0\x02\x02\x06\x12\x03A\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\0\ - \x02\x02\x01\x12\x03A\r\x14\n\x10\n\t\x04\0\x03\0\x03\0\x02\x02\x03\x12\ - \x03A\x17\x18\nD\n\x08\x04\0\x03\0\x03\0\x02\x03\x12\x03D\x06\x1a\x1a3\ - \x20Assigned\x20severity/impact\x20ranking\x20from\x20the\x20distro.\n\n\ - \x10\n\t\x04\0\x03\0\x03\0\x02\x03\x05\x12\x03D\x06\x0c\n\x10\n\t\x04\0\ - \x03\0\x03\0\x02\x03\x01\x12\x03D\r\x15\n\x10\n\t\x04\0\x03\0\x03\0\x02\ - \x03\x03\x12\x03D\x18\x19\nX\n\x08\x04\0\x03\0\x03\0\x02\x04\x12\x03G\ - \x06\x1d\x1aG\x20The\x20note\x20or\x20description\x20describing\x20the\ - \x20vulnerability\x20from\x20the\x20distro.\n\n\x10\n\t\x04\0\x03\0\x03\ - \0\x02\x04\x05\x12\x03G\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\0\x02\x04\x01\ - \x12\x03G\r\x18\n\x10\n\t\x04\0\x03\0\x03\0\x02\x04\x03\x12\x03G\x1b\x1c\ - \nX\n\x08\x04\0\x03\0\x03\0\x02\x05\x12\x03J\x06(\x1aG\x20Corresponds\ - \x20to\x20the\x20references\x20attached\x20to\x20the\x20`VulnerabilityDe\ - tails`.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x05\x04\x12\x03J\x06\x0e\n\x10\ - \n\t\x04\0\x03\0\x03\0\x02\x05\x06\x12\x03J\x0f\x18\n\x10\n\t\x04\0\x03\ - \0\x03\0\x02\x05\x01\x12\x03J\x19#\n\x10\n\t\x04\0\x03\0\x03\0\x02\x05\ - \x03\x12\x03J&'\nq\n\x06\x04\0\x03\0\x03\x01\x12\x04O\x04e\x05\x1aa\x20O\ - S\x20inventory\x20item\x20that\x20is\x20affected\x20by\x20a\x20vulnerabi\ - lity\x20or\x20fixed\x20as\x20a\n\x20result\x20of\x20a\x20vulnerability.\ - \n\n\x0e\n\x07\x04\0\x03\0\x03\x01\x01\x12\x03O\x0c\x10\n\xd2\x02\n\x08\ - \x04\0\x03\0\x03\x01\x02\0\x12\x03U\x06-\x1a\xc0\x02\x20Corresponds\x20t\ - o\x20the\x20`INSTALLED_PACKAGE`\x20inventory\x20item\x20on\x20the\x20VM.\ - \n\x20This\x20field\x20displays\x20the\x20inventory\x20items\x20affected\ - \x20by\x20this\x20vulnerability.\n\x20If\x20the\x20vulnerability\x20repo\ - rt\x20was\x20not\x20updated\x20after\x20the\x20VM\x20inventory\n\x20upda\ - te,\x20these\x20values\x20might\x20not\x20display\x20in\x20VM\x20invento\ - ry.\x20For\x20some\n\x20operating\x20systems,\x20this\x20field\x20might\ - \x20be\x20empty.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\0\x05\x12\x03U\x06\ - \x0c\n\x10\n\t\x04\0\x03\0\x03\x01\x02\0\x01\x12\x03U\r(\n\x10\n\t\x04\0\ - \x03\0\x03\x01\x02\0\x03\x12\x03U+,\n\xfa\x02\n\x08\x04\0\x03\0\x03\x01\ - \x02\x01\x12\x03]\x06-\x1a\xe8\x02\x20Corresponds\x20to\x20the\x20`AVAIL\ - ABLE_PACKAGE`\x20inventory\x20item\x20on\x20the\x20VM.\n\x20If\x20the\ - \x20vulnerability\x20report\x20was\x20not\x20updated\x20after\x20the\x20\ - VM\x20inventory\n\x20update,\x20these\x20values\x20might\x20not\x20displ\ - ay\x20in\x20VM\x20inventory.\x20If\x20there\x20is\x20no\n\x20available\ - \x20fix,\x20the\x20field\x20is\x20empty.\x20The\x20`inventory_item`\x20v\ - alue\x20specifies\n\x20the\x20latest\x20`SoftwarePackage`\x20available\ - \x20to\x20the\x20VM\x20that\x20fixes\x20the\n\x20vulnerability.\n\n\x10\ - \n\t\x04\0\x03\0\x03\x01\x02\x01\x05\x12\x03]\x06\x0c\n\x10\n\t\x04\0\ - \x03\0\x03\x01\x02\x01\x01\x12\x03]\r(\n\x10\n\t\x04\0\x03\0\x03\x01\x02\ - \x01\x03\x12\x03]+,\n\x86\x01\n\x08\x04\0\x03\0\x03\x01\x02\x02\x12\x03a\ - \x06\x1f\x1au\x20The\x20recommended\x20[CPE\x20URI](https://cpe.mitre.or\ - g/specification/)\x20update\n\x20that\x20contains\x20a\x20fix\x20for\x20\ - this\x20vulnerability.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x05\x12\ - \x03a\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x01\x12\x03a\r\x1a\n\ - \x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x03\x12\x03a\x1d\x1e\nV\n\x08\x04\0\ - \x03\0\x03\x01\x02\x03\x12\x03d\x06\x1e\x1aE\x20The\x20upstream\x20OS\ - \x20patch,\x20packages\x20or\x20KB\x20that\x20fixes\x20the\x20vulnerabil\ - ity.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x03\x05\x12\x03d\x06\x0c\n\x10\ - \n\t\x04\0\x03\0\x03\x01\x02\x03\x01\x12\x03d\r\x19\n\x10\n\t\x04\0\x03\ - \0\x03\x01\x02\x03\x03\x12\x03d\x1c\x1d\n]\n\x06\x04\0\x03\0\x02\0\x12\ - \x03i\x04\x18\x1aN\x20Contains\x20metadata\x20as\x20per\x20the\x20upstre\ - am\x20feed\x20of\x20the\x20operating\x20system\x20and\n\x20NVD.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\0\x06\x12\x03i\x04\x0b\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x01\x12\x03i\x0c\x13\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03i\ - \x16\x17\n\xc4\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03p\x04I\x1a\xb4\x02\ - \x20Corresponds\x20to\x20the\x20`INSTALLED_PACKAGE`\x20inventory\x20item\ - \x20on\x20the\x20VM.\n\x20This\x20field\x20displays\x20the\x20inventory\ - \x20items\x20affected\x20by\x20this\x20vulnerability.\n\x20If\x20the\x20\ - vulnerability\x20report\x20was\x20not\x20updated\x20after\x20the\x20VM\ - \x20inventory\n\x20update,\x20these\x20values\x20might\x20not\x20display\ - \x20in\x20VM\x20inventory.\x20For\x20some\x20distros,\n\x20this\x20field\ - \x20may\x20be\x20empty.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03p\ - \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03p\r\x13\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x01\x12\x03p\x140\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x03p34\n\x0e\n\x07\x04\0\x03\0\x02\x01\x08\x12\x03p5H\n\x0f\n\ - \x08\x04\0\x03\0\x02\x01\x08\x03\x12\x03p6G\n\xf8\x02\n\x06\x04\0\x03\0\ - \x02\x02\x12\x03x\x04I\x1a\xe8\x02\x20Corresponds\x20to\x20the\x20`AVAIL\ - ABLE_PACKAGE`\x20inventory\x20item\x20on\x20the\x20VM.\n\x20If\x20the\ - \x20vulnerability\x20report\x20was\x20not\x20updated\x20after\x20the\x20\ - VM\x20inventory\n\x20update,\x20these\x20values\x20might\x20not\x20displ\ - ay\x20in\x20VM\x20inventory.\x20If\x20there\x20is\x20no\n\x20available\ - \x20fix,\x20the\x20field\x20is\x20empty.\x20The\x20`inventory_item`\x20v\ - alue\x20specifies\n\x20the\x20latest\x20`SoftwarePackage`\x20available\ - \x20to\x20the\x20VM\x20that\x20fixes\x20the\n\x20vulnerability.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x02\x04\x12\x03x\x04\x0c\n\x0e\n\x07\x04\0\x03\0\ - \x02\x02\x05\x12\x03x\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03x\ - \x140\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03x34\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x08\x12\x03x5H\n\x0f\n\x08\x04\0\x03\0\x02\x02\x08\x03\ - \x12\x03x6G\nM\n\x06\x04\0\x03\0\x02\x03\x12\x03{\x04.\x1a>\x20The\x20ti\ - mestamp\x20for\x20when\x20the\x20vulnerability\x20was\x20first\x20detect\ - ed.\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x06\x12\x03{\x04\x1d\n\x0e\n\x07\ - \x04\0\x03\0\x02\x03\x01\x12\x03{\x1e)\n\x0e\n\x07\x04\0\x03\0\x02\x03\ - \x03\x12\x03{,-\nL\n\x06\x04\0\x03\0\x02\x04\x12\x03~\x04.\x1a=\x20The\ - \x20timestamp\x20for\x20when\x20the\x20vulnerability\x20was\x20last\x20m\ - odified.\n\n\x0e\n\x07\x04\0\x03\0\x02\x04\x06\x12\x03~\x04\x1d\n\x0e\n\ - \x07\x04\0\x03\0\x02\x04\x01\x12\x03~\x1e)\n\x0e\n\x07\x04\0\x03\0\x02\ - \x04\x03\x12\x03~,-\n>\n\x06\x04\0\x03\0\x02\x05\x12\x04\x81\x01\x04\x1c\ - \x1a.\x20List\x20of\x20items\x20affected\x20by\x20the\x20vulnerability.\ - \n\n\x0f\n\x07\x04\0\x03\0\x02\x05\x04\x12\x04\x81\x01\x04\x0c\n\x0f\n\ - \x07\x04\0\x03\0\x02\x05\x06\x12\x04\x81\x01\r\x11\n\x0f\n\x07\x04\0\x03\ - \0\x02\x05\x01\x12\x04\x81\x01\x12\x17\n\x0f\n\x07\x04\0\x03\0\x02\x05\ - \x03\x12\x04\x81\x01\x1a\x1b\n\xb2\x01\n\x04\x04\0\x02\0\x12\x04\x88\x01\ - \x02>\x1a\xa3\x01\x20Output\x20only.\x20The\x20`vulnerabilityReport`\x20\ - API\x20resource\x20name.\n\n\x20Format:\n\x20`projects/{project_number}/\ - locations/{location}/instances/{instance_id}/vulnerabilityReport`\n\n\r\ - \n\x05\x04\0\x02\0\x05\x12\x04\x88\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\ - \x12\x04\x88\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x88\x01\x10\x11\n\ - \r\n\x05\x04\0\x02\0\x08\x12\x04\x88\x01\x12=\n\x10\n\x08\x04\0\x02\0\ - \x08\x9c\x08\0\x12\x04\x88\x01\x13<\nF\n\x04\x04\0\x02\x01\x12\x04\x8b\ - \x01\x02Y\x1a8\x20Output\x20only.\x20List\x20of\x20vulnerabilities\x20af\ - fecting\x20the\x20VM.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x8b\x01\x02\ - \n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x8b\x01\x0b\x18\n\r\n\x05\x04\0\ - \x02\x01\x01\x12\x04\x8b\x01\x19(\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\ - \x8b\x01+,\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\x8b\x01-X\n\x10\n\x08\x04\ - \0\x02\x01\x08\x9c\x08\0\x12\x04\x8b\x01.W\nl\n\x04\x04\0\x02\x02\x12\ - \x04\x8f\x01\x02X\x1a^\x20Output\x20only.\x20The\x20timestamp\x20for\x20\ - when\x20the\x20last\x20vulnerability\x20report\x20was\x20generated\x20fo\ - r\x20the\n\x20VM.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8f\x01\x02\x1b\ - \n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x8f\x01\x1c'\n\r\n\x05\x04\0\x02\ - \x02\x03\x12\x04\x8f\x01*+\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\x8f\x01,W\ - \n\x10\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\x8f\x01-V\n\\\n\x02\x04\ - \x01\x12\x06\x93\x01\0\xa2\x01\x01\x1aN\x20A\x20request\x20message\x20fo\ - r\x20getting\x20the\x20vulnerability\x20report\x20for\x20the\x20specifie\ - d\x20VM.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x93\x01\x08%\n\xd0\x02\n\x04\ - \x04\x01\x02\0\x12\x06\x9c\x01\x02\xa1\x01\x04\x1a\xbf\x02\x20Required.\ - \x20API\x20resource\x20name\x20for\x20vulnerability\x20resource.\n\n\x20\ - Format:\n\x20`projects/{project}/locations/{location}/instances/{instanc\ - e}/vulnerabilityReport`\n\n\x20For\x20`{project}`,\x20either\x20`project\ - -number`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\x20For\x20`{i\ - nstance}`,\x20either\x20Compute\x20Engine\x20`instance-id`\x20or\x20`ins\ - tance-name`\n\x20can\x20be\x20provided.\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\x9c\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x9c\x01\t\r\ - \n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x9c\x01\x10\x11\n\x0f\n\x05\x04\x01\ - \x02\0\x08\x12\x06\x9c\x01\x12\xa1\x01\x03\n\x10\n\x08\x04\x01\x02\0\x08\ - \x9c\x08\0\x12\x04\x9d\x01\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\ - \x12\x06\x9e\x01\x04\xa0\x01\x05\nt\n\x02\x04\x02\x12\x06\xa6\x01\0\xbe\ - \x01\x01\x1af\x20A\x20request\x20message\x20for\x20listing\x20vulnerabil\ - ity\x20reports\x20for\x20all\x20VM\x20instances\x20in\n\x20the\x20specif\ - ied\x20location.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa6\x01\x08'\n\xc2\ - \x01\n\x04\x04\x02\x02\0\x12\x06\xac\x01\x02\xb1\x01\x04\x1a\xb1\x01\x20\ - Required.\x20The\x20parent\x20resource\x20name.\n\n\x20Format:\x20`proje\ - cts/{project}/locations/{location}/instances/-`\n\n\x20For\x20`{project}\ - `,\x20either\x20`project-number`\x20or\x20`project-id`\x20can\x20be\x20p\ - rovided.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xac\x01\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xac\x01\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\xac\x01\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xac\x01\x14\ - \xb1\x01\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xad\x01\x04\ - *\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xae\x01\x04\xb0\x01\x05\ - \n8\n\x04\x04\x02\x02\x01\x12\x04\xb4\x01\x02\x16\x1a*\x20The\x20maximum\ - \x20number\x20of\x20results\x20to\x20return.\n\n\r\n\x05\x04\x02\x02\x01\ - \x05\x12\x04\xb4\x01\x02\x07\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb4\ - \x01\x08\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb4\x01\x14\x15\n\x99\ - \x01\n\x04\x04\x02\x02\x02\x12\x04\xb9\x01\x02\x18\x1a\x8a\x01\x20A\x20p\ - agination\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\n\ - \x20`ListVulnerabilityReports`\x20that\x20indicates\x20where\x20this\x20\ - listing\n\x20should\x20continue\x20from.\n\n\r\n\x05\x04\x02\x02\x02\x05\ - \x12\x04\xb9\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb9\x01\t\ - \x13\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb9\x01\x16\x17\n\x99\x01\n\ - \x04\x04\x02\x02\x03\x12\x04\xbd\x01\x02\x14\x1a\x8a\x01\x20If\x20provid\ - ed,\x20this\x20field\x20specifies\x20the\x20criteria\x20that\x20must\x20\ - be\x20met\x20by\x20a\n\x20`vulnerabilityReport`\x20API\x20resource\x20to\ - \x20be\x20included\x20in\x20the\x20response.\n\n\r\n\x05\x04\x02\x02\x03\ - \x05\x12\x04\xbd\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xbd\ - \x01\t\x0f\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbd\x01\x12\x13\nu\n\ - \x02\x04\x03\x12\x06\xc2\x01\0\xc9\x01\x01\x1ag\x20A\x20response\x20mess\ - age\x20for\x20listing\x20vulnerability\x20reports\x20for\x20all\x20VM\ - \x20instances\x20in\n\x20the\x20specified\x20location.\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\xc2\x01\x08(\n4\n\x04\x04\x03\x02\0\x12\x04\xc4\x01\x02\ - 9\x1a&\x20List\x20of\x20vulnerabilityReport\x20objects.\n\n\r\n\x05\x04\ - \x03\x02\0\x04\x12\x04\xc4\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\ - \xc4\x01\x0b\x1e\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc4\x01\x1f4\n\r\n\ - \x05\x04\x03\x02\0\x03\x12\x04\xc4\x0178\n_\n\x04\x04\x03\x02\x01\x12\ - \x04\xc8\x01\x02\x1d\x1aQ\x20The\x20pagination\x20token\x20to\x20retriev\ - e\x20the\x20next\x20page\x20of\x20vulnerabilityReports\n\x20object.\n\n\ - \r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc8\x01\x02\x08\n\r\n\x05\x04\x03\ - \x02\x01\x01\x12\x04\xc8\x01\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ - \xc8\x01\x1b\x1c\n\x82\x01\n\x02\x04\x04\x12\x06\xcd\x01\0\xec\x02\x01\ - \x1at\x20Common\x20Vulnerability\x20Scoring\x20System\x20version\x203.\n\ - \x20For\x20details,\x20see\x20https://www.first.org/cvss/specification-d\ - ocument\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xcd\x01\x08\x0e\nd\n\x04\x04\ - \x04\x04\0\x12\x06\xd0\x01\x02\xe4\x01\x03\x1aT\x20This\x20metric\x20ref\ - lects\x20the\x20context\x20by\x20which\x20vulnerability\x20exploitation\ - \x20is\n\x20possible.\n\n\r\n\x05\x04\x04\x04\0\x01\x12\x04\xd0\x01\x07\ - \x13\n\x20\n\x06\x04\x04\x04\0\x02\0\x12\x04\xd2\x01\x04\"\x1a\x10\x20In\ - valid\x20value.\n\n\x0f\n\x07\x04\x04\x04\0\x02\0\x01\x12\x04\xd2\x01\ - \x04\x1d\n\x0f\n\x07\x04\x04\x04\0\x02\0\x02\x12\x04\xd2\x01\x20!\n\xc5\ - \x01\n\x06\x04\x04\x04\0\x02\x01\x12\x04\xd7\x01\x04\x1e\x1a\xb4\x01\x20\ - The\x20vulnerable\x20component\x20is\x20bound\x20to\x20the\x20network\ - \x20stack\x20and\x20the\x20set\x20of\n\x20possible\x20attackers\x20exten\ - ds\x20beyond\x20the\x20other\x20options\x20listed\x20below,\x20up\x20to\ - \n\x20and\x20including\x20the\x20entire\x20Internet.\n\n\x0f\n\x07\x04\ - \x04\x04\0\x02\x01\x01\x12\x04\xd7\x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\ - \x02\x01\x02\x12\x04\xd7\x01\x1c\x1d\n\x9d\x01\n\x06\x04\x04\x04\0\x02\ - \x02\x12\x04\xdb\x01\x04\x1f\x1a\x8c\x01\x20The\x20vulnerable\x20compone\ - nt\x20is\x20bound\x20to\x20the\x20network\x20stack,\x20but\x20the\x20att\ - ack\x20is\n\x20limited\x20at\x20the\x20protocol\x20level\x20to\x20a\x20l\ - ogically\x20adjacent\x20topology.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\ - \x01\x12\x04\xdb\x01\x04\x1a\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\x12\ - \x04\xdb\x01\x1d\x1e\n\x8d\x01\n\x06\x04\x04\x04\0\x02\x03\x12\x04\xdf\ - \x01\x04\x1c\x1a}\x20The\x20vulnerable\x20component\x20is\x20not\x20boun\ - d\x20to\x20the\x20network\x20stack\x20and\x20the\n\x20attacker's\x20path\ - \x20is\x20via\x20read/write/execute\x20capabilities.\n\n\x0f\n\x07\x04\ - \x04\x04\0\x02\x03\x01\x12\x04\xdf\x01\x04\x17\n\x0f\n\x07\x04\x04\x04\0\ - \x02\x03\x02\x12\x04\xdf\x01\x1a\x1b\no\n\x06\x04\x04\x04\0\x02\x04\x12\ - \x04\xe3\x01\x04\x1f\x1a_\x20The\x20attack\x20requires\x20the\x20attacke\ - r\x20to\x20physically\x20touch\x20or\x20manipulate\x20the\n\x20vulnerabl\ - e\x20component.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x01\x12\x04\xe3\x01\ - \x04\x1a\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\xe3\x01\x1d\x1e\n\ - \x8c\x01\n\x04\x04\x04\x04\x01\x12\x06\xe8\x01\x02\xf7\x01\x03\x1a|\x20T\ - his\x20metric\x20describes\x20the\x20conditions\x20beyond\x20the\x20atta\ - cker's\x20control\x20that\n\x20must\x20exist\x20in\x20order\x20to\x20exp\ - loit\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\x04\x01\x01\x12\x04\ - \xe8\x01\x07\x17\n\x20\n\x06\x04\x04\x04\x01\x02\0\x12\x04\xea\x01\x04&\ - \x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\0\x01\ - \x12\x04\xea\x01\x04!\n\x0f\n\x07\x04\x04\x04\x01\x02\0\x02\x12\x04\xea\ - \x01$%\n\xb0\x01\n\x06\x04\x04\x04\x01\x02\x01\x12\x04\xef\x01\x04\x1e\ - \x1a\x9f\x01\x20Specialized\x20access\x20conditions\x20or\x20extenuating\ - \x20circumstances\x20do\x20not\x20exist.\n\x20An\x20attacker\x20can\x20e\ - xpect\x20repeatable\x20success\x20when\x20attacking\x20the\x20vulnerable\ - \n\x20component.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\x01\x12\x04\xef\ - \x01\x04\x19\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\x02\x12\x04\xef\x01\x1c\ - \x1d\n\xcd\x02\n\x06\x04\x04\x04\x01\x02\x02\x12\x04\xf6\x01\x04\x1f\x1a\ - \xbc\x02\x20A\x20successful\x20attack\x20depends\x20on\x20conditions\x20\ - beyond\x20the\x20attacker's\x20control.\n\x20That\x20is,\x20a\x20success\ - ful\x20attack\x20cannot\x20be\x20accomplished\x20at\x20will,\x20but\x20r\ - equires\n\x20the\x20attacker\x20to\x20invest\x20in\x20some\x20measurable\ - \x20amount\x20of\x20effort\x20in\x20preparation\n\x20or\x20execution\x20\ - against\x20the\x20vulnerable\x20component\x20before\x20a\x20successful\ - \x20attack\n\x20can\x20be\x20expected.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\ - \x02\x01\x12\x04\xf6\x01\x04\x1a\n\x0f\n\x07\x04\x04\x04\x01\x02\x02\x02\ - \x12\x04\xf6\x01\x1d\x1e\n\x8b\x01\n\x04\x04\x04\x04\x02\x12\x06\xfb\x01\ - \x02\x8e\x02\x03\x1a{\x20This\x20metric\x20describes\x20the\x20level\x20\ - of\x20privileges\x20an\x20attacker\x20must\x20possess\n\x20before\x20suc\ - cessfully\x20exploiting\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\x04\ - \x02\x01\x12\x04\xfb\x01\x07\x19\n\x20\n\x06\x04\x04\x04\x02\x02\0\x12\ - \x04\xfd\x01\x04(\x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\x04\x04\x04\ - \x02\x02\0\x01\x12\x04\xfd\x01\x04#\n\x0f\n\x07\x04\x04\x04\x02\x02\0\ - \x02\x12\x04\xfd\x01&'\n\xb2\x01\n\x06\x04\x04\x04\x02\x02\x01\x12\x04\ - \x82\x02\x04!\x1a\xa1\x01\x20The\x20attacker\x20is\x20unauthorized\x20pr\ - ior\x20to\x20attack,\x20and\x20therefore\x20does\x20not\n\x20require\x20\ - any\x20access\x20to\x20settings\x20or\x20files\x20of\x20the\x20vulnerabl\ - e\x20system\x20to\n\x20carry\x20out\x20an\x20attack.\n\n\x0f\n\x07\x04\ - \x04\x04\x02\x02\x01\x01\x12\x04\x82\x02\x04\x1c\n\x0f\n\x07\x04\x04\x04\ - \x02\x02\x01\x02\x12\x04\x82\x02\x1f\x20\n\x86\x02\n\x06\x04\x04\x04\x02\ - \x02\x02\x12\x04\x88\x02\x04\x20\x1a\xf5\x01\x20The\x20attacker\x20requi\ - res\x20privileges\x20that\x20provide\x20basic\x20user\x20capabilities\n\ - \x20that\x20could\x20normally\x20affect\x20only\x20settings\x20and\x20fi\ - les\x20owned\x20by\x20a\x20user.\n\x20Alternatively,\x20an\x20attacker\ - \x20with\x20Low\x20privileges\x20has\x20the\x20ability\x20to\x20access\n\ - \x20only\x20non-sensitive\x20resources.\n\n\x0f\n\x07\x04\x04\x04\x02\ - \x02\x02\x01\x12\x04\x88\x02\x04\x1b\n\x0f\n\x07\x04\x04\x04\x02\x02\x02\ - \x02\x12\x04\x88\x02\x1e\x1f\n\xc1\x01\n\x06\x04\x04\x04\x02\x02\x03\x12\ - \x04\x8d\x02\x04!\x1a\xb0\x01\x20The\x20attacker\x20requires\x20privileg\ - es\x20that\x20provide\x20significant\x20(e.g.,\n\x20administrative)\x20c\ - ontrol\x20over\x20the\x20vulnerable\x20component\x20allowing\x20access\ - \x20to\n\x20component-wide\x20settings\x20and\x20files.\n\n\x0f\n\x07\ - \x04\x04\x04\x02\x02\x03\x01\x12\x04\x8d\x02\x04\x1c\n\x0f\n\x07\x04\x04\ - \x04\x02\x02\x03\x02\x12\x04\x8d\x02\x1f\x20\n\xad\x01\n\x04\x04\x04\x04\ - \x03\x12\x06\x93\x02\x02\x9d\x02\x03\x1a\x9c\x01\x20This\x20metric\x20ca\ - ptures\x20the\x20requirement\x20for\x20a\x20human\x20user,\x20other\x20t\ - han\x20the\n\x20attacker,\x20to\x20participate\x20in\x20the\x20successfu\ - l\x20compromise\x20of\x20the\x20vulnerable\n\x20component.\n\n\r\n\x05\ - \x04\x04\x04\x03\x01\x12\x04\x93\x02\x07\x16\n\x20\n\x06\x04\x04\x04\x03\ - \x02\0\x12\x04\x95\x02\x04%\x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\ - \x04\x04\x04\x03\x02\0\x01\x12\x04\x95\x02\x04\x20\n\x0f\n\x07\x04\x04\ - \x04\x03\x02\0\x02\x12\x04\x95\x02#$\n[\n\x06\x04\x04\x04\x03\x02\x01\ - \x12\x04\x98\x02\x04\x1e\x1aK\x20The\x20vulnerable\x20system\x20can\x20b\ - e\x20exploited\x20without\x20interaction\x20from\x20any\x20user.\n\n\x0f\ - \n\x07\x04\x04\x04\x03\x02\x01\x01\x12\x04\x98\x02\x04\x19\n\x0f\n\x07\ - \x04\x04\x04\x03\x02\x01\x02\x12\x04\x98\x02\x1c\x1d\n\x8f\x01\n\x06\x04\ - \x04\x04\x03\x02\x02\x12\x04\x9c\x02\x04\"\x1a\x7f\x20Successful\x20expl\ - oitation\x20of\x20this\x20vulnerability\x20requires\x20a\x20user\x20to\ - \x20take\n\x20some\x20action\x20before\x20the\x20vulnerability\x20can\ - \x20be\x20exploited.\n\n\x0f\n\x07\x04\x04\x04\x03\x02\x02\x01\x12\x04\ - \x9c\x02\x04\x1d\n\x0f\n\x07\x04\x04\x04\x03\x02\x02\x02\x12\x04\x9c\x02\ - \x20!\n\x9c\x01\n\x04\x04\x04\x04\x04\x12\x06\xa1\x02\x02\xac\x02\x03\ - \x1a\x8b\x01\x20The\x20Scope\x20metric\x20captures\x20whether\x20a\x20vu\ - lnerability\x20in\x20one\x20vulnerable\n\x20component\x20impacts\x20reso\ - urces\x20in\x20components\x20beyond\x20its\x20security\x20scope.\n\n\r\n\ - \x05\x04\x04\x04\x04\x01\x12\x04\xa1\x02\x07\x0c\n\x20\n\x06\x04\x04\x04\ - \x04\x02\0\x12\x04\xa3\x02\x04\x1a\x1a\x10\x20Invalid\x20value.\n\n\x0f\ - \n\x07\x04\x04\x04\x04\x02\0\x01\x12\x04\xa3\x02\x04\x15\n\x0f\n\x07\x04\ - \x04\x04\x04\x02\0\x02\x12\x04\xa3\x02\x18\x19\no\n\x06\x04\x04\x04\x04\ - \x02\x01\x12\x04\xa7\x02\x04\x18\x1a_\x20An\x20exploited\x20vulnerabilit\ - y\x20can\x20only\x20affect\x20resources\x20managed\x20by\x20the\x20same\ - \n\x20security\x20authority.\n\n\x0f\n\x07\x04\x04\x04\x04\x02\x01\x01\ - \x12\x04\xa7\x02\x04\x13\n\x0f\n\x07\x04\x04\x04\x04\x02\x01\x02\x12\x04\ - \xa7\x02\x16\x17\n\x9c\x01\n\x06\x04\x04\x04\x04\x02\x02\x12\x04\xab\x02\ - \x04\x16\x1a\x8b\x01\x20An\x20exploited\x20vulnerability\x20can\x20affec\ - t\x20resources\x20beyond\x20the\x20security\x20scope\n\x20managed\x20by\ - \x20the\x20security\x20authority\x20of\x20the\x20vulnerable\x20component\ - .\n\n\x0f\n\x07\x04\x04\x04\x04\x02\x02\x01\x12\x04\xab\x02\x04\x11\n\ - \x0f\n\x07\x04\x04\x04\x04\x02\x02\x02\x12\x04\xab\x02\x14\x15\n\xd7\x01\ - \n\x04\x04\x04\x04\x05\x12\x06\xb1\x02\x02\xbd\x02\x03\x1a\xc6\x01\x20Th\ - e\x20Impact\x20metrics\x20capture\x20the\x20effects\x20of\x20a\x20succes\ - sfully\x20exploited\n\x20vulnerability\x20on\x20the\x20component\x20that\ - \x20suffers\x20the\x20worst\x20outcome\x20that\x20is\x20most\n\x20direct\ - ly\x20and\x20predictably\x20associated\x20with\x20the\x20attack.\n\n\r\n\ - \x05\x04\x04\x04\x05\x01\x12\x04\xb1\x02\x07\r\n\x20\n\x06\x04\x04\x04\ - \x05\x02\0\x12\x04\xb3\x02\x04\x1b\x1a\x10\x20Invalid\x20value.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\0\x01\x12\x04\xb3\x02\x04\x16\n\x0f\n\x07\x04\ - \x04\x04\x05\x02\0\x02\x12\x04\xb3\x02\x19\x1a\n\x1e\n\x06\x04\x04\x04\ - \x05\x02\x01\x12\x04\xb6\x02\x04\x14\x1a\x0e\x20High\x20impact.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\x01\x01\x12\x04\xb6\x02\x04\x0f\n\x0f\n\x07\ - \x04\x04\x04\x05\x02\x01\x02\x12\x04\xb6\x02\x12\x13\n\x1d\n\x06\x04\x04\ - \x04\x05\x02\x02\x12\x04\xb9\x02\x04\x13\x1a\r\x20Low\x20impact.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\x02\x01\x12\x04\xb9\x02\x04\x0e\n\x0f\n\x07\ - \x04\x04\x04\x05\x02\x02\x02\x12\x04\xb9\x02\x11\x12\n\x1c\n\x06\x04\x04\ - \x04\x05\x02\x03\x12\x04\xbc\x02\x04\x14\x1a\x0c\x20No\x20impact.\n\n\ - \x0f\n\x07\x04\x04\x04\x05\x02\x03\x01\x12\x04\xbc\x02\x04\x0f\n\x0f\n\ - \x07\x04\x04\x04\x05\x02\x03\x02\x12\x04\xbc\x02\x12\x13\n\x87\x01\n\x04\ - \x04\x04\x02\0\x12\x04\xc1\x02\x02\x17\x1ay\x20The\x20base\x20score\x20i\ - s\x20a\x20function\x20of\x20the\x20base\x20metric\x20scores.\n\x20https:\ - //www.first.org/cvss/specification-document#Base-Metrics\n\n\r\n\x05\x04\ - \x04\x02\0\x05\x12\x04\xc1\x02\x02\x07\n\r\n\x05\x04\x04\x02\0\x01\x12\ - \x04\xc1\x02\x08\x12\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xc1\x02\x15\x16\ - \n\xb6\x01\n\x04\x04\x04\x02\x01\x12\x04\xc6\x02\x02!\x1a\xa7\x01\x20The\ - \x20Exploitability\x20sub-score\x20equation\x20is\x20derived\x20from\x20\ - the\x20Base\n\x20Exploitability\x20metrics.\n\x20https://www.first.org/c\ - vss/specification-document#2-1-Exploitability-Metrics\n\n\r\n\x05\x04\ - \x04\x02\x01\x05\x12\x04\xc6\x02\x02\x07\n\r\n\x05\x04\x04\x02\x01\x01\ - \x12\x04\xc6\x02\x08\x1c\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xc6\x02\ - \x1f\x20\nV\n\x04\x04\x04\x02\x02\x12\x04\xc9\x02\x02\x19\x1aH\x20The\ - \x20Impact\x20sub-score\x20equation\x20is\x20derived\x20from\x20the\x20B\ - ase\x20Impact\x20metrics.\n\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xc9\ - \x02\x02\x07\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xc9\x02\x08\x14\n\r\n\ - \x05\x04\x04\x02\x02\x03\x12\x04\xc9\x02\x17\x18\nb\n\x04\x04\x04\x02\ - \x03\x12\x04\xcd\x02\x02!\x1aT\x20This\x20metric\x20reflects\x20the\x20c\ - ontext\x20by\x20which\x20vulnerability\x20exploitation\x20is\n\x20possib\ - le.\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xcd\x02\x02\x0e\n\r\n\x05\ - \x04\x04\x02\x03\x01\x12\x04\xcd\x02\x0f\x1c\n\r\n\x05\x04\x04\x02\x03\ - \x03\x12\x04\xcd\x02\x1f\x20\n\x8a\x01\n\x04\x04\x04\x02\x04\x12\x04\xd1\ - \x02\x02)\x1a|\x20This\x20metric\x20describes\x20the\x20conditions\x20be\ - yond\x20the\x20attacker's\x20control\x20that\n\x20must\x20exist\x20in\ - \x20order\x20to\x20exploit\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\ - \x02\x04\x06\x12\x04\xd1\x02\x02\x12\n\r\n\x05\x04\x04\x02\x04\x01\x12\ - \x04\xd1\x02\x13$\n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\xd1\x02'(\n\x89\ - \x01\n\x04\x04\x04\x02\x05\x12\x04\xd5\x02\x02-\x1a{\x20This\x20metric\ - \x20describes\x20the\x20level\x20of\x20privileges\x20an\x20attacker\x20m\ - ust\x20possess\n\x20before\x20successfully\x20exploiting\x20the\x20vulne\ - rability.\n\n\r\n\x05\x04\x04\x02\x05\x06\x12\x04\xd5\x02\x02\x14\n\r\n\ - \x05\x04\x04\x02\x05\x01\x12\x04\xd5\x02\x15(\n\r\n\x05\x04\x04\x02\x05\ - \x03\x12\x04\xd5\x02+,\n\xab\x01\n\x04\x04\x04\x02\x06\x12\x04\xda\x02\ - \x02'\x1a\x9c\x01\x20This\x20metric\x20captures\x20the\x20requirement\ - \x20for\x20a\x20human\x20user,\x20other\x20than\x20the\n\x20attacker,\ - \x20to\x20participate\x20in\x20the\x20successful\x20compromise\x20of\x20\ - the\x20vulnerable\n\x20component.\n\n\r\n\x05\x04\x04\x02\x06\x06\x12\ - \x04\xda\x02\x02\x11\n\r\n\x05\x04\x04\x02\x06\x01\x12\x04\xda\x02\x12\"\ - \n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\xda\x02%&\n\x9a\x01\n\x04\x04\x04\ - \x02\x07\x12\x04\xde\x02\x02\x12\x1a\x8b\x01\x20The\x20Scope\x20metric\ - \x20captures\x20whether\x20a\x20vulnerability\x20in\x20one\x20vulnerable\ - \n\x20component\x20impacts\x20resources\x20in\x20components\x20beyond\ - \x20its\x20security\x20scope.\n\n\r\n\x05\x04\x04\x02\x07\x06\x12\x04\ - \xde\x02\x02\x07\n\r\n\x05\x04\x04\x02\x07\x01\x12\x04\xde\x02\x08\r\n\r\ - \n\x05\x04\x04\x02\x07\x03\x12\x04\xde\x02\x10\x11\n\xb5\x01\n\x04\x04\ - \x04\x02\x08\x12\x04\xe3\x02\x02%\x1a\xa6\x01\x20This\x20metric\x20measu\ - res\x20the\x20impact\x20to\x20the\x20confidentiality\x20of\x20the\x20inf\ - ormation\n\x20resources\x20managed\x20by\x20a\x20software\x20component\ - \x20due\x20to\x20a\x20successfully\x20exploited\n\x20vulnerability.\n\n\ - \r\n\x05\x04\x04\x02\x08\x06\x12\x04\xe3\x02\x02\x08\n\r\n\x05\x04\x04\ - \x02\x08\x01\x12\x04\xe3\x02\t\x1f\n\r\n\x05\x04\x04\x02\x08\x03\x12\x04\ - \xe3\x02\"$\nh\n\x04\x04\x04\x02\t\x12\x04\xe7\x02\x02\x1f\x1aZ\x20This\ - \x20metric\x20measures\x20the\x20impact\x20to\x20integrity\x20of\x20a\ - \x20successfully\x20exploited\n\x20vulnerability.\n\n\r\n\x05\x04\x04\ - \x02\t\x06\x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x04\x02\t\x01\x12\x04\ - \xe7\x02\t\x19\n\r\n\x05\x04\x04\x02\t\x03\x12\x04\xe7\x02\x1c\x1e\n\x96\ - \x01\n\x04\x04\x04\x02\n\x12\x04\xeb\x02\x02\"\x1a\x87\x01\x20This\x20me\ - tric\x20measures\x20the\x20impact\x20to\x20the\x20availability\x20of\x20\ - the\x20impacted\n\x20component\x20resulting\x20from\x20a\x20successfully\ - \x20exploited\x20vulnerability.\n\n\r\n\x05\x04\x04\x02\n\x06\x12\x04\ - \xeb\x02\x02\x08\n\r\n\x05\x04\x04\x02\n\x01\x12\x04\xeb\x02\t\x1c\n\r\n\ - \x05\x04\x04\x02\n\x03\x12\x04\xeb\x02\x1f!b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/config_common.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/config_common.rs deleted file mode 100644 index 783fb44..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/config_common.rs +++ /dev/null @@ -1,1066 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/config_common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceConfigStep { - // message fields - pub field_type: OSPolicyResourceConfigStep_Type, - pub outcome: OSPolicyResourceConfigStep_Outcome, - pub error_message: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceConfigStep { - fn default() -> &'a OSPolicyResourceConfigStep { - ::default_instance() - } -} - -impl OSPolicyResourceConfigStep { - pub fn new() -> OSPolicyResourceConfigStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type type = 1; - - - pub fn get_field_type(&self) -> OSPolicyResourceConfigStep_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: OSPolicyResourceConfigStep_Type) { - self.field_type = v; - } - - // .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome outcome = 2; - - - pub fn get_outcome(&self) -> OSPolicyResourceConfigStep_Outcome { - self.outcome - } - pub fn clear_outcome(&mut self) { - self.outcome = OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_outcome(&mut self, v: OSPolicyResourceConfigStep_Outcome) { - self.outcome = v; - } - - // string error_message = 3; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyResourceConfigStep { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.outcome, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - if self.outcome != OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.outcome); - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.error_message); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if self.outcome != OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.outcome))?; - } - if !self.error_message.is_empty() { - os.write_string(3, &self.error_message)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceConfigStep { - OSPolicyResourceConfigStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &OSPolicyResourceConfigStep| { &m.field_type }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "outcome", - |m: &OSPolicyResourceConfigStep| { &m.outcome }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.outcome }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &OSPolicyResourceConfigStep| { &m.error_message }, - |m: &mut OSPolicyResourceConfigStep| { &mut m.error_message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceConfigStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceConfigStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceConfigStep::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceConfigStep { - fn clear(&mut self) { - self.field_type = OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - self.outcome = OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED; - self.error_message.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceConfigStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyResourceConfigStep_Type { - TYPE_UNSPECIFIED = 0, - VALIDATION = 1, - DESIRED_STATE_CHECK = 2, - DESIRED_STATE_ENFORCEMENT = 3, - DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyResourceConfigStep_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK), - 3 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT), - 4 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyResourceConfigStep_Type] = &[ - OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED, - OSPolicyResourceConfigStep_Type::VALIDATION, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT, - OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyResourceConfigStep.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyResourceConfigStep_Type { -} - -impl ::std::default::Default for OSPolicyResourceConfigStep_Type { - fn default() -> Self { - OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyResourceConfigStep_Outcome { - OUTCOME_UNSPECIFIED = 0, - SUCCEEDED = 1, - FAILED = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyResourceConfigStep_Outcome { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::SUCCEEDED), - 2 => ::std::option::Option::Some(OSPolicyResourceConfigStep_Outcome::FAILED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyResourceConfigStep_Outcome] = &[ - OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED, - OSPolicyResourceConfigStep_Outcome::SUCCEEDED, - OSPolicyResourceConfigStep_Outcome::FAILED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyResourceConfigStep.Outcome", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyResourceConfigStep_Outcome { -} - -impl ::std::default::Default for OSPolicyResourceConfigStep_Outcome { - fn default() -> Self { - OSPolicyResourceConfigStep_Outcome::OUTCOME_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceConfigStep_Outcome { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceCompliance { - // message fields - pub os_policy_resource_id: ::std::string::String, - pub config_steps: ::protobuf::RepeatedField, - pub state: OSPolicyComplianceState, - // message oneof groups - pub output: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceCompliance { - fn default() -> &'a OSPolicyResourceCompliance { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicyResourceCompliance_oneof_output { - exec_resource_output(OSPolicyResourceCompliance_ExecResourceOutput), -} - -impl OSPolicyResourceCompliance { - pub fn new() -> OSPolicyResourceCompliance { - ::std::default::Default::default() - } - - // string os_policy_resource_id = 1; - - - pub fn get_os_policy_resource_id(&self) -> &str { - &self.os_policy_resource_id - } - pub fn clear_os_policy_resource_id(&mut self) { - self.os_policy_resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_id(&mut self, v: ::std::string::String) { - self.os_policy_resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_resource_id - } - - // Take field - pub fn take_os_policy_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_resource_id, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep config_steps = 2; - - - pub fn get_config_steps(&self) -> &[OSPolicyResourceConfigStep] { - &self.config_steps - } - pub fn clear_config_steps(&mut self) { - self.config_steps.clear(); - } - - // Param is passed by value, moved - pub fn set_config_steps(&mut self, v: ::protobuf::RepeatedField) { - self.config_steps = v; - } - - // Mutable pointer to the field. - pub fn mut_config_steps(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.config_steps - } - - // Take field - pub fn take_config_steps(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.config_steps, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3; - - - pub fn get_state(&self) -> OSPolicyComplianceState { - self.state - } - pub fn clear_state(&mut self) { - self.state = OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: OSPolicyComplianceState) { - self.state = v; - } - - // .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 4; - - - pub fn get_exec_resource_output(&self) -> &OSPolicyResourceCompliance_ExecResourceOutput { - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_resource_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_exec_resource_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_resource_output(&mut self, v: OSPolicyResourceCompliance_ExecResourceOutput) { - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_resource_output(&mut self) -> &mut OSPolicyResourceCompliance_ExecResourceOutput { - if let ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(OSPolicyResourceCompliance_ExecResourceOutput::new())); - } - match self.output { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_resource_output(&mut self) -> OSPolicyResourceCompliance_ExecResourceOutput { - if self.has_exec_resource_output() { - match self.output.take() { - ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) => v, - _ => panic!(), - } - } else { - OSPolicyResourceCompliance_ExecResourceOutput::new() - } - } -} - -impl ::protobuf::Message for OSPolicyResourceCompliance { - fn is_initialized(&self) -> bool { - for v in &self.config_steps { - if !v.is_initialized() { - return false; - } - }; - if let Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_resource_id)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.config_steps)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(OSPolicyResourceCompliance_oneof_output::exec_resource_output(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_resource_id); - } - for value in &self.config_steps { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.state != OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_resource_id.is_empty() { - os.write_string(1, &self.os_policy_resource_id)?; - } - for v in &self.config_steps { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.state != OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceCompliance { - OSPolicyResourceCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_resource_id", - |m: &OSPolicyResourceCompliance| { &m.os_policy_resource_id }, - |m: &mut OSPolicyResourceCompliance| { &mut m.os_policy_resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_steps", - |m: &OSPolicyResourceCompliance| { &m.config_steps }, - |m: &mut OSPolicyResourceCompliance| { &mut m.config_steps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &OSPolicyResourceCompliance| { &m.state }, - |m: &mut OSPolicyResourceCompliance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicyResourceCompliance_ExecResourceOutput>( - "exec_resource_output", - OSPolicyResourceCompliance::has_exec_resource_output, - OSPolicyResourceCompliance::get_exec_resource_output, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceCompliance { - fn clear(&mut self) { - self.os_policy_resource_id.clear(); - self.config_steps.clear(); - self.state = OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - self.output = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyResourceCompliance_ExecResourceOutput { - // message fields - pub enforcement_output: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyResourceCompliance_ExecResourceOutput { - fn default() -> &'a OSPolicyResourceCompliance_ExecResourceOutput { - ::default_instance() - } -} - -impl OSPolicyResourceCompliance_ExecResourceOutput { - pub fn new() -> OSPolicyResourceCompliance_ExecResourceOutput { - ::std::default::Default::default() - } - - // bytes enforcement_output = 2; - - - pub fn get_enforcement_output(&self) -> &[u8] { - &self.enforcement_output - } - pub fn clear_enforcement_output(&mut self) { - self.enforcement_output.clear(); - } - - // Param is passed by value, moved - pub fn set_enforcement_output(&mut self, v: ::std::vec::Vec) { - self.enforcement_output = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforcement_output(&mut self) -> &mut ::std::vec::Vec { - &mut self.enforcement_output - } - - // Take field - pub fn take_enforcement_output(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.enforcement_output, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for OSPolicyResourceCompliance_ExecResourceOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.enforcement_output)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.enforcement_output.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.enforcement_output); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.enforcement_output.is_empty() { - os.write_bytes(2, &self.enforcement_output)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyResourceCompliance_ExecResourceOutput { - OSPolicyResourceCompliance_ExecResourceOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "enforcement_output", - |m: &OSPolicyResourceCompliance_ExecResourceOutput| { &m.enforcement_output }, - |m: &mut OSPolicyResourceCompliance_ExecResourceOutput| { &mut m.enforcement_output }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyResourceCompliance.ExecResourceOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyResourceCompliance_ExecResourceOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyResourceCompliance_ExecResourceOutput::new) - } -} - -impl ::protobuf::Clear for OSPolicyResourceCompliance_ExecResourceOutput { - fn clear(&mut self) { - self.enforcement_output.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyResourceCompliance_ExecResourceOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyResourceCompliance_ExecResourceOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyComplianceState { - OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, - UNKNOWN = 3, - NO_OS_POLICIES_APPLICABLE = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyComplianceState::NON_COMPLIANT), - 3 => ::std::option::Option::Some(OSPolicyComplianceState::UNKNOWN), - 4 => ::std::option::Option::Some(OSPolicyComplianceState::NO_OS_POLICIES_APPLICABLE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyComplianceState] = &[ - OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED, - OSPolicyComplianceState::COMPLIANT, - OSPolicyComplianceState::NON_COMPLIANT, - OSPolicyComplianceState::UNKNOWN, - OSPolicyComplianceState::NO_OS_POLICIES_APPLICABLE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyComplianceState { -} - -impl ::std::default::Default for OSPolicyComplianceState { - fn default() -> Self { - OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n1google/cloud/osconfig/v1alpha/config_common.proto\x12\x1dgoogle.cloud\ - .osconfig.v1alpha\"\xce\x03\n\x1aOSPolicyResourceConfigStep\x12R\n\x04ty\ - pe\x18\x01\x20\x01(\x0e2>.google.cloud.osconfig.v1alpha.OSPolicyResource\ - ConfigStep.TypeR\x04type\x12[\n\x07outcome\x18\x02\x20\x01(\x0e2A.google\ - .cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.OutcomeR\x07outcome\ - \x12#\n\rerror_message\x18\x03\x20\x01(\tR\x0cerrorMessage\"\x92\x01\n\ - \x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nVALIDATION\x10\ - \x01\x12\x17\n\x13DESIRED_STATE_CHECK\x10\x02\x12\x1d\n\x19DESIRED_STATE\ - _ENFORCEMENT\x10\x03\x12(\n$DESIRED_STATE_CHECK_POST_ENFORCEMENT\x10\x04\ - \x1a\x02\x18\x01\"A\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\0\ - \x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06FAILED\x10\x02\x1a\x02\x18\x01:\ - \x02\x18\x01\"\xd5\x03\n\x1aOSPolicyResourceCompliance\x121\n\x15os_poli\ - cy_resource_id\x18\x01\x20\x01(\tR\x12osPolicyResourceId\x12\\\n\x0cconf\ - ig_steps\x18\x02\x20\x03(\x0b29.google.cloud.osconfig.v1alpha.OSPolicyRe\ - sourceConfigStepR\x0bconfigSteps\x12L\n\x05state\x18\x03\x20\x01(\x0e26.\ - google.cloud.osconfig.v1alpha.OSPolicyComplianceStateR\x05state\x12\x80\ - \x01\n\x14exec_resource_output\x18\x04\x20\x01(\x0b2L.google.cloud.oscon\ - fig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutputH\0R\x12execRes\ - ourceOutput\x1aG\n\x12ExecResourceOutput\x12-\n\x12enforcement_output\ - \x18\x02\x20\x01(\x0cR\x11enforcementOutput:\x02\x18\x01B\x08\n\x06outpu\ - t:\x02\x18\x01*\x97\x01\n\x17OSPolicyComplianceState\x12*\n&OS_POLICY_CO\ - MPLIANCE_STATE_UNSPECIFIED\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rN\ - ON_COMPLIANT\x10\x02\x12\x0b\n\x07UNKNOWN\x10\x03\x12\x1d\n\x19NO_OS_POL\ - ICIES_APPLICABLE\x10\x04\x1a\x02\x18\x01B\xda\x01\n!com.google.cloud.osc\ - onfig.v1alphaB\x11ConfigCommonProtoP\x01Z=cloud.google.com/go/osconfig/a\ - piv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\ - \xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02\x20Google::Cloud::O\ - sConfig::V1alphaJ\x8c\x1e\n\x07\x12\x05\x0e\0\x84\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0&\n\x08\n\x01\x08\x12\x03\ - \x13\0:\n\t\n\x02\x08%\x12\x03\x13\0:\n\x08\n\x01\x08\x12\x03\x14\0T\n\t\ - \n\x02\x08\x0b\x12\x03\x14\0T\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\ - \x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\02\n\t\n\x02\x08\x08\ - \x12\x03\x16\02\n\x08\n\x01\x08\x12\x03\x17\0:\n\t\n\x02\x08\x01\x12\x03\ - \x17\0:\n\x08\n\x01\x08\x12\x03\x18\0:\n\t\n\x02\x08)\x12\x03\x18\0:\n\ - \x08\n\x01\x08\x12\x03\x19\09\n\t\n\x02\x08-\x12\x03\x19\09\np\n\x02\x04\ - \0\x12\x04\x1d\0Q\x01\x1ad\x20Step\x20performed\x20by\x20the\x20OS\x20Co\ - nfig\x20agent\x20for\x20configuring\x20an\x20`OSPolicyResource`\n\x20to\ - \x20its\x20desired\x20state.\n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\"\n\n\ - \n\x03\x04\0\x07\x12\x03\x1e\x02\x1b\n\x0b\n\x04\x04\0\x07\x03\x12\x03\ - \x1e\x02\x1b\n2\n\x04\x04\0\x04\0\x12\x04!\x028\x03\x1a$\x20Supported\ - \x20configuration\x20step\x20types\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\ - !\x07\x0b\n\x0c\n\x05\x04\0\x04\0\x03\x12\x03\"\x04\x1d\n\r\n\x06\x04\0\ - \x04\0\x03\x03\x12\x03\"\x04\x1d\n5\n\x06\x04\0\x04\0\x02\0\x12\x03%\x04\ - \x19\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unused.\n\n\x0e\ - \n\x07\x04\0\x04\0\x02\0\x01\x12\x03%\x04\x14\n\x0e\n\x07\x04\0\x04\0\ - \x02\0\x02\x12\x03%\x17\x18\nM\n\x06\x04\0\x04\0\x02\x01\x12\x03(\x04\ - \x13\x1a>\x20Validation\x20to\x20detect\x20resource\x20conflicts,\x20sch\ - ema\x20errors,\x20etc.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03(\ - \x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03(\x11\x12\nH\n\x06\ - \x04\0\x04\0\x02\x02\x12\x03+\x04\x1c\x1a9\x20Check\x20the\x20current\ - \x20desired\x20state\x20status\x20of\x20the\x20resource.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\x02\x01\x12\x03+\x04\x17\n\x0e\n\x07\x04\0\x04\0\x02\ - \x02\x02\x12\x03+\x1a\x1b\nW\n\x06\x04\0\x04\0\x02\x03\x12\x03.\x04\"\ - \x1aH\x20Enforce\x20the\x20desired\x20state\x20for\x20a\x20resource\x20t\ - hat\x20is\x20not\x20in\x20desired\x20state.\n\n\x0e\n\x07\x04\0\x04\0\ - \x02\x03\x01\x12\x03.\x04\x1d\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\x12\ - \x03.\x20!\n\x83\x03\n\x06\x04\0\x04\0\x02\x04\x12\x037\x04-\x1a\xf3\x02\ - \x20Re-check\x20desired\x20state\x20status\x20for\x20a\x20resource\x20af\ - ter\x20enforcement\x20of\x20all\n\x20resources\x20in\x20the\x20current\ - \x20configuration\x20run.\n\n\x20This\x20step\x20is\x20used\x20to\x20det\ - ermine\x20the\x20final\x20desired\x20state\x20status\x20for\x20the\n\x20\ - resource.\x20It\x20accounts\x20for\x20any\x20resources\x20that\x20might\ - \x20have\x20drifted\x20from\n\x20their\x20desired\x20state\x20due\x20to\ - \x20side\x20effects\x20from\x20configuring\x20other\x20resources\n\x20du\ - ring\x20the\x20current\x20configuration\x20run.\n\n\x0e\n\x07\x04\0\x04\ - \0\x02\x04\x01\x12\x037\x04(\n\x0e\n\x07\x04\0\x04\0\x02\x04\x02\x12\x03\ - 7+,\n<\n\x04\x04\0\x04\x01\x12\x04;\x02F\x03\x1a.\x20Supported\x20outcom\ - es\x20for\x20a\x20configuration\x20step.\n\n\x0c\n\x05\x04\0\x04\x01\x01\ - \x12\x03;\x07\x0e\n\x0c\n\x05\x04\0\x04\x01\x03\x12\x03<\x04\x1d\n\r\n\ - \x06\x04\0\x04\x01\x03\x03\x12\x03<\x04\x1d\n5\n\x06\x04\0\x04\x01\x02\0\ - \x12\x03?\x04\x1c\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20un\ - used.\n\n\x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03?\x04\x17\n\x0e\n\x07\ - \x04\0\x04\x01\x02\0\x02\x12\x03?\x1a\x1b\n$\n\x06\x04\0\x04\x01\x02\x01\ - \x12\x03B\x04\x12\x1a\x15\x20The\x20step\x20succeeded.\n\n\x0e\n\x07\x04\ - \0\x04\x01\x02\x01\x01\x12\x03B\x04\r\n\x0e\n\x07\x04\0\x04\x01\x02\x01\ - \x02\x12\x03B\x10\x11\n!\n\x06\x04\0\x04\x01\x02\x02\x12\x03E\x04\x0f\ - \x1a\x12\x20The\x20step\x20failed.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\ - \x01\x12\x03E\x04\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03E\r\x0e\ - \n'\n\x04\x04\0\x02\0\x12\x03I\x02\x10\x1a\x1a\x20Configuration\x20step\ - \x20type.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x02\x06\n\x0c\n\x05\x04\ - \0\x02\0\x01\x12\x03I\x07\x0b\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03I\x0e\ - \x0f\n1\n\x04\x04\0\x02\x01\x12\x03L\x02\x16\x1a$\x20Outcome\x20of\x20th\ - e\x20configuration\x20step.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03L\x02\ - \t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03L\n\x11\n\x0c\n\x05\x04\0\x02\ - \x01\x03\x12\x03L\x14\x15\ns\n\x04\x04\0\x02\x02\x12\x03P\x02\x1b\x1af\ - \x20An\x20error\x20message\x20recorded\x20during\x20the\x20execution\x20\ - of\x20this\x20step.\n\x20Only\x20populated\x20when\x20outcome\x20is\x20F\ - AILED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03P\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03P\t\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03P\x19\ - \x1a\n8\n\x02\x04\x01\x12\x04T\0o\x01\x1a,\x20Compliance\x20data\x20for\ - \x20an\x20OS\x20policy\x20resource.\n\n\n\n\x03\x04\x01\x01\x12\x03T\x08\ - \"\n\n\n\x03\x04\x01\x07\x12\x03U\x02\x1b\n\x0b\n\x04\x04\x01\x07\x03\ - \x12\x03U\x02\x1b\n-\n\x04\x04\x01\x03\0\x12\x04X\x02^\x03\x1a\x1f\x20Ex\ - ecResource\x20specific\x20output.\n\n\x0c\n\x05\x04\x01\x03\0\x01\x12\ - \x03X\n\x1c\n\x0c\n\x05\x04\x01\x03\0\x07\x12\x03Y\x04\x1d\n\r\n\x06\x04\ - \x01\x03\0\x07\x03\x12\x03Y\x04\x1d\nk\n\x06\x04\x01\x03\0\x02\0\x12\x03\ - ]\x04!\x1a\\\x20Output\x20from\x20Enforcement\x20phase\x20output\x20file\ - \x20(if\x20run).\n\x20Output\x20size\x20is\x20limited\x20to\x20100K\x20b\ - ytes.\n\n\x0e\n\x07\x04\x01\x03\0\x02\0\x05\x12\x03]\x04\t\n\x0e\n\x07\ - \x04\x01\x03\0\x02\0\x01\x12\x03]\n\x1c\n\x0e\n\x07\x04\x01\x03\0\x02\0\ - \x03\x12\x03]\x1f\x20\n0\n\x04\x04\x01\x02\0\x12\x03a\x02#\x1a#\x20The\ - \x20id\x20of\x20the\x20OS\x20policy\x20resource.\n\n\x0c\n\x05\x04\x01\ - \x02\0\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03a\t\x1e\ - \n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03a!\"\nb\n\x04\x04\x01\x02\x01\x12\ - \x03e\x027\x1aU\x20Ordered\x20list\x20of\x20configuration\x20steps\x20ta\ - ken\x20by\x20the\x20agent\x20for\x20the\x20OS\x20policy\n\x20resource.\n\ - \n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03e\x02\n\n\x0c\n\x05\x04\x01\x02\ - \x01\x06\x12\x03e\x0b%\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03e&2\n\x0c\ - \n\x05\x04\x01\x02\x01\x03\x12\x03e56\n:\n\x04\x04\x01\x02\x02\x12\x03h\ - \x02$\x1a-\x20Compliance\x20state\x20of\x20the\x20OS\x20policy\x20resour\ - ce.\n\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03h\x02\x19\n\x0c\n\x05\x04\ - \x01\x02\x02\x01\x12\x03h\x1a\x1f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\ - \x03h\"#\n)\n\x04\x04\x01\x08\0\x12\x04k\x02n\x03\x1a\x1b\x20Resource\ - \x20specific\x20output.\n\n\x0c\n\x05\x04\x01\x08\0\x01\x12\x03k\x08\x0e\ - \n,\n\x04\x04\x01\x02\x03\x12\x03m\x040\x1a\x1f\x20ExecResource\x20speci\ - fic\x20output.\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03m\x04\x16\n\x0c\ - \n\x05\x04\x01\x02\x03\x01\x12\x03m\x17+\n\x0c\n\x05\x04\x01\x02\x03\x03\ - \x12\x03m./\n4\n\x02\x05\0\x12\x05r\0\x84\x01\x01\x1a'\x20Supported\x20O\ - SPolicy\x20compliance\x20states.\n\n\n\n\x03\x05\0\x01\x12\x03r\x05\x1c\ - \n\n\n\x03\x05\0\x03\x12\x03s\x02\x1b\n\x0b\n\x04\x05\0\x03\x03\x12\x03s\ - \x02\x1b\n3\n\x04\x05\0\x02\0\x12\x03v\x02-\x1a&\x20Default\x20value.\ - \x20This\x20value\x20is\x20unused.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\ - v\x02(\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03v+,\n\x1f\n\x04\x05\0\x02\x01\ - \x12\x03y\x02\x10\x1a\x12\x20Compliant\x20state.\n\n\x0c\n\x05\x05\0\x02\ - \x01\x01\x12\x03y\x02\x0b\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03y\x0e\x0f\ - \n\"\n\x04\x05\0\x02\x02\x12\x03|\x02\x14\x1a\x15\x20Non-compliant\x20st\ - ate\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03|\x02\x0f\n\x0c\n\x05\x05\0\ - \x02\x02\x02\x12\x03|\x12\x13\n(\n\x04\x05\0\x02\x03\x12\x03\x7f\x02\x0e\ - \x1a\x1b\x20Unknown\x20compliance\x20state.\n\n\x0c\n\x05\x05\0\x02\x03\ - \x01\x12\x03\x7f\x02\t\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03\x7f\x0c\r\n\ - v\n\x04\x05\0\x02\x04\x12\x04\x83\x01\x02\x20\x1ah\x20No\x20applicable\ - \x20OS\x20policies\x20were\x20found\x20for\x20the\x20instance.\n\x20This\ - \x20state\x20is\x20only\x20applicable\x20to\x20the\x20instance.\n\n\r\n\ - \x05\x05\0\x02\x04\x01\x12\x04\x83\x01\x02\x1b\n\r\n\x05\x05\0\x02\x04\ - \x02\x12\x04\x83\x01\x1e\x1fb\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/instance_os_policies_compliance.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/instance_os_policies_compliance.rs deleted file mode 100644 index b5b1c89..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/instance_os_policies_compliance.rs +++ /dev/null @@ -1,1650 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct InstanceOSPoliciesCompliance { - // message fields - pub name: ::std::string::String, - pub instance: ::std::string::String, - pub state: super::config_common::OSPolicyComplianceState, - pub detailed_state: ::std::string::String, - pub detailed_state_reason: ::std::string::String, - pub os_policy_compliances: ::protobuf::RepeatedField, - pub last_compliance_check_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub last_compliance_run_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InstanceOSPoliciesCompliance { - fn default() -> &'a InstanceOSPoliciesCompliance { - ::default_instance() - } -} - -impl InstanceOSPoliciesCompliance { - pub fn new() -> InstanceOSPoliciesCompliance { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string instance = 2; - - - pub fn get_instance(&self) -> &str { - &self.instance - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: ::std::string::String) { - self.instance = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut ::std::string::String { - &mut self.instance - } - - // Take field - pub fn take_instance(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 3; - - - pub fn get_state(&self) -> super::config_common::OSPolicyComplianceState { - self.state - } - pub fn clear_state(&mut self) { - self.state = super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: super::config_common::OSPolicyComplianceState) { - self.state = v; - } - - // string detailed_state = 4; - - - pub fn get_detailed_state(&self) -> &str { - &self.detailed_state - } - pub fn clear_detailed_state(&mut self) { - self.detailed_state.clear(); - } - - // Param is passed by value, moved - pub fn set_detailed_state(&mut self, v: ::std::string::String) { - self.detailed_state = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_detailed_state(&mut self) -> &mut ::std::string::String { - &mut self.detailed_state - } - - // Take field - pub fn take_detailed_state(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.detailed_state, ::std::string::String::new()) - } - - // string detailed_state_reason = 5; - - - pub fn get_detailed_state_reason(&self) -> &str { - &self.detailed_state_reason - } - pub fn clear_detailed_state_reason(&mut self) { - self.detailed_state_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_detailed_state_reason(&mut self, v: ::std::string::String) { - self.detailed_state_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_detailed_state_reason(&mut self) -> &mut ::std::string::String { - &mut self.detailed_state_reason - } - - // Take field - pub fn take_detailed_state_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.detailed_state_reason, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance os_policy_compliances = 6; - - - pub fn get_os_policy_compliances(&self) -> &[InstanceOSPoliciesCompliance_OSPolicyCompliance] { - &self.os_policy_compliances - } - pub fn clear_os_policy_compliances(&mut self) { - self.os_policy_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_compliances - } - - // Take field - pub fn take_os_policy_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_compliances, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp last_compliance_check_time = 7; - - - pub fn get_last_compliance_check_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_compliance_check_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_compliance_check_time(&mut self) { - self.last_compliance_check_time.clear(); - } - - pub fn has_last_compliance_check_time(&self) -> bool { - self.last_compliance_check_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_compliance_check_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_compliance_check_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_compliance_check_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_compliance_check_time.is_none() { - self.last_compliance_check_time.set_default(); - } - self.last_compliance_check_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_compliance_check_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_compliance_check_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string last_compliance_run_id = 8; - - - pub fn get_last_compliance_run_id(&self) -> &str { - &self.last_compliance_run_id - } - pub fn clear_last_compliance_run_id(&mut self) { - self.last_compliance_run_id.clear(); - } - - // Param is passed by value, moved - pub fn set_last_compliance_run_id(&mut self, v: ::std::string::String) { - self.last_compliance_run_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_compliance_run_id(&mut self) -> &mut ::std::string::String { - &mut self.last_compliance_run_id - } - - // Take field - pub fn take_last_compliance_run_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.last_compliance_run_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for InstanceOSPoliciesCompliance { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_compliances { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_compliance_check_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.detailed_state)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.detailed_state_reason)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_compliances)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_compliance_check_time)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.last_compliance_run_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.instance.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance); - } - if self.state != super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.state); - } - if !self.detailed_state.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.detailed_state); - } - if !self.detailed_state_reason.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.detailed_state_reason); - } - for value in &self.os_policy_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.last_compliance_check_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.last_compliance_run_id.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.last_compliance_run_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.instance.is_empty() { - os.write_string(2, &self.instance)?; - } - if self.state != super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.detailed_state.is_empty() { - os.write_string(4, &self.detailed_state)?; - } - if !self.detailed_state_reason.is_empty() { - os.write_string(5, &self.detailed_state_reason)?; - } - for v in &self.os_policy_compliances { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.last_compliance_check_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.last_compliance_run_id.is_empty() { - os.write_string(8, &self.last_compliance_run_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InstanceOSPoliciesCompliance { - InstanceOSPoliciesCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &InstanceOSPoliciesCompliance| { &m.name }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance", - |m: &InstanceOSPoliciesCompliance| { &m.instance }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &InstanceOSPoliciesCompliance| { &m.state }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "detailed_state", - |m: &InstanceOSPoliciesCompliance| { &m.detailed_state }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.detailed_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "detailed_state_reason", - |m: &InstanceOSPoliciesCompliance| { &m.detailed_state_reason }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.detailed_state_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_compliances", - |m: &InstanceOSPoliciesCompliance| { &m.os_policy_compliances }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.os_policy_compliances }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_compliance_check_time", - |m: &InstanceOSPoliciesCompliance| { &m.last_compliance_check_time }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.last_compliance_check_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "last_compliance_run_id", - |m: &InstanceOSPoliciesCompliance| { &m.last_compliance_run_id }, - |m: &mut InstanceOSPoliciesCompliance| { &mut m.last_compliance_run_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InstanceOSPoliciesCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InstanceOSPoliciesCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InstanceOSPoliciesCompliance::new) - } -} - -impl ::protobuf::Clear for InstanceOSPoliciesCompliance { - fn clear(&mut self) { - self.name.clear(); - self.instance.clear(); - self.state = super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - self.detailed_state.clear(); - self.detailed_state_reason.clear(); - self.os_policy_compliances.clear(); - self.last_compliance_check_time.clear(); - self.last_compliance_run_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InstanceOSPoliciesCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InstanceOSPoliciesCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct InstanceOSPoliciesCompliance_OSPolicyCompliance { - // message fields - pub os_policy_id: ::std::string::String, - pub os_policy_assignment: ::std::string::String, - pub state: super::config_common::OSPolicyComplianceState, - pub os_policy_resource_compliances: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a InstanceOSPoliciesCompliance_OSPolicyCompliance { - fn default() -> &'a InstanceOSPoliciesCompliance_OSPolicyCompliance { - ::default_instance() - } -} - -impl InstanceOSPoliciesCompliance_OSPolicyCompliance { - pub fn new() -> InstanceOSPoliciesCompliance_OSPolicyCompliance { - ::std::default::Default::default() - } - - // string os_policy_id = 1; - - - pub fn get_os_policy_id(&self) -> &str { - &self.os_policy_id - } - pub fn clear_os_policy_id(&mut self) { - self.os_policy_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_id(&mut self, v: ::std::string::String) { - self.os_policy_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_id - } - - // Take field - pub fn take_os_policy_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_id, ::std::string::String::new()) - } - - // string os_policy_assignment = 2; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyComplianceState state = 4; - - - pub fn get_state(&self) -> super::config_common::OSPolicyComplianceState { - self.state - } - pub fn clear_state(&mut self) { - self.state = super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: super::config_common::OSPolicyComplianceState) { - self.state = v; - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance os_policy_resource_compliances = 5; - - - pub fn get_os_policy_resource_compliances(&self) -> &[super::config_common::OSPolicyResourceCompliance] { - &self.os_policy_resource_compliances - } - pub fn clear_os_policy_resource_compliances(&mut self) { - self.os_policy_resource_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_resource_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_resource_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_resource_compliances - } - - // Take field - pub fn take_os_policy_resource_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_resource_compliances, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for InstanceOSPoliciesCompliance_OSPolicyCompliance { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_resource_compliances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_resource_compliances)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_id); - } - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_policy_assignment); - } - if self.state != super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.state); - } - for value in &self.os_policy_resource_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_id.is_empty() { - os.write_string(1, &self.os_policy_id)?; - } - if !self.os_policy_assignment.is_empty() { - os.write_string(2, &self.os_policy_assignment)?; - } - if self.state != super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?; - } - for v in &self.os_policy_resource_compliances { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> InstanceOSPoliciesCompliance_OSPolicyCompliance { - InstanceOSPoliciesCompliance_OSPolicyCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_id", - |m: &InstanceOSPoliciesCompliance_OSPolicyCompliance| { &m.os_policy_id }, - |m: &mut InstanceOSPoliciesCompliance_OSPolicyCompliance| { &mut m.os_policy_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &InstanceOSPoliciesCompliance_OSPolicyCompliance| { &m.os_policy_assignment }, - |m: &mut InstanceOSPoliciesCompliance_OSPolicyCompliance| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &InstanceOSPoliciesCompliance_OSPolicyCompliance| { &m.state }, - |m: &mut InstanceOSPoliciesCompliance_OSPolicyCompliance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_resource_compliances", - |m: &InstanceOSPoliciesCompliance_OSPolicyCompliance| { &m.os_policy_resource_compliances }, - |m: &mut InstanceOSPoliciesCompliance_OSPolicyCompliance| { &mut m.os_policy_resource_compliances }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InstanceOSPoliciesCompliance.OSPolicyCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static InstanceOSPoliciesCompliance_OSPolicyCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InstanceOSPoliciesCompliance_OSPolicyCompliance::new) - } -} - -impl ::protobuf::Clear for InstanceOSPoliciesCompliance_OSPolicyCompliance { - fn clear(&mut self) { - self.os_policy_id.clear(); - self.os_policy_assignment.clear(); - self.state = super::config_common::OSPolicyComplianceState::OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED; - self.os_policy_resource_compliances.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for InstanceOSPoliciesCompliance_OSPolicyCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for InstanceOSPoliciesCompliance_OSPolicyCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetInstanceOSPoliciesComplianceRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetInstanceOSPoliciesComplianceRequest { - fn default() -> &'a GetInstanceOSPoliciesComplianceRequest { - ::default_instance() - } -} - -impl GetInstanceOSPoliciesComplianceRequest { - pub fn new() -> GetInstanceOSPoliciesComplianceRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetInstanceOSPoliciesComplianceRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetInstanceOSPoliciesComplianceRequest { - GetInstanceOSPoliciesComplianceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInstanceOSPoliciesComplianceRequest| { &m.name }, - |m: &mut GetInstanceOSPoliciesComplianceRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInstanceOSPoliciesComplianceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetInstanceOSPoliciesComplianceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInstanceOSPoliciesComplianceRequest::new) - } -} - -impl ::protobuf::Clear for GetInstanceOSPoliciesComplianceRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetInstanceOSPoliciesComplianceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetInstanceOSPoliciesComplianceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceOSPoliciesCompliancesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceOSPoliciesCompliancesRequest { - fn default() -> &'a ListInstanceOSPoliciesCompliancesRequest { - ::default_instance() - } -} - -impl ListInstanceOSPoliciesCompliancesRequest { - pub fn new() -> ListInstanceOSPoliciesCompliancesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceOSPoliciesCompliancesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceOSPoliciesCompliancesRequest { - ListInstanceOSPoliciesCompliancesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInstanceOSPoliciesCompliancesRequest| { &m.parent }, - |m: &mut ListInstanceOSPoliciesCompliancesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInstanceOSPoliciesCompliancesRequest| { &m.page_size }, - |m: &mut ListInstanceOSPoliciesCompliancesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInstanceOSPoliciesCompliancesRequest| { &m.page_token }, - |m: &mut ListInstanceOSPoliciesCompliancesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListInstanceOSPoliciesCompliancesRequest| { &m.filter }, - |m: &mut ListInstanceOSPoliciesCompliancesRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceOSPoliciesCompliancesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceOSPoliciesCompliancesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceOSPoliciesCompliancesRequest::new) - } -} - -impl ::protobuf::Clear for ListInstanceOSPoliciesCompliancesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceOSPoliciesCompliancesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceOSPoliciesCompliancesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceOSPoliciesCompliancesResponse { - // message fields - pub instance_os_policies_compliances: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceOSPoliciesCompliancesResponse { - fn default() -> &'a ListInstanceOSPoliciesCompliancesResponse { - ::default_instance() - } -} - -impl ListInstanceOSPoliciesCompliancesResponse { - pub fn new() -> ListInstanceOSPoliciesCompliancesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance instance_os_policies_compliances = 1; - - - pub fn get_instance_os_policies_compliances(&self) -> &[InstanceOSPoliciesCompliance] { - &self.instance_os_policies_compliances - } - pub fn clear_instance_os_policies_compliances(&mut self) { - self.instance_os_policies_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_os_policies_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.instance_os_policies_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_instance_os_policies_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.instance_os_policies_compliances - } - - // Take field - pub fn take_instance_os_policies_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.instance_os_policies_compliances, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceOSPoliciesCompliancesResponse { - fn is_initialized(&self) -> bool { - for v in &self.instance_os_policies_compliances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.instance_os_policies_compliances)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.instance_os_policies_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.instance_os_policies_compliances { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceOSPoliciesCompliancesResponse { - ListInstanceOSPoliciesCompliancesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_os_policies_compliances", - |m: &ListInstanceOSPoliciesCompliancesResponse| { &m.instance_os_policies_compliances }, - |m: &mut ListInstanceOSPoliciesCompliancesResponse| { &mut m.instance_os_policies_compliances }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInstanceOSPoliciesCompliancesResponse| { &m.next_page_token }, - |m: &mut ListInstanceOSPoliciesCompliancesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceOSPoliciesCompliancesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceOSPoliciesCompliancesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceOSPoliciesCompliancesResponse::new) - } -} - -impl ::protobuf::Clear for ListInstanceOSPoliciesCompliancesResponse { - fn clear(&mut self) { - self.instance_os_policies_compliances.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceOSPoliciesCompliancesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceOSPoliciesCompliancesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nCgoogle/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto\ - \x12\x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.p\ - roto\x1a\x19google/api/resource.proto\x1a1google/cloud/osconfig/v1alpha/\ - config_common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x08\n\ - \x1cInstanceOSPoliciesCompliance\x12\x17\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB\x03\xe0A\x03\x12\x1f\n\x08instance\x18\x02\x20\x01(\tR\x08inst\ - anceB\x03\xe0A\x03\x12Q\n\x05state\x18\x03\x20\x01(\x0e26.google.cloud.o\ - sconfig.v1alpha.OSPolicyComplianceStateR\x05stateB\x03\xe0A\x03\x12*\n\ - \x0edetailed_state\x18\x04\x20\x01(\tR\rdetailedStateB\x03\xe0A\x03\x127\ - \n\x15detailed_state_reason\x18\x05\x20\x01(\tR\x13detailedStateReasonB\ - \x03\xe0A\x03\x12\x87\x01\n\x15os_policy_compliances\x18\x06\x20\x03(\ - \x0b2N.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPoli\ - cyComplianceR\x13osPolicyCompliancesB\x03\xe0A\x03\x12\\\n\x1alast_compl\ - iance_check_time\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x17lastComplianceCheckTimeB\x03\xe0A\x03\x128\n\x16last_compliance_run_\ - id\x18\x08\x20\x01(\tR\x13lastComplianceRunIdB\x03\xe0A\x03\x1a\xeb\x02\ - \n\x12OSPolicyCompliance\x12\x20\n\x0cos_policy_id\x18\x01\x20\x01(\tR\n\ - osPolicyId\x12a\n\x14os_policy_assignment\x18\x02\x20\x01(\tR\x12osPolic\ - yAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignment\x12L\n\ - \x05state\x18\x04\x20\x01(\x0e26.google.cloud.osconfig.v1alpha.OSPolicyC\ - omplianceStateR\x05state\x12~\n\x1eos_policy_resource_compliances\x18\ - \x05\x20\x03(\x0b29.google.cloud.osconfig.v1alpha.OSPolicyResourceCompli\ - anceR\x1bosPolicyResourceCompliances:\x02\x18\x01:\x8e\x01\x18\x01\xeaA\ - \x88\x01\n4osconfig.googleapis.com/InstanceOSPoliciesCompliance\x12Pproj\ - ects/{project}/locations/{location}/instanceOSPoliciesCompliances/{insta\ - nce}\"~\n&GetInstanceOSPoliciesComplianceRequest\x12P\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB<\xfaA6\n4osconfig.googleapis.com/InstanceOSPolicie\ - sCompliance\xe0A\x02:\x02\x18\x01\"\xc5\x01\n(ListInstanceOSPoliciesComp\ - liancesRequest\x12A\n\x06parent\x18\x01\x20\x01(\tR\x06parentB)\xfaA#\n!\ - locations.googleapis.com/Location\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\ - \x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpa\ - geToken\x12\x16\n\x06filter\x18\x04\x20\x01(\tR\x06filter:\x02\x18\x01\"\ - \xde\x01\n)ListInstanceOSPoliciesCompliancesResponse\x12\x84\x01\n\x20in\ - stance_os_policies_compliances\x18\x01\x20\x03(\x0b2;.google.cloud.oscon\ - fig.v1alpha.InstanceOSPoliciesComplianceR\x1dinstanceOsPoliciesComplianc\ - es\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken:\x02\x18\ - \x01B\xea\x01\n!com.google.cloud.osconfig.v1alphaB!InstanceOSPoliciesCom\ - plianceProtoP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;os\ - configpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Clo\ - ud\\OsConfig\\V1alpha\xea\x02\x20Google::Cloud::OsConfig::V1alphaJ\x9c1\ - \n\x07\x12\x05\x0e\0\xb5\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0&\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\ - \x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0;\n\t\n\x02\x03\x03\x12\x03\ - \x15\0)\n\x08\n\x01\x08\x12\x03\x17\0:\n\t\n\x02\x08%\x12\x03\x17\0:\n\ - \x08\n\x01\x08\x12\x03\x18\0T\n\t\n\x02\x08\x0b\x12\x03\x18\0T\n\x08\n\ - \x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\ - \x12\x03\x1a\0B\n\t\n\x02\x08\x08\x12\x03\x1a\0B\n\x08\n\x01\x08\x12\x03\ - \x1b\0:\n\t\n\x02\x08\x01\x12\x03\x1b\0:\n\x08\n\x01\x08\x12\x03\x1c\0:\ - \n\t\n\x02\x08)\x12\x03\x1c\0:\n\x08\n\x01\x08\x12\x03\x1d\09\n\t\n\x02\ - \x08-\x12\x03\x1d\09\n\xe2\x04\n\x02\x04\0\x12\x04+\0s\x01\x1a\xd5\x04\ - \x20This\x20API\x20resource\x20represents\x20the\x20OS\x20policies\x20co\ - mpliance\x20data\x20for\x20a\x20Compute\n\x20Engine\x20virtual\x20machin\ - e\x20(VM)\x20instance\x20at\x20a\x20given\x20point\x20in\x20time.\n\n\ - \x20A\x20Compute\x20Engine\x20VM\x20can\x20have\x20multiple\x20OS\x20pol\ - icy\x20assignments,\x20and\x20each\n\x20assignment\x20can\x20have\x20mul\ - tiple\x20OS\x20policies.\x20As\x20a\x20result,\x20multiple\x20OS\x20poli\ - cies\n\x20could\x20be\x20applied\x20to\x20a\x20single\x20VM.\n\n\x20You\ - \x20can\x20use\x20this\x20API\x20resource\x20to\x20determine\x20both\x20\ - the\x20compliance\x20state\x20of\x20your\n\x20VM\x20as\x20well\x20as\x20\ - the\x20compliance\x20state\x20of\x20an\x20individual\x20OS\x20policy.\n\ - \n\x20For\x20more\x20information,\x20see\x20[View\n\x20compliance](https\ - ://cloud.google.com/compute/docs/os-configuration-management/view-compli\ - ance).\n\n\n\n\x03\x04\0\x01\x12\x03+\x08$\n\n\n\x03\x04\0\x07\x12\x03,\ - \x02\x1b\n\x0b\n\x04\x04\0\x07\x03\x12\x03,\x02\x1b\n\x0b\n\x03\x04\0\ - \x07\x12\x04-\x020\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04-\x020\x04\n0\ - \n\x04\x04\0\x03\0\x12\x043\x02H\x03\x1a\"\x20Compliance\x20data\x20for\ - \x20an\x20OS\x20policy\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x033\n\x1c\n\ - \x0c\n\x05\x04\0\x03\0\x07\x12\x034\x04\x1d\n\r\n\x06\x04\0\x03\0\x07\ - \x03\x12\x034\x04\x1d\n!\n\x06\x04\0\x03\0\x02\0\x12\x037\x04\x1c\x1a\ - \x12\x20The\x20OS\x20policy\x20id\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\ - \x12\x037\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x037\x0b\x17\n\x0e\ - \n\x07\x04\0\x03\0\x02\0\x03\x12\x037\x1a\x1b\n\xdc\x01\n\x06\x04\0\x03\ - \0\x02\x01\x12\x04>\x04@(\x1a\xcb\x01\x20Reference\x20to\x20the\x20`OSPo\ - licyAssignment`\x20API\x20resource\x20that\x20the\x20`OSPolicy`\n\x20bel\ - ongs\x20to.\n\n\x20Format:\n\x20`projects/{project_number}/locations/{lo\ - cation}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03>\x04\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x01\x01\x12\x03>\x0b\x1f\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\ - \x03>\"#\n\x0f\n\x07\x04\0\x03\0\x02\x01\x08\x12\x04>$@'\n\x11\n\t\x04\0\ - \x03\0\x02\x01\x08\x9f\x08\x12\x04>%@&\n3\n\x06\x04\0\x03\0\x02\x02\x12\ - \x03C\x04&\x1a$\x20Compliance\x20state\x20of\x20the\x20OS\x20policy.\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x02\x06\x12\x03C\x04\x1b\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x01\x12\x03C\x1c!\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\ - \x03C$%\nX\n\x06\x04\0\x03\0\x02\x03\x12\x03G\x04K\x1aI\x20Compliance\ - \x20data\x20for\x20each\x20`OSPolicyResource`\x20that\x20is\x20applied\ - \x20to\x20the\n\x20VM.\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x04\x12\x03G\ - \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x03\x06\x12\x03G\r'\n\x0e\n\x07\x04\ - \0\x03\0\x02\x03\x01\x12\x03G(F\n\x0e\n\x07\x04\0\x03\0\x02\x03\x03\x12\ - \x03GIJ\n\xba\x01\n\x04\x04\0\x02\0\x12\x03N\x02>\x1a\xac\x01\x20Output\ - \x20only.\x20The\x20`InstanceOSPoliciesCompliance`\x20API\x20resource\ - \x20name.\n\n\x20Format:\n\x20`projects/{project_number}/locations/{loca\ - tion}/instanceOSPoliciesCompliances/{instance_id}`\n\n\x0c\n\x05\x04\0\ - \x02\0\x05\x12\x03N\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03N\t\r\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03N\x10\x11\n\x0c\n\x05\x04\0\x02\0\x08\ - \x12\x03N\x12=\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03N\x13<\n@\n\ - \x04\x04\0\x02\x01\x12\x03Q\x02B\x1a3\x20Output\x20only.\x20The\x20Compu\ - te\x20Engine\x20VM\x20instance\x20name.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03Q\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03Q\t\x11\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03Q\x14\x15\n\x0c\n\x05\x04\0\x02\x01\x08\ - \x12\x03Q\x16A\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x03Q\x17@\n7\ - \n\x04\x04\0\x02\x02\x12\x03T\x02P\x1a*\x20Output\x20only.\x20Compliance\ - \x20state\x20of\x20the\x20VM.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03T\ - \x02\x19\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03T\x1a\x1f\n\x0c\n\x05\x04\ - \0\x02\x02\x03\x12\x03T\"#\n\x0c\n\x05\x04\0\x02\x02\x08\x12\x03T$O\n\ - \x0f\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x03T%N\n\xa3\x05\n\x04\x04\0\ - \x02\x03\x12\x03d\x02H\x1a\x95\x05\x20Output\x20only.\x20Detailed\x20com\ - pliance\x20state\x20of\x20the\x20VM.\n\x20This\x20field\x20is\x20populat\ - ed\x20only\x20when\x20compliance\x20state\x20is\x20`UNKNOWN`.\n\n\x20It\ - \x20may\x20contain\x20one\x20of\x20the\x20following\x20values:\n\n\x20*\ - \x20`no-compliance-data`:\x20Compliance\x20data\x20is\x20not\x20availabl\ - e\x20for\x20this\x20VM.\n\x20*\x20`no-agent-detected`:\x20OS\x20Config\ - \x20agent\x20is\x20not\x20detected\x20for\x20this\x20VM.\n\x20*\x20`conf\ - ig-not-supported-by-agent`:\x20The\x20version\x20of\x20the\x20OS\x20Conf\ - ig\x20agent\n\x20running\x20on\x20this\x20VM\x20does\x20not\x20support\ - \x20configuration\x20management.\n\x20*\x20`inactive`:\x20VM\x20is\x20no\ - t\x20running.\n\x20*\x20`internal-service-errors`:\x20There\x20were\x20i\ - nternal\x20service\x20errors\x20encountered\n\x20while\x20enforcing\x20c\ - ompliance.\n\x20*\x20`agent-errors`:\x20OS\x20config\x20agent\x20encount\ - ered\x20errors\x20while\x20enforcing\n\x20compliance.\n\n\x0c\n\x05\x04\ - \0\x02\x03\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03d\t\ - \x17\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03d\x1a\x1b\n\x0c\n\x05\x04\0\ - \x02\x03\x08\x12\x03d\x1cG\n\x0f\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\ - \x03d\x1dF\nS\n\x04\x04\0\x02\x04\x12\x03g\x02O\x1aF\x20Output\x20only.\ - \x20The\x20reason\x20for\x20the\x20`detailed_state`\x20of\x20the\x20VM\ - \x20(if\x20any).\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03g\x02\x08\n\x0c\ - \n\x05\x04\0\x02\x04\x01\x12\x03g\t\x1e\n\x0c\n\x05\x04\0\x02\x04\x03\ - \x12\x03g!\"\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03g#N\n\x0f\n\x08\x04\0\ - \x02\x04\x08\x9c\x08\0\x12\x03g$M\nZ\n\x04\x04\0\x02\x05\x12\x03j\x02d\ - \x1aM\x20Output\x20only.\x20Compliance\x20data\x20for\x20each\x20`OSPoli\ - cy`\x20that\x20is\x20applied\x20to\x20the\x20VM.\n\n\x0c\n\x05\x04\0\x02\ - \x05\x04\x12\x03j\x02\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03j\x0b\x1d\n\ - \x0c\n\x05\x04\0\x02\x05\x01\x12\x03j\x1e3\n\x0c\n\x05\x04\0\x02\x05\x03\ - \x12\x03j67\n\x0c\n\x05\x04\0\x02\x05\x08\x12\x03j8c\n\x0f\n\x08\x04\0\ - \x02\x05\x08\x9c\x08\0\x12\x03j9b\nN\n\x04\x04\0\x02\x06\x12\x03m\x02g\ - \x1aA\x20Output\x20only.\x20Timestamp\x20of\x20the\x20last\x20compliance\ - \x20check\x20for\x20the\x20VM.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03m\ - \x02\x1b\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03m\x1c6\n\x0c\n\x05\x04\0\ - \x02\x06\x03\x12\x03m9:\n\x0c\n\x05\x04\0\x02\x06\x08\x12\x03m;f\n\x0f\n\ - \x08\x04\0\x02\x06\x08\x9c\x08\0\x12\x03m = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/inventory.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/inventory.rs deleted file mode 100644 index 96fdab0..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/inventory.rs +++ /dev/null @@ -1,5396 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/inventory.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory { - // message fields - pub name: ::std::string::String, - pub os_info: ::protobuf::SingularPtrField, - pub items: ::std::collections::HashMap<::std::string::String, Inventory_Item>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory { - fn default() -> &'a Inventory { - ::default_instance() - } -} - -impl Inventory { - pub fn new() -> Inventory { - ::std::default::Default::default() - } - - // string name = 3; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.Inventory.OsInfo os_info = 1; - - - pub fn get_os_info(&self) -> &Inventory_OsInfo { - self.os_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_info(&mut self) { - self.os_info.clear(); - } - - pub fn has_os_info(&self) -> bool { - self.os_info.is_some() - } - - // Param is passed by value, moved - pub fn set_os_info(&mut self, v: Inventory_OsInfo) { - self.os_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_info(&mut self) -> &mut Inventory_OsInfo { - if self.os_info.is_none() { - self.os_info.set_default(); - } - self.os_info.as_mut().unwrap() - } - - // Take field - pub fn take_os_info(&mut self) -> Inventory_OsInfo { - self.os_info.take().unwrap_or_else(|| Inventory_OsInfo::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.Inventory.ItemsEntry items = 2; - - - pub fn get_items(&self) -> &::std::collections::HashMap<::std::string::String, Inventory_Item> { - &self.items - } - pub fn clear_items(&mut self) { - self.items.clear(); - } - - // Param is passed by value, moved - pub fn set_items(&mut self, v: ::std::collections::HashMap<::std::string::String, Inventory_Item>) { - self.items = v; - } - - // Mutable pointer to the field. - pub fn mut_items(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, Inventory_Item> { - &mut self.items - } - - // Take field - pub fn take_items(&mut self) -> ::std::collections::HashMap<::std::string::String, Inventory_Item> { - ::std::mem::replace(&mut self.items, ::std::collections::HashMap::new()) - } - - // .google.protobuf.Timestamp update_time = 4; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory { - fn is_initialized(&self) -> bool { - for v in &self.os_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_info)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.items)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.name); - } - if let Some(ref v) = self.os_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.items); - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(3, &self.name)?; - } - if let Some(ref v) = self.os_info.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(2, &self.items, os)?; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory { - Inventory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Inventory| { &m.name }, - |m: &mut Inventory| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_info", - |m: &Inventory| { &m.os_info }, - |m: &mut Inventory| { &mut m.os_info }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &Inventory| { &m.items }, - |m: &mut Inventory| { &mut m.items }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Inventory| { &m.update_time }, - |m: &mut Inventory| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory::new) - } -} - -impl ::protobuf::Clear for Inventory { - fn clear(&mut self) { - self.name.clear(); - self.os_info.clear(); - self.items.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_OsInfo { - // message fields - pub hostname: ::std::string::String, - pub long_name: ::std::string::String, - pub short_name: ::std::string::String, - pub version: ::std::string::String, - pub architecture: ::std::string::String, - pub kernel_version: ::std::string::String, - pub kernel_release: ::std::string::String, - pub osconfig_agent_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_OsInfo { - fn default() -> &'a Inventory_OsInfo { - ::default_instance() - } -} - -impl Inventory_OsInfo { - pub fn new() -> Inventory_OsInfo { - ::std::default::Default::default() - } - - // string hostname = 9; - - - pub fn get_hostname(&self) -> &str { - &self.hostname - } - pub fn clear_hostname(&mut self) { - self.hostname.clear(); - } - - // Param is passed by value, moved - pub fn set_hostname(&mut self, v: ::std::string::String) { - self.hostname = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hostname(&mut self) -> &mut ::std::string::String { - &mut self.hostname - } - - // Take field - pub fn take_hostname(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hostname, ::std::string::String::new()) - } - - // string long_name = 2; - - - pub fn get_long_name(&self) -> &str { - &self.long_name - } - pub fn clear_long_name(&mut self) { - self.long_name.clear(); - } - - // Param is passed by value, moved - pub fn set_long_name(&mut self, v: ::std::string::String) { - self.long_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_long_name(&mut self) -> &mut ::std::string::String { - &mut self.long_name - } - - // Take field - pub fn take_long_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.long_name, ::std::string::String::new()) - } - - // string short_name = 3; - - - pub fn get_short_name(&self) -> &str { - &self.short_name - } - pub fn clear_short_name(&mut self) { - self.short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_short_name(&mut self, v: ::std::string::String) { - self.short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_short_name(&mut self) -> &mut ::std::string::String { - &mut self.short_name - } - - // Take field - pub fn take_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.short_name, ::std::string::String::new()) - } - - // string version = 4; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // string architecture = 5; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string kernel_version = 6; - - - pub fn get_kernel_version(&self) -> &str { - &self.kernel_version - } - pub fn clear_kernel_version(&mut self) { - self.kernel_version.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_version(&mut self, v: ::std::string::String) { - self.kernel_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_version(&mut self) -> &mut ::std::string::String { - &mut self.kernel_version - } - - // Take field - pub fn take_kernel_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_version, ::std::string::String::new()) - } - - // string kernel_release = 7; - - - pub fn get_kernel_release(&self) -> &str { - &self.kernel_release - } - pub fn clear_kernel_release(&mut self) { - self.kernel_release.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_release(&mut self, v: ::std::string::String) { - self.kernel_release = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_release(&mut self) -> &mut ::std::string::String { - &mut self.kernel_release - } - - // Take field - pub fn take_kernel_release(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kernel_release, ::std::string::String::new()) - } - - // string osconfig_agent_version = 8; - - - pub fn get_osconfig_agent_version(&self) -> &str { - &self.osconfig_agent_version - } - pub fn clear_osconfig_agent_version(&mut self) { - self.osconfig_agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_osconfig_agent_version(&mut self, v: ::std::string::String) { - self.osconfig_agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_osconfig_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.osconfig_agent_version - } - - // Take field - pub fn take_osconfig_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.osconfig_agent_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_OsInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hostname)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.long_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.short_name)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_version)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kernel_release)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.osconfig_agent_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.hostname.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.hostname); - } - if !self.long_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.long_name); - } - if !self.short_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.short_name); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.version); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.architecture); - } - if !self.kernel_version.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.kernel_version); - } - if !self.kernel_release.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.kernel_release); - } - if !self.osconfig_agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.osconfig_agent_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.hostname.is_empty() { - os.write_string(9, &self.hostname)?; - } - if !self.long_name.is_empty() { - os.write_string(2, &self.long_name)?; - } - if !self.short_name.is_empty() { - os.write_string(3, &self.short_name)?; - } - if !self.version.is_empty() { - os.write_string(4, &self.version)?; - } - if !self.architecture.is_empty() { - os.write_string(5, &self.architecture)?; - } - if !self.kernel_version.is_empty() { - os.write_string(6, &self.kernel_version)?; - } - if !self.kernel_release.is_empty() { - os.write_string(7, &self.kernel_release)?; - } - if !self.osconfig_agent_version.is_empty() { - os.write_string(8, &self.osconfig_agent_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_OsInfo { - Inventory_OsInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hostname", - |m: &Inventory_OsInfo| { &m.hostname }, - |m: &mut Inventory_OsInfo| { &mut m.hostname }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "long_name", - |m: &Inventory_OsInfo| { &m.long_name }, - |m: &mut Inventory_OsInfo| { &mut m.long_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "short_name", - |m: &Inventory_OsInfo| { &m.short_name }, - |m: &mut Inventory_OsInfo| { &mut m.short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_OsInfo| { &m.version }, - |m: &mut Inventory_OsInfo| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_OsInfo| { &m.architecture }, - |m: &mut Inventory_OsInfo| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_version", - |m: &Inventory_OsInfo| { &m.kernel_version }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kernel_release", - |m: &Inventory_OsInfo| { &m.kernel_release }, - |m: &mut Inventory_OsInfo| { &mut m.kernel_release }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "osconfig_agent_version", - |m: &Inventory_OsInfo| { &m.osconfig_agent_version }, - |m: &mut Inventory_OsInfo| { &mut m.osconfig_agent_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.OsInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_OsInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_OsInfo::new) - } -} - -impl ::protobuf::Clear for Inventory_OsInfo { - fn clear(&mut self) { - self.hostname.clear(); - self.long_name.clear(); - self.short_name.clear(); - self.version.clear(); - self.architecture.clear(); - self.kernel_version.clear(); - self.kernel_release.clear(); - self.osconfig_agent_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_OsInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_OsInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_Item { - // message fields - pub id: ::std::string::String, - pub origin_type: Inventory_Item_OriginType, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub field_type: Inventory_Item_Type, - // message oneof groups - pub details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_Item { - fn default() -> &'a Inventory_Item { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Inventory_Item_oneof_details { - installed_package(Inventory_SoftwarePackage), - available_package(Inventory_SoftwarePackage), -} - -impl Inventory_Item { - pub fn new() -> Inventory_Item { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.Inventory.Item.OriginType origin_type = 2; - - - pub fn get_origin_type(&self) -> Inventory_Item_OriginType { - self.origin_type - } - pub fn clear_origin_type(&mut self) { - self.origin_type = Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_origin_type(&mut self, v: Inventory_Item_OriginType) { - self.origin_type = v; - } - - // .google.protobuf.Timestamp create_time = 8; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 9; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.cloud.osconfig.v1alpha.Inventory.Item.Type type = 5; - - - pub fn get_field_type(&self) -> Inventory_Item_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = Inventory_Item_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Inventory_Item_Type) { - self.field_type = v; - } - - // .google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage installed_package = 6; - - - pub fn get_installed_package(&self) -> &Inventory_SoftwarePackage { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_installed_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_installed_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_installed_package(&mut self, v: Inventory_SoftwarePackage) { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_installed_package(&mut self) -> &mut Inventory_SoftwarePackage { - if let ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(Inventory_SoftwarePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_installed_package(&mut self) -> Inventory_SoftwarePackage { - if self.has_installed_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_SoftwarePackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage available_package = 7; - - - pub fn get_available_package(&self) -> &Inventory_SoftwarePackage { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_available_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_available_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_available_package(&mut self, v: Inventory_SoftwarePackage) { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_available_package(&mut self) -> &mut Inventory_SoftwarePackage { - if let ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(Inventory_SoftwarePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_available_package(&mut self) -> Inventory_SoftwarePackage { - if self.has_available_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_SoftwarePackage::new() - } - } -} - -impl ::protobuf::Message for Inventory_Item { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - if let Some(Inventory_Item_oneof_details::installed_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_Item_oneof_details::available_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.origin_type, 2, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 5, &mut self.unknown_fields)? - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::installed_package(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_Item_oneof_details::available_package(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if self.origin_type != Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.origin_type); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.field_type != Inventory_Item_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.field_type); - } - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_Item_oneof_details::installed_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_Item_oneof_details::available_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if self.origin_type != Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.origin_type))?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.field_type != Inventory_Item_Type::TYPE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_Item_oneof_details::installed_package(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_Item_oneof_details::available_package(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_Item { - Inventory_Item::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Inventory_Item| { &m.id }, - |m: &mut Inventory_Item| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "origin_type", - |m: &Inventory_Item| { &m.origin_type }, - |m: &mut Inventory_Item| { &mut m.origin_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Inventory_Item| { &m.create_time }, - |m: &mut Inventory_Item| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Inventory_Item| { &m.update_time }, - |m: &mut Inventory_Item| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &Inventory_Item| { &m.field_type }, - |m: &mut Inventory_Item| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_SoftwarePackage>( - "installed_package", - Inventory_Item::has_installed_package, - Inventory_Item::get_installed_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_SoftwarePackage>( - "available_package", - Inventory_Item::has_available_package, - Inventory_Item::get_available_package, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.Item", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_Item { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_Item::new) - } -} - -impl ::protobuf::Clear for Inventory_Item { - fn clear(&mut self) { - self.id.clear(); - self.origin_type = Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED; - self.create_time.clear(); - self.update_time.clear(); - self.field_type = Inventory_Item_Type::TYPE_UNSPECIFIED; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_Item { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Inventory_Item_OriginType { - ORIGIN_TYPE_UNSPECIFIED = 0, - INVENTORY_REPORT = 1, -} - -impl ::protobuf::ProtobufEnum for Inventory_Item_OriginType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Inventory_Item_OriginType::INVENTORY_REPORT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Inventory_Item_OriginType] = &[ - Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED, - Inventory_Item_OriginType::INVENTORY_REPORT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Inventory.Item.OriginType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Inventory_Item_OriginType { -} - -impl ::std::default::Default for Inventory_Item_OriginType { - fn default() -> Self { - Inventory_Item_OriginType::ORIGIN_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item_OriginType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Inventory_Item_Type { - TYPE_UNSPECIFIED = 0, - INSTALLED_PACKAGE = 1, - AVAILABLE_PACKAGE = 2, -} - -impl ::protobuf::ProtobufEnum for Inventory_Item_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Inventory_Item_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Inventory_Item_Type::INSTALLED_PACKAGE), - 2 => ::std::option::Option::Some(Inventory_Item_Type::AVAILABLE_PACKAGE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Inventory_Item_Type] = &[ - Inventory_Item_Type::TYPE_UNSPECIFIED, - Inventory_Item_Type::INSTALLED_PACKAGE, - Inventory_Item_Type::AVAILABLE_PACKAGE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Inventory.Item.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Inventory_Item_Type { -} - -impl ::std::default::Default for Inventory_Item_Type { - fn default() -> Self { - Inventory_Item_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_Item_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_SoftwarePackage { - // message oneof groups - pub details: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_SoftwarePackage { - fn default() -> &'a Inventory_SoftwarePackage { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum Inventory_SoftwarePackage_oneof_details { - yum_package(Inventory_VersionedPackage), - apt_package(Inventory_VersionedPackage), - zypper_package(Inventory_VersionedPackage), - googet_package(Inventory_VersionedPackage), - zypper_patch(Inventory_ZypperPatch), - wua_package(Inventory_WindowsUpdatePackage), - qfe_package(Inventory_WindowsQuickFixEngineeringPackage), - cos_package(Inventory_VersionedPackage), - windows_application(Inventory_WindowsApplication), -} - -impl Inventory_SoftwarePackage { - pub fn new() -> Inventory_SoftwarePackage { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.Inventory.VersionedPackage yum_package = 1; - - - pub fn get_yum_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_yum_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum_package(&mut self) -> Inventory_VersionedPackage { - if self.has_yum_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.VersionedPackage apt_package = 2; - - - pub fn get_apt_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_apt_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt_package(&mut self) -> Inventory_VersionedPackage { - if self.has_apt_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.VersionedPackage zypper_package = 3; - - - pub fn get_zypper_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_package(&mut self) -> Inventory_VersionedPackage { - if self.has_zypper_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.VersionedPackage googet_package = 4; - - - pub fn get_googet_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_googet_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet_package(&mut self) -> Inventory_VersionedPackage { - if self.has_googet_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.ZypperPatch zypper_patch = 5; - - - pub fn get_zypper_patch(&self) -> &Inventory_ZypperPatch { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper_patch(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_zypper_patch(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper_patch(&mut self, v: Inventory_ZypperPatch) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper_patch(&mut self) -> &mut Inventory_ZypperPatch { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(Inventory_ZypperPatch::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper_patch(&mut self) -> Inventory_ZypperPatch { - if self.has_zypper_patch() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(v)) => v, - _ => panic!(), - } - } else { - Inventory_ZypperPatch::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage wua_package = 6; - - - pub fn get_wua_package(&self) -> &Inventory_WindowsUpdatePackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_wua_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_wua_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_wua_package(&mut self, v: Inventory_WindowsUpdatePackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_wua_package(&mut self) -> &mut Inventory_WindowsUpdatePackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(Inventory_WindowsUpdatePackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_wua_package(&mut self) -> Inventory_WindowsUpdatePackage { - if self.has_wua_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsUpdatePackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage qfe_package = 7; - - - pub fn get_qfe_package(&self) -> &Inventory_WindowsQuickFixEngineeringPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_qfe_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_qfe_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_qfe_package(&mut self, v: Inventory_WindowsQuickFixEngineeringPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_qfe_package(&mut self) -> &mut Inventory_WindowsQuickFixEngineeringPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(Inventory_WindowsQuickFixEngineeringPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_qfe_package(&mut self) -> Inventory_WindowsQuickFixEngineeringPackage { - if self.has_qfe_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.VersionedPackage cos_package = 8; - - - pub fn get_cos_package(&self) -> &Inventory_VersionedPackage { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_cos_package(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_cos_package(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_cos_package(&mut self, v: Inventory_VersionedPackage) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) - } - - // Mutable pointer to the field. - pub fn mut_cos_package(&mut self) -> &mut Inventory_VersionedPackage { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(Inventory_VersionedPackage::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_cos_package(&mut self) -> Inventory_VersionedPackage { - if self.has_cos_package() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(v)) => v, - _ => panic!(), - } - } else { - Inventory_VersionedPackage::new() - } - } - - // .google.cloud.osconfig.v1alpha.Inventory.WindowsApplication windows_application = 9; - - - pub fn get_windows_application(&self) -> &Inventory_WindowsApplication { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_windows_application(&mut self) { - self.details = ::std::option::Option::None; - } - - pub fn has_windows_application(&self) -> bool { - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_windows_application(&mut self, v: Inventory_WindowsApplication) { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) - } - - // Mutable pointer to the field. - pub fn mut_windows_application(&mut self) -> &mut Inventory_WindowsApplication { - if let ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(_)) = self.details { - } else { - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(Inventory_WindowsApplication::new())); - } - match self.details { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_windows_application(&mut self) -> Inventory_WindowsApplication { - if self.has_windows_application() { - match self.details.take() { - ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(v)) => v, - _ => panic!(), - } - } else { - Inventory_WindowsApplication::new() - } - } -} - -impl ::protobuf::Message for Inventory_SoftwarePackage { - fn is_initialized(&self) -> bool { - if let Some(Inventory_SoftwarePackage_oneof_details::yum_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::apt_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::googet_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::wua_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::qfe_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::cos_package(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - if let Some(Inventory_SoftwarePackage_oneof_details::windows_application(ref v)) = self.details { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::yum_package(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::apt_package(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_package(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::googet_package(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::zypper_patch(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::wua_package(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::qfe_package(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::cos_package(is.read_message()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.details = ::std::option::Option::Some(Inventory_SoftwarePackage_oneof_details::windows_application(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.details { - match v { - &Inventory_SoftwarePackage_oneof_details::yum_package(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::apt_package(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_package(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::googet_package(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::zypper_patch(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::wua_package(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::qfe_package(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::cos_package(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &Inventory_SoftwarePackage_oneof_details::windows_application(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_SoftwarePackage { - Inventory_SoftwarePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "yum_package", - Inventory_SoftwarePackage::has_yum_package, - Inventory_SoftwarePackage::get_yum_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "apt_package", - Inventory_SoftwarePackage::has_apt_package, - Inventory_SoftwarePackage::get_apt_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "zypper_package", - Inventory_SoftwarePackage::has_zypper_package, - Inventory_SoftwarePackage::get_zypper_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "googet_package", - Inventory_SoftwarePackage::has_googet_package, - Inventory_SoftwarePackage::get_googet_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_ZypperPatch>( - "zypper_patch", - Inventory_SoftwarePackage::has_zypper_patch, - Inventory_SoftwarePackage::get_zypper_patch, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsUpdatePackage>( - "wua_package", - Inventory_SoftwarePackage::has_wua_package, - Inventory_SoftwarePackage::get_wua_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsQuickFixEngineeringPackage>( - "qfe_package", - Inventory_SoftwarePackage::has_qfe_package, - Inventory_SoftwarePackage::get_qfe_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_VersionedPackage>( - "cos_package", - Inventory_SoftwarePackage::has_cos_package, - Inventory_SoftwarePackage::get_cos_package, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Inventory_WindowsApplication>( - "windows_application", - Inventory_SoftwarePackage::has_windows_application, - Inventory_SoftwarePackage::get_windows_application, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.SoftwarePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_SoftwarePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_SoftwarePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_SoftwarePackage { - fn clear(&mut self) { - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.details = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_SoftwarePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_SoftwarePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_VersionedPackage { - // message fields - pub package_name: ::std::string::String, - pub architecture: ::std::string::String, - pub version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_VersionedPackage { - fn default() -> &'a Inventory_VersionedPackage { - ::default_instance() - } -} - -impl Inventory_VersionedPackage { - pub fn new() -> Inventory_VersionedPackage { - ::std::default::Default::default() - } - - // string package_name = 4; - - - pub fn get_package_name(&self) -> &str { - &self.package_name - } - pub fn clear_package_name(&mut self) { - self.package_name.clear(); - } - - // Param is passed by value, moved - pub fn set_package_name(&mut self, v: ::std::string::String) { - self.package_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_package_name(&mut self) -> &mut ::std::string::String { - &mut self.package_name - } - - // Take field - pub fn take_package_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.package_name, ::std::string::String::new()) - } - - // string architecture = 2; - - - pub fn get_architecture(&self) -> &str { - &self.architecture - } - pub fn clear_architecture(&mut self) { - self.architecture.clear(); - } - - // Param is passed by value, moved - pub fn set_architecture(&mut self, v: ::std::string::String) { - self.architecture = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_architecture(&mut self) -> &mut ::std::string::String { - &mut self.architecture - } - - // Take field - pub fn take_architecture(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.architecture, ::std::string::String::new()) - } - - // string version = 3; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_VersionedPackage { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.package_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.architecture)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.package_name.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.package_name); - } - if !self.architecture.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.architecture); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.package_name.is_empty() { - os.write_string(4, &self.package_name)?; - } - if !self.architecture.is_empty() { - os.write_string(2, &self.architecture)?; - } - if !self.version.is_empty() { - os.write_string(3, &self.version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_VersionedPackage { - Inventory_VersionedPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "package_name", - |m: &Inventory_VersionedPackage| { &m.package_name }, - |m: &mut Inventory_VersionedPackage| { &mut m.package_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "architecture", - |m: &Inventory_VersionedPackage| { &m.architecture }, - |m: &mut Inventory_VersionedPackage| { &mut m.architecture }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &Inventory_VersionedPackage| { &m.version }, - |m: &mut Inventory_VersionedPackage| { &mut m.version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.VersionedPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_VersionedPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_VersionedPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_VersionedPackage { - fn clear(&mut self) { - self.package_name.clear(); - self.architecture.clear(); - self.version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_VersionedPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_VersionedPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_ZypperPatch { - // message fields - pub patch_name: ::std::string::String, - pub category: ::std::string::String, - pub severity: ::std::string::String, - pub summary: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_ZypperPatch { - fn default() -> &'a Inventory_ZypperPatch { - ::default_instance() - } -} - -impl Inventory_ZypperPatch { - pub fn new() -> Inventory_ZypperPatch { - ::std::default::Default::default() - } - - // string patch_name = 5; - - - pub fn get_patch_name(&self) -> &str { - &self.patch_name - } - pub fn clear_patch_name(&mut self) { - self.patch_name.clear(); - } - - // Param is passed by value, moved - pub fn set_patch_name(&mut self, v: ::std::string::String) { - self.patch_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_patch_name(&mut self) -> &mut ::std::string::String { - &mut self.patch_name - } - - // Take field - pub fn take_patch_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.patch_name, ::std::string::String::new()) - } - - // string category = 2; - - - pub fn get_category(&self) -> &str { - &self.category - } - pub fn clear_category(&mut self) { - self.category.clear(); - } - - // Param is passed by value, moved - pub fn set_category(&mut self, v: ::std::string::String) { - self.category = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_category(&mut self) -> &mut ::std::string::String { - &mut self.category - } - - // Take field - pub fn take_category(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.category, ::std::string::String::new()) - } - - // string severity = 3; - - - pub fn get_severity(&self) -> &str { - &self.severity - } - pub fn clear_severity(&mut self) { - self.severity.clear(); - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: ::std::string::String) { - self.severity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_severity(&mut self) -> &mut ::std::string::String { - &mut self.severity - } - - // Take field - pub fn take_severity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.severity, ::std::string::String::new()) - } - - // string summary = 4; - - - pub fn get_summary(&self) -> &str { - &self.summary - } - pub fn clear_summary(&mut self) { - self.summary.clear(); - } - - // Param is passed by value, moved - pub fn set_summary(&mut self, v: ::std::string::String) { - self.summary = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_summary(&mut self) -> &mut ::std::string::String { - &mut self.summary - } - - // Take field - pub fn take_summary(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.summary, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_ZypperPatch { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.patch_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.category)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.severity)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.summary)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.patch_name.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.patch_name); - } - if !self.category.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.category); - } - if !self.severity.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.severity); - } - if !self.summary.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.summary); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.patch_name.is_empty() { - os.write_string(5, &self.patch_name)?; - } - if !self.category.is_empty() { - os.write_string(2, &self.category)?; - } - if !self.severity.is_empty() { - os.write_string(3, &self.severity)?; - } - if !self.summary.is_empty() { - os.write_string(4, &self.summary)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_ZypperPatch { - Inventory_ZypperPatch::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "patch_name", - |m: &Inventory_ZypperPatch| { &m.patch_name }, - |m: &mut Inventory_ZypperPatch| { &mut m.patch_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "category", - |m: &Inventory_ZypperPatch| { &m.category }, - |m: &mut Inventory_ZypperPatch| { &mut m.category }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severity", - |m: &Inventory_ZypperPatch| { &m.severity }, - |m: &mut Inventory_ZypperPatch| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "summary", - |m: &Inventory_ZypperPatch| { &m.summary }, - |m: &mut Inventory_ZypperPatch| { &mut m.summary }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.ZypperPatch", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_ZypperPatch { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_ZypperPatch::new) - } -} - -impl ::protobuf::Clear for Inventory_ZypperPatch { - fn clear(&mut self) { - self.patch_name.clear(); - self.category.clear(); - self.severity.clear(); - self.summary.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_ZypperPatch { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_ZypperPatch { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage { - // message fields - pub title: ::std::string::String, - pub description: ::std::string::String, - pub categories: ::protobuf::RepeatedField, - pub kb_article_ids: ::protobuf::RepeatedField<::std::string::String>, - pub support_url: ::std::string::String, - pub more_info_urls: ::protobuf::RepeatedField<::std::string::String>, - pub update_id: ::std::string::String, - pub revision_number: i32, - pub last_deployment_change_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage { - fn default() -> &'a Inventory_WindowsUpdatePackage { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage { - pub fn new() -> Inventory_WindowsUpdatePackage { - ::std::default::Default::default() - } - - // string title = 1; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3; - - - pub fn get_categories(&self) -> &[Inventory_WindowsUpdatePackage_WindowsUpdateCategory] { - &self.categories - } - pub fn clear_categories(&mut self) { - self.categories.clear(); - } - - // Param is passed by value, moved - pub fn set_categories(&mut self, v: ::protobuf::RepeatedField) { - self.categories = v; - } - - // Mutable pointer to the field. - pub fn mut_categories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.categories - } - - // Take field - pub fn take_categories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.categories, ::protobuf::RepeatedField::new()) - } - - // repeated string kb_article_ids = 4; - - - pub fn get_kb_article_ids(&self) -> &[::std::string::String] { - &self.kb_article_ids - } - pub fn clear_kb_article_ids(&mut self) { - self.kb_article_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_kb_article_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.kb_article_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_kb_article_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.kb_article_ids - } - - // Take field - pub fn take_kb_article_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.kb_article_ids, ::protobuf::RepeatedField::new()) - } - - // string support_url = 11; - - - pub fn get_support_url(&self) -> &str { - &self.support_url - } - pub fn clear_support_url(&mut self) { - self.support_url.clear(); - } - - // Param is passed by value, moved - pub fn set_support_url(&mut self, v: ::std::string::String) { - self.support_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_support_url(&mut self) -> &mut ::std::string::String { - &mut self.support_url - } - - // Take field - pub fn take_support_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.support_url, ::std::string::String::new()) - } - - // repeated string more_info_urls = 5; - - - pub fn get_more_info_urls(&self) -> &[::std::string::String] { - &self.more_info_urls - } - pub fn clear_more_info_urls(&mut self) { - self.more_info_urls.clear(); - } - - // Param is passed by value, moved - pub fn set_more_info_urls(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.more_info_urls = v; - } - - // Mutable pointer to the field. - pub fn mut_more_info_urls(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.more_info_urls - } - - // Take field - pub fn take_more_info_urls(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.more_info_urls, ::protobuf::RepeatedField::new()) - } - - // string update_id = 6; - - - pub fn get_update_id(&self) -> &str { - &self.update_id - } - pub fn clear_update_id(&mut self) { - self.update_id.clear(); - } - - // Param is passed by value, moved - pub fn set_update_id(&mut self, v: ::std::string::String) { - self.update_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_id(&mut self) -> &mut ::std::string::String { - &mut self.update_id - } - - // Take field - pub fn take_update_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.update_id, ::std::string::String::new()) - } - - // int32 revision_number = 7; - - - pub fn get_revision_number(&self) -> i32 { - self.revision_number - } - pub fn clear_revision_number(&mut self) { - self.revision_number = 0; - } - - // Param is passed by value, moved - pub fn set_revision_number(&mut self, v: i32) { - self.revision_number = v; - } - - // .google.protobuf.Timestamp last_deployment_change_time = 10; - - - pub fn get_last_deployment_change_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_last_deployment_change_time(&mut self) { - self.last_deployment_change_time.clear(); - } - - pub fn has_last_deployment_change_time(&self) -> bool { - self.last_deployment_change_time.is_some() - } - - // Param is passed by value, moved - pub fn set_last_deployment_change_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.last_deployment_change_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_deployment_change_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.last_deployment_change_time.is_none() { - self.last_deployment_change_time.set_default(); - } - self.last_deployment_change_time.as_mut().unwrap() - } - - // Take field - pub fn take_last_deployment_change_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.last_deployment_change_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage { - fn is_initialized(&self) -> bool { - for v in &self.categories { - if !v.is_initialized() { - return false; - } - }; - for v in &self.last_deployment_change_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.categories)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.kb_article_ids)?; - }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.support_url)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.more_info_urls)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.update_id)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.revision_number = tmp; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.last_deployment_change_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.title); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - for value in &self.categories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.kb_article_ids { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.support_url.is_empty() { - my_size += ::protobuf::rt::string_size(11, &self.support_url); - } - for value in &self.more_info_urls { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.update_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.update_id); - } - if self.revision_number != 0 { - my_size += ::protobuf::rt::value_size(7, self.revision_number, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.title.is_empty() { - os.write_string(1, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - for v in &self.categories { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.kb_article_ids { - os.write_string(4, &v)?; - }; - if !self.support_url.is_empty() { - os.write_string(11, &self.support_url)?; - } - for v in &self.more_info_urls { - os.write_string(5, &v)?; - }; - if !self.update_id.is_empty() { - os.write_string(6, &self.update_id)?; - } - if self.revision_number != 0 { - os.write_int32(7, self.revision_number)?; - } - if let Some(ref v) = self.last_deployment_change_time.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage { - Inventory_WindowsUpdatePackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &Inventory_WindowsUpdatePackage| { &m.title }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsUpdatePackage| { &m.description }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "categories", - |m: &Inventory_WindowsUpdatePackage| { &m.categories }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.categories }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kb_article_ids", - |m: &Inventory_WindowsUpdatePackage| { &m.kb_article_ids }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.kb_article_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "support_url", - |m: &Inventory_WindowsUpdatePackage| { &m.support_url }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.support_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "more_info_urls", - |m: &Inventory_WindowsUpdatePackage| { &m.more_info_urls }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.more_info_urls }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "update_id", - |m: &Inventory_WindowsUpdatePackage| { &m.update_id }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.update_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "revision_number", - |m: &Inventory_WindowsUpdatePackage| { &m.revision_number }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.revision_number }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "last_deployment_change_time", - |m: &Inventory_WindowsUpdatePackage| { &m.last_deployment_change_time }, - |m: &mut Inventory_WindowsUpdatePackage| { &mut m.last_deployment_change_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage { - fn clear(&mut self) { - self.title.clear(); - self.description.clear(); - self.categories.clear(); - self.kb_article_ids.clear(); - self.support_url.clear(); - self.more_info_urls.clear(); - self.update_id.clear(); - self.revision_number = 0; - self.last_deployment_change_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - // message fields - pub id: ::std::string::String, - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn default() -> &'a Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::default_instance() - } -} - -impl Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - pub fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string name = 2; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.name.is_empty() { - os.write_string(2, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.id }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &m.name }, - |m: &mut Inventory_WindowsUpdatePackage_WindowsUpdateCategory| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsUpdatePackage.WindowsUpdateCategory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsUpdatePackage_WindowsUpdateCategory::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn clear(&mut self) { - self.id.clear(); - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsUpdatePackage_WindowsUpdateCategory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsQuickFixEngineeringPackage { - // message fields - pub caption: ::std::string::String, - pub description: ::std::string::String, - pub hot_fix_id: ::std::string::String, - pub install_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsQuickFixEngineeringPackage { - fn default() -> &'a Inventory_WindowsQuickFixEngineeringPackage { - ::default_instance() - } -} - -impl Inventory_WindowsQuickFixEngineeringPackage { - pub fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - ::std::default::Default::default() - } - - // string caption = 1; - - - pub fn get_caption(&self) -> &str { - &self.caption - } - pub fn clear_caption(&mut self) { - self.caption.clear(); - } - - // Param is passed by value, moved - pub fn set_caption(&mut self, v: ::std::string::String) { - self.caption = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_caption(&mut self) -> &mut ::std::string::String { - &mut self.caption - } - - // Take field - pub fn take_caption(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.caption, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string hot_fix_id = 3; - - - pub fn get_hot_fix_id(&self) -> &str { - &self.hot_fix_id - } - pub fn clear_hot_fix_id(&mut self) { - self.hot_fix_id.clear(); - } - - // Param is passed by value, moved - pub fn set_hot_fix_id(&mut self, v: ::std::string::String) { - self.hot_fix_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hot_fix_id(&mut self) -> &mut ::std::string::String { - &mut self.hot_fix_id - } - - // Take field - pub fn take_hot_fix_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hot_fix_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp install_time = 5; - - - pub fn get_install_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.install_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_install_time(&mut self) { - self.install_time.clear(); - } - - pub fn has_install_time(&self) -> bool { - self.install_time.is_some() - } - - // Param is passed by value, moved - pub fn set_install_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.install_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.install_time.is_none() { - self.install_time.set_default(); - } - self.install_time.as_mut().unwrap() - } - - // Take field - pub fn take_install_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.install_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsQuickFixEngineeringPackage { - fn is_initialized(&self) -> bool { - for v in &self.install_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.caption)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hot_fix_id)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.caption.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.caption); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if !self.hot_fix_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.hot_fix_id); - } - if let Some(ref v) = self.install_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.caption.is_empty() { - os.write_string(1, &self.caption)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if !self.hot_fix_id.is_empty() { - os.write_string(3, &self.hot_fix_id)?; - } - if let Some(ref v) = self.install_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsQuickFixEngineeringPackage { - Inventory_WindowsQuickFixEngineeringPackage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "caption", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.caption }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.caption }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.description }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hot_fix_id", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.hot_fix_id }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.hot_fix_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "install_time", - |m: &Inventory_WindowsQuickFixEngineeringPackage| { &m.install_time }, - |m: &mut Inventory_WindowsQuickFixEngineeringPackage| { &mut m.install_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsQuickFixEngineeringPackage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsQuickFixEngineeringPackage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsQuickFixEngineeringPackage::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsQuickFixEngineeringPackage { - fn clear(&mut self) { - self.caption.clear(); - self.description.clear(); - self.hot_fix_id.clear(); - self.install_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsQuickFixEngineeringPackage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsQuickFixEngineeringPackage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Inventory_WindowsApplication { - // message fields - pub display_name: ::std::string::String, - pub display_version: ::std::string::String, - pub publisher: ::std::string::String, - pub install_date: ::protobuf::SingularPtrField, - pub help_link: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Inventory_WindowsApplication { - fn default() -> &'a Inventory_WindowsApplication { - ::default_instance() - } -} - -impl Inventory_WindowsApplication { - pub fn new() -> Inventory_WindowsApplication { - ::std::default::Default::default() - } - - // string display_name = 1; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string display_version = 2; - - - pub fn get_display_version(&self) -> &str { - &self.display_version - } - pub fn clear_display_version(&mut self) { - self.display_version.clear(); - } - - // Param is passed by value, moved - pub fn set_display_version(&mut self, v: ::std::string::String) { - self.display_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_version(&mut self) -> &mut ::std::string::String { - &mut self.display_version - } - - // Take field - pub fn take_display_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_version, ::std::string::String::new()) - } - - // string publisher = 3; - - - pub fn get_publisher(&self) -> &str { - &self.publisher - } - pub fn clear_publisher(&mut self) { - self.publisher.clear(); - } - - // Param is passed by value, moved - pub fn set_publisher(&mut self, v: ::std::string::String) { - self.publisher = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_publisher(&mut self) -> &mut ::std::string::String { - &mut self.publisher - } - - // Take field - pub fn take_publisher(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.publisher, ::std::string::String::new()) - } - - // .google.type.Date install_date = 4; - - - pub fn get_install_date(&self) -> &super::date::Date { - self.install_date.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_install_date(&mut self) { - self.install_date.clear(); - } - - pub fn has_install_date(&self) -> bool { - self.install_date.is_some() - } - - // Param is passed by value, moved - pub fn set_install_date(&mut self, v: super::date::Date) { - self.install_date = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_install_date(&mut self) -> &mut super::date::Date { - if self.install_date.is_none() { - self.install_date.set_default(); - } - self.install_date.as_mut().unwrap() - } - - // Take field - pub fn take_install_date(&mut self) -> super::date::Date { - self.install_date.take().unwrap_or_else(|| super::date::Date::new()) - } - - // string help_link = 5; - - - pub fn get_help_link(&self) -> &str { - &self.help_link - } - pub fn clear_help_link(&mut self) { - self.help_link.clear(); - } - - // Param is passed by value, moved - pub fn set_help_link(&mut self, v: ::std::string::String) { - self.help_link = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_help_link(&mut self) -> &mut ::std::string::String { - &mut self.help_link - } - - // Take field - pub fn take_help_link(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.help_link, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Inventory_WindowsApplication { - fn is_initialized(&self) -> bool { - for v in &self.install_date { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_version)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.publisher)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.install_date)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.help_link)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.display_name); - } - if !self.display_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_version); - } - if !self.publisher.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.publisher); - } - if let Some(ref v) = self.install_date.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.help_link.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.help_link); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.display_name.is_empty() { - os.write_string(1, &self.display_name)?; - } - if !self.display_version.is_empty() { - os.write_string(2, &self.display_version)?; - } - if !self.publisher.is_empty() { - os.write_string(3, &self.publisher)?; - } - if let Some(ref v) = self.install_date.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.help_link.is_empty() { - os.write_string(5, &self.help_link)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Inventory_WindowsApplication { - Inventory_WindowsApplication::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Inventory_WindowsApplication| { &m.display_name }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_version", - |m: &Inventory_WindowsApplication| { &m.display_version }, - |m: &mut Inventory_WindowsApplication| { &mut m.display_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "publisher", - |m: &Inventory_WindowsApplication| { &m.publisher }, - |m: &mut Inventory_WindowsApplication| { &mut m.publisher }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "install_date", - |m: &Inventory_WindowsApplication| { &m.install_date }, - |m: &mut Inventory_WindowsApplication| { &mut m.install_date }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "help_link", - |m: &Inventory_WindowsApplication| { &m.help_link }, - |m: &mut Inventory_WindowsApplication| { &mut m.help_link }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Inventory.WindowsApplication", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Inventory_WindowsApplication { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Inventory_WindowsApplication::new) - } -} - -impl ::protobuf::Clear for Inventory_WindowsApplication { - fn clear(&mut self) { - self.display_name.clear(); - self.display_version.clear(); - self.publisher.clear(); - self.install_date.clear(); - self.help_link.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Inventory_WindowsApplication { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Inventory_WindowsApplication { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetInventoryRequest { - // message fields - pub name: ::std::string::String, - pub view: InventoryView, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetInventoryRequest { - fn default() -> &'a GetInventoryRequest { - ::default_instance() - } -} - -impl GetInventoryRequest { - pub fn new() -> GetInventoryRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.InventoryView view = 2; - - - pub fn get_view(&self) -> InventoryView { - self.view - } - pub fn clear_view(&mut self) { - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: InventoryView) { - self.view = v; - } -} - -impl ::protobuf::Message for GetInventoryRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetInventoryRequest { - GetInventoryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInventoryRequest| { &m.name }, - |m: &mut GetInventoryRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &GetInventoryRequest| { &m.view }, - |m: &mut GetInventoryRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInventoryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetInventoryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInventoryRequest::new) - } -} - -impl ::protobuf::Clear for GetInventoryRequest { - fn clear(&mut self) { - self.name.clear(); - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetInventoryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetInventoryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInventoriesRequest { - // message fields - pub parent: ::std::string::String, - pub view: InventoryView, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInventoriesRequest { - fn default() -> &'a ListInventoriesRequest { - ::default_instance() - } -} - -impl ListInventoriesRequest { - pub fn new() -> ListInventoriesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.InventoryView view = 2; - - - pub fn get_view(&self) -> InventoryView { - self.view - } - pub fn clear_view(&mut self) { - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: InventoryView) { - self.view = v; - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 5; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInventoriesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.view != InventoryView::INVENTORY_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(5, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInventoriesRequest { - ListInventoriesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInventoriesRequest| { &m.parent }, - |m: &mut ListInventoriesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &ListInventoriesRequest| { &m.view }, - |m: &mut ListInventoriesRequest| { &mut m.view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInventoriesRequest| { &m.page_size }, - |m: &mut ListInventoriesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInventoriesRequest| { &m.page_token }, - |m: &mut ListInventoriesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListInventoriesRequest| { &m.filter }, - |m: &mut ListInventoriesRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInventoriesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInventoriesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInventoriesRequest::new) - } -} - -impl ::protobuf::Clear for ListInventoriesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.view = InventoryView::INVENTORY_VIEW_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInventoriesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInventoriesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInventoriesResponse { - // message fields - pub inventories: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInventoriesResponse { - fn default() -> &'a ListInventoriesResponse { - ::default_instance() - } -} - -impl ListInventoriesResponse { - pub fn new() -> ListInventoriesResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.Inventory inventories = 1; - - - pub fn get_inventories(&self) -> &[Inventory] { - &self.inventories - } - pub fn clear_inventories(&mut self) { - self.inventories.clear(); - } - - // Param is passed by value, moved - pub fn set_inventories(&mut self, v: ::protobuf::RepeatedField) { - self.inventories = v; - } - - // Mutable pointer to the field. - pub fn mut_inventories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventories - } - - // Take field - pub fn take_inventories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventories, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInventoriesResponse { - fn is_initialized(&self) -> bool { - for v in &self.inventories { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventories)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.inventories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.inventories { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInventoriesResponse { - ListInventoriesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventories", - |m: &ListInventoriesResponse| { &m.inventories }, - |m: &mut ListInventoriesResponse| { &mut m.inventories }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInventoriesResponse| { &m.next_page_token }, - |m: &mut ListInventoriesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInventoriesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInventoriesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInventoriesResponse::new) - } -} - -impl ::protobuf::Clear for ListInventoriesResponse { - fn clear(&mut self) { - self.inventories.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInventoriesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInventoriesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum InventoryView { - INVENTORY_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2, -} - -impl ::protobuf::ProtobufEnum for InventoryView { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(InventoryView::INVENTORY_VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(InventoryView::BASIC), - 2 => ::std::option::Option::Some(InventoryView::FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [InventoryView] = &[ - InventoryView::INVENTORY_VIEW_UNSPECIFIED, - InventoryView::BASIC, - InventoryView::FULL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("InventoryView", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for InventoryView { -} - -impl ::std::default::Default for InventoryView { - fn default() -> Self { - InventoryView::INVENTORY_VIEW_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for InventoryView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n-google/cloud/osconfig/v1alpha/inventory.proto\x12\x1dgoogle.cloud.osc\ - onfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/r\ - esource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/\ - date.proto\"\xd9\x1b\n\tInventory\x12\x17\n\x04name\x18\x03\x20\x01(\tR\ - \x04nameB\x03\xe0A\x03\x12M\n\x07os_info\x18\x01\x20\x01(\x0b2/.google.c\ - loud.osconfig.v1alpha.Inventory.OsInfoR\x06osInfoB\x03\xe0A\x03\x12N\n\ - \x05items\x18\x02\x20\x03(\x0b23.google.cloud.osconfig.v1alpha.Inventory\ - .ItemsEntryR\x05itemsB\x03\xe0A\x03\x12@\n\x0bupdate_time\x18\x04\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTimeB\x03\xe0A\x03\x1a\ - \xa2\x02\n\x06OsInfo\x12\x1a\n\x08hostname\x18\t\x20\x01(\tR\x08hostname\ - \x12\x1b\n\tlong_name\x18\x02\x20\x01(\tR\x08longName\x12\x1d\n\nshort_n\ - ame\x18\x03\x20\x01(\tR\tshortName\x12\x18\n\x07version\x18\x04\x20\x01(\ - \tR\x07version\x12\"\n\x0carchitecture\x18\x05\x20\x01(\tR\x0carchitectu\ - re\x12%\n\x0ekernel_version\x18\x06\x20\x01(\tR\rkernelVersion\x12%\n\ - \x0ekernel_release\x18\x07\x20\x01(\tR\rkernelRelease\x124\n\x16osconfig\ - _agent_version\x18\x08\x20\x01(\tR\x14osconfigAgentVersion\x1a\x9d\x05\n\ - \x04Item\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12Y\n\x0borigin_type\ - \x18\x02\x20\x01(\x0e28.google.cloud.osconfig.v1alpha.Inventory.Item.Ori\ - ginTypeR\noriginType\x12;\n\x0bcreate_time\x18\x08\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\t\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\nupdateTime\x12F\n\x04type\x18\x05\ - \x20\x01(\x0e22.google.cloud.osconfig.v1alpha.Inventory.Item.TypeR\x04ty\ - pe\x12g\n\x11installed_package\x18\x06\x20\x01(\x0b28.google.cloud.oscon\ - fig.v1alpha.Inventory.SoftwarePackageH\0R\x10installedPackage\x12g\n\x11\ - available_package\x18\x07\x20\x01(\x0b28.google.cloud.osconfig.v1alpha.I\ - nventory.SoftwarePackageH\0R\x10availablePackage\"?\n\nOriginType\x12\ - \x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\0\x12\x14\n\x10INVENTORY_REPORT\ - \x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x15\n\x11I\ - NSTALLED_PACKAGE\x10\x01\x12\x15\n\x11AVAILABLE_PACKAGE\x10\x02B\t\n\x07\ - details\x1a\x9a\x07\n\x0fSoftwarePackage\x12\\\n\x0byum_package\x18\x01\ - \x20\x01(\x0b29.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage\ - H\0R\nyumPackage\x12\\\n\x0bapt_package\x18\x02\x20\x01(\x0b29.google.cl\ - oud.osconfig.v1alpha.Inventory.VersionedPackageH\0R\naptPackage\x12b\n\ - \x0ezypper_package\x18\x03\x20\x01(\x0b29.google.cloud.osconfig.v1alpha.\ - Inventory.VersionedPackageH\0R\rzypperPackage\x12b\n\x0egooget_package\ - \x18\x04\x20\x01(\x0b29.google.cloud.osconfig.v1alpha.Inventory.Versione\ - dPackageH\0R\rgoogetPackage\x12Y\n\x0czypper_patch\x18\x05\x20\x01(\x0b2\ - 4.google.cloud.osconfig.v1alpha.Inventory.ZypperPatchH\0R\x0bzypperPatch\ - \x12`\n\x0bwua_package\x18\x06\x20\x01(\x0b2=.google.cloud.osconfig.v1al\ - pha.Inventory.WindowsUpdatePackageH\0R\nwuaPackage\x12m\n\x0bqfe_package\ - \x18\x07\x20\x01(\x0b2J.google.cloud.osconfig.v1alpha.Inventory.WindowsQ\ - uickFixEngineeringPackageH\0R\nqfePackage\x12\\\n\x0bcos_package\x18\x08\ - \x20\x01(\x0b29.google.cloud.osconfig.v1alpha.Inventory.VersionedPackage\ - H\0R\ncosPackage\x12n\n\x13windows_application\x18\t\x20\x01(\x0b2;.goog\ - le.cloud.osconfig.v1alpha.Inventory.WindowsApplicationH\0R\x12windowsApp\ - licationB\t\n\x07details\x1as\n\x10VersionedPackage\x12!\n\x0cpackage_na\ - me\x18\x04\x20\x01(\tR\x0bpackageName\x12\"\n\x0carchitecture\x18\x02\ - \x20\x01(\tR\x0carchitecture\x12\x18\n\x07version\x18\x03\x20\x01(\tR\ - \x07version\x1a~\n\x0bZypperPatch\x12\x1d\n\npatch_name\x18\x05\x20\x01(\ - \tR\tpatchName\x12\x1a\n\x08category\x18\x02\x20\x01(\tR\x08category\x12\ - \x1a\n\x08severity\x18\x03\x20\x01(\tR\x08severity\x12\x18\n\x07summary\ - \x18\x04\x20\x01(\tR\x07summary\x1a\x8e\x04\n\x14WindowsUpdatePackage\ - \x12\x14\n\x05title\x18\x01\x20\x01(\tR\x05title\x12\x20\n\x0bdescriptio\ - n\x18\x02\x20\x01(\tR\x0bdescription\x12s\n\ncategories\x18\x03\x20\x03(\ - \x0b2S.google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.Wind\ - owsUpdateCategoryR\ncategories\x12$\n\x0ekb_article_ids\x18\x04\x20\x03(\ - \tR\x0ckbArticleIds\x12\x1f\n\x0bsupport_url\x18\x0b\x20\x01(\tR\nsuppor\ - tUrl\x12$\n\x0emore_info_urls\x18\x05\x20\x03(\tR\x0cmoreInfoUrls\x12\ - \x1b\n\tupdate_id\x18\x06\x20\x01(\tR\x08updateId\x12'\n\x0frevision_num\ - ber\x18\x07\x20\x01(\x05R\x0erevisionNumber\x12Y\n\x1blast_deployment_ch\ - ange_time\x18\n\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x18lastDepl\ - oymentChangeTime\x1a;\n\x15WindowsUpdateCategory\x12\x0e\n\x02id\x18\x01\ - \x20\x01(\tR\x02id\x12\x12\n\x04name\x18\x02\x20\x01(\tR\x04name\x1a\xbc\ - \x01\n!WindowsQuickFixEngineeringPackage\x12\x18\n\x07caption\x18\x01\ - \x20\x01(\tR\x07caption\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0b\ - description\x12\x1c\n\nhot_fix_id\x18\x03\x20\x01(\tR\x08hotFixId\x12=\n\ - \x0cinstall_time\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x0binstallTime\x1a\xd1\x01\n\x12WindowsApplication\x12!\n\x0cdisplay_na\ - me\x18\x01\x20\x01(\tR\x0bdisplayName\x12'\n\x0fdisplay_version\x18\x02\ - \x20\x01(\tR\x0edisplayVersion\x12\x1c\n\tpublisher\x18\x03\x20\x01(\tR\ - \tpublisher\x124\n\x0cinstall_date\x18\x04\x20\x01(\x0b2\x11.google.type\ - .DateR\x0binstallDate\x12\x1b\n\thelp_link\x18\x05\x20\x01(\tR\x08helpLi\ - nk\x1ag\n\nItemsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12C\n\ - \x05value\x18\x02\x20\x01(\x0b2-.google.cloud.osconfig.v1alpha.Inventory\ - .ItemR\x05value:\x028\x01:n\xeaAk\n!osconfig.googleapis.com/Inventory\ - \x12Fprojects/{project}/locations/{location}/instances/{instance}/invent\ - ory\"\x96\x01\n\x13GetInventoryRequest\x12=\n\x04name\x18\x01\x20\x01(\t\ - R\x04nameB)\xfaA#\n!osconfig.googleapis.com/Inventory\xe0A\x02\x12@\n\ - \x04view\x18\x02\x20\x01(\x0e2,.google.cloud.osconfig.v1alpha.InventoryV\ - iewR\x04view\"\xef\x01\n\x16ListInventoriesRequest\x12?\n\x06parent\x18\ - \x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fcompute.googleapis.com/Instance\ - \xe0A\x02\x12@\n\x04view\x18\x02\x20\x01(\x0e2,.google.cloud.osconfig.v1\ - alpha.InventoryViewR\x04view\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\ - \x08pageSize\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\x12\ - \x16\n\x06filter\x18\x05\x20\x01(\tR\x06filter\"\x8d\x01\n\x17ListInvent\ - oriesResponse\x12J\n\x0binventories\x18\x01\x20\x03(\x0b2(.google.cloud.\ - osconfig.v1alpha.InventoryR\x0binventories\x12&\n\x0fnext_page_token\x18\ - \x02\x20\x01(\tR\rnextPageToken*D\n\rInventoryView\x12\x1e\n\x1aINVENTOR\ - Y_VIEW_UNSPECIFIED\x10\0\x12\t\n\x05BASIC\x10\x01\x12\x08\n\x04FULL\x10\ - \x02B\xd4\x01\n!com.google.cloud.osconfig.v1alphaB\x0bInventoriesP\x01Z=\ - cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\ - \x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1\ - alpha\xea\x02\x20Google::Cloud::OsConfig::V1alphaJ\xcem\n\x07\x12\x05\ - \x0e\0\xfe\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Cop\ - yright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apach\ - e\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ - \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ - the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ - icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ - SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ - eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0&\n\t\ - \n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\ - \x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0\x20\n\x08\n\x01\ - \x08\x12\x03\x17\0:\n\t\n\x02\x08%\x12\x03\x17\0:\n\x08\n\x01\x08\x12\ - \x03\x18\0T\n\t\n\x02\x08\x0b\x12\x03\x18\0T\n\x08\n\x01\x08\x12\x03\x19\ - \0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0,\n\t\ - \n\x02\x08\x08\x12\x03\x1a\0,\n\x08\n\x01\x08\x12\x03\x1b\0:\n\t\n\x02\ - \x08\x01\x12\x03\x1b\0:\n\x08\n\x01\x08\x12\x03\x1c\0:\n\t\n\x02\x08)\ - \x12\x03\x1c\0:\n\x08\n\x01\x08\x12\x03\x1d\09\n\t\n\x02\x08-\x12\x03\ - \x1d\09\n\x80\x04\n\x02\x04\0\x12\x05)\0\xb1\x02\x01\x1a\xfd\x02\x20This\ - \x20API\x20resource\x20represents\x20the\x20available\x20inventory\x20da\ - ta\x20for\x20a\n\x20Compute\x20Engine\x20virtual\x20machine\x20(VM)\x20i\ - nstance\x20at\x20a\x20given\x20point\x20in\x20time.\n\n\x20You\x20can\ - \x20use\x20this\x20API\x20resource\x20to\x20determine\x20the\x20inventor\ - y\x20data\x20of\x20your\x20VM.\n\n\x20For\x20more\x20information,\x20see\ - \x20[Information\x20provided\x20by\x20OS\x20inventory\n\x20management](h\ - ttps://cloud.google.com/compute/docs/instances/os-inventory-management#d\ - ata-collected).\n2s\x20OS\x20Inventory\x20is\x20a\x20service\x20for\x20c\ - ollecting\x20and\x20reporting\x20operating\n\x20system\x20and\x20package\ - \x20information\x20on\x20VM\x20instances.\n\n\n\n\x03\x04\0\x01\x12\x03)\ - \x08\x11\n\x0b\n\x03\x04\0\x07\x12\x04*\x02-\x04\n\r\n\x05\x04\0\x07\x9d\ - \x08\x12\x04*\x02-\x04\n8\n\x04\x04\0\x03\0\x12\x040\x02K\x03\x1a*\x20Op\ - erating\x20system\x20information\x20for\x20the\x20VM.\n\n\x0c\n\x05\x04\ - \0\x03\0\x01\x12\x030\n\x10\n!\n\x06\x04\0\x03\0\x02\0\x12\x032\x04\x18\ - \x1a\x12\x20The\x20VM\x20hostname.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\ - \x12\x032\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x032\x0b\x13\n\x0e\ - \n\x07\x04\0\x03\0\x02\0\x03\x12\x032\x16\x17\n\x81\x01\n\x06\x04\0\x03\ - \0\x02\x01\x12\x037\x04\x19\x1ar\x20The\x20operating\x20system\x20long\ - \x20name.\n\x20For\x20example\x20'Debian\x20GNU/Linux\x209'\x20or\x20'Mi\ - crosoft\x20Window\x20Server\x202019\n\x20Datacenter'.\n\n\x0e\n\x07\x04\ - \0\x03\0\x02\x01\x05\x12\x037\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\ - \x12\x037\x0b\x14\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x037\x17\x18\n\ - V\n\x06\x04\0\x03\0\x02\x02\x12\x03;\x04\x1a\x1aG\x20The\x20operating\ - \x20system\x20short\x20name.\n\x20For\x20example,\x20'windows'\x20or\x20\ - 'debian'.\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\x03;\x04\n\n\x0e\n\ - \x07\x04\0\x03\0\x02\x02\x01\x12\x03;\x0b\x15\n\x0e\n\x07\x04\0\x03\0\ - \x02\x02\x03\x12\x03;\x18\x19\n5\n\x06\x04\0\x03\0\x02\x03\x12\x03>\x04\ - \x17\x1a&\x20The\x20version\x20of\x20the\x20operating\x20system.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x03\x05\x12\x03>\x04\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x03\x01\x12\x03>\x0b\x12\n\x0e\n\x07\x04\0\x03\0\x02\x03\x03\x12\ - \x03>\x15\x16\nA\n\x06\x04\0\x03\0\x02\x04\x12\x03A\x04\x1c\x1a2\x20The\ - \x20system\x20architecture\x20of\x20the\x20operating\x20system.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x04\x05\x12\x03A\x04\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x04\x01\x12\x03A\x0b\x17\n\x0e\n\x07\x04\0\x03\0\x02\x04\x03\x12\ - \x03A\x1a\x1b\n<\n\x06\x04\0\x03\0\x02\x05\x12\x03D\x04\x1e\x1a-\x20The\ - \x20kernel\x20version\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\ - \x04\0\x03\0\x02\x05\x05\x12\x03D\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x05\ - \x01\x12\x03D\x0b\x19\n\x0e\n\x07\x04\0\x03\0\x02\x05\x03\x12\x03D\x1c\ - \x1d\n<\n\x06\x04\0\x03\0\x02\x06\x12\x03G\x04\x1e\x1a-\x20The\x20kernel\ - \x20release\x20of\x20the\x20operating\x20system.\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x06\x05\x12\x03G\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\x06\x01\x12\ - \x03G\x0b\x19\n\x0e\n\x07\x04\0\x03\0\x02\x06\x03\x12\x03G\x1c\x1d\nN\n\ - \x06\x04\0\x03\0\x02\x07\x12\x03J\x04&\x1a?\x20The\x20current\x20version\ - \x20of\x20the\x20OS\x20Config\x20agent\x20running\x20on\x20the\x20VM.\n\ - \n\x0e\n\x07\x04\0\x03\0\x02\x07\x05\x12\x03J\x04\n\n\x0e\n\x07\x04\0\ - \x03\0\x02\x07\x01\x12\x03J\x0b!\n\x0e\n\x07\x04\0\x03\0\x02\x07\x03\x12\ - \x03J$%\n4\n\x04\x04\0\x03\x01\x12\x04N\x02|\x03\x1a&\x20A\x20single\x20\ - piece\x20of\x20inventory\x20on\x20a\x20VM.\n\n\x0c\n\x05\x04\0\x03\x01\ - \x01\x12\x03N\n\x0e\n:\n\x06\x04\0\x03\x01\x04\0\x12\x04P\x04W\x05\x1a*\ - \x20The\x20origin\x20of\x20a\x20specific\x20inventory\x20item.\n\n\x0e\n\ - \x07\x04\0\x03\x01\x04\0\x01\x12\x03P\t\x13\n=\n\x08\x04\0\x03\x01\x04\0\ - \x02\0\x12\x03R\x06\"\x1a,\x20Invalid.\x20An\x20origin\x20type\x20must\ - \x20be\x20specified.\n\n\x10\n\t\x04\0\x03\x01\x04\0\x02\0\x01\x12\x03R\ - \x06\x1d\n\x10\n\t\x04\0\x03\x01\x04\0\x02\0\x02\x12\x03R\x20!\n|\n\x08\ - \x04\0\x03\x01\x04\0\x02\x01\x12\x03V\x06\x1b\x1ak\x20This\x20inventory\ - \x20item\x20was\x20discovered\x20as\x20the\x20result\x20of\x20the\x20age\ - nt\n\x20reporting\x20inventory\x20via\x20the\x20reporting\x20API.\n\n\ - \x10\n\t\x04\0\x03\x01\x04\0\x02\x01\x01\x12\x03V\x06\x16\n\x10\n\t\x04\ - \0\x03\x01\x04\0\x02\x01\x02\x12\x03V\x19\x1a\nL\n\x06\x04\0\x03\x01\x04\ - \x01\x12\x04Z\x04c\x05\x1a<\x20The\x20different\x20types\x20of\x20invent\ - ory\x20that\x20are\x20tracked\x20on\x20a\x20VM.\n\n\x0e\n\x07\x04\0\x03\ - \x01\x04\x01\x01\x12\x03Z\t\r\n6\n\x08\x04\0\x03\x01\x04\x01\x02\0\x12\ - \x03\\\x06\x1b\x1a%\x20Invalid.\x20An\x20type\x20must\x20be\x20specified\ - .\n\n\x10\n\t\x04\0\x03\x01\x04\x01\x02\0\x01\x12\x03\\\x06\x16\n\x10\n\ - \t\x04\0\x03\x01\x04\x01\x02\0\x02\x12\x03\\\x19\x1a\nI\n\x08\x04\0\x03\ - \x01\x04\x01\x02\x01\x12\x03_\x06\x1c\x1a8\x20This\x20represents\x20a\ - \x20package\x20that\x20is\x20installed\x20on\x20the\x20VM.\n\n\x10\n\t\ - \x04\0\x03\x01\x04\x01\x02\x01\x01\x12\x03_\x06\x17\n\x10\n\t\x04\0\x03\ - \x01\x04\x01\x02\x01\x02\x12\x03_\x1a\x1b\nM\n\x08\x04\0\x03\x01\x04\x01\ - \x02\x02\x12\x03b\x06\x1c\x1a<\x20This\x20represents\x20an\x20update\x20\ - that\x20is\x20available\x20for\x20a\x20package.\n\n\x10\n\t\x04\0\x03\ - \x01\x04\x01\x02\x02\x01\x12\x03b\x06\x17\n\x10\n\t\x04\0\x03\x01\x04\ - \x01\x02\x02\x02\x12\x03b\x1a\x1b\nK\n\x06\x04\0\x03\x01\x02\0\x12\x03f\ - \x04\x12\x1a<\x20Identifier\x20for\x20this\x20item,\x20unique\x20across\ - \x20items\x20for\x20this\x20VM.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\ - \x12\x03f\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03f\x0b\r\n\x0e\ - \n\x07\x04\0\x03\x01\x02\0\x03\x12\x03f\x10\x11\n3\n\x06\x04\0\x03\x01\ - \x02\x01\x12\x03i\x04\x1f\x1a$\x20The\x20origin\x20of\x20this\x20invento\ - ry\x20item.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x03i\x04\x0e\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03i\x0f\x1a\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x01\x03\x12\x03i\x1d\x1e\n=\n\x06\x04\0\x03\x01\x02\x02\x12\ - \x03l\x04.\x1a.\x20When\x20this\x20inventory\x20item\x20was\x20first\x20\ - detected.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x06\x12\x03l\x04\x1d\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x02\x01\x12\x03l\x1e)\n\x0e\n\x07\x04\0\x03\x01\ - \x02\x02\x03\x12\x03l,-\n<\n\x06\x04\0\x03\x01\x02\x03\x12\x03o\x04.\x1a\ - -\x20When\x20this\x20inventory\x20item\x20was\x20last\x20modified.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x03\x06\x12\x03o\x04\x1d\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x03\x01\x12\x03o\x1e)\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x03\ - \x12\x03o,-\nU\n\x06\x04\0\x03\x01\x02\x04\x12\x03r\x04\x12\x1aF\x20The\ - \x20specific\x20type\x20of\x20inventory,\x20correlating\x20to\x20its\x20\ - specific\x20details.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x06\x12\x03r\ - \x04\x08\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x01\x12\x03r\t\r\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x04\x03\x12\x03r\x10\x11\nL\n\x06\x04\0\x03\x01\x08\0\ - \x12\x04u\x04{\x05\x1a<\x20Specific\x20details\x20of\x20this\x20inventor\ - y\x20item\x20based\x20on\x20its\x20type.\n\n\x0e\n\x07\x04\0\x03\x01\x08\ - \0\x01\x12\x03u\n\x11\n=\n\x06\x04\0\x03\x01\x02\x05\x12\x03w\x06,\x1a.\ - \x20Software\x20package\x20present\x20on\x20the\x20VM\x20instance.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x05\x06\x12\x03w\x06\x15\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x05\x01\x12\x03w\x16'\n\x0e\n\x07\x04\0\x03\x01\x02\x05\x03\ - \x12\x03w*+\nO\n\x06\x04\0\x03\x01\x02\x06\x12\x03z\x06,\x1a@\x20Softwar\ - e\x20package\x20available\x20to\x20be\x20installed\x20on\x20the\x20VM\ - \x20instance.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x06\x06\x12\x03z\x06\x15\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x06\x01\x12\x03z\x16'\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x06\x03\x12\x03z*+\nF\n\x04\x04\0\x03\x02\x12\x05\x7f\x02\xac\ - \x01\x03\x1a7\x20Software\x20package\x20information\x20of\x20the\x20oper\ - ating\x20system.\n\n\x0c\n\x05\x04\0\x03\x02\x01\x12\x03\x7f\n\x19\nO\n\ - \x06\x04\0\x03\x02\x08\0\x12\x06\x81\x01\x04\xab\x01\x05\x1a=\x20Informa\ - tion\x20about\x20the\x20different\x20types\x20of\x20software\x20packages\ - .\n\n\x0f\n\x07\x04\0\x03\x02\x08\0\x01\x12\x04\x81\x01\n\x11\n\xbc\x01\ - \n\x06\x04\0\x03\x02\x02\0\x12\x04\x85\x01\x06'\x1a\xab\x01\x20Yum\x20pa\ - ckage\x20info.\n\x20For\x20details\x20about\x20the\x20yum\x20package\x20\ - manager,\x20see\n\x20https://access.redhat.com/documentation/en-us/red_h\ - at_enterprise_linux/6/html/deployment_guide/ch-yum.\n\n\x0f\n\x07\x04\0\ - \x03\x02\x02\0\x06\x12\x04\x85\x01\x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\ - \0\x01\x12\x04\x85\x01\x17\"\n\x0f\n\x07\x04\0\x03\x02\x02\0\x03\x12\x04\ - \x85\x01%&\nz\n\x06\x04\0\x03\x02\x02\x01\x12\x04\x8a\x01\x06'\x1aj\x20D\ - etails\x20of\x20an\x20APT\x20package.\n\x20For\x20details\x20about\x20th\ - e\x20apt\x20package\x20manager,\x20see\n\x20https://wiki.debian.org/Apt.\ - \n\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x06\x12\x04\x8a\x01\x06\x16\n\x0f\n\ - \x07\x04\0\x03\x02\x02\x01\x01\x12\x04\x8a\x01\x17\"\n\x0f\n\x07\x04\0\ - \x03\x02\x02\x01\x03\x12\x04\x8a\x01%&\n\x8d\x01\n\x06\x04\0\x03\x02\x02\ - \x02\x12\x04\x8f\x01\x06*\x1a}\x20Details\x20of\x20a\x20Zypper\x20packag\ - e.\n\x20For\x20details\x20about\x20the\x20Zypper\x20package\x20manager,\ - \x20see\n\x20https://en.opensuse.org/SDB:Zypper_manual.\n\n\x0f\n\x07\ - \x04\0\x03\x02\x02\x02\x06\x12\x04\x8f\x01\x06\x16\n\x0f\n\x07\x04\0\x03\ - \x02\x02\x02\x01\x12\x04\x8f\x01\x17%\n\x0f\n\x07\x04\0\x03\x02\x02\x02\ - \x03\x12\x04\x8f\x01()\n\x86\x01\n\x06\x04\0\x03\x02\x02\x03\x12\x04\x94\ - \x01\x06*\x1av\x20Details\x20of\x20a\x20Googet\x20package.\n\x20\x20For\ - \x20details\x20about\x20the\x20googet\x20package\x20manager,\x20see\n\ - \x20\x20https://github.com/google/googet.\n\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x03\x06\x12\x04\x94\x01\x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\x03\ - \x01\x12\x04\x94\x01\x17%\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\ - \x94\x01()\n\x8b\x01\n\x06\x04\0\x03\x02\x02\x04\x12\x04\x99\x01\x06#\ - \x1a{\x20Details\x20of\x20a\x20Zypper\x20patch.\n\x20For\x20details\x20a\ - bout\x20the\x20Zypper\x20package\x20manager,\x20see\n\x20https://en.open\ - suse.org/SDB:Zypper_manual.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\x12\ - \x04\x99\x01\x06\x11\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\x99\ - \x01\x12\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\x99\x01!\"\n\ - \x9c\x01\n\x06\x04\0\x03\x02\x02\x05\x12\x04\x9e\x01\x06+\x1a\x8b\x01\ - \x20Details\x20of\x20a\x20Windows\x20Update\x20package.\n\x20See\x20http\ - s://docs.microsoft.com/en-us/windows/win32/api/_wua/\x20for\n\x20informa\ - tion\x20about\x20Windows\x20Update.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x05\ - \x06\x12\x04\x9e\x01\x06\x1a\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x01\x12\ - \x04\x9e\x01\x1b&\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\x12\x04\x9e\x01)\ - *\n\xce\x01\n\x06\x04\0\x03\x02\x02\x06\x12\x04\xa4\x01\x068\x1a\xbd\x01\ - \x20Details\x20of\x20a\x20Windows\x20Quick\x20Fix\x20engineering\x20pack\ - age.\n\x20See\n\x20https://docs.microsoft.com/en-us/windows/win32/cimwin\ - 32prov/win32-quickfixengineering\n\x20for\x20info\x20in\x20Windows\x20Qu\ - ick\x20Fix\x20Engineering.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x06\x12\ - \x04\xa4\x01\x06'\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x01\x12\x04\xa4\x01(\ - 3\n\x0f\n\x07\x04\0\x03\x02\x02\x06\x03\x12\x04\xa4\x0167\n+\n\x06\x04\0\ - \x03\x02\x02\x07\x12\x04\xa7\x01\x06'\x1a\x1b\x20Details\x20of\x20a\x20C\ - OS\x20package.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x07\x06\x12\x04\xa7\x01\ - \x06\x16\n\x0f\n\x07\x04\0\x03\x02\x02\x07\x01\x12\x04\xa7\x01\x17\"\n\ - \x0f\n\x07\x04\0\x03\x02\x02\x07\x03\x12\x04\xa7\x01%&\n1\n\x06\x04\0\ - \x03\x02\x02\x08\x12\x04\xaa\x01\x061\x1a!\x20Details\x20of\x20Windows\ - \x20Application.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x08\x06\x12\x04\xaa\x01\ - \x06\x18\n\x0f\n\x07\x04\0\x03\x02\x02\x08\x01\x12\x04\xaa\x01\x19,\n\ - \x0f\n\x07\x04\0\x03\x02\x02\x08\x03\x12\x04\xaa\x01/0\n\x9b\x01\n\x04\ - \x04\0\x03\x03\x12\x06\xb0\x01\x02\xb9\x01\x03\x1a\x8a\x01\x20Informatio\ - n\x20related\x20to\x20the\x20a\x20standard\x20versioned\x20package.\x20\ - \x20This\x20includes\n\x20package\x20info\x20for\x20APT,\x20Yum,\x20Zypp\ - er,\x20and\x20Googet\x20package\x20managers.\n\n\r\n\x05\x04\0\x03\x03\ - \x01\x12\x04\xb0\x01\n\x1a\n*\n\x06\x04\0\x03\x03\x02\0\x12\x04\xb2\x01\ - \x04\x1c\x1a\x1a\x20The\x20name\x20of\x20the\x20package.\n\n\x0f\n\x07\ - \x04\0\x03\x03\x02\0\x05\x12\x04\xb2\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\ - \x02\0\x01\x12\x04\xb2\x01\x0b\x17\n\x0f\n\x07\x04\0\x03\x03\x02\0\x03\ - \x12\x04\xb2\x01\x1a\x1b\nG\n\x06\x04\0\x03\x03\x02\x01\x12\x04\xb5\x01\ - \x04\x1c\x1a7\x20The\x20system\x20architecture\x20this\x20package\x20is\ - \x20intended\x20for.\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x05\x12\x04\xb5\ - \x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x01\x12\x04\xb5\x01\x0b\x17\ - \n\x0f\n\x07\x04\0\x03\x03\x02\x01\x03\x12\x04\xb5\x01\x1a\x1b\n-\n\x06\ - \x04\0\x03\x03\x02\x02\x12\x04\xb8\x01\x04\x17\x1a\x1d\x20The\x20version\ - \x20of\x20the\x20package.\n\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x05\x12\ - \x04\xb8\x01\x04\n\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x01\x12\x04\xb8\x01\ - \x0b\x12\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x03\x12\x04\xb8\x01\x15\x16\n\ - 4\n\x04\x04\0\x03\x04\x12\x06\xbc\x01\x02\xc8\x01\x03\x1a$\x20Details\ - \x20related\x20to\x20a\x20Zypper\x20Patch.\n\n\r\n\x05\x04\0\x03\x04\x01\ - \x12\x04\xbc\x01\n\x15\n(\n\x06\x04\0\x03\x04\x02\0\x12\x04\xbe\x01\x04\ - \x1a\x1a\x18\x20The\x20name\x20of\x20the\x20patch.\n\n\x0f\n\x07\x04\0\ - \x03\x04\x02\0\x05\x12\x04\xbe\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\0\ - \x01\x12\x04\xbe\x01\x0b\x15\n\x0f\n\x07\x04\0\x03\x04\x02\0\x03\x12\x04\ - \xbe\x01\x18\x19\n,\n\x06\x04\0\x03\x04\x02\x01\x12\x04\xc1\x01\x04\x18\ - \x1a\x1c\x20The\x20category\x20of\x20the\x20patch.\n\n\x0f\n\x07\x04\0\ - \x03\x04\x02\x01\x05\x12\x04\xc1\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\ - \x01\x01\x12\x04\xc1\x01\x0b\x13\n\x0f\n\x07\x04\0\x03\x04\x02\x01\x03\ - \x12\x04\xc1\x01\x16\x17\n7\n\x06\x04\0\x03\x04\x02\x02\x12\x04\xc4\x01\ - \x04\x18\x1a'\x20The\x20severity\x20specified\x20for\x20this\x20patch\n\ - \n\x0f\n\x07\x04\0\x03\x04\x02\x02\x05\x12\x04\xc4\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x04\x02\x02\x01\x12\x04\xc4\x01\x0b\x13\n\x0f\n\x07\x04\0\x03\ - \x04\x02\x02\x03\x12\x04\xc4\x01\x16\x17\nD\n\x06\x04\0\x03\x04\x02\x03\ - \x12\x04\xc7\x01\x04\x17\x1a4\x20Any\x20summary\x20information\x20provid\ - ed\x20about\x20this\x20patch.\n\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x05\ - \x12\x04\xc7\x01\x04\n\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x01\x12\x04\xc7\ - \x01\x0b\x12\n\x0f\n\x07\x04\0\x03\x04\x02\x03\x03\x12\x04\xc7\x01\x15\ - \x16\n\xb0\x02\n\x04\x04\0\x03\x05\x12\x06\xcf\x01\x02\xf6\x01\x03\x1a\ - \x9f\x02\x20Details\x20related\x20to\x20a\x20Windows\x20Update\x20packag\ - e.\n\x20Field\x20data\x20and\x20names\x20are\x20taken\x20from\x20Windows\ - \x20Update\x20API\x20IUpdate\x20Interface:\n\x20https://docs.microsoft.c\ - om/en-us/windows/win32/api/_wua/\n\x20Descriptive\x20fields\x20like\x20t\ - itle,\x20and\x20description\x20are\x20localized\x20based\x20on\n\x20the\ - \x20locale\x20of\x20the\x20VM\x20being\x20updated.\n\n\r\n\x05\x04\0\x03\ - \x05\x01\x12\x04\xcf\x01\n\x1e\n?\n\x06\x04\0\x03\x05\x03\0\x12\x06\xd1\ - \x01\x04\xd7\x01\x05\x1a-\x20Categories\x20specified\x20by\x20the\x20Win\ - dows\x20Update.\n\n\x0f\n\x07\x04\0\x03\x05\x03\0\x01\x12\x04\xd1\x01\ - \x0c!\nB\n\x08\x04\0\x03\x05\x03\0\x02\0\x12\x04\xd3\x01\x06\x14\x1a0\ - \x20The\x20identifier\x20of\x20the\x20windows\x20update\x20category.\n\n\ - \x11\n\t\x04\0\x03\x05\x03\0\x02\0\x05\x12\x04\xd3\x01\x06\x0c\n\x11\n\t\ - \x04\0\x03\x05\x03\0\x02\0\x01\x12\x04\xd3\x01\r\x0f\n\x11\n\t\x04\0\x03\ - \x05\x03\0\x02\0\x03\x12\x04\xd3\x01\x12\x13\n<\n\x08\x04\0\x03\x05\x03\ - \0\x02\x01\x12\x04\xd6\x01\x06\x16\x1a*\x20The\x20name\x20of\x20the\x20w\ - indows\x20update\x20category.\n\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\ - \x05\x12\x04\xd6\x01\x06\x0c\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\x01\ - \x12\x04\xd6\x01\r\x11\n\x11\n\t\x04\0\x03\x05\x03\0\x02\x01\x03\x12\x04\ - \xd6\x01\x14\x15\n<\n\x06\x04\0\x03\x05\x02\0\x12\x04\xda\x01\x04\x15\ - \x1a,\x20The\x20localized\x20title\x20of\x20the\x20update\x20package.\n\ - \n\x0f\n\x07\x04\0\x03\x05\x02\0\x05\x12\x04\xda\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x05\x02\0\x01\x12\x04\xda\x01\x0b\x10\n\x0f\n\x07\x04\0\x03\ - \x05\x02\0\x03\x12\x04\xda\x01\x13\x14\nB\n\x06\x04\0\x03\x05\x02\x01\ - \x12\x04\xdd\x01\x04\x1b\x1a2\x20The\x20localized\x20description\x20of\ - \x20the\x20update\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x05\ - \x12\x04\xdd\x01\x04\n\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x01\x12\x04\xdd\ - \x01\x0b\x16\n\x0f\n\x07\x04\0\x03\x05\x02\x01\x03\x12\x04\xdd\x01\x19\ - \x1a\nN\n\x06\x04\0\x03\x05\x02\x02\x12\x04\xe0\x01\x042\x1a>\x20The\x20\ - categories\x20that\x20are\x20associated\x20with\x20this\x20update\x20pac\ - kage.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x02\x04\x12\x04\xe0\x01\x04\x0c\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x02\x06\x12\x04\xe0\x01\r\"\n\x0f\n\x07\x04\ - \0\x03\x05\x02\x02\x01\x12\x04\xe0\x01#-\n\x0f\n\x07\x04\0\x03\x05\x02\ - \x02\x03\x12\x04\xe0\x0101\nt\n\x06\x04\0\x03\x05\x02\x03\x12\x04\xe4\ - \x01\x04'\x1ad\x20A\x20collection\x20of\x20Microsoft\x20Knowledge\x20Bas\ - e\x20article\x20IDs\x20that\x20are\x20associated\n\x20with\x20the\x20upd\ - ate\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x04\x12\x04\xe4\x01\ - \x04\x0c\n\x0f\n\x07\x04\0\x03\x05\x02\x03\x05\x12\x04\xe4\x01\r\x13\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x03\x01\x12\x04\xe4\x01\x14\"\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x03\x03\x12\x04\xe4\x01%&\nZ\n\x06\x04\0\x03\x05\x02\ - \x04\x12\x04\xe7\x01\x04\x1c\x1aJ\x20A\x20hyperlink\x20to\x20the\x20lang\ - uage-specific\x20support\x20information\x20for\x20the\x20update.\n\n\x0f\ - \n\x07\x04\0\x03\x05\x02\x04\x05\x12\x04\xe7\x01\x04\n\n\x0f\n\x07\x04\0\ - \x03\x05\x02\x04\x01\x12\x04\xe7\x01\x0b\x16\n\x0f\n\x07\x04\0\x03\x05\ - \x02\x04\x03\x12\x04\xe7\x01\x19\x1b\n_\n\x06\x04\0\x03\x05\x02\x05\x12\ - \x04\xeb\x01\x04'\x1aO\x20A\x20collection\x20of\x20URLs\x20that\x20provi\ - de\x20more\x20information\x20about\x20the\x20update\n\x20package.\n\n\ - \x0f\n\x07\x04\0\x03\x05\x02\x05\x04\x12\x04\xeb\x01\x04\x0c\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x05\x05\x12\x04\xeb\x01\r\x13\n\x0f\n\x07\x04\0\x03\ - \x05\x02\x05\x01\x12\x04\xeb\x01\x14\"\n\x0f\n\x07\x04\0\x03\x05\x02\x05\ - \x03\x12\x04\xeb\x01%&\n^\n\x06\x04\0\x03\x05\x02\x06\x12\x04\xef\x01\ - \x04\x19\x1aN\x20Gets\x20the\x20identifier\x20of\x20an\x20update\x20pack\ - age.\x20\x20Stays\x20the\x20same\x20across\n\x20revisions.\n\n\x0f\n\x07\ - \x04\0\x03\x05\x02\x06\x05\x12\x04\xef\x01\x04\n\n\x0f\n\x07\x04\0\x03\ - \x05\x02\x06\x01\x12\x04\xef\x01\x0b\x14\n\x0f\n\x07\x04\0\x03\x05\x02\ - \x06\x03\x12\x04\xef\x01\x17\x18\n=\n\x06\x04\0\x03\x05\x02\x07\x12\x04\ - \xf2\x01\x04\x1e\x1a-\x20The\x20revision\x20number\x20of\x20this\x20upda\ - te\x20package.\n\n\x0f\n\x07\x04\0\x03\x05\x02\x07\x05\x12\x04\xf2\x01\ - \x04\t\n\x0f\n\x07\x04\0\x03\x05\x02\x07\x01\x12\x04\xf2\x01\n\x19\n\x0f\ - \n\x07\x04\0\x03\x05\x02\x07\x03\x12\x04\xf2\x01\x1c\x1d\nP\n\x06\x04\0\ - \x03\x05\x02\x08\x12\x04\xf5\x01\x04?\x1a@\x20The\x20last\x20published\ - \x20date\x20of\x20the\x20update,\x20in\x20(UTC)\x20date\x20and\x20time.\ - \n\n\x0f\n\x07\x04\0\x03\x05\x02\x08\x06\x12\x04\xf5\x01\x04\x1d\n\x0f\n\ - \x07\x04\0\x03\x05\x02\x08\x01\x12\x04\xf5\x01\x1e9\n\x0f\n\x07\x04\0\ - \x03\x05\x02\x08\x03\x12\x04\xf5\x01<>\n\xfb\x01\n\x04\x04\0\x03\x06\x12\ - \x06\xfc\x01\x02\x88\x02\x03\x1a\xea\x01\x20Information\x20related\x20to\ - \x20a\x20Quick\x20Fix\x20Engineering\x20package.\n\x20Fields\x20are\x20t\ - aken\x20from\x20Windows\x20QuickFixEngineering\x20Interface\x20and\x20ma\ - tch\n\x20the\x20source\x20names:\n\x20https://docs.microsoft.com/en-us/w\ - indows/win32/cimwin32prov/win32-quickfixengineering\n\n\r\n\x05\x04\0\ - \x03\x06\x01\x12\x04\xfc\x01\n+\n@\n\x06\x04\0\x03\x06\x02\0\x12\x04\xfe\ - \x01\x04\x17\x1a0\x20A\x20short\x20textual\x20description\x20of\x20the\ - \x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\0\x05\x12\x04\xfe\x01\ - \x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\0\x01\x12\x04\xfe\x01\x0b\x12\n\x0f\ - \n\x07\x04\0\x03\x06\x02\0\x03\x12\x04\xfe\x01\x15\x16\n:\n\x06\x04\0\ - \x03\x06\x02\x01\x12\x04\x81\x02\x04\x1b\x1a*\x20A\x20textual\x20descrip\ - tion\x20of\x20the\x20QFE\x20update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x01\ - \x05\x12\x04\x81\x02\x04\n\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x01\x12\x04\ - \x81\x02\x0b\x16\n\x0f\n\x07\x04\0\x03\x06\x02\x01\x03\x12\x04\x81\x02\ - \x19\x1a\nL\n\x06\x04\0\x03\x06\x02\x02\x12\x04\x84\x02\x04\x1a\x1a<\x20\ - Unique\x20identifier\x20associated\x20with\x20a\x20particular\x20QFE\x20\ - update.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x02\x05\x12\x04\x84\x02\x04\n\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x02\x01\x12\x04\x84\x02\x0b\x15\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x02\x03\x12\x04\x84\x02\x18\x19\nZ\n\x06\x04\0\x03\ - \x06\x02\x03\x12\x04\x87\x02\x04/\x1aJ\x20Date\x20that\x20the\x20QFE\x20\ - update\x20was\x20installed.\x20\x20Mapped\x20from\x20installed_on\x20fie\ - ld.\n\n\x0f\n\x07\x04\0\x03\x06\x02\x03\x06\x12\x04\x87\x02\x04\x1d\n\ - \x0f\n\x07\x04\0\x03\x06\x02\x03\x01\x12\x04\x87\x02\x1e*\n\x0f\n\x07\ - \x04\0\x03\x06\x02\x03\x03\x12\x04\x87\x02-.\n\xea\x01\n\x04\x04\0\x03\ - \x07\x12\x06\x8d\x02\x02\x9e\x02\x03\x1a\xd9\x01\x20Contains\x20informat\ - ion\x20about\x20a\x20Windows\x20application\x20that\x20is\x20retrieved\ - \x20from\x20the\n\x20Windows\x20Registry.\x20For\x20more\x20information\ - \x20about\x20these\x20fields,\x20see:\n\x20https://docs.microsoft.com/en\ - -us/windows/win32/msi/uninstall-registry-key\n\n\r\n\x05\x04\0\x03\x07\ - \x01\x12\x04\x8d\x02\n\x1c\n9\n\x06\x04\0\x03\x07\x02\0\x12\x04\x8f\x02\ - \x04\x1c\x1a)\x20The\x20name\x20of\x20the\x20application\x20or\x20produc\ - t.\n\n\x0f\n\x07\x04\0\x03\x07\x02\0\x05\x12\x04\x8f\x02\x04\n\n\x0f\n\ - \x07\x04\0\x03\x07\x02\0\x01\x12\x04\x8f\x02\x0b\x17\n\x0f\n\x07\x04\0\ - \x03\x07\x02\0\x03\x12\x04\x8f\x02\x1a\x1b\nM\n\x06\x04\0\x03\x07\x02\ - \x01\x12\x04\x92\x02\x04\x1f\x1a=\x20The\x20version\x20of\x20the\x20prod\ - uct\x20or\x20application\x20in\x20string\x20format.\n\n\x0f\n\x07\x04\0\ - \x03\x07\x02\x01\x05\x12\x04\x92\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\ - \x01\x01\x12\x04\x92\x02\x0b\x1a\n\x0f\n\x07\x04\0\x03\x07\x02\x01\x03\ - \x12\x04\x92\x02\x1d\x1e\nN\n\x06\x04\0\x03\x07\x02\x02\x12\x04\x95\x02\ - \x04\x19\x1a>\x20The\x20name\x20of\x20the\x20manufacturer\x20for\x20the\ - \x20product\x20or\x20application.\n\n\x0f\n\x07\x04\0\x03\x07\x02\x02\ - \x05\x12\x04\x95\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\x02\x01\x12\x04\ - \x95\x02\x0b\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x02\x03\x12\x04\x95\x02\ - \x17\x18\n\xdb\x01\n\x06\x04\0\x03\x07\x02\x03\x12\x04\x9a\x02\x04&\x1a\ - \xca\x01\x20The\x20last\x20time\x20this\x20product\x20received\x20servic\ - e.\x20The\x20value\x20of\x20this\x20property\n\x20is\x20replaced\x20each\ - \x20time\x20a\x20patch\x20is\x20applied\x20or\x20removed\x20from\x20the\ - \x20product\x20or\n\x20the\x20command-line\x20option\x20is\x20used\x20to\ - \x20repair\x20the\x20product.\n\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x06\ - \x12\x04\x9a\x02\x04\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x01\x12\x04\ - \x9a\x02\x15!\n\x0f\n\x07\x04\0\x03\x07\x02\x03\x03\x12\x04\x9a\x02$%\n=\ - \n\x06\x04\0\x03\x07\x02\x04\x12\x04\x9d\x02\x04\x19\x1a-\x20The\x20inte\ - rnet\x20address\x20for\x20technical\x20support.\n\n\x0f\n\x07\x04\0\x03\ - \x07\x02\x04\x05\x12\x04\x9d\x02\x04\n\n\x0f\n\x07\x04\0\x03\x07\x02\x04\ - \x01\x12\x04\x9d\x02\x0b\x14\n\x0f\n\x07\x04\0\x03\x07\x02\x04\x03\x12\ - \x04\x9d\x02\x17\x18\n\x9e\x01\n\x04\x04\0\x02\0\x12\x04\xa4\x02\x02>\ - \x1a\x8f\x01\x20Output\x20only.\x20The\x20`Inventory`\x20API\x20resource\ - \x20name.\n\n\x20Format:\n\x20`projects/{project_number}/locations/{loca\ - tion}/instances/{instance_id}/inventory`\n\n\r\n\x05\x04\0\x02\0\x05\x12\ - \x04\xa4\x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa4\x02\t\r\n\r\n\ - \x05\x04\0\x02\0\x03\x12\x04\xa4\x02\x10\x11\n\r\n\x05\x04\0\x02\0\x08\ - \x12\x04\xa4\x02\x12=\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xa4\ - \x02\x13<\nP\n\x04\x04\0\x02\x01\x12\x04\xa7\x02\x02A\x1aB\x20Output\x20\ - only.\x20Base\x20level\x20operating\x20system\x20information\x20for\x20t\ - he\x20VM.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xa7\x02\x02\x08\n\r\n\ - \x05\x04\0\x02\x01\x01\x12\x04\xa7\x02\t\x10\n\r\n\x05\x04\0\x02\x01\x03\ - \x12\x04\xa7\x02\x13\x14\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xa7\x02\x15\ - @\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xa7\x02\x16?\n\xff\x01\ - \n\x04\x04\0\x02\x02\x12\x04\xad\x02\x02J\x1a\xf0\x01\x20Output\x20only.\ - \x20Inventory\x20items\x20related\x20to\x20the\x20VM\x20keyed\x20by\x20a\ - n\x20opaque\x20unique\x20identifier\x20for\n\x20each\x20inventory\x20ite\ - m.\x20The\x20identifier\x20is\x20unique\x20to\x20each\x20distinct\x20and\ - \n\x20addressable\x20inventory\x20item\x20and\x20will\x20change,\x20when\ - \x20there\x20is\x20a\x20new\x20package\n\x20version.\n\n\r\n\x05\x04\0\ - \x02\x02\x06\x12\x04\xad\x02\x02\x13\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\ - \xad\x02\x14\x19\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xad\x02\x1c\x1d\n\r\ - \n\x05\x04\0\x02\x02\x08\x12\x04\xad\x02\x1eI\n\x10\n\x08\x04\0\x02\x02\ - \x08\x9c\x08\0\x12\x04\xad\x02\x1fH\nQ\n\x04\x04\0\x02\x03\x12\x04\xb0\ - \x02\x02X\x1aC\x20Output\x20only.\x20Timestamp\x20of\x20the\x20last\x20r\ - eported\x20inventory\x20for\x20the\x20VM.\n\n\r\n\x05\x04\0\x02\x03\x06\ - \x12\x04\xb0\x02\x02\x1b\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xb0\x02\x1c\ - '\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xb0\x02*+\n\r\n\x05\x04\0\x02\x03\ - \x08\x12\x04\xb0\x02,W\n\x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\ - \xb0\x02-V\nR\n\x02\x04\x01\x12\x06\xb4\x02\0\xc7\x02\x01\x1aD\x20A\x20r\ - equest\x20message\x20for\x20getting\x20inventory\x20data\x20for\x20the\ - \x20specified\x20VM.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xb4\x02\x08\x1b\n\ - \xc3\x02\n\x04\x04\x01\x02\0\x12\x06\xbd\x02\x02\xc2\x02\x04\x1a\xb2\x02\ - \x20Required.\x20API\x20resource\x20name\x20for\x20inventory\x20resource\ - .\n\n\x20Format:\n\x20`projects/{project}/locations/{location}/instances\ - /{instance}/inventory`\n\n\x20For\x20`{project}`,\x20either\x20`project-\ - number`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\x20For\x20`{in\ - stance}`,\x20either\x20Compute\x20Engine\x20\x20`instance-id`\x20or\x20`\ - instance-name`\n\x20can\x20be\x20provided.\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xbd\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xbd\x02\t\r\ - \n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbd\x02\x10\x11\n\x0f\n\x05\x04\x01\ - \x02\0\x08\x12\x06\xbd\x02\x12\xc2\x02\x03\n\x10\n\x08\x04\x01\x02\0\x08\ - \x9c\x08\0\x12\x04\xbe\x02\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\ - \x12\x06\xbf\x02\x04\xc1\x02\x05\n\x95\x01\n\x04\x04\x01\x02\x01\x12\x04\ - \xc6\x02\x02\x19\x1a\x86\x01\x20Inventory\x20view\x20indicating\x20what\ - \x20information\x20should\x20be\x20included\x20in\x20the\n\x20inventory\ - \x20resource.\x20If\x20unspecified,\x20the\x20default\x20view\x20is\x20B\ - ASIC.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xc6\x02\x02\x0f\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\xc6\x02\x10\x14\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xc6\x02\x17\x18\nd\n\x02\x04\x02\x12\x06\xcb\x02\0\xe7\x02\ - \x01\x1aV\x20A\x20request\x20message\x20for\x20listing\x20inventory\x20d\ - ata\x20for\x20all\x20VMs\x20in\x20the\x20specified\n\x20location.\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xcb\x02\x08\x1e\n\xc2\x01\n\x04\x04\x02\ - \x02\0\x12\x06\xd1\x02\x02\xd6\x02\x04\x1a\xb1\x01\x20Required.\x20The\ - \x20parent\x20resource\x20name.\n\n\x20Format:\x20`projects/{project}/lo\ - cations/{location}/instances/-`\n\n\x20For\x20`{project}`,\x20either\x20\ - `project-number`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\xd1\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xd1\x02\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xd1\x02\ - \x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xd1\x02\x14\xd6\x02\x03\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xd2\x02\x04*\n\x11\n\x07\ - \x04\x02\x02\0\x08\x9f\x08\x12\x06\xd3\x02\x04\xd5\x02\x05\n\x95\x01\n\ - \x04\x04\x02\x02\x01\x12\x04\xda\x02\x02\x19\x1a\x86\x01\x20Inventory\ - \x20view\x20indicating\x20what\x20information\x20should\x20be\x20include\ - d\x20in\x20the\n\x20inventory\x20resource.\x20If\x20unspecified,\x20the\ - \x20default\x20view\x20is\x20BASIC.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\ - \x04\xda\x02\x02\x0f\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xda\x02\x10\ - \x14\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xda\x02\x17\x18\n8\n\x04\x04\ - \x02\x02\x02\x12\x04\xdd\x02\x02\x16\x1a*\x20The\x20maximum\x20number\ - \x20of\x20results\x20to\x20return.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\ - \x04\xdd\x02\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xdd\x02\x08\ - \x11\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xdd\x02\x14\x15\n\x90\x01\n\ - \x04\x04\x02\x02\x03\x12\x04\xe2\x02\x02\x18\x1a\x81\x01\x20A\x20paginat\ - ion\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\n\x20`Li\ - stInventories`\x20that\x20indicates\x20where\x20this\x20listing\n\x20sho\ - uld\x20continue\x20from.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\xe2\x02\ - \x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xe2\x02\t\x13\n\r\n\x05\ - \x04\x02\x02\x03\x03\x12\x04\xe2\x02\x16\x17\n\x8f\x01\n\x04\x04\x02\x02\ - \x04\x12\x04\xe6\x02\x02\x14\x1a\x80\x01\x20If\x20provided,\x20this\x20f\ - ield\x20specifies\x20the\x20criteria\x20that\x20must\x20be\x20met\x20by\ - \x20a\n\x20`Inventory`\x20API\x20resource\x20to\x20be\x20included\x20in\ - \x20the\x20response.\n\n\r\n\x05\x04\x02\x02\x04\x05\x12\x04\xe6\x02\x02\ - \x08\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\xe6\x02\t\x0f\n\r\n\x05\x04\ - \x02\x02\x04\x03\x12\x04\xe6\x02\x12\x13\nc\n\x02\x04\x03\x12\x06\xeb\ - \x02\0\xf1\x02\x01\x1aU\x20A\x20response\x20message\x20for\x20listing\ - \x20inventory\x20data\x20for\x20all\x20VMs\x20in\x20a\x20specified\n\x20\ - location.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xeb\x02\x08\x1f\n*\n\x04\x04\ - \x03\x02\0\x12\x04\xed\x02\x02%\x1a\x1c\x20List\x20of\x20inventory\x20ob\ - jects.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\xed\x02\x02\n\n\r\n\x05\x04\ - \x03\x02\0\x06\x12\x04\xed\x02\x0b\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\ - \x04\xed\x02\x15\x20\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xed\x02#$\nT\n\ - \x04\x04\x03\x02\x01\x12\x04\xf0\x02\x02\x1d\x1aF\x20The\x20pagination\ - \x20token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20inventory\ - \x20objects.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xf0\x02\x02\x08\n\r\ - \n\x05\x04\x03\x02\x01\x01\x12\x04\xf0\x02\t\x18\n\r\n\x05\x04\x03\x02\ - \x01\x03\x12\x04\xf0\x02\x1b\x1c\n/\n\x02\x05\0\x12\x06\xf4\x02\0\xfe\ - \x02\x01\x1a!\x20The\x20view\x20for\x20inventory\x20objects.\n\n\x0b\n\ - \x03\x05\0\x01\x12\x04\xf4\x02\x05\x12\nG\n\x04\x05\0\x02\0\x12\x04\xf7\ - \x02\x02!\x1a9\x20The\x20default\x20value.\n\x20The\x20API\x20defaults\ - \x20to\x20the\x20BASIC\x20view.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xf7\ - \x02\x02\x1c\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xf7\x02\x1f\x20\nP\n\x04\ - \x05\0\x02\x01\x12\x04\xfa\x02\x02\x0c\x1aB\x20Returns\x20the\x20basic\ - \x20inventory\x20information\x20that\x20includes\x20`os_info`.\n\n\r\n\ - \x05\x05\0\x02\x01\x01\x12\x04\xfa\x02\x02\x07\n\r\n\x05\x05\0\x02\x01\ - \x02\x12\x04\xfa\x02\n\x0b\n#\n\x04\x05\0\x02\x02\x12\x04\xfd\x02\x02\ - \x0b\x1a\x15\x20Returns\x20all\x20fields.\n\n\r\n\x05\x05\0\x02\x02\x01\ - \x12\x04\xfd\x02\x02\x06\n\r\n\x05\x05\0\x02\x02\x02\x12\x04\xfd\x02\t\n\ - b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs index 87f00c7..e8f0060 100644 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs +++ b/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs @@ -3,13 +3,3 @@ use crate::{ longrunning::operations, }; -pub mod config_common; -pub mod instance_os_policies_compliance; -pub mod inventory; -pub mod os_policy; -pub mod os_policy_assignment_reports; -pub mod os_policy_assignments; -pub mod osconfig_common; -pub mod osconfig_zonal_service; -pub mod osconfig_zonal_service_grpc; -pub mod vulnerability; diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy.rs deleted file mode 100644 index 058632b..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy.rs +++ /dev/null @@ -1,7970 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/os_policy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy { - // message fields - pub id: ::std::string::String, - pub description: ::std::string::String, - pub mode: OSPolicy_Mode, - pub resource_groups: ::protobuf::RepeatedField, - pub allow_no_resource_group_match: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy { - fn default() -> &'a OSPolicy { - ::default_instance() - } -} - -impl OSPolicy { - pub fn new() -> OSPolicy { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Mode mode = 3; - - - pub fn get_mode(&self) -> OSPolicy_Mode { - self.mode - } - pub fn clear_mode(&mut self) { - self.mode = OSPolicy_Mode::MODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_mode(&mut self, v: OSPolicy_Mode) { - self.mode = v; - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup resource_groups = 4; - - - pub fn get_resource_groups(&self) -> &[OSPolicy_ResourceGroup] { - &self.resource_groups - } - pub fn clear_resource_groups(&mut self) { - self.resource_groups.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_groups(&mut self, v: ::protobuf::RepeatedField) { - self.resource_groups = v; - } - - // Mutable pointer to the field. - pub fn mut_resource_groups(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resource_groups - } - - // Take field - pub fn take_resource_groups(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resource_groups, ::protobuf::RepeatedField::new()) - } - - // bool allow_no_resource_group_match = 5; - - - pub fn get_allow_no_resource_group_match(&self) -> bool { - self.allow_no_resource_group_match - } - pub fn clear_allow_no_resource_group_match(&mut self) { - self.allow_no_resource_group_match = false; - } - - // Param is passed by value, moved - pub fn set_allow_no_resource_group_match(&mut self, v: bool) { - self.allow_no_resource_group_match = v; - } -} - -impl ::protobuf::Message for OSPolicy { - fn is_initialized(&self) -> bool { - for v in &self.resource_groups { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.mode, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resource_groups)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_no_resource_group_match = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - if self.mode != OSPolicy_Mode::MODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.mode); - } - for value in &self.resource_groups { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.allow_no_resource_group_match != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - if self.mode != OSPolicy_Mode::MODE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.mode))?; - } - for v in &self.resource_groups { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.allow_no_resource_group_match != false { - os.write_bool(5, self.allow_no_resource_group_match)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy { - OSPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy| { &m.id }, - |m: &mut OSPolicy| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &OSPolicy| { &m.description }, - |m: &mut OSPolicy| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "mode", - |m: &OSPolicy| { &m.mode }, - |m: &mut OSPolicy| { &mut m.mode }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resource_groups", - |m: &OSPolicy| { &m.resource_groups }, - |m: &mut OSPolicy| { &mut m.resource_groups }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_no_resource_group_match", - |m: &OSPolicy| { &m.allow_no_resource_group_match }, - |m: &mut OSPolicy| { &mut m.allow_no_resource_group_match }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy::new) - } -} - -impl ::protobuf::Clear for OSPolicy { - fn clear(&mut self) { - self.id.clear(); - self.description.clear(); - self.mode = OSPolicy_Mode::MODE_UNSPECIFIED; - self.resource_groups.clear(); - self.allow_no_resource_group_match = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_OSFilter { - // message fields - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_OSFilter { - fn default() -> &'a OSPolicy_OSFilter { - ::default_instance() - } -} - -impl OSPolicy_OSFilter { - pub fn new() -> OSPolicy_OSFilter { - ::std::default::Default::default() - } - - // string os_short_name = 1; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 2; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_OSFilter { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_short_name.is_empty() { - os.write_string(1, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(2, &self.os_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_OSFilter { - OSPolicy_OSFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &OSPolicy_OSFilter| { &m.os_short_name }, - |m: &mut OSPolicy_OSFilter| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &OSPolicy_OSFilter| { &m.os_version }, - |m: &mut OSPolicy_OSFilter| { &mut m.os_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.OSFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_OSFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_OSFilter::new) - } -} - -impl ::protobuf::Clear for OSPolicy_OSFilter { - fn clear(&mut self) { - self.os_short_name.clear(); - self.os_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_OSFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_OSFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_InventoryFilter { - // message fields - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_InventoryFilter { - fn default() -> &'a OSPolicy_InventoryFilter { - ::default_instance() - } -} - -impl OSPolicy_InventoryFilter { - pub fn new() -> OSPolicy_InventoryFilter { - ::std::default::Default::default() - } - - // string os_short_name = 1; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 2; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_InventoryFilter { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_short_name.is_empty() { - os.write_string(1, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(2, &self.os_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_InventoryFilter { - OSPolicy_InventoryFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &OSPolicy_InventoryFilter| { &m.os_short_name }, - |m: &mut OSPolicy_InventoryFilter| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &OSPolicy_InventoryFilter| { &m.os_version }, - |m: &mut OSPolicy_InventoryFilter| { &mut m.os_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.InventoryFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_InventoryFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_InventoryFilter::new) - } -} - -impl ::protobuf::Clear for OSPolicy_InventoryFilter { - fn clear(&mut self) { - self.os_short_name.clear(); - self.os_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_InventoryFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_InventoryFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource { - // message fields - pub id: ::std::string::String, - // message oneof groups - pub resource_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource { - fn default() -> &'a OSPolicy_Resource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_oneof_resource_type { - pkg(OSPolicy_Resource_PackageResource), - repository(OSPolicy_Resource_RepositoryResource), - exec(OSPolicy_Resource_ExecResource), - file(OSPolicy_Resource_FileResource), -} - -impl OSPolicy_Resource { - pub fn new() -> OSPolicy_Resource { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2; - - - pub fn get_pkg(&self) -> &OSPolicy_Resource_PackageResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_pkg(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_pkg(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_pkg(&mut self, v: OSPolicy_Resource_PackageResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) - } - - // Mutable pointer to the field. - pub fn mut_pkg(&mut self) -> &mut OSPolicy_Resource_PackageResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(OSPolicy_Resource_PackageResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_pkg(&mut self) -> OSPolicy_Resource_PackageResource { - if self.has_pkg() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3; - - - pub fn get_repository(&self) -> &OSPolicy_Resource_RepositoryResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_repository(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_repository(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_repository(&mut self, v: OSPolicy_Resource_RepositoryResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) - } - - // Mutable pointer to the field. - pub fn mut_repository(&mut self) -> &mut OSPolicy_Resource_RepositoryResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(OSPolicy_Resource_RepositoryResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_repository(&mut self) -> OSPolicy_Resource_RepositoryResource { - if self.has_repository() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4; - - - pub fn get_exec(&self) -> &OSPolicy_Resource_ExecResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_exec(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec(&mut self, v: OSPolicy_Resource_ExecResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec(&mut self) -> &mut OSPolicy_Resource_ExecResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(OSPolicy_Resource_ExecResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec(&mut self) -> OSPolicy_Resource_ExecResource { - if self.has_exec() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_ExecResource::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5; - - - pub fn get_file(&self) -> &OSPolicy_Resource_FileResource { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.resource_type = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_FileResource) { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_FileResource { - if let ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(_)) = self.resource_type { - } else { - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(OSPolicy_Resource_FileResource::new())); - } - match self.resource_type { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_FileResource { - if self.has_file() { - match self.resource_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_FileResource::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_oneof_resource_type::pkg(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::repository(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::exec(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_oneof_resource_type::file(ref v)) = self.resource_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::pkg(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::repository(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::exec(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.resource_type = ::std::option::Option::Some(OSPolicy_Resource_oneof_resource_type::file(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if let ::std::option::Option::Some(ref v) = self.resource_type { - match v { - &OSPolicy_Resource_oneof_resource_type::pkg(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::repository(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::exec(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_oneof_resource_type::file(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource { - OSPolicy_Resource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource| { &m.id }, - |m: &mut OSPolicy_Resource| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource>( - "pkg", - OSPolicy_Resource::has_pkg, - OSPolicy_Resource::get_pkg, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource>( - "repository", - OSPolicy_Resource::has_repository, - OSPolicy_Resource::get_repository, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_ExecResource>( - "exec", - OSPolicy_Resource::has_exec, - OSPolicy_Resource::get_exec, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_FileResource>( - "file", - OSPolicy_Resource::has_file, - OSPolicy_Resource::get_file, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource { - fn clear(&mut self) { - self.id.clear(); - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.resource_type = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File { - // message fields - pub allow_insecure: bool, - // message oneof groups - pub field_type: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File { - fn default() -> &'a OSPolicy_Resource_File { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_File_oneof_type { - remote(OSPolicy_Resource_File_Remote), - gcs(OSPolicy_Resource_File_Gcs), - local_path(::std::string::String), -} - -impl OSPolicy_Resource_File { - pub fn new() -> OSPolicy_Resource_File { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1; - - - pub fn get_remote(&self) -> &OSPolicy_Resource_File_Remote { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_remote(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_remote(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_remote(&mut self, v: OSPolicy_Resource_File_Remote) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) - } - - // Mutable pointer to the field. - pub fn mut_remote(&mut self) -> &mut OSPolicy_Resource_File_Remote { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(OSPolicy_Resource_File_Remote::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_remote(&mut self) -> OSPolicy_Resource_File_Remote { - if self.has_remote() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Remote::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2; - - - pub fn get_gcs(&self) -> &OSPolicy_Resource_File_Gcs { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_gcs(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_gcs(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_gcs(&mut self, v: OSPolicy_Resource_File_Gcs) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) - } - - // Mutable pointer to the field. - pub fn mut_gcs(&mut self) -> &mut OSPolicy_Resource_File_Gcs { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(OSPolicy_Resource_File_Gcs::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_gcs(&mut self) -> OSPolicy_Resource_File_Gcs { - if self.has_gcs() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File_Gcs::new() - } - } - - // string local_path = 3; - - - pub fn get_local_path(&self) -> &str { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref v)) => v, - _ => "", - } - } - pub fn clear_local_path(&mut self) { - self.field_type = ::std::option::Option::None; - } - - pub fn has_local_path(&self) -> bool { - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_local_path(&mut self, v: ::std::string::String) { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) - } - - // Mutable pointer to the field. - pub fn mut_local_path(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(_)) = self.field_type { - } else { - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(::std::string::String::new())); - } - match self.field_type { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_local_path(&mut self) -> ::std::string::String { - if self.has_local_path() { - match self.field_type.take() { - ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // bool allow_insecure = 4; - - - pub fn get_allow_insecure(&self) -> bool { - self.allow_insecure - } - pub fn clear_allow_insecure(&mut self) { - self.allow_insecure = false; - } - - // Param is passed by value, moved - pub fn set_allow_insecure(&mut self, v: bool) { - self.allow_insecure = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_File_oneof_type::remote(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_File_oneof_type::gcs(ref v)) = self.field_type { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::remote(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::gcs(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.field_type = ::std::option::Option::Some(OSPolicy_Resource_File_oneof_type::local_path(is.read_string()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.allow_insecure = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.allow_insecure != false { - my_size += 2; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.allow_insecure != false { - os.write_bool(4, self.allow_insecure)?; - } - if let ::std::option::Option::Some(ref v) = self.field_type { - match v { - &OSPolicy_Resource_File_oneof_type::remote(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::gcs(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_File_oneof_type::local_path(ref v) => { - os.write_string(3, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File { - OSPolicy_Resource_File::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Remote>( - "remote", - OSPolicy_Resource_File::has_remote, - OSPolicy_Resource_File::get_remote, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File_Gcs>( - "gcs", - OSPolicy_Resource_File::has_gcs, - OSPolicy_Resource_File::get_gcs, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "local_path", - OSPolicy_Resource_File::has_local_path, - OSPolicy_Resource_File::get_local_path, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "allow_insecure", - |m: &OSPolicy_Resource_File| { &m.allow_insecure }, - |m: &mut OSPolicy_Resource_File| { &mut m.allow_insecure }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File { - fn clear(&mut self) { - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.field_type = ::std::option::Option::None; - self.allow_insecure = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Remote { - // message fields - pub uri: ::std::string::String, - pub sha256_checksum: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Remote { - fn default() -> &'a OSPolicy_Resource_File_Remote { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Remote { - pub fn new() -> OSPolicy_Resource_File_Remote { - ::std::default::Default::default() - } - - // string uri = 1; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string sha256_checksum = 2; - - - pub fn get_sha256_checksum(&self) -> &str { - &self.sha256_checksum - } - pub fn clear_sha256_checksum(&mut self) { - self.sha256_checksum.clear(); - } - - // Param is passed by value, moved - pub fn set_sha256_checksum(&mut self, v: ::std::string::String) { - self.sha256_checksum = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sha256_checksum(&mut self) -> &mut ::std::string::String { - &mut self.sha256_checksum - } - - // Take field - pub fn take_sha256_checksum(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sha256_checksum, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Remote { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sha256_checksum)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.uri); - } - if !self.sha256_checksum.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.sha256_checksum); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.uri.is_empty() { - os.write_string(1, &self.uri)?; - } - if !self.sha256_checksum.is_empty() { - os.write_string(2, &self.sha256_checksum)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Remote { - OSPolicy_Resource_File_Remote::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_File_Remote| { &m.uri }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sha256_checksum", - |m: &OSPolicy_Resource_File_Remote| { &m.sha256_checksum }, - |m: &mut OSPolicy_Resource_File_Remote| { &mut m.sha256_checksum }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Remote", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Remote { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Remote::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Remote { - fn clear(&mut self) { - self.uri.clear(); - self.sha256_checksum.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Remote { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Remote { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_File_Gcs { - // message fields - pub bucket: ::std::string::String, - pub object: ::std::string::String, - pub generation: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_File_Gcs { - fn default() -> &'a OSPolicy_Resource_File_Gcs { - ::default_instance() - } -} - -impl OSPolicy_Resource_File_Gcs { - pub fn new() -> OSPolicy_Resource_File_Gcs { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string object = 2; - - - pub fn get_object(&self) -> &str { - &self.object - } - pub fn clear_object(&mut self) { - self.object.clear(); - } - - // Param is passed by value, moved - pub fn set_object(&mut self, v: ::std::string::String) { - self.object = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_object(&mut self) -> &mut ::std::string::String { - &mut self.object - } - - // Take field - pub fn take_object(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.object, ::std::string::String::new()) - } - - // int64 generation = 3; - - - pub fn get_generation(&self) -> i64 { - self.generation - } - pub fn clear_generation(&mut self) { - self.generation = 0; - } - - // Param is passed by value, moved - pub fn set_generation(&mut self, v: i64) { - self.generation = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_File_Gcs { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.generation = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.object.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.object); - } - if self.generation != 0 { - my_size += ::protobuf::rt::value_size(3, self.generation, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.object.is_empty() { - os.write_string(2, &self.object)?; - } - if self.generation != 0 { - os.write_int64(3, self.generation)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_File_Gcs { - OSPolicy_Resource_File_Gcs::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &OSPolicy_Resource_File_Gcs| { &m.bucket }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "object", - |m: &OSPolicy_Resource_File_Gcs| { &m.object }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.object }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "generation", - |m: &OSPolicy_Resource_File_Gcs| { &m.generation }, - |m: &mut OSPolicy_Resource_File_Gcs| { &mut m.generation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.File.Gcs", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_File_Gcs { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_File_Gcs::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_File_Gcs { - fn clear(&mut self) { - self.bucket.clear(); - self.object.clear(); - self.generation = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_File_Gcs { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_File_Gcs { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource { - // message fields - pub desired_state: OSPolicy_Resource_PackageResource_DesiredState, - // message oneof groups - pub system_package: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource { - fn default() -> &'a OSPolicy_Resource_PackageResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_PackageResource_oneof_system_package { - apt(OSPolicy_Resource_PackageResource_APT), - deb(OSPolicy_Resource_PackageResource_Deb), - yum(OSPolicy_Resource_PackageResource_YUM), - zypper(OSPolicy_Resource_PackageResource_Zypper), - rpm(OSPolicy_Resource_PackageResource_RPM), - googet(OSPolicy_Resource_PackageResource_GooGet), - msi(OSPolicy_Resource_PackageResource_MSI), -} - -impl OSPolicy_Resource_PackageResource { - pub fn new() -> OSPolicy_Resource_PackageResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1; - - - pub fn get_desired_state(&self) -> OSPolicy_Resource_PackageResource_DesiredState { - self.desired_state - } - pub fn clear_desired_state(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_desired_state(&mut self, v: OSPolicy_Resource_PackageResource_DesiredState) { - self.desired_state = v; - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT apt = 2; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_PackageResource_APT { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_PackageResource_APT) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_PackageResource_APT { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(OSPolicy_Resource_PackageResource_APT::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_PackageResource_APT { - if self.has_apt() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_APT::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb deb = 3; - - - pub fn get_deb(&self) -> &OSPolicy_Resource_PackageResource_Deb { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_deb(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_deb(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_deb(&mut self, v: OSPolicy_Resource_PackageResource_Deb) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) - } - - // Mutable pointer to the field. - pub fn mut_deb(&mut self) -> &mut OSPolicy_Resource_PackageResource_Deb { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(OSPolicy_Resource_PackageResource_Deb::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_deb(&mut self) -> OSPolicy_Resource_PackageResource_Deb { - if self.has_deb() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Deb::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM yum = 4; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_PackageResource_YUM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_PackageResource_YUM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_PackageResource_YUM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(OSPolicy_Resource_PackageResource_YUM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_PackageResource_YUM { - if self.has_yum() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_YUM::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper zypper = 5; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_PackageResource_Zypper { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_PackageResource_Zypper) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_PackageResource_Zypper { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(OSPolicy_Resource_PackageResource_Zypper::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_PackageResource_Zypper { - if self.has_zypper() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_Zypper::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM rpm = 6; - - - pub fn get_rpm(&self) -> &OSPolicy_Resource_PackageResource_RPM { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_rpm(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_rpm(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_rpm(&mut self, v: OSPolicy_Resource_PackageResource_RPM) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) - } - - // Mutable pointer to the field. - pub fn mut_rpm(&mut self) -> &mut OSPolicy_Resource_PackageResource_RPM { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(OSPolicy_Resource_PackageResource_RPM::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_rpm(&mut self) -> OSPolicy_Resource_PackageResource_RPM { - if self.has_rpm() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_RPM::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet googet = 7; - - - pub fn get_googet(&self) -> &OSPolicy_Resource_PackageResource_GooGet { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_googet(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_googet(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_googet(&mut self, v: OSPolicy_Resource_PackageResource_GooGet) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) - } - - // Mutable pointer to the field. - pub fn mut_googet(&mut self) -> &mut OSPolicy_Resource_PackageResource_GooGet { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(OSPolicy_Resource_PackageResource_GooGet::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_googet(&mut self) -> OSPolicy_Resource_PackageResource_GooGet { - if self.has_googet() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_GooGet::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI msi = 8; - - - pub fn get_msi(&self) -> &OSPolicy_Resource_PackageResource_MSI { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_msi(&mut self) { - self.system_package = ::std::option::Option::None; - } - - pub fn has_msi(&self) -> bool { - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_msi(&mut self, v: OSPolicy_Resource_PackageResource_MSI) { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) - } - - // Mutable pointer to the field. - pub fn mut_msi(&mut self) -> &mut OSPolicy_Resource_PackageResource_MSI { - if let ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(_)) = self.system_package { - } else { - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(OSPolicy_Resource_PackageResource_MSI::new())); - } - match self.system_package { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_msi(&mut self) -> OSPolicy_Resource_PackageResource_MSI { - if self.has_msi() { - match self.system_package.take() { - ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_PackageResource_MSI::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v)) = self.system_package { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.desired_state, 1, &mut self.unknown_fields)? - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::apt(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::deb(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::yum(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::zypper(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::rpm(is.read_message()?)); - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::googet(is.read_message()?)); - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.system_package = ::std::option::Option::Some(OSPolicy_Resource_PackageResource_oneof_system_package::msi(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.desired_state); - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.desired_state != OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.desired_state))?; - } - if let ::std::option::Option::Some(ref v) = self.system_package { - match v { - &OSPolicy_Resource_PackageResource_oneof_system_package::apt(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::deb(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::yum(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::zypper(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::rpm(ref v) => { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::googet(ref v) => { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_PackageResource_oneof_system_package::msi(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource { - OSPolicy_Resource_PackageResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "desired_state", - |m: &OSPolicy_Resource_PackageResource| { &m.desired_state }, - |m: &mut OSPolicy_Resource_PackageResource| { &mut m.desired_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_APT>( - "apt", - OSPolicy_Resource_PackageResource::has_apt, - OSPolicy_Resource_PackageResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Deb>( - "deb", - OSPolicy_Resource_PackageResource::has_deb, - OSPolicy_Resource_PackageResource::get_deb, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_YUM>( - "yum", - OSPolicy_Resource_PackageResource::has_yum, - OSPolicy_Resource_PackageResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_Zypper>( - "zypper", - OSPolicy_Resource_PackageResource::has_zypper, - OSPolicy_Resource_PackageResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_RPM>( - "rpm", - OSPolicy_Resource_PackageResource::has_rpm, - OSPolicy_Resource_PackageResource::get_rpm, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_GooGet>( - "googet", - OSPolicy_Resource_PackageResource::has_googet, - OSPolicy_Resource_PackageResource::get_googet, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_PackageResource_MSI>( - "msi", - OSPolicy_Resource_PackageResource::has_msi, - OSPolicy_Resource_PackageResource::get_msi, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource { - fn clear(&mut self) { - self.desired_state = OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.system_package = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Deb { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Deb { - fn default() -> &'a OSPolicy_Resource_PackageResource_Deb { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Deb { - pub fn new() -> OSPolicy_Resource_PackageResource_Deb { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Deb { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Deb { - OSPolicy_Resource_PackageResource_Deb::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_Deb| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_Deb| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Deb", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Deb { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Deb::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Deb { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Deb { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Deb { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_APT { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_APT { - fn default() -> &'a OSPolicy_Resource_PackageResource_APT { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_APT { - pub fn new() -> OSPolicy_Resource_PackageResource_APT { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_APT { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_APT { - OSPolicy_Resource_PackageResource_APT::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_APT| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_APT| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.APT", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_APT { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_APT::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_APT { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_APT { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_APT { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_RPM { - // message fields - pub source: ::protobuf::SingularPtrField, - pub pull_deps: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_RPM { - fn default() -> &'a OSPolicy_Resource_PackageResource_RPM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_RPM { - pub fn new() -> OSPolicy_Resource_PackageResource_RPM { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // bool pull_deps = 2; - - - pub fn get_pull_deps(&self) -> bool { - self.pull_deps - } - pub fn clear_pull_deps(&mut self) { - self.pull_deps = false; - } - - // Param is passed by value, moved - pub fn set_pull_deps(&mut self, v: bool) { - self.pull_deps = v; - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_RPM { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.pull_deps = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.pull_deps != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.pull_deps != false { - os.write_bool(2, self.pull_deps)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_RPM { - OSPolicy_Resource_PackageResource_RPM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "pull_deps", - |m: &OSPolicy_Resource_PackageResource_RPM| { &m.pull_deps }, - |m: &mut OSPolicy_Resource_PackageResource_RPM| { &mut m.pull_deps }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.RPM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_RPM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_RPM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_RPM { - fn clear(&mut self) { - self.source.clear(); - self.pull_deps = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_RPM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_RPM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_YUM { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_YUM { - fn default() -> &'a OSPolicy_Resource_PackageResource_YUM { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_YUM { - pub fn new() -> OSPolicy_Resource_PackageResource_YUM { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_YUM { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_YUM { - OSPolicy_Resource_PackageResource_YUM::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_YUM| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_YUM| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.YUM", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_YUM { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_YUM::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_YUM { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_YUM { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_YUM { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_Zypper { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_Zypper { - fn default() -> &'a OSPolicy_Resource_PackageResource_Zypper { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_Zypper { - pub fn new() -> OSPolicy_Resource_PackageResource_Zypper { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_Zypper { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_Zypper { - OSPolicy_Resource_PackageResource_Zypper::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_Zypper| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_Zypper| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.Zypper", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_Zypper { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_Zypper::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_Zypper { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_Zypper { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_Zypper { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_GooGet { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_GooGet { - fn default() -> &'a OSPolicy_Resource_PackageResource_GooGet { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_GooGet { - pub fn new() -> OSPolicy_Resource_PackageResource_GooGet { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_GooGet { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_GooGet { - OSPolicy_Resource_PackageResource_GooGet::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_PackageResource_GooGet| { &m.name }, - |m: &mut OSPolicy_Resource_PackageResource_GooGet| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.GooGet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_GooGet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_GooGet::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_GooGet { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_GooGet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_GooGet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_PackageResource_MSI { - // message fields - pub source: ::protobuf::SingularPtrField, - pub properties: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_PackageResource_MSI { - fn default() -> &'a OSPolicy_Resource_PackageResource_MSI { - ::default_instance() - } -} - -impl OSPolicy_Resource_PackageResource_MSI { - pub fn new() -> OSPolicy_Resource_PackageResource_MSI { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File source = 1; - - - pub fn get_source(&self) -> &OSPolicy_Resource_File { - self.source.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - pub fn has_source(&self) -> bool { - self.source.is_some() - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: OSPolicy_Resource_File) { - self.source = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut OSPolicy_Resource_File { - if self.source.is_none() { - self.source.set_default(); - } - self.source.as_mut().unwrap() - } - - // Take field - pub fn take_source(&mut self) -> OSPolicy_Resource_File { - self.source.take().unwrap_or_else(|| OSPolicy_Resource_File::new()) - } - - // repeated string properties = 2; - - - pub fn get_properties(&self) -> &[::std::string::String] { - &self.properties - } - pub fn clear_properties(&mut self) { - self.properties.clear(); - } - - // Param is passed by value, moved - pub fn set_properties(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.properties = v; - } - - // Mutable pointer to the field. - pub fn mut_properties(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.properties - } - - // Take field - pub fn take_properties(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.properties, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_PackageResource_MSI { - fn is_initialized(&self) -> bool { - for v in &self.source { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.properties)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.source.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.properties { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.source.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.properties { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_PackageResource_MSI { - OSPolicy_Resource_PackageResource_MSI::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "source", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.source }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "properties", - |m: &OSPolicy_Resource_PackageResource_MSI| { &m.properties }, - |m: &mut OSPolicy_Resource_PackageResource_MSI| { &mut m.properties }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.PackageResource.MSI", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_PackageResource_MSI { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_PackageResource_MSI::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_PackageResource_MSI { - fn clear(&mut self) { - self.source.clear(); - self.properties.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_PackageResource_MSI { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_MSI { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_PackageResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - INSTALLED = 1, - REMOVED = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_PackageResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::INSTALLED), - 2 => ::std::option::Option::Some(OSPolicy_Resource_PackageResource_DesiredState::REMOVED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_PackageResource_DesiredState] = &[ - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_PackageResource_DesiredState::INSTALLED, - OSPolicy_Resource_PackageResource_DesiredState::REMOVED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.PackageResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_PackageResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_PackageResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_PackageResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_PackageResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource { - // message oneof groups - pub repository: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource { - fn default() -> &'a OSPolicy_Resource_RepositoryResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_RepositoryResource_oneof_repository { - apt(OSPolicy_Resource_RepositoryResource_AptRepository), - yum(OSPolicy_Resource_RepositoryResource_YumRepository), - zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository), - goo(OSPolicy_Resource_RepositoryResource_GooRepository), -} - -impl OSPolicy_Resource_RepositoryResource { - pub fn new() -> OSPolicy_Resource_RepositoryResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository apt = 1; - - - pub fn get_apt(&self) -> &OSPolicy_Resource_RepositoryResource_AptRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_apt(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_apt(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_apt(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) - } - - // Mutable pointer to the field. - pub fn mut_apt(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_AptRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(OSPolicy_Resource_RepositoryResource_AptRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_apt(&mut self) -> OSPolicy_Resource_RepositoryResource_AptRepository { - if self.has_apt() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepository yum = 2; - - - pub fn get_yum(&self) -> &OSPolicy_Resource_RepositoryResource_YumRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_yum(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_yum(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_yum(&mut self, v: OSPolicy_Resource_RepositoryResource_YumRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) - } - - // Mutable pointer to the field. - pub fn mut_yum(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_YumRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(OSPolicy_Resource_RepositoryResource_YumRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_yum(&mut self) -> OSPolicy_Resource_RepositoryResource_YumRepository { - if self.has_yum() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepository zypper = 3; - - - pub fn get_zypper(&self) -> &OSPolicy_Resource_RepositoryResource_ZypperRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_zypper(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_zypper(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_zypper(&mut self, v: OSPolicy_Resource_RepositoryResource_ZypperRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) - } - - // Mutable pointer to the field. - pub fn mut_zypper(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_ZypperRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(OSPolicy_Resource_RepositoryResource_ZypperRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_zypper(&mut self) -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - if self.has_zypper() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.GooRepository goo = 4; - - - pub fn get_goo(&self) -> &OSPolicy_Resource_RepositoryResource_GooRepository { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_goo(&mut self) { - self.repository = ::std::option::Option::None; - } - - pub fn has_goo(&self) -> bool { - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_goo(&mut self, v: OSPolicy_Resource_RepositoryResource_GooRepository) { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) - } - - // Mutable pointer to the field. - pub fn mut_goo(&mut self) -> &mut OSPolicy_Resource_RepositoryResource_GooRepository { - if let ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(_)) = self.repository { - } else { - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(OSPolicy_Resource_RepositoryResource_GooRepository::new())); - } - match self.repository { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_goo(&mut self) -> OSPolicy_Resource_RepositoryResource_GooRepository { - if self.has_goo() { - match self.repository.take() { - ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - if let Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v)) = self.repository { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::apt(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::yum(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.repository = ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_oneof_repository::goo(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.repository { - match v { - &OSPolicy_Resource_RepositoryResource_oneof_repository::apt(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::yum(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::zypper(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_RepositoryResource_oneof_repository::goo(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource { - OSPolicy_Resource_RepositoryResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_AptRepository>( - "apt", - OSPolicy_Resource_RepositoryResource::has_apt, - OSPolicy_Resource_RepositoryResource::get_apt, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_YumRepository>( - "yum", - OSPolicy_Resource_RepositoryResource::has_yum, - OSPolicy_Resource_RepositoryResource::get_yum, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_ZypperRepository>( - "zypper", - OSPolicy_Resource_RepositoryResource::has_zypper, - OSPolicy_Resource_RepositoryResource::get_zypper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_RepositoryResource_GooRepository>( - "goo", - OSPolicy_Resource_RepositoryResource::has_goo, - OSPolicy_Resource_RepositoryResource::get_goo, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource { - fn clear(&mut self) { - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.repository = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_AptRepository { - // message fields - pub archive_type: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType, - pub uri: ::std::string::String, - pub distribution: ::std::string::String, - pub components: ::protobuf::RepeatedField<::std::string::String>, - pub gpg_key: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_AptRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_AptRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_AptRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType archive_type = 1; - - - pub fn get_archive_type(&self) -> OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - self.archive_type - } - pub fn clear_archive_type(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_archive_type(&mut self, v: OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType) { - self.archive_type = v; - } - - // string uri = 2; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // string distribution = 3; - - - pub fn get_distribution(&self) -> &str { - &self.distribution - } - pub fn clear_distribution(&mut self) { - self.distribution.clear(); - } - - // Param is passed by value, moved - pub fn set_distribution(&mut self, v: ::std::string::String) { - self.distribution = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_distribution(&mut self) -> &mut ::std::string::String { - &mut self.distribution - } - - // Take field - pub fn take_distribution(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.distribution, ::std::string::String::new()) - } - - // repeated string components = 4; - - - pub fn get_components(&self) -> &[::std::string::String] { - &self.components - } - pub fn clear_components(&mut self) { - self.components.clear(); - } - - // Param is passed by value, moved - pub fn set_components(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.components = v; - } - - // Mutable pointer to the field. - pub fn mut_components(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.components - } - - // Take field - pub fn take_components(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.components, ::protobuf::RepeatedField::new()) - } - - // string gpg_key = 5; - - - pub fn get_gpg_key(&self) -> &str { - &self.gpg_key - } - pub fn clear_gpg_key(&mut self) { - self.gpg_key.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_key(&mut self, v: ::std::string::String) { - self.gpg_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gpg_key(&mut self) -> &mut ::std::string::String { - &mut self.gpg_key - } - - // Take field - pub fn take_gpg_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gpg_key, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_AptRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.archive_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.distribution)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.components)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gpg_key)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.archive_type); - } - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.uri); - } - if !self.distribution.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.distribution); - } - for value in &self.components { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if !self.gpg_key.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.gpg_key); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.archive_type != OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.archive_type))?; - } - if !self.uri.is_empty() { - os.write_string(2, &self.uri)?; - } - if !self.distribution.is_empty() { - os.write_string(3, &self.distribution)?; - } - for v in &self.components { - os.write_string(4, &v)?; - }; - if !self.gpg_key.is_empty() { - os.write_string(5, &self.gpg_key)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_AptRepository { - OSPolicy_Resource_RepositoryResource_AptRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "archive_type", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.archive_type }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.archive_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.uri }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "distribution", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.distribution }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.distribution }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "components", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.components }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.components }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_key", - |m: &OSPolicy_Resource_RepositoryResource_AptRepository| { &m.gpg_key }, - |m: &mut OSPolicy_Resource_RepositoryResource_AptRepository| { &mut m.gpg_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.AptRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_AptRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_AptRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_AptRepository { - fn clear(&mut self) { - self.archive_type = OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED; - self.uri.clear(); - self.distribution.clear(); - self.components.clear(); - self.gpg_key.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_AptRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - ARCHIVE_TYPE_UNSPECIFIED = 0, - DEB = 1, - DEB_SRC = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB), - 2 => ::std::option::Option::Some(OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType] = &[ - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB, - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::DEB_SRC, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.RepositoryResource.AptRepository.ArchiveType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { -} - -impl ::std::default::Default for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn default() -> Self { - OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType::ARCHIVE_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_AptRepository_ArchiveType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_YumRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_YumRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_YumRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_YumRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_YumRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_YumRepository { - OSPolicy_Resource_RepositoryResource_YumRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_YumRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_YumRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.YumRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_YumRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_YumRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_YumRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_YumRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_YumRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_ZypperRepository { - // message fields - pub id: ::std::string::String, - pub display_name: ::std::string::String, - pub base_url: ::std::string::String, - pub gpg_keys: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_ZypperRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // string base_url = 3; - - - pub fn get_base_url(&self) -> &str { - &self.base_url - } - pub fn clear_base_url(&mut self) { - self.base_url.clear(); - } - - // Param is passed by value, moved - pub fn set_base_url(&mut self, v: ::std::string::String) { - self.base_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_url(&mut self) -> &mut ::std::string::String { - &mut self.base_url - } - - // Take field - pub fn take_base_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_url, ::std::string::String::new()) - } - - // repeated string gpg_keys = 4; - - - pub fn get_gpg_keys(&self) -> &[::std::string::String] { - &self.gpg_keys - } - pub fn clear_gpg_keys(&mut self) { - self.gpg_keys.clear(); - } - - // Param is passed by value, moved - pub fn set_gpg_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.gpg_keys = v; - } - - // Mutable pointer to the field. - pub fn mut_gpg_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.gpg_keys - } - - // Take field - pub fn take_gpg_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.gpg_keys, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_url)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.gpg_keys)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.display_name); - } - if !self.base_url.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.base_url); - } - for value in &self.gpg_keys { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.display_name.is_empty() { - os.write_string(2, &self.display_name)?; - } - if !self.base_url.is_empty() { - os.write_string(3, &self.base_url)?; - } - for v in &self.gpg_keys { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_ZypperRepository { - OSPolicy_Resource_RepositoryResource_ZypperRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.id }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.display_name }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_url", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.base_url }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.base_url }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gpg_keys", - |m: &OSPolicy_Resource_RepositoryResource_ZypperRepository| { &m.gpg_keys }, - |m: &mut OSPolicy_Resource_RepositoryResource_ZypperRepository| { &mut m.gpg_keys }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.ZypperRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_ZypperRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_ZypperRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn clear(&mut self) { - self.id.clear(); - self.display_name.clear(); - self.base_url.clear(); - self.gpg_keys.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_ZypperRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_RepositoryResource_GooRepository { - // message fields - pub name: ::std::string::String, - pub url: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_RepositoryResource_GooRepository { - fn default() -> &'a OSPolicy_Resource_RepositoryResource_GooRepository { - ::default_instance() - } -} - -impl OSPolicy_Resource_RepositoryResource_GooRepository { - pub fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string url = 2; - - - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } - - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } - - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_RepositoryResource_GooRepository { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.url); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.url.is_empty() { - os.write_string(2, &self.url)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_RepositoryResource_GooRepository { - OSPolicy_Resource_RepositoryResource_GooRepository::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.name }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &OSPolicy_Resource_RepositoryResource_GooRepository| { &m.url }, - |m: &mut OSPolicy_Resource_RepositoryResource_GooRepository| { &mut m.url }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.RepositoryResource.GooRepository", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_RepositoryResource_GooRepository { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_RepositoryResource_GooRepository::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_RepositoryResource_GooRepository { - fn clear(&mut self) { - self.name.clear(); - self.url.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_RepositoryResource_GooRepository { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_RepositoryResource_GooRepository { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource { - // message fields - pub validate: ::protobuf::SingularPtrField, - pub enforce: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource { - fn default() -> &'a OSPolicy_Resource_ExecResource { - ::default_instance() - } -} - -impl OSPolicy_Resource_ExecResource { - pub fn new() -> OSPolicy_Resource_ExecResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec validate = 1; - - - pub fn get_validate(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.validate.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_validate(&mut self) { - self.validate.clear(); - } - - pub fn has_validate(&self) -> bool { - self.validate.is_some() - } - - // Param is passed by value, moved - pub fn set_validate(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.validate = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_validate(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.validate.is_none() { - self.validate.set_default(); - } - self.validate.as_mut().unwrap() - } - - // Take field - pub fn take_validate(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.validate.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec enforce = 2; - - - pub fn get_enforce(&self) -> &OSPolicy_Resource_ExecResource_Exec { - self.enforce.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_enforce(&mut self) { - self.enforce.clear(); - } - - pub fn has_enforce(&self) -> bool { - self.enforce.is_some() - } - - // Param is passed by value, moved - pub fn set_enforce(&mut self, v: OSPolicy_Resource_ExecResource_Exec) { - self.enforce = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforce(&mut self) -> &mut OSPolicy_Resource_ExecResource_Exec { - if self.enforce.is_none() { - self.enforce.set_default(); - } - self.enforce.as_mut().unwrap() - } - - // Take field - pub fn take_enforce(&mut self) -> OSPolicy_Resource_ExecResource_Exec { - self.enforce.take().unwrap_or_else(|| OSPolicy_Resource_ExecResource_Exec::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource { - fn is_initialized(&self) -> bool { - for v in &self.validate { - if !v.is_initialized() { - return false; - } - }; - for v in &self.enforce { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.validate)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.enforce)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.validate.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.enforce.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.validate.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.enforce.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource { - OSPolicy_Resource_ExecResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "validate", - |m: &OSPolicy_Resource_ExecResource| { &m.validate }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.validate }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "enforce", - |m: &OSPolicy_Resource_ExecResource| { &m.enforce }, - |m: &mut OSPolicy_Resource_ExecResource| { &mut m.enforce }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource { - fn clear(&mut self) { - self.validate.clear(); - self.enforce.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_ExecResource_Exec { - // message fields - pub args: ::protobuf::RepeatedField<::std::string::String>, - pub interpreter: OSPolicy_Resource_ExecResource_Exec_Interpreter, - pub output_file_path: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_ExecResource_Exec { - fn default() -> &'a OSPolicy_Resource_ExecResource_Exec { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_ExecResource_Exec_oneof_source { - file(OSPolicy_Resource_File), - script(::std::string::String), -} - -impl OSPolicy_Resource_ExecResource_Exec { - pub fn new() -> OSPolicy_Resource_ExecResource_Exec { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string script = 2; - - - pub fn get_script(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v)) => v, - _ => "", - } - } - pub fn clear_script(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_script(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_script(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) - } - - // Mutable pointer to the field. - pub fn mut_script(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_script(&mut self) -> ::std::string::String { - if self.has_script() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // repeated string args = 3; - - - pub fn get_args(&self) -> &[::std::string::String] { - &self.args - } - pub fn clear_args(&mut self) { - self.args.clear(); - } - - // Param is passed by value, moved - pub fn set_args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.args = v; - } - - // Mutable pointer to the field. - pub fn mut_args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.args - } - - // Take field - pub fn take_args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.args, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4; - - - pub fn get_interpreter(&self) -> OSPolicy_Resource_ExecResource_Exec_Interpreter { - self.interpreter - } - pub fn clear_interpreter(&mut self) { - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_interpreter(&mut self, v: OSPolicy_Resource_ExecResource_Exec_Interpreter) { - self.interpreter = v; - } - - // string output_file_path = 5; - - - pub fn get_output_file_path(&self) -> &str { - &self.output_file_path - } - pub fn clear_output_file_path(&mut self) { - self.output_file_path.clear(); - } - - // Param is passed by value, moved - pub fn set_output_file_path(&mut self, v: ::std::string::String) { - self.output_file_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_output_file_path(&mut self) -> &mut ::std::string::String { - &mut self.output_file_path - } - - // Take field - pub fn take_output_file_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.output_file_path, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_ExecResource_Exec { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_oneof_source::script(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.args)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.interpreter, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.output_file_path)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.args { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.interpreter); - } - if !self.output_file_path.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.output_file_path); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.args { - os.write_string(3, &v)?; - }; - if self.interpreter != OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.interpreter))?; - } - if !self.output_file_path.is_empty() { - os.write_string(5, &self.output_file_path)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_ExecResource_Exec_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_ExecResource_Exec_oneof_source::script(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_ExecResource_Exec { - OSPolicy_Resource_ExecResource_Exec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_ExecResource_Exec::has_file, - OSPolicy_Resource_ExecResource_Exec::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "script", - OSPolicy_Resource_ExecResource_Exec::has_script, - OSPolicy_Resource_ExecResource_Exec::get_script, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "args", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.args }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.args }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "interpreter", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.interpreter }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.interpreter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "output_file_path", - |m: &OSPolicy_Resource_ExecResource_Exec| { &m.output_file_path }, - |m: &mut OSPolicy_Resource_ExecResource_Exec| { &mut m.output_file_path }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.ExecResource.Exec", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_ExecResource_Exec { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_ExecResource_Exec::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_ExecResource_Exec { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.args.clear(); - self.interpreter = OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED; - self.output_file_path.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_ExecResource_Exec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_ExecResource_Exec_Interpreter { - INTERPRETER_UNSPECIFIED = 0, - NONE = 1, - SHELL = 2, - POWERSHELL = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE), - 2 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL), - 3 => ::std::option::Option::Some(OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_ExecResource_Exec_Interpreter] = &[ - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED, - OSPolicy_Resource_ExecResource_Exec_Interpreter::NONE, - OSPolicy_Resource_ExecResource_Exec_Interpreter::SHELL, - OSPolicy_Resource_ExecResource_Exec_Interpreter::POWERSHELL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.ExecResource.Exec.Interpreter", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_ExecResource_Exec_Interpreter { -} - -impl ::std::default::Default for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn default() -> Self { - OSPolicy_Resource_ExecResource_Exec_Interpreter::INTERPRETER_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_ExecResource_Exec_Interpreter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_Resource_FileResource { - // message fields - pub path: ::std::string::String, - pub state: OSPolicy_Resource_FileResource_DesiredState, - pub permissions: ::std::string::String, - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_Resource_FileResource { - fn default() -> &'a OSPolicy_Resource_FileResource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicy_Resource_FileResource_oneof_source { - file(OSPolicy_Resource_File), - content(::std::string::String), -} - -impl OSPolicy_Resource_FileResource { - pub fn new() -> OSPolicy_Resource_FileResource { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File file = 1; - - - pub fn get_file(&self) -> &OSPolicy_Resource_File { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_file(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_file(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_file(&mut self, v: OSPolicy_Resource_File) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) - } - - // Mutable pointer to the field. - pub fn mut_file(&mut self) -> &mut OSPolicy_Resource_File { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(OSPolicy_Resource_File::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_file(&mut self) -> OSPolicy_Resource_File { - if self.has_file() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(v)) => v, - _ => panic!(), - } - } else { - OSPolicy_Resource_File::new() - } - } - - // string content = 2; - - - pub fn get_content(&self) -> &str { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref v)) => v, - _ => "", - } - } - pub fn clear_content(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_content(&self) -> bool { - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_content(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) - } - - // Mutable pointer to the field. - pub fn mut_content(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_content(&mut self) -> ::std::string::String { - if self.has_content() { - match self.source.take() { - ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string path = 3; - - - pub fn get_path(&self) -> &str { - &self.path - } - pub fn clear_path(&mut self) { - self.path.clear(); - } - - // Param is passed by value, moved - pub fn set_path(&mut self, v: ::std::string::String) { - self.path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path(&mut self) -> &mut ::std::string::String { - &mut self.path - } - - // Take field - pub fn take_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredState state = 4; - - - pub fn get_state(&self) -> OSPolicy_Resource_FileResource_DesiredState { - self.state - } - pub fn clear_state(&mut self) { - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: OSPolicy_Resource_FileResource_DesiredState) { - self.state = v; - } - - // string permissions = 5; - - - pub fn get_permissions(&self) -> &str { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::std::string::String) { - self.permissions = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_permissions(&mut self) -> &mut ::std::string::String { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.permissions, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicy_Resource_FileResource { - fn is_initialized(&self) -> bool { - if let Some(OSPolicy_Resource_FileResource_oneof_source::file(ref v)) = self.source { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::file(is.read_message()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(OSPolicy_Resource_FileResource_oneof_source::content(is.read_string()?)); - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 4, &mut self.unknown_fields)? - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.permissions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.path.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.path); - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.state); - } - if !self.permissions.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.permissions); - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.path.is_empty() { - os.write_string(3, &self.path)?; - } - if self.state != OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if !self.permissions.is_empty() { - os.write_string(5, &self.permissions)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &OSPolicy_Resource_FileResource_oneof_source::file(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &OSPolicy_Resource_FileResource_oneof_source::content(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_Resource_FileResource { - OSPolicy_Resource_FileResource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicy_Resource_File>( - "file", - OSPolicy_Resource_FileResource::has_file, - OSPolicy_Resource_FileResource::get_file, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "content", - OSPolicy_Resource_FileResource::has_content, - OSPolicy_Resource_FileResource::get_content, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path", - |m: &OSPolicy_Resource_FileResource| { &m.path }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &OSPolicy_Resource_FileResource| { &m.state }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &OSPolicy_Resource_FileResource| { &m.permissions }, - |m: &mut OSPolicy_Resource_FileResource| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.Resource.FileResource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_Resource_FileResource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_Resource_FileResource::new) - } -} - -impl ::protobuf::Clear for OSPolicy_Resource_FileResource { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.path.clear(); - self.state = OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED; - self.permissions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_Resource_FileResource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Resource_FileResource_DesiredState { - DESIRED_STATE_UNSPECIFIED = 0, - PRESENT = 1, - ABSENT = 2, - CONTENTS_MATCH = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Resource_FileResource_DesiredState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::PRESENT), - 2 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::ABSENT), - 3 => ::std::option::Option::Some(OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Resource_FileResource_DesiredState] = &[ - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED, - OSPolicy_Resource_FileResource_DesiredState::PRESENT, - OSPolicy_Resource_FileResource_DesiredState::ABSENT, - OSPolicy_Resource_FileResource_DesiredState::CONTENTS_MATCH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Resource.FileResource.DesiredState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Resource_FileResource_DesiredState { -} - -impl ::std::default::Default for OSPolicy_Resource_FileResource_DesiredState { - fn default() -> Self { - OSPolicy_Resource_FileResource_DesiredState::DESIRED_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Resource_FileResource_DesiredState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicy_ResourceGroup { - // message fields - pub os_filter: ::protobuf::SingularPtrField, - pub inventory_filters: ::protobuf::RepeatedField, - pub resources: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicy_ResourceGroup { - fn default() -> &'a OSPolicy_ResourceGroup { - ::default_instance() - } -} - -impl OSPolicy_ResourceGroup { - pub fn new() -> OSPolicy_ResourceGroup { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1; - - - pub fn get_os_filter(&self) -> &OSPolicy_OSFilter { - self.os_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_filter(&mut self) { - self.os_filter.clear(); - } - - pub fn has_os_filter(&self) -> bool { - self.os_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_os_filter(&mut self, v: OSPolicy_OSFilter) { - self.os_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_filter(&mut self) -> &mut OSPolicy_OSFilter { - if self.os_filter.is_none() { - self.os_filter.set_default(); - } - self.os_filter.as_mut().unwrap() - } - - // Take field - pub fn take_os_filter(&mut self) -> OSPolicy_OSFilter { - self.os_filter.take().unwrap_or_else(|| OSPolicy_OSFilter::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3; - - - pub fn get_inventory_filters(&self) -> &[OSPolicy_InventoryFilter] { - &self.inventory_filters - } - pub fn clear_inventory_filters(&mut self) { - self.inventory_filters.clear(); - } - - // Param is passed by value, moved - pub fn set_inventory_filters(&mut self, v: ::protobuf::RepeatedField) { - self.inventory_filters = v; - } - - // Mutable pointer to the field. - pub fn mut_inventory_filters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventory_filters - } - - // Take field - pub fn take_inventory_filters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventory_filters, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicy.Resource resources = 2; - - - pub fn get_resources(&self) -> &[OSPolicy_Resource] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicy_ResourceGroup { - fn is_initialized(&self) -> bool { - for v in &self.os_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.inventory_filters { - if !v.is_initialized() { - return false; - } - }; - for v in &self.resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_filter)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventory_filters)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.os_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.inventory_filters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.resources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.os_filter.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.inventory_filters { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.resources { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicy_ResourceGroup { - OSPolicy_ResourceGroup::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_filter", - |m: &OSPolicy_ResourceGroup| { &m.os_filter }, - |m: &mut OSPolicy_ResourceGroup| { &mut m.os_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventory_filters", - |m: &OSPolicy_ResourceGroup| { &m.inventory_filters }, - |m: &mut OSPolicy_ResourceGroup| { &mut m.inventory_filters }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resources", - |m: &OSPolicy_ResourceGroup| { &m.resources }, - |m: &mut OSPolicy_ResourceGroup| { &mut m.resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicy.ResourceGroup", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicy_ResourceGroup { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicy_ResourceGroup::new) - } -} - -impl ::protobuf::Clear for OSPolicy_ResourceGroup { - fn clear(&mut self) { - self.os_filter.clear(); - self.inventory_filters.clear(); - self.resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicy_ResourceGroup { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_ResourceGroup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicy_Mode { - MODE_UNSPECIFIED = 0, - VALIDATION = 1, - ENFORCEMENT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicy_Mode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicy_Mode::MODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicy_Mode::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicy_Mode::ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicy_Mode] = &[ - OSPolicy_Mode::MODE_UNSPECIFIED, - OSPolicy_Mode::VALIDATION, - OSPolicy_Mode::ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicy.Mode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicy_Mode { -} - -impl ::std::default::Default for OSPolicy_Mode { - fn default() -> Self { - OSPolicy_Mode::MODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicy_Mode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n-google/cloud/osconfig/v1alpha/os_policy.proto\x12\x1dgoogle.cloud.osc\ - onfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\"\xa9(\n\x08OSPolic\ - y\x12\x13\n\x02id\x18\x01\x20\x01(\tR\x02idB\x03\xe0A\x02\x12\x20\n\x0bd\ - escription\x18\x02\x20\x01(\tR\x0bdescription\x12E\n\x04mode\x18\x03\x20\ - \x01(\x0e2,.google.cloud.osconfig.v1alpha.OSPolicy.ModeR\x04modeB\x03\ - \xe0A\x02\x12c\n\x0fresource_groups\x18\x04\x20\x03(\x0b25.google.cloud.\ - osconfig.v1alpha.OSPolicy.ResourceGroupR\x0eresourceGroupsB\x03\xe0A\x02\ - \x12@\n\x1dallow_no_resource_group_match\x18\x05\x20\x01(\x08R\x19allowN\ - oResourceGroupMatch\x1aM\n\x08OSFilter\x12\"\n\ros_short_name\x18\x01\ - \x20\x01(\tR\x0bosShortName\x12\x1d\n\nos_version\x18\x02\x20\x01(\tR\to\ - sVersion\x1aY\n\x0fInventoryFilter\x12'\n\ros_short_name\x18\x01\x20\x01\ - (\tR\x0bosShortNameB\x03\xe0A\x02\x12\x1d\n\nos_version\x18\x02\x20\x01(\ - \tR\tosVersion\x1a\xee!\n\x08Resource\x12\x13\n\x02id\x18\x01\x20\x01(\t\ - R\x02idB\x03\xe0A\x02\x12T\n\x03pkg\x18\x02\x20\x01(\x0b2@.google.cloud.\ - osconfig.v1alpha.OSPolicy.Resource.PackageResourceH\0R\x03pkg\x12e\n\nre\ - pository\x18\x03\x20\x01(\x0b2C.google.cloud.osconfig.v1alpha.OSPolicy.R\ - esource.RepositoryResourceH\0R\nrepository\x12S\n\x04exec\x18\x04\x20\ - \x01(\x0b2=.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource\ - H\0R\x04exec\x12S\n\x04file\x18\x05\x20\x01(\x0b2=.google.cloud.osconfig\ - .v1alpha.OSPolicy.Resource.FileResourceH\0R\x04file\x1a\xa8\x03\n\x04Fil\ - e\x12V\n\x06remote\x18\x01\x20\x01(\x0b2<.google.cloud.osconfig.v1alpha.\ - OSPolicy.Resource.File.RemoteH\0R\x06remote\x12M\n\x03gcs\x18\x02\x20\ - \x01(\x0b29.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.GcsH\0R\ - \x03gcs\x12\x1f\n\nlocal_path\x18\x03\x20\x01(\tH\0R\tlocalPath\x12%\n\ - \x0eallow_insecure\x18\x04\x20\x01(\x08R\rallowInsecure\x1aH\n\x06Remote\ - \x12\x15\n\x03uri\x18\x01\x20\x01(\tR\x03uriB\x03\xe0A\x02\x12'\n\x0fsha\ - 256_checksum\x18\x02\x20\x01(\tR\x0esha256Checksum\x1a_\n\x03Gcs\x12\x1b\ - \n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\x02\x12\x1b\n\x06ob\ - ject\x18\x02\x20\x01(\tR\x06objectB\x03\xe0A\x02\x12\x1e\n\ngeneration\ - \x18\x03\x20\x01(\x03R\ngenerationB\x06\n\x04type\x1a\xe0\n\n\x0fPackage\ - Resource\x12w\n\rdesired_state\x18\x01\x20\x01(\x0e2M.google.cloud.oscon\ - fig.v1alpha.OSPolicy.Resource.PackageResource.DesiredStateR\x0cdesiredSt\ - ateB\x03\xe0A\x02\x12X\n\x03apt\x18\x02\x20\x01(\x0b2D.google.cloud.osco\ - nfig.v1alpha.OSPolicy.Resource.PackageResource.APTH\0R\x03apt\x12X\n\x03\ - deb\x18\x03\x20\x01(\x0b2D.google.cloud.osconfig.v1alpha.OSPolicy.Resour\ - ce.PackageResource.DebH\0R\x03deb\x12X\n\x03yum\x18\x04\x20\x01(\x0b2D.g\ - oogle.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUMH\0R\ - \x03yum\x12a\n\x06zypper\x18\x05\x20\x01(\x0b2G.google.cloud.osconfig.v1\ - alpha.OSPolicy.Resource.PackageResource.ZypperH\0R\x06zypper\x12X\n\x03r\ - pm\x18\x06\x20\x01(\x0b2D.google.cloud.osconfig.v1alpha.OSPolicy.Resourc\ - e.PackageResource.RPMH\0R\x03rpm\x12a\n\x06googet\x18\x07\x20\x01(\x0b2G\ - .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGetH\ - \0R\x06googet\x12X\n\x03msi\x18\x08\x20\x01(\x0b2D.google.cloud.osconfig\ - .v1alpha.OSPolicy.Resource.PackageResource.MSIH\0R\x03msi\x1av\n\x03Deb\ - \x12R\n\x06source\x18\x01\x20\x01(\x0b25.google.cloud.osconfig.v1alpha.O\ - SPolicy.Resource.FileR\x06sourceB\x03\xe0A\x02\x12\x1b\n\tpull_deps\x18\ - \x02\x20\x01(\x08R\x08pullDeps\x1a\x1e\n\x03APT\x12\x17\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x1av\n\x03RPM\x12R\n\x06source\ - \x18\x01\x20\x01(\x0b25.google.cloud.osconfig.v1alpha.OSPolicy.Resource.\ - FileR\x06sourceB\x03\xe0A\x02\x12\x1b\n\tpull_deps\x18\x02\x20\x01(\x08R\ - \x08pullDeps\x1a\x1e\n\x03YUM\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04n\ - ameB\x03\xe0A\x02\x1a!\n\x06Zypper\x12\x17\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB\x03\xe0A\x02\x1a!\n\x06GooGet\x12\x17\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB\x03\xe0A\x02\x1ay\n\x03MSI\x12R\n\x06source\x18\x01\ - \x20\x01(\x0b25.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileR\ - \x06sourceB\x03\xe0A\x02\x12\x1e\n\nproperties\x18\x02\x20\x03(\tR\nprop\ - erties\"I\n\x0cDesiredState\x12\x1d\n\x19DESIRED_STATE_UNSPECIFIED\x10\0\ - \x12\r\n\tINSTALLED\x10\x01\x12\x0b\n\x07REMOVED\x10\x02B\x10\n\x0esyste\ - m_package\x1a\xf0\x08\n\x12RepositoryResource\x12e\n\x03apt\x18\x01\x20\ - \x01(\x0b2Q.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryRe\ - source.AptRepositoryH\0R\x03apt\x12e\n\x03yum\x18\x02\x20\x01(\x0b2Q.goo\ - gle.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.YumRepos\ - itoryH\0R\x03yum\x12n\n\x06zypper\x18\x03\x20\x01(\x0b2T.google.cloud.os\ - config.v1alpha.OSPolicy.Resource.RepositoryResource.ZypperRepositoryH\0R\ - \x06zypper\x12e\n\x03goo\x18\x04\x20\x01(\x0b2Q.google.cloud.osconfig.v1\ - alpha.OSPolicy.Resource.RepositoryResource.GooRepositoryH\0R\x03goo\x1a\ - \xd8\x02\n\rAptRepository\x12\x85\x01\n\x0carchive_type\x18\x01\x20\x01(\ - \x0e2].google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResourc\ - e.AptRepository.ArchiveTypeR\x0barchiveTypeB\x03\xe0A\x02\x12\x15\n\x03u\ - ri\x18\x02\x20\x01(\tR\x03uriB\x03\xe0A\x02\x12'\n\x0cdistribution\x18\ - \x03\x20\x01(\tR\x0cdistributionB\x03\xe0A\x02\x12#\n\ncomponents\x18\ - \x04\x20\x03(\tR\ncomponentsB\x03\xe0A\x02\x12\x17\n\x07gpg_key\x18\x05\ - \x20\x01(\tR\x06gpgKey\"A\n\x0bArchiveType\x12\x1c\n\x18ARCHIVE_TYPE_UNS\ - PECIFIED\x10\0\x12\x07\n\x03DEB\x10\x01\x12\x0b\n\x07DEB_SRC\x10\x02\x1a\ - \x82\x01\n\rYumRepository\x12\x13\n\x02id\x18\x01\x20\x01(\tR\x02idB\x03\ - \xe0A\x02\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\ - \x1e\n\x08base_url\x18\x03\x20\x01(\tR\x07baseUrlB\x03\xe0A\x02\x12\x19\ - \n\x08gpg_keys\x18\x04\x20\x03(\tR\x07gpgKeys\x1a\x85\x01\n\x10ZypperRep\ - ository\x12\x13\n\x02id\x18\x01\x20\x01(\tR\x02idB\x03\xe0A\x02\x12!\n\ - \x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12\x1e\n\x08base_ur\ - l\x18\x03\x20\x01(\tR\x07baseUrlB\x03\xe0A\x02\x12\x19\n\x08gpg_keys\x18\ - \x04\x20\x03(\tR\x07gpgKeys\x1a?\n\rGooRepository\x12\x17\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x12\x15\n\x03url\x18\x02\x20\x01(\ - \tR\x03urlB\x03\xe0A\x02B\x0c\n\nrepository\x1a\xd1\x04\n\x0cExecResourc\ - e\x12c\n\x08validate\x18\x01\x20\x01(\x0b2B.google.cloud.osconfig.v1alph\ - a.OSPolicy.Resource.ExecResource.ExecR\x08validateB\x03\xe0A\x02\x12\\\n\ - \x07enforce\x18\x02\x20\x01(\x0b2B.google.cloud.osconfig.v1alpha.OSPolic\ - y.Resource.ExecResource.ExecR\x07enforce\x1a\xfd\x02\n\x04Exec\x12K\n\ - \x04file\x18\x01\x20\x01(\x0b25.google.cloud.osconfig.v1alpha.OSPolicy.R\ - esource.FileH\0R\x04file\x12\x18\n\x06script\x18\x02\x20\x01(\tH\0R\x06s\ - cript\x12\x12\n\x04args\x18\x03\x20\x03(\tR\x04args\x12u\n\x0binterprete\ - r\x18\x04\x20\x01(\x0e2N.google.cloud.osconfig.v1alpha.OSPolicy.Resource\ - .ExecResource.Exec.InterpreterR\x0binterpreterB\x03\xe0A\x02\x12(\n\x10o\ - utput_file_path\x18\x05\x20\x01(\tR\x0eoutputFilePath\"O\n\x0bInterprete\ - r\x12\x1b\n\x17INTERPRETER_UNSPECIFIED\x10\0\x12\x08\n\x04NONE\x10\x01\ - \x12\t\n\x05SHELL\x10\x02\x12\x0e\n\nPOWERSHELL\x10\x03B\x08\n\x06source\ - \x1a\xff\x02\n\x0cFileResource\x12K\n\x04file\x18\x01\x20\x01(\x0b25.goo\ - gle.cloud.osconfig.v1alpha.OSPolicy.Resource.FileH\0R\x04file\x12\x1a\n\ - \x07content\x18\x02\x20\x01(\tH\0R\x07content\x12\x17\n\x04path\x18\x03\ - \x20\x01(\tR\x04pathB\x03\xe0A\x02\x12e\n\x05state\x18\x04\x20\x01(\x0e2\ - J.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.DesiredSt\ - ateR\x05stateB\x03\xe0A\x02\x12\x20\n\x0bpermissions\x18\x05\x20\x01(\tR\ - \x0bpermissions\"Z\n\x0cDesiredState\x12\x1d\n\x19DESIRED_STATE_UNSPECIF\ - IED\x10\0\x12\x0b\n\x07PRESENT\x10\x01\x12\n\n\x06ABSENT\x10\x02\x12\x12\ - \n\x0eCONTENTS_MATCH\x10\x03B\x08\n\x06sourceB\x0f\n\rresource_type\x1a\ - \x9d\x02\n\rResourceGroup\x12Q\n\tos_filter\x18\x01\x20\x01(\x0b20.googl\ - e.cloud.osconfig.v1alpha.OSPolicy.OSFilterR\x08osFilterB\x02\x18\x01\x12\ - d\n\x11inventory_filters\x18\x03\x20\x03(\x0b27.google.cloud.osconfig.v1\ - alpha.OSPolicy.InventoryFilterR\x10inventoryFilters\x12S\n\tresources\ - \x18\x02\x20\x03(\x0b20.google.cloud.osconfig.v1alpha.OSPolicy.ResourceR\ - \tresourcesB\x03\xe0A\x02\"=\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\ - \0\x12\x0e\n\nVALIDATION\x10\x01\x12\x0f\n\x0bENFORCEMENT\x10\x02B\xd6\ - \x01\n!com.google.cloud.osconfig.v1alphaB\rOsPolicyProtoP\x01Z=cloud.goo\ - gle.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.C\ - loud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\ - \x02\x20Google::Cloud::OsConfig::V1alphaJ\x96\xb5\x01\n\x07\x12\x05\x0e\ - \0\xb4\x04\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyrig\ - ht\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\ - \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ - \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ - the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ - icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ - SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ - eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0&\n\t\ - \n\x02\x03\0\x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\x14\0:\n\t\n\x02\x08\ - %\x12\x03\x14\0:\n\x08\n\x01\x08\x12\x03\x15\0T\n\t\n\x02\x08\x0b\x12\ - \x03\x15\0T\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\ - \0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\x08\x12\x03\x17\0.\n\ - \x08\n\x01\x08\x12\x03\x18\0:\n\t\n\x02\x08\x01\x12\x03\x18\0:\n\x08\n\ - \x01\x08\x12\x03\x19\0:\n\t\n\x02\x08)\x12\x03\x19\0:\n\x08\n\x01\x08\ - \x12\x03\x1a\09\n\t\n\x02\x08-\x12\x03\x1a\09\nM\n\x02\x04\0\x12\x05\x1d\ - \0\xb4\x04\x01\x1a@\x20An\x20OS\x20policy\x20defines\x20the\x20desired\ - \x20state\x20configuration\x20for\x20a\x20VM.\n\n\n\n\x03\x04\0\x01\x12\ - \x03\x1d\x08\x10\n\x1b\n\x04\x04\0\x04\0\x12\x04\x1f\x02+\x03\x1a\r\x20P\ - olicy\x20mode\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\x1f\x07\x0b\n\x1d\n\ - \x06\x04\0\x04\0\x02\0\x12\x03!\x04\x19\x1a\x0e\x20Invalid\x20mode\n\n\ - \x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03!\x04\x14\n\x0e\n\x07\x04\0\x04\ - \0\x02\0\x02\x12\x03!\x17\x18\n\xd6\x01\n\x06\x04\0\x04\0\x02\x01\x12\ - \x03&\x04\x13\x1a\xc6\x01\x20This\x20mode\x20checks\x20if\x20the\x20conf\ - iguration\x20resources\x20in\x20the\x20policy\x20are\x20in\n\x20their\ - \x20desired\x20state.\x20No\x20actions\x20are\x20performed\x20if\x20they\ - \x20are\x20not\x20in\x20the\n\x20desired\x20state.\x20This\x20mode\x20is\ - \x20used\x20for\x20reporting\x20purposes.\n\n\x0e\n\x07\x04\0\x04\0\x02\ - \x01\x01\x12\x03&\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03&\ - \x11\x12\n\x94\x01\n\x06\x04\0\x04\0\x02\x02\x12\x03*\x04\x14\x1a\x84\ - \x01\x20This\x20mode\x20checks\x20if\x20the\x20configuration\x20resource\ - s\x20in\x20the\x20policy\x20are\x20in\n\x20their\x20desired\x20state,\ - \x20and\x20if\x20not,\x20enforces\x20the\x20desired\x20state.\n\n\x0e\n\ - \x07\x04\0\x04\0\x02\x02\x01\x12\x03*\x04\x0f\n\x0e\n\x07\x04\0\x04\0\ - \x02\x02\x02\x12\x03*\x12\x13\nE\n\x04\x04\0\x03\0\x12\x04.\x029\x03\x1a\ - 7\x20Filtering\x20criteria\x20to\x20select\x20VMs\x20based\x20on\x20OS\ - \x20details.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03.\n\x12\ns\n\x06\x04\0\ - \x03\0\x02\0\x12\x031\x04\x1d\x1ad\x20This\x20should\x20match\x20OS\x20s\ - hort\x20name\x20emitted\x20by\x20the\x20OS\x20inventory\x20agent.\n\x20A\ - n\x20empty\x20value\x20matches\x20any\x20OS.\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x05\x12\x031\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x031\x0b\ - \x18\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x031\x1b\x1c\n\x9c\x02\n\x06\ - \x04\0\x03\0\x02\x01\x12\x038\x04\x1a\x1a\x8c\x02\x20This\x20value\x20sh\ - ould\x20match\x20the\x20version\x20emitted\x20by\x20the\x20OS\x20invento\ - ry\n\x20agent.\n\x20Prefix\x20matches\x20are\x20supported\x20if\x20aster\ - isk(*)\x20is\x20provided\x20as\x20the\n\x20last\x20character.\x20For\x20\ - example,\x20to\x20match\x20all\x20versions\x20with\x20a\x20major\n\x20ve\ - rsion\x20of\x20`7`,\x20specify\x20the\x20following\x20value\x20for\x20th\ - is\x20field\x20`7.*`\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x038\x04\ - \n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x038\x0b\x15\n\x0e\n\x07\x04\ - \0\x03\0\x02\x01\x03\x12\x038\x18\x19\nL\n\x04\x04\0\x03\x01\x12\x04<\ - \x02H\x03\x1a>\x20Filtering\x20criteria\x20to\x20select\x20VMs\x20based\ - \x20on\x20inventory\x20details.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03<\ - \n\x19\n,\n\x06\x04\0\x03\x01\x02\0\x12\x03>\x04F\x1a\x1d\x20Required.\ - \x20The\x20OS\x20short\x20name\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\ - \x03>\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03>\x0b\x18\n\x0e\n\ - \x07\x04\0\x03\x01\x02\0\x03\x12\x03>\x1b\x1c\n\x0e\n\x07\x04\0\x03\x01\ - \x02\0\x08\x12\x03>\x1dE\n\x11\n\n\x04\0\x03\x01\x02\0\x08\x9c\x08\0\x12\ - \x03>\x1eD\n\x8f\x02\n\x06\x04\0\x03\x01\x02\x01\x12\x03G\x04\x1a\x1a\ - \xff\x01\x20The\x20OS\x20version\n\n\x20Prefix\x20matches\x20are\x20supp\ - orted\x20if\x20asterisk(*)\x20is\x20provided\x20as\x20the\n\x20last\x20c\ - haracter.\x20For\x20example,\x20to\x20match\x20all\x20versions\x20with\ - \x20a\x20major\n\x20version\x20of\x20`7`,\x20specify\x20the\x20following\ - \x20value\x20for\x20this\x20field\x20`7.*`\n\n\x20An\x20empty\x20string\ - \x20matches\x20all\x20OS\x20versions.\n\n\x0e\n\x07\x04\0\x03\x01\x02\ - \x01\x05\x12\x03G\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03G\ - \x0b\x15\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03G\x18\x19\n\xce\ - \x02\n\x04\x04\0\x03\x02\x12\x05P\x02\xf2\x03\x03\x1a\xbe\x02\x20An\x20O\ - S\x20policy\x20resource\x20is\x20used\x20to\x20define\x20the\x20desired\ - \x20state\x20configuration\n\x20and\x20provides\x20a\x20specific\x20func\ - tionality\x20like\x20installing/removing\x20packages,\n\x20executing\x20\ - a\x20script\x20etc.\n\n\x20The\x20system\x20ensures\x20that\x20resources\ - \x20are\x20always\x20in\x20their\x20desired\x20state\x20by\n\x20taking\ - \x20necessary\x20actions\x20if\x20they\x20have\x20drifted\x20from\x20the\ - ir\x20desired\x20state.\n\n\x0c\n\x05\x04\0\x03\x02\x01\x12\x03P\n\x12\n\ - )\n\x06\x04\0\x03\x02\x03\0\x12\x04R\x04{\x05\x1a\x19\x20A\x20remote\x20\ - or\x20local\x20file.\n\n\x0e\n\x07\x04\0\x03\x02\x03\0\x01\x12\x03R\x0c\ - \x10\n<\n\x08\x04\0\x03\x02\x03\0\x03\0\x12\x04T\x06[\x07\x1a*\x20Specif\ - ies\x20a\x20file\x20available\x20via\x20some\x20URI.\n\n\x10\n\t\x04\0\ - \x03\x02\x03\0\x03\0\x01\x12\x03T\x0e\x14\n\xa1\x01\n\n\x04\0\x03\x02\ - \x03\0\x03\0\x02\0\x12\x03W\x08@\x1a\x8d\x01\x20Required.\x20URI\x20from\ - \x20which\x20to\x20fetch\x20the\x20object.\x20It\x20should\x20contain\ - \x20both\x20the\n\x20protocol\x20and\x20path\x20following\x20the\x20form\ - at\x20`{protocol}://{location}`.\n\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\0\ - \x02\0\x05\x12\x03W\x08\x0e\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\0\x02\0\ - \x01\x12\x03W\x0f\x12\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\0\x02\0\x03\ - \x12\x03W\x15\x16\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\0\x02\0\x08\x12\ - \x03W\x17?\n\x15\n\x0e\x04\0\x03\x02\x03\0\x03\0\x02\0\x08\x9c\x08\0\x12\ - \x03W\x18>\n8\n\n\x04\0\x03\x02\x03\0\x03\0\x02\x01\x12\x03Z\x08#\x1a%\ - \x20SHA256\x20checksum\x20of\x20the\x20remote\x20file.\n\n\x12\n\x0b\x04\ - \0\x03\x02\x03\0\x03\0\x02\x01\x05\x12\x03Z\x08\x0e\n\x12\n\x0b\x04\0\ - \x03\x02\x03\0\x03\0\x02\x01\x01\x12\x03Z\x0f\x1e\n\x12\n\x0b\x04\0\x03\ - \x02\x03\0\x03\0\x02\x01\x03\x12\x03Z!\"\nI\n\x08\x04\0\x03\x02\x03\0\ - \x03\x01\x12\x04^\x06g\x07\x1a7\x20Specifies\x20a\x20file\x20available\ - \x20as\x20a\x20Cloud\x20Storage\x20Object.\n\n\x10\n\t\x04\0\x03\x02\x03\ - \0\x03\x01\x01\x12\x03^\x0e\x11\nB\n\n\x04\0\x03\x02\x03\0\x03\x01\x02\0\ - \x12\x03`\x08C\x1a/\x20Required.\x20Bucket\x20of\x20the\x20Cloud\x20Stor\ - age\x20object.\n\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\x01\x02\0\x05\x12\ - \x03`\x08\x0e\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\x01\x02\0\x01\x12\x03`\ - \x0f\x15\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\x01\x02\0\x03\x12\x03`\x18\ - \x19\n\x12\n\x0b\x04\0\x03\x02\x03\0\x03\x01\x02\0\x08\x12\x03`\x1aB\n\ - \x15\n\x0e\x04\0\x03\x02\x03\0\x03\x01\x02\0\x08\x9c\x08\0\x12\x03`\x1bA\ - \n@\n\n\x04\0\x03\x02\x03\0\x03\x01\x02\x01\x12\x03c\x08C\x1a-\x20Requir\ - ed.\x20Name\x20of\x20the\x20Cloud\x20Storage\x20object.\n\n\x12\n\x0b\ - \x04\0\x03\x02\x03\0\x03\x01\x02\x01\x05\x12\x03c\x08\x0e\n\x12\n\x0b\ - \x04\0\x03\x02\x03\0\x03\x01\x02\x01\x01\x12\x03c\x0f\x15\n\x12\n\x0b\ - \x04\0\x03\x02\x03\0\x03\x01\x02\x01\x03\x12\x03c\x18\x19\n\x12\n\x0b\ - \x04\0\x03\x02\x03\0\x03\x01\x02\x01\x08\x12\x03c\x1aB\n\x15\n\x0e\x04\0\ - \x03\x02\x03\0\x03\x01\x02\x01\x08\x9c\x08\0\x12\x03c\x1bA\nC\n\n\x04\0\ - \x03\x02\x03\0\x03\x01\x02\x02\x12\x03f\x08\x1d\x1a0\x20Generation\x20nu\ - mber\x20of\x20the\x20Cloud\x20Storage\x20object.\n\n\x12\n\x0b\x04\0\x03\ - \x02\x03\0\x03\x01\x02\x02\x05\x12\x03f\x08\r\n\x12\n\x0b\x04\0\x03\x02\ - \x03\0\x03\x01\x02\x02\x01\x12\x03f\x0e\x18\n\x12\n\x0b\x04\0\x03\x02\ - \x03\0\x03\x01\x02\x02\x03\x12\x03f\x1b\x1c\n,\n\x08\x04\0\x03\x02\x03\0\ - \x08\0\x12\x04j\x06s\x07\x1a\x1a\x20A\x20specific\x20type\x20of\x20file.\ - \n\n\x10\n\t\x04\0\x03\x02\x03\0\x08\0\x01\x12\x03j\x0c\x10\n)\n\x08\x04\ - \0\x03\x02\x03\0\x02\0\x12\x03l\x08\x1a\x1a\x18\x20A\x20generic\x20remot\ - e\x20file.\n\n\x10\n\t\x04\0\x03\x02\x03\0\x02\0\x06\x12\x03l\x08\x0e\n\ - \x10\n\t\x04\0\x03\x02\x03\0\x02\0\x01\x12\x03l\x0f\x15\n\x10\n\t\x04\0\ - \x03\x02\x03\0\x02\0\x03\x12\x03l\x18\x19\n*\n\x08\x04\0\x03\x02\x03\0\ - \x02\x01\x12\x03o\x08\x14\x1a\x19\x20A\x20Cloud\x20Storage\x20object.\n\ - \n\x10\n\t\x04\0\x03\x02\x03\0\x02\x01\x06\x12\x03o\x08\x0b\n\x10\n\t\ - \x04\0\x03\x02\x03\0\x02\x01\x01\x12\x03o\x0c\x0f\n\x10\n\t\x04\0\x03\ - \x02\x03\0\x02\x01\x03\x12\x03o\x12\x13\n5\n\x08\x04\0\x03\x02\x03\0\x02\ - \x02\x12\x03r\x08\x1e\x1a$\x20A\x20local\x20path\x20within\x20the\x20VM\ - \x20to\x20use.\n\n\x10\n\t\x04\0\x03\x02\x03\0\x02\x02\x05\x12\x03r\x08\ - \x0e\n\x10\n\t\x04\0\x03\x02\x03\0\x02\x02\x01\x12\x03r\x0f\x19\n\x10\n\ - \t\x04\0\x03\x02\x03\0\x02\x02\x03\x12\x03r\x1c\x1d\n\xd3\x01\n\x08\x04\ - \0\x03\x02\x03\0\x02\x03\x12\x03z\x06\x1e\x1a\xc1\x01\x20Defaults\x20to\ - \x20false.\x20When\x20false,\x20files\x20are\x20subject\x20to\x20validat\ - ions\n\x20based\x20on\x20the\x20file\x20type:\n\n\x20Remote:\x20A\x20che\ - cksum\x20must\x20be\x20specified.\n\x20Cloud\x20Storage:\x20An\x20object\ - \x20generation\x20number\x20must\x20be\x20specified.\n\n\x10\n\t\x04\0\ - \x03\x02\x03\0\x02\x03\x05\x12\x03z\x06\n\n\x10\n\t\x04\0\x03\x02\x03\0\ - \x02\x03\x01\x12\x03z\x0b\x19\n\x10\n\t\x04\0\x03\x02\x03\0\x02\x03\x03\ - \x12\x03z\x1c\x1d\n<\n\x06\x04\0\x03\x02\x03\x01\x12\x05~\x04\xea\x01\ - \x05\x1a+\x20A\x20resource\x20that\x20manages\x20a\x20system\x20package.\ - \n\n\x0e\n\x07\x04\0\x03\x02\x03\x01\x01\x12\x03~\x0c\x1b\nU\n\x08\x04\0\ - \x03\x02\x03\x01\x04\0\x12\x06\x80\x01\x06\x8a\x01\x07\x1aA\x20The\x20de\ - sired\x20state\x20that\x20the\x20OS\x20Config\x20agent\x20maintains\x20o\ - n\x20the\x20VM.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x04\0\x01\x12\x04\x80\ - \x01\x0b\x17\n-\n\n\x04\0\x03\x02\x03\x01\x04\0\x02\0\x12\x04\x82\x01\ - \x08&\x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x01\x04\0\x02\0\x01\x12\x04\x82\x01\x08!\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x01\x04\0\x02\0\x02\x12\x04\x82\x01$%\n;\n\n\x04\0\x03\x02\x03\ - \x01\x04\0\x02\x01\x12\x04\x85\x01\x08\x16\x1a'\x20Ensure\x20that\x20the\ - \x20package\x20is\x20installed.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x04\ - \0\x02\x01\x01\x12\x04\x85\x01\x08\x11\n\x13\n\x0b\x04\0\x03\x02\x03\x01\ - \x04\0\x02\x01\x02\x12\x04\x85\x01\x14\x15\ni\n\n\x04\0\x03\x02\x03\x01\ - \x04\0\x02\x02\x12\x04\x89\x01\x08\x14\x1aU\x20The\x20agent\x20ensures\ - \x20that\x20the\x20package\x20is\x20not\x20installed\x20and\n\x20uninsta\ - lls\x20it\x20if\x20detected.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x04\0\ - \x02\x02\x01\x12\x04\x89\x01\x08\x0f\n\x13\n\x0b\x04\0\x03\x02\x03\x01\ - \x04\0\x02\x02\x02\x12\x04\x89\x01\x12\x13\nU\n\x08\x04\0\x03\x02\x03\ - \x01\x03\0\x12\x06\x8d\x01\x06\x96\x01\x07\x1aA\x20A\x20deb\x20package\ - \x20file.\x20dpkg\x20packages\x20only\x20support\x20INSTALLED\x20state.\ - \n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\0\x01\x12\x04\x8d\x01\x0e\x11\n.\ - \n\n\x04\0\x03\x02\x03\x01\x03\0\x02\0\x12\x04\x8f\x01\x08A\x1a\x1a\x20R\ - equired.\x20A\x20deb\x20package.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\ - \0\x02\0\x06\x12\x04\x8f\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\x02\x03\x01\ - \x03\0\x02\0\x01\x12\x04\x8f\x01\r\x13\n\x13\n\x0b\x04\0\x03\x02\x03\x01\ - \x03\0\x02\0\x03\x12\x04\x8f\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x01\x03\0\x02\0\x08\x12\x04\x8f\x01\x18@\n\x16\n\x0e\x04\0\x03\x02\x03\ - \x01\x03\0\x02\0\x08\x9c\x08\0\x12\x04\x8f\x01\x19?\n\xb8\x01\n\n\x04\0\ - \x03\x02\x03\x01\x03\0\x02\x01\x12\x04\x95\x01\x08\x1b\x1a\xa3\x01\x20Wh\ - ether\x20dependencies\x20should\x20also\x20be\x20installed.\n\x20-\x20in\ - stall\x20when\x20false:\x20`dpkg\x20-i\x20package`\n\x20-\x20install\x20\ - when\x20true:\x20`apt-get\x20update\x20&&\x20apt-get\x20-y\x20install\n\ - \x20package.deb`\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\0\x02\x01\x05\ - \x12\x04\x95\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\0\x02\x01\ - \x01\x12\x04\x95\x01\r\x16\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\0\x02\ - \x01\x03\x12\x04\x95\x01\x19\x1a\n\x8f\x01\n\x08\x04\0\x03\x02\x03\x01\ - \x03\x01\x12\x06\x9b\x01\x06\x9e\x01\x07\x1a{\x20A\x20package\x20managed\ - \x20by\x20APT.\n\x20-\x20install:\x20`apt-get\x20update\x20&&\x20apt-get\ - \x20-y\x20install\x20[name]`\n\x20-\x20remove:\x20`apt-get\x20-y\x20remo\ - ve\x20[name]`\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\x01\x01\x12\x04\x9b\ - \x01\x0e\x11\n-\n\n\x04\0\x03\x02\x03\x01\x03\x01\x02\0\x12\x04\x9d\x01\ - \x08A\x1a\x19\x20Required.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x01\x03\x01\x02\0\x05\x12\x04\x9d\x01\x08\x0e\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x01\x03\x01\x02\0\x01\x12\x04\x9d\x01\x0f\x13\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x01\x02\0\x03\x12\x04\x9d\x01\x16\x17\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x01\x03\x01\x02\0\x08\x12\x04\x9d\x01\x18@\n\x16\ - \n\x0e\x04\0\x03\x02\x03\x01\x03\x01\x02\0\x08\x9c\x08\0\x12\x04\x9d\x01\ - \x19?\nU\n\x08\x04\0\x03\x02\x03\x01\x03\x02\x12\x06\xa1\x01\x06\xaa\x01\ - \x07\x1aA\x20An\x20RPM\x20package\x20file.\x20RPM\x20packages\x20only\ - \x20support\x20INSTALLED\x20state.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\ - \x02\x01\x12\x04\xa1\x01\x0e\x11\n/\n\n\x04\0\x03\x02\x03\x01\x03\x02\ - \x02\0\x12\x04\xa3\x01\x08A\x1a\x1b\x20Required.\x20An\x20rpm\x20package\ - .\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x02\x02\0\x06\x12\x04\xa3\x01\ - \x08\x0c\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x02\x02\0\x01\x12\x04\xa3\ - \x01\r\x13\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x02\x02\0\x03\x12\x04\ - \xa3\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x02\x02\0\x08\x12\ - \x04\xa3\x01\x18@\n\x16\n\x0e\x04\0\x03\x02\x03\x01\x03\x02\x02\0\x08\ - \x9c\x08\0\x12\x04\xa3\x01\x19?\n\xdd\x01\n\n\x04\0\x03\x02\x03\x01\x03\ - \x02\x02\x01\x12\x04\xa9\x01\x08\x1b\x1a\xc8\x01\x20Whether\x20dependenc\ - ies\x20should\x20also\x20be\x20installed.\n\x20-\x20install\x20when\x20f\ - alse:\x20`rpm\x20--upgrade\x20--replacepkgs\x20package.rpm`\n\x20-\x20in\ - stall\x20when\x20true:\x20`yum\x20-y\x20install\x20package.rpm`\x20or\n\ - \x20`zypper\x20-y\x20install\x20package.rpm`\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x01\x03\x02\x02\x01\x05\x12\x04\xa9\x01\x08\x0c\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x01\x03\x02\x02\x01\x01\x12\x04\xa9\x01\r\x16\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x02\x02\x01\x03\x12\x04\xa9\x01\x19\x1a\nw\n\ - \x08\x04\0\x03\x02\x03\x01\x03\x03\x12\x06\xaf\x01\x06\xb2\x01\x07\x1ac\ - \x20A\x20package\x20managed\x20by\x20YUM.\n\x20-\x20install:\x20`yum\x20\ - -y\x20install\x20package`\n\x20-\x20remove:\x20`yum\x20-y\x20remove\x20p\ - ackage`\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\x03\x01\x12\x04\xaf\x01\ - \x0e\x11\n-\n\n\x04\0\x03\x02\x03\x01\x03\x03\x02\0\x12\x04\xb1\x01\x08A\ - \x1a\x19\x20Required.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x01\x03\x03\x02\0\x05\x12\x04\xb1\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x01\x03\x03\x02\0\x01\x12\x04\xb1\x01\x0f\x13\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x01\x03\x03\x02\0\x03\x12\x04\xb1\x01\x16\x17\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x03\x02\0\x08\x12\x04\xb1\x01\x18@\n\x16\n\ - \x0e\x04\0\x03\x02\x03\x01\x03\x03\x02\0\x08\x9c\x08\0\x12\x04\xb1\x01\ - \x19?\n|\n\x08\x04\0\x03\x02\x03\x01\x03\x04\x12\x06\xb7\x01\x06\xba\x01\ - \x07\x1ah\x20A\x20package\x20managed\x20by\x20Zypper.\n\x20-\x20install:\ - \x20`zypper\x20-y\x20install\x20package`\n\x20-\x20remove:\x20`zypper\ - \x20-y\x20rm\x20package`\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\x04\x01\ - \x12\x04\xb7\x01\x0e\x14\n-\n\n\x04\0\x03\x02\x03\x01\x03\x04\x02\0\x12\ - \x04\xb9\x01\x08A\x1a\x19\x20Required.\x20Package\x20name.\n\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x04\x02\0\x05\x12\x04\xb9\x01\x08\x0e\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x01\x03\x04\x02\0\x01\x12\x04\xb9\x01\x0f\x13\n\ - \x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x04\x02\0\x03\x12\x04\xb9\x01\x16\ - \x17\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x04\x02\0\x08\x12\x04\xb9\x01\ - \x18@\n\x16\n\x0e\x04\0\x03\x02\x03\x01\x03\x04\x02\0\x08\x9c\x08\0\x12\ - \x04\xb9\x01\x19?\n\x90\x01\n\x08\x04\0\x03\x02\x03\x01\x03\x05\x12\x06\ - \xbf\x01\x06\xc2\x01\x07\x1a|\x20A\x20package\x20managed\x20by\x20GooGet\ - .\n\x20-\x20install:\x20`googet\x20-noconfirm\x20install\x20package`\n\ - \x20-\x20remove:\x20`googet\x20-noconfirm\x20remove\x20package`\n\n\x11\ - \n\t\x04\0\x03\x02\x03\x01\x03\x05\x01\x12\x04\xbf\x01\x0e\x14\n-\n\n\ - \x04\0\x03\x02\x03\x01\x03\x05\x02\0\x12\x04\xc1\x01\x08A\x1a\x19\x20Req\ - uired.\x20Package\x20name.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\x05\ - \x02\0\x05\x12\x04\xc1\x01\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x01\x03\ - \x05\x02\0\x01\x12\x04\xc1\x01\x0f\x13\n\x13\n\x0b\x04\0\x03\x02\x03\x01\ - \x03\x05\x02\0\x03\x12\x04\xc1\x01\x16\x17\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x01\x03\x05\x02\0\x08\x12\x04\xc1\x01\x18@\n\x16\n\x0e\x04\0\x03\x02\ - \x03\x01\x03\x05\x02\0\x08\x9c\x08\0\x12\x04\xc1\x01\x19?\nP\n\x08\x04\0\ - \x03\x02\x03\x01\x03\x06\x12\x06\xc5\x01\x06\xce\x01\x07\x1a<\x20An\x20M\ - SI\x20package.\x20MSI\x20packages\x20only\x20support\x20INSTALLED\x20sta\ - te.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x03\x06\x01\x12\x04\xc5\x01\x0e\ - \x11\n0\n\n\x04\0\x03\x02\x03\x01\x03\x06\x02\0\x12\x04\xc7\x01\x08A\x1a\ - \x1c\x20Required.\x20The\x20MSI\x20package.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x01\x03\x06\x02\0\x06\x12\x04\xc7\x01\x08\x0c\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x01\x03\x06\x02\0\x01\x12\x04\xc7\x01\r\x13\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x01\x03\x06\x02\0\x03\x12\x04\xc7\x01\x16\x17\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x06\x02\0\x08\x12\x04\xc7\x01\x18@\n\x16\n\ - \x0e\x04\0\x03\x02\x03\x01\x03\x06\x02\0\x08\x9c\x08\0\x12\x04\xc7\x01\ - \x19?\n\xc1\x01\n\n\x04\0\x03\x02\x03\x01\x03\x06\x02\x01\x12\x04\xcd\ - \x01\x08'\x1a\xac\x01\x20Additional\x20properties\x20to\x20use\x20during\ - \x20installation.\n\x20This\x20should\x20be\x20in\x20the\x20format\x20of\ - \x20Property=Setting.\n\x20Appended\x20to\x20the\x20defaults\x20of\x20`A\ - CTION=INSTALL\n\x20REBOOT=ReallySuppress`.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x01\x03\x06\x02\x01\x04\x12\x04\xcd\x01\x08\x10\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x01\x03\x06\x02\x01\x05\x12\x04\xcd\x01\x11\x17\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x01\x03\x06\x02\x01\x01\x12\x04\xcd\x01\x18\"\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x01\x03\x06\x02\x01\x03\x12\x04\xcd\x01%&\n[\n\ - \x08\x04\0\x03\x02\x03\x01\x02\0\x12\x04\xd1\x01\x06N\x1aI\x20Required.\ - \x20The\x20desired\x20state\x20the\x20agent\x20should\x20maintain\x20for\ - \x20this\x20package.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\0\x06\x12\x04\ - \xd1\x01\x06\x12\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\0\x01\x12\x04\xd1\ - \x01\x13\x20\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\0\x03\x12\x04\xd1\x01#$\ - \n\x11\n\t\x04\0\x03\x02\x03\x01\x02\0\x08\x12\x04\xd1\x01%M\n\x14\n\x0c\ - \x04\0\x03\x02\x03\x01\x02\0\x08\x9c\x08\0\x12\x04\xd1\x01&L\n'\n\x08\ - \x04\0\x03\x02\x03\x01\x08\0\x12\x06\xd4\x01\x06\xe9\x01\x07\x1a\x13\x20\ - A\x20system\x20package.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x08\0\x01\x12\ - \x04\xd4\x01\x0c\x1a\n-\n\x08\x04\0\x03\x02\x03\x01\x02\x01\x12\x04\xd6\ - \x01\x08\x14\x1a\x1b\x20A\x20package\x20managed\x20by\x20Apt.\n\n\x11\n\ - \t\x04\0\x03\x02\x03\x01\x02\x01\x06\x12\x04\xd6\x01\x08\x0b\n\x11\n\t\ - \x04\0\x03\x02\x03\x01\x02\x01\x01\x12\x04\xd6\x01\x0c\x0f\n\x11\n\t\x04\ - \0\x03\x02\x03\x01\x02\x01\x03\x12\x04\xd6\x01\x12\x13\n'\n\x08\x04\0\ - \x03\x02\x03\x01\x02\x02\x12\x04\xd9\x01\x08\x14\x1a\x15\x20A\x20deb\x20\ - package\x20file.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x02\x06\x12\x04\ - \xd9\x01\x08\x0b\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x02\x01\x12\x04\xd9\ - \x01\x0c\x0f\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x02\x03\x12\x04\xd9\x01\ - \x12\x13\n-\n\x08\x04\0\x03\x02\x03\x01\x02\x03\x12\x04\xdc\x01\x08\x14\ - \x1a\x1b\x20A\x20package\x20managed\x20by\x20YUM.\n\n\x11\n\t\x04\0\x03\ - \x02\x03\x01\x02\x03\x06\x12\x04\xdc\x01\x08\x0b\n\x11\n\t\x04\0\x03\x02\ - \x03\x01\x02\x03\x01\x12\x04\xdc\x01\x0c\x0f\n\x11\n\t\x04\0\x03\x02\x03\ - \x01\x02\x03\x03\x12\x04\xdc\x01\x12\x13\n0\n\x08\x04\0\x03\x02\x03\x01\ - \x02\x04\x12\x04\xdf\x01\x08\x1a\x1a\x1e\x20A\x20package\x20managed\x20b\ - y\x20Zypper.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x04\x06\x12\x04\xdf\ - \x01\x08\x0e\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x04\x01\x12\x04\xdf\x01\ - \x0f\x15\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x04\x03\x12\x04\xdf\x01\x18\ - \x19\n(\n\x08\x04\0\x03\x02\x03\x01\x02\x05\x12\x04\xe2\x01\x08\x14\x1a\ - \x16\x20An\x20rpm\x20package\x20file.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\ - \x02\x05\x06\x12\x04\xe2\x01\x08\x0b\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\ - \x05\x01\x12\x04\xe2\x01\x0c\x0f\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x05\ - \x03\x12\x04\xe2\x01\x12\x13\n0\n\x08\x04\0\x03\x02\x03\x01\x02\x06\x12\ - \x04\xe5\x01\x08\x1a\x1a\x1e\x20A\x20package\x20managed\x20by\x20GooGet.\ - \n\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x06\x06\x12\x04\xe5\x01\x08\x0e\n\ - \x11\n\t\x04\0\x03\x02\x03\x01\x02\x06\x01\x12\x04\xe5\x01\x0f\x15\n\x11\ - \n\t\x04\0\x03\x02\x03\x01\x02\x06\x03\x12\x04\xe5\x01\x18\x19\n#\n\x08\ - \x04\0\x03\x02\x03\x01\x02\x07\x12\x04\xe8\x01\x08\x14\x1a\x11\x20An\x20\ - MSI\x20package.\n\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x07\x06\x12\x04\ - \xe8\x01\x08\x0b\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x07\x01\x12\x04\xe8\ - \x01\x0c\x0f\n\x11\n\t\x04\0\x03\x02\x03\x01\x02\x07\x03\x12\x04\xe8\x01\ - \x12\x13\nA\n\x06\x04\0\x03\x02\x03\x02\x12\x06\xed\x01\x04\xd1\x02\x05\ - \x1a/\x20A\x20resource\x20that\x20manages\x20a\x20package\x20repository.\ - \n\n\x0f\n\x07\x04\0\x03\x02\x03\x02\x01\x12\x04\xed\x01\x0c\x1e\n\xaf\ - \x01\n\x08\x04\0\x03\x02\x03\x02\x03\0\x12\x06\xf1\x01\x06\x8e\x02\x07\ - \x1a\x9a\x01\x20Represents\x20a\x20single\x20apt\x20package\x20repositor\ - y.\x20These\x20will\x20be\x20added\x20to\n\x20a\x20repo\x20file\x20that\ - \x20will\x20be\x20managed\x20at\n\x20`/etc/apt/sources.list.d/google_osc\ - onfig.list`.\n\n\x11\n\t\x04\0\x03\x02\x03\x02\x03\0\x01\x12\x04\xf1\x01\ - \x0e\x1b\n(\n\n\x04\0\x03\x02\x03\x02\x03\0\x04\0\x12\x06\xf3\x01\x08\ - \xfc\x01\t\x1a\x12\x20Type\x20of\x20archive.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x02\x03\0\x04\0\x01\x12\x04\xf3\x01\r\x18\n/\n\x0c\x04\0\x03\x02\ - \x03\x02\x03\0\x04\0\x02\0\x12\x04\xf5\x01\n'\x1a\x19\x20Unspecified\x20\ - is\x20invalid.\n\n\x15\n\r\x04\0\x03\x02\x03\x02\x03\0\x04\0\x02\0\x01\ - \x12\x04\xf5\x01\n\"\n\x15\n\r\x04\0\x03\x02\x03\x02\x03\0\x04\0\x02\0\ - \x02\x12\x04\xf5\x01%&\nM\n\x0c\x04\0\x03\x02\x03\x02\x03\0\x04\0\x02\ - \x01\x12\x04\xf8\x01\n\x12\x1a7\x20Deb\x20indicates\x20that\x20the\x20ar\ - chive\x20contains\x20binary\x20files.\n\n\x15\n\r\x04\0\x03\x02\x03\x02\ - \x03\0\x04\0\x02\x01\x01\x12\x04\xf8\x01\n\r\n\x15\n\r\x04\0\x03\x02\x03\ - \x02\x03\0\x04\0\x02\x01\x02\x12\x04\xf8\x01\x10\x11\nQ\n\x0c\x04\0\x03\ - \x02\x03\x02\x03\0\x04\0\x02\x02\x12\x04\xfb\x01\n\x16\x1a;\x20Deb-src\ - \x20indicates\x20that\x20the\x20archive\x20contains\x20source\x20files.\ - \n\n\x15\n\r\x04\0\x03\x02\x03\x02\x03\0\x04\0\x02\x02\x01\x12\x04\xfb\ - \x01\n\x11\n\x15\n\r\x04\0\x03\x02\x03\x02\x03\0\x04\0\x02\x02\x02\x12\ - \x04\xfb\x01\x14\x15\nI\n\n\x04\0\x03\x02\x03\x02\x03\0\x02\0\x12\x04\ - \xff\x01\x08N\x1a5\x20Required.\x20Type\x20of\x20archive\x20files\x20in\ - \x20this\x20repository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\0\ - \x06\x12\x04\xff\x01\x08\x13\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\ - \0\x01\x12\x04\xff\x01\x14\x20\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\ - \x02\0\x03\x12\x04\xff\x01#$\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\ - \0\x08\x12\x04\xff\x01%M\n\x16\n\x0e\x04\0\x03\x02\x03\x02\x03\0\x02\0\ - \x08\x9c\x08\0\x12\x04\xff\x01&L\n8\n\n\x04\0\x03\x02\x03\x02\x03\0\x02\ - \x01\x12\x04\x82\x02\x08@\x1a$\x20Required.\x20URI\x20for\x20this\x20rep\ - ository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\x01\x05\x12\x04\ - \x82\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\x01\x01\x12\ - \x04\x82\x02\x0f\x12\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\x01\x03\ - \x12\x04\x82\x02\x15\x16\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\x01\ - \x08\x12\x04\x82\x02\x17?\n\x16\n\x0e\x04\0\x03\x02\x03\x02\x03\0\x02\ - \x01\x08\x9c\x08\0\x12\x04\x82\x02\x18>\n@\n\n\x04\0\x03\x02\x03\x02\x03\ - \0\x02\x02\x12\x04\x85\x02\x08I\x1a,\x20Required.\x20Distribution\x20of\ - \x20this\x20repository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\x02\ - \x02\x05\x12\x04\x85\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\ - \x02\x02\x01\x12\x04\x85\x02\x0f\x1b\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\0\x02\x02\x03\x12\x04\x85\x02\x1e\x1f\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x02\x03\0\x02\x02\x08\x12\x04\x85\x02\x20H\n\x16\n\x0e\x04\0\x03\x02\ - \x03\x02\x03\0\x02\x02\x08\x9c\x08\0\x12\x04\x85\x02!G\nh\n\n\x04\0\x03\ - \x02\x03\x02\x03\0\x02\x03\x12\x04\x89\x02\x08P\x1aT\x20Required.\x20Lis\ - t\x20of\x20components\x20for\x20this\x20repository.\x20Must\x20contain\ - \x20at\x20least\x20one\n\x20item.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\0\x02\x03\x04\x12\x04\x89\x02\x08\x10\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x02\x03\0\x02\x03\x05\x12\x04\x89\x02\x11\x17\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x02\x03\0\x02\x03\x01\x12\x04\x89\x02\x18\"\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x02\x03\0\x02\x03\x03\x12\x04\x89\x02%&\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x02\x03\0\x02\x03\x08\x12\x04\x89\x02'O\n\x16\n\x0e\x04\0\x03\ - \x02\x03\x02\x03\0\x02\x03\x08\x9c\x08\0\x12\x04\x89\x02(N\n\x96\x01\n\n\ - \x04\0\x03\x02\x03\x02\x03\0\x02\x04\x12\x04\x8d\x02\x08\x1b\x1a\x81\x01\ - \x20URI\x20of\x20the\x20key\x20file\x20for\x20this\x20repository.\x20The\ - \x20agent\x20maintains\x20a\n\x20keyring\x20at\x20`/etc/apt/trusted.gpg.\ - d/osconfig_agent_managed.gpg`.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\0\ - \x02\x04\x05\x12\x04\x8d\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\0\x02\x04\x01\x12\x04\x8d\x02\x0f\x16\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x02\x03\0\x02\x04\x03\x12\x04\x8d\x02\x19\x1a\n\x9f\x01\n\x08\x04\0\x03\ - \x02\x03\x02\x03\x01\x12\x06\x93\x02\x06\xa2\x02\x07\x1a\x8a\x01\x20Repr\ - esents\x20a\x20single\x20yum\x20package\x20repository.\x20These\x20are\ - \x20added\x20to\x20a\n\x20repo\x20file\x20that\x20is\x20managed\x20at\n\ - \x20`/etc/yum.repos.d/google_osconfig.repo`.\n\n\x11\n\t\x04\0\x03\x02\ - \x03\x02\x03\x01\x01\x12\x04\x93\x02\x0e\x1b\n\x8c\x02\n\n\x04\0\x03\x02\ - \x03\x02\x03\x01\x02\0\x12\x04\x98\x02\x08?\x1a\xf7\x01\x20Required.\x20\ - A\x20one\x20word,\x20unique\x20name\x20for\x20this\x20repository.\x20Thi\ - s\x20is\x20\x20the\x20`repo\n\x20id`\x20in\x20the\x20yum\x20config\x20fi\ - le\x20and\x20also\x20the\x20`display_name`\x20if\n\x20`display_name`\x20\ - is\x20omitted.\x20This\x20id\x20is\x20also\x20used\x20as\x20the\x20uniqu\ - e\n\x20identifier\x20when\x20checking\x20for\x20resource\x20conflicts.\n\ - \n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\0\x05\x12\x04\x98\x02\x08\ - \x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\0\x01\x12\x04\x98\x02\ - \x0f\x11\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\0\x03\x12\x04\x98\ - \x02\x14\x15\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\0\x08\x12\x04\ - \x98\x02\x16>\n\x16\n\x0e\x04\0\x03\x02\x03\x02\x03\x01\x02\0\x08\x9c\ - \x08\0\x12\x04\x98\x02\x17=\n9\n\n\x04\0\x03\x02\x03\x02\x03\x01\x02\x01\ - \x12\x04\x9b\x02\x08\x20\x1a%\x20The\x20display\x20name\x20of\x20the\x20\ - repository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\x01\x05\x12\ - \x04\x9b\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\x01\ - \x01\x12\x04\x9b\x02\x0f\x1b\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\ - \x02\x01\x03\x12\x04\x9b\x02\x1e\x1f\nI\n\n\x04\0\x03\x02\x03\x02\x03\ - \x01\x02\x02\x12\x04\x9e\x02\x08E\x1a5\x20Required.\x20The\x20location\ - \x20of\x20the\x20repository\x20directory.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x02\x03\x01\x02\x02\x05\x12\x04\x9e\x02\x08\x0e\n\x13\n\x0b\x04\0\ - \x03\x02\x03\x02\x03\x01\x02\x02\x01\x12\x04\x9e\x02\x0f\x17\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x02\x03\x01\x02\x02\x03\x12\x04\x9e\x02\x1a\x1b\n\x13\ - \n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\x02\x08\x12\x04\x9e\x02\x1cD\n\ - \x16\n\x0e\x04\0\x03\x02\x03\x02\x03\x01\x02\x02\x08\x9c\x08\0\x12\x04\ - \x9e\x02\x1dC\n'\n\n\x04\0\x03\x02\x03\x02\x03\x01\x02\x03\x12\x04\xa1\ - \x02\x08%\x1a\x13\x20URIs\x20of\x20GPG\x20keys.\n\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x02\x03\x01\x02\x03\x04\x12\x04\xa1\x02\x08\x10\n\x13\n\x0b\x04\ - \0\x03\x02\x03\x02\x03\x01\x02\x03\x05\x12\x04\xa1\x02\x11\x17\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\x03\x01\x12\x04\xa1\x02\x18\x20\n\ - \x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x01\x02\x03\x03\x12\x04\xa1\x02#$\n\ - \xa3\x01\n\x08\x04\0\x03\x02\x03\x02\x03\x02\x12\x06\xa7\x02\x06\xb6\x02\ - \x07\x1a\x8e\x01\x20Represents\x20a\x20single\x20zypper\x20package\x20re\ - pository.\x20These\x20are\x20added\x20to\x20a\n\x20repo\x20file\x20that\ - \x20is\x20managed\x20at\n\x20`/etc/zypp/repos.d/google_osconfig.repo`.\n\ - \n\x11\n\t\x04\0\x03\x02\x03\x02\x03\x02\x01\x12\x04\xa7\x02\x0e\x1e\n\ - \x91\x02\n\n\x04\0\x03\x02\x03\x02\x03\x02\x02\0\x12\x04\xac\x02\x08?\ - \x1a\xfc\x01\x20Required.\x20A\x20one\x20word,\x20unique\x20name\x20for\ - \x20this\x20repository.\x20This\x20is\x20the\x20`repo\n\x20id`\x20in\x20\ - the\x20zypper\x20config\x20file\x20and\x20also\x20the\x20`display_name`\ - \x20if\n\x20`display_name`\x20is\x20omitted.\x20This\x20id\x20is\x20also\ - \x20used\x20as\x20the\x20unique\n\x20identifier\x20when\x20checking\x20f\ - or\x20GuestPolicy\x20conflicts.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\ - \x02\x02\0\x05\x12\x04\xac\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\x02\x02\0\x01\x12\x04\xac\x02\x0f\x11\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x02\x03\x02\x02\0\x03\x12\x04\xac\x02\x14\x15\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x02\x03\x02\x02\0\x08\x12\x04\xac\x02\x16>\n\x16\n\x0e\x04\0\x03\ - \x02\x03\x02\x03\x02\x02\0\x08\x9c\x08\0\x12\x04\xac\x02\x17=\n9\n\n\x04\ - \0\x03\x02\x03\x02\x03\x02\x02\x01\x12\x04\xaf\x02\x08\x20\x1a%\x20The\ - \x20display\x20name\x20of\x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x02\x03\x02\x02\x01\x05\x12\x04\xaf\x02\x08\x0e\n\x13\n\x0b\x04\ - \0\x03\x02\x03\x02\x03\x02\x02\x01\x01\x12\x04\xaf\x02\x0f\x1b\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x01\x03\x12\x04\xaf\x02\x1e\x1f\n\ - I\n\n\x04\0\x03\x02\x03\x02\x03\x02\x02\x02\x12\x04\xb2\x02\x08E\x1a5\ - \x20Required.\x20The\x20location\x20of\x20the\x20repository\x20directory\ - .\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x02\x05\x12\x04\xb2\ - \x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x02\x01\x12\ - \x04\xb2\x02\x0f\x17\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x02\ - \x03\x12\x04\xb2\x02\x1a\x1b\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\ - \x02\x02\x08\x12\x04\xb2\x02\x1cD\n\x16\n\x0e\x04\0\x03\x02\x03\x02\x03\ - \x02\x02\x02\x08\x9c\x08\0\x12\x04\xb2\x02\x1dC\n'\n\n\x04\0\x03\x02\x03\ - \x02\x03\x02\x02\x03\x12\x04\xb5\x02\x08%\x1a\x13\x20URIs\x20of\x20GPG\ - \x20keys.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x03\x04\x12\ - \x04\xb5\x02\x08\x10\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\x02\x03\ - \x05\x12\x04\xb5\x02\x11\x17\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x02\ - \x02\x03\x01\x12\x04\xb5\x02\x18\x20\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\x02\x02\x03\x03\x12\x04\xb5\x02#$\n\xa3\x01\n\x08\x04\0\x03\x02\x03\ - \x02\x03\x03\x12\x06\xbb\x02\x06\xc1\x02\x07\x1a\x8e\x01\x20Represents\ - \x20a\x20Goo\x20package\x20repository.\x20These\x20are\x20added\x20to\ - \x20a\x20repo\x20file\n\x20that\x20is\x20managed\x20at\n\x20`C:/ProgramD\ - ata/GooGet/repos/google_osconfig.repo`.\n\n\x11\n\t\x04\0\x03\x02\x03\ - \x02\x03\x03\x01\x12\x04\xbb\x02\x0e\x1b\n;\n\n\x04\0\x03\x02\x03\x02\ - \x03\x03\x02\0\x12\x04\xbd\x02\x08A\x1a'\x20Required.\x20The\x20name\x20\ - of\x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x03\x02\ - \0\x05\x12\x04\xbd\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\x03\ - \x02\0\x01\x12\x04\xbd\x02\x0f\x13\n\x13\n\x0b\x04\0\x03\x02\x03\x02\x03\ - \x03\x02\0\x03\x12\x04\xbd\x02\x16\x17\n\x13\n\x0b\x04\0\x03\x02\x03\x02\ - \x03\x03\x02\0\x08\x12\x04\xbd\x02\x18@\n\x16\n\x0e\x04\0\x03\x02\x03\ - \x02\x03\x03\x02\0\x08\x9c\x08\0\x12\x04\xbd\x02\x19?\n:\n\n\x04\0\x03\ - \x02\x03\x02\x03\x03\x02\x01\x12\x04\xc0\x02\x08@\x1a&\x20Required.\x20T\ - he\x20url\x20of\x20the\x20repository.\n\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x02\x03\x03\x02\x01\x05\x12\x04\xc0\x02\x08\x0e\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x02\x03\x03\x02\x01\x01\x12\x04\xc0\x02\x0f\x12\n\x13\n\x0b\x04\ - \0\x03\x02\x03\x02\x03\x03\x02\x01\x03\x12\x04\xc0\x02\x15\x16\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x02\x03\x03\x02\x01\x08\x12\x04\xc0\x02\x17?\n\ - \x16\n\x0e\x04\0\x03\x02\x03\x02\x03\x03\x02\x01\x08\x9c\x08\0\x12\x04\ - \xc0\x02\x18>\n4\n\x08\x04\0\x03\x02\x03\x02\x08\0\x12\x06\xc4\x02\x06\ - \xd0\x02\x07\x1a\x20\x20A\x20specific\x20type\x20of\x20repository.\n\n\ - \x11\n\t\x04\0\x03\x02\x03\x02\x08\0\x01\x12\x04\xc4\x02\x0c\x16\n&\n\ - \x08\x04\0\x03\x02\x03\x02\x02\0\x12\x04\xc6\x02\x08\x1e\x1a\x14\x20An\ - \x20Apt\x20Repository.\n\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\0\x06\x12\ - \x04\xc6\x02\x08\x15\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\0\x01\x12\x04\ - \xc6\x02\x16\x19\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\0\x03\x12\x04\xc6\ - \x02\x1c\x1d\n%\n\x08\x04\0\x03\x02\x03\x02\x02\x01\x12\x04\xc9\x02\x08\ - \x1e\x1a\x13\x20A\x20Yum\x20Repository.\n\n\x11\n\t\x04\0\x03\x02\x03\ - \x02\x02\x01\x06\x12\x04\xc9\x02\x08\x15\n\x11\n\t\x04\0\x03\x02\x03\x02\ - \x02\x01\x01\x12\x04\xc9\x02\x16\x19\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\ - \x01\x03\x12\x04\xc9\x02\x1c\x1d\n(\n\x08\x04\0\x03\x02\x03\x02\x02\x02\ - \x12\x04\xcc\x02\x08$\x1a\x16\x20A\x20Zypper\x20Repository.\n\n\x11\n\t\ - \x04\0\x03\x02\x03\x02\x02\x02\x06\x12\x04\xcc\x02\x08\x18\n\x11\n\t\x04\ - \0\x03\x02\x03\x02\x02\x02\x01\x12\x04\xcc\x02\x19\x1f\n\x11\n\t\x04\0\ - \x03\x02\x03\x02\x02\x02\x03\x12\x04\xcc\x02\"#\n%\n\x08\x04\0\x03\x02\ - \x03\x02\x02\x03\x12\x04\xcf\x02\x08\x1e\x1a\x13\x20A\x20Goo\x20Reposito\ - ry.\n\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\x03\x06\x12\x04\xcf\x02\x08\ - \x15\n\x11\n\t\x04\0\x03\x02\x03\x02\x02\x03\x01\x12\x04\xcf\x02\x16\x19\ - \n\x11\n\t\x04\0\x03\x02\x03\x02\x02\x03\x03\x12\x04\xcf\x02\x1c\x1d\n\ - \x8a\x0b\n\x06\x04\0\x03\x02\x03\x03\x12\x06\xed\x02\x04\xa7\x03\x05\x1a\ - \xf7\n\x20A\x20resource\x20that\x20allows\x20executing\x20scripts\x20on\ - \x20the\x20VM.\n\n\x20The\x20`ExecResource`\x20has\x202\x20stages:\x20`v\ - alidate`\x20and\x20`enforce`\x20and\x20both\x20stages\n\x20accept\x20a\ - \x20script\x20as\x20an\x20argument\x20to\x20execute.\n\n\x20When\x20the\ - \x20`ExecResource`\x20is\x20applied\x20by\x20the\x20agent,\x20it\x20firs\ - t\x20executes\x20the\n\x20script\x20in\x20the\x20`validate`\x20stage.\ - \x20The\x20`validate`\x20stage\x20can\x20signal\x20that\x20the\n\x20`Exe\ - cResource`\x20is\x20already\x20in\x20the\x20desired\x20state\x20by\x20re\ - turning\x20an\x20exit\x20code\n\x20of\x20`100`.\x20If\x20the\x20`ExecRes\ - ource`\x20is\x20not\x20in\x20the\x20desired\x20state,\x20it\x20should\n\ - \x20return\x20an\x20exit\x20code\x20of\x20`101`.\x20Any\x20other\x20exit\ - \x20code\x20returned\x20by\x20this\x20stage\n\x20is\x20considered\x20an\ - \x20error.\n\n\x20If\x20the\x20`ExecResource`\x20is\x20not\x20in\x20the\ - \x20desired\x20state\x20based\x20on\x20the\x20exit\x20code\n\x20from\x20\ - the\x20`validate`\x20stage,\x20the\x20agent\x20proceeds\x20to\x20execute\ - \x20the\x20script\x20from\n\x20the\x20`enforce`\x20stage.\x20If\x20the\ - \x20`ExecResource`\x20is\x20already\x20in\x20the\x20desired\n\x20state,\ - \x20the\x20`enforce`\x20stage\x20will\x20not\x20be\x20run.\n\x20Similar\ - \x20to\x20`validate`\x20stage,\x20the\x20`enforce`\x20stage\x20should\ - \x20return\x20an\x20exit\n\x20code\x20of\x20`100`\x20to\x20indicate\x20t\ - hat\x20the\x20resource\x20in\x20now\x20in\x20its\x20desired\x20state.\n\ - \x20Any\x20other\x20exit\x20code\x20is\x20considered\x20an\x20error.\n\n\ - \x20NOTE:\x20An\x20exit\x20code\x20of\x20`100`\x20was\x20chosen\x20over\ - \x20`0`\x20(and\x20`101`\x20vs\x20`1`)\x20to\n\x20have\x20an\x20explicit\ - \x20indicator\x20of\x20`in\x20desired\x20state`,\x20`not\x20in\x20desire\ - d\x20state`\n\x20and\x20errors.\x20Because,\x20for\x20example,\x20Powers\ - hell\x20will\x20always\x20return\x20an\x20exit\n\x20code\x20of\x20`0`\ - \x20unless\x20an\x20`exit`\x20statement\x20is\x20provided\x20in\x20the\ - \x20script.\x20So,\x20for\n\x20reasons\x20of\x20consistency\x20and\x20be\ - ing\x20explicit,\x20exit\x20codes\x20`100`\x20and\x20`101`\n\x20were\x20\ - chosen.\n\n\x0f\n\x07\x04\0\x03\x02\x03\x03\x01\x12\x04\xed\x02\x0c\x18\ - \n2\n\x08\x04\0\x03\x02\x03\x03\x03\0\x12\x06\xef\x02\x06\x9b\x03\x07\ - \x1a\x1e\x20A\x20file\x20or\x20script\x20to\x20execute.\n\n\x11\n\t\x04\ - \0\x03\x02\x03\x03\x03\0\x01\x12\x04\xef\x02\x0e\x12\n/\n\n\x04\0\x03\ - \x02\x03\x03\x03\0\x04\0\x12\x06\xf1\x02\x08\x82\x03\t\x1a\x19\x20The\ - \x20interpreter\x20to\x20use.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\ - \x04\0\x01\x12\x04\xf1\x02\r\x18\nP\n\x0c\x04\0\x03\x02\x03\x03\x03\0\ - \x04\0\x02\0\x12\x04\xf3\x02\n&\x1a:\x20Invalid\x20value,\x20the\x20requ\ - est\x20will\x20return\x20validation\x20error.\n\n\x15\n\r\x04\0\x03\x02\ - \x03\x03\x03\0\x04\0\x02\0\x01\x12\x04\xf3\x02\n!\n\x15\n\r\x04\0\x03\ - \x02\x03\x03\x03\0\x04\0\x02\0\x02\x12\x04\xf3\x02$%\n\x98\x02\n\x0c\x04\ - \0\x03\x02\x03\x03\x03\0\x04\0\x02\x01\x12\x04\xfa\x02\n\x13\x1a\x81\x02\ - \x20If\x20an\x20interpreter\x20is\x20not\x20specified,\x20the\n\x20sourc\ - e\x20is\x20executed\x20directly.\x20This\x20execution,\x20without\x20an\ - \n\x20interpreter,\x20only\x20succeeds\x20for\x20executables\x20and\x20s\ - cripts\x20that\x20have\x20shebang\x20lines.\n\n\x15\n\ - \r\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x01\x01\x12\x04\xfa\x02\n\x0e\n\ - \x15\n\r\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x01\x02\x12\x04\xfa\x02\ - \x11\x12\ni\n\x0c\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x02\x12\x04\xfe\ - \x02\n\x14\x1aS\x20Indicates\x20that\x20the\x20script\x20runs\x20with\ - \x20`/bin/sh`\x20on\x20Linux\x20and\n\x20`cmd.exe`\x20on\x20Windows.\n\n\ - \x15\n\r\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x02\x01\x12\x04\xfe\x02\n\ - \x0f\n\x15\n\r\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x02\x02\x12\x04\xfe\ - \x02\x12\x13\nG\n\x0c\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x03\x12\x04\ - \x81\x03\n\x19\x1a1\x20Indicates\x20that\x20the\x20script\x20runs\x20wit\ - h\x20PowerShell.\n\n\x15\n\r\x04\0\x03\x02\x03\x03\x03\0\x04\0\x02\x03\ - \x01\x12\x04\x81\x03\n\x14\n\x15\n\r\x04\0\x03\x02\x03\x03\x03\0\x04\0\ - \x02\x03\x02\x12\x04\x81\x03\x17\x18\n(\n\n\x04\0\x03\x02\x03\x03\x03\0\ - \x08\0\x12\x06\x85\x03\x08\x8c\x03\t\x1a\x12\x20What\x20to\x20execute.\n\ - \n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x08\0\x01\x12\x04\x85\x03\x0e\ - \x14\n-\n\n\x04\0\x03\x02\x03\x03\x03\0\x02\0\x12\x04\x87\x03\n\x18\x1a\ - \x19\x20A\x20remote\x20or\x20local\x20file.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x03\x03\0\x02\0\x06\x12\x04\x87\x03\n\x0e\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x03\x03\0\x02\0\x01\x12\x04\x87\x03\x0f\x13\n\x13\n\x0b\x04\0\x03\ - \x02\x03\x03\x03\0\x02\0\x03\x12\x04\x87\x03\x16\x17\n^\n\n\x04\0\x03\ - \x02\x03\x03\x03\0\x02\x01\x12\x04\x8b\x03\n\x1c\x1aJ\x20An\x20inline\ - \x20script.\n\x20The\x20size\x20of\x20the\x20script\x20is\x20limited\x20\ - to\x201024\x20characters.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\ - \x01\x05\x12\x04\x8b\x03\n\x10\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\ - \x02\x01\x01\x12\x04\x8b\x03\x11\x17\n\x13\n\x0b\x04\0\x03\x02\x03\x03\ - \x03\0\x02\x01\x03\x12\x04\x8b\x03\x1a\x1b\nP\n\n\x04\0\x03\x02\x03\x03\ - \x03\0\x02\x02\x12\x04\x8f\x03\x08!\x1a<\x20Optional\x20arguments\x20to\ - \x20pass\x20to\x20the\x20source\x20during\x20execution.\n\n\x13\n\x0b\ - \x04\0\x03\x02\x03\x03\x03\0\x02\x02\x04\x12\x04\x8f\x03\x08\x10\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x02\x05\x12\x04\x8f\x03\x11\x17\n\ - \x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x02\x01\x12\x04\x8f\x03\x18\ - \x1c\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x02\x03\x12\x04\x8f\x03\ - \x1f\x20\n>\n\n\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x12\x04\x92\x03\x08M\ - \x1a*\x20Required.\x20The\x20script\x20interpreter\x20to\x20use.\n\n\x13\ - \n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x06\x12\x04\x92\x03\x08\x13\n\ - \x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x01\x12\x04\x92\x03\x14\ - \x1f\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x03\x12\x04\x92\x03\ - \"#\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x08\x12\x04\x92\x03$\ - L\n\x16\n\x0e\x04\0\x03\x02\x03\x03\x03\0\x02\x03\x08\x9c\x08\0\x12\x04\ - \x92\x03%K\n\xcc\x02\n\n\x04\0\x03\x02\x03\x03\x03\0\x02\x04\x12\x04\x9a\ - \x03\x08$\x1a\xb7\x02\x20Only\x20recorded\x20for\x20enforce\x20Exec.\n\ - \x20Path\x20to\x20an\x20output\x20file\x20(that\x20is\x20created\x20by\ - \x20this\x20Exec)\x20whose\n\x20content\x20will\x20be\x20recorded\x20in\ - \x20OSPolicyResourceCompliance\x20after\x20a\n\x20successful\x20run.\x20\ - Absence\x20or\x20failure\x20to\x20read\x20this\x20file\x20will\x20result\ - \x20in\n\x20this\x20ExecResource\x20being\x20non-compliant.\x20Output\ - \x20file\x20size\x20is\x20limited\x20to\n\x20100K\x20bytes.\n\n\x13\n\ - \x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x04\x05\x12\x04\x9a\x03\x08\x0e\n\ - \x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x04\x01\x12\x04\x9a\x03\x0f\ - \x1f\n\x13\n\x0b\x04\0\x03\x02\x03\x03\x03\0\x02\x04\x03\x12\x04\x9a\x03\ - \"#\n\x83\x02\n\x08\x04\0\x03\x02\x03\x03\x02\0\x12\x04\xa1\x03\x06A\x1a\ - \xf0\x01\x20Required.\x20What\x20to\x20run\x20to\x20validate\x20this\x20\ - resource\x20is\x20in\x20the\x20desired\x20state.\n\x20An\x20exit\x20code\ - \x20of\x20100\x20indicates\x20\"in\x20desired\x20state\",\x20and\x20exit\ - \x20code\x20of\x20101\n\x20indicates\x20\"not\x20in\x20desired\x20state\ - \".\x20Any\x20other\x20exit\x20code\x20indicates\x20a\n\x20failure\x20ru\ - nning\x20validate.\n\n\x11\n\t\x04\0\x03\x02\x03\x03\x02\0\x06\x12\x04\ - \xa1\x03\x06\n\n\x11\n\t\x04\0\x03\x02\x03\x03\x02\0\x01\x12\x04\xa1\x03\ - \x0b\x13\n\x11\n\t\x04\0\x03\x02\x03\x03\x02\0\x03\x12\x04\xa1\x03\x16\ - \x17\n\x11\n\t\x04\0\x03\x02\x03\x03\x02\0\x08\x12\x04\xa1\x03\x18@\n\ - \x14\n\x0c\x04\0\x03\x02\x03\x03\x02\0\x08\x9c\x08\0\x12\x04\xa1\x03\x19\ - ?\n\xb3\x01\n\x08\x04\0\x03\x02\x03\x03\x02\x01\x12\x04\xa6\x03\x06\x17\ - \x1a\xa0\x01\x20What\x20to\x20run\x20to\x20bring\x20this\x20resource\x20\ - into\x20the\x20desired\x20state.\n\x20An\x20exit\x20code\x20of\x20100\ - \x20indicates\x20\"success\",\x20any\x20other\x20exit\x20code\x20indicat\ - es\n\x20a\x20failure\x20running\x20enforce.\n\n\x11\n\t\x04\0\x03\x02\ - \x03\x03\x02\x01\x06\x12\x04\xa6\x03\x06\n\n\x11\n\t\x04\0\x03\x02\x03\ - \x03\x02\x01\x01\x12\x04\xa6\x03\x0b\x12\n\x11\n\t\x04\0\x03\x02\x03\x03\ - \x02\x01\x03\x12\x04\xa6\x03\x15\x16\n@\n\x06\x04\0\x03\x02\x03\x04\x12\ - \x06\xaa\x03\x04\xd9\x03\x05\x1a.\x20A\x20resource\x20that\x20manages\ - \x20the\x20state\x20of\x20a\x20file.\n\n\x0f\n\x07\x04\0\x03\x02\x03\x04\ - \x01\x12\x04\xaa\x03\x0c\x18\n0\n\x08\x04\0\x03\x02\x03\x04\x04\0\x12\ - \x06\xac\x03\x06\xb9\x03\x07\x1a\x1c\x20Desired\x20state\x20of\x20the\ - \x20file.\n\n\x11\n\t\x04\0\x03\x02\x03\x04\x04\0\x01\x12\x04\xac\x03\ - \x0b\x17\n-\n\n\x04\0\x03\x02\x03\x04\x04\0\x02\0\x12\x04\xae\x03\x08&\ - \x1a\x19\x20Unspecified\x20is\x20invalid.\n\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x04\x04\0\x02\0\x01\x12\x04\xae\x03\x08!\n\x13\n\x0b\x04\0\x03\x02\ - \x03\x04\x04\0\x02\0\x02\x12\x04\xae\x03$%\n5\n\n\x04\0\x03\x02\x03\x04\ - \x04\0\x02\x01\x12\x04\xb1\x03\x08\x14\x1a!\x20Ensure\x20file\x20at\x20p\ - ath\x20is\x20present.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x04\x04\0\x02\x01\ - \x01\x12\x04\xb1\x03\x08\x0f\n\x13\n\x0b\x04\0\x03\x02\x03\x04\x04\0\x02\ - \x01\x02\x12\x04\xb1\x03\x12\x13\n4\n\n\x04\0\x03\x02\x03\x04\x04\0\x02\ - \x02\x12\x04\xb4\x03\x08\x13\x1a\x20\x20Ensure\x20file\x20at\x20path\x20\ - is\x20absent.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x04\x04\0\x02\x02\x01\x12\ - \x04\xb4\x03\x08\x0e\n\x13\n\x0b\x04\0\x03\x02\x03\x04\x04\0\x02\x02\x02\ - \x12\x04\xb4\x03\x11\x12\nv\n\n\x04\0\x03\x02\x03\x04\x04\0\x02\x03\x12\ - \x04\xb8\x03\x08\x1b\x1ab\x20Ensure\x20the\x20contents\x20of\x20the\x20f\ - ile\x20at\x20path\x20matches.\x20If\x20the\x20file\x20does\n\x20not\x20e\ - xist\x20it\x20will\x20be\x20created.\n\n\x13\n\x0b\x04\0\x03\x02\x03\x04\ - \x04\0\x02\x03\x01\x12\x04\xb8\x03\x08\x16\n\x13\n\x0b\x04\0\x03\x02\x03\ - \x04\x04\0\x02\x03\x02\x12\x04\xb8\x03\x19\x1a\n>\n\x08\x04\0\x03\x02\ - \x03\x04\x08\0\x12\x06\xbc\x03\x06\xc3\x03\x07\x1a*\x20The\x20source\x20\ - for\x20the\x20contents\x20of\x20the\x20file.\n\n\x11\n\t\x04\0\x03\x02\ - \x03\x04\x08\0\x01\x12\x04\xbc\x03\x0c\x12\n-\n\x08\x04\0\x03\x02\x03\ - \x04\x02\0\x12\x04\xbe\x03\x08\x16\x1a\x1b\x20A\x20remote\x20or\x20local\ - \x20source.\n\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\0\x06\x12\x04\xbe\x03\ - \x08\x0c\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\0\x01\x12\x04\xbe\x03\r\x11\ - \n\x11\n\t\x04\0\x03\x02\x03\x04\x02\0\x03\x12\x04\xbe\x03\x14\x15\ng\n\ - \x08\x04\0\x03\x02\x03\x04\x02\x01\x12\x04\xc2\x03\x08\x1b\x1aU\x20A\x20\ - a\x20file\x20with\x20this\x20content.\n\x20The\x20size\x20of\x20the\x20c\ - ontent\x20is\x20limited\x20to\x201024\x20characters.\n\n\x11\n\t\x04\0\ - \x03\x02\x03\x04\x02\x01\x05\x12\x04\xc2\x03\x08\x0e\n\x11\n\t\x04\0\x03\ - \x02\x03\x04\x02\x01\x01\x12\x04\xc2\x03\x0f\x16\n\x11\n\t\x04\0\x03\x02\ - \x03\x04\x02\x01\x03\x12\x04\xc2\x03\x19\x1a\nJ\n\x08\x04\0\x03\x02\x03\ - \x04\x02\x02\x12\x04\xc6\x03\x06?\x1a8\x20Required.\x20The\x20absolute\ - \x20path\x20of\x20the\x20file\x20within\x20the\x20VM.\n\n\x11\n\t\x04\0\ - \x03\x02\x03\x04\x02\x02\x05\x12\x04\xc6\x03\x06\x0c\n\x11\n\t\x04\0\x03\ - \x02\x03\x04\x02\x02\x01\x12\x04\xc6\x03\r\x11\n\x11\n\t\x04\0\x03\x02\ - \x03\x04\x02\x02\x03\x12\x04\xc6\x03\x14\x15\n\x11\n\t\x04\0\x03\x02\x03\ - \x04\x02\x02\x08\x12\x04\xc6\x03\x16>\n\x14\n\x0c\x04\0\x03\x02\x03\x04\ - \x02\x02\x08\x9c\x08\0\x12\x04\xc6\x03\x17=\n8\n\x08\x04\0\x03\x02\x03\ - \x04\x02\x03\x12\x04\xc9\x03\x06F\x1a&\x20Required.\x20Desired\x20state\ - \x20of\x20the\x20file.\n\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\x03\x06\x12\ - \x04\xc9\x03\x06\x12\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\x03\x01\x12\x04\ - \xc9\x03\x13\x18\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\x03\x03\x12\x04\xc9\ - \x03\x1b\x1c\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\x03\x08\x12\x04\xc9\x03\ - \x1dE\n\x14\n\x0c\x04\0\x03\x02\x03\x04\x02\x03\x08\x9c\x08\0\x12\x04\ - \xc9\x03\x1eD\n\xc7\x04\n\x08\x04\0\x03\x02\x03\x04\x02\x04\x12\x04\xd8\ - \x03\x06\x1d\x1a\xb4\x04\x20Consists\x20of\x20three\x20octal\x20digits\ - \x20which\x20represent,\x20in\n\x20order,\x20the\x20permissions\x20of\ - \x20the\x20owner,\x20group,\x20and\x20other\x20users\x20for\x20the\n\x20\ - file\x20(similarly\x20to\x20the\x20numeric\x20mode\x20used\x20in\x20the\ - \x20linux\x20chmod\n\x20utility).\x20Each\x20digit\x20represents\x20a\ - \x20three\x20bit\x20number\x20with\x20the\x204\x20bit\n\x20corresponding\ - \x20to\x20the\x20read\x20permissions,\x20the\x202\x20bit\x20corresponds\ - \x20to\x20the\n\x20write\x20bit,\x20and\x20the\x20one\x20bit\x20correspo\ - nds\x20to\x20the\x20execute\x20permission.\n\x20Default\x20behavior\x20i\ - s\x20755.\n\n\x20Below\x20are\x20some\x20examples\x20of\x20permissions\ - \x20and\x20their\x20associated\x20values:\n\x20read,\x20write,\x20and\ - \x20execute:\x207\n\x20read\x20and\x20execute:\x205\n\x20read\x20and\x20\ - write:\x206\n\x20read\x20only:\x204\n\n\x11\n\t\x04\0\x03\x02\x03\x04\ - \x02\x04\x05\x12\x04\xd8\x03\x06\x0c\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\ - \x04\x01\x12\x04\xd8\x03\r\x18\n\x11\n\t\x04\0\x03\x02\x03\x04\x02\x04\ - \x03\x12\x04\xd8\x03\x1b\x1c\n\xa3\x02\n\x06\x04\0\x03\x02\x02\0\x12\x04\ - \xe2\x03\x04;\x1a\x92\x02\x20Required.\x20The\x20id\x20of\x20the\x20reso\ - urce\x20with\x20the\x20following\x20restrictions:\n\n\x20*\x20Must\x20co\ - ntain\x20only\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens.\n\ - \x20*\x20Must\x20start\x20with\x20a\x20letter.\n\x20*\x20Must\x20be\x20b\ - etween\x201-63\x20characters.\n\x20*\x20Must\x20end\x20with\x20a\x20numb\ - er\x20or\x20a\x20letter.\n\x20*\x20Must\x20be\x20unique\x20within\x20the\ - \x20OS\x20policy.\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\xe2\x03\ - \x04\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x01\x12\x04\xe2\x03\x0b\r\n\x0f\n\ - \x07\x04\0\x03\x02\x02\0\x03\x12\x04\xe2\x03\x10\x11\n\x0f\n\x07\x04\0\ - \x03\x02\x02\0\x08\x12\x04\xe2\x03\x12:\n\x12\n\n\x04\0\x03\x02\x02\0\ - \x08\x9c\x08\0\x12\x04\xe2\x03\x139\n\"\n\x06\x04\0\x03\x02\x08\0\x12\ - \x06\xe5\x03\x04\xf1\x03\x05\x1a\x10\x20Resource\x20type.\n\n\x0f\n\x07\ - \x04\0\x03\x02\x08\0\x01\x12\x04\xe5\x03\n\x17\n\"\n\x06\x04\0\x03\x02\ - \x02\x01\x12\x04\xe7\x03\x06\x1e\x1a\x12\x20Package\x20resource\n\n\x0f\ - \n\x07\x04\0\x03\x02\x02\x01\x06\x12\x04\xe7\x03\x06\x15\n\x0f\n\x07\x04\ - \0\x03\x02\x02\x01\x01\x12\x04\xe7\x03\x16\x19\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x01\x03\x12\x04\xe7\x03\x1c\x1d\n-\n\x06\x04\0\x03\x02\x02\x02\x12\ - \x04\xea\x03\x06(\x1a\x1d\x20Package\x20repository\x20resource\n\n\x0f\n\ - \x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xea\x03\x06\x18\n\x0f\n\x07\x04\0\ - \x03\x02\x02\x02\x01\x12\x04\xea\x03\x19#\n\x0f\n\x07\x04\0\x03\x02\x02\ - \x02\x03\x12\x04\xea\x03&'\n\x1f\n\x06\x04\0\x03\x02\x02\x03\x12\x04\xed\ - \x03\x06\x1c\x1a\x0f\x20Exec\x20resource\n\n\x0f\n\x07\x04\0\x03\x02\x02\ - \x03\x06\x12\x04\xed\x03\x06\x12\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x01\ - \x12\x04\xed\x03\x13\x17\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\ - \xed\x03\x1a\x1b\n\x1f\n\x06\x04\0\x03\x02\x02\x04\x12\x04\xf0\x03\x06\ - \x1c\x1a\x0f\x20File\x20resource\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\ - \x12\x04\xf0\x03\x06\x12\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\ - \xf0\x03\x13\x17\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\xf0\x03\ - \x1a\x1b\n\x86\x03\n\x04\x04\0\x03\x03\x12\x06\xfc\x03\x02\x93\x04\x03\ - \x1a\xf5\x02\x20Resource\x20groups\x20provide\x20a\x20mechanism\x20to\ - \x20group\x20OS\x20policy\x20resources.\n\n\x20Resource\x20groups\x20ena\ - ble\x20OS\x20policy\x20authors\x20to\x20create\x20a\x20single\x20OS\x20p\ - olicy\n\x20to\x20be\x20applied\x20to\x20VMs\x20running\x20different\x20o\ - perating\x20Systems.\n\n\x20When\x20the\x20OS\x20policy\x20is\x20applied\ - \x20to\x20a\x20target\x20VM,\x20the\x20appropriate\x20resource\n\x20grou\ - p\x20within\x20the\x20OS\x20policy\x20is\x20selected\x20based\x20on\x20t\ - he\x20`OSFilter`\x20specified\n\x20within\x20the\x20resource\x20group.\n\ - \n\r\n\x05\x04\0\x03\x03\x01\x12\x04\xfc\x03\n\x17\n|\n\x06\x04\0\x03\ - \x03\x02\0\x12\x04\xff\x03\x04/\x1al\x20Deprecated.\x20Use\x20the\x20`in\ - ventory_filters`\x20field\x20instead.\n\x20Used\x20to\x20specify\x20the\ - \x20OS\x20filter\x20for\x20a\x20resource\x20group\n\n\x0f\n\x07\x04\0\ - \x03\x03\x02\0\x06\x12\x04\xff\x03\x04\x0c\n\x0f\n\x07\x04\0\x03\x03\x02\ - \0\x01\x12\x04\xff\x03\r\x16\n\x0f\n\x07\x04\0\x03\x03\x02\0\x03\x12\x04\ - \xff\x03\x19\x1a\n\x0f\n\x07\x04\0\x03\x03\x02\0\x08\x12\x04\xff\x03\x1b\ - .\n\x10\n\x08\x04\0\x03\x03\x02\0\x08\x03\x12\x04\xff\x03\x1c-\n\xa3\x04\ - \n\x06\x04\0\x03\x03\x02\x01\x12\x04\x8e\x04\x043\x1a\x92\x04\x20List\ - \x20of\x20inventory\x20filters\x20for\x20the\x20resource\x20group.\n\n\ - \x20The\x20resources\x20in\x20this\x20resource\x20group\x20are\x20applie\ - d\x20to\x20the\x20target\x20VM\x20if\x20it\n\x20satisfies\x20at\x20least\ - \x20one\x20of\x20the\x20following\x20inventory\x20filters.\n\n\x20For\ - \x20example,\x20to\x20apply\x20this\x20resource\x20group\x20to\x20VMs\ - \x20running\x20either\x20`RHEL`\x20or\n\x20`CentOS`\x20operating\x20syst\ - ems,\x20specify\x202\x20items\x20for\x20the\x20list\x20with\x20following\ - \n\x20values:\n\x20inventory_filters[0].os_short_name='rhel'\x20and\n\ - \x20inventory_filters[1].os_short_name='centos'\n\n\x20If\x20the\x20list\ - \x20is\x20empty,\x20this\x20resource\x20group\x20will\x20be\x20applied\ - \x20to\x20the\x20target\n\x20VM\x20unconditionally.\n\n\x0f\n\x07\x04\0\ - \x03\x03\x02\x01\x04\x12\x04\x8e\x04\x04\x0c\n\x0f\n\x07\x04\0\x03\x03\ - \x02\x01\x06\x12\x04\x8e\x04\r\x1c\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x01\ - \x12\x04\x8e\x04\x1d.\n\x0f\n\x07\x04\0\x03\x03\x02\x01\x03\x12\x04\x8e\ - \x0412\n\x91\x01\n\x06\x04\0\x03\x03\x02\x02\x12\x04\x92\x04\x04M\x1a\ - \x80\x01\x20Required.\x20List\x20of\x20resources\x20configured\x20for\ - \x20this\x20resource\x20group.\n\x20The\x20resources\x20are\x20executed\ - \x20in\x20the\x20exact\x20order\x20specified\x20here.\n\n\x0f\n\x07\x04\ - \0\x03\x03\x02\x02\x04\x12\x04\x92\x04\x04\x0c\n\x0f\n\x07\x04\0\x03\x03\ - \x02\x02\x06\x12\x04\x92\x04\r\x15\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x01\ - \x12\x04\x92\x04\x16\x1f\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x03\x12\x04\ - \x92\x04\"#\n\x0f\n\x07\x04\0\x03\x03\x02\x02\x08\x12\x04\x92\x04$L\n\ - \x12\n\n\x04\0\x03\x03\x02\x02\x08\x9c\x08\0\x12\x04\x92\x04%K\n\xa3\x02\ - \n\x04\x04\0\x02\0\x12\x04\x9c\x04\x029\x1a\x94\x02\x20Required.\x20The\ - \x20id\x20of\x20the\x20OS\x20policy\x20with\x20the\x20following\x20restr\ - ictions:\n\n\x20*\x20Must\x20contain\x20only\x20lowercase\x20letters,\ - \x20numbers,\x20and\x20hyphens.\n\x20*\x20Must\x20start\x20with\x20a\x20\ - letter.\n\x20*\x20Must\x20be\x20between\x201-63\x20characters.\n\x20*\ - \x20Must\x20end\x20with\x20a\x20number\x20or\x20a\x20letter.\n\x20*\x20M\ - ust\x20be\x20unique\x20within\x20the\x20assignment.\n\n\r\n\x05\x04\0\ - \x02\0\x05\x12\x04\x9c\x04\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x9c\ - \x04\t\x0b\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x9c\x04\x0e\x0f\n\r\n\x05\ - \x04\0\x02\0\x08\x12\x04\x9c\x04\x108\n\x10\n\x08\x04\0\x02\0\x08\x9c\ - \x08\0\x12\x04\x9c\x04\x117\n]\n\x04\x04\0\x02\x01\x12\x04\xa0\x04\x02\ - \x19\x1aO\x20Policy\x20description.\n\x20Length\x20of\x20the\x20descript\ - ion\x20is\x20limited\x20to\x201024\x20characters.\n\n\r\n\x05\x04\0\x02\ - \x01\x05\x12\x04\xa0\x04\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xa0\ - \x04\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xa0\x04\x17\x18\n%\n\x04\ - \x04\0\x02\x02\x12\x04\xa3\x04\x029\x1a\x17\x20Required.\x20Policy\x20mo\ - de\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\xa3\x04\x02\x06\n\r\n\x05\x04\0\ - \x02\x02\x01\x12\x04\xa3\x04\x07\x0b\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\ - \xa3\x04\x0e\x0f\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\xa3\x04\x108\n\x10\ - \n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\xa3\x04\x117\n\xa6\x03\n\x04\ - \x04\0\x02\x03\x12\x04\xad\x04\x02V\x1a\x97\x03\x20Required.\x20List\x20\ - of\x20resource\x20groups\x20for\x20the\x20policy.\n\x20For\x20a\x20parti\ - cular\x20VM,\x20resource\x20groups\x20are\x20evaluated\x20in\x20the\x20o\ - rder\x20specified\n\x20and\x20the\x20first\x20resource\x20group\x20that\ - \x20is\x20applicable\x20is\x20selected\x20and\x20the\x20rest\n\x20are\ - \x20ignored.\n\n\x20If\x20none\x20of\x20the\x20resource\x20groups\x20are\ - \x20applicable\x20for\x20a\x20VM,\x20the\x20VM\x20is\n\x20considered\x20\ - to\x20be\x20non-compliant\x20w.r.t\x20this\x20policy.\x20This\x20behavio\ - r\x20can\x20be\n\x20toggled\x20by\x20the\x20flag\x20`allow_no_resource_g\ - roup_match`\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04\xad\x04\x02\n\n\r\n\ - \x05\x04\0\x02\x03\x06\x12\x04\xad\x04\x0b\x18\n\r\n\x05\x04\0\x02\x03\ - \x01\x12\x04\xad\x04\x19(\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xad\x04+,\ - \n\r\n\x05\x04\0\x02\x03\x08\x12\x04\xad\x04-U\n\x10\n\x08\x04\0\x02\x03\ - \x08\x9c\x08\0\x12\x04\xad\x04.T\n\x94\x02\n\x04\x04\0\x02\x04\x12\x04\ - \xb3\x04\x02)\x1a\x85\x02\x20This\x20flag\x20determines\x20the\x20OS\x20\ - policy\x20compliance\x20status\x20when\x20none\x20of\x20the\n\x20resourc\ - e\x20groups\x20within\x20the\x20policy\x20are\x20applicable\x20for\x20a\ - \x20VM.\x20Set\x20this\x20value\n\x20to\x20`true`\x20if\x20the\x20policy\ - \x20needs\x20to\x20be\x20reported\x20as\x20compliant\x20even\x20if\x20th\ - e\n\x20policy\x20has\x20nothing\x20to\x20validate\x20or\x20enforce.\n\n\ - \r\n\x05\x04\0\x02\x04\x05\x12\x04\xb3\x04\x02\x06\n\r\n\x05\x04\0\x02\ - \x04\x01\x12\x04\xb3\x04\x07$\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xb3\ - \x04'(b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignment_reports.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignment_reports.rs deleted file mode 100644 index a7ea100..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignment_reports.rs +++ /dev/null @@ -1,2610 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct GetOSPolicyAssignmentReportRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetOSPolicyAssignmentReportRequest { - fn default() -> &'a GetOSPolicyAssignmentReportRequest { - ::default_instance() - } -} - -impl GetOSPolicyAssignmentReportRequest { - pub fn new() -> GetOSPolicyAssignmentReportRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetOSPolicyAssignmentReportRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetOSPolicyAssignmentReportRequest { - GetOSPolicyAssignmentReportRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetOSPolicyAssignmentReportRequest| { &m.name }, - |m: &mut GetOSPolicyAssignmentReportRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOSPolicyAssignmentReportRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetOSPolicyAssignmentReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetOSPolicyAssignmentReportRequest::new) - } -} - -impl ::protobuf::Clear for GetOSPolicyAssignmentReportRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetOSPolicyAssignmentReportRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetOSPolicyAssignmentReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentReportsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub filter: ::std::string::String, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentReportsRequest { - fn default() -> &'a ListOSPolicyAssignmentReportsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentReportsRequest { - pub fn new() -> ListOSPolicyAssignmentReportsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string filter = 3; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentReportsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filter); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.filter.is_empty() { - os.write_string(3, &self.filter)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentReportsRequest { - ListOSPolicyAssignmentReportsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.parent }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.filter }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentReportsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentReportsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentReportsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentReportsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentReportsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentReportsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.filter.clear(); - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentReportsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentReportsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentReportsResponse { - // message fields - pub os_policy_assignment_reports: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentReportsResponse { - fn default() -> &'a ListOSPolicyAssignmentReportsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentReportsResponse { - pub fn new() -> ListOSPolicyAssignmentReportsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1; - - - pub fn get_os_policy_assignment_reports(&self) -> &[OSPolicyAssignmentReport] { - &self.os_policy_assignment_reports - } - pub fn clear_os_policy_assignment_reports(&mut self) { - self.os_policy_assignment_reports.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment_reports(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignment_reports = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignment_reports(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignment_reports - } - - // Take field - pub fn take_os_policy_assignment_reports(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignment_reports, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentReportsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment_reports { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignment_reports)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignment_reports { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignment_reports { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentReportsResponse { - ListOSPolicyAssignmentReportsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment_reports", - |m: &ListOSPolicyAssignmentReportsResponse| { &m.os_policy_assignment_reports }, - |m: &mut ListOSPolicyAssignmentReportsResponse| { &mut m.os_policy_assignment_reports }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentReportsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentReportsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentReportsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentReportsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentReportsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentReportsResponse { - fn clear(&mut self) { - self.os_policy_assignment_reports.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentReportsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentReportsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport { - // message fields - pub name: ::std::string::String, - pub instance: ::std::string::String, - pub os_policy_assignment: ::std::string::String, - pub os_policy_compliances: ::protobuf::RepeatedField, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub last_run_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport { - fn default() -> &'a OSPolicyAssignmentReport { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport { - pub fn new() -> OSPolicyAssignmentReport { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string instance = 2; - - - pub fn get_instance(&self) -> &str { - &self.instance - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: ::std::string::String) { - self.instance = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut ::std::string::String { - &mut self.instance - } - - // Take field - pub fn take_instance(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance, ::std::string::String::new()) - } - - // string os_policy_assignment = 3; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance os_policy_compliances = 4; - - - pub fn get_os_policy_compliances(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance] { - &self.os_policy_compliances - } - pub fn clear_os_policy_compliances(&mut self) { - self.os_policy_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_compliances - } - - // Take field - pub fn take_os_policy_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_compliances, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string last_run_id = 6; - - - pub fn get_last_run_id(&self) -> &str { - &self.last_run_id - } - pub fn clear_last_run_id(&mut self) { - self.last_run_id.clear(); - } - - // Param is passed by value, moved - pub fn set_last_run_id(&mut self, v: ::std::string::String) { - self.last_run_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_run_id(&mut self) -> &mut ::std::string::String { - &mut self.last_run_id - } - - // Take field - pub fn take_last_run_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.last_run_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_compliances { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_compliances)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.last_run_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.instance.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance); - } - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.os_policy_assignment); - } - for value in &self.os_policy_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.last_run_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.last_run_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.instance.is_empty() { - os.write_string(2, &self.instance)?; - } - if !self.os_policy_assignment.is_empty() { - os.write_string(3, &self.os_policy_assignment)?; - } - for v in &self.os_policy_compliances { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.last_run_id.is_empty() { - os.write_string(6, &self.last_run_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport { - OSPolicyAssignmentReport::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicyAssignmentReport| { &m.name }, - |m: &mut OSPolicyAssignmentReport| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance", - |m: &OSPolicyAssignmentReport| { &m.instance }, - |m: &mut OSPolicyAssignmentReport| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &OSPolicyAssignmentReport| { &m.os_policy_assignment }, - |m: &mut OSPolicyAssignmentReport| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_compliances", - |m: &OSPolicyAssignmentReport| { &m.os_policy_compliances }, - |m: &mut OSPolicyAssignmentReport| { &mut m.os_policy_compliances }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &OSPolicyAssignmentReport| { &m.update_time }, - |m: &mut OSPolicyAssignmentReport| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "last_run_id", - |m: &OSPolicyAssignmentReport| { &m.last_run_id }, - |m: &mut OSPolicyAssignmentReport| { &mut m.last_run_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport { - fn clear(&mut self) { - self.name.clear(); - self.instance.clear(); - self.os_policy_assignment.clear(); - self.os_policy_compliances.clear(); - self.update_time.clear(); - self.last_run_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance { - // message fields - pub os_policy_id: ::std::string::String, - pub compliance_state: OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState, - pub compliance_state_reason: ::std::string::String, - pub os_policy_resource_compliances: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance { - ::std::default::Default::default() - } - - // string os_policy_id = 1; - - - pub fn get_os_policy_id(&self) -> &str { - &self.os_policy_id - } - pub fn clear_os_policy_id(&mut self) { - self.os_policy_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_id(&mut self, v: ::std::string::String) { - self.os_policy_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_id - } - - // Take field - pub fn take_os_policy_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_id, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2; - - - pub fn get_compliance_state(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - self.compliance_state - } - pub fn clear_compliance_state(&mut self) { - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_compliance_state(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState) { - self.compliance_state = v; - } - - // string compliance_state_reason = 3; - - - pub fn get_compliance_state_reason(&self) -> &str { - &self.compliance_state_reason - } - pub fn clear_compliance_state_reason(&mut self) { - self.compliance_state_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_compliance_state_reason(&mut self, v: ::std::string::String) { - self.compliance_state_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_compliance_state_reason(&mut self) -> &mut ::std::string::String { - &mut self.compliance_state_reason - } - - // Take field - pub fn take_compliance_state_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.compliance_state_reason, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4; - - - pub fn get_os_policy_resource_compliances(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance] { - &self.os_policy_resource_compliances - } - pub fn clear_os_policy_resource_compliances(&mut self) { - self.os_policy_resource_compliances.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_compliances(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_resource_compliances = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_resource_compliances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_resource_compliances - } - - // Take field - pub fn take_os_policy_resource_compliances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_resource_compliances, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_resource_compliances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_id)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.compliance_state, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.compliance_state_reason)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_resource_compliances)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_id); - } - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN { - my_size += ::protobuf::rt::enum_size(2, self.compliance_state); - } - if !self.compliance_state_reason.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.compliance_state_reason); - } - for value in &self.os_policy_resource_compliances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_id.is_empty() { - os.write_string(1, &self.os_policy_id)?; - } - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.compliance_state))?; - } - if !self.compliance_state_reason.is_empty() { - os.write_string(3, &self.compliance_state_reason)?; - } - for v in &self.os_policy_resource_compliances { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance { - OSPolicyAssignmentReport_OSPolicyCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_id", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.os_policy_id }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.os_policy_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "compliance_state", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.compliance_state }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.compliance_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "compliance_state_reason", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.compliance_state_reason }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.compliance_state_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_resource_compliances", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance| { &m.os_policy_resource_compliances }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance| { &mut m.os_policy_resource_compliances }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance { - fn clear(&mut self) { - self.os_policy_id.clear(); - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN; - self.compliance_state_reason.clear(); - self.os_policy_resource_compliances.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - // message fields - pub os_policy_resource_id: ::std::string::String, - pub config_steps: ::protobuf::RepeatedField, - pub compliance_state: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState, - pub compliance_state_reason: ::std::string::String, - // message oneof groups - pub output: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output { - exec_resource_output(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput), -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - ::std::default::Default::default() - } - - // string os_policy_resource_id = 1; - - - pub fn get_os_policy_resource_id(&self) -> &str { - &self.os_policy_resource_id - } - pub fn clear_os_policy_resource_id(&mut self) { - self.os_policy_resource_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_resource_id(&mut self, v: ::std::string::String) { - self.os_policy_resource_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_resource_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_resource_id - } - - // Take field - pub fn take_os_policy_resource_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_resource_id, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2; - - - pub fn get_config_steps(&self) -> &[OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep] { - &self.config_steps - } - pub fn clear_config_steps(&mut self) { - self.config_steps.clear(); - } - - // Param is passed by value, moved - pub fn set_config_steps(&mut self, v: ::protobuf::RepeatedField) { - self.config_steps = v; - } - - // Mutable pointer to the field. - pub fn mut_config_steps(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.config_steps - } - - // Take field - pub fn take_config_steps(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.config_steps, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3; - - - pub fn get_compliance_state(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - self.compliance_state - } - pub fn clear_compliance_state(&mut self) { - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_compliance_state(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState) { - self.compliance_state = v; - } - - // string compliance_state_reason = 4; - - - pub fn get_compliance_state_reason(&self) -> &str { - &self.compliance_state_reason - } - pub fn clear_compliance_state_reason(&mut self) { - self.compliance_state_reason.clear(); - } - - // Param is passed by value, moved - pub fn set_compliance_state_reason(&mut self, v: ::std::string::String) { - self.compliance_state_reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_compliance_state_reason(&mut self) -> &mut ::std::string::String { - &mut self.compliance_state_reason - } - - // Take field - pub fn take_compliance_state_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.compliance_state_reason, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5; - - - pub fn get_exec_resource_output(&self) -> &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_exec_resource_output(&mut self) { - self.output = ::std::option::Option::None; - } - - pub fn has_exec_resource_output(&self) -> bool { - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_exec_resource_output(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput) { - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) - } - - // Mutable pointer to the field. - pub fn mut_exec_resource_output(&mut self) -> &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - if let ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(_)) = self.output { - } else { - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new())); - } - match self.output { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_exec_resource_output(&mut self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - if self.has_exec_resource_output() { - match self.output.take() { - ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(v)) => v, - _ => panic!(), - } - } else { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new() - } - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn is_initialized(&self) -> bool { - for v in &self.config_steps { - if !v.is_initialized() { - return false; - } - }; - if let Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v)) = self.output { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_resource_id)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.config_steps)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.compliance_state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.compliance_state_reason)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output = ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_resource_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_resource_id); - } - for value in &self.config_steps { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN { - my_size += ::protobuf::rt::enum_size(3, self.compliance_state); - } - if !self.compliance_state_reason.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.compliance_state_reason); - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_resource_id.is_empty() { - os.write_string(1, &self.os_policy_resource_id)?; - } - for v in &self.config_steps { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.compliance_state != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.compliance_state))?; - } - if !self.compliance_state_reason.is_empty() { - os.write_string(4, &self.compliance_state_reason)?; - } - if let ::std::option::Option::Some(ref v) = self.output { - match v { - &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_oneof_output::exec_resource_output(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_resource_id", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.os_policy_resource_id }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.os_policy_resource_id }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "config_steps", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.config_steps }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.config_steps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "compliance_state", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.compliance_state }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.compliance_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "compliance_state_reason", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &m.compliance_state_reason }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance| { &mut m.compliance_state_reason }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput>( - "exec_resource_output", - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::has_exec_resource_output, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::get_exec_resource_output, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn clear(&mut self) { - self.os_policy_resource_id.clear(); - self.config_steps.clear(); - self.compliance_state = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN; - self.compliance_state_reason.clear(); - self.output = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - // message fields - pub field_type: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type, - pub error_message: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1; - - - pub fn get_field_type(&self) -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type) { - self.field_type = v; - } - - // string error_message = 2; - - - pub fn get_error_message(&self) -> &str { - &self.error_message - } - pub fn clear_error_message(&mut self) { - self.error_message.clear(); - } - - // Param is passed by value, moved - pub fn set_error_message(&mut self, v: ::std::string::String) { - self.error_message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_error_message(&mut self) -> &mut ::std::string::String { - &mut self.error_message - } - - // Take field - pub fn take_error_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.error_message, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.error_message)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.field_type != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.field_type); - } - if !self.error_message.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.error_message); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.field_type != OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if !self.error_message.is_empty() { - os.write_string(2, &self.error_message)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &m.field_type }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "error_message", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &m.error_message }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep| { &mut m.error_message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn clear(&mut self) { - self.field_type = OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED; - self.error_message.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - TYPE_UNSPECIFIED = 0, - VALIDATION = 1, - DESIRED_STATE_CHECK = 2, - DESIRED_STATE_ENFORCEMENT = 3, - DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::VALIDATION), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK), - 3 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT), - 4 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::VALIDATION, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_ENFORCEMENT, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::DESIRED_STATE_CHECK_POST_ENFORCEMENT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - // message fields - pub enforcement_output: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn default() -> &'a OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - ::default_instance() - } -} - -impl OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - pub fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - ::std::default::Default::default() - } - - // bytes enforcement_output = 2; - - - pub fn get_enforcement_output(&self) -> &[u8] { - &self.enforcement_output - } - pub fn clear_enforcement_output(&mut self) { - self.enforcement_output.clear(); - } - - // Param is passed by value, moved - pub fn set_enforcement_output(&mut self, v: ::std::vec::Vec) { - self.enforcement_output = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_enforcement_output(&mut self) -> &mut ::std::vec::Vec { - &mut self.enforcement_output - } - - // Take field - pub fn take_enforcement_output(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.enforcement_output, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.enforcement_output)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.enforcement_output.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.enforcement_output); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.enforcement_output.is_empty() { - os.write_bytes(2, &self.enforcement_output)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "enforcement_output", - |m: &OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput| { &m.enforcement_output }, - |m: &mut OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput| { &mut m.enforcement_output }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn clear(&mut self) { - self.enforcement_output.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - UNKNOWN = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::NON_COMPLIANT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::COMPLIANT, - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::NON_COMPLIANT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - UNKNOWN = 0, - COMPLIANT = 1, - NON_COMPLIANT = 2, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN), - 1 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::COMPLIANT), - 2 => ::std::option::Option::Some(OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::NON_COMPLIANT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState] = &[ - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN, - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::COMPLIANT, - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::NON_COMPLIANT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { -} - -impl ::std::default::Default for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn default() -> Self { - OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentReport_OSPolicyCompliance_ComplianceState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n@google/cloud/osconfig/v1alpha/os_policy_assignment_reports.proto\x12\ - \x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\ - \x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\ - \"r\n\"GetOSPolicyAssignmentReportRequest\x12L\n\x04name\x18\x01\x20\x01\ - (\tR\x04nameB8\xfaA2\n0osconfig.googleapis.com/OSPolicyAssignmentReport\ - \xe0A\x02\"\xcd\x01\n$ListOSPolicyAssignmentReportsRequest\x12Q\n\x06par\ - ent\x18\x01\x20\x01(\tR\x06parentB9\xfaA3\n1compute.googleapis.com/Insta\ - nceOSPolicyAssignment\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05\ - R\x08pageSize\x12\x16\n\x06filter\x18\x03\x20\x01(\tR\x06filter\x12\x1d\ - \n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"\xc9\x01\n%ListOSPolicyAs\ - signmentReportsResponse\x12x\n\x1cos_policy_assignment_reports\x18\x01\ - \x20\x03(\x0b27.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportR\ - \x19osPolicyAssignmentReports\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\ - \tR\rnextPageToken\"\x97\x11\n\x18OSPolicyAssignmentReport\x12\x12\n\x04\ - name\x18\x01\x20\x01(\tR\x04name\x12\x1a\n\x08instance\x18\x02\x20\x01(\ - \tR\x08instance\x12a\n\x14os_policy_assignment\x18\x03\x20\x01(\tR\x12os\ - PolicyAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignment\ - \x12~\n\x15os_policy_compliances\x18\x04\x20\x03(\x0b2J.google.cloud.osc\ - onfig.v1alpha.OSPolicyAssignmentReport.OSPolicyComplianceR\x13osPolicyCo\ - mpliances\x12;\n\x0bupdate_time\x18\x05\x20\x01(\x0b2\x1a.google.protobu\ - f.TimestampR\nupdateTime\x12\x1e\n\x0blast_run_id\x18\x06\x20\x01(\tR\tl\ - astRunId\x1a\xeb\x0c\n\x12OSPolicyCompliance\x12\x20\n\x0cos_policy_id\ - \x18\x01\x20\x01(\tR\nosPolicyId\x12\x85\x01\n\x10compliance_state\x18\ - \x02\x20\x01(\x0e2Z.google.cloud.osconfig.v1alpha.OSPolicyAssignmentRepo\ - rt.OSPolicyCompliance.ComplianceStateR\x0fcomplianceState\x126\n\x17comp\ - liance_state_reason\x18\x03\x20\x01(\tR\x15complianceStateReason\x12\xaa\ - \x01\n\x1eos_policy_resource_compliances\x18\x04\x20\x03(\x0b2e.google.c\ - loud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPoli\ - cyResourceComplianceR\x1bosPolicyResourceCompliances\x1a\x83\t\n\x1aOSPo\ - licyResourceCompliance\x121\n\x15os_policy_resource_id\x18\x01\x20\x01(\ - \tR\x12osPolicyResourceId\x12\xa4\x01\n\x0cconfig_steps\x18\x02\x20\x03(\ - \x0b2\x80\x01.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSP\ - olicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStepR\ - \x0bconfigSteps\x12\xa0\x01\n\x10compliance_state\x18\x03\x20\x01(\x0e2u\ - .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyComplian\ - ce.OSPolicyResourceCompliance.ComplianceStateR\x0fcomplianceState\x126\n\ - \x17compliance_state_reason\x18\x04\x20\x01(\tR\x15complianceStateReason\ - \x12\xac\x01\n\x14exec_resource_output\x18\x05\x20\x01(\x0b2x.google.clo\ - ud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicy\ - ResourceCompliance.ExecResourceOutputH\0R\x12execResourceOutput\x1a\xef\ - \x02\n\x1aOSPolicyResourceConfigStep\x12\x9a\x01\n\x04type\x18\x01\x20\ - \x01(\x0e2\x85\x01.google.cloud.osconfig.v1alpha.OSPolicyAssignmentRepor\ - t.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigSt\ - ep.TypeR\x04type\x12#\n\rerror_message\x18\x02\x20\x01(\tR\x0cerrorMessa\ - ge\"\x8e\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nVA\ - LIDATION\x10\x01\x12\x17\n\x13DESIRED_STATE_CHECK\x10\x02\x12\x1d\n\x19D\ - ESIRED_STATE_ENFORCEMENT\x10\x03\x12(\n$DESIRED_STATE_CHECK_POST_ENFORCE\ - MENT\x10\x04\x1aC\n\x12ExecResourceOutput\x12-\n\x12enforcement_output\ - \x18\x02\x20\x01(\x0cR\x11enforcementOutput\"@\n\x0fComplianceState\x12\ - \x0b\n\x07UNKNOWN\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLI\ - ANT\x10\x02B\x08\n\x06output\"@\n\x0fComplianceState\x12\x0b\n\x07UNKNOW\ - N\x10\0\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\x10\x02:\x9c\ - \x01\xeaA\x98\x01\n0osconfig.googleapis.com/OSPolicyAssignmentReport\x12\ - dprojects/{project}/locations/{location}/instances/{instance}/osPolicyAs\ - signments/{assignment}/reportB\xfd\x02\n!com.google.cloud.osconfig.v1alp\ - haB\x1eOSPolicyAssignmentReportsProtoP\x01Z=cloud.google.com/go/osconfig\ - /apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alp\ - ha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02\x20Google::Cloud:\ - :OsConfig::V1alpha\xeaA\x92\x01\n1compute.googleapis.com/InstanceOSPolic\ - yAssignment\x12]projects/{project}/locations/{location}/instances/{insta\ - nce}/osPolicyAssignments/{assignment}J\xeeU\n\x07\x12\x05\x0e\0\xa7\x02\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0&\n\t\n\x02\ - \x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\ - \x12\x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\0:\n\t\n\x02\x08%\x12\x03\ - \x16\0:\n\x08\n\x01\x08\x12\x03\x17\0T\n\t\n\x02\x08\x0b\x12\x03\x17\0T\ - \n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\ - \x01\x08\x12\x03\x19\0?\n\t\n\x02\x08\x08\x12\x03\x19\0?\n\x08\n\x01\x08\ - \x12\x03\x1a\0:\n\t\n\x02\x08\x01\x12\x03\x1a\0:\n\x08\n\x01\x08\x12\x03\ - \x1b\0:\n\t\n\x02\x08)\x12\x03\x1b\0:\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\ - \n\x02\x08-\x12\x03\x1c\09\n\t\n\x01\x08\x12\x04\x1d\0\x20\x02\n\x0c\n\ - \x04\x08\x9d\x08\0\x12\x04\x1d\0\x20\x02\nI\n\x02\x04\0\x12\x04#\03\x01\ - \x1a=\x20Get\x20a\x20report\x20of\x20the\x20OS\x20policy\x20assignment\ - \x20for\x20a\x20VM\x20instance.\n\n\n\n\x03\x04\0\x01\x12\x03#\x08*\n\ - \xaf\x03\n\x04\x04\0\x02\0\x12\x04-\x022\x04\x1a\xa0\x03\x20Required.\ - \x20API\x20resource\x20name\x20for\x20OS\x20policy\x20assignment\x20repo\ - rt.\n\n\x20Format:\n\x20`/projects/{project}/locations/{location}/instan\ - ces/{instance}/osPolicyAssignments/{assignment}/report`\n\n\x20For\x20`{\ - project}`,\x20either\x20`project-number`\x20or\x20`project-id`\x20can\ - \x20be\x20provided.\n\x20For\x20`{instance_id}`,\x20either\x20Compute\ - \x20Engine\x20`instance-id`\x20or\x20`instance-name`\n\x20can\x20be\x20p\ - rovided.\n\x20For\x20`{assignment_id}`,\x20the\x20OSPolicyAssignment\x20\ - id\x20must\x20be\x20provided.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03-\x02\ - \x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03-\t\r\n\x0c\n\x05\x04\0\x02\0\ - \x03\x12\x03-\x10\x11\n\r\n\x05\x04\0\x02\0\x08\x12\x04-\x122\x03\n\x0f\ - \n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03.\x04*\n\x0f\n\x07\x04\0\x02\0\ - \x08\x9f\x08\x12\x04/\x041\x05\nE\n\x02\x04\x01\x12\x046\0^\x01\x1a9\x20\ - List\x20the\x20OS\x20policy\x20assignment\x20reports\x20for\x20VM\x20ins\ - tances.\n\n\n\n\x03\x04\x01\x01\x12\x036\x08,\n\x86\t\n\x04\x04\x01\x02\ - \0\x12\x04L\x02Q\x04\x1a\xf7\x08\x20Required.\x20The\x20parent\x20resour\ - ce\x20name.\n\n\x20Format:\n\x20`projects/{project}/locations/{location}\ - /instances/{instance}/osPolicyAssignments/{assignment}/reports`\n\n\x20F\ - or\x20`{project}`,\x20either\x20`project-number`\x20or\x20`project-id`\ - \x20can\x20be\x20provided.\n\x20For\x20`{instance}`,\x20either\x20`insta\ - nce-name`,\x20`instance-id`,\x20or\x20`-`\x20can\x20be\n\x20provided.\ - \x20If\x20'-'\x20is\x20provided,\x20the\x20response\x20will\x20include\n\ - \x20OSPolicyAssignmentReports\x20for\x20all\x20instances\x20in\x20the\ - \x20project/location.\n\x20For\x20`{assignment}`,\x20either\x20`assignme\ - nt-id`\x20or\x20`-`\x20can\x20be\x20provided.\x20If\x20'-'\n\x20is\x20pr\ - ovided,\x20the\x20response\x20will\x20include\x20OSPolicyAssignmentRepor\ - ts\x20for\x20all\n\x20OSPolicyAssignments\x20in\x20the\x20project/locati\ - on.\n\x20Either\x20{instance}\x20or\x20{assignment}\x20must\x20be\x20`-`\ - .\n\n\x20For\x20example:\n\x20`projects/{project}/locations/{location}/i\ - nstances/{instance}/osPolicyAssignments/-/reports`\n\x20\x20returns\x20a\ - ll\x20reports\x20for\x20the\x20instance\n\x20`projects/{project}/locatio\ - ns/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`\n\ - \x20\x20returns\x20all\x20the\x20reports\x20for\x20the\x20given\x20assig\ - nment\x20across\x20all\x20instances.\n\x20`projects/{project}/locations/\ - {location}/instances/-/osPolicyAssignments/-/reports`\n\x20\x20returns\ - \x20all\x20the\x20reports\x20for\x20all\x20assignments\x20across\x20all\ - \x20instances.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03L\x02\x08\n\x0c\n\ - \x05\x04\x01\x02\0\x01\x12\x03L\t\x0f\n\x0c\n\x05\x04\x01\x02\0\x03\x12\ - \x03L\x12\x13\n\r\n\x05\x04\x01\x02\0\x08\x12\x04L\x14Q\x03\n\x0f\n\x08\ - \x04\x01\x02\0\x08\x9c\x08\0\x12\x03M\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\ - \x9f\x08\x12\x04N\x04P\x05\n7\n\x04\x04\x01\x02\x01\x12\x03T\x02\x16\x1a\ - *\x20The\x20maximum\x20number\x20of\x20results\x20to\x20return.\n\n\x0c\ - \n\x05\x04\x01\x02\x01\x05\x12\x03T\x02\x07\n\x0c\n\x05\x04\x01\x02\x01\ - \x01\x12\x03T\x08\x11\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03T\x14\x15\n\ - \xa1\x01\n\x04\x04\x01\x02\x02\x12\x03X\x02\x14\x1a\x93\x01\x20If\x20pro\ - vided,\x20this\x20field\x20specifies\x20the\x20criteria\x20that\x20must\ - \x20be\x20met\x20by\x20the\n\x20`OSPolicyAssignmentReport`\x20API\x20res\ - ource\x20that\x20is\x20included\x20in\x20the\x20response.\n\n\x0c\n\x05\ - \x04\x01\x02\x02\x05\x12\x03X\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\ - \x12\x03X\t\x0f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03X\x12\x13\n\xa8\ - \x01\n\x04\x04\x01\x02\x03\x12\x03]\x02\x18\x1a\x9a\x01\x20A\x20paginati\ - on\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\x20the\n\ - \x20`ListOSPolicyAssignmentReports`\x20method\x20that\x20indicates\x20wh\ - ere\x20this\x20listing\n\x20should\x20continue\x20from.\n\n\x0c\n\x05\ - \x04\x01\x02\x03\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\ - \x12\x03]\t\x13\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03]\x16\x17\nx\n\ - \x02\x04\x02\x12\x04b\0i\x01\x1al\x20A\x20response\x20message\x20for\x20\ - listing\x20OS\x20Policy\x20assignment\x20reports\x20including\x20the\n\ - \x20page\x20of\x20results\x20and\x20page\x20token.\n\n\n\n\x03\x04\x02\ - \x01\x12\x03b\x08-\n4\n\x04\x04\x02\x02\0\x12\x03d\x02E\x1a'\x20List\x20\ - of\x20OS\x20policy\x20assignment\x20reports.\n\n\x0c\n\x05\x04\x02\x02\0\ - \x04\x12\x03d\x02\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03d\x0b#\n\x0c\n\ - \x05\x04\x02\x02\0\x01\x12\x03d$@\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03d\ - CD\nf\n\x04\x04\x02\x02\x01\x12\x03h\x02\x1d\x1aY\x20The\x20pagination\ - \x20token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20OS\x20policy\ - \x20assignment\n\x20report\x20objects.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\ - \x12\x03h\x02\x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03h\t\x18\n\x0c\n\ - \x05\x04\x02\x02\x01\x03\x12\x03h\x1b\x1c\nP\n\x02\x04\x03\x12\x05l\0\ - \xa7\x02\x01\x1aC\x20A\x20report\x20of\x20the\x20OS\x20policy\x20assignm\ - ent\x20status\x20for\x20a\x20given\x20instance.\n\n\n\n\x03\x04\x03\x01\ - \x12\x03l\x08\x20\n\x0b\n\x03\x04\x03\x07\x12\x04m\x02p\x04\n\r\n\x05\ - \x04\x03\x07\x9d\x08\x12\x04m\x02p\x04\n1\n\x04\x04\x03\x03\0\x12\x05s\ - \x02\x85\x02\x03\x1a\"\x20Compliance\x20data\x20for\x20an\x20OS\x20polic\ - y\n\n\x0c\n\x05\x04\x03\x03\0\x01\x12\x03s\n\x1c\n?\n\x06\x04\x03\x03\0\ - \x04\0\x12\x05u\x04\x87\x01\x05\x1a.\x20Possible\x20compliance\x20states\ - \x20for\x20an\x20os\x20policy.\n\n\x0e\n\x07\x04\x03\x03\0\x04\0\x01\x12\ - \x03u\t\x18\n\xba\x01\n\x08\x04\x03\x03\0\x04\0\x02\0\x12\x03z\x06\x12\ - \x1a\xa8\x01\x20The\x20policy\x20is\x20in\x20an\x20unknown\x20compliance\ - \x20state.\n\n\x20Refer\x20to\x20the\x20field\x20`compliance_state_reaso\ - n`\x20to\x20learn\x20the\x20exact\x20reason\n\x20for\x20the\x20policy\ - \x20to\x20be\x20in\x20this\x20compliance\x20state.\n\n\x10\n\t\x04\x03\ - \x03\0\x04\0\x02\0\x01\x12\x03z\x06\r\n\x10\n\t\x04\x03\x03\0\x04\0\x02\ - \0\x02\x12\x03z\x10\x11\nw\n\x08\x04\x03\x03\0\x04\0\x02\x01\x12\x04\x80\ - \x01\x06\x14\x1ae\x20Policy\x20is\x20compliant.\n\n\x20The\x20policy\x20\ - is\x20compliant\x20if\x20all\x20the\x20underlying\x20resources\x20are\ - \x20also\n\x20compliant.\n\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x01\x01\x12\ - \x04\x80\x01\x06\x0f\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x01\x02\x12\x04\ - \x80\x01\x12\x13\n\x82\x01\n\x08\x04\x03\x03\0\x04\0\x02\x02\x12\x04\x86\ - \x01\x06\x18\x1ap\x20Policy\x20is\x20non-compliant.\n\n\x20The\x20policy\ - \x20is\x20non-compliant\x20if\x20one\x20or\x20more\x20underlying\x20reso\ - urces\x20are\n\x20non-compliant.\n\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x02\ - \x01\x12\x04\x86\x01\x06\x13\n\x11\n\t\x04\x03\x03\0\x04\0\x02\x02\x02\ - \x12\x04\x86\x01\x16\x17\n>\n\x06\x04\x03\x03\0\x03\0\x12\x06\x8a\x01\ - \x04\xe4\x01\x05\x1a,\x20Compliance\x20data\x20for\x20an\x20OS\x20policy\ - \x20resource.\n\n\x0f\n\x07\x04\x03\x03\0\x03\0\x01\x12\x04\x8a\x01\x0c&\ - \ny\n\x08\x04\x03\x03\0\x03\0\x03\0\x12\x06\x8d\x01\x06\xad\x01\x07\x1ae\ - \x20Step\x20performed\x20by\x20the\x20OS\x20Config\x20agent\x20for\x20co\ - nfiguring\x20an\n\x20`OSPolicy`\x20resource\x20to\x20its\x20desired\x20s\ - tate.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x03\0\x01\x12\x04\x8d\x01\x0e(\n:\ - \n\n\x04\x03\x03\0\x03\0\x03\0\x04\0\x12\x06\x8f\x01\x08\xa5\x01\t\x1a$\ - \x20Supported\x20configuration\x20step\x20types\n\n\x13\n\x0b\x04\x03\ - \x03\0\x03\0\x03\0\x04\0\x01\x12\x04\x8f\x01\r\x11\n<\n\x0c\x04\x03\x03\ - \0\x03\0\x03\0\x04\0\x02\0\x12\x04\x91\x01\n\x1f\x1a&\x20Default\x20valu\ - e.\x20This\x20value\x20is\x20unused.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\ - \0\x04\0\x02\0\x01\x12\x04\x91\x01\n\x1a\n\x15\n\r\x04\x03\x03\0\x03\0\ - \x03\0\x04\0\x02\0\x02\x12\x04\x91\x01\x1d\x1e\nL\n\x0c\x04\x03\x03\0\ - \x03\0\x03\0\x04\0\x02\x01\x12\x04\x94\x01\n\x19\x1a6\x20Checks\x20for\ - \x20resource\x20conflicts\x20such\x20as\x20schema\x20errors.\n\n\x15\n\r\ - \x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x01\x01\x12\x04\x94\x01\n\x14\n\x15\ - \n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x01\x02\x12\x04\x94\x01\x17\x18\ - \nV\n\x0c\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x02\x12\x04\x97\x01\n\"\ - \x1a@\x20Checks\x20the\x20current\x20status\x20of\x20the\x20desired\x20s\ - tate\x20for\x20a\x20resource.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\ - \0\x02\x02\x01\x12\x04\x97\x01\n\x1d\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\ - \x04\0\x02\x02\x02\x12\x04\x97\x01\x20!\n`\n\x0c\x04\x03\x03\0\x03\0\x03\ - \0\x04\0\x02\x03\x12\x04\x9b\x01\n(\x1aJ\x20Enforces\x20the\x20desired\ - \x20state\x20for\x20a\x20resource\x20that\x20is\x20not\x20in\x20desired\ - \n\x20state.\n\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x03\x01\x12\ - \x04\x9b\x01\n#\n\x15\n\r\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\x03\x02\ - \x12\x04\x9b\x01&'\n\xe8\x02\n\x0c\x04\x03\x03\0\x03\0\x03\0\x04\0\x02\ - \x04\x12\x04\xa4\x01\n3\x1a\xd1\x02\x20Re-checks\x20the\x20status\x20of\ - \x20the\x20desired\x20state.\x20This\x20check\x20is\x20done\n\x20for\x20\ - a\x20resource\x20after\x20the\x20enforcement\x20of\x20all\x20OS\x20polic\ - ies.\n\n\x20This\x20step\x20is\x20used\x20to\x20determine\x20the\x20fina\ - l\x20desired\x20state\x20status\x20for\n\x20the\x20resource.\x20It\x20ac\ - counts\x20for\x20any\x20resources\x20that\x20might\x20have\x20drifted\n\ - \x20from\x20their\x20desired\x20state\x20due\x20to\x20side\x20effects\ - \x20from\x20executing\x20other\n\x20resources.\n\n\x15\n\r\x04\x03\x03\0\ - \x03\0\x03\0\x04\0\x02\x04\x01\x12\x04\xa4\x01\n.\n\x15\n\r\x04\x03\x03\ - \0\x03\0\x03\0\x04\0\x02\x04\x02\x12\x04\xa4\x0112\n.\n\n\x04\x03\x03\0\ - \x03\0\x03\0\x02\0\x12\x04\xa8\x01\x08\x16\x1a\x1a\x20Configuration\x20s\ - tep\x20type.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x06\x12\x04\ - \xa8\x01\x08\x0c\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x01\x12\x04\ - \xa8\x01\r\x11\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\0\x03\x12\x04\ - \xa8\x01\x14\x15\n\x9a\x01\n\n\x04\x03\x03\0\x03\0\x03\0\x02\x01\x12\x04\ - \xac\x01\x08!\x1a\x85\x01\x20An\x20error\x20message\x20recorded\x20durin\ - g\x20the\x20execution\x20of\x20this\x20step.\n\x20Only\x20populated\x20i\ - f\x20errors\x20were\x20encountered\x20during\x20this\x20step\x20executio\ - n.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x05\x12\x04\xac\x01\ - \x08\x0e\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x01\x12\x04\xac\ - \x01\x0f\x1c\n\x13\n\x0b\x04\x03\x03\0\x03\0\x03\0\x02\x01\x03\x12\x04\ - \xac\x01\x1f\x20\n@\n\x08\x04\x03\x03\0\x03\0\x04\0\x12\x06\xb0\x01\x06\ - \xbc\x01\x07\x1a,\x20Possible\x20compliance\x20states\x20for\x20a\x20res\ - ource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x04\0\x01\x12\x04\xb0\x01\x0b\x1a\ - \n\xbe\x01\n\n\x04\x03\x03\0\x03\0\x04\0\x02\0\x12\x04\xb5\x01\x08\x14\ - \x1a\xa9\x01\x20The\x20resource\x20is\x20in\x20an\x20unknown\x20complian\ - ce\x20state.\n\n\x20To\x20get\x20more\x20details\x20about\x20why\x20the\ - \x20policy\x20is\x20in\x20this\x20state,\x20review\n\x20the\x20output\ - \x20of\x20the\x20`compliance_state_reason`\x20field.\n\n\x13\n\x0b\x04\ - \x03\x03\0\x03\0\x04\0\x02\0\x01\x12\x04\xb5\x01\x08\x0f\n\x13\n\x0b\x04\ - \x03\x03\0\x03\0\x04\0\x02\0\x02\x12\x04\xb5\x01\x12\x13\n,\n\n\x04\x03\ - \x03\0\x03\0\x04\0\x02\x01\x12\x04\xb8\x01\x08\x16\x1a\x18\x20Resource\ - \x20is\x20compliant.\n\n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x01\x01\ - \x12\x04\xb8\x01\x08\x11\n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x01\ - \x02\x12\x04\xb8\x01\x14\x15\n0\n\n\x04\x03\x03\0\x03\0\x04\0\x02\x02\ - \x12\x04\xbb\x01\x08\x1a\x1a\x1c\x20Resource\x20is\x20non-compliant.\n\n\ - \x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x02\x01\x12\x04\xbb\x01\x08\x15\ - \n\x13\n\x0b\x04\x03\x03\0\x03\0\x04\0\x02\x02\x02\x12\x04\xbb\x01\x18\ - \x19\n3\n\x08\x04\x03\x03\0\x03\0\x03\x01\x12\x06\xbf\x01\x06\xc3\x01\ - \x07\x1a\x1f\x20ExecResource\x20specific\x20output.\n\n\x11\n\t\x04\x03\ - \x03\0\x03\0\x03\x01\x01\x12\x04\xbf\x01\x0e\x20\np\n\n\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x12\x04\xc2\x01\x08%\x1a\\\x20Output\x20from\x20enf\ - orcement\x20phase\x20output\x20file\x20(if\x20run).\n\x20Output\x20size\ - \x20is\x20limited\x20to\x20100K\x20bytes.\n\n\x13\n\x0b\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x05\x12\x04\xc2\x01\x08\r\n\x13\n\x0b\x04\x03\x03\0\ - \x03\0\x03\x01\x02\0\x01\x12\x04\xc2\x01\x0e\x20\n\x13\n\x0b\x04\x03\x03\ - \0\x03\0\x03\x01\x02\0\x03\x12\x04\xc2\x01#$\n5\n\x08\x04\x03\x03\0\x03\ - \0\x02\0\x12\x04\xc6\x01\x06'\x1a#\x20The\x20ID\x20of\x20the\x20OS\x20po\ - licy\x20resource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x05\x12\x04\xc6\ - \x01\x06\x0c\n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x01\x12\x04\xc6\x01\r\"\ - \n\x11\n\t\x04\x03\x03\0\x03\0\x02\0\x03\x12\x04\xc6\x01%&\ne\n\x08\x04\ - \x03\x03\0\x03\0\x02\x01\x12\x04\xca\x01\x06;\x1aS\x20Ordered\x20list\ - \x20of\x20configuration\x20completed\x20by\x20the\x20agent\x20for\x20the\ - \x20OS\x20policy\n\x20resource.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\ - \x04\x12\x04\xca\x01\x06\x0e\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x06\ - \x12\x04\xca\x01\x0f)\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x01\x12\x04\ - \xca\x01*6\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x01\x03\x12\x04\xca\x019:\n\ - 9\n\x08\x04\x03\x03\0\x03\0\x02\x02\x12\x04\xcd\x01\x06+\x1a'\x20The\x20\ - compliance\x20state\x20of\x20the\x20resource.\n\n\x11\n\t\x04\x03\x03\0\ - \x03\0\x02\x02\x06\x12\x04\xcd\x01\x06\x15\n\x11\n\t\x04\x03\x03\0\x03\0\ - \x02\x02\x01\x12\x04\xcd\x01\x16&\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x02\ - \x03\x12\x04\xcd\x01)*\n\xaa\x05\n\x08\x04\x03\x03\0\x03\0\x02\x03\x12\ - \x04\xdd\x01\x06)\x1a\x97\x05\x20A\x20reason\x20for\x20the\x20resource\ - \x20to\x20be\x20in\x20the\x20given\x20compliance\x20state.\n\x20This\x20\ - field\x20is\x20always\x20populated\x20when\x20`compliance_state`\x20is\ - \x20`UNKNOWN`.\n\n\x20The\x20following\x20values\x20are\x20supported\x20\ - when\x20`compliance_state\x20==\x20UNKNOWN`\n\n\x20*\x20`execution-error\ - s`:\x20Errors\x20were\x20encountered\x20by\x20the\x20agent\x20while\n\ - \x20executing\x20the\x20resource\x20and\x20the\x20compliance\x20state\ - \x20couldn't\x20be\n\x20determined.\n\x20*\x20`execution-skipped-by-agen\ - t`:\x20Resource\x20execution\x20was\x20skipped\x20by\x20the\n\x20agent\ - \x20because\x20errors\x20were\x20encountered\x20while\x20executing\x20pr\ - ior\x20resources\n\x20in\x20the\x20OS\x20policy.\n\x20*\x20`os-policy-ex\ - ecution-attempt-failed`:\x20The\x20execution\x20of\x20the\x20OS\x20polic\ - y\n\x20containing\x20this\x20resource\x20failed\x20and\x20the\x20complia\ - nce\x20state\x20couldn't\x20be\n\x20determined.\n\n\x11\n\t\x04\x03\x03\ - \0\x03\0\x02\x03\x05\x12\x04\xdd\x01\x06\x0c\n\x11\n\t\x04\x03\x03\0\x03\ - \0\x02\x03\x01\x12\x04\xdd\x01\r$\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x03\ - \x03\x12\x04\xdd\x01'(\n/\n\x08\x04\x03\x03\0\x03\0\x08\0\x12\x06\xe0\ - \x01\x06\xe3\x01\x07\x1a\x1b\x20Resource\x20specific\x20output.\n\n\x11\ - \n\t\x04\x03\x03\0\x03\0\x08\0\x01\x12\x04\xe0\x01\x0c\x12\n1\n\x08\x04\ - \x03\x03\0\x03\0\x02\x04\x12\x04\xe2\x01\x084\x1a\x1f\x20ExecResource\ - \x20specific\x20output.\n\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x06\x12\ - \x04\xe2\x01\x08\x1a\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x01\x12\x04\ - \xe2\x01\x1b/\n\x11\n\t\x04\x03\x03\0\x03\0\x02\x04\x03\x12\x04\xe2\x012\ - 3\n\"\n\x06\x04\x03\x03\0\x02\0\x12\x04\xe7\x01\x04\x1c\x1a\x12\x20The\ - \x20OS\x20policy\x20id\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x05\x12\x04\xe7\ - \x01\x04\n\n\x0f\n\x07\x04\x03\x03\0\x02\0\x01\x12\x04\xe7\x01\x0b\x17\n\ - \x0f\n\x07\x04\x03\x03\0\x02\0\x03\x12\x04\xe7\x01\x1a\x1b\n8\n\x06\x04\ - \x03\x03\0\x02\x01\x12\x04\xea\x01\x04)\x1a(\x20The\x20compliance\x20sta\ - te\x20of\x20the\x20OS\x20policy.\n\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x06\ - \x12\x04\xea\x01\x04\x13\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x01\x12\x04\ - \xea\x01\x14$\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x03\x12\x04\xea\x01'(\n\ - \xe9\x08\n\x06\x04\x03\x03\0\x02\x02\x12\x04\x80\x02\x04'\x1a\xd8\x08\ - \x20The\x20reason\x20for\x20the\x20OS\x20policy\x20to\x20be\x20in\x20an\ - \x20unknown\x20compliance\x20state.\n\x20This\x20field\x20is\x20always\ - \x20populated\x20when\x20`compliance_state`\x20is\x20`UNKNOWN`.\n\n\x20I\ - f\x20populated,\x20the\x20field\x20can\x20contain\x20one\x20of\x20the\ - \x20following\x20values:\n\n\x20*\x20`vm-not-running`:\x20The\x20VM\x20w\ - as\x20not\x20running.\n\x20*\x20`os-policies-not-supported-by-agent`:\ - \x20The\x20version\x20of\x20the\x20OS\x20Config\n\x20agent\x20running\ - \x20on\x20the\x20VM\x20does\x20not\x20support\x20running\x20OS\x20polici\ - es.\n\x20*\x20`no-agent-detected`:\x20The\x20OS\x20Config\x20agent\x20is\ - \x20not\x20detected\x20for\x20the\x20VM.\n\x20*\x20`resource-execution-e\ - rrors`:\x20The\x20OS\x20Config\x20agent\x20encountered\x20errors\n\x20wh\ - ile\x20executing\x20one\x20or\x20more\x20resources\x20in\x20the\x20polic\ - y.\x20See\n\x20`os_policy_resource_compliances`\x20for\x20details.\n\x20\ - *\x20`task-timeout`:\x20The\x20task\x20sent\x20to\x20the\x20agent\x20to\ - \x20apply\x20the\x20policy\x20timed\n\x20out.\n\x20*\x20`unexpected-agen\ - t-state`:\x20The\x20OS\x20Config\x20agent\x20did\x20not\x20report\x20the\ - \x20final\n\x20status\x20of\x20the\x20task\x20that\x20attempted\x20to\ - \x20apply\x20the\x20policy.\x20Instead,\x20the\x20agent\n\x20unexpectedl\ - y\x20started\x20working\x20on\x20a\x20different\x20task.\x20This\x20most\ - ly\x20happens\n\x20when\x20the\x20agent\x20or\x20VM\x20unexpectedly\x20r\ - estarts\x20while\x20applying\x20OS\x20policies.\n\x20*\x20`internal-serv\ - ice-errors`:\x20Internal\x20service\x20errors\x20were\x20encountered\n\ - \x20while\x20attempting\x20to\x20apply\x20the\x20policy.\n\n\x0f\n\x07\ - \x04\x03\x03\0\x02\x02\x05\x12\x04\x80\x02\x04\n\n\x0f\n\x07\x04\x03\x03\ - \0\x02\x02\x01\x12\x04\x80\x02\x0b\"\n\x0f\n\x07\x04\x03\x03\0\x02\x02\ - \x03\x12\x04\x80\x02%&\na\n\x06\x04\x03\x03\0\x02\x03\x12\x04\x84\x02\ - \x04K\x1aQ\x20Compliance\x20data\x20for\x20each\x20resource\x20within\ - \x20the\x20policy\x20that\x20is\x20applied\x20to\n\x20the\x20VM.\n\n\x0f\ - \n\x07\x04\x03\x03\0\x02\x03\x04\x12\x04\x84\x02\x04\x0c\n\x0f\n\x07\x04\ - \x03\x03\0\x02\x03\x06\x12\x04\x84\x02\r'\n\x0f\n\x07\x04\x03\x03\0\x02\ - \x03\x01\x12\x04\x84\x02(F\n\x0f\n\x07\x04\x03\x03\0\x02\x03\x03\x12\x04\ - \x84\x02IJ\n\xcb\x01\n\x04\x04\x03\x02\0\x12\x04\x8b\x02\x02\x12\x1a\xbc\ - \x01\x20The\x20`OSPolicyAssignmentReport`\x20API\x20resource\x20name.\n\ - \n\x20Format:\n\x20`projects/{project_number}/locations/{location}/insta\ - nces/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report`\ - \n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x8b\x02\x02\x08\n\r\n\x05\x04\x03\ - \x02\0\x01\x12\x04\x8b\x02\t\r\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x8b\ - \x02\x10\x11\n4\n\x04\x04\x03\x02\x01\x12\x04\x8e\x02\x02\x16\x1a&\x20Th\ - e\x20Compute\x20Engine\x20VM\x20instance\x20name.\n\n\r\n\x05\x04\x03\ - \x02\x01\x05\x12\x04\x8e\x02\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\ - \x04\x8e\x02\t\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x8e\x02\x14\x15\ - \n\xdc\x01\n\x04\x04\x03\x02\x02\x12\x06\x95\x02\x02\x97\x02&\x1a\xcb\ - \x01\x20Reference\x20to\x20the\x20`OSPolicyAssignment`\x20API\x20resourc\ - e\x20that\x20the\x20`OSPolicy`\n\x20belongs\x20to.\n\n\x20Format:\n\x20`\ - projects/{project_number}/locations/{location}/osPolicyAssignments/{os_p\ - olicy_assignment_id@revision_id}`\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\ - \x04\x95\x02\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x95\x02\t\x1d\ - \n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\x95\x02\x20!\n\x0f\n\x05\x04\x03\ - \x02\x02\x08\x12\x06\x95\x02\"\x97\x02%\n\x11\n\x07\x04\x03\x02\x02\x08\ - \x9f\x08\x12\x06\x95\x02#\x97\x02$\nN\n\x04\x04\x03\x02\x03\x12\x04\x9a\ - \x02\x028\x1a@\x20Compliance\x20data\x20for\x20each\x20`OSPolicy`\x20tha\ - t\x20is\x20applied\x20to\x20the\x20VM.\n\n\r\n\x05\x04\x03\x02\x03\x04\ - \x12\x04\x9a\x02\x02\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\x9a\x02\x0b\ - \x1d\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\x9a\x02\x1e3\n\r\n\x05\x04\ - \x03\x02\x03\x03\x12\x04\x9a\x0267\nA\n\x04\x04\x03\x02\x04\x12\x04\x9d\ - \x02\x02,\x1a3\x20Timestamp\x20for\x20when\x20the\x20report\x20was\x20la\ - st\x20generated.\n\n\r\n\x05\x04\x03\x02\x04\x06\x12\x04\x9d\x02\x02\x1b\ - \n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\x9d\x02\x1c'\n\r\n\x05\x04\x03\ - \x02\x04\x03\x12\x04\x9d\x02*+\n\x81\x03\n\x04\x04\x03\x02\x05\x12\x04\ - \xa6\x02\x02\x19\x1a\xf2\x02\x20Unique\x20identifier\x20of\x20the\x20las\ - t\x20attempted\x20run\x20to\x20apply\x20the\x20OS\x20policies\n\x20assoc\ - iated\x20with\x20this\x20assignment\x20on\x20the\x20VM.\n\n\x20This\x20I\ - D\x20is\x20logged\x20by\x20the\x20OS\x20Config\x20agent\x20while\x20appl\ - ying\x20the\x20OS\n\x20policies\x20associated\x20with\x20this\x20assignm\ - ent\x20on\x20the\x20VM.\n\x20NOTE:\x20If\x20the\x20service\x20is\x20unab\ - le\x20to\x20successfully\x20connect\x20to\x20the\x20agent\x20for\n\x20th\ - is\x20run,\x20then\x20this\x20id\x20will\x20not\x20be\x20available\x20in\ - \x20the\x20agent\x20logs.\n\n\r\n\x05\x04\x03\x02\x05\x05\x12\x04\xa6\ - \x02\x02\x08\n\r\n\x05\x04\x03\x02\x05\x01\x12\x04\xa6\x02\t\x14\n\r\n\ - \x05\x04\x03\x02\x05\x03\x12\x04\xa6\x02\x17\x18b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignments.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignments.rs deleted file mode 100644 index 1f3e108..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignments.rs +++ /dev/null @@ -1,4359 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/os_policy_assignments.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment { - // message fields - pub name: ::std::string::String, - pub description: ::std::string::String, - pub os_policies: ::protobuf::RepeatedField, - pub instance_filter: ::protobuf::SingularPtrField, - pub rollout: ::protobuf::SingularPtrField, - pub revision_id: ::std::string::String, - pub revision_create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub etag: ::std::string::String, - pub rollout_state: OSPolicyAssignment_RolloutState, - pub baseline: bool, - pub deleted: bool, - pub reconciling: bool, - pub uid: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment { - fn default() -> &'a OSPolicyAssignment { - ::default_instance() - } -} - -impl OSPolicyAssignment { - pub fn new() -> OSPolicyAssignment { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string description = 2; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicy os_policies = 3; - - - pub fn get_os_policies(&self) -> &[super::os_policy::OSPolicy] { - &self.os_policies - } - pub fn clear_os_policies(&mut self) { - self.os_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policies(&mut self, v: ::protobuf::RepeatedField) { - self.os_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policies - } - - // Take field - pub fn take_os_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policies, ::protobuf::RepeatedField::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter instance_filter = 4; - - - pub fn get_instance_filter(&self) -> &OSPolicyAssignment_InstanceFilter { - self.instance_filter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_filter(&mut self) { - self.instance_filter.clear(); - } - - pub fn has_instance_filter(&self) -> bool { - self.instance_filter.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_filter(&mut self, v: OSPolicyAssignment_InstanceFilter) { - self.instance_filter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_filter(&mut self) -> &mut OSPolicyAssignment_InstanceFilter { - if self.instance_filter.is_none() { - self.instance_filter.set_default(); - } - self.instance_filter.as_mut().unwrap() - } - - // Take field - pub fn take_instance_filter(&mut self) -> OSPolicyAssignment_InstanceFilter { - self.instance_filter.take().unwrap_or_else(|| OSPolicyAssignment_InstanceFilter::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignment.Rollout rollout = 5; - - - pub fn get_rollout(&self) -> &OSPolicyAssignment_Rollout { - self.rollout.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_rollout(&mut self) { - self.rollout.clear(); - } - - pub fn has_rollout(&self) -> bool { - self.rollout.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout(&mut self, v: OSPolicyAssignment_Rollout) { - self.rollout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout(&mut self) -> &mut OSPolicyAssignment_Rollout { - if self.rollout.is_none() { - self.rollout.set_default(); - } - self.rollout.as_mut().unwrap() - } - - // Take field - pub fn take_rollout(&mut self) -> OSPolicyAssignment_Rollout { - self.rollout.take().unwrap_or_else(|| OSPolicyAssignment_Rollout::new()) - } - - // string revision_id = 6; - - - pub fn get_revision_id(&self) -> &str { - &self.revision_id - } - pub fn clear_revision_id(&mut self) { - self.revision_id.clear(); - } - - // Param is passed by value, moved - pub fn set_revision_id(&mut self, v: ::std::string::String) { - self.revision_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.revision_id - } - - // Take field - pub fn take_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.revision_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp revision_create_time = 7; - - - pub fn get_revision_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.revision_create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_revision_create_time(&mut self) { - self.revision_create_time.clear(); - } - - pub fn has_revision_create_time(&self) -> bool { - self.revision_create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_revision_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.revision_create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.revision_create_time.is_none() { - self.revision_create_time.set_default(); - } - self.revision_create_time.as_mut().unwrap() - } - - // Take field - pub fn take_revision_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.revision_create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string etag = 8; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState rollout_state = 9; - - - pub fn get_rollout_state(&self) -> OSPolicyAssignment_RolloutState { - self.rollout_state - } - pub fn clear_rollout_state(&mut self) { - self.rollout_state = OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_rollout_state(&mut self, v: OSPolicyAssignment_RolloutState) { - self.rollout_state = v; - } - - // bool baseline = 10; - - - pub fn get_baseline(&self) -> bool { - self.baseline - } - pub fn clear_baseline(&mut self) { - self.baseline = false; - } - - // Param is passed by value, moved - pub fn set_baseline(&mut self, v: bool) { - self.baseline = v; - } - - // bool deleted = 11; - - - pub fn get_deleted(&self) -> bool { - self.deleted - } - pub fn clear_deleted(&mut self) { - self.deleted = false; - } - - // Param is passed by value, moved - pub fn set_deleted(&mut self, v: bool) { - self.deleted = v; - } - - // bool reconciling = 12; - - - pub fn get_reconciling(&self) -> bool { - self.reconciling - } - pub fn clear_reconciling(&mut self) { - self.reconciling = false; - } - - // Param is passed by value, moved - pub fn set_reconciling(&mut self, v: bool) { - self.reconciling = v; - } - - // string uid = 13; - - - pub fn get_uid(&self) -> &str { - &self.uid - } - pub fn clear_uid(&mut self) { - self.uid.clear(); - } - - // Param is passed by value, moved - pub fn set_uid(&mut self, v: ::std::string::String) { - self.uid = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uid(&mut self) -> &mut ::std::string::String { - &mut self.uid - } - - // Take field - pub fn take_uid(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uid, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment { - fn is_initialized(&self) -> bool { - for v in &self.os_policies { - if !v.is_initialized() { - return false; - } - }; - for v in &self.instance_filter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout { - if !v.is_initialized() { - return false; - } - }; - for v in &self.revision_create_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policies)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_filter)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.revision_id)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.revision_create_time)?; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.rollout_state, 9, &mut self.unknown_fields)? - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.baseline = tmp; - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.deleted = tmp; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reconciling = tmp; - }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uid)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); - } - for value in &self.os_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.instance_filter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.rollout.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.revision_id); - } - if let Some(ref v) = self.revision_create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(8, &self.etag); - } - if self.rollout_state != OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.rollout_state); - } - if self.baseline != false { - my_size += 2; - } - if self.deleted != false { - my_size += 2; - } - if self.reconciling != false { - my_size += 2; - } - if !self.uid.is_empty() { - my_size += ::protobuf::rt::string_size(13, &self.uid); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; - } - for v in &self.os_policies { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.instance_filter.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.rollout.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.revision_id.is_empty() { - os.write_string(6, &self.revision_id)?; - } - if let Some(ref v) = self.revision_create_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.etag.is_empty() { - os.write_string(8, &self.etag)?; - } - if self.rollout_state != OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.rollout_state))?; - } - if self.baseline != false { - os.write_bool(10, self.baseline)?; - } - if self.deleted != false { - os.write_bool(11, self.deleted)?; - } - if self.reconciling != false { - os.write_bool(12, self.reconciling)?; - } - if !self.uid.is_empty() { - os.write_string(13, &self.uid)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment { - OSPolicyAssignment::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OSPolicyAssignment| { &m.name }, - |m: &mut OSPolicyAssignment| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &OSPolicyAssignment| { &m.description }, - |m: &mut OSPolicyAssignment| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policies", - |m: &OSPolicyAssignment| { &m.os_policies }, - |m: &mut OSPolicyAssignment| { &mut m.os_policies }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_filter", - |m: &OSPolicyAssignment| { &m.instance_filter }, - |m: &mut OSPolicyAssignment| { &mut m.instance_filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "rollout", - |m: &OSPolicyAssignment| { &m.rollout }, - |m: &mut OSPolicyAssignment| { &mut m.rollout }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "revision_id", - |m: &OSPolicyAssignment| { &m.revision_id }, - |m: &mut OSPolicyAssignment| { &mut m.revision_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "revision_create_time", - |m: &OSPolicyAssignment| { &m.revision_create_time }, - |m: &mut OSPolicyAssignment| { &mut m.revision_create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &OSPolicyAssignment| { &m.etag }, - |m: &mut OSPolicyAssignment| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "rollout_state", - |m: &OSPolicyAssignment| { &m.rollout_state }, - |m: &mut OSPolicyAssignment| { &mut m.rollout_state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "baseline", - |m: &OSPolicyAssignment| { &m.baseline }, - |m: &mut OSPolicyAssignment| { &mut m.baseline }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "deleted", - |m: &OSPolicyAssignment| { &m.deleted }, - |m: &mut OSPolicyAssignment| { &mut m.deleted }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reconciling", - |m: &OSPolicyAssignment| { &m.reconciling }, - |m: &mut OSPolicyAssignment| { &mut m.reconciling }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uid", - |m: &OSPolicyAssignment| { &m.uid }, - |m: &mut OSPolicyAssignment| { &mut m.uid }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment { - fn clear(&mut self) { - self.name.clear(); - self.description.clear(); - self.os_policies.clear(); - self.instance_filter.clear(); - self.rollout.clear(); - self.revision_id.clear(); - self.revision_create_time.clear(); - self.etag.clear(); - self.rollout_state = OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - self.baseline = false; - self.deleted = false; - self.reconciling = false; - self.uid.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_LabelSet { - // message fields - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_LabelSet { - fn default() -> &'a OSPolicyAssignment_LabelSet { - ::default_instance() - } -} - -impl OSPolicyAssignment_LabelSet { - pub fn new() -> OSPolicyAssignment_LabelSet { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.LabelsEntry labels = 1; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_LabelSet { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(1, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_LabelSet { - OSPolicyAssignment_LabelSet::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &OSPolicyAssignment_LabelSet| { &m.labels }, - |m: &mut OSPolicyAssignment_LabelSet| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.LabelSet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_LabelSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_LabelSet::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_LabelSet { - fn clear(&mut self) { - self.labels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_LabelSet { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_LabelSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_InstanceFilter { - // message fields - pub all: bool, - pub os_short_names: ::protobuf::RepeatedField<::std::string::String>, - pub inclusion_labels: ::protobuf::RepeatedField, - pub exclusion_labels: ::protobuf::RepeatedField, - pub inventories: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_InstanceFilter { - fn default() -> &'a OSPolicyAssignment_InstanceFilter { - ::default_instance() - } -} - -impl OSPolicyAssignment_InstanceFilter { - pub fn new() -> OSPolicyAssignment_InstanceFilter { - ::std::default::Default::default() - } - - // bool all = 1; - - - pub fn get_all(&self) -> bool { - self.all - } - pub fn clear_all(&mut self) { - self.all = false; - } - - // Param is passed by value, moved - pub fn set_all(&mut self, v: bool) { - self.all = v; - } - - // repeated string os_short_names = 2; - - - pub fn get_os_short_names(&self) -> &[::std::string::String] { - &self.os_short_names - } - pub fn clear_os_short_names(&mut self) { - self.os_short_names.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.os_short_names = v; - } - - // Mutable pointer to the field. - pub fn mut_os_short_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.os_short_names - } - - // Take field - pub fn take_os_short_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.os_short_names, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3; - - - pub fn get_inclusion_labels(&self) -> &[OSPolicyAssignment_LabelSet] { - &self.inclusion_labels - } - pub fn clear_inclusion_labels(&mut self) { - self.inclusion_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_inclusion_labels(&mut self, v: ::protobuf::RepeatedField) { - self.inclusion_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_inclusion_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inclusion_labels - } - - // Take field - pub fn take_inclusion_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inclusion_labels, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4; - - - pub fn get_exclusion_labels(&self) -> &[OSPolicyAssignment_LabelSet] { - &self.exclusion_labels - } - pub fn clear_exclusion_labels(&mut self) { - self.exclusion_labels.clear(); - } - - // Param is passed by value, moved - pub fn set_exclusion_labels(&mut self, v: ::protobuf::RepeatedField) { - self.exclusion_labels = v; - } - - // Mutable pointer to the field. - pub fn mut_exclusion_labels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.exclusion_labels - } - - // Take field - pub fn take_exclusion_labels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.exclusion_labels, ::protobuf::RepeatedField::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5; - - - pub fn get_inventories(&self) -> &[OSPolicyAssignment_InstanceFilter_Inventory] { - &self.inventories - } - pub fn clear_inventories(&mut self) { - self.inventories.clear(); - } - - // Param is passed by value, moved - pub fn set_inventories(&mut self, v: ::protobuf::RepeatedField) { - self.inventories = v; - } - - // Mutable pointer to the field. - pub fn mut_inventories(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.inventories - } - - // Take field - pub fn take_inventories(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.inventories, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_InstanceFilter { - fn is_initialized(&self) -> bool { - for v in &self.inclusion_labels { - if !v.is_initialized() { - return false; - } - }; - for v in &self.exclusion_labels { - if !v.is_initialized() { - return false; - } - }; - for v in &self.inventories { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.all = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.os_short_names)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inclusion_labels)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.exclusion_labels)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.inventories)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.all != false { - my_size += 2; - } - for value in &self.os_short_names { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.inclusion_labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.exclusion_labels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.inventories { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.all != false { - os.write_bool(1, self.all)?; - } - for v in &self.os_short_names { - os.write_string(2, &v)?; - }; - for v in &self.inclusion_labels { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.exclusion_labels { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.inventories { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_InstanceFilter { - OSPolicyAssignment_InstanceFilter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "all", - |m: &OSPolicyAssignment_InstanceFilter| { &m.all }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.all }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_names", - |m: &OSPolicyAssignment_InstanceFilter| { &m.os_short_names }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.os_short_names }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inclusion_labels", - |m: &OSPolicyAssignment_InstanceFilter| { &m.inclusion_labels }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.inclusion_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "exclusion_labels", - |m: &OSPolicyAssignment_InstanceFilter| { &m.exclusion_labels }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.exclusion_labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "inventories", - |m: &OSPolicyAssignment_InstanceFilter| { &m.inventories }, - |m: &mut OSPolicyAssignment_InstanceFilter| { &mut m.inventories }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.InstanceFilter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_InstanceFilter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_InstanceFilter::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_InstanceFilter { - fn clear(&mut self) { - self.all = false; - self.os_short_names.clear(); - self.inclusion_labels.clear(); - self.exclusion_labels.clear(); - self.inventories.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_InstanceFilter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_InstanceFilter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_InstanceFilter_Inventory { - // message fields - pub os_short_name: ::std::string::String, - pub os_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_InstanceFilter_Inventory { - fn default() -> &'a OSPolicyAssignment_InstanceFilter_Inventory { - ::default_instance() - } -} - -impl OSPolicyAssignment_InstanceFilter_Inventory { - pub fn new() -> OSPolicyAssignment_InstanceFilter_Inventory { - ::std::default::Default::default() - } - - // string os_short_name = 1; - - - pub fn get_os_short_name(&self) -> &str { - &self.os_short_name - } - pub fn clear_os_short_name(&mut self) { - self.os_short_name.clear(); - } - - // Param is passed by value, moved - pub fn set_os_short_name(&mut self, v: ::std::string::String) { - self.os_short_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_short_name(&mut self) -> &mut ::std::string::String { - &mut self.os_short_name - } - - // Take field - pub fn take_os_short_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_short_name, ::std::string::String::new()) - } - - // string os_version = 2; - - - pub fn get_os_version(&self) -> &str { - &self.os_version - } - pub fn clear_os_version(&mut self) { - self.os_version.clear(); - } - - // Param is passed by value, moved - pub fn set_os_version(&mut self, v: ::std::string::String) { - self.os_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_version(&mut self) -> &mut ::std::string::String { - &mut self.os_version - } - - // Take field - pub fn take_os_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_InstanceFilter_Inventory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_short_name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_short_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_short_name); - } - if !self.os_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.os_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_short_name.is_empty() { - os.write_string(1, &self.os_short_name)?; - } - if !self.os_version.is_empty() { - os.write_string(2, &self.os_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_InstanceFilter_Inventory { - OSPolicyAssignment_InstanceFilter_Inventory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_short_name", - |m: &OSPolicyAssignment_InstanceFilter_Inventory| { &m.os_short_name }, - |m: &mut OSPolicyAssignment_InstanceFilter_Inventory| { &mut m.os_short_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_version", - |m: &OSPolicyAssignment_InstanceFilter_Inventory| { &m.os_version }, - |m: &mut OSPolicyAssignment_InstanceFilter_Inventory| { &mut m.os_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.InstanceFilter.Inventory", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_InstanceFilter_Inventory { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_InstanceFilter_Inventory::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_InstanceFilter_Inventory { - fn clear(&mut self) { - self.os_short_name.clear(); - self.os_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_InstanceFilter_Inventory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_InstanceFilter_Inventory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignment_Rollout { - // message fields - pub disruption_budget: ::protobuf::SingularPtrField, - pub min_wait_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignment_Rollout { - fn default() -> &'a OSPolicyAssignment_Rollout { - ::default_instance() - } -} - -impl OSPolicyAssignment_Rollout { - pub fn new() -> OSPolicyAssignment_Rollout { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.FixedOrPercent disruption_budget = 1; - - - pub fn get_disruption_budget(&self) -> &super::osconfig_common::FixedOrPercent { - self.disruption_budget.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_disruption_budget(&mut self) { - self.disruption_budget.clear(); - } - - pub fn has_disruption_budget(&self) -> bool { - self.disruption_budget.is_some() - } - - // Param is passed by value, moved - pub fn set_disruption_budget(&mut self, v: super::osconfig_common::FixedOrPercent) { - self.disruption_budget = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_disruption_budget(&mut self) -> &mut super::osconfig_common::FixedOrPercent { - if self.disruption_budget.is_none() { - self.disruption_budget.set_default(); - } - self.disruption_budget.as_mut().unwrap() - } - - // Take field - pub fn take_disruption_budget(&mut self) -> super::osconfig_common::FixedOrPercent { - self.disruption_budget.take().unwrap_or_else(|| super::osconfig_common::FixedOrPercent::new()) - } - - // .google.protobuf.Duration min_wait_duration = 2; - - - pub fn get_min_wait_duration(&self) -> &::protobuf::well_known_types::Duration { - self.min_wait_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_min_wait_duration(&mut self) { - self.min_wait_duration.clear(); - } - - pub fn has_min_wait_duration(&self) -> bool { - self.min_wait_duration.is_some() - } - - // Param is passed by value, moved - pub fn set_min_wait_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.min_wait_duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_min_wait_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.min_wait_duration.is_none() { - self.min_wait_duration.set_default(); - } - self.min_wait_duration.as_mut().unwrap() - } - - // Take field - pub fn take_min_wait_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.min_wait_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignment_Rollout { - fn is_initialized(&self) -> bool { - for v in &self.disruption_budget { - if !v.is_initialized() { - return false; - } - }; - for v in &self.min_wait_duration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.disruption_budget)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.min_wait_duration)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.disruption_budget.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.min_wait_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.disruption_budget.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.min_wait_duration.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignment_Rollout { - OSPolicyAssignment_Rollout::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "disruption_budget", - |m: &OSPolicyAssignment_Rollout| { &m.disruption_budget }, - |m: &mut OSPolicyAssignment_Rollout| { &mut m.disruption_budget }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "min_wait_duration", - |m: &OSPolicyAssignment_Rollout| { &m.min_wait_duration }, - |m: &mut OSPolicyAssignment_Rollout| { &mut m.min_wait_duration }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignment.Rollout", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignment_Rollout { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignment_Rollout::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignment_Rollout { - fn clear(&mut self) { - self.disruption_budget.clear(); - self.min_wait_duration.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignment_Rollout { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_Rollout { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignment_RolloutState { - ROLLOUT_STATE_UNSPECIFIED = 0, - IN_PROGRESS = 1, - CANCELLING = 2, - CANCELLED = 3, - SUCCEEDED = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignment_RolloutState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::IN_PROGRESS), - 2 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::CANCELLING), - 3 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::CANCELLED), - 4 => ::std::option::Option::Some(OSPolicyAssignment_RolloutState::SUCCEEDED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignment_RolloutState] = &[ - OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED, - OSPolicyAssignment_RolloutState::IN_PROGRESS, - OSPolicyAssignment_RolloutState::CANCELLING, - OSPolicyAssignment_RolloutState::CANCELLED, - OSPolicyAssignment_RolloutState::SUCCEEDED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignment.RolloutState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignment_RolloutState { -} - -impl ::std::default::Default for OSPolicyAssignment_RolloutState { - fn default() -> Self { - OSPolicyAssignment_RolloutState::ROLLOUT_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignment_RolloutState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OSPolicyAssignmentOperationMetadata { - // message fields - pub os_policy_assignment: ::std::string::String, - pub api_method: OSPolicyAssignmentOperationMetadata_APIMethod, - pub rollout_state: OSPolicyAssignmentOperationMetadata_RolloutState, - pub rollout_start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub rollout_update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OSPolicyAssignmentOperationMetadata { - fn default() -> &'a OSPolicyAssignmentOperationMetadata { - ::default_instance() - } -} - -impl OSPolicyAssignmentOperationMetadata { - pub fn new() -> OSPolicyAssignmentOperationMetadata { - ::std::default::Default::default() - } - - // string os_policy_assignment = 1; - - - pub fn get_os_policy_assignment(&self) -> &str { - &self.os_policy_assignment - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: ::std::string::String) { - self.os_policy_assignment = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.APIMethod api_method = 2; - - - pub fn get_api_method(&self) -> OSPolicyAssignmentOperationMetadata_APIMethod { - self.api_method - } - pub fn clear_api_method(&mut self) { - self.api_method = OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_api_method(&mut self, v: OSPolicyAssignmentOperationMetadata_APIMethod) { - self.api_method = v; - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.RolloutState rollout_state = 3; - - - pub fn get_rollout_state(&self) -> OSPolicyAssignmentOperationMetadata_RolloutState { - self.rollout_state - } - pub fn clear_rollout_state(&mut self) { - self.rollout_state = OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_rollout_state(&mut self, v: OSPolicyAssignmentOperationMetadata_RolloutState) { - self.rollout_state = v; - } - - // .google.protobuf.Timestamp rollout_start_time = 4; - - - pub fn get_rollout_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.rollout_start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_rollout_start_time(&mut self) { - self.rollout_start_time.clear(); - } - - pub fn has_rollout_start_time(&self) -> bool { - self.rollout_start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.rollout_start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.rollout_start_time.is_none() { - self.rollout_start_time.set_default(); - } - self.rollout_start_time.as_mut().unwrap() - } - - // Take field - pub fn take_rollout_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.rollout_start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp rollout_update_time = 5; - - - pub fn get_rollout_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.rollout_update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_rollout_update_time(&mut self) { - self.rollout_update_time.clear(); - } - - pub fn has_rollout_update_time(&self) -> bool { - self.rollout_update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_rollout_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.rollout_update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_rollout_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.rollout_update_time.is_none() { - self.rollout_update_time.set_default(); - } - self.rollout_update_time.as_mut().unwrap() - } - - // Take field - pub fn take_rollout_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.rollout_update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OSPolicyAssignmentOperationMetadata { - fn is_initialized(&self) -> bool { - for v in &self.rollout_start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rollout_update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.api_method, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.rollout_state, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout_start_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.rollout_update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.os_policy_assignment.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.os_policy_assignment); - } - if self.api_method != OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.api_method); - } - if self.rollout_state != OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.rollout_state); - } - if let Some(ref v) = self.rollout_start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.rollout_update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.os_policy_assignment.is_empty() { - os.write_string(1, &self.os_policy_assignment)?; - } - if self.api_method != OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.api_method))?; - } - if self.rollout_state != OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.rollout_state))?; - } - if let Some(ref v) = self.rollout_start_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.rollout_update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OSPolicyAssignmentOperationMetadata { - OSPolicyAssignmentOperationMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment", - |m: &OSPolicyAssignmentOperationMetadata| { &m.os_policy_assignment }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "api_method", - |m: &OSPolicyAssignmentOperationMetadata| { &m.api_method }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.api_method }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "rollout_state", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_state }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "rollout_start_time", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_start_time }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "rollout_update_time", - |m: &OSPolicyAssignmentOperationMetadata| { &m.rollout_update_time }, - |m: &mut OSPolicyAssignmentOperationMetadata| { &mut m.rollout_update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OSPolicyAssignmentOperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OSPolicyAssignmentOperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OSPolicyAssignmentOperationMetadata::new) - } -} - -impl ::protobuf::Clear for OSPolicyAssignmentOperationMetadata { - fn clear(&mut self) { - self.os_policy_assignment.clear(); - self.api_method = OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED; - self.rollout_state = OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED; - self.rollout_start_time.clear(); - self.rollout_update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OSPolicyAssignmentOperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentOperationMetadata_APIMethod { - API_METHOD_UNSPECIFIED = 0, - CREATE = 1, - UPDATE = 2, - DELETE = 3, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentOperationMetadata_APIMethod { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::CREATE), - 2 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::UPDATE), - 3 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_APIMethod::DELETE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentOperationMetadata_APIMethod] = &[ - OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED, - OSPolicyAssignmentOperationMetadata_APIMethod::CREATE, - OSPolicyAssignmentOperationMetadata_APIMethod::UPDATE, - OSPolicyAssignmentOperationMetadata_APIMethod::DELETE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentOperationMetadata.APIMethod", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentOperationMetadata_APIMethod { -} - -impl ::std::default::Default for OSPolicyAssignmentOperationMetadata_APIMethod { - fn default() -> Self { - OSPolicyAssignmentOperationMetadata_APIMethod::API_METHOD_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata_APIMethod { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OSPolicyAssignmentOperationMetadata_RolloutState { - ROLLOUT_STATE_UNSPECIFIED = 0, - IN_PROGRESS = 1, - CANCELLING = 2, - CANCELLED = 3, - SUCCEEDED = 4, -} - -impl ::protobuf::ProtobufEnum for OSPolicyAssignmentOperationMetadata_RolloutState { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::IN_PROGRESS), - 2 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLING), - 3 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLED), - 4 => ::std::option::Option::Some(OSPolicyAssignmentOperationMetadata_RolloutState::SUCCEEDED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OSPolicyAssignmentOperationMetadata_RolloutState] = &[ - OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED, - OSPolicyAssignmentOperationMetadata_RolloutState::IN_PROGRESS, - OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLING, - OSPolicyAssignmentOperationMetadata_RolloutState::CANCELLED, - OSPolicyAssignmentOperationMetadata_RolloutState::SUCCEEDED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OSPolicyAssignmentOperationMetadata.RolloutState", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OSPolicyAssignmentOperationMetadata_RolloutState { -} - -impl ::std::default::Default for OSPolicyAssignmentOperationMetadata_RolloutState { - fn default() -> Self { - OSPolicyAssignmentOperationMetadata_RolloutState::ROLLOUT_STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OSPolicyAssignmentOperationMetadata_RolloutState { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateOSPolicyAssignmentRequest { - // message fields - pub parent: ::std::string::String, - pub os_policy_assignment: ::protobuf::SingularPtrField, - pub os_policy_assignment_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateOSPolicyAssignmentRequest { - fn default() -> &'a CreateOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl CreateOSPolicyAssignmentRequest { - pub fn new() -> CreateOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 2; - - - pub fn get_os_policy_assignment(&self) -> &OSPolicyAssignment { - self.os_policy_assignment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - pub fn has_os_policy_assignment(&self) -> bool { - self.os_policy_assignment.is_some() - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: OSPolicyAssignment) { - self.os_policy_assignment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut OSPolicyAssignment { - if self.os_policy_assignment.is_none() { - self.os_policy_assignment.set_default(); - } - self.os_policy_assignment.as_mut().unwrap() - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> OSPolicyAssignment { - self.os_policy_assignment.take().unwrap_or_else(|| OSPolicyAssignment::new()) - } - - // string os_policy_assignment_id = 3; - - - pub fn get_os_policy_assignment_id(&self) -> &str { - &self.os_policy_assignment_id - } - pub fn clear_os_policy_assignment_id(&mut self) { - self.os_policy_assignment_id.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment_id(&mut self, v: ::std::string::String) { - self.os_policy_assignment_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment_id(&mut self) -> &mut ::std::string::String { - &mut self.os_policy_assignment_id - } - - // Take field - pub fn take_os_policy_assignment_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.os_policy_assignment_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.os_policy_assignment_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.os_policy_assignment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.os_policy_assignment_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.os_policy_assignment_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.os_policy_assignment.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.os_policy_assignment_id.is_empty() { - os.write_string(3, &self.os_policy_assignment_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateOSPolicyAssignmentRequest { - CreateOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateOSPolicyAssignmentRequest| { &m.parent }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment", - |m: &CreateOSPolicyAssignmentRequest| { &m.os_policy_assignment }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "os_policy_assignment_id", - |m: &CreateOSPolicyAssignmentRequest| { &m.os_policy_assignment_id }, - |m: &mut CreateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for CreateOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.parent.clear(); - self.os_policy_assignment.clear(); - self.os_policy_assignment_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateOSPolicyAssignmentRequest { - // message fields - pub os_policy_assignment: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateOSPolicyAssignmentRequest { - fn default() -> &'a UpdateOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl UpdateOSPolicyAssignmentRequest { - pub fn new() -> UpdateOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignment = 1; - - - pub fn get_os_policy_assignment(&self) -> &OSPolicyAssignment { - self.os_policy_assignment.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_os_policy_assignment(&mut self) { - self.os_policy_assignment.clear(); - } - - pub fn has_os_policy_assignment(&self) -> bool { - self.os_policy_assignment.is_some() - } - - // Param is passed by value, moved - pub fn set_os_policy_assignment(&mut self, v: OSPolicyAssignment) { - self.os_policy_assignment = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_os_policy_assignment(&mut self) -> &mut OSPolicyAssignment { - if self.os_policy_assignment.is_none() { - self.os_policy_assignment.set_default(); - } - self.os_policy_assignment.as_mut().unwrap() - } - - // Take field - pub fn take_os_policy_assignment(&mut self) -> OSPolicyAssignment { - self.os_policy_assignment.take().unwrap_or_else(|| OSPolicyAssignment::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignment { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.os_policy_assignment)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.os_policy_assignment.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.os_policy_assignment.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateOSPolicyAssignmentRequest { - UpdateOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignment", - |m: &UpdateOSPolicyAssignmentRequest| { &m.os_policy_assignment }, - |m: &mut UpdateOSPolicyAssignmentRequest| { &mut m.os_policy_assignment }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateOSPolicyAssignmentRequest| { &m.update_mask }, - |m: &mut UpdateOSPolicyAssignmentRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for UpdateOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.os_policy_assignment.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetOSPolicyAssignmentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetOSPolicyAssignmentRequest { - fn default() -> &'a GetOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl GetOSPolicyAssignmentRequest { - pub fn new() -> GetOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetOSPolicyAssignmentRequest { - GetOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetOSPolicyAssignmentRequest| { &m.name }, - |m: &mut GetOSPolicyAssignmentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for GetOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentsRequest { - fn default() -> &'a ListOSPolicyAssignmentsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentsRequest { - pub fn new() -> ListOSPolicyAssignmentsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentsRequest { - ListOSPolicyAssignmentsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListOSPolicyAssignmentsRequest| { &m.parent }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentsResponse { - // message fields - pub os_policy_assignments: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentsResponse { - fn default() -> &'a ListOSPolicyAssignmentsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentsResponse { - pub fn new() -> ListOSPolicyAssignmentsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignments = 1; - - - pub fn get_os_policy_assignments(&self) -> &[OSPolicyAssignment] { - &self.os_policy_assignments - } - pub fn clear_os_policy_assignments(&mut self) { - self.os_policy_assignments.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignments(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignments = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignments(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignments - } - - // Take field - pub fn take_os_policy_assignments(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignments, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignments)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignments { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentsResponse { - ListOSPolicyAssignmentsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignments", - |m: &ListOSPolicyAssignmentsResponse| { &m.os_policy_assignments }, - |m: &mut ListOSPolicyAssignmentsResponse| { &mut m.os_policy_assignments }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentsResponse { - fn clear(&mut self) { - self.os_policy_assignments.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentRevisionsRequest { - // message fields - pub name: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentRevisionsRequest { - fn default() -> &'a ListOSPolicyAssignmentRevisionsRequest { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentRevisionsRequest { - pub fn new() -> ListOSPolicyAssignmentRevisionsRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentRevisionsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentRevisionsRequest { - ListOSPolicyAssignmentRevisionsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.name }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.page_size }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOSPolicyAssignmentRevisionsRequest| { &m.page_token }, - |m: &mut ListOSPolicyAssignmentRevisionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentRevisionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentRevisionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentRevisionsRequest::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentRevisionsRequest { - fn clear(&mut self) { - self.name.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentRevisionsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentRevisionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListOSPolicyAssignmentRevisionsResponse { - // message fields - pub os_policy_assignments: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListOSPolicyAssignmentRevisionsResponse { - fn default() -> &'a ListOSPolicyAssignmentRevisionsResponse { - ::default_instance() - } -} - -impl ListOSPolicyAssignmentRevisionsResponse { - pub fn new() -> ListOSPolicyAssignmentRevisionsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment os_policy_assignments = 1; - - - pub fn get_os_policy_assignments(&self) -> &[OSPolicyAssignment] { - &self.os_policy_assignments - } - pub fn clear_os_policy_assignments(&mut self) { - self.os_policy_assignments.clear(); - } - - // Param is passed by value, moved - pub fn set_os_policy_assignments(&mut self, v: ::protobuf::RepeatedField) { - self.os_policy_assignments = v; - } - - // Mutable pointer to the field. - pub fn mut_os_policy_assignments(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_policy_assignments - } - - // Take field - pub fn take_os_policy_assignments(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_policy_assignments, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListOSPolicyAssignmentRevisionsResponse { - fn is_initialized(&self) -> bool { - for v in &self.os_policy_assignments { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_policy_assignments)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.os_policy_assignments { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.os_policy_assignments { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListOSPolicyAssignmentRevisionsResponse { - ListOSPolicyAssignmentRevisionsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_policy_assignments", - |m: &ListOSPolicyAssignmentRevisionsResponse| { &m.os_policy_assignments }, - |m: &mut ListOSPolicyAssignmentRevisionsResponse| { &mut m.os_policy_assignments }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOSPolicyAssignmentRevisionsResponse| { &m.next_page_token }, - |m: &mut ListOSPolicyAssignmentRevisionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOSPolicyAssignmentRevisionsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListOSPolicyAssignmentRevisionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOSPolicyAssignmentRevisionsResponse::new) - } -} - -impl ::protobuf::Clear for ListOSPolicyAssignmentRevisionsResponse { - fn clear(&mut self) { - self.os_policy_assignments.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListOSPolicyAssignmentRevisionsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListOSPolicyAssignmentRevisionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteOSPolicyAssignmentRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteOSPolicyAssignmentRequest { - fn default() -> &'a DeleteOSPolicyAssignmentRequest { - ::default_instance() - } -} - -impl DeleteOSPolicyAssignmentRequest { - pub fn new() -> DeleteOSPolicyAssignmentRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteOSPolicyAssignmentRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteOSPolicyAssignmentRequest { - DeleteOSPolicyAssignmentRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteOSPolicyAssignmentRequest| { &m.name }, - |m: &mut DeleteOSPolicyAssignmentRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteOSPolicyAssignmentRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteOSPolicyAssignmentRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteOSPolicyAssignmentRequest::new) - } -} - -impl ::protobuf::Clear for DeleteOSPolicyAssignmentRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteOSPolicyAssignmentRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteOSPolicyAssignmentRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n9google/cloud/osconfig/v1alpha/os_policy_assignments.proto\x12\x1dgoog\ - le.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19\ - google/api/resource.proto\x1a-google/cloud/osconfig/v1alpha/os_policy.pr\ - oto\x1a3google/cloud/osconfig/v1alpha/osconfig_common.proto\x1a\x1egoogl\ - e/protobuf/duration.proto\x1a\x20google/protobuf/field_mask.proto\x1a\ - \x1fgoogle/protobuf/timestamp.proto\"\x8e\x0e\n\x12OSPolicyAssignment\ - \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x20\n\x0bdescription\ - \x18\x02\x20\x01(\tR\x0bdescription\x12M\n\x0bos_policies\x18\x03\x20\ - \x03(\x0b2'.google.cloud.osconfig.v1alpha.OSPolicyR\nosPoliciesB\x03\xe0\ - A\x02\x12n\n\x0finstance_filter\x18\x04\x20\x01(\x0b2@.google.cloud.osco\ - nfig.v1alpha.OSPolicyAssignment.InstanceFilterR\x0einstanceFilterB\x03\ - \xe0A\x02\x12X\n\x07rollout\x18\x05\x20\x01(\x0b29.google.cloud.osconfig\ - .v1alpha.OSPolicyAssignment.RolloutR\x07rolloutB\x03\xe0A\x02\x12$\n\x0b\ - revision_id\x18\x06\x20\x01(\tR\nrevisionIdB\x03\xe0A\x03\x12Q\n\x14revi\ - sion_create_time\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x12revisionCreateTimeB\x03\xe0A\x03\x12\x12\n\x04etag\x18\x08\x20\x01(\ - \tR\x04etag\x12h\n\rrollout_state\x18\t\x20\x01(\x0e2>.google.cloud.osco\ - nfig.v1alpha.OSPolicyAssignment.RolloutStateR\x0crolloutStateB\x03\xe0A\ - \x03\x12\x1f\n\x08baseline\x18\n\x20\x01(\x08R\x08baselineB\x03\xe0A\x03\ - \x12\x1d\n\x07deleted\x18\x0b\x20\x01(\x08R\x07deletedB\x03\xe0A\x03\x12\ - %\n\x0breconciling\x18\x0c\x20\x01(\x08R\x0breconcilingB\x03\xe0A\x03\ - \x12\x15\n\x03uid\x18\r\x20\x01(\tR\x03uidB\x03\xe0A\x03\x1a\xa5\x01\n\ - \x08LabelSet\x12^\n\x06labels\x18\x01\x20\x03(\x0b2F.google.cloud.osconf\ - ig.v1alpha.OSPolicyAssignment.LabelSet.LabelsEntryR\x06labels\x1a9\n\x0b\ - LabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05val\ - ue\x18\x02\x20\x01(\tR\x05value:\x028\x01\x1a\xdd\x03\n\x0eInstanceFilte\ - r\x12\x10\n\x03all\x18\x01\x20\x01(\x08R\x03all\x12(\n\x0eos_short_names\ - \x18\x02\x20\x03(\tR\x0cosShortNamesB\x02\x18\x01\x12e\n\x10inclusion_la\ - bels\x18\x03\x20\x03(\x0b2:.google.cloud.osconfig.v1alpha.OSPolicyAssign\ - ment.LabelSetR\x0finclusionLabels\x12e\n\x10exclusion_labels\x18\x04\x20\ - \x03(\x0b2:.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetR\ - \x0fexclusionLabels\x12l\n\x0binventories\x18\x05\x20\x03(\x0b2J.google.\ - cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.InventoryR\x0bi\ - nventories\x1aS\n\tInventory\x12'\n\ros_short_name\x18\x01\x20\x01(\tR\ - \x0bosShortNameB\x03\xe0A\x02\x12\x1d\n\nos_version\x18\x02\x20\x01(\tR\ - \tosVersion\x1a\xb6\x01\n\x07Rollout\x12_\n\x11disruption_budget\x18\x01\ - \x20\x01(\x0b2-.google.cloud.osconfig.v1alpha.FixedOrPercentR\x10disrupt\ - ionBudgetB\x03\xe0A\x02\x12J\n\x11min_wait_duration\x18\x02\x20\x01(\x0b\ - 2\x19.google.protobuf.DurationR\x0fminWaitDurationB\x03\xe0A\x02\"l\n\ - \x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\0\x12\x0f\n\ - \x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\ - \x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\x84\x01\xeaA\x80\x01\n*osconfig.goo\ - gleapis.com/OSPolicyAssignment\x12Rprojects/{project}/locations/{locatio\ - n}/osPolicyAssignments/{os_policy_assignment}\"\xbc\x05\n#OSPolicyAssign\ - mentOperationMetadata\x12a\n\x14os_policy_assignment\x18\x01\x20\x01(\tR\ - \x12osPolicyAssignmentB/\xfaA,\n*osconfig.googleapis.com/OSPolicyAssignm\ - ent\x12k\n\napi_method\x18\x02\x20\x01(\x0e2L.google.cloud.osconfig.v1al\ - pha.OSPolicyAssignmentOperationMetadata.APIMethodR\tapiMethod\x12t\n\rro\ - llout_state\x18\x03\x20\x01(\x0e2O.google.cloud.osconfig.v1alpha.OSPolic\ - yAssignmentOperationMetadata.RolloutStateR\x0crolloutState\x12H\n\x12rol\ - lout_start_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x10\ - rolloutStartTime\x12J\n\x13rollout_update_time\x18\x05\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampR\x11rolloutUpdateTime\"K\n\tAPIMethod\x12\x1a\ - \n\x16API_METHOD_UNSPECIFIED\x10\0\x12\n\n\x06CREATE\x10\x01\x12\n\n\x06\ - UPDATE\x10\x02\x12\n\n\x06DELETE\x10\x03\"l\n\x0cRolloutState\x12\x1d\n\ - \x19ROLLOUT_STATE_UNSPECIFIED\x10\0\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\ - \x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\ - \x10\x04\"\x8a\x02\n\x1fCreateOSPolicyAssignmentRequest\x12A\n\x06parent\ - \x18\x01\x20\x01(\tR\x06parentB)\xfaA#\n!locations.googleapis.com/Locati\ - on\xe0A\x02\x12h\n\x14os_policy_assignment\x18\x02\x20\x01(\x0b21.google\ - .cloud.osconfig.v1alpha.OSPolicyAssignmentR\x12osPolicyAssignmentB\x03\ - \xe0A\x02\x12:\n\x17os_policy_assignment_id\x18\x03\x20\x01(\tR\x14osPol\ - icyAssignmentIdB\x03\xe0A\x02\"\xcd\x01\n\x1fUpdateOSPolicyAssignmentReq\ - uest\x12h\n\x14os_policy_assignment\x18\x01\x20\x01(\x0b21.google.cloud.\ - osconfig.v1alpha.OSPolicyAssignmentR\x12osPolicyAssignmentB\x03\xe0A\x02\ - \x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMa\ - skR\nupdateMaskB\x03\xe0A\x01\"f\n\x1cGetOSPolicyAssignmentRequest\x12F\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB2\xfaA,\n*osconfig.googleapis.com\ - /OSPolicyAssignment\xe0A\x02\"\x9f\x01\n\x1eListOSPolicyAssignmentsReque\ - st\x12A\n\x06parent\x18\x01\x20\x01(\tR\x06parentB)\xfaA#\n!locations.go\ - ogleapis.com/Location\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05\ - R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\xb0\ - \x01\n\x1fListOSPolicyAssignmentsResponse\x12e\n\x15os_policy_assignment\ - s\x18\x01\x20\x03(\x0b21.google.cloud.osconfig.v1alpha.OSPolicyAssignmen\ - tR\x13osPolicyAssignments\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\ - \rnextPageToken\"\xac\x01\n&ListOSPolicyAssignmentRevisionsRequest\x12F\ - \n\x04name\x18\x01\x20\x01(\tR\x04nameB2\xfaA,\n*osconfig.googleapis.com\ - /OSPolicyAssignment\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\ - \x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\xb8\ - \x01\n'ListOSPolicyAssignmentRevisionsResponse\x12e\n\x15os_policy_assig\ - nments\x18\x01\x20\x03(\x0b21.google.cloud.osconfig.v1alpha.OSPolicyAssi\ - gnmentR\x13osPolicyAssignments\x12&\n\x0fnext_page_token\x18\x02\x20\x01\ - (\tR\rnextPageToken\"i\n\x1fDeleteOSPolicyAssignmentRequest\x12F\n\x04na\ - me\x18\x01\x20\x01(\tR\x04nameB2\xfaA,\n*osconfig.googleapis.com/OSPolic\ - yAssignment\xe0A\x02B\xe1\x01\n!com.google.cloud.osconfig.v1alphaB\x18Os\ - PolicyAssignmentsProtoP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osc\ - onfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dG\ - oogle\\Cloud\\OsConfig\\V1alpha\xea\x02\x20Google::Cloud::OsConfig::V1al\ - phaJ\x83g\n\x07\x12\x05\x0e\0\xfe\x02\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20License\ - d\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"L\ - icense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ - \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ - S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ - \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ - \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0&\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\ - \x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\07\n\t\n\x02\x03\ - \x03\x12\x03\x15\0=\n\t\n\x02\x03\x04\x12\x03\x16\0(\n\t\n\x02\x03\x05\ - \x12\x03\x17\0*\n\t\n\x02\x03\x06\x12\x03\x18\0)\n\x08\n\x01\x08\x12\x03\ - \x1a\0:\n\t\n\x02\x08%\x12\x03\x1a\0:\n\x08\n\x01\x08\x12\x03\x1b\0T\n\t\ - \n\x02\x08\x0b\x12\x03\x1b\0T\n\x08\n\x01\x08\x12\x03\x1c\0\"\n\t\n\x02\ - \x08\n\x12\x03\x1c\0\"\n\x08\n\x01\x08\x12\x03\x1d\09\n\t\n\x02\x08\x08\ - \x12\x03\x1d\09\n\x08\n\x01\x08\x12\x03\x1e\0:\n\t\n\x02\x08\x01\x12\x03\ - \x1e\0:\n\x08\n\x01\x08\x12\x03\x1f\0:\n\t\n\x02\x08)\x12\x03\x1f\0:\n\ - \x08\n\x01\x08\x12\x03\x20\09\n\t\n\x02\x08-\x12\x03\x20\09\n\xb4\x04\n\ - \x02\x04\0\x12\x05-\0\xd1\x01\x01\x1a\xa6\x04\x20OS\x20policy\x20assignm\ - ent\x20is\x20an\x20API\x20resource\x20that\x20is\x20used\x20to\n\x20appl\ - y\x20a\x20set\x20of\x20OS\x20policies\x20to\x20a\x20dynamically\x20targe\ - ted\x20group\x20of\x20Compute\x20Engine\n\x20VM\x20instances.\n\n\x20An\ - \x20OS\x20policy\x20is\x20used\x20to\x20define\x20the\x20desired\x20stat\ - e\x20configuration\x20for\x20a\n\x20Compute\x20Engine\x20VM\x20instance\ - \x20through\x20a\x20set\x20of\x20configuration\x20resources\x20that\n\ - \x20provide\x20capabilities\x20such\x20as\x20installing\x20or\x20removin\ - g\x20software\x20packages,\x20or\n\x20executing\x20a\x20script.\n\n\x20F\ - or\x20more\x20information,\x20see\x20[OS\x20policy\x20and\x20OS\x20polic\ - y\n\x20assignment](https://cloud.google.com/compute/docs/os-configuratio\ - n-management/working-with-os-policies).\n\n\n\n\x03\x04\0\x01\x12\x03-\ - \x08\x1a\n\x0b\n\x03\x04\0\x07\x12\x04.\x021\x04\n\r\n\x05\x04\0\x07\x9d\ - \x08\x12\x04.\x021\x04\n\xaf\x03\n\x04\x04\0\x03\0\x12\x04<\x02A\x03\x1a\ - \xa0\x03\x20Message\x20representing\x20label\x20set.\n\x20*\x20A\x20labe\ - l\x20is\x20a\x20key\x20value\x20pair\x20set\x20for\x20a\x20VM.\n\x20*\ - \x20A\x20LabelSet\x20is\x20a\x20set\x20of\x20labels.\n\x20*\x20Labels\ - \x20within\x20a\x20LabelSet\x20are\x20ANDed.\x20In\x20other\x20words,\ - \x20a\x20LabelSet\x20is\n\x20\x20\x20applicable\x20for\x20a\x20VM\x20onl\ - y\x20if\x20it\x20matches\x20all\x20the\x20labels\x20in\x20the\n\x20\x20\ - \x20LabelSet.\n\x20*\x20Example:\x20A\x20LabelSet\x20with\x202\x20labels\ - :\x20`env=prod`\x20and\x20`type=webserver`\x20will\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20only\x20be\x20applicable\x20for\x20those\x20\ - VMs\x20with\x20both\x20labels\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20present.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03<\n\x12\n\x9b\x01\ - \n\x06\x04\0\x03\0\x02\0\x12\x03@\x04#\x1a\x8b\x01\x20Labels\x20are\x20i\ - dentified\x20by\x20key/value\x20pairs\x20in\x20this\x20map.\n\x20A\x20VM\ - \x20should\x20contain\x20all\x20the\x20key/value\x20pairs\x20specified\ - \x20in\x20this\n\x20map\x20to\x20be\x20selected.\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\0\x06\x12\x03@\x04\x17\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03@\ - \x18\x1e\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03@!\"\n\xb7\x01\n\x04\ - \x04\0\x03\x01\x12\x04G\x02q\x03\x1a\xa8\x01\x20Filters\x20to\x20select\ - \x20target\x20VMs\x20for\x20an\x20assignment.\n\n\x20If\x20more\x20than\ - \x20one\x20filter\x20criteria\x20is\x20specified\x20below,\x20a\x20VM\ - \x20will\x20be\x20selected\n\x20if\x20and\x20only\x20if\x20it\x20satisfi\ - es\x20all\x20of\x20them.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03G\n\x18\ - \n'\n\x06\x04\0\x03\x01\x03\0\x12\x04I\x04U\x05\x1a\x17\x20VM\x20invento\ - ry\x20details.\n\n\x0e\n\x07\x04\0\x03\x01\x03\0\x01\x12\x03I\x0c\x15\n.\ - \n\x08\x04\0\x03\x01\x03\0\x02\0\x12\x03K\x06H\x1a\x1d\x20Required.\x20T\ - he\x20OS\x20short\x20name\n\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\ - \x03K\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\0\x02\0\x01\x12\x03K\r\x1a\n\ - \x10\n\t\x04\0\x03\x01\x03\0\x02\0\x03\x12\x03K\x1d\x1e\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\0\x08\x12\x03K\x1fG\n\x13\n\x0c\x04\0\x03\x01\x03\0\ - \x02\0\x08\x9c\x08\0\x12\x03K\x20F\n\x91\x02\n\x08\x04\0\x03\x01\x03\0\ - \x02\x01\x12\x03T\x06\x1c\x1a\xff\x01\x20The\x20OS\x20version\n\n\x20Pre\ - fix\x20matches\x20are\x20supported\x20if\x20asterisk(*)\x20is\x20provide\ - d\x20as\x20the\n\x20last\x20character.\x20For\x20example,\x20to\x20match\ - \x20all\x20versions\x20with\x20a\x20major\n\x20version\x20of\x20`7`,\x20\ - specify\x20the\x20following\x20value\x20for\x20this\x20field\x20`7.*`\n\ - \n\x20An\x20empty\x20string\x20matches\x20all\x20OS\x20versions.\n\n\x10\ - \n\t\x04\0\x03\x01\x03\0\x02\x01\x05\x12\x03T\x06\x0c\n\x10\n\t\x04\0\ - \x03\x01\x03\0\x02\x01\x01\x12\x03T\r\x17\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\x01\x03\x12\x03T\x1a\x1b\nY\n\x06\x04\0\x03\x01\x02\0\x12\x03Y\x04\ - \x11\x1aJ\x20Target\x20all\x20VMs\x20in\x20the\x20project.\x20If\x20true\ - ,\x20no\x20other\x20criteria\x20is\n\x20permitted.\n\n\x0e\n\x07\x04\0\ - \x03\x01\x02\0\x05\x12\x03Y\x04\x08\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\ - \x12\x03Y\t\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03Y\x0f\x10\n\ - \xa1\x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03^\x04;\x1a\x91\x01\x20Deprec\ - ated.\x20Use\x20the\x20`inventories`\x20field\x20instead.\n\x20A\x20VM\ - \x20is\x20selected\x20if\x20it's\x20OS\x20short\x20name\x20matches\x20wi\ - th\x20any\x20of\x20the\n\x20values\x20provided\x20in\x20this\x20list.\n\ - \n\x0e\n\x07\x04\0\x03\x01\x02\x01\x04\x12\x03^\x04\x0c\n\x0e\n\x07\x04\ - \0\x03\x01\x02\x01\x05\x12\x03^\r\x13\n\x0e\n\x07\x04\0\x03\x01\x02\x01\ - \x01\x12\x03^\x14\"\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03^%&\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x01\x08\x12\x03^':\n\x0f\n\x08\x04\0\x03\ - \x01\x02\x01\x08\x03\x12\x03^(9\n\xaf\x01\n\x06\x04\0\x03\x01\x02\x02\ - \x12\x03d\x04+\x1a\x9f\x01\x20List\x20of\x20label\x20sets\x20used\x20for\ - \x20VM\x20inclusion.\n\n\x20If\x20the\x20list\x20has\x20more\x20than\x20\ - one\x20`LabelSet`,\x20the\x20VM\x20is\x20included\x20if\x20any\n\x20of\ - \x20the\x20label\x20sets\x20are\x20applicable\x20for\x20the\x20VM.\n\n\ - \x0e\n\x07\x04\0\x03\x01\x02\x02\x04\x12\x03d\x04\x0c\n\x0e\n\x07\x04\0\ - \x03\x01\x02\x02\x06\x12\x03d\r\x15\n\x0e\n\x07\x04\0\x03\x01\x02\x02\ - \x01\x12\x03d\x16&\n\x0e\n\x07\x04\0\x03\x01\x02\x02\x03\x12\x03d)*\n\ - \xae\x01\n\x06\x04\0\x03\x01\x02\x03\x12\x03j\x04+\x1a\x9e\x01\x20List\ - \x20of\x20label\x20sets\x20used\x20for\x20VM\x20exclusion.\n\n\x20If\x20\ - the\x20list\x20has\x20more\x20than\x20one\x20label\x20set,\x20the\x20VM\ - \x20is\x20excluded\x20if\x20any\n\x20of\x20the\x20label\x20sets\x20are\ - \x20applicable\x20for\x20the\x20VM.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x03\ - \x04\x12\x03j\x04\x0c\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x06\x12\x03j\r\ - \x15\n\x0e\n\x07\x04\0\x03\x01\x02\x03\x01\x12\x03j\x16&\n\x0e\n\x07\x04\ - \0\x03\x01\x02\x03\x03\x12\x03j)*\n\x91\x01\n\x06\x04\0\x03\x01\x02\x04\ - \x12\x03p\x04'\x1a\x81\x01\x20List\x20of\x20inventories\x20to\x20select\ - \x20VMs.\n\n\x20A\x20VM\x20is\x20selected\x20if\x20its\x20inventory\x20d\ - ata\x20matches\x20at\x20least\x20one\x20of\x20the\n\x20following\x20inve\ - ntories.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x04\x12\x03p\x04\x0c\n\x0e\ - \n\x07\x04\0\x03\x01\x02\x04\x06\x12\x03p\r\x16\n\x0e\n\x07\x04\0\x03\ - \x01\x02\x04\x01\x12\x03p\x17\"\n\x0e\n\x07\x04\0\x03\x01\x02\x04\x03\ - \x12\x03p%&\nc\n\x04\x04\0\x03\x02\x12\x05u\x02\x80\x01\x03\x1aT\x20Mess\ - age\x20to\x20configure\x20the\x20rollout\x20at\x20the\x20zonal\x20level\ - \x20for\x20the\x20OS\x20policy\n\x20assignment.\n\n\x0c\n\x05\x04\0\x03\ - \x02\x01\x12\x03u\n\x11\nn\n\x06\x04\0\x03\x02\x02\0\x12\x03x\x04R\x1a_\ - \x20Required.\x20The\x20maximum\x20number\x20(or\x20percentage)\x20of\ - \x20VMs\x20per\x20zone\x20to\x20disrupt\x20at\n\x20any\x20given\x20momen\ - t.\n\n\x0e\n\x07\x04\0\x03\x02\x02\0\x06\x12\x03x\x04\x12\n\x0e\n\x07\ - \x04\0\x03\x02\x02\0\x01\x12\x03x\x13$\n\x0e\n\x07\x04\0\x03\x02\x02\0\ - \x03\x12\x03x'(\n\x0e\n\x07\x04\0\x03\x02\x02\0\x08\x12\x03x)Q\n\x11\n\n\ - \x04\0\x03\x02\x02\0\x08\x9c\x08\0\x12\x03x*P\n\xae\x02\n\x06\x04\0\x03\ - \x02\x02\x01\x12\x03\x7f\x04\\\x1a\x9e\x02\x20Required.\x20This\x20deter\ - mines\x20the\x20minimum\x20duration\x20of\x20time\x20to\x20wait\x20after\ - \x20the\n\x20configuration\x20changes\x20are\x20applied\x20through\x20th\ - e\x20current\x20rollout.\x20A\n\x20VM\x20continues\x20to\x20count\x20tow\ - ards\x20the\x20`disruption_budget`\x20at\x20least\n\x20until\x20this\x20\ - duration\x20of\x20time\x20has\x20passed\x20after\x20configuration\x20cha\ - nges\x20are\n\x20applied.\n\n\x0e\n\x07\x04\0\x03\x02\x02\x01\x06\x12\ - \x03\x7f\x04\x1c\n\x0e\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x03\x7f\x1d.\ - \n\x0e\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x03\x7f12\n\x0e\n\x07\x04\0\ - \x03\x02\x02\x01\x08\x12\x03\x7f3[\n\x11\n\n\x04\0\x03\x02\x02\x01\x08\ - \x9c\x08\0\x12\x03\x7f4Z\n4\n\x04\x04\0\x04\0\x12\x06\x83\x01\x02\x92\ - \x01\x03\x1a$\x20OS\x20policy\x20assignment\x20rollout\x20state\n\n\r\n\ - \x05\x04\0\x04\0\x01\x12\x04\x83\x01\x07\x13\n\x1f\n\x06\x04\0\x04\0\x02\ - \0\x12\x04\x85\x01\x04\"\x1a\x0f\x20Invalid\x20value\n\n\x0f\n\x07\x04\0\ - \x04\0\x02\0\x01\x12\x04\x85\x01\x04\x1d\n\x0f\n\x07\x04\0\x04\0\x02\0\ - \x02\x12\x04\x85\x01\x20!\n-\n\x06\x04\0\x04\0\x02\x01\x12\x04\x88\x01\ - \x04\x14\x1a\x1d\x20The\x20rollout\x20is\x20in\x20progress.\n\n\x0f\n\ - \x07\x04\0\x04\0\x02\x01\x01\x12\x04\x88\x01\x04\x0f\n\x0f\n\x07\x04\0\ - \x04\0\x02\x01\x02\x12\x04\x88\x01\x12\x13\n1\n\x06\x04\0\x04\0\x02\x02\ - \x12\x04\x8b\x01\x04\x13\x1a!\x20The\x20rollout\x20is\x20being\x20cancel\ - led.\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\x12\x04\x8b\x01\x04\x0e\n\x0f\ - \n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\x8b\x01\x11\x12\n+\n\x06\x04\0\ - \x04\0\x02\x03\x12\x04\x8e\x01\x04\x12\x1a\x1b\x20The\x20rollout\x20is\ - \x20cancelled.\n\n\x0f\n\x07\x04\0\x04\0\x02\x03\x01\x12\x04\x8e\x01\x04\ - \r\n\x0f\n\x07\x04\0\x04\0\x02\x03\x02\x12\x04\x8e\x01\x10\x11\n9\n\x06\ - \x04\0\x04\0\x02\x04\x12\x04\x91\x01\x04\x12\x1a)\x20The\x20rollout\x20h\ - as\x20completed\x20successfully.\n\n\x0f\n\x07\x04\0\x04\0\x02\x04\x01\ - \x12\x04\x91\x01\x04\r\n\x0f\n\x07\x04\0\x04\0\x02\x04\x02\x12\x04\x91\ - \x01\x10\x11\n\xca\x01\n\x04\x04\0\x02\0\x12\x04\x9a\x01\x02\x12\x1a\xbb\ - \x01\x20Resource\x20name.\n\n\x20Format:\n\x20`projects/{project_number}\ - /locations/{location}/osPolicyAssignments/{os_policy_assignment_id}`\n\n\ - \x20This\x20field\x20is\x20ignored\x20when\x20you\x20create\x20an\x20OS\ - \x20policy\x20assignment.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x9a\x01\ - \x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x9a\x01\t\r\n\r\n\x05\x04\0\ - \x02\0\x03\x12\x04\x9a\x01\x10\x11\nk\n\x04\x04\0\x02\x01\x12\x04\x9e\ - \x01\x02\x19\x1a]\x20OS\x20policy\x20assignment\x20description.\n\x20Len\ - gth\x20of\x20the\x20description\x20is\x20limited\x20to\x201024\x20charac\ - ters.\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9e\x01\x02\x08\n\r\n\x05\ - \x04\0\x02\x01\x01\x12\x04\x9e\x01\t\x14\n\r\n\x05\x04\0\x02\x01\x03\x12\ - \x04\x9e\x01\x17\x18\nG\n\x04\x04\0\x02\x02\x12\x04\xa1\x01\x02M\x1a9\ - \x20Required.\x20List\x20of\x20OS\x20policies\x20to\x20be\x20applied\x20\ - to\x20the\x20VMs.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\xa1\x01\x02\n\n\ - \r\n\x05\x04\0\x02\x02\x06\x12\x04\xa1\x01\x0b\x13\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\xa1\x01\x14\x1f\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xa1\ - \x01\"#\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\xa1\x01$L\n\x10\n\x08\x04\0\ - \x02\x02\x08\x9c\x08\0\x12\x04\xa1\x01%K\n/\n\x04\x04\0\x02\x03\x12\x04\ - \xa4\x01\x02N\x1a!\x20Required.\x20Filter\x20to\x20select\x20VMs.\n\n\r\ - \n\x05\x04\0\x02\x03\x06\x12\x04\xa4\x01\x02\x10\n\r\n\x05\x04\0\x02\x03\ - \x01\x12\x04\xa4\x01\x11\x20\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xa4\x01\ - #$\n\r\n\x05\x04\0\x02\x03\x08\x12\x04\xa4\x01%M\n\x10\n\x08\x04\0\x02\ - \x03\x08\x9c\x08\0\x12\x04\xa4\x01&L\n\xcc\x02\n\x04\x04\0\x02\x04\x12\ - \x04\xae\x01\x02?\x1a\xbd\x02\x20Required.\x20Rollout\x20to\x20deploy\ - \x20the\x20OS\x20policy\x20assignment.\n\x20A\x20rollout\x20is\x20trigge\ - red\x20in\x20the\x20following\x20situations:\n\x201)\x20OSPolicyAssignme\ - nt\x20is\x20created.\n\x202)\x20OSPolicyAssignment\x20is\x20updated\x20a\ - nd\x20the\x20update\x20contains\x20changes\x20to\x20one\x20of\n\x20the\ - \x20following\x20fields:\n\x20\x20\x20\x20-\x20instance_filter\n\x20\x20\ - \x20\x20-\x20os_policies\n\x203)\x20OSPolicyAssignment\x20is\x20deleted.\ - \n\n\r\n\x05\x04\0\x02\x04\x06\x12\x04\xae\x01\x02\t\n\r\n\x05\x04\0\x02\ - \x04\x01\x12\x04\xae\x01\n\x11\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xae\ - \x01\x14\x15\n\r\n\x05\x04\0\x02\x04\x08\x12\x04\xae\x01\x16>\n\x10\n\ - \x08\x04\0\x02\x04\x08\x9c\x08\0\x12\x04\xae\x01\x17=\n\x91\x01\n\x04\ - \x04\0\x02\x05\x12\x04\xb3\x01\x02E\x1a\x82\x01\x20Output\x20only.\x20Th\ - e\x20assignment\x20revision\x20ID\n\x20A\x20new\x20revision\x20is\x20com\ - mitted\x20whenever\x20a\x20rollout\x20is\x20triggered\x20for\x20a\x20OS\ - \x20policy\n\x20assignment\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\xb3\x01\ - \x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xb3\x01\t\x14\n\r\n\x05\x04\ - \0\x02\x05\x03\x12\x04\xb3\x01\x17\x18\n\r\n\x05\x04\0\x02\x05\x08\x12\ - \x04\xb3\x01\x19D\n\x10\n\x08\x04\0\x02\x05\x08\x9c\x08\0\x12\x04\xb3\ - \x01\x1aC\nI\n\x04\x04\0\x02\x06\x12\x04\xb6\x01\x02a\x1a;\x20Output\x20\ - only.\x20The\x20timestamp\x20that\x20the\x20revision\x20was\x20created.\ - \n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xb6\x01\x02\x1b\n\r\n\x05\x04\0\ - \x02\x06\x01\x12\x04\xb6\x01\x1c0\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\ - \xb6\x0134\n\r\n\x05\x04\0\x02\x06\x08\x12\x04\xb6\x015`\n\x10\n\x08\x04\ - \0\x02\x06\x08\x9c\x08\0\x12\x04\xb6\x016_\nx\n\x04\x04\0\x02\x07\x12\ - \x04\xba\x01\x02\x12\x1aj\x20The\x20etag\x20for\x20this\x20OS\x20policy\ - \x20assignment.\n\x20If\x20this\x20is\x20provided\x20on\x20update,\x20it\ - \x20must\x20match\x20the\x20server's\x20etag.\n\n\r\n\x05\x04\0\x02\x07\ - \x05\x12\x04\xba\x01\x02\x08\n\r\n\x05\x04\0\x02\x07\x01\x12\x04\xba\x01\ - \t\r\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xba\x01\x10\x11\n?\n\x04\x04\0\ - \x02\x08\x12\x04\xbd\x01\x02M\x1a1\x20Output\x20only.\x20OS\x20policy\ - \x20assignment\x20rollout\x20state\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\ - \xbd\x01\x02\x0e\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xbd\x01\x0f\x1c\n\r\ - \n\x05\x04\0\x02\x08\x03\x12\x04\xbd\x01\x1f\x20\n\r\n\x05\x04\0\x02\x08\ - \x08\x12\x04\xbd\x01!L\n\x10\n\x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x04\ - \xbd\x01\"K\n\x8d\x02\n\x04\x04\0\x02\t\x12\x04\xc4\x01\x02A\x1a\xfe\x01\ - \x20Output\x20only.\x20Indicates\x20that\x20this\x20revision\x20has\x20b\ - een\x20successfully\x20rolled\x20out\x20in\x20this\x20zone\n\x20and\x20n\ - ew\x20VMs\x20will\x20be\x20assigned\x20OS\x20policies\x20from\x20this\ - \x20revision.\n\n\x20For\x20a\x20given\x20OS\x20policy\x20assignment,\ - \x20there\x20is\x20only\x20one\x20revision\x20with\x20a\x20value\n\x20of\ - \x20`true`\x20for\x20this\x20field.\n\n\r\n\x05\x04\0\x02\t\x05\x12\x04\ - \xc4\x01\x02\x06\n\r\n\x05\x04\0\x02\t\x01\x12\x04\xc4\x01\x07\x0f\n\r\n\ - \x05\x04\0\x02\t\x03\x12\x04\xc4\x01\x12\x14\n\r\n\x05\x04\0\x02\t\x08\ - \x12\x04\xc4\x01\x15@\n\x10\n\x08\x04\0\x02\t\x08\x9c\x08\0\x12\x04\xc4\ - \x01\x16?\n[\n\x04\x04\0\x02\n\x12\x04\xc7\x01\x02@\x1aM\x20Output\x20on\ - ly.\x20Indicates\x20that\x20this\x20revision\x20deletes\x20the\x20OS\x20\ - policy\x20assignment.\n\n\r\n\x05\x04\0\x02\n\x05\x12\x04\xc7\x01\x02\ - \x06\n\r\n\x05\x04\0\x02\n\x01\x12\x04\xc7\x01\x07\x0e\n\r\n\x05\x04\0\ - \x02\n\x03\x12\x04\xc7\x01\x11\x13\n\r\n\x05\x04\0\x02\n\x08\x12\x04\xc7\ - \x01\x14?\n\x10\n\x08\x04\0\x02\n\x08\x9c\x08\0\x12\x04\xc7\x01\x15>\n\ - \xb3\x01\n\x04\x04\0\x02\x0b\x12\x04\xcd\x01\x02D\x1a\xa4\x01\x20Output\ - \x20only.\x20Indicates\x20that\x20reconciliation\x20is\x20in\x20progress\ - \x20for\x20the\x20revision.\n\x20This\x20value\x20is\x20`true`\x20when\ - \x20the\x20`rollout_state`\x20is\x20one\x20of:\n\x20*\x20IN_PROGRESS\n\ - \x20*\x20CANCELLING\n\n\r\n\x05\x04\0\x02\x0b\x05\x12\x04\xcd\x01\x02\ - \x06\n\r\n\x05\x04\0\x02\x0b\x01\x12\x04\xcd\x01\x07\x12\n\r\n\x05\x04\0\ - \x02\x0b\x03\x12\x04\xcd\x01\x15\x17\n\r\n\x05\x04\0\x02\x0b\x08\x12\x04\ - \xcd\x01\x18C\n\x10\n\x08\x04\0\x02\x0b\x08\x9c\x08\0\x12\x04\xcd\x01\ - \x19B\n^\n\x04\x04\0\x02\x0c\x12\x04\xd0\x01\x02>\x1aP\x20Output\x20only\ - .\x20Server\x20generated\x20unique\x20id\x20for\x20the\x20OS\x20policy\ - \x20assignment\x20resource.\n\n\r\n\x05\x04\0\x02\x0c\x05\x12\x04\xd0\ - \x01\x02\x08\n\r\n\x05\x04\0\x02\x0c\x01\x12\x04\xd0\x01\t\x0c\n\r\n\x05\ - \x04\0\x02\x0c\x03\x12\x04\xd0\x01\x0f\x11\n\r\n\x05\x04\0\x02\x0c\x08\ - \x12\x04\xd0\x01\x12=\n\x10\n\x08\x04\0\x02\x0c\x08\x9c\x08\0\x12\x04\ - \xd0\x01\x13<\n\x8a\x01\n\x02\x04\x01\x12\x06\xd5\x01\0\x8a\x02\x01\x1a|\ - \x20OS\x20policy\x20assignment\x20operation\x20metadata\x20provided\x20b\ - y\x20OS\x20policy\x20assignment\x20API\n\x20methods\x20that\x20return\ - \x20long\x20running\x20operations.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xd5\ - \x01\x08+\n6\n\x04\x04\x01\x04\0\x12\x06\xd7\x01\x02\xe3\x01\x03\x1a&\ - \x20The\x20OS\x20policy\x20assignment\x20API\x20method.\n\n\r\n\x05\x04\ - \x01\x04\0\x01\x12\x04\xd7\x01\x07\x10\n\x1f\n\x06\x04\x01\x04\0\x02\0\ - \x12\x04\xd9\x01\x04\x1f\x1a\x0f\x20Invalid\x20value\n\n\x0f\n\x07\x04\ - \x01\x04\0\x02\0\x01\x12\x04\xd9\x01\x04\x1a\n\x0f\n\x07\x04\x01\x04\0\ - \x02\0\x02\x12\x04\xd9\x01\x1d\x1e\n8\n\x06\x04\x01\x04\0\x02\x01\x12\ - \x04\xdc\x01\x04\x0f\x1a(\x20Create\x20OS\x20policy\x20assignment\x20API\ - \x20method\n\n\x0f\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x04\xdc\x01\x04\n\ - \n\x0f\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x04\xdc\x01\r\x0e\n8\n\x06\ - \x04\x01\x04\0\x02\x02\x12\x04\xdf\x01\x04\x0f\x1a(\x20Update\x20OS\x20p\ - olicy\x20assignment\x20API\x20method\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\ - \x01\x12\x04\xdf\x01\x04\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\ - \xdf\x01\r\x0e\n8\n\x06\x04\x01\x04\0\x02\x03\x12\x04\xe2\x01\x04\x0f\ - \x1a(\x20Delete\x20OS\x20policy\x20assignment\x20API\x20method\n\n\x0f\n\ - \x07\x04\x01\x04\0\x02\x03\x01\x12\x04\xe2\x01\x04\n\n\x0f\n\x07\x04\x01\ - \x04\0\x02\x03\x02\x12\x04\xe2\x01\r\x0e\n&\n\x04\x04\x01\x04\x01\x12\ - \x06\xe6\x01\x02\xf5\x01\x03\x1a\x16\x20State\x20of\x20the\x20rollout\n\ - \n\r\n\x05\x04\x01\x04\x01\x01\x12\x04\xe6\x01\x07\x13\n\x1f\n\x06\x04\ - \x01\x04\x01\x02\0\x12\x04\xe8\x01\x04\"\x1a\x0f\x20Invalid\x20value\n\n\ - \x0f\n\x07\x04\x01\x04\x01\x02\0\x01\x12\x04\xe8\x01\x04\x1d\n\x0f\n\x07\ - \x04\x01\x04\x01\x02\0\x02\x12\x04\xe8\x01\x20!\n-\n\x06\x04\x01\x04\x01\ - \x02\x01\x12\x04\xeb\x01\x04\x14\x1a\x1d\x20The\x20rollout\x20is\x20in\ - \x20progress.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x01\x01\x12\x04\xeb\x01\ - \x04\x0f\n\x0f\n\x07\x04\x01\x04\x01\x02\x01\x02\x12\x04\xeb\x01\x12\x13\ - \n1\n\x06\x04\x01\x04\x01\x02\x02\x12\x04\xee\x01\x04\x13\x1a!\x20The\ - \x20rollout\x20is\x20being\x20cancelled.\n\n\x0f\n\x07\x04\x01\x04\x01\ - \x02\x02\x01\x12\x04\xee\x01\x04\x0e\n\x0f\n\x07\x04\x01\x04\x01\x02\x02\ - \x02\x12\x04\xee\x01\x11\x12\n+\n\x06\x04\x01\x04\x01\x02\x03\x12\x04\ - \xf1\x01\x04\x12\x1a\x1b\x20The\x20rollout\x20is\x20cancelled.\n\n\x0f\n\ - \x07\x04\x01\x04\x01\x02\x03\x01\x12\x04\xf1\x01\x04\r\n\x0f\n\x07\x04\ - \x01\x04\x01\x02\x03\x02\x12\x04\xf1\x01\x10\x11\n9\n\x06\x04\x01\x04\ - \x01\x02\x04\x12\x04\xf4\x01\x04\x12\x1a)\x20The\x20rollout\x20has\x20co\ - mpleted\x20successfully.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x01\x12\ - \x04\xf4\x01\x04\r\n\x0f\n\x07\x04\x01\x04\x01\x02\x04\x02\x12\x04\xf4\ - \x01\x10\x11\n\xbc\x01\n\x04\x04\x01\x02\0\x12\x06\xfb\x01\x02\xfd\x01&\ - \x1a\xab\x01\x20Reference\x20to\x20the\x20`OSPolicyAssignment`\x20API\ - \x20resource.\n\n\x20Format:\n\x20`projects/{project_number}/locations/{\ - location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`\n\n\ - \r\n\x05\x04\x01\x02\0\x05\x12\x04\xfb\x01\x02\x08\n\r\n\x05\x04\x01\x02\ - \0\x01\x12\x04\xfb\x01\t\x1d\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xfb\x01\ - \x20!\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\xfb\x01\"\xfd\x01%\n\x11\n\ - \x07\x04\x01\x02\0\x08\x9f\x08\x12\x06\xfb\x01#\xfd\x01$\n4\n\x04\x04\ - \x01\x02\x01\x12\x04\x80\x02\x02\x1b\x1a&\x20The\x20OS\x20policy\x20assi\ - gnment\x20API\x20method.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x80\x02\ - \x02\x0b\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x80\x02\x0c\x16\n\r\n\x05\ - \x04\x01\x02\x01\x03\x12\x04\x80\x02\x19\x1a\n$\n\x04\x04\x01\x02\x02\ - \x12\x04\x83\x02\x02!\x1a\x16\x20State\x20of\x20the\x20rollout\n\n\r\n\ - \x05\x04\x01\x02\x02\x06\x12\x04\x83\x02\x02\x0e\n\r\n\x05\x04\x01\x02\ - \x02\x01\x12\x04\x83\x02\x0f\x1c\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ - \x83\x02\x1f\x20\n\"\n\x04\x04\x01\x02\x03\x12\x04\x86\x02\x023\x1a\x14\ - \x20Rollout\x20start\x20time\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\x86\ - \x02\x02\x1b\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x86\x02\x1c.\n\r\n\ - \x05\x04\x01\x02\x03\x03\x12\x04\x86\x0212\n#\n\x04\x04\x01\x02\x04\x12\ - \x04\x89\x02\x024\x1a\x15\x20Rollout\x20update\x20time\n\n\r\n\x05\x04\ - \x01\x02\x04\x06\x12\x04\x89\x02\x02\x1b\n\r\n\x05\x04\x01\x02\x04\x01\ - \x12\x04\x89\x02\x1c/\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x89\x0223\nC\ - \n\x02\x04\x02\x12\x06\x8d\x02\0\xa3\x02\x01\x1a5\x20A\x20request\x20mes\ - sage\x20to\x20create\x20an\x20OS\x20policy\x20assignment\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\x8d\x02\x08'\nj\n\x04\x04\x02\x02\0\x12\x06\x90\x02\ - \x02\x95\x02\x04\x1aZ\x20Required.\x20The\x20parent\x20resource\x20name\ - \x20in\x20the\x20form:\n\x20projects/{project}/locations/{location}\n\n\ - \r\n\x05\x04\x02\x02\0\x05\x12\x04\x90\x02\x02\x08\n\r\n\x05\x04\x02\x02\ - \0\x01\x12\x04\x90\x02\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x90\x02\ - \x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x90\x02\x14\x95\x02\x03\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x91\x02\x04*\n\x11\n\x07\ - \x04\x02\x02\0\x08\x9f\x08\x12\x06\x92\x02\x04\x94\x02\x05\nA\n\x04\x04\ - \x02\x02\x01\x12\x04\x98\x02\x02W\x1a3\x20Required.\x20The\x20OS\x20poli\ - cy\x20assignment\x20to\x20be\x20created.\n\n\r\n\x05\x04\x02\x02\x01\x06\ - \x12\x04\x98\x02\x02\x14\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x98\x02\ - \x15)\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x98\x02,-\n\r\n\x05\x04\x02\ - \x02\x01\x08\x12\x04\x98\x02.V\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\ - \x12\x04\x98\x02/U\n\xc5\x02\n\x04\x04\x02\x02\x02\x12\x04\xa2\x02\x02N\ - \x1a\xb6\x02\x20Required.\x20The\x20logical\x20name\x20of\x20the\x20OS\ - \x20policy\x20assignment\x20in\x20the\x20project\n\x20with\x20the\x20fol\ - lowing\x20restrictions:\n\n\x20*\x20Must\x20contain\x20only\x20lowercase\ - \x20letters,\x20numbers,\x20and\x20hyphens.\n\x20*\x20Must\x20start\x20w\ - ith\x20a\x20letter.\n\x20*\x20Must\x20be\x20between\x201-63\x20character\ - s.\n\x20*\x20Must\x20end\x20with\x20a\x20number\x20or\x20a\x20letter.\n\ - \x20*\x20Must\x20be\x20unique\x20within\x20the\x20project.\n\n\r\n\x05\ - \x04\x02\x02\x02\x05\x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\x02\x02\x02\ - \x01\x12\x04\xa2\x02\t\x20\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xa2\x02\ - #$\n\r\n\x05\x04\x02\x02\x02\x08\x12\x04\xa2\x02%M\n\x10\n\x08\x04\x02\ - \x02\x02\x08\x9c\x08\0\x12\x04\xa2\x02&L\nC\n\x02\x04\x03\x12\x06\xa6\ - \x02\0\xac\x02\x01\x1a5\x20A\x20request\x20message\x20to\x20update\x20an\ - \x20OS\x20policy\x20assignment\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xa6\x02\ - \x08'\n;\n\x04\x04\x03\x02\0\x12\x04\xa8\x02\x02W\x1a-\x20Required.\x20T\ - he\x20updated\x20OS\x20policy\x20assignment.\n\n\r\n\x05\x04\x03\x02\0\ - \x06\x12\x04\xa8\x02\x02\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa8\x02\ - \x15)\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa8\x02,-\n\r\n\x05\x04\x03\ - \x02\0\x08\x12\x04\xa8\x02.V\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\ - \x04\xa8\x02/U\nd\n\x04\x04\x03\x02\x01\x12\x04\xab\x02\x02U\x1aV\x20Opt\ - ional.\x20Field\x20mask\x20that\x20controls\x20which\x20fields\x20of\x20\ - the\x20assignment\x20should\x20be\x20updated.\n\n\r\n\x05\x04\x03\x02\ - \x01\x06\x12\x04\xab\x02\x02\x1b\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\ - \xab\x02\x1c'\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xab\x02*+\n\r\n\x05\ - \x04\x03\x02\x01\x08\x12\x04\xab\x02,T\n\x10\n\x08\x04\x03\x02\x01\x08\ - \x9c\x08\0\x12\x04\xab\x02-S\n@\n\x02\x04\x04\x12\x06\xaf\x02\0\xba\x02\ - \x01\x1a2\x20A\x20request\x20message\x20to\x20get\x20an\x20OS\x20policy\ - \x20assignment\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xaf\x02\x08$\n\xb4\x01\ - \n\x04\x04\x04\x02\0\x12\x06\xb4\x02\x02\xb9\x02\x04\x1a\xa3\x01\x20Requ\ - ired.\x20The\x20resource\x20name\x20of\x20OS\x20policy\x20assignment.\n\ - \n\x20Format:\n\x20`projects/{project}/locations/{location}/osPolicyAssi\ - gnments/{os_policy_assignment}@{revisionId}`\n\n\r\n\x05\x04\x04\x02\0\ - \x05\x12\x04\xb4\x02\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb4\x02\ - \t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xb4\x02\x10\x11\n\x0f\n\x05\x04\ - \x04\x02\0\x08\x12\x06\xb4\x02\x12\xb9\x02\x03\n\x10\n\x08\x04\x04\x02\0\ - \x08\x9c\x08\0\x12\x04\xb5\x02\x04*\n\x11\n\x07\x04\x04\x02\0\x08\x9f\ - \x08\x12\x06\xb6\x02\x04\xb8\x02\x05\nU\n\x02\x04\x05\x12\x06\xbd\x02\0\ - \xcd\x02\x01\x1aG\x20A\x20request\x20message\x20to\x20list\x20OS\x20poli\ - cy\x20assignments\x20for\x20a\x20parent\x20resource\n\n\x0b\n\x03\x04\ - \x05\x01\x12\x04\xbd\x02\x08&\n5\n\x04\x04\x05\x02\0\x12\x06\xbf\x02\x02\ - \xc4\x02\x04\x1a%\x20Required.\x20The\x20parent\x20resource\x20name.\n\n\ - \r\n\x05\x04\x05\x02\0\x05\x12\x04\xbf\x02\x02\x08\n\r\n\x05\x04\x05\x02\ - \0\x01\x12\x04\xbf\x02\t\x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xbf\x02\ - \x12\x13\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xbf\x02\x14\xc4\x02\x03\n\ - \x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xc0\x02\x04*\n\x11\n\x07\ - \x04\x05\x02\0\x08\x9f\x08\x12\x06\xc1\x02\x04\xc3\x02\x05\n<\n\x04\x04\ - \x05\x02\x01\x12\x04\xc7\x02\x02\x16\x1a.\x20The\x20maximum\x20number\ - \x20of\x20assignments\x20to\x20return.\n\n\r\n\x05\x04\x05\x02\x01\x05\ - \x12\x04\xc7\x02\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\xc7\x02\ - \x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xc7\x02\x14\x15\n\x98\x01\ - \n\x04\x04\x05\x02\x02\x12\x04\xcc\x02\x02\x18\x1a\x89\x01\x20A\x20pagin\ - ation\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\n\x20`\ - ListOSPolicyAssignments`\x20that\x20indicates\x20where\x20this\x20listin\ - g\x20should\x20continue\n\x20from.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\ - \x04\xcc\x02\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xcc\x02\t\x13\ - \n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xcc\x02\x16\x17\nR\n\x02\x04\x06\ - \x12\x06\xd0\x02\0\xd6\x02\x01\x1aD\x20A\x20response\x20message\x20for\ - \x20listing\x20all\x20assignments\x20under\x20given\x20parent.\n\n\x0b\n\ - \x03\x04\x06\x01\x12\x04\xd0\x02\x08'\n'\n\x04\x04\x06\x02\0\x12\x04\xd2\ - \x02\x028\x1a\x19\x20The\x20list\x20of\x20assignments\n\n\r\n\x05\x04\ - \x06\x02\0\x04\x12\x04\xd2\x02\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\ - \xd2\x02\x0b\x1d\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xd2\x02\x1e3\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xd2\x0267\nX\n\x04\x04\x06\x02\x01\x12\ - \x04\xd5\x02\x02\x1d\x1aJ\x20The\x20pagination\x20token\x20to\x20retriev\ - e\x20the\x20next\x20page\x20of\x20OS\x20policy\x20assignments.\n\n\r\n\ - \x05\x04\x06\x02\x01\x05\x12\x04\xd5\x02\x02\x08\n\r\n\x05\x04\x06\x02\ - \x01\x01\x12\x04\xd5\x02\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xd5\ - \x02\x1b\x1c\nN\n\x02\x04\x07\x12\x06\xd9\x02\0\xe9\x02\x01\x1a@\x20A\ - \x20request\x20message\x20to\x20list\x20revisions\x20for\x20a\x20OS\x20p\ - olicy\x20assignment\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xd9\x02\x08.\nW\n\ - \x04\x04\x07\x02\0\x12\x06\xdb\x02\x02\xe0\x02\x04\x1aG\x20Required.\x20\ - The\x20name\x20of\x20the\x20OS\x20policy\x20assignment\x20to\x20list\x20\ - revisions\x20for.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xdb\x02\x02\x08\ - \n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xdb\x02\t\r\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\xdb\x02\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xdb\ - \x02\x12\xe0\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xdc\ - \x02\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xdd\x02\x04\xdf\ - \x02\x05\n:\n\x04\x04\x07\x02\x01\x12\x04\xe3\x02\x02\x16\x1a,\x20The\ - \x20maximum\x20number\x20of\x20revisions\x20to\x20return.\n\n\r\n\x05\ - \x04\x07\x02\x01\x05\x12\x04\xe3\x02\x02\x07\n\r\n\x05\x04\x07\x02\x01\ - \x01\x12\x04\xe3\x02\x08\x11\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xe3\ - \x02\x14\x15\n\xa0\x01\n\x04\x04\x07\x02\x02\x12\x04\xe8\x02\x02\x18\x1a\ - \x91\x01\x20A\x20pagination\x20token\x20returned\x20from\x20a\x20previou\ - s\x20call\x20to\n\x20`ListOSPolicyAssignmentRevisions`\x20that\x20indica\ - tes\x20where\x20this\x20listing\x20should\n\x20continue\x20from.\n\n\r\n\ - \x05\x04\x07\x02\x02\x05\x12\x04\xe8\x02\x02\x08\n\r\n\x05\x04\x07\x02\ - \x02\x01\x12\x04\xe8\x02\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xe8\ - \x02\x16\x17\nX\n\x02\x04\x08\x12\x06\xec\x02\0\xf3\x02\x01\x1aJ\x20A\ - \x20response\x20message\x20for\x20listing\x20all\x20revisions\x20for\x20\ - a\x20OS\x20policy\x20assignment.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xec\ - \x02\x08/\n2\n\x04\x04\x08\x02\0\x12\x04\xee\x02\x028\x1a$\x20The\x20OS\ - \x20policy\x20assignment\x20revisions\n\n\r\n\x05\x04\x08\x02\0\x04\x12\ - \x04\xee\x02\x02\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xee\x02\x0b\x1d\n\ - \r\n\x05\x04\x08\x02\0\x01\x12\x04\xee\x02\x1e3\n\r\n\x05\x04\x08\x02\0\ - \x03\x12\x04\xee\x0267\nb\n\x04\x04\x08\x02\x01\x12\x04\xf2\x02\x02\x1d\ - \x1aT\x20The\x20pagination\x20token\x20to\x20retrieve\x20the\x20next\x20\ - page\x20of\x20OS\x20policy\x20assignment\n\x20revisions.\n\n\r\n\x05\x04\ - \x08\x02\x01\x05\x12\x04\xf2\x02\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\ - \x12\x04\xf2\x02\t\x18\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf2\x02\x1b\ - \x1c\nF\n\x02\x04\t\x12\x06\xf6\x02\0\xfe\x02\x01\x1a8\x20A\x20request\ - \x20message\x20for\x20deleting\x20a\x20OS\x20policy\x20assignment.\n\n\ - \x0b\n\x03\x04\t\x01\x12\x04\xf6\x02\x08'\nN\n\x04\x04\t\x02\0\x12\x06\ - \xf8\x02\x02\xfd\x02\x04\x1a>\x20Required.\x20The\x20name\x20of\x20the\ - \x20OS\x20policy\x20assignment\x20to\x20be\x20deleted\n\n\r\n\x05\x04\t\ - \x02\0\x05\x12\x04\xf8\x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xf8\ - \x02\t\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xf8\x02\x10\x11\n\x0f\n\x05\ - \x04\t\x02\0\x08\x12\x06\xf8\x02\x12\xfd\x02\x03\n\x10\n\x08\x04\t\x02\0\ - \x08\x9c\x08\0\x12\x04\xf9\x02\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\ - \x12\x06\xfa\x02\x04\xfc\x02\x05b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_common.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_common.rs deleted file mode 100644 index 8827ad6..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_common.rs +++ /dev/null @@ -1,297 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/osconfig_common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct FixedOrPercent { - // message oneof groups - pub mode: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a FixedOrPercent { - fn default() -> &'a FixedOrPercent { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum FixedOrPercent_oneof_mode { - fixed(i32), - percent(i32), -} - -impl FixedOrPercent { - pub fn new() -> FixedOrPercent { - ::std::default::Default::default() - } - - // int32 fixed = 1; - - - pub fn get_fixed(&self) -> i32 { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(v)) => v, - _ => 0, - } - } - pub fn clear_fixed(&mut self) { - self.mode = ::std::option::Option::None; - } - - pub fn has_fixed(&self) -> bool { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_fixed(&mut self, v: i32) { - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(v)) - } - - // int32 percent = 2; - - - pub fn get_percent(&self) -> i32 { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(v)) => v, - _ => 0, - } - } - pub fn clear_percent(&mut self) { - self.mode = ::std::option::Option::None; - } - - pub fn has_percent(&self) -> bool { - match self.mode { - ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_percent(&mut self, v: i32) { - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(v)) - } -} - -impl ::protobuf::Message for FixedOrPercent { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::fixed(is.read_int32()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(FixedOrPercent_oneof_mode::percent(is.read_int32()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.mode { - match v { - &FixedOrPercent_oneof_mode::fixed(v) => { - my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); - }, - &FixedOrPercent_oneof_mode::percent(v) => { - my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.mode { - match v { - &FixedOrPercent_oneof_mode::fixed(v) => { - os.write_int32(1, v)?; - }, - &FixedOrPercent_oneof_mode::percent(v) => { - os.write_int32(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> FixedOrPercent { - FixedOrPercent::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "fixed", - FixedOrPercent::has_fixed, - FixedOrPercent::get_fixed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "percent", - FixedOrPercent::has_percent, - FixedOrPercent::get_percent, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "FixedOrPercent", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static FixedOrPercent { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(FixedOrPercent::new) - } -} - -impl ::protobuf::Clear for FixedOrPercent { - fn clear(&mut self) { - self.mode = ::std::option::Option::None; - self.mode = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for FixedOrPercent { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for FixedOrPercent { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n3google/cloud/osconfig/v1alpha/osconfig_common.proto\x12\x1dgoogle.clo\ - ud.osconfig.v1alpha\"L\n\x0eFixedOrPercent\x12\x16\n\x05fixed\x18\x01\ - \x20\x01(\x05H\0R\x05fixed\x12\x1a\n\x07percent\x18\x02\x20\x01(\x05H\0R\ - \x07percentB\x06\n\x04modeB\xcf\x01\n!com.google.cloud.osconfig.v1alphaB\ - \x06CommonP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osco\ - nfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\ - \\OsConfig\\V1alpha\xea\x02\x20Google::Cloud::OsConfig::V1alphaJ\x8d\t\n\ - \x06\x12\x04\x0e\0'\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ - \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ - ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ - \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ - \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ - censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ - \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\0&\n\x08\n\x01\x08\x12\x03\x13\0:\n\t\n\x02\x08%\x12\x03\ - \x13\0:\n\x08\n\x01\x08\x12\x03\x14\0T\n\t\n\x02\x08\x0b\x12\x03\x14\0T\ - \n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\ - \x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x08\x12\x03\x16\0'\n\x08\n\x01\x08\ - \x12\x03\x17\0:\n\t\n\x02\x08\x01\x12\x03\x17\0:\n\x08\n\x01\x08\x12\x03\ - \x18\0:\n\t\n\x02\x08)\x12\x03\x18\0:\n\x08\n\x01\x08\x12\x03\x19\09\n\t\ - \n\x02\x08-\x12\x03\x19\09\nv\n\x02\x04\0\x12\x04\x1d\0'\x01\x1aj\x20Mes\ - sage\x20encapsulating\x20a\x20value\x20that\x20can\x20be\x20either\x20ab\ - solute\x20(\"fixed\")\x20or\n\x20relative\x20(\"percent\")\x20to\x20a\ - \x20value.\n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\x16\n\"\n\x04\x04\0\x08\ - \0\x12\x04\x1f\x02&\x03\x1a\x14\x20Type\x20of\x20the\x20value.\n\n\x0c\n\ - \x05\x04\0\x08\0\x01\x12\x03\x1f\x08\x0c\n'\n\x04\x04\0\x02\0\x12\x03!\ - \x04\x14\x1a\x1a\x20Specifies\x20a\x20fixed\x20value.\n\n\x0c\n\x05\x04\ - \0\x02\0\x05\x12\x03!\x04\t\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\n\x0f\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x12\x13\nt\n\x04\x04\0\x02\x01\x12\ - \x03%\x04\x16\x1ag\x20Specifies\x20the\x20relative\x20value\x20defined\ - \x20as\x20a\x20percentage,\x20which\x20will\x20be\n\x20multiplied\x20by\ - \x20a\x20reference\x20value.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03%\ - \x04\t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03%\n\x11\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x03%\x14\x15b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service.rs deleted file mode 100644 index e923389..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service.rs +++ /dev/null @@ -1,290 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n:google/cloud/osconfig/v1alpha/osconfig_zonal_service.proto\x12\x1dgoo\ - gle.cloud.osconfig.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17go\ - ogle/api/client.proto\x1a\x19google/api/resource.proto\x1aCgoogle/cloud/\ - osconfig/v1alpha/instance_os_policies_compliance.proto\x1a-google/cloud/\ - osconfig/v1alpha/inventory.proto\x1a@google/cloud/osconfig/v1alpha/os_po\ - licy_assignment_reports.proto\x1a9google/cloud/osconfig/v1alpha/os_polic\ - y_assignments.proto\x1a1google/cloud/osconfig/v1alpha/vulnerability.prot\ - o\x1a#google/longrunning/operations.proto2\xe8\x1c\n\x14OsConfigZonalSer\ - vice\x12\xc8\x02\n\x18CreateOSPolicyAssignment\x12>.google.cloud.osconfi\ - g.v1alpha.CreateOSPolicyAssignmentRequest\x1a\x1d.google.longrunning.Ope\ - ration\"\xcc\x01\xcaA9\n\x12OSPolicyAssignment\x12#OSPolicyAssignmentOpe\ - rationMetadata\x82\xd3\xe4\x93\x02T\".google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentReques\ - t\x1a\x1d.google.longrunning.Operation\"\xce\x01\xcaA9\n\x12OSPolicyAssi\ - gnment\x12#OSPolicyAssignmentOperationMetadata\x82\xd3\xe4\x93\x02i2Q/v1\ - alpha/{os_policy_assignment.name=projects/*/locations/*/osPolicyAssignme\ - nts/*}:\x14os_policy_assignment\xdaA\x20os_policy_assignment,update_mask\ - \x12\xd4\x01\n\x15GetOSPolicyAssignment\x12;.google.cloud.osconfig.v1alp\ - ha.GetOSPolicyAssignmentRequest\x1a1.google.cloud.osconfig.v1alpha.OSPol\ - icyAssignment\"K\x82\xd3\xe4\x93\x02>\x12.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRespons\ - e\"M\x82\xd3\xe4\x93\x02>\x12.google.cloud.osconfig.v1alpha.Delete\ - OSPolicyAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\ - \xcaA<\n\x15google.protobuf.Empty\x12#OSPolicyAssignmentOperationMetadat\ - a\x82\xd3\xe4\x93\x02>*\ - \x12.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsReque\ - st\x1a?.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse\"\ - Z\x82\xd3\xe4\x93\x02K\x12I/v1alpha/{parent=projects/*/locations/*/insta\ - nces/*}/vulnerabilityReports\xdaA\x06parent\x1aK\xd2A.https://www.google\ - apis.com/auth/cloud-platform\xcaA\x17osconfig.googleapis.comB\xc4\x02\n!\ - com.google.cloud.osconfig.v1alphaB\x19OsConfigZonalServiceProtoP\x01Z=cl\ - oud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dG\ - oogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\ - \xea\x02\x20Google::Cloud::OsConfig::V1alpha\xeaA_\n\x1fcompute.googleap\ - is.com/Instance\x12\n\x0c\n\x05\x06\0\x02\0\x03\x12\x039Ie\n\ - \r\n\x05\x06\0\x02\0\x04\x12\x04:\x04=\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\ - \xca\xbc\"\x12\x04:\x04=\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03>\x04a\n\ - \x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03>\x04a\n\r\n\x05\x06\0\x02\0\ - \x04\x12\x04?\x04B\x06\n\x0f\n\x07\x06\0\x02\0\x04\x99\x08\x12\x04?\x04B\ - \x06\n\xdf\x03\n\x04\x06\0\x02\x01\x12\x04N\x02X\x03\x1a\xd0\x03\x20Upda\ - te\x20an\x20existing\x20OS\x20policy\x20assignment.\n\n\x20This\x20metho\ - d\x20creates\x20a\x20new\x20revision\x20of\x20the\x20OS\x20policy\x20ass\ - ignment.\n\n\x20This\x20method\x20returns\x20a\x20long\x20running\x20ope\ - ration\x20(LRO)\x20that\x20contains\x20the\n\x20rollout\x20details.\x20T\ - he\x20rollout\x20can\x20be\x20cancelled\x20by\x20cancelling\x20the\x20LR\ - O.\n\n\x20For\x20more\x20information,\x20see\x20[Method:\n\x20projects.l\ - ocations.osPolicyAssignments.operations.cancel](https://cloud.google.com\ - /compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignmen\ - ts.operations/cancel).\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03N\x06\x1e\ - \n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03N\x1f>\n\x0c\n\x05\x06\0\x02\x01\ - \x03\x12\x03NIe\n\r\n\x05\x06\0\x02\x01\x04\x12\x04O\x04R\x06\n\x11\n\t\ - \x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04O\x04R\x06\n\x0c\n\x05\x06\0\x02\ - \x01\x04\x12\x03S\x04N\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03S\ - \x04N\n\r\n\x05\x06\0\x02\x01\x04\x12\x04T\x04W\x06\n\x0f\n\x07\x06\0\ - \x02\x01\x04\x99\x08\x12\x04T\x04W\x06\n\xe1\x01\n\x04\x06\0\x02\x02\x12\ - \x04_\x02d\x03\x1a\xd2\x01\x20Retrieve\x20an\x20existing\x20OS\x20policy\ - \x20assignment.\n\n\x20This\x20method\x20always\x20returns\x20the\x20lat\ - est\x20revision.\x20In\x20order\x20to\x20retrieve\x20a\n\x20previous\x20\ - revision\x20of\x20the\x20assignment,\x20also\x20provide\x20the\x20revisi\ - on\x20ID\x20in\x20the\n\x20`name`\x20parameter.\n\n\x0c\n\x05\x06\0\x02\ - \x02\x01\x12\x03_\x06\x1b\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03_\x1c8\n\ - \x0c\n\x05\x06\0\x02\x02\x03\x12\x03_CU\n\r\n\x05\x06\0\x02\x02\x04\x12\ - \x04`\x04b\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04`\x04b\ - \x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03c\x042\n\x0f\n\x08\x06\0\x02\ - \x02\x04\x9b\x08\0\x12\x03c\x042\n\x8b\x01\n\x04\x06\0\x02\x03\x12\x04i\ - \x02n\x03\x1a}\x20List\x20the\x20OS\x20policy\x20assignments\x20under\ - \x20the\x20parent\x20resource.\n\n\x20For\x20each\x20OS\x20policy\x20ass\ - ignment,\x20the\x20latest\x20revision\x20is\x20returned.\n\n\x0c\n\x05\ - \x06\0\x02\x03\x01\x12\x03i\x06\x1d\n\x0c\n\x05\x06\0\x02\x03\x02\x12\ - \x03i\x1e<\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03iGf\n\r\n\x05\x06\0\x02\ - \x03\x04\x12\x04j\x04l\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\ - \x04j\x04l\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03m\x044\n\x0f\n\x08\ - \x06\0\x02\x03\x04\x9b\x08\0\x12\x03m\x044\nY\n\x04\x06\0\x02\x04\x12\ - \x04q\x02v\x03\x1aK\x20List\x20the\x20OS\x20policy\x20assignment\x20revi\ - sions\x20for\x20a\x20given\x20OS\x20policy\x20assignment.\n\n\x0c\n\x05\ - \x06\0\x02\x04\x01\x12\x03q\x06%\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03q&\ - L\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03qW~\n\r\n\x05\x06\0\x02\x04\x04\ - \x12\x04r\x04t\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04r\ - \x04t\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03u\x042\n\x0f\n\x08\x06\0\ - \x02\x04\x04\x9b\x08\0\x12\x03u\x042\n\xcb\x04\n\x04\x06\0\x02\x05\x12\ - \x06\x84\x01\x02\x8d\x01\x03\x1a\xba\x04\x20Delete\x20the\x20OS\x20polic\ - y\x20assignment.\n\n\x20This\x20method\x20creates\x20a\x20new\x20revisio\ - n\x20of\x20the\x20OS\x20policy\x20assignment.\n\n\x20This\x20method\x20r\ - eturns\x20a\x20long\x20running\x20operation\x20(LRO)\x20that\x20contains\ - \x20the\n\x20rollout\x20details.\x20The\x20rollout\x20can\x20be\x20cance\ - lled\x20by\x20cancelling\x20the\x20LRO.\n\n\x20If\x20the\x20LRO\x20compl\ - etes\x20and\x20is\x20not\x20cancelled,\x20all\x20revisions\x20associated\ - \x20with\n\x20the\x20OS\x20policy\x20assignment\x20are\x20deleted.\n\n\ - \x20For\x20more\x20information,\x20see\x20[Method:\n\x20projects.locatio\ - ns.osPolicyAssignments.operations.cancel](https://cloud.google.com/compu\ - te/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.ope\ - rations/cancel).\n\n\r\n\x05\x06\0\x02\x05\x01\x12\x04\x84\x01\x06\x1e\n\ - \r\n\x05\x06\0\x02\x05\x02\x12\x04\x84\x01\x1f>\n\r\n\x05\x06\0\x02\x05\ - \x03\x12\x04\x84\x01Ie\n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x85\x01\x04\ - \x87\x01\x06\n\x13\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x85\x01\ - \x04\x87\x01\x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\x88\x01\x042\n\x10\ - \n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x04\x88\x01\x042\n\x0f\n\x05\x06\ - \0\x02\x05\x04\x12\x06\x89\x01\x04\x8c\x01\x06\n\x11\n\x07\x06\0\x02\x05\ - \x04\x99\x08\x12\x06\x89\x01\x04\x8c\x01\x06\n`\n\x04\x06\0\x02\x06\x12\ - \x06\x91\x01\x02\x97\x01\x03\x1aP\x20Get\x20OS\x20policies\x20compliance\ - \x20data\x20for\x20the\x20specified\x20Compute\x20Engine\x20VM\n\x20inst\ - ance.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x91\x01\x06%\n\r\n\x05\x06\0\ - \x02\x06\x02\x12\x04\x91\x01&L\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\x91\ - \x01Ws\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x92\x01\x04\x1d\n\x0e\n\x06\ - \x06\0\x02\x06\x04!\x12\x04\x92\x01\x04\x1d\n\x0f\n\x05\x06\0\x02\x06\ - \x04\x12\x06\x93\x01\x04\x95\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\ - \xbc\"\x12\x06\x93\x01\x04\x95\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\ - \x04\x96\x01\x042\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x96\ - \x01\x042\nn\n\x04\x06\0\x02\x07\x12\x06\x9b\x01\x02\xa1\x01\x03\x1a^\ - \x20List\x20OS\x20policies\x20compliance\x20data\x20for\x20all\x20Comput\ - e\x20Engine\x20VM\x20instances\x20in\x20the\n\x20specified\x20zone.\n\n\ - \r\n\x05\x06\0\x02\x07\x01\x12\x04\x9b\x01\x06'\n\r\n\x05\x06\0\x02\x07\ - \x02\x12\x04\x9b\x01(P\n\x0e\n\x05\x06\0\x02\x07\x03\x12\x05\x9b\x01[\ - \x84\x01\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\x9c\x01\x04\x1d\n\x0e\n\x06\ - \x06\0\x02\x07\x04!\x12\x04\x9c\x01\x04\x1d\n\x0f\n\x05\x06\0\x02\x07\ - \x04\x12\x06\x9d\x01\x04\x9f\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\ - \xbc\"\x12\x06\x9d\x01\x04\x9f\x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\ - \x04\xa0\x01\x044\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x04\xa0\ - \x01\x044\ne\n\x04\x06\0\x02\x08\x12\x06\xa5\x01\x02\xaa\x01\x03\x1aU\ - \x20Get\x20the\x20OS\x20policy\x20asssignment\x20report\x20for\x20the\ - \x20specified\x20Compute\x20Engine\x20VM\n\x20instance.\n\n\r\n\x05\x06\ - \0\x02\x08\x01\x12\x04\xa5\x01\x06!\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\ - \xa5\x01\"D\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\xa5\x01Og\n\x0f\n\x05\ - \x06\0\x02\x08\x04\x12\x06\xa6\x01\x04\xa8\x01\x06\n\x13\n\t\x06\0\x02\ - \x08\x04\xb0\xca\xbc\"\x12\x06\xa6\x01\x04\xa8\x01\x06\n\r\n\x05\x06\0\ - \x02\x08\x04\x12\x04\xa9\x01\x042\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\ - \0\x12\x04\xa9\x01\x042\np\n\x04\x06\0\x02\t\x12\x06\xae\x01\x02\xb3\x01\ - \x03\x1a`\x20List\x20OS\x20policy\x20asssignment\x20reports\x20for\x20al\ - l\x20Compute\x20Engine\x20VM\x20instances\x20in\n\x20the\x20specified\ - \x20zone.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xae\x01\x06#\n\r\n\x05\x06\ - \0\x02\t\x02\x12\x04\xae\x01$H\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xae\x01\ - Sx\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xaf\x01\x04\xb1\x01\x06\n\x13\n\t\ - \x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xaf\x01\x04\xb1\x01\x06\n\r\n\x05\ - \x06\0\x02\t\x04\x12\x04\xb2\x01\x044\n\x10\n\x08\x06\0\x02\t\x04\x9b\ - \x08\0\x12\x04\xb2\x01\x044\n\x91\x01\n\x04\x06\0\x02\n\x12\x06\xb7\x01\ - \x02\xbc\x01\x03\x1a\x80\x01\x20Get\x20inventory\x20data\x20for\x20the\ - \x20specified\x20VM\x20instance.\x20If\x20the\x20VM\x20has\x20no\n\x20as\ - sociated\x20inventory,\x20the\x20message\x20`NOT_FOUND`\x20is\x20returne\ - d.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xb7\x01\x06\x12\n\r\n\x05\x06\0\ - \x02\n\x02\x12\x04\xb7\x01\x13&\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xb7\ - \x011:\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xb8\x01\x04\xba\x01\x06\n\x13\ - \n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xb8\x01\x04\xba\x01\x06\n\r\n\ - \x05\x06\0\x02\n\x04\x12\x04\xbb\x01\x042\n\x10\n\x08\x06\0\x02\n\x04\ - \x9b\x08\0\x12\x04\xbb\x01\x042\nQ\n\x04\x06\0\x02\x0b\x12\x06\xbf\x01\ - \x02\xc4\x01\x03\x1aA\x20List\x20inventory\x20data\x20for\x20all\x20VM\ - \x20instances\x20in\x20the\x20specified\x20zone.\n\n\r\n\x05\x06\0\x02\ - \x0b\x01\x12\x04\xbf\x01\x06\x15\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\xbf\ - \x01\x16,\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xbf\x017N\n\x0f\n\x05\x06\ - \0\x02\x0b\x04\x12\x06\xc0\x01\x04\xc2\x01\x06\n\x13\n\t\x06\0\x02\x0b\ - \x04\xb0\xca\xbc\"\x12\x06\xc0\x01\x04\xc2\x01\x06\n\r\n\x05\x06\0\x02\ - \x0b\x04\x12\x04\xc3\x01\x044\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\ - \x12\x04\xc3\x01\x044\n\x9e\x01\n\x04\x06\0\x02\x0c\x12\x06\xc8\x01\x02\ - \xcd\x01\x03\x1a\x8d\x01\x20Gets\x20the\x20vulnerability\x20report\x20fo\ - r\x20the\x20specified\x20VM\x20instance.\x20Only\x20VMs\x20with\n\x20inv\ - entory\x20data\x20have\x20vulnerability\x20reports\x20associated\x20with\ - \x20them.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\xc8\x01\x06\x1c\n\r\n\ - \x05\x06\0\x02\x0c\x02\x12\x04\xc8\x01\x1d:\n\r\n\x05\x06\0\x02\x0c\x03\ - \x12\x04\xc8\x01EX\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\xc9\x01\x04\xcb\ - \x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xc9\x01\x04\ - \xcb\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\xcc\x01\x042\n\x10\n\ - \x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\xcc\x01\x042\nX\n\x04\x06\0\x02\ - \r\x12\x06\xd0\x01\x02\xd5\x01\x03\x1aH\x20List\x20vulnerability\x20repo\ - rts\x20for\x20all\x20VM\x20instances\x20in\x20the\x20specified\x20zone.\ - \n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xd0\x01\x06\x1e\n\r\n\x05\x06\0\x02\ - \r\x02\x12\x04\xd0\x01\x1f>\n\r\n\x05\x06\0\x02\r\x03\x12\x04\xd0\x01Ii\ - \n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\xd1\x01\x04\xd3\x01\x06\n\x13\n\t\ - \x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\xd1\x01\x04\xd3\x01\x06\n\r\n\x05\ - \x06\0\x02\r\x04\x12\x04\xd4\x01\x044\n\x10\n\x08\x06\0\x02\r\x04\x9b\ - \x08\0\x12\x04\xd4\x01\x044b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service_grpc.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service_grpc.rs deleted file mode 100644 index 068bdd4..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service_grpc.rs +++ /dev/null @@ -1,461 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/CreateOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/UpdateOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignments", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentRevisions", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/DeleteOSPolicyAssignment", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INSTANCE_OS_POLICIES_COMPLIANCE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInstanceOSPoliciesCompliance", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INSTANCE_OS_POLICIES_COMPLIANCES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInstanceOSPoliciesCompliances", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignmentReport", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentReports", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInventory", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInventories", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/GetVulnerabilityReport", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.cloud.osconfig.v1alpha.OsConfigZonalService/ListVulnerabilityReports", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct OsConfigZonalServiceClient { - pub client: ::grpcio::Client, -} - -impl OsConfigZonalServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - OsConfigZonalServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn create_os_policy_assignment(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.create_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn create_os_policy_assignment_async(&self, req: &super::os_policy_assignments::CreateOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn update_os_policy_assignment(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.update_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn update_os_policy_assignment_async(&self, req: &super::os_policy_assignments::UpdateOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn get_os_policy_assignment(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.get_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn get_os_policy_assignment_async(&self, req: &super::os_policy_assignments::GetOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignments_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, req, opt) - } - - pub fn list_os_policy_assignments(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest) -> ::grpcio::Result { - self.list_os_policy_assignments_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignments_async_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, req, opt) - } - - pub fn list_os_policy_assignments_async(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignments_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_revisions_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, req, opt) - } - - pub fn list_os_policy_assignment_revisions(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest) -> ::grpcio::Result { - self.list_os_policy_assignment_revisions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_revisions_async_opt(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, req, opt) - } - - pub fn list_os_policy_assignment_revisions_async(&self, req: &super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignment_revisions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_os_policy_assignment_opt(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn delete_os_policy_assignment(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest) -> ::grpcio::Result { - self.delete_os_policy_assignment_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_os_policy_assignment_async_opt(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, req, opt) - } - - pub fn delete_os_policy_assignment_async(&self, req: &super::os_policy_assignments::DeleteOSPolicyAssignmentRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_os_policy_assignment_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_instance_os_policies_compliance_opt(&self, req: &super::instance_os_policies_compliance::GetInstanceOSPoliciesComplianceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INSTANCE_OS_POLICIES_COMPLIANCE, req, opt) - } - - pub fn get_instance_os_policies_compliance(&self, req: &super::instance_os_policies_compliance::GetInstanceOSPoliciesComplianceRequest) -> ::grpcio::Result { - self.get_instance_os_policies_compliance_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_instance_os_policies_compliance_async_opt(&self, req: &super::instance_os_policies_compliance::GetInstanceOSPoliciesComplianceRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INSTANCE_OS_POLICIES_COMPLIANCE, req, opt) - } - - pub fn get_instance_os_policies_compliance_async(&self, req: &super::instance_os_policies_compliance::GetInstanceOSPoliciesComplianceRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_instance_os_policies_compliance_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instance_os_policies_compliances_opt(&self, req: &super::instance_os_policies_compliance::ListInstanceOSPoliciesCompliancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INSTANCE_OS_POLICIES_COMPLIANCES, req, opt) - } - - pub fn list_instance_os_policies_compliances(&self, req: &super::instance_os_policies_compliance::ListInstanceOSPoliciesCompliancesRequest) -> ::grpcio::Result { - self.list_instance_os_policies_compliances_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instance_os_policies_compliances_async_opt(&self, req: &super::instance_os_policies_compliance::ListInstanceOSPoliciesCompliancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INSTANCE_OS_POLICIES_COMPLIANCES, req, opt) - } - - pub fn list_instance_os_policies_compliances_async(&self, req: &super::instance_os_policies_compliance::ListInstanceOSPoliciesCompliancesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_instance_os_policies_compliances_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_report_opt(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, req, opt) - } - - pub fn get_os_policy_assignment_report(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest) -> ::grpcio::Result { - self.get_os_policy_assignment_report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_os_policy_assignment_report_async_opt(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, req, opt) - } - - pub fn get_os_policy_assignment_report_async(&self, req: &super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_os_policy_assignment_report_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_reports_opt(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, req, opt) - } - - pub fn list_os_policy_assignment_reports(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest) -> ::grpcio::Result { - self.list_os_policy_assignment_reports_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_os_policy_assignment_reports_async_opt(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, req, opt) - } - - pub fn list_os_policy_assignment_reports_async(&self, req: &super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_os_policy_assignment_reports_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_inventory_opt(&self, req: &super::inventory::GetInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, req, opt) - } - - pub fn get_inventory(&self, req: &super::inventory::GetInventoryRequest) -> ::grpcio::Result { - self.get_inventory_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_inventory_async_opt(&self, req: &super::inventory::GetInventoryRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, req, opt) - } - - pub fn get_inventory_async(&self, req: &super::inventory::GetInventoryRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_inventory_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_inventories_opt(&self, req: &super::inventory::ListInventoriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, req, opt) - } - - pub fn list_inventories(&self, req: &super::inventory::ListInventoriesRequest) -> ::grpcio::Result { - self.list_inventories_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_inventories_async_opt(&self, req: &super::inventory::ListInventoriesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, req, opt) - } - - pub fn list_inventories_async(&self, req: &super::inventory::ListInventoriesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_inventories_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_vulnerability_report_opt(&self, req: &super::vulnerability::GetVulnerabilityReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, req, opt) - } - - pub fn get_vulnerability_report(&self, req: &super::vulnerability::GetVulnerabilityReportRequest) -> ::grpcio::Result { - self.get_vulnerability_report_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_vulnerability_report_async_opt(&self, req: &super::vulnerability::GetVulnerabilityReportRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, req, opt) - } - - pub fn get_vulnerability_report_async(&self, req: &super::vulnerability::GetVulnerabilityReportRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_vulnerability_report_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_vulnerability_reports_opt(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, req, opt) - } - - pub fn list_vulnerability_reports(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest) -> ::grpcio::Result { - self.list_vulnerability_reports_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_vulnerability_reports_async_opt(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, req, opt) - } - - pub fn list_vulnerability_reports_async(&self, req: &super::vulnerability::ListVulnerabilityReportsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_vulnerability_reports_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait OsConfigZonalService { - fn create_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::CreateOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::UpdateOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::GetOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignments(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::ListOSPolicyAssignmentsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignment_revisions(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::ListOSPolicyAssignmentRevisionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_os_policy_assignment(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignments::DeleteOSPolicyAssignmentRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_instance_os_policies_compliance(&mut self, ctx: ::grpcio::RpcContext, _req: super::instance_os_policies_compliance::GetInstanceOSPoliciesComplianceRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_instance_os_policies_compliances(&mut self, ctx: ::grpcio::RpcContext, _req: super::instance_os_policies_compliance::ListInstanceOSPoliciesCompliancesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_os_policy_assignment_report(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignment_reports::GetOSPolicyAssignmentReportRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_os_policy_assignment_reports(&mut self, ctx: ::grpcio::RpcContext, _req: super::os_policy_assignment_reports::ListOSPolicyAssignmentReportsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_inventory(&mut self, ctx: ::grpcio::RpcContext, _req: super::inventory::GetInventoryRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_inventories(&mut self, ctx: ::grpcio::RpcContext, _req: super::inventory::ListInventoriesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_vulnerability_report(&mut self, ctx: ::grpcio::RpcContext, _req: super::vulnerability::GetVulnerabilityReportRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_vulnerability_reports(&mut self, ctx: ::grpcio::RpcContext, _req: super::vulnerability::ListVulnerabilityReportsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_os_config_zonal_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_CREATE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.create_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_UPDATE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.update_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.get_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENTS, move |ctx, req, resp| { - instance.list_os_policy_assignments(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REVISIONS, move |ctx, req, resp| { - instance.list_os_policy_assignment_revisions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_DELETE_OS_POLICY_ASSIGNMENT, move |ctx, req, resp| { - instance.delete_os_policy_assignment(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INSTANCE_OS_POLICIES_COMPLIANCE, move |ctx, req, resp| { - instance.get_instance_os_policies_compliance(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INSTANCE_OS_POLICIES_COMPLIANCES, move |ctx, req, resp| { - instance.list_instance_os_policies_compliances(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_OS_POLICY_ASSIGNMENT_REPORT, move |ctx, req, resp| { - instance.get_os_policy_assignment_report(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_OS_POLICY_ASSIGNMENT_REPORTS, move |ctx, req, resp| { - instance.list_os_policy_assignment_reports(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_INVENTORY, move |ctx, req, resp| { - instance.get_inventory(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_INVENTORIES, move |ctx, req, resp| { - instance.list_inventories(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_GET_VULNERABILITY_REPORT, move |ctx, req, resp| { - instance.get_vulnerability_report(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_OS_CONFIG_ZONAL_SERVICE_LIST_VULNERABILITY_REPORTS, move |ctx, req, resp| { - instance.list_vulnerability_reports(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/vulnerability.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/vulnerability.rs deleted file mode 100644 index a7500f0..0000000 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/vulnerability.rs +++ /dev/null @@ -1,3538 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/cloud/osconfig/v1alpha/vulnerability.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport { - // message fields - pub name: ::std::string::String, - pub vulnerabilities: ::protobuf::RepeatedField, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport { - fn default() -> &'a VulnerabilityReport { - ::default_instance() - } -} - -impl VulnerabilityReport { - pub fn new() -> VulnerabilityReport { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2; - - - pub fn get_vulnerabilities(&self) -> &[VulnerabilityReport_Vulnerability] { - &self.vulnerabilities - } - pub fn clear_vulnerabilities(&mut self) { - self.vulnerabilities.clear(); - } - - // Param is passed by value, moved - pub fn set_vulnerabilities(&mut self, v: ::protobuf::RepeatedField) { - self.vulnerabilities = v; - } - - // Mutable pointer to the field. - pub fn mut_vulnerabilities(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.vulnerabilities - } - - // Take field - pub fn take_vulnerabilities(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.vulnerabilities, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp update_time = 3; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport { - fn is_initialized(&self) -> bool { - for v in &self.vulnerabilities { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.vulnerabilities)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.vulnerabilities { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.vulnerabilities { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport { - VulnerabilityReport::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &VulnerabilityReport| { &m.name }, - |m: &mut VulnerabilityReport| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "vulnerabilities", - |m: &VulnerabilityReport| { &m.vulnerabilities }, - |m: &mut VulnerabilityReport| { &mut m.vulnerabilities }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &VulnerabilityReport| { &m.update_time }, - |m: &mut VulnerabilityReport| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport { - fn clear(&mut self) { - self.name.clear(); - self.vulnerabilities.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability { - // message fields - pub details: ::protobuf::SingularPtrField, - pub installed_inventory_item_ids: ::protobuf::RepeatedField<::std::string::String>, - pub available_inventory_item_ids: ::protobuf::RepeatedField<::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub items: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability { - fn default() -> &'a VulnerabilityReport_Vulnerability { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability { - pub fn new() -> VulnerabilityReport_Vulnerability { - ::std::default::Default::default() - } - - // .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1; - - - pub fn get_details(&self) -> &VulnerabilityReport_Vulnerability_Details { - self.details.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_details(&mut self) { - self.details.clear(); - } - - pub fn has_details(&self) -> bool { - self.details.is_some() - } - - // Param is passed by value, moved - pub fn set_details(&mut self, v: VulnerabilityReport_Vulnerability_Details) { - self.details = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_details(&mut self) -> &mut VulnerabilityReport_Vulnerability_Details { - if self.details.is_none() { - self.details.set_default(); - } - self.details.as_mut().unwrap() - } - - // Take field - pub fn take_details(&mut self) -> VulnerabilityReport_Vulnerability_Details { - self.details.take().unwrap_or_else(|| VulnerabilityReport_Vulnerability_Details::new()) - } - - // repeated string installed_inventory_item_ids = 2; - - - pub fn get_installed_inventory_item_ids(&self) -> &[::std::string::String] { - &self.installed_inventory_item_ids - } - pub fn clear_installed_inventory_item_ids(&mut self) { - self.installed_inventory_item_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_installed_inventory_item_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.installed_inventory_item_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_installed_inventory_item_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.installed_inventory_item_ids - } - - // Take field - pub fn take_installed_inventory_item_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.installed_inventory_item_ids, ::protobuf::RepeatedField::new()) - } - - // repeated string available_inventory_item_ids = 3; - - - pub fn get_available_inventory_item_ids(&self) -> &[::std::string::String] { - &self.available_inventory_item_ids - } - pub fn clear_available_inventory_item_ids(&mut self) { - self.available_inventory_item_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_available_inventory_item_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.available_inventory_item_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_available_inventory_item_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.available_inventory_item_ids - } - - // Take field - pub fn take_available_inventory_item_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.available_inventory_item_ids, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item items = 6; - - - pub fn get_items(&self) -> &[VulnerabilityReport_Vulnerability_Item] { - &self.items - } - pub fn clear_items(&mut self) { - self.items.clear(); - } - - // Param is passed by value, moved - pub fn set_items(&mut self, v: ::protobuf::RepeatedField) { - self.items = v; - } - - // Mutable pointer to the field. - pub fn mut_items(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.items - } - - // Take field - pub fn take_items(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.items, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability { - fn is_initialized(&self) -> bool { - for v in &self.details { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.items { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.details)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.installed_inventory_item_ids)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.available_inventory_item_ids)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.items)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.details.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.installed_inventory_item_ids { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.available_inventory_item_ids { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.items { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.details.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.installed_inventory_item_ids { - os.write_string(2, &v)?; - }; - for v in &self.available_inventory_item_ids { - os.write_string(3, &v)?; - }; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.items { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability { - VulnerabilityReport_Vulnerability::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "details", - |m: &VulnerabilityReport_Vulnerability| { &m.details }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.details }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "installed_inventory_item_ids", - |m: &VulnerabilityReport_Vulnerability| { &m.installed_inventory_item_ids }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.installed_inventory_item_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "available_inventory_item_ids", - |m: &VulnerabilityReport_Vulnerability| { &m.available_inventory_item_ids }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.available_inventory_item_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &VulnerabilityReport_Vulnerability| { &m.create_time }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &VulnerabilityReport_Vulnerability| { &m.update_time }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "items", - |m: &VulnerabilityReport_Vulnerability| { &m.items }, - |m: &mut VulnerabilityReport_Vulnerability| { &mut m.items }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability { - fn clear(&mut self) { - self.details.clear(); - self.installed_inventory_item_ids.clear(); - self.available_inventory_item_ids.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.items.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Details { - // message fields - pub cve: ::std::string::String, - pub cvss_v2_score: f32, - pub cvss_v3: ::protobuf::SingularPtrField, - pub severity: ::std::string::String, - pub description: ::std::string::String, - pub references: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Details { - fn default() -> &'a VulnerabilityReport_Vulnerability_Details { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Details { - pub fn new() -> VulnerabilityReport_Vulnerability_Details { - ::std::default::Default::default() - } - - // string cve = 1; - - - pub fn get_cve(&self) -> &str { - &self.cve - } - pub fn clear_cve(&mut self) { - self.cve.clear(); - } - - // Param is passed by value, moved - pub fn set_cve(&mut self, v: ::std::string::String) { - self.cve = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cve(&mut self) -> &mut ::std::string::String { - &mut self.cve - } - - // Take field - pub fn take_cve(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.cve, ::std::string::String::new()) - } - - // float cvss_v2_score = 2; - - - pub fn get_cvss_v2_score(&self) -> f32 { - self.cvss_v2_score - } - pub fn clear_cvss_v2_score(&mut self) { - self.cvss_v2_score = 0.; - } - - // Param is passed by value, moved - pub fn set_cvss_v2_score(&mut self, v: f32) { - self.cvss_v2_score = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3 cvss_v3 = 3; - - - pub fn get_cvss_v3(&self) -> &CVSSv3 { - self.cvss_v3.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cvss_v3(&mut self) { - self.cvss_v3.clear(); - } - - pub fn has_cvss_v3(&self) -> bool { - self.cvss_v3.is_some() - } - - // Param is passed by value, moved - pub fn set_cvss_v3(&mut self, v: CVSSv3) { - self.cvss_v3 = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cvss_v3(&mut self) -> &mut CVSSv3 { - if self.cvss_v3.is_none() { - self.cvss_v3.set_default(); - } - self.cvss_v3.as_mut().unwrap() - } - - // Take field - pub fn take_cvss_v3(&mut self) -> CVSSv3 { - self.cvss_v3.take().unwrap_or_else(|| CVSSv3::new()) - } - - // string severity = 4; - - - pub fn get_severity(&self) -> &str { - &self.severity - } - pub fn clear_severity(&mut self) { - self.severity.clear(); - } - - // Param is passed by value, moved - pub fn set_severity(&mut self, v: ::std::string::String) { - self.severity = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_severity(&mut self) -> &mut ::std::string::String { - &mut self.severity - } - - // Take field - pub fn take_severity(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.severity, ::std::string::String::new()) - } - - // string description = 5; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.Reference references = 6; - - - pub fn get_references(&self) -> &[VulnerabilityReport_Vulnerability_Details_Reference] { - &self.references - } - pub fn clear_references(&mut self) { - self.references.clear(); - } - - // Param is passed by value, moved - pub fn set_references(&mut self, v: ::protobuf::RepeatedField) { - self.references = v; - } - - // Mutable pointer to the field. - pub fn mut_references(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.references - } - - // Take field - pub fn take_references(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.references, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Details { - fn is_initialized(&self) -> bool { - for v in &self.cvss_v3 { - if !v.is_initialized() { - return false; - } - }; - for v in &self.references { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cve)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.cvss_v2_score = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cvss_v3)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.severity)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.references)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.cve.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.cve); - } - if self.cvss_v2_score != 0. { - my_size += 5; - } - if let Some(ref v) = self.cvss_v3.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.severity.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.severity); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.description); - } - for value in &self.references { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.cve.is_empty() { - os.write_string(1, &self.cve)?; - } - if self.cvss_v2_score != 0. { - os.write_float(2, self.cvss_v2_score)?; - } - if let Some(ref v) = self.cvss_v3.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.severity.is_empty() { - os.write_string(4, &self.severity)?; - } - if !self.description.is_empty() { - os.write_string(5, &self.description)?; - } - for v in &self.references { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Details { - VulnerabilityReport_Vulnerability_Details::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "cve", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cve }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cve }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "cvss_v2_score", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cvss_v2_score }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cvss_v2_score }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cvss_v3", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.cvss_v3 }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.cvss_v3 }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "severity", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.severity }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.severity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.description }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "references", - |m: &VulnerabilityReport_Vulnerability_Details| { &m.references }, - |m: &mut VulnerabilityReport_Vulnerability_Details| { &mut m.references }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Details", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Details { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Details::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Details { - fn clear(&mut self) { - self.cve.clear(); - self.cvss_v2_score = 0.; - self.cvss_v3.clear(); - self.severity.clear(); - self.description.clear(); - self.references.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Details { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Details { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Details_Reference { - // message fields - pub url: ::std::string::String, - pub source: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Details_Reference { - fn default() -> &'a VulnerabilityReport_Vulnerability_Details_Reference { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Details_Reference { - pub fn new() -> VulnerabilityReport_Vulnerability_Details_Reference { - ::std::default::Default::default() - } - - // string url = 1; - - - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } - - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } - - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } - - // string source = 2; - - - pub fn get_source(&self) -> &str { - &self.source - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: ::std::string::String) { - self.source = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut ::std::string::String { - &mut self.source - } - - // Take field - pub fn take_source(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Details_Reference { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.url); - } - if !self.source.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.url.is_empty() { - os.write_string(1, &self.url)?; - } - if !self.source.is_empty() { - os.write_string(2, &self.source)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Details_Reference { - VulnerabilityReport_Vulnerability_Details_Reference::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &VulnerabilityReport_Vulnerability_Details_Reference| { &m.url }, - |m: &mut VulnerabilityReport_Vulnerability_Details_Reference| { &mut m.url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source", - |m: &VulnerabilityReport_Vulnerability_Details_Reference| { &m.source }, - |m: &mut VulnerabilityReport_Vulnerability_Details_Reference| { &mut m.source }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Details.Reference", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Details_Reference { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Details_Reference::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Details_Reference { - fn clear(&mut self) { - self.url.clear(); - self.source.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Details_Reference { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Details_Reference { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VulnerabilityReport_Vulnerability_Item { - // message fields - pub installed_inventory_item_id: ::std::string::String, - pub available_inventory_item_id: ::std::string::String, - pub fixed_cpe_uri: ::std::string::String, - pub upstream_fix: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VulnerabilityReport_Vulnerability_Item { - fn default() -> &'a VulnerabilityReport_Vulnerability_Item { - ::default_instance() - } -} - -impl VulnerabilityReport_Vulnerability_Item { - pub fn new() -> VulnerabilityReport_Vulnerability_Item { - ::std::default::Default::default() - } - - // string installed_inventory_item_id = 1; - - - pub fn get_installed_inventory_item_id(&self) -> &str { - &self.installed_inventory_item_id - } - pub fn clear_installed_inventory_item_id(&mut self) { - self.installed_inventory_item_id.clear(); - } - - // Param is passed by value, moved - pub fn set_installed_inventory_item_id(&mut self, v: ::std::string::String) { - self.installed_inventory_item_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_installed_inventory_item_id(&mut self) -> &mut ::std::string::String { - &mut self.installed_inventory_item_id - } - - // Take field - pub fn take_installed_inventory_item_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.installed_inventory_item_id, ::std::string::String::new()) - } - - // string available_inventory_item_id = 2; - - - pub fn get_available_inventory_item_id(&self) -> &str { - &self.available_inventory_item_id - } - pub fn clear_available_inventory_item_id(&mut self) { - self.available_inventory_item_id.clear(); - } - - // Param is passed by value, moved - pub fn set_available_inventory_item_id(&mut self, v: ::std::string::String) { - self.available_inventory_item_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_available_inventory_item_id(&mut self) -> &mut ::std::string::String { - &mut self.available_inventory_item_id - } - - // Take field - pub fn take_available_inventory_item_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.available_inventory_item_id, ::std::string::String::new()) - } - - // string fixed_cpe_uri = 3; - - - pub fn get_fixed_cpe_uri(&self) -> &str { - &self.fixed_cpe_uri - } - pub fn clear_fixed_cpe_uri(&mut self) { - self.fixed_cpe_uri.clear(); - } - - // Param is passed by value, moved - pub fn set_fixed_cpe_uri(&mut self, v: ::std::string::String) { - self.fixed_cpe_uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_fixed_cpe_uri(&mut self) -> &mut ::std::string::String { - &mut self.fixed_cpe_uri - } - - // Take field - pub fn take_fixed_cpe_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.fixed_cpe_uri, ::std::string::String::new()) - } - - // string upstream_fix = 4; - - - pub fn get_upstream_fix(&self) -> &str { - &self.upstream_fix - } - pub fn clear_upstream_fix(&mut self) { - self.upstream_fix.clear(); - } - - // Param is passed by value, moved - pub fn set_upstream_fix(&mut self, v: ::std::string::String) { - self.upstream_fix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_upstream_fix(&mut self) -> &mut ::std::string::String { - &mut self.upstream_fix - } - - // Take field - pub fn take_upstream_fix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.upstream_fix, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VulnerabilityReport_Vulnerability_Item { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.installed_inventory_item_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.available_inventory_item_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.fixed_cpe_uri)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.upstream_fix)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.installed_inventory_item_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.installed_inventory_item_id); - } - if !self.available_inventory_item_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.available_inventory_item_id); - } - if !self.fixed_cpe_uri.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.fixed_cpe_uri); - } - if !self.upstream_fix.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.upstream_fix); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.installed_inventory_item_id.is_empty() { - os.write_string(1, &self.installed_inventory_item_id)?; - } - if !self.available_inventory_item_id.is_empty() { - os.write_string(2, &self.available_inventory_item_id)?; - } - if !self.fixed_cpe_uri.is_empty() { - os.write_string(3, &self.fixed_cpe_uri)?; - } - if !self.upstream_fix.is_empty() { - os.write_string(4, &self.upstream_fix)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VulnerabilityReport_Vulnerability_Item { - VulnerabilityReport_Vulnerability_Item::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "installed_inventory_item_id", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.installed_inventory_item_id }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.installed_inventory_item_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "available_inventory_item_id", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.available_inventory_item_id }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.available_inventory_item_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "fixed_cpe_uri", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.fixed_cpe_uri }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.fixed_cpe_uri }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "upstream_fix", - |m: &VulnerabilityReport_Vulnerability_Item| { &m.upstream_fix }, - |m: &mut VulnerabilityReport_Vulnerability_Item| { &mut m.upstream_fix }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VulnerabilityReport.Vulnerability.Item", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static VulnerabilityReport_Vulnerability_Item { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(VulnerabilityReport_Vulnerability_Item::new) - } -} - -impl ::protobuf::Clear for VulnerabilityReport_Vulnerability_Item { - fn clear(&mut self) { - self.installed_inventory_item_id.clear(); - self.available_inventory_item_id.clear(); - self.fixed_cpe_uri.clear(); - self.upstream_fix.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VulnerabilityReport_Vulnerability_Item { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VulnerabilityReport_Vulnerability_Item { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetVulnerabilityReportRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetVulnerabilityReportRequest { - fn default() -> &'a GetVulnerabilityReportRequest { - ::default_instance() - } -} - -impl GetVulnerabilityReportRequest { - pub fn new() -> GetVulnerabilityReportRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetVulnerabilityReportRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetVulnerabilityReportRequest { - GetVulnerabilityReportRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetVulnerabilityReportRequest| { &m.name }, - |m: &mut GetVulnerabilityReportRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetVulnerabilityReportRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetVulnerabilityReportRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetVulnerabilityReportRequest::new) - } -} - -impl ::protobuf::Clear for GetVulnerabilityReportRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetVulnerabilityReportRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetVulnerabilityReportRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListVulnerabilityReportsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListVulnerabilityReportsRequest { - fn default() -> &'a ListVulnerabilityReportsRequest { - ::default_instance() - } -} - -impl ListVulnerabilityReportsRequest { - pub fn new() -> ListVulnerabilityReportsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListVulnerabilityReportsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListVulnerabilityReportsRequest { - ListVulnerabilityReportsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListVulnerabilityReportsRequest| { &m.parent }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListVulnerabilityReportsRequest| { &m.page_size }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListVulnerabilityReportsRequest| { &m.page_token }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListVulnerabilityReportsRequest| { &m.filter }, - |m: &mut ListVulnerabilityReportsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListVulnerabilityReportsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListVulnerabilityReportsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListVulnerabilityReportsRequest::new) - } -} - -impl ::protobuf::Clear for ListVulnerabilityReportsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListVulnerabilityReportsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListVulnerabilityReportsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListVulnerabilityReportsResponse { - // message fields - pub vulnerability_reports: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListVulnerabilityReportsResponse { - fn default() -> &'a ListVulnerabilityReportsResponse { - ::default_instance() - } -} - -impl ListVulnerabilityReportsResponse { - pub fn new() -> ListVulnerabilityReportsResponse { - ::std::default::Default::default() - } - - // repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport vulnerability_reports = 1; - - - pub fn get_vulnerability_reports(&self) -> &[VulnerabilityReport] { - &self.vulnerability_reports - } - pub fn clear_vulnerability_reports(&mut self) { - self.vulnerability_reports.clear(); - } - - // Param is passed by value, moved - pub fn set_vulnerability_reports(&mut self, v: ::protobuf::RepeatedField) { - self.vulnerability_reports = v; - } - - // Mutable pointer to the field. - pub fn mut_vulnerability_reports(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.vulnerability_reports - } - - // Take field - pub fn take_vulnerability_reports(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.vulnerability_reports, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListVulnerabilityReportsResponse { - fn is_initialized(&self) -> bool { - for v in &self.vulnerability_reports { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.vulnerability_reports)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.vulnerability_reports { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.vulnerability_reports { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListVulnerabilityReportsResponse { - ListVulnerabilityReportsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "vulnerability_reports", - |m: &ListVulnerabilityReportsResponse| { &m.vulnerability_reports }, - |m: &mut ListVulnerabilityReportsResponse| { &mut m.vulnerability_reports }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListVulnerabilityReportsResponse| { &m.next_page_token }, - |m: &mut ListVulnerabilityReportsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListVulnerabilityReportsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListVulnerabilityReportsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListVulnerabilityReportsResponse::new) - } -} - -impl ::protobuf::Clear for ListVulnerabilityReportsResponse { - fn clear(&mut self) { - self.vulnerability_reports.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListVulnerabilityReportsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListVulnerabilityReportsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CVSSv3 { - // message fields - pub base_score: f32, - pub exploitability_score: f32, - pub impact_score: f32, - pub attack_vector: CVSSv3_AttackVector, - pub attack_complexity: CVSSv3_AttackComplexity, - pub privileges_required: CVSSv3_PrivilegesRequired, - pub user_interaction: CVSSv3_UserInteraction, - pub scope: CVSSv3_Scope, - pub confidentiality_impact: CVSSv3_Impact, - pub integrity_impact: CVSSv3_Impact, - pub availability_impact: CVSSv3_Impact, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CVSSv3 { - fn default() -> &'a CVSSv3 { - ::default_instance() - } -} - -impl CVSSv3 { - pub fn new() -> CVSSv3 { - ::std::default::Default::default() - } - - // float base_score = 1; - - - pub fn get_base_score(&self) -> f32 { - self.base_score - } - pub fn clear_base_score(&mut self) { - self.base_score = 0.; - } - - // Param is passed by value, moved - pub fn set_base_score(&mut self, v: f32) { - self.base_score = v; - } - - // float exploitability_score = 2; - - - pub fn get_exploitability_score(&self) -> f32 { - self.exploitability_score - } - pub fn clear_exploitability_score(&mut self) { - self.exploitability_score = 0.; - } - - // Param is passed by value, moved - pub fn set_exploitability_score(&mut self, v: f32) { - self.exploitability_score = v; - } - - // float impact_score = 3; - - - pub fn get_impact_score(&self) -> f32 { - self.impact_score - } - pub fn clear_impact_score(&mut self) { - self.impact_score = 0.; - } - - // Param is passed by value, moved - pub fn set_impact_score(&mut self, v: f32) { - self.impact_score = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.AttackVector attack_vector = 5; - - - pub fn get_attack_vector(&self) -> CVSSv3_AttackVector { - self.attack_vector - } - pub fn clear_attack_vector(&mut self) { - self.attack_vector = CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_attack_vector(&mut self, v: CVSSv3_AttackVector) { - self.attack_vector = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexity attack_complexity = 6; - - - pub fn get_attack_complexity(&self) -> CVSSv3_AttackComplexity { - self.attack_complexity - } - pub fn clear_attack_complexity(&mut self) { - self.attack_complexity = CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_attack_complexity(&mut self, v: CVSSv3_AttackComplexity) { - self.attack_complexity = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.PrivilegesRequired privileges_required = 7; - - - pub fn get_privileges_required(&self) -> CVSSv3_PrivilegesRequired { - self.privileges_required - } - pub fn clear_privileges_required(&mut self) { - self.privileges_required = CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_privileges_required(&mut self, v: CVSSv3_PrivilegesRequired) { - self.privileges_required = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.UserInteraction user_interaction = 8; - - - pub fn get_user_interaction(&self) -> CVSSv3_UserInteraction { - self.user_interaction - } - pub fn clear_user_interaction(&mut self) { - self.user_interaction = CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_user_interaction(&mut self, v: CVSSv3_UserInteraction) { - self.user_interaction = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.Scope scope = 9; - - - pub fn get_scope(&self) -> CVSSv3_Scope { - self.scope - } - pub fn clear_scope(&mut self) { - self.scope = CVSSv3_Scope::SCOPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: CVSSv3_Scope) { - self.scope = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.Impact confidentiality_impact = 10; - - - pub fn get_confidentiality_impact(&self) -> CVSSv3_Impact { - self.confidentiality_impact - } - pub fn clear_confidentiality_impact(&mut self) { - self.confidentiality_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_confidentiality_impact(&mut self, v: CVSSv3_Impact) { - self.confidentiality_impact = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.Impact integrity_impact = 11; - - - pub fn get_integrity_impact(&self) -> CVSSv3_Impact { - self.integrity_impact - } - pub fn clear_integrity_impact(&mut self) { - self.integrity_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_integrity_impact(&mut self, v: CVSSv3_Impact) { - self.integrity_impact = v; - } - - // .google.cloud.osconfig.v1alpha.CVSSv3.Impact availability_impact = 12; - - - pub fn get_availability_impact(&self) -> CVSSv3_Impact { - self.availability_impact - } - pub fn clear_availability_impact(&mut self) { - self.availability_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_availability_impact(&mut self, v: CVSSv3_Impact) { - self.availability_impact = v; - } -} - -impl ::protobuf::Message for CVSSv3 { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.base_score = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.exploitability_score = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.impact_score = tmp; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.attack_vector, 5, &mut self.unknown_fields)? - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.attack_complexity, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.privileges_required, 7, &mut self.unknown_fields)? - }, - 8 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.user_interaction, 8, &mut self.unknown_fields)? - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.scope, 9, &mut self.unknown_fields)? - }, - 10 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.confidentiality_impact, 10, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.integrity_impact, 11, &mut self.unknown_fields)? - }, - 12 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.availability_impact, 12, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.base_score != 0. { - my_size += 5; - } - if self.exploitability_score != 0. { - my_size += 5; - } - if self.impact_score != 0. { - my_size += 5; - } - if self.attack_vector != CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.attack_vector); - } - if self.attack_complexity != CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.attack_complexity); - } - if self.privileges_required != CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(7, self.privileges_required); - } - if self.user_interaction != CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(8, self.user_interaction); - } - if self.scope != CVSSv3_Scope::SCOPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.scope); - } - if self.confidentiality_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(10, self.confidentiality_impact); - } - if self.integrity_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(11, self.integrity_impact); - } - if self.availability_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(12, self.availability_impact); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.base_score != 0. { - os.write_float(1, self.base_score)?; - } - if self.exploitability_score != 0. { - os.write_float(2, self.exploitability_score)?; - } - if self.impact_score != 0. { - os.write_float(3, self.impact_score)?; - } - if self.attack_vector != CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.attack_vector))?; - } - if self.attack_complexity != CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.attack_complexity))?; - } - if self.privileges_required != CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.privileges_required))?; - } - if self.user_interaction != CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED { - os.write_enum(8, ::protobuf::ProtobufEnum::value(&self.user_interaction))?; - } - if self.scope != CVSSv3_Scope::SCOPE_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.scope))?; - } - if self.confidentiality_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(10, ::protobuf::ProtobufEnum::value(&self.confidentiality_impact))?; - } - if self.integrity_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(11, ::protobuf::ProtobufEnum::value(&self.integrity_impact))?; - } - if self.availability_impact != CVSSv3_Impact::IMPACT_UNSPECIFIED { - os.write_enum(12, ::protobuf::ProtobufEnum::value(&self.availability_impact))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CVSSv3 { - CVSSv3::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "base_score", - |m: &CVSSv3| { &m.base_score }, - |m: &mut CVSSv3| { &mut m.base_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "exploitability_score", - |m: &CVSSv3| { &m.exploitability_score }, - |m: &mut CVSSv3| { &mut m.exploitability_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "impact_score", - |m: &CVSSv3| { &m.impact_score }, - |m: &mut CVSSv3| { &mut m.impact_score }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "attack_vector", - |m: &CVSSv3| { &m.attack_vector }, - |m: &mut CVSSv3| { &mut m.attack_vector }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "attack_complexity", - |m: &CVSSv3| { &m.attack_complexity }, - |m: &mut CVSSv3| { &mut m.attack_complexity }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "privileges_required", - |m: &CVSSv3| { &m.privileges_required }, - |m: &mut CVSSv3| { &mut m.privileges_required }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "user_interaction", - |m: &CVSSv3| { &m.user_interaction }, - |m: &mut CVSSv3| { &mut m.user_interaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "scope", - |m: &CVSSv3| { &m.scope }, - |m: &mut CVSSv3| { &mut m.scope }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "confidentiality_impact", - |m: &CVSSv3| { &m.confidentiality_impact }, - |m: &mut CVSSv3| { &mut m.confidentiality_impact }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "integrity_impact", - |m: &CVSSv3| { &m.integrity_impact }, - |m: &mut CVSSv3| { &mut m.integrity_impact }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "availability_impact", - |m: &CVSSv3| { &m.availability_impact }, - |m: &mut CVSSv3| { &mut m.availability_impact }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CVSSv3", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CVSSv3 { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CVSSv3::new) - } -} - -impl ::protobuf::Clear for CVSSv3 { - fn clear(&mut self) { - self.base_score = 0.; - self.exploitability_score = 0.; - self.impact_score = 0.; - self.attack_vector = CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED; - self.attack_complexity = CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED; - self.privileges_required = CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED; - self.user_interaction = CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED; - self.scope = CVSSv3_Scope::SCOPE_UNSPECIFIED; - self.confidentiality_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.integrity_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.availability_impact = CVSSv3_Impact::IMPACT_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CVSSv3 { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3 { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_AttackVector { - ATTACK_VECTOR_UNSPECIFIED = 0, - ATTACK_VECTOR_NETWORK = 1, - ATTACK_VECTOR_ADJACENT = 2, - ATTACK_VECTOR_LOCAL = 3, - ATTACK_VECTOR_PHYSICAL = 4, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_AttackVector { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_NETWORK), - 2 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_ADJACENT), - 3 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_LOCAL), - 4 => ::std::option::Option::Some(CVSSv3_AttackVector::ATTACK_VECTOR_PHYSICAL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_AttackVector] = &[ - CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED, - CVSSv3_AttackVector::ATTACK_VECTOR_NETWORK, - CVSSv3_AttackVector::ATTACK_VECTOR_ADJACENT, - CVSSv3_AttackVector::ATTACK_VECTOR_LOCAL, - CVSSv3_AttackVector::ATTACK_VECTOR_PHYSICAL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.AttackVector", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_AttackVector { -} - -impl ::std::default::Default for CVSSv3_AttackVector { - fn default() -> Self { - CVSSv3_AttackVector::ATTACK_VECTOR_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_AttackVector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_AttackComplexity { - ATTACK_COMPLEXITY_UNSPECIFIED = 0, - ATTACK_COMPLEXITY_LOW = 1, - ATTACK_COMPLEXITY_HIGH = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_AttackComplexity { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_LOW), - 2 => ::std::option::Option::Some(CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_HIGH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_AttackComplexity] = &[ - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED, - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_LOW, - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_HIGH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.AttackComplexity", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_AttackComplexity { -} - -impl ::std::default::Default for CVSSv3_AttackComplexity { - fn default() -> Self { - CVSSv3_AttackComplexity::ATTACK_COMPLEXITY_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_AttackComplexity { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_PrivilegesRequired { - PRIVILEGES_REQUIRED_UNSPECIFIED = 0, - PRIVILEGES_REQUIRED_NONE = 1, - PRIVILEGES_REQUIRED_LOW = 2, - PRIVILEGES_REQUIRED_HIGH = 3, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_PrivilegesRequired { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_NONE), - 2 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_LOW), - 3 => ::std::option::Option::Some(CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_HIGH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_PrivilegesRequired] = &[ - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_NONE, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_LOW, - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_HIGH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.PrivilegesRequired", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_PrivilegesRequired { -} - -impl ::std::default::Default for CVSSv3_PrivilegesRequired { - fn default() -> Self { - CVSSv3_PrivilegesRequired::PRIVILEGES_REQUIRED_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_PrivilegesRequired { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_UserInteraction { - USER_INTERACTION_UNSPECIFIED = 0, - USER_INTERACTION_NONE = 1, - USER_INTERACTION_REQUIRED = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_UserInteraction { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_NONE), - 2 => ::std::option::Option::Some(CVSSv3_UserInteraction::USER_INTERACTION_REQUIRED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_UserInteraction] = &[ - CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED, - CVSSv3_UserInteraction::USER_INTERACTION_NONE, - CVSSv3_UserInteraction::USER_INTERACTION_REQUIRED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.UserInteraction", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_UserInteraction { -} - -impl ::std::default::Default for CVSSv3_UserInteraction { - fn default() -> Self { - CVSSv3_UserInteraction::USER_INTERACTION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_UserInteraction { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_Scope { - SCOPE_UNSPECIFIED = 0, - SCOPE_UNCHANGED = 1, - SCOPE_CHANGED = 2, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_Scope { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_UNCHANGED), - 2 => ::std::option::Option::Some(CVSSv3_Scope::SCOPE_CHANGED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_Scope] = &[ - CVSSv3_Scope::SCOPE_UNSPECIFIED, - CVSSv3_Scope::SCOPE_UNCHANGED, - CVSSv3_Scope::SCOPE_CHANGED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.Scope", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_Scope { -} - -impl ::std::default::Default for CVSSv3_Scope { - fn default() -> Self { - CVSSv3_Scope::SCOPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_Scope { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CVSSv3_Impact { - IMPACT_UNSPECIFIED = 0, - IMPACT_HIGH = 1, - IMPACT_LOW = 2, - IMPACT_NONE = 3, -} - -impl ::protobuf::ProtobufEnum for CVSSv3_Impact { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_UNSPECIFIED), - 1 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_HIGH), - 2 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_LOW), - 3 => ::std::option::Option::Some(CVSSv3_Impact::IMPACT_NONE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CVSSv3_Impact] = &[ - CVSSv3_Impact::IMPACT_UNSPECIFIED, - CVSSv3_Impact::IMPACT_HIGH, - CVSSv3_Impact::IMPACT_LOW, - CVSSv3_Impact::IMPACT_NONE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CVSSv3.Impact", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CVSSv3_Impact { -} - -impl ::std::default::Default for CVSSv3_Impact { - fn default() -> Self { - CVSSv3_Impact::IMPACT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CVSSv3_Impact { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n1google/cloud/osconfig/v1alpha/vulnerability.proto\x12\x1dgoogle.cloud\ - .osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/a\ - pi/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\n\n\x13Vu\ - lnerabilityReport\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0\ - A\x03\x12o\n\x0fvulnerabilities\x18\x02\x20\x03(\x0b2@.google.cloud.osco\ - nfig.v1alpha.VulnerabilityReport.VulnerabilityR\x0fvulnerabilitiesB\x03\ - \xe0A\x03\x12@\n\x0bupdate_time\x18\x03\x20\x01(\x0b2\x1a.google.protobu\ - f.TimestampR\nupdateTimeB\x03\xe0A\x03\x1a\x8d\x08\n\rVulnerability\x12b\ - \n\x07details\x18\x01\x20\x01(\x0b2H.google.cloud.osconfig.v1alpha.Vulne\ - rabilityReport.Vulnerability.DetailsR\x07details\x12C\n\x1cinstalled_inv\ - entory_item_ids\x18\x02\x20\x03(\tR\x19installedInventoryItemIdsB\x02\ - \x18\x01\x12C\n\x1cavailable_inventory_item_ids\x18\x03\x20\x03(\tR\x19a\ - vailableInventoryItemIdsB\x02\x18\x01\x12;\n\x0bcreate_time\x18\x04\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_t\ - ime\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTime\x12\ - [\n\x05items\x18\x06\x20\x03(\x0b2E.google.cloud.osconfig.v1alpha.Vulner\ - abilityReport.Vulnerability.ItemR\x05items\x1a\xe8\x02\n\x07Details\x12\ - \x10\n\x03cve\x18\x01\x20\x01(\tR\x03cve\x12\"\n\rcvss_v2_score\x18\x02\ - \x20\x01(\x02R\x0bcvssV2Score\x12>\n\x07cvss_v3\x18\x03\x20\x01(\x0b2%.g\ - oogle.cloud.osconfig.v1alpha.CVSSv3R\x06cvssV3\x12\x1a\n\x08severity\x18\ - \x04\x20\x01(\tR\x08severity\x12\x20\n\x0bdescription\x18\x05\x20\x01(\t\ - R\x0bdescription\x12r\n\nreferences\x18\x06\x20\x03(\x0b2R.google.cloud.\ - osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details.ReferenceR\nr\ - eferences\x1a5\n\tReference\x12\x10\n\x03url\x18\x01\x20\x01(\tR\x03url\ - \x12\x16\n\x06source\x18\x02\x20\x01(\tR\x06source\x1a\xcb\x01\n\x04Item\ - \x12=\n\x1binstalled_inventory_item_id\x18\x01\x20\x01(\tR\x18installedI\ - nventoryItemId\x12=\n\x1bavailable_inventory_item_id\x18\x02\x20\x01(\tR\ - \x18availableInventoryItemId\x12\"\n\rfixed_cpe_uri\x18\x03\x20\x01(\tR\ - \x0bfixedCpeUri\x12!\n\x0cupstream_fix\x18\x04\x20\x01(\tR\x0bupstreamFi\ - x:\x82\x01\xeaA\x7f\n+osconfig.googleapis.com/VulnerabilityReport\x12Ppr\ - ojects/{project}/locations/{location}/instances/{instance}/vulnerability\ - Report\"h\n\x1dGetVulnerabilityReportRequest\x12G\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB3\xfaA-\n+osconfig.googleapis.com/VulnerabilityReport\ - \xe0A\x02\"\xb6\x01\n\x1fListVulnerabilityReportsRequest\x12?\n\x06paren\ - t\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fcompute.googleapis.com/Inst\ - ance\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\ - \x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\ - \x18\x04\x20\x01(\tR\x06filter\"\xb3\x01\n\x20ListVulnerabilityReportsRe\ - sponse\x12g\n\x15vulnerability_reports\x18\x01\x20\x03(\x0b22.google.clo\ - ud.osconfig.v1alpha.VulnerabilityReportR\x14vulnerabilityReports\x12&\n\ - \x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\x92\x0c\n\x06CV\ - SSv3\x12\x1d\n\nbase_score\x18\x01\x20\x01(\x02R\tbaseScore\x121\n\x14ex\ - ploitability_score\x18\x02\x20\x01(\x02R\x13exploitabilityScore\x12!\n\ - \x0cimpact_score\x18\x03\x20\x01(\x02R\x0bimpactScore\x12W\n\rattack_vec\ - tor\x18\x05\x20\x01(\x0e22.google.cloud.osconfig.v1alpha.CVSSv3.AttackVe\ - ctorR\x0cattackVector\x12c\n\x11attack_complexity\x18\x06\x20\x01(\x0e26\ - .google.cloud.osconfig.v1alpha.CVSSv3.AttackComplexityR\x10attackComplex\ - ity\x12i\n\x13privileges_required\x18\x07\x20\x01(\x0e28.google.cloud.os\ - config.v1alpha.CVSSv3.PrivilegesRequiredR\x12privilegesRequired\x12`\n\ - \x10user_interaction\x18\x08\x20\x01(\x0e25.google.cloud.osconfig.v1alph\ - a.CVSSv3.UserInteractionR\x0fuserInteraction\x12A\n\x05scope\x18\t\x20\ - \x01(\x0e2+.google.cloud.osconfig.v1alpha.CVSSv3.ScopeR\x05scope\x12c\n\ - \x16confidentiality_impact\x18\n\x20\x01(\x0e2,.google.cloud.osconfig.v1\ - alpha.CVSSv3.ImpactR\x15confidentialityImpact\x12W\n\x10integrity_impact\ - \x18\x0b\x20\x01(\x0e2,.google.cloud.osconfig.v1alpha.CVSSv3.ImpactR\x0f\ - integrityImpact\x12]\n\x13availability_impact\x18\x0c\x20\x01(\x0e2,.goo\ - gle.cloud.osconfig.v1alpha.CVSSv3.ImpactR\x12availabilityImpact\"\x99\ - \x01\n\x0cAttackVector\x12\x1d\n\x19ATTACK_VECTOR_UNSPECIFIED\x10\0\x12\ - \x19\n\x15ATTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16ATTACK_VECTOR_ADJAC\ - ENT\x10\x02\x12\x17\n\x13ATTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16ATTACK\ - _VECTOR_PHYSICAL\x10\x04\"l\n\x10AttackComplexity\x12!\n\x1dATTACK_COMPL\ - EXITY_UNSPECIFIED\x10\0\x12\x19\n\x15ATTACK_COMPLEXITY_LOW\x10\x01\x12\ - \x1a\n\x16ATTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\n\x12PrivilegesRequir\ - ed\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\0\x12\x1c\n\x18PRIVILEG\ - ES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\ - \x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\ - \x12\x20\n\x1cUSER_INTERACTION_UNSPECIFIED\x10\0\x12\x19\n\x15USER_INTER\ - ACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\ - \x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\0\x12\x13\n\x0fSCOPE_UNCHAN\ - GED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"R\n\x06Impact\x12\x16\n\ - \x12IMPACT_UNSPECIFIED\x10\0\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\ - \nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03B\xdb\x01\n!com.goo\ - gle.cloud.osconfig.v1alphaB\x12VulnerabilityProtoP\x01Z=cloud.google.com\ - /go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.Os\ - Config.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02\x20Go\ - ogle::Cloud::OsConfig::V1alphaJ\xf2p\n\x07\x12\x05\x0e\0\xec\x02\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0&\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\ - \x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\0:\n\t\n\x02\x08%\x12\x03\x16\0:\ - \n\x08\n\x01\x08\x12\x03\x17\0T\n\t\n\x02\x08\x0b\x12\x03\x17\0T\n\x08\n\ - \x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\ - \x12\x03\x19\03\n\t\n\x02\x08\x08\x12\x03\x19\03\n\x08\n\x01\x08\x12\x03\ - \x1a\0:\n\t\n\x02\x08\x01\x12\x03\x1a\0:\n\x08\n\x01\x08\x12\x03\x1b\0:\ - \n\t\n\x02\x08)\x12\x03\x1b\0:\n\x08\n\x01\x08\x12\x03\x1c\09\n\t\n\x02\ - \x08-\x12\x03\x1c\09\n\xb2\x02\n\x02\x04\0\x12\x05#\0\x90\x01\x01\x1a\ - \xa4\x02\x20This\x20API\x20resource\x20represents\x20the\x20vulnerabilit\ - y\x20report\x20for\x20a\x20specified\n\x20Compute\x20Engine\x20virtual\ - \x20machine\x20(VM)\x20instance\x20at\x20a\x20given\x20point\x20in\x20ti\ - me.\n\n\x20For\x20more\x20information,\x20see\x20[Vulnerability\n\x20rep\ - orts](https://cloud.google.com/compute/docs/instances/os-inventory-manag\ - ement#vulnerability-reports).\n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x1b\n\ - \x0b\n\x03\x04\0\x07\x12\x04$\x02'\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\ - \x04$\x02'\x04\n;\n\x04\x04\0\x03\0\x12\x05*\x02\x82\x01\x03\x1a,\x20A\ - \x20vulnerability\x20affecting\x20the\x20VM\x20instance.\n\n\x0c\n\x05\ - \x04\0\x03\0\x01\x12\x03*\n\x17\n\x96\x01\n\x06\x04\0\x03\0\x03\0\x12\ - \x04-\x04K\x05\x1a\x85\x01\x20Contains\x20metadata\x20information\x20for\ - \x20the\x20vulnerability.\x20This\x20information\x20is\n\x20collected\ - \x20from\x20the\x20upstream\x20feed\x20of\x20the\x20operating\x20system.\ - \n\n\x0e\n\x07\x04\0\x03\0\x03\0\x01\x12\x03-\x0c\x13\n7\n\x08\x04\0\x03\ - \0\x03\0\x03\0\x12\x04/\x065\x07\x1a%\x20A\x20reference\x20for\x20this\ - \x20vulnerability.\n\n\x10\n\t\x04\0\x03\0\x03\0\x03\0\x01\x12\x03/\x0e\ - \x17\n.\n\n\x04\0\x03\0\x03\0\x03\0\x02\0\x12\x031\x08\x17\x1a\x1b\x20Th\ - e\x20url\x20of\x20the\x20reference.\n\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\ - \0\x02\0\x05\x12\x031\x08\x0e\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\ - \x01\x12\x031\x0f\x12\n\x12\n\x0b\x04\0\x03\0\x03\0\x03\0\x02\0\x03\x12\ - \x031\x15\x16\n:\n\n\x04\0\x03\0\x03\0\x03\0\x02\x01\x12\x034\x08\x1a\ - \x1a'\x20The\x20source\x20of\x20the\x20reference\x20e.g.\x20NVD.\n\n\x12\ - \n\x0b\x04\0\x03\0\x03\0\x03\0\x02\x01\x05\x12\x034\x08\x0e\n\x12\n\x0b\ - \x04\0\x03\0\x03\0\x03\0\x02\x01\x01\x12\x034\x0f\x15\n\x12\n\x0b\x04\0\ - \x03\0\x03\0\x03\0\x02\x01\x03\x12\x034\x18\x19\n\xa6\x01\n\x08\x04\0\ - \x03\0\x03\0\x02\0\x12\x03:\x06\x15\x1a\x94\x01\x20The\x20CVE\x20of\x20t\ - he\x20vulnerability.\x20CVE\x20cannot\x20be\n\x20empty\x20and\x20the\x20\ - combination\x20of\x20\x20should\x20be\x20unique\ - \n\x20across\x20vulnerabilities\x20for\x20a\x20VM.\n\n\x10\n\t\x04\0\x03\ - \0\x03\0\x02\0\x05\x12\x03:\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\ - \x01\x12\x03:\r\x10\n\x10\n\t\x04\0\x03\0\x03\0\x02\0\x03\x12\x03:\x13\ - \x14\n\xa2\x01\n\x08\x04\0\x03\0\x03\0\x02\x01\x12\x03>\x06\x1e\x1a\x90\ - \x01\x20The\x20CVSS\x20V2\x20score\x20of\x20this\x20vulnerability.\x20CV\ - SS\x20V2\x20score\x20is\x20on\x20a\x20scale\x20of\n\x200\x20-\x2010\x20w\ - here\x200\x20indicates\x20low\x20severity\x20and\x2010\x20indicates\x20h\ - igh\x20severity.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x01\x05\x12\x03>\x06\ - \x0b\n\x10\n\t\x04\0\x03\0\x03\0\x02\x01\x01\x12\x03>\x0c\x19\n\x10\n\t\ - \x04\0\x03\0\x03\0\x02\x01\x03\x12\x03>\x1c\x1d\nV\n\x08\x04\0\x03\0\x03\ - \0\x02\x02\x12\x03A\x06\x19\x1aE\x20The\x20full\x20description\x20of\x20\ - the\x20CVSSv3\x20for\x20this\x20vulnerability\x20from\x20NVD.\n\n\x10\n\ - \t\x04\0\x03\0\x03\0\x02\x02\x06\x12\x03A\x06\x0c\n\x10\n\t\x04\0\x03\0\ - \x03\0\x02\x02\x01\x12\x03A\r\x14\n\x10\n\t\x04\0\x03\0\x03\0\x02\x02\ - \x03\x12\x03A\x17\x18\nD\n\x08\x04\0\x03\0\x03\0\x02\x03\x12\x03D\x06\ - \x1a\x1a3\x20Assigned\x20severity/impact\x20ranking\x20from\x20the\x20di\ - stro.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x03\x05\x12\x03D\x06\x0c\n\x10\n\ - \t\x04\0\x03\0\x03\0\x02\x03\x01\x12\x03D\r\x15\n\x10\n\t\x04\0\x03\0\ - \x03\0\x02\x03\x03\x12\x03D\x18\x19\nX\n\x08\x04\0\x03\0\x03\0\x02\x04\ - \x12\x03G\x06\x1d\x1aG\x20The\x20note\x20or\x20description\x20describing\ - \x20the\x20vulnerability\x20from\x20the\x20distro.\n\n\x10\n\t\x04\0\x03\ - \0\x03\0\x02\x04\x05\x12\x03G\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\0\x02\ - \x04\x01\x12\x03G\r\x18\n\x10\n\t\x04\0\x03\0\x03\0\x02\x04\x03\x12\x03G\ - \x1b\x1c\nX\n\x08\x04\0\x03\0\x03\0\x02\x05\x12\x03J\x06(\x1aG\x20Corres\ - ponds\x20to\x20the\x20references\x20attached\x20to\x20the\x20`Vulnerabil\ - ityDetails`.\n\n\x10\n\t\x04\0\x03\0\x03\0\x02\x05\x04\x12\x03J\x06\x0e\ - \n\x10\n\t\x04\0\x03\0\x03\0\x02\x05\x06\x12\x03J\x0f\x18\n\x10\n\t\x04\ - \0\x03\0\x03\0\x02\x05\x01\x12\x03J\x19#\n\x10\n\t\x04\0\x03\0\x03\0\x02\ - \x05\x03\x12\x03J&'\nq\n\x06\x04\0\x03\0\x03\x01\x12\x04O\x04e\x05\x1aa\ - \x20OS\x20inventory\x20item\x20that\x20is\x20affected\x20by\x20a\x20vuln\ - erability\x20or\x20fixed\x20as\x20a\n\x20result\x20of\x20a\x20vulnerabil\ - ity.\n\n\x0e\n\x07\x04\0\x03\0\x03\x01\x01\x12\x03O\x0c\x10\n\xd2\x02\n\ - \x08\x04\0\x03\0\x03\x01\x02\0\x12\x03U\x06-\x1a\xc0\x02\x20Corresponds\ - \x20to\x20the\x20`INSTALLED_PACKAGE`\x20inventory\x20item\x20on\x20the\ - \x20VM.\n\x20This\x20field\x20displays\x20the\x20inventory\x20items\x20a\ - ffected\x20by\x20this\x20vulnerability.\n\x20If\x20the\x20vulnerability\ - \x20report\x20was\x20not\x20updated\x20after\x20the\x20VM\x20inventory\n\ - \x20update,\x20these\x20values\x20might\x20not\x20display\x20in\x20VM\ - \x20inventory.\x20For\x20some\n\x20operating\x20systems,\x20this\x20fiel\ - d\x20might\x20be\x20empty.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\0\x05\x12\ - \x03U\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\x01\x02\0\x01\x12\x03U\r(\n\x10\ - \n\t\x04\0\x03\0\x03\x01\x02\0\x03\x12\x03U+,\n\xfa\x02\n\x08\x04\0\x03\ - \0\x03\x01\x02\x01\x12\x03]\x06-\x1a\xe8\x02\x20Corresponds\x20to\x20the\ - \x20`AVAILABLE_PACKAGE`\x20inventory\x20item\x20on\x20the\x20VM.\n\x20If\ - \x20the\x20vulnerability\x20report\x20was\x20not\x20updated\x20after\x20\ - the\x20VM\x20inventory\n\x20update,\x20these\x20values\x20might\x20not\ - \x20display\x20in\x20VM\x20inventory.\x20If\x20there\x20is\x20no\n\x20av\ - ailable\x20fix,\x20the\x20field\x20is\x20empty.\x20The\x20`inventory_ite\ - m`\x20value\x20specifies\n\x20the\x20latest\x20`SoftwarePackage`\x20avai\ - lable\x20to\x20the\x20VM\x20that\x20fixes\x20the\n\x20vulnerability.\n\n\ - \x10\n\t\x04\0\x03\0\x03\x01\x02\x01\x05\x12\x03]\x06\x0c\n\x10\n\t\x04\ - \0\x03\0\x03\x01\x02\x01\x01\x12\x03]\r(\n\x10\n\t\x04\0\x03\0\x03\x01\ - \x02\x01\x03\x12\x03]+,\n\x86\x01\n\x08\x04\0\x03\0\x03\x01\x02\x02\x12\ - \x03a\x06\x1f\x1au\x20The\x20recommended\x20[CPE\x20URI](https://cpe.mit\ - re.org/specification/)\x20update\n\x20that\x20contains\x20a\x20fix\x20fo\ - r\x20this\x20vulnerability.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x05\ - \x12\x03a\x06\x0c\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x01\x12\x03a\r\ - \x1a\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x02\x03\x12\x03a\x1d\x1e\nV\n\x08\ - \x04\0\x03\0\x03\x01\x02\x03\x12\x03d\x06\x1e\x1aE\x20The\x20upstream\ - \x20OS\x20patch,\x20packages\x20or\x20KB\x20that\x20fixes\x20the\x20vuln\ - erability.\n\n\x10\n\t\x04\0\x03\0\x03\x01\x02\x03\x05\x12\x03d\x06\x0c\ - \n\x10\n\t\x04\0\x03\0\x03\x01\x02\x03\x01\x12\x03d\r\x19\n\x10\n\t\x04\ - \0\x03\0\x03\x01\x02\x03\x03\x12\x03d\x1c\x1d\n]\n\x06\x04\0\x03\0\x02\0\ - \x12\x03i\x04\x18\x1aN\x20Contains\x20metadata\x20as\x20per\x20the\x20up\ - stream\x20feed\x20of\x20the\x20operating\x20system\x20and\n\x20NVD.\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03i\x04\x0b\n\x0e\n\x07\x04\0\x03\ - \0\x02\0\x01\x12\x03i\x0c\x13\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03i\ - \x16\x17\n\xc4\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03p\x04I\x1a\xb4\x02\ - \x20Corresponds\x20to\x20the\x20`INSTALLED_PACKAGE`\x20inventory\x20item\ - \x20on\x20the\x20VM.\n\x20This\x20field\x20displays\x20the\x20inventory\ - \x20items\x20affected\x20by\x20this\x20vulnerability.\n\x20If\x20the\x20\ - vulnerability\x20report\x20was\x20not\x20updated\x20after\x20the\x20VM\ - \x20inventory\n\x20update,\x20these\x20values\x20might\x20not\x20display\ - \x20in\x20VM\x20inventory.\x20For\x20some\x20distros,\n\x20this\x20field\ - \x20may\x20be\x20empty.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03p\ - \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03p\r\x13\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x01\x12\x03p\x140\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x03p34\n\x0e\n\x07\x04\0\x03\0\x02\x01\x08\x12\x03p5H\n\x0f\n\ - \x08\x04\0\x03\0\x02\x01\x08\x03\x12\x03p6G\n\xf8\x02\n\x06\x04\0\x03\0\ - \x02\x02\x12\x03x\x04I\x1a\xe8\x02\x20Corresponds\x20to\x20the\x20`AVAIL\ - ABLE_PACKAGE`\x20inventory\x20item\x20on\x20the\x20VM.\n\x20If\x20the\ - \x20vulnerability\x20report\x20was\x20not\x20updated\x20after\x20the\x20\ - VM\x20inventory\n\x20update,\x20these\x20values\x20might\x20not\x20displ\ - ay\x20in\x20VM\x20inventory.\x20If\x20there\x20is\x20no\n\x20available\ - \x20fix,\x20the\x20field\x20is\x20empty.\x20The\x20`inventory_item`\x20v\ - alue\x20specifies\n\x20the\x20latest\x20`SoftwarePackage`\x20available\ - \x20to\x20the\x20VM\x20that\x20fixes\x20the\n\x20vulnerability.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x02\x04\x12\x03x\x04\x0c\n\x0e\n\x07\x04\0\x03\0\ - \x02\x02\x05\x12\x03x\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03x\ - \x140\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03x34\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x08\x12\x03x5H\n\x0f\n\x08\x04\0\x03\0\x02\x02\x08\x03\ - \x12\x03x6G\nM\n\x06\x04\0\x03\0\x02\x03\x12\x03{\x04.\x1a>\x20The\x20ti\ - mestamp\x20for\x20when\x20the\x20vulnerability\x20was\x20first\x20detect\ - ed.\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x06\x12\x03{\x04\x1d\n\x0e\n\x07\ - \x04\0\x03\0\x02\x03\x01\x12\x03{\x1e)\n\x0e\n\x07\x04\0\x03\0\x02\x03\ - \x03\x12\x03{,-\nL\n\x06\x04\0\x03\0\x02\x04\x12\x03~\x04.\x1a=\x20The\ - \x20timestamp\x20for\x20when\x20the\x20vulnerability\x20was\x20last\x20m\ - odified.\n\n\x0e\n\x07\x04\0\x03\0\x02\x04\x06\x12\x03~\x04\x1d\n\x0e\n\ - \x07\x04\0\x03\0\x02\x04\x01\x12\x03~\x1e)\n\x0e\n\x07\x04\0\x03\0\x02\ - \x04\x03\x12\x03~,-\n>\n\x06\x04\0\x03\0\x02\x05\x12\x04\x81\x01\x04\x1c\ - \x1a.\x20List\x20of\x20items\x20affected\x20by\x20the\x20vulnerability.\ - \n\n\x0f\n\x07\x04\0\x03\0\x02\x05\x04\x12\x04\x81\x01\x04\x0c\n\x0f\n\ - \x07\x04\0\x03\0\x02\x05\x06\x12\x04\x81\x01\r\x11\n\x0f\n\x07\x04\0\x03\ - \0\x02\x05\x01\x12\x04\x81\x01\x12\x17\n\x0f\n\x07\x04\0\x03\0\x02\x05\ - \x03\x12\x04\x81\x01\x1a\x1b\n\xb2\x01\n\x04\x04\0\x02\0\x12\x04\x88\x01\ - \x02>\x1a\xa3\x01\x20Output\x20only.\x20The\x20`vulnerabilityReport`\x20\ - API\x20resource\x20name.\n\n\x20Format:\n\x20`projects/{project_number}/\ - locations/{location}/instances/{instance_id}/vulnerabilityReport`\n\n\r\ - \n\x05\x04\0\x02\0\x05\x12\x04\x88\x01\x02\x08\n\r\n\x05\x04\0\x02\0\x01\ - \x12\x04\x88\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x88\x01\x10\x11\n\ - \r\n\x05\x04\0\x02\0\x08\x12\x04\x88\x01\x12=\n\x10\n\x08\x04\0\x02\0\ - \x08\x9c\x08\0\x12\x04\x88\x01\x13<\nF\n\x04\x04\0\x02\x01\x12\x04\x8b\ - \x01\x02Y\x1a8\x20Output\x20only.\x20List\x20of\x20vulnerabilities\x20af\ - fecting\x20the\x20VM.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x8b\x01\x02\ - \n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x8b\x01\x0b\x18\n\r\n\x05\x04\0\ - \x02\x01\x01\x12\x04\x8b\x01\x19(\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\ - \x8b\x01+,\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\x8b\x01-X\n\x10\n\x08\x04\ - \0\x02\x01\x08\x9c\x08\0\x12\x04\x8b\x01.W\nl\n\x04\x04\0\x02\x02\x12\ - \x04\x8f\x01\x02X\x1a^\x20Output\x20only.\x20The\x20timestamp\x20for\x20\ - when\x20the\x20last\x20vulnerability\x20report\x20was\x20generated\x20fo\ - r\x20the\n\x20VM.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8f\x01\x02\x1b\ - \n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x8f\x01\x1c'\n\r\n\x05\x04\0\x02\ - \x02\x03\x12\x04\x8f\x01*+\n\r\n\x05\x04\0\x02\x02\x08\x12\x04\x8f\x01,W\ - \n\x10\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x04\x8f\x01-V\n\\\n\x02\x04\ - \x01\x12\x06\x93\x01\0\xa2\x01\x01\x1aN\x20A\x20request\x20message\x20fo\ - r\x20getting\x20the\x20vulnerability\x20report\x20for\x20the\x20specifie\ - d\x20VM.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x93\x01\x08%\n\xd0\x02\n\x04\ - \x04\x01\x02\0\x12\x06\x9c\x01\x02\xa1\x01\x04\x1a\xbf\x02\x20Required.\ - \x20API\x20resource\x20name\x20for\x20vulnerability\x20resource.\n\n\x20\ - Format:\n\x20`projects/{project}/locations/{location}/instances/{instanc\ - e}/vulnerabilityReport`\n\n\x20For\x20`{project}`,\x20either\x20`project\ - -number`\x20or\x20`project-id`\x20can\x20be\x20provided.\n\x20For\x20`{i\ - nstance}`,\x20either\x20Compute\x20Engine\x20`instance-id`\x20or\x20`ins\ - tance-name`\n\x20can\x20be\x20provided.\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\x9c\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x9c\x01\t\r\ - \n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x9c\x01\x10\x11\n\x0f\n\x05\x04\x01\ - \x02\0\x08\x12\x06\x9c\x01\x12\xa1\x01\x03\n\x10\n\x08\x04\x01\x02\0\x08\ - \x9c\x08\0\x12\x04\x9d\x01\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\ - \x12\x06\x9e\x01\x04\xa0\x01\x05\nt\n\x02\x04\x02\x12\x06\xa6\x01\0\xbe\ - \x01\x01\x1af\x20A\x20request\x20message\x20for\x20listing\x20vulnerabil\ - ity\x20reports\x20for\x20all\x20VM\x20instances\x20in\n\x20the\x20specif\ - ied\x20location.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa6\x01\x08'\n\xc2\ - \x01\n\x04\x04\x02\x02\0\x12\x06\xac\x01\x02\xb1\x01\x04\x1a\xb1\x01\x20\ - Required.\x20The\x20parent\x20resource\x20name.\n\n\x20Format:\x20`proje\ - cts/{project}/locations/{location}/instances/-`\n\n\x20For\x20`{project}\ - `,\x20either\x20`project-number`\x20or\x20`project-id`\x20can\x20be\x20p\ - rovided.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xac\x01\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xac\x01\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\xac\x01\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xac\x01\x14\ - \xb1\x01\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xad\x01\x04\ - *\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\xae\x01\x04\xb0\x01\x05\ - \n8\n\x04\x04\x02\x02\x01\x12\x04\xb4\x01\x02\x16\x1a*\x20The\x20maximum\ - \x20number\x20of\x20results\x20to\x20return.\n\n\r\n\x05\x04\x02\x02\x01\ - \x05\x12\x04\xb4\x01\x02\x07\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb4\ - \x01\x08\x11\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb4\x01\x14\x15\n\x99\ - \x01\n\x04\x04\x02\x02\x02\x12\x04\xb9\x01\x02\x18\x1a\x8a\x01\x20A\x20p\ - agination\x20token\x20returned\x20from\x20a\x20previous\x20call\x20to\n\ - \x20`ListVulnerabilityReports`\x20that\x20indicates\x20where\x20this\x20\ - listing\n\x20should\x20continue\x20from.\n\n\r\n\x05\x04\x02\x02\x02\x05\ - \x12\x04\xb9\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xb9\x01\t\ - \x13\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb9\x01\x16\x17\n\x99\x01\n\ - \x04\x04\x02\x02\x03\x12\x04\xbd\x01\x02\x14\x1a\x8a\x01\x20If\x20provid\ - ed,\x20this\x20field\x20specifies\x20the\x20criteria\x20that\x20must\x20\ - be\x20met\x20by\x20a\n\x20`vulnerabilityReport`\x20API\x20resource\x20to\ - \x20be\x20included\x20in\x20the\x20response.\n\n\r\n\x05\x04\x02\x02\x03\ - \x05\x12\x04\xbd\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xbd\ - \x01\t\x0f\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbd\x01\x12\x13\nu\n\ - \x02\x04\x03\x12\x06\xc2\x01\0\xc9\x01\x01\x1ag\x20A\x20response\x20mess\ - age\x20for\x20listing\x20vulnerability\x20reports\x20for\x20all\x20VM\ - \x20instances\x20in\n\x20the\x20specified\x20location.\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\xc2\x01\x08(\n4\n\x04\x04\x03\x02\0\x12\x04\xc4\x01\x02\ - 9\x1a&\x20List\x20of\x20vulnerabilityReport\x20objects.\n\n\r\n\x05\x04\ - \x03\x02\0\x04\x12\x04\xc4\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\ - \xc4\x01\x0b\x1e\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc4\x01\x1f4\n\r\n\ - \x05\x04\x03\x02\0\x03\x12\x04\xc4\x0178\n_\n\x04\x04\x03\x02\x01\x12\ - \x04\xc8\x01\x02\x1d\x1aQ\x20The\x20pagination\x20token\x20to\x20retriev\ - e\x20the\x20next\x20page\x20of\x20vulnerabilityReports\n\x20object.\n\n\ - \r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc8\x01\x02\x08\n\r\n\x05\x04\x03\ - \x02\x01\x01\x12\x04\xc8\x01\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\ - \xc8\x01\x1b\x1c\n\x82\x01\n\x02\x04\x04\x12\x06\xcd\x01\0\xec\x02\x01\ - \x1at\x20Common\x20Vulnerability\x20Scoring\x20System\x20version\x203.\n\ - \x20For\x20details,\x20see\x20https://www.first.org/cvss/specification-d\ - ocument\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xcd\x01\x08\x0e\nd\n\x04\x04\ - \x04\x04\0\x12\x06\xd0\x01\x02\xe4\x01\x03\x1aT\x20This\x20metric\x20ref\ - lects\x20the\x20context\x20by\x20which\x20vulnerability\x20exploitation\ - \x20is\n\x20possible.\n\n\r\n\x05\x04\x04\x04\0\x01\x12\x04\xd0\x01\x07\ - \x13\n\x20\n\x06\x04\x04\x04\0\x02\0\x12\x04\xd2\x01\x04\"\x1a\x10\x20In\ - valid\x20value.\n\n\x0f\n\x07\x04\x04\x04\0\x02\0\x01\x12\x04\xd2\x01\ - \x04\x1d\n\x0f\n\x07\x04\x04\x04\0\x02\0\x02\x12\x04\xd2\x01\x20!\n\xc5\ - \x01\n\x06\x04\x04\x04\0\x02\x01\x12\x04\xd7\x01\x04\x1e\x1a\xb4\x01\x20\ - The\x20vulnerable\x20component\x20is\x20bound\x20to\x20the\x20network\ - \x20stack\x20and\x20the\x20set\x20of\n\x20possible\x20attackers\x20exten\ - ds\x20beyond\x20the\x20other\x20options\x20listed\x20below,\x20up\x20to\ - \n\x20and\x20including\x20the\x20entire\x20Internet.\n\n\x0f\n\x07\x04\ - \x04\x04\0\x02\x01\x01\x12\x04\xd7\x01\x04\x19\n\x0f\n\x07\x04\x04\x04\0\ - \x02\x01\x02\x12\x04\xd7\x01\x1c\x1d\n\x9d\x01\n\x06\x04\x04\x04\0\x02\ - \x02\x12\x04\xdb\x01\x04\x1f\x1a\x8c\x01\x20The\x20vulnerable\x20compone\ - nt\x20is\x20bound\x20to\x20the\x20network\x20stack,\x20but\x20the\x20att\ - ack\x20is\n\x20limited\x20at\x20the\x20protocol\x20level\x20to\x20a\x20l\ - ogically\x20adjacent\x20topology.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\ - \x01\x12\x04\xdb\x01\x04\x1a\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\x12\ - \x04\xdb\x01\x1d\x1e\n\x8d\x01\n\x06\x04\x04\x04\0\x02\x03\x12\x04\xdf\ - \x01\x04\x1c\x1a}\x20The\x20vulnerable\x20component\x20is\x20not\x20boun\ - d\x20to\x20the\x20network\x20stack\x20and\x20the\n\x20attacker's\x20path\ - \x20is\x20via\x20read/write/execute\x20capabilities.\n\n\x0f\n\x07\x04\ - \x04\x04\0\x02\x03\x01\x12\x04\xdf\x01\x04\x17\n\x0f\n\x07\x04\x04\x04\0\ - \x02\x03\x02\x12\x04\xdf\x01\x1a\x1b\no\n\x06\x04\x04\x04\0\x02\x04\x12\ - \x04\xe3\x01\x04\x1f\x1a_\x20The\x20attack\x20requires\x20the\x20attacke\ - r\x20to\x20physically\x20touch\x20or\x20manipulate\x20the\n\x20vulnerabl\ - e\x20component.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x01\x12\x04\xe3\x01\ - \x04\x1a\n\x0f\n\x07\x04\x04\x04\0\x02\x04\x02\x12\x04\xe3\x01\x1d\x1e\n\ - \x8c\x01\n\x04\x04\x04\x04\x01\x12\x06\xe8\x01\x02\xf7\x01\x03\x1a|\x20T\ - his\x20metric\x20describes\x20the\x20conditions\x20beyond\x20the\x20atta\ - cker's\x20control\x20that\n\x20must\x20exist\x20in\x20order\x20to\x20exp\ - loit\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\x04\x01\x01\x12\x04\ - \xe8\x01\x07\x17\n\x20\n\x06\x04\x04\x04\x01\x02\0\x12\x04\xea\x01\x04&\ - \x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\0\x01\ - \x12\x04\xea\x01\x04!\n\x0f\n\x07\x04\x04\x04\x01\x02\0\x02\x12\x04\xea\ - \x01$%\n\xb0\x01\n\x06\x04\x04\x04\x01\x02\x01\x12\x04\xef\x01\x04\x1e\ - \x1a\x9f\x01\x20Specialized\x20access\x20conditions\x20or\x20extenuating\ - \x20circumstances\x20do\x20not\x20exist.\n\x20An\x20attacker\x20can\x20e\ - xpect\x20repeatable\x20success\x20when\x20attacking\x20the\x20vulnerable\ - \n\x20component.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\x01\x12\x04\xef\ - \x01\x04\x19\n\x0f\n\x07\x04\x04\x04\x01\x02\x01\x02\x12\x04\xef\x01\x1c\ - \x1d\n\xcd\x02\n\x06\x04\x04\x04\x01\x02\x02\x12\x04\xf6\x01\x04\x1f\x1a\ - \xbc\x02\x20A\x20successful\x20attack\x20depends\x20on\x20conditions\x20\ - beyond\x20the\x20attacker's\x20control.\n\x20That\x20is,\x20a\x20success\ - ful\x20attack\x20cannot\x20be\x20accomplished\x20at\x20will,\x20but\x20r\ - equires\n\x20the\x20attacker\x20to\x20invest\x20in\x20some\x20measurable\ - \x20amount\x20of\x20effort\x20in\x20preparation\n\x20or\x20execution\x20\ - against\x20the\x20vulnerable\x20component\x20before\x20a\x20successful\ - \x20attack\n\x20can\x20be\x20expected.\n\n\x0f\n\x07\x04\x04\x04\x01\x02\ - \x02\x01\x12\x04\xf6\x01\x04\x1a\n\x0f\n\x07\x04\x04\x04\x01\x02\x02\x02\ - \x12\x04\xf6\x01\x1d\x1e\n\x8b\x01\n\x04\x04\x04\x04\x02\x12\x06\xfb\x01\ - \x02\x8e\x02\x03\x1a{\x20This\x20metric\x20describes\x20the\x20level\x20\ - of\x20privileges\x20an\x20attacker\x20must\x20possess\n\x20before\x20suc\ - cessfully\x20exploiting\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\x04\ - \x02\x01\x12\x04\xfb\x01\x07\x19\n\x20\n\x06\x04\x04\x04\x02\x02\0\x12\ - \x04\xfd\x01\x04(\x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\x04\x04\x04\ - \x02\x02\0\x01\x12\x04\xfd\x01\x04#\n\x0f\n\x07\x04\x04\x04\x02\x02\0\ - \x02\x12\x04\xfd\x01&'\n\xb2\x01\n\x06\x04\x04\x04\x02\x02\x01\x12\x04\ - \x82\x02\x04!\x1a\xa1\x01\x20The\x20attacker\x20is\x20unauthorized\x20pr\ - ior\x20to\x20attack,\x20and\x20therefore\x20does\x20not\n\x20require\x20\ - any\x20access\x20to\x20settings\x20or\x20files\x20of\x20the\x20vulnerabl\ - e\x20system\x20to\n\x20carry\x20out\x20an\x20attack.\n\n\x0f\n\x07\x04\ - \x04\x04\x02\x02\x01\x01\x12\x04\x82\x02\x04\x1c\n\x0f\n\x07\x04\x04\x04\ - \x02\x02\x01\x02\x12\x04\x82\x02\x1f\x20\n\x86\x02\n\x06\x04\x04\x04\x02\ - \x02\x02\x12\x04\x88\x02\x04\x20\x1a\xf5\x01\x20The\x20attacker\x20requi\ - res\x20privileges\x20that\x20provide\x20basic\x20user\x20capabilities\n\ - \x20that\x20could\x20normally\x20affect\x20only\x20settings\x20and\x20fi\ - les\x20owned\x20by\x20a\x20user.\n\x20Alternatively,\x20an\x20attacker\ - \x20with\x20Low\x20privileges\x20has\x20the\x20ability\x20to\x20access\n\ - \x20only\x20non-sensitive\x20resources.\n\n\x0f\n\x07\x04\x04\x04\x02\ - \x02\x02\x01\x12\x04\x88\x02\x04\x1b\n\x0f\n\x07\x04\x04\x04\x02\x02\x02\ - \x02\x12\x04\x88\x02\x1e\x1f\n\xc1\x01\n\x06\x04\x04\x04\x02\x02\x03\x12\ - \x04\x8d\x02\x04!\x1a\xb0\x01\x20The\x20attacker\x20requires\x20privileg\ - es\x20that\x20provide\x20significant\x20(e.g.,\n\x20administrative)\x20c\ - ontrol\x20over\x20the\x20vulnerable\x20component\x20allowing\x20access\ - \x20to\n\x20component-wide\x20settings\x20and\x20files.\n\n\x0f\n\x07\ - \x04\x04\x04\x02\x02\x03\x01\x12\x04\x8d\x02\x04\x1c\n\x0f\n\x07\x04\x04\ - \x04\x02\x02\x03\x02\x12\x04\x8d\x02\x1f\x20\n\xad\x01\n\x04\x04\x04\x04\ - \x03\x12\x06\x93\x02\x02\x9d\x02\x03\x1a\x9c\x01\x20This\x20metric\x20ca\ - ptures\x20the\x20requirement\x20for\x20a\x20human\x20user,\x20other\x20t\ - han\x20the\n\x20attacker,\x20to\x20participate\x20in\x20the\x20successfu\ - l\x20compromise\x20of\x20the\x20vulnerable\n\x20component.\n\n\r\n\x05\ - \x04\x04\x04\x03\x01\x12\x04\x93\x02\x07\x16\n\x20\n\x06\x04\x04\x04\x03\ - \x02\0\x12\x04\x95\x02\x04%\x1a\x10\x20Invalid\x20value.\n\n\x0f\n\x07\ - \x04\x04\x04\x03\x02\0\x01\x12\x04\x95\x02\x04\x20\n\x0f\n\x07\x04\x04\ - \x04\x03\x02\0\x02\x12\x04\x95\x02#$\n[\n\x06\x04\x04\x04\x03\x02\x01\ - \x12\x04\x98\x02\x04\x1e\x1aK\x20The\x20vulnerable\x20system\x20can\x20b\ - e\x20exploited\x20without\x20interaction\x20from\x20any\x20user.\n\n\x0f\ - \n\x07\x04\x04\x04\x03\x02\x01\x01\x12\x04\x98\x02\x04\x19\n\x0f\n\x07\ - \x04\x04\x04\x03\x02\x01\x02\x12\x04\x98\x02\x1c\x1d\n\x8f\x01\n\x06\x04\ - \x04\x04\x03\x02\x02\x12\x04\x9c\x02\x04\"\x1a\x7f\x20Successful\x20expl\ - oitation\x20of\x20this\x20vulnerability\x20requires\x20a\x20user\x20to\ - \x20take\n\x20some\x20action\x20before\x20the\x20vulnerability\x20can\ - \x20be\x20exploited.\n\n\x0f\n\x07\x04\x04\x04\x03\x02\x02\x01\x12\x04\ - \x9c\x02\x04\x1d\n\x0f\n\x07\x04\x04\x04\x03\x02\x02\x02\x12\x04\x9c\x02\ - \x20!\n\x9c\x01\n\x04\x04\x04\x04\x04\x12\x06\xa1\x02\x02\xac\x02\x03\ - \x1a\x8b\x01\x20The\x20Scope\x20metric\x20captures\x20whether\x20a\x20vu\ - lnerability\x20in\x20one\x20vulnerable\n\x20component\x20impacts\x20reso\ - urces\x20in\x20components\x20beyond\x20its\x20security\x20scope.\n\n\r\n\ - \x05\x04\x04\x04\x04\x01\x12\x04\xa1\x02\x07\x0c\n\x20\n\x06\x04\x04\x04\ - \x04\x02\0\x12\x04\xa3\x02\x04\x1a\x1a\x10\x20Invalid\x20value.\n\n\x0f\ - \n\x07\x04\x04\x04\x04\x02\0\x01\x12\x04\xa3\x02\x04\x15\n\x0f\n\x07\x04\ - \x04\x04\x04\x02\0\x02\x12\x04\xa3\x02\x18\x19\no\n\x06\x04\x04\x04\x04\ - \x02\x01\x12\x04\xa7\x02\x04\x18\x1a_\x20An\x20exploited\x20vulnerabilit\ - y\x20can\x20only\x20affect\x20resources\x20managed\x20by\x20the\x20same\ - \n\x20security\x20authority.\n\n\x0f\n\x07\x04\x04\x04\x04\x02\x01\x01\ - \x12\x04\xa7\x02\x04\x13\n\x0f\n\x07\x04\x04\x04\x04\x02\x01\x02\x12\x04\ - \xa7\x02\x16\x17\n\x9c\x01\n\x06\x04\x04\x04\x04\x02\x02\x12\x04\xab\x02\ - \x04\x16\x1a\x8b\x01\x20An\x20exploited\x20vulnerability\x20can\x20affec\ - t\x20resources\x20beyond\x20the\x20security\x20scope\n\x20managed\x20by\ - \x20the\x20security\x20authority\x20of\x20the\x20vulnerable\x20component\ - .\n\n\x0f\n\x07\x04\x04\x04\x04\x02\x02\x01\x12\x04\xab\x02\x04\x11\n\ - \x0f\n\x07\x04\x04\x04\x04\x02\x02\x02\x12\x04\xab\x02\x14\x15\n\xd7\x01\ - \n\x04\x04\x04\x04\x05\x12\x06\xb1\x02\x02\xbd\x02\x03\x1a\xc6\x01\x20Th\ - e\x20Impact\x20metrics\x20capture\x20the\x20effects\x20of\x20a\x20succes\ - sfully\x20exploited\n\x20vulnerability\x20on\x20the\x20component\x20that\ - \x20suffers\x20the\x20worst\x20outcome\x20that\x20is\x20most\n\x20direct\ - ly\x20and\x20predictably\x20associated\x20with\x20the\x20attack.\n\n\r\n\ - \x05\x04\x04\x04\x05\x01\x12\x04\xb1\x02\x07\r\n\x20\n\x06\x04\x04\x04\ - \x05\x02\0\x12\x04\xb3\x02\x04\x1b\x1a\x10\x20Invalid\x20value.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\0\x01\x12\x04\xb3\x02\x04\x16\n\x0f\n\x07\x04\ - \x04\x04\x05\x02\0\x02\x12\x04\xb3\x02\x19\x1a\n\x1e\n\x06\x04\x04\x04\ - \x05\x02\x01\x12\x04\xb6\x02\x04\x14\x1a\x0e\x20High\x20impact.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\x01\x01\x12\x04\xb6\x02\x04\x0f\n\x0f\n\x07\ - \x04\x04\x04\x05\x02\x01\x02\x12\x04\xb6\x02\x12\x13\n\x1d\n\x06\x04\x04\ - \x04\x05\x02\x02\x12\x04\xb9\x02\x04\x13\x1a\r\x20Low\x20impact.\n\n\x0f\ - \n\x07\x04\x04\x04\x05\x02\x02\x01\x12\x04\xb9\x02\x04\x0e\n\x0f\n\x07\ - \x04\x04\x04\x05\x02\x02\x02\x12\x04\xb9\x02\x11\x12\n\x1c\n\x06\x04\x04\ - \x04\x05\x02\x03\x12\x04\xbc\x02\x04\x14\x1a\x0c\x20No\x20impact.\n\n\ - \x0f\n\x07\x04\x04\x04\x05\x02\x03\x01\x12\x04\xbc\x02\x04\x0f\n\x0f\n\ - \x07\x04\x04\x04\x05\x02\x03\x02\x12\x04\xbc\x02\x12\x13\n\x87\x01\n\x04\ - \x04\x04\x02\0\x12\x04\xc1\x02\x02\x17\x1ay\x20The\x20base\x20score\x20i\ - s\x20a\x20function\x20of\x20the\x20base\x20metric\x20scores.\n\x20https:\ - //www.first.org/cvss/specification-document#Base-Metrics\n\n\r\n\x05\x04\ - \x04\x02\0\x05\x12\x04\xc1\x02\x02\x07\n\r\n\x05\x04\x04\x02\0\x01\x12\ - \x04\xc1\x02\x08\x12\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xc1\x02\x15\x16\ - \n\xb6\x01\n\x04\x04\x04\x02\x01\x12\x04\xc6\x02\x02!\x1a\xa7\x01\x20The\ - \x20Exploitability\x20sub-score\x20equation\x20is\x20derived\x20from\x20\ - the\x20Base\n\x20Exploitability\x20metrics.\n\x20https://www.first.org/c\ - vss/specification-document#2-1-Exploitability-Metrics\n\n\r\n\x05\x04\ - \x04\x02\x01\x05\x12\x04\xc6\x02\x02\x07\n\r\n\x05\x04\x04\x02\x01\x01\ - \x12\x04\xc6\x02\x08\x1c\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xc6\x02\ - \x1f\x20\nV\n\x04\x04\x04\x02\x02\x12\x04\xc9\x02\x02\x19\x1aH\x20The\ - \x20Impact\x20sub-score\x20equation\x20is\x20derived\x20from\x20the\x20B\ - ase\x20Impact\x20metrics.\n\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xc9\ - \x02\x02\x07\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xc9\x02\x08\x14\n\r\n\ - \x05\x04\x04\x02\x02\x03\x12\x04\xc9\x02\x17\x18\nb\n\x04\x04\x04\x02\ - \x03\x12\x04\xcd\x02\x02!\x1aT\x20This\x20metric\x20reflects\x20the\x20c\ - ontext\x20by\x20which\x20vulnerability\x20exploitation\x20is\n\x20possib\ - le.\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xcd\x02\x02\x0e\n\r\n\x05\ - \x04\x04\x02\x03\x01\x12\x04\xcd\x02\x0f\x1c\n\r\n\x05\x04\x04\x02\x03\ - \x03\x12\x04\xcd\x02\x1f\x20\n\x8a\x01\n\x04\x04\x04\x02\x04\x12\x04\xd1\ - \x02\x02)\x1a|\x20This\x20metric\x20describes\x20the\x20conditions\x20be\ - yond\x20the\x20attacker's\x20control\x20that\n\x20must\x20exist\x20in\ - \x20order\x20to\x20exploit\x20the\x20vulnerability.\n\n\r\n\x05\x04\x04\ - \x02\x04\x06\x12\x04\xd1\x02\x02\x12\n\r\n\x05\x04\x04\x02\x04\x01\x12\ - \x04\xd1\x02\x13$\n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\xd1\x02'(\n\x89\ - \x01\n\x04\x04\x04\x02\x05\x12\x04\xd5\x02\x02-\x1a{\x20This\x20metric\ - \x20describes\x20the\x20level\x20of\x20privileges\x20an\x20attacker\x20m\ - ust\x20possess\n\x20before\x20successfully\x20exploiting\x20the\x20vulne\ - rability.\n\n\r\n\x05\x04\x04\x02\x05\x06\x12\x04\xd5\x02\x02\x14\n\r\n\ - \x05\x04\x04\x02\x05\x01\x12\x04\xd5\x02\x15(\n\r\n\x05\x04\x04\x02\x05\ - \x03\x12\x04\xd5\x02+,\n\xab\x01\n\x04\x04\x04\x02\x06\x12\x04\xda\x02\ - \x02'\x1a\x9c\x01\x20This\x20metric\x20captures\x20the\x20requirement\ - \x20for\x20a\x20human\x20user,\x20other\x20than\x20the\n\x20attacker,\ - \x20to\x20participate\x20in\x20the\x20successful\x20compromise\x20of\x20\ - the\x20vulnerable\n\x20component.\n\n\r\n\x05\x04\x04\x02\x06\x06\x12\ - \x04\xda\x02\x02\x11\n\r\n\x05\x04\x04\x02\x06\x01\x12\x04\xda\x02\x12\"\ - \n\r\n\x05\x04\x04\x02\x06\x03\x12\x04\xda\x02%&\n\x9a\x01\n\x04\x04\x04\ - \x02\x07\x12\x04\xde\x02\x02\x12\x1a\x8b\x01\x20The\x20Scope\x20metric\ - \x20captures\x20whether\x20a\x20vulnerability\x20in\x20one\x20vulnerable\ - \n\x20component\x20impacts\x20resources\x20in\x20components\x20beyond\ - \x20its\x20security\x20scope.\n\n\r\n\x05\x04\x04\x02\x07\x06\x12\x04\ - \xde\x02\x02\x07\n\r\n\x05\x04\x04\x02\x07\x01\x12\x04\xde\x02\x08\r\n\r\ - \n\x05\x04\x04\x02\x07\x03\x12\x04\xde\x02\x10\x11\n\xb5\x01\n\x04\x04\ - \x04\x02\x08\x12\x04\xe3\x02\x02%\x1a\xa6\x01\x20This\x20metric\x20measu\ - res\x20the\x20impact\x20to\x20the\x20confidentiality\x20of\x20the\x20inf\ - ormation\n\x20resources\x20managed\x20by\x20a\x20software\x20component\ - \x20due\x20to\x20a\x20successfully\x20exploited\n\x20vulnerability.\n\n\ - \r\n\x05\x04\x04\x02\x08\x06\x12\x04\xe3\x02\x02\x08\n\r\n\x05\x04\x04\ - \x02\x08\x01\x12\x04\xe3\x02\t\x1f\n\r\n\x05\x04\x04\x02\x08\x03\x12\x04\ - \xe3\x02\"$\nh\n\x04\x04\x04\x02\t\x12\x04\xe7\x02\x02\x1f\x1aZ\x20This\ - \x20metric\x20measures\x20the\x20impact\x20to\x20integrity\x20of\x20a\ - \x20successfully\x20exploited\n\x20vulnerability.\n\n\r\n\x05\x04\x04\ - \x02\t\x06\x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x04\x02\t\x01\x12\x04\ - \xe7\x02\t\x19\n\r\n\x05\x04\x04\x02\t\x03\x12\x04\xe7\x02\x1c\x1e\n\x96\ - \x01\n\x04\x04\x04\x02\n\x12\x04\xeb\x02\x02\"\x1a\x87\x01\x20This\x20me\ - tric\x20measures\x20the\x20impact\x20to\x20the\x20availability\x20of\x20\ - the\x20impacted\n\x20component\x20resulting\x20from\x20a\x20successfully\ - \x20exploited\x20vulnerability.\n\n\r\n\x05\x04\x04\x02\n\x06\x12\x04\ - \xeb\x02\x02\x08\n\r\n\x05\x04\x04\x02\n\x01\x12\x04\xeb\x02\t\x1c\n\r\n\ - \x05\x04\x04\x02\n\x03\x12\x04\xeb\x02\x1f!b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/empty.rs b/googleapis-raw/src/empty.rs index 5d421b3..3cc9bca 100644 --- a/googleapis-raw/src/empty.rs +++ b/googleapis-raw/src/empty.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,19 +16,21 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `empty.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:grpc.testing.Empty) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Empty { // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:grpc.testing.Empty.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Empty { @@ -40,19 +43,30 @@ impl Empty { pub fn new() -> Empty { ::std::default::Default::default() } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Empty", + fields, + oneofs, + ) + } } impl ::protobuf::Message for Empty { + const NAME: &'static str = "Empty"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -61,82 +75,57 @@ impl ::protobuf::Message for Empty { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Empty { Empty::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Empty", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.special_fields.clear(); } fn default_instance() -> &'static Empty { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Empty::new) + static instance: Empty = Empty { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Empty { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Empty { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Empty").unwrap()).clone() } } -impl ::std::fmt::Debug for Empty { +impl ::std::fmt::Display for Empty { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Empty { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -165,14 +154,31 @@ static file_descriptor_proto_data: &'static [u8] = b"\ oto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Empty::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/iam/v1/iam_policy.rs b/googleapis-raw/src/iam/v1/iam_policy.rs index a7b2b0a..495db96 100644 --- a/googleapis-raw/src/iam/v1/iam_policy.rs +++ b/googleapis-raw/src/iam/v1/iam_policy.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,33 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/iam/v1/iam_policy.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Request message for `SetIamPolicy` method. +// @@protoc_insertion_point(message:google.iam.v1.SetIamPolicyRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SetIamPolicyRequest { // message fields + /// REQUIRED: The resource for which the policy is being specified. + /// See the operation documentation for the appropriate value for this field. + // @@protoc_insertion_point(field:google.iam.v1.SetIamPolicyRequest.resource) pub resource: ::std::string::String, - pub policy: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + // @@protoc_insertion_point(field:google.iam.v1.SetIamPolicyRequest.policy) + pub policy: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.SetIamPolicyRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SetIamPolicyRequest { @@ -45,129 +56,45 @@ impl SetIamPolicyRequest { ::std::default::Default::default() } - // string resource = 1; - - - pub fn get_resource(&self) -> &str { - &self.resource - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - &mut self.resource - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource, ::std::string::String::new()) - } - - // .google.iam.v1.Policy policy = 2; - - - pub fn get_policy(&self) -> &super::policy::Policy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: super::policy::Policy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut super::policy::Policy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> super::policy::Policy { - self.policy.take().unwrap_or_else(|| super::policy::Policy::new()) - } - - // .google.protobuf.FieldMask update_mask = 3; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource", + |m: &SetIamPolicyRequest| { &m.resource }, + |m: &mut SetIamPolicyRequest| { &mut m.resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::policy::Policy>( + "policy", + |m: &SetIamPolicyRequest| { &m.policy }, + |m: &mut SetIamPolicyRequest| { &mut m.policy }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SetIamPolicyRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for SetIamPolicyRequest { + const NAME: &'static str = "SetIamPolicyRequest"; + fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.resource = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.policy)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -176,134 +103,92 @@ impl ::protobuf::Message for SetIamPolicyRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.resource.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.resource); } - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { + if let Some(v) = self.policy.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.resource.is_empty() { os.write_string(1, &self.resource)?; } - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.policy.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SetIamPolicyRequest { SetIamPolicyRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource", - |m: &SetIamPolicyRequest| { &m.resource }, - |m: &mut SetIamPolicyRequest| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &SetIamPolicyRequest| { &m.policy }, - |m: &mut SetIamPolicyRequest| { &mut m.policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &SetIamPolicyRequest| { &m.update_mask }, - |m: &mut SetIamPolicyRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SetIamPolicyRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.resource.clear(); + self.policy.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static SetIamPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SetIamPolicyRequest::new) + static instance: SetIamPolicyRequest = SetIamPolicyRequest { + resource: ::std::string::String::new(), + policy: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SetIamPolicyRequest { - fn clear(&mut self) { - self.resource.clear(); - self.policy.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SetIamPolicyRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SetIamPolicyRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for SetIamPolicyRequest { +impl ::std::fmt::Display for SetIamPolicyRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SetIamPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for `GetIamPolicy` method. +// @@protoc_insertion_point(message:google.iam.v1.GetIamPolicyRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetIamPolicyRequest { // message fields + /// REQUIRED: The resource for which the policy is being requested. + /// See the operation documentation for the appropriate value for this field. + // @@protoc_insertion_point(field:google.iam.v1.GetIamPolicyRequest.resource) pub resource: ::std::string::String, - pub options: ::protobuf::SingularPtrField, + /// OPTIONAL: A `GetPolicyOptions` object for specifying options to + /// `GetIamPolicy`. This field is only used by Cloud IAM. + // @@protoc_insertion_point(field:google.iam.v1.GetIamPolicyRequest.options) + pub options: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.GetIamPolicyRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetIamPolicyRequest { @@ -317,88 +202,45 @@ impl GetIamPolicyRequest { ::std::default::Default::default() } - // string resource = 1; - - - pub fn get_resource(&self) -> &str { - &self.resource - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - &mut self.resource - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource, ::std::string::String::new()) - } - - // .google.iam.v1.GetPolicyOptions options = 2; - - - pub fn get_options(&self) -> &super::options::GetPolicyOptions { - self.options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - pub fn has_options(&self) -> bool { - self.options.is_some() - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: super::options::GetPolicyOptions) { - self.options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_options(&mut self) -> &mut super::options::GetPolicyOptions { - if self.options.is_none() { - self.options.set_default(); - } - self.options.as_mut().unwrap() - } - - // Take field - pub fn take_options(&mut self) -> super::options::GetPolicyOptions { - self.options.take().unwrap_or_else(|| super::options::GetPolicyOptions::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource", + |m: &GetIamPolicyRequest| { &m.resource }, + |m: &mut GetIamPolicyRequest| { &mut m.resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::options::GetPolicyOptions>( + "options", + |m: &GetIamPolicyRequest| { &m.options }, + |m: &mut GetIamPolicyRequest| { &mut m.options }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetIamPolicyRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetIamPolicyRequest { + const NAME: &'static str = "GetIamPolicyRequest"; + fn is_initialized(&self) -> bool { - for v in &self.options { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.resource = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.options)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -407,119 +249,94 @@ impl ::protobuf::Message for GetIamPolicyRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.resource.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.resource); } - if let Some(ref v) = self.options.as_ref() { + if let Some(v) = self.options.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.resource.is_empty() { os.write_string(1, &self.resource)?; } - if let Some(ref v) = self.options.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.options.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetIamPolicyRequest { GetIamPolicyRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource", - |m: &GetIamPolicyRequest| { &m.resource }, - |m: &mut GetIamPolicyRequest| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "options", - |m: &GetIamPolicyRequest| { &m.options }, - |m: &mut GetIamPolicyRequest| { &mut m.options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetIamPolicyRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.resource.clear(); + self.options.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetIamPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetIamPolicyRequest::new) + static instance: GetIamPolicyRequest = GetIamPolicyRequest { + resource: ::std::string::String::new(), + options: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetIamPolicyRequest { - fn clear(&mut self) { - self.resource.clear(); - self.options.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetIamPolicyRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetIamPolicyRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetIamPolicyRequest { +impl ::std::fmt::Display for GetIamPolicyRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetIamPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request message for `TestIamPermissions` method. +// @@protoc_insertion_point(message:google.iam.v1.TestIamPermissionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TestIamPermissionsRequest { // message fields + /// REQUIRED: The resource for which the policy detail is being requested. + /// See the operation documentation for the appropriate value for this field. + // @@protoc_insertion_point(field:google.iam.v1.TestIamPermissionsRequest.resource) pub resource: ::std::string::String, - pub permissions: ::protobuf::RepeatedField<::std::string::String>, + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + // @@protoc_insertion_point(field:google.iam.v1.TestIamPermissionsRequest.permissions) + pub permissions: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.TestIamPermissionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TestIamPermissionsRequest { @@ -533,75 +350,45 @@ impl TestIamPermissionsRequest { ::std::default::Default::default() } - // string resource = 1; - - - pub fn get_resource(&self) -> &str { - &self.resource - } - pub fn clear_resource(&mut self) { - self.resource.clear(); - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.resource = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - &mut self.resource - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource, ::std::string::String::new()) - } - - // repeated string permissions = 2; - - - pub fn get_permissions(&self) -> &[::std::string::String] { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.permissions = v; - } - - // Mutable pointer to the field. - pub fn mut_permissions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.permissions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource", + |m: &TestIamPermissionsRequest| { &m.resource }, + |m: &mut TestIamPermissionsRequest| { &mut m.resource }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "permissions", + |m: &TestIamPermissionsRequest| { &m.permissions }, + |m: &mut TestIamPermissionsRequest| { &mut m.permissions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TestIamPermissionsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for TestIamPermissionsRequest { + const NAME: &'static str = "TestIamPermissionsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.resource = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.permissions)?; + 18 => { + self.permissions.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -610,7 +397,7 @@ impl ::protobuf::Message for TestIamPermissionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.resource.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.resource); @@ -618,107 +405,79 @@ impl ::protobuf::Message for TestIamPermissionsRequest { for value in &self.permissions { my_size += ::protobuf::rt::string_size(2, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.resource.is_empty() { os.write_string(1, &self.resource)?; } for v in &self.permissions { os.write_string(2, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TestIamPermissionsRequest { TestIamPermissionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource", - |m: &TestIamPermissionsRequest| { &m.resource }, - |m: &mut TestIamPermissionsRequest| { &mut m.resource }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &TestIamPermissionsRequest| { &m.permissions }, - |m: &mut TestIamPermissionsRequest| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TestIamPermissionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.resource.clear(); + self.permissions.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static TestIamPermissionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TestIamPermissionsRequest::new) + static instance: TestIamPermissionsRequest = TestIamPermissionsRequest { + resource: ::std::string::String::new(), + permissions: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TestIamPermissionsRequest { - fn clear(&mut self) { - self.resource.clear(); - self.permissions.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TestIamPermissionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TestIamPermissionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for TestIamPermissionsRequest { +impl ::std::fmt::Display for TestIamPermissionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TestIamPermissionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response message for `TestIamPermissions` method. +// @@protoc_insertion_point(message:google.iam.v1.TestIamPermissionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TestIamPermissionsResponse { // message fields - pub permissions: ::protobuf::RepeatedField<::std::string::String>, + /// A subset of `TestPermissionsRequest.permissions` that the caller is + /// allowed. + // @@protoc_insertion_point(field:google.iam.v1.TestIamPermissionsResponse.permissions) + pub permissions: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.TestIamPermissionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TestIamPermissionsResponse { @@ -732,46 +491,37 @@ impl TestIamPermissionsResponse { ::std::default::Default::default() } - // repeated string permissions = 1; - - - pub fn get_permissions(&self) -> &[::std::string::String] { - &self.permissions - } - pub fn clear_permissions(&mut self) { - self.permissions.clear(); - } - - // Param is passed by value, moved - pub fn set_permissions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.permissions = v; - } - - // Mutable pointer to the field. - pub fn mut_permissions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.permissions - } - - // Take field - pub fn take_permissions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.permissions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "permissions", + |m: &TestIamPermissionsResponse| { &m.permissions }, + |m: &mut TestIamPermissionsResponse| { &mut m.permissions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TestIamPermissionsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for TestIamPermissionsResponse { + const NAME: &'static str = "TestIamPermissionsResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.permissions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.permissions.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -780,272 +530,258 @@ impl ::protobuf::Message for TestIamPermissionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.permissions { my_size += ::protobuf::rt::string_size(1, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.permissions { os.write_string(1, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TestIamPermissionsResponse { TestIamPermissionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "permissions", - |m: &TestIamPermissionsResponse| { &m.permissions }, - |m: &mut TestIamPermissionsResponse| { &mut m.permissions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TestIamPermissionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.permissions.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static TestIamPermissionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TestIamPermissionsResponse::new) + static instance: TestIamPermissionsResponse = TestIamPermissionsResponse { + permissions: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TestIamPermissionsResponse { - fn clear(&mut self) { - self.permissions.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TestIamPermissionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TestIamPermissionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for TestIamPermissionsResponse { +impl ::std::fmt::Display for TestIamPermissionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TestIamPermissionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1egoogle/iam/v1/iam_policy.proto\x12\rgoogle.iam.v1\x1a\x1cgoogle/ap\ - i/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/fie\ - ld_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/iam/v1/\ - options.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x20google/protobuf/f\ - ield_mask.proto\"\xad\x01\n\x13SetIamPolicyRequest\x12%\n\x08resource\ - \x18\x01\x20\x01(\tR\x08resourceB\t\xfaA\x03\n\x01*\xe0A\x02\x122\n\x06p\ - olicy\x18\x02\x20\x01(\x0b2\x15.google.iam.v1.PolicyR\x06policyB\x03\xe0\ - A\x02\x12;\n\x0bupdate_mask\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Fi\ - eldMaskR\nupdateMask\"w\n\x13GetIamPolicyRequest\x12%\n\x08resource\x18\ - \x01\x20\x01(\tR\x08resourceB\t\xfaA\x03\n\x01*\xe0A\x02\x129\n\x07optio\ - ns\x18\x02\x20\x01(\x0b2\x1f.google.iam.v1.GetPolicyOptionsR\x07options\ - \"i\n\x19TestIamPermissionsRequest\x12%\n\x08resource\x18\x01\x20\x01(\t\ - R\x08resourceB\t\xfaA\x03\n\x01*\xe0A\x02\x12%\n\x0bpermissions\x18\x02\ - \x20\x03(\tR\x0bpermissionsB\x03\xe0A\x02\">\n\x1aTestIamPermissionsResp\ - onse\x12\x20\n\x0bpermissions\x18\x01\x20\x03(\tR\x0bpermissions2\xb4\ - \x03\n\tIAMPolicy\x12t\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolic\ - yRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/{\ - resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12\".google.iam.\ - v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\ - \x02#\"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\x12TestIam\ - Permissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam\ - .v1.TestIamPermissionsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/{resource=*\ - *}:testIamPermissions:\x01*\x1a\x1e\xcaA\x1biam-meta-api.googleapis.comB\ - \x7f\n\x11com.google.iam.v1B\x0eIamPolicyProtoP\x01Z)cloud.google.com/go\ - /iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\ - \x02\x13Google\\Cloud\\Iam\\V1J\xa8'\n\x07\x12\x05\x0e\0\x9a\x01\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x16\n\t\n\x02\x03\0\ - \x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\ - \x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\ - \x16\0%\n\t\n\x02\x03\x05\x12\x03\x17\0$\n\t\n\x02\x03\x06\x12\x03\x18\0\ - *\n\x08\n\x01\x08\x12\x03\x1a\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x1a\0\x1f\ - \n\x08\n\x01\x08\x12\x03\x1b\00\n\t\n\x02\x08%\x12\x03\x1b\00\n\x08\n\ - \x01\x08\x12\x03\x1c\0@\n\t\n\x02\x08\x0b\x12\x03\x1c\0@\n\x08\n\x01\x08\ - \x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\x08\n\x01\x08\x12\x03\ - \x1e\0/\n\t\n\x02\x08\x08\x12\x03\x1e\0/\n\x08\n\x01\x08\x12\x03\x1f\0*\ - \n\t\n\x02\x08\x01\x12\x03\x1f\0*\n\x08\n\x01\x08\x12\x03\x20\00\n\t\n\ - \x02\x08)\x12\x03\x20\00\n\xb9\x07\n\x02\x06\0\x12\x04<\0a\x01\x1a\xac\ - \x07\x20API\x20Overview\n\n\n\x20Manages\x20Identity\x20and\x20Access\ - \x20Management\x20(IAM)\x20policies.\n\n\x20Any\x20implementation\x20of\ - \x20an\x20API\x20that\x20offers\x20access\x20control\x20features\n\x20im\ - plements\x20the\x20google.iam.v1.IAMPolicy\x20interface.\n\n\x20##\x20Da\ - ta\x20model\n\n\x20Access\x20control\x20is\x20applied\x20when\x20a\x20pr\ - incipal\x20(user\x20or\x20service\x20account),\x20takes\n\x20some\x20act\ - ion\x20on\x20a\x20resource\x20exposed\x20by\x20a\x20service.\x20Resource\ - s,\x20identified\x20by\n\x20URI-like\x20names,\x20are\x20the\x20unit\x20\ - of\x20access\x20control\x20specification.\x20Service\n\x20implementation\ - s\x20can\x20choose\x20the\x20granularity\x20of\x20access\x20control\x20a\ - nd\x20the\n\x20supported\x20permissions\x20for\x20their\x20resources.\n\ - \x20For\x20example\x20one\x20database\x20service\x20may\x20allow\x20acce\ - ss\x20control\x20to\x20be\n\x20specified\x20only\x20at\x20the\x20Table\ - \x20level,\x20whereas\x20another\x20might\x20allow\x20access\x20control\ - \n\x20to\x20also\x20be\x20specified\x20at\x20the\x20Column\x20level.\n\n\ - \x20##\x20Policy\x20Structure\n\n\x20See\x20google.iam.v1.Policy\n\n\x20\ - This\x20is\x20intentionally\x20not\x20a\x20CRUD\x20style\x20API\x20becau\ - se\x20access\x20control\x20policies\n\x20are\x20created\x20and\x20delete\ - d\x20implicitly\x20with\x20the\x20resources\x20to\x20which\x20they\x20ar\ - e\n\x20attached.\n\n\n\n\x03\x06\0\x01\x12\x03<\x08\x11\n\n\n\x03\x06\0\ - \x03\x12\x03=\x02C\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03=\x02C\n\xb7\x01\ - \n\x04\x06\0\x02\0\x12\x04C\x02H\x03\x1a\xa8\x01\x20Sets\x20the\x20acces\ - s\x20control\x20policy\x20on\x20the\x20specified\x20resource.\x20Replace\ - s\x20any\n\x20existing\x20policy.\n\n\x20Can\x20return\x20`NOT_FOUND`,\ - \x20`INVALID_ARGUMENT`,\x20and\x20`PERMISSION_DENIED`\x20errors.\n\n\x0c\ - \n\x05\x06\0\x02\0\x01\x12\x03C\x06\x12\n\x0c\n\x05\x06\0\x02\0\x02\x12\ - \x03C\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03C17\n\r\n\x05\x06\0\x02\0\ - \x04\x12\x04D\x04G\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04D\ - \x04G\x06\n\x90\x01\n\x04\x06\0\x02\x01\x12\x04M\x02R\x03\x1a\x81\x01\ - \x20Gets\x20the\x20access\x20control\x20policy\x20for\x20a\x20resource.\ - \n\x20Returns\x20an\x20empty\x20policy\x20if\x20the\x20resource\x20exist\ - s\x20and\x20does\x20not\x20have\x20a\x20policy\n\x20set.\n\n\x0c\n\x05\ - \x06\0\x02\x01\x01\x12\x03M\x06\x12\n\x0c\n\x05\x06\0\x02\x01\x02\x12\ - \x03M\x13&\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03M17\n\r\n\x05\x06\0\x02\ - \x01\x04\x12\x04N\x04Q\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\ - \x04N\x04Q\x06\n\xf4\x02\n\x04\x06\0\x02\x02\x12\x04[\x02`\x03\x1a\xe5\ - \x02\x20Returns\x20permissions\x20that\x20a\x20caller\x20has\x20on\x20th\ - e\x20specified\x20resource.\n\x20If\x20the\x20resource\x20does\x20not\ - \x20exist,\x20this\x20will\x20return\x20an\x20empty\x20set\x20of\n\x20pe\ - rmissions,\x20not\x20a\x20`NOT_FOUND`\x20error.\n\n\x20Note:\x20This\x20\ - operation\x20is\x20designed\x20to\x20be\x20used\x20for\x20building\x20pe\ - rmission-aware\n\x20UIs\x20and\x20command-line\x20tools,\x20not\x20for\ - \x20authorization\x20checking.\x20This\x20operation\n\x20may\x20\"fail\ - \x20open\"\x20without\x20warning.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\ - \x03[\x06\x18\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03[\x192\n\x0c\n\x05\ - \x06\0\x02\x02\x03\x12\x03[=W\n\r\n\x05\x06\0\x02\x02\x04\x12\x04\\\x04_\ - \x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04\\\x04_\x06\n8\n\ - \x02\x04\0\x12\x04d\0w\x01\x1a,\x20Request\x20message\x20for\x20`SetIamP\ - olicy`\x20method.\n\n\n\n\x03\x04\0\x01\x12\x03d\x08\x1b\n\x9b\x01\n\x04\ - \x04\0\x02\0\x12\x04g\x02i0\x1a\x8c\x01\x20REQUIRED:\x20The\x20resource\ - \x20for\x20which\x20the\x20policy\x20is\x20being\x20specified.\n\x20See\ - \x20the\x20operation\x20documentation\x20for\x20the\x20appropriate\x20va\ - lue\x20for\x20this\x20field.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03g\x02\ - \x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03g\t\x11\n\x0c\n\x05\x04\0\x02\0\ - \x03\x12\x03g\x14\x15\n\r\n\x05\x04\0\x02\0\x08\x12\x04g\x16i/\n\x0f\n\ - \x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03h\x04*\n\x0f\n\x08\x04\0\x02\0\x08\ - \x9f\x08\x01\x12\x03i\x04.\n\xf3\x01\n\x04\x04\0\x02\x01\x12\x03o\x02=\ - \x1a\xe5\x01\x20REQUIRED:\x20The\x20complete\x20policy\x20to\x20be\x20ap\ - plied\x20to\x20the\x20`resource`.\x20The\x20size\x20of\n\x20the\x20polic\ - y\x20is\x20limited\x20to\x20a\x20few\x2010s\x20of\x20KB.\x20An\x20empty\ - \x20policy\x20is\x20a\n\x20valid\x20policy\x20but\x20certain\x20Cloud\ - \x20Platform\x20services\x20(such\x20as\x20Projects)\n\x20might\x20rejec\ - t\x20them.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03o\x02\x08\n\x0c\n\x05\ - \x04\0\x02\x01\x01\x12\x03o\t\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03o\ - \x12\x13\n\x0c\n\x05\x04\0\x02\x01\x08\x12\x03o\x14<\n\x0f\n\x08\x04\0\ - \x02\x01\x08\x9c\x08\0\x12\x03o\x15;\n\xde\x01\n\x04\x04\0\x02\x02\x12\ - \x03v\x02,\x1a\xd0\x01\x20OPTIONAL:\x20A\x20FieldMask\x20specifying\x20w\ - hich\x20fields\x20of\x20the\x20policy\x20to\x20modify.\x20Only\n\x20the\ - \x20fields\x20in\x20the\x20mask\x20will\x20be\x20modified.\x20If\x20no\ - \x20mask\x20is\x20provided,\x20the\n\x20following\x20default\x20mask\x20\ - is\x20used:\n\n\x20`paths:\x20\"bindings,\x20etag\"`\n\n\x0c\n\x05\x04\0\ - \x02\x02\x06\x12\x03v\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03v\x1c\ - '\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03v*+\n9\n\x02\x04\x01\x12\x05z\0\ - \x84\x01\x01\x1a,\x20Request\x20message\x20for\x20`GetIamPolicy`\x20meth\ - od.\n\n\n\n\x03\x04\x01\x01\x12\x03z\x08\x1b\n\x9b\x01\n\x04\x04\x01\x02\ - \0\x12\x04}\x02\x7f0\x1a\x8c\x01\x20REQUIRED:\x20The\x20resource\x20for\ + \n\x1egoogle/iam/v1/iam_policy.proto\x12\rgoogle.iam.v1\x1a\x1bgoogle/ia\ + m/v1/options.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1cgoogle/api/a\ + nnotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_\ + behavior.proto\x1a\x19google/api/resource.proto\"p\n\x13SetIamPolicyRequ\ + est\x12%\n\x08resource\x18\x01\x20\x01(\tR\x08resourceB\t\xfaA\x03\n\x01\ + *\xe0A\x02\x122\n\x06policy\x18\x02\x20\x01(\x0b2\x15.google.iam.v1.Poli\ + cyR\x06policyB\x03\xe0A\x02\"w\n\x13GetIamPolicyRequest\x12%\n\x08resour\ + ce\x18\x01\x20\x01(\tR\x08resourceB\t\xfaA\x03\n\x01*\xe0A\x02\x129\n\ + \x07options\x18\x02\x20\x01(\x0b2\x1f.google.iam.v1.GetPolicyOptionsR\ + \x07options\"i\n\x19TestIamPermissionsRequest\x12%\n\x08resource\x18\x01\ + \x20\x01(\tR\x08resourceB\t\xfaA\x03\n\x01*\xe0A\x02\x12%\n\x0bpermissio\ + ns\x18\x02\x20\x03(\tR\x0bpermissionsB\x03\xe0A\x02\">\n\x1aTestIamPermi\ + ssionsResponse\x12\x20\n\x0bpermissions\x18\x01\x20\x03(\tR\x0bpermissio\ + ns2\xb4\x03\n\tIAMPolicy\x12t\n\x0cSetIamPolicy\x12\".google.iam.v1.SetI\ + amPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\xe4\x93\x02#\"\ + \x1e/v1/{resource=**}:setIamPolicy:\x01*\x12t\n\x0cGetIamPolicy\x12\".go\ + ogle.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\")\x82\xd3\ + \xe4\x93\x02#\"\x1e/v1/{resource=**}:getIamPolicy:\x01*\x12\x9a\x01\n\ + \x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a)\ + .google.iam.v1.TestIamPermissionsResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/\ + {resource=**}:testIamPermissions:\x01*\x1a\x1e\xcaA\x1biam-meta-api.goog\ + leapis.comB\x86\x01\n\x11com.google.iam.v1B\x0eIamPolicyProtoP\x01Z0goog\ + le.golang.org/genproto/googleapis/iam/v1;iam\xf8\x01\x01\xaa\x02\x13Goog\ + le.Cloud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1J\xe4$\n\x07\x12\x05\ + \x0f\0\x90\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Cop\ + yright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apac\ + he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ + y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ + \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ + LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ + \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\ + \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\ + ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ + D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ + for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ + \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ + \x11\0\x16\n\t\n\x02\x03\0\x12\x03\x13\0%\n\t\n\x02\x03\x01\x12\x03\x14\ + \0$\n\t\n\x02\x03\x02\x12\x03\x15\0&\n\t\n\x02\x03\x03\x12\x03\x16\0!\n\ + \t\n\x02\x03\x04\x12\x03\x17\0)\n\t\n\x02\x03\x05\x12\x03\x18\0#\n\x08\n\ + \x01\x08\x12\x03\x1a\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x1a\0\x1f\n\x08\n\ + \x01\x08\x12\x03\x1b\00\n\t\n\x02\x08%\x12\x03\x1b\00\n\x08\n\x01\x08\ + \x12\x03\x1c\0G\n\t\n\x02\x08\x0b\x12\x03\x1c\0G\n\x08\n\x01\x08\x12\x03\ + \x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\x08\n\x01\x08\x12\x03\x1e\0/\ + \n\t\n\x02\x08\x08\x12\x03\x1e\0/\n\x08\n\x01\x08\x12\x03\x1f\0*\n\t\n\ + \x02\x08\x01\x12\x03\x1f\0*\n\x08\n\x01\x08\x12\x03\x20\00\n\t\n\x02\x08\ + )\x12\x03\x20\00\n\xbb\x07\n\x02\x06\0\x12\x04;\0^\x01\x1a\xae\x07\x20##\ + \x20API\x20Overview\n\n\x20Manages\x20Identity\x20and\x20Access\x20Manag\ + ement\x20(IAM)\x20policies.\n\n\x20Any\x20implementation\x20of\x20an\x20\ + API\x20that\x20offers\x20access\x20control\x20features\n\x20implements\ + \x20the\x20google.iam.v1.IAMPolicy\x20interface.\n\n\x20##\x20Data\x20mo\ + del\n\n\x20Access\x20control\x20is\x20applied\x20when\x20a\x20principal\ + \x20(user\x20or\x20service\x20account),\x20takes\n\x20some\x20action\x20\ + on\x20a\x20resource\x20exposed\x20by\x20a\x20service.\x20Resources,\x20i\ + dentified\x20by\n\x20URI-like\x20names,\x20are\x20the\x20unit\x20of\x20a\ + ccess\x20control\x20specification.\x20Service\n\x20implementations\x20ca\ + n\x20choose\x20the\x20granularity\x20of\x20access\x20control\x20and\x20t\ + he\n\x20supported\x20permissions\x20for\x20their\x20resources.\n\x20For\ + \x20example\x20one\x20database\x20service\x20may\x20allow\x20access\x20c\ + ontrol\x20to\x20be\n\x20specified\x20only\x20at\x20the\x20Table\x20level\ + ,\x20whereas\x20another\x20might\x20allow\x20access\x20control\n\x20to\ + \x20also\x20be\x20specified\x20at\x20the\x20Column\x20level.\n\n\x20##\ + \x20Policy\x20Structure\n\n\x20See\x20google.iam.v1.Policy\n\n\x20This\ + \x20is\x20intentionally\x20not\x20a\x20CRUD\x20style\x20API\x20because\ + \x20access\x20control\x20policies\n\x20are\x20created\x20and\x20deleted\ + \x20implicitly\x20with\x20the\x20resources\x20to\x20which\x20they\x20are\ + \n\x20attached.\n\n\n\n\x03\x06\0\x01\x12\x03;\x08\x11\n\n\n\x03\x06\0\ + \x03\x12\x03<\x02C\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03<\x02C\nh\n\x04\ + \x06\0\x02\0\x12\x04@\x02E\x03\x1aZ\x20Sets\x20the\x20access\x20control\ + \x20policy\x20on\x20the\x20specified\x20resource.\x20Replaces\x20any\n\ + \x20existing\x20policy.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03@\x06\x12\n\ + \x0c\n\x05\x06\0\x02\0\x02\x12\x03@\x13&\n\x0c\n\x05\x06\0\x02\0\x03\x12\ + \x03@17\n\r\n\x05\x06\0\x02\0\x04\x12\x04A\x04D\x06\n\x11\n\t\x06\0\x02\ + \0\x04\xb0\xca\xbc\"\x12\x04A\x04D\x06\n\x90\x01\n\x04\x06\0\x02\x01\x12\ + \x04J\x02O\x03\x1a\x81\x01\x20Gets\x20the\x20access\x20control\x20policy\ + \x20for\x20a\x20resource.\n\x20Returns\x20an\x20empty\x20policy\x20if\ + \x20the\x20resource\x20exists\x20and\x20does\x20not\x20have\x20a\x20poli\ + cy\n\x20set.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03J\x06\x12\n\x0c\n\ + \x05\x06\0\x02\x01\x02\x12\x03J\x13&\n\x0c\n\x05\x06\0\x02\x01\x03\x12\ + \x03J17\n\r\n\x05\x06\0\x02\x01\x04\x12\x04K\x04N\x06\n\x11\n\t\x06\0\ + \x02\x01\x04\xb0\xca\xbc\"\x12\x04K\x04N\x06\n\xf2\x02\n\x04\x06\0\x02\ + \x02\x12\x04X\x02]\x03\x1a\xe3\x02\x20Returns\x20permissions\x20that\x20\ + a\x20caller\x20has\x20on\x20the\x20specified\x20resource.\n\x20If\x20the\ + \x20resource\x20does\x20not\x20exist,\x20this\x20will\x20return\x20an\ + \x20empty\x20set\x20of\n\x20permissions,\x20not\x20a\x20NOT_FOUND\x20err\ + or.\n\n\x20Note:\x20This\x20operation\x20is\x20designed\x20to\x20be\x20u\ + sed\x20for\x20building\x20permission-aware\n\x20UIs\x20and\x20command-li\ + ne\x20tools,\x20not\x20for\x20authorization\x20checking.\x20This\x20oper\ + ation\n\x20may\x20\"fail\x20open\"\x20without\x20warning.\n\n\x0c\n\x05\ + \x06\0\x02\x02\x01\x12\x03X\x06\x18\n\x0c\n\x05\x06\0\x02\x02\x02\x12\ + \x03X\x192\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03X=W\n\r\n\x05\x06\0\x02\ + \x02\x04\x12\x04Y\x04\\\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\ + \x12\x04Y\x04\\\x06\n8\n\x02\x04\0\x12\x04a\0m\x01\x1a,\x20Request\x20me\ + ssage\x20for\x20`SetIamPolicy`\x20method.\n\n\n\n\x03\x04\0\x01\x12\x03a\ + \x08\x1b\n\x9b\x01\n\x04\x04\0\x02\0\x12\x04d\x02f0\x1a\x8c\x01\x20REQUI\ + RED:\x20The\x20resource\x20for\x20which\x20the\x20policy\x20is\x20being\ + \x20specified.\n\x20See\x20the\x20operation\x20documentation\x20for\x20t\ + he\x20appropriate\x20value\x20for\x20this\x20field.\n\n\x0c\n\x05\x04\0\ + \x02\0\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03d\t\x11\n\ + \x0c\n\x05\x04\0\x02\0\x03\x12\x03d\x14\x15\n\r\n\x05\x04\0\x02\0\x08\ + \x12\x04d\x16f/\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x03e\x04*\n\ + \x0f\n\x08\x04\0\x02\0\x08\x9f\x08\x01\x12\x03f\x04.\n\xf3\x01\n\x04\x04\ + \0\x02\x01\x12\x03l\x02=\x1a\xe5\x01\x20REQUIRED:\x20The\x20complete\x20\ + policy\x20to\x20be\x20applied\x20to\x20the\x20`resource`.\x20The\x20size\ + \x20of\n\x20the\x20policy\x20is\x20limited\x20to\x20a\x20few\x2010s\x20o\ + f\x20KB.\x20An\x20empty\x20policy\x20is\x20a\n\x20valid\x20policy\x20but\ + \x20certain\x20Cloud\x20Platform\x20services\x20(such\x20as\x20Projects)\ + \n\x20might\x20reject\x20them.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03l\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03l\t\x0f\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x03l\x12\x13\n\x0c\n\x05\x04\0\x02\x01\x08\x12\x03l\x14\ + <\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x03l\x15;\n8\n\x02\x04\x01\ + \x12\x04p\0z\x01\x1a,\x20Request\x20message\x20for\x20`GetIamPolicy`\x20\ + method.\n\n\n\n\x03\x04\x01\x01\x12\x03p\x08\x1b\n\x9b\x01\n\x04\x04\x01\ + \x02\0\x12\x04s\x02u0\x1a\x8c\x01\x20REQUIRED:\x20The\x20resource\x20for\ \x20which\x20the\x20policy\x20is\x20being\x20requested.\n\x20See\x20the\ \x20operation\x20documentation\x20for\x20the\x20appropriate\x20value\x20\ - for\x20this\x20field.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03}\x02\x08\n\ - \x0c\n\x05\x04\x01\x02\0\x01\x12\x03}\t\x11\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x03}\x14\x15\n\r\n\x05\x04\x01\x02\0\x08\x12\x04}\x16\x7f/\n\ - \x0f\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x03~\x04*\n\x0f\n\x08\x04\x01\ - \x02\0\x08\x9f\x08\x01\x12\x03\x7f\x04.\n`\n\x04\x04\x01\x02\x01\x12\x04\ - \x83\x01\x02\x1f\x1aR\x20OPTIONAL:\x20A\x20`GetPolicyOptions`\x20object\ - \x20for\x20specifying\x20options\x20to\n\x20`GetIamPolicy`.\n\n\r\n\x05\ - \x04\x01\x02\x01\x06\x12\x04\x83\x01\x02\x12\n\r\n\x05\x04\x01\x02\x01\ - \x01\x12\x04\x83\x01\x13\x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x83\ - \x01\x1d\x1e\n@\n\x02\x04\x02\x12\x06\x87\x01\0\x93\x01\x01\x1a2\x20Requ\ - est\x20message\x20for\x20`TestIamPermissions`\x20method.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\x87\x01\x08!\n\xa4\x01\n\x04\x04\x02\x02\0\x12\x06\ - \x8a\x01\x02\x8c\x010\x1a\x93\x01\x20REQUIRED:\x20The\x20resource\x20for\ - \x20which\x20the\x20policy\x20detail\x20is\x20being\x20requested.\n\x20S\ - ee\x20the\x20operation\x20documentation\x20for\x20the\x20appropriate\x20\ - value\x20for\x20this\x20field.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x8a\ - \x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x8a\x01\t\x11\n\r\n\x05\ - \x04\x02\x02\0\x03\x12\x04\x8a\x01\x14\x15\n\x0f\n\x05\x04\x02\x02\0\x08\ - \x12\x06\x8a\x01\x15\x8c\x01/\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\ - \x12\x04\x8b\x01\x04*\n\x10\n\x08\x04\x02\x02\0\x08\x9f\x08\x01\x12\x04\ - \x8c\x01\x04.\n\xf1\x01\n\x04\x04\x02\x02\x01\x12\x04\x92\x01\x02K\x1a\ - \xe2\x01\x20The\x20set\x20of\x20permissions\x20to\x20check\x20for\x20the\ - \x20`resource`.\x20Permissions\x20with\n\x20wildcards\x20(such\x20as\x20\ - '*'\x20or\x20'storage.*')\x20are\x20not\x20allowed.\x20For\x20more\n\x20\ - information\x20see\n\x20[IAM\x20Overview](https://cloud.google.com/iam/d\ - ocs/overview#permissions).\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\x92\ - \x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\x92\x01\x0b\x11\n\r\n\ - \x05\x04\x02\x02\x01\x01\x12\x04\x92\x01\x12\x1d\n\r\n\x05\x04\x02\x02\ - \x01\x03\x12\x04\x92\x01\x20!\n\r\n\x05\x04\x02\x02\x01\x08\x12\x04\x92\ - \x01\"J\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\x12\x04\x92\x01#I\nA\n\ - \x02\x04\x03\x12\x06\x96\x01\0\x9a\x01\x01\x1a3\x20Response\x20message\ - \x20for\x20`TestIamPermissions`\x20method.\n\n\x0b\n\x03\x04\x03\x01\x12\ - \x04\x96\x01\x08\"\n]\n\x04\x04\x03\x02\0\x12\x04\x99\x01\x02\"\x1aO\x20\ - A\x20subset\x20of\x20`TestPermissionsRequest.permissions`\x20that\x20the\ - \x20caller\x20is\n\x20allowed.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\x99\ - \x01\x02\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x99\x01\x0b\x11\n\r\n\x05\ - \x04\x03\x02\0\x01\x12\x04\x99\x01\x12\x1d\n\r\n\x05\x04\x03\x02\0\x03\ - \x12\x04\x99\x01\x20!b\x06proto3\ + for\x20this\x20field.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03s\x02\x08\n\ + \x0c\n\x05\x04\x01\x02\0\x01\x12\x03s\t\x11\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x03s\x14\x15\n\r\n\x05\x04\x01\x02\0\x08\x12\x04s\x16u/\n\x0f\n\ + \x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x03t\x04*\n\x0f\n\x08\x04\x01\x02\0\ + \x08\x9f\x08\x01\x12\x03u\x04.\n\x85\x01\n\x04\x04\x01\x02\x01\x12\x03y\ + \x02\x1f\x1ax\x20OPTIONAL:\x20A\x20`GetPolicyOptions`\x20object\x20for\ + \x20specifying\x20options\x20to\n\x20`GetIamPolicy`.\x20This\x20field\ + \x20is\x20only\x20used\x20by\x20Cloud\x20IAM.\n\n\x0c\n\x05\x04\x01\x02\ + \x01\x06\x12\x03y\x02\x12\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03y\x13\ + \x1a\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03y\x1d\x1e\n?\n\x02\x04\x02\ + \x12\x05}\0\x89\x01\x01\x1a2\x20Request\x20message\x20for\x20`TestIamPer\ + missions`\x20method.\n\n\n\n\x03\x04\x02\x01\x12\x03}\x08!\n\xa4\x01\n\ + \x04\x04\x02\x02\0\x12\x06\x80\x01\x02\x82\x010\x1a\x93\x01\x20REQUIRED:\ + \x20The\x20resource\x20for\x20which\x20the\x20policy\x20detail\x20is\x20\ + being\x20requested.\n\x20See\x20the\x20operation\x20documentation\x20for\ + \x20the\x20appropriate\x20value\x20for\x20this\x20field.\n\n\r\n\x05\x04\ + \x02\x02\0\x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\ + \x04\x80\x01\t\x11\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x80\x01\x14\x15\n\ + \x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x80\x01\x15\x82\x01/\n\x10\n\x08\ + \x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x81\x01\x04*\n\x10\n\x08\x04\x02\ + \x02\0\x08\x9f\x08\x01\x12\x04\x82\x01\x04.\n\xf1\x01\n\x04\x04\x02\x02\ + \x01\x12\x04\x88\x01\x02K\x1a\xe2\x01\x20The\x20set\x20of\x20permissions\ + \x20to\x20check\x20for\x20the\x20`resource`.\x20Permissions\x20with\n\ + \x20wildcards\x20(such\x20as\x20'*'\x20or\x20'storage.*')\x20are\x20not\ + \x20allowed.\x20For\x20more\n\x20information\x20see\n\x20[IAM\x20Overvie\ + w](https://cloud.google.com/iam/docs/overview#permissions).\n\n\r\n\x05\ + \x04\x02\x02\x01\x04\x12\x04\x88\x01\x02\n\n\r\n\x05\x04\x02\x02\x01\x05\ + \x12\x04\x88\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x88\x01\ + \x12\x1d\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x88\x01\x20!\n\r\n\x05\ + \x04\x02\x02\x01\x08\x12\x04\x88\x01\"J\n\x10\n\x08\x04\x02\x02\x01\x08\ + \x9c\x08\0\x12\x04\x88\x01#I\nA\n\x02\x04\x03\x12\x06\x8c\x01\0\x90\x01\ + \x01\x1a3\x20Response\x20message\x20for\x20`TestIamPermissions`\x20metho\ + d.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x8c\x01\x08\"\n]\n\x04\x04\x03\x02\ + \0\x12\x04\x8f\x01\x02\"\x1aO\x20A\x20subset\x20of\x20`TestPermissionsRe\ + quest.permissions`\x20that\x20the\x20caller\x20is\n\x20allowed.\n\n\r\n\ + \x05\x04\x03\x02\0\x04\x12\x04\x8f\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x05\ + \x12\x04\x8f\x01\x0b\x11\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x8f\x01\x12\ + \x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x8f\x01\x20!b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(6); + deps.push(super::options::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(SetIamPolicyRequest::generated_message_descriptor_data()); + messages.push(GetIamPolicyRequest::generated_message_descriptor_data()); + messages.push(TestIamPermissionsRequest::generated_message_descriptor_data()); + messages.push(TestIamPermissionsResponse::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/iam/v1/mod.rs b/googleapis-raw/src/iam/v1/mod.rs index e6614f1..2def699 100644 --- a/googleapis-raw/src/iam/v1/mod.rs +++ b/googleapis-raw/src/iam/v1/mod.rs @@ -1,6 +1,6 @@ // @generated - -use crate::{ +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, r#type::expr, }; diff --git a/googleapis-raw/src/iam/v1/options.rs b/googleapis-raw/src/iam/v1/options.rs index c583e35..61c8e11 100644 --- a/googleapis-raw/src/iam/v1/options.rs +++ b/googleapis-raw/src/iam/v1/options.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,33 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/iam/v1/options.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Encapsulates settings provided to GetIamPolicy. +// @@protoc_insertion_point(message:google.iam.v1.GetPolicyOptions) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetPolicyOptions { // message fields + /// Optional. The policy format version to be returned. + /// + /// Valid values are 0, 1, and 3. Requests specifying an invalid value will be + /// rejected. + /// + /// Requests for policies with any conditional bindings must specify version 3. + /// Policies without any conditional bindings may specify any valid value or + /// leave the field unset. + // @@protoc_insertion_point(field:google.iam.v1.GetPolicyOptions.requested_policy_version) pub requested_policy_version: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.GetPolicyOptions.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetPolicyOptions { @@ -43,40 +56,37 @@ impl GetPolicyOptions { ::std::default::Default::default() } - // int32 requested_policy_version = 1; - - - pub fn get_requested_policy_version(&self) -> i32 { - self.requested_policy_version - } - pub fn clear_requested_policy_version(&mut self) { - self.requested_policy_version = 0; - } - - // Param is passed by value, moved - pub fn set_requested_policy_version(&mut self, v: i32) { - self.requested_policy_version = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "requested_policy_version", + |m: &GetPolicyOptions| { &m.requested_policy_version }, + |m: &mut GetPolicyOptions| { &mut m.requested_policy_version }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetPolicyOptions", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetPolicyOptions { + const NAME: &'static str = "GetPolicyOptions"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.requested_policy_version = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.requested_policy_version = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -85,152 +95,133 @@ impl ::protobuf::Message for GetPolicyOptions { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.requested_policy_version != 0 { - my_size += ::protobuf::rt::value_size(1, self.requested_policy_version, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.requested_policy_version); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.requested_policy_version != 0 { os.write_int32(1, self.requested_policy_version)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetPolicyOptions { GetPolicyOptions::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "requested_policy_version", - |m: &GetPolicyOptions| { &m.requested_policy_version }, - |m: &mut GetPolicyOptions| { &mut m.requested_policy_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetPolicyOptions", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.requested_policy_version = 0; + self.special_fields.clear(); } fn default_instance() -> &'static GetPolicyOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetPolicyOptions::new) + static instance: GetPolicyOptions = GetPolicyOptions { + requested_policy_version: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetPolicyOptions { - fn clear(&mut self) { - self.requested_policy_version = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetPolicyOptions { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetPolicyOptions").unwrap()).clone() } } -impl ::std::fmt::Debug for GetPolicyOptions { +impl ::std::fmt::Display for GetPolicyOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetPolicyOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/iam/v1/options.proto\x12\rgoogle.iam.v1\"L\n\x10GetPolicyOp\ - tions\x128\n\x18requested_policy_version\x18\x01\x20\x01(\x05R\x16reques\ - tedPolicyVersionB}\n\x11com.google.iam.v1B\x0cOptionsProtoP\x01Z)cloud.g\ - oogle.com/go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.I\ - am.V1\xca\x02\x13Google\\Cloud\\Iam\\V1J\xd9\x0c\n\x06\x12\x04\x0e\0/\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x16\n\x08\n\ - \x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x13\00\n\t\n\x02\x08%\x12\x03\x13\00\n\x08\n\x01\x08\ - \x12\x03\x14\0@\n\t\n\x02\x08\x0b\x12\x03\x14\0@\n\x08\n\x01\x08\x12\x03\ - \x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0-\ - \n\t\n\x02\x08\x08\x12\x03\x16\0-\n\x08\n\x01\x08\x12\x03\x17\0*\n\t\n\ - \x02\x08\x01\x12\x03\x17\0*\n\x08\n\x01\x08\x12\x03\x18\00\n\t\n\x02\x08\ - )\x12\x03\x18\00\n=\n\x02\x04\0\x12\x04\x1b\0/\x01\x1a1\x20Encapsulates\ - \x20settings\x20provided\x20to\x20GetIamPolicy.\n\n\n\n\x03\x04\0\x01\ - \x12\x03\x1b\x08\x18\n\xfd\x05\n\x04\x04\0\x02\0\x12\x03.\x02%\x1a\xef\ - \x05\x20Optional.\x20The\x20maximum\x20policy\x20version\x20that\x20will\ - \x20be\x20used\x20to\x20format\x20the\n\x20policy.\n\n\x20Valid\x20value\ - s\x20are\x200,\x201,\x20and\x203.\x20Requests\x20specifying\x20an\x20inv\ - alid\x20value\x20will\x20be\n\x20rejected.\n\n\x20Requests\x20for\x20pol\ - icies\x20with\x20any\x20conditional\x20role\x20bindings\x20must\x20speci\ - fy\n\x20version\x203.\x20Policies\x20with\x20no\x20conditional\x20role\ - \x20bindings\x20may\x20specify\x20any\x20valid\n\x20value\x20or\x20leave\ - \x20the\x20field\x20unset.\n\n\x20The\x20policy\x20in\x20the\x20response\ - \x20might\x20use\x20the\x20policy\x20version\x20that\x20you\x20specified\ - ,\n\x20or\x20it\x20might\x20use\x20a\x20lower\x20policy\x20version.\x20F\ - or\x20example,\x20if\x20you\x20specify\x20version\n\x203,\x20but\x20the\ - \x20policy\x20has\x20no\x20conditional\x20role\x20bindings,\x20the\x20re\ - sponse\x20uses\n\x20version\x201.\n\n\x20To\x20learn\x20which\x20resourc\ - es\x20support\x20conditions\x20in\x20their\x20IAM\x20policies,\x20see\ - \x20the\n\x20[IAM\n\x20documentation](https://cloud.google.com/iam/help/\ - conditions/resource-policies).\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03.\ - \x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03.\x08\x20\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03.#$b\x06proto3\ + \n\x1bgoogle/iam/v1/options.proto\x12\rgoogle.iam.v1\x1a\x1cgoogle/api/a\ + nnotations.proto\"L\n\x10GetPolicyOptions\x128\n\x18requested_policy_ver\ + sion\x18\x01\x20\x01(\x05R\x16requestedPolicyVersionB\x84\x01\n\x11com.g\ + oogle.iam.v1B\x0cOptionsProtoP\x01Z0google.golang.org/genproto/googleapi\ + s/iam/v1;iam\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\x02\x13Googl\ + e\\Cloud\\Iam\\V1J\xb4\t\n\x06\x12\x04\x0f\0(\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x16\n\t\n\x02\x03\0\x12\x03\x13\0\ + &\n\x08\n\x01\x08\x12\x03\x15\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x15\0\x1f\ + \n\x08\n\x01\x08\x12\x03\x16\00\n\t\n\x02\x08%\x12\x03\x16\00\n\x08\n\ + \x01\x08\x12\x03\x17\0G\n\t\n\x02\x08\x0b\x12\x03\x17\0G\n\x08\n\x01\x08\ + \x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\ + \x19\0-\n\t\n\x02\x08\x08\x12\x03\x19\0-\n\x08\n\x01\x08\x12\x03\x1a\0*\ + \n\t\n\x02\x08\x01\x12\x03\x1a\0*\n\x08\n\x01\x08\x12\x03\x1b\00\n\t\n\ + \x02\x08)\x12\x03\x1b\00\n=\n\x02\x04\0\x12\x04\x1e\0(\x01\x1a1\x20Encap\ + sulates\x20settings\x20provided\x20to\x20GetIamPolicy.\n\n\n\n\x03\x04\0\ + \x01\x12\x03\x1e\x08\x18\n\xcb\x02\n\x04\x04\0\x02\0\x12\x03'\x02%\x1a\ + \xbd\x02\x20Optional.\x20The\x20policy\x20format\x20version\x20to\x20be\ + \x20returned.\n\n\x20Valid\x20values\x20are\x200,\x201,\x20and\x203.\x20\ + Requests\x20specifying\x20an\x20invalid\x20value\x20will\x20be\n\x20reje\ + cted.\n\n\x20Requests\x20for\x20policies\x20with\x20any\x20conditional\ + \x20bindings\x20must\x20specify\x20version\x203.\n\x20Policies\x20withou\ + t\x20any\x20conditional\x20bindings\x20may\x20specify\x20any\x20valid\ + \x20value\x20or\n\x20leave\x20the\x20field\x20unset.\n\n\x0c\n\x05\x04\0\ + \x02\0\x05\x12\x03'\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03'\x08\x20\ + \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03'#$b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(GetPolicyOptions::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/iam/v1/policy.rs b/googleapis-raw/src/iam/v1/policy.rs index 161fa95..2960ffb 100644 --- a/googleapis-raw/src/iam/v1/policy.rs +++ b/googleapis-raw/src/iam/v1/policy.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,57 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/iam/v1/policy.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.iam.v1.Policy) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Policy { // message fields + /// Specifies the format of the policy. + /// + /// Valid values are 0, 1, and 3. Requests specifying an invalid value will be + /// rejected. + /// + /// Operations affecting conditional bindings must specify version 3. This can + /// be either setting a conditional policy, modifying a conditional binding, + /// or removing a binding (conditional or unconditional) from the stored + /// conditional policy. + /// Operations on non-conditional policies may specify any valid value or + /// leave the field unset. + /// + /// If no etag is provided in the call to `setIamPolicy`, version compliance + /// checks against the stored policy is skipped. + // @@protoc_insertion_point(field:google.iam.v1.Policy.version) pub version: i32, - pub bindings: ::protobuf::RepeatedField, - pub audit_configs: ::protobuf::RepeatedField, + /// Associates a list of `members` to a `role`. Optionally may specify a + /// `condition` that determines when binding is in effect. + /// `bindings` with no members will result in an error. + // @@protoc_insertion_point(field:google.iam.v1.Policy.bindings) + pub bindings: ::std::vec::Vec, + /// `etag` is used for optimistic concurrency control as a way to help + /// prevent simultaneous updates of a policy from overwriting each other. + /// It is strongly suggested that systems make use of the `etag` in the + /// read-modify-write cycle to perform policy updates in order to avoid race + /// conditions: An `etag` is returned in the response to `getIamPolicy`, and + /// systems are expected to put that etag in the request to `setIamPolicy` to + /// ensure that their change will be applied to the same version of the policy. + /// + /// If no `etag` is provided in the call to `setIamPolicy`, then the existing + /// policy is overwritten. Due to blind-set semantics of an etag-less policy, + /// 'setIamPolicy' will not fail even if the incoming policy version does not + /// meet the requirements for modifying the stored policy. + // @@protoc_insertion_point(field:google.iam.v1.Policy.etag) pub etag: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.Policy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Policy { @@ -46,135 +80,53 @@ impl Policy { ::std::default::Default::default() } - // int32 version = 1; - - - pub fn get_version(&self) -> i32 { - self.version - } - pub fn clear_version(&mut self) { - self.version = 0; - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: i32) { - self.version = v; - } - - // repeated .google.iam.v1.Binding bindings = 4; - - - pub fn get_bindings(&self) -> &[Binding] { - &self.bindings - } - pub fn clear_bindings(&mut self) { - self.bindings.clear(); - } - - // Param is passed by value, moved - pub fn set_bindings(&mut self, v: ::protobuf::RepeatedField) { - self.bindings = v; - } - - // Mutable pointer to the field. - pub fn mut_bindings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.bindings - } - - // Take field - pub fn take_bindings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.bindings, ::protobuf::RepeatedField::new()) - } - - // repeated .google.iam.v1.AuditConfig audit_configs = 6; - - - pub fn get_audit_configs(&self) -> &[AuditConfig] { - &self.audit_configs - } - pub fn clear_audit_configs(&mut self) { - self.audit_configs.clear(); - } - - // Param is passed by value, moved - pub fn set_audit_configs(&mut self, v: ::protobuf::RepeatedField) { - self.audit_configs = v; - } - - // Mutable pointer to the field. - pub fn mut_audit_configs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.audit_configs - } - - // Take field - pub fn take_audit_configs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.audit_configs, ::protobuf::RepeatedField::new()) - } - - // bytes etag = 3; - - - pub fn get_etag(&self) -> &[u8] { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::vec::Vec) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.etag, ::std::vec::Vec::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "version", + |m: &Policy| { &m.version }, + |m: &mut Policy| { &mut m.version }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "bindings", + |m: &Policy| { &m.bindings }, + |m: &mut Policy| { &mut m.bindings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "etag", + |m: &Policy| { &m.etag }, + |m: &mut Policy| { &mut m.etag }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Policy", + fields, + oneofs, + ) } } impl ::protobuf::Message for Policy { + const NAME: &'static str = "Policy"; + fn is_initialized(&self) -> bool { - for v in &self.bindings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.audit_configs { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.version = tmp; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.bindings)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.version = is.read_int32()?; }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.audit_configs)?; + 34 => { + self.bindings.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.etag)?; + 26 => { + self.etag = is.read_bytes()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -183,147 +135,104 @@ impl ::protobuf::Message for Policy { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.version != 0 { - my_size += ::protobuf::rt::value_size(1, self.version, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.version); } for value in &self.bindings { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.audit_configs { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.etag.is_empty() { my_size += ::protobuf::rt::bytes_size(3, &self.etag); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.version != 0 { os.write_int32(1, self.version)?; } for v in &self.bindings { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.audit_configs { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; if !self.etag.is_empty() { os.write_bytes(3, &self.etag)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Policy { Policy::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "version", - |m: &Policy| { &m.version }, - |m: &mut Policy| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bindings", - |m: &Policy| { &m.bindings }, - |m: &mut Policy| { &mut m.bindings }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "audit_configs", - |m: &Policy| { &m.audit_configs }, - |m: &mut Policy| { &mut m.audit_configs }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "etag", - |m: &Policy| { &m.etag }, - |m: &mut Policy| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Policy", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.version = 0; + self.bindings.clear(); + self.etag.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Policy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Policy::new) + static instance: Policy = Policy { + version: 0, + bindings: ::std::vec::Vec::new(), + etag: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Policy { - fn clear(&mut self) { - self.version = 0; - self.bindings.clear(); - self.audit_configs.clear(); - self.etag.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Policy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Policy").unwrap()).clone() } } -impl ::std::fmt::Debug for Policy { +impl ::std::fmt::Display for Policy { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Policy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Associates `members` with a `role`. +// @@protoc_insertion_point(message:google.iam.v1.Binding) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Binding { // message fields + /// Role that is assigned to `members`. + /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // @@protoc_insertion_point(field:google.iam.v1.Binding.role) pub role: ::std::string::String, - pub members: ::protobuf::RepeatedField<::std::string::String>, - pub condition: ::protobuf::SingularPtrField, + // @@protoc_insertion_point(field:google.iam.v1.Binding.members) + pub members: ::std::vec::Vec<::std::string::String>, + /// The condition that is associated with this binding. + /// NOTE: An unsatisfied condition will not allow user access via current + /// binding. Different bindings, including their conditions, are examined + /// independently. + // @@protoc_insertion_point(field:google.iam.v1.Binding.condition) + pub condition: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.Binding.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Binding { @@ -337,116 +246,53 @@ impl Binding { ::std::default::Default::default() } - // string role = 1; - - - pub fn get_role(&self) -> &str { - &self.role - } - pub fn clear_role(&mut self) { - self.role.clear(); - } - - // Param is passed by value, moved - pub fn set_role(&mut self, v: ::std::string::String) { - self.role = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_role(&mut self) -> &mut ::std::string::String { - &mut self.role - } - - // Take field - pub fn take_role(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.role, ::std::string::String::new()) - } - - // repeated string members = 2; - - - pub fn get_members(&self) -> &[::std::string::String] { - &self.members - } - pub fn clear_members(&mut self) { - self.members.clear(); - } - - // Param is passed by value, moved - pub fn set_members(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.members = v; - } - - // Mutable pointer to the field. - pub fn mut_members(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.members - } - - // Take field - pub fn take_members(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.members, ::protobuf::RepeatedField::new()) - } - - // .google.type.Expr condition = 3; - - - pub fn get_condition(&self) -> &super::expr::Expr { - self.condition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - pub fn has_condition(&self) -> bool { - self.condition.is_some() - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: super::expr::Expr) { - self.condition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut super::expr::Expr { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> super::expr::Expr { - self.condition.take().unwrap_or_else(|| super::expr::Expr::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "role", + |m: &Binding| { &m.role }, + |m: &mut Binding| { &mut m.role }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "members", + |m: &Binding| { &m.members }, + |m: &mut Binding| { &mut m.members }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::expr::Expr>( + "condition", + |m: &Binding| { &m.condition }, + |m: &mut Binding| { &mut m.condition }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Binding", + fields, + oneofs, + ) } } impl ::protobuf::Message for Binding { + const NAME: &'static str = "Binding"; + fn is_initialized(&self) -> bool { - for v in &self.condition { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.role)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.role = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.members)?; + 18 => { + self.members.push(is.read_string()?); }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.condition)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -455,7 +301,7 @@ impl ::protobuf::Message for Binding { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.role.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.role); @@ -463,576 +309,90 @@ impl ::protobuf::Message for Binding { for value in &self.members { my_size += ::protobuf::rt::string_size(2, &value); }; - if let Some(ref v) = self.condition.as_ref() { + if let Some(v) = self.condition.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.role.is_empty() { - os.write_string(1, &self.role)?; - } - for v in &self.members { - os.write_string(2, &v)?; - }; - if let Some(ref v) = self.condition.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Binding { - Binding::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "role", - |m: &Binding| { &m.role }, - |m: &mut Binding| { &mut m.role }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "members", - |m: &Binding| { &m.members }, - |m: &mut Binding| { &mut m.members }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &Binding| { &m.condition }, - |m: &mut Binding| { &mut m.condition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Binding", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Binding { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Binding::new) - } -} - -impl ::protobuf::Clear for Binding { - fn clear(&mut self) { - self.role.clear(); - self.members.clear(); - self.condition.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Binding { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Binding { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AuditConfig { - // message fields - pub service: ::std::string::String, - pub audit_log_configs: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AuditConfig { - fn default() -> &'a AuditConfig { - ::default_instance() - } -} - -impl AuditConfig { - pub fn new() -> AuditConfig { - ::std::default::Default::default() - } - - // string service = 1; - - - pub fn get_service(&self) -> &str { - &self.service - } - pub fn clear_service(&mut self) { - self.service.clear(); - } - - // Param is passed by value, moved - pub fn set_service(&mut self, v: ::std::string::String) { - self.service = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service(&mut self) -> &mut ::std::string::String { - &mut self.service - } - - // Take field - pub fn take_service(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service, ::std::string::String::new()) - } - - // repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; - - - pub fn get_audit_log_configs(&self) -> &[AuditLogConfig] { - &self.audit_log_configs - } - pub fn clear_audit_log_configs(&mut self) { - self.audit_log_configs.clear(); - } - - // Param is passed by value, moved - pub fn set_audit_log_configs(&mut self, v: ::protobuf::RepeatedField) { - self.audit_log_configs = v; - } - - // Mutable pointer to the field. - pub fn mut_audit_log_configs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.audit_log_configs - } - - // Take field - pub fn take_audit_log_configs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.audit_log_configs, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AuditConfig { - fn is_initialized(&self) -> bool { - for v in &self.audit_log_configs { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.audit_log_configs)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.service.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service); - } - for value in &self.audit_log_configs { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.service.is_empty() { - os.write_string(1, &self.service)?; - } - for v in &self.audit_log_configs { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AuditConfig { - AuditConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service", - |m: &AuditConfig| { &m.service }, - |m: &mut AuditConfig| { &mut m.service }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "audit_log_configs", - |m: &AuditConfig| { &m.audit_log_configs }, - |m: &mut AuditConfig| { &mut m.audit_log_configs }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuditConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AuditConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuditConfig::new) - } -} - -impl ::protobuf::Clear for AuditConfig { - fn clear(&mut self) { - self.service.clear(); - self.audit_log_configs.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AuditConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AuditConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AuditLogConfig { - // message fields - pub log_type: AuditLogConfig_LogType, - pub exempted_members: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AuditLogConfig { - fn default() -> &'a AuditLogConfig { - ::default_instance() - } -} - -impl AuditLogConfig { - pub fn new() -> AuditLogConfig { - ::std::default::Default::default() - } - - // .google.iam.v1.AuditLogConfig.LogType log_type = 1; - - - pub fn get_log_type(&self) -> AuditLogConfig_LogType { - self.log_type - } - pub fn clear_log_type(&mut self) { - self.log_type = AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_log_type(&mut self, v: AuditLogConfig_LogType) { - self.log_type = v; - } - - // repeated string exempted_members = 2; - - - pub fn get_exempted_members(&self) -> &[::std::string::String] { - &self.exempted_members - } - pub fn clear_exempted_members(&mut self) { - self.exempted_members.clear(); - } - - // Param is passed by value, moved - pub fn set_exempted_members(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.exempted_members = v; - } - - // Mutable pointer to the field. - pub fn mut_exempted_members(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.exempted_members - } - - // Take field - pub fn take_exempted_members(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.exempted_members, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AuditLogConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.log_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.exempted_members)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.log_type != AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.log_type); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - for value in &self.exempted_members { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.log_type != AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.log_type))?; - } - for v in &self.exempted_members { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.role.is_empty() { + os.write_string(1, &self.role)?; + } + for v in &self.members { + os.write_string(2, &v)?; + }; + if let Some(v) = self.condition.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn new() -> AuditLogConfig { - AuditLogConfig::new() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "log_type", - |m: &AuditLogConfig| { &m.log_type }, - |m: &mut AuditLogConfig| { &mut m.log_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exempted_members", - |m: &AuditLogConfig| { &m.exempted_members }, - |m: &mut AuditLogConfig| { &mut m.exempted_members }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuditLogConfig", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static AuditLogConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuditLogConfig::new) + fn new() -> Binding { + Binding::new() } -} -impl ::protobuf::Clear for AuditLogConfig { fn clear(&mut self) { - self.log_type = AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED; - self.exempted_members.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AuditLogConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + self.role.clear(); + self.members.clear(); + self.condition.clear(); + self.special_fields.clear(); } -} -impl ::protobuf::reflect::ProtobufValue for AuditLogConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn default_instance() -> &'static Binding { + static instance: Binding = Binding { + role: ::std::string::String::new(), + members: ::std::vec::Vec::new(), + condition: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AuditLogConfig_LogType { - LOG_TYPE_UNSPECIFIED = 0, - ADMIN_READ = 1, - DATA_WRITE = 2, - DATA_READ = 3, -} - -impl ::protobuf::ProtobufEnum for AuditLogConfig_LogType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(AuditLogConfig_LogType::ADMIN_READ), - 2 => ::std::option::Option::Some(AuditLogConfig_LogType::DATA_WRITE), - 3 => ::std::option::Option::Some(AuditLogConfig_LogType::DATA_READ), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [AuditLogConfig_LogType] = &[ - AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED, - AuditLogConfig_LogType::ADMIN_READ, - AuditLogConfig_LogType::DATA_WRITE, - AuditLogConfig_LogType::DATA_READ, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AuditLogConfig.LogType", file_descriptor_proto()) - }) +impl ::protobuf::MessageFull for Binding { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Binding").unwrap()).clone() } } -impl ::std::marker::Copy for AuditLogConfig_LogType { -} - -impl ::std::default::Default for AuditLogConfig_LogType { - fn default() -> Self { - AuditLogConfig_LogType::LOG_TYPE_UNSPECIFIED +impl ::std::fmt::Display for Binding { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AuditLogConfig_LogType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for Binding { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The difference delta between two policies. +// @@protoc_insertion_point(message:google.iam.v1.PolicyDelta) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PolicyDelta { // message fields - pub binding_deltas: ::protobuf::RepeatedField, - pub audit_config_deltas: ::protobuf::RepeatedField, + /// The delta for Bindings between two policies. + // @@protoc_insertion_point(field:google.iam.v1.PolicyDelta.binding_deltas) + pub binding_deltas: ::std::vec::Vec, + /// The delta for AuditConfigs between two policies. + // @@protoc_insertion_point(field:google.iam.v1.PolicyDelta.audit_config_deltas) + pub audit_config_deltas: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.PolicyDelta.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PolicyDelta { @@ -1046,84 +406,45 @@ impl PolicyDelta { ::std::default::Default::default() } - // repeated .google.iam.v1.BindingDelta binding_deltas = 1; - - - pub fn get_binding_deltas(&self) -> &[BindingDelta] { - &self.binding_deltas - } - pub fn clear_binding_deltas(&mut self) { - self.binding_deltas.clear(); - } - - // Param is passed by value, moved - pub fn set_binding_deltas(&mut self, v: ::protobuf::RepeatedField) { - self.binding_deltas = v; - } - - // Mutable pointer to the field. - pub fn mut_binding_deltas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.binding_deltas - } - - // Take field - pub fn take_binding_deltas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.binding_deltas, ::protobuf::RepeatedField::new()) - } - - // repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; - - - pub fn get_audit_config_deltas(&self) -> &[AuditConfigDelta] { - &self.audit_config_deltas - } - pub fn clear_audit_config_deltas(&mut self) { - self.audit_config_deltas.clear(); - } - - // Param is passed by value, moved - pub fn set_audit_config_deltas(&mut self, v: ::protobuf::RepeatedField) { - self.audit_config_deltas = v; - } - - // Mutable pointer to the field. - pub fn mut_audit_config_deltas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.audit_config_deltas - } - - // Take field - pub fn take_audit_config_deltas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.audit_config_deltas, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "binding_deltas", + |m: &PolicyDelta| { &m.binding_deltas }, + |m: &mut PolicyDelta| { &mut m.binding_deltas }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "audit_config_deltas", + |m: &PolicyDelta| { &m.audit_config_deltas }, + |m: &mut PolicyDelta| { &mut m.audit_config_deltas }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PolicyDelta", + fields, + oneofs, + ) } } impl ::protobuf::Message for PolicyDelta { + const NAME: &'static str = "PolicyDelta"; + fn is_initialized(&self) -> bool { - for v in &self.binding_deltas { - if !v.is_initialized() { - return false; - } - }; - for v in &self.audit_config_deltas { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.binding_deltas)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.binding_deltas.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.audit_config_deltas)?; + 18 => { + self.audit_config_deltas.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1132,124 +453,103 @@ impl ::protobuf::Message for PolicyDelta { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.binding_deltas { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.audit_config_deltas { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.binding_deltas { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.audit_config_deltas { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PolicyDelta { PolicyDelta::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "binding_deltas", - |m: &PolicyDelta| { &m.binding_deltas }, - |m: &mut PolicyDelta| { &mut m.binding_deltas }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "audit_config_deltas", - |m: &PolicyDelta| { &m.audit_config_deltas }, - |m: &mut PolicyDelta| { &mut m.audit_config_deltas }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PolicyDelta", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.binding_deltas.clear(); + self.audit_config_deltas.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PolicyDelta { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PolicyDelta::new) + static instance: PolicyDelta = PolicyDelta { + binding_deltas: ::std::vec::Vec::new(), + audit_config_deltas: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PolicyDelta { - fn clear(&mut self) { - self.binding_deltas.clear(); - self.audit_config_deltas.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PolicyDelta { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PolicyDelta").unwrap()).clone() } } -impl ::std::fmt::Debug for PolicyDelta { +impl ::std::fmt::Display for PolicyDelta { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PolicyDelta { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// One delta entry for Binding. Each individual change (only one member in each +/// entry) to a binding will be a separate entry. +// @@protoc_insertion_point(message:google.iam.v1.BindingDelta) +#[derive(PartialEq,Clone,Default,Debug)] pub struct BindingDelta { // message fields - pub action: BindingDelta_Action, + /// The action that was performed on a Binding. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.BindingDelta.action) + pub action: ::protobuf::EnumOrUnknown, + /// Role that is assigned to `members`. + /// For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.BindingDelta.role) pub role: ::std::string::String, + /// A single identity requesting access for a Cloud Platform resource. + /// Follows the same format of Binding.members. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.BindingDelta.member) pub member: ::std::string::String, - pub condition: ::protobuf::SingularPtrField, + /// The condition that is associated with this binding. + // @@protoc_insertion_point(field:google.iam.v1.BindingDelta.condition) + pub condition: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.BindingDelta.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a BindingDelta { @@ -1263,135 +563,61 @@ impl BindingDelta { ::std::default::Default::default() } - // .google.iam.v1.BindingDelta.Action action = 1; - - - pub fn get_action(&self) -> BindingDelta_Action { - self.action - } - pub fn clear_action(&mut self) { - self.action = BindingDelta_Action::ACTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_action(&mut self, v: BindingDelta_Action) { - self.action = v; - } - - // string role = 2; - - - pub fn get_role(&self) -> &str { - &self.role - } - pub fn clear_role(&mut self) { - self.role.clear(); - } - - // Param is passed by value, moved - pub fn set_role(&mut self, v: ::std::string::String) { - self.role = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_role(&mut self) -> &mut ::std::string::String { - &mut self.role - } - - // Take field - pub fn take_role(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.role, ::std::string::String::new()) - } - - // string member = 3; - - - pub fn get_member(&self) -> &str { - &self.member - } - pub fn clear_member(&mut self) { - self.member.clear(); - } - - // Param is passed by value, moved - pub fn set_member(&mut self, v: ::std::string::String) { - self.member = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_member(&mut self) -> &mut ::std::string::String { - &mut self.member - } - - // Take field - pub fn take_member(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.member, ::std::string::String::new()) - } - - // .google.type.Expr condition = 4; - - - pub fn get_condition(&self) -> &super::expr::Expr { - self.condition.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_condition(&mut self) { - self.condition.clear(); - } - - pub fn has_condition(&self) -> bool { - self.condition.is_some() - } - - // Param is passed by value, moved - pub fn set_condition(&mut self, v: super::expr::Expr) { - self.condition = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_condition(&mut self) -> &mut super::expr::Expr { - if self.condition.is_none() { - self.condition.set_default(); - } - self.condition.as_mut().unwrap() - } - - // Take field - pub fn take_condition(&mut self) -> super::expr::Expr { - self.condition.take().unwrap_or_else(|| super::expr::Expr::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "action", + |m: &BindingDelta| { &m.action }, + |m: &mut BindingDelta| { &mut m.action }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "role", + |m: &BindingDelta| { &m.role }, + |m: &mut BindingDelta| { &mut m.role }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "member", + |m: &BindingDelta| { &m.member }, + |m: &mut BindingDelta| { &mut m.member }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::expr::Expr>( + "condition", + |m: &BindingDelta| { &m.condition }, + |m: &mut BindingDelta| { &mut m.condition }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BindingDelta", + fields, + oneofs, + ) } } impl ::protobuf::Message for BindingDelta { + const NAME: &'static str = "BindingDelta"; + fn is_initialized(&self) -> bool { - for v in &self.condition { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.action, 1, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.action = is.read_enum_or_unknown()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.role)?; + 18 => { + self.role = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.member)?; + 26 => { + self.member = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.condition)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.condition)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1400,10 +626,10 @@ impl ::protobuf::Message for BindingDelta { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.action != BindingDelta_Action::ACTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.action); + if self.action != ::protobuf::EnumOrUnknown::new(binding_delta::Action::ACTION_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.action.value()); } if !self.role.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.role); @@ -1411,18 +637,18 @@ impl ::protobuf::Message for BindingDelta { if !self.member.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.member); } - if let Some(ref v) = self.condition.as_ref() { + if let Some(v) = self.condition.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.action != BindingDelta_Action::ACTION_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.action))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.action != ::protobuf::EnumOrUnknown::new(binding_delta::Action::ACTION_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.action))?; } if !self.role.is_empty() { os.write_string(2, &self.role)?; @@ -1430,168 +656,162 @@ impl ::protobuf::Message for BindingDelta { if !self.member.is_empty() { os.write_string(3, &self.member)?; } - if let Some(ref v) = self.condition.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.condition.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> BindingDelta { BindingDelta::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "action", - |m: &BindingDelta| { &m.action }, - |m: &mut BindingDelta| { &mut m.action }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "role", - |m: &BindingDelta| { &m.role }, - |m: &mut BindingDelta| { &mut m.role }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "member", - |m: &BindingDelta| { &m.member }, - |m: &mut BindingDelta| { &mut m.member }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "condition", - |m: &BindingDelta| { &m.condition }, - |m: &mut BindingDelta| { &mut m.condition }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BindingDelta", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.action = ::protobuf::EnumOrUnknown::new(binding_delta::Action::ACTION_UNSPECIFIED); + self.role.clear(); + self.member.clear(); + self.condition.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static BindingDelta { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BindingDelta::new) + static instance: BindingDelta = BindingDelta { + action: ::protobuf::EnumOrUnknown::from_i32(0), + role: ::std::string::String::new(), + member: ::std::string::String::new(), + condition: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BindingDelta { - fn clear(&mut self) { - self.action = BindingDelta_Action::ACTION_UNSPECIFIED; - self.role.clear(); - self.member.clear(); - self.condition.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BindingDelta { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BindingDelta").unwrap()).clone() } } -impl ::std::fmt::Debug for BindingDelta { +impl ::std::fmt::Display for BindingDelta { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for BindingDelta { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum BindingDelta_Action { - ACTION_UNSPECIFIED = 0, - ADD = 1, - REMOVE = 2, + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for BindingDelta_Action { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `BindingDelta` +pub mod binding_delta { + /// The type of action performed on a Binding in a policy. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.iam.v1.BindingDelta.Action) + pub enum Action { + // @@protoc_insertion_point(enum_value:google.iam.v1.BindingDelta.Action.ACTION_UNSPECIFIED) + ACTION_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.iam.v1.BindingDelta.Action.ADD) + ADD = 1, + // @@protoc_insertion_point(enum_value:google.iam.v1.BindingDelta.Action.REMOVE) + REMOVE = 2, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(BindingDelta_Action::ACTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(BindingDelta_Action::ADD), - 2 => ::std::option::Option::Some(BindingDelta_Action::REMOVE), - _ => ::std::option::Option::None + impl ::protobuf::Enum for Action { + const NAME: &'static str = "Action"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Action::ACTION_UNSPECIFIED), + 1 => ::std::option::Option::Some(Action::ADD), + 2 => ::std::option::Option::Some(Action::REMOVE), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "ACTION_UNSPECIFIED" => ::std::option::Option::Some(Action::ACTION_UNSPECIFIED), + "ADD" => ::std::option::Option::Some(Action::ADD), + "REMOVE" => ::std::option::Option::Some(Action::REMOVE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [BindingDelta_Action] = &[ - BindingDelta_Action::ACTION_UNSPECIFIED, - BindingDelta_Action::ADD, - BindingDelta_Action::REMOVE, + const VALUES: &'static [Action] = &[ + Action::ACTION_UNSPECIFIED, + Action::ADD, + Action::REMOVE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("BindingDelta.Action", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Action { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("BindingDelta.Action").unwrap()).clone() + } -impl ::std::marker::Copy for BindingDelta_Action { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for BindingDelta_Action { - fn default() -> Self { - BindingDelta_Action::ACTION_UNSPECIFIED + impl ::std::default::Default for Action { + fn default() -> Self { + Action::ACTION_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for BindingDelta_Action { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Action { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("BindingDelta.Action") + } } } -#[derive(PartialEq,Clone,Default)] +/// One delta entry for AuditConfig. Each individual change (only one +/// exempted_member in each entry) to a AuditConfig will be a separate entry. +// @@protoc_insertion_point(message:google.iam.v1.AuditConfigDelta) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AuditConfigDelta { // message fields - pub action: AuditConfigDelta_Action, + /// The action that was performed on an audit configuration in a policy. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.AuditConfigDelta.action) + pub action: ::protobuf::EnumOrUnknown, + /// Specifies a service that was configured for Cloud Audit Logging. + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.AuditConfigDelta.service) pub service: ::std::string::String, + /// A single identity that is exempted from "data access" audit + /// logging for the `service` specified above. + /// Follows the same format of Binding.members. + // @@protoc_insertion_point(field:google.iam.v1.AuditConfigDelta.exempted_member) pub exempted_member: ::std::string::String, + /// Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always + /// enabled, and cannot be configured. + /// Required + // @@protoc_insertion_point(field:google.iam.v1.AuditConfigDelta.log_type) pub log_type: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.iam.v1.AuditConfigDelta.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AuditConfigDelta { @@ -1605,123 +825,61 @@ impl AuditConfigDelta { ::std::default::Default::default() } - // .google.iam.v1.AuditConfigDelta.Action action = 1; - - - pub fn get_action(&self) -> AuditConfigDelta_Action { - self.action - } - pub fn clear_action(&mut self) { - self.action = AuditConfigDelta_Action::ACTION_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_action(&mut self, v: AuditConfigDelta_Action) { - self.action = v; - } - - // string service = 2; - - - pub fn get_service(&self) -> &str { - &self.service - } - pub fn clear_service(&mut self) { - self.service.clear(); - } - - // Param is passed by value, moved - pub fn set_service(&mut self, v: ::std::string::String) { - self.service = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service(&mut self) -> &mut ::std::string::String { - &mut self.service - } - - // Take field - pub fn take_service(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service, ::std::string::String::new()) - } - - // string exempted_member = 3; - - - pub fn get_exempted_member(&self) -> &str { - &self.exempted_member - } - pub fn clear_exempted_member(&mut self) { - self.exempted_member.clear(); - } - - // Param is passed by value, moved - pub fn set_exempted_member(&mut self, v: ::std::string::String) { - self.exempted_member = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exempted_member(&mut self) -> &mut ::std::string::String { - &mut self.exempted_member - } - - // Take field - pub fn take_exempted_member(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exempted_member, ::std::string::String::new()) - } - - // string log_type = 4; - - - pub fn get_log_type(&self) -> &str { - &self.log_type - } - pub fn clear_log_type(&mut self) { - self.log_type.clear(); - } - - // Param is passed by value, moved - pub fn set_log_type(&mut self, v: ::std::string::String) { - self.log_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_log_type(&mut self) -> &mut ::std::string::String { - &mut self.log_type - } - - // Take field - pub fn take_log_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.log_type, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "action", + |m: &AuditConfigDelta| { &m.action }, + |m: &mut AuditConfigDelta| { &mut m.action }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service", + |m: &AuditConfigDelta| { &m.service }, + |m: &mut AuditConfigDelta| { &mut m.service }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "exempted_member", + |m: &AuditConfigDelta| { &m.exempted_member }, + |m: &mut AuditConfigDelta| { &mut m.exempted_member }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "log_type", + |m: &AuditConfigDelta| { &m.log_type }, + |m: &mut AuditConfigDelta| { &mut m.log_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AuditConfigDelta", + fields, + oneofs, + ) } } impl ::protobuf::Message for AuditConfigDelta { + const NAME: &'static str = "AuditConfigDelta"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.action, 1, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.action = is.read_enum_or_unknown()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service)?; + 18 => { + self.service = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exempted_member)?; + 26 => { + self.exempted_member = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.log_type)?; + 34 => { + self.log_type = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1730,10 +888,10 @@ impl ::protobuf::Message for AuditConfigDelta { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.action != AuditConfigDelta_Action::ACTION_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.action); + if self.action != ::protobuf::EnumOrUnknown::new(audit_config_delta::Action::ACTION_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.action.value()); } if !self.service.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.service); @@ -1744,14 +902,14 @@ impl ::protobuf::Message for AuditConfigDelta { if !self.log_type.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.log_type); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.action != AuditConfigDelta_Action::ACTION_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.action))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.action != ::protobuf::EnumOrUnknown::new(audit_config_delta::Action::ACTION_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.action))?; } if !self.service.is_empty() { os.write_string(2, &self.service)?; @@ -1762,601 +920,427 @@ impl ::protobuf::Message for AuditConfigDelta { if !self.log_type.is_empty() { os.write_string(4, &self.log_type)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AuditConfigDelta { AuditConfigDelta::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "action", - |m: &AuditConfigDelta| { &m.action }, - |m: &mut AuditConfigDelta| { &mut m.action }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service", - |m: &AuditConfigDelta| { &m.service }, - |m: &mut AuditConfigDelta| { &mut m.service }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exempted_member", - |m: &AuditConfigDelta| { &m.exempted_member }, - |m: &mut AuditConfigDelta| { &mut m.exempted_member }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "log_type", - |m: &AuditConfigDelta| { &m.log_type }, - |m: &mut AuditConfigDelta| { &mut m.log_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AuditConfigDelta", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.action = ::protobuf::EnumOrUnknown::new(audit_config_delta::Action::ACTION_UNSPECIFIED); + self.service.clear(); + self.exempted_member.clear(); + self.log_type.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static AuditConfigDelta { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AuditConfigDelta::new) + static instance: AuditConfigDelta = AuditConfigDelta { + action: ::protobuf::EnumOrUnknown::from_i32(0), + service: ::std::string::String::new(), + exempted_member: ::std::string::String::new(), + log_type: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AuditConfigDelta { - fn clear(&mut self) { - self.action = AuditConfigDelta_Action::ACTION_UNSPECIFIED; - self.service.clear(); - self.exempted_member.clear(); - self.log_type.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AuditConfigDelta { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AuditConfigDelta").unwrap()).clone() } } -impl ::std::fmt::Debug for AuditConfigDelta { +impl ::std::fmt::Display for AuditConfigDelta { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AuditConfigDelta { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum AuditConfigDelta_Action { - ACTION_UNSPECIFIED = 0, - ADD = 1, - REMOVE = 2, + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::ProtobufEnum for AuditConfigDelta_Action { - fn value(&self) -> i32 { - *self as i32 +/// Nested message and enums of message `AuditConfigDelta` +pub mod audit_config_delta { + /// The type of action performed on an audit configuration in a policy. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.iam.v1.AuditConfigDelta.Action) + pub enum Action { + // @@protoc_insertion_point(enum_value:google.iam.v1.AuditConfigDelta.Action.ACTION_UNSPECIFIED) + ACTION_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.iam.v1.AuditConfigDelta.Action.ADD) + ADD = 1, + // @@protoc_insertion_point(enum_value:google.iam.v1.AuditConfigDelta.Action.REMOVE) + REMOVE = 2, } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(AuditConfigDelta_Action::ACTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(AuditConfigDelta_Action::ADD), - 2 => ::std::option::Option::Some(AuditConfigDelta_Action::REMOVE), - _ => ::std::option::Option::None + impl ::protobuf::Enum for Action { + const NAME: &'static str = "Action"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Action::ACTION_UNSPECIFIED), + 1 => ::std::option::Option::Some(Action::ADD), + 2 => ::std::option::Option::Some(Action::REMOVE), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "ACTION_UNSPECIFIED" => ::std::option::Option::Some(Action::ACTION_UNSPECIFIED), + "ADD" => ::std::option::Option::Some(Action::ADD), + "REMOVE" => ::std::option::Option::Some(Action::REMOVE), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [AuditConfigDelta_Action] = &[ - AuditConfigDelta_Action::ACTION_UNSPECIFIED, - AuditConfigDelta_Action::ADD, - AuditConfigDelta_Action::REMOVE, + const VALUES: &'static [Action] = &[ + Action::ACTION_UNSPECIFIED, + Action::ADD, + Action::REMOVE, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("AuditConfigDelta.Action", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Action { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("AuditConfigDelta.Action").unwrap()).clone() + } -impl ::std::marker::Copy for AuditConfigDelta_Action { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for AuditConfigDelta_Action { - fn default() -> Self { - AuditConfigDelta_Action::ACTION_UNSPECIFIED + impl ::std::default::Default for Action { + fn default() -> Self { + Action::ACTION_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for AuditConfigDelta_Action { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Action { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("AuditConfigDelta.Action") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1agoogle/iam/v1/policy.proto\x12\rgoogle.iam.v1\x1a\x16google/type/e\ - xpr.proto\"\xab\x01\n\x06Policy\x12\x18\n\x07version\x18\x01\x20\x01(\ - \x05R\x07version\x122\n\x08bindings\x18\x04\x20\x03(\x0b2\x16.google.iam\ - .v1.BindingR\x08bindings\x12?\n\raudit_configs\x18\x06\x20\x03(\x0b2\x1a\ - .google.iam.v1.AuditConfigR\x0cauditConfigs\x12\x12\n\x04etag\x18\x03\ - \x20\x01(\x0cR\x04etag\"h\n\x07Binding\x12\x12\n\x04role\x18\x01\x20\x01\ - (\tR\x04role\x12\x18\n\x07members\x18\x02\x20\x03(\tR\x07members\x12/\n\ - \tcondition\x18\x03\x20\x01(\x0b2\x11.google.type.ExprR\tcondition\"r\n\ - \x0bAuditConfig\x12\x18\n\x07service\x18\x01\x20\x01(\tR\x07service\x12I\ - \n\x11audit_log_configs\x18\x03\x20\x03(\x0b2\x1d.google.iam.v1.AuditLog\ - ConfigR\x0fauditLogConfigs\"\xd1\x01\n\x0eAuditLogConfig\x12@\n\x08log_t\ - ype\x18\x01\x20\x01(\x0e2%.google.iam.v1.AuditLogConfig.LogTypeR\x07logT\ - ype\x12)\n\x10exempted_members\x18\x02\x20\x03(\tR\x0fexemptedMembers\"R\ - \n\x07LogType\x12\x18\n\x14LOG_TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nADMIN_R\ - EAD\x10\x01\x12\x0e\n\nDATA_WRITE\x10\x02\x12\r\n\tDATA_READ\x10\x03\"\ - \xa2\x01\n\x0bPolicyDelta\x12B\n\x0ebinding_deltas\x18\x01\x20\x03(\x0b2\ - \x1b.google.iam.v1.BindingDeltaR\rbindingDeltas\x12O\n\x13audit_config_d\ - eltas\x18\x02\x20\x03(\x0b2\x1f.google.iam.v1.AuditConfigDeltaR\x11audit\ - ConfigDeltas\"\xde\x01\n\x0cBindingDelta\x12:\n\x06action\x18\x01\x20\ - \x01(\x0e2\".google.iam.v1.BindingDelta.ActionR\x06action\x12\x12\n\x04r\ - ole\x18\x02\x20\x01(\tR\x04role\x12\x16\n\x06member\x18\x03\x20\x01(\tR\ - \x06member\x12/\n\tcondition\x18\x04\x20\x01(\x0b2\x11.google.type.ExprR\ - \tcondition\"5\n\x06Action\x12\x16\n\x12ACTION_UNSPECIFIED\x10\0\x12\x07\ - \n\x03ADD\x10\x01\x12\n\n\x06REMOVE\x10\x02\"\xe7\x01\n\x10AuditConfigDe\ - lta\x12>\n\x06action\x18\x01\x20\x01(\x0e2&.google.iam.v1.AuditConfigDel\ - ta.ActionR\x06action\x12\x18\n\x07service\x18\x02\x20\x01(\tR\x07service\ - \x12'\n\x0fexempted_member\x18\x03\x20\x01(\tR\x0eexemptedMember\x12\x19\ - \n\x08log_type\x18\x04\x20\x01(\tR\x07logType\"5\n\x06Action\x12\x16\n\ - \x12ACTION_UNSPECIFIED\x10\0\x12\x07\n\x03ADD\x10\x01\x12\n\n\x06REMOVE\ - \x10\x02B|\n\x11com.google.iam.v1B\x0bPolicyProtoP\x01Z)cloud.google.com\ - /go/iam/apiv1/iampb;iampb\xf8\x01\x01\xaa\x02\x13Google.Cloud.Iam.V1\xca\ - \x02\x13Google\\Cloud\\Iam\\V1J\x9au\n\x07\x12\x05\x0e\0\x99\x03\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x16\n\t\n\x02\x03\0\ - \x12\x03\x12\0\x20\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\ - \x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\00\n\t\n\x02\x08%\x12\x03\ - \x15\00\n\x08\n\x01\x08\x12\x03\x16\0@\n\t\n\x02\x08\x0b\x12\x03\x16\0@\ - \n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\ - \x01\x08\x12\x03\x18\0,\n\t\n\x02\x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\ - \x12\x03\x19\0*\n\t\n\x02\x08\x01\x12\x03\x19\0*\n\x08\n\x01\x08\x12\x03\ - \x1a\00\n\t\n\x02\x08)\x12\x03\x1a\00\n\x9a\x13\n\x02\x04\0\x12\x05e\0\ - \x9d\x01\x01\x1a\x8c\x13\x20An\x20Identity\x20and\x20Access\x20Managemen\ - t\x20(IAM)\x20policy,\x20which\x20specifies\x20access\n\x20controls\x20f\ - or\x20Google\x20Cloud\x20resources.\n\n\n\x20A\x20`Policy`\x20is\x20a\ - \x20collection\x20of\x20`bindings`.\x20A\x20`binding`\x20binds\x20one\ - \x20or\x20more\n\x20`members`,\x20or\x20principals,\x20to\x20a\x20single\ - \x20`role`.\x20Principals\x20can\x20be\x20user\n\x20accounts,\x20service\ - \x20accounts,\x20Google\x20groups,\x20and\x20domains\x20(such\x20as\x20G\ - \x20Suite).\x20A\n\x20`role`\x20is\x20a\x20named\x20list\x20of\x20permis\ - sions;\x20each\x20`role`\x20can\x20be\x20an\x20IAM\x20predefined\n\x20ro\ - le\x20or\x20a\x20user-created\x20custom\x20role.\n\n\x20For\x20some\x20t\ - ypes\x20of\x20Google\x20Cloud\x20resources,\x20a\x20`binding`\x20can\x20\ - also\x20specify\x20a\n\x20`condition`,\x20which\x20is\x20a\x20logical\ - \x20expression\x20that\x20allows\x20access\x20to\x20a\x20resource\n\x20o\ - nly\x20if\x20the\x20expression\x20evaluates\x20to\x20`true`.\x20A\x20con\ - dition\x20can\x20add\x20constraints\n\x20based\x20on\x20attributes\x20of\ - \x20the\x20request,\x20the\x20resource,\x20or\x20both.\x20To\x20learn\ - \x20which\n\x20resources\x20support\x20conditions\x20in\x20their\x20IAM\ - \x20policies,\x20see\x20the\n\x20[IAM\n\x20documentation](https://cloud.\ - google.com/iam/help/conditions/resource-policies).\n\n\x20**JSON\x20exam\ - ple:**\n\n\x20```\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"\ - bindings\":\x20[\n\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\"role\":\x20\"roles/resourcemanager.org\ - anizationAdmin\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"members\ - \":\x20[\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"user:mik\ - e@example.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\ - group:admins@example.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"domain:google.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"serviceAccount:my-project-id@appspot.gserviceaccount.c\ - om\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20},\n\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\"role\":\x20\"roles/resourcemanager\ - .organizationViewer\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"me\ - mbers\":\x20[\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"use\ - r:eve@example.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20],\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"condition\":\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"title\":\x20\"expirabl\ - e\x20access\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"de\ - scription\":\x20\"Does\x20not\x20grant\x20access\x20after\x20Sep\x202020\ - \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"expression\":\ - \x20\"request.time\x20<\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20timestamp('2020-10-01T00:00:00.000Z')\",\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\ - \x20\x20\x20\x20\x20\x20],\n\x20\x20\x20\x20\x20\x20\x20\"etag\":\x20\"B\ - wWWja0YfJA=\",\n\x20\x20\x20\x20\x20\x20\x20\"version\":\x203\n\x20\x20\ - \x20\x20\x20}\n\x20```\n\n\x20**YAML\x20example:**\n\n\x20```\n\x20\x20\ - \x20\x20\x20bindings:\n\x20\x20\x20\x20\x20-\x20members:\n\x20\x20\x20\ - \x20\x20\x20\x20-\x20user:mike@example.com\n\x20\x20\x20\x20\x20\x20\x20\ - -\x20group:admins@example.com\n\x20\x20\x20\x20\x20\x20\x20-\x20domain:g\ - oogle.com\n\x20\x20\x20\x20\x20\x20\x20-\x20serviceAccount:my-project-id\ - @appspot.gserviceaccount.com\n\x20\x20\x20\x20\x20\x20\x20role:\x20roles\ - /resourcemanager.organizationAdmin\n\x20\x20\x20\x20\x20-\x20members:\n\ - \x20\x20\x20\x20\x20\x20\x20-\x20user:eve@example.com\n\x20\x20\x20\x20\ - \x20\x20\x20role:\x20roles/resourcemanager.organizationViewer\n\x20\x20\ - \x20\x20\x20\x20\x20condition:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20titl\ - e:\x20expirable\x20access\n\x20\x20\x20\x20\x20\x20\x20\x20\x20descripti\ - on:\x20Does\x20not\x20grant\x20access\x20after\x20Sep\x202020\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20expression:\x20request.time\x20<\x20timestam\ - p('2020-10-01T00:00:00.000Z')\n\x20\x20\x20\x20\x20etag:\x20BwWWja0YfJA=\ - \n\x20\x20\x20\x20\x20version:\x203\n\x20```\n\n\x20For\x20a\x20descript\ - ion\x20of\x20IAM\x20and\x20its\x20features,\x20see\x20the\n\x20[IAM\x20d\ - ocumentation](https://cloud.google.com/iam/docs/).\n\n\n\n\x03\x04\0\x01\ - \x12\x03e\x08\x0e\n\xde\x08\n\x04\x04\0\x02\0\x12\x03\x7f\x02\x14\x1a\ - \xd0\x08\x20Specifies\x20the\x20format\x20of\x20the\x20policy.\n\n\x20Va\ - lid\x20values\x20are\x20`0`,\x20`1`,\x20and\x20`3`.\x20Requests\x20that\ - \x20specify\x20an\x20invalid\x20value\n\x20are\x20rejected.\n\n\x20Any\ - \x20operation\x20that\x20affects\x20conditional\x20role\x20bindings\x20m\ - ust\x20specify\x20version\n\x20`3`.\x20This\x20requirement\x20applies\ - \x20to\x20the\x20following\x20operations:\n\n\x20*\x20Getting\x20a\x20po\ - licy\x20that\x20includes\x20a\x20conditional\x20role\x20binding\n\x20*\ - \x20Adding\x20a\x20conditional\x20role\x20binding\x20to\x20a\x20policy\n\ - \x20*\x20Changing\x20a\x20conditional\x20role\x20binding\x20in\x20a\x20p\ - olicy\n\x20*\x20Removing\x20any\x20role\x20binding,\x20with\x20or\x20wit\ - hout\x20a\x20condition,\x20from\x20a\x20policy\n\x20\x20\x20that\x20incl\ - udes\x20conditions\n\n\x20**Important:**\x20If\x20you\x20use\x20IAM\x20C\ - onditions,\x20you\x20must\x20include\x20the\x20`etag`\x20field\n\x20when\ - ever\x20you\x20call\x20`setIamPolicy`.\x20If\x20you\x20omit\x20this\x20f\ - ield,\x20then\x20IAM\x20allows\n\x20you\x20to\x20overwrite\x20a\x20versi\ - on\x20`3`\x20policy\x20with\x20a\x20version\x20`1`\x20policy,\x20and\x20\ - all\x20of\n\x20the\x20conditions\x20in\x20the\x20version\x20`3`\x20polic\ - y\x20are\x20lost.\n\n\x20If\x20a\x20policy\x20does\x20not\x20include\x20\ - any\x20conditions,\x20operations\x20on\x20that\x20policy\x20may\n\x20spe\ - cify\x20any\x20valid\x20version\x20or\x20leave\x20the\x20field\x20unset.\ - \n\n\x20To\x20learn\x20which\x20resources\x20support\x20conditions\x20in\ - \x20their\x20IAM\x20policies,\x20see\x20the\n\x20[IAM\n\x20documentation\ - ](https://cloud.google.com/iam/help/conditions/resource-policies).\n\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x7f\x02\x07\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03\x7f\x08\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x7f\x12\x13\ - \n\xe6\x04\n\x04\x04\0\x02\x01\x12\x04\x8b\x01\x02\x20\x1a\xd7\x04\x20As\ - sociates\x20a\x20list\x20of\x20`members`,\x20or\x20principals,\x20with\ - \x20a\x20`role`.\x20Optionally,\n\x20may\x20specify\x20a\x20`condition`\ - \x20that\x20determines\x20how\x20and\x20when\x20the\x20`bindings`\x20are\ - \n\x20applied.\x20Each\x20of\x20the\x20`bindings`\x20must\x20contain\x20\ - at\x20least\x20one\x20principal.\n\n\x20The\x20`bindings`\x20in\x20a\x20\ - `Policy`\x20can\x20refer\x20to\x20up\x20to\x201,500\x20principals;\x20up\ - \x20to\x20250\n\x20of\x20these\x20principals\x20can\x20be\x20Google\x20g\ - roups.\x20Each\x20occurrence\x20of\x20a\x20principal\n\x20counts\x20towa\ - rds\x20these\x20limits.\x20For\x20example,\x20if\x20the\x20`bindings`\ - \x20grant\x2050\n\x20different\x20roles\x20to\x20`user:alice@example.com\ - `,\x20and\x20not\x20to\x20any\x20other\n\x20principal,\x20then\x20you\ - \x20can\x20add\x20another\x201,450\x20principals\x20to\x20the\x20`bindin\ - gs`\x20in\n\x20the\x20`Policy`.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\ - \x8b\x01\x02\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x8b\x01\x0b\x12\n\r\n\ - \x05\x04\0\x02\x01\x01\x12\x04\x8b\x01\x13\x1b\n\r\n\x05\x04\0\x02\x01\ - \x03\x12\x04\x8b\x01\x1e\x1f\nL\n\x04\x04\0\x02\x02\x12\x04\x8e\x01\x02)\ - \x1a>\x20Specifies\x20cloud\x20audit\x20logging\x20configuration\x20for\ - \x20this\x20policy.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\x8e\x01\x02\n\ - \n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x8e\x01\x0b\x16\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\x8e\x01\x17$\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x8e\ - \x01'(\n\xa5\x06\n\x04\x04\0\x02\x03\x12\x04\x9c\x01\x02\x11\x1a\x96\x06\ - \x20`etag`\x20is\x20used\x20for\x20optimistic\x20concurrency\x20control\ - \x20as\x20a\x20way\x20to\x20help\n\x20prevent\x20simultaneous\x20updates\ - \x20of\x20a\x20policy\x20from\x20overwriting\x20each\x20other.\n\x20It\ - \x20is\x20strongly\x20suggested\x20that\x20systems\x20make\x20use\x20of\ - \x20the\x20`etag`\x20in\x20the\n\x20read-modify-write\x20cycle\x20to\x20\ - perform\x20policy\x20updates\x20in\x20order\x20to\x20avoid\x20race\n\x20\ - conditions:\x20An\x20`etag`\x20is\x20returned\x20in\x20the\x20response\ - \x20to\x20`getIamPolicy`,\x20and\n\x20systems\x20are\x20expected\x20to\ - \x20put\x20that\x20etag\x20in\x20the\x20request\x20to\x20`setIamPolicy`\ - \x20to\n\x20ensure\x20that\x20their\x20change\x20will\x20be\x20applied\ - \x20to\x20the\x20same\x20version\x20of\x20the\x20policy.\n\n\x20**Import\ - ant:**\x20If\x20you\x20use\x20IAM\x20Conditions,\x20you\x20must\x20inclu\ - de\x20the\x20`etag`\x20field\n\x20whenever\x20you\x20call\x20`setIamPoli\ - cy`.\x20If\x20you\x20omit\x20this\x20field,\x20then\x20IAM\x20allows\n\ - \x20you\x20to\x20overwrite\x20a\x20version\x20`3`\x20policy\x20with\x20a\ - \x20version\x20`1`\x20policy,\x20and\x20all\x20of\n\x20the\x20conditions\ - \x20in\x20the\x20version\x20`3`\x20policy\x20are\x20lost.\n\n\r\n\x05\ - \x04\0\x02\x03\x05\x12\x04\x9c\x01\x02\x07\n\r\n\x05\x04\0\x02\x03\x01\ - \x12\x04\x9c\x01\x08\x0c\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x9c\x01\x0f\ - \x10\nC\n\x02\x04\x01\x12\x06\xa0\x01\0\xe0\x01\x01\x1a5\x20Associates\ - \x20`members`,\x20or\x20principals,\x20with\x20a\x20`role`.\n\n\x0b\n\ - \x03\x04\x01\x01\x12\x04\xa0\x01\x08\x0f\n\x8f\x01\n\x04\x04\x01\x02\0\ - \x12\x04\xa3\x01\x02\x12\x1a\x80\x01\x20Role\x20that\x20is\x20assigned\ - \x20to\x20the\x20list\x20of\x20`members`,\x20or\x20principals.\n\x20For\ - \x20example,\x20`roles/viewer`,\x20`roles/editor`,\x20or\x20`roles/owner\ - `.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xa3\x01\x02\x08\n\r\n\x05\x04\ - \x01\x02\0\x01\x12\x04\xa3\x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\ - \xa3\x01\x10\x11\n\xea\x0f\n\x04\x04\x01\x02\x01\x12\x04\xd1\x01\x02\x1e\ - \x1a\xdb\x0f\x20Specifies\x20the\x20principals\x20requesting\x20access\ - \x20for\x20a\x20Google\x20Cloud\x20resource.\n\x20`members`\x20can\x20ha\ - ve\x20the\x20following\x20values:\n\n\x20*\x20`allUsers`:\x20A\x20specia\ - l\x20identifier\x20that\x20represents\x20anyone\x20who\x20is\n\x20\x20\ - \x20\x20on\x20the\x20internet;\x20with\x20or\x20without\x20a\x20Google\ - \x20account.\n\n\x20*\x20`allAuthenticatedUsers`:\x20A\x20special\x20ide\ - ntifier\x20that\x20represents\x20anyone\n\x20\x20\x20\x20who\x20is\x20au\ - thenticated\x20with\x20a\x20Google\x20account\x20or\x20a\x20service\x20a\ - ccount.\n\n\x20*\x20`user:{emailid}`:\x20An\x20email\x20address\x20that\ - \x20represents\x20a\x20specific\x20Google\n\x20\x20\x20\x20account.\x20F\ - or\x20example,\x20`alice@example.com`\x20.\n\n\n\x20*\x20`serviceAccount\ - :{emailid}`:\x20An\x20email\x20address\x20that\x20represents\x20a\x20ser\ - vice\n\x20\x20\x20\x20account.\x20For\x20example,\x20`my-other-app@appsp\ - ot.gserviceaccount.com`.\n\n\x20*\x20`group:{emailid}`:\x20An\x20email\ - \x20address\x20that\x20represents\x20a\x20Google\x20group.\n\x20\x20\x20\ - \x20For\x20example,\x20`admins@example.com`.\n\n\x20*\x20`deleted:user:{\ - emailid}?uid={uniqueid}`:\x20An\x20email\x20address\x20(plus\x20unique\n\ - \x20\x20\x20\x20identifier)\x20representing\x20a\x20user\x20that\x20has\ - \x20been\x20recently\x20deleted.\x20For\n\x20\x20\x20\x20example,\x20`al\ - ice@example.com?uid=123456789012345678901`.\x20If\x20the\x20user\x20is\n\ - \x20\x20\x20\x20recovered,\x20this\x20value\x20reverts\x20to\x20`user:{e\ - mailid}`\x20and\x20the\x20recovered\x20user\n\x20\x20\x20\x20retains\x20\ - the\x20role\x20in\x20the\x20binding.\n\n\x20*\x20`deleted:serviceAccount\ - :{emailid}?uid={uniqueid}`:\x20An\x20email\x20address\x20(plus\n\x20\x20\ - \x20\x20unique\x20identifier)\x20representing\x20a\x20service\x20account\ - \x20that\x20has\x20been\x20recently\n\x20\x20\x20\x20deleted.\x20For\x20\ - example,\n\x20\x20\x20\x20`my-other-app@appspot.gserviceaccount.com?uid=\ - 123456789012345678901`.\n\x20\x20\x20\x20If\x20the\x20service\x20account\ - \x20is\x20undeleted,\x20this\x20value\x20reverts\x20to\n\x20\x20\x20\x20\ - `serviceAccount:{emailid}`\x20and\x20the\x20undeleted\x20service\x20acco\ - unt\x20retains\x20the\n\x20\x20\x20\x20role\x20in\x20the\x20binding.\n\n\ - \x20*\x20`deleted:group:{emailid}?uid={uniqueid}`:\x20An\x20email\x20add\ - ress\x20(plus\x20unique\n\x20\x20\x20\x20identifier)\x20representing\x20\ - a\x20Google\x20group\x20that\x20has\x20been\x20recently\n\x20\x20\x20\ - \x20deleted.\x20For\x20example,\x20`admins@example.com?uid=1234567890123\ - 45678901`.\x20If\n\x20\x20\x20\x20the\x20group\x20is\x20recovered,\x20th\ - is\x20value\x20reverts\x20to\x20`group:{emailid}`\x20and\x20the\n\x20\ - \x20\x20\x20recovered\x20group\x20retains\x20the\x20role\x20in\x20the\ - \x20binding.\n\n\n\x20*\x20`domain:{domain}`:\x20The\x20G\x20Suite\x20do\ - main\x20(primary)\x20that\x20represents\x20all\x20the\n\x20\x20\x20\x20u\ - sers\x20of\x20that\x20domain.\x20For\x20example,\x20`google.com`\x20or\ - \x20`example.com`.\n\n\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\xd1\x01\ - \x02\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xd1\x01\x0b\x11\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\xd1\x01\x12\x19\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xd1\x01\x1c\x1d\n\x95\x04\n\x04\x04\x01\x02\x02\x12\x04\xdf\ - \x01\x02!\x1a\x86\x04\x20The\x20condition\x20that\x20is\x20associated\ - \x20with\x20this\x20binding.\n\n\x20If\x20the\x20condition\x20evaluates\ - \x20to\x20`true`,\x20then\x20this\x20binding\x20applies\x20to\x20the\n\ - \x20current\x20request.\n\n\x20If\x20the\x20condition\x20evaluates\x20to\ - \x20`false`,\x20then\x20this\x20binding\x20does\x20not\x20apply\x20to\n\ - \x20the\x20current\x20request.\x20However,\x20a\x20different\x20role\x20\ - binding\x20might\x20grant\x20the\x20same\n\x20role\x20to\x20one\x20or\ - \x20more\x20of\x20the\x20principals\x20in\x20this\x20binding.\n\n\x20To\ - \x20learn\x20which\x20resources\x20support\x20conditions\x20in\x20their\ - \x20IAM\x20policies,\x20see\x20the\n\x20[IAM\n\x20documentation](https:/\ - /cloud.google.com/iam/help/conditions/resource-policies).\n\n\r\n\x05\ - \x04\x01\x02\x02\x06\x12\x04\xdf\x01\x02\x12\n\r\n\x05\x04\x01\x02\x02\ - \x01\x12\x04\xdf\x01\x13\x1c\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xdf\ - \x01\x1f\x20\n\x9d\x0c\n\x02\x04\x02\x12\x06\x95\x02\0\x9d\x02\x01\x1a\ - \x8e\x0c\x20Specifies\x20the\x20audit\x20configuration\x20for\x20a\x20se\ - rvice.\n\x20The\x20configuration\x20determines\x20which\x20permission\ - \x20types\x20are\x20logged,\x20and\x20what\n\x20identities,\x20if\x20any\ - ,\x20are\x20exempted\x20from\x20logging.\n\x20An\x20AuditConfig\x20must\ - \x20have\x20one\x20or\x20more\x20AuditLogConfigs.\n\n\x20If\x20there\x20\ - are\x20AuditConfigs\x20for\x20both\x20`allServices`\x20and\x20a\x20speci\ - fic\x20service,\n\x20the\x20union\x20of\x20the\x20two\x20AuditConfigs\ - \x20is\x20used\x20for\x20that\x20service:\x20the\x20log_types\n\x20speci\ - fied\x20in\x20each\x20AuditConfig\x20are\x20enabled,\x20and\x20the\x20ex\ - empted_members\x20in\x20each\n\x20AuditLogConfig\x20are\x20exempted.\n\n\ - \x20Example\x20Policy\x20with\x20multiple\x20AuditConfigs:\n\n\x20\x20\ - \x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"audit_configs\":\x20[\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\"service\":\x20\"allServices\",\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\"audit_log_configs\":\x20[\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"log_type\":\x20\"DATA_READ\",\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"exempted_members\":\x20[\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"us\ - er:jose@example.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"log_type\":\x20\"DATA_WRIT\ - E\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\"log_type\":\x20\"ADMIN_READ\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20},\n\ + xpr.proto\x1a\x1cgoogle/api/annotations.proto\"j\n\x06Policy\x12\x18\n\ + \x07version\x18\x01\x20\x01(\x05R\x07version\x122\n\x08bindings\x18\x04\ + \x20\x03(\x0b2\x16.google.iam.v1.BindingR\x08bindings\x12\x12\n\x04etag\ + \x18\x03\x20\x01(\x0cR\x04etag\"h\n\x07Binding\x12\x12\n\x04role\x18\x01\ + \x20\x01(\tR\x04role\x12\x18\n\x07members\x18\x02\x20\x03(\tR\x07members\ + \x12/\n\tcondition\x18\x03\x20\x01(\x0b2\x11.google.type.ExprR\tconditio\ + n\"\xa2\x01\n\x0bPolicyDelta\x12B\n\x0ebinding_deltas\x18\x01\x20\x03(\ + \x0b2\x1b.google.iam.v1.BindingDeltaR\rbindingDeltas\x12O\n\x13audit_con\ + fig_deltas\x18\x02\x20\x03(\x0b2\x1f.google.iam.v1.AuditConfigDeltaR\x11\ + auditConfigDeltas\"\xde\x01\n\x0cBindingDelta\x12:\n\x06action\x18\x01\ + \x20\x01(\x0e2\".google.iam.v1.BindingDelta.ActionR\x06action\x12\x12\n\ + \x04role\x18\x02\x20\x01(\tR\x04role\x12\x16\n\x06member\x18\x03\x20\x01\ + (\tR\x06member\x12/\n\tcondition\x18\x04\x20\x01(\x0b2\x11.google.type.E\ + xprR\tcondition\"5\n\x06Action\x12\x16\n\x12ACTION_UNSPECIFIED\x10\0\x12\ + \x07\n\x03ADD\x10\x01\x12\n\n\x06REMOVE\x10\x02\"\xe7\x01\n\x10AuditConf\ + igDelta\x12>\n\x06action\x18\x01\x20\x01(\x0e2&.google.iam.v1.AuditConfi\ + gDelta.ActionR\x06action\x12\x18\n\x07service\x18\x02\x20\x01(\tR\x07ser\ + vice\x12'\n\x0fexempted_member\x18\x03\x20\x01(\tR\x0eexemptedMember\x12\ + \x19\n\x08log_type\x18\x04\x20\x01(\tR\x07logType\"5\n\x06Action\x12\x16\ + \n\x12ACTION_UNSPECIFIED\x10\0\x12\x07\n\x03ADD\x10\x01\x12\n\n\x06REMOV\ + E\x10\x02B\x83\x01\n\x11com.google.iam.v1B\x0bPolicyProtoP\x01Z0google.g\ + olang.org/genproto/googleapis/iam/v1;iam\xf8\x01\x01\xaa\x02\x13Google.C\ + loud.Iam.V1\xca\x02\x13Google\\Cloud\\Iam\\V1J\x8dD\n\x07\x12\x05\x0f\0\ + \xef\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\ + \x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20\ + License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20n\ + ot\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ + \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ + nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ + 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ + \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x16\n\t\n\x02\x03\0\x12\x03\x13\0\x20\n\t\n\x02\x03\x01\x12\x03\x14\0&\ + \n\x08\n\x01\x08\x12\x03\x16\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x16\0\x1f\n\ + \x08\n\x01\x08\x12\x03\x17\00\n\t\n\x02\x08%\x12\x03\x17\00\n\x08\n\x01\ + \x08\x12\x03\x18\0G\n\t\n\x02\x08\x0b\x12\x03\x18\0G\n\x08\n\x01\x08\x12\ + \x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\ + \0,\n\t\n\x02\x08\x08\x12\x03\x1a\0,\n\x08\n\x01\x08\x12\x03\x1b\0*\n\t\ + \n\x02\x08\x01\x12\x03\x1b\0*\n\x08\n\x01\x08\x12\x03\x1c\00\n\t\n\x02\ + \x08)\x12\x03\x1c\00\n\xe7\x0f\n\x02\x04\0\x12\x04W\0z\x01\x1a\xda\x0f\ + \x20Defines\x20an\x20Identity\x20and\x20Access\x20Management\x20(IAM)\ + \x20policy.\x20It\x20is\x20used\x20to\n\x20specify\x20access\x20control\ + \x20policies\x20for\x20Cloud\x20Platform\x20resources.\n\n\n\x20A\x20`Po\ + licy`\x20is\x20a\x20collection\x20of\x20`bindings`.\x20A\x20`binding`\ + \x20binds\x20one\x20or\x20more\n\x20`members`\x20to\x20a\x20single\x20`r\ + ole`.\x20Members\x20can\x20be\x20user\x20accounts,\x20service\x20account\ + s,\n\x20Google\x20groups,\x20and\x20domains\x20(such\x20as\x20G\x20Suite\ + ).\x20A\x20`role`\x20is\x20a\x20named\x20list\x20of\n\x20permissions\x20\ + (defined\x20by\x20IAM\x20or\x20configured\x20by\x20users).\x20A\x20`bind\ + ing`\x20can\n\x20optionally\x20specify\x20a\x20`condition`,\x20which\x20\ + is\x20a\x20logic\x20expression\x20that\x20further\n\x20constrains\x20the\ + \x20role\x20binding\x20based\x20on\x20attributes\x20about\x20the\x20requ\ + est\x20and/or\n\x20target\x20resource.\n\n\x20**JSON\x20Example**\n\n\ + \x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"bindings\":\x20[\n\ \x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"service\":\x20\"sampleservice.googleapis.com\",\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\"audit_log_configs\":\x20[\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"log_type\":\x20\"DATA_READ\"\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20},\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\"log_type\":\x20\"DATA_WRITE\",\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"exempted_members\"\ - :\x20[\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"user:aliya@example.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\ - \x20}\n\n\x20For\x20sampleservice,\x20this\x20policy\x20enables\x20DATA_\ - READ,\x20DATA_WRITE\x20and\x20ADMIN_READ\n\x20logging.\x20It\x20also\x20\ - exempts\x20`jose@example.com`\x20from\x20DATA_READ\x20logging,\x20and\n\ - \x20`aliya@example.com`\x20from\x20DATA_WRITE\x20logging.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\x95\x02\x08\x13\n\xcb\x01\n\x04\x04\x02\x02\0\x12\ - \x04\x99\x02\x02\x15\x1a\xbc\x01\x20Specifies\x20a\x20service\x20that\ - \x20will\x20be\x20enabled\x20for\x20audit\x20logging.\n\x20For\x20exampl\ - e,\x20`storage.googleapis.com`,\x20`cloudsql.googleapis.com`.\n\x20`allS\ - ervices`\x20is\x20a\x20special\x20value\x20that\x20covers\x20all\x20serv\ - ices.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x99\x02\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\x99\x02\t\x10\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\x99\x02\x13\x14\nI\n\x04\x04\x02\x02\x01\x12\x04\x9c\x02\x020\x1a;\ - \x20The\x20configuration\x20for\x20logging\x20of\x20each\x20type\x20of\ - \x20permission.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\x9c\x02\x02\n\n\ - \r\n\x05\x04\x02\x02\x01\x06\x12\x04\x9c\x02\x0b\x19\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\x9c\x02\x1a+\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \x9c\x02./\n\xc5\x03\n\x02\x04\x03\x12\x06\xb2\x02\0\xcb\x02\x01\x1a\xb6\ - \x03\x20Provides\x20the\x20configuration\x20for\x20logging\x20a\x20type\ - \x20of\x20permissions.\n\x20Example:\n\n\x20\x20\x20\x20\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\"audit_log_configs\":\x20[\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"log_typ\ - e\":\x20\"DATA_READ\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"ex\ - empted_members\":\x20[\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\"user:jose@example.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20},\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"log_type\":\ - \x20\"DATA_WRITE\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ - \x20\x20\x20\x20]\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20'DATA\ - _READ'\x20and\x20'DATA_WRITE'\x20logging,\x20while\x20exempting\n\x20jos\ - e@example.com\x20from\x20DATA_READ\x20logging.\n\n\x0b\n\x03\x04\x03\x01\ - \x12\x04\xb2\x02\x08\x16\n\x95\x01\n\x04\x04\x03\x04\0\x12\x06\xb5\x02\ - \x02\xc1\x02\x03\x1a\x84\x01\x20The\x20list\x20of\x20valid\x20permission\ - \x20types\x20for\x20which\x20logging\x20can\x20be\x20configured.\n\x20Ad\ - min\x20writes\x20are\x20always\x20logged,\x20and\x20are\x20not\x20config\ - urable.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\x04\xb5\x02\x07\x0e\n5\n\x06\ - \x04\x03\x04\0\x02\0\x12\x04\xb7\x02\x04\x1d\x1a%\x20Default\x20case.\ - \x20Should\x20never\x20be\x20this.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\ - \x12\x04\xb7\x02\x04\x18\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\xb7\ - \x02\x1b\x1c\n=\n\x06\x04\x03\x04\0\x02\x01\x12\x04\xba\x02\x04\x13\x1a-\ - \x20Admin\x20reads.\x20Example:\x20CloudIAM\x20getIamPolicy\n\n\x0f\n\ - \x07\x04\x03\x04\0\x02\x01\x01\x12\x04\xba\x02\x04\x0e\n\x0f\n\x07\x04\ - \x03\x04\0\x02\x01\x02\x12\x04\xba\x02\x11\x12\n=\n\x06\x04\x03\x04\0\ - \x02\x02\x12\x04\xbd\x02\x04\x13\x1a-\x20Data\x20writes.\x20Example:\x20\ - CloudSQL\x20Users\x20create\n\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x01\x12\ - \x04\xbd\x02\x04\x0e\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\x12\x04\xbd\ - \x02\x11\x12\n:\n\x06\x04\x03\x04\0\x02\x03\x12\x04\xc0\x02\x04\x12\x1a*\ - \x20Data\x20reads.\x20Example:\x20CloudSQL\x20Users\x20list\n\n\x0f\n\ - \x07\x04\x03\x04\0\x02\x03\x01\x12\x04\xc0\x02\x04\r\n\x0f\n\x07\x04\x03\ - \x04\0\x02\x03\x02\x12\x04\xc0\x02\x10\x11\n6\n\x04\x04\x03\x02\0\x12\ - \x04\xc4\x02\x02\x17\x1a(\x20The\x20log\x20type\x20that\x20this\x20confi\ - g\x20enables.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xc4\x02\x02\t\n\r\n\ - \x05\x04\x03\x02\0\x01\x12\x04\xc4\x02\n\x12\n\r\n\x05\x04\x03\x02\0\x03\ - \x12\x04\xc4\x02\x15\x16\n\xb0\x01\n\x04\x04\x03\x02\x01\x12\x04\xca\x02\ - \x02'\x1a\xa1\x01\x20Specifies\x20the\x20identities\x20that\x20do\x20not\ - \x20cause\x20logging\x20for\x20this\x20type\x20of\n\x20permission.\n\x20\ - Follows\x20the\x20same\x20format\x20of\n\x20[Binding.members][google.iam\ - .v1.Binding.members].\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04\xca\x02\ - \x02\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xca\x02\x0b\x11\n\r\n\x05\ - \x04\x03\x02\x01\x01\x12\x04\xca\x02\x12\"\n\r\n\x05\x04\x03\x02\x01\x03\ - \x12\x04\xca\x02%&\n:\n\x02\x04\x04\x12\x06\xce\x02\0\xd4\x02\x01\x1a,\ - \x20The\x20difference\x20delta\x20between\x20two\x20policies.\n\n\x0b\n\ - \x03\x04\x04\x01\x12\x04\xce\x02\x08\x13\n<\n\x04\x04\x04\x02\0\x12\x04\ - \xd0\x02\x02+\x1a.\x20The\x20delta\x20for\x20Bindings\x20between\x20two\ - \x20policies.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xd0\x02\x02\n\n\r\n\ - \x05\x04\x04\x02\0\x06\x12\x04\xd0\x02\x0b\x17\n\r\n\x05\x04\x04\x02\0\ - \x01\x12\x04\xd0\x02\x18&\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xd0\x02)*\ - \n@\n\x04\x04\x04\x02\x01\x12\x04\xd3\x02\x024\x1a2\x20The\x20delta\x20f\ - or\x20AuditConfigs\x20between\x20two\x20policies.\n\n\r\n\x05\x04\x04\ - \x02\x01\x04\x12\x04\xd3\x02\x02\n\n\r\n\x05\x04\x04\x02\x01\x06\x12\x04\ - \xd3\x02\x0b\x1b\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xd3\x02\x1c/\n\r\ - \n\x05\x04\x04\x02\x01\x03\x12\x04\xd3\x0223\n\x8b\x01\n\x02\x04\x05\x12\ - \x06\xd8\x02\0\xf5\x02\x01\x1a}\x20One\x20delta\x20entry\x20for\x20Bindi\ - ng.\x20Each\x20individual\x20change\x20(only\x20one\x20member\x20in\x20e\ - ach\n\x20entry)\x20to\x20a\x20binding\x20will\x20be\x20a\x20separate\x20\ - entry.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xd8\x02\x08\x14\nH\n\x04\x04\ - \x05\x04\0\x12\x06\xda\x02\x02\xe3\x02\x03\x1a8\x20The\x20type\x20of\x20\ - action\x20performed\x20on\x20a\x20Binding\x20in\x20a\x20policy.\n\n\r\n\ - \x05\x04\x05\x04\0\x01\x12\x04\xda\x02\x07\r\n\x1e\n\x06\x04\x05\x04\0\ - \x02\0\x12\x04\xdc\x02\x04\x1b\x1a\x0e\x20Unspecified.\n\n\x0f\n\x07\x04\ - \x05\x04\0\x02\0\x01\x12\x04\xdc\x02\x04\x16\n\x0f\n\x07\x04\x05\x04\0\ - \x02\0\x02\x12\x04\xdc\x02\x19\x1a\n(\n\x06\x04\x05\x04\0\x02\x01\x12\ - \x04\xdf\x02\x04\x0c\x1a\x18\x20Addition\x20of\x20a\x20Binding.\n\n\x0f\ - \n\x07\x04\x05\x04\0\x02\x01\x01\x12\x04\xdf\x02\x04\x07\n\x0f\n\x07\x04\ - \x05\x04\0\x02\x01\x02\x12\x04\xdf\x02\n\x0b\n'\n\x06\x04\x05\x04\0\x02\ - \x02\x12\x04\xe2\x02\x04\x0f\x1a\x17\x20Removal\x20of\x20a\x20Binding.\n\ - \n\x0f\n\x07\x04\x05\x04\0\x02\x02\x01\x12\x04\xe2\x02\x04\n\n\x0f\n\x07\ - \x04\x05\x04\0\x02\x02\x02\x12\x04\xe2\x02\r\x0e\nE\n\x04\x04\x05\x02\0\ - \x12\x04\xe7\x02\x02\x14\x1a7\x20The\x20action\x20that\x20was\x20perform\ - ed\x20on\x20a\x20Binding.\n\x20Required\n\n\r\n\x05\x04\x05\x02\0\x06\ - \x12\x04\xe7\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xe7\x02\t\ - \x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xe7\x02\x12\x13\n}\n\x04\x04\ - \x05\x02\x01\x12\x04\xec\x02\x02\x12\x1ao\x20Role\x20that\x20is\x20assig\ - ned\x20to\x20`members`.\n\x20For\x20example,\x20`roles/viewer`,\x20`role\ - s/editor`,\x20or\x20`roles/owner`.\n\x20Required\n\n\r\n\x05\x04\x05\x02\ - \x01\x05\x12\x04\xec\x02\x02\x08\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\ - \xec\x02\t\r\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xec\x02\x10\x11\n\x87\ - \x01\n\x04\x04\x05\x02\x02\x12\x04\xf1\x02\x02\x14\x1ay\x20A\x20single\ - \x20identity\x20requesting\x20access\x20for\x20a\x20Google\x20Cloud\x20r\ - esource.\n\x20Follows\x20the\x20same\x20format\x20of\x20Binding.members.\ - \n\x20Required\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xf1\x02\x02\x08\n\ - \r\n\x05\x04\x05\x02\x02\x01\x12\x04\xf1\x02\t\x0f\n\r\n\x05\x04\x05\x02\ - \x02\x03\x12\x04\xf1\x02\x12\x13\nC\n\x04\x04\x05\x02\x03\x12\x04\xf4\ - \x02\x02!\x1a5\x20The\x20condition\x20that\x20is\x20associated\x20with\ - \x20this\x20binding.\n\n\r\n\x05\x04\x05\x02\x03\x06\x12\x04\xf4\x02\x02\ - \x12\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\xf4\x02\x13\x1c\n\r\n\x05\x04\ - \x05\x02\x03\x03\x12\x04\xf4\x02\x1f\x20\n\x9d\x01\n\x02\x04\x06\x12\x06\ - \xf9\x02\0\x99\x03\x01\x1a\x8e\x01\x20One\x20delta\x20entry\x20for\x20Au\ - ditConfig.\x20Each\x20individual\x20change\x20(only\x20one\n\x20exempted\ - _member\x20in\x20each\x20entry)\x20to\x20a\x20AuditConfig\x20will\x20be\ - \x20a\x20separate\x20entry.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xf9\x02\ - \x08\x18\nU\n\x04\x04\x06\x04\0\x12\x06\xfb\x02\x02\x84\x03\x03\x1aE\x20\ - The\x20type\x20of\x20action\x20performed\x20on\x20an\x20audit\x20configu\ - ration\x20in\x20a\x20policy.\n\n\r\n\x05\x04\x06\x04\0\x01\x12\x04\xfb\ - \x02\x07\r\n\x1e\n\x06\x04\x06\x04\0\x02\0\x12\x04\xfd\x02\x04\x1b\x1a\ - \x0e\x20Unspecified.\n\n\x0f\n\x07\x04\x06\x04\0\x02\0\x01\x12\x04\xfd\ - \x02\x04\x16\n\x0f\n\x07\x04\x06\x04\0\x02\0\x02\x12\x04\xfd\x02\x19\x1a\ - \n5\n\x06\x04\x06\x04\0\x02\x01\x12\x04\x80\x03\x04\x0c\x1a%\x20Addition\ - \x20of\x20an\x20audit\x20configuration.\n\n\x0f\n\x07\x04\x06\x04\0\x02\ - \x01\x01\x12\x04\x80\x03\x04\x07\n\x0f\n\x07\x04\x06\x04\0\x02\x01\x02\ - \x12\x04\x80\x03\n\x0b\n4\n\x06\x04\x06\x04\0\x02\x02\x12\x04\x83\x03\ - \x04\x0f\x1a$\x20Removal\x20of\x20an\x20audit\x20configuration.\n\n\x0f\ - \n\x07\x04\x06\x04\0\x02\x02\x01\x12\x04\x83\x03\x04\n\n\x0f\n\x07\x04\ - \x06\x04\0\x02\x02\x02\x12\x04\x83\x03\r\x0e\n^\n\x04\x04\x06\x02\0\x12\ - \x04\x88\x03\x02\x14\x1aP\x20The\x20action\x20that\x20was\x20performed\ - \x20on\x20an\x20audit\x20configuration\x20in\x20a\x20policy.\n\x20Requir\ - ed\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\x88\x03\x02\x08\n\r\n\x05\x04\ - \x06\x02\0\x01\x12\x04\x88\x03\t\x0f\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\ - \x88\x03\x12\x13\n\xda\x01\n\x04\x04\x06\x02\x01\x12\x04\x8e\x03\x02\x15\ - \x1a\xcb\x01\x20Specifies\x20a\x20service\x20that\x20was\x20configured\ - \x20for\x20Cloud\x20Audit\x20Logging.\n\x20For\x20example,\x20`storage.g\ - oogleapis.com`,\x20`cloudsql.googleapis.com`.\n\x20`allServices`\x20is\ - \x20a\x20special\x20value\x20that\x20covers\x20all\x20services.\n\x20Req\ - uired\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x8e\x03\x02\x08\n\r\n\x05\ - \x04\x06\x02\x01\x01\x12\x04\x8e\x03\t\x10\n\r\n\x05\x04\x06\x02\x01\x03\ - \x12\x04\x8e\x03\x13\x14\n\xa5\x01\n\x04\x04\x06\x02\x02\x12\x04\x93\x03\ - \x02\x1d\x1a\x96\x01\x20A\x20single\x20identity\x20that\x20is\x20exempte\ - d\x20from\x20\"data\x20access\"\x20audit\n\x20logging\x20for\x20the\x20`\ - service`\x20specified\x20above.\n\x20Follows\x20the\x20same\x20format\ - \x20of\x20Binding.members.\n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\x93\ - \x03\x02\x08\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\x93\x03\t\x18\n\r\n\ - \x05\x04\x06\x02\x02\x03\x12\x04\x93\x03\x1b\x1c\n\x82\x01\n\x04\x04\x06\ - \x02\x03\x12\x04\x98\x03\x02\x16\x1at\x20Specifies\x20the\x20log_type\ - \x20that\x20was\x20be\x20enabled.\x20ADMIN_ACTIVITY\x20is\x20always\n\ - \x20enabled,\x20and\x20cannot\x20be\x20configured.\n\x20Required\n\n\r\n\ - \x05\x04\x06\x02\x03\x05\x12\x04\x98\x03\x02\x08\n\r\n\x05\x04\x06\x02\ - \x03\x01\x12\x04\x98\x03\t\x11\n\r\n\x05\x04\x06\x02\x03\x03\x12\x04\x98\ - \x03\x14\x15b\x06proto3\ + \x20\x20\x20\"role\":\x20\"roles/resourcemanager.organizationAdmin\",\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"members\":\x20[\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"user:mike@example.com\",\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"group:admins@examp\ + le.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"domain:\ + google.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"ser\ + viceAccount:my-project-id@appspot.gserviceaccount.com\"\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\ + ,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"role\":\x20\"roles/resourcemanager.organizationViewer\ + \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"members\":\x20[\"user\ + :eve@example.com\"],\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"cond\ + ition\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"tit\ + le\":\x20\"expirable\x20access\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"description\":\x20\"Does\x20not\x20grant\x20access\x20\ + after\x20Sep\x202020\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\"expression\":\x20\"request.time\x20<\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20timestamp('2020-10-01T00:00:00.000Z')\",\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20]\n\x20\x20\x20\x20\x20}\n\n\ + \x20**YAML\x20Example**\n\n\x20\x20\x20\x20\x20bindings:\n\x20\x20\x20\ + \x20\x20-\x20members:\n\x20\x20\x20\x20\x20\x20\x20-\x20user:mike@exampl\ + e.com\n\x20\x20\x20\x20\x20\x20\x20-\x20group:admins@example.com\n\x20\ + \x20\x20\x20\x20\x20\x20-\x20domain:google.com\n\x20\x20\x20\x20\x20\x20\ + \x20-\x20serviceAccount:my-project-id@appspot.gserviceaccount.com\n\x20\ + \x20\x20\x20\x20\x20\x20role:\x20roles/resourcemanager.organizationAdmin\ + \n\x20\x20\x20\x20\x20-\x20members:\n\x20\x20\x20\x20\x20\x20\x20-\x20us\ + er:eve@example.com\n\x20\x20\x20\x20\x20\x20\x20role:\x20roles/resourcem\ + anager.organizationViewer\n\x20\x20\x20\x20\x20\x20\x20condition:\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20title:\x20expirable\x20access\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20description:\x20Does\x20not\x20grant\x20acce\ + ss\x20after\x20Sep\x202020\n\x20\x20\x20\x20\x20\x20\x20\x20\x20expressi\ + on:\x20request.time\x20<\x20timestamp('2020-10-01T00:00:00.000Z')\n\n\ + \x20For\x20a\x20description\x20of\x20IAM\x20and\x20its\x20features,\x20s\ + ee\x20the\n\x20[IAM\x20developer's\x20guide](https://cloud.google.com/ia\ + m/docs).\n\n\n\n\x03\x04\0\x01\x12\x03W\x08\x0e\n\xd5\x04\n\x04\x04\0\ + \x02\0\x12\x03f\x02\x14\x1a\xc7\x04\x20Specifies\x20the\x20format\x20of\ + \x20the\x20policy.\n\n\x20Valid\x20values\x20are\x200,\x201,\x20and\x203\ + .\x20Requests\x20specifying\x20an\x20invalid\x20value\x20will\x20be\n\ + \x20rejected.\n\n\x20Operations\x20affecting\x20conditional\x20bindings\ + \x20must\x20specify\x20version\x203.\x20This\x20can\n\x20be\x20either\ + \x20setting\x20a\x20conditional\x20policy,\x20modifying\x20a\x20conditio\ + nal\x20binding,\n\x20or\x20removing\x20a\x20binding\x20(conditional\x20o\ + r\x20unconditional)\x20from\x20the\x20stored\n\x20conditional\x20policy.\ + \n\x20Operations\x20on\x20non-conditional\x20policies\x20may\x20specify\ + \x20any\x20valid\x20value\x20or\n\x20leave\x20the\x20field\x20unset.\n\n\ + \x20If\x20no\x20etag\x20is\x20provided\x20in\x20the\x20call\x20to\x20`se\ + tIamPolicy`,\x20version\x20compliance\n\x20checks\x20against\x20the\x20s\ + tored\x20policy\x20is\x20skipped.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03f\ + \x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03f\x08\x0f\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03f\x12\x13\n\xc1\x01\n\x04\x04\0\x02\x01\x12\x03k\x02\ + \x20\x1a\xb3\x01\x20Associates\x20a\x20list\x20of\x20`members`\x20to\x20\ + a\x20`role`.\x20Optionally\x20may\x20specify\x20a\n\x20`condition`\x20th\ + at\x20determines\x20when\x20binding\x20is\x20in\x20effect.\n\x20`binding\ + s`\x20with\x20no\x20members\x20will\x20result\x20in\x20an\x20error.\n\n\ + \x0c\n\x05\x04\0\x02\x01\x04\x12\x03k\x02\n\n\x0c\n\x05\x04\0\x02\x01\ + \x06\x12\x03k\x0b\x12\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03k\x13\x1b\n\ + \x0c\n\x05\x04\0\x02\x01\x03\x12\x03k\x1e\x1f\n\xa4\x06\n\x04\x04\0\x02\ + \x02\x12\x03y\x02\x11\x1a\x96\x06\x20`etag`\x20is\x20used\x20for\x20opti\ + mistic\x20concurrency\x20control\x20as\x20a\x20way\x20to\x20help\n\x20pr\ + event\x20simultaneous\x20updates\x20of\x20a\x20policy\x20from\x20overwri\ + ting\x20each\x20other.\n\x20It\x20is\x20strongly\x20suggested\x20that\ + \x20systems\x20make\x20use\x20of\x20the\x20`etag`\x20in\x20the\n\x20read\ + -modify-write\x20cycle\x20to\x20perform\x20policy\x20updates\x20in\x20or\ + der\x20to\x20avoid\x20race\n\x20conditions:\x20An\x20`etag`\x20is\x20ret\ + urned\x20in\x20the\x20response\x20to\x20`getIamPolicy`,\x20and\n\x20syst\ + ems\x20are\x20expected\x20to\x20put\x20that\x20etag\x20in\x20the\x20requ\ + est\x20to\x20`setIamPolicy`\x20to\n\x20ensure\x20that\x20their\x20change\ + \x20will\x20be\x20applied\x20to\x20the\x20same\x20version\x20of\x20the\ + \x20policy.\n\n\x20If\x20no\x20`etag`\x20is\x20provided\x20in\x20the\x20\ + call\x20to\x20`setIamPolicy`,\x20then\x20the\x20existing\n\x20policy\x20\ + is\x20overwritten.\x20Due\x20to\x20blind-set\x20semantics\x20of\x20an\ + \x20etag-less\x20policy,\n\x20'setIamPolicy'\x20will\x20not\x20fail\x20e\ + ven\x20if\x20the\x20incoming\x20policy\x20version\x20does\x20not\n\x20me\ + et\x20the\x20requirements\x20for\x20modifying\x20the\x20stored\x20policy\ + .\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03y\x08\x0c\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03y\x0f\x10\ + \n2\n\x02\x04\x01\x12\x05}\0\xa1\x01\x01\x1a%\x20Associates\x20`members`\ + \x20with\x20a\x20`role`.\n\n\n\n\x03\x04\x01\x01\x12\x03}\x08\x0f\ns\n\ + \x04\x04\x01\x02\0\x12\x04\x80\x01\x02\x12\x1ae\x20Role\x20that\x20is\ + \x20assigned\x20to\x20`members`.\n\x20For\x20example,\x20`roles/viewer`,\ + \x20`roles/editor`,\x20or\x20`roles/owner`.\n\n\r\n\x05\x04\x01\x02\0\ + \x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x80\x01\ + \t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x80\x01\x10\x11\n\x9b\x07\n\x04\ + \x04\x01\x02\x01\x12\x04\x9a\x01\x02\x1e\x1a\x8c\x07\x20Specifies\x20the\ + \x20identities\x20requesting\x20access\x20for\x20a\x20Cloud\x20Platform\ + \x20resource.\n\x20`members`\x20can\x20have\x20the\x20following\x20value\ + s:\n\n\x20*\x20`allUsers`:\x20A\x20special\x20identifier\x20that\x20repr\ + esents\x20anyone\x20who\x20is\n\x20\x20\x20\x20on\x20the\x20internet;\ + \x20with\x20or\x20without\x20a\x20Google\x20account.\n\n\x20*\x20`allAut\ + henticatedUsers`:\x20A\x20special\x20identifier\x20that\x20represents\ + \x20anyone\n\x20\x20\x20\x20who\x20is\x20authenticated\x20with\x20a\x20G\ + oogle\x20account\x20or\x20a\x20service\x20account.\n\n\x20*\x20`user:{em\ + ailid}`:\x20An\x20email\x20address\x20that\x20represents\x20a\x20specifi\ + c\x20Google\n\x20\x20\x20\x20account.\x20For\x20example,\x20`alice@examp\ + le.com`\x20.\n\n\n\x20*\x20`serviceAccount:{emailid}`:\x20An\x20email\ + \x20address\x20that\x20represents\x20a\x20service\n\x20\x20\x20\x20accou\ + nt.\x20For\x20example,\x20`my-other-app@appspot.gserviceaccount.com`.\n\ + \n\x20*\x20`group:{emailid}`:\x20An\x20email\x20address\x20that\x20repre\ + sents\x20a\x20Google\x20group.\n\x20\x20\x20\x20For\x20example,\x20`admi\ + ns@example.com`.\n\n\n\x20*\x20`domain:{domain}`:\x20The\x20G\x20Suite\ + \x20domain\x20(primary)\x20that\x20represents\x20all\x20the\n\x20\x20\ + \x20\x20users\x20of\x20that\x20domain.\x20For\x20example,\x20`google.com\ + `\x20or\x20`example.com`.\n\n\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\ + \x9a\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x9a\x01\x0b\x11\n\r\ + \n\x05\x04\x01\x02\x01\x01\x12\x04\x9a\x01\x12\x19\n\r\n\x05\x04\x01\x02\ + \x01\x03\x12\x04\x9a\x01\x1c\x1d\n\xe2\x01\n\x04\x04\x01\x02\x02\x12\x04\ + \xa0\x01\x02!\x1a\xd3\x01\x20The\x20condition\x20that\x20is\x20associate\ + d\x20with\x20this\x20binding.\n\x20NOTE:\x20An\x20unsatisfied\x20conditi\ + on\x20will\x20not\x20allow\x20user\x20access\x20via\x20current\n\x20bind\ + ing.\x20Different\x20bindings,\x20including\x20their\x20conditions,\x20a\ + re\x20examined\n\x20independently.\n\n\r\n\x05\x04\x01\x02\x02\x06\x12\ + \x04\xa0\x01\x02\x12\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xa0\x01\x13\ + \x1c\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xa0\x01\x1f\x20\n:\n\x02\x04\ + \x02\x12\x06\xa4\x01\0\xaa\x01\x01\x1a,\x20The\x20difference\x20delta\ + \x20between\x20two\x20policies.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xa4\ + \x01\x08\x13\n<\n\x04\x04\x02\x02\0\x12\x04\xa6\x01\x02+\x1a.\x20The\x20\ + delta\x20for\x20Bindings\x20between\x20two\x20policies.\n\n\r\n\x05\x04\ + \x02\x02\0\x04\x12\x04\xa6\x01\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\ + \xa6\x01\x0b\x17\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xa6\x01\x18&\n\r\n\ + \x05\x04\x02\x02\0\x03\x12\x04\xa6\x01)*\n@\n\x04\x04\x02\x02\x01\x12\ + \x04\xa9\x01\x024\x1a2\x20The\x20delta\x20for\x20AuditConfigs\x20between\ + \x20two\x20policies.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\xa9\x01\x02\ + \n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xa9\x01\x0b\x1b\n\r\n\x05\x04\ + \x02\x02\x01\x01\x12\x04\xa9\x01\x1c/\n\r\n\x05\x04\x02\x02\x01\x03\x12\ + \x04\xa9\x0123\n\x8b\x01\n\x02\x04\x03\x12\x06\xae\x01\0\xcb\x01\x01\x1a\ + }\x20One\x20delta\x20entry\x20for\x20Binding.\x20Each\x20individual\x20c\ + hange\x20(only\x20one\x20member\x20in\x20each\n\x20entry)\x20to\x20a\x20\ + binding\x20will\x20be\x20a\x20separate\x20entry.\n\n\x0b\n\x03\x04\x03\ + \x01\x12\x04\xae\x01\x08\x14\nH\n\x04\x04\x03\x04\0\x12\x06\xb0\x01\x02\ + \xb9\x01\x03\x1a8\x20The\x20type\x20of\x20action\x20performed\x20on\x20a\ + \x20Binding\x20in\x20a\x20policy.\n\n\r\n\x05\x04\x03\x04\0\x01\x12\x04\ + \xb0\x01\x07\r\n\x1e\n\x06\x04\x03\x04\0\x02\0\x12\x04\xb2\x01\x04\x1b\ + \x1a\x0e\x20Unspecified.\n\n\x0f\n\x07\x04\x03\x04\0\x02\0\x01\x12\x04\ + \xb2\x01\x04\x16\n\x0f\n\x07\x04\x03\x04\0\x02\0\x02\x12\x04\xb2\x01\x19\ + \x1a\n(\n\x06\x04\x03\x04\0\x02\x01\x12\x04\xb5\x01\x04\x0c\x1a\x18\x20A\ + ddition\x20of\x20a\x20Binding.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\ + \x12\x04\xb5\x01\x04\x07\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x04\ + \xb5\x01\n\x0b\n'\n\x06\x04\x03\x04\0\x02\x02\x12\x04\xb8\x01\x04\x0f\ + \x1a\x17\x20Removal\x20of\x20a\x20Binding.\n\n\x0f\n\x07\x04\x03\x04\0\ + \x02\x02\x01\x12\x04\xb8\x01\x04\n\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\ + \x12\x04\xb8\x01\r\x0e\nE\n\x04\x04\x03\x02\0\x12\x04\xbd\x01\x02\x14\ + \x1a7\x20The\x20action\x20that\x20was\x20performed\x20on\x20a\x20Binding\ + .\n\x20Required\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xbd\x01\x02\x08\n\ + \r\n\x05\x04\x03\x02\0\x01\x12\x04\xbd\x01\t\x0f\n\r\n\x05\x04\x03\x02\0\ + \x03\x12\x04\xbd\x01\x12\x13\n}\n\x04\x04\x03\x02\x01\x12\x04\xc2\x01\ + \x02\x12\x1ao\x20Role\x20that\x20is\x20assigned\x20to\x20`members`.\n\ + \x20For\x20example,\x20`roles/viewer`,\x20`roles/editor`,\x20or\x20`role\ + s/owner`.\n\x20Required\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xc2\x01\ + \x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xc2\x01\t\r\n\r\n\x05\x04\ + \x03\x02\x01\x03\x12\x04\xc2\x01\x10\x11\n\x89\x01\n\x04\x04\x03\x02\x02\ + \x12\x04\xc7\x01\x02\x14\x1a{\x20A\x20single\x20identity\x20requesting\ + \x20access\x20for\x20a\x20Cloud\x20Platform\x20resource.\n\x20Follows\ + \x20the\x20same\x20format\x20of\x20Binding.members.\n\x20Required\n\n\r\ + \n\x05\x04\x03\x02\x02\x05\x12\x04\xc7\x01\x02\x08\n\r\n\x05\x04\x03\x02\ + \x02\x01\x12\x04\xc7\x01\t\x0f\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xc7\ + \x01\x12\x13\nC\n\x04\x04\x03\x02\x03\x12\x04\xca\x01\x02!\x1a5\x20The\ + \x20condition\x20that\x20is\x20associated\x20with\x20this\x20binding.\n\ + \n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xca\x01\x02\x12\n\r\n\x05\x04\x03\ + \x02\x03\x01\x12\x04\xca\x01\x13\x1c\n\r\n\x05\x04\x03\x02\x03\x03\x12\ + \x04\xca\x01\x1f\x20\n\x9d\x01\n\x02\x04\x04\x12\x06\xcf\x01\0\xef\x01\ + \x01\x1a\x8e\x01\x20One\x20delta\x20entry\x20for\x20AuditConfig.\x20Each\ + \x20individual\x20change\x20(only\x20one\n\x20exempted_member\x20in\x20e\ + ach\x20entry)\x20to\x20a\x20AuditConfig\x20will\x20be\x20a\x20separate\ + \x20entry.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xcf\x01\x08\x18\nU\n\x04\ + \x04\x04\x04\0\x12\x06\xd1\x01\x02\xda\x01\x03\x1aE\x20The\x20type\x20of\ + \x20action\x20performed\x20on\x20an\x20audit\x20configuration\x20in\x20a\ + \x20policy.\n\n\r\n\x05\x04\x04\x04\0\x01\x12\x04\xd1\x01\x07\r\n\x1e\n\ + \x06\x04\x04\x04\0\x02\0\x12\x04\xd3\x01\x04\x1b\x1a\x0e\x20Unspecified.\ + \n\n\x0f\n\x07\x04\x04\x04\0\x02\0\x01\x12\x04\xd3\x01\x04\x16\n\x0f\n\ + \x07\x04\x04\x04\0\x02\0\x02\x12\x04\xd3\x01\x19\x1a\n5\n\x06\x04\x04\ + \x04\0\x02\x01\x12\x04\xd6\x01\x04\x0c\x1a%\x20Addition\x20of\x20an\x20a\ + udit\x20configuration.\n\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x01\x12\x04\ + \xd6\x01\x04\x07\n\x0f\n\x07\x04\x04\x04\0\x02\x01\x02\x12\x04\xd6\x01\n\ + \x0b\n4\n\x06\x04\x04\x04\0\x02\x02\x12\x04\xd9\x01\x04\x0f\x1a$\x20Remo\ + val\x20of\x20an\x20audit\x20configuration.\n\n\x0f\n\x07\x04\x04\x04\0\ + \x02\x02\x01\x12\x04\xd9\x01\x04\n\n\x0f\n\x07\x04\x04\x04\0\x02\x02\x02\ + \x12\x04\xd9\x01\r\x0e\n^\n\x04\x04\x04\x02\0\x12\x04\xde\x01\x02\x14\ + \x1aP\x20The\x20action\x20that\x20was\x20performed\x20on\x20an\x20audit\ + \x20configuration\x20in\x20a\x20policy.\n\x20Required\n\n\r\n\x05\x04\ + \x04\x02\0\x06\x12\x04\xde\x01\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\ + \x04\xde\x01\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xde\x01\x12\x13\n\ + \xda\x01\n\x04\x04\x04\x02\x01\x12\x04\xe4\x01\x02\x15\x1a\xcb\x01\x20Sp\ + ecifies\x20a\x20service\x20that\x20was\x20configured\x20for\x20Cloud\x20\ + Audit\x20Logging.\n\x20For\x20example,\x20`storage.googleapis.com`,\x20`\ + cloudsql.googleapis.com`.\n\x20`allServices`\x20is\x20a\x20special\x20va\ + lue\x20that\x20covers\x20all\x20services.\n\x20Required\n\n\r\n\x05\x04\ + \x04\x02\x01\x05\x12\x04\xe4\x01\x02\x08\n\r\n\x05\x04\x04\x02\x01\x01\ + \x12\x04\xe4\x01\t\x10\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xe4\x01\x13\ + \x14\n\xa5\x01\n\x04\x04\x04\x02\x02\x12\x04\xe9\x01\x02\x1d\x1a\x96\x01\ + \x20A\x20single\x20identity\x20that\x20is\x20exempted\x20from\x20\"data\ + \x20access\"\x20audit\n\x20logging\x20for\x20the\x20`service`\x20specifi\ + ed\x20above.\n\x20Follows\x20the\x20same\x20format\x20of\x20Binding.memb\ + ers.\n\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xe9\x01\x02\x08\n\r\n\x05\ + \x04\x04\x02\x02\x01\x12\x04\xe9\x01\t\x18\n\r\n\x05\x04\x04\x02\x02\x03\ + \x12\x04\xe9\x01\x1b\x1c\n\x82\x01\n\x04\x04\x04\x02\x03\x12\x04\xee\x01\ + \x02\x16\x1at\x20Specifies\x20the\x20log_type\x20that\x20was\x20be\x20en\ + abled.\x20ADMIN_ACTIVITY\x20is\x20always\n\x20enabled,\x20and\x20cannot\ + \x20be\x20configured.\n\x20Required\n\n\r\n\x05\x04\x04\x02\x03\x05\x12\ + \x04\xee\x01\x02\x08\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\xee\x01\t\x11\ + \n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\xee\x01\x14\x15b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(super::expr::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(5); + messages.push(Policy::generated_message_descriptor_data()); + messages.push(Binding::generated_message_descriptor_data()); + messages.push(PolicyDelta::generated_message_descriptor_data()); + messages.push(BindingDelta::generated_message_descriptor_data()); + messages.push(AuditConfigDelta::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(2); + enums.push(binding_delta::Action::generated_enum_descriptor_data()); + enums.push(audit_config_delta::Action::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/identity/accesscontextmanager/type/device_resources.rs b/googleapis-raw/src/identity/accesscontextmanager/type/device_resources.rs deleted file mode 100644 index 4c159cb..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/type/device_resources.rs +++ /dev/null @@ -1,305 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/type/device_resources.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum DeviceEncryptionStatus { - ENCRYPTION_UNSPECIFIED = 0, - ENCRYPTION_UNSUPPORTED = 1, - UNENCRYPTED = 2, - ENCRYPTED = 3, -} - -impl ::protobuf::ProtobufEnum for DeviceEncryptionStatus { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(DeviceEncryptionStatus::ENCRYPTION_UNSPECIFIED), - 1 => ::std::option::Option::Some(DeviceEncryptionStatus::ENCRYPTION_UNSUPPORTED), - 2 => ::std::option::Option::Some(DeviceEncryptionStatus::UNENCRYPTED), - 3 => ::std::option::Option::Some(DeviceEncryptionStatus::ENCRYPTED), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [DeviceEncryptionStatus] = &[ - DeviceEncryptionStatus::ENCRYPTION_UNSPECIFIED, - DeviceEncryptionStatus::ENCRYPTION_UNSUPPORTED, - DeviceEncryptionStatus::UNENCRYPTED, - DeviceEncryptionStatus::ENCRYPTED, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("DeviceEncryptionStatus", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for DeviceEncryptionStatus { -} - -impl ::std::default::Default for DeviceEncryptionStatus { - fn default() -> Self { - DeviceEncryptionStatus::ENCRYPTION_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for DeviceEncryptionStatus { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum OsType { - OS_UNSPECIFIED = 0, - DESKTOP_MAC = 1, - DESKTOP_WINDOWS = 2, - DESKTOP_LINUX = 3, - DESKTOP_CHROME_OS = 6, - ANDROID = 4, - IOS = 5, -} - -impl ::protobuf::ProtobufEnum for OsType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(OsType::OS_UNSPECIFIED), - 1 => ::std::option::Option::Some(OsType::DESKTOP_MAC), - 2 => ::std::option::Option::Some(OsType::DESKTOP_WINDOWS), - 3 => ::std::option::Option::Some(OsType::DESKTOP_LINUX), - 6 => ::std::option::Option::Some(OsType::DESKTOP_CHROME_OS), - 4 => ::std::option::Option::Some(OsType::ANDROID), - 5 => ::std::option::Option::Some(OsType::IOS), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [OsType] = &[ - OsType::OS_UNSPECIFIED, - OsType::DESKTOP_MAC, - OsType::DESKTOP_WINDOWS, - OsType::DESKTOP_LINUX, - OsType::DESKTOP_CHROME_OS, - OsType::ANDROID, - OsType::IOS, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("OsType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for OsType { -} - -impl ::std::default::Default for OsType { - fn default() -> Self { - OsType::OS_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for OsType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum DeviceManagementLevel { - MANAGEMENT_UNSPECIFIED = 0, - NONE = 1, - BASIC = 2, - COMPLETE = 3, -} - -impl ::protobuf::ProtobufEnum for DeviceManagementLevel { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(DeviceManagementLevel::MANAGEMENT_UNSPECIFIED), - 1 => ::std::option::Option::Some(DeviceManagementLevel::NONE), - 2 => ::std::option::Option::Some(DeviceManagementLevel::BASIC), - 3 => ::std::option::Option::Some(DeviceManagementLevel::COMPLETE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [DeviceManagementLevel] = &[ - DeviceManagementLevel::MANAGEMENT_UNSPECIFIED, - DeviceManagementLevel::NONE, - DeviceManagementLevel::BASIC, - DeviceManagementLevel::COMPLETE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("DeviceManagementLevel", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for DeviceManagementLevel { -} - -impl ::std::default::Default for DeviceManagementLevel { - fn default() -> Self { - DeviceManagementLevel::MANAGEMENT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for DeviceManagementLevel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n@google/identity/accesscontextmanager/type/device_resources.proto\x12)\ - google.identity.accesscontextmanager.type*p\n\x16DeviceEncryptionStatus\ - \x12\x1a\n\x16ENCRYPTION_UNSPECIFIED\x10\0\x12\x1a\n\x16ENCRYPTION_UNSUP\ - PORTED\x10\x01\x12\x0f\n\x0bUNENCRYPTED\x10\x02\x12\r\n\tENCRYPTED\x10\ - \x03*\x82\x01\n\x06OsType\x12\x12\n\x0eOS_UNSPECIFIED\x10\0\x12\x0f\n\ - \x0bDESKTOP_MAC\x10\x01\x12\x13\n\x0fDESKTOP_WINDOWS\x10\x02\x12\x11\n\r\ - DESKTOP_LINUX\x10\x03\x12\x15\n\x11DESKTOP_CHROME_OS\x10\x06\x12\x0b\n\ - \x07ANDROID\x10\x04\x12\x07\n\x03IOS\x10\x05*V\n\x15DeviceManagementLeve\ - l\x12\x1a\n\x16MANAGEMENT_UNSPECIFIED\x10\0\x12\x08\n\x04NONE\x10\x01\ - \x12\t\n\x05BASIC\x10\x02\x12\x0c\n\x08COMPLETE\x10\x03B\x8d\x02\n-com.g\ - oogle.identity.accesscontextmanager.typeB\tTypeProtoP\x01ZHgoogle.golang\ - .org/genproto/googleapis/identity/accesscontextmanager/type\xaa\x02)Goog\ - le.Identity.AccessContextManager.Type\xca\x02)Google\\Identity\\AccessCo\ - ntextManager\\Type\xea\x02,Google::Identity::AccessContextManager::TypeJ\ - \xb8\x13\n\x06\x12\x04\x0e\0R\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202020\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\02\n\x08\n\x01\x08\x12\x03\x12\0F\n\t\n\x02\x08%\x12\ - \x03\x12\0F\n\x08\n\x01\x08\x12\x03\x13\0_\n\t\n\x02\x08\x0b\x12\x03\x13\ - \0_\n\x08\n\x01\x08\x12\x03\x14\0F\n\t\n\x02\x08\x01\x12\x03\x14\0F\n\ - \x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\ - \x01\x08\x12\x03\x16\0*\n\t\n\x02\x08\x08\x12\x03\x16\0*\n\x08\n\x01\x08\ - \x12\x03\x17\0F\n\t\n\x02\x08)\x12\x03\x17\0F\n\x08\n\x01\x08\x12\x03\ - \x18\0E\n\t\n\x02\x08-\x12\x03\x18\0E\n1\n\x02\x05\0\x12\x04\x1b\0'\x01\ - \x1a%\x20The\x20encryption\x20state\x20of\x20the\x20device.\n\n\n\n\x03\ - \x05\0\x01\x12\x03\x1b\x05\x1b\nQ\n\x04\x05\0\x02\0\x12\x03\x1d\x02\x1d\ - \x1aD\x20The\x20encryption\x20status\x20of\x20the\x20device\x20is\x20not\ - \x20specified\x20or\x20not\x20known.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ - \x03\x1d\x02\x18\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1d\x1b\x1c\n6\n\ - \x04\x05\0\x02\x01\x12\x03\x20\x02\x1d\x1a)\x20The\x20device\x20does\x20\ - not\x20support\x20encryption.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\ - \x20\x02\x18\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x20\x1b\x1c\nL\n\x04\ - \x05\0\x02\x02\x12\x03#\x02\x12\x1a?\x20The\x20device\x20supports\x20enc\ - ryption,\x20but\x20is\x20currently\x20unencrypted.\n\n\x0c\n\x05\x05\0\ - \x02\x02\x01\x12\x03#\x02\r\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03#\x10\ - \x11\n'\n\x04\x05\0\x02\x03\x12\x03&\x02\x10\x1a\x1a\x20The\x20device\ - \x20is\x20encrypted.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03&\x02\x0b\n\ - \x0c\n\x05\x05\0\x02\x03\x02\x12\x03&\x0e\x0f\nB\n\x02\x05\x01\x12\x04+\ - \0@\x01\x1a6\x20The\x20operating\x20system\x20type\x20of\x20the\x20devic\ - e.\n\x20Next\x20id:\x207\n\n\n\n\x03\x05\x01\x01\x12\x03+\x05\x0b\nP\n\ - \x04\x05\x01\x02\0\x12\x03-\x02\x15\x1aC\x20The\x20operating\x20system\ - \x20of\x20the\x20device\x20is\x20not\x20specified\x20or\x20not\x20known.\ - \n\n\x0c\n\x05\x05\x01\x02\0\x01\x12\x03-\x02\x10\n\x0c\n\x05\x05\x01\ - \x02\0\x02\x12\x03-\x13\x14\n.\n\x04\x05\x01\x02\x01\x12\x030\x02\x12\ - \x1a!\x20A\x20desktop\x20Mac\x20operating\x20system.\n\n\x0c\n\x05\x05\ - \x01\x02\x01\x01\x12\x030\x02\r\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x030\ - \x10\x11\n2\n\x04\x05\x01\x02\x02\x12\x033\x02\x16\x1a%\x20A\x20desktop\ - \x20Windows\x20operating\x20system.\n\n\x0c\n\x05\x05\x01\x02\x02\x01\ - \x12\x033\x02\x11\n\x0c\n\x05\x05\x01\x02\x02\x02\x12\x033\x14\x15\n0\n\ - \x04\x05\x01\x02\x03\x12\x036\x02\x14\x1a#\x20A\x20desktop\x20Linux\x20o\ - perating\x20system.\n\n\x0c\n\x05\x05\x01\x02\x03\x01\x12\x036\x02\x0f\n\ - \x0c\n\x05\x05\x01\x02\x03\x02\x12\x036\x12\x13\n3\n\x04\x05\x01\x02\x04\ - \x12\x039\x02\x18\x1a&\x20A\x20desktop\x20ChromeOS\x20operating\x20syste\ - m.\n\n\x0c\n\x05\x05\x01\x02\x04\x01\x12\x039\x02\x13\n\x0c\n\x05\x05\ - \x01\x02\x04\x02\x12\x039\x16\x17\n+\n\x04\x05\x01\x02\x05\x12\x03<\x02\ - \x0e\x1a\x1e\x20An\x20Android\x20operating\x20system.\n\n\x0c\n\x05\x05\ - \x01\x02\x05\x01\x12\x03<\x02\t\n\x0c\n\x05\x05\x01\x02\x05\x02\x12\x03<\ - \x0c\r\n'\n\x04\x05\x01\x02\x06\x12\x03?\x02\n\x1a\x1a\x20An\x20iOS\x20o\ - perating\x20system.\n\n\x0c\n\x05\x05\x01\x02\x06\x01\x12\x03?\x02\x05\n\ - \x0c\n\x05\x05\x01\x02\x06\x02\x12\x03?\x08\t\nR\n\x02\x05\x02\x12\x04C\ - \0R\x01\x1aF\x20The\x20degree\x20to\x20which\x20the\x20device\x20is\x20m\ - anaged\x20by\x20the\x20Cloud\x20organization.\n\n\n\n\x03\x05\x02\x01\ - \x12\x03C\x05\x1a\nK\n\x04\x05\x02\x02\0\x12\x03E\x02\x1d\x1a>\x20The\ - \x20device's\x20management\x20level\x20is\x20not\x20specified\x20or\x20n\ - ot\x20known.\n\n\x0c\n\x05\x05\x02\x02\0\x01\x12\x03E\x02\x18\n\x0c\n\ - \x05\x05\x02\x02\0\x02\x12\x03E\x1b\x1c\n)\n\x04\x05\x02\x02\x01\x12\x03\ - H\x02\x0b\x1a\x1c\x20The\x20device\x20is\x20not\x20managed.\n\n\x0c\n\ - \x05\x05\x02\x02\x01\x01\x12\x03H\x02\x06\n\x0c\n\x05\x05\x02\x02\x01\ - \x02\x12\x03H\t\n\nw\n\x04\x05\x02\x02\x02\x12\x03L\x02\x0c\x1aj\x20Basi\ - c\x20management\x20is\x20enabled,\x20which\x20is\x20generally\x20limited\ - \x20to\x20monitoring\x20and\n\x20wiping\x20the\x20corporate\x20account.\ - \n\n\x0c\n\x05\x05\x02\x02\x02\x01\x12\x03L\x02\x07\n\x0c\n\x05\x05\x02\ - \x02\x02\x02\x12\x03L\n\x0b\n\xd8\x01\n\x04\x05\x02\x02\x03\x12\x03Q\x02\ - \x0f\x1a\xca\x01\x20Complete\x20device\x20management.\x20This\x20include\ - s\x20more\x20thorough\x20monitoring\x20and\x20the\n\x20ability\x20to\x20\ - directly\x20manage\x20the\x20device\x20(such\x20as\x20remote\x20wiping).\ - \x20This\x20can\x20be\n\x20enabled\x20through\x20the\x20Android\x20Enter\ - prise\x20Platform.\n\n\x0c\n\x05\x05\x02\x02\x03\x01\x12\x03Q\x02\n\n\ - \x0c\n\x05\x05\x02\x02\x03\x02\x12\x03Q\r\x0eb\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/type/mod.rs b/googleapis-raw/src/identity/accesscontextmanager/type/mod.rs index 4f5b917..e69de29 100644 --- a/googleapis-raw/src/identity/accesscontextmanager/type/mod.rs +++ b/googleapis-raw/src/identity/accesscontextmanager/type/mod.rs @@ -1 +0,0 @@ -pub mod device_resources; diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager.rs deleted file mode 100644 index 641744c..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager.rs +++ /dev/null @@ -1,7333 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/v1/access_context_manager.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ListAccessPoliciesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAccessPoliciesRequest { - fn default() -> &'a ListAccessPoliciesRequest { - ::default_instance() - } -} - -impl ListAccessPoliciesRequest { - pub fn new() -> ListAccessPoliciesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListAccessPoliciesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAccessPoliciesRequest { - ListAccessPoliciesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListAccessPoliciesRequest| { &m.parent }, - |m: &mut ListAccessPoliciesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListAccessPoliciesRequest| { &m.page_size }, - |m: &mut ListAccessPoliciesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListAccessPoliciesRequest| { &m.page_token }, - |m: &mut ListAccessPoliciesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAccessPoliciesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAccessPoliciesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAccessPoliciesRequest::new) - } -} - -impl ::protobuf::Clear for ListAccessPoliciesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAccessPoliciesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAccessPoliciesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAccessPoliciesResponse { - // message fields - pub access_policies: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAccessPoliciesResponse { - fn default() -> &'a ListAccessPoliciesResponse { - ::default_instance() - } -} - -impl ListAccessPoliciesResponse { - pub fn new() -> ListAccessPoliciesResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.AccessPolicy access_policies = 1; - - - pub fn get_access_policies(&self) -> &[super::access_policy::AccessPolicy] { - &self.access_policies - } - pub fn clear_access_policies(&mut self) { - self.access_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_access_policies(&mut self, v: ::protobuf::RepeatedField) { - self.access_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_access_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.access_policies - } - - // Take field - pub fn take_access_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.access_policies, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListAccessPoliciesResponse { - fn is_initialized(&self) -> bool { - for v in &self.access_policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.access_policies)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.access_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.access_policies { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAccessPoliciesResponse { - ListAccessPoliciesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_policies", - |m: &ListAccessPoliciesResponse| { &m.access_policies }, - |m: &mut ListAccessPoliciesResponse| { &mut m.access_policies }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListAccessPoliciesResponse| { &m.next_page_token }, - |m: &mut ListAccessPoliciesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAccessPoliciesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAccessPoliciesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAccessPoliciesResponse::new) - } -} - -impl ::protobuf::Clear for ListAccessPoliciesResponse { - fn clear(&mut self) { - self.access_policies.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAccessPoliciesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAccessPoliciesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetAccessPolicyRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetAccessPolicyRequest { - fn default() -> &'a GetAccessPolicyRequest { - ::default_instance() - } -} - -impl GetAccessPolicyRequest { - pub fn new() -> GetAccessPolicyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetAccessPolicyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetAccessPolicyRequest { - GetAccessPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetAccessPolicyRequest| { &m.name }, - |m: &mut GetAccessPolicyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetAccessPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetAccessPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetAccessPolicyRequest::new) - } -} - -impl ::protobuf::Clear for GetAccessPolicyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetAccessPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetAccessPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateAccessPolicyRequest { - // message fields - pub policy: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateAccessPolicyRequest { - fn default() -> &'a UpdateAccessPolicyRequest { - ::default_instance() - } -} - -impl UpdateAccessPolicyRequest { - pub fn new() -> UpdateAccessPolicyRequest { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.AccessPolicy policy = 1; - - - pub fn get_policy(&self) -> &super::access_policy::AccessPolicy { - self.policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_policy(&mut self) { - self.policy.clear(); - } - - pub fn has_policy(&self) -> bool { - self.policy.is_some() - } - - // Param is passed by value, moved - pub fn set_policy(&mut self, v: super::access_policy::AccessPolicy) { - self.policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_policy(&mut self) -> &mut super::access_policy::AccessPolicy { - if self.policy.is_none() { - self.policy.set_default(); - } - self.policy.as_mut().unwrap() - } - - // Take field - pub fn take_policy(&mut self) -> super::access_policy::AccessPolicy { - self.policy.take().unwrap_or_else(|| super::access_policy::AccessPolicy::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateAccessPolicyRequest { - fn is_initialized(&self) -> bool { - for v in &self.policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.policy)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.policy.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateAccessPolicyRequest { - UpdateAccessPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "policy", - |m: &UpdateAccessPolicyRequest| { &m.policy }, - |m: &mut UpdateAccessPolicyRequest| { &mut m.policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateAccessPolicyRequest| { &m.update_mask }, - |m: &mut UpdateAccessPolicyRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateAccessPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateAccessPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateAccessPolicyRequest::new) - } -} - -impl ::protobuf::Clear for UpdateAccessPolicyRequest { - fn clear(&mut self) { - self.policy.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateAccessPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateAccessPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteAccessPolicyRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteAccessPolicyRequest { - fn default() -> &'a DeleteAccessPolicyRequest { - ::default_instance() - } -} - -impl DeleteAccessPolicyRequest { - pub fn new() -> DeleteAccessPolicyRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteAccessPolicyRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteAccessPolicyRequest { - DeleteAccessPolicyRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteAccessPolicyRequest| { &m.name }, - |m: &mut DeleteAccessPolicyRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteAccessPolicyRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteAccessPolicyRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteAccessPolicyRequest::new) - } -} - -impl ::protobuf::Clear for DeleteAccessPolicyRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteAccessPolicyRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteAccessPolicyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAccessLevelsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub access_level_format: LevelFormat, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAccessLevelsRequest { - fn default() -> &'a ListAccessLevelsRequest { - ::default_instance() - } -} - -impl ListAccessLevelsRequest { - pub fn new() -> ListAccessLevelsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 4; - - - pub fn get_access_level_format(&self) -> LevelFormat { - self.access_level_format - } - pub fn clear_access_level_format(&mut self) { - self.access_level_format = LevelFormat::LEVEL_FORMAT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_access_level_format(&mut self, v: LevelFormat) { - self.access_level_format = v; - } -} - -impl ::protobuf::Message for ListAccessLevelsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.access_level_format, 4, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if self.access_level_format != LevelFormat::LEVEL_FORMAT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.access_level_format); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if self.access_level_format != LevelFormat::LEVEL_FORMAT_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.access_level_format))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAccessLevelsRequest { - ListAccessLevelsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListAccessLevelsRequest| { &m.parent }, - |m: &mut ListAccessLevelsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListAccessLevelsRequest| { &m.page_size }, - |m: &mut ListAccessLevelsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListAccessLevelsRequest| { &m.page_token }, - |m: &mut ListAccessLevelsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "access_level_format", - |m: &ListAccessLevelsRequest| { &m.access_level_format }, - |m: &mut ListAccessLevelsRequest| { &mut m.access_level_format }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAccessLevelsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAccessLevelsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAccessLevelsRequest::new) - } -} - -impl ::protobuf::Clear for ListAccessLevelsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.access_level_format = LevelFormat::LEVEL_FORMAT_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAccessLevelsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAccessLevelsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListAccessLevelsResponse { - // message fields - pub access_levels: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListAccessLevelsResponse { - fn default() -> &'a ListAccessLevelsResponse { - ::default_instance() - } -} - -impl ListAccessLevelsResponse { - pub fn new() -> ListAccessLevelsResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - - - pub fn get_access_levels(&self) -> &[super::access_level::AccessLevel] { - &self.access_levels - } - pub fn clear_access_levels(&mut self) { - self.access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_access_levels(&mut self, v: ::protobuf::RepeatedField) { - self.access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_access_levels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.access_levels - } - - // Take field - pub fn take_access_levels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.access_levels, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListAccessLevelsResponse { - fn is_initialized(&self) -> bool { - for v in &self.access_levels { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.access_levels)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.access_levels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.access_levels { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListAccessLevelsResponse { - ListAccessLevelsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_levels", - |m: &ListAccessLevelsResponse| { &m.access_levels }, - |m: &mut ListAccessLevelsResponse| { &mut m.access_levels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListAccessLevelsResponse| { &m.next_page_token }, - |m: &mut ListAccessLevelsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListAccessLevelsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListAccessLevelsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListAccessLevelsResponse::new) - } -} - -impl ::protobuf::Clear for ListAccessLevelsResponse { - fn clear(&mut self) { - self.access_levels.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListAccessLevelsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListAccessLevelsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetAccessLevelRequest { - // message fields - pub name: ::std::string::String, - pub access_level_format: LevelFormat, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetAccessLevelRequest { - fn default() -> &'a GetAccessLevelRequest { - ::default_instance() - } -} - -impl GetAccessLevelRequest { - pub fn new() -> GetAccessLevelRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2; - - - pub fn get_access_level_format(&self) -> LevelFormat { - self.access_level_format - } - pub fn clear_access_level_format(&mut self) { - self.access_level_format = LevelFormat::LEVEL_FORMAT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_access_level_format(&mut self, v: LevelFormat) { - self.access_level_format = v; - } -} - -impl ::protobuf::Message for GetAccessLevelRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.access_level_format, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.access_level_format != LevelFormat::LEVEL_FORMAT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.access_level_format); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.access_level_format != LevelFormat::LEVEL_FORMAT_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.access_level_format))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetAccessLevelRequest { - GetAccessLevelRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetAccessLevelRequest| { &m.name }, - |m: &mut GetAccessLevelRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "access_level_format", - |m: &GetAccessLevelRequest| { &m.access_level_format }, - |m: &mut GetAccessLevelRequest| { &mut m.access_level_format }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetAccessLevelRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetAccessLevelRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetAccessLevelRequest::new) - } -} - -impl ::protobuf::Clear for GetAccessLevelRequest { - fn clear(&mut self) { - self.name.clear(); - self.access_level_format = LevelFormat::LEVEL_FORMAT_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetAccessLevelRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetAccessLevelRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateAccessLevelRequest { - // message fields - pub parent: ::std::string::String, - pub access_level: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateAccessLevelRequest { - fn default() -> &'a CreateAccessLevelRequest { - ::default_instance() - } -} - -impl CreateAccessLevelRequest { - pub fn new() -> CreateAccessLevelRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.AccessLevel access_level = 2; - - - pub fn get_access_level(&self) -> &super::access_level::AccessLevel { - self.access_level.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_access_level(&mut self) { - self.access_level.clear(); - } - - pub fn has_access_level(&self) -> bool { - self.access_level.is_some() - } - - // Param is passed by value, moved - pub fn set_access_level(&mut self, v: super::access_level::AccessLevel) { - self.access_level = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_level(&mut self) -> &mut super::access_level::AccessLevel { - if self.access_level.is_none() { - self.access_level.set_default(); - } - self.access_level.as_mut().unwrap() - } - - // Take field - pub fn take_access_level(&mut self) -> super::access_level::AccessLevel { - self.access_level.take().unwrap_or_else(|| super::access_level::AccessLevel::new()) - } -} - -impl ::protobuf::Message for CreateAccessLevelRequest { - fn is_initialized(&self) -> bool { - for v in &self.access_level { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.access_level)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.access_level.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.access_level.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateAccessLevelRequest { - CreateAccessLevelRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateAccessLevelRequest| { &m.parent }, - |m: &mut CreateAccessLevelRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_level", - |m: &CreateAccessLevelRequest| { &m.access_level }, - |m: &mut CreateAccessLevelRequest| { &mut m.access_level }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateAccessLevelRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateAccessLevelRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateAccessLevelRequest::new) - } -} - -impl ::protobuf::Clear for CreateAccessLevelRequest { - fn clear(&mut self) { - self.parent.clear(); - self.access_level.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateAccessLevelRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateAccessLevelRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateAccessLevelRequest { - // message fields - pub access_level: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateAccessLevelRequest { - fn default() -> &'a UpdateAccessLevelRequest { - ::default_instance() - } -} - -impl UpdateAccessLevelRequest { - pub fn new() -> UpdateAccessLevelRequest { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.AccessLevel access_level = 1; - - - pub fn get_access_level(&self) -> &super::access_level::AccessLevel { - self.access_level.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_access_level(&mut self) { - self.access_level.clear(); - } - - pub fn has_access_level(&self) -> bool { - self.access_level.is_some() - } - - // Param is passed by value, moved - pub fn set_access_level(&mut self, v: super::access_level::AccessLevel) { - self.access_level = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_access_level(&mut self) -> &mut super::access_level::AccessLevel { - if self.access_level.is_none() { - self.access_level.set_default(); - } - self.access_level.as_mut().unwrap() - } - - // Take field - pub fn take_access_level(&mut self) -> super::access_level::AccessLevel { - self.access_level.take().unwrap_or_else(|| super::access_level::AccessLevel::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateAccessLevelRequest { - fn is_initialized(&self) -> bool { - for v in &self.access_level { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.access_level)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.access_level.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.access_level.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateAccessLevelRequest { - UpdateAccessLevelRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_level", - |m: &UpdateAccessLevelRequest| { &m.access_level }, - |m: &mut UpdateAccessLevelRequest| { &mut m.access_level }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateAccessLevelRequest| { &m.update_mask }, - |m: &mut UpdateAccessLevelRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateAccessLevelRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateAccessLevelRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateAccessLevelRequest::new) - } -} - -impl ::protobuf::Clear for UpdateAccessLevelRequest { - fn clear(&mut self) { - self.access_level.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateAccessLevelRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateAccessLevelRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteAccessLevelRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteAccessLevelRequest { - fn default() -> &'a DeleteAccessLevelRequest { - ::default_instance() - } -} - -impl DeleteAccessLevelRequest { - pub fn new() -> DeleteAccessLevelRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteAccessLevelRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteAccessLevelRequest { - DeleteAccessLevelRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteAccessLevelRequest| { &m.name }, - |m: &mut DeleteAccessLevelRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteAccessLevelRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteAccessLevelRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteAccessLevelRequest::new) - } -} - -impl ::protobuf::Clear for DeleteAccessLevelRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteAccessLevelRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteAccessLevelRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReplaceAccessLevelsRequest { - // message fields - pub parent: ::std::string::String, - pub access_levels: ::protobuf::RepeatedField, - pub etag: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReplaceAccessLevelsRequest { - fn default() -> &'a ReplaceAccessLevelsRequest { - ::default_instance() - } -} - -impl ReplaceAccessLevelsRequest { - pub fn new() -> ReplaceAccessLevelsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2; - - - pub fn get_access_levels(&self) -> &[super::access_level::AccessLevel] { - &self.access_levels - } - pub fn clear_access_levels(&mut self) { - self.access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_access_levels(&mut self, v: ::protobuf::RepeatedField) { - self.access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_access_levels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.access_levels - } - - // Take field - pub fn take_access_levels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.access_levels, ::protobuf::RepeatedField::new()) - } - - // string etag = 4; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ReplaceAccessLevelsRequest { - fn is_initialized(&self) -> bool { - for v in &self.access_levels { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.access_levels)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - for value in &self.access_levels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.etag); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - for v in &self.access_levels { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.etag.is_empty() { - os.write_string(4, &self.etag)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReplaceAccessLevelsRequest { - ReplaceAccessLevelsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ReplaceAccessLevelsRequest| { &m.parent }, - |m: &mut ReplaceAccessLevelsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_levels", - |m: &ReplaceAccessLevelsRequest| { &m.access_levels }, - |m: &mut ReplaceAccessLevelsRequest| { &mut m.access_levels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &ReplaceAccessLevelsRequest| { &m.etag }, - |m: &mut ReplaceAccessLevelsRequest| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReplaceAccessLevelsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReplaceAccessLevelsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReplaceAccessLevelsRequest::new) - } -} - -impl ::protobuf::Clear for ReplaceAccessLevelsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.access_levels.clear(); - self.etag.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReplaceAccessLevelsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReplaceAccessLevelsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReplaceAccessLevelsResponse { - // message fields - pub access_levels: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReplaceAccessLevelsResponse { - fn default() -> &'a ReplaceAccessLevelsResponse { - ::default_instance() - } -} - -impl ReplaceAccessLevelsResponse { - pub fn new() -> ReplaceAccessLevelsResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - - - pub fn get_access_levels(&self) -> &[super::access_level::AccessLevel] { - &self.access_levels - } - pub fn clear_access_levels(&mut self) { - self.access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_access_levels(&mut self, v: ::protobuf::RepeatedField) { - self.access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_access_levels(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.access_levels - } - - // Take field - pub fn take_access_levels(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.access_levels, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ReplaceAccessLevelsResponse { - fn is_initialized(&self) -> bool { - for v in &self.access_levels { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.access_levels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.access_levels { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.access_levels { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReplaceAccessLevelsResponse { - ReplaceAccessLevelsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "access_levels", - |m: &ReplaceAccessLevelsResponse| { &m.access_levels }, - |m: &mut ReplaceAccessLevelsResponse| { &mut m.access_levels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReplaceAccessLevelsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReplaceAccessLevelsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReplaceAccessLevelsResponse::new) - } -} - -impl ::protobuf::Clear for ReplaceAccessLevelsResponse { - fn clear(&mut self) { - self.access_levels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReplaceAccessLevelsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReplaceAccessLevelsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServicePerimetersRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListServicePerimetersRequest { - fn default() -> &'a ListServicePerimetersRequest { - ::default_instance() - } -} - -impl ListServicePerimetersRequest { - pub fn new() -> ListServicePerimetersRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListServicePerimetersRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListServicePerimetersRequest { - ListServicePerimetersRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListServicePerimetersRequest| { &m.parent }, - |m: &mut ListServicePerimetersRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListServicePerimetersRequest| { &m.page_size }, - |m: &mut ListServicePerimetersRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListServicePerimetersRequest| { &m.page_token }, - |m: &mut ListServicePerimetersRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServicePerimetersRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListServicePerimetersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicePerimetersRequest::new) - } -} - -impl ::protobuf::Clear for ListServicePerimetersRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListServicePerimetersRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListServicePerimetersRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListServicePerimetersResponse { - // message fields - pub service_perimeters: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListServicePerimetersResponse { - fn default() -> &'a ListServicePerimetersResponse { - ::default_instance() - } -} - -impl ListServicePerimetersResponse { - pub fn new() -> ListServicePerimetersResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - - - pub fn get_service_perimeters(&self) -> &[super::service_perimeter::ServicePerimeter] { - &self.service_perimeters - } - pub fn clear_service_perimeters(&mut self) { - self.service_perimeters.clear(); - } - - // Param is passed by value, moved - pub fn set_service_perimeters(&mut self, v: ::protobuf::RepeatedField) { - self.service_perimeters = v; - } - - // Mutable pointer to the field. - pub fn mut_service_perimeters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_perimeters - } - - // Take field - pub fn take_service_perimeters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_perimeters, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListServicePerimetersResponse { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_perimeters)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.service_perimeters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.service_perimeters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListServicePerimetersResponse { - ListServicePerimetersResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeters", - |m: &ListServicePerimetersResponse| { &m.service_perimeters }, - |m: &mut ListServicePerimetersResponse| { &mut m.service_perimeters }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListServicePerimetersResponse| { &m.next_page_token }, - |m: &mut ListServicePerimetersResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListServicePerimetersResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListServicePerimetersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListServicePerimetersResponse::new) - } -} - -impl ::protobuf::Clear for ListServicePerimetersResponse { - fn clear(&mut self) { - self.service_perimeters.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListServicePerimetersResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListServicePerimetersResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetServicePerimeterRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetServicePerimeterRequest { - fn default() -> &'a GetServicePerimeterRequest { - ::default_instance() - } -} - -impl GetServicePerimeterRequest { - pub fn new() -> GetServicePerimeterRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetServicePerimeterRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetServicePerimeterRequest { - GetServicePerimeterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetServicePerimeterRequest| { &m.name }, - |m: &mut GetServicePerimeterRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetServicePerimeterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetServicePerimeterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetServicePerimeterRequest::new) - } -} - -impl ::protobuf::Clear for GetServicePerimeterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetServicePerimeterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetServicePerimeterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateServicePerimeterRequest { - // message fields - pub parent: ::std::string::String, - pub service_perimeter: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateServicePerimeterRequest { - fn default() -> &'a CreateServicePerimeterRequest { - ::default_instance() - } -} - -impl CreateServicePerimeterRequest { - pub fn new() -> CreateServicePerimeterRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 2; - - - pub fn get_service_perimeter(&self) -> &super::service_perimeter::ServicePerimeter { - self.service_perimeter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service_perimeter(&mut self) { - self.service_perimeter.clear(); - } - - pub fn has_service_perimeter(&self) -> bool { - self.service_perimeter.is_some() - } - - // Param is passed by value, moved - pub fn set_service_perimeter(&mut self, v: super::service_perimeter::ServicePerimeter) { - self.service_perimeter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_perimeter(&mut self) -> &mut super::service_perimeter::ServicePerimeter { - if self.service_perimeter.is_none() { - self.service_perimeter.set_default(); - } - self.service_perimeter.as_mut().unwrap() - } - - // Take field - pub fn take_service_perimeter(&mut self) -> super::service_perimeter::ServicePerimeter { - self.service_perimeter.take().unwrap_or_else(|| super::service_perimeter::ServicePerimeter::new()) - } -} - -impl ::protobuf::Message for CreateServicePerimeterRequest { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeter { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_perimeter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.service_perimeter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.service_perimeter.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateServicePerimeterRequest { - CreateServicePerimeterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateServicePerimeterRequest| { &m.parent }, - |m: &mut CreateServicePerimeterRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeter", - |m: &CreateServicePerimeterRequest| { &m.service_perimeter }, - |m: &mut CreateServicePerimeterRequest| { &mut m.service_perimeter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateServicePerimeterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateServicePerimeterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateServicePerimeterRequest::new) - } -} - -impl ::protobuf::Clear for CreateServicePerimeterRequest { - fn clear(&mut self) { - self.parent.clear(); - self.service_perimeter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateServicePerimeterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateServicePerimeterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateServicePerimeterRequest { - // message fields - pub service_perimeter: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateServicePerimeterRequest { - fn default() -> &'a UpdateServicePerimeterRequest { - ::default_instance() - } -} - -impl UpdateServicePerimeterRequest { - pub fn new() -> UpdateServicePerimeterRequest { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 1; - - - pub fn get_service_perimeter(&self) -> &super::service_perimeter::ServicePerimeter { - self.service_perimeter.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_service_perimeter(&mut self) { - self.service_perimeter.clear(); - } - - pub fn has_service_perimeter(&self) -> bool { - self.service_perimeter.is_some() - } - - // Param is passed by value, moved - pub fn set_service_perimeter(&mut self, v: super::service_perimeter::ServicePerimeter) { - self.service_perimeter = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_perimeter(&mut self) -> &mut super::service_perimeter::ServicePerimeter { - if self.service_perimeter.is_none() { - self.service_perimeter.set_default(); - } - self.service_perimeter.as_mut().unwrap() - } - - // Take field - pub fn take_service_perimeter(&mut self) -> super::service_perimeter::ServicePerimeter { - self.service_perimeter.take().unwrap_or_else(|| super::service_perimeter::ServicePerimeter::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateServicePerimeterRequest { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeter { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.service_perimeter)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.service_perimeter.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.service_perimeter.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateServicePerimeterRequest { - UpdateServicePerimeterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeter", - |m: &UpdateServicePerimeterRequest| { &m.service_perimeter }, - |m: &mut UpdateServicePerimeterRequest| { &mut m.service_perimeter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateServicePerimeterRequest| { &m.update_mask }, - |m: &mut UpdateServicePerimeterRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateServicePerimeterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateServicePerimeterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateServicePerimeterRequest::new) - } -} - -impl ::protobuf::Clear for UpdateServicePerimeterRequest { - fn clear(&mut self) { - self.service_perimeter.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateServicePerimeterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateServicePerimeterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteServicePerimeterRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteServicePerimeterRequest { - fn default() -> &'a DeleteServicePerimeterRequest { - ::default_instance() - } -} - -impl DeleteServicePerimeterRequest { - pub fn new() -> DeleteServicePerimeterRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteServicePerimeterRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteServicePerimeterRequest { - DeleteServicePerimeterRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteServicePerimeterRequest| { &m.name }, - |m: &mut DeleteServicePerimeterRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteServicePerimeterRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteServicePerimeterRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteServicePerimeterRequest::new) - } -} - -impl ::protobuf::Clear for DeleteServicePerimeterRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteServicePerimeterRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteServicePerimeterRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReplaceServicePerimetersRequest { - // message fields - pub parent: ::std::string::String, - pub service_perimeters: ::protobuf::RepeatedField, - pub etag: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReplaceServicePerimetersRequest { - fn default() -> &'a ReplaceServicePerimetersRequest { - ::default_instance() - } -} - -impl ReplaceServicePerimetersRequest { - pub fn new() -> ReplaceServicePerimetersRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2; - - - pub fn get_service_perimeters(&self) -> &[super::service_perimeter::ServicePerimeter] { - &self.service_perimeters - } - pub fn clear_service_perimeters(&mut self) { - self.service_perimeters.clear(); - } - - // Param is passed by value, moved - pub fn set_service_perimeters(&mut self, v: ::protobuf::RepeatedField) { - self.service_perimeters = v; - } - - // Mutable pointer to the field. - pub fn mut_service_perimeters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_perimeters - } - - // Take field - pub fn take_service_perimeters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_perimeters, ::protobuf::RepeatedField::new()) - } - - // string etag = 3; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ReplaceServicePerimetersRequest { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_perimeters)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - for value in &self.service_perimeters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.etag); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - for v in &self.service_perimeters { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.etag.is_empty() { - os.write_string(3, &self.etag)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReplaceServicePerimetersRequest { - ReplaceServicePerimetersRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ReplaceServicePerimetersRequest| { &m.parent }, - |m: &mut ReplaceServicePerimetersRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeters", - |m: &ReplaceServicePerimetersRequest| { &m.service_perimeters }, - |m: &mut ReplaceServicePerimetersRequest| { &mut m.service_perimeters }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &ReplaceServicePerimetersRequest| { &m.etag }, - |m: &mut ReplaceServicePerimetersRequest| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReplaceServicePerimetersRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReplaceServicePerimetersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReplaceServicePerimetersRequest::new) - } -} - -impl ::protobuf::Clear for ReplaceServicePerimetersRequest { - fn clear(&mut self) { - self.parent.clear(); - self.service_perimeters.clear(); - self.etag.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReplaceServicePerimetersRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReplaceServicePerimetersRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReplaceServicePerimetersResponse { - // message fields - pub service_perimeters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReplaceServicePerimetersResponse { - fn default() -> &'a ReplaceServicePerimetersResponse { - ::default_instance() - } -} - -impl ReplaceServicePerimetersResponse { - pub fn new() -> ReplaceServicePerimetersResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - - - pub fn get_service_perimeters(&self) -> &[super::service_perimeter::ServicePerimeter] { - &self.service_perimeters - } - pub fn clear_service_perimeters(&mut self) { - self.service_perimeters.clear(); - } - - // Param is passed by value, moved - pub fn set_service_perimeters(&mut self, v: ::protobuf::RepeatedField) { - self.service_perimeters = v; - } - - // Mutable pointer to the field. - pub fn mut_service_perimeters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_perimeters - } - - // Take field - pub fn take_service_perimeters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_perimeters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ReplaceServicePerimetersResponse { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_perimeters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.service_perimeters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.service_perimeters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReplaceServicePerimetersResponse { - ReplaceServicePerimetersResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeters", - |m: &ReplaceServicePerimetersResponse| { &m.service_perimeters }, - |m: &mut ReplaceServicePerimetersResponse| { &mut m.service_perimeters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReplaceServicePerimetersResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReplaceServicePerimetersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReplaceServicePerimetersResponse::new) - } -} - -impl ::protobuf::Clear for ReplaceServicePerimetersResponse { - fn clear(&mut self) { - self.service_perimeters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReplaceServicePerimetersResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReplaceServicePerimetersResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommitServicePerimetersRequest { - // message fields - pub parent: ::std::string::String, - pub etag: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommitServicePerimetersRequest { - fn default() -> &'a CommitServicePerimetersRequest { - ::default_instance() - } -} - -impl CommitServicePerimetersRequest { - pub fn new() -> CommitServicePerimetersRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string etag = 2; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CommitServicePerimetersRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.etag); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.etag.is_empty() { - os.write_string(2, &self.etag)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommitServicePerimetersRequest { - CommitServicePerimetersRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CommitServicePerimetersRequest| { &m.parent }, - |m: &mut CommitServicePerimetersRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &CommitServicePerimetersRequest| { &m.etag }, - |m: &mut CommitServicePerimetersRequest| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitServicePerimetersRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommitServicePerimetersRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitServicePerimetersRequest::new) - } -} - -impl ::protobuf::Clear for CommitServicePerimetersRequest { - fn clear(&mut self) { - self.parent.clear(); - self.etag.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommitServicePerimetersRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommitServicePerimetersRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommitServicePerimetersResponse { - // message fields - pub service_perimeters: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommitServicePerimetersResponse { - fn default() -> &'a CommitServicePerimetersResponse { - ::default_instance() - } -} - -impl CommitServicePerimetersResponse { - pub fn new() -> CommitServicePerimetersResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - - - pub fn get_service_perimeters(&self) -> &[super::service_perimeter::ServicePerimeter] { - &self.service_perimeters - } - pub fn clear_service_perimeters(&mut self) { - self.service_perimeters.clear(); - } - - // Param is passed by value, moved - pub fn set_service_perimeters(&mut self, v: ::protobuf::RepeatedField) { - self.service_perimeters = v; - } - - // Mutable pointer to the field. - pub fn mut_service_perimeters(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.service_perimeters - } - - // Take field - pub fn take_service_perimeters(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.service_perimeters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for CommitServicePerimetersResponse { - fn is_initialized(&self) -> bool { - for v in &self.service_perimeters { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.service_perimeters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.service_perimeters { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.service_perimeters { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommitServicePerimetersResponse { - CommitServicePerimetersResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "service_perimeters", - |m: &CommitServicePerimetersResponse| { &m.service_perimeters }, - |m: &mut CommitServicePerimetersResponse| { &mut m.service_perimeters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitServicePerimetersResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommitServicePerimetersResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitServicePerimetersResponse::new) - } -} - -impl ::protobuf::Clear for CommitServicePerimetersResponse { - fn clear(&mut self) { - self.service_perimeters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommitServicePerimetersResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommitServicePerimetersResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListGcpUserAccessBindingsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListGcpUserAccessBindingsRequest { - fn default() -> &'a ListGcpUserAccessBindingsRequest { - ::default_instance() - } -} - -impl ListGcpUserAccessBindingsRequest { - pub fn new() -> ListGcpUserAccessBindingsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListGcpUserAccessBindingsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListGcpUserAccessBindingsRequest { - ListGcpUserAccessBindingsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListGcpUserAccessBindingsRequest| { &m.parent }, - |m: &mut ListGcpUserAccessBindingsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListGcpUserAccessBindingsRequest| { &m.page_size }, - |m: &mut ListGcpUserAccessBindingsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListGcpUserAccessBindingsRequest| { &m.page_token }, - |m: &mut ListGcpUserAccessBindingsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListGcpUserAccessBindingsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListGcpUserAccessBindingsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListGcpUserAccessBindingsRequest::new) - } -} - -impl ::protobuf::Clear for ListGcpUserAccessBindingsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListGcpUserAccessBindingsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListGcpUserAccessBindingsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListGcpUserAccessBindingsResponse { - // message fields - pub gcp_user_access_bindings: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListGcpUserAccessBindingsResponse { - fn default() -> &'a ListGcpUserAccessBindingsResponse { - ::default_instance() - } -} - -impl ListGcpUserAccessBindingsResponse { - pub fn new() -> ListGcpUserAccessBindingsResponse { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_bindings = 1; - - - pub fn get_gcp_user_access_bindings(&self) -> &[super::gcp_user_access_binding::GcpUserAccessBinding] { - &self.gcp_user_access_bindings - } - pub fn clear_gcp_user_access_bindings(&mut self) { - self.gcp_user_access_bindings.clear(); - } - - // Param is passed by value, moved - pub fn set_gcp_user_access_bindings(&mut self, v: ::protobuf::RepeatedField) { - self.gcp_user_access_bindings = v; - } - - // Mutable pointer to the field. - pub fn mut_gcp_user_access_bindings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.gcp_user_access_bindings - } - - // Take field - pub fn take_gcp_user_access_bindings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.gcp_user_access_bindings, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListGcpUserAccessBindingsResponse { - fn is_initialized(&self) -> bool { - for v in &self.gcp_user_access_bindings { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.gcp_user_access_bindings)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.gcp_user_access_bindings { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.gcp_user_access_bindings { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListGcpUserAccessBindingsResponse { - ListGcpUserAccessBindingsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "gcp_user_access_bindings", - |m: &ListGcpUserAccessBindingsResponse| { &m.gcp_user_access_bindings }, - |m: &mut ListGcpUserAccessBindingsResponse| { &mut m.gcp_user_access_bindings }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListGcpUserAccessBindingsResponse| { &m.next_page_token }, - |m: &mut ListGcpUserAccessBindingsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListGcpUserAccessBindingsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListGcpUserAccessBindingsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListGcpUserAccessBindingsResponse::new) - } -} - -impl ::protobuf::Clear for ListGcpUserAccessBindingsResponse { - fn clear(&mut self) { - self.gcp_user_access_bindings.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListGcpUserAccessBindingsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListGcpUserAccessBindingsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetGcpUserAccessBindingRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetGcpUserAccessBindingRequest { - fn default() -> &'a GetGcpUserAccessBindingRequest { - ::default_instance() - } -} - -impl GetGcpUserAccessBindingRequest { - pub fn new() -> GetGcpUserAccessBindingRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetGcpUserAccessBindingRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetGcpUserAccessBindingRequest { - GetGcpUserAccessBindingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetGcpUserAccessBindingRequest| { &m.name }, - |m: &mut GetGcpUserAccessBindingRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetGcpUserAccessBindingRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetGcpUserAccessBindingRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetGcpUserAccessBindingRequest::new) - } -} - -impl ::protobuf::Clear for GetGcpUserAccessBindingRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetGcpUserAccessBindingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetGcpUserAccessBindingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateGcpUserAccessBindingRequest { - // message fields - pub parent: ::std::string::String, - pub gcp_user_access_binding: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateGcpUserAccessBindingRequest { - fn default() -> &'a CreateGcpUserAccessBindingRequest { - ::default_instance() - } -} - -impl CreateGcpUserAccessBindingRequest { - pub fn new() -> CreateGcpUserAccessBindingRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 2; - - - pub fn get_gcp_user_access_binding(&self) -> &super::gcp_user_access_binding::GcpUserAccessBinding { - self.gcp_user_access_binding.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_gcp_user_access_binding(&mut self) { - self.gcp_user_access_binding.clear(); - } - - pub fn has_gcp_user_access_binding(&self) -> bool { - self.gcp_user_access_binding.is_some() - } - - // Param is passed by value, moved - pub fn set_gcp_user_access_binding(&mut self, v: super::gcp_user_access_binding::GcpUserAccessBinding) { - self.gcp_user_access_binding = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gcp_user_access_binding(&mut self) -> &mut super::gcp_user_access_binding::GcpUserAccessBinding { - if self.gcp_user_access_binding.is_none() { - self.gcp_user_access_binding.set_default(); - } - self.gcp_user_access_binding.as_mut().unwrap() - } - - // Take field - pub fn take_gcp_user_access_binding(&mut self) -> super::gcp_user_access_binding::GcpUserAccessBinding { - self.gcp_user_access_binding.take().unwrap_or_else(|| super::gcp_user_access_binding::GcpUserAccessBinding::new()) - } -} - -impl ::protobuf::Message for CreateGcpUserAccessBindingRequest { - fn is_initialized(&self) -> bool { - for v in &self.gcp_user_access_binding { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.gcp_user_access_binding)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.gcp_user_access_binding.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.gcp_user_access_binding.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateGcpUserAccessBindingRequest { - CreateGcpUserAccessBindingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateGcpUserAccessBindingRequest| { &m.parent }, - |m: &mut CreateGcpUserAccessBindingRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "gcp_user_access_binding", - |m: &CreateGcpUserAccessBindingRequest| { &m.gcp_user_access_binding }, - |m: &mut CreateGcpUserAccessBindingRequest| { &mut m.gcp_user_access_binding }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateGcpUserAccessBindingRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateGcpUserAccessBindingRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateGcpUserAccessBindingRequest::new) - } -} - -impl ::protobuf::Clear for CreateGcpUserAccessBindingRequest { - fn clear(&mut self) { - self.parent.clear(); - self.gcp_user_access_binding.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateGcpUserAccessBindingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateGcpUserAccessBindingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateGcpUserAccessBindingRequest { - // message fields - pub gcp_user_access_binding: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateGcpUserAccessBindingRequest { - fn default() -> &'a UpdateGcpUserAccessBindingRequest { - ::default_instance() - } -} - -impl UpdateGcpUserAccessBindingRequest { - pub fn new() -> UpdateGcpUserAccessBindingRequest { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 1; - - - pub fn get_gcp_user_access_binding(&self) -> &super::gcp_user_access_binding::GcpUserAccessBinding { - self.gcp_user_access_binding.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_gcp_user_access_binding(&mut self) { - self.gcp_user_access_binding.clear(); - } - - pub fn has_gcp_user_access_binding(&self) -> bool { - self.gcp_user_access_binding.is_some() - } - - // Param is passed by value, moved - pub fn set_gcp_user_access_binding(&mut self, v: super::gcp_user_access_binding::GcpUserAccessBinding) { - self.gcp_user_access_binding = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gcp_user_access_binding(&mut self) -> &mut super::gcp_user_access_binding::GcpUserAccessBinding { - if self.gcp_user_access_binding.is_none() { - self.gcp_user_access_binding.set_default(); - } - self.gcp_user_access_binding.as_mut().unwrap() - } - - // Take field - pub fn take_gcp_user_access_binding(&mut self) -> super::gcp_user_access_binding::GcpUserAccessBinding { - self.gcp_user_access_binding.take().unwrap_or_else(|| super::gcp_user_access_binding::GcpUserAccessBinding::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateGcpUserAccessBindingRequest { - fn is_initialized(&self) -> bool { - for v in &self.gcp_user_access_binding { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.gcp_user_access_binding)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.gcp_user_access_binding.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.gcp_user_access_binding.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateGcpUserAccessBindingRequest { - UpdateGcpUserAccessBindingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "gcp_user_access_binding", - |m: &UpdateGcpUserAccessBindingRequest| { &m.gcp_user_access_binding }, - |m: &mut UpdateGcpUserAccessBindingRequest| { &mut m.gcp_user_access_binding }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateGcpUserAccessBindingRequest| { &m.update_mask }, - |m: &mut UpdateGcpUserAccessBindingRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateGcpUserAccessBindingRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateGcpUserAccessBindingRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateGcpUserAccessBindingRequest::new) - } -} - -impl ::protobuf::Clear for UpdateGcpUserAccessBindingRequest { - fn clear(&mut self) { - self.gcp_user_access_binding.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateGcpUserAccessBindingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateGcpUserAccessBindingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteGcpUserAccessBindingRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteGcpUserAccessBindingRequest { - fn default() -> &'a DeleteGcpUserAccessBindingRequest { - ::default_instance() - } -} - -impl DeleteGcpUserAccessBindingRequest { - pub fn new() -> DeleteGcpUserAccessBindingRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteGcpUserAccessBindingRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteGcpUserAccessBindingRequest { - DeleteGcpUserAccessBindingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteGcpUserAccessBindingRequest| { &m.name }, - |m: &mut DeleteGcpUserAccessBindingRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteGcpUserAccessBindingRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteGcpUserAccessBindingRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteGcpUserAccessBindingRequest::new) - } -} - -impl ::protobuf::Clear for DeleteGcpUserAccessBindingRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteGcpUserAccessBindingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteGcpUserAccessBindingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GcpUserAccessBindingOperationMetadata { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcpUserAccessBindingOperationMetadata { - fn default() -> &'a GcpUserAccessBindingOperationMetadata { - ::default_instance() - } -} - -impl GcpUserAccessBindingOperationMetadata { - pub fn new() -> GcpUserAccessBindingOperationMetadata { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for GcpUserAccessBindingOperationMetadata { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcpUserAccessBindingOperationMetadata { - GcpUserAccessBindingOperationMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcpUserAccessBindingOperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcpUserAccessBindingOperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcpUserAccessBindingOperationMetadata::new) - } -} - -impl ::protobuf::Clear for GcpUserAccessBindingOperationMetadata { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcpUserAccessBindingOperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcpUserAccessBindingOperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AccessContextManagerOperationMetadata { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AccessContextManagerOperationMetadata { - fn default() -> &'a AccessContextManagerOperationMetadata { - ::default_instance() - } -} - -impl AccessContextManagerOperationMetadata { - pub fn new() -> AccessContextManagerOperationMetadata { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for AccessContextManagerOperationMetadata { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AccessContextManagerOperationMetadata { - AccessContextManagerOperationMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AccessContextManagerOperationMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AccessContextManagerOperationMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AccessContextManagerOperationMetadata::new) - } -} - -impl ::protobuf::Clear for AccessContextManagerOperationMetadata { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AccessContextManagerOperationMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AccessContextManagerOperationMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum LevelFormat { - LEVEL_FORMAT_UNSPECIFIED = 0, - AS_DEFINED = 1, - CEL = 2, -} - -impl ::protobuf::ProtobufEnum for LevelFormat { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(LevelFormat::LEVEL_FORMAT_UNSPECIFIED), - 1 => ::std::option::Option::Some(LevelFormat::AS_DEFINED), - 2 => ::std::option::Option::Some(LevelFormat::CEL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [LevelFormat] = &[ - LevelFormat::LEVEL_FORMAT_UNSPECIFIED, - LevelFormat::AS_DEFINED, - LevelFormat::CEL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("LevelFormat", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for LevelFormat { -} - -impl ::std::default::Default for LevelFormat { - fn default() -> Self { - LevelFormat::LEVEL_FORMAT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for LevelFormat { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nDgoogle/identity/accesscontextmanager/v1/access_context_manager.proto\ - \x12'google.identity.accesscontextmanager.v1\x1a\x1cgoogle/api/annotatio\ - ns.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior\ - .proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.\ - proto\x1a\x1agoogle/iam/v1/policy.proto\x1a:google/identity/accesscontex\ - tmanager/v1/access_level.proto\x1a;google/identity/accesscontextmanager/\ - v1/access_policy.proto\x1aEgoogle/identity/accesscontextmanager/v1/gcp_u\ - ser_access_binding.proto\x1a?google/identity/accesscontextmanager/v1/ser\ - vice_perimeter.proto\x1a#google/longrunning/operations.proto\x1a\x20goog\ - le/protobuf/field_mask.proto\"\xa9\x01\n\x19ListAccessPoliciesRequest\ - \x12P\n\x06parent\x18\x01\x20\x01(\tR\x06parentB8\xfaA2\n0cloudresourcem\ - anager.googleapis.com/Organization\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\ - \x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpa\ - geToken\"\xa4\x01\n\x1aListAccessPoliciesResponse\x12^\n\x0faccess_polic\ - ies\x18\x01\x20\x03(\x0b25.google.identity.accesscontextmanager.v1.Acces\ - sPolicyR\x0eaccessPolicies\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\ - \rnextPageToken\"f\n\x16GetAccessPolicyRequest\x12L\n\x04name\x18\x01\ - \x20\x01(\tR\x04nameB8\xfaA2\n0accesscontextmanager.googleapis.com/Acces\ - sPolicy\xe0A\x02\"\xb1\x01\n\x19UpdateAccessPolicyRequest\x12R\n\x06poli\ - cy\x18\x01\x20\x01(\x0b25.google.identity.accesscontextmanager.v1.Access\ - PolicyR\x06policyB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\ - \x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"i\n\x19D\ - eleteAccessPolicyRequest\x12L\n\x04name\x18\x01\x20\x01(\tR\x04nameB8\ - \xfaA2\n0accesscontextmanager.googleapis.com/AccessPolicy\xe0A\x02\"\x8c\ - \x02\n\x17ListAccessLevelsRequest\x12O\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB7\xfaA1\x12/accesscontextmanager.googleapis.com/AccessLevel\ - \xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\ - \n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12d\n\x13access_level_for\ - mat\x18\x04\x20\x01(\x0e24.google.identity.accesscontextmanager.v1.Level\ - FormatR\x11accessLevelFormat\"\x9d\x01\n\x18ListAccessLevelsResponse\x12\ - Y\n\raccess_levels\x18\x01\x20\x03(\x0b24.google.identity.accesscontextm\ - anager.v1.AccessLevelR\x0caccessLevels\x12&\n\x0fnext_page_token\x18\x02\ - \x20\x01(\tR\rnextPageToken\"\xca\x01\n\x15GetAccessLevelRequest\x12K\n\ - \x04name\x18\x01\x20\x01(\tR\x04nameB7\xfaA1\n/accesscontextmanager.goog\ - leapis.com/AccessLevel\xe0A\x02\x12d\n\x13access_level_format\x18\x02\ - \x20\x01(\x0e24.google.identity.accesscontextmanager.v1.LevelFormatR\x11\ - accessLevelFormat\"\xc9\x01\n\x18CreateAccessLevelRequest\x12O\n\x06pare\ - nt\x18\x01\x20\x01(\tR\x06parentB7\xfaA1\x12/accesscontextmanager.google\ - apis.com/AccessLevel\xe0A\x02\x12\\\n\x0caccess_level\x18\x02\x20\x01(\ - \x0b24.google.identity.accesscontextmanager.v1.AccessLevelR\x0baccessLev\ - elB\x03\xe0A\x02\"\xba\x01\n\x18UpdateAccessLevelRequest\x12\\\n\x0cacce\ - ss_level\x18\x01\x20\x01(\x0b24.google.identity.accesscontextmanager.v1.\ - AccessLevelR\x0baccessLevelB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\ - \"g\n\x18DeleteAccessLevelRequest\x12K\n\x04name\x18\x01\x20\x01(\tR\x04\ - nameB7\xfaA1\n/accesscontextmanager.googleapis.com/AccessLevel\xe0A\x02\ - \"\xe1\x01\n\x1aReplaceAccessLevelsRequest\x12O\n\x06parent\x18\x01\x20\ - \x01(\tR\x06parentB7\xfaA1\x12/accesscontextmanager.googleapis.com/Acces\ - sLevel\xe0A\x02\x12^\n\raccess_levels\x18\x02\x20\x03(\x0b24.google.iden\ - tity.accesscontextmanager.v1.AccessLevelR\x0caccessLevelsB\x03\xe0A\x02\ - \x12\x12\n\x04etag\x18\x04\x20\x01(\tR\x04etag\"x\n\x1bReplaceAccessLeve\ - lsResponse\x12Y\n\raccess_levels\x18\x01\x20\x03(\x0b24.google.identity.\ - accesscontextmanager.v1.AccessLevelR\x0caccessLevels\"\xb0\x01\n\x1cList\ - ServicePerimetersRequest\x12T\n\x06parent\x18\x01\x20\x01(\tR\x06parentB\ - <\xfaA6\x124accesscontextmanager.googleapis.com/ServicePerimeter\xe0A\ - \x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\np\ - age_token\x18\x03\x20\x01(\tR\tpageToken\"\xb1\x01\n\x1dListServicePerim\ - etersResponse\x12h\n\x12service_perimeters\x18\x01\x20\x03(\x0b29.google\ - .identity.accesscontextmanager.v1.ServicePerimeterR\x11servicePerimeters\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"n\n\x1aGe\ - tServicePerimeterRequest\x12P\n\x04name\x18\x01\x20\x01(\tR\x04nameB<\ - \xfaA6\n4accesscontextmanager.googleapis.com/ServicePerimeter\xe0A\x02\"\ - \xe2\x01\n\x1dCreateServicePerimeterRequest\x12T\n\x06parent\x18\x01\x20\ - \x01(\tR\x06parentB<\xfaA6\x124accesscontextmanager.googleapis.com/Servi\ - cePerimeter\xe0A\x02\x12k\n\x11service_perimeter\x18\x02\x20\x01(\x0b29.\ - google.identity.accesscontextmanager.v1.ServicePerimeterR\x10servicePeri\ - meterB\x03\xe0A\x02\"\xce\x01\n\x1dUpdateServicePerimeterRequest\x12k\n\ - \x11service_perimeter\x18\x01\x20\x01(\x0b29.google.identity.accessconte\ - xtmanager.v1.ServicePerimeterR\x10servicePerimeterB\x03\xe0A\x02\x12@\n\ - \x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nup\ - dateMaskB\x03\xe0A\x02\"q\n\x1dDeleteServicePerimeterRequest\x12P\n\x04n\ - ame\x18\x01\x20\x01(\tR\x04nameB<\xfaA6\n4accesscontextmanager.googleapi\ - s.com/ServicePerimeter\xe0A\x02\"\xfa\x01\n\x1fReplaceServicePerimetersR\ - equest\x12T\n\x06parent\x18\x01\x20\x01(\tR\x06parentB<\xfaA6\x124access\ - contextmanager.googleapis.com/ServicePerimeter\xe0A\x02\x12m\n\x12servic\ - e_perimeters\x18\x02\x20\x03(\x0b29.google.identity.accesscontextmanager\ - .v1.ServicePerimeterR\x11servicePerimetersB\x03\xe0A\x02\x12\x12\n\x04et\ - ag\x18\x03\x20\x01(\tR\x04etag\"\x8c\x01\n\x20ReplaceServicePerimetersRe\ - sponse\x12h\n\x12service_perimeters\x18\x01\x20\x03(\x0b29.google.identi\ - ty.accesscontextmanager.v1.ServicePerimeterR\x11servicePerimeters\"\x8a\ - \x01\n\x1eCommitServicePerimetersRequest\x12T\n\x06parent\x18\x01\x20\ - \x01(\tR\x06parentB<\xfaA6\x124accesscontextmanager.googleapis.com/Servi\ - cePerimeter\xe0A\x02\x12\x12\n\x04etag\x18\x02\x20\x01(\tR\x04etag\"\x8b\ - \x01\n\x1fCommitServicePerimetersResponse\x12h\n\x12service_perimeters\ - \x18\x01\x20\x03(\x0b29.google.identity.accesscontextmanager.v1.ServiceP\ - erimeterR\x11servicePerimeters\"\xba\x01\n\x20ListGcpUserAccessBindingsR\ - equest\x12P\n\x06parent\x18\x01\x20\x01(\tR\x06parentB8\xfaA2\n0cloudres\ - ourcemanager.googleapis.com/Organization\xe0A\x02\x12\x20\n\tpage_size\ - \x18\x02\x20\x01(\x05R\x08pageSizeB\x03\xe0A\x01\x12\"\n\npage_token\x18\ - \x03\x20\x01(\tR\tpageTokenB\x03\xe0A\x01\"\xc3\x01\n!ListGcpUserAccessB\ - indingsResponse\x12v\n\x18gcp_user_access_bindings\x18\x01\x20\x03(\x0b2\ - =.google.identity.accesscontextmanager.v1.GcpUserAccessBindingR\x15gcpUs\ - erAccessBindings\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPage\ - Token\"v\n\x1eGetGcpUserAccessBindingRequest\x12T\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB@\xfaA:\n8accesscontextmanager.googleapis.com/GcpUserAc\ - cessBinding\xe0A\x02\"\xf0\x01\n!CreateGcpUserAccessBindingRequest\x12P\ - \n\x06parent\x18\x01\x20\x01(\tR\x06parentB8\xfaA2\n0cloudresourcemanage\ - r.googleapis.com/Organization\xe0A\x02\x12y\n\x17gcp_user_access_binding\ - \x18\x02\x20\x01(\x0b2=.google.identity.accesscontextmanager.v1.GcpUserA\ - ccessBindingR\x14gcpUserAccessBindingB\x03\xe0A\x02\"\xe0\x01\n!UpdateGc\ - pUserAccessBindingRequest\x12y\n\x17gcp_user_access_binding\x18\x01\x20\ - \x01(\x0b2=.google.identity.accesscontextmanager.v1.GcpUserAccessBinding\ - R\x14gcpUserAccessBindingB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\ - \"y\n!DeleteGcpUserAccessBindingRequest\x12T\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB@\xfaA:\n8accesscontextmanager.googleapis.com/GcpUserAccessB\ - inding\xe0A\x02\"'\n%GcpUserAccessBindingOperationMetadata\"'\n%AccessCo\ - ntextManagerOperationMetadata*D\n\x0bLevelFormat\x12\x1c\n\x18LEVEL_FORM\ - AT_UNSPECIFIED\x10\0\x12\x0e\n\nAS_DEFINED\x10\x01\x12\x07\n\x03CEL\x10\ - \x022\xf12\n\x14AccessContextManager\x12\xb9\x01\n\x12ListAccessPolicies\ - \x12B.google.identity.accesscontextmanager.v1.ListAccessPoliciesRequest\ - \x1aC.google.identity.accesscontextmanager.v1.ListAccessPoliciesResponse\ - \"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/v1/accessPolicies\x12\xb5\x01\n\ - \x0fGetAccessPolicy\x12?.google.identity.accesscontextmanager.v1.GetAcce\ - ssPolicyRequest\x1a5.google.identity.accesscontextmanager.v1.AccessPolic\ - y\"*\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/{name=accessPolicies/*}\xdaA\x04\ - name\x12\xc1\x01\n\x12CreateAccessPolicy\x125.google.identity.accesscont\ - extmanager.v1.AccessPolicy\x1a\x1d.google.longrunning.Operation\"U\xcaA5\ - \n\x0cAccessPolicy\x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\ - \x93\x02\x17\"\x12/v1/accessPolicies:\x01*\x12\xf8\x01\n\x12UpdateAccess\ - Policy\x12B.google.identity.accesscontextmanager.v1.UpdateAccessPolicyRe\ - quest\x1a\x1d.google.longrunning.Operation\"\x7f\xcaA5\n\x0cAccessPolicy\ - \x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\x93\x02,2\"/v1/{p\ - olicy.name=accessPolicies/*}:\x06policy\xdaA\x12policy,update_mask\x12\ - \xe4\x01\n\x12DeleteAccessPolicy\x12B.google.identity.accesscontextmanag\ - er.v1.DeleteAccessPolicyRequest\x1a\x1d.google.longrunning.Operation\"k\ - \xcaA>\n\x15google.protobuf.Empty\x12%AccessContextManagerOperationMetad\ - ata\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/{name=accessPolicies/*}\xdaA\x04name\ - \x12\xd4\x01\n\x10ListAccessLevels\x12@.google.identity.accesscontextman\ - ager.v1.ListAccessLevelsRequest\x1aA.google.identity.accesscontextmanage\ - r.v1.ListAccessLevelsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v1/{parent=ac\ - cessPolicies/*}/accessLevels\xdaA\x06parent\x12\xc1\x01\n\x0eGetAccessLe\ - vel\x12>.google.identity.accesscontextmanager.v1.GetAccessLevelRequest\ - \x1a4.google.identity.accesscontextmanager.v1.AccessLevel\"9\x82\xd3\xe4\ - \x93\x02,\x12*/v1/{name=accessPolicies/*/accessLevels/*}\xdaA\x04name\ - \x12\x85\x02\n\x11CreateAccessLevel\x12A.google.identity.accesscontextma\ - nager.v1.CreateAccessLevelRequest\x1a\x1d.google.longrunning.Operation\"\ - \x8d\x01\xcaA4\n\x0bAccessLevel\x12%AccessContextManagerOperationMetadat\ - a\x82\xd3\xe4\x93\x02:\"*/v1/{parent=accessPolicies/*}/accessLevels:\x0c\ - access_level\xdaA\x13parent,access_level\x12\x97\x02\n\x11UpdateAccessLe\ - vel\x12A.google.identity.accesscontextmanager.v1.UpdateAccessLevelReques\ - t\x1a\x1d.google.longrunning.Operation\"\x9f\x01\xcaA4\n\x0bAccessLevel\ - \x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\x93\x02G27/v1/{ac\ - cess_level.name=accessPolicies/*/accessLevels/*}:\x0caccess_level\xdaA\ - \x18access_level,update_mask\x12\xf1\x01\n\x11DeleteAccessLevel\x12A.goo\ - gle.identity.accesscontextmanager.v1.DeleteAccessLevelRequest\x1a\x1d.go\ - ogle.longrunning.Operation\"z\xcaA>\n\x15google.protobuf.Empty\x12%Acces\ - sContextManagerOperationMetadata\x82\xd3\xe4\x93\x02,**/v1/{name=accessP\ - olicies/*/accessLevels/*}\xdaA\x04name\x12\x83\x02\n\x13ReplaceAccessLev\ - els\x12C.google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequ\ - est\x1a\x1d.google.longrunning.Operation\"\x87\x01\xcaAD\n\x1bReplaceAcc\ - essLevelsResponse\x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\ - \x93\x02:\"5/v1/{parent=accessPolicies/*}/accessLevels:replaceAll:\x01*\ - \x12\xe8\x01\n\x15ListServicePerimeters\x12E.google.identity.accessconte\ - xtmanager.v1.ListServicePerimetersRequest\x1aF.google.identity.accesscon\ - textmanager.v1.ListServicePerimetersResponse\"@\x82\xd3\xe4\x93\x021\x12\ - //v1/{parent=accessPolicies/*}/servicePerimeters\xdaA\x06parent\x12\xd5\ - \x01\n\x13GetServicePerimeter\x12C.google.identity.accesscontextmanager.\ - v1.GetServicePerimeterRequest\x1a9.google.identity.accesscontextmanager.\ - v1.ServicePerimeter\">\x82\xd3\xe4\x93\x021\x12//v1/{name=accessPolicies\ - /*/servicePerimeters/*}\xdaA\x04name\x12\xa3\x02\n\x16CreateServicePerim\ - eter\x12F.google.identity.accesscontextmanager.v1.CreateServicePerimeter\ - Request\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xcaA9\n\x10Servic\ - ePerimeter\x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\x93\x02\ - D\"//v1/{parent=accessPolicies/*}/servicePerimeters:\x11service_perimete\ - r\xdaA\x18parent,service_perimeter\x12\xba\x02\n\x16UpdateServicePerimet\ - er\x12F.google.identity.accesscontextmanager.v1.UpdateServicePerimeterRe\ - quest\x1a\x1d.google.longrunning.Operation\"\xb8\x01\xcaA9\n\x10ServiceP\ - erimeter\x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\x93\x02V2\ - A/v1/{service_perimeter.name=accessPolicies/*/servicePerimeters/*}:\x11s\ - ervice_perimeter\xdaA\x1dservice_perimeter,update_mask\x12\x80\x02\n\x16\ - DeleteServicePerimeter\x12F.google.identity.accesscontextmanager.v1.Dele\ - teServicePerimeterRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\ - A>\n\x15google.protobuf.Empty\x12%AccessContextManagerOperationMetadata\ - \x82\xd3\xe4\x93\x021*//v1/{name=accessPolicies/*/servicePerimeters/*}\ - \xdaA\x04name\x12\x97\x02\n\x18ReplaceServicePerimeters\x12H.google.iden\ - tity.accesscontextmanager.v1.ReplaceServicePerimetersRequest\x1a\x1d.goo\ - gle.longrunning.Operation\"\x91\x01\xcaAI\n\x20ReplaceServicePerimetersR\ - esponse\x12%AccessContextManagerOperationMetadata\x82\xd3\xe4\x93\x02?\"\ - :/v1/{parent=accessPolicies/*}/servicePerimeters:replaceAll:\x01*\x12\ - \x90\x02\n\x17CommitServicePerimeters\x12G.google.identity.accesscontext\ - manager.v1.CommitServicePerimetersRequest\x1a\x1d.google.longrunning.Ope\ - ration\"\x8c\x01\xcaAH\n\x1fCommitServicePerimetersResponse\x12%AccessCo\ - ntextManagerOperationMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{parent=accessP\ - olicies/*}/servicePerimeters:commit:\x01*\x12\xf7\x01\n\x19ListGcpUserAc\ - cessBindings\x12I.google.identity.accesscontextmanager.v1.ListGcpUserAcc\ - essBindingsRequest\x1aJ.google.identity.accesscontextmanager.v1.ListGcpU\ - serAccessBindingsResponse\"C\x82\xd3\xe4\x93\x024\x122/v1/{parent=organi\ - zations/*}/gcpUserAccessBindings\xdaA\x06parent\x12\xe4\x01\n\x17GetGcpU\ - serAccessBinding\x12G.google.identity.accesscontextmanager.v1.GetGcpUser\ - AccessBindingRequest\x1a=.google.identity.accesscontextmanager.v1.GcpUse\ - rAccessBinding\"A\x82\xd3\xe4\x93\x024\x122/v1/{name=organizations/*/gcp\ - UserAccessBindings/*}\xdaA\x04name\x12\xbe\x02\n\x1aCreateGcpUserAccessB\ - inding\x12J.google.identity.accesscontextmanager.v1.CreateGcpUserAccessB\ - indingRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xcaA=\n\x14\ - GcpUserAccessBinding\x12%GcpUserAccessBindingOperationMetadata\x82\xd3\ - \xe4\x93\x02M\"2/v1/{parent=organizations/*}/gcpUserAccessBindings:\x17g\ - cp_user_access_binding\xdaA\x1eparent,gcp_user_access_binding\x12\xdb\ - \x02\n\x1aUpdateGcpUserAccessBinding\x12J.google.identity.accesscontextm\ - anager.v1.UpdateGcpUserAccessBindingRequest\x1a\x1d.google.longrunning.O\ - peration\"\xd1\x01\xcaA=\n\x14GcpUserAccessBinding\x12%GcpUserAccessBind\ - ingOperationMetadata\x82\xd3\xe4\x93\x02e2J/v1/{gcp_user_access_binding.\ - name=organizations/*/gcpUserAccessBindings/*}:\x17gcp_user_access_bindin\ - g\xdaA#gcp_user_access_binding,update_mask\x12\x8c\x02\n\x1aDeleteGcpUse\ - rAccessBinding\x12J.google.identity.accesscontextmanager.v1.DeleteGcpUse\ - rAccessBindingRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\ - A>\n\x15google.protobuf.Empty\x12%GcpUserAccessBindingOperationMetadata\ - \x82\xd3\xe4\x93\x024*2/v1/{name=organizations/*/gcpUserAccessBindings/*\ - }\xdaA\x04name\x12\x82\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamP\ - olicyRequest\x1a\x15.google.iam.v1.Policy\"7\x82\xd3\xe4\x93\x021\",/v1/\ - {resource=accessPolicies/*}:setIamPolicy:\x01*\x12\x82\x01\n\x0cGetIamPo\ - licy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Polic\ - y\"7\x82\xd3\xe4\x93\x021\",/v1/{resource=accessPolicies/*}:getIamPolicy\ - :\x01*\x12\xbf\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPer\ - missionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xd3\x01\ - \x82\xd3\xe4\x93\x02\xcc\x01\"2/v1/{resource=accessPolicies/*}:testIamPe\ - rmissions:\x01*ZF\"A/v1/{resource=accessPolicies/*/accessLevels/*}:testI\ - amPermissions:\x01*ZK\"F/v1/{resource=accessPolicies/*/servicePerimeters\ - /*}:testIamPermissions:\x01*\x1aW\xd2A.https://www.googleapis.com/auth/c\ - loud-platform\xcaA#accesscontextmanager.googleapis.comB\xb0\x02\n+com.go\ - ogle.identity.accesscontextmanager.v1B\x19AccessContextManagerProtoP\x01\ - Z\\cloud.google.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb\ - ;accesscontextmanagerpb\xa2\x02\x04GACM\xaa\x02'Google.Identity.AccessCo\ - ntextManager.V1\xca\x02'Google\\Identity\\AccessContextManager\\V1\xea\ - \x02*Google::Identity::AccessContextManager::V1J\xbc\xfc\x01\n\x07\x12\ - \x05\x0e\0\xd9\x07\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ - \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ - ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ - \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ - \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ - censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ - \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\00\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\ - \x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0\ - #\n\t\n\x02\x03\x04\x12\x03\x16\0(\n\t\n\x02\x03\x05\x12\x03\x17\0$\n\t\ - \n\x02\x03\x06\x12\x03\x18\0D\n\t\n\x02\x03\x07\x12\x03\x19\0E\n\t\n\x02\ - \x03\x08\x12\x03\x1a\0O\n\t\n\x02\x03\t\x12\x03\x1b\0I\n\t\n\x02\x03\n\ - \x12\x03\x1c\0-\n\t\n\x02\x03\x0b\x12\x03\x1d\0*\n\x08\n\x01\x08\x12\x03\ - \x1f\0D\n\t\n\x02\x08%\x12\x03\x1f\0D\n\x08\n\x01\x08\x12\x03\x20\0s\n\t\ - \n\x02\x08\x0b\x12\x03\x20\0s\n\x08\n\x01\x08\x12\x03!\0\"\n\t\n\x02\x08\ - \n\x12\x03!\0\"\n\x08\n\x01\x08\x12\x03\"\0:\n\t\n\x02\x08\x08\x12\x03\"\ - \0:\n\x08\n\x01\x08\x12\x03#\0D\n\t\n\x02\x08\x01\x12\x03#\0D\n\x08\n\ - \x01\x08\x12\x03$\0\"\n\t\n\x02\x08$\x12\x03$\0\"\n\x08\n\x01\x08\x12\ - \x03%\0D\n\t\n\x02\x08)\x12\x03%\0D\n\x08\n\x01\x08\x12\x03&\0C\n\t\n\ - \x02\x08-\x12\x03&\0C\n\xfb\x04\n\x02\x06\0\x12\x053\0\xd7\x03\x01\x1a\ - \xed\x04\x20API\x20for\x20setting\x20[access\x20levels]\n\x20[google.ide\ - ntity.accesscontextmanager.v1.AccessLevel]\x20and\x20[service\n\x20perim\ - eters]\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\n\ - \x20for\x20Google\x20Cloud\x20projects.\x20Each\x20organization\x20has\ - \x20one\x20[access\x20policy]\n\x20[google.identity.accesscontextmanager\ - .v1.AccessPolicy]\x20that\x20contains\x20the\n\x20[access\x20levels]\x20\ - [google.identity.accesscontextmanager.v1.AccessLevel]\n\x20and\x20[servi\ - ce\x20perimeters]\n\x20[google.identity.accesscontextmanager.v1.ServiceP\ - erimeter].\x20This\n\x20[access\x20policy]\x20[google.identity.accesscon\ - textmanager.v1.AccessPolicy]\x20is\n\x20applicable\x20to\x20all\x20resou\ - rces\x20in\x20the\x20organization.\n\x20AccessPolicies\n\n\n\n\x03\x06\0\ - \x01\x12\x033\x08\x1c\n\n\n\x03\x06\0\x03\x12\x034\x02K\n\x0c\n\x05\x06\ - \0\x03\x99\x08\x12\x034\x02K\n\n\n\x03\x06\0\x03\x12\x035\x02V\n\x0c\n\ - \x05\x06\0\x03\x9a\x08\x12\x035\x02V\nx\n\x04\x06\0\x02\0\x12\x04:\x02>\ - \x03\x1aj\x20Lists\x20all\x20[access\x20policies]\n\x20[google.identity.\ - accesscontextmanager.v1.AccessPolicy]\x20in\x20an\n\x20organization.\n\n\ - \x0c\n\x05\x06\0\x02\0\x01\x12\x03:\x06\x18\n\x0c\n\x05\x06\0\x02\0\x02\ - \x12\x03:\x192\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03:=W\n\r\n\x05\x06\0\ - \x02\0\x04\x12\x04;\x04=\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\ - \x04;\x04=\x06\nu\n\x04\x06\0\x02\x01\x12\x04B\x02G\x03\x1ag\x20Returns\ - \x20an\x20[access\x20policy]\n\x20[google.identity.accesscontextmanager.\ - v1.AccessPolicy]\x20based\x20on\x20the\x20name.\n\n\x0c\n\x05\x06\0\x02\ - \x01\x01\x12\x03B\x06\x15\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03B\x16,\n\ - \x0c\n\x05\x06\0\x02\x01\x03\x12\x03B7C\n\r\n\x05\x06\0\x02\x01\x04\x12\ - \x04C\x04E\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04C\x04E\ - \x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03F\x042\n\x0f\n\x08\x06\0\x02\ - \x01\x04\x9b\x08\0\x12\x03F\x042\n\xb7\x02\n\x04\x06\0\x02\x02\x12\x04N\ - \x02W\x03\x1a\xa8\x02\x20Creates\x20an\x20access\x20policy.\x20This\x20m\ - ethod\x20fails\x20if\x20the\x20organization\x20already\x20has\n\x20an\ - \x20access\x20policy.\x20The\x20long-running\x20operation\x20has\x20a\ - \x20successful\x20status\n\x20after\x20the\x20access\x20policy\x20propag\ - ates\x20to\x20long-lasting\x20storage.\n\x20Syntactic\x20and\x20basic\ - \x20semantic\x20errors\x20are\x20returned\x20in\x20`metadata`\x20as\x20a\ - \n\x20BadRequest\x20proto.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03N\x06\ - \x18\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03N\x19%\n\x0c\n\x05\x06\0\x02\ - \x02\x03\x12\x03N0L\n\r\n\x05\x06\0\x02\x02\x04\x12\x04O\x04R\x06\n\x11\ - \n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04O\x04R\x06\n\r\n\x05\x06\0\ - \x02\x02\x04\x12\x04S\x04V\x06\n\x0f\n\x07\x06\0\x02\x02\x04\x99\x08\x12\ - \x04S\x04V\x06\n\xac\x02\n\x04\x06\0\x02\x03\x12\x04_\x02i\x03\x1a\x9d\ - \x02\x20Updates\x20an\x20[access\x20policy]\n\x20[google.identity.access\ - contextmanager.v1.AccessPolicy].\x20The\n\x20long-running\x20operation\ - \x20from\x20this\x20RPC\x20has\x20a\x20successful\x20status\x20after\x20\ - the\n\x20changes\x20to\x20the\x20[access\x20policy]\n\x20[google.identit\ - y.accesscontextmanager.v1.AccessPolicy]\x20propagate\n\x20to\x20long-las\ - ting\x20storage.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03_\x06\x18\n\x0c\ - \n\x05\x06\0\x02\x03\x02\x12\x03_\x192\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ - \x03_=Y\n\r\n\x05\x06\0\x02\x03\x04\x12\x04`\x04c\x06\n\x11\n\t\x06\0\ - \x02\x03\x04\xb0\xca\xbc\"\x12\x04`\x04c\x06\n\x0c\n\x05\x06\0\x02\x03\ - \x04\x12\x03d\x04@\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03d\x04@\ - \n\r\n\x05\x06\0\x02\x03\x04\x12\x04e\x04h\x06\n\x0f\n\x07\x06\0\x02\x03\ - \x04\x99\x08\x12\x04e\x04h\x06\n\xac\x02\n\x04\x06\0\x02\x04\x12\x04p\ - \x02y\x03\x1a\x9d\x02\x20Deletes\x20an\x20[access\x20policy]\n\x20[googl\ - e.identity.accesscontextmanager.v1.AccessPolicy]\x20based\x20on\x20the\n\ - \x20resource\x20name.\x20The\x20long-running\x20operation\x20has\x20a\ - \x20successful\x20status\x20after\x20the\n\x20[access\x20policy]\x20[goo\ - gle.identity.accesscontextmanager.v1.AccessPolicy]\n\x20is\x20removed\ - \x20from\x20long-lasting\x20storage.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\ - \x03p\x06\x18\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03p\x192\n\x0c\n\x05\ - \x06\0\x02\x04\x03\x12\x03p=Y\n\r\n\x05\x06\0\x02\x04\x04\x12\x04q\x04s\ - \x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04q\x04s\x06\n\x0c\n\ - \x05\x06\0\x02\x04\x04\x12\x03t\x042\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\ - \x08\0\x12\x03t\x042\n\r\n\x05\x06\0\x02\x04\x04\x12\x04u\x04x\x06\n\x0f\ - \n\x07\x06\0\x02\x04\x04\x99\x08\x12\x04u\x04x\x06\nx\n\x04\x06\0\x02\ - \x05\x12\x05~\x02\x83\x01\x03\x1ai\x20Lists\x20all\x20[access\x20levels]\ - \n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\x20for\x20an\ - \x20access\n\x20policy.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03~\x06\x16\ - \n\x0c\n\x05\x06\0\x02\x05\x02\x12\x03~\x17.\n\x0c\n\x05\x06\0\x02\x05\ - \x03\x12\x03~9Q\n\x0e\n\x05\x06\0\x02\x05\x04\x12\x05\x7f\x04\x81\x01\ - \x06\n\x12\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x05\x7f\x04\x81\x01\ - \x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\x82\x01\x044\n\x10\n\x08\x06\0\ - \x02\x05\x04\x9b\x08\0\x12\x04\x82\x01\x044\n|\n\x04\x06\0\x02\x06\x12\ - \x06\x88\x01\x02\x8d\x01\x03\x1al\x20Gets\x20an\x20[access\x20level]\n\ - \x20[google.identity.accesscontextmanager.v1.AccessLevel]\x20based\x20on\ - \x20the\x20resource\n\x20name.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x88\ - \x01\x06\x14\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\x88\x01\x15*\n\r\n\x05\ - \x06\0\x02\x06\x03\x12\x04\x88\x015@\n\x0f\n\x05\x06\0\x02\x06\x04\x12\ - \x06\x89\x01\x04\x8b\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\ - \x12\x06\x89\x01\x04\x8b\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x8c\ - \x01\x042\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x8c\x01\x042\n\ - \xb5\x03\n\x04\x06\0\x02\x07\x12\x06\x96\x01\x02\xa0\x01\x03\x1a\xa4\x03\ - \x20Creates\x20an\x20[access\x20level]\n\x20[google.identity.accessconte\ - xtmanager.v1.AccessLevel].\x20The\x20long-running\n\x20operation\x20from\ - \x20this\x20RPC\x20has\x20a\x20successful\x20status\x20after\x20the\x20[\ - access\n\x20level]\x20[google.identity.accesscontextmanager.v1.AccessLev\ - el]\n\x20propagates\x20to\x20long-lasting\x20storage.\x20If\x20[access\ - \x20levels]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\ - \x20contain\n\x20errors,\x20an\x20error\x20response\x20is\x20returned\ - \x20for\x20the\x20first\x20error\x20encountered.\n\n\r\n\x05\x06\0\x02\ - \x07\x01\x12\x04\x96\x01\x06\x17\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\x96\ - \x01\x180\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\x96\x01;W\n\x0f\n\x05\x06\ - \0\x02\x07\x04\x12\x06\x97\x01\x04\x9a\x01\x06\n\x13\n\t\x06\0\x02\x07\ - \x04\xb0\xca\xbc\"\x12\x06\x97\x01\x04\x9a\x01\x06\n\r\n\x05\x06\0\x02\ - \x07\x04\x12\x04\x9b\x01\x04A\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\ - \x12\x04\x9b\x01\x04A\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x9c\x01\x04\ - \x9f\x01\x06\n\x11\n\x07\x06\0\x02\x07\x04\x99\x08\x12\x06\x9c\x01\x04\ - \x9f\x01\x06\n\xc4\x03\n\x04\x06\0\x02\x08\x12\x06\xaa\x01\x02\xb4\x01\ - \x03\x1a\xb3\x03\x20Updates\x20an\x20[access\x20level]\n\x20[google.iden\ - tity.accesscontextmanager.v1.AccessLevel].\x20The\x20long-running\n\x20o\ - peration\x20from\x20this\x20RPC\x20has\x20a\x20successful\x20status\x20a\ - fter\x20the\x20changes\x20to\n\x20the\x20[access\x20level]\n\x20[google.\ - identity.accesscontextmanager.v1.AccessLevel]\x20propagate\n\x20to\x20lo\ - ng-lasting\x20storage.\x20If\x20[access\x20levels]\n\x20[google.identity\ - .accesscontextmanager.v1.AccessLevel]\x20contain\n\x20errors,\x20an\x20e\ - rror\x20response\x20is\x20returned\x20for\x20the\x20first\x20error\x20en\ - countered.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xaa\x01\x06\x17\n\r\n\ - \x05\x06\0\x02\x08\x02\x12\x04\xaa\x01\x180\n\r\n\x05\x06\0\x02\x08\x03\ - \x12\x04\xaa\x01;W\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\xab\x01\x04\xae\ - \x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\xab\x01\x04\ - \xae\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xaf\x01\x04F\n\x10\n\ - \x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xaf\x01\x04F\n\x0f\n\x05\x06\0\ - \x02\x08\x04\x12\x06\xb0\x01\x04\xb3\x01\x06\n\x11\n\x07\x06\0\x02\x08\ - \x04\x99\x08\x12\x06\xb0\x01\x04\xb3\x01\x06\n\xbf\x02\n\x04\x06\0\x02\t\ - \x12\x06\xbc\x01\x02\xc5\x01\x03\x1a\xae\x02\x20Deletes\x20an\x20[access\ - \x20level]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\ - \x20based\x20on\x20the\x20resource\n\x20name.\x20The\x20long-running\x20\ - operation\x20from\x20this\x20RPC\x20has\x20a\x20successful\x20status\n\ - \x20after\x20the\x20[access\x20level]\n\x20[google.identity.accesscontex\ - tmanager.v1.AccessLevel]\x20has\x20been\x20removed\n\x20from\x20long-las\ - ting\x20storage.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xbc\x01\x06\x17\n\r\ - \n\x05\x06\0\x02\t\x02\x12\x04\xbc\x01\x180\n\r\n\x05\x06\0\x02\t\x03\ - \x12\x04\xbc\x01;W\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xbd\x01\x04\xbf\ - \x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xbd\x01\x04\xbf\ - \x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xc0\x01\x042\n\x10\n\x08\x06\ - \0\x02\t\x04\x9b\x08\0\x12\x04\xc0\x01\x042\n\x0f\n\x05\x06\0\x02\t\x04\ - \x12\x06\xc1\x01\x04\xc4\x01\x06\n\x11\n\x07\x06\0\x02\t\x04\x99\x08\x12\ - \x06\xc1\x01\x04\xc4\x01\x06\n\xb7\x07\n\x04\x06\0\x02\n\x12\x06\xd8\x01\ - \x02\xe1\x01\x03\x1a\xa6\x07\x20Replaces\x20all\x20existing\x20[access\ - \x20levels]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\ - \x20in\x20an\x20[access\n\x20policy]\x20[google.identity.accesscontextma\ - nager.v1.AccessPolicy]\x20with\n\x20the\x20[access\x20levels]\n\x20[goog\ - le.identity.accesscontextmanager.v1.AccessLevel]\x20provided.\x20This\n\ - \x20is\x20done\x20atomically.\x20The\x20long-running\x20operation\x20fro\ - m\x20this\x20RPC\x20has\x20a\n\x20successful\x20status\x20after\x20all\ - \x20replacements\x20propagate\x20to\x20long-lasting\n\x20storage.\x20If\ - \x20the\x20replacement\x20contains\x20errors,\x20an\x20error\x20response\ - \x20is\x20returned\n\x20for\x20the\x20first\x20error\x20encountered.\x20\ - \x20Upon\x20error,\x20the\x20replacement\x20is\x20cancelled,\n\x20and\ - \x20existing\x20[access\x20levels]\n\x20[google.identity.accesscontextma\ - nager.v1.AccessLevel]\x20are\x20not\n\x20affected.\x20The\x20Operation.r\ - esponse\x20field\x20contains\n\x20ReplaceAccessLevelsResponse.\x20Removi\ - ng\x20[access\x20levels]\n\x20[google.identity.accesscontextmanager.v1.A\ - ccessLevel]\x20contained\x20in\x20existing\n\x20[service\x20perimeters]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20resu\ - lt\x20in\x20an\n\x20error.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xd8\x01\ - \x06\x19\n\r\n\x05\x06\0\x02\n\x02\x12\x04\xd8\x01\x1a4\n\r\n\x05\x06\0\ - \x02\n\x03\x12\x04\xd8\x01?[\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xd9\x01\ - \x04\xdc\x01\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xd9\x01\ - \x04\xdc\x01\x06\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xdd\x01\x04\xe0\x01\ - \x06\n\x11\n\x07\x06\0\x02\n\x04\x99\x08\x12\x06\xdd\x01\x04\xe0\x01\x06\ - \n\x83\x01\n\x04\x06\0\x02\x0b\x12\x06\xe6\x01\x02\xeb\x01\x03\x1as\x20L\ - ists\x20all\x20[service\x20perimeters]\n\x20[google.identity.accessconte\ - xtmanager.v1.ServicePerimeter]\x20for\x20an\n\x20access\x20policy.\n\n\r\ - \n\x05\x06\0\x02\x0b\x01\x12\x04\xe6\x01\x06\x1b\n\r\n\x05\x06\0\x02\x0b\ - \x02\x12\x04\xe6\x01\x1c8\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xe6\x01C`\ - \n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xe7\x01\x04\xe9\x01\x06\n\x13\n\t\ - \x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xe7\x01\x04\xe9\x01\x06\n\r\n\ - \x05\x06\0\x02\x0b\x04\x12\x04\xea\x01\x044\n\x10\n\x08\x06\0\x02\x0b\ - \x04\x9b\x08\0\x12\x04\xea\x01\x044\n\x85\x01\n\x04\x06\0\x02\x0c\x12\ - \x06\xf0\x01\x02\xf5\x01\x03\x1au\x20Gets\x20a\x20[service\x20perimeter]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20base\ - d\x20on\x20the\n\x20resource\x20name.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\ - \x04\xf0\x01\x06\x19\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xf0\x01\x1a4\n\ - \r\n\x05\x06\0\x02\x0c\x03\x12\x04\xf0\x01?O\n\x0f\n\x05\x06\0\x02\x0c\ - \x04\x12\x06\xf1\x01\x04\xf3\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\ - \xbc\"\x12\x06\xf1\x01\x04\xf3\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\ - \x04\xf4\x01\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\xf4\ - \x01\x042\n\xd5\x03\n\x04\x06\0\x02\r\x12\x06\xff\x01\x02\x89\x02\x03\ - \x1a\xc4\x03\x20Creates\x20a\x20[service\x20perimeter]\n\x20[google.iden\ - tity.accesscontextmanager.v1.ServicePerimeter].\x20The\n\x20long-running\ - \x20operation\x20from\x20this\x20RPC\x20has\x20a\x20successful\x20status\ - \x20after\x20the\n\x20[service\x20perimeter]\n\x20[google.identity.acces\ - scontextmanager.v1.ServicePerimeter]\n\x20propagates\x20to\x20long-lasti\ - ng\x20storage.\x20If\x20a\x20[service\x20perimeter]\n\x20[google.identit\ - y.accesscontextmanager.v1.ServicePerimeter]\x20contains\n\x20errors,\x20\ - an\x20error\x20response\x20is\x20returned\x20for\x20the\x20first\x20erro\ - r\x20encountered.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\xff\x01\x06\x1c\n\ - \r\n\x05\x06\0\x02\r\x02\x12\x04\xff\x01\x1d:\n\r\n\x05\x06\0\x02\r\x03\ - \x12\x04\xff\x01Ea\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\x80\x02\x04\x83\ - \x02\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\x80\x02\x04\x83\ - \x02\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\x84\x02\x04F\n\x10\n\x08\x06\ - \0\x02\r\x04\x9b\x08\0\x12\x04\x84\x02\x04F\n\x0f\n\x05\x06\0\x02\r\x04\ - \x12\x06\x85\x02\x04\x88\x02\x06\n\x11\n\x07\x06\0\x02\r\x04\x99\x08\x12\ - \x06\x85\x02\x04\x88\x02\x06\n\xd5\x03\n\x04\x06\0\x02\x0e\x12\x06\x93\ - \x02\x02\x9d\x02\x03\x1a\xc4\x03\x20Updates\x20a\x20[service\x20perimete\ - r]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter].\x20T\ - he\n\x20long-running\x20operation\x20from\x20this\x20RPC\x20has\x20a\x20\ - successful\x20status\x20after\x20the\n\x20[service\x20perimeter]\n\x20[g\ - oogle.identity.accesscontextmanager.v1.ServicePerimeter]\n\x20propagates\ - \x20to\x20long-lasting\x20storage.\x20If\x20a\x20[service\x20perimeter]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20cont\ - ains\n\x20errors,\x20an\x20error\x20response\x20is\x20returned\x20for\ - \x20the\x20first\x20error\x20encountered.\n\n\r\n\x05\x06\0\x02\x0e\x01\ - \x12\x04\x93\x02\x06\x1c\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\x93\x02\x1d\ - :\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\x93\x02Ea\n\x0f\n\x05\x06\0\x02\ - \x0e\x04\x12\x06\x94\x02\x04\x97\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\ - \xca\xbc\"\x12\x06\x94\x02\x04\x97\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\ - \x12\x04\x98\x02\x04K\n\x10\n\x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\ - \x98\x02\x04K\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\x99\x02\x04\x9c\x02\ - \x06\n\x11\n\x07\x06\0\x02\x0e\x04\x99\x08\x12\x06\x99\x02\x04\x9c\x02\ - \x06\n\xcc\x02\n\x04\x06\0\x02\x0f\x12\x06\xa5\x02\x02\xae\x02\x03\x1a\ - \xbb\x02\x20Deletes\x20a\x20[service\x20perimeter]\n\x20[google.identity\ - .accesscontextmanager.v1.ServicePerimeter]\x20based\x20on\x20the\n\x20re\ - source\x20name.\x20The\x20long-running\x20operation\x20from\x20this\x20R\ - PC\x20has\x20a\x20successful\n\x20status\x20after\x20the\x20[service\x20\ - perimeter]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimete\ - r]\x20is\x20removed\x20from\n\x20long-lasting\x20storage.\n\n\r\n\x05\ - \x06\0\x02\x0f\x01\x12\x04\xa5\x02\x06\x1c\n\r\n\x05\x06\0\x02\x0f\x02\ - \x12\x04\xa5\x02\x1d:\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\xa5\x02Ea\n\ - \x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xa6\x02\x04\xa8\x02\x06\n\x13\n\t\ - \x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xa6\x02\x04\xa8\x02\x06\n\r\n\ - \x05\x06\0\x02\x0f\x04\x12\x04\xa9\x02\x042\n\x10\n\x08\x06\0\x02\x0f\ - \x04\x9b\x08\0\x12\x04\xa9\x02\x042\n\x0f\n\x05\x06\0\x02\x0f\x04\x12\ - \x06\xaa\x02\x04\xad\x02\x06\n\x11\n\x07\x06\0\x02\x0f\x04\x99\x08\x12\ - \x06\xaa\x02\x04\xad\x02\x06\n\x83\x06\n\x04\x06\0\x02\x10\x12\x06\xbd\ - \x02\x02\xc6\x02\x03\x1a\xf2\x05\x20Replace\x20all\x20existing\x20[servi\ - ce\x20perimeters]\n\x20[google.identity.accesscontextmanager.v1.ServiceP\ - erimeter]\x20in\x20an\x20[access\n\x20policy]\x20[google.identity.access\ - contextmanager.v1.AccessPolicy]\x20with\x20the\n\x20[service\x20perimete\ - rs]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20p\ - rovided.\x20This\n\x20is\x20done\x20atomically.\x20The\x20long-running\ - \x20operation\x20from\x20this\x20RPC\x20has\x20a\n\x20successful\x20stat\ - us\x20after\x20all\x20replacements\x20propagate\x20to\x20long-lasting\ - \x20storage.\n\x20Replacements\x20containing\x20errors\x20result\x20in\ - \x20an\x20error\x20response\x20for\x20the\x20first\n\x20error\x20encount\ - ered.\x20Upon\x20an\x20error,\x20replacement\x20are\x20cancelled\x20and\ - \x20existing\n\x20[service\x20perimeters]\n\x20[google.identity.accessco\ - ntextmanager.v1.ServicePerimeter]\x20are\x20not\n\x20affected.\x20The\ - \x20Operation.response\x20field\x20contains\n\x20ReplaceServicePerimeter\ - sResponse.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xbd\x02\x06\x1e\n\r\n\ - \x05\x06\0\x02\x10\x02\x12\x04\xbd\x02\x1f>\n\r\n\x05\x06\0\x02\x10\x03\ - \x12\x04\xbd\x02Ie\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xbe\x02\x04\xc1\ - \x02\x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\xbe\x02\x04\ - \xc1\x02\x06\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xc2\x02\x04\xc5\x02\ - \x06\n\x11\n\x07\x06\0\x02\x10\x04\x99\x08\x12\x06\xc2\x02\x04\xc5\x02\ - \x06\n\x95\x08\n\x04\x06\0\x02\x11\x12\x06\xd7\x02\x02\xe0\x02\x03\x1a\ - \x84\x08\x20Commits\x20the\x20dry-run\x20specification\x20for\x20all\x20\ - the\x20[service\x20perimeters]\n\x20[google.identity.accesscontextmanage\ - r.v1.ServicePerimeter]\x20in\x20an\n\x20[access\x20policy][google.identi\ - ty.accesscontextmanager.v1.AccessPolicy].\n\x20A\x20commit\x20operation\ - \x20on\x20a\x20service\x20perimeter\x20involves\x20copying\x20its\x20`sp\ - ec`\x20field\n\x20to\x20the\x20`status`\x20field\x20of\x20the\x20service\ - \x20perimeter.\x20Only\x20[service\x20perimeters]\n\x20[google.identity.\ - accesscontextmanager.v1.ServicePerimeter]\x20with\n\x20`use_explicit_dry\ - _run_spec`\x20field\x20set\x20to\x20true\x20are\x20affected\x20by\x20a\ - \x20commit\n\x20operation.\x20The\x20long-running\x20operation\x20from\ - \x20this\x20RPC\x20has\x20a\x20successful\n\x20status\x20after\x20the\ - \x20dry-run\x20specifications\x20for\x20all\x20the\x20[service\x20perime\ - ters]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\ - \x20have\x20been\n\x20committed.\x20If\x20a\x20commit\x20fails,\x20it\ - \x20causes\x20the\x20long-running\x20operation\x20to\n\x20return\x20an\ - \x20error\x20response\x20and\x20the\x20entire\x20commit\x20operation\x20\ - is\x20cancelled.\n\x20When\x20successful,\x20the\x20Operation.response\ - \x20field\x20contains\n\x20CommitServicePerimetersResponse.\x20The\x20`d\ - ry_run`\x20and\x20the\x20`spec`\x20fields\x20are\n\x20cleared\x20after\ - \x20a\x20successful\x20commit\x20operation.\n\n\r\n\x05\x06\0\x02\x11\ - \x01\x12\x04\xd7\x02\x06\x1d\n\r\n\x05\x06\0\x02\x11\x02\x12\x04\xd7\x02\ - \x1e<\n\r\n\x05\x06\0\x02\x11\x03\x12\x04\xd7\x02Gc\n\x0f\n\x05\x06\0\ - \x02\x11\x04\x12\x06\xd8\x02\x04\xdb\x02\x06\n\x13\n\t\x06\0\x02\x11\x04\ - \xb0\xca\xbc\"\x12\x06\xd8\x02\x04\xdb\x02\x06\n\x0f\n\x05\x06\0\x02\x11\ - \x04\x12\x06\xdc\x02\x04\xdf\x02\x06\n\x11\n\x07\x06\0\x02\x11\x04\x99\ - \x08\x12\x06\xdc\x02\x04\xdf\x02\x06\n\x96\x01\n\x04\x06\0\x02\x12\x12\ - \x06\xe5\x02\x02\xea\x02\x03\x1a\x85\x01\x20Lists\x20all\x20[GcpUserAcce\ - ssBindings]\n\x20[google.identity.accesscontextmanager.v1.GcpUserAccessB\ - inding]\x20for\x20a\n\x20Google\x20Cloud\x20organization.\n\n\r\n\x05\ - \x06\0\x02\x12\x01\x12\x04\xe5\x02\x06\x1f\n\r\n\x05\x06\0\x02\x12\x02\ - \x12\x04\xe5\x02\x20@\n\r\n\x05\x06\0\x02\x12\x03\x12\x04\xe5\x02Kl\n\ - \x0f\n\x05\x06\0\x02\x12\x04\x12\x06\xe6\x02\x04\xe8\x02\x06\n\x13\n\t\ - \x06\0\x02\x12\x04\xb0\xca\xbc\"\x12\x06\xe6\x02\x04\xe8\x02\x06\n\r\n\ - \x05\x06\0\x02\x12\x04\x12\x04\xe9\x02\x044\n\x10\n\x08\x06\0\x02\x12\ - \x04\x9b\x08\0\x12\x04\xe9\x02\x044\n\x87\x01\n\x04\x06\0\x02\x13\x12\ - \x06\xef\x02\x02\xf4\x02\x03\x1aw\x20Gets\x20the\x20[GcpUserAccessBindin\ - g]\n\x20[google.identity.accesscontextmanager.v1.GcpUserAccessBinding]\ - \x20with\n\x20the\x20given\x20name.\n\n\r\n\x05\x06\0\x02\x13\x01\x12\ - \x04\xef\x02\x06\x1d\n\r\n\x05\x06\0\x02\x13\x02\x12\x04\xef\x02\x1e<\n\ - \r\n\x05\x06\0\x02\x13\x03\x12\x04\xef\x02G[\n\x0f\n\x05\x06\0\x02\x13\ - \x04\x12\x06\xf0\x02\x04\xf2\x02\x06\n\x13\n\t\x06\0\x02\x13\x04\xb0\xca\ - \xbc\"\x12\x06\xf0\x02\x04\xf2\x02\x06\n\r\n\x05\x06\0\x02\x13\x04\x12\ - \x04\xf3\x02\x042\n\x10\n\x08\x06\0\x02\x13\x04\x9b\x08\0\x12\x04\xf3\ - \x02\x042\n\x9b\x04\n\x04\x06\0\x02\x14\x12\x06\x80\x03\x02\x8a\x03\x03\ - \x1a\x8a\x04\x20Creates\x20a\x20[GcpUserAccessBinding]\n\x20[google.iden\ - tity.accesscontextmanager.v1.GcpUserAccessBinding].\x20If\x20the\n\x20cl\ - ient\x20specifies\x20a\x20[name]\n\x20[google.identity.accesscontextmana\ - ger.v1.GcpUserAccessBinding.name],\n\x20the\x20server\x20ignores\x20it.\ - \x20Fails\x20if\x20a\x20resource\x20already\x20exists\x20with\x20the\x20\ - same\n\x20[group_key]\n\x20[google.identity.accesscontextmanager.v1.GcpU\ - serAccessBinding.group_key].\n\x20Completion\x20of\x20this\x20long-runni\ - ng\x20operation\x20does\x20not\x20necessarily\x20signify\x20that\n\x20th\ - e\x20new\x20binding\x20is\x20deployed\x20onto\x20all\x20affected\x20user\ - s,\x20which\x20may\x20take\x20more\n\x20time.\n\n\r\n\x05\x06\0\x02\x14\ - \x01\x12\x04\x80\x03\x06\x20\n\r\n\x05\x06\0\x02\x14\x02\x12\x04\x80\x03\ - !B\n\r\n\x05\x06\0\x02\x14\x03\x12\x04\x80\x03Mi\n\x0f\n\x05\x06\0\x02\ - \x14\x04\x12\x06\x81\x03\x04\x84\x03\x06\n\x13\n\t\x06\0\x02\x14\x04\xb0\ - \xca\xbc\"\x12\x06\x81\x03\x04\x84\x03\x06\n\r\n\x05\x06\0\x02\x14\x04\ - \x12\x04\x85\x03\x04L\n\x10\n\x08\x06\0\x02\x14\x04\x9b\x08\0\x12\x04\ - \x85\x03\x04L\n\x0f\n\x05\x06\0\x02\x14\x04\x12\x06\x86\x03\x04\x89\x03\ - \x06\n\x11\n\x07\x06\0\x02\x14\x04\x99\x08\x12\x06\x86\x03\x04\x89\x03\ - \x06\n\x96\x02\n\x04\x06\0\x02\x15\x12\x06\x91\x03\x02\x9b\x03\x03\x1a\ - \x85\x02\x20Updates\x20a\x20[GcpUserAccessBinding]\n\x20[google.identity\ - .accesscontextmanager.v1.GcpUserAccessBinding].\n\x20Completion\x20of\ - \x20this\x20long-running\x20operation\x20does\x20not\x20necessarily\x20s\ - ignify\x20that\n\x20the\x20changed\x20binding\x20is\x20deployed\x20onto\ - \x20all\x20affected\x20users,\x20which\x20may\x20take\n\x20more\x20time.\ - \n\n\r\n\x05\x06\0\x02\x15\x01\x12\x04\x91\x03\x06\x20\n\r\n\x05\x06\0\ - \x02\x15\x02\x12\x04\x91\x03!B\n\r\n\x05\x06\0\x02\x15\x03\x12\x04\x91\ - \x03Mi\n\x0f\n\x05\x06\0\x02\x15\x04\x12\x06\x92\x03\x04\x95\x03\x06\n\ - \x13\n\t\x06\0\x02\x15\x04\xb0\xca\xbc\"\x12\x06\x92\x03\x04\x95\x03\x06\ - \n\r\n\x05\x06\0\x02\x15\x04\x12\x04\x96\x03\x04Q\n\x10\n\x08\x06\0\x02\ - \x15\x04\x9b\x08\0\x12\x04\x96\x03\x04Q\n\x0f\n\x05\x06\0\x02\x15\x04\ - \x12\x06\x97\x03\x04\x9a\x03\x06\n\x11\n\x07\x06\0\x02\x15\x04\x99\x08\ - \x12\x06\x97\x03\x04\x9a\x03\x06\n\x97\x02\n\x04\x06\0\x02\x16\x12\x06\ - \xa2\x03\x02\xab\x03\x03\x1a\x86\x02\x20Deletes\x20a\x20[GcpUserAccessBi\ - nding]\n\x20[google.identity.accesscontextmanager.v1.GcpUserAccessBindin\ - g].\n\x20Completion\x20of\x20this\x20long-running\x20operation\x20does\ - \x20not\x20necessarily\x20signify\x20that\n\x20the\x20binding\x20deletio\ - n\x20is\x20deployed\x20onto\x20all\x20affected\x20users,\x20which\x20may\ - \x20take\n\x20more\x20time.\n\n\r\n\x05\x06\0\x02\x16\x01\x12\x04\xa2\ - \x03\x06\x20\n\r\n\x05\x06\0\x02\x16\x02\x12\x04\xa2\x03!B\n\r\n\x05\x06\ - \0\x02\x16\x03\x12\x04\xa2\x03Mi\n\x0f\n\x05\x06\0\x02\x16\x04\x12\x06\ - \xa3\x03\x04\xa5\x03\x06\n\x13\n\t\x06\0\x02\x16\x04\xb0\xca\xbc\"\x12\ - \x06\xa3\x03\x04\xa5\x03\x06\n\r\n\x05\x06\0\x02\x16\x04\x12\x04\xa6\x03\ - \x042\n\x10\n\x08\x06\0\x02\x16\x04\x9b\x08\0\x12\x04\xa6\x03\x042\n\x0f\ - \n\x05\x06\0\x02\x16\x04\x12\x06\xa7\x03\x04\xaa\x03\x06\n\x11\n\x07\x06\ - \0\x02\x16\x04\x99\x08\x12\x06\xa7\x03\x04\xaa\x03\x06\n\x90\x03\n\x04\ - \x06\0\x02\x17\x12\x06\xb3\x03\x02\xb8\x03\x03\x1a\xff\x02\x20Sets\x20th\ - e\x20IAM\x20policy\x20for\x20the\x20specified\x20Access\x20Context\x20Ma\ - nager\n\x20[access\x20policy][google.identity.accesscontextmanager.v1.Ac\ - cessPolicy].\n\x20This\x20method\x20replaces\x20the\x20existing\x20IAM\ - \x20policy\x20on\x20the\x20access\x20policy.\x20The\x20IAM\n\x20policy\ - \x20controls\x20the\x20set\x20of\x20users\x20who\x20can\x20perform\x20sp\ - ecific\x20operations\x20on\x20the\n\x20Access\x20Context\x20Manager\x20[\ - access\n\x20policy][google.identity.accesscontextmanager.v1.AccessPolicy\ - ].\n\n\r\n\x05\x06\0\x02\x17\x01\x12\x04\xb3\x03\x06\x12\n\r\n\x05\x06\0\ - \x02\x17\x02\x12\x04\xb3\x03\x134\n\r\n\x05\x06\0\x02\x17\x03\x12\x04\ - \xb3\x03?S\n\x0f\n\x05\x06\0\x02\x17\x04\x12\x06\xb4\x03\x04\xb7\x03\x06\ - \n\x13\n\t\x06\0\x02\x17\x04\xb0\xca\xbc\"\x12\x06\xb4\x03\x04\xb7\x03\ - \x06\n\x97\x01\n\x04\x06\0\x02\x18\x12\x06\xbc\x03\x02\xc1\x03\x03\x1a\ - \x86\x01\x20Gets\x20the\x20IAM\x20policy\x20for\x20the\x20specified\x20A\ - ccess\x20Context\x20Manager\n\x20[access\x20policy][google.identity.acce\ - sscontextmanager.v1.AccessPolicy].\n\n\r\n\x05\x06\0\x02\x18\x01\x12\x04\ - \xbc\x03\x06\x12\n\r\n\x05\x06\0\x02\x18\x02\x12\x04\xbc\x03\x134\n\r\n\ - \x05\x06\0\x02\x18\x03\x12\x04\xbc\x03?S\n\x0f\n\x05\x06\0\x02\x18\x04\ - \x12\x06\xbd\x03\x04\xc0\x03\x06\n\x13\n\t\x06\0\x02\x18\x04\xb0\xca\xbc\ - \"\x12\x06\xbd\x03\x04\xc0\x03\x06\n\x9a\x03\n\x04\x06\0\x02\x19\x12\x06\ - \xc9\x03\x02\xd6\x03\x03\x1a\x89\x03\x20Returns\x20the\x20IAM\x20permiss\ - ions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20Access\ - \n\x20Context\x20Manager\x20resource.\x20The\x20resource\x20can\x20be\ - \x20an\n\x20[AccessPolicy][google.identity.accesscontextmanager.v1.Acces\ - sPolicy],\n\x20[AccessLevel][google.identity.accesscontextmanager.v1.Acc\ - essLevel],\x20or\n\x20[ServicePerimeter][google.identity.accesscontextma\ - nager.v1.ServicePerimeter\n\x20].\x20This\x20method\x20does\x20not\x20su\ - pport\x20other\x20resources.\n\n\r\n\x05\x06\0\x02\x19\x01\x12\x04\xc9\ - \x03\x06\x18\n\r\n\x05\x06\0\x02\x19\x02\x12\x04\xc9\x03\x19@\n\r\n\x05\ - \x06\0\x02\x19\x03\x12\x04\xc9\x03Ks\n\x0f\n\x05\x06\0\x02\x19\x04\x12\ - \x06\xca\x03\x04\xd5\x03\x06\n\x13\n\t\x06\0\x02\x19\x04\xb0\xca\xbc\"\ - \x12\x06\xca\x03\x04\xd5\x03\x06\nG\n\x02\x04\0\x12\x06\xda\x03\0\xed\ - \x03\x01\x1a9\x20A\x20request\x20to\x20list\x20all\x20`AccessPolicies`\ - \x20for\x20a\x20container.\n\n\x0b\n\x03\x04\0\x01\x12\x04\xda\x03\x08!\ - \n\x85\x01\n\x04\x04\0\x02\0\x12\x06\xe0\x03\x02\xe5\x03\x04\x1au\x20Req\ - uired.\x20Resource\x20name\x20for\x20the\x20container\x20to\x20list\x20A\ - ccessPolicy\x20instances\n\x20from.\n\n\x20Format:\n\x20`organizations/{\ - org_id}`\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xe0\x03\x02\x08\n\r\n\x05\ - \x04\0\x02\0\x01\x12\x04\xe0\x03\t\x0f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\ - \xe0\x03\x12\x13\n\x0f\n\x05\x04\0\x02\0\x08\x12\x06\xe0\x03\x14\xe5\x03\ - \x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xe1\x03\x04*\n\x11\n\ - \x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xe2\x03\x04\xe4\x03\x05\nU\n\x04\ - \x04\0\x02\x01\x12\x04\xe8\x03\x02\x16\x1aG\x20Number\x20of\x20AccessPol\ - icy\x20instances\x20to\x20include\x20in\x20the\x20list.\x20Default\x2010\ - 0.\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\xe8\x03\x02\x07\n\r\n\x05\x04\0\ - \x02\x01\x01\x12\x04\xe8\x03\x08\x11\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\ - \xe8\x03\x14\x15\nu\n\x04\x04\0\x02\x02\x12\x04\xec\x03\x02\x18\x1ag\x20\ - Next\x20page\x20token\x20for\x20the\x20next\x20batch\x20of\x20AccessPoli\ - cy\x20instances.\x20Defaults\x20to\n\x20the\x20first\x20page\x20of\x20re\ - sults.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xec\x03\x02\x08\n\r\n\x05\ - \x04\0\x02\x02\x01\x12\x04\xec\x03\t\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\ - \x04\xec\x03\x16\x17\n:\n\x02\x04\x01\x12\x06\xf0\x03\0\xf7\x03\x01\x1a,\ - \x20A\x20response\x20to\x20`ListAccessPoliciesRequest`.\n\n\x0b\n\x03\ - \x04\x01\x01\x12\x04\xf0\x03\x08\"\n3\n\x04\x04\x01\x02\0\x12\x04\xf2\ - \x03\x02,\x1a%\x20List\x20of\x20the\x20AccessPolicy\x20instances.\n\n\r\ - \n\x05\x04\x01\x02\0\x04\x12\x04\xf2\x03\x02\n\n\r\n\x05\x04\x01\x02\0\ - \x06\x12\x04\xf2\x03\x0b\x17\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xf2\x03\ - \x18'\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xf2\x03*+\n}\n\x04\x04\x01\x02\ - \x01\x12\x04\xf6\x03\x02\x1d\x1ao\x20The\x20pagination\x20token\x20to\ - \x20retrieve\x20the\x20next\x20page\x20of\x20results.\x20If\x20the\x20va\ - lue\x20is\n\x20empty,\x20no\x20further\x20results\x20remain.\n\n\r\n\x05\ - \x04\x01\x02\x01\x05\x12\x04\xf6\x03\x02\x08\n\r\n\x05\x04\x01\x02\x01\ - \x01\x12\x04\xf6\x03\t\x18\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xf6\x03\ - \x1b\x1c\n=\n\x02\x04\x02\x12\x06\xfa\x03\0\x84\x04\x01\x1a/\x20A\x20req\ - uest\x20to\x20get\x20a\x20particular\x20`AccessPolicy`.\n\n\x0b\n\x03\ - \x04\x02\x01\x12\x04\xfa\x03\x08\x1e\nm\n\x04\x04\x02\x02\0\x12\x06\xfe\ - \x03\x02\x83\x04\x04\x1a]\x20Required.\x20Resource\x20name\x20for\x20the\ - \x20access\x20policy\x20to\x20get.\n\n\x20Format\x20`accessPolicies/{pol\ - icy_id}`\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xfe\x03\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xfe\x03\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\xfe\x03\x10\x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\xfe\x03\x12\ - \x83\x04\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xff\x03\x04\ - *\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\x80\x04\x04\x82\x04\x05\ - \n6\n\x02\x04\x03\x12\x06\x87\x04\0\x8d\x04\x01\x1a(\x20A\x20request\x20\ - to\x20update\x20an\x20`AccessPolicy`.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\ - \x87\x04\x08!\n3\n\x04\x04\x03\x02\0\x12\x04\x89\x04\x02C\x1a%\x20Requir\ - ed.\x20The\x20updated\x20AccessPolicy.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\ - \x04\x89\x04\x02\x0e\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x89\x04\x0f\x15\ - \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x89\x04\x18\x19\n\r\n\x05\x04\x03\ - \x02\0\x08\x12\x04\x89\x04\x1aB\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\ - \x12\x04\x89\x04\x1bA\nV\n\x04\x04\x03\x02\x01\x12\x04\x8c\x04\x02U\x1aH\ - \x20Required.\x20Mask\x20to\x20control\x20which\x20fields\x20get\x20upda\ - ted.\x20Must\x20be\x20non-empty.\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\ - \x8c\x04\x02\x1b\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x8c\x04\x1c'\n\r\ - \n\x05\x04\x03\x02\x01\x03\x12\x04\x8c\x04*+\n\r\n\x05\x04\x03\x02\x01\ - \x08\x12\x04\x8c\x04,T\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\x08\0\x12\x04\ - \x8c\x04-S\n6\n\x02\x04\x04\x12\x06\x90\x04\0\x9a\x04\x01\x1a(\x20A\x20r\ - equest\x20to\x20delete\x20an\x20`AccessPolicy`.\n\n\x0b\n\x03\x04\x04\ - \x01\x12\x04\x90\x04\x08!\np\n\x04\x04\x04\x02\0\x12\x06\x94\x04\x02\x99\ - \x04\x04\x1a`\x20Required.\x20Resource\x20name\x20for\x20the\x20access\ - \x20policy\x20to\x20delete.\n\n\x20Format\x20`accessPolicies/{policy_id}\ - `\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x94\x04\x02\x08\n\r\n\x05\x04\ - \x04\x02\0\x01\x12\x04\x94\x04\t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \x94\x04\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x94\x04\x12\x99\ - \x04\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x95\x04\x04*\n\ - \x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x96\x04\x04\x98\x04\x05\nJ\ - \n\x02\x04\x05\x12\x06\x9d\x04\0\xb8\x04\x01\x1a<\x20A\x20request\x20to\ - \x20list\x20all\x20`AccessLevels`\x20in\x20an\x20`AccessPolicy`.\n\n\x0b\ - \n\x03\x04\x05\x01\x12\x04\x9d\x04\x08\x1f\n\xbd\x01\n\x04\x04\x05\x02\0\ - \x12\x06\xa3\x04\x02\xa8\x04\x04\x1a\xac\x01\x20Required.\x20Resource\ - \x20name\x20for\x20the\x20access\x20policy\x20to\x20list\x20[Access\x20L\ - evels]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\x20fro\ - m.\n\n\x20Format:\n\x20`accessPolicies/{policy_id}`\n\n\r\n\x05\x04\x05\ - \x02\0\x05\x12\x04\xa3\x04\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\ - \xa3\x04\t\x0f\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xa3\x04\x12\x13\n\x0f\ - \n\x05\x04\x05\x02\0\x08\x12\x06\xa3\x04\x14\xa8\x04\x03\n\x10\n\x08\x04\ - \x05\x02\0\x08\x9c\x08\0\x12\x04\xa4\x04\x04*\n\x11\n\x07\x04\x05\x02\0\ - \x08\x9f\x08\x12\x06\xa5\x04\x04\xa7\x04\x05\n\x86\x01\n\x04\x04\x05\x02\ - \x01\x12\x04\xad\x04\x02\x16\x1ax\x20Number\x20of\x20[Access\x20Levels]\ - \n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\x20to\x20inc\ - lude\x20in\n\x20the\x20list.\x20Default\x20100.\n\n\r\n\x05\x04\x05\x02\ - \x01\x05\x12\x04\xad\x04\x02\x07\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\ - \xad\x04\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xad\x04\x14\x15\n\ - \xaf\x01\n\x04\x04\x05\x02\x02\x12\x04\xb2\x04\x02\x18\x1a\xa0\x01\x20Ne\ - xt\x20page\x20token\x20for\x20the\x20next\x20batch\x20of\x20[Access\x20L\ - evel]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\x20inst\ - ances.\n\x20Defaults\x20to\x20the\x20first\x20page\x20of\x20results.\n\n\ - \r\n\x05\x04\x05\x02\x02\x05\x12\x04\xb2\x04\x02\x08\n\r\n\x05\x04\x05\ - \x02\x02\x01\x12\x04\xb2\x04\t\x13\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\ - \xb2\x04\x16\x17\n\xd2\x01\n\x04\x04\x05\x02\x03\x12\x04\xb7\x04\x02&\ - \x1a\xc3\x01\x20Whether\x20to\x20return\x20`BasicLevels`\x20in\x20the\ - \x20Cloud\x20Common\x20Expression\x20language,\x20as\n\x20`CustomLevels`\ - ,\x20rather\x20than\x20as\x20`BasicLevels`.\x20Defaults\x20to\x20returni\ - ng\n\x20`AccessLevels`\x20in\x20the\x20format\x20they\x20were\x20defined\ - .\n\n\r\n\x05\x04\x05\x02\x03\x06\x12\x04\xb7\x04\x02\r\n\r\n\x05\x04\ - \x05\x02\x03\x01\x12\x04\xb7\x04\x0e!\n\r\n\x05\x04\x05\x02\x03\x03\x12\ - \x04\xb7\x04$%\n8\n\x02\x04\x06\x12\x06\xbb\x04\0\xc3\x04\x01\x1a*\x20A\ - \x20response\x20to\x20`ListAccessLevelsRequest`.\n\n\x0b\n\x03\x04\x06\ - \x01\x12\x04\xbb\x04\x08\x20\nl\n\x04\x04\x06\x02\0\x12\x04\xbe\x04\x02)\ - \x1a^\x20List\x20of\x20the\x20[Access\x20Level]\n\x20[google.identity.ac\ - cesscontextmanager.v1.AccessLevel]\x20instances.\n\n\r\n\x05\x04\x06\x02\ - \0\x04\x12\x04\xbe\x04\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\xbe\x04\ - \x0b\x16\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xbe\x04\x17$\n\r\n\x05\x04\ - \x06\x02\0\x03\x12\x04\xbe\x04'(\n}\n\x04\x04\x06\x02\x01\x12\x04\xc2\ - \x04\x02\x1d\x1ao\x20The\x20pagination\x20token\x20to\x20retrieve\x20the\ - \x20next\x20page\x20of\x20results.\x20If\x20the\x20value\x20is\n\x20empt\ - y,\x20no\x20further\x20results\x20remain.\n\n\r\n\x05\x04\x06\x02\x01\ - \x05\x12\x04\xc2\x04\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xc2\ - \x04\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xc2\x04\x1b\x1c\n<\n\ - \x02\x04\x07\x12\x06\xc6\x04\0\xdc\x04\x01\x1a.\x20A\x20request\x20to\ - \x20get\x20a\x20particular\x20`AccessLevel`.\n\n\x0b\n\x03\x04\x07\x01\ - \x12\x04\xc6\x04\x08\x1d\n\xc0\x01\n\x04\x04\x07\x02\0\x12\x06\xcc\x04\ - \x02\xd1\x04\x04\x1a\xaf\x01\x20Required.\x20Resource\x20name\x20for\x20\ - the\x20[Access\x20Level]\n\x20[google.identity.accesscontextmanager.v1.A\ - ccessLevel].\n\n\x20Format:\n\x20`accessPolicies/{policy_id}/accessLevel\ - s/{access_level_id}`\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xcc\x04\x02\ - \x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xcc\x04\t\r\n\r\n\x05\x04\x07\ - \x02\0\x03\x12\x04\xcc\x04\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\ - \xcc\x04\x12\xd1\x04\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\ - \xcd\x04\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xce\x04\x04\ - \xd0\x04\x05\n\xf6\x03\n\x04\x04\x07\x02\x01\x12\x04\xdb\x04\x02&\x1a\ - \xe7\x03\x20Whether\x20to\x20return\x20`BasicLevels`\x20in\x20the\x20Clo\ - ud\x20Common\x20Expression\n\x20Language\x20rather\x20than\x20as\x20`Bas\ - icLevels`.\x20Defaults\x20to\x20AS_DEFINED,\x20where\n\x20[Access\x20Lev\ - els]\x20[google.identity.accesscontextmanager.v1.AccessLevel]\n\x20are\ - \x20returned\x20as\x20`BasicLevels`\x20or\x20`CustomLevels`\x20based\x20\ - on\x20how\x20they\x20were\n\x20created.\x20If\x20set\x20to\x20CEL,\x20al\ - l\x20[Access\x20Levels]\n\x20[google.identity.accesscontextmanager.v1.Ac\ - cessLevel]\x20are\x20returned\x20as\n\x20`CustomLevels`.\x20In\x20the\ - \x20CEL\x20case,\x20`BasicLevels`\x20are\x20translated\x20to\x20equivale\ - nt\n\x20`CustomLevels`.\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\xdb\x04\ - \x02\r\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xdb\x04\x0e!\n\r\n\x05\x04\ - \x07\x02\x01\x03\x12\x04\xdb\x04$%\n5\n\x02\x04\x08\x12\x06\xdf\x04\0\ - \xf1\x04\x01\x1a'\x20A\x20request\x20to\x20create\x20an\x20`AccessLevel`\ - .\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xdf\x04\x08\x20\n\xbe\x01\n\x04\x04\ - \x08\x02\0\x12\x06\xe4\x04\x02\xe9\x04\x04\x1a\xad\x01\x20Required.\x20R\ - esource\x20name\x20for\x20the\x20access\x20policy\x20which\x20owns\x20th\ - is\x20[Access\n\x20Level]\x20[google.identity.accesscontextmanager.v1.Ac\ - cessLevel].\n\n\x20Format:\x20`accessPolicies/{policy_id}`\n\n\r\n\x05\ - \x04\x08\x02\0\x05\x12\x04\xe4\x04\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\ - \x12\x04\xe4\x04\t\x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xe4\x04\x12\ - \x13\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xe4\x04\x14\xe9\x04\x03\n\x10\ - \n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xe5\x04\x04*\n\x11\n\x07\x04\ - \x08\x02\0\x08\x9f\x08\x12\x06\xe6\x04\x04\xe8\x04\x05\n\xf4\x01\n\x04\ - \x04\x08\x02\x01\x12\x04\xf0\x04\x02H\x1a\xe5\x01\x20Required.\x20The\ - \x20[Access\x20Level]\n\x20[google.identity.accesscontextmanager.v1.Acce\ - ssLevel]\x20to\x20create.\n\x20Syntactic\x20correctness\x20of\x20the\x20\ - [Access\x20Level]\n\x20[google.identity.accesscontextmanager.v1.AccessLe\ - vel]\x20is\x20a\n\x20precondition\x20for\x20creation.\n\n\r\n\x05\x04\ - \x08\x02\x01\x06\x12\x04\xf0\x04\x02\r\n\r\n\x05\x04\x08\x02\x01\x01\x12\ - \x04\xf0\x04\x0e\x1a\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf0\x04\x1d\ - \x1e\n\r\n\x05\x04\x08\x02\x01\x08\x12\x04\xf0\x04\x1fG\n\x10\n\x08\x04\ - \x08\x02\x01\x08\x9c\x08\0\x12\x04\xf0\x04\x20F\n5\n\x02\x04\t\x12\x06\ - \xf4\x04\0\xfe\x04\x01\x1a'\x20A\x20request\x20to\x20update\x20an\x20`Ac\ - cessLevel`.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xf4\x04\x08\x20\n\xf2\x01\n\ - \x04\x04\t\x02\0\x12\x04\xfa\x04\x02H\x1a\xe3\x01\x20Required.\x20The\ - \x20updated\x20[Access\x20Level]\n\x20[google.identity.accesscontextmana\ - ger.v1.AccessLevel].\x20Syntactic\n\x20correctness\x20of\x20the\x20[Acce\ - ss\x20Level]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\ - \x20is\x20a\n\x20precondition\x20for\x20creation.\n\n\r\n\x05\x04\t\x02\ - \0\x06\x12\x04\xfa\x04\x02\r\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xfa\x04\ - \x0e\x1a\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xfa\x04\x1d\x1e\n\r\n\x05\x04\ - \t\x02\0\x08\x12\x04\xfa\x04\x1fG\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\ - \x12\x04\xfa\x04\x20F\nV\n\x04\x04\t\x02\x01\x12\x04\xfd\x04\x02U\x1aH\ - \x20Required.\x20Mask\x20to\x20control\x20which\x20fields\x20get\x20upda\ - ted.\x20Must\x20be\x20non-empty.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\ - \xfd\x04\x02\x1b\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xfd\x04\x1c'\n\r\n\ - \x05\x04\t\x02\x01\x03\x12\x04\xfd\x04*+\n\r\n\x05\x04\t\x02\x01\x08\x12\ - \x04\xfd\x04,T\n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xfd\x04-S\ - \n5\n\x02\x04\n\x12\x06\x81\x05\0\x8d\x05\x01\x1a'\x20A\x20request\x20to\ - \x20delete\x20an\x20`AccessLevel`.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x81\ - \x05\x08\x20\n\xc0\x01\n\x04\x04\n\x02\0\x12\x06\x87\x05\x02\x8c\x05\x04\ - \x1a\xaf\x01\x20Required.\x20Resource\x20name\x20for\x20the\x20[Access\ - \x20Level]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel].\n\ - \n\x20Format:\n\x20`accessPolicies/{policy_id}/accessLevels/{access_leve\ - l_id}`\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x87\x05\x02\x08\n\r\n\x05\x04\ - \n\x02\0\x01\x12\x04\x87\x05\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x87\ - \x05\x10\x11\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x87\x05\x12\x8c\x05\x03\ - \n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\x88\x05\x04*\n\x11\n\x07\ - \x04\n\x02\0\x08\x9f\x08\x12\x06\x89\x05\x04\x8b\x05\x05\n\x8f\x01\n\x02\ - \x04\x0b\x12\x06\x91\x05\0\xae\x05\x01\x1a\x80\x01\x20A\x20request\x20to\ - \x20replace\x20all\x20existing\x20Access\x20Levels\x20in\x20an\x20Access\ - \x20Policy\x20with\n\x20the\x20Access\x20Levels\x20provided.\x20This\x20\ - is\x20done\x20atomically.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x91\x05\x08\ - \"\n\xc1\x01\n\x04\x04\x0b\x02\0\x12\x06\x97\x05\x02\x9c\x05\x04\x1a\xb0\ - \x01\x20Required.\x20Resource\x20name\x20for\x20the\x20access\x20policy\ - \x20which\x20owns\x20these\n\x20[Access\x20Levels]\n\x20[google.identity\ - .accesscontextmanager.v1.AccessLevel].\n\n\x20Format:\x20`accessPolicies\ - /{policy_id}`\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x97\x05\x02\x08\n\r\ - \n\x05\x04\x0b\x02\0\x01\x12\x04\x97\x05\t\x0f\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\x97\x05\x12\x13\n\x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\x97\ - \x05\x14\x9c\x05\x03\n\x10\n\x08\x04\x0b\x02\0\x08\x9c\x08\0\x12\x04\x98\ - \x05\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\x99\x05\x04\x9b\ - \x05\x05\n\xa7\x02\n\x04\x04\x0b\x02\x01\x12\x04\xa4\x05\x02R\x1a\x98\ - \x02\x20Required.\x20The\x20desired\x20[Access\x20Levels]\n\x20[google.i\ - dentity.accesscontextmanager.v1.AccessLevel]\x20that\x20should\n\x20repl\ - ace\x20all\x20existing\x20[Access\x20Levels]\n\x20[google.identity.acces\ - scontextmanager.v1.AccessLevel]\x20in\x20the\n\x20[Access\x20Policy]\n\ - \x20[google.identity.accesscontextmanager.v1.AccessPolicy].\n\n\r\n\x05\ - \x04\x0b\x02\x01\x04\x12\x04\xa4\x05\x02\n\n\r\n\x05\x04\x0b\x02\x01\x06\ - \x12\x04\xa4\x05\x0b\x16\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xa4\x05\ - \x17$\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xa4\x05'(\n\r\n\x05\x04\x0b\ - \x02\x01\x08\x12\x04\xa4\x05)Q\n\x10\n\x08\x04\x0b\x02\x01\x08\x9c\x08\0\ - \x12\x04\xa4\x05*P\n\xfa\x03\n\x04\x04\x0b\x02\x02\x12\x04\xad\x05\x02\ - \x12\x1a\xeb\x03\x20Optional.\x20The\x20etag\x20for\x20the\x20version\ - \x20of\x20the\x20[Access\x20Policy]\n\x20[google.identity.accesscontextm\ - anager.v1.AccessPolicy]\x20that\x20this\n\x20replace\x20operation\x20is\ - \x20to\x20be\x20performed\x20on.\x20If,\x20at\x20the\x20time\x20of\x20re\ - place,\x20the\n\x20etag\x20for\x20the\x20Access\x20Policy\x20stored\x20i\ - n\x20Access\x20Context\x20Manager\x20is\x20different\n\x20from\x20the\ - \x20specified\x20etag,\x20then\x20the\x20replace\x20operation\x20will\ - \x20not\x20be\x20performed\n\x20and\x20the\x20call\x20will\x20fail.\x20T\ - his\x20field\x20is\x20not\x20required.\x20If\x20etag\x20is\x20not\n\x20p\ - rovided,\x20the\x20operation\x20will\x20be\x20performed\x20as\x20if\x20a\ - \x20valid\x20etag\x20is\x20provided.\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\ - \x04\xad\x05\x02\x08\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xad\x05\t\r\n\ - \r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xad\x05\x10\x11\no\n\x02\x04\x0c\ - \x12\x06\xb2\x05\0\xb6\x05\x01\x1aa\x20A\x20response\x20to\x20ReplaceAcc\ - essLevelsRequest.\x20This\x20will\x20be\x20put\x20inside\x20of\n\x20Oper\ - ation.response\x20field.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xb2\x05\x08#\ - \nl\n\x04\x04\x0c\x02\0\x12\x04\xb5\x05\x02)\x1a^\x20List\x20of\x20the\ - \x20[Access\x20Level]\n\x20[google.identity.accesscontextmanager.v1.Acce\ - ssLevel]\x20instances.\n\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04\xb5\x05\x02\ - \n\n\r\n\x05\x04\x0c\x02\0\x06\x12\x04\xb5\x05\x0b\x16\n\r\n\x05\x04\x0c\ - \x02\0\x01\x12\x04\xb5\x05\x17$\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xb5\ - \x05'(\nO\n\x02\x04\r\x12\x06\xb9\x05\0\xcf\x05\x01\x1aA\x20A\x20request\ - \x20to\x20list\x20all\x20`ServicePerimeters`\x20in\x20an\x20`AccessPolic\ - y`.\n\n\x0b\n\x03\x04\r\x01\x12\x04\xb9\x05\x08$\n\xc7\x01\n\x04\x04\r\ - \x02\0\x12\x06\xbf\x05\x02\xc4\x05\x04\x1a\xb6\x01\x20Required.\x20Resou\ - rce\x20name\x20for\x20the\x20access\x20policy\x20to\x20list\x20[Service\ - \x20Perimeters]\n\x20[google.identity.accesscontextmanager.v1.ServicePer\ - imeter]\x20from.\n\n\x20Format:\n\x20`accessPolicies/{policy_id}`\n\n\r\ - \n\x05\x04\r\x02\0\x05\x12\x04\xbf\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\ - \x12\x04\xbf\x05\t\x0f\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xbf\x05\x12\x13\ - \n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xbf\x05\x14\xc4\x05\x03\n\x10\n\x08\ - \x04\r\x02\0\x08\x9c\x08\0\x12\x04\xc0\x05\x04*\n\x11\n\x07\x04\r\x02\0\ - \x08\x9f\x08\x12\x06\xc1\x05\x04\xc3\x05\x05\n\x91\x01\n\x04\x04\r\x02\ - \x01\x12\x04\xc9\x05\x02\x16\x1a\x82\x01\x20Number\x20of\x20[Service\x20\ - Perimeters]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimet\ - er]\x20to\x20include\n\x20in\x20the\x20list.\x20Default\x20100.\n\n\r\n\ - \x05\x04\r\x02\x01\x05\x12\x04\xc9\x05\x02\x07\n\r\n\x05\x04\r\x02\x01\ - \x01\x12\x04\xc9\x05\x08\x11\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xc9\x05\ - \x14\x15\n\xb9\x01\n\x04\x04\r\x02\x02\x12\x04\xce\x05\x02\x18\x1a\xaa\ - \x01\x20Next\x20page\x20token\x20for\x20the\x20next\x20batch\x20of\x20[S\ - ervice\x20Perimeter]\n\x20[google.identity.accesscontextmanager.v1.Servi\ - cePerimeter]\x20instances.\n\x20Defaults\x20to\x20the\x20first\x20page\ - \x20of\x20results.\n\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xce\x05\x02\x08\ - \n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xce\x05\t\x13\n\r\n\x05\x04\r\x02\ - \x02\x03\x12\x04\xce\x05\x16\x17\n=\n\x02\x04\x0e\x12\x06\xd2\x05\0\xda\ - \x05\x01\x1a/\x20A\x20response\x20to\x20`ListServicePerimetersRequest`.\ - \n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xd2\x05\x08%\nv\n\x04\x04\x0e\x02\0\ - \x12\x04\xd5\x05\x023\x1ah\x20List\x20of\x20the\x20[Service\x20Perimeter\ - ]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20ins\ - tances.\n\n\r\n\x05\x04\x0e\x02\0\x04\x12\x04\xd5\x05\x02\n\n\r\n\x05\ - \x04\x0e\x02\0\x06\x12\x04\xd5\x05\x0b\x1b\n\r\n\x05\x04\x0e\x02\0\x01\ - \x12\x04\xd5\x05\x1c.\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xd5\x0512\n}\n\ - \x04\x04\x0e\x02\x01\x12\x04\xd9\x05\x02\x1d\x1ao\x20The\x20pagination\ - \x20token\x20to\x20retrieve\x20the\x20next\x20page\x20of\x20results.\x20\ - If\x20the\x20value\x20is\n\x20empty,\x20no\x20further\x20results\x20rema\ - in.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xd9\x05\x02\x08\n\r\n\x05\ - \x04\x0e\x02\x01\x01\x12\x04\xd9\x05\t\x18\n\r\n\x05\x04\x0e\x02\x01\x03\ - \x12\x04\xd9\x05\x1b\x1c\nA\n\x02\x04\x0f\x12\x06\xdd\x05\0\xe9\x05\x01\ - \x1a3\x20A\x20request\x20to\x20get\x20a\x20particular\x20`ServicePerimet\ - er`.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xdd\x05\x08\"\n\xd5\x01\n\x04\x04\ - \x0f\x02\0\x12\x06\xe3\x05\x02\xe8\x05\x04\x1a\xc4\x01\x20Required.\x20R\ - esource\x20name\x20for\x20the\x20[Service\x20Perimeter]\n\x20[google.ide\ - ntity.accesscontextmanager.v1.ServicePerimeter].\n\n\x20Format:\n\x20`ac\ - cessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`\n\n\ - \r\n\x05\x04\x0f\x02\0\x05\x12\x04\xe3\x05\x02\x08\n\r\n\x05\x04\x0f\x02\ - \0\x01\x12\x04\xe3\x05\t\r\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\xe3\x05\ - \x10\x11\n\x0f\n\x05\x04\x0f\x02\0\x08\x12\x06\xe3\x05\x12\xe8\x05\x03\n\ - \x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\x12\x04\xe4\x05\x04*\n\x11\n\x07\ - \x04\x0f\x02\0\x08\x9f\x08\x12\x06\xe5\x05\x04\xe7\x05\x05\n9\n\x02\x04\ - \x10\x12\x06\xec\x05\0\xfe\x05\x01\x1a+\x20A\x20request\x20to\x20create\ - \x20a\x20`ServicePerimeter`.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xec\x05\ - \x08%\n\xc8\x01\n\x04\x04\x10\x02\0\x12\x06\xf1\x05\x02\xf6\x05\x04\x1a\ - \xb7\x01\x20Required.\x20Resource\x20name\x20for\x20the\x20access\x20pol\ - icy\x20which\x20owns\x20this\x20[Service\n\x20Perimeter]\x20[google.iden\ - tity.accesscontextmanager.v1.ServicePerimeter].\n\n\x20Format:\x20`acces\ - sPolicies/{policy_id}`\n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\xf1\x05\x02\ - \x08\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xf1\x05\t\x0f\n\r\n\x05\x04\x10\ - \x02\0\x03\x12\x04\xf1\x05\x12\x13\n\x0f\n\x05\x04\x10\x02\0\x08\x12\x06\ - \xf1\x05\x14\xf6\x05\x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\ - \xf2\x05\x04*\n\x11\n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x06\xf3\x05\x04\ - \xf5\x05\x05\n\x88\x02\n\x04\x04\x10\x02\x01\x12\x04\xfd\x05\x02R\x1a\ - \xf9\x01\x20Required.\x20The\x20[Service\x20Perimeter]\n\x20[google.iden\ - tity.accesscontextmanager.v1.ServicePerimeter]\x20to\x20create.\n\x20Syn\ - tactic\x20correctness\x20of\x20the\x20[Service\x20Perimeter]\n\x20[googl\ - e.identity.accesscontextmanager.v1.ServicePerimeter]\x20is\x20a\n\x20pre\ - condition\x20for\x20creation.\n\n\r\n\x05\x04\x10\x02\x01\x06\x12\x04\ - \xfd\x05\x02\x12\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xfd\x05\x13$\n\r\ - \n\x05\x04\x10\x02\x01\x03\x12\x04\xfd\x05'(\n\r\n\x05\x04\x10\x02\x01\ - \x08\x12\x04\xfd\x05)Q\n\x10\n\x08\x04\x10\x02\x01\x08\x9c\x08\0\x12\x04\ - \xfd\x05*P\n9\n\x02\x04\x11\x12\x06\x81\x06\0\x88\x06\x01\x1a+\x20A\x20r\ - equest\x20to\x20update\x20a\x20`ServicePerimeter`.\n\n\x0b\n\x03\x04\x11\ - \x01\x12\x04\x81\x06\x08%\n\x8a\x01\n\x04\x04\x11\x02\0\x12\x04\x84\x06\ - \x02R\x1a|\x20Required.\x20The\x20updated\x20`ServicePerimeter`.\x20Synt\ - actic\x20correctness\x20of\x20the\n\x20`ServicePerimeter`\x20is\x20a\x20\ - precondition\x20for\x20creation.\n\n\r\n\x05\x04\x11\x02\0\x06\x12\x04\ - \x84\x06\x02\x12\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x84\x06\x13$\n\r\n\ - \x05\x04\x11\x02\0\x03\x12\x04\x84\x06'(\n\r\n\x05\x04\x11\x02\0\x08\x12\ - \x04\x84\x06)Q\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\x84\x06*P\ - \nV\n\x04\x04\x11\x02\x01\x12\x04\x87\x06\x02U\x1aH\x20Required.\x20Mask\ - \x20to\x20control\x20which\x20fields\x20get\x20updated.\x20Must\x20be\ - \x20non-empty.\n\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\x87\x06\x02\x1b\n\ - \r\n\x05\x04\x11\x02\x01\x01\x12\x04\x87\x06\x1c'\n\r\n\x05\x04\x11\x02\ - \x01\x03\x12\x04\x87\x06*+\n\r\n\x05\x04\x11\x02\x01\x08\x12\x04\x87\x06\ - ,T\n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\x87\x06-S\n9\n\x02\ - \x04\x12\x12\x06\x8b\x06\0\x97\x06\x01\x1a+\x20A\x20request\x20to\x20del\ - ete\x20a\x20`ServicePerimeter`.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\x8b\ - \x06\x08%\n\xd4\x01\n\x04\x04\x12\x02\0\x12\x06\x91\x06\x02\x96\x06\x04\ - \x1a\xc3\x01\x20Required.\x20Resource\x20name\x20for\x20the\x20[Service\ - \x20Perimeter]\n\x20[google.identity.accesscontextmanager.v1.ServicePeri\ - meter].\n\n\x20Format:\n\x20`accessPolicies/{policy_id}/servicePerimeter\ - s/{service_perimeter_id}`\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\x91\x06\ - \x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\x91\x06\t\r\n\r\n\x05\x04\ - \x12\x02\0\x03\x12\x04\x91\x06\x10\x11\n\x0f\n\x05\x04\x12\x02\0\x08\x12\ - \x06\x91\x06\x12\x96\x06\x03\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\ - \x04\x92\x06\x04*\n\x11\n\x07\x04\x12\x02\0\x08\x9f\x08\x12\x06\x93\x06\ - \x04\x95\x06\x05\n\x99\x01\n\x02\x04\x13\x12\x06\x9b\x06\0\xb8\x06\x01\ - \x1a\x8a\x01\x20A\x20request\x20to\x20replace\x20all\x20existing\x20Serv\ - ice\x20Perimeters\x20in\x20an\x20Access\x20Policy\n\x20with\x20the\x20Se\ - rvice\x20Perimeters\x20provided.\x20This\x20is\x20done\x20atomically.\n\ - \n\x0b\n\x03\x04\x13\x01\x12\x04\x9b\x06\x08'\n\xcb\x01\n\x04\x04\x13\ - \x02\0\x12\x06\xa1\x06\x02\xa6\x06\x04\x1a\xba\x01\x20Required.\x20Resou\ - rce\x20name\x20for\x20the\x20access\x20policy\x20which\x20owns\x20these\ - \n\x20[Service\x20Perimeters]\n\x20[google.identity.accesscontextmanager\ - .v1.ServicePerimeter].\n\n\x20Format:\x20`accessPolicies/{policy_id}`\n\ - \n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xa1\x06\x02\x08\n\r\n\x05\x04\x13\ - \x02\0\x01\x12\x04\xa1\x06\t\x0f\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xa1\ - \x06\x12\x13\n\x0f\n\x05\x04\x13\x02\0\x08\x12\x06\xa1\x06\x14\xa6\x06\ - \x03\n\x10\n\x08\x04\x13\x02\0\x08\x9c\x08\0\x12\x04\xa2\x06\x04*\n\x11\ - \n\x07\x04\x13\x02\0\x08\x9f\x08\x12\x06\xa3\x06\x04\xa5\x06\x05\n\xbb\ - \x02\n\x04\x04\x13\x02\x01\x12\x04\xae\x06\x02\\\x1a\xac\x02\x20Required\ - .\x20The\x20desired\x20[Service\x20Perimeters]\n\x20[google.identity.acc\ - esscontextmanager.v1.ServicePerimeter]\x20that\x20should\n\x20replace\ - \x20all\x20existing\x20[Service\x20Perimeters]\n\x20[google.identity.acc\ - esscontextmanager.v1.ServicePerimeter]\x20in\x20the\n\x20[Access\x20Poli\ - cy]\n\x20[google.identity.accesscontextmanager.v1.AccessPolicy].\n\n\r\n\ - \x05\x04\x13\x02\x01\x04\x12\x04\xae\x06\x02\n\n\r\n\x05\x04\x13\x02\x01\ - \x06\x12\x04\xae\x06\x0b\x1b\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xae\ - \x06\x1c.\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xae\x0612\n\r\n\x05\x04\ - \x13\x02\x01\x08\x12\x04\xae\x063[\n\x10\n\x08\x04\x13\x02\x01\x08\x9c\ - \x08\0\x12\x04\xae\x064Z\n\xfa\x03\n\x04\x04\x13\x02\x02\x12\x04\xb7\x06\ - \x02\x12\x1a\xeb\x03\x20Optional.\x20The\x20etag\x20for\x20the\x20versio\ - n\x20of\x20the\x20[Access\x20Policy]\n\x20[google.identity.accesscontext\ - manager.v1.AccessPolicy]\x20that\x20this\n\x20replace\x20operation\x20is\ - \x20to\x20be\x20performed\x20on.\x20If,\x20at\x20the\x20time\x20of\x20re\ - place,\x20the\n\x20etag\x20for\x20the\x20Access\x20Policy\x20stored\x20i\ - n\x20Access\x20Context\x20Manager\x20is\x20different\n\x20from\x20the\ - \x20specified\x20etag,\x20then\x20the\x20replace\x20operation\x20will\ - \x20not\x20be\x20performed\n\x20and\x20the\x20call\x20will\x20fail.\x20T\ - his\x20field\x20is\x20not\x20required.\x20If\x20etag\x20is\x20not\n\x20p\ - rovided,\x20the\x20operation\x20will\x20be\x20performed\x20as\x20if\x20a\ - \x20valid\x20etag\x20is\x20provided.\n\n\r\n\x05\x04\x13\x02\x02\x05\x12\ - \x04\xb7\x06\x02\x08\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xb7\x06\t\r\n\ - \r\n\x05\x04\x13\x02\x02\x03\x12\x04\xb7\x06\x10\x11\nt\n\x02\x04\x14\ - \x12\x06\xbc\x06\0\xc0\x06\x01\x1af\x20A\x20response\x20to\x20ReplaceSer\ - vicePerimetersRequest.\x20This\x20will\x20be\x20put\x20inside\x20of\n\ - \x20Operation.response\x20field.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xbc\ - \x06\x08(\nv\n\x04\x04\x14\x02\0\x12\x04\xbf\x06\x023\x1ah\x20List\x20of\ - \x20the\x20[Service\x20Perimeter]\n\x20[google.identity.accesscontextman\ - ager.v1.ServicePerimeter]\x20instances.\n\n\r\n\x05\x04\x14\x02\0\x04\ - \x12\x04\xbf\x06\x02\n\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xbf\x06\x0b\ - \x1b\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xbf\x06\x1c.\n\r\n\x05\x04\x14\ - \x02\0\x03\x12\x04\xbf\x0612\n\xe2\x01\n\x02\x04\x15\x12\x06\xc5\x06\0\ - \xdc\x06\x01\x1a\xd3\x01\x20A\x20request\x20to\x20commit\x20dry-run\x20s\ - pecs\x20in\x20all\x20[Service\x20Perimeters]\n\x20[google.identity.acces\ - scontextmanager.v1.ServicePerimeter]\x20belonging\x20to\n\x20an\x20[Acce\ - ss\x20Policy][google.identity.accesscontextmanager.v1.AccessPolicy].\n\n\ - \x0b\n\x03\x04\x15\x01\x12\x04\xc5\x06\x08&\n\xad\x02\n\x04\x04\x15\x02\ - \0\x12\x06\xcd\x06\x02\xd2\x06\x04\x1a\x9c\x02\x20Required.\x20Resource\ - \x20name\x20for\x20the\x20parent\x20[Access\x20Policy]\n\x20[google.iden\ - tity.accesscontextmanager.v1.AccessPolicy]\x20which\x20owns\x20all\n\x20\ - [Service\x20Perimeters]\n\x20[google.identity.accesscontextmanager.v1.Se\ - rvicePerimeter]\x20in\x20scope\x20for\n\x20the\x20commit\x20operation.\n\ - \n\x20Format:\x20`accessPolicies/{policy_id}`\n\n\r\n\x05\x04\x15\x02\0\ - \x05\x12\x04\xcd\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xcd\x06\ - \t\x0f\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xcd\x06\x12\x13\n\x0f\n\x05\ - \x04\x15\x02\0\x08\x12\x06\xcd\x06\x14\xd2\x06\x03\n\x10\n\x08\x04\x15\ - \x02\0\x08\x9c\x08\0\x12\x04\xce\x06\x04*\n\x11\n\x07\x04\x15\x02\0\x08\ - \x9f\x08\x12\x06\xcf\x06\x04\xd1\x06\x05\n\xf7\x03\n\x04\x04\x15\x02\x01\ - \x12\x04\xdb\x06\x02\x12\x1a\xe8\x03\x20Optional.\x20The\x20etag\x20for\ - \x20the\x20version\x20of\x20the\x20[Access\x20Policy]\n\x20[google.ident\ - ity.accesscontextmanager.v1.AccessPolicy]\x20that\x20this\n\x20commit\ - \x20operation\x20is\x20to\x20be\x20performed\x20on.\x20If,\x20at\x20the\ - \x20time\x20of\x20commit,\x20the\n\x20etag\x20for\x20the\x20Access\x20Po\ - licy\x20stored\x20in\x20Access\x20Context\x20Manager\x20is\x20different\ - \n\x20from\x20the\x20specified\x20etag,\x20then\x20the\x20commit\x20oper\ - ation\x20will\x20not\x20be\x20performed\n\x20and\x20the\x20call\x20will\ - \x20fail.\x20This\x20field\x20is\x20not\x20required.\x20If\x20etag\x20is\ - \x20not\n\x20provided,\x20the\x20operation\x20will\x20be\x20performed\ - \x20as\x20if\x20a\x20valid\x20etag\x20is\x20provided.\n\n\r\n\x05\x04\ - \x15\x02\x01\x05\x12\x04\xdb\x06\x02\x08\n\r\n\x05\x04\x15\x02\x01\x01\ - \x12\x04\xdb\x06\t\r\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xdb\x06\x10\ - \x11\ns\n\x02\x04\x16\x12\x06\xe0\x06\0\xe6\x06\x01\x1ae\x20A\x20respons\ - e\x20to\x20CommitServicePerimetersRequest.\x20This\x20will\x20be\x20put\ - \x20inside\x20of\n\x20Operation.response\x20field.\n\n\x0b\n\x03\x04\x16\ - \x01\x12\x04\xe0\x06\x08'\n\xcb\x01\n\x04\x04\x16\x02\0\x12\x04\xe5\x06\ - \x023\x1a\xbc\x01\x20List\x20of\x20all\x20the\x20[Service\x20Perimeter]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\x20inst\ - ances\x20in\n\x20the\x20[Access\x20Policy]\n\x20[google.identity.accessc\ - ontextmanager.v1.AccessPolicy].\n\n\r\n\x05\x04\x16\x02\0\x04\x12\x04\ - \xe5\x06\x02\n\n\r\n\x05\x04\x16\x02\0\x06\x12\x04\xe5\x06\x0b\x1b\n\r\n\ - \x05\x04\x16\x02\0\x01\x12\x04\xe5\x06\x1c.\n\r\n\x05\x04\x16\x02\0\x03\ - \x12\x04\xe5\x0612\n4\n\x02\x05\0\x12\x06\xe9\x06\0\xf4\x06\x01\x1a&\x20\ - The\x20format\x20used\x20in\x20an\x20`AccessLevel`.\n\n\x0b\n\x03\x05\0\ - \x01\x12\x04\xe9\x06\x05\x10\n-\n\x04\x05\0\x02\0\x12\x04\xeb\x06\x02\ - \x1f\x1a\x1f\x20The\x20format\x20was\x20not\x20specified.\n\n\r\n\x05\ - \x05\0\x02\0\x01\x12\x04\xeb\x06\x02\x1a\n\r\n\x05\x05\0\x02\0\x02\x12\ - \x04\xeb\x06\x1d\x1e\n\x92\x01\n\x04\x05\0\x02\x01\x12\x04\xef\x06\x02\ - \x11\x1a\x83\x01\x20Uses\x20the\x20format\x20the\x20resource\x20was\x20d\ - efined\x20in.\x20BasicLevels\x20are\x20returned\x20as\n\x20BasicLevels,\ - \x20CustomLevels\x20are\x20returned\x20as\x20CustomLevels.\n\n\r\n\x05\ - \x05\0\x02\x01\x01\x12\x04\xef\x06\x02\x0c\n\r\n\x05\x05\0\x02\x01\x02\ - \x12\x04\xef\x06\x0f\x10\n\x94\x01\n\x04\x05\0\x02\x02\x12\x04\xf3\x06\ - \x02\n\x1a\x85\x01\x20Use\x20Cloud\x20Common\x20Expression\x20Language\ - \x20when\x20returning\x20the\x20resource.\x20\x20Both\n\x20BasicLevels\ - \x20and\x20CustomLevels\x20are\x20returned\x20as\x20CustomLevels.\n\n\r\ - \n\x05\x05\0\x02\x02\x01\x12\x04\xf3\x06\x02\x05\n\r\n\x05\x05\0\x02\x02\ - \x02\x12\x04\xf3\x06\x08\t\n\x92\x01\n\x02\x04\x17\x12\x06\xf8\x06\0\x8a\ - \x07\x01\x1a\x83\x01\x20Request\x20of\x20[ListGcpUserAccessBindings]\n\ - \x20[google.identity.accesscontextmanager.v1.AccessContextManager.ListGc\ - pUserAccessBindings].\n\n\x0b\n\x03\x04\x17\x01\x12\x04\xf8\x06\x08(\n8\ - \n\x04\x04\x17\x02\0\x12\x06\xfa\x06\x02\xff\x06\x04\x1a(\x20Required.\ - \x20Example:\x20\"organizations/256\"\n\n\r\n\x05\x04\x17\x02\0\x05\x12\ - \x04\xfa\x06\x02\x08\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xfa\x06\t\x0f\n\ - \r\n\x05\x04\x17\x02\0\x03\x12\x04\xfa\x06\x12\x13\n\x0f\n\x05\x04\x17\ - \x02\0\x08\x12\x06\xfa\x06\x14\xff\x06\x03\n\x10\n\x08\x04\x17\x02\0\x08\ - \x9c\x08\0\x12\x04\xfb\x06\x04*\n\x11\n\x07\x04\x17\x02\0\x08\x9f\x08\ - \x12\x06\xfc\x06\x04\xfe\x06\x05\n\x9b\x01\n\x04\x04\x17\x02\x01\x12\x04\ - \x83\x07\x02?\x1a\x8c\x01\x20Optional.\x20Maximum\x20number\x20of\x20ite\ - ms\x20to\x20return.\x20The\x20server\x20may\x20return\x20fewer\x20items.\ - \n\x20If\x20left\x20blank,\x20the\x20server\x20may\x20return\x20any\x20n\ - umber\x20of\x20items.\n\n\r\n\x05\x04\x17\x02\x01\x05\x12\x04\x83\x07\ - \x02\x07\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\x83\x07\x08\x11\n\r\n\x05\ - \x04\x17\x02\x01\x03\x12\x04\x83\x07\x14\x15\n\r\n\x05\x04\x17\x02\x01\ - \x08\x12\x04\x83\x07\x16>\n\x10\n\x08\x04\x17\x02\x01\x08\x9c\x08\0\x12\ - \x04\x83\x07\x17=\n\xf5\x01\n\x04\x04\x17\x02\x02\x12\x04\x89\x07\x02A\ - \x1a\xe6\x01\x20Optional.\x20If\x20left\x20blank,\x20returns\x20the\x20f\ - irst\x20page.\x20To\x20enumerate\x20all\x20items,\x20use\x20the\n\x20[ne\ - xt_page_token]\n\x20[google.identity.accesscontextmanager.v1.ListGcpUser\ - AccessBindingsResponse.next_page_token]\n\x20from\x20your\x20previous\ - \x20list\x20operation.\n\n\r\n\x05\x04\x17\x02\x02\x05\x12\x04\x89\x07\ - \x02\x08\n\r\n\x05\x04\x17\x02\x02\x01\x12\x04\x89\x07\t\x13\n\r\n\x05\ - \x04\x17\x02\x02\x03\x12\x04\x89\x07\x16\x17\n\r\n\x05\x04\x17\x02\x02\ - \x08\x12\x04\x89\x07\x18@\n\x10\n\x08\x04\x17\x02\x02\x08\x9c\x08\0\x12\ - \x04\x89\x07\x19?\n\x93\x01\n\x02\x04\x18\x12\x06\x8e\x07\0\x95\x07\x01\ - \x1a\x84\x01\x20Response\x20of\x20[ListGcpUserAccessBindings]\n\x20[goog\ - le.identity.accesscontextmanager.v1.AccessContextManager.ListGcpUserAcce\ - ssBindings].\n\n\x0b\n\x03\x04\x18\x01\x12\x04\x8e\x07\x08)\nf\n\x04\x04\ - \x18\x02\0\x12\x04\x91\x07\x02=\x1aX\x20[GcpUserAccessBinding]\n\x20[goo\ - gle.identity.accesscontextmanager.v1.GcpUserAccessBinding]\n\n\r\n\x05\ - \x04\x18\x02\0\x04\x12\x04\x91\x07\x02\n\n\r\n\x05\x04\x18\x02\0\x06\x12\ - \x04\x91\x07\x0b\x1f\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\x91\x07\x208\n\ - \r\n\x05\x04\x18\x02\0\x03\x12\x04\x91\x07;<\nW\n\x04\x04\x18\x02\x01\ - \x12\x04\x94\x07\x02\x1d\x1aI\x20Token\x20to\x20get\x20the\x20next\x20pa\ - ge\x20of\x20items.\x20If\x20blank,\x20there\x20are\x20no\x20more\x20item\ - s.\n\n\r\n\x05\x04\x18\x02\x01\x05\x12\x04\x94\x07\x02\x08\n\r\n\x05\x04\ - \x18\x02\x01\x01\x12\x04\x94\x07\t\x18\n\r\n\x05\x04\x18\x02\x01\x03\x12\ - \x04\x94\x07\x1b\x1c\n\x8d\x01\n\x02\x04\x19\x12\x06\x99\x07\0\xa1\x07\ - \x01\x1a\x7f\x20Request\x20of\x20[GetGcpUserAccessBinding]\n\x20[google.\ - identity.accesscontextmanager.v1.AccessContextManager.GetGcpUserAccessBi\ - nding].\n\n\x0b\n\x03\x04\x19\x01\x12\x04\x99\x07\x08&\n[\n\x04\x04\x19\ - \x02\0\x12\x06\x9b\x07\x02\xa0\x07\x04\x1aK\x20Required.\x20Example:\x20\ - \"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\"\n\n\r\n\x05\x04\ - \x19\x02\0\x05\x12\x04\x9b\x07\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\ - \x04\x9b\x07\t\r\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\x9b\x07\x10\x11\n\ - \x0f\n\x05\x04\x19\x02\0\x08\x12\x06\x9b\x07\x12\xa0\x07\x03\n\x10\n\x08\ - \x04\x19\x02\0\x08\x9c\x08\0\x12\x04\x9c\x07\x04*\n\x11\n\x07\x04\x19\ - \x02\0\x08\x9f\x08\x12\x06\x9d\x07\x04\x9f\x07\x05\n\x94\x01\n\x02\x04\ - \x1a\x12\x06\xa5\x07\0\xb1\x07\x01\x1a\x85\x01\x20Request\x20of\x20[Crea\ - teGcpUserAccessBinding]\n\x20[google.identity.accesscontextmanager.v1.Ac\ - cessContextManager.CreateGcpUserAccessBinding].\n\n\x0b\n\x03\x04\x1a\ - \x01\x12\x04\xa5\x07\x08)\n8\n\x04\x04\x1a\x02\0\x12\x06\xa7\x07\x02\xac\ - \x07\x04\x1a(\x20Required.\x20Example:\x20\"organizations/256\"\n\n\r\n\ - \x05\x04\x1a\x02\0\x05\x12\x04\xa7\x07\x02\x08\n\r\n\x05\x04\x1a\x02\0\ - \x01\x12\x04\xa7\x07\t\x0f\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xa7\x07\ - \x12\x13\n\x0f\n\x05\x04\x1a\x02\0\x08\x12\x06\xa7\x07\x14\xac\x07\x03\n\ - \x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\x04\xa8\x07\x04*\n\x11\n\x07\ - \x04\x1a\x02\0\x08\x9f\x08\x12\x06\xa9\x07\x04\xab\x07\x05\np\n\x04\x04\ - \x1a\x02\x01\x12\x04\xb0\x07\x02\\\x1ab\x20Required.\x20[GcpUserAccessBi\ - nding]\n\x20[google.identity.accesscontextmanager.v1.GcpUserAccessBindin\ - g]\n\n\r\n\x05\x04\x1a\x02\x01\x06\x12\x04\xb0\x07\x02\x16\n\r\n\x05\x04\ - \x1a\x02\x01\x01\x12\x04\xb0\x07\x17.\n\r\n\x05\x04\x1a\x02\x01\x03\x12\ - \x04\xb0\x0712\n\r\n\x05\x04\x1a\x02\x01\x08\x12\x04\xb0\x073[\n\x10\n\ - \x08\x04\x1a\x02\x01\x08\x9c\x08\0\x12\x04\xb0\x074Z\n\x94\x01\n\x02\x04\ - \x1b\x12\x06\xb5\x07\0\xc1\x07\x01\x1a\x85\x01\x20Request\x20of\x20[Upda\ - teGcpUserAccessBinding]\n\x20[google.identity.accesscontextmanager.v1.Ac\ - cessContextManager.UpdateGcpUserAccessBinding].\n\n\x0b\n\x03\x04\x1b\ - \x01\x12\x04\xb5\x07\x08)\np\n\x04\x04\x1b\x02\0\x12\x04\xb8\x07\x02\\\ - \x1ab\x20Required.\x20[GcpUserAccessBinding]\n\x20[google.identity.acces\ - scontextmanager.v1.GcpUserAccessBinding]\n\n\r\n\x05\x04\x1b\x02\0\x06\ - \x12\x04\xb8\x07\x02\x16\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\xb8\x07\x17\ - .\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xb8\x0712\n\r\n\x05\x04\x1b\x02\0\ - \x08\x12\x04\xb8\x073[\n\x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\ - \xb8\x074Z\n\xd4\x01\n\x04\x04\x1b\x02\x01\x12\x04\xc0\x07\x02U\x1a\xc5\ - \x01\x20Required.\x20Only\x20the\x20fields\x20specified\x20in\x20this\ - \x20mask\x20are\x20updated.\x20Because\x20name\x20and\n\x20group_key\x20\ - cannot\x20be\x20changed,\x20update_mask\x20is\x20required\x20and\x20must\ - \x20always\x20be:\n\n\x20update_mask\x20{\n\x20paths:\x20\"access_levels\ - \"\n\x20}\n\n\r\n\x05\x04\x1b\x02\x01\x06\x12\x04\xc0\x07\x02\x1b\n\r\n\ - \x05\x04\x1b\x02\x01\x01\x12\x04\xc0\x07\x1c'\n\r\n\x05\x04\x1b\x02\x01\ - \x03\x12\x04\xc0\x07*+\n\r\n\x05\x04\x1b\x02\x01\x08\x12\x04\xc0\x07,T\n\ - \x10\n\x08\x04\x1b\x02\x01\x08\x9c\x08\0\x12\x04\xc0\x07-S\n\x94\x01\n\ - \x02\x04\x1c\x12\x06\xc5\x07\0\xcd\x07\x01\x1a\x85\x01\x20Request\x20of\ - \x20[DeleteGcpUserAccessBinding]\n\x20[google.identity.accesscontextmana\ - ger.v1.AccessContextManager.DeleteGcpUserAccessBinding].\n\n\x0b\n\x03\ - \x04\x1c\x01\x12\x04\xc5\x07\x08)\n[\n\x04\x04\x1c\x02\0\x12\x06\xc7\x07\ - \x02\xcc\x07\x04\x1aK\x20Required.\x20Example:\x20\"organizations/256/gc\ - pUserAccessBindings/b3-BhcX_Ud5N\"\n\n\r\n\x05\x04\x1c\x02\0\x05\x12\x04\ - \xc7\x07\x02\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\xc7\x07\t\r\n\r\n\ - \x05\x04\x1c\x02\0\x03\x12\x04\xc7\x07\x10\x11\n\x0f\n\x05\x04\x1c\x02\0\ - \x08\x12\x06\xc7\x07\x12\xcc\x07\x03\n\x10\n\x08\x04\x1c\x02\0\x08\x9c\ - \x08\0\x12\x04\xc8\x07\x04*\n\x11\n\x07\x04\x1c\x02\0\x08\x9f\x08\x12\ - \x06\xc9\x07\x04\xcb\x07\x05\n\xd9\x01\n\x02\x04\x1d\x12\x06\xd2\x07\0\ - \xd4\x07\x01\x1a\xca\x01\x20Currently,\x20a\x20completed\x20operation\ - \x20means\x20nothing.\x20In\x20the\x20future,\x20this\x20metadata\n\x20a\ - nd\x20a\x20completed\x20operation\x20may\x20indicate\x20that\x20the\x20b\ - inding\x20has\x20taken\x20effect\x20and\n\x20is\x20affecting\x20access\ - \x20decisions\x20for\x20all\x20users.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\ - \xd2\x07\x08-\nM\n\x02\x04\x1e\x12\x06\xd7\x07\0\xd9\x07\x01\x1a?\x20Met\ - adata\x20of\x20Access\x20Context\x20Manager's\x20Long\x20Running\x20Oper\ - ations.\n\n\x0b\n\x03\x04\x1e\x01\x12\x04\xd7\x07\x08-b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager_grpc.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager_grpc.rs deleted file mode 100644 index 387eb37..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager_grpc.rs +++ /dev/null @@ -1,821 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_POLICIES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ListAccessPolicies", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/GetAccessPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/CreateAccessPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/UpdateAccessPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/DeleteAccessPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_LEVELS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ListAccessLevels", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_LEVEL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/GetAccessLevel", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_LEVEL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/CreateAccessLevel", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_LEVEL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/UpdateAccessLevel", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_LEVEL: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/DeleteAccessLevel", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_ACCESS_LEVELS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ReplaceAccessLevels", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_LIST_SERVICE_PERIMETERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ListServicePerimeters", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_GET_SERVICE_PERIMETER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/GetServicePerimeter", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_CREATE_SERVICE_PERIMETER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/CreateServicePerimeter", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_SERVICE_PERIMETER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/UpdateServicePerimeter", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_DELETE_SERVICE_PERIMETER: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/DeleteServicePerimeter", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_SERVICE_PERIMETERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ReplaceServicePerimeters", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_COMMIT_SERVICE_PERIMETERS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/CommitServicePerimeters", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_LIST_GCP_USER_ACCESS_BINDINGS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/ListGcpUserAccessBindings", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_GET_GCP_USER_ACCESS_BINDING: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/GetGcpUserAccessBinding", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_CREATE_GCP_USER_ACCESS_BINDING: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/CreateGcpUserAccessBinding", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_GCP_USER_ACCESS_BINDING: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/UpdateGcpUserAccessBinding", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_DELETE_GCP_USER_ACCESS_BINDING: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/DeleteGcpUserAccessBinding", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_SET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/SetIamPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_GET_IAM_POLICY: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/GetIamPolicy", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_ACCESS_CONTEXT_MANAGER_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.identity.accesscontextmanager.v1.AccessContextManager/TestIamPermissions", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct AccessContextManagerClient { - pub client: ::grpcio::Client, -} - -impl AccessContextManagerClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - AccessContextManagerClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn list_access_policies_opt(&self, req: &super::access_context_manager::ListAccessPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_POLICIES, req, opt) - } - - pub fn list_access_policies(&self, req: &super::access_context_manager::ListAccessPoliciesRequest) -> ::grpcio::Result { - self.list_access_policies_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_access_policies_async_opt(&self, req: &super::access_context_manager::ListAccessPoliciesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_POLICIES, req, opt) - } - - pub fn list_access_policies_async(&self, req: &super::access_context_manager::ListAccessPoliciesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_access_policies_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_access_policy_opt(&self, req: &super::access_context_manager::GetAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_POLICY, req, opt) - } - - pub fn get_access_policy(&self, req: &super::access_context_manager::GetAccessPolicyRequest) -> ::grpcio::Result { - self.get_access_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_access_policy_async_opt(&self, req: &super::access_context_manager::GetAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_POLICY, req, opt) - } - - pub fn get_access_policy_async(&self, req: &super::access_context_manager::GetAccessPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_access_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_access_policy_opt(&self, req: &super::access_policy::AccessPolicy, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_POLICY, req, opt) - } - - pub fn create_access_policy(&self, req: &super::access_policy::AccessPolicy) -> ::grpcio::Result { - self.create_access_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_access_policy_async_opt(&self, req: &super::access_policy::AccessPolicy, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_POLICY, req, opt) - } - - pub fn create_access_policy_async(&self, req: &super::access_policy::AccessPolicy) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_access_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_access_policy_opt(&self, req: &super::access_context_manager::UpdateAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_POLICY, req, opt) - } - - pub fn update_access_policy(&self, req: &super::access_context_manager::UpdateAccessPolicyRequest) -> ::grpcio::Result { - self.update_access_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_access_policy_async_opt(&self, req: &super::access_context_manager::UpdateAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_POLICY, req, opt) - } - - pub fn update_access_policy_async(&self, req: &super::access_context_manager::UpdateAccessPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_access_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_access_policy_opt(&self, req: &super::access_context_manager::DeleteAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_POLICY, req, opt) - } - - pub fn delete_access_policy(&self, req: &super::access_context_manager::DeleteAccessPolicyRequest) -> ::grpcio::Result { - self.delete_access_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_access_policy_async_opt(&self, req: &super::access_context_manager::DeleteAccessPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_POLICY, req, opt) - } - - pub fn delete_access_policy_async(&self, req: &super::access_context_manager::DeleteAccessPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_access_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_access_levels_opt(&self, req: &super::access_context_manager::ListAccessLevelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_LEVELS, req, opt) - } - - pub fn list_access_levels(&self, req: &super::access_context_manager::ListAccessLevelsRequest) -> ::grpcio::Result { - self.list_access_levels_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_access_levels_async_opt(&self, req: &super::access_context_manager::ListAccessLevelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_LEVELS, req, opt) - } - - pub fn list_access_levels_async(&self, req: &super::access_context_manager::ListAccessLevelsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_access_levels_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_access_level_opt(&self, req: &super::access_context_manager::GetAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_LEVEL, req, opt) - } - - pub fn get_access_level(&self, req: &super::access_context_manager::GetAccessLevelRequest) -> ::grpcio::Result { - self.get_access_level_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_access_level_async_opt(&self, req: &super::access_context_manager::GetAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_LEVEL, req, opt) - } - - pub fn get_access_level_async(&self, req: &super::access_context_manager::GetAccessLevelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_access_level_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_access_level_opt(&self, req: &super::access_context_manager::CreateAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_LEVEL, req, opt) - } - - pub fn create_access_level(&self, req: &super::access_context_manager::CreateAccessLevelRequest) -> ::grpcio::Result { - self.create_access_level_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_access_level_async_opt(&self, req: &super::access_context_manager::CreateAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_LEVEL, req, opt) - } - - pub fn create_access_level_async(&self, req: &super::access_context_manager::CreateAccessLevelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_access_level_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_access_level_opt(&self, req: &super::access_context_manager::UpdateAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_LEVEL, req, opt) - } - - pub fn update_access_level(&self, req: &super::access_context_manager::UpdateAccessLevelRequest) -> ::grpcio::Result { - self.update_access_level_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_access_level_async_opt(&self, req: &super::access_context_manager::UpdateAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_LEVEL, req, opt) - } - - pub fn update_access_level_async(&self, req: &super::access_context_manager::UpdateAccessLevelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_access_level_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_access_level_opt(&self, req: &super::access_context_manager::DeleteAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_LEVEL, req, opt) - } - - pub fn delete_access_level(&self, req: &super::access_context_manager::DeleteAccessLevelRequest) -> ::grpcio::Result { - self.delete_access_level_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_access_level_async_opt(&self, req: &super::access_context_manager::DeleteAccessLevelRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_LEVEL, req, opt) - } - - pub fn delete_access_level_async(&self, req: &super::access_context_manager::DeleteAccessLevelRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_access_level_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn replace_access_levels_opt(&self, req: &super::access_context_manager::ReplaceAccessLevelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_ACCESS_LEVELS, req, opt) - } - - pub fn replace_access_levels(&self, req: &super::access_context_manager::ReplaceAccessLevelsRequest) -> ::grpcio::Result { - self.replace_access_levels_opt(req, ::grpcio::CallOption::default()) - } - - pub fn replace_access_levels_async_opt(&self, req: &super::access_context_manager::ReplaceAccessLevelsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_ACCESS_LEVELS, req, opt) - } - - pub fn replace_access_levels_async(&self, req: &super::access_context_manager::ReplaceAccessLevelsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.replace_access_levels_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_perimeters_opt(&self, req: &super::access_context_manager::ListServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_SERVICE_PERIMETERS, req, opt) - } - - pub fn list_service_perimeters(&self, req: &super::access_context_manager::ListServicePerimetersRequest) -> ::grpcio::Result { - self.list_service_perimeters_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_service_perimeters_async_opt(&self, req: &super::access_context_manager::ListServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_SERVICE_PERIMETERS, req, opt) - } - - pub fn list_service_perimeters_async(&self, req: &super::access_context_manager::ListServicePerimetersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_service_perimeters_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_perimeter_opt(&self, req: &super::access_context_manager::GetServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_GET_SERVICE_PERIMETER, req, opt) - } - - pub fn get_service_perimeter(&self, req: &super::access_context_manager::GetServicePerimeterRequest) -> ::grpcio::Result { - self.get_service_perimeter_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_service_perimeter_async_opt(&self, req: &super::access_context_manager::GetServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_GET_SERVICE_PERIMETER, req, opt) - } - - pub fn get_service_perimeter_async(&self, req: &super::access_context_manager::GetServicePerimeterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_service_perimeter_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_perimeter_opt(&self, req: &super::access_context_manager::CreateServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_SERVICE_PERIMETER, req, opt) - } - - pub fn create_service_perimeter(&self, req: &super::access_context_manager::CreateServicePerimeterRequest) -> ::grpcio::Result { - self.create_service_perimeter_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_service_perimeter_async_opt(&self, req: &super::access_context_manager::CreateServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_SERVICE_PERIMETER, req, opt) - } - - pub fn create_service_perimeter_async(&self, req: &super::access_context_manager::CreateServicePerimeterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_service_perimeter_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_service_perimeter_opt(&self, req: &super::access_context_manager::UpdateServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_SERVICE_PERIMETER, req, opt) - } - - pub fn update_service_perimeter(&self, req: &super::access_context_manager::UpdateServicePerimeterRequest) -> ::grpcio::Result { - self.update_service_perimeter_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_service_perimeter_async_opt(&self, req: &super::access_context_manager::UpdateServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_SERVICE_PERIMETER, req, opt) - } - - pub fn update_service_perimeter_async(&self, req: &super::access_context_manager::UpdateServicePerimeterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_service_perimeter_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_service_perimeter_opt(&self, req: &super::access_context_manager::DeleteServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_SERVICE_PERIMETER, req, opt) - } - - pub fn delete_service_perimeter(&self, req: &super::access_context_manager::DeleteServicePerimeterRequest) -> ::grpcio::Result { - self.delete_service_perimeter_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_service_perimeter_async_opt(&self, req: &super::access_context_manager::DeleteServicePerimeterRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_SERVICE_PERIMETER, req, opt) - } - - pub fn delete_service_perimeter_async(&self, req: &super::access_context_manager::DeleteServicePerimeterRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_service_perimeter_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn replace_service_perimeters_opt(&self, req: &super::access_context_manager::ReplaceServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_SERVICE_PERIMETERS, req, opt) - } - - pub fn replace_service_perimeters(&self, req: &super::access_context_manager::ReplaceServicePerimetersRequest) -> ::grpcio::Result { - self.replace_service_perimeters_opt(req, ::grpcio::CallOption::default()) - } - - pub fn replace_service_perimeters_async_opt(&self, req: &super::access_context_manager::ReplaceServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_SERVICE_PERIMETERS, req, opt) - } - - pub fn replace_service_perimeters_async(&self, req: &super::access_context_manager::ReplaceServicePerimetersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.replace_service_perimeters_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn commit_service_perimeters_opt(&self, req: &super::access_context_manager::CommitServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_COMMIT_SERVICE_PERIMETERS, req, opt) - } - - pub fn commit_service_perimeters(&self, req: &super::access_context_manager::CommitServicePerimetersRequest) -> ::grpcio::Result { - self.commit_service_perimeters_opt(req, ::grpcio::CallOption::default()) - } - - pub fn commit_service_perimeters_async_opt(&self, req: &super::access_context_manager::CommitServicePerimetersRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_COMMIT_SERVICE_PERIMETERS, req, opt) - } - - pub fn commit_service_perimeters_async(&self, req: &super::access_context_manager::CommitServicePerimetersRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.commit_service_perimeters_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_gcp_user_access_bindings_opt(&self, req: &super::access_context_manager::ListGcpUserAccessBindingsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_GCP_USER_ACCESS_BINDINGS, req, opt) - } - - pub fn list_gcp_user_access_bindings(&self, req: &super::access_context_manager::ListGcpUserAccessBindingsRequest) -> ::grpcio::Result { - self.list_gcp_user_access_bindings_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_gcp_user_access_bindings_async_opt(&self, req: &super::access_context_manager::ListGcpUserAccessBindingsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_GCP_USER_ACCESS_BINDINGS, req, opt) - } - - pub fn list_gcp_user_access_bindings_async(&self, req: &super::access_context_manager::ListGcpUserAccessBindingsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_gcp_user_access_bindings_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_gcp_user_access_binding_opt(&self, req: &super::access_context_manager::GetGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_GET_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn get_gcp_user_access_binding(&self, req: &super::access_context_manager::GetGcpUserAccessBindingRequest) -> ::grpcio::Result { - self.get_gcp_user_access_binding_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_gcp_user_access_binding_async_opt(&self, req: &super::access_context_manager::GetGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_GET_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn get_gcp_user_access_binding_async(&self, req: &super::access_context_manager::GetGcpUserAccessBindingRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_gcp_user_access_binding_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_gcp_user_access_binding_opt(&self, req: &super::access_context_manager::CreateGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn create_gcp_user_access_binding(&self, req: &super::access_context_manager::CreateGcpUserAccessBindingRequest) -> ::grpcio::Result { - self.create_gcp_user_access_binding_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_gcp_user_access_binding_async_opt(&self, req: &super::access_context_manager::CreateGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn create_gcp_user_access_binding_async(&self, req: &super::access_context_manager::CreateGcpUserAccessBindingRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_gcp_user_access_binding_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_gcp_user_access_binding_opt(&self, req: &super::access_context_manager::UpdateGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn update_gcp_user_access_binding(&self, req: &super::access_context_manager::UpdateGcpUserAccessBindingRequest) -> ::grpcio::Result { - self.update_gcp_user_access_binding_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_gcp_user_access_binding_async_opt(&self, req: &super::access_context_manager::UpdateGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn update_gcp_user_access_binding_async(&self, req: &super::access_context_manager::UpdateGcpUserAccessBindingRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_gcp_user_access_binding_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_gcp_user_access_binding_opt(&self, req: &super::access_context_manager::DeleteGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn delete_gcp_user_access_binding(&self, req: &super::access_context_manager::DeleteGcpUserAccessBindingRequest) -> ::grpcio::Result { - self.delete_gcp_user_access_binding_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_gcp_user_access_binding_async_opt(&self, req: &super::access_context_manager::DeleteGcpUserAccessBindingRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_GCP_USER_ACCESS_BINDING, req, opt) - } - - pub fn delete_gcp_user_access_binding_async(&self, req: &super::access_context_manager::DeleteGcpUserAccessBindingRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_gcp_user_access_binding_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_iam_policy_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_SET_IAM_POLICY, req, opt) - } - - pub fn set_iam_policy(&self, req: &super::iam_policy::SetIamPolicyRequest) -> ::grpcio::Result { - self.set_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn set_iam_policy_async_opt(&self, req: &super::iam_policy::SetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_SET_IAM_POLICY, req, opt) - } - - pub fn set_iam_policy_async(&self, req: &super::iam_policy::SetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.set_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_iam_policy_opt(&self, req: &super::iam_policy::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_GET_IAM_POLICY, req, opt) - } - - pub fn get_iam_policy(&self, req: &super::iam_policy::GetIamPolicyRequest) -> ::grpcio::Result { - self.get_iam_policy_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_iam_policy_async_opt(&self, req: &super::iam_policy::GetIamPolicyRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_GET_IAM_POLICY, req, opt) - } - - pub fn get_iam_policy_async(&self, req: &super::iam_policy::GetIamPolicyRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_iam_policy_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_iam_permissions_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_ACCESS_CONTEXT_MANAGER_TEST_IAM_PERMISSIONS, req, opt) - } - - pub fn test_iam_permissions(&self, req: &super::iam_policy::TestIamPermissionsRequest) -> ::grpcio::Result { - self.test_iam_permissions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn test_iam_permissions_async_opt(&self, req: &super::iam_policy::TestIamPermissionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_ACCESS_CONTEXT_MANAGER_TEST_IAM_PERMISSIONS, req, opt) - } - - pub fn test_iam_permissions_async(&self, req: &super::iam_policy::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.test_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait AccessContextManager { - fn list_access_policies(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ListAccessPoliciesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_access_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::GetAccessPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_access_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_policy::AccessPolicy, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_access_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::UpdateAccessPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_access_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::DeleteAccessPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_access_levels(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ListAccessLevelsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_access_level(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::GetAccessLevelRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_access_level(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::CreateAccessLevelRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_access_level(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::UpdateAccessLevelRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_access_level(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::DeleteAccessLevelRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn replace_access_levels(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ReplaceAccessLevelsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_service_perimeters(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ListServicePerimetersRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_service_perimeter(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::GetServicePerimeterRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_service_perimeter(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::CreateServicePerimeterRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_service_perimeter(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::UpdateServicePerimeterRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_service_perimeter(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::DeleteServicePerimeterRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn replace_service_perimeters(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ReplaceServicePerimetersRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn commit_service_perimeters(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::CommitServicePerimetersRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_gcp_user_access_bindings(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::ListGcpUserAccessBindingsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_gcp_user_access_binding(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::GetGcpUserAccessBindingRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn create_gcp_user_access_binding(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::CreateGcpUserAccessBindingRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_gcp_user_access_binding(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::UpdateGcpUserAccessBindingRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_gcp_user_access_binding(&mut self, ctx: ::grpcio::RpcContext, _req: super::access_context_manager::DeleteGcpUserAccessBindingRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn set_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::SetIamPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_iam_policy(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::GetIamPolicyRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_access_context_manager(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_POLICIES, move |ctx, req, resp| { - instance.list_access_policies(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_POLICY, move |ctx, req, resp| { - instance.get_access_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_POLICY, move |ctx, req, resp| { - instance.create_access_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_POLICY, move |ctx, req, resp| { - instance.update_access_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_POLICY, move |ctx, req, resp| { - instance.delete_access_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_ACCESS_LEVELS, move |ctx, req, resp| { - instance.list_access_levels(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_GET_ACCESS_LEVEL, move |ctx, req, resp| { - instance.get_access_level(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_ACCESS_LEVEL, move |ctx, req, resp| { - instance.create_access_level(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_ACCESS_LEVEL, move |ctx, req, resp| { - instance.update_access_level(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_ACCESS_LEVEL, move |ctx, req, resp| { - instance.delete_access_level(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_ACCESS_LEVELS, move |ctx, req, resp| { - instance.replace_access_levels(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_SERVICE_PERIMETERS, move |ctx, req, resp| { - instance.list_service_perimeters(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_GET_SERVICE_PERIMETER, move |ctx, req, resp| { - instance.get_service_perimeter(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_SERVICE_PERIMETER, move |ctx, req, resp| { - instance.create_service_perimeter(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_SERVICE_PERIMETER, move |ctx, req, resp| { - instance.update_service_perimeter(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_SERVICE_PERIMETER, move |ctx, req, resp| { - instance.delete_service_perimeter(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_REPLACE_SERVICE_PERIMETERS, move |ctx, req, resp| { - instance.replace_service_perimeters(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_COMMIT_SERVICE_PERIMETERS, move |ctx, req, resp| { - instance.commit_service_perimeters(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_LIST_GCP_USER_ACCESS_BINDINGS, move |ctx, req, resp| { - instance.list_gcp_user_access_bindings(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_GET_GCP_USER_ACCESS_BINDING, move |ctx, req, resp| { - instance.get_gcp_user_access_binding(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_CREATE_GCP_USER_ACCESS_BINDING, move |ctx, req, resp| { - instance.create_gcp_user_access_binding(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_UPDATE_GCP_USER_ACCESS_BINDING, move |ctx, req, resp| { - instance.update_gcp_user_access_binding(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_DELETE_GCP_USER_ACCESS_BINDING, move |ctx, req, resp| { - instance.delete_gcp_user_access_binding(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_SET_IAM_POLICY, move |ctx, req, resp| { - instance.set_iam_policy(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_GET_IAM_POLICY, move |ctx, req, resp| { - instance.get_iam_policy(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_ACCESS_CONTEXT_MANAGER_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { - instance.test_iam_permissions(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/access_level.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/access_level.rs deleted file mode 100644 index 4ea46a9..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/access_level.rs +++ /dev/null @@ -1,2203 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/v1/access_level.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct AccessLevel { - // message fields - pub name: ::std::string::String, - pub title: ::std::string::String, - pub description: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // message oneof groups - pub level: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AccessLevel { - fn default() -> &'a AccessLevel { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AccessLevel_oneof_level { - basic(BasicLevel), - custom(CustomLevel), -} - -impl AccessLevel { - pub fn new() -> AccessLevel { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string title = 2; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.identity.accesscontextmanager.v1.BasicLevel basic = 4; - - - pub fn get_basic(&self) -> &BasicLevel { - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::basic(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_basic(&mut self) { - self.level = ::std::option::Option::None; - } - - pub fn has_basic(&self) -> bool { - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::basic(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_basic(&mut self, v: BasicLevel) { - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::basic(v)) - } - - // Mutable pointer to the field. - pub fn mut_basic(&mut self) -> &mut BasicLevel { - if let ::std::option::Option::Some(AccessLevel_oneof_level::basic(_)) = self.level { - } else { - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::basic(BasicLevel::new())); - } - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::basic(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_basic(&mut self) -> BasicLevel { - if self.has_basic() { - match self.level.take() { - ::std::option::Option::Some(AccessLevel_oneof_level::basic(v)) => v, - _ => panic!(), - } - } else { - BasicLevel::new() - } - } - - // .google.identity.accesscontextmanager.v1.CustomLevel custom = 5; - - - pub fn get_custom(&self) -> &CustomLevel { - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::custom(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_custom(&mut self) { - self.level = ::std::option::Option::None; - } - - pub fn has_custom(&self) -> bool { - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::custom(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_custom(&mut self, v: CustomLevel) { - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::custom(v)) - } - - // Mutable pointer to the field. - pub fn mut_custom(&mut self) -> &mut CustomLevel { - if let ::std::option::Option::Some(AccessLevel_oneof_level::custom(_)) = self.level { - } else { - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::custom(CustomLevel::new())); - } - match self.level { - ::std::option::Option::Some(AccessLevel_oneof_level::custom(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_custom(&mut self) -> CustomLevel { - if self.has_custom() { - match self.level.take() { - ::std::option::Option::Some(AccessLevel_oneof_level::custom(v)) => v, - _ => panic!(), - } - } else { - CustomLevel::new() - } - } - - // .google.protobuf.Timestamp create_time = 6; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 7; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for AccessLevel { - fn is_initialized(&self) -> bool { - if let Some(AccessLevel_oneof_level::basic(ref v)) = self.level { - if !v.is_initialized() { - return false; - } - } - if let Some(AccessLevel_oneof_level::custom(ref v)) = self.level { - if !v.is_initialized() { - return false; - } - } - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::basic(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.level = ::std::option::Option::Some(AccessLevel_oneof_level::custom(is.read_message()?)); - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.title); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.level { - match v { - &AccessLevel_oneof_level::basic(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &AccessLevel_oneof_level::custom(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.title.is_empty() { - os.write_string(2, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.level { - match v { - &AccessLevel_oneof_level::basic(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &AccessLevel_oneof_level::custom(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AccessLevel { - AccessLevel::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &AccessLevel| { &m.name }, - |m: &mut AccessLevel| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &AccessLevel| { &m.title }, - |m: &mut AccessLevel| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &AccessLevel| { &m.description }, - |m: &mut AccessLevel| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, BasicLevel>( - "basic", - AccessLevel::has_basic, - AccessLevel::get_basic, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, CustomLevel>( - "custom", - AccessLevel::has_custom, - AccessLevel::get_custom, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &AccessLevel| { &m.create_time }, - |m: &mut AccessLevel| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &AccessLevel| { &m.update_time }, - |m: &mut AccessLevel| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AccessLevel", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AccessLevel { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AccessLevel::new) - } -} - -impl ::protobuf::Clear for AccessLevel { - fn clear(&mut self) { - self.name.clear(); - self.title.clear(); - self.description.clear(); - self.level = ::std::option::Option::None; - self.level = ::std::option::Option::None; - self.create_time.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AccessLevel { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AccessLevel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BasicLevel { - // message fields - pub conditions: ::protobuf::RepeatedField, - pub combining_function: BasicLevel_ConditionCombiningFunction, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BasicLevel { - fn default() -> &'a BasicLevel { - ::default_instance() - } -} - -impl BasicLevel { - pub fn new() -> BasicLevel { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1; - - - pub fn get_conditions(&self) -> &[Condition] { - &self.conditions - } - pub fn clear_conditions(&mut self) { - self.conditions.clear(); - } - - // Param is passed by value, moved - pub fn set_conditions(&mut self, v: ::protobuf::RepeatedField) { - self.conditions = v; - } - - // Mutable pointer to the field. - pub fn mut_conditions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.conditions - } - - // Take field - pub fn take_conditions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.conditions, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2; - - - pub fn get_combining_function(&self) -> BasicLevel_ConditionCombiningFunction { - self.combining_function - } - pub fn clear_combining_function(&mut self) { - self.combining_function = BasicLevel_ConditionCombiningFunction::AND; - } - - // Param is passed by value, moved - pub fn set_combining_function(&mut self, v: BasicLevel_ConditionCombiningFunction) { - self.combining_function = v; - } -} - -impl ::protobuf::Message for BasicLevel { - fn is_initialized(&self) -> bool { - for v in &self.conditions { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.conditions)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.combining_function, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.conditions { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.combining_function != BasicLevel_ConditionCombiningFunction::AND { - my_size += ::protobuf::rt::enum_size(2, self.combining_function); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.conditions { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.combining_function != BasicLevel_ConditionCombiningFunction::AND { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.combining_function))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BasicLevel { - BasicLevel::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "conditions", - |m: &BasicLevel| { &m.conditions }, - |m: &mut BasicLevel| { &mut m.conditions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "combining_function", - |m: &BasicLevel| { &m.combining_function }, - |m: &mut BasicLevel| { &mut m.combining_function }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BasicLevel", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BasicLevel { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BasicLevel::new) - } -} - -impl ::protobuf::Clear for BasicLevel { - fn clear(&mut self) { - self.conditions.clear(); - self.combining_function = BasicLevel_ConditionCombiningFunction::AND; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BasicLevel { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BasicLevel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum BasicLevel_ConditionCombiningFunction { - AND = 0, - OR = 1, -} - -impl ::protobuf::ProtobufEnum for BasicLevel_ConditionCombiningFunction { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(BasicLevel_ConditionCombiningFunction::AND), - 1 => ::std::option::Option::Some(BasicLevel_ConditionCombiningFunction::OR), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [BasicLevel_ConditionCombiningFunction] = &[ - BasicLevel_ConditionCombiningFunction::AND, - BasicLevel_ConditionCombiningFunction::OR, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("BasicLevel.ConditionCombiningFunction", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for BasicLevel_ConditionCombiningFunction { -} - -impl ::std::default::Default for BasicLevel_ConditionCombiningFunction { - fn default() -> Self { - BasicLevel_ConditionCombiningFunction::AND - } -} - -impl ::protobuf::reflect::ProtobufValue for BasicLevel_ConditionCombiningFunction { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Condition { - // message fields - pub ip_subnetworks: ::protobuf::RepeatedField<::std::string::String>, - pub device_policy: ::protobuf::SingularPtrField, - pub required_access_levels: ::protobuf::RepeatedField<::std::string::String>, - pub negate: bool, - pub members: ::protobuf::RepeatedField<::std::string::String>, - pub regions: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Condition { - fn default() -> &'a Condition { - ::default_instance() - } -} - -impl Condition { - pub fn new() -> Condition { - ::std::default::Default::default() - } - - // repeated string ip_subnetworks = 1; - - - pub fn get_ip_subnetworks(&self) -> &[::std::string::String] { - &self.ip_subnetworks - } - pub fn clear_ip_subnetworks(&mut self) { - self.ip_subnetworks.clear(); - } - - // Param is passed by value, moved - pub fn set_ip_subnetworks(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ip_subnetworks = v; - } - - // Mutable pointer to the field. - pub fn mut_ip_subnetworks(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ip_subnetworks - } - - // Take field - pub fn take_ip_subnetworks(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ip_subnetworks, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2; - - - pub fn get_device_policy(&self) -> &DevicePolicy { - self.device_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_device_policy(&mut self) { - self.device_policy.clear(); - } - - pub fn has_device_policy(&self) -> bool { - self.device_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_device_policy(&mut self, v: DevicePolicy) { - self.device_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_device_policy(&mut self) -> &mut DevicePolicy { - if self.device_policy.is_none() { - self.device_policy.set_default(); - } - self.device_policy.as_mut().unwrap() - } - - // Take field - pub fn take_device_policy(&mut self) -> DevicePolicy { - self.device_policy.take().unwrap_or_else(|| DevicePolicy::new()) - } - - // repeated string required_access_levels = 3; - - - pub fn get_required_access_levels(&self) -> &[::std::string::String] { - &self.required_access_levels - } - pub fn clear_required_access_levels(&mut self) { - self.required_access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_required_access_levels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.required_access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_required_access_levels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.required_access_levels - } - - // Take field - pub fn take_required_access_levels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.required_access_levels, ::protobuf::RepeatedField::new()) - } - - // bool negate = 5; - - - pub fn get_negate(&self) -> bool { - self.negate - } - pub fn clear_negate(&mut self) { - self.negate = false; - } - - // Param is passed by value, moved - pub fn set_negate(&mut self, v: bool) { - self.negate = v; - } - - // repeated string members = 6; - - - pub fn get_members(&self) -> &[::std::string::String] { - &self.members - } - pub fn clear_members(&mut self) { - self.members.clear(); - } - - // Param is passed by value, moved - pub fn set_members(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.members = v; - } - - // Mutable pointer to the field. - pub fn mut_members(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.members - } - - // Take field - pub fn take_members(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.members, ::protobuf::RepeatedField::new()) - } - - // repeated string regions = 7; - - - pub fn get_regions(&self) -> &[::std::string::String] { - &self.regions - } - pub fn clear_regions(&mut self) { - self.regions.clear(); - } - - // Param is passed by value, moved - pub fn set_regions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.regions = v; - } - - // Mutable pointer to the field. - pub fn mut_regions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.regions - } - - // Take field - pub fn take_regions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.regions, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Condition { - fn is_initialized(&self) -> bool { - for v in &self.device_policy { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ip_subnetworks)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.device_policy)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.required_access_levels)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.negate = tmp; - }, - 6 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.members)?; - }, - 7 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.regions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.ip_subnetworks { - my_size += ::protobuf::rt::string_size(1, &value); - }; - if let Some(ref v) = self.device_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.required_access_levels { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.negate != false { - my_size += 2; - } - for value in &self.members { - my_size += ::protobuf::rt::string_size(6, &value); - }; - for value in &self.regions { - my_size += ::protobuf::rt::string_size(7, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.ip_subnetworks { - os.write_string(1, &v)?; - }; - if let Some(ref v) = self.device_policy.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.required_access_levels { - os.write_string(3, &v)?; - }; - if self.negate != false { - os.write_bool(5, self.negate)?; - } - for v in &self.members { - os.write_string(6, &v)?; - }; - for v in &self.regions { - os.write_string(7, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Condition { - Condition::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ip_subnetworks", - |m: &Condition| { &m.ip_subnetworks }, - |m: &mut Condition| { &mut m.ip_subnetworks }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "device_policy", - |m: &Condition| { &m.device_policy }, - |m: &mut Condition| { &mut m.device_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "required_access_levels", - |m: &Condition| { &m.required_access_levels }, - |m: &mut Condition| { &mut m.required_access_levels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "negate", - |m: &Condition| { &m.negate }, - |m: &mut Condition| { &mut m.negate }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "members", - |m: &Condition| { &m.members }, - |m: &mut Condition| { &mut m.members }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "regions", - |m: &Condition| { &m.regions }, - |m: &mut Condition| { &mut m.regions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Condition", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Condition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Condition::new) - } -} - -impl ::protobuf::Clear for Condition { - fn clear(&mut self) { - self.ip_subnetworks.clear(); - self.device_policy.clear(); - self.required_access_levels.clear(); - self.negate = false; - self.members.clear(); - self.regions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Condition { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Condition { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CustomLevel { - // message fields - pub expr: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CustomLevel { - fn default() -> &'a CustomLevel { - ::default_instance() - } -} - -impl CustomLevel { - pub fn new() -> CustomLevel { - ::std::default::Default::default() - } - - // .google.type.Expr expr = 1; - - - pub fn get_expr(&self) -> &super::expr::Expr { - self.expr.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_expr(&mut self) { - self.expr.clear(); - } - - pub fn has_expr(&self) -> bool { - self.expr.is_some() - } - - // Param is passed by value, moved - pub fn set_expr(&mut self, v: super::expr::Expr) { - self.expr = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expr(&mut self) -> &mut super::expr::Expr { - if self.expr.is_none() { - self.expr.set_default(); - } - self.expr.as_mut().unwrap() - } - - // Take field - pub fn take_expr(&mut self) -> super::expr::Expr { - self.expr.take().unwrap_or_else(|| super::expr::Expr::new()) - } -} - -impl ::protobuf::Message for CustomLevel { - fn is_initialized(&self) -> bool { - for v in &self.expr { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expr)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.expr.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.expr.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CustomLevel { - CustomLevel::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "expr", - |m: &CustomLevel| { &m.expr }, - |m: &mut CustomLevel| { &mut m.expr }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CustomLevel", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CustomLevel { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CustomLevel::new) - } -} - -impl ::protobuf::Clear for CustomLevel { - fn clear(&mut self) { - self.expr.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CustomLevel { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CustomLevel { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DevicePolicy { - // message fields - pub require_screenlock: bool, - pub allowed_encryption_statuses: ::std::vec::Vec, - pub os_constraints: ::protobuf::RepeatedField, - pub allowed_device_management_levels: ::std::vec::Vec, - pub require_admin_approval: bool, - pub require_corp_owned: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DevicePolicy { - fn default() -> &'a DevicePolicy { - ::default_instance() - } -} - -impl DevicePolicy { - pub fn new() -> DevicePolicy { - ::std::default::Default::default() - } - - // bool require_screenlock = 1; - - - pub fn get_require_screenlock(&self) -> bool { - self.require_screenlock - } - pub fn clear_require_screenlock(&mut self) { - self.require_screenlock = false; - } - - // Param is passed by value, moved - pub fn set_require_screenlock(&mut self, v: bool) { - self.require_screenlock = v; - } - - // repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2; - - - pub fn get_allowed_encryption_statuses(&self) -> &[super::device_resources::DeviceEncryptionStatus] { - &self.allowed_encryption_statuses - } - pub fn clear_allowed_encryption_statuses(&mut self) { - self.allowed_encryption_statuses.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_encryption_statuses(&mut self, v: ::std::vec::Vec) { - self.allowed_encryption_statuses = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_encryption_statuses(&mut self) -> &mut ::std::vec::Vec { - &mut self.allowed_encryption_statuses - } - - // Take field - pub fn take_allowed_encryption_statuses(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.allowed_encryption_statuses, ::std::vec::Vec::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3; - - - pub fn get_os_constraints(&self) -> &[OsConstraint] { - &self.os_constraints - } - pub fn clear_os_constraints(&mut self) { - self.os_constraints.clear(); - } - - // Param is passed by value, moved - pub fn set_os_constraints(&mut self, v: ::protobuf::RepeatedField) { - self.os_constraints = v; - } - - // Mutable pointer to the field. - pub fn mut_os_constraints(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.os_constraints - } - - // Take field - pub fn take_os_constraints(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.os_constraints, ::protobuf::RepeatedField::new()) - } - - // repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6; - - - pub fn get_allowed_device_management_levels(&self) -> &[super::device_resources::DeviceManagementLevel] { - &self.allowed_device_management_levels - } - pub fn clear_allowed_device_management_levels(&mut self) { - self.allowed_device_management_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_device_management_levels(&mut self, v: ::std::vec::Vec) { - self.allowed_device_management_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_device_management_levels(&mut self) -> &mut ::std::vec::Vec { - &mut self.allowed_device_management_levels - } - - // Take field - pub fn take_allowed_device_management_levels(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.allowed_device_management_levels, ::std::vec::Vec::new()) - } - - // bool require_admin_approval = 7; - - - pub fn get_require_admin_approval(&self) -> bool { - self.require_admin_approval - } - pub fn clear_require_admin_approval(&mut self) { - self.require_admin_approval = false; - } - - // Param is passed by value, moved - pub fn set_require_admin_approval(&mut self, v: bool) { - self.require_admin_approval = v; - } - - // bool require_corp_owned = 8; - - - pub fn get_require_corp_owned(&self) -> bool { - self.require_corp_owned - } - pub fn clear_require_corp_owned(&mut self) { - self.require_corp_owned = false; - } - - // Param is passed by value, moved - pub fn set_require_corp_owned(&mut self, v: bool) { - self.require_corp_owned = v; - } -} - -impl ::protobuf::Message for DevicePolicy { - fn is_initialized(&self) -> bool { - for v in &self.os_constraints { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.require_screenlock = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.allowed_encryption_statuses, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.os_constraints)?; - }, - 6 => { - ::protobuf::rt::read_repeated_enum_with_unknown_fields_into(wire_type, is, &mut self.allowed_device_management_levels, 6, &mut self.unknown_fields)? - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.require_admin_approval = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.require_corp_owned = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.require_screenlock != false { - my_size += 2; - } - for value in &self.allowed_encryption_statuses { - my_size += ::protobuf::rt::enum_size(2, *value); - }; - for value in &self.os_constraints { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.allowed_device_management_levels { - my_size += ::protobuf::rt::enum_size(6, *value); - }; - if self.require_admin_approval != false { - my_size += 2; - } - if self.require_corp_owned != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.require_screenlock != false { - os.write_bool(1, self.require_screenlock)?; - } - for v in &self.allowed_encryption_statuses { - os.write_enum(2, ::protobuf::ProtobufEnum::value(v))?; - }; - for v in &self.os_constraints { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.allowed_device_management_levels { - os.write_enum(6, ::protobuf::ProtobufEnum::value(v))?; - }; - if self.require_admin_approval != false { - os.write_bool(7, self.require_admin_approval)?; - } - if self.require_corp_owned != false { - os.write_bool(8, self.require_corp_owned)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DevicePolicy { - DevicePolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "require_screenlock", - |m: &DevicePolicy| { &m.require_screenlock }, - |m: &mut DevicePolicy| { &mut m.require_screenlock }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "allowed_encryption_statuses", - |m: &DevicePolicy| { &m.allowed_encryption_statuses }, - |m: &mut DevicePolicy| { &mut m.allowed_encryption_statuses }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "os_constraints", - |m: &DevicePolicy| { &m.os_constraints }, - |m: &mut DevicePolicy| { &mut m.os_constraints }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "allowed_device_management_levels", - |m: &DevicePolicy| { &m.allowed_device_management_levels }, - |m: &mut DevicePolicy| { &mut m.allowed_device_management_levels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "require_admin_approval", - |m: &DevicePolicy| { &m.require_admin_approval }, - |m: &mut DevicePolicy| { &mut m.require_admin_approval }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "require_corp_owned", - |m: &DevicePolicy| { &m.require_corp_owned }, - |m: &mut DevicePolicy| { &mut m.require_corp_owned }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DevicePolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DevicePolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DevicePolicy::new) - } -} - -impl ::protobuf::Clear for DevicePolicy { - fn clear(&mut self) { - self.require_screenlock = false; - self.allowed_encryption_statuses.clear(); - self.os_constraints.clear(); - self.allowed_device_management_levels.clear(); - self.require_admin_approval = false; - self.require_corp_owned = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DevicePolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DevicePolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OsConstraint { - // message fields - pub os_type: super::device_resources::OsType, - pub minimum_version: ::std::string::String, - pub require_verified_chrome_os: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OsConstraint { - fn default() -> &'a OsConstraint { - ::default_instance() - } -} - -impl OsConstraint { - pub fn new() -> OsConstraint { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.type.OsType os_type = 1; - - - pub fn get_os_type(&self) -> super::device_resources::OsType { - self.os_type - } - pub fn clear_os_type(&mut self) { - self.os_type = super::device_resources::OsType::OS_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_os_type(&mut self, v: super::device_resources::OsType) { - self.os_type = v; - } - - // string minimum_version = 2; - - - pub fn get_minimum_version(&self) -> &str { - &self.minimum_version - } - pub fn clear_minimum_version(&mut self) { - self.minimum_version.clear(); - } - - // Param is passed by value, moved - pub fn set_minimum_version(&mut self, v: ::std::string::String) { - self.minimum_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_minimum_version(&mut self) -> &mut ::std::string::String { - &mut self.minimum_version - } - - // Take field - pub fn take_minimum_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.minimum_version, ::std::string::String::new()) - } - - // bool require_verified_chrome_os = 3; - - - pub fn get_require_verified_chrome_os(&self) -> bool { - self.require_verified_chrome_os - } - pub fn clear_require_verified_chrome_os(&mut self) { - self.require_verified_chrome_os = false; - } - - // Param is passed by value, moved - pub fn set_require_verified_chrome_os(&mut self, v: bool) { - self.require_verified_chrome_os = v; - } -} - -impl ::protobuf::Message for OsConstraint { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.os_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.minimum_version)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.require_verified_chrome_os = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.os_type != super::device_resources::OsType::OS_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.os_type); - } - if !self.minimum_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.minimum_version); - } - if self.require_verified_chrome_os != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.os_type != super::device_resources::OsType::OS_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.os_type))?; - } - if !self.minimum_version.is_empty() { - os.write_string(2, &self.minimum_version)?; - } - if self.require_verified_chrome_os != false { - os.write_bool(3, self.require_verified_chrome_os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OsConstraint { - OsConstraint::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "os_type", - |m: &OsConstraint| { &m.os_type }, - |m: &mut OsConstraint| { &mut m.os_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "minimum_version", - |m: &OsConstraint| { &m.minimum_version }, - |m: &mut OsConstraint| { &mut m.minimum_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "require_verified_chrome_os", - |m: &OsConstraint| { &m.require_verified_chrome_os }, - |m: &mut OsConstraint| { &mut m.require_verified_chrome_os }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OsConstraint", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OsConstraint { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OsConstraint::new) - } -} - -impl ::protobuf::Clear for OsConstraint { - fn clear(&mut self) { - self.os_type = super::device_resources::OsType::OS_UNSPECIFIED; - self.minimum_version.clear(); - self.require_verified_chrome_os = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OsConstraint { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OsConstraint { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n:google/identity/accesscontextmanager/v1/access_level.proto\x12'google\ - .identity.accesscontextmanager.v1\x1a\x19google/api/resource.proto\x1a@g\ - oogle/identity/accesscontextmanager/type/device_resources.proto\x1a\x1fg\ - oogle/protobuf/timestamp.proto\x1a\x16google/type/expr.proto\"\xeb\x03\n\ - \x0bAccessLevel\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\ - \x05title\x18\x02\x20\x01(\tR\x05title\x12\x20\n\x0bdescription\x18\x03\ - \x20\x01(\tR\x0bdescription\x12K\n\x05basic\x18\x04\x20\x01(\x0b23.googl\ - e.identity.accesscontextmanager.v1.BasicLevelH\0R\x05basic\x12N\n\x06cus\ - tom\x18\x05\x20\x01(\x0b24.google.identity.accesscontextmanager.v1.Custo\ - mLevelH\0R\x06custom\x12;\n\x0bcreate_time\x18\x06\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x07\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\nupdateTimeB\x07\n\x05level:p\ - \xeaAm\n/accesscontextmanager.googleapis.com/AccessLevel\x12:accessPolic\ - ies/{access_policy}/accessLevels/{access_level}\"\x8e\x02\n\nBasicLevel\ - \x12R\n\nconditions\x18\x01\x20\x03(\x0b22.google.identity.accesscontext\ - manager.v1.ConditionR\nconditions\x12}\n\x12combining_function\x18\x02\ - \x20\x01(\x0e2N.google.identity.accesscontextmanager.v1.BasicLevel.Condi\ - tionCombiningFunctionR\x11combiningFunction\"-\n\x1aConditionCombiningFu\ - nction\x12\x07\n\x03AND\x10\0\x12\x06\n\x02OR\x10\x01\"\x90\x02\n\tCondi\ - tion\x12%\n\x0eip_subnetworks\x18\x01\x20\x03(\tR\ripSubnetworks\x12Z\n\ - \rdevice_policy\x18\x02\x20\x01(\x0b25.google.identity.accesscontextmana\ - ger.v1.DevicePolicyR\x0cdevicePolicy\x124\n\x16required_access_levels\ - \x18\x03\x20\x03(\tR\x14requiredAccessLevels\x12\x16\n\x06negate\x18\x05\ - \x20\x01(\x08R\x06negate\x12\x18\n\x07members\x18\x06\x20\x03(\tR\x07mem\ - bers\x12\x18\n\x07regions\x18\x07\x20\x03(\tR\x07regions\"4\n\x0bCustomL\ - evel\x12%\n\x04expr\x18\x01\x20\x01(\x0b2\x11.google.type.ExprR\x04expr\ - \"\x8f\x04\n\x0cDevicePolicy\x12-\n\x12require_screenlock\x18\x01\x20\ - \x01(\x08R\x11requireScreenlock\x12\x81\x01\n\x1ballowed_encryption_stat\ - uses\x18\x02\x20\x03(\x0e2A.google.identity.accesscontextmanager.type.De\ - viceEncryptionStatusR\x19allowedEncryptionStatuses\x12\\\n\x0eos_constra\ - ints\x18\x03\x20\x03(\x0b25.google.identity.accesscontextmanager.v1.OsCo\ - nstraintR\rosConstraints\x12\x89\x01\n\x20allowed_device_management_leve\ - ls\x18\x06\x20\x03(\x0e2@.google.identity.accesscontextmanager.type.Devi\ - ceManagementLevelR\x1dallowedDeviceManagementLevels\x124\n\x16require_ad\ - min_approval\x18\x07\x20\x01(\x08R\x14requireAdminApproval\x12,\n\x12req\ - uire_corp_owned\x18\x08\x20\x01(\x08R\x10requireCorpOwned\"\xc0\x01\n\ - \x0cOsConstraint\x12J\n\x07os_type\x18\x01\x20\x01(\x0e21.google.identit\ - y.accesscontextmanager.type.OsTypeR\x06osType\x12'\n\x0fminimum_version\ - \x18\x02\x20\x01(\tR\x0eminimumVersion\x12;\n\x1arequire_verified_chrome\ - _os\x18\x03\x20\x01(\x08R\x17requireVerifiedChromeOsB\xa7\x02\n+com.goog\ - le.identity.accesscontextmanager.v1B\x10AccessLevelProtoP\x01Z\\cloud.go\ - ogle.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb;accesscont\ - extmanagerpb\xa2\x02\x04GACM\xaa\x02'Google.Identity.AccessContextManage\ - r.V1\xca\x02'Google\\Identity\\AccessContextManager\\V1\xea\x02*Google::\ - Identity::AccessContextManager::V1J\xe7>\n\x07\x12\x05\x0e\0\xbf\x01\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\00\n\t\n\x02\x03\0\ - \x12\x03\x12\0#\n\t\n\x02\x03\x01\x12\x03\x13\0J\n\t\n\x02\x03\x02\x12\ - \x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0\x20\n\x08\n\x01\x08\x12\x03\ - \x17\0D\n\t\n\x02\x08%\x12\x03\x17\0D\n\x08\n\x01\x08\x12\x03\x18\0s\n\t\ - \n\x02\x08\x0b\x12\x03\x18\0s\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\ - \x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\01\n\t\n\x02\x08\x08\ - \x12\x03\x1a\01\n\x08\n\x01\x08\x12\x03\x1b\0D\n\t\n\x02\x08\x01\x12\x03\ - \x1b\0D\n\x08\n\x01\x08\x12\x03\x1c\0\"\n\t\n\x02\x08$\x12\x03\x1c\0\"\n\ - \x08\n\x01\x08\x12\x03\x1d\0D\n\t\n\x02\x08)\x12\x03\x1d\0D\n\x08\n\x01\ - \x08\x12\x03\x1e\0C\n\t\n\x02\x08-\x12\x03\x1e\0C\n\xaf\x01\n\x02\x04\0\ - \x12\x04#\0C\x01\x1a\xa2\x01\x20An\x20`AccessLevel`\x20is\x20a\x20label\ - \x20that\x20can\x20be\x20applied\x20to\x20requests\x20to\x20Google\x20Cl\ - oud\n\x20services,\x20along\x20with\x20a\x20list\x20of\x20requirements\ - \x20necessary\x20for\x20the\x20label\x20to\x20be\n\x20applied.\n\n\n\n\ - \x03\x04\0\x01\x12\x03#\x08\x13\n\x0b\n\x03\x04\0\x07\x12\x04$\x02'\x04\ - \n\r\n\x05\x04\0\x07\x9d\x08\x12\x04$\x02'\x04\n\xa6\x02\n\x04\x04\0\x02\ - \0\x12\x03-\x02\x12\x1a\x98\x02\x20Required.\x20Resource\x20name\x20for\ - \x20the\x20Access\x20Level.\x20The\x20`short_name`\x20component\n\x20mus\ - t\x20begin\x20with\x20a\x20letter\x20and\x20only\x20include\x20alphanume\ - ric\x20and\x20'_'.\x20Format:\n\x20`accessPolicies/{access_policy}/acces\ - sLevels/{access_level}`.\x20The\x20maximum\n\x20length\x20of\x20the\x20`\ - access_level`\x20component\x20is\x2050\x20characters.\n\n\x0c\n\x05\x04\ - \0\x02\0\x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03-\t\r\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03-\x10\x11\nF\n\x04\x04\0\x02\x01\x12\ - \x030\x02\x13\x1a9\x20Human\x20readable\x20title.\x20Must\x20be\x20uniqu\ - e\x20within\x20the\x20Policy.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x030\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x030\t\x0e\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x030\x11\x12\nV\n\x04\x04\0\x02\x02\x12\x033\x02\x19\ - \x1aI\x20Description\x20of\x20the\x20`AccessLevel`\x20and\x20its\x20use.\ - \x20Does\x20not\x20affect\x20behavior.\n\n\x0c\n\x05\x04\0\x02\x02\x05\ - \x12\x033\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x033\t\x14\n\x0c\n\ - \x05\x04\0\x02\x02\x03\x12\x033\x17\x18\nT\n\x04\x04\0\x08\0\x12\x046\ - \x02<\x03\x1aF\x20Required.\x20Describes\x20the\x20necessary\x20conditio\ - ns\x20for\x20the\x20level\x20to\x20apply.\n\n\x0c\n\x05\x04\0\x08\0\x01\ - \x12\x036\x08\r\n7\n\x04\x04\0\x02\x03\x12\x038\x04\x19\x1a*\x20A\x20`Ba\ - sicLevel`\x20composed\x20of\x20`Conditions`.\n\n\x0c\n\x05\x04\0\x02\x03\ - \x06\x12\x038\x04\x0e\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x038\x0f\x14\n\ - \x0c\n\x05\x04\0\x02\x03\x03\x12\x038\x17\x18\nI\n\x04\x04\0\x02\x04\x12\ - \x03;\x04\x1b\x1a<\x20A\x20`CustomLevel`\x20written\x20in\x20the\x20Comm\ - on\x20Expression\x20Language.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03;\ - \x04\x0f\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03;\x10\x16\n\x0c\n\x05\x04\ - \0\x02\x04\x03\x12\x03;\x19\x1a\nF\n\x04\x04\0\x02\x05\x12\x03?\x02,\x1a\ - 9\x20Output\x20only.\x20Time\x20the\x20`AccessLevel`\x20was\x20created\ - \x20in\x20UTC.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03?\x02\x1b\n\x0c\n\ - \x05\x04\0\x02\x05\x01\x12\x03?\x1c'\n\x0c\n\x05\x04\0\x02\x05\x03\x12\ - \x03?*+\nF\n\x04\x04\0\x02\x06\x12\x03B\x02,\x1a9\x20Output\x20only.\x20\ - Time\x20the\x20`AccessLevel`\x20was\x20updated\x20in\x20UTC.\n\n\x0c\n\ - \x05\x04\0\x02\x06\x06\x12\x03B\x02\x1b\n\x0c\n\x05\x04\0\x02\x06\x01\ - \x12\x03B\x1c'\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03B*+\nS\n\x02\x04\x01\ - \x12\x04F\0Z\x01\x1aG\x20`BasicLevel`\x20is\x20an\x20`AccessLevel`\x20us\ - ing\x20a\x20set\x20of\x20recommended\x20features.\n\n\n\n\x03\x04\x01\ - \x01\x12\x03F\x08\x12\n\x88\x01\n\x04\x04\x01\x04\0\x12\x04I\x02O\x03\ - \x1az\x20Options\x20for\x20how\x20the\x20`conditions`\x20list\x20should\ - \x20be\x20combined\x20to\x20determine\x20if\n\x20this\x20`AccessLevel`\ - \x20is\x20applied.\x20Default\x20is\x20AND.\n\n\x0c\n\x05\x04\x01\x04\0\ - \x01\x12\x03I\x07!\nO\n\x06\x04\x01\x04\0\x02\0\x12\x03K\x04\x0c\x1a@\ - \x20All\x20`Conditions`\x20must\x20be\x20true\x20for\x20the\x20`BasicLev\ - el`\x20to\x20be\x20true.\n\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03K\ - \x04\x07\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03K\n\x0b\nT\n\x06\x04\ - \x01\x04\0\x02\x01\x12\x03N\x04\x0b\x1aE\x20If\x20at\x20least\x20one\x20\ - `Condition`\x20is\x20true,\x20then\x20the\x20`BasicLevel`\x20is\x20true.\ - \n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03N\x04\x06\n\x0e\n\x07\ - \x04\x01\x04\0\x02\x01\x02\x12\x03N\t\n\nT\n\x04\x04\x01\x02\0\x12\x03R\ - \x02$\x1aG\x20Required.\x20A\x20list\x20of\x20requirements\x20for\x20the\ - \x20`AccessLevel`\x20to\x20be\x20granted.\n\n\x0c\n\x05\x04\x01\x02\0\ - \x04\x12\x03R\x02\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03R\x0b\x14\n\x0c\ - \n\x05\x04\x01\x02\0\x01\x12\x03R\x15\x1f\n\x0c\n\x05\x04\x01\x02\0\x03\ - \x12\x03R\"#\n\xe9\x02\n\x04\x04\x01\x02\x01\x12\x03Y\x024\x1a\xdb\x02\ - \x20How\x20the\x20`conditions`\x20list\x20should\x20be\x20combined\x20to\ - \x20determine\x20if\x20a\x20request\x20is\n\x20granted\x20this\x20`Acces\ - sLevel`.\x20If\x20AND\x20is\x20used,\x20each\x20`Condition`\x20in\n\x20`\ - conditions`\x20must\x20be\x20satisfied\x20for\x20the\x20`AccessLevel`\ - \x20to\x20be\x20applied.\x20If\x20OR\n\x20is\x20used,\x20at\x20least\x20\ - one\x20`Condition`\x20in\x20`conditions`\x20must\x20be\x20satisfied\x20f\ - or\x20the\n\x20`AccessLevel`\x20to\x20be\x20applied.\x20Default\x20behav\ - ior\x20is\x20AND.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03Y\x02\x1c\n\ - \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03Y\x1d/\n\x0c\n\x05\x04\x01\x02\x01\ - \x03\x12\x03Y23\n\x84\x03\n\x02\x04\x02\x12\x05a\0\x87\x01\x01\x1a\xf6\ - \x02\x20A\x20condition\x20necessary\x20for\x20an\x20`AccessLevel`\x20to\ - \x20be\x20granted.\x20The\x20Condition\x20is\x20an\n\x20AND\x20over\x20i\ - ts\x20fields.\x20So\x20a\x20Condition\x20is\x20true\x20if:\x201)\x20the\ - \x20request\x20IP\x20is\x20from\x20one\n\x20of\x20the\x20listed\x20subne\ - tworks\x20AND\x202)\x20the\x20originating\x20device\x20complies\x20with\ - \x20the\n\x20listed\x20device\x20policy\x20AND\x203)\x20all\x20listed\ - \x20access\x20levels\x20are\x20granted\x20AND\x204)\x20the\n\x20request\ - \x20was\x20sent\x20at\x20a\x20time\x20allowed\x20by\x20the\x20DateTimeRe\ - striction.\n\n\n\n\x03\x04\x02\x01\x12\x03a\x08\x11\n\xac\x04\n\x04\x04\ - \x02\x02\0\x12\x03j\x02%\x1a\x9e\x04\x20CIDR\x20block\x20IP\x20subnetwor\ - k\x20specification.\x20May\x20be\x20IPv4\x20or\x20IPv6.\x20Note\x20that\ - \x20for\n\x20a\x20CIDR\x20IP\x20address\x20block,\x20the\x20specified\ - \x20IP\x20address\x20portion\x20must\x20be\x20properly\n\x20truncated\ - \x20(i.e.\x20all\x20the\x20host\x20bits\x20must\x20be\x20zero)\x20or\x20\ - the\x20input\x20is\x20considered\n\x20malformed.\x20For\x20example,\x20\ - \"192.0.2.0/24\"\x20is\x20accepted\x20but\x20\"192.0.2.1/24\"\x20is\n\ - \x20not.\x20Similarly,\x20for\x20IPv6,\x20\"2001:db8::/32\"\x20is\x20acc\ - epted\x20whereas\n\x20\"2001:db8::1/32\"\x20is\x20not.\x20The\x20origina\ - ting\x20IP\x20of\x20a\x20request\x20must\x20be\x20in\x20one\x20of\n\x20t\ - he\x20listed\x20subnets\x20in\x20order\x20for\x20this\x20Condition\x20to\ - \x20be\x20true.\x20If\x20empty,\x20all\x20IP\n\x20addresses\x20are\x20al\ - lowed.\n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03j\x02\n\n\x0c\n\x05\x04\ - \x02\x02\0\x05\x12\x03j\x0b\x11\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03j\ - \x12\x20\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03j#$\n\x92\x01\n\x04\x04\ - \x02\x02\x01\x12\x03n\x02!\x1a\x84\x01\x20Device\x20specific\x20restrict\ - ions,\x20all\x20restrictions\x20must\x20hold\x20for\x20the\n\x20Conditio\ - n\x20to\x20be\x20true.\x20If\x20not\x20specified,\x20all\x20devices\x20a\ - re\x20allowed.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03n\x02\x0e\n\x0c\ - \n\x05\x04\x02\x02\x01\x01\x12\x03n\x0f\x1c\n\x0c\n\x05\x04\x02\x02\x01\ - \x03\x12\x03n\x1f\x20\n\xb0\x02\n\x04\x04\x02\x02\x02\x12\x03u\x02-\x1a\ - \xa2\x02\x20A\x20list\x20of\x20other\x20access\x20levels\x20defined\x20i\ - n\x20the\x20same\x20`Policy`,\x20referenced\x20by\n\x20resource\x20name.\ - \x20Referencing\x20an\x20`AccessLevel`\x20which\x20does\x20not\x20exist\ - \x20is\x20an\n\x20error.\x20All\x20access\x20levels\x20listed\x20must\ - \x20be\x20granted\x20for\x20the\x20Condition\n\x20to\x20be\x20true.\x20E\ - xample:\n\x20\"`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME\"`\n\n\ - \x0c\n\x05\x04\x02\x02\x02\x04\x12\x03u\x02\n\n\x0c\n\x05\x04\x02\x02\ - \x02\x05\x12\x03u\x0b\x11\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03u\x12(\ - \n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03u+,\n\xca\x01\n\x04\x04\x02\x02\ - \x03\x12\x03z\x02\x12\x1a\xbc\x01\x20Whether\x20to\x20negate\x20the\x20C\ - ondition.\x20If\x20true,\x20the\x20Condition\x20becomes\x20a\x20NAND\x20\ - over\n\x20its\x20non-empty\x20fields,\x20each\x20field\x20must\x20be\x20\ - false\x20for\x20the\x20Condition\x20overall\x20to\n\x20be\x20satisfied.\ - \x20Defaults\x20to\x20false.\n\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03z\ - \x02\x06\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03z\x07\r\n\x0c\n\x05\x04\ - \x02\x02\x03\x03\x12\x03z\x10\x11\n\xe1\x01\n\x04\x04\x02\x02\x04\x12\ - \x04\x82\x01\x02\x1e\x1a\xd2\x01\x20The\x20request\x20must\x20be\x20made\ - \x20by\x20one\x20of\x20the\x20provided\x20user\x20or\x20service\n\x20acc\ - ounts.\x20Groups\x20are\x20not\x20supported.\n\x20Syntax:\n\x20`user:{em\ - ailid}`\n\x20`serviceAccount:{emailid}`\n\x20If\x20not\x20specified,\x20\ - a\x20request\x20may\x20come\x20from\x20any\x20user.\n\n\r\n\x05\x04\x02\ - \x02\x04\x04\x12\x04\x82\x01\x02\n\n\r\n\x05\x04\x02\x02\x04\x05\x12\x04\ - \x82\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\x82\x01\x12\x19\n\ - \r\n\x05\x04\x02\x02\x04\x03\x12\x04\x82\x01\x1c\x1d\n\x7f\n\x04\x04\x02\ - \x02\x05\x12\x04\x86\x01\x02\x1e\x1aq\x20The\x20request\x20must\x20origi\ - nate\x20from\x20one\x20of\x20the\x20provided\x20countries/regions.\n\x20\ - Must\x20be\x20valid\x20ISO\x203166-1\x20alpha-2\x20codes.\n\n\r\n\x05\ - \x04\x02\x02\x05\x04\x12\x04\x86\x01\x02\n\n\r\n\x05\x04\x02\x02\x05\x05\ - \x12\x04\x86\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\x86\x01\ - \x12\x19\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x86\x01\x1c\x1d\n\xde\x01\ - \n\x02\x04\x03\x12\x06\x8c\x01\0\x8f\x01\x01\x1a\xcf\x01\x20`CustomLevel\ - `\x20is\x20an\x20`AccessLevel`\x20using\x20the\x20Cloud\x20Common\x20Exp\ - ression\x20Language\n\x20to\x20represent\x20the\x20necessary\x20conditio\ - ns\x20for\x20the\x20level\x20to\x20apply\x20to\x20a\x20request.\n\x20See\ - \x20CEL\x20spec\x20at:\x20https://github.com/google/cel-spec\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\x8c\x01\x08\x13\nI\n\x04\x04\x03\x02\0\x12\x04\ - \x8e\x01\x02\x1c\x1a;\x20Required.\x20A\x20Cloud\x20CEL\x20expression\ - \x20evaluating\x20to\x20a\x20boolean.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\ - \x04\x8e\x01\x02\x12\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x8e\x01\x13\x17\ - \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x8e\x01\x1a\x1b\n\xfd\x04\n\x02\x04\ - \x04\x12\x06\x9a\x01\0\xae\x01\x01\x1a\xee\x04\x20`DevicePolicy`\x20spec\ - ifies\x20device\x20specific\x20restrictions\x20necessary\x20to\x20acquir\ - e\x20a\n\x20given\x20access\x20level.\x20A\x20`DevicePolicy`\x20specifie\ - s\x20requirements\x20for\x20requests\x20from\n\x20devices\x20to\x20be\ - \x20granted\x20access\x20levels,\x20it\x20does\x20not\x20do\x20any\x20en\ - forcement\x20on\x20the\n\x20device.\x20`DevicePolicy`\x20acts\x20as\x20a\ - n\x20AND\x20over\x20all\x20specified\x20fields,\x20and\x20each\n\x20repe\ - ated\x20field\x20is\x20an\x20OR\x20over\x20its\x20elements.\x20Any\x20un\ - set\x20fields\x20are\x20ignored.\x20For\n\x20example,\x20if\x20the\x20pr\ - oto\x20is\x20{\x20os_type\x20:\x20DESKTOP_WINDOWS,\x20os_type\x20:\n\x20\ - DESKTOP_LINUX,\x20encryption_status:\x20ENCRYPTED},\x20then\x20the\x20De\ - vicePolicy\x20will\x20be\n\x20true\x20for\x20requests\x20originating\x20\ - from\x20encrypted\x20Linux\x20desktops\x20and\x20encrypted\n\x20Windows\ - \x20desktops.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x9a\x01\x08\x14\nl\n\x04\ - \x04\x04\x02\0\x12\x04\x9d\x01\x02\x1e\x1a^\x20Whether\x20or\x20not\x20s\ - creenlock\x20is\x20required\x20for\x20the\x20DevicePolicy\x20to\x20be\ - \x20true.\n\x20Defaults\x20to\x20`false`.\n\n\r\n\x05\x04\x04\x02\0\x05\ - \x12\x04\x9d\x01\x02\x06\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\x9d\x01\x07\ - \x19\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x9d\x01\x1c\x1d\nP\n\x04\x04\ - \x04\x02\x01\x12\x04\xa0\x01\x02l\x1aB\x20Allowed\x20encryptions\x20stat\ - uses,\x20an\x20empty\x20list\x20allows\x20all\x20statuses.\n\n\r\n\x05\ - \x04\x04\x02\x01\x04\x12\x04\xa0\x01\x02\n\n\r\n\x05\x04\x04\x02\x01\x06\ - \x12\x04\xa0\x01\x0bK\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xa0\x01Lg\n\ - \r\n\x05\x04\x04\x02\x01\x03\x12\x04\xa0\x01jk\nU\n\x04\x04\x04\x02\x02\ - \x12\x04\xa3\x01\x02+\x1aG\x20Allowed\x20OS\x20versions,\x20an\x20empty\ - \x20list\x20allows\x20all\x20types\x20and\x20all\x20versions.\n\n\r\n\ - \x05\x04\x04\x02\x02\x04\x12\x04\xa3\x01\x02\n\n\r\n\x05\x04\x04\x02\x02\ - \x06\x12\x04\xa3\x01\x0b\x17\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\xa3\ - \x01\x18&\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xa3\x01)*\n^\n\x04\x04\ - \x04\x02\x03\x12\x04\xa7\x01\x02p\x1aP\x20Allowed\x20device\x20managemen\ - t\x20levels,\x20an\x20empty\x20list\x20allows\x20all\x20management\n\x20\ - levels.\n\n\r\n\x05\x04\x04\x02\x03\x04\x12\x04\xa7\x01\x02\n\n\r\n\x05\ - \x04\x04\x02\x03\x06\x12\x04\xa7\x01\x0bJ\n\r\n\x05\x04\x04\x02\x03\x01\ - \x12\x04\xa7\x01Kk\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\xa7\x01no\nN\n\ - \x04\x04\x04\x02\x04\x12\x04\xaa\x01\x02\"\x1a@\x20Whether\x20the\x20dev\ - ice\x20needs\x20to\x20be\x20approved\x20by\x20the\x20customer\x20admin.\ - \n\n\r\n\x05\x04\x04\x02\x04\x05\x12\x04\xaa\x01\x02\x06\n\r\n\x05\x04\ - \x04\x02\x04\x01\x12\x04\xaa\x01\x07\x1d\n\r\n\x05\x04\x04\x02\x04\x03\ - \x12\x04\xaa\x01\x20!\n:\n\x04\x04\x04\x02\x05\x12\x04\xad\x01\x02\x1e\ - \x1a,\x20Whether\x20the\x20device\x20needs\x20to\x20be\x20corp\x20owned.\ - \n\n\r\n\x05\x04\x04\x02\x05\x05\x12\x04\xad\x01\x02\x06\n\r\n\x05\x04\ - \x04\x02\x05\x01\x12\x04\xad\x01\x07\x19\n\r\n\x05\x04\x04\x02\x05\x03\ - \x12\x04\xad\x01\x1c\x1d\nT\n\x02\x04\x05\x12\x06\xb1\x01\0\xbf\x01\x01\ - \x1aF\x20A\x20restriction\x20on\x20the\x20OS\x20type\x20and\x20version\ - \x20of\x20devices\x20making\x20requests.\n\n\x0b\n\x03\x04\x05\x01\x12\ - \x04\xb1\x01\x08\x14\n.\n\x04\x04\x05\x02\0\x12\x04\xb3\x01\x02?\x1a\x20\ - \x20Required.\x20The\x20allowed\x20OS\x20type.\n\n\r\n\x05\x04\x05\x02\0\ - \x06\x12\x04\xb3\x01\x022\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xb3\x013:\ - \n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xb3\x01=>\n\xb1\x01\n\x04\x04\x05\ - \x02\x01\x12\x04\xb8\x01\x02\x1d\x1a\xa2\x01\x20The\x20minimum\x20allowe\ - d\x20OS\x20version.\x20If\x20not\x20set,\x20any\x20version\x20of\x20this\ - \x20OS\n\x20satisfies\x20the\x20constraint.\x20Format:\x20`\"major.minor\ - .patch\"`.\n\x20Examples:\x20`\"10.5.301\"`,\x20`\"9.2.1\"`.\n\n\r\n\x05\ - \x04\x05\x02\x01\x05\x12\x04\xb8\x01\x02\x08\n\r\n\x05\x04\x05\x02\x01\ - \x01\x12\x04\xb8\x01\t\x18\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xb8\x01\ - \x1b\x1c\n\x81\x02\n\x04\x04\x05\x02\x02\x12\x04\xbe\x01\x02&\x1a\xf2\ - \x01\x20Only\x20allows\x20requests\x20from\x20devices\x20with\x20a\x20ve\ - rified\x20Chrome\x20OS.\n\x20Verifications\x20includes\x20requirements\ - \x20that\x20the\x20device\x20is\x20enterprise-managed,\n\x20conformant\ - \x20to\x20domain\x20policies,\x20and\x20the\x20caller\x20has\x20permissi\ - on\x20to\x20call\n\x20the\x20API\x20targeted\x20by\x20the\x20request.\n\ - \n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\xbe\x01\x02\x06\n\r\n\x05\x04\x05\ - \x02\x02\x01\x12\x04\xbe\x01\x07!\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\ - \xbe\x01$%b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/access_policy.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/access_policy.rs deleted file mode 100644 index eb2849b..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/access_policy.rs +++ /dev/null @@ -1,576 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/v1/access_policy.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct AccessPolicy { - // message fields - pub name: ::std::string::String, - pub parent: ::std::string::String, - pub title: ::std::string::String, - pub scopes: ::protobuf::RepeatedField<::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub etag: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AccessPolicy { - fn default() -> &'a AccessPolicy { - ::default_instance() - } -} - -impl AccessPolicy { - pub fn new() -> AccessPolicy { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string parent = 2; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string title = 3; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // repeated string scopes = 7; - - - pub fn get_scopes(&self) -> &[::std::string::String] { - &self.scopes - } - pub fn clear_scopes(&mut self) { - self.scopes.clear(); - } - - // Param is passed by value, moved - pub fn set_scopes(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.scopes = v; - } - - // Mutable pointer to the field. - pub fn mut_scopes(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.scopes - } - - // Take field - pub fn take_scopes(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.scopes, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string etag = 6; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for AccessPolicy { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 7 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.scopes)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.parent); - } - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.title); - } - for value in &self.scopes { - my_size += ::protobuf::rt::string_size(7, &value); - }; - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.etag); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.parent.is_empty() { - os.write_string(2, &self.parent)?; - } - if !self.title.is_empty() { - os.write_string(3, &self.title)?; - } - for v in &self.scopes { - os.write_string(7, &v)?; - }; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.etag.is_empty() { - os.write_string(6, &self.etag)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AccessPolicy { - AccessPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &AccessPolicy| { &m.name }, - |m: &mut AccessPolicy| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &AccessPolicy| { &m.parent }, - |m: &mut AccessPolicy| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &AccessPolicy| { &m.title }, - |m: &mut AccessPolicy| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "scopes", - |m: &AccessPolicy| { &m.scopes }, - |m: &mut AccessPolicy| { &mut m.scopes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &AccessPolicy| { &m.create_time }, - |m: &mut AccessPolicy| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &AccessPolicy| { &m.update_time }, - |m: &mut AccessPolicy| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &AccessPolicy| { &m.etag }, - |m: &mut AccessPolicy| { &mut m.etag }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AccessPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AccessPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AccessPolicy::new) - } -} - -impl ::protobuf::Clear for AccessPolicy { - fn clear(&mut self) { - self.name.clear(); - self.parent.clear(); - self.title.clear(); - self.scopes.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.etag.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AccessPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AccessPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n;google/identity/accesscontextmanager/v1/access_policy.proto\x12'googl\ - e.identity.accesscontextmanager.v1\x1a\x19google/api/resource.proto\x1a\ - \x1fgoogle/protobuf/timestamp.proto\"\xcd\x02\n\x0cAccessPolicy\x12\x12\ - \n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\x06parent\x18\x02\x20\ - \x01(\tR\x06parent\x12\x14\n\x05title\x18\x03\x20\x01(\tR\x05title\x12\ - \x16\n\x06scopes\x18\x07\x20\x03(\tR\x06scopes\x12;\n\x0bcreate_time\x18\ - \x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0b\ - update_time\x18\x05\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\nupdate\ - Time\x12\x12\n\x04etag\x18\x06\x20\x01(\tR\x04etag:U\xeaAR\n0accessconte\ - xtmanager.googleapis.com/AccessPolicy\x12\x1eaccessPolicies/{access_poli\ - cy}B\xa2\x02\n+com.google.identity.accesscontextmanager.v1B\x0bPolicyPro\ - toP\x01Z\\cloud.google.com/go/accesscontextmanager/apiv1/accesscontextma\ - nagerpb;accesscontextmanagerpb\xa2\x02\x04GACM\xaa\x02'Google.Identity.A\ - ccessContextManager.V1\xca\x02'Google\\Identity\\AccessContextManager\\V\ - 1\xea\x02*Google::Identity::AccessContextManager::V1J\xdc\x18\n\x06\x12\ - \x04\x0e\0P\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyri\ - ght\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\ - \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ - \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ - the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ - icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ - SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ - eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\00\n\t\ - \n\x02\x03\0\x12\x03\x12\0#\n\t\n\x02\x03\x01\x12\x03\x13\0)\n\x08\n\x01\ - \x08\x12\x03\x15\0D\n\t\n\x02\x08%\x12\x03\x15\0D\n\x08\n\x01\x08\x12\ - \x03\x16\0s\n\t\n\x02\x08\x0b\x12\x03\x16\0s\n\x08\n\x01\x08\x12\x03\x17\ - \0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0,\n\t\ - \n\x02\x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\x12\x03\x19\0D\n\t\n\x02\ - \x08\x01\x12\x03\x19\0D\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\ - \x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0D\n\t\n\x02\x08)\x12\x03\ - \x1b\0D\n\x08\n\x01\x08\x12\x03\x1c\0C\n\t\n\x02\x08-\x12\x03\x1c\0C\n\ - \xfd\x02\n\x02\x04\0\x12\x04#\0P\x01\x1a\xf0\x02\x20`AccessPolicy`\x20is\ - \x20a\x20container\x20for\x20`AccessLevels`\x20(which\x20define\x20the\ - \x20necessary\n\x20attributes\x20to\x20use\x20Google\x20Cloud\x20service\ - s)\x20and\x20`ServicePerimeters`\x20(which\n\x20define\x20regions\x20of\ - \x20services\x20able\x20to\x20freely\x20pass\x20data\x20within\x20a\x20p\ - erimeter).\x20An\n\x20access\x20policy\x20is\x20globally\x20visible\x20w\ - ithin\x20an\x20organization,\x20and\x20the\n\x20restrictions\x20it\x20sp\ - ecifies\x20apply\x20to\x20all\x20projects\x20within\x20an\x20organizatio\ - n.\n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x14\n\x0b\n\x03\x04\0\x07\x12\x04$\ - \x02'\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04$\x02'\x04\nj\n\x04\x04\0\ - \x02\0\x12\x03+\x02\x12\x1a]\x20Output\x20only.\x20Resource\x20name\x20o\ - f\x20the\x20`AccessPolicy`.\x20Format:\n\x20`accessPolicies/{access_poli\ - cy}`\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03+\x02\x08\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03+\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+\x10\x11\n\ - \xaa\x01\n\x04\x04\0\x02\x01\x12\x030\x02\x14\x1a\x9c\x01\x20Required.\ - \x20The\x20parent\x20of\x20this\x20`AccessPolicy`\x20in\x20the\x20Cloud\ - \x20Resource\n\x20Hierarchy.\x20Currently\x20immutable\x20once\x20create\ - d.\x20Format:\n\x20`organizations/{organization_id}`\n\n\x0c\n\x05\x04\0\ - \x02\x01\x05\x12\x030\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x030\t\ - \x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x030\x12\x13\nH\n\x04\x04\0\x02\ - \x02\x12\x033\x02\x13\x1a;\x20Required.\x20Human\x20readable\x20title.\ - \x20Does\x20not\x20affect\x20behavior.\n\n\x0c\n\x05\x04\0\x02\x02\x05\ - \x12\x033\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x033\t\x0e\n\x0c\n\ - \x05\x04\0\x02\x02\x03\x12\x033\x11\x12\n\xcb\x06\n\x04\x04\0\x02\x03\ - \x12\x03C\x02\x1d\x1a\xbd\x06\x20The\x20scopes\x20of\x20a\x20policy\x20d\ - efine\x20which\x20resources\x20an\x20ACM\x20policy\x20can\x20restrict,\n\ - \x20and\x20where\x20ACM\x20resources\x20can\x20be\x20referenced.\n\x20Fo\ - r\x20example,\x20a\x20policy\x20with\x20scopes=[\"folders/123\"]\x20has\ - \x20the\x20following\n\x20behavior:\n\x20-\x20vpcsc\x20perimeters\x20can\ - \x20only\x20restrict\x20projects\x20within\x20folders/123\n\x20-\x20acce\ - ss\x20levels\x20can\x20only\x20be\x20referenced\x20by\x20resources\x20wi\ - thin\x20folders/123.\n\x20If\x20empty,\x20there\x20are\x20no\x20limitati\ - ons\x20on\x20which\x20resources\x20can\x20be\x20restricted\x20by\n\x20an\ - \x20ACM\x20policy,\x20and\x20there\x20are\x20no\x20limitations\x20on\x20\ - where\x20ACM\x20resources\x20can\x20be\n\x20referenced.\n\x20Only\x20one\ - \x20policy\x20can\x20include\x20a\x20given\x20scope\x20(attempting\x20to\ - \x20create\x20a\x20second\n\x20policy\x20which\x20includes\x20\"folders/\ - 123\"\x20will\x20result\x20in\x20an\x20error).\n\x20Currently,\x20scopes\ - \x20cannot\x20be\x20modified\x20after\x20a\x20policy\x20is\x20created.\n\ - \x20Currently,\x20policies\x20can\x20only\x20have\x20a\x20single\x20scop\ - e.\n\x20Format:\x20list\x20of\x20`folders/{folder_number}`\x20or\x20`pro\ - jects/{project_number}`\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03C\x02\n\n\ - \x0c\n\x05\x04\0\x02\x03\x05\x12\x03C\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\ - \x01\x12\x03C\x12\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03C\x1b\x1c\nG\ - \n\x04\x04\0\x02\x04\x12\x03F\x02,\x1a:\x20Output\x20only.\x20Time\x20th\ - e\x20`AccessPolicy`\x20was\x20created\x20in\x20UTC.\n\n\x0c\n\x05\x04\0\ - \x02\x04\x06\x12\x03F\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03F\x1c\ - '\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03F*+\nG\n\x04\x04\0\x02\x05\x12\ - \x03I\x02,\x1a:\x20Output\x20only.\x20Time\x20the\x20`AccessPolicy`\x20w\ - as\x20updated\x20in\x20UTC.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03I\x02\ - \x1b\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03I\x1c'\n\x0c\n\x05\x04\0\x02\ - \x05\x03\x12\x03I*+\n\xab\x02\n\x04\x04\0\x02\x06\x12\x03O\x02\x12\x1a\ - \x9d\x02\x20Output\x20only.\x20An\x20opaque\x20identifier\x20for\x20the\ - \x20current\x20version\x20of\x20the\n\x20`AccessPolicy`.\x20This\x20will\ - \x20always\x20be\x20a\x20strongly\x20validated\x20etag,\x20meaning\x20th\ - at\n\x20two\x20Access\x20Polices\x20will\x20be\x20identical\x20if\x20and\ - \x20only\x20if\x20their\x20etags\x20are\n\x20identical.\x20Clients\x20sh\ - ould\x20not\x20expect\x20this\x20to\x20be\x20in\x20any\x20specific\x20fo\ - rmat.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03O\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x06\x01\x12\x03O\t\r\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03O\x10\x11\ - b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/gcp_user_access_binding.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/gcp_user_access_binding.rs deleted file mode 100644 index 1332f1b..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/gcp_user_access_binding.rs +++ /dev/null @@ -1,355 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/v1/gcp_user_access_binding.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct GcpUserAccessBinding { - // message fields - pub name: ::std::string::String, - pub group_key: ::std::string::String, - pub access_levels: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GcpUserAccessBinding { - fn default() -> &'a GcpUserAccessBinding { - ::default_instance() - } -} - -impl GcpUserAccessBinding { - pub fn new() -> GcpUserAccessBinding { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string group_key = 2; - - - pub fn get_group_key(&self) -> &str { - &self.group_key - } - pub fn clear_group_key(&mut self) { - self.group_key.clear(); - } - - // Param is passed by value, moved - pub fn set_group_key(&mut self, v: ::std::string::String) { - self.group_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_group_key(&mut self) -> &mut ::std::string::String { - &mut self.group_key - } - - // Take field - pub fn take_group_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.group_key, ::std::string::String::new()) - } - - // repeated string access_levels = 3; - - - pub fn get_access_levels(&self) -> &[::std::string::String] { - &self.access_levels - } - pub fn clear_access_levels(&mut self) { - self.access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_access_levels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_access_levels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.access_levels - } - - // Take field - pub fn take_access_levels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.access_levels, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for GcpUserAccessBinding { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.group_key)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.access_levels)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.group_key.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.group_key); - } - for value in &self.access_levels { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.group_key.is_empty() { - os.write_string(2, &self.group_key)?; - } - for v in &self.access_levels { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GcpUserAccessBinding { - GcpUserAccessBinding::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GcpUserAccessBinding| { &m.name }, - |m: &mut GcpUserAccessBinding| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "group_key", - |m: &GcpUserAccessBinding| { &m.group_key }, - |m: &mut GcpUserAccessBinding| { &mut m.group_key }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_levels", - |m: &GcpUserAccessBinding| { &m.access_levels }, - |m: &mut GcpUserAccessBinding| { &mut m.access_levels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GcpUserAccessBinding", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GcpUserAccessBinding { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GcpUserAccessBinding::new) - } -} - -impl ::protobuf::Clear for GcpUserAccessBinding { - fn clear(&mut self) { - self.name.clear(); - self.group_key.clear(); - self.access_levels.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GcpUserAccessBinding { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GcpUserAccessBinding { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nEgoogle/identity/accesscontextmanager/v1/gcp_user_access_binding.proto\ - \x12'google.identity.accesscontextmanager.v1\x1a\x1fgoogle/api/field_beh\ - avior.proto\x1a\x19google/api/resource.proto\"\xc1\x02\n\x14GcpUserAcces\ - sBinding\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x05\x12\ - #\n\tgroup_key\x18\x02\x20\x01(\tR\x08groupKeyB\x06\xe0A\x02\xe0A\x05\ - \x12\\\n\raccess_levels\x18\x03\x20\x03(\tR\x0caccessLevelsB7\xfaA1\n/ac\ - cesscontextmanager.googleapis.com/AccessLevel\xe0A\x02:\x8c\x01\xeaA\x88\ - \x01\n8accesscontextmanager.googleapis.com/GcpUserAccessBinding\x12Lorga\ - nizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}\ - B\xb0\x02\n+com.google.identity.accesscontextmanager.v1B\x19GcpUserAcces\ - sBindingProtoP\x01Z\\cloud.google.com/go/accesscontextmanager/apiv1/acce\ - sscontextmanagerpb;accesscontextmanagerpb\xa2\x02\x04GACM\xaa\x02'Google\ - .Identity.AccessContextManager.V1\xca\x02'Google\\Identity\\AccessContex\ - tManager\\V1\xea\x02*Google::Identity::AccessContextManager::V1J\xe1\x11\ - \n\x06\x12\x04\x0e\0C\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ - \x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ - \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ - ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ - \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ - \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ - censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ - \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ - \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ - IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ - NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ - cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ - \x12\x03\x10\00\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\ - \x13\0#\n\x08\n\x01\x08\x12\x03\x15\0D\n\t\n\x02\x08%\x12\x03\x15\0D\n\ - \x08\n\x01\x08\x12\x03\x16\0s\n\t\n\x02\x08\x0b\x12\x03\x16\0s\n\x08\n\ - \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\ - \x12\x03\x18\0:\n\t\n\x02\x08\x08\x12\x03\x18\0:\n\x08\n\x01\x08\x12\x03\ - \x19\0D\n\t\n\x02\x08\x01\x12\x03\x19\0D\n\x08\n\x01\x08\x12\x03\x1a\0\"\ - \n\t\n\x02\x08$\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0D\n\t\n\x02\ - \x08)\x12\x03\x1b\0D\n\x08\n\x01\x08\x12\x03\x1c\0C\n\t\n\x02\x08-\x12\ - \x03\x1c\0C\nu\n\x02\x04\0\x12\x04\x20\0C\x01\x1ai\x20Restricts\x20acces\ - s\x20to\x20Cloud\x20Console\x20and\x20Google\x20Cloud\x20APIs\x20for\x20\ - a\x20set\x20of\x20users\n\x20using\x20Context-Aware\x20Access.\n\n\n\n\ - \x03\x04\0\x01\x12\x03\x20\x08\x1c\n\x0b\n\x03\x04\0\x07\x12\x04!\x02$\ - \x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04!\x02$\x04\n\xe6\x02\n\x04\x04\0\ - \x02\0\x12\x03+\x02<\x1a\xd8\x02\x20Immutable.\x20Assigned\x20by\x20the\ - \x20server\x20during\x20creation.\x20The\x20last\x20segment\x20has\x20an\ - \x20arbitrary\n\x20length\x20and\x20has\x20only\x20URI\x20unreserved\x20\ - characters\x20(as\x20defined\x20by\n\x20[RFC\x203986\x20Section\x202.3](\ - https://tools.ietf.org/html/rfc3986#section-2.3)).\n\x20Should\x20not\ - \x20be\x20specified\x20by\x20the\x20client\x20during\x20creation.\n\x20E\ - xample:\x20\"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\"\n\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03+\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03+\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+\x10\x11\n\x0c\n\x05\ - \x04\0\x02\0\x08\x12\x03+\x12;\n\x0f\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\ - \x03+\x13:\n\xc1\x03\n\x04\x04\0\x02\x01\x12\x044\x027\x04\x1a\xb2\x03\ - \x20Required.\x20Immutable.\x20Google\x20Group\x20id\x20whose\x20members\ - \x20are\x20subject\x20to\x20this\x20binding's\x20restrictions.\n\x20See\ - \x20\"id\"\x20in\x20the\x20[G\x20Suite\x20Directory\x20API's\x20Groups\ - \x20resource]\n\x20(https://developers.google.com/admin-sdk/directory/v1\ - /reference/groups#resource).\n\x20If\x20a\x20group's\x20email\x20address\ - /alias\x20is\x20changed,\x20this\x20resource\x20will\x20continue\n\x20to\ - \x20point\x20at\x20the\x20changed\x20group.\x20This\x20field\x20does\x20\ - not\x20accept\x20group\x20email\n\x20addresses\x20or\x20aliases.\n\x20Ex\ - ample:\x20\"01d520gv4vjcrht\"\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x034\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x034\t\x12\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x034\x15\x16\n\r\n\x05\x04\0\x02\x01\x08\x12\x044\x177\ - \x03\n\x0f\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x035\x04*\n\x0f\n\x08\ - \x04\0\x02\x01\x08\x9c\x08\x01\x12\x036\x04+\n\xf6\x01\n\x04\x04\0\x02\ - \x02\x12\x04=\x02B\x04\x1a\xe7\x01\x20Required.\x20Access\x20level\x20th\ - at\x20a\x20user\x20must\x20have\x20to\x20be\x20granted\x20access.\x20Onl\ - y\x20one\x20access\n\x20level\x20is\x20supported,\x20not\x20multiple.\ - \x20This\x20repeated\x20field\x20must\x20have\x20exactly\n\x20one\x20ele\ - ment.\n\x20Example:\x20\"accessPolicies/9522/accessLevels/device_trusted\ - \"\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03=\x02\n\n\x0c\n\x05\x04\0\x02\ - \x02\x05\x12\x03=\x0b\x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03=\x12\x1f\ - \n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03=\"#\n\r\n\x05\x04\0\x02\x02\x08\ - \x12\x04=$B\x03\n\x0f\n\x08\x04\0\x02\x02\x08\x9c\x08\0\x12\x03>\x04*\n\ - \x0f\n\x07\x04\0\x02\x02\x08\x9f\x08\x12\x04?\x04A\x05b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/mod.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/mod.rs index 37aad08..f39bb49 100644 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/mod.rs +++ b/googleapis-raw/src/identity/accesscontextmanager/v1/mod.rs @@ -1,14 +1 @@ -pub use crate::{ - longrunning::operations, - iam::v1::iam_policy, - iam::v1::policy, - r#type::expr, - identity::accesscontextmanager::r#type::device_resources, -}; - -pub mod access_context_manager; -pub mod access_context_manager_grpc; -pub mod access_level; -pub mod access_policy; -pub mod gcp_user_access_binding; -pub mod service_perimeter; +pub use crate::{iam::v1::iam_policy, iam::v1::policy, longrunning::operations, r#type::expr}; diff --git a/googleapis-raw/src/identity/accesscontextmanager/v1/service_perimeter.rs b/googleapis-raw/src/identity/accesscontextmanager/v1/service_perimeter.rs deleted file mode 100644 index ec081a6..0000000 --- a/googleapis-raw/src/identity/accesscontextmanager/v1/service_perimeter.rs +++ /dev/null @@ -1,3968 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/identity/accesscontextmanager/v1/service_perimeter.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeter { - // message fields - pub name: ::std::string::String, - pub title: ::std::string::String, - pub description: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub perimeter_type: ServicePerimeter_PerimeterType, - pub status: ::protobuf::SingularPtrField, - pub spec: ::protobuf::SingularPtrField, - pub use_explicit_dry_run_spec: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeter { - fn default() -> &'a ServicePerimeter { - ::default_instance() - } -} - -impl ServicePerimeter { - pub fn new() -> ServicePerimeter { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string title = 2; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 5; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeter.PerimeterType perimeter_type = 6; - - - pub fn get_perimeter_type(&self) -> ServicePerimeter_PerimeterType { - self.perimeter_type - } - pub fn clear_perimeter_type(&mut self) { - self.perimeter_type = ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR; - } - - // Param is passed by value, moved - pub fn set_perimeter_type(&mut self, v: ServicePerimeter_PerimeterType) { - self.perimeter_type = v; - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig status = 7; - - - pub fn get_status(&self) -> &ServicePerimeterConfig { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: ServicePerimeterConfig) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut ServicePerimeterConfig { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> ServicePerimeterConfig { - self.status.take().unwrap_or_else(|| ServicePerimeterConfig::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig spec = 8; - - - pub fn get_spec(&self) -> &ServicePerimeterConfig { - self.spec.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_spec(&mut self) { - self.spec.clear(); - } - - pub fn has_spec(&self) -> bool { - self.spec.is_some() - } - - // Param is passed by value, moved - pub fn set_spec(&mut self, v: ServicePerimeterConfig) { - self.spec = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_spec(&mut self) -> &mut ServicePerimeterConfig { - if self.spec.is_none() { - self.spec.set_default(); - } - self.spec.as_mut().unwrap() - } - - // Take field - pub fn take_spec(&mut self) -> ServicePerimeterConfig { - self.spec.take().unwrap_or_else(|| ServicePerimeterConfig::new()) - } - - // bool use_explicit_dry_run_spec = 9; - - - pub fn get_use_explicit_dry_run_spec(&self) -> bool { - self.use_explicit_dry_run_spec - } - pub fn clear_use_explicit_dry_run_spec(&mut self) { - self.use_explicit_dry_run_spec = false; - } - - // Param is passed by value, moved - pub fn set_use_explicit_dry_run_spec(&mut self, v: bool) { - self.use_explicit_dry_run_spec = v; - } -} - -impl ::protobuf::Message for ServicePerimeter { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; - for v in &self.spec { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.perimeter_type, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.spec)?; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.use_explicit_dry_run_spec = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.title.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.title); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.perimeter_type != ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR { - my_size += ::protobuf::rt::enum_size(6, self.perimeter_type); - } - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.spec.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.use_explicit_dry_run_spec != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.title.is_empty() { - os.write_string(2, &self.title)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.perimeter_type != ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.perimeter_type))?; - } - if let Some(ref v) = self.status.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.spec.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.use_explicit_dry_run_spec != false { - os.write_bool(9, self.use_explicit_dry_run_spec)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeter { - ServicePerimeter::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ServicePerimeter| { &m.name }, - |m: &mut ServicePerimeter| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &ServicePerimeter| { &m.title }, - |m: &mut ServicePerimeter| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &ServicePerimeter| { &m.description }, - |m: &mut ServicePerimeter| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &ServicePerimeter| { &m.create_time }, - |m: &mut ServicePerimeter| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &ServicePerimeter| { &m.update_time }, - |m: &mut ServicePerimeter| { &mut m.update_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "perimeter_type", - |m: &ServicePerimeter| { &m.perimeter_type }, - |m: &mut ServicePerimeter| { &mut m.perimeter_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &ServicePerimeter| { &m.status }, - |m: &mut ServicePerimeter| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "spec", - |m: &ServicePerimeter| { &m.spec }, - |m: &mut ServicePerimeter| { &mut m.spec }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "use_explicit_dry_run_spec", - |m: &ServicePerimeter| { &m.use_explicit_dry_run_spec }, - |m: &mut ServicePerimeter| { &mut m.use_explicit_dry_run_spec }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeter", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeter { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeter::new) - } -} - -impl ::protobuf::Clear for ServicePerimeter { - fn clear(&mut self) { - self.name.clear(); - self.title.clear(); - self.description.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.perimeter_type = ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR; - self.status.clear(); - self.spec.clear(); - self.use_explicit_dry_run_spec = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeter { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeter { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ServicePerimeter_PerimeterType { - PERIMETER_TYPE_REGULAR = 0, - PERIMETER_TYPE_BRIDGE = 1, -} - -impl ::protobuf::ProtobufEnum for ServicePerimeter_PerimeterType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR), - 1 => ::std::option::Option::Some(ServicePerimeter_PerimeterType::PERIMETER_TYPE_BRIDGE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ServicePerimeter_PerimeterType] = &[ - ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR, - ServicePerimeter_PerimeterType::PERIMETER_TYPE_BRIDGE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ServicePerimeter.PerimeterType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ServicePerimeter_PerimeterType { -} - -impl ::std::default::Default for ServicePerimeter_PerimeterType { - fn default() -> Self { - ServicePerimeter_PerimeterType::PERIMETER_TYPE_REGULAR - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeter_PerimeterType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig { - // message fields - pub resources: ::protobuf::RepeatedField<::std::string::String>, - pub access_levels: ::protobuf::RepeatedField<::std::string::String>, - pub restricted_services: ::protobuf::RepeatedField<::std::string::String>, - pub vpc_accessible_services: ::protobuf::SingularPtrField, - pub ingress_policies: ::protobuf::RepeatedField, - pub egress_policies: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig { - fn default() -> &'a ServicePerimeterConfig { - ::default_instance() - } -} - -impl ServicePerimeterConfig { - pub fn new() -> ServicePerimeterConfig { - ::std::default::Default::default() - } - - // repeated string resources = 1; - - - pub fn get_resources(&self) -> &[::std::string::String] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } - - // repeated string access_levels = 2; - - - pub fn get_access_levels(&self) -> &[::std::string::String] { - &self.access_levels - } - pub fn clear_access_levels(&mut self) { - self.access_levels.clear(); - } - - // Param is passed by value, moved - pub fn set_access_levels(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.access_levels = v; - } - - // Mutable pointer to the field. - pub fn mut_access_levels(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.access_levels - } - - // Take field - pub fn take_access_levels(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.access_levels, ::protobuf::RepeatedField::new()) - } - - // repeated string restricted_services = 4; - - - pub fn get_restricted_services(&self) -> &[::std::string::String] { - &self.restricted_services - } - pub fn clear_restricted_services(&mut self) { - self.restricted_services.clear(); - } - - // Param is passed by value, moved - pub fn set_restricted_services(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.restricted_services = v; - } - - // Mutable pointer to the field. - pub fn mut_restricted_services(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.restricted_services - } - - // Take field - pub fn take_restricted_services(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.restricted_services, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices vpc_accessible_services = 10; - - - pub fn get_vpc_accessible_services(&self) -> &ServicePerimeterConfig_VpcAccessibleServices { - self.vpc_accessible_services.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_vpc_accessible_services(&mut self) { - self.vpc_accessible_services.clear(); - } - - pub fn has_vpc_accessible_services(&self) -> bool { - self.vpc_accessible_services.is_some() - } - - // Param is passed by value, moved - pub fn set_vpc_accessible_services(&mut self, v: ServicePerimeterConfig_VpcAccessibleServices) { - self.vpc_accessible_services = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_vpc_accessible_services(&mut self) -> &mut ServicePerimeterConfig_VpcAccessibleServices { - if self.vpc_accessible_services.is_none() { - self.vpc_accessible_services.set_default(); - } - self.vpc_accessible_services.as_mut().unwrap() - } - - // Take field - pub fn take_vpc_accessible_services(&mut self) -> ServicePerimeterConfig_VpcAccessibleServices { - self.vpc_accessible_services.take().unwrap_or_else(|| ServicePerimeterConfig_VpcAccessibleServices::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy ingress_policies = 8; - - - pub fn get_ingress_policies(&self) -> &[ServicePerimeterConfig_IngressPolicy] { - &self.ingress_policies - } - pub fn clear_ingress_policies(&mut self) { - self.ingress_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_ingress_policies(&mut self, v: ::protobuf::RepeatedField) { - self.ingress_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_ingress_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ingress_policies - } - - // Take field - pub fn take_ingress_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ingress_policies, ::protobuf::RepeatedField::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy egress_policies = 9; - - - pub fn get_egress_policies(&self) -> &[ServicePerimeterConfig_EgressPolicy] { - &self.egress_policies - } - pub fn clear_egress_policies(&mut self) { - self.egress_policies.clear(); - } - - // Param is passed by value, moved - pub fn set_egress_policies(&mut self, v: ::protobuf::RepeatedField) { - self.egress_policies = v; - } - - // Mutable pointer to the field. - pub fn mut_egress_policies(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.egress_policies - } - - // Take field - pub fn take_egress_policies(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.egress_policies, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig { - fn is_initialized(&self) -> bool { - for v in &self.vpc_accessible_services { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ingress_policies { - if !v.is_initialized() { - return false; - } - }; - for v in &self.egress_policies { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.resources)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.access_levels)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.restricted_services)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.vpc_accessible_services)?; - }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ingress_policies)?; - }, - 9 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.egress_policies)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.resources { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.access_levels { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.restricted_services { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if let Some(ref v) = self.vpc_accessible_services.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.ingress_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.egress_policies { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.resources { - os.write_string(1, &v)?; - }; - for v in &self.access_levels { - os.write_string(2, &v)?; - }; - for v in &self.restricted_services { - os.write_string(4, &v)?; - }; - if let Some(ref v) = self.vpc_accessible_services.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.ingress_policies { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.egress_policies { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig { - ServicePerimeterConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resources", - |m: &ServicePerimeterConfig| { &m.resources }, - |m: &mut ServicePerimeterConfig| { &mut m.resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "access_levels", - |m: &ServicePerimeterConfig| { &m.access_levels }, - |m: &mut ServicePerimeterConfig| { &mut m.access_levels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "restricted_services", - |m: &ServicePerimeterConfig| { &m.restricted_services }, - |m: &mut ServicePerimeterConfig| { &mut m.restricted_services }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "vpc_accessible_services", - |m: &ServicePerimeterConfig| { &m.vpc_accessible_services }, - |m: &mut ServicePerimeterConfig| { &mut m.vpc_accessible_services }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ingress_policies", - |m: &ServicePerimeterConfig| { &m.ingress_policies }, - |m: &mut ServicePerimeterConfig| { &mut m.ingress_policies }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "egress_policies", - |m: &ServicePerimeterConfig| { &m.egress_policies }, - |m: &mut ServicePerimeterConfig| { &mut m.egress_policies }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig { - fn clear(&mut self) { - self.resources.clear(); - self.access_levels.clear(); - self.restricted_services.clear(); - self.vpc_accessible_services.clear(); - self.ingress_policies.clear(); - self.egress_policies.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_VpcAccessibleServices { - // message fields - pub enable_restriction: bool, - pub allowed_services: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_VpcAccessibleServices { - fn default() -> &'a ServicePerimeterConfig_VpcAccessibleServices { - ::default_instance() - } -} - -impl ServicePerimeterConfig_VpcAccessibleServices { - pub fn new() -> ServicePerimeterConfig_VpcAccessibleServices { - ::std::default::Default::default() - } - - // bool enable_restriction = 1; - - - pub fn get_enable_restriction(&self) -> bool { - self.enable_restriction - } - pub fn clear_enable_restriction(&mut self) { - self.enable_restriction = false; - } - - // Param is passed by value, moved - pub fn set_enable_restriction(&mut self, v: bool) { - self.enable_restriction = v; - } - - // repeated string allowed_services = 2; - - - pub fn get_allowed_services(&self) -> &[::std::string::String] { - &self.allowed_services - } - pub fn clear_allowed_services(&mut self) { - self.allowed_services.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_services(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_services = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_services(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_services - } - - // Take field - pub fn take_allowed_services(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_services, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_VpcAccessibleServices { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enable_restriction = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_services)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.enable_restriction != false { - my_size += 2; - } - for value in &self.allowed_services { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.enable_restriction != false { - os.write_bool(1, self.enable_restriction)?; - } - for v in &self.allowed_services { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_VpcAccessibleServices { - ServicePerimeterConfig_VpcAccessibleServices::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enable_restriction", - |m: &ServicePerimeterConfig_VpcAccessibleServices| { &m.enable_restriction }, - |m: &mut ServicePerimeterConfig_VpcAccessibleServices| { &mut m.enable_restriction }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_services", - |m: &ServicePerimeterConfig_VpcAccessibleServices| { &m.allowed_services }, - |m: &mut ServicePerimeterConfig_VpcAccessibleServices| { &mut m.allowed_services }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.VpcAccessibleServices", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_VpcAccessibleServices { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_VpcAccessibleServices::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_VpcAccessibleServices { - fn clear(&mut self) { - self.enable_restriction = false; - self.allowed_services.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_VpcAccessibleServices { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_VpcAccessibleServices { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_MethodSelector { - // message oneof groups - pub kind: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_MethodSelector { - fn default() -> &'a ServicePerimeterConfig_MethodSelector { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ServicePerimeterConfig_MethodSelector_oneof_kind { - method(::std::string::String), - permission(::std::string::String), -} - -impl ServicePerimeterConfig_MethodSelector { - pub fn new() -> ServicePerimeterConfig_MethodSelector { - ::std::default::Default::default() - } - - // string method = 1; - - - pub fn get_method(&self) -> &str { - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(ref v)) => v, - _ => "", - } - } - pub fn clear_method(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_method(&self) -> bool { - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_method(&mut self, v: ::std::string::String) { - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(v)) - } - - // Mutable pointer to the field. - pub fn mut_method(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(::std::string::String::new())); - } - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_method(&mut self) -> ::std::string::String { - if self.has_method() { - match self.kind.take() { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string permission = 2; - - - pub fn get_permission(&self) -> &str { - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(ref v)) => v, - _ => "", - } - } - pub fn clear_permission(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_permission(&self) -> bool { - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_permission(&mut self, v: ::std::string::String) { - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(v)) - } - - // Mutable pointer to the field. - pub fn mut_permission(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(::std::string::String::new())); - } - match self.kind { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_permission(&mut self) -> ::std::string::String { - if self.has_permission() { - match self.kind.take() { - ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_MethodSelector { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::method(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(ServicePerimeterConfig_MethodSelector_oneof_kind::permission(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &ServicePerimeterConfig_MethodSelector_oneof_kind::method(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &ServicePerimeterConfig_MethodSelector_oneof_kind::permission(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &ServicePerimeterConfig_MethodSelector_oneof_kind::method(ref v) => { - os.write_string(1, v)?; - }, - &ServicePerimeterConfig_MethodSelector_oneof_kind::permission(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_MethodSelector { - ServicePerimeterConfig_MethodSelector::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "method", - ServicePerimeterConfig_MethodSelector::has_method, - ServicePerimeterConfig_MethodSelector::get_method, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "permission", - ServicePerimeterConfig_MethodSelector::has_permission, - ServicePerimeterConfig_MethodSelector::get_permission, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.MethodSelector", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_MethodSelector { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_MethodSelector::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_MethodSelector { - fn clear(&mut self) { - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_MethodSelector { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_MethodSelector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_ApiOperation { - // message fields - pub service_name: ::std::string::String, - pub method_selectors: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_ApiOperation { - fn default() -> &'a ServicePerimeterConfig_ApiOperation { - ::default_instance() - } -} - -impl ServicePerimeterConfig_ApiOperation { - pub fn new() -> ServicePerimeterConfig_ApiOperation { - ::std::default::Default::default() - } - - // string service_name = 1; - - - pub fn get_service_name(&self) -> &str { - &self.service_name - } - pub fn clear_service_name(&mut self) { - self.service_name.clear(); - } - - // Param is passed by value, moved - pub fn set_service_name(&mut self, v: ::std::string::String) { - self.service_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_name(&mut self) -> &mut ::std::string::String { - &mut self.service_name - } - - // Take field - pub fn take_service_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_name, ::std::string::String::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2; - - - pub fn get_method_selectors(&self) -> &[ServicePerimeterConfig_MethodSelector] { - &self.method_selectors - } - pub fn clear_method_selectors(&mut self) { - self.method_selectors.clear(); - } - - // Param is passed by value, moved - pub fn set_method_selectors(&mut self, v: ::protobuf::RepeatedField) { - self.method_selectors = v; - } - - // Mutable pointer to the field. - pub fn mut_method_selectors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.method_selectors - } - - // Take field - pub fn take_method_selectors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.method_selectors, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_ApiOperation { - fn is_initialized(&self) -> bool { - for v in &self.method_selectors { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.method_selectors)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.service_name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_name); - } - for value in &self.method_selectors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.service_name.is_empty() { - os.write_string(1, &self.service_name)?; - } - for v in &self.method_selectors { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_ApiOperation { - ServicePerimeterConfig_ApiOperation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_name", - |m: &ServicePerimeterConfig_ApiOperation| { &m.service_name }, - |m: &mut ServicePerimeterConfig_ApiOperation| { &mut m.service_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "method_selectors", - |m: &ServicePerimeterConfig_ApiOperation| { &m.method_selectors }, - |m: &mut ServicePerimeterConfig_ApiOperation| { &mut m.method_selectors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.ApiOperation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_ApiOperation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_ApiOperation::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_ApiOperation { - fn clear(&mut self) { - self.service_name.clear(); - self.method_selectors.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_ApiOperation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_ApiOperation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_IngressSource { - // message oneof groups - pub source: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_IngressSource { - fn default() -> &'a ServicePerimeterConfig_IngressSource { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ServicePerimeterConfig_IngressSource_oneof_source { - access_level(::std::string::String), - resource(::std::string::String), -} - -impl ServicePerimeterConfig_IngressSource { - pub fn new() -> ServicePerimeterConfig_IngressSource { - ::std::default::Default::default() - } - - // string access_level = 1; - - - pub fn get_access_level(&self) -> &str { - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(ref v)) => v, - _ => "", - } - } - pub fn clear_access_level(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_access_level(&self) -> bool { - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_access_level(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(v)) - } - - // Mutable pointer to the field. - pub fn mut_access_level(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_access_level(&mut self) -> ::std::string::String { - if self.has_access_level() { - match self.source.take() { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // string resource = 2; - - - pub fn get_resource(&self) -> &str { - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(ref v)) => v, - _ => "", - } - } - pub fn clear_resource(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_resource(&self) -> bool { - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_resource(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(v)) - } - - // Mutable pointer to the field. - pub fn mut_resource(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_resource(&mut self) -> ::std::string::String { - if self.has_resource() { - match self.source.take() { - ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_IngressSource { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::access_level(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(ServicePerimeterConfig_IngressSource_oneof_source::resource(is.read_string()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &ServicePerimeterConfig_IngressSource_oneof_source::access_level(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &ServicePerimeterConfig_IngressSource_oneof_source::resource(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &ServicePerimeterConfig_IngressSource_oneof_source::access_level(ref v) => { - os.write_string(1, v)?; - }, - &ServicePerimeterConfig_IngressSource_oneof_source::resource(ref v) => { - os.write_string(2, v)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_IngressSource { - ServicePerimeterConfig_IngressSource::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "access_level", - ServicePerimeterConfig_IngressSource::has_access_level, - ServicePerimeterConfig_IngressSource::get_access_level, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "resource", - ServicePerimeterConfig_IngressSource::has_resource, - ServicePerimeterConfig_IngressSource::get_resource, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.IngressSource", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_IngressSource { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_IngressSource::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_IngressSource { - fn clear(&mut self) { - self.source = ::std::option::Option::None; - self.source = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_IngressSource { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_IngressSource { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_IngressFrom { - // message fields - pub sources: ::protobuf::RepeatedField, - pub identities: ::protobuf::RepeatedField<::std::string::String>, - pub identity_type: ServicePerimeterConfig_IdentityType, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_IngressFrom { - fn default() -> &'a ServicePerimeterConfig_IngressFrom { - ::default_instance() - } -} - -impl ServicePerimeterConfig_IngressFrom { - pub fn new() -> ServicePerimeterConfig_IngressFrom { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1; - - - pub fn get_sources(&self) -> &[ServicePerimeterConfig_IngressSource] { - &self.sources - } - pub fn clear_sources(&mut self) { - self.sources.clear(); - } - - // Param is passed by value, moved - pub fn set_sources(&mut self, v: ::protobuf::RepeatedField) { - self.sources = v; - } - - // Mutable pointer to the field. - pub fn mut_sources(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.sources - } - - // Take field - pub fn take_sources(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.sources, ::protobuf::RepeatedField::new()) - } - - // repeated string identities = 2; - - - pub fn get_identities(&self) -> &[::std::string::String] { - &self.identities - } - pub fn clear_identities(&mut self) { - self.identities.clear(); - } - - // Param is passed by value, moved - pub fn set_identities(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.identities = v; - } - - // Mutable pointer to the field. - pub fn mut_identities(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.identities - } - - // Take field - pub fn take_identities(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.identities, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 3; - - - pub fn get_identity_type(&self) -> ServicePerimeterConfig_IdentityType { - self.identity_type - } - pub fn clear_identity_type(&mut self) { - self.identity_type = ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_identity_type(&mut self, v: ServicePerimeterConfig_IdentityType) { - self.identity_type = v; - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_IngressFrom { - fn is_initialized(&self) -> bool { - for v in &self.sources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.sources)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.identities)?; - }, - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.identity_type, 3, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.sources { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.identities { - my_size += ::protobuf::rt::string_size(2, &value); - }; - if self.identity_type != ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.identity_type); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.sources { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.identities { - os.write_string(2, &v)?; - }; - if self.identity_type != ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.identity_type))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_IngressFrom { - ServicePerimeterConfig_IngressFrom::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "sources", - |m: &ServicePerimeterConfig_IngressFrom| { &m.sources }, - |m: &mut ServicePerimeterConfig_IngressFrom| { &mut m.sources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "identities", - |m: &ServicePerimeterConfig_IngressFrom| { &m.identities }, - |m: &mut ServicePerimeterConfig_IngressFrom| { &mut m.identities }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "identity_type", - |m: &ServicePerimeterConfig_IngressFrom| { &m.identity_type }, - |m: &mut ServicePerimeterConfig_IngressFrom| { &mut m.identity_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.IngressFrom", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_IngressFrom { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_IngressFrom::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_IngressFrom { - fn clear(&mut self) { - self.sources.clear(); - self.identities.clear(); - self.identity_type = ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_IngressFrom { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_IngressFrom { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_IngressTo { - // message fields - pub operations: ::protobuf::RepeatedField, - pub resources: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_IngressTo { - fn default() -> &'a ServicePerimeterConfig_IngressTo { - ::default_instance() - } -} - -impl ServicePerimeterConfig_IngressTo { - pub fn new() -> ServicePerimeterConfig_IngressTo { - ::std::default::Default::default() - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1; - - - pub fn get_operations(&self) -> &[ServicePerimeterConfig_ApiOperation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // repeated string resources = 2; - - - pub fn get_resources(&self) -> &[::std::string::String] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_IngressTo { - fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.operations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.resources { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.operations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.resources { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_IngressTo { - ServicePerimeterConfig_IngressTo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ServicePerimeterConfig_IngressTo| { &m.operations }, - |m: &mut ServicePerimeterConfig_IngressTo| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resources", - |m: &ServicePerimeterConfig_IngressTo| { &m.resources }, - |m: &mut ServicePerimeterConfig_IngressTo| { &mut m.resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.IngressTo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_IngressTo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_IngressTo::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_IngressTo { - fn clear(&mut self) { - self.operations.clear(); - self.resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_IngressTo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_IngressTo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_IngressPolicy { - // message fields - pub ingress_from: ::protobuf::SingularPtrField, - pub ingress_to: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_IngressPolicy { - fn default() -> &'a ServicePerimeterConfig_IngressPolicy { - ::default_instance() - } -} - -impl ServicePerimeterConfig_IngressPolicy { - pub fn new() -> ServicePerimeterConfig_IngressPolicy { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1; - - - pub fn get_ingress_from(&self) -> &ServicePerimeterConfig_IngressFrom { - self.ingress_from.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_ingress_from(&mut self) { - self.ingress_from.clear(); - } - - pub fn has_ingress_from(&self) -> bool { - self.ingress_from.is_some() - } - - // Param is passed by value, moved - pub fn set_ingress_from(&mut self, v: ServicePerimeterConfig_IngressFrom) { - self.ingress_from = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ingress_from(&mut self) -> &mut ServicePerimeterConfig_IngressFrom { - if self.ingress_from.is_none() { - self.ingress_from.set_default(); - } - self.ingress_from.as_mut().unwrap() - } - - // Take field - pub fn take_ingress_from(&mut self) -> ServicePerimeterConfig_IngressFrom { - self.ingress_from.take().unwrap_or_else(|| ServicePerimeterConfig_IngressFrom::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2; - - - pub fn get_ingress_to(&self) -> &ServicePerimeterConfig_IngressTo { - self.ingress_to.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_ingress_to(&mut self) { - self.ingress_to.clear(); - } - - pub fn has_ingress_to(&self) -> bool { - self.ingress_to.is_some() - } - - // Param is passed by value, moved - pub fn set_ingress_to(&mut self, v: ServicePerimeterConfig_IngressTo) { - self.ingress_to = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ingress_to(&mut self) -> &mut ServicePerimeterConfig_IngressTo { - if self.ingress_to.is_none() { - self.ingress_to.set_default(); - } - self.ingress_to.as_mut().unwrap() - } - - // Take field - pub fn take_ingress_to(&mut self) -> ServicePerimeterConfig_IngressTo { - self.ingress_to.take().unwrap_or_else(|| ServicePerimeterConfig_IngressTo::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_IngressPolicy { - fn is_initialized(&self) -> bool { - for v in &self.ingress_from { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ingress_to { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ingress_from)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ingress_to)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.ingress_from.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.ingress_to.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.ingress_from.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.ingress_to.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_IngressPolicy { - ServicePerimeterConfig_IngressPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ingress_from", - |m: &ServicePerimeterConfig_IngressPolicy| { &m.ingress_from }, - |m: &mut ServicePerimeterConfig_IngressPolicy| { &mut m.ingress_from }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ingress_to", - |m: &ServicePerimeterConfig_IngressPolicy| { &m.ingress_to }, - |m: &mut ServicePerimeterConfig_IngressPolicy| { &mut m.ingress_to }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.IngressPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_IngressPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_IngressPolicy::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_IngressPolicy { - fn clear(&mut self) { - self.ingress_from.clear(); - self.ingress_to.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_IngressPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_IngressPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_EgressFrom { - // message fields - pub identities: ::protobuf::RepeatedField<::std::string::String>, - pub identity_type: ServicePerimeterConfig_IdentityType, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_EgressFrom { - fn default() -> &'a ServicePerimeterConfig_EgressFrom { - ::default_instance() - } -} - -impl ServicePerimeterConfig_EgressFrom { - pub fn new() -> ServicePerimeterConfig_EgressFrom { - ::std::default::Default::default() - } - - // repeated string identities = 1; - - - pub fn get_identities(&self) -> &[::std::string::String] { - &self.identities - } - pub fn clear_identities(&mut self) { - self.identities.clear(); - } - - // Param is passed by value, moved - pub fn set_identities(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.identities = v; - } - - // Mutable pointer to the field. - pub fn mut_identities(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.identities - } - - // Take field - pub fn take_identities(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.identities, ::protobuf::RepeatedField::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2; - - - pub fn get_identity_type(&self) -> ServicePerimeterConfig_IdentityType { - self.identity_type - } - pub fn clear_identity_type(&mut self) { - self.identity_type = ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_identity_type(&mut self, v: ServicePerimeterConfig_IdentityType) { - self.identity_type = v; - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_EgressFrom { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.identities)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.identity_type, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.identities { - my_size += ::protobuf::rt::string_size(1, &value); - }; - if self.identity_type != ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.identity_type); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.identities { - os.write_string(1, &v)?; - }; - if self.identity_type != ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.identity_type))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_EgressFrom { - ServicePerimeterConfig_EgressFrom::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "identities", - |m: &ServicePerimeterConfig_EgressFrom| { &m.identities }, - |m: &mut ServicePerimeterConfig_EgressFrom| { &mut m.identities }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "identity_type", - |m: &ServicePerimeterConfig_EgressFrom| { &m.identity_type }, - |m: &mut ServicePerimeterConfig_EgressFrom| { &mut m.identity_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.EgressFrom", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_EgressFrom { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_EgressFrom::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_EgressFrom { - fn clear(&mut self) { - self.identities.clear(); - self.identity_type = ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_EgressFrom { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_EgressFrom { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_EgressTo { - // message fields - pub resources: ::protobuf::RepeatedField<::std::string::String>, - pub operations: ::protobuf::RepeatedField, - pub external_resources: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_EgressTo { - fn default() -> &'a ServicePerimeterConfig_EgressTo { - ::default_instance() - } -} - -impl ServicePerimeterConfig_EgressTo { - pub fn new() -> ServicePerimeterConfig_EgressTo { - ::std::default::Default::default() - } - - // repeated string resources = 1; - - - pub fn get_resources(&self) -> &[::std::string::String] { - &self.resources - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.resources = v; - } - - // Mutable pointer to the field. - pub fn mut_resources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.resources - } - - // Take field - pub fn take_resources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.resources, ::protobuf::RepeatedField::new()) - } - - // repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 2; - - - pub fn get_operations(&self) -> &[ServicePerimeterConfig_ApiOperation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // repeated string external_resources = 3; - - - pub fn get_external_resources(&self) -> &[::std::string::String] { - &self.external_resources - } - pub fn clear_external_resources(&mut self) { - self.external_resources.clear(); - } - - // Param is passed by value, moved - pub fn set_external_resources(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.external_resources = v; - } - - // Mutable pointer to the field. - pub fn mut_external_resources(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.external_resources - } - - // Take field - pub fn take_external_resources(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.external_resources, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_EgressTo { - fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.resources)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.external_resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.resources { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.operations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.external_resources { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.resources { - os.write_string(1, &v)?; - }; - for v in &self.operations { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.external_resources { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_EgressTo { - ServicePerimeterConfig_EgressTo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resources", - |m: &ServicePerimeterConfig_EgressTo| { &m.resources }, - |m: &mut ServicePerimeterConfig_EgressTo| { &mut m.resources }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ServicePerimeterConfig_EgressTo| { &m.operations }, - |m: &mut ServicePerimeterConfig_EgressTo| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "external_resources", - |m: &ServicePerimeterConfig_EgressTo| { &m.external_resources }, - |m: &mut ServicePerimeterConfig_EgressTo| { &mut m.external_resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.EgressTo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_EgressTo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_EgressTo::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_EgressTo { - fn clear(&mut self) { - self.resources.clear(); - self.operations.clear(); - self.external_resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_EgressTo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_EgressTo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ServicePerimeterConfig_EgressPolicy { - // message fields - pub egress_from: ::protobuf::SingularPtrField, - pub egress_to: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ServicePerimeterConfig_EgressPolicy { - fn default() -> &'a ServicePerimeterConfig_EgressPolicy { - ::default_instance() - } -} - -impl ServicePerimeterConfig_EgressPolicy { - pub fn new() -> ServicePerimeterConfig_EgressPolicy { - ::std::default::Default::default() - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom egress_from = 1; - - - pub fn get_egress_from(&self) -> &ServicePerimeterConfig_EgressFrom { - self.egress_from.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_egress_from(&mut self) { - self.egress_from.clear(); - } - - pub fn has_egress_from(&self) -> bool { - self.egress_from.is_some() - } - - // Param is passed by value, moved - pub fn set_egress_from(&mut self, v: ServicePerimeterConfig_EgressFrom) { - self.egress_from = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_egress_from(&mut self) -> &mut ServicePerimeterConfig_EgressFrom { - if self.egress_from.is_none() { - self.egress_from.set_default(); - } - self.egress_from.as_mut().unwrap() - } - - // Take field - pub fn take_egress_from(&mut self) -> ServicePerimeterConfig_EgressFrom { - self.egress_from.take().unwrap_or_else(|| ServicePerimeterConfig_EgressFrom::new()) - } - - // .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo egress_to = 2; - - - pub fn get_egress_to(&self) -> &ServicePerimeterConfig_EgressTo { - self.egress_to.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_egress_to(&mut self) { - self.egress_to.clear(); - } - - pub fn has_egress_to(&self) -> bool { - self.egress_to.is_some() - } - - // Param is passed by value, moved - pub fn set_egress_to(&mut self, v: ServicePerimeterConfig_EgressTo) { - self.egress_to = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_egress_to(&mut self) -> &mut ServicePerimeterConfig_EgressTo { - if self.egress_to.is_none() { - self.egress_to.set_default(); - } - self.egress_to.as_mut().unwrap() - } - - // Take field - pub fn take_egress_to(&mut self) -> ServicePerimeterConfig_EgressTo { - self.egress_to.take().unwrap_or_else(|| ServicePerimeterConfig_EgressTo::new()) - } -} - -impl ::protobuf::Message for ServicePerimeterConfig_EgressPolicy { - fn is_initialized(&self) -> bool { - for v in &self.egress_from { - if !v.is_initialized() { - return false; - } - }; - for v in &self.egress_to { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.egress_from)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.egress_to)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.egress_from.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.egress_to.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.egress_from.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.egress_to.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ServicePerimeterConfig_EgressPolicy { - ServicePerimeterConfig_EgressPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "egress_from", - |m: &ServicePerimeterConfig_EgressPolicy| { &m.egress_from }, - |m: &mut ServicePerimeterConfig_EgressPolicy| { &mut m.egress_from }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "egress_to", - |m: &ServicePerimeterConfig_EgressPolicy| { &m.egress_to }, - |m: &mut ServicePerimeterConfig_EgressPolicy| { &mut m.egress_to }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ServicePerimeterConfig.EgressPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ServicePerimeterConfig_EgressPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ServicePerimeterConfig_EgressPolicy::new) - } -} - -impl ::protobuf::Clear for ServicePerimeterConfig_EgressPolicy { - fn clear(&mut self) { - self.egress_from.clear(); - self.egress_to.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ServicePerimeterConfig_EgressPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_EgressPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ServicePerimeterConfig_IdentityType { - IDENTITY_TYPE_UNSPECIFIED = 0, - ANY_IDENTITY = 1, - ANY_USER_ACCOUNT = 2, - ANY_SERVICE_ACCOUNT = 3, -} - -impl ::protobuf::ProtobufEnum for ServicePerimeterConfig_IdentityType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ServicePerimeterConfig_IdentityType::ANY_IDENTITY), - 2 => ::std::option::Option::Some(ServicePerimeterConfig_IdentityType::ANY_USER_ACCOUNT), - 3 => ::std::option::Option::Some(ServicePerimeterConfig_IdentityType::ANY_SERVICE_ACCOUNT), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ServicePerimeterConfig_IdentityType] = &[ - ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED, - ServicePerimeterConfig_IdentityType::ANY_IDENTITY, - ServicePerimeterConfig_IdentityType::ANY_USER_ACCOUNT, - ServicePerimeterConfig_IdentityType::ANY_SERVICE_ACCOUNT, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ServicePerimeterConfig.IdentityType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ServicePerimeterConfig_IdentityType { -} - -impl ::std::default::Default for ServicePerimeterConfig_IdentityType { - fn default() -> Self { - ServicePerimeterConfig_IdentityType::IDENTITY_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for ServicePerimeterConfig_IdentityType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n?google/identity/accesscontextmanager/v1/service_perimeter.proto\x12'g\ - oogle.identity.accesscontextmanager.v1\x1a\x19google/api/resource.proto\ - \x1a\x1fgoogle/protobuf/timestamp.proto\"\xf9\x05\n\x10ServicePerimeter\ - \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\x05title\x18\ - \x02\x20\x01(\tR\x05title\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\ - \x0bdescription\x12;\n\x0bcreate_time\x18\x04\x20\x01(\x0b2\x1a.google.p\ - rotobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x05\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\nupdateTime\x12n\n\x0eperimeter_typ\ - e\x18\x06\x20\x01(\x0e2G.google.identity.accesscontextmanager.v1.Service\ - Perimeter.PerimeterTypeR\rperimeterType\x12W\n\x06status\x18\x07\x20\x01\ - (\x0b2?.google.identity.accesscontextmanager.v1.ServicePerimeterConfigR\ - \x06status\x12S\n\x04spec\x18\x08\x20\x01(\x0b2?.google.identity.accessc\ - ontextmanager.v1.ServicePerimeterConfigR\x04spec\x128\n\x19use_explicit_\ - dry_run_spec\x18\t\x20\x01(\x08R\x15useExplicitDryRunSpec\"F\n\rPerimete\ - rType\x12\x1a\n\x16PERIMETER_TYPE_REGULAR\x10\0\x12\x19\n\x15PERIMETER_T\ - YPE_BRIDGE\x10\x01:\x7f\xeaA|\n4accesscontextmanager.googleapis.com/Serv\ - icePerimeter\x12DaccessPolicies/{access_policy}/servicePerimeters/{servi\ - ce_perimeter}\"\xb4\x12\n\x16ServicePerimeterConfig\x12\x1c\n\tresources\ - \x18\x01\x20\x03(\tR\tresources\x12#\n\raccess_levels\x18\x02\x20\x03(\t\ - R\x0caccessLevels\x12/\n\x13restricted_services\x18\x04\x20\x03(\tR\x12r\ - estrictedServices\x12\x8d\x01\n\x17vpc_accessible_services\x18\n\x20\x01\ - (\x0b2U.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.V\ - pcAccessibleServicesR\x15vpcAccessibleServices\x12x\n\x10ingress_policie\ - s\x18\x08\x20\x03(\x0b2M.google.identity.accesscontextmanager.v1.Service\ - PerimeterConfig.IngressPolicyR\x0fingressPolicies\x12u\n\x0fegress_polic\ - ies\x18\t\x20\x03(\x0b2L.google.identity.accesscontextmanager.v1.Service\ - PerimeterConfig.EgressPolicyR\x0eegressPolicies\x1aq\n\x15VpcAccessibleS\ - ervices\x12-\n\x12enable_restriction\x18\x01\x20\x01(\x08R\x11enableRest\ - riction\x12)\n\x10allowed_services\x18\x02\x20\x03(\tR\x0fallowedService\ - s\x1aT\n\x0eMethodSelector\x12\x18\n\x06method\x18\x01\x20\x01(\tH\0R\ - \x06method\x12\x20\n\npermission\x18\x02\x20\x01(\tH\0R\npermissionB\x06\ - \n\x04kind\x1a\xac\x01\n\x0cApiOperation\x12!\n\x0cservice_name\x18\x01\ - \x20\x01(\tR\x0bserviceName\x12y\n\x10method_selectors\x18\x02\x20\x03(\ - \x0b2N.google.identity.accesscontextmanager.v1.ServicePerimeterConfig.Me\ - thodSelectorR\x0fmethodSelectors\x1a\\\n\rIngressSource\x12#\n\x0caccess\ - _level\x18\x01\x20\x01(\tH\0R\x0baccessLevel\x12\x1c\n\x08resource\x18\ - \x02\x20\x01(\tH\0R\x08resourceB\x08\n\x06source\x1a\x89\x02\n\x0bIngres\ - sFrom\x12g\n\x07sources\x18\x01\x20\x03(\x0b2M.google.identity.accesscon\ - textmanager.v1.ServicePerimeterConfig.IngressSourceR\x07sources\x12\x1e\ - \n\nidentities\x18\x02\x20\x03(\tR\nidentities\x12q\n\ridentity_type\x18\ - \x03\x20\x01(\x0e2L.google.identity.accesscontextmanager.v1.ServicePerim\ - eterConfig.IdentityTypeR\x0cidentityType\x1a\x97\x01\n\tIngressTo\x12l\n\ - \noperations\x18\x01\x20\x03(\x0b2L.google.identity.accesscontextmanager\ - .v1.ServicePerimeterConfig.ApiOperationR\noperations\x12\x1c\n\tresource\ - s\x18\x02\x20\x03(\tR\tresources\x1a\xe9\x01\n\rIngressPolicy\x12n\n\x0c\ - ingress_from\x18\x01\x20\x01(\x0b2K.google.identity.accesscontextmanager\ - .v1.ServicePerimeterConfig.IngressFromR\x0bingressFrom\x12h\n\ningress_t\ - o\x18\x02\x20\x01(\x0b2I.google.identity.accesscontextmanager.v1.Service\ - PerimeterConfig.IngressToR\tingressTo\x1a\x9f\x01\n\nEgressFrom\x12\x1e\ - \n\nidentities\x18\x01\x20\x03(\tR\nidentities\x12q\n\ridentity_type\x18\ - \x02\x20\x01(\x0e2L.google.identity.accesscontextmanager.v1.ServicePerim\ - eterConfig.IdentityTypeR\x0cidentityType\x1a\xc5\x01\n\x08EgressTo\x12\ - \x1c\n\tresources\x18\x01\x20\x03(\tR\tresources\x12l\n\noperations\x18\ - \x02\x20\x03(\x0b2L.google.identity.accesscontextmanager.v1.ServicePerim\ - eterConfig.ApiOperationR\noperations\x12-\n\x12external_resources\x18\ - \x03\x20\x03(\tR\x11externalResources\x1a\xe2\x01\n\x0cEgressPolicy\x12k\ - \n\x0begress_from\x18\x01\x20\x01(\x0b2J.google.identity.accesscontextma\ - nager.v1.ServicePerimeterConfig.EgressFromR\negressFrom\x12e\n\tegress_t\ - o\x18\x02\x20\x01(\x0b2H.google.identity.accesscontextmanager.v1.Service\ - PerimeterConfig.EgressToR\x08egressTo\"n\n\x0cIdentityType\x12\x1d\n\x19\ - IDENTITY_TYPE_UNSPECIFIED\x10\0\x12\x10\n\x0cANY_IDENTITY\x10\x01\x12\ - \x14\n\x10ANY_USER_ACCOUNT\x10\x02\x12\x17\n\x13ANY_SERVICE_ACCOUNT\x10\ - \x03B\xac\x02\n+com.google.identity.accesscontextmanager.v1B\x15ServiceP\ - erimeterProtoP\x01Z\\cloud.google.com/go/accesscontextmanager/apiv1/acce\ - sscontextmanagerpb;accesscontextmanagerpb\xa2\x02\x04GACM\xaa\x02'Google\ - .Identity.AccessContextManager.V1\xca\x02'Google\\Identity\\AccessContex\ - tManager\\V1\xea\x02*Google::Identity::AccessContextManager::V1J\x92\xb2\ - \x01\n\x07\x12\x05\x0e\0\xd7\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ - \x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20u\ - nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ - \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ - mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ - py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ - e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\00\n\t\n\x02\x03\0\x12\x03\x12\0#\n\t\n\x02\x03\x01\x12\ - \x03\x13\0)\n\x08\n\x01\x08\x12\x03\x15\0D\n\t\n\x02\x08%\x12\x03\x15\0D\ - \n\x08\n\x01\x08\x12\x03\x16\0s\n\t\n\x02\x08\x0b\x12\x03\x16\0s\n\x08\n\ - \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\ - \x12\x03\x18\06\n\t\n\x02\x08\x08\x12\x03\x18\06\n\x08\n\x01\x08\x12\x03\ - \x19\0D\n\t\n\x02\x08\x01\x12\x03\x19\0D\n\x08\n\x01\x08\x12\x03\x1a\0\"\ - \n\t\n\x02\x08$\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0D\n\t\n\x02\ - \x08)\x12\x03\x1b\0D\n\x08\n\x01\x08\x12\x03\x1c\0C\n\t\n\x02\x08-\x12\ - \x03\x1c\0C\n\xc7\x05\n\x02\x04\0\x12\x04(\0v\x01\x1a\xba\x05\x20`Servic\ - ePerimeter`\x20describes\x20a\x20set\x20of\x20Google\x20Cloud\x20resourc\ - es\x20which\x20can\x20freely\n\x20import\x20and\x20export\x20data\x20amo\ - ngst\x20themselves,\x20but\x20not\x20export\x20outside\x20of\x20the\n\ - \x20`ServicePerimeter`.\x20If\x20a\x20request\x20with\x20a\x20source\x20\ - within\x20this\x20`ServicePerimeter`\n\x20has\x20a\x20target\x20outside\ - \x20of\x20the\x20`ServicePerimeter`,\x20the\x20request\x20will\x20be\x20\ - blocked.\n\x20Otherwise\x20the\x20request\x20is\x20allowed.\x20There\x20\ - are\x20two\x20types\x20of\x20Service\x20Perimeter\x20-\n\x20Regular\x20a\ - nd\x20Bridge.\x20Regular\x20Service\x20Perimeters\x20cannot\x20overlap,\ - \x20a\x20single\n\x20Google\x20Cloud\x20project\x20can\x20only\x20belong\ - \x20to\x20a\x20single\x20regular\x20Service\x20Perimeter.\n\x20Service\ - \x20Perimeter\x20Bridges\x20can\x20contain\x20only\x20Google\x20Cloud\ - \x20projects\x20as\x20members,\n\x20a\x20single\x20Google\x20Cloud\x20pr\ - oject\x20may\x20belong\x20to\x20multiple\x20Service\x20Perimeter\n\x20Br\ - idges.\n\n\n\n\x03\x04\0\x01\x12\x03(\x08\x18\n\x0b\n\x03\x04\0\x07\x12\ - \x04)\x02,\x04\n\r\n\x05\x04\0\x07\x9d\x08\x12\x04)\x02,\x04\n\xf3\x06\n\ - \x04\x04\0\x04\0\x12\x04=\x02C\x03\x1a\xe4\x06\x20Specifies\x20the\x20ty\ - pe\x20of\x20the\x20Perimeter.\x20There\x20are\x20two\x20types:\x20regula\ - r\x20and\n\x20bridge.\x20Regular\x20Service\x20Perimeter\x20contains\x20\ - resources,\x20access\x20levels,\x20and\n\x20restricted\x20services.\x20E\ - very\x20resource\x20can\x20be\x20in\x20at\x20most\x20ONE\n\x20regular\ - \x20Service\x20Perimeter.\n\n\x20In\x20addition\x20to\x20being\x20in\x20\ - a\x20regular\x20service\x20perimeter,\x20a\x20resource\x20can\x20also\n\ - \x20be\x20in\x20zero\x20or\x20more\x20perimeter\x20bridges.\x20\x20A\x20\ - perimeter\x20bridge\x20only\x20contains\n\x20resources.\x20\x20Cross\x20\ - project\x20operations\x20are\x20permitted\x20if\x20all\x20effected\n\x20\ - resources\x20share\x20some\x20perimeter\x20(whether\x20bridge\x20or\x20r\ - egular).\x20Perimeter\n\x20Bridge\x20does\x20not\x20contain\x20access\ - \x20levels\x20or\x20services:\x20those\x20are\x20governed\n\x20entirely\ - \x20by\x20the\x20regular\x20perimeter\x20that\x20resource\x20is\x20in.\n\ - \n\x20Perimeter\x20Bridges\x20are\x20typically\x20useful\x20when\x20buil\ - ding\x20more\x20complex\x20toplogies\n\x20with\x20many\x20independent\ - \x20perimeters\x20that\x20need\x20to\x20share\x20some\x20data\x20with\ - \x20a\x20common\n\x20perimeter,\x20but\x20should\x20not\x20be\x20able\ - \x20to\x20share\x20data\x20among\x20themselves.\n\n\x0c\n\x05\x04\0\x04\ - \0\x01\x12\x03=\x07\x14\n#\n\x06\x04\0\x04\0\x02\0\x12\x03?\x04\x1f\x1a\ - \x14\x20Regular\x20Perimeter.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\ - \x03?\x04\x1a\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03?\x1d\x1e\n\"\n\ - \x06\x04\0\x04\0\x02\x01\x12\x03B\x04\x1e\x1a\x13\x20Perimeter\x20Bridge\ - .\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03B\x04\x19\n\x0e\n\x07\x04\ - \0\x04\0\x02\x01\x02\x12\x03B\x1c\x1d\n\xef\x01\n\x04\x04\0\x02\0\x12\ - \x03I\x02\x12\x1a\xe1\x01\x20Required.\x20Resource\x20name\x20for\x20the\ - \x20ServicePerimeter.\x20\x20The\x20`short_name`\n\x20component\x20must\ - \x20begin\x20with\x20a\x20letter\x20and\x20only\x20include\x20alphanumer\ - ic\x20and\x20'_'.\n\x20Format:\n\x20`accessPolicies/{access_policy}/serv\ - icePerimeters/{service_perimeter}`\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\ - I\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03I\t\r\n\x0c\n\x05\x04\0\x02\ - \0\x03\x12\x03I\x10\x11\nF\n\x04\x04\0\x02\x01\x12\x03L\x02\x13\x1a9\x20\ - Human\x20readable\x20title.\x20Must\x20be\x20unique\x20within\x20the\x20\ - Policy.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03L\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x01\x01\x12\x03L\t\x0e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03L\x11\ - \x12\n\\\n\x04\x04\0\x02\x02\x12\x03P\x02\x19\x1aO\x20Description\x20of\ - \x20the\x20`ServicePerimeter`\x20and\x20its\x20use.\x20Does\x20not\x20af\ - fect\n\x20behavior.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03P\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x03P\t\x14\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x03P\x17\x18\nK\n\x04\x04\0\x02\x03\x12\x03S\x02,\x1a>\x20Outpu\ - t\x20only.\x20Time\x20the\x20`ServicePerimeter`\x20was\x20created\x20in\ - \x20UTC.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03S\x02\x1b\n\x0c\n\x05\ - \x04\0\x02\x03\x01\x12\x03S\x1c'\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03S*\ - +\nK\n\x04\x04\0\x02\x04\x12\x03V\x02,\x1a>\x20Output\x20only.\x20Time\ - \x20the\x20`ServicePerimeter`\x20was\x20updated\x20in\x20UTC.\n\n\x0c\n\ - \x05\x04\0\x02\x04\x06\x12\x03V\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\x01\ - \x12\x03V\x1c'\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03V*+\n\xe0\x02\n\x04\ - \x04\0\x02\x05\x12\x03^\x02#\x1a\xd2\x02\x20Perimeter\x20type\x20indicat\ - or.\x20A\x20single\x20project\x20is\n\x20allowed\x20to\x20be\x20a\x20mem\ - ber\x20of\x20single\x20regular\x20perimeter,\x20but\x20multiple\x20servi\ - ce\n\x20perimeter\x20bridges.\x20A\x20project\x20cannot\x20be\x20a\x20in\ - cluded\x20in\x20a\x20perimeter\x20bridge\n\x20without\x20being\x20includ\ - ed\x20in\x20regular\x20perimeter.\x20For\x20perimeter\x20bridges,\n\x20t\ - he\x20restricted\x20service\x20list\x20as\x20well\x20as\x20access\x20lev\ - el\x20lists\x20must\x20be\n\x20empty.\n\n\x0c\n\x05\x04\0\x02\x05\x06\ - \x12\x03^\x02\x0f\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03^\x10\x1e\n\x0c\n\ - \x05\x04\0\x02\x05\x03\x12\x03^!\"\n\xad\x01\n\x04\x04\0\x02\x06\x12\x03\ - c\x02$\x1a\x9f\x01\x20Current\x20ServicePerimeter\x20configuration.\x20S\ - pecifies\x20sets\x20of\x20resources,\n\x20restricted\x20services\x20and\ - \x20access\x20levels\x20that\x20determine\x20perimeter\n\x20content\x20a\ - nd\x20boundaries.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03c\x02\x18\n\x0c\ - \n\x05\x04\0\x02\x06\x01\x12\x03c\x19\x1f\n\x0c\n\x05\x04\0\x02\x06\x03\ - \x12\x03c\"#\n\x8c\x02\n\x04\x04\0\x02\x07\x12\x03i\x02\"\x1a\xfe\x01\ - \x20Proposed\x20(or\x20dry\x20run)\x20ServicePerimeter\x20configuration.\ - \x20This\x20configuration\n\x20allows\x20to\x20specify\x20and\x20test\ - \x20ServicePerimeter\x20configuration\x20without\x20enforcing\n\x20actua\ - l\x20access\x20restrictions.\x20Only\x20allowed\x20to\x20be\x20set\x20wh\ - en\x20the\n\x20\"use_explicit_dry_run_spec\"\x20flag\x20is\x20set.\n\n\ - \x0c\n\x05\x04\0\x02\x07\x06\x12\x03i\x02\x18\n\x0c\n\x05\x04\0\x02\x07\ - \x01\x12\x03i\x19\x1d\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03i\x20!\n\xd5\ - \x05\n\x04\x04\0\x02\x08\x12\x03u\x02%\x1a\xc7\x05\x20Use\x20explicit\ - \x20dry\x20run\x20spec\x20flag.\x20Ordinarily,\x20a\x20dry-run\x20spec\ - \x20implicitly\n\x20exists\x20\x20for\x20all\x20Service\x20Perimeters,\ - \x20and\x20that\x20spec\x20is\x20identical\x20to\x20the\n\x20status\x20f\ - or\x20those\x20Service\x20Perimeters.\x20When\x20this\x20flag\x20is\x20s\ - et,\x20it\x20inhibits\x20the\n\x20generation\x20of\x20the\x20implicit\ - \x20spec,\x20thereby\x20allowing\x20the\x20user\x20to\x20explicitly\n\ - \x20provide\x20a\x20configuration\x20(\"spec\")\x20to\x20use\x20in\x20a\ - \x20dry-run\x20version\x20of\x20the\x20Service\n\x20Perimeter.\x20This\ - \x20allows\x20the\x20user\x20to\x20test\x20changes\x20to\x20the\x20enfor\ - ced\x20config\n\x20(\"status\")\x20without\x20actually\x20enforcing\x20t\ - hem.\x20This\x20testing\x20is\x20done\x20through\n\x20analyzing\x20the\ - \x20differences\x20between\x20currently\x20enforced\x20and\x20suggested\ - \n\x20restrictions.\x20use_explicit_dry_run_spec\x20must\x20bet\x20set\ - \x20to\x20True\x20if\x20any\x20of\x20the\n\x20fields\x20in\x20the\x20spe\ - c\x20are\x20set\x20to\x20non-default\x20values.\n\n\x0c\n\x05\x04\0\x02\ - \x08\x05\x12\x03u\x02\x06\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03u\x07\x20\ - \n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03u#$\n\x8a\x01\n\x02\x04\x01\x12\ - \x05z\0\xd7\x03\x01\x1a}\x20`ServicePerimeterConfig`\x20specifies\x20a\ - \x20set\x20of\x20Google\x20Cloud\x20resources\x20that\n\x20describe\x20s\ - pecific\x20Service\x20Perimeter\x20configuration.\n\n\n\n\x03\x04\x01\ - \x01\x12\x03z\x08\x1e\n]\n\x04\x04\x01\x03\0\x12\x05}\x02\x87\x01\x03\ - \x1aN\x20Specifies\x20how\x20APIs\x20are\x20allowed\x20to\x20communicate\ - \x20within\x20the\x20Service\n\x20Perimeter.\n\n\x0c\n\x05\x04\x01\x03\0\ - \x01\x12\x03}\n\x1f\n\x82\x01\n\x06\x04\x01\x03\0\x02\0\x12\x04\x80\x01\ - \x04\x20\x1ar\x20Whether\x20to\x20restrict\x20API\x20calls\x20within\x20\ - the\x20Service\x20Perimeter\x20to\x20the\x20list\x20of\n\x20APIs\x20spec\ - ified\x20in\x20'allowed_services'.\n\n\x0f\n\x07\x04\x01\x03\0\x02\0\x05\ - \x12\x04\x80\x01\x04\x08\n\x0f\n\x07\x04\x01\x03\0\x02\0\x01\x12\x04\x80\ - \x01\t\x1b\n\x0f\n\x07\x04\x01\x03\0\x02\0\x03\x12\x04\x80\x01\x1e\x1f\n\ - \xae\x02\n\x06\x04\x01\x03\0\x02\x01\x12\x04\x86\x01\x04)\x1a\x9d\x02\ - \x20The\x20list\x20of\x20APIs\x20usable\x20within\x20the\x20Service\x20P\ - erimeter.\x20Must\x20be\x20empty\n\x20unless\x20'enable_restriction'\x20\ - is\x20True.\x20You\x20can\x20specify\x20a\x20list\x20of\x20individual\n\ - \x20services,\x20as\x20well\x20as\x20include\x20the\x20'RESTRICTED-SERVI\ - CES'\x20value,\x20which\n\x20automatically\x20includes\x20all\x20of\x20t\ - he\x20services\x20protected\x20by\x20the\x20perimeter.\n\n\x0f\n\x07\x04\ - \x01\x03\0\x02\x01\x04\x12\x04\x86\x01\x04\x0c\n\x0f\n\x07\x04\x01\x03\0\ - \x02\x01\x05\x12\x04\x86\x01\r\x13\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x01\ - \x12\x04\x86\x01\x14$\n\x0f\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x04\x86\ - \x01'(\n\x99\x02\n\x04\x04\x01\x04\0\x12\x06\x8f\x01\x02\x9b\x01\x03\x1a\ - \x88\x02\x20Specifies\x20the\x20types\x20of\x20identities\x20that\x20are\ - \x20allowed\x20access\x20in\x20either\n\x20[IngressFrom]\n\x20[google.id\ - entity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]\n\x20\ - or\x20[EgressFrom]\n\x20[google.identity.accesscontextmanager.v1.Service\ - PerimeterConfig.EgressFrom]\n\x20rules.\n\n\r\n\x05\x04\x01\x04\0\x01\ - \x12\x04\x8f\x01\x07\x13\n6\n\x06\x04\x01\x04\0\x02\0\x12\x04\x91\x01\ - \x04\"\x1a&\x20No\x20blanket\x20identity\x20group\x20specified.\n\n\x0f\ - \n\x07\x04\x01\x04\0\x02\0\x01\x12\x04\x91\x01\x04\x1d\n\x0f\n\x07\x04\ - \x01\x04\0\x02\0\x02\x12\x04\x91\x01\x20!\nM\n\x06\x04\x01\x04\0\x02\x01\ - \x12\x04\x94\x01\x04\x15\x1a=\x20Authorize\x20access\x20from\x20all\x20i\ - dentities\x20outside\x20the\x20perimeter.\n\n\x0f\n\x07\x04\x01\x04\0\ - \x02\x01\x01\x12\x04\x94\x01\x04\x10\n\x0f\n\x07\x04\x01\x04\0\x02\x01\ - \x02\x12\x04\x94\x01\x13\x14\nN\n\x06\x04\x01\x04\0\x02\x02\x12\x04\x97\ - \x01\x04\x19\x1a>\x20Authorize\x20access\x20from\x20all\x20human\x20user\ - s\x20outside\x20the\x20perimeter.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\ - \x01\x12\x04\x97\x01\x04\x14\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\ - \x04\x97\x01\x17\x18\nS\n\x06\x04\x01\x04\0\x02\x03\x12\x04\x9a\x01\x04\ - \x1c\x1aC\x20Authorize\x20access\x20from\x20all\x20service\x20accounts\ - \x20outside\x20the\x20perimeter.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x01\ - \x12\x04\x9a\x01\x04\x17\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x04\ - \x9a\x01\x1a\x1b\n\xab\x01\n\x04\x04\x01\x03\x01\x12\x06\x9f\x01\x02\xae\ - \x01\x03\x1a\x9a\x01\x20An\x20allowed\x20method\x20or\x20permission\x20o\ - f\x20a\x20service\x20specified\x20in\x20[ApiOperation]\n\x20[google.iden\ - tity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].\n\n\r\ - \n\x05\x04\x01\x03\x01\x01\x12\x04\x9f\x01\n\x18\nN\n\x06\x04\x01\x03\ - \x01\x08\0\x12\x06\xa1\x01\x04\xad\x01\x05\x1a<\x20The\x20API\x20method\ - \x20name\x20or\x20Cloud\x20IAM\x20permission\x20name\x20to\x20allow.\n\n\ - \x0f\n\x07\x04\x01\x03\x01\x08\0\x01\x12\x04\xa1\x01\n\x0e\n\x9e\x02\n\ - \x06\x04\x01\x03\x01\x02\0\x12\x04\xa7\x01\x06\x18\x1a\x8d\x02\x20Value\ - \x20for\x20`method`\x20should\x20be\x20a\x20valid\x20method\x20name\x20f\ - or\x20the\x20corresponding\n\x20`service_name`\x20in\x20[ApiOperation]\n\ - \x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiO\ - peration].\n\x20If\x20`*`\x20used\x20as\x20value\x20for\x20`method`,\x20\ - then\x20ALL\x20methods\x20and\x20permissions\x20are\n\x20allowed.\n\n\ - \x0f\n\x07\x04\x01\x03\x01\x02\0\x05\x12\x04\xa7\x01\x06\x0c\n\x0f\n\x07\ - \x04\x01\x03\x01\x02\0\x01\x12\x04\xa7\x01\r\x13\n\x0f\n\x07\x04\x01\x03\ - \x01\x02\0\x03\x12\x04\xa7\x01\x16\x17\n\xd8\x01\n\x06\x04\x01\x03\x01\ - \x02\x01\x12\x04\xac\x01\x06\x1c\x1a\xc7\x01\x20Value\x20for\x20`permiss\ - ion`\x20should\x20be\x20a\x20valid\x20Cloud\x20IAM\x20permission\x20for\ - \x20the\n\x20corresponding\x20`service_name`\x20in\x20[ApiOperation]\n\ - \x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiO\ - peration].\n\n\x0f\n\x07\x04\x01\x03\x01\x02\x01\x05\x12\x04\xac\x01\x06\ - \x0c\n\x0f\n\x07\x04\x01\x03\x01\x02\x01\x01\x12\x04\xac\x01\r\x17\n\x0f\ - \n\x07\x04\x01\x03\x01\x02\x01\x03\x12\x04\xac\x01\x1a\x1b\n6\n\x04\x04\ - \x01\x03\x02\x12\x06\xb1\x01\x02\xc2\x01\x03\x1a&\x20Identification\x20f\ - or\x20an\x20API\x20Operation.\n\n\r\n\x05\x04\x01\x03\x02\x01\x12\x04\ - \xb1\x01\n\x16\n\xe0\x03\n\x06\x04\x01\x03\x02\x02\0\x12\x04\xba\x01\x04\ - \x1c\x1a\xcf\x03\x20The\x20name\x20of\x20the\x20API\x20whose\x20methods\ - \x20or\x20permissions\x20the\x20[IngressPolicy]\n\x20[google.identity.ac\ - cesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20or\x20[\ - EgressPolicy]\n\x20[google.identity.accesscontextmanager.v1.ServicePerim\ - eterConfig.EgressPolicy]\n\x20want\x20to\x20allow.\x20A\x20single\x20[Ap\ - iOperation]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimet\ - erConfig.ApiOperation]\n\x20with\x20`service_name`\x20field\x20set\x20to\ - \x20`*`\x20will\x20allow\x20all\x20methods\x20AND\n\x20permissions\x20fo\ - r\x20all\x20services.\n\n\x0f\n\x07\x04\x01\x03\x02\x02\0\x05\x12\x04\ - \xba\x01\x04\n\n\x0f\n\x07\x04\x01\x03\x02\x02\0\x01\x12\x04\xba\x01\x0b\ - \x17\n\x0f\n\x07\x04\x01\x03\x02\x02\0\x03\x12\x04\xba\x01\x1a\x1b\n\xfc\ - \x02\n\x06\x04\x01\x03\x02\x02\x01\x12\x04\xc1\x01\x041\x1a\xeb\x02\x20A\ - PI\x20methods\x20or\x20permissions\x20to\x20allow.\x20Method\x20or\x20pe\ - rmission\x20must\x20belong\x20to\n\x20the\x20service\x20specified\x20by\ - \x20`service_name`\x20field.\x20A\x20single\x20[MethodSelector]\n\x20[go\ - ogle.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelec\ - tor]\n\x20entry\x20with\x20`*`\x20specified\x20for\x20the\x20`method`\ - \x20field\x20will\x20allow\x20all\x20methods\n\x20AND\x20permissions\x20\ - for\x20the\x20service\x20specified\x20in\x20`service_name`.\n\n\x0f\n\ - \x07\x04\x01\x03\x02\x02\x01\x04\x12\x04\xc1\x01\x04\x0c\n\x0f\n\x07\x04\ - \x01\x03\x02\x02\x01\x06\x12\x04\xc1\x01\r\x1b\n\x0f\n\x07\x04\x01\x03\ - \x02\x02\x01\x01\x12\x04\xc1\x01\x1c,\n\x0f\n\x07\x04\x01\x03\x02\x02\ - \x01\x03\x12\x04\xc1\x01/0\n\x9b\x01\n\x04\x04\x01\x03\x03\x12\x06\xc7\ - \x01\x02\xe9\x01\x03\x1a\x8a\x01\x20The\x20source\x20that\x20[IngressPol\ - icy]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfi\ - g.IngressPolicy]\n\x20authorizes\x20access\x20from.\n\n\r\n\x05\x04\x01\ - \x03\x03\x01\x12\x04\xc7\x01\n\x17\n\x9d\x01\n\x06\x04\x01\x03\x03\x08\0\ - \x12\x06\xcb\x01\x04\xe8\x01\x05\x1a\x8a\x01\x20Allowed\x20ingress\x20so\ - urce.\x20It\x20can\x20be\x20one\x20of\x20[AccessLevel]\n\x20[google.iden\ - tity.accesscontextmanager.v1.AccessLevel]\x20or\x20Google\n\x20Cloud\x20\ - resource.\n\n\x0f\n\x07\x04\x01\x03\x03\x08\0\x01\x12\x04\xcb\x01\n\x10\ - \n\xf2\x07\n\x06\x04\x01\x03\x03\x02\0\x12\x04\xde\x01\x06\x1e\x1a\xe1\ - \x07\x20An\x20[AccessLevel]\n\x20[google.identity.accesscontextmanager.v\ - 1.AccessLevel]\x20resource\n\x20name\x20that\x20allow\x20resources\x20wi\ - thin\x20the\x20[ServicePerimeters]\n\x20[google.identity.accesscontextma\ - nager.v1.ServicePerimeter]\x20to\x20be\n\x20accessed\x20from\x20the\x20i\ - nternet.\x20[AccessLevels]\n\x20[google.identity.accesscontextmanager.v1\ - .AccessLevel]\x20listed\x20must\n\x20be\x20in\x20the\x20same\x20policy\ - \x20as\x20this\x20[ServicePerimeter]\n\x20[google.identity.accesscontext\ - manager.v1.ServicePerimeter].\n\x20Referencing\x20a\x20nonexistent\x20[A\ - ccessLevel]\n\x20[google.identity.accesscontextmanager.v1.AccessLevel]\ - \x20will\x20cause\n\x20an\x20error.\x20If\x20no\x20[AccessLevel]\n\x20[g\ - oogle.identity.accesscontextmanager.v1.AccessLevel]\x20names\x20are\n\ - \x20listed,\x20resources\x20within\x20the\x20perimeter\x20can\x20only\ - \x20be\x20accessed\x20via\x20Google\n\x20Cloud\x20calls\x20with\x20reque\ - st\x20origins\x20within\x20the\x20perimeter.\x20Example:\n\x20`accessPol\ - icies/MY_POLICY/accessLevels/MY_LEVEL`.\x20If\x20a\x20single\x20`*`\x20i\ - s\n\x20specified\x20for\x20`access_level`,\x20then\x20all\x20[IngressSou\ - rces]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConf\ - ig.IngressSource]\n\x20will\x20be\x20allowed.\n\n\x0f\n\x07\x04\x01\x03\ - \x03\x02\0\x05\x12\x04\xde\x01\x06\x0c\n\x0f\n\x07\x04\x01\x03\x03\x02\0\ - \x01\x12\x04\xde\x01\r\x19\n\x0f\n\x07\x04\x01\x03\x03\x02\0\x03\x12\x04\ - \xde\x01\x1c\x1d\n\xb7\x03\n\x06\x04\x01\x03\x03\x02\x01\x12\x04\xe7\x01\ - \x06\x1a\x1a\xa6\x03\x20A\x20Google\x20Cloud\x20resource\x20that\x20is\ - \x20allowed\x20to\x20ingress\x20the\x20perimeter.\n\x20Requests\x20from\ - \x20these\x20resources\x20will\x20be\x20allowed\x20to\x20access\x20perim\ - eter\x20data.\n\x20Currently\x20only\x20projects\x20are\x20allowed.\n\ - \x20Format:\x20`projects/{project_number}`\n\x20The\x20project\x20may\ - \x20be\x20in\x20any\x20Google\x20Cloud\x20organization,\x20not\x20just\ - \x20the\n\x20organization\x20that\x20the\x20perimeter\x20is\x20defined\ - \x20in.\x20`*`\x20is\x20not\x20allowed,\x20the\n\x20case\x20of\x20allowi\ - ng\x20all\x20Google\x20Cloud\x20resources\x20only\x20is\x20not\x20suppor\ - ted.\n\n\x0f\n\x07\x04\x01\x03\x03\x02\x01\x05\x12\x04\xe7\x01\x06\x0c\n\ - \x0f\n\x07\x04\x01\x03\x03\x02\x01\x01\x12\x04\xe7\x01\r\x15\n\x0f\n\x07\ - \x04\x01\x03\x03\x02\x01\x03\x12\x04\xe7\x01\x18\x19\n\xd8\x02\n\x04\x04\ - \x01\x03\x04\x12\x06\xf0\x01\x02\xff\x01\x03\x1a\xc7\x02\x20Defines\x20t\ - he\x20conditions\x20under\x20which\x20an\x20[IngressPolicy]\n\x20[google\ - .identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy]\ - \n\x20matches\x20a\x20request.\x20Conditions\x20are\x20based\x20on\x20in\ - formation\x20about\x20the\x20source\x20of\n\x20the\x20request.\x20The\ - \x20request\x20must\x20satisfy\x20what\x20is\x20defined\x20in\x20`source\ - s`\x20AND\n\x20identity\x20related\x20fields\x20in\x20order\x20to\x20mat\ - ch.\n\n\r\n\x05\x04\x01\x03\x04\x01\x12\x04\xf0\x01\n\x15\n\x9d\x01\n\ - \x06\x04\x01\x03\x04\x02\0\x12\x04\xf4\x01\x04'\x1a\x8c\x01\x20Sources\ - \x20that\x20this\x20[IngressPolicy]\n\x20[google.identity.accesscontextm\ - anager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20authorizes\x20acces\ - s\x20from.\n\n\x0f\n\x07\x04\x01\x03\x04\x02\0\x04\x12\x04\xf4\x01\x04\ - \x0c\n\x0f\n\x07\x04\x01\x03\x04\x02\0\x06\x12\x04\xf4\x01\r\x1a\n\x0f\n\ - \x07\x04\x01\x03\x04\x02\0\x01\x12\x04\xf4\x01\x1b\"\n\x0f\n\x07\x04\x01\ - \x03\x04\x02\0\x03\x12\x04\xf4\x01%&\n\xd4\x01\n\x06\x04\x01\x03\x04\x02\ - \x01\x12\x04\xf9\x01\x04#\x1a\xc3\x01\x20A\x20list\x20of\x20identities\ - \x20that\x20are\x20allowed\x20access\x20through\x20this\x20ingress\n\x20\ - policy.\x20Should\x20be\x20in\x20the\x20format\x20of\x20email\x20address\ - .\x20The\x20email\x20address\n\x20should\x20represent\x20individual\x20u\ - ser\x20or\x20service\x20account\x20only.\n\n\x0f\n\x07\x04\x01\x03\x04\ - \x02\x01\x04\x12\x04\xf9\x01\x04\x0c\n\x0f\n\x07\x04\x01\x03\x04\x02\x01\ - \x05\x12\x04\xf9\x01\r\x13\n\x0f\n\x07\x04\x01\x03\x04\x02\x01\x01\x12\ - \x04\xf9\x01\x14\x1e\n\x0f\n\x07\x04\x01\x03\x04\x02\x01\x03\x12\x04\xf9\ - \x01!\"\n\xb9\x01\n\x06\x04\x01\x03\x04\x02\x02\x12\x04\xfe\x01\x04#\x1a\ - \xa8\x01\x20Specifies\x20the\x20type\x20of\x20identities\x20that\x20are\ - \x20allowed\x20access\x20from\x20outside\x20the\n\x20perimeter.\x20If\ - \x20left\x20unspecified,\x20then\x20members\x20of\x20`identities`\x20fie\ - ld\x20will\n\x20be\x20allowed\x20access.\n\n\x0f\n\x07\x04\x01\x03\x04\ - \x02\x02\x06\x12\x04\xfe\x01\x04\x10\n\x0f\n\x07\x04\x01\x03\x04\x02\x02\ - \x01\x12\x04\xfe\x01\x11\x1e\n\x0f\n\x07\x04\x01\x03\x04\x02\x02\x03\x12\ - \x04\xfe\x01!\"\n\xd8\x03\n\x04\x04\x01\x03\x05\x12\x06\x89\x02\x02\x9c\ - \x02\x03\x1a\xc7\x03\x20Defines\x20the\x20conditions\x20under\x20which\ - \x20an\x20[IngressPolicy]\n\x20[google.identity.accesscontextmanager.v1.\ - ServicePerimeterConfig.IngressPolicy]\n\x20matches\x20a\x20request.\x20C\ - onditions\x20are\x20based\x20on\x20information\x20about\x20the\n\x20[Api\ - Operation]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimete\ - rConfig.ApiOperation]\n\x20intended\x20to\x20be\x20performed\x20on\x20th\ - e\x20target\x20resource\x20of\x20the\x20request.\x20The\x20request\n\x20\ - must\x20satisfy\x20what\x20is\x20defined\x20in\x20`operations`\x20AND\ - \x20`resources`\x20in\x20order\x20to\n\x20match.\n\n\r\n\x05\x04\x01\x03\ - \x05\x01\x12\x04\x89\x02\n\x13\n\xf4\x02\n\x06\x04\x01\x03\x05\x02\0\x12\ - \x04\x91\x02\x04)\x1a\xe3\x02\x20A\x20list\x20of\x20[ApiOperations]\n\ - \x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiO\ - peration]\n\x20allowed\x20to\x20be\x20performed\x20by\x20the\x20sources\ - \x20specified\x20in\x20corresponding\n\x20[IngressFrom]\n\x20[google.ide\ - ntity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]\n\x20i\ - n\x20this\x20[ServicePerimeter]\n\x20[google.identity.accesscontextmanag\ - er.v1.ServicePerimeter].\n\n\x0f\n\x07\x04\x01\x03\x05\x02\0\x04\x12\x04\ - \x91\x02\x04\x0c\n\x0f\n\x07\x04\x01\x03\x05\x02\0\x06\x12\x04\x91\x02\r\ - \x19\n\x0f\n\x07\x04\x01\x03\x05\x02\0\x01\x12\x04\x91\x02\x1a$\n\x0f\n\ - \x07\x04\x01\x03\x05\x02\0\x03\x12\x04\x91\x02'(\n\xcf\x03\n\x06\x04\x01\ - \x03\x05\x02\x01\x12\x04\x9b\x02\x04\"\x1a\xbe\x03\x20A\x20list\x20of\ - \x20resources,\x20currently\x20only\x20projects\x20in\x20the\x20form\n\ - \x20`projects/`,\x20protected\x20by\x20this\x20[ServicePe\ - rimeter]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter]\ - \x20that\x20are\n\x20allowed\x20to\x20be\x20accessed\x20by\x20sources\ - \x20defined\x20in\x20the\x20corresponding\n\x20[IngressFrom]\n\x20[googl\ - e.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom].\ - \n\x20If\x20a\x20single\x20`*`\x20is\x20specified,\x20then\x20access\x20\ - to\x20all\x20resources\x20inside\x20the\n\x20perimeter\x20are\x20allowed\ - .\n\n\x0f\n\x07\x04\x01\x03\x05\x02\x01\x04\x12\x04\x9b\x02\x04\x0c\n\ - \x0f\n\x07\x04\x01\x03\x05\x02\x01\x05\x12\x04\x9b\x02\r\x13\n\x0f\n\x07\ - \x04\x01\x03\x05\x02\x01\x01\x12\x04\x9b\x02\x14\x1d\n\x0f\n\x07\x04\x01\ - \x03\x05\x02\x01\x03\x12\x04\x9b\x02\x20!\n\x8b\x08\n\x04\x04\x01\x03\ - \x06\x12\x06\xb2\x02\x02\xbf\x02\x03\x1a\xfa\x07\x20Policy\x20for\x20ing\ - ress\x20into\x20[ServicePerimeter]\n\x20[google.identity.accesscontextma\ - nager.v1.ServicePerimeter].\n\n\x20[IngressPolicies]\n\x20[google.identi\ - ty.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20ma\ - tch\x20requests\x20based\x20on\x20`ingress_from`\x20and\x20`ingress_to`\ - \x20stanzas.\x20\x20For\x20an\n\x20ingress\x20policy\x20to\x20match,\x20\ - both\x20the\x20`ingress_from`\x20and\x20`ingress_to`\x20stanzas\n\x20mus\ - t\x20be\x20matched.\x20If\x20an\x20[IngressPolicy]\n\x20[google.identity\ - .accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20matc\ - hes\x20a\x20request,\x20the\x20request\x20is\x20allowed\x20through\x20th\ - e\x20perimeter\x20boundary\n\x20from\x20outside\x20the\x20perimeter.\n\n\ - \x20For\x20example,\x20access\x20from\x20the\x20internet\x20can\x20be\ - \x20allowed\x20either\n\x20based\x20on\x20an\x20[AccessLevel]\n\x20[goog\ - le.identity.accesscontextmanager.v1.AccessLevel]\x20or,\x20for\x20traffi\ - c\n\x20hosted\x20on\x20Google\x20Cloud,\x20the\x20project\x20of\x20the\ - \x20source\x20network.\x20For\x20access\x20from\n\x20private\x20networks\ - ,\x20using\x20the\x20project\x20of\x20the\x20hosting\x20network\x20is\ - \x20required.\n\n\x20Individual\x20ingress\x20policies\x20can\x20be\x20l\ - imited\x20by\x20restricting\x20which\n\x20services\x20and/or\x20actions\ - \x20they\x20match\x20using\x20the\x20`ingress_to`\x20field.\n\n\r\n\x05\ - \x04\x01\x03\x06\x01\x12\x04\xb2\x02\n\x17\n\xbd\x01\n\x06\x04\x01\x03\ - \x06\x02\0\x12\x04\xb7\x02\x04!\x1a\xac\x01\x20Defines\x20the\x20conditi\ - ons\x20on\x20the\x20source\x20of\x20a\x20request\x20causing\x20this\n\ - \x20[IngressPolicy]\n\x20[google.identity.accesscontextmanager.v1.Servic\ - ePerimeterConfig.IngressPolicy]\n\x20to\x20apply.\n\n\x0f\n\x07\x04\x01\ - \x03\x06\x02\0\x06\x12\x04\xb7\x02\x04\x0f\n\x0f\n\x07\x04\x01\x03\x06\ - \x02\0\x01\x12\x04\xb7\x02\x10\x1c\n\x0f\n\x07\x04\x01\x03\x06\x02\0\x03\ - \x12\x04\xb7\x02\x1f\x20\n\xa2\x02\n\x06\x04\x01\x03\x06\x02\x01\x12\x04\ - \xbe\x02\x04\x1d\x1a\x91\x02\x20Defines\x20the\x20conditions\x20on\x20th\ - e\x20[ApiOperation]\n\x20[google.identity.accesscontextmanager.v1.Servic\ - ePerimeterConfig.ApiOperation]\n\x20and\x20request\x20destination\x20tha\ - t\x20cause\x20this\x20[IngressPolicy]\n\x20[google.identity.accesscontex\ - tmanager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20to\x20apply.\n\n\ - \x0f\n\x07\x04\x01\x03\x06\x02\x01\x06\x12\x04\xbe\x02\x04\r\n\x0f\n\x07\ - \x04\x01\x03\x06\x02\x01\x01\x12\x04\xbe\x02\x0e\x18\n\x0f\n\x07\x04\x01\ - \x03\x06\x02\x01\x03\x12\x04\xbe\x02\x1b\x1c\n\x83\x05\n\x04\x04\x01\x03\ - \x07\x12\x06\xcc\x02\x02\xd6\x02\x03\x1a\xf2\x04\x20Defines\x20the\x20co\ - nditions\x20under\x20which\x20an\x20[EgressPolicy]\n\x20[google.identity\ - .accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy]\n\x20match\ - es\x20a\x20request.\x20Conditions\x20based\x20on\x20information\x20about\ - \x20the\x20source\x20of\x20the\n\x20request.\x20Note\x20that\x20if\x20th\ - e\x20destination\x20of\x20the\x20request\x20is\x20also\x20protected\x20b\ - y\x20a\n\x20[ServicePerimeter]\n\x20[google.identity.accesscontextmanage\ - r.v1.ServicePerimeter],\x20then\x20that\n\x20[ServicePerimeter]\n\x20[go\ - ogle.identity.accesscontextmanager.v1.ServicePerimeter]\x20must\x20have\ - \n\x20an\x20[IngressPolicy]\n\x20[google.identity.accesscontextmanager.v\ - 1.ServicePerimeterConfig.IngressPolicy]\n\x20which\x20allows\x20access\ - \x20in\x20order\x20for\x20this\x20request\x20to\x20succeed.\n\n\r\n\x05\ - \x04\x01\x03\x07\x01\x12\x04\xcc\x02\n\x14\n\xd4\x01\n\x06\x04\x01\x03\ - \x07\x02\0\x12\x04\xd0\x02\x04#\x1a\xc3\x01\x20A\x20list\x20of\x20identi\ - ties\x20that\x20are\x20allowed\x20access\x20through\x20this\x20[EgressPo\ - licy].\n\x20Should\x20be\x20in\x20the\x20format\x20of\x20email\x20addres\ - s.\x20The\x20email\x20address\x20should\n\x20represent\x20individual\x20\ - user\x20or\x20service\x20account\x20only.\n\n\x0f\n\x07\x04\x01\x03\x07\ - \x02\0\x04\x12\x04\xd0\x02\x04\x0c\n\x0f\n\x07\x04\x01\x03\x07\x02\0\x05\ - \x12\x04\xd0\x02\r\x13\n\x0f\n\x07\x04\x01\x03\x07\x02\0\x01\x12\x04\xd0\ - \x02\x14\x1e\n\x0f\n\x07\x04\x01\x03\x07\x02\0\x03\x12\x04\xd0\x02!\"\n\ - \xb7\x01\n\x06\x04\x01\x03\x07\x02\x01\x12\x04\xd5\x02\x04#\x1a\xa6\x01\ - \x20Specifies\x20the\x20type\x20of\x20identities\x20that\x20are\x20allow\ - ed\x20access\x20to\x20outside\x20the\n\x20perimeter.\x20If\x20left\x20un\ - specified,\x20then\x20members\x20of\x20`identities`\x20field\x20will\n\ - \x20be\x20allowed\x20access.\n\n\x0f\n\x07\x04\x01\x03\x07\x02\x01\x06\ - \x12\x04\xd5\x02\x04\x10\n\x0f\n\x07\x04\x01\x03\x07\x02\x01\x01\x12\x04\ - \xd5\x02\x11\x1e\n\x0f\n\x07\x04\x01\x03\x07\x02\x01\x03\x12\x04\xd5\x02\ - !\"\n\xf7\x06\n\x04\x04\x01\x03\x08\x12\x06\xe7\x02\x02\x81\x03\x03\x1a\ - \xe6\x06\x20Defines\x20the\x20conditions\x20under\x20which\x20an\x20[Egr\ - essPolicy]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimete\ - rConfig.EgressPolicy]\n\x20matches\x20a\x20request.\x20Conditions\x20are\ - \x20based\x20on\x20information\x20about\x20the\n\x20[ApiOperation]\n\x20\ - [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOpera\ - tion]\n\x20intended\x20to\x20be\x20performed\x20on\x20the\x20`resources`\ - \x20specified.\x20Note\x20that\x20if\x20the\n\x20destination\x20of\x20th\ - e\x20request\x20is\x20also\x20protected\x20by\x20a\x20[ServicePerimeter]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter],\x20the\ - n\x20that\n\x20[ServicePerimeter]\n\x20[google.identity.accesscontextman\ - ager.v1.ServicePerimeter]\x20must\x20have\n\x20an\x20[IngressPolicy]\n\ - \x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.Ingr\ - essPolicy]\n\x20which\x20allows\x20access\x20in\x20order\x20for\x20this\ - \x20request\x20to\x20succeed.\x20The\x20request\x20must\n\x20match\x20`o\ - perations`\x20AND\x20`resources`\x20fields\x20in\x20order\x20to\x20be\ - \x20allowed\x20egress\x20out\n\x20of\x20the\x20perimeter.\n\n\r\n\x05\ - \x04\x01\x03\x08\x01\x12\x04\xe7\x02\n\x12\n\x92\x04\n\x06\x04\x01\x03\ - \x08\x02\0\x12\x04\xf0\x02\x04\"\x1a\x81\x04\x20A\x20list\x20of\x20resou\ - rces,\x20currently\x20only\x20projects\x20in\x20the\x20form\n\x20`projec\ - ts/`,\x20that\x20are\x20allowed\x20to\x20be\x20accessed\ - \x20by\x20sources\n\x20defined\x20in\x20the\x20corresponding\x20[EgressF\ - rom]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfi\ - g.EgressFrom].\n\x20A\x20request\x20matches\x20if\x20it\x20contains\x20a\ - \x20resource\x20in\x20this\x20list.\x20\x20If\x20`*`\x20is\n\x20specifie\ - d\x20for\x20`resources`,\x20then\x20this\x20[EgressTo]\n\x20[google.iden\ - tity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo]\n\x20rule\ - \x20will\x20authorize\x20access\x20to\x20all\x20resources\x20outside\x20\ - the\x20perimeter.\n\n\x0f\n\x07\x04\x01\x03\x08\x02\0\x04\x12\x04\xf0\ - \x02\x04\x0c\n\x0f\n\x07\x04\x01\x03\x08\x02\0\x05\x12\x04\xf0\x02\r\x13\ - \n\x0f\n\x07\x04\x01\x03\x08\x02\0\x01\x12\x04\xf0\x02\x14\x1d\n\x0f\n\ - \x07\x04\x01\x03\x08\x02\0\x03\x12\x04\xf0\x02\x20!\n\xdf\x02\n\x06\x04\ - \x01\x03\x08\x02\x01\x12\x04\xf8\x02\x04)\x1a\xce\x02\x20A\x20list\x20of\ - \x20[ApiOperations]\n\x20[google.identity.accesscontextmanager.v1.Servic\ - ePerimeterConfig.ApiOperation]\n\x20allowed\x20to\x20be\x20performed\x20\ - by\x20the\x20sources\x20specified\x20in\x20the\x20corresponding\n\x20[Eg\ - ressFrom]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeter\ - Config.EgressFrom].\n\x20A\x20request\x20matches\x20if\x20it\x20uses\x20\ - an\x20operation/service\x20in\x20this\x20list.\n\n\x0f\n\x07\x04\x01\x03\ - \x08\x02\x01\x04\x12\x04\xf8\x02\x04\x0c\n\x0f\n\x07\x04\x01\x03\x08\x02\ - \x01\x06\x12\x04\xf8\x02\r\x19\n\x0f\n\x07\x04\x01\x03\x08\x02\x01\x01\ - \x12\x04\xf8\x02\x1a$\n\x0f\n\x07\x04\x01\x03\x08\x02\x01\x03\x12\x04\ - \xf8\x02'(\n\x9b\x03\n\x06\x04\x01\x03\x08\x02\x02\x12\x04\x80\x03\x04+\ - \x1a\x8a\x03\x20A\x20list\x20of\x20external\x20resources\x20that\x20are\ - \x20allowed\x20to\x20be\x20accessed.\x20Only\x20AWS\n\x20and\x20Azure\ - \x20resources\x20are\x20supported.\x20For\x20Amazon\x20S3,\x20the\x20sup\ - ported\x20format\x20is\n\x20s3://BUCKET_NAME.\x20For\x20Azure\x20Storage\ - ,\x20the\x20supported\x20format\x20is\n\x20azure://myaccount.blob.core.w\ - indows.net/CONTAINER_NAME.\x20A\x20request\x20matches\n\x20if\x20it\x20c\ - ontains\x20an\x20external\x20resource\x20in\x20this\x20list\x20(Example:\ - \n\x20s3://bucket/path).\x20Currently\x20'*'\x20is\x20not\x20allowed.\n\ - \n\x0f\n\x07\x04\x01\x03\x08\x02\x02\x04\x12\x04\x80\x03\x04\x0c\n\x0f\n\ - \x07\x04\x01\x03\x08\x02\x02\x05\x12\x04\x80\x03\r\x13\n\x0f\n\x07\x04\ - \x01\x03\x08\x02\x02\x01\x12\x04\x80\x03\x14&\n\x0f\n\x07\x04\x01\x03\ - \x08\x02\x02\x03\x12\x04\x80\x03)*\n\xa5\x0c\n\x04\x04\x01\x03\t\x12\x06\ - \x9f\x03\x02\xab\x03\x03\x1a\x94\x0c\x20Policy\x20for\x20egress\x20from\ - \x20perimeter.\n\n\x20[EgressPolicies]\n\x20[google.identity.accessconte\ - xtmanager.v1.ServicePerimeterConfig.EgressPolicy]\n\x20match\x20requests\ - \x20based\x20on\x20`egress_from`\x20and\x20`egress_to`\x20stanzas.\x20\ - \x20For\x20an\n\x20[EgressPolicy]\n\x20[google.identity.accesscontextman\ - ager.v1.ServicePerimeterConfig.EgressPolicy]\n\x20to\x20match,\x20both\ - \x20`egress_from`\x20and\x20`egress_to`\x20stanzas\x20must\x20be\x20matc\ - hed.\x20If\x20an\n\x20[EgressPolicy]\n\x20[google.identity.accesscontext\ - manager.v1.ServicePerimeterConfig.EgressPolicy]\n\x20matches\x20a\x20req\ - uest,\x20the\x20request\x20is\x20allowed\x20to\x20span\x20the\x20[Servic\ - ePerimeter]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimet\ - er]\x20boundary.\n\x20For\x20example,\x20an\x20[EgressPolicy]\n\x20[goog\ - le.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy]\ - \n\x20can\x20be\x20used\x20to\x20allow\x20VMs\x20on\x20networks\x20withi\ - n\x20the\x20[ServicePerimeter]\n\x20[google.identity.accesscontextmanage\ - r.v1.ServicePerimeter]\x20to\x20access\x20a\n\x20defined\x20set\x20of\ - \x20projects\x20outside\x20the\x20perimeter\x20in\x20certain\x20contexts\ - \x20(e.g.\x20to\n\x20read\x20data\x20from\x20a\x20Cloud\x20Storage\x20bu\ - cket\x20or\x20query\x20against\x20a\x20BigQuery\x20dataset).\n\n\x20[Egr\ - essPolicies]\n\x20[google.identity.accesscontextmanager.v1.ServicePerime\ - terConfig.EgressPolicy]\n\x20are\x20concerned\x20with\x20the\x20*resourc\ - es*\x20that\x20a\x20request\x20relates\x20as\x20well\x20as\x20the\n\x20A\ - PI\x20services\x20and\x20API\x20actions\x20being\x20used.\x20\x20They\ - \x20do\x20not\x20related\x20to\x20the\n\x20direction\x20of\x20data\x20mo\ - vement.\x20\x20More\x20detailed\x20documentation\x20for\x20this\x20conce\ - pt\n\x20can\x20be\x20found\x20in\x20the\x20descriptions\x20of\x20[Egress\ - From]\n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConf\ - ig.EgressFrom]\n\x20and\x20[EgressTo]\n\x20[google.identity.accesscontex\ - tmanager.v1.ServicePerimeterConfig.EgressTo].\n\n\r\n\x05\x04\x01\x03\t\ - \x01\x12\x04\x9f\x03\n\x16\n\xb6\x01\n\x06\x04\x01\x03\t\x02\0\x12\x04\ - \xa3\x03\x04\x1f\x1a\xa5\x01\x20Defines\x20conditions\x20on\x20the\x20so\ - urce\x20of\x20a\x20request\x20causing\x20this\x20[EgressPolicy]\n\x20[go\ - ogle.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolic\ - y]\n\x20to\x20apply.\n\n\x0f\n\x07\x04\x01\x03\t\x02\0\x06\x12\x04\xa3\ - \x03\x04\x0e\n\x0f\n\x07\x04\x01\x03\t\x02\0\x01\x12\x04\xa3\x03\x0f\x1a\ - \n\x0f\n\x07\x04\x01\x03\t\x02\0\x03\x12\x04\xa3\x03\x1d\x1e\n\xa2\x02\n\ - \x06\x04\x01\x03\t\x02\x01\x12\x04\xaa\x03\x04\x1b\x1a\x91\x02\x20Define\ - s\x20the\x20conditions\x20on\x20the\x20[ApiOperation]\n\x20[google.ident\ - ity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]\n\x20an\ - d\x20destination\x20resources\x20that\x20cause\x20this\x20[EgressPolicy]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.Eg\ - ressPolicy]\n\x20to\x20apply.\n\n\x0f\n\x07\x04\x01\x03\t\x02\x01\x06\ - \x12\x04\xaa\x03\x04\x0c\n\x0f\n\x07\x04\x01\x03\t\x02\x01\x01\x12\x04\ - \xaa\x03\r\x16\n\x0f\n\x07\x04\x01\x03\t\x02\x01\x03\x12\x04\xaa\x03\x19\ - \x1a\n\xa5\x01\n\x04\x04\x01\x02\0\x12\x04\xaf\x03\x02\x20\x1a\x96\x01\ - \x20A\x20list\x20of\x20Google\x20Cloud\x20resources\x20that\x20are\x20in\ - side\x20of\x20the\x20service\x20perimeter.\n\x20Currently\x20only\x20pro\ - jects\x20are\x20allowed.\x20Format:\x20`projects/{project_number}`\n\n\r\ - \n\x05\x04\x01\x02\0\x04\x12\x04\xaf\x03\x02\n\n\r\n\x05\x04\x01\x02\0\ - \x05\x12\x04\xaf\x03\x0b\x11\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xaf\x03\ - \x12\x1b\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xaf\x03\x1e\x1f\n\xa1\x04\n\ - \x04\x04\x01\x02\x01\x12\x04\xb9\x03\x02$\x1a\x92\x04\x20A\x20list\x20of\ - \x20`AccessLevel`\x20resource\x20names\x20that\x20allow\x20resources\x20\ - within\x20the\n\x20`ServicePerimeter`\x20to\x20be\x20accessed\x20from\ - \x20the\x20internet.\x20`AccessLevels`\x20listed\n\x20must\x20be\x20in\ - \x20the\x20same\x20policy\x20as\x20this\x20`ServicePerimeter`.\x20Refere\ - ncing\x20a\n\x20nonexistent\x20`AccessLevel`\x20is\x20a\x20syntax\x20err\ - or.\x20If\x20no\x20`AccessLevel`\x20names\x20are\n\x20listed,\x20resourc\ - es\x20within\x20the\x20perimeter\x20can\x20only\x20be\x20accessed\x20via\ - \x20Google\n\x20Cloud\x20calls\x20with\x20request\x20origins\x20within\ - \x20the\x20perimeter.\x20Example:\n\x20`\"accessPolicies/MY_POLICY/acces\ - sLevels/MY_LEVEL\"`.\n\x20For\x20Service\x20Perimeter\x20Bridge,\x20must\ - \x20be\x20empty.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\xb9\x03\x02\n\n\ - \r\n\x05\x04\x01\x02\x01\x05\x12\x04\xb9\x03\x0b\x11\n\r\n\x05\x04\x01\ - \x02\x01\x01\x12\x04\xb9\x03\x12\x1f\n\r\n\x05\x04\x01\x02\x01\x03\x12\ - \x04\xb9\x03\"#\n\xfa\x01\n\x04\x04\x01\x02\x02\x12\x04\xbf\x03\x02*\x1a\ - \xeb\x01\x20Google\x20Cloud\x20services\x20that\x20are\x20subject\x20to\ - \x20the\x20Service\x20Perimeter\n\x20restrictions.\x20For\x20example,\ - \x20if\x20`storage.googleapis.com`\x20is\x20specified,\x20access\n\x20to\ - \x20the\x20storage\x20buckets\x20inside\x20the\x20perimeter\x20must\x20m\ - eet\x20the\x20perimeter's\n\x20access\x20restrictions.\n\n\r\n\x05\x04\ - \x01\x02\x02\x04\x12\x04\xbf\x03\x02\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\ - \x04\xbf\x03\x0b\x11\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xbf\x03\x12%\ - \n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xbf\x03()\n@\n\x04\x04\x01\x02\ - \x03\x12\x04\xc2\x03\x025\x1a2\x20Configuration\x20for\x20APIs\x20allowe\ - d\x20within\x20Perimeter.\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\xc2\ - \x03\x02\x17\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xc2\x03\x18/\n\r\n\ - \x05\x04\x01\x02\x03\x03\x12\x04\xc2\x0324\n\xec\x03\n\x04\x04\x01\x02\ - \x04\x12\x04\xcc\x03\x02.\x1a\xdd\x03\x20List\x20of\x20[IngressPolicies]\ - \n\x20[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.In\ - gressPolicy]\n\x20to\x20apply\x20to\x20the\x20perimeter.\x20A\x20perimet\ - er\x20may\x20have\x20multiple\x20[IngressPolicies]\n\x20[google.identity\ - .accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy],\n\x20eac\ - h\x20of\x20which\x20is\x20evaluated\x20separately.\x20Access\x20is\x20gr\ - anted\x20if\x20any\x20[Ingress\n\x20Policy]\n\x20[google.identity.access\ - contextmanager.v1.ServicePerimeterConfig.IngressPolicy]\n\x20grants\x20i\ - t.\x20Must\x20be\x20empty\x20for\x20a\x20perimeter\x20bridge.\n\n\r\n\ - \x05\x04\x01\x02\x04\x04\x12\x04\xcc\x03\x02\n\n\r\n\x05\x04\x01\x02\x04\ - \x06\x12\x04\xcc\x03\x0b\x18\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xcc\ - \x03\x19)\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\xcc\x03,-\n\xe5\x03\n\ - \x04\x04\x01\x02\x05\x12\x04\xd6\x03\x02,\x1a\xd6\x03\x20List\x20of\x20[\ - EgressPolicies]\n\x20[google.identity.accesscontextmanager.v1.ServicePer\ - imeterConfig.EgressPolicy]\n\x20to\x20apply\x20to\x20the\x20perimeter.\ - \x20A\x20perimeter\x20may\x20have\x20multiple\x20[EgressPolicies]\n\x20[\ - google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPol\ - icy],\n\x20each\x20of\x20which\x20is\x20evaluated\x20separately.\x20Acce\ - ss\x20is\x20granted\x20if\x20any\n\x20[EgressPolicy]\n\x20[google.identi\ - ty.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy]\n\x20gra\ - nts\x20it.\x20Must\x20be\x20empty\x20for\x20a\x20perimeter\x20bridge.\n\ - \n\r\n\x05\x04\x01\x02\x05\x04\x12\x04\xd6\x03\x02\n\n\r\n\x05\x04\x01\ - \x02\x05\x06\x12\x04\xd6\x03\x0b\x17\n\r\n\x05\x04\x01\x02\x05\x01\x12\ - \x04\xd6\x03\x18'\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\xd6\x03*+b\x06pr\ - oto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/lib.rs b/googleapis-raw/src/lib.rs index 3b67730..7f07d26 100644 --- a/googleapis-raw/src/lib.rs +++ b/googleapis-raw/src/lib.rs @@ -17,7 +17,7 @@ // This appears as a comment in each generated file. Add it once here // to save a bit of time and effort. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; pub const API_CLIENT_ID: &str = "gcp-grpc-rs"; @@ -29,16 +29,16 @@ pub(crate) mod r#type; // pub mod empty; pub mod api; -#[cfg(feature = "bigtable")] pub mod bigtable; pub mod cloud; +#[cfg(feature = "bigtable")] #[cfg(any(feature = "bigtable", feature = "pubsub", feature = "spanner"))] +#[cfg(feature = "pubsub")] +#[cfg(feature = "spanner")] pub mod empty; pub mod identity; pub mod logging; pub mod longrunning; pub mod orgpolicy; -#[cfg(feature = "pubsub")] pub mod pubsub; -#[cfg(feature = "spanner")] pub mod spanner; diff --git a/googleapis-raw/src/logging/type/http_request.rs b/googleapis-raw/src/logging/type/http_request.rs index f4835ef..53b86ea 100644 --- a/googleapis-raw/src/logging/type/http_request.rs +++ b/googleapis-raw/src/logging/type/http_request.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,35 +16,86 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/logging/type/http_request.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// A common proto for logging HTTP requests. Only contains semantics +/// defined by the HTTP specification. Product-specific logging +/// information MUST be defined in a separate message. +// @@protoc_insertion_point(message:google.logging.type.HttpRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct HttpRequest { // message fields + /// The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.request_method) pub request_method: ::std::string::String, + /// The scheme (http, https), the host name, the path and the query + /// portion of the URL that was requested. + /// Example: `"http://example.com/some/info?color=red"`. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.request_url) pub request_url: ::std::string::String, + /// The size of the HTTP request message in bytes, including the request + /// headers and the request body. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.request_size) pub request_size: i64, + /// The response code indicating the status of response. + /// Examples: 200, 404. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.status) pub status: i32, + /// The size of the HTTP response message sent back to the client, in bytes, + /// including the response headers and the response body. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.response_size) pub response_size: i64, + /// The user agent sent by the client. Example: + /// `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET + /// CLR 1.0.3705)"`. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.user_agent) pub user_agent: ::std::string::String, + /// The IP address (IPv4 or IPv6) of the client that issued the HTTP + /// request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.remote_ip) pub remote_ip: ::std::string::String, + /// The IP address (IPv4 or IPv6) of the origin server that the request was + /// sent to. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.server_ip) pub server_ip: ::std::string::String, + /// The referer URL of the request, as defined in + /// [HTTP/1.1 Header Field + /// Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.referer) pub referer: ::std::string::String, - pub latency: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, + /// The request processing latency on the server, from the time the request was + /// received until the response was sent. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.latency) + pub latency: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// Whether or not a cache lookup was attempted. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.cache_lookup) pub cache_lookup: bool, + /// Whether or not an entity was served from cache + /// (with or without validation). + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.cache_hit) pub cache_hit: bool, + /// Whether or not the response was validated with the origin server before + /// being served from cache. This field is only meaningful if `cache_hit` is + /// True. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.cache_validated_with_origin_server) pub cache_validated_with_origin_server: bool, + /// The number of HTTP response bytes inserted into cache. Set only when a + /// cache fill was attempted. + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.cache_fill_bytes) pub cache_fill_bytes: i64, + /// Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" + // @@protoc_insertion_point(field:google.logging.type.HttpRequest.protocol) pub protocol: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.logging.type.HttpRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a HttpRequest { @@ -57,416 +109,149 @@ impl HttpRequest { ::std::default::Default::default() } - // string request_method = 1; - - - pub fn get_request_method(&self) -> &str { - &self.request_method - } - pub fn clear_request_method(&mut self) { - self.request_method.clear(); - } - - // Param is passed by value, moved - pub fn set_request_method(&mut self, v: ::std::string::String) { - self.request_method = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_method(&mut self) -> &mut ::std::string::String { - &mut self.request_method - } - - // Take field - pub fn take_request_method(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_method, ::std::string::String::new()) - } - - // string request_url = 2; - - - pub fn get_request_url(&self) -> &str { - &self.request_url - } - pub fn clear_request_url(&mut self) { - self.request_url.clear(); - } - - // Param is passed by value, moved - pub fn set_request_url(&mut self, v: ::std::string::String) { - self.request_url = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_url(&mut self) -> &mut ::std::string::String { - &mut self.request_url - } - - // Take field - pub fn take_request_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_url, ::std::string::String::new()) - } - - // int64 request_size = 3; - - - pub fn get_request_size(&self) -> i64 { - self.request_size - } - pub fn clear_request_size(&mut self) { - self.request_size = 0; - } - - // Param is passed by value, moved - pub fn set_request_size(&mut self, v: i64) { - self.request_size = v; - } - - // int32 status = 4; - - - pub fn get_status(&self) -> i32 { - self.status - } - pub fn clear_status(&mut self) { - self.status = 0; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: i32) { - self.status = v; - } - - // int64 response_size = 5; - - - pub fn get_response_size(&self) -> i64 { - self.response_size - } - pub fn clear_response_size(&mut self) { - self.response_size = 0; - } - - // Param is passed by value, moved - pub fn set_response_size(&mut self, v: i64) { - self.response_size = v; - } - - // string user_agent = 6; - - - pub fn get_user_agent(&self) -> &str { - &self.user_agent - } - pub fn clear_user_agent(&mut self) { - self.user_agent.clear(); - } - - // Param is passed by value, moved - pub fn set_user_agent(&mut self, v: ::std::string::String) { - self.user_agent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_user_agent(&mut self) -> &mut ::std::string::String { - &mut self.user_agent - } - - // Take field - pub fn take_user_agent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.user_agent, ::std::string::String::new()) - } - - // string remote_ip = 7; - - - pub fn get_remote_ip(&self) -> &str { - &self.remote_ip - } - pub fn clear_remote_ip(&mut self) { - self.remote_ip.clear(); - } - - // Param is passed by value, moved - pub fn set_remote_ip(&mut self, v: ::std::string::String) { - self.remote_ip = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_remote_ip(&mut self) -> &mut ::std::string::String { - &mut self.remote_ip - } - - // Take field - pub fn take_remote_ip(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.remote_ip, ::std::string::String::new()) - } - - // string server_ip = 13; - - - pub fn get_server_ip(&self) -> &str { - &self.server_ip - } - pub fn clear_server_ip(&mut self) { - self.server_ip.clear(); - } - - // Param is passed by value, moved - pub fn set_server_ip(&mut self, v: ::std::string::String) { - self.server_ip = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_server_ip(&mut self) -> &mut ::std::string::String { - &mut self.server_ip - } - - // Take field - pub fn take_server_ip(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.server_ip, ::std::string::String::new()) - } - - // string referer = 8; - - - pub fn get_referer(&self) -> &str { - &self.referer - } - pub fn clear_referer(&mut self) { - self.referer.clear(); - } - - // Param is passed by value, moved - pub fn set_referer(&mut self, v: ::std::string::String) { - self.referer = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_referer(&mut self) -> &mut ::std::string::String { - &mut self.referer - } - - // Take field - pub fn take_referer(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.referer, ::std::string::String::new()) - } - - // .google.protobuf.Duration latency = 14; - - - pub fn get_latency(&self) -> &::protobuf::well_known_types::Duration { - self.latency.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_latency(&mut self) { - self.latency.clear(); - } - - pub fn has_latency(&self) -> bool { - self.latency.is_some() - } - - // Param is passed by value, moved - pub fn set_latency(&mut self, v: ::protobuf::well_known_types::Duration) { - self.latency = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_latency(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.latency.is_none() { - self.latency.set_default(); - } - self.latency.as_mut().unwrap() - } - - // Take field - pub fn take_latency(&mut self) -> ::protobuf::well_known_types::Duration { - self.latency.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // bool cache_lookup = 11; - - - pub fn get_cache_lookup(&self) -> bool { - self.cache_lookup - } - pub fn clear_cache_lookup(&mut self) { - self.cache_lookup = false; - } - - // Param is passed by value, moved - pub fn set_cache_lookup(&mut self, v: bool) { - self.cache_lookup = v; - } - - // bool cache_hit = 9; - - - pub fn get_cache_hit(&self) -> bool { - self.cache_hit - } - pub fn clear_cache_hit(&mut self) { - self.cache_hit = false; - } - - // Param is passed by value, moved - pub fn set_cache_hit(&mut self, v: bool) { - self.cache_hit = v; - } - - // bool cache_validated_with_origin_server = 10; - - - pub fn get_cache_validated_with_origin_server(&self) -> bool { - self.cache_validated_with_origin_server - } - pub fn clear_cache_validated_with_origin_server(&mut self) { - self.cache_validated_with_origin_server = false; - } - - // Param is passed by value, moved - pub fn set_cache_validated_with_origin_server(&mut self, v: bool) { - self.cache_validated_with_origin_server = v; - } - - // int64 cache_fill_bytes = 12; - - - pub fn get_cache_fill_bytes(&self) -> i64 { - self.cache_fill_bytes - } - pub fn clear_cache_fill_bytes(&mut self) { - self.cache_fill_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_cache_fill_bytes(&mut self, v: i64) { - self.cache_fill_bytes = v; - } - - // string protocol = 15; - - - pub fn get_protocol(&self) -> &str { - &self.protocol - } - pub fn clear_protocol(&mut self) { - self.protocol.clear(); - } - - // Param is passed by value, moved - pub fn set_protocol(&mut self, v: ::std::string::String) { - self.protocol = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_protocol(&mut self) -> &mut ::std::string::String { - &mut self.protocol - } - - // Take field - pub fn take_protocol(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.protocol, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(15); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "request_method", + |m: &HttpRequest| { &m.request_method }, + |m: &mut HttpRequest| { &mut m.request_method }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "request_url", + |m: &HttpRequest| { &m.request_url }, + |m: &mut HttpRequest| { &mut m.request_url }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "request_size", + |m: &HttpRequest| { &m.request_size }, + |m: &mut HttpRequest| { &mut m.request_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "status", + |m: &HttpRequest| { &m.status }, + |m: &mut HttpRequest| { &mut m.status }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "response_size", + |m: &HttpRequest| { &m.response_size }, + |m: &mut HttpRequest| { &mut m.response_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "user_agent", + |m: &HttpRequest| { &m.user_agent }, + |m: &mut HttpRequest| { &mut m.user_agent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "remote_ip", + |m: &HttpRequest| { &m.remote_ip }, + |m: &mut HttpRequest| { &mut m.remote_ip }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "server_ip", + |m: &HttpRequest| { &m.server_ip }, + |m: &mut HttpRequest| { &mut m.server_ip }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "referer", + |m: &HttpRequest| { &m.referer }, + |m: &mut HttpRequest| { &mut m.referer }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "latency", + |m: &HttpRequest| { &m.latency }, + |m: &mut HttpRequest| { &mut m.latency }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cache_lookup", + |m: &HttpRequest| { &m.cache_lookup }, + |m: &mut HttpRequest| { &mut m.cache_lookup }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cache_hit", + |m: &HttpRequest| { &m.cache_hit }, + |m: &mut HttpRequest| { &mut m.cache_hit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cache_validated_with_origin_server", + |m: &HttpRequest| { &m.cache_validated_with_origin_server }, + |m: &mut HttpRequest| { &mut m.cache_validated_with_origin_server }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "cache_fill_bytes", + |m: &HttpRequest| { &m.cache_fill_bytes }, + |m: &mut HttpRequest| { &mut m.cache_fill_bytes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "protocol", + |m: &HttpRequest| { &m.protocol }, + |m: &mut HttpRequest| { &mut m.protocol }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "HttpRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for HttpRequest { + const NAME: &'static str = "HttpRequest"; + fn is_initialized(&self) -> bool { - for v in &self.latency { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_method)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.request_method = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_url)?; + 18 => { + self.request_url = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.request_size = tmp; + 24 => { + self.request_size = is.read_int64()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.status = tmp; + 32 => { + self.status = is.read_int32()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.response_size = tmp; + 40 => { + self.response_size = is.read_int64()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.user_agent)?; + 50 => { + self.user_agent = is.read_string()?; }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.remote_ip)?; + 58 => { + self.remote_ip = is.read_string()?; }, - 13 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.server_ip)?; + 106 => { + self.server_ip = is.read_string()?; }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.referer)?; + 66 => { + self.referer = is.read_string()?; }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.latency)?; + 114 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.latency)?; }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_lookup = tmp; + 88 => { + self.cache_lookup = is.read_bool()?; }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_hit = tmp; + 72 => { + self.cache_hit = is.read_bool()?; }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cache_validated_with_origin_server = tmp; + 80 => { + self.cache_validated_with_origin_server = is.read_bool()?; }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.cache_fill_bytes = tmp; + 96 => { + self.cache_fill_bytes = is.read_int64()?; }, - 15 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.protocol)?; + 122 => { + self.protocol = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -475,7 +260,7 @@ impl ::protobuf::Message for HttpRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.request_method.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.request_method); @@ -484,13 +269,13 @@ impl ::protobuf::Message for HttpRequest { my_size += ::protobuf::rt::string_size(2, &self.request_url); } if self.request_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.request_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(3, self.request_size); } if self.status != 0 { - my_size += ::protobuf::rt::value_size(4, self.status, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(4, self.status); } if self.response_size != 0 { - my_size += ::protobuf::rt::value_size(5, self.response_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(5, self.response_size); } if !self.user_agent.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.user_agent); @@ -504,31 +289,31 @@ impl ::protobuf::Message for HttpRequest { if !self.referer.is_empty() { my_size += ::protobuf::rt::string_size(8, &self.referer); } - if let Some(ref v) = self.latency.as_ref() { + if let Some(v) = self.latency.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.cache_lookup != false { - my_size += 2; + my_size += 1 + 1; } if self.cache_hit != false { - my_size += 2; + my_size += 1 + 1; } if self.cache_validated_with_origin_server != false { - my_size += 2; + my_size += 1 + 1; } if self.cache_fill_bytes != 0 { - my_size += ::protobuf::rt::value_size(12, self.cache_fill_bytes, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(12, self.cache_fill_bytes); } if !self.protocol.is_empty() { my_size += ::protobuf::rt::string_size(15, &self.protocol); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.request_method.is_empty() { os.write_string(1, &self.request_method)?; } @@ -556,10 +341,8 @@ impl ::protobuf::Message for HttpRequest { if !self.referer.is_empty() { os.write_string(8, &self.referer)?; } - if let Some(ref v) = self.latency.as_ref() { - os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.latency.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(14, v, os)?; } if self.cache_lookup != false { os.write_bool(11, self.cache_lookup)?; @@ -576,134 +359,22 @@ impl ::protobuf::Message for HttpRequest { if !self.protocol.is_empty() { os.write_string(15, &self.protocol)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> HttpRequest { HttpRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_method", - |m: &HttpRequest| { &m.request_method }, - |m: &mut HttpRequest| { &mut m.request_method }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_url", - |m: &HttpRequest| { &m.request_url }, - |m: &mut HttpRequest| { &mut m.request_url }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "request_size", - |m: &HttpRequest| { &m.request_size }, - |m: &mut HttpRequest| { &mut m.request_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "status", - |m: &HttpRequest| { &m.status }, - |m: &mut HttpRequest| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "response_size", - |m: &HttpRequest| { &m.response_size }, - |m: &mut HttpRequest| { &mut m.response_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "user_agent", - |m: &HttpRequest| { &m.user_agent }, - |m: &mut HttpRequest| { &mut m.user_agent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "remote_ip", - |m: &HttpRequest| { &m.remote_ip }, - |m: &mut HttpRequest| { &mut m.remote_ip }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "server_ip", - |m: &HttpRequest| { &m.server_ip }, - |m: &mut HttpRequest| { &mut m.server_ip }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "referer", - |m: &HttpRequest| { &m.referer }, - |m: &mut HttpRequest| { &mut m.referer }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "latency", - |m: &HttpRequest| { &m.latency }, - |m: &mut HttpRequest| { &mut m.latency }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_lookup", - |m: &HttpRequest| { &m.cache_lookup }, - |m: &mut HttpRequest| { &mut m.cache_lookup }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_hit", - |m: &HttpRequest| { &m.cache_hit }, - |m: &mut HttpRequest| { &mut m.cache_hit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cache_validated_with_origin_server", - |m: &HttpRequest| { &m.cache_validated_with_origin_server }, - |m: &mut HttpRequest| { &mut m.cache_validated_with_origin_server }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "cache_fill_bytes", - |m: &HttpRequest| { &m.cache_fill_bytes }, - |m: &mut HttpRequest| { &mut m.cache_fill_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "protocol", - |m: &HttpRequest| { &m.protocol }, - |m: &mut HttpRequest| { &mut m.protocol }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpRequest::new) - } -} - -impl ::protobuf::Clear for HttpRequest { fn clear(&mut self) { self.request_method.clear(); self.request_url.clear(); @@ -720,153 +391,195 @@ impl ::protobuf::Clear for HttpRequest { self.cache_validated_with_origin_server = false; self.cache_fill_bytes = 0; self.protocol.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static HttpRequest { + static instance: HttpRequest = HttpRequest { + request_method: ::std::string::String::new(), + request_url: ::std::string::String::new(), + request_size: 0, + status: 0, + response_size: 0, + user_agent: ::std::string::String::new(), + remote_ip: ::std::string::String::new(), + server_ip: ::std::string::String::new(), + referer: ::std::string::String::new(), + latency: ::protobuf::MessageField::none(), + cache_lookup: false, + cache_hit: false, + cache_validated_with_origin_server: false, + cache_fill_bytes: 0, + protocol: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for HttpRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("HttpRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for HttpRequest { +impl ::std::fmt::Display for HttpRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for HttpRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n&google/logging/type/http_request.proto\x12\x13google.logging.type\x1a\ - \x1egoogle/protobuf/duration.proto\"\xaf\x04\n\x0bHttpRequest\x12%\n\x0e\ - request_method\x18\x01\x20\x01(\tR\rrequestMethod\x12\x1f\n\x0brequest_u\ - rl\x18\x02\x20\x01(\tR\nrequestUrl\x12!\n\x0crequest_size\x18\x03\x20\ - \x01(\x03R\x0brequestSize\x12\x16\n\x06status\x18\x04\x20\x01(\x05R\x06s\ - tatus\x12#\n\rresponse_size\x18\x05\x20\x01(\x03R\x0cresponseSize\x12\ - \x1d\n\nuser_agent\x18\x06\x20\x01(\tR\tuserAgent\x12\x1b\n\tremote_ip\ - \x18\x07\x20\x01(\tR\x08remoteIp\x12\x1b\n\tserver_ip\x18\r\x20\x01(\tR\ - \x08serverIp\x12\x18\n\x07referer\x18\x08\x20\x01(\tR\x07referer\x123\n\ - \x07latency\x18\x0e\x20\x01(\x0b2\x19.google.protobuf.DurationR\x07laten\ - cy\x12!\n\x0ccache_lookup\x18\x0b\x20\x01(\x08R\x0bcacheLookup\x12\x1b\n\ - \tcache_hit\x18\t\x20\x01(\x08R\x08cacheHit\x12J\n\"cache_validated_with\ - _origin_server\x18\n\x20\x01(\x08R\x1ecacheValidatedWithOriginServer\x12\ - (\n\x10cache_fill_bytes\x18\x0c\x20\x01(\x03R\x0ecacheFillBytes\x12\x1a\ - \n\x08protocol\x18\x0f\x20\x01(\tR\x08protocolB\xbe\x01\n\x17com.google.\ - logging.typeB\x10HttpRequestProtoP\x01Z8google.golang.org/genproto/googl\ - eapis/logging/type;ltype\xaa\x02\x19Google.Cloud.Logging.Type\xca\x02\ - \x19Google\\Cloud\\Logging\\Type\xea\x02\x1cGoogle::Cloud::Logging::Type\ - J\x8e\x1c\n\x06\x12\x04\x0e\0^\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x12\ - 2\xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x1c\n\t\n\x02\x03\0\x12\x03\x12\0(\n\x08\n\x01\x08\ - \x12\x03\x14\06\n\t\n\x02\x08%\x12\x03\x14\06\n\x08\n\x01\x08\x12\x03\ - \x15\0O\n\t\n\x02\x08\x0b\x12\x03\x15\0O\n\x08\n\x01\x08\x12\x03\x16\0\"\ - \n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\ - \x02\x08\x08\x12\x03\x17\01\n\x08\n\x01\x08\x12\x03\x18\00\n\t\n\x02\x08\ - \x01\x12\x03\x18\00\n\x08\n\x01\x08\x12\x03\x19\06\n\t\n\x02\x08)\x12\ - \x03\x19\06\n\x08\n\x01\x08\x12\x03\x1a\05\n\t\n\x02\x08-\x12\x03\x1a\05\ - \n\xc1\x01\n\x02\x04\0\x12\x04\x1f\0^\x01\x1a\xb4\x01\x20A\x20common\x20\ - proto\x20for\x20logging\x20HTTP\x20requests.\x20Only\x20contains\x20sema\ - ntics\n\x20defined\x20by\x20the\x20HTTP\x20specification.\x20Product-spe\ - cific\x20logging\n\x20information\x20MUST\x20be\x20defined\x20in\x20a\ - \x20separate\x20message.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x13\nR\n\ - \x04\x04\0\x02\0\x12\x03!\x02\x1c\x1aE\x20The\x20request\x20method.\x20E\ - xamples:\x20`\"GET\"`,\x20`\"HEAD\"`,\x20`\"PUT\"`,\x20`\"POST\"`.\n\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03!\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ - \x12\x03!\t\x17\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x1a\x1b\n\xad\x01\n\ - \x04\x04\0\x02\x01\x12\x03&\x02\x19\x1a\x9f\x01\x20The\x20scheme\x20(htt\ - p,\x20https),\x20the\x20host\x20name,\x20the\x20path\x20and\x20the\x20qu\ - ery\n\x20portion\x20of\x20the\x20URL\x20that\x20was\x20requested.\n\x20E\ - xample:\x20`\"http://example.com/some/info?color=red\"`.\n\n\x0c\n\x05\ - \x04\0\x02\x01\x05\x12\x03&\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x03&\t\x14\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03&\x17\x18\nr\n\x04\x04\ - \0\x02\x02\x12\x03*\x02\x19\x1ae\x20The\x20size\x20of\x20the\x20HTTP\x20\ - request\x20message\x20in\x20bytes,\x20including\x20the\x20request\n\x20h\ - eaders\x20and\x20the\x20request\x20body.\n\n\x0c\n\x05\x04\0\x02\x02\x05\ - \x12\x03*\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03*\x08\x14\n\x0c\n\ - \x05\x04\0\x02\x02\x03\x12\x03*\x17\x18\nX\n\x04\x04\0\x02\x03\x12\x03.\ - \x02\x13\x1aK\x20The\x20response\x20code\x20indicating\x20the\x20status\ - \x20of\x20response.\n\x20Examples:\x20200,\x20404.\n\n\x0c\n\x05\x04\0\ - \x02\x03\x05\x12\x03.\x02\x07\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03.\x08\ - \x0e\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03.\x11\x12\n\x8f\x01\n\x04\x04\ - \0\x02\x04\x12\x032\x02\x1a\x1a\x81\x01\x20The\x20size\x20of\x20the\x20H\ - TTP\x20response\x20message\x20sent\x20back\x20to\x20the\x20client,\x20in\ - \x20bytes,\n\x20including\x20the\x20response\x20headers\x20and\x20the\ - \x20response\x20body.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x032\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x04\x01\x12\x032\x08\x15\n\x0c\n\x05\x04\0\x02\x04\ - \x03\x12\x032\x18\x19\n\x8c\x01\n\x04\x04\0\x02\x05\x12\x037\x02\x18\x1a\ - \x7f\x20The\x20user\x20agent\x20sent\x20by\x20the\x20client.\x20Example:\ - \n\x20`\"Mozilla/4.0\x20(compatible;\x20MSIE\x206.0;\x20Windows\x2098;\ - \x20Q312461;\x20.NET\n\x20CLR\x201.0.3705)\"`.\n\n\x0c\n\x05\x04\0\x02\ - \x05\x05\x12\x037\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x037\t\x13\n\ - \x0c\n\x05\x04\0\x02\x05\x03\x12\x037\x16\x17\n\xcf\x01\n\x04\x04\0\x02\ - \x06\x12\x03<\x02\x17\x1a\xc1\x01\x20The\x20IP\x20address\x20(IPv4\x20or\ - \x20IPv6)\x20of\x20the\x20client\x20that\x20issued\x20the\x20HTTP\n\x20r\ - equest.\x20This\x20field\x20can\x20include\x20port\x20information.\x20Ex\ - amples:\n\x20`\"192.168.1.1\"`,\x20`\"10.0.0.1:80\"`,\x20`\"FE80::0202:B\ - 3FF:FE1E:8329\"`.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03<\x02\x08\n\x0c\ - \n\x05\x04\0\x02\x06\x01\x12\x03<\t\x12\n\x0c\n\x05\x04\0\x02\x06\x03\ - \x12\x03<\x15\x16\n\xd6\x01\n\x04\x04\0\x02\x07\x12\x03A\x02\x18\x1a\xc8\ - \x01\x20The\x20IP\x20address\x20(IPv4\x20or\x20IPv6)\x20of\x20the\x20ori\ - gin\x20server\x20that\x20the\x20request\x20was\n\x20sent\x20to.\x20This\ - \x20field\x20can\x20include\x20port\x20information.\x20Examples:\n\x20`\ - \"192.168.1.1\"`,\x20`\"10.0.0.1:80\"`,\x20`\"FE80::0202:B3FF:FE1E:8329\ - \"`.\n\n\x0c\n\x05\x04\0\x02\x07\x05\x12\x03A\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x07\x01\x12\x03A\t\x12\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03A\x15\ - \x17\n\xa1\x01\n\x04\x04\0\x02\x08\x12\x03F\x02\x15\x1a\x93\x01\x20The\ - \x20referer\x20URL\x20of\x20the\x20request,\x20as\x20defined\x20in\n\x20\ - [HTTP/1.1\x20Header\x20Field\n\x20Definitions](https://datatracker.ietf.\ - org/doc/html/rfc2616#section-14.36).\n\n\x0c\n\x05\x04\0\x02\x08\x05\x12\ - \x03F\x02\x08\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03F\t\x10\n\x0c\n\x05\ - \x04\0\x02\x08\x03\x12\x03F\x13\x14\n\x81\x01\n\x04\x04\0\x02\t\x12\x03J\ - \x02(\x1at\x20The\x20request\x20processing\x20latency\x20on\x20the\x20se\ - rver,\x20from\x20the\x20time\x20the\x20request\x20was\n\x20received\x20u\ - ntil\x20the\x20response\x20was\x20sent.\n\n\x0c\n\x05\x04\0\x02\t\x06\ - \x12\x03J\x02\x1a\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03J\x1b\"\n\x0c\n\x05\ - \x04\0\x02\t\x03\x12\x03J%'\n;\n\x04\x04\0\x02\n\x12\x03M\x02\x19\x1a.\ - \x20Whether\x20or\x20not\x20a\x20cache\x20lookup\x20was\x20attempted.\n\ - \n\x0c\n\x05\x04\0\x02\n\x05\x12\x03M\x02\x06\n\x0c\n\x05\x04\0\x02\n\ - \x01\x12\x03M\x07\x13\n\x0c\n\x05\x04\0\x02\n\x03\x12\x03M\x16\x18\n\\\n\ - \x04\x04\0\x02\x0b\x12\x03Q\x02\x15\x1aO\x20Whether\x20or\x20not\x20an\ - \x20entity\x20was\x20served\x20from\x20cache\n\x20(with\x20or\x20without\ - \x20validation).\n\n\x0c\n\x05\x04\0\x02\x0b\x05\x12\x03Q\x02\x06\n\x0c\ - \n\x05\x04\0\x02\x0b\x01\x12\x03Q\x07\x10\n\x0c\n\x05\x04\0\x02\x0b\x03\ - \x12\x03Q\x13\x14\n\xa8\x01\n\x04\x04\0\x02\x0c\x12\x03V\x02/\x1a\x9a\ - \x01\x20Whether\x20or\x20not\x20the\x20response\x20was\x20validated\x20w\ - ith\x20the\x20origin\x20server\x20before\n\x20being\x20served\x20from\ - \x20cache.\x20This\x20field\x20is\x20only\x20meaningful\x20if\x20`cache_\ - hit`\x20is\n\x20True.\n\n\x0c\n\x05\x04\0\x02\x0c\x05\x12\x03V\x02\x06\n\ - \x0c\n\x05\x04\0\x02\x0c\x01\x12\x03V\x07)\n\x0c\n\x05\x04\0\x02\x0c\x03\ - \x12\x03V,.\np\n\x04\x04\0\x02\r\x12\x03Z\x02\x1e\x1ac\x20The\x20number\ - \x20of\x20HTTP\x20response\x20bytes\x20inserted\x20into\x20cache.\x20Set\ - \x20only\x20when\x20a\n\x20cache\x20fill\x20was\x20attempted.\n\n\x0c\n\ - \x05\x04\0\x02\r\x05\x12\x03Z\x02\x07\n\x0c\n\x05\x04\0\x02\r\x01\x12\ - \x03Z\x08\x18\n\x0c\n\x05\x04\0\x02\r\x03\x12\x03Z\x1b\x1d\nY\n\x04\x04\ - \0\x02\x0e\x12\x03]\x02\x17\x1aL\x20Protocol\x20used\x20for\x20the\x20re\ - quest.\x20Examples:\x20\"HTTP/1.1\",\x20\"HTTP/2\",\x20\"websocket\"\n\n\ - \x0c\n\x05\x04\0\x02\x0e\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\0\x02\x0e\ - \x01\x12\x03]\t\x11\n\x0c\n\x05\x04\0\x02\x0e\x03\x12\x03]\x14\x16b\x06p\ - roto3\ + \x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto\"\ + \xaf\x04\n\x0bHttpRequest\x12%\n\x0erequest_method\x18\x01\x20\x01(\tR\r\ + requestMethod\x12\x1f\n\x0brequest_url\x18\x02\x20\x01(\tR\nrequestUrl\ + \x12!\n\x0crequest_size\x18\x03\x20\x01(\x03R\x0brequestSize\x12\x16\n\ + \x06status\x18\x04\x20\x01(\x05R\x06status\x12#\n\rresponse_size\x18\x05\ + \x20\x01(\x03R\x0cresponseSize\x12\x1d\n\nuser_agent\x18\x06\x20\x01(\tR\ + \tuserAgent\x12\x1b\n\tremote_ip\x18\x07\x20\x01(\tR\x08remoteIp\x12\x1b\ + \n\tserver_ip\x18\r\x20\x01(\tR\x08serverIp\x12\x18\n\x07referer\x18\x08\ + \x20\x01(\tR\x07referer\x123\n\x07latency\x18\x0e\x20\x01(\x0b2\x19.goog\ + le.protobuf.DurationR\x07latency\x12!\n\x0ccache_lookup\x18\x0b\x20\x01(\ + \x08R\x0bcacheLookup\x12\x1b\n\tcache_hit\x18\t\x20\x01(\x08R\x08cacheHi\ + t\x12J\n\"cache_validated_with_origin_server\x18\n\x20\x01(\x08R\x1ecach\ + eValidatedWithOriginServer\x12(\n\x10cache_fill_bytes\x18\x0c\x20\x01(\ + \x03R\x0ecacheFillBytes\x12\x1a\n\x08protocol\x18\x0f\x20\x01(\tR\x08pro\ + tocolB\x9f\x01\n\x17com.google.logging.typeB\x10HttpRequestProtoP\x01Z8g\ + oogle.golang.org/genproto/googleapis/logging/type;ltype\xaa\x02\x19Googl\ + e.Cloud.Logging.Type\xca\x02\x19Google\\Cloud\\Logging\\TypeJ\xcf\x1a\n\ + \x06\x12\x04\x0f\0]\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\ + \x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\ + \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ + ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ + \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ + \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ + censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ + \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ + \x12\x03\x11\0\x1c\n\t\n\x02\x03\0\x12\x03\x13\0(\n\t\n\x02\x03\x01\x12\ + \x03\x14\0&\n\x08\n\x01\x08\x12\x03\x16\06\n\t\n\x02\x08%\x12\x03\x16\06\ + \n\x08\n\x01\x08\x12\x03\x17\0O\n\t\n\x02\x08\x0b\x12\x03\x17\0O\n\x08\n\ + \x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\ + \x12\x03\x19\01\n\t\n\x02\x08\x08\x12\x03\x19\01\n\x08\n\x01\x08\x12\x03\ + \x1a\00\n\t\n\x02\x08\x01\x12\x03\x1a\00\n\x08\n\x01\x08\x12\x03\x1b\06\ + \n\t\n\x02\x08)\x12\x03\x1b\06\n\xc1\x01\n\x02\x04\0\x12\x04\x20\0]\x01\ + \x1a\xb4\x01\x20A\x20common\x20proto\x20for\x20logging\x20HTTP\x20reques\ + ts.\x20Only\x20contains\x20semantics\n\x20defined\x20by\x20the\x20HTTP\ + \x20specification.\x20Product-specific\x20logging\n\x20information\x20MU\ + ST\x20be\x20defined\x20in\x20a\x20separate\x20message.\n\n\n\n\x03\x04\0\ + \x01\x12\x03\x20\x08\x13\nR\n\x04\x04\0\x02\0\x12\x03\"\x02\x1c\x1aE\x20\ + The\x20request\x20method.\x20Examples:\x20`\"GET\"`,\x20`\"HEAD\"`,\x20`\ + \"PUT\"`,\x20`\"POST\"`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\"\x02\x08\ + \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\"\t\x17\n\x0c\n\x05\x04\0\x02\0\x03\ + \x12\x03\"\x1a\x1b\n\xad\x01\n\x04\x04\0\x02\x01\x12\x03'\x02\x19\x1a\ + \x9f\x01\x20The\x20scheme\x20(http,\x20https),\x20the\x20host\x20name,\ + \x20the\x20path\x20and\x20the\x20query\n\x20portion\x20of\x20the\x20URL\ + \x20that\x20was\x20requested.\n\x20Example:\x20`\"http://example.com/som\ + e/info?color=red\"`.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03'\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x03'\t\x14\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03'\x17\x18\nr\n\x04\x04\0\x02\x02\x12\x03+\x02\x19\x1ae\x20Th\ + e\x20size\x20of\x20the\x20HTTP\x20request\x20message\x20in\x20bytes,\x20\ + including\x20the\x20request\n\x20headers\x20and\x20the\x20request\x20bod\ + y.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03+\x02\x07\n\x0c\n\x05\x04\0\ + \x02\x02\x01\x12\x03+\x08\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03+\x17\ + \x18\nX\n\x04\x04\0\x02\x03\x12\x03/\x02\x13\x1aK\x20The\x20response\x20\ + code\x20indicating\x20the\x20status\x20of\x20response.\n\x20Examples:\ + \x20200,\x20404.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03/\x02\x07\n\x0c\ + \n\x05\x04\0\x02\x03\x01\x12\x03/\x08\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\ + \x12\x03/\x11\x12\n\x8f\x01\n\x04\x04\0\x02\x04\x12\x033\x02\x1a\x1a\x81\ + \x01\x20The\x20size\x20of\x20the\x20HTTP\x20response\x20message\x20sent\ + \x20back\x20to\x20the\x20client,\x20in\x20bytes,\n\x20including\x20the\ + \x20response\x20headers\x20and\x20the\x20response\x20body.\n\n\x0c\n\x05\ + \x04\0\x02\x04\x05\x12\x033\x02\x07\n\x0c\n\x05\x04\0\x02\x04\x01\x12\ + \x033\x08\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x033\x18\x19\n\x8c\x01\n\ + \x04\x04\0\x02\x05\x12\x038\x02\x18\x1a\x7f\x20The\x20user\x20agent\x20s\ + ent\x20by\x20the\x20client.\x20Example:\n\x20`\"Mozilla/4.0\x20(compatib\ + le;\x20MSIE\x206.0;\x20Windows\x2098;\x20Q312461;\x20.NET\n\x20CLR\x201.\ + 0.3705)\"`.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x038\x02\x08\n\x0c\n\x05\ + \x04\0\x02\x05\x01\x12\x038\t\x13\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x038\ + \x16\x17\n\x94\x01\n\x04\x04\0\x02\x06\x12\x03<\x02\x17\x1a\x86\x01\x20T\ + he\x20IP\x20address\x20(IPv4\x20or\x20IPv6)\x20of\x20the\x20client\x20th\ + at\x20issued\x20the\x20HTTP\n\x20request.\x20Examples:\x20`\"192.168.1.1\ + \"`,\x20`\"FE80::0202:B3FF:FE1E:8329\"`.\n\n\x0c\n\x05\x04\0\x02\x06\x05\ + \x12\x03<\x02\x08\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03<\t\x12\n\x0c\n\ + \x05\x04\0\x02\x06\x03\x12\x03<\x15\x16\n`\n\x04\x04\0\x02\x07\x12\x03@\ + \x02\x18\x1aS\x20The\x20IP\x20address\x20(IPv4\x20or\x20IPv6)\x20of\x20t\ + he\x20origin\x20server\x20that\x20the\x20request\x20was\n\x20sent\x20to.\ + \n\n\x0c\n\x05\x04\0\x02\x07\x05\x12\x03@\x02\x08\n\x0c\n\x05\x04\0\x02\ + \x07\x01\x12\x03@\t\x12\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03@\x15\x17\n\ + \x9c\x01\n\x04\x04\0\x02\x08\x12\x03E\x02\x15\x1a\x8e\x01\x20The\x20refe\ + rer\x20URL\x20of\x20the\x20request,\x20as\x20defined\x20in\n\x20[HTTP/1.\ + 1\x20Header\x20Field\n\x20Definitions](http://www.w3.org/Protocols/rfc26\ + 16/rfc2616-sec14.html).\n\n\x0c\n\x05\x04\0\x02\x08\x05\x12\x03E\x02\x08\ + \n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03E\t\x10\n\x0c\n\x05\x04\0\x02\x08\ + \x03\x12\x03E\x13\x14\n\x81\x01\n\x04\x04\0\x02\t\x12\x03I\x02(\x1at\x20\ + The\x20request\x20processing\x20latency\x20on\x20the\x20server,\x20from\ + \x20the\x20time\x20the\x20request\x20was\n\x20received\x20until\x20the\ + \x20response\x20was\x20sent.\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03I\x02\ + \x1a\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03I\x1b\"\n\x0c\n\x05\x04\0\x02\t\ + \x03\x12\x03I%'\n;\n\x04\x04\0\x02\n\x12\x03L\x02\x19\x1a.\x20Whether\ + \x20or\x20not\x20a\x20cache\x20lookup\x20was\x20attempted.\n\n\x0c\n\x05\ + \x04\0\x02\n\x05\x12\x03L\x02\x06\n\x0c\n\x05\x04\0\x02\n\x01\x12\x03L\ + \x07\x13\n\x0c\n\x05\x04\0\x02\n\x03\x12\x03L\x16\x18\n\\\n\x04\x04\0\ + \x02\x0b\x12\x03P\x02\x15\x1aO\x20Whether\x20or\x20not\x20an\x20entity\ + \x20was\x20served\x20from\x20cache\n\x20(with\x20or\x20without\x20valida\ + tion).\n\n\x0c\n\x05\x04\0\x02\x0b\x05\x12\x03P\x02\x06\n\x0c\n\x05\x04\ + \0\x02\x0b\x01\x12\x03P\x07\x10\n\x0c\n\x05\x04\0\x02\x0b\x03\x12\x03P\ + \x13\x14\n\xa8\x01\n\x04\x04\0\x02\x0c\x12\x03U\x02/\x1a\x9a\x01\x20Whet\ + her\x20or\x20not\x20the\x20response\x20was\x20validated\x20with\x20the\ + \x20origin\x20server\x20before\n\x20being\x20served\x20from\x20cache.\ + \x20This\x20field\x20is\x20only\x20meaningful\x20if\x20`cache_hit`\x20is\ + \n\x20True.\n\n\x0c\n\x05\x04\0\x02\x0c\x05\x12\x03U\x02\x06\n\x0c\n\x05\ + \x04\0\x02\x0c\x01\x12\x03U\x07)\n\x0c\n\x05\x04\0\x02\x0c\x03\x12\x03U,\ + .\np\n\x04\x04\0\x02\r\x12\x03Y\x02\x1e\x1ac\x20The\x20number\x20of\x20H\ + TTP\x20response\x20bytes\x20inserted\x20into\x20cache.\x20Set\x20only\ + \x20when\x20a\n\x20cache\x20fill\x20was\x20attempted.\n\n\x0c\n\x05\x04\ + \0\x02\r\x05\x12\x03Y\x02\x07\n\x0c\n\x05\x04\0\x02\r\x01\x12\x03Y\x08\ + \x18\n\x0c\n\x05\x04\0\x02\r\x03\x12\x03Y\x1b\x1d\nY\n\x04\x04\0\x02\x0e\ + \x12\x03\\\x02\x17\x1aL\x20Protocol\x20used\x20for\x20the\x20request.\ + \x20Examples:\x20\"HTTP/1.1\",\x20\"HTTP/2\",\x20\"websocket\"\n\n\x0c\n\ + \x05\x04\0\x02\x0e\x05\x12\x03\\\x02\x08\n\x0c\n\x05\x04\0\x02\x0e\x01\ + \x12\x03\\\t\x11\n\x0c\n\x05\x04\0\x02\x0e\x03\x12\x03\\\x14\x16b\x06pro\ + to3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(HttpRequest::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/logging/type/log_severity.rs b/googleapis-raw/src/logging/type/log_severity.rs index 2a17cee..92be613 100644 --- a/googleapis-raw/src/logging/type/log_severity.rs +++ b/googleapis-raw/src/logging/type/log_severity.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,28 +16,41 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/logging/type/log_severity.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.logging.type.LogSeverity) pub enum LogSeverity { + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.DEFAULT) DEFAULT = 0, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.DEBUG) DEBUG = 100, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.INFO) INFO = 200, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.NOTICE) NOTICE = 300, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.WARNING) WARNING = 400, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.ERROR) ERROR = 500, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.CRITICAL) CRITICAL = 600, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.ALERT) ALERT = 700, + // @@protoc_insertion_point(enum_value:google.logging.type.LogSeverity.EMERGENCY) EMERGENCY = 800, } -impl ::protobuf::ProtobufEnum for LogSeverity { +impl ::protobuf::Enum for LogSeverity { + const NAME: &'static str = "LogSeverity"; + fn value(&self) -> i32 { *self as i32 } @@ -56,30 +70,54 @@ impl ::protobuf::ProtobufEnum for LogSeverity { } } - fn values() -> &'static [Self] { - static values: &'static [LogSeverity] = &[ - LogSeverity::DEFAULT, - LogSeverity::DEBUG, - LogSeverity::INFO, - LogSeverity::NOTICE, - LogSeverity::WARNING, - LogSeverity::ERROR, - LogSeverity::CRITICAL, - LogSeverity::ALERT, - LogSeverity::EMERGENCY, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "DEFAULT" => ::std::option::Option::Some(LogSeverity::DEFAULT), + "DEBUG" => ::std::option::Option::Some(LogSeverity::DEBUG), + "INFO" => ::std::option::Option::Some(LogSeverity::INFO), + "NOTICE" => ::std::option::Option::Some(LogSeverity::NOTICE), + "WARNING" => ::std::option::Option::Some(LogSeverity::WARNING), + "ERROR" => ::std::option::Option::Some(LogSeverity::ERROR), + "CRITICAL" => ::std::option::Option::Some(LogSeverity::CRITICAL), + "ALERT" => ::std::option::Option::Some(LogSeverity::ALERT), + "EMERGENCY" => ::std::option::Option::Some(LogSeverity::EMERGENCY), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("LogSeverity", file_descriptor_proto()) - }) - } + const VALUES: &'static [LogSeverity] = &[ + LogSeverity::DEFAULT, + LogSeverity::DEBUG, + LogSeverity::INFO, + LogSeverity::NOTICE, + LogSeverity::WARNING, + LogSeverity::ERROR, + LogSeverity::CRITICAL, + LogSeverity::ALERT, + LogSeverity::EMERGENCY, + ]; } -impl ::std::marker::Copy for LogSeverity { +impl ::protobuf::EnumFull for LogSeverity { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("LogSeverity").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + LogSeverity::DEFAULT => 0, + LogSeverity::DEBUG => 1, + LogSeverity::INFO => 2, + LogSeverity::NOTICE => 3, + LogSeverity::WARNING => 4, + LogSeverity::ERROR => 5, + LogSeverity::CRITICAL => 6, + LogSeverity::ALERT => 7, + LogSeverity::EMERGENCY => 8, + }; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for LogSeverity { @@ -88,98 +126,114 @@ impl ::std::default::Default for LogSeverity { } } -impl ::protobuf::reflect::ProtobufValue for LogSeverity { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl LogSeverity { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("LogSeverity") } } static file_descriptor_proto_data: &'static [u8] = b"\ - \n&google/logging/type/log_severity.proto\x12\x13google.logging.type*\ - \x82\x01\n\x0bLogSeverity\x12\x0b\n\x07DEFAULT\x10\0\x12\t\n\x05DEBUG\ - \x10d\x12\t\n\x04INFO\x10\xc8\x01\x12\x0b\n\x06NOTICE\x10\xac\x02\x12\ - \x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05ERROR\x10\xf4\x03\x12\r\n\x08CR\ - ITICAL\x10\xd8\x04\x12\n\n\x05ALERT\x10\xbc\x05\x12\x0e\n\tEMERGENCY\x10\ - \xa0\x06B\xc5\x01\n\x17com.google.logging.typeB\x10LogSeverityProtoP\x01\ - Z8google.golang.org/genproto/googleapis/logging/type;ltype\xa2\x02\x04GL\ - OG\xaa\x02\x19Google.Cloud.Logging.Type\xca\x02\x19Google\\Cloud\\Loggin\ - g\\Type\xea\x02\x1cGoogle::Cloud::Logging::TypeJ\x84\x13\n\x06\x12\x04\ - \x0e\0F\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\ - icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\ - t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ - \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ - nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ - 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1c\ - \n\x08\n\x01\x08\x12\x03\x12\06\n\t\n\x02\x08%\x12\x03\x12\06\n\x08\n\ - \x01\x08\x12\x03\x13\0O\n\t\n\x02\x08\x0b\x12\x03\x13\0O\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\01\n\t\n\x02\x08\x08\x12\x03\x15\01\n\x08\n\x01\x08\x12\x03\x16\00\ - \n\t\n\x02\x08\x01\x12\x03\x16\00\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ - \x02\x08$\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\06\n\t\n\x02\x08)\ - \x12\x03\x18\06\n\x08\n\x01\x08\x12\x03\x19\05\n\t\n\x02\x08-\x12\x03\ - \x19\05\n\x8b\x06\n\x02\x05\0\x12\x04*\0F\x01\x1a\xfe\x05\x20The\x20seve\ - rity\x20of\x20the\x20event\x20described\x20in\x20a\x20log\x20entry,\x20e\ - xpressed\x20as\x20one\x20of\x20the\n\x20standard\x20severity\x20levels\ - \x20listed\x20below.\x20\x20For\x20your\x20reference,\x20the\x20levels\ - \x20are\n\x20assigned\x20the\x20listed\x20numeric\x20values.\x20The\x20e\ - ffect\x20of\x20using\x20numeric\x20values\x20other\n\x20than\x20those\ - \x20listed\x20is\x20undefined.\n\n\x20You\x20can\x20filter\x20for\x20log\ - \x20entries\x20by\x20severity.\x20\x20For\x20example,\x20the\x20followin\ - g\n\x20filter\x20expression\x20will\x20match\x20log\x20entries\x20with\ - \x20severities\x20`INFO`,\x20`NOTICE`,\n\x20and\x20`WARNING`:\n\n\x20\ - \x20\x20\x20\x20severity\x20>\x20DEBUG\x20AND\x20severity\x20<=\x20WARNI\ - NG\n\n\x20If\x20you\x20are\x20writing\x20log\x20entries,\x20you\x20shoul\ - d\x20map\x20other\x20severity\x20encodings\x20to\n\x20one\x20of\x20these\ - \x20standard\x20levels.\x20For\x20example,\x20you\x20might\x20map\x20all\ - \x20of\x20Java's\x20FINE,\n\x20FINER,\x20and\x20FINEST\x20levels\x20to\ - \x20`LogSeverity.DEBUG`.\x20You\x20can\x20preserve\x20the\n\x20original\ - \x20severity\x20level\x20in\x20the\x20log\x20entry\x20payload\x20if\x20y\ - ou\x20wish.\n\n\n\n\x03\x05\0\x01\x12\x03*\x05\x10\n@\n\x04\x05\0\x02\0\ - \x12\x03,\x02\x0e\x1a3\x20(0)\x20The\x20log\x20entry\x20has\x20no\x20ass\ - igned\x20severity\x20level.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03,\x02\t\ - \n\x0c\n\x05\x05\0\x02\0\x02\x12\x03,\x0c\r\n0\n\x04\x05\0\x02\x01\x12\ - \x03/\x02\x0e\x1a#\x20(100)\x20Debug\x20or\x20trace\x20information.\n\n\ - \x0c\n\x05\x05\0\x02\x01\x01\x12\x03/\x02\x07\n\x0c\n\x05\x05\0\x02\x01\ - \x02\x12\x03/\n\r\nP\n\x04\x05\0\x02\x02\x12\x032\x02\r\x1aC\x20(200)\ - \x20Routine\x20information,\x20such\x20as\x20ongoing\x20status\x20or\x20\ - performance.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x032\x02\x06\n\x0c\n\ - \x05\x05\0\x02\x02\x02\x12\x032\t\x0c\nl\n\x04\x05\0\x02\x03\x12\x036\ - \x02\x0f\x1a_\x20(300)\x20Normal\x20but\x20significant\x20events,\x20suc\ - h\x20as\x20start\x20up,\x20shut\x20down,\x20or\n\x20a\x20configuration\ - \x20change.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x036\x02\x08\n\x0c\n\x05\ - \x05\0\x02\x03\x02\x12\x036\x0b\x0e\n9\n\x04\x05\0\x02\x04\x12\x039\x02\ - \x10\x1a,\x20(400)\x20Warning\x20events\x20might\x20cause\x20problems.\n\ - \n\x0c\n\x05\x05\0\x02\x04\x01\x12\x039\x02\t\n\x0c\n\x05\x05\0\x02\x04\ - \x02\x12\x039\x0c\x0f\n?\n\x04\x05\0\x02\x05\x12\x03<\x02\x0e\x1a2\x20(5\ - 00)\x20Error\x20events\x20are\x20likely\x20to\x20cause\x20problems.\n\n\ - \x0c\n\x05\x05\0\x02\x05\x01\x12\x03<\x02\x07\n\x0c\n\x05\x05\0\x02\x05\ - \x02\x12\x03<\n\r\nK\n\x04\x05\0\x02\x06\x12\x03?\x02\x11\x1a>\x20(600)\ - \x20Critical\x20events\x20cause\x20more\x20severe\x20problems\x20or\x20o\ - utages.\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x03?\x02\n\n\x0c\n\x05\x05\0\ - \x02\x06\x02\x12\x03?\r\x10\n>\n\x04\x05\0\x02\x07\x12\x03B\x02\x0e\x1a1\ - \x20(700)\x20A\x20person\x20must\x20take\x20an\x20action\x20immediately.\ - \n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03B\x02\x07\n\x0c\n\x05\x05\0\x02\ - \x07\x02\x12\x03B\n\r\n6\n\x04\x05\0\x02\x08\x12\x03E\x02\x12\x1a)\x20(8\ - 00)\x20One\x20or\x20more\x20systems\x20are\x20unusable.\n\n\x0c\n\x05\ - \x05\0\x02\x08\x01\x12\x03E\x02\x0b\n\x0c\n\x05\x05\0\x02\x08\x02\x12\ - \x03E\x0e\x11b\x06proto3\ + \n&google/logging/type/log_severity.proto\x12\x13google.logging.type\x1a\ + \x1cgoogle/api/annotations.proto*\x82\x01\n\x0bLogSeverity\x12\x0b\n\x07\ + DEFAULT\x10\0\x12\t\n\x05DEBUG\x10d\x12\t\n\x04INFO\x10\xc8\x01\x12\x0b\ + \n\x06NOTICE\x10\xac\x02\x12\x0c\n\x07WARNING\x10\x90\x03\x12\n\n\x05ERR\ + OR\x10\xf4\x03\x12\r\n\x08CRITICAL\x10\xd8\x04\x12\n\n\x05ALERT\x10\xbc\ + \x05\x12\x0e\n\tEMERGENCY\x10\xa0\x06B\x9f\x01\n\x17com.google.logging.t\ + ypeB\x10LogSeverityProtoP\x01Z8google.golang.org/genproto/googleapis/log\ + ging/type;ltype\xaa\x02\x19Google.Cloud.Logging.Type\xca\x02\x19Google\\\ + Cloud\\Logging\\TypeJ\xe7\x12\n\x06\x12\x04\x0f\0G\x01\n\xbe\x04\n\x01\ + \x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\ + \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ + \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ + \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ + y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x1c\n\t\n\x02\x03\0\x12\ + \x03\x13\0&\n\x08\n\x01\x08\x12\x03\x15\06\n\t\n\x02\x08%\x12\x03\x15\06\ + \n\x08\n\x01\x08\x12\x03\x16\0O\n\t\n\x02\x08\x0b\x12\x03\x16\0O\n\x08\n\ + \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\ + \x12\x03\x18\01\n\t\n\x02\x08\x08\x12\x03\x18\01\n\x08\n\x01\x08\x12\x03\ + \x19\00\n\t\n\x02\x08\x01\x12\x03\x19\00\n\x08\n\x01\x08\x12\x03\x1a\06\ + \n\t\n\x02\x08)\x12\x03\x1a\06\n\x8b\x06\n\x02\x05\0\x12\x04+\0G\x01\x1a\ + \xfe\x05\x20The\x20severity\x20of\x20the\x20event\x20described\x20in\x20\ + a\x20log\x20entry,\x20expressed\x20as\x20one\x20of\x20the\n\x20standard\ + \x20severity\x20levels\x20listed\x20below.\x20\x20For\x20your\x20referen\ + ce,\x20the\x20levels\x20are\n\x20assigned\x20the\x20listed\x20numeric\ + \x20values.\x20The\x20effect\x20of\x20using\x20numeric\x20values\x20othe\ + r\n\x20than\x20those\x20listed\x20is\x20undefined.\n\n\x20You\x20can\x20\ + filter\x20for\x20log\x20entries\x20by\x20severity.\x20\x20For\x20example\ + ,\x20the\x20following\n\x20filter\x20expression\x20will\x20match\x20log\ + \x20entries\x20with\x20severities\x20`INFO`,\x20`NOTICE`,\n\x20and\x20`W\ + ARNING`:\n\n\x20\x20\x20\x20\x20severity\x20>\x20DEBUG\x20AND\x20severit\ + y\x20<=\x20WARNING\n\n\x20If\x20you\x20are\x20writing\x20log\x20entries,\ + \x20you\x20should\x20map\x20other\x20severity\x20encodings\x20to\n\x20on\ + e\x20of\x20these\x20standard\x20levels.\x20For\x20example,\x20you\x20mig\ + ht\x20map\x20all\x20of\x20Java's\x20FINE,\n\x20FINER,\x20and\x20FINEST\ + \x20levels\x20to\x20`LogSeverity.DEBUG`.\x20You\x20can\x20preserve\x20th\ + e\n\x20original\x20severity\x20level\x20in\x20the\x20log\x20entry\x20pay\ + load\x20if\x20you\x20wish.\n\n\n\n\x03\x05\0\x01\x12\x03+\x05\x10\n@\n\ + \x04\x05\0\x02\0\x12\x03-\x02\x0e\x1a3\x20(0)\x20The\x20log\x20entry\x20\ + has\x20no\x20assigned\x20severity\x20level.\n\n\x0c\n\x05\x05\0\x02\0\ + \x01\x12\x03-\x02\t\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03-\x0c\r\n0\n\x04\ + \x05\0\x02\x01\x12\x030\x02\x0e\x1a#\x20(100)\x20Debug\x20or\x20trace\ + \x20information.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x030\x02\x07\n\x0c\ + \n\x05\x05\0\x02\x01\x02\x12\x030\n\r\nP\n\x04\x05\0\x02\x02\x12\x033\ + \x02\r\x1aC\x20(200)\x20Routine\x20information,\x20such\x20as\x20ongoing\ + \x20status\x20or\x20performance.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\ + 3\x02\x06\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x033\t\x0c\nl\n\x04\x05\0\ + \x02\x03\x12\x037\x02\x0f\x1a_\x20(300)\x20Normal\x20but\x20significant\ + \x20events,\x20such\x20as\x20start\x20up,\x20shut\x20down,\x20or\n\x20a\ + \x20configuration\x20change.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x037\ + \x02\x08\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x037\x0b\x0e\n9\n\x04\x05\0\ + \x02\x04\x12\x03:\x02\x10\x1a,\x20(400)\x20Warning\x20events\x20might\ + \x20cause\x20problems.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03:\x02\t\n\ + \x0c\n\x05\x05\0\x02\x04\x02\x12\x03:\x0c\x0f\n?\n\x04\x05\0\x02\x05\x12\ + \x03=\x02\x0e\x1a2\x20(500)\x20Error\x20events\x20are\x20likely\x20to\ + \x20cause\x20problems.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03=\x02\x07\ + \n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03=\n\r\nK\n\x04\x05\0\x02\x06\x12\ + \x03@\x02\x11\x1a>\x20(600)\x20Critical\x20events\x20cause\x20more\x20se\ + vere\x20problems\x20or\x20outages.\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\ + \x03@\x02\n\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03@\r\x10\n>\n\x04\x05\0\ + \x02\x07\x12\x03C\x02\x0e\x1a1\x20(700)\x20A\x20person\x20must\x20take\ + \x20an\x20action\x20immediately.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03\ + C\x02\x07\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x03C\n\r\n6\n\x04\x05\0\x02\ + \x08\x12\x03F\x02\x12\x1a)\x20(800)\x20One\x20or\x20more\x20systems\x20a\ + re\x20unusable.\n\n\x0c\n\x05\x05\0\x02\x08\x01\x12\x03F\x02\x0b\n\x0c\n\ + \x05\x05\0\x02\x08\x02\x12\x03F\x0e\x11b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(LogSeverity::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/logging/type/mod.rs b/googleapis-raw/src/logging/type/mod.rs index 407cc3f..af17a77 100644 --- a/googleapis-raw/src/logging/type/mod.rs +++ b/googleapis-raw/src/logging/type/mod.rs @@ -1,4 +1,5 @@ // @generated +pub(crate) use crate::api::annotations; pub mod http_request; pub mod log_severity; diff --git a/googleapis-raw/src/longrunning/mod.rs b/googleapis-raw/src/longrunning/mod.rs index e2c44fc..52e7671 100644 --- a/googleapis-raw/src/longrunning/mod.rs +++ b/googleapis-raw/src/longrunning/mod.rs @@ -1,10 +1,5 @@ // @generated - -use crate::{ - empty, - rpc::status, - -}; +pub(crate) use crate::{api::annotations, empty, rpc::status}; pub mod operations; pub mod operations_grpc; diff --git a/googleapis-raw/src/longrunning/operations.rs b/googleapis-raw/src/longrunning/operations.rs index 157546c..1c44e2f 100644 --- a/googleapis-raw/src/longrunning/operations.rs +++ b/googleapis-raw/src/longrunning/operations.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,25 +16,42 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/longrunning/operations.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// This resource represents a long-running operation that is the result of a +/// network API call. +// @@protoc_insertion_point(message:google.longrunning.Operation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Operation { // message fields + /// The server-assigned name, which is only unique within the same service that + /// originally returns it. If you use the default HTTP mapping, the + /// `name` should have the format of `operations/some/unique/name`. + // @@protoc_insertion_point(field:google.longrunning.Operation.name) pub name: ::std::string::String, - pub metadata: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>, + /// Service-specific metadata associated with the operation. It typically + /// contains progress information and common metadata such as create time. + /// Some services might not provide such metadata. Any method that returns a + /// long-running operation should document the metadata type, if any. + // @@protoc_insertion_point(field:google.longrunning.Operation.metadata) + pub metadata: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>, + /// If the value is `false`, it means the operation is still in progress. + /// If `true`, the operation is completed, and either `error` or `response` is + /// available. + // @@protoc_insertion_point(field:google.longrunning.Operation.done) pub done: bool, // message oneof groups - pub result: ::std::option::Option, + pub result: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.Operation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Operation { @@ -42,124 +60,44 @@ impl<'a> ::std::default::Default for &'a Operation { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Operation_oneof_result { - error(super::status::Status), - response(::protobuf::well_known_types::Any), -} - impl Operation { pub fn new() -> Operation { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Any metadata = 2; - - - pub fn get_metadata(&self) -> &::protobuf::well_known_types::Any { - self.metadata.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance()) - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - pub fn has_metadata(&self) -> bool { - self.metadata.is_some() - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: ::protobuf::well_known_types::Any) { - self.metadata = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata(&mut self) -> &mut ::protobuf::well_known_types::Any { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> ::protobuf::well_known_types::Any { - self.metadata.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new()) - } - - // bool done = 3; - - - pub fn get_done(&self) -> bool { - self.done - } - pub fn clear_done(&mut self) { - self.done = false; - } - - // Param is passed by value, moved - pub fn set_done(&mut self, v: bool) { - self.done = v; - } - // .google.rpc.Status error = 4; - - pub fn get_error(&self) -> &super::status::Status { + pub fn error(&self) -> &super::status::Status { match self.result { - ::std::option::Option::Some(Operation_oneof_result::error(ref v)) => v, + ::std::option::Option::Some(operation::Result::Error(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_error(&mut self) { self.result = ::std::option::Option::None; } pub fn has_error(&self) -> bool { match self.result { - ::std::option::Option::Some(Operation_oneof_result::error(..)) => true, + ::std::option::Option::Some(operation::Result::Error(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_error(&mut self, v: super::status::Status) { - self.result = ::std::option::Option::Some(Operation_oneof_result::error(v)) + self.result = ::std::option::Option::Some(operation::Result::Error(v)) } // Mutable pointer to the field. pub fn mut_error(&mut self) -> &mut super::status::Status { - if let ::std::option::Option::Some(Operation_oneof_result::error(_)) = self.result { + if let ::std::option::Option::Some(operation::Result::Error(_)) = self.result { } else { - self.result = ::std::option::Option::Some(Operation_oneof_result::error(super::status::Status::new())); + self.result = ::std::option::Option::Some(operation::Result::Error(super::status::Status::new())); } match self.result { - ::std::option::Option::Some(Operation_oneof_result::error(ref mut v)) => v, + ::std::option::Option::Some(operation::Result::Error(ref mut v)) => v, _ => panic!(), } } @@ -168,7 +106,7 @@ impl Operation { pub fn take_error(&mut self) -> super::status::Status { if self.has_error() { match self.result.take() { - ::std::option::Option::Some(Operation_oneof_result::error(v)) => v, + ::std::option::Option::Some(operation::Result::Error(v)) => v, _ => panic!(), } } else { @@ -178,105 +116,121 @@ impl Operation { // .google.protobuf.Any response = 5; - - pub fn get_response(&self) -> &::protobuf::well_known_types::Any { + pub fn response(&self) -> &::protobuf::well_known_types::any::Any { match self.result { - ::std::option::Option::Some(Operation_oneof_result::response(ref v)) => v, - _ => <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(operation::Result::Response(ref v)) => v, + _ => <::protobuf::well_known_types::any::Any as ::protobuf::Message>::default_instance(), } } + pub fn clear_response(&mut self) { self.result = ::std::option::Option::None; } pub fn has_response(&self) -> bool { match self.result { - ::std::option::Option::Some(Operation_oneof_result::response(..)) => true, + ::std::option::Option::Some(operation::Result::Response(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_response(&mut self, v: ::protobuf::well_known_types::Any) { - self.result = ::std::option::Option::Some(Operation_oneof_result::response(v)) + pub fn set_response(&mut self, v: ::protobuf::well_known_types::any::Any) { + self.result = ::std::option::Option::Some(operation::Result::Response(v)) } // Mutable pointer to the field. - pub fn mut_response(&mut self) -> &mut ::protobuf::well_known_types::Any { - if let ::std::option::Option::Some(Operation_oneof_result::response(_)) = self.result { + pub fn mut_response(&mut self) -> &mut ::protobuf::well_known_types::any::Any { + if let ::std::option::Option::Some(operation::Result::Response(_)) = self.result { } else { - self.result = ::std::option::Option::Some(Operation_oneof_result::response(::protobuf::well_known_types::Any::new())); + self.result = ::std::option::Option::Some(operation::Result::Response(::protobuf::well_known_types::any::Any::new())); } match self.result { - ::std::option::Option::Some(Operation_oneof_result::response(ref mut v)) => v, + ::std::option::Option::Some(operation::Result::Response(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_response(&mut self) -> ::protobuf::well_known_types::Any { + pub fn take_response(&mut self) -> ::protobuf::well_known_types::any::Any { if self.has_response() { match self.result.take() { - ::std::option::Option::Some(Operation_oneof_result::response(v)) => v, + ::std::option::Option::Some(operation::Result::Response(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::Any::new() + ::protobuf::well_known_types::any::Any::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Operation| { &m.name }, + |m: &mut Operation| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>( + "metadata", + |m: &Operation| { &m.metadata }, + |m: &mut Operation| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "done", + |m: &Operation| { &m.done }, + |m: &mut Operation| { &mut m.done }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::status::Status>( + "error", + Operation::has_error, + Operation::error, + Operation::mut_error, + Operation::set_error, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::any::Any>( + "response", + Operation::has_response, + Operation::response, + Operation::mut_response, + Operation::set_response, + )); + oneofs.push(operation::Result::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Operation", + fields, + oneofs, + ) + } } impl ::protobuf::Message for Operation { + const NAME: &'static str = "Operation"; + fn is_initialized(&self) -> bool { - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - if let Some(Operation_oneof_result::error(ref v)) = self.result { - if !v.is_initialized() { - return false; - } - } - if let Some(Operation_oneof_result::response(ref v)) = self.result { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.done = tmp; + 24 => { + self.done = is.read_bool()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.result = ::std::option::Option::Some(Operation_oneof_result::error(is.read_message()?)); + 34 => { + self.result = ::std::option::Option::Some(operation::Result::Error(is.read_message()?)); }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.result = ::std::option::Option::Some(Operation_oneof_result::response(is.read_message()?)); + 42 => { + self.result = ::std::option::Option::Some(operation::Result::Response(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -285,168 +239,150 @@ impl ::protobuf::Message for Operation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if let Some(ref v) = self.metadata.as_ref() { + if let Some(v) = self.metadata.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.done != false { - my_size += 2; + my_size += 1 + 1; } if let ::std::option::Option::Some(ref v) = self.result { match v { - &Operation_oneof_result::error(ref v) => { + &operation::Result::Error(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Operation_oneof_result::response(ref v) => { + &operation::Result::Response(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if let Some(ref v) = self.metadata.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.metadata.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if self.done != false { os.write_bool(3, self.done)?; } if let ::std::option::Option::Some(ref v) = self.result { match v { - &Operation_oneof_result::error(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &operation::Result::Error(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }, - &Operation_oneof_result::response(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &operation::Result::Response(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Operation { Operation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Operation| { &m.name }, - |m: &mut Operation| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "metadata", - |m: &Operation| { &m.metadata }, - |m: &mut Operation| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "done", - |m: &Operation| { &m.done }, - |m: &mut Operation| { &mut m.done }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::status::Status>( - "error", - Operation::has_error, - Operation::get_error, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Any>( - "response", - Operation::has_response, - Operation::get_response, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Operation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Operation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Operation::new) - } -} - -impl ::protobuf::Clear for Operation { fn clear(&mut self) { self.name.clear(); self.metadata.clear(); self.done = false; self.result = ::std::option::Option::None; self.result = ::std::option::Option::None; - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Operation { + static instance: Operation = Operation { + name: ::std::string::String::new(), + metadata: ::protobuf::MessageField::none(), + done: false, + result: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for Operation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Operation").unwrap()).clone() } } -impl ::std::fmt::Debug for Operation { +impl ::std::fmt::Display for Operation { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Operation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `Operation` +pub mod operation { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.longrunning.Operation.result) + pub enum Result { + // @@protoc_insertion_point(oneof_field:google.longrunning.Operation.error) + Error(super::super::status::Status), + // @@protoc_insertion_point(oneof_field:google.longrunning.Operation.response) + Response(::protobuf::well_known_types::any::Any), + } + + impl ::protobuf::Oneof for Result { + } + + impl ::protobuf::OneofFull for Result { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("result").unwrap()).clone() + } + } + + impl Result { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("result") + } } } -#[derive(PartialEq,Clone,Default)] +/// The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation]. +// @@protoc_insertion_point(message:google.longrunning.GetOperationRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetOperationRequest { // message fields + /// The name of the operation resource. + // @@protoc_insertion_point(field:google.longrunning.GetOperationRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.GetOperationRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetOperationRequest { @@ -460,47 +396,37 @@ impl GetOperationRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetOperationRequest| { &m.name }, + |m: &mut GetOperationRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetOperationRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetOperationRequest { + const NAME: &'static str = "GetOperationRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -509,106 +435,87 @@ impl ::protobuf::Message for GetOperationRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetOperationRequest { GetOperationRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetOperationRequest| { &m.name }, - |m: &mut GetOperationRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOperationRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetOperationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetOperationRequest::new) + static instance: GetOperationRequest = GetOperationRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetOperationRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetOperationRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetOperationRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetOperationRequest { +impl ::std::fmt::Display for GetOperationRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetOperationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. +// @@protoc_insertion_point(message:google.longrunning.ListOperationsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListOperationsRequest { // message fields + /// The name of the operation's parent resource. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsRequest.name) pub name: ::std::string::String, + /// The standard list filter. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsRequest.filter) pub filter: ::std::string::String, + /// The standard list page size. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsRequest.page_size) pub page_size: i32, + /// The standard list page token. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.ListOperationsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListOperationsRequest { @@ -622,127 +529,61 @@ impl ListOperationsRequest { ::std::default::Default::default() } - // string name = 4; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string filter = 1; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &ListOperationsRequest| { &m.name }, + |m: &mut ListOperationsRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "filter", + |m: &ListOperationsRequest| { &m.filter }, + |m: &mut ListOperationsRequest| { &mut m.filter }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListOperationsRequest| { &m.page_size }, + |m: &mut ListOperationsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListOperationsRequest| { &m.page_token }, + |m: &mut ListOperationsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListOperationsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListOperationsRequest { + const NAME: &'static str = "ListOperationsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 34 => { + self.name = is.read_string()?; }, - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; + 10 => { + self.filter = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -751,7 +592,7 @@ impl ::protobuf::Message for ListOperationsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.name); @@ -760,17 +601,17 @@ impl ::protobuf::Message for ListOperationsRequest { my_size += ::protobuf::rt::string_size(1, &self.filter); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(4, &self.name)?; } @@ -783,108 +624,73 @@ impl ::protobuf::Message for ListOperationsRequest { if !self.page_token.is_empty() { os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListOperationsRequest { ListOperationsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ListOperationsRequest| { &m.name }, - |m: &mut ListOperationsRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListOperationsRequest| { &m.filter }, - |m: &mut ListOperationsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListOperationsRequest| { &m.page_size }, - |m: &mut ListOperationsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListOperationsRequest| { &m.page_token }, - |m: &mut ListOperationsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOperationsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.filter.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListOperationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOperationsRequest::new) + static instance: ListOperationsRequest = ListOperationsRequest { + name: ::std::string::String::new(), + filter: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListOperationsRequest { - fn clear(&mut self) { - self.name.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListOperationsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListOperationsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListOperationsRequest { +impl ::std::fmt::Display for ListOperationsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListOperationsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. +// @@protoc_insertion_point(message:google.longrunning.ListOperationsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListOperationsResponse { // message fields - pub operations: ::protobuf::RepeatedField, + /// A list of operations that matches the specified filter in the request. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsResponse.operations) + pub operations: ::std::vec::Vec, + /// The standard List next-page token. + // @@protoc_insertion_point(field:google.longrunning.ListOperationsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.ListOperationsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListOperationsResponse { @@ -898,80 +704,45 @@ impl ListOperationsResponse { ::std::default::Default::default() } - // repeated .google.longrunning.Operation operations = 1; - - - pub fn get_operations(&self) -> &[Operation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "operations", + |m: &ListOperationsResponse| { &m.operations }, + |m: &mut ListOperationsResponse| { &mut m.operations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListOperationsResponse| { &m.next_page_token }, + |m: &mut ListOperationsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListOperationsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListOperationsResponse { + const NAME: &'static str = "ListOperationsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operations.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -980,118 +751,87 @@ impl ::protobuf::Message for ListOperationsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.operations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.operations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListOperationsResponse { ListOperationsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ListOperationsResponse| { &m.operations }, - |m: &mut ListOperationsResponse| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListOperationsResponse| { &m.next_page_token }, - |m: &mut ListOperationsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListOperationsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.operations.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListOperationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListOperationsResponse::new) + static instance: ListOperationsResponse = ListOperationsResponse { + operations: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListOperationsResponse { - fn clear(&mut self) { - self.operations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListOperationsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListOperationsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListOperationsResponse { +impl ::std::fmt::Display for ListOperationsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListOperationsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. +// @@protoc_insertion_point(message:google.longrunning.CancelOperationRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CancelOperationRequest { // message fields + /// The name of the operation resource to be cancelled. + // @@protoc_insertion_point(field:google.longrunning.CancelOperationRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.CancelOperationRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CancelOperationRequest { @@ -1105,47 +845,37 @@ impl CancelOperationRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &CancelOperationRequest| { &m.name }, + |m: &mut CancelOperationRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CancelOperationRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CancelOperationRequest { + const NAME: &'static str = "CancelOperationRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1154,103 +884,78 @@ impl ::protobuf::Message for CancelOperationRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CancelOperationRequest { CancelOperationRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CancelOperationRequest| { &m.name }, - |m: &mut CancelOperationRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CancelOperationRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CancelOperationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CancelOperationRequest::new) + static instance: CancelOperationRequest = CancelOperationRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CancelOperationRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CancelOperationRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CancelOperationRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CancelOperationRequest { +impl ::std::fmt::Display for CancelOperationRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CancelOperationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. +// @@protoc_insertion_point(message:google.longrunning.DeleteOperationRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteOperationRequest { // message fields + /// The name of the operation resource to be deleted. + // @@protoc_insertion_point(field:google.longrunning.DeleteOperationRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.DeleteOperationRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteOperationRequest { @@ -1264,47 +969,37 @@ impl DeleteOperationRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteOperationRequest| { &m.name }, + |m: &mut DeleteOperationRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteOperationRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteOperationRequest { + const NAME: &'static str = "DeleteOperationRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1313,104 +1008,83 @@ impl ::protobuf::Message for DeleteOperationRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteOperationRequest { DeleteOperationRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteOperationRequest| { &m.name }, - |m: &mut DeleteOperationRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteOperationRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteOperationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteOperationRequest::new) + static instance: DeleteOperationRequest = DeleteOperationRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteOperationRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteOperationRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteOperationRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteOperationRequest { +impl ::std::fmt::Display for DeleteOperationRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteOperationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation]. +// @@protoc_insertion_point(message:google.longrunning.WaitOperationRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct WaitOperationRequest { // message fields + /// The name of the operation resource to wait on. + // @@protoc_insertion_point(field:google.longrunning.WaitOperationRequest.name) pub name: ::std::string::String, - pub timeout: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, + /// The maximum duration to wait before timing out. If left blank, the wait + /// will be at most the time permitted by the underlying HTTP/RPC protocol. + /// If RPC context deadline is also specified, the shorter one will be used. + // @@protoc_insertion_point(field:google.longrunning.WaitOperationRequest.timeout) + pub timeout: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.WaitOperationRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a WaitOperationRequest { @@ -1424,88 +1098,45 @@ impl WaitOperationRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Duration timeout = 2; - - - pub fn get_timeout(&self) -> &::protobuf::well_known_types::Duration { - self.timeout.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_timeout(&mut self) { - self.timeout.clear(); - } - - pub fn has_timeout(&self) -> bool { - self.timeout.is_some() - } - - // Param is passed by value, moved - pub fn set_timeout(&mut self, v: ::protobuf::well_known_types::Duration) { - self.timeout = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_timeout(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.timeout.is_none() { - self.timeout.set_default(); - } - self.timeout.as_mut().unwrap() - } - - // Take field - pub fn take_timeout(&mut self) -> ::protobuf::well_known_types::Duration { - self.timeout.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &WaitOperationRequest| { &m.name }, + |m: &mut WaitOperationRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "timeout", + |m: &WaitOperationRequest| { &m.timeout }, + |m: &mut WaitOperationRequest| { &mut m.timeout }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "WaitOperationRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for WaitOperationRequest { + const NAME: &'static str = "WaitOperationRequest"; + fn is_initialized(&self) -> bool { - for v in &self.timeout { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timeout)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.timeout)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1514,119 +1145,102 @@ impl ::protobuf::Message for WaitOperationRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - if let Some(ref v) = self.timeout.as_ref() { + if let Some(v) = self.timeout.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - if let Some(ref v) = self.timeout.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.timeout.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> WaitOperationRequest { WaitOperationRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &WaitOperationRequest| { &m.name }, - |m: &mut WaitOperationRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "timeout", - |m: &WaitOperationRequest| { &m.timeout }, - |m: &mut WaitOperationRequest| { &mut m.timeout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WaitOperationRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.timeout.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static WaitOperationRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(WaitOperationRequest::new) + static instance: WaitOperationRequest = WaitOperationRequest { + name: ::std::string::String::new(), + timeout: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for WaitOperationRequest { - fn clear(&mut self) { - self.name.clear(); - self.timeout.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for WaitOperationRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("WaitOperationRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for WaitOperationRequest { +impl ::std::fmt::Display for WaitOperationRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for WaitOperationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.longrunning.OperationInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct OperationInfo { // message fields + /// Required. The message name of the primary return type for this + /// long-running operation. + /// This type will be used to deserialize the LRO's response. + /// + /// If the response is in a different package from the rpc, a fully-qualified + /// message name must be used (e.g. `google.protobuf.Struct`). + /// + /// Note: Altering this value constitutes a breaking change. + // @@protoc_insertion_point(field:google.longrunning.OperationInfo.response_type) pub response_type: ::std::string::String, + /// Required. The message name of the metadata type for this long-running + /// operation. + /// + /// If the response is in a different package from the rpc, a fully-qualified + /// message name must be used (e.g. `google.protobuf.Struct`). + /// + /// Note: Altering this value constitutes a breaking change. + // @@protoc_insertion_point(field:google.longrunning.OperationInfo.metadata_type) pub metadata_type: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.longrunning.OperationInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a OperationInfo { @@ -1640,76 +1254,45 @@ impl OperationInfo { ::std::default::Default::default() } - // string response_type = 1; - - - pub fn get_response_type(&self) -> &str { - &self.response_type - } - pub fn clear_response_type(&mut self) { - self.response_type.clear(); - } - - // Param is passed by value, moved - pub fn set_response_type(&mut self, v: ::std::string::String) { - self.response_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_response_type(&mut self) -> &mut ::std::string::String { - &mut self.response_type - } - - // Take field - pub fn take_response_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.response_type, ::std::string::String::new()) - } - - // string metadata_type = 2; - - - pub fn get_metadata_type(&self) -> &str { - &self.metadata_type - } - pub fn clear_metadata_type(&mut self) { - self.metadata_type.clear(); - } - - // Param is passed by value, moved - pub fn set_metadata_type(&mut self, v: ::std::string::String) { - self.metadata_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata_type(&mut self) -> &mut ::std::string::String { - &mut self.metadata_type - } - - // Take field - pub fn take_metadata_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.metadata_type, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "response_type", + |m: &OperationInfo| { &m.response_type }, + |m: &mut OperationInfo| { &mut m.response_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "metadata_type", + |m: &OperationInfo| { &m.metadata_type }, + |m: &mut OperationInfo| { &mut m.metadata_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "OperationInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for OperationInfo { + const NAME: &'static str = "OperationInfo"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.response_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.response_type = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metadata_type)?; + 18 => { + self.metadata_type = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1718,7 +1301,7 @@ impl ::protobuf::Message for OperationInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.response_type.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.response_type); @@ -1726,418 +1309,405 @@ impl ::protobuf::Message for OperationInfo { if !self.metadata_type.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.metadata_type); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.response_type.is_empty() { os.write_string(1, &self.response_type)?; } if !self.metadata_type.is_empty() { os.write_string(2, &self.metadata_type)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> OperationInfo { OperationInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "response_type", - |m: &OperationInfo| { &m.response_type }, - |m: &mut OperationInfo| { &mut m.response_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metadata_type", - |m: &OperationInfo| { &m.metadata_type }, - |m: &mut OperationInfo| { &mut m.metadata_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.response_type.clear(); + self.metadata_type.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static OperationInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationInfo::new) + static instance: OperationInfo = OperationInfo { + response_type: ::std::string::String::new(), + metadata_type: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for OperationInfo { - fn clear(&mut self) { - self.response_type.clear(); - self.metadata_type.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for OperationInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("OperationInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for OperationInfo { +impl ::std::fmt::Display for OperationInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for OperationInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } /// Extension fields pub mod exts { - pub const operation_info: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, ::protobuf::types::ProtobufTypeMessage> = ::protobuf::ext::ExtFieldOptional { field_number: 1049, phantom: ::std::marker::PhantomData }; + pub const operation_info: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, super::OperationInfo> = ::protobuf::ext::ExtFieldOptional::new(1049, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); } static file_descriptor_proto_data: &'static [u8] = b"\ \n#google/longrunning/operations.proto\x12\x12google.longrunning\x1a\x1c\ - google/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19googl\ - e/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle\ - /protobuf/empty.proto\x1a\x17google/rpc/status.proto\x1a\x20google/proto\ - buf/descriptor.proto\"\xcf\x01\n\tOperation\x12\x12\n\x04name\x18\x01\ - \x20\x01(\tR\x04name\x120\n\x08metadata\x18\x02\x20\x01(\x0b2\x14.google\ - .protobuf.AnyR\x08metadata\x12\x12\n\x04done\x18\x03\x20\x01(\x08R\x04do\ - ne\x12*\n\x05error\x18\x04\x20\x01(\x0b2\x12.google.rpc.StatusH\0R\x05er\ - ror\x122\n\x08response\x18\x05\x20\x01(\x0b2\x14.google.protobuf.AnyH\0R\ - \x08responseB\x08\n\x06result\")\n\x13GetOperationRequest\x12\x12\n\x04n\ - ame\x18\x01\x20\x01(\tR\x04name\"\x7f\n\x15ListOperationsRequest\x12\x12\ - \n\x04name\x18\x04\x20\x01(\tR\x04name\x12\x16\n\x06filter\x18\x01\x20\ - \x01(\tR\x06filter\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSiz\ - e\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\x7f\n\x16ListOp\ - erationsResponse\x12=\n\noperations\x18\x01\x20\x03(\x0b2\x1d.google.lon\ - grunning.OperationR\noperations\x12&\n\x0fnext_page_token\x18\x02\x20\ - \x01(\tR\rnextPageToken\",\n\x16CancelOperationRequest\x12\x12\n\x04name\ - \x18\x01\x20\x01(\tR\x04name\",\n\x16DeleteOperationRequest\x12\x12\n\ - \x04name\x18\x01\x20\x01(\tR\x04name\"_\n\x14WaitOperationRequest\x12\ - \x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x123\n\x07timeout\x18\x02\x20\ - \x01(\x0b2\x19.google.protobuf.DurationR\x07timeout\"Y\n\rOperationInfo\ - \x12#\n\rresponse_type\x18\x01\x20\x01(\tR\x0cresponseType\x12#\n\rmetad\ - ata_type\x18\x02\x20\x01(\tR\x0cmetadataType2\xaa\x05\n\nOperations\x12\ - \x94\x01\n\x0eListOperations\x12).google.longrunning.ListOperationsReque\ - st\x1a*.google.longrunning.ListOperationsResponse\"+\x82\xd3\xe4\x93\x02\ - \x17\x12\x15/v1/{name=operations}\xdaA\x0bname,filter\x12\x7f\n\x0cGetOp\ - eration\x12'.google.longrunning.GetOperationRequest\x1a\x1d.google.longr\ - unning.Operation\"'\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=operations/\ - **}\xdaA\x04name\x12~\n\x0fDeleteOperation\x12*.google.longrunning.Delet\ - eOperationRequest\x1a\x16.google.protobuf.Empty\"'\x82\xd3\xe4\x93\x02\ - \x1a*\x18/v1/{name=operations/**}\xdaA\x04name\x12\x88\x01\n\x0fCancelOp\ - eration\x12*.google.longrunning.CancelOperationRequest\x1a\x16.google.pr\ - otobuf.Empty\"1\x82\xd3\xe4\x93\x02$\"\x1f/v1/{name=operations/**}:cance\ - l:\x01*\xdaA\x04name\x12Z\n\rWaitOperation\x12(.google.longrunning.WaitO\ - perationRequest\x1a\x1d.google.longrunning.Operation\"\0\x1a\x1d\xcaA\ - \x1alongrunning.googleapis.com:i\n\x0eoperation_info\x18\x99\x08\x20\x01\ - (\x0b2!.google.longrunning.OperationInfo\x12\x1e.google.protobuf.MethodO\ - ptionsR\roperationInfoB\x9d\x01\n\x16com.google.longrunningB\x0fOperatio\ - nsProtoP\x01ZCcloud.google.com/go/longrunning/autogen/longrunningpb;long\ - runningpb\xf8\x01\x01\xaa\x02\x12Google.LongRunning\xca\x02\x12Google\\L\ - ongRunningJ\xe6L\n\x07\x12\x05\x0e\0\xf6\x01\x01\n\xbc\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb1\x04\x20Copyright\x202020\x20Google\x20LLC\n\n\x20Lic\ - ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\x08\n\x01\x02\x12\x03\x10\0\x1b\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\ - \n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0#\n\t\n\x02\ - \x03\x03\x12\x03\x15\0(\n\t\n\x02\x03\x04\x12\x03\x16\0%\n\t\n\x02\x03\ - \x05\x12\x03\x17\0!\n\t\n\x02\x03\x06\x12\x03\x18\0*\n\x08\n\x01\x08\x12\ - \x03\x1a\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x1a\0\x1f\n\x08\n\x01\x08\x12\ - \x03\x1b\0/\n\t\n\x02\x08%\x12\x03\x1b\0/\n\x08\n\x01\x08\x12\x03\x1c\0Z\ - \n\t\n\x02\x08\x0b\x12\x03\x1c\0Z\n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\ - \x02\x08\n\x12\x03\x1d\0\"\n\x08\n\x01\x08\x12\x03\x1e\00\n\t\n\x02\x08\ - \x08\x12\x03\x1e\00\n\x08\n\x01\x08\x12\x03\x1f\0/\n\t\n\x02\x08\x01\x12\ - \x03\x1f\0/\n\x08\n\x01\x08\x12\x03\x20\0-\n\t\n\x02\x08)\x12\x03\x20\0-\ - \n\t\n\x01\x07\x12\x04\"\0*\x01\n\xf8\x01\n\x02\x07\0\x12\x03)\x029\x1a\ - \xec\x01\x20Additional\x20information\x20regarding\x20long-running\x20op\ - erations.\n\x20In\x20particular,\x20this\x20specifies\x20the\x20types\ - \x20that\x20are\x20returned\x20from\n\x20long-running\x20operations.\n\n\ - \x20Required\x20for\x20methods\x20that\x20return\x20`google.longrunning.\ - Operation`;\x20invalid\n\x20otherwise.\n\n\n\n\x03\x07\0\x02\x12\x03\"\ - \x07$\n\n\n\x03\x07\0\x06\x12\x03)\x02\"\n\n\n\x03\x07\0\x01\x12\x03)#1\ - \n\n\n\x03\x07\0\x03\x12\x03)48\n\xd2\x04\n\x02\x06\0\x12\x045\0{\x01\ - \x1a\xc5\x04\x20Manages\x20long-running\x20operations\x20with\x20an\x20A\ - PI\x20service.\n\n\x20When\x20an\x20API\x20method\x20normally\x20takes\ - \x20long\x20time\x20to\x20complete,\x20it\x20can\x20be\x20designed\n\x20\ - to\x20return\x20[Operation][google.longrunning.Operation]\x20to\x20the\ - \x20client,\x20and\x20the\x20client\x20can\x20use\x20this\n\x20interface\ - \x20to\x20receive\x20the\x20real\x20response\x20asynchronously\x20by\x20\ - polling\x20the\n\x20operation\x20resource,\x20or\x20pass\x20the\x20opera\ - tion\x20resource\x20to\x20another\x20API\x20(such\x20as\n\x20Google\x20C\ - loud\x20Pub/Sub\x20API)\x20to\x20receive\x20the\x20response.\x20\x20Any\ - \x20API\x20service\x20that\n\x20returns\x20long-running\x20operations\ - \x20should\x20implement\x20the\x20`Operations`\x20interface\n\x20so\x20d\ - evelopers\x20can\x20have\x20a\x20consistent\x20client\x20experience.\n\n\ - \n\n\x03\x06\0\x01\x12\x035\x08\x12\n\n\n\x03\x06\0\x03\x12\x036\x02B\n\ - \x0c\n\x05\x06\0\x03\x99\x08\x12\x036\x02B\n\xf7\x04\n\x04\x06\0\x02\0\ - \x12\x04B\x02G\x03\x1a\xe8\x04\x20Lists\x20operations\x20that\x20match\ - \x20the\x20specified\x20filter\x20in\x20the\x20request.\x20If\x20the\n\ - \x20server\x20doesn't\x20support\x20this\x20method,\x20it\x20returns\x20\ - `UNIMPLEMENTED`.\n\n\x20NOTE:\x20the\x20`name`\x20binding\x20allows\x20A\ - PI\x20services\x20to\x20override\x20the\x20binding\n\x20to\x20use\x20dif\ - ferent\x20resource\x20name\x20schemes,\x20such\x20as\x20`users/*/operati\ - ons`.\x20To\n\x20override\x20the\x20binding,\x20API\x20services\x20can\ - \x20add\x20a\x20binding\x20such\x20as\n\x20`\"/v1/{name=users/*}/operati\ - ons\"`\x20to\x20their\x20service\x20configuration.\n\x20For\x20backwards\ - \x20compatibility,\x20the\x20default\x20name\x20includes\x20the\x20opera\ - tions\n\x20collection\x20id,\x20however\x20overriding\x20users\x20must\ - \x20ensure\x20the\x20name\x20binding\n\x20is\x20the\x20parent\x20resourc\ - e,\x20without\x20the\x20operations\x20collection\x20id.\n\n\x0c\n\x05\ - \x06\0\x02\0\x01\x12\x03B\x06\x14\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03B\ - \x15*\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03B5K\n\r\n\x05\x06\0\x02\0\x04\ - \x12\x04C\x04E\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04C\x04E\ - \x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03F\x049\n\x0f\n\x08\x06\0\x02\0\ - \x04\x9b\x08\0\x12\x03F\x049\n\xaf\x01\n\x04\x06\0\x02\x01\x12\x04L\x02Q\ - \x03\x1a\xa0\x01\x20Gets\x20the\x20latest\x20state\x20of\x20a\x20long-ru\ - nning\x20operation.\x20\x20Clients\x20can\x20use\x20this\n\x20method\x20\ - to\x20poll\x20the\x20operation\x20result\x20at\x20intervals\x20as\x20rec\ - ommended\x20by\x20the\x20API\n\x20service.\n\n\x0c\n\x05\x06\0\x02\x01\ - \x01\x12\x03L\x06\x12\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03L\x13&\n\x0c\ - \n\x05\x06\0\x02\x01\x03\x12\x03L1:\n\r\n\x05\x06\0\x02\x01\x04\x12\x04M\ - \x04O\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04M\x04O\x06\n\ - \x0c\n\x05\x06\0\x02\x01\x04\x12\x03P\x042\n\x0f\n\x08\x06\0\x02\x01\x04\ - \x9b\x08\0\x12\x03P\x042\n\x85\x02\n\x04\x06\0\x02\x02\x12\x04W\x02\\\ - \x03\x1a\xf6\x01\x20Deletes\x20a\x20long-running\x20operation.\x20This\ - \x20method\x20indicates\x20that\x20the\x20client\x20is\n\x20no\x20longer\ - \x20interested\x20in\x20the\x20operation\x20result.\x20It\x20does\x20not\ - \x20cancel\x20the\n\x20operation.\x20If\x20the\x20server\x20doesn't\x20s\ - upport\x20this\x20method,\x20it\x20returns\n\x20`google.rpc.Code.UNIMPLE\ - MENTED`.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03W\x06\x15\n\x0c\n\x05\ - \x06\0\x02\x02\x02\x12\x03W\x16,\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03W7\ - L\n\r\n\x05\x06\0\x02\x02\x04\x12\x04X\x04Z\x06\n\x11\n\t\x06\0\x02\x02\ - \x04\xb0\xca\xbc\"\x12\x04X\x04Z\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\ - \x03[\x042\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03[\x042\n\xd4\ - \x05\n\x04\x06\0\x02\x03\x12\x04h\x02n\x03\x1a\xc5\x05\x20Starts\x20asyn\ - chronous\x20cancellation\x20on\x20a\x20long-running\x20operation.\x20\ - \x20The\x20server\n\x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20t\ - he\x20operation,\x20but\x20success\x20is\x20not\n\x20guaranteed.\x20\x20\ - If\x20the\x20server\x20doesn't\x20support\x20this\x20method,\x20it\x20re\ - turns\n\x20`google.rpc.Code.UNIMPLEMENTED`.\x20\x20Clients\x20can\x20use\ - \n\x20[Operations.GetOperation][google.longrunning.Operations.GetOperati\ - on]\x20or\n\x20other\x20methods\x20to\x20check\x20whether\x20the\x20canc\ - ellation\x20succeeded\x20or\x20whether\x20the\n\x20operation\x20complete\ - d\x20despite\x20cancellation.\x20On\x20successful\x20cancellation,\n\x20\ - the\x20operation\x20is\x20not\x20deleted;\x20instead,\x20it\x20becomes\ - \x20an\x20operation\x20with\n\x20an\x20[Operation.error][google.longrunn\ - ing.Operation.error]\x20value\x20with\x20a\x20[google.rpc.Status.code][g\ - oogle.rpc.Status.code]\x20of\x201,\n\x20corresponding\x20to\x20`Code.CAN\ - CELLED`.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03h\x06\x15\n\x0c\n\x05\ - \x06\0\x02\x03\x02\x12\x03h\x16,\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03h7\ - L\n\r\n\x05\x06\0\x02\x03\x04\x12\x04i\x04l\x06\n\x11\n\t\x06\0\x02\x03\ - \x04\xb0\xca\xbc\"\x12\x04i\x04l\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\ - \x03m\x042\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03m\x042\n\xf7\ - \x04\n\x04\x06\0\x02\x04\x12\x04y\x02z\x03\x1a\xe8\x04\x20Waits\x20until\ - \x20the\x20specified\x20long-running\x20operation\x20is\x20done\x20or\ - \x20reaches\x20at\x20most\n\x20a\x20specified\x20timeout,\x20returning\ - \x20the\x20latest\x20state.\x20\x20If\x20the\x20operation\x20is\n\x20alr\ - eady\x20done,\x20the\x20latest\x20state\x20is\x20immediately\x20returned\ - .\x20\x20If\x20the\x20timeout\n\x20specified\x20is\x20greater\x20than\ - \x20the\x20default\x20HTTP/RPC\x20timeout,\x20the\x20HTTP/RPC\n\x20timeo\ - ut\x20is\x20used.\x20\x20If\x20the\x20server\x20does\x20not\x20support\ - \x20this\x20method,\x20it\x20returns\n\x20`google.rpc.Code.UNIMPLEMENTED\ - `.\n\x20Note\x20that\x20this\x20method\x20is\x20on\x20a\x20best-effort\ - \x20basis.\x20\x20It\x20may\x20return\x20the\x20latest\n\x20state\x20bef\ - ore\x20the\x20specified\x20timeout\x20(including\x20immediately),\x20mea\ - ning\x20even\x20an\n\x20immediate\x20response\x20is\x20no\x20guarantee\ - \x20that\x20the\x20operation\x20is\x20done.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03y\x06\x13\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03y\x14(\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03y3<\nk\n\x02\x04\0\x12\x05\x7f\0\xa1\x01\ - \x01\x1a^\x20This\x20resource\x20represents\x20a\x20long-running\x20oper\ - ation\x20that\x20is\x20the\x20result\x20of\x20a\n\x20network\x20API\x20c\ - all.\n\n\n\n\x03\x04\0\x01\x12\x03\x7f\x08\x11\n\xe5\x01\n\x04\x04\0\x02\ - \0\x12\x04\x83\x01\x02\x12\x1a\xd6\x01\x20The\x20server-assigned\x20name\ - ,\x20which\x20is\x20only\x20unique\x20within\x20the\x20same\x20service\ + google/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoo\ + gle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17go\ + ogle/rpc/status.proto\x1a\x20google/protobuf/descriptor.proto\"\xcf\x01\ + \n\tOperation\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x120\n\x08me\ + tadata\x18\x02\x20\x01(\x0b2\x14.google.protobuf.AnyR\x08metadata\x12\ + \x12\n\x04done\x18\x03\x20\x01(\x08R\x04done\x12*\n\x05error\x18\x04\x20\ + \x01(\x0b2\x12.google.rpc.StatusH\0R\x05error\x122\n\x08response\x18\x05\ + \x20\x01(\x0b2\x14.google.protobuf.AnyH\0R\x08responseB\x08\n\x06result\ + \")\n\x13GetOperationRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04na\ + me\"\x7f\n\x15ListOperationsRequest\x12\x12\n\x04name\x18\x04\x20\x01(\t\ + R\x04name\x12\x16\n\x06filter\x18\x01\x20\x01(\tR\x06filter\x12\x1b\n\tp\ + age_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\ + \x20\x01(\tR\tpageToken\"\x7f\n\x16ListOperationsResponse\x12=\n\noperat\ + ions\x18\x01\x20\x03(\x0b2\x1d.google.longrunning.OperationR\noperations\ + \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\",\n\x16Ca\ + ncelOperationRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\",\n\ + \x16DeleteOperationRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\ + \"_\n\x14WaitOperationRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\ + ame\x123\n\x07timeout\x18\x02\x20\x01(\x0b2\x19.google.protobuf.Duration\ + R\x07timeout\"Y\n\rOperationInfo\x12#\n\rresponse_type\x18\x01\x20\x01(\ + \tR\x0cresponseType\x12#\n\rmetadata_type\x18\x02\x20\x01(\tR\x0cmetadat\ + aType2\xe8\x04\n\nOperations\x12\x86\x01\n\x0eListOperations\x12).google\ + .longrunning.ListOperationsRequest\x1a*.google.longrunning.ListOperation\ + sResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=operations}\x12\ + x\n\x0cGetOperation\x12'.google.longrunning.GetOperationRequest\x1a\x1d.\ + google.longrunning.Operation\"\x20\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{n\ + ame=operations/**}\x12w\n\x0fDeleteOperation\x12*.google.longrunning.Del\ + eteOperationRequest\x1a\x16.google.protobuf.Empty\"\x20\x82\xd3\xe4\x93\ + \x02\x1a*\x18/v1/{name=operations/**}\x12\x81\x01\n\x0fCancelOperation\ + \x12*.google.longrunning.CancelOperationRequest\x1a\x16.google.protobuf.\ + Empty\"*\x82\xd3\xe4\x93\x02$\"\x1f/v1/{name=operations/**}:cancel:\x01*\ + \x12Z\n\rWaitOperation\x12(.google.longrunning.WaitOperationRequest\x1a\ + \x1d.google.longrunning.Operation\"\0:i\n\x0eoperation_info\x18\x99\x08\ + \x20\x01(\x0b2!.google.longrunning.OperationInfo\x12\x1e.google.protobuf\ + .MethodOptionsR\roperationInfoB\x97\x01\n\x16com.google.longrunningB\x0f\ + OperationsProtoP\x01Z=google.golang.org/genproto/googleapis/longrunning;\ + longrunning\xf8\x01\x01\xaa\x02\x12Google.LongRunning\xca\x02\x12Google\ + \\LongRunningJ\xc3K\n\x07\x12\x05\x0f\0\xf0\x01\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x1b\n\t\n\x02\x03\0\x12\x03\x13\0\ + &\n\t\n\x02\x03\x01\x12\x03\x14\0#\n\t\n\x02\x03\x02\x12\x03\x15\0(\n\t\ + \n\x02\x03\x03\x12\x03\x16\0%\n\t\n\x02\x03\x04\x12\x03\x17\0!\n\t\n\x02\ + \x03\x05\x12\x03\x18\0*\n\x08\n\x01\x08\x12\x03\x1a\0\x1f\n\t\n\x02\x08\ + \x1f\x12\x03\x1a\0\x1f\n\x08\n\x01\x08\x12\x03\x1b\0/\n\t\n\x02\x08%\x12\ + \x03\x1b\0/\n\x08\n\x01\x08\x12\x03\x1c\0T\n\t\n\x02\x08\x0b\x12\x03\x1c\ + \0T\n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\x03\x1d\0\"\n\ + \x08\n\x01\x08\x12\x03\x1e\00\n\t\n\x02\x08\x08\x12\x03\x1e\00\n\x08\n\ + \x01\x08\x12\x03\x1f\0/\n\t\n\x02\x08\x01\x12\x03\x1f\0/\n\x08\n\x01\x08\ + \x12\x03\x20\0-\n\t\n\x02\x08)\x12\x03\x20\0-\n\t\n\x01\x07\x12\x04\"\0*\ + \x01\n\xf8\x01\n\x02\x07\0\x12\x03)\x029\x1a\xec\x01\x20Additional\x20in\ + formation\x20regarding\x20long-running\x20operations.\n\x20In\x20particu\ + lar,\x20this\x20specifies\x20the\x20types\x20that\x20are\x20returned\x20\ + from\n\x20long-running\x20operations.\n\n\x20Required\x20for\x20methods\ + \x20that\x20return\x20`google.longrunning.Operation`;\x20invalid\n\x20ot\ + herwise.\n\n\n\n\x03\x07\0\x02\x12\x03\"\x07$\n\n\n\x03\x07\0\x06\x12\ + \x03)\x02\"\n\n\n\x03\x07\0\x01\x12\x03)#1\n\n\n\x03\x07\0\x03\x12\x03)4\ + 8\n\xd2\x04\n\x02\x06\0\x12\x045\0u\x01\x1a\xc5\x04\x20Manages\x20long-r\ + unning\x20operations\x20with\x20an\x20API\x20service.\n\n\x20When\x20an\ + \x20API\x20method\x20normally\x20takes\x20long\x20time\x20to\x20complete\ + ,\x20it\x20can\x20be\x20designed\n\x20to\x20return\x20[Operation][google\ + .longrunning.Operation]\x20to\x20the\x20client,\x20and\x20the\x20client\ + \x20can\x20use\x20this\n\x20interface\x20to\x20receive\x20the\x20real\ + \x20response\x20asynchronously\x20by\x20polling\x20the\n\x20operation\ + \x20resource,\x20or\x20pass\x20the\x20operation\x20resource\x20to\x20ano\ + ther\x20API\x20(such\x20as\n\x20Google\x20Cloud\x20Pub/Sub\x20API)\x20to\ + \x20receive\x20the\x20response.\x20\x20Any\x20API\x20service\x20that\n\ + \x20returns\x20long-running\x20operations\x20should\x20implement\x20the\ + \x20`Operations`\x20interface\n\x20so\x20developers\x20can\x20have\x20a\ + \x20consistent\x20client\x20experience.\n\n\n\n\x03\x06\0\x01\x12\x035\ + \x08\x12\n\xf7\x04\n\x04\x06\0\x02\0\x12\x04@\x02D\x03\x1a\xe8\x04\x20Li\ + sts\x20operations\x20that\x20match\x20the\x20specified\x20filter\x20in\ + \x20the\x20request.\x20If\x20the\n\x20server\x20doesn't\x20support\x20th\ + is\x20method,\x20it\x20returns\x20`UNIMPLEMENTED`.\n\n\x20NOTE:\x20the\ + \x20`name`\x20binding\x20allows\x20API\x20services\x20to\x20override\x20\ + the\x20binding\n\x20to\x20use\x20different\x20resource\x20name\x20scheme\ + s,\x20such\x20as\x20`users/*/operations`.\x20To\n\x20override\x20the\x20\ + binding,\x20API\x20services\x20can\x20add\x20a\x20binding\x20such\x20as\ + \n\x20`\"/v1/{name=users/*}/operations\"`\x20to\x20their\x20service\x20c\ + onfiguration.\n\x20For\x20backwards\x20compatibility,\x20the\x20default\ + \x20name\x20includes\x20the\x20operations\n\x20collection\x20id,\x20howe\ + ver\x20overriding\x20users\x20must\x20ensure\x20the\x20name\x20binding\n\ + \x20is\x20the\x20parent\x20resource,\x20without\x20the\x20operations\x20\ + collection\x20id.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03@\x06\x14\n\x0c\n\ + \x05\x06\0\x02\0\x02\x12\x03@\x15*\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03@5\ + K\n\r\n\x05\x06\0\x02\0\x04\x12\x04A\x04C\x06\n\x11\n\t\x06\0\x02\0\x04\ + \xb0\xca\xbc\"\x12\x04A\x04C\x06\n\xaf\x01\n\x04\x06\0\x02\x01\x12\x04I\ + \x02M\x03\x1a\xa0\x01\x20Gets\x20the\x20latest\x20state\x20of\x20a\x20lo\ + ng-running\x20operation.\x20\x20Clients\x20can\x20use\x20this\n\x20metho\ + d\x20to\x20poll\x20the\x20operation\x20result\x20at\x20intervals\x20as\ + \x20recommended\x20by\x20the\x20API\n\x20service.\n\n\x0c\n\x05\x06\0\ + \x02\x01\x01\x12\x03I\x06\x12\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03I\x13\ + &\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03I1:\n\r\n\x05\x06\0\x02\x01\x04\ + \x12\x04J\x04L\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04J\ + \x04L\x06\n\x85\x02\n\x04\x06\0\x02\x02\x12\x04S\x02W\x03\x1a\xf6\x01\ + \x20Deletes\x20a\x20long-running\x20operation.\x20This\x20method\x20indi\ + cates\x20that\x20the\x20client\x20is\n\x20no\x20longer\x20interested\x20\ + in\x20the\x20operation\x20result.\x20It\x20does\x20not\x20cancel\x20the\ + \n\x20operation.\x20If\x20the\x20server\x20doesn't\x20support\x20this\ + \x20method,\x20it\x20returns\n\x20`google.rpc.Code.UNIMPLEMENTED`.\n\n\ + \x0c\n\x05\x06\0\x02\x02\x01\x12\x03S\x06\x15\n\x0c\n\x05\x06\0\x02\x02\ + \x02\x12\x03S\x16,\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03S7L\n\r\n\x05\ + \x06\0\x02\x02\x04\x12\x04T\x04V\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\ + \xbc\"\x12\x04T\x04V\x06\n\xd4\x05\n\x04\x06\0\x02\x03\x12\x04c\x02h\x03\ + \x1a\xc5\x05\x20Starts\x20asynchronous\x20cancellation\x20on\x20a\x20lon\ + g-running\x20operation.\x20\x20The\x20server\n\x20makes\x20a\x20best\x20\ + effort\x20to\x20cancel\x20the\x20operation,\x20but\x20success\x20is\x20n\ + ot\n\x20guaranteed.\x20\x20If\x20the\x20server\x20doesn't\x20support\x20\ + this\x20method,\x20it\x20returns\n\x20`google.rpc.Code.UNIMPLEMENTED`.\ + \x20\x20Clients\x20can\x20use\n\x20[Operations.GetOperation][google.long\ + running.Operations.GetOperation]\x20or\n\x20other\x20methods\x20to\x20ch\ + eck\x20whether\x20the\x20cancellation\x20succeeded\x20or\x20whether\x20t\ + he\n\x20operation\x20completed\x20despite\x20cancellation.\x20On\x20succ\ + essful\x20cancellation,\n\x20the\x20operation\x20is\x20not\x20deleted;\ + \x20instead,\x20it\x20becomes\x20an\x20operation\x20with\n\x20an\x20[Ope\ + ration.error][google.longrunning.Operation.error]\x20value\x20with\x20a\ + \x20[google.rpc.Status.code][google.rpc.Status.code]\x20of\x201,\n\x20co\ + rresponding\x20to\x20`Code.CANCELLED`.\n\n\x0c\n\x05\x06\0\x02\x03\x01\ + \x12\x03c\x06\x15\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03c\x16,\n\x0c\n\ + \x05\x06\0\x02\x03\x03\x12\x03c7L\n\r\n\x05\x06\0\x02\x03\x04\x12\x04d\ + \x04g\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04d\x04g\x06\n\ + \xfe\x04\n\x04\x06\0\x02\x04\x12\x04s\x02t\x03\x1a\xef\x04\x20Waits\x20f\ + or\x20the\x20specified\x20long-running\x20operation\x20until\x20it\x20is\ + \x20done\x20or\x20reaches\n\x20at\x20most\x20a\x20specified\x20timeout,\ + \x20returning\x20the\x20latest\x20state.\x20\x20If\x20the\x20operation\n\ + \x20is\x20already\x20done,\x20the\x20latest\x20state\x20is\x20immediatel\ + y\x20returned.\x20\x20If\x20the\x20timeout\n\x20specified\x20is\x20great\ + er\x20than\x20the\x20default\x20HTTP/RPC\x20timeout,\x20the\x20HTTP/RPC\ + \n\x20timeout\x20is\x20used.\x20\x20If\x20the\x20server\x20does\x20not\ + \x20support\x20this\x20method,\x20it\x20returns\n\x20`google.rpc.Code.UN\ + IMPLEMENTED`.\n\x20Note\x20that\x20this\x20method\x20is\x20on\x20a\x20be\ + st-effort\x20basis.\x20\x20It\x20may\x20return\x20the\x20latest\n\x20sta\ + te\x20before\x20the\x20specified\x20timeout\x20(including\x20immediately\ + ),\x20meaning\x20even\x20an\n\x20immediate\x20response\x20is\x20no\x20gu\ + arantee\x20that\x20the\x20operation\x20is\x20done.\n\n\x0c\n\x05\x06\0\ + \x02\x04\x01\x12\x03s\x06\x13\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03s\x14\ + (\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03s3<\nk\n\x02\x04\0\x12\x05y\0\x9b\ + \x01\x01\x1a^\x20This\x20resource\x20represents\x20a\x20long-running\x20\ + operation\x20that\x20is\x20the\x20result\x20of\x20a\n\x20network\x20API\ + \x20call.\n\n\n\n\x03\x04\0\x01\x12\x03y\x08\x11\n\xdd\x01\n\x04\x04\0\ + \x02\0\x12\x03}\x02\x12\x1a\xcf\x01\x20The\x20server-assigned\x20name,\ + \x20which\x20is\x20only\x20unique\x20within\x20the\x20same\x20service\ \x20that\n\x20originally\x20returns\x20it.\x20If\x20you\x20use\x20the\ - \x20default\x20HTTP\x20mapping,\x20the\n\x20`name`\x20should\x20be\x20a\ - \x20resource\x20name\x20ending\x20with\x20`operations/{unique_id}`.\n\n\ - \r\n\x05\x04\0\x02\0\x05\x12\x04\x83\x01\x02\x08\n\r\n\x05\x04\0\x02\0\ - \x01\x12\x04\x83\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x83\x01\x10\ - \x11\n\xad\x02\n\x04\x04\0\x02\x01\x12\x04\x89\x01\x02#\x1a\x9e\x02\x20S\ - ervice-specific\x20metadata\x20associated\x20with\x20the\x20operation.\ - \x20\x20It\x20typically\n\x20contains\x20progress\x20information\x20and\ - \x20common\x20metadata\x20such\x20as\x20create\x20time.\n\x20Some\x20ser\ - vices\x20might\x20not\x20provide\x20such\x20metadata.\x20\x20Any\x20meth\ - od\x20that\x20returns\x20a\n\x20long-running\x20operation\x20should\x20d\ - ocument\x20the\x20metadata\x20type,\x20if\x20any.\n\n\r\n\x05\x04\0\x02\ - \x01\x06\x12\x04\x89\x01\x02\x15\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x89\ - \x01\x16\x1e\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x89\x01!\"\n\xae\x01\n\ - \x04\x04\0\x02\x02\x12\x04\x8e\x01\x02\x10\x1a\x9f\x01\x20If\x20the\x20v\ - alue\x20is\x20`false`,\x20it\x20means\x20the\x20operation\x20is\x20still\ - \x20in\x20progress.\n\x20If\x20`true`,\x20the\x20operation\x20is\x20comp\ - leted,\x20and\x20either\x20`error`\x20or\x20`response`\x20is\n\x20availa\ - ble.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\x8e\x01\x02\x06\n\r\n\x05\x04\ - \0\x02\x02\x01\x12\x04\x8e\x01\x07\x0b\n\r\n\x05\x04\0\x02\x02\x03\x12\ - \x04\x8e\x01\x0e\x0f\n\xdf\x01\n\x04\x04\0\x08\0\x12\x06\x93\x01\x02\xa0\ - \x01\x03\x1a\xce\x01\x20The\x20operation\x20result,\x20which\x20can\x20b\ - e\x20either\x20an\x20`error`\x20or\x20a\x20valid\x20`response`.\n\x20If\ - \x20`done`\x20==\x20`false`,\x20neither\x20`error`\x20nor\x20`response`\ - \x20is\x20set.\n\x20If\x20`done`\x20==\x20`true`,\x20exactly\x20one\x20o\ - f\x20`error`\x20or\x20`response`\x20is\x20set.\n\n\r\n\x05\x04\0\x08\0\ - \x01\x12\x04\x93\x01\x08\x0e\nU\n\x04\x04\0\x02\x03\x12\x04\x95\x01\x04\ - \x20\x1aG\x20The\x20error\x20result\x20of\x20the\x20operation\x20in\x20c\ - ase\x20of\x20failure\x20or\x20cancellation.\n\n\r\n\x05\x04\0\x02\x03\ - \x06\x12\x04\x95\x01\x04\x15\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x95\x01\ - \x16\x1b\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x95\x01\x1e\x1f\n\x84\x04\n\ - \x04\x04\0\x02\x04\x12\x04\x9f\x01\x04%\x1a\xf5\x03\x20The\x20normal\x20\ - response\x20of\x20the\x20operation\x20in\x20case\x20of\x20success.\x20\ - \x20If\x20the\x20original\n\x20method\x20returns\x20no\x20data\x20on\x20\ - success,\x20such\x20as\x20`Delete`,\x20the\x20response\x20is\n\x20`googl\ - e.protobuf.Empty`.\x20\x20If\x20the\x20original\x20method\x20is\x20stand\ - ard\n\x20`Get`/`Create`/`Update`,\x20the\x20response\x20should\x20be\x20\ - the\x20resource.\x20\x20For\x20other\n\x20methods,\x20the\x20response\ - \x20should\x20have\x20the\x20type\x20`XxxResponse`,\x20where\x20`Xxx`\n\ - \x20is\x20the\x20original\x20method\x20name.\x20\x20For\x20example,\x20i\ - f\x20the\x20original\x20method\x20name\n\x20is\x20`TakeSnapshot()`,\x20t\ - he\x20inferred\x20response\x20type\x20is\n\x20`TakeSnapshotResponse`.\n\ - \n\r\n\x05\x04\0\x02\x04\x06\x12\x04\x9f\x01\x04\x17\n\r\n\x05\x04\0\x02\ - \x04\x01\x12\x04\x9f\x01\x18\x20\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\x9f\ - \x01#$\nn\n\x02\x04\x01\x12\x06\xa4\x01\0\xa7\x01\x01\x1a`\x20The\x20req\ - uest\x20message\x20for\x20[Operations.GetOperation][google.longrunning.O\ - perations.GetOperation].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xa4\x01\x08\ - \x1b\n3\n\x04\x04\x01\x02\0\x12\x04\xa6\x01\x02\x12\x1a%\x20The\x20name\ - \x20of\x20the\x20operation\x20resource.\n\n\r\n\x05\x04\x01\x02\0\x05\ - \x12\x04\xa6\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa6\x01\t\r\ - \n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xa6\x01\x10\x11\nr\n\x02\x04\x02\ - \x12\x06\xaa\x01\0\xb6\x01\x01\x1ad\x20The\x20request\x20message\x20for\ - \x20[Operations.ListOperations][google.longrunning.Operations.ListOperat\ - ions].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xaa\x01\x08\x1d\n<\n\x04\x04\ - \x02\x02\0\x12\x04\xac\x01\x02\x12\x1a.\x20The\x20name\x20of\x20the\x20o\ - peration's\x20parent\x20resource.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\ - \xac\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xac\x01\t\r\n\r\n\ - \x05\x04\x02\x02\0\x03\x12\x04\xac\x01\x10\x11\n)\n\x04\x04\x02\x02\x01\ - \x12\x04\xaf\x01\x02\x14\x1a\x1b\x20The\x20standard\x20list\x20filter.\n\ - \n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xaf\x01\x02\x08\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xaf\x01\t\x0f\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\ - \xaf\x01\x12\x13\n,\n\x04\x04\x02\x02\x02\x12\x04\xb2\x01\x02\x16\x1a\ - \x1e\x20The\x20standard\x20list\x20page\x20size.\n\n\r\n\x05\x04\x02\x02\ - \x02\x05\x12\x04\xb2\x01\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\ - \xb2\x01\x08\x11\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb2\x01\x14\x15\n\ - -\n\x04\x04\x02\x02\x03\x12\x04\xb5\x01\x02\x18\x1a\x1f\x20The\x20standa\ - rd\x20list\x20page\x20token.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\xb5\ - \x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xb5\x01\t\x13\n\r\n\ - \x05\x04\x02\x02\x03\x03\x12\x04\xb5\x01\x16\x17\ns\n\x02\x04\x03\x12\ - \x06\xb9\x01\0\xbf\x01\x01\x1ae\x20The\x20response\x20message\x20for\x20\ - [Operations.ListOperations][google.longrunning.Operations.ListOperations\ - ].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xb9\x01\x08\x1e\nV\n\x04\x04\x03\ - \x02\0\x12\x04\xbb\x01\x02$\x1aH\x20A\x20list\x20of\x20operations\x20tha\ - t\x20matches\x20the\x20specified\x20filter\x20in\x20the\x20request.\n\n\ - \r\n\x05\x04\x03\x02\0\x04\x12\x04\xbb\x01\x02\n\n\r\n\x05\x04\x03\x02\0\ - \x06\x12\x04\xbb\x01\x0b\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xbb\x01\ - \x15\x1f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xbb\x01\"#\n2\n\x04\x04\x03\ - \x02\x01\x12\x04\xbe\x01\x02\x1d\x1a$\x20The\x20standard\x20List\x20next\ - -page\x20token.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xbe\x01\x02\x08\ - \n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xbe\x01\t\x18\n\r\n\x05\x04\x03\ - \x02\x01\x03\x12\x04\xbe\x01\x1b\x1c\nt\n\x02\x04\x04\x12\x06\xc2\x01\0\ - \xc5\x01\x01\x1af\x20The\x20request\x20message\x20for\x20[Operations.Can\ - celOperation][google.longrunning.Operations.CancelOperation].\n\n\x0b\n\ - \x03\x04\x04\x01\x12\x04\xc2\x01\x08\x1e\nC\n\x04\x04\x04\x02\0\x12\x04\ - \xc4\x01\x02\x12\x1a5\x20The\x20name\x20of\x20the\x20operation\x20resour\ - ce\x20to\x20be\x20cancelled.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xc4\ - \x01\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc4\x01\t\r\n\r\n\x05\ - \x04\x04\x02\0\x03\x12\x04\xc4\x01\x10\x11\nt\n\x02\x04\x05\x12\x06\xc8\ - \x01\0\xcb\x01\x01\x1af\x20The\x20request\x20message\x20for\x20[Operatio\ - ns.DeleteOperation][google.longrunning.Operations.DeleteOperation].\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\xc8\x01\x08\x1e\nA\n\x04\x04\x05\x02\0\ - \x12\x04\xca\x01\x02\x12\x1a3\x20The\x20name\x20of\x20the\x20operation\ - \x20resource\x20to\x20be\x20deleted.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\ - \x04\xca\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xca\x01\t\r\n\r\ - \n\x05\x04\x05\x02\0\x03\x12\x04\xca\x01\x10\x11\np\n\x02\x04\x06\x12\ - \x06\xce\x01\0\xd6\x01\x01\x1ab\x20The\x20request\x20message\x20for\x20[\ - Operations.WaitOperation][google.longrunning.Operations.WaitOperation].\ - \n\n\x0b\n\x03\x04\x06\x01\x12\x04\xce\x01\x08\x1c\n>\n\x04\x04\x06\x02\ - \0\x12\x04\xd0\x01\x02\x12\x1a0\x20The\x20name\x20of\x20the\x20operation\ - \x20resource\x20to\x20wait\x20on.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\ - \xd0\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xd0\x01\t\r\n\r\n\ - \x05\x04\x06\x02\0\x03\x12\x04\xd0\x01\x10\x11\n\xeb\x01\n\x04\x04\x06\ - \x02\x01\x12\x04\xd5\x01\x02'\x1a\xdc\x01\x20The\x20maximum\x20duration\ - \x20to\x20wait\x20before\x20timing\x20out.\x20If\x20left\x20blank,\x20th\ - e\x20wait\n\x20will\x20be\x20at\x20most\x20the\x20time\x20permitted\x20b\ - y\x20the\x20underlying\x20HTTP/RPC\x20protocol.\n\x20If\x20RPC\x20contex\ - t\x20deadline\x20is\x20also\x20specified,\x20the\x20shorter\x20one\x20wi\ - ll\x20be\x20used.\n\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\xd5\x01\x02\ - \x1a\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xd5\x01\x1b\"\n\r\n\x05\x04\ - \x06\x02\x01\x03\x12\x04\xd5\x01%&\n\xfb\x02\n\x02\x04\x07\x12\x06\xe3\ - \x01\0\xf6\x01\x01\x1a\xec\x02\x20A\x20message\x20representing\x20the\ - \x20message\x20types\x20used\x20by\x20a\x20long-running\x20operation.\n\ - \n\x20Example:\n\n\x20\x20\x20rpc\x20LongRunningRecognize(LongRunningRec\ - ognizeRequest)\n\x20\x20\x20\x20\x20\x20\x20returns\x20(google.longrunni\ - ng.Operation)\x20{\n\x20\x20\x20\x20\x20option\x20(google.longrunning.op\ - eration_info)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20response_type:\x20\ - \"LongRunningRecognizeResponse\"\n\x20\x20\x20\x20\x20\x20\x20metadata_t\ - ype:\x20\"LongRunningRecognizeMetadata\"\n\x20\x20\x20\x20\x20};\n\x20\ - \x20\x20}\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xe3\x01\x08\x15\n\xe6\x02\n\ - \x04\x04\x07\x02\0\x12\x04\xec\x01\x02\x1b\x1a\xd7\x02\x20Required.\x20T\ - he\x20message\x20name\x20of\x20the\x20primary\x20return\x20type\x20for\ - \x20this\n\x20long-running\x20operation.\n\x20This\x20type\x20will\x20be\ - \x20used\x20to\x20deserialize\x20the\x20LRO's\x20response.\n\n\x20If\x20\ - the\x20response\x20is\x20in\x20a\x20different\x20package\x20from\x20the\ - \x20rpc,\x20a\x20fully-qualified\n\x20message\x20name\x20must\x20be\x20u\ - sed\x20(e.g.\x20`google.protobuf.Struct`).\n\n\x20Note:\x20Altering\x20t\ - his\x20value\x20constitutes\x20a\x20breaking\x20change.\n\n\r\n\x05\x04\ - \x07\x02\0\x05\x12\x04\xec\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\ - \x04\xec\x01\t\x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xec\x01\x19\x1a\n\ - \xa5\x02\n\x04\x04\x07\x02\x01\x12\x04\xf5\x01\x02\x1b\x1a\x96\x02\x20Re\ - quired.\x20The\x20message\x20name\x20of\x20the\x20metadata\x20type\x20fo\ - r\x20this\x20long-running\n\x20operation.\n\n\x20If\x20the\x20response\ - \x20is\x20in\x20a\x20different\x20package\x20from\x20the\x20rpc,\x20a\ + \x20default\x20HTTP\x20mapping,\x20the\n\x20`name`\x20should\x20have\x20\ + the\x20format\x20of\x20`operations/some/unique/name`.\n\n\x0c\n\x05\x04\ + \0\x02\0\x05\x12\x03}\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03}\t\r\n\ + \x0c\n\x05\x04\0\x02\0\x03\x12\x03}\x10\x11\n\xad\x02\n\x04\x04\0\x02\ + \x01\x12\x04\x83\x01\x02#\x1a\x9e\x02\x20Service-specific\x20metadata\ + \x20associated\x20with\x20the\x20operation.\x20\x20It\x20typically\n\x20\ + contains\x20progress\x20information\x20and\x20common\x20metadata\x20such\ + \x20as\x20create\x20time.\n\x20Some\x20services\x20might\x20not\x20provi\ + de\x20such\x20metadata.\x20\x20Any\x20method\x20that\x20returns\x20a\n\ + \x20long-running\x20operation\x20should\x20document\x20the\x20metadata\ + \x20type,\x20if\x20any.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x83\x01\ + \x02\x15\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x83\x01\x16\x1e\n\r\n\x05\ + \x04\0\x02\x01\x03\x12\x04\x83\x01!\"\n\xae\x01\n\x04\x04\0\x02\x02\x12\ + \x04\x88\x01\x02\x10\x1a\x9f\x01\x20If\x20the\x20value\x20is\x20`false`,\ + \x20it\x20means\x20the\x20operation\x20is\x20still\x20in\x20progress.\n\ + \x20If\x20`true`,\x20the\x20operation\x20is\x20completed,\x20and\x20eith\ + er\x20`error`\x20or\x20`response`\x20is\n\x20available.\n\n\r\n\x05\x04\ + \0\x02\x02\x05\x12\x04\x88\x01\x02\x06\n\r\n\x05\x04\0\x02\x02\x01\x12\ + \x04\x88\x01\x07\x0b\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x88\x01\x0e\x0f\ + \n\xdf\x01\n\x04\x04\0\x08\0\x12\x06\x8d\x01\x02\x9a\x01\x03\x1a\xce\x01\ + \x20The\x20operation\x20result,\x20which\x20can\x20be\x20either\x20an\ + \x20`error`\x20or\x20a\x20valid\x20`response`.\n\x20If\x20`done`\x20==\ + \x20`false`,\x20neither\x20`error`\x20nor\x20`response`\x20is\x20set.\n\ + \x20If\x20`done`\x20==\x20`true`,\x20exactly\x20one\x20of\x20`error`\x20\ + or\x20`response`\x20is\x20set.\n\n\r\n\x05\x04\0\x08\0\x01\x12\x04\x8d\ + \x01\x08\x0e\nU\n\x04\x04\0\x02\x03\x12\x04\x8f\x01\x04\x20\x1aG\x20The\ + \x20error\x20result\x20of\x20the\x20operation\x20in\x20case\x20of\x20fai\ + lure\x20or\x20cancellation.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x8f\ + \x01\x04\x15\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x8f\x01\x16\x1b\n\r\n\ + \x05\x04\0\x02\x03\x03\x12\x04\x8f\x01\x1e\x1f\n\x84\x04\n\x04\x04\0\x02\ + \x04\x12\x04\x99\x01\x04%\x1a\xf5\x03\x20The\x20normal\x20response\x20of\ + \x20the\x20operation\x20in\x20case\x20of\x20success.\x20\x20If\x20the\ + \x20original\n\x20method\x20returns\x20no\x20data\x20on\x20success,\x20s\ + uch\x20as\x20`Delete`,\x20the\x20response\x20is\n\x20`google.protobuf.Em\ + pty`.\x20\x20If\x20the\x20original\x20method\x20is\x20standard\n\x20`Get\ + `/`Create`/`Update`,\x20the\x20response\x20should\x20be\x20the\x20resour\ + ce.\x20\x20For\x20other\n\x20methods,\x20the\x20response\x20should\x20ha\ + ve\x20the\x20type\x20`XxxResponse`,\x20where\x20`Xxx`\n\x20is\x20the\x20\ + original\x20method\x20name.\x20\x20For\x20example,\x20if\x20the\x20origi\ + nal\x20method\x20name\n\x20is\x20`TakeSnapshot()`,\x20the\x20inferred\ + \x20response\x20type\x20is\n\x20`TakeSnapshotResponse`.\n\n\r\n\x05\x04\ + \0\x02\x04\x06\x12\x04\x99\x01\x04\x17\n\r\n\x05\x04\0\x02\x04\x01\x12\ + \x04\x99\x01\x18\x20\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\x99\x01#$\nn\n\ + \x02\x04\x01\x12\x06\x9e\x01\0\xa1\x01\x01\x1a`\x20The\x20request\x20mes\ + sage\x20for\x20[Operations.GetOperation][google.longrunning.Operations.G\ + etOperation].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x9e\x01\x08\x1b\n3\n\x04\ + \x04\x01\x02\0\x12\x04\xa0\x01\x02\x12\x1a%\x20The\x20name\x20of\x20the\ + \x20operation\x20resource.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xa0\x01\ + \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xa0\x01\t\r\n\r\n\x05\x04\ + \x01\x02\0\x03\x12\x04\xa0\x01\x10\x11\nr\n\x02\x04\x02\x12\x06\xa4\x01\ + \0\xb0\x01\x01\x1ad\x20The\x20request\x20message\x20for\x20[Operations.L\ + istOperations][google.longrunning.Operations.ListOperations].\n\n\x0b\n\ + \x03\x04\x02\x01\x12\x04\xa4\x01\x08\x1d\n<\n\x04\x04\x02\x02\0\x12\x04\ + \xa6\x01\x02\x12\x1a.\x20The\x20name\x20of\x20the\x20operation's\x20pare\ + nt\x20resource.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xa6\x01\x02\x08\n\ + \r\n\x05\x04\x02\x02\0\x01\x12\x04\xa6\x01\t\r\n\r\n\x05\x04\x02\x02\0\ + \x03\x12\x04\xa6\x01\x10\x11\n)\n\x04\x04\x02\x02\x01\x12\x04\xa9\x01\ + \x02\x14\x1a\x1b\x20The\x20standard\x20list\x20filter.\n\n\r\n\x05\x04\ + \x02\x02\x01\x05\x12\x04\xa9\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\ + \x12\x04\xa9\x01\t\x0f\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa9\x01\x12\ + \x13\n,\n\x04\x04\x02\x02\x02\x12\x04\xac\x01\x02\x16\x1a\x1e\x20The\x20\ + standard\x20list\x20page\x20size.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\ + \x04\xac\x01\x02\x07\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xac\x01\x08\ + \x11\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xac\x01\x14\x15\n-\n\x04\x04\ + \x02\x02\x03\x12\x04\xaf\x01\x02\x18\x1a\x1f\x20The\x20standard\x20list\ + \x20page\x20token.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\x04\xaf\x01\x02\ + \x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xaf\x01\t\x13\n\r\n\x05\x04\ + \x02\x02\x03\x03\x12\x04\xaf\x01\x16\x17\ns\n\x02\x04\x03\x12\x06\xb3\ + \x01\0\xb9\x01\x01\x1ae\x20The\x20response\x20message\x20for\x20[Operati\ + ons.ListOperations][google.longrunning.Operations.ListOperations].\n\n\ + \x0b\n\x03\x04\x03\x01\x12\x04\xb3\x01\x08\x1e\nV\n\x04\x04\x03\x02\0\ + \x12\x04\xb5\x01\x02$\x1aH\x20A\x20list\x20of\x20operations\x20that\x20m\ + atches\x20the\x20specified\x20filter\x20in\x20the\x20request.\n\n\r\n\ + \x05\x04\x03\x02\0\x04\x12\x04\xb5\x01\x02\n\n\r\n\x05\x04\x03\x02\0\x06\ + \x12\x04\xb5\x01\x0b\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xb5\x01\x15\ + \x1f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xb5\x01\"#\n2\n\x04\x04\x03\x02\ + \x01\x12\x04\xb8\x01\x02\x1d\x1a$\x20The\x20standard\x20List\x20next-pag\ + e\x20token.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xb8\x01\x02\x08\n\r\ + \n\x05\x04\x03\x02\x01\x01\x12\x04\xb8\x01\t\x18\n\r\n\x05\x04\x03\x02\ + \x01\x03\x12\x04\xb8\x01\x1b\x1c\nt\n\x02\x04\x04\x12\x06\xbc\x01\0\xbf\ + \x01\x01\x1af\x20The\x20request\x20message\x20for\x20[Operations.CancelO\ + peration][google.longrunning.Operations.CancelOperation].\n\n\x0b\n\x03\ + \x04\x04\x01\x12\x04\xbc\x01\x08\x1e\nC\n\x04\x04\x04\x02\0\x12\x04\xbe\ + \x01\x02\x12\x1a5\x20The\x20name\x20of\x20the\x20operation\x20resource\ + \x20to\x20be\x20cancelled.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xbe\x01\ + \x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xbe\x01\t\r\n\r\n\x05\x04\ + \x04\x02\0\x03\x12\x04\xbe\x01\x10\x11\nt\n\x02\x04\x05\x12\x06\xc2\x01\ + \0\xc5\x01\x01\x1af\x20The\x20request\x20message\x20for\x20[Operations.D\ + eleteOperation][google.longrunning.Operations.DeleteOperation].\n\n\x0b\ + \n\x03\x04\x05\x01\x12\x04\xc2\x01\x08\x1e\nA\n\x04\x04\x05\x02\0\x12\ + \x04\xc4\x01\x02\x12\x1a3\x20The\x20name\x20of\x20the\x20operation\x20re\ + source\x20to\x20be\x20deleted.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xc4\ + \x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xc4\x01\t\r\n\r\n\x05\ + \x04\x05\x02\0\x03\x12\x04\xc4\x01\x10\x11\np\n\x02\x04\x06\x12\x06\xc8\ + \x01\0\xd0\x01\x01\x1ab\x20The\x20request\x20message\x20for\x20[Operatio\ + ns.WaitOperation][google.longrunning.Operations.WaitOperation].\n\n\x0b\ + \n\x03\x04\x06\x01\x12\x04\xc8\x01\x08\x1c\n>\n\x04\x04\x06\x02\0\x12\ + \x04\xca\x01\x02\x12\x1a0\x20The\x20name\x20of\x20the\x20operation\x20re\ + source\x20to\x20wait\x20on.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xca\ + \x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xca\x01\t\r\n\r\n\x05\ + \x04\x06\x02\0\x03\x12\x04\xca\x01\x10\x11\n\xeb\x01\n\x04\x04\x06\x02\ + \x01\x12\x04\xcf\x01\x02'\x1a\xdc\x01\x20The\x20maximum\x20duration\x20t\ + o\x20wait\x20before\x20timing\x20out.\x20If\x20left\x20blank,\x20the\x20\ + wait\n\x20will\x20be\x20at\x20most\x20the\x20time\x20permitted\x20by\x20\ + the\x20underlying\x20HTTP/RPC\x20protocol.\n\x20If\x20RPC\x20context\x20\ + deadline\x20is\x20also\x20specified,\x20the\x20shorter\x20one\x20will\ + \x20be\x20used.\n\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\xcf\x01\x02\x1a\ + \n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xcf\x01\x1b\"\n\r\n\x05\x04\x06\ + \x02\x01\x03\x12\x04\xcf\x01%&\n\xfb\x02\n\x02\x04\x07\x12\x06\xdd\x01\0\ + \xf0\x01\x01\x1a\xec\x02\x20A\x20message\x20representing\x20the\x20messa\ + ge\x20types\x20used\x20by\x20a\x20long-running\x20operation.\n\n\x20Exam\ + ple:\n\n\x20\x20\x20rpc\x20LongRunningRecognize(LongRunningRecognizeRequ\ + est)\n\x20\x20\x20\x20\x20\x20\x20returns\x20(google.longrunning.Operati\ + on)\x20{\n\x20\x20\x20\x20\x20option\x20(google.longrunning.operation_in\ + fo)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20response_type:\x20\"LongRunni\ + ngRecognizeResponse\"\n\x20\x20\x20\x20\x20\x20\x20metadata_type:\x20\"L\ + ongRunningRecognizeMetadata\"\n\x20\x20\x20\x20\x20};\n\x20\x20\x20}\n\n\ + \x0b\n\x03\x04\x07\x01\x12\x04\xdd\x01\x08\x15\n\xe6\x02\n\x04\x04\x07\ + \x02\0\x12\x04\xe6\x01\x02\x1b\x1a\xd7\x02\x20Required.\x20The\x20messag\ + e\x20name\x20of\x20the\x20primary\x20return\x20type\x20for\x20this\n\x20\ + long-running\x20operation.\n\x20This\x20type\x20will\x20be\x20used\x20to\ + \x20deserialize\x20the\x20LRO's\x20response.\n\n\x20If\x20the\x20respons\ + e\x20is\x20in\x20a\x20different\x20package\x20from\x20the\x20rpc,\x20a\ \x20fully-qualified\n\x20message\x20name\x20must\x20be\x20used\x20(e.g.\ \x20`google.protobuf.Struct`).\n\n\x20Note:\x20Altering\x20this\x20value\ - \x20constitutes\x20a\x20breaking\x20change.\n\n\r\n\x05\x04\x07\x02\x01\ - \x05\x12\x04\xf5\x01\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xf5\ - \x01\t\x16\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xf5\x01\x19\x1ab\x06pro\ - to3\ + \x20constitutes\x20a\x20breaking\x20change.\n\n\r\n\x05\x04\x07\x02\0\ + \x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xe6\x01\ + \t\x16\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe6\x01\x19\x1a\n\xa5\x02\n\ + \x04\x04\x07\x02\x01\x12\x04\xef\x01\x02\x1b\x1a\x96\x02\x20Required.\ + \x20The\x20message\x20name\x20of\x20the\x20metadata\x20type\x20for\x20th\ + is\x20long-running\n\x20operation.\n\n\x20If\x20the\x20response\x20is\ + \x20in\x20a\x20different\x20package\x20from\x20the\x20rpc,\x20a\x20fully\ + -qualified\n\x20message\x20name\x20must\x20be\x20used\x20(e.g.\x20`googl\ + e.protobuf.Struct`).\n\n\x20Note:\x20Altering\x20this\x20value\x20consti\ + tutes\x20a\x20breaking\x20change.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\ + \x04\xef\x01\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xef\x01\t\x16\ + \n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xef\x01\x19\x1ab\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(6); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(8); + messages.push(Operation::generated_message_descriptor_data()); + messages.push(GetOperationRequest::generated_message_descriptor_data()); + messages.push(ListOperationsRequest::generated_message_descriptor_data()); + messages.push(ListOperationsResponse::generated_message_descriptor_data()); + messages.push(CancelOperationRequest::generated_message_descriptor_data()); + messages.push(DeleteOperationRequest::generated_message_descriptor_data()); + messages.push(WaitOperationRequest::generated_message_descriptor_data()); + messages.push(OperationInfo::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/pubsub/v1/mod.rs b/googleapis-raw/src/pubsub/v1/mod.rs index f2d4216..135cc64 100644 --- a/googleapis-raw/src/pubsub/v1/mod.rs +++ b/googleapis-raw/src/pubsub/v1/mod.rs @@ -1,11 +1,8 @@ // @generated - -use crate::{ +pub(crate) use crate::{ + api::{annotations, client}, empty, - }; pub mod pubsub; pub mod pubsub_grpc; -pub mod schema; -pub mod schema_grpc; diff --git a/googleapis-raw/src/pubsub/v1/pubsub.rs b/googleapis-raw/src/pubsub/v1/pubsub.rs index c635418..c40b293 100644 --- a/googleapis-raw/src/pubsub/v1/pubsub.rs +++ b/googleapis-raw/src/pubsub/v1/pubsub.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,29 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/pubsub/v1/pubsub.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.pubsub.v1.MessageStoragePolicy) +#[derive(PartialEq,Clone,Default,Debug)] pub struct MessageStoragePolicy { // message fields - pub allowed_persistence_regions: ::protobuf::RepeatedField<::std::string::String>, + /// A list of IDs of GCP regions where messages that are published to the topic + /// may be persisted in storage. Messages published by publishers running in + /// non-allowed GCP regions (or running outside of GCP altogether) will be + /// routed for storage in one of the allowed regions. An empty list means that + /// no regions are allowed, and is not a valid configuration. + // @@protoc_insertion_point(field:google.pubsub.v1.MessageStoragePolicy.allowed_persistence_regions) + pub allowed_persistence_regions: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.MessageStoragePolicy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a MessageStoragePolicy { @@ -43,46 +52,37 @@ impl MessageStoragePolicy { ::std::default::Default::default() } - // repeated string allowed_persistence_regions = 1; - - - pub fn get_allowed_persistence_regions(&self) -> &[::std::string::String] { - &self.allowed_persistence_regions - } - pub fn clear_allowed_persistence_regions(&mut self) { - self.allowed_persistence_regions.clear(); - } - - // Param is passed by value, moved - pub fn set_allowed_persistence_regions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.allowed_persistence_regions = v; - } - - // Mutable pointer to the field. - pub fn mut_allowed_persistence_regions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.allowed_persistence_regions - } - - // Take field - pub fn take_allowed_persistence_regions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.allowed_persistence_regions, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "allowed_persistence_regions", + |m: &MessageStoragePolicy| { &m.allowed_persistence_regions }, + |m: &mut MessageStoragePolicy| { &mut m.allowed_persistence_regions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MessageStoragePolicy", + fields, + oneofs, + ) } } impl ::protobuf::Message for MessageStoragePolicy { + const NAME: &'static str = "MessageStoragePolicy"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.allowed_persistence_regions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.allowed_persistence_regions.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -91,236 +91,405 @@ impl ::protobuf::Message for MessageStoragePolicy { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.allowed_persistence_regions { my_size += ::protobuf::rt::string_size(1, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.allowed_persistence_regions { os.write_string(1, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> MessageStoragePolicy { MessageStoragePolicy::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "allowed_persistence_regions", - |m: &MessageStoragePolicy| { &m.allowed_persistence_regions }, - |m: &mut MessageStoragePolicy| { &mut m.allowed_persistence_regions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MessageStoragePolicy", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.allowed_persistence_regions.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static MessageStoragePolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(MessageStoragePolicy::new) + static instance: MessageStoragePolicy = MessageStoragePolicy { + allowed_persistence_regions: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for MessageStoragePolicy { - fn clear(&mut self) { - self.allowed_persistence_regions.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for MessageStoragePolicy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MessageStoragePolicy").unwrap()).clone() } } -impl ::std::fmt::Debug for MessageStoragePolicy { +impl ::std::fmt::Display for MessageStoragePolicy { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for MessageStoragePolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct SchemaSettings { +/// A topic resource. +// @@protoc_insertion_point(message:google.pubsub.v1.Topic) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Topic { // message fields - pub schema: ::std::string::String, - pub encoding: super::schema::Encoding, - pub first_revision_id: ::std::string::String, - pub last_revision_id: ::std::string::String, + /// The name of the topic. It must have the format + /// `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, + /// and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + /// underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent + /// signs (`%`). It must be between 3 and 255 characters in length, and it + /// must not start with `"goog"`. + // @@protoc_insertion_point(field:google.pubsub.v1.Topic.name) + pub name: ::std::string::String, + /// See Creating and + /// managing labels. + // @@protoc_insertion_point(field:google.pubsub.v1.Topic.labels) + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// Policy constraining the set of Google Cloud Platform regions where messages + /// published to the topic may be stored. If not present, then no constraints + /// are in effect. + // @@protoc_insertion_point(field:google.pubsub.v1.Topic.message_storage_policy) + pub message_storage_policy: ::protobuf::MessageField, + /// The resource name of the Cloud KMS CryptoKey to be used to protect access + /// to messages published on this topic. + /// + /// The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + // @@protoc_insertion_point(field:google.pubsub.v1.Topic.kms_key_name) + pub kms_key_name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.Topic.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a SchemaSettings { - fn default() -> &'a SchemaSettings { - ::default_instance() +impl<'a> ::std::default::Default for &'a Topic { + fn default() -> &'a Topic { + ::default_instance() } } -impl SchemaSettings { - pub fn new() -> SchemaSettings { +impl Topic { + pub fn new() -> Topic { ::std::default::Default::default() } - // string schema = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Topic| { &m.name }, + |m: &mut Topic| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Topic| { &m.labels }, + |m: &mut Topic| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, MessageStoragePolicy>( + "message_storage_policy", + |m: &Topic| { &m.message_storage_policy }, + |m: &mut Topic| { &mut m.message_storage_policy }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "kms_key_name", + |m: &Topic| { &m.kms_key_name }, + |m: &mut Topic| { &mut m.kms_key_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Topic", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for Topic { + const NAME: &'static str = "Topic"; - pub fn get_schema(&self) -> &str { - &self.schema - } - pub fn clear_schema(&mut self) { - self.schema.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_schema(&mut self, v: ::std::string::String) { - self.schema = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.message_storage_policy)?; + }, + 42 => { + self.kms_key_name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema(&mut self) -> &mut ::std::string::String { - &mut self.schema + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if let Some(v) = self.message_storage_policy.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if !self.kms_key_name.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.kms_key_name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_schema(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.schema, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if let Some(v) = self.message_storage_policy.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + if !self.kms_key_name.is_empty() { + os.write_string(5, &self.kms_key_name)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.pubsub.v1.Encoding encoding = 2; - - - pub fn get_encoding(&self) -> super::schema::Encoding { - self.encoding - } - pub fn clear_encoding(&mut self) { - self.encoding = super::schema::Encoding::ENCODING_UNSPECIFIED; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Param is passed by value, moved - pub fn set_encoding(&mut self, v: super::schema::Encoding) { - self.encoding = v; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // string first_revision_id = 3; - - - pub fn get_first_revision_id(&self) -> &str { - &self.first_revision_id - } - pub fn clear_first_revision_id(&mut self) { - self.first_revision_id.clear(); + fn new() -> Topic { + Topic::new() } - // Param is passed by value, moved - pub fn set_first_revision_id(&mut self, v: ::std::string::String) { - self.first_revision_id = v; + fn clear(&mut self) { + self.name.clear(); + self.labels.clear(); + self.message_storage_policy.clear(); + self.kms_key_name.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_first_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.first_revision_id + fn default_instance() -> &'static Topic { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(Topic::new) } +} - // Take field - pub fn take_first_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.first_revision_id, ::std::string::String::new()) +impl ::protobuf::MessageFull for Topic { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Topic").unwrap()).clone() } +} - // string last_revision_id = 4; - - - pub fn get_last_revision_id(&self) -> &str { - &self.last_revision_id - } - pub fn clear_last_revision_id(&mut self) { - self.last_revision_id.clear(); +impl ::std::fmt::Display for Topic { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_last_revision_id(&mut self, v: ::std::string::String) { - self.last_revision_id = v; +impl ::protobuf::reflect::ProtobufValue for Topic { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// A message that is published by publishers and consumed by subscribers. The +/// message must contain either a non-empty data field or at least one attribute. +/// Note that client libraries represent this object differently +/// depending on the language. See the corresponding +/// client +/// library documentation for more information. See +/// Quotas and limits +/// for more information about message limits. +// @@protoc_insertion_point(message:google.pubsub.v1.PubsubMessage) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PubsubMessage { + // message fields + /// The message data field. If this field is empty, the message must contain + /// at least one attribute. + // @@protoc_insertion_point(field:google.pubsub.v1.PubsubMessage.data) + pub data: ::std::vec::Vec, + /// Optional attributes for this message. + // @@protoc_insertion_point(field:google.pubsub.v1.PubsubMessage.attributes) + pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// ID of this message, assigned by the server when the message is published. + /// Guaranteed to be unique within the topic. This value may be read by a + /// subscriber that receives a `PubsubMessage` via a `Pull` call or a push + /// delivery. It must not be populated by the publisher in a `Publish` call. + // @@protoc_insertion_point(field:google.pubsub.v1.PubsubMessage.message_id) + pub message_id: ::std::string::String, + /// The time at which the message was published, populated by the server when + /// it receives the `Publish` call. It must not be populated by the + /// publisher in a `Publish` call. + // @@protoc_insertion_point(field:google.pubsub.v1.PubsubMessage.publish_time) + pub publish_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// Identifies related messages for which publish order should be respected. + /// If a `Subscription` has `enable_message_ordering` set to `true`, messages + /// published with the same `ordering_key` value will be delivered to + /// subscribers in the order in which they are received by the Pub/Sub system. + /// EXPERIMENTAL: This feature is part of a closed alpha release. This + /// API might be changed in backward-incompatible ways and is not recommended + /// for production use. It is not subject to any SLA or deprecation policy. + // @@protoc_insertion_point(field:google.pubsub.v1.PubsubMessage.ordering_key) + pub ordering_key: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.PubsubMessage.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a PubsubMessage { + fn default() -> &'a PubsubMessage { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_last_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.last_revision_id +impl PubsubMessage { + pub fn new() -> PubsubMessage { + ::std::default::Default::default() } - // Take field - pub fn take_last_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.last_revision_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "data", + |m: &PubsubMessage| { &m.data }, + |m: &mut PubsubMessage| { &mut m.data }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "attributes", + |m: &PubsubMessage| { &m.attributes }, + |m: &mut PubsubMessage| { &mut m.attributes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "message_id", + |m: &PubsubMessage| { &m.message_id }, + |m: &mut PubsubMessage| { &mut m.message_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "publish_time", + |m: &PubsubMessage| { &m.publish_time }, + |m: &mut PubsubMessage| { &mut m.publish_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ordering_key", + |m: &PubsubMessage| { &m.ordering_key }, + |m: &mut PubsubMessage| { &mut m.ordering_key }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PubsubMessage", + fields, + oneofs, + ) } } -impl ::protobuf::Message for SchemaSettings { +impl ::protobuf::Message for PubsubMessage { + const NAME: &'static str = "PubsubMessage"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.schema)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.data = is.read_bytes()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.attributes.insert(key, value); }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encoding, 2, &mut self.unknown_fields)? + 26 => { + self.message_id = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.first_revision_id)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.publish_time)?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.last_revision_id)?; + 42 => { + self.ordering_key = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -329,401 +498,443 @@ impl ::protobuf::Message for SchemaSettings { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.schema.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.schema); + if !self.data.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.data); } - if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.encoding); + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if !self.message_id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.message_id); } - if !self.first_revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.first_revision_id); + if let Some(v) = self.publish_time.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.last_revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.last_revision_id); + if !self.ordering_key.is_empty() { + my_size += ::protobuf::rt::string_size(5, &self.ordering_key); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.schema.is_empty() { - os.write_string(1, &self.schema)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.data.is_empty() { + os.write_bytes(1, &self.data)?; } - if self.encoding != super::schema::Encoding::ENCODING_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.encoding))?; + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if !self.message_id.is_empty() { + os.write_string(3, &self.message_id)?; } - if !self.first_revision_id.is_empty() { - os.write_string(3, &self.first_revision_id)?; + if let Some(v) = self.publish_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - if !self.last_revision_id.is_empty() { - os.write_string(4, &self.last_revision_id)?; + if !self.ordering_key.is_empty() { + os.write_string(5, &self.ordering_key)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> SchemaSettings { - SchemaSettings::new() + fn new() -> PubsubMessage { + PubsubMessage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "schema", - |m: &SchemaSettings| { &m.schema }, - |m: &mut SchemaSettings| { &mut m.schema }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encoding", - |m: &SchemaSettings| { &m.encoding }, - |m: &mut SchemaSettings| { &mut m.encoding }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "first_revision_id", - |m: &SchemaSettings| { &m.first_revision_id }, - |m: &mut SchemaSettings| { &mut m.first_revision_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "last_revision_id", - |m: &SchemaSettings| { &m.last_revision_id }, - |m: &mut SchemaSettings| { &mut m.last_revision_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SchemaSettings", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.data.clear(); + self.attributes.clear(); + self.message_id.clear(); + self.publish_time.clear(); + self.ordering_key.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static SchemaSettings { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SchemaSettings::new) + fn default_instance() -> &'static PubsubMessage { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(PubsubMessage::new) } } -impl ::protobuf::Clear for SchemaSettings { - fn clear(&mut self) { - self.schema.clear(); - self.encoding = super::schema::Encoding::ENCODING_UNSPECIFIED; - self.first_revision_id.clear(); - self.last_revision_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PubsubMessage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PubsubMessage").unwrap()).clone() } } -impl ::std::fmt::Debug for SchemaSettings { +impl ::std::fmt::Display for PubsubMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for SchemaSettings { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for PubsubMessage { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Topic { +/// Request for the GetTopic method. +// @@protoc_insertion_point(message:google.pubsub.v1.GetTopicRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetTopicRequest { // message fields - pub name: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub message_storage_policy: ::protobuf::SingularPtrField, - pub kms_key_name: ::std::string::String, - pub schema_settings: ::protobuf::SingularPtrField, - pub satisfies_pzs: bool, - pub message_retention_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, + /// The name of the topic to get. + /// Format is `projects/{project}/topics/{topic}`. + // @@protoc_insertion_point(field:google.pubsub.v1.GetTopicRequest.topic) + pub topic: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.GetTopicRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a Topic { - fn default() -> &'a Topic { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetTopicRequest { + fn default() -> &'a GetTopicRequest { + ::default_instance() } } -impl Topic { - pub fn new() -> Topic { +impl GetTopicRequest { + pub fn new() -> GetTopicRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &GetTopicRequest| { &m.topic }, + |m: &mut GetTopicRequest| { &mut m.topic }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetTopicRequest", + fields, + oneofs, + ) } +} - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } +impl ::protobuf::Message for GetTopicRequest { + const NAME: &'static str = "GetTopicRequest"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // repeated .google.pubsub.v1.Topic.LabelsEntry labels = 2; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.topic); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.topic.is_empty() { + os.write_string(1, &self.topic)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; - - - pub fn get_message_storage_policy(&self) -> &MessageStoragePolicy { - self.message_storage_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_message_storage_policy(&mut self) { - self.message_storage_policy.clear(); + fn new() -> GetTopicRequest { + GetTopicRequest::new() } - pub fn has_message_storage_policy(&self) -> bool { - self.message_storage_policy.is_some() + fn clear(&mut self) { + self.topic.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_message_storage_policy(&mut self, v: MessageStoragePolicy) { - self.message_storage_policy = ::protobuf::SingularPtrField::some(v); + fn default_instance() -> &'static GetTopicRequest { + static instance: GetTopicRequest = GetTopicRequest { + topic: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message_storage_policy(&mut self) -> &mut MessageStoragePolicy { - if self.message_storage_policy.is_none() { - self.message_storage_policy.set_default(); - } - self.message_storage_policy.as_mut().unwrap() +impl ::protobuf::MessageFull for GetTopicRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetTopicRequest").unwrap()).clone() } +} - // Take field - pub fn take_message_storage_policy(&mut self) -> MessageStoragePolicy { - self.message_storage_policy.take().unwrap_or_else(|| MessageStoragePolicy::new()) +impl ::std::fmt::Display for GetTopicRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // string kms_key_name = 5; - +impl ::protobuf::reflect::ProtobufValue for GetTopicRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } +/// Request for the UpdateTopic method. +// @@protoc_insertion_point(message:google.pubsub.v1.UpdateTopicRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateTopicRequest { + // message fields + /// The updated topic object. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateTopicRequest.topic) + pub topic: ::protobuf::MessageField, + /// Indicates which fields in the provided topic to update. Must be specified + /// and non-empty. Note that if `update_mask` contains + /// "message_storage_policy" then the new value will be determined based on the + /// policy configured at the project or organization level. The + /// `message_storage_policy` must not be set in the `topic` provided above. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateTopicRequest.update_mask) + pub update_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.UpdateTopicRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; +impl<'a> ::std::default::Default for &'a UpdateTopicRequest { + fn default() -> &'a UpdateTopicRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name +impl UpdateTopicRequest { + pub fn new() -> UpdateTopicRequest { + ::std::default::Default::default() } - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Topic>( + "topic", + |m: &UpdateTopicRequest| { &m.topic }, + |m: &mut UpdateTopicRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "update_mask", + |m: &UpdateTopicRequest| { &m.update_mask }, + |m: &mut UpdateTopicRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateTopicRequest", + fields, + oneofs, + ) } +} - // .google.pubsub.v1.SchemaSettings schema_settings = 6; - +impl ::protobuf::Message for UpdateTopicRequest { + const NAME: &'static str = "UpdateTopicRequest"; - pub fn get_schema_settings(&self) -> &SchemaSettings { - self.schema_settings.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_schema_settings(&mut self) { - self.schema_settings.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_schema_settings(&self) -> bool { - self.schema_settings.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.topic)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.update_mask)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_schema_settings(&mut self, v: SchemaSettings) { - self.schema_settings = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.topic.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.update_mask.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema_settings(&mut self) -> &mut SchemaSettings { - if self.schema_settings.is_none() { - self.schema_settings.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.topic.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - self.schema_settings.as_mut().unwrap() + if let Some(v) = self.update_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_schema_settings(&mut self) -> SchemaSettings { - self.schema_settings.take().unwrap_or_else(|| SchemaSettings::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // bool satisfies_pzs = 7; - - - pub fn get_satisfies_pzs(&self) -> bool { - self.satisfies_pzs - } - pub fn clear_satisfies_pzs(&mut self) { - self.satisfies_pzs = false; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_satisfies_pzs(&mut self, v: bool) { - self.satisfies_pzs = v; + fn new() -> UpdateTopicRequest { + UpdateTopicRequest::new() } - // .google.protobuf.Duration message_retention_duration = 8; - + fn clear(&mut self) { + self.topic.clear(); + self.update_mask.clear(); + self.special_fields.clear(); + } - pub fn get_message_retention_duration(&self) -> &::protobuf::well_known_types::Duration { - self.message_retention_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) + fn default_instance() -> &'static UpdateTopicRequest { + static instance: UpdateTopicRequest = UpdateTopicRequest { + topic: ::protobuf::MessageField::none(), + update_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } - pub fn clear_message_retention_duration(&mut self) { - self.message_retention_duration.clear(); +} + +impl ::protobuf::MessageFull for UpdateTopicRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateTopicRequest").unwrap()).clone() } +} - pub fn has_message_retention_duration(&self) -> bool { - self.message_retention_duration.is_some() +impl ::std::fmt::Display for UpdateTopicRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_message_retention_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.message_retention_duration = ::protobuf::SingularPtrField::some(v); +impl ::protobuf::reflect::ProtobufValue for UpdateTopicRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request for the Publish method. +// @@protoc_insertion_point(message:google.pubsub.v1.PublishRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PublishRequest { + // message fields + /// The messages in the request will be published on this topic. + /// Format is `projects/{project}/topics/{topic}`. + // @@protoc_insertion_point(field:google.pubsub.v1.PublishRequest.topic) + pub topic: ::std::string::String, + /// The messages to publish. + // @@protoc_insertion_point(field:google.pubsub.v1.PublishRequest.messages) + pub messages: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.PublishRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a PublishRequest { + fn default() -> &'a PublishRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message_retention_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.message_retention_duration.is_none() { - self.message_retention_duration.set_default(); - } - self.message_retention_duration.as_mut().unwrap() +impl PublishRequest { + pub fn new() -> PublishRequest { + ::std::default::Default::default() } - // Take field - pub fn take_message_retention_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.message_retention_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &PublishRequest| { &m.topic }, + |m: &mut PublishRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "messages", + |m: &PublishRequest| { &m.messages }, + |m: &mut PublishRequest| { &mut m.messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PublishRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for Topic { +impl ::protobuf::Message for PublishRequest { + const NAME: &'static str = "PublishRequest"; + fn is_initialized(&self) -> bool { - for v in &self.message_storage_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.schema_settings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.message_retention_duration { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message_storage_policy)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.schema_settings)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.satisfies_pzs = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message_retention_duration)?; + 18 => { + self.messages.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -732,365 +943,282 @@ impl ::protobuf::Message for Topic { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels); - if let Some(ref v) = self.message_storage_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.kms_key_name); - } - if let Some(ref v) = self.schema_settings.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.satisfies_pzs != false { - my_size += 2; - } - if let Some(ref v) = self.message_retention_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.topic); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.messages { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?; - if let Some(ref v) = self.message_storage_policy.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.kms_key_name.is_empty() { - os.write_string(5, &self.kms_key_name)?; - } - if let Some(ref v) = self.schema_settings.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.satisfies_pzs != false { - os.write_bool(7, self.satisfies_pzs)?; - } - if let Some(ref v) = self.message_retention_duration.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.topic.is_empty() { + os.write_string(1, &self.topic)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + for v in &self.messages { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> Topic { - Topic::new() + fn new() -> PublishRequest { + PublishRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Topic| { &m.name }, - |m: &mut Topic| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Topic| { &m.labels }, - |m: &mut Topic| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "message_storage_policy", - |m: &Topic| { &m.message_storage_policy }, - |m: &mut Topic| { &mut m.message_storage_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &Topic| { &m.kms_key_name }, - |m: &mut Topic| { &mut m.kms_key_name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schema_settings", - |m: &Topic| { &m.schema_settings }, - |m: &mut Topic| { &mut m.schema_settings }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "satisfies_pzs", - |m: &Topic| { &m.satisfies_pzs }, - |m: &mut Topic| { &mut m.satisfies_pzs }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "message_retention_duration", - |m: &Topic| { &m.message_retention_duration }, - |m: &mut Topic| { &mut m.message_retention_duration }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Topic", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.messages.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static Topic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Topic::new) + fn default_instance() -> &'static PublishRequest { + static instance: PublishRequest = PublishRequest { + topic: ::std::string::String::new(), + messages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Topic { - fn clear(&mut self) { - self.name.clear(); - self.labels.clear(); - self.message_storage_policy.clear(); - self.kms_key_name.clear(); - self.schema_settings.clear(); - self.satisfies_pzs = false; - self.message_retention_duration.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PublishRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PublishRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for Topic { +impl ::std::fmt::Display for PublishRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for Topic { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for PublishRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct PubsubMessage { +/// Response for the `Publish` method. +// @@protoc_insertion_point(message:google.pubsub.v1.PublishResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PublishResponse { // message fields - pub data: ::std::vec::Vec, - pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub message_id: ::std::string::String, - pub publish_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub ordering_key: ::std::string::String, + /// The server-assigned ID of each published message, in the same order as + /// the messages in the request. IDs are guaranteed to be unique within + /// the topic. + // @@protoc_insertion_point(field:google.pubsub.v1.PublishResponse.message_ids) + pub message_ids: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.PublishResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a PubsubMessage { - fn default() -> &'a PubsubMessage { - ::default_instance() +impl<'a> ::std::default::Default for &'a PublishResponse { + fn default() -> &'a PublishResponse { + ::default_instance() } } -impl PubsubMessage { - pub fn new() -> PubsubMessage { +impl PublishResponse { + pub fn new() -> PublishResponse { ::std::default::Default::default() } - // bytes data = 1; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "message_ids", + |m: &PublishResponse| { &m.message_ids }, + |m: &mut PublishResponse| { &mut m.message_ids }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PublishResponse", + fields, + oneofs, + ) } +} - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } +impl ::protobuf::Message for PublishResponse { + const NAME: &'static str = "PublishResponse"; - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.message_ids.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // repeated .google.pubsub.v1.PubsubMessage.AttributesEntry attributes = 2; - - - pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.attributes - } - pub fn clear_attributes(&mut self) { - self.attributes.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.message_ids { + my_size += ::protobuf::rt::string_size(1, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.attributes = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.message_ids { + os.write_string(1, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.attributes + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // string message_id = 3; - - - pub fn get_message_id(&self) -> &str { - &self.message_id + fn new() -> PublishResponse { + PublishResponse::new() } - pub fn clear_message_id(&mut self) { - self.message_id.clear(); + + fn clear(&mut self) { + self.message_ids.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_message_id(&mut self, v: ::std::string::String) { - self.message_id = v; + fn default_instance() -> &'static PublishResponse { + static instance: PublishResponse = PublishResponse { + message_ids: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message_id(&mut self) -> &mut ::std::string::String { - &mut self.message_id +impl ::protobuf::MessageFull for PublishResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PublishResponse").unwrap()).clone() } +} - // Take field - pub fn take_message_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.message_id, ::std::string::String::new()) +impl ::std::fmt::Display for PublishResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.protobuf.Timestamp publish_time = 4; +impl ::protobuf::reflect::ProtobufValue for PublishResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// Request for the `ListTopics` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicsRequest { + // message fields + /// The name of the project in which to list topics. + /// Format is `projects/{project-id}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicsRequest.project) + pub project: ::std::string::String, + /// Maximum number of topics to return. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicsRequest.page_size) + pub page_size: i32, + /// The value returned by the last `ListTopicsResponse`; indicates that this is + /// a continuation of a prior `ListTopics` call, and that the system should + /// return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicsRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_publish_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.publish_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_publish_time(&mut self) { - self.publish_time.clear(); +impl<'a> ::std::default::Default for &'a ListTopicsRequest { + fn default() -> &'a ListTopicsRequest { + ::default_instance() } +} - pub fn has_publish_time(&self) -> bool { - self.publish_time.is_some() +impl ListTopicsRequest { + pub fn new() -> ListTopicsRequest { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_publish_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.publish_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_publish_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.publish_time.is_none() { - self.publish_time.set_default(); - } - self.publish_time.as_mut().unwrap() - } - - // Take field - pub fn take_publish_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.publish_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string ordering_key = 5; - - - pub fn get_ordering_key(&self) -> &str { - &self.ordering_key - } - pub fn clear_ordering_key(&mut self) { - self.ordering_key.clear(); - } - - // Param is passed by value, moved - pub fn set_ordering_key(&mut self, v: ::std::string::String) { - self.ordering_key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ordering_key(&mut self) -> &mut ::std::string::String { - &mut self.ordering_key - } - - // Take field - pub fn take_ordering_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.ordering_key, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "project", + |m: &ListTopicsRequest| { &m.project }, + |m: &mut ListTopicsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTopicsRequest| { &m.page_size }, + |m: &mut ListTopicsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTopicsRequest| { &m.page_token }, + |m: &mut ListTopicsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for PubsubMessage { +impl ::protobuf::Message for ListTopicsRequest { + const NAME: &'static str = "ListTopicsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.publish_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.project = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.publish_time)?; + 16 => { + self.page_size = is.read_int32()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ordering_key)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1099,204 +1227,150 @@ impl ::protobuf::Message for PubsubMessage { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.data); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes); - if !self.message_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.message_id); + if !self.project.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project); } - if let Some(ref v) = self.publish_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); } - if !self.ordering_key.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.ordering_key); + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.data.is_empty() { - os.write_bytes(1, &self.data)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?; - if !self.message_id.is_empty() { - os.write_string(3, &self.message_id)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.project.is_empty() { + os.write_string(1, &self.project)?; } - if let Some(ref v) = self.publish_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; } - if !self.ordering_key.is_empty() { - os.write_string(5, &self.ordering_key)?; + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> PubsubMessage { - PubsubMessage::new() + fn new() -> ListTopicsRequest { + ListTopicsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &PubsubMessage| { &m.data }, - |m: &mut PubsubMessage| { &mut m.data }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "attributes", - |m: &PubsubMessage| { &m.attributes }, - |m: &mut PubsubMessage| { &mut m.attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message_id", - |m: &PubsubMessage| { &m.message_id }, - |m: &mut PubsubMessage| { &mut m.message_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "publish_time", - |m: &PubsubMessage| { &m.publish_time }, - |m: &mut PubsubMessage| { &mut m.publish_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ordering_key", - |m: &PubsubMessage| { &m.ordering_key }, - |m: &mut PubsubMessage| { &mut m.ordering_key }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PubsubMessage", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.project.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static PubsubMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PubsubMessage::new) + fn default_instance() -> &'static ListTopicsRequest { + static instance: ListTopicsRequest = ListTopicsRequest { + project: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PubsubMessage { - fn clear(&mut self) { - self.data.clear(); - self.attributes.clear(); - self.message_id.clear(); - self.publish_time.clear(); - self.ordering_key.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PubsubMessage { +impl ::std::fmt::Display for ListTopicsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for PubsubMessage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListTopicsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct GetTopicRequest { +/// Response for the `ListTopics` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicsResponse { // message fields - pub topic: ::std::string::String, + /// The resulting topics. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicsResponse.topics) + pub topics: ::std::vec::Vec, + /// If not empty, indicates that there may be more topics that match the + /// request; this value should be passed in a new `ListTopicsRequest`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicsResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a GetTopicRequest { - fn default() -> &'a GetTopicRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListTopicsResponse { + fn default() -> &'a ListTopicsResponse { + ::default_instance() } } -impl GetTopicRequest { - pub fn new() -> GetTopicRequest { +impl ListTopicsResponse { + pub fn new() -> ListTopicsResponse { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "topics", + |m: &ListTopicsResponse| { &m.topics }, + |m: &mut ListTopicsResponse| { &mut m.topics }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTopicsResponse| { &m.next_page_token }, + |m: &mut ListTopicsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicsResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for GetTopicRequest { +impl ::protobuf::Message for ListTopicsResponse { + const NAME: &'static str = "ListTopicsResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topics.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1305,211 +1379,156 @@ impl ::protobuf::Message for GetTopicRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); + for value in &self.topics { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.topic.is_empty() { - os.write_string(1, &self.topic)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.topics { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> GetTopicRequest { - GetTopicRequest::new() + fn new() -> ListTopicsResponse { + ListTopicsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &GetTopicRequest| { &m.topic }, - |m: &mut GetTopicRequest| { &mut m.topic }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetTopicRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topics.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static GetTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetTopicRequest::new) + fn default_instance() -> &'static ListTopicsResponse { + static instance: ListTopicsResponse = ListTopicsResponse { + topics: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for GetTopicRequest { +impl ::std::fmt::Display for ListTopicsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for GetTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListTopicsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct UpdateTopicRequest { +/// Request for the `ListTopicSubscriptions` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicSubscriptionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicSubscriptionsRequest { // message fields - pub topic: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// The name of the topic that subscriptions are attached to. + /// Format is `projects/{project}/topics/{topic}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSubscriptionsRequest.topic) + pub topic: ::std::string::String, + /// Maximum number of subscription names to return. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSubscriptionsRequest.page_size) + pub page_size: i32, + /// The value returned by the last `ListTopicSubscriptionsResponse`; indicates + /// that this is a continuation of a prior `ListTopicSubscriptions` call, and + /// that the system should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSubscriptionsRequest.page_token) + pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicSubscriptionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a UpdateTopicRequest { - fn default() -> &'a UpdateTopicRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { + fn default() -> &'a ListTopicSubscriptionsRequest { + ::default_instance() } } -impl UpdateTopicRequest { - pub fn new() -> UpdateTopicRequest { +impl ListTopicSubscriptionsRequest { + pub fn new() -> ListTopicSubscriptionsRequest { ::std::default::Default::default() } - // .google.pubsub.v1.Topic topic = 1; - - - pub fn get_topic(&self) -> &Topic { - self.topic.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - pub fn has_topic(&self) -> bool { - self.topic.is_some() - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: Topic) { - self.topic = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut Topic { - if self.topic.is_none() { - self.topic.set_default(); - } - self.topic.as_mut().unwrap() - } - - // Take field - pub fn take_topic(&mut self) -> Topic { - self.topic.take().unwrap_or_else(|| Topic::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &ListTopicSubscriptionsRequest| { &m.topic }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTopicSubscriptionsRequest| { &m.page_size }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTopicSubscriptionsRequest| { &m.page_token }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSubscriptionsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateTopicRequest { +impl ::protobuf::Message for ListTopicSubscriptionsRequest { + const NAME: &'static str = "ListTopicSubscriptionsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.topic { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; + }, + 16 => { + self.page_size = is.read_int32()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1518,209 +1537,308 @@ impl ::protobuf::Message for UpdateTopicRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.topic.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.topic); } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.topic.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.topic.is_empty() { + os.write_string(1, &self.topic)?; + } + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> ListTopicSubscriptionsRequest { + ListTopicSubscriptionsRequest::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) + fn clear(&mut self) { + self.topic.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + + fn default_instance() -> &'static ListTopicSubscriptionsRequest { + static instance: ListTopicSubscriptionsRequest = ListTopicSubscriptionsRequest { + topic: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() +impl ::protobuf::MessageFull for ListTopicSubscriptionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSubscriptionsRequest").unwrap()).clone() } +} - fn new() -> UpdateTopicRequest { - UpdateTopicRequest::new() +impl ::std::fmt::Display for ListTopicSubscriptionsRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "topic", - |m: &UpdateTopicRequest| { &m.topic }, - |m: &mut UpdateTopicRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateTopicRequest| { &m.update_mask }, - |m: &mut UpdateTopicRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateTopicRequest", - fields, - file_descriptor_proto() - ) - }) - } +impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - fn default_instance() -> &'static UpdateTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateTopicRequest::new) - } +/// Response for the `ListTopicSubscriptions` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicSubscriptionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicSubscriptionsResponse { + // message fields + /// The names of the subscriptions that match the request. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSubscriptionsResponse.subscriptions) + pub subscriptions: ::std::vec::Vec<::std::string::String>, + /// If not empty, indicates that there may be more subscriptions that match + /// the request; this value should be passed in a new + /// `ListTopicSubscriptionsRequest` to get more subscriptions. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSubscriptionsResponse.next_page_token) + pub next_page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicSubscriptionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl ::protobuf::Clear for UpdateTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); +impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsResponse { + fn default() -> &'a ListTopicSubscriptionsResponse { + ::default_instance() } } -impl ::std::fmt::Debug for UpdateTopicRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) +impl ListTopicSubscriptionsResponse { + pub fn new() -> ListTopicSubscriptionsResponse { + ::std::default::Default::default() } -} -impl ::protobuf::reflect::ProtobufValue for UpdateTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "subscriptions", + |m: &ListTopicSubscriptionsResponse| { &m.subscriptions }, + |m: &mut ListTopicSubscriptionsResponse| { &mut m.subscriptions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTopicSubscriptionsResponse| { &m.next_page_token }, + |m: &mut ListTopicSubscriptionsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSubscriptionsResponse", + fields, + oneofs, + ) } } -#[derive(PartialEq,Clone,Default)] -pub struct PublishRequest { - // message fields - pub topic: ::std::string::String, - pub messages: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +impl ::protobuf::Message for ListTopicSubscriptionsResponse { + const NAME: &'static str = "ListTopicSubscriptionsResponse"; -impl<'a> ::std::default::Default for &'a PublishRequest { - fn default() -> &'a PublishRequest { - ::default_instance() + fn is_initialized(&self) -> bool { + true } -} -impl PublishRequest { - pub fn new() -> PublishRequest { - ::std::default::Default::default() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscriptions.push(is.read_string()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.subscriptions { + my_size += ::protobuf::rt::string_size(1, &value); + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - pub fn clear_topic(&mut self) { - self.topic.clear(); + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.subscriptions { + os.write_string(1, &v)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + fn new() -> ListTopicSubscriptionsResponse { + ListTopicSubscriptionsResponse::new() } - // repeated .google.pubsub.v1.PubsubMessage messages = 2; + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); + } + fn default_instance() -> &'static ListTopicSubscriptionsResponse { + static instance: ListTopicSubscriptionsResponse = ListTopicSubscriptionsResponse { + subscriptions: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} - pub fn get_messages(&self) -> &[PubsubMessage] { - &self.messages +impl ::protobuf::MessageFull for ListTopicSubscriptionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSubscriptionsResponse").unwrap()).clone() } - pub fn clear_messages(&mut self) { - self.messages.clear(); +} + +impl ::std::fmt::Display for ListTopicSubscriptionsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_messages(&mut self, v: ::protobuf::RepeatedField) { - self.messages = v; +impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Request for the `ListTopicSnapshots` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicSnapshotsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicSnapshotsRequest { + // message fields + /// The name of the topic that snapshots are attached to. + /// Format is `projects/{project}/topics/{topic}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSnapshotsRequest.topic) + pub topic: ::std::string::String, + /// Maximum number of snapshot names to return. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSnapshotsRequest.page_size) + pub page_size: i32, + /// The value returned by the last `ListTopicSnapshotsResponse`; indicates + /// that this is a continuation of a prior `ListTopicSnapshots` call, and + /// that the system should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSnapshotsRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicSnapshotsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ListTopicSnapshotsRequest { + fn default() -> &'a ListTopicSnapshotsRequest { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_messages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.messages +impl ListTopicSnapshotsRequest { + pub fn new() -> ListTopicSnapshotsRequest { + ::std::default::Default::default() } - // Take field - pub fn take_messages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.messages, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &ListTopicSnapshotsRequest| { &m.topic }, + |m: &mut ListTopicSnapshotsRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTopicSnapshotsRequest| { &m.page_size }, + |m: &mut ListTopicSnapshotsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTopicSnapshotsRequest| { &m.page_token }, + |m: &mut ListTopicSnapshotsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSnapshotsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for PublishRequest { +impl ::protobuf::Message for ListTopicSnapshotsRequest { + const NAME: &'static str = "ListTopicSnapshotsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.messages { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; + }, + 16 => { + self.page_size = is.read_int32()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.messages)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1729,171 +1847,151 @@ impl ::protobuf::Message for PublishRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.topic); } - for value in &self.messages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); + } + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.topic.is_empty() { os.write_string(1, &self.topic)?; } - for v in &self.messages { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; + } + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> PublishRequest { - PublishRequest::new() + fn new() -> ListTopicSnapshotsRequest { + ListTopicSnapshotsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &PublishRequest| { &m.topic }, - |m: &mut PublishRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "messages", - |m: &PublishRequest| { &m.messages }, - |m: &mut PublishRequest| { &mut m.messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PublishRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static PublishRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishRequest::new) + fn default_instance() -> &'static ListTopicSnapshotsRequest { + static instance: ListTopicSnapshotsRequest = ListTopicSnapshotsRequest { + topic: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PublishRequest { - fn clear(&mut self) { - self.topic.clear(); - self.messages.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicSnapshotsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSnapshotsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PublishRequest { +impl ::std::fmt::Display for ListTopicSnapshotsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for PublishRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct PublishResponse { +/// Response for the `ListTopicSnapshots` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListTopicSnapshotsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListTopicSnapshotsResponse { // message fields - pub message_ids: ::protobuf::RepeatedField<::std::string::String>, + /// The names of the snapshots that match the request. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSnapshotsResponse.snapshots) + pub snapshots: ::std::vec::Vec<::std::string::String>, + /// If not empty, indicates that there may be more snapshots that match + /// the request; this value should be passed in a new + /// `ListTopicSnapshotsRequest` to get more snapshots. + // @@protoc_insertion_point(field:google.pubsub.v1.ListTopicSnapshotsResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListTopicSnapshotsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a PublishResponse { - fn default() -> &'a PublishResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListTopicSnapshotsResponse { + fn default() -> &'a ListTopicSnapshotsResponse { + ::default_instance() } } -impl PublishResponse { - pub fn new() -> PublishResponse { +impl ListTopicSnapshotsResponse { + pub fn new() -> ListTopicSnapshotsResponse { ::std::default::Default::default() } - // repeated string message_ids = 1; - - - pub fn get_message_ids(&self) -> &[::std::string::String] { - &self.message_ids - } - pub fn clear_message_ids(&mut self) { - self.message_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_message_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.message_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_message_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.message_ids - } - - // Take field - pub fn take_message_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.message_ids, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "snapshots", + |m: &ListTopicSnapshotsResponse| { &m.snapshots }, + |m: &mut ListTopicSnapshotsResponse| { &mut m.snapshots }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTopicSnapshotsResponse| { &m.next_page_token }, + |m: &mut ListTopicSnapshotsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSnapshotsResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for PublishResponse { +impl ::protobuf::Message for ListTopicSnapshotsResponse { + const NAME: &'static str = "ListTopicSnapshotsResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.message_ids)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.snapshots.push(is.read_string()?); + }, + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1902,210 +2000,428 @@ impl ::protobuf::Message for PublishResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.message_ids { + for value in &self.snapshots { my_size += ::protobuf::rt::string_size(1, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.message_ids { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.snapshots { os.write_string(1, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PublishResponse { - PublishResponse::new() + fn new() -> ListTopicSnapshotsResponse { + ListTopicSnapshotsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message_ids", - |m: &PublishResponse| { &m.message_ids }, - |m: &mut PublishResponse| { &mut m.message_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PublishResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.snapshots.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static PublishResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishResponse::new) + fn default_instance() -> &'static ListTopicSnapshotsResponse { + static instance: ListTopicSnapshotsResponse = ListTopicSnapshotsResponse { + snapshots: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PublishResponse { - fn clear(&mut self) { - self.message_ids.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicSnapshotsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSnapshotsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for PublishResponse { +impl ::std::fmt::Display for ListTopicSnapshotsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for PublishResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsRequest { +/// Request for the `DeleteTopic` method. +// @@protoc_insertion_point(message:google.pubsub.v1.DeleteTopicRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteTopicRequest { // message fields - pub project: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, + /// Name of the topic to delete. + /// Format is `projects/{project}/topics/{topic}`. + // @@protoc_insertion_point(field:google.pubsub.v1.DeleteTopicRequest.topic) + pub topic: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.DeleteTopicRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListTopicsRequest { - fn default() -> &'a ListTopicsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeleteTopicRequest { + fn default() -> &'a DeleteTopicRequest { + ::default_instance() } } -impl ListTopicsRequest { - pub fn new() -> ListTopicsRequest { +impl DeleteTopicRequest { + pub fn new() -> DeleteTopicRequest { ::std::default::Default::default() } - // string project = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &DeleteTopicRequest| { &m.topic }, + |m: &mut DeleteTopicRequest| { &mut m.topic }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteTopicRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for DeleteTopicRequest { + const NAME: &'static str = "DeleteTopicRequest"; - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.topic); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.topic.is_empty() { + os.write_string(1, &self.topic)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn clear_page_size(&mut self) { - self.page_size = 0; + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; + fn new() -> DeleteTopicRequest { + DeleteTopicRequest::new() } - // string page_token = 3; + fn clear(&mut self) { + self.topic.clear(); + self.special_fields.clear(); + } + fn default_instance() -> &'static DeleteTopicRequest { + static instance: DeleteTopicRequest = DeleteTopicRequest { + topic: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} - pub fn get_page_token(&self) -> &str { - &self.page_token +impl ::protobuf::MessageFull for DeleteTopicRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteTopicRequest").unwrap()).clone() } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); +} + +impl ::std::fmt::Display for DeleteTopicRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; +impl ::protobuf::reflect::ProtobufValue for DeleteTopicRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// A subscription resource. +// @@protoc_insertion_point(message:google.pubsub.v1.Subscription) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Subscription { + // message fields + /// The name of the subscription. It must have the format + /// `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must + /// start with a letter, and contain only letters (`[A-Za-z]`), numbers + /// (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), + /// plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters + /// in length, and it must not start with `"goog"`. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.name) + pub name: ::std::string::String, + /// The name of the topic from which this subscription is receiving messages. + /// Format is `projects/{project}/topics/{topic}`. + /// The value of this field will be `_deleted-topic_` if the topic has been + /// deleted. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.topic) + pub topic: ::std::string::String, + /// If push delivery is used with this subscription, this field is + /// used to configure it. An empty `pushConfig` signifies that the subscriber + /// will pull and ack messages using API methods. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.push_config) + pub push_config: ::protobuf::MessageField, + /// The approximate amount of time (on a best-effort basis) Pub/Sub waits for + /// the subscriber to acknowledge receipt before resending the message. In the + /// interval after the message is delivered and before it is acknowledged, it + /// is considered to be outstanding. During that time period, the + /// message will not be redelivered (on a best-effort basis). + /// + /// For pull subscriptions, this value is used as the initial value for the ack + /// deadline. To override this value for a given message, call + /// `ModifyAckDeadline` with the corresponding `ack_id` if using + /// non-streaming pull or send the `ack_id` in a + /// `StreamingModifyAckDeadlineRequest` if using streaming pull. + /// The minimum custom deadline you can specify is 10 seconds. + /// The maximum custom deadline you can specify is 600 seconds (10 minutes). + /// If this parameter is 0, a default value of 10 seconds is used. + /// + /// For push delivery, this value is also used to set the request timeout for + /// the call to the push endpoint. + /// + /// If the subscriber never acknowledges the message, the Pub/Sub + /// system will eventually redeliver the message. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.ack_deadline_seconds) + pub ack_deadline_seconds: i32, + /// Indicates whether to retain acknowledged messages. If true, then + /// messages are not expunged from the subscription's backlog, even if they are + /// acknowledged, until they fall out of the `message_retention_duration` + /// window. This must be true if you would like to + /// + /// Seek to a timestamp. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.retain_acked_messages) + pub retain_acked_messages: bool, + /// How long to retain unacknowledged messages in the subscription's backlog, + /// from the moment a message is published. + /// If `retain_acked_messages` is true, then this also configures the retention + /// of acknowledged messages, and thus configures how far back in time a `Seek` + /// can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 + /// minutes. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.message_retention_duration) + pub message_retention_duration: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// See Creating and + /// managing labels. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.labels) + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// If true, messages published with the same `ordering_key` in `PubsubMessage` + /// will be delivered to the subscribers in the order in which they + /// are received by the Pub/Sub system. Otherwise, they may be delivered in + /// any order. + /// EXPERIMENTAL: This feature is part of a closed alpha release. This + /// API might be changed in backward-incompatible ways and is not recommended + /// for production use. It is not subject to any SLA or deprecation policy. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.enable_message_ordering) + pub enable_message_ordering: bool, + /// A policy that specifies the conditions for this subscription's expiration. + /// A subscription is considered active as long as any connected subscriber is + /// successfully consuming messages from the subscription or is issuing + /// operations on the subscription. If `expiration_policy` is not set, a + /// *default policy* with `ttl` of 31 days will be used. The minimum allowed + /// value for `expiration_policy.ttl` is 1 day. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.expiration_policy) + pub expiration_policy: ::protobuf::MessageField, + /// A policy that specifies the conditions for dead lettering messages in + /// this subscription. If dead_letter_policy is not set, dead lettering + /// is disabled. + /// + /// The Cloud Pub/Sub service account associated with this subscriptions's + /// parent project (i.e., + /// service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have + /// permission to Acknowledge() messages on this subscription. + /// EXPERIMENTAL: This feature is part of a closed alpha release. This + /// API might be changed in backward-incompatible ways and is not recommended + /// for production use. It is not subject to any SLA or deprecation policy. + // @@protoc_insertion_point(field:google.pubsub.v1.Subscription.dead_letter_policy) + pub dead_letter_policy: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.Subscription.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a Subscription { + fn default() -> &'a Subscription { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token +impl Subscription { + pub fn new() -> Subscription { + ::std::default::Default::default() } - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(10); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Subscription| { &m.name }, + |m: &mut Subscription| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &Subscription| { &m.topic }, + |m: &mut Subscription| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PushConfig>( + "push_config", + |m: &Subscription| { &m.push_config }, + |m: &mut Subscription| { &mut m.push_config }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_deadline_seconds", + |m: &Subscription| { &m.ack_deadline_seconds }, + |m: &mut Subscription| { &mut m.ack_deadline_seconds }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "retain_acked_messages", + |m: &Subscription| { &m.retain_acked_messages }, + |m: &mut Subscription| { &mut m.retain_acked_messages }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "message_retention_duration", + |m: &Subscription| { &m.message_retention_duration }, + |m: &mut Subscription| { &mut m.message_retention_duration }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Subscription| { &m.labels }, + |m: &mut Subscription| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "enable_message_ordering", + |m: &Subscription| { &m.enable_message_ordering }, + |m: &mut Subscription| { &mut m.enable_message_ordering }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ExpirationPolicy>( + "expiration_policy", + |m: &Subscription| { &m.expiration_policy }, + |m: &mut Subscription| { &mut m.expiration_policy }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, DeadLetterPolicy>( + "dead_letter_policy", + |m: &Subscription| { &m.dead_letter_policy }, + |m: &mut Subscription| { &mut m.dead_letter_policy }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Subscription", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTopicsRequest { +impl ::protobuf::Message for Subscription { + const NAME: &'static str = "Subscription"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + 18 => { + self.topic = is.read_string()?; + }, + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.push_config)?; + }, + 40 => { + self.ack_deadline_seconds = is.read_int32()?; + }, + 56 => { + self.retain_acked_messages = is.read_bool()?; + }, + 66 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.message_retention_duration)?; + }, + 74 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; } - let tmp = is.read_int32()?; - self.page_size = tmp; + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 80 => { + self.enable_message_ordering = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 90 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.expiration_policy)?; + }, + 106 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.dead_letter_policy)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2114,215 +2430,230 @@ impl ::protobuf::Message for ListTopicsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + if !self.topic.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.topic); } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); + if let Some(v) = self.push_config.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if self.ack_deadline_seconds != 0 { + my_size += ::protobuf::rt::int32_size(5, self.ack_deadline_seconds); + } + if self.retain_acked_messages != false { + my_size += 1 + 1; + } + if let Some(v) = self.message_retention_duration.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if self.enable_message_ordering != false { + my_size += 1 + 1; + } + if let Some(v) = self.expiration_policy.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.dead_letter_policy.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.project.is_empty() { - os.write_string(1, &self.project)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; + if !self.topic.is_empty() { + os.write_string(2, &self.topic)?; } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; + if let Some(v) = self.push_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + if self.ack_deadline_seconds != 0 { + os.write_int32(5, self.ack_deadline_seconds)?; + } + if self.retain_acked_messages != false { + os.write_bool(7, self.retain_acked_messages)?; + } + if let Some(v) = self.message_retention_duration.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?; + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(74)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if self.enable_message_ordering != false { + os.write_bool(10, self.enable_message_ordering)?; + } + if let Some(v) = self.expiration_policy.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(11, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + if let Some(v) = self.dead_letter_policy.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(13, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListTopicsRequest { - ListTopicsRequest::new() + fn new() -> Subscription { + Subscription::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListTopicsRequest| { &m.project }, - |m: &mut ListTopicsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTopicsRequest| { &m.page_size }, - |m: &mut ListTopicsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTopicsRequest| { &m.page_token }, - |m: &mut ListTopicsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.topic.clear(); + self.push_config.clear(); + self.ack_deadline_seconds = 0; + self.retain_acked_messages = false; + self.message_retention_duration.clear(); + self.labels.clear(); + self.enable_message_ordering = false; + self.expiration_policy.clear(); + self.dead_letter_policy.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsRequest::new) + fn default_instance() -> &'static Subscription { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(Subscription::new) } } -impl ::protobuf::Clear for ListTopicsRequest { - fn clear(&mut self) { - self.project.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Subscription { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Subscription").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicsRequest { +impl ::std::fmt::Display for Subscription { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for Subscription { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicsResponse { +/// Dead lettering is done on a best effort basis. The same message might be +/// dead lettered multiple times. +/// +/// If validation on any of the fields fails at subscription creation/updation, +/// the create/update subscription request will fail. +// @@protoc_insertion_point(message:google.pubsub.v1.DeadLetterPolicy) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeadLetterPolicy { // message fields - pub topics: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, + /// The name of the topic to which dead letter messages should be published. + /// Format is `projects/{project}/topics/{topic}`.The Cloud Pub/Sub service + /// account associated with the enclosing subscription's parent project (i.e., + /// service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have + /// permission to Publish() to this topic. + /// + /// The operation will fail if the topic does not exist. + /// Users should ensure that there is a subscription attached to this topic + /// since messages published to a topic with no subscriptions are lost. + // @@protoc_insertion_point(field:google.pubsub.v1.DeadLetterPolicy.dead_letter_topic) + pub dead_letter_topic: ::std::string::String, + /// The maximum number of delivery attempts for any message. The value must be + /// between 5 and 100. + /// + /// The number of delivery attempts is defined as 1 + (the sum of number of + /// NACKs and number of times the acknowledgement deadline has been exceeded + /// for the message). + /// + /// A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that + /// client libraries may automatically extend ack_deadlines. + /// + /// This field will be honored on a best effort basis. + /// + /// If this parameter is 0, a default value of 5 is used. + // @@protoc_insertion_point(field:google.pubsub.v1.DeadLetterPolicy.max_delivery_attempts) + pub max_delivery_attempts: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.DeadLetterPolicy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListTopicsResponse { - fn default() -> &'a ListTopicsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeadLetterPolicy { + fn default() -> &'a DeadLetterPolicy { + ::default_instance() } } -impl ListTopicsResponse { - pub fn new() -> ListTopicsResponse { +impl DeadLetterPolicy { + pub fn new() -> DeadLetterPolicy { ::std::default::Default::default() } - // repeated .google.pubsub.v1.Topic topics = 1; - - - pub fn get_topics(&self) -> &[Topic] { - &self.topics - } - pub fn clear_topics(&mut self) { - self.topics.clear(); - } - - // Param is passed by value, moved - pub fn set_topics(&mut self, v: ::protobuf::RepeatedField) { - self.topics = v; - } - - // Mutable pointer to the field. - pub fn mut_topics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.topics - } - - // Take field - pub fn take_topics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.topics, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "dead_letter_topic", + |m: &DeadLetterPolicy| { &m.dead_letter_topic }, + |m: &mut DeadLetterPolicy| { &mut m.dead_letter_topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "max_delivery_attempts", + |m: &DeadLetterPolicy| { &m.max_delivery_attempts }, + |m: &mut DeadLetterPolicy| { &mut m.max_delivery_attempts }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeadLetterPolicy", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTopicsResponse { +impl ::protobuf::Message for DeadLetterPolicy { + const NAME: &'static str = "DeadLetterPolicy"; + fn is_initialized(&self) -> bool { - for v in &self.topics { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.topics)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.dead_letter_topic = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 16 => { + self.max_delivery_attempts = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2331,225 +2662,136 @@ impl ::protobuf::Message for ListTopicsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.topics { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + if !self.dead_letter_topic.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.dead_letter_topic); + } + if self.max_delivery_attempts != 0 { + my_size += ::protobuf::rt::int32_size(2, self.max_delivery_attempts); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.topics { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.dead_letter_topic.is_empty() { + os.write_string(1, &self.dead_letter_topic)?; + } + if self.max_delivery_attempts != 0 { + os.write_int32(2, self.max_delivery_attempts)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListTopicsResponse { - ListTopicsResponse::new() + fn new() -> DeadLetterPolicy { + DeadLetterPolicy::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "topics", - |m: &ListTopicsResponse| { &m.topics }, - |m: &mut ListTopicsResponse| { &mut m.topics }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTopicsResponse| { &m.next_page_token }, - |m: &mut ListTopicsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.dead_letter_topic.clear(); + self.max_delivery_attempts = 0; + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsResponse::new) + fn default_instance() -> &'static DeadLetterPolicy { + static instance: DeadLetterPolicy = DeadLetterPolicy { + dead_letter_topic: ::std::string::String::new(), + max_delivery_attempts: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicsResponse { - fn clear(&mut self) { - self.topics.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeadLetterPolicy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeadLetterPolicy").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicsResponse { +impl ::std::fmt::Display for DeadLetterPolicy { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for DeadLetterPolicy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsRequest { +/// A policy that specifies the conditions for resource expiration (i.e., +/// automatic resource deletion). +// @@protoc_insertion_point(message:google.pubsub.v1.ExpirationPolicy) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExpirationPolicy { // message fields - pub topic: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, + /// Specifies the "time-to-live" duration for an associated resource. The + /// resource expires if it is not active for a period of `ttl`. The definition + /// of "activity" depends on the type of the associated resource. The minimum + /// and maximum allowed values for `ttl` depend on the type of the associated + /// resource, as well. If `ttl` is not set, the associated resource never + /// expires. + // @@protoc_insertion_point(field:google.pubsub.v1.ExpirationPolicy.ttl) + pub ttl: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ExpirationPolicy.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { - fn default() -> &'a ListTopicSubscriptionsRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ExpirationPolicy { + fn default() -> &'a ExpirationPolicy { + ::default_instance() } } -impl ListTopicSubscriptionsRequest { - pub fn new() -> ListTopicSubscriptionsRequest { +impl ExpirationPolicy { + pub fn new() -> ExpirationPolicy { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "ttl", + |m: &ExpirationPolicy| { &m.ttl }, + |m: &mut ExpirationPolicy| { &mut m.ttl }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExpirationPolicy", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTopicSubscriptionsRequest { +impl ::protobuf::Message for ExpirationPolicy { + const NAME: &'static str = "ExpirationPolicy"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.ttl)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2558,210 +2800,229 @@ impl ::protobuf::Message for ListTopicSubscriptionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); + if let Some(v) = self.ttl.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.topic.is_empty() { - os.write_string(1, &self.topic)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.ttl.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListTopicSubscriptionsRequest { - ListTopicSubscriptionsRequest::new() + fn new() -> ExpirationPolicy { + ExpirationPolicy::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &ListTopicSubscriptionsRequest| { &m.topic }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTopicSubscriptionsRequest| { &m.page_size }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTopicSubscriptionsRequest| { &m.page_token }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSubscriptionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.ttl.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsRequest::new) + fn default_instance() -> &'static ExpirationPolicy { + static instance: ExpirationPolicy = ExpirationPolicy { + ttl: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicSubscriptionsRequest { - fn clear(&mut self) { - self.topic.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ExpirationPolicy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExpirationPolicy").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSubscriptionsRequest { +impl ::std::fmt::Display for ExpirationPolicy { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ExpirationPolicy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSubscriptionsResponse { +/// Configuration for a push delivery endpoint. +// @@protoc_insertion_point(message:google.pubsub.v1.PushConfig) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PushConfig { // message fields - pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, - pub next_page_token: ::std::string::String, + /// A URL locating the endpoint to which messages should be pushed. + /// For example, a Webhook endpoint might use "https://example.com/push". + // @@protoc_insertion_point(field:google.pubsub.v1.PushConfig.push_endpoint) + pub push_endpoint: ::std::string::String, + /// Endpoint configuration attributes that can be used to control different + /// aspects of the message delivery. + /// + /// The only currently supported attribute is `x-goog-version`, which you can + /// use to change the format of the pushed message. This attribute + /// indicates the version of the data expected by the endpoint. This + /// controls the shape of the pushed message (i.e., its fields and metadata). + /// + /// If not present during the `CreateSubscription` call, it will default to + /// the version of the Pub/Sub API used to make such call. If not present in a + /// `ModifyPushConfig` call, its value will not be changed. `GetSubscription` + /// calls will always return a valid version, even if the subscription was + /// created without this attribute. + /// + /// The only supported values for the `x-goog-version` attribute are: + /// + /// * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. + /// * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. + /// + /// For example: + ///
attributes { "x-goog-version": "v1" } 
+ // @@protoc_insertion_point(field:google.pubsub.v1.PushConfig.attributes) + pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + // message oneof groups + pub authentication_method: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.PushConfig.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsResponse { - fn default() -> &'a ListTopicSubscriptionsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a PushConfig { + fn default() -> &'a PushConfig { + ::default_instance() } } -impl ListTopicSubscriptionsResponse { - pub fn new() -> ListTopicSubscriptionsResponse { +impl PushConfig { + pub fn new() -> PushConfig { ::std::default::Default::default() } - // repeated string subscriptions = 1; - - - pub fn get_subscriptions(&self) -> &[::std::string::String] { - &self.subscriptions - } - pub fn clear_subscriptions(&mut self) { - self.subscriptions.clear(); - } - - // Param is passed by value, moved - pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.subscriptions = v; - } + // .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - // Mutable pointer to the field. - pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.subscriptions + pub fn oidc_token(&self) -> &push_config::OidcToken { + match self.authentication_method { + ::std::option::Option::Some(push_config::Authentication_method::OidcToken(ref v)) => v, + _ => ::default_instance(), + } } - // Take field - pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new()) + pub fn clear_oidc_token(&mut self) { + self.authentication_method = ::std::option::Option::None; } - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); + pub fn has_oidc_token(&self) -> bool { + match self.authentication_method { + ::std::option::Option::Some(push_config::Authentication_method::OidcToken(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; + pub fn set_oidc_token(&mut self, v: push_config::OidcToken) { + self.authentication_method = ::std::option::Option::Some(push_config::Authentication_method::OidcToken(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token + pub fn mut_oidc_token(&mut self) -> &mut push_config::OidcToken { + if let ::std::option::Option::Some(push_config::Authentication_method::OidcToken(_)) = self.authentication_method { + } else { + self.authentication_method = ::std::option::Option::Some(push_config::Authentication_method::OidcToken(push_config::OidcToken::new())); + } + match self.authentication_method { + ::std::option::Option::Some(push_config::Authentication_method::OidcToken(ref mut v)) => v, + _ => panic!(), + } } // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + pub fn take_oidc_token(&mut self) -> push_config::OidcToken { + if self.has_oidc_token() { + match self.authentication_method.take() { + ::std::option::Option::Some(push_config::Authentication_method::OidcToken(v)) => v, + _ => panic!(), + } + } else { + push_config::OidcToken::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "push_endpoint", + |m: &PushConfig| { &m.push_endpoint }, + |m: &mut PushConfig| { &mut m.push_endpoint }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "attributes", + |m: &PushConfig| { &m.attributes }, + |m: &mut PushConfig| { &mut m.attributes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, push_config::OidcToken>( + "oidc_token", + PushConfig::has_oidc_token, + PushConfig::oidc_token, + PushConfig::mut_oidc_token, + PushConfig::set_oidc_token, + )); + oneofs.push(push_config::Authentication_method::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PushConfig", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTopicSubscriptionsResponse { +impl ::protobuf::Message for PushConfig { + const NAME: &'static str = "PushConfig"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.subscriptions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.push_endpoint = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.attributes.insert(key, value); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 26 => { + self.authentication_method = ::std::option::Option::Some(push_config::Authentication_method::OidcToken(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2770,222 +3031,369 @@ impl ::protobuf::Message for ListTopicSubscriptionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.subscriptions { - my_size += ::protobuf::rt::string_size(1, &value); + if !self.push_endpoint.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.push_endpoint); + } + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + if let ::std::option::Option::Some(ref v) = self.authentication_method { + match v { + &push_config::Authentication_method::OidcToken(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.subscriptions { - os.write_string(1, &v)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.push_endpoint.is_empty() { + os.write_string(1, &self.push_endpoint)?; + } + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; + if let ::std::option::Option::Some(ref v) = self.authentication_method { + match v { + &push_config::Authentication_method::OidcToken(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListTopicSubscriptionsResponse { - ListTopicSubscriptionsResponse::new() + fn new() -> PushConfig { + PushConfig::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscriptions", - |m: &ListTopicSubscriptionsResponse| { &m.subscriptions }, - |m: &mut ListTopicSubscriptionsResponse| { &mut m.subscriptions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTopicSubscriptionsResponse| { &m.next_page_token }, - |m: &mut ListTopicSubscriptionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSubscriptionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.push_endpoint.clear(); + self.attributes.clear(); + self.authentication_method = ::std::option::Option::None; + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsResponse::new) + fn default_instance() -> &'static PushConfig { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(PushConfig::new) } } -impl ::protobuf::Clear for ListTopicSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PushConfig { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PushConfig").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSubscriptionsResponse { +impl ::std::fmt::Display for PushConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for PushConfig { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSnapshotsRequest { - // message fields - pub topic: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `PushConfig` +pub mod push_config { -impl<'a> ::std::default::Default for &'a ListTopicSnapshotsRequest { - fn default() -> &'a ListTopicSnapshotsRequest { - ::default_instance() + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.pubsub.v1.PushConfig.authentication_method) + pub enum Authentication_method { + // @@protoc_insertion_point(oneof_field:google.pubsub.v1.PushConfig.oidc_token) + OidcToken(OidcToken), } -} -impl ListTopicSnapshotsRequest { - pub fn new() -> ListTopicSnapshotsRequest { - ::std::default::Default::default() + impl ::protobuf::Oneof for Authentication_method { } - // string topic = 1; - + impl ::protobuf::OneofFull for Authentication_method { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("authentication_method").unwrap()).clone() + } + } - pub fn get_topic(&self) -> &str { - &self.topic + impl Authentication_method { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("authentication_method") + } } - pub fn clear_topic(&mut self) { - self.topic.clear(); + /// Contains information needed for generating an + /// [OpenID Connect + /// token](https://developers.google.com/identity/protocols/OpenIDConnect). + // @@protoc_insertion_point(message:google.pubsub.v1.PushConfig.OidcToken) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct OidcToken { + // message fields + /// [Service account + /// email](https://cloud.google.com/iam/docs/service-accounts) + /// to be used for generating the OIDC token. The caller (for + /// CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must + /// have the iam.serviceAccounts.actAs permission for the service account. + // @@protoc_insertion_point(field:google.pubsub.v1.PushConfig.OidcToken.service_account_email) + pub service_account_email: ::std::string::String, + /// Audience to be used when generating OIDC token. The audience claim + /// identifies the recipients that the JWT is intended for. The audience + /// value is a single case-sensitive string. Having multiple values (array) + /// for the audience field is not supported. More info about the OIDC JWT + /// token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 + /// Note: if not specified, the Push endpoint URL will be used. + // @@protoc_insertion_point(field:google.pubsub.v1.PushConfig.OidcToken.audience) + pub audience: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.PushConfig.OidcToken.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; + impl<'a> ::std::default::Default for &'a OidcToken { + fn default() -> &'a OidcToken { + ::default_instance() + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } + impl OidcToken { + pub fn new() -> OidcToken { + ::std::default::Default::default() + } - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_account_email", + |m: &OidcToken| { &m.service_account_email }, + |m: &mut OidcToken| { &mut m.service_account_email }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "audience", + |m: &OidcToken| { &m.audience }, + |m: &mut OidcToken| { &mut m.audience }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PushConfig.OidcToken", + fields, + oneofs, + ) + } } - // int32 page_size = 2; + impl ::protobuf::Message for OidcToken { + const NAME: &'static str = "OidcToken"; + fn is_initialized(&self) -> bool { + true + } - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.service_account_email = is.read_string()?; + }, + 18 => { + self.audience = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.service_account_email.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.service_account_email); + } + if !self.audience.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.audience); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // string page_token = 3; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.service_account_email.is_empty() { + os.write_string(1, &self.service_account_email)?; + } + if !self.audience.is_empty() { + os.write_string(2, &self.audience)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> OidcToken { + OidcToken::new() + } + + fn clear(&mut self) { + self.service_account_email.clear(); + self.audience.clear(); + self.special_fields.clear(); + } - pub fn get_page_token(&self) -> &str { - &self.page_token + fn default_instance() -> &'static OidcToken { + static instance: OidcToken = OidcToken { + service_account_email: ::std::string::String::new(), + audience: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); + + impl ::protobuf::MessageFull for OidcToken { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PushConfig.OidcToken").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; + impl ::std::fmt::Display for OidcToken { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token + impl ::protobuf::reflect::ProtobufValue for OidcToken { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } +} - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) +/// A message and its corresponding acknowledgment ID. +// @@protoc_insertion_point(message:google.pubsub.v1.ReceivedMessage) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ReceivedMessage { + // message fields + /// This ID can be used to acknowledge the received message. + // @@protoc_insertion_point(field:google.pubsub.v1.ReceivedMessage.ack_id) + pub ack_id: ::std::string::String, + /// The message. + // @@protoc_insertion_point(field:google.pubsub.v1.ReceivedMessage.message) + pub message: ::protobuf::MessageField, + /// Delivery attempt counter is 1 + (the sum of number of NACKs and number of + /// ack_deadline exceeds) for this message. + /// + /// A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline + /// exceeds event is whenever a message is not acknowledged within + /// ack_deadline. Note that ack_deadline is initially + /// Subscription.ackDeadlineSeconds, but may get extended automatically by + /// the client library. + /// + /// The first delivery of a given message will have this value as 1. The value + /// is calculated at best effort and is approximate. + /// + /// If a DeadLetterPolicy is not set on the subscription, this will be 0. + /// EXPERIMENTAL: This feature is part of a closed alpha release. This + /// API might be changed in backward-incompatible ways and is not recommended + /// for production use. It is not subject to any SLA or deprecation policy. + // @@protoc_insertion_point(field:google.pubsub.v1.ReceivedMessage.delivery_attempt) + pub delivery_attempt: i32, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.ReceivedMessage.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ReceivedMessage { + fn default() -> &'a ReceivedMessage { + ::default_instance() } } -impl ::protobuf::Message for ListTopicSnapshotsRequest { +impl ReceivedMessage { + pub fn new() -> ReceivedMessage { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_id", + |m: &ReceivedMessage| { &m.ack_id }, + |m: &mut ReceivedMessage| { &mut m.ack_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PubsubMessage>( + "message", + |m: &ReceivedMessage| { &m.message }, + |m: &mut ReceivedMessage| { &mut m.message }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "delivery_attempt", + |m: &ReceivedMessage| { &m.delivery_attempt }, + |m: &mut ReceivedMessage| { &mut m.delivery_attempt }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReceivedMessage", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for ReceivedMessage { + const NAME: &'static str = "ReceivedMessage"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.ack_id = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.message)?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 24 => { + self.delivery_attempt = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2994,210 +3402,140 @@ impl ::protobuf::Message for ListTopicSnapshotsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); + if !self.ack_id.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.ack_id); } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + if let Some(v) = self.message.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); + if self.delivery_attempt != 0 { + my_size += ::protobuf::rt::int32_size(3, self.delivery_attempt); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.topic.is_empty() { - os.write_string(1, &self.topic)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.ack_id.is_empty() { + os.write_string(1, &self.ack_id)?; } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; + if let Some(v) = self.message.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; + if self.delivery_attempt != 0 { + os.write_int32(3, self.delivery_attempt)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListTopicSnapshotsRequest { - ListTopicSnapshotsRequest::new() + fn new() -> ReceivedMessage { + ReceivedMessage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &ListTopicSnapshotsRequest| { &m.topic }, - |m: &mut ListTopicSnapshotsRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTopicSnapshotsRequest| { &m.page_size }, - |m: &mut ListTopicSnapshotsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTopicSnapshotsRequest| { &m.page_token }, - |m: &mut ListTopicSnapshotsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSnapshotsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.ack_id.clear(); + self.message.clear(); + self.delivery_attempt = 0; + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicSnapshotsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSnapshotsRequest::new) + fn default_instance() -> &'static ReceivedMessage { + static instance: ReceivedMessage = ReceivedMessage { + ack_id: ::std::string::String::new(), + message: ::protobuf::MessageField::none(), + delivery_attempt: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicSnapshotsRequest { - fn clear(&mut self) { - self.topic.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReceivedMessage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReceivedMessage").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSnapshotsRequest { +impl ::std::fmt::Display for ReceivedMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ReceivedMessage { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListTopicSnapshotsResponse { +/// Request for the GetSubscription method. +// @@protoc_insertion_point(message:google.pubsub.v1.GetSubscriptionRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetSubscriptionRequest { // message fields - pub snapshots: ::protobuf::RepeatedField<::std::string::String>, - pub next_page_token: ::std::string::String, + /// The name of the subscription to get. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.GetSubscriptionRequest.subscription) + pub subscription: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.GetSubscriptionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListTopicSnapshotsResponse { - fn default() -> &'a ListTopicSnapshotsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetSubscriptionRequest { + fn default() -> &'a GetSubscriptionRequest { + ::default_instance() } } -impl ListTopicSnapshotsResponse { - pub fn new() -> ListTopicSnapshotsResponse { +impl GetSubscriptionRequest { + pub fn new() -> GetSubscriptionRequest { ::std::default::Default::default() } - // repeated string snapshots = 1; - - - pub fn get_snapshots(&self) -> &[::std::string::String] { - &self.snapshots - } - pub fn clear_snapshots(&mut self) { - self.snapshots.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshots(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.snapshots = v; - } - - // Mutable pointer to the field. - pub fn mut_snapshots(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.snapshots - } - - // Take field - pub fn take_snapshots(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.snapshots, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &GetSubscriptionRequest| { &m.subscription }, + |m: &mut GetSubscriptionRequest| { &mut m.subscription }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetSubscriptionRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListTopicSnapshotsResponse { +impl ::protobuf::Message for GetSubscriptionRequest { + const NAME: &'static str = "GetSubscriptionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.snapshots)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3206,169 +3544,134 @@ impl ::protobuf::Message for ListTopicSnapshotsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.snapshots { - my_size += ::protobuf::rt::string_size(1, &value); - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.snapshots { - os.write_string(1, &v)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListTopicSnapshotsResponse { - ListTopicSnapshotsResponse::new() + fn new() -> GetSubscriptionRequest { + GetSubscriptionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "snapshots", - |m: &ListTopicSnapshotsResponse| { &m.snapshots }, - |m: &mut ListTopicSnapshotsResponse| { &mut m.snapshots }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTopicSnapshotsResponse| { &m.next_page_token }, - |m: &mut ListTopicSnapshotsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSnapshotsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListTopicSnapshotsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSnapshotsResponse::new) + fn default_instance() -> &'static GetSubscriptionRequest { + static instance: GetSubscriptionRequest = GetSubscriptionRequest { + subscription: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicSnapshotsResponse { - fn clear(&mut self) { - self.snapshots.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetSubscriptionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetSubscriptionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSnapshotsResponse { +impl ::std::fmt::Display for GetSubscriptionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListTopicSnapshotsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GetSubscriptionRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DeleteTopicRequest { +/// Request for the UpdateSubscription method. +// @@protoc_insertion_point(message:google.pubsub.v1.UpdateSubscriptionRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateSubscriptionRequest { // message fields - pub topic: ::std::string::String, + /// The updated subscription object. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateSubscriptionRequest.subscription) + pub subscription: ::protobuf::MessageField, + /// Indicates which fields in the provided subscription to update. + /// Must be specified and non-empty. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateSubscriptionRequest.update_mask) + pub update_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.UpdateSubscriptionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DeleteTopicRequest { - fn default() -> &'a DeleteTopicRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateSubscriptionRequest { + fn default() -> &'a UpdateSubscriptionRequest { + ::default_instance() } } -impl DeleteTopicRequest { - pub fn new() -> DeleteTopicRequest { +impl UpdateSubscriptionRequest { + pub fn new() -> UpdateSubscriptionRequest { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Subscription>( + "subscription", + |m: &UpdateSubscriptionRequest| { &m.subscription }, + |m: &mut UpdateSubscriptionRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "update_mask", + |m: &UpdateSubscriptionRequest| { &m.update_mask }, + |m: &mut UpdateSubscriptionRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateSubscriptionRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for DeleteTopicRequest { +impl ::protobuf::Message for UpdateSubscriptionRequest { + const NAME: &'static str = "UpdateSubscriptionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.subscription)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.update_mask)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3377,157 +3680,157 @@ impl ::protobuf::Message for DeleteTopicRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.topic); + if let Some(v) = self.subscription.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.update_mask.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.topic.is_empty() { - os.write_string(1, &self.topic)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.subscription.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + if let Some(v) = self.update_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> DeleteTopicRequest { - DeleteTopicRequest::new() + fn new() -> UpdateSubscriptionRequest { + UpdateSubscriptionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &DeleteTopicRequest| { &m.topic }, - |m: &mut DeleteTopicRequest| { &mut m.topic }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteTopicRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.update_mask.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DeleteTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteTopicRequest::new) + fn default_instance() -> &'static UpdateSubscriptionRequest { + static instance: UpdateSubscriptionRequest = UpdateSubscriptionRequest { + subscription: ::protobuf::MessageField::none(), + update_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateSubscriptionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateSubscriptionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteTopicRequest { +impl ::std::fmt::Display for UpdateSubscriptionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DeleteTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateSubscriptionRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DetachSubscriptionRequest { +/// Request for the `ListSubscriptions` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListSubscriptionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListSubscriptionsRequest { // message fields - pub subscription: ::std::string::String, + /// The name of the project in which to list subscriptions. + /// Format is `projects/{project-id}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSubscriptionsRequest.project) + pub project: ::std::string::String, + /// Maximum number of subscriptions to return. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSubscriptionsRequest.page_size) + pub page_size: i32, + /// The value returned by the last `ListSubscriptionsResponse`; indicates that + /// this is a continuation of a prior `ListSubscriptions` call, and that the + /// system should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSubscriptionsRequest.page_token) + pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListSubscriptionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DetachSubscriptionRequest { - fn default() -> &'a DetachSubscriptionRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListSubscriptionsRequest { + fn default() -> &'a ListSubscriptionsRequest { + ::default_instance() } } -impl DetachSubscriptionRequest { - pub fn new() -> DetachSubscriptionRequest { +impl ListSubscriptionsRequest { + pub fn new() -> ListSubscriptionsRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "project", + |m: &ListSubscriptionsRequest| { &m.project }, + |m: &mut ListSubscriptionsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListSubscriptionsRequest| { &m.page_size }, + |m: &mut ListSubscriptionsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListSubscriptionsRequest| { &m.page_token }, + |m: &mut ListSubscriptionsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSubscriptionsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for DetachSubscriptionRequest { +impl ::protobuf::Message for ListSubscriptionsRequest { + const NAME: &'static str = "ListSubscriptionsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.project = is.read_string()?; + }, + 16 => { + self.page_size = is.read_int32()?; + }, + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3536,126 +3839,151 @@ impl ::protobuf::Message for DetachSubscriptionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); + if !self.project.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.project); + } + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.project.is_empty() { + os.write_string(1, &self.project)?; + } + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; + } + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> DetachSubscriptionRequest { - DetachSubscriptionRequest::new() + fn new() -> ListSubscriptionsRequest { + ListSubscriptionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &DetachSubscriptionRequest| { &m.subscription }, - |m: &mut DetachSubscriptionRequest| { &mut m.subscription }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DetachSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.project.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DetachSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DetachSubscriptionRequest::new) + fn default_instance() -> &'static ListSubscriptionsRequest { + static instance: ListSubscriptionsRequest = ListSubscriptionsRequest { + project: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DetachSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSubscriptionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSubscriptionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DetachSubscriptionRequest { +impl ::std::fmt::Display for ListSubscriptionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DetachSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DetachSubscriptionResponse { +/// Response for the `ListSubscriptions` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListSubscriptionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListSubscriptionsResponse { + // message fields + /// The subscriptions that match the request. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSubscriptionsResponse.subscriptions) + pub subscriptions: ::std::vec::Vec, + /// If not empty, indicates that there may be more subscriptions that match + /// the request; this value should be passed in a new + /// `ListSubscriptionsRequest` to get more subscriptions. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSubscriptionsResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListSubscriptionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DetachSubscriptionResponse { - fn default() -> &'a DetachSubscriptionResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListSubscriptionsResponse { + fn default() -> &'a ListSubscriptionsResponse { + ::default_instance() } } -impl DetachSubscriptionResponse { - pub fn new() -> DetachSubscriptionResponse { +impl ListSubscriptionsResponse { + pub fn new() -> ListSubscriptionsResponse { ::std::default::Default::default() } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "subscriptions", + |m: &ListSubscriptionsResponse| { &m.subscriptions }, + |m: &mut ListSubscriptionsResponse| { &mut m.subscriptions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListSubscriptionsResponse| { &m.next_page_token }, + |m: &mut ListSubscriptionsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSubscriptionsResponse", + fields, + oneofs, + ) + } } -impl ::protobuf::Message for DetachSubscriptionResponse { +impl ::protobuf::Message for ListSubscriptionsResponse { + const NAME: &'static str = "ListSubscriptionsResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscriptions.push(is.read_message()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3664,6718 +3992,434 @@ impl ::protobuf::Message for DetachSubscriptionResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.subscriptions { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.subscriptions { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> DetachSubscriptionResponse { - DetachSubscriptionResponse::new() + fn new() -> ListSubscriptionsResponse { + ListSubscriptionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DetachSubscriptionResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DetachSubscriptionResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DetachSubscriptionResponse::new) + fn default_instance() -> &'static ListSubscriptionsResponse { + static instance: ListSubscriptionsResponse = ListSubscriptionsResponse { + subscriptions: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DetachSubscriptionResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSubscriptionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSubscriptionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for DetachSubscriptionResponse { +impl ::std::fmt::Display for ListSubscriptionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DetachSubscriptionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct Subscription { +/// Request for the DeleteSubscription method. +// @@protoc_insertion_point(message:google.pubsub.v1.DeleteSubscriptionRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteSubscriptionRequest { // message fields - pub name: ::std::string::String, - pub topic: ::std::string::String, - pub push_config: ::protobuf::SingularPtrField, - pub bigquery_config: ::protobuf::SingularPtrField, - pub cloud_storage_config: ::protobuf::SingularPtrField, - pub ack_deadline_seconds: i32, - pub retain_acked_messages: bool, - pub message_retention_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub enable_message_ordering: bool, - pub expiration_policy: ::protobuf::SingularPtrField, - pub filter: ::std::string::String, - pub dead_letter_policy: ::protobuf::SingularPtrField, - pub retry_policy: ::protobuf::SingularPtrField, - pub detached: bool, - pub enable_exactly_once_delivery: bool, - pub topic_message_retention_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub state: Subscription_State, + /// The subscription to delete. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.DeleteSubscriptionRequest.subscription) + pub subscription: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.DeleteSubscriptionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a Subscription { - fn default() -> &'a Subscription { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeleteSubscriptionRequest { + fn default() -> &'a DeleteSubscriptionRequest { + ::default_instance() } } -impl Subscription { - pub fn new() -> Subscription { +impl DeleteSubscriptionRequest { + pub fn new() -> DeleteSubscriptionRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string topic = 2; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // .google.pubsub.v1.PushConfig push_config = 4; - - - pub fn get_push_config(&self) -> &PushConfig { - self.push_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_push_config(&mut self) { - self.push_config.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &DeleteSubscriptionRequest| { &m.subscription }, + |m: &mut DeleteSubscriptionRequest| { &mut m.subscription }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteSubscriptionRequest", + fields, + oneofs, + ) } +} - pub fn has_push_config(&self) -> bool { - self.push_config.is_some() - } +impl ::protobuf::Message for DeleteSubscriptionRequest { + const NAME: &'static str = "DeleteSubscriptionRequest"; - // Param is passed by value, moved - pub fn set_push_config(&mut self, v: PushConfig) { - self.push_config = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_config(&mut self) -> &mut PushConfig { - if self.push_config.is_none() { - self.push_config.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.push_config.as_mut().unwrap() - } - - // Take field - pub fn take_push_config(&mut self) -> PushConfig { - self.push_config.take().unwrap_or_else(|| PushConfig::new()) - } - - // .google.pubsub.v1.BigQueryConfig bigquery_config = 18; - - - pub fn get_bigquery_config(&self) -> &BigQueryConfig { - self.bigquery_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_bigquery_config(&mut self) { - self.bigquery_config.clear(); - } - - pub fn has_bigquery_config(&self) -> bool { - self.bigquery_config.is_some() - } - - // Param is passed by value, moved - pub fn set_bigquery_config(&mut self, v: BigQueryConfig) { - self.bigquery_config = ::protobuf::SingularPtrField::some(v); + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bigquery_config(&mut self) -> &mut BigQueryConfig { - if self.bigquery_config.is_none() { - self.bigquery_config.set_default(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); } - self.bigquery_config.as_mut().unwrap() - } - - // Take field - pub fn take_bigquery_config(&mut self) -> BigQueryConfig { - self.bigquery_config.take().unwrap_or_else(|| BigQueryConfig::new()) - } - - // .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; - - - pub fn get_cloud_storage_config(&self) -> &CloudStorageConfig { - self.cloud_storage_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_cloud_storage_config(&mut self) { - self.cloud_storage_config.clear(); - } - - pub fn has_cloud_storage_config(&self) -> bool { - self.cloud_storage_config.is_some() - } - - // Param is passed by value, moved - pub fn set_cloud_storage_config(&mut self, v: CloudStorageConfig) { - self.cloud_storage_config = ::protobuf::SingularPtrField::some(v); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cloud_storage_config(&mut self) -> &mut CloudStorageConfig { - if self.cloud_storage_config.is_none() { - self.cloud_storage_config.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; } - self.cloud_storage_config.as_mut().unwrap() - } - - // Take field - pub fn take_cloud_storage_config(&mut self) -> CloudStorageConfig { - self.cloud_storage_config.take().unwrap_or_else(|| CloudStorageConfig::new()) - } - - // int32 ack_deadline_seconds = 5; - - - pub fn get_ack_deadline_seconds(&self) -> i32 { - self.ack_deadline_seconds - } - pub fn clear_ack_deadline_seconds(&mut self) { - self.ack_deadline_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_ack_deadline_seconds(&mut self, v: i32) { - self.ack_deadline_seconds = v; - } - - // bool retain_acked_messages = 7; - - - pub fn get_retain_acked_messages(&self) -> bool { - self.retain_acked_messages - } - pub fn clear_retain_acked_messages(&mut self) { - self.retain_acked_messages = false; - } - - // Param is passed by value, moved - pub fn set_retain_acked_messages(&mut self, v: bool) { - self.retain_acked_messages = v; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.protobuf.Duration message_retention_duration = 8; - - - pub fn get_message_retention_duration(&self) -> &::protobuf::well_known_types::Duration { - self.message_retention_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_message_retention_duration(&mut self) { - self.message_retention_duration.clear(); + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn has_message_retention_duration(&self) -> bool { - self.message_retention_duration.is_some() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_message_retention_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.message_retention_duration = ::protobuf::SingularPtrField::some(v); + fn new() -> DeleteSubscriptionRequest { + DeleteSubscriptionRequest::new() } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message_retention_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.message_retention_duration.is_none() { - self.message_retention_duration.set_default(); - } - self.message_retention_duration.as_mut().unwrap() + fn clear(&mut self) { + self.subscription.clear(); + self.special_fields.clear(); } - // Take field - pub fn take_message_retention_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.message_retention_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) + fn default_instance() -> &'static DeleteSubscriptionRequest { + static instance: DeleteSubscriptionRequest = DeleteSubscriptionRequest { + subscription: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // repeated .google.pubsub.v1.Subscription.LabelsEntry labels = 9; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); +impl ::protobuf::MessageFull for DeleteSubscriptionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteSubscriptionRequest").unwrap()).clone() } +} - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; +impl ::std::fmt::Display for DeleteSubscriptionRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // bool enable_message_ordering = 10; - - - pub fn get_enable_message_ordering(&self) -> bool { - self.enable_message_ordering - } - pub fn clear_enable_message_ordering(&mut self) { - self.enable_message_ordering = false; - } - - // Param is passed by value, moved - pub fn set_enable_message_ordering(&mut self, v: bool) { - self.enable_message_ordering = v; - } - - // .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; - - - pub fn get_expiration_policy(&self) -> &ExpirationPolicy { - self.expiration_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_expiration_policy(&mut self) { - self.expiration_policy.clear(); - } - - pub fn has_expiration_policy(&self) -> bool { - self.expiration_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_expiration_policy(&mut self, v: ExpirationPolicy) { - self.expiration_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expiration_policy(&mut self) -> &mut ExpirationPolicy { - if self.expiration_policy.is_none() { - self.expiration_policy.set_default(); - } - self.expiration_policy.as_mut().unwrap() - } - - // Take field - pub fn take_expiration_policy(&mut self) -> ExpirationPolicy { - self.expiration_policy.take().unwrap_or_else(|| ExpirationPolicy::new()) - } - - // string filter = 12; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; - - - pub fn get_dead_letter_policy(&self) -> &DeadLetterPolicy { - self.dead_letter_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_dead_letter_policy(&mut self) { - self.dead_letter_policy.clear(); - } - - pub fn has_dead_letter_policy(&self) -> bool { - self.dead_letter_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_dead_letter_policy(&mut self, v: DeadLetterPolicy) { - self.dead_letter_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dead_letter_policy(&mut self) -> &mut DeadLetterPolicy { - if self.dead_letter_policy.is_none() { - self.dead_letter_policy.set_default(); - } - self.dead_letter_policy.as_mut().unwrap() - } - - // Take field - pub fn take_dead_letter_policy(&mut self) -> DeadLetterPolicy { - self.dead_letter_policy.take().unwrap_or_else(|| DeadLetterPolicy::new()) - } - - // .google.pubsub.v1.RetryPolicy retry_policy = 14; - - - pub fn get_retry_policy(&self) -> &RetryPolicy { - self.retry_policy.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_retry_policy(&mut self) { - self.retry_policy.clear(); - } - - pub fn has_retry_policy(&self) -> bool { - self.retry_policy.is_some() - } - - // Param is passed by value, moved - pub fn set_retry_policy(&mut self, v: RetryPolicy) { - self.retry_policy = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_retry_policy(&mut self) -> &mut RetryPolicy { - if self.retry_policy.is_none() { - self.retry_policy.set_default(); - } - self.retry_policy.as_mut().unwrap() - } - - // Take field - pub fn take_retry_policy(&mut self) -> RetryPolicy { - self.retry_policy.take().unwrap_or_else(|| RetryPolicy::new()) - } - - // bool detached = 15; - - - pub fn get_detached(&self) -> bool { - self.detached - } - pub fn clear_detached(&mut self) { - self.detached = false; - } - - // Param is passed by value, moved - pub fn set_detached(&mut self, v: bool) { - self.detached = v; - } - - // bool enable_exactly_once_delivery = 16; - - - pub fn get_enable_exactly_once_delivery(&self) -> bool { - self.enable_exactly_once_delivery - } - pub fn clear_enable_exactly_once_delivery(&mut self) { - self.enable_exactly_once_delivery = false; - } - - // Param is passed by value, moved - pub fn set_enable_exactly_once_delivery(&mut self, v: bool) { - self.enable_exactly_once_delivery = v; - } - - // .google.protobuf.Duration topic_message_retention_duration = 17; - - - pub fn get_topic_message_retention_duration(&self) -> &::protobuf::well_known_types::Duration { - self.topic_message_retention_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_topic_message_retention_duration(&mut self) { - self.topic_message_retention_duration.clear(); - } - - pub fn has_topic_message_retention_duration(&self) -> bool { - self.topic_message_retention_duration.is_some() - } - - // Param is passed by value, moved - pub fn set_topic_message_retention_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.topic_message_retention_duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic_message_retention_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.topic_message_retention_duration.is_none() { - self.topic_message_retention_duration.set_default(); - } - self.topic_message_retention_duration.as_mut().unwrap() - } - - // Take field - pub fn take_topic_message_retention_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.topic_message_retention_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.pubsub.v1.Subscription.State state = 19; - - - pub fn get_state(&self) -> Subscription_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Subscription_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Subscription_State) { - self.state = v; - } -} - -impl ::protobuf::Message for Subscription { - fn is_initialized(&self) -> bool { - for v in &self.push_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.bigquery_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cloud_storage_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.message_retention_duration { - if !v.is_initialized() { - return false; - } - }; - for v in &self.expiration_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.dead_letter_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.retry_policy { - if !v.is_initialized() { - return false; - } - }; - for v in &self.topic_message_retention_duration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?; - }, - 18 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.bigquery_config)?; - }, - 22 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cloud_storage_config)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.ack_deadline_seconds = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.retain_acked_messages = tmp; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message_retention_duration)?; - }, - 9 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enable_message_ordering = tmp; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expiration_policy)?; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.dead_letter_policy)?; - }, - 14 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retry_policy)?; - }, - 15 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.detached = tmp; - }, - 16 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enable_exactly_once_delivery = tmp; - }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.topic_message_retention_duration)?; - }, - 19 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 19, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.topic.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.topic); - } - if let Some(ref v) = self.push_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.bigquery_config.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cloud_storage_config.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(5, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint); - } - if self.retain_acked_messages != false { - my_size += 2; - } - if let Some(ref v) = self.message_retention_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(9, &self.labels); - if self.enable_message_ordering != false { - my_size += 2; - } - if let Some(ref v) = self.expiration_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(12, &self.filter); - } - if let Some(ref v) = self.dead_letter_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.retry_policy.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.detached != false { - my_size += 2; - } - if self.enable_exactly_once_delivery != false { - my_size += 3; - } - if let Some(ref v) = self.topic_message_retention_duration.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.state != Subscription_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(19, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.topic.is_empty() { - os.write_string(2, &self.topic)?; - } - if let Some(ref v) = self.push_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.bigquery_config.as_ref() { - os.write_tag(18, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cloud_storage_config.as_ref() { - os.write_tag(22, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.ack_deadline_seconds != 0 { - os.write_int32(5, self.ack_deadline_seconds)?; - } - if self.retain_acked_messages != false { - os.write_bool(7, self.retain_acked_messages)?; - } - if let Some(ref v) = self.message_retention_duration.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(9, &self.labels, os)?; - if self.enable_message_ordering != false { - os.write_bool(10, self.enable_message_ordering)?; - } - if let Some(ref v) = self.expiration_policy.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.filter.is_empty() { - os.write_string(12, &self.filter)?; - } - if let Some(ref v) = self.dead_letter_policy.as_ref() { - os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.retry_policy.as_ref() { - os.write_tag(14, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.detached != false { - os.write_bool(15, self.detached)?; - } - if self.enable_exactly_once_delivery != false { - os.write_bool(16, self.enable_exactly_once_delivery)?; - } - if let Some(ref v) = self.topic_message_retention_duration.as_ref() { - os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.state != Subscription_State::STATE_UNSPECIFIED { - os.write_enum(19, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Subscription { - Subscription::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Subscription| { &m.name }, - |m: &mut Subscription| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &Subscription| { &m.topic }, - |m: &mut Subscription| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "push_config", - |m: &Subscription| { &m.push_config }, - |m: &mut Subscription| { &mut m.push_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "bigquery_config", - |m: &Subscription| { &m.bigquery_config }, - |m: &mut Subscription| { &mut m.bigquery_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cloud_storage_config", - |m: &Subscription| { &m.cloud_storage_config }, - |m: &mut Subscription| { &mut m.cloud_storage_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "ack_deadline_seconds", - |m: &Subscription| { &m.ack_deadline_seconds }, - |m: &mut Subscription| { &mut m.ack_deadline_seconds }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "retain_acked_messages", - |m: &Subscription| { &m.retain_acked_messages }, - |m: &mut Subscription| { &mut m.retain_acked_messages }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "message_retention_duration", - |m: &Subscription| { &m.message_retention_duration }, - |m: &mut Subscription| { &mut m.message_retention_duration }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Subscription| { &m.labels }, - |m: &mut Subscription| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enable_message_ordering", - |m: &Subscription| { &m.enable_message_ordering }, - |m: &mut Subscription| { &mut m.enable_message_ordering }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "expiration_policy", - |m: &Subscription| { &m.expiration_policy }, - |m: &mut Subscription| { &mut m.expiration_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &Subscription| { &m.filter }, - |m: &mut Subscription| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "dead_letter_policy", - |m: &Subscription| { &m.dead_letter_policy }, - |m: &mut Subscription| { &mut m.dead_letter_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "retry_policy", - |m: &Subscription| { &m.retry_policy }, - |m: &mut Subscription| { &mut m.retry_policy }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "detached", - |m: &Subscription| { &m.detached }, - |m: &mut Subscription| { &mut m.detached }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enable_exactly_once_delivery", - |m: &Subscription| { &m.enable_exactly_once_delivery }, - |m: &mut Subscription| { &mut m.enable_exactly_once_delivery }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "topic_message_retention_duration", - |m: &Subscription| { &m.topic_message_retention_duration }, - |m: &mut Subscription| { &mut m.topic_message_retention_duration }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Subscription| { &m.state }, - |m: &mut Subscription| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Subscription", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Subscription { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Subscription::new) - } -} - -impl ::protobuf::Clear for Subscription { - fn clear(&mut self) { - self.name.clear(); - self.topic.clear(); - self.push_config.clear(); - self.bigquery_config.clear(); - self.cloud_storage_config.clear(); - self.ack_deadline_seconds = 0; - self.retain_acked_messages = false; - self.message_retention_duration.clear(); - self.labels.clear(); - self.enable_message_ordering = false; - self.expiration_policy.clear(); - self.filter.clear(); - self.dead_letter_policy.clear(); - self.retry_policy.clear(); - self.detached = false; - self.enable_exactly_once_delivery = false; - self.topic_message_retention_duration.clear(); - self.state = Subscription_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Subscription { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Subscription { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Subscription_State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - RESOURCE_ERROR = 2, -} - -impl ::protobuf::ProtobufEnum for Subscription_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Subscription_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Subscription_State::ACTIVE), - 2 => ::std::option::Option::Some(Subscription_State::RESOURCE_ERROR), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Subscription_State] = &[ - Subscription_State::STATE_UNSPECIFIED, - Subscription_State::ACTIVE, - Subscription_State::RESOURCE_ERROR, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Subscription.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Subscription_State { -} - -impl ::std::default::Default for Subscription_State { - fn default() -> Self { - Subscription_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Subscription_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RetryPolicy { - // message fields - pub minimum_backoff: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub maximum_backoff: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RetryPolicy { - fn default() -> &'a RetryPolicy { - ::default_instance() - } -} - -impl RetryPolicy { - pub fn new() -> RetryPolicy { - ::std::default::Default::default() - } - - // .google.protobuf.Duration minimum_backoff = 1; - - - pub fn get_minimum_backoff(&self) -> &::protobuf::well_known_types::Duration { - self.minimum_backoff.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_minimum_backoff(&mut self) { - self.minimum_backoff.clear(); - } - - pub fn has_minimum_backoff(&self) -> bool { - self.minimum_backoff.is_some() - } - - // Param is passed by value, moved - pub fn set_minimum_backoff(&mut self, v: ::protobuf::well_known_types::Duration) { - self.minimum_backoff = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_minimum_backoff(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.minimum_backoff.is_none() { - self.minimum_backoff.set_default(); - } - self.minimum_backoff.as_mut().unwrap() - } - - // Take field - pub fn take_minimum_backoff(&mut self) -> ::protobuf::well_known_types::Duration { - self.minimum_backoff.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // .google.protobuf.Duration maximum_backoff = 2; - - - pub fn get_maximum_backoff(&self) -> &::protobuf::well_known_types::Duration { - self.maximum_backoff.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_maximum_backoff(&mut self) { - self.maximum_backoff.clear(); - } - - pub fn has_maximum_backoff(&self) -> bool { - self.maximum_backoff.is_some() - } - - // Param is passed by value, moved - pub fn set_maximum_backoff(&mut self, v: ::protobuf::well_known_types::Duration) { - self.maximum_backoff = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_maximum_backoff(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.maximum_backoff.is_none() { - self.maximum_backoff.set_default(); - } - self.maximum_backoff.as_mut().unwrap() - } - - // Take field - pub fn take_maximum_backoff(&mut self) -> ::protobuf::well_known_types::Duration { - self.maximum_backoff.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for RetryPolicy { - fn is_initialized(&self) -> bool { - for v in &self.minimum_backoff { - if !v.is_initialized() { - return false; - } - }; - for v in &self.maximum_backoff { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.minimum_backoff)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.maximum_backoff)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.minimum_backoff.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.maximum_backoff.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.minimum_backoff.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.maximum_backoff.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RetryPolicy { - RetryPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "minimum_backoff", - |m: &RetryPolicy| { &m.minimum_backoff }, - |m: &mut RetryPolicy| { &mut m.minimum_backoff }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "maximum_backoff", - |m: &RetryPolicy| { &m.maximum_backoff }, - |m: &mut RetryPolicy| { &mut m.maximum_backoff }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RetryPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RetryPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RetryPolicy::new) - } -} - -impl ::protobuf::Clear for RetryPolicy { - fn clear(&mut self) { - self.minimum_backoff.clear(); - self.maximum_backoff.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RetryPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RetryPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeadLetterPolicy { - // message fields - pub dead_letter_topic: ::std::string::String, - pub max_delivery_attempts: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeadLetterPolicy { - fn default() -> &'a DeadLetterPolicy { - ::default_instance() - } -} - -impl DeadLetterPolicy { - pub fn new() -> DeadLetterPolicy { - ::std::default::Default::default() - } - - // string dead_letter_topic = 1; - - - pub fn get_dead_letter_topic(&self) -> &str { - &self.dead_letter_topic - } - pub fn clear_dead_letter_topic(&mut self) { - self.dead_letter_topic.clear(); - } - - // Param is passed by value, moved - pub fn set_dead_letter_topic(&mut self, v: ::std::string::String) { - self.dead_letter_topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dead_letter_topic(&mut self) -> &mut ::std::string::String { - &mut self.dead_letter_topic - } - - // Take field - pub fn take_dead_letter_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dead_letter_topic, ::std::string::String::new()) - } - - // int32 max_delivery_attempts = 2; - - - pub fn get_max_delivery_attempts(&self) -> i32 { - self.max_delivery_attempts - } - pub fn clear_max_delivery_attempts(&mut self) { - self.max_delivery_attempts = 0; - } - - // Param is passed by value, moved - pub fn set_max_delivery_attempts(&mut self, v: i32) { - self.max_delivery_attempts = v; - } -} - -impl ::protobuf::Message for DeadLetterPolicy { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dead_letter_topic)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.max_delivery_attempts = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dead_letter_topic.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dead_letter_topic); - } - if self.max_delivery_attempts != 0 { - my_size += ::protobuf::rt::value_size(2, self.max_delivery_attempts, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dead_letter_topic.is_empty() { - os.write_string(1, &self.dead_letter_topic)?; - } - if self.max_delivery_attempts != 0 { - os.write_int32(2, self.max_delivery_attempts)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeadLetterPolicy { - DeadLetterPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dead_letter_topic", - |m: &DeadLetterPolicy| { &m.dead_letter_topic }, - |m: &mut DeadLetterPolicy| { &mut m.dead_letter_topic }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_delivery_attempts", - |m: &DeadLetterPolicy| { &m.max_delivery_attempts }, - |m: &mut DeadLetterPolicy| { &mut m.max_delivery_attempts }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeadLetterPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeadLetterPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeadLetterPolicy::new) - } -} - -impl ::protobuf::Clear for DeadLetterPolicy { - fn clear(&mut self) { - self.dead_letter_topic.clear(); - self.max_delivery_attempts = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeadLetterPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeadLetterPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExpirationPolicy { - // message fields - pub ttl: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExpirationPolicy { - fn default() -> &'a ExpirationPolicy { - ::default_instance() - } -} - -impl ExpirationPolicy { - pub fn new() -> ExpirationPolicy { - ::std::default::Default::default() - } - - // .google.protobuf.Duration ttl = 1; - - - pub fn get_ttl(&self) -> &::protobuf::well_known_types::Duration { - self.ttl.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_ttl(&mut self) { - self.ttl.clear(); - } - - pub fn has_ttl(&self) -> bool { - self.ttl.is_some() - } - - // Param is passed by value, moved - pub fn set_ttl(&mut self, v: ::protobuf::well_known_types::Duration) { - self.ttl = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ttl(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.ttl.is_none() { - self.ttl.set_default(); - } - self.ttl.as_mut().unwrap() - } - - // Take field - pub fn take_ttl(&mut self) -> ::protobuf::well_known_types::Duration { - self.ttl.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } -} - -impl ::protobuf::Message for ExpirationPolicy { - fn is_initialized(&self) -> bool { - for v in &self.ttl { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ttl)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.ttl.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.ttl.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExpirationPolicy { - ExpirationPolicy::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "ttl", - |m: &ExpirationPolicy| { &m.ttl }, - |m: &mut ExpirationPolicy| { &mut m.ttl }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExpirationPolicy", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExpirationPolicy { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExpirationPolicy::new) - } -} - -impl ::protobuf::Clear for ExpirationPolicy { - fn clear(&mut self) { - self.ttl.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExpirationPolicy { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExpirationPolicy { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PushConfig { - // message fields - pub push_endpoint: ::std::string::String, - pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // message oneof groups - pub authentication_method: ::std::option::Option, - pub wrapper: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PushConfig { - fn default() -> &'a PushConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum PushConfig_oneof_authentication_method { - oidc_token(PushConfig_OidcToken), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum PushConfig_oneof_wrapper { - pubsub_wrapper(PushConfig_PubsubWrapper), - no_wrapper(PushConfig_NoWrapper), -} - -impl PushConfig { - pub fn new() -> PushConfig { - ::std::default::Default::default() - } - - // string push_endpoint = 1; - - - pub fn get_push_endpoint(&self) -> &str { - &self.push_endpoint - } - pub fn clear_push_endpoint(&mut self) { - self.push_endpoint.clear(); - } - - // Param is passed by value, moved - pub fn set_push_endpoint(&mut self, v: ::std::string::String) { - self.push_endpoint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_endpoint(&mut self) -> &mut ::std::string::String { - &mut self.push_endpoint - } - - // Take field - pub fn take_push_endpoint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.push_endpoint, ::std::string::String::new()) - } - - // repeated .google.pubsub.v1.PushConfig.AttributesEntry attributes = 2; - - - pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.attributes - } - pub fn clear_attributes(&mut self) { - self.attributes.clear(); - } - - // Param is passed by value, moved - pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.attributes = v; - } - - // Mutable pointer to the field. - pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.attributes - } - - // Take field - pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new()) - } - - // .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; - - - pub fn get_oidc_token(&self) -> &PushConfig_OidcToken { - match self.authentication_method { - ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_oidc_token(&mut self) { - self.authentication_method = ::std::option::Option::None; - } - - pub fn has_oidc_token(&self) -> bool { - match self.authentication_method { - ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_oidc_token(&mut self, v: PushConfig_OidcToken) { - self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(v)) - } - - // Mutable pointer to the field. - pub fn mut_oidc_token(&mut self) -> &mut PushConfig_OidcToken { - if let ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(_)) = self.authentication_method { - } else { - self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(PushConfig_OidcToken::new())); - } - match self.authentication_method { - ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_oidc_token(&mut self) -> PushConfig_OidcToken { - if self.has_oidc_token() { - match self.authentication_method.take() { - ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(v)) => v, - _ => panic!(), - } - } else { - PushConfig_OidcToken::new() - } - } - - // .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; - - - pub fn get_pubsub_wrapper(&self) -> &PushConfig_PubsubWrapper { - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_pubsub_wrapper(&mut self) { - self.wrapper = ::std::option::Option::None; - } - - pub fn has_pubsub_wrapper(&self) -> bool { - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_pubsub_wrapper(&mut self, v: PushConfig_PubsubWrapper) { - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(v)) - } - - // Mutable pointer to the field. - pub fn mut_pubsub_wrapper(&mut self) -> &mut PushConfig_PubsubWrapper { - if let ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(_)) = self.wrapper { - } else { - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(PushConfig_PubsubWrapper::new())); - } - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_pubsub_wrapper(&mut self) -> PushConfig_PubsubWrapper { - if self.has_pubsub_wrapper() { - match self.wrapper.take() { - ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(v)) => v, - _ => panic!(), - } - } else { - PushConfig_PubsubWrapper::new() - } - } - - // .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; - - - pub fn get_no_wrapper(&self) -> &PushConfig_NoWrapper { - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_no_wrapper(&mut self) { - self.wrapper = ::std::option::Option::None; - } - - pub fn has_no_wrapper(&self) -> bool { - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_no_wrapper(&mut self, v: PushConfig_NoWrapper) { - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(v)) - } - - // Mutable pointer to the field. - pub fn mut_no_wrapper(&mut self) -> &mut PushConfig_NoWrapper { - if let ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(_)) = self.wrapper { - } else { - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(PushConfig_NoWrapper::new())); - } - match self.wrapper { - ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_no_wrapper(&mut self) -> PushConfig_NoWrapper { - if self.has_no_wrapper() { - match self.wrapper.take() { - ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(v)) => v, - _ => panic!(), - } - } else { - PushConfig_NoWrapper::new() - } - } -} - -impl ::protobuf::Message for PushConfig { - fn is_initialized(&self) -> bool { - if let Some(PushConfig_oneof_authentication_method::oidc_token(ref v)) = self.authentication_method { - if !v.is_initialized() { - return false; - } - } - if let Some(PushConfig_oneof_wrapper::pubsub_wrapper(ref v)) = self.wrapper { - if !v.is_initialized() { - return false; - } - } - if let Some(PushConfig_oneof_wrapper::no_wrapper(ref v)) = self.wrapper { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.push_endpoint)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.authentication_method = ::std::option::Option::Some(PushConfig_oneof_authentication_method::oidc_token(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::pubsub_wrapper(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.wrapper = ::std::option::Option::Some(PushConfig_oneof_wrapper::no_wrapper(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.push_endpoint.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.push_endpoint); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes); - if let ::std::option::Option::Some(ref v) = self.authentication_method { - match v { - &PushConfig_oneof_authentication_method::oidc_token(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.wrapper { - match v { - &PushConfig_oneof_wrapper::pubsub_wrapper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &PushConfig_oneof_wrapper::no_wrapper(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.push_endpoint.is_empty() { - os.write_string(1, &self.push_endpoint)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?; - if let ::std::option::Option::Some(ref v) = self.authentication_method { - match v { - &PushConfig_oneof_authentication_method::oidc_token(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.wrapper { - match v { - &PushConfig_oneof_wrapper::pubsub_wrapper(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &PushConfig_oneof_wrapper::no_wrapper(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PushConfig { - PushConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "push_endpoint", - |m: &PushConfig| { &m.push_endpoint }, - |m: &mut PushConfig| { &mut m.push_endpoint }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "attributes", - |m: &PushConfig| { &m.attributes }, - |m: &mut PushConfig| { &mut m.attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PushConfig_OidcToken>( - "oidc_token", - PushConfig::has_oidc_token, - PushConfig::get_oidc_token, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PushConfig_PubsubWrapper>( - "pubsub_wrapper", - PushConfig::has_pubsub_wrapper, - PushConfig::get_pubsub_wrapper, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PushConfig_NoWrapper>( - "no_wrapper", - PushConfig::has_no_wrapper, - PushConfig::get_no_wrapper, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PushConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PushConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PushConfig::new) - } -} - -impl ::protobuf::Clear for PushConfig { - fn clear(&mut self) { - self.push_endpoint.clear(); - self.attributes.clear(); - self.authentication_method = ::std::option::Option::None; - self.wrapper = ::std::option::Option::None; - self.wrapper = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PushConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PushConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PushConfig_OidcToken { - // message fields - pub service_account_email: ::std::string::String, - pub audience: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PushConfig_OidcToken { - fn default() -> &'a PushConfig_OidcToken { - ::default_instance() - } -} - -impl PushConfig_OidcToken { - pub fn new() -> PushConfig_OidcToken { - ::std::default::Default::default() - } - - // string service_account_email = 1; - - - pub fn get_service_account_email(&self) -> &str { - &self.service_account_email - } - pub fn clear_service_account_email(&mut self) { - self.service_account_email.clear(); - } - - // Param is passed by value, moved - pub fn set_service_account_email(&mut self, v: ::std::string::String) { - self.service_account_email = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service_account_email(&mut self) -> &mut ::std::string::String { - &mut self.service_account_email - } - - // Take field - pub fn take_service_account_email(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service_account_email, ::std::string::String::new()) - } - - // string audience = 2; - - - pub fn get_audience(&self) -> &str { - &self.audience - } - pub fn clear_audience(&mut self) { - self.audience.clear(); - } - - // Param is passed by value, moved - pub fn set_audience(&mut self, v: ::std::string::String) { - self.audience = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_audience(&mut self) -> &mut ::std::string::String { - &mut self.audience - } - - // Take field - pub fn take_audience(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.audience, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PushConfig_OidcToken { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service_account_email)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.audience)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.service_account_email.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service_account_email); - } - if !self.audience.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.audience); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.service_account_email.is_empty() { - os.write_string(1, &self.service_account_email)?; - } - if !self.audience.is_empty() { - os.write_string(2, &self.audience)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PushConfig_OidcToken { - PushConfig_OidcToken::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service_account_email", - |m: &PushConfig_OidcToken| { &m.service_account_email }, - |m: &mut PushConfig_OidcToken| { &mut m.service_account_email }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "audience", - |m: &PushConfig_OidcToken| { &m.audience }, - |m: &mut PushConfig_OidcToken| { &mut m.audience }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PushConfig.OidcToken", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PushConfig_OidcToken { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PushConfig_OidcToken::new) - } -} - -impl ::protobuf::Clear for PushConfig_OidcToken { - fn clear(&mut self) { - self.service_account_email.clear(); - self.audience.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PushConfig_OidcToken { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PushConfig_OidcToken { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PushConfig_PubsubWrapper { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PushConfig_PubsubWrapper { - fn default() -> &'a PushConfig_PubsubWrapper { - ::default_instance() - } -} - -impl PushConfig_PubsubWrapper { - pub fn new() -> PushConfig_PubsubWrapper { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for PushConfig_PubsubWrapper { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PushConfig_PubsubWrapper { - PushConfig_PubsubWrapper::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PushConfig.PubsubWrapper", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PushConfig_PubsubWrapper { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PushConfig_PubsubWrapper::new) - } -} - -impl ::protobuf::Clear for PushConfig_PubsubWrapper { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PushConfig_PubsubWrapper { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PushConfig_PubsubWrapper { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PushConfig_NoWrapper { - // message fields - pub write_metadata: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PushConfig_NoWrapper { - fn default() -> &'a PushConfig_NoWrapper { - ::default_instance() - } -} - -impl PushConfig_NoWrapper { - pub fn new() -> PushConfig_NoWrapper { - ::std::default::Default::default() - } - - // bool write_metadata = 1; - - - pub fn get_write_metadata(&self) -> bool { - self.write_metadata - } - pub fn clear_write_metadata(&mut self) { - self.write_metadata = false; - } - - // Param is passed by value, moved - pub fn set_write_metadata(&mut self, v: bool) { - self.write_metadata = v; - } -} - -impl ::protobuf::Message for PushConfig_NoWrapper { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.write_metadata = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.write_metadata != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.write_metadata != false { - os.write_bool(1, self.write_metadata)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PushConfig_NoWrapper { - PushConfig_NoWrapper::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "write_metadata", - |m: &PushConfig_NoWrapper| { &m.write_metadata }, - |m: &mut PushConfig_NoWrapper| { &mut m.write_metadata }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PushConfig.NoWrapper", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PushConfig_NoWrapper { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PushConfig_NoWrapper::new) - } -} - -impl ::protobuf::Clear for PushConfig_NoWrapper { - fn clear(&mut self) { - self.write_metadata = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PushConfig_NoWrapper { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PushConfig_NoWrapper { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BigQueryConfig { - // message fields - pub table: ::std::string::String, - pub use_topic_schema: bool, - pub write_metadata: bool, - pub drop_unknown_fields: bool, - pub state: BigQueryConfig_State, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BigQueryConfig { - fn default() -> &'a BigQueryConfig { - ::default_instance() - } -} - -impl BigQueryConfig { - pub fn new() -> BigQueryConfig { - ::std::default::Default::default() - } - - // string table = 1; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // bool use_topic_schema = 2; - - - pub fn get_use_topic_schema(&self) -> bool { - self.use_topic_schema - } - pub fn clear_use_topic_schema(&mut self) { - self.use_topic_schema = false; - } - - // Param is passed by value, moved - pub fn set_use_topic_schema(&mut self, v: bool) { - self.use_topic_schema = v; - } - - // bool write_metadata = 3; - - - pub fn get_write_metadata(&self) -> bool { - self.write_metadata - } - pub fn clear_write_metadata(&mut self) { - self.write_metadata = false; - } - - // Param is passed by value, moved - pub fn set_write_metadata(&mut self, v: bool) { - self.write_metadata = v; - } - - // bool drop_unknown_fields = 4; - - - pub fn get_drop_unknown_fields(&self) -> bool { - self.drop_unknown_fields - } - pub fn clear_drop_unknown_fields(&mut self) { - self.drop_unknown_fields = false; - } - - // Param is passed by value, moved - pub fn set_drop_unknown_fields(&mut self, v: bool) { - self.drop_unknown_fields = v; - } - - // .google.pubsub.v1.BigQueryConfig.State state = 5; - - - pub fn get_state(&self) -> BigQueryConfig_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = BigQueryConfig_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: BigQueryConfig_State) { - self.state = v; - } -} - -impl ::protobuf::Message for BigQueryConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.use_topic_schema = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.write_metadata = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.drop_unknown_fields = tmp; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 5, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table); - } - if self.use_topic_schema != false { - my_size += 2; - } - if self.write_metadata != false { - my_size += 2; - } - if self.drop_unknown_fields != false { - my_size += 2; - } - if self.state != BigQueryConfig_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table.is_empty() { - os.write_string(1, &self.table)?; - } - if self.use_topic_schema != false { - os.write_bool(2, self.use_topic_schema)?; - } - if self.write_metadata != false { - os.write_bool(3, self.write_metadata)?; - } - if self.drop_unknown_fields != false { - os.write_bool(4, self.drop_unknown_fields)?; - } - if self.state != BigQueryConfig_State::STATE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BigQueryConfig { - BigQueryConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &BigQueryConfig| { &m.table }, - |m: &mut BigQueryConfig| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "use_topic_schema", - |m: &BigQueryConfig| { &m.use_topic_schema }, - |m: &mut BigQueryConfig| { &mut m.use_topic_schema }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "write_metadata", - |m: &BigQueryConfig| { &m.write_metadata }, - |m: &mut BigQueryConfig| { &mut m.write_metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "drop_unknown_fields", - |m: &BigQueryConfig| { &m.drop_unknown_fields }, - |m: &mut BigQueryConfig| { &mut m.drop_unknown_fields }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &BigQueryConfig| { &m.state }, - |m: &mut BigQueryConfig| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BigQueryConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BigQueryConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BigQueryConfig::new) - } -} - -impl ::protobuf::Clear for BigQueryConfig { - fn clear(&mut self) { - self.table.clear(); - self.use_topic_schema = false; - self.write_metadata = false; - self.drop_unknown_fields = false; - self.state = BigQueryConfig_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BigQueryConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BigQueryConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum BigQueryConfig_State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - PERMISSION_DENIED = 2, - NOT_FOUND = 3, - SCHEMA_MISMATCH = 4, -} - -impl ::protobuf::ProtobufEnum for BigQueryConfig_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(BigQueryConfig_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(BigQueryConfig_State::ACTIVE), - 2 => ::std::option::Option::Some(BigQueryConfig_State::PERMISSION_DENIED), - 3 => ::std::option::Option::Some(BigQueryConfig_State::NOT_FOUND), - 4 => ::std::option::Option::Some(BigQueryConfig_State::SCHEMA_MISMATCH), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [BigQueryConfig_State] = &[ - BigQueryConfig_State::STATE_UNSPECIFIED, - BigQueryConfig_State::ACTIVE, - BigQueryConfig_State::PERMISSION_DENIED, - BigQueryConfig_State::NOT_FOUND, - BigQueryConfig_State::SCHEMA_MISMATCH, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("BigQueryConfig.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for BigQueryConfig_State { -} - -impl ::std::default::Default for BigQueryConfig_State { - fn default() -> Self { - BigQueryConfig_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for BigQueryConfig_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CloudStorageConfig { - // message fields - pub bucket: ::std::string::String, - pub filename_prefix: ::std::string::String, - pub filename_suffix: ::std::string::String, - pub max_duration: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, - pub max_bytes: i64, - pub state: CloudStorageConfig_State, - // message oneof groups - pub output_format: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CloudStorageConfig { - fn default() -> &'a CloudStorageConfig { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum CloudStorageConfig_oneof_output_format { - text_config(CloudStorageConfig_TextConfig), - avro_config(CloudStorageConfig_AvroConfig), -} - -impl CloudStorageConfig { - pub fn new() -> CloudStorageConfig { - ::std::default::Default::default() - } - - // string bucket = 1; - - - pub fn get_bucket(&self) -> &str { - &self.bucket - } - pub fn clear_bucket(&mut self) { - self.bucket.clear(); - } - - // Param is passed by value, moved - pub fn set_bucket(&mut self, v: ::std::string::String) { - self.bucket = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_bucket(&mut self) -> &mut ::std::string::String { - &mut self.bucket - } - - // Take field - pub fn take_bucket(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.bucket, ::std::string::String::new()) - } - - // string filename_prefix = 2; - - - pub fn get_filename_prefix(&self) -> &str { - &self.filename_prefix - } - pub fn clear_filename_prefix(&mut self) { - self.filename_prefix.clear(); - } - - // Param is passed by value, moved - pub fn set_filename_prefix(&mut self, v: ::std::string::String) { - self.filename_prefix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filename_prefix(&mut self) -> &mut ::std::string::String { - &mut self.filename_prefix - } - - // Take field - pub fn take_filename_prefix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filename_prefix, ::std::string::String::new()) - } - - // string filename_suffix = 3; - - - pub fn get_filename_suffix(&self) -> &str { - &self.filename_suffix - } - pub fn clear_filename_suffix(&mut self) { - self.filename_suffix.clear(); - } - - // Param is passed by value, moved - pub fn set_filename_suffix(&mut self, v: ::std::string::String) { - self.filename_suffix = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filename_suffix(&mut self) -> &mut ::std::string::String { - &mut self.filename_suffix - } - - // Take field - pub fn take_filename_suffix(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filename_suffix, ::std::string::String::new()) - } - - // .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; - - - pub fn get_text_config(&self) -> &CloudStorageConfig_TextConfig { - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_text_config(&mut self) { - self.output_format = ::std::option::Option::None; - } - - pub fn has_text_config(&self) -> bool { - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_text_config(&mut self, v: CloudStorageConfig_TextConfig) { - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(v)) - } - - // Mutable pointer to the field. - pub fn mut_text_config(&mut self) -> &mut CloudStorageConfig_TextConfig { - if let ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(_)) = self.output_format { - } else { - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(CloudStorageConfig_TextConfig::new())); - } - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_text_config(&mut self) -> CloudStorageConfig_TextConfig { - if self.has_text_config() { - match self.output_format.take() { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(v)) => v, - _ => panic!(), - } - } else { - CloudStorageConfig_TextConfig::new() - } - } - - // .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; - - - pub fn get_avro_config(&self) -> &CloudStorageConfig_AvroConfig { - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_avro_config(&mut self) { - self.output_format = ::std::option::Option::None; - } - - pub fn has_avro_config(&self) -> bool { - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_avro_config(&mut self, v: CloudStorageConfig_AvroConfig) { - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(v)) - } - - // Mutable pointer to the field. - pub fn mut_avro_config(&mut self) -> &mut CloudStorageConfig_AvroConfig { - if let ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(_)) = self.output_format { - } else { - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(CloudStorageConfig_AvroConfig::new())); - } - match self.output_format { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_avro_config(&mut self) -> CloudStorageConfig_AvroConfig { - if self.has_avro_config() { - match self.output_format.take() { - ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(v)) => v, - _ => panic!(), - } - } else { - CloudStorageConfig_AvroConfig::new() - } - } - - // .google.protobuf.Duration max_duration = 6; - - - pub fn get_max_duration(&self) -> &::protobuf::well_known_types::Duration { - self.max_duration.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_max_duration(&mut self) { - self.max_duration.clear(); - } - - pub fn has_max_duration(&self) -> bool { - self.max_duration.is_some() - } - - // Param is passed by value, moved - pub fn set_max_duration(&mut self, v: ::protobuf::well_known_types::Duration) { - self.max_duration = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_max_duration(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.max_duration.is_none() { - self.max_duration.set_default(); - } - self.max_duration.as_mut().unwrap() - } - - // Take field - pub fn take_max_duration(&mut self) -> ::protobuf::well_known_types::Duration { - self.max_duration.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) - } - - // int64 max_bytes = 7; - - - pub fn get_max_bytes(&self) -> i64 { - self.max_bytes - } - pub fn clear_max_bytes(&mut self) { - self.max_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_max_bytes(&mut self, v: i64) { - self.max_bytes = v; - } - - // .google.pubsub.v1.CloudStorageConfig.State state = 9; - - - pub fn get_state(&self) -> CloudStorageConfig_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = CloudStorageConfig_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: CloudStorageConfig_State) { - self.state = v; - } -} - -impl ::protobuf::Message for CloudStorageConfig { - fn is_initialized(&self) -> bool { - if let Some(CloudStorageConfig_oneof_output_format::text_config(ref v)) = self.output_format { - if !v.is_initialized() { - return false; - } - } - if let Some(CloudStorageConfig_oneof_output_format::avro_config(ref v)) = self.output_format { - if !v.is_initialized() { - return false; - } - } - for v in &self.max_duration { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.bucket)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filename_prefix)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filename_suffix)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::text_config(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.output_format = ::std::option::Option::Some(CloudStorageConfig_oneof_output_format::avro_config(is.read_message()?)); - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.max_duration)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.max_bytes = tmp; - }, - 9 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 9, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.bucket.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.bucket); - } - if !self.filename_prefix.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filename_prefix); - } - if !self.filename_suffix.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.filename_suffix); - } - if let Some(ref v) = self.max_duration.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.max_bytes != 0 { - my_size += ::protobuf::rt::value_size(7, self.max_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.state != CloudStorageConfig_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(9, self.state); - } - if let ::std::option::Option::Some(ref v) = self.output_format { - match v { - &CloudStorageConfig_oneof_output_format::text_config(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &CloudStorageConfig_oneof_output_format::avro_config(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.bucket.is_empty() { - os.write_string(1, &self.bucket)?; - } - if !self.filename_prefix.is_empty() { - os.write_string(2, &self.filename_prefix)?; - } - if !self.filename_suffix.is_empty() { - os.write_string(3, &self.filename_suffix)?; - } - if let Some(ref v) = self.max_duration.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.max_bytes != 0 { - os.write_int64(7, self.max_bytes)?; - } - if self.state != CloudStorageConfig_State::STATE_UNSPECIFIED { - os.write_enum(9, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let ::std::option::Option::Some(ref v) = self.output_format { - match v { - &CloudStorageConfig_oneof_output_format::text_config(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &CloudStorageConfig_oneof_output_format::avro_config(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CloudStorageConfig { - CloudStorageConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "bucket", - |m: &CloudStorageConfig| { &m.bucket }, - |m: &mut CloudStorageConfig| { &mut m.bucket }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filename_prefix", - |m: &CloudStorageConfig| { &m.filename_prefix }, - |m: &mut CloudStorageConfig| { &mut m.filename_prefix }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filename_suffix", - |m: &CloudStorageConfig| { &m.filename_suffix }, - |m: &mut CloudStorageConfig| { &mut m.filename_suffix }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, CloudStorageConfig_TextConfig>( - "text_config", - CloudStorageConfig::has_text_config, - CloudStorageConfig::get_text_config, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, CloudStorageConfig_AvroConfig>( - "avro_config", - CloudStorageConfig::has_avro_config, - CloudStorageConfig::get_avro_config, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "max_duration", - |m: &CloudStorageConfig| { &m.max_duration }, - |m: &mut CloudStorageConfig| { &mut m.max_duration }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_bytes", - |m: &CloudStorageConfig| { &m.max_bytes }, - |m: &mut CloudStorageConfig| { &mut m.max_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &CloudStorageConfig| { &m.state }, - |m: &mut CloudStorageConfig| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CloudStorageConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CloudStorageConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CloudStorageConfig::new) - } -} - -impl ::protobuf::Clear for CloudStorageConfig { - fn clear(&mut self) { - self.bucket.clear(); - self.filename_prefix.clear(); - self.filename_suffix.clear(); - self.output_format = ::std::option::Option::None; - self.output_format = ::std::option::Option::None; - self.max_duration.clear(); - self.max_bytes = 0; - self.state = CloudStorageConfig_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CloudStorageConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CloudStorageConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CloudStorageConfig_TextConfig { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CloudStorageConfig_TextConfig { - fn default() -> &'a CloudStorageConfig_TextConfig { - ::default_instance() - } -} - -impl CloudStorageConfig_TextConfig { - pub fn new() -> CloudStorageConfig_TextConfig { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for CloudStorageConfig_TextConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CloudStorageConfig_TextConfig { - CloudStorageConfig_TextConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CloudStorageConfig.TextConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CloudStorageConfig_TextConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CloudStorageConfig_TextConfig::new) - } -} - -impl ::protobuf::Clear for CloudStorageConfig_TextConfig { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CloudStorageConfig_TextConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CloudStorageConfig_TextConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CloudStorageConfig_AvroConfig { - // message fields - pub write_metadata: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CloudStorageConfig_AvroConfig { - fn default() -> &'a CloudStorageConfig_AvroConfig { - ::default_instance() - } -} - -impl CloudStorageConfig_AvroConfig { - pub fn new() -> CloudStorageConfig_AvroConfig { - ::std::default::Default::default() - } - - // bool write_metadata = 1; - - - pub fn get_write_metadata(&self) -> bool { - self.write_metadata - } - pub fn clear_write_metadata(&mut self) { - self.write_metadata = false; - } - - // Param is passed by value, moved - pub fn set_write_metadata(&mut self, v: bool) { - self.write_metadata = v; - } -} - -impl ::protobuf::Message for CloudStorageConfig_AvroConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.write_metadata = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.write_metadata != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.write_metadata != false { - os.write_bool(1, self.write_metadata)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CloudStorageConfig_AvroConfig { - CloudStorageConfig_AvroConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "write_metadata", - |m: &CloudStorageConfig_AvroConfig| { &m.write_metadata }, - |m: &mut CloudStorageConfig_AvroConfig| { &mut m.write_metadata }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CloudStorageConfig.AvroConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CloudStorageConfig_AvroConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CloudStorageConfig_AvroConfig::new) - } -} - -impl ::protobuf::Clear for CloudStorageConfig_AvroConfig { - fn clear(&mut self) { - self.write_metadata = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CloudStorageConfig_AvroConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CloudStorageConfig_AvroConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CloudStorageConfig_State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - PERMISSION_DENIED = 2, - NOT_FOUND = 3, -} - -impl ::protobuf::ProtobufEnum for CloudStorageConfig_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CloudStorageConfig_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CloudStorageConfig_State::ACTIVE), - 2 => ::std::option::Option::Some(CloudStorageConfig_State::PERMISSION_DENIED), - 3 => ::std::option::Option::Some(CloudStorageConfig_State::NOT_FOUND), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CloudStorageConfig_State] = &[ - CloudStorageConfig_State::STATE_UNSPECIFIED, - CloudStorageConfig_State::ACTIVE, - CloudStorageConfig_State::PERMISSION_DENIED, - CloudStorageConfig_State::NOT_FOUND, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CloudStorageConfig.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CloudStorageConfig_State { -} - -impl ::std::default::Default for CloudStorageConfig_State { - fn default() -> Self { - CloudStorageConfig_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CloudStorageConfig_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReceivedMessage { - // message fields - pub ack_id: ::std::string::String, - pub message: ::protobuf::SingularPtrField, - pub delivery_attempt: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReceivedMessage { - fn default() -> &'a ReceivedMessage { - ::default_instance() - } -} - -impl ReceivedMessage { - pub fn new() -> ReceivedMessage { - ::std::default::Default::default() - } - - // string ack_id = 1; - - - pub fn get_ack_id(&self) -> &str { - &self.ack_id - } - pub fn clear_ack_id(&mut self) { - self.ack_id.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_id(&mut self, v: ::std::string::String) { - self.ack_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ack_id(&mut self) -> &mut ::std::string::String { - &mut self.ack_id - } - - // Take field - pub fn take_ack_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.ack_id, ::std::string::String::new()) - } - - // .google.pubsub.v1.PubsubMessage message = 2; - - - pub fn get_message(&self) -> &PubsubMessage { - self.message.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - pub fn has_message(&self) -> bool { - self.message.is_some() - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: PubsubMessage) { - self.message = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut PubsubMessage { - if self.message.is_none() { - self.message.set_default(); - } - self.message.as_mut().unwrap() - } - - // Take field - pub fn take_message(&mut self) -> PubsubMessage { - self.message.take().unwrap_or_else(|| PubsubMessage::new()) - } - - // int32 delivery_attempt = 3; - - - pub fn get_delivery_attempt(&self) -> i32 { - self.delivery_attempt - } - pub fn clear_delivery_attempt(&mut self) { - self.delivery_attempt = 0; - } - - // Param is passed by value, moved - pub fn set_delivery_attempt(&mut self, v: i32) { - self.delivery_attempt = v; - } -} - -impl ::protobuf::Message for ReceivedMessage { - fn is_initialized(&self) -> bool { - for v in &self.message { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.delivery_attempt = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.ack_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.ack_id); - } - if let Some(ref v) = self.message.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.delivery_attempt != 0 { - my_size += ::protobuf::rt::value_size(3, self.delivery_attempt, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.ack_id.is_empty() { - os.write_string(1, &self.ack_id)?; - } - if let Some(ref v) = self.message.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.delivery_attempt != 0 { - os.write_int32(3, self.delivery_attempt)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReceivedMessage { - ReceivedMessage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_id", - |m: &ReceivedMessage| { &m.ack_id }, - |m: &mut ReceivedMessage| { &mut m.ack_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "message", - |m: &ReceivedMessage| { &m.message }, - |m: &mut ReceivedMessage| { &mut m.message }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "delivery_attempt", - |m: &ReceivedMessage| { &m.delivery_attempt }, - |m: &mut ReceivedMessage| { &mut m.delivery_attempt }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReceivedMessage", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReceivedMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReceivedMessage::new) - } -} - -impl ::protobuf::Clear for ReceivedMessage { - fn clear(&mut self) { - self.ack_id.clear(); - self.message.clear(); - self.delivery_attempt = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReceivedMessage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReceivedMessage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetSubscriptionRequest { - // message fields - pub subscription: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetSubscriptionRequest { - fn default() -> &'a GetSubscriptionRequest { - ::default_instance() - } -} - -impl GetSubscriptionRequest { - pub fn new() -> GetSubscriptionRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetSubscriptionRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetSubscriptionRequest { - GetSubscriptionRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &GetSubscriptionRequest| { &m.subscription }, - |m: &mut GetSubscriptionRequest| { &mut m.subscription }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSubscriptionRequest::new) - } -} - -impl ::protobuf::Clear for GetSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetSubscriptionRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateSubscriptionRequest { - // message fields - pub subscription: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateSubscriptionRequest { - fn default() -> &'a UpdateSubscriptionRequest { - ::default_instance() - } -} - -impl UpdateSubscriptionRequest { - pub fn new() -> UpdateSubscriptionRequest { - ::std::default::Default::default() - } - - // .google.pubsub.v1.Subscription subscription = 1; - - - pub fn get_subscription(&self) -> &Subscription { - self.subscription.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - pub fn has_subscription(&self) -> bool { - self.subscription.is_some() - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: Subscription) { - self.subscription = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut Subscription { - if self.subscription.is_none() { - self.subscription.set_default(); - } - self.subscription.as_mut().unwrap() - } - - // Take field - pub fn take_subscription(&mut self) -> Subscription { - self.subscription.take().unwrap_or_else(|| Subscription::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateSubscriptionRequest { - fn is_initialized(&self) -> bool { - for v in &self.subscription { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.subscription)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.subscription.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.subscription.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateSubscriptionRequest { - UpdateSubscriptionRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "subscription", - |m: &UpdateSubscriptionRequest| { &m.subscription }, - |m: &mut UpdateSubscriptionRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateSubscriptionRequest| { &m.update_mask }, - |m: &mut UpdateSubscriptionRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateSubscriptionRequest::new) - } -} - -impl ::protobuf::Clear for UpdateSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateSubscriptionRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSubscriptionsRequest { - // message fields - pub project: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSubscriptionsRequest { - fn default() -> &'a ListSubscriptionsRequest { - ::default_instance() - } -} - -impl ListSubscriptionsRequest { - pub fn new() -> ListSubscriptionsRequest { - ::std::default::Default::default() - } - - // string project = 1; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSubscriptionsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.project.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.project); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.project.is_empty() { - os.write_string(1, &self.project)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSubscriptionsRequest { - ListSubscriptionsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListSubscriptionsRequest| { &m.project }, - |m: &mut ListSubscriptionsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSubscriptionsRequest| { &m.page_size }, - |m: &mut ListSubscriptionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSubscriptionsRequest| { &m.page_token }, - |m: &mut ListSubscriptionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSubscriptionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSubscriptionsRequest::new) - } -} - -impl ::protobuf::Clear for ListSubscriptionsRequest { - fn clear(&mut self) { - self.project.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSubscriptionsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSubscriptionsResponse { - // message fields - pub subscriptions: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSubscriptionsResponse { - fn default() -> &'a ListSubscriptionsResponse { - ::default_instance() - } -} - -impl ListSubscriptionsResponse { - pub fn new() -> ListSubscriptionsResponse { - ::std::default::Default::default() - } - - // repeated .google.pubsub.v1.Subscription subscriptions = 1; - - - pub fn get_subscriptions(&self) -> &[Subscription] { - &self.subscriptions - } - pub fn clear_subscriptions(&mut self) { - self.subscriptions.clear(); - } - - // Param is passed by value, moved - pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField) { - self.subscriptions = v; - } - - // Mutable pointer to the field. - pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.subscriptions - } - - // Take field - pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSubscriptionsResponse { - fn is_initialized(&self) -> bool { - for v in &self.subscriptions { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subscriptions)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.subscriptions { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.subscriptions { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSubscriptionsResponse { - ListSubscriptionsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "subscriptions", - |m: &ListSubscriptionsResponse| { &m.subscriptions }, - |m: &mut ListSubscriptionsResponse| { &mut m.subscriptions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSubscriptionsResponse| { &m.next_page_token }, - |m: &mut ListSubscriptionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSubscriptionsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSubscriptionsResponse::new) - } -} - -impl ::protobuf::Clear for ListSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSubscriptionsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteSubscriptionRequest { - // message fields - pub subscription: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteSubscriptionRequest { - fn default() -> &'a DeleteSubscriptionRequest { - ::default_instance() - } -} - -impl DeleteSubscriptionRequest { - pub fn new() -> DeleteSubscriptionRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteSubscriptionRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteSubscriptionRequest { - DeleteSubscriptionRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &DeleteSubscriptionRequest| { &m.subscription }, - |m: &mut DeleteSubscriptionRequest| { &mut m.subscription }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSubscriptionRequest::new) - } -} - -impl ::protobuf::Clear for DeleteSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteSubscriptionRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ModifyPushConfigRequest { - // message fields - pub subscription: ::std::string::String, - pub push_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ModifyPushConfigRequest { - fn default() -> &'a ModifyPushConfigRequest { - ::default_instance() - } -} - -impl ModifyPushConfigRequest { - pub fn new() -> ModifyPushConfigRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // .google.pubsub.v1.PushConfig push_config = 2; - - - pub fn get_push_config(&self) -> &PushConfig { - self.push_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_push_config(&mut self) { - self.push_config.clear(); - } - - pub fn has_push_config(&self) -> bool { - self.push_config.is_some() - } - - // Param is passed by value, moved - pub fn set_push_config(&mut self, v: PushConfig) { - self.push_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_config(&mut self) -> &mut PushConfig { - if self.push_config.is_none() { - self.push_config.set_default(); - } - self.push_config.as_mut().unwrap() - } - - // Take field - pub fn take_push_config(&mut self) -> PushConfig { - self.push_config.take().unwrap_or_else(|| PushConfig::new()) - } -} - -impl ::protobuf::Message for ModifyPushConfigRequest { - fn is_initialized(&self) -> bool { - for v in &self.push_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - if let Some(ref v) = self.push_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - if let Some(ref v) = self.push_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ModifyPushConfigRequest { - ModifyPushConfigRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &ModifyPushConfigRequest| { &m.subscription }, - |m: &mut ModifyPushConfigRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "push_config", - |m: &ModifyPushConfigRequest| { &m.push_config }, - |m: &mut ModifyPushConfigRequest| { &mut m.push_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyPushConfigRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ModifyPushConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyPushConfigRequest::new) - } -} - -impl ::protobuf::Clear for ModifyPushConfigRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.push_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ModifyPushConfigRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ModifyPushConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PullRequest { - // message fields - pub subscription: ::std::string::String, - pub return_immediately: bool, - pub max_messages: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PullRequest { - fn default() -> &'a PullRequest { - ::default_instance() - } -} - -impl PullRequest { - pub fn new() -> PullRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // bool return_immediately = 2; - - - pub fn get_return_immediately(&self) -> bool { - self.return_immediately - } - pub fn clear_return_immediately(&mut self) { - self.return_immediately = false; - } - - // Param is passed by value, moved - pub fn set_return_immediately(&mut self, v: bool) { - self.return_immediately = v; - } - - // int32 max_messages = 3; - - - pub fn get_max_messages(&self) -> i32 { - self.max_messages - } - pub fn clear_max_messages(&mut self) { - self.max_messages = 0; - } - - // Param is passed by value, moved - pub fn set_max_messages(&mut self, v: i32) { - self.max_messages = v; - } -} - -impl ::protobuf::Message for PullRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.return_immediately = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.max_messages = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - if self.return_immediately != false { - my_size += 2; - } - if self.max_messages != 0 { - my_size += ::protobuf::rt::value_size(3, self.max_messages, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - if self.return_immediately != false { - os.write_bool(2, self.return_immediately)?; - } - if self.max_messages != 0 { - os.write_int32(3, self.max_messages)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PullRequest { - PullRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &PullRequest| { &m.subscription }, - |m: &mut PullRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "return_immediately", - |m: &PullRequest| { &m.return_immediately }, - |m: &mut PullRequest| { &mut m.return_immediately }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_messages", - |m: &PullRequest| { &m.max_messages }, - |m: &mut PullRequest| { &mut m.max_messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PullRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PullRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PullRequest::new) - } -} - -impl ::protobuf::Clear for PullRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.return_immediately = false; - self.max_messages = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PullRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PullRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PullResponse { - // message fields - pub received_messages: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PullResponse { - fn default() -> &'a PullResponse { - ::default_instance() - } -} - -impl PullResponse { - pub fn new() -> PullResponse { - ::std::default::Default::default() - } - - // repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; - - - pub fn get_received_messages(&self) -> &[ReceivedMessage] { - &self.received_messages - } - pub fn clear_received_messages(&mut self) { - self.received_messages.clear(); - } - - // Param is passed by value, moved - pub fn set_received_messages(&mut self, v: ::protobuf::RepeatedField) { - self.received_messages = v; - } - - // Mutable pointer to the field. - pub fn mut_received_messages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.received_messages - } - - // Take field - pub fn take_received_messages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.received_messages, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for PullResponse { - fn is_initialized(&self) -> bool { - for v in &self.received_messages { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.received_messages)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.received_messages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.received_messages { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PullResponse { - PullResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "received_messages", - |m: &PullResponse| { &m.received_messages }, - |m: &mut PullResponse| { &mut m.received_messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PullResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PullResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PullResponse::new) - } -} - -impl ::protobuf::Clear for PullResponse { - fn clear(&mut self) { - self.received_messages.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PullResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PullResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ModifyAckDeadlineRequest { - // message fields - pub subscription: ::std::string::String, - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub ack_deadline_seconds: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ModifyAckDeadlineRequest { - fn default() -> &'a ModifyAckDeadlineRequest { - ::default_instance() - } -} - -impl ModifyAckDeadlineRequest { - pub fn new() -> ModifyAckDeadlineRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // repeated string ack_ids = 4; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids - } - - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) - } - - // int32 ack_deadline_seconds = 3; - - - pub fn get_ack_deadline_seconds(&self) -> i32 { - self.ack_deadline_seconds - } - pub fn clear_ack_deadline_seconds(&mut self) { - self.ack_deadline_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_ack_deadline_seconds(&mut self, v: i32) { - self.ack_deadline_seconds = v; - } -} - -impl ::protobuf::Message for ModifyAckDeadlineRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.ack_deadline_seconds = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - for value in &self.ack_ids { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if self.ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(3, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - for v in &self.ack_ids { - os.write_string(4, &v)?; - }; - if self.ack_deadline_seconds != 0 { - os.write_int32(3, self.ack_deadline_seconds)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ModifyAckDeadlineRequest { - ModifyAckDeadlineRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &ModifyAckDeadlineRequest| { &m.subscription }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &ModifyAckDeadlineRequest| { &m.ack_ids }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "ack_deadline_seconds", - |m: &ModifyAckDeadlineRequest| { &m.ack_deadline_seconds }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_deadline_seconds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyAckDeadlineRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ModifyAckDeadlineRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyAckDeadlineRequest::new) - } -} - -impl ::protobuf::Clear for ModifyAckDeadlineRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.ack_ids.clear(); - self.ack_deadline_seconds = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ModifyAckDeadlineRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ModifyAckDeadlineRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AcknowledgeRequest { - // message fields - pub subscription: ::std::string::String, - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AcknowledgeRequest { - fn default() -> &'a AcknowledgeRequest { - ::default_instance() - } -} - -impl AcknowledgeRequest { - pub fn new() -> AcknowledgeRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // repeated string ack_ids = 2; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids - } - - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for AcknowledgeRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - for value in &self.ack_ids { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - for v in &self.ack_ids { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AcknowledgeRequest { - AcknowledgeRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &AcknowledgeRequest| { &m.subscription }, - |m: &mut AcknowledgeRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &AcknowledgeRequest| { &m.ack_ids }, - |m: &mut AcknowledgeRequest| { &mut m.ack_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AcknowledgeRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AcknowledgeRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AcknowledgeRequest::new) - } -} - -impl ::protobuf::Clear for AcknowledgeRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.ack_ids.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AcknowledgeRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AcknowledgeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullRequest { - // message fields - pub subscription: ::std::string::String, - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub modify_deadline_seconds: ::std::vec::Vec, - pub modify_deadline_ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub stream_ack_deadline_seconds: i32, - pub client_id: ::std::string::String, - pub max_outstanding_messages: i64, - pub max_outstanding_bytes: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StreamingPullRequest { - fn default() -> &'a StreamingPullRequest { - ::default_instance() - } -} - -impl StreamingPullRequest { - pub fn new() -> StreamingPullRequest { - ::std::default::Default::default() - } - - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // repeated string ack_ids = 2; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids - } - - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) - } - - // repeated int32 modify_deadline_seconds = 3; - - - pub fn get_modify_deadline_seconds(&self) -> &[i32] { - &self.modify_deadline_seconds - } - pub fn clear_modify_deadline_seconds(&mut self) { - self.modify_deadline_seconds.clear(); - } - - // Param is passed by value, moved - pub fn set_modify_deadline_seconds(&mut self, v: ::std::vec::Vec) { - self.modify_deadline_seconds = v; - } - - // Mutable pointer to the field. - pub fn mut_modify_deadline_seconds(&mut self) -> &mut ::std::vec::Vec { - &mut self.modify_deadline_seconds - } - - // Take field - pub fn take_modify_deadline_seconds(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.modify_deadline_seconds, ::std::vec::Vec::new()) - } - - // repeated string modify_deadline_ack_ids = 4; - - - pub fn get_modify_deadline_ack_ids(&self) -> &[::std::string::String] { - &self.modify_deadline_ack_ids - } - pub fn clear_modify_deadline_ack_ids(&mut self) { - self.modify_deadline_ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_modify_deadline_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.modify_deadline_ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_modify_deadline_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.modify_deadline_ack_ids - } - - // Take field - pub fn take_modify_deadline_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.modify_deadline_ack_ids, ::protobuf::RepeatedField::new()) - } - - // int32 stream_ack_deadline_seconds = 5; - - - pub fn get_stream_ack_deadline_seconds(&self) -> i32 { - self.stream_ack_deadline_seconds - } - pub fn clear_stream_ack_deadline_seconds(&mut self) { - self.stream_ack_deadline_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_stream_ack_deadline_seconds(&mut self, v: i32) { - self.stream_ack_deadline_seconds = v; - } - - // string client_id = 6; - - - pub fn get_client_id(&self) -> &str { - &self.client_id - } - pub fn clear_client_id(&mut self) { - self.client_id.clear(); - } - - // Param is passed by value, moved - pub fn set_client_id(&mut self, v: ::std::string::String) { - self.client_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_client_id(&mut self) -> &mut ::std::string::String { - &mut self.client_id - } - - // Take field - pub fn take_client_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.client_id, ::std::string::String::new()) - } - - // int64 max_outstanding_messages = 7; - - - pub fn get_max_outstanding_messages(&self) -> i64 { - self.max_outstanding_messages - } - pub fn clear_max_outstanding_messages(&mut self) { - self.max_outstanding_messages = 0; - } - - // Param is passed by value, moved - pub fn set_max_outstanding_messages(&mut self, v: i64) { - self.max_outstanding_messages = v; - } - - // int64 max_outstanding_bytes = 8; - - - pub fn get_max_outstanding_bytes(&self) -> i64 { - self.max_outstanding_bytes - } - pub fn clear_max_outstanding_bytes(&mut self) { - self.max_outstanding_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_max_outstanding_bytes(&mut self, v: i64) { - self.max_outstanding_bytes = v; - } -} - -impl ::protobuf::Message for StreamingPullRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; - }, - 3 => { - ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.modify_deadline_seconds)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.modify_deadline_ack_ids)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.stream_ack_deadline_seconds = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.client_id)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.max_outstanding_messages = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.max_outstanding_bytes = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subscription.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subscription); - } - for value in &self.ack_ids { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.modify_deadline_seconds { - my_size += ::protobuf::rt::value_size(3, *value, ::protobuf::wire_format::WireTypeVarint); - }; - for value in &self.modify_deadline_ack_ids { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if self.stream_ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(5, self.stream_ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint); - } - if !self.client_id.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.client_id); - } - if self.max_outstanding_messages != 0 { - my_size += ::protobuf::rt::value_size(7, self.max_outstanding_messages, ::protobuf::wire_format::WireTypeVarint); - } - if self.max_outstanding_bytes != 0 { - my_size += ::protobuf::rt::value_size(8, self.max_outstanding_bytes, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subscription.is_empty() { - os.write_string(1, &self.subscription)?; - } - for v in &self.ack_ids { - os.write_string(2, &v)?; - }; - for v in &self.modify_deadline_seconds { - os.write_int32(3, *v)?; - }; - for v in &self.modify_deadline_ack_ids { - os.write_string(4, &v)?; - }; - if self.stream_ack_deadline_seconds != 0 { - os.write_int32(5, self.stream_ack_deadline_seconds)?; - } - if !self.client_id.is_empty() { - os.write_string(6, &self.client_id)?; - } - if self.max_outstanding_messages != 0 { - os.write_int64(7, self.max_outstanding_messages)?; - } - if self.max_outstanding_bytes != 0 { - os.write_int64(8, self.max_outstanding_bytes)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StreamingPullRequest { - StreamingPullRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &StreamingPullRequest| { &m.subscription }, - |m: &mut StreamingPullRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &StreamingPullRequest| { &m.ack_ids }, - |m: &mut StreamingPullRequest| { &mut m.ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "modify_deadline_seconds", - |m: &StreamingPullRequest| { &m.modify_deadline_seconds }, - |m: &mut StreamingPullRequest| { &mut m.modify_deadline_seconds }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "modify_deadline_ack_ids", - |m: &StreamingPullRequest| { &m.modify_deadline_ack_ids }, - |m: &mut StreamingPullRequest| { &mut m.modify_deadline_ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "stream_ack_deadline_seconds", - |m: &StreamingPullRequest| { &m.stream_ack_deadline_seconds }, - |m: &mut StreamingPullRequest| { &mut m.stream_ack_deadline_seconds }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "client_id", - |m: &StreamingPullRequest| { &m.client_id }, - |m: &mut StreamingPullRequest| { &mut m.client_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_outstanding_messages", - |m: &StreamingPullRequest| { &m.max_outstanding_messages }, - |m: &mut StreamingPullRequest| { &mut m.max_outstanding_messages }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_outstanding_bytes", - |m: &StreamingPullRequest| { &m.max_outstanding_bytes }, - |m: &mut StreamingPullRequest| { &mut m.max_outstanding_bytes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StreamingPullRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullRequest::new) - } -} - -impl ::protobuf::Clear for StreamingPullRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.ack_ids.clear(); - self.modify_deadline_seconds.clear(); - self.modify_deadline_ack_ids.clear(); - self.stream_ack_deadline_seconds = 0; - self.client_id.clear(); - self.max_outstanding_messages = 0; - self.max_outstanding_bytes = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StreamingPullRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StreamingPullRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for DeleteSubscriptionRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullResponse { +/// Request for the ModifyPushConfig method. +// @@protoc_insertion_point(message:google.pubsub.v1.ModifyPushConfigRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ModifyPushConfigRequest { // message fields - pub received_messages: ::protobuf::RepeatedField, - pub acknowledge_confirmation: ::protobuf::SingularPtrField, - pub modify_ack_deadline_confirmation: ::protobuf::SingularPtrField, - pub subscription_properties: ::protobuf::SingularPtrField, + /// The name of the subscription. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ModifyPushConfigRequest.subscription) + pub subscription: ::std::string::String, + /// The push configuration for future deliveries. + /// + /// An empty `pushConfig` indicates that the Pub/Sub system should + /// stop pushing messages from the given subscription and allow + /// messages to be pulled and acknowledged - effectively pausing + /// the subscription if `Pull` or `StreamingPull` is not called. + // @@protoc_insertion_point(field:google.pubsub.v1.ModifyPushConfigRequest.push_config) + pub push_config: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ModifyPushConfigRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a StreamingPullResponse { - fn default() -> &'a StreamingPullResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a ModifyPushConfigRequest { + fn default() -> &'a ModifyPushConfigRequest { + ::default_instance() } } -impl StreamingPullResponse { - pub fn new() -> StreamingPullResponse { +impl ModifyPushConfigRequest { + pub fn new() -> ModifyPushConfigRequest { ::std::default::Default::default() } - // repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; - - - pub fn get_received_messages(&self) -> &[ReceivedMessage] { - &self.received_messages - } - pub fn clear_received_messages(&mut self) { - self.received_messages.clear(); - } - - // Param is passed by value, moved - pub fn set_received_messages(&mut self, v: ::protobuf::RepeatedField) { - self.received_messages = v; - } - - // Mutable pointer to the field. - pub fn mut_received_messages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.received_messages - } - - // Take field - pub fn take_received_messages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.received_messages, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &ModifyPushConfigRequest| { &m.subscription }, + |m: &mut ModifyPushConfigRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PushConfig>( + "push_config", + |m: &ModifyPushConfigRequest| { &m.push_config }, + |m: &mut ModifyPushConfigRequest| { &mut m.push_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyPushConfigRequest", + fields, + oneofs, + ) } +} - // .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; - +impl ::protobuf::Message for ModifyPushConfigRequest { + const NAME: &'static str = "ModifyPushConfigRequest"; - pub fn get_acknowledge_confirmation(&self) -> &StreamingPullResponse_AcknowledgeConfirmation { - self.acknowledge_confirmation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_acknowledge_confirmation(&mut self) { - self.acknowledge_confirmation.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_acknowledge_confirmation(&self) -> bool { - self.acknowledge_confirmation.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.push_config)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_acknowledge_confirmation(&mut self, v: StreamingPullResponse_AcknowledgeConfirmation) { - self.acknowledge_confirmation = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); + } + if let Some(v) = self.push_config.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_acknowledge_confirmation(&mut self) -> &mut StreamingPullResponse_AcknowledgeConfirmation { - if self.acknowledge_confirmation.is_none() { - self.acknowledge_confirmation.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; + } + if let Some(v) = self.push_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - self.acknowledge_confirmation.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_acknowledge_confirmation(&mut self) -> StreamingPullResponse_AcknowledgeConfirmation { - self.acknowledge_confirmation.take().unwrap_or_else(|| StreamingPullResponse_AcknowledgeConfirmation::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; - - - pub fn get_modify_ack_deadline_confirmation(&self) -> &StreamingPullResponse_ModifyAckDeadlineConfirmation { - self.modify_ack_deadline_confirmation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_modify_ack_deadline_confirmation(&mut self) { - self.modify_ack_deadline_confirmation.clear(); + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn has_modify_ack_deadline_confirmation(&self) -> bool { - self.modify_ack_deadline_confirmation.is_some() + fn new() -> ModifyPushConfigRequest { + ModifyPushConfigRequest::new() } - // Param is passed by value, moved - pub fn set_modify_ack_deadline_confirmation(&mut self, v: StreamingPullResponse_ModifyAckDeadlineConfirmation) { - self.modify_ack_deadline_confirmation = ::protobuf::SingularPtrField::some(v); + fn clear(&mut self) { + self.subscription.clear(); + self.push_config.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_modify_ack_deadline_confirmation(&mut self) -> &mut StreamingPullResponse_ModifyAckDeadlineConfirmation { - if self.modify_ack_deadline_confirmation.is_none() { - self.modify_ack_deadline_confirmation.set_default(); - } - self.modify_ack_deadline_confirmation.as_mut().unwrap() + fn default_instance() -> &'static ModifyPushConfigRequest { + static instance: ModifyPushConfigRequest = ModifyPushConfigRequest { + subscription: ::std::string::String::new(), + push_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_modify_ack_deadline_confirmation(&mut self) -> StreamingPullResponse_ModifyAckDeadlineConfirmation { - self.modify_ack_deadline_confirmation.take().unwrap_or_else(|| StreamingPullResponse_ModifyAckDeadlineConfirmation::new()) +impl ::protobuf::MessageFull for ModifyPushConfigRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ModifyPushConfigRequest").unwrap()).clone() } +} - // .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; - - - pub fn get_subscription_properties(&self) -> &StreamingPullResponse_SubscriptionProperties { - self.subscription_properties.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_subscription_properties(&mut self) { - self.subscription_properties.clear(); +impl ::std::fmt::Display for ModifyPushConfigRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - pub fn has_subscription_properties(&self) -> bool { - self.subscription_properties.is_some() - } +impl ::protobuf::reflect::ProtobufValue for ModifyPushConfigRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Param is passed by value, moved - pub fn set_subscription_properties(&mut self, v: StreamingPullResponse_SubscriptionProperties) { - self.subscription_properties = ::protobuf::SingularPtrField::some(v); +/// Request for the `Pull` method. +// @@protoc_insertion_point(message:google.pubsub.v1.PullRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PullRequest { + // message fields + /// The subscription from which messages should be pulled. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.PullRequest.subscription) + pub subscription: ::std::string::String, + /// If this field set to true, the system will respond immediately even if + /// it there are no messages available to return in the `Pull` response. + /// Otherwise, the system may wait (for a bounded amount of time) until at + /// least one message is available, rather than returning no messages. + // @@protoc_insertion_point(field:google.pubsub.v1.PullRequest.return_immediately) + pub return_immediately: bool, + /// The maximum number of messages to return for this request. Must be a + /// positive integer. The Pub/Sub system may return fewer than the number + /// specified. + // @@protoc_insertion_point(field:google.pubsub.v1.PullRequest.max_messages) + pub max_messages: i32, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.PullRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a PullRequest { + fn default() -> &'a PullRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription_properties(&mut self) -> &mut StreamingPullResponse_SubscriptionProperties { - if self.subscription_properties.is_none() { - self.subscription_properties.set_default(); - } - self.subscription_properties.as_mut().unwrap() +impl PullRequest { + pub fn new() -> PullRequest { + ::std::default::Default::default() } - // Take field - pub fn take_subscription_properties(&mut self) -> StreamingPullResponse_SubscriptionProperties { - self.subscription_properties.take().unwrap_or_else(|| StreamingPullResponse_SubscriptionProperties::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &PullRequest| { &m.subscription }, + |m: &mut PullRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "return_immediately", + |m: &PullRequest| { &m.return_immediately }, + |m: &mut PullRequest| { &mut m.return_immediately }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "max_messages", + |m: &PullRequest| { &m.max_messages }, + |m: &mut PullRequest| { &mut m.max_messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PullRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for StreamingPullResponse { +impl ::protobuf::Message for PullRequest { + const NAME: &'static str = "PullRequest"; + fn is_initialized(&self) -> bool { - for v in &self.received_messages { - if !v.is_initialized() { - return false; - } - }; - for v in &self.acknowledge_confirmation { - if !v.is_initialized() { - return false; - } - }; - for v in &self.modify_ack_deadline_confirmation { - if !v.is_initialized() { - return false; - } - }; - for v in &self.subscription_properties { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.received_messages)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.acknowledge_confirmation)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.modify_ack_deadline_confirmation)?; + 16 => { + self.return_immediately = is.read_bool()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.subscription_properties)?; + 24 => { + self.max_messages = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -10384,291 +4428,296 @@ impl ::protobuf::Message for StreamingPullResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.received_messages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.acknowledge_confirmation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); } - if let Some(ref v) = self.modify_ack_deadline_confirmation.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.return_immediately != false { + my_size += 1 + 1; } - if let Some(ref v) = self.subscription_properties.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.max_messages != 0 { + my_size += ::protobuf::rt::int32_size(3, self.max_messages); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.received_messages { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.acknowledge_confirmation.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.modify_ack_deadline_confirmation.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.subscription_properties.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; + } + if self.return_immediately != false { + os.write_bool(2, self.return_immediately)?; + } + if self.max_messages != 0 { + os.write_int32(3, self.max_messages)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> StreamingPullResponse { - StreamingPullResponse::new() + fn new() -> PullRequest { + PullRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "received_messages", - |m: &StreamingPullResponse| { &m.received_messages }, - |m: &mut StreamingPullResponse| { &mut m.received_messages }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "acknowledge_confirmation", - |m: &StreamingPullResponse| { &m.acknowledge_confirmation }, - |m: &mut StreamingPullResponse| { &mut m.acknowledge_confirmation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "modify_ack_deadline_confirmation", - |m: &StreamingPullResponse| { &m.modify_ack_deadline_confirmation }, - |m: &mut StreamingPullResponse| { &mut m.modify_ack_deadline_confirmation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "subscription_properties", - |m: &StreamingPullResponse| { &m.subscription_properties }, - |m: &mut StreamingPullResponse| { &mut m.subscription_properties }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.return_immediately = false; + self.max_messages = 0; + self.special_fields.clear(); } - fn default_instance() -> &'static StreamingPullResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullResponse::new) + fn default_instance() -> &'static PullRequest { + static instance: PullRequest = PullRequest { + subscription: ::std::string::String::new(), + return_immediately: false, + max_messages: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for StreamingPullResponse { - fn clear(&mut self) { - self.received_messages.clear(); - self.acknowledge_confirmation.clear(); - self.modify_ack_deadline_confirmation.clear(); - self.subscription_properties.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PullRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PullRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for StreamingPullResponse { +impl ::std::fmt::Display for PullRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for PullRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullResponse_AcknowledgeConfirmation { +/// Response for the `Pull` method. +// @@protoc_insertion_point(message:google.pubsub.v1.PullResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PullResponse { // message fields - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub invalid_ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub unordered_ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub temporary_failed_ack_ids: ::protobuf::RepeatedField<::std::string::String>, + /// Received Pub/Sub messages. The list will be empty if there are no more + /// messages available in the backlog. For JSON, the response can be entirely + /// empty. The Pub/Sub system may return fewer than the `maxMessages` requested + /// even if there are more messages available in the backlog. + // @@protoc_insertion_point(field:google.pubsub.v1.PullResponse.received_messages) + pub received_messages: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.PullResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a StreamingPullResponse_AcknowledgeConfirmation { - fn default() -> &'a StreamingPullResponse_AcknowledgeConfirmation { - ::default_instance() +impl<'a> ::std::default::Default for &'a PullResponse { + fn default() -> &'a PullResponse { + ::default_instance() } } -impl StreamingPullResponse_AcknowledgeConfirmation { - pub fn new() -> StreamingPullResponse_AcknowledgeConfirmation { +impl PullResponse { + pub fn new() -> PullResponse { ::std::default::Default::default() } - // repeated string ack_ids = 1; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "received_messages", + |m: &PullResponse| { &m.received_messages }, + |m: &mut PullResponse| { &mut m.received_messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PullResponse", + fields, + oneofs, + ) } +} - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } +impl ::protobuf::Message for PullResponse { + const NAME: &'static str = "PullResponse"; - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.received_messages.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // repeated string invalid_ack_ids = 2; - - - pub fn get_invalid_ack_ids(&self) -> &[::std::string::String] { - &self.invalid_ack_ids - } - pub fn clear_invalid_ack_ids(&mut self) { - self.invalid_ack_ids.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.received_messages { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_invalid_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.invalid_ack_ids = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.received_messages { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - pub fn mut_invalid_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.invalid_ack_ids + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_invalid_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.invalid_ack_ids, ::protobuf::RepeatedField::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // repeated string unordered_ack_ids = 3; - - - pub fn get_unordered_ack_ids(&self) -> &[::std::string::String] { - &self.unordered_ack_ids - } - pub fn clear_unordered_ack_ids(&mut self) { - self.unordered_ack_ids.clear(); + fn new() -> PullResponse { + PullResponse::new() } - // Param is passed by value, moved - pub fn set_unordered_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.unordered_ack_ids = v; + fn clear(&mut self) { + self.received_messages.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - pub fn mut_unordered_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.unordered_ack_ids + fn default_instance() -> &'static PullResponse { + static instance: PullResponse = PullResponse { + received_messages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_unordered_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.unordered_ack_ids, ::protobuf::RepeatedField::new()) +impl ::protobuf::MessageFull for PullResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PullResponse").unwrap()).clone() } +} - // repeated string temporary_failed_ack_ids = 4; +impl ::std::fmt::Display for PullResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} +impl ::protobuf::reflect::ProtobufValue for PullResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_temporary_failed_ack_ids(&self) -> &[::std::string::String] { - &self.temporary_failed_ack_ids - } - pub fn clear_temporary_failed_ack_ids(&mut self) { - self.temporary_failed_ack_ids.clear(); - } +/// Request for the ModifyAckDeadline method. +// @@protoc_insertion_point(message:google.pubsub.v1.ModifyAckDeadlineRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ModifyAckDeadlineRequest { + // message fields + /// The name of the subscription. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ModifyAckDeadlineRequest.subscription) + pub subscription: ::std::string::String, + /// List of acknowledgment IDs. + // @@protoc_insertion_point(field:google.pubsub.v1.ModifyAckDeadlineRequest.ack_ids) + pub ack_ids: ::std::vec::Vec<::std::string::String>, + /// The new ack deadline with respect to the time this request was sent to + /// the Pub/Sub system. For example, if the value is 10, the new + /// ack deadline will expire 10 seconds after the `ModifyAckDeadline` call + /// was made. Specifying zero might immediately make the message available for + /// delivery to another subscriber client. This typically results in an + /// increase in the rate of message redeliveries (that is, duplicates). + /// The minimum deadline you can specify is 0 seconds. + /// The maximum deadline you can specify is 600 seconds (10 minutes). + // @@protoc_insertion_point(field:google.pubsub.v1.ModifyAckDeadlineRequest.ack_deadline_seconds) + pub ack_deadline_seconds: i32, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.ModifyAckDeadlineRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_temporary_failed_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.temporary_failed_ack_ids = v; +impl<'a> ::std::default::Default for &'a ModifyAckDeadlineRequest { + fn default() -> &'a ModifyAckDeadlineRequest { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_temporary_failed_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.temporary_failed_ack_ids +impl ModifyAckDeadlineRequest { + pub fn new() -> ModifyAckDeadlineRequest { + ::std::default::Default::default() } - // Take field - pub fn take_temporary_failed_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.temporary_failed_ack_ids, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &ModifyAckDeadlineRequest| { &m.subscription }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ack_ids", + |m: &ModifyAckDeadlineRequest| { &m.ack_ids }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_ids }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_deadline_seconds", + |m: &ModifyAckDeadlineRequest| { &m.ack_deadline_seconds }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_deadline_seconds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyAckDeadlineRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for StreamingPullResponse_AcknowledgeConfirmation { +impl ::protobuf::Message for ModifyAckDeadlineRequest { + const NAME: &'static str = "ModifyAckDeadlineRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.invalid_ack_ids)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.unordered_ack_ids)?; + 34 => { + self.ack_ids.push(is.read_string()?); }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.temporary_failed_ack_ids)?; + 24 => { + self.ack_deadline_seconds = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -10677,250 +4726,151 @@ impl ::protobuf::Message for StreamingPullResponse_AcknowledgeConfirmation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); + } for value in &self.ack_ids { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.invalid_ack_ids { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.unordered_ack_ids { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.temporary_failed_ack_ids { my_size += ::protobuf::rt::string_size(4, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if self.ack_deadline_seconds != 0 { + my_size += ::protobuf::rt::int32_size(3, self.ack_deadline_seconds); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; + } for v in &self.ack_ids { - os.write_string(1, &v)?; - }; - for v in &self.invalid_ack_ids { - os.write_string(2, &v)?; - }; - for v in &self.unordered_ack_ids { - os.write_string(3, &v)?; - }; - for v in &self.temporary_failed_ack_ids { os.write_string(4, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + if self.ack_deadline_seconds != 0 { + os.write_int32(3, self.ack_deadline_seconds)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> StreamingPullResponse_AcknowledgeConfirmation { - StreamingPullResponse_AcknowledgeConfirmation::new() + fn new() -> ModifyAckDeadlineRequest { + ModifyAckDeadlineRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &StreamingPullResponse_AcknowledgeConfirmation| { &m.ack_ids }, - |m: &mut StreamingPullResponse_AcknowledgeConfirmation| { &mut m.ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "invalid_ack_ids", - |m: &StreamingPullResponse_AcknowledgeConfirmation| { &m.invalid_ack_ids }, - |m: &mut StreamingPullResponse_AcknowledgeConfirmation| { &mut m.invalid_ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "unordered_ack_ids", - |m: &StreamingPullResponse_AcknowledgeConfirmation| { &m.unordered_ack_ids }, - |m: &mut StreamingPullResponse_AcknowledgeConfirmation| { &mut m.unordered_ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "temporary_failed_ack_ids", - |m: &StreamingPullResponse_AcknowledgeConfirmation| { &m.temporary_failed_ack_ids }, - |m: &mut StreamingPullResponse_AcknowledgeConfirmation| { &mut m.temporary_failed_ack_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullResponse.AcknowledgeConfirmation", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.ack_ids.clear(); + self.ack_deadline_seconds = 0; + self.special_fields.clear(); } - fn default_instance() -> &'static StreamingPullResponse_AcknowledgeConfirmation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullResponse_AcknowledgeConfirmation::new) + fn default_instance() -> &'static ModifyAckDeadlineRequest { + static instance: ModifyAckDeadlineRequest = ModifyAckDeadlineRequest { + subscription: ::std::string::String::new(), + ack_ids: ::std::vec::Vec::new(), + ack_deadline_seconds: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for StreamingPullResponse_AcknowledgeConfirmation { - fn clear(&mut self) { - self.ack_ids.clear(); - self.invalid_ack_ids.clear(); - self.unordered_ack_ids.clear(); - self.temporary_failed_ack_ids.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ModifyAckDeadlineRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ModifyAckDeadlineRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for StreamingPullResponse_AcknowledgeConfirmation { +impl ::std::fmt::Display for ModifyAckDeadlineRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse_AcknowledgeConfirmation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ModifyAckDeadlineRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullResponse_ModifyAckDeadlineConfirmation { +/// Request for the Acknowledge method. +// @@protoc_insertion_point(message:google.pubsub.v1.AcknowledgeRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct AcknowledgeRequest { // message fields - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub invalid_ack_ids: ::protobuf::RepeatedField<::std::string::String>, - pub temporary_failed_ack_ids: ::protobuf::RepeatedField<::std::string::String>, + /// The subscription whose message is being acknowledged. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.AcknowledgeRequest.subscription) + pub subscription: ::std::string::String, + /// The acknowledgment ID for the messages being acknowledged that was returned + /// by the Pub/Sub system in the `Pull` response. Must not be empty. + // @@protoc_insertion_point(field:google.pubsub.v1.AcknowledgeRequest.ack_ids) + pub ack_ids: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.AcknowledgeRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a StreamingPullResponse_ModifyAckDeadlineConfirmation { - fn default() -> &'a StreamingPullResponse_ModifyAckDeadlineConfirmation { - ::default_instance() +impl<'a> ::std::default::Default for &'a AcknowledgeRequest { + fn default() -> &'a AcknowledgeRequest { + ::default_instance() } } -impl StreamingPullResponse_ModifyAckDeadlineConfirmation { - pub fn new() -> StreamingPullResponse_ModifyAckDeadlineConfirmation { +impl AcknowledgeRequest { + pub fn new() -> AcknowledgeRequest { ::std::default::Default::default() } - // repeated string ack_ids = 1; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids - } - - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) - } - - // repeated string invalid_ack_ids = 2; - - - pub fn get_invalid_ack_ids(&self) -> &[::std::string::String] { - &self.invalid_ack_ids - } - pub fn clear_invalid_ack_ids(&mut self) { - self.invalid_ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_invalid_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.invalid_ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_invalid_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.invalid_ack_ids - } - - // Take field - pub fn take_invalid_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.invalid_ack_ids, ::protobuf::RepeatedField::new()) - } - - // repeated string temporary_failed_ack_ids = 3; - - - pub fn get_temporary_failed_ack_ids(&self) -> &[::std::string::String] { - &self.temporary_failed_ack_ids - } - pub fn clear_temporary_failed_ack_ids(&mut self) { - self.temporary_failed_ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_temporary_failed_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.temporary_failed_ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_temporary_failed_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.temporary_failed_ack_ids - } - - // Take field - pub fn take_temporary_failed_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.temporary_failed_ack_ids, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &AcknowledgeRequest| { &m.subscription }, + |m: &mut AcknowledgeRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ack_ids", + |m: &AcknowledgeRequest| { &m.ack_ids }, + |m: &mut AcknowledgeRequest| { &mut m.ack_ids }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AcknowledgeRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for StreamingPullResponse_ModifyAckDeadlineConfirmation { +impl ::protobuf::Message for AcknowledgeRequest { + const NAME: &'static str = "AcknowledgeRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.invalid_ack_ids)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.temporary_failed_ack_ids)?; + 18 => { + self.ack_ids.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -10929,197 +4879,203 @@ impl ::protobuf::Message for StreamingPullResponse_ModifyAckDeadlineConfirmation // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); + } for value in &self.ack_ids { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.invalid_ack_ids { my_size += ::protobuf::rt::string_size(2, &value); }; - for value in &self.temporary_failed_ack_ids { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; + } for v in &self.ack_ids { - os.write_string(1, &v)?; - }; - for v in &self.invalid_ack_ids { os.write_string(2, &v)?; }; - for v in &self.temporary_failed_ack_ids { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> StreamingPullResponse_ModifyAckDeadlineConfirmation { - StreamingPullResponse_ModifyAckDeadlineConfirmation::new() + fn new() -> AcknowledgeRequest { + AcknowledgeRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &StreamingPullResponse_ModifyAckDeadlineConfirmation| { &m.ack_ids }, - |m: &mut StreamingPullResponse_ModifyAckDeadlineConfirmation| { &mut m.ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "invalid_ack_ids", - |m: &StreamingPullResponse_ModifyAckDeadlineConfirmation| { &m.invalid_ack_ids }, - |m: &mut StreamingPullResponse_ModifyAckDeadlineConfirmation| { &mut m.invalid_ack_ids }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "temporary_failed_ack_ids", - |m: &StreamingPullResponse_ModifyAckDeadlineConfirmation| { &m.temporary_failed_ack_ids }, - |m: &mut StreamingPullResponse_ModifyAckDeadlineConfirmation| { &mut m.temporary_failed_ack_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullResponse.ModifyAckDeadlineConfirmation", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.ack_ids.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static StreamingPullResponse_ModifyAckDeadlineConfirmation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullResponse_ModifyAckDeadlineConfirmation::new) + fn default_instance() -> &'static AcknowledgeRequest { + static instance: AcknowledgeRequest = AcknowledgeRequest { + subscription: ::std::string::String::new(), + ack_ids: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for StreamingPullResponse_ModifyAckDeadlineConfirmation { - fn clear(&mut self) { - self.ack_ids.clear(); - self.invalid_ack_ids.clear(); - self.temporary_failed_ack_ids.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AcknowledgeRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AcknowledgeRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for StreamingPullResponse_ModifyAckDeadlineConfirmation { +impl ::std::fmt::Display for AcknowledgeRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse_ModifyAckDeadlineConfirmation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for AcknowledgeRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct StreamingPullResponse_SubscriptionProperties { +/// Request for the `StreamingPull` streaming RPC method. This request is used to +/// establish the initial stream as well as to stream acknowledgements and ack +/// deadline modifications from the client to the server. +// @@protoc_insertion_point(message:google.pubsub.v1.StreamingPullRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct StreamingPullRequest { // message fields - pub exactly_once_delivery_enabled: bool, - pub message_ordering_enabled: bool, + /// The subscription for which to initialize the new stream. This must be + /// provided in the first request on the stream, and must not be set in + /// subsequent requests from client to server. + /// Format is `projects/{project}/subscriptions/{sub}`. + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullRequest.subscription) + pub subscription: ::std::string::String, + /// List of acknowledgement IDs for acknowledging previously received messages + /// (received on this stream or a different stream). If an ack ID has expired, + /// the corresponding message may be redelivered later. Acknowledging a message + /// more than once will not result in an error. If the acknowledgement ID is + /// malformed, the stream will be aborted with status `INVALID_ARGUMENT`. + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullRequest.ack_ids) + pub ack_ids: ::std::vec::Vec<::std::string::String>, + /// The list of new ack deadlines for the IDs listed in + /// `modify_deadline_ack_ids`. The size of this list must be the same as the + /// size of `modify_deadline_ack_ids`. If it differs the stream will be aborted + /// with `INVALID_ARGUMENT`. Each element in this list is applied to the + /// element in the same position in `modify_deadline_ack_ids`. The new ack + /// deadline is with respect to the time this request was sent to the Pub/Sub + /// system. Must be >= 0. For example, if the value is 10, the new ack deadline + /// will expire 10 seconds after this request is received. If the value is 0, + /// the message is immediately made available for another streaming or + /// non-streaming pull request. If the value is < 0 (an error), the stream will + /// be aborted with status `INVALID_ARGUMENT`. + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullRequest.modify_deadline_seconds) + pub modify_deadline_seconds: ::std::vec::Vec, + /// List of acknowledgement IDs whose deadline will be modified based on the + /// corresponding element in `modify_deadline_seconds`. This field can be used + /// to indicate that more time is needed to process a message by the + /// subscriber, or to make the message available for redelivery if the + /// processing was interrupted. + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullRequest.modify_deadline_ack_ids) + pub modify_deadline_ack_ids: ::std::vec::Vec<::std::string::String>, + /// The ack deadline to use for the stream. This must be provided in the + /// first request on the stream, but it can also be updated on subsequent + /// requests from client to server. The minimum deadline you can specify is 10 + /// seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullRequest.stream_ack_deadline_seconds) + pub stream_ack_deadline_seconds: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.StreamingPullRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a StreamingPullResponse_SubscriptionProperties { - fn default() -> &'a StreamingPullResponse_SubscriptionProperties { - ::default_instance() +impl<'a> ::std::default::Default for &'a StreamingPullRequest { + fn default() -> &'a StreamingPullRequest { + ::default_instance() } } -impl StreamingPullResponse_SubscriptionProperties { - pub fn new() -> StreamingPullResponse_SubscriptionProperties { +impl StreamingPullRequest { + pub fn new() -> StreamingPullRequest { ::std::default::Default::default() } - // bool exactly_once_delivery_enabled = 1; - - - pub fn get_exactly_once_delivery_enabled(&self) -> bool { - self.exactly_once_delivery_enabled - } - pub fn clear_exactly_once_delivery_enabled(&mut self) { - self.exactly_once_delivery_enabled = false; - } - - // Param is passed by value, moved - pub fn set_exactly_once_delivery_enabled(&mut self, v: bool) { - self.exactly_once_delivery_enabled = v; - } - - // bool message_ordering_enabled = 2; - - - pub fn get_message_ordering_enabled(&self) -> bool { - self.message_ordering_enabled - } - pub fn clear_message_ordering_enabled(&mut self) { - self.message_ordering_enabled = false; - } - - // Param is passed by value, moved - pub fn set_message_ordering_enabled(&mut self, v: bool) { - self.message_ordering_enabled = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &StreamingPullRequest| { &m.subscription }, + |m: &mut StreamingPullRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ack_ids", + |m: &StreamingPullRequest| { &m.ack_ids }, + |m: &mut StreamingPullRequest| { &mut m.ack_ids }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "modify_deadline_seconds", + |m: &StreamingPullRequest| { &m.modify_deadline_seconds }, + |m: &mut StreamingPullRequest| { &mut m.modify_deadline_seconds }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "modify_deadline_ack_ids", + |m: &StreamingPullRequest| { &m.modify_deadline_ack_ids }, + |m: &mut StreamingPullRequest| { &mut m.modify_deadline_ack_ids }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "stream_ack_deadline_seconds", + |m: &StreamingPullRequest| { &m.stream_ack_deadline_seconds }, + |m: &mut StreamingPullRequest| { &mut m.stream_ack_deadline_seconds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "StreamingPullRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for StreamingPullResponse_SubscriptionProperties { +impl ::protobuf::Message for StreamingPullRequest { + const NAME: &'static str = "StreamingPullRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.exactly_once_delivery_enabled = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.message_ordering_enabled = tmp; + 18 => { + self.ack_ids.push(is.read_string()?); + }, + 26 => { + is.read_repeated_packed_int32_into(&mut self.modify_deadline_seconds)?; + }, + 24 => { + self.modify_deadline_seconds.push(is.read_int32()?); + }, + 34 => { + self.modify_deadline_ack_ids.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 40 => { + self.stream_ack_deadline_seconds = is.read_int32()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -11128,228 +5084,320 @@ impl ::protobuf::Message for StreamingPullResponse_SubscriptionProperties { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.exactly_once_delivery_enabled != false { - my_size += 2; + if !self.subscription.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subscription); } - if self.message_ordering_enabled != false { - my_size += 2; + for value in &self.ack_ids { + my_size += ::protobuf::rt::string_size(2, &value); + }; + for value in &self.modify_deadline_seconds { + my_size += ::protobuf::rt::int32_size(3, *value); + }; + for value in &self.modify_deadline_ack_ids { + my_size += ::protobuf::rt::string_size(4, &value); + }; + if self.stream_ack_deadline_seconds != 0 { + my_size += ::protobuf::rt::int32_size(5, self.stream_ack_deadline_seconds); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.exactly_once_delivery_enabled != false { - os.write_bool(1, self.exactly_once_delivery_enabled)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subscription.is_empty() { + os.write_string(1, &self.subscription)?; } - if self.message_ordering_enabled != false { - os.write_bool(2, self.message_ordering_enabled)?; + for v in &self.ack_ids { + os.write_string(2, &v)?; + }; + for v in &self.modify_deadline_seconds { + os.write_int32(3, *v)?; + }; + for v in &self.modify_deadline_ack_ids { + os.write_string(4, &v)?; + }; + if self.stream_ack_deadline_seconds != 0 { + os.write_int32(5, self.stream_ack_deadline_seconds)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> StreamingPullResponse_SubscriptionProperties { - StreamingPullResponse_SubscriptionProperties::new() + fn new() -> StreamingPullRequest { + StreamingPullRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "exactly_once_delivery_enabled", - |m: &StreamingPullResponse_SubscriptionProperties| { &m.exactly_once_delivery_enabled }, - |m: &mut StreamingPullResponse_SubscriptionProperties| { &mut m.exactly_once_delivery_enabled }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "message_ordering_enabled", - |m: &StreamingPullResponse_SubscriptionProperties| { &m.message_ordering_enabled }, - |m: &mut StreamingPullResponse_SubscriptionProperties| { &mut m.message_ordering_enabled }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StreamingPullResponse.SubscriptionProperties", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.ack_ids.clear(); + self.modify_deadline_seconds.clear(); + self.modify_deadline_ack_ids.clear(); + self.stream_ack_deadline_seconds = 0; + self.special_fields.clear(); } - fn default_instance() -> &'static StreamingPullResponse_SubscriptionProperties { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StreamingPullResponse_SubscriptionProperties::new) + fn default_instance() -> &'static StreamingPullRequest { + static instance: StreamingPullRequest = StreamingPullRequest { + subscription: ::std::string::String::new(), + ack_ids: ::std::vec::Vec::new(), + modify_deadline_seconds: ::std::vec::Vec::new(), + modify_deadline_ack_ids: ::std::vec::Vec::new(), + stream_ack_deadline_seconds: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for StreamingPullResponse_SubscriptionProperties { - fn clear(&mut self) { - self.exactly_once_delivery_enabled = false; - self.message_ordering_enabled = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for StreamingPullRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("StreamingPullRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for StreamingPullResponse_SubscriptionProperties { +impl ::std::fmt::Display for StreamingPullRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse_SubscriptionProperties { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for StreamingPullRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateSnapshotRequest { +/// Response for the `StreamingPull` method. This response is used to stream +/// messages from the server to the client. +// @@protoc_insertion_point(message:google.pubsub.v1.StreamingPullResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct StreamingPullResponse { // message fields - pub name: ::std::string::String, - pub subscription: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// Received Pub/Sub messages. This will not be empty. + // @@protoc_insertion_point(field:google.pubsub.v1.StreamingPullResponse.received_messages) + pub received_messages: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.StreamingPullResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateSnapshotRequest { - fn default() -> &'a CreateSnapshotRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a StreamingPullResponse { + fn default() -> &'a StreamingPullResponse { + ::default_instance() } } -impl CreateSnapshotRequest { - pub fn new() -> CreateSnapshotRequest { +impl StreamingPullResponse { + pub fn new() -> StreamingPullResponse { ::std::default::Default::default() } - // string name = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "received_messages", + |m: &StreamingPullResponse| { &m.received_messages }, + |m: &mut StreamingPullResponse| { &mut m.received_messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "StreamingPullResponse", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for StreamingPullResponse { + const NAME: &'static str = "StreamingPullResponse"; - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.received_messages.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.received_messages { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.received_messages { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // string subscription = 2; - + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_subscription(&self) -> &str { - &self.subscription + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); + + fn new() -> StreamingPullResponse { + StreamingPullResponse::new() } - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; + fn clear(&mut self) { + self.received_messages.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription + fn default_instance() -> &'static StreamingPullResponse { + static instance: StreamingPullResponse = StreamingPullResponse { + received_messages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) +impl ::protobuf::MessageFull for StreamingPullResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("StreamingPullResponse").unwrap()).clone() } +} - // repeated .google.pubsub.v1.CreateSnapshotRequest.LabelsEntry labels = 3; +impl ::std::fmt::Display for StreamingPullResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} +impl ::protobuf::reflect::ProtobufValue for StreamingPullResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } +/// Request for the `CreateSnapshot` method. +// @@protoc_insertion_point(message:google.pubsub.v1.CreateSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateSnapshotRequest { + // message fields + /// Optional user-provided name for this snapshot. + /// If the name is not provided in the request, the server will assign a random + /// name for this snapshot on the same project as the subscription. + /// Note that for REST API requests, you must specify a name. See the + /// + /// resource name rules. + /// Format is `projects/{project}/snapshots/{snap}`. + // @@protoc_insertion_point(field:google.pubsub.v1.CreateSnapshotRequest.name) + pub name: ::std::string::String, + // @@protoc_insertion_point(field:google.pubsub.v1.CreateSnapshotRequest.subscription) + pub subscription: ::std::string::String, + /// See Creating and + /// managing labels. + // @@protoc_insertion_point(field:google.pubsub.v1.CreateSnapshotRequest.labels) + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.pubsub.v1.CreateSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; +impl<'a> ::std::default::Default for &'a CreateSnapshotRequest { + fn default() -> &'a CreateSnapshotRequest { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels +impl CreateSnapshotRequest { + pub fn new() -> CreateSnapshotRequest { + ::std::default::Default::default() } - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &CreateSnapshotRequest| { &m.name }, + |m: &mut CreateSnapshotRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &CreateSnapshotRequest| { &m.subscription }, + |m: &mut CreateSnapshotRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &CreateSnapshotRequest| { &m.labels }, + |m: &mut CreateSnapshotRequest| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateSnapshotRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateSnapshotRequest { + const NAME: &'static str = "CreateSnapshotRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 18 => { + self.subscription = is.read_string()?; + }, + 26 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -11358,7 +5406,7 @@ impl ::protobuf::Message for CreateSnapshotRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -11366,116 +5414,94 @@ impl ::protobuf::Message for CreateSnapshotRequest { if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.subscription); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } if !self.subscription.is_empty() { os.write_string(2, &self.subscription)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(26)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateSnapshotRequest { CreateSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CreateSnapshotRequest| { &m.name }, - |m: &mut CreateSnapshotRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &CreateSnapshotRequest| { &m.subscription }, - |m: &mut CreateSnapshotRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &CreateSnapshotRequest| { &m.labels }, - |m: &mut CreateSnapshotRequest| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.subscription.clear(); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(CreateSnapshotRequest::new) } } -impl ::protobuf::Clear for CreateSnapshotRequest { - fn clear(&mut self) { - self.name.clear(); - self.subscription.clear(); - self.labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateSnapshotRequest { +impl ::std::fmt::Display for CreateSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the UpdateSnapshot method. +// @@protoc_insertion_point(message:google.pubsub.v1.UpdateSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct UpdateSnapshotRequest { // message fields - pub snapshot: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, + /// The updated snapshot object. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateSnapshotRequest.snapshot) + pub snapshot: ::protobuf::MessageField, + /// Indicates which fields in the provided snapshot to update. + /// Must be specified and non-empty. + // @@protoc_insertion_point(field:google.pubsub.v1.UpdateSnapshotRequest.update_mask) + pub update_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.UpdateSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a UpdateSnapshotRequest { @@ -11489,100 +5515,45 @@ impl UpdateSnapshotRequest { ::std::default::Default::default() } - // .google.pubsub.v1.Snapshot snapshot = 1; - - - pub fn get_snapshot(&self) -> &Snapshot { - self.snapshot.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_snapshot(&mut self) { - self.snapshot.clear(); - } - - pub fn has_snapshot(&self) -> bool { - self.snapshot.is_some() - } - - // Param is passed by value, moved - pub fn set_snapshot(&mut self, v: Snapshot) { - self.snapshot = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_snapshot(&mut self) -> &mut Snapshot { - if self.snapshot.is_none() { - self.snapshot.set_default(); - } - self.snapshot.as_mut().unwrap() - } - - // Take field - pub fn take_snapshot(&mut self) -> Snapshot { - self.snapshot.take().unwrap_or_else(|| Snapshot::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Snapshot>( + "snapshot", + |m: &UpdateSnapshotRequest| { &m.snapshot }, + |m: &mut UpdateSnapshotRequest| { &mut m.snapshot }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "update_mask", + |m: &UpdateSnapshotRequest| { &m.update_mask }, + |m: &mut UpdateSnapshotRequest| { &mut m.update_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateSnapshotRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for UpdateSnapshotRequest { + const NAME: &'static str = "UpdateSnapshotRequest"; + fn is_initialized(&self) -> bool { - for v in &self.snapshot { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.snapshot)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.snapshot)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.update_mask)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -11591,124 +5562,112 @@ impl ::protobuf::Message for UpdateSnapshotRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.snapshot.as_ref() { + if let Some(v) = self.snapshot.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.update_mask.as_ref() { + if let Some(v) = self.update_mask.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.snapshot.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.snapshot.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.update_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> UpdateSnapshotRequest { UpdateSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "snapshot", - |m: &UpdateSnapshotRequest| { &m.snapshot }, - |m: &mut UpdateSnapshotRequest| { &mut m.snapshot }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateSnapshotRequest| { &m.update_mask }, - |m: &mut UpdateSnapshotRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.snapshot.clear(); + self.update_mask.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static UpdateSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateSnapshotRequest::new) + static instance: UpdateSnapshotRequest = UpdateSnapshotRequest { + snapshot: ::protobuf::MessageField::none(), + update_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateSnapshotRequest { - fn clear(&mut self) { - self.snapshot.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateSnapshotRequest { +impl ::std::fmt::Display for UpdateSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for UpdateSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A snapshot resource. Snapshots are used in +/// Seek +/// 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. +// @@protoc_insertion_point(message:google.pubsub.v1.Snapshot) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Snapshot { // message fields + /// The name of the snapshot. + // @@protoc_insertion_point(field:google.pubsub.v1.Snapshot.name) pub name: ::std::string::String, + /// The name of the topic from which this snapshot is retaining messages. + // @@protoc_insertion_point(field:google.pubsub.v1.Snapshot.topic) pub topic: ::std::string::String, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The snapshot is guaranteed to exist up until this time. + /// A newly-created snapshot expires no later than 7 days from the time of its + /// creation. Its exact lifetime is determined at creation by the existing + /// backlog in the source subscription. Specifically, the lifetime of the + /// snapshot is `7 days - (age of oldest unacked message in the subscription)`. + /// For example, consider a subscription whose oldest unacked message is 3 days + /// old. If a snapshot is created from this subscription, the snapshot -- which + /// will always capture this 3-day-old backlog as long as the snapshot + /// exists -- will expire in 4 days. The service will refuse to create a + /// snapshot that would expire in less than 1 hour after creation. + // @@protoc_insertion_point(field:google.pubsub.v1.Snapshot.expire_time) + pub expire_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// See Creating and + /// managing labels. + // @@protoc_insertion_point(field:google.pubsub.v1.Snapshot.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.Snapshot.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Snapshot { @@ -11722,145 +5681,73 @@ impl Snapshot { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string topic = 2; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp expire_time = 3; - - - pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expire_time(&mut self) { - self.expire_time.clear(); - } - - pub fn has_expire_time(&self) -> bool { - self.expire_time.is_some() - } - - // Param is passed by value, moved - pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expire_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expire_time.is_none() { - self.expire_time.set_default(); - } - self.expire_time.as_mut().unwrap() - } - - // Take field - pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // repeated .google.pubsub.v1.Snapshot.LabelsEntry labels = 4; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Snapshot| { &m.name }, + |m: &mut Snapshot| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &Snapshot| { &m.topic }, + |m: &mut Snapshot| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "expire_time", + |m: &Snapshot| { &m.expire_time }, + |m: &mut Snapshot| { &mut m.expire_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Snapshot| { &m.labels }, + |m: &mut Snapshot| { &mut m.labels }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Snapshot", + fields, + oneofs, + ) } } impl ::protobuf::Message for Snapshot { + const NAME: &'static str = "Snapshot"; + fn is_initialized(&self) -> bool { - for v in &self.expire_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + 18 => { + self.topic = is.read_string()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.expire_time)?; + }, + 34 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -11869,7 +5756,7 @@ impl ::protobuf::Message for Snapshot { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -11877,130 +5764,99 @@ impl ::protobuf::Message for Snapshot { if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.topic); } - if let Some(ref v) = self.expire_time.as_ref() { + if let Some(v) = self.expire_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } if !self.topic.is_empty() { os.write_string(2, &self.topic)?; } - if let Some(ref v) = self.expire_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.expire_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.labels, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(34)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Snapshot { Snapshot::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Snapshot| { &m.name }, - |m: &mut Snapshot| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &Snapshot| { &m.topic }, - |m: &mut Snapshot| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expire_time", - |m: &Snapshot| { &m.expire_time }, - |m: &mut Snapshot| { &mut m.expire_time }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Snapshot| { &m.labels }, - |m: &mut Snapshot| { &mut m.labels }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Snapshot", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.topic.clear(); + self.expire_time.clear(); + self.labels.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Snapshot { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(Snapshot::new) } } -impl ::protobuf::Clear for Snapshot { - fn clear(&mut self) { - self.name.clear(); - self.topic.clear(); - self.expire_time.clear(); - self.labels.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Snapshot { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Snapshot").unwrap()).clone() } } -impl ::std::fmt::Debug for Snapshot { +impl ::std::fmt::Display for Snapshot { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Snapshot { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the GetSnapshot method. +// @@protoc_insertion_point(message:google.pubsub.v1.GetSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetSnapshotRequest { // message fields + /// The name of the snapshot to get. + /// Format is `projects/{project}/snapshots/{snap}`. + // @@protoc_insertion_point(field:google.pubsub.v1.GetSnapshotRequest.snapshot) pub snapshot: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.GetSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetSnapshotRequest { @@ -12014,47 +5870,37 @@ impl GetSnapshotRequest { ::std::default::Default::default() } - // string snapshot = 1; - - - pub fn get_snapshot(&self) -> &str { - &self.snapshot - } - pub fn clear_snapshot(&mut self) { - self.snapshot.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshot(&mut self, v: ::std::string::String) { - self.snapshot = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_snapshot(&mut self) -> &mut ::std::string::String { - &mut self.snapshot - } - - // Take field - pub fn take_snapshot(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.snapshot, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "snapshot", + |m: &GetSnapshotRequest| { &m.snapshot }, + |m: &mut GetSnapshotRequest| { &mut m.snapshot }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetSnapshotRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetSnapshotRequest { + const NAME: &'static str = "GetSnapshotRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.snapshot)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.snapshot = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -12063,105 +5909,87 @@ impl ::protobuf::Message for GetSnapshotRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.snapshot.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.snapshot); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.snapshot.is_empty() { - os.write_string(1, &self.snapshot)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.snapshot.is_empty() { + os.write_string(1, &self.snapshot)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetSnapshotRequest { GetSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "snapshot", - |m: &GetSnapshotRequest| { &m.snapshot }, - |m: &mut GetSnapshotRequest| { &mut m.snapshot }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.snapshot.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSnapshotRequest::new) + static instance: GetSnapshotRequest = GetSnapshotRequest { + snapshot: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetSnapshotRequest { - fn clear(&mut self) { - self.snapshot.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetSnapshotRequest { +impl ::std::fmt::Display for GetSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the `ListSnapshots` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListSnapshotsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSnapshotsRequest { // message fields + /// The name of the project in which to list snapshots. + /// Format is `projects/{project-id}`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSnapshotsRequest.project) pub project: ::std::string::String, + /// Maximum number of snapshots to return. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSnapshotsRequest.page_size) pub page_size: i32, + /// The value returned by the last `ListSnapshotsResponse`; indicates that this + /// is a continuation of a prior `ListSnapshots` call, and that the system + /// should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSnapshotsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListSnapshotsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSnapshotsRequest { @@ -12175,98 +6003,53 @@ impl ListSnapshotsRequest { ::std::default::Default::default() } - // string project = 1; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "project", + |m: &ListSnapshotsRequest| { &m.project }, + |m: &mut ListSnapshotsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListSnapshotsRequest| { &m.page_size }, + |m: &mut ListSnapshotsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListSnapshotsRequest| { &m.page_token }, + |m: &mut ListSnapshotsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSnapshotsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSnapshotsRequest { + const NAME: &'static str = "ListSnapshotsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.project = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -12275,23 +6058,23 @@ impl ::protobuf::Message for ListSnapshotsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.project.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.project); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.project.is_empty() { os.write_string(1, &self.project)?; } @@ -12301,102 +6084,72 @@ impl ::protobuf::Message for ListSnapshotsRequest { if !self.page_token.is_empty() { os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSnapshotsRequest { ListSnapshotsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListSnapshotsRequest| { &m.project }, - |m: &mut ListSnapshotsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSnapshotsRequest| { &m.page_size }, - |m: &mut ListSnapshotsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSnapshotsRequest| { &m.page_token }, - |m: &mut ListSnapshotsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSnapshotsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.project.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSnapshotsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSnapshotsRequest::new) + static instance: ListSnapshotsRequest = ListSnapshotsRequest { + project: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSnapshotsRequest { - fn clear(&mut self) { - self.project.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSnapshotsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSnapshotsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSnapshotsRequest { +impl ::std::fmt::Display for ListSnapshotsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSnapshotsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the `ListSnapshots` method. +// @@protoc_insertion_point(message:google.pubsub.v1.ListSnapshotsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSnapshotsResponse { // message fields - pub snapshots: ::protobuf::RepeatedField, + /// The resulting snapshots. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSnapshotsResponse.snapshots) + pub snapshots: ::std::vec::Vec, + /// If not empty, indicates that there may be more snapshot that match the + /// request; this value should be passed in a new `ListSnapshotsRequest`. + // @@protoc_insertion_point(field:google.pubsub.v1.ListSnapshotsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.ListSnapshotsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSnapshotsResponse { @@ -12410,80 +6163,45 @@ impl ListSnapshotsResponse { ::std::default::Default::default() } - // repeated .google.pubsub.v1.Snapshot snapshots = 1; - - - pub fn get_snapshots(&self) -> &[Snapshot] { - &self.snapshots - } - pub fn clear_snapshots(&mut self) { - self.snapshots.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshots(&mut self, v: ::protobuf::RepeatedField) { - self.snapshots = v; - } - - // Mutable pointer to the field. - pub fn mut_snapshots(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.snapshots - } - - // Take field - pub fn take_snapshots(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.snapshots, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "snapshots", + |m: &ListSnapshotsResponse| { &m.snapshots }, + |m: &mut ListSnapshotsResponse| { &mut m.snapshots }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListSnapshotsResponse| { &m.next_page_token }, + |m: &mut ListSnapshotsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSnapshotsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSnapshotsResponse { + const NAME: &'static str = "ListSnapshotsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.snapshots { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.snapshots)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.snapshots.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -12492,118 +6210,88 @@ impl ::protobuf::Message for ListSnapshotsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.snapshots { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.snapshots { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSnapshotsResponse { ListSnapshotsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "snapshots", - |m: &ListSnapshotsResponse| { &m.snapshots }, - |m: &mut ListSnapshotsResponse| { &mut m.snapshots }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSnapshotsResponse| { &m.next_page_token }, - |m: &mut ListSnapshotsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSnapshotsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.snapshots.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSnapshotsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSnapshotsResponse::new) + static instance: ListSnapshotsResponse = ListSnapshotsResponse { + snapshots: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSnapshotsResponse { - fn clear(&mut self) { - self.snapshots.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSnapshotsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSnapshotsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSnapshotsResponse { +impl ::std::fmt::Display for ListSnapshotsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSnapshotsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the `DeleteSnapshot` method. +// @@protoc_insertion_point(message:google.pubsub.v1.DeleteSnapshotRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteSnapshotRequest { // message fields + /// The name of the snapshot to delete. + /// Format is `projects/{project}/snapshots/{snap}`. + // @@protoc_insertion_point(field:google.pubsub.v1.DeleteSnapshotRequest.snapshot) pub snapshot: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.DeleteSnapshotRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteSnapshotRequest { @@ -12617,47 +6305,37 @@ impl DeleteSnapshotRequest { ::std::default::Default::default() } - // string snapshot = 1; - - - pub fn get_snapshot(&self) -> &str { - &self.snapshot - } - pub fn clear_snapshot(&mut self) { - self.snapshot.clear(); - } - - // Param is passed by value, moved - pub fn set_snapshot(&mut self, v: ::std::string::String) { - self.snapshot = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_snapshot(&mut self) -> &mut ::std::string::String { - &mut self.snapshot - } - - // Take field - pub fn take_snapshot(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.snapshot, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "snapshot", + |m: &DeleteSnapshotRequest| { &m.snapshot }, + |m: &mut DeleteSnapshotRequest| { &mut m.snapshot }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteSnapshotRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteSnapshotRequest { + const NAME: &'static str = "DeleteSnapshotRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.snapshot)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.snapshot = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -12666,105 +6344,80 @@ impl ::protobuf::Message for DeleteSnapshotRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.snapshot.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.snapshot); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.snapshot.is_empty() { os.write_string(1, &self.snapshot)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteSnapshotRequest { DeleteSnapshotRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "snapshot", - |m: &DeleteSnapshotRequest| { &m.snapshot }, - |m: &mut DeleteSnapshotRequest| { &mut m.snapshot }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSnapshotRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.snapshot.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteSnapshotRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSnapshotRequest::new) + static instance: DeleteSnapshotRequest = DeleteSnapshotRequest { + snapshot: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteSnapshotRequest { - fn clear(&mut self) { - self.snapshot.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteSnapshotRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteSnapshotRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteSnapshotRequest { +impl ::std::fmt::Display for DeleteSnapshotRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteSnapshotRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the `Seek` method. +// @@protoc_insertion_point(message:google.pubsub.v1.SeekRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SeekRequest { // message fields + /// The subscription to affect. + // @@protoc_insertion_point(field:google.pubsub.v1.SeekRequest.subscription) pub subscription: ::std::string::String, // message oneof groups - pub target: ::std::option::Option, + pub target: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.SeekRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SeekRequest { @@ -12773,125 +6426,93 @@ impl<'a> ::std::default::Default for &'a SeekRequest { } } -#[derive(Clone,PartialEq,Debug)] -pub enum SeekRequest_oneof_target { - time(::protobuf::well_known_types::Timestamp), - snapshot(::std::string::String), -} - impl SeekRequest { pub fn new() -> SeekRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - // .google.protobuf.Timestamp time = 2; - - pub fn get_time(&self) -> &::protobuf::well_known_types::Timestamp { + pub fn time(&self) -> &::protobuf::well_known_types::timestamp::Timestamp { match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::time(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(seek_request::Target::Time(ref v)) => v, + _ => <::protobuf::well_known_types::timestamp::Timestamp as ::protobuf::Message>::default_instance(), } } + pub fn clear_time(&mut self) { self.target = ::std::option::Option::None; } pub fn has_time(&self) -> bool { match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::time(..)) => true, + ::std::option::Option::Some(seek_request::Target::Time(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(v)) + pub fn set_time(&mut self, v: ::protobuf::well_known_types::timestamp::Timestamp) { + self.target = ::std::option::Option::Some(seek_request::Target::Time(v)) } // Mutable pointer to the field. - pub fn mut_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(SeekRequest_oneof_target::time(_)) = self.target { + pub fn mut_time(&mut self) -> &mut ::protobuf::well_known_types::timestamp::Timestamp { + if let ::std::option::Option::Some(seek_request::Target::Time(_)) = self.target { } else { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(::protobuf::well_known_types::Timestamp::new())); + self.target = ::std::option::Option::Some(seek_request::Target::Time(::protobuf::well_known_types::timestamp::Timestamp::new())); } match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::time(ref mut v)) => v, + ::std::option::Option::Some(seek_request::Target::Time(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_time(&mut self) -> ::protobuf::well_known_types::Timestamp { + pub fn take_time(&mut self) -> ::protobuf::well_known_types::timestamp::Timestamp { if self.has_time() { match self.target.take() { - ::std::option::Option::Some(SeekRequest_oneof_target::time(v)) => v, + ::std::option::Option::Some(seek_request::Target::Time(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::Timestamp::new() + ::protobuf::well_known_types::timestamp::Timestamp::new() } } // string snapshot = 3; - - pub fn get_snapshot(&self) -> &str { + pub fn snapshot(&self) -> &str { match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref v)) => v, + ::std::option::Option::Some(seek_request::Target::Snapshot(ref v)) => v, _ => "", } } + pub fn clear_snapshot(&mut self) { self.target = ::std::option::Option::None; } pub fn has_snapshot(&self) -> bool { match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(..)) => true, + ::std::option::Option::Some(seek_request::Target::Snapshot(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_snapshot(&mut self, v: ::std::string::String) { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(v)) + self.target = ::std::option::Option::Some(seek_request::Target::Snapshot(v)) } // Mutable pointer to the field. pub fn mut_snapshot(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(_)) = self.target { + if let ::std::option::Option::Some(seek_request::Target::Snapshot(_)) = self.target { } else { - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(::std::string::String::new())); + self.target = ::std::option::Option::Some(seek_request::Target::Snapshot(::std::string::String::new())); } match self.target { - ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(ref mut v)) => v, + ::std::option::Option::Some(seek_request::Target::Snapshot(ref mut v)) => v, _ => panic!(), } } @@ -12900,46 +6521,65 @@ impl SeekRequest { pub fn take_snapshot(&mut self) -> ::std::string::String { if self.has_snapshot() { match self.target.take() { - ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(v)) => v, + ::std::option::Option::Some(seek_request::Target::Snapshot(v)) => v, _ => panic!(), } } else { ::std::string::String::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &SeekRequest| { &m.subscription }, + |m: &mut SeekRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "time", + SeekRequest::has_time, + SeekRequest::time, + SeekRequest::mut_time, + SeekRequest::set_time, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "snapshot", + SeekRequest::has_snapshot, + SeekRequest::snapshot, + SeekRequest::set_snapshot, + )); + oneofs.push(seek_request::Target::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SeekRequest", + fields, + oneofs, + ) + } } impl ::protobuf::Message for SeekRequest { + const NAME: &'static str = "SeekRequest"; + fn is_initialized(&self) -> bool { - if let Some(SeekRequest_oneof_target::time(ref v)) = self.target { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::time(is.read_message()?)); + 18 => { + self.target = ::std::option::Option::Some(seek_request::Target::Time(is.read_message()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.target = ::std::option::Option::Some(SeekRequest_oneof_target::snapshot(is.read_string()?)); + 26 => { + self.target = ::std::option::Option::Some(seek_request::Target::Snapshot(is.read_string()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -12948,136 +6588,128 @@ impl ::protobuf::Message for SeekRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); } if let ::std::option::Option::Some(ref v) = self.target { match v { - &SeekRequest_oneof_target::time(ref v) => { + &seek_request::Target::Time(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &SeekRequest_oneof_target::snapshot(ref v) => { + &seek_request::Target::Snapshot(ref v) => { my_size += ::protobuf::rt::string_size(3, &v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } if let ::std::option::Option::Some(ref v) = self.target { match v { - &SeekRequest_oneof_target::time(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &seek_request::Target::Time(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }, - &SeekRequest_oneof_target::snapshot(ref v) => { + &seek_request::Target::Snapshot(ref v) => { os.write_string(3, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SeekRequest { SeekRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &SeekRequest| { &m.subscription }, - |m: &mut SeekRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( - "time", - SeekRequest::has_time, - SeekRequest::get_time, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "snapshot", - SeekRequest::has_snapshot, - SeekRequest::get_snapshot, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SeekRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.target = ::std::option::Option::None; + self.target = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static SeekRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SeekRequest::new) + static instance: SeekRequest = SeekRequest { + subscription: ::std::string::String::new(), + target: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SeekRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.target = ::std::option::Option::None; - self.target = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SeekRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SeekRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for SeekRequest { +impl ::std::fmt::Display for SeekRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SeekRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `SeekRequest` +pub mod seek_request { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.pubsub.v1.SeekRequest.target) + pub enum Target { + // @@protoc_insertion_point(oneof_field:google.pubsub.v1.SeekRequest.time) + Time(::protobuf::well_known_types::timestamp::Timestamp), + // @@protoc_insertion_point(oneof_field:google.pubsub.v1.SeekRequest.snapshot) + Snapshot(::std::string::String), + } + + impl ::protobuf::Oneof for Target { + } + + impl ::protobuf::OneofFull for Target { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("target").unwrap()).clone() + } + } + + impl Target { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("target") + } } } -#[derive(PartialEq,Clone,Default)] +/// Response for the `Seek` method (this response is empty). +// @@protoc_insertion_point(message:google.pubsub.v1.SeekResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct SeekResponse { // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1.SeekResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SeekResponse { @@ -13090,19 +6722,30 @@ impl SeekResponse { pub fn new() -> SeekResponse { ::std::default::Default::default() } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SeekResponse", + fields, + oneofs, + ) + } } impl ::protobuf::Message for SeekResponse { + const NAME: &'static str = "SeekResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -13111,954 +6754,683 @@ impl ::protobuf::Message for SeekResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> SeekResponse { SeekResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SeekResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.special_fields.clear(); } fn default_instance() -> &'static SeekResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(SeekResponse::new) + static instance: SeekResponse = SeekResponse { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for SeekResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for SeekResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SeekResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for SeekResponse { +impl ::std::fmt::Display for SeekResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SeekResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1dgoogle/pubsub/v1/pubsub.proto\x12\x10google.pubsub.v1\x1a\x1cgoogl\ - e/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api\ - /field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/pro\ + e/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/pro\ tobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/pr\ - otobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dgo\ - ogle/pubsub/v1/schema.proto\"V\n\x14MessageStoragePolicy\x12>\n\x1ballow\ - ed_persistence_regions\x18\x01\x20\x03(\tR\x19allowedPersistenceRegions\ - \"\xdc\x01\n\x0eSchemaSettings\x12<\n\x06schema\x18\x01\x20\x01(\tR\x06s\ - chemaB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\x126\n\x08en\ - coding\x18\x02\x20\x01(\x0e2\x1a.google.pubsub.v1.EncodingR\x08encoding\ - \x12*\n\x11first_revision_id\x18\x03\x20\x01(\tR\x0ffirstRevisionId\x12(\ - \n\x10last_revision_id\x18\x04\x20\x01(\tR\x0elastRevisionId\"\xb7\x04\n\ - \x05Topic\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\ - \x12;\n\x06labels\x18\x02\x20\x03(\x0b2#.google.pubsub.v1.Topic.LabelsEn\ - tryR\x06labels\x12\\\n\x16message_storage_policy\x18\x03\x20\x01(\x0b2&.\ - google.pubsub.v1.MessageStoragePolicyR\x14messageStoragePolicy\x12\x20\n\ - \x0ckms_key_name\x18\x05\x20\x01(\tR\nkmsKeyName\x12I\n\x0fschema_settin\ - gs\x18\x06\x20\x01(\x0b2\x20.google.pubsub.v1.SchemaSettingsR\x0eschemaS\ - ettings\x12#\n\rsatisfies_pzs\x18\x07\x20\x01(\x08R\x0csatisfiesPzs\x12W\ - \n\x1amessage_retention_duration\x18\x08\x20\x01(\x0b2\x19.google.protob\ - uf.DurationR\x18messageRetentionDuration\x1a9\n\x0bLabelsEntry\x12\x10\n\ - \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\t\ - R\x05value:\x028\x01:T\xeaAQ\n\x1bpubsub.googleapis.com/Topic\x12!projec\ - ts/{project}/topics/{topic}\x12\x0f_deleted-topic_\"\xb4\x02\n\rPubsubMe\ - ssage\x12\x12\n\x04data\x18\x01\x20\x01(\x0cR\x04data\x12O\n\nattributes\ - \x18\x02\x20\x03(\x0b2/.google.pubsub.v1.PubsubMessage.AttributesEntryR\ - \nattributes\x12\x1d\n\nmessage_id\x18\x03\x20\x01(\tR\tmessageId\x12=\n\ - \x0cpublish_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \x0bpublishTime\x12!\n\x0cordering_key\x18\x05\x20\x01(\tR\x0borderingKe\ - y\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ - \x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"L\n\x0fGetTo\ - picRequest\x129\n\x05topic\x18\x01\x20\x01(\tR\x05topicB#\xfaA\x1d\n\x1b\ - pubsub.googleapis.com/Topic\xe0A\x02\"\x8a\x01\n\x12UpdateTopicRequest\ - \x122\n\x05topic\x18\x01\x20\x01(\x0b2\x17.google.pubsub.v1.TopicR\x05to\ - picB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google\ - .protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"\x8d\x01\n\x0ePublishReq\ - uest\x129\n\x05topic\x18\x01\x20\x01(\tR\x05topicB#\xfaA\x1d\n\x1bpubsub\ - .googleapis.com/Topic\xe0A\x02\x12@\n\x08messages\x18\x02\x20\x03(\x0b2\ - \x1f.google.pubsub.v1.PubsubMessageR\x08messagesB\x03\xe0A\x02\"2\n\x0fP\ - ublishResponse\x12\x1f\n\x0bmessage_ids\x18\x01\x20\x03(\tR\nmessageIds\ - \"\x9e\x01\n\x11ListTopicsRequest\x12M\n\x07project\x18\x01\x20\x01(\tR\ - \x07projectB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\ - \x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\np\ - age_token\x18\x03\x20\x01(\tR\tpageToken\"m\n\x12ListTopicsResponse\x12/\ - \n\x06topics\x18\x01\x20\x03(\x0b2\x17.google.pubsub.v1.TopicR\x06topics\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\x96\x01\ - \n\x1dListTopicSubscriptionsRequest\x129\n\x05topic\x18\x01\x20\x01(\tR\ - \x05topicB#\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\xe0A\x02\x12\x1b\n\ - \tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\ - \x03\x20\x01(\tR\tpageToken\"\x97\x01\n\x1eListTopicSubscriptionsRespons\ - e\x12M\n\rsubscriptions\x18\x01\x20\x03(\tR\rsubscriptionsB'\xfaA$\n\"pu\ - bsub.googleapis.com/Subscription\x12&\n\x0fnext_page_token\x18\x02\x20\ - \x01(\tR\rnextPageToken\"\x92\x01\n\x19ListTopicSnapshotsRequest\x129\n\ - \x05topic\x18\x01\x20\x01(\tR\x05topicB#\xfaA\x1d\n\x1bpubsub.googleapis\ - .com/Topic\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\ - ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"b\n\x1aListTopi\ - cSnapshotsResponse\x12\x1c\n\tsnapshots\x18\x01\x20\x03(\tR\tsnapshots\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"O\n\x12De\ - leteTopicRequest\x129\n\x05topic\x18\x01\x20\x01(\tR\x05topicB#\xfaA\x1d\ - \n\x1bpubsub.googleapis.com/Topic\xe0A\x02\"k\n\x19DetachSubscriptionReq\ - uest\x12N\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\ - \n\"pubsub.googleapis.com/Subscription\xe0A\x02\"\x1c\n\x1aDetachSubscri\ - ptionResponse\"\xd8\n\n\x0cSubscription\x12\x17\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB\x03\xe0A\x02\x129\n\x05topic\x18\x02\x20\x01(\tR\x05to\ - picB#\xfaA\x1d\n\x1bpubsub.googleapis.com/Topic\xe0A\x02\x12=\n\x0bpush_\ - config\x18\x04\x20\x01(\x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfi\ - g\x12I\n\x0fbigquery_config\x18\x12\x20\x01(\x0b2\x20.google.pubsub.v1.B\ - igQueryConfigR\x0ebigqueryConfig\x12V\n\x14cloud_storage_config\x18\x16\ - \x20\x01(\x0b2$.google.pubsub.v1.CloudStorageConfigR\x12cloudStorageConf\ - ig\x120\n\x14ack_deadline_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSe\ - conds\x122\n\x15retain_acked_messages\x18\x07\x20\x01(\x08R\x13retainAck\ - edMessages\x12W\n\x1amessage_retention_duration\x18\x08\x20\x01(\x0b2\ - \x19.google.protobuf.DurationR\x18messageRetentionDuration\x12B\n\x06lab\ - els\x18\t\x20\x03(\x0b2*.google.pubsub.v1.Subscription.LabelsEntryR\x06l\ - abels\x126\n\x17enable_message_ordering\x18\n\x20\x01(\x08R\x15enableMes\ - sageOrdering\x12O\n\x11expiration_policy\x18\x0b\x20\x01(\x0b2\".google.\ - pubsub.v1.ExpirationPolicyR\x10expirationPolicy\x12\x16\n\x06filter\x18\ - \x0c\x20\x01(\tR\x06filter\x12P\n\x12dead_letter_policy\x18\r\x20\x01(\ - \x0b2\".google.pubsub.v1.DeadLetterPolicyR\x10deadLetterPolicy\x12@\n\ - \x0cretry_policy\x18\x0e\x20\x01(\x0b2\x1d.google.pubsub.v1.RetryPolicyR\ - \x0bretryPolicy\x12\x1a\n\x08detached\x18\x0f\x20\x01(\x08R\x08detached\ - \x12?\n\x1cenable_exactly_once_delivery\x18\x10\x20\x01(\x08R\x19enableE\ - xactlyOnceDelivery\x12g\n\x20topic_message_retention_duration\x18\x11\ - \x20\x01(\x0b2\x19.google.protobuf.DurationR\x1dtopicMessageRetentionDur\ - ationB\x03\xe0A\x03\x12?\n\x05state\x18\x13\x20\x01(\x0e2$.google.pubsub\ - .v1.Subscription.StateR\x05stateB\x03\xe0A\x03\x1a9\n\x0bLabelsEntry\x12\ - \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\ - \x01(\tR\x05value:\x028\x01\">\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\ - \x10\0\x12\n\n\x06ACTIVE\x10\x01\x12\x12\n\x0eRESOURCE_ERROR\x10\x02:X\ - \xeaAU\n\"pubsub.googleapis.com/Subscription\x12/projects/{project}/subs\ - criptions/{subscription}\"\x95\x01\n\x0bRetryPolicy\x12B\n\x0fminimum_ba\ - ckoff\x18\x01\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0eminimumBack\ - off\x12B\n\x0fmaximum_backoff\x18\x02\x20\x01(\x0b2\x19.google.protobuf.\ - DurationR\x0emaximumBackoff\"r\n\x10DeadLetterPolicy\x12*\n\x11dead_lett\ - er_topic\x18\x01\x20\x01(\tR\x0fdeadLetterTopic\x122\n\x15max_delivery_a\ - ttempts\x18\x02\x20\x01(\x05R\x13maxDeliveryAttempts\"?\n\x10ExpirationP\ - olicy\x12+\n\x03ttl\x18\x01\x20\x01(\x0b2\x19.google.protobuf.DurationR\ - \x03ttl\"\xeb\x04\n\nPushConfig\x12#\n\rpush_endpoint\x18\x01\x20\x01(\t\ - R\x0cpushEndpoint\x12L\n\nattributes\x18\x02\x20\x03(\x0b2,.google.pubsu\ - b.v1.PushConfig.AttributesEntryR\nattributes\x12G\n\noidc_token\x18\x03\ - \x20\x01(\x0b2&.google.pubsub.v1.PushConfig.OidcTokenH\0R\toidcToken\x12\ - S\n\x0epubsub_wrapper\x18\x04\x20\x01(\x0b2*.google.pubsub.v1.PushConfig\ - .PubsubWrapperH\x01R\rpubsubWrapper\x12G\n\nno_wrapper\x18\x05\x20\x01(\ - \x0b2&.google.pubsub.v1.PushConfig.NoWrapperH\x01R\tnoWrapper\x1a[\n\tOi\ - dcToken\x122\n\x15service_account_email\x18\x01\x20\x01(\tR\x13serviceAc\ - countEmail\x12\x1a\n\x08audience\x18\x02\x20\x01(\tR\x08audience\x1a\x0f\ - \n\rPubsubWrapper\x1a2\n\tNoWrapper\x12%\n\x0ewrite_metadata\x18\x01\x20\ - \x01(\x08R\rwriteMetadata\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\ - \x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\ - \x028\x01B\x17\n\x15authentication_methodB\t\n\x07wrapper\"\xd1\x02\n\ - \x0eBigQueryConfig\x12\x14\n\x05table\x18\x01\x20\x01(\tR\x05table\x12(\ - \n\x10use_topic_schema\x18\x02\x20\x01(\x08R\x0euseTopicSchema\x12%\n\ - \x0ewrite_metadata\x18\x03\x20\x01(\x08R\rwriteMetadata\x12.\n\x13drop_u\ - nknown_fields\x18\x04\x20\x01(\x08R\x11dropUnknownFields\x12A\n\x05state\ - \x18\x05\x20\x01(\x0e2&.google.pubsub.v1.BigQueryConfig.StateR\x05stateB\ - \x03\xe0A\x03\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\n\n\ - \x06ACTIVE\x10\x01\x12\x15\n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_F\ - OUND\x10\x03\x12\x13\n\x0fSCHEMA_MISMATCH\x10\x04\"\xf3\x04\n\x12CloudSt\ - orageConfig\x12\x1b\n\x06bucket\x18\x01\x20\x01(\tR\x06bucketB\x03\xe0A\ - \x02\x12'\n\x0ffilename_prefix\x18\x02\x20\x01(\tR\x0efilenamePrefix\x12\ - '\n\x0ffilename_suffix\x18\x03\x20\x01(\tR\x0efilenameSuffix\x12R\n\x0bt\ - ext_config\x18\x04\x20\x01(\x0b2/.google.pubsub.v1.CloudStorageConfig.Te\ - xtConfigH\0R\ntextConfig\x12R\n\x0bavro_config\x18\x05\x20\x01(\x0b2/.go\ - ogle.pubsub.v1.CloudStorageConfig.AvroConfigH\0R\navroConfig\x12<\n\x0cm\ - ax_duration\x18\x06\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0bmaxDu\ - ration\x12\x1b\n\tmax_bytes\x18\x07\x20\x01(\x03R\x08maxBytes\x12E\n\x05\ - state\x18\t\x20\x01(\x0e2*.google.pubsub.v1.CloudStorageConfig.StateR\ - \x05stateB\x03\xe0A\x03\x1a\x0c\n\nTextConfig\x1a3\n\nAvroConfig\x12%\n\ - \x0ewrite_metadata\x18\x01\x20\x01(\x08R\rwriteMetadata\"P\n\x05State\ - \x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\n\n\x06ACTIVE\x10\x01\x12\x15\ - \n\x11PERMISSION_DENIED\x10\x02\x12\r\n\tNOT_FOUND\x10\x03B\x0f\n\routpu\ - t_format\"\x8e\x01\n\x0fReceivedMessage\x12\x15\n\x06ack_id\x18\x01\x20\ - \x01(\tR\x05ackId\x129\n\x07message\x18\x02\x20\x01(\x0b2\x1f.google.pub\ - sub.v1.PubsubMessageR\x07message\x12)\n\x10delivery_attempt\x18\x03\x20\ - \x01(\x05R\x0fdeliveryAttempt\"h\n\x16GetSubscriptionRequest\x12N\n\x0cs\ - ubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.google\ - apis.com/Subscription\xe0A\x02\"\xa6\x01\n\x19UpdateSubscriptionRequest\ - \x12G\n\x0csubscription\x18\x01\x20\x01(\x0b2\x1e.google.pubsub.v1.Subsc\ - riptionR\x0csubscriptionB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\x20\ - \x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\"\ - \xa5\x01\n\x18ListSubscriptionsRequest\x12M\n\x07project\x18\x01\x20\x01\ - (\tR\x07projectB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\ - \xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\ - \n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\x89\x01\n\x19ListSubscri\ - ptionsResponse\x12D\n\rsubscriptions\x18\x01\x20\x03(\x0b2\x1e.google.pu\ - bsub.v1.SubscriptionR\rsubscriptions\x12&\n\x0fnext_page_token\x18\x02\ - \x20\x01(\tR\rnextPageToken\"k\n\x19DeleteSubscriptionRequest\x12N\n\x0c\ - subscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googl\ - eapis.com/Subscription\xe0A\x02\"\xad\x01\n\x17ModifyPushConfigRequest\ - \x12N\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"p\ - ubsub.googleapis.com/Subscription\xe0A\x02\x12B\n\x0bpush_config\x18\x02\ - \x20\x01(\x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfigB\x03\xe0A\ - \x02\"\xbb\x01\n\x0bPullRequest\x12N\n\x0csubscription\x18\x01\x20\x01(\ - \tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.com/Subscription\xe0A\ - \x02\x124\n\x12return_immediately\x18\x02\x20\x01(\x08R\x11returnImmedia\ - telyB\x05\x18\x01\xe0A\x01\x12&\n\x0cmax_messages\x18\x03\x20\x01(\x05R\ - \x0bmaxMessagesB\x03\xe0A\x02\"^\n\x0cPullResponse\x12N\n\x11received_me\ - ssages\x18\x01\x20\x03(\x0b2!.google.pubsub.v1.ReceivedMessageR\x10recei\ - vedMessages\"\xbf\x01\n\x18ModifyAckDeadlineRequest\x12N\n\x0csubscripti\ - on\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.googleapis.com/\ - Subscription\xe0A\x02\x12\x1c\n\x07ack_ids\x18\x04\x20\x03(\tR\x06ackIds\ - B\x03\xe0A\x02\x125\n\x14ack_deadline_seconds\x18\x03\x20\x01(\x05R\x12a\ - ckDeadlineSecondsB\x03\xe0A\x02\"\x82\x01\n\x12AcknowledgeRequest\x12N\n\ - \x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.g\ - oogleapis.com/Subscription\xe0A\x02\x12\x1c\n\x07ack_ids\x18\x02\x20\x03\ - (\tR\x06ackIdsB\x03\xe0A\x02\"\xbd\x03\n\x14StreamingPullRequest\x12N\n\ - \x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.g\ - oogleapis.com/Subscription\xe0A\x02\x12\x17\n\x07ack_ids\x18\x02\x20\x03\ - (\tR\x06ackIds\x126\n\x17modify_deadline_seconds\x18\x03\x20\x03(\x05R\ - \x15modifyDeadlineSeconds\x125\n\x17modify_deadline_ack_ids\x18\x04\x20\ - \x03(\tR\x14modifyDeadlineAckIds\x12B\n\x1bstream_ack_deadline_seconds\ - \x18\x05\x20\x01(\x05R\x18streamAckDeadlineSecondsB\x03\xe0A\x02\x12\x1b\ - \n\tclient_id\x18\x06\x20\x01(\tR\x08clientId\x128\n\x18max_outstanding_\ - messages\x18\x07\x20\x01(\x03R\x16maxOutstandingMessages\x122\n\x15max_o\ - utstanding_bytes\x18\x08\x20\x01(\x03R\x13maxOutstandingBytes\"\xe3\x07\ - \n\x15StreamingPullResponse\x12N\n\x11received_messages\x18\x01\x20\x03(\ - \x0b2!.google.pubsub.v1.ReceivedMessageR\x10receivedMessages\x12z\n\x18a\ - cknowledge_confirmation\x18\x05\x20\x01(\x0b2?.google.pubsub.v1.Streamin\ - gPullResponse.AcknowledgeConfirmationR\x17acknowledgeConfirmation\x12\ - \x8e\x01\n\x20modify_ack_deadline_confirmation\x18\x03\x20\x01(\x0b2E.go\ - ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationR\x1dm\ - odifyAckDeadlineConfirmation\x12w\n\x17subscription_properties\x18\x04\ - \x20\x01(\x0b2>.google.pubsub.v1.StreamingPullResponse.SubscriptionPrope\ - rtiesR\x16subscriptionProperties\x1a\xbf\x01\n\x17AcknowledgeConfirmatio\ - n\x12\x17\n\x07ack_ids\x18\x01\x20\x03(\tR\x06ackIds\x12&\n\x0finvalid_a\ - ck_ids\x18\x02\x20\x03(\tR\rinvalidAckIds\x12*\n\x11unordered_ack_ids\ - \x18\x03\x20\x03(\tR\x0funorderedAckIds\x127\n\x18temporary_failed_ack_i\ - ds\x18\x04\x20\x03(\tR\x15temporaryFailedAckIds\x1a\x99\x01\n\x1dModifyA\ - ckDeadlineConfirmation\x12\x17\n\x07ack_ids\x18\x01\x20\x03(\tR\x06ackId\ - s\x12&\n\x0finvalid_ack_ids\x18\x02\x20\x03(\tR\rinvalidAckIds\x127\n\ - \x18temporary_failed_ack_ids\x18\x03\x20\x03(\tR\x15temporaryFailedAckId\ - s\x1a\x95\x01\n\x16SubscriptionProperties\x12A\n\x1dexactly_once_deliver\ - y_enabled\x18\x01\x20\x01(\x08R\x1aexactlyOnceDeliveryEnabled\x128\n\x18\ - message_ordering_enabled\x18\x02\x20\x01(\x08R\x16messageOrderingEnabled\ - \"\xab\x02\n\x15CreateSnapshotRequest\x12:\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB&\xfaA\x20\n\x1epubsub.googleapis.com/Snapshot\xe0A\x02\x12N\n\ - \x0csubscription\x18\x02\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.g\ - oogleapis.com/Subscription\xe0A\x02\x12K\n\x06labels\x18\x03\x20\x03(\ - \x0b23.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryR\x06labels\x1a\ - 9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\ - \x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x96\x01\n\x15UpdateSn\ - apshotRequest\x12;\n\x08snapshot\x18\x01\x20\x01(\x0b2\x1a.google.pubsub\ - .v1.SnapshotR\x08snapshotB\x03\xe0A\x02\x12@\n\x0bupdate_mask\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\xe0A\x02\ - \"\xdc\x02\n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\ - \x126\n\x05topic\x18\x02\x20\x01(\tR\x05topicB\x20\xfaA\x1d\n\x1bpubsub.\ - googleapis.com/Topic\x12;\n\x0bexpire_time\x18\x03\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\nexpireTime\x12>\n\x06labels\x18\x04\x20\x03(\ - \x0b2&.google.pubsub.v1.Snapshot.LabelsEntryR\x06labels\x1a9\n\x0bLabels\ - Entry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\ - \x02\x20\x01(\tR\x05value:\x028\x01:L\xeaAI\n\x1epubsub.googleapis.com/S\ - napshot\x12'projects/{project}/snapshots/{snapshot}\"X\n\x12GetSnapshotR\ - equest\x12B\n\x08snapshot\x18\x01\x20\x01(\tR\x08snapshotB&\xfaA\x20\n\ - \x1epubsub.googleapis.com/Snapshot\xe0A\x02\"\xa1\x01\n\x14ListSnapshots\ - Request\x12M\n\x07project\x18\x01\x20\x01(\tR\x07projectB3\xfaA-\n+cloud\ - resourcemanager.googleapis.com/Project\xe0A\x02\x12\x1b\n\tpage_size\x18\ - \x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\ - \tpageToken\"y\n\x15ListSnapshotsResponse\x128\n\tsnapshots\x18\x01\x20\ - \x03(\x0b2\x1a.google.pubsub.v1.SnapshotR\tsnapshots\x12&\n\x0fnext_page\ - _token\x18\x02\x20\x01(\tR\rnextPageToken\"[\n\x15DeleteSnapshotRequest\ - \x12B\n\x08snapshot\x18\x01\x20\x01(\tR\x08snapshotB&\xfaA\x20\n\x1epubs\ - ub.googleapis.com/Snapshot\xe0A\x02\"\xdc\x01\n\x0bSeekRequest\x12N\n\ - \x0csubscription\x18\x01\x20\x01(\tR\x0csubscriptionB*\xfaA$\n\"pubsub.g\ - oogleapis.com/Subscription\xe0A\x02\x120\n\x04time\x18\x02\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampH\0R\x04time\x12A\n\x08snapshot\x18\x03\ - \x20\x01(\tH\0R\x08snapshotB#\xfaA\x20\n\x1epubsub.googleapis.com/Snapsh\ - otB\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xb8\x0b\n\tPublisher\x12q\n\ - \x0bCreateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.google.pubsub.v1.\ - Topic\"0\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/topics/*}:\x01\ - *\xdaA\x04name\x12\x91\x01\n\x0bUpdateTopic\x12$.google.pubsub.v1.Update\ - TopicRequest\x1a\x17.google.pubsub.v1.Topic\"C\x82\xd3\xe4\x93\x02)2$/v1\ - /{topic.name=projects/*/topics/*}:\x01*\xdaA\x11topic,update_mask\x12\ - \x93\x01\n\x07Publish\x12\x20.google.pubsub.v1.PublishRequest\x1a!.googl\ - e.pubsub.v1.PublishResponse\"C\x82\xd3\xe4\x93\x02,\"'/v1/{topic=project\ - s/*/topics/*}:publish:\x01*\xdaA\x0etopic,messages\x12w\n\x08GetTopic\ - \x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub.v1.Topic\"/\ - \x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\xdaA\x05top\ - ic\x12\x8a\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a\ - $.google.pubsub.v1.ListTopicsResponse\"1\x82\xd3\xe4\x93\x02!\x12\x1f/v1\ - /{project=projects/*}/topics\xdaA\x07project\x12\xba\x01\n\x16ListTopicS\ - ubscriptions\x12/.google.pubsub.v1.ListTopicSubscriptionsRequest\x1a0.go\ - ogle.pubsub.v1.ListTopicSubscriptionsResponse\"=\x82\xd3\xe4\x93\x02/\ - \x12-/v1/{topic=projects/*/topics/*}/subscriptions\xdaA\x05topic\x12\xaa\ - \x01\n\x12ListTopicSnapshots\x12+.google.pubsub.v1.ListTopicSnapshotsReq\ - uest\x1a,.google.pubsub.v1.ListTopicSnapshotsResponse\"9\x82\xd3\xe4\x93\ - \x02+\x12)/v1/{topic=projects/*/topics/*}/snapshots\xdaA\x05topic\x12|\n\ - \x0bDeleteTopic\x12$.google.pubsub.v1.DeleteTopicRequest\x1a\x16.google.\ - protobuf.Empty\"/\x82\xd3\xe4\x93\x02!*\x1f/v1/{topic=projects/*/topics/\ - *}\xdaA\x05topic\x12\xad\x01\n\x12DetachSubscription\x12+.google.pubsub.\ - v1.DetachSubscriptionRequest\x1a,.google.pubsub.v1.DetachSubscriptionRes\ - ponse\"<\x82\xd3\xe4\x93\x026\"4/v1/{subscription=projects/*/subscriptio\ - ns/*}:detach\x1ap\xd2AUhttps://www.googleapis.com/auth/cloud-platform,ht\ - tps://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.googleapis.com2\xd2\ - \x15\n\nSubscriber\x12\xb4\x01\n\x12CreateSubscription\x12\x1e.google.pu\ - bsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\"^\x82\xd3\ - \xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\xdaA+name,\ - topic,push_config,ack_deadline_seconds\x12\xa1\x01\n\x0fGetSubscription\ - \x12(.google.pubsub.v1.GetSubscriptionRequest\x1a\x1e.google.pubsub.v1.S\ - ubscription\"D\x82\xd3\xe4\x93\x02/\x12-/v1/{subscription=projects/*/sub\ - scriptions/*}\xdaA\x0csubscription\x12\xbb\x01\n\x12UpdateSubscription\ - \x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.google.pubsub.v\ - 1.Subscription\"X\x82\xd3\xe4\x93\x02722/v1/{subscription.name=projects/\ - */subscriptions/*}:\x01*\xdaA\x18subscription,update_mask\x12\xa6\x01\n\ - \x11ListSubscriptions\x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a\ - +.google.pubsub.v1.ListSubscriptionsResponse\"8\x82\xd3\xe4\x93\x02(\x12\ - &/v1/{project=projects/*}/subscriptions\xdaA\x07project\x12\x9f\x01\n\ - \x12DeleteSubscription\x12+.google.pubsub.v1.DeleteSubscriptionRequest\ - \x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02/*-/v1/{subscriptio\ - n=projects/*/subscriptions/*}\xdaA\x0csubscription\x12\xcf\x01\n\x11Modi\ - fyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\x1a\x16.goo\ - gle.protobuf.Empty\"v\x82\xd3\xe4\x93\x02D\"?/v1/{subscription=projects/\ - */subscriptions/*}:modifyAckDeadline:\x01*\xdaA)subscription,ack_ids,ack\ - _deadline_seconds\x12\xa8\x01\n\x0bAcknowledge\x12$.google.pubsub.v1.Ack\ - nowledgeRequest\x1a\x16.google.protobuf.Empty\"[\x82\xd3\xe4\x93\x02>\"9\ - /v1/{subscription=projects/*/subscriptions/*}:acknowledge:\x01*\xdaA\x14\ - subscription,ack_ids\x12\xd0\x01\n\x04Pull\x12\x1d.google.pubsub.v1.Pull\ - Request\x1a\x1e.google.pubsub.v1.PullResponse\"\x88\x01\x82\xd3\xe4\x93\ - \x027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\xdaA,su\ - bscription,return_immediately,max_messages\xdaA\x19subscription,max_mess\ - ages\x12f\n\rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\ - \x1a'.google.pubsub.v1.StreamingPullResponse\"\0(\x010\x01\x12\xbb\x01\n\ - \x10ModifyPushConfig\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\ - \x16.google.protobuf.Empty\"d\x82\xd3\xe4\x93\x02C\">/v1/{subscription=p\ - rojects/*/subscriptions/*}:modifyPushConfig:\x01*\xdaA\x18subscription,p\ - ush_config\x12\x89\x01\n\x0bGetSnapshot\x12$.google.pubsub.v1.GetSnapsho\ - tRequest\x1a\x1a.google.pubsub.v1.Snapshot\"8\x82\xd3\xe4\x93\x02'\x12%/\ - v1/{snapshot=projects/*/snapshots/*}\xdaA\x08snapshot\x12\x96\x01\n\rLis\ - tSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a'.google.pubsub\ - .v1.ListSnapshotsResponse\"4\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=proj\ - ects/*}/snapshots\xdaA\x07project\x12\x97\x01\n\x0eCreateSnapshot\x12'.g\ - oogle.pubsub.v1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\ - \"@\x82\xd3\xe4\x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\xda\ - A\x11name,subscription\x12\xa3\x01\n\x0eUpdateSnapshot\x12'.google.pubsu\ - b.v1.UpdateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"L\x82\xd3\ - \xe4\x93\x02/2*/v1/{snapshot.name=projects/*/snapshots/*}:\x01*\xdaA\x14\ - snapshot,update_mask\x12\x8b\x01\n\x0eDeleteSnapshot\x12'.google.pubsub.\ - v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"8\x82\xd3\xe4\ - \x93\x02'*%/v1/{snapshot=projects/*/snapshots/*}\xdaA\x08snapshot\x12\ - \x84\x01\n\x04Seek\x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.p\ - ubsub.v1.SeekResponse\"=\x82\xd3\xe4\x93\x027\"2/v1/{subscription=projec\ - ts/*/subscriptions/*}:seek:\x01*\x1ap\xd2AUhttps://www.googleapis.com/au\ - th/cloud-platform,https://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.\ - googleapis.comB\xaa\x01\n\x14com.google.pubsub.v1B\x0bPubsubProtoP\x01Z2\ - cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb\xf8\x01\x01\xaa\x02\ - \x16Google.Cloud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\ - \x19Google::Cloud::PubSub::V1J\xc4\xf3\x03\n\x07\x12\x05\x0e\0\xb7\x0c\ - \x17\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x19\n\t\n\ - \x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\ - \x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\ - \x12\x03\x16\0(\n\t\n\x02\x03\x05\x12\x03\x17\0%\n\t\n\x02\x03\x06\x12\ - \x03\x18\0*\n\t\n\x02\x03\x07\x12\x03\x19\0)\n\t\n\x02\x03\x08\x12\x03\ - \x1a\0'\n\x08\n\x01\x08\x12\x03\x1c\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x1c\ - \0\x1f\n\x08\n\x01\x08\x12\x03\x1d\03\n\t\n\x02\x08%\x12\x03\x1d\03\n\ - \x08\n\x01\x08\x12\x03\x1e\0I\n\t\n\x02\x08\x0b\x12\x03\x1e\0I\n\x08\n\ - \x01\x08\x12\x03\x1f\0\"\n\t\n\x02\x08\n\x12\x03\x1f\0\"\n\x08\n\x01\x08\ - \x12\x03\x20\0,\n\t\n\x02\x08\x08\x12\x03\x20\0,\n\x08\n\x01\x08\x12\x03\ - !\0-\n\t\n\x02\x08\x01\x12\x03!\0-\n\x08\n\x01\x08\x12\x03\"\03\n\t\n\ - \x02\x08)\x12\x03\"\03\n\x08\n\x01\x08\x12\x03#\02\n\t\n\x02\x08-\x12\ - \x03#\02\nk\n\x02\x06\0\x12\x05'\0\x87\x01\x01\x1a^\x20The\x20service\ - \x20that\x20an\x20application\x20uses\x20to\x20manipulate\x20topics,\x20\ - and\x20to\x20send\n\x20messages\x20to\x20a\x20topic.\n\n\n\n\x03\x06\0\ - \x01\x12\x03'\x08\x11\n\n\n\x03\x06\0\x03\x12\x03(\x02=\n\x0c\n\x05\x06\ - \0\x03\x99\x08\x12\x03(\x02=\n\x0b\n\x03\x06\0\x03\x12\x04)\x02+/\n\r\n\ - \x05\x06\0\x03\x9a\x08\x12\x04)\x02+/\n\xa1\x01\n\x04\x06\0\x02\0\x12\ - \x04/\x025\x03\x1a\x92\x01\x20Creates\x20the\x20given\x20topic\x20with\ - \x20the\x20given\x20name.\x20See\x20the\x20[resource\x20name\x20rules]\n\ - \x20(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).\ - \n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03/\x06\x11\n\x0c\n\x05\x06\0\x02\0\ - \x02\x12\x03/\x12\x17\n\x0c\n\x05\x06\0\x02\0\x03\x12\x03/\"'\n\r\n\x05\ - \x06\0\x02\0\x04\x12\x040\x043\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\ - \"\x12\x040\x043\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x034\x042\n\x0f\n\ - \x08\x06\0\x02\0\x04\x9b\x08\0\x12\x034\x042\ng\n\x04\x06\0\x02\x01\x12\ - \x049\x02?\x03\x1aY\x20Updates\x20an\x20existing\x20topic.\x20Note\x20th\ - at\x20certain\x20properties\x20of\x20a\n\x20topic\x20are\x20not\x20modif\ - iable.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x039\x06\x11\n\x0c\n\x05\x06\ - \0\x02\x01\x02\x12\x039\x12$\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x039/4\n\ - \r\n\x05\x06\0\x02\x01\x04\x12\x04:\x04=\x06\n\x11\n\t\x06\0\x02\x01\x04\ - \xb0\xca\xbc\"\x12\x04:\x04=\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03>\ - \x04?\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03>\x04?\ni\n\x04\x06\ - \0\x02\x02\x12\x04C\x02I\x03\x1a[\x20Adds\x20one\x20or\x20more\x20messag\ - es\x20to\x20the\x20topic.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topi\ - c\n\x20does\x20not\x20exist.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03C\ - \x06\r\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03C\x0e\x1c\n\x0c\n\x05\x06\0\ - \x02\x02\x03\x12\x03C'6\n\r\n\x05\x06\0\x02\x02\x04\x12\x04D\x04G\x06\n\ - \x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04D\x04G\x06\n\x0c\n\x05\ - \x06\0\x02\x02\x04\x12\x03H\x04<\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\ - \x12\x03H\x04<\n2\n\x04\x06\0\x02\x03\x12\x04L\x02Q\x03\x1a$\x20Gets\x20\ - the\x20configuration\x20of\x20a\x20topic.\n\n\x0c\n\x05\x06\0\x02\x03\ - \x01\x12\x03L\x06\x0e\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03L\x0f\x1e\n\ - \x0c\n\x05\x06\0\x02\x03\x03\x12\x03L).\n\r\n\x05\x06\0\x02\x03\x04\x12\ - \x04M\x04O\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04M\x04O\ - \x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03P\x043\n\x0f\n\x08\x06\0\x02\ - \x03\x04\x9b\x08\0\x12\x03P\x043\n&\n\x04\x06\0\x02\x04\x12\x04T\x02Y\ - \x03\x1a\x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03T\x06\x10\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03T\x11\"\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03T-?\n\r\n\x05\x06\0\x02\x04\x04\x12\x04U\ - \x04W\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04U\x04W\x06\n\ - \x0c\n\x05\x06\0\x02\x04\x04\x12\x03X\x045\n\x0f\n\x08\x06\0\x02\x04\x04\ - \x9b\x08\0\x12\x03X\x045\nL\n\x04\x06\0\x02\x05\x12\x04\\\x02b\x03\x1a>\ - \x20Lists\x20the\x20names\x20of\x20the\x20attached\x20subscriptions\x20o\ - n\x20this\x20topic.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03\\\x06\x1c\n\ - \x0c\n\x05\x06\0\x02\x05\x02\x12\x03\\\x1d:\n\x0c\n\x05\x06\0\x02\x05\ - \x03\x12\x03]\x0f-\n\r\n\x05\x06\0\x02\x05\x04\x12\x04^\x04`\x06\n\x11\n\ - \t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x04^\x04`\x06\n\x0c\n\x05\x06\0\ - \x02\x05\x04\x12\x03a\x043\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\ - \x03a\x043\n\xd9\x02\n\x04\x06\0\x02\x06\x12\x04i\x02o\x03\x1a\xca\x02\ - \x20Lists\x20the\x20names\x20of\x20the\x20snapshots\x20on\x20this\x20top\ - ic.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek](https://cloud.google.c\ - om/pubsub/docs/replay-overview)\x20operations,\n\x20which\x20allow\x20yo\ - u\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\ - \x20is,\x20you\x20can\n\x20set\x20the\x20acknowledgment\x20state\x20of\ - \x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\x20s\ - tate\x20captured\x20by\x20a\x20snapshot.\n\n\x0c\n\x05\x06\0\x02\x06\x01\ - \x12\x03i\x06\x18\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03i\x192\n\x0c\n\ - \x05\x06\0\x02\x06\x03\x12\x03j\x0f)\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\ - k\x04m\x06\n\x11\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04k\x04m\x06\n\ - \x0c\n\x05\x06\0\x02\x06\x04\x12\x03n\x043\n\x0f\n\x08\x06\0\x02\x06\x04\ - \x9b\x08\0\x12\x03n\x043\n\xf3\x02\n\x04\x06\0\x02\x07\x12\x04v\x02{\x03\ - \x1a\xe4\x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\x20name.\ - \x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topic\n\x20does\x20not\x20exi\ - st.\x20After\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20topic\x20may\ - \x20be\x20created\x20with\n\x20the\x20same\x20name;\x20this\x20is\x20an\ - \x20entirely\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\n\x20co\ - nfiguration\x20or\x20subscriptions.\x20Existing\x20subscriptions\x20to\ - \x20this\x20topic\x20are\n\x20not\x20deleted,\x20but\x20their\x20`topic`\ - \x20field\x20is\x20set\x20to\x20`_deleted-topic_`.\n\n\x0c\n\x05\x06\0\ - \x02\x07\x01\x12\x03v\x06\x11\n\x0c\n\x05\x06\0\x02\x07\x02\x12\x03v\x12\ - $\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03v/D\n\r\n\x05\x06\0\x02\x07\x04\ - \x12\x04w\x04y\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x04w\ - \x04y\x06\n\x0c\n\x05\x06\0\x02\x07\x04\x12\x03z\x043\n\x0f\n\x08\x06\0\ - \x02\x07\x04\x9b\x08\0\x12\x03z\x043\n\x93\x02\n\x04\x06\0\x02\x08\x12\ - \x06\x81\x01\x02\x86\x01\x03\x1a\x82\x02\x20Detaches\x20a\x20subscriptio\ - n\x20from\x20this\x20topic.\x20All\x20messages\x20retained\x20in\x20the\ - \n\x20subscription\x20are\x20dropped.\x20Subsequent\x20`Pull`\x20and\x20\ - `StreamingPull`\x20requests\n\x20will\x20return\x20FAILED_PRECONDITION.\ - \x20If\x20the\x20subscription\x20is\x20a\x20push\n\x20subscription,\x20p\ - ushes\x20to\x20the\x20endpoint\x20will\x20stop.\n\n\r\n\x05\x06\0\x02\ - \x08\x01\x12\x04\x81\x01\x06\x18\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x81\ - \x01\x192\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\x82\x01\x0f)\n\x0f\n\x05\ - \x06\0\x02\x08\x04\x12\x06\x83\x01\x04\x85\x01\x06\n\x13\n\t\x06\0\x02\ - \x08\x04\xb0\xca\xbc\"\x12\x06\x83\x01\x04\x85\x01\x06\nU\n\x02\x04\0\ - \x12\x06\x8a\x01\0\x92\x01\x01\x1aG\x20A\x20policy\x20constraining\x20th\ - e\x20storage\x20of\x20messages\x20published\x20to\x20the\x20topic.\n\n\ - \x0b\n\x03\x04\0\x01\x12\x04\x8a\x01\x08\x1c\n\x8d\x03\n\x04\x04\0\x02\0\ - \x12\x04\x91\x01\x022\x1a\xfe\x02\x20A\x20list\x20of\x20IDs\x20of\x20Goo\ - gle\x20Cloud\x20regions\x20where\x20messages\x20that\x20are\x20published\ - \n\x20to\x20the\x20topic\x20may\x20be\x20persisted\x20in\x20storage.\x20\ - Messages\x20published\x20by\x20publishers\n\x20running\x20in\x20non-allo\ - wed\x20Google\x20Cloud\x20regions\x20(or\x20running\x20outside\x20of\x20\ - Google\n\x20Cloud\x20altogether)\x20are\x20routed\x20for\x20storage\x20i\ - n\x20one\x20of\x20the\x20allowed\x20regions.\n\x20An\x20empty\x20list\ - \x20means\x20that\x20no\x20regions\x20are\x20allowed,\x20and\x20is\x20no\ - t\x20a\x20valid\n\x20configuration.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\ - \x91\x01\x02\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\x91\x01\x0b\x11\n\r\n\ - \x05\x04\0\x02\0\x01\x12\x04\x91\x01\x12-\n\r\n\x05\x04\0\x02\0\x03\x12\ - \x04\x91\x0101\nL\n\x02\x04\x01\x12\x06\x95\x01\0\xab\x01\x01\x1a>\x20Se\ - ttings\x20for\x20validating\x20messages\x20published\x20against\x20a\x20\ - schema.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x95\x01\x08\x16\n\xef\x01\n\ - \x04\x04\x01\x02\0\x12\x06\x9a\x01\x02\x9d\x01\x04\x1a\xde\x01\x20Requir\ - ed.\x20The\x20name\x20of\x20the\x20schema\x20that\x20messages\x20publish\ - ed\x20should\x20be\n\x20validated\x20against.\x20Format\x20is\x20`projec\ - ts/{project}/schemas/{schema}`.\x20The\n\x20value\x20of\x20this\x20field\ - \x20will\x20be\x20`_deleted-schema_`\x20if\x20the\x20schema\x20has\x20be\ - en\n\x20deleted.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x9a\x01\x02\x08\n\ - \r\n\x05\x04\x01\x02\0\x01\x12\x04\x9a\x01\t\x0f\n\r\n\x05\x04\x01\x02\0\ - \x03\x12\x04\x9a\x01\x12\x13\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x9a\ - \x01\x14\x9d\x01\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x9b\ - \x01\x04*\n\x0f\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\x04\x9c\x01\x04N\nD\ - \n\x04\x04\x01\x02\x01\x12\x04\xa0\x01\x02\x18\x1a6\x20The\x20encoding\ - \x20of\x20messages\x20validated\x20against\x20`schema`.\n\n\r\n\x05\x04\ - \x01\x02\x01\x06\x12\x04\xa0\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x01\x12\ - \x04\xa0\x01\x0b\x13\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xa0\x01\x16\ - \x17\n\xc6\x01\n\x04\x04\x01\x02\x02\x12\x04\xa5\x01\x02\x1f\x1a\xb7\x01\ - \x20The\x20minimum\x20(inclusive)\x20revision\x20allowed\x20for\x20valid\ - ating\x20messages.\x20If\x20empty\n\x20or\x20not\x20present,\x20allow\ - \x20any\x20revision\x20to\x20be\x20validated\x20against\x20last_revision\ - \x20or\n\x20any\x20revision\x20created\x20before.\n\n\r\n\x05\x04\x01\ - \x02\x02\x05\x12\x04\xa5\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\ - \x04\xa5\x01\t\x1a\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xa5\x01\x1d\x1e\ - \n\xc6\x01\n\x04\x04\x01\x02\x03\x12\x04\xaa\x01\x02\x1e\x1a\xb7\x01\x20\ - The\x20maximum\x20(inclusive)\x20revision\x20allowed\x20for\x20validatin\ - g\x20messages.\x20If\x20empty\n\x20or\x20not\x20present,\x20allow\x20any\ - \x20revision\x20to\x20be\x20validated\x20against\x20first_revision\n\x20\ - or\x20any\x20revision\x20created\x20after.\n\n\r\n\x05\x04\x01\x02\x03\ - \x05\x12\x04\xaa\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xaa\ - \x01\t\x19\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xaa\x01\x1c\x1d\n!\n\ - \x02\x04\x02\x12\x06\xae\x01\0\xdc\x01\x01\x1a\x13\x20A\x20topic\x20reso\ - urce.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xae\x01\x08\r\n\r\n\x03\x04\x02\ - \x07\x12\x06\xaf\x01\x02\xb3\x01\x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\ - \x06\xaf\x01\x02\xb3\x01\x04\n\x8c\x03\n\x04\x04\x02\x02\0\x12\x04\xbb\ - \x01\x02;\x1a\xfd\x02\x20Required.\x20The\x20name\x20of\x20the\x20topic.\ - \x20It\x20must\x20have\x20the\x20format\n\x20`\"projects/{project}/topic\ - s/{topic}\"`.\x20`{topic}`\x20must\x20start\x20with\x20a\x20letter,\n\ - \x20and\x20contain\x20only\x20letters\x20(`[A-Za-z]`),\x20numbers\x20(`[\ - 0-9]`),\x20dashes\x20(`-`),\n\x20underscores\x20(`_`),\x20periods\x20(`.\ - `),\x20tildes\x20(`~`),\x20plus\x20(`+`)\x20or\x20percent\n\x20signs\x20\ - (`%`).\x20It\x20must\x20be\x20between\x203\x20and\x20255\x20characters\ - \x20in\x20length,\x20and\x20it\n\x20must\x20not\x20start\x20with\x20`\"g\ - oog\"`.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xbb\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\ - \x04\xbb\x01\x10\x11\n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xbb\x01\x12:\n\ - \x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\xbb\x01\x139\nb\n\x04\x04\ - \x02\x02\x01\x12\x04\xbf\x01\x02!\x1aT\x20See\x20[Creating\x20and\x20man\ - aging\x20labels]\n\x20(https://cloud.google.com/pubsub/docs/labels).\n\n\ - \r\n\x05\x04\x02\x02\x01\x06\x12\x04\xbf\x01\x02\x15\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xbf\x01\x16\x1c\n\r\n\x05\x04\x02\x02\x01\x03\x12\ - \x04\xbf\x01\x1f\x20\n\xb7\x01\n\x04\x04\x02\x02\x02\x12\x04\xc4\x01\x02\ - 2\x1a\xa8\x01\x20Policy\x20constraining\x20the\x20set\x20of\x20Google\ - \x20Cloud\x20Platform\x20regions\x20where\x20messages\n\x20published\x20\ - to\x20the\x20topic\x20may\x20be\x20stored.\x20If\x20not\x20present,\x20t\ - hen\x20no\x20constraints\n\x20are\x20in\x20effect.\n\n\r\n\x05\x04\x02\ - \x02\x02\x06\x12\x04\xc4\x01\x02\x16\n\r\n\x05\x04\x02\x02\x02\x01\x12\ - \x04\xc4\x01\x17-\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xc4\x0101\n\xcb\ - \x01\n\x04\x04\x02\x02\x03\x12\x04\xca\x01\x02\x1a\x1a\xbc\x01\x20The\ - \x20resource\x20name\x20of\x20the\x20Cloud\x20KMS\x20CryptoKey\x20to\x20\ - be\x20used\x20to\x20protect\x20access\n\x20to\x20messages\x20published\ - \x20on\x20this\x20topic.\n\n\x20The\x20expected\x20format\x20is\x20`proj\ - ects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n\r\n\x05\x04\x02\x02\x03\ - \x05\x12\x04\xca\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xca\ - \x01\t\x15\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xca\x01\x18\x19\nL\n\ - \x04\x04\x02\x02\x04\x12\x04\xcd\x01\x02%\x1a>\x20Settings\x20for\x20val\ - idating\x20messages\x20published\x20against\x20a\x20schema.\n\n\r\n\x05\ - \x04\x02\x02\x04\x06\x12\x04\xcd\x01\x02\x10\n\r\n\x05\x04\x02\x02\x04\ - \x01\x12\x04\xcd\x01\x11\x20\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xcd\ - \x01#$\n\x8a\x01\n\x04\x04\x02\x02\x05\x12\x04\xd1\x01\x02\x19\x1a|\x20R\ - eserved\x20for\x20future\x20use.\x20This\x20field\x20is\x20set\x20only\ - \x20in\x20responses\x20from\x20the\n\x20server;\x20it\x20is\x20ignored\ - \x20if\x20it\x20is\x20set\x20in\x20any\x20requests.\n\n\r\n\x05\x04\x02\ - \x02\x05\x05\x12\x04\xd1\x01\x02\x06\n\r\n\x05\x04\x02\x02\x05\x01\x12\ - \x04\xd1\x01\x07\x14\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\xd1\x01\x17\ - \x18\n\xd2\x04\n\x04\x04\x02\x02\x06\x12\x04\xdb\x01\x02:\x1a\xc3\x04\ - \x20Indicates\x20the\x20minimum\x20duration\x20to\x20retain\x20a\x20mess\ - age\x20after\x20it\x20is\x20published\x20to\n\x20the\x20topic.\x20If\x20\ - this\x20field\x20is\x20set,\x20messages\x20published\x20to\x20the\x20top\ - ic\x20in\x20the\n\x20last\x20`message_retention_duration`\x20are\x20alwa\ - ys\x20available\x20to\x20subscribers.\x20For\n\x20instance,\x20it\x20all\ - ows\x20any\x20attached\x20subscription\x20to\x20[seek\x20to\x20a\n\x20ti\ - mestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_\ - time)\n\x20that\x20is\x20up\x20to\x20`message_retention_duration`\x20in\ - \x20the\x20past.\x20If\x20this\x20field\x20is\n\x20not\x20set,\x20messag\ - e\x20retention\x20is\x20controlled\x20by\x20settings\x20on\x20individual\ - \n\x20subscriptions.\x20Cannot\x20be\x20more\x20than\x2031\x20days\x20or\ - \x20less\x20than\x2010\x20minutes.\n\n\r\n\x05\x04\x02\x02\x06\x06\x12\ - \x04\xdb\x01\x02\x1a\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\xdb\x01\x1b5\ - \n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xdb\x0189\n\xf9\x03\n\x02\x04\x03\ - \x12\x06\xe6\x01\0\x84\x02\x01\x1a\xea\x03\x20A\x20message\x20that\x20is\ - \x20published\x20by\x20publishers\x20and\x20consumed\x20by\x20subscriber\ - s.\x20The\n\x20message\x20must\x20contain\x20either\x20a\x20non-empty\ - \x20data\x20field\x20or\x20at\x20least\x20one\x20attribute.\n\x20Note\ - \x20that\x20client\x20libraries\x20represent\x20this\x20object\x20differ\ - ently\n\x20depending\x20on\x20the\x20language.\x20See\x20the\x20correspo\ - nding\x20[client\x20library\n\x20documentation](https://cloud.google.com\ - /pubsub/docs/reference/libraries)\x20for\n\x20more\x20information.\x20Se\ - e\x20[quotas\x20and\x20limits]\n\x20(https://cloud.google.com/pubsub/quo\ - tas)\x20for\x20more\x20information\x20about\x20message\n\x20limits.\n\n\ - \x0b\n\x03\x04\x03\x01\x12\x04\xe6\x01\x08\x15\nq\n\x04\x04\x03\x02\0\ - \x12\x04\xe9\x01\x02\x11\x1ac\x20The\x20message\x20data\x20field.\x20If\ - \x20this\x20field\x20is\x20empty,\x20the\x20message\x20must\x20contain\n\ - \x20at\x20least\x20one\x20attribute.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\ - \x04\xe9\x01\x02\x07\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xe9\x01\x08\x0c\ - \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xe9\x01\x0f\x10\n\xa9\x01\n\x04\x04\ - \x03\x02\x01\x12\x04\xee\x01\x02%\x1a\x9a\x01\x20Attributes\x20for\x20th\ - is\x20message.\x20If\x20this\x20field\x20is\x20empty,\x20the\x20message\ - \x20must\n\x20contain\x20non-empty\x20data.\x20This\x20can\x20be\x20used\ - \x20to\x20filter\x20messages\x20on\x20the\n\x20subscription.\n\n\r\n\x05\ - \x04\x03\x02\x01\x06\x12\x04\xee\x01\x02\x15\n\r\n\x05\x04\x03\x02\x01\ - \x01\x12\x04\xee\x01\x16\x20\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xee\ - \x01#$\n\xb3\x02\n\x04\x04\x03\x02\x02\x12\x04\xf4\x01\x02\x18\x1a\xa4\ - \x02\x20ID\x20of\x20this\x20message,\x20assigned\x20by\x20the\x20server\ - \x20when\x20the\x20message\x20is\x20published.\n\x20Guaranteed\x20to\x20\ - be\x20unique\x20within\x20the\x20topic.\x20This\x20value\x20may\x20be\ - \x20read\x20by\x20a\n\x20subscriber\x20that\x20receives\x20a\x20`PubsubM\ - essage`\x20via\x20a\x20`Pull`\x20call\x20or\x20a\x20push\n\x20delivery.\ - \x20It\x20must\x20not\x20be\x20populated\x20by\x20the\x20publisher\x20in\ - \x20a\x20`Publish`\x20call.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xf4\ - \x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xf4\x01\t\x13\n\r\n\ - \x05\x04\x03\x02\x02\x03\x12\x04\xf4\x01\x16\x17\n\xbb\x01\n\x04\x04\x03\ - \x02\x03\x12\x04\xf9\x01\x02-\x1a\xac\x01\x20The\x20time\x20at\x20which\ - \x20the\x20message\x20was\x20published,\x20populated\x20by\x20the\x20ser\ - ver\x20when\n\x20it\x20receives\x20the\x20`Publish`\x20call.\x20It\x20mu\ - st\x20not\x20be\x20populated\x20by\x20the\n\x20publisher\x20in\x20a\x20`\ - Publish`\x20call.\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xf9\x01\x02\ - \x1b\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xf9\x01\x1c(\n\r\n\x05\x04\ - \x03\x02\x03\x03\x12\x04\xf9\x01+,\n\x94\x04\n\x04\x04\x03\x02\x04\x12\ - \x04\x83\x02\x02\x1a\x1a\x85\x04\x20If\x20non-empty,\x20identifies\x20re\ - lated\x20messages\x20for\x20which\x20publish\x20order\x20should\x20be\n\ - \x20respected.\x20If\x20a\x20`Subscription`\x20has\x20`enable_message_or\ - dering`\x20set\x20to\x20`true`,\n\x20messages\x20published\x20with\x20th\ - e\x20same\x20non-empty\x20`ordering_key`\x20value\x20will\x20be\n\x20del\ - ivered\x20to\x20subscribers\x20in\x20the\x20order\x20in\x20which\x20they\ - \x20are\x20received\x20by\x20the\n\x20Pub/Sub\x20system.\x20All\x20`Pubs\ - ubMessage`s\x20published\x20in\x20a\x20given\x20`PublishRequest`\n\x20mu\ - st\x20specify\x20the\x20same\x20`ordering_key`\x20value.\n\x20For\x20mor\ - e\x20information,\x20see\x20[ordering\n\x20messages](https://cloud.googl\ - e.com/pubsub/docs/ordering).\n\n\r\n\x05\x04\x03\x02\x04\x05\x12\x04\x83\ - \x02\x02\x08\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\x83\x02\t\x15\n\r\n\ - \x05\x04\x03\x02\x04\x03\x12\x04\x83\x02\x18\x19\n0\n\x02\x04\x04\x12\ - \x06\x87\x02\0\x8e\x02\x01\x1a\"\x20Request\x20for\x20the\x20GetTopic\ - \x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x87\x02\x08\x17\ni\n\x04\ - \x04\x04\x02\0\x12\x06\x8a\x02\x02\x8d\x02\x04\x1aY\x20Required.\x20The\ - \x20name\x20of\x20the\x20topic\x20to\x20get.\n\x20Format\x20is\x20`proje\ - cts/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x8a\ - \x02\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\x8a\x02\t\x0e\n\r\n\x05\ - \x04\x04\x02\0\x03\x12\x04\x8a\x02\x11\x12\n\x0f\n\x05\x04\x04\x02\0\x08\ - \x12\x06\x8a\x02\x13\x8d\x02\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\ - \x12\x04\x8b\x02\x04*\n\x0f\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x04\x8c\ - \x02\x04M\n3\n\x02\x04\x05\x12\x06\x91\x02\0\x9c\x02\x01\x1a%\x20Request\ - \x20for\x20the\x20UpdateTopic\x20method.\n\n\x0b\n\x03\x04\x05\x01\x12\ - \x04\x91\x02\x08\x1a\n3\n\x04\x04\x05\x02\0\x12\x04\x93\x02\x02;\x1a%\ - \x20Required.\x20The\x20updated\x20topic\x20object.\n\n\r\n\x05\x04\x05\ - \x02\0\x06\x12\x04\x93\x02\x02\x07\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\ - \x93\x02\x08\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x93\x02\x10\x11\n\r\n\ - \x05\x04\x05\x02\0\x08\x12\x04\x93\x02\x12:\n\x10\n\x08\x04\x05\x02\0\ - \x08\x9c\x08\0\x12\x04\x93\x02\x139\n\xe5\x02\n\x04\x04\x05\x02\x01\x12\ - \x06\x9a\x02\x02\x9b\x02/\x1a\xd4\x02\x20Required.\x20Indicates\x20which\ - \x20fields\x20in\x20the\x20provided\x20topic\x20to\x20update.\x20Must\ - \x20be\n\x20specified\x20and\x20non-empty.\x20Note\x20that\x20if\x20`upd\ - ate_mask`\x20contains\n\x20\"message_storage_policy\"\x20but\x20the\x20`\ - message_storage_policy`\x20is\x20not\x20set\x20in\n\x20the\x20`topic`\ - \x20provided\x20above,\x20then\x20the\x20updated\x20value\x20is\x20deter\ - mined\x20by\x20the\n\x20policy\x20configured\x20at\x20the\x20project\x20\ - or\x20organization\x20level.\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\x9a\ - \x02\x02\x1b\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x9a\x02\x1c'\n\r\n\ - \x05\x04\x05\x02\x01\x03\x12\x04\x9a\x02*+\n\r\n\x05\x04\x05\x02\x01\x08\ - \x12\x04\x9b\x02\x06.\n\x10\n\x08\x04\x05\x02\x01\x08\x9c\x08\0\x12\x04\ - \x9b\x02\x07-\n/\n\x02\x04\x06\x12\x06\x9f\x02\0\xa9\x02\x01\x1a!\x20Req\ - uest\x20for\x20the\x20Publish\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\ - \x04\x9f\x02\x08\x16\n\x88\x01\n\x04\x04\x06\x02\0\x12\x06\xa2\x02\x02\ - \xa5\x02\x04\x1ax\x20Required.\x20The\x20messages\x20in\x20the\x20reques\ - t\x20will\x20be\x20published\x20on\x20this\x20topic.\n\x20Format\x20is\ - \x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x06\x02\0\x05\ - \x12\x04\xa2\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xa2\x02\t\ - \x0e\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xa2\x02\x11\x12\n\x0f\n\x05\x04\ - \x06\x02\0\x08\x12\x06\xa2\x02\x13\xa5\x02\x03\n\x10\n\x08\x04\x06\x02\0\ - \x08\x9c\x08\0\x12\x04\xa3\x02\x04*\n\x0f\n\x07\x04\x06\x02\0\x08\x9f\ - \x08\x12\x04\xa4\x02\x04M\n2\n\x04\x04\x06\x02\x01\x12\x04\xa8\x02\x02O\ - \x1a$\x20Required.\x20The\x20messages\x20to\x20publish.\n\n\r\n\x05\x04\ - \x06\x02\x01\x04\x12\x04\xa8\x02\x02\n\n\r\n\x05\x04\x06\x02\x01\x06\x12\ - \x04\xa8\x02\x0b\x18\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xa8\x02\x19!\ - \n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xa8\x02$%\n\r\n\x05\x04\x06\x02\ - \x01\x08\x12\x04\xa8\x02&N\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\ - \x04\xa8\x02'M\n2\n\x02\x04\x07\x12\x06\xac\x02\0\xb1\x02\x01\x1a$\x20Re\ - sponse\x20for\x20the\x20`Publish`\x20method.\n\n\x0b\n\x03\x04\x07\x01\ - \x12\x04\xac\x02\x08\x17\n\xa8\x01\n\x04\x04\x07\x02\0\x12\x04\xb0\x02\ - \x02\"\x1a\x99\x01\x20The\x20server-assigned\x20ID\x20of\x20each\x20publ\ - ished\x20message,\x20in\x20the\x20same\x20order\x20as\n\x20the\x20messag\ - es\x20in\x20the\x20request.\x20IDs\x20are\x20guaranteed\x20to\x20be\x20u\ - nique\x20within\n\x20the\x20topic.\n\n\r\n\x05\x04\x07\x02\0\x04\x12\x04\ - \xb0\x02\x02\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xb0\x02\x0b\x11\n\r\n\ - \x05\x04\x07\x02\0\x01\x12\x04\xb0\x02\x12\x1d\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\xb0\x02\x20!\n4\n\x02\x04\x08\x12\x06\xb4\x02\0\xc5\x02\x01\ - \x1a&\x20Request\x20for\x20the\x20`ListTopics`\x20method.\n\n\x0b\n\x03\ - \x04\x08\x01\x12\x04\xb4\x02\x08\x19\np\n\x04\x04\x08\x02\0\x12\x06\xb7\ - \x02\x02\xbc\x02\x04\x1a`\x20Required.\x20The\x20name\x20of\x20the\x20pr\ - oject\x20in\x20which\x20to\x20list\x20topics.\n\x20Format\x20is\x20`proj\ - ects/{project-id}`.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xb7\x02\x02\ - \x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xb7\x02\t\x10\n\r\n\x05\x04\x08\ - \x02\0\x03\x12\x04\xb7\x02\x13\x14\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\ - \xb7\x02\x15\xbc\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\ - \xb8\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xb9\x02\x04\ - \xbb\x02\x05\n3\n\x04\x04\x08\x02\x01\x12\x04\xbf\x02\x02\x16\x1a%\x20Ma\ - ximum\x20number\x20of\x20topics\x20to\x20return.\n\n\r\n\x05\x04\x08\x02\ - \x01\x05\x12\x04\xbf\x02\x02\x07\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\ - \xbf\x02\x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xbf\x02\x14\x15\n\ - \xc4\x01\n\x04\x04\x08\x02\x02\x12\x04\xc4\x02\x02\x18\x1a\xb5\x01\x20Th\ - e\x20value\x20returned\x20by\x20the\x20last\x20`ListTopicsResponse`;\x20\ - indicates\x20that\x20this\x20is\n\x20a\x20continuation\x20of\x20a\x20pri\ - or\x20`ListTopics`\x20call,\x20and\x20that\x20the\x20system\x20should\n\ - \x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x08\x02\ - \x02\x05\x12\x04\xc4\x02\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\ - \xc4\x02\t\x13\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xc4\x02\x16\x17\n5\ - \n\x02\x04\t\x12\x06\xc8\x02\0\xcf\x02\x01\x1a'\x20Response\x20for\x20th\ - e\x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xc8\x02\x08\ - \x1a\n%\n\x04\x04\t\x02\0\x12\x04\xca\x02\x02\x1c\x1a\x17\x20The\x20resu\ - lting\x20topics.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\xca\x02\x02\n\n\r\n\ - \x05\x04\t\x02\0\x06\x12\x04\xca\x02\x0b\x10\n\r\n\x05\x04\t\x02\0\x01\ - \x12\x04\xca\x02\x11\x17\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xca\x02\x1a\ - \x1b\n\x99\x01\n\x04\x04\t\x02\x01\x12\x04\xce\x02\x02\x1d\x1a\x8a\x01\ - \x20If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20mo\ - re\x20topics\x20that\x20match\x20the\n\x20request;\x20this\x20value\x20s\ - hould\x20be\x20passed\x20in\x20a\x20new\x20`ListTopicsRequest`.\n\n\r\n\ - \x05\x04\t\x02\x01\x05\x12\x04\xce\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\ - \x01\x12\x04\xce\x02\t\x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xce\x02\ - \x1b\x1c\n@\n\x02\x04\n\x12\x06\xd2\x02\0\xe1\x02\x01\x1a2\x20Request\ - \x20for\x20the\x20`ListTopicSubscriptions`\x20method.\n\n\x0b\n\x03\x04\ - \n\x01\x12\x04\xd2\x02\x08%\n\x85\x01\n\x04\x04\n\x02\0\x12\x06\xd5\x02\ - \x02\xd8\x02\x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20topic\ - \x20that\x20subscriptions\x20are\x20attached\x20to.\n\x20Format\x20is\ - \x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\n\x02\0\x05\x12\ - \x04\xd5\x02\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd5\x02\t\x0e\n\r\ - \n\x05\x04\n\x02\0\x03\x12\x04\xd5\x02\x11\x12\n\x0f\n\x05\x04\n\x02\0\ - \x08\x12\x06\xd5\x02\x13\xd8\x02\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\ - \0\x12\x04\xd6\x02\x04*\n\x0f\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x04\xd7\ - \x02\x04M\n?\n\x04\x04\n\x02\x01\x12\x04\xdb\x02\x02\x16\x1a1\x20Maximum\ - \x20number\x20of\x20subscription\x20names\x20to\x20return.\n\n\r\n\x05\ - \x04\n\x02\x01\x05\x12\x04\xdb\x02\x02\x07\n\r\n\x05\x04\n\x02\x01\x01\ - \x12\x04\xdb\x02\x08\x11\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xdb\x02\x14\ - \x15\n\xdc\x01\n\x04\x04\n\x02\x02\x12\x04\xe0\x02\x02\x18\x1a\xcd\x01\ - \x20The\x20value\x20returned\x20by\x20the\x20last\x20`ListTopicSubscript\ - ionsResponse`;\x20indicates\n\x20that\x20this\x20is\x20a\x20continuation\ - \x20of\x20a\x20prior\x20`ListTopicSubscriptions`\x20call,\x20and\n\x20th\ - at\x20the\x20system\x20should\x20return\x20the\x20next\x20page\x20of\x20\ - data.\n\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\xe0\x02\x02\x08\n\r\n\x05\ - \x04\n\x02\x02\x01\x12\x04\xe0\x02\t\x13\n\r\n\x05\x04\n\x02\x02\x03\x12\ - \x04\xe0\x02\x16\x17\nA\n\x02\x04\x0b\x12\x06\xe4\x02\0\xee\x02\x01\x1a3\ - \x20Response\x20for\x20the\x20`ListTopicSubscriptions`\x20method.\n\n\ - \x0b\n\x03\x04\x0b\x01\x12\x04\xe4\x02\x08&\n\\\n\x04\x04\x0b\x02\0\x12\ - \x06\xe6\x02\x02\xe8\x02\x05\x1aL\x20The\x20names\x20of\x20subscriptions\ - \x20attached\x20to\x20the\x20topic\x20specified\x20in\x20the\x20request.\ - \n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xe6\x02\x02\n\n\r\n\x05\x04\x0b\ - \x02\0\x05\x12\x04\xe6\x02\x0b\x11\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\ - \xe6\x02\x12\x1f\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xe6\x02\"#\n\x0f\n\ - \x05\x04\x0b\x02\0\x08\x12\x06\xe6\x02$\xe8\x02\x04\n\x11\n\x07\x04\x0b\ - \x02\0\x08\x9f\x08\x12\x06\xe6\x02%\xe8\x02\x03\n\xc7\x01\n\x04\x04\x0b\ - \x02\x01\x12\x04\xed\x02\x02\x1d\x1a\xb8\x01\x20If\x20not\x20empty,\x20i\ - ndicates\x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\ - \x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20passe\ - d\x20in\x20a\x20new\n\x20`ListTopicSubscriptionsRequest`\x20to\x20get\ - \x20more\x20subscriptions.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xed\ - \x02\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xed\x02\t\x18\n\r\n\ - \x05\x04\x0b\x02\x01\x03\x12\x04\xed\x02\x1b\x1c\n<\n\x02\x04\x0c\x12\ - \x06\xf1\x02\0\x80\x03\x01\x1a.\x20Request\x20for\x20the\x20`ListTopicSn\ - apshots`\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xf1\x02\x08!\n\x81\ - \x01\n\x04\x04\x0c\x02\0\x12\x06\xf4\x02\x02\xf7\x02\x04\x1aq\x20Require\ - d.\x20The\x20name\x20of\x20the\x20topic\x20that\x20snapshots\x20are\x20a\ - ttached\x20to.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.\ - \n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xf4\x02\x02\x08\n\r\n\x05\x04\x0c\ - \x02\0\x01\x12\x04\xf4\x02\t\x0e\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xf4\ - \x02\x11\x12\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xf4\x02\x13\xf7\x02\ - \x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xf5\x02\x04*\n\x0f\ - \n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x04\xf6\x02\x04M\n;\n\x04\x04\x0c\ - \x02\x01\x12\x04\xfa\x02\x02\x16\x1a-\x20Maximum\x20number\x20of\x20snap\ - shot\x20names\x20to\x20return.\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\ - \xfa\x02\x02\x07\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xfa\x02\x08\x11\n\ - \r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xfa\x02\x14\x15\n\xd4\x01\n\x04\x04\ - \x0c\x02\x02\x12\x04\xff\x02\x02\x18\x1a\xc5\x01\x20The\x20value\x20retu\ - rned\x20by\x20the\x20last\x20`ListTopicSnapshotsResponse`;\x20indicates\ - \n\x20that\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`Li\ - stTopicSnapshots`\x20call,\x20and\n\x20that\x20the\x20system\x20should\ - \x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x0c\x02\ - \x02\x05\x12\x04\xff\x02\x02\x08\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\ - \xff\x02\t\x13\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xff\x02\x16\x17\n=\ - \n\x02\x04\r\x12\x06\x83\x03\0\x8b\x03\x01\x1a/\x20Response\x20for\x20th\ - e\x20`ListTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\r\x01\x12\x04\x83\ - \x03\x08\"\nB\n\x04\x04\r\x02\0\x12\x04\x85\x03\x02\x20\x1a4\x20The\x20n\ - ames\x20of\x20the\x20snapshots\x20that\x20match\x20the\x20request.\n\n\r\ - \n\x05\x04\r\x02\0\x04\x12\x04\x85\x03\x02\n\n\r\n\x05\x04\r\x02\0\x05\ - \x12\x04\x85\x03\x0b\x11\n\r\n\x05\x04\r\x02\0\x01\x12\x04\x85\x03\x12\ - \x1b\n\r\n\x05\x04\r\x02\0\x03\x12\x04\x85\x03\x1e\x1f\n\xbb\x01\n\x04\ - \x04\r\x02\x01\x12\x04\x8a\x03\x02\x1d\x1a\xac\x01\x20If\x20not\x20empty\ - ,\x20indicates\x20that\x20there\x20may\x20be\x20more\x20snapshots\x20tha\ - t\x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20pass\ - ed\x20in\x20a\x20new\n\x20`ListTopicSnapshotsRequest`\x20to\x20get\x20mo\ - re\x20snapshots.\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\x8a\x03\x02\x08\n\ - \r\n\x05\x04\r\x02\x01\x01\x12\x04\x8a\x03\t\x18\n\r\n\x05\x04\r\x02\x01\ - \x03\x12\x04\x8a\x03\x1b\x1c\n5\n\x02\x04\x0e\x12\x06\x8e\x03\0\x95\x03\ - \x01\x1a'\x20Request\x20for\x20the\x20`DeleteTopic`\x20method.\n\n\x0b\n\ - \x03\x04\x0e\x01\x12\x04\x8e\x03\x08\x1a\nh\n\x04\x04\x0e\x02\0\x12\x06\ - \x91\x03\x02\x94\x03\x04\x1aX\x20Required.\x20Name\x20of\x20the\x20topic\ - \x20to\x20delete.\n\x20Format\x20is\x20`projects/{project}/topics/{topic\ - }`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x91\x03\x02\x08\n\r\n\x05\x04\ - \x0e\x02\0\x01\x12\x04\x91\x03\t\x0e\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\ - \x91\x03\x11\x12\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\x91\x03\x13\x94\ - \x03\x03\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\x92\x03\x04*\n\ - \x0f\n\x07\x04\x0e\x02\0\x08\x9f\x08\x12\x04\x93\x03\x04M\n:\n\x02\x04\ - \x0f\x12\x06\x98\x03\0\xa1\x03\x01\x1a,\x20Request\x20for\x20the\x20Deta\ - chSubscription\x20method.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x98\x03\x08!\ - \nu\n\x04\x04\x0f\x02\0\x12\x06\x9b\x03\x02\xa0\x03\x04\x1ae\x20Required\ - .\x20The\x20subscription\x20to\x20detach.\n\x20Format\x20is\x20`projects\ - /{project}/subscriptions/{subscription}`.\n\n\r\n\x05\x04\x0f\x02\0\x05\ - \x12\x04\x9b\x03\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x9b\x03\t\ - \x15\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\x9b\x03\x18\x19\n\x0f\n\x05\x04\ - \x0f\x02\0\x08\x12\x06\x9b\x03\x1a\xa0\x03\x03\n\x10\n\x08\x04\x0f\x02\0\ - \x08\x9c\x08\0\x12\x04\x9c\x03\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\ - \x08\x12\x06\x9d\x03\x04\x9f\x03\x05\nS\n\x02\x04\x10\x12\x04\xa5\x03\0%\ - \x1aG\x20Response\x20for\x20the\x20DetachSubscription\x20method.\n\x20Re\ - served\x20for\x20future\x20use.\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xa5\ - \x03\x08\"\n\xe2\x01\n\x02\x06\x01\x12\x06\xaa\x03\0\x88\x05\x01\x1a\xd3\ - \x01\x20The\x20service\x20that\x20an\x20application\x20uses\x20to\x20man\ - ipulate\x20subscriptions\x20and\x20to\n\x20consume\x20messages\x20from\ - \x20a\x20subscription\x20via\x20the\x20`Pull`\x20method\x20or\x20by\n\ - \x20establishing\x20a\x20bi-directional\x20stream\x20using\x20the\x20`St\ - reamingPull`\x20method.\n\n\x0b\n\x03\x06\x01\x01\x12\x04\xaa\x03\x08\ - \x12\n\x0b\n\x03\x06\x01\x03\x12\x04\xab\x03\x02=\n\r\n\x05\x06\x01\x03\ - \x99\x08\x12\x04\xab\x03\x02=\n\r\n\x03\x06\x01\x03\x12\x06\xac\x03\x02\ - \xae\x03/\n\x0f\n\x05\x06\x01\x03\x9a\x08\x12\x06\xac\x03\x02\xae\x03/\n\ - \xaa\x05\n\x04\x06\x01\x02\0\x12\x06\xbb\x03\x02\xc2\x03\x03\x1a\x99\x05\ - \x20Creates\x20a\x20subscription\x20to\x20a\x20given\x20topic.\x20See\ - \x20the\x20[resource\x20name\x20rules]\n\x20(https://cloud.google.com/pu\ - bsub/docs/pubsub-basics#resource_names).\n\x20If\x20the\x20subscription\ - \x20already\x20exists,\x20returns\x20`ALREADY_EXISTS`.\n\x20If\x20the\ - \x20corresponding\x20topic\x20doesn't\x20exist,\x20returns\x20`NOT_FOUND\ - `.\n\n\x20If\x20the\x20name\x20is\x20not\x20provided\x20in\x20the\x20req\ - uest,\x20the\x20server\x20will\x20assign\x20a\x20random\n\x20name\x20for\ - \x20this\x20subscription\x20on\x20the\x20same\x20project\x20as\x20the\ - \x20topic,\x20conforming\n\x20to\x20the\x20[resource\x20name\x20format]\ - \n\x20(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names\ - ).\x20The\n\x20generated\x20name\x20is\x20populated\x20in\x20the\x20retu\ - rned\x20Subscription\x20object.\x20Note\x20that\n\x20for\x20REST\x20API\ - \x20requests,\x20you\x20must\x20specify\x20a\x20name\x20in\x20the\x20req\ - uest.\n\n\r\n\x05\x06\x01\x02\0\x01\x12\x04\xbb\x03\x06\x18\n\r\n\x05\ - \x06\x01\x02\0\x02\x12\x04\xbb\x03\x19%\n\r\n\x05\x06\x01\x02\0\x03\x12\ - \x04\xbb\x030<\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xbc\x03\x04\xbf\x03\ - \x06\n\x13\n\t\x06\x01\x02\0\x04\xb0\xca\xbc\"\x12\x06\xbc\x03\x04\xbf\ - \x03\x06\n\x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xc0\x03\x04\xc1\x036\n\ - \x12\n\x08\x06\x01\x02\0\x04\x9b\x08\0\x12\x06\xc0\x03\x04\xc1\x036\nC\n\ - \x04\x06\x01\x02\x01\x12\x06\xc5\x03\x02\xca\x03\x03\x1a3\x20Gets\x20the\ + otobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n\x14M\ + essageStoragePolicy\x12>\n\x1ballowed_persistence_regions\x18\x01\x20\ + \x03(\tR\x19allowedPersistenceRegions\"\x93\x02\n\x05Topic\x12\x12\n\x04\ + name\x18\x01\x20\x01(\tR\x04name\x12;\n\x06labels\x18\x02\x20\x03(\x0b2#\ + .google.pubsub.v1.Topic.LabelsEntryR\x06labels\x12\\\n\x16message_storag\ + e_policy\x18\x03\x20\x01(\x0b2&.google.pubsub.v1.MessageStoragePolicyR\ + \x14messageStoragePolicy\x12\x20\n\x0ckms_key_name\x18\x05\x20\x01(\tR\n\ + kmsKeyName\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ + \x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xb4\ + \x02\n\rPubsubMessage\x12\x12\n\x04data\x18\x01\x20\x01(\x0cR\x04data\ + \x12O\n\nattributes\x18\x02\x20\x03(\x0b2/.google.pubsub.v1.PubsubMessag\ + e.AttributesEntryR\nattributes\x12\x1d\n\nmessage_id\x18\x03\x20\x01(\tR\ + \tmessageId\x12=\n\x0cpublish_time\x18\x04\x20\x01(\x0b2\x1a.google.prot\ + obuf.TimestampR\x0bpublishTime\x12!\n\x0cordering_key\x18\x05\x20\x01(\t\ + R\x0borderingKey\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\x01\x20\ + \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\ + \x01\"'\n\x0fGetTopicRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05t\ + opic\"\x80\x01\n\x12UpdateTopicRequest\x12-\n\x05topic\x18\x01\x20\x01(\ + \x0b2\x17.google.pubsub.v1.TopicR\x05topic\x12;\n\x0bupdate_mask\x18\x02\ + \x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"c\n\x0ePublis\ + hRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\x12;\n\x08messa\ + ges\x18\x02\x20\x03(\x0b2\x1f.google.pubsub.v1.PubsubMessageR\x08message\ + s\"2\n\x0fPublishResponse\x12\x1f\n\x0bmessage_ids\x18\x01\x20\x03(\tR\n\ + messageIds\"i\n\x11ListTopicsRequest\x12\x18\n\x07project\x18\x01\x20\ + \x01(\tR\x07project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\ + ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"m\n\x12ListTopi\ + csResponse\x12/\n\x06topics\x18\x01\x20\x03(\x0b2\x17.google.pubsub.v1.T\ + opicR\x06topics\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageT\ + oken\"q\n\x1dListTopicSubscriptionsRequest\x12\x14\n\x05topic\x18\x01\ + \x20\x01(\tR\x05topic\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08page\ + Size\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"n\n\x1eListTo\ + picSubscriptionsResponse\x12$\n\rsubscriptions\x18\x01\x20\x03(\tR\rsubs\ + criptions\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\ + m\n\x19ListTopicSnapshotsRequest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\ + \x05topic\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\ + \n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"b\n\x1aListTopicSnapshots\ + Response\x12\x1c\n\tsnapshots\x18\x01\x20\x03(\tR\tsnapshots\x12&\n\x0fn\ + ext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"*\n\x12DeleteTopicReq\ + uest\x12\x14\n\x05topic\x18\x01\x20\x01(\tR\x05topic\"\x90\x05\n\x0cSubs\ + cription\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\x05topi\ + c\x18\x02\x20\x01(\tR\x05topic\x12=\n\x0bpush_config\x18\x04\x20\x01(\ + \x0b2\x1c.google.pubsub.v1.PushConfigR\npushConfig\x120\n\x14ack_deadlin\ + e_seconds\x18\x05\x20\x01(\x05R\x12ackDeadlineSeconds\x122\n\x15retain_a\ + cked_messages\x18\x07\x20\x01(\x08R\x13retainAckedMessages\x12W\n\x1ames\ + sage_retention_duration\x18\x08\x20\x01(\x0b2\x19.google.protobuf.Durati\ + onR\x18messageRetentionDuration\x12B\n\x06labels\x18\t\x20\x03(\x0b2*.go\ + ogle.pubsub.v1.Subscription.LabelsEntryR\x06labels\x126\n\x17enable_mess\ + age_ordering\x18\n\x20\x01(\x08R\x15enableMessageOrdering\x12O\n\x11expi\ + ration_policy\x18\x0b\x20\x01(\x0b2\".google.pubsub.v1.ExpirationPolicyR\ + \x10expirationPolicy\x12P\n\x12dead_letter_policy\x18\r\x20\x01(\x0b2\".\ + google.pubsub.v1.DeadLetterPolicyR\x10deadLetterPolicy\x1a9\n\x0bLabelsE\ + ntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\ + \x02\x20\x01(\tR\x05value:\x028\x01\"r\n\x10DeadLetterPolicy\x12*\n\x11d\ + ead_letter_topic\x18\x01\x20\x01(\tR\x0fdeadLetterTopic\x122\n\x15max_de\ + livery_attempts\x18\x02\x20\x01(\x05R\x13maxDeliveryAttempts\"?\n\x10Exp\ + irationPolicy\x12+\n\x03ttl\x18\x01\x20\x01(\x0b2\x19.google.protobuf.Du\ + rationR\x03ttl\"\xfd\x02\n\nPushConfig\x12#\n\rpush_endpoint\x18\x01\x20\ + \x01(\tR\x0cpushEndpoint\x12L\n\nattributes\x18\x02\x20\x03(\x0b2,.googl\ + e.pubsub.v1.PushConfig.AttributesEntryR\nattributes\x12G\n\noidc_token\ + \x18\x03\x20\x01(\x0b2&.google.pubsub.v1.PushConfig.OidcTokenH\0R\toidcT\ + oken\x1a[\n\tOidcToken\x122\n\x15service_account_email\x18\x01\x20\x01(\ + \tR\x13serviceAccountEmail\x12\x1a\n\x08audience\x18\x02\x20\x01(\tR\x08\ + audience\x1a=\n\x0fAttributesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ + \x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\x17\n\ + \x15authentication_method\"\x8e\x01\n\x0fReceivedMessage\x12\x15\n\x06ac\ + k_id\x18\x01\x20\x01(\tR\x05ackId\x129\n\x07message\x18\x02\x20\x01(\x0b\ + 2\x1f.google.pubsub.v1.PubsubMessageR\x07message\x12)\n\x10delivery_atte\ + mpt\x18\x03\x20\x01(\x05R\x0fdeliveryAttempt\"<\n\x16GetSubscriptionRequ\ + est\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"\x9c\ + \x01\n\x19UpdateSubscriptionRequest\x12B\n\x0csubscription\x18\x01\x20\ + \x01(\x0b2\x1e.google.pubsub.v1.SubscriptionR\x0csubscription\x12;\n\x0b\ + update_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdate\ + Mask\"p\n\x18ListSubscriptionsRequest\x12\x18\n\x07project\x18\x01\x20\ + \x01(\tR\x07project\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\ + ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\"\x89\x01\n\x19L\ + istSubscriptionsResponse\x12D\n\rsubscriptions\x18\x01\x20\x03(\x0b2\x1e\ + .google.pubsub.v1.SubscriptionR\rsubscriptions\x12&\n\x0fnext_page_token\ + \x18\x02\x20\x01(\tR\rnextPageToken\"?\n\x19DeleteSubscriptionRequest\ + \x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubscription\"|\n\x17Mod\ + ifyPushConfigRequest\x12\"\n\x0csubscription\x18\x01\x20\x01(\tR\x0csubs\ + cription\x12=\n\x0bpush_config\x18\x02\x20\x01(\x0b2\x1c.google.pubsub.v\ + 1.PushConfigR\npushConfig\"\x83\x01\n\x0bPullRequest\x12\"\n\x0csubscrip\ + tion\x18\x01\x20\x01(\tR\x0csubscription\x12-\n\x12return_immediately\ + \x18\x02\x20\x01(\x08R\x11returnImmediately\x12!\n\x0cmax_messages\x18\ + \x03\x20\x01(\x05R\x0bmaxMessages\"^\n\x0cPullResponse\x12N\n\x11receive\ + d_messages\x18\x01\x20\x03(\x0b2!.google.pubsub.v1.ReceivedMessageR\x10r\ + eceivedMessages\"\x89\x01\n\x18ModifyAckDeadlineRequest\x12\"\n\x0csubsc\ + ription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x04\ + \x20\x03(\tR\x06ackIds\x120\n\x14ack_deadline_seconds\x18\x03\x20\x01(\ + \x05R\x12ackDeadlineSeconds\"Q\n\x12AcknowledgeRequest\x12\"\n\x0csubscr\ + iption\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\x02\ + \x20\x03(\tR\x06ackIds\"\x81\x02\n\x14StreamingPullRequest\x12\"\n\x0csu\ + bscription\x18\x01\x20\x01(\tR\x0csubscription\x12\x17\n\x07ack_ids\x18\ + \x02\x20\x03(\tR\x06ackIds\x126\n\x17modify_deadline_seconds\x18\x03\x20\ + \x03(\x05R\x15modifyDeadlineSeconds\x125\n\x17modify_deadline_ack_ids\ + \x18\x04\x20\x03(\tR\x14modifyDeadlineAckIds\x12=\n\x1bstream_ack_deadli\ + ne_seconds\x18\x05\x20\x01(\x05R\x18streamAckDeadlineSeconds\"g\n\x15Str\ + eamingPullResponse\x12N\n\x11received_messages\x18\x01\x20\x03(\x0b2!.go\ + ogle.pubsub.v1.ReceivedMessageR\x10receivedMessages\"\xd7\x01\n\x15Creat\ + eSnapshotRequest\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\"\n\ + \x0csubscription\x18\x02\x20\x01(\tR\x0csubscription\x12K\n\x06labels\ + \x18\x03\x20\x03(\x0b23.google.pubsub.v1.CreateSnapshotRequest.LabelsEnt\ + ryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ + \x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x8c\ + \x01\n\x15UpdateSnapshotRequest\x126\n\x08snapshot\x18\x01\x20\x01(\x0b2\ + \x1a.google.pubsub.v1.SnapshotR\x08snapshot\x12;\n\x0bupdate_mask\x18\ + \x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMask\"\xec\x01\ + \n\x08Snapshot\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x14\n\ + \x05topic\x18\x02\x20\x01(\tR\x05topic\x12;\n\x0bexpire_time\x18\x03\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\nexpireTime\x12>\n\x06labels\ + \x18\x04\x20\x03(\x0b2&.google.pubsub.v1.Snapshot.LabelsEntryR\x06labels\ + \x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\ + \x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"0\n\x12GetSnapsh\ + otRequest\x12\x1a\n\x08snapshot\x18\x01\x20\x01(\tR\x08snapshot\"l\n\x14\ + ListSnapshotsRequest\x12\x18\n\x07project\x18\x01\x20\x01(\tR\x07project\ + \x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_\ + token\x18\x03\x20\x01(\tR\tpageToken\"y\n\x15ListSnapshotsResponse\x128\ + \n\tsnapshots\x18\x01\x20\x03(\x0b2\x1a.google.pubsub.v1.SnapshotR\tsnap\ + shots\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"3\n\ + \x15DeleteSnapshotRequest\x12\x1a\n\x08snapshot\x18\x01\x20\x01(\tR\x08s\ + napshot\"\x8b\x01\n\x0bSeekRequest\x12\"\n\x0csubscription\x18\x01\x20\ + \x01(\tR\x0csubscription\x120\n\x04time\x18\x02\x20\x01(\x0b2\x1a.google\ + .protobuf.TimestampH\0R\x04time\x12\x1c\n\x08snapshot\x18\x03\x20\x01(\t\ + H\0R\x08snapshotB\x08\n\x06target\"\x0e\n\x0cSeekResponse2\xb1\t\n\tPubl\ + isher\x12j\n\x0bCreateTopic\x12\x17.google.pubsub.v1.Topic\x1a\x17.googl\ + e.pubsub.v1.Topic\")\x82\xd3\xe4\x93\x02#\x1a\x1e/v1/{name=projects/*/to\ + pics/*}:\x01*\x12}\n\x0bUpdateTopic\x12$.google.pubsub.v1.UpdateTopicReq\ + uest\x1a\x17.google.pubsub.v1.Topic\"/\x82\xd3\xe4\x93\x02)2$/v1/{topic.\ + name=projects/*/topics/*}:\x01*\x12\x82\x01\n\x07Publish\x12\x20.google.\ + pubsub.v1.PublishRequest\x1a!.google.pubsub.v1.PublishResponse\"2\x82\ + \xd3\xe4\x93\x02,\"'/v1/{topic=projects/*/topics/*}:publish:\x01*\x12o\n\ + \x08GetTopic\x12!.google.pubsub.v1.GetTopicRequest\x1a\x17.google.pubsub\ + .v1.Topic\"'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{topic=projects/*/topics/*}\ + \x12\x80\x01\n\nListTopics\x12#.google.pubsub.v1.ListTopicsRequest\x1a$.\ + google.pubsub.v1.ListTopicsResponse\"'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{\ + project=projects/*}/topics\x12\xb2\x01\n\x16ListTopicSubscriptions\x12/.\ + google.pubsub.v1.ListTopicSubscriptionsRequest\x1a0.google.pubsub.v1.Lis\ + tTopicSubscriptionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{topic=proje\ + cts/*/topics/*}/subscriptions\x12\xa2\x01\n\x12ListTopicSnapshots\x12+.g\ + oogle.pubsub.v1.ListTopicSnapshotsRequest\x1a,.google.pubsub.v1.ListTopi\ + cSnapshotsResponse\"1\x82\xd3\xe4\x93\x02+\x12)/v1/{topic=projects/*/top\ + ics/*}/snapshots\x12t\n\x0bDeleteTopic\x12$.google.pubsub.v1.DeleteTopic\ + Request\x1a\x16.google.protobuf.Empty\"'\x82\xd3\xe4\x93\x02!*\x1f/v1/{t\ + opic=projects/*/topics/*}\x1ap\xd2AUhttps://www.googleapis.com/auth/clou\ + d-platform,https://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.googlea\ + pis.com2\xeb\x12\n\nSubscriber\x12\x86\x01\n\x12CreateSubscription\x12\ + \x1e.google.pubsub.v1.Subscription\x1a\x1e.google.pubsub.v1.Subscription\ + \"0\x82\xd3\xe4\x93\x02*\x1a%/v1/{name=projects/*/subscriptions/*}:\x01*\ + \x12\x92\x01\n\x0fGetSubscription\x12(.google.pubsub.v1.GetSubscriptionR\ + equest\x1a\x1e.google.pubsub.v1.Subscription\"5\x82\xd3\xe4\x93\x02/\x12\ + -/v1/{subscription=projects/*/subscriptions/*}\x12\xa0\x01\n\x12UpdateSu\ + bscription\x12+.google.pubsub.v1.UpdateSubscriptionRequest\x1a\x1e.googl\ + e.pubsub.v1.Subscription\"=\x82\xd3\xe4\x93\x02722/v1/{subscription.name\ + =projects/*/subscriptions/*}:\x01*\x12\x9c\x01\n\x11ListSubscriptions\ + \x12*.google.pubsub.v1.ListSubscriptionsRequest\x1a+.google.pubsub.v1.Li\ + stSubscriptionsResponse\".\x82\xd3\xe4\x93\x02(\x12&/v1/{project=project\ + s/*}/subscriptions\x12\x90\x01\n\x12DeleteSubscription\x12+.google.pubsu\ + b.v1.DeleteSubscriptionRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\ + \xe4\x93\x02/*-/v1/{subscription=projects/*/subscriptions/*}\x12\xa3\x01\ + \n\x11ModifyAckDeadline\x12*.google.pubsub.v1.ModifyAckDeadlineRequest\ + \x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02D\"?/v1/{subscripti\ + on=projects/*/subscriptions/*}:modifyAckDeadline:\x01*\x12\x91\x01\n\x0b\ + Acknowledge\x12$.google.pubsub.v1.AcknowledgeRequest\x1a\x16.google.prot\ + obuf.Empty\"D\x82\xd3\xe4\x93\x02>\"9/v1/{subscription=projects/*/subscr\ + iptions/*}:acknowledge:\x01*\x12\x84\x01\n\x04Pull\x12\x1d.google.pubsub\ + .v1.PullRequest\x1a\x1e.google.pubsub.v1.PullResponse\"=\x82\xd3\xe4\x93\ + \x027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\x01*\x12f\n\ + \rStreamingPull\x12&.google.pubsub.v1.StreamingPullRequest\x1a'.google.p\ + ubsub.v1.StreamingPullResponse\"\0(\x010\x01\x12\xa0\x01\n\x10ModifyPush\ + Config\x12).google.pubsub.v1.ModifyPushConfigRequest\x1a\x16.google.prot\ + obuf.Empty\"I\x82\xd3\xe4\x93\x02C\">/v1/{subscription=projects/*/subscr\ + iptions/*}:modifyPushConfig:\x01*\x12~\n\x0bGetSnapshot\x12$.google.pubs\ + ub.v1.GetSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\"-\x82\xd3\ + \xe4\x93\x02'\x12%/v1/{snapshot=projects/*/snapshots/*}\x12\x8c\x01\n\rL\ + istSnapshots\x12&.google.pubsub.v1.ListSnapshotsRequest\x1a'.google.pubs\ + ub.v1.ListSnapshotsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/{project=pr\ + ojects/*}/snapshots\x12\x83\x01\n\x0eCreateSnapshot\x12'.google.pubsub.v\ + 1.CreateSnapshotRequest\x1a\x1a.google.pubsub.v1.Snapshot\",\x82\xd3\xe4\ + \x93\x02&\x1a!/v1/{name=projects/*/snapshots/*}:\x01*\x12\x8c\x01\n\x0eU\ + pdateSnapshot\x12'.google.pubsub.v1.UpdateSnapshotRequest\x1a\x1a.google\ + .pubsub.v1.Snapshot\"5\x82\xd3\xe4\x93\x02/2*/v1/{snapshot.name=projects\ + /*/snapshots/*}:\x01*\x12\x80\x01\n\x0eDeleteSnapshot\x12'.google.pubsub\ + .v1.DeleteSnapshotRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\ + \x93\x02'*%/v1/{snapshot=projects/*/snapshots/*}\x12\x84\x01\n\x04Seek\ + \x12\x1d.google.pubsub.v1.SeekRequest\x1a\x1e.google.pubsub.v1.SeekRespo\ + nse\"=\x82\xd3\xe4\x93\x027\"2/v1/{subscription=projects/*/subscriptions\ + /*}:seek:\x01*\x1ap\xd2AUhttps://www.googleapis.com/auth/cloud-platform,\ + https://www.googleapis.com/auth/pubsub\xcaA\x15pubsub.googleapis.comB\ + \xae\x01\n\x14com.google.pubsub.v1B\x0bPubsubProtoP\x01Z6google.golang.o\ + rg/genproto/googleapis/pubsub/v1;pubsub\xf8\x01\x01\xaa\x02\x16Google.Cl\ + oud.PubSub.V1\xca\x02\x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cl\ + oud::PubSub::V1J\xf6\xd3\x02\n\x07\x12\x05\x0f\0\xaa\x08\x17\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x19\n\t\n\x02\x03\0\x12\ + \x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0!\n\t\n\x02\x03\x02\x12\x03\ + \x15\0(\n\t\n\x02\x03\x03\x12\x03\x16\0%\n\t\n\x02\x03\x04\x12\x03\x17\0\ + *\n\t\n\x02\x03\x05\x12\x03\x18\0)\n\x08\n\x01\x08\x12\x03\x1a\0\x1f\n\t\ + \n\x02\x08\x1f\x12\x03\x1a\0\x1f\n\x08\n\x01\x08\x12\x03\x1b\03\n\t\n\ + \x02\x08%\x12\x03\x1b\03\n\x08\n\x01\x08\x12\x03\x1c\0M\n\t\n\x02\x08\ + \x0b\x12\x03\x1c\0M\n\x08\n\x01\x08\x12\x03\x1d\0\"\n\t\n\x02\x08\n\x12\ + \x03\x1d\0\"\n\x08\n\x01\x08\x12\x03\x1e\0,\n\t\n\x02\x08\x08\x12\x03\ + \x1e\0,\n\x08\n\x01\x08\x12\x03\x1f\0-\n\t\n\x02\x08\x01\x12\x03\x1f\0-\ + \n\x08\n\x01\x08\x12\x03\x20\03\n\t\n\x02\x08)\x12\x03\x20\03\n\x08\n\ + \x01\x08\x12\x03!\02\n\t\n\x02\x08-\x12\x03!\02\nj\n\x02\x06\0\x12\x04%\ + \0t\x01\x1a^\x20The\x20service\x20that\x20an\x20application\x20uses\x20t\ + o\x20manipulate\x20topics,\x20and\x20to\x20send\n\x20messages\x20to\x20a\ + \x20topic.\n\n\n\n\x03\x06\0\x01\x12\x03%\x08\x11\n\n\n\x03\x06\0\x03\ + \x12\x03&\x02=\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03&\x02=\n\x0b\n\x03\ + \x06\0\x03\x12\x04'\x02)/\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04'\x02)/\n\ + \xa5\x01\n\x04\x06\0\x02\0\x12\x04.\x023\x03\x1a\x96\x01\x20Creates\x20t\ + he\x20given\x20topic\x20with\x20the\x20given\x20name.\x20See\x20the\n\ + \x20\n\x20resource\x20name\x20rules.\n\n\x0c\n\x05\x06\0\x02\0\x01\ + \x12\x03.\x06\x11\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03.\x12\x17\n\x0c\n\ + \x05\x06\0\x02\0\x03\x12\x03.\"'\n\r\n\x05\x06\0\x02\0\x04\x12\x04/\x042\ + \x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04/\x042\x06\ng\n\x04\ + \x06\0\x02\x01\x12\x047\x02<\x03\x1aY\x20Updates\x20an\x20existing\x20to\ + pic.\x20Note\x20that\x20certain\x20properties\x20of\x20a\n\x20topic\x20a\ + re\x20not\x20modifiable.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x037\x06\ + \x11\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x037\x12$\n\x0c\n\x05\x06\0\x02\ + \x01\x03\x12\x037/4\n\r\n\x05\x06\0\x02\x01\x04\x12\x048\x04;\x06\n\x11\ + \n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x048\x04;\x06\ni\n\x04\x06\0\ + \x02\x02\x12\x04@\x02E\x03\x1a[\x20Adds\x20one\x20or\x20more\x20messages\ + \x20to\x20the\x20topic.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topic\ + \n\x20does\x20not\x20exist.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03@\x06\ + \r\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03@\x0e\x1c\n\x0c\n\x05\x06\0\x02\ + \x02\x03\x12\x03@'6\n\r\n\x05\x06\0\x02\x02\x04\x12\x04A\x04D\x06\n\x11\ + \n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04A\x04D\x06\n2\n\x04\x06\0\ + \x02\x03\x12\x04H\x02L\x03\x1a$\x20Gets\x20the\x20configuration\x20of\ + \x20a\x20topic.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03H\x06\x0e\n\x0c\n\ + \x05\x06\0\x02\x03\x02\x12\x03H\x0f\x1e\n\x0c\n\x05\x06\0\x02\x03\x03\ + \x12\x03H).\n\r\n\x05\x06\0\x02\x03\x04\x12\x04I\x04K\x06\n\x11\n\t\x06\ + \0\x02\x03\x04\xb0\xca\xbc\"\x12\x04I\x04K\x06\n&\n\x04\x06\0\x02\x04\ + \x12\x04O\x02S\x03\x1a\x18\x20Lists\x20matching\x20topics.\n\n\x0c\n\x05\ + \x06\0\x02\x04\x01\x12\x03O\x06\x10\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ + \x03O\x11\"\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03O-?\n\r\n\x05\x06\0\x02\ + \x04\x04\x12\x04P\x04R\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\ + \x04P\x04R\x06\nC\n\x04\x06\0\x02\x05\x12\x04V\x02[\x03\x1a5\x20Lists\ + \x20the\x20names\x20of\x20the\x20subscriptions\x20on\x20this\x20topic.\n\ + \n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03V\x06\x1c\n\x0c\n\x05\x06\0\x02\ + \x05\x02\x12\x03V\x1d:\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03W\x0f-\n\r\n\ + \x05\x06\0\x02\x05\x04\x12\x04X\x04Z\x06\n\x11\n\t\x06\0\x02\x05\x04\xb0\ + \xca\xbc\"\x12\x04X\x04Z\x06\n\xe5\x02\n\x04\x06\0\x02\x06\x12\x04c\x02h\ + \x03\x1a\xd6\x02\x20Lists\x20the\x20names\x20of\x20the\x20snapshots\x20o\ + n\x20this\x20topic.\x20Snapshots\x20are\x20used\x20in\n\x20Seek\n\x20ope\ + rations,\x20which\x20allow\n\x20you\x20to\x20manage\x20message\x20acknow\ + ledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\ + \x20acknowledgment\x20state\x20of\x20messages\x20in\x20an\x20existing\ + \x20subscription\x20to\x20the\x20state\n\x20captured\x20by\x20a\x20snaps\ + hot.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03c\x06\x18\n\x0c\n\x05\x06\0\ + \x02\x06\x02\x12\x03c\x192\n\x0c\n\x05\x06\0\x02\x06\x03\x12\x03d\x0f)\n\ + \r\n\x05\x06\0\x02\x06\x04\x12\x04e\x04g\x06\n\x11\n\t\x06\0\x02\x06\x04\ + \xb0\xca\xbc\"\x12\x04e\x04g\x06\n\xf3\x02\n\x04\x06\0\x02\x07\x12\x04o\ + \x02s\x03\x1a\xe4\x02\x20Deletes\x20the\x20topic\x20with\x20the\x20given\ + \x20name.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20topic\n\x20does\x20n\ + ot\x20exist.\x20After\x20a\x20topic\x20is\x20deleted,\x20a\x20new\x20top\ + ic\x20may\x20be\x20created\x20with\n\x20the\x20same\x20name;\x20this\x20\ + is\x20an\x20entirely\x20new\x20topic\x20with\x20none\x20of\x20the\x20old\ + \n\x20configuration\x20or\x20subscriptions.\x20Existing\x20subscriptions\ + \x20to\x20this\x20topic\x20are\n\x20not\x20deleted,\x20but\x20their\x20`\ + topic`\x20field\x20is\x20set\x20to\x20`_deleted-topic_`.\n\n\x0c\n\x05\ + \x06\0\x02\x07\x01\x12\x03o\x06\x11\n\x0c\n\x05\x06\0\x02\x07\x02\x12\ + \x03o\x12$\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03o/D\n\r\n\x05\x06\0\x02\ + \x07\x04\x12\x04p\x04r\x06\n\x11\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\ + \x04p\x04r\x06\n\n\n\x02\x04\0\x12\x04v\0}\x01\n\n\n\x03\x04\0\x01\x12\ + \x03v\x08\x1c\n\xf4\x02\n\x04\x04\0\x02\0\x12\x03|\x022\x1a\xe6\x02\x20A\ + \x20list\x20of\x20IDs\x20of\x20GCP\x20regions\x20where\x20messages\x20th\ + at\x20are\x20published\x20to\x20the\x20topic\n\x20may\x20be\x20persisted\ + \x20in\x20storage.\x20Messages\x20published\x20by\x20publishers\x20runni\ + ng\x20in\n\x20non-allowed\x20GCP\x20regions\x20(or\x20running\x20outside\ + \x20of\x20GCP\x20altogether)\x20will\x20be\n\x20routed\x20for\x20storage\ + \x20in\x20one\x20of\x20the\x20allowed\x20regions.\x20An\x20empty\x20list\ + \x20means\x20that\n\x20no\x20regions\x20are\x20allowed,\x20and\x20is\x20\ + not\x20a\x20valid\x20configuration.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\ + \x03|\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03|\x0b\x11\n\x0c\n\x05\x04\ + \0\x02\0\x01\x12\x03|\x12-\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03|01\n!\n\ + \x02\x04\x01\x12\x06\x80\x01\0\x97\x01\x01\x1a\x13\x20A\x20topic\x20reso\ + urce.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x80\x01\x08\r\n\x82\x03\n\x04\ + \x04\x01\x02\0\x12\x04\x87\x01\x02\x12\x1a\xf3\x02\x20The\x20name\x20of\ + \x20the\x20topic.\x20It\x20must\x20have\x20the\x20format\n\x20`\"project\ + s/{project}/topics/{topic}\"`.\x20`{topic}`\x20must\x20start\x20with\x20\ + a\x20letter,\n\x20and\x20contain\x20only\x20letters\x20(`[A-Za-z]`),\x20\ + numbers\x20(`[0-9]`),\x20dashes\x20(`-`),\n\x20underscores\x20(`_`),\x20\ + periods\x20(`.`),\x20tildes\x20(`~`),\x20plus\x20(`+`)\x20or\x20percent\ + \n\x20signs\x20(`%`).\x20It\x20must\x20be\x20between\x203\x20and\x20255\ + \x20characters\x20in\x20length,\x20and\x20it\n\x20must\x20not\x20start\ + \x20with\x20`\"goog\"`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\x87\x01\ + \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x87\x01\t\r\n\r\n\x05\x04\ + \x01\x02\0\x03\x12\x04\x87\x01\x10\x11\nm\n\x04\x04\x01\x02\x01\x12\x04\ + \x8b\x01\x02!\x1a_\x20See\x20\x20Creating\x20and\n\x20managing\x20labels.\n\n\r\n\ + \x05\x04\x01\x02\x01\x06\x12\x04\x8b\x01\x02\x15\n\r\n\x05\x04\x01\x02\ + \x01\x01\x12\x04\x8b\x01\x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\ + \x8b\x01\x1f\x20\n\xb7\x01\n\x04\x04\x01\x02\x02\x12\x04\x90\x01\x022\ + \x1a\xa8\x01\x20Policy\x20constraining\x20the\x20set\x20of\x20Google\x20\ + Cloud\x20Platform\x20regions\x20where\x20messages\n\x20published\x20to\ + \x20the\x20topic\x20may\x20be\x20stored.\x20If\x20not\x20present,\x20the\ + n\x20no\x20constraints\n\x20are\x20in\x20effect.\n\n\r\n\x05\x04\x01\x02\ + \x02\x06\x12\x04\x90\x01\x02\x16\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\ + \x90\x01\x17-\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x90\x0101\n\xcb\x01\ + \n\x04\x04\x01\x02\x03\x12\x04\x96\x01\x02\x1a\x1a\xbc\x01\x20The\x20res\ + ource\x20name\x20of\x20the\x20Cloud\x20KMS\x20CryptoKey\x20to\x20be\x20u\ + sed\x20to\x20protect\x20access\n\x20to\x20messages\x20published\x20on\ + \x20this\x20topic.\n\n\x20The\x20expected\x20format\x20is\x20`projects/*\ + /locations/*/keyRings/*/cryptoKeys/*`.\n\n\r\n\x05\x04\x01\x02\x03\x05\ + \x12\x04\x96\x01\x02\x08\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x96\x01\t\ + \x15\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\x96\x01\x18\x19\n\x8e\x04\n\ + \x02\x04\x02\x12\x06\xa1\x01\0\xbc\x01\x01\x1a\xff\x03\x20A\x20message\ + \x20that\x20is\x20published\x20by\x20publishers\x20and\x20consumed\x20by\ + \x20subscribers.\x20The\n\x20message\x20must\x20contain\x20either\x20a\ + \x20non-empty\x20data\x20field\x20or\x20at\x20least\x20one\x20attribute.\ + \n\x20Note\x20that\x20client\x20libraries\x20represent\x20this\x20object\ + \x20differently\n\x20depending\x20on\x20the\x20language.\x20See\x20the\ + \x20corresponding\n\x20client\n\x20library\x20documentation\x20for\ + \x20more\x20information.\x20See\n\x20Quotas\x20and\x20limits\n\x20for\x20more\x20infor\ + mation\x20about\x20message\x20limits.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ + \xa1\x01\x08\x15\nq\n\x04\x04\x02\x02\0\x12\x04\xa4\x01\x02\x11\x1ac\x20\ + The\x20message\x20data\x20field.\x20If\x20this\x20field\x20is\x20empty,\ + \x20the\x20message\x20must\x20contain\n\x20at\x20least\x20one\x20attribu\ + te.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xa4\x01\x02\x07\n\r\n\x05\x04\ + \x02\x02\0\x01\x12\x04\xa4\x01\x08\x0c\n\r\n\x05\x04\x02\x02\0\x03\x12\ + \x04\xa4\x01\x0f\x10\n5\n\x04\x04\x02\x02\x01\x12\x04\xa7\x01\x02%\x1a'\ + \x20Optional\x20attributes\x20for\x20this\x20message.\n\n\r\n\x05\x04\ + \x02\x02\x01\x06\x12\x04\xa7\x01\x02\x15\n\r\n\x05\x04\x02\x02\x01\x01\ + \x12\x04\xa7\x01\x16\x20\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa7\x01#$\ + \n\xb3\x02\n\x04\x04\x02\x02\x02\x12\x04\xad\x01\x02\x18\x1a\xa4\x02\x20\ + ID\x20of\x20this\x20message,\x20assigned\x20by\x20the\x20server\x20when\ + \x20the\x20message\x20is\x20published.\n\x20Guaranteed\x20to\x20be\x20un\ + ique\x20within\x20the\x20topic.\x20This\x20value\x20may\x20be\x20read\ + \x20by\x20a\n\x20subscriber\x20that\x20receives\x20a\x20`PubsubMessage`\ + \x20via\x20a\x20`Pull`\x20call\x20or\x20a\x20push\n\x20delivery.\x20It\ + \x20must\x20not\x20be\x20populated\x20by\x20the\x20publisher\x20in\x20a\ + \x20`Publish`\x20call.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\xad\x01\ + \x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xad\x01\t\x13\n\r\n\x05\ + \x04\x02\x02\x02\x03\x12\x04\xad\x01\x16\x17\n\xbb\x01\n\x04\x04\x02\x02\ + \x03\x12\x04\xb2\x01\x02-\x1a\xac\x01\x20The\x20time\x20at\x20which\x20t\ + he\x20message\x20was\x20published,\x20populated\x20by\x20the\x20server\ + \x20when\n\x20it\x20receives\x20the\x20`Publish`\x20call.\x20It\x20must\ + \x20not\x20be\x20populated\x20by\x20the\n\x20publisher\x20in\x20a\x20`Pu\ + blish`\x20call.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\xb2\x01\x02\x1b\ + \n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xb2\x01\x1c(\n\r\n\x05\x04\x02\ + \x02\x03\x03\x12\x04\xb2\x01+,\n\x92\x04\n\x04\x04\x02\x02\x04\x12\x04\ + \xbb\x01\x02\x1a\x1a\x83\x04\x20Identifies\x20related\x20messages\x20for\ + \x20which\x20publish\x20order\x20should\x20be\x20respected.\n\x20If\x20a\ + \x20`Subscription`\x20has\x20`enable_message_ordering`\x20set\x20to\x20`\ + true`,\x20messages\n\x20published\x20with\x20the\x20same\x20`ordering_ke\ + y`\x20value\x20will\x20be\x20delivered\x20to\n\x20subscribers\x20in\x20t\ + he\x20order\x20in\x20which\x20they\x20are\x20received\x20by\x20the\x20Pu\ + b/Sub\x20system.\n\x20EXPERIMENTAL:\x20This\x20feature\x20is\x20p\ + art\x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20might\ + \x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\ + \x20not\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\ + \x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\ + \x05\x04\x02\x02\x04\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\x04\x02\x02\ + \x04\x01\x12\x04\xbb\x01\t\x15\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xbb\ + \x01\x18\x19\n0\n\x02\x04\x03\x12\x06\xbf\x01\0\xc3\x01\x01\x1a\"\x20Req\ + uest\x20for\x20the\x20GetTopic\x20method.\n\n\x0b\n\x03\x04\x03\x01\x12\ + \x04\xbf\x01\x08\x17\n]\n\x04\x04\x03\x02\0\x12\x04\xc2\x01\x02\x13\x1aO\ + \x20The\x20name\x20of\x20the\x20topic\x20to\x20get.\n\x20Format\x20is\ + \x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x03\x02\0\x05\ + \x12\x04\xc2\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc2\x01\t\ + \x0e\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc2\x01\x11\x12\n3\n\x02\x04\ + \x04\x12\x06\xc6\x01\0\xd0\x01\x01\x1a%\x20Request\x20for\x20the\x20Upda\ + teTopic\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xc6\x01\x08\x1a\n)\ + \n\x04\x04\x04\x02\0\x12\x04\xc8\x01\x02\x12\x1a\x1b\x20The\x20updated\ + \x20topic\x20object.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xc8\x01\x02\ + \x07\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xc8\x01\x08\r\n\r\n\x05\x04\x04\ + \x02\0\x03\x12\x04\xc8\x01\x10\x11\n\xe1\x02\n\x04\x04\x04\x02\x01\x12\ + \x04\xcf\x01\x02,\x1a\xd2\x02\x20Indicates\x20which\x20fields\x20in\x20t\ + he\x20provided\x20topic\x20to\x20update.\x20Must\x20be\x20specified\n\ + \x20and\x20non-empty.\x20Note\x20that\x20if\x20`update_mask`\x20contains\ + \n\x20\"message_storage_policy\"\x20then\x20the\x20new\x20value\x20will\ + \x20be\x20determined\x20based\x20on\x20the\n\x20policy\x20configured\x20\ + at\x20the\x20project\x20or\x20organization\x20level.\x20The\n\x20`messag\ + e_storage_policy`\x20must\x20not\x20be\x20set\x20in\x20the\x20`topic`\ + \x20provided\x20above.\n\n\r\n\x05\x04\x04\x02\x01\x06\x12\x04\xcf\x01\ + \x02\x1b\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\xcf\x01\x1c'\n\r\n\x05\ + \x04\x04\x02\x01\x03\x12\x04\xcf\x01*+\n/\n\x02\x04\x05\x12\x06\xd3\x01\ + \0\xda\x01\x01\x1a!\x20Request\x20for\x20the\x20Publish\x20method.\n\n\ + \x0b\n\x03\x04\x05\x01\x12\x04\xd3\x01\x08\x16\n|\n\x04\x04\x05\x02\0\ + \x12\x04\xd6\x01\x02\x13\x1an\x20The\x20messages\x20in\x20the\x20request\ + \x20will\x20be\x20published\x20on\x20this\x20topic.\n\x20Format\x20is\ + \x20`projects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\x05\x02\0\x05\ + \x12\x04\xd6\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd6\x01\t\ + \x0e\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd6\x01\x11\x12\n(\n\x04\x04\ + \x05\x02\x01\x12\x04\xd9\x01\x02&\x1a\x1a\x20The\x20messages\x20to\x20pu\ + blish.\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04\xd9\x01\x02\n\n\r\n\x05\ + \x04\x05\x02\x01\x06\x12\x04\xd9\x01\x0b\x18\n\r\n\x05\x04\x05\x02\x01\ + \x01\x12\x04\xd9\x01\x19!\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xd9\x01$\ + %\n2\n\x02\x04\x06\x12\x06\xdd\x01\0\xe2\x01\x01\x1a$\x20Response\x20for\ + \x20the\x20`Publish`\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xdd\ + \x01\x08\x17\n\xa8\x01\n\x04\x04\x06\x02\0\x12\x04\xe1\x01\x02\"\x1a\x99\ + \x01\x20The\x20server-assigned\x20ID\x20of\x20each\x20published\x20messa\ + ge,\x20in\x20the\x20same\x20order\x20as\n\x20the\x20messages\x20in\x20th\ + e\x20request.\x20IDs\x20are\x20guaranteed\x20to\x20be\x20unique\x20withi\ + n\n\x20the\x20topic.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xe1\x01\x02\n\ + \n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xe1\x01\x0b\x11\n\r\n\x05\x04\x06\ + \x02\0\x01\x12\x04\xe1\x01\x12\x1d\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\ + \xe1\x01\x20!\n4\n\x02\x04\x07\x12\x06\xe5\x01\0\xf1\x01\x01\x1a&\x20Req\ + uest\x20for\x20the\x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\x07\x01\ + \x12\x04\xe5\x01\x08\x19\nd\n\x04\x04\x07\x02\0\x12\x04\xe8\x01\x02\x15\ + \x1aV\x20The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20lis\ + t\x20topics.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\ + \x04\x07\x02\0\x05\x12\x04\xe8\x01\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\ + \x12\x04\xe8\x01\t\x10\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe8\x01\x13\ + \x14\n3\n\x04\x04\x07\x02\x01\x12\x04\xeb\x01\x02\x16\x1a%\x20Maximum\ + \x20number\x20of\x20topics\x20to\x20return.\n\n\r\n\x05\x04\x07\x02\x01\ + \x05\x12\x04\xeb\x01\x02\x07\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xeb\ + \x01\x08\x11\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xeb\x01\x14\x15\n\xc4\ + \x01\n\x04\x04\x07\x02\x02\x12\x04\xf0\x01\x02\x18\x1a\xb5\x01\x20The\ + \x20value\x20returned\x20by\x20the\x20last\x20`ListTopicsResponse`;\x20i\ + ndicates\x20that\x20this\x20is\n\x20a\x20continuation\x20of\x20a\x20prio\ + r\x20`ListTopics`\x20call,\x20and\x20that\x20the\x20system\x20should\n\ + \x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x07\x02\ + \x02\x05\x12\x04\xf0\x01\x02\x08\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\ + \xf0\x01\t\x13\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\xf0\x01\x16\x17\n5\ + \n\x02\x04\x08\x12\x06\xf4\x01\0\xfb\x01\x01\x1a'\x20Response\x20for\x20\ + the\x20`ListTopics`\x20method.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xf4\x01\ + \x08\x1a\n%\n\x04\x04\x08\x02\0\x12\x04\xf6\x01\x02\x1c\x1a\x17\x20The\ + \x20resulting\x20topics.\n\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\xf6\x01\ + \x02\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xf6\x01\x0b\x10\n\r\n\x05\x04\ + \x08\x02\0\x01\x12\x04\xf6\x01\x11\x17\n\r\n\x05\x04\x08\x02\0\x03\x12\ + \x04\xf6\x01\x1a\x1b\n\x99\x01\n\x04\x04\x08\x02\x01\x12\x04\xfa\x01\x02\ + \x1d\x1a\x8a\x01\x20If\x20not\x20empty,\x20indicates\x20that\x20there\ + \x20may\x20be\x20more\x20topics\x20that\x20match\x20the\n\x20request;\ + \x20this\x20value\x20should\x20be\x20passed\x20in\x20a\x20new\x20`ListTo\ + picsRequest`.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xfa\x01\x02\x08\n\ + \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xfa\x01\t\x18\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xfa\x01\x1b\x1c\n@\n\x02\x04\t\x12\x06\xfe\x01\0\x8a\ + \x02\x01\x1a2\x20Request\x20for\x20the\x20`ListTopicSubscriptions`\x20me\ + thod.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xfe\x01\x08%\ny\n\x04\x04\t\x02\0\ + \x12\x04\x81\x02\x02\x13\x1ak\x20The\x20name\x20of\x20the\x20topic\x20th\ + at\x20subscriptions\x20are\x20attached\x20to.\n\x20Format\x20is\x20`proj\ + ects/{project}/topics/{topic}`.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\x81\ + \x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x81\x02\t\x0e\n\r\n\x05\ + \x04\t\x02\0\x03\x12\x04\x81\x02\x11\x12\n?\n\x04\x04\t\x02\x01\x12\x04\ + \x84\x02\x02\x16\x1a1\x20Maximum\x20number\x20of\x20subscription\x20name\ + s\x20to\x20return.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x84\x02\x02\x07\ + \n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x84\x02\x08\x11\n\r\n\x05\x04\t\x02\ + \x01\x03\x12\x04\x84\x02\x14\x15\n\xdc\x01\n\x04\x04\t\x02\x02\x12\x04\ + \x89\x02\x02\x18\x1a\xcd\x01\x20The\x20value\x20returned\x20by\x20the\ + \x20last\x20`ListTopicSubscriptionsResponse`;\x20indicates\n\x20that\x20\ + this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopicSubscri\ + ptions`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20return\ + \x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\ + \x04\x89\x02\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\x89\x02\t\x13\n\ + \r\n\x05\x04\t\x02\x02\x03\x12\x04\x89\x02\x16\x17\nA\n\x02\x04\n\x12\ + \x06\x8d\x02\0\x95\x02\x01\x1a3\x20Response\x20for\x20the\x20`ListTopicS\ + ubscriptions`\x20method.\n\n\x0b\n\x03\x04\n\x01\x12\x04\x8d\x02\x08&\nF\ + \n\x04\x04\n\x02\0\x12\x04\x8f\x02\x02$\x1a8\x20The\x20names\x20of\x20th\ + e\x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\n\ + \x02\0\x04\x12\x04\x8f\x02\x02\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x8f\ + \x02\x0b\x11\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x8f\x02\x12\x1f\n\r\n\x05\ + \x04\n\x02\0\x03\x12\x04\x8f\x02\"#\n\xc7\x01\n\x04\x04\n\x02\x01\x12\ + \x04\x94\x02\x02\x1d\x1a\xb8\x01\x20If\x20not\x20empty,\x20indicates\x20\ + that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20match\n\ + \x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\x20\ + a\x20new\n\x20`ListTopicSubscriptionsRequest`\x20to\x20get\x20more\x20su\ + bscriptions.\n\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\x94\x02\x02\x08\n\r\n\ + \x05\x04\n\x02\x01\x01\x12\x04\x94\x02\t\x18\n\r\n\x05\x04\n\x02\x01\x03\ + \x12\x04\x94\x02\x1b\x1c\n<\n\x02\x04\x0b\x12\x06\x98\x02\0\xa4\x02\x01\ + \x1a.\x20Request\x20for\x20the\x20`ListTopicSnapshots`\x20method.\n\n\ + \x0b\n\x03\x04\x0b\x01\x12\x04\x98\x02\x08!\nu\n\x04\x04\x0b\x02\0\x12\ + \x04\x9b\x02\x02\x13\x1ag\x20The\x20name\x20of\x20the\x20topic\x20that\ + \x20snapshots\x20are\x20attached\x20to.\n\x20Format\x20is\x20`projects/{\ + project}/topics/{topic}`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x9b\x02\ + \x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x9b\x02\t\x0e\n\r\n\x05\x04\ + \x0b\x02\0\x03\x12\x04\x9b\x02\x11\x12\n;\n\x04\x04\x0b\x02\x01\x12\x04\ + \x9e\x02\x02\x16\x1a-\x20Maximum\x20number\x20of\x20snapshot\x20names\ + \x20to\x20return.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\x9e\x02\x02\ + \x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x9e\x02\x08\x11\n\r\n\x05\x04\ + \x0b\x02\x01\x03\x12\x04\x9e\x02\x14\x15\n\xd4\x01\n\x04\x04\x0b\x02\x02\ + \x12\x04\xa3\x02\x02\x18\x1a\xc5\x01\x20The\x20value\x20returned\x20by\ + \x20the\x20last\x20`ListTopicSnapshotsResponse`;\x20indicates\n\x20that\ + \x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListTopicSna\ + pshots`\x20call,\x20and\n\x20that\x20the\x20system\x20should\x20return\ + \x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x0b\x02\x02\x05\ + \x12\x04\xa3\x02\x02\x08\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xa3\x02\t\ + \x13\n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\xa3\x02\x16\x17\n=\n\x02\x04\ + \x0c\x12\x06\xa7\x02\0\xaf\x02\x01\x1a/\x20Response\x20for\x20the\x20`Li\ + stTopicSnapshots`\x20method.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xa7\x02\ + \x08\"\nB\n\x04\x04\x0c\x02\0\x12\x04\xa9\x02\x02\x20\x1a4\x20The\x20nam\ + es\x20of\x20the\x20snapshots\x20that\x20match\x20the\x20request.\n\n\r\n\ + \x05\x04\x0c\x02\0\x04\x12\x04\xa9\x02\x02\n\n\r\n\x05\x04\x0c\x02\0\x05\ + \x12\x04\xa9\x02\x0b\x11\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xa9\x02\x12\ + \x1b\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xa9\x02\x1e\x1f\n\xbb\x01\n\x04\ + \x04\x0c\x02\x01\x12\x04\xae\x02\x02\x1d\x1a\xac\x01\x20If\x20not\x20emp\ + ty,\x20indicates\x20that\x20there\x20may\x20be\x20more\x20snapshots\x20t\ + hat\x20match\n\x20the\x20request;\x20this\x20value\x20should\x20be\x20pa\ + ssed\x20in\x20a\x20new\n\x20`ListTopicSnapshotsRequest`\x20to\x20get\x20\ + more\x20snapshots.\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\x04\xae\x02\x02\ + \x08\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xae\x02\t\x18\n\r\n\x05\x04\ + \x0c\x02\x01\x03\x12\x04\xae\x02\x1b\x1c\n5\n\x02\x04\r\x12\x06\xb2\x02\ + \0\xb6\x02\x01\x1a'\x20Request\x20for\x20the\x20`DeleteTopic`\x20method.\ + \n\n\x0b\n\x03\x04\r\x01\x12\x04\xb2\x02\x08\x1a\n\\\n\x04\x04\r\x02\0\ + \x12\x04\xb5\x02\x02\x13\x1aN\x20Name\x20of\x20the\x20topic\x20to\x20del\ + ete.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.\n\n\r\n\ + \x05\x04\r\x02\0\x05\x12\x04\xb5\x02\x02\x08\n\r\n\x05\x04\r\x02\0\x01\ + \x12\x04\xb5\x02\t\x0e\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xb5\x02\x11\x12\ + \n\xe2\x01\n\x02\x06\x01\x12\x06\xbb\x02\0\x91\x04\x01\x1a\xd3\x01\x20Th\ + e\x20service\x20that\x20an\x20application\x20uses\x20to\x20manipulate\ + \x20subscriptions\x20and\x20to\n\x20consume\x20messages\x20from\x20a\x20\ + subscription\x20via\x20the\x20`Pull`\x20method\x20or\x20by\n\x20establis\ + hing\x20a\x20bi-directional\x20stream\x20using\x20the\x20`StreamingPull`\ + \x20method.\n\n\x0b\n\x03\x06\x01\x01\x12\x04\xbb\x02\x08\x12\n\x0b\n\ + \x03\x06\x01\x03\x12\x04\xbc\x02\x02=\n\r\n\x05\x06\x01\x03\x99\x08\x12\ + \x04\xbc\x02\x02=\n\r\n\x03\x06\x01\x03\x12\x06\xbd\x02\x02\xbf\x02/\n\ + \x0f\n\x05\x06\x01\x03\x9a\x08\x12\x06\xbd\x02\x02\xbf\x02/\n\xa6\x05\n\ + \x04\x06\x01\x02\0\x12\x06\xce\x02\x02\xd3\x02\x03\x1a\x95\x05\x20Create\ + s\x20a\x20subscription\x20to\x20a\x20given\x20topic.\x20See\x20the\n\x20\ + \n\x20resource\x20name\x20rules.\n\x20If\x20the\x20subscription\x20\ + already\x20exists,\x20returns\x20`ALREADY_EXISTS`.\n\x20If\x20the\x20cor\ + responding\x20topic\x20doesn't\x20exist,\x20returns\x20`NOT_FOUND`.\n\n\ + \x20If\x20the\x20name\x20is\x20not\x20provided\x20in\x20the\x20request,\ + \x20the\x20server\x20will\x20assign\x20a\x20random\n\x20name\x20for\x20t\ + his\x20subscription\x20on\x20the\x20same\x20project\x20as\x20the\x20topi\ + c,\x20conforming\n\x20to\x20the\n\x20[resource\x20name\n\x20format](http\ + s://cloud.google.com/pubsub/docs/admin#resource_names).\x20The\n\x20gene\ + rated\x20name\x20is\x20populated\x20in\x20the\x20returned\x20Subscriptio\ + n\x20object.\x20Note\x20that\n\x20for\x20REST\x20API\x20requests,\x20you\ + \x20must\x20specify\x20a\x20name\x20in\x20the\x20request.\n\n\r\n\x05\ + \x06\x01\x02\0\x01\x12\x04\xce\x02\x06\x18\n\r\n\x05\x06\x01\x02\0\x02\ + \x12\x04\xce\x02\x19%\n\r\n\x05\x06\x01\x02\0\x03\x12\x04\xce\x020<\n\ + \x0f\n\x05\x06\x01\x02\0\x04\x12\x06\xcf\x02\x04\xd2\x02\x06\n\x13\n\t\ + \x06\x01\x02\0\x04\xb0\xca\xbc\"\x12\x06\xcf\x02\x04\xd2\x02\x06\nC\n\ + \x04\x06\x01\x02\x01\x12\x06\xd6\x02\x02\xda\x02\x03\x1a3\x20Gets\x20the\ \x20configuration\x20details\x20of\x20a\x20subscription.\n\n\r\n\x05\x06\ - \x01\x02\x01\x01\x12\x04\xc5\x03\x06\x15\n\r\n\x05\x06\x01\x02\x01\x02\ - \x12\x04\xc5\x03\x16,\n\r\n\x05\x06\x01\x02\x01\x03\x12\x04\xc5\x037C\n\ - \x0f\n\x05\x06\x01\x02\x01\x04\x12\x06\xc6\x03\x04\xc8\x03\x06\n\x13\n\t\ - \x06\x01\x02\x01\x04\xb0\xca\xbc\"\x12\x06\xc6\x03\x04\xc8\x03\x06\n\r\n\ - \x05\x06\x01\x02\x01\x04\x12\x04\xc9\x03\x04:\n\x10\n\x08\x06\x01\x02\ - \x01\x04\x9b\x08\0\x12\x04\xc9\x03\x04:\n\x8b\x01\n\x04\x06\x01\x02\x02\ - \x12\x06\xce\x03\x02\xd4\x03\x03\x1a{\x20Updates\x20an\x20existing\x20su\ - bscription.\x20Note\x20that\x20certain\x20properties\x20of\x20a\n\x20sub\ - scription,\x20such\x20as\x20its\x20topic,\x20are\x20not\x20modifiable.\n\ - \n\r\n\x05\x06\x01\x02\x02\x01\x12\x04\xce\x03\x06\x18\n\r\n\x05\x06\x01\ - \x02\x02\x02\x12\x04\xce\x03\x192\n\r\n\x05\x06\x01\x02\x02\x03\x12\x04\ - \xce\x03=I\n\x0f\n\x05\x06\x01\x02\x02\x04\x12\x06\xcf\x03\x04\xd2\x03\ - \x06\n\x13\n\t\x06\x01\x02\x02\x04\xb0\xca\xbc\"\x12\x06\xcf\x03\x04\xd2\ - \x03\x06\n\r\n\x05\x06\x01\x02\x02\x04\x12\x04\xd3\x03\x04F\n\x10\n\x08\ - \x06\x01\x02\x02\x04\x9b\x08\0\x12\x04\xd3\x03\x04F\n/\n\x04\x06\x01\x02\ - \x03\x12\x06\xd7\x03\x02\xdd\x03\x03\x1a\x1f\x20Lists\x20matching\x20sub\ - scriptions.\n\n\r\n\x05\x06\x01\x02\x03\x01\x12\x04\xd7\x03\x06\x17\n\r\ - \n\x05\x06\x01\x02\x03\x02\x12\x04\xd7\x03\x180\n\r\n\x05\x06\x01\x02\ - \x03\x03\x12\x04\xd8\x03\x0f(\n\x0f\n\x05\x06\x01\x02\x03\x04\x12\x06\ - \xd9\x03\x04\xdb\x03\x06\n\x13\n\t\x06\x01\x02\x03\x04\xb0\xca\xbc\"\x12\ - \x06\xd9\x03\x04\xdb\x03\x06\n\r\n\x05\x06\x01\x02\x03\x04\x12\x04\xdc\ - \x03\x045\n\x10\n\x08\x06\x01\x02\x03\x04\x9b\x08\0\x12\x04\xdc\x03\x045\ - \n\xef\x02\n\x04\x06\x01\x02\x04\x12\x06\xe4\x03\x02\xea\x03\x03\x1a\xde\ - \x02\x20Deletes\x20an\x20existing\x20subscription.\x20All\x20messages\ - \x20retained\x20in\x20the\x20subscription\n\x20are\x20immediately\x20dro\ - pped.\x20Calls\x20to\x20`Pull`\x20after\x20deletion\x20will\x20return\n\ - \x20`NOT_FOUND`.\x20After\x20a\x20subscription\x20is\x20deleted,\x20a\ - \x20new\x20one\x20may\x20be\x20created\x20with\n\x20the\x20same\x20name,\ - \x20but\x20the\x20new\x20one\x20has\x20no\x20association\x20with\x20the\ - \x20old\n\x20subscription\x20or\x20its\x20topic\x20unless\x20the\x20same\ - \x20topic\x20is\x20specified.\n\n\r\n\x05\x06\x01\x02\x04\x01\x12\x04\ - \xe4\x03\x06\x18\n\r\n\x05\x06\x01\x02\x04\x02\x12\x04\xe4\x03\x192\n\r\ - \n\x05\x06\x01\x02\x04\x03\x12\x04\xe5\x03\x0f$\n\x0f\n\x05\x06\x01\x02\ - \x04\x04\x12\x06\xe6\x03\x04\xe8\x03\x06\n\x13\n\t\x06\x01\x02\x04\x04\ - \xb0\xca\xbc\"\x12\x06\xe6\x03\x04\xe8\x03\x06\n\r\n\x05\x06\x01\x02\x04\ - \x04\x12\x04\xe9\x03\x04:\n\x10\n\x08\x06\x01\x02\x04\x04\x9b\x08\0\x12\ - \x04\xe9\x03\x04:\n\xe7\x02\n\x04\x06\x01\x02\x05\x12\x06\xf1\x03\x02\ - \xf9\x03\x03\x1a\xd6\x02\x20Modifies\x20the\x20ack\x20deadline\x20for\ - \x20a\x20specific\x20message.\x20This\x20method\x20is\x20useful\n\x20to\ - \x20indicate\x20that\x20more\x20time\x20is\x20needed\x20to\x20process\ - \x20a\x20message\x20by\x20the\n\x20subscriber,\x20or\x20to\x20make\x20th\ - e\x20message\x20available\x20for\x20redelivery\x20if\x20the\n\x20process\ - ing\x20was\x20interrupted.\x20Note\x20that\x20this\x20does\x20not\x20mod\ - ify\x20the\n\x20subscription-level\x20`ackDeadlineSeconds`\x20used\x20fo\ - r\x20subsequent\x20messages.\n\n\r\n\x05\x06\x01\x02\x05\x01\x12\x04\xf1\ - \x03\x06\x17\n\r\n\x05\x06\x01\x02\x05\x02\x12\x04\xf1\x03\x180\n\r\n\ - \x05\x06\x01\x02\x05\x03\x12\x04\xf2\x03\x0f$\n\x0f\n\x05\x06\x01\x02\ - \x05\x04\x12\x06\xf3\x03\x04\xf6\x03\x06\n\x13\n\t\x06\x01\x02\x05\x04\ - \xb0\xca\xbc\"\x12\x06\xf3\x03\x04\xf6\x03\x06\n\x0f\n\x05\x06\x01\x02\ - \x05\x04\x12\x06\xf7\x03\x04\xf8\x034\n\x12\n\x08\x06\x01\x02\x05\x04\ - \x9b\x08\0\x12\x06\xf7\x03\x04\xf8\x034\n\xed\x02\n\x04\x06\x01\x02\x06\ - \x12\x06\x82\x04\x02\x88\x04\x03\x1a\xdc\x02\x20Acknowledges\x20the\x20m\ - essages\x20associated\x20with\x20the\x20`ack_ids`\x20in\x20the\n\x20`Ack\ - nowledgeRequest`.\x20The\x20Pub/Sub\x20system\x20can\x20remove\x20the\ - \x20relevant\x20messages\n\x20from\x20the\x20subscription.\n\n\x20Acknow\ - ledging\x20a\x20message\x20whose\x20ack\x20deadline\x20has\x20expired\ - \x20may\x20succeed,\n\x20but\x20such\x20a\x20message\x20may\x20be\x20red\ - elivered\x20later.\x20Acknowledging\x20a\x20message\x20more\n\x20than\ - \x20once\x20will\x20not\x20result\x20in\x20an\x20error.\n\n\r\n\x05\x06\ - \x01\x02\x06\x01\x12\x04\x82\x04\x06\x11\n\r\n\x05\x06\x01\x02\x06\x02\ - \x12\x04\x82\x04\x12$\n\r\n\x05\x06\x01\x02\x06\x03\x12\x04\x82\x04/D\n\ - \x0f\n\x05\x06\x01\x02\x06\x04\x12\x06\x83\x04\x04\x86\x04\x06\n\x13\n\t\ - \x06\x01\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x83\x04\x04\x86\x04\x06\n\r\n\ - \x05\x06\x01\x02\x06\x04\x12\x04\x87\x04\x04B\n\x10\n\x08\x06\x01\x02\ - \x06\x04\x9b\x08\0\x12\x04\x87\x04\x04B\n1\n\x04\x06\x01\x02\x07\x12\x06\ - \x8b\x04\x02\x93\x04\x03\x1a!\x20Pulls\x20messages\x20from\x20the\x20ser\ - ver.\n\n\r\n\x05\x06\x01\x02\x07\x01\x12\x04\x8b\x04\x06\n\n\r\n\x05\x06\ - \x01\x02\x07\x02\x12\x04\x8b\x04\x0b\x16\n\r\n\x05\x06\x01\x02\x07\x03\ - \x12\x04\x8b\x04!-\n\x0f\n\x05\x06\x01\x02\x07\x04\x12\x06\x8c\x04\x04\ - \x8f\x04\x06\n\x13\n\t\x06\x01\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x8c\x04\ - \x04\x8f\x04\x06\n\x0f\n\x05\x06\x01\x02\x07\x04\x12\x06\x90\x04\x04\x91\ - \x047\n\x12\n\x08\x06\x01\x02\x07\x04\x9b\x08\0\x12\x06\x90\x04\x04\x91\ - \x047\n\r\n\x05\x06\x01\x02\x07\x04\x12\x04\x92\x04\x04G\n\x10\n\x08\x06\ - \x01\x02\x07\x04\x9b\x08\x01\x12\x04\x92\x04\x04G\n\xe2\x03\n\x04\x06\ - \x01\x02\x08\x12\x06\x9c\x04\x02\x9d\x04/\x1a\xd1\x03\x20Establishes\x20\ - a\x20stream\x20with\x20the\x20server,\x20which\x20sends\x20messages\x20d\ - own\x20to\x20the\n\x20client.\x20The\x20client\x20streams\x20acknowledge\ - ments\x20and\x20ack\x20deadline\x20modifications\n\x20back\x20to\x20the\ - \x20server.\x20The\x20server\x20will\x20close\x20the\x20stream\x20and\ - \x20return\x20the\x20status\n\x20on\x20any\x20error.\x20The\x20server\ - \x20may\x20close\x20the\x20stream\x20with\x20status\x20`UNAVAILABLE`\x20\ - to\n\x20reassign\x20server-side\x20resources,\x20in\x20which\x20case,\ - \x20the\x20client\x20should\n\x20re-establish\x20the\x20stream.\x20Flow\ + \x01\x02\x01\x01\x12\x04\xd6\x02\x06\x15\n\r\n\x05\x06\x01\x02\x01\x02\ + \x12\x04\xd6\x02\x16,\n\r\n\x05\x06\x01\x02\x01\x03\x12\x04\xd6\x027C\n\ + \x0f\n\x05\x06\x01\x02\x01\x04\x12\x06\xd7\x02\x04\xd9\x02\x06\n\x13\n\t\ + \x06\x01\x02\x01\x04\xb0\xca\xbc\"\x12\x06\xd7\x02\x04\xd9\x02\x06\n\x8b\ + \x01\n\x04\x06\x01\x02\x02\x12\x06\xde\x02\x02\xe3\x02\x03\x1a{\x20Updat\ + es\x20an\x20existing\x20subscription.\x20Note\x20that\x20certain\x20prop\ + erties\x20of\x20a\n\x20subscription,\x20such\x20as\x20its\x20topic,\x20a\ + re\x20not\x20modifiable.\n\n\r\n\x05\x06\x01\x02\x02\x01\x12\x04\xde\x02\ + \x06\x18\n\r\n\x05\x06\x01\x02\x02\x02\x12\x04\xde\x02\x192\n\r\n\x05\ + \x06\x01\x02\x02\x03\x12\x04\xde\x02=I\n\x0f\n\x05\x06\x01\x02\x02\x04\ + \x12\x06\xdf\x02\x04\xe2\x02\x06\n\x13\n\t\x06\x01\x02\x02\x04\xb0\xca\ + \xbc\"\x12\x06\xdf\x02\x04\xe2\x02\x06\n/\n\x04\x06\x01\x02\x03\x12\x06\ + \xe6\x02\x02\xeb\x02\x03\x1a\x1f\x20Lists\x20matching\x20subscriptions.\ + \n\n\r\n\x05\x06\x01\x02\x03\x01\x12\x04\xe6\x02\x06\x17\n\r\n\x05\x06\ + \x01\x02\x03\x02\x12\x04\xe6\x02\x180\n\r\n\x05\x06\x01\x02\x03\x03\x12\ + \x04\xe7\x02\x0f(\n\x0f\n\x05\x06\x01\x02\x03\x04\x12\x06\xe8\x02\x04\ + \xea\x02\x06\n\x13\n\t\x06\x01\x02\x03\x04\xb0\xca\xbc\"\x12\x06\xe8\x02\ + \x04\xea\x02\x06\n\xef\x02\n\x04\x06\x01\x02\x04\x12\x06\xf2\x02\x02\xf7\ + \x02\x03\x1a\xde\x02\x20Deletes\x20an\x20existing\x20subscription.\x20Al\ + l\x20messages\x20retained\x20in\x20the\x20subscription\n\x20are\x20immed\ + iately\x20dropped.\x20Calls\x20to\x20`Pull`\x20after\x20deletion\x20will\ + \x20return\n\x20`NOT_FOUND`.\x20After\x20a\x20subscription\x20is\x20dele\ + ted,\x20a\x20new\x20one\x20may\x20be\x20created\x20with\n\x20the\x20same\ + \x20name,\x20but\x20the\x20new\x20one\x20has\x20no\x20association\x20wit\ + h\x20the\x20old\n\x20subscription\x20or\x20its\x20topic\x20unless\x20the\ + \x20same\x20topic\x20is\x20specified.\n\n\r\n\x05\x06\x01\x02\x04\x01\ + \x12\x04\xf2\x02\x06\x18\n\r\n\x05\x06\x01\x02\x04\x02\x12\x04\xf2\x02\ + \x192\n\r\n\x05\x06\x01\x02\x04\x03\x12\x04\xf3\x02\x0f$\n\x0f\n\x05\x06\ + \x01\x02\x04\x04\x12\x06\xf4\x02\x04\xf6\x02\x06\n\x13\n\t\x06\x01\x02\ + \x04\x04\xb0\xca\xbc\"\x12\x06\xf4\x02\x04\xf6\x02\x06\n\xe7\x02\n\x04\ + \x06\x01\x02\x05\x12\x06\xfe\x02\x02\x84\x03\x03\x1a\xd6\x02\x20Modifies\ + \x20the\x20ack\x20deadline\x20for\x20a\x20specific\x20message.\x20This\ + \x20method\x20is\x20useful\n\x20to\x20indicate\x20that\x20more\x20time\ + \x20is\x20needed\x20to\x20process\x20a\x20message\x20by\x20the\n\x20subs\ + criber,\x20or\x20to\x20make\x20the\x20message\x20available\x20for\x20red\ + elivery\x20if\x20the\n\x20processing\x20was\x20interrupted.\x20Note\x20t\ + hat\x20this\x20does\x20not\x20modify\x20the\n\x20subscription-level\x20`\ + ackDeadlineSeconds`\x20used\x20for\x20subsequent\x20messages.\n\n\r\n\ + \x05\x06\x01\x02\x05\x01\x12\x04\xfe\x02\x06\x17\n\r\n\x05\x06\x01\x02\ + \x05\x02\x12\x04\xfe\x02\x180\n\r\n\x05\x06\x01\x02\x05\x03\x12\x04\xff\ + \x02\x0f$\n\x0f\n\x05\x06\x01\x02\x05\x04\x12\x06\x80\x03\x04\x83\x03\ + \x06\n\x13\n\t\x06\x01\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x80\x03\x04\x83\ + \x03\x06\n\xed\x02\n\x04\x06\x01\x02\x06\x12\x06\x8d\x03\x02\x92\x03\x03\ + \x1a\xdc\x02\x20Acknowledges\x20the\x20messages\x20associated\x20with\ + \x20the\x20`ack_ids`\x20in\x20the\n\x20`AcknowledgeRequest`.\x20The\x20P\ + ub/Sub\x20system\x20can\x20remove\x20the\x20relevant\x20messages\n\x20fr\ + om\x20the\x20subscription.\n\n\x20Acknowledging\x20a\x20message\x20whose\ + \x20ack\x20deadline\x20has\x20expired\x20may\x20succeed,\n\x20but\x20suc\ + h\x20a\x20message\x20may\x20be\x20redelivered\x20later.\x20Acknowledging\ + \x20a\x20message\x20more\n\x20than\x20once\x20will\x20not\x20result\x20i\ + n\x20an\x20error.\n\n\r\n\x05\x06\x01\x02\x06\x01\x12\x04\x8d\x03\x06\ + \x11\n\r\n\x05\x06\x01\x02\x06\x02\x12\x04\x8d\x03\x12$\n\r\n\x05\x06\ + \x01\x02\x06\x03\x12\x04\x8d\x03/D\n\x0f\n\x05\x06\x01\x02\x06\x04\x12\ + \x06\x8e\x03\x04\x91\x03\x06\n\x13\n\t\x06\x01\x02\x06\x04\xb0\xca\xbc\"\ + \x12\x06\x8e\x03\x04\x91\x03\x06\n\xab\x01\n\x04\x06\x01\x02\x07\x12\x06\ + \x97\x03\x02\x9c\x03\x03\x1a\x9a\x01\x20Pulls\x20messages\x20from\x20the\ + \x20server.\x20The\x20server\x20may\x20return\x20`UNAVAILABLE`\x20if\n\ + \x20there\x20are\x20too\x20many\x20concurrent\x20pull\x20requests\x20pen\ + ding\x20for\x20the\x20given\n\x20subscription.\n\n\r\n\x05\x06\x01\x02\ + \x07\x01\x12\x04\x97\x03\x06\n\n\r\n\x05\x06\x01\x02\x07\x02\x12\x04\x97\ + \x03\x0b\x16\n\r\n\x05\x06\x01\x02\x07\x03\x12\x04\x97\x03!-\n\x0f\n\x05\ + \x06\x01\x02\x07\x04\x12\x06\x98\x03\x04\x9b\x03\x06\n\x13\n\t\x06\x01\ + \x02\x07\x04\xb0\xca\xbc\"\x12\x06\x98\x03\x04\x9b\x03\x06\n\xe2\x03\n\ + \x04\x06\x01\x02\x08\x12\x06\xa5\x03\x02\xa6\x03/\x1a\xd1\x03\x20Establi\ + shes\x20a\x20stream\x20with\x20the\x20server,\x20which\x20sends\x20messa\ + ges\x20down\x20to\x20the\n\x20client.\x20The\x20client\x20streams\x20ack\ + nowledgements\x20and\x20ack\x20deadline\x20modifications\n\x20back\x20to\ + \x20the\x20server.\x20The\x20server\x20will\x20close\x20the\x20stream\ + \x20and\x20return\x20the\x20status\n\x20on\x20any\x20error.\x20The\x20se\ + rver\x20may\x20close\x20the\x20stream\x20with\x20status\x20`UNAVAILABLE`\ + \x20to\n\x20reassign\x20server-side\x20resources,\x20in\x20which\x20case\ + ,\x20the\x20client\x20should\n\x20re-establish\x20the\x20stream.\x20Flow\ \x20control\x20can\x20be\x20achieved\x20by\x20configuring\x20the\n\x20un\ - derlying\x20RPC\x20channel.\n\n\r\n\x05\x06\x01\x02\x08\x01\x12\x04\x9c\ - \x04\x06\x13\n\r\n\x05\x06\x01\x02\x08\x05\x12\x04\x9c\x04\x14\x1a\n\r\n\ - \x05\x06\x01\x02\x08\x02\x12\x04\x9c\x04\x1b/\n\r\n\x05\x06\x01\x02\x08\ - \x06\x12\x04\x9d\x04\x0f\x15\n\r\n\x05\x06\x01\x02\x08\x03\x12\x04\x9d\ - \x04\x16+\n\xf7\x02\n\x04\x06\x01\x02\t\x12\x06\xa5\x04\x02\xac\x04\x03\ + derlying\x20RPC\x20channel.\n\n\r\n\x05\x06\x01\x02\x08\x01\x12\x04\xa5\ + \x03\x06\x13\n\r\n\x05\x06\x01\x02\x08\x05\x12\x04\xa5\x03\x14\x1a\n\r\n\ + \x05\x06\x01\x02\x08\x02\x12\x04\xa5\x03\x1b/\n\r\n\x05\x06\x01\x02\x08\ + \x06\x12\x04\xa6\x03\x0f\x15\n\r\n\x05\x06\x01\x02\x08\x03\x12\x04\xa6\ + \x03\x16+\n\xf7\x02\n\x04\x06\x01\x02\t\x12\x06\xae\x03\x02\xb4\x03\x03\ \x1a\xe6\x02\x20Modifies\x20the\x20`PushConfig`\x20for\x20a\x20specified\ \x20subscription.\n\n\x20This\x20may\x20be\x20used\x20to\x20change\x20a\ \x20push\x20subscription\x20to\x20a\x20pull\x20one\x20(signified\x20by\n\ @@ -14067,1243 +7439,821 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20push\x20subscription.\x20Messages\x20will\x20accumulate\x20for\x20de\ livery\n\x20continuously\x20through\x20the\x20call\x20regardless\x20of\ \x20changes\x20to\x20the\x20`PushConfig`.\n\n\r\n\x05\x06\x01\x02\t\x01\ - \x12\x04\xa5\x04\x06\x16\n\r\n\x05\x06\x01\x02\t\x02\x12\x04\xa5\x04\x17\ - .\n\r\n\x05\x06\x01\x02\t\x03\x12\x04\xa6\x04\x0f$\n\x0f\n\x05\x06\x01\ - \x02\t\x04\x12\x06\xa7\x04\x04\xaa\x04\x06\n\x13\n\t\x06\x01\x02\t\x04\ - \xb0\xca\xbc\"\x12\x06\xa7\x04\x04\xaa\x04\x06\n\r\n\x05\x06\x01\x02\t\ - \x04\x12\x04\xab\x04\x04F\n\x10\n\x08\x06\x01\x02\t\x04\x9b\x08\0\x12\ - \x04\xab\x04\x04F\n\xd9\x02\n\x04\x06\x01\x02\n\x12\x06\xb3\x04\x02\xb8\ - \x04\x03\x1a\xc8\x02\x20Gets\x20the\x20configuration\x20details\x20of\ - \x20a\x20snapshot.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek](https:/\ - /cloud.google.com/pubsub/docs/replay-overview)\x20operations,\n\x20which\ - \x20allow\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20\ - bulk.\x20That\x20is,\x20you\x20can\n\x20set\x20the\x20acknowledgment\x20\ - state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\ - \x20the\n\x20state\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\ - \x01\x02\n\x01\x12\x04\xb3\x04\x06\x11\n\r\n\x05\x06\x01\x02\n\x02\x12\ - \x04\xb3\x04\x12$\n\r\n\x05\x06\x01\x02\n\x03\x12\x04\xb3\x04/7\n\x0f\n\ - \x05\x06\x01\x02\n\x04\x12\x06\xb4\x04\x04\xb6\x04\x06\n\x13\n\t\x06\x01\ - \x02\n\x04\xb0\xca\xbc\"\x12\x06\xb4\x04\x04\xb6\x04\x06\n\r\n\x05\x06\ - \x01\x02\n\x04\x12\x04\xb7\x04\x046\n\x10\n\x08\x06\x01\x02\n\x04\x9b\ - \x08\0\x12\x04\xb7\x04\x046\n\xca\x02\n\x04\x06\x01\x02\x0b\x12\x06\xbf\ - \x04\x02\xc4\x04\x03\x1a\xb9\x02\x20Lists\x20the\x20existing\x20snapshot\ - s.\x20Snapshots\x20are\x20used\x20in\x20[Seek](\n\x20https://cloud.googl\ - e.com/pubsub/docs/replay-overview)\x20operations,\x20which\n\x20allow\ - \x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20\ - That\x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20state\x20\ - of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\ - \x20state\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\ - \x0b\x01\x12\x04\xbf\x04\x06\x13\n\r\n\x05\x06\x01\x02\x0b\x02\x12\x04\ - \xbf\x04\x14(\n\r\n\x05\x06\x01\x02\x0b\x03\x12\x04\xbf\x043H\n\x0f\n\ - \x05\x06\x01\x02\x0b\x04\x12\x06\xc0\x04\x04\xc2\x04\x06\n\x13\n\t\x06\ - \x01\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc0\x04\x04\xc2\x04\x06\n\r\n\x05\ - \x06\x01\x02\x0b\x04\x12\x04\xc3\x04\x045\n\x10\n\x08\x06\x01\x02\x0b\ - \x04\x9b\x08\0\x12\x04\xc3\x04\x045\n\xad\x08\n\x04\x06\x01\x02\x0c\x12\ - \x06\xd6\x04\x02\xdc\x04\x03\x1a\x9c\x08\x20Creates\x20a\x20snapshot\x20\ - from\x20the\x20requested\x20subscription.\x20Snapshots\x20are\x20used\ - \x20in\n\x20[Seek](https://cloud.google.com/pubsub/docs/replay-overview)\ - \x20operations,\n\x20which\x20allow\x20you\x20to\x20manage\x20message\ - \x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20can\n\x20set\ - \x20the\x20acknowledgment\x20state\x20of\x20messages\x20in\x20an\x20exis\ - ting\x20subscription\x20to\x20the\n\x20state\x20captured\x20by\x20a\x20s\ - napshot.\n\x20If\x20the\x20snapshot\x20already\x20exists,\x20returns\x20\ - `ALREADY_EXISTS`.\n\x20If\x20the\x20requested\x20subscription\x20doesn't\ - \x20exist,\x20returns\x20`NOT_FOUND`.\n\x20If\x20the\x20backlog\x20in\ - \x20the\x20subscription\x20is\x20too\x20old\x20--\x20and\x20the\x20resul\ - ting\x20snapshot\n\x20would\x20expire\x20in\x20less\x20than\x201\x20hour\ - \x20--\x20then\x20`FAILED_PRECONDITION`\x20is\x20returned.\n\x20See\x20a\ - lso\x20the\x20`Snapshot.expire_time`\x20field.\x20If\x20the\x20name\x20i\ - s\x20not\x20provided\x20in\n\x20the\x20request,\x20the\x20server\x20will\ - \x20assign\x20a\x20random\n\x20name\x20for\x20this\x20snapshot\x20on\x20\ - the\x20same\x20project\x20as\x20the\x20subscription,\x20conforming\n\x20\ - to\x20the\x20[resource\x20name\x20format]\n\x20(https://cloud.google.com\ - /pubsub/docs/pubsub-basics#resource_names).\x20The\n\x20generated\x20nam\ - e\x20is\x20populated\x20in\x20the\x20returned\x20Snapshot\x20object.\x20\ - Note\x20that\x20for\n\x20REST\x20API\x20requests,\x20you\x20must\x20spec\ - ify\x20a\x20name\x20in\x20the\x20request.\n\n\r\n\x05\x06\x01\x02\x0c\ - \x01\x12\x04\xd6\x04\x06\x14\n\r\n\x05\x06\x01\x02\x0c\x02\x12\x04\xd6\ - \x04\x15*\n\r\n\x05\x06\x01\x02\x0c\x03\x12\x04\xd6\x045=\n\x0f\n\x05\ - \x06\x01\x02\x0c\x04\x12\x06\xd7\x04\x04\xda\x04\x06\n\x13\n\t\x06\x01\ - \x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xd7\x04\x04\xda\x04\x06\n\r\n\x05\x06\ - \x01\x02\x0c\x04\x12\x04\xdb\x04\x04?\n\x10\n\x08\x06\x01\x02\x0c\x04\ - \x9b\x08\0\x12\x04\xdb\x04\x04?\n\xc9\x02\n\x04\x06\x01\x02\r\x12\x06\ - \xe3\x04\x02\xe9\x04\x03\x1a\xb8\x02\x20Updates\x20an\x20existing\x20sna\ - pshot.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek](https://cloud.googl\ - e.com/pubsub/docs/replay-overview)\x20operations,\n\x20which\x20allow\ - \x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20\ - That\x20is,\x20you\x20can\n\x20set\x20the\x20acknowledgment\x20state\x20\ - of\x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\ - \x20state\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\r\ - \x01\x12\x04\xe3\x04\x06\x14\n\r\n\x05\x06\x01\x02\r\x02\x12\x04\xe3\x04\ - \x15*\n\r\n\x05\x06\x01\x02\r\x03\x12\x04\xe3\x045=\n\x0f\n\x05\x06\x01\ - \x02\r\x04\x12\x06\xe4\x04\x04\xe7\x04\x06\n\x13\n\t\x06\x01\x02\r\x04\ - \xb0\xca\xbc\"\x12\x06\xe4\x04\x04\xe7\x04\x06\n\r\n\x05\x06\x01\x02\r\ - \x04\x12\x04\xe8\x04\x04B\n\x10\n\x08\x06\x01\x02\r\x04\x9b\x08\0\x12\ - \x04\xe8\x04\x04B\n\xee\x04\n\x04\x06\x01\x02\x0e\x12\x06\xf4\x04\x02\ - \xf9\x04\x03\x1a\xdd\x04\x20Removes\x20an\x20existing\x20snapshot.\x20Sn\ - apshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://cloud.google.com/pu\ - bsub/docs/replay-overview)\x20operations,\x20which\n\x20allow\x20you\x20\ - to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\ - \x20you\x20can\x20set\n\x20the\x20acknowledgment\x20state\x20of\x20messa\ - ges\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\x20state\x20c\ - aptured\x20by\x20a\x20snapshot.\n\x20When\x20the\x20snapshot\x20is\x20de\ - leted,\x20all\x20messages\x20retained\x20in\x20the\x20snapshot\n\x20are\ + \x12\x04\xae\x03\x06\x16\n\r\n\x05\x06\x01\x02\t\x02\x12\x04\xae\x03\x17\ + .\n\r\n\x05\x06\x01\x02\t\x03\x12\x04\xaf\x03\x0f$\n\x0f\n\x05\x06\x01\ + \x02\t\x04\x12\x06\xb0\x03\x04\xb3\x03\x06\n\x13\n\t\x06\x01\x02\t\x04\ + \xb0\xca\xbc\"\x12\x06\xb0\x03\x04\xb3\x03\x06\n\xe4\x02\n\x04\x06\x01\ + \x02\n\x12\x06\xbb\x03\x02\xbf\x03\x03\x1a\xd3\x02\x20Gets\x20the\x20con\ + figuration\x20details\x20of\x20a\x20snapshot.\x20Snapshots\x20are\x20use\ + d\x20in\n\x20Seek\n\x20operations,\x20which\x20allow\x20you\x20to\x20man\ + age\x20message\x20acknowledgments\x20in\x20bulk.\x20That\n\x20is,\x20you\ + \x20can\x20set\x20the\x20acknowledgment\x20state\x20of\x20messages\x20in\ + \x20an\x20existing\n\x20subscription\x20to\x20the\x20state\x20captured\ + \x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\x01\x02\n\x01\x12\x04\xbb\x03\ + \x06\x11\n\r\n\x05\x06\x01\x02\n\x02\x12\x04\xbb\x03\x12$\n\r\n\x05\x06\ + \x01\x02\n\x03\x12\x04\xbb\x03/7\n\x0f\n\x05\x06\x01\x02\n\x04\x12\x06\ + \xbc\x03\x04\xbe\x03\x06\n\x13\n\t\x06\x01\x02\n\x04\xb0\xca\xbc\"\x12\ + \x06\xbc\x03\x04\xbe\x03\x06\n\xd5\x02\n\x04\x06\x01\x02\x0b\x12\x06\xc7\ + \x03\x02\xcb\x03\x03\x1a\xc4\x02\x20Lists\x20the\x20existing\x20snapshot\ + s.\x20Snapshots\x20are\x20used\x20in\n\x20Seek\n\x20operations,\x20which\ + \x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\ + \x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgment\ + \x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20t\ + o\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\x06\ + \x01\x02\x0b\x01\x12\x04\xc7\x03\x06\x13\n\r\n\x05\x06\x01\x02\x0b\x02\ + \x12\x04\xc7\x03\x14(\n\r\n\x05\x06\x01\x02\x0b\x03\x12\x04\xc7\x033H\n\ + \x0f\n\x05\x06\x01\x02\x0b\x04\x12\x06\xc8\x03\x04\xca\x03\x06\n\x13\n\t\ + \x06\x01\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xc8\x03\x04\xca\x03\x06\n\xb9\ + \x08\n\x04\x06\x01\x02\x0c\x12\x06\xdf\x03\x02\xe4\x03\x03\x1a\xa8\x08\ + \x20Creates\x20a\x20snapshot\x20from\x20the\x20requested\x20subscription\ + .\x20Snapshots\x20are\x20used\x20in\n\x20Seek\n\x20operations,\x20which\ + \x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20in\ + \x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgment\ + \x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\x20t\ + o\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\x20

If\ + \x20the\x20snapshot\x20already\x20exists,\x20returns\x20`ALREADY_EXISTS`\ + .\n\x20If\x20the\x20requested\x20subscription\x20doesn't\x20exist,\x20re\ + turns\x20`NOT_FOUND`.\n\x20If\x20the\x20backlog\x20in\x20the\x20subscrip\ + tion\x20is\x20too\x20old\x20--\x20and\x20the\x20resulting\x20snapshot\n\ + \x20would\x20expire\x20in\x20less\x20than\x201\x20hour\x20--\x20then\x20\ + `FAILED_PRECONDITION`\x20is\x20returned.\n\x20See\x20also\x20the\x20`Sna\ + pshot.expire_time`\x20field.\x20If\x20the\x20name\x20is\x20not\x20provid\ + ed\x20in\n\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\ + \x20random\n\x20name\x20for\x20this\x20snapshot\x20on\x20the\x20same\x20\ + project\x20as\x20the\x20subscription,\x20conforming\n\x20to\x20the\n\x20\ + [resource\x20name\n\x20format](https://cloud.google.com/pubsub/docs/admi\ + n#resource_names).\x20The\n\x20generated\x20name\x20is\x20populated\x20i\ + n\x20the\x20returned\x20Snapshot\x20object.\x20Note\x20that\x20for\n\x20\ + REST\x20API\x20requests,\x20you\x20must\x20specify\x20a\x20name\x20in\ + \x20the\x20request.\n\n\r\n\x05\x06\x01\x02\x0c\x01\x12\x04\xdf\x03\x06\ + \x14\n\r\n\x05\x06\x01\x02\x0c\x02\x12\x04\xdf\x03\x15*\n\r\n\x05\x06\ + \x01\x02\x0c\x03\x12\x04\xdf\x035=\n\x0f\n\x05\x06\x01\x02\x0c\x04\x12\ + \x06\xe0\x03\x04\xe3\x03\x06\n\x13\n\t\x06\x01\x02\x0c\x04\xb0\xca\xbc\"\ + \x12\x06\xe0\x03\x04\xe3\x03\x06\n\xd5\x02\n\x04\x06\x01\x02\r\x12\x06\ + \xec\x03\x02\xf1\x03\x03\x1a\xc4\x02\x20Updates\x20an\x20existing\x20sna\ + pshot.\x20Snapshots\x20are\x20used\x20in\n\x20Seek\n\x20operations,\x20w\ + hich\x20allow\n\x20you\x20to\x20manage\x20message\x20acknowledgments\x20\ + in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\x20the\n\x20acknowledgme\ + nt\x20state\x20of\x20messages\x20in\x20an\x20existing\x20subscription\ + \x20to\x20the\x20state\n\x20captured\x20by\x20a\x20snapshot.\n\n\r\n\x05\ + \x06\x01\x02\r\x01\x12\x04\xec\x03\x06\x14\n\r\n\x05\x06\x01\x02\r\x02\ + \x12\x04\xec\x03\x15*\n\r\n\x05\x06\x01\x02\r\x03\x12\x04\xec\x035=\n\ + \x0f\n\x05\x06\x01\x02\r\x04\x12\x06\xed\x03\x04\xf0\x03\x06\n\x13\n\t\ + \x06\x01\x02\r\x04\xb0\xca\xbc\"\x12\x06\xed\x03\x04\xf0\x03\x06\n\x81\ + \x05\n\x04\x06\x01\x02\x0e\x12\x06\xfd\x03\x02\x81\x04\x03\x1a\xf0\x04\ + \x20Removes\x20an\x20existing\x20snapshot.\x20Snapshots\x20are\x20used\ + \x20in\n\x20Seek\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20ma\ + nage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\ + \x20can\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20\ + in\x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20captured\ + \x20by\x20a\x20snapshot.

\n\x20When\x20the\x20snapshot\x20is\x20d\ + eleted,\x20all\x20messages\x20retained\x20in\x20the\x20snapshot\n\x20are\ \x20immediately\x20dropped.\x20After\x20a\x20snapshot\x20is\x20deleted,\ \x20a\x20new\x20one\x20may\x20be\n\x20created\x20with\x20the\x20same\x20\ name,\x20but\x20the\x20new\x20one\x20has\x20no\x20association\x20with\ \x20the\x20old\n\x20snapshot\x20or\x20its\x20subscription,\x20unless\x20\ the\x20same\x20subscription\x20is\x20specified.\n\n\r\n\x05\x06\x01\x02\ - \x0e\x01\x12\x04\xf4\x04\x06\x14\n\r\n\x05\x06\x01\x02\x0e\x02\x12\x04\ - \xf4\x04\x15*\n\r\n\x05\x06\x01\x02\x0e\x03\x12\x04\xf4\x045J\n\x0f\n\ - \x05\x06\x01\x02\x0e\x04\x12\x06\xf5\x04\x04\xf7\x04\x06\n\x13\n\t\x06\ - \x01\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xf5\x04\x04\xf7\x04\x06\n\r\n\x05\ - \x06\x01\x02\x0e\x04\x12\x04\xf8\x04\x046\n\x10\n\x08\x06\x01\x02\x0e\ - \x04\x9b\x08\0\x12\x04\xf8\x04\x046\n\xea\x03\n\x04\x06\x01\x02\x0f\x12\ - \x06\x82\x05\x02\x87\x05\x03\x1a\xd9\x03\x20Seeks\x20an\x20existing\x20s\ - ubscription\x20to\x20a\x20point\x20in\x20time\x20or\x20to\x20a\x20given\ - \x20snapshot,\n\x20whichever\x20is\x20provided\x20in\x20the\x20request.\ - \x20Snapshots\x20are\x20used\x20in\x20[Seek]\n\x20(https://cloud.google.\ - com/pubsub/docs/replay-overview)\x20operations,\x20which\n\x20allow\x20y\ - ou\x20to\x20manage\x20message\x20acknowledgments\x20in\x20bulk.\x20That\ - \x20is,\x20you\x20can\x20set\n\x20the\x20acknowledgment\x20state\x20of\ - \x20messages\x20in\x20an\x20existing\x20subscription\x20to\x20the\n\x20s\ - tate\x20captured\x20by\x20a\x20snapshot.\x20Note\x20that\x20both\x20the\ - \x20subscription\x20and\x20the\n\x20snapshot\x20must\x20be\x20on\x20the\ - \x20same\x20topic.\n\n\r\n\x05\x06\x01\x02\x0f\x01\x12\x04\x82\x05\x06\n\ - \n\r\n\x05\x06\x01\x02\x0f\x02\x12\x04\x82\x05\x0b\x16\n\r\n\x05\x06\x01\ - \x02\x0f\x03\x12\x04\x82\x05!-\n\x0f\n\x05\x06\x01\x02\x0f\x04\x12\x06\ - \x83\x05\x04\x86\x05\x06\n\x13\n\t\x06\x01\x02\x0f\x04\xb0\xca\xbc\"\x12\ - \x06\x83\x05\x04\x86\x05\x06\n\xe4\x01\n\x02\x04\x11\x12\x06\x8d\x05\0\ - \xb0\x06\x01\x1a\xd5\x01\x20A\x20subscription\x20resource.\x20If\x20none\ - \x20of\x20`push_config`,\x20`bigquery_config`,\x20or\n\x20`cloud_storage\ - _config`\x20is\x20set,\x20then\x20the\x20subscriber\x20will\x20pull\x20a\ - nd\x20ack\x20messages\n\x20using\x20API\x20methods.\x20At\x20most\x20one\ - \x20of\x20these\x20fields\x20may\x20be\x20set.\n\n\x0b\n\x03\x04\x11\x01\ - \x12\x04\x8d\x05\x08\x14\n\r\n\x03\x04\x11\x07\x12\x06\x8e\x05\x02\x91\ - \x05\x04\n\x0f\n\x05\x04\x11\x07\x9d\x08\x12\x06\x8e\x05\x02\x91\x05\x04\ - \n5\n\x04\x04\x11\x04\0\x12\x06\x94\x05\x02\x9f\x05\x03\x1a%\x20Possible\ - \x20states\x20for\x20a\x20subscription.\n\n\r\n\x05\x04\x11\x04\0\x01\ - \x12\x04\x94\x05\x07\x0c\n6\n\x06\x04\x11\x04\0\x02\0\x12\x04\x96\x05\ - \x04\x1a\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unused.\n\n\ - \x0f\n\x07\x04\x11\x04\0\x02\0\x01\x12\x04\x96\x05\x04\x15\n\x0f\n\x07\ - \x04\x11\x04\0\x02\0\x02\x12\x04\x96\x05\x18\x19\n@\n\x06\x04\x11\x04\0\ - \x02\x01\x12\x04\x99\x05\x04\x0f\x1a0\x20The\x20subscription\x20can\x20a\ - ctively\x20receive\x20messages\n\n\x0f\n\x07\x04\x11\x04\0\x02\x01\x01\ - \x12\x04\x99\x05\x04\n\n\x0f\n\x07\x04\x11\x04\0\x02\x01\x02\x12\x04\x99\ - \x05\r\x0e\n\xc6\x01\n\x06\x04\x11\x04\0\x02\x02\x12\x04\x9e\x05\x04\x17\ - \x1a\xb5\x01\x20The\x20subscription\x20cannot\x20receive\x20messages\x20\ - because\x20of\x20an\x20error\x20with\x20the\n\x20resource\x20to\x20which\ - \x20it\x20pushes\x20messages.\x20See\x20the\x20more\x20detailed\x20error\ - \x20state\n\x20in\x20the\x20corresponding\x20configuration.\n\n\x0f\n\ - \x07\x04\x11\x04\0\x02\x02\x01\x12\x04\x9e\x05\x04\x12\n\x0f\n\x07\x04\ - \x11\x04\0\x02\x02\x02\x12\x04\x9e\x05\x15\x16\n\xa8\x03\n\x04\x04\x11\ - \x02\0\x12\x04\xa7\x05\x02;\x1a\x99\x03\x20Required.\x20The\x20name\x20o\ - f\x20the\x20subscription.\x20It\x20must\x20have\x20the\x20format\n\x20`\ - \"projects/{project}/subscriptions/{subscription}\"`.\x20`{subscription}\ - `\x20must\n\x20start\x20with\x20a\x20letter,\x20and\x20contain\x20only\ - \x20letters\x20(`[A-Za-z]`),\x20numbers\n\x20(`[0-9]`),\x20dashes\x20(`-\ - `),\x20underscores\x20(`_`),\x20periods\x20(`.`),\x20tildes\x20(`~`),\n\ - \x20plus\x20(`+`)\x20or\x20percent\x20signs\x20(`%`).\x20It\x20must\x20b\ - e\x20between\x203\x20and\x20255\x20characters\n\x20in\x20length,\x20and\ - \x20it\x20must\x20not\x20start\x20with\x20`\"goog\"`.\n\n\r\n\x05\x04\ - \x11\x02\0\x05\x12\x04\xa7\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\ - \x04\xa7\x05\t\r\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xa7\x05\x10\x11\n\r\ - \n\x05\x04\x11\x02\0\x08\x12\x04\xa7\x05\x12:\n\x10\n\x08\x04\x11\x02\0\ - \x08\x9c\x08\0\x12\x04\xa7\x05\x139\n\xe8\x01\n\x04\x04\x11\x02\x01\x12\ - \x06\xac\x05\x02\xaf\x05\x04\x1a\xd7\x01\x20Required.\x20The\x20name\x20\ - of\x20the\x20topic\x20from\x20which\x20this\x20subscription\x20is\x20rec\ - eiving\n\x20messages.\x20Format\x20is\x20`projects/{project}/topics/{top\ - ic}`.\x20The\x20value\x20of\x20this\n\x20field\x20will\x20be\x20`_delete\ - d-topic_`\x20if\x20the\x20topic\x20has\x20been\x20deleted.\n\n\r\n\x05\ - \x04\x11\x02\x01\x05\x12\x04\xac\x05\x02\x08\n\r\n\x05\x04\x11\x02\x01\ - \x01\x12\x04\xac\x05\t\x0e\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xac\x05\ - \x11\x12\n\x0f\n\x05\x04\x11\x02\x01\x08\x12\x06\xac\x05\x13\xaf\x05\x03\ - \n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\xad\x05\x04*\n\x0f\n\ - \x07\x04\x11\x02\x01\x08\x9f\x08\x12\x04\xae\x05\x04M\ne\n\x04\x04\x11\ - \x02\x02\x12\x04\xb3\x05\x02\x1d\x1aW\x20If\x20push\x20delivery\x20is\ - \x20used\x20with\x20this\x20subscription,\x20this\x20field\x20is\n\x20us\ - ed\x20to\x20configure\x20it.\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\xb3\ - \x05\x02\x0c\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xb3\x05\r\x18\n\r\n\ - \x05\x04\x11\x02\x02\x03\x12\x04\xb3\x05\x1b\x1c\nl\n\x04\x04\x11\x02\ - \x03\x12\x04\xb7\x05\x02&\x1a^\x20If\x20delivery\x20to\x20BigQuery\x20is\ - \x20used\x20with\x20this\x20subscription,\x20this\x20field\x20is\n\x20us\ - ed\x20to\x20configure\x20it.\n\n\r\n\x05\x04\x11\x02\x03\x06\x12\x04\xb7\ - \x05\x02\x10\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xb7\x05\x11\x20\n\r\n\ - \x05\x04\x11\x02\x03\x03\x12\x04\xb7\x05#%\nx\n\x04\x04\x11\x02\x04\x12\ - \x04\xbb\x05\x02/\x1aj\x20If\x20delivery\x20to\x20Google\x20Cloud\x20Sto\ - rage\x20is\x20used\x20with\x20this\x20subscription,\x20this\n\x20field\ - \x20is\x20used\x20to\x20configure\x20it.\n\n\r\n\x05\x04\x11\x02\x04\x06\ - \x12\x04\xbb\x05\x02\x14\n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xbb\x05\ - \x15)\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\xbb\x05,.\n\xc2\x08\n\x04\ - \x04\x11\x02\x05\x12\x04\xd1\x05\x02!\x1a\xb3\x08\x20The\x20approximate\ - \x20amount\x20of\x20time\x20(on\x20a\x20best-effort\x20basis)\x20Pub/Sub\ - \x20waits\x20for\n\x20the\x20subscriber\x20to\x20acknowledge\x20receipt\ - \x20before\x20resending\x20the\x20message.\x20In\x20the\n\x20interval\ - \x20after\x20the\x20message\x20is\x20delivered\x20and\x20before\x20it\ - \x20is\x20acknowledged,\x20it\n\x20is\x20considered\x20to\x20be\x20_outs\ - tanding_.\x20During\x20that\x20time\x20period,\x20the\n\x20message\x20wi\ - ll\x20not\x20be\x20redelivered\x20(on\x20a\x20best-effort\x20basis).\n\n\ - \x20For\x20pull\x20subscriptions,\x20this\x20value\x20is\x20used\x20as\ - \x20the\x20initial\x20value\x20for\x20the\x20ack\n\x20deadline.\x20To\ - \x20override\x20this\x20value\x20for\x20a\x20given\x20message,\x20call\n\ - \x20`ModifyAckDeadline`\x20with\x20the\x20corresponding\x20`ack_id`\x20i\ - f\x20using\n\x20non-streaming\x20pull\x20or\x20send\x20the\x20`ack_id`\ - \x20in\x20a\n\x20`StreamingModifyAckDeadlineRequest`\x20if\x20using\x20s\ - treaming\x20pull.\n\x20The\x20minimum\x20custom\x20deadline\x20you\x20ca\ - n\x20specify\x20is\x2010\x20seconds.\n\x20The\x20maximum\x20custom\x20de\ - adline\x20you\x20can\x20specify\x20is\x20600\x20seconds\x20(10\x20minute\ - s).\n\x20If\x20this\x20parameter\x20is\x200,\x20a\x20default\x20value\ - \x20of\x2010\x20seconds\x20is\x20used.\n\n\x20For\x20push\x20delivery,\ - \x20this\x20value\x20is\x20also\x20used\x20to\x20set\x20the\x20request\ - \x20timeout\x20for\n\x20the\x20call\x20to\x20the\x20push\x20endpoint.\n\ - \n\x20If\x20the\x20subscriber\x20never\x20acknowledges\x20the\x20message\ - ,\x20the\x20Pub/Sub\n\x20system\x20will\x20eventually\x20redeliver\x20th\ - e\x20message.\n\n\r\n\x05\x04\x11\x02\x05\x05\x12\x04\xd1\x05\x02\x07\n\ - \r\n\x05\x04\x11\x02\x05\x01\x12\x04\xd1\x05\x08\x1c\n\r\n\x05\x04\x11\ - \x02\x05\x03\x12\x04\xd1\x05\x1f\x20\n\xad\x03\n\x04\x04\x11\x02\x06\x12\ - \x04\xd9\x05\x02!\x1a\x9e\x03\x20Indicates\x20whether\x20to\x20retain\ - \x20acknowledged\x20messages.\x20If\x20true,\x20then\n\x20messages\x20ar\ - e\x20not\x20expunged\x20from\x20the\x20subscription's\x20backlog,\x20eve\ - n\x20if\x20they\x20are\n\x20acknowledged,\x20until\x20they\x20fall\x20ou\ - t\x20of\x20the\x20`message_retention_duration`\n\x20window.\x20This\x20m\ - ust\x20be\x20true\x20if\x20you\x20would\x20like\x20to\x20[`Seek`\x20to\ - \x20a\x20timestamp]\n\x20(https://cloud.google.com/pubsub/docs/replay-ov\ - erview#seek_to_a_time)\x20in\n\x20the\x20past\x20to\x20replay\x20previou\ - sly-acknowledged\x20messages.\n\n\r\n\x05\x04\x11\x02\x06\x05\x12\x04\ - \xd9\x05\x02\x06\n\r\n\x05\x04\x11\x02\x06\x01\x12\x04\xd9\x05\x07\x1c\n\ - \r\n\x05\x04\x11\x02\x06\x03\x12\x04\xd9\x05\x1f\x20\n\xf4\x02\n\x04\x04\ - \x11\x02\x07\x12\x04\xe1\x05\x02:\x1a\xe5\x02\x20How\x20long\x20to\x20re\ - tain\x20unacknowledged\x20messages\x20in\x20the\x20subscription's\x20bac\ - klog,\n\x20from\x20the\x20moment\x20a\x20message\x20is\x20published.\n\ - \x20If\x20`retain_acked_messages`\x20is\x20true,\x20then\x20this\x20also\ - \x20configures\x20the\x20retention\n\x20of\x20acknowledged\x20messages,\ - \x20and\x20thus\x20configures\x20how\x20far\x20back\x20in\x20time\x20a\ - \x20`Seek`\n\x20can\x20be\x20done.\x20Defaults\x20to\x207\x20days.\x20Ca\ - nnot\x20be\x20more\x20than\x207\x20days\x20or\x20less\x20than\x2010\n\ - \x20minutes.\n\n\r\n\x05\x04\x11\x02\x07\x06\x12\x04\xe1\x05\x02\x1a\n\r\ - \n\x05\x04\x11\x02\x07\x01\x12\x04\xe1\x05\x1b5\n\r\n\x05\x04\x11\x02\ - \x07\x03\x12\x04\xe1\x0589\na\n\x04\x04\x11\x02\x08\x12\x04\xe5\x05\x02!\ - \x1aS\x20See\x20[Creating\x20and\x20managing\n\x20labels](https://cloud.\ - google.com/pubsub/docs/labels).\n\n\r\n\x05\x04\x11\x02\x08\x06\x12\x04\ - \xe5\x05\x02\x15\n\r\n\x05\x04\x11\x02\x08\x01\x12\x04\xe5\x05\x16\x1c\n\ - \r\n\x05\x04\x11\x02\x08\x03\x12\x04\xe5\x05\x1f\x20\n\xf2\x01\n\x04\x04\ - \x11\x02\t\x12\x04\xeb\x05\x02$\x1a\xe3\x01\x20If\x20true,\x20messages\ - \x20published\x20with\x20the\x20same\x20`ordering_key`\x20in\x20`PubsubM\ - essage`\n\x20will\x20be\x20delivered\x20to\x20the\x20subscribers\x20in\ - \x20the\x20order\x20in\x20which\x20they\n\x20are\x20received\x20by\x20th\ - e\x20Pub/Sub\x20system.\x20Otherwise,\x20they\x20may\x20be\x20delivered\ - \x20in\n\x20any\x20order.\n\n\r\n\x05\x04\x11\x02\t\x05\x12\x04\xeb\x05\ - \x02\x06\n\r\n\x05\x04\x11\x02\t\x01\x12\x04\xeb\x05\x07\x1e\n\r\n\x05\ - \x04\x11\x02\t\x03\x12\x04\xeb\x05!#\n\x91\x04\n\x04\x04\x11\x02\n\x12\ - \x04\xf4\x05\x02*\x1a\x82\x04\x20A\x20policy\x20that\x20specifies\x20the\ - \x20conditions\x20for\x20this\x20subscription's\x20expiration.\n\x20A\ - \x20subscription\x20is\x20considered\x20active\x20as\x20long\x20as\x20an\ - y\x20connected\x20subscriber\x20is\n\x20successfully\x20consuming\x20mes\ - sages\x20from\x20the\x20subscription\x20or\x20is\x20issuing\n\x20operati\ - ons\x20on\x20the\x20subscription.\x20If\x20`expiration_policy`\x20is\x20\ - not\x20set,\x20a\n\x20*default\x20policy*\x20with\x20`ttl`\x20of\x2031\ - \x20days\x20will\x20be\x20used.\x20The\x20minimum\x20allowed\n\x20value\ - \x20for\x20`expiration_policy.ttl`\x20is\x201\x20day.\x20If\x20`expirati\ - on_policy`\x20is\x20set,\n\x20but\x20`expiration_policy.ttl`\x20is\x20no\ - t\x20set,\x20the\x20subscription\x20never\x20expires.\n\n\r\n\x05\x04\ - \x11\x02\n\x06\x12\x04\xf4\x05\x02\x12\n\r\n\x05\x04\x11\x02\n\x01\x12\ - \x04\xf4\x05\x13$\n\r\n\x05\x04\x11\x02\n\x03\x12\x04\xf4\x05')\n\xa2\ - \x02\n\x04\x04\x11\x02\x0b\x12\x04\xfb\x05\x02\x15\x1a\x93\x02\x20An\x20\ - expression\x20written\x20in\x20the\x20Pub/Sub\x20[filter\n\x20language](\ - https://cloud.google.com/pubsub/docs/filtering).\x20If\x20non-empty,\n\ - \x20then\x20only\x20`PubsubMessage`s\x20whose\x20`attributes`\x20field\ - \x20matches\x20the\x20filter\x20are\n\x20delivered\x20on\x20this\x20subs\ - cription.\x20If\x20empty,\x20then\x20no\x20messages\x20are\x20filtered\n\ - \x20out.\n\n\r\n\x05\x04\x11\x02\x0b\x05\x12\x04\xfb\x05\x02\x08\n\r\n\ - \x05\x04\x11\x02\x0b\x01\x12\x04\xfb\x05\t\x0f\n\r\n\x05\x04\x11\x02\x0b\ - \x03\x12\x04\xfb\x05\x12\x14\n\x90\x03\n\x04\x04\x11\x02\x0c\x12\x04\x85\ - \x06\x02+\x1a\x81\x03\x20A\x20policy\x20that\x20specifies\x20the\x20cond\ - itions\x20for\x20dead\x20lettering\x20messages\x20in\n\x20this\x20subscr\ - iption.\x20If\x20dead_letter_policy\x20is\x20not\x20set,\x20dead\x20lett\ - ering\n\x20is\x20disabled.\n\n\x20The\x20Cloud\x20Pub/Sub\x20service\x20\ - account\x20associated\x20with\x20this\x20subscriptions's\n\x20parent\x20\ - project\x20(i.e.,\n\x20service-{project_number}@gcp-sa-pubsub.iam.gservi\ - ceaccount.com)\x20must\x20have\n\x20permission\x20to\x20Acknowledge()\ - \x20messages\x20on\x20this\x20subscription.\n\n\r\n\x05\x04\x11\x02\x0c\ - \x06\x12\x04\x85\x06\x02\x12\n\r\n\x05\x04\x11\x02\x0c\x01\x12\x04\x85\ - \x06\x13%\n\r\n\x05\x04\x11\x02\x0c\x03\x12\x04\x85\x06(*\n\xe5\x02\n\ - \x04\x04\x11\x02\r\x12\x04\x8e\x06\x02\x20\x1a\xd6\x02\x20A\x20policy\ - \x20that\x20specifies\x20how\x20Pub/Sub\x20retries\x20message\x20deliver\ - y\x20for\x20this\n\x20subscription.\n\n\x20If\x20not\x20set,\x20the\x20d\ - efault\x20retry\x20policy\x20is\x20applied.\x20This\x20generally\x20impl\ - ies\n\x20that\x20messages\x20will\x20be\x20retried\x20as\x20soon\x20as\ - \x20possible\x20for\x20healthy\x20subscribers.\n\x20RetryPolicy\x20will\ - \x20be\x20triggered\x20on\x20NACKs\x20or\x20acknowledgement\x20deadline\ - \n\x20exceeded\x20events\x20for\x20a\x20given\x20message.\n\n\r\n\x05\ - \x04\x11\x02\r\x06\x12\x04\x8e\x06\x02\r\n\r\n\x05\x04\x11\x02\r\x01\x12\ - \x04\x8e\x06\x0e\x1a\n\r\n\x05\x04\x11\x02\r\x03\x12\x04\x8e\x06\x1d\x1f\ - \n\xca\x02\n\x04\x04\x11\x02\x0e\x12\x04\x95\x06\x02\x15\x1a\xbb\x02\x20\ - Indicates\x20whether\x20the\x20subscription\x20is\x20detached\x20from\ - \x20its\x20topic.\x20Detached\n\x20subscriptions\x20don't\x20receive\x20\ - messages\x20from\x20their\x20topic\x20and\x20don't\x20retain\x20any\n\ - \x20backlog.\x20`Pull`\x20and\x20`StreamingPull`\x20requests\x20will\x20\ - return\n\x20FAILED_PRECONDITION.\x20If\x20the\x20subscription\x20is\x20a\ - \x20push\x20subscription,\x20pushes\x20to\n\x20the\x20endpoint\x20will\ - \x20not\x20be\x20made.\n\n\r\n\x05\x04\x11\x02\x0e\x05\x12\x04\x95\x06\ - \x02\x06\n\r\n\x05\x04\x11\x02\x0e\x01\x12\x04\x95\x06\x07\x0f\n\r\n\x05\ - \x04\x11\x02\x0e\x03\x12\x04\x95\x06\x12\x14\n\xe7\x04\n\x04\x04\x11\x02\ - \x0f\x12\x04\xa2\x06\x02)\x1a\xd8\x04\x20If\x20true,\x20Pub/Sub\x20provi\ - des\x20the\x20following\x20guarantees\x20for\x20the\x20delivery\x20of\n\ - \x20a\x20message\x20with\x20a\x20given\x20value\x20of\x20`message_id`\ - \x20on\x20this\x20subscription:\n\n\x20*\x20The\x20message\x20sent\x20to\ - \x20a\x20subscriber\x20is\x20guaranteed\x20not\x20to\x20be\x20resent\n\ - \x20before\x20the\x20message's\x20acknowledgement\x20deadline\x20expires\ - .\n\x20*\x20An\x20acknowledged\x20message\x20will\x20not\x20be\x20resent\ - \x20to\x20a\x20subscriber.\n\n\x20Note\x20that\x20subscribers\x20may\x20\ - still\x20receive\x20multiple\x20copies\x20of\x20a\x20message\n\x20when\ - \x20`enable_exactly_once_delivery`\x20is\x20true\x20if\x20the\x20message\ - \x20was\x20published\n\x20multiple\x20times\x20by\x20a\x20publisher\x20c\ - lient.\x20These\x20copies\x20are\x20\x20considered\x20distinct\n\x20by\ - \x20Pub/Sub\x20and\x20have\x20distinct\x20`message_id`\x20values.\n\n\r\ - \n\x05\x04\x11\x02\x0f\x05\x12\x04\xa2\x06\x02\x06\n\r\n\x05\x04\x11\x02\ - \x0f\x01\x12\x04\xa2\x06\x07#\n\r\n\x05\x04\x11\x02\x0f\x03\x12\x04\xa2\ - \x06&(\n\xc7\x03\n\x04\x04\x11\x02\x10\x12\x06\xaa\x06\x02\xab\x062\x1a\ - \xb6\x03\x20Output\x20only.\x20Indicates\x20the\x20minimum\x20duration\ - \x20for\x20which\x20a\x20message\x20is\x20retained\n\x20after\x20it\x20i\ - s\x20published\x20to\x20the\x20subscription's\x20topic.\x20If\x20this\ - \x20field\x20is\x20set,\n\x20messages\x20published\x20to\x20the\x20subsc\ - ription's\x20topic\x20in\x20the\x20last\n\x20`topic_message_retention_du\ - ration`\x20are\x20always\x20available\x20to\x20subscribers.\x20See\n\x20\ - the\x20`message_retention_duration`\x20field\x20in\x20`Topic`.\x20This\ - \x20field\x20is\x20set\x20only\n\x20in\x20responses\x20from\x20the\x20se\ - rver;\x20it\x20is\x20ignored\x20if\x20it\x20is\x20set\x20in\x20any\x20re\ - quests.\n\n\r\n\x05\x04\x11\x02\x10\x06\x12\x04\xaa\x06\x02\x1a\n\r\n\ - \x05\x04\x11\x02\x10\x01\x12\x04\xaa\x06\x1b;\n\r\n\x05\x04\x11\x02\x10\ - \x03\x12\x04\xaa\x06>@\n\r\n\x05\x04\x11\x02\x10\x08\x12\x04\xab\x06\x06\ - 1\n\x10\n\x08\x04\x11\x02\x10\x08\x9c\x08\0\x12\x04\xab\x06\x070\ns\n\ - \x04\x04\x11\x02\x11\x12\x04\xaf\x06\x02?\x1ae\x20Output\x20only.\x20An\ - \x20output-only\x20field\x20indicating\x20whether\x20or\x20not\x20the\n\ - \x20subscription\x20can\x20receive\x20messages.\n\n\r\n\x05\x04\x11\x02\ - \x11\x06\x12\x04\xaf\x06\x02\x07\n\r\n\x05\x04\x11\x02\x11\x01\x12\x04\ - \xaf\x06\x08\r\n\r\n\x05\x04\x11\x02\x11\x03\x12\x04\xaf\x06\x10\x12\n\r\ - \n\x05\x04\x11\x02\x11\x08\x12\x04\xaf\x06\x13>\n\x10\n\x08\x04\x11\x02\ - \x11\x08\x9c\x08\0\x12\x04\xaf\x06\x14=\n\x8d\x04\n\x02\x04\x12\x12\x06\ - \xbd\x06\0\xc5\x06\x01\x1a\xfe\x03\x20A\x20policy\x20that\x20specifies\ - \x20how\x20Cloud\x20Pub/Sub\x20retries\x20message\x20delivery.\n\n\x20Re\ - try\x20delay\x20will\x20be\x20exponential\x20based\x20on\x20provided\x20\ - minimum\x20and\x20maximum\n\x20backoffs.\x20https://en.wikipedia.org/wik\ - i/Exponential_backoff.\n\n\x20RetryPolicy\x20will\x20be\x20triggered\x20\ - on\x20NACKs\x20or\x20acknowledgement\x20deadline\x20exceeded\n\x20events\ - \x20for\x20a\x20given\x20message.\n\n\x20Retry\x20Policy\x20is\x20implem\ - ented\x20on\x20a\x20best\x20effort\x20basis.\x20At\x20times,\x20the\x20d\ - elay\n\x20between\x20consecutive\x20deliveries\x20may\x20not\x20match\ - \x20the\x20configuration.\x20That\x20is,\n\x20delay\x20can\x20be\x20more\ - \x20or\x20less\x20than\x20configured\x20backoff.\n\n\x0b\n\x03\x04\x12\ - \x01\x12\x04\xbd\x06\x08\x13\n\x99\x01\n\x04\x04\x12\x02\0\x12\x04\xc0\ - \x06\x02/\x1a\x8a\x01\x20The\x20minimum\x20delay\x20between\x20consecuti\ - ve\x20deliveries\x20of\x20a\x20given\x20message.\n\x20Value\x20should\ - \x20be\x20between\x200\x20and\x20600\x20seconds.\x20Defaults\x20to\x2010\ - \x20seconds.\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\xc0\x06\x02\x1a\n\r\n\ - \x05\x04\x12\x02\0\x01\x12\x04\xc0\x06\x1b*\n\r\n\x05\x04\x12\x02\0\x03\ - \x12\x04\xc0\x06-.\n\x9a\x01\n\x04\x04\x12\x02\x01\x12\x04\xc4\x06\x02/\ - \x1a\x8b\x01\x20The\x20maximum\x20delay\x20between\x20consecutive\x20del\ - iveries\x20of\x20a\x20given\x20message.\n\x20Value\x20should\x20be\x20be\ - tween\x200\x20and\x20600\x20seconds.\x20Defaults\x20to\x20600\x20seconds\ - .\n\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xc4\x06\x02\x1a\n\r\n\x05\x04\ - \x12\x02\x01\x01\x12\x04\xc4\x06\x1b*\n\r\n\x05\x04\x12\x02\x01\x03\x12\ - \x04\xc4\x06-.\n\xf9\x01\n\x02\x04\x13\x12\x06\xcc\x06\0\xe6\x06\x01\x1a\ - \xea\x01\x20Dead\x20lettering\x20is\x20done\x20on\x20a\x20best\x20effort\ - \x20basis.\x20The\x20same\x20message\x20might\x20be\n\x20dead\x20lettere\ - d\x20multiple\x20times.\n\n\x20If\x20validation\x20on\x20any\x20of\x20th\ - e\x20fields\x20fails\x20at\x20subscription\x20creation/updation,\n\x20th\ - e\x20create/update\x20subscription\x20request\x20will\x20fail.\n\n\x0b\n\ - \x03\x04\x13\x01\x12\x04\xcc\x06\x08\x18\n\xa6\x04\n\x04\x04\x13\x02\0\ - \x12\x04\xd6\x06\x02\x1f\x1a\x97\x04\x20The\x20name\x20of\x20the\x20topi\ - c\x20to\x20which\x20dead\x20letter\x20messages\x20should\x20be\x20publis\ - hed.\n\x20Format\x20is\x20`projects/{project}/topics/{topic}`.The\x20Clo\ - ud\x20Pub/Sub\x20service\n\x20account\x20associated\x20with\x20the\x20en\ - closing\x20subscription's\x20parent\x20project\x20(i.e.,\n\x20service-{p\ - roject_number}@gcp-sa-pubsub.iam.gserviceaccount.com)\x20must\x20have\n\ - \x20permission\x20to\x20Publish()\x20to\x20this\x20topic.\n\n\x20The\x20\ - operation\x20will\x20fail\x20if\x20the\x20topic\x20does\x20not\x20exist.\ - \n\x20Users\x20should\x20ensure\x20that\x20there\x20is\x20a\x20subscript\ - ion\x20attached\x20to\x20this\x20topic\n\x20since\x20messages\x20publish\ - ed\x20to\x20a\x20topic\x20with\x20no\x20subscriptions\x20are\x20lost.\n\ - \n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xd6\x06\x02\x08\n\r\n\x05\x04\x13\ - \x02\0\x01\x12\x04\xd6\x06\t\x1a\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xd6\ - \x06\x1d\x1e\n\x84\x04\n\x04\x04\x13\x02\x01\x12\x04\xe5\x06\x02\"\x1a\ - \xf5\x03\x20The\x20maximum\x20number\x20of\x20delivery\x20attempts\x20fo\ - r\x20any\x20message.\x20The\x20value\x20must\x20be\n\x20between\x205\x20\ - and\x20100.\n\n\x20The\x20number\x20of\x20delivery\x20attempts\x20is\x20\ - defined\x20as\x201\x20+\x20(the\x20sum\x20of\x20number\x20of\n\x20NACKs\ - \x20and\x20number\x20of\x20times\x20the\x20acknowledgement\x20deadline\ - \x20has\x20been\x20exceeded\n\x20for\x20the\x20message).\n\n\x20A\x20NAC\ - K\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20with\x20a\x200\x20d\ - eadline.\x20Note\x20that\n\x20client\x20libraries\x20may\x20automaticall\ - y\x20extend\x20ack_deadlines.\n\n\x20This\x20field\x20will\x20be\x20hono\ - red\x20on\x20a\x20best\x20effort\x20basis.\n\n\x20If\x20this\x20paramete\ - r\x20is\x200,\x20a\x20default\x20value\x20of\x205\x20is\x20used.\n\n\r\n\ - \x05\x04\x13\x02\x01\x05\x12\x04\xe5\x06\x02\x07\n\r\n\x05\x04\x13\x02\ - \x01\x01\x12\x04\xe5\x06\x08\x1d\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\ - \xe5\x06\x20!\nt\n\x02\x04\x14\x12\x06\xea\x06\0\xf2\x06\x01\x1af\x20A\ - \x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20resource\ - \x20expiration\x20(i.e.,\n\x20automatic\x20resource\x20deletion).\n\n\ - \x0b\n\x03\x04\x14\x01\x12\x04\xea\x06\x08\x18\n\x89\x03\n\x04\x04\x14\ - \x02\0\x12\x04\xf1\x06\x02#\x1a\xfa\x02\x20Specifies\x20the\x20\"time-to\ - -live\"\x20duration\x20for\x20an\x20associated\x20resource.\x20The\n\x20\ - resource\x20expires\x20if\x20it\x20is\x20not\x20active\x20for\x20a\x20pe\ - riod\x20of\x20`ttl`.\x20The\x20definition\n\x20of\x20\"activity\"\x20dep\ - ends\x20on\x20the\x20type\x20of\x20the\x20associated\x20resource.\x20The\ - \x20minimum\n\x20and\x20maximum\x20allowed\x20values\x20for\x20`ttl`\x20\ - depend\x20on\x20the\x20type\x20of\x20the\x20associated\n\x20resource,\ - \x20as\x20well.\x20If\x20`ttl`\x20is\x20not\x20set,\x20the\x20associated\ - \x20resource\x20never\n\x20expires.\n\n\r\n\x05\x04\x14\x02\0\x06\x12\ - \x04\xf1\x06\x02\x1a\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xf1\x06\x1b\x1e\ - \n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xf1\x06!\"\n;\n\x02\x04\x15\x12\x06\ - \xf5\x06\0\xc8\x07\x01\x1a-\x20Configuration\x20for\x20a\x20push\x20deli\ - very\x20endpoint.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xf5\x06\x08\x12\n\ - \x9a\x01\n\x04\x04\x15\x03\0\x12\x06\xf9\x06\x02\x88\x07\x03\x1a\x89\x01\ - \x20Contains\x20information\x20needed\x20for\x20generating\x20an\n\x20[O\ - penID\x20Connect\n\x20token](https://developers.google.com/identity/prot\ - ocols/OpenIDConnect).\n\n\r\n\x05\x04\x15\x03\0\x01\x12\x04\xf9\x06\n\ - \x13\n\xfe\x01\n\x06\x04\x15\x03\0\x02\0\x12\x04\xff\x06\x04%\x1a\xed\ - \x01\x20[Service\x20account\n\x20email](https://cloud.google.com/iam/doc\ - s/service-accounts)\n\x20used\x20for\x20generating\x20the\x20OIDC\x20tok\ - en.\x20For\x20more\x20information\n\x20on\x20setting\x20up\x20authentica\ - tion,\x20see\n\x20[Push\x20subscriptions](https://cloud.google.com/pubsu\ - b/docs/push).\n\n\x0f\n\x07\x04\x15\x03\0\x02\0\x05\x12\x04\xff\x06\x04\ - \n\n\x0f\n\x07\x04\x15\x03\0\x02\0\x01\x12\x04\xff\x06\x0b\x20\n\x0f\n\ - \x07\x04\x15\x03\0\x02\0\x03\x12\x04\xff\x06#$\n\xb0\x03\n\x06\x04\x15\ - \x03\0\x02\x01\x12\x04\x87\x07\x04\x18\x1a\x9f\x03\x20Audience\x20to\x20\ - be\x20used\x20when\x20generating\x20OIDC\x20token.\x20The\x20audience\ - \x20claim\n\x20identifies\x20the\x20recipients\x20that\x20the\x20JWT\x20\ - is\x20intended\x20for.\x20The\x20audience\n\x20value\x20is\x20a\x20singl\ - e\x20case-sensitive\x20string.\x20Having\x20multiple\x20values\x20(array\ - )\n\x20for\x20the\x20audience\x20field\x20is\x20not\x20supported.\x20Mor\ - e\x20info\x20about\x20the\x20OIDC\x20JWT\n\x20token\x20audience\x20here:\ - \x20https://tools.ietf.org/html/rfc7519#section-4.1.3\n\x20Note:\x20if\ - \x20not\x20specified,\x20the\x20Push\x20endpoint\x20URL\x20will\x20be\ - \x20used.\n\n\x0f\n\x07\x04\x15\x03\0\x02\x01\x05\x12\x04\x87\x07\x04\n\ - \n\x0f\n\x07\x04\x15\x03\0\x02\x01\x01\x12\x04\x87\x07\x0b\x13\n\x0f\n\ - \x07\x04\x15\x03\0\x02\x01\x03\x12\x04\x87\x07\x16\x17\n\xc5\x01\n\x04\ - \x04\x15\x03\x01\x12\x04\x8d\x07\x02\x1a\x1a\xb6\x01\x20The\x20payload\ - \x20to\x20the\x20push\x20endpoint\x20is\x20in\x20the\x20form\x20of\x20th\ - e\x20JSON\x20representation\n\x20of\x20a\x20PubsubMessage\n\x20(https://\ - cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessag\ - e).\n\n\r\n\x05\x04\x15\x03\x01\x01\x12\x04\x8d\x07\n\x17\nF\n\x04\x04\ - \x15\x03\x02\x12\x06\x90\x07\x02\x95\x07\x03\x1a6\x20Sets\x20the\x20`dat\ - a`\x20field\x20as\x20the\x20HTTP\x20body\x20for\x20delivery.\n\n\r\n\x05\ - \x04\x15\x03\x02\x01\x12\x04\x90\x07\n\x13\n\xd3\x01\n\x06\x04\x15\x03\ - \x02\x02\0\x12\x04\x94\x07\x04\x1c\x1a\xc2\x01\x20When\x20true,\x20write\ - s\x20the\x20Pub/Sub\x20message\x20metadata\x20to\n\x20`x-goog-pubsub-:`\x20headers\x20of\x20the\x20HTTP\x20request.\x20Writes\x20the\n\ - \x20Pub/Sub\x20message\x20attributes\x20to\x20`:`\x20headers\ - \x20of\x20the\x20HTTP\x20request.\n\n\x0f\n\x07\x04\x15\x03\x02\x02\0\ - \x05\x12\x04\x94\x07\x04\x08\n\x0f\n\x07\x04\x15\x03\x02\x02\0\x01\x12\ - \x04\x94\x07\t\x17\n\x0f\n\x07\x04\x15\x03\x02\x02\0\x03\x12\x04\x94\x07\ - \x1a\x1b\n\x97\x01\n\x04\x04\x15\x02\0\x12\x04\x99\x07\x02\x1b\x1a\x88\ - \x01\x20A\x20URL\x20locating\x20the\x20endpoint\x20to\x20which\x20messag\ - es\x20should\x20be\x20pushed.\n\x20For\x20example,\x20a\x20Webhook\x20en\ - dpoint\x20might\x20use\x20`https://example.com/push`.\n\n\r\n\x05\x04\ - \x15\x02\0\x05\x12\x04\x99\x07\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\ - \x04\x99\x07\t\x16\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\x99\x07\x19\x1a\n\ - \xeb\x07\n\x04\x04\x15\x02\x01\x12\x04\xb0\x07\x02%\x1a\xdc\x07\x20Endpo\ - int\x20configuration\x20attributes\x20that\x20can\x20be\x20used\x20to\ - \x20control\x20different\n\x20aspects\x20of\x20the\x20message\x20deliver\ - y.\n\n\x20The\x20only\x20currently\x20supported\x20attribute\x20is\x20`x\ - -goog-version`,\x20which\x20you\x20can\n\x20use\x20to\x20change\x20the\ - \x20format\x20of\x20the\x20pushed\x20message.\x20This\x20attribute\n\x20\ - indicates\x20the\x20version\x20of\x20the\x20data\x20expected\x20by\x20th\ - e\x20endpoint.\x20This\n\x20controls\x20the\x20shape\x20of\x20the\x20pus\ - hed\x20message\x20(i.e.,\x20its\x20fields\x20and\x20metadata).\n\n\x20If\ - \x20not\x20present\x20during\x20the\x20`CreateSubscription`\x20call,\x20\ - it\x20will\x20default\x20to\n\x20the\x20version\x20of\x20the\x20Pub/Sub\ - \x20API\x20used\x20to\x20make\x20such\x20call.\x20If\x20not\x20present\ - \x20in\x20a\n\x20`ModifyPushConfig`\x20call,\x20its\x20value\x20will\x20\ - not\x20be\x20changed.\x20`GetSubscription`\n\x20calls\x20will\x20always\ - \x20return\x20a\x20valid\x20version,\x20even\x20if\x20the\x20subscriptio\ - n\x20was\n\x20created\x20without\x20this\x20attribute.\n\n\x20The\x20onl\ - y\x20supported\x20values\x20for\x20the\x20`x-goog-version`\x20attribute\ + \x0e\x01\x12\x04\xfd\x03\x06\x14\n\r\n\x05\x06\x01\x02\x0e\x02\x12\x04\ + \xfd\x03\x15*\n\r\n\x05\x06\x01\x02\x0e\x03\x12\x04\xfd\x035J\n\x0f\n\ + \x05\x06\x01\x02\x0e\x04\x12\x06\xfe\x03\x04\x80\x04\x06\n\x13\n\t\x06\ + \x01\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xfe\x03\x04\x80\x04\x06\n\xf5\x03\ + \n\x04\x06\x01\x02\x0f\x12\x06\x8b\x04\x02\x90\x04\x03\x1a\xe4\x03\x20Se\ + eks\x20an\x20existing\x20subscription\x20to\x20a\x20point\x20in\x20time\ + \x20or\x20to\x20a\x20given\x20snapshot,\n\x20whichever\x20is\x20provided\ + \x20in\x20the\x20request.\x20Snapshots\x20are\x20used\x20in\n\x20Seek\n\ + \x20operations,\x20which\x20allow\n\x20you\x20to\x20manage\x20message\ + \x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20can\x20set\ + \x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20in\x20an\x20ex\ + isting\x20subscription\x20to\x20the\x20state\n\x20captured\x20by\x20a\ + \x20snapshot.\x20Note\x20that\x20both\x20the\x20subscription\x20and\x20t\ + he\x20snapshot\n\x20must\x20be\x20on\x20the\x20same\x20topic.\n\n\r\n\ + \x05\x06\x01\x02\x0f\x01\x12\x04\x8b\x04\x06\n\n\r\n\x05\x06\x01\x02\x0f\ + \x02\x12\x04\x8b\x04\x0b\x16\n\r\n\x05\x06\x01\x02\x0f\x03\x12\x04\x8b\ + \x04!-\n\x0f\n\x05\x06\x01\x02\x0f\x04\x12\x06\x8c\x04\x04\x8f\x04\x06\n\ + \x13\n\t\x06\x01\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\x8c\x04\x04\x8f\x04\ + \x06\n(\n\x02\x04\x0e\x12\x06\x94\x04\0\xf0\x04\x01\x1a\x1a\x20A\x20subs\ + cription\x20resource.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x94\x04\x08\x14\ + \n\x9e\x03\n\x04\x04\x0e\x02\0\x12\x04\x9b\x04\x02\x12\x1a\x8f\x03\x20Th\ + e\x20name\x20of\x20the\x20subscription.\x20It\x20must\x20have\x20the\x20\ + format\n\x20`\"projects/{project}/subscriptions/{subscription}\"`.\x20`{\ + subscription}`\x20must\n\x20start\x20with\x20a\x20letter,\x20and\x20cont\ + ain\x20only\x20letters\x20(`[A-Za-z]`),\x20numbers\n\x20(`[0-9]`),\x20da\ + shes\x20(`-`),\x20underscores\x20(`_`),\x20periods\x20(`.`),\x20tildes\ + \x20(`~`),\n\x20plus\x20(`+`)\x20or\x20percent\x20signs\x20(`%`).\x20It\ + \x20must\x20be\x20between\x203\x20and\x20255\x20characters\n\x20in\x20le\ + ngth,\x20and\x20it\x20must\x20not\x20start\x20with\x20`\"goog\"`.\n\n\r\ + \n\x05\x04\x0e\x02\0\x05\x12\x04\x9b\x04\x02\x08\n\r\n\x05\x04\x0e\x02\0\ + \x01\x12\x04\x9b\x04\t\r\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\x9b\x04\x10\ + \x11\n\xdd\x01\n\x04\x04\x0e\x02\x01\x12\x04\xa1\x04\x02\x13\x1a\xce\x01\ + \x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20subscr\ + iption\x20is\x20receiving\x20messages.\n\x20Format\x20is\x20`projects/{p\ + roject}/topics/{topic}`.\n\x20The\x20value\x20of\x20this\x20field\x20wil\ + l\x20be\x20`_deleted-topic_`\x20if\x20the\x20topic\x20has\x20been\n\x20d\ + eleted.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xa1\x04\x02\x08\n\r\n\ + \x05\x04\x0e\x02\x01\x01\x12\x04\xa1\x04\t\x0e\n\r\n\x05\x04\x0e\x02\x01\ + \x03\x12\x04\xa1\x04\x11\x12\n\xc9\x01\n\x04\x04\x0e\x02\x02\x12\x04\xa6\ + \x04\x02\x1d\x1a\xba\x01\x20If\x20push\x20delivery\x20is\x20used\x20with\ + \x20this\x20subscription,\x20this\x20field\x20is\n\x20used\x20to\x20conf\ + igure\x20it.\x20An\x20empty\x20`pushConfig`\x20signifies\x20that\x20the\ + \x20subscriber\n\x20will\x20pull\x20and\x20ack\x20messages\x20using\x20A\ + PI\x20methods.\n\n\r\n\x05\x04\x0e\x02\x02\x06\x12\x04\xa6\x04\x02\x0c\n\ + \r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xa6\x04\r\x18\n\r\n\x05\x04\x0e\x02\ + \x02\x03\x12\x04\xa6\x04\x1b\x1c\n\xc7\x08\n\x04\x04\x0e\x02\x03\x12\x04\ + \xbc\x04\x02!\x1a\xb8\x08\x20The\x20approximate\x20amount\x20of\x20time\ + \x20(on\x20a\x20best-effort\x20basis)\x20Pub/Sub\x20waits\x20for\n\x20th\ + e\x20subscriber\x20to\x20acknowledge\x20receipt\x20before\x20resending\ + \x20the\x20message.\x20In\x20the\n\x20interval\x20after\x20the\x20messag\ + e\x20is\x20delivered\x20and\x20before\x20it\x20is\x20acknowledged,\x20it\ + \n\x20is\x20considered\x20to\x20be\x20outstanding.\x20During\x20t\ + hat\x20time\x20period,\x20the\n\x20message\x20will\x20not\x20be\x20redel\ + ivered\x20(on\x20a\x20best-effort\x20basis).\n\n\x20For\x20pull\x20subsc\ + riptions,\x20this\x20value\x20is\x20used\x20as\x20the\x20initial\x20valu\ + e\x20for\x20the\x20ack\n\x20deadline.\x20To\x20override\x20this\x20value\ + \x20for\x20a\x20given\x20message,\x20call\n\x20`ModifyAckDeadline`\x20wi\ + th\x20the\x20corresponding\x20`ack_id`\x20if\x20using\n\x20non-streaming\ + \x20pull\x20or\x20send\x20the\x20`ack_id`\x20in\x20a\n\x20`StreamingModi\ + fyAckDeadlineRequest`\x20if\x20using\x20streaming\x20pull.\n\x20The\x20m\ + inimum\x20custom\x20deadline\x20you\x20can\x20specify\x20is\x2010\x20sec\ + onds.\n\x20The\x20maximum\x20custom\x20deadline\x20you\x20can\x20specify\ + \x20is\x20600\x20seconds\x20(10\x20minutes).\n\x20If\x20this\x20paramete\ + r\x20is\x200,\x20a\x20default\x20value\x20of\x2010\x20seconds\x20is\x20u\ + sed.\n\n\x20For\x20push\x20delivery,\x20this\x20value\x20is\x20also\x20u\ + sed\x20to\x20set\x20the\x20request\x20timeout\x20for\n\x20the\x20call\ + \x20to\x20the\x20push\x20endpoint.\n\n\x20If\x20the\x20subscriber\x20nev\ + er\x20acknowledges\x20the\x20message,\x20the\x20Pub/Sub\n\x20system\x20w\ + ill\x20eventually\x20redeliver\x20the\x20message.\n\n\r\n\x05\x04\x0e\ + \x02\x03\x05\x12\x04\xbc\x04\x02\x07\n\r\n\x05\x04\x0e\x02\x03\x01\x12\ + \x04\xbc\x04\x08\x1c\n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\xbc\x04\x1f\ + \x20\n\x80\x03\n\x04\x04\x0e\x02\x04\x12\x04\xc5\x04\x02!\x1a\xf1\x02\ + \x20Indicates\x20whether\x20to\x20retain\x20acknowledged\x20messages.\ + \x20If\x20true,\x20then\n\x20messages\x20are\x20not\x20expunged\x20from\ + \x20the\x20subscription's\x20backlog,\x20even\x20if\x20they\x20are\n\x20\ + acknowledged,\x20until\x20they\x20fall\x20out\x20of\x20the\x20`message_r\ + etention_duration`\n\x20window.\x20This\x20must\x20be\x20true\x20if\x20y\ + ou\x20would\x20like\x20to\n\x20\n\x20Seek\x20to\x20a\x20tim\ + estamp.\n\n\r\n\x05\x04\x0e\x02\x04\x05\x12\x04\xc5\x04\x02\x06\n\r\ + \n\x05\x04\x0e\x02\x04\x01\x12\x04\xc5\x04\x07\x1c\n\r\n\x05\x04\x0e\x02\ + \x04\x03\x12\x04\xc5\x04\x1f\x20\n\xf4\x02\n\x04\x04\x0e\x02\x05\x12\x04\ + \xcd\x04\x02:\x1a\xe5\x02\x20How\x20long\x20to\x20retain\x20unacknowledg\ + ed\x20messages\x20in\x20the\x20subscription's\x20backlog,\n\x20from\x20t\ + he\x20moment\x20a\x20message\x20is\x20published.\n\x20If\x20`retain_acke\ + d_messages`\x20is\x20true,\x20then\x20this\x20also\x20configures\x20the\ + \x20retention\n\x20of\x20acknowledged\x20messages,\x20and\x20thus\x20con\ + figures\x20how\x20far\x20back\x20in\x20time\x20a\x20`Seek`\n\x20can\x20b\ + e\x20done.\x20Defaults\x20to\x207\x20days.\x20Cannot\x20be\x20more\x20th\ + an\x207\x20days\x20or\x20less\x20than\x2010\n\x20minutes.\n\n\r\n\x05\ + \x04\x0e\x02\x05\x06\x12\x04\xcd\x04\x02\x1a\n\r\n\x05\x04\x0e\x02\x05\ + \x01\x12\x04\xcd\x04\x1b5\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\xcd\x048\ + 9\nm\n\x04\x04\x0e\x02\x06\x12\x04\xd1\x04\x02!\x1a_\x20See\x20\x20Creating\x20and\n\ + \x20managing\x20labels.\n\n\r\n\x05\x04\x0e\x02\x06\x06\x12\x04\xd1\ + \x04\x02\x15\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\xd1\x04\x16\x1c\n\r\n\ + \x05\x04\x0e\x02\x06\x03\x12\x04\xd1\x04\x1f\x20\n\xd1\x03\n\x04\x04\x0e\ + \x02\x07\x12\x04\xda\x04\x02$\x1a\xc2\x03\x20If\x20true,\x20messages\x20\ + published\x20with\x20the\x20same\x20`ordering_key`\x20in\x20`PubsubMessa\ + ge`\n\x20will\x20be\x20delivered\x20to\x20the\x20subscribers\x20in\x20th\ + e\x20order\x20in\x20which\x20they\n\x20are\x20received\x20by\x20the\x20P\ + ub/Sub\x20system.\x20Otherwise,\x20they\x20may\x20be\x20delivered\x20in\ + \n\x20any\x20order.\n\x20EXPERIMENTAL:\x20This\x20feature\x20is\ + \x20part\x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20m\ + ight\x20be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20i\ + s\x20not\x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20no\ + t\x20subject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\ + \x05\x04\x0e\x02\x07\x05\x12\x04\xda\x04\x02\x06\n\r\n\x05\x04\x0e\x02\ + \x07\x01\x12\x04\xda\x04\x07\x1e\n\r\n\x05\x04\x0e\x02\x07\x03\x12\x04\ + \xda\x04!#\n\xa9\x03\n\x04\x04\x0e\x02\x08\x12\x04\xe2\x04\x02*\x1a\x9a\ + \x03\x20A\x20policy\x20that\x20specifies\x20the\x20conditions\x20for\x20\ + this\x20subscription's\x20expiration.\n\x20A\x20subscription\x20is\x20co\ + nsidered\x20active\x20as\x20long\x20as\x20any\x20connected\x20subscriber\ + \x20is\n\x20successfully\x20consuming\x20messages\x20from\x20the\x20subs\ + cription\x20or\x20is\x20issuing\n\x20operations\x20on\x20the\x20subscrip\ + tion.\x20If\x20`expiration_policy`\x20is\x20not\x20set,\x20a\n\x20*defau\ + lt\x20policy*\x20with\x20`ttl`\x20of\x2031\x20days\x20will\x20be\x20used\ + .\x20The\x20minimum\x20allowed\n\x20value\x20for\x20`expiration_policy.t\ + tl`\x20is\x201\x20day.\n\n\r\n\x05\x04\x0e\x02\x08\x06\x12\x04\xe2\x04\ + \x02\x12\n\r\n\x05\x04\x0e\x02\x08\x01\x12\x04\xe2\x04\x13$\n\r\n\x05\ + \x04\x0e\x02\x08\x03\x12\x04\xe2\x04')\n\xef\x04\n\x04\x04\x0e\x02\t\x12\ + \x04\xef\x04\x02+\x1a\xe0\x04\x20A\x20policy\x20that\x20specifies\x20the\ + \x20conditions\x20for\x20dead\x20lettering\x20messages\x20in\n\x20this\ + \x20subscription.\x20If\x20dead_letter_policy\x20is\x20not\x20set,\x20de\ + ad\x20lettering\n\x20is\x20disabled.\n\n\x20The\x20Cloud\x20Pub/Sub\x20s\ + ervice\x20account\x20associated\x20with\x20this\x20subscriptions's\n\x20\ + parent\x20project\x20(i.e.,\n\x20service-{project_number}@gcp-sa-pubsub.\ + iam.gserviceaccount.com)\x20must\x20have\n\x20permission\x20to\x20Acknow\ + ledge()\x20messages\x20on\x20this\x20subscription.\n\x20EXPERIMENTAL:\ + \x20This\x20feature\x20is\x20part\x20of\x20a\x20closed\x20alpha\x20r\ + elease.\x20This\n\x20API\x20might\x20be\x20changed\x20in\x20backward-inc\ + ompatible\x20ways\x20and\x20is\x20not\x20recommended\n\x20for\x20product\ + ion\x20use.\x20It\x20is\x20not\x20subject\x20to\x20any\x20SLA\x20or\x20d\ + eprecation\x20policy.\n\n\r\n\x05\x04\x0e\x02\t\x06\x12\x04\xef\x04\x02\ + \x12\n\r\n\x05\x04\x0e\x02\t\x01\x12\x04\xef\x04\x13%\n\r\n\x05\x04\x0e\ + \x02\t\x03\x12\x04\xef\x04(*\n\xf9\x01\n\x02\x04\x0f\x12\x06\xf7\x04\0\ + \x91\x05\x01\x1a\xea\x01\x20Dead\x20lettering\x20is\x20done\x20on\x20a\ + \x20best\x20effort\x20basis.\x20The\x20same\x20message\x20might\x20be\n\ + \x20dead\x20lettered\x20multiple\x20times.\n\n\x20If\x20validation\x20on\ + \x20any\x20of\x20the\x20fields\x20fails\x20at\x20subscription\x20creatio\ + n/updation,\n\x20the\x20create/update\x20subscription\x20request\x20will\ + \x20fail.\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\xf7\x04\x08\x18\n\xa6\x04\n\ + \x04\x04\x0f\x02\0\x12\x04\x81\x05\x02\x1f\x1a\x97\x04\x20The\x20name\ + \x20of\x20the\x20topic\x20to\x20which\x20dead\x20letter\x20messages\x20s\ + hould\x20be\x20published.\n\x20Format\x20is\x20`projects/{project}/topic\ + s/{topic}`.The\x20Cloud\x20Pub/Sub\x20service\n\x20account\x20associated\ + \x20with\x20the\x20enclosing\x20subscription's\x20parent\x20project\x20(\ + i.e.,\n\x20service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.co\ + m)\x20must\x20have\n\x20permission\x20to\x20Publish()\x20to\x20this\x20t\ + opic.\n\n\x20The\x20operation\x20will\x20fail\x20if\x20the\x20topic\x20d\ + oes\x20not\x20exist.\n\x20Users\x20should\x20ensure\x20that\x20there\x20\ + is\x20a\x20subscription\x20attached\x20to\x20this\x20topic\n\x20since\ + \x20messages\x20published\x20to\x20a\x20topic\x20with\x20no\x20subscript\ + ions\x20are\x20lost.\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x81\x05\x02\ + \x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x81\x05\t\x1a\n\r\n\x05\x04\x0f\ + \x02\0\x03\x12\x04\x81\x05\x1d\x1e\n\x84\x04\n\x04\x04\x0f\x02\x01\x12\ + \x04\x90\x05\x02\"\x1a\xf5\x03\x20The\x20maximum\x20number\x20of\x20deli\ + very\x20attempts\x20for\x20any\x20message.\x20The\x20value\x20must\x20be\ + \n\x20between\x205\x20and\x20100.\n\n\x20The\x20number\x20of\x20delivery\ + \x20attempts\x20is\x20defined\x20as\x201\x20+\x20(the\x20sum\x20of\x20nu\ + mber\x20of\n\x20NACKs\x20and\x20number\x20of\x20times\x20the\x20acknowle\ + dgement\x20deadline\x20has\x20been\x20exceeded\n\x20for\x20the\x20messag\ + e).\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20\ + with\x20a\x200\x20deadline.\x20Note\x20that\n\x20client\x20libraries\x20\ + may\x20automatically\x20extend\x20ack_deadlines.\n\n\x20This\x20field\ + \x20will\x20be\x20honored\x20on\x20a\x20best\x20effort\x20basis.\n\n\x20\ + If\x20this\x20parameter\x20is\x200,\x20a\x20default\x20value\x20of\x205\ + \x20is\x20used.\n\n\r\n\x05\x04\x0f\x02\x01\x05\x12\x04\x90\x05\x02\x07\ + \n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\x90\x05\x08\x1d\n\r\n\x05\x04\x0f\ + \x02\x01\x03\x12\x04\x90\x05\x20!\nt\n\x02\x04\x10\x12\x06\x95\x05\0\x9d\ + \x05\x01\x1af\x20A\x20policy\x20that\x20specifies\x20the\x20conditions\ + \x20for\x20resource\x20expiration\x20(i.e.,\n\x20automatic\x20resource\ + \x20deletion).\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x95\x05\x08\x18\n\x89\ + \x03\n\x04\x04\x10\x02\0\x12\x04\x9c\x05\x02#\x1a\xfa\x02\x20Specifies\ + \x20the\x20\"time-to-live\"\x20duration\x20for\x20an\x20associated\x20re\ + source.\x20The\n\x20resource\x20expires\x20if\x20it\x20is\x20not\x20acti\ + ve\x20for\x20a\x20period\x20of\x20`ttl`.\x20The\x20definition\n\x20of\ + \x20\"activity\"\x20depends\x20on\x20the\x20type\x20of\x20the\x20associa\ + ted\x20resource.\x20The\x20minimum\n\x20and\x20maximum\x20allowed\x20val\ + ues\x20for\x20`ttl`\x20depend\x20on\x20the\x20type\x20of\x20the\x20assoc\ + iated\n\x20resource,\x20as\x20well.\x20If\x20`ttl`\x20is\x20not\x20set,\ + \x20the\x20associated\x20resource\x20never\n\x20expires.\n\n\r\n\x05\x04\ + \x10\x02\0\x06\x12\x04\x9c\x05\x02\x1a\n\r\n\x05\x04\x10\x02\0\x01\x12\ + \x04\x9c\x05\x1b\x1e\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x9c\x05!\"\n;\n\ + \x02\x04\x11\x12\x06\xa0\x05\0\xda\x05\x01\x1a-\x20Configuration\x20for\ + \x20a\x20push\x20delivery\x20endpoint.\n\n\x0b\n\x03\x04\x11\x01\x12\x04\ + \xa0\x05\x08\x12\n\x9a\x01\n\x04\x04\x11\x03\0\x12\x06\xa4\x05\x02\xb3\ + \x05\x03\x1a\x89\x01\x20Contains\x20information\x20needed\x20for\x20gene\ + rating\x20an\n\x20[OpenID\x20Connect\n\x20token](https://developers.goog\ + le.com/identity/protocols/OpenIDConnect).\n\n\r\n\x05\x04\x11\x03\0\x01\ + \x12\x04\xa4\x05\n\x13\n\xab\x02\n\x06\x04\x11\x03\0\x02\0\x12\x04\xaa\ + \x05\x04%\x1a\x9a\x02\x20[Service\x20account\n\x20email](https://cloud.g\ + oogle.com/iam/docs/service-accounts)\n\x20to\x20be\x20used\x20for\x20gen\ + erating\x20the\x20OIDC\x20token.\x20The\x20caller\x20(for\n\x20CreateSub\ + scription,\x20UpdateSubscription,\x20and\x20ModifyPushConfig\x20RPCs)\ + \x20must\n\x20have\x20the\x20iam.serviceAccounts.actAs\x20permission\x20\ + for\x20the\x20service\x20account.\n\n\x0f\n\x07\x04\x11\x03\0\x02\0\x05\ + \x12\x04\xaa\x05\x04\n\n\x0f\n\x07\x04\x11\x03\0\x02\0\x01\x12\x04\xaa\ + \x05\x0b\x20\n\x0f\n\x07\x04\x11\x03\0\x02\0\x03\x12\x04\xaa\x05#$\n\xb0\ + \x03\n\x06\x04\x11\x03\0\x02\x01\x12\x04\xb2\x05\x04\x18\x1a\x9f\x03\x20\ + Audience\x20to\x20be\x20used\x20when\x20generating\x20OIDC\x20token.\x20\ + The\x20audience\x20claim\n\x20identifies\x20the\x20recipients\x20that\ + \x20the\x20JWT\x20is\x20intended\x20for.\x20The\x20audience\n\x20value\ + \x20is\x20a\x20single\x20case-sensitive\x20string.\x20Having\x20multiple\ + \x20values\x20(array)\n\x20for\x20the\x20audience\x20field\x20is\x20not\ + \x20supported.\x20More\x20info\x20about\x20the\x20OIDC\x20JWT\n\x20token\ + \x20audience\x20here:\x20https://tools.ietf.org/html/rfc7519#section-4.1\ + .3\n\x20Note:\x20if\x20not\x20specified,\x20the\x20Push\x20endpoint\x20U\ + RL\x20will\x20be\x20used.\n\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x05\x12\ + \x04\xb2\x05\x04\n\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x01\x12\x04\xb2\x05\ + \x0b\x13\n\x0f\n\x07\x04\x11\x03\0\x02\x01\x03\x12\x04\xb2\x05\x16\x17\n\ + \x97\x01\n\x04\x04\x11\x02\0\x12\x04\xb7\x05\x02\x1b\x1a\x88\x01\x20A\ + \x20URL\x20locating\x20the\x20endpoint\x20to\x20which\x20messages\x20sho\ + uld\x20be\x20pushed.\n\x20For\x20example,\x20a\x20Webhook\x20endpoint\ + \x20might\x20use\x20\"https://example.com/push\".\n\n\r\n\x05\x04\x11\ + \x02\0\x05\x12\x04\xb7\x05\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\ + \xb7\x05\t\x16\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xb7\x05\x19\x1a\n\x82\ + \x08\n\x04\x04\x11\x02\x01\x12\x04\xce\x05\x02%\x1a\xf3\x07\x20Endpoint\ + \x20configuration\x20attributes\x20that\x20can\x20be\x20used\x20to\x20co\ + ntrol\x20different\n\x20aspects\x20of\x20the\x20message\x20delivery.\n\n\ + \x20The\x20only\x20currently\x20supported\x20attribute\x20is\x20`x-goog-\ + version`,\x20which\x20you\x20can\n\x20use\x20to\x20change\x20the\x20form\ + at\x20of\x20the\x20pushed\x20message.\x20This\x20attribute\n\x20indicate\ + s\x20the\x20version\x20of\x20the\x20data\x20expected\x20by\x20the\x20end\ + point.\x20This\n\x20controls\x20the\x20shape\x20of\x20the\x20pushed\x20m\ + essage\x20(i.e.,\x20its\x20fields\x20and\x20metadata).\n\n\x20If\x20not\ + \x20present\x20during\x20the\x20`CreateSubscription`\x20call,\x20it\x20w\ + ill\x20default\x20to\n\x20the\x20version\x20of\x20the\x20Pub/Sub\x20API\ + \x20used\x20to\x20make\x20such\x20call.\x20If\x20not\x20present\x20in\ + \x20a\n\x20`ModifyPushConfig`\x20call,\x20its\x20value\x20will\x20not\ + \x20be\x20changed.\x20`GetSubscription`\n\x20calls\x20will\x20always\x20\ + return\x20a\x20valid\x20version,\x20even\x20if\x20the\x20subscription\ + \x20was\n\x20created\x20without\x20this\x20attribute.\n\n\x20The\x20only\ + \x20supported\x20values\x20for\x20the\x20`x-goog-version`\x20attribute\ \x20are:\n\n\x20*\x20`v1beta1`:\x20uses\x20the\x20push\x20format\x20defi\ ned\x20in\x20the\x20v1beta1\x20Pub/Sub\x20API.\n\x20*\x20`v1`\x20or\x20`\ v1beta2`:\x20uses\x20the\x20push\x20format\x20defined\x20in\x20the\x20v1\ - \x20Pub/Sub\x20API.\n\n\x20For\x20example:\n\x20`attributes\x20{\x20\"x-\ - goog-version\":\x20\"v1\"\x20}`\n\n\r\n\x05\x04\x15\x02\x01\x06\x12\x04\ - \xb0\x07\x02\x15\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\xb0\x07\x16\x20\n\ - \r\n\x05\x04\x15\x02\x01\x03\x12\x04\xb0\x07#$\n\xca\x02\n\x04\x04\x15\ - \x08\0\x12\x06\xb7\x07\x02\xbb\x07\x03\x1a\xb9\x02\x20An\x20authenticati\ - on\x20method\x20used\x20by\x20push\x20endpoints\x20to\x20verify\x20the\ - \x20source\x20of\n\x20push\x20requests.\x20This\x20can\x20be\x20used\x20\ - with\x20push\x20endpoints\x20that\x20are\x20private\x20by\n\x20default\ - \x20to\x20allow\x20requests\x20only\x20from\x20the\x20Cloud\x20Pub/Sub\ - \x20system,\x20for\x20example.\n\x20This\x20field\x20is\x20optional\x20a\ - nd\x20should\x20be\x20set\x20only\x20by\x20users\x20interested\x20in\n\ - \x20authenticated\x20push.\n\n\r\n\x05\x04\x15\x08\0\x01\x12\x04\xb7\x07\ - \x08\x1d\n\x9d\x01\n\x04\x04\x15\x02\x02\x12\x04\xba\x07\x04\x1d\x1a\x8e\ - \x01\x20If\x20specified,\x20Pub/Sub\x20will\x20generate\x20and\x20attach\ - \x20an\x20OIDC\x20JWT\x20token\x20as\x20an\n\x20`Authorization`\x20heade\ - r\x20in\x20the\x20HTTP\x20request\x20for\x20every\x20pushed\x20message.\ - \n\n\r\n\x05\x04\x15\x02\x02\x06\x12\x04\xba\x07\x04\r\n\r\n\x05\x04\x15\ - \x02\x02\x01\x12\x04\xba\x07\x0e\x18\n\r\n\x05\x04\x15\x02\x02\x03\x12\ - \x04\xba\x07\x1b\x1c\n\x93\x01\n\x04\x04\x15\x08\x01\x12\x06\xbf\x07\x02\ - \xc7\x07\x03\x1a\x82\x01\x20The\x20format\x20of\x20the\x20delivered\x20m\ - essage\x20to\x20the\x20push\x20endpoint\x20is\x20defined\x20by\n\x20the\ - \x20chosen\x20wrapper.\x20When\x20unset,\x20`PubsubWrapper`\x20is\x20use\ - d.\n\n\r\n\x05\x04\x15\x08\x01\x01\x12\x04\xbf\x07\x08\x0f\n\xcf\x01\n\ - \x04\x04\x15\x02\x03\x12\x04\xc3\x07\x04%\x1a\xc0\x01\x20When\x20set,\ - \x20the\x20payload\x20to\x20the\x20push\x20endpoint\x20is\x20in\x20the\ - \x20form\x20of\x20the\x20JSON\n\x20representation\x20of\x20a\x20PubsubMe\ - ssage\n\x20(https://cloud.google.com/pubsub/docs/reference/rpc/google.pu\ - bsub.v1#pubsubmessage).\n\n\r\n\x05\x04\x15\x02\x03\x06\x12\x04\xc3\x07\ - \x04\x11\n\r\n\x05\x04\x15\x02\x03\x01\x12\x04\xc3\x07\x12\x20\n\r\n\x05\ - \x04\x15\x02\x03\x03\x12\x04\xc3\x07#$\nJ\n\x04\x04\x15\x02\x04\x12\x04\ - \xc6\x07\x04\x1d\x1a<\x20When\x20set,\x20the\x20payload\x20to\x20the\x20\ - push\x20endpoint\x20is\x20not\x20wrapped.\n\n\r\n\x05\x04\x15\x02\x04\ - \x06\x12\x04\xc6\x07\x04\r\n\r\n\x05\x04\x15\x02\x04\x01\x12\x04\xc6\x07\ - \x0e\x18\n\r\n\x05\x04\x15\x02\x04\x03\x12\x04\xc6\x07\x1b\x1c\n:\n\x02\ - \x04\x16\x12\x06\xcb\x07\0\xfc\x07\x01\x1a,\x20Configuration\x20for\x20a\ - \x20BigQuery\x20subscription.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xcb\x07\ - \x08\x16\n>\n\x04\x04\x16\x04\0\x12\x06\xcd\x07\x02\xe1\x07\x03\x1a.\x20\ - Possible\x20states\x20for\x20a\x20BigQuery\x20subscription.\n\n\r\n\x05\ - \x04\x16\x04\0\x01\x12\x04\xcd\x07\x07\x0c\n6\n\x06\x04\x16\x04\0\x02\0\ - \x12\x04\xcf\x07\x04\x1a\x1a&\x20Default\x20value.\x20This\x20value\x20i\ - s\x20unused.\n\n\x0f\n\x07\x04\x16\x04\0\x02\0\x01\x12\x04\xcf\x07\x04\ - \x15\n\x0f\n\x07\x04\x16\x04\0\x02\0\x02\x12\x04\xcf\x07\x18\x19\nI\n\ - \x06\x04\x16\x04\0\x02\x01\x12\x04\xd2\x07\x04\x0f\x1a9\x20The\x20subscr\ - iption\x20can\x20actively\x20send\x20messages\x20to\x20BigQuery\n\n\x0f\ - \n\x07\x04\x16\x04\0\x02\x01\x01\x12\x04\xd2\x07\x04\n\n\x0f\n\x07\x04\ - \x16\x04\0\x02\x01\x02\x12\x04\xd2\x07\r\x0e\n\xa3\x03\n\x06\x04\x16\x04\ - \0\x02\x02\x12\x04\xda\x07\x04\x1a\x1a\x92\x03\x20Cannot\x20write\x20to\ - \x20the\x20BigQuery\x20table\x20because\x20of\x20permission\x20denied\ - \x20errors.\n\x20This\x20can\x20happen\x20if\n\x20-\x20Pub/Sub\x20SA\x20\ - has\x20not\x20been\x20granted\x20the\x20[appropriate\x20BigQuery\x20IAM\ - \n\x20permissions](https://cloud.google.com/pubsub/docs/create-subscript\ - ion#assign_bigquery_service_account)\n\x20-\x20bigquery.googleapis.com\ - \x20API\x20is\x20not\x20enabled\x20for\x20the\x20project\n\x20([instruct\ - ions](https://cloud.google.com/service-usage/docs/enable-disable))\n\n\ - \x0f\n\x07\x04\x16\x04\0\x02\x02\x01\x12\x04\xda\x07\x04\x15\n\x0f\n\x07\ - \x04\x16\x04\0\x02\x02\x02\x12\x04\xda\x07\x18\x19\nO\n\x06\x04\x16\x04\ - \0\x02\x03\x12\x04\xdd\x07\x04\x12\x1a?\x20Cannot\x20write\x20to\x20the\ - \x20BigQuery\x20table\x20because\x20it\x20does\x20not\x20exist.\n\n\x0f\ - \n\x07\x04\x16\x04\0\x02\x03\x01\x12\x04\xdd\x07\x04\r\n\x0f\n\x07\x04\ - \x16\x04\0\x02\x03\x02\x12\x04\xdd\x07\x10\x11\nN\n\x06\x04\x16\x04\0\ - \x02\x04\x12\x04\xe0\x07\x04\x18\x1a>\x20Cannot\x20write\x20to\x20the\ - \x20BigQuery\x20table\x20due\x20to\x20a\x20schema\x20mismatch.\n\n\x0f\n\ - \x07\x04\x16\x04\0\x02\x04\x01\x12\x04\xe0\x07\x04\x13\n\x0f\n\x07\x04\ - \x16\x04\0\x02\x04\x02\x12\x04\xe0\x07\x16\x17\nl\n\x04\x04\x16\x02\0\ - \x12\x04\xe5\x07\x02\x13\x1a^\x20The\x20name\x20of\x20the\x20table\x20to\ - \x20which\x20to\x20write\x20data,\x20of\x20the\x20form\n\x20{projectId}.\ - {datasetId}.{tableId}\n\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xe5\x07\x02\ - \x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xe5\x07\t\x0e\n\r\n\x05\x04\x16\ - \x02\0\x03\x12\x04\xe5\x07\x11\x12\nh\n\x04\x04\x16\x02\x01\x12\x04\xe9\ - \x07\x02\x1c\x1aZ\x20When\x20true,\x20use\x20the\x20topic's\x20schema\ - \x20as\x20the\x20columns\x20to\x20write\x20to\x20in\x20BigQuery,\n\x20if\ - \x20it\x20exists.\n\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\xe9\x07\x02\ - \x06\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\xe9\x07\x07\x17\n\r\n\x05\x04\ - \x16\x02\x01\x03\x12\x04\xe9\x07\x1a\x1b\n\xdb\x02\n\x04\x04\x16\x02\x02\ - \x12\x04\xf0\x07\x02\x1a\x1a\xcc\x02\x20When\x20true,\x20write\x20the\ - \x20subscription\x20name,\x20message_id,\x20publish_time,\n\x20attribute\ - s,\x20and\x20ordering_key\x20to\x20additional\x20columns\x20in\x20the\ - \x20table.\x20The\n\x20subscription\x20name,\x20message_id,\x20and\x20pu\ - blish_time\x20fields\x20are\x20put\x20in\x20their\x20own\n\x20columns\ - \x20while\x20all\x20other\x20message\x20properties\x20(other\x20than\x20\ - data)\x20are\x20written\x20to\n\x20a\x20JSON\x20object\x20in\x20the\x20a\ - ttributes\x20column.\n\n\r\n\x05\x04\x16\x02\x02\x05\x12\x04\xf0\x07\x02\ - \x06\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\xf0\x07\x07\x15\n\r\n\x05\x04\ - \x16\x02\x02\x03\x12\x04\xf0\x07\x18\x19\n\xc9\x02\n\x04\x04\x16\x02\x03\ - \x12\x04\xf7\x07\x02\x1f\x1a\xba\x02\x20When\x20true\x20and\x20use_topic\ - _schema\x20is\x20true,\x20any\x20fields\x20that\x20are\x20a\x20part\x20o\ - f\x20the\n\x20topic\x20schema\x20that\x20are\x20not\x20part\x20of\x20the\ - \x20BigQuery\x20table\x20schema\x20are\x20dropped\n\x20when\x20writing\ - \x20to\x20BigQuery.\x20Otherwise,\x20the\x20schemas\x20must\x20be\x20kep\ - t\x20in\x20sync\x20and\n\x20any\x20messages\x20with\x20extra\x20fields\ - \x20are\x20not\x20written\x20and\x20remain\x20in\x20the\n\x20subscriptio\ - n's\x20backlog.\n\n\r\n\x05\x04\x16\x02\x03\x05\x12\x04\xf7\x07\x02\x06\ - \n\r\n\x05\x04\x16\x02\x03\x01\x12\x04\xf7\x07\x07\x1a\n\r\n\x05\x04\x16\ - \x02\x03\x03\x12\x04\xf7\x07\x1d\x1e\nw\n\x04\x04\x16\x02\x04\x12\x04\ - \xfb\x07\x02>\x1ai\x20Output\x20only.\x20An\x20output-only\x20field\x20t\ - hat\x20indicates\x20whether\x20or\x20not\x20the\n\x20subscription\x20can\ - \x20receive\x20messages.\n\n\r\n\x05\x04\x16\x02\x04\x06\x12\x04\xfb\x07\ - \x02\x07\n\r\n\x05\x04\x16\x02\x04\x01\x12\x04\xfb\x07\x08\r\n\r\n\x05\ - \x04\x16\x02\x04\x03\x12\x04\xfb\x07\x10\x11\n\r\n\x05\x04\x16\x02\x04\ - \x08\x12\x04\xfb\x07\x12=\n\x10\n\x08\x04\x16\x02\x04\x08\x9c\x08\0\x12\ - \x04\xfb\x07\x13<\n?\n\x02\x04\x17\x12\x06\xff\x07\0\xc6\x08\x01\x1a1\ - \x20Configuration\x20for\x20a\x20Cloud\x20Storage\x20subscription.\n\n\ - \x0b\n\x03\x04\x17\x01\x12\x04\xff\x07\x08\x1a\n\x98\x01\n\x04\x04\x17\ - \x03\0\x12\x04\x83\x08\x02\x17\x1a\x89\x01\x20Configuration\x20for\x20wr\ - iting\x20message\x20data\x20in\x20text\x20format.\n\x20Message\x20payloa\ - ds\x20will\x20be\x20written\x20to\x20files\x20as\x20raw\x20text,\x20sepa\ - rated\x20by\x20a\n\x20newline.\n\n\r\n\x05\x04\x17\x03\0\x01\x12\x04\x83\ - \x08\n\x14\n\x94\x01\n\x04\x04\x17\x03\x01\x12\x06\x87\x08\x02\x8f\x08\ - \x03\x1a\x83\x01\x20Configuration\x20for\x20writing\x20message\x20data\ - \x20in\x20Avro\x20format.\n\x20Message\x20payloads\x20and\x20metadata\ - \x20will\x20be\x20written\x20to\x20files\x20as\x20an\x20Avro\x20binary.\ - \n\n\r\n\x05\x04\x17\x03\x01\x01\x12\x04\x87\x08\n\x14\n\xfb\x02\n\x06\ - \x04\x17\x03\x01\x02\0\x12\x04\x8e\x08\x04\x1c\x1a\xea\x02\x20When\x20tr\ - ue,\x20write\x20the\x20subscription\x20name,\x20message_id,\x20publish_t\ - ime,\n\x20attributes,\x20and\x20ordering_key\x20as\x20additional\x20fiel\ - ds\x20in\x20the\x20output.\x20The\n\x20subscription\x20name,\x20message_\ - id,\x20and\x20publish_time\x20fields\x20are\x20put\x20in\x20their\n\x20o\ - wn\x20fields\x20while\x20all\x20other\x20message\x20properties\x20other\ - \x20than\x20data\x20(for\n\x20example,\x20an\x20ordering_key,\x20if\x20p\ - resent)\x20are\x20added\x20as\x20entries\x20in\x20the\n\x20attributes\ - \x20map.\n\n\x0f\n\x07\x04\x17\x03\x01\x02\0\x05\x12\x04\x8e\x08\x04\x08\ - \n\x0f\n\x07\x04\x17\x03\x01\x02\0\x01\x12\x04\x8e\x08\t\x17\n\x0f\n\x07\ - \x04\x17\x03\x01\x02\0\x03\x12\x04\x8e\x08\x1a\x1b\nC\n\x04\x04\x17\x04\ - \0\x12\x06\x92\x08\x02\x9f\x08\x03\x1a3\x20Possible\x20states\x20for\x20\ - a\x20Cloud\x20Storage\x20subscription.\n\n\r\n\x05\x04\x17\x04\0\x01\x12\ - \x04\x92\x08\x07\x0c\n6\n\x06\x04\x17\x04\0\x02\0\x12\x04\x94\x08\x04\ - \x1a\x1a&\x20Default\x20value.\x20This\x20value\x20is\x20unused.\n\n\x0f\ - \n\x07\x04\x17\x04\0\x02\0\x01\x12\x04\x94\x08\x04\x15\n\x0f\n\x07\x04\ - \x17\x04\0\x02\0\x02\x12\x04\x94\x08\x18\x19\nO\n\x06\x04\x17\x04\0\x02\ - \x01\x12\x04\x97\x08\x04\x0f\x1a?\x20The\x20subscription\x20can\x20activ\ - ely\x20send\x20messages\x20to\x20Cloud\x20Storage.\n\n\x0f\n\x07\x04\x17\ - \x04\0\x02\x01\x01\x12\x04\x97\x08\x04\n\n\x0f\n\x07\x04\x17\x04\0\x02\ - \x01\x02\x12\x04\x97\x08\r\x0e\n`\n\x06\x04\x17\x04\0\x02\x02\x12\x04\ - \x9b\x08\x04\x1a\x1aP\x20Cannot\x20write\x20to\x20the\x20Cloud\x20Storag\ - e\x20bucket\x20because\x20of\x20permission\x20denied\n\x20errors.\n\n\ - \x0f\n\x07\x04\x17\x04\0\x02\x02\x01\x12\x04\x9b\x08\x04\x15\n\x0f\n\x07\ - \x04\x17\x04\0\x02\x02\x02\x12\x04\x9b\x08\x18\x19\nU\n\x06\x04\x17\x04\ - \0\x02\x03\x12\x04\x9e\x08\x04\x12\x1aE\x20Cannot\x20write\x20to\x20the\ - \x20Cloud\x20Storage\x20bucket\x20because\x20it\x20does\x20not\x20exist.\ - \n\n\x0f\n\x07\x04\x17\x04\0\x02\x03\x01\x12\x04\x9e\x08\x04\r\n\x0f\n\ - \x07\x04\x17\x04\0\x02\x03\x02\x12\x04\x9e\x08\x10\x11\n\x8c\x02\n\x04\ - \x04\x17\x02\0\x12\x04\xa5\x08\x02=\x1a\xfd\x01\x20Required.\x20User-pro\ - vided\x20name\x20for\x20the\x20Cloud\x20Storage\x20bucket.\n\x20The\x20b\ - ucket\x20must\x20be\x20created\x20by\x20the\x20user.\x20The\x20bucket\ - \x20name\x20must\x20be\x20without\n\x20any\x20prefix\x20like\x20\"gs://\ - \".\x20See\x20the\x20[bucket\x20naming\n\x20requirements]\x20(https://cl\ - oud.google.com/storage/docs/buckets#naming).\n\n\r\n\x05\x04\x17\x02\0\ - \x05\x12\x04\xa5\x08\x02\x08\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xa5\x08\ - \t\x0f\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xa5\x08\x12\x13\n\r\n\x05\x04\ - \x17\x02\0\x08\x12\x04\xa5\x08\x14<\n\x10\n\x08\x04\x17\x02\0\x08\x9c\ - \x08\0\x12\x04\xa5\x08\x15;\n\x9e\x01\n\x04\x04\x17\x02\x01\x12\x04\xa9\ - \x08\x02\x1d\x1a\x8f\x01\x20User-provided\x20prefix\x20for\x20Cloud\x20S\ - torage\x20filename.\x20See\x20the\x20[object\x20naming\n\x20requirements\ - ](https://cloud.google.com/storage/docs/objects#naming).\n\n\r\n\x05\x04\ - \x17\x02\x01\x05\x12\x04\xa9\x08\x02\x08\n\r\n\x05\x04\x17\x02\x01\x01\ - \x12\x04\xa9\x08\t\x18\n\r\n\x05\x04\x17\x02\x01\x03\x12\x04\xa9\x08\x1b\ - \x1c\n\xb4\x01\n\x04\x04\x17\x02\x02\x12\x04\xae\x08\x02\x1d\x1a\xa5\x01\ - \x20User-provided\x20suffix\x20for\x20Cloud\x20Storage\x20filename.\x20S\ - ee\x20the\x20[object\x20naming\n\x20requirements](https://cloud.google.c\ - om/storage/docs/objects#naming).\x20Must\n\x20not\x20end\x20in\x20\"/\".\ - \n\n\r\n\x05\x04\x17\x02\x02\x05\x12\x04\xae\x08\x02\x08\n\r\n\x05\x04\ - \x17\x02\x02\x01\x12\x04\xae\x08\t\x18\n\r\n\x05\x04\x17\x02\x02\x03\x12\ - \x04\xae\x08\x1b\x1c\n*\n\x04\x04\x17\x08\0\x12\x06\xb1\x08\x02\xb7\x08\ - \x03\x1a\x1a\x20Defaults\x20to\x20text\x20format.\n\n\r\n\x05\x04\x17\ - \x08\0\x01\x12\x04\xb1\x08\x08\x15\nU\n\x04\x04\x17\x02\x03\x12\x04\xb3\ - \x08\x04\x1f\x1aG\x20If\x20set,\x20message\x20data\x20will\x20be\x20writ\ - ten\x20to\x20Cloud\x20Storage\x20in\x20text\x20format.\n\n\r\n\x05\x04\ - \x17\x02\x03\x06\x12\x04\xb3\x08\x04\x0e\n\r\n\x05\x04\x17\x02\x03\x01\ - \x12\x04\xb3\x08\x0f\x1a\n\r\n\x05\x04\x17\x02\x03\x03\x12\x04\xb3\x08\ - \x1d\x1e\nU\n\x04\x04\x17\x02\x04\x12\x04\xb6\x08\x04\x1f\x1aG\x20If\x20\ - set,\x20message\x20data\x20will\x20be\x20written\x20to\x20Cloud\x20Stora\ - ge\x20in\x20Avro\x20format.\n\n\r\n\x05\x04\x17\x02\x04\x06\x12\x04\xb6\ - \x08\x04\x0e\n\r\n\x05\x04\x17\x02\x04\x01\x12\x04\xb6\x08\x0f\x1a\n\r\n\ - \x05\x04\x17\x02\x04\x03\x12\x04\xb6\x08\x1d\x1e\n\xd0\x01\n\x04\x04\x17\ - \x02\x05\x12\x04\xbc\x08\x02,\x1a\xc1\x01\x20The\x20maximum\x20duration\ - \x20that\x20can\x20elapse\x20before\x20a\x20new\x20Cloud\x20Storage\x20f\ - ile\x20is\n\x20created.\x20Min\x201\x20minute,\x20max\x2010\x20minutes,\ - \x20default\x205\x20minutes.\x20May\x20not\x20exceed\n\x20the\x20subscri\ - ption's\x20acknowledgement\x20deadline.\n\n\r\n\x05\x04\x17\x02\x05\x06\ - \x12\x04\xbc\x08\x02\x1a\n\r\n\x05\x04\x17\x02\x05\x01\x12\x04\xbc\x08\ - \x1b'\n\r\n\x05\x04\x17\x02\x05\x03\x12\x04\xbc\x08*+\n\xdb\x01\n\x04\ - \x04\x17\x02\x06\x12\x04\xc1\x08\x02\x16\x1a\xcc\x01\x20The\x20maximum\ - \x20bytes\x20that\x20can\x20be\x20written\x20to\x20a\x20Cloud\x20Storage\ - \x20file\x20before\x20a\x20new\n\x20file\x20is\x20created.\x20Min\x201\ - \x20KB,\x20max\x2010\x20GiB.\x20The\x20max_bytes\x20limit\x20may\x20be\ - \x20exceeded\n\x20in\x20cases\x20where\x20messages\x20are\x20larger\x20t\ - han\x20the\x20limit.\n\n\r\n\x05\x04\x17\x02\x06\x05\x12\x04\xc1\x08\x02\ - \x07\n\r\n\x05\x04\x17\x02\x06\x01\x12\x04\xc1\x08\x08\x11\n\r\n\x05\x04\ - \x17\x02\x06\x03\x12\x04\xc1\x08\x14\x15\nw\n\x04\x04\x17\x02\x07\x12\ - \x04\xc5\x08\x02>\x1ai\x20Output\x20only.\x20An\x20output-only\x20field\ - \x20that\x20indicates\x20whether\x20or\x20not\x20the\n\x20subscription\ - \x20can\x20receive\x20messages.\n\n\r\n\x05\x04\x17\x02\x07\x06\x12\x04\ - \xc5\x08\x02\x07\n\r\n\x05\x04\x17\x02\x07\x01\x12\x04\xc5\x08\x08\r\n\r\ - \n\x05\x04\x17\x02\x07\x03\x12\x04\xc5\x08\x10\x11\n\r\n\x05\x04\x17\x02\ - \x07\x08\x12\x04\xc5\x08\x12=\n\x10\n\x08\x04\x17\x02\x07\x08\x9c\x08\0\ - \x12\x04\xc5\x08\x13<\nB\n\x02\x04\x18\x12\x06\xc9\x08\0\xe1\x08\x01\x1a\ - 4\x20A\x20message\x20and\x20its\x20corresponding\x20acknowledgment\x20ID\ - .\n\n\x0b\n\x03\x04\x18\x01\x12\x04\xc9\x08\x08\x17\nH\n\x04\x04\x18\x02\ - \0\x12\x04\xcb\x08\x02\x14\x1a:\x20This\x20ID\x20can\x20be\x20used\x20to\ - \x20acknowledge\x20the\x20received\x20message.\n\n\r\n\x05\x04\x18\x02\0\ - \x05\x12\x04\xcb\x08\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\xcb\x08\ - \t\x0f\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xcb\x08\x12\x13\n\x1c\n\x04\ - \x04\x18\x02\x01\x12\x04\xce\x08\x02\x1c\x1a\x0e\x20The\x20message.\n\n\ - \r\n\x05\x04\x18\x02\x01\x06\x12\x04\xce\x08\x02\x0f\n\r\n\x05\x04\x18\ - \x02\x01\x01\x12\x04\xce\x08\x10\x17\n\r\n\x05\x04\x18\x02\x01\x03\x12\ - \x04\xce\x08\x1a\x1b\n\xe5\x05\n\x04\x04\x18\x02\x02\x12\x04\xe0\x08\x02\ - \x1d\x1a\xd6\x05\x20The\x20approximate\x20number\x20of\x20times\x20that\ - \x20Cloud\x20Pub/Sub\x20has\x20attempted\x20to\x20deliver\n\x20the\x20as\ - sociated\x20message\x20to\x20a\x20subscriber.\n\n\x20More\x20precisely,\ - \x20this\x20is\x201\x20+\x20(number\x20of\x20NACKs)\x20+\n\x20(number\ - \x20of\x20ack_deadline\x20exceeds)\x20for\x20this\x20message.\n\n\x20A\ - \x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\x20with\x20a\ - \x200\x20deadline.\x20An\x20ack_deadline\n\x20exceeds\x20event\x20is\x20\ - whenever\x20a\x20message\x20is\x20not\x20acknowledged\x20within\n\x20ack\ - _deadline.\x20Note\x20that\x20ack_deadline\x20is\x20initially\n\x20Subsc\ - ription.ackDeadlineSeconds,\x20but\x20may\x20get\x20extended\x20automati\ - cally\x20by\n\x20the\x20client\x20library.\n\n\x20Upon\x20the\x20first\ - \x20delivery\x20of\x20a\x20given\x20message,\x20`delivery_attempt`\x20wi\ - ll\x20have\x20a\n\x20value\x20of\x201.\x20The\x20value\x20is\x20calculat\ - ed\x20at\x20best\x20effort\x20and\x20is\x20approximate.\n\n\x20If\x20a\ - \x20DeadLetterPolicy\x20is\x20not\x20set\x20on\x20the\x20subscription,\ - \x20this\x20will\x20be\x200.\n\n\r\n\x05\x04\x18\x02\x02\x05\x12\x04\xe0\ - \x08\x02\x07\n\r\n\x05\x04\x18\x02\x02\x01\x12\x04\xe0\x08\x08\x18\n\r\n\ - \x05\x04\x18\x02\x02\x03\x12\x04\xe0\x08\x1b\x1c\n7\n\x02\x04\x19\x12\ - \x06\xe4\x08\0\xed\x08\x01\x1a)\x20Request\x20for\x20the\x20GetSubscript\ - ion\x20method.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xe4\x08\x08\x1e\nu\n\ - \x04\x04\x19\x02\0\x12\x06\xe7\x08\x02\xec\x08\x04\x1ae\x20Required.\x20\ - The\x20name\x20of\x20the\x20subscription\x20to\x20get.\n\x20Format\x20is\ - \x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x19\x02\0\ - \x05\x12\x04\xe7\x08\x02\x08\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\xe7\x08\ - \t\x15\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xe7\x08\x18\x19\n\x0f\n\x05\ - \x04\x19\x02\0\x08\x12\x06\xe7\x08\x1a\xec\x08\x03\n\x10\n\x08\x04\x19\ - \x02\0\x08\x9c\x08\0\x12\x04\xe8\x08\x04*\n\x11\n\x07\x04\x19\x02\0\x08\ - \x9f\x08\x12\x06\xe9\x08\x04\xeb\x08\x05\n:\n\x02\x04\x1a\x12\x06\xf0\ - \x08\0\xf8\x08\x01\x1a,\x20Request\x20for\x20the\x20UpdateSubscription\ - \x20method.\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\xf0\x08\x08!\n:\n\x04\x04\ - \x1a\x02\0\x12\x04\xf2\x08\x02I\x1a,\x20Required.\x20The\x20updated\x20s\ - ubscription\x20object.\n\n\r\n\x05\x04\x1a\x02\0\x06\x12\x04\xf2\x08\x02\ - \x0e\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xf2\x08\x0f\x1b\n\r\n\x05\x04\ - \x1a\x02\0\x03\x12\x04\xf2\x08\x1e\x1f\n\r\n\x05\x04\x1a\x02\0\x08\x12\ - \x04\xf2\x08\x20H\n\x10\n\x08\x04\x1a\x02\0\x08\x9c\x08\0\x12\x04\xf2\ - \x08!G\n|\n\x04\x04\x1a\x02\x01\x12\x06\xf6\x08\x02\xf7\x08/\x1al\x20Req\ - uired.\x20Indicates\x20which\x20fields\x20in\x20the\x20provided\x20subsc\ - ription\x20to\x20update.\n\x20Must\x20be\x20specified\x20and\x20non-empt\ - y.\n\n\r\n\x05\x04\x1a\x02\x01\x06\x12\x04\xf6\x08\x02\x1b\n\r\n\x05\x04\ - \x1a\x02\x01\x01\x12\x04\xf6\x08\x1c'\n\r\n\x05\x04\x1a\x02\x01\x03\x12\ - \x04\xf6\x08*+\n\r\n\x05\x04\x1a\x02\x01\x08\x12\x04\xf7\x08\x06.\n\x10\ - \n\x08\x04\x1a\x02\x01\x08\x9c\x08\0\x12\x04\xf7\x08\x07-\n;\n\x02\x04\ - \x1b\x12\x06\xfb\x08\0\x8c\t\x01\x1a-\x20Request\x20for\x20the\x20`ListS\ - ubscriptions`\x20method.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xfb\x08\x08\ - \x20\nw\n\x04\x04\x1b\x02\0\x12\x06\xfe\x08\x02\x83\t\x04\x1ag\x20Requir\ - ed.\x20The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20list\ - \x20subscriptions.\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\r\n\ - \x05\x04\x1b\x02\0\x05\x12\x04\xfe\x08\x02\x08\n\r\n\x05\x04\x1b\x02\0\ - \x01\x12\x04\xfe\x08\t\x10\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xfe\x08\ - \x13\x14\n\x0f\n\x05\x04\x1b\x02\0\x08\x12\x06\xfe\x08\x15\x83\t\x03\n\ - \x10\n\x08\x04\x1b\x02\0\x08\x9c\x08\0\x12\x04\xff\x08\x04*\n\x11\n\x07\ - \x04\x1b\x02\0\x08\x9f\x08\x12\x06\x80\t\x04\x82\t\x05\n:\n\x04\x04\x1b\ - \x02\x01\x12\x04\x86\t\x02\x16\x1a,\x20Maximum\x20number\x20of\x20subscr\ - iptions\x20to\x20return.\n\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\x86\t\ - \x02\x07\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\x86\t\x08\x11\n\r\n\x05\ - \x04\x1b\x02\x01\x03\x12\x04\x86\t\x14\x15\n\xd2\x01\n\x04\x04\x1b\x02\ - \x02\x12\x04\x8b\t\x02\x18\x1a\xc3\x01\x20The\x20value\x20returned\x20by\ - \x20the\x20last\x20`ListSubscriptionsResponse`;\x20indicates\x20that\n\ - \x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`ListSubscrip\ - tions`\x20call,\x20and\x20that\x20the\n\x20system\x20should\x20return\ - \x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x1b\x02\x02\x05\ - \x12\x04\x8b\t\x02\x08\n\r\n\x05\x04\x1b\x02\x02\x01\x12\x04\x8b\t\t\x13\ - \n\r\n\x05\x04\x1b\x02\x02\x03\x12\x04\x8b\t\x16\x17\n<\n\x02\x04\x1c\ - \x12\x06\x8f\t\0\x97\t\x01\x1a.\x20Response\x20for\x20the\x20`ListSubscr\ - iptions`\x20method.\n\n\x0b\n\x03\x04\x1c\x01\x12\x04\x8f\t\x08!\n9\n\ - \x04\x04\x1c\x02\0\x12\x04\x91\t\x02*\x1a+\x20The\x20subscriptions\x20th\ - at\x20match\x20the\x20request.\n\n\r\n\x05\x04\x1c\x02\0\x04\x12\x04\x91\ - \t\x02\n\n\r\n\x05\x04\x1c\x02\0\x06\x12\x04\x91\t\x0b\x17\n\r\n\x05\x04\ - \x1c\x02\0\x01\x12\x04\x91\t\x18%\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\ - \x91\t()\n\xc2\x01\n\x04\x04\x1c\x02\x01\x12\x04\x96\t\x02\x1d\x1a\xb3\ - \x01\x20If\x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\ - \x20more\x20subscriptions\x20that\x20match\n\x20the\x20request;\x20this\ - \x20value\x20should\x20be\x20passed\x20in\x20a\x20new\n\x20`ListSubscrip\ - tionsRequest`\x20to\x20get\x20more\x20subscriptions.\n\n\r\n\x05\x04\x1c\ - \x02\x01\x05\x12\x04\x96\t\x02\x08\n\r\n\x05\x04\x1c\x02\x01\x01\x12\x04\ - \x96\t\t\x18\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\x96\t\x1b\x1c\n:\n\ - \x02\x04\x1d\x12\x06\x9a\t\0\xa3\t\x01\x1a,\x20Request\x20for\x20the\x20\ - DeleteSubscription\x20method.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\x9a\t\ - \x08!\nl\n\x04\x04\x1d\x02\0\x12\x06\x9d\t\x02\xa2\t\x04\x1a\\\x20Requir\ - ed.\x20The\x20subscription\x20to\x20delete.\n\x20Format\x20is\x20`projec\ - ts/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x1d\x02\0\x05\x12\x04\ - \x9d\t\x02\x08\n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\x9d\t\t\x15\n\r\n\x05\ - \x04\x1d\x02\0\x03\x12\x04\x9d\t\x18\x19\n\x0f\n\x05\x04\x1d\x02\0\x08\ - \x12\x06\x9d\t\x1a\xa2\t\x03\n\x10\n\x08\x04\x1d\x02\0\x08\x9c\x08\0\x12\ - \x04\x9e\t\x04*\n\x11\n\x07\x04\x1d\x02\0\x08\x9f\x08\x12\x06\x9f\t\x04\ - \xa1\t\x05\n8\n\x02\x04\x1e\x12\x06\xa6\t\0\xb7\t\x01\x1a*\x20Request\ - \x20for\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x1e\x01\ - \x12\x04\xa6\t\x08\x1f\nn\n\x04\x04\x1e\x02\0\x12\x06\xa9\t\x02\xae\t\ - \x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscription.\n\ + \x20Pub/Sub\x20API.\n\n\x20For\x20example:\n\x20
attributes\
+    \x20{\x20\"x-goog-version\":\x20\"v1\"\x20}\x20
\n\n\r\n\x05\ + \x04\x11\x02\x01\x06\x12\x04\xce\x05\x02\x15\n\r\n\x05\x04\x11\x02\x01\ + \x01\x12\x04\xce\x05\x16\x20\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xce\ + \x05#$\n\xca\x02\n\x04\x04\x11\x08\0\x12\x06\xd5\x05\x02\xd9\x05\x03\x1a\ + \xb9\x02\x20An\x20authentication\x20method\x20used\x20by\x20push\x20endp\ + oints\x20to\x20verify\x20the\x20source\x20of\n\x20push\x20requests.\x20T\ + his\x20can\x20be\x20used\x20with\x20push\x20endpoints\x20that\x20are\x20\ + private\x20by\n\x20default\x20to\x20allow\x20requests\x20only\x20from\ + \x20the\x20Cloud\x20Pub/Sub\x20system,\x20for\x20example.\n\x20This\x20f\ + ield\x20is\x20optional\x20and\x20should\x20be\x20set\x20only\x20by\x20us\ + ers\x20interested\x20in\n\x20authenticated\x20push.\n\n\r\n\x05\x04\x11\ + \x08\0\x01\x12\x04\xd5\x05\x08\x1d\n\x9d\x01\n\x04\x04\x11\x02\x02\x12\ + \x04\xd8\x05\x04\x1d\x1a\x8e\x01\x20If\x20specified,\x20Pub/Sub\x20will\ + \x20generate\x20and\x20attach\x20an\x20OIDC\x20JWT\x20token\x20as\x20an\ + \n\x20`Authorization`\x20header\x20in\x20the\x20HTTP\x20request\x20for\ + \x20every\x20pushed\x20message.\n\n\r\n\x05\x04\x11\x02\x02\x06\x12\x04\ + \xd8\x05\x04\r\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xd8\x05\x0e\x18\n\r\ + \n\x05\x04\x11\x02\x02\x03\x12\x04\xd8\x05\x1b\x1c\nB\n\x02\x04\x12\x12\ + \x06\xdd\x05\0\xf5\x05\x01\x1a4\x20A\x20message\x20and\x20its\x20corresp\ + onding\x20acknowledgment\x20ID.\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xdd\ + \x05\x08\x17\nH\n\x04\x04\x12\x02\0\x12\x04\xdf\x05\x02\x14\x1a:\x20This\ + \x20ID\x20can\x20be\x20used\x20to\x20acknowledge\x20the\x20received\x20m\ + essage.\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xdf\x05\x02\x08\n\r\n\x05\ + \x04\x12\x02\0\x01\x12\x04\xdf\x05\t\x0f\n\r\n\x05\x04\x12\x02\0\x03\x12\ + \x04\xdf\x05\x12\x13\n\x1c\n\x04\x04\x12\x02\x01\x12\x04\xe2\x05\x02\x1c\ + \x1a\x0e\x20The\x20message.\n\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xe2\ + \x05\x02\x0f\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xe2\x05\x10\x17\n\r\n\ + \x05\x04\x12\x02\x01\x03\x12\x04\xe2\x05\x1a\x1b\n\xc6\x06\n\x04\x04\x12\ + \x02\x02\x12\x04\xf4\x05\x02\x1d\x1a\xb7\x06\x20Delivery\x20attempt\x20c\ + ounter\x20is\x201\x20+\x20(the\x20sum\x20of\x20number\x20of\x20NACKs\x20\ + and\x20number\x20of\n\x20ack_deadline\x20exceeds)\x20for\x20this\x20mess\ + age.\n\n\x20A\x20NACK\x20is\x20any\x20call\x20to\x20ModifyAckDeadline\ + \x20with\x20a\x200\x20deadline.\x20An\x20ack_deadline\n\x20exceeds\x20ev\ + ent\x20is\x20whenever\x20a\x20message\x20is\x20not\x20acknowledged\x20wi\ + thin\n\x20ack_deadline.\x20Note\x20that\x20ack_deadline\x20is\x20initial\ + ly\n\x20Subscription.ackDeadlineSeconds,\x20but\x20may\x20get\x20extende\ + d\x20automatically\x20by\n\x20the\x20client\x20library.\n\n\x20The\x20fi\ + rst\x20delivery\x20of\x20a\x20given\x20message\x20will\x20have\x20this\ + \x20value\x20as\x201.\x20The\x20value\n\x20is\x20calculated\x20at\x20bes\ + t\x20effort\x20and\x20is\x20approximate.\n\n\x20If\x20a\x20DeadLetterPol\ + icy\x20is\x20not\x20set\x20on\x20the\x20subscription,\x20this\x20will\ + \x20be\x200.\n\x20EXPERIMENTAL:\x20This\x20feature\x20is\x20part\ + \x20of\x20a\x20closed\x20alpha\x20release.\x20This\n\x20API\x20might\x20\ + be\x20changed\x20in\x20backward-incompatible\x20ways\x20and\x20is\x20not\ + \x20recommended\n\x20for\x20production\x20use.\x20It\x20is\x20not\x20sub\ + ject\x20to\x20any\x20SLA\x20or\x20deprecation\x20policy.\n\n\r\n\x05\x04\ + \x12\x02\x02\x05\x12\x04\xf4\x05\x02\x07\n\r\n\x05\x04\x12\x02\x02\x01\ + \x12\x04\xf4\x05\x08\x18\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xf4\x05\ + \x1b\x1c\n7\n\x02\x04\x13\x12\x06\xf8\x05\0\xfc\x05\x01\x1a)\x20Request\ + \x20for\x20the\x20GetSubscription\x20method.\n\n\x0b\n\x03\x04\x13\x01\ + \x12\x04\xf8\x05\x08\x1e\ni\n\x04\x04\x13\x02\0\x12\x04\xfb\x05\x02\x1a\ + \x1a[\x20The\x20name\x20of\x20the\x20subscription\x20to\x20get.\n\x20For\ + mat\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\ + \x13\x02\0\x05\x12\x04\xfb\x05\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\ + \x04\xfb\x05\t\x15\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xfb\x05\x18\x19\n\ + :\n\x02\x04\x14\x12\x06\xff\x05\0\x86\x06\x01\x1a,\x20Request\x20for\x20\ + the\x20UpdateSubscription\x20method.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\ + \xff\x05\x08!\n0\n\x04\x04\x14\x02\0\x12\x04\x81\x06\x02\x20\x1a\"\x20Th\ + e\x20updated\x20subscription\x20object.\n\n\r\n\x05\x04\x14\x02\0\x06\ + \x12\x04\x81\x06\x02\x0e\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\x81\x06\x0f\ + \x1b\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\x81\x06\x1e\x1f\np\n\x04\x04\ + \x14\x02\x01\x12\x04\x85\x06\x02,\x1ab\x20Indicates\x20which\x20fields\ + \x20in\x20the\x20provided\x20subscription\x20to\x20update.\n\x20Must\x20\ + be\x20specified\x20and\x20non-empty.\n\n\r\n\x05\x04\x14\x02\x01\x06\x12\ + \x04\x85\x06\x02\x1b\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\x85\x06\x1c'\ + \n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\x85\x06*+\n;\n\x02\x04\x15\x12\ + \x06\x89\x06\0\x95\x06\x01\x1a-\x20Request\x20for\x20the\x20`ListSubscri\ + ptions`\x20method.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\x89\x06\x08\x20\nk\ + \n\x04\x04\x15\x02\0\x12\x04\x8c\x06\x02\x15\x1a]\x20The\x20name\x20of\ + \x20the\x20project\x20in\x20which\x20to\x20list\x20subscriptions.\n\x20F\ + ormat\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\x04\x15\x02\0\x05\ + \x12\x04\x8c\x06\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\x8c\x06\t\ + \x10\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\x8c\x06\x13\x14\n:\n\x04\x04\ + \x15\x02\x01\x12\x04\x8f\x06\x02\x16\x1a,\x20Maximum\x20number\x20of\x20\ + subscriptions\x20to\x20return.\n\n\r\n\x05\x04\x15\x02\x01\x05\x12\x04\ + \x8f\x06\x02\x07\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\x8f\x06\x08\x11\n\ + \r\n\x05\x04\x15\x02\x01\x03\x12\x04\x8f\x06\x14\x15\n\xd2\x01\n\x04\x04\ + \x15\x02\x02\x12\x04\x94\x06\x02\x18\x1a\xc3\x01\x20The\x20value\x20retu\ + rned\x20by\x20the\x20last\x20`ListSubscriptionsResponse`;\x20indicates\ + \x20that\n\x20this\x20is\x20a\x20continuation\x20of\x20a\x20prior\x20`Li\ + stSubscriptions`\x20call,\x20and\x20that\x20the\n\x20system\x20should\ + \x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x15\x02\ + \x02\x05\x12\x04\x94\x06\x02\x08\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\ + \x94\x06\t\x13\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\x94\x06\x16\x17\n<\ + \n\x02\x04\x16\x12\x06\x98\x06\0\xa0\x06\x01\x1a.\x20Response\x20for\x20\ + the\x20`ListSubscriptions`\x20method.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\ + \x98\x06\x08!\n9\n\x04\x04\x16\x02\0\x12\x04\x9a\x06\x02*\x1a+\x20The\ + \x20subscriptions\x20that\x20match\x20the\x20request.\n\n\r\n\x05\x04\ + \x16\x02\0\x04\x12\x04\x9a\x06\x02\n\n\r\n\x05\x04\x16\x02\0\x06\x12\x04\ + \x9a\x06\x0b\x17\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\x9a\x06\x18%\n\r\n\ + \x05\x04\x16\x02\0\x03\x12\x04\x9a\x06()\n\xc2\x01\n\x04\x04\x16\x02\x01\ + \x12\x04\x9f\x06\x02\x1d\x1a\xb3\x01\x20If\x20not\x20empty,\x20indicates\ + \x20that\x20there\x20may\x20be\x20more\x20subscriptions\x20that\x20match\ + \n\x20the\x20request;\x20this\x20value\x20should\x20be\x20passed\x20in\ + \x20a\x20new\n\x20`ListSubscriptionsRequest`\x20to\x20get\x20more\x20sub\ + scriptions.\n\n\r\n\x05\x04\x16\x02\x01\x05\x12\x04\x9f\x06\x02\x08\n\r\ + \n\x05\x04\x16\x02\x01\x01\x12\x04\x9f\x06\t\x18\n\r\n\x05\x04\x16\x02\ + \x01\x03\x12\x04\x9f\x06\x1b\x1c\n:\n\x02\x04\x17\x12\x06\xa3\x06\0\xa7\ + \x06\x01\x1a,\x20Request\x20for\x20the\x20DeleteSubscription\x20method.\ + \n\n\x0b\n\x03\x04\x17\x01\x12\x04\xa3\x06\x08!\n`\n\x04\x04\x17\x02\0\ + \x12\x04\xa6\x06\x02\x1a\x1aR\x20The\x20subscription\x20to\x20delete.\n\ \x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\ - \x05\x04\x1e\x02\0\x05\x12\x04\xa9\t\x02\x08\n\r\n\x05\x04\x1e\x02\0\x01\ - \x12\x04\xa9\t\t\x15\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\xa9\t\x18\x19\n\ - \x0f\n\x05\x04\x1e\x02\0\x08\x12\x06\xa9\t\x1a\xae\t\x03\n\x10\n\x08\x04\ - \x1e\x02\0\x08\x9c\x08\0\x12\x04\xaa\t\x04*\n\x11\n\x07\x04\x1e\x02\0\ - \x08\x9f\x08\x12\x06\xab\t\x04\xad\t\x05\n\xc2\x02\n\x04\x04\x1e\x02\x01\ - \x12\x04\xb6\t\x02F\x1a\xb3\x02\x20Required.\x20The\x20push\x20configura\ - tion\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\x20`pushConfig`\ - \x20indicates\x20that\x20the\x20Pub/Sub\x20system\x20should\n\x20stop\ - \x20pushing\x20messages\x20from\x20the\x20given\x20subscription\x20and\ - \x20allow\n\x20messages\x20to\x20be\x20pulled\x20and\x20acknowledged\x20\ - -\x20effectively\x20pausing\n\x20the\x20subscription\x20if\x20`Pull`\x20\ - or\x20`StreamingPull`\x20is\x20not\x20called.\n\n\r\n\x05\x04\x1e\x02\ - \x01\x06\x12\x04\xb6\t\x02\x0c\n\r\n\x05\x04\x1e\x02\x01\x01\x12\x04\xb6\ - \t\r\x18\n\r\n\x05\x04\x1e\x02\x01\x03\x12\x04\xb6\t\x1b\x1c\n\r\n\x05\ - \x04\x1e\x02\x01\x08\x12\x04\xb6\t\x1dE\n\x10\n\x08\x04\x1e\x02\x01\x08\ - \x9c\x08\0\x12\x04\xb6\t\x1eD\n.\n\x02\x04\x1f\x12\x06\xba\t\0\xd2\t\x01\ - \x1a\x20\x20Request\x20for\x20the\x20`Pull`\x20method.\n\n\x0b\n\x03\x04\ - \x1f\x01\x12\x04\xba\t\x08\x13\n\x87\x01\n\x04\x04\x1f\x02\0\x12\x06\xbd\ - \t\x02\xc2\t\x04\x1aw\x20Required.\x20The\x20subscription\x20from\x20whi\ - ch\x20messages\x20should\x20be\x20pulled.\n\x20Format\x20is\x20`projects\ - /{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\ - \xbd\t\x02\x08\n\r\n\x05\x04\x1f\x02\0\x01\x12\x04\xbd\t\t\x15\n\r\n\x05\ - \x04\x1f\x02\0\x03\x12\x04\xbd\t\x18\x19\n\x0f\n\x05\x04\x1f\x02\0\x08\ - \x12\x06\xbd\t\x1a\xc2\t\x03\n\x10\n\x08\x04\x1f\x02\0\x08\x9c\x08\0\x12\ - \x04\xbe\t\x04*\n\x11\n\x07\x04\x1f\x02\0\x08\x9f\x08\x12\x06\xbf\t\x04\ - \xc1\t\x05\n\xdf\x03\n\x04\x04\x1f\x02\x01\x12\x06\xcb\t\x02\xcc\tB\x1a\ - \xce\x03\x20Optional.\x20If\x20this\x20field\x20set\x20to\x20true,\x20th\ - e\x20system\x20will\x20respond\x20immediately\n\x20even\x20if\x20it\x20t\ - here\x20are\x20no\x20messages\x20available\x20to\x20return\x20in\x20the\ - \x20`Pull`\n\x20response.\x20Otherwise,\x20the\x20system\x20may\x20wait\ - \x20(for\x20a\x20bounded\x20amount\x20of\x20time)\n\x20until\x20at\x20le\ - ast\x20one\x20message\x20is\x20available,\x20rather\x20than\x20returning\ - \x20no\x20messages.\n\x20Warning:\x20setting\x20this\x20field\x20to\x20`\ - true`\x20is\x20discouraged\x20because\x20it\x20adversely\n\x20impacts\ - \x20the\x20performance\x20of\x20`Pull`\x20operations.\x20We\x20recommend\ - \x20that\x20users\x20do\n\x20not\x20set\x20this\x20field.\n\n\r\n\x05\ - \x04\x1f\x02\x01\x05\x12\x04\xcb\t\x02\x06\n\r\n\x05\x04\x1f\x02\x01\x01\ - \x12\x04\xcb\t\x07\x19\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\xcb\t\x1c\ - \x1d\n\r\n\x05\x04\x1f\x02\x01\x08\x12\x04\xcc\t\x06A\n\x0e\n\x06\x04\ - \x1f\x02\x01\x08\x03\x12\x04\xcc\t\x07\x18\n\x10\n\x08\x04\x1f\x02\x01\ - \x08\x9c\x08\0\x12\x04\xcc\t\x1a@\n\xb2\x01\n\x04\x04\x1f\x02\x02\x12\ - \x04\xd1\t\x02B\x1a\xa3\x01\x20Required.\x20The\x20maximum\x20number\x20\ - of\x20messages\x20to\x20return\x20for\x20this\x20request.\x20Must\n\x20b\ - e\x20a\x20positive\x20integer.\x20The\x20Pub/Sub\x20system\x20may\x20ret\ - urn\x20fewer\x20than\x20the\x20number\n\x20specified.\n\n\r\n\x05\x04\ - \x1f\x02\x02\x05\x12\x04\xd1\t\x02\x07\n\r\n\x05\x04\x1f\x02\x02\x01\x12\ - \x04\xd1\t\x08\x14\n\r\n\x05\x04\x1f\x02\x02\x03\x12\x04\xd1\t\x17\x18\n\ - \r\n\x05\x04\x1f\x02\x02\x08\x12\x04\xd1\t\x19A\n\x10\n\x08\x04\x1f\x02\ - \x02\x08\x9c\x08\0\x12\x04\xd1\t\x1a@\n/\n\x02\x04\x20\x12\x06\xd5\t\0\ - \xdc\t\x01\x1a!\x20Response\x20for\x20the\x20`Pull`\x20method.\n\n\x0b\n\ - \x03\x04\x20\x01\x12\x04\xd5\t\x08\x14\n\xeb\x02\n\x04\x04\x20\x02\0\x12\ - \x04\xdb\t\x021\x1a\xdc\x02\x20Received\x20Pub/Sub\x20messages.\x20The\ - \x20list\x20will\x20be\x20empty\x20if\x20there\x20are\x20no\x20more\n\ - \x20messages\x20available\x20in\x20the\x20backlog,\x20or\x20if\x20no\x20\ - messages\x20could\x20be\x20returned\n\x20before\x20the\x20request\x20tim\ - eout.\x20For\x20JSON,\x20the\x20response\x20can\x20be\x20entirely\n\x20e\ - mpty.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\x20than\x20t\ - he\x20`maxMessages`\x20requested\n\x20even\x20if\x20there\x20are\x20more\ - \x20messages\x20available\x20in\x20the\x20backlog.\n\n\r\n\x05\x04\x20\ - \x02\0\x04\x12\x04\xdb\t\x02\n\n\r\n\x05\x04\x20\x02\0\x06\x12\x04\xdb\t\ - \x0b\x1a\n\r\n\x05\x04\x20\x02\0\x01\x12\x04\xdb\t\x1b,\n\r\n\x05\x04\ - \x20\x02\0\x03\x12\x04\xdb\t/0\n9\n\x02\x04!\x12\x06\xdf\t\0\xf5\t\x01\ - \x1a+\x20Request\x20for\x20the\x20ModifyAckDeadline\x20method.\n\n\x0b\n\ - \x03\x04!\x01\x12\x04\xdf\t\x08\x20\nn\n\x04\x04!\x02\0\x12\x06\xe2\t\ - \x02\xe7\t\x04\x1a^\x20Required.\x20The\x20name\x20of\x20the\x20subscrip\ - tion.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\ - \r\n\x05\x04!\x02\0\x05\x12\x04\xe2\t\x02\x08\n\r\n\x05\x04!\x02\0\x01\ - \x12\x04\xe2\t\t\x15\n\r\n\x05\x04!\x02\0\x03\x12\x04\xe2\t\x18\x19\n\ - \x0f\n\x05\x04!\x02\0\x08\x12\x06\xe2\t\x1a\xe7\t\x03\n\x10\n\x08\x04!\ - \x02\0\x08\x9c\x08\0\x12\x04\xe3\t\x04*\n\x11\n\x07\x04!\x02\0\x08\x9f\ - \x08\x12\x06\xe4\t\x04\xe6\t\x05\n5\n\x04\x04!\x02\x01\x12\x04\xea\t\x02\ - G\x1a'\x20Required.\x20List\x20of\x20acknowledgment\x20IDs.\n\n\r\n\x05\ - \x04!\x02\x01\x04\x12\x04\xea\t\x02\n\n\r\n\x05\x04!\x02\x01\x05\x12\x04\ - \xea\t\x0b\x11\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xea\t\x12\x19\n\r\n\ - \x05\x04!\x02\x01\x03\x12\x04\xea\t\x1c\x1d\n\r\n\x05\x04!\x02\x01\x08\ - \x12\x04\xea\t\x1eF\n\x10\n\x08\x04!\x02\x01\x08\x9c\x08\0\x12\x04\xea\t\ - \x1fE\n\xb4\x04\n\x04\x04!\x02\x02\x12\x04\xf4\t\x02J\x1a\xa5\x04\x20Req\ - uired.\x20The\x20new\x20ack\x20deadline\x20with\x20respect\x20to\x20the\ - \x20time\x20this\x20request\x20was\n\x20sent\x20to\x20the\x20Pub/Sub\x20\ - system.\x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20\ - new\x20ack\n\x20deadline\x20will\x20expire\x2010\x20seconds\x20after\x20\ - the\x20`ModifyAckDeadline`\x20call\x20was\n\x20made.\x20Specifying\x20ze\ - ro\x20might\x20immediately\x20make\x20the\x20message\x20available\x20for\ - \n\x20delivery\x20to\x20another\x20subscriber\x20client.\x20This\x20typi\ - cally\x20results\x20in\x20an\n\x20increase\x20in\x20the\x20rate\x20of\ - \x20message\x20redeliveries\x20(that\x20is,\x20duplicates).\n\x20The\x20\ - minimum\x20deadline\x20you\x20can\x20specify\x20is\x200\x20seconds.\n\ - \x20The\x20maximum\x20deadline\x20you\x20can\x20specify\x20is\x20600\x20\ - seconds\x20(10\x20minutes).\n\n\r\n\x05\x04!\x02\x02\x05\x12\x04\xf4\t\ - \x02\x07\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xf4\t\x08\x1c\n\r\n\x05\x04!\ - \x02\x02\x03\x12\x04\xf4\t\x1f\x20\n\r\n\x05\x04!\x02\x02\x08\x12\x04\ - \xf4\t!I\n\x10\n\x08\x04!\x02\x02\x08\x9c\x08\0\x12\x04\xf4\t\"H\n3\n\ - \x02\x04\"\x12\x06\xf8\t\0\x86\n\x01\x1a%\x20Request\x20for\x20the\x20Ac\ - knowledge\x20method.\n\n\x0b\n\x03\x04\"\x01\x12\x04\xf8\t\x08\x1a\n\x86\ - \x01\n\x04\x04\"\x02\0\x12\x06\xfb\t\x02\x80\n\x04\x1av\x20Required.\x20\ - The\x20subscription\x20whose\x20message\x20is\x20being\x20acknowledged.\ + \x05\x04\x17\x02\0\x05\x12\x04\xa6\x06\x02\x08\n\r\n\x05\x04\x17\x02\0\ + \x01\x12\x04\xa6\x06\t\x15\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xa6\x06\ + \x18\x19\n8\n\x02\x04\x18\x12\x06\xaa\x06\0\xb6\x06\x01\x1a*\x20Request\ + \x20for\x20the\x20ModifyPushConfig\x20method.\n\n\x0b\n\x03\x04\x18\x01\ + \x12\x04\xaa\x06\x08\x1f\nb\n\x04\x04\x18\x02\0\x12\x04\xad\x06\x02\x1a\ + \x1aT\x20The\x20name\x20of\x20the\x20subscription.\n\x20Format\x20is\x20\ + `projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x18\x02\0\x05\ + \x12\x04\xad\x06\x02\x08\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\xad\x06\t\ + \x15\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xad\x06\x18\x19\n\xb8\x02\n\x04\ + \x04\x18\x02\x01\x12\x04\xb5\x06\x02\x1d\x1a\xa9\x02\x20The\x20push\x20c\ + onfiguration\x20for\x20future\x20deliveries.\n\n\x20An\x20empty\x20`push\ + Config`\x20indicates\x20that\x20the\x20Pub/Sub\x20system\x20should\n\x20\ + stop\x20pushing\x20messages\x20from\x20the\x20given\x20subscription\x20a\ + nd\x20allow\n\x20messages\x20to\x20be\x20pulled\x20and\x20acknowledged\ + \x20-\x20effectively\x20pausing\n\x20the\x20subscription\x20if\x20`Pull`\ + \x20or\x20`StreamingPull`\x20is\x20not\x20called.\n\n\r\n\x05\x04\x18\ + \x02\x01\x06\x12\x04\xb5\x06\x02\x0c\n\r\n\x05\x04\x18\x02\x01\x01\x12\ + \x04\xb5\x06\r\x18\n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xb5\x06\x1b\x1c\ + \n.\n\x02\x04\x19\x12\x06\xb9\x06\0\xc8\x06\x01\x1a\x20\x20Request\x20fo\ + r\x20the\x20`Pull`\x20method.\n\n\x0b\n\x03\x04\x19\x01\x12\x04\xb9\x06\ + \x08\x13\n{\n\x04\x04\x19\x02\0\x12\x04\xbc\x06\x02\x1a\x1am\x20The\x20s\ + ubscription\x20from\x20which\x20messages\x20should\x20be\x20pulled.\n\ + \x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\ + \x05\x04\x19\x02\0\x05\x12\x04\xbc\x06\x02\x08\n\r\n\x05\x04\x19\x02\0\ + \x01\x12\x04\xbc\x06\t\x15\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xbc\x06\ + \x18\x19\n\xa9\x02\n\x04\x04\x19\x02\x01\x12\x04\xc2\x06\x02\x1e\x1a\x9a\ + \x02\x20If\x20this\x20field\x20set\x20to\x20true,\x20the\x20system\x20wi\ + ll\x20respond\x20immediately\x20even\x20if\n\x20it\x20there\x20are\x20no\ + \x20messages\x20available\x20to\x20return\x20in\x20the\x20`Pull`\x20resp\ + onse.\n\x20Otherwise,\x20the\x20system\x20may\x20wait\x20(for\x20a\x20bo\ + unded\x20amount\x20of\x20time)\x20until\x20at\n\x20least\x20one\x20messa\ + ge\x20is\x20available,\x20rather\x20than\x20returning\x20no\x20messages.\ + \n\n\r\n\x05\x04\x19\x02\x01\x05\x12\x04\xc2\x06\x02\x06\n\r\n\x05\x04\ + \x19\x02\x01\x01\x12\x04\xc2\x06\x07\x19\n\r\n\x05\x04\x19\x02\x01\x03\ + \x12\x04\xc2\x06\x1c\x1d\n\xa8\x01\n\x04\x04\x19\x02\x02\x12\x04\xc7\x06\ + \x02\x19\x1a\x99\x01\x20The\x20maximum\x20number\x20of\x20messages\x20to\ + \x20return\x20for\x20this\x20request.\x20Must\x20be\x20a\n\x20positive\ + \x20integer.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\x20th\ + an\x20the\x20number\n\x20specified.\n\n\r\n\x05\x04\x19\x02\x02\x05\x12\ + \x04\xc7\x06\x02\x07\n\r\n\x05\x04\x19\x02\x02\x01\x12\x04\xc7\x06\x08\ + \x14\n\r\n\x05\x04\x19\x02\x02\x03\x12\x04\xc7\x06\x17\x18\n/\n\x02\x04\ + \x1a\x12\x06\xcb\x06\0\xd1\x06\x01\x1a!\x20Response\x20for\x20the\x20`Pu\ + ll`\x20method.\n\n\x0b\n\x03\x04\x1a\x01\x12\x04\xcb\x06\x08\x14\n\xaa\ + \x02\n\x04\x04\x1a\x02\0\x12\x04\xd0\x06\x021\x1a\x9b\x02\x20Received\ + \x20Pub/Sub\x20messages.\x20The\x20list\x20will\x20be\x20empty\x20if\x20\ + there\x20are\x20no\x20more\n\x20messages\x20available\x20in\x20the\x20ba\ + cklog.\x20For\x20JSON,\x20the\x20response\x20can\x20be\x20entirely\n\x20\ + empty.\x20The\x20Pub/Sub\x20system\x20may\x20return\x20fewer\x20than\x20\ + the\x20`maxMessages`\x20requested\n\x20even\x20if\x20there\x20are\x20mor\ + e\x20messages\x20available\x20in\x20the\x20backlog.\n\n\r\n\x05\x04\x1a\ + \x02\0\x04\x12\x04\xd0\x06\x02\n\n\r\n\x05\x04\x1a\x02\0\x06\x12\x04\xd0\ + \x06\x0b\x1a\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\xd0\x06\x1b,\n\r\n\x05\ + \x04\x1a\x02\0\x03\x12\x04\xd0\x06/0\n9\n\x02\x04\x1b\x12\x06\xd4\x06\0\ + \xe5\x06\x01\x1a+\x20Request\x20for\x20the\x20ModifyAckDeadline\x20metho\ + d.\n\n\x0b\n\x03\x04\x1b\x01\x12\x04\xd4\x06\x08\x20\nb\n\x04\x04\x1b\ + \x02\0\x12\x04\xd7\x06\x02\x1a\x1aT\x20The\x20name\x20of\x20the\x20subsc\ + ription.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\ + \n\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\xd7\x06\x02\x08\n\r\n\x05\x04\x1b\ + \x02\0\x01\x12\x04\xd7\x06\t\x15\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xd7\ + \x06\x18\x19\n+\n\x04\x04\x1b\x02\x01\x12\x04\xda\x06\x02\x1e\x1a\x1d\ + \x20List\x20of\x20acknowledgment\x20IDs.\n\n\r\n\x05\x04\x1b\x02\x01\x04\ + \x12\x04\xda\x06\x02\n\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\xda\x06\x0b\ + \x11\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\xda\x06\x12\x19\n\r\n\x05\x04\ + \x1b\x02\x01\x03\x12\x04\xda\x06\x1c\x1d\n\xaa\x04\n\x04\x04\x1b\x02\x02\ + \x12\x04\xe4\x06\x02!\x1a\x9b\x04\x20The\x20new\x20ack\x20deadline\x20wi\ + th\x20respect\x20to\x20the\x20time\x20this\x20request\x20was\x20sent\x20\ + to\n\x20the\x20Pub/Sub\x20system.\x20For\x20example,\x20if\x20the\x20val\ + ue\x20is\x2010,\x20the\x20new\n\x20ack\x20deadline\x20will\x20expire\x20\ + 10\x20seconds\x20after\x20the\x20`ModifyAckDeadline`\x20call\n\x20was\ + \x20made.\x20Specifying\x20zero\x20might\x20immediately\x20make\x20the\ + \x20message\x20available\x20for\n\x20delivery\x20to\x20another\x20subscr\ + iber\x20client.\x20This\x20typically\x20results\x20in\x20an\n\x20increas\ + e\x20in\x20the\x20rate\x20of\x20message\x20redeliveries\x20(that\x20is,\ + \x20duplicates).\n\x20The\x20minimum\x20deadline\x20you\x20can\x20specif\ + y\x20is\x200\x20seconds.\n\x20The\x20maximum\x20deadline\x20you\x20can\ + \x20specify\x20is\x20600\x20seconds\x20(10\x20minutes).\n\n\r\n\x05\x04\ + \x1b\x02\x02\x05\x12\x04\xe4\x06\x02\x07\n\r\n\x05\x04\x1b\x02\x02\x01\ + \x12\x04\xe4\x06\x08\x1c\n\r\n\x05\x04\x1b\x02\x02\x03\x12\x04\xe4\x06\ + \x1f\x20\n3\n\x02\x04\x1c\x12\x06\xe8\x06\0\xf0\x06\x01\x1a%\x20Request\ + \x20for\x20the\x20Acknowledge\x20method.\n\n\x0b\n\x03\x04\x1c\x01\x12\ + \x04\xe8\x06\x08\x1a\nz\n\x04\x04\x1c\x02\0\x12\x04\xeb\x06\x02\x1a\x1al\ + \x20The\x20subscription\x20whose\x20message\x20is\x20being\x20acknowledg\ + ed.\n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\ + \n\x05\x04\x1c\x02\0\x05\x12\x04\xeb\x06\x02\x08\n\r\n\x05\x04\x1c\x02\0\ + \x01\x12\x04\xeb\x06\t\x15\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xeb\x06\ + \x18\x19\n\x9e\x01\n\x04\x04\x1c\x02\x01\x12\x04\xef\x06\x02\x1e\x1a\x8f\ + \x01\x20The\x20acknowledgment\x20ID\x20for\x20the\x20messages\x20being\ + \x20acknowledged\x20that\x20was\x20returned\n\x20by\x20the\x20Pub/Sub\ + \x20system\x20in\x20the\x20`Pull`\x20response.\x20Must\x20not\x20be\x20e\ + mpty.\n\n\r\n\x05\x04\x1c\x02\x01\x04\x12\x04\xef\x06\x02\n\n\r\n\x05\ + \x04\x1c\x02\x01\x05\x12\x04\xef\x06\x0b\x11\n\r\n\x05\x04\x1c\x02\x01\ + \x01\x12\x04\xef\x06\x12\x19\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xef\ + \x06\x1c\x1d\n\xe1\x01\n\x02\x04\x1d\x12\x06\xf5\x06\0\x9c\x07\x01\x1a\ + \xd2\x01\x20Request\x20for\x20the\x20`StreamingPull`\x20streaming\x20RPC\ + \x20method.\x20This\x20request\x20is\x20used\x20to\n\x20establish\x20the\ + \x20initial\x20stream\x20as\x20well\x20as\x20to\x20stream\x20acknowledge\ + ments\x20and\x20ack\n\x20deadline\x20modifications\x20from\x20the\x20cli\ + ent\x20to\x20the\x20server.\n\n\x0b\n\x03\x04\x1d\x01\x12\x04\xf5\x06\ + \x08\x1c\n\xfc\x01\n\x04\x04\x1d\x02\0\x12\x04\xfa\x06\x02\x1a\x1a\xed\ + \x01\x20The\x20subscription\x20for\x20which\x20to\x20initialize\x20the\ + \x20new\x20stream.\x20This\x20must\x20be\n\x20provided\x20in\x20the\x20f\ + irst\x20request\x20on\x20the\x20stream,\x20and\x20must\x20not\x20be\x20s\ + et\x20in\n\x20subsequent\x20requests\x20from\x20client\x20to\x20server.\ \n\x20Format\x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\ - \x05\x04\"\x02\0\x05\x12\x04\xfb\t\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\ - \x04\xfb\t\t\x15\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xfb\t\x18\x19\n\x0f\n\ - \x05\x04\"\x02\0\x08\x12\x06\xfb\t\x1a\x80\n\x03\n\x10\n\x08\x04\"\x02\0\ - \x08\x9c\x08\0\x12\x04\xfc\t\x04*\n\x11\n\x07\x04\"\x02\0\x08\x9f\x08\ - \x12\x06\xfd\t\x04\xff\t\x05\n\xa9\x01\n\x04\x04\"\x02\x01\x12\x04\x85\n\ - \x02G\x1a\x9a\x01\x20Required.\x20The\x20acknowledgment\x20ID\x20for\x20\ - the\x20messages\x20being\x20acknowledged\x20that\n\x20was\x20returned\ - \x20by\x20the\x20Pub/Sub\x20system\x20in\x20the\x20`Pull`\x20response.\ - \x20Must\x20not\x20be\n\x20empty.\n\n\r\n\x05\x04\"\x02\x01\x04\x12\x04\ - \x85\n\x02\n\n\r\n\x05\x04\"\x02\x01\x05\x12\x04\x85\n\x0b\x11\n\r\n\x05\ - \x04\"\x02\x01\x01\x12\x04\x85\n\x12\x19\n\r\n\x05\x04\"\x02\x01\x03\x12\ - \x04\x85\n\x1c\x1d\n\r\n\x05\x04\"\x02\x01\x08\x12\x04\x85\n\x1eF\n\x10\ - \n\x08\x04\"\x02\x01\x08\x9c\x08\0\x12\x04\x85\n\x1fE\n\xe1\x01\n\x02\ - \x04#\x12\x06\x8b\n\0\xd6\n\x01\x1a\xd2\x01\x20Request\x20for\x20the\x20\ - `StreamingPull`\x20streaming\x20RPC\x20method.\x20This\x20request\x20is\ - \x20used\x20to\n\x20establish\x20the\x20initial\x20stream\x20as\x20well\ - \x20as\x20to\x20stream\x20acknowledgements\x20and\x20ack\n\x20deadline\ - \x20modifications\x20from\x20the\x20client\x20to\x20the\x20server.\n\n\ - \x0b\n\x03\x04#\x01\x12\x04\x8b\n\x08\x1c\n\x88\x02\n\x04\x04#\x02\0\x12\ - \x06\x90\n\x02\x95\n\x04\x1a\xf7\x01\x20Required.\x20The\x20subscription\ - \x20for\x20which\x20to\x20initialize\x20the\x20new\x20stream.\x20This\n\ - \x20must\x20be\x20provided\x20in\x20the\x20first\x20request\x20on\x20the\ - \x20stream,\x20and\x20must\x20not\x20be\x20set\x20in\n\x20subsequent\x20\ - requests\x20from\x20client\x20to\x20server.\n\x20Format\x20is\x20`projec\ - ts/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04#\x02\0\x05\x12\x04\ - \x90\n\x02\x08\n\r\n\x05\x04#\x02\0\x01\x12\x04\x90\n\t\x15\n\r\n\x05\ - \x04#\x02\0\x03\x12\x04\x90\n\x18\x19\n\x0f\n\x05\x04#\x02\0\x08\x12\x06\ - \x90\n\x1a\x95\n\x03\n\x10\n\x08\x04#\x02\0\x08\x9c\x08\0\x12\x04\x91\n\ - \x04*\n\x11\n\x07\x04#\x02\0\x08\x9f\x08\x12\x06\x92\n\x04\x94\n\x05\n\ - \x85\x03\n\x04\x04#\x02\x01\x12\x04\x9c\n\x02\x1e\x1a\xf6\x02\x20List\ - \x20of\x20acknowledgement\x20IDs\x20for\x20acknowledging\x20previously\ - \x20received\x20messages\n\x20(received\x20on\x20this\x20stream\x20or\ - \x20a\x20different\x20stream).\x20If\x20an\x20ack\x20ID\x20has\x20expire\ - d,\n\x20the\x20corresponding\x20message\x20may\x20be\x20redelivered\x20l\ - ater.\x20Acknowledging\x20a\x20message\n\x20more\x20than\x20once\x20will\ - \x20not\x20result\x20in\x20an\x20error.\x20If\x20the\x20acknowledgement\ - \x20ID\x20is\n\x20malformed,\x20the\x20stream\x20will\x20be\x20aborted\ - \x20with\x20status\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\x04#\x02\x01\x04\ - \x12\x04\x9c\n\x02\n\n\r\n\x05\x04#\x02\x01\x05\x12\x04\x9c\n\x0b\x11\n\ - \r\n\x05\x04#\x02\x01\x01\x12\x04\x9c\n\x12\x19\n\r\n\x05\x04#\x02\x01\ - \x03\x12\x04\x9c\n\x1c\x1d\n\x89\x06\n\x04\x04#\x02\x02\x12\x04\xa9\n\ - \x02-\x1a\xfa\x05\x20The\x20list\x20of\x20new\x20ack\x20deadlines\x20for\ - \x20the\x20IDs\x20listed\x20in\n\x20`modify_deadline_ack_ids`.\x20The\ - \x20size\x20of\x20this\x20list\x20must\x20be\x20the\x20same\x20as\x20the\ - \n\x20size\x20of\x20`modify_deadline_ack_ids`.\x20If\x20it\x20differs\ - \x20the\x20stream\x20will\x20be\x20aborted\n\x20with\x20`INVALID_ARGUMEN\ - T`.\x20Each\x20element\x20in\x20this\x20list\x20is\x20applied\x20to\x20t\ - he\n\x20element\x20in\x20the\x20same\x20position\x20in\x20`modify_deadli\ - ne_ack_ids`.\x20The\x20new\x20ack\n\x20deadline\x20is\x20with\x20respect\ - \x20to\x20the\x20time\x20this\x20request\x20was\x20sent\x20to\x20the\x20\ - Pub/Sub\n\x20system.\x20Must\x20be\x20>=\x200.\x20For\x20example,\x20if\ - \x20the\x20value\x20is\x2010,\x20the\x20new\x20ack\x20deadline\n\x20will\ - \x20expire\x2010\x20seconds\x20after\x20this\x20request\x20is\x20receive\ - d.\x20If\x20the\x20value\x20is\x200,\n\x20the\x20message\x20is\x20immedi\ - ately\x20made\x20available\x20for\x20another\x20streaming\x20or\n\x20non\ - -streaming\x20pull\x20request.\x20If\x20the\x20value\x20is\x20<\x200\x20\ - (an\x20error),\x20the\x20stream\x20will\n\x20be\x20aborted\x20with\x20st\ - atus\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\x04#\x02\x02\x04\x12\x04\xa9\n\ - \x02\n\n\r\n\x05\x04#\x02\x02\x05\x12\x04\xa9\n\x0b\x10\n\r\n\x05\x04#\ - \x02\x02\x01\x12\x04\xa9\n\x11(\n\r\n\x05\x04#\x02\x02\x03\x12\x04\xa9\n\ - +,\n\xc8\x02\n\x04\x04#\x02\x03\x12\x04\xb0\n\x02.\x1a\xb9\x02\x20List\ - \x20of\x20acknowledgement\x20IDs\x20whose\x20deadline\x20will\x20be\x20m\ - odified\x20based\x20on\x20the\n\x20corresponding\x20element\x20in\x20`mo\ - dify_deadline_seconds`.\x20This\x20field\x20can\x20be\x20used\n\x20to\ - \x20indicate\x20that\x20more\x20time\x20is\x20needed\x20to\x20process\ - \x20a\x20message\x20by\x20the\n\x20subscriber,\x20or\x20to\x20make\x20th\ - e\x20message\x20available\x20for\x20redelivery\x20if\x20the\n\x20process\ - ing\x20was\x20interrupted.\n\n\r\n\x05\x04#\x02\x03\x04\x12\x04\xb0\n\ - \x02\n\n\r\n\x05\x04#\x02\x03\x05\x12\x04\xb0\n\x0b\x11\n\r\n\x05\x04#\ - \x02\x03\x01\x12\x04\xb0\n\x12)\n\r\n\x05\x04#\x02\x03\x03\x12\x04\xb0\n\ - ,-\n\xc0\x02\n\x04\x04#\x02\x04\x12\x06\xb6\n\x02\xb7\n/\x1a\xaf\x02\x20\ - Required.\x20The\x20ack\x20deadline\x20to\x20use\x20for\x20the\x20stream\ - .\x20This\x20must\x20be\x20provided\x20in\n\x20the\x20first\x20request\ - \x20on\x20the\x20stream,\x20but\x20it\x20can\x20also\x20be\x20updated\ - \x20on\x20subsequent\n\x20requests\x20from\x20client\x20to\x20server.\ - \x20The\x20minimum\x20deadline\x20you\x20can\x20specify\x20is\x2010\n\ - \x20seconds.\x20The\x20maximum\x20deadline\x20you\x20can\x20specify\x20i\ - s\x20600\x20seconds\x20(10\x20minutes).\n\n\r\n\x05\x04#\x02\x04\x05\x12\ - \x04\xb6\n\x02\x07\n\r\n\x05\x04#\x02\x04\x01\x12\x04\xb6\n\x08#\n\r\n\ - \x05\x04#\x02\x04\x03\x12\x04\xb6\n&'\n\r\n\x05\x04#\x02\x04\x08\x12\x04\ - \xb7\n\x06.\n\x10\n\x08\x04#\x02\x04\x08\x9c\x08\0\x12\x04\xb7\n\x07-\n\ - \x9e\x03\n\x04\x04#\x02\x05\x12\x04\xbf\n\x02\x17\x1a\x8f\x03\x20A\x20un\ - ique\x20identifier\x20that\x20is\x20used\x20to\x20distinguish\x20client\ - \x20instances\x20from\x20each\n\x20other.\x20Only\x20needs\x20to\x20be\ - \x20provided\x20on\x20the\x20initial\x20request.\x20When\x20a\x20stream\ - \n\x20disconnects\x20and\x20reconnects\x20for\x20the\x20same\x20stream,\ - \x20the\x20client_id\x20should\x20be\x20set\n\x20to\x20the\x20same\x20va\ - lue\x20so\x20that\x20state\x20associated\x20with\x20the\x20old\x20stream\ - \x20can\x20be\n\x20transferred\x20to\x20the\x20new\x20stream.\x20The\x20\ - same\x20client_id\x20should\x20not\x20be\x20used\x20for\n\x20different\ - \x20client\x20instances.\n\n\r\n\x05\x04#\x02\x05\x05\x12\x04\xbf\n\x02\ - \x08\n\r\n\x05\x04#\x02\x05\x01\x12\x04\xbf\n\t\x12\n\r\n\x05\x04#\x02\ - \x05\x03\x12\x04\xbf\n\x15\x16\n\xe0\x04\n\x04\x04#\x02\x06\x12\x04\xca\ - \n\x02%\x1a\xd1\x04\x20Flow\x20control\x20settings\x20for\x20the\x20maxi\ - mum\x20number\x20of\x20outstanding\x20messages.\x20When\n\x20there\x20ar\ - e\x20`max_outstanding_messages`\x20or\x20more\x20currently\x20sent\x20to\ - \x20the\n\x20streaming\x20pull\x20client\x20that\x20have\x20not\x20yet\ - \x20been\x20acked\x20or\x20nacked,\x20the\x20server\n\x20stops\x20sendin\ - g\x20more\x20messages.\x20The\x20sending\x20of\x20messages\x20resumes\ - \x20once\x20the\n\x20number\x20of\x20outstanding\x20messages\x20is\x20le\ - ss\x20than\x20this\x20value.\x20If\x20the\x20value\x20is\n\x20<=\x200,\ - \x20there\x20is\x20no\x20limit\x20to\x20the\x20number\x20of\x20outstandi\ - ng\x20messages.\x20This\n\x20property\x20can\x20only\x20be\x20set\x20on\ - \x20the\x20initial\x20StreamingPullRequest.\x20If\x20it\x20is\x20set\n\ - \x20on\x20a\x20subsequent\x20request,\x20the\x20stream\x20will\x20be\x20\ - aborted\x20with\x20status\n\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\x04#\x02\ - \x06\x05\x12\x04\xca\n\x02\x07\n\r\n\x05\x04#\x02\x06\x01\x12\x04\xca\n\ - \x08\x20\n\r\n\x05\x04#\x02\x06\x03\x12\x04\xca\n#$\n\xea\x04\n\x04\x04#\ - \x02\x07\x12\x04\xd5\n\x02\"\x1a\xdb\x04\x20Flow\x20control\x20settings\ - \x20for\x20the\x20maximum\x20number\x20of\x20outstanding\x20bytes.\x20Wh\ - en\n\x20there\x20are\x20`max_outstanding_bytes`\x20or\x20more\x20worth\ - \x20of\x20messages\x20currently\x20sent\n\x20to\x20the\x20streaming\x20p\ - ull\x20client\x20that\x20have\x20not\x20yet\x20been\x20acked\x20or\x20na\ - cked,\x20the\n\x20server\x20will\x20stop\x20sending\x20more\x20messages.\ - \x20The\x20sending\x20of\x20messages\x20resumes\n\x20once\x20the\x20numb\ - er\x20of\x20outstanding\x20bytes\x20is\x20less\x20than\x20this\x20value.\ - \x20If\x20the\x20value\n\x20is\x20<=\x200,\x20there\x20is\x20no\x20limit\ - \x20to\x20the\x20number\x20of\x20outstanding\x20bytes.\x20This\n\x20prop\ - erty\x20can\x20only\x20be\x20set\x20on\x20the\x20initial\x20StreamingPul\ - lRequest.\x20If\x20it\x20is\x20set\n\x20on\x20a\x20subsequent\x20request\ - ,\x20the\x20stream\x20will\x20be\x20aborted\x20with\x20status\n\x20`INVA\ - LID_ARGUMENT`.\n\n\r\n\x05\x04#\x02\x07\x05\x12\x04\xd5\n\x02\x07\n\r\n\ - \x05\x04#\x02\x07\x01\x12\x04\xd5\n\x08\x1d\n\r\n\x05\x04#\x02\x07\x03\ - \x12\x04\xd5\n\x20!\n\x81\x01\n\x02\x04$\x12\x06\xda\n\0\x90\x0b\x01\x1a\ - s\x20Response\x20for\x20the\x20`StreamingPull`\x20method.\x20This\x20res\ - ponse\x20is\x20used\x20to\x20stream\n\x20messages\x20from\x20the\x20serv\ - er\x20to\x20the\x20client.\n\n\x0b\n\x03\x04$\x01\x12\x04\xda\n\x08\x1d\ - \nz\n\x04\x04$\x03\0\x12\x06\xdd\n\x02\xea\n\x03\x1aj\x20Acknowledgement\ - \x20IDs\x20sent\x20in\x20one\x20or\x20more\x20previous\x20requests\x20to\ - \x20acknowledge\x20a\n\x20previously\x20received\x20message.\n\n\r\n\x05\ - \x04$\x03\0\x01\x12\x04\xdd\n\n!\n=\n\x06\x04$\x03\0\x02\0\x12\x04\xdf\n\ - \x04\x20\x1a-\x20Successfully\x20processed\x20acknowledgement\x20IDs.\n\ - \n\x0f\n\x07\x04$\x03\0\x02\0\x04\x12\x04\xdf\n\x04\x0c\n\x0f\n\x07\x04$\ - \x03\0\x02\0\x05\x12\x04\xdf\n\r\x13\n\x0f\n\x07\x04$\x03\0\x02\0\x01\ - \x12\x04\xdf\n\x14\x1b\n\x0f\n\x07\x04$\x03\0\x02\0\x03\x12\x04\xdf\n\ - \x1e\x1f\nq\n\x06\x04$\x03\0\x02\x01\x12\x04\xe3\n\x04(\x1aa\x20List\x20\ - of\x20acknowledgement\x20IDs\x20that\x20were\x20malformed\x20or\x20whose\ - \x20acknowledgement\n\x20deadline\x20has\x20expired.\n\n\x0f\n\x07\x04$\ - \x03\0\x02\x01\x04\x12\x04\xe3\n\x04\x0c\n\x0f\n\x07\x04$\x03\0\x02\x01\ - \x05\x12\x04\xe3\n\r\x13\n\x0f\n\x07\x04$\x03\0\x02\x01\x01\x12\x04\xe3\ - \n\x14#\n\x0f\n\x07\x04$\x03\0\x02\x01\x03\x12\x04\xe3\n&'\nE\n\x06\x04$\ - \x03\0\x02\x02\x12\x04\xe6\n\x04*\x1a5\x20List\x20of\x20acknowledgement\ - \x20IDs\x20that\x20were\x20out\x20of\x20order.\n\n\x0f\n\x07\x04$\x03\0\ - \x02\x02\x04\x12\x04\xe6\n\x04\x0c\n\x0f\n\x07\x04$\x03\0\x02\x02\x05\ - \x12\x04\xe6\n\r\x13\n\x0f\n\x07\x04$\x03\0\x02\x02\x01\x12\x04\xe6\n\ - \x14%\n\x0f\n\x07\x04$\x03\0\x02\x02\x03\x12\x04\xe6\n()\n[\n\x06\x04$\ - \x03\0\x02\x03\x12\x04\xe9\n\x041\x1aK\x20List\x20of\x20acknowledgement\ - \x20IDs\x20that\x20failed\x20processing\x20with\x20temporary\x20issues.\ - \n\n\x0f\n\x07\x04$\x03\0\x02\x03\x04\x12\x04\xe9\n\x04\x0c\n\x0f\n\x07\ - \x04$\x03\0\x02\x03\x05\x12\x04\xe9\n\r\x13\n\x0f\n\x07\x04$\x03\0\x02\ - \x03\x01\x12\x04\xe9\n\x14,\n\x0f\n\x07\x04$\x03\0\x02\x03\x03\x12\x04\ - \xe9\n/0\n{\n\x04\x04$\x03\x01\x12\x06\xee\n\x02\xf8\n\x03\x1ak\x20Ackno\ - wledgement\x20IDs\x20sent\x20in\x20one\x20or\x20more\x20previous\x20requ\ - ests\x20to\x20modify\x20the\n\x20deadline\x20for\x20a\x20specific\x20mes\ - sage.\n\n\r\n\x05\x04$\x03\x01\x01\x12\x04\xee\n\n'\n=\n\x06\x04$\x03\ - \x01\x02\0\x12\x04\xf0\n\x04\x20\x1a-\x20Successfully\x20processed\x20ac\ - knowledgement\x20IDs.\n\n\x0f\n\x07\x04$\x03\x01\x02\0\x04\x12\x04\xf0\n\ - \x04\x0c\n\x0f\n\x07\x04$\x03\x01\x02\0\x05\x12\x04\xf0\n\r\x13\n\x0f\n\ - \x07\x04$\x03\x01\x02\0\x01\x12\x04\xf0\n\x14\x1b\n\x0f\n\x07\x04$\x03\ - \x01\x02\0\x03\x12\x04\xf0\n\x1e\x1f\nq\n\x06\x04$\x03\x01\x02\x01\x12\ - \x04\xf4\n\x04(\x1aa\x20List\x20of\x20acknowledgement\x20IDs\x20that\x20\ - were\x20malformed\x20or\x20whose\x20acknowledgement\n\x20deadline\x20has\ - \x20expired.\n\n\x0f\n\x07\x04$\x03\x01\x02\x01\x04\x12\x04\xf4\n\x04\ - \x0c\n\x0f\n\x07\x04$\x03\x01\x02\x01\x05\x12\x04\xf4\n\r\x13\n\x0f\n\ - \x07\x04$\x03\x01\x02\x01\x01\x12\x04\xf4\n\x14#\n\x0f\n\x07\x04$\x03\ - \x01\x02\x01\x03\x12\x04\xf4\n&'\n[\n\x06\x04$\x03\x01\x02\x02\x12\x04\ - \xf7\n\x041\x1aK\x20List\x20of\x20acknowledgement\x20IDs\x20that\x20fail\ - ed\x20processing\x20with\x20temporary\x20issues.\n\n\x0f\n\x07\x04$\x03\ - \x01\x02\x02\x04\x12\x04\xf7\n\x04\x0c\n\x0f\n\x07\x04$\x03\x01\x02\x02\ - \x05\x12\x04\xf7\n\r\x13\n\x0f\n\x07\x04$\x03\x01\x02\x02\x01\x12\x04\ - \xf7\n\x14,\n\x0f\n\x07\x04$\x03\x01\x02\x02\x03\x12\x04\xf7\n/0\nG\n\ - \x04\x04$\x03\x02\x12\x06\xfb\n\x02\x81\x0b\x03\x1a7\x20Subscription\x20\ - properties\x20sent\x20as\x20part\x20of\x20the\x20response.\n\n\r\n\x05\ - \x04$\x03\x02\x01\x12\x04\xfb\n\n\x20\nR\n\x06\x04$\x03\x02\x02\0\x12\ - \x04\xfd\n\x04+\x1aB\x20True\x20iff\x20exactly\x20once\x20delivery\x20is\ - \x20enabled\x20for\x20this\x20subscription.\n\n\x0f\n\x07\x04$\x03\x02\ - \x02\0\x05\x12\x04\xfd\n\x04\x08\n\x0f\n\x07\x04$\x03\x02\x02\0\x01\x12\ - \x04\xfd\n\t&\n\x0f\n\x07\x04$\x03\x02\x02\0\x03\x12\x04\xfd\n)*\nM\n\ - \x06\x04$\x03\x02\x02\x01\x12\x04\x80\x0b\x04&\x1a=\x20True\x20iff\x20me\ - ssage\x20ordering\x20is\x20enabled\x20for\x20this\x20subscription.\n\n\ - \x0f\n\x07\x04$\x03\x02\x02\x01\x05\x12\x04\x80\x0b\x04\x08\n\x0f\n\x07\ - \x04$\x03\x02\x02\x01\x01\x12\x04\x80\x0b\t!\n\x0f\n\x07\x04$\x03\x02\ - \x02\x01\x03\x12\x04\x80\x0b$%\nB\n\x04\x04$\x02\0\x12\x04\x84\x0b\x021\ - \x1a4\x20Received\x20Pub/Sub\x20messages.\x20This\x20will\x20not\x20be\ - \x20empty.\n\n\r\n\x05\x04$\x02\0\x04\x12\x04\x84\x0b\x02\n\n\r\n\x05\ - \x04$\x02\0\x06\x12\x04\x84\x0b\x0b\x1a\n\r\n\x05\x04$\x02\0\x01\x12\x04\ - \x84\x0b\x1b,\n\r\n\x05\x04$\x02\0\x03\x12\x04\x84\x0b/0\n`\n\x04\x04$\ - \x02\x01\x12\x04\x88\x0b\x027\x1aR\x20This\x20field\x20will\x20only\x20b\ - e\x20set\x20if\x20`enable_exactly_once_delivery`\x20is\x20set\x20to\n\ - \x20`true`.\n\n\r\n\x05\x04$\x02\x01\x06\x12\x04\x88\x0b\x02\x19\n\r\n\ - \x05\x04$\x02\x01\x01\x12\x04\x88\x0b\x1a2\n\r\n\x05\x04$\x02\x01\x03\ - \x12\x04\x88\x0b56\n`\n\x04\x04$\x02\x02\x12\x04\x8c\x0b\x02E\x1aR\x20Th\ - is\x20field\x20will\x20only\x20be\x20set\x20if\x20`enable_exactly_once_d\ - elivery`\x20is\x20set\x20to\n\x20`true`.\n\n\r\n\x05\x04$\x02\x02\x06\ - \x12\x04\x8c\x0b\x02\x1f\n\r\n\x05\x04$\x02\x02\x01\x12\x04\x8c\x0b\x20@\ - \n\r\n\x05\x04$\x02\x02\x03\x12\x04\x8c\x0bCD\n=\n\x04\x04$\x02\x03\x12\ - \x04\x8f\x0b\x025\x1a/\x20Properties\x20associated\x20with\x20this\x20su\ - bscription.\n\n\r\n\x05\x04$\x02\x03\x06\x12\x04\x8f\x0b\x02\x18\n\r\n\ - \x05\x04$\x02\x03\x01\x12\x04\x8f\x0b\x190\n\r\n\x05\x04$\x02\x03\x03\ - \x12\x04\x8f\x0b34\n8\n\x02\x04%\x12\x06\x93\x0b\0\xb2\x0b\x01\x1a*\x20R\ - equest\x20for\x20the\x20`CreateSnapshot`\x20method.\n\n\x0b\n\x03\x04%\ - \x01\x12\x04\x93\x0b\x08\x1d\n\xa1\x03\n\x04\x04%\x02\0\x12\x06\x9a\x0b\ - \x02\x9d\x0b\x04\x1a\x90\x03\x20Required.\x20User-provided\x20name\x20fo\ - r\x20this\x20snapshot.\x20If\x20the\x20name\x20is\x20not\x20provided\n\ - \x20in\x20the\x20request,\x20the\x20server\x20will\x20assign\x20a\x20ran\ - dom\x20name\x20for\x20this\x20snapshot\x20on\n\x20the\x20same\x20project\ - \x20as\x20the\x20subscription.\x20Note\x20that\x20for\x20REST\x20API\x20\ - requests,\x20you\n\x20must\x20specify\x20a\x20name.\x20\x20See\x20the\ - \x20[resource\x20name\n\x20rules](https://cloud.google.com/pubsub/docs/p\ - ubsub-basics#resource_names).\n\x20Format\x20is\x20`projects/{project}/s\ - napshots/{snap}`.\n\n\r\n\x05\x04%\x02\0\x05\x12\x04\x9a\x0b\x02\x08\n\r\ - \n\x05\x04%\x02\0\x01\x12\x04\x9a\x0b\t\r\n\r\n\x05\x04%\x02\0\x03\x12\ - \x04\x9a\x0b\x10\x11\n\x0f\n\x05\x04%\x02\0\x08\x12\x06\x9a\x0b\x12\x9d\ - \x0b\x03\n\x10\n\x08\x04%\x02\0\x08\x9c\x08\0\x12\x04\x9b\x0b\x04*\n\x0f\ - \n\x07\x04%\x02\0\x08\x9f\x08\x12\x04\x9c\x0b\x04P\n\xb9\x04\n\x04\x04%\ - \x02\x01\x12\x06\xa8\x0b\x02\xad\x0b\x04\x1a\xa8\x04\x20Required.\x20The\ - \x20subscription\x20whose\x20backlog\x20the\x20snapshot\x20retains.\n\ - \x20Specifically,\x20the\x20created\x20snapshot\x20is\x20guaranteed\x20t\ - o\x20retain:\n\x20\x20(a)\x20The\x20existing\x20backlog\x20on\x20the\x20\ - subscription.\x20More\x20precisely,\x20this\x20is\n\x20\x20\x20\x20\x20\ - \x20defined\x20as\x20the\x20messages\x20in\x20the\x20subscription's\x20b\ - acklog\x20that\x20are\n\x20\x20\x20\x20\x20\x20unacknowledged\x20upon\ - \x20the\x20successful\x20completion\x20of\x20the\n\x20\x20\x20\x20\x20\ - \x20`CreateSnapshot`\x20request;\x20as\x20well\x20as:\n\x20\x20(b)\x20An\ - y\x20messages\x20published\x20to\x20the\x20subscription's\x20topic\x20fo\ - llowing\x20the\n\x20\x20\x20\x20\x20\x20successful\x20completion\x20of\ - \x20the\x20CreateSnapshot\x20request.\n\x20Format\x20is\x20`projects/{pr\ - oject}/subscriptions/{sub}`.\n\n\r\n\x05\x04%\x02\x01\x05\x12\x04\xa8\ - \x0b\x02\x08\n\r\n\x05\x04%\x02\x01\x01\x12\x04\xa8\x0b\t\x15\n\r\n\x05\ - \x04%\x02\x01\x03\x12\x04\xa8\x0b\x18\x19\n\x0f\n\x05\x04%\x02\x01\x08\ - \x12\x06\xa8\x0b\x1a\xad\x0b\x03\n\x10\n\x08\x04%\x02\x01\x08\x9c\x08\0\ - \x12\x04\xa9\x0b\x04*\n\x11\n\x07\x04%\x02\x01\x08\x9f\x08\x12\x06\xaa\ - \x0b\x04\xac\x0b\x05\na\n\x04\x04%\x02\x02\x12\x04\xb1\x0b\x02!\x1aS\x20\ - See\x20[Creating\x20and\x20managing\n\x20labels](https://cloud.google.co\ - m/pubsub/docs/labels).\n\n\r\n\x05\x04%\x02\x02\x06\x12\x04\xb1\x0b\x02\ - \x15\n\r\n\x05\x04%\x02\x02\x01\x12\x04\xb1\x0b\x16\x1c\n\r\n\x05\x04%\ - \x02\x02\x03\x12\x04\xb1\x0b\x1f\x20\n6\n\x02\x04&\x12\x06\xb5\x0b\0\xbd\ - \x0b\x01\x1a(\x20Request\x20for\x20the\x20UpdateSnapshot\x20method.\n\n\ - \x0b\n\x03\x04&\x01\x12\x04\xb5\x0b\x08\x1d\n6\n\x04\x04&\x02\0\x12\x04\ - \xb7\x0b\x02A\x1a(\x20Required.\x20The\x20updated\x20snapshot\x20object.\ - \n\n\r\n\x05\x04&\x02\0\x06\x12\x04\xb7\x0b\x02\n\n\r\n\x05\x04&\x02\0\ - \x01\x12\x04\xb7\x0b\x0b\x13\n\r\n\x05\x04&\x02\0\x03\x12\x04\xb7\x0b\ - \x16\x17\n\r\n\x05\x04&\x02\0\x08\x12\x04\xb7\x0b\x18@\n\x10\n\x08\x04&\ - \x02\0\x08\x9c\x08\0\x12\x04\xb7\x0b\x19?\nx\n\x04\x04&\x02\x01\x12\x06\ - \xbb\x0b\x02\xbc\x0b/\x1ah\x20Required.\x20Indicates\x20which\x20fields\ - \x20in\x20the\x20provided\x20snapshot\x20to\x20update.\n\x20Must\x20be\ - \x20specified\x20and\x20non-empty.\n\n\r\n\x05\x04&\x02\x01\x06\x12\x04\ - \xbb\x0b\x02\x1b\n\r\n\x05\x04&\x02\x01\x01\x12\x04\xbb\x0b\x1c'\n\r\n\ - \x05\x04&\x02\x01\x03\x12\x04\xbb\x0b*+\n\r\n\x05\x04&\x02\x01\x08\x12\ - \x04\xbc\x0b\x06.\n\x10\n\x08\x04&\x02\x01\x08\x9c\x08\0\x12\x04\xbc\x0b\ - \x07-\n\xbe\x02\n\x02\x04'\x12\x06\xc4\x0b\0\xe1\x0b\x01\x1a\xaf\x02\x20\ - A\x20snapshot\x20resource.\x20Snapshots\x20are\x20used\x20in\n\x20[Seek]\ - (https://cloud.google.com/pubsub/docs/replay-overview)\n\x20operations,\ - \x20which\x20allow\x20you\x20to\x20manage\x20message\x20acknowledgments\ - \x20in\x20bulk.\x20That\n\x20is,\x20you\x20can\x20set\x20the\x20acknowle\ - dgment\x20state\x20of\x20messages\x20in\x20an\x20existing\n\x20subscript\ - ion\x20to\x20the\x20state\x20captured\x20by\x20a\x20snapshot.\n\n\x0b\n\ - \x03\x04'\x01\x12\x04\xc4\x0b\x08\x10\n\r\n\x03\x04'\x07\x12\x06\xc5\x0b\ - \x02\xc8\x0b\x04\n\x0f\n\x05\x04'\x07\x9d\x08\x12\x06\xc5\x0b\x02\xc8\ - \x0b\x04\n)\n\x04\x04'\x02\0\x12\x04\xcb\x0b\x02\x12\x1a\x1b\x20The\x20n\ - ame\x20of\x20the\x20snapshot.\n\n\r\n\x05\x04'\x02\0\x05\x12\x04\xcb\x0b\ - \x02\x08\n\r\n\x05\x04'\x02\0\x01\x12\x04\xcb\x0b\t\r\n\r\n\x05\x04'\x02\ - \0\x03\x12\x04\xcb\x0b\x10\x11\nW\n\x04\x04'\x02\x01\x12\x06\xce\x0b\x02\ - \xd0\x0b\x04\x1aG\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\ - \x20this\x20snapshot\x20is\x20retaining\x20messages.\n\n\r\n\x05\x04'\ - \x02\x01\x05\x12\x04\xce\x0b\x02\x08\n\r\n\x05\x04'\x02\x01\x01\x12\x04\ - \xce\x0b\t\x0e\n\r\n\x05\x04'\x02\x01\x03\x12\x04\xce\x0b\x11\x12\n\x0f\ - \n\x05\x04'\x02\x01\x08\x12\x06\xce\x0b\x13\xd0\x0b\x03\n\x0f\n\x07\x04'\ - \x02\x01\x08\x9f\x08\x12\x04\xcf\x0b\x04M\n\xd4\x05\n\x04\x04'\x02\x02\ - \x12\x04\xdc\x0b\x02,\x1a\xc5\x05\x20The\x20snapshot\x20is\x20guaranteed\ - \x20to\x20exist\x20up\x20until\x20this\x20time.\n\x20A\x20newly-created\ - \x20snapshot\x20expires\x20no\x20later\x20than\x207\x20days\x20from\x20t\ - he\x20time\x20of\x20its\n\x20creation.\x20Its\x20exact\x20lifetime\x20is\ - \x20determined\x20at\x20creation\x20by\x20the\x20existing\n\x20backlog\ - \x20in\x20the\x20source\x20subscription.\x20Specifically,\x20the\x20life\ - time\x20of\x20the\n\x20snapshot\x20is\x20`7\x20days\x20-\x20(age\x20of\ - \x20oldest\x20unacked\x20message\x20in\x20the\x20subscription)`.\n\x20Fo\ - r\x20example,\x20consider\x20a\x20subscription\x20whose\x20oldest\x20una\ - cked\x20message\x20is\x203\x20days\n\x20old.\x20If\x20a\x20snapshot\x20i\ - s\x20created\x20from\x20this\x20subscription,\x20the\x20snapshot\x20--\ - \x20which\n\x20will\x20always\x20capture\x20this\x203-day-old\x20backlog\ - \x20as\x20long\x20as\x20the\x20snapshot\n\x20exists\x20--\x20will\x20exp\ - ire\x20in\x204\x20days.\x20The\x20service\x20will\x20refuse\x20to\x20cre\ - ate\x20a\n\x20snapshot\x20that\x20would\x20expire\x20in\x20less\x20than\ - \x201\x20hour\x20after\x20creation.\n\n\r\n\x05\x04'\x02\x02\x06\x12\x04\ - \xdc\x0b\x02\x1b\n\r\n\x05\x04'\x02\x02\x01\x12\x04\xdc\x0b\x1c'\n\r\n\ - \x05\x04'\x02\x02\x03\x12\x04\xdc\x0b*+\nb\n\x04\x04'\x02\x03\x12\x04\ - \xe0\x0b\x02!\x1aT\x20See\x20[Creating\x20and\x20managing\x20labels]\n\ - \x20(https://cloud.google.com/pubsub/docs/labels).\n\n\r\n\x05\x04'\x02\ - \x03\x06\x12\x04\xe0\x0b\x02\x15\n\r\n\x05\x04'\x02\x03\x01\x12\x04\xe0\ - \x0b\x16\x1c\n\r\n\x05\x04'\x02\x03\x03\x12\x04\xe0\x0b\x1f\x20\n3\n\x02\ - \x04(\x12\x06\xe4\x0b\0\xeb\x0b\x01\x1a%\x20Request\x20for\x20the\x20Get\ - Snapshot\x20method.\n\n\x0b\n\x03\x04(\x01\x12\x04\xe4\x0b\x08\x1a\nn\n\ - \x04\x04(\x02\0\x12\x06\xe7\x0b\x02\xea\x0b\x04\x1a^\x20Required.\x20The\ - \x20name\x20of\x20the\x20snapshot\x20to\x20get.\n\x20Format\x20is\x20`pr\ - ojects/{project}/snapshots/{snap}`.\n\n\r\n\x05\x04(\x02\0\x05\x12\x04\ - \xe7\x0b\x02\x08\n\r\n\x05\x04(\x02\0\x01\x12\x04\xe7\x0b\t\x11\n\r\n\ - \x05\x04(\x02\0\x03\x12\x04\xe7\x0b\x14\x15\n\x0f\n\x05\x04(\x02\0\x08\ - \x12\x06\xe7\x0b\x16\xea\x0b\x03\n\x10\n\x08\x04(\x02\0\x08\x9c\x08\0\ - \x12\x04\xe8\x0b\x04*\n\x0f\n\x07\x04(\x02\0\x08\x9f\x08\x12\x04\xe9\x0b\ - \x04P\n7\n\x02\x04)\x12\x06\xee\x0b\0\xff\x0b\x01\x1a)\x20Request\x20for\ - \x20the\x20`ListSnapshots`\x20method.\n\n\x0b\n\x03\x04)\x01\x12\x04\xee\ - \x0b\x08\x1c\ns\n\x04\x04)\x02\0\x12\x06\xf1\x0b\x02\xf6\x0b\x04\x1ac\ - \x20Required.\x20The\x20name\x20of\x20the\x20project\x20in\x20which\x20t\ - o\x20list\x20snapshots.\n\x20Format\x20is\x20`projects/{project-id}`.\n\ - \n\r\n\x05\x04)\x02\0\x05\x12\x04\xf1\x0b\x02\x08\n\r\n\x05\x04)\x02\0\ - \x01\x12\x04\xf1\x0b\t\x10\n\r\n\x05\x04)\x02\0\x03\x12\x04\xf1\x0b\x13\ - \x14\n\x0f\n\x05\x04)\x02\0\x08\x12\x06\xf1\x0b\x15\xf6\x0b\x03\n\x10\n\ - \x08\x04)\x02\0\x08\x9c\x08\0\x12\x04\xf2\x0b\x04*\n\x11\n\x07\x04)\x02\ - \0\x08\x9f\x08\x12\x06\xf3\x0b\x04\xf5\x0b\x05\n6\n\x04\x04)\x02\x01\x12\ - \x04\xf9\x0b\x02\x16\x1a(\x20Maximum\x20number\x20of\x20snapshots\x20to\ - \x20return.\n\n\r\n\x05\x04)\x02\x01\x05\x12\x04\xf9\x0b\x02\x07\n\r\n\ - \x05\x04)\x02\x01\x01\x12\x04\xf9\x0b\x08\x11\n\r\n\x05\x04)\x02\x01\x03\ - \x12\x04\xf9\x0b\x14\x15\n\xca\x01\n\x04\x04)\x02\x02\x12\x04\xfe\x0b\ - \x02\x18\x1a\xbb\x01\x20The\x20value\x20returned\x20by\x20the\x20last\ - \x20`ListSnapshotsResponse`;\x20indicates\x20that\x20this\n\x20is\x20a\ - \x20continuation\x20of\x20a\x20prior\x20`ListSnapshots`\x20call,\x20and\ - \x20that\x20the\x20system\n\x20should\x20return\x20the\x20next\x20page\ - \x20of\x20data.\n\n\r\n\x05\x04)\x02\x02\x05\x12\x04\xfe\x0b\x02\x08\n\r\ - \n\x05\x04)\x02\x02\x01\x12\x04\xfe\x0b\t\x13\n\r\n\x05\x04)\x02\x02\x03\ - \x12\x04\xfe\x0b\x16\x17\n8\n\x02\x04*\x12\x06\x82\x0c\0\x89\x0c\x01\x1a\ - *\x20Response\x20for\x20the\x20`ListSnapshots`\x20method.\n\n\x0b\n\x03\ - \x04*\x01\x12\x04\x82\x0c\x08\x1d\n(\n\x04\x04*\x02\0\x12\x04\x84\x0c\ - \x02\"\x1a\x1a\x20The\x20resulting\x20snapshots.\n\n\r\n\x05\x04*\x02\0\ - \x04\x12\x04\x84\x0c\x02\n\n\r\n\x05\x04*\x02\0\x06\x12\x04\x84\x0c\x0b\ - \x13\n\r\n\x05\x04*\x02\0\x01\x12\x04\x84\x0c\x14\x1d\n\r\n\x05\x04*\x02\ - \0\x03\x12\x04\x84\x0c\x20!\n\x9e\x01\n\x04\x04*\x02\x01\x12\x04\x88\x0c\ - \x02\x1d\x1a\x8f\x01\x20If\x20not\x20empty,\x20indicates\x20that\x20ther\ - e\x20may\x20be\x20more\x20snapshot\x20that\x20match\x20the\n\x20request;\ - \x20this\x20value\x20should\x20be\x20passed\x20in\x20a\x20new\x20`ListSn\ - apshotsRequest`.\n\n\r\n\x05\x04*\x02\x01\x05\x12\x04\x88\x0c\x02\x08\n\ - \r\n\x05\x04*\x02\x01\x01\x12\x04\x88\x0c\t\x18\n\r\n\x05\x04*\x02\x01\ - \x03\x12\x04\x88\x0c\x1b\x1c\n8\n\x02\x04+\x12\x06\x8c\x0c\0\x93\x0c\x01\ - \x1a*\x20Request\x20for\x20the\x20`DeleteSnapshot`\x20method.\n\n\x0b\n\ - \x03\x04+\x01\x12\x04\x8c\x0c\x08\x1d\nq\n\x04\x04+\x02\0\x12\x06\x8f\ - \x0c\x02\x92\x0c\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\x20sn\ - apshot\x20to\x20delete.\n\x20Format\x20is\x20`projects/{project}/snapsho\ - ts/{snap}`.\n\n\r\n\x05\x04+\x02\0\x05\x12\x04\x8f\x0c\x02\x08\n\r\n\x05\ - \x04+\x02\0\x01\x12\x04\x8f\x0c\t\x11\n\r\n\x05\x04+\x02\0\x03\x12\x04\ - \x8f\x0c\x14\x15\n\x0f\n\x05\x04+\x02\0\x08\x12\x06\x8f\x0c\x16\x92\x0c\ - \x03\n\x10\n\x08\x04+\x02\0\x08\x9c\x08\0\x12\x04\x90\x0c\x04*\n\x0f\n\ - \x07\x04+\x02\0\x08\x9f\x08\x12\x04\x91\x0c\x04P\n.\n\x02\x04,\x12\x06\ - \x96\x0c\0\xb4\x0c\x01\x1a\x20\x20Request\x20for\x20the\x20`Seek`\x20met\ - hod.\n\n\x0b\n\x03\x04,\x01\x12\x04\x96\x0c\x08\x13\n7\n\x04\x04,\x02\0\ - \x12\x06\x98\x0c\x02\x9d\x0c\x04\x1a'\x20Required.\x20The\x20subscriptio\ - n\x20to\x20affect.\n\n\r\n\x05\x04,\x02\0\x05\x12\x04\x98\x0c\x02\x08\n\ - \r\n\x05\x04,\x02\0\x01\x12\x04\x98\x0c\t\x15\n\r\n\x05\x04,\x02\0\x03\ - \x12\x04\x98\x0c\x18\x19\n\x0f\n\x05\x04,\x02\0\x08\x12\x06\x98\x0c\x1a\ - \x9d\x0c\x03\n\x10\n\x08\x04,\x02\0\x08\x9c\x08\0\x12\x04\x99\x0c\x04*\n\ - \x11\n\x07\x04,\x02\0\x08\x9f\x08\x12\x06\x9a\x0c\x04\x9c\x0c\x05\n\x0e\ - \n\x04\x04,\x08\0\x12\x06\x9f\x0c\x02\xb3\x0c\x03\n\r\n\x05\x04,\x08\0\ - \x01\x12\x04\x9f\x0c\x08\x0e\n\xbe\x05\n\x04\x04,\x02\x01\x12\x04\xab\ - \x0c\x04'\x1a\xaf\x05\x20The\x20time\x20to\x20seek\x20to.\n\x20Messages\ - \x20retained\x20in\x20the\x20subscription\x20that\x20were\x20published\ - \x20before\x20this\n\x20time\x20are\x20marked\x20as\x20acknowledged,\x20\ - and\x20messages\x20retained\x20in\x20the\n\x20subscription\x20that\x20we\ - re\x20published\x20after\x20this\x20time\x20are\x20marked\x20as\n\x20una\ - cknowledged.\x20Note\x20that\x20this\x20operation\x20affects\x20only\x20\ - those\x20messages\n\x20retained\x20in\x20the\x20subscription\x20(configu\ - red\x20by\x20the\x20combination\x20of\n\x20`message_retention_duration`\ - \x20and\x20`retain_acked_messages`).\x20For\x20example,\n\x20if\x20`time\ - `\x20corresponds\x20to\x20a\x20point\x20before\x20the\x20message\x20rete\ - ntion\n\x20window\x20(or\x20to\x20a\x20point\x20before\x20the\x20system'\ - s\x20notion\x20of\x20the\x20subscription\n\x20creation\x20time),\x20only\ - \x20retained\x20messages\x20will\x20be\x20marked\x20as\x20unacknowledged\ - ,\n\x20and\x20already-expunged\x20messages\x20will\x20not\x20be\x20resto\ - red.\n\n\r\n\x05\x04,\x02\x01\x06\x12\x04\xab\x0c\x04\x1d\n\r\n\x05\x04,\ - \x02\x01\x01\x12\x04\xab\x0c\x1e\"\n\r\n\x05\x04,\x02\x01\x03\x12\x04\ - \xab\x0c%&\n\xaa\x01\n\x04\x04,\x02\x02\x12\x06\xb0\x0c\x04\xb2\x0c\x07\ + \x05\x04\x1d\x02\0\x05\x12\x04\xfa\x06\x02\x08\n\r\n\x05\x04\x1d\x02\0\ + \x01\x12\x04\xfa\x06\t\x15\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\xfa\x06\ + \x18\x19\n\x85\x03\n\x04\x04\x1d\x02\x01\x12\x04\x81\x07\x02\x1e\x1a\xf6\ + \x02\x20List\x20of\x20acknowledgement\x20IDs\x20for\x20acknowledging\x20\ + previously\x20received\x20messages\n\x20(received\x20on\x20this\x20strea\ + m\x20or\x20a\x20different\x20stream).\x20If\x20an\x20ack\x20ID\x20has\ + \x20expired,\n\x20the\x20corresponding\x20message\x20may\x20be\x20redeli\ + vered\x20later.\x20Acknowledging\x20a\x20message\n\x20more\x20than\x20on\ + ce\x20will\x20not\x20result\x20in\x20an\x20error.\x20If\x20the\x20acknow\ + ledgement\x20ID\x20is\n\x20malformed,\x20the\x20stream\x20will\x20be\x20\ + aborted\x20with\x20status\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\x04\x1d\x02\ + \x01\x04\x12\x04\x81\x07\x02\n\n\r\n\x05\x04\x1d\x02\x01\x05\x12\x04\x81\ + \x07\x0b\x11\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\x81\x07\x12\x19\n\r\n\ + \x05\x04\x1d\x02\x01\x03\x12\x04\x81\x07\x1c\x1d\n\x89\x06\n\x04\x04\x1d\ + \x02\x02\x12\x04\x8e\x07\x02-\x1a\xfa\x05\x20The\x20list\x20of\x20new\ + \x20ack\x20deadlines\x20for\x20the\x20IDs\x20listed\x20in\n\x20`modify_d\ + eadline_ack_ids`.\x20The\x20size\x20of\x20this\x20list\x20must\x20be\x20\ + the\x20same\x20as\x20the\n\x20size\x20of\x20`modify_deadline_ack_ids`.\ + \x20If\x20it\x20differs\x20the\x20stream\x20will\x20be\x20aborted\n\x20w\ + ith\x20`INVALID_ARGUMENT`.\x20Each\x20element\x20in\x20this\x20list\x20i\ + s\x20applied\x20to\x20the\n\x20element\x20in\x20the\x20same\x20position\ + \x20in\x20`modify_deadline_ack_ids`.\x20The\x20new\x20ack\n\x20deadline\ + \x20is\x20with\x20respect\x20to\x20the\x20time\x20this\x20request\x20was\ + \x20sent\x20to\x20the\x20Pub/Sub\n\x20system.\x20Must\x20be\x20>=\x200.\ + \x20For\x20example,\x20if\x20the\x20value\x20is\x2010,\x20the\x20new\x20\ + ack\x20deadline\n\x20will\x20expire\x2010\x20seconds\x20after\x20this\ + \x20request\x20is\x20received.\x20If\x20the\x20value\x20is\x200,\n\x20th\ + e\x20message\x20is\x20immediately\x20made\x20available\x20for\x20another\ + \x20streaming\x20or\n\x20non-streaming\x20pull\x20request.\x20If\x20the\ + \x20value\x20is\x20<\x200\x20(an\x20error),\x20the\x20stream\x20will\n\ + \x20be\x20aborted\x20with\x20status\x20`INVALID_ARGUMENT`.\n\n\r\n\x05\ + \x04\x1d\x02\x02\x04\x12\x04\x8e\x07\x02\n\n\r\n\x05\x04\x1d\x02\x02\x05\ + \x12\x04\x8e\x07\x0b\x10\n\r\n\x05\x04\x1d\x02\x02\x01\x12\x04\x8e\x07\ + \x11(\n\r\n\x05\x04\x1d\x02\x02\x03\x12\x04\x8e\x07+,\n\xc8\x02\n\x04\ + \x04\x1d\x02\x03\x12\x04\x95\x07\x02.\x1a\xb9\x02\x20List\x20of\x20ackno\ + wledgement\x20IDs\x20whose\x20deadline\x20will\x20be\x20modified\x20base\ + d\x20on\x20the\n\x20corresponding\x20element\x20in\x20`modify_deadline_s\ + econds`.\x20This\x20field\x20can\x20be\x20used\n\x20to\x20indicate\x20th\ + at\x20more\x20time\x20is\x20needed\x20to\x20process\x20a\x20message\x20b\ + y\x20the\n\x20subscriber,\x20or\x20to\x20make\x20the\x20message\x20avail\ + able\x20for\x20redelivery\x20if\x20the\n\x20processing\x20was\x20interru\ + pted.\n\n\r\n\x05\x04\x1d\x02\x03\x04\x12\x04\x95\x07\x02\n\n\r\n\x05\ + \x04\x1d\x02\x03\x05\x12\x04\x95\x07\x0b\x11\n\r\n\x05\x04\x1d\x02\x03\ + \x01\x12\x04\x95\x07\x12)\n\r\n\x05\x04\x1d\x02\x03\x03\x12\x04\x95\x07,\ + -\n\xb4\x02\n\x04\x04\x1d\x02\x04\x12\x04\x9b\x07\x02(\x1a\xa5\x02\x20Th\ + e\x20ack\x20deadline\x20to\x20use\x20for\x20the\x20stream.\x20This\x20mu\ + st\x20be\x20provided\x20in\x20the\n\x20first\x20request\x20on\x20the\x20\ + stream,\x20but\x20it\x20can\x20also\x20be\x20updated\x20on\x20subsequent\ + \n\x20requests\x20from\x20client\x20to\x20server.\x20The\x20minimum\x20d\ + eadline\x20you\x20can\x20specify\x20is\x2010\n\x20seconds.\x20The\x20max\ + imum\x20deadline\x20you\x20can\x20specify\x20is\x20600\x20seconds\x20(10\ + \x20minutes).\n\n\r\n\x05\x04\x1d\x02\x04\x05\x12\x04\x9b\x07\x02\x07\n\ + \r\n\x05\x04\x1d\x02\x04\x01\x12\x04\x9b\x07\x08#\n\r\n\x05\x04\x1d\x02\ + \x04\x03\x12\x04\x9b\x07&'\n\x81\x01\n\x02\x04\x1e\x12\x06\xa0\x07\0\xa3\ + \x07\x01\x1as\x20Response\x20for\x20the\x20`StreamingPull`\x20method.\ + \x20This\x20response\x20is\x20used\x20to\x20stream\n\x20messages\x20from\ + \x20the\x20server\x20to\x20the\x20client.\n\n\x0b\n\x03\x04\x1e\x01\x12\ + \x04\xa0\x07\x08\x1d\nB\n\x04\x04\x1e\x02\0\x12\x04\xa2\x07\x021\x1a4\ + \x20Received\x20Pub/Sub\x20messages.\x20This\x20will\x20not\x20be\x20emp\ + ty.\n\n\r\n\x05\x04\x1e\x02\0\x04\x12\x04\xa2\x07\x02\n\n\r\n\x05\x04\ + \x1e\x02\0\x06\x12\x04\xa2\x07\x0b\x1a\n\r\n\x05\x04\x1e\x02\0\x01\x12\ + \x04\xa2\x07\x1b,\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\xa2\x07/0\n8\n\x02\ + \x04\x1f\x12\x06\xa6\x07\0\xbe\x07\x01\x1a*\x20Request\x20for\x20the\x20\ + `CreateSnapshot`\x20method.\n\n\x0b\n\x03\x04\x1f\x01\x12\x04\xa6\x07\ + \x08\x1d\n\xa3\x03\n\x04\x04\x1f\x02\0\x12\x04\xae\x07\x02\x12\x1a\x94\ + \x03\x20Optional\x20user-provided\x20name\x20for\x20this\x20snapshot.\n\ + \x20If\x20the\x20name\x20is\x20not\x20provided\x20in\x20the\x20request,\ + \x20the\x20server\x20will\x20assign\x20a\x20random\n\x20name\x20for\x20t\ + his\x20snapshot\x20on\x20the\x20same\x20project\x20as\x20the\x20subscrip\ + tion.\n\x20Note\x20that\x20for\x20REST\x20API\x20requests,\x20you\x20mus\ + t\x20specify\x20a\x20name.\x20\x20See\x20the\n\x20\n\x20resource\x20nam\ + e\x20rules.\n\x20Format\x20is\x20`projects/{project}/snapshots/{snap\ + }`.\n\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\xae\x07\x02\x08\n\r\n\x05\x04\ + \x1f\x02\0\x01\x12\x04\xae\x07\t\r\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\ + \xae\x07\x10\x11\n\xad\x04\n\x04\x04\x1f\x02\x01\x12\x04\xb9\x07\x02\x1a\ + \x1a\x9e\x04\x20The\x20subscription\x20whose\x20backlog\x20the\x20snapsh\ + ot\x20retains.\n\x20Specifically,\x20the\x20created\x20snapshot\x20is\ + \x20guaranteed\x20to\x20retain:\n\x20\x20(a)\x20The\x20existing\x20backl\ + og\x20on\x20the\x20subscription.\x20More\x20precisely,\x20this\x20is\n\ + \x20\x20\x20\x20\x20\x20defined\x20as\x20the\x20messages\x20in\x20the\ + \x20subscription's\x20backlog\x20that\x20are\n\x20\x20\x20\x20\x20\x20un\ + acknowledged\x20upon\x20the\x20successful\x20completion\x20of\x20the\n\ + \x20\x20\x20\x20\x20\x20`CreateSnapshot`\x20request;\x20as\x20well\x20as\ + :\n\x20\x20(b)\x20Any\x20messages\x20published\x20to\x20the\x20subscript\ + ion's\x20topic\x20following\x20the\n\x20\x20\x20\x20\x20\x20successful\ + \x20completion\x20of\x20the\x20CreateSnapshot\x20request.\n\x20Format\ + \x20is\x20`projects/{project}/subscriptions/{sub}`.\n\n\r\n\x05\x04\x1f\ + \x02\x01\x05\x12\x04\xb9\x07\x02\x08\n\r\n\x05\x04\x1f\x02\x01\x01\x12\ + \x04\xb9\x07\t\x15\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\xb9\x07\x18\x19\ + \nm\n\x04\x04\x1f\x02\x02\x12\x04\xbd\x07\x02!\x1a_\x20See\x20\x20Creating\x20and\n\ + \x20managing\x20labels.\n\n\r\n\x05\x04\x1f\x02\x02\x06\x12\x04\xbd\ + \x07\x02\x15\n\r\n\x05\x04\x1f\x02\x02\x01\x12\x04\xbd\x07\x16\x1c\n\r\n\ + \x05\x04\x1f\x02\x02\x03\x12\x04\xbd\x07\x1f\x20\n6\n\x02\x04\x20\x12\ + \x06\xc1\x07\0\xc8\x07\x01\x1a(\x20Request\x20for\x20the\x20UpdateSnapsh\ + ot\x20method.\n\n\x0b\n\x03\x04\x20\x01\x12\x04\xc1\x07\x08\x1d\n,\n\x04\ + \x04\x20\x02\0\x12\x04\xc3\x07\x02\x18\x1a\x1e\x20The\x20updated\x20snap\ + shot\x20object.\n\n\r\n\x05\x04\x20\x02\0\x06\x12\x04\xc3\x07\x02\n\n\r\ + \n\x05\x04\x20\x02\0\x01\x12\x04\xc3\x07\x0b\x13\n\r\n\x05\x04\x20\x02\0\ + \x03\x12\x04\xc3\x07\x16\x17\nl\n\x04\x04\x20\x02\x01\x12\x04\xc7\x07\ + \x02,\x1a^\x20Indicates\x20which\x20fields\x20in\x20the\x20provided\x20s\ + napshot\x20to\x20update.\n\x20Must\x20be\x20specified\x20and\x20non-empt\ + y.\n\n\r\n\x05\x04\x20\x02\x01\x06\x12\x04\xc7\x07\x02\x1b\n\r\n\x05\x04\ + \x20\x02\x01\x01\x12\x04\xc7\x07\x1c'\n\r\n\x05\x04\x20\x02\x01\x03\x12\ + \x04\xc7\x07*+\n\xca\x02\n\x02\x04!\x12\x06\xd0\x07\0\xe6\x07\x01\x1a\ + \xbb\x02\x20A\x20snapshot\x20resource.\x20Snapshots\x20are\x20used\x20in\ + \n\x20Seek\n\x20operations,\x20which\x20allow\n\x20you\x20to\x20manage\ + \x20message\x20acknowledgments\x20in\x20bulk.\x20That\x20is,\x20you\x20c\ + an\x20set\x20the\n\x20acknowledgment\x20state\x20of\x20messages\x20in\ + \x20an\x20existing\x20subscription\x20to\x20the\x20state\n\x20captured\ + \x20by\x20a\x20snapshot.\n\n\x0b\n\x03\x04!\x01\x12\x04\xd0\x07\x08\x10\ + \n)\n\x04\x04!\x02\0\x12\x04\xd2\x07\x02\x12\x1a\x1b\x20The\x20name\x20o\ + f\x20the\x20snapshot.\n\n\r\n\x05\x04!\x02\0\x05\x12\x04\xd2\x07\x02\x08\ + \n\r\n\x05\x04!\x02\0\x01\x12\x04\xd2\x07\t\r\n\r\n\x05\x04!\x02\0\x03\ + \x12\x04\xd2\x07\x10\x11\nU\n\x04\x04!\x02\x01\x12\x04\xd5\x07\x02\x13\ + \x1aG\x20The\x20name\x20of\x20the\x20topic\x20from\x20which\x20this\x20s\ + napshot\x20is\x20retaining\x20messages.\n\n\r\n\x05\x04!\x02\x01\x05\x12\ + \x04\xd5\x07\x02\x08\n\r\n\x05\x04!\x02\x01\x01\x12\x04\xd5\x07\t\x0e\n\ + \r\n\x05\x04!\x02\x01\x03\x12\x04\xd5\x07\x11\x12\n\xd4\x05\n\x04\x04!\ + \x02\x02\x12\x04\xe1\x07\x02,\x1a\xc5\x05\x20The\x20snapshot\x20is\x20gu\ + aranteed\x20to\x20exist\x20up\x20until\x20this\x20time.\n\x20A\x20newly-\ + created\x20snapshot\x20expires\x20no\x20later\x20than\x207\x20days\x20fr\ + om\x20the\x20time\x20of\x20its\n\x20creation.\x20Its\x20exact\x20lifetim\ + e\x20is\x20determined\x20at\x20creation\x20by\x20the\x20existing\n\x20ba\ + cklog\x20in\x20the\x20source\x20subscription.\x20Specifically,\x20the\ + \x20lifetime\x20of\x20the\n\x20snapshot\x20is\x20`7\x20days\x20-\x20(age\ + \x20of\x20oldest\x20unacked\x20message\x20in\x20the\x20subscription)`.\n\ + \x20For\x20example,\x20consider\x20a\x20subscription\x20whose\x20oldest\ + \x20unacked\x20message\x20is\x203\x20days\n\x20old.\x20If\x20a\x20snapsh\ + ot\x20is\x20created\x20from\x20this\x20subscription,\x20the\x20snapshot\ + \x20--\x20which\n\x20will\x20always\x20capture\x20this\x203-day-old\x20b\ + acklog\x20as\x20long\x20as\x20the\x20snapshot\n\x20exists\x20--\x20will\ + \x20expire\x20in\x204\x20days.\x20The\x20service\x20will\x20refuse\x20to\ + \x20create\x20a\n\x20snapshot\x20that\x20would\x20expire\x20in\x20less\ + \x20than\x201\x20hour\x20after\x20creation.\n\n\r\n\x05\x04!\x02\x02\x06\ + \x12\x04\xe1\x07\x02\x1b\n\r\n\x05\x04!\x02\x02\x01\x12\x04\xe1\x07\x1c'\ + \n\r\n\x05\x04!\x02\x02\x03\x12\x04\xe1\x07*+\nm\n\x04\x04!\x02\x03\x12\ + \x04\xe5\x07\x02!\x1a_\x20See\x20\x20Creating\x20and\n\x20managing\x20labels.\n\n\ + \r\n\x05\x04!\x02\x03\x06\x12\x04\xe5\x07\x02\x15\n\r\n\x05\x04!\x02\x03\ + \x01\x12\x04\xe5\x07\x16\x1c\n\r\n\x05\x04!\x02\x03\x03\x12\x04\xe5\x07\ + \x1f\x20\n3\n\x02\x04\"\x12\x06\xe9\x07\0\xed\x07\x01\x1a%\x20Request\ + \x20for\x20the\x20GetSnapshot\x20method.\n\n\x0b\n\x03\x04\"\x01\x12\x04\ + \xe9\x07\x08\x1a\nb\n\x04\x04\"\x02\0\x12\x04\xec\x07\x02\x16\x1aT\x20Th\ + e\x20name\x20of\x20the\x20snapshot\x20to\x20get.\n\x20Format\x20is\x20`p\ + rojects/{project}/snapshots/{snap}`.\n\n\r\n\x05\x04\"\x02\0\x05\x12\x04\ + \xec\x07\x02\x08\n\r\n\x05\x04\"\x02\0\x01\x12\x04\xec\x07\t\x11\n\r\n\ + \x05\x04\"\x02\0\x03\x12\x04\xec\x07\x14\x15\n7\n\x02\x04#\x12\x06\xf0\ + \x07\0\xfc\x07\x01\x1a)\x20Request\x20for\x20the\x20`ListSnapshots`\x20m\ + ethod.\n\n\x0b\n\x03\x04#\x01\x12\x04\xf0\x07\x08\x1c\ng\n\x04\x04#\x02\ + \0\x12\x04\xf3\x07\x02\x15\x1aY\x20The\x20name\x20of\x20the\x20project\ + \x20in\x20which\x20to\x20list\x20snapshots.\n\x20Format\x20is\x20`projec\ + ts/{project-id}`.\n\n\r\n\x05\x04#\x02\0\x05\x12\x04\xf3\x07\x02\x08\n\r\ + \n\x05\x04#\x02\0\x01\x12\x04\xf3\x07\t\x10\n\r\n\x05\x04#\x02\0\x03\x12\ + \x04\xf3\x07\x13\x14\n6\n\x04\x04#\x02\x01\x12\x04\xf6\x07\x02\x16\x1a(\ + \x20Maximum\x20number\x20of\x20snapshots\x20to\x20return.\n\n\r\n\x05\ + \x04#\x02\x01\x05\x12\x04\xf6\x07\x02\x07\n\r\n\x05\x04#\x02\x01\x01\x12\ + \x04\xf6\x07\x08\x11\n\r\n\x05\x04#\x02\x01\x03\x12\x04\xf6\x07\x14\x15\ + \n\xca\x01\n\x04\x04#\x02\x02\x12\x04\xfb\x07\x02\x18\x1a\xbb\x01\x20The\ + \x20value\x20returned\x20by\x20the\x20last\x20`ListSnapshotsResponse`;\ + \x20indicates\x20that\x20this\n\x20is\x20a\x20continuation\x20of\x20a\ + \x20prior\x20`ListSnapshots`\x20call,\x20and\x20that\x20the\x20system\n\ + \x20should\x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\ + \x04#\x02\x02\x05\x12\x04\xfb\x07\x02\x08\n\r\n\x05\x04#\x02\x02\x01\x12\ + \x04\xfb\x07\t\x13\n\r\n\x05\x04#\x02\x02\x03\x12\x04\xfb\x07\x16\x17\n8\ + \n\x02\x04$\x12\x06\xff\x07\0\x86\x08\x01\x1a*\x20Response\x20for\x20the\ + \x20`ListSnapshots`\x20method.\n\n\x0b\n\x03\x04$\x01\x12\x04\xff\x07\ + \x08\x1d\n(\n\x04\x04$\x02\0\x12\x04\x81\x08\x02\"\x1a\x1a\x20The\x20res\ + ulting\x20snapshots.\n\n\r\n\x05\x04$\x02\0\x04\x12\x04\x81\x08\x02\n\n\ + \r\n\x05\x04$\x02\0\x06\x12\x04\x81\x08\x0b\x13\n\r\n\x05\x04$\x02\0\x01\ + \x12\x04\x81\x08\x14\x1d\n\r\n\x05\x04$\x02\0\x03\x12\x04\x81\x08\x20!\n\ + \x9e\x01\n\x04\x04$\x02\x01\x12\x04\x85\x08\x02\x1d\x1a\x8f\x01\x20If\ + \x20not\x20empty,\x20indicates\x20that\x20there\x20may\x20be\x20more\x20\ + snapshot\x20that\x20match\x20the\n\x20request;\x20this\x20value\x20shoul\ + d\x20be\x20passed\x20in\x20a\x20new\x20`ListSnapshotsRequest`.\n\n\r\n\ + \x05\x04$\x02\x01\x05\x12\x04\x85\x08\x02\x08\n\r\n\x05\x04$\x02\x01\x01\ + \x12\x04\x85\x08\t\x18\n\r\n\x05\x04$\x02\x01\x03\x12\x04\x85\x08\x1b\ + \x1c\n8\n\x02\x04%\x12\x06\x89\x08\0\x8d\x08\x01\x1a*\x20Request\x20for\ + \x20the\x20`DeleteSnapshot`\x20method.\n\n\x0b\n\x03\x04%\x01\x12\x04\ + \x89\x08\x08\x1d\ne\n\x04\x04%\x02\0\x12\x04\x8c\x08\x02\x16\x1aW\x20The\ + \x20name\x20of\x20the\x20snapshot\x20to\x20delete.\n\x20Format\x20is\x20\ + `projects/{project}/snapshots/{snap}`.\n\n\r\n\x05\x04%\x02\0\x05\x12\ + \x04\x8c\x08\x02\x08\n\r\n\x05\x04%\x02\0\x01\x12\x04\x8c\x08\t\x11\n\r\ + \n\x05\x04%\x02\0\x03\x12\x04\x8c\x08\x14\x15\n.\n\x02\x04&\x12\x06\x90\ + \x08\0\xa7\x08\x01\x1a\x20\x20Request\x20for\x20the\x20`Seek`\x20method.\ + \n\n\x0b\n\x03\x04&\x01\x12\x04\x90\x08\x08\x13\n+\n\x04\x04&\x02\0\x12\ + \x04\x92\x08\x02\x1a\x1a\x1d\x20The\x20subscription\x20to\x20affect.\n\n\ + \r\n\x05\x04&\x02\0\x05\x12\x04\x92\x08\x02\x08\n\r\n\x05\x04&\x02\0\x01\ + \x12\x04\x92\x08\t\x15\n\r\n\x05\x04&\x02\0\x03\x12\x04\x92\x08\x18\x19\ + \n\x0e\n\x04\x04&\x08\0\x12\x06\x94\x08\x02\xa6\x08\x03\n\r\n\x05\x04&\ + \x08\0\x01\x12\x04\x94\x08\x08\x0e\n\xbe\x05\n\x04\x04&\x02\x01\x12\x04\ + \xa0\x08\x04'\x1a\xaf\x05\x20The\x20time\x20to\x20seek\x20to.\n\x20Messa\ + ges\x20retained\x20in\x20the\x20subscription\x20that\x20were\x20publishe\ + d\x20before\x20this\n\x20time\x20are\x20marked\x20as\x20acknowledged,\ + \x20and\x20messages\x20retained\x20in\x20the\n\x20subscription\x20that\ + \x20were\x20published\x20after\x20this\x20time\x20are\x20marked\x20as\n\ + \x20unacknowledged.\x20Note\x20that\x20this\x20operation\x20affects\x20o\ + nly\x20those\x20messages\n\x20retained\x20in\x20the\x20subscription\x20(\ + configured\x20by\x20the\x20combination\x20of\n\x20`message_retention_dur\ + ation`\x20and\x20`retain_acked_messages`).\x20For\x20example,\n\x20if\ + \x20`time`\x20corresponds\x20to\x20a\x20point\x20before\x20the\x20messag\ + e\x20retention\n\x20window\x20(or\x20to\x20a\x20point\x20before\x20the\ + \x20system's\x20notion\x20of\x20the\x20subscription\n\x20creation\x20tim\ + e),\x20only\x20retained\x20messages\x20will\x20be\x20marked\x20as\x20una\ + cknowledged,\n\x20and\x20already-expunged\x20messages\x20will\x20not\x20\ + be\x20restored.\n\n\r\n\x05\x04&\x02\x01\x06\x12\x04\xa0\x08\x04\x1d\n\r\ + \n\x05\x04&\x02\x01\x01\x12\x04\xa0\x08\x1e\"\n\r\n\x05\x04&\x02\x01\x03\ + \x12\x04\xa0\x08%&\n\xa8\x01\n\x04\x04&\x02\x02\x12\x04\xa5\x08\x04\x18\ \x1a\x99\x01\x20The\x20snapshot\x20to\x20seek\x20to.\x20The\x20snapshot'\ s\x20topic\x20must\x20be\x20the\x20same\x20as\x20that\x20of\n\x20the\x20\ provided\x20subscription.\n\x20Format\x20is\x20`projects/{project}/snaps\ - hots/{snap}`.\n\n\r\n\x05\x04,\x02\x02\x05\x12\x04\xb0\x0c\x04\n\n\r\n\ - \x05\x04,\x02\x02\x01\x12\x04\xb0\x0c\x0b\x13\n\r\n\x05\x04,\x02\x02\x03\ - \x12\x04\xb0\x0c\x16\x17\n\x0f\n\x05\x04,\x02\x02\x08\x12\x06\xb0\x0c\ - \x18\xb2\x0c\x06\n\x11\n\x07\x04,\x02\x02\x08\x9f\x08\x12\x06\xb0\x0c\ - \x19\xb2\x0c\x05\nF\n\x02\x04-\x12\x04\xb7\x0c\0\x17\x1a:\x20Response\ - \x20for\x20the\x20`Seek`\x20method\x20(this\x20response\x20is\x20empty).\ - \n\n\x0b\n\x03\x04-\x01\x12\x04\xb7\x0c\x08\x14b\x06proto3\ + hots/{snap}`.\n\n\r\n\x05\x04&\x02\x02\x05\x12\x04\xa5\x08\x04\n\n\r\n\ + \x05\x04&\x02\x02\x01\x12\x04\xa5\x08\x0b\x13\n\r\n\x05\x04&\x02\x02\x03\ + \x12\x04\xa5\x08\x16\x17\nF\n\x02\x04'\x12\x04\xaa\x08\0\x17\x1a:\x20Res\ + ponse\x20for\x20the\x20`Seek`\x20method\x20(this\x20response\x20is\x20em\ + pty).\n\n\x0b\n\x03\x04'\x01\x12\x04\xaa\x08\x08\x14b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(6); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(41); + messages.push(MessageStoragePolicy::generated_message_descriptor_data()); + messages.push(Topic::generated_message_descriptor_data()); + messages.push(PubsubMessage::generated_message_descriptor_data()); + messages.push(GetTopicRequest::generated_message_descriptor_data()); + messages.push(UpdateTopicRequest::generated_message_descriptor_data()); + messages.push(PublishRequest::generated_message_descriptor_data()); + messages.push(PublishResponse::generated_message_descriptor_data()); + messages.push(ListTopicsRequest::generated_message_descriptor_data()); + messages.push(ListTopicsResponse::generated_message_descriptor_data()); + messages.push(ListTopicSubscriptionsRequest::generated_message_descriptor_data()); + messages.push(ListTopicSubscriptionsResponse::generated_message_descriptor_data()); + messages.push(ListTopicSnapshotsRequest::generated_message_descriptor_data()); + messages.push(ListTopicSnapshotsResponse::generated_message_descriptor_data()); + messages.push(DeleteTopicRequest::generated_message_descriptor_data()); + messages.push(Subscription::generated_message_descriptor_data()); + messages.push(DeadLetterPolicy::generated_message_descriptor_data()); + messages.push(ExpirationPolicy::generated_message_descriptor_data()); + messages.push(PushConfig::generated_message_descriptor_data()); + messages.push(ReceivedMessage::generated_message_descriptor_data()); + messages.push(GetSubscriptionRequest::generated_message_descriptor_data()); + messages.push(UpdateSubscriptionRequest::generated_message_descriptor_data()); + messages.push(ListSubscriptionsRequest::generated_message_descriptor_data()); + messages.push(ListSubscriptionsResponse::generated_message_descriptor_data()); + messages.push(DeleteSubscriptionRequest::generated_message_descriptor_data()); + messages.push(ModifyPushConfigRequest::generated_message_descriptor_data()); + messages.push(PullRequest::generated_message_descriptor_data()); + messages.push(PullResponse::generated_message_descriptor_data()); + messages.push(ModifyAckDeadlineRequest::generated_message_descriptor_data()); + messages.push(AcknowledgeRequest::generated_message_descriptor_data()); + messages.push(StreamingPullRequest::generated_message_descriptor_data()); + messages.push(StreamingPullResponse::generated_message_descriptor_data()); + messages.push(CreateSnapshotRequest::generated_message_descriptor_data()); + messages.push(UpdateSnapshotRequest::generated_message_descriptor_data()); + messages.push(Snapshot::generated_message_descriptor_data()); + messages.push(GetSnapshotRequest::generated_message_descriptor_data()); + messages.push(ListSnapshotsRequest::generated_message_descriptor_data()); + messages.push(ListSnapshotsResponse::generated_message_descriptor_data()); + messages.push(DeleteSnapshotRequest::generated_message_descriptor_data()); + messages.push(SeekRequest::generated_message_descriptor_data()); + messages.push(SeekResponse::generated_message_descriptor_data()); + messages.push(push_config::OidcToken::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs b/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs index 7bf772c..dbb4da4 100644 --- a/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs +++ b/googleapis-raw/src/pubsub/v1/pubsub_grpc.rs @@ -72,13 +72,6 @@ const METHOD_PUBLISHER_DELETE_TOPIC: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.Publisher/DetachSubscription", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct PublisherClient { pub client: ::grpcio::Client, @@ -218,22 +211,6 @@ impl PublisherClient { pub fn delete_topic_async(&self, req: &super::pubsub::DeleteTopicRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.delete_topic_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn detach_subscription_opt(&self, req: &super::pubsub::DetachSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_PUBLISHER_DETACH_SUBSCRIPTION, req, opt) - } - - pub fn detach_subscription(&self, req: &super::pubsub::DetachSubscriptionRequest) -> ::grpcio::Result { - self.detach_subscription_opt(req, ::grpcio::CallOption::default()) - } - - pub fn detach_subscription_async_opt(&self, req: &super::pubsub::DetachSubscriptionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_PUBLISHER_DETACH_SUBSCRIPTION, req, opt) - } - - pub fn detach_subscription_async(&self, req: &super::pubsub::DetachSubscriptionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.detach_subscription_async_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -264,9 +241,6 @@ pub trait Publisher { fn delete_topic(&mut self, ctx: ::grpcio::RpcContext, _req: super::pubsub::DeleteTopicRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn detach_subscription(&mut self, ctx: ::grpcio::RpcContext, _req: super::pubsub::DetachSubscriptionRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_publisher(s: S) -> ::grpcio::Service { @@ -299,14 +273,10 @@ pub fn create_publisher(s: S) -> ::grpcio builder = builder.add_unary_handler(&METHOD_PUBLISHER_LIST_TOPIC_SNAPSHOTS, move |ctx, req, resp| { instance.list_topic_snapshots(ctx, req, resp) }); - let mut instance = s.clone(); + let mut instance = s; builder = builder.add_unary_handler(&METHOD_PUBLISHER_DELETE_TOPIC, move |ctx, req, resp| { instance.delete_topic(ctx, req, resp) }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_PUBLISHER_DETACH_SUBSCRIPTION, move |ctx, req, resp| { - instance.detach_subscription(ctx, req, resp) - }); builder.build() } diff --git a/googleapis-raw/src/pubsub/v1/schema.rs b/googleapis-raw/src/pubsub/v1/schema.rs deleted file mode 100644 index 283c0c9..0000000 --- a/googleapis-raw/src/pubsub/v1/schema.rs +++ /dev/null @@ -1,4020 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/pubsub/v1/schema.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Schema { - // message fields - pub name: ::std::string::String, - pub field_type: Schema_Type, - pub definition: ::std::string::String, - pub revision_id: ::std::string::String, - pub revision_create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Schema { - fn default() -> &'a Schema { - ::default_instance() - } -} - -impl Schema { - pub fn new() -> Schema { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.pubsub.v1.Schema.Type type = 2; - - - pub fn get_field_type(&self) -> Schema_Type { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = Schema_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Schema_Type) { - self.field_type = v; - } - - // string definition = 3; - - - pub fn get_definition(&self) -> &str { - &self.definition - } - pub fn clear_definition(&mut self) { - self.definition.clear(); - } - - // Param is passed by value, moved - pub fn set_definition(&mut self, v: ::std::string::String) { - self.definition = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_definition(&mut self) -> &mut ::std::string::String { - &mut self.definition - } - - // Take field - pub fn take_definition(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.definition, ::std::string::String::new()) - } - - // string revision_id = 4; - - - pub fn get_revision_id(&self) -> &str { - &self.revision_id - } - pub fn clear_revision_id(&mut self) { - self.revision_id.clear(); - } - - // Param is passed by value, moved - pub fn set_revision_id(&mut self, v: ::std::string::String) { - self.revision_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.revision_id - } - - // Take field - pub fn take_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.revision_id, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp revision_create_time = 6; - - - pub fn get_revision_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.revision_create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_revision_create_time(&mut self) { - self.revision_create_time.clear(); - } - - pub fn has_revision_create_time(&self) -> bool { - self.revision_create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_revision_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.revision_create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.revision_create_time.is_none() { - self.revision_create_time.set_default(); - } - self.revision_create_time.as_mut().unwrap() - } - - // Take field - pub fn take_revision_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.revision_create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Schema { - fn is_initialized(&self) -> bool { - for v in &self.revision_create_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.definition)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.revision_id)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.revision_create_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.field_type != Schema_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.field_type); - } - if !self.definition.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.definition); - } - if !self.revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.revision_id); - } - if let Some(ref v) = self.revision_create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.field_type != Schema_Type::TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.field_type))?; - } - if !self.definition.is_empty() { - os.write_string(3, &self.definition)?; - } - if !self.revision_id.is_empty() { - os.write_string(4, &self.revision_id)?; - } - if let Some(ref v) = self.revision_create_time.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Schema { - Schema::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Schema| { &m.name }, - |m: &mut Schema| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &Schema| { &m.field_type }, - |m: &mut Schema| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "definition", - |m: &Schema| { &m.definition }, - |m: &mut Schema| { &mut m.definition }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "revision_id", - |m: &Schema| { &m.revision_id }, - |m: &mut Schema| { &mut m.revision_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "revision_create_time", - |m: &Schema| { &m.revision_create_time }, - |m: &mut Schema| { &mut m.revision_create_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Schema", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Schema { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Schema::new) - } -} - -impl ::protobuf::Clear for Schema { - fn clear(&mut self) { - self.name.clear(); - self.field_type = Schema_Type::TYPE_UNSPECIFIED; - self.definition.clear(); - self.revision_id.clear(); - self.revision_create_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Schema { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Schema { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Schema_Type { - TYPE_UNSPECIFIED = 0, - PROTOCOL_BUFFER = 1, - AVRO = 2, -} - -impl ::protobuf::ProtobufEnum for Schema_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Schema_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Schema_Type::PROTOCOL_BUFFER), - 2 => ::std::option::Option::Some(Schema_Type::AVRO), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Schema_Type] = &[ - Schema_Type::TYPE_UNSPECIFIED, - Schema_Type::PROTOCOL_BUFFER, - Schema_Type::AVRO, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Schema.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Schema_Type { -} - -impl ::std::default::Default for Schema_Type { - fn default() -> Self { - Schema_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Schema_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateSchemaRequest { - // message fields - pub parent: ::std::string::String, - pub schema: ::protobuf::SingularPtrField, - pub schema_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateSchemaRequest { - fn default() -> &'a CreateSchemaRequest { - ::default_instance() - } -} - -impl CreateSchemaRequest { - pub fn new() -> CreateSchemaRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.pubsub.v1.Schema schema = 2; - - - pub fn get_schema(&self) -> &Schema { - self.schema.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_schema(&mut self) { - self.schema.clear(); - } - - pub fn has_schema(&self) -> bool { - self.schema.is_some() - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: Schema) { - self.schema = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema(&mut self) -> &mut Schema { - if self.schema.is_none() { - self.schema.set_default(); - } - self.schema.as_mut().unwrap() - } - - // Take field - pub fn take_schema(&mut self) -> Schema { - self.schema.take().unwrap_or_else(|| Schema::new()) - } - - // string schema_id = 3; - - - pub fn get_schema_id(&self) -> &str { - &self.schema_id - } - pub fn clear_schema_id(&mut self) { - self.schema_id.clear(); - } - - // Param is passed by value, moved - pub fn set_schema_id(&mut self, v: ::std::string::String) { - self.schema_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema_id(&mut self) -> &mut ::std::string::String { - &mut self.schema_id - } - - // Take field - pub fn take_schema_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.schema_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateSchemaRequest { - fn is_initialized(&self) -> bool { - for v in &self.schema { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.schema)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.schema_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.schema.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.schema_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.schema_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.schema.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.schema_id.is_empty() { - os.write_string(3, &self.schema_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateSchemaRequest { - CreateSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateSchemaRequest| { &m.parent }, - |m: &mut CreateSchemaRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schema", - |m: &CreateSchemaRequest| { &m.schema }, - |m: &mut CreateSchemaRequest| { &mut m.schema }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "schema_id", - |m: &CreateSchemaRequest| { &m.schema_id }, - |m: &mut CreateSchemaRequest| { &mut m.schema_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateSchemaRequest::new) - } -} - -impl ::protobuf::Clear for CreateSchemaRequest { - fn clear(&mut self) { - self.parent.clear(); - self.schema.clear(); - self.schema_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetSchemaRequest { - // message fields - pub name: ::std::string::String, - pub view: SchemaView, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetSchemaRequest { - fn default() -> &'a GetSchemaRequest { - ::default_instance() - } -} - -impl GetSchemaRequest { - pub fn new() -> GetSchemaRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.pubsub.v1.SchemaView view = 2; - - - pub fn get_view(&self) -> SchemaView { - self.view - } - pub fn clear_view(&mut self) { - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: SchemaView) { - self.view = v; - } -} - -impl ::protobuf::Message for GetSchemaRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetSchemaRequest { - GetSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetSchemaRequest| { &m.name }, - |m: &mut GetSchemaRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &GetSchemaRequest| { &m.view }, - |m: &mut GetSchemaRequest| { &mut m.view }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSchemaRequest::new) - } -} - -impl ::protobuf::Clear for GetSchemaRequest { - fn clear(&mut self) { - self.name.clear(); - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSchemasRequest { - // message fields - pub parent: ::std::string::String, - pub view: SchemaView, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSchemasRequest { - fn default() -> &'a ListSchemasRequest { - ::default_instance() - } -} - -impl ListSchemasRequest { - pub fn new() -> ListSchemasRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.pubsub.v1.SchemaView view = 2; - - - pub fn get_view(&self) -> SchemaView { - self.view - } - pub fn clear_view(&mut self) { - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: SchemaView) { - self.view = v; - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSchemasRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSchemasRequest { - ListSchemasRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListSchemasRequest| { &m.parent }, - |m: &mut ListSchemasRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &ListSchemasRequest| { &m.view }, - |m: &mut ListSchemasRequest| { &mut m.view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSchemasRequest| { &m.page_size }, - |m: &mut ListSchemasRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSchemasRequest| { &m.page_token }, - |m: &mut ListSchemasRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSchemasRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSchemasRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSchemasRequest::new) - } -} - -impl ::protobuf::Clear for ListSchemasRequest { - fn clear(&mut self) { - self.parent.clear(); - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSchemasRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSchemasRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSchemasResponse { - // message fields - pub schemas: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSchemasResponse { - fn default() -> &'a ListSchemasResponse { - ::default_instance() - } -} - -impl ListSchemasResponse { - pub fn new() -> ListSchemasResponse { - ::std::default::Default::default() - } - - // repeated .google.pubsub.v1.Schema schemas = 1; - - - pub fn get_schemas(&self) -> &[Schema] { - &self.schemas - } - pub fn clear_schemas(&mut self) { - self.schemas.clear(); - } - - // Param is passed by value, moved - pub fn set_schemas(&mut self, v: ::protobuf::RepeatedField) { - self.schemas = v; - } - - // Mutable pointer to the field. - pub fn mut_schemas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.schemas - } - - // Take field - pub fn take_schemas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.schemas, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSchemasResponse { - fn is_initialized(&self) -> bool { - for v in &self.schemas { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.schemas)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.schemas { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.schemas { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSchemasResponse { - ListSchemasResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schemas", - |m: &ListSchemasResponse| { &m.schemas }, - |m: &mut ListSchemasResponse| { &mut m.schemas }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSchemasResponse| { &m.next_page_token }, - |m: &mut ListSchemasResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSchemasResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSchemasResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSchemasResponse::new) - } -} - -impl ::protobuf::Clear for ListSchemasResponse { - fn clear(&mut self) { - self.schemas.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSchemasResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSchemasResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSchemaRevisionsRequest { - // message fields - pub name: ::std::string::String, - pub view: SchemaView, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSchemaRevisionsRequest { - fn default() -> &'a ListSchemaRevisionsRequest { - ::default_instance() - } -} - -impl ListSchemaRevisionsRequest { - pub fn new() -> ListSchemaRevisionsRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.pubsub.v1.SchemaView view = 2; - - - pub fn get_view(&self) -> SchemaView { - self.view - } - pub fn clear_view(&mut self) { - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_view(&mut self, v: SchemaView) { - self.view = v; - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSchemaRevisionsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.view, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.view); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.view != SchemaView::SCHEMA_VIEW_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.view))?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSchemaRevisionsRequest { - ListSchemaRevisionsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &ListSchemaRevisionsRequest| { &m.name }, - |m: &mut ListSchemaRevisionsRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "view", - |m: &ListSchemaRevisionsRequest| { &m.view }, - |m: &mut ListSchemaRevisionsRequest| { &mut m.view }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSchemaRevisionsRequest| { &m.page_size }, - |m: &mut ListSchemaRevisionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSchemaRevisionsRequest| { &m.page_token }, - |m: &mut ListSchemaRevisionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSchemaRevisionsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSchemaRevisionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSchemaRevisionsRequest::new) - } -} - -impl ::protobuf::Clear for ListSchemaRevisionsRequest { - fn clear(&mut self) { - self.name.clear(); - self.view = SchemaView::SCHEMA_VIEW_UNSPECIFIED; - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSchemaRevisionsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSchemaRevisionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListSchemaRevisionsResponse { - // message fields - pub schemas: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListSchemaRevisionsResponse { - fn default() -> &'a ListSchemaRevisionsResponse { - ::default_instance() - } -} - -impl ListSchemaRevisionsResponse { - pub fn new() -> ListSchemaRevisionsResponse { - ::std::default::Default::default() - } - - // repeated .google.pubsub.v1.Schema schemas = 1; - - - pub fn get_schemas(&self) -> &[Schema] { - &self.schemas - } - pub fn clear_schemas(&mut self) { - self.schemas.clear(); - } - - // Param is passed by value, moved - pub fn set_schemas(&mut self, v: ::protobuf::RepeatedField) { - self.schemas = v; - } - - // Mutable pointer to the field. - pub fn mut_schemas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.schemas - } - - // Take field - pub fn take_schemas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.schemas, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListSchemaRevisionsResponse { - fn is_initialized(&self) -> bool { - for v in &self.schemas { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.schemas)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.schemas { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.schemas { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListSchemaRevisionsResponse { - ListSchemaRevisionsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schemas", - |m: &ListSchemaRevisionsResponse| { &m.schemas }, - |m: &mut ListSchemaRevisionsResponse| { &mut m.schemas }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSchemaRevisionsResponse| { &m.next_page_token }, - |m: &mut ListSchemaRevisionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSchemaRevisionsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListSchemaRevisionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSchemaRevisionsResponse::new) - } -} - -impl ::protobuf::Clear for ListSchemaRevisionsResponse { - fn clear(&mut self) { - self.schemas.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListSchemaRevisionsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListSchemaRevisionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommitSchemaRequest { - // message fields - pub name: ::std::string::String, - pub schema: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommitSchemaRequest { - fn default() -> &'a CommitSchemaRequest { - ::default_instance() - } -} - -impl CommitSchemaRequest { - pub fn new() -> CommitSchemaRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.pubsub.v1.Schema schema = 2; - - - pub fn get_schema(&self) -> &Schema { - self.schema.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_schema(&mut self) { - self.schema.clear(); - } - - pub fn has_schema(&self) -> bool { - self.schema.is_some() - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: Schema) { - self.schema = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema(&mut self) -> &mut Schema { - if self.schema.is_none() { - self.schema.set_default(); - } - self.schema.as_mut().unwrap() - } - - // Take field - pub fn take_schema(&mut self) -> Schema { - self.schema.take().unwrap_or_else(|| Schema::new()) - } -} - -impl ::protobuf::Message for CommitSchemaRequest { - fn is_initialized(&self) -> bool { - for v in &self.schema { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.schema)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.schema.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.schema.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommitSchemaRequest { - CommitSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CommitSchemaRequest| { &m.name }, - |m: &mut CommitSchemaRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schema", - |m: &CommitSchemaRequest| { &m.schema }, - |m: &mut CommitSchemaRequest| { &mut m.schema }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommitSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitSchemaRequest::new) - } -} - -impl ::protobuf::Clear for CommitSchemaRequest { - fn clear(&mut self) { - self.name.clear(); - self.schema.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommitSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommitSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RollbackSchemaRequest { - // message fields - pub name: ::std::string::String, - pub revision_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RollbackSchemaRequest { - fn default() -> &'a RollbackSchemaRequest { - ::default_instance() - } -} - -impl RollbackSchemaRequest { - pub fn new() -> RollbackSchemaRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string revision_id = 2; - - - pub fn get_revision_id(&self) -> &str { - &self.revision_id - } - pub fn clear_revision_id(&mut self) { - self.revision_id.clear(); - } - - // Param is passed by value, moved - pub fn set_revision_id(&mut self, v: ::std::string::String) { - self.revision_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.revision_id - } - - // Take field - pub fn take_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.revision_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for RollbackSchemaRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.revision_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.revision_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.revision_id.is_empty() { - os.write_string(2, &self.revision_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RollbackSchemaRequest { - RollbackSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &RollbackSchemaRequest| { &m.name }, - |m: &mut RollbackSchemaRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "revision_id", - |m: &RollbackSchemaRequest| { &m.revision_id }, - |m: &mut RollbackSchemaRequest| { &mut m.revision_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RollbackSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static RollbackSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RollbackSchemaRequest::new) - } -} - -impl ::protobuf::Clear for RollbackSchemaRequest { - fn clear(&mut self) { - self.name.clear(); - self.revision_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RollbackSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RollbackSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteSchemaRevisionRequest { - // message fields - pub name: ::std::string::String, - pub revision_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteSchemaRevisionRequest { - fn default() -> &'a DeleteSchemaRevisionRequest { - ::default_instance() - } -} - -impl DeleteSchemaRevisionRequest { - pub fn new() -> DeleteSchemaRevisionRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string revision_id = 2; - - - pub fn get_revision_id(&self) -> &str { - &self.revision_id - } - pub fn clear_revision_id(&mut self) { - self.revision_id.clear(); - } - - // Param is passed by value, moved - pub fn set_revision_id(&mut self, v: ::std::string::String) { - self.revision_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_revision_id(&mut self) -> &mut ::std::string::String { - &mut self.revision_id - } - - // Take field - pub fn take_revision_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.revision_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteSchemaRevisionRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.revision_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.revision_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.revision_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.revision_id.is_empty() { - os.write_string(2, &self.revision_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteSchemaRevisionRequest { - DeleteSchemaRevisionRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteSchemaRevisionRequest| { &m.name }, - |m: &mut DeleteSchemaRevisionRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "revision_id", - |m: &DeleteSchemaRevisionRequest| { &m.revision_id }, - |m: &mut DeleteSchemaRevisionRequest| { &mut m.revision_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSchemaRevisionRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteSchemaRevisionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSchemaRevisionRequest::new) - } -} - -impl ::protobuf::Clear for DeleteSchemaRevisionRequest { - fn clear(&mut self) { - self.name.clear(); - self.revision_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteSchemaRevisionRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteSchemaRevisionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteSchemaRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteSchemaRequest { - fn default() -> &'a DeleteSchemaRequest { - ::default_instance() - } -} - -impl DeleteSchemaRequest { - pub fn new() -> DeleteSchemaRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteSchemaRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteSchemaRequest { - DeleteSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteSchemaRequest| { &m.name }, - |m: &mut DeleteSchemaRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSchemaRequest::new) - } -} - -impl ::protobuf::Clear for DeleteSchemaRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValidateSchemaRequest { - // message fields - pub parent: ::std::string::String, - pub schema: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValidateSchemaRequest { - fn default() -> &'a ValidateSchemaRequest { - ::default_instance() - } -} - -impl ValidateSchemaRequest { - pub fn new() -> ValidateSchemaRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // .google.pubsub.v1.Schema schema = 2; - - - pub fn get_schema(&self) -> &Schema { - self.schema.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_schema(&mut self) { - self.schema.clear(); - } - - pub fn has_schema(&self) -> bool { - self.schema.is_some() - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: Schema) { - self.schema = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_schema(&mut self) -> &mut Schema { - if self.schema.is_none() { - self.schema.set_default(); - } - self.schema.as_mut().unwrap() - } - - // Take field - pub fn take_schema(&mut self) -> Schema { - self.schema.take().unwrap_or_else(|| Schema::new()) - } -} - -impl ::protobuf::Message for ValidateSchemaRequest { - fn is_initialized(&self) -> bool { - for v in &self.schema { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.schema)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if let Some(ref v) = self.schema.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if let Some(ref v) = self.schema.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ValidateSchemaRequest { - ValidateSchemaRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ValidateSchemaRequest| { &m.parent }, - |m: &mut ValidateSchemaRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "schema", - |m: &ValidateSchemaRequest| { &m.schema }, - |m: &mut ValidateSchemaRequest| { &mut m.schema }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValidateSchemaRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ValidateSchemaRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValidateSchemaRequest::new) - } -} - -impl ::protobuf::Clear for ValidateSchemaRequest { - fn clear(&mut self) { - self.parent.clear(); - self.schema.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ValidateSchemaRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValidateSchemaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValidateSchemaResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValidateSchemaResponse { - fn default() -> &'a ValidateSchemaResponse { - ::default_instance() - } -} - -impl ValidateSchemaResponse { - pub fn new() -> ValidateSchemaResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ValidateSchemaResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ValidateSchemaResponse { - ValidateSchemaResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValidateSchemaResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ValidateSchemaResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValidateSchemaResponse::new) - } -} - -impl ::protobuf::Clear for ValidateSchemaResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ValidateSchemaResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValidateSchemaResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValidateMessageRequest { - // message fields - pub parent: ::std::string::String, - pub message: ::std::vec::Vec, - pub encoding: Encoding, - // message oneof groups - pub schema_spec: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValidateMessageRequest { - fn default() -> &'a ValidateMessageRequest { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum ValidateMessageRequest_oneof_schema_spec { - name(::std::string::String), - schema(Schema), -} - -impl ValidateMessageRequest { - pub fn new() -> ValidateMessageRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string name = 2; - - - pub fn get_name(&self) -> &str { - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(ref v)) => v, - _ => "", - } - } - pub fn clear_name(&mut self) { - self.schema_spec = ::std::option::Option::None; - } - - pub fn has_name(&self) -> bool { - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(v)) - } - - // Mutable pointer to the field. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(_)) = self.schema_spec { - } else { - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(::std::string::String::new())); - } - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - if self.has_name() { - match self.schema_spec.take() { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.pubsub.v1.Schema schema = 3; - - - pub fn get_schema(&self) -> &Schema { - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_schema(&mut self) { - self.schema_spec = ::std::option::Option::None; - } - - pub fn has_schema(&self) -> bool { - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_schema(&mut self, v: Schema) { - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(v)) - } - - // Mutable pointer to the field. - pub fn mut_schema(&mut self) -> &mut Schema { - if let ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(_)) = self.schema_spec { - } else { - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(Schema::new())); - } - match self.schema_spec { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_schema(&mut self) -> Schema { - if self.has_schema() { - match self.schema_spec.take() { - ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(v)) => v, - _ => panic!(), - } - } else { - Schema::new() - } - } - - // bytes message = 4; - - - pub fn get_message(&self) -> &[u8] { - &self.message - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: ::std::vec::Vec) { - self.message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut ::std::vec::Vec { - &mut self.message - } - - // Take field - pub fn take_message(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.message, ::std::vec::Vec::new()) - } - - // .google.pubsub.v1.Encoding encoding = 5; - - - pub fn get_encoding(&self) -> Encoding { - self.encoding - } - pub fn clear_encoding(&mut self) { - self.encoding = Encoding::ENCODING_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encoding(&mut self, v: Encoding) { - self.encoding = v; - } -} - -impl ::protobuf::Message for ValidateMessageRequest { - fn is_initialized(&self) -> bool { - if let Some(ValidateMessageRequest_oneof_schema_spec::schema(ref v)) = self.schema_spec { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::name(is.read_string()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.schema_spec = ::std::option::Option::Some(ValidateMessageRequest_oneof_schema_spec::schema(is.read_message()?)); - }, - 4 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.message)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encoding, 5, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.message.is_empty() { - my_size += ::protobuf::rt::bytes_size(4, &self.message); - } - if self.encoding != Encoding::ENCODING_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.encoding); - } - if let ::std::option::Option::Some(ref v) = self.schema_spec { - match v { - &ValidateMessageRequest_oneof_schema_spec::name(ref v) => { - my_size += ::protobuf::rt::string_size(2, &v); - }, - &ValidateMessageRequest_oneof_schema_spec::schema(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.message.is_empty() { - os.write_bytes(4, &self.message)?; - } - if self.encoding != Encoding::ENCODING_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.encoding))?; - } - if let ::std::option::Option::Some(ref v) = self.schema_spec { - match v { - &ValidateMessageRequest_oneof_schema_spec::name(ref v) => { - os.write_string(2, v)?; - }, - &ValidateMessageRequest_oneof_schema_spec::schema(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ValidateMessageRequest { - ValidateMessageRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ValidateMessageRequest| { &m.parent }, - |m: &mut ValidateMessageRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "name", - ValidateMessageRequest::has_name, - ValidateMessageRequest::get_name, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Schema>( - "schema", - ValidateMessageRequest::has_schema, - ValidateMessageRequest::get_schema, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "message", - |m: &ValidateMessageRequest| { &m.message }, - |m: &mut ValidateMessageRequest| { &mut m.message }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encoding", - |m: &ValidateMessageRequest| { &m.encoding }, - |m: &mut ValidateMessageRequest| { &mut m.encoding }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValidateMessageRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ValidateMessageRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValidateMessageRequest::new) - } -} - -impl ::protobuf::Clear for ValidateMessageRequest { - fn clear(&mut self) { - self.parent.clear(); - self.schema_spec = ::std::option::Option::None; - self.schema_spec = ::std::option::Option::None; - self.message.clear(); - self.encoding = Encoding::ENCODING_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ValidateMessageRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValidateMessageRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ValidateMessageResponse { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ValidateMessageResponse { - fn default() -> &'a ValidateMessageResponse { - ::default_instance() - } -} - -impl ValidateMessageResponse { - pub fn new() -> ValidateMessageResponse { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ValidateMessageResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ValidateMessageResponse { - ValidateMessageResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ValidateMessageResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ValidateMessageResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ValidateMessageResponse::new) - } -} - -impl ::protobuf::Clear for ValidateMessageResponse { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ValidateMessageResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ValidateMessageResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum SchemaView { - SCHEMA_VIEW_UNSPECIFIED = 0, - BASIC = 1, - FULL = 2, -} - -impl ::protobuf::ProtobufEnum for SchemaView { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(SchemaView::SCHEMA_VIEW_UNSPECIFIED), - 1 => ::std::option::Option::Some(SchemaView::BASIC), - 2 => ::std::option::Option::Some(SchemaView::FULL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [SchemaView] = &[ - SchemaView::SCHEMA_VIEW_UNSPECIFIED, - SchemaView::BASIC, - SchemaView::FULL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("SchemaView", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for SchemaView { -} - -impl ::std::default::Default for SchemaView { - fn default() -> Self { - SchemaView::SCHEMA_VIEW_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for SchemaView { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Encoding { - ENCODING_UNSPECIFIED = 0, - JSON = 1, - BINARY = 2, -} - -impl ::protobuf::ProtobufEnum for Encoding { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Encoding::ENCODING_UNSPECIFIED), - 1 => ::std::option::Option::Some(Encoding::JSON), - 2 => ::std::option::Option::Some(Encoding::BINARY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Encoding] = &[ - Encoding::ENCODING_UNSPECIFIED, - Encoding::JSON, - Encoding::BINARY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Encoding", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Encoding { -} - -impl ::std::default::Default for Encoding { - fn default() -> Self { - Encoding::ENCODING_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Encoding { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/pubsub/v1/schema.proto\x12\x10google.pubsub.v1\x1a\x1cgoogl\ - e/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api\ - /field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/pro\ - tobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\x06\ - Schema\x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x121\ - \n\x04type\x18\x02\x20\x01(\x0e2\x1d.google.pubsub.v1.Schema.TypeR\x04ty\ - pe\x12\x1e\n\ndefinition\x18\x03\x20\x01(\tR\ndefinition\x12'\n\x0brevis\ - ion_id\x18\x04\x20\x01(\tR\nrevisionIdB\x06\xe0A\x05\xe0A\x03\x12Q\n\x14\ - revision_create_time\x18\x06\x20\x01(\x0b2\x1a.google.protobuf.Timestamp\ - R\x12revisionCreateTimeB\x03\xe0A\x03\";\n\x04Type\x12\x14\n\x10TYPE_UNS\ - PECIFIED\x10\0\x12\x13\n\x0fPROTOCOL_BUFFER\x10\x01\x12\x08\n\x04AVRO\ - \x10\x02:F\xeaAC\n\x1cpubsub.googleapis.com/Schema\x12#projects/{project\ - }/schemas/{schema}\"\xa7\x01\n\x13CreateSchemaRequest\x12<\n\x06parent\ - \x18\x01\x20\x01(\tR\x06parentB$\xfaA\x1e\x12\x1cpubsub.googleapis.com/S\ - chema\xe0A\x02\x125\n\x06schema\x18\x02\x20\x01(\x0b2\x18.google.pubsub.\ - v1.SchemaR\x06schemaB\x03\xe0A\x02\x12\x1b\n\tschema_id\x18\x03\x20\x01(\ - \tR\x08schemaId\"~\n\x10GetSchemaRequest\x128\n\x04name\x18\x01\x20\x01(\ - \tR\x04nameB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\x120\n\ - \x04view\x18\x02\x20\x01(\x0e2\x1c.google.pubsub.v1.SchemaViewR\x04view\ - \"\xcf\x01\n\x12ListSchemasRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\ - \x02\x120\n\x04view\x18\x02\x20\x01(\x0e2\x1c.google.pubsub.v1.SchemaVie\ - wR\x04view\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\ - \x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"q\n\x13ListSchemasRes\ - ponse\x122\n\x07schemas\x18\x01\x20\x03(\x0b2\x18.google.pubsub.v1.Schem\ - aR\x07schemas\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageTok\ - en\"\xc4\x01\n\x1aListSchemaRevisionsRequest\x128\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\ - \x120\n\x04view\x18\x02\x20\x01(\x0e2\x1c.google.pubsub.v1.SchemaViewR\ - \x04view\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\x1d\ - \n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"y\n\x1bListSchemaRevision\ - sResponse\x122\n\x07schemas\x18\x01\x20\x03(\x0b2\x18.google.pubsub.v1.S\ - chemaR\x07schemas\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPag\ - eToken\"\x86\x01\n\x13CommitSchemaRequest\x128\n\x04name\x18\x01\x20\x01\ - (\tR\x04nameB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\x125\ - \n\x06schema\x18\x02\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaR\x06schem\ - aB\x03\xe0A\x02\"w\n\x15RollbackSchemaRequest\x128\n\x04name\x18\x01\x20\ - \x01(\tR\x04nameB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\ - \x12$\n\x0brevision_id\x18\x02\x20\x01(\tR\nrevisionIdB\x03\xe0A\x02\"\ - \x7f\n\x1bDeleteSchemaRevisionRequest\x128\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB$\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\x12&\n\ - \x0brevision_id\x18\x02\x20\x01(\tR\nrevisionIdB\x05\x18\x01\xe0A\x01\"O\ - \n\x13DeleteSchemaRequest\x128\n\x04name\x18\x01\x20\x01(\tR\x04nameB$\ - \xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\xe0A\x02\"\x9b\x01\n\x15Vali\ - dateSchemaRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\ - \n+cloudresourcemanager.googleapis.com/Project\xe0A\x02\x125\n\x06schema\ - \x18\x02\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaR\x06schemaB\x03\xe0A\ - \x02\"\x18\n\x16ValidateSchemaResponse\"\xb3\x02\n\x16ValidateMessageReq\ - uest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresou\ - rcemanager.googleapis.com/Project\xe0A\x02\x127\n\x04name\x18\x02\x20\ - \x01(\tH\0R\x04nameB!\xfaA\x1e\n\x1cpubsub.googleapis.com/Schema\x122\n\ - \x06schema\x18\x03\x20\x01(\x0b2\x18.google.pubsub.v1.SchemaH\0R\x06sche\ - ma\x12\x18\n\x07message\x18\x04\x20\x01(\x0cR\x07message\x126\n\x08encod\ - ing\x18\x05\x20\x01(\x0e2\x1a.google.pubsub.v1.EncodingR\x08encodingB\r\ - \n\x0bschema_spec\"\x19\n\x17ValidateMessageResponse*>\n\nSchemaView\x12\ - \x1b\n\x17SCHEMA_VIEW_UNSPECIFIED\x10\0\x12\t\n\x05BASIC\x10\x01\x12\x08\ - \n\x04FULL\x10\x02*:\n\x08Encoding\x12\x18\n\x14ENCODING_UNSPECIFIED\x10\ - \0\x12\x08\n\x04JSON\x10\x01\x12\n\n\x06BINARY\x10\x022\x88\r\n\rSchemaS\ - ervice\x12\x9a\x01\n\x0cCreateSchema\x12%.google.pubsub.v1.CreateSchemaR\ - equest\x1a\x18.google.pubsub.v1.Schema\"I\x82\xd3\xe4\x93\x02)\"\x1f/v1/\ - {parent=projects/*}/schemas:\x06schema\xdaA\x17parent,schema,schema_id\ - \x12y\n\tGetSchema\x12\".google.pubsub.v1.GetSchemaRequest\x1a\x18.googl\ - e.pubsub.v1.Schema\".\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=projects/*/s\ - chemas/*}\xdaA\x04name\x12\x8c\x01\n\x0bListSchemas\x12$.google.pubsub.v\ - 1.ListSchemasRequest\x1a%.google.pubsub.v1.ListSchemasResponse\"0\x82\ - \xd3\xe4\x93\x02!\x12\x1f/v1/{parent=projects/*}/schemas\xdaA\x06parent\ - \x12\xb0\x01\n\x13ListSchemaRevisions\x12,.google.pubsub.v1.ListSchemaRe\ - visionsRequest\x1a-.google.pubsub.v1.ListSchemaRevisionsResponse\"<\x82\ - \xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/schemas/*}:listRevisions\xdaA\ - \x04name\x12\x90\x01\n\x0cCommitSchema\x12%.google.pubsub.v1.CommitSchem\ - aRequest\x1a\x18.google.pubsub.v1.Schema\"?\x82\xd3\xe4\x93\x02+\"&/v1/{\ - name=projects/*/schemas/*}:commit:\x01*\xdaA\x0bname,schema\x12\x9b\x01\ - \n\x0eRollbackSchema\x12'.google.pubsub.v1.RollbackSchemaRequest\x1a\x18\ - .google.pubsub.v1.Schema\"F\x82\xd3\xe4\x93\x02-\"(/v1/{name=projects/*/\ - schemas/*}:rollback:\x01*\xdaA\x10name,revision_id\x12\xaa\x01\n\x14Dele\ - teSchemaRevision\x12-.google.pubsub.v1.DeleteSchemaRevisionRequest\x1a\ - \x18.google.pubsub.v1.Schema\"I\x82\xd3\xe4\x93\x020*./v1/{name=projects\ - /*/schemas/*}:deleteRevision\xdaA\x10name,revision_id\x12}\n\x0cDeleteSc\ - hema\x12%.google.pubsub.v1.DeleteSchemaRequest\x1a\x16.google.protobuf.E\ - mpty\".\x82\xd3\xe4\x93\x02!*\x1f/v1/{name=projects/*/schemas/*}\xdaA\ - \x04name\x12\xa8\x01\n\x0eValidateSchema\x12'.google.pubsub.v1.ValidateS\ - chemaRequest\x1a(.google.pubsub.v1.ValidateSchemaResponse\"C\x82\xd3\xe4\ - \x93\x02-\"(/v1/{parent=projects/*}/schemas:validate:\x01*\xdaA\rparent,\ - schema\x12\xa2\x01\n\x0fValidateMessage\x12(.google.pubsub.v1.ValidateMe\ - ssageRequest\x1a).google.pubsub.v1.ValidateMessageResponse\":\x82\xd3\ - \xe4\x93\x024\"//v1/{parent=projects/*}/schemas:validateMessage:\x01*\ - \x1ap\xd2AUhttps://www.googleapis.com/auth/cloud-platform,https://www.go\ - ogleapis.com/auth/pubsub\xcaA\x15pubsub.googleapis.comB\xaa\x01\n\x14com\ - .google.pubsub.v1B\x0bSchemaProtoP\x01Z2cloud.google.com/go/pubsub/apiv1\ - /pubsubpb;pubsubpb\xf8\x01\x01\xaa\x02\x16Google.Cloud.PubSub.V1\xca\x02\ - \x16Google\\Cloud\\PubSub\\V1\xea\x02\x19Google::Cloud::PubSub::V1J\xf8X\ - \n\x07\x12\x05\x0e\0\x99\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202023\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x19\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\ - \x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\ - \x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\0%\n\t\n\x02\x03\x05\x12\x03\ - \x17\0)\n\x08\n\x01\x08\x12\x03\x19\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x19\ - \0\x1f\n\x08\n\x01\x08\x12\x03\x1a\03\n\t\n\x02\x08%\x12\x03\x1a\03\n\ - \x08\n\x01\x08\x12\x03\x1b\0I\n\t\n\x02\x08\x0b\x12\x03\x1b\0I\n\x08\n\ - \x01\x08\x12\x03\x1c\0\"\n\t\n\x02\x08\n\x12\x03\x1c\0\"\n\x08\n\x01\x08\ - \x12\x03\x1d\0,\n\t\n\x02\x08\x08\x12\x03\x1d\0,\n\x08\n\x01\x08\x12\x03\ - \x1e\0-\n\t\n\x02\x08\x01\x12\x03\x1e\0-\n\x08\n\x01\x08\x12\x03\x1f\03\ - \n\t\n\x02\x08)\x12\x03\x1f\03\n\x08\n\x01\x08\x12\x03\x20\02\n\t\n\x02\ - \x08-\x12\x03\x20\02\n:\n\x02\x06\0\x12\x04#\0~\x01\x1a.\x20Service\x20f\ - or\x20doing\x20schema-related\x20operations.\n\n\n\n\x03\x06\0\x01\x12\ - \x03#\x08\x15\n\n\n\x03\x06\0\x03\x12\x03$\x02=\n\x0c\n\x05\x06\0\x03\ - \x99\x08\x12\x03$\x02=\n\x0b\n\x03\x06\0\x03\x12\x04%\x02'/\n\r\n\x05\ - \x06\0\x03\x9a\x08\x12\x04%\x02'/\n!\n\x04\x06\0\x02\0\x12\x04*\x020\x03\ - \x1a\x13\x20Creates\x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\ - \x03*\x06\x12\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03*\x13&\n\x0c\n\x05\x06\ - \0\x02\0\x03\x12\x03*17\n\r\n\x05\x06\0\x02\0\x04\x12\x04+\x04.\x06\n\ - \x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04+\x04.\x06\n\x0c\n\x05\x06\ - \0\x02\0\x04\x12\x03/\x04E\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03\ - /\x04E\n\x1e\n\x04\x06\0\x02\x01\x12\x043\x028\x03\x1a\x10\x20Gets\x20a\ - \x20schema.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x033\x06\x0f\n\x0c\n\x05\ - \x06\0\x02\x01\x02\x12\x033\x10\x20\n\x0c\n\x05\x06\0\x02\x01\x03\x12\ - \x033+1\n\r\n\x05\x06\0\x02\x01\x04\x12\x044\x046\x06\n\x11\n\t\x06\0\ - \x02\x01\x04\xb0\xca\xbc\"\x12\x044\x046\x06\n\x0c\n\x05\x06\0\x02\x01\ - \x04\x12\x037\x042\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x037\x042\ - \n+\n\x04\x06\0\x02\x02\x12\x04;\x02@\x03\x1a\x1d\x20Lists\x20schemas\ - \x20in\x20a\x20project.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03;\x06\x11\ - \n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03;\x12$\n\x0c\n\x05\x06\0\x02\x02\ - \x03\x12\x03;/B\n\r\n\x05\x06\0\x02\x02\x04\x12\x04<\x04>\x06\n\x11\n\t\ - \x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04<\x04>\x06\n\x0c\n\x05\x06\0\x02\ - \x02\x04\x12\x03?\x044\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03?\ - \x044\n@\n\x04\x06\0\x02\x03\x12\x04C\x02I\x03\x1a2\x20Lists\x20all\x20s\ - chema\x20revisions\x20for\x20the\x20named\x20schema.\n\n\x0c\n\x05\x06\0\ - \x02\x03\x01\x12\x03C\x06\x19\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03C\x1a\ - 4\n\x0c\n\x05\x06\0\x02\x03\x03\x12\x03D\x0f*\n\r\n\x05\x06\0\x02\x03\ - \x04\x12\x04E\x04G\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04\ - E\x04G\x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03H\x042\n\x0f\n\x08\x06\0\ - \x02\x03\x04\x9b\x08\0\x12\x03H\x042\nD\n\x04\x06\0\x02\x04\x12\x04L\x02\ - R\x03\x1a6\x20Commits\x20a\x20new\x20schema\x20revision\x20to\x20an\x20e\ - xisting\x20schema.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03L\x06\x12\n\ - \x0c\n\x05\x06\0\x02\x04\x02\x12\x03L\x13&\n\x0c\n\x05\x06\0\x02\x04\x03\ - \x12\x03L17\n\r\n\x05\x06\0\x02\x04\x04\x12\x04M\x04P\x06\n\x11\n\t\x06\ - \0\x02\x04\x04\xb0\xca\xbc\"\x12\x04M\x04P\x06\n\x0c\n\x05\x06\0\x02\x04\ - \x04\x12\x03Q\x049\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03Q\x049\ - \nY\n\x04\x06\0\x02\x05\x12\x04U\x02[\x03\x1aK\x20Creates\x20a\x20new\ - \x20schema\x20revision\x20that\x20is\x20a\x20copy\x20of\x20the\x20provid\ - ed\x20revision_id.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03U\x06\x14\n\ - \x0c\n\x05\x06\0\x02\x05\x02\x12\x03U\x15*\n\x0c\n\x05\x06\0\x02\x05\x03\ - \x12\x03U5;\n\r\n\x05\x06\0\x02\x05\x04\x12\x04V\x04Y\x06\n\x11\n\t\x06\ - \0\x02\x05\x04\xb0\xca\xbc\"\x12\x04V\x04Y\x06\n\x0c\n\x05\x06\0\x02\x05\ - \x04\x12\x03Z\x04>\n\x0f\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x03Z\x04>\ - \n3\n\x04\x06\0\x02\x06\x12\x04^\x02c\x03\x1a%\x20Deletes\x20a\x20specif\ - ic\x20schema\x20revision.\n\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03^\x06\ - \x1a\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03^\x1b6\n\x0c\n\x05\x06\0\x02\ - \x06\x03\x12\x03^AG\n\r\n\x05\x06\0\x02\x06\x04\x12\x04_\x04a\x06\n\x11\ - \n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x04_\x04a\x06\n\x0c\n\x05\x06\0\ - \x02\x06\x04\x12\x03b\x04>\n\x0f\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\ - \x03b\x04>\n!\n\x04\x06\0\x02\x07\x12\x04f\x02k\x03\x1a\x13\x20Deletes\ - \x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\x07\x01\x12\x03f\x06\x12\n\x0c\ - \n\x05\x06\0\x02\x07\x02\x12\x03f\x13&\n\x0c\n\x05\x06\0\x02\x07\x03\x12\ - \x03f1F\n\r\n\x05\x06\0\x02\x07\x04\x12\x04g\x04i\x06\n\x11\n\t\x06\0\ - \x02\x07\x04\xb0\xca\xbc\"\x12\x04g\x04i\x06\n\x0c\n\x05\x06\0\x02\x07\ - \x04\x12\x03j\x042\n\x0f\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x03j\x042\ - \n#\n\x04\x06\0\x02\x08\x12\x04n\x02t\x03\x1a\x15\x20Validates\x20a\x20s\ - chema.\n\n\x0c\n\x05\x06\0\x02\x08\x01\x12\x03n\x06\x14\n\x0c\n\x05\x06\ - \0\x02\x08\x02\x12\x03n\x15*\n\x0c\n\x05\x06\0\x02\x08\x03\x12\x03n5K\n\ - \r\n\x05\x06\0\x02\x08\x04\x12\x04o\x04r\x06\n\x11\n\t\x06\0\x02\x08\x04\ - \xb0\xca\xbc\"\x12\x04o\x04r\x06\n\x0c\n\x05\x06\0\x02\x08\x04\x12\x03s\ - \x04;\n\x0f\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x03s\x04;\n5\n\x04\x06\ - \0\x02\t\x12\x04w\x02}\x03\x1a'\x20Validates\x20a\x20message\x20against\ - \x20a\x20schema.\n\n\x0c\n\x05\x06\0\x02\t\x01\x12\x03w\x06\x15\n\x0c\n\ - \x05\x06\0\x02\t\x02\x12\x03w\x16,\n\x0c\n\x05\x06\0\x02\t\x03\x12\x03x\ - \x0f&\n\r\n\x05\x06\0\x02\t\x04\x12\x04y\x04|\x06\n\x11\n\t\x06\0\x02\t\ - \x04\xb0\xca\xbc\"\x12\x04y\x04|\x06\n\"\n\x02\x04\0\x12\x06\x81\x01\0\ - \xa8\x01\x01\x1a\x14\x20A\x20schema\x20resource.\n\n\x0b\n\x03\x04\0\x01\ - \x12\x04\x81\x01\x08\x0e\n\r\n\x03\x04\0\x07\x12\x06\x82\x01\x02\x85\x01\ - \x04\n\x0f\n\x05\x04\0\x07\x9d\x08\x12\x06\x82\x01\x02\x85\x01\x04\n3\n\ - \x04\x04\0\x04\0\x12\x06\x88\x01\x02\x91\x01\x03\x1a#\x20Possible\x20sch\ - ema\x20definition\x20types.\n\n\r\n\x05\x04\0\x04\0\x01\x12\x04\x88\x01\ - \x07\x0b\n6\n\x06\x04\0\x04\0\x02\0\x12\x04\x8a\x01\x04\x19\x1a&\x20Defa\ - ult\x20value.\x20This\x20value\x20is\x20unused.\n\n\x0f\n\x07\x04\0\x04\ - \0\x02\0\x01\x12\x04\x8a\x01\x04\x14\n\x0f\n\x07\x04\0\x04\0\x02\0\x02\ - \x12\x04\x8a\x01\x17\x18\n6\n\x06\x04\0\x04\0\x02\x01\x12\x04\x8d\x01\ - \x04\x18\x1a&\x20A\x20Protocol\x20Buffer\x20schema\x20definition.\n\n\ - \x0f\n\x07\x04\0\x04\0\x02\x01\x01\x12\x04\x8d\x01\x04\x13\n\x0f\n\x07\ - \x04\0\x04\0\x02\x01\x02\x12\x04\x8d\x01\x16\x17\n,\n\x06\x04\0\x04\0\ - \x02\x02\x12\x04\x90\x01\x04\r\x1a\x1c\x20An\x20Avro\x20schema\x20defini\ - tion.\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\x12\x04\x90\x01\x04\x08\n\ - \x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\x90\x01\x0b\x0c\n_\n\x04\x04\ - \0\x02\0\x12\x04\x95\x01\x02;\x1aQ\x20Required.\x20Name\x20of\x20the\x20\ - schema.\n\x20Format\x20is\x20`projects/{project}/schemas/{schema}`.\n\n\ - \r\n\x05\x04\0\x02\0\x05\x12\x04\x95\x01\x02\x08\n\r\n\x05\x04\0\x02\0\ - \x01\x12\x04\x95\x01\t\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x95\x01\x10\ - \x11\n\r\n\x05\x04\0\x02\0\x08\x12\x04\x95\x01\x12:\n\x10\n\x08\x04\0\ - \x02\0\x08\x9c\x08\0\x12\x04\x95\x01\x139\n2\n\x04\x04\0\x02\x01\x12\x04\ - \x98\x01\x02\x10\x1a$\x20The\x20type\x20of\x20the\x20schema\x20definitio\ - n.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x98\x01\x02\x06\n\r\n\x05\x04\0\ - \x02\x01\x01\x12\x04\x98\x01\x07\x0b\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\ - \x98\x01\x0e\x0f\n\xbf\x01\n\x04\x04\0\x02\x02\x12\x04\x9d\x01\x02\x18\ - \x1a\xb0\x01\x20The\x20definition\x20of\x20the\x20schema.\x20This\x20sho\ - uld\x20contain\x20a\x20string\x20representing\n\x20the\x20full\x20defini\ - tion\x20of\x20the\x20schema\x20that\x20is\x20a\x20valid\x20schema\x20def\ - inition\x20of\n\x20the\x20type\x20specified\x20in\x20`type`.\n\n\r\n\x05\ - \x04\0\x02\x02\x05\x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\x01\ - \x12\x04\x9d\x01\t\x13\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x9d\x01\x16\ - \x17\nH\n\x04\x04\0\x02\x03\x12\x06\xa0\x01\x02\xa3\x01\x04\x1a8\x20Outp\ - ut\x20only.\x20Immutable.\x20The\x20revision\x20ID\x20of\x20the\x20schem\ - a.\n\n\r\n\x05\x04\0\x02\x03\x05\x12\x04\xa0\x01\x02\x08\n\r\n\x05\x04\0\ - \x02\x03\x01\x12\x04\xa0\x01\t\x14\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\ - \xa0\x01\x17\x18\n\x0f\n\x05\x04\0\x02\x03\x08\x12\x06\xa0\x01\x19\xa3\ - \x01\x03\n\x10\n\x08\x04\0\x02\x03\x08\x9c\x08\0\x12\x04\xa1\x01\x04+\n\ - \x10\n\x08\x04\0\x02\x03\x08\x9c\x08\x01\x12\x04\xa2\x01\x04-\nK\n\x04\ - \x04\0\x02\x04\x12\x06\xa6\x01\x02\xa7\x012\x1a;\x20Output\x20only.\x20T\ - he\x20timestamp\x20that\x20the\x20revision\x20was\x20created.\n\n\r\n\ - \x05\x04\0\x02\x04\x06\x12\x04\xa6\x01\x02\x1b\n\r\n\x05\x04\0\x02\x04\ - \x01\x12\x04\xa6\x01\x1c0\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xa6\x0134\ - \n\r\n\x05\x04\0\x02\x04\x08\x12\x04\xa7\x01\x061\n\x10\n\x08\x04\0\x02\ - \x04\x08\x9c\x08\0\x12\x04\xa7\x01\x070\nY\n\x02\x05\0\x12\x06\xab\x01\0\ - \xb5\x01\x01\x1aK\x20View\x20of\x20Schema\x20object\x20fields\x20to\x20b\ - e\x20returned\x20by\x20GetSchema\x20and\x20ListSchemas.\n\n\x0b\n\x03\ - \x05\0\x01\x12\x04\xab\x01\x05\x0f\nS\n\x04\x05\0\x02\0\x12\x04\xae\x01\ - \x02\x1e\x1aE\x20The\x20default\x20/\x20unset\x20value.\n\x20The\x20API\ - \x20will\x20default\x20to\x20the\x20BASIC\x20view.\n\n\r\n\x05\x05\0\x02\ - \0\x01\x12\x04\xae\x01\x02\x19\n\r\n\x05\x05\0\x02\0\x02\x12\x04\xae\x01\ - \x1c\x1d\nP\n\x04\x05\0\x02\x01\x12\x04\xb1\x01\x02\x0c\x1aB\x20Include\ - \x20the\x20name\x20and\x20type\x20of\x20the\x20schema,\x20but\x20not\x20\ - the\x20definition.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\xb1\x01\x02\x07\ - \n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xb1\x01\n\x0b\n1\n\x04\x05\0\x02\ - \x02\x12\x04\xb4\x01\x02\x0b\x1a#\x20Include\x20all\x20Schema\x20object\ - \x20fields.\n\n\r\n\x05\x05\0\x02\x02\x01\x12\x04\xb4\x01\x02\x06\n\r\n\ - \x05\x05\0\x02\x02\x02\x12\x04\xb4\x01\t\n\n4\n\x02\x04\x01\x12\x06\xb8\ - \x01\0\xcf\x01\x01\x1a&\x20Request\x20for\x20the\x20CreateSchema\x20meth\ - od.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xb8\x01\x08\x1b\nv\n\x04\x04\x01\ - \x02\0\x12\x06\xbb\x01\x02\xc0\x01\x04\x1af\x20Required.\x20The\x20name\ - \x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20the\x20schema\ - .\n\x20Format\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\x04\x01\x02\ - \0\x05\x12\x04\xbb\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xbb\ - \x01\t\x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbb\x01\x12\x13\n\x0f\n\ - \x05\x04\x01\x02\0\x08\x12\x06\xbb\x01\x14\xc0\x01\x03\n\x10\n\x08\x04\ - \x01\x02\0\x08\x9c\x08\0\x12\x04\xbc\x01\x04*\n\x11\n\x07\x04\x01\x02\0\ - \x08\x9f\x08\x12\x06\xbd\x01\x04\xbf\x01\x05\n\xd3\x01\n\x04\x04\x01\x02\ - \x01\x12\x04\xc7\x01\x02=\x1a\xc4\x01\x20Required.\x20The\x20schema\x20o\ - bject\x20to\x20create.\n\n\x20This\x20schema's\x20`name`\x20parameter\ - \x20is\x20ignored.\x20The\x20schema\x20object\x20returned\n\x20by\x20Cre\ - ateSchema\x20will\x20have\x20a\x20`name`\x20made\x20using\x20the\x20give\ - n\x20`parent`\x20and\n\x20`schema_id`.\n\n\r\n\x05\x04\x01\x02\x01\x06\ - \x12\x04\xc7\x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xc7\x01\t\ - \x0f\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xc7\x01\x12\x13\n\r\n\x05\x04\ - \x01\x02\x01\x08\x12\x04\xc7\x01\x14<\n\x10\n\x08\x04\x01\x02\x01\x08\ - \x9c\x08\0\x12\x04\xc7\x01\x15;\n\xd4\x01\n\x04\x04\x01\x02\x02\x12\x04\ - \xce\x01\x02\x17\x1a\xc5\x01\x20The\x20ID\x20to\x20use\x20for\x20the\x20\ - schema,\x20which\x20will\x20become\x20the\x20final\x20component\x20of\n\ - \x20the\x20schema's\x20resource\x20name.\n\n\x20See\x20https://cloud.goo\ - gle.com/pubsub/docs/admin#resource_names\x20for\x20resource\n\x20name\ - \x20constraints.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xce\x01\x02\x08\ - \n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xce\x01\t\x12\n\r\n\x05\x04\x01\ - \x02\x02\x03\x12\x04\xce\x01\x15\x16\n1\n\x02\x04\x02\x12\x06\xd2\x01\0\ - \xdd\x01\x01\x1a#\x20Request\x20for\x20the\x20GetSchema\x20method.\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xd2\x01\x08\x18\nl\n\x04\x04\x02\x02\0\ - \x12\x06\xd5\x01\x02\xd8\x01\x04\x1a\\\x20Required.\x20The\x20name\x20of\ - \x20the\x20schema\x20to\x20get.\n\x20Format\x20is\x20`projects/{project}\ - /schemas/{schema}`.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xd5\x01\x02\ - \x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xd5\x01\t\r\n\r\n\x05\x04\x02\ - \x02\0\x03\x12\x04\xd5\x01\x10\x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\ - \xd5\x01\x12\xd8\x01\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\ - \xd6\x01\x04*\n\x0f\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x04\xd7\x01\x04N\ - \n\xa0\x01\n\x04\x04\x02\x02\x01\x12\x04\xdc\x01\x02\x16\x1a\x91\x01\x20\ - The\x20set\x20of\x20fields\x20to\x20return\x20in\x20the\x20response.\x20\ - If\x20not\x20set,\x20returns\x20a\x20Schema\n\x20with\x20all\x20fields\ - \x20filled\x20out.\x20Set\x20to\x20`BASIC`\x20to\x20omit\x20the\x20`defi\ - nition`.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xdc\x01\x02\x0c\n\r\n\ - \x05\x04\x02\x02\x01\x01\x12\x04\xdc\x01\r\x11\n\r\n\x05\x04\x02\x02\x01\ - \x03\x12\x04\xdc\x01\x14\x15\n5\n\x02\x04\x03\x12\x06\xe0\x01\0\xf6\x01\ - \x01\x1a'\x20Request\x20for\x20the\x20`ListSchemas`\x20method.\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\xe0\x01\x08\x1a\nq\n\x04\x04\x03\x02\0\x12\x06\ - \xe3\x01\x02\xe8\x01\x04\x1aa\x20Required.\x20The\x20name\x20of\x20the\ - \x20project\x20in\x20which\x20to\x20list\x20schemas.\n\x20Format\x20is\ - \x20`projects/{project-id}`.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xe3\ - \x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xe3\x01\t\x0f\n\r\n\x05\ - \x04\x03\x02\0\x03\x12\x04\xe3\x01\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\ - \x12\x06\xe3\x01\x14\xe8\x01\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\ - \x12\x04\xe4\x01\x04*\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\xe5\ - \x01\x04\xe7\x01\x05\n\xb6\x01\n\x04\x04\x03\x02\x01\x12\x04\xed\x01\x02\ - \x16\x1a\xa7\x01\x20The\x20set\x20of\x20Schema\x20fields\x20to\x20return\ - \x20in\x20the\x20response.\x20If\x20not\x20set,\x20returns\n\x20Schemas\ - \x20with\x20`name`\x20and\x20`type`,\x20but\x20not\x20`definition`.\x20S\ - et\x20to\x20`FULL`\x20to\n\x20retrieve\x20all\x20fields.\n\n\r\n\x05\x04\ - \x03\x02\x01\x06\x12\x04\xed\x01\x02\x0c\n\r\n\x05\x04\x03\x02\x01\x01\ - \x12\x04\xed\x01\r\x11\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xed\x01\x14\ - \x15\n4\n\x04\x04\x03\x02\x02\x12\x04\xf0\x01\x02\x16\x1a&\x20Maximum\ - \x20number\x20of\x20schemas\x20to\x20return.\n\n\r\n\x05\x04\x03\x02\x02\ - \x05\x12\x04\xf0\x01\x02\x07\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xf0\ - \x01\x08\x11\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xf0\x01\x14\x15\n\xc6\ - \x01\n\x04\x04\x03\x02\x03\x12\x04\xf5\x01\x02\x18\x1a\xb7\x01\x20The\ - \x20value\x20returned\x20by\x20the\x20last\x20`ListSchemasResponse`;\x20\ - indicates\x20that\n\x20this\x20is\x20a\x20continuation\x20of\x20a\x20pri\ - or\x20`ListSchemas`\x20call,\x20and\x20that\x20the\n\x20system\x20should\ - \x20return\x20the\x20next\x20page\x20of\x20data.\n\n\r\n\x05\x04\x03\x02\ - \x03\x05\x12\x04\xf5\x01\x02\x08\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\ - \xf5\x01\t\x13\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xf5\x01\x16\x17\n6\ - \n\x02\x04\x04\x12\x06\xf9\x01\0\x80\x02\x01\x1a(\x20Response\x20for\x20\ - the\x20`ListSchemas`\x20method.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xf9\ - \x01\x08\x1b\n&\n\x04\x04\x04\x02\0\x12\x04\xfb\x01\x02\x1e\x1a\x18\x20T\ - he\x20resulting\x20schemas.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xfb\ - \x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xfb\x01\x0b\x11\n\r\n\x05\ - \x04\x04\x02\0\x01\x12\x04\xfb\x01\x12\x19\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\xfb\x01\x1c\x1d\n\x9b\x01\n\x04\x04\x04\x02\x01\x12\x04\xff\x01\ - \x02\x1d\x1a\x8c\x01\x20If\x20not\x20empty,\x20indicates\x20that\x20ther\ - e\x20may\x20be\x20more\x20schemas\x20that\x20match\x20the\n\x20request;\ - \x20this\x20value\x20should\x20be\x20passed\x20in\x20a\x20new\x20`ListSc\ - hemasRequest`.\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xff\x01\x02\x08\n\ - \r\n\x05\x04\x04\x02\x01\x01\x12\x04\xff\x01\t\x18\n\r\n\x05\x04\x04\x02\ - \x01\x03\x12\x04\xff\x01\x1b\x1c\n=\n\x02\x04\x05\x12\x06\x83\x02\0\x95\ - \x02\x01\x1a/\x20Request\x20for\x20the\x20`ListSchemaRevisions`\x20metho\ - d.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\x83\x02\x08\"\nI\n\x04\x04\x05\x02\ - \0\x12\x06\x85\x02\x02\x88\x02\x04\x1a9\x20Required.\x20The\x20name\x20o\ - f\x20the\x20schema\x20to\x20list\x20revisions\x20for.\n\n\r\n\x05\x04\ - \x05\x02\0\x05\x12\x04\x85\x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\ - \x04\x85\x02\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x85\x02\x10\x11\n\ - \x0f\n\x05\x04\x05\x02\0\x08\x12\x06\x85\x02\x12\x88\x02\x03\n\x10\n\x08\ - \x04\x05\x02\0\x08\x9c\x08\0\x12\x04\x86\x02\x04*\n\x0f\n\x07\x04\x05\ - \x02\0\x08\x9f\x08\x12\x04\x87\x02\x04N\n\xb6\x01\n\x04\x04\x05\x02\x01\ - \x12\x04\x8d\x02\x02\x16\x1a\xa7\x01\x20The\x20set\x20of\x20Schema\x20fi\ - elds\x20to\x20return\x20in\x20the\x20response.\x20If\x20not\x20set,\x20r\ - eturns\n\x20Schemas\x20with\x20`name`\x20and\x20`type`,\x20but\x20not\ - \x20`definition`.\x20Set\x20to\x20`FULL`\x20to\n\x20retrieve\x20all\x20f\ - ields.\n\n\r\n\x05\x04\x05\x02\x01\x06\x12\x04\x8d\x02\x02\x0c\n\r\n\x05\ - \x04\x05\x02\x01\x01\x12\x04\x8d\x02\r\x11\n\r\n\x05\x04\x05\x02\x01\x03\ - \x12\x04\x8d\x02\x14\x15\nC\n\x04\x04\x05\x02\x02\x12\x04\x90\x02\x02\ - \x16\x1a5\x20The\x20maximum\x20number\x20of\x20revisions\x20to\x20return\ - \x20per\x20page.\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\x90\x02\x02\x07\ - \n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\x90\x02\x08\x11\n\r\n\x05\x04\x05\ - \x02\x02\x03\x12\x04\x90\x02\x14\x15\n\x81\x01\n\x04\x04\x05\x02\x03\x12\ - \x04\x94\x02\x02\x18\x1as\x20The\x20page\x20token,\x20received\x20from\ - \x20a\x20previous\x20ListSchemaRevisions\x20call.\n\x20Provide\x20this\ - \x20to\x20retrieve\x20the\x20subsequent\x20page.\n\n\r\n\x05\x04\x05\x02\ - \x03\x05\x12\x04\x94\x02\x02\x08\n\r\n\x05\x04\x05\x02\x03\x01\x12\x04\ - \x94\x02\t\x13\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\x94\x02\x16\x17\n>\ - \n\x02\x04\x06\x12\x06\x98\x02\0\x9f\x02\x01\x1a0\x20Response\x20for\x20\ - the\x20`ListSchemaRevisions`\x20method.\n\n\x0b\n\x03\x04\x06\x01\x12\ - \x04\x98\x02\x08#\n,\n\x04\x04\x06\x02\0\x12\x04\x9a\x02\x02\x1e\x1a\x1e\ - \x20The\x20revisions\x20of\x20the\x20schema.\n\n\r\n\x05\x04\x06\x02\0\ - \x04\x12\x04\x9a\x02\x02\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\x9a\x02\ - \x0b\x11\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x9a\x02\x12\x19\n\r\n\x05\ - \x04\x06\x02\0\x03\x12\x04\x9a\x02\x1c\x1d\n\x8b\x01\n\x04\x04\x06\x02\ - \x01\x12\x04\x9e\x02\x02\x1d\x1a}\x20A\x20token\x20that\x20can\x20be\x20\ - sent\x20as\x20`page_token`\x20to\x20retrieve\x20the\x20next\x20page.\n\ - \x20If\x20this\x20field\x20is\x20empty,\x20there\x20are\x20no\x20subsequ\ - ent\x20pages.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x9e\x02\x02\x08\n\ - \r\n\x05\x04\x06\x02\x01\x01\x12\x04\x9e\x02\t\x18\n\r\n\x05\x04\x06\x02\ - \x01\x03\x12\x04\x9e\x02\x1b\x1c\n0\n\x02\x04\x07\x12\x06\xa2\x02\0\xac\ - \x02\x01\x1a\"\x20Request\x20for\x20CommitSchema\x20method.\n\n\x0b\n\ - \x03\x04\x07\x01\x12\x04\xa2\x02\x08\x1b\nu\n\x04\x04\x07\x02\0\x12\x06\ - \xa5\x02\x02\xa8\x02\x04\x1ae\x20Required.\x20The\x20name\x20of\x20the\ - \x20schema\x20we\x20are\x20revising.\n\x20Format\x20is\x20`projects/{pro\ - ject}/schemas/{schema}`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xa5\x02\ - \x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xa5\x02\t\r\n\r\n\x05\x04\ - \x07\x02\0\x03\x12\x04\xa5\x02\x10\x11\n\x0f\n\x05\x04\x07\x02\0\x08\x12\ - \x06\xa5\x02\x12\xa8\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\ - \x04\xa6\x02\x04*\n\x0f\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x04\xa7\x02\ - \x04N\n8\n\x04\x04\x07\x02\x01\x12\x04\xab\x02\x02=\x1a*\x20Required.\ - \x20The\x20schema\x20revision\x20to\x20commit.\n\n\r\n\x05\x04\x07\x02\ - \x01\x06\x12\x04\xab\x02\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\ - \xab\x02\t\x0f\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xab\x02\x12\x13\n\r\ - \n\x05\x04\x07\x02\x01\x08\x12\x04\xab\x02\x14<\n\x10\n\x08\x04\x07\x02\ - \x01\x08\x9c\x08\0\x12\x04\xab\x02\x15;\n8\n\x02\x04\x08\x12\x06\xaf\x02\ - \0\xbb\x02\x01\x1a*\x20Request\x20for\x20the\x20`RollbackSchema`\x20meth\ - od.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xaf\x02\x08\x1d\nJ\n\x04\x04\x08\ - \x02\0\x12\x06\xb1\x02\x02\xb4\x02\x04\x1a:\x20Required.\x20The\x20schem\ - a\x20being\x20rolled\x20back\x20with\x20revision\x20id.\n\n\r\n\x05\x04\ - \x08\x02\0\x05\x12\x04\xb1\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\ - \x04\xb1\x02\t\r\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xb1\x02\x10\x11\n\ - \x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xb1\x02\x12\xb4\x02\x03\n\x10\n\x08\ - \x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xb2\x02\x04*\n\x0f\n\x07\x04\x08\ - \x02\0\x08\x9f\x08\x12\x04\xb3\x02\x04N\n{\n\x04\x04\x08\x02\x01\x12\x04\ - \xba\x02\x02B\x1am\x20Required.\x20The\x20revision\x20ID\x20to\x20roll\ - \x20back\x20to.\n\x20It\x20must\x20be\x20a\x20revision\x20of\x20the\x20s\ - ame\x20schema.\n\n\x20\x20\x20Example:\x20c7cfa2a8\n\n\r\n\x05\x04\x08\ - \x02\x01\x05\x12\x04\xba\x02\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\ - \x04\xba\x02\t\x14\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xba\x02\x17\x18\ - \n\r\n\x05\x04\x08\x02\x01\x08\x12\x04\xba\x02\x19A\n\x10\n\x08\x04\x08\ - \x02\x01\x08\x9c\x08\0\x12\x04\xba\x02\x1a@\n>\n\x02\x04\t\x12\x06\xbe\ - \x02\0\xcd\x02\x01\x1a0\x20Request\x20for\x20the\x20`DeleteSchemaRevisio\ - n`\x20method.\n\n\x0b\n\x03\x04\t\x01\x12\x04\xbe\x02\x08#\n\xa9\x01\n\ - \x04\x04\t\x02\0\x12\x06\xc3\x02\x02\xc6\x02\x04\x1a\x98\x01\x20Required\ - .\x20The\x20name\x20of\x20the\x20schema\x20revision\x20to\x20be\x20delet\ - ed,\x20with\x20a\x20revision\x20ID\n\x20explicitly\x20included.\n\n\x20E\ - xample:\x20`projects/123/schemas/my-schema@c7cfa2a8`\n\n\r\n\x05\x04\t\ - \x02\0\x05\x12\x04\xc3\x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xc3\ - \x02\t\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xc3\x02\x10\x11\n\x0f\n\x05\ - \x04\t\x02\0\x08\x12\x06\xc3\x02\x12\xc6\x02\x03\n\x10\n\x08\x04\t\x02\0\ - \x08\x9c\x08\0\x12\x04\xc4\x02\x04*\n\x0f\n\x07\x04\t\x02\0\x08\x9f\x08\ - \x12\x04\xc5\x02\x04N\n\xac\x01\n\x04\x04\t\x02\x01\x12\x06\xcb\x02\x02\ - \xcc\x02B\x1a\x9b\x01\x20Optional.\x20This\x20field\x20is\x20deprecated\ - \x20and\x20should\x20not\x20be\x20used\x20for\x20specifying\n\x20the\x20\ - revision\x20ID.\x20The\x20revision\x20ID\x20should\x20be\x20specified\ - \x20via\x20the\x20`name`\n\x20parameter.\n\n\r\n\x05\x04\t\x02\x01\x05\ - \x12\x04\xcb\x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xcb\x02\t\ - \x14\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xcb\x02\x17\x18\n\r\n\x05\x04\t\ - \x02\x01\x08\x12\x04\xcc\x02\x06A\n\x0e\n\x06\x04\t\x02\x01\x08\x03\x12\ - \x04\xcc\x02\x07\x18\n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xcc\ - \x02\x1a@\n6\n\x02\x04\n\x12\x06\xd0\x02\0\xd7\x02\x01\x1a(\x20Request\ - \x20for\x20the\x20`DeleteSchema`\x20method.\n\n\x0b\n\x03\x04\n\x01\x12\ - \x04\xd0\x02\x08\x1b\nk\n\x04\x04\n\x02\0\x12\x06\xd3\x02\x02\xd6\x02\ - \x04\x1a[\x20Required.\x20Name\x20of\x20the\x20schema\x20to\x20delete.\n\ - \x20Format\x20is\x20`projects/{project}/schemas/{schema}`.\n\n\r\n\x05\ - \x04\n\x02\0\x05\x12\x04\xd3\x02\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\ - \x04\xd3\x02\t\r\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xd3\x02\x10\x11\n\x0f\ - \n\x05\x04\n\x02\0\x08\x12\x06\xd3\x02\x12\xd6\x02\x03\n\x10\n\x08\x04\n\ - \x02\0\x08\x9c\x08\0\x12\x04\xd4\x02\x04*\n\x0f\n\x07\x04\n\x02\0\x08\ - \x9f\x08\x12\x04\xd5\x02\x04N\n8\n\x02\x04\x0b\x12\x06\xda\x02\0\xe6\x02\ - \x01\x1a*\x20Request\x20for\x20the\x20`ValidateSchema`\x20method.\n\n\ - \x0b\n\x03\x04\x0b\x01\x12\x04\xda\x02\x08\x1d\nu\n\x04\x04\x0b\x02\0\ - \x12\x06\xdd\x02\x02\xe2\x02\x04\x1ae\x20Required.\x20The\x20name\x20of\ - \x20the\x20project\x20in\x20which\x20to\x20validate\x20schemas.\n\x20For\ - mat\x20is\x20`projects/{project-id}`.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\ - \x04\xdd\x02\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xdd\x02\t\x0f\n\ - \r\n\x05\x04\x0b\x02\0\x03\x12\x04\xdd\x02\x12\x13\n\x0f\n\x05\x04\x0b\ - \x02\0\x08\x12\x06\xdd\x02\x14\xe2\x02\x03\n\x10\n\x08\x04\x0b\x02\0\x08\ - \x9c\x08\0\x12\x04\xde\x02\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\ - \x12\x06\xdf\x02\x04\xe1\x02\x05\n8\n\x04\x04\x0b\x02\x01\x12\x04\xe5\ - \x02\x02=\x1a*\x20Required.\x20The\x20schema\x20object\x20to\x20validate\ - .\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\xe5\x02\x02\x08\n\r\n\x05\x04\ - \x0b\x02\x01\x01\x12\x04\xe5\x02\t\x0f\n\r\n\x05\x04\x0b\x02\x01\x03\x12\ - \x04\xe5\x02\x12\x13\n\r\n\x05\x04\x0b\x02\x01\x08\x12\x04\xe5\x02\x14<\ - \n\x10\n\x08\x04\x0b\x02\x01\x08\x9c\x08\0\x12\x04\xe5\x02\x15;\nG\n\x02\ - \x04\x0c\x12\x04\xea\x02\0!\x1a;\x20Response\x20for\x20the\x20`ValidateS\ - chema`\x20method.\n\x20Empty\x20for\x20now.\n\n\x0b\n\x03\x04\x0c\x01\ - \x12\x04\xea\x02\x08\x1e\n9\n\x02\x04\r\x12\x06\xed\x02\0\x88\x03\x01\ - \x1a+\x20Request\x20for\x20the\x20`ValidateMessage`\x20method.\n\n\x0b\n\ - \x03\x04\r\x01\x12\x04\xed\x02\x08\x1e\nu\n\x04\x04\r\x02\0\x12\x06\xf0\ - \x02\x02\xf5\x02\x04\x1ae\x20Required.\x20The\x20name\x20of\x20the\x20pr\ - oject\x20in\x20which\x20to\x20validate\x20schemas.\n\x20Format\x20is\x20\ - `projects/{project-id}`.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xf0\x02\x02\ - \x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xf0\x02\t\x0f\n\r\n\x05\x04\r\x02\ - \0\x03\x12\x04\xf0\x02\x12\x13\n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xf0\ - \x02\x14\xf5\x02\x03\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xf1\ - \x02\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\x06\xf2\x02\x04\xf4\ - \x02\x05\n\x0e\n\x04\x04\r\x08\0\x12\x06\xf7\x02\x02\x81\x03\x03\n\r\n\ - \x05\x04\r\x08\0\x01\x12\x04\xf7\x02\x08\x13\nr\n\x04\x04\r\x02\x01\x12\ - \x06\xfb\x02\x04\xfd\x02\x06\x1ab\x20Name\x20of\x20the\x20schema\x20agai\ - nst\x20which\x20to\x20validate.\n\n\x20Format\x20is\x20`projects/{projec\ - t}/schemas/{schema}`.\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xfb\x02\x04\ - \n\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xfb\x02\x0b\x0f\n\r\n\x05\x04\r\ - \x02\x01\x03\x12\x04\xfb\x02\x12\x13\n\x0f\n\x05\x04\r\x02\x01\x08\x12\ - \x06\xfb\x02\x14\xfd\x02\x05\n\x0f\n\x07\x04\r\x02\x01\x08\x9f\x08\x12\ - \x04\xfc\x02\x06P\n7\n\x04\x04\r\x02\x02\x12\x04\x80\x03\x04\x16\x1a)\ - \x20Ad-hoc\x20schema\x20against\x20which\x20to\x20validate\n\n\r\n\x05\ - \x04\r\x02\x02\x06\x12\x04\x80\x03\x04\n\n\r\n\x05\x04\r\x02\x02\x01\x12\ - \x04\x80\x03\x0b\x11\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\x80\x03\x14\x15\ - \nG\n\x04\x04\r\x02\x03\x12\x04\x84\x03\x02\x14\x1a9\x20Message\x20to\ - \x20validate\x20against\x20the\x20provided\x20`schema_spec`.\n\n\r\n\x05\ - \x04\r\x02\x03\x05\x12\x04\x84\x03\x02\x07\n\r\n\x05\x04\r\x02\x03\x01\ - \x12\x04\x84\x03\x08\x0f\n\r\n\x05\x04\r\x02\x03\x03\x12\x04\x84\x03\x12\ - \x13\n2\n\x04\x04\r\x02\x04\x12\x04\x87\x03\x02\x18\x1a$\x20The\x20encod\ - ing\x20expected\x20for\x20messages\n\n\r\n\x05\x04\r\x02\x04\x06\x12\x04\ - \x87\x03\x02\n\n\r\n\x05\x04\r\x02\x04\x01\x12\x04\x87\x03\x0b\x13\n\r\n\ - \x05\x04\r\x02\x04\x03\x12\x04\x87\x03\x16\x17\nH\n\x02\x04\x0e\x12\x04\ - \x8c\x03\0\"\x1a<\x20Response\x20for\x20the\x20`ValidateMessage`\x20meth\ - od.\n\x20Empty\x20for\x20now.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x8c\x03\ - \x08\x1f\n5\n\x02\x05\x01\x12\x06\x8f\x03\0\x99\x03\x01\x1a'\x20Possible\ - \x20encoding\x20types\x20for\x20messages.\n\n\x0b\n\x03\x05\x01\x01\x12\ - \x04\x8f\x03\x05\r\n\x1b\n\x04\x05\x01\x02\0\x12\x04\x91\x03\x02\x1b\x1a\ - \r\x20Unspecified\n\n\r\n\x05\x05\x01\x02\0\x01\x12\x04\x91\x03\x02\x16\ - \n\r\n\x05\x05\x01\x02\0\x02\x12\x04\x91\x03\x19\x1a\n\x1d\n\x04\x05\x01\ - \x02\x01\x12\x04\x94\x03\x02\x0b\x1a\x0f\x20JSON\x20encoding\n\n\r\n\x05\ - \x05\x01\x02\x01\x01\x12\x04\x94\x03\x02\x06\n\r\n\x05\x05\x01\x02\x01\ - \x02\x12\x04\x94\x03\t\n\n}\n\x04\x05\x01\x02\x02\x12\x04\x98\x03\x02\r\ - \x1ao\x20Binary\x20encoding,\x20as\x20defined\x20by\x20the\x20schema\x20\ - type.\x20For\x20some\x20schema\x20types,\n\x20binary\x20encoding\x20may\ - \x20not\x20be\x20available.\n\n\r\n\x05\x05\x01\x02\x02\x01\x12\x04\x98\ - \x03\x02\x08\n\r\n\x05\x05\x01\x02\x02\x02\x12\x04\x98\x03\x0b\x0cb\x06p\ - roto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/pubsub/v1/schema_grpc.rs b/googleapis-raw/src/pubsub/v1/schema_grpc.rs deleted file mode 100644 index a6c75b3..0000000 --- a/googleapis-raw/src/pubsub/v1/schema_grpc.rs +++ /dev/null @@ -1,341 +0,0 @@ -// This file is generated. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] - -const METHOD_SCHEMA_SERVICE_CREATE_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/CreateSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_GET_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/GetSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_LIST_SCHEMAS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/ListSchemas", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_LIST_SCHEMA_REVISIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/ListSchemaRevisions", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_COMMIT_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/CommitSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_ROLLBACK_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/RollbackSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_DELETE_SCHEMA_REVISION: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/DeleteSchemaRevision", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_DELETE_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/DeleteSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_VALIDATE_SCHEMA: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/ValidateSchema", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_SCHEMA_SERVICE_VALIDATE_MESSAGE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.pubsub.v1.SchemaService/ValidateMessage", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -#[derive(Clone)] -pub struct SchemaServiceClient { - pub client: ::grpcio::Client, -} - -impl SchemaServiceClient { - pub fn new(channel: ::grpcio::Channel) -> Self { - SchemaServiceClient { - client: ::grpcio::Client::new(channel), - } - } - - pub fn create_schema_opt(&self, req: &super::schema::CreateSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_CREATE_SCHEMA, req, opt) - } - - pub fn create_schema(&self, req: &super::schema::CreateSchemaRequest) -> ::grpcio::Result { - self.create_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_schema_async_opt(&self, req: &super::schema::CreateSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_CREATE_SCHEMA, req, opt) - } - - pub fn create_schema_async(&self, req: &super::schema::CreateSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_schema_opt(&self, req: &super::schema::GetSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_GET_SCHEMA, req, opt) - } - - pub fn get_schema(&self, req: &super::schema::GetSchemaRequest) -> ::grpcio::Result { - self.get_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_schema_async_opt(&self, req: &super::schema::GetSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_GET_SCHEMA, req, opt) - } - - pub fn get_schema_async(&self, req: &super::schema::GetSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_schemas_opt(&self, req: &super::schema::ListSchemasRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_LIST_SCHEMAS, req, opt) - } - - pub fn list_schemas(&self, req: &super::schema::ListSchemasRequest) -> ::grpcio::Result { - self.list_schemas_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_schemas_async_opt(&self, req: &super::schema::ListSchemasRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_LIST_SCHEMAS, req, opt) - } - - pub fn list_schemas_async(&self, req: &super::schema::ListSchemasRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_schemas_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_schema_revisions_opt(&self, req: &super::schema::ListSchemaRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_LIST_SCHEMA_REVISIONS, req, opt) - } - - pub fn list_schema_revisions(&self, req: &super::schema::ListSchemaRevisionsRequest) -> ::grpcio::Result { - self.list_schema_revisions_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_schema_revisions_async_opt(&self, req: &super::schema::ListSchemaRevisionsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_LIST_SCHEMA_REVISIONS, req, opt) - } - - pub fn list_schema_revisions_async(&self, req: &super::schema::ListSchemaRevisionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_schema_revisions_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn commit_schema_opt(&self, req: &super::schema::CommitSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_COMMIT_SCHEMA, req, opt) - } - - pub fn commit_schema(&self, req: &super::schema::CommitSchemaRequest) -> ::grpcio::Result { - self.commit_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn commit_schema_async_opt(&self, req: &super::schema::CommitSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_COMMIT_SCHEMA, req, opt) - } - - pub fn commit_schema_async(&self, req: &super::schema::CommitSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.commit_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rollback_schema_opt(&self, req: &super::schema::RollbackSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_ROLLBACK_SCHEMA, req, opt) - } - - pub fn rollback_schema(&self, req: &super::schema::RollbackSchemaRequest) -> ::grpcio::Result { - self.rollback_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn rollback_schema_async_opt(&self, req: &super::schema::RollbackSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_ROLLBACK_SCHEMA, req, opt) - } - - pub fn rollback_schema_async(&self, req: &super::schema::RollbackSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.rollback_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_schema_revision_opt(&self, req: &super::schema::DeleteSchemaRevisionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA_REVISION, req, opt) - } - - pub fn delete_schema_revision(&self, req: &super::schema::DeleteSchemaRevisionRequest) -> ::grpcio::Result { - self.delete_schema_revision_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_schema_revision_async_opt(&self, req: &super::schema::DeleteSchemaRevisionRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA_REVISION, req, opt) - } - - pub fn delete_schema_revision_async(&self, req: &super::schema::DeleteSchemaRevisionRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_schema_revision_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_schema_opt(&self, req: &super::schema::DeleteSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA, req, opt) - } - - pub fn delete_schema(&self, req: &super::schema::DeleteSchemaRequest) -> ::grpcio::Result { - self.delete_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_schema_async_opt(&self, req: &super::schema::DeleteSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA, req, opt) - } - - pub fn delete_schema_async(&self, req: &super::schema::DeleteSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn validate_schema_opt(&self, req: &super::schema::ValidateSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_VALIDATE_SCHEMA, req, opt) - } - - pub fn validate_schema(&self, req: &super::schema::ValidateSchemaRequest) -> ::grpcio::Result { - self.validate_schema_opt(req, ::grpcio::CallOption::default()) - } - - pub fn validate_schema_async_opt(&self, req: &super::schema::ValidateSchemaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_VALIDATE_SCHEMA, req, opt) - } - - pub fn validate_schema_async(&self, req: &super::schema::ValidateSchemaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.validate_schema_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn validate_message_opt(&self, req: &super::schema::ValidateMessageRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_SCHEMA_SERVICE_VALIDATE_MESSAGE, req, opt) - } - - pub fn validate_message(&self, req: &super::schema::ValidateMessageRequest) -> ::grpcio::Result { - self.validate_message_opt(req, ::grpcio::CallOption::default()) - } - - pub fn validate_message_async_opt(&self, req: &super::schema::ValidateMessageRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_SCHEMA_SERVICE_VALIDATE_MESSAGE, req, opt) - } - - pub fn validate_message_async(&self, req: &super::schema::ValidateMessageRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.validate_message_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { - self.client.spawn(f) - } -} - -pub trait SchemaService { - fn create_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::CreateSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::GetSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_schemas(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::ListSchemasRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_schema_revisions(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::ListSchemaRevisionsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn commit_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::CommitSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn rollback_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::RollbackSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_schema_revision(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::DeleteSchemaRevisionRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::DeleteSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn validate_schema(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::ValidateSchemaRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn validate_message(&mut self, ctx: ::grpcio::RpcContext, _req: super::schema::ValidateMessageRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } -} - -pub fn create_schema_service(s: S) -> ::grpcio::Service { - let mut builder = ::grpcio::ServiceBuilder::new(); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_CREATE_SCHEMA, move |ctx, req, resp| { - instance.create_schema(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_GET_SCHEMA, move |ctx, req, resp| { - instance.get_schema(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_LIST_SCHEMAS, move |ctx, req, resp| { - instance.list_schemas(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_LIST_SCHEMA_REVISIONS, move |ctx, req, resp| { - instance.list_schema_revisions(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_COMMIT_SCHEMA, move |ctx, req, resp| { - instance.commit_schema(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_ROLLBACK_SCHEMA, move |ctx, req, resp| { - instance.rollback_schema(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA_REVISION, move |ctx, req, resp| { - instance.delete_schema_revision(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_DELETE_SCHEMA, move |ctx, req, resp| { - instance.delete_schema(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_VALIDATE_SCHEMA, move |ctx, req, resp| { - instance.validate_schema(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_SCHEMA_SERVICE_VALIDATE_MESSAGE, move |ctx, req, resp| { - instance.validate_message(ctx, req, resp) - }); - builder.build() -} diff --git a/googleapis-raw/src/pubsub/v1beta2/mod.rs b/googleapis-raw/src/pubsub/v1beta2/mod.rs index e82e44a..8908db0 100644 --- a/googleapis-raw/src/pubsub/v1beta2/mod.rs +++ b/googleapis-raw/src/pubsub/v1beta2/mod.rs @@ -1,8 +1,5 @@ // @generated - -use crate::{ - empty, -}; +pub(crate) use crate::empty; pub mod pubsub; pub mod pubsub_grpc; diff --git a/googleapis-raw/src/pubsub/v1beta2/pubsub.rs b/googleapis-raw/src/pubsub/v1beta2/pubsub.rs index 557f4e6..770deca 100644 --- a/googleapis-raw/src/pubsub/v1beta2/pubsub.rs +++ b/googleapis-raw/src/pubsub/v1beta2/pubsub.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,26 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/pubsub/v1beta2/pubsub.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// A topic resource. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.Topic) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Topic { // message fields + /// Name of the topic. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.Topic.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.Topic.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Topic { @@ -43,47 +49,37 @@ impl Topic { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Topic| { &m.name }, + |m: &mut Topic| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Topic", + fields, + oneofs, + ) } } impl ::protobuf::Message for Topic { + const NAME: &'static str = "Topic"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -92,105 +88,88 @@ impl ::protobuf::Message for Topic { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Topic { Topic::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Topic| { &m.name }, - |m: &mut Topic| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Topic", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Topic { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Topic::new) + static instance: Topic = Topic { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Topic { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Topic { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Topic").unwrap()).clone() } } -impl ::std::fmt::Debug for Topic { +impl ::std::fmt::Display for Topic { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Topic { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A message data and its attributes. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PubsubMessage) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PubsubMessage { // message fields + /// The message payload. For JSON requests, the value of this field must be + /// base64-encoded. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PubsubMessage.data) pub data: ::std::vec::Vec, + /// Optional attributes for this message. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PubsubMessage.attributes) pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// ID of this message assigned by the server at publication time. Guaranteed + /// to be unique within the topic. This value may be read by a subscriber + /// that receives a PubsubMessage via a Pull call or a push delivery. It must + /// not be populated by a publisher in a Publish call. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PubsubMessage.message_id) pub message_id: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PubsubMessage.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PubsubMessage { @@ -204,104 +183,65 @@ impl PubsubMessage { ::std::default::Default::default() } - // bytes data = 1; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } - - // repeated .google.pubsub.v1beta2.PubsubMessage.AttributesEntry attributes = 2; - - - pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.attributes - } - pub fn clear_attributes(&mut self) { - self.attributes.clear(); - } - - // Param is passed by value, moved - pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.attributes = v; - } - - // Mutable pointer to the field. - pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.attributes - } - - // Take field - pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new()) - } - - // string message_id = 3; - - - pub fn get_message_id(&self) -> &str { - &self.message_id - } - pub fn clear_message_id(&mut self) { - self.message_id.clear(); - } - - // Param is passed by value, moved - pub fn set_message_id(&mut self, v: ::std::string::String) { - self.message_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message_id(&mut self) -> &mut ::std::string::String { - &mut self.message_id - } - - // Take field - pub fn take_message_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.message_id, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "data", + |m: &PubsubMessage| { &m.data }, + |m: &mut PubsubMessage| { &mut m.data }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "attributes", + |m: &PubsubMessage| { &m.attributes }, + |m: &mut PubsubMessage| { &mut m.attributes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "message_id", + |m: &PubsubMessage| { &m.message_id }, + |m: &mut PubsubMessage| { &mut m.message_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PubsubMessage", + fields, + oneofs, + ) } } impl ::protobuf::Message for PubsubMessage { + const NAME: &'static str = "PubsubMessage"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.data = is.read_bytes()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.attributes.insert(key, value); }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message_id)?; + 26 => { + self.message_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -310,123 +250,98 @@ impl ::protobuf::Message for PubsubMessage { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.data.is_empty() { my_size += ::protobuf::rt::bytes_size(1, &self.data); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes); + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; if !self.message_id.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.message_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.data.is_empty() { os.write_bytes(1, &self.data)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?; + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; if !self.message_id.is_empty() { os.write_string(3, &self.message_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PubsubMessage { PubsubMessage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &PubsubMessage| { &m.data }, - |m: &mut PubsubMessage| { &mut m.data }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "attributes", - |m: &PubsubMessage| { &m.attributes }, - |m: &mut PubsubMessage| { &mut m.attributes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message_id", - |m: &PubsubMessage| { &m.message_id }, - |m: &mut PubsubMessage| { &mut m.message_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PubsubMessage", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.data.clear(); + self.attributes.clear(); + self.message_id.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PubsubMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(PubsubMessage::new) } } -impl ::protobuf::Clear for PubsubMessage { - fn clear(&mut self) { - self.data.clear(); - self.attributes.clear(); - self.message_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PubsubMessage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PubsubMessage").unwrap()).clone() } } -impl ::std::fmt::Debug for PubsubMessage { +impl ::std::fmt::Display for PubsubMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PubsubMessage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the GetTopic method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.GetTopicRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetTopicRequest { // message fields + /// The name of the topic to get. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.GetTopicRequest.topic) pub topic: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.GetTopicRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetTopicRequest { @@ -440,47 +355,37 @@ impl GetTopicRequest { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &GetTopicRequest| { &m.topic }, + |m: &mut GetTopicRequest| { &mut m.topic }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetTopicRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetTopicRequest { + const NAME: &'static str = "GetTopicRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -489,104 +394,81 @@ impl ::protobuf::Message for GetTopicRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.topic); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.topic.is_empty() { os.write_string(1, &self.topic)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetTopicRequest { GetTopicRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &GetTopicRequest| { &m.topic }, - |m: &mut GetTopicRequest| { &mut m.topic }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetTopicRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetTopicRequest::new) + static instance: GetTopicRequest = GetTopicRequest { + topic: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetTopicRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetTopicRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetTopicRequest { +impl ::std::fmt::Display for GetTopicRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the Publish method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PublishRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PublishRequest { // message fields + /// The messages in the request will be published on this topic. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PublishRequest.topic) pub topic: ::std::string::String, - pub messages: ::protobuf::RepeatedField, + /// The messages to publish. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PublishRequest.messages) + pub messages: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PublishRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PublishRequest { @@ -600,80 +482,45 @@ impl PublishRequest { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // repeated .google.pubsub.v1beta2.PubsubMessage messages = 2; - - - pub fn get_messages(&self) -> &[PubsubMessage] { - &self.messages - } - pub fn clear_messages(&mut self) { - self.messages.clear(); - } - - // Param is passed by value, moved - pub fn set_messages(&mut self, v: ::protobuf::RepeatedField) { - self.messages = v; - } - - // Mutable pointer to the field. - pub fn mut_messages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.messages - } - - // Take field - pub fn take_messages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.messages, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &PublishRequest| { &m.topic }, + |m: &mut PublishRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "messages", + |m: &PublishRequest| { &m.messages }, + |m: &mut PublishRequest| { &mut m.messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PublishRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for PublishRequest { + const NAME: &'static str = "PublishRequest"; + fn is_initialized(&self) -> bool { - for v in &self.messages { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.messages)?; + 18 => { + self.messages.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -682,118 +529,89 @@ impl ::protobuf::Message for PublishRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.topic); } for value in &self.messages { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.topic.is_empty() { os.write_string(1, &self.topic)?; } for v in &self.messages { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PublishRequest { PublishRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &PublishRequest| { &m.topic }, - |m: &mut PublishRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "messages", - |m: &PublishRequest| { &m.messages }, - |m: &mut PublishRequest| { &mut m.messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PublishRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.messages.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PublishRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishRequest::new) + static instance: PublishRequest = PublishRequest { + topic: ::std::string::String::new(), + messages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PublishRequest { - fn clear(&mut self) { - self.topic.clear(); - self.messages.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PublishRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PublishRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PublishRequest { +impl ::std::fmt::Display for PublishRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PublishRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the Publish method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PublishResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PublishResponse { // message fields - pub message_ids: ::protobuf::RepeatedField<::std::string::String>, + /// The server-assigned ID of each published message, in the same order as + /// the messages in the request. IDs are guaranteed to be unique within + /// the topic. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PublishResponse.message_ids) + pub message_ids: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PublishResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PublishResponse { @@ -807,46 +625,37 @@ impl PublishResponse { ::std::default::Default::default() } - // repeated string message_ids = 1; - - - pub fn get_message_ids(&self) -> &[::std::string::String] { - &self.message_ids - } - pub fn clear_message_ids(&mut self) { - self.message_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_message_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.message_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_message_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.message_ids - } - - // Take field - pub fn take_message_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.message_ids, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "message_ids", + |m: &PublishResponse| { &m.message_ids }, + |m: &mut PublishResponse| { &mut m.message_ids }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PublishResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for PublishResponse { + const NAME: &'static str = "PublishResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.message_ids)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.message_ids.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -855,105 +664,86 @@ impl ::protobuf::Message for PublishResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.message_ids { my_size += ::protobuf::rt::string_size(1, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.message_ids { os.write_string(1, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PublishResponse { PublishResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message_ids", - |m: &PublishResponse| { &m.message_ids }, - |m: &mut PublishResponse| { &mut m.message_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PublishResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.message_ids.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PublishResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PublishResponse::new) + static instance: PublishResponse = PublishResponse { + message_ids: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PublishResponse { - fn clear(&mut self) { - self.message_ids.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PublishResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PublishResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for PublishResponse { +impl ::std::fmt::Display for PublishResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PublishResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the ListTopics method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListTopicsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListTopicsRequest { // message fields + /// The name of the cloud project that topics belong to. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicsRequest.project) pub project: ::std::string::String, + /// Maximum number of topics to return. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicsRequest.page_size) pub page_size: i32, + /// The value returned by the last ListTopicsResponse; indicates that this is + /// a continuation of a prior ListTopics call, and that the system should + /// return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListTopicsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListTopicsRequest { @@ -967,98 +757,53 @@ impl ListTopicsRequest { ::std::default::Default::default() } - // string project = 1; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "project", + |m: &ListTopicsRequest| { &m.project }, + |m: &mut ListTopicsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTopicsRequest| { &m.page_size }, + |m: &mut ListTopicsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTopicsRequest| { &m.page_token }, + |m: &mut ListTopicsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListTopicsRequest { + const NAME: &'static str = "ListTopicsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.project = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1067,23 +812,23 @@ impl ::protobuf::Message for ListTopicsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.project.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.project); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.project.is_empty() { os.write_string(1, &self.project)?; } @@ -1093,102 +838,72 @@ impl ::protobuf::Message for ListTopicsRequest { if !self.page_token.is_empty() { os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListTopicsRequest { ListTopicsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListTopicsRequest| { &m.project }, - |m: &mut ListTopicsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTopicsRequest| { &m.page_size }, - |m: &mut ListTopicsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTopicsRequest| { &m.page_token }, - |m: &mut ListTopicsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.project.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListTopicsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsRequest::new) + static instance: ListTopicsRequest = ListTopicsRequest { + project: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicsRequest { - fn clear(&mut self) { - self.project.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicsRequest { +impl ::std::fmt::Display for ListTopicsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListTopicsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the ListTopics method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListTopicsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListTopicsResponse { // message fields - pub topics: ::protobuf::RepeatedField, + /// The resulting topics. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicsResponse.topics) + pub topics: ::std::vec::Vec, + /// If not empty, indicates that there may be more topics that match the + /// request; this value should be passed in a new ListTopicsRequest. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListTopicsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListTopicsResponse { @@ -1202,80 +917,45 @@ impl ListTopicsResponse { ::std::default::Default::default() } - // repeated .google.pubsub.v1beta2.Topic topics = 1; - - - pub fn get_topics(&self) -> &[Topic] { - &self.topics - } - pub fn clear_topics(&mut self) { - self.topics.clear(); - } - - // Param is passed by value, moved - pub fn set_topics(&mut self, v: ::protobuf::RepeatedField) { - self.topics = v; - } - - // Mutable pointer to the field. - pub fn mut_topics(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.topics - } - - // Take field - pub fn take_topics(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.topics, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "topics", + |m: &ListTopicsResponse| { &m.topics }, + |m: &mut ListTopicsResponse| { &mut m.topics }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTopicsResponse| { &m.next_page_token }, + |m: &mut ListTopicsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListTopicsResponse { + const NAME: &'static str = "ListTopicsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.topics { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.topics)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topics.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1284,120 +964,95 @@ impl ::protobuf::Message for ListTopicsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.topics { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.topics { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListTopicsResponse { ListTopicsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "topics", - |m: &ListTopicsResponse| { &m.topics }, - |m: &mut ListTopicsResponse| { &mut m.topics }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTopicsResponse| { &m.next_page_token }, - |m: &mut ListTopicsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topics.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListTopicsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicsResponse::new) + static instance: ListTopicsResponse = ListTopicsResponse { + topics: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicsResponse { - fn clear(&mut self) { - self.topics.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicsResponse { +impl ::std::fmt::Display for ListTopicsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListTopicsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the ListTopicSubscriptions method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListTopicSubscriptionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListTopicSubscriptionsRequest { // message fields + /// The name of the topic that subscriptions are attached to. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicSubscriptionsRequest.topic) pub topic: ::std::string::String, + /// Maximum number of subscription names to return. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicSubscriptionsRequest.page_size) pub page_size: i32, + /// The value returned by the last ListTopicSubscriptionsResponse; indicates + /// that this is a continuation of a prior ListTopicSubscriptions call, and + /// that the system should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicSubscriptionsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListTopicSubscriptionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsRequest { @@ -1411,98 +1066,53 @@ impl ListTopicSubscriptionsRequest { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &ListTopicSubscriptionsRequest| { &m.topic }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListTopicSubscriptionsRequest| { &m.page_size }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListTopicSubscriptionsRequest| { &m.page_token }, + |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSubscriptionsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListTopicSubscriptionsRequest { + const NAME: &'static str = "ListTopicSubscriptionsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1511,23 +1121,23 @@ impl ::protobuf::Message for ListTopicSubscriptionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.topic); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.topic.is_empty() { os.write_string(1, &self.topic)?; } @@ -1537,102 +1147,73 @@ impl ::protobuf::Message for ListTopicSubscriptionsRequest { if !self.page_token.is_empty() { os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListTopicSubscriptionsRequest { ListTopicSubscriptionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &ListTopicSubscriptionsRequest| { &m.topic }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListTopicSubscriptionsRequest| { &m.page_size }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListTopicSubscriptionsRequest| { &m.page_token }, - |m: &mut ListTopicSubscriptionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSubscriptionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListTopicSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsRequest::new) + static instance: ListTopicSubscriptionsRequest = ListTopicSubscriptionsRequest { + topic: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicSubscriptionsRequest { - fn clear(&mut self) { - self.topic.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicSubscriptionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSubscriptionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSubscriptionsRequest { +impl ::std::fmt::Display for ListTopicSubscriptionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the ListTopicSubscriptions method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListTopicSubscriptionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListTopicSubscriptionsResponse { // message fields - pub subscriptions: ::protobuf::RepeatedField<::std::string::String>, + /// The names of the subscriptions that match the request. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicSubscriptionsResponse.subscriptions) + pub subscriptions: ::std::vec::Vec<::std::string::String>, + /// If not empty, indicates that there may be more subscriptions that match + /// the request; this value should be passed in a new + /// ListTopicSubscriptionsRequest to get more subscriptions. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListTopicSubscriptionsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListTopicSubscriptionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListTopicSubscriptionsResponse { @@ -1646,75 +1227,45 @@ impl ListTopicSubscriptionsResponse { ::std::default::Default::default() } - // repeated string subscriptions = 1; - - - pub fn get_subscriptions(&self) -> &[::std::string::String] { - &self.subscriptions - } - pub fn clear_subscriptions(&mut self) { - self.subscriptions.clear(); - } - - // Param is passed by value, moved - pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.subscriptions = v; - } - - // Mutable pointer to the field. - pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.subscriptions - } - - // Take field - pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "subscriptions", + |m: &ListTopicSubscriptionsResponse| { &m.subscriptions }, + |m: &mut ListTopicSubscriptionsResponse| { &mut m.subscriptions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListTopicSubscriptionsResponse| { &m.next_page_token }, + |m: &mut ListTopicSubscriptionsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListTopicSubscriptionsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListTopicSubscriptionsResponse { + const NAME: &'static str = "ListTopicSubscriptionsResponse"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.subscriptions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscriptions.push(is.read_string()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1723,7 +1274,7 @@ impl ::protobuf::Message for ListTopicSubscriptionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.subscriptions { my_size += ::protobuf::rt::string_size(1, &value); @@ -1731,107 +1282,78 @@ impl ::protobuf::Message for ListTopicSubscriptionsResponse { if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.subscriptions { os.write_string(1, &v)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListTopicSubscriptionsResponse { ListTopicSubscriptionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscriptions", - |m: &ListTopicSubscriptionsResponse| { &m.subscriptions }, - |m: &mut ListTopicSubscriptionsResponse| { &mut m.subscriptions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListTopicSubscriptionsResponse| { &m.next_page_token }, - |m: &mut ListTopicSubscriptionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListTopicSubscriptionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListTopicSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListTopicSubscriptionsResponse::new) + static instance: ListTopicSubscriptionsResponse = ListTopicSubscriptionsResponse { + subscriptions: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListTopicSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListTopicSubscriptionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListTopicSubscriptionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListTopicSubscriptionsResponse { +impl ::std::fmt::Display for ListTopicSubscriptionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListTopicSubscriptionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the DeleteTopic method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.DeleteTopicRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteTopicRequest { // message fields + /// Name of the topic to delete. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.DeleteTopicRequest.topic) pub topic: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.DeleteTopicRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteTopicRequest { @@ -1845,47 +1367,37 @@ impl DeleteTopicRequest { ::std::default::Default::default() } - // string topic = 1; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &DeleteTopicRequest| { &m.topic }, + |m: &mut DeleteTopicRequest| { &mut m.topic }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteTopicRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteTopicRequest { + const NAME: &'static str = "DeleteTopicRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.topic = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1894,106 +1406,105 @@ impl ::protobuf::Message for DeleteTopicRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.topic); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.topic.is_empty() { os.write_string(1, &self.topic)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteTopicRequest { DeleteTopicRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &DeleteTopicRequest| { &m.topic }, - |m: &mut DeleteTopicRequest| { &mut m.topic }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteTopicRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.topic.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteTopicRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteTopicRequest::new) + static instance: DeleteTopicRequest = DeleteTopicRequest { + topic: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteTopicRequest { - fn clear(&mut self) { - self.topic.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteTopicRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteTopicRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteTopicRequest { +impl ::std::fmt::Display for DeleteTopicRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteTopicRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A subscription resource. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.Subscription) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Subscription { // message fields + /// Name of the subscription. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.Subscription.name) pub name: ::std::string::String, + /// The name of the topic from which this subscription is receiving messages. + /// This will be present if and only if the subscription has not been detached + /// from its topic. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.Subscription.topic) pub topic: ::std::string::String, - pub push_config: ::protobuf::SingularPtrField, + /// If push delivery is used with this subscription, this field is + /// used to configure it. An empty pushConfig signifies that the subscriber + /// will pull and ack messages using API methods. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.Subscription.push_config) + pub push_config: ::protobuf::MessageField, + /// This value is the maximum time after a subscriber receives a message + /// before the subscriber should acknowledge the message. After message + /// delivery but before the ack deadline expires and before the message is + /// acknowledged, it is an outstanding message and will not be delivered + /// again during that time (on a best-effort basis). + /// + /// For pull delivery this value + /// is used as the initial value for the ack deadline. It may be overridden + /// for a specific message by calling ModifyAckDeadline. + /// + /// For push delivery, this value is also used to set the request timeout for + /// the call to the push endpoint. + /// + /// If the subscriber never acknowledges the message, the Pub/Sub + /// system will eventually redeliver the message. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.Subscription.ack_deadline_seconds) pub ack_deadline_seconds: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.Subscription.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Subscription { @@ -2007,139 +1518,61 @@ impl Subscription { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string topic = 2; - - - pub fn get_topic(&self) -> &str { - &self.topic - } - pub fn clear_topic(&mut self) { - self.topic.clear(); - } - - // Param is passed by value, moved - pub fn set_topic(&mut self, v: ::std::string::String) { - self.topic = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_topic(&mut self) -> &mut ::std::string::String { - &mut self.topic - } - - // Take field - pub fn take_topic(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.topic, ::std::string::String::new()) - } - - // .google.pubsub.v1beta2.PushConfig push_config = 4; - - - pub fn get_push_config(&self) -> &PushConfig { - self.push_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_push_config(&mut self) { - self.push_config.clear(); - } - - pub fn has_push_config(&self) -> bool { - self.push_config.is_some() - } - - // Param is passed by value, moved - pub fn set_push_config(&mut self, v: PushConfig) { - self.push_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_config(&mut self) -> &mut PushConfig { - if self.push_config.is_none() { - self.push_config.set_default(); - } - self.push_config.as_mut().unwrap() - } - - // Take field - pub fn take_push_config(&mut self) -> PushConfig { - self.push_config.take().unwrap_or_else(|| PushConfig::new()) - } - - // int32 ack_deadline_seconds = 5; - - - pub fn get_ack_deadline_seconds(&self) -> i32 { - self.ack_deadline_seconds - } - pub fn clear_ack_deadline_seconds(&mut self) { - self.ack_deadline_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_ack_deadline_seconds(&mut self, v: i32) { - self.ack_deadline_seconds = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Subscription| { &m.name }, + |m: &mut Subscription| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "topic", + |m: &Subscription| { &m.topic }, + |m: &mut Subscription| { &mut m.topic }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PushConfig>( + "push_config", + |m: &Subscription| { &m.push_config }, + |m: &mut Subscription| { &mut m.push_config }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_deadline_seconds", + |m: &Subscription| { &m.ack_deadline_seconds }, + |m: &mut Subscription| { &mut m.ack_deadline_seconds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Subscription", + fields, + oneofs, + ) } } impl ::protobuf::Message for Subscription { + const NAME: &'static str = "Subscription"; + fn is_initialized(&self) -> bool { - for v in &self.push_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?; + 18 => { + self.topic = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.push_config)?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.ack_deadline_seconds = tmp; + 40 => { + self.ack_deadline_seconds = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2148,7 +1581,7 @@ impl ::protobuf::Message for Subscription { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -2156,135 +1589,121 @@ impl ::protobuf::Message for Subscription { if !self.topic.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.topic); } - if let Some(ref v) = self.push_config.as_ref() { + if let Some(v) = self.push_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(5, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(5, self.ack_deadline_seconds); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } if !self.topic.is_empty() { os.write_string(2, &self.topic)?; } - if let Some(ref v) = self.push_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.push_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } if self.ack_deadline_seconds != 0 { os.write_int32(5, self.ack_deadline_seconds)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Subscription { Subscription::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Subscription| { &m.name }, - |m: &mut Subscription| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "topic", - |m: &Subscription| { &m.topic }, - |m: &mut Subscription| { &mut m.topic }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "push_config", - |m: &Subscription| { &m.push_config }, - |m: &mut Subscription| { &mut m.push_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "ack_deadline_seconds", - |m: &Subscription| { &m.ack_deadline_seconds }, - |m: &mut Subscription| { &mut m.ack_deadline_seconds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Subscription", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.topic.clear(); + self.push_config.clear(); + self.ack_deadline_seconds = 0; + self.special_fields.clear(); } fn default_instance() -> &'static Subscription { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Subscription::new) + static instance: Subscription = Subscription { + name: ::std::string::String::new(), + topic: ::std::string::String::new(), + push_config: ::protobuf::MessageField::none(), + ack_deadline_seconds: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Subscription { - fn clear(&mut self) { - self.name.clear(); - self.topic.clear(); - self.push_config.clear(); - self.ack_deadline_seconds = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Subscription { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Subscription").unwrap()).clone() } } -impl ::std::fmt::Debug for Subscription { +impl ::std::fmt::Display for Subscription { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Subscription { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Configuration for a push delivery endpoint. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PushConfig) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PushConfig { // message fields + /// A URL locating the endpoint to which messages should be pushed. + /// For example, a Webhook endpoint might use "https://example.com/push". + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PushConfig.push_endpoint) pub push_endpoint: ::std::string::String, + /// Endpoint configuration attributes. + /// + /// Every endpoint has a set of API supported attributes that can be used to + /// control different aspects of the message delivery. + /// + /// The currently supported attribute is `x-goog-version`, which you can + /// use to change the format of the push message. This attribute + /// indicates the version of the data expected by the endpoint. This + /// controls the shape of the envelope (i.e. its fields and metadata). + /// The endpoint version is based on the version of the Pub/Sub + /// API. + /// + /// If not present during the CreateSubscription call, it will default to + /// the version of the API used to make such call. If not present during a + /// ModifyPushConfig call, its value will not be changed. GetSubscription + /// calls will always return a valid version, even if the subscription was + /// created without this attribute. + /// + /// The possible values for this attribute are: + /// + /// * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. + /// * `v1beta2`: uses the push format defined in the v1beta2 Pub/Sub API. + /// + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PushConfig.attributes) pub attributes: ::std::collections::HashMap<::std::string::String, ::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PushConfig.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PushConfig { @@ -2298,75 +1717,57 @@ impl PushConfig { ::std::default::Default::default() } - // string push_endpoint = 1; - - - pub fn get_push_endpoint(&self) -> &str { - &self.push_endpoint - } - pub fn clear_push_endpoint(&mut self) { - self.push_endpoint.clear(); - } - - // Param is passed by value, moved - pub fn set_push_endpoint(&mut self, v: ::std::string::String) { - self.push_endpoint = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_endpoint(&mut self) -> &mut ::std::string::String { - &mut self.push_endpoint - } - - // Take field - pub fn take_push_endpoint(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.push_endpoint, ::std::string::String::new()) - } - - // repeated .google.pubsub.v1beta2.PushConfig.AttributesEntry attributes = 2; - - - pub fn get_attributes(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.attributes - } - pub fn clear_attributes(&mut self) { - self.attributes.clear(); - } - - // Param is passed by value, moved - pub fn set_attributes(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.attributes = v; - } - - // Mutable pointer to the field. - pub fn mut_attributes(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.attributes - } - - // Take field - pub fn take_attributes(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.attributes, ::std::collections::HashMap::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "push_endpoint", + |m: &PushConfig| { &m.push_endpoint }, + |m: &mut PushConfig| { &mut m.push_endpoint }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "attributes", + |m: &PushConfig| { &m.attributes }, + |m: &mut PushConfig| { &mut m.attributes }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PushConfig", + fields, + oneofs, + ) } } impl ::protobuf::Message for PushConfig { + const NAME: &'static str = "PushConfig"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.push_endpoint)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.attributes)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.push_endpoint = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.attributes.insert(key, value); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2375,112 +1776,94 @@ impl ::protobuf::Message for PushConfig { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.push_endpoint.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.push_endpoint); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.push_endpoint.is_empty() { os.write_string(1, &self.push_endpoint)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.attributes, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; + for (k, v) in &self.attributes { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PushConfig { PushConfig::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "push_endpoint", - |m: &PushConfig| { &m.push_endpoint }, - |m: &mut PushConfig| { &mut m.push_endpoint }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "attributes", - |m: &PushConfig| { &m.attributes }, - |m: &mut PushConfig| { &mut m.attributes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PushConfig", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.push_endpoint.clear(); + self.attributes.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PushConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(PushConfig::new) } } -impl ::protobuf::Clear for PushConfig { - fn clear(&mut self) { - self.push_endpoint.clear(); - self.attributes.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PushConfig { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PushConfig").unwrap()).clone() } } -impl ::std::fmt::Debug for PushConfig { +impl ::std::fmt::Display for PushConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PushConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A message and its corresponding acknowledgment ID. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ReceivedMessage) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReceivedMessage { // message fields + /// This ID can be used to acknowledge the received message. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ReceivedMessage.ack_id) pub ack_id: ::std::string::String, - pub message: ::protobuf::SingularPtrField, + /// The message. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ReceivedMessage.message) + pub message: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ReceivedMessage.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReceivedMessage { @@ -2494,88 +1877,45 @@ impl ReceivedMessage { ::std::default::Default::default() } - // string ack_id = 1; - - - pub fn get_ack_id(&self) -> &str { - &self.ack_id - } - pub fn clear_ack_id(&mut self) { - self.ack_id.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_id(&mut self, v: ::std::string::String) { - self.ack_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ack_id(&mut self) -> &mut ::std::string::String { - &mut self.ack_id - } - - // Take field - pub fn take_ack_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.ack_id, ::std::string::String::new()) - } - - // .google.pubsub.v1beta2.PubsubMessage message = 2; - - - pub fn get_message(&self) -> &PubsubMessage { - self.message.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - pub fn has_message(&self) -> bool { - self.message.is_some() - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: PubsubMessage) { - self.message = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut PubsubMessage { - if self.message.is_none() { - self.message.set_default(); - } - self.message.as_mut().unwrap() - } - - // Take field - pub fn take_message(&mut self) -> PubsubMessage { - self.message.take().unwrap_or_else(|| PubsubMessage::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_id", + |m: &ReceivedMessage| { &m.ack_id }, + |m: &mut ReceivedMessage| { &mut m.ack_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PubsubMessage>( + "message", + |m: &ReceivedMessage| { &m.message }, + |m: &mut ReceivedMessage| { &mut m.message }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReceivedMessage", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReceivedMessage { + const NAME: &'static str = "ReceivedMessage"; + fn is_initialized(&self) -> bool { - for v in &self.message { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.ack_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.message)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.message)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2584,118 +1924,87 @@ impl ::protobuf::Message for ReceivedMessage { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.ack_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.ack_id); } - if let Some(ref v) = self.message.as_ref() { + if let Some(v) = self.message.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.ack_id.is_empty() { os.write_string(1, &self.ack_id)?; } - if let Some(ref v) = self.message.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.message.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReceivedMessage { ReceivedMessage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_id", - |m: &ReceivedMessage| { &m.ack_id }, - |m: &mut ReceivedMessage| { &mut m.ack_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "message", - |m: &ReceivedMessage| { &m.message }, - |m: &mut ReceivedMessage| { &mut m.message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReceivedMessage", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.ack_id.clear(); + self.message.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ReceivedMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReceivedMessage::new) + static instance: ReceivedMessage = ReceivedMessage { + ack_id: ::std::string::String::new(), + message: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReceivedMessage { - fn clear(&mut self) { - self.ack_id.clear(); - self.message.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReceivedMessage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReceivedMessage").unwrap()).clone() } } -impl ::std::fmt::Debug for ReceivedMessage { +impl ::std::fmt::Display for ReceivedMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ReceivedMessage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the GetSubscription method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.GetSubscriptionRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetSubscriptionRequest { // message fields + /// The name of the subscription to get. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.GetSubscriptionRequest.subscription) pub subscription: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.GetSubscriptionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetSubscriptionRequest { @@ -2709,47 +2018,37 @@ impl GetSubscriptionRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &GetSubscriptionRequest| { &m.subscription }, + |m: &mut GetSubscriptionRequest| { &mut m.subscription }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetSubscriptionRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetSubscriptionRequest { + const NAME: &'static str = "GetSubscriptionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2758,105 +2057,86 @@ impl ::protobuf::Message for GetSubscriptionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetSubscriptionRequest { GetSubscriptionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &GetSubscriptionRequest| { &m.subscription }, - |m: &mut GetSubscriptionRequest| { &mut m.subscription }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSubscriptionRequest::new) + static instance: GetSubscriptionRequest = GetSubscriptionRequest { + subscription: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetSubscriptionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetSubscriptionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetSubscriptionRequest { +impl ::std::fmt::Display for GetSubscriptionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the ListSubscriptions method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListSubscriptionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSubscriptionsRequest { // message fields + /// The name of the cloud project that subscriptions belong to. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListSubscriptionsRequest.project) pub project: ::std::string::String, + /// Maximum number of subscriptions to return. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListSubscriptionsRequest.page_size) pub page_size: i32, + /// The value returned by the last ListSubscriptionsResponse; indicates that + /// this is a continuation of a prior ListSubscriptions call, and that the + /// system should return the next page of data. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListSubscriptionsRequest.page_token) pub page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListSubscriptionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSubscriptionsRequest { @@ -2870,98 +2150,53 @@ impl ListSubscriptionsRequest { ::std::default::Default::default() } - // string project = 1; - - - pub fn get_project(&self) -> &str { - &self.project - } - pub fn clear_project(&mut self) { - self.project.clear(); - } - - // Param is passed by value, moved - pub fn set_project(&mut self, v: ::std::string::String) { - self.project = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_project(&mut self) -> &mut ::std::string::String { - &mut self.project - } - - // Take field - pub fn take_project(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.project, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "project", + |m: &ListSubscriptionsRequest| { &m.project }, + |m: &mut ListSubscriptionsRequest| { &mut m.project }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListSubscriptionsRequest| { &m.page_size }, + |m: &mut ListSubscriptionsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListSubscriptionsRequest| { &m.page_token }, + |m: &mut ListSubscriptionsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSubscriptionsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSubscriptionsRequest { + const NAME: &'static str = "ListSubscriptionsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.project)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.project = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2970,23 +2205,23 @@ impl ::protobuf::Message for ListSubscriptionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.project.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.project); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.project.is_empty() { os.write_string(1, &self.project)?; } @@ -2996,102 +2231,73 @@ impl ::protobuf::Message for ListSubscriptionsRequest { if !self.page_token.is_empty() { os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSubscriptionsRequest { ListSubscriptionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "project", - |m: &ListSubscriptionsRequest| { &m.project }, - |m: &mut ListSubscriptionsRequest| { &mut m.project }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSubscriptionsRequest| { &m.page_size }, - |m: &mut ListSubscriptionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSubscriptionsRequest| { &m.page_token }, - |m: &mut ListSubscriptionsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSubscriptionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.project.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSubscriptionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSubscriptionsRequest::new) + static instance: ListSubscriptionsRequest = ListSubscriptionsRequest { + project: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSubscriptionsRequest { - fn clear(&mut self) { - self.project.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSubscriptionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSubscriptionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSubscriptionsRequest { +impl ::std::fmt::Display for ListSubscriptionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the ListSubscriptions method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ListSubscriptionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSubscriptionsResponse { // message fields - pub subscriptions: ::protobuf::RepeatedField, + /// The subscriptions that match the request. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListSubscriptionsResponse.subscriptions) + pub subscriptions: ::std::vec::Vec, + /// If not empty, indicates that there may be more subscriptions that match + /// the request; this value should be passed in a new ListSubscriptionsRequest + /// to get more subscriptions. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ListSubscriptionsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ListSubscriptionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSubscriptionsResponse { @@ -3105,80 +2311,45 @@ impl ListSubscriptionsResponse { ::std::default::Default::default() } - // repeated .google.pubsub.v1beta2.Subscription subscriptions = 1; - - - pub fn get_subscriptions(&self) -> &[Subscription] { - &self.subscriptions - } - pub fn clear_subscriptions(&mut self) { - self.subscriptions.clear(); - } - - // Param is passed by value, moved - pub fn set_subscriptions(&mut self, v: ::protobuf::RepeatedField) { - self.subscriptions = v; - } - - // Mutable pointer to the field. - pub fn mut_subscriptions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.subscriptions - } - - // Take field - pub fn take_subscriptions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.subscriptions, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "subscriptions", + |m: &ListSubscriptionsResponse| { &m.subscriptions }, + |m: &mut ListSubscriptionsResponse| { &mut m.subscriptions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListSubscriptionsResponse| { &m.next_page_token }, + |m: &mut ListSubscriptionsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSubscriptionsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSubscriptionsResponse { + const NAME: &'static str = "ListSubscriptionsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.subscriptions { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.subscriptions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscriptions.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3187,118 +2358,87 @@ impl ::protobuf::Message for ListSubscriptionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.subscriptions { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.subscriptions { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSubscriptionsResponse { ListSubscriptionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "subscriptions", - |m: &ListSubscriptionsResponse| { &m.subscriptions }, - |m: &mut ListSubscriptionsResponse| { &mut m.subscriptions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSubscriptionsResponse| { &m.next_page_token }, - |m: &mut ListSubscriptionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSubscriptionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscriptions.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSubscriptionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSubscriptionsResponse::new) + static instance: ListSubscriptionsResponse = ListSubscriptionsResponse { + subscriptions: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSubscriptionsResponse { - fn clear(&mut self) { - self.subscriptions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSubscriptionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSubscriptionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSubscriptionsResponse { +impl ::std::fmt::Display for ListSubscriptionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSubscriptionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the DeleteSubscription method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.DeleteSubscriptionRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteSubscriptionRequest { // message fields + /// The subscription to delete. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.DeleteSubscriptionRequest.subscription) pub subscription: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.DeleteSubscriptionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteSubscriptionRequest { @@ -3312,47 +2452,37 @@ impl DeleteSubscriptionRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &DeleteSubscriptionRequest| { &m.subscription }, + |m: &mut DeleteSubscriptionRequest| { &mut m.subscription }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteSubscriptionRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteSubscriptionRequest { + const NAME: &'static str = "DeleteSubscriptionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3361,104 +2491,86 @@ impl ::protobuf::Message for DeleteSubscriptionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteSubscriptionRequest { DeleteSubscriptionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &DeleteSubscriptionRequest| { &m.subscription }, - |m: &mut DeleteSubscriptionRequest| { &mut m.subscription }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSubscriptionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteSubscriptionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSubscriptionRequest::new) + static instance: DeleteSubscriptionRequest = DeleteSubscriptionRequest { + subscription: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteSubscriptionRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteSubscriptionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteSubscriptionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteSubscriptionRequest { +impl ::std::fmt::Display for DeleteSubscriptionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteSubscriptionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the ModifyPushConfig method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ModifyPushConfigRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ModifyPushConfigRequest { // message fields + /// The name of the subscription. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ModifyPushConfigRequest.subscription) pub subscription: ::std::string::String, - pub push_config: ::protobuf::SingularPtrField, + /// The push configuration for future deliveries. + /// + /// An empty pushConfig indicates that the Pub/Sub system should + /// stop pushing messages from the given subscription and allow + /// messages to be pulled and acknowledged - effectively pausing + /// the subscription if Pull is not called. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ModifyPushConfigRequest.push_config) + pub push_config: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ModifyPushConfigRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ModifyPushConfigRequest { @@ -3472,88 +2584,45 @@ impl ModifyPushConfigRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // .google.pubsub.v1beta2.PushConfig push_config = 2; - - - pub fn get_push_config(&self) -> &PushConfig { - self.push_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_push_config(&mut self) { - self.push_config.clear(); - } - - pub fn has_push_config(&self) -> bool { - self.push_config.is_some() - } - - // Param is passed by value, moved - pub fn set_push_config(&mut self, v: PushConfig) { - self.push_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_push_config(&mut self) -> &mut PushConfig { - if self.push_config.is_none() { - self.push_config.set_default(); - } - self.push_config.as_mut().unwrap() - } - - // Take field - pub fn take_push_config(&mut self) -> PushConfig { - self.push_config.take().unwrap_or_else(|| PushConfig::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &ModifyPushConfigRequest| { &m.subscription }, + |m: &mut ModifyPushConfigRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PushConfig>( + "push_config", + |m: &ModifyPushConfigRequest| { &m.push_config }, + |m: &mut ModifyPushConfigRequest| { &mut m.push_config }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyPushConfigRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ModifyPushConfigRequest { + const NAME: &'static str = "ModifyPushConfigRequest"; + fn is_initialized(&self) -> bool { - for v in &self.push_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.push_config)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.push_config)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3562,120 +2631,98 @@ impl ::protobuf::Message for ModifyPushConfigRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); } - if let Some(ref v) = self.push_config.as_ref() { + if let Some(v) = self.push_config.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } - if let Some(ref v) = self.push_config.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.push_config.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ModifyPushConfigRequest { ModifyPushConfigRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &ModifyPushConfigRequest| { &m.subscription }, - |m: &mut ModifyPushConfigRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "push_config", - |m: &ModifyPushConfigRequest| { &m.push_config }, - |m: &mut ModifyPushConfigRequest| { &mut m.push_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyPushConfigRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.push_config.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ModifyPushConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyPushConfigRequest::new) + static instance: ModifyPushConfigRequest = ModifyPushConfigRequest { + subscription: ::std::string::String::new(), + push_config: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ModifyPushConfigRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.push_config.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ModifyPushConfigRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ModifyPushConfigRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ModifyPushConfigRequest { +impl ::std::fmt::Display for ModifyPushConfigRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ModifyPushConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the Pull method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PullRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PullRequest { // message fields + /// The subscription from which messages should be pulled. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PullRequest.subscription) pub subscription: ::std::string::String, + /// If this is specified as true the system will respond immediately even if + /// it is not able to return a message in the Pull response. Otherwise the + /// system is allowed to wait until at least one message is available rather + /// than returning no messages. The client may cancel the request if it does + /// not wish to wait any longer for the response. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PullRequest.return_immediately) pub return_immediately: bool, + /// The maximum number of messages returned for this request. The Pub/Sub + /// system may return fewer than the number specified. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PullRequest.max_messages) pub max_messages: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PullRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PullRequest { @@ -3689,91 +2736,53 @@ impl PullRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // bool return_immediately = 2; - - - pub fn get_return_immediately(&self) -> bool { - self.return_immediately - } - pub fn clear_return_immediately(&mut self) { - self.return_immediately = false; - } - - // Param is passed by value, moved - pub fn set_return_immediately(&mut self, v: bool) { - self.return_immediately = v; - } - - // int32 max_messages = 3; - - - pub fn get_max_messages(&self) -> i32 { - self.max_messages - } - pub fn clear_max_messages(&mut self) { - self.max_messages = 0; - } - - // Param is passed by value, moved - pub fn set_max_messages(&mut self, v: i32) { - self.max_messages = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &PullRequest| { &m.subscription }, + |m: &mut PullRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "return_immediately", + |m: &PullRequest| { &m.return_immediately }, + |m: &mut PullRequest| { &mut m.return_immediately }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "max_messages", + |m: &PullRequest| { &m.max_messages }, + |m: &mut PullRequest| { &mut m.max_messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PullRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for PullRequest { + const NAME: &'static str = "PullRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.return_immediately = tmp; + 16 => { + self.return_immediately = is.read_bool()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.max_messages = tmp; + 24 => { + self.max_messages = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3782,23 +2791,23 @@ impl ::protobuf::Message for PullRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); } if self.return_immediately != false { - my_size += 2; + my_size += 1 + 1; } if self.max_messages != 0 { - my_size += ::protobuf::rt::value_size(3, self.max_messages, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.max_messages); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } @@ -3808,101 +2817,71 @@ impl ::protobuf::Message for PullRequest { if self.max_messages != 0 { os.write_int32(3, self.max_messages)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PullRequest { PullRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &PullRequest| { &m.subscription }, - |m: &mut PullRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "return_immediately", - |m: &PullRequest| { &m.return_immediately }, - |m: &mut PullRequest| { &mut m.return_immediately }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "max_messages", - |m: &PullRequest| { &m.max_messages }, - |m: &mut PullRequest| { &mut m.max_messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PullRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.return_immediately = false; + self.max_messages = 0; + self.special_fields.clear(); } fn default_instance() -> &'static PullRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PullRequest::new) + static instance: PullRequest = PullRequest { + subscription: ::std::string::String::new(), + return_immediately: false, + max_messages: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PullRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.return_immediately = false; - self.max_messages = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PullRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PullRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for PullRequest { +impl ::std::fmt::Display for PullRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PullRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Response for the Pull method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.PullResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PullResponse { // message fields - pub received_messages: ::protobuf::RepeatedField, + /// Received Pub/Sub messages. The Pub/Sub system will return zero messages if + /// there are no more available in the backlog. The Pub/Sub system may return + /// fewer than the maxMessages requested even if there are more messages + /// available in the backlog. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.PullResponse.received_messages) + pub received_messages: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.PullResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PullResponse { @@ -3916,51 +2895,37 @@ impl PullResponse { ::std::default::Default::default() } - // repeated .google.pubsub.v1beta2.ReceivedMessage received_messages = 1; - - - pub fn get_received_messages(&self) -> &[ReceivedMessage] { - &self.received_messages - } - pub fn clear_received_messages(&mut self) { - self.received_messages.clear(); - } - - // Param is passed by value, moved - pub fn set_received_messages(&mut self, v: ::protobuf::RepeatedField) { - self.received_messages = v; - } - - // Mutable pointer to the field. - pub fn mut_received_messages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.received_messages - } - - // Take field - pub fn take_received_messages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.received_messages, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "received_messages", + |m: &PullResponse| { &m.received_messages }, + |m: &mut PullResponse| { &mut m.received_messages }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PullResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for PullResponse { + const NAME: &'static str = "PullResponse"; + fn is_initialized(&self) -> bool { - for v in &self.received_messages { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.received_messages)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.received_messages.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -3969,108 +2934,89 @@ impl ::protobuf::Message for PullResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.received_messages { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.received_messages { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PullResponse { PullResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "received_messages", - |m: &PullResponse| { &m.received_messages }, - |m: &mut PullResponse| { &mut m.received_messages }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PullResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.received_messages.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PullResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PullResponse::new) + static instance: PullResponse = PullResponse { + received_messages: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PullResponse { - fn clear(&mut self) { - self.received_messages.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PullResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PullResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for PullResponse { +impl ::std::fmt::Display for PullResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PullResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the ModifyAckDeadline method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.ModifyAckDeadlineRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ModifyAckDeadlineRequest { // message fields + /// The name of the subscription. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ModifyAckDeadlineRequest.subscription) pub subscription: ::std::string::String, + /// The acknowledgment ID. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ModifyAckDeadlineRequest.ack_id) pub ack_id: ::std::string::String, + /// The new ack deadline with respect to the time this request was sent to the + /// Pub/Sub system. Must be >= 0. For example, if the value is 10, the new ack + /// deadline will expire 10 seconds after the ModifyAckDeadline call was made. + /// Specifying zero may immediately make the message available for another pull + /// request. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.ModifyAckDeadlineRequest.ack_deadline_seconds) pub ack_deadline_seconds: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.ModifyAckDeadlineRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ModifyAckDeadlineRequest { @@ -4084,98 +3030,53 @@ impl ModifyAckDeadlineRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // string ack_id = 2; - - - pub fn get_ack_id(&self) -> &str { - &self.ack_id - } - pub fn clear_ack_id(&mut self) { - self.ack_id.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_id(&mut self, v: ::std::string::String) { - self.ack_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ack_id(&mut self) -> &mut ::std::string::String { - &mut self.ack_id - } - - // Take field - pub fn take_ack_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.ack_id, ::std::string::String::new()) - } - - // int32 ack_deadline_seconds = 3; - - - pub fn get_ack_deadline_seconds(&self) -> i32 { - self.ack_deadline_seconds - } - pub fn clear_ack_deadline_seconds(&mut self) { - self.ack_deadline_seconds = 0; - } - - // Param is passed by value, moved - pub fn set_ack_deadline_seconds(&mut self, v: i32) { - self.ack_deadline_seconds = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &ModifyAckDeadlineRequest| { &m.subscription }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_id", + |m: &ModifyAckDeadlineRequest| { &m.ack_id }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "ack_deadline_seconds", + |m: &ModifyAckDeadlineRequest| { &m.ack_deadline_seconds }, + |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_deadline_seconds }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ModifyAckDeadlineRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ModifyAckDeadlineRequest { + const NAME: &'static str = "ModifyAckDeadlineRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ack_id)?; + 18 => { + self.ack_id = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.ack_deadline_seconds = tmp; + 24 => { + self.ack_deadline_seconds = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4184,7 +3085,7 @@ impl ::protobuf::Message for ModifyAckDeadlineRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); @@ -4193,14 +3094,14 @@ impl ::protobuf::Message for ModifyAckDeadlineRequest { my_size += ::protobuf::rt::string_size(2, &self.ack_id); } if self.ack_deadline_seconds != 0 { - my_size += ::protobuf::rt::value_size(3, self.ack_deadline_seconds, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.ack_deadline_seconds); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } @@ -4210,102 +3111,72 @@ impl ::protobuf::Message for ModifyAckDeadlineRequest { if self.ack_deadline_seconds != 0 { os.write_int32(3, self.ack_deadline_seconds)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ModifyAckDeadlineRequest { ModifyAckDeadlineRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &ModifyAckDeadlineRequest| { &m.subscription }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_id", - |m: &ModifyAckDeadlineRequest| { &m.ack_id }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "ack_deadline_seconds", - |m: &ModifyAckDeadlineRequest| { &m.ack_deadline_seconds }, - |m: &mut ModifyAckDeadlineRequest| { &mut m.ack_deadline_seconds }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ModifyAckDeadlineRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.ack_id.clear(); + self.ack_deadline_seconds = 0; + self.special_fields.clear(); } fn default_instance() -> &'static ModifyAckDeadlineRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ModifyAckDeadlineRequest::new) + static instance: ModifyAckDeadlineRequest = ModifyAckDeadlineRequest { + subscription: ::std::string::String::new(), + ack_id: ::std::string::String::new(), + ack_deadline_seconds: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ModifyAckDeadlineRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.ack_id.clear(); - self.ack_deadline_seconds = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ModifyAckDeadlineRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ModifyAckDeadlineRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ModifyAckDeadlineRequest { +impl ::std::fmt::Display for ModifyAckDeadlineRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ModifyAckDeadlineRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Request for the Acknowledge method. +// @@protoc_insertion_point(message:google.pubsub.v1beta2.AcknowledgeRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct AcknowledgeRequest { // message fields + /// The subscription whose message is being acknowledged. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.AcknowledgeRequest.subscription) pub subscription: ::std::string::String, - pub ack_ids: ::protobuf::RepeatedField<::std::string::String>, + /// The acknowledgment ID for the messages being acknowledged that was returned + /// by the Pub/Sub system in the Pull response. Must not be empty. + // @@protoc_insertion_point(field:google.pubsub.v1beta2.AcknowledgeRequest.ack_ids) + pub ack_ids: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.pubsub.v1beta2.AcknowledgeRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a AcknowledgeRequest { @@ -4319,75 +3190,45 @@ impl AcknowledgeRequest { ::std::default::Default::default() } - // string subscription = 1; - - - pub fn get_subscription(&self) -> &str { - &self.subscription - } - pub fn clear_subscription(&mut self) { - self.subscription.clear(); - } - - // Param is passed by value, moved - pub fn set_subscription(&mut self, v: ::std::string::String) { - self.subscription = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subscription(&mut self) -> &mut ::std::string::String { - &mut self.subscription - } - - // Take field - pub fn take_subscription(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subscription, ::std::string::String::new()) - } - - // repeated string ack_ids = 2; - - - pub fn get_ack_ids(&self) -> &[::std::string::String] { - &self.ack_ids - } - pub fn clear_ack_ids(&mut self) { - self.ack_ids.clear(); - } - - // Param is passed by value, moved - pub fn set_ack_ids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ack_ids = v; - } - - // Mutable pointer to the field. - pub fn mut_ack_ids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ack_ids - } - - // Take field - pub fn take_ack_ids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ack_ids, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subscription", + |m: &AcknowledgeRequest| { &m.subscription }, + |m: &mut AcknowledgeRequest| { &mut m.subscription }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ack_ids", + |m: &AcknowledgeRequest| { &m.ack_ids }, + |m: &mut AcknowledgeRequest| { &mut m.ack_ids }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "AcknowledgeRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for AcknowledgeRequest { + const NAME: &'static str = "AcknowledgeRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subscription)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subscription = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ack_ids)?; + 18 => { + self.ack_ids.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4396,7 +3237,7 @@ impl ::protobuf::Message for AcknowledgeRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.subscription.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.subscription); @@ -4404,98 +3245,65 @@ impl ::protobuf::Message for AcknowledgeRequest { for value in &self.ack_ids { my_size += ::protobuf::rt::string_size(2, &value); }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.subscription.is_empty() { os.write_string(1, &self.subscription)?; } for v in &self.ack_ids { os.write_string(2, &v)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> AcknowledgeRequest { AcknowledgeRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subscription", - |m: &AcknowledgeRequest| { &m.subscription }, - |m: &mut AcknowledgeRequest| { &mut m.subscription }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ack_ids", - |m: &AcknowledgeRequest| { &m.ack_ids }, - |m: &mut AcknowledgeRequest| { &mut m.ack_ids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AcknowledgeRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.subscription.clear(); + self.ack_ids.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static AcknowledgeRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AcknowledgeRequest::new) + static instance: AcknowledgeRequest = AcknowledgeRequest { + subscription: ::std::string::String::new(), + ack_ids: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AcknowledgeRequest { - fn clear(&mut self) { - self.subscription.clear(); - self.ack_ids.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for AcknowledgeRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("AcknowledgeRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for AcknowledgeRequest { +impl ::std::fmt::Display for AcknowledgeRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for AcknowledgeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -5012,14 +3820,53 @@ static file_descriptor_proto_data: &'static [u8] = b"\ 3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(22); + messages.push(Topic::generated_message_descriptor_data()); + messages.push(PubsubMessage::generated_message_descriptor_data()); + messages.push(GetTopicRequest::generated_message_descriptor_data()); + messages.push(PublishRequest::generated_message_descriptor_data()); + messages.push(PublishResponse::generated_message_descriptor_data()); + messages.push(ListTopicsRequest::generated_message_descriptor_data()); + messages.push(ListTopicsResponse::generated_message_descriptor_data()); + messages.push(ListTopicSubscriptionsRequest::generated_message_descriptor_data()); + messages.push(ListTopicSubscriptionsResponse::generated_message_descriptor_data()); + messages.push(DeleteTopicRequest::generated_message_descriptor_data()); + messages.push(Subscription::generated_message_descriptor_data()); + messages.push(PushConfig::generated_message_descriptor_data()); + messages.push(ReceivedMessage::generated_message_descriptor_data()); + messages.push(GetSubscriptionRequest::generated_message_descriptor_data()); + messages.push(ListSubscriptionsRequest::generated_message_descriptor_data()); + messages.push(ListSubscriptionsResponse::generated_message_descriptor_data()); + messages.push(DeleteSubscriptionRequest::generated_message_descriptor_data()); + messages.push(ModifyPushConfigRequest::generated_message_descriptor_data()); + messages.push(PullRequest::generated_message_descriptor_data()); + messages.push(PullResponse::generated_message_descriptor_data()); + messages.push(ModifyAckDeadlineRequest::generated_message_descriptor_data()); + messages.push(AcknowledgeRequest::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/rpc/code.rs b/googleapis-raw/src/rpc/code.rs index 39d9f8a..5e2cc99 100644 --- a/googleapis-raw/src/rpc/code.rs +++ b/googleapis-raw/src/rpc/code.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,36 +16,64 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/rpc/code.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// The canonical error codes for Google APIs. +/// +/// +/// Sometimes multiple error codes may apply. Services should return +/// the most specific error code that applies. For example, prefer +/// `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. +/// Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.rpc.Code) pub enum Code { + // @@protoc_insertion_point(enum_value:google.rpc.Code.OK) OK = 0, + // @@protoc_insertion_point(enum_value:google.rpc.Code.CANCELLED) CANCELLED = 1, + // @@protoc_insertion_point(enum_value:google.rpc.Code.UNKNOWN) UNKNOWN = 2, + // @@protoc_insertion_point(enum_value:google.rpc.Code.INVALID_ARGUMENT) INVALID_ARGUMENT = 3, + // @@protoc_insertion_point(enum_value:google.rpc.Code.DEADLINE_EXCEEDED) DEADLINE_EXCEEDED = 4, + // @@protoc_insertion_point(enum_value:google.rpc.Code.NOT_FOUND) NOT_FOUND = 5, + // @@protoc_insertion_point(enum_value:google.rpc.Code.ALREADY_EXISTS) ALREADY_EXISTS = 6, + // @@protoc_insertion_point(enum_value:google.rpc.Code.PERMISSION_DENIED) PERMISSION_DENIED = 7, + // @@protoc_insertion_point(enum_value:google.rpc.Code.UNAUTHENTICATED) UNAUTHENTICATED = 16, + // @@protoc_insertion_point(enum_value:google.rpc.Code.RESOURCE_EXHAUSTED) RESOURCE_EXHAUSTED = 8, + // @@protoc_insertion_point(enum_value:google.rpc.Code.FAILED_PRECONDITION) FAILED_PRECONDITION = 9, + // @@protoc_insertion_point(enum_value:google.rpc.Code.ABORTED) ABORTED = 10, + // @@protoc_insertion_point(enum_value:google.rpc.Code.OUT_OF_RANGE) OUT_OF_RANGE = 11, + // @@protoc_insertion_point(enum_value:google.rpc.Code.UNIMPLEMENTED) UNIMPLEMENTED = 12, + // @@protoc_insertion_point(enum_value:google.rpc.Code.INTERNAL) INTERNAL = 13, + // @@protoc_insertion_point(enum_value:google.rpc.Code.UNAVAILABLE) UNAVAILABLE = 14, + // @@protoc_insertion_point(enum_value:google.rpc.Code.DATA_LOSS) DATA_LOSS = 15, } -impl ::protobuf::ProtobufEnum for Code { +impl ::protobuf::Enum for Code { + const NAME: &'static str = "Code"; + fn value(&self) -> i32 { *self as i32 } @@ -72,38 +101,78 @@ impl ::protobuf::ProtobufEnum for Code { } } - fn values() -> &'static [Self] { - static values: &'static [Code] = &[ - Code::OK, - Code::CANCELLED, - Code::UNKNOWN, - Code::INVALID_ARGUMENT, - Code::DEADLINE_EXCEEDED, - Code::NOT_FOUND, - Code::ALREADY_EXISTS, - Code::PERMISSION_DENIED, - Code::UNAUTHENTICATED, - Code::RESOURCE_EXHAUSTED, - Code::FAILED_PRECONDITION, - Code::ABORTED, - Code::OUT_OF_RANGE, - Code::UNIMPLEMENTED, - Code::INTERNAL, - Code::UNAVAILABLE, - Code::DATA_LOSS, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "OK" => ::std::option::Option::Some(Code::OK), + "CANCELLED" => ::std::option::Option::Some(Code::CANCELLED), + "UNKNOWN" => ::std::option::Option::Some(Code::UNKNOWN), + "INVALID_ARGUMENT" => ::std::option::Option::Some(Code::INVALID_ARGUMENT), + "DEADLINE_EXCEEDED" => ::std::option::Option::Some(Code::DEADLINE_EXCEEDED), + "NOT_FOUND" => ::std::option::Option::Some(Code::NOT_FOUND), + "ALREADY_EXISTS" => ::std::option::Option::Some(Code::ALREADY_EXISTS), + "PERMISSION_DENIED" => ::std::option::Option::Some(Code::PERMISSION_DENIED), + "UNAUTHENTICATED" => ::std::option::Option::Some(Code::UNAUTHENTICATED), + "RESOURCE_EXHAUSTED" => ::std::option::Option::Some(Code::RESOURCE_EXHAUSTED), + "FAILED_PRECONDITION" => ::std::option::Option::Some(Code::FAILED_PRECONDITION), + "ABORTED" => ::std::option::Option::Some(Code::ABORTED), + "OUT_OF_RANGE" => ::std::option::Option::Some(Code::OUT_OF_RANGE), + "UNIMPLEMENTED" => ::std::option::Option::Some(Code::UNIMPLEMENTED), + "INTERNAL" => ::std::option::Option::Some(Code::INTERNAL), + "UNAVAILABLE" => ::std::option::Option::Some(Code::UNAVAILABLE), + "DATA_LOSS" => ::std::option::Option::Some(Code::DATA_LOSS), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Code", file_descriptor_proto()) - }) - } + const VALUES: &'static [Code] = &[ + Code::OK, + Code::CANCELLED, + Code::UNKNOWN, + Code::INVALID_ARGUMENT, + Code::DEADLINE_EXCEEDED, + Code::NOT_FOUND, + Code::ALREADY_EXISTS, + Code::PERMISSION_DENIED, + Code::UNAUTHENTICATED, + Code::RESOURCE_EXHAUSTED, + Code::FAILED_PRECONDITION, + Code::ABORTED, + Code::OUT_OF_RANGE, + Code::UNIMPLEMENTED, + Code::INTERNAL, + Code::UNAVAILABLE, + Code::DATA_LOSS, + ]; } -impl ::std::marker::Copy for Code { +impl ::protobuf::EnumFull for Code { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("Code").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + Code::OK => 0, + Code::CANCELLED => 1, + Code::UNKNOWN => 2, + Code::INVALID_ARGUMENT => 3, + Code::DEADLINE_EXCEEDED => 4, + Code::NOT_FOUND => 5, + Code::ALREADY_EXISTS => 6, + Code::PERMISSION_DENIED => 7, + Code::UNAUTHENTICATED => 8, + Code::RESOURCE_EXHAUSTED => 9, + Code::FAILED_PRECONDITION => 10, + Code::ABORTED => 11, + Code::OUT_OF_RANGE => 12, + Code::UNIMPLEMENTED => 13, + Code::INTERNAL => 14, + Code::UNAVAILABLE => 15, + Code::DATA_LOSS => 16, + }; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for Code { @@ -112,9 +181,9 @@ impl ::std::default::Default for Code { } } -impl ::protobuf::reflect::ProtobufValue for Code { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl Code { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Code") } } @@ -129,8 +198,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bU\ NAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0fBX\n\x0ecom.google.rpcB\tCo\ deProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\ - \x02\x03RPCJ\x806\n\x07\x12\x05\x0e\0\xb9\x01\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\ + \x02\x03RPCJ\xb15\n\x07\x12\x05\x0e\0\xb8\x01\x01\n\xbd\x04\n\x01\x0c\ + \x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\x20Inc.\n\n\ \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -147,16 +216,16 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0*\n\t\n\x02\x08\ \x08\x12\x03\x14\0*\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\ \x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0!\n\t\n\x02\x08$\x12\x03\x16\0!\ - \n\xcc\x02\n\x02\x05\0\x12\x05\x1f\0\xb9\x01\x01\x1a\xbe\x02\x20The\x20c\ - anonical\x20error\x20codes\x20for\x20gRPC\x20APIs.\n\n\n\x20Sometimes\ + \n\xce\x02\n\x02\x05\0\x12\x05\x1f\0\xb8\x01\x01\x1a\xc0\x02\x20The\x20c\ + anonical\x20error\x20codes\x20for\x20Google\x20APIs.\n\n\n\x20Sometimes\ \x20multiple\x20error\x20codes\x20may\x20apply.\x20\x20Services\x20shoul\ d\x20return\n\x20the\x20most\x20specific\x20error\x20code\x20that\x20app\ lies.\x20\x20For\x20example,\x20prefer\n\x20`OUT_OF_RANGE`\x20over\x20`F\ AILED_PRECONDITION`\x20if\x20both\x20codes\x20apply.\n\x20Similarly\x20p\ refer\x20`NOT_FOUND`\x20or\x20`ALREADY_EXISTS`\x20over\x20`FAILED_PRECON\ - DITION`.\n\n\n\n\x03\x05\0\x01\x12\x03\x1f\x05\t\nH\n\x04\x05\0\x02\0\ - \x12\x03#\x02\t\x1a;\x20Not\x20an\x20error;\x20returned\x20on\x20success\ - .\n\n\x20HTTP\x20Mapping:\x20200\x20OK\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ + DITION`.\n\n\n\n\x03\x05\0\x01\x12\x03\x1f\x05\t\nG\n\x04\x05\0\x02\0\ + \x12\x03#\x02\t\x1a:\x20Not\x20an\x20error;\x20returned\x20on\x20success\ + \n\n\x20HTTP\x20Mapping:\x20200\x20OK\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ \x03#\x02\x04\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03#\x07\x08\nn\n\x04\x05\ \0\x02\x01\x12\x03(\x02\x10\x1aa\x20The\x20operation\x20was\x20cancelled\ ,\x20typically\x20by\x20the\x20caller.\n\n\x20HTTP\x20Mapping:\x20499\ @@ -192,7 +261,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20(e.g.,\x20file\x20or\x20directory)\x20was\x20not\x20found.\n\n\x20No\ te\x20to\x20server\x20developers:\x20if\x20a\x20request\x20is\x20denied\ \x20for\x20an\x20entire\x20class\n\x20of\x20users,\x20such\x20as\x20grad\ - ual\x20feature\x20rollout\x20or\x20undocumented\x20allowlist,\n\x20`NOT_\ + ual\x20feature\x20rollout\x20or\x20undocumented\x20whitelist,\n\x20`NOT_\ FOUND`\x20may\x20be\x20used.\x20If\x20a\x20request\x20is\x20denied\x20fo\ r\x20some\x20users\x20within\n\x20a\x20class\x20of\x20users,\x20such\x20\ as\x20user-based\x20access\x20control,\x20`PERMISSION_DENIED`\n\x20must\ @@ -224,8 +293,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20per-user\x20quota,\x20or\n\x20perhaps\x20the\x20entire\x20file\x20sy\ stem\x20is\x20out\x20of\x20space.\n\n\x20HTTP\x20Mapping:\x20429\x20Too\ \x20Many\x20Requests\n\n\x0c\n\x05\x05\0\x02\t\x01\x12\x03k\x02\x14\n\ - \x0c\n\x05\x05\0\x02\t\x02\x12\x03k\x17\x18\n\xe4\x07\n\x04\x05\0\x02\n\ - \x12\x03\x7f\x02\x1a\x1a\xd6\x07\x20The\x20operation\x20was\x20rejected\ + \x0c\n\x05\x05\0\x02\t\x02\x12\x03k\x17\x18\n\xd8\x07\n\x04\x05\0\x02\n\ + \x12\x03\x7f\x02\x1a\x1a\xca\x07\x20The\x20operation\x20was\x20rejected\ \x20because\x20the\x20system\x20is\x20not\x20in\x20a\x20state\n\x20requi\ red\x20for\x20the\x20operation's\x20execution.\x20\x20For\x20example,\ \x20the\x20directory\n\x20to\x20be\x20deleted\x20is\x20non-empty,\x20an\ @@ -235,80 +304,95 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20`ABORTED`,\x20and\x20`UNAVAILABLE`:\n\x20\x20(a)\x20Use\x20`UNAVAILA\ BLE`\x20if\x20the\x20client\x20can\x20retry\x20just\x20the\x20failing\ \x20call.\n\x20\x20(b)\x20Use\x20`ABORTED`\x20if\x20the\x20client\x20sho\ - uld\x20retry\x20at\x20a\x20higher\x20level.\x20For\n\x20\x20\x20\x20\x20\ - \x20example,\x20when\x20a\x20client-specified\x20test-and-set\x20fails,\ - \x20indicating\x20the\n\x20\x20\x20\x20\x20\x20client\x20should\x20resta\ - rt\x20a\x20read-modify-write\x20sequence.\n\x20\x20(c)\x20Use\x20`FAILED\ - _PRECONDITION`\x20if\x20the\x20client\x20should\x20not\x20retry\x20until\ - \n\x20\x20\x20\x20\x20\x20the\x20system\x20state\x20has\x20been\x20expli\ - citly\x20fixed.\x20For\x20example,\x20if\x20an\x20\"rmdir\"\n\x20\x20\ - \x20\x20\x20\x20fails\x20because\x20the\x20directory\x20is\x20non-empty,\ - \x20`FAILED_PRECONDITION`\n\x20\x20\x20\x20\x20\x20should\x20be\x20retur\ - ned\x20since\x20the\x20client\x20should\x20not\x20retry\x20unless\n\x20\ - \x20\x20\x20\x20\x20the\x20files\x20are\x20deleted\x20from\x20the\x20dir\ - ectory.\n\n\x20HTTP\x20Mapping:\x20400\x20Bad\x20Request\n\n\x0c\n\x05\ - \x05\0\x02\n\x01\x12\x03\x7f\x02\x15\n\x0c\n\x05\x05\0\x02\n\x02\x12\x03\ - \x7f\x18\x19\n\x8c\x02\n\x04\x05\0\x02\x0b\x12\x04\x88\x01\x02\x0f\x1a\ - \xfd\x01\x20The\x20operation\x20was\x20aborted,\x20typically\x20due\x20t\ - o\x20a\x20concurrency\x20issue\x20such\x20as\n\x20a\x20sequencer\x20chec\ - k\x20failure\x20or\x20transaction\x20abort.\n\n\x20See\x20the\x20guideli\ - nes\x20above\x20for\x20deciding\x20between\x20`FAILED_PRECONDITION`,\n\ - \x20`ABORTED`,\x20and\x20`UNAVAILABLE`.\n\n\x20HTTP\x20Mapping:\x20409\ - \x20Conflict\n\n\r\n\x05\x05\0\x02\x0b\x01\x12\x04\x88\x01\x02\t\n\r\n\ - \x05\x05\0\x02\x0b\x02\x12\x04\x88\x01\x0c\x0e\n\x85\x06\n\x04\x05\0\x02\ - \x0c\x12\x04\x9b\x01\x02\x14\x1a\xf6\x05\x20The\x20operation\x20was\x20a\ - ttempted\x20past\x20the\x20valid\x20range.\x20\x20E.g.,\x20seeking\x20or\ - \n\x20reading\x20past\x20end-of-file.\n\n\x20Unlike\x20`INVALID_ARGUMENT\ - `,\x20this\x20error\x20indicates\x20a\x20problem\x20that\x20may\n\x20be\ - \x20fixed\x20if\x20the\x20system\x20state\x20changes.\x20For\x20example,\ - \x20a\x2032-bit\x20file\n\x20system\x20will\x20generate\x20`INVALID_ARGU\ - MENT`\x20if\x20asked\x20to\x20read\x20at\x20an\n\x20offset\x20that\x20is\ - \x20not\x20in\x20the\x20range\x20[0,2^32-1],\x20but\x20it\x20will\x20gen\ - erate\n\x20`OUT_OF_RANGE`\x20if\x20asked\x20to\x20read\x20from\x20an\x20\ - offset\x20past\x20the\x20current\n\x20file\x20size.\n\n\x20There\x20is\ - \x20a\x20fair\x20bit\x20of\x20overlap\x20between\x20`FAILED_PRECONDITION\ - `\x20and\n\x20`OUT_OF_RANGE`.\x20\x20We\x20recommend\x20using\x20`OUT_OF\ - _RANGE`\x20(the\x20more\x20specific\n\x20error)\x20when\x20it\x20applies\ - \x20so\x20that\x20callers\x20who\x20are\x20iterating\x20through\n\x20a\ - \x20space\x20can\x20easily\x20look\x20for\x20an\x20`OUT_OF_RANGE`\x20err\ - or\x20to\x20detect\x20when\n\x20they\x20are\x20done.\n\n\x20HTTP\x20Mapp\ - ing:\x20400\x20Bad\x20Request\n\n\r\n\x05\x05\0\x02\x0c\x01\x12\x04\x9b\ - \x01\x02\x0e\n\r\n\x05\x05\0\x02\x0c\x02\x12\x04\x9b\x01\x11\x13\n\x82\ - \x01\n\x04\x05\0\x02\r\x12\x04\xa1\x01\x02\x15\x1at\x20The\x20operation\ - \x20is\x20not\x20implemented\x20or\x20is\x20not\x20supported/enabled\x20\ - in\x20this\n\x20service.\n\n\x20HTTP\x20Mapping:\x20501\x20Not\x20Implem\ - ented\n\n\r\n\x05\x05\0\x02\r\x01\x12\x04\xa1\x01\x02\x0f\n\r\n\x05\x05\ - \0\x02\r\x02\x12\x04\xa1\x01\x12\x14\n\xd3\x01\n\x04\x05\0\x02\x0e\x12\ - \x04\xa8\x01\x02\x10\x1a\xc4\x01\x20Internal\x20errors.\x20\x20This\x20m\ - eans\x20that\x20some\x20invariants\x20expected\x20by\x20the\n\x20underly\ - ing\x20system\x20have\x20been\x20broken.\x20\x20This\x20error\x20code\ - \x20is\x20reserved\n\x20for\x20serious\x20errors.\n\n\x20HTTP\x20Mapping\ - :\x20500\x20Internal\x20Server\x20Error\n\n\r\n\x05\x05\0\x02\x0e\x01\ - \x12\x04\xa8\x01\x02\n\n\r\n\x05\x05\0\x02\x0e\x02\x12\x04\xa8\x01\r\x0f\ - \n\xea\x02\n\x04\x05\0\x02\x0f\x12\x04\xb3\x01\x02\x13\x1a\xdb\x02\x20Th\ - e\x20service\x20is\x20currently\x20unavailable.\x20\x20This\x20is\x20mos\ - t\x20likely\x20a\n\x20transient\x20condition,\x20which\x20can\x20be\x20c\ - orrected\x20by\x20retrying\x20with\n\x20a\x20backoff.\x20Note\x20that\ - \x20it\x20is\x20not\x20always\x20safe\x20to\x20retry\n\x20non-idempotent\ - \x20operations.\n\n\x20See\x20the\x20guidelines\x20above\x20for\x20decid\ - ing\x20between\x20`FAILED_PRECONDITION`,\n\x20`ABORTED`,\x20and\x20`UNAV\ - AILABLE`.\n\n\x20HTTP\x20Mapping:\x20503\x20Service\x20Unavailable\n\n\r\ - \n\x05\x05\0\x02\x0f\x01\x12\x04\xb3\x01\x02\r\n\r\n\x05\x05\0\x02\x0f\ - \x02\x12\x04\xb3\x01\x10\x12\n`\n\x04\x05\0\x02\x10\x12\x04\xb8\x01\x02\ - \x11\x1aR\x20Unrecoverable\x20data\x20loss\x20or\x20corruption.\n\n\x20H\ - TTP\x20Mapping:\x20500\x20Internal\x20Server\x20Error\n\n\r\n\x05\x05\0\ - \x02\x10\x01\x12\x04\xb8\x01\x02\x0b\n\r\n\x05\x05\0\x02\x10\x02\x12\x04\ - \xb8\x01\x0e\x10b\x06proto3\ + uld\x20retry\x20at\x20a\x20higher\x20level\n\x20\x20\x20\x20\x20\x20(e.g\ + .,\x20when\x20a\x20client-specified\x20test-and-set\x20fails,\x20indicat\ + ing\x20the\n\x20\x20\x20\x20\x20\x20client\x20should\x20restart\x20a\x20\ + read-modify-write\x20sequence).\n\x20\x20(c)\x20Use\x20`FAILED_PRECONDIT\ + ION`\x20if\x20the\x20client\x20should\x20not\x20retry\x20until\n\x20\x20\ + \x20\x20\x20\x20the\x20system\x20state\x20has\x20been\x20explicitly\x20f\ + ixed.\x20\x20E.g.,\x20if\x20an\x20\"rmdir\"\n\x20\x20\x20\x20\x20\x20fai\ + ls\x20because\x20the\x20directory\x20is\x20non-empty,\x20`FAILED_PRECOND\ + ITION`\n\x20\x20\x20\x20\x20\x20should\x20be\x20returned\x20since\x20the\ + \x20client\x20should\x20not\x20retry\x20unless\n\x20\x20\x20\x20\x20\x20\ + the\x20files\x20are\x20deleted\x20from\x20the\x20directory.\n\n\x20HTTP\ + \x20Mapping:\x20400\x20Bad\x20Request\n\n\x0c\n\x05\x05\0\x02\n\x01\x12\ + \x03\x7f\x02\x15\n\x0c\n\x05\x05\0\x02\n\x02\x12\x03\x7f\x18\x19\n\x8c\ + \x02\n\x04\x05\0\x02\x0b\x12\x04\x88\x01\x02\x0f\x1a\xfd\x01\x20The\x20o\ + peration\x20was\x20aborted,\x20typically\x20due\x20to\x20a\x20concurrenc\ + y\x20issue\x20such\x20as\n\x20a\x20sequencer\x20check\x20failure\x20or\ + \x20transaction\x20abort.\n\n\x20See\x20the\x20guidelines\x20above\x20fo\ + r\x20deciding\x20between\x20`FAILED_PRECONDITION`,\n\x20`ABORTED`,\x20an\ + d\x20`UNAVAILABLE`.\n\n\x20HTTP\x20Mapping:\x20409\x20Conflict\n\n\r\n\ + \x05\x05\0\x02\x0b\x01\x12\x04\x88\x01\x02\t\n\r\n\x05\x05\0\x02\x0b\x02\ + \x12\x04\x88\x01\x0c\x0e\n\x85\x06\n\x04\x05\0\x02\x0c\x12\x04\x9b\x01\ + \x02\x14\x1a\xf6\x05\x20The\x20operation\x20was\x20attempted\x20past\x20\ + the\x20valid\x20range.\x20\x20E.g.,\x20seeking\x20or\n\x20reading\x20pas\ + t\x20end-of-file.\n\n\x20Unlike\x20`INVALID_ARGUMENT`,\x20this\x20error\ + \x20indicates\x20a\x20problem\x20that\x20may\n\x20be\x20fixed\x20if\x20t\ + he\x20system\x20state\x20changes.\x20For\x20example,\x20a\x2032-bit\x20f\ + ile\n\x20system\x20will\x20generate\x20`INVALID_ARGUMENT`\x20if\x20asked\ + \x20to\x20read\x20at\x20an\n\x20offset\x20that\x20is\x20not\x20in\x20the\ + \x20range\x20[0,2^32-1],\x20but\x20it\x20will\x20generate\n\x20`OUT_OF_R\ + ANGE`\x20if\x20asked\x20to\x20read\x20from\x20an\x20offset\x20past\x20th\ + e\x20current\n\x20file\x20size.\n\n\x20There\x20is\x20a\x20fair\x20bit\ + \x20of\x20overlap\x20between\x20`FAILED_PRECONDITION`\x20and\n\x20`OUT_O\ + F_RANGE`.\x20\x20We\x20recommend\x20using\x20`OUT_OF_RANGE`\x20(the\x20m\ + ore\x20specific\n\x20error)\x20when\x20it\x20applies\x20so\x20that\x20ca\ + llers\x20who\x20are\x20iterating\x20through\n\x20a\x20space\x20can\x20ea\ + sily\x20look\x20for\x20an\x20`OUT_OF_RANGE`\x20error\x20to\x20detect\x20\ + when\n\x20they\x20are\x20done.\n\n\x20HTTP\x20Mapping:\x20400\x20Bad\x20\ + Request\n\n\r\n\x05\x05\0\x02\x0c\x01\x12\x04\x9b\x01\x02\x0e\n\r\n\x05\ + \x05\0\x02\x0c\x02\x12\x04\x9b\x01\x11\x13\n\x82\x01\n\x04\x05\0\x02\r\ + \x12\x04\xa1\x01\x02\x15\x1at\x20The\x20operation\x20is\x20not\x20implem\ + ented\x20or\x20is\x20not\x20supported/enabled\x20in\x20this\n\x20service\ + .\n\n\x20HTTP\x20Mapping:\x20501\x20Not\x20Implemented\n\n\r\n\x05\x05\0\ + \x02\r\x01\x12\x04\xa1\x01\x02\x0f\n\r\n\x05\x05\0\x02\r\x02\x12\x04\xa1\ + \x01\x12\x14\n\xd3\x01\n\x04\x05\0\x02\x0e\x12\x04\xa8\x01\x02\x10\x1a\ + \xc4\x01\x20Internal\x20errors.\x20\x20This\x20means\x20that\x20some\x20\ + invariants\x20expected\x20by\x20the\n\x20underlying\x20system\x20have\ + \x20been\x20broken.\x20\x20This\x20error\x20code\x20is\x20reserved\n\x20\ + for\x20serious\x20errors.\n\n\x20HTTP\x20Mapping:\x20500\x20Internal\x20\ + Server\x20Error\n\n\r\n\x05\x05\0\x02\x0e\x01\x12\x04\xa8\x01\x02\n\n\r\ + \n\x05\x05\0\x02\x0e\x02\x12\x04\xa8\x01\r\x0f\n\xa5\x02\n\x04\x05\0\x02\ + \x0f\x12\x04\xb2\x01\x02\x13\x1a\x96\x02\x20The\x20service\x20is\x20curr\ + ently\x20unavailable.\x20\x20This\x20is\x20most\x20likely\x20a\n\x20tran\ + sient\x20condition,\x20which\x20can\x20be\x20corrected\x20by\x20retrying\ + \x20with\n\x20a\x20backoff.\n\n\x20See\x20the\x20guidelines\x20above\x20\ + for\x20deciding\x20between\x20`FAILED_PRECONDITION`,\n\x20`ABORTED`,\x20\ + and\x20`UNAVAILABLE`.\n\n\x20HTTP\x20Mapping:\x20503\x20Service\x20Unava\ + ilable\n\n\r\n\x05\x05\0\x02\x0f\x01\x12\x04\xb2\x01\x02\r\n\r\n\x05\x05\ + \0\x02\x0f\x02\x12\x04\xb2\x01\x10\x12\n`\n\x04\x05\0\x02\x10\x12\x04\ + \xb7\x01\x02\x11\x1aR\x20Unrecoverable\x20data\x20loss\x20or\x20corrupti\ + on.\n\n\x20HTTP\x20Mapping:\x20500\x20Internal\x20Server\x20Error\n\n\r\ + \n\x05\x05\0\x02\x10\x01\x12\x04\xb7\x01\x02\x0b\n\r\n\x05\x05\0\x02\x10\ + \x02\x12\x04\xb7\x01\x0e\x10b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(Code::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/rpc/error_details.rs b/googleapis-raw/src/rpc/error_details.rs index 2f4ce75..f680280 100644 --- a/googleapis-raw/src/rpc/error_details.rs +++ b/googleapis-raw/src/rpc/error_details.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,259 +16,38 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/rpc/error_details.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct ErrorInfo { - // message fields - pub reason: ::std::string::String, - pub domain: ::std::string::String, - pub metadata: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ErrorInfo { - fn default() -> &'a ErrorInfo { - ::default_instance() - } -} - -impl ErrorInfo { - pub fn new() -> ErrorInfo { - ::std::default::Default::default() - } - - // string reason = 1; - - - pub fn get_reason(&self) -> &str { - &self.reason - } - pub fn clear_reason(&mut self) { - self.reason.clear(); - } - - // Param is passed by value, moved - pub fn set_reason(&mut self, v: ::std::string::String) { - self.reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_reason(&mut self) -> &mut ::std::string::String { - &mut self.reason - } - - // Take field - pub fn take_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.reason, ::std::string::String::new()) - } - - // string domain = 2; - - - pub fn get_domain(&self) -> &str { - &self.domain - } - pub fn clear_domain(&mut self) { - self.domain.clear(); - } - - // Param is passed by value, moved - pub fn set_domain(&mut self, v: ::std::string::String) { - self.domain = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_domain(&mut self) -> &mut ::std::string::String { - &mut self.domain - } - - // Take field - pub fn take_domain(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.domain, ::std::string::String::new()) - } - - // repeated .google.rpc.ErrorInfo.MetadataEntry metadata = 3; - - - pub fn get_metadata(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.metadata - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.metadata = v; - } - - // Mutable pointer to the field. - pub fn mut_metadata(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.metadata - } - - // Take field - pub fn take_metadata(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.metadata, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for ErrorInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.reason)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.domain)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.metadata)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.reason.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.reason); - } - if !self.domain.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.domain); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.metadata); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.reason.is_empty() { - os.write_string(1, &self.reason)?; - } - if !self.domain.is_empty() { - os.write_string(2, &self.domain)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.metadata, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ErrorInfo { - ErrorInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "reason", - |m: &ErrorInfo| { &m.reason }, - |m: &mut ErrorInfo| { &mut m.reason }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "domain", - |m: &ErrorInfo| { &m.domain }, - |m: &mut ErrorInfo| { &mut m.domain }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "metadata", - |m: &ErrorInfo| { &m.metadata }, - |m: &mut ErrorInfo| { &mut m.metadata }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ErrorInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ErrorInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ErrorInfo::new) - } -} - -impl ::protobuf::Clear for ErrorInfo { - fn clear(&mut self) { - self.reason.clear(); - self.domain.clear(); - self.metadata.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ErrorInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ErrorInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// Describes when the clients can retry a failed request. Clients could ignore +/// the recommendation here or retry when this information is missing from error +/// responses. +/// +/// It's always recommended that clients should use exponential backoff when +/// retrying. +/// +/// Clients should wait until `retry_delay` amount of time has passed since +/// receiving the error response before retrying. If retrying requests also +/// fail, clients should use an exponential backoff scheme to gradually increase +/// the delay between retries based on `retry_delay`, until either a maximum +/// number of retires have been reached or a maximum retry delay cap has been +/// reached. +// @@protoc_insertion_point(message:google.rpc.RetryInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct RetryInfo { // message fields - pub retry_delay: ::protobuf::SingularPtrField<::protobuf::well_known_types::Duration>, + /// Clients should wait at least this long between retrying the same request. + // @@protoc_insertion_point(field:google.rpc.RetryInfo.retry_delay) + pub retry_delay: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.RetryInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a RetryInfo { @@ -281,59 +61,37 @@ impl RetryInfo { ::std::default::Default::default() } - // .google.protobuf.Duration retry_delay = 1; - - - pub fn get_retry_delay(&self) -> &::protobuf::well_known_types::Duration { - self.retry_delay.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance()) - } - pub fn clear_retry_delay(&mut self) { - self.retry_delay.clear(); - } - - pub fn has_retry_delay(&self) -> bool { - self.retry_delay.is_some() - } - - // Param is passed by value, moved - pub fn set_retry_delay(&mut self, v: ::protobuf::well_known_types::Duration) { - self.retry_delay = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_retry_delay(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if self.retry_delay.is_none() { - self.retry_delay.set_default(); - } - self.retry_delay.as_mut().unwrap() - } - - // Take field - pub fn take_retry_delay(&mut self) -> ::protobuf::well_known_types::Duration { - self.retry_delay.take().unwrap_or_else(|| ::protobuf::well_known_types::Duration::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "retry_delay", + |m: &RetryInfo| { &m.retry_delay }, + |m: &mut RetryInfo| { &mut m.retry_delay }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RetryInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for RetryInfo { + const NAME: &'static str = "RetryInfo"; + fn is_initialized(&self) -> bool { - for v in &self.retry_delay { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.retry_delay)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.retry_delay)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -342,107 +100,82 @@ impl ::protobuf::Message for RetryInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.retry_delay.as_ref() { + if let Some(v) = self.retry_delay.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.retry_delay.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.retry_delay.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> RetryInfo { RetryInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Duration>>( - "retry_delay", - |m: &RetryInfo| { &m.retry_delay }, - |m: &mut RetryInfo| { &mut m.retry_delay }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RetryInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.retry_delay.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static RetryInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RetryInfo::new) + static instance: RetryInfo = RetryInfo { + retry_delay: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RetryInfo { - fn clear(&mut self) { - self.retry_delay.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for RetryInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RetryInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for RetryInfo { +impl ::std::fmt::Display for RetryInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for RetryInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Describes additional debugging info. +// @@protoc_insertion_point(message:google.rpc.DebugInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DebugInfo { // message fields - pub stack_entries: ::protobuf::RepeatedField<::std::string::String>, + /// The stack trace entries indicating where the error occurred. + // @@protoc_insertion_point(field:google.rpc.DebugInfo.stack_entries) + pub stack_entries: ::std::vec::Vec<::std::string::String>, + /// Additional debugging information provided by the server. + // @@protoc_insertion_point(field:google.rpc.DebugInfo.detail) pub detail: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.DebugInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DebugInfo { @@ -456,75 +189,45 @@ impl DebugInfo { ::std::default::Default::default() } - // repeated string stack_entries = 1; - - - pub fn get_stack_entries(&self) -> &[::std::string::String] { - &self.stack_entries - } - pub fn clear_stack_entries(&mut self) { - self.stack_entries.clear(); - } - - // Param is passed by value, moved - pub fn set_stack_entries(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.stack_entries = v; - } - - // Mutable pointer to the field. - pub fn mut_stack_entries(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.stack_entries - } - - // Take field - pub fn take_stack_entries(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.stack_entries, ::protobuf::RepeatedField::new()) - } - - // string detail = 2; - - - pub fn get_detail(&self) -> &str { - &self.detail - } - pub fn clear_detail(&mut self) { - self.detail.clear(); - } - - // Param is passed by value, moved - pub fn set_detail(&mut self, v: ::std::string::String) { - self.detail = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_detail(&mut self) -> &mut ::std::string::String { - &mut self.detail - } - - // Take field - pub fn take_detail(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.detail, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "stack_entries", + |m: &DebugInfo| { &m.stack_entries }, + |m: &mut DebugInfo| { &mut m.stack_entries }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "detail", + |m: &DebugInfo| { &m.detail }, + |m: &mut DebugInfo| { &mut m.detail }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DebugInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for DebugInfo { + const NAME: &'static str = "DebugInfo"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.stack_entries)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.stack_entries.push(is.read_string()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.detail)?; + 18 => { + self.detail = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -533,7 +236,7 @@ impl ::protobuf::Message for DebugInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.stack_entries { my_size += ::protobuf::rt::string_size(1, &value); @@ -541,107 +244,88 @@ impl ::protobuf::Message for DebugInfo { if !self.detail.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.detail); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.stack_entries { os.write_string(1, &v)?; }; if !self.detail.is_empty() { os.write_string(2, &self.detail)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DebugInfo { DebugInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "stack_entries", - |m: &DebugInfo| { &m.stack_entries }, - |m: &mut DebugInfo| { &mut m.stack_entries }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "detail", - |m: &DebugInfo| { &m.detail }, - |m: &mut DebugInfo| { &mut m.detail }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DebugInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.stack_entries.clear(); + self.detail.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DebugInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DebugInfo::new) + static instance: DebugInfo = DebugInfo { + stack_entries: ::std::vec::Vec::new(), + detail: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DebugInfo { - fn clear(&mut self) { - self.stack_entries.clear(); - self.detail.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DebugInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DebugInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for DebugInfo { +impl ::std::fmt::Display for DebugInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DebugInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Describes how a quota check failed. +/// +/// For example if a daily limit was exceeded for the calling project, +/// a service could respond with a QuotaFailure detail containing the project +/// id and the description of the quota limit that was exceeded. If the +/// calling project hasn't enabled the service in the developer console, then +/// a service could respond with the project id and set `service_disabled` +/// to true. +/// +/// Also see RetryDetail and Help types for other details about handling a +/// quota failure. +// @@protoc_insertion_point(message:google.rpc.QuotaFailure) +#[derive(PartialEq,Clone,Default,Debug)] pub struct QuotaFailure { // message fields - pub violations: ::protobuf::RepeatedField, + /// Describes all quota violations. + // @@protoc_insertion_point(field:google.rpc.QuotaFailure.violations) + pub violations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.QuotaFailure.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a QuotaFailure { @@ -655,51 +339,37 @@ impl QuotaFailure { ::std::default::Default::default() } - // repeated .google.rpc.QuotaFailure.Violation violations = 1; - - - pub fn get_violations(&self) -> &[QuotaFailure_Violation] { - &self.violations - } - pub fn clear_violations(&mut self) { - self.violations.clear(); - } - - // Param is passed by value, moved - pub fn set_violations(&mut self, v: ::protobuf::RepeatedField) { - self.violations = v; - } - - // Mutable pointer to the field. - pub fn mut_violations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.violations - } - - // Take field - pub fn take_violations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.violations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "violations", + |m: &QuotaFailure| { &m.violations }, + |m: &mut QuotaFailure| { &mut m.violations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QuotaFailure", + fields, + oneofs, + ) } } impl ::protobuf::Message for QuotaFailure { + const NAME: &'static str = "QuotaFailure"; + fn is_initialized(&self) -> bool { - for v in &self.violations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.violations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.violations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -708,307 +378,238 @@ impl ::protobuf::Message for QuotaFailure { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.violations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.violations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> QuotaFailure { QuotaFailure::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "violations", - |m: &QuotaFailure| { &m.violations }, - |m: &mut QuotaFailure| { &mut m.violations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaFailure", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.violations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static QuotaFailure { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QuotaFailure::new) + static instance: QuotaFailure = QuotaFailure { + violations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for QuotaFailure { - fn clear(&mut self) { - self.violations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for QuotaFailure { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("QuotaFailure").unwrap()).clone() } } -impl ::std::fmt::Debug for QuotaFailure { +impl ::std::fmt::Display for QuotaFailure { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for QuotaFailure { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `QuotaFailure` +pub mod quota_failure { + /// A message type used to describe a single quota violation. For example, a + /// daily quota or a custom quota that was exceeded. + // @@protoc_insertion_point(message:google.rpc.QuotaFailure.Violation) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Violation { + // message fields + /// The subject on which the quota check failed. + /// For example, "clientip:" or "project:". + // @@protoc_insertion_point(field:google.rpc.QuotaFailure.Violation.subject) + pub subject: ::std::string::String, + /// A description of how the quota check failed. Clients can use this + /// description to find more about the quota configuration in the service's + /// public documentation, or find the relevant quota limit to adjust through + /// developer console. + /// + /// For example: "Service disabled" or "Daily Limit for read operations + /// exceeded". + // @@protoc_insertion_point(field:google.rpc.QuotaFailure.Violation.description) + pub description: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.rpc.QuotaFailure.Violation.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Violation { + fn default() -> &'a Violation { + ::default_instance() + } } -} -#[derive(PartialEq,Clone,Default)] -pub struct QuotaFailure_Violation { - // message fields - pub subject: ::std::string::String, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + impl Violation { + pub fn new() -> Violation { + ::std::default::Default::default() + } -impl<'a> ::std::default::Default for &'a QuotaFailure_Violation { - fn default() -> &'a QuotaFailure_Violation { - ::default_instance() + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subject", + |m: &Violation| { &m.subject }, + |m: &mut Violation| { &mut m.subject }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Violation| { &m.description }, + |m: &mut Violation| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QuotaFailure.Violation", + fields, + oneofs, + ) + } } -} -impl QuotaFailure_Violation { - pub fn new() -> QuotaFailure_Violation { - ::std::default::Default::default() - } + impl ::protobuf::Message for Violation { + const NAME: &'static str = "Violation"; - // string subject = 1; + fn is_initialized(&self) -> bool { + true + } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.subject = is.read_string()?; + }, + 18 => { + self.description = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - pub fn get_subject(&self) -> &str { - &self.subject - } - pub fn clear_subject(&mut self) { - self.subject.clear(); - } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.subject.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.subject); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.description); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - // Param is passed by value, moved - pub fn set_subject(&mut self, v: ::std::string::String) { - self.subject = v; - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.subject.is_empty() { + os.write_string(1, &self.subject)?; + } + if !self.description.is_empty() { + os.write_string(2, &self.description)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subject(&mut self) -> &mut ::std::string::String { - &mut self.subject - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Take field - pub fn take_subject(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subject, ::std::string::String::new()) - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // string description = 2; + fn new() -> Violation { + Violation::new() + } + fn clear(&mut self) { + self.subject.clear(); + self.description.clear(); + self.special_fields.clear(); + } - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); + fn default_instance() -> &'static Violation { + static instance: Violation = Violation { + subject: ::std::string::String::new(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for QuotaFailure_Violation { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subject)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.subject.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.subject); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); + impl ::protobuf::MessageFull for Violation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("QuotaFailure.Violation").unwrap()).clone() } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.subject.is_empty() { - os.write_string(1, &self.subject)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; + impl ::std::fmt::Display for Violation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> QuotaFailure_Violation { - QuotaFailure_Violation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subject", - |m: &QuotaFailure_Violation| { &m.subject }, - |m: &mut QuotaFailure_Violation| { &mut m.subject }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &QuotaFailure_Violation| { &m.description }, - |m: &mut QuotaFailure_Violation| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QuotaFailure.Violation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static QuotaFailure_Violation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QuotaFailure_Violation::new) - } -} - -impl ::protobuf::Clear for QuotaFailure_Violation { - fn clear(&mut self) { - self.subject.clear(); - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for QuotaFailure_Violation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) } -} -impl ::protobuf::reflect::ProtobufValue for QuotaFailure_Violation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Violation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] +/// Describes what preconditions have failed. +/// +/// For example, if an RPC failed because it required the Terms of Service to be +/// acknowledged, it could list the terms of service violation in the +/// PreconditionFailure message. +// @@protoc_insertion_point(message:google.rpc.PreconditionFailure) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PreconditionFailure { // message fields - pub violations: ::protobuf::RepeatedField, + /// Describes all precondition violations. + // @@protoc_insertion_point(field:google.rpc.PreconditionFailure.violations) + pub violations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.PreconditionFailure.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PreconditionFailure { @@ -1022,51 +623,37 @@ impl PreconditionFailure { ::std::default::Default::default() } - // repeated .google.rpc.PreconditionFailure.Violation violations = 1; - - - pub fn get_violations(&self) -> &[PreconditionFailure_Violation] { - &self.violations - } - pub fn clear_violations(&mut self) { - self.violations.clear(); - } - - // Param is passed by value, moved - pub fn set_violations(&mut self, v: ::protobuf::RepeatedField) { - self.violations = v; - } - - // Mutable pointer to the field. - pub fn mut_violations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.violations - } - - // Take field - pub fn take_violations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.violations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "violations", + |m: &PreconditionFailure| { &m.violations }, + |m: &mut PreconditionFailure| { &mut m.violations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PreconditionFailure", + fields, + oneofs, + ) } } impl ::protobuf::Message for PreconditionFailure { + const NAME: &'static str = "PreconditionFailure"; + fn is_initialized(&self) -> bool { - for v in &self.violations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.violations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.violations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1075,349 +662,252 @@ impl ::protobuf::Message for PreconditionFailure { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.violations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.violations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PreconditionFailure { PreconditionFailure::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "violations", - |m: &PreconditionFailure| { &m.violations }, - |m: &mut PreconditionFailure| { &mut m.violations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PreconditionFailure", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.violations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static PreconditionFailure { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PreconditionFailure::new) + static instance: PreconditionFailure = PreconditionFailure { + violations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for PreconditionFailure { - fn clear(&mut self) { - self.violations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PreconditionFailure { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PreconditionFailure").unwrap()).clone() } } -impl ::std::fmt::Debug for PreconditionFailure { +impl ::std::fmt::Display for PreconditionFailure { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PreconditionFailure { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PreconditionFailure_Violation { - // message fields - pub field_type: ::std::string::String, - pub subject: ::std::string::String, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PreconditionFailure_Violation { - fn default() -> &'a PreconditionFailure_Violation { - ::default_instance() - } -} - -impl PreconditionFailure_Violation { - pub fn new() -> PreconditionFailure_Violation { - ::std::default::Default::default() - } - - // string type = 1; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `PreconditionFailure` +pub mod precondition_failure { + /// A message type used to describe a single precondition failure. + // @@protoc_insertion_point(message:google.rpc.PreconditionFailure.Violation) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Violation { + // message fields + /// The type of PreconditionFailure. We recommend using a service-specific + /// enum type to define the supported precondition violation types. For + /// example, "TOS" for "Terms of Service violation". + // @@protoc_insertion_point(field:google.rpc.PreconditionFailure.Violation.type) + pub type_: ::std::string::String, + /// The subject, relative to the type, that failed. + /// For example, "google.com/cloud" relative to the "TOS" type would + /// indicate which terms of service is being referenced. + // @@protoc_insertion_point(field:google.rpc.PreconditionFailure.Violation.subject) + pub subject: ::std::string::String, + /// A description of how the precondition failed. Developers can use this + /// description to understand how to fix the failure. + /// + /// For example: "Terms of service not accepted". + // @@protoc_insertion_point(field:google.rpc.PreconditionFailure.Violation.description) + pub description: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.rpc.PreconditionFailure.Violation.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Violation { + fn default() -> &'a Violation { + ::default_instance() + } } - // string subject = 2; - - - pub fn get_subject(&self) -> &str { - &self.subject - } - pub fn clear_subject(&mut self) { - self.subject.clear(); - } + impl Violation { + pub fn new() -> Violation { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_subject(&mut self, v: ::std::string::String) { - self.subject = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &Violation| { &m.type_ }, + |m: &mut Violation| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "subject", + |m: &Violation| { &m.subject }, + |m: &mut Violation| { &mut m.subject }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Violation| { &m.description }, + |m: &mut Violation| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PreconditionFailure.Violation", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_subject(&mut self) -> &mut ::std::string::String { - &mut self.subject - } + impl ::protobuf::Message for Violation { + const NAME: &'static str = "Violation"; - // Take field - pub fn take_subject(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.subject, ::std::string::String::new()) - } + fn is_initialized(&self) -> bool { + true + } - // string description = 3; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.type_ = is.read_string()?; + }, + 18 => { + self.subject = is.read_string()?; + }, + 26 => { + self.description = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_); + } + if !self.subject.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.subject); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.description); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_.is_empty() { + os.write_string(1, &self.type_)?; + } + if !self.subject.is_empty() { + os.write_string(2, &self.subject)?; + } + if !self.description.is_empty() { + os.write_string(3, &self.description)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} + fn new() -> Violation { + Violation::new() + } -impl ::protobuf::Message for PreconditionFailure_Violation { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.type_.clear(); + self.subject.clear(); + self.description.clear(); + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subject)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static Violation { + static instance: Violation = Violation { + type_: ::std::string::String::new(), + subject: ::std::string::String::new(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field_type); + impl ::protobuf::MessageFull for Violation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PreconditionFailure.Violation").unwrap()).clone() } - if !self.subject.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.subject); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.description); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field_type.is_empty() { - os.write_string(1, &self.field_type)?; - } - if !self.subject.is_empty() { - os.write_string(2, &self.subject)?; - } - if !self.description.is_empty() { - os.write_string(3, &self.description)?; + impl ::std::fmt::Display for Violation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PreconditionFailure_Violation { - PreconditionFailure_Violation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &PreconditionFailure_Violation| { &m.field_type }, - |m: &mut PreconditionFailure_Violation| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "subject", - |m: &PreconditionFailure_Violation| { &m.subject }, - |m: &mut PreconditionFailure_Violation| { &mut m.subject }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &PreconditionFailure_Violation| { &m.description }, - |m: &mut PreconditionFailure_Violation| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PreconditionFailure.Violation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PreconditionFailure_Violation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PreconditionFailure_Violation::new) - } -} - -impl ::protobuf::Clear for PreconditionFailure_Violation { - fn clear(&mut self) { - self.field_type.clear(); - self.subject.clear(); - self.description.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PreconditionFailure_Violation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PreconditionFailure_Violation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Violation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] +/// Describes violations in a client request. This error type focuses on the +/// syntactic aspects of the request. +// @@protoc_insertion_point(message:google.rpc.BadRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct BadRequest { // message fields - pub field_violations: ::protobuf::RepeatedField, + /// Describes all violations in a client request. + // @@protoc_insertion_point(field:google.rpc.BadRequest.field_violations) + pub field_violations: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.BadRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a BadRequest { @@ -1431,51 +921,37 @@ impl BadRequest { ::std::default::Default::default() } - // repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; - - - pub fn get_field_violations(&self) -> &[BadRequest_FieldViolation] { - &self.field_violations - } - pub fn clear_field_violations(&mut self) { - self.field_violations.clear(); - } - - // Param is passed by value, moved - pub fn set_field_violations(&mut self, v: ::protobuf::RepeatedField) { - self.field_violations = v; - } - - // Mutable pointer to the field. - pub fn mut_field_violations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.field_violations - } - - // Take field - pub fn take_field_violations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.field_violations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "field_violations", + |m: &BadRequest| { &m.field_violations }, + |m: &mut BadRequest| { &mut m.field_violations }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BadRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for BadRequest { + const NAME: &'static str = "BadRequest"; + fn is_initialized(&self) -> bool { - for v in &self.field_violations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.field_violations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.field_violations.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1484,308 +960,233 @@ impl ::protobuf::Message for BadRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.field_violations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.field_violations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> BadRequest { BadRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "field_violations", - |m: &BadRequest| { &m.field_violations }, - |m: &mut BadRequest| { &mut m.field_violations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BadRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.field_violations.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static BadRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BadRequest::new) + static instance: BadRequest = BadRequest { + field_violations: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BadRequest { - fn clear(&mut self) { - self.field_violations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BadRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BadRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for BadRequest { +impl ::std::fmt::Display for BadRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for BadRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BadRequest_FieldViolation { - // message fields - pub field: ::std::string::String, - pub description: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BadRequest_FieldViolation { - fn default() -> &'a BadRequest_FieldViolation { - ::default_instance() - } -} - -impl BadRequest_FieldViolation { - pub fn new() -> BadRequest_FieldViolation { - ::std::default::Default::default() + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `BadRequest` +pub mod bad_request { + /// A message type used to describe a single bad request field. + // @@protoc_insertion_point(message:google.rpc.BadRequest.FieldViolation) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct FieldViolation { + // message fields + /// A path leading to a field in the request body. The value will be a + /// sequence of dot-separated identifiers that identify a protocol buffer + /// field. E.g., "field_violations.field" would identify this field. + // @@protoc_insertion_point(field:google.rpc.BadRequest.FieldViolation.field) + pub field: ::std::string::String, + /// A description of why the request element is bad. + // @@protoc_insertion_point(field:google.rpc.BadRequest.FieldViolation.description) + pub description: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.rpc.BadRequest.FieldViolation.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a FieldViolation { + fn default() -> &'a FieldViolation { + ::default_instance() + } } - // string field = 1; - - - pub fn get_field(&self) -> &str { - &self.field - } - pub fn clear_field(&mut self) { - self.field.clear(); - } + impl FieldViolation { + pub fn new() -> FieldViolation { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_field(&mut self, v: ::std::string::String) { - self.field = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "field", + |m: &FieldViolation| { &m.field }, + |m: &mut FieldViolation| { &mut m.field }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &FieldViolation| { &m.description }, + |m: &mut FieldViolation| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BadRequest.FieldViolation", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field(&mut self) -> &mut ::std::string::String { - &mut self.field - } + impl ::protobuf::Message for FieldViolation { + const NAME: &'static str = "FieldViolation"; - // Take field - pub fn take_field(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field, ::std::string::String::new()) - } + fn is_initialized(&self) -> bool { + true + } - // string description = 2; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.field = is.read_string()?; + }, + 18 => { + self.description = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.field.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.field); + } + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.description); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.field.is_empty() { + os.write_string(1, &self.field)?; + } + if !self.description.is_empty() { + os.write_string(2, &self.description)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } -} + fn new() -> FieldViolation { + FieldViolation::new() + } -impl ::protobuf::Message for BadRequest_FieldViolation { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.field.clear(); + self.description.clear(); + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static FieldViolation { + static instance: FieldViolation = FieldViolation { + field: ::std::string::String::new(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.field.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.field); - } - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.description); + impl ::protobuf::MessageFull for FieldViolation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("BadRequest.FieldViolation").unwrap()).clone() } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.field.is_empty() { - os.write_string(1, &self.field)?; - } - if !self.description.is_empty() { - os.write_string(2, &self.description)?; + impl ::std::fmt::Display for FieldViolation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BadRequest_FieldViolation { - BadRequest_FieldViolation::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "field", - |m: &BadRequest_FieldViolation| { &m.field }, - |m: &mut BadRequest_FieldViolation| { &mut m.field }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &BadRequest_FieldViolation| { &m.description }, - |m: &mut BadRequest_FieldViolation| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BadRequest.FieldViolation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BadRequest_FieldViolation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BadRequest_FieldViolation::new) - } -} - -impl ::protobuf::Clear for BadRequest_FieldViolation { - fn clear(&mut self) { - self.field.clear(); - self.description.clear(); - self.unknown_fields.clear(); + impl ::protobuf::reflect::ProtobufValue for FieldViolation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -impl ::std::fmt::Debug for BadRequest_FieldViolation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BadRequest_FieldViolation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] +/// Contains metadata about the request that clients can attach when filing a bug +/// or providing other forms of feedback. +// @@protoc_insertion_point(message:google.rpc.RequestInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct RequestInfo { // message fields + /// An opaque string that should only be interpreted by the service generating + /// it. For example, it can be used to identify requests in the service's logs. + // @@protoc_insertion_point(field:google.rpc.RequestInfo.request_id) pub request_id: ::std::string::String, + /// Any data that was used to serve this request. For example, an encrypted + /// stack trace that can be sent back to the service provider for debugging. + // @@protoc_insertion_point(field:google.rpc.RequestInfo.serving_data) pub serving_data: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.RequestInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a RequestInfo { @@ -1799,76 +1200,45 @@ impl RequestInfo { ::std::default::Default::default() } - // string request_id = 1; - - - pub fn get_request_id(&self) -> &str { - &self.request_id - } - pub fn clear_request_id(&mut self) { - self.request_id.clear(); - } - - // Param is passed by value, moved - pub fn set_request_id(&mut self, v: ::std::string::String) { - self.request_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_id(&mut self) -> &mut ::std::string::String { - &mut self.request_id - } - - // Take field - pub fn take_request_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_id, ::std::string::String::new()) - } - - // string serving_data = 2; - - - pub fn get_serving_data(&self) -> &str { - &self.serving_data - } - pub fn clear_serving_data(&mut self) { - self.serving_data.clear(); - } - - // Param is passed by value, moved - pub fn set_serving_data(&mut self, v: ::std::string::String) { - self.serving_data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_serving_data(&mut self) -> &mut ::std::string::String { - &mut self.serving_data - } - - // Take field - pub fn take_serving_data(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.serving_data, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "request_id", + |m: &RequestInfo| { &m.request_id }, + |m: &mut RequestInfo| { &mut m.request_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "serving_data", + |m: &RequestInfo| { &m.serving_data }, + |m: &mut RequestInfo| { &mut m.serving_data }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RequestInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for RequestInfo { + const NAME: &'static str = "RequestInfo"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.request_id = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.serving_data)?; + 18 => { + self.serving_data = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1877,7 +1247,7 @@ impl ::protobuf::Message for RequestInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.request_id.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.request_id); @@ -1885,110 +1255,96 @@ impl ::protobuf::Message for RequestInfo { if !self.serving_data.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.serving_data); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.request_id.is_empty() { os.write_string(1, &self.request_id)?; } if !self.serving_data.is_empty() { os.write_string(2, &self.serving_data)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> RequestInfo { RequestInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_id", - |m: &RequestInfo| { &m.request_id }, - |m: &mut RequestInfo| { &mut m.request_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "serving_data", - |m: &RequestInfo| { &m.serving_data }, - |m: &mut RequestInfo| { &mut m.serving_data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RequestInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.request_id.clear(); + self.serving_data.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static RequestInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RequestInfo::new) + static instance: RequestInfo = RequestInfo { + request_id: ::std::string::String::new(), + serving_data: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RequestInfo { - fn clear(&mut self) { - self.request_id.clear(); - self.serving_data.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for RequestInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RequestInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for RequestInfo { +impl ::std::fmt::Display for RequestInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for RequestInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Describes the resource that is being accessed. +// @@protoc_insertion_point(message:google.rpc.ResourceInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResourceInfo { // message fields + /// A name for the type of resource being accessed, e.g. "sql table", + /// "cloud storage bucket", "file", "Google calendar"; or the type URL + /// of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". + // @@protoc_insertion_point(field:google.rpc.ResourceInfo.resource_type) pub resource_type: ::std::string::String, + /// The name of the resource being accessed. For example, a shared calendar + /// name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current + /// error is + /// [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. + // @@protoc_insertion_point(field:google.rpc.ResourceInfo.resource_name) pub resource_name: ::std::string::String, + /// The owner of the resource (optional). + /// For example, "user:" or "project:". + // @@protoc_insertion_point(field:google.rpc.ResourceInfo.owner) pub owner: ::std::string::String, + /// Describes what error is encountered when accessing this resource. + /// For example, updating a cloud project may require the `writer` permission + /// on the developer console project. + // @@protoc_insertion_point(field:google.rpc.ResourceInfo.description) pub description: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.ResourceInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResourceInfo { @@ -2002,134 +1358,61 @@ impl ResourceInfo { ::std::default::Default::default() } - // string resource_type = 1; - - - pub fn get_resource_type(&self) -> &str { - &self.resource_type - } - pub fn clear_resource_type(&mut self) { - self.resource_type.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_type(&mut self, v: ::std::string::String) { - self.resource_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_type(&mut self) -> &mut ::std::string::String { - &mut self.resource_type - } - - // Take field - pub fn take_resource_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_type, ::std::string::String::new()) - } - - // string resource_name = 2; - - - pub fn get_resource_name(&self) -> &str { - &self.resource_name - } - pub fn clear_resource_name(&mut self) { - self.resource_name.clear(); - } - - // Param is passed by value, moved - pub fn set_resource_name(&mut self, v: ::std::string::String) { - self.resource_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resource_name(&mut self) -> &mut ::std::string::String { - &mut self.resource_name - } - - // Take field - pub fn take_resource_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.resource_name, ::std::string::String::new()) - } - - // string owner = 3; - - - pub fn get_owner(&self) -> &str { - &self.owner - } - pub fn clear_owner(&mut self) { - self.owner.clear(); - } - - // Param is passed by value, moved - pub fn set_owner(&mut self, v: ::std::string::String) { - self.owner = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_owner(&mut self) -> &mut ::std::string::String { - &mut self.owner - } - - // Take field - pub fn take_owner(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.owner, ::std::string::String::new()) - } - - // string description = 4; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource_type", + |m: &ResourceInfo| { &m.resource_type }, + |m: &mut ResourceInfo| { &mut m.resource_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource_name", + |m: &ResourceInfo| { &m.resource_name }, + |m: &mut ResourceInfo| { &mut m.resource_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "owner", + |m: &ResourceInfo| { &m.owner }, + |m: &mut ResourceInfo| { &mut m.owner }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &ResourceInfo| { &m.description }, + |m: &mut ResourceInfo| { &mut m.description }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResourceInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResourceInfo { + const NAME: &'static str = "ResourceInfo"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.resource_type = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.resource_name)?; + 18 => { + self.resource_name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.owner)?; + 26 => { + self.owner = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 34 => { + self.description = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2138,7 +1421,7 @@ impl ::protobuf::Message for ResourceInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.resource_type.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.resource_type); @@ -2152,12 +1435,12 @@ impl ::protobuf::Message for ResourceInfo { if !self.description.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.description); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.resource_type.is_empty() { os.write_string(1, &self.resource_type)?; } @@ -2170,107 +1453,74 @@ impl ::protobuf::Message for ResourceInfo { if !self.description.is_empty() { os.write_string(4, &self.description)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResourceInfo { ResourceInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_type", - |m: &ResourceInfo| { &m.resource_type }, - |m: &mut ResourceInfo| { &mut m.resource_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "resource_name", - |m: &ResourceInfo| { &m.resource_name }, - |m: &mut ResourceInfo| { &mut m.resource_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "owner", - |m: &ResourceInfo| { &m.owner }, - |m: &mut ResourceInfo| { &mut m.owner }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &ResourceInfo| { &m.description }, - |m: &mut ResourceInfo| { &mut m.description }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResourceInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.resource_type.clear(); + self.resource_name.clear(); + self.owner.clear(); + self.description.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ResourceInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResourceInfo::new) + static instance: ResourceInfo = ResourceInfo { + resource_type: ::std::string::String::new(), + resource_name: ::std::string::String::new(), + owner: ::std::string::String::new(), + description: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResourceInfo { - fn clear(&mut self) { - self.resource_type.clear(); - self.resource_name.clear(); - self.owner.clear(); - self.description.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResourceInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResourceInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for ResourceInfo { +impl ::std::fmt::Display for ResourceInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResourceInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Provides links to documentation or for performing an out of band action. +/// +/// For example, if a quota check failed with an error indicating the calling +/// project hasn't enabled the accessed service, this can contain a URL pointing +/// directly to the right place in the developer console to flip the bit. +// @@protoc_insertion_point(message:google.rpc.Help) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Help { // message fields - pub links: ::protobuf::RepeatedField, + /// URL(s) pointing to additional information on handling the current error. + // @@protoc_insertion_point(field:google.rpc.Help.links) + pub links: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.Help.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Help { @@ -2284,51 +1534,37 @@ impl Help { ::std::default::Default::default() } - // repeated .google.rpc.Help.Link links = 1; - - - pub fn get_links(&self) -> &[Help_Link] { - &self.links - } - pub fn clear_links(&mut self) { - self.links.clear(); - } - - // Param is passed by value, moved - pub fn set_links(&mut self, v: ::protobuf::RepeatedField) { - self.links = v; - } - - // Mutable pointer to the field. - pub fn mut_links(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.links - } - - // Take field - pub fn take_links(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.links, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "links", + |m: &Help| { &m.links }, + |m: &mut Help| { &mut m.links }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Help", + fields, + oneofs, + ) } } impl ::protobuf::Message for Help { + const NAME: &'static str = "Help"; + fn is_initialized(&self) -> bool { - for v in &self.links { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.links)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.links.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2337,308 +1573,231 @@ impl ::protobuf::Message for Help { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.links { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.links { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Help { Help::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "links", - |m: &Help| { &m.links }, - |m: &mut Help| { &mut m.links }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Help", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.links.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Help { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Help::new) + static instance: Help = Help { + links: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Help { - fn clear(&mut self) { - self.links.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Help { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Help").unwrap()).clone() } } -impl ::std::fmt::Debug for Help { +impl ::std::fmt::Display for Help { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Help { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Help_Link { - // message fields - pub description: ::std::string::String, - pub url: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Help_Link { - fn default() -> &'a Help_Link { - ::default_instance() - } -} - -impl Help_Link { - pub fn new() -> Help_Link { - ::std::default::Default::default() + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `Help` +pub mod help { + /// Describes a URL link. + // @@protoc_insertion_point(message:google.rpc.Help.Link) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Link { + // message fields + /// Describes what the link offers. + // @@protoc_insertion_point(field:google.rpc.Help.Link.description) + pub description: ::std::string::String, + /// The URL of the link. + // @@protoc_insertion_point(field:google.rpc.Help.Link.url) + pub url: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.rpc.Help.Link.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Link { + fn default() -> &'a Link { + ::default_instance() + } } - // string description = 1; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } + impl Link { + pub fn new() -> Link { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Link| { &m.description }, + |m: &mut Link| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "url", + |m: &Link| { &m.url }, + |m: &mut Link| { &mut m.url }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Help.Link", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } + impl ::protobuf::Message for Link { + const NAME: &'static str = "Link"; - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } + fn is_initialized(&self) -> bool { + true + } - // string url = 2; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.description = is.read_string()?; + }, + 18 => { + self.url = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.description); + } + if !self.url.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.url); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } - pub fn get_url(&self) -> &str { - &self.url - } - pub fn clear_url(&mut self) { - self.url.clear(); - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.description.is_empty() { + os.write_string(1, &self.description)?; + } + if !self.url.is_empty() { + os.write_string(2, &self.url)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - // Param is passed by value, moved - pub fn set_url(&mut self, v: ::std::string::String) { - self.url = v; - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_url(&mut self) -> &mut ::std::string::String { - &mut self.url - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // Take field - pub fn take_url(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.url, ::std::string::String::new()) - } -} + fn new() -> Link { + Link::new() + } -impl ::protobuf::Message for Help_Link { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.description.clear(); + self.url.clear(); + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.url)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static Link { + static instance: Link = Link { + description: ::std::string::String::new(), + url: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.description); - } - if !self.url.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.url); + impl ::protobuf::MessageFull for Link { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Help.Link").unwrap()).clone() } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.description.is_empty() { - os.write_string(1, &self.description)?; + impl ::std::fmt::Display for Link { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } - if !self.url.is_empty() { - os.write_string(2, &self.url)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Help_Link { - Help_Link::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Help_Link| { &m.description }, - |m: &mut Help_Link| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "url", - |m: &Help_Link| { &m.url }, - |m: &mut Help_Link| { &mut m.url }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Help.Link", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Help_Link { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Help_Link::new) - } -} - -impl ::protobuf::Clear for Help_Link { - fn clear(&mut self) { - self.description.clear(); - self.url.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Help_Link { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) } -} -impl ::protobuf::reflect::ProtobufValue for Help_Link { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Link { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] +/// Provides a localized error message that is safe to return to the user +/// which can be attached to an RPC error. +// @@protoc_insertion_point(message:google.rpc.LocalizedMessage) +#[derive(PartialEq,Clone,Default,Debug)] pub struct LocalizedMessage { // message fields + /// The locale used following the specification defined at + /// http://www.rfc-editor.org/rfc/bcp/bcp47.txt. + /// Examples are: "en-US", "fr-CH", "es-MX" + // @@protoc_insertion_point(field:google.rpc.LocalizedMessage.locale) pub locale: ::std::string::String, + /// The localized error message in the above locale. + // @@protoc_insertion_point(field:google.rpc.LocalizedMessage.message) pub message: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.LocalizedMessage.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a LocalizedMessage { @@ -2652,76 +1811,45 @@ impl LocalizedMessage { ::std::default::Default::default() } - // string locale = 1; - - - pub fn get_locale(&self) -> &str { - &self.locale - } - pub fn clear_locale(&mut self) { - self.locale.clear(); - } - - // Param is passed by value, moved - pub fn set_locale(&mut self, v: ::std::string::String) { - self.locale = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_locale(&mut self) -> &mut ::std::string::String { - &mut self.locale - } - - // Take field - pub fn take_locale(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.locale, ::std::string::String::new()) - } - - // string message = 2; - - - pub fn get_message(&self) -> &str { - &self.message - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: ::std::string::String) { - self.message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut ::std::string::String { - &mut self.message - } - - // Take field - pub fn take_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.message, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "locale", + |m: &LocalizedMessage| { &m.locale }, + |m: &mut LocalizedMessage| { &mut m.locale }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "message", + |m: &LocalizedMessage| { &m.message }, + |m: &mut LocalizedMessage| { &mut m.message }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "LocalizedMessage", + fields, + oneofs, + ) } } impl ::protobuf::Message for LocalizedMessage { + const NAME: &'static str = "LocalizedMessage"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.locale)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.locale = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message)?; + 18 => { + self.message = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2730,7 +1858,7 @@ impl ::protobuf::Message for LocalizedMessage { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.locale.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.locale); @@ -2738,444 +1866,357 @@ impl ::protobuf::Message for LocalizedMessage { if !self.message.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.message); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.locale.is_empty() { os.write_string(1, &self.locale)?; } if !self.message.is_empty() { os.write_string(2, &self.message)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> LocalizedMessage { LocalizedMessage::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "locale", - |m: &LocalizedMessage| { &m.locale }, - |m: &mut LocalizedMessage| { &mut m.locale }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message", - |m: &LocalizedMessage| { &m.message }, - |m: &mut LocalizedMessage| { &mut m.message }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LocalizedMessage", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.locale.clear(); + self.message.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static LocalizedMessage { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LocalizedMessage::new) + static instance: LocalizedMessage = LocalizedMessage { + locale: ::std::string::String::new(), + message: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for LocalizedMessage { - fn clear(&mut self) { - self.locale.clear(); - self.message.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for LocalizedMessage { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("LocalizedMessage").unwrap()).clone() } } -impl ::std::fmt::Debug for LocalizedMessage { +impl ::std::fmt::Display for LocalizedMessage { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for LocalizedMessage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1egoogle/rpc/error_details.proto\x12\ngoogle.rpc\x1a\x1egoogle/proto\ - buf/duration.proto\"\xb9\x01\n\tErrorInfo\x12\x16\n\x06reason\x18\x01\ - \x20\x01(\tR\x06reason\x12\x16\n\x06domain\x18\x02\x20\x01(\tR\x06domain\ - \x12?\n\x08metadata\x18\x03\x20\x03(\x0b2#.google.rpc.ErrorInfo.Metadata\ - EntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01\x20\ - \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\ - \x01\"G\n\tRetryInfo\x12:\n\x0bretry_delay\x18\x01\x20\x01(\x0b2\x19.goo\ - gle.protobuf.DurationR\nretryDelay\"H\n\tDebugInfo\x12#\n\rstack_entries\ - \x18\x01\x20\x03(\tR\x0cstackEntries\x12\x16\n\x06detail\x18\x02\x20\x01\ - (\tR\x06detail\"\x9b\x01\n\x0cQuotaFailure\x12B\n\nviolations\x18\x01\ - \x20\x03(\x0b2\".google.rpc.QuotaFailure.ViolationR\nviolations\x1aG\n\t\ - Violation\x12\x18\n\x07subject\x18\x01\x20\x01(\tR\x07subject\x12\x20\n\ - \x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\"\xbd\x01\n\x13Precon\ - ditionFailure\x12I\n\nviolations\x18\x01\x20\x03(\x0b2).google.rpc.Preco\ - nditionFailure.ViolationR\nviolations\x1a[\n\tViolation\x12\x12\n\x04typ\ - e\x18\x01\x20\x01(\tR\x04type\x12\x18\n\x07subject\x18\x02\x20\x01(\tR\ - \x07subject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\ - \"\xa8\x01\n\nBadRequest\x12P\n\x10field_violations\x18\x01\x20\x03(\x0b\ - 2%.google.rpc.BadRequest.FieldViolationR\x0ffieldViolations\x1aH\n\x0eFi\ - eldViolation\x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05field\x12\x20\n\ - \x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\"O\n\x0bRequestInfo\ - \x12\x1d\n\nrequest_id\x18\x01\x20\x01(\tR\trequestId\x12!\n\x0cserving_\ - data\x18\x02\x20\x01(\tR\x0bservingData\"\x90\x01\n\x0cResourceInfo\x12#\ - \n\rresource_type\x18\x01\x20\x01(\tR\x0cresourceType\x12#\n\rresource_n\ - ame\x18\x02\x20\x01(\tR\x0cresourceName\x12\x14\n\x05owner\x18\x03\x20\ - \x01(\tR\x05owner\x12\x20\n\x0bdescription\x18\x04\x20\x01(\tR\x0bdescri\ - ption\"o\n\x04Help\x12+\n\x05links\x18\x01\x20\x03(\x0b2\x15.google.rpc.\ - Help.LinkR\x05links\x1a:\n\x04Link\x12\x20\n\x0bdescription\x18\x01\x20\ - \x01(\tR\x0bdescription\x12\x10\n\x03url\x18\x02\x20\x01(\tR\x03url\"D\n\ - \x10LocalizedMessage\x12\x16\n\x06locale\x18\x01\x20\x01(\tR\x06locale\ - \x12\x18\n\x07message\x18\x02\x20\x01(\tR\x07messageBl\n\x0ecom.google.r\ - pcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc\ - /errdetails;errdetails\xa2\x02\x03RPCJ\xb1V\n\x07\x12\x05\x0e\0\x9c\x02\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\ - \x02\x03\0\x12\x03\x12\0(\n\x08\n\x01\x08\x12\x03\x14\0V\n\t\n\x02\x08\ - \x0b\x12\x03\x14\0V\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\ - \x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\02\n\t\n\x02\x08\x08\x12\x03\ - \x16\02\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\ - \n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\n\xc5\x05\ - \n\x02\x04\0\x12\x042\0K\x01\x1a\xb8\x05\x20Describes\x20the\x20cause\ - \x20of\x20the\x20error\x20with\x20structured\x20details.\n\n\x20Example\ - \x20of\x20an\x20error\x20when\x20contacting\x20the\x20\"pubsub.googleapi\ - s.com\"\x20API\x20when\x20it\n\x20is\x20not\x20enabled:\n\n\x20\x20\x20\ - \x20\x20{\x20\"reason\":\x20\"API_DISABLED\"\n\x20\x20\x20\x20\x20\x20\ - \x20\"domain\":\x20\"googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\"met\ - adata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"resource\":\x20\"pr\ - ojects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"pub\ - sub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20}\n\n\x20This\x20response\x20indicates\x20that\x20the\x20pubsub.goog\ - leapis.com\x20API\x20is\x20not\x20enabled.\n\n\x20Example\x20of\x20an\ - \x20error\x20that\x20is\x20returned\x20when\x20attempting\x20to\x20creat\ - e\x20a\x20Spanner\n\x20instance\x20in\x20a\x20region\x20that\x20is\x20ou\ - t\x20of\x20stock:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"STOCKOUT\ - \"\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"spanner.googleapis.com\ - \",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\"availableRegions\":\x20\"us-central1,us-east2\"\n\ - \x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\n\n\x03\x04\0\ - \x01\x12\x032\x08\x11\n\xbb\x02\n\x04\x04\0\x02\0\x12\x038\x02\x14\x1a\ - \xad\x02\x20The\x20reason\x20of\x20the\x20error.\x20This\x20is\x20a\x20c\ - onstant\x20value\x20that\x20identifies\x20the\n\x20proximate\x20cause\ - \x20of\x20the\x20error.\x20Error\x20reasons\x20are\x20unique\x20within\ - \x20a\x20particular\n\x20domain\x20of\x20errors.\x20This\x20should\x20be\ - \x20at\x20most\x2063\x20characters\x20and\x20match\x20a\n\x20regular\x20\ - expression\x20of\x20`[A-Z][A-Z0-9_]+[A-Z0-9]`,\x20which\x20represents\n\ - \x20UPPER_SNAKE_CASE.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x038\x02\x08\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x038\t\x0f\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x038\x12\x13\n\xa8\x03\n\x04\x04\0\x02\x01\x12\x03@\x02\x14\x1a\x9a\ - \x03\x20The\x20logical\x20grouping\x20to\x20which\x20the\x20\"reason\"\ - \x20belongs.\x20The\x20error\x20domain\n\x20is\x20typically\x20the\x20re\ - gistered\x20service\x20name\x20of\x20the\x20tool\x20or\x20product\x20tha\ - t\n\x20generates\x20the\x20error.\x20Example:\x20\"pubsub.googleapis.com\ - \".\x20If\x20the\x20error\x20is\n\x20generated\x20by\x20some\x20common\ - \x20infrastructure,\x20the\x20error\x20domain\x20must\x20be\x20a\n\x20gl\ - obally\x20unique\x20value\x20that\x20identifies\x20the\x20infrastructure\ - .\x20For\x20Google\x20API\n\x20infrastructure,\x20the\x20error\x20domain\ - \x20is\x20\"googleapis.com\".\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03@\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03@\t\x0f\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x03@\x12\x13\n\xdb\x03\n\x04\x04\0\x02\x02\x12\x03J\x02\ - #\x1a\xcd\x03\x20Additional\x20structured\x20details\x20about\x20this\ - \x20error.\n\n\x20Keys\x20should\x20match\x20/[a-zA-Z0-9-_]/\x20and\x20b\ - e\x20limited\x20to\x2064\x20characters\x20in\n\x20length.\x20When\x20ide\ - ntifying\x20the\x20current\x20value\x20of\x20an\x20exceeded\x20limit,\ - \x20the\x20units\n\x20should\x20be\x20contained\x20in\x20the\x20key,\x20\ - not\x20the\x20value.\x20\x20For\x20example,\x20rather\x20than\n\x20{\"in\ - stanceLimit\":\x20\"100/request\"},\x20should\x20be\x20returned\x20as,\n\ - \x20{\"instanceLimitPerRequest\":\x20\"100\"},\x20if\x20the\x20client\ - \x20exceeds\x20the\x20number\x20of\n\x20instances\x20that\x20can\x20be\ - \x20created\x20in\x20a\x20single\x20(batch)\x20request.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x03J\x02\x15\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x03J\x16\x1e\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03J!\"\n\x8b\x05\n\x02\ - \x04\x01\x12\x04Z\0]\x01\x1a\xfe\x04\x20Describes\x20when\x20the\x20clie\ - nts\x20can\x20retry\x20a\x20failed\x20request.\x20Clients\x20could\x20ig\ - nore\n\x20the\x20recommendation\x20here\x20or\x20retry\x20when\x20this\ - \x20information\x20is\x20missing\x20from\x20error\n\x20responses.\n\n\ - \x20It's\x20always\x20recommended\x20that\x20clients\x20should\x20use\ - \x20exponential\x20backoff\x20when\n\x20retrying.\n\n\x20Clients\x20shou\ - ld\x20wait\x20until\x20`retry_delay`\x20amount\x20of\x20time\x20has\x20p\ - assed\x20since\n\x20receiving\x20the\x20error\x20response\x20before\x20r\ - etrying.\x20\x20If\x20retrying\x20requests\x20also\n\x20fail,\x20clients\ - \x20should\x20use\x20an\x20exponential\x20backoff\x20scheme\x20to\x20gra\ - dually\x20increase\n\x20the\x20delay\x20between\x20retries\x20based\x20o\ - n\x20`retry_delay`,\x20until\x20either\x20a\x20maximum\n\x20number\x20of\ - \x20retries\x20have\x20been\x20reached\x20or\x20a\x20maximum\x20retry\ - \x20delay\x20cap\x20has\x20been\n\x20reached.\n\n\n\n\x03\x04\x01\x01\ - \x12\x03Z\x08\x11\nX\n\x04\x04\x01\x02\0\x12\x03\\\x02+\x1aK\x20Clients\ - \x20should\x20wait\x20at\x20least\x20this\x20long\x20between\x20retrying\ - \x20the\x20same\x20request.\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\\\ - \x02\x1a\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\\\x1b&\n\x0c\n\x05\x04\ - \x01\x02\0\x03\x12\x03\\)*\n2\n\x02\x04\x02\x12\x04`\0f\x01\x1a&\x20Desc\ - ribes\x20additional\x20debugging\x20info.\n\n\n\n\x03\x04\x02\x01\x12\ - \x03`\x08\x11\nK\n\x04\x04\x02\x02\0\x12\x03b\x02$\x1a>\x20The\x20stack\ - \x20trace\x20entries\x20indicating\x20where\x20the\x20error\x20occurred.\ - \n\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03b\x02\n\n\x0c\n\x05\x04\x02\x02\ - \0\x05\x12\x03b\x0b\x11\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03b\x12\x1f\n\ - \x0c\n\x05\x04\x02\x02\0\x03\x12\x03b\"#\nG\n\x04\x04\x02\x02\x01\x12\ - \x03e\x02\x14\x1a:\x20Additional\x20debugging\x20information\x20provided\ - \x20by\x20the\x20server.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03e\x02\ - \x08\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03e\t\x0f\n\x0c\n\x05\x04\x02\ - \x02\x01\x03\x12\x03e\x12\x13\n\xfd\x03\n\x02\x04\x03\x12\x05s\0\x88\x01\ - \x01\x1a\xef\x03\x20Describes\x20how\x20a\x20quota\x20check\x20failed.\n\ - \n\x20For\x20example\x20if\x20a\x20daily\x20limit\x20was\x20exceeded\x20\ - for\x20the\x20calling\x20project,\n\x20a\x20service\x20could\x20respond\ - \x20with\x20a\x20QuotaFailure\x20detail\x20containing\x20the\x20project\ - \n\x20id\x20and\x20the\x20description\x20of\x20the\x20quota\x20limit\x20\ - that\x20was\x20exceeded.\x20\x20If\x20the\n\x20calling\x20project\x20has\ - n't\x20enabled\x20the\x20service\x20in\x20the\x20developer\x20console,\ - \x20then\n\x20a\x20service\x20could\x20respond\x20with\x20the\x20project\ - \x20id\x20and\x20set\x20`service_disabled`\n\x20to\x20true.\n\n\x20Also\ - \x20see\x20RetryInfo\x20and\x20Help\x20types\x20for\x20other\x20details\ - \x20about\x20handling\x20a\n\x20quota\x20failure.\n\n\n\n\x03\x04\x03\ - \x01\x12\x03s\x08\x14\n\x8c\x01\n\x04\x04\x03\x03\0\x12\x05v\x02\x84\x01\ + buf/duration.proto\"G\n\tRetryInfo\x12:\n\x0bretry_delay\x18\x01\x20\x01\ + (\x0b2\x19.google.protobuf.DurationR\nretryDelay\"H\n\tDebugInfo\x12#\n\ + \rstack_entries\x18\x01\x20\x03(\tR\x0cstackEntries\x12\x16\n\x06detail\ + \x18\x02\x20\x01(\tR\x06detail\"\x9b\x01\n\x0cQuotaFailure\x12B\n\nviola\ + tions\x18\x01\x20\x03(\x0b2\".google.rpc.QuotaFailure.ViolationR\nviolat\ + ions\x1aG\n\tViolation\x12\x18\n\x07subject\x18\x01\x20\x01(\tR\x07subje\ + ct\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\"\xbd\x01\ + \n\x13PreconditionFailure\x12I\n\nviolations\x18\x01\x20\x03(\x0b2).goog\ + le.rpc.PreconditionFailure.ViolationR\nviolations\x1a[\n\tViolation\x12\ + \x12\n\x04type\x18\x01\x20\x01(\tR\x04type\x12\x18\n\x07subject\x18\x02\ + \x20\x01(\tR\x07subject\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0b\ + description\"\xa8\x01\n\nBadRequest\x12P\n\x10field_violations\x18\x01\ + \x20\x03(\x0b2%.google.rpc.BadRequest.FieldViolationR\x0ffieldViolations\ + \x1aH\n\x0eFieldViolation\x12\x14\n\x05field\x18\x01\x20\x01(\tR\x05fiel\ + d\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\"O\n\x0bRe\ + questInfo\x12\x1d\n\nrequest_id\x18\x01\x20\x01(\tR\trequestId\x12!\n\ + \x0cserving_data\x18\x02\x20\x01(\tR\x0bservingData\"\x90\x01\n\x0cResou\ + rceInfo\x12#\n\rresource_type\x18\x01\x20\x01(\tR\x0cresourceType\x12#\n\ + \rresource_name\x18\x02\x20\x01(\tR\x0cresourceName\x12\x14\n\x05owner\ + \x18\x03\x20\x01(\tR\x05owner\x12\x20\n\x0bdescription\x18\x04\x20\x01(\ + \tR\x0bdescription\"o\n\x04Help\x12+\n\x05links\x18\x01\x20\x03(\x0b2\ + \x15.google.rpc.Help.LinkR\x05links\x1a:\n\x04Link\x12\x20\n\x0bdescript\ + ion\x18\x01\x20\x01(\tR\x0bdescription\x12\x10\n\x03url\x18\x02\x20\x01(\ + \tR\x03url\"D\n\x10LocalizedMessage\x12\x16\n\x06locale\x18\x01\x20\x01(\ + \tR\x06locale\x12\x18\n\x07message\x18\x02\x20\x01(\tR\x07messageBl\n\ + \x0ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z?google.golang.org/genprot\ + o/googleapis/rpc/errdetails;errdetails\xa2\x02\x03RPCJ\x80>\n\x07\x12\ + \x05\x0e\0\xc7\x01\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\ + \x20Copyright\x202017\x20Google\x20Inc.\n\n\x20Licensed\x20under\x20the\ + \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ + ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ + \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ + \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ + censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ + \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ + \x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0(\n\x08\n\x01\x08\x12\ + \x03\x14\0V\n\t\n\x02\x08\x0b\x12\x03\x14\0V\n\x08\n\x01\x08\x12\x03\x15\ + \0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\02\n\t\ + \n\x02\x08\x08\x12\x03\x16\02\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\ + \x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\x08$\ + \x12\x03\x18\0!\n\x8b\x05\n\x02\x04\0\x12\x04'\0*\x01\x1a\xfe\x04\x20Des\ + cribes\x20when\x20the\x20clients\x20can\x20retry\x20a\x20failed\x20reque\ + st.\x20Clients\x20could\x20ignore\n\x20the\x20recommendation\x20here\x20\ + or\x20retry\x20when\x20this\x20information\x20is\x20missing\x20from\x20e\ + rror\n\x20responses.\n\n\x20It's\x20always\x20recommended\x20that\x20cli\ + ents\x20should\x20use\x20exponential\x20backoff\x20when\n\x20retrying.\n\ + \n\x20Clients\x20should\x20wait\x20until\x20`retry_delay`\x20amount\x20o\ + f\x20time\x20has\x20passed\x20since\n\x20receiving\x20the\x20error\x20re\ + sponse\x20before\x20retrying.\x20\x20If\x20retrying\x20requests\x20also\ + \n\x20fail,\x20clients\x20should\x20use\x20an\x20exponential\x20backoff\ + \x20scheme\x20to\x20gradually\x20increase\n\x20the\x20delay\x20between\ + \x20retries\x20based\x20on\x20`retry_delay`,\x20until\x20either\x20a\x20\ + maximum\n\x20number\x20of\x20retires\x20have\x20been\x20reached\x20or\ + \x20a\x20maximum\x20retry\x20delay\x20cap\x20has\x20been\n\x20reached.\n\ + \n\n\n\x03\x04\0\x01\x12\x03'\x08\x11\nX\n\x04\x04\0\x02\0\x12\x03)\x02+\ + \x1aK\x20Clients\x20should\x20wait\x20at\x20least\x20this\x20long\x20bet\ + ween\x20retrying\x20the\x20same\x20request.\n\n\x0c\n\x05\x04\0\x02\0\ + \x06\x12\x03)\x02\x1a\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03)\x1b&\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03))*\n2\n\x02\x04\x01\x12\x04-\03\x01\x1a&\ + \x20Describes\x20additional\x20debugging\x20info.\n\n\n\n\x03\x04\x01\ + \x01\x12\x03-\x08\x11\nK\n\x04\x04\x01\x02\0\x12\x03/\x02$\x1a>\x20The\ + \x20stack\x20trace\x20entries\x20indicating\x20where\x20the\x20error\x20\ + occurred.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03/\x02\n\n\x0c\n\x05\x04\ + \x01\x02\0\x05\x12\x03/\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03/\ + \x12\x1f\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03/\"#\nG\n\x04\x04\x01\x02\ + \x01\x12\x032\x02\x14\x1a:\x20Additional\x20debugging\x20information\x20\ + provided\x20by\x20the\x20server.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\ + \x032\x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x032\t\x0f\n\x0c\n\x05\ + \x04\x01\x02\x01\x03\x12\x032\x12\x13\n\xfe\x03\n\x02\x04\x02\x12\x04@\0\ + U\x01\x1a\xf1\x03\x20Describes\x20how\x20a\x20quota\x20check\x20failed.\ + \n\n\x20For\x20example\x20if\x20a\x20daily\x20limit\x20was\x20exceeded\ + \x20for\x20the\x20calling\x20project,\n\x20a\x20service\x20could\x20resp\ + ond\x20with\x20a\x20QuotaFailure\x20detail\x20containing\x20the\x20proje\ + ct\n\x20id\x20and\x20the\x20description\x20of\x20the\x20quota\x20limit\ + \x20that\x20was\x20exceeded.\x20\x20If\x20the\n\x20calling\x20project\ + \x20hasn't\x20enabled\x20the\x20service\x20in\x20the\x20developer\x20con\ + sole,\x20then\n\x20a\x20service\x20could\x20respond\x20with\x20the\x20pr\ + oject\x20id\x20and\x20set\x20`service_disabled`\n\x20to\x20true.\n\n\x20\ + Also\x20see\x20RetryDetail\x20and\x20Help\x20types\x20for\x20other\x20de\ + tails\x20about\x20handling\x20a\n\x20quota\x20failure.\n\n\n\n\x03\x04\ + \x02\x01\x12\x03@\x08\x14\n\x8b\x01\n\x04\x04\x02\x03\0\x12\x04C\x02Q\ \x03\x1a}\x20A\x20message\x20type\x20used\x20to\x20describe\x20a\x20sing\ le\x20quota\x20violation.\x20\x20For\x20example,\x20a\n\x20daily\x20quot\ a\x20or\x20a\x20custom\x20quota\x20that\x20was\x20exceeded.\n\n\x0c\n\ - \x05\x04\x03\x03\0\x01\x12\x03v\n\x13\n\x9b\x01\n\x06\x04\x03\x03\0\x02\ - \0\x12\x03z\x04\x17\x1a\x8b\x01\x20The\x20subject\x20on\x20which\x20the\ + \x05\x04\x02\x03\0\x01\x12\x03C\n\x13\n\x9b\x01\n\x06\x04\x02\x03\0\x02\ + \0\x12\x03G\x04\x17\x1a\x8b\x01\x20The\x20subject\x20on\x20which\x20the\ \x20quota\x20check\x20failed.\n\x20For\x20example,\x20\"clientip:\"\x20or\x20\"project:\".\n\n\x0e\n\x07\x04\x03\x03\0\x02\0\x05\x12\x03z\x04\n\n\ - \x0e\n\x07\x04\x03\x03\0\x02\0\x01\x12\x03z\x0b\x12\n\x0e\n\x07\x04\x03\ - \x03\0\x02\0\x03\x12\x03z\x15\x16\n\xcd\x02\n\x06\x04\x03\x03\0\x02\x01\ - \x12\x04\x83\x01\x04\x1b\x1a\xbc\x02\x20A\x20description\x20of\x20how\ - \x20the\x20quota\x20check\x20failed.\x20Clients\x20can\x20use\x20this\n\ - \x20description\x20to\x20find\x20more\x20about\x20the\x20quota\x20config\ - uration\x20in\x20the\x20service's\n\x20public\x20documentation,\x20or\ - \x20find\x20the\x20relevant\x20quota\x20limit\x20to\x20adjust\x20through\ - \n\x20developer\x20console.\n\n\x20For\x20example:\x20\"Service\x20disab\ - led\"\x20or\x20\"Daily\x20Limit\x20for\x20read\x20operations\n\x20exceed\ - ed\".\n\n\x0f\n\x07\x04\x03\x03\0\x02\x01\x05\x12\x04\x83\x01\x04\n\n\ - \x0f\n\x07\x04\x03\x03\0\x02\x01\x01\x12\x04\x83\x01\x0b\x16\n\x0f\n\x07\ - \x04\x03\x03\0\x02\x01\x03\x12\x04\x83\x01\x19\x1a\n/\n\x04\x04\x03\x02\ - \0\x12\x04\x87\x01\x02$\x1a!\x20Describes\x20all\x20quota\x20violations.\ - \n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\x87\x01\x02\n\n\r\n\x05\x04\x03\ - \x02\0\x06\x12\x04\x87\x01\x0b\x14\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\ - \x87\x01\x15\x1f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x87\x01\"#\n\xea\ - \x01\n\x02\x04\x04\x12\x06\x8f\x01\0\xa5\x01\x01\x1a\xdb\x01\x20Describe\ - s\x20what\x20preconditions\x20have\x20failed.\n\n\x20For\x20example,\x20\ - if\x20an\x20RPC\x20failed\x20because\x20it\x20required\x20the\x20Terms\ - \x20of\x20Service\x20to\x20be\n\x20acknowledged,\x20it\x20could\x20list\ - \x20the\x20terms\x20of\x20service\x20violation\x20in\x20the\n\x20Precond\ - itionFailure\x20message.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\x8f\x01\x08\ - \x1b\nP\n\x04\x04\x04\x03\0\x12\x06\x91\x01\x02\xa1\x01\x03\x1a@\x20A\ - \x20message\x20type\x20used\x20to\x20describe\x20a\x20single\x20precondi\ - tion\x20failure.\n\n\r\n\x05\x04\x04\x03\0\x01\x12\x04\x91\x01\n\x13\n\ - \xd3\x01\n\x06\x04\x04\x03\0\x02\0\x12\x04\x95\x01\x04\x14\x1a\xc2\x01\ - \x20The\x20type\x20of\x20PreconditionFailure.\x20We\x20recommend\x20usin\ - g\x20a\x20service-specific\n\x20enum\x20type\x20to\x20define\x20the\x20s\ - upported\x20precondition\x20violation\x20subjects.\x20For\n\x20example,\ - \x20\"TOS\"\x20for\x20\"Terms\x20of\x20Service\x20violation\".\n\n\x0f\n\ - \x07\x04\x04\x03\0\x02\0\x05\x12\x04\x95\x01\x04\n\n\x0f\n\x07\x04\x04\ - \x03\0\x02\0\x01\x12\x04\x95\x01\x0b\x0f\n\x0f\n\x07\x04\x04\x03\0\x02\0\ - \x03\x12\x04\x95\x01\x12\x13\n\xba\x01\n\x06\x04\x04\x03\0\x02\x01\x12\ - \x04\x9a\x01\x04\x17\x1a\xa9\x01\x20The\x20subject,\x20relative\x20to\ - \x20the\x20type,\x20that\x20failed.\n\x20For\x20example,\x20\"google.com\ - /cloud\"\x20relative\x20to\x20the\x20\"TOS\"\x20type\x20would\x20indicat\ - e\n\x20which\x20terms\x20of\x20service\x20is\x20being\x20referenced.\n\n\ - \x0f\n\x07\x04\x04\x03\0\x02\x01\x05\x12\x04\x9a\x01\x04\n\n\x0f\n\x07\ - \x04\x04\x03\0\x02\x01\x01\x12\x04\x9a\x01\x0b\x12\n\x0f\n\x07\x04\x04\ - \x03\0\x02\x01\x03\x12\x04\x9a\x01\x15\x16\n\xbb\x01\n\x06\x04\x04\x03\0\ - \x02\x02\x12\x04\xa0\x01\x04\x1b\x1a\xaa\x01\x20A\x20description\x20of\ - \x20how\x20the\x20precondition\x20failed.\x20Developers\x20can\x20use\ - \x20this\n\x20description\x20to\x20understand\x20how\x20to\x20fix\x20the\ - \x20failure.\n\n\x20For\x20example:\x20\"Terms\x20of\x20service\x20not\ - \x20accepted\".\n\n\x0f\n\x07\x04\x04\x03\0\x02\x02\x05\x12\x04\xa0\x01\ - \x04\n\n\x0f\n\x07\x04\x04\x03\0\x02\x02\x01\x12\x04\xa0\x01\x0b\x16\n\ - \x0f\n\x07\x04\x04\x03\0\x02\x02\x03\x12\x04\xa0\x01\x19\x1a\n6\n\x04\ - \x04\x04\x02\0\x12\x04\xa4\x01\x02$\x1a(\x20Describes\x20all\x20precondi\ - tion\x20violations.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\xa4\x01\x02\n\ - \n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xa4\x01\x0b\x14\n\r\n\x05\x04\x04\ - \x02\0\x01\x12\x04\xa4\x01\x15\x1f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\ - \xa4\x01\"#\n{\n\x02\x04\x05\x12\x06\xa9\x01\0\xd9\x01\x01\x1am\x20Descr\ - ibes\x20violations\x20in\x20a\x20client\x20request.\x20This\x20error\x20\ - type\x20focuses\x20on\x20the\n\x20syntactic\x20aspects\x20of\x20the\x20r\ - equest.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa9\x01\x08\x12\nM\n\x04\x04\ - \x05\x03\0\x12\x06\xab\x01\x02\xd5\x01\x03\x1a=\x20A\x20message\x20type\ - \x20used\x20to\x20describe\x20a\x20single\x20bad\x20request\x20field.\n\ - \n\r\n\x05\x04\x05\x03\0\x01\x12\x04\xab\x01\n\x18\n\xc7\t\n\x06\x04\x05\ - \x03\0\x02\0\x12\x04\xd1\x01\x04\x15\x1a\xb6\t\x20A\x20path\x20that\x20l\ - eads\x20to\x20a\x20field\x20in\x20the\x20request\x20body.\x20The\x20valu\ - e\x20will\x20be\x20a\n\x20sequence\x20of\x20dot-separated\x20identifiers\ - \x20that\x20identify\x20a\x20protocol\x20buffer\n\x20field.\n\n\x20Consi\ - der\x20the\x20following:\n\n\x20\x20\x20\x20\x20message\x20CreateContact\ - Request\x20{\n\x20\x20\x20\x20\x20\x20\x20message\x20EmailAddress\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20enum\x20Type\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20TYPE_UNSPECIFIED\x20=\x200;\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20HOME\x20=\x201;\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20WORK\x20=\x202;\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20}\n\n\x20\x20\x20\x20\x20\x20\x20\x20\x20optional\x20string\x20e\ - mail\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20repeated\x20EmailTy\ - pe\x20type\x20=\x202;\n\x20\x20\x20\x20\x20\x20\x20}\n\n\x20\x20\x20\x20\ - \x20\x20\x20string\x20full_name\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20\ - repeated\x20EmailAddress\x20email_addresses\x20=\x202;\n\x20\x20\x20\x20\ - \x20}\n\n\x20In\x20this\x20example,\x20in\x20proto\x20`field`\x20could\ - \x20take\x20one\x20of\x20the\x20following\x20values:\n\n\x20*\x20`full_n\ - ame`\x20for\x20a\x20violation\x20in\x20the\x20`full_name`\x20value\n\x20\ - *\x20`email_addresses[1].email`\x20for\x20a\x20violation\x20in\x20the\ - \x20`email`\x20field\x20of\x20the\n\x20\x20\x20first\x20`email_addresses\ - `\x20message\n\x20*\x20`email_addresses[3].type[2]`\x20for\x20a\x20viola\ - tion\x20in\x20the\x20second\x20`type`\n\x20\x20\x20value\x20in\x20the\ - \x20third\x20`email_addresses`\x20message.\n\n\x20In\x20JSON,\x20the\x20\ - same\x20values\x20are\x20represented\x20as:\n\n\x20*\x20`fullName`\x20fo\ - r\x20a\x20violation\x20in\x20the\x20`fullName`\x20value\n\x20*\x20`email\ - Addresses[1].email`\x20for\x20a\x20violation\x20in\x20the\x20`email`\x20\ - field\x20of\x20the\n\x20\x20\x20first\x20`emailAddresses`\x20message\n\ - \x20*\x20`emailAddresses[3].type[2]`\x20for\x20a\x20violation\x20in\x20t\ - he\x20second\x20`type`\n\x20\x20\x20value\x20in\x20the\x20third\x20`emai\ - lAddresses`\x20message.\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x05\x12\x04\ - \xd1\x01\x04\n\n\x0f\n\x07\x04\x05\x03\0\x02\0\x01\x12\x04\xd1\x01\x0b\ - \x10\n\x0f\n\x07\x04\x05\x03\0\x02\0\x03\x12\x04\xd1\x01\x13\x14\nB\n\ - \x06\x04\x05\x03\0\x02\x01\x12\x04\xd4\x01\x04\x1b\x1a2\x20A\x20descript\ - ion\x20of\x20why\x20the\x20request\x20element\x20is\x20bad.\n\n\x0f\n\ - \x07\x04\x05\x03\0\x02\x01\x05\x12\x04\xd4\x01\x04\n\n\x0f\n\x07\x04\x05\ - \x03\0\x02\x01\x01\x12\x04\xd4\x01\x0b\x16\n\x0f\n\x07\x04\x05\x03\0\x02\ - \x01\x03\x12\x04\xd4\x01\x19\x1a\n=\n\x04\x04\x05\x02\0\x12\x04\xd8\x01\ - \x02/\x1a/\x20Describes\x20all\x20violations\x20in\x20a\x20client\x20req\ - uest.\n\n\r\n\x05\x04\x05\x02\0\x04\x12\x04\xd8\x01\x02\n\n\r\n\x05\x04\ - \x05\x02\0\x06\x12\x04\xd8\x01\x0b\x19\n\r\n\x05\x04\x05\x02\0\x01\x12\ - \x04\xd8\x01\x1a*\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xd8\x01-.\n\x84\ - \x01\n\x02\x04\x06\x12\x06\xdd\x01\0\xe5\x01\x01\x1av\x20Contains\x20met\ - adata\x20about\x20the\x20request\x20that\x20clients\x20can\x20attach\x20\ - when\x20filing\x20a\x20bug\n\x20or\x20providing\x20other\x20forms\x20of\ - \x20feedback.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xdd\x01\x08\x13\n\xa8\ - \x01\n\x04\x04\x06\x02\0\x12\x04\xe0\x01\x02\x18\x1a\x99\x01\x20An\x20op\ - aque\x20string\x20that\x20should\x20only\x20be\x20interpreted\x20by\x20t\ - he\x20service\x20generating\n\x20it.\x20For\x20example,\x20it\x20can\x20\ - be\x20used\x20to\x20identify\x20requests\x20in\x20the\x20service's\x20lo\ - gs.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xe0\x01\x02\x08\n\r\n\x05\x04\ - \x06\x02\0\x01\x12\x04\xe0\x01\t\x13\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\ - \xe0\x01\x16\x17\n\xa2\x01\n\x04\x04\x06\x02\x01\x12\x04\xe4\x01\x02\x1a\ - \x1a\x93\x01\x20Any\x20data\x20that\x20was\x20used\x20to\x20serve\x20thi\ - s\x20request.\x20For\x20example,\x20an\x20encrypted\n\x20stack\x20trace\ - \x20that\x20can\x20be\x20sent\x20back\x20to\x20the\x20service\x20provide\ - r\x20for\x20debugging.\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xe4\x01\ - \x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xe4\x01\t\x15\n\r\n\x05\ - \x04\x06\x02\x01\x03\x12\x04\xe4\x01\x18\x19\n>\n\x02\x04\x07\x12\x06\ - \xe8\x01\0\xfd\x01\x01\x1a0\x20Describes\x20the\x20resource\x20that\x20i\ - s\x20being\x20accessed.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xe8\x01\x08\ - \x14\n\xdb\x01\n\x04\x04\x07\x02\0\x12\x04\xec\x01\x02\x1b\x1a\xcc\x01\ - \x20A\x20name\x20for\x20the\x20type\x20of\x20resource\x20being\x20access\ - ed,\x20e.g.\x20\"sql\x20table\",\n\x20\"cloud\x20storage\x20bucket\",\ - \x20\"file\",\x20\"Google\x20calendar\";\x20or\x20the\x20type\x20URL\n\ - \x20of\x20the\x20resource:\x20e.g.\x20\"type.googleapis.com/google.pubsu\ - b.v1.Topic\".\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\xec\x01\x02\x08\n\r\ - \n\x05\x04\x07\x02\0\x01\x12\x04\xec\x01\t\x16\n\r\n\x05\x04\x07\x02\0\ - \x03\x12\x04\xec\x01\x19\x1a\n\xf7\x01\n\x04\x04\x07\x02\x01\x12\x04\xf2\ - \x01\x02\x1b\x1a\xe8\x01\x20The\x20name\x20of\x20the\x20resource\x20bein\ - g\x20accessed.\x20\x20For\x20example,\x20a\x20shared\x20calendar\n\x20na\ - me:\x20\"example.com_4fghdhgsrgh@group.calendar.google.com\",\x20if\x20t\ - he\x20current\n\x20error\x20is\n\x20[google.rpc.Code.PERMISSION_DENIED][\ - google.rpc.Code.PERMISSION_DENIED].\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\ - \x04\xf2\x01\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xf2\x01\t\x16\ - \n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xf2\x01\x19\x1a\n\x85\x01\n\x04\ - \x04\x07\x02\x02\x12\x04\xf7\x01\x02\x13\x1aw\x20The\x20owner\x20of\x20t\ - he\x20resource\x20(optional).\n\x20For\x20example,\x20\"user:\"\x20or\x20\"project:\".\n\ - \n\r\n\x05\x04\x07\x02\x02\x05\x12\x04\xf7\x01\x02\x08\n\r\n\x05\x04\x07\ - \x02\x02\x01\x12\x04\xf7\x01\t\x0e\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\ - \xf7\x01\x11\x12\n\xc0\x01\n\x04\x04\x07\x02\x03\x12\x04\xfc\x01\x02\x19\ - \x1a\xb1\x01\x20Describes\x20what\x20error\x20is\x20encountered\x20when\ - \x20accessing\x20this\x20resource.\n\x20For\x20example,\x20updating\x20a\ - \x20cloud\x20project\x20may\x20require\x20the\x20`writer`\x20permission\ - \n\x20on\x20the\x20developer\x20console\x20project.\n\n\r\n\x05\x04\x07\ - \x02\x03\x05\x12\x04\xfc\x01\x02\x08\n\r\n\x05\x04\x07\x02\x03\x01\x12\ - \x04\xfc\x01\t\x14\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\xfc\x01\x17\x18\ - \n\xba\x02\n\x02\x04\x08\x12\x06\x84\x02\0\x90\x02\x01\x1a\xab\x02\x20Pr\ - ovides\x20links\x20to\x20documentation\x20or\x20for\x20performing\x20an\ - \x20out\x20of\x20band\x20action.\n\n\x20For\x20example,\x20if\x20a\x20qu\ - ota\x20check\x20failed\x20with\x20an\x20error\x20indicating\x20the\x20ca\ - lling\n\x20project\x20hasn't\x20enabled\x20the\x20accessed\x20service,\ - \x20this\x20can\x20contain\x20a\x20URL\x20pointing\n\x20directly\x20to\ - \x20the\x20right\x20place\x20in\x20the\x20developer\x20console\x20to\x20\ - flip\x20the\x20bit.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x84\x02\x08\x0c\n'\ - \n\x04\x04\x08\x03\0\x12\x06\x86\x02\x02\x8c\x02\x03\x1a\x17\x20Describe\ - s\x20a\x20URL\x20link.\n\n\r\n\x05\x04\x08\x03\0\x01\x12\x04\x86\x02\n\ - \x0e\n1\n\x06\x04\x08\x03\0\x02\0\x12\x04\x88\x02\x04\x1b\x1a!\x20Descri\ - bes\x20what\x20the\x20link\x20offers.\n\n\x0f\n\x07\x04\x08\x03\0\x02\0\ - \x05\x12\x04\x88\x02\x04\n\n\x0f\n\x07\x04\x08\x03\0\x02\0\x01\x12\x04\ - \x88\x02\x0b\x16\n\x0f\n\x07\x04\x08\x03\0\x02\0\x03\x12\x04\x88\x02\x19\ - \x1a\n&\n\x06\x04\x08\x03\0\x02\x01\x12\x04\x8b\x02\x04\x13\x1a\x16\x20T\ - he\x20URL\x20of\x20the\x20link.\n\n\x0f\n\x07\x04\x08\x03\0\x02\x01\x05\ - \x12\x04\x8b\x02\x04\n\n\x0f\n\x07\x04\x08\x03\0\x02\x01\x01\x12\x04\x8b\ - \x02\x0b\x0e\n\x0f\n\x07\x04\x08\x03\0\x02\x01\x03\x12\x04\x8b\x02\x11\ - \x12\nX\n\x04\x04\x08\x02\0\x12\x04\x8f\x02\x02\x1a\x1aJ\x20URL(s)\x20po\ - inting\x20to\x20additional\x20information\x20on\x20handling\x20the\x20cu\ - rrent\x20error.\n\n\r\n\x05\x04\x08\x02\0\x04\x12\x04\x8f\x02\x02\n\n\r\ - \n\x05\x04\x08\x02\0\x06\x12\x04\x8f\x02\x0b\x0f\n\r\n\x05\x04\x08\x02\0\ - \x01\x12\x04\x8f\x02\x10\x15\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\x8f\x02\ - \x18\x19\n}\n\x02\x04\t\x12\x06\x94\x02\0\x9c\x02\x01\x1ao\x20Provides\ - \x20a\x20localized\x20error\x20message\x20that\x20is\x20safe\x20to\x20re\ - turn\x20to\x20the\x20user\n\x20which\x20can\x20be\x20attached\x20to\x20a\ - n\x20RPC\x20error.\n\n\x0b\n\x03\x04\t\x01\x12\x04\x94\x02\x08\x18\n\x9f\ - \x01\n\x04\x04\t\x02\0\x12\x04\x98\x02\x02\x14\x1a\x90\x01\x20The\x20loc\ - ale\x20used\x20following\x20the\x20specification\x20defined\x20at\n\x20h\ - ttps://www.rfc-editor.org/rfc/bcp/bcp47.txt.\n\x20Examples\x20are:\x20\"\ - en-US\",\x20\"fr-CH\",\x20\"es-MX\"\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\ - \x98\x02\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x98\x02\t\x0f\n\r\n\ - \x05\x04\t\x02\0\x03\x12\x04\x98\x02\x12\x13\n@\n\x04\x04\t\x02\x01\x12\ - \x04\x9b\x02\x02\x15\x1a2\x20The\x20localized\x20error\x20message\x20in\ - \x20the\x20above\x20locale.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x9b\ - \x02\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x9b\x02\t\x10\n\r\n\x05\ - \x04\t\x02\x01\x03\x12\x04\x9b\x02\x13\x14b\x06proto3\ + project\x20id>\".\n\n\x0e\n\x07\x04\x02\x03\0\x02\0\x05\x12\x03G\x04\n\n\ + \x0e\n\x07\x04\x02\x03\0\x02\0\x01\x12\x03G\x0b\x12\n\x0e\n\x07\x04\x02\ + \x03\0\x02\0\x03\x12\x03G\x15\x16\n\xcc\x02\n\x06\x04\x02\x03\0\x02\x01\ + \x12\x03P\x04\x1b\x1a\xbc\x02\x20A\x20description\x20of\x20how\x20the\ + \x20quota\x20check\x20failed.\x20Clients\x20can\x20use\x20this\n\x20desc\ + ription\x20to\x20find\x20more\x20about\x20the\x20quota\x20configuration\ + \x20in\x20the\x20service's\n\x20public\x20documentation,\x20or\x20find\ + \x20the\x20relevant\x20quota\x20limit\x20to\x20adjust\x20through\n\x20de\ + veloper\x20console.\n\n\x20For\x20example:\x20\"Service\x20disabled\"\ + \x20or\x20\"Daily\x20Limit\x20for\x20read\x20operations\n\x20exceeded\".\ + \n\n\x0e\n\x07\x04\x02\x03\0\x02\x01\x05\x12\x03P\x04\n\n\x0e\n\x07\x04\ + \x02\x03\0\x02\x01\x01\x12\x03P\x0b\x16\n\x0e\n\x07\x04\x02\x03\0\x02\ + \x01\x03\x12\x03P\x19\x1a\n.\n\x04\x04\x02\x02\0\x12\x03T\x02$\x1a!\x20D\ + escribes\x20all\x20quota\x20violations.\n\n\x0c\n\x05\x04\x02\x02\0\x04\ + \x12\x03T\x02\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03T\x0b\x14\n\x0c\n\ + \x05\x04\x02\x02\0\x01\x12\x03T\x15\x1f\n\x0c\n\x05\x04\x02\x02\0\x03\ + \x12\x03T\"#\n\xe8\x01\n\x02\x04\x03\x12\x04\\\0r\x01\x1a\xdb\x01\x20Des\ + cribes\x20what\x20preconditions\x20have\x20failed.\n\n\x20For\x20example\ + ,\x20if\x20an\x20RPC\x20failed\x20because\x20it\x20required\x20the\x20Te\ + rms\x20of\x20Service\x20to\x20be\n\x20acknowledged,\x20it\x20could\x20li\ + st\x20the\x20terms\x20of\x20service\x20violation\x20in\x20the\n\x20Preco\ + nditionFailure\x20message.\n\n\n\n\x03\x04\x03\x01\x12\x03\\\x08\x1b\nN\ + \n\x04\x04\x03\x03\0\x12\x04^\x02n\x03\x1a@\x20A\x20message\x20type\x20u\ + sed\x20to\x20describe\x20a\x20single\x20precondition\x20failure.\n\n\x0c\ + \n\x05\x04\x03\x03\0\x01\x12\x03^\n\x13\n\xcf\x01\n\x06\x04\x03\x03\0\ + \x02\0\x12\x03b\x04\x14\x1a\xbf\x01\x20The\x20type\x20of\x20Precondition\ + Failure.\x20We\x20recommend\x20using\x20a\x20service-specific\n\x20enum\ + \x20type\x20to\x20define\x20the\x20supported\x20precondition\x20violatio\ + n\x20types.\x20For\n\x20example,\x20\"TOS\"\x20for\x20\"Terms\x20of\x20S\ + ervice\x20violation\".\n\n\x0e\n\x07\x04\x03\x03\0\x02\0\x05\x12\x03b\ + \x04\n\n\x0e\n\x07\x04\x03\x03\0\x02\0\x01\x12\x03b\x0b\x0f\n\x0e\n\x07\ + \x04\x03\x03\0\x02\0\x03\x12\x03b\x12\x13\n\xb9\x01\n\x06\x04\x03\x03\0\ + \x02\x01\x12\x03g\x04\x17\x1a\xa9\x01\x20The\x20subject,\x20relative\x20\ + to\x20the\x20type,\x20that\x20failed.\n\x20For\x20example,\x20\"google.c\ + om/cloud\"\x20relative\x20to\x20the\x20\"TOS\"\x20type\x20would\n\x20ind\ + icate\x20which\x20terms\x20of\x20service\x20is\x20being\x20referenced.\n\ + \n\x0e\n\x07\x04\x03\x03\0\x02\x01\x05\x12\x03g\x04\n\n\x0e\n\x07\x04\ + \x03\x03\0\x02\x01\x01\x12\x03g\x0b\x12\n\x0e\n\x07\x04\x03\x03\0\x02\ + \x01\x03\x12\x03g\x15\x16\n\xba\x01\n\x06\x04\x03\x03\0\x02\x02\x12\x03m\ + \x04\x1b\x1a\xaa\x01\x20A\x20description\x20of\x20how\x20the\x20precondi\ + tion\x20failed.\x20Developers\x20can\x20use\x20this\n\x20description\x20\ + to\x20understand\x20how\x20to\x20fix\x20the\x20failure.\n\n\x20For\x20ex\ + ample:\x20\"Terms\x20of\x20service\x20not\x20accepted\".\n\n\x0e\n\x07\ + \x04\x03\x03\0\x02\x02\x05\x12\x03m\x04\n\n\x0e\n\x07\x04\x03\x03\0\x02\ + \x02\x01\x12\x03m\x0b\x16\n\x0e\n\x07\x04\x03\x03\0\x02\x02\x03\x12\x03m\ + \x19\x1a\n5\n\x04\x04\x03\x02\0\x12\x03q\x02$\x1a(\x20Describes\x20all\ + \x20precondition\x20violations.\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03q\ + \x02\n\n\x0c\n\x05\x04\x03\x02\0\x06\x12\x03q\x0b\x14\n\x0c\n\x05\x04\ + \x03\x02\0\x01\x12\x03q\x15\x1f\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03q\"\ + #\nz\n\x02\x04\x04\x12\x05v\0\x84\x01\x01\x1am\x20Describes\x20violation\ + s\x20in\x20a\x20client\x20request.\x20This\x20error\x20type\x20focuses\ + \x20on\x20the\n\x20syntactic\x20aspects\x20of\x20the\x20request.\n\n\n\n\ + \x03\x04\x04\x01\x12\x03v\x08\x12\nL\n\x04\x04\x04\x03\0\x12\x05x\x02\ + \x80\x01\x03\x1a=\x20A\x20message\x20type\x20used\x20to\x20describe\x20a\ + \x20single\x20bad\x20request\x20field.\n\n\x0c\n\x05\x04\x04\x03\0\x01\ + \x12\x03x\n\x18\n\xdd\x01\n\x06\x04\x04\x03\0\x02\0\x12\x03|\x04\x15\x1a\ + \xcd\x01\x20A\x20path\x20leading\x20to\x20a\x20field\x20in\x20the\x20req\ + uest\x20body.\x20The\x20value\x20will\x20be\x20a\n\x20sequence\x20of\x20\ + dot-separated\x20identifiers\x20that\x20identify\x20a\x20protocol\x20buf\ + fer\n\x20field.\x20E.g.,\x20\"field_violations.field\"\x20would\x20ident\ + ify\x20this\x20field.\n\n\x0e\n\x07\x04\x04\x03\0\x02\0\x05\x12\x03|\x04\ + \n\n\x0e\n\x07\x04\x04\x03\0\x02\0\x01\x12\x03|\x0b\x10\n\x0e\n\x07\x04\ + \x04\x03\0\x02\0\x03\x12\x03|\x13\x14\nA\n\x06\x04\x04\x03\0\x02\x01\x12\ + \x03\x7f\x04\x1b\x1a2\x20A\x20description\x20of\x20why\x20the\x20request\ + \x20element\x20is\x20bad.\n\n\x0e\n\x07\x04\x04\x03\0\x02\x01\x05\x12\ + \x03\x7f\x04\n\n\x0e\n\x07\x04\x04\x03\0\x02\x01\x01\x12\x03\x7f\x0b\x16\ + \n\x0e\n\x07\x04\x04\x03\0\x02\x01\x03\x12\x03\x7f\x19\x1a\n=\n\x04\x04\ + \x04\x02\0\x12\x04\x83\x01\x02/\x1a/\x20Describes\x20all\x20violations\ + \x20in\x20a\x20client\x20request.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\x04\ + \x83\x01\x02\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\x83\x01\x0b\x19\n\r\n\ + \x05\x04\x04\x02\0\x01\x12\x04\x83\x01\x1a*\n\r\n\x05\x04\x04\x02\0\x03\ + \x12\x04\x83\x01-.\n\x84\x01\n\x02\x04\x05\x12\x06\x88\x01\0\x90\x01\x01\ + \x1av\x20Contains\x20metadata\x20about\x20the\x20request\x20that\x20clie\ + nts\x20can\x20attach\x20when\x20filing\x20a\x20bug\n\x20or\x20providing\ + \x20other\x20forms\x20of\x20feedback.\n\n\x0b\n\x03\x04\x05\x01\x12\x04\ + \x88\x01\x08\x13\n\xa8\x01\n\x04\x04\x05\x02\0\x12\x04\x8b\x01\x02\x18\ + \x1a\x99\x01\x20An\x20opaque\x20string\x20that\x20should\x20only\x20be\ + \x20interpreted\x20by\x20the\x20service\x20generating\n\x20it.\x20For\ + \x20example,\x20it\x20can\x20be\x20used\x20to\x20identify\x20requests\ + \x20in\x20the\x20service's\x20logs.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\ + \x04\x8b\x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x8b\x01\t\x13\n\ + \r\n\x05\x04\x05\x02\0\x03\x12\x04\x8b\x01\x16\x17\n\xa2\x01\n\x04\x04\ + \x05\x02\x01\x12\x04\x8f\x01\x02\x1a\x1a\x93\x01\x20Any\x20data\x20that\ + \x20was\x20used\x20to\x20serve\x20this\x20request.\x20For\x20example,\ + \x20an\x20encrypted\n\x20stack\x20trace\x20that\x20can\x20be\x20sent\x20\ + back\x20to\x20the\x20service\x20provider\x20for\x20debugging.\n\n\r\n\ + \x05\x04\x05\x02\x01\x05\x12\x04\x8f\x01\x02\x08\n\r\n\x05\x04\x05\x02\ + \x01\x01\x12\x04\x8f\x01\t\x15\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\x8f\ + \x01\x18\x19\n>\n\x02\x04\x06\x12\x06\x93\x01\0\xa8\x01\x01\x1a0\x20Desc\ + ribes\x20the\x20resource\x20that\x20is\x20being\x20accessed.\n\n\x0b\n\ + \x03\x04\x06\x01\x12\x04\x93\x01\x08\x14\n\xdb\x01\n\x04\x04\x06\x02\0\ + \x12\x04\x97\x01\x02\x1b\x1a\xcc\x01\x20A\x20name\x20for\x20the\x20type\ + \x20of\x20resource\x20being\x20accessed,\x20e.g.\x20\"sql\x20table\",\n\ + \x20\"cloud\x20storage\x20bucket\",\x20\"file\",\x20\"Google\x20calendar\ + \";\x20or\x20the\x20type\x20URL\n\x20of\x20the\x20resource:\x20e.g.\x20\ + \"type.googleapis.com/google.pubsub.v1.Topic\".\n\n\r\n\x05\x04\x06\x02\ + \0\x05\x12\x04\x97\x01\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x97\ + \x01\t\x16\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\x97\x01\x19\x1a\n\xf7\x01\ + \n\x04\x04\x06\x02\x01\x12\x04\x9d\x01\x02\x1b\x1a\xe8\x01\x20The\x20nam\ + e\x20of\x20the\x20resource\x20being\x20accessed.\x20\x20For\x20example,\ + \x20a\x20shared\x20calendar\n\x20name:\x20\"example.com_4fghdhgsrgh@grou\ + p.calendar.google.com\",\x20if\x20the\x20current\n\x20error\x20is\n\x20[\ + google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].\n\ + \n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\x06\ + \x02\x01\x01\x12\x04\x9d\x01\t\x16\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\ + \x9d\x01\x19\x1a\n\x85\x01\n\x04\x04\x06\x02\x02\x12\x04\xa2\x01\x02\x13\ + \x1aw\x20The\x20owner\x20of\x20the\x20resource\x20(optional).\n\x20For\ + \x20example,\x20\"user:\"\x20or\x20\"project:\".\n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\ + \xa2\x01\x02\x08\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xa2\x01\t\x0e\n\r\ + \n\x05\x04\x06\x02\x02\x03\x12\x04\xa2\x01\x11\x12\n\xc0\x01\n\x04\x04\ + \x06\x02\x03\x12\x04\xa7\x01\x02\x19\x1a\xb1\x01\x20Describes\x20what\ + \x20error\x20is\x20encountered\x20when\x20accessing\x20this\x20resource.\ + \n\x20For\x20example,\x20updating\x20a\x20cloud\x20project\x20may\x20req\ + uire\x20the\x20`writer`\x20permission\n\x20on\x20the\x20developer\x20con\ + sole\x20project.\n\n\r\n\x05\x04\x06\x02\x03\x05\x12\x04\xa7\x01\x02\x08\ + \n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\xa7\x01\t\x14\n\r\n\x05\x04\x06\ + \x02\x03\x03\x12\x04\xa7\x01\x17\x18\n\xba\x02\n\x02\x04\x07\x12\x06\xaf\ + \x01\0\xbb\x01\x01\x1a\xab\x02\x20Provides\x20links\x20to\x20documentati\ + on\x20or\x20for\x20performing\x20an\x20out\x20of\x20band\x20action.\n\n\ + \x20For\x20example,\x20if\x20a\x20quota\x20check\x20failed\x20with\x20an\ + \x20error\x20indicating\x20the\x20calling\n\x20project\x20hasn't\x20enab\ + led\x20the\x20accessed\x20service,\x20this\x20can\x20contain\x20a\x20URL\ + \x20pointing\n\x20directly\x20to\x20the\x20right\x20place\x20in\x20the\ + \x20developer\x20console\x20to\x20flip\x20the\x20bit.\n\n\x0b\n\x03\x04\ + \x07\x01\x12\x04\xaf\x01\x08\x0c\n'\n\x04\x04\x07\x03\0\x12\x06\xb1\x01\ + \x02\xb7\x01\x03\x1a\x17\x20Describes\x20a\x20URL\x20link.\n\n\r\n\x05\ + \x04\x07\x03\0\x01\x12\x04\xb1\x01\n\x0e\n1\n\x06\x04\x07\x03\0\x02\0\ + \x12\x04\xb3\x01\x04\x1b\x1a!\x20Describes\x20what\x20the\x20link\x20off\ + ers.\n\n\x0f\n\x07\x04\x07\x03\0\x02\0\x05\x12\x04\xb3\x01\x04\n\n\x0f\n\ + \x07\x04\x07\x03\0\x02\0\x01\x12\x04\xb3\x01\x0b\x16\n\x0f\n\x07\x04\x07\ + \x03\0\x02\0\x03\x12\x04\xb3\x01\x19\x1a\n&\n\x06\x04\x07\x03\0\x02\x01\ + \x12\x04\xb6\x01\x04\x13\x1a\x16\x20The\x20URL\x20of\x20the\x20link.\n\n\ + \x0f\n\x07\x04\x07\x03\0\x02\x01\x05\x12\x04\xb6\x01\x04\n\n\x0f\n\x07\ + \x04\x07\x03\0\x02\x01\x01\x12\x04\xb6\x01\x0b\x0e\n\x0f\n\x07\x04\x07\ + \x03\0\x02\x01\x03\x12\x04\xb6\x01\x11\x12\nX\n\x04\x04\x07\x02\0\x12\ + \x04\xba\x01\x02\x1a\x1aJ\x20URL(s)\x20pointing\x20to\x20additional\x20i\ + nformation\x20on\x20handling\x20the\x20current\x20error.\n\n\r\n\x05\x04\ + \x07\x02\0\x04\x12\x04\xba\x01\x02\n\n\r\n\x05\x04\x07\x02\0\x06\x12\x04\ + \xba\x01\x0b\x0f\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xba\x01\x10\x15\n\r\ + \n\x05\x04\x07\x02\0\x03\x12\x04\xba\x01\x18\x19\n}\n\x02\x04\x08\x12\ + \x06\xbf\x01\0\xc7\x01\x01\x1ao\x20Provides\x20a\x20localized\x20error\ + \x20message\x20that\x20is\x20safe\x20to\x20return\x20to\x20the\x20user\n\ + \x20which\x20can\x20be\x20attached\x20to\x20an\x20RPC\x20error.\n\n\x0b\ + \n\x03\x04\x08\x01\x12\x04\xbf\x01\x08\x18\n\x9e\x01\n\x04\x04\x08\x02\0\ + \x12\x04\xc3\x01\x02\x14\x1a\x8f\x01\x20The\x20locale\x20used\x20followi\ + ng\x20the\x20specification\x20defined\x20at\n\x20http://www.rfc-editor.o\ + rg/rfc/bcp/bcp47.txt.\n\x20Examples\x20are:\x20\"en-US\",\x20\"fr-CH\",\ + \x20\"es-MX\"\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xc3\x01\x02\x08\n\r\ + \n\x05\x04\x08\x02\0\x01\x12\x04\xc3\x01\t\x0f\n\r\n\x05\x04\x08\x02\0\ + \x03\x12\x04\xc3\x01\x12\x13\n@\n\x04\x04\x08\x02\x01\x12\x04\xc6\x01\ + \x02\x15\x1a2\x20The\x20localized\x20error\x20message\x20in\x20the\x20ab\ + ove\x20locale.\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xc6\x01\x02\x08\n\ + \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xc6\x01\t\x10\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xc6\x01\x13\x14b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(13); + messages.push(RetryInfo::generated_message_descriptor_data()); + messages.push(DebugInfo::generated_message_descriptor_data()); + messages.push(QuotaFailure::generated_message_descriptor_data()); + messages.push(PreconditionFailure::generated_message_descriptor_data()); + messages.push(BadRequest::generated_message_descriptor_data()); + messages.push(RequestInfo::generated_message_descriptor_data()); + messages.push(ResourceInfo::generated_message_descriptor_data()); + messages.push(Help::generated_message_descriptor_data()); + messages.push(LocalizedMessage::generated_message_descriptor_data()); + messages.push(quota_failure::Violation::generated_message_descriptor_data()); + messages.push(precondition_failure::Violation::generated_message_descriptor_data()); + messages.push(bad_request::FieldViolation::generated_message_descriptor_data()); + messages.push(help::Link::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/rpc/http.rs b/googleapis-raw/src/rpc/http.rs deleted file mode 100644 index c55c5eb..0000000 --- a/googleapis-raw/src/rpc/http.rs +++ /dev/null @@ -1,894 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/rpc/http.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct HttpRequest { - // message fields - pub method: ::std::string::String, - pub uri: ::std::string::String, - pub headers: ::protobuf::RepeatedField, - pub body: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpRequest { - fn default() -> &'a HttpRequest { - ::default_instance() - } -} - -impl HttpRequest { - pub fn new() -> HttpRequest { - ::std::default::Default::default() - } - - // string method = 1; - - - pub fn get_method(&self) -> &str { - &self.method - } - pub fn clear_method(&mut self) { - self.method.clear(); - } - - // Param is passed by value, moved - pub fn set_method(&mut self, v: ::std::string::String) { - self.method = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_method(&mut self) -> &mut ::std::string::String { - &mut self.method - } - - // Take field - pub fn take_method(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.method, ::std::string::String::new()) - } - - // string uri = 2; - - - pub fn get_uri(&self) -> &str { - &self.uri - } - pub fn clear_uri(&mut self) { - self.uri.clear(); - } - - // Param is passed by value, moved - pub fn set_uri(&mut self, v: ::std::string::String) { - self.uri = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uri(&mut self) -> &mut ::std::string::String { - &mut self.uri - } - - // Take field - pub fn take_uri(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uri, ::std::string::String::new()) - } - - // repeated .google.rpc.HttpHeader headers = 3; - - - pub fn get_headers(&self) -> &[HttpHeader] { - &self.headers - } - pub fn clear_headers(&mut self) { - self.headers.clear(); - } - - // Param is passed by value, moved - pub fn set_headers(&mut self, v: ::protobuf::RepeatedField) { - self.headers = v; - } - - // Mutable pointer to the field. - pub fn mut_headers(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.headers - } - - // Take field - pub fn take_headers(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.headers, ::protobuf::RepeatedField::new()) - } - - // bytes body = 4; - - - pub fn get_body(&self) -> &[u8] { - &self.body - } - pub fn clear_body(&mut self) { - self.body.clear(); - } - - // Param is passed by value, moved - pub fn set_body(&mut self, v: ::std::vec::Vec) { - self.body = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_body(&mut self) -> &mut ::std::vec::Vec { - &mut self.body - } - - // Take field - pub fn take_body(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.body, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for HttpRequest { - fn is_initialized(&self) -> bool { - for v in &self.headers { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.method)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.headers)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.body)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.method.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.method); - } - if !self.uri.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.uri); - } - for value in &self.headers { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.body.is_empty() { - my_size += ::protobuf::rt::bytes_size(4, &self.body); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.method.is_empty() { - os.write_string(1, &self.method)?; - } - if !self.uri.is_empty() { - os.write_string(2, &self.uri)?; - } - for v in &self.headers { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.body.is_empty() { - os.write_bytes(4, &self.body)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HttpRequest { - HttpRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "method", - |m: &HttpRequest| { &m.method }, - |m: &mut HttpRequest| { &mut m.method }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uri", - |m: &HttpRequest| { &m.uri }, - |m: &mut HttpRequest| { &mut m.uri }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "headers", - |m: &HttpRequest| { &m.headers }, - |m: &mut HttpRequest| { &mut m.headers }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "body", - |m: &HttpRequest| { &m.body }, - |m: &mut HttpRequest| { &mut m.body }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpRequest::new) - } -} - -impl ::protobuf::Clear for HttpRequest { - fn clear(&mut self) { - self.method.clear(); - self.uri.clear(); - self.headers.clear(); - self.body.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HttpRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HttpRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HttpResponse { - // message fields - pub status: i32, - pub reason: ::std::string::String, - pub headers: ::protobuf::RepeatedField, - pub body: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpResponse { - fn default() -> &'a HttpResponse { - ::default_instance() - } -} - -impl HttpResponse { - pub fn new() -> HttpResponse { - ::std::default::Default::default() - } - - // int32 status = 1; - - - pub fn get_status(&self) -> i32 { - self.status - } - pub fn clear_status(&mut self) { - self.status = 0; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: i32) { - self.status = v; - } - - // string reason = 2; - - - pub fn get_reason(&self) -> &str { - &self.reason - } - pub fn clear_reason(&mut self) { - self.reason.clear(); - } - - // Param is passed by value, moved - pub fn set_reason(&mut self, v: ::std::string::String) { - self.reason = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_reason(&mut self) -> &mut ::std::string::String { - &mut self.reason - } - - // Take field - pub fn take_reason(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.reason, ::std::string::String::new()) - } - - // repeated .google.rpc.HttpHeader headers = 3; - - - pub fn get_headers(&self) -> &[HttpHeader] { - &self.headers - } - pub fn clear_headers(&mut self) { - self.headers.clear(); - } - - // Param is passed by value, moved - pub fn set_headers(&mut self, v: ::protobuf::RepeatedField) { - self.headers = v; - } - - // Mutable pointer to the field. - pub fn mut_headers(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.headers - } - - // Take field - pub fn take_headers(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.headers, ::protobuf::RepeatedField::new()) - } - - // bytes body = 4; - - - pub fn get_body(&self) -> &[u8] { - &self.body - } - pub fn clear_body(&mut self) { - self.body.clear(); - } - - // Param is passed by value, moved - pub fn set_body(&mut self, v: ::std::vec::Vec) { - self.body = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_body(&mut self) -> &mut ::std::vec::Vec { - &mut self.body - } - - // Take field - pub fn take_body(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.body, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for HttpResponse { - fn is_initialized(&self) -> bool { - for v in &self.headers { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.status = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.reason)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.headers)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.body)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.status != 0 { - my_size += ::protobuf::rt::value_size(1, self.status, ::protobuf::wire_format::WireTypeVarint); - } - if !self.reason.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.reason); - } - for value in &self.headers { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.body.is_empty() { - my_size += ::protobuf::rt::bytes_size(4, &self.body); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.status != 0 { - os.write_int32(1, self.status)?; - } - if !self.reason.is_empty() { - os.write_string(2, &self.reason)?; - } - for v in &self.headers { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.body.is_empty() { - os.write_bytes(4, &self.body)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HttpResponse { - HttpResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "status", - |m: &HttpResponse| { &m.status }, - |m: &mut HttpResponse| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "reason", - |m: &HttpResponse| { &m.reason }, - |m: &mut HttpResponse| { &mut m.reason }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "headers", - |m: &HttpResponse| { &m.headers }, - |m: &mut HttpResponse| { &mut m.headers }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "body", - |m: &HttpResponse| { &m.body }, - |m: &mut HttpResponse| { &mut m.body }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpResponse::new) - } -} - -impl ::protobuf::Clear for HttpResponse { - fn clear(&mut self) { - self.status = 0; - self.reason.clear(); - self.headers.clear(); - self.body.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HttpResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HttpResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HttpHeader { - // message fields - pub key: ::std::string::String, - pub value: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HttpHeader { - fn default() -> &'a HttpHeader { - ::default_instance() - } -} - -impl HttpHeader { - pub fn new() -> HttpHeader { - ::std::default::Default::default() - } - - // string key = 1; - - - pub fn get_key(&self) -> &str { - &self.key - } - pub fn clear_key(&mut self) { - self.key.clear(); - } - - // Param is passed by value, moved - pub fn set_key(&mut self, v: ::std::string::String) { - self.key = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key(&mut self) -> &mut ::std::string::String { - &mut self.key - } - - // Take field - pub fn take_key(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.key, ::std::string::String::new()) - } - - // string value = 2; - - - pub fn get_value(&self) -> &str { - &self.value - } - pub fn clear_value(&mut self) { - self.value.clear(); - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: ::std::string::String) { - self.value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value(&mut self) -> &mut ::std::string::String { - &mut self.value - } - - // Take field - pub fn take_value(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.value, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for HttpHeader { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.key)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.key.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.key); - } - if !self.value.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.value); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.key.is_empty() { - os.write_string(1, &self.key)?; - } - if !self.value.is_empty() { - os.write_string(2, &self.value)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HttpHeader { - HttpHeader::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "key", - |m: &HttpHeader| { &m.key }, - |m: &mut HttpHeader| { &mut m.key }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "value", - |m: &HttpHeader| { &m.value }, - |m: &mut HttpHeader| { &mut m.value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HttpHeader", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static HttpHeader { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(HttpHeader::new) - } -} - -impl ::protobuf::Clear for HttpHeader { - fn clear(&mut self) { - self.key.clear(); - self.value.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HttpHeader { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HttpHeader { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x15google/rpc/http.proto\x12\ngoogle.rpc\"}\n\x0bHttpRequest\x12\x16\ - \n\x06method\x18\x01\x20\x01(\tR\x06method\x12\x10\n\x03uri\x18\x02\x20\ - \x01(\tR\x03uri\x120\n\x07headers\x18\x03\x20\x03(\x0b2\x16.google.rpc.H\ - ttpHeaderR\x07headers\x12\x12\n\x04body\x18\x04\x20\x01(\x0cR\x04body\"\ - \x84\x01\n\x0cHttpResponse\x12\x16\n\x06status\x18\x01\x20\x01(\x05R\x06\ - status\x12\x16\n\x06reason\x18\x02\x20\x01(\tR\x06reason\x120\n\x07heade\ - rs\x18\x03\x20\x03(\x0b2\x16.google.rpc.HttpHeaderR\x07headers\x12\x12\n\ - \x04body\x18\x04\x20\x01(\x0cR\x04body\"4\n\nHttpHeader\x12\x10\n\x03key\ - \x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05va\ - lueBX\n\x0ecom.google.rpcB\tHttpProtoP\x01Z3google.golang.org/genproto/g\ - oogleapis/rpc/http;http\xa2\x02\x03RPCJ\xb6\x10\n\x06\x12\x04\x0e\0?\x01\ - \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20\ - Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ - ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ - this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ - \x12\x03\x12\0J\n\t\n\x02\x08\x0b\x12\x03\x12\0J\n\x08\n\x01\x08\x12\x03\ - \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0*\ - \n\t\n\x02\x08\x08\x12\x03\x14\0*\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ - \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0!\n\t\n\x02\x08\ - $\x12\x03\x16\0!\n)\n\x02\x04\0\x12\x04\x19\0&\x01\x1a\x1d\x20Represents\ - \x20an\x20HTTP\x20request.\n\n\n\n\x03\x04\0\x01\x12\x03\x19\x08\x13\n'\ - \n\x04\x04\0\x02\0\x12\x03\x1b\x02\x14\x1a\x1a\x20The\x20HTTP\x20request\ - \x20method.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1b\x02\x08\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03\x1b\t\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03\x1b\x12\x13\n$\n\x04\x04\0\x02\x01\x12\x03\x1e\x02\x11\x1a\x17\x20T\ - he\x20HTTP\x20request\x20URI.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\ - \x1e\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1e\t\x0c\n\x0c\n\x05\ - \x04\0\x02\x01\x03\x12\x03\x1e\x0f\x10\n\x96\x01\n\x04\x04\0\x02\x02\x12\ - \x03\"\x02\"\x1a\x88\x01\x20The\x20HTTP\x20request\x20headers.\x20The\ - \x20ordering\x20of\x20the\x20headers\x20is\x20significant.\n\x20Multiple\ - \x20headers\x20with\x20the\x20same\x20key\x20may\x20present\x20for\x20th\ - e\x20request.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03\"\x02\n\n\x0c\n\ - \x05\x04\0\x02\x02\x06\x12\x03\"\x0b\x15\n\x0c\n\x05\x04\0\x02\x02\x01\ - \x12\x03\"\x16\x1d\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03\"\x20!\nV\n\x04\ - \x04\0\x02\x03\x12\x03%\x02\x11\x1aI\x20The\x20HTTP\x20request\x20body.\ - \x20If\x20the\x20body\x20is\x20not\x20expected,\x20it\x20should\x20be\ - \x20empty.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x02\x07\n\x0c\n\x05\ - \x04\0\x02\x03\x01\x12\x03%\x08\x0c\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ - \x03%\x0f\x10\n*\n\x02\x04\x01\x12\x04)\06\x01\x1a\x1e\x20Represents\x20\ - an\x20HTTP\x20response.\n\n\n\n\x03\x04\x01\x01\x12\x03)\x08\x14\n8\n\ - \x04\x04\x01\x02\0\x12\x03+\x02\x13\x1a+\x20The\x20HTTP\x20status\x20cod\ - e,\x20such\x20as\x20200\x20or\x20404.\n\n\x0c\n\x05\x04\x01\x02\0\x05\ - \x12\x03+\x02\x07\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03+\x08\x0e\n\x0c\n\ - \x05\x04\x01\x02\0\x03\x12\x03+\x11\x12\nC\n\x04\x04\x01\x02\x01\x12\x03\ - .\x02\x14\x1a6\x20The\x20HTTP\x20reason\x20phrase,\x20such\x20as\x20\"OK\ - \"\x20or\x20\"Not\x20Found\".\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03.\ - \x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03.\t\x0f\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03.\x12\x13\n\x98\x01\n\x04\x04\x01\x02\x02\x12\ - \x032\x02\"\x1a\x8a\x01\x20The\x20HTTP\x20response\x20headers.\x20The\ - \x20ordering\x20of\x20the\x20headers\x20is\x20significant.\n\x20Multiple\ - \x20headers\x20with\x20the\x20same\x20key\x20may\x20present\x20for\x20th\ - e\x20response.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x032\x02\n\n\x0c\n\ - \x05\x04\x01\x02\x02\x06\x12\x032\x0b\x15\n\x0c\n\x05\x04\x01\x02\x02\ - \x01\x12\x032\x16\x1d\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x032\x20!\nW\n\ - \x04\x04\x01\x02\x03\x12\x035\x02\x11\x1aJ\x20The\x20HTTP\x20response\ - \x20body.\x20If\x20the\x20body\x20is\x20not\x20expected,\x20it\x20should\ - \x20be\x20empty.\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x035\x02\x07\n\ - \x0c\n\x05\x04\x01\x02\x03\x01\x12\x035\x08\x0c\n\x0c\n\x05\x04\x01\x02\ - \x03\x03\x12\x035\x0f\x10\n(\n\x02\x04\x02\x12\x049\0?\x01\x1a\x1c\x20Re\ - presents\x20an\x20HTTP\x20header.\n\n\n\n\x03\x04\x02\x01\x12\x039\x08\ - \x12\n;\n\x04\x04\x02\x02\0\x12\x03;\x02\x11\x1a.\x20The\x20HTTP\x20head\ - er\x20key.\x20It\x20is\x20case\x20insensitive.\n\n\x0c\n\x05\x04\x02\x02\ - \0\x05\x12\x03;\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03;\t\x0c\n\ - \x0c\n\x05\x04\x02\x02\0\x03\x12\x03;\x0f\x10\n%\n\x04\x04\x02\x02\x01\ - \x12\x03>\x02\x13\x1a\x18\x20The\x20HTTP\x20header\x20value.\n\n\x0c\n\ - \x05\x04\x02\x02\x01\x05\x12\x03>\x02\x08\n\x0c\n\x05\x04\x02\x02\x01\ - \x01\x12\x03>\t\x0e\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03>\x11\x12b\ - \x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/rpc/mod.rs b/googleapis-raw/src/rpc/mod.rs index 58e9536..f097746 100644 --- a/googleapis-raw/src/rpc/mod.rs +++ b/googleapis-raw/src/rpc/mod.rs @@ -2,5 +2,4 @@ pub mod code; pub mod error_details; -pub mod http; pub mod status; diff --git a/googleapis-raw/src/rpc/status.rs b/googleapis-raw/src/rpc/status.rs index 8a96c85..f5c95ce 100644 --- a/googleapis-raw/src/rpc/status.rs +++ b/googleapis-raw/src/rpc/status.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,36 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/rpc/status.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.rpc.Status) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Status { // message fields + /// The status code, which should be an enum value of + /// [google.rpc.Code][google.rpc.Code]. + // @@protoc_insertion_point(field:google.rpc.Status.code) pub code: i32, + /// A developer-facing error message, which should be in English. Any + /// user-facing error message should be localized and sent in the + /// [google.rpc.Status.details][google.rpc.Status.details] field, or localized + /// by the client. + // @@protoc_insertion_point(field:google.rpc.Status.message) pub message: ::std::string::String, - pub details: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>, + /// A list of messages that carry the error details. There is a common set of + /// message types for APIs to use. + // @@protoc_insertion_point(field:google.rpc.Status.details) + pub details: ::std::vec::Vec<::protobuf::well_known_types::any::Any>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.rpc.Status.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Status { @@ -45,102 +59,53 @@ impl Status { ::std::default::Default::default() } - // int32 code = 1; - - - pub fn get_code(&self) -> i32 { - self.code - } - pub fn clear_code(&mut self) { - self.code = 0; - } - - // Param is passed by value, moved - pub fn set_code(&mut self, v: i32) { - self.code = v; - } - - // string message = 2; - - - pub fn get_message(&self) -> &str { - &self.message - } - pub fn clear_message(&mut self) { - self.message.clear(); - } - - // Param is passed by value, moved - pub fn set_message(&mut self, v: ::std::string::String) { - self.message = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_message(&mut self) -> &mut ::std::string::String { - &mut self.message - } - - // Take field - pub fn take_message(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.message, ::std::string::String::new()) - } - - // repeated .google.protobuf.Any details = 3; - - - pub fn get_details(&self) -> &[::protobuf::well_known_types::Any] { - &self.details - } - pub fn clear_details(&mut self) { - self.details.clear(); - } - - // Param is passed by value, moved - pub fn set_details(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Any>) { - self.details = v; - } - - // Mutable pointer to the field. - pub fn mut_details(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - &mut self.details - } - - // Take field - pub fn take_details(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Any> { - ::std::mem::replace(&mut self.details, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "code", + |m: &Status| { &m.code }, + |m: &mut Status| { &mut m.code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "message", + |m: &Status| { &m.message }, + |m: &mut Status| { &mut m.message }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "details", + |m: &Status| { &m.details }, + |m: &mut Status| { &mut m.details }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Status", + fields, + oneofs, + ) } } impl ::protobuf::Message for Status { + const NAME: &'static str = "Status"; + fn is_initialized(&self) -> bool { - for v in &self.details { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.code = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.code = is.read_int32()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.message)?; + 18 => { + self.message = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.details)?; + 26 => { + self.details.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -149,24 +114,24 @@ impl ::protobuf::Message for Status { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.code != 0 { - my_size += ::protobuf::rt::value_size(1, self.code, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.code); } if !self.message.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.message); } for value in &self.details { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.code != 0 { os.write_int32(1, self.code)?; } @@ -174,161 +139,184 @@ impl ::protobuf::Message for Status { os.write_string(2, &self.message)?; } for v in &self.details { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Status { Status::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "code", - |m: &Status| { &m.code }, - |m: &mut Status| { &mut m.code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "message", - |m: &Status| { &m.message }, - |m: &mut Status| { &mut m.message }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>( - "details", - |m: &Status| { &m.details }, - |m: &mut Status| { &mut m.details }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Status", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.code = 0; + self.message.clear(); + self.details.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Status { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Status::new) + static instance: Status = Status { + code: 0, + message: ::std::string::String::new(), + details: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Status { - fn clear(&mut self) { - self.code = 0; - self.message.clear(); - self.details.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Status { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Status").unwrap()).clone() } } -impl ::std::fmt::Debug for Status { +impl ::std::fmt::Display for Status { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Status { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x17google/rpc/status.proto\x12\ngoogle.rpc\x1a\x19google/protobuf/any\ .proto\"f\n\x06Status\x12\x12\n\x04code\x18\x01\x20\x01(\x05R\x04code\ \x12\x18\n\x07message\x18\x02\x20\x01(\tR\x07message\x12.\n\x07details\ - \x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\x07detailsBa\n\x0ecom.go\ + \x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\x07detailsB^\n\x0ecom.go\ ogle.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc\ - /status;status\xf8\x01\x01\xa2\x02\x03RPCJ\x84\x0e\n\x06\x12\x04\x0e\00\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\ - \x02\x03\0\x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\ - \x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0N\n\t\n\x02\x08\ - \x0b\x12\x03\x15\0N\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\ - \x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\ - \x17\0,\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\ - \n\x08\n\x01\x08\x12\x03\x19\0!\n\t\n\x02\x08$\x12\x03\x19\0!\n\xbe\x03\ - \n\x02\x04\0\x12\x04\"\00\x01\x1a\xb1\x03\x20The\x20`Status`\x20type\x20\ - defines\x20a\x20logical\x20error\x20model\x20that\x20is\x20suitable\x20f\ - or\n\x20different\x20programming\x20environments,\x20including\x20REST\ - \x20APIs\x20and\x20RPC\x20APIs.\x20It\x20is\n\x20used\x20by\x20[gRPC](ht\ - tps://github.com/grpc).\x20Each\x20`Status`\x20message\x20contains\n\x20\ - three\x20pieces\x20of\x20data:\x20error\x20code,\x20error\x20message,\ - \x20and\x20error\x20details.\n\n\x20You\x20can\x20find\x20out\x20more\ - \x20about\x20this\x20error\x20model\x20and\x20how\x20to\x20work\x20with\ - \x20it\x20in\x20the\n\x20[API\x20Design\x20Guide](https://cloud.google.c\ - om/apis/design/errors).\n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x0e\ne\n\x04\ - \x04\0\x02\0\x12\x03%\x02\x11\x1aX\x20The\x20status\x20code,\x20which\ - \x20should\x20be\x20an\x20enum\x20value\x20of\n\x20[google.rpc.Code][goo\ - gle.rpc.Code].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03%\x02\x07\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03%\x08\x0c\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03%\x0f\x10\n\xec\x01\n\x04\x04\0\x02\x01\x12\x03+\x02\x15\x1a\xde\x01\ - \x20A\x20developer-facing\x20error\x20message,\x20which\x20should\x20be\ - \x20in\x20English.\x20Any\n\x20user-facing\x20error\x20message\x20should\ - \x20be\x20localized\x20and\x20sent\x20in\x20the\n\x20[google.rpc.Status.\ - details][google.rpc.Status.details]\x20field,\x20or\x20localized\n\x20by\ - \x20the\x20client.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03+\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x03+\t\x10\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03+\x13\x14\ny\n\x04\x04\0\x02\x02\x12\x03/\x02+\x1al\x20A\x20\ - list\x20of\x20messages\x20that\x20carry\x20the\x20error\x20details.\x20\ - \x20There\x20is\x20a\x20common\x20set\x20of\n\x20message\x20types\x20for\ - \x20APIs\x20to\x20use.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03/\x02\n\n\ - \x0c\n\x05\x04\0\x02\x02\x06\x12\x03/\x0b\x1e\n\x0c\n\x05\x04\0\x02\x02\ - \x01\x12\x03/\x1f&\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03/)*b\x06proto3\ + /status;status\xa2\x02\x03RPCJ\x80\x1e\n\x06\x12\x04\x0e\0]\x01\n\xbd\ + \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\x20Copyright\x202017\x20Google\ + \x20Inc.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ + n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ + ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ + \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ + \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ + riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ + \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ + RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ + \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ + \x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0N\n\t\n\x02\x08\x0b\x12\x03\ + \x14\0N\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\ + \n\x08\n\x01\x08\x12\x03\x16\0,\n\t\n\x02\x08\x08\x12\x03\x16\0,\n\x08\n\ + \x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\ + \x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\n\xce\x13\n\x02\x04\0\x12\ + \x04O\0]\x01\x1a\xc1\x13\x20The\x20`Status`\x20type\x20defines\x20a\x20l\ + ogical\x20error\x20model\x20that\x20is\x20suitable\x20for\n\x20different\ + \x20programming\x20environments,\x20including\x20REST\x20APIs\x20and\x20\ + RPC\x20APIs.\x20It\x20is\n\x20used\x20by\x20[gRPC](https://github.com/gr\ + pc).\x20The\x20error\x20model\x20is\x20designed\x20to\x20be:\n\n\x20-\ + \x20Simple\x20to\x20use\x20and\x20understand\x20for\x20most\x20users\n\ + \x20-\x20Flexible\x20enough\x20to\x20meet\x20unexpected\x20needs\n\n\x20\ + #\x20Overview\n\n\x20The\x20`Status`\x20message\x20contains\x20three\x20\ + pieces\x20of\x20data:\x20error\x20code,\x20error\n\x20message,\x20and\ + \x20error\x20details.\x20The\x20error\x20code\x20should\x20be\x20an\x20e\ + num\x20value\x20of\n\x20[google.rpc.Code][google.rpc.Code],\x20but\x20it\ + \x20may\x20accept\x20additional\x20error\x20codes\n\x20if\x20needed.\x20\ + \x20The\x20error\x20message\x20should\x20be\x20a\x20developer-facing\x20\ + English\x20message\n\x20that\x20helps\x20developers\x20*understand*\x20a\ + nd\x20*resolve*\x20the\x20error.\x20If\x20a\x20localized\n\x20user-facin\ + g\x20error\x20message\x20is\x20needed,\x20put\x20the\x20localized\x20mes\ + sage\x20in\x20the\x20error\n\x20details\x20or\x20localize\x20it\x20in\ + \x20the\x20client.\x20The\x20optional\x20error\x20details\x20may\x20cont\ + ain\n\x20arbitrary\x20information\x20about\x20the\x20error.\x20There\x20\ + is\x20a\x20predefined\x20set\x20of\x20error\n\x20detail\x20types\x20in\ + \x20the\x20package\x20`google.rpc`\x20that\x20can\x20be\x20used\x20for\ + \x20common\x20error\n\x20conditions.\n\n\x20#\x20Language\x20mapping\n\n\ + \x20The\x20`Status`\x20message\x20is\x20the\x20logical\x20representation\ + \x20of\x20the\x20error\x20model,\x20but\x20it\n\x20is\x20not\x20necessar\ + ily\x20the\x20actual\x20wire\x20format.\x20When\x20the\x20`Status`\x20me\ + ssage\x20is\n\x20exposed\x20in\x20different\x20client\x20libraries\x20an\ + d\x20different\x20wire\x20protocols,\x20it\x20can\x20be\n\x20mapped\x20d\ + ifferently.\x20For\x20example,\x20it\x20will\x20likely\x20be\x20mapped\ + \x20to\x20some\x20exceptions\n\x20in\x20Java,\x20but\x20more\x20likely\ + \x20mapped\x20to\x20some\x20error\x20codes\x20in\x20C.\n\n\x20#\x20Other\ + \x20uses\n\n\x20The\x20error\x20model\x20and\x20the\x20`Status`\x20messa\ + ge\x20can\x20be\x20used\x20in\x20a\x20variety\x20of\n\x20environments,\ + \x20either\x20with\x20or\x20without\x20APIs,\x20to\x20provide\x20a\n\x20\ + consistent\x20developer\x20experience\x20across\x20different\x20environm\ + ents.\n\n\x20Example\x20uses\x20of\x20this\x20error\x20model\x20include:\ + \n\n\x20-\x20Partial\x20errors.\x20If\x20a\x20service\x20needs\x20to\x20\ + return\x20partial\x20errors\x20to\x20the\x20client,\n\x20\x20\x20\x20\ + \x20it\x20may\x20embed\x20the\x20`Status`\x20in\x20the\x20normal\x20resp\ + onse\x20to\x20indicate\x20the\x20partial\n\x20\x20\x20\x20\x20errors.\n\ + \n\x20-\x20Workflow\x20errors.\x20A\x20typical\x20workflow\x20has\x20mul\ + tiple\x20steps.\x20Each\x20step\x20may\n\x20\x20\x20\x20\x20have\x20a\ + \x20`Status`\x20message\x20for\x20error\x20reporting.\n\n\x20-\x20Batch\ + \x20operations.\x20If\x20a\x20client\x20uses\x20batch\x20request\x20and\ + \x20batch\x20response,\x20the\n\x20\x20\x20\x20\x20`Status`\x20message\ + \x20should\x20be\x20used\x20directly\x20inside\x20batch\x20response,\x20\ + one\x20for\n\x20\x20\x20\x20\x20each\x20error\x20sub-response.\n\n\x20-\ + \x20Asynchronous\x20operations.\x20If\x20an\x20API\x20call\x20embeds\x20\ + asynchronous\x20operation\n\x20\x20\x20\x20\x20results\x20in\x20its\x20r\ + esponse,\x20the\x20status\x20of\x20those\x20operations\x20should\x20be\n\ + \x20\x20\x20\x20\x20represented\x20directly\x20using\x20the\x20`Status`\ + \x20message.\n\n\x20-\x20Logging.\x20If\x20some\x20API\x20errors\x20are\ + \x20stored\x20in\x20logs,\x20the\x20message\x20`Status`\x20could\n\x20\ + \x20\x20\x20\x20be\x20used\x20directly\x20after\x20any\x20stripping\x20n\ + eeded\x20for\x20security/privacy\x20reasons.\n\n\n\n\x03\x04\0\x01\x12\ + \x03O\x08\x0e\ne\n\x04\x04\0\x02\0\x12\x03R\x02\x11\x1aX\x20The\x20statu\ + s\x20code,\x20which\x20should\x20be\x20an\x20enum\x20value\x20of\n\x20[g\ + oogle.rpc.Code][google.rpc.Code].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03R\ + \x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03R\x08\x0c\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03R\x0f\x10\n\xec\x01\n\x04\x04\0\x02\x01\x12\x03X\x02\ + \x15\x1a\xde\x01\x20A\x20developer-facing\x20error\x20message,\x20which\ + \x20should\x20be\x20in\x20English.\x20Any\n\x20user-facing\x20error\x20m\ + essage\x20should\x20be\x20localized\x20and\x20sent\x20in\x20the\n\x20[go\ + ogle.rpc.Status.details][google.rpc.Status.details]\x20field,\x20or\x20l\ + ocalized\n\x20by\x20the\x20client.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\ + \x03X\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03X\t\x10\n\x0c\n\x05\ + \x04\0\x02\x01\x03\x12\x03X\x13\x14\ny\n\x04\x04\0\x02\x02\x12\x03\\\x02\ + +\x1al\x20A\x20list\x20of\x20messages\x20that\x20carry\x20the\x20error\ + \x20details.\x20\x20There\x20is\x20a\x20common\x20set\x20of\n\x20message\ + \x20types\x20for\x20APIs\x20to\x20use.\n\n\x0c\n\x05\x04\0\x02\x02\x04\ + \x12\x03\\\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\\\x0b\x1e\n\x0c\n\ + \x05\x04\0\x02\x02\x01\x12\x03\\\x1f&\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ + \x03\\)*b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::any::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Status::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/admin/database/v1/backup.rs b/googleapis-raw/src/spanner/admin/database/v1/backup.rs deleted file mode 100644 index 0cc3bd7..0000000 --- a/googleapis-raw/src/spanner/admin/database/v1/backup.rs +++ /dev/null @@ -1,5174 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/spanner/admin/database/v1/backup.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Backup { - // message fields - pub database: ::std::string::String, - pub version_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub name: ::std::string::String, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub size_bytes: i64, - pub state: Backup_State, - pub referencing_databases: ::protobuf::RepeatedField<::std::string::String>, - pub encryption_info: ::protobuf::SingularPtrField, - pub database_dialect: super::common::DatabaseDialect, - pub referencing_backups: ::protobuf::RepeatedField<::std::string::String>, - pub max_expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Backup { - fn default() -> &'a Backup { - ::default_instance() - } -} - -impl Backup { - pub fn new() -> Backup { - ::std::default::Default::default() - } - - // string database = 2; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp version_time = 9; - - - pub fn get_version_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.version_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_version_time(&mut self) { - self.version_time.clear(); - } - - pub fn has_version_time(&self) -> bool { - self.version_time.is_some() - } - - // Param is passed by value, moved - pub fn set_version_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.version_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.version_time.is_none() { - self.version_time.set_default(); - } - self.version_time.as_mut().unwrap() - } - - // Take field - pub fn take_version_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.version_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp expire_time = 3; - - - pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expire_time(&mut self) { - self.expire_time.clear(); - } - - pub fn has_expire_time(&self) -> bool { - self.expire_time.is_some() - } - - // Param is passed by value, moved - pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expire_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expire_time.is_none() { - self.expire_time.set_default(); - } - self.expire_time.as_mut().unwrap() - } - - // Take field - pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp create_time = 4; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // int64 size_bytes = 5; - - - pub fn get_size_bytes(&self) -> i64 { - self.size_bytes - } - pub fn clear_size_bytes(&mut self) { - self.size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_size_bytes(&mut self, v: i64) { - self.size_bytes = v; - } - - // .google.spanner.admin.database.v1.Backup.State state = 6; - - - pub fn get_state(&self) -> Backup_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Backup_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Backup_State) { - self.state = v; - } - - // repeated string referencing_databases = 7; - - - pub fn get_referencing_databases(&self) -> &[::std::string::String] { - &self.referencing_databases - } - pub fn clear_referencing_databases(&mut self) { - self.referencing_databases.clear(); - } - - // Param is passed by value, moved - pub fn set_referencing_databases(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.referencing_databases = v; - } - - // Mutable pointer to the field. - pub fn mut_referencing_databases(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.referencing_databases - } - - // Take field - pub fn take_referencing_databases(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.referencing_databases, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8; - - - pub fn get_encryption_info(&self) -> &super::common::EncryptionInfo { - self.encryption_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_info(&mut self) { - self.encryption_info.clear(); - } - - pub fn has_encryption_info(&self) -> bool { - self.encryption_info.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: super::common::EncryptionInfo) { - self.encryption_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_info(&mut self) -> &mut super::common::EncryptionInfo { - if self.encryption_info.is_none() { - self.encryption_info.set_default(); - } - self.encryption_info.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_info(&mut self) -> super::common::EncryptionInfo { - self.encryption_info.take().unwrap_or_else(|| super::common::EncryptionInfo::new()) - } - - // .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10; - - - pub fn get_database_dialect(&self) -> super::common::DatabaseDialect { - self.database_dialect - } - pub fn clear_database_dialect(&mut self) { - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_database_dialect(&mut self, v: super::common::DatabaseDialect) { - self.database_dialect = v; - } - - // repeated string referencing_backups = 11; - - - pub fn get_referencing_backups(&self) -> &[::std::string::String] { - &self.referencing_backups - } - pub fn clear_referencing_backups(&mut self) { - self.referencing_backups.clear(); - } - - // Param is passed by value, moved - pub fn set_referencing_backups(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.referencing_backups = v; - } - - // Mutable pointer to the field. - pub fn mut_referencing_backups(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.referencing_backups - } - - // Take field - pub fn take_referencing_backups(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.referencing_backups, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp max_expire_time = 12; - - - pub fn get_max_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.max_expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_max_expire_time(&mut self) { - self.max_expire_time.clear(); - } - - pub fn has_max_expire_time(&self) -> bool { - self.max_expire_time.is_some() - } - - // Param is passed by value, moved - pub fn set_max_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.max_expire_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_max_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.max_expire_time.is_none() { - self.max_expire_time.set_default(); - } - self.max_expire_time.as_mut().unwrap() - } - - // Take field - pub fn take_max_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.max_expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Backup { - fn is_initialized(&self) -> bool { - for v in &self.version_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.expire_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.max_expire_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.version_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?; - }, - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.size_bytes = tmp; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.referencing_databases)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_info)?; - }, - 10 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.database_dialect, 10, &mut self.unknown_fields)? - }, - 11 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.referencing_backups)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.max_expire_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.database); - } - if let Some(ref v) = self.version_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.expire_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.size_bytes != 0 { - my_size += ::protobuf::rt::value_size(5, self.size_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.state != Backup_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.state); - } - for value in &self.referencing_databases { - my_size += ::protobuf::rt::string_size(7, &value); - }; - if let Some(ref v) = self.encryption_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(10, self.database_dialect); - } - for value in &self.referencing_backups { - my_size += ::protobuf::rt::string_size(11, &value); - }; - if let Some(ref v) = self.max_expire_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(2, &self.database)?; - } - if let Some(ref v) = self.version_time.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.expire_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.size_bytes != 0 { - os.write_int64(5, self.size_bytes)?; - } - if self.state != Backup_State::STATE_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.state))?; - } - for v in &self.referencing_databases { - os.write_string(7, &v)?; - }; - if let Some(ref v) = self.encryption_info.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - os.write_enum(10, ::protobuf::ProtobufEnum::value(&self.database_dialect))?; - } - for v in &self.referencing_backups { - os.write_string(11, &v)?; - }; - if let Some(ref v) = self.max_expire_time.as_ref() { - os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Backup { - Backup::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &Backup| { &m.database }, - |m: &mut Backup| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "version_time", - |m: &Backup| { &m.version_time }, - |m: &mut Backup| { &mut m.version_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expire_time", - |m: &Backup| { &m.expire_time }, - |m: &mut Backup| { &mut m.expire_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Backup| { &m.name }, - |m: &mut Backup| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Backup| { &m.create_time }, - |m: &mut Backup| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "size_bytes", - |m: &Backup| { &m.size_bytes }, - |m: &mut Backup| { &mut m.size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Backup| { &m.state }, - |m: &mut Backup| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "referencing_databases", - |m: &Backup| { &m.referencing_databases }, - |m: &mut Backup| { &mut m.referencing_databases }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_info", - |m: &Backup| { &m.encryption_info }, - |m: &mut Backup| { &mut m.encryption_info }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "database_dialect", - |m: &Backup| { &m.database_dialect }, - |m: &mut Backup| { &mut m.database_dialect }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "referencing_backups", - |m: &Backup| { &m.referencing_backups }, - |m: &mut Backup| { &mut m.referencing_backups }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "max_expire_time", - |m: &Backup| { &m.max_expire_time }, - |m: &mut Backup| { &mut m.max_expire_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Backup", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Backup { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Backup::new) - } -} - -impl ::protobuf::Clear for Backup { - fn clear(&mut self) { - self.database.clear(); - self.version_time.clear(); - self.expire_time.clear(); - self.name.clear(); - self.create_time.clear(); - self.size_bytes = 0; - self.state = Backup_State::STATE_UNSPECIFIED; - self.referencing_databases.clear(); - self.encryption_info.clear(); - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - self.referencing_backups.clear(); - self.max_expire_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Backup { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Backup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Backup_State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2, -} - -impl ::protobuf::ProtobufEnum for Backup_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Backup_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Backup_State::CREATING), - 2 => ::std::option::Option::Some(Backup_State::READY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Backup_State] = &[ - Backup_State::STATE_UNSPECIFIED, - Backup_State::CREATING, - Backup_State::READY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Backup.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Backup_State { -} - -impl ::std::default::Default for Backup_State { - fn default() -> Self { - Backup_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Backup_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateBackupRequest { - // message fields - pub parent: ::std::string::String, - pub backup_id: ::std::string::String, - pub backup: ::protobuf::SingularPtrField, - pub encryption_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateBackupRequest { - fn default() -> &'a CreateBackupRequest { - ::default_instance() - } -} - -impl CreateBackupRequest { - pub fn new() -> CreateBackupRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string backup_id = 2; - - - pub fn get_backup_id(&self) -> &str { - &self.backup_id - } - pub fn clear_backup_id(&mut self) { - self.backup_id.clear(); - } - - // Param is passed by value, moved - pub fn set_backup_id(&mut self, v: ::std::string::String) { - self.backup_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup_id(&mut self) -> &mut ::std::string::String { - &mut self.backup_id - } - - // Take field - pub fn take_backup_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup_id, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.Backup backup = 3; - - - pub fn get_backup(&self) -> &Backup { - self.backup.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } - - pub fn has_backup(&self) -> bool { - self.backup.is_some() - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: Backup) { - self.backup = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut Backup { - if self.backup.is_none() { - self.backup.set_default(); - } - self.backup.as_mut().unwrap() - } - - // Take field - pub fn take_backup(&mut self) -> Backup { - self.backup.take().unwrap_or_else(|| Backup::new()) - } - - // .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4; - - - pub fn get_encryption_config(&self) -> &CreateBackupEncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: CreateBackupEncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut CreateBackupEncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> CreateBackupEncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| CreateBackupEncryptionConfig::new()) - } -} - -impl ::protobuf::Message for CreateBackupRequest { - fn is_initialized(&self) -> bool { - for v in &self.backup { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backup)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.backup_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.backup_id); - } - if let Some(ref v) = self.backup.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.backup_id.is_empty() { - os.write_string(2, &self.backup_id)?; - } - if let Some(ref v) = self.backup.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateBackupRequest { - CreateBackupRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateBackupRequest| { &m.parent }, - |m: &mut CreateBackupRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup_id", - |m: &CreateBackupRequest| { &m.backup_id }, - |m: &mut CreateBackupRequest| { &mut m.backup_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backup", - |m: &CreateBackupRequest| { &m.backup }, - |m: &mut CreateBackupRequest| { &mut m.backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &CreateBackupRequest| { &m.encryption_config }, - |m: &mut CreateBackupRequest| { &mut m.encryption_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateBackupRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateBackupRequest::new) - } -} - -impl ::protobuf::Clear for CreateBackupRequest { - fn clear(&mut self) { - self.parent.clear(); - self.backup_id.clear(); - self.backup.clear(); - self.encryption_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateBackupRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateBackupMetadata { - // message fields - pub name: ::std::string::String, - pub database: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateBackupMetadata { - fn default() -> &'a CreateBackupMetadata { - ::default_instance() - } -} - -impl CreateBackupMetadata { - pub fn new() -> CreateBackupMetadata { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string database = 2; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.OperationProgress progress = 3; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) - } - - // .google.protobuf.Timestamp cancel_time = 4; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); - } - - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() - } - - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() - } - - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for CreateBackupMetadata { - fn is_initialized(&self) -> bool { - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.database); - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cancel_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.database.is_empty() { - os.write_string(2, &self.database)?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateBackupMetadata { - CreateBackupMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CreateBackupMetadata| { &m.name }, - |m: &mut CreateBackupMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &CreateBackupMetadata| { &m.database }, - |m: &mut CreateBackupMetadata| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &CreateBackupMetadata| { &m.progress }, - |m: &mut CreateBackupMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &CreateBackupMetadata| { &m.cancel_time }, - |m: &mut CreateBackupMetadata| { &mut m.cancel_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateBackupMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateBackupMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateBackupMetadata::new) - } -} - -impl ::protobuf::Clear for CreateBackupMetadata { - fn clear(&mut self) { - self.name.clear(); - self.database.clear(); - self.progress.clear(); - self.cancel_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateBackupMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateBackupMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CopyBackupRequest { - // message fields - pub parent: ::std::string::String, - pub backup_id: ::std::string::String, - pub source_backup: ::std::string::String, - pub expire_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub encryption_config: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CopyBackupRequest { - fn default() -> &'a CopyBackupRequest { - ::default_instance() - } -} - -impl CopyBackupRequest { - pub fn new() -> CopyBackupRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string backup_id = 2; - - - pub fn get_backup_id(&self) -> &str { - &self.backup_id - } - pub fn clear_backup_id(&mut self) { - self.backup_id.clear(); - } - - // Param is passed by value, moved - pub fn set_backup_id(&mut self, v: ::std::string::String) { - self.backup_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup_id(&mut self) -> &mut ::std::string::String { - &mut self.backup_id - } - - // Take field - pub fn take_backup_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup_id, ::std::string::String::new()) - } - - // string source_backup = 3; - - - pub fn get_source_backup(&self) -> &str { - &self.source_backup - } - pub fn clear_source_backup(&mut self) { - self.source_backup.clear(); - } - - // Param is passed by value, moved - pub fn set_source_backup(&mut self, v: ::std::string::String) { - self.source_backup = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup(&mut self) -> &mut ::std::string::String { - &mut self.source_backup - } - - // Take field - pub fn take_source_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_backup, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp expire_time = 4; - - - pub fn get_expire_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.expire_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_expire_time(&mut self) { - self.expire_time.clear(); - } - - pub fn has_expire_time(&self) -> bool { - self.expire_time.is_some() - } - - // Param is passed by value, moved - pub fn set_expire_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.expire_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expire_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.expire_time.is_none() { - self.expire_time.set_default(); - } - self.expire_time.as_mut().unwrap() - } - - // Take field - pub fn take_expire_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.expire_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5; - - - pub fn get_encryption_config(&self) -> &CopyBackupEncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: CopyBackupEncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut CopyBackupEncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> CopyBackupEncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| CopyBackupEncryptionConfig::new()) - } -} - -impl ::protobuf::Message for CopyBackupRequest { - fn is_initialized(&self) -> bool { - for v in &self.expire_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_backup)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.expire_time)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.backup_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.backup_id); - } - if !self.source_backup.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.source_backup); - } - if let Some(ref v) = self.expire_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.backup_id.is_empty() { - os.write_string(2, &self.backup_id)?; - } - if !self.source_backup.is_empty() { - os.write_string(3, &self.source_backup)?; - } - if let Some(ref v) = self.expire_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CopyBackupRequest { - CopyBackupRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CopyBackupRequest| { &m.parent }, - |m: &mut CopyBackupRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup_id", - |m: &CopyBackupRequest| { &m.backup_id }, - |m: &mut CopyBackupRequest| { &mut m.backup_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_backup", - |m: &CopyBackupRequest| { &m.source_backup }, - |m: &mut CopyBackupRequest| { &mut m.source_backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "expire_time", - |m: &CopyBackupRequest| { &m.expire_time }, - |m: &mut CopyBackupRequest| { &mut m.expire_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &CopyBackupRequest| { &m.encryption_config }, - |m: &mut CopyBackupRequest| { &mut m.encryption_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyBackupRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CopyBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyBackupRequest::new) - } -} - -impl ::protobuf::Clear for CopyBackupRequest { - fn clear(&mut self) { - self.parent.clear(); - self.backup_id.clear(); - self.source_backup.clear(); - self.expire_time.clear(); - self.encryption_config.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CopyBackupRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CopyBackupMetadata { - // message fields - pub name: ::std::string::String, - pub source_backup: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CopyBackupMetadata { - fn default() -> &'a CopyBackupMetadata { - ::default_instance() - } -} - -impl CopyBackupMetadata { - pub fn new() -> CopyBackupMetadata { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string source_backup = 2; - - - pub fn get_source_backup(&self) -> &str { - &self.source_backup - } - pub fn clear_source_backup(&mut self) { - self.source_backup.clear(); - } - - // Param is passed by value, moved - pub fn set_source_backup(&mut self, v: ::std::string::String) { - self.source_backup = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_backup(&mut self) -> &mut ::std::string::String { - &mut self.source_backup - } - - // Take field - pub fn take_source_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_backup, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.OperationProgress progress = 3; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) - } - - // .google.protobuf.Timestamp cancel_time = 4; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); - } - - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() - } - - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() - } - - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for CopyBackupMetadata { - fn is_initialized(&self) -> bool { - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_backup)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.source_backup.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source_backup); - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cancel_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.source_backup.is_empty() { - os.write_string(2, &self.source_backup)?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CopyBackupMetadata { - CopyBackupMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &CopyBackupMetadata| { &m.name }, - |m: &mut CopyBackupMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_backup", - |m: &CopyBackupMetadata| { &m.source_backup }, - |m: &mut CopyBackupMetadata| { &mut m.source_backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &CopyBackupMetadata| { &m.progress }, - |m: &mut CopyBackupMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &CopyBackupMetadata| { &m.cancel_time }, - |m: &mut CopyBackupMetadata| { &mut m.cancel_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyBackupMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CopyBackupMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyBackupMetadata::new) - } -} - -impl ::protobuf::Clear for CopyBackupMetadata { - fn clear(&mut self) { - self.name.clear(); - self.source_backup.clear(); - self.progress.clear(); - self.cancel_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CopyBackupMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyBackupMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateBackupRequest { - // message fields - pub backup: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateBackupRequest { - fn default() -> &'a UpdateBackupRequest { - ::default_instance() - } -} - -impl UpdateBackupRequest { - pub fn new() -> UpdateBackupRequest { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.Backup backup = 1; - - - pub fn get_backup(&self) -> &Backup { - self.backup.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } - - pub fn has_backup(&self) -> bool { - self.backup.is_some() - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: Backup) { - self.backup = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut Backup { - if self.backup.is_none() { - self.backup.set_default(); - } - self.backup.as_mut().unwrap() - } - - // Take field - pub fn take_backup(&mut self) -> Backup { - self.backup.take().unwrap_or_else(|| Backup::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateBackupRequest { - fn is_initialized(&self) -> bool { - for v in &self.backup { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.backup)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.backup.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.backup.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateBackupRequest { - UpdateBackupRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backup", - |m: &UpdateBackupRequest| { &m.backup }, - |m: &mut UpdateBackupRequest| { &mut m.backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateBackupRequest| { &m.update_mask }, - |m: &mut UpdateBackupRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateBackupRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateBackupRequest::new) - } -} - -impl ::protobuf::Clear for UpdateBackupRequest { - fn clear(&mut self) { - self.backup.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateBackupRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetBackupRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetBackupRequest { - fn default() -> &'a GetBackupRequest { - ::default_instance() - } -} - -impl GetBackupRequest { - pub fn new() -> GetBackupRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetBackupRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetBackupRequest { - GetBackupRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetBackupRequest| { &m.name }, - |m: &mut GetBackupRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetBackupRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetBackupRequest::new) - } -} - -impl ::protobuf::Clear for GetBackupRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetBackupRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteBackupRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteBackupRequest { - fn default() -> &'a DeleteBackupRequest { - ::default_instance() - } -} - -impl DeleteBackupRequest { - pub fn new() -> DeleteBackupRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DeleteBackupRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteBackupRequest { - DeleteBackupRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteBackupRequest| { &m.name }, - |m: &mut DeleteBackupRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteBackupRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteBackupRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteBackupRequest::new) - } -} - -impl ::protobuf::Clear for DeleteBackupRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteBackupRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteBackupRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupsRequest { - // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBackupsRequest { - fn default() -> &'a ListBackupsRequest { - ::default_instance() - } -} - -impl ListBackupsRequest { - pub fn new() -> ListBackupsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string filter = 2; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListBackupsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filter); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.filter.is_empty() { - os.write_string(2, &self.filter)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBackupsRequest { - ListBackupsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListBackupsRequest| { &m.parent }, - |m: &mut ListBackupsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListBackupsRequest| { &m.filter }, - |m: &mut ListBackupsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListBackupsRequest| { &m.page_size }, - |m: &mut ListBackupsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListBackupsRequest| { &m.page_token }, - |m: &mut ListBackupsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBackupsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupsRequest::new) - } -} - -impl ::protobuf::Clear for ListBackupsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBackupsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBackupsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupsResponse { - // message fields - pub backups: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBackupsResponse { - fn default() -> &'a ListBackupsResponse { - ::default_instance() - } -} - -impl ListBackupsResponse { - pub fn new() -> ListBackupsResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.admin.database.v1.Backup backups = 1; - - - pub fn get_backups(&self) -> &[Backup] { - &self.backups - } - pub fn clear_backups(&mut self) { - self.backups.clear(); - } - - // Param is passed by value, moved - pub fn set_backups(&mut self, v: ::protobuf::RepeatedField) { - self.backups = v; - } - - // Mutable pointer to the field. - pub fn mut_backups(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.backups - } - - // Take field - pub fn take_backups(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.backups, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListBackupsResponse { - fn is_initialized(&self) -> bool { - for v in &self.backups { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.backups)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.backups { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.backups { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBackupsResponse { - ListBackupsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "backups", - |m: &ListBackupsResponse| { &m.backups }, - |m: &mut ListBackupsResponse| { &mut m.backups }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListBackupsResponse| { &m.next_page_token }, - |m: &mut ListBackupsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBackupsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupsResponse::new) - } -} - -impl ::protobuf::Clear for ListBackupsResponse { - fn clear(&mut self) { - self.backups.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBackupsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBackupsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupOperationsRequest { - // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBackupOperationsRequest { - fn default() -> &'a ListBackupOperationsRequest { - ::default_instance() - } -} - -impl ListBackupOperationsRequest { - pub fn new() -> ListBackupOperationsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string filter = 2; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListBackupOperationsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filter); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.filter.is_empty() { - os.write_string(2, &self.filter)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBackupOperationsRequest { - ListBackupOperationsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListBackupOperationsRequest| { &m.parent }, - |m: &mut ListBackupOperationsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListBackupOperationsRequest| { &m.filter }, - |m: &mut ListBackupOperationsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListBackupOperationsRequest| { &m.page_size }, - |m: &mut ListBackupOperationsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListBackupOperationsRequest| { &m.page_token }, - |m: &mut ListBackupOperationsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupOperationsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBackupOperationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupOperationsRequest::new) - } -} - -impl ::protobuf::Clear for ListBackupOperationsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBackupOperationsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBackupOperationsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListBackupOperationsResponse { - // message fields - pub operations: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListBackupOperationsResponse { - fn default() -> &'a ListBackupOperationsResponse { - ::default_instance() - } -} - -impl ListBackupOperationsResponse { - pub fn new() -> ListBackupOperationsResponse { - ::std::default::Default::default() - } - - // repeated .google.longrunning.Operation operations = 1; - - - pub fn get_operations(&self) -> &[super::operations::Operation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListBackupOperationsResponse { - fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.operations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.operations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListBackupOperationsResponse { - ListBackupOperationsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ListBackupOperationsResponse| { &m.operations }, - |m: &mut ListBackupOperationsResponse| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListBackupOperationsResponse| { &m.next_page_token }, - |m: &mut ListBackupOperationsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListBackupOperationsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListBackupOperationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListBackupOperationsResponse::new) - } -} - -impl ::protobuf::Clear for ListBackupOperationsResponse { - fn clear(&mut self) { - self.operations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListBackupOperationsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListBackupOperationsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BackupInfo { - // message fields - pub backup: ::std::string::String, - pub version_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub source_database: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BackupInfo { - fn default() -> &'a BackupInfo { - ::default_instance() - } -} - -impl BackupInfo { - pub fn new() -> BackupInfo { - ::std::default::Default::default() - } - - // string backup = 1; - - - pub fn get_backup(&self) -> &str { - &self.backup - } - pub fn clear_backup(&mut self) { - self.backup.clear(); - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: ::std::string::String) { - self.backup = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_backup(&mut self) -> &mut ::std::string::String { - &mut self.backup - } - - // Take field - pub fn take_backup(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.backup, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp version_time = 4; - - - pub fn get_version_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.version_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_version_time(&mut self) { - self.version_time.clear(); - } - - pub fn has_version_time(&self) -> bool { - self.version_time.is_some() - } - - // Param is passed by value, moved - pub fn set_version_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.version_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.version_time.is_none() { - self.version_time.set_default(); - } - self.version_time.as_mut().unwrap() - } - - // Take field - pub fn take_version_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.version_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp create_time = 2; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string source_database = 3; - - - pub fn get_source_database(&self) -> &str { - &self.source_database - } - pub fn clear_source_database(&mut self) { - self.source_database.clear(); - } - - // Param is passed by value, moved - pub fn set_source_database(&mut self, v: ::std::string::String) { - self.source_database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source_database(&mut self) -> &mut ::std::string::String { - &mut self.source_database - } - - // Take field - pub fn take_source_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source_database, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for BackupInfo { - fn is_initialized(&self) -> bool { - for v in &self.version_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.backup)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.version_time)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source_database)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.backup.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.backup); - } - if let Some(ref v) = self.version_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.source_database.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.source_database); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.backup.is_empty() { - os.write_string(1, &self.backup)?; - } - if let Some(ref v) = self.version_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.source_database.is_empty() { - os.write_string(3, &self.source_database)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BackupInfo { - BackupInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "backup", - |m: &BackupInfo| { &m.backup }, - |m: &mut BackupInfo| { &mut m.backup }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "version_time", - |m: &BackupInfo| { &m.version_time }, - |m: &mut BackupInfo| { &mut m.version_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &BackupInfo| { &m.create_time }, - |m: &mut BackupInfo| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source_database", - |m: &BackupInfo| { &m.source_database }, - |m: &mut BackupInfo| { &mut m.source_database }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BackupInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static BackupInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BackupInfo::new) - } -} - -impl ::protobuf::Clear for BackupInfo { - fn clear(&mut self) { - self.backup.clear(); - self.version_time.clear(); - self.create_time.clear(); - self.source_database.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BackupInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BackupInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateBackupEncryptionConfig { - // message fields - pub encryption_type: CreateBackupEncryptionConfig_EncryptionType, - pub kms_key_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateBackupEncryptionConfig { - fn default() -> &'a CreateBackupEncryptionConfig { - ::default_instance() - } -} - -impl CreateBackupEncryptionConfig { - pub fn new() -> CreateBackupEncryptionConfig { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.CreateBackupEncryptionConfig.EncryptionType encryption_type = 1; - - - pub fn get_encryption_type(&self) -> CreateBackupEncryptionConfig_EncryptionType { - self.encryption_type - } - pub fn clear_encryption_type(&mut self) { - self.encryption_type = CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encryption_type(&mut self, v: CreateBackupEncryptionConfig_EncryptionType) { - self.encryption_type = v; - } - - // string kms_key_name = 2; - - - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name - } - - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateBackupEncryptionConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.encryption_type != CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.encryption_type); - } - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.encryption_type != CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.encryption_type))?; - } - if !self.kms_key_name.is_empty() { - os.write_string(2, &self.kms_key_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateBackupEncryptionConfig { - CreateBackupEncryptionConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encryption_type", - |m: &CreateBackupEncryptionConfig| { &m.encryption_type }, - |m: &mut CreateBackupEncryptionConfig| { &mut m.encryption_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &CreateBackupEncryptionConfig| { &m.kms_key_name }, - |m: &mut CreateBackupEncryptionConfig| { &mut m.kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateBackupEncryptionConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateBackupEncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateBackupEncryptionConfig::new) - } -} - -impl ::protobuf::Clear for CreateBackupEncryptionConfig { - fn clear(&mut self) { - self.encryption_type = CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - self.kms_key_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateBackupEncryptionConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateBackupEncryptionConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CreateBackupEncryptionConfig_EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - USE_DATABASE_ENCRYPTION = 1, - GOOGLE_DEFAULT_ENCRYPTION = 2, - CUSTOMER_MANAGED_ENCRYPTION = 3, -} - -impl ::protobuf::ProtobufEnum for CreateBackupEncryptionConfig_EncryptionType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CreateBackupEncryptionConfig_EncryptionType::USE_DATABASE_ENCRYPTION), - 2 => ::std::option::Option::Some(CreateBackupEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION), - 3 => ::std::option::Option::Some(CreateBackupEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CreateBackupEncryptionConfig_EncryptionType] = &[ - CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED, - CreateBackupEncryptionConfig_EncryptionType::USE_DATABASE_ENCRYPTION, - CreateBackupEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION, - CreateBackupEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CreateBackupEncryptionConfig.EncryptionType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CreateBackupEncryptionConfig_EncryptionType { -} - -impl ::std::default::Default for CreateBackupEncryptionConfig_EncryptionType { - fn default() -> Self { - CreateBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateBackupEncryptionConfig_EncryptionType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CopyBackupEncryptionConfig { - // message fields - pub encryption_type: CopyBackupEncryptionConfig_EncryptionType, - pub kms_key_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CopyBackupEncryptionConfig { - fn default() -> &'a CopyBackupEncryptionConfig { - ::default_instance() - } -} - -impl CopyBackupEncryptionConfig { - pub fn new() -> CopyBackupEncryptionConfig { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1; - - - pub fn get_encryption_type(&self) -> CopyBackupEncryptionConfig_EncryptionType { - self.encryption_type - } - pub fn clear_encryption_type(&mut self) { - self.encryption_type = CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encryption_type(&mut self, v: CopyBackupEncryptionConfig_EncryptionType) { - self.encryption_type = v; - } - - // string kms_key_name = 2; - - - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name - } - - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CopyBackupEncryptionConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.encryption_type != CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.encryption_type); - } - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.encryption_type != CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.encryption_type))?; - } - if !self.kms_key_name.is_empty() { - os.write_string(2, &self.kms_key_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CopyBackupEncryptionConfig { - CopyBackupEncryptionConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encryption_type", - |m: &CopyBackupEncryptionConfig| { &m.encryption_type }, - |m: &mut CopyBackupEncryptionConfig| { &mut m.encryption_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &CopyBackupEncryptionConfig| { &m.kms_key_name }, - |m: &mut CopyBackupEncryptionConfig| { &mut m.kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyBackupEncryptionConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CopyBackupEncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CopyBackupEncryptionConfig::new) - } -} - -impl ::protobuf::Clear for CopyBackupEncryptionConfig { - fn clear(&mut self) { - self.encryption_type = CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - self.kms_key_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CopyBackupEncryptionConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyBackupEncryptionConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum CopyBackupEncryptionConfig_EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1, - GOOGLE_DEFAULT_ENCRYPTION = 2, - CUSTOMER_MANAGED_ENCRYPTION = 3, -} - -impl ::protobuf::ProtobufEnum for CopyBackupEncryptionConfig_EncryptionType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(CopyBackupEncryptionConfig_EncryptionType::USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION), - 2 => ::std::option::Option::Some(CopyBackupEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION), - 3 => ::std::option::Option::Some(CopyBackupEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [CopyBackupEncryptionConfig_EncryptionType] = &[ - CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED, - CopyBackupEncryptionConfig_EncryptionType::USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION, - CopyBackupEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION, - CopyBackupEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CopyBackupEncryptionConfig.EncryptionType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for CopyBackupEncryptionConfig_EncryptionType { -} - -impl ::std::default::Default for CopyBackupEncryptionConfig_EncryptionType { - fn default() -> Self { - CopyBackupEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyBackupEncryptionConfig_EncryptionType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n-google/spanner/admin/database/v1/backup.proto\x12\x20google.spanner.a\ - dmin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/ap\ - i/resource.proto\x1a#google/longrunning/operations.proto\x1a\x20google/p\ - rotobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-goog\ - le/spanner/admin/database/v1/common.proto\"\xe4\x07\n\x06Backup\x12@\n\ - \x08database\x18\x02\x20\x01(\tR\x08databaseB$\xfaA!\n\x1fspanner.google\ - apis.com/Database\x12=\n\x0cversion_time\x18\t\x20\x01(\x0b2\x1a.google.\ - protobuf.TimestampR\x0bversionTime\x12;\n\x0bexpire_time\x18\x03\x20\x01\ - (\x0b2\x1a.google.protobuf.TimestampR\nexpireTime\x12\x12\n\x04name\x18\ - \x01\x20\x01(\tR\x04name\x12@\n\x0bcreate_time\x18\x04\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampR\ncreateTimeB\x03\xe0A\x03\x12\"\n\nsize_byte\ - s\x18\x05\x20\x01(\x03R\tsizeBytesB\x03\xe0A\x03\x12I\n\x05state\x18\x06\ - \x20\x01(\x0e2..google.spanner.admin.database.v1.Backup.StateR\x05stateB\ - \x03\xe0A\x03\x12\\\n\x15referencing_databases\x18\x07\x20\x03(\tR\x14re\ - ferencingDatabasesB'\xfaA!\n\x1fspanner.googleapis.com/Database\xe0A\x03\ - \x12^\n\x0fencryption_info\x18\x08\x20\x01(\x0b20.google.spanner.admin.d\ - atabase.v1.EncryptionInfoR\x0eencryptionInfoB\x03\xe0A\x03\x12a\n\x10dat\ - abase_dialect\x18\n\x20\x01(\x0e21.google.spanner.admin.database.v1.Data\ - baseDialectR\x0fdatabaseDialectB\x03\xe0A\x03\x12V\n\x13referencing_back\ - ups\x18\x0b\x20\x03(\tR\x12referencingBackupsB%\xfaA\x1f\n\x1dspanner.go\ - ogleapis.com/Backup\xe0A\x03\x12G\n\x0fmax_expire_time\x18\x0c\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\rmaxExpireTimeB\x03\xe0A\x03\"7\n\ - \x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\x0c\n\x08CREATING\x10\ - \x01\x12\t\n\x05READY\x10\x02:\\\xeaAY\n\x1dspanner.googleapis.com/Backu\ - p\x128projects/{project}/instances/{instance}/backups/{backup}\"\xb1\x02\ - \n\x13CreateBackupRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parent\ - B'\xfaA!\n\x1fspanner.googleapis.com/Instance\xe0A\x02\x12\x20\n\tbackup\ - _id\x18\x02\x20\x01(\tR\x08backupIdB\x03\xe0A\x02\x12E\n\x06backup\x18\ - \x03\x20\x01(\x0b2(.google.spanner.admin.database.v1.BackupR\x06backupB\ - \x03\xe0A\x02\x12p\n\x11encryption_config\x18\x04\x20\x01(\x0b2>.google.\ - spanner.admin.database.v1.CreateBackupEncryptionConfigR\x10encryptionCon\ - figB\x03\xe0A\x01\"\x9e\x02\n\x14CreateBackupMetadata\x126\n\x04name\x18\ - \x01\x20\x01(\tR\x04nameB\"\xfaA\x1f\n\x1dspanner.googleapis.com/Backup\ - \x12@\n\x08database\x18\x02\x20\x01(\tR\x08databaseB$\xfaA!\n\x1fspanner\ - .googleapis.com/Database\x12O\n\x08progress\x18\x03\x20\x01(\x0b23.googl\ - e.spanner.admin.database.v1.OperationProgressR\x08progress\x12;\n\x0bcan\ - cel_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTim\ - e\"\xf4\x02\n\x11CopyBackupRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\ - \x06parentB'\xfaA!\n\x1fspanner.googleapis.com/Instance\xe0A\x02\x12\x20\ - \n\tbackup_id\x18\x02\x20\x01(\tR\x08backupIdB\x03\xe0A\x02\x12J\n\rsour\ - ce_backup\x18\x03\x20\x01(\tR\x0csourceBackupB%\xfaA\x1f\n\x1dspanner.go\ - ogleapis.com/Backup\xe0A\x02\x12@\n\x0bexpire_time\x18\x04\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\nexpireTimeB\x03\xe0A\x02\x12n\n\x11encr\ - yption_config\x18\x05\x20\x01(\x0b2<.google.spanner.admin.database.v1.Co\ - pyBackupEncryptionConfigR\x10encryptionConfigB\x03\xe0A\x01\"\xa3\x02\n\ - \x12CopyBackupMetadata\x126\n\x04name\x18\x01\x20\x01(\tR\x04nameB\"\xfa\ - A\x1f\n\x1dspanner.googleapis.com/Backup\x12G\n\rsource_backup\x18\x02\ - \x20\x01(\tR\x0csourceBackupB\"\xfaA\x1f\n\x1dspanner.googleapis.com/Bac\ - kup\x12O\n\x08progress\x18\x03\x20\x01(\x0b23.google.spanner.admin.datab\ - ase.v1.OperationProgressR\x08progress\x12;\n\x0bcancel_time\x18\x04\x20\ - \x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTime\"\x9e\x01\n\x13Upd\ - ateBackupRequest\x12E\n\x06backup\x18\x01\x20\x01(\x0b2(.google.spanner.\ - admin.database.v1.BackupR\x06backupB\x03\xe0A\x02\x12@\n\x0bupdate_mask\ - \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\nupdateMaskB\x03\ - \xe0A\x02\"M\n\x10GetBackupRequest\x129\n\x04name\x18\x01\x20\x01(\tR\ - \x04nameB%\xfaA\x1f\n\x1dspanner.googleapis.com/Backup\xe0A\x02\"P\n\x13\ - DeleteBackupRequest\x129\n\x04name\x18\x01\x20\x01(\tR\x04nameB%\xfaA\ - \x1f\n\x1dspanner.googleapis.com/Backup\xe0A\x02\"\xa9\x01\n\x12ListBack\ - upsRequest\x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fs\ - panner.googleapis.com/Instance\xe0A\x02\x12\x16\n\x06filter\x18\x02\x20\ - \x01(\tR\x06filter\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSiz\ - e\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"\x81\x01\n\x13Li\ - stBackupsResponse\x12B\n\x07backups\x18\x01\x20\x03(\x0b2(.google.spanne\ - r.admin.database.v1.BackupR\x07backups\x12&\n\x0fnext_page_token\x18\x02\ - \x20\x01(\tR\rnextPageToken\"\xb2\x01\n\x1bListBackupOperationsRequest\ - \x12?\n\x06parent\x18\x01\x20\x01(\tR\x06parentB'\xfaA!\n\x1fspanner.goo\ - gleapis.com/Instance\xe0A\x02\x12\x16\n\x06filter\x18\x02\x20\x01(\tR\ - \x06filter\x12\x1b\n\tpage_size\x18\x03\x20\x01(\x05R\x08pageSize\x12\ - \x1d\n\npage_token\x18\x04\x20\x01(\tR\tpageToken\"\x85\x01\n\x1cListBac\ - kupOperationsResponse\x12=\n\noperations\x18\x01\x20\x03(\x0b2\x1d.googl\ - e.longrunning.OperationR\noperations\x12&\n\x0fnext_page_token\x18\x02\ - \x20\x01(\tR\rnextPageToken\"\x93\x02\n\nBackupInfo\x12:\n\x06backup\x18\ - \x01\x20\x01(\tR\x06backupB\"\xfaA\x1f\n\x1dspanner.googleapis.com/Backu\ - p\x12=\n\x0cversion_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.Times\ - tampR\x0bversionTime\x12;\n\x0bcreate_time\x18\x02\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\ncreateTime\x12M\n\x0fsource_database\x18\x03\ - \x20\x01(\tR\x0esourceDatabaseB$\xfaA!\n\x1fspanner.googleapis.com/Datab\ - ase\"\xf9\x02\n\x1cCreateBackupEncryptionConfig\x12{\n\x0fencryption_typ\ - e\x18\x01\x20\x01(\x0e2M.google.spanner.admin.database.v1.CreateBackupEn\ - cryptionConfig.EncryptionTypeR\x0eencryptionTypeB\x03\xe0A\x02\x12K\n\ - \x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKeyNameB)\xfaA#\n!cloudkms.goog\ - leapis.com/CryptoKey\xe0A\x01\"\x8e\x01\n\x0eEncryptionType\x12\x1f\n\ - \x1bENCRYPTION_TYPE_UNSPECIFIED\x10\0\x12\x1b\n\x17USE_DATABASE_ENCRYPTI\ - ON\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x02\x12\x1f\n\x1bC\ - USTOMER_MANAGED_ENCRYPTION\x10\x03\"\x85\x03\n\x1aCopyBackupEncryptionCo\ - nfig\x12y\n\x0fencryption_type\x18\x01\x20\x01(\x0e2K.google.spanner.adm\ - in.database.v1.CopyBackupEncryptionConfig.EncryptionTypeR\x0eencryptionT\ - ypeB\x03\xe0A\x02\x12K\n\x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKeyName\ - B)\xfaA#\n!cloudkms.googleapis.com/CryptoKey\xe0A\x01\"\x9e\x01\n\x0eEnc\ - ryptionType\x12\x1f\n\x1bENCRYPTION_TYPE_UNSPECIFIED\x10\0\x12+\n'USE_CO\ - NFIG_DEFAULT_OR_BACKUP_ENCRYPTION\x10\x01\x12\x1d\n\x19GOOGLE_DEFAULT_EN\ - CRYPTION\x10\x02\x12\x1f\n\x1bCUSTOMER_MANAGED_ENCRYPTION\x10\x03B\xfd\ - \x01\n$com.google.spanner.admin.database.v1B\x0bBackupProtoP\x01ZFcloud.\ - google.com/go/spanner/admin/database/apiv1/databasepb;databasepb\xaa\x02\ - &Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cloud\\Spanner\\\ - Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin::Database::V1J\ - \xdb\xce\x01\n\x07\x12\x05\x0e\0\xe0\x04\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20License\ - d\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"L\ - icense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ - \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ - S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ - \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ - \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0)\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\ - \x03\x01\x12\x03\x13\0#\n\t\n\x02\x03\x02\x12\x03\x14\0-\n\t\n\x02\x03\ - \x03\x12\x03\x15\0*\n\t\n\x02\x03\x04\x12\x03\x16\0)\n\t\n\x02\x03\x05\ - \x12\x03\x17\07\n\x08\n\x01\x08\x12\x03\x19\0C\n\t\n\x02\x08%\x12\x03\ - \x19\0C\n\x08\n\x01\x08\x12\x03\x1a\0]\n\t\n\x02\x08\x0b\x12\x03\x1a\0]\ - \n\x08\n\x01\x08\x12\x03\x1b\0\"\n\t\n\x02\x08\n\x12\x03\x1b\0\"\n\x08\n\ - \x01\x08\x12\x03\x1c\0,\n\t\n\x02\x08\x08\x12\x03\x1c\0,\n\x08\n\x01\x08\ - \x12\x03\x1d\0=\n\t\n\x02\x08\x01\x12\x03\x1d\0=\n\x08\n\x01\x08\x12\x03\ - \x1e\0E\n\t\n\x02\x08)\x12\x03\x1e\0E\n\x08\n\x01\x08\x12\x03\x1f\0D\n\t\ - \n\x02\x08-\x12\x03\x1f\0D\n4\n\x02\x04\0\x12\x05\"\0\x8e\x01\x01\x1a'\ - \x20A\x20backup\x20of\x20a\x20Cloud\x20Spanner\x20database.\n\n\n\n\x03\ - \x04\0\x01\x12\x03\"\x08\x0e\n\x0b\n\x03\x04\0\x07\x12\x04#\x02&\x04\n\r\ - \n\x05\x04\0\x07\x9d\x08\x12\x04#\x02&\x04\n:\n\x04\x04\0\x04\0\x12\x04)\ - \x023\x03\x1a,\x20Indicates\x20the\x20current\x20state\x20of\x20the\x20b\ - ackup.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03)\x07\x0c\n\x1f\n\x06\x04\0\ - \x04\0\x02\0\x12\x03+\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0e\n\x07\ - \x04\0\x04\0\x02\0\x01\x12\x03+\x04\x15\n\x0e\n\x07\x04\0\x04\0\x02\0\ - \x02\x12\x03+\x18\x19\n\x88\x01\n\x06\x04\0\x04\0\x02\x01\x12\x03/\x04\ - \x11\x1ay\x20The\x20pending\x20backup\x20is\x20still\x20being\x20created\ - .\x20Operations\x20on\x20the\n\x20backup\x20may\x20fail\x20with\x20`FAIL\ - ED_PRECONDITION`\x20in\x20this\x20state.\n\n\x0e\n\x07\x04\0\x04\0\x02\ - \x01\x01\x12\x03/\x04\x0c\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03/\ - \x0f\x10\n:\n\x06\x04\0\x04\0\x02\x02\x12\x032\x04\x0e\x1a+\x20The\x20ba\ - ckup\x20is\x20complete\x20and\x20ready\x20for\x20use.\n\n\x0e\n\x07\x04\ - \0\x04\0\x02\x02\x01\x12\x032\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\ - \x12\x032\x0c\r\n\xc1\x02\n\x04\x04\0\x02\0\x12\x04:\x02<\x1a\x1a\xb2\ - \x02\x20Required\x20for\x20the\x20[CreateBackup][google.spanner.admin.da\ - tabase.v1.DatabaseAdmin.CreateBackup]\x20operation.\n\x20Name\x20of\x20t\ - he\x20database\x20from\x20which\x20this\x20backup\x20was\n\x20created.\ - \x20This\x20needs\x20to\x20be\x20in\x20the\x20same\x20instance\x20as\x20\ - the\x20backup.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//databases/`.\n\n\x0c\n\x05\x04\0\ - \x02\0\x05\x12\x03:\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03:\t\x11\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03:\x14\x15\n\r\n\x05\x04\0\x02\0\x08\ - \x12\x04:\x16<\x19\n\x0f\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x04:\x17<\x18\ - \n\xf1\x01\n\x04\x04\0\x02\x01\x12\x03B\x02-\x1a\xe3\x01\x20The\x20backu\ - p\x20will\x20contain\x20an\x20externally\x20consistent\x20copy\x20of\x20\ - the\x20database\x20at\n\x20the\x20timestamp\x20specified\x20by\x20`versi\ - on_time`.\x20If\x20`version_time`\x20is\x20not\n\x20specified,\x20the\ - \x20system\x20will\x20set\x20`version_time`\x20to\x20the\x20`create_time\ - `\x20of\x20the\n\x20backup.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03B\x02\ - \x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03B\x1c(\n\x0c\n\x05\x04\0\x02\ - \x01\x03\x12\x03B+,\n\xb6\x03\n\x04\x04\0\x02\x02\x12\x03J\x02,\x1a\xa8\ - \x03\x20Required\x20for\x20the\x20[CreateBackup][google.spanner.admin.da\ - tabase.v1.DatabaseAdmin.CreateBackup]\n\x20operation.\x20The\x20expirati\ - on\x20time\x20of\x20the\x20backup,\x20with\x20microseconds\n\x20granular\ - ity\x20that\x20must\x20be\x20at\x20least\x206\x20hours\x20and\x20at\x20m\ - ost\x20366\x20days\n\x20from\x20the\x20time\x20the\x20CreateBackup\x20re\ - quest\x20is\x20processed.\x20Once\x20the\x20`expire_time`\n\x20has\x20pa\ - ssed,\x20the\x20backup\x20is\x20eligible\x20to\x20be\x20automatically\ - \x20deleted\x20by\x20Cloud\n\x20Spanner\x20to\x20free\x20the\x20resource\ - s\x20used\x20by\x20the\x20backup.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\ - \x03J\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03J\x1c'\n\x0c\n\x05\ - \x04\0\x02\x02\x03\x12\x03J*+\n\xbd\x05\n\x04\x04\0\x02\x03\x12\x03Y\x02\ - \x12\x1a\xaf\x05\x20Output\x20only\x20for\x20the\x20[CreateBackup][googl\ - e.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]\x20operation.\n\ - \x20Required\x20for\x20the\x20[UpdateBackup][google.spanner.admin.databa\ - se.v1.DatabaseAdmin.UpdateBackup]\x20operation.\n\n\x20A\x20globally\x20\ - unique\x20identifier\x20for\x20the\x20backup\x20which\x20cannot\x20be\n\ - \x20changed.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//backups/[a-z][a-z0-9_\\-]*[a-z0-9]`\n\x20The\ - \x20final\x20segment\x20of\x20the\x20name\x20must\x20be\x20between\x202\ - \x20and\x2060\x20characters\n\x20in\x20length.\n\n\x20The\x20backup\x20i\ - s\x20stored\x20in\x20the\x20location(s)\x20specified\x20in\x20the\x20ins\ - tance\n\x20configuration\x20of\x20the\x20instance\x20containing\x20the\ - \x20backup,\x20identified\n\x20by\x20the\x20prefix\x20of\x20the\x20backu\ - p\x20name\x20of\x20the\x20form\n\x20`projects//instances/`.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03Y\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x03\x01\x12\x03Y\t\r\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03Y\x10\ - \x11\n\x86\x02\n\x04\x04\0\x02\x04\x12\x03^\x02X\x1a\xf8\x01\x20Output\ - \x20only.\x20The\x20time\x20the\x20[CreateBackup][google.spanner.admin.d\ - atabase.v1.DatabaseAdmin.CreateBackup]\n\x20request\x20is\x20received.\ - \x20If\x20the\x20request\x20does\x20not\x20specify\x20`version_time`,\ - \x20the\n\x20`version_time`\x20of\x20the\x20backup\x20will\x20be\x20equi\ - valent\x20to\x20the\x20`create_time`.\n\n\x0c\n\x05\x04\0\x02\x04\x06\ - \x12\x03^\x02\x1b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03^\x1c'\n\x0c\n\ - \x05\x04\0\x02\x04\x03\x12\x03^*+\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03^\ - ,W\n\x0f\n\x08\x04\0\x02\x04\x08\x9c\x08\0\x12\x03^-V\n8\n\x04\x04\0\x02\ - \x05\x12\x03a\x02C\x1a+\x20Output\x20only.\x20Size\x20of\x20the\x20backu\ - p\x20in\x20bytes.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03a\x02\x07\n\x0c\ - \n\x05\x04\0\x02\x05\x01\x12\x03a\x08\x12\n\x0c\n\x05\x04\0\x02\x05\x03\ - \x12\x03a\x15\x16\n\x0c\n\x05\x04\0\x02\x05\x08\x12\x03a\x17B\n\x0f\n\ - \x08\x04\0\x02\x05\x08\x9c\x08\0\x12\x03a\x18A\n<\n\x04\x04\0\x02\x06\ - \x12\x03d\x02>\x1a/\x20Output\x20only.\x20The\x20current\x20state\x20of\ - \x20the\x20backup.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03d\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x06\x01\x12\x03d\x08\r\n\x0c\n\x05\x04\0\x02\x06\ - \x03\x12\x03d\x10\x11\n\x0c\n\x05\x04\0\x02\x06\x08\x12\x03d\x12=\n\x0f\ - \n\x08\x04\0\x02\x06\x08\x9c\x08\0\x12\x03d\x13<\n\xba\x03\n\x04\x04\0\ - \x02\x07\x12\x04m\x02r\x04\x1a\xab\x03\x20Output\x20only.\x20The\x20name\ - s\x20of\x20the\x20restored\x20databases\x20that\x20reference\x20the\x20b\ - ackup.\n\x20The\x20database\x20names\x20are\x20of\n\x20the\x20form\x20`p\ - rojects//instances//databases/`.\n\x20Refer\ - encing\x20databases\x20may\x20exist\x20in\x20different\x20instances.\x20\ - The\x20existence\x20of\n\x20any\x20referencing\x20database\x20prevents\ - \x20the\x20backup\x20from\x20being\x20deleted.\x20When\x20a\n\x20restore\ - d\x20database\x20from\x20the\x20backup\x20enters\x20the\x20`READY`\x20st\ - ate,\x20the\x20reference\n\x20to\x20the\x20backup\x20is\x20removed.\n\n\ - \x0c\n\x05\x04\0\x02\x07\x04\x12\x03m\x02\n\n\x0c\n\x05\x04\0\x02\x07\ - \x05\x12\x03m\x0b\x11\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03m\x12'\n\x0c\ - \n\x05\x04\0\x02\x07\x03\x12\x03m*+\n\r\n\x05\x04\0\x02\x07\x08\x12\x04m\ - ,r\x03\n\x0f\n\x08\x04\0\x02\x07\x08\x9c\x08\0\x12\x03n\x04-\n\x0f\n\x07\ - \x04\0\x02\x07\x08\x9f\x08\x12\x04o\x04q\x05\nF\n\x04\x04\0\x02\x08\x12\ - \x03u\x02Q\x1a9\x20Output\x20only.\x20The\x20encryption\x20information\ - \x20for\x20the\x20backup.\n\n\x0c\n\x05\x04\0\x02\x08\x06\x12\x03u\x02\ - \x10\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03u\x11\x20\n\x0c\n\x05\x04\0\ - \x02\x08\x03\x12\x03u#$\n\x0c\n\x05\x04\0\x02\x08\x08\x12\x03u%P\n\x0f\n\ - \x08\x04\0\x02\x08\x08\x9c\x08\0\x12\x03u&O\nL\n\x04\x04\0\x02\t\x12\x03\ - x\x02T\x1a?\x20Output\x20only.\x20The\x20database\x20dialect\x20informat\ - ion\x20for\x20the\x20backup.\n\n\x0c\n\x05\x04\0\x02\t\x06\x12\x03x\x02\ - \x11\n\x0c\n\x05\x04\0\x02\t\x01\x12\x03x\x12\"\n\x0c\n\x05\x04\0\x02\t\ - \x03\x12\x03x%'\n\x0c\n\x05\x04\0\x02\t\x08\x12\x03x(S\n\x0f\n\x08\x04\0\ - \x02\t\x08\x9c\x08\0\x12\x03x)R\n\xf5\x03\n\x04\x04\0\x02\n\x12\x06\x81\ - \x01\x02\x86\x01\x04\x1a\xe4\x03\x20Output\x20only.\x20The\x20names\x20o\ - f\x20the\x20destination\x20backups\x20being\x20created\x20by\x20copying\ - \n\x20this\x20source\x20backup.\x20The\x20backup\x20names\x20are\x20of\ - \x20the\x20form\n\x20`projects//instances//backups/`.\n\x20Referencing\x20backups\x20may\x20exist\x20in\x20different\ - \x20instances.\x20The\x20existence\x20of\n\x20any\x20referencing\x20back\ - up\x20prevents\x20the\x20backup\x20from\x20being\x20deleted.\x20When\x20\ - the\n\x20copy\x20operation\x20is\x20done\x20(either\x20successfully\x20c\ - ompleted\x20or\x20cancelled\x20or\x20the\n\x20destination\x20backup\x20i\ - s\x20deleted),\x20the\x20reference\x20to\x20the\x20backup\x20is\x20remov\ - ed.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\x81\x01\x02\n\n\r\n\x05\x04\0\ - \x02\n\x05\x12\x04\x81\x01\x0b\x11\n\r\n\x05\x04\0\x02\n\x01\x12\x04\x81\ - \x01\x12%\n\r\n\x05\x04\0\x02\n\x03\x12\x04\x81\x01(*\n\x0f\n\x05\x04\0\ - \x02\n\x08\x12\x06\x81\x01+\x86\x01\x03\n\x10\n\x08\x04\0\x02\n\x08\x9c\ - \x08\0\x12\x04\x82\x01\x04-\n\x11\n\x07\x04\0\x02\n\x08\x9f\x08\x12\x06\ - \x83\x01\x04\x85\x01\x05\n\xcd\x02\n\x04\x04\0\x02\x0b\x12\x04\x8d\x01\ - \x02]\x1a\xbe\x02\x20Output\x20only.\x20The\x20max\x20allowed\x20expirat\ - ion\x20time\x20of\x20the\x20backup,\x20with\n\x20microseconds\x20granula\ - rity.\x20A\x20backup's\x20expiration\x20time\x20can\x20be\x20configured\ - \x20in\n\x20multiple\x20APIs:\x20CreateBackup,\x20UpdateBackup,\x20CopyB\ - ackup.\x20When\x20updating\x20or\n\x20copying\x20an\x20existing\x20backu\ - p,\x20the\x20expiration\x20time\x20specified\x20must\x20be\n\x20less\x20\ - than\x20`Backup.max_expire_time`.\n\n\r\n\x05\x04\0\x02\x0b\x06\x12\x04\ - \x8d\x01\x02\x1b\n\r\n\x05\x04\0\x02\x0b\x01\x12\x04\x8d\x01\x1c+\n\r\n\ - \x05\x04\0\x02\x0b\x03\x12\x04\x8d\x01.0\n\r\n\x05\x04\0\x02\x0b\x08\x12\ - \x04\x8d\x011\\\n\x10\n\x08\x04\0\x02\x0b\x08\x9c\x08\0\x12\x04\x8d\x012\ - [\nl\n\x02\x04\x01\x12\x06\x91\x01\0\xad\x01\x01\x1a^\x20The\x20request\ - \x20for\x20[CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin\ - .CreateBackup].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x91\x01\x08\x1b\n\xe3\ - \x02\n\x04\x04\x01\x02\0\x12\x06\x98\x01\x02\x9d\x01\x04\x1a\xd2\x02\x20\ - Required.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20the\ - \x20backup\x20will\x20be\n\x20created.\x20This\x20must\x20be\x20the\x20s\ - ame\x20instance\x20that\x20contains\x20the\x20database\x20the\n\x20backu\ - p\x20will\x20be\x20created\x20from.\x20The\x20backup\x20will\x20be\x20st\ - ored\x20in\x20the\n\x20location(s)\x20specified\x20in\x20the\x20instance\ - \x20configuration\x20of\x20this\n\x20instance.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects//instances/`.\n\n\r\n\ - \x05\x04\x01\x02\0\x05\x12\x04\x98\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\ - \x01\x12\x04\x98\x01\t\x0f\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x98\x01\ - \x12\x13\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\x98\x01\x14\x9d\x01\x03\n\ - \x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\x99\x01\x04*\n\x11\n\x07\ - \x04\x01\x02\0\x08\x9f\x08\x12\x06\x9a\x01\x04\x9c\x01\x05\n\xcb\x01\n\ - \x04\x04\x01\x02\x01\x12\x04\xa2\x01\x02@\x1a\xbc\x01\x20Required.\x20Th\ - e\x20id\x20of\x20the\x20backup\x20to\x20be\x20created.\x20The\x20`backup\ - _id`\x20appended\x20to\n\x20`parent`\x20forms\x20the\x20full\x20backup\ - \x20name\x20of\x20the\x20form\n\x20`projects//instances//backups/`.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xa2\ - \x01\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xa2\x01\t\x12\n\r\n\ - \x05\x04\x01\x02\x01\x03\x12\x04\xa2\x01\x15\x16\n\r\n\x05\x04\x01\x02\ - \x01\x08\x12\x04\xa2\x01\x17?\n\x10\n\x08\x04\x01\x02\x01\x08\x9c\x08\0\ - \x12\x04\xa2\x01\x18>\n/\n\x04\x04\x01\x02\x02\x12\x04\xa5\x01\x02=\x1a!\ - \x20Required.\x20The\x20backup\x20to\x20create.\n\n\r\n\x05\x04\x01\x02\ - \x02\x06\x12\x04\xa5\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\ - \xa5\x01\t\x0f\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xa5\x01\x12\x13\n\r\ - \n\x05\x04\x01\x02\x02\x08\x12\x04\xa5\x01\x14<\n\x10\n\x08\x04\x01\x02\ - \x02\x08\x9c\x08\0\x12\x04\xa5\x01\x15;\n\xce\x02\n\x04\x04\x01\x02\x03\ - \x12\x04\xac\x01\x02^\x1a\xbf\x02\x20Optional.\x20The\x20encryption\x20c\ - onfiguration\x20used\x20to\x20encrypt\x20the\x20backup.\x20If\x20this\ - \x20field\x20is\n\x20not\x20specified,\x20the\x20backup\x20will\x20use\ - \x20the\x20same\n\x20encryption\x20configuration\x20as\x20the\x20databas\ - e\x20by\x20default,\x20namely\n\x20[encryption_type][google.spanner.admi\ - n.database.v1.CreateBackupEncryptionConfig.encryption_type]\x20=\n\x20`U\ - SE_DATABASE_ENCRYPTION`.\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\xac\x01\ - \x02\x1e\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xac\x01\x1f0\n\r\n\x05\ - \x04\x01\x02\x03\x03\x12\x04\xac\x0134\n\r\n\x05\x04\x01\x02\x03\x08\x12\ - \x04\xac\x015]\n\x10\n\x08\x04\x01\x02\x03\x08\x9c\x08\0\x12\x04\xac\x01\ - 6\\\n\x89\x01\n\x02\x04\x02\x12\x06\xb1\x01\0\xcd\x01\x01\x1a{\x20Metada\ - ta\x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateBack\ - up][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].\n\n\ - \x0b\n\x03\x04\x02\x01\x12\x04\xb1\x01\x08\x1c\n7\n\x04\x04\x02\x02\0\ - \x12\x06\xb3\x01\x02\xb5\x01\x16\x1a'\x20The\x20name\x20of\x20the\x20bac\ - kup\x20being\x20created.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\xb3\x01\ - \x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb3\x01\t\r\n\r\n\x05\x04\ - \x02\x02\0\x03\x12\x04\xb3\x01\x10\x11\n\x0f\n\x05\x04\x02\x02\0\x08\x12\ - \x06\xb3\x01\x12\xb5\x01\x15\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\ - \x06\xb3\x01\x13\xb5\x01\x14\nF\n\x04\x04\x02\x02\x01\x12\x06\xb8\x01\ - \x02\xba\x01\x1a\x1a6\x20The\x20name\x20of\x20the\x20database\x20the\x20\ - backup\x20is\x20created\x20from.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\ - \xb8\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb8\x01\t\x11\n\r\ - \n\x05\x04\x02\x02\x01\x03\x12\x04\xb8\x01\x14\x15\n\x0f\n\x05\x04\x02\ - \x02\x01\x08\x12\x06\xb8\x01\x16\xba\x01\x19\n\x11\n\x07\x04\x02\x02\x01\ - \x08\x9f\x08\x12\x06\xb8\x01\x17\xba\x01\x18\n{\n\x04\x04\x02\x02\x02\ - \x12\x04\xbe\x01\x02!\x1am\x20The\x20progress\x20of\x20the\n\x20[CreateB\ - ackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]\x20o\ - peration.\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xbe\x01\x02\x13\n\r\n\ - \x05\x04\x02\x02\x02\x01\x12\x04\xbe\x01\x14\x1c\n\r\n\x05\x04\x02\x02\ - \x02\x03\x12\x04\xbe\x01\x1f\x20\n\x87\x06\n\x04\x04\x02\x02\x03\x12\x04\ - \xcc\x01\x02,\x1a\xf8\x05\x20The\x20time\x20at\x20which\x20cancellation\ - \x20of\x20this\x20operation\x20was\x20received.\n\x20[Operations.CancelO\ - peration][google.longrunning.Operations.CancelOperation]\n\x20starts\x20\ - asynchronous\x20cancellation\x20on\x20a\x20long-running\x20operation.\ - \x20The\x20server\n\x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20t\ - he\x20operation,\x20but\x20success\x20is\x20not\x20guaranteed.\n\x20Clie\ - nts\x20can\x20use\n\x20[Operations.GetOperation][google.longrunning.Oper\ - ations.GetOperation]\x20or\n\x20other\x20methods\x20to\x20check\x20wheth\ - er\x20the\x20cancellation\x20succeeded\x20or\x20whether\x20the\n\x20oper\ - ation\x20completed\x20despite\x20cancellation.\x20On\x20successful\x20ca\ - ncellation,\n\x20the\x20operation\x20is\x20not\x20deleted;\x20instead,\ - \x20it\x20becomes\x20an\x20operation\x20with\n\x20an\x20[Operation.error\ - ][google.longrunning.Operation.error]\x20value\x20with\x20a\n\x20[google\ - .rpc.Status.code][google.rpc.Status.code]\x20of\x201,\n\x20corresponding\ - \x20to\x20`Code.CANCELLED`.\n\n\r\n\x05\x04\x02\x02\x03\x06\x12\x04\xcc\ - \x01\x02\x1b\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xcc\x01\x1c'\n\r\n\ - \x05\x04\x02\x02\x03\x03\x12\x04\xcc\x01*+\nh\n\x02\x04\x03\x12\x06\xd0\ - \x01\0\xf9\x01\x01\x1aZ\x20The\x20request\x20for\x20[CopyBackup][google.\ - spanner.admin.database.v1.DatabaseAdmin.CopyBackup].\n\n\x0b\n\x03\x04\ - \x03\x01\x12\x04\xd0\x01\x08\x19\n\xa8\x01\n\x04\x04\x03\x02\0\x12\x06\ - \xd3\x01\x02\xd8\x01\x04\x1a\x97\x01\x20Required.\x20The\x20name\x20of\ - \x20the\x20destination\x20instance\x20that\x20will\x20contain\x20the\x20\ - backup\x20copy.\n\x20Values\x20are\x20of\x20the\x20form:\x20`projects//instances/`.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xd3\ - \x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xd3\x01\t\x0f\n\r\n\x05\ - \x04\x03\x02\0\x03\x12\x04\xd3\x01\x12\x13\n\x0f\n\x05\x04\x03\x02\0\x08\ - \x12\x06\xd3\x01\x14\xd8\x01\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\ - \x12\x04\xd4\x01\x04*\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\x06\xd5\ - \x01\x04\xd7\x01\x05\n\xbe\x01\n\x04\x04\x03\x02\x01\x12\x04\xdd\x01\x02\ - @\x1a\xaf\x01\x20Required.\x20The\x20id\x20of\x20the\x20backup\x20copy.\ - \n\x20The\x20`backup_id`\x20appended\x20to\x20`parent`\x20forms\x20the\ - \x20full\x20backup_uri\x20of\x20the\x20form\n\x20`projects//ins\ - tances//backups/`.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\ - \x04\xdd\x01\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xdd\x01\t\x12\ - \n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xdd\x01\x15\x16\n\r\n\x05\x04\x03\ - \x02\x01\x08\x12\x04\xdd\x01\x17?\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\ - \x08\0\x12\x04\xdd\x01\x18>\n\xd5\x02\n\x04\x04\x03\x02\x02\x12\x06\xe5\ - \x01\x02\xea\x01\x04\x1a\xc4\x02\x20Required.\x20The\x20source\x20backup\ - \x20to\x20be\x20copied.\n\x20The\x20source\x20backup\x20needs\x20to\x20b\ - e\x20in\x20READY\x20state\x20for\x20it\x20to\x20be\x20copied.\n\x20Once\ - \x20CopyBackup\x20is\x20in\x20progress,\x20the\x20source\x20backup\x20ca\ - nnot\x20be\x20deleted\x20or\n\x20cleaned\x20up\x20on\x20expiration\x20un\ - til\x20CopyBackup\x20is\x20finished.\n\x20Values\x20are\x20of\x20the\x20\ - form:\n\x20`projects//instances//backups/`.\n\ - \n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xe5\x01\x02\x08\n\r\n\x05\x04\x03\ - \x02\x02\x01\x12\x04\xe5\x01\t\x16\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\ - \xe5\x01\x19\x1a\n\x0f\n\x05\x04\x03\x02\x02\x08\x12\x06\xe5\x01\x1b\xea\ - \x01\x03\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\x04\xe6\x01\x04*\ - \n\x11\n\x07\x04\x03\x02\x02\x08\x9f\x08\x12\x06\xe7\x01\x04\xe9\x01\x05\ - \n\xdc\x02\n\x04\x04\x03\x02\x03\x12\x04\xf1\x01\x02U\x1a\xcd\x02\x20Req\ - uired.\x20The\x20expiration\x20time\x20of\x20the\x20backup\x20in\x20micr\ - osecond\x20granularity.\n\x20The\x20expiration\x20time\x20must\x20be\x20\ - at\x20least\x206\x20hours\x20and\x20at\x20most\x20366\x20days\n\x20from\ - \x20the\x20`create_time`\x20of\x20the\x20source\x20backup.\x20Once\x20th\ - e\x20`expire_time`\x20has\n\x20passed,\x20the\x20backup\x20is\x20eligibl\ - e\x20to\x20be\x20automatically\x20deleted\x20by\x20Cloud\x20Spanner\n\ - \x20to\x20free\x20the\x20resources\x20used\x20by\x20the\x20backup.\n\n\r\ - \n\x05\x04\x03\x02\x03\x06\x12\x04\xf1\x01\x02\x1b\n\r\n\x05\x04\x03\x02\ - \x03\x01\x12\x04\xf1\x01\x1c'\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xf1\ - \x01*+\n\r\n\x05\x04\x03\x02\x03\x08\x12\x04\xf1\x01,T\n\x10\n\x08\x04\ - \x03\x02\x03\x08\x9c\x08\0\x12\x04\xf1\x01-S\n\xe1\x02\n\x04\x04\x03\x02\ - \x04\x12\x04\xf8\x01\x02\\\x1a\xd2\x02\x20Optional.\x20The\x20encryption\ - \x20configuration\x20used\x20to\x20encrypt\x20the\x20backup.\x20If\x20th\ - is\x20field\x20is\n\x20not\x20specified,\x20the\x20backup\x20will\x20use\ - \x20the\x20same\n\x20encryption\x20configuration\x20as\x20the\x20source\ - \x20backup\x20by\x20default,\x20namely\n\x20[encryption_type][google.spa\ - nner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]\x20=\ - \n\x20`USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.\n\n\r\n\x05\x04\x03\x02\ - \x04\x06\x12\x04\xf8\x01\x02\x1c\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\ - \xf8\x01\x1d.\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\xf8\x0112\n\r\n\x05\ - \x04\x03\x02\x04\x08\x12\x04\xf8\x013[\n\x10\n\x08\x04\x03\x02\x04\x08\ - \x9c\x08\0\x12\x04\xf8\x014Z\n\x99\x01\n\x02\x04\x04\x12\x06\xfd\x01\0\ - \x9d\x02\x01\x1a\x8a\x01\x20Metadata\x20type\x20for\x20the\x20google.lon\ - grunning.Operation\x20returned\x20by\n\x20[CopyBackup][google.spanner.ad\ - min.database.v1.DatabaseAdmin.CopyBackup].\n\n\x0b\n\x03\x04\x04\x01\x12\ - \x04\xfd\x01\x08\x1a\n\xa8\x01\n\x04\x04\x04\x02\0\x12\x06\x81\x02\x02\ - \x83\x02\x16\x1a\x97\x01\x20The\x20name\x20of\x20the\x20backup\x20being\ - \x20created\x20through\x20the\x20copy\x20operation.\n\x20Values\x20are\ - \x20of\x20the\x20form\n\x20`projects//instances//back\ - ups/`.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x81\x02\x02\x08\n\r\ - \n\x05\x04\x04\x02\0\x01\x12\x04\x81\x02\t\r\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\x81\x02\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x81\x02\ - \x12\x83\x02\x15\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x81\x02\ - \x13\x83\x02\x14\n\x9b\x01\n\x04\x04\x04\x02\x01\x12\x06\x88\x02\x02\x8a\ - \x02\x1f\x1a\x8a\x01\x20The\x20name\x20of\x20the\x20source\x20backup\x20\ - that\x20is\x20being\x20copied.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects//instances//backups/`.\n\n\r\n\ - \x05\x04\x04\x02\x01\x05\x12\x04\x88\x02\x02\x08\n\r\n\x05\x04\x04\x02\ - \x01\x01\x12\x04\x88\x02\t\x16\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\x88\ - \x02\x19\x1a\n\x0f\n\x05\x04\x04\x02\x01\x08\x12\x06\x88\x02\x1b\x8a\x02\ - \x1e\n\x11\n\x07\x04\x04\x02\x01\x08\x9f\x08\x12\x06\x88\x02\x1c\x8a\x02\ - \x1d\nw\n\x04\x04\x04\x02\x02\x12\x04\x8e\x02\x02!\x1ai\x20The\x20progre\ - ss\x20of\x20the\n\x20[CopyBackup][google.spanner.admin.database.v1.Datab\ - aseAdmin.CopyBackup]\x20operation.\n\n\r\n\x05\x04\x04\x02\x02\x06\x12\ - \x04\x8e\x02\x02\x13\n\r\n\x05\x04\x04\x02\x02\x01\x12\x04\x8e\x02\x14\ - \x1c\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\x8e\x02\x1f\x20\n\x8d\x06\n\ - \x04\x04\x04\x02\x03\x12\x04\x9c\x02\x02,\x1a\xfe\x05\x20The\x20time\x20\ - at\x20which\x20cancellation\x20of\x20CopyBackup\x20operation\x20was\x20r\ - eceived.\n\x20[Operations.CancelOperation][google.longrunning.Operations\ - .CancelOperation]\n\x20starts\x20asynchronous\x20cancellation\x20on\x20a\ - \x20long-running\x20operation.\x20The\x20server\n\x20makes\x20a\x20best\ - \x20effort\x20to\x20cancel\x20the\x20operation,\x20but\x20success\x20is\ - \x20not\x20guaranteed.\n\x20Clients\x20can\x20use\n\x20[Operations.GetOp\ - eration][google.longrunning.Operations.GetOperation]\x20or\n\x20other\ - \x20methods\x20to\x20check\x20whether\x20the\x20cancellation\x20succeede\ - d\x20or\x20whether\x20the\n\x20operation\x20completed\x20despite\x20canc\ - ellation.\x20On\x20successful\x20cancellation,\n\x20the\x20operation\x20\ - is\x20not\x20deleted;\x20instead,\x20it\x20becomes\x20an\x20operation\ - \x20with\n\x20an\x20[Operation.error][google.longrunning.Operation.error\ - ]\x20value\x20with\x20a\n\x20[google.rpc.Status.code][google.rpc.Status.\ - code]\x20of\x201,\n\x20corresponding\x20to\x20`Code.CANCELLED`.\n\n\r\n\ - \x05\x04\x04\x02\x03\x06\x12\x04\x9c\x02\x02\x1b\n\r\n\x05\x04\x04\x02\ - \x03\x01\x12\x04\x9c\x02\x1c'\n\r\n\x05\x04\x04\x02\x03\x03\x12\x04\x9c\ - \x02*+\nl\n\x02\x04\x05\x12\x06\xa0\x02\0\xad\x02\x01\x1a^\x20The\x20req\ - uest\x20for\x20[UpdateBackup][google.spanner.admin.database.v1.DatabaseA\ - dmin.UpdateBackup].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa0\x02\x08\x1b\n\ - \xf1\x01\n\x04\x04\x05\x02\0\x12\x04\xa5\x02\x02=\x1a\xe2\x01\x20Require\ - d.\x20The\x20backup\x20to\x20update.\x20`backup.name`,\x20and\x20the\x20\ - fields\x20to\x20be\x20updated\n\x20as\x20specified\x20by\x20`update_mask\ - `\x20are\x20required.\x20Other\x20fields\x20are\x20ignored.\n\x20Update\ - \x20is\x20only\x20supported\x20for\x20the\x20following\x20fields:\n\x20\ - \x20*\x20`backup.expire_time`.\n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\xa5\ - \x02\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xa5\x02\t\x0f\n\r\n\x05\ - \x04\x05\x02\0\x03\x12\x04\xa5\x02\x12\x13\n\r\n\x05\x04\x05\x02\0\x08\ - \x12\x04\xa5\x02\x14<\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\ - \xa5\x02\x15;\n\xd6\x02\n\x04\x04\x05\x02\x01\x12\x04\xac\x02\x02U\x1a\ - \xc7\x02\x20Required.\x20A\x20mask\x20specifying\x20which\x20fields\x20(\ - e.g.\x20`expire_time`)\x20in\x20the\n\x20Backup\x20resource\x20should\ - \x20be\x20updated.\x20This\x20mask\x20is\x20relative\x20to\x20the\x20Bac\ - kup\n\x20resource,\x20not\x20to\x20the\x20request\x20message.\x20The\x20\ - field\x20mask\x20must\x20always\x20be\n\x20specified;\x20this\x20prevent\ - s\x20any\x20future\x20fields\x20from\x20being\x20erased\x20accidentally\ - \n\x20by\x20clients\x20that\x20do\x20not\x20know\x20about\x20them.\n\n\r\ - \n\x05\x04\x05\x02\x01\x06\x12\x04\xac\x02\x02\x1b\n\r\n\x05\x04\x05\x02\ - \x01\x01\x12\x04\xac\x02\x1c'\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\xac\ - \x02*+\n\r\n\x05\x04\x05\x02\x01\x08\x12\x04\xac\x02,T\n\x10\n\x08\x04\ - \x05\x02\x01\x08\x9c\x08\0\x12\x04\xac\x02-S\nf\n\x02\x04\x06\x12\x06\ - \xb0\x02\0\xba\x02\x01\x1aX\x20The\x20request\x20for\x20[GetBackup][goog\ - le.spanner.admin.database.v1.DatabaseAdmin.GetBackup].\n\n\x0b\n\x03\x04\ - \x06\x01\x12\x04\xb0\x02\x08\x18\n\x84\x01\n\x04\x04\x06\x02\0\x12\x06\ - \xb4\x02\x02\xb9\x02\x04\x1at\x20Required.\x20Name\x20of\x20the\x20backu\ - p.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//inst\ - ances//backups/`.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\ - \x04\xb4\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xb4\x02\t\r\n\r\ - \n\x05\x04\x06\x02\0\x03\x12\x04\xb4\x02\x10\x11\n\x0f\n\x05\x04\x06\x02\ - \0\x08\x12\x06\xb4\x02\x12\xb9\x02\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\ - \x08\0\x12\x04\xb5\x02\x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\ - \x06\xb6\x02\x04\xb8\x02\x05\nl\n\x02\x04\x07\x12\x06\xbd\x02\0\xc7\x02\ - \x01\x1a^\x20The\x20request\x20for\x20[DeleteBackup][google.spanner.admi\ - n.database.v1.DatabaseAdmin.DeleteBackup].\n\n\x0b\n\x03\x04\x07\x01\x12\ - \x04\xbd\x02\x08\x1b\n\x8e\x01\n\x04\x04\x07\x02\0\x12\x06\xc1\x02\x02\ - \xc6\x02\x04\x1a~\x20Required.\x20Name\x20of\x20the\x20backup\x20to\x20d\ - elete.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//\ - instances//backups/`.\n\n\r\n\x05\x04\x07\x02\0\x05\ - \x12\x04\xc1\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xc1\x02\t\r\ - \n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xc1\x02\x10\x11\n\x0f\n\x05\x04\x07\ - \x02\0\x08\x12\x06\xc1\x02\x12\xc6\x02\x03\n\x10\n\x08\x04\x07\x02\0\x08\ - \x9c\x08\0\x12\x04\xc2\x02\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\ - \x12\x06\xc3\x02\x04\xc5\x02\x05\nj\n\x02\x04\x08\x12\x06\xca\x02\0\x82\ - \x03\x01\x1a\\\x20The\x20request\x20for\x20[ListBackups][google.spanner.\ - admin.database.v1.DatabaseAdmin.ListBackups].\n\n\x0b\n\x03\x04\x08\x01\ - \x12\x04\xca\x02\x08\x1a\n\x82\x01\n\x04\x04\x08\x02\0\x12\x06\xcd\x02\ - \x02\xd2\x02\x04\x1ar\x20Required.\x20The\x20instance\x20to\x20list\x20b\ - ackups\x20from.\x20\x20Values\x20are\x20of\x20the\n\x20form\x20`projects\ - //instances/`.\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\ - \xcd\x02\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xcd\x02\t\x0f\n\r\n\ - \x05\x04\x08\x02\0\x03\x12\x04\xcd\x02\x12\x13\n\x0f\n\x05\x04\x08\x02\0\ - \x08\x12\x06\xcd\x02\x14\xd2\x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\ - \x08\0\x12\x04\xce\x02\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\ - \x06\xcf\x02\x04\xd1\x02\x05\n\xea\x0c\n\x04\x04\x08\x02\x01\x12\x04\xf7\ - \x02\x02\x14\x1a\xdb\x0c\x20An\x20expression\x20that\x20filters\x20the\ - \x20list\x20of\x20returned\x20backups.\n\n\x20A\x20filter\x20expression\ - \x20consists\x20of\x20a\x20field\x20name,\x20a\x20comparison\x20operator\ - ,\x20and\x20a\n\x20value\x20for\x20filtering.\n\x20The\x20value\x20must\ - \x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\x20The\x20\ - comparison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\x20`>`,\x20\ - `<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20`:`\x20is\ - \x20the\x20contains\x20operator.\x20Filter\x20rules\x20are\x20not\x20cas\ - e\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\x20the\x20[Backu\ - p][google.spanner.admin.database.v1.Backup]\x20are\x20eligible\x20for\ - \x20filtering:\n\n\x20\x20\x20*\x20`name`\n\x20\x20\x20*\x20`database`\n\ - \x20\x20\x20*\x20`state`\n\x20\x20\x20*\x20`create_time`\x20\x20(and\x20\ - values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\ - \x20*\x20`expire_time`\x20\x20(and\x20values\x20are\x20of\x20the\x20form\ - at\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\x20*\x20`version_time`\x20(and\x20\ - values\x20are\x20of\x20the\x20format\x20YYYY-MM-DDTHH:MM:SSZ)\n\x20\x20\ - \x20*\x20`size_bytes`\n\n\x20You\x20can\x20combine\x20multiple\x20expres\ - sions\x20by\x20enclosing\x20each\x20expression\x20in\n\x20parentheses.\ - \x20By\x20default,\x20expressions\x20are\x20combined\x20with\x20AND\x20l\ - ogic,\x20but\n\x20you\x20can\x20specify\x20AND,\x20OR,\x20and\x20NOT\x20\ - logic\x20explicitly.\n\n\x20Here\x20are\x20a\x20few\x20examples:\n\n\x20\ - \x20\x20*\x20`name:Howl`\x20-\x20The\x20backup's\x20name\x20contains\x20\ - the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`database:prod`\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20-\x20The\x20database's\x20name\x20contai\ - ns\x20the\x20string\x20\"prod\".\n\x20\x20\x20*\x20`state:CREATING`\x20-\ - \x20The\x20backup\x20is\x20pending\x20creation.\n\x20\x20\x20*\x20`state\ - :READY`\x20-\x20The\x20backup\x20is\x20fully\x20created\x20and\x20ready\ - \x20for\x20use.\n\x20\x20\x20*\x20`(name:howl)\x20AND\x20(create_time\ - \x20<\x20\\\"2018-03-28T14:50:00Z\\\")`\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20-\x20The\x20backup\x20name\x20contains\x20the\x20string\x20\ - \"howl\"\x20and\x20`create_time`\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20of\x20the\x20backup\x20is\x20before\x202018-03-28T14\ - :50:00Z.\n\x20\x20\x20*\x20`expire_time\x20<\x20\\\"2018-03-28T14:50:00Z\ - \\\"`\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20The\x20backup\x20`ex\ - pire_time`\x20is\x20before\x202018-03-28T14:50:00Z.\n\x20\x20\x20*\x20`s\ - ize_bytes\x20>\x2010000000000`\x20-\x20The\x20backup's\x20size\x20is\x20\ - greater\x20than\x2010GB\n\n\r\n\x05\x04\x08\x02\x01\x05\x12\x04\xf7\x02\ - \x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xf7\x02\t\x0f\n\r\n\x05\ - \x04\x08\x02\x01\x03\x12\x04\xf7\x02\x12\x13\n\x84\x01\n\x04\x04\x08\x02\ - \x02\x12\x04\xfb\x02\x02\x16\x1av\x20Number\x20of\x20backups\x20to\x20be\ - \x20returned\x20in\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20de\ - faults\x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\ - \n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xfb\x02\x02\x07\n\r\n\x05\x04\x08\ - \x02\x02\x01\x12\x04\xfb\x02\x08\x11\n\r\n\x05\x04\x08\x02\x02\x03\x12\ - \x04\xfb\x02\x14\x15\n\xa4\x02\n\x04\x04\x08\x02\x03\x12\x04\x81\x03\x02\ - \x18\x1a\x95\x02\x20If\x20non-empty,\x20`page_token`\x20should\x20contai\ - n\x20a\n\x20[next_page_token][google.spanner.admin.database.v1.ListBacku\ - psResponse.next_page_token]\x20from\x20a\n\x20previous\x20[ListBackupsRe\ - sponse][google.spanner.admin.database.v1.ListBackupsResponse]\x20to\x20t\ - he\x20same\x20`parent`\x20and\x20with\x20the\x20same\n\x20`filter`.\n\n\ - \r\n\x05\x04\x08\x02\x03\x05\x12\x04\x81\x03\x02\x08\n\r\n\x05\x04\x08\ - \x02\x03\x01\x12\x04\x81\x03\t\x13\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\ - \x81\x03\x16\x17\nk\n\x02\x04\t\x12\x06\x85\x03\0\x8e\x03\x01\x1a]\x20Th\ - e\x20response\x20for\x20[ListBackups][google.spanner.admin.database.v1.D\ - atabaseAdmin.ListBackups].\n\n\x0b\n\x03\x04\t\x01\x12\x04\x85\x03\x08\ - \x1b\n\x9f\x01\n\x04\x04\t\x02\0\x12\x04\x88\x03\x02\x1e\x1a\x90\x01\x20\ - The\x20list\x20of\x20matching\x20backups.\x20Backups\x20returned\x20are\ - \x20ordered\x20by\x20`create_time`\n\x20in\x20descending\x20order,\x20st\ - arting\x20from\x20the\x20most\x20recent\x20`create_time`.\n\n\r\n\x05\ - \x04\t\x02\0\x04\x12\x04\x88\x03\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\ - \x88\x03\x0b\x11\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x88\x03\x12\x19\n\r\n\ - \x05\x04\t\x02\0\x03\x12\x04\x88\x03\x1c\x1d\n\xb6\x01\n\x04\x04\t\x02\ - \x01\x12\x04\x8d\x03\x02\x1d\x1a\xa7\x01\x20`next_page_token`\x20can\x20\ - be\x20sent\x20in\x20a\x20subsequent\n\x20[ListBackups][google.spanner.ad\ - min.database.v1.DatabaseAdmin.ListBackups]\x20call\x20to\x20fetch\x20mor\ - e\n\x20of\x20the\x20matching\x20backups.\n\n\r\n\x05\x04\t\x02\x01\x05\ - \x12\x04\x8d\x03\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x8d\x03\t\ - \x18\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\x8d\x03\x1b\x1c\n}\n\x02\x04\n\ - \x12\x06\x92\x03\0\xe9\x03\x01\x1ao\x20The\x20request\x20for\n\x20[ListB\ - ackupOperations][google.spanner.admin.database.v1.DatabaseAdmin.ListBack\ - upOperations].\n\n\x0b\n\x03\x04\n\x01\x12\x04\x92\x03\x08#\n\x85\x01\n\ - \x04\x04\n\x02\0\x12\x06\x95\x03\x02\x9a\x03\x04\x1au\x20Required.\x20Th\ - e\x20instance\x20of\x20the\x20backup\x20operations.\x20Values\x20are\x20\ - of\n\x20the\x20form\x20`projects//instances/`.\n\n\r\ - \n\x05\x04\n\x02\0\x05\x12\x04\x95\x03\x02\x08\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\x95\x03\t\x0f\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x95\x03\x12\x13\ - \n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\x95\x03\x14\x9a\x03\x03\n\x10\n\x08\ - \x04\n\x02\0\x08\x9c\x08\0\x12\x04\x96\x03\x04*\n\x11\n\x07\x04\n\x02\0\ - \x08\x9f\x08\x12\x06\x97\x03\x04\x99\x03\x05\n\xc5\x1d\n\x04\x04\n\x02\ - \x01\x12\x04\xde\x03\x02\x14\x1a\xb6\x1d\x20An\x20expression\x20that\x20\ - filters\x20the\x20list\x20of\x20returned\x20backup\x20operations.\n\n\ - \x20A\x20filter\x20expression\x20consists\x20of\x20a\x20field\x20name,\ - \x20a\n\x20comparison\x20operator,\x20and\x20a\x20value\x20for\x20filter\ - ing.\n\x20The\x20value\x20must\x20be\x20a\x20string,\x20a\x20number,\x20\ - or\x20a\x20boolean.\x20The\x20comparison\x20operator\n\x20must\x20be\x20\ - one\x20of:\x20`<`,\x20`>`,\x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`\ - :`.\n\x20Colon\x20`:`\x20is\x20the\x20contains\x20operator.\x20Filter\ - \x20rules\x20are\x20not\x20case\x20sensitive.\n\n\x20The\x20following\ - \x20fields\x20in\x20the\x20[operation][google.longrunning.Operation]\n\ - \x20are\x20eligible\x20for\x20filtering:\n\n\x20\x20\x20*\x20`name`\x20-\ - \x20The\x20name\x20of\x20the\x20long-running\x20operation\n\x20\x20\x20*\ - \x20`done`\x20-\x20False\x20if\x20the\x20operation\x20is\x20in\x20progre\ - ss,\x20else\x20true.\n\x20\x20\x20*\x20`metadata.@type`\x20-\x20the\x20t\ - ype\x20of\x20metadata.\x20For\x20example,\x20the\x20type\x20string\n\x20\ - \x20\x20\x20\x20\x20for\x20[CreateBackupMetadata][google.spanner.admin.d\ - atabase.v1.CreateBackupMetadata]\x20is\n\x20\x20\x20\x20\x20\x20`type.go\ - ogleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.\n\ - \x20\x20\x20*\x20`metadata.`\x20-\x20any\x20field\x20in\x20m\ - etadata.value.\n\x20\x20\x20\x20\x20\x20`metadata.@type`\x20must\x20be\ - \x20specified\x20first\x20if\x20filtering\x20on\x20metadata\n\x20\x20\ - \x20\x20\x20\x20fields.\n\x20\x20\x20*\x20`error`\x20-\x20Error\x20assoc\ - iated\x20with\x20the\x20long-running\x20operation.\n\x20\x20\x20*\x20`re\ - sponse.@type`\x20-\x20the\x20type\x20of\x20response.\n\x20\x20\x20*\x20`\ - response.`\x20-\x20any\x20field\x20in\x20response.value.\n\n\ - \x20You\x20can\x20combine\x20multiple\x20expressions\x20by\x20enclosing\ - \x20each\x20expression\x20in\n\x20parentheses.\x20By\x20default,\x20expr\ - essions\x20are\x20combined\x20with\x20AND\x20logic,\x20but\n\x20you\x20c\ - an\x20specify\x20AND,\x20OR,\x20and\x20NOT\x20logic\x20explicitly.\n\n\ - \x20Here\x20are\x20a\x20few\x20examples:\n\n\x20\x20\x20*\x20`done:true`\ - \x20-\x20The\x20operation\x20is\x20complete.\n\x20\x20\x20*\x20`(metadat\ - a.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBacku\ - pMetadata)\x20AND`\x20\\\n\x20\x20\x20\x20\x20\x20`metadata.database:pro\ - d`\x20-\x20Returns\x20operations\x20where:\n\x20\x20\x20\x20\x20\x20*\ - \x20The\x20operation's\x20metadata\x20type\x20is\x20[CreateBackupMetadat\ - a][google.spanner.admin.database.v1.CreateBackupMetadata].\n\x20\x20\x20\ - \x20\x20\x20*\x20The\x20database\x20the\x20backup\x20was\x20taken\x20fro\ - m\x20has\x20a\x20name\x20containing\x20the\n\x20\x20\x20\x20\x20\x20stri\ - ng\x20\"prod\".\n\x20\x20\x20*\x20`(metadata.@type=type.googleapis.com/g\ - oogle.spanner.admin.database.v1.CreateBackupMetadata)\x20AND`\x20\\\n\ - \x20\x20\x20\x20\x20`(metadata.name:howl)\x20AND`\x20\\\n\x20\x20\x20\ - \x20\x20`(metadata.progress.start_time\x20<\x20\\\"2018-03-28T14:50:00Z\ - \\\")\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(error:*)`\x20-\x20Returns\x20\ - operations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\x20met\ - adata\x20type\x20is\x20[CreateBackupMetadata][google.spanner.admin.datab\ - ase.v1.CreateBackupMetadata].\n\x20\x20\x20\x20\x20*\x20The\x20backup\ - \x20name\x20contains\x20the\x20string\x20\"howl\".\n\x20\x20\x20\x20\x20\ - *\x20The\x20operation\x20started\x20before\x202018-03-28T14:50:00Z.\n\ - \x20\x20\x20\x20\x20*\x20The\x20operation\x20resulted\x20in\x20an\x20err\ - or.\n\x20\x20\x20*\x20`(metadata.@type=type.googleapis.com/google.spanne\ - r.admin.database.v1.CopyBackupMetadata)\x20AND`\x20\\\n\x20\x20\x20\x20\ - \x20`(metadata.source_backup:test)\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(\ - metadata.progress.start_time\x20<\x20\\\"2022-01-18T14:50:00Z\\\")\x20AN\ - D`\x20\\\n\x20\x20\x20\x20\x20`(error:*)`\x20-\x20Returns\x20operations\ - \x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\x20metadata\x20t\ - ype\x20is\x20[CopyBackupMetadata][google.spanner.admin.database.v1.CopyB\ - ackupMetadata].\n\x20\x20\x20\x20\x20*\x20The\x20source\x20backup\x20of\ - \x20the\x20copied\x20backup\x20name\x20contains\x20the\x20string\n\x20\ - \x20\x20\x20\x20\"test\".\n\x20\x20\x20\x20\x20*\x20The\x20operation\x20\ - started\x20before\x202022-01-18T14:50:00Z.\n\x20\x20\x20\x20\x20*\x20The\ - \x20operation\x20resulted\x20in\x20an\x20error.\n\x20\x20\x20*\x20`((met\ - adata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateB\ - ackupMetadata)\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(metadata.database:te\ - st_db))\x20OR`\x20\\\n\x20\x20\x20\x20\x20`((metadata.@type=type.googlea\ - pis.com/google.spanner.admin.database.v1.CopyBackupMetadata)\n\x20\x20\ - \x20\x20\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(metadata.source_backup:tes\ - t_bkp))\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(error:*)`\x20-\x20Returns\ - \x20operations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20operation's\ - \x20metadata\x20matches\x20either\x20of\x20criteria:\n\x20\x20\x20\x20\ - \x20\x20\x20*\x20The\x20operation's\x20metadata\x20type\x20is\x20[Create\ - BackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]\ - \x20AND\x20the\n\x20\x20\x20\x20\x20\x20\x20database\x20the\x20backup\ - \x20was\x20taken\x20from\x20has\x20name\x20containing\x20string\n\x20\ - \x20\x20\x20\x20\x20\x20\"test_db\"\n\x20\x20\x20\x20\x20\x20\x20*\x20Th\ - e\x20operation's\x20metadata\x20type\x20is\x20[CopyBackupMetadata][googl\ - e.spanner.admin.database.v1.CopyBackupMetadata]\x20AND\x20the\n\x20\x20\ - \x20\x20\x20\x20\x20backup\x20the\x20backup\x20was\x20copied\x20from\x20\ - has\x20name\x20containing\x20string\n\x20\x20\x20\x20\x20\x20\x20\"test_\ - bkp\"\n\x20\x20\x20\x20\x20*\x20The\x20operation\x20resulted\x20in\x20an\ - \x20error.\n\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\xde\x03\x02\x08\n\r\n\ - \x05\x04\n\x02\x01\x01\x12\x04\xde\x03\t\x0f\n\r\n\x05\x04\n\x02\x01\x03\ - \x12\x04\xde\x03\x12\x13\n\x87\x01\n\x04\x04\n\x02\x02\x12\x04\xe2\x03\ - \x02\x16\x1ay\x20Number\x20of\x20operations\x20to\x20be\x20returned\x20i\ - n\x20the\x20response.\x20If\x200\x20or\n\x20less,\x20defaults\x20to\x20t\ - he\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\n\ - \x02\x02\x05\x12\x04\xe2\x03\x02\x07\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\ - \xe2\x03\x08\x11\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xe2\x03\x14\x15\n\ - \xbf\x02\n\x04\x04\n\x02\x03\x12\x04\xe8\x03\x02\x18\x1a\xb0\x02\x20If\ - \x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page\ - _token][google.spanner.admin.database.v1.ListBackupOperationsResponse.ne\ - xt_page_token]\n\x20from\x20a\x20previous\x20[ListBackupOperationsRespon\ - se][google.spanner.admin.database.v1.ListBackupOperationsResponse]\x20to\ - \x20the\n\x20same\x20`parent`\x20and\x20with\x20the\x20same\x20`filter`.\ - \n\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xe8\x03\x02\x08\n\r\n\x05\x04\n\ - \x02\x03\x01\x12\x04\xe8\x03\t\x13\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ - \xe8\x03\x16\x17\n~\n\x02\x04\x0b\x12\x06\xed\x03\0\xfd\x03\x01\x1ap\x20\ - The\x20response\x20for\n\x20[ListBackupOperations][google.spanner.admin.\ - database.v1.DatabaseAdmin.ListBackupOperations].\n\n\x0b\n\x03\x04\x0b\ - \x01\x12\x04\xed\x03\x08$\n\xb5\x04\n\x04\x04\x0b\x02\0\x12\x04\xf7\x03\ - \x027\x1a\xa6\x04\x20The\x20list\x20of\x20matching\x20backup\x20[long-ru\ - nning\n\x20operations][google.longrunning.Operation].\x20Each\x20operati\ - on's\x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20backup's\x20nam\ - e.\x20The\x20operation's\n\x20[metadata][google.longrunning.Operation.me\ - tadata]\x20field\x20type\n\x20`metadata.type_url`\x20describes\x20the\ - \x20type\x20of\x20the\x20metadata.\x20Operations\x20returned\n\x20includ\ - e\x20those\x20that\x20are\x20pending\x20or\x20have\x20completed/failed/c\ - anceled\x20within\x20the\n\x20last\x207\x20days.\x20Operations\x20return\ - ed\x20are\x20ordered\x20by\n\x20`operation.metadata.value.progress.start\ - _time`\x20in\x20descending\x20order\x20starting\n\x20from\x20the\x20most\ - \x20recently\x20started\x20operation.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\ - \x04\xf7\x03\x02\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\xf7\x03\x0b'\n\r\ - \n\x05\x04\x0b\x02\0\x01\x12\x04\xf7\x03(2\n\r\n\x05\x04\x0b\x02\0\x03\ - \x12\x04\xf7\x0356\n\xc9\x01\n\x04\x04\x0b\x02\x01\x12\x04\xfc\x03\x02\ - \x1d\x1a\xba\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\ - \x20subsequent\n\x20[ListBackupOperations][google.spanner.admin.database\ - .v1.DatabaseAdmin.ListBackupOperations]\n\x20call\x20to\x20fetch\x20more\ - \x20of\x20the\x20matching\x20metadata.\n\n\r\n\x05\x04\x0b\x02\x01\x05\ - \x12\x04\xfc\x03\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xfc\x03\t\ - \x18\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\xfc\x03\x1b\x1c\n+\n\x02\x04\ - \x0c\x12\x06\x80\x04\0\x95\x04\x01\x1a\x1d\x20Information\x20about\x20a\ - \x20backup.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\x80\x04\x08\x12\n%\n\x04\ - \x04\x0c\x02\0\x12\x06\x82\x04\x02\x84\x04\x18\x1a\x15\x20Name\x20of\x20\ - the\x20backup.\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\x82\x04\x02\x08\n\r\ - \n\x05\x04\x0c\x02\0\x01\x12\x04\x82\x04\t\x0f\n\r\n\x05\x04\x0c\x02\0\ - \x03\x12\x04\x82\x04\x12\x13\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\x82\ - \x04\x14\x84\x04\x17\n\x11\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x06\x82\ - \x04\x15\x84\x04\x16\n\xc9\x02\n\x04\x04\x0c\x02\x01\x12\x04\x8b\x04\x02\ - -\x1a\xba\x02\x20The\x20backup\x20contains\x20an\x20externally\x20consis\ - tent\x20copy\x20of\x20`source_database`\x20at\n\x20the\x20timestamp\x20s\ - pecified\x20by\x20`version_time`.\x20If\x20the\n\x20[CreateBackup][googl\ - e.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]\x20request\x20di\ - d\x20not\x20specify\n\x20`version_time`,\x20the\x20`version_time`\x20of\ - \x20the\x20backup\x20is\x20equivalent\x20to\x20the\n\x20`create_time`.\n\ - \n\r\n\x05\x04\x0c\x02\x01\x06\x12\x04\x8b\x04\x02\x1b\n\r\n\x05\x04\x0c\ - \x02\x01\x01\x12\x04\x8b\x04\x1c(\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\ - \x8b\x04+,\n\x7f\n\x04\x04\x0c\x02\x02\x12\x04\x8f\x04\x02,\x1aq\x20The\ - \x20time\x20the\x20[CreateBackup][google.spanner.admin.database.v1.Datab\ - aseAdmin.CreateBackup]\x20request\x20was\n\x20received.\n\n\r\n\x05\x04\ - \x0c\x02\x02\x06\x12\x04\x8f\x04\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\ - \x12\x04\x8f\x04\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\x8f\x04*+\nC\ - \n\x04\x04\x0c\x02\x03\x12\x06\x92\x04\x02\x94\x04!\x1a3\x20Name\x20of\ - \x20the\x20database\x20the\x20backup\x20was\x20created\x20from.\n\n\r\n\ - \x05\x04\x0c\x02\x03\x05\x12\x04\x92\x04\x02\x08\n\r\n\x05\x04\x0c\x02\ - \x03\x01\x12\x04\x92\x04\t\x18\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\x92\ - \x04\x1b\x1c\n\x0f\n\x05\x04\x0c\x02\x03\x08\x12\x06\x92\x04\x1d\x94\x04\ - \x20\n\x11\n\x07\x04\x0c\x02\x03\x08\x9f\x08\x12\x06\x92\x04\x1e\x94\x04\ - \x1f\nB\n\x02\x04\r\x12\x06\x98\x04\0\xbb\x04\x01\x1a4\x20Encryption\x20\ - configuration\x20for\x20the\x20backup\x20to\x20create.\n\n\x0b\n\x03\x04\ - \r\x01\x12\x04\x98\x04\x08$\n2\n\x04\x04\r\x04\0\x12\x06\x9a\x04\x02\xab\ - \x04\x03\x1a\"\x20Encryption\x20types\x20for\x20the\x20backup.\n\n\r\n\ - \x05\x04\r\x04\0\x01\x12\x04\x9a\x04\x07\x15\n*\n\x06\x04\r\x04\0\x02\0\ - \x12\x04\x9c\x04\x04$\x1a\x1a\x20Unspecified.\x20Do\x20not\x20use.\n\n\ - \x0f\n\x07\x04\r\x04\0\x02\0\x01\x12\x04\x9c\x04\x04\x1f\n\x0f\n\x07\x04\ - \r\x04\0\x02\0\x02\x12\x04\x9c\x04\"#\n\xd0\x02\n\x06\x04\r\x04\0\x02\ - \x01\x12\x04\xa3\x04\x04\x20\x1a\xbf\x02\x20Use\x20the\x20same\x20encryp\ - tion\x20configuration\x20as\x20the\x20database.\x20This\x20is\x20the\n\ - \x20default\x20option\x20when\n\x20[encryption_config][google.spanner.ad\ - min.database.v1.CreateBackupEncryptionConfig]\x20is\x20empty.\n\x20For\ - \x20example,\x20if\x20the\x20database\x20is\x20using\x20`Customer_Manage\ - d_Encryption`,\x20the\n\x20backup\x20will\x20be\x20using\x20the\x20same\ - \x20Cloud\x20KMS\x20key\x20as\x20the\x20database.\n\n\x0f\n\x07\x04\r\ - \x04\0\x02\x01\x01\x12\x04\xa3\x04\x04\x1b\n\x0f\n\x07\x04\r\x04\0\x02\ - \x01\x02\x12\x04\xa3\x04\x1e\x1f\n0\n\x06\x04\r\x04\0\x02\x02\x12\x04\ - \xa6\x04\x04\"\x1a\x20\x20Use\x20Google\x20default\x20encryption.\n\n\ - \x0f\n\x07\x04\r\x04\0\x02\x02\x01\x12\x04\xa6\x04\x04\x1d\n\x0f\n\x07\ - \x04\r\x04\0\x02\x02\x02\x12\x04\xa6\x04\x20!\nt\n\x06\x04\r\x04\0\x02\ - \x03\x12\x04\xaa\x04\x04$\x1ad\x20Use\x20customer\x20managed\x20encrypti\ - on.\x20If\x20specified,\x20`kms_key_name`\n\x20must\x20contain\x20a\x20v\ - alid\x20Cloud\x20KMS\x20key.\n\n\x0f\n\x07\x04\r\x04\0\x02\x03\x01\x12\ - \x04\xaa\x04\x04\x1f\n\x0f\n\x07\x04\r\x04\0\x02\x03\x02\x12\x04\xaa\x04\ - \"#\n<\n\x04\x04\r\x02\0\x12\x04\xae\x04\x02N\x1a.\x20Required.\x20The\ - \x20encryption\x20type\x20of\x20the\x20backup.\n\n\r\n\x05\x04\r\x02\0\ - \x06\x12\x04\xae\x04\x02\x10\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xae\x04\ - \x11\x20\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xae\x04#$\n\r\n\x05\x04\r\x02\ - \0\x08\x12\x04\xae\x04%M\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\ - \xae\x04&L\n\xf1\x02\n\x04\x04\r\x02\x01\x12\x06\xb5\x04\x02\xba\x04\x04\ - \x1a\xe0\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20that\x20will\ - \x20be\x20used\x20to\x20protect\x20the\x20backup.\n\x20This\x20field\x20\ - should\x20be\x20set\x20only\x20when\n\x20[encryption_type][google.spanne\ - r.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]\x20is\ - \n\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20Values\x20are\x20of\x20the\x20fo\ - rm\n\x20`projects//locations//keyRings//cry\ - ptoKeys/`.\n\n\r\n\x05\x04\r\x02\x01\x05\x12\x04\xb5\x04\ - \x02\x08\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xb5\x04\t\x15\n\r\n\x05\x04\ - \r\x02\x01\x03\x12\x04\xb5\x04\x18\x19\n\x0f\n\x05\x04\r\x02\x01\x08\x12\ - \x06\xb5\x04\x1a\xba\x04\x03\n\x10\n\x08\x04\r\x02\x01\x08\x9c\x08\0\x12\ - \x04\xb6\x04\x04*\n\x11\n\x07\x04\r\x02\x01\x08\x9f\x08\x12\x06\xb7\x04\ - \x04\xb9\x04\x05\n?\n\x02\x04\x0e\x12\x06\xbe\x04\0\xe0\x04\x01\x1a1\x20\ - Encryption\x20configuration\x20for\x20the\x20copied\x20backup.\n\n\x0b\n\ - \x03\x04\x0e\x01\x12\x04\xbe\x04\x08\"\n2\n\x04\x04\x0e\x04\0\x12\x06\ - \xc0\x04\x02\xd0\x04\x03\x1a\"\x20Encryption\x20types\x20for\x20the\x20b\ - ackup.\n\n\r\n\x05\x04\x0e\x04\0\x01\x12\x04\xc0\x04\x07\x15\n*\n\x06\ - \x04\x0e\x04\0\x02\0\x12\x04\xc2\x04\x04$\x1a\x1a\x20Unspecified.\x20Do\ - \x20not\x20use.\n\n\x0f\n\x07\x04\x0e\x04\0\x02\0\x01\x12\x04\xc2\x04\ - \x04\x1f\n\x0f\n\x07\x04\x0e\x04\0\x02\0\x02\x12\x04\xc2\x04\"#\n\xf4\ - \x02\n\x06\x04\x0e\x04\0\x02\x01\x12\x04\xc8\x04\x040\x1a\xe3\x02\x20Thi\ - s\x20is\x20the\x20default\x20option\x20for\x20[CopyBackup][google.spanne\ - r.admin.database.v1.DatabaseAdmin.CopyBackup]\n\x20when\x20[encryption_c\ - onfig][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]\x20i\ - s\x20not\x20specified.\n\x20For\x20example,\x20if\x20the\x20source\x20ba\ - ckup\x20is\x20using\x20`Customer_Managed_Encryption`,\n\x20the\x20backup\ - \x20will\x20be\x20using\x20the\x20same\x20Cloud\x20KMS\x20key\x20as\x20t\ - he\x20source\x20backup.\n\n\x0f\n\x07\x04\x0e\x04\0\x02\x01\x01\x12\x04\ - \xc8\x04\x04+\n\x0f\n\x07\x04\x0e\x04\0\x02\x01\x02\x12\x04\xc8\x04./\n0\ - \n\x06\x04\x0e\x04\0\x02\x02\x12\x04\xcb\x04\x04\"\x1a\x20\x20Use\x20Goo\ - gle\x20default\x20encryption.\n\n\x0f\n\x07\x04\x0e\x04\0\x02\x02\x01\ - \x12\x04\xcb\x04\x04\x1d\n\x0f\n\x07\x04\x0e\x04\0\x02\x02\x02\x12\x04\ - \xcb\x04\x20!\nt\n\x06\x04\x0e\x04\0\x02\x03\x12\x04\xcf\x04\x04$\x1ad\ - \x20Use\x20customer\x20managed\x20encryption.\x20If\x20specified,\x20`km\ - s_key_name`\n\x20must\x20contain\x20a\x20valid\x20Cloud\x20KMS\x20key.\n\ - \n\x0f\n\x07\x04\x0e\x04\0\x02\x03\x01\x12\x04\xcf\x04\x04\x1f\n\x0f\n\ - \x07\x04\x0e\x04\0\x02\x03\x02\x12\x04\xcf\x04\"#\n<\n\x04\x04\x0e\x02\0\ - \x12\x04\xd3\x04\x02N\x1a.\x20Required.\x20The\x20encryption\x20type\x20\ - of\x20the\x20backup.\n\n\r\n\x05\x04\x0e\x02\0\x06\x12\x04\xd3\x04\x02\ - \x10\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xd3\x04\x11\x20\n\r\n\x05\x04\ - \x0e\x02\0\x03\x12\x04\xd3\x04#$\n\r\n\x05\x04\x0e\x02\0\x08\x12\x04\xd3\ - \x04%M\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xd3\x04&L\n\xef\ - \x02\n\x04\x04\x0e\x02\x01\x12\x06\xda\x04\x02\xdf\x04\x04\x1a\xde\x02\ - \x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20that\x20will\x20be\x20use\ - d\x20to\x20protect\x20the\x20backup.\n\x20This\x20field\x20should\x20be\ - \x20set\x20only\x20when\n\x20[encryption_type][google.spanner.admin.data\ - base.v1.CopyBackupEncryptionConfig.encryption_type]\x20is\n\x20`CUSTOMER\ - _MANAGED_ENCRYPTION`.\x20Values\x20are\x20of\x20the\x20form\n\x20`projec\ - ts//locations//keyRings//cryptoKeys/`.\n\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xda\x04\x02\x08\n\r\n\ - \x05\x04\x0e\x02\x01\x01\x12\x04\xda\x04\t\x15\n\r\n\x05\x04\x0e\x02\x01\ - \x03\x12\x04\xda\x04\x18\x19\n\x0f\n\x05\x04\x0e\x02\x01\x08\x12\x06\xda\ - \x04\x1a\xdf\x04\x03\n\x10\n\x08\x04\x0e\x02\x01\x08\x9c\x08\0\x12\x04\ - \xdb\x04\x04*\n\x11\n\x07\x04\x0e\x02\x01\x08\x9f\x08\x12\x06\xdc\x04\ - \x04\xde\x04\x05b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/spanner/admin/database/v1/common.rs b/googleapis-raw/src/spanner/admin/database/v1/common.rs deleted file mode 100644 index 0758fcb..0000000 --- a/googleapis-raw/src/spanner/admin/database/v1/common.rs +++ /dev/null @@ -1,942 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/spanner/admin/database/v1/common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OperationProgress { - // message fields - pub progress_percent: i32, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OperationProgress { - fn default() -> &'a OperationProgress { - ::default_instance() - } -} - -impl OperationProgress { - pub fn new() -> OperationProgress { - ::std::default::Default::default() - } - - // int32 progress_percent = 1; - - - pub fn get_progress_percent(&self) -> i32 { - self.progress_percent - } - pub fn clear_progress_percent(&mut self) { - self.progress_percent = 0; - } - - // Param is passed by value, moved - pub fn set_progress_percent(&mut self, v: i32) { - self.progress_percent = v; - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OperationProgress { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.progress_percent = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.progress_percent != 0 { - my_size += ::protobuf::rt::value_size(1, self.progress_percent, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.progress_percent != 0 { - os.write_int32(1, self.progress_percent)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OperationProgress { - OperationProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "progress_percent", - |m: &OperationProgress| { &m.progress_percent }, - |m: &mut OperationProgress| { &mut m.progress_percent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &OperationProgress| { &m.start_time }, - |m: &mut OperationProgress| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &OperationProgress| { &m.end_time }, - |m: &mut OperationProgress| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OperationProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationProgress::new) - } -} - -impl ::protobuf::Clear for OperationProgress { - fn clear(&mut self) { - self.progress_percent = 0; - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OperationProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OperationProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EncryptionConfig { - // message fields - pub kms_key_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EncryptionConfig { - fn default() -> &'a EncryptionConfig { - ::default_instance() - } -} - -impl EncryptionConfig { - pub fn new() -> EncryptionConfig { - ::std::default::Default::default() - } - - // string kms_key_name = 2; - - - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name - } - - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for EncryptionConfig { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.kms_key_name.is_empty() { - os.write_string(2, &self.kms_key_name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> EncryptionConfig { - EncryptionConfig::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &EncryptionConfig| { &m.kms_key_name }, - |m: &mut EncryptionConfig| { &mut m.kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EncryptionConfig", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static EncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EncryptionConfig::new) - } -} - -impl ::protobuf::Clear for EncryptionConfig { - fn clear(&mut self) { - self.kms_key_name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EncryptionConfig { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for EncryptionConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct EncryptionInfo { - // message fields - pub encryption_type: EncryptionInfo_Type, - pub encryption_status: ::protobuf::SingularPtrField, - pub kms_key_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a EncryptionInfo { - fn default() -> &'a EncryptionInfo { - ::default_instance() - } -} - -impl EncryptionInfo { - pub fn new() -> EncryptionInfo { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3; - - - pub fn get_encryption_type(&self) -> EncryptionInfo_Type { - self.encryption_type - } - pub fn clear_encryption_type(&mut self) { - self.encryption_type = EncryptionInfo_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encryption_type(&mut self, v: EncryptionInfo_Type) { - self.encryption_type = v; - } - - // .google.rpc.Status encryption_status = 4; - - - pub fn get_encryption_status(&self) -> &super::status::Status { - self.encryption_status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_status(&mut self) { - self.encryption_status.clear(); - } - - pub fn has_encryption_status(&self) -> bool { - self.encryption_status.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_status(&mut self, v: super::status::Status) { - self.encryption_status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_status(&mut self) -> &mut super::status::Status { - if self.encryption_status.is_none() { - self.encryption_status.set_default(); - } - self.encryption_status.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_status(&mut self) -> super::status::Status { - self.encryption_status.take().unwrap_or_else(|| super::status::Status::new()) - } - - // string kms_key_version = 2; - - - pub fn get_kms_key_version(&self) -> &str { - &self.kms_key_version - } - pub fn clear_kms_key_version(&mut self) { - self.kms_key_version.clear(); - } - - // Param is passed by value, moved - pub fn set_kms_key_version(&mut self, v: ::std::string::String) { - self.kms_key_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_version(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_version - } - - // Take field - pub fn take_kms_key_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for EncryptionInfo { - fn is_initialized(&self) -> bool { - for v in &self.encryption_status { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 3 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 3, &mut self.unknown_fields)? - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_status)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.encryption_type != EncryptionInfo_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(3, self.encryption_type); - } - if let Some(ref v) = self.encryption_status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.kms_key_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.encryption_type != EncryptionInfo_Type::TYPE_UNSPECIFIED { - os.write_enum(3, ::protobuf::ProtobufEnum::value(&self.encryption_type))?; - } - if let Some(ref v) = self.encryption_status.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.kms_key_version.is_empty() { - os.write_string(2, &self.kms_key_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> EncryptionInfo { - EncryptionInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encryption_type", - |m: &EncryptionInfo| { &m.encryption_type }, - |m: &mut EncryptionInfo| { &mut m.encryption_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_status", - |m: &EncryptionInfo| { &m.encryption_status }, - |m: &mut EncryptionInfo| { &mut m.encryption_status }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_version", - |m: &EncryptionInfo| { &m.kms_key_version }, - |m: &mut EncryptionInfo| { &mut m.kms_key_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "EncryptionInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static EncryptionInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(EncryptionInfo::new) - } -} - -impl ::protobuf::Clear for EncryptionInfo { - fn clear(&mut self) { - self.encryption_type = EncryptionInfo_Type::TYPE_UNSPECIFIED; - self.encryption_status.clear(); - self.kms_key_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for EncryptionInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for EncryptionInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum EncryptionInfo_Type { - TYPE_UNSPECIFIED = 0, - GOOGLE_DEFAULT_ENCRYPTION = 1, - CUSTOMER_MANAGED_ENCRYPTION = 2, -} - -impl ::protobuf::ProtobufEnum for EncryptionInfo_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(EncryptionInfo_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(EncryptionInfo_Type::GOOGLE_DEFAULT_ENCRYPTION), - 2 => ::std::option::Option::Some(EncryptionInfo_Type::CUSTOMER_MANAGED_ENCRYPTION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [EncryptionInfo_Type] = &[ - EncryptionInfo_Type::TYPE_UNSPECIFIED, - EncryptionInfo_Type::GOOGLE_DEFAULT_ENCRYPTION, - EncryptionInfo_Type::CUSTOMER_MANAGED_ENCRYPTION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("EncryptionInfo.Type", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for EncryptionInfo_Type { -} - -impl ::std::default::Default for EncryptionInfo_Type { - fn default() -> Self { - EncryptionInfo_Type::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for EncryptionInfo_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum DatabaseDialect { - DATABASE_DIALECT_UNSPECIFIED = 0, - GOOGLE_STANDARD_SQL = 1, - POSTGRESQL = 2, -} - -impl ::protobuf::ProtobufEnum for DatabaseDialect { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED), - 1 => ::std::option::Option::Some(DatabaseDialect::GOOGLE_STANDARD_SQL), - 2 => ::std::option::Option::Some(DatabaseDialect::POSTGRESQL), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [DatabaseDialect] = &[ - DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED, - DatabaseDialect::GOOGLE_STANDARD_SQL, - DatabaseDialect::POSTGRESQL, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("DatabaseDialect", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for DatabaseDialect { -} - -impl ::std::default::Default for DatabaseDialect { - fn default() -> Self { - DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for DatabaseDialect { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n-google/spanner/admin/database/v1/common.proto\x12\x20google.spanner.a\ - dmin.database.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/ap\ - i/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rp\ - c/status.proto\"\xb0\x01\n\x11OperationProgress\x12)\n\x10progress_perce\ - nt\x18\x01\x20\x01(\x05R\x0fprogressPercent\x129\n\nstart_time\x18\x02\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_t\ - ime\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\\\ - \n\x10EncryptionConfig\x12H\n\x0ckms_key_name\x18\x02\x20\x01(\tR\nkmsKe\ - yNameB&\xfaA#\n!cloudkms.googleapis.com/CryptoKey\"\xf3\x02\n\x0eEncrypt\ - ionInfo\x12c\n\x0fencryption_type\x18\x03\x20\x01(\x0e25.google.spanner.\ - admin.database.v1.EncryptionInfo.TypeR\x0eencryptionTypeB\x03\xe0A\x03\ - \x12D\n\x11encryption_status\x18\x04\x20\x01(\x0b2\x12.google.rpc.Status\ - R\x10encryptionStatusB\x03\xe0A\x03\x12X\n\x0fkms_key_version\x18\x02\ - \x20\x01(\tR\rkmsKeyVersionB0\xfaA*\n(cloudkms.googleapis.com/CryptoKeyV\ - ersion\xe0A\x03\"\\\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\ - \x1d\n\x19GOOGLE_DEFAULT_ENCRYPTION\x10\x01\x12\x1f\n\x1bCUSTOMER_MANAGE\ - D_ENCRYPTION\x10\x02*\\\n\x0fDatabaseDialect\x12\x20\n\x1cDATABASE_DIALE\ - CT_UNSPECIFIED\x10\0\x12\x17\n\x13GOOGLE_STANDARD_SQL\x10\x01\x12\x0e\n\ - \nPOSTGRESQL\x10\x02B\xa2\x04\n$com.google.spanner.admin.database.v1B\ - \x0bCommonProtoP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/d\ - atabasepb;databasepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\ - \x02&Google\\Cloud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::\ - Spanner::Admin::Database::V1\xeaAx\n!cloudkms.googleapis.com/CryptoKey\ - \x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK\ - eys/{crypto_key}\xeaA\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\ - \x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK\ - eys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}J\xee\x19\n\x06\ - \x12\x04\x0e\0o\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ - \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ - \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ - LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ - \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\ - \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\ - ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ - D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ - for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0)\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\x12\x03\x13\0#\ - \n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0!\n\x08\ - \n\x01\x08\x12\x03\x17\0C\n\t\n\x02\x08%\x12\x03\x17\0C\n\x08\n\x01\x08\ - \x12\x03\x18\0]\n\t\n\x02\x08\x0b\x12\x03\x18\0]\n\x08\n\x01\x08\x12\x03\ - \x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0,\ - \n\t\n\x02\x08\x08\x12\x03\x1a\0,\n\x08\n\x01\x08\x12\x03\x1b\0=\n\t\n\ - \x02\x08\x01\x12\x03\x1b\0=\n\x08\n\x01\x08\x12\x03\x1c\0E\n\t\n\x02\x08\ - )\x12\x03\x1c\0E\n\x08\n\x01\x08\x12\x03\x1d\0D\n\t\n\x02\x08-\x12\x03\ - \x1d\0D\n\t\n\x01\x08\x12\x04\x1e\0!\x02\n\x0c\n\x04\x08\x9d\x08\0\x12\ - \x04\x1e\0!\x02\n\t\n\x01\x08\x12\x04\"\0%\x02\n\x0c\n\x04\x08\x9d\x08\ - \x01\x12\x04\"\0%\x02\nd\n\x02\x04\0\x12\x04)\04\x01\x1aX\x20Encapsulate\ - s\x20progress\x20related\x20information\x20for\x20a\x20Cloud\x20Spanner\ - \x20long\n\x20running\x20operation.\n\n\n\n\x03\x04\0\x01\x12\x03)\x08\ - \x19\n\\\n\x04\x04\0\x02\0\x12\x03,\x02\x1d\x1aO\x20Percent\x20completio\ - n\x20of\x20the\x20operation.\n\x20Values\x20are\x20between\x200\x20and\ - \x20100\x20inclusive.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03,\x02\x07\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03,\x08\x18\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03,\x1b\x1c\n-\n\x04\x04\0\x02\x01\x12\x03/\x02+\x1a\x20\x20Time\ - \x20the\x20request\x20was\x20received.\n\n\x0c\n\x05\x04\0\x02\x01\x06\ - \x12\x03/\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03/\x1c&\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03/)*\n^\n\x04\x04\0\x02\x02\x12\x033\x02)\ - \x1aQ\x20If\x20set,\x20the\x20time\x20at\x20which\x20this\x20operation\ - \x20failed\x20or\x20was\x20completed\n\x20successfully.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x033\x02\x1b\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x033\x1c$\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x033'(\nD\n\x02\x04\x01\x12\ - \x047\0>\x01\x1a8\x20Encryption\x20configuration\x20for\x20a\x20Cloud\ - \x20Spanner\x20database.\n\n\n\n\x03\x04\x01\x01\x12\x037\x08\x18\n\xcb\ - \x01\n\x04\x04\x01\x02\0\x12\x04;\x02=\x1e\x1a\xbc\x01\x20The\x20Cloud\ - \x20KMS\x20key\x20to\x20be\x20used\x20for\x20encrypting\x20and\x20decryp\ - ting\n\x20the\x20database.\x20Values\x20are\x20of\x20the\x20form\n\x20`p\ - rojects//locations//keyRings//cryptoKeys/`.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03;\x02\x08\n\x0c\n\ - \x05\x04\x01\x02\0\x01\x12\x03;\t\x15\n\x0c\n\x05\x04\x01\x02\0\x03\x12\ - \x03;\x18\x19\n\r\n\x05\x04\x01\x02\0\x08\x12\x04;\x1a=\x1d\n\x0f\n\x07\ - \x04\x01\x02\0\x08\x9f\x08\x12\x04;\x1b=\x1c\nL\n\x02\x04\x02\x12\x04A\0\ - b\x01\x1a@\x20Encryption\x20information\x20for\x20a\x20Cloud\x20Spanner\ - \x20database\x20or\x20backup.\n\n\n\n\x03\x04\x02\x01\x12\x03A\x08\x16\n\ - *\n\x04\x04\x02\x04\0\x12\x04C\x02P\x03\x1a\x1c\x20Possible\x20encryptio\ - n\x20types.\n\n\x0c\n\x05\x04\x02\x04\0\x01\x12\x03C\x07\x0b\nZ\n\x06\ - \x04\x02\x04\0\x02\0\x12\x03E\x04\x19\x1aK\x20Encryption\x20type\x20was\ - \x20not\x20specified,\x20though\x20data\x20at\x20rest\x20remains\x20encr\ - ypted.\n\n\x0e\n\x07\x04\x02\x04\0\x02\0\x01\x12\x03E\x04\x14\n\x0e\n\ - \x07\x04\x02\x04\0\x02\0\x02\x12\x03E\x17\x18\n\xa4\x01\n\x06\x04\x02\ - \x04\0\x02\x01\x12\x03J\x04\"\x1a\x94\x01\x20The\x20data\x20is\x20encryp\ - ted\x20at\x20rest\x20with\x20a\x20key\x20that\x20is\n\x20fully\x20manage\ - d\x20by\x20Google.\x20No\x20key\x20version\x20or\x20status\x20will\x20be\ - \x20populated.\n\x20This\x20is\x20the\x20default\x20state.\n\n\x0e\n\x07\ - \x04\x02\x04\0\x02\x01\x01\x12\x03J\x04\x1d\n\x0e\n\x07\x04\x02\x04\0\ - \x02\x01\x02\x12\x03J\x20!\n\xcb\x01\n\x06\x04\x02\x04\0\x02\x02\x12\x03\ - O\x04$\x1a\xbb\x01\x20The\x20data\x20is\x20encrypted\x20at\x20rest\x20wi\ - th\x20a\x20key\x20that\x20is\n\x20managed\x20by\x20the\x20customer.\x20T\ - he\x20active\x20version\x20of\x20the\x20key.\x20`kms_key_version`\n\x20w\ - ill\x20be\x20populated,\x20and\x20`encryption_status`\x20may\x20be\x20po\ - pulated.\n\n\x0e\n\x07\x04\x02\x04\0\x02\x02\x01\x12\x03O\x04\x1f\n\x0e\ - \n\x07\x04\x02\x04\0\x02\x02\x02\x12\x03O\"#\n3\n\x04\x04\x02\x02\0\x12\ - \x03S\x02G\x1a&\x20Output\x20only.\x20The\x20type\x20of\x20encryption.\n\ - \n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03S\x02\x06\n\x0c\n\x05\x04\x02\x02\ - \0\x01\x12\x03S\x07\x16\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03S\x19\x1a\n\ - \x0c\n\x05\x04\x02\x02\0\x08\x12\x03S\x1bF\n\x0f\n\x08\x04\x02\x02\0\x08\ - \x9c\x08\0\x12\x03S\x1cE\n\xbe\x01\n\x04\x04\x02\x02\x01\x12\x03X\x02V\ - \x1a\xb0\x01\x20Output\x20only.\x20If\x20present,\x20the\x20status\x20of\ - \x20a\x20recent\x20encrypt/decrypt\x20call\x20on\x20underlying\x20data\n\ - \x20for\x20this\x20database\x20or\x20backup.\x20Regardless\x20of\x20stat\ - us,\x20data\x20is\x20always\x20encrypted\n\x20at\x20rest.\n\n\x0c\n\x05\ - \x04\x02\x02\x01\x06\x12\x03X\x02\x13\n\x0c\n\x05\x04\x02\x02\x01\x01\ - \x12\x03X\x14%\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03X()\n\x0c\n\x05\ - \x04\x02\x02\x01\x08\x12\x03X*U\n\x0f\n\x08\x04\x02\x02\x01\x08\x9c\x08\ - \0\x12\x03X+T\nk\n\x04\x04\x02\x02\x02\x12\x04\\\x02a\x04\x1a]\x20Output\ - \x20only.\x20A\x20Cloud\x20KMS\x20key\x20version\x20that\x20is\x20being\ - \x20used\x20to\x20protect\x20the\x20database\x20or\n\x20backup.\n\n\x0c\ - \n\x05\x04\x02\x02\x02\x05\x12\x03\\\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\ - \x01\x12\x03\\\t\x18\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\\\x1b\x1c\n\ - \r\n\x05\x04\x02\x02\x02\x08\x12\x04\\\x1da\x03\n\x0f\n\x08\x04\x02\x02\ - \x02\x08\x9c\x08\0\x12\x03]\x04-\n\x0f\n\x07\x04\x02\x02\x02\x08\x9f\x08\ - \x12\x04^\x04`\x05\n7\n\x02\x05\0\x12\x04e\0o\x01\x1a+\x20Indicates\x20t\ - he\x20dialect\x20type\x20of\x20a\x20database.\n\n\n\n\x03\x05\0\x01\x12\ - \x03e\x05\x14\nf\n\x04\x05\0\x02\0\x12\x03h\x02#\x1aY\x20Default\x20valu\ - e.\x20This\x20value\x20will\x20create\x20a\x20database\x20with\x20the\n\ - \x20GOOGLE_STANDARD_SQL\x20dialect.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ - \x03h\x02\x1e\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03h!\"\n#\n\x04\x05\0\x02\ - \x01\x12\x03k\x02\x1a\x1a\x16\x20Google\x20standard\x20SQL.\n\n\x0c\n\ - \x05\x05\0\x02\x01\x01\x12\x03k\x02\x15\n\x0c\n\x05\x05\0\x02\x01\x02\ - \x12\x03k\x18\x19\n(\n\x04\x05\0\x02\x02\x12\x03n\x02\x11\x1a\x1b\x20Pos\ - tgreSQL\x20supported\x20SQL.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03n\ - \x02\x0c\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03n\x0f\x10b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/spanner/admin/database/v1/mod.rs b/googleapis-raw/src/spanner/admin/database/v1/mod.rs index 7b4fe78..3790ec3 100644 --- a/googleapis-raw/src/spanner/admin/database/v1/mod.rs +++ b/googleapis-raw/src/spanner/admin/database/v1/mod.rs @@ -1,14 +1,10 @@ // @generated - -use crate::{ +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, empty, - iam::v1::{policy, iam_policy}, + iam::v1::{iam_policy, policy}, longrunning::operations, - rpc::status, - }; -pub mod backup; -pub mod common; pub mod spanner_database_admin; pub mod spanner_database_admin_grpc; diff --git a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs index 0fba58f..ee604bf 100644 --- a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs +++ b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,131 +16,85 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/admin/database/v1/spanner_database_admin.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] -pub struct RestoreInfo { +/// A Cloud Spanner database. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.Database) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Database { // message fields - pub source_type: RestoreSourceType, - // message oneof groups - pub source_info: ::std::option::Option, + /// Required. The name of the database. Values are of the form + /// `projects//instances//databases/`, + /// where `` is as specified in the `CREATE DATABASE` + /// statement. This name can be passed to other API methods to + /// identify the database. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.Database.name) + pub name: ::std::string::String, + /// Output only. The current database state. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.Database.state) + pub state: ::protobuf::EnumOrUnknown, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.Database.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreInfo { - fn default() -> &'a RestoreInfo { - ::default_instance() +impl<'a> ::std::default::Default for &'a Database { + fn default() -> &'a Database { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreInfo_oneof_source_info { - backup_info(super::backup::BackupInfo), -} - -impl RestoreInfo { - pub fn new() -> RestoreInfo { +impl Database { + pub fn new() -> Database { ::std::default::Default::default() } - // .google.spanner.admin.database.v1.RestoreSourceType source_type = 1; - - - pub fn get_source_type(&self) -> RestoreSourceType { - self.source_type - } - pub fn clear_source_type(&mut self) { - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_source_type(&mut self, v: RestoreSourceType) { - self.source_type = v; - } - - // .google.spanner.admin.database.v1.BackupInfo backup_info = 2; - - - pub fn get_backup_info(&self) -> &super::backup::BackupInfo { - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_backup_info(&mut self) { - self.source_info = ::std::option::Option::None; - } - - pub fn has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_backup_info(&mut self, v: super::backup::BackupInfo) { - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(v)) - } - - // Mutable pointer to the field. - pub fn mut_backup_info(&mut self) -> &mut super::backup::BackupInfo { - if let ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(_)) = self.source_info { - } else { - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(super::backup::BackupInfo::new())); - } - match self.source_info { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_backup_info(&mut self) -> super::backup::BackupInfo { - if self.has_backup_info() { - match self.source_info.take() { - ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(v)) => v, - _ => panic!(), - } - } else { - super::backup::BackupInfo::new() - } + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Database| { &m.name }, + |m: &mut Database| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "state", + |m: &Database| { &m.state }, + |m: &mut Database| { &mut m.state }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Database", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RestoreInfo { +impl ::protobuf::Message for Database { + const NAME: &'static str = "Database"; + fn is_initialized(&self) -> bool { - if let Some(RestoreInfo_oneof_source_info::backup_info(ref v)) = self.source_info { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.source_type, 1, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source_info = ::std::option::Option::Some(RestoreInfo_oneof_source_info::backup_info(is.read_message()?)); + 16 => { + self.state = is.read_enum_or_unknown()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -148,3924 +103,229 @@ impl ::protobuf::Message for RestoreInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.source_type != RestoreSourceType::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.source_type); + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreInfo_oneof_source_info::backup_info(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + if self.state != ::protobuf::EnumOrUnknown::new(database::State::STATE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.state.value()); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.source_type != RestoreSourceType::TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.source_type))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreInfo_oneof_source_info::backup_info(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + if self.state != ::protobuf::EnumOrUnknown::new(database::State::STATE_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.state))?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RestoreInfo { - RestoreInfo::new() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "source_type", - |m: &RestoreInfo| { &m.source_type }, - |m: &mut RestoreInfo| { &mut m.source_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::backup::BackupInfo>( - "backup_info", - RestoreInfo::has_backup_info, - RestoreInfo::get_backup_info, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreInfo", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static RestoreInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreInfo::new) + fn new() -> Database { + Database::new() } -} -impl ::protobuf::Clear for RestoreInfo { fn clear(&mut self) { - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; - self.source_info = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RestoreInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RestoreInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Database { - // message fields - pub name: ::std::string::String, - pub state: Database_State, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub restore_info: ::protobuf::SingularPtrField, - pub encryption_config: ::protobuf::SingularPtrField, - pub encryption_info: ::protobuf::RepeatedField, - pub version_retention_period: ::std::string::String, - pub earliest_version_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub default_leader: ::std::string::String, - pub database_dialect: super::common::DatabaseDialect, - pub enable_drop_protection: bool, - pub reconciling: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Database { - fn default() -> &'a Database { - ::default_instance() - } -} - -impl Database { - pub fn new() -> Database { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { self.name.clear(); + self.state = ::protobuf::EnumOrUnknown::new(database::State::STATE_UNSPECIFIED); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.Database.State state = 2; - - - pub fn get_state(&self) -> Database_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Database_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Database_State) { - self.state = v; - } - - // .google.protobuf.Timestamp create_time = 3; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.spanner.admin.database.v1.RestoreInfo restore_info = 4; - - - pub fn get_restore_info(&self) -> &RestoreInfo { - self.restore_info.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_restore_info(&mut self) { - self.restore_info.clear(); - } - - pub fn has_restore_info(&self) -> bool { - self.restore_info.is_some() - } - - // Param is passed by value, moved - pub fn set_restore_info(&mut self, v: RestoreInfo) { - self.restore_info = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_restore_info(&mut self) -> &mut RestoreInfo { - if self.restore_info.is_none() { - self.restore_info.set_default(); - } - self.restore_info.as_mut().unwrap() - } - - // Take field - pub fn take_restore_info(&mut self) -> RestoreInfo { - self.restore_info.take().unwrap_or_else(|| RestoreInfo::new()) - } - - // .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5; - - - pub fn get_encryption_config(&self) -> &super::common::EncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: super::common::EncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut super::common::EncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> super::common::EncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| super::common::EncryptionConfig::new()) - } - - // repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8; - - - pub fn get_encryption_info(&self) -> &[super::common::EncryptionInfo] { - &self.encryption_info - } - pub fn clear_encryption_info(&mut self) { - self.encryption_info.clear(); - } - - // Param is passed by value, moved - pub fn set_encryption_info(&mut self, v: ::protobuf::RepeatedField) { - self.encryption_info = v; - } - - // Mutable pointer to the field. - pub fn mut_encryption_info(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.encryption_info - } - - // Take field - pub fn take_encryption_info(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.encryption_info, ::protobuf::RepeatedField::new()) - } - - // string version_retention_period = 6; - - - pub fn get_version_retention_period(&self) -> &str { - &self.version_retention_period - } - pub fn clear_version_retention_period(&mut self) { - self.version_retention_period.clear(); - } - - // Param is passed by value, moved - pub fn set_version_retention_period(&mut self, v: ::std::string::String) { - self.version_retention_period = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version_retention_period(&mut self) -> &mut ::std::string::String { - &mut self.version_retention_period - } - - // Take field - pub fn take_version_retention_period(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version_retention_period, ::std::string::String::new()) - } - - // .google.protobuf.Timestamp earliest_version_time = 7; - - - pub fn get_earliest_version_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.earliest_version_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_earliest_version_time(&mut self) { - self.earliest_version_time.clear(); - } - - pub fn has_earliest_version_time(&self) -> bool { - self.earliest_version_time.is_some() - } - - // Param is passed by value, moved - pub fn set_earliest_version_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.earliest_version_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_earliest_version_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.earliest_version_time.is_none() { - self.earliest_version_time.set_default(); - } - self.earliest_version_time.as_mut().unwrap() - } - - // Take field - pub fn take_earliest_version_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.earliest_version_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string default_leader = 9; - - - pub fn get_default_leader(&self) -> &str { - &self.default_leader - } - pub fn clear_default_leader(&mut self) { - self.default_leader.clear(); - } - - // Param is passed by value, moved - pub fn set_default_leader(&mut self, v: ::std::string::String) { - self.default_leader = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_default_leader(&mut self) -> &mut ::std::string::String { - &mut self.default_leader - } - - // Take field - pub fn take_default_leader(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.default_leader, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10; - - - pub fn get_database_dialect(&self) -> super::common::DatabaseDialect { - self.database_dialect - } - pub fn clear_database_dialect(&mut self) { - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_database_dialect(&mut self, v: super::common::DatabaseDialect) { - self.database_dialect = v; - } - - // bool enable_drop_protection = 11; - - - pub fn get_enable_drop_protection(&self) -> bool { - self.enable_drop_protection - } - pub fn clear_enable_drop_protection(&mut self) { - self.enable_drop_protection = false; - } - - // Param is passed by value, moved - pub fn set_enable_drop_protection(&mut self, v: bool) { - self.enable_drop_protection = v; - } - - // bool reconciling = 12; - - - pub fn get_reconciling(&self) -> bool { - self.reconciling - } - pub fn clear_reconciling(&mut self) { - self.reconciling = false; - } - - // Param is passed by value, moved - pub fn set_reconciling(&mut self, v: bool) { - self.reconciling = v; - } -} - -impl ::protobuf::Message for Database { - fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.restore_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.encryption_info { - if !v.is_initialized() { - return false; - } - }; - for v in &self.earliest_version_time { - if !v.is_initialized() { - return false; - } + fn default_instance() -> &'static Database { + static instance: Database = Database { + name: ::std::string::String::new(), + state: ::protobuf::EnumOrUnknown::from_i32(0), + special_fields: ::protobuf::SpecialFields::new(), }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 2, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.restore_info)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; - }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.encryption_info)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version_retention_period)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.earliest_version_time)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.default_leader)?; - }, - 10 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.database_dialect, 10, &mut self.unknown_fields)? - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.enable_drop_protection = tmp; - }, - 12 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reconciling = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.state != Database_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.state); - } - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.restore_info.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.encryption_info { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.version_retention_period.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.version_retention_period); - } - if let Some(ref v) = self.earliest_version_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.default_leader.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.default_leader); - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(10, self.database_dialect); - } - if self.enable_drop_protection != false { - my_size += 2; - } - if self.reconciling != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.state != Database_State::STATE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.state))?; - } - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.restore_info.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.encryption_info { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.version_retention_period.is_empty() { - os.write_string(6, &self.version_retention_period)?; - } - if let Some(ref v) = self.earliest_version_time.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.default_leader.is_empty() { - os.write_string(9, &self.default_leader)?; - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - os.write_enum(10, ::protobuf::ProtobufEnum::value(&self.database_dialect))?; - } - if self.enable_drop_protection != false { - os.write_bool(11, self.enable_drop_protection)?; - } - if self.reconciling != false { - os.write_bool(12, self.reconciling)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Database { - Database::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Database| { &m.name }, - |m: &mut Database| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Database| { &m.state }, - |m: &mut Database| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Database| { &m.create_time }, - |m: &mut Database| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "restore_info", - |m: &Database| { &m.restore_info }, - |m: &mut Database| { &mut m.restore_info }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &Database| { &m.encryption_config }, - |m: &mut Database| { &mut m.encryption_config }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_info", - |m: &Database| { &m.encryption_info }, - |m: &mut Database| { &mut m.encryption_info }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version_retention_period", - |m: &Database| { &m.version_retention_period }, - |m: &mut Database| { &mut m.version_retention_period }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "earliest_version_time", - |m: &Database| { &m.earliest_version_time }, - |m: &mut Database| { &mut m.earliest_version_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "default_leader", - |m: &Database| { &m.default_leader }, - |m: &mut Database| { &mut m.default_leader }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "database_dialect", - |m: &Database| { &m.database_dialect }, - |m: &mut Database| { &mut m.database_dialect }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "enable_drop_protection", - |m: &Database| { &m.enable_drop_protection }, - |m: &mut Database| { &mut m.enable_drop_protection }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reconciling", - |m: &Database| { &m.reconciling }, - |m: &mut Database| { &mut m.reconciling }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Database", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Database { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Database::new) - } -} - -impl ::protobuf::Clear for Database { - fn clear(&mut self) { - self.name.clear(); - self.state = Database_State::STATE_UNSPECIFIED; - self.create_time.clear(); - self.restore_info.clear(); - self.encryption_config.clear(); - self.encryption_info.clear(); - self.version_retention_period.clear(); - self.earliest_version_time.clear(); - self.default_leader.clear(); - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - self.enable_drop_protection = false; - self.reconciling = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Database { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Database { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Database_State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2, - READY_OPTIMIZING = 3, -} - -impl ::protobuf::ProtobufEnum for Database_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Database_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Database_State::CREATING), - 2 => ::std::option::Option::Some(Database_State::READY), - 3 => ::std::option::Option::Some(Database_State::READY_OPTIMIZING), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Database_State] = &[ - Database_State::STATE_UNSPECIFIED, - Database_State::CREATING, - Database_State::READY, - Database_State::READY_OPTIMIZING, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Database.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Database_State { -} - -impl ::std::default::Default for Database_State { - fn default() -> Self { - Database_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Database_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabasesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListDatabasesRequest { - fn default() -> &'a ListDatabasesRequest { - ::default_instance() - } -} - -impl ListDatabasesRequest { - pub fn new() -> ListDatabasesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListDatabasesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListDatabasesRequest { - ListDatabasesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListDatabasesRequest| { &m.parent }, - |m: &mut ListDatabasesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListDatabasesRequest| { &m.page_size }, - |m: &mut ListDatabasesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListDatabasesRequest| { &m.page_token }, - |m: &mut ListDatabasesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabasesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListDatabasesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabasesRequest::new) - } -} - -impl ::protobuf::Clear for ListDatabasesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListDatabasesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListDatabasesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabasesResponse { - // message fields - pub databases: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListDatabasesResponse { - fn default() -> &'a ListDatabasesResponse { - ::default_instance() - } -} - -impl ListDatabasesResponse { - pub fn new() -> ListDatabasesResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.admin.database.v1.Database databases = 1; - - - pub fn get_databases(&self) -> &[Database] { - &self.databases - } - pub fn clear_databases(&mut self) { - self.databases.clear(); - } - - // Param is passed by value, moved - pub fn set_databases(&mut self, v: ::protobuf::RepeatedField) { - self.databases = v; - } - - // Mutable pointer to the field. - pub fn mut_databases(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.databases - } - - // Take field - pub fn take_databases(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.databases, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListDatabasesResponse { - fn is_initialized(&self) -> bool { - for v in &self.databases { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.databases)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.databases { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.databases { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListDatabasesResponse { - ListDatabasesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "databases", - |m: &ListDatabasesResponse| { &m.databases }, - |m: &mut ListDatabasesResponse| { &mut m.databases }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListDatabasesResponse| { &m.next_page_token }, - |m: &mut ListDatabasesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabasesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListDatabasesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabasesResponse::new) - } -} - -impl ::protobuf::Clear for ListDatabasesResponse { - fn clear(&mut self) { - self.databases.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListDatabasesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListDatabasesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateDatabaseRequest { - // message fields - pub parent: ::std::string::String, - pub create_statement: ::std::string::String, - pub extra_statements: ::protobuf::RepeatedField<::std::string::String>, - pub encryption_config: ::protobuf::SingularPtrField, - pub database_dialect: super::common::DatabaseDialect, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateDatabaseRequest { - fn default() -> &'a CreateDatabaseRequest { - ::default_instance() - } -} - -impl CreateDatabaseRequest { - pub fn new() -> CreateDatabaseRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string create_statement = 2; - - - pub fn get_create_statement(&self) -> &str { - &self.create_statement - } - pub fn clear_create_statement(&mut self) { - self.create_statement.clear(); - } - - // Param is passed by value, moved - pub fn set_create_statement(&mut self, v: ::std::string::String) { - self.create_statement = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_statement(&mut self) -> &mut ::std::string::String { - &mut self.create_statement - } - - // Take field - pub fn take_create_statement(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.create_statement, ::std::string::String::new()) - } - - // repeated string extra_statements = 3; - - - pub fn get_extra_statements(&self) -> &[::std::string::String] { - &self.extra_statements - } - pub fn clear_extra_statements(&mut self) { - self.extra_statements.clear(); - } - - // Param is passed by value, moved - pub fn set_extra_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.extra_statements = v; - } - - // Mutable pointer to the field. - pub fn mut_extra_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.extra_statements - } - - // Take field - pub fn take_extra_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.extra_statements, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 4; - - - pub fn get_encryption_config(&self) -> &super::common::EncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: super::common::EncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut super::common::EncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> super::common::EncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| super::common::EncryptionConfig::new()) - } - - // .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 5; - - - pub fn get_database_dialect(&self) -> super::common::DatabaseDialect { - self.database_dialect - } - pub fn clear_database_dialect(&mut self) { - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_database_dialect(&mut self, v: super::common::DatabaseDialect) { - self.database_dialect = v; - } -} - -impl ::protobuf::Message for CreateDatabaseRequest { - fn is_initialized(&self) -> bool { - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.create_statement)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.extra_statements)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.database_dialect, 5, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.create_statement.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.create_statement); - } - for value in &self.extra_statements { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.database_dialect); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.create_statement.is_empty() { - os.write_string(2, &self.create_statement)?; - } - for v in &self.extra_statements { - os.write_string(3, &v)?; - }; - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.database_dialect != super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.database_dialect))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateDatabaseRequest { - CreateDatabaseRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateDatabaseRequest| { &m.parent }, - |m: &mut CreateDatabaseRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "create_statement", - |m: &CreateDatabaseRequest| { &m.create_statement }, - |m: &mut CreateDatabaseRequest| { &mut m.create_statement }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "extra_statements", - |m: &CreateDatabaseRequest| { &m.extra_statements }, - |m: &mut CreateDatabaseRequest| { &mut m.extra_statements }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &CreateDatabaseRequest| { &m.encryption_config }, - |m: &mut CreateDatabaseRequest| { &mut m.encryption_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "database_dialect", - |m: &CreateDatabaseRequest| { &m.database_dialect }, - |m: &mut CreateDatabaseRequest| { &mut m.database_dialect }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateDatabaseRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateDatabaseRequest::new) - } -} - -impl ::protobuf::Clear for CreateDatabaseRequest { - fn clear(&mut self) { - self.parent.clear(); - self.create_statement.clear(); - self.extra_statements.clear(); - self.encryption_config.clear(); - self.database_dialect = super::common::DatabaseDialect::DATABASE_DIALECT_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateDatabaseRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateDatabaseMetadata { - // message fields - pub database: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateDatabaseMetadata { - fn default() -> &'a CreateDatabaseMetadata { - ::default_instance() - } -} - -impl CreateDatabaseMetadata { - pub fn new() -> CreateDatabaseMetadata { - ::std::default::Default::default() - } - - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CreateDatabaseMetadata { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.database); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateDatabaseMetadata { - CreateDatabaseMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &CreateDatabaseMetadata| { &m.database }, - |m: &mut CreateDatabaseMetadata| { &mut m.database }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateDatabaseMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateDatabaseMetadata::new) - } -} - -impl ::protobuf::Clear for CreateDatabaseMetadata { - fn clear(&mut self) { - self.database.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateDatabaseMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateDatabaseMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetDatabaseRequest { - fn default() -> &'a GetDatabaseRequest { - ::default_instance() - } -} - -impl GetDatabaseRequest { - pub fn new() -> GetDatabaseRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetDatabaseRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetDatabaseRequest { - GetDatabaseRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetDatabaseRequest| { &m.name }, - |m: &mut GetDatabaseRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseRequest::new) - } -} - -impl ::protobuf::Clear for GetDatabaseRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetDatabaseRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseRequest { - // message fields - pub database: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateDatabaseRequest { - fn default() -> &'a UpdateDatabaseRequest { - ::default_instance() - } -} - -impl UpdateDatabaseRequest { - pub fn new() -> UpdateDatabaseRequest { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.Database database = 1; - - - pub fn get_database(&self) -> &Database { - self.database.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - pub fn has_database(&self) -> bool { - self.database.is_some() - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: Database) { - self.database = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut Database { - if self.database.is_none() { - self.database.set_default(); - } - self.database.as_mut().unwrap() - } - - // Take field - pub fn take_database(&mut self) -> Database { - self.database.take().unwrap_or_else(|| Database::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for UpdateDatabaseRequest { - fn is_initialized(&self) -> bool { - for v in &self.database { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.database)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.database.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.database.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateDatabaseRequest { - UpdateDatabaseRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "database", - |m: &UpdateDatabaseRequest| { &m.database }, - |m: &mut UpdateDatabaseRequest| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateDatabaseRequest| { &m.update_mask }, - |m: &mut UpdateDatabaseRequest| { &mut m.update_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseRequest::new) - } -} - -impl ::protobuf::Clear for UpdateDatabaseRequest { - fn clear(&mut self) { - self.database.clear(); - self.update_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateDatabaseRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseMetadata { - // message fields - pub request: ::protobuf::SingularPtrField, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateDatabaseMetadata { - fn default() -> &'a UpdateDatabaseMetadata { - ::default_instance() - } -} - -impl UpdateDatabaseMetadata { - pub fn new() -> UpdateDatabaseMetadata { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.UpdateDatabaseRequest request = 1; - - - pub fn get_request(&self) -> &UpdateDatabaseRequest { - self.request.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request(&mut self) { - self.request.clear(); - } - - pub fn has_request(&self) -> bool { - self.request.is_some() - } - - // Param is passed by value, moved - pub fn set_request(&mut self, v: UpdateDatabaseRequest) { - self.request = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request(&mut self) -> &mut UpdateDatabaseRequest { - if self.request.is_none() { - self.request.set_default(); - } - self.request.as_mut().unwrap() - } - - // Take field - pub fn take_request(&mut self) -> UpdateDatabaseRequest { - self.request.take().unwrap_or_else(|| UpdateDatabaseRequest::new()) - } - - // .google.spanner.admin.database.v1.OperationProgress progress = 2; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) - } - - // .google.protobuf.Timestamp cancel_time = 3; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); - } - - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() - } - - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() - } - - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for UpdateDatabaseMetadata { - fn is_initialized(&self) -> bool { - for v in &self.request { - if !v.is_initialized() { - return false; - } - }; - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.request.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cancel_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.request.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateDatabaseMetadata { - UpdateDatabaseMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request", - |m: &UpdateDatabaseMetadata| { &m.request }, - |m: &mut UpdateDatabaseMetadata| { &mut m.request }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &UpdateDatabaseMetadata| { &m.progress }, - |m: &mut UpdateDatabaseMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &UpdateDatabaseMetadata| { &m.cancel_time }, - |m: &mut UpdateDatabaseMetadata| { &mut m.cancel_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseMetadata::new) - } -} - -impl ::protobuf::Clear for UpdateDatabaseMetadata { - fn clear(&mut self) { - self.request.clear(); - self.progress.clear(); - self.cancel_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateDatabaseMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseDdlRequest { - // message fields - pub database: ::std::string::String, - pub statements: ::protobuf::RepeatedField<::std::string::String>, - pub operation_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlRequest { - fn default() -> &'a UpdateDatabaseDdlRequest { - ::default_instance() - } -} - -impl UpdateDatabaseDdlRequest { - pub fn new() -> UpdateDatabaseDdlRequest { - ::std::default::Default::default() - } - - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // repeated string statements = 2; - - - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements - } - pub fn clear_statements(&mut self) { - self.statements.clear(); - } - - // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; - } - - // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements - } - - // Take field - pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) - } - - // string operation_id = 3; - - - pub fn get_operation_id(&self) -> &str { - &self.operation_id - } - pub fn clear_operation_id(&mut self) { - self.operation_id.clear(); - } - - // Param is passed by value, moved - pub fn set_operation_id(&mut self, v: ::std::string::String) { - self.operation_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_operation_id(&mut self) -> &mut ::std::string::String { - &mut self.operation_id - } - - // Take field - pub fn take_operation_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.operation_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for UpdateDatabaseDdlRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.statements)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.operation_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.database); - } - for value in &self.statements { - my_size += ::protobuf::rt::string_size(2, &value); - }; - if !self.operation_id.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.operation_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; - } - for v in &self.statements { - os.write_string(2, &v)?; - }; - if !self.operation_id.is_empty() { - os.write_string(3, &self.operation_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateDatabaseDdlRequest { - UpdateDatabaseDdlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &UpdateDatabaseDdlRequest| { &m.database }, - |m: &mut UpdateDatabaseDdlRequest| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "statements", - |m: &UpdateDatabaseDdlRequest| { &m.statements }, - |m: &mut UpdateDatabaseDdlRequest| { &mut m.statements }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "operation_id", - |m: &UpdateDatabaseDdlRequest| { &m.operation_id }, - |m: &mut UpdateDatabaseDdlRequest| { &mut m.operation_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseDdlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateDatabaseDdlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseDdlRequest::new) - } -} - -impl ::protobuf::Clear for UpdateDatabaseDdlRequest { - fn clear(&mut self) { - self.database.clear(); - self.statements.clear(); - self.operation_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateDatabaseDdlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DdlStatementActionInfo { - // message fields - pub action: ::std::string::String, - pub entity_type: ::std::string::String, - pub entity_names: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DdlStatementActionInfo { - fn default() -> &'a DdlStatementActionInfo { - ::default_instance() - } -} - -impl DdlStatementActionInfo { - pub fn new() -> DdlStatementActionInfo { - ::std::default::Default::default() - } - - // string action = 1; - - - pub fn get_action(&self) -> &str { - &self.action - } - pub fn clear_action(&mut self) { - self.action.clear(); - } - - // Param is passed by value, moved - pub fn set_action(&mut self, v: ::std::string::String) { - self.action = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_action(&mut self) -> &mut ::std::string::String { - &mut self.action - } - - // Take field - pub fn take_action(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.action, ::std::string::String::new()) - } - - // string entity_type = 2; - - - pub fn get_entity_type(&self) -> &str { - &self.entity_type - } - pub fn clear_entity_type(&mut self) { - self.entity_type.clear(); - } - - // Param is passed by value, moved - pub fn set_entity_type(&mut self, v: ::std::string::String) { - self.entity_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_entity_type(&mut self) -> &mut ::std::string::String { - &mut self.entity_type - } - - // Take field - pub fn take_entity_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.entity_type, ::std::string::String::new()) - } - - // repeated string entity_names = 3; - - - pub fn get_entity_names(&self) -> &[::std::string::String] { - &self.entity_names - } - pub fn clear_entity_names(&mut self) { - self.entity_names.clear(); - } - - // Param is passed by value, moved - pub fn set_entity_names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.entity_names = v; - } - - // Mutable pointer to the field. - pub fn mut_entity_names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.entity_names - } - - // Take field - pub fn take_entity_names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.entity_names, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for DdlStatementActionInfo { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.action)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.entity_type)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.entity_names)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.action.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.action); - } - if !self.entity_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.entity_type); - } - for value in &self.entity_names { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.action.is_empty() { - os.write_string(1, &self.action)?; - } - if !self.entity_type.is_empty() { - os.write_string(2, &self.entity_type)?; - } - for v in &self.entity_names { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DdlStatementActionInfo { - DdlStatementActionInfo::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "action", - |m: &DdlStatementActionInfo| { &m.action }, - |m: &mut DdlStatementActionInfo| { &mut m.action }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity_type", - |m: &DdlStatementActionInfo| { &m.entity_type }, - |m: &mut DdlStatementActionInfo| { &mut m.entity_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "entity_names", - |m: &DdlStatementActionInfo| { &m.entity_names }, - |m: &mut DdlStatementActionInfo| { &mut m.entity_names }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DdlStatementActionInfo", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DdlStatementActionInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DdlStatementActionInfo::new) - } -} - -impl ::protobuf::Clear for DdlStatementActionInfo { - fn clear(&mut self) { - self.action.clear(); - self.entity_type.clear(); - self.entity_names.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DdlStatementActionInfo { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DdlStatementActionInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateDatabaseDdlMetadata { - // message fields - pub database: ::std::string::String, - pub statements: ::protobuf::RepeatedField<::std::string::String>, - pub commit_timestamps: ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp>, - pub throttled: bool, - pub progress: ::protobuf::RepeatedField, - pub actions: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlMetadata { - fn default() -> &'a UpdateDatabaseDdlMetadata { - ::default_instance() - } -} - -impl UpdateDatabaseDdlMetadata { - pub fn new() -> UpdateDatabaseDdlMetadata { - ::std::default::Default::default() - } - - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // repeated string statements = 2; - - - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements - } - pub fn clear_statements(&mut self) { - self.statements.clear(); - } - - // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; - } - - // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements - } - - // Take field - pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) - } - - // repeated .google.protobuf.Timestamp commit_timestamps = 3; - - - pub fn get_commit_timestamps(&self) -> &[::protobuf::well_known_types::Timestamp] { - &self.commit_timestamps - } - pub fn clear_commit_timestamps(&mut self) { - self.commit_timestamps.clear(); - } - - // Param is passed by value, moved - pub fn set_commit_timestamps(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp>) { - self.commit_timestamps = v; - } - - // Mutable pointer to the field. - pub fn mut_commit_timestamps(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { - &mut self.commit_timestamps - } - - // Take field - pub fn take_commit_timestamps(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Timestamp> { - ::std::mem::replace(&mut self.commit_timestamps, ::protobuf::RepeatedField::new()) - } - - // bool throttled = 4; - - - pub fn get_throttled(&self) -> bool { - self.throttled - } - pub fn clear_throttled(&mut self) { - self.throttled = false; - } - - // Param is passed by value, moved - pub fn set_throttled(&mut self, v: bool) { - self.throttled = v; - } - - // repeated .google.spanner.admin.database.v1.OperationProgress progress = 5; - - - pub fn get_progress(&self) -> &[super::common::OperationProgress] { - &self.progress - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: ::protobuf::RepeatedField) { - self.progress = v; - } - - // Mutable pointer to the field. - pub fn mut_progress(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.progress - } - - // Take field - pub fn take_progress(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.progress, ::protobuf::RepeatedField::new()) - } - - // repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6; - - - pub fn get_actions(&self) -> &[DdlStatementActionInfo] { - &self.actions - } - pub fn clear_actions(&mut self) { - self.actions.clear(); - } - - // Param is passed by value, moved - pub fn set_actions(&mut self, v: ::protobuf::RepeatedField) { - self.actions = v; - } - - // Mutable pointer to the field. - pub fn mut_actions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.actions - } - - // Take field - pub fn take_actions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.actions, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for UpdateDatabaseDdlMetadata { - fn is_initialized(&self) -> bool { - for v in &self.commit_timestamps { - if !v.is_initialized() { - return false; - } - }; - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.actions { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.statements)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.commit_timestamps)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.throttled = tmp; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.progress)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.actions)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.database); - } - for value in &self.statements { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.commit_timestamps { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.throttled != false { - my_size += 2; - } - for value in &self.progress { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.actions { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; - } - for v in &self.statements { - os.write_string(2, &v)?; - }; - for v in &self.commit_timestamps { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.throttled != false { - os.write_bool(4, self.throttled)?; - } - for v in &self.progress { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.actions { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateDatabaseDdlMetadata { - UpdateDatabaseDdlMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &UpdateDatabaseDdlMetadata| { &m.database }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "statements", - |m: &UpdateDatabaseDdlMetadata| { &m.statements }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.statements }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "commit_timestamps", - |m: &UpdateDatabaseDdlMetadata| { &m.commit_timestamps }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.commit_timestamps }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "throttled", - |m: &UpdateDatabaseDdlMetadata| { &m.throttled }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.throttled }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &UpdateDatabaseDdlMetadata| { &m.progress }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "actions", - |m: &UpdateDatabaseDdlMetadata| { &m.actions }, - |m: &mut UpdateDatabaseDdlMetadata| { &mut m.actions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateDatabaseDdlMetadata", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateDatabaseDdlMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateDatabaseDdlMetadata::new) - } -} - -impl ::protobuf::Clear for UpdateDatabaseDdlMetadata { - fn clear(&mut self) { - self.database.clear(); - self.statements.clear(); - self.commit_timestamps.clear(); - self.throttled = false; - self.progress.clear(); - self.actions.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateDatabaseDdlMetadata { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DropDatabaseRequest { - // message fields - pub database: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DropDatabaseRequest { - fn default() -> &'a DropDatabaseRequest { - ::default_instance() - } -} - -impl DropDatabaseRequest { - pub fn new() -> DropDatabaseRequest { - ::std::default::Default::default() - } - - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for DropDatabaseRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.database); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DropDatabaseRequest { - DropDatabaseRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &DropDatabaseRequest| { &m.database }, - |m: &mut DropDatabaseRequest| { &mut m.database }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DropDatabaseRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DropDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DropDatabaseRequest::new) - } -} - -impl ::protobuf::Clear for DropDatabaseRequest { - fn clear(&mut self) { - self.database.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DropDatabaseRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DropDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseDdlRequest { - // message fields - pub database: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetDatabaseDdlRequest { - fn default() -> &'a GetDatabaseDdlRequest { - ::default_instance() - } -} - -impl GetDatabaseDdlRequest { - pub fn new() -> GetDatabaseDdlRequest { - ::std::default::Default::default() - } - - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetDatabaseDdlRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.database.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.database); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.database.is_empty() { - os.write_string(1, &self.database)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetDatabaseDdlRequest { - GetDatabaseDdlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &GetDatabaseDdlRequest| { &m.database }, - |m: &mut GetDatabaseDdlRequest| { &mut m.database }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseDdlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetDatabaseDdlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlRequest::new) - } -} - -impl ::protobuf::Clear for GetDatabaseDdlRequest { - fn clear(&mut self) { - self.database.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetDatabaseDdlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetDatabaseDdlResponse { - // message fields - pub statements: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetDatabaseDdlResponse { - fn default() -> &'a GetDatabaseDdlResponse { - ::default_instance() - } -} - -impl GetDatabaseDdlResponse { - pub fn new() -> GetDatabaseDdlResponse { - ::std::default::Default::default() - } - - // repeated string statements = 1; - - - pub fn get_statements(&self) -> &[::std::string::String] { - &self.statements - } - pub fn clear_statements(&mut self) { - self.statements.clear(); - } - - // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.statements = v; - } - - // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.statements - } - - // Take field - pub fn take_statements(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for GetDatabaseDdlResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.statements)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.statements { - my_size += ::protobuf::rt::string_size(1, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.statements { - os.write_string(1, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetDatabaseDdlResponse { - GetDatabaseDdlResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "statements", - |m: &GetDatabaseDdlResponse| { &m.statements }, - |m: &mut GetDatabaseDdlResponse| { &mut m.statements }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetDatabaseDdlResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetDatabaseDdlResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetDatabaseDdlResponse::new) - } -} - -impl ::protobuf::Clear for GetDatabaseDdlResponse { - fn clear(&mut self) { - self.statements.clear(); - self.unknown_fields.clear(); + &instance } } -impl ::std::fmt::Debug for GetDatabaseDdlResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseOperationsRequest { - // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListDatabaseOperationsRequest { - fn default() -> &'a ListDatabaseOperationsRequest { - ::default_instance() - } -} - -impl ListDatabaseOperationsRequest { - pub fn new() -> ListDatabaseOperationsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) +impl ::protobuf::MessageFull for Database { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Database").unwrap()).clone() } +} - // string filter = 2; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); +impl ::std::fmt::Display for Database { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } +impl ::protobuf::reflect::ProtobufValue for Database { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter +/// Nested message and enums of message `Database` +pub mod database { + /// Indicates the current state of the database. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.spanner.admin.database.v1.Database.State) + pub enum State { + // @@protoc_insertion_point(enum_value:google.spanner.admin.database.v1.Database.State.STATE_UNSPECIFIED) + STATE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.spanner.admin.database.v1.Database.State.CREATING) + CREATING = 1, + // @@protoc_insertion_point(enum_value:google.spanner.admin.database.v1.Database.State.READY) + READY = 2, } - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } + impl ::protobuf::Enum for State { + const NAME: &'static str = "State"; - // int32 page_size = 3; + fn value(&self) -> i32 { + *self as i32 + } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(State::STATE_UNSPECIFIED), + 1 => ::std::option::Option::Some(State::CREATING), + 2 => ::std::option::Option::Some(State::READY), + _ => ::std::option::Option::None + } + } - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_UNSPECIFIED" => ::std::option::Option::Some(State::STATE_UNSPECIFIED), + "CREATING" => ::std::option::Option::Some(State::CREATING), + "READY" => ::std::option::Option::Some(State::READY), + _ => ::std::option::Option::None + } + } - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; + const VALUES: &'static [State] = &[ + State::STATE_UNSPECIFIED, + State::CREATING, + State::READY, + ]; } - // string page_token = 4; + impl ::protobuf::EnumFull for State { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Database.State").unwrap()).clone() + } + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } - pub fn get_page_token(&self) -> &str { - &self.page_token + impl ::std::default::Default for State { + fn default() -> Self { + State::STATE_UNSPECIFIED + } } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); + + impl State { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Database.State") + } } +} + +/// The request for +/// [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.ListDatabasesRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListDatabasesRequest { + // message fields + /// Required. The instance whose databases should be listed. + /// Values are of the form `projects//instances/`. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.ListDatabasesRequest.parent) + pub parent: ::std::string::String, + /// Number of databases to be returned in the response. If 0 or less, + /// defaults to the server's maximum allowed page size. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.ListDatabasesRequest.page_size) + pub page_size: i32, + /// 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]. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.ListDatabasesRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.ListDatabasesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; +impl<'a> ::std::default::Default for &'a ListDatabasesRequest { + fn default() -> &'a ListDatabasesRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token +impl ListDatabasesRequest { + pub fn new() -> ListDatabasesRequest { + ::std::default::Default::default() } - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListDatabasesRequest| { &m.parent }, + |m: &mut ListDatabasesRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListDatabasesRequest| { &m.page_size }, + |m: &mut ListDatabasesRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListDatabasesRequest| { &m.page_token }, + |m: &mut ListDatabasesRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListDatabasesRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListDatabaseOperationsRequest { +impl ::protobuf::Message for ListDatabasesRequest { + const NAME: &'static str = "ListDatabasesRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 24 => { + self.page_size = is.read_int32()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 34 => { + self.page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4074,227 +334,152 @@ impl ::protobuf::Message for ListDatabaseOperationsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filter); - } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } - if !self.filter.is_empty() { - os.write_string(2, &self.filter)?; - } if self.page_size != 0 { os.write_int32(3, self.page_size)?; } if !self.page_token.is_empty() { os.write_string(4, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListDatabaseOperationsRequest { - ListDatabaseOperationsRequest::new() + fn new() -> ListDatabasesRequest { + ListDatabasesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListDatabaseOperationsRequest| { &m.parent }, - |m: &mut ListDatabaseOperationsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListDatabaseOperationsRequest| { &m.filter }, - |m: &mut ListDatabaseOperationsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListDatabaseOperationsRequest| { &m.page_size }, - |m: &mut ListDatabaseOperationsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListDatabaseOperationsRequest| { &m.page_token }, - |m: &mut ListDatabaseOperationsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseOperationsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListDatabaseOperationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseOperationsRequest::new) + fn default_instance() -> &'static ListDatabasesRequest { + static instance: ListDatabasesRequest = ListDatabasesRequest { + parent: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListDatabaseOperationsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListDatabasesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListDatabasesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListDatabaseOperationsRequest { +impl ::std::fmt::Display for ListDatabasesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListDatabaseOperationsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListDatabasesRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseOperationsResponse { +/// The response for +/// [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.ListDatabasesResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListDatabasesResponse { // message fields - pub operations: ::protobuf::RepeatedField, + /// Databases that matched the request. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.ListDatabasesResponse.databases) + pub databases: ::std::vec::Vec, + /// `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. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.ListDatabasesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListDatabaseOperationsResponse { - fn default() -> &'a ListDatabaseOperationsResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListDatabasesResponse { + fn default() -> &'a ListDatabasesResponse { + ::default_instance() } } -impl ListDatabaseOperationsResponse { - pub fn new() -> ListDatabaseOperationsResponse { +impl ListDatabasesResponse { + pub fn new() -> ListDatabasesResponse { ::std::default::Default::default() } - // repeated .google.longrunning.Operation operations = 1; - - - pub fn get_operations(&self) -> &[super::operations::Operation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "databases", + |m: &ListDatabasesResponse| { &m.databases }, + |m: &mut ListDatabasesResponse| { &mut m.databases }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListDatabasesResponse| { &m.next_page_token }, + |m: &mut ListDatabasesResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListDatabasesResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListDatabaseOperationsResponse { +impl ::protobuf::Message for ListDatabasesResponse { + const NAME: &'static str = "ListDatabasesResponse"; + fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.databases.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4303,306 +488,162 @@ impl ::protobuf::Message for ListDatabaseOperationsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.operations { + for value in &self.databases { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.operations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.databases { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListDatabaseOperationsResponse { - ListDatabaseOperationsResponse::new() + fn new() -> ListDatabasesResponse { + ListDatabasesResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ListDatabaseOperationsResponse| { &m.operations }, - |m: &mut ListDatabaseOperationsResponse| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListDatabaseOperationsResponse| { &m.next_page_token }, - |m: &mut ListDatabaseOperationsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseOperationsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.databases.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListDatabaseOperationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseOperationsResponse::new) + fn default_instance() -> &'static ListDatabasesResponse { + static instance: ListDatabasesResponse = ListDatabasesResponse { + databases: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListDatabaseOperationsResponse { - fn clear(&mut self) { - self.operations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListDatabasesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListDatabasesResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListDatabaseOperationsResponse { +impl ::std::fmt::Display for ListDatabasesResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListDatabaseOperationsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListDatabasesResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseRequest { +/// The request for +/// [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.CreateDatabaseRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateDatabaseRequest { // message fields + /// Required. The name of the instance that will serve the new database. + /// Values are of the form `projects//instances/`. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.CreateDatabaseRequest.parent) pub parent: ::std::string::String, - pub database_id: ::std::string::String, - pub encryption_config: ::protobuf::SingularPtrField, - // message oneof groups - pub source: ::std::option::Option, + /// Required. A `CREATE DATABASE` statement, which specifies the ID of the + /// new database. The database ID must conform to the regular expression + /// `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. + /// If the database ID is a reserved word or if it contains a hyphen, the + /// database ID must be enclosed in backticks (`` ` ``). + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.CreateDatabaseRequest.create_statement) + pub create_statement: ::std::string::String, + /// An optional list of DDL statements to run inside the newly created + /// database. Statements can create tables, indexes, etc. These + /// statements execute atomically with the creation of the database: + /// if there is an error in any statement, the database is not created. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.CreateDatabaseRequest.extra_statements) + pub extra_statements: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.CreateDatabaseRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreDatabaseRequest { - fn default() -> &'a RestoreDatabaseRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateDatabaseRequest { + fn default() -> &'a CreateDatabaseRequest { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreDatabaseRequest_oneof_source { - backup(::std::string::String), -} - -impl RestoreDatabaseRequest { - pub fn new() -> RestoreDatabaseRequest { +impl CreateDatabaseRequest { + pub fn new() -> CreateDatabaseRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string database_id = 2; - - - pub fn get_database_id(&self) -> &str { - &self.database_id - } - pub fn clear_database_id(&mut self) { - self.database_id.clear(); - } - - // Param is passed by value, moved - pub fn set_database_id(&mut self, v: ::std::string::String) { - self.database_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database_id(&mut self) -> &mut ::std::string::String { - &mut self.database_id - } - - // Take field - pub fn take_database_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database_id, ::std::string::String::new()) - } - - // string backup = 3; - - - pub fn get_backup(&self) -> &str { - match self.source { - ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(ref v)) => v, - _ => "", - } - } - pub fn clear_backup(&mut self) { - self.source = ::std::option::Option::None; - } - - pub fn has_backup(&self) -> bool { - match self.source { - ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_backup(&mut self, v: ::std::string::String) { - self.source = ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(v)) - } - - // Mutable pointer to the field. - pub fn mut_backup(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(_)) = self.source { - } else { - self.source = ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(::std::string::String::new())); - } - match self.source { - ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_backup(&mut self) -> ::std::string::String { - if self.has_backup() { - match self.source.take() { - ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig encryption_config = 4; - - - pub fn get_encryption_config(&self) -> &RestoreDatabaseEncryptionConfig { - self.encryption_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_encryption_config(&mut self) { - self.encryption_config.clear(); - } - - pub fn has_encryption_config(&self) -> bool { - self.encryption_config.is_some() - } - - // Param is passed by value, moved - pub fn set_encryption_config(&mut self, v: RestoreDatabaseEncryptionConfig) { - self.encryption_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_encryption_config(&mut self) -> &mut RestoreDatabaseEncryptionConfig { - if self.encryption_config.is_none() { - self.encryption_config.set_default(); - } - self.encryption_config.as_mut().unwrap() - } - - // Take field - pub fn take_encryption_config(&mut self) -> RestoreDatabaseEncryptionConfig { - self.encryption_config.take().unwrap_or_else(|| RestoreDatabaseEncryptionConfig::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateDatabaseRequest| { &m.parent }, + |m: &mut CreateDatabaseRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "create_statement", + |m: &CreateDatabaseRequest| { &m.create_statement }, + |m: &mut CreateDatabaseRequest| { &mut m.create_statement }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "extra_statements", + |m: &CreateDatabaseRequest| { &m.extra_statements }, + |m: &mut CreateDatabaseRequest| { &mut m.extra_statements }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateDatabaseRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RestoreDatabaseRequest { +impl ::protobuf::Message for CreateDatabaseRequest { + const NAME: &'static str = "CreateDatabaseRequest"; + fn is_initialized(&self) -> bool { - for v in &self.encryption_config { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database_id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source = ::std::option::Option::Some(RestoreDatabaseRequest_oneof_source::backup(is.read_string()?)); + 18 => { + self.create_statement = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.encryption_config)?; + 26 => { + self.extra_statements.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4611,223 +652,139 @@ impl ::protobuf::Message for RestoreDatabaseRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.parent.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.parent); } - if !self.database_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.database_id); - } - if let Some(ref v) = self.encryption_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &RestoreDatabaseRequest_oneof_source::backup(ref v) => { - my_size += ::protobuf::rt::string_size(3, &v); - }, - }; + if !self.create_statement.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.create_statement); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.extra_statements { + my_size += ::protobuf::rt::string_size(3, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.parent.is_empty() { os.write_string(1, &self.parent)?; } - if !self.database_id.is_empty() { - os.write_string(2, &self.database_id)?; - } - if let Some(ref v) = self.encryption_config.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let ::std::option::Option::Some(ref v) = self.source { - match v { - &RestoreDatabaseRequest_oneof_source::backup(ref v) => { - os.write_string(3, v)?; - }, - }; + if !self.create_statement.is_empty() { + os.write_string(2, &self.create_statement)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + for v in &self.extra_statements { + os.write_string(3, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> RestoreDatabaseRequest { - RestoreDatabaseRequest::new() + fn new() -> CreateDatabaseRequest { + CreateDatabaseRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &RestoreDatabaseRequest| { &m.parent }, - |m: &mut RestoreDatabaseRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database_id", - |m: &RestoreDatabaseRequest| { &m.database_id }, - |m: &mut RestoreDatabaseRequest| { &mut m.database_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "backup", - RestoreDatabaseRequest::has_backup, - RestoreDatabaseRequest::get_backup, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "encryption_config", - |m: &RestoreDatabaseRequest| { &m.encryption_config }, - |m: &mut RestoreDatabaseRequest| { &mut m.encryption_config }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.create_statement.clear(); + self.extra_statements.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static RestoreDatabaseRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseRequest::new) + fn default_instance() -> &'static CreateDatabaseRequest { + static instance: CreateDatabaseRequest = CreateDatabaseRequest { + parent: ::std::string::String::new(), + create_statement: ::std::string::String::new(), + extra_statements: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RestoreDatabaseRequest { - fn clear(&mut self) { - self.parent.clear(); - self.database_id.clear(); - self.source = ::std::option::Option::None; - self.encryption_config.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateDatabaseRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDatabaseRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for RestoreDatabaseRequest { +impl ::std::fmt::Display for CreateDatabaseRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CreateDatabaseRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseEncryptionConfig { +/// Metadata type for the operation returned by +/// [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.CreateDatabaseMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateDatabaseMetadata { // message fields - pub encryption_type: RestoreDatabaseEncryptionConfig_EncryptionType, - pub kms_key_name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RestoreDatabaseEncryptionConfig { - fn default() -> &'a RestoreDatabaseEncryptionConfig { - ::default_instance() - } -} - -impl RestoreDatabaseEncryptionConfig { - pub fn new() -> RestoreDatabaseEncryptionConfig { - ::std::default::Default::default() - } - - // .google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.EncryptionType encryption_type = 1; - - - pub fn get_encryption_type(&self) -> RestoreDatabaseEncryptionConfig_EncryptionType { - self.encryption_type - } - pub fn clear_encryption_type(&mut self) { - self.encryption_type = RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_encryption_type(&mut self, v: RestoreDatabaseEncryptionConfig_EncryptionType) { - self.encryption_type = v; - } - - // string kms_key_name = 2; - - - pub fn get_kms_key_name(&self) -> &str { - &self.kms_key_name - } - pub fn clear_kms_key_name(&mut self) { - self.kms_key_name.clear(); - } + /// The database being created. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.CreateDatabaseMetadata.database) + pub database: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.CreateDatabaseMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_kms_key_name(&mut self, v: ::std::string::String) { - self.kms_key_name = v; +impl<'a> ::std::default::Default for &'a CreateDatabaseMetadata { + fn default() -> &'a CreateDatabaseMetadata { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kms_key_name(&mut self) -> &mut ::std::string::String { - &mut self.kms_key_name +impl CreateDatabaseMetadata { + pub fn new() -> CreateDatabaseMetadata { + ::std::default::Default::default() } - // Take field - pub fn take_kms_key_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.kms_key_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &CreateDatabaseMetadata| { &m.database }, + |m: &mut CreateDatabaseMetadata| { &mut m.database }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateDatabaseMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { +impl ::protobuf::Message for CreateDatabaseMetadata { + const NAME: &'static str = "CreateDatabaseMetadata"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.encryption_type, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.kms_key_name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -4836,425 +793,305 @@ impl ::protobuf::Message for RestoreDatabaseEncryptionConfig { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.encryption_type != RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.encryption_type); - } - if !self.kms_key_name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.kms_key_name); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.encryption_type != RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.encryption_type))?; - } - if !self.kms_key_name.is_empty() { - os.write_string(2, &self.kms_key_name)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> RestoreDatabaseEncryptionConfig { - RestoreDatabaseEncryptionConfig::new() + fn new() -> CreateDatabaseMetadata { + CreateDatabaseMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "encryption_type", - |m: &RestoreDatabaseEncryptionConfig| { &m.encryption_type }, - |m: &mut RestoreDatabaseEncryptionConfig| { &mut m.encryption_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "kms_key_name", - |m: &RestoreDatabaseEncryptionConfig| { &m.kms_key_name }, - |m: &mut RestoreDatabaseEncryptionConfig| { &mut m.kms_key_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseEncryptionConfig", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static RestoreDatabaseEncryptionConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseEncryptionConfig::new) + fn default_instance() -> &'static CreateDatabaseMetadata { + static instance: CreateDatabaseMetadata = CreateDatabaseMetadata { + database: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RestoreDatabaseEncryptionConfig { - fn clear(&mut self) { - self.encryption_type = RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED; - self.kms_key_name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateDatabaseMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateDatabaseMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for RestoreDatabaseEncryptionConfig { +impl ::std::fmt::Display for CreateDatabaseMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseEncryptionConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RestoreDatabaseEncryptionConfig_EncryptionType { - ENCRYPTION_TYPE_UNSPECIFIED = 0, - USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1, - GOOGLE_DEFAULT_ENCRYPTION = 2, - CUSTOMER_MANAGED_ENCRYPTION = 3, -} - -impl ::protobuf::ProtobufEnum for RestoreDatabaseEncryptionConfig_EncryptionType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(RestoreDatabaseEncryptionConfig_EncryptionType::USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION), - 2 => ::std::option::Option::Some(RestoreDatabaseEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION), - 3 => ::std::option::Option::Some(RestoreDatabaseEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [RestoreDatabaseEncryptionConfig_EncryptionType] = &[ - RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED, - RestoreDatabaseEncryptionConfig_EncryptionType::USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION, - RestoreDatabaseEncryptionConfig_EncryptionType::GOOGLE_DEFAULT_ENCRYPTION, - RestoreDatabaseEncryptionConfig_EncryptionType::CUSTOMER_MANAGED_ENCRYPTION, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("RestoreDatabaseEncryptionConfig.EncryptionType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for RestoreDatabaseEncryptionConfig_EncryptionType { -} - -impl ::std::default::Default for RestoreDatabaseEncryptionConfig_EncryptionType { - fn default() -> Self { - RestoreDatabaseEncryptionConfig_EncryptionType::ENCRYPTION_TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseEncryptionConfig_EncryptionType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for CreateDatabaseMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RestoreDatabaseMetadata { +/// The request for +/// [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.GetDatabaseRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetDatabaseRequest { // message fields + /// Required. The name of the requested database. Values are of the form + /// `projects//instances//databases/`. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.GetDatabaseRequest.name) pub name: ::std::string::String, - pub source_type: RestoreSourceType, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub optimize_database_operation_name: ::std::string::String, - // message oneof groups - pub source_info: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.GetDatabaseRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RestoreDatabaseMetadata { - fn default() -> &'a RestoreDatabaseMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseRequest { + fn default() -> &'a GetDatabaseRequest { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum RestoreDatabaseMetadata_oneof_source_info { - backup_info(super::backup::BackupInfo), -} - -impl RestoreDatabaseMetadata { - pub fn new() -> RestoreDatabaseMetadata { +impl GetDatabaseRequest { + pub fn new() -> GetDatabaseRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.RestoreSourceType source_type = 2; - - - pub fn get_source_type(&self) -> RestoreSourceType { - self.source_type - } - pub fn clear_source_type(&mut self) { - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_source_type(&mut self, v: RestoreSourceType) { - self.source_type = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetDatabaseRequest| { &m.name }, + |m: &mut GetDatabaseRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetDatabaseRequest", + fields, + oneofs, + ) } +} - // .google.spanner.admin.database.v1.BackupInfo backup_info = 3; - +impl ::protobuf::Message for GetDatabaseRequest { + const NAME: &'static str = "GetDatabaseRequest"; - pub fn get_backup_info(&self) -> &super::backup::BackupInfo { - match self.source_info { - ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_backup_info(&mut self) { - self.source_info = ::std::option::Option::None; + fn is_initialized(&self) -> bool { + true } - pub fn has_backup_info(&self) -> bool { - match self.source_info { - ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(..)) => true, - _ => false, + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_backup_info(&mut self, v: super::backup::BackupInfo) { - self.source_info = ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(v)) - } - - // Mutable pointer to the field. - pub fn mut_backup_info(&mut self) -> &mut super::backup::BackupInfo { - if let ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(_)) = self.source_info { - } else { - self.source_info = ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(super::backup::BackupInfo::new())); - } - match self.source_info { - ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(ref mut v)) => v, - _ => panic!(), + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_backup_info(&mut self) -> super::backup::BackupInfo { - if self.has_backup_info() { - match self.source_info.take() { - ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(v)) => v, - _ => panic!(), - } - } else { - super::backup::BackupInfo::new() + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.spanner.admin.database.v1.OperationProgress progress = 4; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // .google.protobuf.Timestamp cancel_time = 5; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); + fn new() -> GetDatabaseRequest { + GetDatabaseRequest::new() } - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); + fn default_instance() -> &'static GetDatabaseRequest { + static instance: GetDatabaseRequest = GetDatabaseRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() +impl ::protobuf::MessageFull for GetDatabaseRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDatabaseRequest").unwrap()).clone() } +} - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) +impl ::std::fmt::Display for GetDatabaseRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // string optimize_database_operation_name = 6; - - - pub fn get_optimize_database_operation_name(&self) -> &str { - &self.optimize_database_operation_name - } - pub fn clear_optimize_database_operation_name(&mut self) { - self.optimize_database_operation_name.clear(); - } +impl ::protobuf::reflect::ProtobufValue for GetDatabaseRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Enqueues the given DDL statements to be applied, in order but not +/// necessarily all at once, to the database schema at some point (or +/// points) in the future. The server checks that the statements +/// are executable (syntactically valid, name tables that exist, etc.) +/// before enqueueing them, but they may still fail upon +/// later execution (e.g., if a statement from another batch of +/// statements is applied first and it conflicts in some way, or if +/// there is some data-related problem like a `NULL` value in a column to +/// which `NOT NULL` would be added). If a statement fails, all +/// subsequent statements in the batch are automatically cancelled. +/// +/// 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. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateDatabaseDdlRequest { + // message fields + /// Required. The database to update. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database) + pub database: ::std::string::String, + /// Required. DDL statements to be applied to the database. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.statements) + pub statements: ::std::vec::Vec<::std::string::String>, + /// If empty, the new update request is assigned an + /// automatically-generated operation ID. Otherwise, `operation_id` + /// is used to construct the name of the resulting + /// [Operation][google.longrunning.Operation]. + /// + /// 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 + /// [name][google.longrunning.Operation.name] of the resulting + /// [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`. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id) + pub operation_id: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_optimize_database_operation_name(&mut self, v: ::std::string::String) { - self.optimize_database_operation_name = v; +impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlRequest { + fn default() -> &'a UpdateDatabaseDdlRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_optimize_database_operation_name(&mut self) -> &mut ::std::string::String { - &mut self.optimize_database_operation_name +impl UpdateDatabaseDdlRequest { + pub fn new() -> UpdateDatabaseDdlRequest { + ::std::default::Default::default() } - // Take field - pub fn take_optimize_database_operation_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.optimize_database_operation_name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &UpdateDatabaseDdlRequest| { &m.database }, + |m: &mut UpdateDatabaseDdlRequest| { &mut m.database }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "statements", + |m: &UpdateDatabaseDdlRequest| { &m.statements }, + |m: &mut UpdateDatabaseDdlRequest| { &mut m.statements }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "operation_id", + |m: &UpdateDatabaseDdlRequest| { &m.operation_id }, + |m: &mut UpdateDatabaseDdlRequest| { &mut m.operation_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateDatabaseDdlRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RestoreDatabaseMetadata { +impl ::protobuf::Message for UpdateDatabaseDdlRequest { + const NAME: &'static str = "UpdateDatabaseDdlRequest"; + fn is_initialized(&self) -> bool { - if let Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(ref v)) = self.source_info { - if !v.is_initialized() { - return false; - } - } - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.source_type, 2, &mut self.unknown_fields)? - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.source_info = ::std::option::Option::Some(RestoreDatabaseMetadata_oneof_source_info::backup_info(is.read_message()?)); - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + 18 => { + self.statements.push(is.read_string()?); }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimize_database_operation_name)?; + 26 => { + self.operation_id = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5263,276 +1100,164 @@ impl ::protobuf::Message for RestoreDatabaseMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.source_type != RestoreSourceType::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.source_type); - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cancel_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.optimize_database_operation_name.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.optimize_database_operation_name); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreDatabaseMetadata_oneof_source_info::backup_info(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + for value in &self.statements { + my_size += ::protobuf::rt::string_size(2, &value); + }; + if !self.operation_id.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.operation_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.source_type != RestoreSourceType::TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.source_type))?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.optimize_database_operation_name.is_empty() { - os.write_string(6, &self.optimize_database_operation_name)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - if let ::std::option::Option::Some(ref v) = self.source_info { - match v { - &RestoreDatabaseMetadata_oneof_source_info::backup_info(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + for v in &self.statements { + os.write_string(2, &v)?; + }; + if !self.operation_id.is_empty() { + os.write_string(3, &self.operation_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RestoreDatabaseMetadata { - RestoreDatabaseMetadata::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &RestoreDatabaseMetadata| { &m.name }, - |m: &mut RestoreDatabaseMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "source_type", - |m: &RestoreDatabaseMetadata| { &m.source_type }, - |m: &mut RestoreDatabaseMetadata| { &mut m.source_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::backup::BackupInfo>( - "backup_info", - RestoreDatabaseMetadata::has_backup_info, - RestoreDatabaseMetadata::get_backup_info, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &RestoreDatabaseMetadata| { &m.progress }, - |m: &mut RestoreDatabaseMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &RestoreDatabaseMetadata| { &m.cancel_time }, - |m: &mut RestoreDatabaseMetadata| { &mut m.cancel_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "optimize_database_operation_name", - |m: &RestoreDatabaseMetadata| { &m.optimize_database_operation_name }, - |m: &mut RestoreDatabaseMetadata| { &mut m.optimize_database_operation_name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RestoreDatabaseMetadata", - fields, - file_descriptor_proto() - ) - }) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn default_instance() -> &'static RestoreDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RestoreDatabaseMetadata::new) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> UpdateDatabaseDdlRequest { + UpdateDatabaseDdlRequest::new() } -} -impl ::protobuf::Clear for RestoreDatabaseMetadata { fn clear(&mut self) { - self.name.clear(); - self.source_type = RestoreSourceType::TYPE_UNSPECIFIED; - self.source_info = ::std::option::Option::None; - self.progress.clear(); - self.cancel_time.clear(); - self.optimize_database_operation_name.clear(); - self.unknown_fields.clear(); + self.database.clear(); + self.statements.clear(); + self.operation_id.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static UpdateDatabaseDdlRequest { + static instance: UpdateDatabaseDdlRequest = UpdateDatabaseDdlRequest { + database: ::std::string::String::new(), + statements: ::std::vec::Vec::new(), + operation_id: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for UpdateDatabaseDdlRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateDatabaseDdlRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for RestoreDatabaseMetadata { +impl ::std::fmt::Display for UpdateDatabaseDdlRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RestoreDatabaseMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct OptimizeRestoredDatabaseMetadata { +/// Metadata type for the operation returned by +/// [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateDatabaseDdlMetadata { // message fields - pub name: ::std::string::String, - pub progress: ::protobuf::SingularPtrField, + /// The database being modified. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.database) + pub database: ::std::string::String, + /// For an update this list contains all the statements. For an + /// individual statement, this list contains only that statement. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.statements) + pub statements: ::std::vec::Vec<::std::string::String>, + /// Reports the commit timestamps of all statements that have + /// succeeded so far, where `commit_timestamps[i]` is the commit + /// timestamp for the statement `statements[i]`. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.commit_timestamps) + pub commit_timestamps: ::std::vec::Vec<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a OptimizeRestoredDatabaseMetadata { - fn default() -> &'a OptimizeRestoredDatabaseMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateDatabaseDdlMetadata { + fn default() -> &'a UpdateDatabaseDdlMetadata { + ::default_instance() } } -impl OptimizeRestoredDatabaseMetadata { - pub fn new() -> OptimizeRestoredDatabaseMetadata { +impl UpdateDatabaseDdlMetadata { + pub fn new() -> UpdateDatabaseDdlMetadata { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.spanner.admin.database.v1.OperationProgress progress = 2; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &UpdateDatabaseDdlMetadata| { &m.database }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.database }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "statements", + |m: &UpdateDatabaseDdlMetadata| { &m.statements }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.statements }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "commit_timestamps", + |m: &UpdateDatabaseDdlMetadata| { &m.commit_timestamps }, + |m: &mut UpdateDatabaseDdlMetadata| { &mut m.commit_timestamps }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateDatabaseDdlMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { +impl ::protobuf::Message for UpdateDatabaseDdlMetadata { + const NAME: &'static str = "UpdateDatabaseDdlMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; + }, + 18 => { + self.statements.push(is.read_string()?); }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + 26 => { + self.commit_timestamps.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5541,172 +1266,140 @@ impl ::protobuf::Message for OptimizeRestoredDatabaseMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.progress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + for value in &self.statements { + my_size += ::protobuf::rt::string_size(2, &value); + }; + for value in &self.commit_timestamps { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + for v in &self.statements { + os.write_string(2, &v)?; + }; + for v in &self.commit_timestamps { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> OptimizeRestoredDatabaseMetadata { - OptimizeRestoredDatabaseMetadata::new() + fn new() -> UpdateDatabaseDdlMetadata { + UpdateDatabaseDdlMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &OptimizeRestoredDatabaseMetadata| { &m.name }, - |m: &mut OptimizeRestoredDatabaseMetadata| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &OptimizeRestoredDatabaseMetadata| { &m.progress }, - |m: &mut OptimizeRestoredDatabaseMetadata| { &mut m.progress }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OptimizeRestoredDatabaseMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.statements.clear(); + self.commit_timestamps.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static OptimizeRestoredDatabaseMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OptimizeRestoredDatabaseMetadata::new) + fn default_instance() -> &'static UpdateDatabaseDdlMetadata { + static instance: UpdateDatabaseDdlMetadata = UpdateDatabaseDdlMetadata { + database: ::std::string::String::new(), + statements: ::std::vec::Vec::new(), + commit_timestamps: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for OptimizeRestoredDatabaseMetadata { - fn clear(&mut self) { - self.name.clear(); - self.progress.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateDatabaseDdlMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateDatabaseDdlMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for OptimizeRestoredDatabaseMetadata { +impl ::std::fmt::Display for UpdateDatabaseDdlMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for OptimizeRestoredDatabaseMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateDatabaseDdlMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DatabaseRole { +/// The request for +/// [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.DropDatabaseRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DropDatabaseRequest { // message fields - pub name: ::std::string::String, + /// Required. The database to be dropped. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.DropDatabaseRequest.database) + pub database: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.DropDatabaseRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DatabaseRole { - fn default() -> &'a DatabaseRole { - ::default_instance() +impl<'a> ::std::default::Default for &'a DropDatabaseRequest { + fn default() -> &'a DropDatabaseRequest { + ::default_instance() } } -impl DatabaseRole { - pub fn new() -> DatabaseRole { +impl DropDatabaseRequest { + pub fn new() -> DropDatabaseRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &DropDatabaseRequest| { &m.database }, + |m: &mut DropDatabaseRequest| { &mut m.database }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DropDatabaseRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for DatabaseRole { +impl ::protobuf::Message for DropDatabaseRequest { + const NAME: &'static str = "DropDatabaseRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5715,210 +1408,123 @@ impl ::protobuf::Message for DatabaseRole { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> DatabaseRole { - DatabaseRole::new() + fn new() -> DropDatabaseRequest { + DropDatabaseRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DatabaseRole| { &m.name }, - |m: &mut DatabaseRole| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DatabaseRole", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DatabaseRole { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DatabaseRole::new) + fn default_instance() -> &'static DropDatabaseRequest { + static instance: DropDatabaseRequest = DropDatabaseRequest { + database: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DatabaseRole { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DropDatabaseRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DropDatabaseRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DatabaseRole { +impl ::std::fmt::Display for DropDatabaseRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DatabaseRole { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for DropDatabaseRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseRolesRequest { +/// The request for +/// [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.GetDatabaseDdlRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetDatabaseDdlRequest { // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, + /// Required. The database whose schema we wish to get. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.GetDatabaseDdlRequest.database) + pub database: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.GetDatabaseDdlRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListDatabaseRolesRequest { - fn default() -> &'a ListDatabaseRolesRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseDdlRequest { + fn default() -> &'a GetDatabaseDdlRequest { + ::default_instance() } } -impl ListDatabaseRolesRequest { - pub fn new() -> ListDatabaseRolesRequest { +impl GetDatabaseDdlRequest { + pub fn new() -> GetDatabaseDdlRequest { ::std::default::Default::default() } - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &GetDatabaseDdlRequest| { &m.database }, + |m: &mut GetDatabaseDdlRequest| { &mut m.database }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetDatabaseDdlRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListDatabaseRolesRequest { +impl ::protobuf::Message for GetDatabaseDdlRequest { + const NAME: &'static str = "GetDatabaseDdlRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5927,215 +1533,124 @@ impl ::protobuf::Message for ListDatabaseRolesRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); + if !self.database.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.database); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.database.is_empty() { + os.write_string(1, &self.database)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListDatabaseRolesRequest { - ListDatabaseRolesRequest::new() + fn new() -> GetDatabaseDdlRequest { + GetDatabaseDdlRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListDatabaseRolesRequest| { &m.parent }, - |m: &mut ListDatabaseRolesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListDatabaseRolesRequest| { &m.page_size }, - |m: &mut ListDatabaseRolesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListDatabaseRolesRequest| { &m.page_token }, - |m: &mut ListDatabaseRolesRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseRolesRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListDatabaseRolesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseRolesRequest::new) + fn default_instance() -> &'static GetDatabaseDdlRequest { + static instance: GetDatabaseDdlRequest = GetDatabaseDdlRequest { + database: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListDatabaseRolesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetDatabaseDdlRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDatabaseDdlRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListDatabaseRolesRequest { +impl ::std::fmt::Display for GetDatabaseDdlRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListDatabaseRolesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct ListDatabaseRolesResponse { +/// The response for +/// [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. +// @@protoc_insertion_point(message:google.spanner.admin.database.v1.GetDatabaseDdlResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetDatabaseDdlResponse { // message fields - pub database_roles: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, + /// A list of formatted DDL statements defining the schema of the database + /// specified in the request. + // @@protoc_insertion_point(field:google.spanner.admin.database.v1.GetDatabaseDdlResponse.statements) + pub statements: ::std::vec::Vec<::std::string::String>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.database.v1.GetDatabaseDdlResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ListDatabaseRolesResponse { - fn default() -> &'a ListDatabaseRolesResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetDatabaseDdlResponse { + fn default() -> &'a GetDatabaseDdlResponse { + ::default_instance() } } -impl ListDatabaseRolesResponse { - pub fn new() -> ListDatabaseRolesResponse { +impl GetDatabaseDdlResponse { + pub fn new() -> GetDatabaseDdlResponse { ::std::default::Default::default() } - // repeated .google.spanner.admin.database.v1.DatabaseRole database_roles = 1; - - - pub fn get_database_roles(&self) -> &[DatabaseRole] { - &self.database_roles - } - pub fn clear_database_roles(&mut self) { - self.database_roles.clear(); - } - - // Param is passed by value, moved - pub fn set_database_roles(&mut self, v: ::protobuf::RepeatedField) { - self.database_roles = v; - } - - // Mutable pointer to the field. - pub fn mut_database_roles(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.database_roles - } - - // Take field - pub fn take_database_roles(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.database_roles, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "statements", + |m: &GetDatabaseDdlResponse| { &m.statements }, + |m: &mut GetDatabaseDdlResponse| { &mut m.statements }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetDatabaseDdlResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ListDatabaseRolesResponse { +impl ::protobuf::Message for GetDatabaseDdlResponse { + const NAME: &'static str = "GetDatabaseDdlResponse"; + fn is_initialized(&self) -> bool { - for v in &self.database_roles { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.database_roles)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.statements.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6144,159 +1659,65 @@ impl ::protobuf::Message for ListDatabaseRolesResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.database_roles { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + for value in &self.statements { + my_size += ::protobuf::rt::string_size(1, &value); }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.database_roles { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.statements { + os.write_string(1, &v)?; }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> ListDatabaseRolesResponse { - ListDatabaseRolesResponse::new() + fn new() -> GetDatabaseDdlResponse { + GetDatabaseDdlResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "database_roles", - |m: &ListDatabaseRolesResponse| { &m.database_roles }, - |m: &mut ListDatabaseRolesResponse| { &mut m.database_roles }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListDatabaseRolesResponse| { &m.next_page_token }, - |m: &mut ListDatabaseRolesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListDatabaseRolesResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.statements.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static ListDatabaseRolesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListDatabaseRolesResponse::new) + fn default_instance() -> &'static GetDatabaseDdlResponse { + static instance: GetDatabaseDdlResponse = GetDatabaseDdlResponse { + statements: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListDatabaseRolesResponse { - fn clear(&mut self) { - self.database_roles.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetDatabaseDdlResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetDatabaseDdlResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListDatabaseRolesResponse { +impl ::std::fmt::Display for GetDatabaseDdlResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ListDatabaseRolesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RestoreSourceType { - TYPE_UNSPECIFIED = 0, - BACKUP = 1, -} - -impl ::protobuf::ProtobufEnum for RestoreSourceType { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(RestoreSourceType::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(RestoreSourceType::BACKUP), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [RestoreSourceType] = &[ - RestoreSourceType::TYPE_UNSPECIFIED, - RestoreSourceType::BACKUP, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("RestoreSourceType", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for RestoreSourceType { -} - -impl ::std::default::Default for RestoreSourceType { - fn default() -> Self { - RestoreSourceType::TYPE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for RestoreSourceType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } +impl ::protobuf::reflect::ProtobufValue for GetDatabaseDdlResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -6305,141 +1726,52 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\ \x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\ \x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\ - \x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/protobuf/field_mask.pr\ - oto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/data\ - base/v1/backup.proto\x1a-google/spanner/admin/database/v1/common.proto\"\ - \xc3\x01\n\x0bRestoreInfo\x12T\n\x0bsource_type\x18\x01\x20\x01(\x0e23.g\ - oogle.spanner.admin.database.v1.RestoreSourceTypeR\nsourceType\x12O\n\ - \x0bbackup_info\x18\x02\x20\x01(\x0b2,.google.spanner.admin.database.v1.\ - BackupInfoH\0R\nbackupInfoB\r\n\x0bsource_info\"\x82\x08\n\x08Database\ - \x12\x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x12K\n\x05s\ - tate\x18\x02\x20\x01(\x0e20.google.spanner.admin.database.v1.Database.St\ - ateR\x05stateB\x03\xe0A\x03\x12@\n\x0bcreate_time\x18\x03\x20\x01(\x0b2\ - \x1a.google.protobuf.TimestampR\ncreateTimeB\x03\xe0A\x03\x12U\n\x0crest\ - ore_info\x18\x04\x20\x01(\x0b2-.google.spanner.admin.database.v1.Restore\ - InfoR\x0brestoreInfoB\x03\xe0A\x03\x12d\n\x11encryption_config\x18\x05\ - \x20\x01(\x0b22.google.spanner.admin.database.v1.EncryptionConfigR\x10en\ - cryptionConfigB\x03\xe0A\x03\x12^\n\x0fencryption_info\x18\x08\x20\x03(\ - \x0b20.google.spanner.admin.database.v1.EncryptionInfoR\x0eencryptionInf\ - oB\x03\xe0A\x03\x12=\n\x18version_retention_period\x18\x06\x20\x01(\tR\ - \x16versionRetentionPeriodB\x03\xe0A\x03\x12S\n\x15earliest_version_time\ - \x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x13earliestVersion\ - TimeB\x03\xe0A\x03\x12*\n\x0edefault_leader\x18\t\x20\x01(\tR\rdefaultLe\ - aderB\x03\xe0A\x03\x12a\n\x10database_dialect\x18\n\x20\x01(\x0e21.googl\ - e.spanner.admin.database.v1.DatabaseDialectR\x0fdatabaseDialectB\x03\xe0\ - A\x03\x124\n\x16enable_drop_protection\x18\x0b\x20\x01(\x08R\x14enableDr\ - opProtection\x12%\n\x0breconciling\x18\x0c\x20\x01(\x08R\x0breconcilingB\ - \x03\xe0A\x03\"M\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\x12\x0c\ - \n\x08CREATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x14\n\x10READY_OPTIM\ - IZING\x10\x03:b\xeaA_\n\x1fspanner.googleapis.com/Database\x12\ - \x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/instances/*}/databases\ - \xdaA\x06parent\x12\xa4\x02\n\x0eCreateDatabase\x127.google.spanner.admi\ - n.database.v1.CreateDatabaseRequest\x1a\x1d.google.longrunning.Operation\ - \"\xb9\x01\xcaAd\n)google.spanner.admin.database.v1.Database\x127google.\ - spanner.admin.database.v1.CreateDatabaseMetadata\x82\xd3\xe4\x93\x022\"-\ - /v1/{parent=projects/*/instances/*}/databases:\x01*\xdaA\x17parent,creat\ - e_statement\x12\xad\x01\n\x0bGetDatabase\x124.google.spanner.admin.datab\ - ase.v1.GetDatabaseRequest\x1a*.google.spanner.admin.database.v1.Database\ - \"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/instances/*/databases/\ - *}\xdaA\x04name\x12\xef\x01\n\x0eUpdateDatabase\x127.google.spanner.admi\ - n.database.v1.UpdateDatabaseRequest\x1a\x1d.google.longrunning.Operation\ - \"\x84\x01\xcaA\"\n\x08Database\x12\x16UpdateDatabaseMetadata\x82\xd3\ - \xe4\x93\x02B26/v1/{database.name=projects/*/instances/*/databases/*}:\ - \x08database\xdaA\x14database,update_mask\x12\x9d\x02\n\x11UpdateDatabas\ - eDdl\x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\ + \x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.pro\ + to\"\x83\x02\n\x08Database\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\ + \x12F\n\x05state\x18\x02\x20\x01(\x0e20.google.spanner.admin.database.v1\ + .Database.StateR\x05state\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\ + \x10\0\x12\x0c\n\x08CREATING\x10\x01\x12\t\n\x05READY\x10\x02:b\xeaA_\n\ + \x1fspanner.googleapis.com/Database\x12\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projec\ + ts/*/instances/*}/databases\xdaA\x06parent\x12\xa4\x02\n\x0eCreateDataba\ + se\x127.google.spanner.admin.database.v1.CreateDatabaseRequest\x1a\x1d.g\ + oogle.longrunning.Operation\"\xb9\x01\xcaAd\n)google.spanner.admin.datab\ + ase.v1.Database\x127google.spanner.admin.database.v1.CreateDatabaseMetad\ + ata\x82\xd3\xe4\x93\x022\"-/v1/{parent=projects/*/instances/*}/databases\ + :\x01*\xdaA\x17parent,create_statement\x12\xad\x01\n\x0bGetDatabase\x124\ + .google.spanner.admin.database.v1.GetDatabaseRequest\x1a*.google.spanner\ + .admin.database.v1.Database\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projec\ + ts/*/instances/*/databases/*}\xdaA\x04name\x12\x9d\x02\n\x11UpdateDataba\ + seDdl\x12:.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest\x1a\ \x1d.google.longrunning.Operation\"\xac\x01\xcaAS\n\x15google.protobuf.E\ mpty\x12:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\x82\ \xd3\xe4\x93\x02:25/v1/{database=projects/*/instances/*/databases/*}/ddl\ @@ -6458,685 +1790,272 @@ static file_descriptor_proto_data: &'static [u8] = b"\ quest\x1a\x15.google.iam.v1.Policy\"\x98\x01\x82\xd3\xe4\x93\x02\x86\x01\ \">/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy:\x01*Z\ A\".google.spanner.admin.database.v1.ListBackupOperationsResponse\ - \"E\x82\xd3\xe4\x93\x026\x124/v1/{parent=projects/*/instances/*}/backupO\ - perations\xdaA\x06parent\x12\xdc\x01\n\x11ListDatabaseRoles\x12:.google.\ - spanner.admin.database.v1.ListDatabaseRolesRequest\x1a;.google.spanner.a\ - dmin.database.v1.ListDatabaseRolesResponse\"N\x82\xd3\xe4\x93\x02?\x12=/\ - v1/{parent=projects/*/instances/*/databases/*}/databaseRoles\xdaA\x06par\ - ent\x1ax\xd2A\\https://www.googleapis.com/auth/cloud-platform,https://ww\ - w.googleapis.com/auth/spanner.admin\xcaA\x16spanner.googleapis.comB\xd8\ - \x02\n$com.google.spanner.admin.database.v1B\x19SpannerDatabaseAdminProt\ - oP\x01ZFcloud.google.com/go/spanner/admin/database/apiv1/databasepb;data\ - basepb\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Google\\Cl\ - oud\\Spanner\\Admin\\Database\\V1\xea\x02+Google::Cloud::Spanner::Admin:\ - :Database::V1\xeaAJ\n\x1fspanner.googleapis.com/Instance\x12'projects/{p\ - roject}/instances/{instance}J\xaf\xc0\x02\n\x07\x12\x05\x0e\0\x92\x08\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202023\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0)\n\t\n\x02\ - \x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\ - \x12\x03\x14\0)\n\t\n\x02\x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\ - \x03\x16\0(\n\t\n\x02\x03\x05\x12\x03\x17\0$\n\t\n\x02\x03\x06\x12\x03\ - \x18\0-\n\t\n\x02\x03\x07\x12\x03\x19\0%\n\t\n\x02\x03\x08\x12\x03\x1a\0\ - *\n\t\n\x02\x03\t\x12\x03\x1b\0)\n\t\n\x02\x03\n\x12\x03\x1c\07\n\t\n\ - \x02\x03\x0b\x12\x03\x1d\07\n\x08\n\x01\x08\x12\x03\x1f\0C\n\t\n\x02\x08\ - %\x12\x03\x1f\0C\n\x08\n\x01\x08\x12\x03\x20\0]\n\t\n\x02\x08\x0b\x12\ - \x03\x20\0]\n\x08\n\x01\x08\x12\x03!\0\"\n\t\n\x02\x08\n\x12\x03!\0\"\n\ - \x08\n\x01\x08\x12\x03\"\0:\n\t\n\x02\x08\x08\x12\x03\"\0:\n\x08\n\x01\ - \x08\x12\x03#\0=\n\t\n\x02\x08\x01\x12\x03#\0=\n\x08\n\x01\x08\x12\x03$\ - \0E\n\t\n\x02\x08)\x12\x03$\0E\n\x08\n\x01\x08\x12\x03%\0D\n\t\n\x02\x08\ - -\x12\x03%\0D\n\t\n\x01\x08\x12\x04&\0)\x02\n\x0c\n\x04\x08\x9d\x08\0\ - \x12\x04&\0)\x02\n\xa2\x02\n\x02\x06\0\x12\x052\0\x8e\x03\x01\x1a\x94\ - \x02\x20Cloud\x20Spanner\x20Database\x20Admin\x20API\n\n\x20The\x20Cloud\ - \x20Spanner\x20Database\x20Admin\x20API\x20can\x20be\x20used\x20to:\n\ - \x20\x20\x20*\x20create,\x20drop,\x20and\x20list\x20databases\n\x20\x20\ - \x20*\x20update\x20the\x20schema\x20of\x20pre-existing\x20databases\n\ - \x20\x20\x20*\x20create,\x20delete\x20and\x20list\x20backups\x20for\x20a\ - \x20database\n\x20\x20\x20*\x20restore\x20a\x20database\x20from\x20an\ - \x20existing\x20backup\n\n\n\n\x03\x06\0\x01\x12\x032\x08\x15\n\n\n\x03\ - \x06\0\x03\x12\x033\x02>\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x033\x02>\n\ - \x0b\n\x03\x06\0\x03\x12\x044\x0266\n\r\n\x05\x06\0\x03\x9a\x08\x12\x044\ - \x0266\n.\n\x04\x06\0\x02\0\x12\x049\x02>\x03\x1a\x20\x20Lists\x20Cloud\ - \x20Spanner\x20databases.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x039\x06\x13\ - \n\x0c\n\x05\x06\0\x02\0\x02\x12\x039\x14(\n\x0c\n\x05\x06\0\x02\0\x03\ - \x12\x0393H\n\r\n\x05\x06\0\x02\0\x04\x12\x04:\x04<\x06\n\x11\n\t\x06\0\ - \x02\0\x04\xb0\xca\xbc\"\x12\x04:\x04<\x06\n\x0c\n\x05\x06\0\x02\0\x04\ - \x12\x03=\x044\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03=\x044\n\xc8\ - \x04\n\x04\x06\0\x02\x01\x12\x04H\x02R\x03\x1a\xb9\x04\x20Creates\x20a\ - \x20new\x20Cloud\x20Spanner\x20database\x20and\x20starts\x20to\x20prepar\ - e\x20it\x20for\x20serving.\n\x20The\x20returned\x20[long-running\x20oper\ - ation][google.longrunning.Operation]\x20will\n\x20have\x20a\x20name\x20o\ - f\x20the\x20format\x20`/operations/`\x20and\ - \n\x20can\x20be\x20used\x20to\x20track\x20preparation\x20of\x20the\x20da\ - tabase.\x20The\n\x20[metadata][google.longrunning.Operation.metadata]\ - \x20field\x20type\x20is\n\x20[CreateDatabaseMetadata][google.spanner.adm\ - in.database.v1.CreateDatabaseMetadata].\x20The\n\x20[response][google.lo\ - ngrunning.Operation.response]\x20field\x20type\x20is\n\x20[Database][goo\ - gle.spanner.admin.database.v1.Database],\x20if\x20successful.\n\n\x0c\n\ - \x05\x06\0\x02\x01\x01\x12\x03H\x06\x14\n\x0c\n\x05\x06\0\x02\x01\x02\ - \x12\x03H\x15*\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03H5Q\n\r\n\x05\x06\0\ - \x02\x01\x04\x12\x04I\x04L\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\ - \x12\x04I\x04L\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03M\x04E\n\x0f\n\ - \x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03M\x04E\n\r\n\x05\x06\0\x02\x01\ - \x04\x12\x04N\x04Q\x06\n\x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\x04N\ - \x04Q\x06\n;\n\x04\x06\0\x02\x02\x12\x04U\x02Z\x03\x1a-\x20Gets\x20the\ - \x20state\x20of\x20a\x20Cloud\x20Spanner\x20database.\n\n\x0c\n\x05\x06\ - \0\x02\x02\x01\x12\x03U\x06\x11\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03U\ - \x12$\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03U/7\n\r\n\x05\x06\0\x02\x02\ - \x04\x12\x04V\x04X\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04\ - V\x04X\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03Y\x042\n\x0f\n\x08\x06\0\ - \x02\x02\x04\x9b\x08\0\x12\x03Y\x042\n\xa4\r\n\x04\x06\0\x02\x03\x12\x06\ - \x80\x01\x02\x8b\x01\x03\x1a\x93\r\x20Updates\x20a\x20Cloud\x20Spanner\ - \x20database.\x20The\x20returned\n\x20[long-running\x20operation][google\ - .longrunning.Operation]\x20can\x20be\x20used\x20to\x20track\n\x20the\x20\ - progress\x20of\x20updating\x20the\x20database.\x20If\x20the\x20named\x20\ - database\x20does\x20not\n\x20exist,\x20returns\x20`NOT_FOUND`.\n\n\x20Wh\ - ile\x20the\x20operation\x20is\x20pending:\n\n\x20\x20\x20*\x20The\x20dat\ - abase's\n\x20\x20\x20\x20\x20[reconciling][google.spanner.admin.database\ - .v1.Database.reconciling]\n\x20\x20\x20\x20\x20field\x20is\x20set\x20to\ - \x20true.\n\x20\x20\x20*\x20Cancelling\x20the\x20operation\x20is\x20best\ - -effort.\x20If\x20the\x20cancellation\x20succeeds,\n\x20\x20\x20\x20\x20\ - the\x20operation\x20metadata's\n\x20\x20\x20\x20\x20[cancel_time][google\ - .spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time]\n\x20\x20\ - \x20\x20\x20is\x20set,\x20the\x20updates\x20are\x20reverted,\x20and\x20t\ - he\x20operation\x20terminates\x20with\x20a\n\x20\x20\x20\x20\x20`CANCELL\ - ED`\x20status.\n\x20\x20\x20*\x20New\x20UpdateDatabase\x20requests\x20wi\ - ll\x20return\x20a\x20`FAILED_PRECONDITION`\x20error\n\x20\x20\x20\x20\ - \x20until\x20the\x20pending\x20operation\x20is\x20done\x20(returns\x20su\ - ccessfully\x20or\x20with\n\x20\x20\x20\x20\x20error).\n\x20\x20\x20*\x20\ - Reading\x20the\x20database\x20via\x20the\x20API\x20continues\x20to\x20gi\ - ve\x20the\x20pre-request\n\x20\x20\x20\x20\x20values.\n\n\x20Upon\x20com\ - pletion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20The\ - \x20new\x20values\x20are\x20in\x20effect\x20and\x20readable\x20via\x20th\ - e\x20API.\n\x20\x20\x20*\x20The\x20database's\n\x20\x20\x20\x20\x20[reco\ - nciling][google.spanner.admin.database.v1.Database.reconciling]\n\x20\ - \x20\x20\x20\x20field\x20becomes\x20false.\n\n\x20The\x20returned\x20[lo\ - ng-running\x20operation][google.longrunning.Operation]\x20will\n\x20have\ - \x20a\x20name\x20of\x20the\x20format\n\x20`projects//instances/\ - /databases//operations/`\n\x20and\x20c\ - an\x20be\x20used\x20to\x20track\x20the\x20database\x20modification.\x20T\ - he\n\x20[metadata][google.longrunning.Operation.metadata]\x20field\x20ty\ - pe\x20is\n\x20[UpdateDatabaseMetadata][google.spanner.admin.database.v1.\ - UpdateDatabaseMetadata].\n\x20The\x20[response][google.longrunning.Opera\ - tion.response]\x20field\x20type\x20is\n\x20[Database][google.spanner.adm\ - in.database.v1.Database],\x20if\x20successful.\n\n\r\n\x05\x06\0\x02\x03\ - \x01\x12\x04\x80\x01\x06\x14\n\r\n\x05\x06\0\x02\x03\x02\x12\x04\x80\x01\ - \x15*\n\r\n\x05\x06\0\x02\x03\x03\x12\x04\x81\x01\x0f+\n\x0f\n\x05\x06\0\ - \x02\x03\x04\x12\x06\x82\x01\x04\x85\x01\x06\n\x13\n\t\x06\0\x02\x03\x04\ - \xb0\xca\xbc\"\x12\x06\x82\x01\x04\x85\x01\x06\n\r\n\x05\x06\0\x02\x03\ - \x04\x12\x04\x86\x01\x04B\n\x10\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\ - \x04\x86\x01\x04B\n\x0f\n\x05\x06\0\x02\x03\x04\x12\x06\x87\x01\x04\x8a\ - \x01\x06\n\x11\n\x07\x06\0\x02\x03\x04\x99\x08\x12\x06\x87\x01\x04\x8a\ - \x01\x06\n\x8c\x04\n\x04\x06\0\x02\x04\x12\x06\x94\x01\x02\x9e\x01\x03\ - \x1a\xfb\x03\x20Updates\x20the\x20schema\x20of\x20a\x20Cloud\x20Spanner\ - \x20database\x20by\n\x20creating/altering/dropping\x20tables,\x20columns\ - ,\x20indexes,\x20etc.\x20The\x20returned\n\x20[long-running\x20operation\ - ][google.longrunning.Operation]\x20will\x20have\x20a\x20name\x20of\n\x20\ - the\x20format\x20`/operations/`\x20and\x20c\ - an\x20be\x20used\x20to\n\x20track\x20execution\x20of\x20the\x20schema\ - \x20change(s).\x20The\n\x20[metadata][google.longrunning.Operation.metad\ - ata]\x20field\x20type\x20is\n\x20[UpdateDatabaseDdlMetadata][google.span\ - ner.admin.database.v1.UpdateDatabaseDdlMetadata].\x20\x20The\x20operatio\ - n\x20has\x20no\x20response.\n\n\r\n\x05\x06\0\x02\x04\x01\x12\x04\x94\ - \x01\x06\x17\n\r\n\x05\x06\0\x02\x04\x02\x12\x04\x94\x01\x180\n\r\n\x05\ - \x06\0\x02\x04\x03\x12\x04\x94\x01;W\n\x0f\n\x05\x06\0\x02\x04\x04\x12\ - \x06\x95\x01\x04\x98\x01\x06\n\x13\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\ - \x12\x06\x95\x01\x04\x98\x01\x06\n\r\n\x05\x06\0\x02\x04\x04\x12\x04\x99\ - \x01\x04A\n\x10\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x04\x99\x01\x04A\n\ - \x0f\n\x05\x06\0\x02\x04\x04\x12\x06\x9a\x01\x04\x9d\x01\x06\n\x11\n\x07\ - \x06\0\x02\x04\x04\x99\x08\x12\x06\x9a\x01\x04\x9d\x01\x06\n\x87\x02\n\ - \x04\x06\0\x02\x05\x12\x06\xa5\x01\x02\xaa\x01\x03\x1a\xf6\x01\x20Drops\ - \x20(aka\x20deletes)\x20a\x20Cloud\x20Spanner\x20database.\n\x20Complete\ - d\x20backups\x20for\x20the\x20database\x20will\x20be\x20retained\x20acco\ - rding\x20to\x20their\n\x20`expire_time`.\n\x20Note:\x20Cloud\x20Spanner\ - \x20might\x20continue\x20to\x20accept\x20requests\x20for\x20a\x20few\x20\ - seconds\n\x20after\x20the\x20database\x20has\x20been\x20deleted.\n\n\r\n\ - \x05\x06\0\x02\x05\x01\x12\x04\xa5\x01\x06\x12\n\r\n\x05\x06\0\x02\x05\ - \x02\x12\x04\xa5\x01\x13&\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\xa5\x011F\ - \n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\xa6\x01\x04\xa8\x01\x06\n\x13\n\t\ - \x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\xa6\x01\x04\xa8\x01\x06\n\r\n\ - \x05\x06\0\x02\x05\x04\x12\x04\xa9\x01\x046\n\x10\n\x08\x06\0\x02\x05\ - \x04\x9b\x08\0\x12\x04\xa9\x01\x046\n\xec\x01\n\x04\x06\0\x02\x06\x12\ - \x06\xaf\x01\x02\xb4\x01\x03\x1a\xdb\x01\x20Returns\x20the\x20schema\x20\ - of\x20a\x20Cloud\x20Spanner\x20database\x20as\x20a\x20list\x20of\x20form\ - atted\n\x20DDL\x20statements.\x20This\x20method\x20does\x20not\x20show\ - \x20pending\x20schema\x20updates,\x20those\x20may\n\x20be\x20queried\x20\ - using\x20the\x20[Operations][google.longrunning.Operations]\x20API.\n\n\ - \r\n\x05\x06\0\x02\x06\x01\x12\x04\xaf\x01\x06\x14\n\r\n\x05\x06\0\x02\ - \x06\x02\x12\x04\xaf\x01\x15*\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\xaf\ - \x015K\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\xb0\x01\x04\xb2\x01\x06\n\ - \x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\xb0\x01\x04\xb2\x01\x06\ - \n\r\n\x05\x06\0\x02\x06\x04\x12\x04\xb3\x01\x046\n\x10\n\x08\x06\0\x02\ - \x06\x04\x9b\x08\0\x12\x04\xb3\x01\x046\n\xfe\x02\n\x04\x06\0\x02\x07\ - \x12\x06\xbd\x01\x02\xc7\x01\x03\x1a\xed\x02\x20Sets\x20the\x20access\ - \x20control\x20policy\x20on\x20a\x20database\x20or\x20backup\x20resource\ - .\n\x20Replaces\x20any\x20existing\x20policy.\n\n\x20Authorization\x20re\ - quires\x20`spanner.databases.setIamPolicy`\n\x20permission\x20on\x20[res\ - ource][google.iam.v1.SetIamPolicyRequest.resource].\n\x20For\x20backups,\ - \x20authorization\x20requires\x20`spanner.backups.setIamPolicy`\n\x20per\ - mission\x20on\x20[resource][google.iam.v1.SetIamPolicyRequest.resource].\ - \n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\xbd\x01\x06\x12\n\r\n\x05\x06\0\ - \x02\x07\x02\x12\x04\xbd\x01\x134\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\ - \xbd\x01?S\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\xbe\x01\x04\xc5\x01\x06\ - \n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\xbe\x01\x04\xc5\x01\ - \x06\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\xc6\x01\x04=\n\x10\n\x08\x06\0\ - \x02\x07\x04\x9b\x08\0\x12\x04\xc6\x01\x04=\n\xb9\x03\n\x04\x06\0\x02\ - \x08\x12\x06\xd1\x01\x02\xdb\x01\x03\x1a\xa8\x03\x20Gets\x20the\x20acces\ - s\x20control\x20policy\x20for\x20a\x20database\x20or\x20backup\x20resour\ - ce.\n\x20Returns\x20an\x20empty\x20policy\x20if\x20a\x20database\x20or\ - \x20backup\x20exists\x20but\x20does\x20not\x20have\x20a\n\x20policy\x20s\ - et.\n\n\x20Authorization\x20requires\x20`spanner.databases.getIamPolicy`\ - \x20permission\x20on\n\x20[resource][google.iam.v1.GetIamPolicyRequest.r\ - esource].\n\x20For\x20backups,\x20authorization\x20requires\x20`spanner.\ - backups.getIamPolicy`\n\x20permission\x20on\x20[resource][google.iam.v1.\ - GetIamPolicyRequest.resource].\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xd1\ - \x01\x06\x12\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xd1\x01\x134\n\r\n\x05\ - \x06\0\x02\x08\x03\x12\x04\xd1\x01?S\n\x0f\n\x05\x06\0\x02\x08\x04\x12\ - \x06\xd2\x01\x04\xd9\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\ - \x12\x06\xd2\x01\x04\xd9\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xda\ - \x01\x046\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xda\x01\x046\n\ - \xff\x03\n\x04\x06\0\x02\t\x12\x06\xe7\x01\x02\xf5\x01\x03\x1a\xee\x03\ - \x20Returns\x20permissions\x20that\x20the\x20caller\x20has\x20on\x20the\ - \x20specified\x20database\x20or\x20backup\n\x20resource.\n\n\x20Attempti\ - ng\x20this\x20RPC\x20on\x20a\x20non-existent\x20Cloud\x20Spanner\x20data\ - base\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20error\x20if\x20the\ - \x20user\x20has\n\x20`spanner.databases.list`\x20permission\x20on\x20the\ - \x20containing\x20Cloud\n\x20Spanner\x20instance.\x20Otherwise\x20return\ - s\x20an\x20empty\x20set\x20of\x20permissions.\n\x20Calling\x20this\x20me\ - thod\x20on\x20a\x20backup\x20that\x20does\x20not\x20exist\x20will\n\x20r\ - esult\x20in\x20a\x20NOT_FOUND\x20error\x20if\x20the\x20user\x20has\n\x20\ - `spanner.backups.list`\x20permission\x20on\x20the\x20containing\x20insta\ - nce.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xe7\x01\x06\x18\n\r\n\x05\x06\0\ - \x02\t\x02\x12\x04\xe7\x01\x19@\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xe7\ - \x01Ks\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xe8\x01\x04\xf3\x01\x06\n\x13\ - \n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xe8\x01\x04\xf3\x01\x06\n\r\n\ - \x05\x06\0\x02\t\x04\x12\x04\xf4\x01\x04B\n\x10\n\x08\x06\0\x02\t\x04\ - \x9b\x08\0\x12\x04\xf4\x01\x04B\n\x9b\x06\n\x04\x06\0\x02\n\x12\x06\x83\ - \x02\x02\x8d\x02\x03\x1a\x8a\x06\x20Starts\x20creating\x20a\x20new\x20Cl\ - oud\x20Spanner\x20Backup.\n\x20The\x20returned\x20backup\x20[long-runnin\ - g\x20operation][google.longrunning.Operation]\n\x20will\x20have\x20a\x20\ - name\x20of\x20the\x20format\n\x20`projects//instances//backups//operations/`\n\x20and\x20can\x20be\x20u\ - sed\x20to\x20track\x20creation\x20of\x20the\x20backup.\x20The\n\x20[meta\ - data][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\ - \x20[CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackup\ - Metadata].\x20The\n\x20[response][google.longrunning.Operation.response]\ - \x20field\x20type\x20is\n\x20[Backup][google.spanner.admin.database.v1.B\ - ackup],\x20if\x20successful.\x20Cancelling\x20the\x20returned\x20operati\ - on\x20will\x20stop\x20the\n\x20creation\x20and\x20delete\x20the\x20backu\ - p.\n\x20There\x20can\x20be\x20only\x20one\x20pending\x20backup\x20creati\ - on\x20per\x20database.\x20Backup\x20creation\n\x20of\x20different\x20dat\ - abases\x20can\x20run\x20concurrently.\n\n\r\n\x05\x06\0\x02\n\x01\x12\ - \x04\x83\x02\x06\x12\n\r\n\x05\x06\0\x02\n\x02\x12\x04\x83\x02\x13&\n\r\ - \n\x05\x06\0\x02\n\x03\x12\x04\x83\x021M\n\x0f\n\x05\x06\0\x02\n\x04\x12\ - \x06\x84\x02\x04\x87\x02\x06\n\x13\n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\ - \x06\x84\x02\x04\x87\x02\x06\n\r\n\x05\x06\0\x02\n\x04\x12\x04\x88\x02\ - \x04E\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\x88\x02\x04E\n\x0f\n\ - \x05\x06\0\x02\n\x04\x12\x06\x89\x02\x04\x8c\x02\x06\n\x11\n\x07\x06\0\ - \x02\n\x04\x99\x08\x12\x06\x89\x02\x04\x8c\x02\x06\n\x92\x06\n\x04\x06\0\ - \x02\x0b\x12\x06\x9b\x02\x02\xa5\x02\x03\x1a\x81\x06\x20Starts\x20copyin\ - g\x20a\x20Cloud\x20Spanner\x20Backup.\n\x20The\x20returned\x20backup\x20\ - [long-running\x20operation][google.longrunning.Operation]\n\x20will\x20h\ - ave\x20a\x20name\x20of\x20the\x20format\n\x20`projects//instanc\ - es//backups//operations/`\n\x20and\x20ca\ - n\x20be\x20used\x20to\x20track\x20copying\x20of\x20the\x20backup.\x20The\ - \x20operation\x20is\x20associated\n\x20with\x20the\x20destination\x20bac\ - kup.\n\x20The\x20[metadata][google.longrunning.Operation.metadata]\x20fi\ - eld\x20type\x20is\n\x20[CopyBackupMetadata][google.spanner.admin.databas\ - e.v1.CopyBackupMetadata].\n\x20The\x20[response][google.longrunning.Oper\ - ation.response]\x20field\x20type\x20is\n\x20[Backup][google.spanner.admi\ - n.database.v1.Backup],\x20if\x20successful.\x20Cancelling\x20the\x20retu\ - rned\x20operation\x20will\x20stop\x20the\n\x20copying\x20and\x20delete\ - \x20the\x20backup.\n\x20Concurrent\x20CopyBackup\x20requests\x20can\x20r\ - un\x20on\x20the\x20same\x20source\x20backup.\n\n\r\n\x05\x06\0\x02\x0b\ - \x01\x12\x04\x9b\x02\x06\x10\n\r\n\x05\x06\0\x02\x0b\x02\x12\x04\x9b\x02\ - \x11\"\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\x9b\x02-I\n\x0f\n\x05\x06\0\ - \x02\x0b\x04\x12\x06\x9c\x02\x04\x9f\x02\x06\n\x13\n\t\x06\0\x02\x0b\x04\ - \xb0\xca\xbc\"\x12\x06\x9c\x02\x04\x9f\x02\x06\n\r\n\x05\x06\0\x02\x0b\ - \x04\x12\x04\xa0\x02\x04X\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\ - \x04\xa0\x02\x04X\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xa1\x02\x04\xa4\ - \x02\x06\n\x11\n\x07\x06\0\x02\x0b\x04\x99\x08\x12\x06\xa1\x02\x04\xa4\ - \x02\x06\nl\n\x04\x06\0\x02\x0c\x12\x06\xa8\x02\x02\xad\x02\x03\x1a\\\ - \x20Gets\x20metadata\x20on\x20a\x20pending\x20or\x20completed\x20[Backup\ - ][google.spanner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\x0c\ - \x01\x12\x04\xa8\x02\x06\x0f\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xa8\x02\ - \x10\x20\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xa8\x02+1\n\x0f\n\x05\x06\0\ - \x02\x0c\x04\x12\x06\xa9\x02\x04\xab\x02\x06\n\x13\n\t\x06\0\x02\x0c\x04\ - \xb0\xca\xbc\"\x12\x06\xa9\x02\x04\xab\x02\x06\n\r\n\x05\x06\0\x02\x0c\ - \x04\x12\x04\xac\x02\x042\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\ - \x04\xac\x02\x042\nc\n\x04\x06\0\x02\r\x12\x06\xb0\x02\x02\xb6\x02\x03\ - \x1aS\x20Updates\x20a\x20pending\x20or\x20completed\x20[Backup][google.s\ - panner.admin.database.v1.Backup].\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\ - \xb0\x02\x06\x12\n\r\n\x05\x06\0\x02\r\x02\x12\x04\xb0\x02\x13&\n\r\n\ - \x05\x06\0\x02\r\x03\x12\x04\xb0\x0217\n\x0f\n\x05\x06\0\x02\r\x04\x12\ - \x06\xb1\x02\x04\xb4\x02\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\ - \x06\xb1\x02\x04\xb4\x02\x06\n\r\n\x05\x06\0\x02\r\x04\x12\x04\xb5\x02\ - \x04@\n\x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\x04\xb5\x02\x04@\nc\n\ - \x04\x06\0\x02\x0e\x12\x06\xb9\x02\x02\xbe\x02\x03\x1aS\x20Deletes\x20a\ - \x20pending\x20or\x20completed\x20[Backup][google.spanner.admin.database\ - .v1.Backup].\n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\xb9\x02\x06\x12\n\r\n\ - \x05\x06\0\x02\x0e\x02\x12\x04\xb9\x02\x13&\n\r\n\x05\x06\0\x02\x0e\x03\ - \x12\x04\xb9\x021F\n\x0f\n\x05\x06\0\x02\x0e\x04\x12\x06\xba\x02\x04\xbc\ - \x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\"\x12\x06\xba\x02\x04\ - \xbc\x02\x06\n\r\n\x05\x06\0\x02\x0e\x04\x12\x04\xbd\x02\x042\n\x10\n\ - \x08\x06\0\x02\x0e\x04\x9b\x08\0\x12\x04\xbd\x02\x042\n\xa9\x01\n\x04\ - \x06\0\x02\x0f\x12\x06\xc3\x02\x02\xc8\x02\x03\x1a\x98\x01\x20Lists\x20c\ - ompleted\x20and\x20pending\x20backups.\n\x20Backups\x20returned\x20are\ - \x20ordered\x20by\x20`create_time`\x20in\x20descending\x20order,\n\x20st\ - arting\x20from\x20the\x20most\x20recent\x20`create_time`.\n\n\r\n\x05\ - \x06\0\x02\x0f\x01\x12\x04\xc3\x02\x06\x11\n\r\n\x05\x06\0\x02\x0f\x02\ - \x12\x04\xc3\x02\x12$\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\xc3\x02/B\n\ - \x0f\n\x05\x06\0\x02\x0f\x04\x12\x06\xc4\x02\x04\xc6\x02\x06\n\x13\n\t\ - \x06\0\x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xc4\x02\x04\xc6\x02\x06\n\r\n\ - \x05\x06\0\x02\x0f\x04\x12\x04\xc7\x02\x044\n\x10\n\x08\x06\0\x02\x0f\ - \x04\x9b\x08\0\x12\x04\xc7\x02\x044\n\xd6\x08\n\x04\x06\0\x02\x10\x12\ - \x06\xdb\x02\x02\xe5\x02\x03\x1a\xc5\x08\x20Create\x20a\x20new\x20databa\ - se\x20by\x20restoring\x20from\x20a\x20completed\x20backup.\x20The\x20new\ - \n\x20database\x20must\x20be\x20in\x20the\x20same\x20project\x20and\x20i\ - n\x20an\x20instance\x20with\x20the\x20same\n\x20instance\x20configuratio\ - n\x20as\x20the\x20instance\x20containing\n\x20the\x20backup.\x20The\x20r\ - eturned\x20database\x20[long-running\n\x20operation][google.longrunning.\ - Operation]\x20has\x20a\x20name\x20of\x20the\x20format\n\x20`projects//instances//databases//operations/`,\n\x20and\x20can\x20be\x20used\x20to\x20track\x20the\x20progress\x20\ - of\x20the\x20operation,\x20and\x20to\x20cancel\x20it.\n\x20The\x20[metad\ - ata][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20\ - [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDataba\ - seMetadata].\n\x20The\x20[response][google.longrunning.Operation.respons\ - e]\x20type\n\x20is\x20[Database][google.spanner.admin.database.v1.Databa\ - se],\x20if\n\x20successful.\x20Cancelling\x20the\x20returned\x20operatio\ - n\x20will\x20stop\x20the\x20restore\x20and\n\x20delete\x20the\x20databas\ - e.\n\x20There\x20can\x20be\x20only\x20one\x20database\x20being\x20restor\ - ed\x20into\x20an\x20instance\x20at\x20a\x20time.\n\x20Once\x20the\x20res\ - tore\x20operation\x20completes,\x20a\x20new\x20restore\x20operation\x20c\ - an\x20be\n\x20initiated,\x20without\x20waiting\x20for\x20the\x20optimize\ - \x20operation\x20associated\x20with\x20the\n\x20first\x20restore\x20to\ - \x20complete.\n\n\r\n\x05\x06\0\x02\x10\x01\x12\x04\xdb\x02\x06\x15\n\r\ - \n\x05\x06\0\x02\x10\x02\x12\x04\xdb\x02\x16,\n\r\n\x05\x06\0\x02\x10\ - \x03\x12\x04\xdb\x027S\n\x0f\n\x05\x06\0\x02\x10\x04\x12\x06\xdc\x02\x04\ - \xdf\x02\x06\n\x13\n\t\x06\0\x02\x10\x04\xb0\xca\xbc\"\x12\x06\xdc\x02\ - \x04\xdf\x02\x06\n\r\n\x05\x06\0\x02\x10\x04\x12\x04\xe0\x02\x04G\n\x10\ - \n\x08\x06\0\x02\x10\x04\x9b\x08\0\x12\x04\xe0\x02\x04G\n\x0f\n\x05\x06\ - \0\x02\x10\x04\x12\x06\xe1\x02\x04\xe4\x02\x06\n\x11\n\x07\x06\0\x02\x10\ - \x04\x99\x08\x12\x06\xe1\x02\x04\xe4\x02\x06\n\xe9\x03\n\x04\x06\0\x02\ - \x11\x12\x06\xef\x02\x02\xf4\x02\x03\x1a\xd8\x03\x20Lists\x20database\ - \x20[longrunning-operations][google.longrunning.Operation].\n\x20A\x20da\ - tabase\x20operation\x20has\x20a\x20name\x20of\x20the\x20form\n\x20`proje\ - cts//instances//databases//operations/`.\n\x20The\x20long-running\x20operation\n\x20[metadata][google.lo\ - ngrunning.Operation.metadata]\x20field\x20type\n\x20`metadata.type_url`\ - \x20describes\x20the\x20type\x20of\x20the\x20metadata.\x20Operations\x20\ - returned\n\x20include\x20those\x20that\x20have\x20completed/failed/cance\ - led\x20within\x20the\x20last\x207\x20days,\n\x20and\x20pending\x20operat\ - ions.\n\n\r\n\x05\x06\0\x02\x11\x01\x12\x04\xef\x02\x06\x1c\n\r\n\x05\ - \x06\0\x02\x11\x02\x12\x04\xef\x02\x1d:\n\r\n\x05\x06\0\x02\x11\x03\x12\ - \x04\xef\x02Ec\n\x0f\n\x05\x06\0\x02\x11\x04\x12\x06\xf0\x02\x04\xf2\x02\ - \x06\n\x13\n\t\x06\0\x02\x11\x04\xb0\xca\xbc\"\x12\x06\xf0\x02\x04\xf2\ - \x02\x06\n\r\n\x05\x06\0\x02\x11\x04\x12\x04\xf3\x02\x044\n\x10\n\x08\ - \x06\0\x02\x11\x04\x9b\x08\0\x12\x04\xf3\x02\x044\n\x97\x05\n\x04\x06\0\ - \x02\x12\x12\x06\x80\x03\x02\x85\x03\x03\x1a\x86\x05\x20Lists\x20the\x20\ - backup\x20[long-running\x20operations][google.longrunning.Operation]\x20\ - in\n\x20the\x20given\x20instance.\x20A\x20backup\x20operation\x20has\x20\ - a\x20name\x20of\x20the\x20form\n\x20`projects//instances//backups//operations/`.\n\x20The\x20long-running\ - \x20operation\n\x20[metadata][google.longrunning.Operation.metadata]\x20\ - field\x20type\n\x20`metadata.type_url`\x20describes\x20the\x20type\x20of\ - \x20the\x20metadata.\x20Operations\x20returned\n\x20include\x20those\x20\ - that\x20have\x20completed/failed/canceled\x20within\x20the\x20last\x207\ - \x20days,\n\x20and\x20pending\x20operations.\x20Operations\x20returned\ - \x20are\x20ordered\x20by\n\x20`operation.metadata.value.progress.start_t\ - ime`\x20in\x20descending\x20order\x20starting\n\x20from\x20the\x20most\ - \x20recently\x20started\x20operation.\n\n\r\n\x05\x06\0\x02\x12\x01\x12\ - \x04\x80\x03\x06\x1a\n\r\n\x05\x06\0\x02\x12\x02\x12\x04\x80\x03\x1b6\n\ - \r\n\x05\x06\0\x02\x12\x03\x12\x04\x80\x03A]\n\x0f\n\x05\x06\0\x02\x12\ - \x04\x12\x06\x81\x03\x04\x83\x03\x06\n\x13\n\t\x06\0\x02\x12\x04\xb0\xca\ - \xbc\"\x12\x06\x81\x03\x04\x83\x03\x06\n\r\n\x05\x06\0\x02\x12\x04\x12\ - \x04\x84\x03\x044\n\x10\n\x08\x06\0\x02\x12\x04\x9b\x08\0\x12\x04\x84\ - \x03\x044\n5\n\x04\x06\0\x02\x13\x12\x06\x88\x03\x02\x8d\x03\x03\x1a%\ - \x20Lists\x20Cloud\x20Spanner\x20database\x20roles.\n\n\r\n\x05\x06\0\ - \x02\x13\x01\x12\x04\x88\x03\x06\x17\n\r\n\x05\x06\0\x02\x13\x02\x12\x04\ - \x88\x03\x180\n\r\n\x05\x06\0\x02\x13\x03\x12\x04\x88\x03;T\n\x0f\n\x05\ - \x06\0\x02\x13\x04\x12\x06\x89\x03\x04\x8b\x03\x06\n\x13\n\t\x06\0\x02\ - \x13\x04\xb0\xca\xbc\"\x12\x06\x89\x03\x04\x8b\x03\x06\n\r\n\x05\x06\0\ - \x02\x13\x04\x12\x04\x8c\x03\x044\n\x10\n\x08\x06\0\x02\x13\x04\x9b\x08\ - \0\x12\x04\x8c\x03\x044\n7\n\x02\x04\0\x12\x06\x91\x03\0\x9b\x03\x01\x1a\ - )\x20Information\x20about\x20the\x20database\x20restore.\n\n\x0b\n\x03\ - \x04\0\x01\x12\x04\x91\x03\x08\x13\n/\n\x04\x04\0\x02\0\x12\x04\x93\x03\ - \x02$\x1a!\x20The\x20type\x20of\x20the\x20restore\x20source.\n\n\r\n\x05\ - \x04\0\x02\0\x06\x12\x04\x93\x03\x02\x13\n\r\n\x05\x04\0\x02\0\x01\x12\ - \x04\x93\x03\x14\x1f\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x93\x03\"#\nL\n\ - \x04\x04\0\x08\0\x12\x06\x96\x03\x02\x9a\x03\x03\x1a<\x20Information\x20\ - about\x20the\x20source\x20used\x20to\x20restore\x20the\x20database.\n\n\ - \r\n\x05\x04\0\x08\0\x01\x12\x04\x96\x03\x08\x13\nk\n\x04\x04\0\x02\x01\ - \x12\x04\x99\x03\x04\x1f\x1a]\x20Information\x20about\x20the\x20backup\ - \x20used\x20to\x20restore\x20the\x20database.\x20The\x20backup\n\x20may\ - \x20no\x20longer\x20exist.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\x99\x03\ - \x04\x0e\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x99\x03\x0f\x1a\n\r\n\x05\ - \x04\0\x02\x01\x03\x12\x04\x99\x03\x1d\x1e\n)\n\x02\x04\x01\x12\x06\x9e\ - \x03\0\xfd\x03\x01\x1a\x1b\x20A\x20Cloud\x20Spanner\x20database.\n\n\x0b\ - \n\x03\x04\x01\x01\x12\x04\x9e\x03\x08\x10\n\r\n\x03\x04\x01\x07\x12\x06\ - \x9f\x03\x02\xa2\x03\x04\n\x0f\n\x05\x04\x01\x07\x9d\x08\x12\x06\x9f\x03\ - \x02\xa2\x03\x04\n>\n\x04\x04\x01\x04\0\x12\x06\xa5\x03\x02\xb9\x03\x03\ + /instances/*/backups/*}:testIamPermissions:\x01*\xdaA\x14resource,permis\ + sions\x1ax\xd2A\\https://www.googleapis.com/auth/cloud-platform,https://\ + www.googleapis.com/auth/spanner.admin\xcaA\x16spanner.googleapis.comB\ + \xac\x02\n$com.google.spanner.admin.database.v1B\x19SpannerDatabaseAdmin\ + ProtoP\x01ZHgoogle.golang.org/genproto/googleapis/spanner/admin/database\ + /v1;database\xaa\x02&Google.Cloud.Spanner.Admin.Database.V1\xca\x02&Goog\ + le\\Cloud\\Spanner\\Admin\\Database\\V1\xeaAJ\n\x1fspanner.googleapis.co\ + m/Instance\x12'projects/{project}/instances/{instance}J\xced\n\x07\x12\ + \x05\x0f\0\x92\x03\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\ + \x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\ + \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ + ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ + \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ + \x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/li\ + censes/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\ + \x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ + \x12\x03\x11\0)\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\ + \x14\0!\n\t\n\x02\x03\x02\x12\x03\x15\0)\n\t\n\x02\x03\x03\x12\x03\x16\0\ + #\n\t\n\x02\x03\x04\x12\x03\x17\0(\n\t\n\x02\x03\x05\x12\x03\x18\0$\n\t\ + \n\x02\x03\x06\x12\x03\x19\0-\n\t\n\x02\x03\x07\x12\x03\x1a\0%\n\t\n\x02\ + \x03\x08\x12\x03\x1b\0)\n\x08\n\x01\x08\x12\x03\x1d\0C\n\t\n\x02\x08%\ + \x12\x03\x1d\0C\n\x08\n\x01\x08\x12\x03\x1e\0_\n\t\n\x02\x08\x0b\x12\x03\ + \x1e\0_\n\x08\n\x01\x08\x12\x03\x1f\0\"\n\t\n\x02\x08\n\x12\x03\x1f\0\"\ + \n\x08\n\x01\x08\x12\x03\x20\0:\n\t\n\x02\x08\x08\x12\x03\x20\0:\n\x08\n\ + \x01\x08\x12\x03!\0=\n\t\n\x02\x08\x01\x12\x03!\0=\n\x08\n\x01\x08\x12\ + \x03\"\0E\n\t\n\x02\x08)\x12\x03\"\0E\n\t\n\x01\x08\x12\x04'\0*\x02\n\ + \xc1\x01\n\x04\x08\x9d\x08\0\x12\x04'\0*\x02\x1a\xb2\x01\x20The\x20Insta\ + nce\x20resource\x20is\x20defined\x20in\x20`google.spanner.admin.instance\ + .v1`.\n\x20Because\x20this\x20is\x20a\x20separate,\x20independent\x20API\ + \x20(technically),\x20we\x20redefine\n\x20the\x20resource\x20name\x20pat\ + tern\x20here.\n\n\xc9\x01\n\x02\x06\0\x12\x051\0\xba\x01\x01\x1a\xbb\x01\ + \x20Cloud\x20Spanner\x20Database\x20Admin\x20API\n\n\x20The\x20Cloud\x20\ + Spanner\x20Database\x20Admin\x20API\x20can\x20be\x20used\x20to\x20create\ + ,\x20drop,\x20and\n\x20list\x20databases.\x20It\x20also\x20enables\x20up\ + dating\x20the\x20schema\x20of\x20pre-existing\n\x20databases.\n\n\n\n\ + \x03\x06\0\x01\x12\x031\x08\x15\n\n\n\x03\x06\0\x03\x12\x032\x02>\n\x0c\ + \n\x05\x06\0\x03\x99\x08\x12\x032\x02>\n\x0b\n\x03\x06\0\x03\x12\x043\ + \x0256\n\r\n\x05\x06\0\x03\x9a\x08\x12\x043\x0256\n.\n\x04\x06\0\x02\0\ + \x12\x048\x02=\x03\x1a\x20\x20Lists\x20Cloud\x20Spanner\x20databases.\n\ + \n\x0c\n\x05\x06\0\x02\0\x01\x12\x038\x06\x13\n\x0c\n\x05\x06\0\x02\0\ + \x02\x12\x038\x14(\n\x0c\n\x05\x06\0\x02\0\x03\x12\x0383H\n\r\n\x05\x06\ + \0\x02\0\x04\x12\x049\x04;\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\ + \x12\x049\x04;\x06\n\x0c\n\x05\x06\0\x02\0\x04\x12\x03<\x044\n\x0f\n\x08\ + \x06\0\x02\0\x04\x9b\x08\0\x12\x03<\x044\n\xc8\x04\n\x04\x06\0\x02\x01\ + \x12\x04G\x02R\x03\x1a\xb9\x04\x20Creates\x20a\x20new\x20Cloud\x20Spanne\ + r\x20database\x20and\x20starts\x20to\x20prepare\x20it\x20for\x20serving.\ + \n\x20The\x20returned\x20[long-running\x20operation][google.longrunning.\ + Operation]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/operations/`\x20and\n\x20can\x20be\x20used\ + \x20to\x20track\x20preparation\x20of\x20the\x20database.\x20The\n\x20[me\ + tadata][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\ + \x20[CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateData\ + baseMetadata].\n\x20The\x20[response][google.longrunning.Operation.respo\ + nse]\x20field\x20type\x20is\n\x20[Database][google.spanner.admin.databas\ + e.v1.Database],\x20if\x20successful.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\ + \x03G\x06\x14\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03G\x15*\n\x0c\n\x05\ + \x06\0\x02\x01\x03\x12\x03H\x0f+\n\r\n\x05\x06\0\x02\x01\x04\x12\x04I\ + \x04L\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04I\x04L\x06\n\ + \x0c\n\x05\x06\0\x02\x01\x04\x12\x03M\x04E\n\x0f\n\x08\x06\0\x02\x01\x04\ + \x9b\x08\0\x12\x03M\x04E\n\r\n\x05\x06\0\x02\x01\x04\x12\x04N\x04Q\x06\n\ + \x0f\n\x07\x06\0\x02\x01\x04\x99\x08\x12\x04N\x04Q\x06\n;\n\x04\x06\0\ + \x02\x02\x12\x04U\x02Z\x03\x1a-\x20Gets\x20the\x20state\x20of\x20a\x20Cl\ + oud\x20Spanner\x20database.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03U\x06\ + \x11\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03U\x12$\n\x0c\n\x05\x06\0\x02\ + \x02\x03\x12\x03U/7\n\r\n\x05\x06\0\x02\x02\x04\x12\x04V\x04X\x06\n\x11\ + \n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04V\x04X\x06\n\x0c\n\x05\x06\0\ + \x02\x02\x04\x12\x03Y\x042\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\ + \x03Y\x042\n\x8a\x04\n\x04\x06\0\x02\x03\x12\x04d\x02o\x03\x1a\xfb\x03\ + \x20Updates\x20the\x20schema\x20of\x20a\x20Cloud\x20Spanner\x20database\ + \x20by\n\x20creating/altering/dropping\x20tables,\x20columns,\x20indexes\ + ,\x20etc.\x20The\x20returned\n\x20[long-running\x20operation][google.lon\ + grunning.Operation]\x20will\x20have\x20a\x20name\x20of\n\x20the\x20forma\ + t\x20`/operations/`\x20and\x20can\x20be\x20\ + used\x20to\n\x20track\x20execution\x20of\x20the\x20schema\x20change(s).\ + \x20The\n\x20[metadata][google.longrunning.Operation.metadata]\x20field\ + \x20type\x20is\n\x20[UpdateDatabaseDdlMetadata][google.spanner.admin.dat\ + abase.v1.UpdateDatabaseDdlMetadata].\n\x20The\x20operation\x20has\x20no\ + \x20response.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03d\x06\x17\n\x0c\n\ + \x05\x06\0\x02\x03\x02\x12\x03d\x180\n\x0c\n\x05\x06\0\x02\x03\x03\x12\ + \x03e\x0f+\n\r\n\x05\x06\0\x02\x03\x04\x12\x04f\x04i\x06\n\x11\n\t\x06\0\ + \x02\x03\x04\xb0\xca\xbc\"\x12\x04f\x04i\x06\n\x0c\n\x05\x06\0\x02\x03\ + \x04\x12\x03j\x04A\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03j\x04A\ + \n\r\n\x05\x06\0\x02\x03\x04\x12\x04k\x04n\x06\n\x0f\n\x07\x06\0\x02\x03\ + \x04\x99\x08\x12\x04k\x04n\x06\n=\n\x04\x06\0\x02\x04\x12\x04r\x02w\x03\ + \x1a/\x20Drops\x20(aka\x20deletes)\x20a\x20Cloud\x20Spanner\x20database.\ + \n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03r\x06\x12\n\x0c\n\x05\x06\0\x02\ + \x04\x02\x12\x03r\x13&\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03r1F\n\r\n\ + \x05\x06\0\x02\x04\x04\x12\x04s\x04u\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\ + \xca\xbc\"\x12\x04s\x04u\x06\n\x0c\n\x05\x06\0\x02\x04\x04\x12\x03v\x046\ + \n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03v\x046\n\xeb\x01\n\x04\ + \x06\0\x02\x05\x12\x05|\x02\x81\x01\x03\x1a\xdb\x01\x20Returns\x20the\ + \x20schema\x20of\x20a\x20Cloud\x20Spanner\x20database\x20as\x20a\x20list\ + \x20of\x20formatted\n\x20DDL\x20statements.\x20This\x20method\x20does\ + \x20not\x20show\x20pending\x20schema\x20updates,\x20those\x20may\n\x20be\ + \x20queried\x20using\x20the\x20[Operations][google.longrunning.Operation\ + s]\x20API.\n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03|\x06\x14\n\x0c\n\x05\ + \x06\0\x02\x05\x02\x12\x03|\x15*\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03|5\ + K\n\r\n\x05\x06\0\x02\x05\x04\x12\x04}\x04\x7f\x06\n\x11\n\t\x06\0\x02\ + \x05\x04\xb0\xca\xbc\"\x12\x04}\x04\x7f\x06\n\r\n\x05\x06\0\x02\x05\x04\ + \x12\x04\x80\x01\x046\n\x10\n\x08\x06\0\x02\x05\x04\x9b\x08\0\x12\x04\ + \x80\x01\x046\n\xe9\x01\n\x04\x06\0\x02\x06\x12\x06\x88\x01\x02\x93\x01\ + \x03\x1a\xd8\x01\x20Sets\x20the\x20access\x20control\x20policy\x20on\x20\ + a\x20database\x20resource.\n\x20Replaces\x20any\x20existing\x20policy.\n\ + \n\x20Authorization\x20requires\x20`spanner.databases.setIamPolicy`\n\ + \x20permission\x20on\x20[resource][google.iam.v1.SetIamPolicyRequest.res\ + ource].\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\x88\x01\x06\x12\n\r\n\x05\ + \x06\0\x02\x06\x02\x12\x04\x88\x01\x134\n\r\n\x05\x06\0\x02\x06\x03\x12\ + \x04\x89\x01\x0f#\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x8a\x01\x04\x91\ + \x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x8a\x01\x04\ + \x91\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\x92\x01\x04=\n\x10\n\ + \x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\x92\x01\x04=\n\x9a\x02\n\x04\ + \x06\0\x02\x07\x12\x06\x9b\x01\x02\xa6\x01\x03\x1a\x89\x02\x20Gets\x20th\ + e\x20access\x20control\x20policy\x20for\x20a\x20database\x20resource.\n\ + \x20Returns\x20an\x20empty\x20policy\x20if\x20a\x20database\x20exists\ + \x20but\x20does\n\x20not\x20have\x20a\x20policy\x20set.\n\n\x20Authoriza\ + tion\x20requires\x20`spanner.databases.getIamPolicy`\x20permission\x20on\ + \n\x20[resource][google.iam.v1.GetIamPolicyRequest.resource].\n\n\r\n\ + \x05\x06\0\x02\x07\x01\x12\x04\x9b\x01\x06\x12\n\r\n\x05\x06\0\x02\x07\ + \x02\x12\x04\x9b\x01\x134\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\x9c\x01\ + \x0f#\n\x0f\n\x05\x06\0\x02\x07\x04\x12\x06\x9d\x01\x04\xa4\x01\x06\n\ + \x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\x12\x06\x9d\x01\x04\xa4\x01\x06\ + \n\r\n\x05\x06\0\x02\x07\x04\x12\x04\xa5\x01\x046\n\x10\n\x08\x06\0\x02\ + \x07\x04\x9b\x08\0\x12\x04\xa5\x01\x046\n\xce\x02\n\x04\x06\0\x02\x08\ + \x12\x06\xae\x01\x02\xb9\x01\x03\x1a\xbd\x02\x20Returns\x20permissions\ + \x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20database\ + \x20resource.\n\n\x20Attempting\x20this\x20RPC\x20on\x20a\x20non-existen\ + t\x20Cloud\x20Spanner\x20database\x20will\n\x20result\x20in\x20a\x20NOT_\ + FOUND\x20error\x20if\x20the\x20user\x20has\n\x20`spanner.databases.list`\ + \x20permission\x20on\x20the\x20containing\x20Cloud\n\x20Spanner\x20insta\ + nce.\x20Otherwise\x20returns\x20an\x20empty\x20set\x20of\x20permissions.\ + \n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xae\x01\x06\x18\n\r\n\x05\x06\0\ + \x02\x08\x02\x12\x04\xae\x01\x19@\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\ + \xaf\x01\x0f7\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\xb0\x01\x04\xb7\x01\ + \x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\xb0\x01\x04\xb7\ + \x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xb8\x01\x04B\n\x10\n\x08\ + \x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xb8\x01\x04B\n)\n\x02\x04\0\x12\x06\ + \xbd\x01\0\xd9\x01\x01\x1a\x1b\x20A\x20Cloud\x20Spanner\x20database.\n\n\ + \x0b\n\x03\x04\0\x01\x12\x04\xbd\x01\x08\x10\n\r\n\x03\x04\0\x07\x12\x06\ + \xbe\x01\x02\xc1\x01\x04\n\x0f\n\x05\x04\0\x07\x9d\x08\x12\x06\xbe\x01\ + \x02\xc1\x01\x04\n>\n\x04\x04\0\x04\0\x12\x06\xc4\x01\x02\xce\x01\x03\ \x1a.\x20Indicates\x20the\x20current\x20state\x20of\x20the\x20database.\ - \n\n\r\n\x05\x04\x01\x04\0\x01\x12\x04\xa5\x03\x07\x0c\n\x20\n\x06\x04\ - \x01\x04\0\x02\0\x12\x04\xa7\x03\x04\x1a\x1a\x10\x20Not\x20specified.\n\ - \n\x0f\n\x07\x04\x01\x04\0\x02\0\x01\x12\x04\xa7\x03\x04\x15\n\x0f\n\x07\ - \x04\x01\x04\0\x02\0\x02\x12\x04\xa7\x03\x18\x19\n\x85\x01\n\x06\x04\x01\ - \x04\0\x02\x01\x12\x04\xab\x03\x04\x11\x1au\x20The\x20database\x20is\x20\ - still\x20being\x20created.\x20Operations\x20on\x20the\x20database\x20may\ - \x20fail\n\x20with\x20`FAILED_PRECONDITION`\x20in\x20this\x20state.\n\n\ - \x0f\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x04\xab\x03\x04\x0c\n\x0f\n\x07\ - \x04\x01\x04\0\x02\x01\x02\x12\x04\xab\x03\x0f\x10\nB\n\x06\x04\x01\x04\ - \0\x02\x02\x12\x04\xae\x03\x04\x0e\x1a2\x20The\x20database\x20is\x20full\ - y\x20created\x20and\x20ready\x20for\x20use.\n\n\x0f\n\x07\x04\x01\x04\0\ - \x02\x02\x01\x12\x04\xae\x03\x04\t\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x02\ - \x12\x04\xae\x03\x0c\r\n\x96\x03\n\x06\x04\x01\x04\0\x02\x03\x12\x04\xb8\ - \x03\x04\x19\x1a\x85\x03\x20The\x20database\x20is\x20fully\x20created\ - \x20and\x20ready\x20for\x20use,\x20but\x20is\x20still\n\x20being\x20opti\ - mized\x20for\x20performance\x20and\x20cannot\x20handle\x20full\x20load.\ - \n\n\x20In\x20this\x20state,\x20the\x20database\x20still\x20references\ - \x20the\x20backup\n\x20it\x20was\x20restore\x20from,\x20preventing\x20th\ - e\x20backup\n\x20from\x20being\x20deleted.\x20When\x20optimizations\x20a\ - re\x20complete,\x20the\x20full\x20performance\n\x20of\x20the\x20database\ - \x20will\x20be\x20restored,\x20and\x20the\x20database\x20will\x20transit\ - ion\x20to\n\x20`READY`\x20state.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x01\ - \x12\x04\xb8\x03\x04\x14\n\x0f\n\x07\x04\x01\x04\0\x02\x03\x02\x12\x04\ - \xb8\x03\x17\x18\n\x9d\x02\n\x04\x04\x01\x02\0\x12\x04\xc0\x03\x02;\x1a\ - \x8e\x02\x20Required.\x20The\x20name\x20of\x20the\x20database.\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects//instances//databases/`,\n\x20where\x20``\x20is\x20as\x20spec\ - ified\x20in\x20the\x20`CREATE\x20DATABASE`\n\x20statement.\x20This\x20na\ - me\x20can\x20be\x20passed\x20to\x20other\x20API\x20methods\x20to\n\x20id\ - entify\x20the\x20database.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xc0\x03\ - \x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xc0\x03\t\r\n\r\n\x05\x04\ - \x01\x02\0\x03\x12\x04\xc0\x03\x10\x11\n\r\n\x05\x04\x01\x02\0\x08\x12\ - \x04\xc0\x03\x12:\n\x10\n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\xc0\ - \x03\x139\n8\n\x04\x04\x01\x02\x01\x12\x04\xc3\x03\x02>\x1a*\x20Output\ - \x20only.\x20The\x20current\x20database\x20state.\n\n\r\n\x05\x04\x01\ - \x02\x01\x06\x12\x04\xc3\x03\x02\x07\n\r\n\x05\x04\x01\x02\x01\x01\x12\ - \x04\xc3\x03\x08\r\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xc3\x03\x10\x11\ - \n\r\n\x05\x04\x01\x02\x01\x08\x12\x04\xc3\x03\x12=\n\x10\n\x08\x04\x01\ - \x02\x01\x08\x9c\x08\0\x12\x04\xc3\x03\x13<\nX\n\x04\x04\x01\x02\x02\x12\ - \x04\xc6\x03\x02X\x1aJ\x20Output\x20only.\x20If\x20exists,\x20the\x20tim\ - e\x20at\x20which\x20the\x20database\x20creation\x20started.\n\n\r\n\x05\ - \x04\x01\x02\x02\x06\x12\x04\xc6\x03\x02\x1b\n\r\n\x05\x04\x01\x02\x02\ - \x01\x12\x04\xc6\x03\x1c'\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xc6\x03*\ - +\n\r\n\x05\x04\x01\x02\x02\x08\x12\x04\xc6\x03,W\n\x10\n\x08\x04\x01\ - \x02\x02\x08\x9c\x08\0\x12\x04\xc6\x03-V\nt\n\x04\x04\x01\x02\x03\x12\ - \x04\xca\x03\x02K\x1af\x20Output\x20only.\x20Applicable\x20only\x20for\ - \x20restored\x20databases.\x20Contains\x20information\n\x20about\x20the\ - \x20restore\x20source.\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\xca\x03\ - \x02\r\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xca\x03\x0e\x1a\n\r\n\x05\ - \x04\x01\x02\x03\x03\x12\x04\xca\x03\x1d\x1e\n\r\n\x05\x04\x01\x02\x03\ - \x08\x12\x04\xca\x03\x1fJ\n\x10\n\x08\x04\x01\x02\x03\x08\x9c\x08\0\x12\ - \x04\xca\x03\x20I\n\xfc\x01\n\x04\x04\x01\x02\x04\x12\x04\xd0\x03\x02U\ - \x1a\xed\x01\x20Output\x20only.\x20For\x20databases\x20that\x20are\x20us\ - ing\x20customer\x20managed\x20encryption,\x20this\n\x20field\x20contains\ - \x20the\x20encryption\x20configuration\x20for\x20the\x20database.\n\x20F\ - or\x20databases\x20that\x20are\x20using\x20Google\x20default\x20or\x20ot\ - her\x20types\x20of\x20encryption,\n\x20this\x20field\x20is\x20empty.\n\n\ - \r\n\x05\x04\x01\x02\x04\x06\x12\x04\xd0\x03\x02\x12\n\r\n\x05\x04\x01\ - \x02\x04\x01\x12\x04\xd0\x03\x13$\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\ - \xd0\x03'(\n\r\n\x05\x04\x01\x02\x04\x08\x12\x04\xd0\x03)T\n\x10\n\x08\ - \x04\x01\x02\x04\x08\x9c\x08\0\x12\x04\xd0\x03*S\n\xda\x03\n\x04\x04\x01\ - \x02\x05\x12\x04\xdb\x03\x02Z\x1a\xcb\x03\x20Output\x20only.\x20For\x20d\ - atabases\x20that\x20are\x20using\x20customer\x20managed\x20encryption,\ - \x20this\n\x20field\x20contains\x20the\x20encryption\x20information\x20f\ - or\x20the\x20database,\x20such\x20as\n\x20encryption\x20state\x20and\x20\ - the\x20Cloud\x20KMS\x20key\x20versions\x20that\x20are\x20in\x20use.\n\n\ - \x20For\x20databases\x20that\x20are\x20using\x20Google\x20default\x20or\ - \x20other\x20types\x20of\x20encryption,\n\x20this\x20field\x20is\x20empt\ - y.\n\n\x20This\x20field\x20is\x20propagated\x20lazily\x20from\x20the\x20\ - backend.\x20There\x20might\x20be\x20a\x20delay\n\x20from\x20when\x20a\ - \x20key\x20version\x20is\x20being\x20used\x20and\x20when\x20it\x20appear\ - s\x20in\x20this\x20field.\n\n\r\n\x05\x04\x01\x02\x05\x04\x12\x04\xdb\ - \x03\x02\n\n\r\n\x05\x04\x01\x02\x05\x06\x12\x04\xdb\x03\x0b\x19\n\r\n\ - \x05\x04\x01\x02\x05\x01\x12\x04\xdb\x03\x1a)\n\r\n\x05\x04\x01\x02\x05\ - \x03\x12\x04\xdb\x03,-\n\r\n\x05\x04\x01\x02\x05\x08\x12\x04\xdb\x03.Y\n\ - \x10\n\x08\x04\x01\x02\x05\x08\x9c\x08\0\x12\x04\xdb\x03/X\n\xbd\x02\n\ - \x04\x04\x01\x02\x06\x12\x04\xe2\x03\x02R\x1a\xae\x02\x20Output\x20only.\ - \x20The\x20period\x20in\x20which\x20Cloud\x20Spanner\x20retains\x20all\ - \x20versions\x20of\x20data\n\x20for\x20the\x20database.\x20This\x20is\ - \x20the\x20same\x20as\x20the\x20value\x20of\x20version_retention_period\ - \n\x20database\x20option\x20set\x20using\n\x20[UpdateDatabaseDdl][google\ - .spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].\x20Defaults\ - \x20to\x201\x20hour,\n\x20if\x20not\x20set.\n\n\r\n\x05\x04\x01\x02\x06\ - \x05\x12\x04\xe2\x03\x02\x08\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xe2\ - \x03\t!\n\r\n\x05\x04\x01\x02\x06\x03\x12\x04\xe2\x03$%\n\r\n\x05\x04\ - \x01\x02\x06\x08\x12\x04\xe2\x03&Q\n\x10\n\x08\x04\x01\x02\x06\x08\x9c\ - \x08\0\x12\x04\xe2\x03'P\n\xec\x02\n\x04\x04\x01\x02\x07\x12\x04\xe9\x03\ - \x02b\x1a\xdd\x02\x20Output\x20only.\x20Earliest\x20timestamp\x20at\x20w\ - hich\x20older\x20versions\x20of\x20the\x20data\x20can\x20be\n\x20read.\ - \x20This\x20value\x20is\x20continuously\x20updated\x20by\x20Cloud\x20Spa\ - nner\x20and\x20becomes\x20stale\n\x20the\x20moment\x20it\x20is\x20querie\ - d.\x20If\x20you\x20are\x20using\x20this\x20value\x20to\x20recover\x20dat\ - a,\x20make\n\x20sure\x20to\x20account\x20for\x20the\x20time\x20from\x20t\ - he\x20moment\x20when\x20the\x20value\x20is\x20queried\x20to\n\x20the\x20\ - moment\x20when\x20you\x20initiate\x20the\x20recovery.\n\n\r\n\x05\x04\ - \x01\x02\x07\x06\x12\x04\xe9\x03\x02\x1b\n\r\n\x05\x04\x01\x02\x07\x01\ - \x12\x04\xe9\x03\x1c1\n\r\n\x05\x04\x01\x02\x07\x03\x12\x04\xe9\x0345\n\ - \r\n\x05\x04\x01\x02\x07\x08\x12\x04\xe9\x036a\n\x10\n\x08\x04\x01\x02\ - \x07\x08\x9c\x08\0\x12\x04\xe9\x037`\n\x98\x02\n\x04\x04\x01\x02\x08\x12\ - \x04\xf1\x03\x02H\x1a\x89\x02\x20Output\x20only.\x20The\x20read-write\ - \x20region\x20which\x20contains\x20the\x20database's\x20leader\n\x20repl\ - icas.\n\n\x20This\x20is\x20the\x20same\x20as\x20the\x20value\x20of\x20de\ - fault_leader\n\x20database\x20option\x20set\x20using\x20DatabaseAdmin.Cr\ - eateDatabase\x20or\n\x20DatabaseAdmin.UpdateDatabaseDdl.\x20If\x20not\ - \x20explicitly\x20set,\x20this\x20is\x20empty.\n\n\r\n\x05\x04\x01\x02\ - \x08\x05\x12\x04\xf1\x03\x02\x08\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\ - \xf1\x03\t\x17\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xf1\x03\x1a\x1b\n\r\ - \n\x05\x04\x01\x02\x08\x08\x12\x04\xf1\x03\x1cG\n\x10\n\x08\x04\x01\x02\ - \x08\x08\x9c\x08\0\x12\x04\xf1\x03\x1dF\nG\n\x04\x04\x01\x02\t\x12\x04\ - \xf4\x03\x02T\x1a9\x20Output\x20only.\x20The\x20dialect\x20of\x20the\x20\ - Cloud\x20Spanner\x20Database.\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xf4\ - \x03\x02\x11\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xf4\x03\x12\"\n\r\n\x05\ - \x04\x01\x02\t\x03\x12\x04\xf4\x03%'\n\r\n\x05\x04\x01\x02\t\x08\x12\x04\ - \xf4\x03(S\n\x10\n\x08\x04\x01\x02\t\x08\x9c\x08\0\x12\x04\xf4\x03)R\ne\ - \n\x04\x04\x01\x02\n\x12\x04\xf8\x03\x02#\x1aW\x20Whether\x20drop\x20pro\ - tection\x20is\x20enabled\x20for\x20this\x20database.\x20Defaults\x20to\ - \x20false,\n\x20if\x20not\x20set.\n\n\r\n\x05\x04\x01\x02\n\x05\x12\x04\ - \xf8\x03\x02\x06\n\r\n\x05\x04\x01\x02\n\x01\x12\x04\xf8\x03\x07\x1d\n\r\ - \n\x05\x04\x01\x02\n\x03\x12\x04\xf8\x03\x20\"\n\x88\x01\n\x04\x04\x01\ - \x02\x0b\x12\x04\xfc\x03\x02D\x1az\x20Output\x20only.\x20If\x20true,\x20\ - the\x20database\x20is\x20being\x20updated.\x20If\x20false,\x20there\x20a\ - re\x20no\n\x20ongoing\x20update\x20operations\x20for\x20the\x20database.\ - \n\n\r\n\x05\x04\x01\x02\x0b\x05\x12\x04\xfc\x03\x02\x06\n\r\n\x05\x04\ - \x01\x02\x0b\x01\x12\x04\xfc\x03\x07\x12\n\r\n\x05\x04\x01\x02\x0b\x03\ - \x12\x04\xfc\x03\x15\x17\n\r\n\x05\x04\x01\x02\x0b\x08\x12\x04\xfc\x03\ - \x18C\n\x10\n\x08\x04\x01\x02\x0b\x08\x9c\x08\0\x12\x04\xfc\x03\x19B\nn\ - \n\x02\x04\x02\x12\x06\x80\x04\0\x92\x04\x01\x1a`\x20The\x20request\x20f\ - or\x20[ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.Lis\ - tDatabases].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\x80\x04\x08\x1c\n\x8d\x01\ - \n\x04\x04\x02\x02\0\x12\x06\x83\x04\x02\x88\x04\x04\x1a}\x20Required.\ - \x20The\x20instance\x20whose\x20databases\x20should\x20be\x20listed.\n\ - \x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/\ - `.\n\n\r\n\x05\x04\x02\x02\0\x05\x12\x04\x83\x04\x02\x08\n\r\n\ - \x05\x04\x02\x02\0\x01\x12\x04\x83\x04\t\x0f\n\r\n\x05\x04\x02\x02\0\x03\ - \x12\x04\x83\x04\x12\x13\n\x0f\n\x05\x04\x02\x02\0\x08\x12\x06\x83\x04\ - \x14\x88\x04\x03\n\x10\n\x08\x04\x02\x02\0\x08\x9c\x08\0\x12\x04\x84\x04\ - \x04*\n\x11\n\x07\x04\x02\x02\0\x08\x9f\x08\x12\x06\x85\x04\x04\x87\x04\ - \x05\n\x86\x01\n\x04\x04\x02\x02\x01\x12\x04\x8c\x04\x02\x16\x1ax\x20Num\ - ber\x20of\x20databases\x20to\x20be\x20returned\x20in\x20the\x20response.\ - \x20If\x200\x20or\x20less,\n\x20defaults\x20to\x20the\x20server's\x20max\ - imum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\ - \x8c\x04\x02\x07\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\x8c\x04\x08\x11\n\ - \r\n\x05\x04\x02\x02\x01\x03\x12\x04\x8c\x04\x14\x15\n\xf9\x01\n\x04\x04\ - \x02\x02\x02\x12\x04\x91\x04\x02\x18\x1a\xea\x01\x20If\x20non-empty,\x20\ - `page_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spa\ - nner.admin.database.v1.ListDatabasesResponse.next_page_token]\x20from\ - \x20a\n\x20previous\x20[ListDatabasesResponse][google.spanner.admin.data\ - base.v1.ListDatabasesResponse].\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\ - \x91\x04\x02\x08\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x91\x04\t\x13\n\r\ - \n\x05\x04\x02\x02\x02\x03\x12\x04\x91\x04\x16\x17\no\n\x02\x04\x03\x12\ - \x06\x95\x04\0\x9d\x04\x01\x1aa\x20The\x20response\x20for\x20[ListDataba\ - ses][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].\n\n\ - \x0b\n\x03\x04\x03\x01\x12\x04\x95\x04\x08\x1d\n3\n\x04\x04\x03\x02\0\ - \x12\x04\x97\x04\x02\"\x1a%\x20Databases\x20that\x20matched\x20the\x20re\ - quest.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x04\x97\x04\x02\n\n\r\n\x05\x04\ - \x03\x02\0\x06\x12\x04\x97\x04\x0b\x13\n\r\n\x05\x04\x03\x02\0\x01\x12\ - \x04\x97\x04\x14\x1d\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x97\x04\x20!\n\ - \xbc\x01\n\x04\x04\x03\x02\x01\x12\x04\x9c\x04\x02\x1d\x1a\xad\x01\x20`n\ - ext_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[List\ - Databases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]\ - \x20call\x20to\x20fetch\x20more\n\x20of\x20the\x20matching\x20databases.\ - \n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\x9c\x04\x02\x08\n\r\n\x05\x04\ - \x03\x02\x01\x01\x12\x04\x9c\x04\t\x18\n\r\n\x05\x04\x03\x02\x01\x03\x12\ - \x04\x9c\x04\x1b\x1c\np\n\x02\x04\x04\x12\x06\xa0\x04\0\xbe\x04\x01\x1ab\ - \x20The\x20request\x20for\x20[CreateDatabase][google.spanner.admin.datab\ - ase.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\ - \xa0\x04\x08\x1d\n\x9a\x01\n\x04\x04\x04\x02\0\x12\x06\xa3\x04\x02\xa8\ - \x04\x04\x1a\x89\x01\x20Required.\x20The\x20name\x20of\x20the\x20instanc\ - e\x20that\x20will\x20serve\x20the\x20new\x20database.\n\x20Values\x20are\ - \x20of\x20the\x20form\x20`projects//instances/`.\n\n\ - \r\n\x05\x04\x04\x02\0\x05\x12\x04\xa3\x04\x02\x08\n\r\n\x05\x04\x04\x02\ - \0\x01\x12\x04\xa3\x04\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xa3\x04\ - \x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xa3\x04\x14\xa8\x04\x03\n\ - \x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xa4\x04\x04*\n\x11\n\x07\ - \x04\x04\x02\0\x08\x9f\x08\x12\x06\xa5\x04\x04\xa7\x04\x05\n\xe6\x02\n\ - \x04\x04\x04\x02\x01\x12\x04\xaf\x04\x02G\x1a\xd7\x02\x20Required.\x20A\ - \x20`CREATE\x20DATABASE`\x20statement,\x20which\x20specifies\x20the\x20I\ - D\x20of\x20the\n\x20new\x20database.\x20\x20The\x20database\x20ID\x20mus\ - t\x20conform\x20to\x20the\x20regular\x20expression\n\x20`[a-z][a-z0-9_\\\ - -]*[a-z0-9]`\x20and\x20be\x20between\x202\x20and\x2030\x20characters\x20\ - in\x20length.\n\x20If\x20the\x20database\x20ID\x20is\x20a\x20reserved\ - \x20word\x20or\x20if\x20it\x20contains\x20a\x20hyphen,\x20the\n\x20datab\ - ase\x20ID\x20must\x20be\x20enclosed\x20in\x20backticks\x20(``\x20`\x20``\ - ).\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xaf\x04\x02\x08\n\r\n\x05\x04\ - \x04\x02\x01\x01\x12\x04\xaf\x04\t\x19\n\r\n\x05\x04\x04\x02\x01\x03\x12\ - \x04\xaf\x04\x1c\x1d\n\r\n\x05\x04\x04\x02\x01\x08\x12\x04\xaf\x04\x1eF\ - \n\x10\n\x08\x04\x04\x02\x01\x08\x9c\x08\0\x12\x04\xaf\x04\x1fE\n\x97\ - \x02\n\x04\x04\x04\x02\x02\x12\x04\xb5\x04\x02P\x1a\x88\x02\x20Optional.\ - \x20A\x20list\x20of\x20DDL\x20statements\x20to\x20run\x20inside\x20the\ - \x20newly\x20created\n\x20database.\x20Statements\x20can\x20create\x20ta\ - bles,\x20indexes,\x20etc.\x20These\n\x20statements\x20execute\x20atomica\ - lly\x20with\x20the\x20creation\x20of\x20the\x20database:\n\x20if\x20ther\ - e\x20is\x20an\x20error\x20in\x20any\x20statement,\x20the\x20database\x20\ - is\x20not\x20created.\n\n\r\n\x05\x04\x04\x02\x02\x04\x12\x04\xb5\x04\ - \x02\n\n\r\n\x05\x04\x04\x02\x02\x05\x12\x04\xb5\x04\x0b\x11\n\r\n\x05\ - \x04\x04\x02\x02\x01\x12\x04\xb5\x04\x12\"\n\r\n\x05\x04\x04\x02\x02\x03\ - \x12\x04\xb5\x04%&\n\r\n\x05\x04\x04\x02\x02\x08\x12\x04\xb5\x04'O\n\x10\ - \n\x08\x04\x04\x02\x02\x08\x9c\x08\0\x12\x04\xb5\x04(N\n\xc0\x01\n\x04\ - \x04\x04\x02\x03\x12\x04\xba\x04\x02R\x1a\xb1\x01\x20Optional.\x20The\ - \x20encryption\x20configuration\x20for\x20the\x20database.\x20If\x20this\ - \x20field\x20is\x20not\n\x20specified,\x20Cloud\x20Spanner\x20will\x20en\ - crypt/decrypt\x20all\x20data\x20at\x20rest\x20using\n\x20Google\x20defau\ - lt\x20encryption.\n\n\r\n\x05\x04\x04\x02\x03\x06\x12\x04\xba\x04\x02\ - \x12\n\r\n\x05\x04\x04\x02\x03\x01\x12\x04\xba\x04\x13$\n\r\n\x05\x04\ - \x04\x02\x03\x03\x12\x04\xba\x04'(\n\r\n\x05\x04\x04\x02\x03\x08\x12\x04\ - \xba\x04)Q\n\x10\n\x08\x04\x04\x02\x03\x08\x9c\x08\0\x12\x04\xba\x04*P\n\ - D\n\x04\x04\x04\x02\x04\x12\x04\xbd\x04\x02P\x1a6\x20Optional.\x20The\ - \x20dialect\x20of\x20the\x20Cloud\x20Spanner\x20Database.\n\n\r\n\x05\ - \x04\x04\x02\x04\x06\x12\x04\xbd\x04\x02\x11\n\r\n\x05\x04\x04\x02\x04\ - \x01\x12\x04\xbd\x04\x12\"\n\r\n\x05\x04\x04\x02\x04\x03\x12\x04\xbd\x04\ - %&\n\r\n\x05\x04\x04\x02\x04\x08\x12\x04\xbd\x04'O\n\x10\n\x08\x04\x04\ - \x02\x04\x08\x9c\x08\0\x12\x04\xbd\x04(N\n\x8d\x01\n\x02\x04\x05\x12\x06\ - \xc2\x04\0\xc7\x04\x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20oper\ - ation\x20returned\x20by\n\x20[CreateDatabase][google.spanner.admin.datab\ - ase.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\ - \xc2\x04\x08\x1e\n-\n\x04\x04\x05\x02\0\x12\x06\xc4\x04\x02\xc6\x04\x1a\ - \x1a\x1d\x20The\x20database\x20being\x20created.\n\n\r\n\x05\x04\x05\x02\ - \0\x05\x12\x04\xc4\x04\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xc4\ - \x04\t\x11\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xc4\x04\x14\x15\n\x0f\n\ - \x05\x04\x05\x02\0\x08\x12\x06\xc4\x04\x16\xc6\x04\x19\n\x11\n\x07\x04\ - \x05\x02\0\x08\x9f\x08\x12\x06\xc4\x04\x17\xc6\x04\x18\nj\n\x02\x04\x06\ - \x12\x06\xca\x04\0\xd3\x04\x01\x1a\\\x20The\x20request\x20for\x20[GetDat\ - abase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase].\n\n\ - \x0b\n\x03\x04\x06\x01\x12\x04\xca\x04\x08\x1a\n\x98\x01\n\x04\x04\x06\ - \x02\0\x12\x06\xcd\x04\x02\xd2\x04\x04\x1a\x87\x01\x20Required.\x20The\ - \x20name\x20of\x20the\x20requested\x20database.\x20Values\x20are\x20of\ - \x20the\x20form\n\x20`projects//instances//databases/\ - `.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\xcd\x04\x02\x08\n\r\n\ - \x05\x04\x06\x02\0\x01\x12\x04\xcd\x04\t\r\n\r\n\x05\x04\x06\x02\0\x03\ - \x12\x04\xcd\x04\x10\x11\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xcd\x04\ - \x12\xd2\x04\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xce\x04\ - \x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\xcf\x04\x04\xd1\x04\ - \x05\nq\n\x02\x04\x07\x12\x06\xd7\x04\0\xe1\x04\x01\x1ac\x20The\x20reque\ - st\x20for\n\x20[UpdateDatabase][google.spanner.admin.database.v1.Databas\ - eAdmin.UpdateDatabase].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xd7\x04\x08\ - \x1d\n\xa4\x01\n\x04\x04\x07\x02\0\x12\x04\xdb\x04\x02A\x1a\x95\x01\x20R\ - equired.\x20The\x20database\x20to\x20update.\n\x20The\x20`name`\x20field\ - \x20of\x20the\x20database\x20is\x20of\x20the\x20form\n\x20`projects//instances//databases/`.\n\n\r\n\x05\x04\x07\ - \x02\0\x06\x12\x04\xdb\x04\x02\n\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xdb\ - \x04\x0b\x13\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xdb\x04\x16\x17\n\r\n\ - \x05\x04\x07\x02\0\x08\x12\x04\xdb\x04\x18@\n\x10\n\x08\x04\x07\x02\0\ - \x08\x9c\x08\0\x12\x04\xdb\x04\x19?\ny\n\x04\x04\x07\x02\x01\x12\x06\xdf\ - \x04\x02\xe0\x04/\x1ai\x20Required.\x20The\x20list\x20of\x20fields\x20to\ - \x20update.\x20Currently,\x20only\n\x20`enable_drop_protection`\x20field\ - \x20can\x20be\x20updated.\n\n\r\n\x05\x04\x07\x02\x01\x06\x12\x04\xdf\ - \x04\x02\x1b\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xdf\x04\x1c'\n\r\n\ - \x05\x04\x07\x02\x01\x03\x12\x04\xdf\x04*+\n\r\n\x05\x04\x07\x02\x01\x08\ - \x12\x04\xe0\x04\x06.\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\ - \xe0\x04\x07-\n\x8d\x01\n\x02\x04\x08\x12\x06\xe5\x04\0\xf2\x04\x01\x1a\ - \x7f\x20Metadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\ - \x20[UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.Upda\ - teDatabase].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xe5\x04\x08\x1e\nq\n\x04\ - \x04\x08\x02\0\x12\x04\xe8\x04\x02$\x1ac\x20The\x20request\x20for\n\x20[\ - UpdateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDat\ - abase].\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xe8\x04\x02\x17\n\r\n\x05\ - \x04\x08\x02\0\x01\x12\x04\xe8\x04\x18\x1f\n\r\n\x05\x04\x08\x02\0\x03\ - \x12\x04\xe8\x04\"#\n\x80\x01\n\x04\x04\x08\x02\x01\x12\x04\xed\x04\x02!\ - \x1ar\x20The\x20progress\x20of\x20the\n\x20[UpdateDatabase][google.spann\ - er.admin.database.v1.DatabaseAdmin.UpdateDatabase]\n\x20operation.\n\n\r\ - \n\x05\x04\x08\x02\x01\x06\x12\x04\xed\x04\x02\x13\n\r\n\x05\x04\x08\x02\ - \x01\x01\x12\x04\xed\x04\x14\x1c\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\ - \xed\x04\x1f\x20\n\x94\x01\n\x04\x04\x08\x02\x02\x12\x04\xf1\x04\x02,\ - \x1a\x85\x01\x20The\x20time\x20at\x20which\x20this\x20operation\x20was\ - \x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\n\x20in\x20the\ - \x20process\x20of\x20undoing\x20itself\x20(which\x20is\x20best-effort).\ - \n\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\xf1\x04\x02\x1b\n\r\n\x05\x04\ - \x08\x02\x02\x01\x12\x04\xf1\x04\x1c'\n\r\n\x05\x04\x08\x02\x02\x03\x12\ - \x04\xf1\x04*+\n\x99\x07\n\x02\x04\t\x12\x06\x84\x05\0\xa4\x05\x01\x1a\ + \n\n\r\n\x05\x04\0\x04\0\x01\x12\x04\xc4\x01\x07\x0c\n\x20\n\x06\x04\0\ + \x04\0\x02\0\x12\x04\xc6\x01\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\ + \x0f\n\x07\x04\0\x04\0\x02\0\x01\x12\x04\xc6\x01\x04\x15\n\x0f\n\x07\x04\ + \0\x04\0\x02\0\x02\x12\x04\xc6\x01\x18\x19\n\x85\x01\n\x06\x04\0\x04\0\ + \x02\x01\x12\x04\xca\x01\x04\x11\x1au\x20The\x20database\x20is\x20still\ + \x20being\x20created.\x20Operations\x20on\x20the\x20database\x20may\x20f\ + ail\n\x20with\x20`FAILED_PRECONDITION`\x20in\x20this\x20state.\n\n\x0f\n\ + \x07\x04\0\x04\0\x02\x01\x01\x12\x04\xca\x01\x04\x0c\n\x0f\n\x07\x04\0\ + \x04\0\x02\x01\x02\x12\x04\xca\x01\x0f\x10\nB\n\x06\x04\0\x04\0\x02\x02\ + \x12\x04\xcd\x01\x04\x0e\x1a2\x20The\x20database\x20is\x20fully\x20creat\ + ed\x20and\x20ready\x20for\x20use.\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\ + \x12\x04\xcd\x01\x04\t\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xcd\ + \x01\x0c\r\n\x9d\x02\n\x04\x04\0\x02\0\x12\x04\xd5\x01\x02\x12\x1a\x8e\ + \x02\x20Required.\x20The\x20name\x20of\x20the\x20database.\x20Values\x20\ + are\x20of\x20the\x20form\n\x20`projects//instances//d\ + atabases/`,\n\x20where\x20``\x20is\x20as\x20specifie\ + d\x20in\x20the\x20`CREATE\x20DATABASE`\n\x20statement.\x20This\x20name\ + \x20can\x20be\x20passed\x20to\x20other\x20API\x20methods\x20to\n\x20iden\ + tify\x20the\x20database.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xd5\x01\x02\ + \x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xd5\x01\t\r\n\r\n\x05\x04\0\x02\0\ + \x03\x12\x04\xd5\x01\x10\x11\n8\n\x04\x04\0\x02\x01\x12\x04\xd8\x01\x02\ + \x12\x1a*\x20Output\x20only.\x20The\x20current\x20database\x20state.\n\n\ + \r\n\x05\x04\0\x02\x01\x06\x12\x04\xd8\x01\x02\x07\n\r\n\x05\x04\0\x02\ + \x01\x01\x12\x04\xd8\x01\x08\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xd8\ + \x01\x10\x11\no\n\x02\x04\x01\x12\x06\xdd\x01\0\xf0\x01\x01\x1aa\x20The\ + \x20request\x20for\n\x20[ListDatabases][google.spanner.admin.database.v1\ + .DatabaseAdmin.ListDatabases].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xdd\x01\ + \x08\x1c\n\x8d\x01\n\x04\x04\x01\x02\0\x12\x06\xe0\x01\x02\xe5\x01\x04\ + \x1a}\x20Required.\x20The\x20instance\x20whose\x20databases\x20should\ + \x20be\x20listed.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects/<\ + project>/instances/`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\ + \xe0\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\xe0\x01\t\x0f\n\r\n\ + \x05\x04\x01\x02\0\x03\x12\x04\xe0\x01\x12\x13\n\x0f\n\x05\x04\x01\x02\0\ + \x08\x12\x06\xe0\x01\x14\xe5\x01\x03\n\x10\n\x08\x04\x01\x02\0\x08\x9c\ + \x08\0\x12\x04\xe1\x01\x04*\n\x11\n\x07\x04\x01\x02\0\x08\x9f\x08\x12\ + \x06\xe2\x01\x04\xe4\x01\x05\n\x86\x01\n\x04\x04\x01\x02\x01\x12\x04\xe9\ + \x01\x02\x16\x1ax\x20Number\x20of\x20databases\x20to\x20be\x20returned\ + \x20in\x20the\x20response.\x20If\x200\x20or\x20less,\n\x20defaults\x20to\ + \x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\x05\ + \x04\x01\x02\x01\x05\x12\x04\xe9\x01\x02\x07\n\r\n\x05\x04\x01\x02\x01\ + \x01\x12\x04\xe9\x01\x08\x11\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xe9\ + \x01\x14\x15\n\xfa\x01\n\x04\x04\x01\x02\x02\x12\x04\xef\x01\x02\x18\x1a\ + \xeb\x01\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\ + \x20[next_page_token][google.spanner.admin.database.v1.ListDatabasesResp\ + onse.next_page_token]\n\x20from\x20a\x20previous\n\x20[ListDatabasesResp\ + onse][google.spanner.admin.database.v1.ListDatabasesResponse].\n\n\r\n\ + \x05\x04\x01\x02\x02\x05\x12\x04\xef\x01\x02\x08\n\r\n\x05\x04\x01\x02\ + \x02\x01\x12\x04\xef\x01\t\x13\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\xef\ + \x01\x16\x17\np\n\x02\x04\x02\x12\x06\xf4\x01\0\xfc\x01\x01\x1ab\x20The\ + \x20response\x20for\n\x20[ListDatabases][google.spanner.admin.database.v\ + 1.DatabaseAdmin.ListDatabases].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xf4\ + \x01\x08\x1d\n3\n\x04\x04\x02\x02\0\x12\x04\xf6\x01\x02\"\x1a%\x20Databa\ + ses\x20that\x20matched\x20the\x20request.\n\n\r\n\x05\x04\x02\x02\0\x04\ + \x12\x04\xf6\x01\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xf6\x01\x0b\ + \x13\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xf6\x01\x14\x1d\n\r\n\x05\x04\ + \x02\x02\0\x03\x12\x04\xf6\x01\x20!\n\xbc\x01\n\x04\x04\x02\x02\x01\x12\ + \x04\xfb\x01\x02\x1d\x1a\xad\x01\x20`next_page_token`\x20can\x20be\x20se\ + nt\x20in\x20a\x20subsequent\n\x20[ListDatabases][google.spanner.admin.da\ + tabase.v1.DatabaseAdmin.ListDatabases]\n\x20call\x20to\x20fetch\x20more\ + \x20of\x20the\x20matching\x20databases.\n\n\r\n\x05\x04\x02\x02\x01\x05\ + \x12\x04\xfb\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xfb\x01\t\ + \x18\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xfb\x01\x1b\x1c\nq\n\x02\x04\ + \x03\x12\x06\x80\x02\0\x96\x02\x01\x1ac\x20The\x20request\x20for\n\x20[C\ + reateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateData\ + base].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x80\x02\x08\x1d\n\x9a\x01\n\x04\ + \x04\x03\x02\0\x12\x06\x83\x02\x02\x88\x02\x04\x1a\x89\x01\x20Required.\ + \x20The\x20name\x20of\x20the\x20instance\x20that\x20will\x20serve\x20the\ + \x20new\x20database.\n\x20Values\x20are\x20of\x20the\x20form\x20`project\ + s//instances/`.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\ + \x83\x02\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x83\x02\t\x0f\n\r\n\ + \x05\x04\x03\x02\0\x03\x12\x04\x83\x02\x12\x13\n\x0f\n\x05\x04\x03\x02\0\ + \x08\x12\x06\x83\x02\x14\x88\x02\x03\n\x10\n\x08\x04\x03\x02\0\x08\x9c\ + \x08\0\x12\x04\x84\x02\x04*\n\x11\n\x07\x04\x03\x02\0\x08\x9f\x08\x12\ + \x06\x85\x02\x04\x87\x02\x05\n\xe6\x02\n\x04\x04\x03\x02\x01\x12\x04\x8f\ + \x02\x02G\x1a\xd7\x02\x20Required.\x20A\x20`CREATE\x20DATABASE`\x20state\ + ment,\x20which\x20specifies\x20the\x20ID\x20of\x20the\n\x20new\x20databa\ + se.\x20\x20The\x20database\x20ID\x20must\x20conform\x20to\x20the\x20regu\ + lar\x20expression\n\x20`[a-z][a-z0-9_\\-]*[a-z0-9]`\x20and\x20be\x20betw\ + een\x202\x20and\x2030\x20characters\x20in\x20length.\n\x20If\x20the\x20d\ + atabase\x20ID\x20is\x20a\x20reserved\x20word\x20or\x20if\x20it\x20contai\ + ns\x20a\x20hyphen,\x20the\n\x20database\x20ID\x20must\x20be\x20enclosed\ + \x20in\x20backticks\x20(``\x20`\x20``).\n\n\r\n\x05\x04\x03\x02\x01\x05\ + \x12\x04\x8f\x02\x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x8f\x02\t\ + \x19\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\x8f\x02\x1c\x1d\n\r\n\x05\x04\ + \x03\x02\x01\x08\x12\x04\x8f\x02\x1eF\n\x10\n\x08\x04\x03\x02\x01\x08\ + \x9c\x08\0\x12\x04\x8f\x02\x1fE\n\x97\x02\n\x04\x04\x03\x02\x02\x12\x04\ + \x95\x02\x02'\x1a\x88\x02\x20An\x20optional\x20list\x20of\x20DDL\x20stat\ + ements\x20to\x20run\x20inside\x20the\x20newly\x20created\n\x20database.\ + \x20Statements\x20can\x20create\x20tables,\x20indexes,\x20etc.\x20These\ + \n\x20statements\x20execute\x20atomically\x20with\x20the\x20creation\x20\ + of\x20the\x20database:\n\x20if\x20there\x20is\x20an\x20error\x20in\x20an\ + y\x20statement,\x20the\x20database\x20is\x20not\x20created.\n\n\r\n\x05\ + \x04\x03\x02\x02\x04\x12\x04\x95\x02\x02\n\n\r\n\x05\x04\x03\x02\x02\x05\ + \x12\x04\x95\x02\x0b\x11\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x95\x02\ + \x12\"\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\x95\x02%&\n\x8d\x01\n\x02\ + \x04\x04\x12\x06\x9a\x02\0\x9f\x02\x01\x1a\x7f\x20Metadata\x20type\x20fo\ + r\x20the\x20operation\x20returned\x20by\n\x20[CreateDatabase][google.spa\ + nner.admin.database.v1.DatabaseAdmin.CreateDatabase].\n\n\x0b\n\x03\x04\ + \x04\x01\x12\x04\x9a\x02\x08\x1e\n-\n\x04\x04\x04\x02\0\x12\x06\x9c\x02\ + \x02\x9e\x02\x05\x1a\x1d\x20The\x20database\x20being\x20created.\n\n\r\n\ + \x05\x04\x04\x02\0\x05\x12\x04\x9c\x02\x02\x08\n\r\n\x05\x04\x04\x02\0\ + \x01\x12\x04\x9c\x02\t\x11\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\x9c\x02\ + \x14\x15\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x9c\x02\x16\x9e\x02\x04\n\ + \x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x9c\x02\x17\x9e\x02\x03\nk\ + \n\x02\x04\x05\x12\x06\xa3\x02\0\xac\x02\x01\x1a]\x20The\x20request\x20f\ + or\n\x20[GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.Get\ + Database].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\xa3\x02\x08\x1a\n\x98\x01\n\ + \x04\x04\x05\x02\0\x12\x06\xa6\x02\x02\xab\x02\x04\x1a\x87\x01\x20Requir\ + ed.\x20The\x20name\x20of\x20the\x20requested\x20database.\x20Values\x20a\ + re\x20of\x20the\x20form\n\x20`projects//instances//da\ + tabases/`.\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xa6\x02\x02\ + \x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xa6\x02\t\r\n\r\n\x05\x04\x05\ + \x02\0\x03\x12\x04\xa6\x02\x10\x11\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\ + \xa6\x02\x12\xab\x02\x03\n\x10\n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\ + \xa7\x02\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\x08\x12\x06\xa8\x02\x04\ + \xaa\x02\x05\n\x99\x07\n\x02\x04\x06\x12\x06\xbe\x02\0\xe0\x02\x01\x1a\ \x8a\x07\x20Enqueues\x20the\x20given\x20DDL\x20statements\x20to\x20be\ \x20applied,\x20in\x20order\x20but\x20not\n\x20necessarily\x20all\x20at\ \x20once,\x20to\x20the\x20database\x20schema\x20at\x20some\x20point\x20(\ @@ -7155,478 +2074,142 @@ static file_descriptor_proto_data: &'static [u8] = b"\ e\x20used\x20with\n\x20the\x20[Operations][google.longrunning.Operations\ ]\x20API\x20to\x20monitor\n\x20progress.\x20See\x20the\n\x20[operation_i\ d][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_i\ - d]\x20field\x20for\x20more\n\x20details.\n\n\x0b\n\x03\x04\t\x01\x12\x04\ - \x84\x05\x08\x20\n3\n\x04\x04\t\x02\0\x12\x06\x86\x05\x02\x8b\x05\x04\ - \x1a#\x20Required.\x20The\x20database\x20to\x20update.\n\n\r\n\x05\x04\t\ - \x02\0\x05\x12\x04\x86\x05\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x86\ - \x05\t\x11\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x86\x05\x14\x15\n\x0f\n\x05\ - \x04\t\x02\0\x08\x12\x06\x86\x05\x16\x8b\x05\x03\n\x10\n\x08\x04\t\x02\0\ - \x08\x9c\x08\0\x12\x04\x87\x05\x04*\n\x11\n\x07\x04\t\x02\0\x08\x9f\x08\ - \x12\x06\x88\x05\x04\x8a\x05\x05\nG\n\x04\x04\t\x02\x01\x12\x04\x8e\x05\ - \x02J\x1a9\x20Required.\x20DDL\x20statements\x20to\x20be\x20applied\x20t\ - o\x20the\x20database.\n\n\r\n\x05\x04\t\x02\x01\x04\x12\x04\x8e\x05\x02\ - \n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\x8e\x05\x0b\x11\n\r\n\x05\x04\t\ - \x02\x01\x01\x12\x04\x8e\x05\x12\x1c\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\ - \x8e\x05\x1f\x20\n\r\n\x05\x04\t\x02\x01\x08\x12\x04\x8e\x05!I\n\x10\n\ - \x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\x8e\x05\"H\n\xe4\x08\n\x04\x04\ - \t\x02\x02\x12\x04\xa3\x05\x02\x1a\x1a\xd5\x08\x20If\x20empty,\x20the\ - \x20new\x20update\x20request\x20is\x20assigned\x20an\n\x20automatically-\ - generated\x20operation\x20ID.\x20Otherwise,\x20`operation_id`\n\x20is\ - \x20used\x20to\x20construct\x20the\x20name\x20of\x20the\x20resulting\n\ - \x20[Operation][google.longrunning.Operation].\n\n\x20Specifying\x20an\ - \x20explicit\x20operation\x20ID\x20simplifies\x20determining\n\x20whethe\ - r\x20the\x20statements\x20were\x20executed\x20in\x20the\x20event\x20that\ - \x20the\n\x20[UpdateDatabaseDdl][google.spanner.admin.database.v1.Databa\ - seAdmin.UpdateDatabaseDdl]\x20call\x20is\x20replayed,\n\x20or\x20the\x20\ - return\x20value\x20is\x20otherwise\x20lost:\x20the\x20[database][google.\ - spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]\x20and\n\ - \x20`operation_id`\x20fields\x20can\x20be\x20combined\x20to\x20form\x20t\ - he\n\x20[name][google.longrunning.Operation.name]\x20of\x20the\x20result\ - ing\n\x20[longrunning.Operation][google.longrunning.Operation]:\x20`/operations/`.\n\n\x20`operation_id`\x20should\x20be\ - \x20unique\x20within\x20the\x20database,\x20and\x20must\x20be\n\x20a\x20\ - valid\x20identifier:\x20`[a-z][a-z0-9_]*`.\x20Note\x20that\n\x20automati\ - cally-generated\x20operation\x20IDs\x20always\x20begin\x20with\x20an\n\ - \x20underscore.\x20If\x20the\x20named\x20operation\x20already\x20exists,\ - \n\x20[UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin\ - .UpdateDatabaseDdl]\x20returns\n\x20`ALREADY_EXISTS`.\n\n\r\n\x05\x04\t\ - \x02\x02\x05\x12\x04\xa3\x05\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\ - \xa3\x05\t\x15\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xa3\x05\x18\x19\n\xf0\ - \x01\n\x02\x04\n\x12\x06\xa9\x05\0\xb9\x05\x01\x1a\xe1\x01\x20Action\x20\ - information\x20extracted\x20from\x20a\x20DDL\x20statement.\x20This\x20pr\ - oto\x20is\x20used\x20to\n\x20display\x20the\x20brief\x20info\x20of\x20th\ - e\x20DDL\x20statement\x20for\x20the\x20operation\n\x20[UpdateDatabaseDdl\ - ][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].\n\n\ - \x0b\n\x03\x04\n\x01\x12\x04\xa9\x05\x08\x1e\nz\n\x04\x04\n\x02\0\x12\ - \x04\xac\x05\x02\x14\x1al\x20The\x20action\x20for\x20the\x20DDL\x20state\ - ment,\x20e.g.\x20CREATE,\x20ALTER,\x20DROP,\x20GRANT,\x20etc.\n\x20This\ - \x20field\x20is\x20a\x20non-empty\x20string.\n\n\r\n\x05\x04\n\x02\0\x05\ - \x12\x04\xac\x05\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xac\x05\t\x0f\ - \n\r\n\x05\x04\n\x02\0\x03\x12\x04\xac\x05\x12\x13\n\xc0\x01\n\x04\x04\n\ - \x02\x01\x12\x04\xb1\x05\x02\x19\x1a\xb1\x01\x20The\x20entity\x20type\ - \x20for\x20the\x20DDL\x20statement,\x20e.g.\x20TABLE,\x20INDEX,\x20VIEW,\ - \x20etc.\n\x20This\x20field\x20can\x20be\x20empty\x20string\x20for\x20so\ - me\x20DDL\x20statement,\n\x20e.g.\x20for\x20statement\x20\"ANALYZE\",\ - \x20`entity_type`\x20=\x20\"\".\n\n\r\n\x05\x04\n\x02\x01\x05\x12\x04\ - \xb1\x05\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\xb1\x05\t\x14\n\r\n\ - \x05\x04\n\x02\x01\x03\x12\x04\xb1\x05\x17\x18\n\x8d\x02\n\x04\x04\n\x02\ - \x02\x12\x04\xb8\x05\x02#\x1a\xfe\x01\x20The\x20entity\x20name(s)\x20bei\ - ng\x20operated\x20on\x20the\x20DDL\x20statement.\n\x20E.g.\n\x201.\x20Fo\ - r\x20statement\x20\"CREATE\x20TABLE\x20t1(...)\",\x20`entity_names`\x20=\ - \x20[\"t1\"].\n\x202.\x20For\x20statement\x20\"GRANT\x20ROLE\x20r1,\x20r\ - 2\x20...\",\x20`entity_names`\x20=\x20[\"r1\",\x20\"r2\"].\n\x203.\x20Fo\ - r\x20statement\x20\"ANALYZE\",\x20`entity_names`\x20=\x20[].\n\n\r\n\x05\ - \x04\n\x02\x02\x04\x12\x04\xb8\x05\x02\n\n\r\n\x05\x04\n\x02\x02\x05\x12\ - \x04\xb8\x05\x0b\x11\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xb8\x05\x12\x1e\ - \n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xb8\x05!\"\n\x94\x01\n\x02\x04\x0b\ - \x12\x06\xbd\x05\0\xdd\x05\x01\x1a\x85\x01\x20Metadata\x20type\x20for\ - \x20the\x20operation\x20returned\x20by\n\x20[UpdateDatabaseDdl][google.s\ - panner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].\n\n\x0b\n\x03\ - \x04\x0b\x01\x12\x04\xbd\x05\x08!\n.\n\x04\x04\x0b\x02\0\x12\x06\xbf\x05\ - \x02\xc1\x05\x1a\x1a\x1e\x20The\x20database\x20being\x20modified.\n\n\r\ - \n\x05\x04\x0b\x02\0\x05\x12\x04\xbf\x05\x02\x08\n\r\n\x05\x04\x0b\x02\0\ - \x01\x12\x04\xbf\x05\t\x11\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xbf\x05\ - \x14\x15\n\x0f\n\x05\x04\x0b\x02\0\x08\x12\x06\xbf\x05\x16\xc1\x05\x19\n\ - \x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\x12\x06\xbf\x05\x17\xc1\x05\x18\n\ - \x8a\x01\n\x04\x04\x0b\x02\x01\x12\x04\xc5\x05\x02!\x1a|\x20For\x20an\ + d]\n\x20field\x20for\x20more\x20details.\n\n\x0b\n\x03\x04\x06\x01\x12\ + \x04\xbe\x02\x08\x20\n3\n\x04\x04\x06\x02\0\x12\x06\xc0\x02\x02\xc5\x02\ + \x04\x1a#\x20Required.\x20The\x20database\x20to\x20update.\n\n\r\n\x05\ + \x04\x06\x02\0\x05\x12\x04\xc0\x02\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\ + \x12\x04\xc0\x02\t\x11\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xc0\x02\x14\ + \x15\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\xc0\x02\x16\xc5\x02\x03\n\x10\ + \n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\xc1\x02\x04*\n\x11\n\x07\x04\ + \x06\x02\0\x08\x9f\x08\x12\x06\xc2\x02\x04\xc4\x02\x05\nG\n\x04\x04\x06\ + \x02\x01\x12\x04\xc8\x02\x02J\x1a9\x20Required.\x20DDL\x20statements\x20\ + to\x20be\x20applied\x20to\x20the\x20database.\n\n\r\n\x05\x04\x06\x02\ + \x01\x04\x12\x04\xc8\x02\x02\n\n\r\n\x05\x04\x06\x02\x01\x05\x12\x04\xc8\ + \x02\x0b\x11\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xc8\x02\x12\x1c\n\r\n\ + \x05\x04\x06\x02\x01\x03\x12\x04\xc8\x02\x1f\x20\n\r\n\x05\x04\x06\x02\ + \x01\x08\x12\x04\xc8\x02!I\n\x10\n\x08\x04\x06\x02\x01\x08\x9c\x08\0\x12\ + \x04\xc8\x02\"H\n\xe6\x08\n\x04\x04\x06\x02\x02\x12\x04\xdf\x02\x02\x1a\ + \x1a\xd7\x08\x20If\x20empty,\x20the\x20new\x20update\x20request\x20is\ + \x20assigned\x20an\n\x20automatically-generated\x20operation\x20ID.\x20O\ + therwise,\x20`operation_id`\n\x20is\x20used\x20to\x20construct\x20the\ + \x20name\x20of\x20the\x20resulting\n\x20[Operation][google.longrunning.O\ + peration].\n\n\x20Specifying\x20an\x20explicit\x20operation\x20ID\x20sim\ + plifies\x20determining\n\x20whether\x20the\x20statements\x20were\x20exec\ + uted\x20in\x20the\x20event\x20that\x20the\n\x20[UpdateDatabaseDdl][googl\ + e.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20call\ + \x20is\x20replayed,\x20or\x20the\x20return\x20value\x20is\x20otherwise\ + \x20lost:\x20the\n\x20[database][google.spanner.admin.database.v1.Update\ + DatabaseDdlRequest.database]\n\x20and\x20`operation_id`\x20fields\x20can\ + \x20be\x20combined\x20to\x20form\x20the\n\x20[name][google.longrunning.O\ + peration.name]\x20of\x20the\x20resulting\n\x20[longrunning.Operation][go\ + ogle.longrunning.Operation]:\n\x20`/operations/`\ + .\n\n\x20`operation_id`\x20should\x20be\x20unique\x20within\x20the\x20da\ + tabase,\x20and\x20must\x20be\n\x20a\x20valid\x20identifier:\x20`[a-z][a-\ + z0-9_]*`.\x20Note\x20that\n\x20automatically-generated\x20operation\x20I\ + Ds\x20always\x20begin\x20with\x20an\n\x20underscore.\x20If\x20the\x20nam\ + ed\x20operation\x20already\x20exists,\n\x20[UpdateDatabaseDdl][google.sp\ + anner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\x20returns\ + \x20`ALREADY_EXISTS`.\n\n\r\n\x05\x04\x06\x02\x02\x05\x12\x04\xdf\x02\ + \x02\x08\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\xdf\x02\t\x15\n\r\n\x05\ + \x04\x06\x02\x02\x03\x12\x04\xdf\x02\x18\x19\n\x94\x01\n\x02\x04\x07\x12\ + \x06\xe4\x02\0\xf2\x02\x01\x1a\x85\x01\x20Metadata\x20type\x20for\x20the\ + \x20operation\x20returned\x20by\n\x20[UpdateDatabaseDdl][google.spanner.\ + admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].\n\n\x0b\n\x03\x04\ + \x07\x01\x12\x04\xe4\x02\x08!\n.\n\x04\x04\x07\x02\0\x12\x06\xe6\x02\x02\ + \xe8\x02\x05\x1a\x1e\x20The\x20database\x20being\x20modified.\n\n\r\n\ + \x05\x04\x07\x02\0\x05\x12\x04\xe6\x02\x02\x08\n\r\n\x05\x04\x07\x02\0\ + \x01\x12\x04\xe6\x02\t\x11\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xe6\x02\ + \x14\x15\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xe6\x02\x16\xe8\x02\x04\n\ + \x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xe6\x02\x17\xe8\x02\x03\n\ + \x8a\x01\n\x04\x04\x07\x02\x01\x12\x04\xec\x02\x02!\x1a|\x20For\x20an\ \x20update\x20this\x20list\x20contains\x20all\x20the\x20statements.\x20F\ or\x20an\n\x20individual\x20statement,\x20this\x20list\x20contains\x20on\ - ly\x20that\x20statement.\n\n\r\n\x05\x04\x0b\x02\x01\x04\x12\x04\xc5\x05\ - \x02\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\xc5\x05\x0b\x11\n\r\n\x05\ - \x04\x0b\x02\x01\x01\x12\x04\xc5\x05\x12\x1c\n\r\n\x05\x04\x0b\x02\x01\ - \x03\x12\x04\xc5\x05\x1f\x20\n\xb6\x01\n\x04\x04\x0b\x02\x02\x12\x04\xca\ - \x05\x02;\x1a\xa7\x01\x20Reports\x20the\x20commit\x20timestamps\x20of\ + ly\x20that\x20statement.\n\n\r\n\x05\x04\x07\x02\x01\x04\x12\x04\xec\x02\ + \x02\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xec\x02\x0b\x11\n\r\n\x05\ + \x04\x07\x02\x01\x01\x12\x04\xec\x02\x12\x1c\n\r\n\x05\x04\x07\x02\x01\ + \x03\x12\x04\xec\x02\x1f\x20\n\xb6\x01\n\x04\x04\x07\x02\x02\x12\x04\xf1\ + \x02\x02;\x1a\xa7\x01\x20Reports\x20the\x20commit\x20timestamps\x20of\ \x20all\x20statements\x20that\x20have\n\x20succeeded\x20so\x20far,\x20wh\ ere\x20`commit_timestamps[i]`\x20is\x20the\x20commit\n\x20timestamp\x20f\ - or\x20the\x20statement\x20`statements[i]`.\n\n\r\n\x05\x04\x0b\x02\x02\ - \x04\x12\x04\xca\x05\x02\n\n\r\n\x05\x04\x0b\x02\x02\x06\x12\x04\xca\x05\ - \x0b$\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\xca\x05%6\n\r\n\x05\x04\x0b\ - \x02\x02\x03\x12\x04\xca\x059:\n\xd4\x01\n\x04\x04\x0b\x02\x03\x12\x04\ - \xcf\x05\x02A\x1a\xc5\x01\x20Output\x20only.\x20When\x20true,\x20indicat\ - es\x20that\x20the\x20operation\x20is\x20throttled\x20e.g.\n\x20due\x20to\ - \x20resource\x20constraints.\x20When\x20resources\x20become\x20available\ - \x20the\x20operation\n\x20will\x20resume\x20and\x20this\x20field\x20will\ - \x20be\x20false\x20again.\n\n\r\n\x05\x04\x0b\x02\x03\x05\x12\x04\xcf\ - \x05\x02\x06\n\r\n\x05\x04\x0b\x02\x03\x01\x12\x04\xcf\x05\x07\x10\n\r\n\ - \x05\x04\x0b\x02\x03\x03\x12\x04\xcf\x05\x13\x14\n\r\n\x05\x04\x0b\x02\ - \x03\x08\x12\x04\xcf\x05\x15@\n\x10\n\x08\x04\x0b\x02\x03\x08\x9c\x08\0\ - \x12\x04\xcf\x05\x16?\n\xae\x03\n\x04\x04\x0b\x02\x04\x12\x04\xd8\x05\ - \x02*\x1a\x9f\x03\x20The\x20progress\x20of\x20the\n\x20[UpdateDatabaseDd\ - l][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]\n\ - \x20operations.\x20All\x20DDL\x20statements\x20will\x20have\x20continuou\ - sly\x20updating\x20progress,\n\x20and\x20`progress[i]`\x20is\x20the\x20o\ - peration\x20progress\x20for\x20`statements[i]`.\x20Also,\n\x20`progress[\ - i]`\x20will\x20have\x20start\x20time\x20and\x20end\x20time\x20populated\ - \x20with\x20commit\n\x20timestamp\x20of\x20operation,\x20as\x20well\x20a\ - s\x20a\x20progress\x20of\x20100%\x20once\x20the\x20operation\n\x20has\ - \x20completed.\n\n\r\n\x05\x04\x0b\x02\x04\x04\x12\x04\xd8\x05\x02\n\n\r\ - \n\x05\x04\x0b\x02\x04\x06\x12\x04\xd8\x05\x0b\x1c\n\r\n\x05\x04\x0b\x02\ - \x04\x01\x12\x04\xd8\x05\x1d%\n\r\n\x05\x04\x0b\x02\x04\x03\x12\x04\xd8\ - \x05()\nr\n\x04\x04\x0b\x02\x05\x12\x04\xdc\x05\x02.\x1ad\x20The\x20brie\ - f\x20action\x20info\x20for\x20the\x20DDL\x20statements.\n\x20`actions[i]\ - `\x20is\x20the\x20brief\x20info\x20for\x20`statements[i]`.\n\n\r\n\x05\ - \x04\x0b\x02\x05\x04\x12\x04\xdc\x05\x02\n\n\r\n\x05\x04\x0b\x02\x05\x06\ - \x12\x04\xdc\x05\x0b!\n\r\n\x05\x04\x0b\x02\x05\x01\x12\x04\xdc\x05\")\n\ - \r\n\x05\x04\x0b\x02\x05\x03\x12\x04\xdc\x05,-\nl\n\x02\x04\x0c\x12\x06\ - \xe0\x05\0\xe8\x05\x01\x1a^\x20The\x20request\x20for\x20[DropDatabase][g\ - oogle.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].\n\n\x0b\n\ - \x03\x04\x0c\x01\x12\x04\xe0\x05\x08\x1b\n7\n\x04\x04\x0c\x02\0\x12\x06\ - \xe2\x05\x02\xe7\x05\x04\x1a'\x20Required.\x20The\x20database\x20to\x20b\ - e\x20dropped.\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xe2\x05\x02\x08\n\r\ - \n\x05\x04\x0c\x02\0\x01\x12\x04\xe2\x05\t\x11\n\r\n\x05\x04\x0c\x02\0\ - \x03\x12\x04\xe2\x05\x14\x15\n\x0f\n\x05\x04\x0c\x02\0\x08\x12\x06\xe2\ - \x05\x16\xe7\x05\x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\x08\0\x12\x04\xe3\ - \x05\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\x06\xe4\x05\x04\xe6\ - \x05\x05\np\n\x02\x04\r\x12\x06\xeb\x05\0\xf5\x05\x01\x1ab\x20The\x20req\ - uest\x20for\x20[GetDatabaseDdl][google.spanner.admin.database.v1.Databas\ - eAdmin.GetDatabaseDdl].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xeb\x05\x08\x1d\ - \n\x9e\x01\n\x04\x04\r\x02\0\x12\x06\xef\x05\x02\xf4\x05\x04\x1a\x8d\x01\ - \x20Required.\x20The\x20database\x20whose\x20schema\x20we\x20wish\x20to\ - \x20get.\n\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instances//databases/`\n\n\r\n\x05\x04\r\x02\0\x05\ - \x12\x04\xef\x05\x02\x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xef\x05\t\x11\ - \n\r\n\x05\x04\r\x02\0\x03\x12\x04\xef\x05\x14\x15\n\x0f\n\x05\x04\r\x02\ - \0\x08\x12\x06\xef\x05\x16\xf4\x05\x03\n\x10\n\x08\x04\r\x02\0\x08\x9c\ - \x08\0\x12\x04\xf0\x05\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\x06\ - \xf1\x05\x04\xf3\x05\x05\nq\n\x02\x04\x0e\x12\x06\xf8\x05\0\xfc\x05\x01\ - \x1ac\x20The\x20response\x20for\x20[GetDatabaseDdl][google.spanner.admin\ - .database.v1.DatabaseAdmin.GetDatabaseDdl].\n\n\x0b\n\x03\x04\x0e\x01\ - \x12\x04\xf8\x05\x08\x1e\nq\n\x04\x04\x0e\x02\0\x12\x04\xfb\x05\x02!\x1a\ - c\x20A\x20list\x20of\x20formatted\x20DDL\x20statements\x20defining\x20th\ - e\x20schema\x20of\x20the\x20database\n\x20specified\x20in\x20the\x20requ\ - est.\n\n\r\n\x05\x04\x0e\x02\0\x04\x12\x04\xfb\x05\x02\n\n\r\n\x05\x04\ - \x0e\x02\0\x05\x12\x04\xfb\x05\x0b\x11\n\r\n\x05\x04\x0e\x02\0\x01\x12\ - \x04\xfb\x05\x12\x1c\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xfb\x05\x1f\x20\ - \n\x81\x01\n\x02\x04\x0f\x12\x06\x80\x06\0\xbf\x06\x01\x1as\x20The\x20re\ - quest\x20for\n\x20[ListDatabaseOperations][google.spanner.admin.database\ - .v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\n\x03\x04\x0f\x01\x12\ - \x04\x80\x06\x08%\n\x87\x01\n\x04\x04\x0f\x02\0\x12\x06\x83\x06\x02\x88\ - \x06\x04\x1aw\x20Required.\x20The\x20instance\x20of\x20the\x20database\ - \x20operations.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects//instances/`.\n\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x83\ - \x06\x02\x08\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x83\x06\t\x0f\n\r\n\x05\ - \x04\x0f\x02\0\x03\x12\x04\x83\x06\x12\x13\n\x0f\n\x05\x04\x0f\x02\0\x08\ - \x12\x06\x83\x06\x14\x88\x06\x03\n\x10\n\x08\x04\x0f\x02\0\x08\x9c\x08\0\ - \x12\x04\x84\x06\x04*\n\x11\n\x07\x04\x0f\x02\0\x08\x9f\x08\x12\x06\x85\ - \x06\x04\x87\x06\x05\n\x95\x11\n\x04\x04\x0f\x02\x01\x12\x04\xb4\x06\x02\ - \x14\x1a\x86\x11\x20An\x20expression\x20that\x20filters\x20the\x20list\ - \x20of\x20returned\x20operations.\n\n\x20A\x20filter\x20expression\x20co\ - nsists\x20of\x20a\x20field\x20name,\x20a\n\x20comparison\x20operator,\ - \x20and\x20a\x20value\x20for\x20filtering.\n\x20The\x20value\x20must\x20\ - be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20boolean.\x20The\x20comp\ - arison\x20operator\n\x20must\x20be\x20one\x20of:\x20`<`,\x20`>`,\x20`<=`\ - ,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20Colon\x20`:`\x20is\x20the\ - \x20contains\x20operator.\x20Filter\x20rules\x20are\x20not\x20case\x20se\ - nsitive.\n\n\x20The\x20following\x20fields\x20in\x20the\x20[Operation][g\ - oogle.longrunning.Operation]\n\x20are\x20eligible\x20for\x20filtering:\n\ - \n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\x20of\x20the\x20long-runni\ - ng\x20operation\n\x20\x20\x20*\x20`done`\x20-\x20False\x20if\x20the\x20o\ - peration\x20is\x20in\x20progress,\x20else\x20true.\n\x20\x20\x20*\x20`me\ - tadata.@type`\x20-\x20the\x20type\x20of\x20metadata.\x20For\x20example,\ - \x20the\x20type\x20string\n\x20\x20\x20\x20\x20\x20for\x20[RestoreDataba\ - seMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]\ - \x20is\n\x20\x20\x20\x20\x20\x20`type.googleapis.com/google.spanner.admi\ - n.database.v1.RestoreDatabaseMetadata`.\n\x20\x20\x20*\x20`metadata.`\x20-\x20any\x20field\x20in\x20metadata.value.\n\x20\x20\x20\ - \x20\x20\x20`metadata.@type`\x20must\x20be\x20specified\x20first,\x20if\ - \x20filtering\x20on\x20metadata\n\x20\x20\x20\x20\x20\x20fields.\n\x20\ - \x20\x20*\x20`error`\x20-\x20Error\x20associated\x20with\x20the\x20long-\ - running\x20operation.\n\x20\x20\x20*\x20`response.@type`\x20-\x20the\x20\ - type\x20of\x20response.\n\x20\x20\x20*\x20`response.`\x20-\ - \x20any\x20field\x20in\x20response.value.\n\n\x20You\x20can\x20combine\ - \x20multiple\x20expressions\x20by\x20enclosing\x20each\x20expression\x20\ - in\n\x20parentheses.\x20By\x20default,\x20expressions\x20are\x20combined\ - \x20with\x20AND\x20logic.\x20However,\n\x20you\x20can\x20specify\x20AND,\ - \x20OR,\x20and\x20NOT\x20logic\x20explicitly.\n\n\x20Here\x20are\x20a\ - \x20few\x20examples:\n\n\x20\x20\x20*\x20`done:true`\x20-\x20The\x20oper\ - ation\x20is\x20complete.\n\x20\x20\x20*\x20`(metadata.@type=type.googlea\ - pis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata)\x20AND\ - `\x20\\\n\x20\x20\x20\x20\x20`(metadata.source_type:BACKUP)\x20AND`\x20\ - \\\n\x20\x20\x20\x20\x20`(metadata.backup_info.backup:backup_howl)\x20AN\ - D`\x20\\\n\x20\x20\x20\x20\x20`(metadata.name:restored_howl)\x20AND`\x20\ - \\\n\x20\x20\x20\x20\x20`(metadata.progress.start_time\x20<\x20\\\"2018-\ - 03-28T14:50:00Z\\\")\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(error:*)`\x20-\ - \x20Return\x20operations\x20where:\n\x20\x20\x20\x20\x20*\x20The\x20oper\ - ation's\x20metadata\x20type\x20is\x20[RestoreDatabaseMetadata][google.sp\ - anner.admin.database.v1.RestoreDatabaseMetadata].\n\x20\x20\x20\x20\x20*\ - \x20The\x20database\x20is\x20restored\x20from\x20a\x20backup.\n\x20\x20\ - \x20\x20\x20*\x20The\x20backup\x20name\x20contains\x20\"backup_howl\".\n\ - \x20\x20\x20\x20\x20*\x20The\x20restored\x20database's\x20name\x20contai\ - ns\x20\"restored_howl\".\n\x20\x20\x20\x20\x20*\x20The\x20operation\x20s\ - tarted\x20before\x202018-03-28T14:50:00Z.\n\x20\x20\x20\x20\x20*\x20The\ - \x20operation\x20resulted\x20in\x20an\x20error.\n\n\r\n\x05\x04\x0f\x02\ - \x01\x05\x12\x04\xb4\x06\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\ - \xb4\x06\t\x0f\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\xb4\x06\x12\x13\n\ - \x87\x01\n\x04\x04\x0f\x02\x02\x12\x04\xb8\x06\x02\x16\x1ay\x20Number\ - \x20of\x20operations\x20to\x20be\x20returned\x20in\x20the\x20response.\ - \x20If\x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20server's\x20max\ - imum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x0f\x02\x02\x05\x12\x04\ - \xb8\x06\x02\x07\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\xb8\x06\x08\x11\n\ - \r\n\x05\x04\x0f\x02\x02\x03\x12\x04\xb8\x06\x14\x15\n\xc5\x02\n\x04\x04\ - \x0f\x02\x03\x12\x04\xbe\x06\x02\x18\x1a\xb6\x02\x20If\x20non-empty,\x20\ - `page_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spa\ - nner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]\n\ - \x20from\x20a\x20previous\x20[ListDatabaseOperationsResponse][google.spa\ - nner.admin.database.v1.ListDatabaseOperationsResponse]\x20to\x20the\n\ - \x20same\x20`parent`\x20and\x20with\x20the\x20same\x20`filter`.\n\n\r\n\ - \x05\x04\x0f\x02\x03\x05\x12\x04\xbe\x06\x02\x08\n\r\n\x05\x04\x0f\x02\ - \x03\x01\x12\x04\xbe\x06\t\x13\n\r\n\x05\x04\x0f\x02\x03\x03\x12\x04\xbe\ - \x06\x16\x17\n\x82\x01\n\x02\x04\x10\x12\x06\xc3\x06\0\xcf\x06\x01\x1at\ - \x20The\x20response\x20for\n\x20[ListDatabaseOperations][google.spanner.\ - admin.database.v1.DatabaseAdmin.ListDatabaseOperations].\n\n\x0b\n\x03\ - \x04\x10\x01\x12\x04\xc3\x06\x08&\n\xaf\x02\n\x04\x04\x10\x02\0\x12\x04\ - \xc9\x06\x027\x1a\xa0\x02\x20The\x20list\x20of\x20matching\x20database\ - \x20[long-running\n\x20operations][google.longrunning.Operation].\x20Eac\ - h\x20operation's\x20name\x20will\x20be\n\x20prefixed\x20by\x20the\x20dat\ - abase's\x20name.\x20The\x20operation's\n\x20[metadata][google.longrunnin\ - g.Operation.metadata]\x20field\x20type\n\x20`metadata.type_url`\x20descr\ - ibes\x20the\x20type\x20of\x20the\x20metadata.\n\n\r\n\x05\x04\x10\x02\0\ - \x04\x12\x04\xc9\x06\x02\n\n\r\n\x05\x04\x10\x02\0\x06\x12\x04\xc9\x06\ - \x0b'\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xc9\x06(2\n\r\n\x05\x04\x10\ - \x02\0\x03\x12\x04\xc9\x0656\n\xcd\x01\n\x04\x04\x10\x02\x01\x12\x04\xce\ - \x06\x02\x1d\x1a\xbe\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\ - \x20a\x20subsequent\n\x20[ListDatabaseOperations][google.spanner.admin.d\ - atabase.v1.DatabaseAdmin.ListDatabaseOperations]\n\x20call\x20to\x20fetc\ - h\x20more\x20of\x20the\x20matching\x20metadata.\n\n\r\n\x05\x04\x10\x02\ - \x01\x05\x12\x04\xce\x06\x02\x08\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\ - \xce\x06\t\x18\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xce\x06\x1b\x1c\ns\ - \n\x02\x04\x11\x12\x06\xd3\x06\0\xf6\x06\x01\x1ae\x20The\x20request\x20f\ - or\n\x20[RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin\ - .RestoreDatabase].\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd3\x06\x08\x1e\n\ - \xa6\x02\n\x04\x04\x11\x02\0\x12\x06\xd9\x06\x02\xde\x06\x04\x1a\x95\x02\ - \x20Required.\x20The\x20name\x20of\x20the\x20instance\x20in\x20which\x20\ - to\x20create\x20the\n\x20restored\x20database.\x20This\x20instance\x20mu\ - st\x20be\x20in\x20the\x20same\x20project\x20and\n\x20have\x20the\x20same\ - \x20instance\x20configuration\x20as\x20the\x20instance\x20containing\n\ - \x20the\x20source\x20backup.\x20Values\x20are\x20of\x20the\x20form\n\x20\ - `projects//instances/`.\n\n\r\n\x05\x04\x11\x02\0\x05\ - \x12\x04\xd9\x06\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xd9\x06\t\ - \x0f\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xd9\x06\x12\x13\n\x0f\n\x05\x04\ - \x11\x02\0\x08\x12\x06\xd9\x06\x14\xde\x06\x03\n\x10\n\x08\x04\x11\x02\0\ - \x08\x9c\x08\0\x12\x04\xda\x06\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\ - \x08\x12\x06\xdb\x06\x04\xdd\x06\x05\n\x87\x02\n\x04\x04\x11\x02\x01\x12\ - \x04\xe4\x06\x02B\x1a\xf8\x01\x20Required.\x20The\x20id\x20of\x20the\x20\ - database\x20to\x20create\x20and\x20restore\x20to.\x20This\n\x20database\ - \x20must\x20not\x20already\x20exist.\x20The\x20`database_id`\x20appended\ - \x20to\n\x20`parent`\x20forms\x20the\x20full\x20database\x20name\x20of\ - \x20the\x20form\n\x20`projects//instances//databases/\ - `.\n\n\r\n\x05\x04\x11\x02\x01\x05\x12\x04\xe4\x06\x02\x08\ - \n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xe4\x06\t\x14\n\r\n\x05\x04\x11\ - \x02\x01\x03\x12\x04\xe4\x06\x17\x18\n\r\n\x05\x04\x11\x02\x01\x08\x12\ - \x04\xe4\x06\x19A\n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\xe4\ - \x06\x1a@\n=\n\x04\x04\x11\x08\0\x12\x06\xe7\x06\x02\xed\x06\x03\x1a-\ - \x20Required.\x20The\x20source\x20from\x20which\x20to\x20restore.\n\n\r\ - \n\x05\x04\x11\x08\0\x01\x12\x04\xe7\x06\x08\x0e\n\x91\x01\n\x04\x04\x11\ - \x02\x02\x12\x06\xea\x06\x04\xec\x06\x1a\x1a\x80\x01\x20Name\x20of\x20th\ - e\x20backup\x20from\x20which\x20to\x20restore.\x20\x20Values\x20are\x20o\ - f\x20the\x20form\n\x20`projects//instances//backups/<\ - backup>`.\n\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\xea\x06\x04\n\n\r\n\ - \x05\x04\x11\x02\x02\x01\x12\x04\xea\x06\x0b\x11\n\r\n\x05\x04\x11\x02\ - \x02\x03\x12\x04\xea\x06\x14\x15\n\x0f\n\x05\x04\x11\x02\x02\x08\x12\x06\ - \xea\x06\x16\xec\x06\x19\n\x11\n\x07\x04\x11\x02\x02\x08\x9f\x08\x12\x06\ - \xea\x06\x17\xec\x06\x18\n\xc0\x03\n\x04\x04\x11\x02\x03\x12\x04\xf5\x06\ - \x02a\x1a\xb1\x03\x20Optional.\x20An\x20encryption\x20configuration\x20d\ - escribing\x20the\x20encryption\x20type\x20and\x20key\n\x20resources\x20i\ - n\x20Cloud\x20KMS\x20used\x20to\x20encrypt/decrypt\x20the\x20database\ - \x20to\x20restore\x20to.\n\x20If\x20this\x20field\x20is\x20not\x20specif\ - ied,\x20the\x20restored\x20database\x20will\x20use\n\x20the\x20same\x20e\ - ncryption\x20configuration\x20as\x20the\x20backup\x20by\x20default,\x20n\ - amely\n\x20[encryption_type][google.spanner.admin.database.v1.RestoreDat\ - abaseEncryptionConfig.encryption_type]\x20=\n\x20`USE_CONFIG_DEFAULT_OR_\ - BACKUP_ENCRYPTION`.\n\n\r\n\x05\x04\x11\x02\x03\x06\x12\x04\xf5\x06\x02!\ - \n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xf5\x06\"3\n\r\n\x05\x04\x11\x02\ - \x03\x03\x12\x04\xf5\x0667\n\r\n\x05\x04\x11\x02\x03\x08\x12\x04\xf5\x06\ - 8`\n\x10\n\x08\x04\x11\x02\x03\x08\x9c\x08\0\x12\x04\xf5\x069_\nC\n\x02\ - \x04\x12\x12\x06\xf9\x06\0\x99\x07\x01\x1a5\x20Encryption\x20configurati\ - on\x20for\x20the\x20restored\x20database.\n\n\x0b\n\x03\x04\x12\x01\x12\ - \x04\xf9\x06\x08'\nC\n\x04\x04\x12\x04\0\x12\x06\xfb\x06\x02\x89\x07\x03\ - \x1a3\x20Encryption\x20types\x20for\x20the\x20database\x20to\x20be\x20re\ - stored.\n\n\r\n\x05\x04\x12\x04\0\x01\x12\x04\xfb\x06\x07\x15\n*\n\x06\ - \x04\x12\x04\0\x02\0\x12\x04\xfd\x06\x04$\x1a\x1a\x20Unspecified.\x20Do\ - \x20not\x20use.\n\n\x0f\n\x07\x04\x12\x04\0\x02\0\x01\x12\x04\xfd\x06\ - \x04\x1f\n\x0f\n\x07\x04\x12\x04\0\x02\0\x02\x12\x04\xfd\x06\"#\n\x9b\ - \x01\n\x06\x04\x12\x04\0\x02\x01\x12\x04\x81\x07\x040\x1a\x8a\x01\x20Thi\ - s\x20is\x20the\x20default\x20option\x20when\n\x20[encryption_config][goo\ - gle.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig]\x20is\x20\ - not\x20specified.\n\n\x0f\n\x07\x04\x12\x04\0\x02\x01\x01\x12\x04\x81\ - \x07\x04+\n\x0f\n\x07\x04\x12\x04\0\x02\x01\x02\x12\x04\x81\x07./\n0\n\ - \x06\x04\x12\x04\0\x02\x02\x12\x04\x84\x07\x04\"\x1a\x20\x20Use\x20Googl\ - e\x20default\x20encryption.\n\n\x0f\n\x07\x04\x12\x04\0\x02\x02\x01\x12\ - \x04\x84\x07\x04\x1d\n\x0f\n\x07\x04\x12\x04\0\x02\x02\x02\x12\x04\x84\ - \x07\x20!\ny\n\x06\x04\x12\x04\0\x02\x03\x12\x04\x88\x07\x04$\x1ai\x20Us\ - e\x20customer\x20managed\x20encryption.\x20If\x20specified,\x20`kms_key_\ - name`\x20must\n\x20must\x20contain\x20a\x20valid\x20Cloud\x20KMS\x20key.\ - \n\n\x0f\n\x07\x04\x12\x04\0\x02\x03\x01\x12\x04\x88\x07\x04\x1f\n\x0f\n\ - \x07\x04\x12\x04\0\x02\x03\x02\x12\x04\x88\x07\"#\nG\n\x04\x04\x12\x02\0\ - \x12\x04\x8c\x07\x02N\x1a9\x20Required.\x20The\x20encryption\x20type\x20\ - of\x20the\x20restored\x20database.\n\n\r\n\x05\x04\x12\x02\0\x06\x12\x04\ - \x8c\x07\x02\x10\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\x8c\x07\x11\x20\n\r\ - \n\x05\x04\x12\x02\0\x03\x12\x04\x8c\x07#$\n\r\n\x05\x04\x12\x02\0\x08\ - \x12\x04\x8c\x07%M\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\x8c\ - \x07&L\n\x87\x03\n\x04\x04\x12\x02\x01\x12\x06\x93\x07\x02\x98\x07\x04\ - \x1a\xf6\x02\x20Optional.\x20The\x20Cloud\x20KMS\x20key\x20that\x20will\ - \x20be\x20used\x20to\x20encrypt/decrypt\x20the\x20restored\n\x20database\ - .\x20This\x20field\x20should\x20be\x20set\x20only\x20when\n\x20[encrypti\ - on_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfi\ - g.encryption_type]\x20is\n\x20`CUSTOMER_MANAGED_ENCRYPTION`.\x20Values\ - \x20are\x20of\x20the\x20form\n\x20`projects//locations//keyRings//cryptoKeys/`.\n\n\r\n\x05\x04\x12\ - \x02\x01\x05\x12\x04\x93\x07\x02\x08\n\r\n\x05\x04\x12\x02\x01\x01\x12\ - \x04\x93\x07\t\x15\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\x93\x07\x18\x19\ - \n\x0f\n\x05\x04\x12\x02\x01\x08\x12\x06\x93\x07\x1a\x98\x07\x03\n\x10\n\ - \x08\x04\x12\x02\x01\x08\x9c\x08\0\x12\x04\x94\x07\x04*\n\x11\n\x07\x04\ - \x12\x02\x01\x08\x9f\x08\x12\x06\x95\x07\x04\x97\x07\x05\n\x9d\x01\n\x02\ - \x04\x13\x12\x06\x9d\x07\0\xcb\x07\x01\x1a\x8e\x01\x20Metadata\x20type\ - \x20for\x20the\x20long-running\x20operation\x20returned\x20by\n\x20[Rest\ - oreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatab\ - ase].\n\n\x0b\n\x03\x04\x13\x01\x12\x04\x9d\x07\x08\x1f\nE\n\x04\x04\x13\ - \x02\0\x12\x06\x9f\x07\x02\xa1\x07\x16\x1a5\x20Name\x20of\x20the\x20data\ - base\x20being\x20created\x20and\x20restored\x20to.\n\n\r\n\x05\x04\x13\ - \x02\0\x05\x12\x04\x9f\x07\x02\x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\ - \x9f\x07\t\r\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\x9f\x07\x10\x11\n\x0f\n\ - \x05\x04\x13\x02\0\x08\x12\x06\x9f\x07\x12\xa1\x07\x15\n\x11\n\x07\x04\ - \x13\x02\0\x08\x9f\x08\x12\x06\x9f\x07\x13\xa1\x07\x14\n/\n\x04\x04\x13\ - \x02\x01\x12\x04\xa4\x07\x02$\x1a!\x20The\x20type\x20of\x20the\x20restor\ - e\x20source.\n\n\r\n\x05\x04\x13\x02\x01\x06\x12\x04\xa4\x07\x02\x13\n\r\ - \n\x05\x04\x13\x02\x01\x01\x12\x04\xa4\x07\x14\x1f\n\r\n\x05\x04\x13\x02\ - \x01\x03\x12\x04\xa4\x07\"#\n\xbd\x01\n\x04\x04\x13\x08\0\x12\x06\xa8\ - \x07\x02\xab\x07\x03\x1a\xac\x01\x20Information\x20about\x20the\x20sourc\ - e\x20used\x20to\x20restore\x20the\x20database,\x20as\x20specified\x20by\ - \n\x20`source`\x20in\x20[RestoreDatabaseRequest][google.spanner.admin.da\ - tabase.v1.RestoreDatabaseRequest].\n\n\r\n\x05\x04\x13\x08\0\x01\x12\x04\ - \xa8\x07\x08\x13\nJ\n\x04\x04\x13\x02\x02\x12\x04\xaa\x07\x04\x1f\x1a<\ - \x20Information\x20about\x20the\x20backup\x20used\x20to\x20restore\x20th\ - e\x20database.\n\n\r\n\x05\x04\x13\x02\x02\x06\x12\x04\xaa\x07\x04\x0e\n\ - \r\n\x05\x04\x13\x02\x02\x01\x12\x04\xaa\x07\x0f\x1a\n\r\n\x05\x04\x13\ - \x02\x02\x03\x12\x04\xaa\x07\x1d\x1e\n\x82\x01\n\x04\x04\x13\x02\x03\x12\ - \x04\xb0\x07\x02!\x1at\x20The\x20progress\x20of\x20the\n\x20[RestoreData\ - base][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]\n\ - \x20operation.\n\n\r\n\x05\x04\x13\x02\x03\x06\x12\x04\xb0\x07\x02\x13\n\ - \r\n\x05\x04\x13\x02\x03\x01\x12\x04\xb0\x07\x14\x1c\n\r\n\x05\x04\x13\ - \x02\x03\x03\x12\x04\xb0\x07\x1f\x20\n\x86\x06\n\x04\x04\x13\x02\x04\x12\ - \x04\xbd\x07\x02,\x1a\xf7\x05\x20The\x20time\x20at\x20which\x20cancellat\ - ion\x20of\x20this\x20operation\x20was\x20received.\n\x20[Operations.Canc\ - elOperation][google.longrunning.Operations.CancelOperation]\n\x20starts\ - \x20asynchronous\x20cancellation\x20on\x20a\x20long-running\x20operation\ - .\x20The\x20server\n\x20makes\x20a\x20best\x20effort\x20to\x20cancel\x20\ - the\x20operation,\x20but\x20success\x20is\x20not\x20guaranteed.\n\x20Cli\ - ents\x20can\x20use\n\x20[Operations.GetOperation][google.longrunning.Ope\ - rations.GetOperation]\x20or\n\x20other\x20methods\x20to\x20check\x20whet\ - her\x20the\x20cancellation\x20succeeded\x20or\x20whether\x20the\n\x20ope\ - ration\x20completed\x20despite\x20cancellation.\x20On\x20successful\x20c\ - ancellation,\n\x20the\x20operation\x20is\x20not\x20deleted;\x20instead,\ - \x20it\x20becomes\x20an\x20operation\x20with\n\x20an\x20[Operation.error\ - ][google.longrunning.Operation.error]\x20value\x20with\x20a\n\x20[google\ - .rpc.Status.code][google.rpc.Status.code]\x20of\x201,\x20corresponding\ - \x20to\x20`Code.CANCELLED`.\n\n\r\n\x05\x04\x13\x02\x04\x06\x12\x04\xbd\ - \x07\x02\x1b\n\r\n\x05\x04\x13\x02\x04\x01\x12\x04\xbd\x07\x1c'\n\r\n\ - \x05\x04\x13\x02\x04\x03\x12\x04\xbd\x07*+\n\xa0\x06\n\x04\x04\x13\x02\ - \x05\x12\x04\xca\x07\x02.\x1a\x91\x06\x20If\x20exists,\x20the\x20name\ - \x20of\x20the\x20long-running\x20operation\x20that\x20will\x20be\x20used\ - \x20to\n\x20track\x20the\x20post-restore\x20optimization\x20process\x20t\ - o\x20optimize\x20the\x20performance\x20of\n\x20the\x20restored\x20databa\ - se,\x20and\x20remove\x20the\x20dependency\x20on\x20the\x20restore\x20sou\ - rce.\n\x20The\x20name\x20is\x20of\x20the\x20form\n\x20`projects//instances//databases//operations/`\n\ - \x20where\x20the\x20\x20is\x20the\x20name\x20of\x20database\ - \x20being\x20created\x20and\x20restored\x20to.\n\x20The\x20metadata\x20t\ - ype\x20of\x20the\x20\x20long-running\x20operation\x20is\n\x20[OptimizeRe\ - storedDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestore\ - dDatabaseMetadata].\x20This\x20long-running\x20operation\x20will\x20be\n\ - \x20automatically\x20created\x20by\x20the\x20system\x20after\x20the\x20R\ - estoreDatabase\x20long-running\n\x20operation\x20completes\x20successful\ - ly.\x20This\x20operation\x20will\x20not\x20be\x20created\x20if\x20the\n\ - \x20restore\x20was\x20not\x20successful.\n\n\r\n\x05\x04\x13\x02\x05\x05\ - \x12\x04\xca\x07\x02\x08\n\r\n\x05\x04\x13\x02\x05\x01\x12\x04\xca\x07\t\ - )\n\r\n\x05\x04\x13\x02\x05\x03\x12\x04\xca\x07,-\n\xa7\x02\n\x02\x04\ - \x14\x12\x06\xd1\x07\0\xd9\x07\x01\x1a\x98\x02\x20Metadata\x20type\x20fo\ - r\x20the\x20long-running\x20operation\x20used\x20to\x20track\x20the\x20p\ - rogress\n\x20of\x20optimizations\x20performed\x20on\x20a\x20newly\x20res\ - tored\x20database.\x20This\x20long-running\n\x20operation\x20is\x20autom\ - atically\x20created\x20by\x20the\x20system\x20after\x20the\x20successful\ - \n\x20completion\x20of\x20a\x20database\x20restore,\x20and\x20cannot\x20\ - be\x20cancelled.\n\n\x0b\n\x03\x04\x14\x01\x12\x04\xd1\x07\x08(\n@\n\x04\ - \x04\x14\x02\0\x12\x06\xd3\x07\x02\xd5\x07\x16\x1a0\x20Name\x20of\x20the\ - \x20restored\x20database\x20being\x20optimized.\n\n\r\n\x05\x04\x14\x02\ - \0\x05\x12\x04\xd3\x07\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xd3\ - \x07\t\r\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\xd3\x07\x10\x11\n\x0f\n\x05\ - \x04\x14\x02\0\x08\x12\x06\xd3\x07\x12\xd5\x07\x15\n\x11\n\x07\x04\x14\ - \x02\0\x08\x9f\x08\x12\x06\xd3\x07\x13\xd5\x07\x14\n?\n\x04\x04\x14\x02\ - \x01\x12\x04\xd8\x07\x02!\x1a1\x20The\x20progress\x20of\x20the\x20post-r\ - estore\x20optimizations.\n\n\r\n\x05\x04\x14\x02\x01\x06\x12\x04\xd8\x07\ - \x02\x13\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xd8\x07\x14\x1c\n\r\n\x05\ - \x04\x14\x02\x01\x03\x12\x04\xd8\x07\x1f\x20\n9\n\x02\x05\0\x12\x06\xdc\ - \x07\0\xe2\x07\x01\x1a+\x20Indicates\x20the\x20type\x20of\x20the\x20rest\ - ore\x20source.\n\n\x0b\n\x03\x05\0\x01\x12\x04\xdc\x07\x05\x16\n&\n\x04\ - \x05\0\x02\0\x12\x04\xde\x07\x02\x17\x1a\x18\x20No\x20restore\x20associa\ - ted.\n\n\r\n\x05\x05\0\x02\0\x01\x12\x04\xde\x07\x02\x12\n\r\n\x05\x05\0\ - \x02\0\x02\x12\x04\xde\x07\x15\x16\n?\n\x04\x05\0\x02\x01\x12\x04\xe1\ - \x07\x02\r\x1a1\x20A\x20backup\x20was\x20used\x20as\x20the\x20source\x20\ - of\x20the\x20restore.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\xe1\x07\x02\ - \x08\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xe1\x07\x0b\x0c\n.\n\x02\x04\ - \x15\x12\x06\xe5\x07\0\xf1\x07\x01\x1a\x20\x20A\x20Cloud\x20Spanner\x20d\ - atabase\x20role.\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xe5\x07\x08\x14\n\r\n\ - \x03\x04\x15\x07\x12\x06\xe6\x07\x02\xe9\x07\x04\n\x0f\n\x05\x04\x15\x07\ - \x9d\x08\x12\x06\xe6\x07\x02\xe9\x07\x04\n\xc1\x02\n\x04\x04\x15\x02\0\ - \x12\x04\xf0\x07\x02;\x1a\xb2\x02\x20Required.\x20The\x20name\x20of\x20t\ - he\x20database\x20role.\x20Values\x20are\x20of\x20the\x20form\n\x20`proj\ - ects//instances//databases//databaseRoles/\ - \n\x20{role}`,\x20where\x20``\x20is\x20as\x20specified\x20in\x20th\ - e\x20`CREATE\x20ROLE`\n\x20DDL\x20statement.\x20This\x20name\x20can\x20b\ - e\x20passed\x20to\x20Get/Set\x20IAMPolicy\x20methods\x20to\n\x20identify\ - \x20the\x20database\x20role.\n\n\r\n\x05\x04\x15\x02\0\x05\x12\x04\xf0\ - \x07\x02\x08\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xf0\x07\t\r\n\r\n\x05\ - \x04\x15\x02\0\x03\x12\x04\xf0\x07\x10\x11\n\r\n\x05\x04\x15\x02\0\x08\ - \x12\x04\xf0\x07\x12:\n\x10\n\x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\ - \xf0\x07\x139\nv\n\x02\x04\x16\x12\x06\xf4\x07\0\x87\x08\x01\x1ah\x20The\ - \x20request\x20for\x20[ListDatabaseRoles][google.spanner.admin.database.\ - v1.DatabaseAdmin.ListDatabaseRoles].\n\n\x0b\n\x03\x04\x16\x01\x12\x04\ - \xf4\x07\x08\x20\n\xae\x01\n\x04\x04\x16\x02\0\x12\x06\xf8\x07\x02\xfd\ - \x07\x04\x1a\x9d\x01\x20Required.\x20The\x20database\x20whose\x20roles\ - \x20should\x20be\x20listed.\n\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects//instances//databases//databa\ - seRoles`.\n\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\xf8\x07\x02\x08\n\r\n\ - \x05\x04\x16\x02\0\x01\x12\x04\xf8\x07\t\x0f\n\r\n\x05\x04\x16\x02\0\x03\ - \x12\x04\xf8\x07\x12\x13\n\x0f\n\x05\x04\x16\x02\0\x08\x12\x06\xf8\x07\ - \x14\xfd\x07\x03\n\x10\n\x08\x04\x16\x02\0\x08\x9c\x08\0\x12\x04\xf9\x07\ - \x04*\n\x11\n\x07\x04\x16\x02\0\x08\x9f\x08\x12\x06\xfa\x07\x04\xfc\x07\ - \x05\n\x8b\x01\n\x04\x04\x16\x02\x01\x12\x04\x81\x08\x02\x16\x1a}\x20Num\ - ber\x20of\x20database\x20roles\x20to\x20be\x20returned\x20in\x20the\x20r\ - esponse.\x20If\x200\x20or\x20less,\n\x20defaults\x20to\x20the\x20server'\ - s\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x16\x02\x01\x05\ - \x12\x04\x81\x08\x02\x07\n\r\n\x05\x04\x16\x02\x01\x01\x12\x04\x81\x08\ - \x08\x11\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\x81\x08\x14\x15\n\x85\x02\ - \n\x04\x04\x16\x02\x02\x12\x04\x86\x08\x02\x18\x1a\xf6\x01\x20If\x20non-\ - empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][\ - google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_tok\ - en]\x20from\x20a\n\x20previous\x20[ListDatabaseRolesResponse][google.spa\ - nner.admin.database.v1.ListDatabaseRolesResponse].\n\n\r\n\x05\x04\x16\ - \x02\x02\x05\x12\x04\x86\x08\x02\x08\n\r\n\x05\x04\x16\x02\x02\x01\x12\ - \x04\x86\x08\t\x13\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\x86\x08\x16\x17\ - \nw\n\x02\x04\x17\x12\x06\x8a\x08\0\x92\x08\x01\x1ai\x20The\x20response\ - \x20for\x20[ListDatabaseRoles][google.spanner.admin.database.v1.Database\ - Admin.ListDatabaseRoles].\n\n\x0b\n\x03\x04\x17\x01\x12\x04\x8a\x08\x08!\ - \n8\n\x04\x04\x17\x02\0\x12\x04\x8c\x08\x02+\x1a*\x20Database\x20roles\ - \x20that\x20matched\x20the\x20request.\n\n\r\n\x05\x04\x17\x02\0\x04\x12\ - \x04\x8c\x08\x02\n\n\r\n\x05\x04\x17\x02\0\x06\x12\x04\x8c\x08\x0b\x17\n\ - \r\n\x05\x04\x17\x02\0\x01\x12\x04\x8c\x08\x18&\n\r\n\x05\x04\x17\x02\0\ - \x03\x12\x04\x8c\x08)*\n\xc0\x01\n\x04\x04\x17\x02\x01\x12\x04\x91\x08\ - \x02\x1d\x1a\xb1\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20\ - a\x20subsequent\n\x20[ListDatabaseRoles][google.spanner.admin.database.v\ - 1.DatabaseAdmin.ListDatabaseRoles]\n\x20call\x20to\x20fetch\x20more\x20o\ - f\x20the\x20matching\x20roles.\n\n\r\n\x05\x04\x17\x02\x01\x05\x12\x04\ - \x91\x08\x02\x08\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\x91\x08\t\x18\n\r\ - \n\x05\x04\x17\x02\x01\x03\x12\x04\x91\x08\x1b\x1cb\x06proto3\ + or\x20the\x20statement\x20`statements[i]`.\n\n\r\n\x05\x04\x07\x02\x02\ + \x04\x12\x04\xf1\x02\x02\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xf1\x02\ + \x0b$\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xf1\x02%6\n\r\n\x05\x04\x07\ + \x02\x02\x03\x12\x04\xf1\x029:\nm\n\x02\x04\x08\x12\x06\xf6\x02\0\xfe\ + \x02\x01\x1a_\x20The\x20request\x20for\n\x20[DropDatabase][google.spanne\ + r.admin.database.v1.DatabaseAdmin.DropDatabase].\n\n\x0b\n\x03\x04\x08\ + \x01\x12\x04\xf6\x02\x08\x1b\n7\n\x04\x04\x08\x02\0\x12\x06\xf8\x02\x02\ + \xfd\x02\x04\x1a'\x20Required.\x20The\x20database\x20to\x20be\x20dropped\ + .\n\n\r\n\x05\x04\x08\x02\0\x05\x12\x04\xf8\x02\x02\x08\n\r\n\x05\x04\ + \x08\x02\0\x01\x12\x04\xf8\x02\t\x11\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\ + \xf8\x02\x14\x15\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xf8\x02\x16\xfd\ + \x02\x03\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xf9\x02\x04*\n\ + \x11\n\x07\x04\x08\x02\0\x08\x9f\x08\x12\x06\xfa\x02\x04\xfc\x02\x05\nq\ + \n\x02\x04\t\x12\x06\x82\x03\0\x8a\x03\x01\x1ac\x20The\x20request\x20for\ + \n\x20[GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.Ge\ + tDatabaseDdl].\n\n\x0b\n\x03\x04\t\x01\x12\x04\x82\x03\x08\x1d\nE\n\x04\ + \x04\t\x02\0\x12\x06\x84\x03\x02\x89\x03\x04\x1a5\x20Required.\x20The\ + \x20database\x20whose\x20schema\x20we\x20wish\x20to\x20get.\n\n\r\n\x05\ + \x04\t\x02\0\x05\x12\x04\x84\x03\x02\x08\n\r\n\x05\x04\t\x02\0\x01\x12\ + \x04\x84\x03\t\x11\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x84\x03\x14\x15\n\ + \x0f\n\x05\x04\t\x02\0\x08\x12\x06\x84\x03\x16\x89\x03\x03\n\x10\n\x08\ + \x04\t\x02\0\x08\x9c\x08\0\x12\x04\x85\x03\x04*\n\x11\n\x07\x04\t\x02\0\ + \x08\x9f\x08\x12\x06\x86\x03\x04\x88\x03\x05\nr\n\x02\x04\n\x12\x06\x8e\ + \x03\0\x92\x03\x01\x1ad\x20The\x20response\x20for\n\x20[GetDatabaseDdl][\ + google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].\n\n\x0b\ + \n\x03\x04\n\x01\x12\x04\x8e\x03\x08\x1e\nq\n\x04\x04\n\x02\0\x12\x04\ + \x91\x03\x02!\x1ac\x20A\x20list\x20of\x20formatted\x20DDL\x20statements\ + \x20defining\x20the\x20schema\x20of\x20the\x20database\n\x20specified\ + \x20in\x20the\x20request.\n\n\r\n\x05\x04\n\x02\0\x04\x12\x04\x91\x03\ + \x02\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\x91\x03\x0b\x11\n\r\n\x05\x04\n\ + \x02\0\x01\x12\x04\x91\x03\x12\x1c\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x91\ + \x03\x1f\x20b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(9); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::iam_policy::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(11); + messages.push(Database::generated_message_descriptor_data()); + messages.push(ListDatabasesRequest::generated_message_descriptor_data()); + messages.push(ListDatabasesResponse::generated_message_descriptor_data()); + messages.push(CreateDatabaseRequest::generated_message_descriptor_data()); + messages.push(CreateDatabaseMetadata::generated_message_descriptor_data()); + messages.push(GetDatabaseRequest::generated_message_descriptor_data()); + messages.push(UpdateDatabaseDdlRequest::generated_message_descriptor_data()); + messages.push(UpdateDatabaseDdlMetadata::generated_message_descriptor_data()); + messages.push(DropDatabaseRequest::generated_message_descriptor_data()); + messages.push(GetDatabaseDdlRequest::generated_message_descriptor_data()); + messages.push(GetDatabaseDdlResponse::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(database::State::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs index 2681df0..16fbd11 100644 --- a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs +++ b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin_grpc.rs @@ -37,13 +37,6 @@ const METHOD_DATABASE_ADMIN_GET_DATABASE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabase", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_DATABASE_ADMIN_UPDATE_DATABASE_DDL: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateDatabaseDdl", @@ -86,76 +79,6 @@ const METHOD_DATABASE_ADMIN_TEST_IAM_PERMISSIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/CreateBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_COPY_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/CopyBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_GET_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/GetBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_UPDATE_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/UpdateBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_DELETE_BACKUP: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/DeleteBackup", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_LIST_BACKUPS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/ListBackups", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_RESTORE_DATABASE: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/RestoreDatabase", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_LIST_DATABASE_OPERATIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabaseOperations", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/ListBackupOperations", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_DATABASE_ADMIN_LIST_DATABASE_ROLES: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.database.v1.DatabaseAdmin/ListDatabaseRoles", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct DatabaseAdminClient { pub client: ::grpcio::Client, @@ -216,22 +139,6 @@ impl DatabaseAdminClient { self.get_database_async_opt(req, ::grpcio::CallOption::default()) } - pub fn update_database_opt(&self, req: &super::spanner_database_admin::UpdateDatabaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_UPDATE_DATABASE, req, opt) - } - - pub fn update_database(&self, req: &super::spanner_database_admin::UpdateDatabaseRequest) -> ::grpcio::Result { - self.update_database_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_database_async_opt(&self, req: &super::spanner_database_admin::UpdateDatabaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_UPDATE_DATABASE, req, opt) - } - - pub fn update_database_async(&self, req: &super::spanner_database_admin::UpdateDatabaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_database_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn update_database_ddl_opt(&self, req: &super::spanner_database_admin::UpdateDatabaseDdlRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_DATABASE_ADMIN_UPDATE_DATABASE_DDL, req, opt) } @@ -327,166 +234,6 @@ impl DatabaseAdminClient { pub fn test_iam_permissions_async(&self, req: &super::iam_policy::TestIamPermissionsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.test_iam_permissions_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn create_backup_opt(&self, req: &super::backup::CreateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_CREATE_BACKUP, req, opt) - } - - pub fn create_backup(&self, req: &super::backup::CreateBackupRequest) -> ::grpcio::Result { - self.create_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_backup_async_opt(&self, req: &super::backup::CreateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_CREATE_BACKUP, req, opt) - } - - pub fn create_backup_async(&self, req: &super::backup::CreateBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_backup_opt(&self, req: &super::backup::CopyBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_COPY_BACKUP, req, opt) - } - - pub fn copy_backup(&self, req: &super::backup::CopyBackupRequest) -> ::grpcio::Result { - self.copy_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn copy_backup_async_opt(&self, req: &super::backup::CopyBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_COPY_BACKUP, req, opt) - } - - pub fn copy_backup_async(&self, req: &super::backup::CopyBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.copy_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_backup_opt(&self, req: &super::backup::GetBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_GET_BACKUP, req, opt) - } - - pub fn get_backup(&self, req: &super::backup::GetBackupRequest) -> ::grpcio::Result { - self.get_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn get_backup_async_opt(&self, req: &super::backup::GetBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_GET_BACKUP, req, opt) - } - - pub fn get_backup_async(&self, req: &super::backup::GetBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.get_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_backup_opt(&self, req: &super::backup::UpdateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_UPDATE_BACKUP, req, opt) - } - - pub fn update_backup(&self, req: &super::backup::UpdateBackupRequest) -> ::grpcio::Result { - self.update_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_backup_async_opt(&self, req: &super::backup::UpdateBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_UPDATE_BACKUP, req, opt) - } - - pub fn update_backup_async(&self, req: &super::backup::UpdateBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_backup_opt(&self, req: &super::backup::DeleteBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_DELETE_BACKUP, req, opt) - } - - pub fn delete_backup(&self, req: &super::backup::DeleteBackupRequest) -> ::grpcio::Result { - self.delete_backup_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_backup_async_opt(&self, req: &super::backup::DeleteBackupRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_DELETE_BACKUP, req, opt) - } - - pub fn delete_backup_async(&self, req: &super::backup::DeleteBackupRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_backup_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backups_opt(&self, req: &super::backup::ListBackupsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_LIST_BACKUPS, req, opt) - } - - pub fn list_backups(&self, req: &super::backup::ListBackupsRequest) -> ::grpcio::Result { - self.list_backups_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backups_async_opt(&self, req: &super::backup::ListBackupsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_LIST_BACKUPS, req, opt) - } - - pub fn list_backups_async(&self, req: &super::backup::ListBackupsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_backups_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn restore_database_opt(&self, req: &super::spanner_database_admin::RestoreDatabaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_RESTORE_DATABASE, req, opt) - } - - pub fn restore_database(&self, req: &super::spanner_database_admin::RestoreDatabaseRequest) -> ::grpcio::Result { - self.restore_database_opt(req, ::grpcio::CallOption::default()) - } - - pub fn restore_database_async_opt(&self, req: &super::spanner_database_admin::RestoreDatabaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_RESTORE_DATABASE, req, opt) - } - - pub fn restore_database_async(&self, req: &super::spanner_database_admin::RestoreDatabaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.restore_database_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_database_operations_opt(&self, req: &super::spanner_database_admin::ListDatabaseOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_LIST_DATABASE_OPERATIONS, req, opt) - } - - pub fn list_database_operations(&self, req: &super::spanner_database_admin::ListDatabaseOperationsRequest) -> ::grpcio::Result { - self.list_database_operations_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_database_operations_async_opt(&self, req: &super::spanner_database_admin::ListDatabaseOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_LIST_DATABASE_OPERATIONS, req, opt) - } - - pub fn list_database_operations_async(&self, req: &super::spanner_database_admin::ListDatabaseOperationsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_database_operations_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backup_operations_opt(&self, req: &super::backup::ListBackupOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS, req, opt) - } - - pub fn list_backup_operations(&self, req: &super::backup::ListBackupOperationsRequest) -> ::grpcio::Result { - self.list_backup_operations_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_backup_operations_async_opt(&self, req: &super::backup::ListBackupOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS, req, opt) - } - - pub fn list_backup_operations_async(&self, req: &super::backup::ListBackupOperationsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_backup_operations_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_database_roles_opt(&self, req: &super::spanner_database_admin::ListDatabaseRolesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_DATABASE_ADMIN_LIST_DATABASE_ROLES, req, opt) - } - - pub fn list_database_roles(&self, req: &super::spanner_database_admin::ListDatabaseRolesRequest) -> ::grpcio::Result { - self.list_database_roles_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_database_roles_async_opt(&self, req: &super::spanner_database_admin::ListDatabaseRolesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_DATABASE_ADMIN_LIST_DATABASE_ROLES, req, opt) - } - - pub fn list_database_roles_async(&self, req: &super::spanner_database_admin::ListDatabaseRolesRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_database_roles_async_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -502,9 +249,6 @@ pub trait DatabaseAdmin { fn get_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::GetDatabaseRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn update_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::UpdateDatabaseRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn update_database_ddl(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::UpdateDatabaseDdlRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } @@ -523,36 +267,6 @@ pub trait DatabaseAdmin { fn test_iam_permissions(&mut self, ctx: ::grpcio::RpcContext, _req: super::iam_policy::TestIamPermissionsRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn create_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::CreateBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn copy_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::CopyBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn get_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::GetBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::UpdateBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_backup(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::DeleteBackupRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_backups(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::ListBackupsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn restore_database(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::RestoreDatabaseRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_database_operations(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::ListDatabaseOperationsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_backup_operations(&mut self, ctx: ::grpcio::RpcContext, _req: super::backup::ListBackupOperationsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_database_roles(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_database_admin::ListDatabaseRolesRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_database_admin(s: S) -> ::grpcio::Service { @@ -570,10 +284,6 @@ pub fn create_database_admin(s: S) -> instance.get_database(ctx, req, resp) }); let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_UPDATE_DATABASE, move |ctx, req, resp| { - instance.update_database(ctx, req, resp) - }); - let mut instance = s.clone(); builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_UPDATE_DATABASE_DDL, move |ctx, req, resp| { instance.update_database_ddl(ctx, req, resp) }); @@ -593,49 +303,9 @@ pub fn create_database_admin(s: S) -> builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_GET_IAM_POLICY, move |ctx, req, resp| { instance.get_iam_policy(ctx, req, resp) }); - let mut instance = s.clone(); + let mut instance = s; builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_TEST_IAM_PERMISSIONS, move |ctx, req, resp| { instance.test_iam_permissions(ctx, req, resp) }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_CREATE_BACKUP, move |ctx, req, resp| { - instance.create_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_COPY_BACKUP, move |ctx, req, resp| { - instance.copy_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_GET_BACKUP, move |ctx, req, resp| { - instance.get_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_UPDATE_BACKUP, move |ctx, req, resp| { - instance.update_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_DELETE_BACKUP, move |ctx, req, resp| { - instance.delete_backup(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_BACKUPS, move |ctx, req, resp| { - instance.list_backups(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_RESTORE_DATABASE, move |ctx, req, resp| { - instance.restore_database(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_DATABASE_OPERATIONS, move |ctx, req, resp| { - instance.list_database_operations(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_BACKUP_OPERATIONS, move |ctx, req, resp| { - instance.list_backup_operations(ctx, req, resp) - }); - let mut instance = s; - builder = builder.add_unary_handler(&METHOD_DATABASE_ADMIN_LIST_DATABASE_ROLES, move |ctx, req, resp| { - instance.list_database_roles(ctx, req, resp) - }); builder.build() } diff --git a/googleapis-raw/src/spanner/admin/instance/v1/common.rs b/googleapis-raw/src/spanner/admin/instance/v1/common.rs deleted file mode 100644 index 482fcac..0000000 --- a/googleapis-raw/src/spanner/admin/instance/v1/common.rs +++ /dev/null @@ -1,350 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/spanner/admin/instance/v1/common.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct OperationProgress { - // message fields - pub progress_percent: i32, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OperationProgress { - fn default() -> &'a OperationProgress { - ::default_instance() - } -} - -impl OperationProgress { - pub fn new() -> OperationProgress { - ::std::default::Default::default() - } - - // int32 progress_percent = 1; - - - pub fn get_progress_percent(&self) -> i32 { - self.progress_percent - } - pub fn clear_progress_percent(&mut self) { - self.progress_percent = 0; - } - - // Param is passed by value, moved - pub fn set_progress_percent(&mut self, v: i32) { - self.progress_percent = v; - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 3; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for OperationProgress { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.progress_percent = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.progress_percent != 0 { - my_size += ::protobuf::rt::value_size(1, self.progress_percent, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.progress_percent != 0 { - os.write_int32(1, self.progress_percent)?; - } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OperationProgress { - OperationProgress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "progress_percent", - |m: &OperationProgress| { &m.progress_percent }, - |m: &mut OperationProgress| { &mut m.progress_percent }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &OperationProgress| { &m.start_time }, - |m: &mut OperationProgress| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &OperationProgress| { &m.end_time }, - |m: &mut OperationProgress| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OperationProgress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static OperationProgress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(OperationProgress::new) - } -} - -impl ::protobuf::Clear for OperationProgress { - fn clear(&mut self) { - self.progress_percent = 0; - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OperationProgress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OperationProgress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n-google/spanner/admin/instance/v1/common.proto\x12\x20google.spanner.a\ - dmin.instance.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x11O\ - perationProgress\x12)\n\x10progress_percent\x18\x01\x20\x01(\x05R\x0fpro\ - gressPercent\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.protobu\ - f.TimestampR\tstartTime\x125\n\x08end_time\x18\x03\x20\x01(\x0b2\x1a.goo\ - gle.protobuf.TimestampR\x07endTimeB\xfd\x01\n$com.google.spanner.admin.i\ - nstance.v1B\x0bCommonProtoP\x01ZFcloud.google.com/go/spanner/admin/insta\ - nce/apiv1/instancepb;instancepb\xaa\x02&Google.Cloud.Spanner.Admin.Insta\ - nce.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\\Instance\\V1\xea\x02+Googl\ - e::Cloud::Spanner::Admin::Instance::V1J\xd6\t\n\x06\x12\x04\x0e\0)\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0)\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\x14\0C\n\t\n\x02\x08%\x12\x03\ - \x14\0C\n\x08\n\x01\x08\x12\x03\x15\0]\n\t\n\x02\x08\x0b\x12\x03\x15\0]\ - \n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\ - \x01\x08\x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\ - \x12\x03\x18\0=\n\t\n\x02\x08\x01\x12\x03\x18\0=\n\x08\n\x01\x08\x12\x03\ - \x19\0E\n\t\n\x02\x08)\x12\x03\x19\0E\n\x08\n\x01\x08\x12\x03\x1a\0D\n\t\ - \n\x02\x08-\x12\x03\x1a\0D\nn\n\x02\x04\0\x12\x04\x1e\0)\x01\x1ab\x20Enc\ - apsulates\x20progress\x20related\x20information\x20for\x20a\x20Cloud\x20\ - Spanner\x20long\n\x20running\x20instance\x20operations.\n\n\n\n\x03\x04\ - \0\x01\x12\x03\x1e\x08\x19\n\\\n\x04\x04\0\x02\0\x12\x03!\x02\x1d\x1aO\ - \x20Percent\x20completion\x20of\x20the\x20operation.\n\x20Values\x20are\ - \x20between\x200\x20and\x20100\x20inclusive.\n\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03!\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\x08\x18\n\x0c\ - \n\x05\x04\0\x02\0\x03\x12\x03!\x1b\x1c\n-\n\x04\x04\0\x02\x01\x12\x03$\ - \x02+\x1a\x20\x20Time\x20the\x20request\x20was\x20received.\n\n\x0c\n\ - \x05\x04\0\x02\x01\x06\x12\x03$\x02\x1b\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x03$\x1c&\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03$)*\n^\n\x04\x04\0\ - \x02\x02\x12\x03(\x02)\x1aQ\x20If\x20set,\x20the\x20time\x20at\x20which\ - \x20this\x20operation\x20failed\x20or\x20was\x20completed\n\x20successfu\ - lly.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03(\x02\x1b\n\x0c\n\x05\x04\0\ - \x02\x02\x01\x12\x03(\x1c$\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03('(b\x06\ - proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/spanner/admin/instance/v1/mod.rs b/googleapis-raw/src/spanner/admin/instance/v1/mod.rs index f2f8c73..de9ac59 100644 --- a/googleapis-raw/src/spanner/admin/instance/v1/mod.rs +++ b/googleapis-raw/src/spanner/admin/instance/v1/mod.rs @@ -1,11 +1,10 @@ // @generated - -use crate::{ +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, empty, iam::v1::{iam_policy, policy}, longrunning::operations, }; -pub mod common; pub mod spanner_instance_admin; pub mod spanner_instance_admin_grpc; diff --git a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs index 083a409..c5cc231 100644 --- a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs +++ b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,34 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/admin/instance/v1/spanner_instance_admin.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ReplicaInfo) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ReplicaInfo { // message fields + /// The location of the serving resources, e.g. "us-central1". + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ReplicaInfo.location) pub location: ::std::string::String, - pub field_type: ReplicaInfo_ReplicaType, + /// The type of replica. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ReplicaInfo.type) + pub type_: ::protobuf::EnumOrUnknown, + /// If true, this location is designated as the default leader location where + /// leader replicas are placed. See the [region types + /// documentation](https://cloud.google.com/spanner/docs/instances#region_types) + /// for more details. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ReplicaInfo.default_leader_location) pub default_leader_location: bool, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.ReplicaInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ReplicaInfo { @@ -45,87 +57,53 @@ impl ReplicaInfo { ::std::default::Default::default() } - // string location = 1; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) - } - - // .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2; - - - pub fn get_field_type(&self) -> ReplicaInfo_ReplicaType { - self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type = ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ReplicaInfo_ReplicaType) { - self.field_type = v; - } - - // bool default_leader_location = 3; - - - pub fn get_default_leader_location(&self) -> bool { - self.default_leader_location - } - pub fn clear_default_leader_location(&mut self) { - self.default_leader_location = false; - } - - // Param is passed by value, moved - pub fn set_default_leader_location(&mut self, v: bool) { - self.default_leader_location = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "location", + |m: &ReplicaInfo| { &m.location }, + |m: &mut ReplicaInfo| { &mut m.location }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type", + |m: &ReplicaInfo| { &m.type_ }, + |m: &mut ReplicaInfo| { &mut m.type_ }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "default_leader_location", + |m: &ReplicaInfo| { &m.default_leader_location }, + |m: &mut ReplicaInfo| { &mut m.default_leader_location }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReplicaInfo", + fields, + oneofs, + ) } } impl ::protobuf::Message for ReplicaInfo { + const NAME: &'static str = "ReplicaInfo"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.location = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.field_type, 2, &mut self.unknown_fields)? + 16 => { + self.type_ = is.read_enum_or_unknown()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.default_leader_location = tmp; + 24 => { + self.default_leader_location = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -134,193 +112,182 @@ impl ::protobuf::Message for ReplicaInfo { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.location.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.location); } - if self.field_type != ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.field_type); + if self.type_ != ::protobuf::EnumOrUnknown::new(replica_info::ReplicaType::TYPE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.type_.value()); } if self.default_leader_location != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.location.is_empty() { os.write_string(1, &self.location)?; } - if self.field_type != ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.field_type))?; + if self.type_ != ::protobuf::EnumOrUnknown::new(replica_info::ReplicaType::TYPE_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.type_))?; } if self.default_leader_location != false { os.write_bool(3, self.default_leader_location)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ReplicaInfo { ReplicaInfo::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &ReplicaInfo| { &m.location }, - |m: &mut ReplicaInfo| { &mut m.location }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type", - |m: &ReplicaInfo| { &m.field_type }, - |m: &mut ReplicaInfo| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "default_leader_location", - |m: &ReplicaInfo| { &m.default_leader_location }, - |m: &mut ReplicaInfo| { &mut m.default_leader_location }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReplicaInfo", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.location.clear(); + self.type_ = ::protobuf::EnumOrUnknown::new(replica_info::ReplicaType::TYPE_UNSPECIFIED); + self.default_leader_location = false; + self.special_fields.clear(); } fn default_instance() -> &'static ReplicaInfo { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReplicaInfo::new) + static instance: ReplicaInfo = ReplicaInfo { + location: ::std::string::String::new(), + type_: ::protobuf::EnumOrUnknown::from_i32(0), + default_leader_location: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ReplicaInfo { - fn clear(&mut self) { - self.location.clear(); - self.field_type = ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED; - self.default_leader_location = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReplicaInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReplicaInfo").unwrap()).clone() } } -impl ::std::fmt::Debug for ReplicaInfo { +impl ::std::fmt::Display for ReplicaInfo { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ReplicaInfo { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ReplicaInfo_ReplicaType { - TYPE_UNSPECIFIED = 0, - READ_WRITE = 1, - READ_ONLY = 2, - WITNESS = 3, -} - -impl ::protobuf::ProtobufEnum for ReplicaInfo_ReplicaType { - fn value(&self) -> i32 { - *self as i32 - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ReplicaInfo` +pub mod replica_info { + /// Indicates the type of replica. See the [replica types + /// documentation](https://cloud.google.com/spanner/docs/replication#replica_types) + /// for more details. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType) + pub enum ReplicaType { + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.TYPE_UNSPECIFIED) + TYPE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.READ_WRITE) + READ_WRITE = 1, + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.READ_ONLY) + READ_ONLY = 2, + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType.WITNESS) + WITNESS = 3, + } + + impl ::protobuf::Enum for ReplicaType { + const NAME: &'static str = "ReplicaType"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ReplicaType::TYPE_UNSPECIFIED), + 1 => ::std::option::Option::Some(ReplicaType::READ_WRITE), + 2 => ::std::option::Option::Some(ReplicaType::READ_ONLY), + 3 => ::std::option::Option::Some(ReplicaType::WITNESS), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(ReplicaInfo_ReplicaType::READ_WRITE), - 2 => ::std::option::Option::Some(ReplicaInfo_ReplicaType::READ_ONLY), - 3 => ::std::option::Option::Some(ReplicaInfo_ReplicaType::WITNESS), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "TYPE_UNSPECIFIED" => ::std::option::Option::Some(ReplicaType::TYPE_UNSPECIFIED), + "READ_WRITE" => ::std::option::Option::Some(ReplicaType::READ_WRITE), + "READ_ONLY" => ::std::option::Option::Some(ReplicaType::READ_ONLY), + "WITNESS" => ::std::option::Option::Some(ReplicaType::WITNESS), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [ReplicaInfo_ReplicaType] = &[ - ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED, - ReplicaInfo_ReplicaType::READ_WRITE, - ReplicaInfo_ReplicaType::READ_ONLY, - ReplicaInfo_ReplicaType::WITNESS, + const VALUES: &'static [ReplicaType] = &[ + ReplicaType::TYPE_UNSPECIFIED, + ReplicaType::READ_WRITE, + ReplicaType::READ_ONLY, + ReplicaType::WITNESS, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ReplicaInfo.ReplicaType", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for ReplicaType { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("ReplicaInfo.ReplicaType").unwrap()).clone() + } -impl ::std::marker::Copy for ReplicaInfo_ReplicaType { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for ReplicaInfo_ReplicaType { - fn default() -> Self { - ReplicaInfo_ReplicaType::TYPE_UNSPECIFIED + impl ::std::default::Default for ReplicaType { + fn default() -> Self { + ReplicaType::TYPE_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for ReplicaInfo_ReplicaType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ReplicaType { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ReplicaInfo.ReplicaType") + } } } -#[derive(PartialEq,Clone,Default)] +/// A possible configuration for a Cloud Spanner instance. Configurations +/// define the geographic placement of nodes and their replication. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.InstanceConfig) +#[derive(PartialEq,Clone,Default,Debug)] pub struct InstanceConfig { // message fields + /// A unique identifier for the instance configuration. Values + /// are of the form + /// `projects//instanceConfigs/[a-z][-a-z0-9]*` + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.InstanceConfig.name) pub name: ::std::string::String, + /// The name of this instance configuration as it appears in UIs. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.InstanceConfig.display_name) pub display_name: ::std::string::String, - pub config_type: InstanceConfig_Type, - pub replicas: ::protobuf::RepeatedField, - pub optional_replicas: ::protobuf::RepeatedField, - pub base_config: ::std::string::String, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub etag: ::std::string::String, - pub leader_options: ::protobuf::RepeatedField<::std::string::String>, - pub reconciling: bool, - pub state: InstanceConfig_State, + /// The geographic placement of nodes in this instance configuration and their + /// replication properties. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.InstanceConfig.replicas) + pub replicas: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.InstanceConfig.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a InstanceConfig { @@ -334,314 +301,53 @@ impl InstanceConfig { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string display_name = 2; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // .google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5; - - - pub fn get_config_type(&self) -> InstanceConfig_Type { - self.config_type - } - pub fn clear_config_type(&mut self) { - self.config_type = InstanceConfig_Type::TYPE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_config_type(&mut self, v: InstanceConfig_Type) { - self.config_type = v; - } - - // repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3; - - - pub fn get_replicas(&self) -> &[ReplicaInfo] { - &self.replicas - } - pub fn clear_replicas(&mut self) { - self.replicas.clear(); - } - - // Param is passed by value, moved - pub fn set_replicas(&mut self, v: ::protobuf::RepeatedField) { - self.replicas = v; - } - - // Mutable pointer to the field. - pub fn mut_replicas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.replicas - } - - // Take field - pub fn take_replicas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.replicas, ::protobuf::RepeatedField::new()) - } - - // repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6; - - - pub fn get_optional_replicas(&self) -> &[ReplicaInfo] { - &self.optional_replicas - } - pub fn clear_optional_replicas(&mut self) { - self.optional_replicas.clear(); - } - - // Param is passed by value, moved - pub fn set_optional_replicas(&mut self, v: ::protobuf::RepeatedField) { - self.optional_replicas = v; - } - - // Mutable pointer to the field. - pub fn mut_optional_replicas(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.optional_replicas - } - - // Take field - pub fn take_optional_replicas(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.optional_replicas, ::protobuf::RepeatedField::new()) - } - - // string base_config = 7; - - - pub fn get_base_config(&self) -> &str { - &self.base_config - } - pub fn clear_base_config(&mut self) { - self.base_config.clear(); - } - - // Param is passed by value, moved - pub fn set_base_config(&mut self, v: ::std::string::String) { - self.base_config = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_base_config(&mut self) -> &mut ::std::string::String { - &mut self.base_config - } - - // Take field - pub fn take_base_config(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.base_config, ::std::string::String::new()) - } - - // repeated .google.spanner.admin.instance.v1.InstanceConfig.LabelsEntry labels = 8; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // string etag = 9; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // repeated string leader_options = 4; - - - pub fn get_leader_options(&self) -> &[::std::string::String] { - &self.leader_options - } - pub fn clear_leader_options(&mut self) { - self.leader_options.clear(); - } - - // Param is passed by value, moved - pub fn set_leader_options(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.leader_options = v; - } - - // Mutable pointer to the field. - pub fn mut_leader_options(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.leader_options - } - - // Take field - pub fn take_leader_options(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.leader_options, ::protobuf::RepeatedField::new()) - } - - // bool reconciling = 10; - - - pub fn get_reconciling(&self) -> bool { - self.reconciling - } - pub fn clear_reconciling(&mut self) { - self.reconciling = false; - } - - // Param is passed by value, moved - pub fn set_reconciling(&mut self, v: bool) { - self.reconciling = v; - } - - // .google.spanner.admin.instance.v1.InstanceConfig.State state = 11; - - - pub fn get_state(&self) -> InstanceConfig_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = InstanceConfig_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: InstanceConfig_State) { - self.state = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &InstanceConfig| { &m.name }, + |m: &mut InstanceConfig| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &InstanceConfig| { &m.display_name }, + |m: &mut InstanceConfig| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "replicas", + |m: &InstanceConfig| { &m.replicas }, + |m: &mut InstanceConfig| { &mut m.replicas }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "InstanceConfig", + fields, + oneofs, + ) } } impl ::protobuf::Message for InstanceConfig { + const NAME: &'static str = "InstanceConfig"; + fn is_initialized(&self) -> bool { - for v in &self.replicas { - if !v.is_initialized() { - return false; - } - }; - for v in &self.optional_replicas { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 5 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.config_type, 5, &mut self.unknown_fields)? - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.replicas)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.optional_replicas)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.base_config)?; - }, - 8 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.leader_options)?; - }, + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { 10 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.reconciling = tmp; + self.name = is.read_string()?; }, - 11 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 11, &mut self.unknown_fields)? + 18 => { + self.display_name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 26 => { + self.replicas.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -650,7 +356,7 @@ impl ::protobuf::Message for InstanceConfig { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); @@ -658,431 +364,501 @@ impl ::protobuf::Message for InstanceConfig { if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.display_name); } - if self.config_type != InstanceConfig_Type::TYPE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(5, self.config_type); - } for value in &self.replicas { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.optional_replicas { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if !self.base_config.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.base_config); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.labels); - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.etag); - } - for value in &self.leader_options { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if self.reconciling != false { - my_size += 2; - } - if self.state != InstanceConfig_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(11, self.state); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } if !self.display_name.is_empty() { os.write_string(2, &self.display_name)?; } - if self.config_type != InstanceConfig_Type::TYPE_UNSPECIFIED { - os.write_enum(5, ::protobuf::ProtobufEnum::value(&self.config_type))?; - } for v in &self.replicas { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.optional_replicas { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.base_config.is_empty() { - os.write_string(7, &self.base_config)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(8, &self.labels, os)?; - if !self.etag.is_empty() { - os.write_string(9, &self.etag)?; - } - for v in &self.leader_options { - os.write_string(4, &v)?; + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }; - if self.reconciling != false { - os.write_bool(10, self.reconciling)?; - } - if self.state != InstanceConfig_State::STATE_UNSPECIFIED { - os.write_enum(11, ::protobuf::ProtobufEnum::value(&self.state))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> InstanceConfig { InstanceConfig::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &InstanceConfig| { &m.name }, - |m: &mut InstanceConfig| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &InstanceConfig| { &m.display_name }, - |m: &mut InstanceConfig| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "config_type", - |m: &InstanceConfig| { &m.config_type }, - |m: &mut InstanceConfig| { &mut m.config_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "replicas", - |m: &InstanceConfig| { &m.replicas }, - |m: &mut InstanceConfig| { &mut m.replicas }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "optional_replicas", - |m: &InstanceConfig| { &m.optional_replicas }, - |m: &mut InstanceConfig| { &mut m.optional_replicas }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "base_config", - |m: &InstanceConfig| { &m.base_config }, - |m: &mut InstanceConfig| { &mut m.base_config }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &InstanceConfig| { &m.labels }, - |m: &mut InstanceConfig| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &InstanceConfig| { &m.etag }, - |m: &mut InstanceConfig| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "leader_options", - |m: &InstanceConfig| { &m.leader_options }, - |m: &mut InstanceConfig| { &mut m.leader_options }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "reconciling", - |m: &InstanceConfig| { &m.reconciling }, - |m: &mut InstanceConfig| { &mut m.reconciling }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &InstanceConfig| { &m.state }, - |m: &mut InstanceConfig| { &mut m.state }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "InstanceConfig", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.display_name.clear(); + self.replicas.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static InstanceConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(InstanceConfig::new) + static instance: InstanceConfig = InstanceConfig { + name: ::std::string::String::new(), + display_name: ::std::string::String::new(), + replicas: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for InstanceConfig { - fn clear(&mut self) { - self.name.clear(); - self.display_name.clear(); - self.config_type = InstanceConfig_Type::TYPE_UNSPECIFIED; - self.replicas.clear(); - self.optional_replicas.clear(); - self.base_config.clear(); - self.labels.clear(); - self.etag.clear(); - self.leader_options.clear(); - self.reconciling = false; - self.state = InstanceConfig_State::STATE_UNSPECIFIED; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for InstanceConfig { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("InstanceConfig").unwrap()).clone() } } -impl ::std::fmt::Debug for InstanceConfig { +impl ::std::fmt::Display for InstanceConfig { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for InstanceConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum InstanceConfig_Type { - TYPE_UNSPECIFIED = 0, - GOOGLE_MANAGED = 1, - USER_MANAGED = 2, +/// An isolated set of Cloud Spanner resources on which databases can be hosted. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.Instance) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Instance { + // message fields + /// Required. A unique identifier for the instance, which cannot be changed + /// after the instance is created. Values are of the form + /// `projects//instances/[a-z][-a-z0-9]*[a-z0-9]`. The final + /// segment of the name must be between 2 and 64 characters in length. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.name) + pub name: ::std::string::String, + /// Required. The name of the instance's configuration. Values are of the form + /// `projects//instanceConfigs/`. See + /// also [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig] and + /// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.config) + pub config: ::std::string::String, + /// Required. The descriptive name for this instance as it appears in UIs. + /// Must be unique per project and between 4 and 30 characters in length. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.display_name) + pub display_name: ::std::string::String, + /// Required. The number of nodes allocated to this instance. This may be zero + /// in API responses for instances that are not yet in state `READY`. + /// + /// See [the + /// documentation](https://cloud.google.com/spanner/docs/instances#node_count) + /// for more information about nodes. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.node_count) + pub node_count: i32, + /// Output only. The current instance state. For + /// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance], the state must be + /// either omitted or set to `CREATING`. For + /// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance], the state must be + /// either omitted or set to `READY`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.state) + pub state: ::protobuf::EnumOrUnknown, + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.labels) + pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// Output only. The endpoint URIs based on the instance config. + /// For example, instances located in a specific cloud region (or multi region) + /// such as nam3, would have a nam3 specific endpoint URI. + /// This URI is to be used implictly by SDK clients, with fallback to default + /// URI. These endpoints are intended to optimize the network routing between + /// the client and the instance's serving resources. + /// If multiple endpoints are present, client may establish connections using + /// any of the given URIs. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.Instance.endpoint_uris) + pub endpoint_uris: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.Instance.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl ::protobuf::ProtobufEnum for InstanceConfig_Type { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(InstanceConfig_Type::TYPE_UNSPECIFIED), - 1 => ::std::option::Option::Some(InstanceConfig_Type::GOOGLE_MANAGED), - 2 => ::std::option::Option::Some(InstanceConfig_Type::USER_MANAGED), - _ => ::std::option::Option::None - } +impl<'a> ::std::default::Default for &'a Instance { + fn default() -> &'a Instance { + ::default_instance() } +} - fn values() -> &'static [Self] { - static values: &'static [InstanceConfig_Type] = &[ - InstanceConfig_Type::TYPE_UNSPECIFIED, - InstanceConfig_Type::GOOGLE_MANAGED, - InstanceConfig_Type::USER_MANAGED, - ]; - values +impl Instance { + pub fn new() -> Instance { + ::std::default::Default::default() } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("InstanceConfig.Type", file_descriptor_proto()) - }) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Instance| { &m.name }, + |m: &mut Instance| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "config", + |m: &Instance| { &m.config }, + |m: &mut Instance| { &mut m.config }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &Instance| { &m.display_name }, + |m: &mut Instance| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "node_count", + |m: &Instance| { &m.node_count }, + |m: &mut Instance| { &mut m.node_count }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "state", + |m: &Instance| { &m.state }, + |m: &mut Instance| { &mut m.state }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Instance| { &m.labels }, + |m: &mut Instance| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "endpoint_uris", + |m: &Instance| { &m.endpoint_uris }, + |m: &mut Instance| { &mut m.endpoint_uris }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Instance", + fields, + oneofs, + ) } } -impl ::std::marker::Copy for InstanceConfig_Type { -} - -impl ::std::default::Default for InstanceConfig_Type { - fn default() -> Self { - InstanceConfig_Type::TYPE_UNSPECIFIED - } -} +impl ::protobuf::Message for Instance { + const NAME: &'static str = "Instance"; -impl ::protobuf::reflect::ProtobufValue for InstanceConfig_Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + fn is_initialized(&self) -> bool { + true } -} -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum InstanceConfig_State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2, -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + self.config = is.read_string()?; + }, + 26 => { + self.display_name = is.read_string()?; + }, + 40 => { + self.node_count = is.read_int32()?; + }, + 48 => { + self.state = is.read_enum_or_unknown()?; + }, + 58 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); + }, + 66 => { + self.endpoint_uris.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::ProtobufEnum for InstanceConfig_State { - fn value(&self) -> i32 { - *self as i32 + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if !self.config.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.config); + } + if !self.display_name.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.display_name); + } + if self.node_count != 0 { + my_size += ::protobuf::rt::int32_size(5, self.node_count); + } + if self.state != ::protobuf::EnumOrUnknown::new(instance::State::STATE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(6, self.state.value()); + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + for value in &self.endpoint_uris { + my_size += ::protobuf::rt::string_size(8, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(InstanceConfig_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(InstanceConfig_State::CREATING), - 2 => ::std::option::Option::Some(InstanceConfig_State::READY), - _ => ::std::option::Option::None + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if !self.config.is_empty() { + os.write_string(2, &self.config)?; + } + if !self.display_name.is_empty() { + os.write_string(3, &self.display_name)?; + } + if self.node_count != 0 { + os.write_int32(5, self.node_count)?; } + if self.state != ::protobuf::EnumOrUnknown::new(instance::State::STATE_UNSPECIFIED) { + os.write_enum(6, ::protobuf::EnumOrUnknown::value(&self.state))?; + } + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(58)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + for v in &self.endpoint_uris { + os.write_string(8, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - fn values() -> &'static [Self] { - static values: &'static [InstanceConfig_State] = &[ - InstanceConfig_State::STATE_UNSPECIFIED, - InstanceConfig_State::CREATING, - InstanceConfig_State::READY, - ]; - values + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("InstanceConfig.State", file_descriptor_proto()) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } -} -impl ::std::marker::Copy for InstanceConfig_State { -} + fn new() -> Instance { + Instance::new() + } -impl ::std::default::Default for InstanceConfig_State { - fn default() -> Self { - InstanceConfig_State::STATE_UNSPECIFIED + fn clear(&mut self) { + self.name.clear(); + self.config.clear(); + self.display_name.clear(); + self.node_count = 0; + self.state = ::protobuf::EnumOrUnknown::new(instance::State::STATE_UNSPECIFIED); + self.labels.clear(); + self.endpoint_uris.clear(); + self.special_fields.clear(); } -} -impl ::protobuf::reflect::ProtobufValue for InstanceConfig_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + fn default_instance() -> &'static Instance { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(Instance::new) } } -#[derive(PartialEq,Clone,Default)] -pub struct AutoscalingConfig { - // message fields - pub autoscaling_limits: ::protobuf::SingularPtrField, - pub autoscaling_targets: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, +impl ::protobuf::MessageFull for Instance { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Instance").unwrap()).clone() + } } -impl<'a> ::std::default::Default for &'a AutoscalingConfig { - fn default() -> &'a AutoscalingConfig { - ::default_instance() +impl ::std::fmt::Display for Instance { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl AutoscalingConfig { - pub fn new() -> AutoscalingConfig { - ::std::default::Default::default() +impl ::protobuf::reflect::ProtobufValue for Instance { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `Instance` +pub mod instance { + /// Indicates the current state of the instance. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.spanner.admin.instance.v1.Instance.State) + pub enum State { + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.Instance.State.STATE_UNSPECIFIED) + STATE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.Instance.State.CREATING) + CREATING = 1, + // @@protoc_insertion_point(enum_value:google.spanner.admin.instance.v1.Instance.State.READY) + READY = 2, } - // .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingLimits autoscaling_limits = 1; + impl ::protobuf::Enum for State { + const NAME: &'static str = "State"; + fn value(&self) -> i32 { + *self as i32 + } - pub fn get_autoscaling_limits(&self) -> &AutoscalingConfig_AutoscalingLimits { - self.autoscaling_limits.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_autoscaling_limits(&mut self) { - self.autoscaling_limits.clear(); - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(State::STATE_UNSPECIFIED), + 1 => ::std::option::Option::Some(State::CREATING), + 2 => ::std::option::Option::Some(State::READY), + _ => ::std::option::Option::None + } + } - pub fn has_autoscaling_limits(&self) -> bool { - self.autoscaling_limits.is_some() - } + fn from_str(str: &str) -> ::std::option::Option { + match str { + "STATE_UNSPECIFIED" => ::std::option::Option::Some(State::STATE_UNSPECIFIED), + "CREATING" => ::std::option::Option::Some(State::CREATING), + "READY" => ::std::option::Option::Some(State::READY), + _ => ::std::option::Option::None + } + } - // Param is passed by value, moved - pub fn set_autoscaling_limits(&mut self, v: AutoscalingConfig_AutoscalingLimits) { - self.autoscaling_limits = ::protobuf::SingularPtrField::some(v); + const VALUES: &'static [State] = &[ + State::STATE_UNSPECIFIED, + State::CREATING, + State::READY, + ]; } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_autoscaling_limits(&mut self) -> &mut AutoscalingConfig_AutoscalingLimits { - if self.autoscaling_limits.is_none() { - self.autoscaling_limits.set_default(); + impl ::protobuf::EnumFull for State { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("Instance.State").unwrap()).clone() } - self.autoscaling_limits.as_mut().unwrap() - } - // Take field - pub fn take_autoscaling_limits(&mut self) -> AutoscalingConfig_AutoscalingLimits { - self.autoscaling_limits.take().unwrap_or_else(|| AutoscalingConfig_AutoscalingLimits::new()) + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } - // .google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets autoscaling_targets = 2; - - - pub fn get_autoscaling_targets(&self) -> &AutoscalingConfig_AutoscalingTargets { - self.autoscaling_targets.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_autoscaling_targets(&mut self) { - self.autoscaling_targets.clear(); + impl ::std::default::Default for State { + fn default() -> Self { + State::STATE_UNSPECIFIED + } } - pub fn has_autoscaling_targets(&self) -> bool { - self.autoscaling_targets.is_some() + impl State { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Instance.State") + } } +} + +/// The request for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ListInstanceConfigsRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListInstanceConfigsRequest { + // message fields + /// Required. The name of the project for which a list of supported instance + /// configurations is requested. Values are of the form + /// `projects/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstanceConfigsRequest.parent) + pub parent: ::std::string::String, + /// Number of instance configurations to be returned in the response. If 0 or + /// less, defaults to the server's maximum allowed page size. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_size) + pub page_size: i32, + /// If non-empty, `page_token` should contain a + /// [next_page_token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token] + /// from a previous [ListInstanceConfigsResponse][google.spanner.admin.instance.v1.ListInstanceConfigsResponse]. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstanceConfigsRequest.page_token) + pub page_token: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.ListInstanceConfigsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_autoscaling_targets(&mut self, v: AutoscalingConfig_AutoscalingTargets) { - self.autoscaling_targets = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a ListInstanceConfigsRequest { + fn default() -> &'a ListInstanceConfigsRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_autoscaling_targets(&mut self) -> &mut AutoscalingConfig_AutoscalingTargets { - if self.autoscaling_targets.is_none() { - self.autoscaling_targets.set_default(); - } - self.autoscaling_targets.as_mut().unwrap() +impl ListInstanceConfigsRequest { + pub fn new() -> ListInstanceConfigsRequest { + ::std::default::Default::default() } - // Take field - pub fn take_autoscaling_targets(&mut self) -> AutoscalingConfig_AutoscalingTargets { - self.autoscaling_targets.take().unwrap_or_else(|| AutoscalingConfig_AutoscalingTargets::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListInstanceConfigsRequest| { &m.parent }, + |m: &mut ListInstanceConfigsRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListInstanceConfigsRequest| { &m.page_size }, + |m: &mut ListInstanceConfigsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListInstanceConfigsRequest| { &m.page_token }, + |m: &mut ListInstanceConfigsRequest| { &mut m.page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstanceConfigsRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for AutoscalingConfig { +impl ::protobuf::Message for ListInstanceConfigsRequest { + const NAME: &'static str = "ListInstanceConfigsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.autoscaling_limits { - if !v.is_initialized() { - return false; - } - }; - for v in &self.autoscaling_targets { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.autoscaling_limits)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.autoscaling_targets)?; + 16 => { + self.page_size = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 26 => { + self.page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1091,283 +867,286 @@ impl ::protobuf::Message for AutoscalingConfig { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.autoscaling_limits.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.autoscaling_targets.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.autoscaling_limits.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; } - if let Some(ref v) = self.autoscaling_targets.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AutoscalingConfig { - AutoscalingConfig::new() + fn new() -> ListInstanceConfigsRequest { + ListInstanceConfigsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "autoscaling_limits", - |m: &AutoscalingConfig| { &m.autoscaling_limits }, - |m: &mut AutoscalingConfig| { &mut m.autoscaling_limits }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "autoscaling_targets", - |m: &AutoscalingConfig| { &m.autoscaling_targets }, - |m: &mut AutoscalingConfig| { &mut m.autoscaling_targets }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AutoscalingConfig", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_size = 0; + self.page_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static AutoscalingConfig { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AutoscalingConfig::new) + fn default_instance() -> &'static ListInstanceConfigsRequest { + static instance: ListInstanceConfigsRequest = ListInstanceConfigsRequest { + parent: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for AutoscalingConfig { - fn clear(&mut self) { - self.autoscaling_limits.clear(); - self.autoscaling_targets.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListInstanceConfigsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstanceConfigsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for AutoscalingConfig { +impl ::std::fmt::Display for ListInstanceConfigsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for AutoscalingConfig { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigsRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct AutoscalingConfig_AutoscalingLimits { - // message oneof groups - pub min_limit: ::std::option::Option, - pub max_limit: ::std::option::Option, +/// The response for [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ListInstanceConfigsResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListInstanceConfigsResponse { + // message fields + /// The list of requested instance configurations. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstanceConfigsResponse.instance_configs) + pub instance_configs: ::std::vec::Vec, + /// `next_page_token` can be sent in a subsequent + /// [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to + /// fetch more of the matching instance configurations. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.ListInstanceConfigsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a AutoscalingConfig_AutoscalingLimits { - fn default() -> &'a AutoscalingConfig_AutoscalingLimits { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListInstanceConfigsResponse { + fn default() -> &'a ListInstanceConfigsResponse { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum AutoscalingConfig_AutoscalingLimits_oneof_min_limit { - min_nodes(i32), - min_processing_units(i32), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum AutoscalingConfig_AutoscalingLimits_oneof_max_limit { - max_nodes(i32), - max_processing_units(i32), -} - -impl AutoscalingConfig_AutoscalingLimits { - pub fn new() -> AutoscalingConfig_AutoscalingLimits { +impl ListInstanceConfigsResponse { + pub fn new() -> ListInstanceConfigsResponse { ::std::default::Default::default() } - // int32 min_nodes = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "instance_configs", + |m: &ListInstanceConfigsResponse| { &m.instance_configs }, + |m: &mut ListInstanceConfigsResponse| { &mut m.instance_configs }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListInstanceConfigsResponse| { &m.next_page_token }, + |m: &mut ListInstanceConfigsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstanceConfigsResponse", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for ListInstanceConfigsResponse { + const NAME: &'static str = "ListInstanceConfigsResponse"; - pub fn get_min_nodes(&self) -> i32 { - match self.min_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(v)) => v, - _ => 0, - } - } - pub fn clear_min_nodes(&mut self) { - self.min_limit = ::std::option::Option::None; + fn is_initialized(&self) -> bool { + true } - pub fn has_min_nodes(&self) -> bool { - match self.min_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(..)) => true, - _ => false, + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.instance_configs.push(is.read_message()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_min_nodes(&mut self, v: i32) { - self.min_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(v)) - } - - // int32 min_processing_units = 2; - - - pub fn get_min_processing_units(&self) -> i32 { - match self.min_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(v)) => v, - _ => 0, + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.instance_configs { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - } - pub fn clear_min_processing_units(&mut self) { - self.min_limit = ::std::option::Option::None; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - pub fn has_min_processing_units(&self) -> bool { - match self.min_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(..)) => true, - _ => false, + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.instance_configs { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_min_processing_units(&mut self, v: i32) { - self.min_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(v)) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // int32 max_nodes = 3; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + fn new() -> ListInstanceConfigsResponse { + ListInstanceConfigsResponse::new() + } - pub fn get_max_nodes(&self) -> i32 { - match self.max_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(v)) => v, - _ => 0, - } + fn clear(&mut self) { + self.instance_configs.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - pub fn clear_max_nodes(&mut self) { - self.max_limit = ::std::option::Option::None; + + fn default_instance() -> &'static ListInstanceConfigsResponse { + static instance: ListInstanceConfigsResponse = ListInstanceConfigsResponse { + instance_configs: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - pub fn has_max_nodes(&self) -> bool { - match self.max_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(..)) => true, - _ => false, - } +impl ::protobuf::MessageFull for ListInstanceConfigsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstanceConfigsResponse").unwrap()).clone() } +} - // Param is passed by value, moved - pub fn set_max_nodes(&mut self, v: i32) { - self.max_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(v)) +impl ::std::fmt::Display for ListInstanceConfigsResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // int32 max_processing_units = 4; +impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigsResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// The request for +/// [GetInstanceConfigRequest][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.GetInstanceConfigRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetInstanceConfigRequest { + // message fields + /// Required. The name of the requested instance configuration. Values are of + /// the form `projects//instanceConfigs/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.GetInstanceConfigRequest.name) + pub name: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.GetInstanceConfigRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_max_processing_units(&self) -> i32 { - match self.max_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(v)) => v, - _ => 0, - } - } - pub fn clear_max_processing_units(&mut self) { - self.max_limit = ::std::option::Option::None; +impl<'a> ::std::default::Default for &'a GetInstanceConfigRequest { + fn default() -> &'a GetInstanceConfigRequest { + ::default_instance() } +} - pub fn has_max_processing_units(&self) -> bool { - match self.max_limit { - ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(..)) => true, - _ => false, - } +impl GetInstanceConfigRequest { + pub fn new() -> GetInstanceConfigRequest { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_max_processing_units(&mut self, v: i32) { - self.max_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(v)) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetInstanceConfigRequest| { &m.name }, + |m: &mut GetInstanceConfigRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetInstanceConfigRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for AutoscalingConfig_AutoscalingLimits { +impl ::protobuf::Message for GetInstanceConfigRequest { + const NAME: &'static str = "GetInstanceConfigRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.min_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(is.read_int32()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.min_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(is.read_int32()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.max_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(is.read_int32()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.max_limit = ::std::option::Option::Some(AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(is.read_int32()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1376,4117 +1155,136 @@ impl ::protobuf::Message for AutoscalingConfig_AutoscalingLimits { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let ::std::option::Option::Some(ref v) = self.min_limit { - match v { - &AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(v) => { - my_size += ::protobuf::rt::value_size(1, v, ::protobuf::wire_format::WireTypeVarint); - }, - &AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(v) => { - my_size += ::protobuf::rt::value_size(2, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.max_limit { - match v { - &AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(v) => { - my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint); - }, - &AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); - }, - }; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let ::std::option::Option::Some(ref v) = self.min_limit { - match v { - &AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_nodes(v) => { - os.write_int32(1, v)?; - }, - &AutoscalingConfig_AutoscalingLimits_oneof_min_limit::min_processing_units(v) => { - os.write_int32(2, v)?; - }, - }; - } - if let ::std::option::Option::Some(ref v) = self.max_limit { - match v { - &AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_nodes(v) => { - os.write_int32(3, v)?; - }, - &AutoscalingConfig_AutoscalingLimits_oneof_max_limit::max_processing_units(v) => { - os.write_int32(4, v)?; - }, - }; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> GetInstanceConfigRequest { + GetInstanceConfigRequest::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AutoscalingConfig_AutoscalingLimits { - AutoscalingConfig_AutoscalingLimits::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "min_nodes", - AutoscalingConfig_AutoscalingLimits::has_min_nodes, - AutoscalingConfig_AutoscalingLimits::get_min_nodes, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "min_processing_units", - AutoscalingConfig_AutoscalingLimits::has_min_processing_units, - AutoscalingConfig_AutoscalingLimits::get_min_processing_units, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "max_nodes", - AutoscalingConfig_AutoscalingLimits::has_max_nodes, - AutoscalingConfig_AutoscalingLimits::get_max_nodes, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i32_accessor::<_>( - "max_processing_units", - AutoscalingConfig_AutoscalingLimits::has_max_processing_units, - AutoscalingConfig_AutoscalingLimits::get_max_processing_units, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AutoscalingConfig.AutoscalingLimits", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AutoscalingConfig_AutoscalingLimits { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AutoscalingConfig_AutoscalingLimits::new) - } -} - -impl ::protobuf::Clear for AutoscalingConfig_AutoscalingLimits { - fn clear(&mut self) { - self.min_limit = ::std::option::Option::None; - self.min_limit = ::std::option::Option::None; - self.max_limit = ::std::option::Option::None; - self.max_limit = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AutoscalingConfig_AutoscalingLimits { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AutoscalingConfig_AutoscalingLimits { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AutoscalingConfig_AutoscalingTargets { - // message fields - pub high_priority_cpu_utilization_percent: i32, - pub storage_utilization_percent: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AutoscalingConfig_AutoscalingTargets { - fn default() -> &'a AutoscalingConfig_AutoscalingTargets { - ::default_instance() - } -} - -impl AutoscalingConfig_AutoscalingTargets { - pub fn new() -> AutoscalingConfig_AutoscalingTargets { - ::std::default::Default::default() - } - - // int32 high_priority_cpu_utilization_percent = 1; - - - pub fn get_high_priority_cpu_utilization_percent(&self) -> i32 { - self.high_priority_cpu_utilization_percent - } - pub fn clear_high_priority_cpu_utilization_percent(&mut self) { - self.high_priority_cpu_utilization_percent = 0; - } - - // Param is passed by value, moved - pub fn set_high_priority_cpu_utilization_percent(&mut self, v: i32) { - self.high_priority_cpu_utilization_percent = v; - } - - // int32 storage_utilization_percent = 2; - - - pub fn get_storage_utilization_percent(&self) -> i32 { - self.storage_utilization_percent - } - pub fn clear_storage_utilization_percent(&mut self) { - self.storage_utilization_percent = 0; - } - - // Param is passed by value, moved - pub fn set_storage_utilization_percent(&mut self, v: i32) { - self.storage_utilization_percent = v; - } -} - -impl ::protobuf::Message for AutoscalingConfig_AutoscalingTargets { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.high_priority_cpu_utilization_percent = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.storage_utilization_percent = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.high_priority_cpu_utilization_percent != 0 { - my_size += ::protobuf::rt::value_size(1, self.high_priority_cpu_utilization_percent, ::protobuf::wire_format::WireTypeVarint); - } - if self.storage_utilization_percent != 0 { - my_size += ::protobuf::rt::value_size(2, self.storage_utilization_percent, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.high_priority_cpu_utilization_percent != 0 { - os.write_int32(1, self.high_priority_cpu_utilization_percent)?; - } - if self.storage_utilization_percent != 0 { - os.write_int32(2, self.storage_utilization_percent)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AutoscalingConfig_AutoscalingTargets { - AutoscalingConfig_AutoscalingTargets::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "high_priority_cpu_utilization_percent", - |m: &AutoscalingConfig_AutoscalingTargets| { &m.high_priority_cpu_utilization_percent }, - |m: &mut AutoscalingConfig_AutoscalingTargets| { &mut m.high_priority_cpu_utilization_percent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "storage_utilization_percent", - |m: &AutoscalingConfig_AutoscalingTargets| { &m.storage_utilization_percent }, - |m: &mut AutoscalingConfig_AutoscalingTargets| { &mut m.storage_utilization_percent }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AutoscalingConfig.AutoscalingTargets", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static AutoscalingConfig_AutoscalingTargets { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(AutoscalingConfig_AutoscalingTargets::new) - } -} - -impl ::protobuf::Clear for AutoscalingConfig_AutoscalingTargets { - fn clear(&mut self) { - self.high_priority_cpu_utilization_percent = 0; - self.storage_utilization_percent = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AutoscalingConfig_AutoscalingTargets { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AutoscalingConfig_AutoscalingTargets { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Instance { - // message fields - pub name: ::std::string::String, - pub config: ::std::string::String, - pub display_name: ::std::string::String, - pub node_count: i32, - pub processing_units: i32, - pub autoscaling_config: ::protobuf::SingularPtrField, - pub state: Instance_State, - pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub endpoint_uris: ::protobuf::RepeatedField<::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub update_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Instance { - fn default() -> &'a Instance { - ::default_instance() - } -} - -impl Instance { - pub fn new() -> Instance { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string config = 2; - - - pub fn get_config(&self) -> &str { - &self.config - } - pub fn clear_config(&mut self) { - self.config.clear(); - } - - // Param is passed by value, moved - pub fn set_config(&mut self, v: ::std::string::String) { - self.config = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_config(&mut self) -> &mut ::std::string::String { - &mut self.config - } - - // Take field - pub fn take_config(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.config, ::std::string::String::new()) - } - - // string display_name = 3; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // int32 node_count = 5; - - - pub fn get_node_count(&self) -> i32 { - self.node_count - } - pub fn clear_node_count(&mut self) { - self.node_count = 0; - } - - // Param is passed by value, moved - pub fn set_node_count(&mut self, v: i32) { - self.node_count = v; - } - - // int32 processing_units = 9; - - - pub fn get_processing_units(&self) -> i32 { - self.processing_units - } - pub fn clear_processing_units(&mut self) { - self.processing_units = 0; - } - - // Param is passed by value, moved - pub fn set_processing_units(&mut self, v: i32) { - self.processing_units = v; - } - - // .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 17; - - - pub fn get_autoscaling_config(&self) -> &AutoscalingConfig { - self.autoscaling_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_autoscaling_config(&mut self) { - self.autoscaling_config.clear(); - } - - pub fn has_autoscaling_config(&self) -> bool { - self.autoscaling_config.is_some() - } - - // Param is passed by value, moved - pub fn set_autoscaling_config(&mut self, v: AutoscalingConfig) { - self.autoscaling_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_autoscaling_config(&mut self) -> &mut AutoscalingConfig { - if self.autoscaling_config.is_none() { - self.autoscaling_config.set_default(); - } - self.autoscaling_config.as_mut().unwrap() - } - - // Take field - pub fn take_autoscaling_config(&mut self) -> AutoscalingConfig { - self.autoscaling_config.take().unwrap_or_else(|| AutoscalingConfig::new()) - } - - // .google.spanner.admin.instance.v1.Instance.State state = 6; - - - pub fn get_state(&self) -> Instance_State { - self.state - } - pub fn clear_state(&mut self) { - self.state = Instance_State::STATE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: Instance_State) { - self.state = v; - } - - // repeated .google.spanner.admin.instance.v1.Instance.LabelsEntry labels = 7; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // repeated string endpoint_uris = 8; - - - pub fn get_endpoint_uris(&self) -> &[::std::string::String] { - &self.endpoint_uris - } - pub fn clear_endpoint_uris(&mut self) { - self.endpoint_uris.clear(); - } - - // Param is passed by value, moved - pub fn set_endpoint_uris(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.endpoint_uris = v; - } - - // Mutable pointer to the field. - pub fn mut_endpoint_uris(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.endpoint_uris - } - - // Take field - pub fn take_endpoint_uris(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.endpoint_uris, ::protobuf::RepeatedField::new()) - } - - // .google.protobuf.Timestamp create_time = 11; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp update_time = 12; - - - pub fn get_update_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.update_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_time(&mut self) { - self.update_time.clear(); - } - - pub fn has_update_time(&self) -> bool { - self.update_time.is_some() - } - - // Param is passed by value, moved - pub fn set_update_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.update_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.update_time.is_none() { - self.update_time.set_default(); - } - self.update_time.as_mut().unwrap() - } - - // Take field - pub fn take_update_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.update_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Instance { - fn is_initialized(&self) -> bool { - for v in &self.autoscaling_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.config)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.node_count = tmp; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.processing_units = tmp; - }, - 17 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.autoscaling_config)?; - }, - 6 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.state, 6, &mut self.unknown_fields)? - }, - 7 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; - }, - 8 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.endpoint_uris)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; - }, - 12 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.config.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.config); - } - if !self.display_name.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.display_name); - } - if self.node_count != 0 { - my_size += ::protobuf::rt::value_size(5, self.node_count, ::protobuf::wire_format::WireTypeVarint); - } - if self.processing_units != 0 { - my_size += ::protobuf::rt::value_size(9, self.processing_units, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.autoscaling_config.as_ref() { - let len = v.compute_size(); - my_size += 2 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.state != Instance_State::STATE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(6, self.state); - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels); - for value in &self.endpoint_uris { - my_size += ::protobuf::rt::string_size(8, &value); - }; - if let Some(ref v) = self.create_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.config.is_empty() { - os.write_string(2, &self.config)?; - } - if !self.display_name.is_empty() { - os.write_string(3, &self.display_name)?; - } - if self.node_count != 0 { - os.write_int32(5, self.node_count)?; - } - if self.processing_units != 0 { - os.write_int32(9, self.processing_units)?; - } - if let Some(ref v) = self.autoscaling_config.as_ref() { - os.write_tag(17, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.state != Instance_State::STATE_UNSPECIFIED { - os.write_enum(6, ::protobuf::ProtobufEnum::value(&self.state))?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.labels, os)?; - for v in &self.endpoint_uris { - os.write_string(8, &v)?; - }; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_time.as_ref() { - os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Instance { - Instance::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Instance| { &m.name }, - |m: &mut Instance| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "config", - |m: &Instance| { &m.config }, - |m: &mut Instance| { &mut m.config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &Instance| { &m.display_name }, - |m: &mut Instance| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "node_count", - |m: &Instance| { &m.node_count }, - |m: &mut Instance| { &mut m.node_count }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "processing_units", - |m: &Instance| { &m.processing_units }, - |m: &mut Instance| { &mut m.processing_units }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "autoscaling_config", - |m: &Instance| { &m.autoscaling_config }, - |m: &mut Instance| { &mut m.autoscaling_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "state", - |m: &Instance| { &m.state }, - |m: &mut Instance| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Instance| { &m.labels }, - |m: &mut Instance| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "endpoint_uris", - |m: &Instance| { &m.endpoint_uris }, - |m: &mut Instance| { &mut m.endpoint_uris }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Instance| { &m.create_time }, - |m: &mut Instance| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "update_time", - |m: &Instance| { &m.update_time }, - |m: &mut Instance| { &mut m.update_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Instance", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Instance { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Instance::new) - } -} - -impl ::protobuf::Clear for Instance { - fn clear(&mut self) { - self.name.clear(); - self.config.clear(); - self.display_name.clear(); - self.node_count = 0; - self.processing_units = 0; - self.autoscaling_config.clear(); - self.state = Instance_State::STATE_UNSPECIFIED; - self.labels.clear(); - self.endpoint_uris.clear(); - self.create_time.clear(); - self.update_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Instance { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Instance { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum Instance_State { - STATE_UNSPECIFIED = 0, - CREATING = 1, - READY = 2, -} - -impl ::protobuf::ProtobufEnum for Instance_State { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(Instance_State::STATE_UNSPECIFIED), - 1 => ::std::option::Option::Some(Instance_State::CREATING), - 2 => ::std::option::Option::Some(Instance_State::READY), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [Instance_State] = &[ - Instance_State::STATE_UNSPECIFIED, - Instance_State::CREATING, - Instance_State::READY, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Instance.State", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for Instance_State { -} - -impl ::std::default::Default for Instance_State { - fn default() -> Self { - Instance_State::STATE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for Instance_State { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceConfigsRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceConfigsRequest { - fn default() -> &'a ListInstanceConfigsRequest { - ::default_instance() - } -} - -impl ListInstanceConfigsRequest { - pub fn new() -> ListInstanceConfigsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceConfigsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceConfigsRequest { - ListInstanceConfigsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInstanceConfigsRequest| { &m.parent }, - |m: &mut ListInstanceConfigsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInstanceConfigsRequest| { &m.page_size }, - |m: &mut ListInstanceConfigsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInstanceConfigsRequest| { &m.page_token }, - |m: &mut ListInstanceConfigsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceConfigsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceConfigsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceConfigsRequest::new) - } -} - -impl ::protobuf::Clear for ListInstanceConfigsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceConfigsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceConfigsResponse { - // message fields - pub instance_configs: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceConfigsResponse { - fn default() -> &'a ListInstanceConfigsResponse { - ::default_instance() - } -} - -impl ListInstanceConfigsResponse { - pub fn new() -> ListInstanceConfigsResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1; - - - pub fn get_instance_configs(&self) -> &[InstanceConfig] { - &self.instance_configs - } - pub fn clear_instance_configs(&mut self) { - self.instance_configs.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_configs(&mut self, v: ::protobuf::RepeatedField) { - self.instance_configs = v; - } - - // Mutable pointer to the field. - pub fn mut_instance_configs(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.instance_configs - } - - // Take field - pub fn take_instance_configs(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.instance_configs, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceConfigsResponse { - fn is_initialized(&self) -> bool { - for v in &self.instance_configs { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.instance_configs)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.instance_configs { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.instance_configs { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceConfigsResponse { - ListInstanceConfigsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_configs", - |m: &ListInstanceConfigsResponse| { &m.instance_configs }, - |m: &mut ListInstanceConfigsResponse| { &mut m.instance_configs }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInstanceConfigsResponse| { &m.next_page_token }, - |m: &mut ListInstanceConfigsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceConfigsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceConfigsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceConfigsResponse::new) - } -} - -impl ::protobuf::Clear for ListInstanceConfigsResponse { - fn clear(&mut self) { - self.instance_configs.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceConfigsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetInstanceConfigRequest { - // message fields - pub name: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetInstanceConfigRequest { - fn default() -> &'a GetInstanceConfigRequest { - ::default_instance() - } -} - -impl GetInstanceConfigRequest { - pub fn new() -> GetInstanceConfigRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for GetInstanceConfigRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetInstanceConfigRequest { - GetInstanceConfigRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInstanceConfigRequest| { &m.name }, - |m: &mut GetInstanceConfigRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInstanceConfigRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetInstanceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInstanceConfigRequest::new) - } -} - -impl ::protobuf::Clear for GetInstanceConfigRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetInstanceConfigRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetInstanceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateInstanceConfigRequest { - // message fields - pub parent: ::std::string::String, - pub instance_config_id: ::std::string::String, - pub instance_config: ::protobuf::SingularPtrField, - pub validate_only: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateInstanceConfigRequest { - fn default() -> &'a CreateInstanceConfigRequest { - ::default_instance() - } -} - -impl CreateInstanceConfigRequest { - pub fn new() -> CreateInstanceConfigRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string instance_config_id = 2; - - - pub fn get_instance_config_id(&self) -> &str { - &self.instance_config_id - } - pub fn clear_instance_config_id(&mut self) { - self.instance_config_id.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_config_id(&mut self, v: ::std::string::String) { - self.instance_config_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_config_id(&mut self) -> &mut ::std::string::String { - &mut self.instance_config_id - } - - // Take field - pub fn take_instance_config_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_config_id, ::std::string::String::new()) - } - - // .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3; - - - pub fn get_instance_config(&self) -> &InstanceConfig { - self.instance_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_config(&mut self) { - self.instance_config.clear(); - } - - pub fn has_instance_config(&self) -> bool { - self.instance_config.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_config(&mut self, v: InstanceConfig) { - self.instance_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_config(&mut self) -> &mut InstanceConfig { - if self.instance_config.is_none() { - self.instance_config.set_default(); - } - self.instance_config.as_mut().unwrap() - } - - // Take field - pub fn take_instance_config(&mut self) -> InstanceConfig { - self.instance_config.take().unwrap_or_else(|| InstanceConfig::new()) - } - - // bool validate_only = 4; - - - pub fn get_validate_only(&self) -> bool { - self.validate_only - } - pub fn clear_validate_only(&mut self) { - self.validate_only = false; - } - - // Param is passed by value, moved - pub fn set_validate_only(&mut self, v: bool) { - self.validate_only = v; - } -} - -impl ::protobuf::Message for CreateInstanceConfigRequest { - fn is_initialized(&self) -> bool { - for v in &self.instance_config { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_config_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_config)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.validate_only = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.instance_config_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance_config_id); - } - if let Some(ref v) = self.instance_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.validate_only != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.instance_config_id.is_empty() { - os.write_string(2, &self.instance_config_id)?; - } - if let Some(ref v) = self.instance_config.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.validate_only != false { - os.write_bool(4, self.validate_only)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateInstanceConfigRequest { - CreateInstanceConfigRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateInstanceConfigRequest| { &m.parent }, - |m: &mut CreateInstanceConfigRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_config_id", - |m: &CreateInstanceConfigRequest| { &m.instance_config_id }, - |m: &mut CreateInstanceConfigRequest| { &mut m.instance_config_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_config", - |m: &CreateInstanceConfigRequest| { &m.instance_config }, - |m: &mut CreateInstanceConfigRequest| { &mut m.instance_config }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "validate_only", - |m: &CreateInstanceConfigRequest| { &m.validate_only }, - |m: &mut CreateInstanceConfigRequest| { &mut m.validate_only }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceConfigRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateInstanceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceConfigRequest::new) - } -} - -impl ::protobuf::Clear for CreateInstanceConfigRequest { - fn clear(&mut self) { - self.parent.clear(); - self.instance_config_id.clear(); - self.instance_config.clear(); - self.validate_only = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateInstanceConfigRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateInstanceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateInstanceConfigRequest { - // message fields - pub instance_config: ::protobuf::SingularPtrField, - pub update_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - pub validate_only: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateInstanceConfigRequest { - fn default() -> &'a UpdateInstanceConfigRequest { - ::default_instance() - } -} - -impl UpdateInstanceConfigRequest { - pub fn new() -> UpdateInstanceConfigRequest { - ::std::default::Default::default() - } - - // .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1; - - - pub fn get_instance_config(&self) -> &InstanceConfig { - self.instance_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_config(&mut self) { - self.instance_config.clear(); - } - - pub fn has_instance_config(&self) -> bool { - self.instance_config.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_config(&mut self, v: InstanceConfig) { - self.instance_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_config(&mut self) -> &mut InstanceConfig { - if self.instance_config.is_none() { - self.instance_config.set_default(); - } - self.instance_config.as_mut().unwrap() - } - - // Take field - pub fn take_instance_config(&mut self) -> InstanceConfig { - self.instance_config.take().unwrap_or_else(|| InstanceConfig::new()) - } - - // .google.protobuf.FieldMask update_mask = 2; - - - pub fn get_update_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.update_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_update_mask(&mut self) { - self.update_mask.clear(); - } - - pub fn has_update_mask(&self) -> bool { - self.update_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_update_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.update_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_update_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.update_mask.is_none() { - self.update_mask.set_default(); - } - self.update_mask.as_mut().unwrap() - } - - // Take field - pub fn take_update_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.update_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } - - // bool validate_only = 3; - - - pub fn get_validate_only(&self) -> bool { - self.validate_only - } - pub fn clear_validate_only(&mut self) { - self.validate_only = false; - } - - // Param is passed by value, moved - pub fn set_validate_only(&mut self, v: bool) { - self.validate_only = v; - } -} - -impl ::protobuf::Message for UpdateInstanceConfigRequest { - fn is_initialized(&self) -> bool { - for v in &self.instance_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.update_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_config)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.update_mask)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.validate_only = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.instance_config.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.update_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.validate_only != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.update_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.validate_only != false { - os.write_bool(3, self.validate_only)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateInstanceConfigRequest { - UpdateInstanceConfigRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_config", - |m: &UpdateInstanceConfigRequest| { &m.instance_config }, - |m: &mut UpdateInstanceConfigRequest| { &mut m.instance_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "update_mask", - |m: &UpdateInstanceConfigRequest| { &m.update_mask }, - |m: &mut UpdateInstanceConfigRequest| { &mut m.update_mask }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "validate_only", - |m: &UpdateInstanceConfigRequest| { &m.validate_only }, - |m: &mut UpdateInstanceConfigRequest| { &mut m.validate_only }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInstanceConfigRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateInstanceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceConfigRequest::new) - } -} - -impl ::protobuf::Clear for UpdateInstanceConfigRequest { - fn clear(&mut self) { - self.instance_config.clear(); - self.update_mask.clear(); - self.validate_only = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateInstanceConfigRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateInstanceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DeleteInstanceConfigRequest { - // message fields - pub name: ::std::string::String, - pub etag: ::std::string::String, - pub validate_only: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DeleteInstanceConfigRequest { - fn default() -> &'a DeleteInstanceConfigRequest { - ::default_instance() - } -} - -impl DeleteInstanceConfigRequest { - pub fn new() -> DeleteInstanceConfigRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // string etag = 2; - - - pub fn get_etag(&self) -> &str { - &self.etag - } - pub fn clear_etag(&mut self) { - self.etag.clear(); - } - - // Param is passed by value, moved - pub fn set_etag(&mut self, v: ::std::string::String) { - self.etag = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_etag(&mut self) -> &mut ::std::string::String { - &mut self.etag - } - - // Take field - pub fn take_etag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.etag, ::std::string::String::new()) - } - - // bool validate_only = 3; - - - pub fn get_validate_only(&self) -> bool { - self.validate_only - } - pub fn clear_validate_only(&mut self) { - self.validate_only = false; - } - - // Param is passed by value, moved - pub fn set_validate_only(&mut self, v: bool) { - self.validate_only = v; - } -} - -impl ::protobuf::Message for DeleteInstanceConfigRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.etag)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.validate_only = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if !self.etag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.etag); - } - if self.validate_only != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if !self.etag.is_empty() { - os.write_string(2, &self.etag)?; - } - if self.validate_only != false { - os.write_bool(3, self.validate_only)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DeleteInstanceConfigRequest { - DeleteInstanceConfigRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteInstanceConfigRequest| { &m.name }, - |m: &mut DeleteInstanceConfigRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "etag", - |m: &DeleteInstanceConfigRequest| { &m.etag }, - |m: &mut DeleteInstanceConfigRequest| { &mut m.etag }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "validate_only", - |m: &DeleteInstanceConfigRequest| { &m.validate_only }, - |m: &mut DeleteInstanceConfigRequest| { &mut m.validate_only }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteInstanceConfigRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DeleteInstanceConfigRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteInstanceConfigRequest::new) - } -} - -impl ::protobuf::Clear for DeleteInstanceConfigRequest { - fn clear(&mut self) { - self.name.clear(); - self.etag.clear(); - self.validate_only = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DeleteInstanceConfigRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DeleteInstanceConfigRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceConfigOperationsRequest { - // message fields - pub parent: ::std::string::String, - pub filter: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceConfigOperationsRequest { - fn default() -> &'a ListInstanceConfigOperationsRequest { - ::default_instance() - } -} - -impl ListInstanceConfigOperationsRequest { - pub fn new() -> ListInstanceConfigOperationsRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string filter = 2; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } - - // int32 page_size = 3; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 4; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceConfigOperationsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.filter); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(3, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.filter.is_empty() { - os.write_string(2, &self.filter)?; - } - if self.page_size != 0 { - os.write_int32(3, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(4, &self.page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceConfigOperationsRequest { - ListInstanceConfigOperationsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInstanceConfigOperationsRequest| { &m.parent }, - |m: &mut ListInstanceConfigOperationsRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListInstanceConfigOperationsRequest| { &m.filter }, - |m: &mut ListInstanceConfigOperationsRequest| { &mut m.filter }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInstanceConfigOperationsRequest| { &m.page_size }, - |m: &mut ListInstanceConfigOperationsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInstanceConfigOperationsRequest| { &m.page_token }, - |m: &mut ListInstanceConfigOperationsRequest| { &mut m.page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceConfigOperationsRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceConfigOperationsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceConfigOperationsRequest::new) - } -} - -impl ::protobuf::Clear for ListInstanceConfigOperationsRequest { - fn clear(&mut self) { - self.parent.clear(); - self.filter.clear(); - self.page_size = 0; - self.page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceConfigOperationsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigOperationsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstanceConfigOperationsResponse { - // message fields - pub operations: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstanceConfigOperationsResponse { - fn default() -> &'a ListInstanceConfigOperationsResponse { - ::default_instance() - } -} - -impl ListInstanceConfigOperationsResponse { - pub fn new() -> ListInstanceConfigOperationsResponse { - ::std::default::Default::default() - } - - // repeated .google.longrunning.Operation operations = 1; - - - pub fn get_operations(&self) -> &[super::operations::Operation] { - &self.operations - } - pub fn clear_operations(&mut self) { - self.operations.clear(); - } - - // Param is passed by value, moved - pub fn set_operations(&mut self, v: ::protobuf::RepeatedField) { - self.operations = v; - } - - // Mutable pointer to the field. - pub fn mut_operations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.operations - } - - // Take field - pub fn take_operations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.operations, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstanceConfigOperationsResponse { - fn is_initialized(&self) -> bool { - for v in &self.operations { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.operations)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.operations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.operations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstanceConfigOperationsResponse { - ListInstanceConfigOperationsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "operations", - |m: &ListInstanceConfigOperationsResponse| { &m.operations }, - |m: &mut ListInstanceConfigOperationsResponse| { &mut m.operations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInstanceConfigOperationsResponse| { &m.next_page_token }, - |m: &mut ListInstanceConfigOperationsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstanceConfigOperationsResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstanceConfigOperationsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstanceConfigOperationsResponse::new) - } -} - -impl ::protobuf::Clear for ListInstanceConfigOperationsResponse { - fn clear(&mut self) { - self.operations.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstanceConfigOperationsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstanceConfigOperationsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetInstanceRequest { - // message fields - pub name: ::std::string::String, - pub field_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetInstanceRequest { - fn default() -> &'a GetInstanceRequest { - ::default_instance() - } -} - -impl GetInstanceRequest { - pub fn new() -> GetInstanceRequest { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.protobuf.FieldMask field_mask = 2; - - - pub fn get_field_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.field_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_field_mask(&mut self) { - self.field_mask.clear(); - } - - pub fn has_field_mask(&self) -> bool { - self.field_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_field_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.field_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.field_mask.is_none() { - self.field_mask.set_default(); - } - self.field_mask.as_mut().unwrap() - } - - // Take field - pub fn take_field_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.field_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} - -impl ::protobuf::Message for GetInstanceRequest { - fn is_initialized(&self) -> bool { - for v in &self.field_mask { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.field_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.field_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetInstanceRequest { - GetInstanceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetInstanceRequest| { &m.name }, - |m: &mut GetInstanceRequest| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "field_mask", - |m: &GetInstanceRequest| { &m.field_mask }, - |m: &mut GetInstanceRequest| { &mut m.field_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetInstanceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static GetInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetInstanceRequest::new) - } -} - -impl ::protobuf::Clear for GetInstanceRequest { - fn clear(&mut self) { - self.name.clear(); - self.field_mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetInstanceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateInstanceRequest { - // message fields - pub parent: ::std::string::String, - pub instance_id: ::std::string::String, - pub instance: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateInstanceRequest { - fn default() -> &'a CreateInstanceRequest { - ::default_instance() - } -} - -impl CreateInstanceRequest { - pub fn new() -> CreateInstanceRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // string instance_id = 2; - - - pub fn get_instance_id(&self) -> &str { - &self.instance_id - } - pub fn clear_instance_id(&mut self) { - self.instance_id.clear(); - } - - // Param is passed by value, moved - pub fn set_instance_id(&mut self, v: ::std::string::String) { - self.instance_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_id(&mut self) -> &mut ::std::string::String { - &mut self.instance_id - } - - // Take field - pub fn take_instance_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.instance_id, ::std::string::String::new()) - } - - // .google.spanner.admin.instance.v1.Instance instance = 3; - - - pub fn get_instance(&self) -> &Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut Instance { - if self.instance.is_none() { - self.instance.set_default(); - } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> Instance { - self.instance.take().unwrap_or_else(|| Instance::new()) - } -} - -impl ::protobuf::Message for CreateInstanceRequest { - fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.instance_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if !self.instance_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.instance_id); - } - if let Some(ref v) = self.instance.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if !self.instance_id.is_empty() { - os.write_string(2, &self.instance_id)?; - } - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateInstanceRequest { - CreateInstanceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &CreateInstanceRequest| { &m.parent }, - |m: &mut CreateInstanceRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "instance_id", - |m: &CreateInstanceRequest| { &m.instance_id }, - |m: &mut CreateInstanceRequest| { &mut m.instance_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &CreateInstanceRequest| { &m.instance }, - |m: &mut CreateInstanceRequest| { &mut m.instance }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CreateInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceRequest::new) - } -} - -impl ::protobuf::Clear for CreateInstanceRequest { - fn clear(&mut self) { - self.parent.clear(); - self.instance_id.clear(); - self.instance.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateInstanceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstancesRequest { - // message fields - pub parent: ::std::string::String, - pub page_size: i32, - pub page_token: ::std::string::String, - pub filter: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstancesRequest { - fn default() -> &'a ListInstancesRequest { - ::default_instance() - } -} - -impl ListInstancesRequest { - pub fn new() -> ListInstancesRequest { - ::std::default::Default::default() - } - - // string parent = 1; - - - pub fn get_parent(&self) -> &str { - &self.parent - } - pub fn clear_parent(&mut self) { - self.parent.clear(); - } - - // Param is passed by value, moved - pub fn set_parent(&mut self, v: ::std::string::String) { - self.parent = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_parent(&mut self) -> &mut ::std::string::String { - &mut self.parent - } - - // Take field - pub fn take_parent(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.parent, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstancesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.parent)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.parent.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.parent); - } - if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); - } - if !self.page_token.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.page_token); - } - if !self.filter.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.filter); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.parent.is_empty() { - os.write_string(1, &self.parent)?; - } - if self.page_size != 0 { - os.write_int32(2, self.page_size)?; - } - if !self.page_token.is_empty() { - os.write_string(3, &self.page_token)?; - } - if !self.filter.is_empty() { - os.write_string(4, &self.filter)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstancesRequest { - ListInstancesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parent", - |m: &ListInstancesRequest| { &m.parent }, - |m: &mut ListInstancesRequest| { &mut m.parent }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListInstancesRequest| { &m.page_size }, - |m: &mut ListInstancesRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListInstancesRequest| { &m.page_token }, - |m: &mut ListInstancesRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListInstancesRequest| { &m.filter }, - |m: &mut ListInstancesRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstancesRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstancesRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstancesRequest::new) - } -} - -impl ::protobuf::Clear for ListInstancesRequest { - fn clear(&mut self) { - self.parent.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstancesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstancesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInstancesResponse { - // message fields - pub instances: ::protobuf::RepeatedField, - pub next_page_token: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInstancesResponse { - fn default() -> &'a ListInstancesResponse { - ::default_instance() - } -} - -impl ListInstancesResponse { - pub fn new() -> ListInstancesResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.admin.instance.v1.Instance instances = 1; - - - pub fn get_instances(&self) -> &[Instance] { - &self.instances - } - pub fn clear_instances(&mut self) { - self.instances.clear(); - } - - // Param is passed by value, moved - pub fn set_instances(&mut self, v: ::protobuf::RepeatedField) { - self.instances = v; - } - - // Mutable pointer to the field. - pub fn mut_instances(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.instances - } - - // Take field - pub fn take_instances(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.instances, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ListInstancesResponse { - fn is_initialized(&self) -> bool { - for v in &self.instances { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.instances)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.instances { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if !self.next_page_token.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.next_page_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.instances { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if !self.next_page_token.is_empty() { - os.write_string(2, &self.next_page_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInstancesResponse { - ListInstancesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instances", - |m: &ListInstancesResponse| { &m.instances }, - |m: &mut ListInstancesResponse| { &mut m.instances }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListInstancesResponse| { &m.next_page_token }, - |m: &mut ListInstancesResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInstancesResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ListInstancesResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListInstancesResponse::new) - } -} - -impl ::protobuf::Clear for ListInstancesResponse { - fn clear(&mut self) { - self.instances.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInstancesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInstancesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateInstanceRequest { - // message fields - pub instance: ::protobuf::SingularPtrField, - pub field_mask: ::protobuf::SingularPtrField<::protobuf::well_known_types::FieldMask>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateInstanceRequest { - fn default() -> &'a UpdateInstanceRequest { - ::default_instance() - } -} - -impl UpdateInstanceRequest { - pub fn new() -> UpdateInstanceRequest { - ::std::default::Default::default() - } - - // .google.spanner.admin.instance.v1.Instance instance = 1; - - - pub fn get_instance(&self) -> &Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); - } - - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } - - // Param is passed by value, moved - pub fn set_instance(&mut self, v: Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut Instance { - if self.instance.is_none() { - self.instance.set_default(); - } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> Instance { - self.instance.take().unwrap_or_else(|| Instance::new()) - } - - // .google.protobuf.FieldMask field_mask = 2; - - - pub fn get_field_mask(&self) -> &::protobuf::well_known_types::FieldMask { - self.field_mask.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FieldMask as ::protobuf::Message>::default_instance()) - } - pub fn clear_field_mask(&mut self) { - self.field_mask.clear(); - } - - pub fn has_field_mask(&self) -> bool { - self.field_mask.is_some() - } - - // Param is passed by value, moved - pub fn set_field_mask(&mut self, v: ::protobuf::well_known_types::FieldMask) { - self.field_mask = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_mask(&mut self) -> &mut ::protobuf::well_known_types::FieldMask { - if self.field_mask.is_none() { - self.field_mask.set_default(); - } - self.field_mask.as_mut().unwrap() - } - - // Take field - pub fn take_field_mask(&mut self) -> ::protobuf::well_known_types::FieldMask { - self.field_mask.take().unwrap_or_else(|| ::protobuf::well_known_types::FieldMask::new()) - } -} -impl ::protobuf::Message for UpdateInstanceRequest { - fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; - for v in &self.field_mask { - if !v.is_initialized() { - return false; - } + fn default_instance() -> &'static GetInstanceConfigRequest { + static instance: GetInstanceConfigRequest = GetInstanceConfigRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.instance.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.field_mask.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.field_mask.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateInstanceRequest { - UpdateInstanceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &UpdateInstanceRequest| { &m.instance }, - |m: &mut UpdateInstanceRequest| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FieldMask>>( - "field_mask", - |m: &UpdateInstanceRequest| { &m.field_mask }, - |m: &mut UpdateInstanceRequest| { &mut m.field_mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInstanceRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static UpdateInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceRequest::new) + &instance } } -impl ::protobuf::Clear for UpdateInstanceRequest { - fn clear(&mut self) { - self.instance.clear(); - self.field_mask.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetInstanceConfigRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetInstanceConfigRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateInstanceRequest { +impl ::std::fmt::Display for GetInstanceConfigRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GetInstanceConfigRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct DeleteInstanceRequest { +/// The request for [GetInstance][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.GetInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GetInstanceRequest { // message fields + /// Required. The name of the requested instance. Values are of the form + /// `projects//instances/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.GetInstanceRequest.name) pub name: ::std::string::String, + /// If field_mask is present, specifies the subset of [][Instance] fields that + /// should be returned. + /// If absent, all [][Instance] fields are returned. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.GetInstanceRequest.field_mask) + pub field_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.GetInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a DeleteInstanceRequest { - fn default() -> &'a DeleteInstanceRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a GetInstanceRequest { + fn default() -> &'a GetInstanceRequest { + ::default_instance() } } -impl DeleteInstanceRequest { - pub fn new() -> DeleteInstanceRequest { +impl GetInstanceRequest { + pub fn new() -> GetInstanceRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetInstanceRequest| { &m.name }, + |m: &mut GetInstanceRequest| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "field_mask", + |m: &GetInstanceRequest| { &m.field_mask }, + |m: &mut GetInstanceRequest| { &mut m.field_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetInstanceRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for DeleteInstanceRequest { +impl ::protobuf::Message for GetInstanceRequest { + const NAME: &'static str = "GetInstanceRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.field_mask)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5495,295 +1293,334 @@ impl ::protobuf::Message for DeleteInstanceRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if let Some(v) = self.field_mask.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + if let Some(v) = self.field_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> DeleteInstanceRequest { - DeleteInstanceRequest::new() + fn new() -> GetInstanceRequest { + GetInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteInstanceRequest| { &m.name }, - |m: &mut DeleteInstanceRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteInstanceRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.field_mask.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static DeleteInstanceRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteInstanceRequest::new) + fn default_instance() -> &'static GetInstanceRequest { + static instance: GetInstanceRequest = GetInstanceRequest { + name: ::std::string::String::new(), + field_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteInstanceRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteInstanceRequest { +impl ::std::fmt::Display for GetInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for DeleteInstanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for GetInstanceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateInstanceMetadata { +/// The request for [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.CreateInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateInstanceRequest { // message fields - pub instance: ::protobuf::SingularPtrField, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Required. The name of the project in which to create the instance. Values + /// are of the form `projects/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceRequest.parent) + pub parent: ::std::string::String, + /// Required. The ID of the instance to create. Valid identifiers are of the + /// form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in + /// length. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceRequest.instance_id) + pub instance_id: ::std::string::String, + /// Required. The instance to create. The name may be omitted, but if + /// specified must be `/instances/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceRequest.instance) + pub instance: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.CreateInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateInstanceMetadata { - fn default() -> &'a CreateInstanceMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a CreateInstanceRequest { + fn default() -> &'a CreateInstanceRequest { + ::default_instance() } } -impl CreateInstanceMetadata { - pub fn new() -> CreateInstanceMetadata { +impl CreateInstanceRequest { + pub fn new() -> CreateInstanceRequest { ::std::default::Default::default() } - // .google.spanner.admin.instance.v1.Instance instance = 1; - - - pub fn get_instance(&self) -> &Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &CreateInstanceRequest| { &m.parent }, + |m: &mut CreateInstanceRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "instance_id", + |m: &CreateInstanceRequest| { &m.instance_id }, + |m: &mut CreateInstanceRequest| { &mut m.instance_id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Instance>( + "instance", + |m: &CreateInstanceRequest| { &m.instance }, + |m: &mut CreateInstanceRequest| { &mut m.instance }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateInstanceRequest", + fields, + oneofs, + ) } +} - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } +impl ::protobuf::Message for CreateInstanceRequest { + const NAME: &'static str = "CreateInstanceRequest"; - // Param is passed by value, moved - pub fn set_instance(&mut self, v: Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut Instance { - if self.instance.is_none() { - self.instance.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; + }, + 18 => { + self.instance_id = is.read_string()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> Instance { - self.instance.take().unwrap_or_else(|| Instance::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); + } + if !self.instance_id.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.instance_id); + } + if let Some(v) = self.instance.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; + } + if !self.instance_id.is_empty() { + os.write_string(2, &self.instance_id)?; } - self.start_time.as_mut().unwrap() + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.protobuf.Timestamp cancel_time = 3; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() + fn new() -> CreateInstanceRequest { + CreateInstanceRequest::new() } - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); + fn clear(&mut self) { + self.parent.clear(); + self.instance_id.clear(); + self.instance.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() + fn default_instance() -> &'static CreateInstanceRequest { + static instance: CreateInstanceRequest = CreateInstanceRequest { + parent: ::std::string::String::new(), + instance_id: ::std::string::String::new(), + instance: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) +impl ::protobuf::MessageFull for CreateInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateInstanceRequest").unwrap()).clone() } +} - // .google.protobuf.Timestamp end_time = 4; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); +impl ::std::fmt::Display for CreateInstanceRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } +impl ::protobuf::reflect::ProtobufValue for CreateInstanceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// The request for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ListInstancesRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListInstancesRequest { + // message fields + /// Required. The name of the project for which a list of instances is + /// requested. Values are of the form `projects/`. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesRequest.parent) + pub parent: ::std::string::String, + /// Number of instances to be returned in the response. If 0 or less, defaults + /// to the server's maximum allowed page size. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesRequest.page_size) + pub page_size: i32, + /// If non-empty, `page_token` should contain a + /// [next_page_token][google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token] from a + /// previous [ListInstancesResponse][google.spanner.admin.instance.v1.ListInstancesResponse]. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesRequest.page_token) + pub page_token: ::std::string::String, + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesRequest.filter) + pub filter: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.ListInstancesRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a ListInstancesRequest { + fn default() -> &'a ListInstancesRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() +impl ListInstancesRequest { + pub fn new() -> ListInstancesRequest { + ::std::default::Default::default() } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "parent", + |m: &ListInstancesRequest| { &m.parent }, + |m: &mut ListInstancesRequest| { &mut m.parent }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListInstancesRequest| { &m.page_size }, + |m: &mut ListInstancesRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListInstancesRequest| { &m.page_token }, + |m: &mut ListInstancesRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "filter", + |m: &ListInstancesRequest| { &m.filter }, + |m: &mut ListInstancesRequest| { &mut m.filter }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstancesRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateInstanceMetadata { +impl ::protobuf::Message for ListInstancesRequest { + const NAME: &'static str = "ListInstancesRequest"; + fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.parent = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + 26 => { + self.page_token = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 34 => { + self.filter = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -5792,343 +1629,307 @@ impl ::protobuf::Message for CreateInstanceMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.instance.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.parent.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.parent); } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if self.page_size != 0 { + my_size += ::protobuf::rt::int32_size(2, self.page_size); } - if let Some(ref v) = self.cancel_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.page_token.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.page_token); } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.filter.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.filter); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.parent.is_empty() { + os.write_string(1, &self.parent)?; } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.page_size != 0 { + os.write_int32(2, self.page_size)?; } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.page_token.is_empty() { + os.write_string(3, &self.page_token)?; } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.filter.is_empty() { + os.write_string(4, &self.filter)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CreateInstanceMetadata { - CreateInstanceMetadata::new() + fn new() -> ListInstancesRequest { + ListInstancesRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &CreateInstanceMetadata| { &m.instance }, - |m: &mut CreateInstanceMetadata| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &CreateInstanceMetadata| { &m.start_time }, - |m: &mut CreateInstanceMetadata| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &CreateInstanceMetadata| { &m.cancel_time }, - |m: &mut CreateInstanceMetadata| { &mut m.cancel_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &CreateInstanceMetadata| { &m.end_time }, - |m: &mut CreateInstanceMetadata| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.parent.clear(); + self.page_size = 0; + self.page_token.clear(); + self.filter.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceMetadata::new) + fn default_instance() -> &'static ListInstancesRequest { + static instance: ListInstancesRequest = ListInstancesRequest { + parent: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + filter: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateInstanceMetadata { - fn clear(&mut self) { - self.instance.clear(); - self.start_time.clear(); - self.cancel_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListInstancesRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstancesRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateInstanceMetadata { +impl ::std::fmt::Display for ListInstancesRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateInstanceMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ListInstancesRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct UpdateInstanceMetadata { +/// The response for [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ListInstancesResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ListInstancesResponse { // message fields - pub instance: ::protobuf::SingularPtrField, - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The list of requested instances. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesResponse.instances) + pub instances: ::std::vec::Vec, + /// `next_page_token` can be sent in a subsequent + /// [ListInstances][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances] call to fetch more + /// of the matching instances. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token) + pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.ListInstancesResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a UpdateInstanceMetadata { - fn default() -> &'a UpdateInstanceMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a ListInstancesResponse { + fn default() -> &'a ListInstancesResponse { + ::default_instance() } } -impl UpdateInstanceMetadata { - pub fn new() -> UpdateInstanceMetadata { +impl ListInstancesResponse { + pub fn new() -> ListInstancesResponse { ::std::default::Default::default() } - // .google.spanner.admin.instance.v1.Instance instance = 1; - - - pub fn get_instance(&self) -> &Instance { - self.instance.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance(&mut self) { - self.instance.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "instances", + |m: &ListInstancesResponse| { &m.instances }, + |m: &mut ListInstancesResponse| { &mut m.instances }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListInstancesResponse| { &m.next_page_token }, + |m: &mut ListInstancesResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListInstancesResponse", + fields, + oneofs, + ) } +} - pub fn has_instance(&self) -> bool { - self.instance.is_some() - } +impl ::protobuf::Message for ListInstancesResponse { + const NAME: &'static str = "ListInstancesResponse"; - // Param is passed by value, moved - pub fn set_instance(&mut self, v: Instance) { - self.instance = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance(&mut self) -> &mut Instance { - if self.instance.is_none() { - self.instance.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.instances.push(is.read_message()?); + }, + 18 => { + self.next_page_token = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.instance.as_mut().unwrap() - } - - // Take field - pub fn take_instance(&mut self) -> Instance { - self.instance.take().unwrap_or_else(|| Instance::new()) - } - - // .google.protobuf.Timestamp start_time = 2; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.instances { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.next_page_token.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - self.start_time.as_mut().unwrap() + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.instances { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if !self.next_page_token.is_empty() { + os.write_string(2, &self.next_page_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.protobuf.Timestamp cancel_time = 3; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); + fn new() -> ListInstancesResponse { + ListInstancesResponse::new() } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() + fn clear(&mut self) { + self.instances.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn default_instance() -> &'static ListInstancesResponse { + static instance: ListInstancesResponse = ListInstancesResponse { + instances: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // .google.protobuf.Timestamp end_time = 4; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); +impl ::protobuf::MessageFull for ListInstancesResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListInstancesResponse").unwrap()).clone() } +} - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() +impl ::std::fmt::Display for ListInstancesResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} + +impl ::protobuf::reflect::ProtobufValue for ListInstancesResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// The request for [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.UpdateInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateInstanceRequest { + // message fields + /// Required. The instance to update, which must always include the instance + /// name. Otherwise, only fields mentioned in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be included. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceRequest.instance) + pub instance: ::protobuf::MessageField, + /// Required. A mask specifying which fields in [][google.spanner.admin.instance.v1.UpdateInstanceRequest.instance] should be updated. + /// The field mask must always be specified; this prevents any future fields in + /// [][google.spanner.admin.instance.v1.Instance] from being erased accidentally by clients that do not know + /// about them. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask) + pub field_mask: ::protobuf::MessageField<::protobuf::well_known_types::field_mask::FieldMask>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.UpdateInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a UpdateInstanceRequest { + fn default() -> &'a UpdateInstanceRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() +impl UpdateInstanceRequest { + pub fn new() -> UpdateInstanceRequest { + ::std::default::Default::default() } - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Instance>( + "instance", + |m: &UpdateInstanceRequest| { &m.instance }, + |m: &mut UpdateInstanceRequest| { &mut m.instance }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::field_mask::FieldMask>( + "field_mask", + |m: &UpdateInstanceRequest| { &m.field_mask }, + |m: &mut UpdateInstanceRequest| { &mut m.field_mask }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateInstanceRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateInstanceMetadata { +impl ::protobuf::Message for UpdateInstanceRequest { + const NAME: &'static str = "UpdateInstanceRequest"; + fn is_initialized(&self) -> bool { - for v in &self.instance { - if !v.is_initialized() { - return false; - } - }; - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.field_mask)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6137,301 +1938,295 @@ impl ::protobuf::Message for UpdateInstanceMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.instance.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.cancel_time.as_ref() { + if let Some(v) = self.instance.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.end_time.as_ref() { + if let Some(v) = self.field_mask.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.field_mask.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> UpdateInstanceMetadata { - UpdateInstanceMetadata::new() + fn new() -> UpdateInstanceRequest { + UpdateInstanceRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance", - |m: &UpdateInstanceMetadata| { &m.instance }, - |m: &mut UpdateInstanceMetadata| { &mut m.instance }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &UpdateInstanceMetadata| { &m.start_time }, - |m: &mut UpdateInstanceMetadata| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &UpdateInstanceMetadata| { &m.cancel_time }, - |m: &mut UpdateInstanceMetadata| { &mut m.cancel_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &UpdateInstanceMetadata| { &m.end_time }, - |m: &mut UpdateInstanceMetadata| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInstanceMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.instance.clear(); + self.field_mask.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static UpdateInstanceMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceMetadata::new) + fn default_instance() -> &'static UpdateInstanceRequest { + static instance: UpdateInstanceRequest = UpdateInstanceRequest { + instance: ::protobuf::MessageField::none(), + field_mask: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateInstanceMetadata { - fn clear(&mut self) { - self.instance.clear(); - self.start_time.clear(); - self.cancel_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateInstanceRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateInstanceMetadata { +impl ::std::fmt::Display for UpdateInstanceRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateInstanceMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateInstanceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CreateInstanceConfigMetadata { +/// The request for [DeleteInstance][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.DeleteInstanceRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DeleteInstanceRequest { // message fields - pub instance_config: ::protobuf::SingularPtrField, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Required. The name of the instance to be deleted. Values are of the form + /// `projects//instances/` + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.DeleteInstanceRequest.name) + pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.DeleteInstanceRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CreateInstanceConfigMetadata { - fn default() -> &'a CreateInstanceConfigMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a DeleteInstanceRequest { + fn default() -> &'a DeleteInstanceRequest { + ::default_instance() } } -impl CreateInstanceConfigMetadata { - pub fn new() -> CreateInstanceConfigMetadata { +impl DeleteInstanceRequest { + pub fn new() -> DeleteInstanceRequest { ::std::default::Default::default() } - // .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteInstanceRequest| { &m.name }, + |m: &mut DeleteInstanceRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteInstanceRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for DeleteInstanceRequest { + const NAME: &'static str = "DeleteInstanceRequest"; - pub fn get_instance_config(&self) -> &InstanceConfig { - self.instance_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_config(&mut self) { - self.instance_config.clear(); + fn is_initialized(&self) -> bool { + true } - pub fn has_instance_config(&self) -> bool { - self.instance_config.is_some() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Param is passed by value, moved - pub fn set_instance_config(&mut self, v: InstanceConfig) { - self.instance_config = ::protobuf::SingularPtrField::some(v); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_config(&mut self) -> &mut InstanceConfig { - if self.instance_config.is_none() { - self.instance_config.set_default(); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; } - self.instance_config.as_mut().unwrap() + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Take field - pub fn take_instance_config(&mut self) -> InstanceConfig { - self.instance_config.take().unwrap_or_else(|| InstanceConfig::new()) + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // .google.spanner.admin.instance.v1.OperationProgress progress = 2; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn has_progress(&self) -> bool { - self.progress.is_some() + fn new() -> DeleteInstanceRequest { + DeleteInstanceRequest::new() } - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() + fn default_instance() -> &'static DeleteInstanceRequest { + static instance: DeleteInstanceRequest = DeleteInstanceRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) +impl ::protobuf::MessageFull for DeleteInstanceRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteInstanceRequest").unwrap()).clone() } +} - // .google.protobuf.Timestamp cancel_time = 3; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); +impl ::std::fmt::Display for DeleteInstanceRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() - } +impl ::protobuf::reflect::ProtobufValue for DeleteInstanceRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); +/// Metadata type for the operation returned by +/// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.CreateInstanceMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CreateInstanceMetadata { + // message fields + /// The instance being created. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceMetadata.instance) + pub instance: ::protobuf::MessageField, + /// The time at which the + /// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance] request was + /// received. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceMetadata.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which this operation was cancelled. If set, this operation is + /// in the process of undoing itself (which is guaranteed to succeed) and + /// cannot be cancelled again. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceMetadata.cancel_time) + pub cancel_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which this operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.CreateInstanceMetadata.end_time) + pub end_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.CreateInstanceMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a CreateInstanceMetadata { + fn default() -> &'a CreateInstanceMetadata { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() +impl CreateInstanceMetadata { + pub fn new() -> CreateInstanceMetadata { + ::std::default::Default::default() } - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Instance>( + "instance", + |m: &CreateInstanceMetadata| { &m.instance }, + |m: &mut CreateInstanceMetadata| { &mut m.instance }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &CreateInstanceMetadata| { &m.start_time }, + |m: &mut CreateInstanceMetadata| { &mut m.start_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "cancel_time", + |m: &CreateInstanceMetadata| { &m.cancel_time }, + |m: &mut CreateInstanceMetadata| { &mut m.cancel_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "end_time", + |m: &CreateInstanceMetadata| { &m.end_time }, + |m: &mut CreateInstanceMetadata| { &mut m.end_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateInstanceMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CreateInstanceConfigMetadata { +impl ::protobuf::Message for CreateInstanceMetadata { + const NAME: &'static str = "CreateInstanceMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.instance_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_config)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.cancel_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.end_time)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6440,286 +2235,187 @@ impl ::protobuf::Message for CreateInstanceConfigMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.instance_config.as_ref() { + if let Some(v) = self.instance.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.progress.as_ref() { + if let Some(v) = self.cancel_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.cancel_time.as_ref() { + if let Some(v) = self.end_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.cancel_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.end_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CreateInstanceConfigMetadata { - CreateInstanceConfigMetadata::new() + fn new() -> CreateInstanceMetadata { + CreateInstanceMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_config", - |m: &CreateInstanceConfigMetadata| { &m.instance_config }, - |m: &mut CreateInstanceConfigMetadata| { &mut m.instance_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &CreateInstanceConfigMetadata| { &m.progress }, - |m: &mut CreateInstanceConfigMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &CreateInstanceConfigMetadata| { &m.cancel_time }, - |m: &mut CreateInstanceConfigMetadata| { &mut m.cancel_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateInstanceConfigMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.instance.clear(); + self.start_time.clear(); + self.cancel_time.clear(); + self.end_time.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CreateInstanceConfigMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateInstanceConfigMetadata::new) + fn default_instance() -> &'static CreateInstanceMetadata { + static instance: CreateInstanceMetadata = CreateInstanceMetadata { + instance: ::protobuf::MessageField::none(), + start_time: ::protobuf::MessageField::none(), + cancel_time: ::protobuf::MessageField::none(), + end_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateInstanceConfigMetadata { - fn clear(&mut self) { - self.instance_config.clear(); - self.progress.clear(); - self.cancel_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateInstanceMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateInstanceMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateInstanceConfigMetadata { +impl ::std::fmt::Display for CreateInstanceMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CreateInstanceConfigMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CreateInstanceMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct UpdateInstanceConfigMetadata { +/// Metadata type for the operation returned by +/// [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]. +// @@protoc_insertion_point(message:google.spanner.admin.instance.v1.UpdateInstanceMetadata) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct UpdateInstanceMetadata { // message fields - pub instance_config: ::protobuf::SingularPtrField, - pub progress: ::protobuf::SingularPtrField, - pub cancel_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// The desired end state of the update. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceMetadata.instance) + pub instance: ::protobuf::MessageField, + /// The time at which [UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance] + /// request was received. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceMetadata.start_time) + pub start_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which this operation was cancelled. If set, this operation is + /// in the process of undoing itself (which is guaranteed to succeed) and + /// cannot be cancelled again. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time) + pub cancel_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// The time at which this operation failed or was completed successfully. + // @@protoc_insertion_point(field:google.spanner.admin.instance.v1.UpdateInstanceMetadata.end_time) + pub end_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.admin.instance.v1.UpdateInstanceMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a UpdateInstanceConfigMetadata { - fn default() -> &'a UpdateInstanceConfigMetadata { - ::default_instance() +impl<'a> ::std::default::Default for &'a UpdateInstanceMetadata { + fn default() -> &'a UpdateInstanceMetadata { + ::default_instance() } } -impl UpdateInstanceConfigMetadata { - pub fn new() -> UpdateInstanceConfigMetadata { +impl UpdateInstanceMetadata { + pub fn new() -> UpdateInstanceMetadata { ::std::default::Default::default() } - // .google.spanner.admin.instance.v1.InstanceConfig instance_config = 1; - - - pub fn get_instance_config(&self) -> &InstanceConfig { - self.instance_config.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_instance_config(&mut self) { - self.instance_config.clear(); - } - - pub fn has_instance_config(&self) -> bool { - self.instance_config.is_some() - } - - // Param is passed by value, moved - pub fn set_instance_config(&mut self, v: InstanceConfig) { - self.instance_config = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_instance_config(&mut self) -> &mut InstanceConfig { - if self.instance_config.is_none() { - self.instance_config.set_default(); - } - self.instance_config.as_mut().unwrap() - } - - // Take field - pub fn take_instance_config(&mut self) -> InstanceConfig { - self.instance_config.take().unwrap_or_else(|| InstanceConfig::new()) - } - - // .google.spanner.admin.instance.v1.OperationProgress progress = 2; - - - pub fn get_progress(&self) -> &super::common::OperationProgress { - self.progress.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_progress(&mut self) { - self.progress.clear(); - } - - pub fn has_progress(&self) -> bool { - self.progress.is_some() - } - - // Param is passed by value, moved - pub fn set_progress(&mut self, v: super::common::OperationProgress) { - self.progress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_progress(&mut self) -> &mut super::common::OperationProgress { - if self.progress.is_none() { - self.progress.set_default(); - } - self.progress.as_mut().unwrap() - } - - // Take field - pub fn take_progress(&mut self) -> super::common::OperationProgress { - self.progress.take().unwrap_or_else(|| super::common::OperationProgress::new()) - } - - // .google.protobuf.Timestamp cancel_time = 3; - - - pub fn get_cancel_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.cancel_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_cancel_time(&mut self) { - self.cancel_time.clear(); - } - - pub fn has_cancel_time(&self) -> bool { - self.cancel_time.is_some() - } - - // Param is passed by value, moved - pub fn set_cancel_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.cancel_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cancel_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.cancel_time.is_none() { - self.cancel_time.set_default(); - } - self.cancel_time.as_mut().unwrap() - } - - // Take field - pub fn take_cancel_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.cancel_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Instance>( + "instance", + |m: &UpdateInstanceMetadata| { &m.instance }, + |m: &mut UpdateInstanceMetadata| { &mut m.instance }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "start_time", + |m: &UpdateInstanceMetadata| { &m.start_time }, + |m: &mut UpdateInstanceMetadata| { &mut m.start_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "cancel_time", + |m: &UpdateInstanceMetadata| { &m.cancel_time }, + |m: &mut UpdateInstanceMetadata| { &mut m.cancel_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "end_time", + |m: &UpdateInstanceMetadata| { &m.end_time }, + |m: &mut UpdateInstanceMetadata| { &mut m.end_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "UpdateInstanceMetadata", + fields, + oneofs, + ) } } -impl ::protobuf::Message for UpdateInstanceConfigMetadata { +impl ::protobuf::Message for UpdateInstanceMetadata { + const NAME: &'static str = "UpdateInstanceMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.instance_config { - if !v.is_initialized() { - return false; - } - }; - for v in &self.progress { - if !v.is_initialized() { - return false; - } - }; - for v in &self.cancel_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.instance_config)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.instance)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.progress)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.start_time)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cancel_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.cancel_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.end_time)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6728,127 +2424,93 @@ impl ::protobuf::Message for UpdateInstanceConfigMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.instance_config.as_ref() { + if let Some(v) = self.instance.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.start_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.progress.as_ref() { + if let Some(v) = self.cancel_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.cancel_time.as_ref() { + if let Some(v) = self.end_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.instance_config.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.instance.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.start_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if let Some(ref v) = self.progress.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.cancel_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - if let Some(ref v) = self.cancel_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.end_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> UpdateInstanceConfigMetadata { - UpdateInstanceConfigMetadata::new() + fn new() -> UpdateInstanceMetadata { + UpdateInstanceMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "instance_config", - |m: &UpdateInstanceConfigMetadata| { &m.instance_config }, - |m: &mut UpdateInstanceConfigMetadata| { &mut m.instance_config }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "progress", - |m: &UpdateInstanceConfigMetadata| { &m.progress }, - |m: &mut UpdateInstanceConfigMetadata| { &mut m.progress }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "cancel_time", - |m: &UpdateInstanceConfigMetadata| { &m.cancel_time }, - |m: &mut UpdateInstanceConfigMetadata| { &mut m.cancel_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInstanceConfigMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.instance.clear(); + self.start_time.clear(); + self.cancel_time.clear(); + self.end_time.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static UpdateInstanceConfigMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(UpdateInstanceConfigMetadata::new) + fn default_instance() -> &'static UpdateInstanceMetadata { + static instance: UpdateInstanceMetadata = UpdateInstanceMetadata { + instance: ::protobuf::MessageField::none(), + start_time: ::protobuf::MessageField::none(), + cancel_time: ::protobuf::MessageField::none(), + end_time: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for UpdateInstanceConfigMetadata { - fn clear(&mut self) { - self.instance_config.clear(); - self.progress.clear(); - self.cancel_time.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for UpdateInstanceMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("UpdateInstanceMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for UpdateInstanceConfigMetadata { +impl ::std::fmt::Display for UpdateInstanceMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for UpdateInstanceConfigMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for UpdateInstanceMetadata { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -6858,61 +2520,25 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\ \x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\ \x1a\x1bgoogle/protobuf/empty.proto\x1a\x20google/protobuf/field_mask.pr\ - oto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-google/spanner/admin/inst\ - ance/v1/common.proto\"\x81\x02\n\x0bReplicaInfo\x12\x1a\n\x08location\ - \x18\x01\x20\x01(\tR\x08location\x12M\n\x04type\x18\x02\x20\x01(\x0e29.g\ - oogle.spanner.admin.instance.v1.ReplicaInfo.ReplicaTypeR\x04type\x126\n\ - \x17default_leader_location\x18\x03\x20\x01(\x08R\x15defaultLeaderLocati\ - on\"O\n\x0bReplicaType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\0\x12\x0e\n\nRE\ - AD_WRITE\x10\x01\x12\r\n\tREAD_ONLY\x10\x02\x12\x0b\n\x07WITNESS\x10\x03\ - \"\xc2\x07\n\x0eInstanceConfig\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04\ - name\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\x0bdisplayName\x12[\n\ - \x0bconfig_type\x18\x05\x20\x01(\x0e25.google.spanner.admin.instance.v1.\ - InstanceConfig.TypeR\nconfigTypeB\x03\xe0A\x03\x12I\n\x08replicas\x18\ - \x03\x20\x03(\x0b2-.google.spanner.admin.instance.v1.ReplicaInfoR\x08rep\ - licas\x12_\n\x11optional_replicas\x18\x06\x20\x03(\x0b2-.google.spanner.\ - admin.instance.v1.ReplicaInfoR\x10optionalReplicasB\x03\xe0A\x03\x12K\n\ - \x0bbase_config\x18\x07\x20\x01(\tR\nbaseConfigB*\xfaA'\n%spanner.google\ - apis.com/InstanceConfig\x12T\n\x06labels\x18\x08\x20\x03(\x0b2<.google.s\ - panner.admin.instance.v1.InstanceConfig.LabelsEntryR\x06labels\x12\x12\n\ - \x04etag\x18\t\x20\x01(\tR\x04etag\x12%\n\x0eleader_options\x18\x04\x20\ - \x03(\tR\rleaderOptions\x12%\n\x0breconciling\x18\n\x20\x01(\x08R\x0brec\ - oncilingB\x03\xe0A\x03\x12Q\n\x05state\x18\x0b\x20\x01(\x0e26.google.spa\ - nner.admin.instance.v1.InstanceConfig.StateR\x05stateB\x03\xe0A\x03\x1a9\ - \n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\ - \x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"B\n\x04Type\x12\x14\n\ - \x10TYPE_UNSPECIFIED\x10\0\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x10\n\ - \x0cUSER_MANAGED\x10\x02\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\ - \x10\0\x12\x0c\n\x08CREATING\x10\x01\x12\t\n\x05READY\x10\x02:`\xeaA]\n%\ - spanner.googleapis.com/InstanceConfig\x124projects/{project}/instanceCon\ - figs/{instance_config}\"\x95\x05\n\x11AutoscalingConfig\x12y\n\x12autosc\ - aling_limits\x18\x01\x20\x01(\x0b2E.google.spanner.admin.instance.v1.Aut\ - oscalingConfig.AutoscalingLimitsR\x11autoscalingLimitsB\x03\xe0A\x02\x12\ - |\n\x13autoscaling_targets\x18\x02\x20\x01(\x0b2F.google.spanner.admin.i\ - nstance.v1.AutoscalingConfig.AutoscalingTargetsR\x12autoscalingTargetsB\ - \x03\xe0A\x02\x1a\xd3\x01\n\x11AutoscalingLimits\x12\x1d\n\tmin_nodes\ - \x18\x01\x20\x01(\x05H\0R\x08minNodes\x122\n\x14min_processing_units\x18\ - \x02\x20\x01(\x05H\0R\x12minProcessingUnits\x12\x1d\n\tmax_nodes\x18\x03\ - \x20\x01(\x05H\x01R\x08maxNodes\x122\n\x14max_processing_units\x18\x04\ - \x20\x01(\x05H\x01R\x12maxProcessingUnitsB\x0b\n\tmin_limitB\x0b\n\tmax_\ - limit\x1a\xb0\x01\n\x12AutoscalingTargets\x12U\n%high_priority_cpu_utili\ - zation_percent\x18\x01\x20\x01(\x05R!highPriorityCpuUtilizationPercentB\ - \x03\xe0A\x02\x12C\n\x1bstorage_utilization_percent\x18\x02\x20\x01(\x05\ - R\x19storageUtilizationPercentB\x03\xe0A\x02\"\xce\x06\n\x08Instance\x12\ - \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x02\x12E\n\x06confi\ - g\x18\x02\x20\x01(\tR\x06configB-\xfaA'\n%spanner.googleapis.com/Instanc\ - eConfig\xe0A\x02\x12&\n\x0cdisplay_name\x18\x03\x20\x01(\tR\x0bdisplayNa\ - meB\x03\xe0A\x02\x12\x1d\n\nnode_count\x18\x05\x20\x01(\x05R\tnodeCount\ - \x12)\n\x10processing_units\x18\t\x20\x01(\x05R\x0fprocessingUnits\x12g\ - \n\x12autoscaling_config\x18\x11\x20\x01(\x0b23.google.spanner.admin.ins\ - tance.v1.AutoscalingConfigR\x11autoscalingConfigB\x03\xe0A\x01\x12K\n\ - \x05state\x18\x06\x20\x01(\x0e20.google.spanner.admin.instance.v1.Instan\ - ce.StateR\x05stateB\x03\xe0A\x03\x12N\n\x06labels\x18\x07\x20\x03(\x0b26\ - .google.spanner.admin.instance.v1.Instance.LabelsEntryR\x06labels\x12#\n\ - \rendpoint_uris\x18\x08\x20\x03(\tR\x0cendpointUris\x12@\n\x0bcreate_tim\ - e\x18\x0b\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncreateTimeB\x03\ - \xe0A\x03\x12@\n\x0bupdate_time\x18\x0c\x20\x01(\x0b2\x1a.google.protobu\ - f.TimestampR\nupdateTimeB\x03\xe0A\x03\x1a9\n\x0bLabelsEntry\x12\x10\n\ + oto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\x02\n\x0bReplicaInfo\ + \x12\x1a\n\x08location\x18\x01\x20\x01(\tR\x08location\x12M\n\x04type\ + \x18\x02\x20\x01(\x0e29.google.spanner.admin.instance.v1.ReplicaInfo.Rep\ + licaTypeR\x04type\x126\n\x17default_leader_location\x18\x03\x20\x01(\x08\ + R\x15defaultLeaderLocation\"O\n\x0bReplicaType\x12\x14\n\x10TYPE_UNSPECI\ + FIED\x10\0\x12\x0e\n\nREAD_WRITE\x10\x01\x12\r\n\tREAD_ONLY\x10\x02\x12\ + \x0b\n\x07WITNESS\x10\x03\"\xf4\x01\n\x0eInstanceConfig\x12\x12\n\x04nam\ + e\x18\x01\x20\x01(\tR\x04name\x12!\n\x0cdisplay_name\x18\x02\x20\x01(\tR\ + \x0bdisplayName\x12I\n\x08replicas\x18\x03\x20\x03(\x0b2-.google.spanner\ + .admin.instance.v1.ReplicaInfoR\x08replicas:`\xeaA]\n%spanner.googleapis\ + .com/InstanceConfig\x124projects/{project}/instanceConfigs/{instance_con\ + fig}\"\xa4\x04\n\x08Instance\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04na\ + me\x12B\n\x06config\x18\x02\x20\x01(\tR\x06configB*\xfaA'\n%spanner.goog\ + leapis.com/InstanceConfig\x12!\n\x0cdisplay_name\x18\x03\x20\x01(\tR\x0b\ + displayName\x12\x1d\n\nnode_count\x18\x05\x20\x01(\x05R\tnodeCount\x12F\ + \n\x05state\x18\x06\x20\x01(\x0e20.google.spanner.admin.instance.v1.Inst\ + ance.StateR\x05state\x12N\n\x06labels\x18\x07\x20\x03(\x0b26.google.span\ + ner.admin.instance.v1.Instance.LabelsEntryR\x06labels\x12#\n\rendpoint_u\ + ris\x18\x08\x20\x03(\tR\x0cendpointUris\x1a9\n\x0bLabelsEntry\x12\x10\n\ \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\t\ R\x05value:\x028\x01\"7\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\0\ \x12\x0c\n\x08CREATING\x10\x01\x12\t\n\x05READY\x10\x02:M\xeaAJ\n\x1fspa\ @@ -6925,1336 +2551,752 @@ static file_descriptor_proto_data: &'static [u8] = b"\ e.spanner.admin.instance.v1.InstanceConfigR\x0finstanceConfigs\x12&\n\ \x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"]\n\x18GetInstan\ ceConfigRequest\x12A\n\x04name\x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%spa\ - nner.googleapis.com/InstanceConfig\xe0A\x02\"\xa2\x02\n\x1bCreateInstanc\ - eConfigRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+\ - cloudresourcemanager.googleapis.com/Project\xe0A\x02\x121\n\x12instance_\ - config_id\x18\x02\x20\x01(\tR\x10instanceConfigIdB\x03\xe0A\x02\x12^\n\ - \x0finstance_config\x18\x03\x20\x01(\x0b20.google.spanner.admin.instance\ - .v1.InstanceConfigR\x0einstanceConfigB\x03\xe0A\x02\x12#\n\rvalidate_onl\ - y\x18\x04\x20\x01(\x08R\x0cvalidateOnly\"\xe4\x01\n\x1bUpdateInstanceCon\ - figRequest\x12^\n\x0finstance_config\x18\x01\x20\x01(\x0b20.google.spann\ - er.admin.instance.v1.InstanceConfigR\x0einstanceConfigB\x03\xe0A\x02\x12\ - @\n\x0bupdate_mask\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\ - \nupdateMaskB\x03\xe0A\x02\x12#\n\rvalidate_only\x18\x03\x20\x01(\x08R\ - \x0cvalidateOnly\"\x99\x01\n\x1bDeleteInstanceConfigRequest\x12A\n\x04na\ - me\x18\x01\x20\x01(\tR\x04nameB-\xfaA'\n%spanner.googleapis.com/Instance\ - Config\xe0A\x02\x12\x12\n\x04etag\x18\x02\x20\x01(\tR\x04etag\x12#\n\rva\ - lidate_only\x18\x03\x20\x01(\x08R\x0cvalidateOnly\"\xc6\x01\n#ListInstan\ - ceConfigOperationsRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parent\ - B3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\x02\x12\x16\ - \n\x06filter\x18\x02\x20\x01(\tR\x06filter\x12\x1b\n\tpage_size\x18\x03\ - \x20\x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x04\x20\x01(\tR\tpa\ - geToken\"\x8d\x01\n$ListInstanceConfigOperationsResponse\x12=\n\noperati\ - ons\x18\x01\x20\x03(\x0b2\x1d.google.longrunning.OperationR\noperations\ - \x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"\x8c\x01\ - \n\x12GetInstanceRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\ - \xfaA!\n\x1fspanner.googleapis.com/Instance\xe0A\x02\x129\n\nfield_mask\ - \x18\x02\x20\x01(\x0b2\x1a.google.protobuf.FieldMaskR\tfieldMask\"\xd7\ - \x01\n\x15CreateInstanceRequest\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06\ - parentB3\xfaA-\n+cloudresourcemanager.googleapis.com/Project\xe0A\x02\ - \x12$\n\x0binstance_id\x18\x02\x20\x01(\tR\ninstanceIdB\x03\xe0A\x02\x12\ - K\n\x08instance\x18\x03\x20\x01(\x0b2*.google.spanner.admin.instance.v1.\ - InstanceR\x08instanceB\x03\xe0A\x02\"\xb7\x01\n\x14ListInstancesRequest\ - \x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcem\ - anager.googleapis.com/Project\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\ - \x01(\x05R\x08pageSize\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageTo\ - ken\x12\x16\n\x06filter\x18\x04\x20\x01(\tR\x06filter\"\x89\x01\n\x15Lis\ - tInstancesResponse\x12H\n\tinstances\x18\x01\x20\x03(\x0b2*.google.spann\ - er.admin.instance.v1.InstanceR\tinstances\x12&\n\x0fnext_page_token\x18\ - \x02\x20\x01(\tR\rnextPageToken\"\xa4\x01\n\x15UpdateInstanceRequest\x12\ - K\n\x08instance\x18\x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.\ - InstanceR\x08instanceB\x03\xe0A\x02\x12>\n\nfield_mask\x18\x02\x20\x01(\ - \x0b2\x1a.google.protobuf.FieldMaskR\tfieldMaskB\x03\xe0A\x02\"T\n\x15De\ - leteInstanceRequest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xfaA!\n\ - \x1fspanner.googleapis.com/Instance\xe0A\x02\"\x8f\x02\n\x16CreateInstan\ - ceMetadata\x12F\n\x08instance\x18\x01\x20\x01(\x0b2*.google.spanner.admi\ - n.instance.v1.InstanceR\x08instance\x129\n\nstart_time\x18\x02\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\tstartTime\x12;\n\x0bcancel_time\ - \x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTime\x125\n\ - \x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07end\ - Time\"\x8f\x02\n\x16UpdateInstanceMetadata\x12F\n\x08instance\x18\x01\ - \x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\x08instance\ - \x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ - \tstartTime\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b2\x1a.google.proto\ - buf.TimestampR\ncancelTime\x125\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.\ - google.protobuf.TimestampR\x07endTime\"\x87\x02\n\x1cCreateInstanceConfi\ - gMetadata\x12Y\n\x0finstance_config\x18\x01\x20\x01(\x0b20.google.spanne\ - r.admin.instance.v1.InstanceConfigR\x0einstanceConfig\x12O\n\x08progress\ - \x18\x02\x20\x01(\x0b23.google.spanner.admin.instance.v1.OperationProgre\ - ssR\x08progress\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b2\x1a.google.p\ - rotobuf.TimestampR\ncancelTime\"\x87\x02\n\x1cUpdateInstanceConfigMetada\ - ta\x12Y\n\x0finstance_config\x18\x01\x20\x01(\x0b20.google.spanner.admin\ - .instance.v1.InstanceConfigR\x0einstanceConfig\x12O\n\x08progress\x18\ - \x02\x20\x01(\x0b23.google.spanner.admin.instance.v1.OperationProgressR\ - \x08progress\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b2\x1a.google.prot\ - obuf.TimestampR\ncancelTime2\xf2\x18\n\rInstanceAdmin\x12\xcc\x01\n\x13L\ - istInstanceConfigs\x12<.google.spanner.admin.instance.v1.ListInstanceCon\ - figsRequest\x1a=.google.spanner.admin.instance.v1.ListInstanceConfigsRes\ - ponse\"8\x82\xd3\xe4\x93\x02)\x12'/v1/{parent=projects/*}/instanceConfig\ - s\xdaA\x06parent\x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.\ - admin.instance.v1.GetInstanceConfigRequest\x1a0.google.spanner.admin.ins\ - tance.v1.InstanceConfig\"6\x82\xd3\xe4\x93\x02)\x12'/v1/{name=projects/*\ - /instanceConfigs/*}\xdaA\x04name\x12\xc8\x02\n\x14CreateInstanceConfig\ - \x12=.google.spanner.admin.instance.v1.CreateInstanceConfigRequest\x1a\ - \x1d.google.longrunning.Operation\"\xd1\x01\xcaAp\n/google.spanner.admin\ - .instance.v1.InstanceConfig\x12=google.spanner.admin.instance.v1.CreateI\ - nstanceConfigMetadata\x82\xd3\xe4\x93\x02,\"'/v1/{parent=projects/*}/ins\ - tanceConfigs:\x01*\xdaA)parent,instance_config,instance_config_id\x12\ - \xca\x02\n\x14UpdateInstanceConfig\x12=.google.spanner.admin.instance.v1\ - .UpdateInstanceConfigRequest\x1a\x1d.google.longrunning.Operation\"\xd3\ - \x01\xcaAp\n/google.spanner.admin.instance.v1.InstanceConfig\x12=google.\ - spanner.admin.instance.v1.UpdateInstanceConfigMetadata\x82\xd3\xe4\x93\ - \x02<27/v1/{instance_config.name=projects/*/instanceConfigs/*}:\x01*\xda\ - A\x1binstance_config,update_mask\x12\xa5\x01\n\x14DeleteInstanceConfig\ - \x12=.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest\x1a\ - \x16.google.protobuf.Empty\"6\x82\xd3\xe4\x93\x02)*'/v1/{name=projects/*\ - /instanceConfigs/*}\xdaA\x04name\x12\xf0\x01\n\x1cListInstanceConfigOper\ - ations\x12E.google.spanner.admin.instance.v1.ListInstanceConfigOperation\ - sRequest\x1aF.google.spanner.admin.instance.v1.ListInstanceConfigOperati\ - onsResponse\"A\x82\xd3\xe4\x93\x022\x120/v1/{parent=projects/*}/instance\ - ConfigOperations\xdaA\x06parent\x12\xb4\x01\n\rListInstances\x126.google\ - .spanner.admin.instance.v1.ListInstancesRequest\x1a7.google.spanner.admi\ - n.instance.v1.ListInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{par\ - ent=projects/*}/instances\xdaA\x06parent\x12\xa1\x01\n\x0bGetInstance\ - \x124.google.spanner.admin.instance.v1.GetInstanceRequest\x1a*.google.sp\ - anner.admin.instance.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=p\ - rojects/*/instances/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127\ - .google.spanner.admin.instance.v1.CreateInstanceRequest\x1a\x1d.google.l\ - ongrunning.Operation\"\xb1\x01\xcaAd\n)google.spanner.admin.instance.v1.\ - Instance\x127google.spanner.admin.instance.v1.CreateInstanceMetadata\x82\ - \xd3\xe4\x93\x02&\"!/v1/{parent=projects/*}/instances:\x01*\xdaA\x1bpare\ - nt,instance_id,instance\x12\x9d\x02\n\x0eUpdateInstance\x127.google.span\ - ner.admin.instance.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.O\ - peration\"\xb2\x01\xcaAd\n)google.spanner.admin.instance.v1.Instance\x12\ - 7google.spanner.admin.instance.v1.UpdateInstanceMetadata\x82\xd3\xe4\x93\ - \x02/2*/v1/{instance.name=projects/*/instances/*}:\x01*\xdaA\x13instance\ - ,field_mask\x12\x93\x01\n\x0eDeleteInstance\x127.google.spanner.admin.in\ - stance.v1.DeleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\ - \xe4\x93\x02#*!/v1/{name=projects/*/instances/*}\xdaA\x04name\x12\x9a\ - \x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.g\ - oogle.iam.v1.Policy\"O\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/i\ - nstances/*}:setIamPolicy:\x01*\xdaA\x0fresource,policy\x12\x93\x01\n\x0c\ - GetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.\ - v1.Policy\"H\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instances/*\ - }:getIamPolicy:\x01*\xdaA\x08resource\x12\xc5\x01\n\x12TestIamPermission\ - s\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIa\ - mPermissionsResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/\ - instances/*}:testIamPermissions:\x01*\xdaA\x14resource,permissions\x1ax\ - \xd2A\\https://www.googleapis.com/auth/cloud-platform,https://www.google\ - apis.com/auth/spanner.admin\xcaA\x16spanner.googleapis.comB\x8b\x02\n$co\ - m.google.spanner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZFc\ - loud.google.com/go/spanner/admin/instance/apiv1/instancepb;instancepb\ - \xaa\x02&Google.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\S\ - panner\\Admin\\Instance\\V1\xea\x02+Google::Cloud::Spanner::Admin::Insta\ - nce::V1J\x9c\xde\x02\n\x07\x12\x05\x0e\0\x84\t\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0)\n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\ - \n\x02\x03\x01\x12\x03\x13\0!\n\t\n\x02\x03\x02\x12\x03\x14\0)\n\t\n\x02\ - \x03\x03\x12\x03\x15\0#\n\t\n\x02\x03\x04\x12\x03\x16\0(\n\t\n\x02\x03\ - \x05\x12\x03\x17\0$\n\t\n\x02\x03\x06\x12\x03\x18\0-\n\t\n\x02\x03\x07\ - \x12\x03\x19\0%\n\t\n\x02\x03\x08\x12\x03\x1a\0*\n\t\n\x02\x03\t\x12\x03\ - \x1b\0)\n\t\n\x02\x03\n\x12\x03\x1c\07\n\x08\n\x01\x08\x12\x03\x1e\0C\n\ - \t\n\x02\x08%\x12\x03\x1e\0C\n\x08\n\x01\x08\x12\x03\x1f\0]\n\t\n\x02\ - \x08\x0b\x12\x03\x1f\0]\n\x08\n\x01\x08\x12\x03\x20\0\"\n\t\n\x02\x08\n\ - \x12\x03\x20\0\"\n\x08\n\x01\x08\x12\x03!\0:\n\t\n\x02\x08\x08\x12\x03!\ - \0:\n\x08\n\x01\x08\x12\x03\"\0=\n\t\n\x02\x08\x01\x12\x03\"\0=\n\x08\n\ - \x01\x08\x12\x03#\0E\n\t\n\x02\x08)\x12\x03#\0E\n\x08\n\x01\x08\x12\x03$\ - \0D\n\t\n\x02\x08-\x12\x03$\0D\n\xdd\x08\n\x02\x06\0\x12\x05;\0\x95\x03\ - \x01\x1a\xcf\x08\x20Cloud\x20Spanner\x20Instance\x20Admin\x20API\n\n\x20\ - The\x20Cloud\x20Spanner\x20Instance\x20Admin\x20API\x20can\x20be\x20used\ - \x20to\x20create,\x20delete,\n\x20modify\x20and\x20list\x20instances.\ - \x20Instances\x20are\x20dedicated\x20Cloud\x20Spanner\x20serving\n\x20an\ - d\x20storage\x20resources\x20to\x20be\x20used\x20by\x20Cloud\x20Spanner\ - \x20databases.\n\n\x20Each\x20instance\x20has\x20a\x20\"configuration\",\ - \x20which\x20dictates\x20where\x20the\n\x20serving\x20resources\x20for\ - \x20the\x20Cloud\x20Spanner\x20instance\x20are\x20located\x20(e.g.,\n\ - \x20US-central,\x20Europe).\x20Configurations\x20are\x20created\x20by\ - \x20Google\x20based\x20on\n\x20resource\x20availability.\n\n\x20Cloud\ - \x20Spanner\x20billing\x20is\x20based\x20on\x20the\x20instances\x20that\ - \x20exist\x20and\x20their\n\x20sizes.\x20After\x20an\x20instance\x20exis\ - ts,\x20there\x20are\x20no\x20additional\n\x20per-database\x20or\x20per-o\ - peration\x20charges\x20for\x20use\x20of\x20the\x20instance\n\x20(though\ - \x20there\x20may\x20be\x20additional\x20network\x20bandwidth\x20charges)\ - .\n\x20Instances\x20offer\x20isolation:\x20problems\x20with\x20databases\ - \x20in\x20one\x20instance\n\x20will\x20not\x20affect\x20other\x20instanc\ - es.\x20However,\x20within\x20an\x20instance\n\x20databases\x20can\x20aff\ - ect\x20each\x20other.\x20For\x20example,\x20if\x20one\x20database\x20in\ - \x20an\n\x20instance\x20receives\x20a\x20lot\x20of\x20requests\x20and\ - \x20consumes\x20most\x20of\x20the\n\x20instance\x20resources,\x20fewer\ - \x20resources\x20are\x20available\x20for\x20other\n\x20databases\x20in\ - \x20that\x20instance,\x20and\x20their\x20performance\x20may\x20suffer.\n\ - \n\n\n\x03\x06\0\x01\x12\x03;\x08\x15\n\n\n\x03\x06\0\x03\x12\x03<\x02>\ - \n\x0c\n\x05\x06\0\x03\x99\x08\x12\x03<\x02>\n\x0b\n\x03\x06\0\x03\x12\ - \x04=\x02?6\n\r\n\x05\x06\0\x03\x9a\x08\x12\x04=\x02?6\nP\n\x04\x06\0\ - \x02\0\x12\x04B\x02H\x03\x1aB\x20Lists\x20the\x20supported\x20instance\ - \x20configurations\x20for\x20a\x20given\x20project.\n\n\x0c\n\x05\x06\0\ - \x02\0\x01\x12\x03B\x06\x19\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03B\x1a4\n\ - \x0c\n\x05\x06\0\x02\0\x03\x12\x03C\x0f*\n\r\n\x05\x06\0\x02\0\x04\x12\ - \x04D\x04F\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04D\x04F\x06\ - \n\x0c\n\x05\x06\0\x02\0\x04\x12\x03G\x044\n\x0f\n\x08\x06\0\x02\0\x04\ - \x9b\x08\0\x12\x03G\x044\nK\n\x04\x06\0\x02\x01\x12\x04K\x02P\x03\x1a=\ - \x20Gets\x20information\x20about\x20a\x20particular\x20instance\x20confi\ - guration.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03K\x06\x17\n\x0c\n\x05\ - \x06\0\x02\x01\x02\x12\x03K\x180\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03K;\ - I\n\r\n\x05\x06\0\x02\x01\x04\x12\x04L\x04N\x06\n\x11\n\t\x06\0\x02\x01\ - \x04\xb0\xca\xbc\"\x12\x04L\x04N\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\ - \x03O\x042\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\x12\x03O\x042\n\xca\ - \x0e\n\x04\x06\0\x02\x02\x12\x05{\x02\x87\x01\x03\x1a\xba\x0e\x20Creates\ - \x20an\x20instance\x20config\x20and\x20begins\x20preparing\x20it\x20to\ - \x20be\x20used.\x20The\n\x20returned\x20[long-running\x20operation][goog\ - le.longrunning.Operation]\n\x20can\x20be\x20used\x20to\x20track\x20the\ - \x20progress\x20of\x20preparing\x20the\x20new\n\x20instance\x20config.\ - \x20The\x20instance\x20config\x20name\x20is\x20assigned\x20by\x20the\x20\ - caller.\x20If\x20the\n\x20named\x20instance\x20config\x20already\x20exis\ - ts,\x20`CreateInstanceConfig`\x20returns\n\x20`ALREADY_EXISTS`.\n\n\x20I\ - mmediately\x20after\x20the\x20request\x20returns:\n\n\x20\x20\x20*\x20Th\ - e\x20instance\x20config\x20is\x20readable\x20via\x20the\x20API,\x20with\ - \x20all\x20requested\n\x20\x20\x20\x20\x20attributes.\x20The\x20instance\ - \x20config's\n\x20\x20\x20\x20\x20[reconciling][google.spanner.admin.ins\ - tance.v1.InstanceConfig.reconciling]\n\x20\x20\x20\x20\x20field\x20is\ - \x20set\x20to\x20true.\x20Its\x20state\x20is\x20`CREATING`.\n\n\x20While\ - \x20the\x20operation\x20is\x20pending:\n\n\x20\x20\x20*\x20Cancelling\ - \x20the\x20operation\x20renders\x20the\x20instance\x20config\x20immediat\ - ely\n\x20\x20\x20\x20\x20unreadable\x20via\x20the\x20API.\n\x20\x20\x20*\ - \x20Except\x20for\x20deleting\x20the\x20creating\x20resource,\x20all\x20\ - other\x20attempts\x20to\x20modify\n\x20\x20\x20\x20\x20the\x20instance\ - \x20config\x20are\x20rejected.\n\n\x20Upon\x20completion\x20of\x20the\ - \x20returned\x20operation:\n\n\x20\x20\x20*\x20Instances\x20can\x20be\ - \x20created\x20using\x20the\x20instance\x20configuration.\n\x20\x20\x20*\ - \x20The\x20instance\x20config's\n\x20\x20\x20[reconciling][google.spanne\ - r.admin.instance.v1.InstanceConfig.reconciling]\n\x20\x20\x20field\x20be\ - comes\x20false.\x20Its\x20state\x20becomes\x20`READY`.\n\n\x20The\x20ret\ - urned\x20[long-running\x20operation][google.longrunning.Operation]\x20wi\ - ll\n\x20have\x20a\x20name\x20of\x20the\x20format\n\x20`/operations/`\x20and\x20can\x20be\x20used\x20to\x20tr\ - ack\n\x20creation\x20of\x20the\x20instance\x20config.\x20The\n\x20[metad\ - ata][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20\ - [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateIn\ - stanceConfigMetadata].\n\x20The\x20[response][google.longrunning.Operati\ - on.response]\x20field\x20type\x20is\n\x20[InstanceConfig][google.spanner\ - .admin.instance.v1.InstanceConfig],\x20if\n\x20successful.\n\n\x20Author\ - ization\x20requires\x20`spanner.instanceConfigs.create`\x20permission\ - \x20on\n\x20the\x20resource\n\x20[parent][google.spanner.admin.instance.\ - v1.CreateInstanceConfigRequest.parent].\n\n\x0c\n\x05\x06\0\x02\x02\x01\ - \x12\x03{\x06\x1a\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03{\x1b6\n\x0c\n\ - \x05\x06\0\x02\x02\x03\x12\x03|\x0f+\n\x0e\n\x05\x06\0\x02\x02\x04\x12\ - \x05}\x04\x80\x01\x06\n\x12\n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x05}\ - \x04\x80\x01\x06\n\x0f\n\x05\x06\0\x02\x02\x04\x12\x06\x81\x01\x04\x82\ - \x014\n\x12\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x06\x81\x01\x04\x82\ - \x014\n\x0f\n\x05\x06\0\x02\x02\x04\x12\x06\x83\x01\x04\x86\x01\x06\n\ - \x11\n\x07\x06\0\x02\x02\x04\x99\x08\x12\x06\x83\x01\x04\x86\x01\x06\n\ - \x99\x0f\n\x04\x06\0\x02\x03\x12\x06\xb5\x01\x02\xc0\x01\x03\x1a\x88\x0f\ - \x20Updates\x20an\x20instance\x20config.\x20The\x20returned\n\x20[long-r\ - unning\x20operation][google.longrunning.Operation]\x20can\x20be\x20used\ - \x20to\x20track\n\x20the\x20progress\x20of\x20updating\x20the\x20instanc\ - e.\x20If\x20the\x20named\x20instance\x20config\x20does\n\x20not\x20exist\ - ,\x20returns\x20`NOT_FOUND`.\n\n\x20Only\x20user\x20managed\x20configura\ - tions\x20can\x20be\x20updated.\n\n\x20Immediately\x20after\x20the\x20req\ - uest\x20returns:\n\n\x20\x20\x20*\x20The\x20instance\x20config's\n\x20\ - \x20\x20\x20\x20[reconciling][google.spanner.admin.instance.v1.InstanceC\ - onfig.reconciling]\n\x20\x20\x20\x20\x20field\x20is\x20set\x20to\x20true\ - .\n\n\x20While\x20the\x20operation\x20is\x20pending:\n\n\x20\x20\x20*\ - \x20Cancelling\x20the\x20operation\x20sets\x20its\x20metadata's\n\x20\ - \x20\x20\x20\x20[cancel_time][google.spanner.admin.instance.v1.UpdateIns\ - tanceConfigMetadata.cancel_time].\n\x20\x20\x20\x20\x20The\x20operation\ - \x20is\x20guaranteed\x20to\x20succeed\x20at\x20undoing\x20all\x20changes\ - ,\x20after\n\x20\x20\x20\x20\x20which\x20point\x20it\x20terminates\x20wi\ - th\x20a\x20`CANCELLED`\x20status.\n\x20\x20\x20*\x20All\x20other\x20atte\ - mpts\x20to\x20modify\x20the\x20instance\x20config\x20are\x20rejected.\n\ - \x20\x20\x20*\x20Reading\x20the\x20instance\x20config\x20via\x20the\x20A\ - PI\x20continues\x20to\x20give\x20the\n\x20\x20\x20\x20\x20pre-request\ - \x20values.\n\n\x20Upon\x20completion\x20of\x20the\x20returned\x20operat\ - ion:\n\n\x20\x20\x20*\x20Creating\x20instances\x20using\x20the\x20instan\ - ce\x20configuration\x20uses\x20the\x20new\n\x20\x20\x20\x20\x20values.\n\ - \x20\x20\x20*\x20The\x20instance\x20config's\x20new\x20values\x20are\x20\ - readable\x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance\x20conf\ - ig's\n\x20\x20\x20[reconciling][google.spanner.admin.instance.v1.Instanc\ - eConfig.reconciling]\n\x20\x20\x20field\x20becomes\x20false.\n\n\x20The\ - \x20returned\x20[long-running\x20operation][google.longrunning.Operation\ - ]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\n\x20`/operations/`\x20and\x20can\x20be\x20used\x20t\ - o\x20track\n\x20the\x20instance\x20config\x20modification.\x20\x20The\n\ - \x20[metadata][google.longrunning.Operation.metadata]\x20field\x20type\ - \x20is\n\x20[UpdateInstanceConfigMetadata][google.spanner.admin.instance\ - .v1.UpdateInstanceConfigMetadata].\n\x20The\x20[response][google.longrun\ - ning.Operation.response]\x20field\x20type\x20is\n\x20[InstanceConfig][go\ - ogle.spanner.admin.instance.v1.InstanceConfig],\x20if\n\x20successful.\n\ - \n\x20Authorization\x20requires\x20`spanner.instanceConfigs.update`\x20p\ - ermission\x20on\n\x20the\x20resource\x20[name][google.spanner.admin.inst\ - ance.v1.InstanceConfig.name].\n\n\r\n\x05\x06\0\x02\x03\x01\x12\x04\xb5\ - \x01\x06\x1a\n\r\n\x05\x06\0\x02\x03\x02\x12\x04\xb5\x01\x1b6\n\r\n\x05\ - \x06\0\x02\x03\x03\x12\x04\xb6\x01\x0f+\n\x0f\n\x05\x06\0\x02\x03\x04\ - \x12\x06\xb7\x01\x04\xba\x01\x06\n\x13\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\ - \"\x12\x06\xb7\x01\x04\xba\x01\x06\n\r\n\x05\x06\0\x02\x03\x04\x12\x04\ - \xbb\x01\x04I\n\x10\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x04\xbb\x01\ - \x04I\n\x0f\n\x05\x06\0\x02\x03\x04\x12\x06\xbc\x01\x04\xbf\x01\x06\n\ - \x11\n\x07\x06\0\x02\x03\x04\x99\x08\x12\x06\xbc\x01\x04\xbf\x01\x06\n\ - \x86\x03\n\x04\x06\0\x02\x04\x12\x06\xca\x01\x02\xd0\x01\x03\x1a\xf5\x02\ - \x20Deletes\x20the\x20instance\x20config.\x20Deletion\x20is\x20only\x20a\ - llowed\x20when\x20no\n\x20instances\x20are\x20using\x20the\x20configurat\ - ion.\x20If\x20any\x20instances\x20are\x20using\n\x20the\x20config,\x20re\ - turns\x20`FAILED_PRECONDITION`.\n\n\x20Only\x20user\x20managed\x20config\ - urations\x20can\x20be\x20deleted.\n\n\x20Authorization\x20requires\x20`s\ - panner.instanceConfigs.delete`\x20permission\x20on\n\x20the\x20resource\ - \x20[name][google.spanner.admin.instance.v1.InstanceConfig.name].\n\n\r\ - \n\x05\x06\0\x02\x04\x01\x12\x04\xca\x01\x06\x1a\n\r\n\x05\x06\0\x02\x04\ - \x02\x12\x04\xca\x01\x1b6\n\r\n\x05\x06\0\x02\x04\x03\x12\x04\xcb\x01\ - \x0f$\n\x0f\n\x05\x06\0\x02\x04\x04\x12\x06\xcc\x01\x04\xce\x01\x06\n\ - \x13\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x06\xcc\x01\x04\xce\x01\x06\ - \n\r\n\x05\x06\0\x02\x04\x04\x12\x04\xcf\x01\x042\n\x10\n\x08\x06\0\x02\ - \x04\x04\x9b\x08\0\x12\x04\xcf\x01\x042\n\xaa\x05\n\x04\x06\0\x02\x05\ - \x12\x06\xdd\x01\x02\xe3\x01\x03\x1a\x99\x05\x20Lists\x20the\x20user-man\ - aged\x20instance\x20config\x20[long-running\n\x20operations][google.long\ - running.Operation]\x20in\x20the\x20given\x20project.\x20An\x20instance\n\ - \x20config\x20operation\x20has\x20a\x20name\x20of\x20the\x20form\n\x20`p\ - rojects//instanceConfigs//operations/`.\n\x20The\x20long-running\x20operation\n\x20[metadata][google.longru\ - nning.Operation.metadata]\x20field\x20type\n\x20`metadata.type_url`\x20d\ - escribes\x20the\x20type\x20of\x20the\x20metadata.\x20Operations\x20retur\ - ned\n\x20include\x20those\x20that\x20have\x20completed/failed/canceled\ - \x20within\x20the\x20last\x207\x20days,\n\x20and\x20pending\x20operation\ - s.\x20Operations\x20returned\x20are\x20ordered\x20by\n\x20`operation.met\ - adata.value.start_time`\x20in\x20descending\x20order\x20starting\n\x20fr\ - om\x20the\x20most\x20recently\x20started\x20operation.\n\n\r\n\x05\x06\0\ - \x02\x05\x01\x12\x04\xdd\x01\x06\"\n\r\n\x05\x06\0\x02\x05\x02\x12\x04\ - \xdd\x01#F\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\xde\x01\x0f3\n\x0f\n\x05\ - \x06\0\x02\x05\x04\x12\x06\xdf\x01\x04\xe1\x01\x06\n\x13\n\t\x06\0\x02\ - \x05\x04\xb0\xca\xbc\"\x12\x06\xdf\x01\x04\xe1\x01\x06\n\r\n\x05\x06\0\ - \x02\x05\x04\x12\x04\xe2\x01\x044\n\x10\n\x08\x06\0\x02\x05\x04\x9b\x08\ - \0\x12\x04\xe2\x01\x044\n;\n\x04\x06\0\x02\x06\x12\x06\xe6\x01\x02\xeb\ - \x01\x03\x1a+\x20Lists\x20all\x20instances\x20in\x20the\x20given\x20proj\ - ect.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\xe6\x01\x06\x13\n\r\n\x05\x06\ - \0\x02\x06\x02\x12\x04\xe6\x01\x14(\n\r\n\x05\x06\0\x02\x06\x03\x12\x04\ - \xe6\x013H\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\xe7\x01\x04\xe9\x01\x06\ - \n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\xe7\x01\x04\xe9\x01\ - \x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\xea\x01\x044\n\x10\n\x08\x06\0\ - \x02\x06\x04\x9b\x08\0\x12\x04\xea\x01\x044\n?\n\x04\x06\0\x02\x07\x12\ - \x06\xee\x01\x02\xf3\x01\x03\x1a/\x20Gets\x20information\x20about\x20a\ - \x20particular\x20instance.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\xee\ - \x01\x06\x11\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xee\x01\x12$\n\r\n\x05\ - \x06\0\x02\x07\x03\x12\x04\xee\x01/7\n\x0f\n\x05\x06\0\x02\x07\x04\x12\ - \x06\xef\x01\x04\xf1\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\"\ - \x12\x06\xef\x01\x04\xf1\x01\x06\n\r\n\x05\x06\0\x02\x07\x04\x12\x04\xf2\ - \x01\x042\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\x12\x04\xf2\x01\x042\n\ - \xaa\x0c\n\x04\x06\0\x02\x08\x12\x06\x97\x02\x02\xa2\x02\x03\x1a\x99\x0c\ - \x20Creates\x20an\x20instance\x20and\x20begins\x20preparing\x20it\x20to\ - \x20begin\x20serving.\x20The\n\x20returned\x20[long-running\x20operation\ - ][google.longrunning.Operation]\n\x20can\x20be\x20used\x20to\x20track\ - \x20the\x20progress\x20of\x20preparing\x20the\x20new\n\x20instance.\x20T\ - he\x20instance\x20name\x20is\x20assigned\x20by\x20the\x20caller.\x20If\ - \x20the\n\x20named\x20instance\x20already\x20exists,\x20`CreateInstance`\ - \x20returns\n\x20`ALREADY_EXISTS`.\n\n\x20Immediately\x20upon\x20complet\ - ion\x20of\x20this\x20request:\n\n\x20\x20\x20*\x20The\x20instance\x20is\ - \x20readable\x20via\x20the\x20API,\x20with\x20all\x20requested\x20attrib\ - utes\n\x20\x20\x20\x20\x20but\x20no\x20allocated\x20resources.\x20Its\ - \x20state\x20is\x20`CREATING`.\n\n\x20Until\x20completion\x20of\x20the\ - \x20returned\x20operation:\n\n\x20\x20\x20*\x20Cancelling\x20the\x20oper\ - ation\x20renders\x20the\x20instance\x20immediately\x20unreadable\n\x20\ - \x20\x20\x20\x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instance\x20\ - can\x20be\x20deleted.\n\x20\x20\x20*\x20All\x20other\x20attempts\x20to\ - \x20modify\x20the\x20instance\x20are\x20rejected.\n\n\x20Upon\x20complet\ - ion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Billing\ - \x20for\x20all\x20successfully-allocated\x20resources\x20begins\x20(some\ - \x20types\n\x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\x20re\ - quested\x20levels).\n\x20\x20\x20*\x20Databases\x20can\x20be\x20created\ - \x20in\x20the\x20instance.\n\x20\x20\x20*\x20The\x20instance's\x20alloca\ - ted\x20resource\x20levels\x20are\x20readable\x20via\x20the\x20API.\n\x20\ - \x20\x20*\x20The\x20instance's\x20state\x20becomes\x20`READY`.\n\n\x20Th\ - e\x20returned\x20[long-running\x20operation][google.longrunning.Operatio\ - n]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/operations/`\x20and\n\x20can\x20be\x20used\x20to\x20t\ - rack\x20creation\x20of\x20the\x20instance.\x20\x20The\n\x20[metadata][go\ - ogle.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[Create\ - InstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadat\ - a].\n\x20The\x20[response][google.longrunning.Operation.response]\x20fie\ - ld\x20type\x20is\n\x20[Instance][google.spanner.admin.instance.v1.Instan\ - ce],\x20if\x20successful.\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\x97\x02\ - \x06\x14\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\x97\x02\x15*\n\r\n\x05\x06\ - \0\x02\x08\x03\x12\x04\x98\x02\x0f+\n\x0f\n\x05\x06\0\x02\x08\x04\x12\ - \x06\x99\x02\x04\x9c\x02\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\ - \x12\x06\x99\x02\x04\x9c\x02\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\x9d\ - \x02\x04I\n\x10\n\x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\x9d\x02\x04I\n\ - \x0f\n\x05\x06\0\x02\x08\x04\x12\x06\x9e\x02\x04\xa1\x02\x06\n\x11\n\x07\ - \x06\0\x02\x08\x04\x99\x08\x12\x06\x9e\x02\x04\xa1\x02\x06\n\xbc\x0f\n\ - \x04\x06\0\x02\t\x12\x06\xcc\x02\x02\xd7\x02\x03\x1a\xab\x0f\x20Updates\ - \x20an\x20instance,\x20and\x20begins\x20allocating\x20or\x20releasing\ - \x20resources\n\x20as\x20requested.\x20The\x20returned\x20[long-running\ - \n\x20operation][google.longrunning.Operation]\x20can\x20be\x20used\x20t\ - o\x20track\x20the\n\x20progress\x20of\x20updating\x20the\x20instance.\ - \x20If\x20the\x20named\x20instance\x20does\x20not\n\x20exist,\x20returns\ - \x20`NOT_FOUND`.\n\n\x20Immediately\x20upon\x20completion\x20of\x20this\ - \x20request:\n\n\x20\x20\x20*\x20For\x20resource\x20types\x20for\x20whic\ - h\x20a\x20decrease\x20in\x20the\x20instance's\x20allocation\n\x20\x20\ + nner.googleapis.com/InstanceConfig\xe0A\x02\"\x8c\x01\n\x12GetInstanceRe\ + quest\x12;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xfaA!\n\x1fspanner.go\ + ogleapis.com/Instance\xe0A\x02\x129\n\nfield_mask\x18\x02\x20\x01(\x0b2\ + \x1a.google.protobuf.FieldMaskR\tfieldMask\"\xd7\x01\n\x15CreateInstance\ + Request\x12K\n\x06parent\x18\x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudre\ + sourcemanager.googleapis.com/Project\xe0A\x02\x12$\n\x0binstance_id\x18\ + \x02\x20\x01(\tR\ninstanceIdB\x03\xe0A\x02\x12K\n\x08instance\x18\x03\ + \x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\x08instanceB\ + \x03\xe0A\x02\"\xb7\x01\n\x14ListInstancesRequest\x12K\n\x06parent\x18\ + \x01\x20\x01(\tR\x06parentB3\xfaA-\n+cloudresourcemanager.googleapis.com\ + /Project\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\ + \x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filte\ + r\x18\x04\x20\x01(\tR\x06filter\"\x89\x01\n\x15ListInstancesResponse\x12\ + H\n\tinstances\x18\x01\x20\x03(\x0b2*.google.spanner.admin.instance.v1.I\ + nstanceR\tinstances\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextP\ + ageToken\"\xa4\x01\n\x15UpdateInstanceRequest\x12K\n\x08instance\x18\x01\ + \x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\x08instanceB\ + \x03\xe0A\x02\x12>\n\nfield_mask\x18\x02\x20\x01(\x0b2\x1a.google.protob\ + uf.FieldMaskR\tfieldMaskB\x03\xe0A\x02\"T\n\x15DeleteInstanceRequest\x12\ + ;\n\x04name\x18\x01\x20\x01(\tR\x04nameB'\xfaA!\n\x1fspanner.googleapis.\ + com/Instance\xe0A\x02\"\x8f\x02\n\x16CreateInstanceMetadata\x12F\n\x08in\ + stance\x18\x01\x20\x01(\x0b2*.google.spanner.admin.instance.v1.InstanceR\ + \x08instance\x129\n\nstart_time\x18\x02\x20\x01(\x0b2\x1a.google.protobu\ + f.TimestampR\tstartTime\x12;\n\x0bcancel_time\x18\x03\x20\x01(\x0b2\x1a.\ + google.protobuf.TimestampR\ncancelTime\x125\n\x08end_time\x18\x04\x20\ + \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTime\"\x8f\x02\n\x16Upda\ + teInstanceMetadata\x12F\n\x08instance\x18\x01\x20\x01(\x0b2*.google.span\ + ner.admin.instance.v1.InstanceR\x08instance\x129\n\nstart_time\x18\x02\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\tstartTime\x12;\n\x0bcance\ + l_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ncancelTime\ + \x125\n\x08end_time\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ + \x07endTime2\xbf\x10\n\rInstanceAdmin\x12\xcc\x01\n\x13ListInstanceConfi\ + gs\x12<.google.spanner.admin.instance.v1.ListInstanceConfigsRequest\x1a=\ + .google.spanner.admin.instance.v1.ListInstanceConfigsResponse\"8\x82\xd3\ + \xe4\x93\x02)\x12'/v1/{parent=projects/*}/instanceConfigs\xdaA\x06parent\ + \x12\xb9\x01\n\x11GetInstanceConfig\x12:.google.spanner.admin.instance.v\ + 1.GetInstanceConfigRequest\x1a0.google.spanner.admin.instance.v1.Instanc\ + eConfig\"6\x82\xd3\xe4\x93\x02)\x12'/v1/{name=projects/*/instanceConfigs\ + /*}\xdaA\x04name\x12\xb4\x01\n\rListInstances\x126.google.spanner.admin.\ + instance.v1.ListInstancesRequest\x1a7.google.spanner.admin.instance.v1.L\ + istInstancesResponse\"2\x82\xd3\xe4\x93\x02#\x12!/v1/{parent=projects/*}\ + /instances\xdaA\x06parent\x12\xa1\x01\n\x0bGetInstance\x124.google.spann\ + er.admin.instance.v1.GetInstanceRequest\x1a*.google.spanner.admin.instan\ + ce.v1.Instance\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*/instance\ + s/*}\xdaA\x04name\x12\x9c\x02\n\x0eCreateInstance\x127.google.spanner.ad\ + min.instance.v1.CreateInstanceRequest\x1a\x1d.google.longrunning.Operati\ + on\"\xb1\x01\xcaAd\n)google.spanner.admin.instance.v1.Instance\x127googl\ + e.spanner.admin.instance.v1.CreateInstanceMetadata\x82\xd3\xe4\x93\x02&\ + \"!/v1/{parent=projects/*}/instances:\x01*\xdaA\x1bparent,instance_id,in\ + stance\x12\x9d\x02\n\x0eUpdateInstance\x127.google.spanner.admin.instanc\ + e.v1.UpdateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xb2\ + \x01\xcaAd\n)google.spanner.admin.instance.v1.Instance\x127google.spanne\ + r.admin.instance.v1.UpdateInstanceMetadata\x82\xd3\xe4\x93\x02/2*/v1/{in\ + stance.name=projects/*/instances/*}:\x01*\xdaA\x13instance,field_mask\ + \x12\x93\x01\n\x0eDeleteInstance\x127.google.spanner.admin.instance.v1.D\ + eleteInstanceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\ + \x02#*!/v1/{name=projects/*/instances/*}\xdaA\x04name\x12\x9a\x01\n\x0cS\ + etIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v\ + 1.Policy\"O\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instances/*}\ + :setIamPolicy:\x01*\xdaA\x0fresource,policy\x12\x93\x01\n\x0cGetIamPolic\ + y\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\ + H\x82\xd3\xe4\x93\x027\"2/v1/{resource=projects/*/instances/*}:getIamPol\ + icy:\x01*\xdaA\x08resource\x12\xc5\x01\n\x12TestIamPermissions\x12(.goog\ + le.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermission\ + sResponse\"Z\x82\xd3\xe4\x93\x02=\"8/v1/{resource=projects/*/instances/*\ + }:testIamPermissions:\x01*\xdaA\x14resource,permissions\x1ax\xd2A\\https\ + ://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/aut\ + h/spanner.admin\xcaA\x16spanner.googleapis.comB\xdf\x01\n$com.google.spa\ + nner.admin.instance.v1B\x19SpannerInstanceAdminProtoP\x01ZHgoogle.golang\ + .org/genproto/googleapis/spanner/admin/instance/v1;instance\xaa\x02&Goog\ + le.Cloud.Spanner.Admin.Instance.V1\xca\x02&Google\\Cloud\\Spanner\\Admin\ + \\Instance\\V1J\xdf\xb3\x01\n\x07\x12\x05\x0f\0\xe2\x04\x01\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ + ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ + \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ + buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ + \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ + \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ + guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0)\n\t\n\x02\x03\0\x12\x03\ + \x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0!\n\t\n\x02\x03\x02\x12\x03\x15\0\ + )\n\t\n\x02\x03\x03\x12\x03\x16\0#\n\t\n\x02\x03\x04\x12\x03\x17\0(\n\t\ + \n\x02\x03\x05\x12\x03\x18\0$\n\t\n\x02\x03\x06\x12\x03\x19\0-\n\t\n\x02\ + \x03\x07\x12\x03\x1a\0%\n\t\n\x02\x03\x08\x12\x03\x1b\0*\n\t\n\x02\x03\t\ + \x12\x03\x1c\0)\n\x08\n\x01\x08\x12\x03\x1e\0C\n\t\n\x02\x08%\x12\x03\ + \x1e\0C\n\x08\n\x01\x08\x12\x03\x1f\0_\n\t\n\x02\x08\x0b\x12\x03\x1f\0_\ + \n\x08\n\x01\x08\x12\x03\x20\0\"\n\t\n\x02\x08\n\x12\x03\x20\0\"\n\x08\n\ + \x01\x08\x12\x03!\0:\n\t\n\x02\x08\x08\x12\x03!\0:\n\x08\n\x01\x08\x12\ + \x03\"\0=\n\t\n\x02\x08\x01\x12\x03\"\0=\n\x08\n\x01\x08\x12\x03#\0E\n\t\ + \n\x02\x08)\x12\x03#\0E\n\xdd\x08\n\x02\x06\0\x12\x05:\0\xfb\x01\x01\x1a\ + \xcf\x08\x20Cloud\x20Spanner\x20Instance\x20Admin\x20API\n\n\x20The\x20C\ + loud\x20Spanner\x20Instance\x20Admin\x20API\x20can\x20be\x20used\x20to\ + \x20create,\x20delete,\n\x20modify\x20and\x20list\x20instances.\x20Insta\ + nces\x20are\x20dedicated\x20Cloud\x20Spanner\x20serving\n\x20and\x20stor\ + age\x20resources\x20to\x20be\x20used\x20by\x20Cloud\x20Spanner\x20databa\ + ses.\n\n\x20Each\x20instance\x20has\x20a\x20\"configuration\",\x20which\ + \x20dictates\x20where\x20the\n\x20serving\x20resources\x20for\x20the\x20\ + Cloud\x20Spanner\x20instance\x20are\x20located\x20(e.g.,\n\x20US-central\ + ,\x20Europe).\x20Configurations\x20are\x20created\x20by\x20Google\x20bas\ + ed\x20on\n\x20resource\x20availability.\n\n\x20Cloud\x20Spanner\x20billi\ + ng\x20is\x20based\x20on\x20the\x20instances\x20that\x20exist\x20and\x20t\ + heir\n\x20sizes.\x20After\x20an\x20instance\x20exists,\x20there\x20are\ + \x20no\x20additional\n\x20per-database\x20or\x20per-operation\x20charges\ + \x20for\x20use\x20of\x20the\x20instance\n\x20(though\x20there\x20may\x20\ + be\x20additional\x20network\x20bandwidth\x20charges).\n\x20Instances\x20\ + offer\x20isolation:\x20problems\x20with\x20databases\x20in\x20one\x20ins\ + tance\n\x20will\x20not\x20affect\x20other\x20instances.\x20However,\x20w\ + ithin\x20an\x20instance\n\x20databases\x20can\x20affect\x20each\x20other\ + .\x20For\x20example,\x20if\x20one\x20database\x20in\x20an\n\x20instance\ + \x20receives\x20a\x20lot\x20of\x20requests\x20and\x20consumes\x20most\ + \x20of\x20the\n\x20instance\x20resources,\x20fewer\x20resources\x20are\ + \x20available\x20for\x20other\n\x20databases\x20in\x20that\x20instance,\ + \x20and\x20their\x20performance\x20may\x20suffer.\n\n\n\n\x03\x06\0\x01\ + \x12\x03:\x08\x15\n\n\n\x03\x06\0\x03\x12\x03;\x02>\n\x0c\n\x05\x06\0\ + \x03\x99\x08\x12\x03;\x02>\n\x0b\n\x03\x06\0\x03\x12\x04<\x02>6\n\r\n\ + \x05\x06\0\x03\x9a\x08\x12\x04<\x02>6\nP\n\x04\x06\0\x02\0\x12\x04A\x02F\ + \x03\x1aB\x20Lists\x20the\x20supported\x20instance\x20configurations\x20\ + for\x20a\x20given\x20project.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03A\x06\ + \x19\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03A\x1a4\n\x0c\n\x05\x06\0\x02\0\ + \x03\x12\x03A?Z\n\r\n\x05\x06\0\x02\0\x04\x12\x04B\x04D\x06\n\x11\n\t\ + \x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04B\x04D\x06\n\x0c\n\x05\x06\0\x02\0\ + \x04\x12\x03E\x044\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03E\x044\n\ + K\n\x04\x06\0\x02\x01\x12\x04I\x02N\x03\x1a=\x20Gets\x20information\x20a\ + bout\x20a\x20particular\x20instance\x20configuration.\n\n\x0c\n\x05\x06\ + \0\x02\x01\x01\x12\x03I\x06\x17\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03I\ + \x180\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03I;I\n\r\n\x05\x06\0\x02\x01\ + \x04\x12\x04J\x04L\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04\ + J\x04L\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03M\x042\n\x0f\n\x08\x06\0\ + \x02\x01\x04\x9b\x08\0\x12\x03M\x042\n9\n\x04\x06\0\x02\x02\x12\x04Q\x02\ + V\x03\x1a+\x20Lists\x20all\x20instances\x20in\x20the\x20given\x20project\ + .\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03Q\x06\x13\n\x0c\n\x05\x06\0\x02\ + \x02\x02\x12\x03Q\x14(\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03Q3H\n\r\n\ + \x05\x06\0\x02\x02\x04\x12\x04R\x04T\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\ + \xca\xbc\"\x12\x04R\x04T\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03U\x044\ + \n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03U\x044\n=\n\x04\x06\0\ + \x02\x03\x12\x04Y\x02^\x03\x1a/\x20Gets\x20information\x20about\x20a\x20\ + particular\x20instance.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03Y\x06\x11\ + \n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03Y\x12$\n\x0c\n\x05\x06\0\x02\x03\ + \x03\x12\x03Y/7\n\r\n\x05\x06\0\x02\x03\x04\x12\x04Z\x04\\\x06\n\x11\n\t\ + \x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04Z\x04\\\x06\n\x0c\n\x05\x06\0\ + \x02\x03\x04\x12\x03]\x042\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\ + \x03]\x042\n\xaa\x0c\n\x04\x06\0\x02\x04\x12\x06\x82\x01\x02\x8c\x01\x03\ + \x1a\x99\x0c\x20Creates\x20an\x20instance\x20and\x20begins\x20preparing\ + \x20it\x20to\x20begin\x20serving.\x20The\n\x20returned\x20[long-running\ + \x20operation][google.longrunning.Operation]\n\x20can\x20be\x20used\x20t\ + o\x20track\x20the\x20progress\x20of\x20preparing\x20the\x20new\n\x20inst\ + ance.\x20The\x20instance\x20name\x20is\x20assigned\x20by\x20the\x20calle\ + r.\x20If\x20the\n\x20named\x20instance\x20already\x20exists,\x20`CreateI\ + nstance`\x20returns\n\x20`ALREADY_EXISTS`.\n\n\x20Immediately\x20upon\ + \x20completion\x20of\x20this\x20request:\n\n\x20\x20\x20*\x20The\x20inst\ + ance\x20is\x20readable\x20via\x20the\x20API,\x20with\x20all\x20requested\ + \x20attributes\n\x20\x20\x20\x20\x20but\x20no\x20allocated\x20resources.\ + \x20Its\x20state\x20is\x20`CREATING`.\n\n\x20Until\x20completion\x20of\ + \x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Cancelling\x20the\ + \x20operation\x20renders\x20the\x20instance\x20immediately\x20unreadable\ + \n\x20\x20\x20\x20\x20via\x20the\x20API.\n\x20\x20\x20*\x20The\x20instan\ + ce\x20can\x20be\x20deleted.\n\x20\x20\x20*\x20All\x20other\x20attempts\ + \x20to\x20modify\x20the\x20instance\x20are\x20rejected.\n\n\x20Upon\x20c\ + ompletion\x20of\x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Bil\ + ling\x20for\x20all\x20successfully-allocated\x20resources\x20begins\x20(\ + some\x20types\n\x20\x20\x20\x20\x20may\x20have\x20lower\x20than\x20the\ + \x20requested\x20levels).\n\x20\x20\x20*\x20Databases\x20can\x20be\x20cr\ + eated\x20in\x20the\x20instance.\n\x20\x20\x20*\x20The\x20instance's\x20a\ + llocated\x20resource\x20levels\x20are\x20readable\x20via\x20the\x20API.\ + \n\x20\x20\x20*\x20The\x20instance's\x20state\x20becomes\x20`READY`.\n\n\ + \x20The\x20returned\x20[long-running\x20operation][google.longrunning.Op\ + eration]\x20will\n\x20have\x20a\x20name\x20of\x20the\x20format\x20`/operations/`\x20and\n\x20can\x20be\x20used\x20t\ + o\x20track\x20creation\x20of\x20the\x20instance.\x20\x20The\n\x20[metada\ + ta][google.longrunning.Operation.metadata]\x20field\x20type\x20is\n\x20[\ + CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceM\ + etadata].\n\x20The\x20[response][google.longrunning.Operation.response]\ + \x20field\x20type\x20is\n\x20[Instance][google.spanner.admin.instance.v1\ + .Instance],\x20if\x20successful.\n\n\r\n\x05\x06\0\x02\x04\x01\x12\x04\ + \x82\x01\x06\x14\n\r\n\x05\x06\0\x02\x04\x02\x12\x04\x82\x01\x15*\n\r\n\ + \x05\x06\0\x02\x04\x03\x12\x04\x82\x015Q\n\x0f\n\x05\x06\0\x02\x04\x04\ + \x12\x06\x83\x01\x04\x86\x01\x06\n\x13\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\ + \"\x12\x06\x83\x01\x04\x86\x01\x06\n\r\n\x05\x06\0\x02\x04\x04\x12\x04\ + \x87\x01\x04I\n\x10\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x04\x87\x01\ + \x04I\n\x0f\n\x05\x06\0\x02\x04\x04\x12\x06\x88\x01\x04\x8b\x01\x06\n\ + \x11\n\x07\x06\0\x02\x04\x04\x99\x08\x12\x06\x88\x01\x04\x8b\x01\x06\n\ + \xb8\x0f\n\x04\x06\0\x02\x05\x12\x06\xb6\x01\x02\xc0\x01\x03\x1a\xa7\x0f\ + \x20Updates\x20an\x20instance,\x20and\x20begins\x20allocating\x20or\x20r\ + eleasing\x20resources\n\x20as\x20requested.\x20The\x20returned\x20[long-\ + running\n\x20operation][google.longrunning.Operation]\x20can\x20be\x20us\ + ed\x20to\x20track\x20the\n\x20progress\x20of\x20updating\x20the\x20insta\ + nce.\x20If\x20the\x20named\x20instance\x20does\x20not\n\x20exist,\x20ret\ + urns\x20`NOT_FOUND`.\n\n\x20Immediately\x20upon\x20completion\x20of\x20t\ + his\x20request:\n\n\x20\x20\x20*\x20For\x20resource\x20types\x20for\x20w\ + hich\x20a\x20decrease\x20in\x20the\x20instance's\x20allocation\n\x20\x20\ \x20\x20\x20has\x20been\x20requested,\x20billing\x20is\x20based\x20on\ \x20the\x20newly-requested\x20level.\n\n\x20Until\x20completion\x20of\ \x20the\x20returned\x20operation:\n\n\x20\x20\x20*\x20Cancelling\x20the\ \x20operation\x20sets\x20its\x20metadata's\n\x20\x20\x20\x20\x20[cancel_\ time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_tim\ - e],\n\x20\x20\x20\x20\x20and\x20begins\x20restoring\x20resources\x20to\ - \x20their\x20pre-request\x20values.\x20The\n\x20\x20\x20\x20\x20operatio\ - n\x20is\x20guaranteed\x20to\x20succeed\x20at\x20undoing\x20all\x20resour\ - ce\x20changes,\n\x20\x20\x20\x20\x20after\x20which\x20point\x20it\x20ter\ - minates\x20with\x20a\x20`CANCELLED`\x20status.\n\x20\x20\x20*\x20All\x20\ - other\x20attempts\x20to\x20modify\x20the\x20instance\x20are\x20rejected.\ - \n\x20\x20\x20*\x20Reading\x20the\x20instance\x20via\x20the\x20API\x20co\ - ntinues\x20to\x20give\x20the\x20pre-request\n\x20\x20\x20\x20\x20resourc\ - e\x20levels.\n\n\x20Upon\x20completion\x20of\x20the\x20returned\x20opera\ - tion:\n\n\x20\x20\x20*\x20Billing\x20begins\x20for\x20all\x20successfull\ - y-allocated\x20resources\x20(some\x20types\n\x20\x20\x20\x20\x20may\x20h\ - ave\x20lower\x20than\x20the\x20requested\x20levels).\n\x20\x20\x20*\x20A\ - ll\x20newly-reserved\x20resources\x20are\x20available\x20for\x20serving\ - \x20the\x20instance's\n\x20\x20\x20\x20\x20tables.\n\x20\x20\x20*\x20The\ - \x20instance's\x20new\x20resource\x20levels\x20are\x20readable\x20via\ - \x20the\x20API.\n\n\x20The\x20returned\x20[long-running\x20operation][go\ - ogle.longrunning.Operation]\x20will\n\x20have\x20a\x20name\x20of\x20the\ - \x20format\x20`/operations/`\x20and\n\x20ca\ - n\x20be\x20used\x20to\x20track\x20the\x20instance\x20modification.\x20\ - \x20The\n\x20[metadata][google.longrunning.Operation.metadata]\x20field\ - \x20type\x20is\n\x20[UpdateInstanceMetadata][google.spanner.admin.instan\ - ce.v1.UpdateInstanceMetadata].\n\x20The\x20[response][google.longrunning\ - .Operation.response]\x20field\x20type\x20is\n\x20[Instance][google.spann\ - er.admin.instance.v1.Instance],\x20if\x20successful.\n\n\x20Authorizatio\ - n\x20requires\x20`spanner.instances.update`\x20permission\x20on\n\x20the\ - \x20resource\x20[name][google.spanner.admin.instance.v1.Instance.name].\ - \n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xcc\x02\x06\x14\n\r\n\x05\x06\0\x02\ - \t\x02\x12\x04\xcc\x02\x15*\n\r\n\x05\x06\0\x02\t\x03\x12\x04\xcd\x02\ - \x0f+\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xce\x02\x04\xd1\x02\x06\n\x13\ - \n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xce\x02\x04\xd1\x02\x06\n\r\n\ - \x05\x06\0\x02\t\x04\x12\x04\xd2\x02\x04A\n\x10\n\x08\x06\0\x02\t\x04\ - \x9b\x08\0\x12\x04\xd2\x02\x04A\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xd3\ - \x02\x04\xd6\x02\x06\n\x11\n\x07\x06\0\x02\t\x04\x99\x08\x12\x06\xd3\x02\ - \x04\xd6\x02\x06\n\xc8\x02\n\x04\x06\0\x02\n\x12\x06\xe4\x02\x02\xe9\x02\ - \x03\x1a\xb7\x02\x20Deletes\x20an\x20instance.\n\n\x20Immediately\x20upo\ - n\x20completion\x20of\x20the\x20request:\n\n\x20\x20\x20*\x20Billing\x20\ - ceases\x20for\x20all\x20of\x20the\x20instance's\x20reserved\x20resources\ - .\n\n\x20Soon\x20afterward:\n\n\x20\x20\x20*\x20The\x20instance\x20and\ - \x20*all\x20of\x20its\x20databases*\x20immediately\x20and\n\x20\x20\x20\ - \x20\x20irrevocably\x20disappear\x20from\x20the\x20API.\x20All\x20data\ - \x20in\x20the\x20databases\n\x20\x20\x20\x20\x20is\x20permanently\x20del\ - eted.\n\n\r\n\x05\x06\0\x02\n\x01\x12\x04\xe4\x02\x06\x14\n\r\n\x05\x06\ - \0\x02\n\x02\x12\x04\xe4\x02\x15*\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xe4\ - \x025J\n\x0f\n\x05\x06\0\x02\n\x04\x12\x06\xe5\x02\x04\xe7\x02\x06\n\x13\ - \n\t\x06\0\x02\n\x04\xb0\xca\xbc\"\x12\x06\xe5\x02\x04\xe7\x02\x06\n\r\n\ - \x05\x06\0\x02\n\x04\x12\x04\xe8\x02\x042\n\x10\n\x08\x06\0\x02\n\x04\ - \x9b\x08\0\x12\x04\xe8\x02\x042\n\xdf\x01\n\x04\x06\0\x02\x0b\x12\x06\ - \xf0\x02\x02\xf7\x02\x03\x1a\xce\x01\x20Sets\x20the\x20access\x20control\ - \x20policy\x20on\x20an\x20instance\x20resource.\x20Replaces\x20any\n\x20\ - existing\x20policy.\n\n\x20Authorization\x20requires\x20`spanner.instanc\ - es.setIamPolicy`\x20on\n\x20[resource][google.iam.v1.SetIamPolicyRequest\ - .resource].\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xf0\x02\x06\x12\n\r\n\ - \x05\x06\0\x02\x0b\x02\x12\x04\xf0\x02\x134\n\r\n\x05\x06\0\x02\x0b\x03\ - \x12\x04\xf1\x02\x0f#\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xf2\x02\x04\ - \xf5\x02\x06\n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xf2\x02\ - \x04\xf5\x02\x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xf6\x02\x04=\n\x10\ - \n\x08\x06\0\x02\x0b\x04\x9b\x08\0\x12\x04\xf6\x02\x04=\n\x90\x02\n\x04\ - \x06\0\x02\x0c\x12\x06\xfe\x02\x02\x85\x03\x03\x1a\xff\x01\x20Gets\x20th\ - e\x20access\x20control\x20policy\x20for\x20an\x20instance\x20resource.\ - \x20Returns\x20an\x20empty\n\x20policy\x20if\x20an\x20instance\x20exists\ - \x20but\x20does\x20not\x20have\x20a\x20policy\x20set.\n\n\x20Authorizati\ - on\x20requires\x20`spanner.instances.getIamPolicy`\x20on\n\x20[resource]\ - [google.iam.v1.GetIamPolicyRequest.resource].\n\n\r\n\x05\x06\0\x02\x0c\ - \x01\x12\x04\xfe\x02\x06\x12\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xfe\x02\ - \x134\n\r\n\x05\x06\0\x02\x0c\x03\x12\x04\xff\x02\x0f#\n\x0f\n\x05\x06\0\ - \x02\x0c\x04\x12\x06\x80\x03\x04\x83\x03\x06\n\x13\n\t\x06\0\x02\x0c\x04\ - \xb0\xca\xbc\"\x12\x06\x80\x03\x04\x83\x03\x06\n\r\n\x05\x06\0\x02\x0c\ - \x04\x12\x04\x84\x03\x046\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\ - \x04\x84\x03\x046\n\xd5\x02\n\x04\x06\0\x02\r\x12\x06\x8d\x03\x02\x94\ - \x03\x03\x1a\xc4\x02\x20Returns\x20permissions\x20that\x20the\x20caller\ - \x20has\x20on\x20the\x20specified\x20instance\x20resource.\n\n\x20Attemp\ - ting\x20this\x20RPC\x20on\x20a\x20non-existent\x20Cloud\x20Spanner\x20in\ - stance\x20resource\x20will\n\x20result\x20in\x20a\x20NOT_FOUND\x20error\ - \x20if\x20the\x20user\x20has\x20`spanner.instances.list`\n\x20permission\ - \x20on\x20the\x20containing\x20Google\x20Cloud\x20Project.\x20Otherwise\ - \x20returns\x20an\n\x20empty\x20set\x20of\x20permissions.\n\n\r\n\x05\ - \x06\0\x02\r\x01\x12\x04\x8d\x03\x06\x18\n\r\n\x05\x06\0\x02\r\x02\x12\ - \x04\x8d\x03\x19@\n\r\n\x05\x06\0\x02\r\x03\x12\x04\x8e\x03\x0f7\n\x0f\n\ - \x05\x06\0\x02\r\x04\x12\x06\x8f\x03\x04\x92\x03\x06\n\x13\n\t\x06\0\x02\ - \r\x04\xb0\xca\xbc\"\x12\x06\x8f\x03\x04\x92\x03\x06\n\r\n\x05\x06\0\x02\ - \r\x04\x12\x04\x93\x03\x04B\n\x10\n\x08\x06\0\x02\r\x04\x9b\x08\0\x12\ - \x04\x93\x03\x04B\n\x0c\n\x02\x04\0\x12\x06\x97\x03\0\xc5\x03\x01\n\x0b\ - \n\x03\x04\0\x01\x12\x04\x97\x03\x08\x13\n\xad\x01\n\x04\x04\0\x04\0\x12\ - \x06\x9b\x03\x02\xb8\x03\x03\x1a\x9c\x01\x20Indicates\x20the\x20type\x20\ - of\x20replica.\x20\x20See\x20the\x20[replica\x20types\n\x20documentation\ - ](https://cloud.google.com/spanner/docs/replication#replica_types)\n\x20\ - for\x20more\x20details.\n\n\r\n\x05\x04\0\x04\0\x01\x12\x04\x9b\x03\x07\ - \x12\n\x20\n\x06\x04\0\x04\0\x02\0\x12\x04\x9d\x03\x04\x19\x1a\x10\x20No\ - t\x20specified.\n\n\x0f\n\x07\x04\0\x04\0\x02\0\x01\x12\x04\x9d\x03\x04\ - \x14\n\x0f\n\x07\x04\0\x04\0\x02\0\x02\x12\x04\x9d\x03\x17\x18\n\xfe\x01\ - \n\x06\x04\0\x04\0\x02\x01\x12\x04\xa6\x03\x04\x13\x1a\xed\x01\x20Read-w\ - rite\x20replicas\x20support\x20both\x20reads\x20and\x20writes.\x20These\ - \x20replicas:\n\n\x20*\x20Maintain\x20a\x20full\x20copy\x20of\x20your\ - \x20data.\n\x20*\x20Serve\x20reads.\n\x20*\x20Can\x20vote\x20whether\x20\ - to\x20commit\x20a\x20write.\n\x20*\x20Participate\x20in\x20leadership\ - \x20election.\n\x20*\x20Are\x20eligible\x20to\x20become\x20a\x20leader.\ - \n\n\x0f\n\x07\x04\0\x04\0\x02\x01\x01\x12\x04\xa6\x03\x04\x0e\n\x0f\n\ - \x07\x04\0\x04\0\x02\x01\x02\x12\x04\xa6\x03\x11\x12\n\xeb\x01\n\x06\x04\ - \0\x04\0\x02\x02\x12\x04\xae\x03\x04\x12\x1a\xda\x01\x20Read-only\x20rep\ - licas\x20only\x20support\x20reads\x20(not\x20writes).\x20Read-only\x20re\ - plicas:\n\n\x20*\x20Maintain\x20a\x20full\x20copy\x20of\x20your\x20data.\ - \n\x20*\x20Serve\x20reads.\n\x20*\x20Do\x20not\x20participate\x20in\x20v\ - oting\x20to\x20commit\x20writes.\n\x20*\x20Are\x20not\x20eligible\x20to\ - \x20become\x20a\x20leader.\n\n\x0f\n\x07\x04\0\x04\0\x02\x02\x01\x12\x04\ - \xae\x03\x04\r\n\x0f\n\x07\x04\0\x04\0\x02\x02\x02\x12\x04\xae\x03\x10\ - \x11\n\xa4\x02\n\x06\x04\0\x04\0\x02\x03\x12\x04\xb7\x03\x04\x10\x1a\x93\ - \x02\x20Witness\x20replicas\x20don't\x20support\x20reads\x20but\x20do\ - \x20participate\x20in\x20voting\x20to\n\x20commit\x20writes.\x20Witness\ - \x20replicas:\n\n\x20*\x20Do\x20not\x20maintain\x20a\x20full\x20copy\x20\ - of\x20data.\n\x20*\x20Do\x20not\x20serve\x20reads.\n\x20*\x20Vote\x20whe\ - ther\x20to\x20commit\x20writes.\n\x20*\x20Participate\x20in\x20leader\ - \x20election\x20but\x20are\x20not\x20eligible\x20to\x20become\x20leader.\ - \n\n\x0f\n\x07\x04\0\x04\0\x02\x03\x01\x12\x04\xb7\x03\x04\x0b\n\x0f\n\ - \x07\x04\0\x04\0\x02\x03\x02\x12\x04\xb7\x03\x0e\x0f\nJ\n\x04\x04\0\x02\ - \0\x12\x04\xbb\x03\x02\x16\x1a<\x20The\x20location\x20of\x20the\x20servi\ - ng\x20resources,\x20e.g.\x20\"us-central1\".\n\n\r\n\x05\x04\0\x02\0\x05\ - \x12\x04\xbb\x03\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xbb\x03\t\x11\ - \n\r\n\x05\x04\0\x02\0\x03\x12\x04\xbb\x03\x14\x15\n$\n\x04\x04\0\x02\ - \x01\x12\x04\xbe\x03\x02\x17\x1a\x16\x20The\x20type\x20of\x20replica.\n\ - \n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xbe\x03\x02\r\n\r\n\x05\x04\0\x02\ - \x01\x01\x12\x04\xbe\x03\x0e\x12\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xbe\ - \x03\x15\x16\n\xee\x01\n\x04\x04\0\x02\x02\x12\x04\xc4\x03\x02#\x1a\xdf\ - \x01\x20If\x20true,\x20this\x20location\x20is\x20designated\x20as\x20the\ - \x20default\x20leader\x20location\x20where\n\x20leader\x20replicas\x20ar\ - e\x20placed.\x20See\x20the\x20[region\x20types\n\x20documentation](https\ - ://cloud.google.com/spanner/docs/instances#region_types)\n\x20for\x20mor\ - e\x20details.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xc4\x03\x02\x06\n\r\ - \n\x05\x04\0\x02\x02\x01\x12\x04\xc4\x03\x07\x1e\n\r\n\x05\x04\0\x02\x02\ - \x03\x12\x04\xc4\x03!\"\n\x97\x01\n\x02\x04\x01\x12\x06\xc9\x03\0\xb2\ - \x04\x01\x1a\x88\x01\x20A\x20possible\x20configuration\x20for\x20a\x20Cl\ - oud\x20Spanner\x20instance.\x20Configurations\n\x20define\x20the\x20geog\ - raphic\x20placement\x20of\x20nodes\x20and\x20their\x20replication.\n\n\ - \x0b\n\x03\x04\x01\x01\x12\x04\xc9\x03\x08\x16\n\r\n\x03\x04\x01\x07\x12\ - \x06\xca\x03\x02\xcd\x03\x04\n\x0f\n\x05\x04\x01\x07\x9d\x08\x12\x06\xca\ - \x03\x02\xcd\x03\x04\n1\n\x04\x04\x01\x04\0\x12\x06\xd0\x03\x02\xd9\x03\ - \x03\x1a!\x20The\x20type\x20of\x20this\x20configuration.\n\n\r\n\x05\x04\ - \x01\x04\0\x01\x12\x04\xd0\x03\x07\x0b\n\x1e\n\x06\x04\x01\x04\0\x02\0\ - \x12\x04\xd2\x03\x04\x19\x1a\x0e\x20Unspecified.\n\n\x0f\n\x07\x04\x01\ - \x04\0\x02\0\x01\x12\x04\xd2\x03\x04\x14\n\x0f\n\x07\x04\x01\x04\0\x02\0\ - \x02\x12\x04\xd2\x03\x17\x18\n/\n\x06\x04\x01\x04\0\x02\x01\x12\x04\xd5\ - \x03\x04\x17\x1a\x1f\x20Google\x20managed\x20configuration.\n\n\x0f\n\ - \x07\x04\x01\x04\0\x02\x01\x01\x12\x04\xd5\x03\x04\x12\n\x0f\n\x07\x04\ - \x01\x04\0\x02\x01\x02\x12\x04\xd5\x03\x15\x16\n-\n\x06\x04\x01\x04\0\ - \x02\x02\x12\x04\xd8\x03\x04\x15\x1a\x1d\x20User\x20managed\x20configura\ - tion.\n\n\x0f\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x04\xd8\x03\x04\x10\n\ - \x0f\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x04\xd8\x03\x13\x14\nE\n\x04\ - \x04\x01\x04\x01\x12\x06\xdc\x03\x02\xe6\x03\x03\x1a5\x20Indicates\x20th\ - e\x20current\x20state\x20of\x20the\x20instance\x20config.\n\n\r\n\x05\ - \x04\x01\x04\x01\x01\x12\x04\xdc\x03\x07\x0c\n\x20\n\x06\x04\x01\x04\x01\ - \x02\0\x12\x04\xde\x03\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\ - \x07\x04\x01\x04\x01\x02\0\x01\x12\x04\xde\x03\x04\x15\n\x0f\n\x07\x04\ - \x01\x04\x01\x02\0\x02\x12\x04\xde\x03\x18\x19\n=\n\x06\x04\x01\x04\x01\ - \x02\x01\x12\x04\xe1\x03\x04\x11\x1a-\x20The\x20instance\x20config\x20is\ - \x20still\x20being\x20created.\n\n\x0f\n\x07\x04\x01\x04\x01\x02\x01\x01\ - \x12\x04\xe1\x03\x04\x0c\n\x0f\n\x07\x04\x01\x04\x01\x02\x01\x02\x12\x04\ - \xe1\x03\x0f\x10\na\n\x06\x04\x01\x04\x01\x02\x02\x12\x04\xe5\x03\x04\ - \x0e\x1aQ\x20The\x20instance\x20config\x20is\x20fully\x20created\x20and\ - \x20ready\x20to\x20be\x20used\x20to\x20create\n\x20instances.\n\n\x0f\n\ - \x07\x04\x01\x04\x01\x02\x02\x01\x12\x04\xe5\x03\x04\t\n\x0f\n\x07\x04\ - \x01\x04\x01\x02\x02\x02\x12\x04\xe5\x03\x0c\r\n\x94\x01\n\x04\x04\x01\ - \x02\0\x12\x04\xeb\x03\x02\x12\x1a\x85\x01\x20A\x20unique\x20identifier\ + e],\x20and\x20begins\n\x20\x20\x20\x20\x20restoring\x20resources\x20to\ + \x20their\x20pre-request\x20values.\x20The\x20operation\n\x20\x20\x20\ + \x20\x20is\x20guaranteed\x20to\x20succeed\x20at\x20undoing\x20all\x20res\ + ource\x20changes,\n\x20\x20\x20\x20\x20after\x20which\x20point\x20it\x20\ + terminates\x20with\x20a\x20`CANCELLED`\x20status.\n\x20\x20\x20*\x20All\ + \x20other\x20attempts\x20to\x20modify\x20the\x20instance\x20are\x20rejec\ + ted.\n\x20\x20\x20*\x20Reading\x20the\x20instance\x20via\x20the\x20API\ + \x20continues\x20to\x20give\x20the\x20pre-request\n\x20\x20\x20\x20\x20r\ + esource\x20levels.\n\n\x20Upon\x20completion\x20of\x20the\x20returned\ + \x20operation:\n\n\x20\x20\x20*\x20Billing\x20begins\x20for\x20all\x20su\ + ccessfully-allocated\x20resources\x20(some\x20types\n\x20\x20\x20\x20\ + \x20may\x20have\x20lower\x20than\x20the\x20requested\x20levels).\n\x20\ + \x20\x20*\x20All\x20newly-reserved\x20resources\x20are\x20available\x20f\ + or\x20serving\x20the\x20instance's\n\x20\x20\x20\x20\x20tables.\n\x20\ + \x20\x20*\x20The\x20instance's\x20new\x20resource\x20levels\x20are\x20re\ + adable\x20via\x20the\x20API.\n\n\x20The\x20returned\x20[long-running\x20\ + operation][google.longrunning.Operation]\x20will\n\x20have\x20a\x20name\ + \x20of\x20the\x20format\x20`/operations/`\ + \x20and\n\x20can\x20be\x20used\x20to\x20track\x20the\x20instance\x20modi\ + fication.\x20\x20The\n\x20[metadata][google.longrunning.Operation.metada\ + ta]\x20field\x20type\x20is\n\x20[UpdateInstanceMetadata][google.spanner.\ + admin.instance.v1.UpdateInstanceMetadata].\n\x20The\x20[response][google\ + .longrunning.Operation.response]\x20field\x20type\x20is\n\x20[Instance][\ + google.spanner.admin.instance.v1.Instance],\x20if\x20successful.\n\n\x20\ + Authorization\x20requires\x20`spanner.instances.update`\x20permission\ + \x20on\n\x20resource\x20[name][google.spanner.admin.instance.v1.Instance\ + .name].\n\n\r\n\x05\x06\0\x02\x05\x01\x12\x04\xb6\x01\x06\x14\n\r\n\x05\ + \x06\0\x02\x05\x02\x12\x04\xb6\x01\x15*\n\r\n\x05\x06\0\x02\x05\x03\x12\ + \x04\xb6\x015Q\n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\xb7\x01\x04\xba\x01\ + \x06\n\x13\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\xb7\x01\x04\xba\ + \x01\x06\n\r\n\x05\x06\0\x02\x05\x04\x12\x04\xbb\x01\x04A\n\x10\n\x08\ + \x06\0\x02\x05\x04\x9b\x08\0\x12\x04\xbb\x01\x04A\n\x0f\n\x05\x06\0\x02\ + \x05\x04\x12\x06\xbc\x01\x04\xbf\x01\x06\n\x11\n\x07\x06\0\x02\x05\x04\ + \x99\x08\x12\x06\xbc\x01\x04\xbf\x01\x06\n\xc8\x02\n\x04\x06\0\x02\x06\ + \x12\x06\xcd\x01\x02\xd2\x01\x03\x1a\xb7\x02\x20Deletes\x20an\x20instanc\ + e.\n\n\x20Immediately\x20upon\x20completion\x20of\x20the\x20request:\n\n\ + \x20\x20\x20*\x20Billing\x20ceases\x20for\x20all\x20of\x20the\x20instanc\ + e's\x20reserved\x20resources.\n\n\x20Soon\x20afterward:\n\n\x20\x20\x20*\ + \x20The\x20instance\x20and\x20*all\x20of\x20its\x20databases*\x20immedia\ + tely\x20and\n\x20\x20\x20\x20\x20irrevocably\x20disappear\x20from\x20the\ + \x20API.\x20All\x20data\x20in\x20the\x20databases\n\x20\x20\x20\x20\x20i\ + s\x20permanently\x20deleted.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\xcd\ + \x01\x06\x14\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\xcd\x01\x15*\n\r\n\x05\ + \x06\0\x02\x06\x03\x12\x04\xcd\x015J\n\x0f\n\x05\x06\0\x02\x06\x04\x12\ + \x06\xce\x01\x04\xd0\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\ + \x12\x06\xce\x01\x04\xd0\x01\x06\n\r\n\x05\x06\0\x02\x06\x04\x12\x04\xd1\ + \x01\x042\n\x10\n\x08\x06\0\x02\x06\x04\x9b\x08\0\x12\x04\xd1\x01\x042\n\ + \xdf\x01\n\x04\x06\0\x02\x07\x12\x06\xd9\x01\x02\xdf\x01\x03\x1a\xce\x01\ + \x20Sets\x20the\x20access\x20control\x20policy\x20on\x20an\x20instance\ + \x20resource.\x20Replaces\x20any\n\x20existing\x20policy.\n\n\x20Authori\ + zation\x20requires\x20`spanner.instances.setIamPolicy`\x20on\n\x20[resou\ + rce][google.iam.v1.SetIamPolicyRequest.resource].\n\n\r\n\x05\x06\0\x02\ + \x07\x01\x12\x04\xd9\x01\x06\x12\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xd9\ + \x01\x134\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xd9\x01?S\n\x0f\n\x05\x06\ + \0\x02\x07\x04\x12\x06\xda\x01\x04\xdd\x01\x06\n\x13\n\t\x06\0\x02\x07\ + \x04\xb0\xca\xbc\"\x12\x06\xda\x01\x04\xdd\x01\x06\n\r\n\x05\x06\0\x02\ + \x07\x04\x12\x04\xde\x01\x04=\n\x10\n\x08\x06\0\x02\x07\x04\x9b\x08\0\ + \x12\x04\xde\x01\x04=\n\x90\x02\n\x04\x06\0\x02\x08\x12\x06\xe6\x01\x02\ + \xec\x01\x03\x1a\xff\x01\x20Gets\x20the\x20access\x20control\x20policy\ + \x20for\x20an\x20instance\x20resource.\x20Returns\x20an\x20empty\n\x20po\ + licy\x20if\x20an\x20instance\x20exists\x20but\x20does\x20not\x20have\x20\ + a\x20policy\x20set.\n\n\x20Authorization\x20requires\x20`spanner.instanc\ + es.getIamPolicy`\x20on\n\x20[resource][google.iam.v1.GetIamPolicyRequest\ + .resource].\n\n\r\n\x05\x06\0\x02\x08\x01\x12\x04\xe6\x01\x06\x12\n\r\n\ + \x05\x06\0\x02\x08\x02\x12\x04\xe6\x01\x134\n\r\n\x05\x06\0\x02\x08\x03\ + \x12\x04\xe6\x01?S\n\x0f\n\x05\x06\0\x02\x08\x04\x12\x06\xe7\x01\x04\xea\ + \x01\x06\n\x13\n\t\x06\0\x02\x08\x04\xb0\xca\xbc\"\x12\x06\xe7\x01\x04\ + \xea\x01\x06\n\r\n\x05\x06\0\x02\x08\x04\x12\x04\xeb\x01\x046\n\x10\n\ + \x08\x06\0\x02\x08\x04\x9b\x08\0\x12\x04\xeb\x01\x046\n\xd5\x02\n\x04\ + \x06\0\x02\t\x12\x06\xf4\x01\x02\xfa\x01\x03\x1a\xc4\x02\x20Returns\x20p\ + ermissions\x20that\x20the\x20caller\x20has\x20on\x20the\x20specified\x20\ + instance\x20resource.\n\n\x20Attempting\x20this\x20RPC\x20on\x20a\x20non\ + -existent\x20Cloud\x20Spanner\x20instance\x20resource\x20will\n\x20resul\ + t\x20in\x20a\x20NOT_FOUND\x20error\x20if\x20the\x20user\x20has\x20`spann\ + er.instances.list`\n\x20permission\x20on\x20the\x20containing\x20Google\ + \x20Cloud\x20Project.\x20Otherwise\x20returns\x20an\n\x20empty\x20set\ + \x20of\x20permissions.\n\n\r\n\x05\x06\0\x02\t\x01\x12\x04\xf4\x01\x06\ + \x18\n\r\n\x05\x06\0\x02\t\x02\x12\x04\xf4\x01\x19@\n\r\n\x05\x06\0\x02\ + \t\x03\x12\x04\xf4\x01Ks\n\x0f\n\x05\x06\0\x02\t\x04\x12\x06\xf5\x01\x04\ + \xf8\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\x06\xf5\x01\x04\ + \xf8\x01\x06\n\r\n\x05\x06\0\x02\t\x04\x12\x04\xf9\x01\x04B\n\x10\n\x08\ + \x06\0\x02\t\x04\x9b\x08\0\x12\x04\xf9\x01\x04B\n\x0c\n\x02\x04\0\x12\ + \x06\xfd\x01\0\xab\x02\x01\n\x0b\n\x03\x04\0\x01\x12\x04\xfd\x01\x08\x13\ + \n\xad\x01\n\x04\x04\0\x04\0\x12\x06\x81\x02\x02\x9e\x02\x03\x1a\x9c\x01\ + \x20Indicates\x20the\x20type\x20of\x20replica.\x20\x20See\x20the\x20[rep\ + lica\x20types\n\x20documentation](https://cloud.google.com/spanner/docs/\ + replication#replica_types)\n\x20for\x20more\x20details.\n\n\r\n\x05\x04\ + \0\x04\0\x01\x12\x04\x81\x02\x07\x12\n\x20\n\x06\x04\0\x04\0\x02\0\x12\ + \x04\x83\x02\x04\x19\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\0\ + \x04\0\x02\0\x01\x12\x04\x83\x02\x04\x14\n\x0f\n\x07\x04\0\x04\0\x02\0\ + \x02\x12\x04\x83\x02\x17\x18\n\xfe\x01\n\x06\x04\0\x04\0\x02\x01\x12\x04\ + \x8c\x02\x04\x13\x1a\xed\x01\x20Read-write\x20replicas\x20support\x20bot\ + h\x20reads\x20and\x20writes.\x20These\x20replicas:\n\n\x20*\x20Maintain\ + \x20a\x20full\x20copy\x20of\x20your\x20data.\n\x20*\x20Serve\x20reads.\n\ + \x20*\x20Can\x20vote\x20whether\x20to\x20commit\x20a\x20write.\n\x20*\ + \x20Participate\x20in\x20leadership\x20election.\n\x20*\x20Are\x20eligib\ + le\x20to\x20become\x20a\x20leader.\n\n\x0f\n\x07\x04\0\x04\0\x02\x01\x01\ + \x12\x04\x8c\x02\x04\x0e\n\x0f\n\x07\x04\0\x04\0\x02\x01\x02\x12\x04\x8c\ + \x02\x11\x12\n\xeb\x01\n\x06\x04\0\x04\0\x02\x02\x12\x04\x94\x02\x04\x12\ + \x1a\xda\x01\x20Read-only\x20replicas\x20only\x20support\x20reads\x20(no\ + t\x20writes).\x20Read-only\x20replicas:\n\n\x20*\x20Maintain\x20a\x20ful\ + l\x20copy\x20of\x20your\x20data.\n\x20*\x20Serve\x20reads.\n\x20*\x20Do\ + \x20not\x20participate\x20in\x20voting\x20to\x20commit\x20writes.\n\x20*\ + \x20Are\x20not\x20eligible\x20to\x20become\x20a\x20leader.\n\n\x0f\n\x07\ + \x04\0\x04\0\x02\x02\x01\x12\x04\x94\x02\x04\r\n\x0f\n\x07\x04\0\x04\0\ + \x02\x02\x02\x12\x04\x94\x02\x10\x11\n\xa4\x02\n\x06\x04\0\x04\0\x02\x03\ + \x12\x04\x9d\x02\x04\x10\x1a\x93\x02\x20Witness\x20replicas\x20don't\x20\ + support\x20reads\x20but\x20do\x20participate\x20in\x20voting\x20to\n\x20\ + commit\x20writes.\x20Witness\x20replicas:\n\n\x20*\x20Do\x20not\x20maint\ + ain\x20a\x20full\x20copy\x20of\x20data.\n\x20*\x20Do\x20not\x20serve\x20\ + reads.\n\x20*\x20Vote\x20whether\x20to\x20commit\x20writes.\n\x20*\x20Pa\ + rticipate\x20in\x20leader\x20election\x20but\x20are\x20not\x20eligible\ + \x20to\x20become\x20leader.\n\n\x0f\n\x07\x04\0\x04\0\x02\x03\x01\x12\ + \x04\x9d\x02\x04\x0b\n\x0f\n\x07\x04\0\x04\0\x02\x03\x02\x12\x04\x9d\x02\ + \x0e\x0f\nJ\n\x04\x04\0\x02\0\x12\x04\xa1\x02\x02\x16\x1a<\x20The\x20loc\ + ation\x20of\x20the\x20serving\x20resources,\x20e.g.\x20\"us-central1\".\ + \n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xa1\x02\x02\x08\n\r\n\x05\x04\0\x02\ + \0\x01\x12\x04\xa1\x02\t\x11\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xa1\x02\ + \x14\x15\n$\n\x04\x04\0\x02\x01\x12\x04\xa4\x02\x02\x17\x1a\x16\x20The\ + \x20type\x20of\x20replica.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xa4\x02\ + \x02\r\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xa4\x02\x0e\x12\n\r\n\x05\x04\ + \0\x02\x01\x03\x12\x04\xa4\x02\x15\x16\n\xee\x01\n\x04\x04\0\x02\x02\x12\ + \x04\xaa\x02\x02#\x1a\xdf\x01\x20If\x20true,\x20this\x20location\x20is\ + \x20designated\x20as\x20the\x20default\x20leader\x20location\x20where\n\ + \x20leader\x20replicas\x20are\x20placed.\x20See\x20the\x20[region\x20typ\ + es\n\x20documentation](https://cloud.google.com/spanner/docs/instances#r\ + egion_types)\n\x20for\x20more\x20details.\n\n\r\n\x05\x04\0\x02\x02\x05\ + \x12\x04\xaa\x02\x02\x06\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\xaa\x02\x07\ + \x1e\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xaa\x02!\"\n\x97\x01\n\x02\x04\ + \x01\x12\x06\xaf\x02\0\xc0\x02\x01\x1a\x88\x01\x20A\x20possible\x20confi\ + guration\x20for\x20a\x20Cloud\x20Spanner\x20instance.\x20Configurations\ + \n\x20define\x20the\x20geographic\x20placement\x20of\x20nodes\x20and\x20\ + their\x20replication.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xaf\x02\x08\x16\ + \n\r\n\x03\x04\x01\x07\x12\x06\xb0\x02\x02\xb3\x02\x04\n\x0f\n\x05\x04\ + \x01\x07\x9d\x08\x12\x06\xb0\x02\x02\xb3\x02\x04\n\x93\x01\n\x04\x04\x01\ + \x02\0\x12\x04\xb8\x02\x02\x12\x1a\x84\x01\x20A\x20unique\x20identifier\ \x20for\x20the\x20instance\x20configuration.\x20\x20Values\n\x20are\x20o\ f\x20the\x20form\n\x20`projects//instanceConfigs/[a-z][-a-z0-9]\ - *`.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xeb\x03\x02\x08\n\r\n\x05\x04\ - \x01\x02\0\x01\x12\x04\xeb\x03\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\ - \xeb\x03\x10\x11\nM\n\x04\x04\x01\x02\x01\x12\x04\xee\x03\x02\x1a\x1a?\ + *`\n\n\r\n\x05\x04\x01\x02\0\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\ + \x01\x02\0\x01\x12\x04\xb8\x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\ + \xb8\x02\x10\x11\nM\n\x04\x04\x01\x02\x01\x12\x04\xbb\x02\x02\x1a\x1a?\ \x20The\x20name\x20of\x20this\x20instance\x20configuration\x20as\x20it\ - \x20appears\x20in\x20UIs.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xee\ - \x03\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xee\x03\t\x15\n\r\n\ - \x05\x04\x01\x02\x01\x03\x12\x04\xee\x03\x18\x19\ne\n\x04\x04\x01\x02\ - \x02\x12\x04\xf2\x03\x02C\x1aW\x20Output\x20only.\x20Whether\x20this\x20\ - instance\x20config\x20is\x20a\x20Google\x20or\x20User\x20Managed\n\x20Co\ - nfiguration.\n\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xf2\x03\x02\x06\n\r\ - \n\x05\x04\x01\x02\x02\x01\x12\x04\xf2\x03\x07\x12\n\r\n\x05\x04\x01\x02\ - \x02\x03\x12\x04\xf2\x03\x15\x16\n\r\n\x05\x04\x01\x02\x02\x08\x12\x04\ - \xf2\x03\x17B\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\x04\xf2\x03\ - \x18A\ns\n\x04\x04\x01\x02\x03\x12\x04\xf6\x03\x02$\x1ae\x20The\x20geogr\ - aphic\x20placement\x20of\x20nodes\x20in\x20this\x20instance\x20configura\ - tion\x20and\x20their\n\x20replication\x20properties.\n\n\r\n\x05\x04\x01\ - \x02\x03\x04\x12\x04\xf6\x03\x02\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\ - \xf6\x03\x0b\x16\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\xf6\x03\x17\x1f\n\ - \r\n\x05\x04\x01\x02\x03\x03\x12\x04\xf6\x03\"#\n\x9d\x01\n\x04\x04\x01\ - \x02\x04\x12\x06\xfa\x03\x02\xfb\x032\x1a\x8c\x01\x20Output\x20only.\x20\ - The\x20available\x20optional\x20replicas\x20to\x20choose\x20from\x20for\ - \x20user\n\x20managed\x20configurations.\x20Populated\x20for\x20Google\ - \x20managed\x20configurations.\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x04\ - \xfa\x03\x02\n\n\r\n\x05\x04\x01\x02\x04\x06\x12\x04\xfa\x03\x0b\x16\n\r\ - \n\x05\x04\x01\x02\x04\x01\x12\x04\xfa\x03\x17(\n\r\n\x05\x04\x01\x02\ - \x04\x03\x12\x04\xfa\x03+,\n\r\n\x05\x04\x01\x02\x04\x08\x12\x04\xfb\x03\ - \x061\n\x10\n\x08\x04\x01\x02\x04\x08\x9c\x08\0\x12\x04\xfb\x03\x070\n\ - \xa7\x02\n\x04\x04\x01\x02\x05\x12\x06\x81\x04\x02\x83\x04\x05\x1a\x96\ - \x02\x20Base\x20configuration\x20name,\x20e.g.\x20projects//instanceConfigs/nam3,\n\x20based\x20on\x20which\x20this\x20configurati\ - on\x20is\x20created.\x20Only\x20set\x20for\x20user\x20managed\n\x20confi\ - gurations.\x20`base_config`\x20must\x20refer\x20to\x20a\x20configuration\ - \x20of\x20type\n\x20GOOGLE_MANAGED\x20in\x20the\x20same\x20project\x20as\ - \x20this\x20configuration.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\x81\ - \x04\x02\x08\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\x81\x04\t\x14\n\r\n\ - \x05\x04\x01\x02\x05\x03\x12\x04\x81\x04\x17\x18\n\x0f\n\x05\x04\x01\x02\ - \x05\x08\x12\x06\x81\x04\x19\x83\x04\x04\n\x11\n\x07\x04\x01\x02\x05\x08\ - \x9f\x08\x12\x06\x81\x04\x1a\x83\x04\x03\n\xd5\t\n\x04\x04\x01\x02\x06\ - \x12\x04\x9a\x04\x02!\x1a\xc6\t\x20Cloud\x20Labels\x20are\x20a\x20flexib\ - le\x20and\x20lightweight\x20mechanism\x20for\x20organizing\x20cloud\n\ - \x20resources\x20into\x20groups\x20that\x20reflect\x20a\x20customer's\ - \x20organizational\x20needs\x20and\n\x20deployment\x20strategies.\x20Clo\ - ud\x20Labels\x20can\x20be\x20used\x20to\x20filter\x20collections\x20of\n\ - \x20resources.\x20They\x20can\x20be\x20used\x20to\x20control\x20how\x20r\ - esource\x20metrics\x20are\x20aggregated.\n\x20And\x20they\x20can\x20be\ - \x20used\x20as\x20arguments\x20to\x20policy\x20management\x20rules\x20(e\ - .g.\x20route,\n\x20firewall,\x20load\x20balancing,\x20etc.).\n\n\x20\x20\ - *\x20Label\x20keys\x20must\x20be\x20between\x201\x20and\x2063\x20charact\ - ers\x20long\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20the\x20foll\ - owing\x20regular\x20expression:\x20`[a-z][a-z0-9_-]{0,62}`.\n\x20\x20*\ - \x20Label\x20values\x20must\x20be\x20between\x200\x20and\x2063\x20charac\ - ters\x20long\x20and\x20must\x20conform\n\x20\x20\x20\x20to\x20the\x20reg\ - ular\x20expression\x20`[a-z0-9_-]{0,63}`.\n\x20\x20*\x20No\x20more\x20th\ - an\x2064\x20labels\x20can\x20be\x20associated\x20with\x20a\x20given\x20r\ - esource.\n\n\x20See\x20https://goo.gl/xmQnxf\x20for\x20more\x20informati\ - on\x20on\x20and\x20examples\x20of\x20labels.\n\n\x20If\x20you\x20plan\ - \x20to\x20use\x20labels\x20in\x20your\x20own\x20code,\x20please\x20note\ - \x20that\x20additional\n\x20characters\x20may\x20be\x20allowed\x20in\x20\ - the\x20future.\x20Therefore,\x20you\x20are\x20advised\x20to\x20use\n\x20\ - an\x20internal\x20label\x20representation,\x20such\x20as\x20JSON,\x20whi\ - ch\x20doesn't\x20rely\x20upon\n\x20specific\x20characters\x20being\x20di\ - sallowed.\x20\x20For\x20example,\x20representing\x20labels\n\x20as\x20th\ - e\x20string:\x20\x20name\x20+\x20\"_\"\x20+\x20value\x20\x20would\x20pro\ - ve\x20problematic\x20if\x20we\x20were\x20to\n\x20allow\x20\"_\"\x20in\ - \x20a\x20future\x20release.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\x9a\ - \x04\x02\x15\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\x9a\x04\x16\x1c\n\r\n\ - \x05\x04\x01\x02\x06\x03\x12\x04\x9a\x04\x1f\x20\n\xb1\x05\n\x04\x04\x01\ - \x02\x07\x12\x04\xa6\x04\x02\x12\x1a\xa2\x05\x20etag\x20is\x20used\x20fo\ - r\x20optimistic\x20concurrency\x20control\x20as\x20a\x20way\n\x20to\x20h\ - elp\x20prevent\x20simultaneous\x20updates\x20of\x20a\x20instance\x20conf\ - ig\x20from\x20overwriting\n\x20each\x20other.\x20It\x20is\x20strongly\ - \x20suggested\x20that\x20systems\x20make\x20use\x20of\x20the\x20etag\x20\ - in\n\x20the\x20read-modify-write\x20cycle\x20to\x20perform\x20instance\ - \x20config\x20updates\x20in\x20order\x20to\n\x20avoid\x20race\x20conditi\ - ons:\x20An\x20etag\x20is\x20returned\x20in\x20the\x20response\x20which\ - \x20contains\n\x20instance\x20configs,\x20and\x20systems\x20are\x20expec\ - ted\x20to\x20put\x20that\x20etag\x20in\x20the\x20request\n\x20to\x20upda\ - te\x20instance\x20config\x20to\x20ensure\x20that\x20their\x20change\x20w\ - ill\x20be\x20applied\x20to\n\x20the\x20same\x20version\x20of\x20the\x20i\ - nstance\x20config.\n\x20If\x20no\x20etag\x20is\x20provided\x20in\x20the\ - \x20call\x20to\x20update\x20instance\x20config,\x20then\x20the\n\x20exis\ - ting\x20instance\x20config\x20is\x20overwritten\x20blindly.\n\n\r\n\x05\ - \x04\x01\x02\x07\x05\x12\x04\xa6\x04\x02\x08\n\r\n\x05\x04\x01\x02\x07\ - \x01\x12\x04\xa6\x04\t\r\n\r\n\x05\x04\x01\x02\x07\x03\x12\x04\xa6\x04\ - \x10\x11\n\x86\x01\n\x04\x04\x01\x02\x08\x12\x04\xaa\x04\x02%\x1ax\x20Al\ - lowed\x20values\x20of\x20the\x20\"default_leader\"\x20schema\x20option\ - \x20for\x20databases\x20in\n\x20instances\x20that\x20use\x20this\x20inst\ - ance\x20configuration.\n\n\r\n\x05\x04\x01\x02\x08\x04\x12\x04\xaa\x04\ - \x02\n\n\r\n\x05\x04\x01\x02\x08\x05\x12\x04\xaa\x04\x0b\x11\n\r\n\x05\ - \x04\x01\x02\x08\x01\x12\x04\xaa\x04\x12\x20\n\r\n\x05\x04\x01\x02\x08\ - \x03\x12\x04\xaa\x04#$\n\x9b\x01\n\x04\x04\x01\x02\t\x12\x04\xae\x04\x02\ - D\x1a\x8c\x01\x20Output\x20only.\x20If\x20true,\x20the\x20instance\x20co\ - nfig\x20is\x20being\x20created\x20or\x20updated.\x20If\n\x20false,\x20th\ - ere\x20are\x20no\x20ongoing\x20operations\x20for\x20the\x20instance\x20c\ - onfig.\n\n\r\n\x05\x04\x01\x02\t\x05\x12\x04\xae\x04\x02\x06\n\r\n\x05\ - \x04\x01\x02\t\x01\x12\x04\xae\x04\x07\x12\n\r\n\x05\x04\x01\x02\t\x03\ - \x12\x04\xae\x04\x15\x17\n\r\n\x05\x04\x01\x02\t\x08\x12\x04\xae\x04\x18\ - C\n\x10\n\x08\x04\x01\x02\t\x08\x9c\x08\0\x12\x04\xae\x04\x19B\n?\n\x04\ - \x04\x01\x02\n\x12\x04\xb1\x04\x02?\x1a1\x20Output\x20only.\x20The\x20cu\ - rrent\x20instance\x20config\x20state.\n\n\r\n\x05\x04\x01\x02\n\x06\x12\ - \x04\xb1\x04\x02\x07\n\r\n\x05\x04\x01\x02\n\x01\x12\x04\xb1\x04\x08\r\n\ - \r\n\x05\x04\x01\x02\n\x03\x12\x04\xb1\x04\x10\x12\n\r\n\x05\x04\x01\x02\ - \n\x08\x12\x04\xb1\x04\x13>\n\x10\n\x08\x04\x01\x02\n\x08\x9c\x08\0\x12\ - \x04\xb1\x04\x14=\n3\n\x02\x04\x02\x12\x06\xb5\x04\0\xee\x04\x01\x1a%\ - \x20Autoscaling\x20config\x20for\x20an\x20instance.\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\xb5\x04\x08\x19\n\xd6\x02\n\x04\x04\x02\x03\0\x12\x06\ - \xbb\x04\x02\xd4\x04\x03\x1a\xc5\x02\x20The\x20autoscaling\x20limits\x20\ - for\x20the\x20instance.\x20Users\x20can\x20define\x20the\x20minimum\x20a\ - nd\n\x20maximum\x20compute\x20capacity\x20allocated\x20to\x20the\x20inst\ - ance,\x20and\x20the\x20autoscaler\x20will\n\x20only\x20scale\x20within\ - \x20that\x20range.\x20Users\x20can\x20either\x20use\x20nodes\x20or\x20pr\ - ocessing\n\x20units\x20to\x20specify\x20the\x20limits,\x20but\x20should\ - \x20use\x20the\x20same\x20unit\x20to\x20set\x20both\x20the\n\x20min_limi\ - t\x20and\x20max_limit.\n\n\r\n\x05\x04\x02\x03\0\x01\x12\x04\xbb\x04\n\ - \x1b\nB\n\x06\x04\x02\x03\0\x08\0\x12\x06\xbd\x04\x04\xc5\x04\x05\x1a0\ - \x20The\x20minimum\x20compute\x20capacity\x20for\x20the\x20instance.\n\n\ - \x0f\n\x07\x04\x02\x03\0\x08\0\x01\x12\x04\xbd\x04\n\x13\n\x7f\n\x06\x04\ - \x02\x03\0\x02\0\x12\x04\xc0\x04\x06\x1a\x1ao\x20Minimum\x20number\x20of\ - \x20nodes\x20allocated\x20to\x20the\x20instance.\x20If\x20set,\x20this\ - \x20number\n\x20should\x20be\x20greater\x20than\x20or\x20equal\x20to\x20\ - 1.\n\n\x0f\n\x07\x04\x02\x03\0\x02\0\x05\x12\x04\xc0\x04\x06\x0b\n\x0f\n\ - \x07\x04\x02\x03\0\x02\0\x01\x12\x04\xc0\x04\x0c\x15\n\x0f\n\x07\x04\x02\ - \x03\0\x02\0\x03\x12\x04\xc0\x04\x18\x19\n\x81\x01\n\x06\x04\x02\x03\0\ - \x02\x01\x12\x04\xc4\x04\x06%\x1aq\x20Minimum\x20number\x20of\x20process\ - ing\x20units\x20allocated\x20to\x20the\x20instance.\x20If\x20set,\n\x20t\ - his\x20number\x20should\x20be\x20multiples\x20of\x201000.\n\n\x0f\n\x07\ - \x04\x02\x03\0\x02\x01\x05\x12\x04\xc4\x04\x06\x0b\n\x0f\n\x07\x04\x02\ - \x03\0\x02\x01\x01\x12\x04\xc4\x04\x0c\x20\n\x0f\n\x07\x04\x02\x03\0\x02\ - \x01\x03\x12\x04\xc4\x04#$\n\xa4\x01\n\x06\x04\x02\x03\0\x08\x01\x12\x06\ - \xca\x04\x04\xd3\x04\x05\x1a\x91\x01\x20The\x20maximum\x20compute\x20cap\ - acity\x20for\x20the\x20instance.\x20The\x20maximum\x20compute\n\x20capac\ - ity\x20should\x20be\x20less\x20than\x20or\x20equal\x20to\x2010X\x20the\ - \x20minimum\x20compute\n\x20capacity.\n\n\x0f\n\x07\x04\x02\x03\0\x08\ - \x01\x01\x12\x04\xca\x04\n\x13\n\x87\x01\n\x06\x04\x02\x03\0\x02\x02\x12\ - \x04\xcd\x04\x06\x1a\x1aw\x20Maximum\x20number\x20of\x20nodes\x20allocat\ - ed\x20to\x20the\x20instance.\x20If\x20set,\x20this\x20number\n\x20should\ - \x20be\x20greater\x20than\x20or\x20equal\x20to\x20min_nodes.\n\n\x0f\n\ - \x07\x04\x02\x03\0\x02\x02\x05\x12\x04\xcd\x04\x06\x0b\n\x0f\n\x07\x04\ - \x02\x03\0\x02\x02\x01\x12\x04\xcd\x04\x0c\x15\n\x0f\n\x07\x04\x02\x03\0\ - \x02\x02\x03\x12\x04\xcd\x04\x18\x19\n\xb8\x01\n\x06\x04\x02\x03\0\x02\ - \x03\x12\x04\xd2\x04\x06%\x1a\xa7\x01\x20Maximum\x20number\x20of\x20proc\ - essing\x20units\x20allocated\x20to\x20the\x20instance.\x20If\x20set,\n\ - \x20this\x20number\x20should\x20be\x20multiples\x20of\x201000\x20and\x20\ - be\x20greater\x20than\x20or\x20equal\x20to\n\x20min_processing_units.\n\ - \n\x0f\n\x07\x04\x02\x03\0\x02\x03\x05\x12\x04\xd2\x04\x06\x0b\n\x0f\n\ - \x07\x04\x02\x03\0\x02\x03\x01\x12\x04\xd2\x04\x0c\x20\n\x0f\n\x07\x04\ - \x02\x03\0\x02\x03\x03\x12\x04\xd2\x04#$\n:\n\x04\x04\x02\x03\x01\x12\ - \x06\xd7\x04\x02\xe5\x04\x03\x1a*\x20The\x20autoscaling\x20targets\x20fo\ - r\x20an\x20instance.\n\n\r\n\x05\x04\x02\x03\x01\x01\x12\x04\xd7\x04\n\ - \x1c\n\x8b\x02\n\x06\x04\x02\x03\x01\x02\0\x12\x06\xdc\x04\x04\xdd\x041\ - \x1a\xf8\x01\x20Required.\x20The\x20target\x20high\x20priority\x20cpu\ - \x20utilization\x20percentage\x20that\x20the\n\x20autoscaler\x20should\ - \x20be\x20trying\x20to\x20achieve\x20for\x20the\x20instance.\x20This\x20\ - number\x20is\n\x20on\x20a\x20scale\x20from\x200\x20(no\x20utilization)\ - \x20to\x20100\x20(full\x20utilization).\x20The\x20valid\n\x20range\x20is\ - \x20[10,\x2090]\x20inclusive.\n\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x05\ - \x12\x04\xdc\x04\x04\t\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x01\x12\x04\xdc\ - \x04\n/\n\x0f\n\x07\x04\x02\x03\x01\x02\0\x03\x12\x04\xdc\x0423\n\x0f\n\ - \x07\x04\x02\x03\x01\x02\0\x08\x12\x04\xdd\x04\x080\n\x12\n\n\x04\x02\ - \x03\x01\x02\0\x08\x9c\x08\0\x12\x04\xdd\x04\t/\n\x82\x02\n\x06\x04\x02\ - \x03\x01\x02\x01\x12\x06\xe3\x04\x04\xe4\x041\x1a\xef\x01\x20Required.\ - \x20The\x20target\x20storage\x20utilization\x20percentage\x20that\x20the\ - \x20autoscaler\n\x20should\x20be\x20trying\x20to\x20achieve\x20for\x20th\ - e\x20instance.\x20This\x20number\x20is\x20on\x20a\x20scale\n\x20from\x20\ - 0\x20(no\x20utilization)\x20to\x20100\x20(full\x20utilization).\x20The\ - \x20valid\x20range\x20is\n\x20[10,\x20100]\x20inclusive.\n\n\x0f\n\x07\ - \x04\x02\x03\x01\x02\x01\x05\x12\x04\xe3\x04\x04\t\n\x0f\n\x07\x04\x02\ - \x03\x01\x02\x01\x01\x12\x04\xe3\x04\n%\n\x0f\n\x07\x04\x02\x03\x01\x02\ - \x01\x03\x12\x04\xe3\x04()\n\x0f\n\x07\x04\x02\x03\x01\x02\x01\x08\x12\ - \x04\xe4\x04\x080\n\x12\n\n\x04\x02\x03\x01\x02\x01\x08\x9c\x08\0\x12\ - \x04\xe4\x04\t/\n?\n\x04\x04\x02\x02\0\x12\x06\xe8\x04\x02\xe9\x04/\x1a/\ - \x20Required.\x20Autoscaling\x20limits\x20for\x20an\x20instance.\n\n\r\n\ - \x05\x04\x02\x02\0\x06\x12\x04\xe8\x04\x02\x13\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xe8\x04\x14&\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xe8\x04)*\ - \n\r\n\x05\x04\x02\x02\0\x08\x12\x04\xe9\x04\x06.\n\x10\n\x08\x04\x02\ - \x02\0\x08\x9c\x08\0\x12\x04\xe9\x04\x07-\nD\n\x04\x04\x02\x02\x01\x12\ - \x06\xec\x04\x02\xed\x04/\x1a4\x20Required.\x20The\x20autoscaling\x20tar\ - gets\x20for\x20an\x20instance.\n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\ - \xec\x04\x02\x14\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xec\x04\x15(\n\r\ - \n\x05\x04\x02\x02\x01\x03\x12\x04\xec\x04+,\n\r\n\x05\x04\x02\x02\x01\ - \x08\x12\x04\xed\x04\x06.\n\x10\n\x08\x04\x02\x02\x01\x08\x9c\x08\0\x12\ - \x04\xed\x04\x07-\n\\\n\x02\x04\x03\x12\x06\xf1\x04\0\xe6\x05\x01\x1aN\ - \x20An\x20isolated\x20set\x20of\x20Cloud\x20Spanner\x20resources\x20on\ - \x20which\x20databases\x20can\x20be\x20hosted.\n\n\x0b\n\x03\x04\x03\x01\ - \x12\x04\xf1\x04\x08\x10\n\r\n\x03\x04\x03\x07\x12\x06\xf2\x04\x02\xf5\ - \x04\x04\n\x0f\n\x05\x04\x03\x07\x9d\x08\x12\x06\xf2\x04\x02\xf5\x04\x04\ - \n>\n\x04\x04\x03\x04\0\x12\x06\xf8\x04\x02\x84\x05\x03\x1a.\x20Indicate\ - s\x20the\x20current\x20state\x20of\x20the\x20instance.\n\n\r\n\x05\x04\ - \x03\x04\0\x01\x12\x04\xf8\x04\x07\x0c\n\x20\n\x06\x04\x03\x04\0\x02\0\ - \x12\x04\xfa\x04\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\x07\x04\ - \x03\x04\0\x02\0\x01\x12\x04\xfa\x04\x04\x15\n\x0f\n\x07\x04\x03\x04\0\ - \x02\0\x02\x12\x04\xfa\x04\x18\x19\n\x94\x01\n\x06\x04\x03\x04\0\x02\x01\ - \x12\x04\xff\x04\x04\x11\x1a\x83\x01\x20The\x20instance\x20is\x20still\ - \x20being\x20created.\x20Resources\x20may\x20not\x20be\n\x20available\ - \x20yet,\x20and\x20operations\x20such\x20as\x20database\x20creation\x20m\ - ay\x20not\n\x20work.\n\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x04\xff\ - \x04\x04\x0c\n\x0f\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x04\xff\x04\x0f\ - \x10\na\n\x06\x04\x03\x04\0\x02\x02\x12\x04\x83\x05\x04\x0e\x1aQ\x20The\ - \x20instance\x20is\x20fully\x20created\x20and\x20ready\x20to\x20do\x20wo\ - rk\x20such\x20as\n\x20creating\x20databases.\n\n\x0f\n\x07\x04\x03\x04\0\ - \x02\x02\x01\x12\x04\x83\x05\x04\t\n\x0f\n\x07\x04\x03\x04\0\x02\x02\x02\ - \x12\x04\x83\x05\x0c\r\n\x96\x02\n\x04\x04\x03\x02\0\x12\x04\x8a\x05\x02\ - ;\x1a\x87\x02\x20Required.\x20A\x20unique\x20identifier\x20for\x20the\ - \x20instance,\x20which\x20cannot\x20be\x20changed\n\x20after\x20the\x20i\ - nstance\x20is\x20created.\x20Values\x20are\x20of\x20the\x20form\n\x20`pr\ - ojects//instances/[a-z][-a-z0-9]*[a-z0-9]`.\x20The\x20final\n\ - \x20segment\x20of\x20the\x20name\x20must\x20be\x20between\x202\x20and\ - \x2064\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\ - \x04\x8a\x05\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x8a\x05\t\r\n\r\ - \n\x05\x04\x03\x02\0\x03\x12\x04\x8a\x05\x10\x11\n\r\n\x05\x04\x03\x02\0\ - \x08\x12\x04\x8a\x05\x12:\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\ - \x04\x8a\x05\x139\n\xc0\x02\n\x04\x04\x03\x02\x01\x12\x06\x90\x05\x02\ - \x95\x05\x04\x1a\xaf\x02\x20Required.\x20The\x20name\x20of\x20the\x20ins\ - tance's\x20configuration.\x20Values\x20are\x20of\x20the\x20form\n\x20`pr\ - ojects//instanceConfigs/`.\x20See\n\x20also\x20[\ - InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig]\x20and\ - \n\x20[ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdm\ - in.ListInstanceConfigs].\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\x90\x05\ - \x02\x08\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\x90\x05\t\x0f\n\r\n\x05\ - \x04\x03\x02\x01\x03\x12\x04\x90\x05\x12\x13\n\x0f\n\x05\x04\x03\x02\x01\ - \x08\x12\x06\x90\x05\x14\x95\x05\x03\n\x10\n\x08\x04\x03\x02\x01\x08\x9c\ - \x08\0\x12\x04\x91\x05\x04*\n\x11\n\x07\x04\x03\x02\x01\x08\x9f\x08\x12\ - \x06\x92\x05\x04\x94\x05\x05\n\x9e\x01\n\x04\x04\x03\x02\x02\x12\x04\x99\ - \x05\x02C\x1a\x8f\x01\x20Required.\x20The\x20descriptive\x20name\x20for\ - \x20this\x20instance\x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20b\ - e\x20unique\x20per\x20project\x20and\x20between\x204\x20and\x2030\x20cha\ - racters\x20in\x20length.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\x99\x05\ - \x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x99\x05\t\x15\n\r\n\x05\ - \x04\x03\x02\x02\x03\x12\x04\x99\x05\x18\x19\n\r\n\x05\x04\x03\x02\x02\ - \x08\x12\x04\x99\x05\x1aB\n\x10\n\x08\x04\x03\x02\x02\x08\x9c\x08\0\x12\ - \x04\x99\x05\x1bA\n\xe0\x03\n\x04\x04\x03\x02\x03\x12\x04\xa7\x05\x02\ - \x17\x1a\xd1\x03\x20The\x20number\x20of\x20nodes\x20allocated\x20to\x20t\ - his\x20instance.\x20At\x20most\x20one\x20of\x20either\n\x20node_count\ - \x20or\x20processing_units\x20should\x20be\x20present\x20in\x20the\x20me\ - ssage.\n\n\x20Users\x20can\x20set\x20the\x20node_count\x20field\x20to\ - \x20specify\x20the\x20target\x20number\x20of\x20nodes\n\x20allocated\x20\ - to\x20the\x20instance.\n\n\x20This\x20may\x20be\x20zero\x20in\x20API\x20\ - responses\x20for\x20instances\x20that\x20are\x20not\x20yet\x20in\x20stat\ - e\n\x20`READY`.\n\n\x20See\x20[the\n\x20documentation](https://cloud.goo\ - gle.com/spanner/docs/compute-capacity)\n\x20for\x20more\x20information\ - \x20about\x20nodes\x20and\x20processing\x20units.\n\n\r\n\x05\x04\x03\ - \x02\x03\x05\x12\x04\xa7\x05\x02\x07\n\r\n\x05\x04\x03\x02\x03\x01\x12\ - \x04\xa7\x05\x08\x12\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xa7\x05\x15\ - \x16\n\xf5\x03\n\x04\x04\x03\x02\x04\x12\x04\xb5\x05\x02\x1d\x1a\xe6\x03\ - \x20The\x20number\x20of\x20processing\x20units\x20allocated\x20to\x20thi\ - s\x20instance.\x20At\x20most\x20one\x20of\n\x20processing_units\x20or\ - \x20node_count\x20should\x20be\x20present\x20in\x20the\x20message.\n\n\ - \x20Users\x20can\x20set\x20the\x20processing_units\x20field\x20to\x20spe\ - cify\x20the\x20target\x20number\x20of\n\x20processing\x20units\x20alloca\ - ted\x20to\x20the\x20instance.\n\n\x20This\x20may\x20be\x20zero\x20in\x20\ - API\x20responses\x20for\x20instances\x20that\x20are\x20not\x20yet\x20in\ - \x20state\n\x20`READY`.\n\n\x20See\x20[the\n\x20documentation](https://c\ - loud.google.com/spanner/docs/compute-capacity)\n\x20for\x20more\x20infor\ - mation\x20about\x20nodes\x20and\x20processing\x20units.\n\n\r\n\x05\x04\ - \x03\x02\x04\x05\x12\x04\xb5\x05\x02\x07\n\r\n\x05\x04\x03\x02\x04\x01\ - \x12\x04\xb5\x05\x08\x18\n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\xb5\x05\ - \x1b\x1c\n\x8e\x02\n\x04\x04\x03\x02\x05\x12\x06\xbb\x05\x02\xbc\x05/\ - \x1a\xfd\x01\x20Optional.\x20The\x20autoscaling\x20configuration.\x20Aut\ - oscaling\x20is\x20enabled\x20if\x20this\n\x20field\x20is\x20set.\x20When\ - \x20autoscaling\x20is\x20enabled,\x20node_count\x20and\x20processing_uni\ - ts\n\x20are\x20treated\x20as\x20OUTPUT_ONLY\x20fields\x20and\x20reflect\ - \x20the\x20current\x20compute\x20capacity\n\x20allocated\x20to\x20the\ - \x20instance.\n\n\r\n\x05\x04\x03\x02\x05\x06\x12\x04\xbb\x05\x02\x13\n\ - \r\n\x05\x04\x03\x02\x05\x01\x12\x04\xbb\x05\x14&\n\r\n\x05\x04\x03\x02\ - \x05\x03\x12\x04\xbb\x05)+\n\r\n\x05\x04\x03\x02\x05\x08\x12\x04\xbc\x05\ - \x06.\n\x10\n\x08\x04\x03\x02\x05\x08\x9c\x08\0\x12\x04\xbc\x05\x07-\n\ - \xd2\x02\n\x04\x04\x03\x02\x06\x12\x04\xc3\x05\x02>\x1a\xc3\x02\x20Outpu\ - t\x20only.\x20The\x20current\x20instance\x20state.\x20For\n\x20[CreateIn\ - stance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],\ - \n\x20the\x20state\x20must\x20be\x20either\x20omitted\x20or\x20set\x20to\ - \x20`CREATING`.\x20For\n\x20[UpdateInstance][google.spanner.admin.instan\ - ce.v1.InstanceAdmin.UpdateInstance],\n\x20the\x20state\x20must\x20be\x20\ - either\x20omitted\x20or\x20set\x20to\x20`READY`.\n\n\r\n\x05\x04\x03\x02\ - \x06\x06\x12\x04\xc3\x05\x02\x07\n\r\n\x05\x04\x03\x02\x06\x01\x12\x04\ - \xc3\x05\x08\r\n\r\n\x05\x04\x03\x02\x06\x03\x12\x04\xc3\x05\x10\x11\n\r\ - \n\x05\x04\x03\x02\x06\x08\x12\x04\xc3\x05\x12=\n\x10\n\x08\x04\x03\x02\ - \x06\x08\x9c\x08\0\x12\x04\xc3\x05\x13<\n\xd1\t\n\x04\x04\x03\x02\x07\ - \x12\x04\xda\x05\x02!\x1a\xc2\t\x20Cloud\x20Labels\x20are\x20a\x20flexib\ - le\x20and\x20lightweight\x20mechanism\x20for\x20organizing\x20cloud\n\ - \x20resources\x20into\x20groups\x20that\x20reflect\x20a\x20customer's\ - \x20organizational\x20needs\x20and\n\x20deployment\x20strategies.\x20Clo\ - ud\x20Labels\x20can\x20be\x20used\x20to\x20filter\x20collections\x20of\n\ - \x20resources.\x20They\x20can\x20be\x20used\x20to\x20control\x20how\x20r\ - esource\x20metrics\x20are\x20aggregated.\n\x20And\x20they\x20can\x20be\ - \x20used\x20as\x20arguments\x20to\x20policy\x20management\x20rules\x20(e\ - .g.\x20route,\n\x20firewall,\x20load\x20balancing,\x20etc.).\n\n\x20\x20\ - *\x20Label\x20keys\x20must\x20be\x20between\x201\x20and\x2063\x20charact\ - ers\x20long\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20the\x20foll\ - owing\x20regular\x20expression:\x20`[a-z][a-z0-9_-]{0,62}`.\n\x20\x20*\ - \x20Label\x20values\x20must\x20be\x20between\x200\x20and\x2063\x20charac\ - ters\x20long\x20and\x20must\x20conform\n\x20\x20\x20\x20to\x20the\x20reg\ - ular\x20expression\x20`[a-z0-9_-]{0,63}`.\n\x20\x20*\x20No\x20more\x20th\ - an\x2064\x20labels\x20can\x20be\x20associated\x20with\x20a\x20given\x20r\ - esource.\n\n\x20See\x20https://goo.gl/xmQnxf\x20for\x20more\x20informati\ - on\x20on\x20and\x20examples\x20of\x20labels.\n\n\x20If\x20you\x20plan\ - \x20to\x20use\x20labels\x20in\x20your\x20own\x20code,\x20please\x20note\ - \x20that\x20additional\n\x20characters\x20may\x20be\x20allowed\x20in\x20\ - the\x20future.\x20And\x20so\x20you\x20are\x20advised\x20to\x20use\x20an\ - \n\x20internal\x20label\x20representation,\x20such\x20as\x20JSON,\x20whi\ - ch\x20doesn't\x20rely\x20upon\n\x20specific\x20characters\x20being\x20di\ - sallowed.\x20\x20For\x20example,\x20representing\x20labels\n\x20as\x20th\ - e\x20string:\x20\x20name\x20+\x20\"_\"\x20+\x20value\x20\x20would\x20pro\ - ve\x20problematic\x20if\x20we\x20were\x20to\n\x20allow\x20\"_\"\x20in\ - \x20a\x20future\x20release.\n\n\r\n\x05\x04\x03\x02\x07\x06\x12\x04\xda\ - \x05\x02\x15\n\r\n\x05\x04\x03\x02\x07\x01\x12\x04\xda\x05\x16\x1c\n\r\n\ - \x05\x04\x03\x02\x07\x03\x12\x04\xda\x05\x1f\x20\n8\n\x04\x04\x03\x02\ - \x08\x12\x04\xdd\x05\x02$\x1a*\x20Deprecated.\x20This\x20field\x20is\x20\ - not\x20populated.\n\n\r\n\x05\x04\x03\x02\x08\x04\x12\x04\xdd\x05\x02\n\ - \n\r\n\x05\x04\x03\x02\x08\x05\x12\x04\xdd\x05\x0b\x11\n\r\n\x05\x04\x03\ - \x02\x08\x01\x12\x04\xdd\x05\x12\x1f\n\r\n\x05\x04\x03\x02\x08\x03\x12\ - \x04\xdd\x05\"#\nJ\n\x04\x04\x03\x02\t\x12\x06\xe0\x05\x02\xe1\x052\x1a:\ - \x20Output\x20only.\x20The\x20time\x20at\x20which\x20the\x20instance\x20\ - was\x20created.\n\n\r\n\x05\x04\x03\x02\t\x06\x12\x04\xe0\x05\x02\x1b\n\ - \r\n\x05\x04\x03\x02\t\x01\x12\x04\xe0\x05\x1c'\n\r\n\x05\x04\x03\x02\t\ - \x03\x12\x04\xe0\x05*,\n\r\n\x05\x04\x03\x02\t\x08\x12\x04\xe1\x05\x061\ - \n\x10\n\x08\x04\x03\x02\t\x08\x9c\x08\0\x12\x04\xe1\x05\x070\nX\n\x04\ - \x04\x03\x02\n\x12\x06\xe4\x05\x02\xe5\x052\x1aH\x20Output\x20only.\x20T\ - he\x20time\x20at\x20which\x20the\x20instance\x20was\x20most\x20recently\ - \x20updated.\n\n\r\n\x05\x04\x03\x02\n\x06\x12\x04\xe4\x05\x02\x1b\n\r\n\ - \x05\x04\x03\x02\n\x01\x12\x04\xe4\x05\x1c'\n\r\n\x05\x04\x03\x02\n\x03\ - \x12\x04\xe4\x05*,\n\r\n\x05\x04\x03\x02\n\x08\x12\x04\xe5\x05\x061\n\ - \x10\n\x08\x04\x03\x02\n\x08\x9c\x08\0\x12\x04\xe5\x05\x070\n{\n\x02\x04\ - \x04\x12\x06\xea\x05\0\xfe\x05\x01\x1am\x20The\x20request\x20for\n\x20[L\ - istInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListI\ - nstanceConfigs].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xea\x05\x08\"\n\xa7\ - \x01\n\x04\x04\x04\x02\0\x12\x06\xee\x05\x02\xf3\x05\x04\x1a\x96\x01\x20\ - Required.\x20The\x20name\x20of\x20the\x20project\x20for\x20which\x20a\ - \x20list\x20of\x20supported\x20instance\n\x20configurations\x20is\x20req\ - uested.\x20Values\x20are\x20of\x20the\x20form\n\x20`projects/`.\ - \n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xee\x05\x02\x08\n\r\n\x05\x04\x04\ - \x02\0\x01\x12\x04\xee\x05\t\x0f\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xee\ - \x05\x12\x13\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\xee\x05\x14\xf3\x05\ - \x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\xef\x05\x04*\n\x11\ - \n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\xf0\x05\x04\xf2\x05\x05\n\x95\ - \x01\n\x04\x04\x04\x02\x01\x12\x04\xf7\x05\x02\x16\x1a\x86\x01\x20Number\ - \x20of\x20instance\x20configurations\x20to\x20be\x20returned\x20in\x20th\ - e\x20response.\x20If\x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20s\ - erver's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x04\x02\ - \x01\x05\x12\x04\xf7\x05\x02\x07\n\r\n\x05\x04\x04\x02\x01\x01\x12\x04\ - \xf7\x05\x08\x11\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xf7\x05\x14\x15\n\ - \x8c\x02\n\x04\x04\x04\x02\x02\x12\x04\xfd\x05\x02\x18\x1a\xfd\x01\x20If\ - \x20non-empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page\ - _token][google.spanner.admin.instance.v1.ListInstanceConfigsResponse.nex\ - t_page_token]\n\x20from\x20a\x20previous\n\x20[ListInstanceConfigsRespon\ - se][google.spanner.admin.instance.v1.ListInstanceConfigsResponse].\n\n\r\ - \n\x05\x04\x04\x02\x02\x05\x12\x04\xfd\x05\x02\x08\n\r\n\x05\x04\x04\x02\ - \x02\x01\x12\x04\xfd\x05\t\x13\n\r\n\x05\x04\x04\x02\x02\x03\x12\x04\xfd\ - \x05\x16\x17\n|\n\x02\x04\x05\x12\x06\x82\x06\0\x8a\x06\x01\x1an\x20The\ - \x20response\x20for\n\x20[ListInstanceConfigs][google.spanner.admin.inst\ - ance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\n\x03\x04\x05\x01\ - \x12\x04\x82\x06\x08#\n>\n\x04\x04\x05\x02\0\x12\x04\x84\x06\x02/\x1a0\ - \x20The\x20list\x20of\x20requested\x20instance\x20configurations.\n\n\r\ - \n\x05\x04\x05\x02\0\x04\x12\x04\x84\x06\x02\n\n\r\n\x05\x04\x05\x02\0\ - \x06\x12\x04\x84\x06\x0b\x19\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x84\x06\ - \x1a*\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x84\x06-.\n\xd6\x01\n\x04\x04\ - \x05\x02\x01\x12\x04\x89\x06\x02\x1d\x1a\xc7\x01\x20`next_page_token`\ - \x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[ListInstanceConfigs\ - ][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs]\n\ - \x20call\x20to\x20fetch\x20more\x20of\x20the\x20matching\x20instance\x20\ - configurations.\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\x89\x06\x02\x08\ - \n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x89\x06\t\x18\n\r\n\x05\x04\x05\ - \x02\x01\x03\x12\x04\x89\x06\x1b\x1c\n~\n\x02\x04\x06\x12\x06\x8e\x06\0\ - \x97\x06\x01\x1ap\x20The\x20request\x20for\n\x20[GetInstanceConfigReques\ - t][google.spanner.admin.instance.v1.InstanceAdmin.GetInstanceConfig].\n\ - \n\x0b\n\x03\x04\x06\x01\x12\x04\x8e\x06\x08\x20\n\x95\x01\n\x04\x04\x06\ - \x02\0\x12\x06\x91\x06\x02\x96\x06\x04\x1a\x84\x01\x20Required.\x20The\ - \x20name\x20of\x20the\x20requested\x20instance\x20configuration.\x20Valu\ - es\x20are\x20of\n\x20the\x20form\x20`projects//instanceConfigs/\ - `.\n\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\x91\x06\x02\x08\n\r\n\ - \x05\x04\x06\x02\0\x01\x12\x04\x91\x06\t\r\n\r\n\x05\x04\x06\x02\0\x03\ - \x12\x04\x91\x06\x10\x11\n\x0f\n\x05\x04\x06\x02\0\x08\x12\x06\x91\x06\ - \x12\x96\x06\x03\n\x10\n\x08\x04\x06\x02\0\x08\x9c\x08\0\x12\x04\x92\x06\ - \x04*\n\x11\n\x07\x04\x06\x02\0\x08\x9f\x08\x12\x06\x93\x06\x04\x95\x06\ - \x05\nj\n\x02\x04\x07\x12\x06\x9b\x06\0\xb5\x06\x01\x1a\\\x20The\x20requ\ - est\x20for\n\x20[CreateInstanceConfigRequest][InstanceAdmin.CreateInstan\ - ceConfigRequest].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x9b\x06\x08#\n\x89\ - \x01\n\x04\x04\x07\x02\0\x12\x06\x9e\x06\x02\xa3\x06\x04\x1ay\x20Require\ - d.\x20The\x20name\x20of\x20the\x20project\x20in\x20which\x20to\x20create\ - \x20the\x20instance\x20config.\n\x20Values\x20are\x20of\x20the\x20form\ - \x20`projects/`.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\x04\x9e\x06\ - \x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\x9e\x06\t\x0f\n\r\n\x05\x04\ - \x07\x02\0\x03\x12\x04\x9e\x06\x12\x13\n\x0f\n\x05\x04\x07\x02\0\x08\x12\ - \x06\x9e\x06\x14\xa3\x06\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\ - \x04\x9f\x06\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\x06\xa0\x06\ - \x04\xa2\x06\x05\n\x95\x02\n\x04\x04\x07\x02\x01\x12\x04\xa9\x06\x02I\ - \x1a\x86\x02\x20Required.\x20The\x20ID\x20of\x20the\x20instance\x20confi\ - g\x20to\x20create.\x20\x20Valid\x20identifiers\x20are\n\x20of\x20the\x20\ - form\x20`custom-[-a-z0-9]*[a-z0-9]`\x20and\x20must\x20be\x20between\x202\ - \x20and\x2064\n\x20characters\x20in\x20length.\x20The\x20`custom-`\x20pr\ - efix\x20is\x20required\x20to\x20avoid\x20name\n\x20conflicts\x20with\x20\ - Google\x20managed\x20configurations.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\ - \x04\xa9\x06\x02\x08\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\xa9\x06\t\x1b\ - \n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\xa9\x06\x1e\x1f\n\r\n\x05\x04\x07\ - \x02\x01\x08\x12\x04\xa9\x06\x20H\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\ - \x08\0\x12\x04\xa9\x06!G\n\xb5\x02\n\x04\x04\x07\x02\x02\x12\x04\xb0\x06\ - \x02N\x1a\xa6\x02\x20Required.\x20The\x20InstanceConfig\x20proto\x20of\ - \x20the\x20configuration\x20to\x20create.\n\x20instance_config.name\x20m\ - ust\x20be\n\x20`/instanceConfigs/`.\n\x20ins\ - tance_config.base_config\x20must\x20be\x20a\x20Google\x20managed\x20conf\ - iguration\x20name,\n\x20e.g.\x20/instanceConfigs/us-east1,\x20/instanceConfigs/nam3.\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xb0\ - \x06\x02\x10\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xb0\x06\x11\x20\n\r\n\ - \x05\x04\x07\x02\x02\x03\x12\x04\xb0\x06#$\n\r\n\x05\x04\x07\x02\x02\x08\ - \x12\x04\xb0\x06%M\n\x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\xb0\ - \x06&L\nk\n\x04\x04\x07\x02\x03\x12\x04\xb4\x06\x02\x19\x1a]\x20An\x20op\ - tion\x20to\x20validate,\x20but\x20not\x20actually\x20execute,\x20a\x20re\ - quest,\n\x20and\x20provide\x20the\x20same\x20response.\n\n\r\n\x05\x04\ - \x07\x02\x03\x05\x12\x04\xb4\x06\x02\x06\n\r\n\x05\x04\x07\x02\x03\x01\ - \x12\x04\xb4\x06\x07\x14\n\r\n\x05\x04\x07\x02\x03\x03\x12\x04\xb4\x06\ - \x17\x18\nj\n\x02\x04\x08\x12\x06\xb9\x06\0\xce\x06\x01\x1a\\\x20The\x20\ - request\x20for\n\x20[UpdateInstanceConfigRequest][InstanceAdmin.UpdateIn\ - stanceConfigRequest].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xb9\x06\x08#\n\ - \x82\x03\n\x04\x04\x08\x02\0\x12\x04\xc0\x06\x02N\x1a\xf3\x02\x20Require\ - d.\x20The\x20user\x20instance\x20config\x20to\x20update,\x20which\x20mus\ - t\x20always\x20include\x20the\n\x20instance\x20config\x20name.\x20Otherw\ - ise,\x20only\x20fields\x20mentioned\x20in\n\x20[update_mask][google.span\ - ner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask]\n\x20need\ - \x20be\x20included.\x20To\x20prevent\x20conflicts\x20of\x20concurrent\ - \x20updates,\n\x20[etag][google.spanner.admin.instance.v1.InstanceConfig\ - .reconciling]\x20can\n\x20be\x20used.\n\n\r\n\x05\x04\x08\x02\0\x06\x12\ - \x04\xc0\x06\x02\x10\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xc0\x06\x11\x20\ - \n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xc0\x06#$\n\r\n\x05\x04\x08\x02\0\ - \x08\x12\x04\xc0\x06%M\n\x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\ - \xc0\x06&L\n\x9a\x03\n\x04\x04\x08\x02\x01\x12\x06\xc8\x06\x02\xc9\x06/\ - \x1a\x89\x03\x20Required.\x20A\x20mask\x20specifying\x20which\x20fields\ - \x20in\n\x20[InstanceConfig][google.spanner.admin.instance.v1.InstanceCo\ - nfig]\x20should\x20be\n\x20updated.\x20The\x20field\x20mask\x20must\x20a\ - lways\x20be\x20specified;\x20this\x20prevents\x20any\x20future\n\x20fiel\ - ds\x20in\x20[InstanceConfig][google.spanner.admin.instance.v1.InstanceCo\ - nfig]\n\x20from\x20being\x20erased\x20accidentally\x20by\x20clients\x20t\ - hat\x20do\x20not\x20know\x20about\x20them.\x20Only\n\x20display_name\x20\ - and\x20labels\x20can\x20be\x20updated.\n\n\r\n\x05\x04\x08\x02\x01\x06\ - \x12\x04\xc8\x06\x02\x1b\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xc8\x06\ - \x1c'\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xc8\x06*+\n\r\n\x05\x04\x08\ - \x02\x01\x08\x12\x04\xc9\x06\x06.\n\x10\n\x08\x04\x08\x02\x01\x08\x9c\ - \x08\0\x12\x04\xc9\x06\x07-\nk\n\x04\x04\x08\x02\x02\x12\x04\xcd\x06\x02\ - \x19\x1a]\x20An\x20option\x20to\x20validate,\x20but\x20not\x20actually\ - \x20execute,\x20a\x20request,\n\x20and\x20provide\x20the\x20same\x20resp\ - onse.\n\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xcd\x06\x02\x06\n\r\n\x05\ - \x04\x08\x02\x02\x01\x12\x04\xcd\x06\x07\x14\n\r\n\x05\x04\x08\x02\x02\ - \x03\x12\x04\xcd\x06\x17\x18\nj\n\x02\x04\t\x12\x06\xd2\x06\0\xe9\x06\ - \x01\x1a\\\x20The\x20request\x20for\n\x20[DeleteInstanceConfigRequest][I\ - nstanceAdmin.DeleteInstanceConfigRequest].\n\n\x0b\n\x03\x04\t\x01\x12\ - \x04\xd2\x06\x08#\n\xa2\x01\n\x04\x04\t\x02\0\x12\x06\xd6\x06\x02\xdb\ - \x06\x04\x1a\x91\x01\x20Required.\x20The\x20name\x20of\x20the\x20instanc\ - e\x20configuration\x20to\x20be\x20deleted.\n\x20Values\x20are\x20of\x20t\ - he\x20form\n\x20`projects//instanceConfigs/`\n\ - \n\r\n\x05\x04\t\x02\0\x05\x12\x04\xd6\x06\x02\x08\n\r\n\x05\x04\t\x02\0\ - \x01\x12\x04\xd6\x06\t\r\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xd6\x06\x10\ - \x11\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xd6\x06\x12\xdb\x06\x03\n\x10\n\ - \x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xd7\x06\x04*\n\x11\n\x07\x04\t\ - \x02\0\x08\x9f\x08\x12\x06\xd8\x06\x04\xda\x06\x05\n\x97\x03\n\x04\x04\t\ - \x02\x01\x12\x04\xe4\x06\x02\x12\x1a\x88\x03\x20Used\x20for\x20optimisti\ - c\x20concurrency\x20control\x20as\x20a\x20way\x20to\x20help\x20prevent\n\ - \x20simultaneous\x20deletes\x20of\x20an\x20instance\x20config\x20from\ - \x20overwriting\x20each\n\x20other.\x20If\x20not\x20empty,\x20the\x20API\ - \n\x20only\x20deletes\x20the\x20instance\x20config\x20when\x20the\x20eta\ - g\x20provided\x20matches\x20the\x20current\n\x20status\x20of\x20the\x20r\ - equested\x20instance\x20config.\x20Otherwise,\x20deletes\x20the\x20insta\ - nce\n\x20config\x20without\x20checking\x20the\x20current\x20status\x20of\ - \x20the\x20requested\x20instance\n\x20config.\n\n\r\n\x05\x04\t\x02\x01\ - \x05\x12\x04\xe4\x06\x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xe4\x06\ - \t\r\n\r\n\x05\x04\t\x02\x01\x03\x12\x04\xe4\x06\x10\x11\nk\n\x04\x04\t\ - \x02\x02\x12\x04\xe8\x06\x02\x19\x1a]\x20An\x20option\x20to\x20validate,\ - \x20but\x20not\x20actually\x20execute,\x20a\x20request,\n\x20and\x20prov\ - ide\x20the\x20same\x20response.\n\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\ - \xe8\x06\x02\x06\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xe8\x06\x07\x14\n\r\ - \n\x05\x04\t\x02\x02\x03\x12\x04\xe8\x06\x17\x18\n\x8d\x01\n\x02\x04\n\ - \x12\x06\xed\x06\0\xae\x07\x01\x1a\x7f\x20The\x20request\x20for\n\x20[Li\ - stInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdm\ - in.ListInstanceConfigOperations].\n\n\x0b\n\x03\x04\n\x01\x12\x04\xed\ - \x06\x08+\nx\n\x04\x04\n\x02\0\x12\x06\xf0\x06\x02\xf5\x06\x04\x1ah\x20R\ - equired.\x20The\x20project\x20of\x20the\x20instance\x20config\x20operati\ - ons.\n\x20Values\x20are\x20of\x20the\x20form\x20`projects/`.\n\ - \n\r\n\x05\x04\n\x02\0\x05\x12\x04\xf0\x06\x02\x08\n\r\n\x05\x04\n\x02\0\ - \x01\x12\x04\xf0\x06\t\x0f\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xf0\x06\x12\ - \x13\n\x0f\n\x05\x04\n\x02\0\x08\x12\x06\xf0\x06\x14\xf5\x06\x03\n\x10\n\ - \x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xf1\x06\x04*\n\x11\n\x07\x04\n\ - \x02\0\x08\x9f\x08\x12\x06\xf2\x06\x04\xf4\x06\x05\n\x9f\x10\n\x04\x04\n\ - \x02\x01\x12\x04\xa2\x07\x02\x14\x1a\x90\x10\x20An\x20expression\x20that\ - \x20filters\x20the\x20list\x20of\x20returned\x20operations.\n\n\x20A\x20\ - filter\x20expression\x20consists\x20of\x20a\x20field\x20name,\x20a\n\x20\ - comparison\x20operator,\x20and\x20a\x20value\x20for\x20filtering.\n\x20T\ - he\x20value\x20must\x20be\x20a\x20string,\x20a\x20number,\x20or\x20a\x20\ - boolean.\x20The\x20comparison\x20operator\n\x20must\x20be\x20one\x20of:\ - \x20`<`,\x20`>`,\x20`<=`,\x20`>=`,\x20`!=`,\x20`=`,\x20or\x20`:`.\n\x20C\ - olon\x20`:`\x20is\x20the\x20contains\x20operator.\x20Filter\x20rules\x20\ - are\x20not\x20case\x20sensitive.\n\n\x20The\x20following\x20fields\x20in\ - \x20the\x20[Operation][google.longrunning.Operation]\n\x20are\x20eligibl\ - e\x20for\x20filtering:\n\n\x20\x20\x20*\x20`name`\x20-\x20The\x20name\ - \x20of\x20the\x20long-running\x20operation\n\x20\x20\x20*\x20`done`\x20-\ - \x20False\x20if\x20the\x20operation\x20is\x20in\x20progress,\x20else\x20\ - true.\n\x20\x20\x20*\x20`metadata.@type`\x20-\x20the\x20type\x20of\x20me\ - tadata.\x20For\x20example,\x20the\x20type\x20string\n\x20\x20\x20\x20\ - \x20\x20for\n\x20\x20\x20\x20\x20\x20[CreateInstanceConfigMetadata][goog\ - le.spanner.admin.instance.v1.CreateInstanceConfigMetadata]\n\x20\x20\x20\ - \x20\x20\x20is\n\x20\x20\x20\x20\x20\x20`type.googleapis.com/google.span\ - ner.admin.instance.v1.CreateInstanceConfigMetadata`.\n\x20\x20\x20*\x20`\ - metadata.`\x20-\x20any\x20field\x20in\x20metadata.value.\n\ - \x20\x20\x20\x20\x20\x20`metadata.@type`\x20must\x20be\x20specified\x20f\ - irst,\x20if\x20filtering\x20on\x20metadata\n\x20\x20\x20\x20\x20\x20fiel\ - ds.\n\x20\x20\x20*\x20`error`\x20-\x20Error\x20associated\x20with\x20the\ - \x20long-running\x20operation.\n\x20\x20\x20*\x20`response.@type`\x20-\ - \x20the\x20type\x20of\x20response.\n\x20\x20\x20*\x20`response.`\x20-\x20any\x20field\x20in\x20response.value.\n\n\x20You\x20can\x20\ - combine\x20multiple\x20expressions\x20by\x20enclosing\x20each\x20express\ - ion\x20in\n\x20parentheses.\x20By\x20default,\x20expressions\x20are\x20c\ - ombined\x20with\x20AND\x20logic.\x20However,\n\x20you\x20can\x20specify\ - \x20AND,\x20OR,\x20and\x20NOT\x20logic\x20explicitly.\n\n\x20Here\x20are\ - \x20a\x20few\x20examples:\n\n\x20\x20\x20*\x20`done:true`\x20-\x20The\ - \x20operation\x20is\x20complete.\n\x20\x20\x20*\x20`(metadata.@type=`\ - \x20\\\n\x20\x20\x20\x20\x20`type.googleapis.com/google.spanner.admin.in\ - stance.v1.CreateInstanceConfigMetadata)\n\x20\x20\x20\x20\x20AND`\x20\\\ - \n\x20\x20\x20\x20\x20`(metadata.instance_config.name:custom-config)\x20\ - AND`\x20\\\n\x20\x20\x20\x20\x20`(metadata.progress.start_time\x20<\x20\ - \\\"2021-03-28T14:50:00Z\\\")\x20AND`\x20\\\n\x20\x20\x20\x20\x20`(error\ - :*)`\x20-\x20Return\x20operations\x20where:\n\x20\x20\x20\x20\x20*\x20Th\ - e\x20operation's\x20metadata\x20type\x20is\n\x20\x20\x20\x20\x20[CreateI\ - nstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceCo\ - nfigMetadata].\n\x20\x20\x20\x20\x20*\x20The\x20instance\x20config\x20na\ - me\x20contains\x20\"custom-config\".\n\x20\x20\x20\x20\x20*\x20The\x20op\ - eration\x20started\x20before\x202021-03-28T14:50:00Z.\n\x20\x20\x20\x20\ - \x20*\x20The\x20operation\x20resulted\x20in\x20an\x20error.\n\n\r\n\x05\ - \x04\n\x02\x01\x05\x12\x04\xa2\x07\x02\x08\n\r\n\x05\x04\n\x02\x01\x01\ - \x12\x04\xa2\x07\t\x0f\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xa2\x07\x12\ - \x13\n\x87\x01\n\x04\x04\n\x02\x02\x12\x04\xa6\x07\x02\x16\x1ay\x20Numbe\ - r\x20of\x20operations\x20to\x20be\x20returned\x20in\x20the\x20response.\ - \x20If\x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20server's\x20max\ - imum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\n\x02\x02\x05\x12\x04\ - \xa6\x07\x02\x07\n\r\n\x05\x04\n\x02\x02\x01\x12\x04\xa6\x07\x08\x11\n\r\ - \n\x05\x04\n\x02\x02\x03\x12\x04\xa6\x07\x14\x15\n\xd8\x02\n\x04\x04\n\ - \x02\x03\x12\x04\xad\x07\x02\x18\x1a\xc9\x02\x20If\x20non-empty,\x20`pag\ + \x20appears\x20in\x20UIs.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xbb\ + \x02\x02\x08\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xbb\x02\t\x15\n\r\n\ + \x05\x04\x01\x02\x01\x03\x12\x04\xbb\x02\x18\x19\ns\n\x04\x04\x01\x02\ + \x02\x12\x04\xbf\x02\x02$\x1ae\x20The\x20geographic\x20placement\x20of\ + \x20nodes\x20in\x20this\x20instance\x20configuration\x20and\x20their\n\ + \x20replication\x20properties.\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04\ + \xbf\x02\x02\n\n\r\n\x05\x04\x01\x02\x02\x06\x12\x04\xbf\x02\x0b\x16\n\r\ + \n\x05\x04\x01\x02\x02\x01\x12\x04\xbf\x02\x17\x1f\n\r\n\x05\x04\x01\x02\ + \x02\x03\x12\x04\xbf\x02\"#\n\\\n\x02\x04\x02\x12\x06\xc3\x02\0\x99\x03\ + \x01\x1aN\x20An\x20isolated\x20set\x20of\x20Cloud\x20Spanner\x20resource\ + s\x20on\x20which\x20databases\x20can\x20be\x20hosted.\n\n\x0b\n\x03\x04\ + \x02\x01\x12\x04\xc3\x02\x08\x10\n\r\n\x03\x04\x02\x07\x12\x06\xc4\x02\ + \x02\xc7\x02\x04\n\x0f\n\x05\x04\x02\x07\x9d\x08\x12\x06\xc4\x02\x02\xc7\ + \x02\x04\n>\n\x04\x04\x02\x04\0\x12\x06\xca\x02\x02\xd6\x02\x03\x1a.\x20\ + Indicates\x20the\x20current\x20state\x20of\x20the\x20instance.\n\n\r\n\ + \x05\x04\x02\x04\0\x01\x12\x04\xca\x02\x07\x0c\n\x20\n\x06\x04\x02\x04\0\ + \x02\0\x12\x04\xcc\x02\x04\x1a\x1a\x10\x20Not\x20specified.\n\n\x0f\n\ + \x07\x04\x02\x04\0\x02\0\x01\x12\x04\xcc\x02\x04\x15\n\x0f\n\x07\x04\x02\ + \x04\0\x02\0\x02\x12\x04\xcc\x02\x18\x19\n\x94\x01\n\x06\x04\x02\x04\0\ + \x02\x01\x12\x04\xd1\x02\x04\x11\x1a\x83\x01\x20The\x20instance\x20is\ + \x20still\x20being\x20created.\x20Resources\x20may\x20not\x20be\n\x20ava\ + ilable\x20yet,\x20and\x20operations\x20such\x20as\x20database\x20creatio\ + n\x20may\x20not\n\x20work.\n\n\x0f\n\x07\x04\x02\x04\0\x02\x01\x01\x12\ + \x04\xd1\x02\x04\x0c\n\x0f\n\x07\x04\x02\x04\0\x02\x01\x02\x12\x04\xd1\ + \x02\x0f\x10\na\n\x06\x04\x02\x04\0\x02\x02\x12\x04\xd5\x02\x04\x0e\x1aQ\ + \x20The\x20instance\x20is\x20fully\x20created\x20and\x20ready\x20to\x20d\ + o\x20work\x20such\x20as\n\x20creating\x20databases.\n\n\x0f\n\x07\x04\ + \x02\x04\0\x02\x02\x01\x12\x04\xd5\x02\x04\t\n\x0f\n\x07\x04\x02\x04\0\ + \x02\x02\x02\x12\x04\xd5\x02\x0c\r\n\x96\x02\n\x04\x04\x02\x02\0\x12\x04\ + \xdc\x02\x02\x12\x1a\x87\x02\x20Required.\x20A\x20unique\x20identifier\ + \x20for\x20the\x20instance,\x20which\x20cannot\x20be\x20changed\n\x20aft\ + er\x20the\x20instance\x20is\x20created.\x20Values\x20are\x20of\x20the\ + \x20form\n\x20`projects//instances/[a-z][-a-z0-9]*[a-z0-9]`.\ + \x20The\x20final\n\x20segment\x20of\x20the\x20name\x20must\x20be\x20betw\ + een\x202\x20and\x2064\x20characters\x20in\x20length.\n\n\r\n\x05\x04\x02\ + \x02\0\x05\x12\x04\xdc\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\ + \xdc\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xdc\x02\x10\x11\n\xc0\ + \x02\n\x04\x04\x02\x02\x01\x12\x06\xe2\x02\x02\xe4\x02\x05\x1a\xaf\x02\ + \x20Required.\x20The\x20name\x20of\x20the\x20instance's\x20configuration\ + .\x20Values\x20are\x20of\x20the\x20form\n\x20`projects//instanc\ + eConfigs/`.\x20See\n\x20also\x20[InstanceConfig][google.s\ + panner.admin.instance.v1.InstanceConfig]\x20and\n\x20[ListInstanceConfig\ + s][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\ + \n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xe2\x02\x02\x08\n\r\n\x05\x04\ + \x02\x02\x01\x01\x12\x04\xe2\x02\t\x0f\n\r\n\x05\x04\x02\x02\x01\x03\x12\ + \x04\xe2\x02\x12\x13\n\x0f\n\x05\x04\x02\x02\x01\x08\x12\x06\xe2\x02\x14\ + \xe4\x02\x04\n\x11\n\x07\x04\x02\x02\x01\x08\x9f\x08\x12\x06\xe2\x02\x15\ + \xe4\x02\x03\n\x9e\x01\n\x04\x04\x02\x02\x02\x12\x04\xe8\x02\x02\x1a\x1a\ + \x8f\x01\x20Required.\x20The\x20descriptive\x20name\x20for\x20this\x20in\ + stance\x20as\x20it\x20appears\x20in\x20UIs.\n\x20Must\x20be\x20unique\ + \x20per\x20project\x20and\x20between\x204\x20and\x2030\x20characters\x20\ + in\x20length.\n\n\r\n\x05\x04\x02\x02\x02\x05\x12\x04\xe8\x02\x02\x08\n\ + \r\n\x05\x04\x02\x02\x02\x01\x12\x04\xe8\x02\t\x15\n\r\n\x05\x04\x02\x02\ + \x02\x03\x12\x04\xe8\x02\x18\x19\n\x98\x02\n\x04\x04\x02\x02\x03\x12\x04\ + \xf0\x02\x02\x17\x1a\x89\x02\x20Required.\x20The\x20number\x20of\x20node\ + s\x20allocated\x20to\x20this\x20instance.\x20This\x20may\x20be\x20zero\n\ + \x20in\x20API\x20responses\x20for\x20instances\x20that\x20are\x20not\x20\ + yet\x20in\x20state\x20`READY`.\n\n\x20See\x20[the\n\x20documentation](ht\ + tps://cloud.google.com/spanner/docs/instances#node_count)\n\x20for\x20mo\ + re\x20information\x20about\x20nodes.\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\ + \x04\xf0\x02\x02\x07\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xf0\x02\x08\ + \x12\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xf0\x02\x15\x16\n\xd2\x02\n\ + \x04\x04\x02\x02\x04\x12\x04\xf7\x02\x02\x12\x1a\xc3\x02\x20Output\x20on\ + ly.\x20The\x20current\x20instance\x20state.\x20For\n\x20[CreateInstance]\ + [google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],\x20the\ + \x20state\x20must\x20be\n\x20either\x20omitted\x20or\x20set\x20to\x20`CR\ + EATING`.\x20For\n\x20[UpdateInstance][google.spanner.admin.instance.v1.I\ + nstanceAdmin.UpdateInstance],\x20the\x20state\x20must\x20be\n\x20either\ + \x20omitted\x20or\x20set\x20to\x20`READY`.\n\n\r\n\x05\x04\x02\x02\x04\ + \x06\x12\x04\xf7\x02\x02\x07\n\r\n\x05\x04\x02\x02\x04\x01\x12\x04\xf7\ + \x02\x08\r\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\xf7\x02\x10\x11\n\xe3\t\ + \n\x04\x04\x02\x02\x05\x12\x04\x8e\x03\x02!\x1a\xd4\t\x20Cloud\x20Labels\ + \x20are\x20a\x20flexible\x20and\x20lightweight\x20mechanism\x20for\x20or\ + ganizing\x20cloud\n\x20resources\x20into\x20groups\x20that\x20reflect\ + \x20a\x20customer's\x20organizational\x20needs\x20and\n\x20deployment\ + \x20strategies.\x20Cloud\x20Labels\x20can\x20be\x20used\x20to\x20filter\ + \x20collections\x20of\n\x20resources.\x20They\x20can\x20be\x20used\x20to\ + \x20control\x20how\x20resource\x20metrics\x20are\x20aggregated.\n\x20And\ + \x20they\x20can\x20be\x20used\x20as\x20arguments\x20to\x20policy\x20mana\ + gement\x20rules\x20(e.g.\x20route,\n\x20firewall,\x20load\x20balancing,\ + \x20etc.).\n\n\x20\x20*\x20Label\x20keys\x20must\x20be\x20between\x201\ + \x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\x20to\n\ + \x20\x20\x20\x20the\x20following\x20regular\x20expression:\x20`[a-z]([-a\ + -z0-9]*[a-z0-9])?`.\n\x20\x20*\x20Label\x20values\x20must\x20be\x20betwe\ + en\x200\x20and\x2063\x20characters\x20long\x20and\x20must\x20conform\n\ + \x20\x20\x20\x20to\x20the\x20regular\x20expression\x20`([a-z]([-a-z0-9]*\ + [a-z0-9])?)?`.\n\x20\x20*\x20No\x20more\x20than\x2064\x20labels\x20can\ + \x20be\x20associated\x20with\x20a\x20given\x20resource.\n\n\x20See\x20ht\ + tps://goo.gl/xmQnxf\x20for\x20more\x20information\x20on\x20and\x20exampl\ + es\x20of\x20labels.\n\n\x20If\x20you\x20plan\x20to\x20use\x20labels\x20i\ + n\x20your\x20own\x20code,\x20please\x20note\x20that\x20additional\n\x20c\ + haracters\x20may\x20be\x20allowed\x20in\x20the\x20future.\x20And\x20so\ + \x20you\x20are\x20advised\x20to\x20use\x20an\n\x20internal\x20label\x20r\ + epresentation,\x20such\x20as\x20JSON,\x20which\x20doesn't\x20rely\x20upo\ + n\n\x20specific\x20characters\x20being\x20disallowed.\x20\x20For\x20exam\ + ple,\x20representing\x20labels\n\x20as\x20the\x20string:\x20\x20name\x20\ + +\x20\"_\"\x20+\x20value\x20\x20would\x20prove\x20problematic\x20if\x20w\ + e\x20were\x20to\n\x20allow\x20\"_\"\x20in\x20a\x20future\x20release.\n\n\ + \r\n\x05\x04\x02\x02\x05\x06\x12\x04\x8e\x03\x02\x15\n\r\n\x05\x04\x02\ + \x02\x05\x01\x12\x04\x8e\x03\x16\x1c\n\r\n\x05\x04\x02\x02\x05\x03\x12\ + \x04\x8e\x03\x1f\x20\n\xfd\x03\n\x04\x04\x02\x02\x06\x12\x04\x98\x03\x02\ + $\x1a\xee\x03\x20Output\x20only.\x20The\x20endpoint\x20URIs\x20based\x20\ + on\x20the\x20instance\x20config.\n\x20For\x20example,\x20instances\x20lo\ + cated\x20in\x20a\x20specific\x20cloud\x20region\x20(or\x20multi\x20regio\ + n)\n\x20such\x20as\x20nam3,\x20would\x20have\x20a\x20nam3\x20specific\ + \x20endpoint\x20URI.\n\x20This\x20URI\x20is\x20to\x20be\x20used\x20impli\ + ctly\x20by\x20SDK\x20clients,\x20with\x20fallback\x20to\x20default\n\x20\ + URI.\x20These\x20endpoints\x20are\x20intended\x20to\x20optimize\x20the\ + \x20network\x20routing\x20between\n\x20the\x20client\x20and\x20the\x20in\ + stance's\x20serving\x20resources.\n\x20If\x20multiple\x20endpoints\x20ar\ + e\x20present,\x20client\x20may\x20establish\x20connections\x20using\n\ + \x20any\x20of\x20the\x20given\x20URIs.\n\n\r\n\x05\x04\x02\x02\x06\x04\ + \x12\x04\x98\x03\x02\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\x04\x98\x03\x0b\ + \x11\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\x98\x03\x12\x1f\n\r\n\x05\x04\ + \x02\x02\x06\x03\x12\x04\x98\x03\"#\nz\n\x02\x04\x03\x12\x06\x9c\x03\0\ + \xaf\x03\x01\x1al\x20The\x20request\x20for\x20[ListInstanceConfigs][goog\ + le.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs].\n\n\x0b\ + \n\x03\x04\x03\x01\x12\x04\x9c\x03\x08\"\n\xa7\x01\n\x04\x04\x03\x02\0\ + \x12\x06\xa0\x03\x02\xa5\x03\x04\x1a\x96\x01\x20Required.\x20The\x20name\ + \x20of\x20the\x20project\x20for\x20which\x20a\x20list\x20of\x20supported\ + \x20instance\n\x20configurations\x20is\x20requested.\x20Values\x20are\ + \x20of\x20the\x20form\n\x20`projects/`.\n\n\r\n\x05\x04\x03\x02\ + \0\x05\x12\x04\xa0\x03\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xa0\ + \x03\t\x0f\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xa0\x03\x12\x13\n\x0f\n\ + \x05\x04\x03\x02\0\x08\x12\x06\xa0\x03\x14\xa5\x03\x03\n\x10\n\x08\x04\ + \x03\x02\0\x08\x9c\x08\0\x12\x04\xa1\x03\x04*\n\x11\n\x07\x04\x03\x02\0\ + \x08\x9f\x08\x12\x06\xa2\x03\x04\xa4\x03\x05\n\x95\x01\n\x04\x04\x03\x02\ + \x01\x12\x04\xa9\x03\x02\x16\x1a\x86\x01\x20Number\x20of\x20instance\x20\ + configurations\x20to\x20be\x20returned\x20in\x20the\x20response.\x20If\ + \x200\x20or\n\x20less,\x20defaults\x20to\x20the\x20server's\x20maximum\ + \x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x03\x02\x01\x05\x12\x04\xa9\ + \x03\x02\x07\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xa9\x03\x08\x11\n\r\n\ + \x05\x04\x03\x02\x01\x03\x12\x04\xa9\x03\x14\x15\n\x8b\x02\n\x04\x04\x03\ + \x02\x02\x12\x04\xae\x03\x02\x18\x1a\xfc\x01\x20If\x20non-empty,\x20`pag\ e_token`\x20should\x20contain\x20a\n\x20[next_page_token][google.spanner\ - .admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token]\ - \n\x20from\x20a\x20previous\n\x20[ListInstanceConfigOperationsResponse][\ - google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse]\n\ - \x20to\x20the\x20same\x20`parent`\x20and\x20with\x20the\x20same\x20`filt\ - er`.\n\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xad\x07\x02\x08\n\r\n\x05\x04\ - \n\x02\x03\x01\x12\x04\xad\x07\t\x13\n\r\n\x05\x04\n\x02\x03\x03\x12\x04\ - \xad\x07\x16\x17\n\x8f\x01\n\x02\x04\x0b\x12\x06\xb2\x07\0\xbe\x07\x01\ - \x1a\x80\x01\x20The\x20response\x20for\n\x20[ListInstanceConfigOperation\ - s][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOper\ - ations].\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xb2\x07\x08,\n\xbd\x02\n\x04\ - \x04\x0b\x02\0\x12\x04\xb8\x07\x027\x1a\xae\x02\x20The\x20list\x20of\x20\ - matching\x20instance\x20config\x20[long-running\n\x20operations][google.\ - longrunning.Operation].\x20Each\x20operation's\x20name\x20will\x20be\n\ - \x20prefixed\x20by\x20the\x20instance\x20config's\x20name.\x20The\x20ope\ - ration's\n\x20[metadata][google.longrunning.Operation.metadata]\x20field\ - \x20type\n\x20`metadata.type_url`\x20describes\x20the\x20type\x20of\x20t\ - he\x20metadata.\n\n\r\n\x05\x04\x0b\x02\0\x04\x12\x04\xb8\x07\x02\n\n\r\ - \n\x05\x04\x0b\x02\0\x06\x12\x04\xb8\x07\x0b'\n\r\n\x05\x04\x0b\x02\0\ - \x01\x12\x04\xb8\x07(2\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xb8\x0756\n\ - \xd9\x01\n\x04\x04\x0b\x02\x01\x12\x04\xbd\x07\x02\x1d\x1a\xca\x01\x20`n\ - ext_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[List\ - InstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin\ - .ListInstanceConfigOperations]\n\x20call\x20to\x20fetch\x20more\x20of\ - \x20the\x20matching\x20metadata.\n\n\r\n\x05\x04\x0b\x02\x01\x05\x12\x04\ - \xbd\x07\x02\x08\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\xbd\x07\t\x18\n\r\ - \n\x05\x04\x0b\x02\x01\x03\x12\x04\xbd\x07\x1b\x1c\nk\n\x02\x04\x0c\x12\ - \x06\xc2\x07\0\xd1\x07\x01\x1a]\x20The\x20request\x20for\n\x20[GetInstan\ - ce][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].\n\n\x0b\ - \n\x03\x04\x0c\x01\x12\x04\xc2\x07\x08\x1a\n\x82\x01\n\x04\x04\x0c\x02\0\ - \x12\x06\xc5\x07\x02\xca\x07\x04\x1ar\x20Required.\x20The\x20name\x20of\ + .admin.instance.v1.ListInstanceConfigsResponse.next_page_token]\n\x20fro\ + m\x20a\x20previous\x20[ListInstanceConfigsResponse][google.spanner.admin\ + .instance.v1.ListInstanceConfigsResponse].\n\n\r\n\x05\x04\x03\x02\x02\ + \x05\x12\x04\xae\x03\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xae\ + \x03\t\x13\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xae\x03\x16\x17\n{\n\ + \x02\x04\x04\x12\x06\xb2\x03\0\xba\x03\x01\x1am\x20The\x20response\x20fo\ + r\x20[ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmi\ + n.ListInstanceConfigs].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xb2\x03\x08#\n\ + >\n\x04\x04\x04\x02\0\x12\x04\xb4\x03\x02/\x1a0\x20The\x20list\x20of\x20\ + requested\x20instance\x20configurations.\n\n\r\n\x05\x04\x04\x02\0\x04\ + \x12\x04\xb4\x03\x02\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\xb4\x03\x0b\ + \x19\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xb4\x03\x1a*\n\r\n\x05\x04\x04\ + \x02\0\x03\x12\x04\xb4\x03-.\n\xd6\x01\n\x04\x04\x04\x02\x01\x12\x04\xb9\ + \x03\x02\x1d\x1a\xc7\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\ + \x20a\x20subsequent\n\x20[ListInstanceConfigs][google.spanner.admin.inst\ + ance.v1.InstanceAdmin.ListInstanceConfigs]\x20call\x20to\n\x20fetch\x20m\ + ore\x20of\x20the\x20matching\x20instance\x20configurations.\n\n\r\n\x05\ + \x04\x04\x02\x01\x05\x12\x04\xb9\x03\x02\x08\n\r\n\x05\x04\x04\x02\x01\ + \x01\x12\x04\xb9\x03\t\x18\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xb9\x03\ + \x1b\x1c\n~\n\x02\x04\x05\x12\x06\xbe\x03\0\xc7\x03\x01\x1ap\x20The\x20r\ + equest\x20for\n\x20[GetInstanceConfigRequest][google.spanner.admin.insta\ + nce.v1.InstanceAdmin.GetInstanceConfig].\n\n\x0b\n\x03\x04\x05\x01\x12\ + \x04\xbe\x03\x08\x20\n\x95\x01\n\x04\x04\x05\x02\0\x12\x06\xc1\x03\x02\ + \xc6\x03\x04\x1a\x84\x01\x20Required.\x20The\x20name\x20of\x20the\x20req\ + uested\x20instance\x20configuration.\x20Values\x20are\x20of\n\x20the\x20\ + form\x20`projects//instanceConfigs/`.\n\n\r\n\x05\x04\ + \x05\x02\0\x05\x12\x04\xc1\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\ + \x04\xc1\x03\t\r\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\xc1\x03\x10\x11\n\ + \x0f\n\x05\x04\x05\x02\0\x08\x12\x06\xc1\x03\x12\xc6\x03\x03\n\x10\n\x08\ + \x04\x05\x02\0\x08\x9c\x08\0\x12\x04\xc2\x03\x04*\n\x11\n\x07\x04\x05\ + \x02\0\x08\x9f\x08\x12\x06\xc3\x03\x04\xc5\x03\x05\nj\n\x02\x04\x06\x12\ + \x06\xca\x03\0\xd8\x03\x01\x1a\\\x20The\x20request\x20for\x20[GetInstanc\ + e][google.spanner.admin.instance.v1.InstanceAdmin.GetInstance].\n\n\x0b\ + \n\x03\x04\x06\x01\x12\x04\xca\x03\x08\x1a\n\x82\x01\n\x04\x04\x06\x02\0\ + \x12\x06\xcd\x03\x02\xd2\x03\x04\x1ar\x20Required.\x20The\x20name\x20of\ \x20the\x20requested\x20instance.\x20Values\x20are\x20of\x20the\x20form\ - \n\x20`projects//instances/`.\n\n\r\n\x05\x04\x0c\x02\ - \0\x05\x12\x04\xc5\x07\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xc5\ - \x07\t\r\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xc5\x07\x10\x11\n\x0f\n\x05\ - \x04\x0c\x02\0\x08\x12\x06\xc5\x07\x12\xca\x07\x03\n\x10\n\x08\x04\x0c\ - \x02\0\x08\x9c\x08\0\x12\x04\xc6\x07\x04*\n\x11\n\x07\x04\x0c\x02\0\x08\ - \x9f\x08\x12\x06\xc7\x07\x04\xc9\x07\x05\n\xf5\x01\n\x04\x04\x0c\x02\x01\ - \x12\x04\xd0\x07\x02+\x1a\xe6\x01\x20If\x20field_mask\x20is\x20present,\ - \x20specifies\x20the\x20subset\x20of\n\x20[Instance][google.spanner.admi\ - n.instance.v1.Instance]\x20fields\x20that\x20should\x20be\n\x20returned.\ - \x20If\x20absent,\x20all\n\x20[Instance][google.spanner.admin.instance.v\ - 1.Instance]\x20fields\x20are\x20returned.\n\n\r\n\x05\x04\x0c\x02\x01\ - \x06\x12\x04\xd0\x07\x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xd0\ - \x07\x1c&\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xd0\x07)*\nq\n\x02\x04\r\ - \x12\x06\xd5\x07\0\xe7\x07\x01\x1ac\x20The\x20request\x20for\n\x20[Creat\ - eInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance\ - ].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xd5\x07\x08\x1d\n\x82\x01\n\x04\x04\r\ - \x02\0\x12\x06\xd8\x07\x02\xdd\x07\x04\x1ar\x20Required.\x20The\x20name\ - \x20of\x20the\x20project\x20in\x20which\x20to\x20create\x20the\x20instan\ - ce.\x20Values\n\x20are\x20of\x20the\x20form\x20`projects/`.\n\n\ - \r\n\x05\x04\r\x02\0\x05\x12\x04\xd8\x07\x02\x08\n\r\n\x05\x04\r\x02\0\ - \x01\x12\x04\xd8\x07\t\x0f\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xd8\x07\x12\ - \x13\n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xd8\x07\x14\xdd\x07\x03\n\x10\n\ - \x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xd9\x07\x04*\n\x11\n\x07\x04\r\ - \x02\0\x08\x9f\x08\x12\x06\xda\x07\x04\xdc\x07\x05\n\xae\x01\n\x04\x04\r\ - \x02\x01\x12\x04\xe2\x07\x02B\x1a\x9f\x01\x20Required.\x20The\x20ID\x20o\ - f\x20the\x20instance\x20to\x20create.\x20\x20Valid\x20identifiers\x20are\ - \x20of\x20the\n\x20form\x20`[a-z][-a-z0-9]*[a-z0-9]`\x20and\x20must\x20b\ - e\x20between\x202\x20and\x2064\x20characters\x20in\n\x20length.\n\n\r\n\ - \x05\x04\r\x02\x01\x05\x12\x04\xe2\x07\x02\x08\n\r\n\x05\x04\r\x02\x01\ - \x01\x12\x04\xe2\x07\t\x14\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xe2\x07\ - \x17\x18\n\r\n\x05\x04\r\x02\x01\x08\x12\x04\xe2\x07\x19A\n\x10\n\x08\ - \x04\r\x02\x01\x08\x9c\x08\0\x12\x04\xe2\x07\x1a@\n\x89\x01\n\x04\x04\r\ - \x02\x02\x12\x04\xe6\x07\x02A\x1a{\x20Required.\x20The\x20instance\x20to\ - \x20create.\x20\x20The\x20name\x20may\x20be\x20omitted,\x20but\x20if\n\ - \x20specified\x20must\x20be\x20`/instances/`.\n\n\r\ - \n\x05\x04\r\x02\x02\x06\x12\x04\xe6\x07\x02\n\n\r\n\x05\x04\r\x02\x02\ - \x01\x12\x04\xe6\x07\x0b\x13\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xe6\x07\ - \x16\x17\n\r\n\x05\x04\r\x02\x02\x08\x12\x04\xe6\x07\x18@\n\x10\n\x08\ - \x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xe6\x07\x19?\no\n\x02\x04\x0e\x12\ - \x06\xeb\x07\0\x93\x08\x01\x1aa\x20The\x20request\x20for\n\x20[ListInsta\ - nces][google.spanner.admin.instance.v1.InstanceAdmin.ListInstances].\n\n\ - \x0b\n\x03\x04\x0e\x01\x12\x04\xeb\x07\x08\x1c\n\x8d\x01\n\x04\x04\x0e\ - \x02\0\x12\x06\xee\x07\x02\xf3\x07\x04\x1a}\x20Required.\x20The\x20name\ - \x20of\x20the\x20project\x20for\x20which\x20a\x20list\x20of\x20instances\ - \x20is\n\x20requested.\x20Values\x20are\x20of\x20the\x20form\x20`project\ - s/`.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xee\x07\x02\x08\n\r\ - \n\x05\x04\x0e\x02\0\x01\x12\x04\xee\x07\t\x0f\n\r\n\x05\x04\x0e\x02\0\ - \x03\x12\x04\xee\x07\x12\x13\n\x0f\n\x05\x04\x0e\x02\0\x08\x12\x06\xee\ - \x07\x14\xf3\x07\x03\n\x10\n\x08\x04\x0e\x02\0\x08\x9c\x08\0\x12\x04\xef\ - \x07\x04*\n\x11\n\x07\x04\x0e\x02\0\x08\x9f\x08\x12\x06\xf0\x07\x04\xf2\ - \x07\x05\n\x86\x01\n\x04\x04\x0e\x02\x01\x12\x04\xf7\x07\x02\x16\x1ax\ - \x20Number\x20of\x20instances\x20to\x20be\x20returned\x20in\x20the\x20re\ - sponse.\x20If\x200\x20or\x20less,\x20defaults\n\x20to\x20the\x20server's\ - \x20maximum\x20allowed\x20page\x20size.\n\n\r\n\x05\x04\x0e\x02\x01\x05\ - \x12\x04\xf7\x07\x02\x07\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xf7\x07\ - \x08\x11\n\r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xf7\x07\x14\x15\n\xfa\x01\ - \n\x04\x04\x0e\x02\x02\x12\x04\xfd\x07\x02\x18\x1a\xeb\x01\x20If\x20non-\ - empty,\x20`page_token`\x20should\x20contain\x20a\n\x20[next_page_token][\ - google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token]\ - \n\x20from\x20a\x20previous\n\x20[ListInstancesResponse][google.spanner.\ - admin.instance.v1.ListInstancesResponse].\n\n\r\n\x05\x04\x0e\x02\x02\ - \x05\x12\x04\xfd\x07\x02\x08\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xfd\ - \x07\t\x13\n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\xfd\x07\x16\x17\n\xdd\ - \x06\n\x04\x04\x0e\x02\x03\x12\x04\x92\x08\x02\x14\x1a\xce\x06\x20An\x20\ - expression\x20for\x20filtering\x20the\x20results\x20of\x20the\x20request\ - .\x20Filter\x20rules\x20are\n\x20case\x20insensitive.\x20The\x20fields\ - \x20eligible\x20for\x20filtering\x20are:\n\n\x20\x20\x20*\x20`name`\n\ - \x20\x20\x20*\x20`display_name`\n\x20\x20\x20*\x20`labels.key`\x20where\ - \x20key\x20is\x20the\x20name\x20of\x20a\x20label\n\n\x20Some\x20examples\ - \x20of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\x20`name:*`\x20-->\ - \x20The\x20instance\x20has\x20a\x20name.\n\x20\x20\x20*\x20`name:Howl`\ - \x20-->\x20The\x20instance's\x20name\x20contains\x20the\x20string\x20\"h\ - owl\".\n\x20\x20\x20*\x20`name:HOWL`\x20-->\x20Equivalent\x20to\x20above\ - .\n\x20\x20\x20*\x20`NAME:howl`\x20-->\x20Equivalent\x20to\x20above.\n\ - \x20\x20\x20*\x20`labels.env:*`\x20-->\x20The\x20instance\x20has\x20the\ - \x20label\x20\"env\".\n\x20\x20\x20*\x20`labels.env:dev`\x20-->\x20The\ - \x20instance\x20has\x20the\x20label\x20\"env\"\x20and\x20the\x20value\ - \x20of\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20the\x20label\x20contains\x20the\x20strin\ - g\x20\"dev\".\n\x20\x20\x20*\x20`name:howl\x20labels.env:dev`\x20-->\x20\ - The\x20instance's\x20name\x20contains\x20\"howl\"\x20and\n\x20\x20\x20\ + \n\x20`projects//instances/`.\n\n\r\n\x05\x04\x06\x02\ + \0\x05\x12\x04\xcd\x03\x02\x08\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\xcd\ + \x03\t\r\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xcd\x03\x10\x11\n\x0f\n\x05\ + \x04\x06\x02\0\x08\x12\x06\xcd\x03\x12\xd2\x03\x03\n\x10\n\x08\x04\x06\ + \x02\0\x08\x9c\x08\0\x12\x04\xce\x03\x04*\n\x11\n\x07\x04\x06\x02\0\x08\ + \x9f\x08\x12\x06\xcf\x03\x04\xd1\x03\x05\n\xa2\x01\n\x04\x04\x06\x02\x01\ + \x12\x04\xd7\x03\x02+\x1a\x93\x01\x20If\x20field_mask\x20is\x20present,\ + \x20specifies\x20the\x20subset\x20of\x20[][Instance]\x20fields\x20that\n\ + \x20should\x20be\x20returned.\n\x20If\x20absent,\x20all\x20[][Instance]\ + \x20fields\x20are\x20returned.\n\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\ + \xd7\x03\x02\x1b\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\xd7\x03\x1c&\n\r\ + \n\x05\x04\x06\x02\x01\x03\x12\x04\xd7\x03)*\np\n\x02\x04\x07\x12\x06\ + \xdb\x03\0\xed\x03\x01\x1ab\x20The\x20request\x20for\x20[CreateInstance]\ + [google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].\n\n\x0b\ + \n\x03\x04\x07\x01\x12\x04\xdb\x03\x08\x1d\n\x82\x01\n\x04\x04\x07\x02\0\ + \x12\x06\xde\x03\x02\xe3\x03\x04\x1ar\x20Required.\x20The\x20name\x20of\ + \x20the\x20project\x20in\x20which\x20to\x20create\x20the\x20instance.\ + \x20Values\n\x20are\x20of\x20the\x20form\x20`projects/`.\n\n\r\ + \n\x05\x04\x07\x02\0\x05\x12\x04\xde\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\ + \x01\x12\x04\xde\x03\t\x0f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xde\x03\ + \x12\x13\n\x0f\n\x05\x04\x07\x02\0\x08\x12\x06\xde\x03\x14\xe3\x03\x03\n\ + \x10\n\x08\x04\x07\x02\0\x08\x9c\x08\0\x12\x04\xdf\x03\x04*\n\x11\n\x07\ + \x04\x07\x02\0\x08\x9f\x08\x12\x06\xe0\x03\x04\xe2\x03\x05\n\xae\x01\n\ + \x04\x04\x07\x02\x01\x12\x04\xe8\x03\x02B\x1a\x9f\x01\x20Required.\x20Th\ + e\x20ID\x20of\x20the\x20instance\x20to\x20create.\x20\x20Valid\x20identi\ + fiers\x20are\x20of\x20the\n\x20form\x20`[a-z][-a-z0-9]*[a-z0-9]`\x20and\ + \x20must\x20be\x20between\x202\x20and\x2064\x20characters\x20in\n\x20len\ + gth.\n\n\r\n\x05\x04\x07\x02\x01\x05\x12\x04\xe8\x03\x02\x08\n\r\n\x05\ + \x04\x07\x02\x01\x01\x12\x04\xe8\x03\t\x14\n\r\n\x05\x04\x07\x02\x01\x03\ + \x12\x04\xe8\x03\x17\x18\n\r\n\x05\x04\x07\x02\x01\x08\x12\x04\xe8\x03\ + \x19A\n\x10\n\x08\x04\x07\x02\x01\x08\x9c\x08\0\x12\x04\xe8\x03\x1a@\n\ + \x89\x01\n\x04\x04\x07\x02\x02\x12\x04\xec\x03\x02A\x1a{\x20Required.\ + \x20The\x20instance\x20to\x20create.\x20\x20The\x20name\x20may\x20be\x20\ + omitted,\x20but\x20if\n\x20specified\x20must\x20be\x20`/instance\ + s/`.\n\n\r\n\x05\x04\x07\x02\x02\x06\x12\x04\xec\x03\x02\n\ + \n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\xec\x03\x0b\x13\n\r\n\x05\x04\x07\ + \x02\x02\x03\x12\x04\xec\x03\x16\x17\n\r\n\x05\x04\x07\x02\x02\x08\x12\ + \x04\xec\x03\x18@\n\x10\n\x08\x04\x07\x02\x02\x08\x9c\x08\0\x12\x04\xec\ + \x03\x19?\nn\n\x02\x04\x08\x12\x06\xf0\x03\0\x97\x04\x01\x1a`\x20The\x20\ + request\x20for\x20[ListInstances][google.spanner.admin.instance.v1.Insta\ + nceAdmin.ListInstances].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xf0\x03\x08\ + \x1c\n\x8d\x01\n\x04\x04\x08\x02\0\x12\x06\xf3\x03\x02\xf8\x03\x04\x1a}\ + \x20Required.\x20The\x20name\x20of\x20the\x20project\x20for\x20which\x20\ + a\x20list\x20of\x20instances\x20is\n\x20requested.\x20Values\x20are\x20o\ + f\x20the\x20form\x20`projects/`.\n\n\r\n\x05\x04\x08\x02\0\x05\ + \x12\x04\xf3\x03\x02\x08\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xf3\x03\t\ + \x0f\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xf3\x03\x12\x13\n\x0f\n\x05\x04\ + \x08\x02\0\x08\x12\x06\xf3\x03\x14\xf8\x03\x03\n\x10\n\x08\x04\x08\x02\0\ + \x08\x9c\x08\0\x12\x04\xf4\x03\x04*\n\x11\n\x07\x04\x08\x02\0\x08\x9f\ + \x08\x12\x06\xf5\x03\x04\xf7\x03\x05\n\x86\x01\n\x04\x04\x08\x02\x01\x12\ + \x04\xfc\x03\x02\x16\x1ax\x20Number\x20of\x20instances\x20to\x20be\x20re\ + turned\x20in\x20the\x20response.\x20If\x200\x20or\x20less,\x20defaults\n\ + \x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\ + \x05\x04\x08\x02\x01\x05\x12\x04\xfc\x03\x02\x07\n\r\n\x05\x04\x08\x02\ + \x01\x01\x12\x04\xfc\x03\x08\x11\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\ + \xfc\x03\x14\x15\n\xf9\x01\n\x04\x04\x08\x02\x02\x12\x04\x81\x04\x02\x18\ + \x1a\xea\x01\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\ + \x20a\n\x20[next_page_token][google.spanner.admin.instance.v1.ListInstan\ + cesResponse.next_page_token]\x20from\x20a\n\x20previous\x20[ListInstance\ + sResponse][google.spanner.admin.instance.v1.ListInstancesResponse].\n\n\ + \r\n\x05\x04\x08\x02\x02\x05\x12\x04\x81\x04\x02\x08\n\r\n\x05\x04\x08\ + \x02\x02\x01\x12\x04\x81\x04\t\x13\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\ + \x81\x04\x16\x17\n\xdd\x06\n\x04\x04\x08\x02\x03\x12\x04\x96\x04\x02\x14\ + \x1a\xce\x06\x20An\x20expression\x20for\x20filtering\x20the\x20results\ + \x20of\x20the\x20request.\x20Filter\x20rules\x20are\n\x20case\x20insensi\ + tive.\x20The\x20fields\x20eligible\x20for\x20filtering\x20are:\n\n\x20\ + \x20\x20*\x20`name`\n\x20\x20\x20*\x20`display_name`\n\x20\x20\x20*\x20`\ + labels.key`\x20where\x20key\x20is\x20the\x20name\x20of\x20a\x20label\n\n\ + \x20Some\x20examples\x20of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\ + \x20`name:*`\x20-->\x20The\x20instance\x20has\x20a\x20name.\n\x20\x20\ + \x20*\x20`name:Howl`\x20-->\x20The\x20instance's\x20name\x20contains\x20\ + the\x20string\x20\"howl\".\n\x20\x20\x20*\x20`name:HOWL`\x20-->\x20Equiv\ + alent\x20to\x20above.\n\x20\x20\x20*\x20`NAME:howl`\x20-->\x20Equivalent\ + \x20to\x20above.\n\x20\x20\x20*\x20`labels.env:*`\x20-->\x20The\x20insta\ + nce\x20has\x20the\x20label\x20\"env\".\n\x20\x20\x20*\x20`labels.env:dev\ + `\x20-->\x20The\x20instance\x20has\x20the\x20label\x20\"env\"\x20and\x20\ + the\x20value\x20of\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20label\x20contains\x20\ + the\x20string\x20\"dev\".\n\x20\x20\x20*\x20`name:howl\x20labels.env:dev\ + `\x20-->\x20The\x20instance's\x20name\x20contains\x20\"howl\"\x20and\n\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20has\x20the\x20\ - label\x20\"env\"\x20with\x20its\x20value\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20ha\ + s\x20the\x20label\x20\"env\"\x20with\x20its\x20value\n\x20\x20\x20\x20\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20containing\x20\"dev\".\n\n\r\n\x05\ - \x04\x0e\x02\x03\x05\x12\x04\x92\x08\x02\x08\n\r\n\x05\x04\x0e\x02\x03\ - \x01\x12\x04\x92\x08\t\x0f\n\r\n\x05\x04\x0e\x02\x03\x03\x12\x04\x92\x08\ - \x12\x13\np\n\x02\x04\x0f\x12\x06\x97\x08\0\x9f\x08\x01\x1ab\x20The\x20r\ - esponse\x20for\n\x20[ListInstances][google.spanner.admin.instance.v1.Ins\ - tanceAdmin.ListInstances].\n\n\x0b\n\x03\x04\x0f\x01\x12\x04\x97\x08\x08\ - \x1d\n0\n\x04\x04\x0f\x02\0\x12\x04\x99\x08\x02\"\x1a\"\x20The\x20list\ - \x20of\x20requested\x20instances.\n\n\r\n\x05\x04\x0f\x02\0\x04\x12\x04\ - \x99\x08\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\x99\x08\x0b\x13\n\r\n\ - \x05\x04\x0f\x02\0\x01\x12\x04\x99\x08\x14\x1d\n\r\n\x05\x04\x0f\x02\0\ - \x03\x12\x04\x99\x08\x20!\n\xbc\x01\n\x04\x04\x0f\x02\x01\x12\x04\x9e\ - \x08\x02\x1d\x1a\xad\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\ - \x20a\x20subsequent\n\x20[ListInstances][google.spanner.admin.instance.v\ - 1.InstanceAdmin.ListInstances]\n\x20call\x20to\x20fetch\x20more\x20of\ - \x20the\x20matching\x20instances.\n\n\r\n\x05\x04\x0f\x02\x01\x05\x12\ - \x04\x9e\x08\x02\x08\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\x9e\x08\t\x18\ - \n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x9e\x08\x1b\x1c\nq\n\x02\x04\x10\ - \x12\x06\xa3\x08\0\xb1\x08\x01\x1ac\x20The\x20request\x20for\n\x20[Updat\ - eInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance\ - ].\n\n\x0b\n\x03\x04\x10\x01\x12\x04\xa3\x08\x08\x1d\n\xe9\x01\n\x04\x04\ - \x10\x02\0\x12\x04\xa8\x08\x02A\x1a\xda\x01\x20Required.\x20The\x20insta\ - nce\x20to\x20update,\x20which\x20must\x20always\x20include\x20the\x20ins\ - tance\n\x20name.\x20\x20Otherwise,\x20only\x20fields\x20mentioned\x20in\ - \n\x20[field_mask][google.spanner.admin.instance.v1.UpdateInstanceReques\ - t.field_mask]\n\x20need\x20be\x20included.\n\n\r\n\x05\x04\x10\x02\0\x06\ - \x12\x04\xa8\x08\x02\n\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xa8\x08\x0b\ - \x13\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xa8\x08\x16\x17\n\r\n\x05\x04\ - \x10\x02\0\x08\x12\x04\xa8\x08\x18@\n\x10\n\x08\x04\x10\x02\0\x08\x9c\ - \x08\0\x12\x04\xa8\x08\x19?\n\xd4\x02\n\x04\x04\x10\x02\x01\x12\x06\xaf\ - \x08\x02\xb0\x08/\x1a\xc3\x02\x20Required.\x20A\x20mask\x20specifying\ - \x20which\x20fields\x20in\n\x20[Instance][google.spanner.admin.instance.\ - v1.Instance]\x20should\x20be\x20updated.\n\x20The\x20field\x20mask\x20mu\ - st\x20always\x20be\x20specified;\x20this\x20prevents\x20any\x20future\ - \x20fields\x20in\n\x20[Instance][google.spanner.admin.instance.v1.Instan\ - ce]\x20from\x20being\x20erased\n\x20accidentally\x20by\x20clients\x20tha\ - t\x20do\x20not\x20know\x20about\x20them.\n\n\r\n\x05\x04\x10\x02\x01\x06\ - \x12\x04\xaf\x08\x02\x1b\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xaf\x08\ - \x1c&\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xaf\x08)*\n\r\n\x05\x04\x10\ - \x02\x01\x08\x12\x04\xb0\x08\x06.\n\x10\n\x08\x04\x10\x02\x01\x08\x9c\ - \x08\0\x12\x04\xb0\x08\x07-\nq\n\x02\x04\x11\x12\x06\xb5\x08\0\xbe\x08\ - \x01\x1ac\x20The\x20request\x20for\n\x20[DeleteInstance][google.spanner.\ - admin.instance.v1.InstanceAdmin.DeleteInstance].\n\n\x0b\n\x03\x04\x11\ - \x01\x12\x04\xb5\x08\x08\x1d\n\x85\x01\n\x04\x04\x11\x02\0\x12\x06\xb8\ - \x08\x02\xbd\x08\x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20in\ - stance\x20to\x20be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\ - \x20`projects//instances/`\n\n\r\n\x05\x04\x11\x02\0\ - \x05\x12\x04\xb8\x08\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\xb8\x08\ - \t\r\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xb8\x08\x10\x11\n\x0f\n\x05\x04\ - \x11\x02\0\x08\x12\x06\xb8\x08\x12\xbd\x08\x03\n\x10\n\x08\x04\x11\x02\0\ - \x08\x9c\x08\0\x12\x04\xb9\x08\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\ - \x08\x12\x06\xba\x08\x04\xbc\x08\x05\n\x8d\x01\n\x02\x04\x12\x12\x06\xc2\ - \x08\0\xd2\x08\x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20operatio\ - n\x20returned\x20by\n\x20[CreateInstance][google.spanner.admin.instance.\ - v1.InstanceAdmin.CreateInstance].\n\n\x0b\n\x03\x04\x12\x01\x12\x04\xc2\ - \x08\x08\x1e\n+\n\x04\x04\x12\x02\0\x12\x04\xc4\x08\x02\x18\x1a\x1d\x20T\ - he\x20instance\x20being\x20created.\n\n\r\n\x05\x04\x12\x02\0\x06\x12\ - \x04\xc4\x08\x02\n\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xc4\x08\x0b\x13\n\ - \r\n\x05\x04\x12\x02\0\x03\x12\x04\xc4\x08\x16\x17\n\x8d\x01\n\x04\x04\ - \x12\x02\x01\x12\x04\xc9\x08\x02+\x1a\x7f\x20The\x20time\x20at\x20which\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20containing\x20\"dev\".\n\ + \n\r\n\x05\x04\x08\x02\x03\x05\x12\x04\x96\x04\x02\x08\n\r\n\x05\x04\x08\ + \x02\x03\x01\x12\x04\x96\x04\t\x0f\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\ + \x96\x04\x12\x13\no\n\x02\x04\t\x12\x06\x9a\x04\0\xa2\x04\x01\x1aa\x20Th\ + e\x20response\x20for\x20[ListInstances][google.spanner.admin.instance.v1\ + .InstanceAdmin.ListInstances].\n\n\x0b\n\x03\x04\t\x01\x12\x04\x9a\x04\ + \x08\x1d\n0\n\x04\x04\t\x02\0\x12\x04\x9c\x04\x02\"\x1a\"\x20The\x20list\ + \x20of\x20requested\x20instances.\n\n\r\n\x05\x04\t\x02\0\x04\x12\x04\ + \x9c\x04\x02\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\x9c\x04\x0b\x13\n\r\n\ + \x05\x04\t\x02\0\x01\x12\x04\x9c\x04\x14\x1d\n\r\n\x05\x04\t\x02\0\x03\ + \x12\x04\x9c\x04\x20!\n\xbc\x01\n\x04\x04\t\x02\x01\x12\x04\xa1\x04\x02\ + \x1d\x1a\xad\x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\ + \x20subsequent\n\x20[ListInstances][google.spanner.admin.instance.v1.Ins\ + tanceAdmin.ListInstances]\x20call\x20to\x20fetch\x20more\n\x20of\x20the\ + \x20matching\x20instances.\n\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xa1\x04\ + \x02\x08\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xa1\x04\t\x18\n\r\n\x05\x04\ + \t\x02\x01\x03\x12\x04\xa1\x04\x1b\x1c\np\n\x02\x04\n\x12\x06\xa5\x04\0\ + \xaf\x04\x01\x1ab\x20The\x20request\x20for\x20[UpdateInstance][google.sp\ + anner.admin.instance.v1.InstanceAdmin.UpdateInstance].\n\n\x0b\n\x03\x04\ + \n\x01\x12\x04\xa5\x04\x08\x1d\n\xdd\x01\n\x04\x04\n\x02\0\x12\x04\xa8\ + \x04\x02A\x1a\xce\x01\x20Required.\x20The\x20instance\x20to\x20update,\ + \x20which\x20must\x20always\x20include\x20the\x20instance\n\x20name.\x20\ + \x20Otherwise,\x20only\x20fields\x20mentioned\x20in\x20[][google.spanner\ + .admin.instance.v1.UpdateInstanceRequest.field_mask]\x20need\x20be\x20in\ + cluded.\n\n\r\n\x05\x04\n\x02\0\x06\x12\x04\xa8\x04\x02\n\n\r\n\x05\x04\ + \n\x02\0\x01\x12\x04\xa8\x04\x0b\x13\n\r\n\x05\x04\n\x02\0\x03\x12\x04\ + \xa8\x04\x16\x17\n\r\n\x05\x04\n\x02\0\x08\x12\x04\xa8\x04\x18@\n\x10\n\ + \x08\x04\n\x02\0\x08\x9c\x08\0\x12\x04\xa8\x04\x19?\n\xd7\x02\n\x04\x04\ + \n\x02\x01\x12\x04\xae\x04\x02T\x1a\xc8\x02\x20Required.\x20A\x20mask\ + \x20specifying\x20which\x20fields\x20in\x20[][google.spanner.admin.insta\ + nce.v1.UpdateInstanceRequest.instance]\x20should\x20be\x20updated.\n\x20\ + The\x20field\x20mask\x20must\x20always\x20be\x20specified;\x20this\x20pr\ + events\x20any\x20future\x20fields\x20in\n\x20[][google.spanner.admin.ins\ + tance.v1.Instance]\x20from\x20being\x20erased\x20accidentally\x20by\x20c\ + lients\x20that\x20do\x20not\x20know\n\x20about\x20them.\n\n\r\n\x05\x04\ + \n\x02\x01\x06\x12\x04\xae\x04\x02\x1b\n\r\n\x05\x04\n\x02\x01\x01\x12\ + \x04\xae\x04\x1c&\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xae\x04)*\n\r\n\ + \x05\x04\n\x02\x01\x08\x12\x04\xae\x04+S\n\x10\n\x08\x04\n\x02\x01\x08\ + \x9c\x08\0\x12\x04\xae\x04,R\np\n\x02\x04\x0b\x12\x06\xb2\x04\0\xbb\x04\ + \x01\x1ab\x20The\x20request\x20for\x20[DeleteInstance][google.spanner.ad\ + min.instance.v1.InstanceAdmin.DeleteInstance].\n\n\x0b\n\x03\x04\x0b\x01\ + \x12\x04\xb2\x04\x08\x1d\n\x85\x01\n\x04\x04\x0b\x02\0\x12\x06\xb5\x04\ + \x02\xba\x04\x04\x1au\x20Required.\x20The\x20name\x20of\x20the\x20instan\ + ce\x20to\x20be\x20deleted.\x20Values\x20are\x20of\x20the\x20form\n\x20`p\ + rojects//instances/`\n\n\r\n\x05\x04\x0b\x02\0\x05\ + \x12\x04\xb5\x04\x02\x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xb5\x04\t\r\ + \n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\xb5\x04\x10\x11\n\x0f\n\x05\x04\x0b\ + \x02\0\x08\x12\x06\xb5\x04\x12\xba\x04\x03\n\x10\n\x08\x04\x0b\x02\0\x08\ + \x9c\x08\0\x12\x04\xb6\x04\x04*\n\x11\n\x07\x04\x0b\x02\0\x08\x9f\x08\ + \x12\x06\xb7\x04\x04\xb9\x04\x05\n\x8d\x01\n\x02\x04\x0c\x12\x06\xbf\x04\ + \0\xcf\x04\x01\x1a\x7f\x20Metadata\x20type\x20for\x20the\x20operation\ + \x20returned\x20by\n\x20[CreateInstance][google.spanner.admin.instance.v\ + 1.InstanceAdmin.CreateInstance].\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xbf\ + \x04\x08\x1e\n+\n\x04\x04\x0c\x02\0\x12\x04\xc1\x04\x02\x18\x1a\x1d\x20T\ + he\x20instance\x20being\x20created.\n\n\r\n\x05\x04\x0c\x02\0\x06\x12\ + \x04\xc1\x04\x02\n\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xc1\x04\x0b\x13\n\ + \r\n\x05\x04\x0c\x02\0\x03\x12\x04\xc1\x04\x16\x17\n\x8d\x01\n\x04\x04\ + \x0c\x02\x01\x12\x04\xc6\x04\x02+\x1a\x7f\x20The\x20time\x20at\x20which\ \x20the\n\x20[CreateInstance][google.spanner.admin.instance.v1.InstanceA\ - dmin.CreateInstance]\n\x20request\x20was\x20received.\n\n\r\n\x05\x04\ - \x12\x02\x01\x06\x12\x04\xc9\x08\x02\x1b\n\r\n\x05\x04\x12\x02\x01\x01\ - \x12\x04\xc9\x08\x1c&\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xc9\x08)*\n\ - \xbd\x01\n\x04\x04\x12\x02\x02\x12\x04\xce\x08\x02,\x1a\xae\x01\x20The\ + dmin.CreateInstance]\x20request\x20was\n\x20received.\n\n\r\n\x05\x04\ + \x0c\x02\x01\x06\x12\x04\xc6\x04\x02\x1b\n\r\n\x05\x04\x0c\x02\x01\x01\ + \x12\x04\xc6\x04\x1c&\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xc6\x04)*\n\ + \xbd\x01\n\x04\x04\x0c\x02\x02\x12\x04\xcb\x04\x02,\x1a\xae\x01\x20The\ \x20time\x20at\x20which\x20this\x20operation\x20was\x20cancelled.\x20If\ \x20set,\x20this\x20operation\x20is\n\x20in\x20the\x20process\x20of\x20u\ ndoing\x20itself\x20(which\x20is\x20guaranteed\x20to\x20succeed)\x20and\ - \n\x20cannot\x20be\x20cancelled\x20again.\n\n\r\n\x05\x04\x12\x02\x02\ - \x06\x12\x04\xce\x08\x02\x1b\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xce\ - \x08\x1c'\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xce\x08*+\nV\n\x04\x04\ - \x12\x02\x03\x12\x04\xd1\x08\x02)\x1aH\x20The\x20time\x20at\x20which\x20\ + \n\x20cannot\x20be\x20cancelled\x20again.\n\n\r\n\x05\x04\x0c\x02\x02\ + \x06\x12\x04\xcb\x04\x02\x1b\n\r\n\x05\x04\x0c\x02\x02\x01\x12\x04\xcb\ + \x04\x1c'\n\r\n\x05\x04\x0c\x02\x02\x03\x12\x04\xcb\x04*+\nV\n\x04\x04\ + \x0c\x02\x03\x12\x04\xce\x04\x02)\x1aH\x20The\x20time\x20at\x20which\x20\ this\x20operation\x20failed\x20or\x20was\x20completed\x20successfully.\n\ - \n\r\n\x05\x04\x12\x02\x03\x06\x12\x04\xd1\x08\x02\x1b\n\r\n\x05\x04\x12\ - \x02\x03\x01\x12\x04\xd1\x08\x1c$\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\ - \xd1\x08'(\n\x8d\x01\n\x02\x04\x13\x12\x06\xd6\x08\0\xe6\x08\x01\x1a\x7f\ + \n\r\n\x05\x04\x0c\x02\x03\x06\x12\x04\xce\x04\x02\x1b\n\r\n\x05\x04\x0c\ + \x02\x03\x01\x12\x04\xce\x04\x1c$\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\ + \xce\x04'(\n\x8d\x01\n\x02\x04\r\x12\x06\xd3\x04\0\xe2\x04\x01\x1a\x7f\ \x20Metadata\x20type\x20for\x20the\x20operation\x20returned\x20by\n\x20[\ UpdateInstance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateIns\ - tance].\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xd6\x08\x08\x1e\n4\n\x04\x04\ - \x13\x02\0\x12\x04\xd8\x08\x02\x18\x1a&\x20The\x20desired\x20end\x20stat\ - e\x20of\x20the\x20update.\n\n\r\n\x05\x04\x13\x02\0\x06\x12\x04\xd8\x08\ - \x02\n\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xd8\x08\x0b\x13\n\r\n\x05\x04\ - \x13\x02\0\x03\x12\x04\xd8\x08\x16\x17\n\x89\x01\n\x04\x04\x13\x02\x01\ - \x12\x04\xdd\x08\x02+\x1a{\x20The\x20time\x20at\x20which\n\x20[UpdateIns\ - tance][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]\n\ - \x20request\x20was\x20received.\n\n\r\n\x05\x04\x13\x02\x01\x06\x12\x04\ - \xdd\x08\x02\x1b\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xdd\x08\x1c&\n\r\ - \n\x05\x04\x13\x02\x01\x03\x12\x04\xdd\x08)*\n\xbd\x01\n\x04\x04\x13\x02\ - \x02\x12\x04\xe2\x08\x02,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20t\ - his\x20operation\x20was\x20cancelled.\x20If\x20set,\x20this\x20operation\ - \x20is\n\x20in\x20the\x20process\x20of\x20undoing\x20itself\x20(which\ - \x20is\x20guaranteed\x20to\x20succeed)\x20and\n\x20cannot\x20be\x20cance\ - lled\x20again.\n\n\r\n\x05\x04\x13\x02\x02\x06\x12\x04\xe2\x08\x02\x1b\n\ - \r\n\x05\x04\x13\x02\x02\x01\x12\x04\xe2\x08\x1c'\n\r\n\x05\x04\x13\x02\ - \x02\x03\x12\x04\xe2\x08*+\nV\n\x04\x04\x13\x02\x03\x12\x04\xe5\x08\x02)\ - \x1aH\x20The\x20time\x20at\x20which\x20this\x20operation\x20failed\x20or\ - \x20was\x20completed\x20successfully.\n\n\r\n\x05\x04\x13\x02\x03\x06\ - \x12\x04\xe5\x08\x02\x1b\n\r\n\x05\x04\x13\x02\x03\x01\x12\x04\xe5\x08\ - \x1c$\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\xe5\x08'(\n\x9a\x01\n\x02\ - \x04\x14\x12\x06\xea\x08\0\xf5\x08\x01\x1a\x8b\x01\x20Metadata\x20type\ - \x20for\x20the\x20operation\x20returned\x20by\n\x20[CreateInstanceConfig\ - ][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].\ - \n\n\x0b\n\x03\x04\x14\x01\x12\x04\xea\x08\x08$\n5\n\x04\x04\x14\x02\0\ - \x12\x04\xec\x08\x02%\x1a'\x20The\x20target\x20instance\x20config\x20end\ - \x20state.\n\n\r\n\x05\x04\x14\x02\0\x06\x12\x04\xec\x08\x02\x10\n\r\n\ - \x05\x04\x14\x02\0\x01\x12\x04\xec\x08\x11\x20\n\r\n\x05\x04\x14\x02\0\ - \x03\x12\x04\xec\x08#$\n\x8c\x01\n\x04\x04\x14\x02\x01\x12\x04\xf1\x08\ - \x02!\x1a~\x20The\x20progress\x20of\x20the\n\x20[CreateInstanceConfig][g\ - oogle.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]\n\ - \x20operation.\n\n\r\n\x05\x04\x14\x02\x01\x06\x12\x04\xf1\x08\x02\x13\n\ - \r\n\x05\x04\x14\x02\x01\x01\x12\x04\xf1\x08\x14\x1c\n\r\n\x05\x04\x14\ - \x02\x01\x03\x12\x04\xf1\x08\x1f\x20\n?\n\x04\x04\x14\x02\x02\x12\x04\ - \xf4\x08\x02,\x1a1\x20The\x20time\x20at\x20which\x20this\x20operation\ - \x20was\x20cancelled.\n\n\r\n\x05\x04\x14\x02\x02\x06\x12\x04\xf4\x08\ - \x02\x1b\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xf4\x08\x1c'\n\r\n\x05\ - \x04\x14\x02\x02\x03\x12\x04\xf4\x08*+\n\x9a\x01\n\x02\x04\x15\x12\x06\ - \xf9\x08\0\x84\t\x01\x1a\x8b\x01\x20Metadata\x20type\x20for\x20the\x20op\ - eration\x20returned\x20by\n\x20[UpdateInstanceConfig][google.spanner.adm\ - in.instance.v1.InstanceAdmin.UpdateInstanceConfig].\n\n\x0b\n\x03\x04\ - \x15\x01\x12\x04\xf9\x08\x08$\n;\n\x04\x04\x15\x02\0\x12\x04\xfb\x08\x02\ - %\x1a-\x20The\x20desired\x20instance\x20config\x20after\x20updating.\n\n\ - \r\n\x05\x04\x15\x02\0\x06\x12\x04\xfb\x08\x02\x10\n\r\n\x05\x04\x15\x02\ - \0\x01\x12\x04\xfb\x08\x11\x20\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xfb\ - \x08#$\n\x8c\x01\n\x04\x04\x15\x02\x01\x12\x04\x80\t\x02!\x1a~\x20The\ - \x20progress\x20of\x20the\n\x20[UpdateInstanceConfig][google.spanner.adm\ - in.instance.v1.InstanceAdmin.UpdateInstanceConfig]\n\x20operation.\n\n\r\ - \n\x05\x04\x15\x02\x01\x06\x12\x04\x80\t\x02\x13\n\r\n\x05\x04\x15\x02\ - \x01\x01\x12\x04\x80\t\x14\x1c\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\x80\ - \t\x1f\x20\n?\n\x04\x04\x15\x02\x02\x12\x04\x83\t\x02,\x1a1\x20The\x20ti\ - me\x20at\x20which\x20this\x20operation\x20was\x20cancelled.\n\n\r\n\x05\ - \x04\x15\x02\x02\x06\x12\x04\x83\t\x02\x1b\n\r\n\x05\x04\x15\x02\x02\x01\ - \x12\x04\x83\t\x1c'\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\x83\t*+b\x06pr\ - oto3\ + tance].\n\n\x0b\n\x03\x04\r\x01\x12\x04\xd3\x04\x08\x1e\n4\n\x04\x04\r\ + \x02\0\x12\x04\xd5\x04\x02\x18\x1a&\x20The\x20desired\x20end\x20state\ + \x20of\x20the\x20update.\n\n\r\n\x05\x04\r\x02\0\x06\x12\x04\xd5\x04\x02\ + \n\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xd5\x04\x0b\x13\n\r\n\x05\x04\r\x02\ + \0\x03\x12\x04\xd5\x04\x16\x17\n\x88\x01\n\x04\x04\r\x02\x01\x12\x04\xd9\ + \x04\x02+\x1az\x20The\x20time\x20at\x20which\x20[UpdateInstance][google.\ + spanner.admin.instance.v1.InstanceAdmin.UpdateInstance]\n\x20request\x20\ + was\x20received.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xd9\x04\x02\x1b\n\ + \r\n\x05\x04\r\x02\x01\x01\x12\x04\xd9\x04\x1c&\n\r\n\x05\x04\r\x02\x01\ + \x03\x12\x04\xd9\x04)*\n\xbd\x01\n\x04\x04\r\x02\x02\x12\x04\xde\x04\x02\ + ,\x1a\xae\x01\x20The\x20time\x20at\x20which\x20this\x20operation\x20was\ + \x20cancelled.\x20If\x20set,\x20this\x20operation\x20is\n\x20in\x20the\ + \x20process\x20of\x20undoing\x20itself\x20(which\x20is\x20guaranteed\x20\ + to\x20succeed)\x20and\n\x20cannot\x20be\x20cancelled\x20again.\n\n\r\n\ + \x05\x04\r\x02\x02\x06\x12\x04\xde\x04\x02\x1b\n\r\n\x05\x04\r\x02\x02\ + \x01\x12\x04\xde\x04\x1c'\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xde\x04*+\ + \nV\n\x04\x04\r\x02\x03\x12\x04\xe1\x04\x02)\x1aH\x20The\x20time\x20at\ + \x20which\x20this\x20operation\x20failed\x20or\x20was\x20completed\x20su\ + ccessfully.\n\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xe1\x04\x02\x1b\n\r\n\ + \x05\x04\r\x02\x03\x01\x12\x04\xe1\x04\x1c$\n\r\n\x05\x04\r\x02\x03\x03\ + \x12\x04\xe1\x04'(b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(10); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(super::iam_policy::file_descriptor().clone()); + deps.push(super::policy::file_descriptor().clone()); + deps.push(super::operations::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::field_mask::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(14); + messages.push(ReplicaInfo::generated_message_descriptor_data()); + messages.push(InstanceConfig::generated_message_descriptor_data()); + messages.push(Instance::generated_message_descriptor_data()); + messages.push(ListInstanceConfigsRequest::generated_message_descriptor_data()); + messages.push(ListInstanceConfigsResponse::generated_message_descriptor_data()); + messages.push(GetInstanceConfigRequest::generated_message_descriptor_data()); + messages.push(GetInstanceRequest::generated_message_descriptor_data()); + messages.push(CreateInstanceRequest::generated_message_descriptor_data()); + messages.push(ListInstancesRequest::generated_message_descriptor_data()); + messages.push(ListInstancesResponse::generated_message_descriptor_data()); + messages.push(UpdateInstanceRequest::generated_message_descriptor_data()); + messages.push(DeleteInstanceRequest::generated_message_descriptor_data()); + messages.push(CreateInstanceMetadata::generated_message_descriptor_data()); + messages.push(UpdateInstanceMetadata::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(2); + enums.push(replica_info::ReplicaType::generated_enum_descriptor_data()); + enums.push(instance::State::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs index ca8be3c..d5a7be9 100644 --- a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs +++ b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin_grpc.rs @@ -30,34 +30,6 @@ const METHOD_INSTANCE_ADMIN_GET_INSTANCE_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.instance.v1.InstanceAdmin/CreateInstanceConfig", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_INSTANCE_ADMIN_UPDATE_INSTANCE_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.instance.v1.InstanceAdmin/UpdateInstanceConfig", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_INSTANCE_ADMIN_DELETE_INSTANCE_CONFIG: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstanceConfig", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - -const METHOD_INSTANCE_ADMIN_LIST_INSTANCE_CONFIG_OPERATIONS: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::Unary, - name: "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstanceConfigOperations", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - const METHOD_INSTANCE_ADMIN_LIST_INSTANCES: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.spanner.admin.instance.v1.InstanceAdmin/ListInstances", @@ -158,70 +130,6 @@ impl InstanceAdminClient { self.get_instance_config_async_opt(req, ::grpcio::CallOption::default()) } - pub fn create_instance_config_opt(&self, req: &super::spanner_instance_admin::CreateInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_INSTANCE_ADMIN_CREATE_INSTANCE_CONFIG, req, opt) - } - - pub fn create_instance_config(&self, req: &super::spanner_instance_admin::CreateInstanceConfigRequest) -> ::grpcio::Result { - self.create_instance_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn create_instance_config_async_opt(&self, req: &super::spanner_instance_admin::CreateInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_INSTANCE_ADMIN_CREATE_INSTANCE_CONFIG, req, opt) - } - - pub fn create_instance_config_async(&self, req: &super::spanner_instance_admin::CreateInstanceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.create_instance_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_instance_config_opt(&self, req: &super::spanner_instance_admin::UpdateInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_INSTANCE_ADMIN_UPDATE_INSTANCE_CONFIG, req, opt) - } - - pub fn update_instance_config(&self, req: &super::spanner_instance_admin::UpdateInstanceConfigRequest) -> ::grpcio::Result { - self.update_instance_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn update_instance_config_async_opt(&self, req: &super::spanner_instance_admin::UpdateInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_INSTANCE_ADMIN_UPDATE_INSTANCE_CONFIG, req, opt) - } - - pub fn update_instance_config_async(&self, req: &super::spanner_instance_admin::UpdateInstanceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.update_instance_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_instance_config_opt(&self, req: &super::spanner_instance_admin::DeleteInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_INSTANCE_ADMIN_DELETE_INSTANCE_CONFIG, req, opt) - } - - pub fn delete_instance_config(&self, req: &super::spanner_instance_admin::DeleteInstanceConfigRequest) -> ::grpcio::Result { - self.delete_instance_config_opt(req, ::grpcio::CallOption::default()) - } - - pub fn delete_instance_config_async_opt(&self, req: &super::spanner_instance_admin::DeleteInstanceConfigRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_INSTANCE_ADMIN_DELETE_INSTANCE_CONFIG, req, opt) - } - - pub fn delete_instance_config_async(&self, req: &super::spanner_instance_admin::DeleteInstanceConfigRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.delete_instance_config_async_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instance_config_operations_opt(&self, req: &super::spanner_instance_admin::ListInstanceConfigOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { - self.client.unary_call(&METHOD_INSTANCE_ADMIN_LIST_INSTANCE_CONFIG_OPERATIONS, req, opt) - } - - pub fn list_instance_config_operations(&self, req: &super::spanner_instance_admin::ListInstanceConfigOperationsRequest) -> ::grpcio::Result { - self.list_instance_config_operations_opt(req, ::grpcio::CallOption::default()) - } - - pub fn list_instance_config_operations_async_opt(&self, req: &super::spanner_instance_admin::ListInstanceConfigOperationsRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.client.unary_call_async(&METHOD_INSTANCE_ADMIN_LIST_INSTANCE_CONFIG_OPERATIONS, req, opt) - } - - pub fn list_instance_config_operations_async(&self, req: &super::spanner_instance_admin::ListInstanceConfigOperationsRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { - self.list_instance_config_operations_async_opt(req, ::grpcio::CallOption::default()) - } - pub fn list_instances_opt(&self, req: &super::spanner_instance_admin::ListInstancesRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_INSTANCE_ADMIN_LIST_INSTANCES, req, opt) } @@ -361,18 +269,6 @@ pub trait InstanceAdmin { fn get_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::GetInstanceConfigRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn create_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::CreateInstanceConfigRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn update_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::UpdateInstanceConfigRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn delete_instance_config(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::DeleteInstanceConfigRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } - fn list_instance_config_operations(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::ListInstanceConfigOperationsRequest, sink: ::grpcio::UnarySink) { - grpcio::unimplemented_call!(ctx, sink) - } fn list_instances(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner_instance_admin::ListInstancesRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } @@ -410,22 +306,6 @@ pub fn create_instance_admin(s: S) -> instance.get_instance_config(ctx, req, resp) }); let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_INSTANCE_ADMIN_CREATE_INSTANCE_CONFIG, move |ctx, req, resp| { - instance.create_instance_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_INSTANCE_ADMIN_UPDATE_INSTANCE_CONFIG, move |ctx, req, resp| { - instance.update_instance_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_INSTANCE_ADMIN_DELETE_INSTANCE_CONFIG, move |ctx, req, resp| { - instance.delete_instance_config(ctx, req, resp) - }); - let mut instance = s.clone(); - builder = builder.add_unary_handler(&METHOD_INSTANCE_ADMIN_LIST_INSTANCE_CONFIG_OPERATIONS, move |ctx, req, resp| { - instance.list_instance_config_operations(ctx, req, resp) - }); - let mut instance = s.clone(); builder = builder.add_unary_handler(&METHOD_INSTANCE_ADMIN_LIST_INSTANCES, move |ctx, req, resp| { instance.list_instances(ctx, req, resp) }); diff --git a/googleapis-raw/src/spanner/v1/commit_response.rs b/googleapis-raw/src/spanner/v1/commit_response.rs deleted file mode 100644 index 198dd07..0000000 --- a/googleapis-raw/src/spanner/v1/commit_response.rs +++ /dev/null @@ -1,479 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/spanner/v1/commit_response.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CommitResponse { - // message fields - pub commit_timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub commit_stats: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommitResponse { - fn default() -> &'a CommitResponse { - ::default_instance() - } -} - -impl CommitResponse { - pub fn new() -> CommitResponse { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp commit_timestamp = 1; - - - pub fn get_commit_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.commit_timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_commit_timestamp(&mut self) { - self.commit_timestamp.clear(); - } - - pub fn has_commit_timestamp(&self) -> bool { - self.commit_timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_commit_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.commit_timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_commit_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.commit_timestamp.is_none() { - self.commit_timestamp.set_default(); - } - self.commit_timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_commit_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.commit_timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.spanner.v1.CommitResponse.CommitStats commit_stats = 2; - - - pub fn get_commit_stats(&self) -> &CommitResponse_CommitStats { - self.commit_stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_commit_stats(&mut self) { - self.commit_stats.clear(); - } - - pub fn has_commit_stats(&self) -> bool { - self.commit_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_commit_stats(&mut self, v: CommitResponse_CommitStats) { - self.commit_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_commit_stats(&mut self) -> &mut CommitResponse_CommitStats { - if self.commit_stats.is_none() { - self.commit_stats.set_default(); - } - self.commit_stats.as_mut().unwrap() - } - - // Take field - pub fn take_commit_stats(&mut self) -> CommitResponse_CommitStats { - self.commit_stats.take().unwrap_or_else(|| CommitResponse_CommitStats::new()) - } -} - -impl ::protobuf::Message for CommitResponse { - fn is_initialized(&self) -> bool { - for v in &self.commit_timestamp { - if !v.is_initialized() { - return false; - } - }; - for v in &self.commit_stats { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.commit_timestamp)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.commit_stats)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.commit_timestamp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.commit_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.commit_timestamp.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.commit_stats.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommitResponse { - CommitResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "commit_timestamp", - |m: &CommitResponse| { &m.commit_timestamp }, - |m: &mut CommitResponse| { &mut m.commit_timestamp }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "commit_stats", - |m: &CommitResponse| { &m.commit_stats }, - |m: &mut CommitResponse| { &mut m.commit_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommitResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitResponse::new) - } -} - -impl ::protobuf::Clear for CommitResponse { - fn clear(&mut self) { - self.commit_timestamp.clear(); - self.commit_stats.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommitResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommitResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CommitResponse_CommitStats { - // message fields - pub mutation_count: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CommitResponse_CommitStats { - fn default() -> &'a CommitResponse_CommitStats { - ::default_instance() - } -} - -impl CommitResponse_CommitStats { - pub fn new() -> CommitResponse_CommitStats { - ::std::default::Default::default() - } - - // int64 mutation_count = 1; - - - pub fn get_mutation_count(&self) -> i64 { - self.mutation_count - } - pub fn clear_mutation_count(&mut self) { - self.mutation_count = 0; - } - - // Param is passed by value, moved - pub fn set_mutation_count(&mut self, v: i64) { - self.mutation_count = v; - } -} - -impl ::protobuf::Message for CommitResponse_CommitStats { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.mutation_count = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.mutation_count != 0 { - my_size += ::protobuf::rt::value_size(1, self.mutation_count, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.mutation_count != 0 { - os.write_int64(1, self.mutation_count)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CommitResponse_CommitStats { - CommitResponse_CommitStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "mutation_count", - |m: &CommitResponse_CommitStats| { &m.mutation_count }, - |m: &mut CommitResponse_CommitStats| { &mut m.mutation_count }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitResponse.CommitStats", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static CommitResponse_CommitStats { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitResponse_CommitStats::new) - } -} - -impl ::protobuf::Clear for CommitResponse_CommitStats { - fn clear(&mut self) { - self.mutation_count = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CommitResponse_CommitStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CommitResponse_CommitStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n'google/spanner/v1/commit_response.proto\x12\x11google.spanner.v1\x1a\ - \x1fgoogle/protobuf/timestamp.proto\"\xdf\x01\n\x0eCommitResponse\x12E\n\ - \x10commit_timestamp\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.Timestamp\ - R\x0fcommitTimestamp\x12P\n\x0ccommit_stats\x18\x02\x20\x01(\x0b2-.googl\ - e.spanner.v1.CommitResponse.CommitStatsR\x0bcommitStats\x1a4\n\x0bCommit\ - Stats\x12%\n\x0emutation_count\x18\x01\x20\x01(\x03R\rmutationCountB\xb6\ - \x01\n\x15com.google.spanner.v1B\x13CommitResponseProtoP\x01Z5cloud.goog\ - le.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Span\ - ner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::S\ - panner::V1J\xe9\x0e\n\x06\x12\x04\x0e\01\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20License\ - d\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"L\ - icense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ - \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ - S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ - \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ - \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0\x1a\n\t\n\x02\x03\0\x12\x03\x12\0)\n\x08\n\ - \x01\x08\x12\x03\x14\04\n\t\n\x02\x08%\x12\x03\x14\04\n\x08\n\x01\x08\ - \x12\x03\x15\0L\n\t\n\x02\x08\x0b\x12\x03\x15\0L\n\x08\n\x01\x08\x12\x03\ - \x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\04\ - \n\t\n\x02\x08\x08\x12\x03\x17\04\n\x08\n\x01\x08\x12\x03\x18\0.\n\t\n\ - \x02\x08\x01\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\x19\04\n\t\n\x02\x08\ - )\x12\x03\x19\04\n\x08\n\x01\x08\x12\x03\x1a\03\n\t\n\x02\x08-\x12\x03\ - \x1a\03\nJ\n\x02\x04\0\x12\x04\x1d\01\x01\x1a>\x20The\x20response\x20for\ - \x20[Commit][google.spanner.v1.Spanner.Commit].\n\n\n\n\x03\x04\0\x01\ - \x12\x03\x1d\x08\x16\n5\n\x04\x04\0\x03\0\x12\x04\x1f\x02(\x03\x1a'\x20A\ - dditional\x20statistics\x20about\x20a\x20commit.\n\n\x0c\n\x05\x04\0\x03\ - \0\x01\x12\x03\x1f\n\x15\n\xc3\x04\n\x06\x04\0\x03\0\x02\0\x12\x03'\x04\ - \x1d\x1a\xb3\x04\x20The\x20total\x20number\x20of\x20mutations\x20for\x20\ - the\x20transaction.\x20Knowing\x20the\n\x20`mutation_count`\x20value\x20\ - can\x20help\x20you\x20maximize\x20the\x20number\x20of\x20mutations\n\x20\ - in\x20a\x20transaction\x20and\x20minimize\x20the\x20number\x20of\x20API\ - \x20round\x20trips.\x20You\x20can\n\x20also\x20monitor\x20this\x20value\ - \x20to\x20prevent\x20transactions\x20from\x20exceeding\x20the\x20system\ - \n\x20[limit](https://cloud.google.com/spanner/quotas#limits_for_creatin\ - g_reading_updating_and_deleting_data).\n\x20If\x20the\x20number\x20of\ - \x20mutations\x20exceeds\x20the\x20limit,\x20the\x20server\x20returns\n\ - \x20[INVALID_ARGUMENT](https://cloud.google.com/spanner/docs/reference/r\ - est/v1/Code#ENUM_VALUES.INVALID_ARGUMENT).\n\n\x0e\n\x07\x04\0\x03\0\x02\ - \0\x05\x12\x03'\x04\t\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03'\n\x18\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03'\x1b\x1c\nN\n\x04\x04\0\x02\0\ - \x12\x03+\x021\x1aA\x20The\x20Cloud\x20Spanner\x20timestamp\x20at\x20whi\ - ch\x20the\x20transaction\x20committed.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\ - \x03+\x02\x1b\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03+\x1c,\n\x0c\n\x05\x04\ - \0\x02\0\x03\x12\x03+/0\n\xc0\x01\n\x04\x04\0\x02\x01\x12\x030\x02\x1f\ - \x1a\xb2\x01\x20The\x20statistics\x20about\x20this\x20Commit.\x20Not\x20\ - returned\x20by\x20default.\n\x20For\x20more\x20information,\x20see\n\x20\ - [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.retu\ - rn_commit_stats].\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x030\x02\r\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x030\x0e\x1a\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x030\x1d\x1eb\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/spanner/v1/keys.rs b/googleapis-raw/src/spanner/v1/keys.rs index aca5929..1b5458c 100644 --- a/googleapis-raw/src/spanner/v1/keys.rs +++ b/googleapis-raw/src/spanner/v1/keys.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,24 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/keys.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.spanner.v1.KeyRange) +#[derive(PartialEq,Clone,Default,Debug)] pub struct KeyRange { // message oneof groups - pub start_key_type: ::std::option::Option, - pub end_key_type: ::std::option::Option, + pub start_key_type: ::std::option::Option, + pub end_key_type: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.KeyRange.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a KeyRange { @@ -39,18 +42,6 @@ impl<'a> ::std::default::Default for &'a KeyRange { } } -#[derive(Clone,PartialEq,Debug)] -pub enum KeyRange_oneof_start_key_type { - start_closed(::protobuf::well_known_types::ListValue), - start_open(::protobuf::well_known_types::ListValue), -} - -#[derive(Clone,PartialEq,Debug)] -pub enum KeyRange_oneof_end_key_type { - end_closed(::protobuf::well_known_types::ListValue), - end_open(::protobuf::well_known_types::ListValue), -} - impl KeyRange { pub fn new() -> KeyRange { ::std::default::Default::default() @@ -58,256 +49,265 @@ impl KeyRange { // .google.protobuf.ListValue start_closed = 1; - - pub fn get_start_closed(&self) -> &::protobuf::well_known_types::ListValue { + pub fn start_closed(&self) -> &::protobuf::well_known_types::struct_::ListValue { match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(ref v)) => v, - _ => <::protobuf::well_known_types::ListValue as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(key_range::Start_key_type::StartClosed(ref v)) => v, + _ => <::protobuf::well_known_types::struct_::ListValue as ::protobuf::Message>::default_instance(), } } + pub fn clear_start_closed(&mut self) { self.start_key_type = ::std::option::Option::None; } pub fn has_start_closed(&self) -> bool { match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(..)) => true, + ::std::option::Option::Some(key_range::Start_key_type::StartClosed(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_start_closed(&mut self, v: ::protobuf::well_known_types::ListValue) { - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(v)) + pub fn set_start_closed(&mut self, v: ::protobuf::well_known_types::struct_::ListValue) { + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartClosed(v)) } // Mutable pointer to the field. - pub fn mut_start_closed(&mut self) -> &mut ::protobuf::well_known_types::ListValue { - if let ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(_)) = self.start_key_type { + pub fn mut_start_closed(&mut self) -> &mut ::protobuf::well_known_types::struct_::ListValue { + if let ::std::option::Option::Some(key_range::Start_key_type::StartClosed(_)) = self.start_key_type { } else { - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(::protobuf::well_known_types::ListValue::new())); + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartClosed(::protobuf::well_known_types::struct_::ListValue::new())); } match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(ref mut v)) => v, + ::std::option::Option::Some(key_range::Start_key_type::StartClosed(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_start_closed(&mut self) -> ::protobuf::well_known_types::ListValue { + pub fn take_start_closed(&mut self) -> ::protobuf::well_known_types::struct_::ListValue { if self.has_start_closed() { match self.start_key_type.take() { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(v)) => v, + ::std::option::Option::Some(key_range::Start_key_type::StartClosed(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::ListValue::new() + ::protobuf::well_known_types::struct_::ListValue::new() } } // .google.protobuf.ListValue start_open = 2; - - pub fn get_start_open(&self) -> &::protobuf::well_known_types::ListValue { + pub fn start_open(&self) -> &::protobuf::well_known_types::struct_::ListValue { match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(ref v)) => v, - _ => <::protobuf::well_known_types::ListValue as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(key_range::Start_key_type::StartOpen(ref v)) => v, + _ => <::protobuf::well_known_types::struct_::ListValue as ::protobuf::Message>::default_instance(), } } + pub fn clear_start_open(&mut self) { self.start_key_type = ::std::option::Option::None; } pub fn has_start_open(&self) -> bool { match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(..)) => true, + ::std::option::Option::Some(key_range::Start_key_type::StartOpen(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_start_open(&mut self, v: ::protobuf::well_known_types::ListValue) { - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(v)) + pub fn set_start_open(&mut self, v: ::protobuf::well_known_types::struct_::ListValue) { + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartOpen(v)) } // Mutable pointer to the field. - pub fn mut_start_open(&mut self) -> &mut ::protobuf::well_known_types::ListValue { - if let ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(_)) = self.start_key_type { + pub fn mut_start_open(&mut self) -> &mut ::protobuf::well_known_types::struct_::ListValue { + if let ::std::option::Option::Some(key_range::Start_key_type::StartOpen(_)) = self.start_key_type { } else { - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(::protobuf::well_known_types::ListValue::new())); + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartOpen(::protobuf::well_known_types::struct_::ListValue::new())); } match self.start_key_type { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(ref mut v)) => v, + ::std::option::Option::Some(key_range::Start_key_type::StartOpen(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_start_open(&mut self) -> ::protobuf::well_known_types::ListValue { + pub fn take_start_open(&mut self) -> ::protobuf::well_known_types::struct_::ListValue { if self.has_start_open() { match self.start_key_type.take() { - ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(v)) => v, + ::std::option::Option::Some(key_range::Start_key_type::StartOpen(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::ListValue::new() + ::protobuf::well_known_types::struct_::ListValue::new() } } // .google.protobuf.ListValue end_closed = 3; - - pub fn get_end_closed(&self) -> &::protobuf::well_known_types::ListValue { + pub fn end_closed(&self) -> &::protobuf::well_known_types::struct_::ListValue { match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(ref v)) => v, - _ => <::protobuf::well_known_types::ListValue as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(key_range::End_key_type::EndClosed(ref v)) => v, + _ => <::protobuf::well_known_types::struct_::ListValue as ::protobuf::Message>::default_instance(), } } + pub fn clear_end_closed(&mut self) { self.end_key_type = ::std::option::Option::None; } pub fn has_end_closed(&self) -> bool { match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(..)) => true, + ::std::option::Option::Some(key_range::End_key_type::EndClosed(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_end_closed(&mut self, v: ::protobuf::well_known_types::ListValue) { - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(v)) + pub fn set_end_closed(&mut self, v: ::protobuf::well_known_types::struct_::ListValue) { + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndClosed(v)) } // Mutable pointer to the field. - pub fn mut_end_closed(&mut self) -> &mut ::protobuf::well_known_types::ListValue { - if let ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(_)) = self.end_key_type { + pub fn mut_end_closed(&mut self) -> &mut ::protobuf::well_known_types::struct_::ListValue { + if let ::std::option::Option::Some(key_range::End_key_type::EndClosed(_)) = self.end_key_type { } else { - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(::protobuf::well_known_types::ListValue::new())); + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndClosed(::protobuf::well_known_types::struct_::ListValue::new())); } match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(ref mut v)) => v, + ::std::option::Option::Some(key_range::End_key_type::EndClosed(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_end_closed(&mut self) -> ::protobuf::well_known_types::ListValue { + pub fn take_end_closed(&mut self) -> ::protobuf::well_known_types::struct_::ListValue { if self.has_end_closed() { match self.end_key_type.take() { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(v)) => v, + ::std::option::Option::Some(key_range::End_key_type::EndClosed(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::ListValue::new() + ::protobuf::well_known_types::struct_::ListValue::new() } } // .google.protobuf.ListValue end_open = 4; - - pub fn get_end_open(&self) -> &::protobuf::well_known_types::ListValue { + pub fn end_open(&self) -> &::protobuf::well_known_types::struct_::ListValue { match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(ref v)) => v, - _ => <::protobuf::well_known_types::ListValue as ::protobuf::Message>::default_instance(), + ::std::option::Option::Some(key_range::End_key_type::EndOpen(ref v)) => v, + _ => <::protobuf::well_known_types::struct_::ListValue as ::protobuf::Message>::default_instance(), } } + pub fn clear_end_open(&mut self) { self.end_key_type = ::std::option::Option::None; } pub fn has_end_open(&self) -> bool { match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(..)) => true, + ::std::option::Option::Some(key_range::End_key_type::EndOpen(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_end_open(&mut self, v: ::protobuf::well_known_types::ListValue) { - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(v)) + pub fn set_end_open(&mut self, v: ::protobuf::well_known_types::struct_::ListValue) { + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndOpen(v)) } // Mutable pointer to the field. - pub fn mut_end_open(&mut self) -> &mut ::protobuf::well_known_types::ListValue { - if let ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(_)) = self.end_key_type { + pub fn mut_end_open(&mut self) -> &mut ::protobuf::well_known_types::struct_::ListValue { + if let ::std::option::Option::Some(key_range::End_key_type::EndOpen(_)) = self.end_key_type { } else { - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(::protobuf::well_known_types::ListValue::new())); + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndOpen(::protobuf::well_known_types::struct_::ListValue::new())); } match self.end_key_type { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(ref mut v)) => v, + ::std::option::Option::Some(key_range::End_key_type::EndOpen(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_end_open(&mut self) -> ::protobuf::well_known_types::ListValue { + pub fn take_end_open(&mut self) -> ::protobuf::well_known_types::struct_::ListValue { if self.has_end_open() { match self.end_key_type.take() { - ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(v)) => v, + ::std::option::Option::Some(key_range::End_key_type::EndOpen(v)) => v, _ => panic!(), } } else { - ::protobuf::well_known_types::ListValue::new() - } + ::protobuf::well_known_types::struct_::ListValue::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(2); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::struct_::ListValue>( + "start_closed", + KeyRange::has_start_closed, + KeyRange::start_closed, + KeyRange::mut_start_closed, + KeyRange::set_start_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::struct_::ListValue>( + "start_open", + KeyRange::has_start_open, + KeyRange::start_open, + KeyRange::mut_start_open, + KeyRange::set_start_open, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::struct_::ListValue>( + "end_closed", + KeyRange::has_end_closed, + KeyRange::end_closed, + KeyRange::mut_end_closed, + KeyRange::set_end_closed, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::struct_::ListValue>( + "end_open", + KeyRange::has_end_open, + KeyRange::end_open, + KeyRange::mut_end_open, + KeyRange::set_end_open, + )); + oneofs.push(key_range::Start_key_type::generated_oneof_descriptor_data()); + oneofs.push(key_range::End_key_type::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "KeyRange", + fields, + oneofs, + ) } } impl ::protobuf::Message for KeyRange { + const NAME: &'static str = "KeyRange"; + fn is_initialized(&self) -> bool { - if let Some(KeyRange_oneof_start_key_type::start_closed(ref v)) = self.start_key_type { - if !v.is_initialized() { - return false; - } - } - if let Some(KeyRange_oneof_start_key_type::start_open(ref v)) = self.start_key_type { - if !v.is_initialized() { - return false; - } - } - if let Some(KeyRange_oneof_end_key_type::end_closed(ref v)) = self.end_key_type { - if !v.is_initialized() { - return false; - } - } - if let Some(KeyRange_oneof_end_key_type::end_open(ref v)) = self.end_key_type { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_closed(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartClosed(is.read_message()?)); }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.start_key_type = ::std::option::Option::Some(KeyRange_oneof_start_key_type::start_open(is.read_message()?)); + 18 => { + self.start_key_type = ::std::option::Option::Some(key_range::Start_key_type::StartOpen(is.read_message()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_closed(is.read_message()?)); + 26 => { + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndClosed(is.read_message()?)); }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.end_key_type = ::std::option::Option::Some(KeyRange_oneof_end_key_type::end_open(is.read_message()?)); + 34 => { + self.end_key_type = ::std::option::Option::Some(key_range::End_key_type::EndOpen(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -316,282 +316,254 @@ impl ::protobuf::Message for KeyRange { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.start_key_type { match v { - &KeyRange_oneof_start_key_type::start_closed(ref v) => { + &key_range::Start_key_type::StartClosed(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &KeyRange_oneof_start_key_type::start_open(ref v) => { + &key_range::Start_key_type::StartOpen(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } if let ::std::option::Option::Some(ref v) = self.end_key_type { match v { - &KeyRange_oneof_end_key_type::end_closed(ref v) => { + &key_range::End_key_type::EndClosed(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &KeyRange_oneof_end_key_type::end_open(ref v) => { + &key_range::End_key_type::EndOpen(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.start_key_type { match v { - &KeyRange_oneof_start_key_type::start_closed(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &key_range::Start_key_type::StartClosed(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }, - &KeyRange_oneof_start_key_type::start_open(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &key_range::Start_key_type::StartOpen(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }, }; } if let ::std::option::Option::Some(ref v) = self.end_key_type { match v { - &KeyRange_oneof_end_key_type::end_closed(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &key_range::End_key_type::EndClosed(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }, - &KeyRange_oneof_end_key_type::end_open(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &key_range::End_key_type::EndOpen(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> KeyRange { KeyRange::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::ListValue>( - "start_closed", - KeyRange::has_start_closed, - KeyRange::get_start_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::ListValue>( - "start_open", - KeyRange::has_start_open, - KeyRange::get_start_open, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::ListValue>( - "end_closed", - KeyRange::has_end_closed, - KeyRange::get_end_closed, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::ListValue>( - "end_open", - KeyRange::has_end_open, - KeyRange::get_end_open, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "KeyRange", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.start_key_type = ::std::option::Option::None; + self.start_key_type = ::std::option::Option::None; + self.end_key_type = ::std::option::Option::None; + self.end_key_type = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static KeyRange { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(KeyRange::new) + static instance: KeyRange = KeyRange { + start_key_type: ::std::option::Option::None, + end_key_type: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for KeyRange { - fn clear(&mut self) { - self.start_key_type = ::std::option::Option::None; - self.start_key_type = ::std::option::Option::None; - self.end_key_type = ::std::option::Option::None; - self.end_key_type = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for KeyRange { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("KeyRange").unwrap()).clone() } } -impl ::std::fmt::Debug for KeyRange { +impl ::std::fmt::Display for KeyRange { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for KeyRange { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct KeySet { - // message fields - pub keys: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>, - pub ranges: ::protobuf::RepeatedField, - pub all: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `KeyRange` +pub mod key_range { -impl<'a> ::std::default::Default for &'a KeySet { - fn default() -> &'a KeySet { - ::default_instance() + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.KeyRange.start_key_type) + pub enum Start_key_type { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.KeyRange.start_closed) + StartClosed(::protobuf::well_known_types::struct_::ListValue), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.KeyRange.start_open) + StartOpen(::protobuf::well_known_types::struct_::ListValue), } -} -impl KeySet { - pub fn new() -> KeySet { - ::std::default::Default::default() + impl ::protobuf::Oneof for Start_key_type { } - // repeated .google.protobuf.ListValue keys = 1; - - - pub fn get_keys(&self) -> &[::protobuf::well_known_types::ListValue] { - &self.keys - } - pub fn clear_keys(&mut self) { - self.keys.clear(); + impl ::protobuf::OneofFull for Start_key_type { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("start_key_type").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_keys(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>) { - self.keys = v; + impl Start_key_type { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("start_key_type") + } } - // Mutable pointer to the field. - pub fn mut_keys(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - &mut self.keys + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.KeyRange.end_key_type) + pub enum End_key_type { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.KeyRange.end_closed) + EndClosed(::protobuf::well_known_types::struct_::ListValue), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.KeyRange.end_open) + EndOpen(::protobuf::well_known_types::struct_::ListValue), } - // Take field - pub fn take_keys(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - ::std::mem::replace(&mut self.keys, ::protobuf::RepeatedField::new()) + impl ::protobuf::Oneof for End_key_type { } - // repeated .google.spanner.v1.KeyRange ranges = 2; - - - pub fn get_ranges(&self) -> &[KeyRange] { - &self.ranges - } - pub fn clear_ranges(&mut self) { - self.ranges.clear(); + impl ::protobuf::OneofFull for End_key_type { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("end_key_type").unwrap()).clone() + } } - // Param is passed by value, moved - pub fn set_ranges(&mut self, v: ::protobuf::RepeatedField) { - self.ranges = v; + impl End_key_type { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("end_key_type") + } } +} - // Mutable pointer to the field. - pub fn mut_ranges(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ranges - } +/// `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All +/// the keys are expected to be in the same table or index. The keys need +/// not be sorted in any particular way. +/// +/// If the same key is specified multiple times in the set (for example +/// if two ranges, two keys, or a key and a range overlap), Cloud Spanner +/// behaves as if the key were only specified once. +// @@protoc_insertion_point(message:google.spanner.v1.KeySet) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct KeySet { + // message fields + /// A list of specific keys. Entries in `keys` should have exactly as + /// many elements as there are columns in the primary or index key + /// with which this `KeySet` is used. Individual key values are + /// encoded as described [here][google.spanner.v1.TypeCode]. + // @@protoc_insertion_point(field:google.spanner.v1.KeySet.keys) + pub keys: ::std::vec::Vec<::protobuf::well_known_types::struct_::ListValue>, + /// A list of key ranges. See [KeyRange][google.spanner.v1.KeyRange] for more information about + /// key range specifications. + // @@protoc_insertion_point(field:google.spanner.v1.KeySet.ranges) + pub ranges: ::std::vec::Vec, + /// For convenience `all` can be set to `true` to indicate that this + /// `KeySet` matches all keys in the table or index. Note that any keys + /// specified in `keys` or `ranges` are only yielded once. + // @@protoc_insertion_point(field:google.spanner.v1.KeySet.all) + pub all: bool, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.KeySet.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Take field - pub fn take_ranges(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ranges, ::protobuf::RepeatedField::new()) +impl<'a> ::std::default::Default for &'a KeySet { + fn default() -> &'a KeySet { + ::default_instance() } +} - // bool all = 3; - - - pub fn get_all(&self) -> bool { - self.all - } - pub fn clear_all(&mut self) { - self.all = false; +impl KeySet { + pub fn new() -> KeySet { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_all(&mut self, v: bool) { - self.all = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "keys", + |m: &KeySet| { &m.keys }, + |m: &mut KeySet| { &mut m.keys }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ranges", + |m: &KeySet| { &m.ranges }, + |m: &mut KeySet| { &mut m.ranges }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "all", + |m: &KeySet| { &m.all }, + |m: &mut KeySet| { &mut m.all }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "KeySet", + fields, + oneofs, + ) } } impl ::protobuf::Message for KeySet { + const NAME: &'static str = "KeySet"; + fn is_initialized(&self) -> bool { - for v in &self.keys { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ranges { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.keys)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.keys.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ranges)?; + 18 => { + self.ranges.push(is.read_message()?); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.all = tmp; + 24 => { + self.all = is.read_bool()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -600,293 +572,272 @@ impl ::protobuf::Message for KeySet { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.keys { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; for value in &self.ranges { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if self.all != false { - my_size += 2; + my_size += 1 + 1; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.keys { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; for v in &self.ranges { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if self.all != false { os.write_bool(3, self.all)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> KeySet { KeySet::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::ListValue>>( - "keys", - |m: &KeySet| { &m.keys }, - |m: &mut KeySet| { &mut m.keys }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ranges", - |m: &KeySet| { &m.ranges }, - |m: &mut KeySet| { &mut m.ranges }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "all", - |m: &KeySet| { &m.all }, - |m: &mut KeySet| { &mut m.all }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "KeySet", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.keys.clear(); + self.ranges.clear(); + self.all = false; + self.special_fields.clear(); } fn default_instance() -> &'static KeySet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(KeySet::new) + static instance: KeySet = KeySet { + keys: ::std::vec::Vec::new(), + ranges: ::std::vec::Vec::new(), + all: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for KeySet { - fn clear(&mut self) { - self.keys.clear(); - self.ranges.clear(); - self.all = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for KeySet { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("KeySet").unwrap()).clone() } } -impl ::std::fmt::Debug for KeySet { +impl ::std::fmt::Display for KeySet { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for KeySet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1cgoogle/spanner/v1/keys.proto\x12\x11google.spanner.v1\x1a\x1cgoogl\ - e/protobuf/struct.proto\"\xa0\x02\n\x08KeyRange\x12?\n\x0cstart_closed\ - \x18\x01\x20\x01(\x0b2\x1a.google.protobuf.ListValueH\0R\x0bstartClosed\ - \x12;\n\nstart_open\x18\x02\x20\x01(\x0b2\x1a.google.protobuf.ListValueH\ - \0R\tstartOpen\x12;\n\nend_closed\x18\x03\x20\x01(\x0b2\x1a.google.proto\ - buf.ListValueH\x01R\tendClosed\x127\n\x08end_open\x18\x04\x20\x01(\x0b2\ - \x1a.google.protobuf.ListValueH\x01R\x07endOpenB\x10\n\x0estart_key_type\ - B\x0e\n\x0cend_key_type\"\x7f\n\x06KeySet\x12.\n\x04keys\x18\x01\x20\x03\ - (\x0b2\x1a.google.protobuf.ListValueR\x04keys\x123\n\x06ranges\x18\x02\ - \x20\x03(\x0b2\x1b.google.spanner.v1.KeyRangeR\x06ranges\x12\x10\n\x03al\ - l\x18\x03\x20\x01(\x08R\x03allB\xac\x01\n\x15com.google.spanner.v1B\tKey\ - sProtoP\x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\ - \x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\ - \xea\x02\x1aGoogle::Cloud::Spanner::V1J\xfc+\n\x07\x12\x05\x0e\0\xa2\x01\ - \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\ - \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1a\n\t\n\ - \x02\x03\0\x12\x03\x12\0&\n\x08\n\x01\x08\x12\x03\x14\04\n\t\n\x02\x08%\ - \x12\x03\x14\04\n\x08\n\x01\x08\x12\x03\x15\0L\n\t\n\x02\x08\x0b\x12\x03\ - \x15\0L\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\ - \n\x08\n\x01\x08\x12\x03\x17\0*\n\t\n\x02\x08\x08\x12\x03\x17\0*\n\x08\n\ - \x01\x08\x12\x03\x18\0.\n\t\n\x02\x08\x01\x12\x03\x18\0.\n\x08\n\x01\x08\ - \x12\x03\x19\04\n\t\n\x02\x08)\x12\x03\x19\04\n\x08\n\x01\x08\x12\x03\ - \x1a\03\n\t\n\x02\x08-\x12\x03\x1a\03\n\xb5\x15\n\x02\x04\0\x12\x05t\0\ - \x8a\x01\x01\x1a\xa7\x15\x20KeyRange\x20represents\x20a\x20range\x20of\ - \x20rows\x20in\x20a\x20table\x20or\x20index.\n\n\x20A\x20range\x20has\ - \x20a\x20start\x20key\x20and\x20an\x20end\x20key.\x20These\x20keys\x20ca\ - n\x20be\x20open\x20or\n\x20closed,\x20indicating\x20if\x20the\x20range\ - \x20includes\x20rows\x20with\x20that\x20key.\n\n\x20Keys\x20are\x20repre\ - sented\x20by\x20lists,\x20where\x20the\x20ith\x20value\x20in\x20the\x20l\ - ist\n\x20corresponds\x20to\x20the\x20ith\x20component\x20of\x20the\x20ta\ - ble\x20or\x20index\x20primary\x20key.\n\x20Individual\x20values\x20are\ - \x20encoded\x20as\x20described\n\x20[here][google.spanner.v1.TypeCode].\ - \n\n\x20For\x20example,\x20consider\x20the\x20following\x20table\x20defi\ - nition:\n\n\x20\x20\x20\x20\x20CREATE\x20TABLE\x20UserEvents\x20(\n\x20\ - \x20\x20\x20\x20\x20\x20UserName\x20STRING(MAX),\n\x20\x20\x20\x20\x20\ - \x20\x20EventDate\x20STRING(10)\n\x20\x20\x20\x20\x20)\x20PRIMARY\x20KEY\ - (UserName,\x20EventDate);\n\n\x20The\x20following\x20keys\x20name\x20row\ - s\x20in\x20this\x20table:\n\n\x20\x20\x20\x20\x20[\"Bob\",\x20\"2014-09-\ - 23\"]\n\x20\x20\x20\x20\x20[\"Alfred\",\x20\"2015-06-12\"]\n\n\x20Since\ - \x20the\x20`UserEvents`\x20table's\x20`PRIMARY\x20KEY`\x20clause\x20name\ - s\x20two\n\x20columns,\x20each\x20`UserEvents`\x20key\x20has\x20two\x20e\ - lements;\x20the\x20first\x20is\x20the\n\x20`UserName`,\x20and\x20the\x20\ - second\x20is\x20the\x20`EventDate`.\n\n\x20Key\x20ranges\x20with\x20mult\ - iple\x20components\x20are\x20interpreted\n\x20lexicographically\x20by\ - \x20component\x20using\x20the\x20table\x20or\x20index\x20key's\x20declar\ - ed\n\x20sort\x20order.\x20For\x20example,\x20the\x20following\x20range\ - \x20returns\x20all\x20events\x20for\n\x20user\x20`\"Bob\"`\x20that\x20oc\ - curred\x20in\x20the\x20year\x202015:\n\n\x20\x20\x20\x20\x20\"start_clos\ - ed\":\x20[\"Bob\",\x20\"2015-01-01\"]\n\x20\x20\x20\x20\x20\"end_closed\ - \":\x20[\"Bob\",\x20\"2015-12-31\"]\n\n\x20Start\x20and\x20end\x20keys\ - \x20can\x20omit\x20trailing\x20key\x20components.\x20This\x20affects\x20\ - the\n\x20inclusion\x20and\x20exclusion\x20of\x20rows\x20that\x20exactly\ - \x20match\x20the\x20provided\x20key\n\x20components:\x20if\x20the\x20key\ - \x20is\x20closed,\x20then\x20rows\x20that\x20exactly\x20match\x20the\n\ - \x20provided\x20components\x20are\x20included;\x20if\x20the\x20key\x20is\ - \x20open,\x20then\x20rows\n\x20that\x20exactly\x20match\x20are\x20not\ - \x20included.\n\n\x20For\x20example,\x20the\x20following\x20range\x20inc\ - ludes\x20all\x20events\x20for\x20`\"Bob\"`\x20that\n\x20occurred\x20duri\ - ng\x20and\x20after\x20the\x20year\x202000:\n\n\x20\x20\x20\x20\x20\"star\ - t_closed\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\x20\x20\x20\x20\x20\"end_c\ - losed\":\x20[\"Bob\"]\n\n\x20The\x20next\x20example\x20retrieves\x20all\ - \x20events\x20for\x20`\"Bob\"`:\n\n\x20\x20\x20\x20\x20\"start_closed\":\ - \x20[\"Bob\"]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[\"Bob\"]\n\n\x20T\ - o\x20retrieve\x20events\x20before\x20the\x20year\x202000:\n\n\x20\x20\ - \x20\x20\x20\"start_closed\":\x20[\"Bob\"]\n\x20\x20\x20\x20\x20\"end_op\ - en\":\x20[\"Bob\",\x20\"2000-01-01\"]\n\n\x20The\x20following\x20range\ - \x20includes\x20all\x20rows\x20in\x20the\x20table:\n\n\x20\x20\x20\x20\ - \x20\"start_closed\":\x20[]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[]\n\ - \n\x20This\x20range\x20returns\x20all\x20users\x20whose\x20`UserName`\ - \x20begins\x20with\x20any\n\x20character\x20from\x20A\x20to\x20C:\n\n\ - \x20\x20\x20\x20\x20\"start_closed\":\x20[\"A\"]\n\x20\x20\x20\x20\x20\"\ - end_open\":\x20[\"D\"]\n\n\x20This\x20range\x20returns\x20all\x20users\ - \x20whose\x20`UserName`\x20begins\x20with\x20B:\n\n\x20\x20\x20\x20\x20\ - \"start_closed\":\x20[\"B\"]\n\x20\x20\x20\x20\x20\"end_open\":\x20[\"C\ - \"]\n\n\x20Key\x20ranges\x20honor\x20column\x20sort\x20order.\x20For\x20\ - example,\x20suppose\x20a\x20table\x20is\n\x20defined\x20as\x20follows:\n\ - \n\x20\x20\x20\x20\x20CREATE\x20TABLE\x20DescendingSortedTable\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20Key\x20INT64,\n\x20\x20\x20\x20\x20\x20\x20.\ - ..\n\x20\x20\x20\x20\x20)\x20PRIMARY\x20KEY(Key\x20DESC);\n\n\x20The\x20\ - following\x20range\x20retrieves\x20all\x20rows\x20with\x20key\x20values\ - \x20between\x201\n\x20and\x20100\x20inclusive:\n\n\x20\x20\x20\x20\x20\"\ - start_closed\":\x20[\"100\"]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[\"\ - 1\"]\n\n\x20Note\x20that\x20100\x20is\x20passed\x20as\x20the\x20start,\ - \x20and\x201\x20is\x20passed\x20as\x20the\x20end,\n\x20because\x20`Key`\ - \x20is\x20a\x20descending\x20column\x20in\x20the\x20schema.\n\n\n\n\x03\ - \x04\0\x01\x12\x03t\x08\x10\nP\n\x04\x04\0\x08\0\x12\x04v\x02~\x03\x1aB\ - \x20The\x20start\x20key\x20must\x20be\x20provided.\x20It\x20can\x20be\ - \x20either\x20closed\x20or\x20open.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\ - \x03v\x08\x16\n\x93\x01\n\x04\x04\0\x02\0\x12\x03y\x04/\x1a\x85\x01\x20I\ - f\x20the\x20start\x20is\x20closed,\x20then\x20the\x20range\x20includes\ - \x20all\x20rows\x20whose\n\x20first\x20`len(start_closed)`\x20key\x20col\ - umns\x20exactly\x20match\x20`start_closed`.\n\n\x0c\n\x05\x04\0\x02\0\ - \x06\x12\x03y\x04\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03y\x1e*\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03y-.\n\x88\x01\n\x04\x04\0\x02\x01\x12\x03}\ - \x04-\x1a{\x20If\x20the\x20start\x20is\x20open,\x20then\x20the\x20range\ - \x20excludes\x20rows\x20whose\x20first\n\x20`len(start_open)`\x20key\x20\ - columns\x20exactly\x20match\x20`start_open`.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x06\x12\x03}\x04\x1d\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03}\x1e(\n\x0c\ - \n\x05\x04\0\x02\x01\x03\x12\x03}+,\nP\n\x04\x04\0\x08\x01\x12\x06\x81\ - \x01\x02\x89\x01\x03\x1a@\x20The\x20end\x20key\x20must\x20be\x20provided\ - .\x20It\x20can\x20be\x20either\x20closed\x20or\x20open.\n\n\r\n\x05\x04\ - \0\x08\x01\x01\x12\x04\x81\x01\x08\x14\n\x8d\x01\n\x04\x04\0\x02\x02\x12\ - \x04\x84\x01\x04-\x1a\x7f\x20If\x20the\x20end\x20is\x20closed,\x20then\ - \x20the\x20range\x20includes\x20all\x20rows\x20whose\n\x20first\x20`len(\ - end_closed)`\x20key\x20columns\x20exactly\x20match\x20`end_closed`.\n\n\ - \r\n\x05\x04\0\x02\x02\x06\x12\x04\x84\x01\x04\x1d\n\r\n\x05\x04\0\x02\ - \x02\x01\x12\x04\x84\x01\x1e(\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x84\ - \x01+,\n\x83\x01\n\x04\x04\0\x02\x03\x12\x04\x88\x01\x04+\x1au\x20If\x20\ - the\x20end\x20is\x20open,\x20then\x20the\x20range\x20excludes\x20rows\ - \x20whose\x20first\n\x20`len(end_open)`\x20key\x20columns\x20exactly\x20\ - match\x20`end_open`.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x88\x01\x04\ - \x1d\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\x88\x01\x1e&\n\r\n\x05\x04\0\ - \x02\x03\x03\x12\x04\x88\x01)*\n\x86\x03\n\x02\x04\x01\x12\x06\x93\x01\0\ - \xa2\x01\x01\x1a\xf7\x02\x20`KeySet`\x20defines\x20a\x20collection\x20of\ - \x20Cloud\x20Spanner\x20keys\x20and/or\x20key\x20ranges.\x20All\n\x20the\ - \x20keys\x20are\x20expected\x20to\x20be\x20in\x20the\x20same\x20table\ - \x20or\x20index.\x20The\x20keys\x20need\n\x20not\x20be\x20sorted\x20in\ - \x20any\x20particular\x20way.\n\n\x20If\x20the\x20same\x20key\x20is\x20s\ - pecified\x20multiple\x20times\x20in\x20the\x20set\x20(for\x20example\n\ - \x20if\x20two\x20ranges,\x20two\x20keys,\x20or\x20a\x20key\x20and\x20a\ - \x20range\x20overlap),\x20Cloud\x20Spanner\n\x20behaves\x20as\x20if\x20t\ - he\x20key\x20were\x20only\x20specified\x20once.\n\n\x0b\n\x03\x04\x01\ - \x01\x12\x04\x93\x01\x08\x0e\n\x8a\x02\n\x04\x04\x01\x02\0\x12\x04\x98\ - \x01\x02.\x1a\xfb\x01\x20A\x20list\x20of\x20specific\x20keys.\x20Entries\ - \x20in\x20`keys`\x20should\x20have\x20exactly\x20as\n\x20many\x20element\ - s\x20as\x20there\x20are\x20columns\x20in\x20the\x20primary\x20or\x20inde\ - x\x20key\n\x20with\x20which\x20this\x20`KeySet`\x20is\x20used.\x20\x20In\ - dividual\x20key\x20values\x20are\n\x20encoded\x20as\x20described\x20[her\ - e][google.spanner.v1.TypeCode].\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\ - \x98\x01\x02\n\n\r\n\x05\x04\x01\x02\0\x06\x12\x04\x98\x01\x0b$\n\r\n\ - \x05\x04\x01\x02\0\x01\x12\x04\x98\x01%)\n\r\n\x05\x04\x01\x02\0\x03\x12\ - \x04\x98\x01,-\n\x86\x01\n\x04\x04\x01\x02\x01\x12\x04\x9c\x01\x02\x1f\ - \x1ax\x20A\x20list\x20of\x20key\x20ranges.\x20See\x20[KeyRange][google.s\ - panner.v1.KeyRange]\x20for\x20more\x20information\x20about\n\x20key\x20r\ - ange\x20specifications.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\x9c\x01\ - \x02\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\x9c\x01\x0b\x13\n\r\n\x05\ - \x04\x01\x02\x01\x01\x12\x04\x9c\x01\x14\x1a\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\x9c\x01\x1d\x1e\n\xce\x01\n\x04\x04\x01\x02\x02\x12\x04\xa1\ - \x01\x02\x0f\x1a\xbf\x01\x20For\x20convenience\x20`all`\x20can\x20be\x20\ - set\x20to\x20`true`\x20to\x20indicate\x20that\x20this\n\x20`KeySet`\x20m\ - atches\x20all\x20keys\x20in\x20the\x20table\x20or\x20index.\x20Note\x20t\ - hat\x20any\x20keys\n\x20specified\x20in\x20`keys`\x20or\x20`ranges`\x20a\ - re\x20only\x20yielded\x20once.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\ - \xa1\x01\x02\x06\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xa1\x01\x07\n\n\r\ - \n\x05\x04\x01\x02\x02\x03\x12\x04\xa1\x01\r\x0eb\x06proto3\ + e/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\"\xa0\x02\n\ + \x08KeyRange\x12?\n\x0cstart_closed\x18\x01\x20\x01(\x0b2\x1a.google.pro\ + tobuf.ListValueH\0R\x0bstartClosed\x12;\n\nstart_open\x18\x02\x20\x01(\ + \x0b2\x1a.google.protobuf.ListValueH\0R\tstartOpen\x12;\n\nend_closed\ + \x18\x03\x20\x01(\x0b2\x1a.google.protobuf.ListValueH\x01R\tendClosed\ + \x127\n\x08end_open\x18\x04\x20\x01(\x0b2\x1a.google.protobuf.ListValueH\ + \x01R\x07endOpenB\x10\n\x0estart_key_typeB\x0e\n\x0cend_key_type\"\x7f\n\ + \x06KeySet\x12.\n\x04keys\x18\x01\x20\x03(\x0b2\x1a.google.protobuf.List\ + ValueR\x04keys\x123\n\x06ranges\x18\x02\x20\x03(\x0b2\x1b.google.spanner\ + .v1.KeyRangeR\x06ranges\x12\x10\n\x03all\x18\x03\x20\x01(\x08R\x03allB\ + \x92\x01\n\x15com.google.spanner.v1B\tKeysProtoP\x01Z8google.golang.org/\ + genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V\ + 1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\xf4+\n\x07\x12\x05\x0f\0\xa3\ + \x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x20\ + 2019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20Lice\ + nse,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ + \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ + License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ + \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ + \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ + \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x1a\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0&\n\ + \x08\n\x01\x08\x12\x03\x16\04\n\t\n\x02\x08%\x12\x03\x16\04\n\x08\n\x01\ + \x08\x12\x03\x17\0O\n\t\n\x02\x08\x0b\x12\x03\x17\0O\n\x08\n\x01\x08\x12\ + \x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\ + \0*\n\t\n\x02\x08\x08\x12\x03\x19\0*\n\x08\n\x01\x08\x12\x03\x1a\0.\n\t\ + \n\x02\x08\x01\x12\x03\x1a\0.\n\x08\n\x01\x08\x12\x03\x1b\04\n\t\n\x02\ + \x08)\x12\x03\x1b\04\n\xb5\x15\n\x02\x04\0\x12\x05u\0\x8b\x01\x01\x1a\ + \xa7\x15\x20KeyRange\x20represents\x20a\x20range\x20of\x20rows\x20in\x20\ + a\x20table\x20or\x20index.\n\n\x20A\x20range\x20has\x20a\x20start\x20key\ + \x20and\x20an\x20end\x20key.\x20These\x20keys\x20can\x20be\x20open\x20or\ + \n\x20closed,\x20indicating\x20if\x20the\x20range\x20includes\x20rows\ + \x20with\x20that\x20key.\n\n\x20Keys\x20are\x20represented\x20by\x20list\ + s,\x20where\x20the\x20ith\x20value\x20in\x20the\x20list\n\x20corresponds\ + \x20to\x20the\x20ith\x20component\x20of\x20the\x20table\x20or\x20index\ + \x20primary\x20key.\n\x20Individual\x20values\x20are\x20encoded\x20as\ + \x20described\n\x20[here][google.spanner.v1.TypeCode].\n\n\x20For\x20exa\ + mple,\x20consider\x20the\x20following\x20table\x20definition:\n\n\x20\ + \x20\x20\x20\x20CREATE\x20TABLE\x20UserEvents\x20(\n\x20\x20\x20\x20\x20\ + \x20\x20UserName\x20STRING(MAX),\n\x20\x20\x20\x20\x20\x20\x20EventDate\ + \x20STRING(10)\n\x20\x20\x20\x20\x20)\x20PRIMARY\x20KEY(UserName,\x20Eve\ + ntDate);\n\n\x20The\x20following\x20keys\x20name\x20rows\x20in\x20this\ + \x20table:\n\n\x20\x20\x20\x20\x20[\"Bob\",\x20\"2014-09-23\"]\n\x20\x20\ + \x20\x20\x20[\"Alfred\",\x20\"2015-06-12\"]\n\n\x20Since\x20the\x20`User\ + Events`\x20table's\x20`PRIMARY\x20KEY`\x20clause\x20names\x20two\n\x20co\ + lumns,\x20each\x20`UserEvents`\x20key\x20has\x20two\x20elements;\x20the\ + \x20first\x20is\x20the\n\x20`UserName`,\x20and\x20the\x20second\x20is\ + \x20the\x20`EventDate`.\n\n\x20Key\x20ranges\x20with\x20multiple\x20comp\ + onents\x20are\x20interpreted\n\x20lexicographically\x20by\x20component\ + \x20using\x20the\x20table\x20or\x20index\x20key's\x20declared\n\x20sort\ + \x20order.\x20For\x20example,\x20the\x20following\x20range\x20returns\ + \x20all\x20events\x20for\n\x20user\x20`\"Bob\"`\x20that\x20occurred\x20i\ + n\x20the\x20year\x202015:\n\n\x20\x20\x20\x20\x20\"start_closed\":\x20[\ + \"Bob\",\x20\"2015-01-01\"]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[\"B\ + ob\",\x20\"2015-12-31\"]\n\n\x20Start\x20and\x20end\x20keys\x20can\x20om\ + it\x20trailing\x20key\x20components.\x20This\x20affects\x20the\n\x20incl\ + usion\x20and\x20exclusion\x20of\x20rows\x20that\x20exactly\x20match\x20t\ + he\x20provided\x20key\n\x20components:\x20if\x20the\x20key\x20is\x20clos\ + ed,\x20then\x20rows\x20that\x20exactly\x20match\x20the\n\x20provided\x20\ + components\x20are\x20included;\x20if\x20the\x20key\x20is\x20open,\x20the\ + n\x20rows\n\x20that\x20exactly\x20match\x20are\x20not\x20included.\n\n\ + \x20For\x20example,\x20the\x20following\x20range\x20includes\x20all\x20e\ + vents\x20for\x20`\"Bob\"`\x20that\n\x20occurred\x20during\x20and\x20afte\ + r\x20the\x20year\x202000:\n\n\x20\x20\x20\x20\x20\"start_closed\":\x20[\ + \"Bob\",\x20\"2000-01-01\"]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[\"B\ + ob\"]\n\n\x20The\x20next\x20example\x20retrieves\x20all\x20events\x20for\ + \x20`\"Bob\"`:\n\n\x20\x20\x20\x20\x20\"start_closed\":\x20[\"Bob\"]\n\ + \x20\x20\x20\x20\x20\"end_closed\":\x20[\"Bob\"]\n\n\x20To\x20retrieve\ + \x20events\x20before\x20the\x20year\x202000:\n\n\x20\x20\x20\x20\x20\"st\ + art_closed\":\x20[\"Bob\"]\n\x20\x20\x20\x20\x20\"end_open\":\x20[\"Bob\ + \",\x20\"2000-01-01\"]\n\n\x20The\x20following\x20range\x20includes\x20a\ + ll\x20rows\x20in\x20the\x20table:\n\n\x20\x20\x20\x20\x20\"start_closed\ + \":\x20[]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[]\n\n\x20This\x20rang\ + e\x20returns\x20all\x20users\x20whose\x20`UserName`\x20begins\x20with\ + \x20any\n\x20character\x20from\x20A\x20to\x20C:\n\n\x20\x20\x20\x20\x20\ + \"start_closed\":\x20[\"A\"]\n\x20\x20\x20\x20\x20\"end_open\":\x20[\"D\ + \"]\n\n\x20This\x20range\x20returns\x20all\x20users\x20whose\x20`UserNam\ + e`\x20begins\x20with\x20B:\n\n\x20\x20\x20\x20\x20\"start_closed\":\x20[\ + \"B\"]\n\x20\x20\x20\x20\x20\"end_open\":\x20[\"C\"]\n\n\x20Key\x20range\ + s\x20honor\x20column\x20sort\x20order.\x20For\x20example,\x20suppose\x20\ + a\x20table\x20is\n\x20defined\x20as\x20follows:\n\n\x20\x20\x20\x20\x20C\ + REATE\x20TABLE\x20DescendingSortedTable\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20Key\x20INT64,\n\x20\x20\x20\x20\x20\x20\x20...\n\x20\x20\x20\x20\x20\ + )\x20PRIMARY\x20KEY(Key\x20DESC);\n\n\x20The\x20following\x20range\x20re\ + trieves\x20all\x20rows\x20with\x20key\x20values\x20between\x201\n\x20and\ + \x20100\x20inclusive:\n\n\x20\x20\x20\x20\x20\"start_closed\":\x20[\"100\ + \"]\n\x20\x20\x20\x20\x20\"end_closed\":\x20[\"1\"]\n\n\x20Note\x20that\ + \x20100\x20is\x20passed\x20as\x20the\x20start,\x20and\x201\x20is\x20pass\ + ed\x20as\x20the\x20end,\n\x20because\x20`Key`\x20is\x20a\x20descending\ + \x20column\x20in\x20the\x20schema.\n\n\n\n\x03\x04\0\x01\x12\x03u\x08\ + \x10\nP\n\x04\x04\0\x08\0\x12\x04w\x02\x7f\x03\x1aB\x20The\x20start\x20k\ + ey\x20must\x20be\x20provided.\x20It\x20can\x20be\x20either\x20closed\x20\ + or\x20open.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03w\x08\x16\n\x93\x01\n\ + \x04\x04\0\x02\0\x12\x03z\x04/\x1a\x85\x01\x20If\x20the\x20start\x20is\ + \x20closed,\x20then\x20the\x20range\x20includes\x20all\x20rows\x20whose\ + \n\x20first\x20`len(start_closed)`\x20key\x20columns\x20exactly\x20match\ + \x20`start_closed`.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03z\x04\x1d\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x03z\x1e*\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\ + z-.\n\x88\x01\n\x04\x04\0\x02\x01\x12\x03~\x04-\x1a{\x20If\x20the\x20sta\ + rt\x20is\x20open,\x20then\x20the\x20range\x20excludes\x20rows\x20whose\ + \x20first\n\x20`len(start_open)`\x20key\x20columns\x20exactly\x20match\ + \x20`start_open`.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03~\x04\x1d\n\x0c\ + \n\x05\x04\0\x02\x01\x01\x12\x03~\x1e(\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x03~+,\nP\n\x04\x04\0\x08\x01\x12\x06\x82\x01\x02\x8a\x01\x03\x1a@\x20T\ + he\x20end\x20key\x20must\x20be\x20provided.\x20It\x20can\x20be\x20either\ + \x20closed\x20or\x20open.\n\n\r\n\x05\x04\0\x08\x01\x01\x12\x04\x82\x01\ + \x08\x14\n\x8d\x01\n\x04\x04\0\x02\x02\x12\x04\x85\x01\x04-\x1a\x7f\x20I\ + f\x20the\x20end\x20is\x20closed,\x20then\x20the\x20range\x20includes\x20\ + all\x20rows\x20whose\n\x20first\x20`len(end_closed)`\x20key\x20columns\ + \x20exactly\x20match\x20`end_closed`.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\ + \x04\x85\x01\x04\x1d\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x85\x01\x1e(\n\ + \r\n\x05\x04\0\x02\x02\x03\x12\x04\x85\x01+,\n\x83\x01\n\x04\x04\0\x02\ + \x03\x12\x04\x89\x01\x04+\x1au\x20If\x20the\x20end\x20is\x20open,\x20the\ + n\x20the\x20range\x20excludes\x20rows\x20whose\x20first\n\x20`len(end_op\ + en)`\x20key\x20columns\x20exactly\x20match\x20`end_open`.\n\n\r\n\x05\ + \x04\0\x02\x03\x06\x12\x04\x89\x01\x04\x1d\n\r\n\x05\x04\0\x02\x03\x01\ + \x12\x04\x89\x01\x1e&\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\x89\x01)*\n\ + \x86\x03\n\x02\x04\x01\x12\x06\x94\x01\0\xa3\x01\x01\x1a\xf7\x02\x20`Key\ + Set`\x20defines\x20a\x20collection\x20of\x20Cloud\x20Spanner\x20keys\x20\ + and/or\x20key\x20ranges.\x20All\n\x20the\x20keys\x20are\x20expected\x20t\ + o\x20be\x20in\x20the\x20same\x20table\x20or\x20index.\x20The\x20keys\x20\ + need\n\x20not\x20be\x20sorted\x20in\x20any\x20particular\x20way.\n\n\x20\ + If\x20the\x20same\x20key\x20is\x20specified\x20multiple\x20times\x20in\ + \x20the\x20set\x20(for\x20example\n\x20if\x20two\x20ranges,\x20two\x20ke\ + ys,\x20or\x20a\x20key\x20and\x20a\x20range\x20overlap),\x20Cloud\x20Span\ + ner\n\x20behaves\x20as\x20if\x20the\x20key\x20were\x20only\x20specified\ + \x20once.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x94\x01\x08\x0e\n\x8a\x02\n\ + \x04\x04\x01\x02\0\x12\x04\x99\x01\x02.\x1a\xfb\x01\x20A\x20list\x20of\ + \x20specific\x20keys.\x20Entries\x20in\x20`keys`\x20should\x20have\x20ex\ + actly\x20as\n\x20many\x20elements\x20as\x20there\x20are\x20columns\x20in\ + \x20the\x20primary\x20or\x20index\x20key\n\x20with\x20which\x20this\x20`\ + KeySet`\x20is\x20used.\x20\x20Individual\x20key\x20values\x20are\n\x20en\ + coded\x20as\x20described\x20[here][google.spanner.v1.TypeCode].\n\n\r\n\ + \x05\x04\x01\x02\0\x04\x12\x04\x99\x01\x02\n\n\r\n\x05\x04\x01\x02\0\x06\ + \x12\x04\x99\x01\x0b$\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x99\x01%)\n\r\ + \n\x05\x04\x01\x02\0\x03\x12\x04\x99\x01,-\n\x86\x01\n\x04\x04\x01\x02\ + \x01\x12\x04\x9d\x01\x02\x1f\x1ax\x20A\x20list\x20of\x20key\x20ranges.\ + \x20See\x20[KeyRange][google.spanner.v1.KeyRange]\x20for\x20more\x20info\ + rmation\x20about\n\x20key\x20range\x20specifications.\n\n\r\n\x05\x04\ + \x01\x02\x01\x04\x12\x04\x9d\x01\x02\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\ + \x04\x9d\x01\x0b\x13\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x9d\x01\x14\ + \x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x9d\x01\x1d\x1e\n\xce\x01\n\ + \x04\x04\x01\x02\x02\x12\x04\xa2\x01\x02\x0f\x1a\xbf\x01\x20For\x20conve\ + nience\x20`all`\x20can\x20be\x20set\x20to\x20`true`\x20to\x20indicate\ + \x20that\x20this\n\x20`KeySet`\x20matches\x20all\x20keys\x20in\x20the\ + \x20table\x20or\x20index.\x20Note\x20that\x20any\x20keys\n\x20specified\ + \x20in\x20`keys`\x20or\x20`ranges`\x20are\x20only\x20yielded\x20once.\n\ + \n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xa2\x01\x02\x06\n\r\n\x05\x04\x01\ + \x02\x02\x01\x12\x04\xa2\x01\x07\n\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ + \xa2\x01\r\x0eb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(KeyRange::generated_message_descriptor_data()); + messages.push(KeySet::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/mod.rs b/googleapis-raw/src/spanner/v1/mod.rs index 8eda2db..6ee3caf 100644 --- a/googleapis-raw/src/spanner/v1/mod.rs +++ b/googleapis-raw/src/spanner/v1/mod.rs @@ -1,8 +1,10 @@ // @generated +pub(crate) use crate::{ + api::{annotations, client, field_behavior, resource}, + empty, + rpc::status, +}; -use crate::{empty, rpc::status}; - -pub mod commit_response; pub mod keys; pub mod mutation; pub mod query_plan; @@ -10,4 +12,4 @@ pub mod result_set; pub mod spanner; pub mod spanner_grpc; pub mod transaction; -pub mod type_pb; +pub mod type_; diff --git a/googleapis-raw/src/spanner/v1/mutation.rs b/googleapis-raw/src/spanner/v1/mutation.rs index b713cec..e2eb772 100644 --- a/googleapis-raw/src/spanner/v1/mutation.rs +++ b/googleapis-raw/src/spanner/v1/mutation.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,26 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/mutation.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// A modification to one or more Cloud Spanner rows. Mutations can be +/// applied to a Cloud Spanner database by sending them in a +/// [Commit][google.spanner.v1.Spanner.Commit] call. +// @@protoc_insertion_point(message:google.spanner.v1.Mutation) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Mutation { // message oneof groups - pub operation: ::std::option::Option, + pub operation: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.Mutation.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Mutation { @@ -38,15 +44,6 @@ impl<'a> ::std::default::Default for &'a Mutation { } } -#[derive(Clone,PartialEq,Debug)] -pub enum Mutation_oneof_operation { - insert(Mutation_Write), - update(Mutation_Write), - insert_or_update(Mutation_Write), - replace(Mutation_Write), - delete(Mutation_Delete), -} - impl Mutation { pub fn new() -> Mutation { ::std::default::Default::default() @@ -54,316 +51,323 @@ impl Mutation { // .google.spanner.v1.Mutation.Write insert = 1; - - pub fn get_insert(&self) -> &Mutation_Write { + pub fn insert(&self) -> &mutation::Write { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Operation::Insert(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_insert(&mut self) { self.operation = ::std::option::Option::None; } pub fn has_insert(&self) -> bool { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert(..)) => true, + ::std::option::Option::Some(mutation::Operation::Insert(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_insert(&mut self, v: Mutation_Write) { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert(v)) + pub fn set_insert(&mut self, v: mutation::Write) { + self.operation = ::std::option::Option::Some(mutation::Operation::Insert(v)) } // Mutable pointer to the field. - pub fn mut_insert(&mut self) -> &mut Mutation_Write { - if let ::std::option::Option::Some(Mutation_oneof_operation::insert(_)) = self.operation { + pub fn mut_insert(&mut self) -> &mut mutation::Write { + if let ::std::option::Option::Some(mutation::Operation::Insert(_)) = self.operation { } else { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert(Mutation_Write::new())); + self.operation = ::std::option::Option::Some(mutation::Operation::Insert(mutation::Write::new())); } match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert(ref mut v)) => v, + ::std::option::Option::Some(mutation::Operation::Insert(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_insert(&mut self) -> Mutation_Write { + pub fn take_insert(&mut self) -> mutation::Write { if self.has_insert() { match self.operation.take() { - ::std::option::Option::Some(Mutation_oneof_operation::insert(v)) => v, + ::std::option::Option::Some(mutation::Operation::Insert(v)) => v, _ => panic!(), } } else { - Mutation_Write::new() + mutation::Write::new() } } // .google.spanner.v1.Mutation.Write update = 2; - - pub fn get_update(&self) -> &Mutation_Write { + pub fn update(&self) -> &mutation::Write { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::update(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Operation::Update(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_update(&mut self) { self.operation = ::std::option::Option::None; } pub fn has_update(&self) -> bool { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::update(..)) => true, + ::std::option::Option::Some(mutation::Operation::Update(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_update(&mut self, v: Mutation_Write) { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::update(v)) + pub fn set_update(&mut self, v: mutation::Write) { + self.operation = ::std::option::Option::Some(mutation::Operation::Update(v)) } // Mutable pointer to the field. - pub fn mut_update(&mut self) -> &mut Mutation_Write { - if let ::std::option::Option::Some(Mutation_oneof_operation::update(_)) = self.operation { + pub fn mut_update(&mut self) -> &mut mutation::Write { + if let ::std::option::Option::Some(mutation::Operation::Update(_)) = self.operation { } else { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::update(Mutation_Write::new())); + self.operation = ::std::option::Option::Some(mutation::Operation::Update(mutation::Write::new())); } match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::update(ref mut v)) => v, + ::std::option::Option::Some(mutation::Operation::Update(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_update(&mut self) -> Mutation_Write { + pub fn take_update(&mut self) -> mutation::Write { if self.has_update() { match self.operation.take() { - ::std::option::Option::Some(Mutation_oneof_operation::update(v)) => v, + ::std::option::Option::Some(mutation::Operation::Update(v)) => v, _ => panic!(), } } else { - Mutation_Write::new() + mutation::Write::new() } } // .google.spanner.v1.Mutation.Write insert_or_update = 3; - - pub fn get_insert_or_update(&self) -> &Mutation_Write { + pub fn insert_or_update(&self) -> &mutation::Write { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_insert_or_update(&mut self) { self.operation = ::std::option::Option::None; } pub fn has_insert_or_update(&self) -> bool { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(..)) => true, + ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_insert_or_update(&mut self, v: Mutation_Write) { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(v)) + pub fn set_insert_or_update(&mut self, v: mutation::Write) { + self.operation = ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(v)) } // Mutable pointer to the field. - pub fn mut_insert_or_update(&mut self) -> &mut Mutation_Write { - if let ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(_)) = self.operation { + pub fn mut_insert_or_update(&mut self) -> &mut mutation::Write { + if let ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(_)) = self.operation { } else { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(Mutation_Write::new())); + self.operation = ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(mutation::Write::new())); } match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(ref mut v)) => v, + ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_insert_or_update(&mut self) -> Mutation_Write { + pub fn take_insert_or_update(&mut self) -> mutation::Write { if self.has_insert_or_update() { match self.operation.take() { - ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(v)) => v, + ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(v)) => v, _ => panic!(), } } else { - Mutation_Write::new() + mutation::Write::new() } } // .google.spanner.v1.Mutation.Write replace = 4; - - pub fn get_replace(&self) -> &Mutation_Write { + pub fn replace(&self) -> &mutation::Write { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::replace(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Operation::Replace(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_replace(&mut self) { self.operation = ::std::option::Option::None; } pub fn has_replace(&self) -> bool { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::replace(..)) => true, + ::std::option::Option::Some(mutation::Operation::Replace(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_replace(&mut self, v: Mutation_Write) { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::replace(v)) + pub fn set_replace(&mut self, v: mutation::Write) { + self.operation = ::std::option::Option::Some(mutation::Operation::Replace(v)) } // Mutable pointer to the field. - pub fn mut_replace(&mut self) -> &mut Mutation_Write { - if let ::std::option::Option::Some(Mutation_oneof_operation::replace(_)) = self.operation { + pub fn mut_replace(&mut self) -> &mut mutation::Write { + if let ::std::option::Option::Some(mutation::Operation::Replace(_)) = self.operation { } else { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::replace(Mutation_Write::new())); + self.operation = ::std::option::Option::Some(mutation::Operation::Replace(mutation::Write::new())); } match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::replace(ref mut v)) => v, + ::std::option::Option::Some(mutation::Operation::Replace(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_replace(&mut self) -> Mutation_Write { + pub fn take_replace(&mut self) -> mutation::Write { if self.has_replace() { match self.operation.take() { - ::std::option::Option::Some(Mutation_oneof_operation::replace(v)) => v, + ::std::option::Option::Some(mutation::Operation::Replace(v)) => v, _ => panic!(), } } else { - Mutation_Write::new() + mutation::Write::new() } } // .google.spanner.v1.Mutation.Delete delete = 5; - - pub fn get_delete(&self) -> &Mutation_Delete { + pub fn delete(&self) -> &mutation::Delete { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::delete(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(mutation::Operation::Delete(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_delete(&mut self) { self.operation = ::std::option::Option::None; } pub fn has_delete(&self) -> bool { match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::delete(..)) => true, + ::std::option::Option::Some(mutation::Operation::Delete(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_delete(&mut self, v: Mutation_Delete) { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::delete(v)) + pub fn set_delete(&mut self, v: mutation::Delete) { + self.operation = ::std::option::Option::Some(mutation::Operation::Delete(v)) } // Mutable pointer to the field. - pub fn mut_delete(&mut self) -> &mut Mutation_Delete { - if let ::std::option::Option::Some(Mutation_oneof_operation::delete(_)) = self.operation { + pub fn mut_delete(&mut self) -> &mut mutation::Delete { + if let ::std::option::Option::Some(mutation::Operation::Delete(_)) = self.operation { } else { - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::delete(Mutation_Delete::new())); + self.operation = ::std::option::Option::Some(mutation::Operation::Delete(mutation::Delete::new())); } match self.operation { - ::std::option::Option::Some(Mutation_oneof_operation::delete(ref mut v)) => v, + ::std::option::Option::Some(mutation::Operation::Delete(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_delete(&mut self) -> Mutation_Delete { + pub fn take_delete(&mut self) -> mutation::Delete { if self.has_delete() { match self.operation.take() { - ::std::option::Option::Some(Mutation_oneof_operation::delete(v)) => v, + ::std::option::Option::Some(mutation::Operation::Delete(v)) => v, _ => panic!(), } } else { - Mutation_Delete::new() - } + mutation::Delete::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::Write>( + "insert", + Mutation::has_insert, + Mutation::insert, + Mutation::mut_insert, + Mutation::set_insert, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::Write>( + "update", + Mutation::has_update, + Mutation::update, + Mutation::mut_update, + Mutation::set_update, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::Write>( + "insert_or_update", + Mutation::has_insert_or_update, + Mutation::insert_or_update, + Mutation::mut_insert_or_update, + Mutation::set_insert_or_update, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::Write>( + "replace", + Mutation::has_replace, + Mutation::replace, + Mutation::mut_replace, + Mutation::set_replace, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, mutation::Delete>( + "delete", + Mutation::has_delete, + Mutation::delete, + Mutation::mut_delete, + Mutation::set_delete, + )); + oneofs.push(mutation::Operation::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Mutation", + fields, + oneofs, + ) } } impl ::protobuf::Message for Mutation { + const NAME: &'static str = "Mutation"; + fn is_initialized(&self) -> bool { - if let Some(Mutation_oneof_operation::insert(ref v)) = self.operation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_operation::update(ref v)) = self.operation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_operation::insert_or_update(ref v)) = self.operation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_operation::replace(ref v)) = self.operation { - if !v.is_initialized() { - return false; - } - } - if let Some(Mutation_oneof_operation::delete(ref v)) = self.operation { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.operation = ::std::option::Option::Some(mutation::Operation::Insert(is.read_message()?)); }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::update(is.read_message()?)); + 18 => { + self.operation = ::std::option::Option::Some(mutation::Operation::Update(is.read_message()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::insert_or_update(is.read_message()?)); + 26 => { + self.operation = ::std::option::Option::Some(mutation::Operation::InsertOrUpdate(is.read_message()?)); }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::replace(is.read_message()?)); + 34 => { + self.operation = ::std::option::Option::Some(mutation::Operation::Replace(is.read_message()?)); }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.operation = ::std::option::Option::Some(Mutation_oneof_operation::delete(is.read_message()?)); + 42 => { + self.operation = ::std::option::Option::Some(mutation::Operation::Delete(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -372,785 +376,623 @@ impl ::protobuf::Message for Mutation { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.operation { match v { - &Mutation_oneof_operation::insert(ref v) => { + &mutation::Operation::Insert(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_operation::update(ref v) => { + &mutation::Operation::Update(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_operation::insert_or_update(ref v) => { + &mutation::Operation::InsertOrUpdate(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_operation::replace(ref v) => { + &mutation::Operation::Replace(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &Mutation_oneof_operation::delete(ref v) => { + &mutation::Operation::Delete(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.operation { match v { - &Mutation_oneof_operation::insert(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Operation::Insert(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }, - &Mutation_oneof_operation::update(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Operation::Update(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }, - &Mutation_oneof_operation::insert_or_update(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Operation::InsertOrUpdate(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }, - &Mutation_oneof_operation::replace(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Operation::Replace(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }, - &Mutation_oneof_operation::delete(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &mutation::Operation::Delete(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Mutation { Mutation::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_Write>( - "insert", - Mutation::has_insert, - Mutation::get_insert, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_Write>( - "update", - Mutation::has_update, - Mutation::get_update, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_Write>( - "insert_or_update", - Mutation::has_insert_or_update, - Mutation::get_insert_or_update, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_Write>( - "replace", - Mutation::has_replace, - Mutation::get_replace, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, Mutation_Delete>( - "delete", - Mutation::has_delete, - Mutation::get_delete, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Mutation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation::new) - } -} - -impl ::protobuf::Clear for Mutation { fn clear(&mut self) { self.operation = ::std::option::Option::None; self.operation = ::std::option::Option::None; self.operation = ::std::option::Option::None; self.operation = ::std::option::Option::None; self.operation = ::std::option::Option::None; - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for Mutation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static Mutation { + static instance: Mutation = Mutation { + operation: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::reflect::ProtobufValue for Mutation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) +impl ::protobuf::MessageFull for Mutation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Mutation").unwrap()).clone() } } -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_Write { - // message fields - pub table: ::std::string::String, - pub columns: ::protobuf::RepeatedField<::std::string::String>, - pub values: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mutation_Write { - fn default() -> &'a Mutation_Write { - ::default_instance() +impl ::std::fmt::Display for Mutation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl Mutation_Write { - pub fn new() -> Mutation_Write { - ::std::default::Default::default() - } - - // string table = 1; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // repeated string columns = 2; - - - pub fn get_columns(&self) -> &[::std::string::String] { - &self.columns - } - pub fn clear_columns(&mut self) { - self.columns.clear(); - } - - // Param is passed by value, moved - pub fn set_columns(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.columns = v; - } - - // Mutable pointer to the field. - pub fn mut_columns(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.columns - } - - // Take field - pub fn take_columns(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.columns, ::protobuf::RepeatedField::new()) - } - - // repeated .google.protobuf.ListValue values = 3; - - - pub fn get_values(&self) -> &[::protobuf::well_known_types::ListValue] { - &self.values - } - pub fn clear_values(&mut self) { - self.values.clear(); - } - - // Param is passed by value, moved - pub fn set_values(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>) { - self.values = v; - } - - // Mutable pointer to the field. - pub fn mut_values(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - &mut self.values - } - - // Take field - pub fn take_values(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - ::std::mem::replace(&mut self.values, ::protobuf::RepeatedField::new()) - } +impl ::protobuf::reflect::ProtobufValue for Mutation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl ::protobuf::Message for Mutation_Write { - fn is_initialized(&self) -> bool { - for v in &self.values { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.columns)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.values)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table); - } - for value in &self.columns { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.values { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table.is_empty() { - os.write_string(1, &self.table)?; - } - for v in &self.columns { - os.write_string(2, &v)?; - }; - for v in &self.values { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Mutation_Write { - Mutation_Write::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( +/// Nested message and enums of message `Mutation` +pub mod mutation { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.Mutation.operation) + pub enum Operation { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.Mutation.insert) + Insert(Write), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.Mutation.update) + Update(Write), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.Mutation.insert_or_update) + InsertOrUpdate(Write), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.Mutation.replace) + Replace(Write), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.Mutation.delete) + Delete(Delete), + } + + impl ::protobuf::Oneof for Operation { + } + + impl ::protobuf::OneofFull for Operation { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("operation").unwrap()).clone() + } + } + + impl Operation { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("operation") + } + } + /// Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and + /// [replace][google.spanner.v1.Mutation.replace] operations. + // @@protoc_insertion_point(message:google.spanner.v1.Mutation.Write) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Write { + // message fields + /// Required. The table whose rows will be written. + // @@protoc_insertion_point(field:google.spanner.v1.Mutation.Write.table) + pub table: ::std::string::String, + /// The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written. + /// + /// The list of columns must contain enough columns to allow + /// Cloud Spanner to derive values for all primary key columns in the + /// row(s) to be modified. + // @@protoc_insertion_point(field:google.spanner.v1.Mutation.Write.columns) + pub columns: ::std::vec::Vec<::std::string::String>, + /// The values to be written. `values` can contain more than one + /// list of values. If it does, then multiple rows are written, one + /// for each entry in `values`. Each list in `values` must have + /// exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns] + /// above. Sending multiple lists is equivalent to sending multiple + /// `Mutation`s, each containing one `values` entry and repeating + /// [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are + /// encoded as described [here][google.spanner.v1.TypeCode]. + // @@protoc_insertion_point(field:google.spanner.v1.Mutation.Write.values) + pub values: ::std::vec::Vec<::protobuf::well_known_types::struct_::ListValue>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.Mutation.Write.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Write { + fn default() -> &'a Write { + ::default_instance() + } + } + + impl Write { + pub fn new() -> Write { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "table", - |m: &Mutation_Write| { &m.table }, - |m: &mut Mutation_Write| { &mut m.table }, + |m: &Write| { &m.table }, + |m: &mut Write| { &mut m.table }, )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( "columns", - |m: &Mutation_Write| { &m.columns }, - |m: &mut Mutation_Write| { &mut m.columns }, + |m: &Write| { &m.columns }, + |m: &mut Write| { &mut m.columns }, )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::ListValue>>( + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( "values", - |m: &Mutation_Write| { &m.values }, - |m: &mut Mutation_Write| { &mut m.values }, + |m: &Write| { &m.values }, + |m: &mut Write| { &mut m.values }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Mutation.Write", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static Mutation_Write { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_Write::new) + } } -} -impl ::protobuf::Clear for Mutation_Write { - fn clear(&mut self) { - self.table.clear(); - self.columns.clear(); - self.values.clear(); - self.unknown_fields.clear(); - } -} + impl ::protobuf::Message for Write { + const NAME: &'static str = "Write"; -impl ::std::fmt::Debug for Mutation_Write { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::reflect::ProtobufValue for Mutation_Write { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table = is.read_string()?; + }, + 18 => { + self.columns.push(is.read_string()?); + }, + 26 => { + self.values.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -#[derive(PartialEq,Clone,Default)] -pub struct Mutation_Delete { - // message fields - pub table: ::std::string::String, - pub key_set: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.table.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.table); + } + for value in &self.columns { + my_size += ::protobuf::rt::string_size(2, &value); + }; + for value in &self.values { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl<'a> ::std::default::Default for &'a Mutation_Delete { - fn default() -> &'a Mutation_Delete { - ::default_instance() - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.table.is_empty() { + os.write_string(1, &self.table)?; + } + for v in &self.columns { + os.write_string(2, &v)?; + }; + for v in &self.values { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl Mutation_Delete { - pub fn new() -> Mutation_Delete { - ::std::default::Default::default() - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - // string table = 1; + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + fn new() -> Write { + Write::new() + } - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } + fn clear(&mut self) { + self.table.clear(); + self.columns.clear(); + self.values.clear(); + self.special_fields.clear(); + } - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; + fn default_instance() -> &'static Write { + static instance: Write = Write { + table: ::std::string::String::new(), + columns: ::std::vec::Vec::new(), + values: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table + impl ::protobuf::MessageFull for Write { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.Write").unwrap()).clone() + } } - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) + impl ::std::fmt::Display for Write { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // .google.spanner.v1.KeySet key_set = 2; - - - pub fn get_key_set(&self) -> &super::keys::KeySet { - self.key_set.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_key_set(&mut self) { - self.key_set.clear(); + impl ::protobuf::reflect::ProtobufValue for Write { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - pub fn has_key_set(&self) -> bool { - self.key_set.is_some() + /// Arguments to [delete][google.spanner.v1.Mutation.delete] operations. + // @@protoc_insertion_point(message:google.spanner.v1.Mutation.Delete) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Delete { + // message fields + /// Required. The table whose rows will be deleted. + // @@protoc_insertion_point(field:google.spanner.v1.Mutation.Delete.table) + pub table: ::std::string::String, + /// Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete. + /// Delete is idempotent. The transaction will succeed even if some or all + /// rows do not exist. + // @@protoc_insertion_point(field:google.spanner.v1.Mutation.Delete.key_set) + pub key_set: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.Mutation.Delete.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - // Param is passed by value, moved - pub fn set_key_set(&mut self, v: super::keys::KeySet) { - self.key_set = ::protobuf::SingularPtrField::some(v); + impl<'a> ::std::default::Default for &'a Delete { + fn default() -> &'a Delete { + ::default_instance() + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key_set(&mut self) -> &mut super::keys::KeySet { - if self.key_set.is_none() { - self.key_set.set_default(); + impl Delete { + pub fn new() -> Delete { + ::std::default::Default::default() } - self.key_set.as_mut().unwrap() - } - // Take field - pub fn take_key_set(&mut self) -> super::keys::KeySet { - self.key_set.take().unwrap_or_else(|| super::keys::KeySet::new()) + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table", + |m: &Delete| { &m.table }, + |m: &mut Delete| { &mut m.table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::keys::KeySet>( + "key_set", + |m: &Delete| { &m.key_set }, + |m: &mut Delete| { &mut m.key_set }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Mutation.Delete", + fields, + oneofs, + ) + } } -} -impl ::protobuf::Message for Mutation_Delete { - fn is_initialized(&self) -> bool { - for v in &self.key_set { - if !v.is_initialized() { - return false; - } - }; - true - } + impl ::protobuf::Message for Delete { + const NAME: &'static str = "Delete"; - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key_set)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + fn is_initialized(&self) -> bool { + true } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.table); - } - if let Some(ref v) = self.key_set.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.table = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.key_set)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.table.is_empty() { - os.write_string(1, &self.table)?; - } - if let Some(ref v) = self.key_set.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.table.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.table); + } + if let Some(v) = self.key_set.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.table.is_empty() { + os.write_string(1, &self.table)?; + } + if let Some(v) = self.key_set.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn new() -> Mutation_Delete { - Mutation_Delete::new() - } + fn new() -> Delete { + Delete::new() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &Mutation_Delete| { &m.table }, - |m: &mut Mutation_Delete| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "key_set", - |m: &Mutation_Delete| { &m.key_set }, - |m: &mut Mutation_Delete| { &mut m.key_set }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mutation.Delete", - fields, - file_descriptor_proto() - ) - }) - } + fn clear(&mut self) { + self.table.clear(); + self.key_set.clear(); + self.special_fields.clear(); + } - fn default_instance() -> &'static Mutation_Delete { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Mutation_Delete::new) + fn default_instance() -> &'static Delete { + static instance: Delete = Delete { + table: ::std::string::String::new(), + key_set: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for Mutation_Delete { - fn clear(&mut self) { - self.table.clear(); - self.key_set.clear(); - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for Delete { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Mutation.Delete").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for Mutation_Delete { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for Delete { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for Mutation_Delete { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + impl ::protobuf::reflect::ProtobufValue for Delete { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x20google/spanner/v1/mutation.proto\x12\x11google.spanner.v1\x1a\x1fg\ - oogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\ - \x1cgoogle/spanner/v1/keys.proto\"\xad\x04\n\x08Mutation\x12;\n\x06inser\ - t\x18\x01\x20\x01(\x0b2!.google.spanner.v1.Mutation.WriteH\0R\x06insert\ - \x12;\n\x06update\x18\x02\x20\x01(\x0b2!.google.spanner.v1.Mutation.Writ\ - eH\0R\x06update\x12M\n\x10insert_or_update\x18\x03\x20\x01(\x0b2!.google\ - .spanner.v1.Mutation.WriteH\0R\x0einsertOrUpdate\x12=\n\x07replace\x18\ - \x04\x20\x01(\x0b2!.google.spanner.v1.Mutation.WriteH\0R\x07replace\x12<\ - \n\x06delete\x18\x05\x20\x01(\x0b2\".google.spanner.v1.Mutation.DeleteH\ - \0R\x06delete\x1ap\n\x05Write\x12\x19\n\x05table\x18\x01\x20\x01(\tR\x05\ - tableB\x03\xe0A\x02\x12\x18\n\x07columns\x18\x02\x20\x03(\tR\x07columns\ - \x122\n\x06values\x18\x03\x20\x03(\x0b2\x1a.google.protobuf.ListValueR\ - \x06values\x1a\\\n\x06Delete\x12\x19\n\x05table\x18\x01\x20\x01(\tR\x05t\ - ableB\x03\xe0A\x02\x127\n\x07key_set\x18\x02\x20\x01(\x0b2\x19.google.sp\ - anner.v1.KeySetR\x06keySetB\x03\xe0A\x02B\x0b\n\toperationB\xb0\x01\n\ - \x15com.google.spanner.v1B\rMutationProtoP\x01Z5cloud.google.com/go/span\ - ner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\ - \x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\ - \x88&\n\x06\x12\x04\x0e\0j\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x1a\n\t\n\x02\x03\0\x12\x03\x12\0)\n\t\n\x02\x03\x01\ - \x12\x03\x13\0&\n\t\n\x02\x03\x02\x12\x03\x14\0&\n\x08\n\x01\x08\x12\x03\ - \x16\04\n\t\n\x02\x08%\x12\x03\x16\04\n\x08\n\x01\x08\x12\x03\x17\0L\n\t\ - \n\x02\x08\x0b\x12\x03\x17\0L\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\ - \x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0.\n\t\n\x02\x08\x08\ - \x12\x03\x19\0.\n\x08\n\x01\x08\x12\x03\x1a\0.\n\t\n\x02\x08\x01\x12\x03\ - \x1a\0.\n\x08\n\x01\x08\x12\x03\x1b\04\n\t\n\x02\x08)\x12\x03\x1b\04\n\ - \x08\n\x01\x08\x12\x03\x1c\03\n\t\n\x02\x08-\x12\x03\x1c\03\n\xbe\x01\n\ - \x02\x04\0\x12\x04!\0j\x01\x1a\xb1\x01\x20A\x20modification\x20to\x20one\ - \x20or\x20more\x20Cloud\x20Spanner\x20rows.\x20\x20Mutations\x20can\x20b\ - e\n\x20applied\x20to\x20a\x20Cloud\x20Spanner\x20database\x20by\x20sendi\ - ng\x20them\x20in\x20a\n\x20[Commit][google.spanner.v1.Spanner.Commit]\ - \x20call.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\n\xf7\x01\n\x04\x04\0\ + \n\x20google/spanner/v1/mutation.proto\x12\x11google.spanner.v1\x1a\x1cg\ + oogle/protobuf/struct.proto\x1a\x1cgoogle/spanner/v1/keys.proto\x1a\x1cg\ + oogle/api/annotations.proto\"\x9e\x04\n\x08Mutation\x12;\n\x06insert\x18\ + \x01\x20\x01(\x0b2!.google.spanner.v1.Mutation.WriteH\0R\x06insert\x12;\ + \n\x06update\x18\x02\x20\x01(\x0b2!.google.spanner.v1.Mutation.WriteH\0R\ + \x06update\x12M\n\x10insert_or_update\x18\x03\x20\x01(\x0b2!.google.span\ + ner.v1.Mutation.WriteH\0R\x0einsertOrUpdate\x12=\n\x07replace\x18\x04\ + \x20\x01(\x0b2!.google.spanner.v1.Mutation.WriteH\0R\x07replace\x12<\n\ + \x06delete\x18\x05\x20\x01(\x0b2\".google.spanner.v1.Mutation.DeleteH\0R\ + \x06delete\x1ak\n\x05Write\x12\x14\n\x05table\x18\x01\x20\x01(\tR\x05tab\ + le\x12\x18\n\x07columns\x18\x02\x20\x03(\tR\x07columns\x122\n\x06values\ + \x18\x03\x20\x03(\x0b2\x1a.google.protobuf.ListValueR\x06values\x1aR\n\ + \x06Delete\x12\x14\n\x05table\x18\x01\x20\x01(\tR\x05table\x122\n\x07key\ + _set\x18\x02\x20\x01(\x0b2\x19.google.spanner.v1.KeySetR\x06keySetB\x0b\ + \n\toperationB\x96\x01\n\x15com.google.spanner.v1B\rMutationProtoP\x01Z8\ + google.golang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Goog\ + le.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\xab!\n\x06\ + \x12\x04\x0f\0c\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Co\ + pyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apa\ + che\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20m\ + ay\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ + \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ + LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ + \x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\ + \x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20B\ + ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ + D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ + for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ + \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ + \x11\0\x1a\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\ + \0&\n\t\n\x02\x03\x02\x12\x03\x15\0&\n\x08\n\x01\x08\x12\x03\x17\04\n\t\ + \n\x02\x08%\x12\x03\x17\04\n\x08\n\x01\x08\x12\x03\x18\0O\n\t\n\x02\x08\ + \x0b\x12\x03\x18\0O\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\ + \x03\x19\0\"\n\x08\n\x01\x08\x12\x03\x1a\0.\n\t\n\x02\x08\x08\x12\x03\ + \x1a\0.\n\x08\n\x01\x08\x12\x03\x1b\0.\n\t\n\x02\x08\x01\x12\x03\x1b\0.\ + \n\x08\n\x01\x08\x12\x03\x1c\04\n\t\n\x02\x08)\x12\x03\x1c\04\n\xbe\x01\ + \n\x02\x04\0\x12\x04!\0c\x01\x1a\xb1\x01\x20A\x20modification\x20to\x20o\ + ne\x20or\x20more\x20Cloud\x20Spanner\x20rows.\x20\x20Mutations\x20can\ + \x20be\n\x20applied\x20to\x20a\x20Cloud\x20Spanner\x20database\x20by\x20\ + sending\x20them\x20in\x20a\n\x20[Commit][google.spanner.v1.Spanner.Commi\ + t]\x20call.\n\n\n\n\x03\x04\0\x01\x12\x03!\x08\x10\n\xf7\x01\n\x04\x04\0\ \x03\0\x12\x04$\x028\x03\x1a\xe8\x01\x20Arguments\x20to\x20[insert][goog\ le.spanner.v1.Mutation.insert],\x20[update][google.spanner.v1.Mutation.u\ pdate],\x20[insert_or_update][google.spanner.v1.Mutation.insert_or_updat\ e],\x20and\n\x20[replace][google.spanner.v1.Mutation.replace]\x20operati\ ons.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03$\n\x0f\n@\n\x06\x04\0\x03\0\ - \x02\0\x12\x03&\x04>\x1a1\x20Required.\x20The\x20table\x20whose\x20rows\ - \x20will\x20be\x20written.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03&\ - \x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03&\x0b\x10\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x03\x12\x03&\x13\x14\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x08\x12\x03&\x15=\n\x11\n\n\x04\0\x03\0\x02\0\x08\x9c\x08\0\x12\x03&\ - \x16<\n\x82\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03-\x04\x20\x1a\xf2\x01\ - \x20The\x20names\x20of\x20the\x20columns\x20in\x20[table][google.spanner\ - .v1.Mutation.Write.table]\x20to\x20be\x20written.\n\n\x20The\x20list\x20\ - of\x20columns\x20must\x20contain\x20enough\x20columns\x20to\x20allow\n\ - \x20Cloud\x20Spanner\x20to\x20derive\x20values\x20for\x20all\x20primary\ - \x20key\x20columns\x20in\x20the\n\x20row(s)\x20to\x20be\x20modified.\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03-\x04\x0c\n\x0e\n\x07\x04\0\ - \x03\0\x02\x01\x05\x12\x03-\r\x13\n\x0e\n\x07\x04\0\x03\0\x02\x01\x01\ - \x12\x03-\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03-\x1e\x1f\n\ - \xf8\x04\n\x06\x04\0\x03\0\x02\x02\x12\x037\x042\x1a\xe8\x04\x20The\x20v\ - alues\x20to\x20be\x20written.\x20`values`\x20can\x20contain\x20more\x20t\ - han\x20one\n\x20list\x20of\x20values.\x20If\x20it\x20does,\x20then\x20mu\ - ltiple\x20rows\x20are\x20written,\x20one\n\x20for\x20each\x20entry\x20in\ - \x20`values`.\x20Each\x20list\x20in\x20`values`\x20must\x20have\n\x20exa\ - ctly\x20as\x20many\x20entries\x20as\x20there\x20are\x20entries\x20in\x20\ - [columns][google.spanner.v1.Mutation.Write.columns]\n\x20above.\x20Sendi\ - ng\x20multiple\x20lists\x20is\x20equivalent\x20to\x20sending\x20multiple\ - \n\x20`Mutation`s,\x20each\x20containing\x20one\x20`values`\x20entry\x20\ - and\x20repeating\n\x20[table][google.spanner.v1.Mutation.Write.table]\ - \x20and\x20[columns][google.spanner.v1.Mutation.Write.columns].\x20Indiv\ - idual\x20values\x20in\x20each\x20list\x20are\n\x20encoded\x20as\x20descr\ - ibed\x20[here][google.spanner.v1.TypeCode].\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\x02\x04\x12\x037\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x02\x06\x12\ - \x037\r&\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x037'-\n\x0e\n\x07\x04\ - \0\x03\0\x02\x02\x03\x12\x03701\nT\n\x04\x04\0\x03\x01\x12\x04;\x02F\x03\ - \x1aF\x20Arguments\x20to\x20[delete][google.spanner.v1.Mutation.delete]\ - \x20operations.\n\n\x0c\n\x05\x04\0\x03\x01\x01\x12\x03;\n\x10\n@\n\x06\ - \x04\0\x03\x01\x02\0\x12\x03=\x04>\x1a1\x20Required.\x20The\x20table\x20\ - whose\x20rows\x20will\x20be\x20deleted.\n\n\x0e\n\x07\x04\0\x03\x01\x02\ - \0\x05\x12\x03=\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03=\x0b\ - \x10\n\x0e\n\x07\x04\0\x03\x01\x02\0\x03\x12\x03=\x13\x14\n\x0e\n\x07\ - \x04\0\x03\x01\x02\0\x08\x12\x03=\x15=\n\x11\n\n\x04\0\x03\x01\x02\0\x08\ - \x9c\x08\0\x12\x03=\x16<\n\x94\x03\n\x06\x04\0\x03\x01\x02\x01\x12\x03E\ - \x04@\x1a\x84\x03\x20Required.\x20The\x20primary\x20keys\x20of\x20the\ + \x02\0\x12\x03&\x04\x15\x1a1\x20Required.\x20The\x20table\x20whose\x20ro\ + ws\x20will\x20be\x20written.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03\ + &\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03&\x0b\x10\n\x0e\n\x07\ + \x04\0\x03\0\x02\0\x03\x12\x03&\x13\x14\n\x82\x02\n\x06\x04\0\x03\0\x02\ + \x01\x12\x03-\x04\x20\x1a\xf2\x01\x20The\x20names\x20of\x20the\x20column\ + s\x20in\x20[table][google.spanner.v1.Mutation.Write.table]\x20to\x20be\ + \x20written.\n\n\x20The\x20list\x20of\x20columns\x20must\x20contain\x20e\ + nough\x20columns\x20to\x20allow\n\x20Cloud\x20Spanner\x20to\x20derive\ + \x20values\x20for\x20all\x20primary\x20key\x20columns\x20in\x20the\n\x20\ + row(s)\x20to\x20be\x20modified.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\ + \x12\x03-\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03-\r\x13\n\ + \x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03-\x14\x1b\n\x0e\n\x07\x04\0\ + \x03\0\x02\x01\x03\x12\x03-\x1e\x1f\n\xf8\x04\n\x06\x04\0\x03\0\x02\x02\ + \x12\x037\x042\x1a\xe8\x04\x20The\x20values\x20to\x20be\x20written.\x20`\ + values`\x20can\x20contain\x20more\x20than\x20one\n\x20list\x20of\x20valu\ + es.\x20If\x20it\x20does,\x20then\x20multiple\x20rows\x20are\x20written,\ + \x20one\n\x20for\x20each\x20entry\x20in\x20`values`.\x20Each\x20list\x20\ + in\x20`values`\x20must\x20have\n\x20exactly\x20as\x20many\x20entries\x20\ + as\x20there\x20are\x20entries\x20in\x20[columns][google.spanner.v1.Mutat\ + ion.Write.columns]\n\x20above.\x20Sending\x20multiple\x20lists\x20is\x20\ + equivalent\x20to\x20sending\x20multiple\n\x20`Mutation`s,\x20each\x20con\ + taining\x20one\x20`values`\x20entry\x20and\x20repeating\n\x20[table][goo\ + gle.spanner.v1.Mutation.Write.table]\x20and\x20[columns][google.spanner.\ + v1.Mutation.Write.columns].\x20Individual\x20values\x20in\x20each\x20lis\ + t\x20are\n\x20encoded\x20as\x20described\x20[here][google.spanner.v1.Typ\ + eCode].\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x04\x12\x037\x04\x0c\n\x0e\n\ + \x07\x04\0\x03\0\x02\x02\x06\x12\x037\r&\n\x0e\n\x07\x04\0\x03\0\x02\x02\ + \x01\x12\x037'-\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03701\nT\n\x04\ + \x04\0\x03\x01\x12\x04;\x02C\x03\x1aF\x20Arguments\x20to\x20[delete][goo\ + gle.spanner.v1.Mutation.delete]\x20operations.\n\n\x0c\n\x05\x04\0\x03\ + \x01\x01\x12\x03;\n\x10\n@\n\x06\x04\0\x03\x01\x02\0\x12\x03=\x04\x15\ + \x1a1\x20Required.\x20The\x20table\x20whose\x20rows\x20will\x20be\x20del\ + eted.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\x03=\x04\n\n\x0e\n\x07\ + \x04\0\x03\x01\x02\0\x01\x12\x03=\x0b\x10\n\x0e\n\x07\x04\0\x03\x01\x02\ + \0\x03\x12\x03=\x13\x14\n\xd7\x01\n\x06\x04\0\x03\x01\x02\x01\x12\x03B\ + \x04\x17\x1a\xc7\x01\x20Required.\x20The\x20primary\x20keys\x20of\x20the\ \x20rows\x20within\x20[table][google.spanner.v1.Mutation.Delete.table]\ - \x20to\x20delete.\x20\x20The\n\x20primary\x20keys\x20must\x20be\x20speci\ - fied\x20in\x20the\x20order\x20in\x20which\x20they\x20appear\x20in\x20the\ - \n\x20`PRIMARY\x20KEY()`\x20clause\x20of\x20the\x20table's\x20equivalent\ - \x20DDL\x20statement\x20(the\x20DDL\n\x20statement\x20used\x20to\x20crea\ - te\x20the\x20table).\n\x20Delete\x20is\x20idempotent.\x20The\x20transact\ - ion\x20will\x20succeed\x20even\x20if\x20some\x20or\x20all\n\x20rows\x20d\ - o\x20not\x20exist.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x03E\x04\ - \n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03E\x0b\x12\n\x0e\n\x07\ - \x04\0\x03\x01\x02\x01\x03\x12\x03E\x15\x16\n\x0e\n\x07\x04\0\x03\x01\ - \x02\x01\x08\x12\x03E\x17?\n\x11\n\n\x04\0\x03\x01\x02\x01\x08\x9c\x08\0\ - \x12\x03E\x18>\n3\n\x04\x04\0\x08\0\x12\x04I\x02i\x03\x1a%\x20Required.\ - \x20The\x20operation\x20to\x20perform.\n\n\x0c\n\x05\x04\0\x08\0\x01\x12\ - \x03I\x08\x11\n\x89\x01\n\x04\x04\0\x02\0\x12\x03L\x04\x15\x1a|\x20Inser\ - t\x20new\x20rows\x20in\x20a\x20table.\x20If\x20any\x20of\x20the\x20rows\ - \x20already\x20exist,\n\x20the\x20write\x20or\x20transaction\x20fails\ - \x20with\x20error\x20`ALREADY_EXISTS`.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\ - \x03L\x04\t\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03L\n\x10\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03L\x13\x14\n\x89\x01\n\x04\x04\0\x02\x01\x12\x03P\x04\ - \x15\x1a|\x20Update\x20existing\x20rows\x20in\x20a\x20table.\x20If\x20an\ - y\x20of\x20the\x20rows\x20does\x20not\n\x20already\x20exist,\x20the\x20t\ - ransaction\x20fails\x20with\x20error\x20`NOT_FOUND`.\n\n\x0c\n\x05\x04\0\ - \x02\x01\x06\x12\x03P\x04\t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03P\n\x10\ - \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03P\x13\x14\n\x85\x04\n\x04\x04\0\ - \x02\x02\x12\x03Y\x04\x1f\x1a\xf7\x03\x20Like\x20[insert][google.spanner\ - .v1.Mutation.insert],\x20except\x20that\x20if\x20the\x20row\x20already\ - \x20exists,\x20then\n\x20its\x20column\x20values\x20are\x20overwritten\ - \x20with\x20the\x20ones\x20provided.\x20Any\n\x20column\x20values\x20not\ - \x20explicitly\x20written\x20are\x20preserved.\n\n\x20When\x20using\x20[\ - insert_or_update][google.spanner.v1.Mutation.insert_or_update],\x20just\ - \x20as\x20when\x20using\x20[insert][google.spanner.v1.Mutation.insert],\ - \x20all\x20`NOT\n\x20NULL`\x20columns\x20in\x20the\x20table\x20must\x20b\ - e\x20given\x20a\x20value.\x20This\x20holds\x20true\n\x20even\x20when\x20\ - the\x20row\x20already\x20exists\x20and\x20will\x20therefore\x20actually\ - \x20be\x20updated.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03Y\x04\t\n\x0c\ - \n\x05\x04\0\x02\x02\x01\x12\x03Y\n\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\ - \x12\x03Y\x1d\x1e\n\x9e\x04\n\x04\x04\0\x02\x03\x12\x03d\x04\x16\x1a\x90\ - \x04\x20Like\x20[insert][google.spanner.v1.Mutation.insert],\x20except\ - \x20that\x20if\x20the\x20row\x20already\x20exists,\x20it\x20is\n\x20dele\ - ted,\x20and\x20the\x20column\x20values\x20provided\x20are\x20inserted\n\ - \x20instead.\x20Unlike\x20[insert_or_update][google.spanner.v1.Mutation.\ - insert_or_update],\x20this\x20means\x20any\x20values\x20not\n\x20explici\ - tly\x20written\x20become\x20`NULL`.\n\n\x20In\x20an\x20interleaved\x20ta\ - ble,\x20if\x20you\x20create\x20the\x20child\x20table\x20with\x20the\n\ - \x20`ON\x20DELETE\x20CASCADE`\x20annotation,\x20then\x20replacing\x20a\ - \x20parent\x20row\n\x20also\x20deletes\x20the\x20child\x20rows.\x20Other\ - wise,\x20you\x20must\x20delete\x20the\n\x20child\x20rows\x20before\x20yo\ - u\x20replace\x20the\x20parent\x20row.\n\n\x0c\n\x05\x04\0\x02\x03\x06\ - \x12\x03d\x04\t\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03d\n\x11\n\x0c\n\x05\ - \x04\0\x02\x03\x03\x12\x03d\x14\x15\n^\n\x04\x04\0\x02\x04\x12\x03h\x04\ - \x16\x1aQ\x20Delete\x20rows\x20from\x20a\x20table.\x20Succeeds\x20whethe\ - r\x20or\x20not\x20the\x20named\n\x20rows\x20were\x20present.\n\n\x0c\n\ - \x05\x04\0\x02\x04\x06\x12\x03h\x04\n\n\x0c\n\x05\x04\0\x02\x04\x01\x12\ - \x03h\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03h\x14\x15b\x06proto3\ + \x20to\x20delete.\n\x20Delete\x20is\x20idempotent.\x20The\x20transaction\ + \x20will\x20succeed\x20even\x20if\x20some\x20or\x20all\n\x20rows\x20do\ + \x20not\x20exist.\n\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x03B\x04\n\ + \n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03B\x0b\x12\n\x0e\n\x07\x04\ + \0\x03\x01\x02\x01\x03\x12\x03B\x15\x16\n3\n\x04\x04\0\x08\0\x12\x04F\ + \x02b\x03\x1a%\x20Required.\x20The\x20operation\x20to\x20perform.\n\n\ + \x0c\n\x05\x04\0\x08\0\x01\x12\x03F\x08\x11\n\x89\x01\n\x04\x04\0\x02\0\ + \x12\x03I\x04\x15\x1a|\x20Insert\x20new\x20rows\x20in\x20a\x20table.\x20\ + If\x20any\x20of\x20the\x20rows\x20already\x20exist,\n\x20the\x20write\ + \x20or\x20transaction\x20fails\x20with\x20error\x20`ALREADY_EXISTS`.\n\n\ + \x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x04\t\n\x0c\n\x05\x04\0\x02\0\x01\ + \x12\x03I\n\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03I\x13\x14\n\x89\x01\n\ + \x04\x04\0\x02\x01\x12\x03M\x04\x15\x1a|\x20Update\x20existing\x20rows\ + \x20in\x20a\x20table.\x20If\x20any\x20of\x20the\x20rows\x20does\x20not\n\ + \x20already\x20exist,\x20the\x20transaction\x20fails\x20with\x20error\ + \x20`NOT_FOUND`.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03M\x04\t\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03M\n\x10\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x03M\x13\x14\n\xe1\x01\n\x04\x04\0\x02\x02\x12\x03R\x04\x1f\x1a\xd3\x01\ + \x20Like\x20[insert][google.spanner.v1.Mutation.insert],\x20except\x20th\ + at\x20if\x20the\x20row\x20already\x20exists,\x20then\n\x20its\x20column\ + \x20values\x20are\x20overwritten\x20with\x20the\x20ones\x20provided.\x20\ + Any\n\x20column\x20values\x20not\x20explicitly\x20written\x20are\x20pres\ + erved.\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03R\x04\t\n\x0c\n\x05\x04\0\ + \x02\x02\x01\x12\x03R\n\x1a\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03R\x1d\ + \x1e\n\x9e\x04\n\x04\x04\0\x02\x03\x12\x03]\x04\x16\x1a\x90\x04\x20Like\ + \x20[insert][google.spanner.v1.Mutation.insert],\x20except\x20that\x20if\ + \x20the\x20row\x20already\x20exists,\x20it\x20is\n\x20deleted,\x20and\ + \x20the\x20column\x20values\x20provided\x20are\x20inserted\n\x20instead.\ + \x20Unlike\x20[insert_or_update][google.spanner.v1.Mutation.insert_or_up\ + date],\x20this\x20means\x20any\x20values\x20not\n\x20explicitly\x20writt\ + en\x20become\x20`NULL`.\n\n\x20In\x20an\x20interleaved\x20table,\x20if\ + \x20you\x20create\x20the\x20child\x20table\x20with\x20the\n\x20`ON\x20DE\ + LETE\x20CASCADE`\x20annotation,\x20then\x20replacing\x20a\x20parent\x20r\ + ow\n\x20also\x20deletes\x20the\x20child\x20rows.\x20Otherwise,\x20you\ + \x20must\x20delete\x20the\n\x20child\x20rows\x20before\x20you\x20replace\ + \x20the\x20parent\x20row.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03]\x04\t\ + \n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03]\n\x11\n\x0c\n\x05\x04\0\x02\x03\ + \x03\x12\x03]\x14\x15\n^\n\x04\x04\0\x02\x04\x12\x03a\x04\x16\x1aQ\x20De\ + lete\x20rows\x20from\x20a\x20table.\x20Succeeds\x20whether\x20or\x20not\ + \x20the\x20named\n\x20rows\x20were\x20present.\n\n\x0c\n\x05\x04\0\x02\ + \x04\x06\x12\x03a\x04\n\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03a\x0b\x11\n\ + \x0c\n\x05\x04\0\x02\x04\x03\x12\x03a\x14\x15b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(super::keys::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(Mutation::generated_message_descriptor_data()); + messages.push(mutation::Write::generated_message_descriptor_data()); + messages.push(mutation::Delete::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/query_plan.rs b/googleapis-raw/src/spanner/v1/query_plan.rs index 9970057..2c1eac1 100644 --- a/googleapis-raw/src/spanner/v1/query_plan.rs +++ b/googleapis-raw/src/spanner/v1/query_plan.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,50 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/query_plan.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Node information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes]. +// @@protoc_insertion_point(message:google.spanner.v1.PlanNode) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PlanNode { // message fields + /// The `PlanNode`'s index in [node list][google.spanner.v1.QueryPlan.plan_nodes]. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.index) pub index: i32, - pub kind: PlanNode_Kind, + /// Used to determine the type of node. May be needed for visualizing + /// different kinds of nodes differently. For example, If the node is a + /// [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] node, it will have a condensed representation + /// which can be used to directly embed a description of the node in its + /// parent. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.kind) + pub kind: ::protobuf::EnumOrUnknown, + /// The display name for the node. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.display_name) pub display_name: ::std::string::String, - pub child_links: ::protobuf::RepeatedField, - pub short_representation: ::protobuf::SingularPtrField, - pub metadata: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub execution_stats: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, + /// List of child node `index`es and their relationship to this parent. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.child_links) + pub child_links: ::std::vec::Vec, + /// Condensed representation for [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] nodes. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.short_representation) + pub short_representation: ::protobuf::MessageField, + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.metadata) + pub metadata: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + /// The execution statistics associated with the node, contained in a group of + /// key-value pairs. Only present if the plan was returned as a result of a + /// profile query. For example, number of executions, number of rows/time per + /// execution etc. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.execution_stats) + pub execution_stats: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.PlanNode.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PlanNode { @@ -49,243 +73,85 @@ impl PlanNode { ::std::default::Default::default() } - // int32 index = 1; - - - pub fn get_index(&self) -> i32 { - self.index - } - pub fn clear_index(&mut self) { - self.index = 0; - } - - // Param is passed by value, moved - pub fn set_index(&mut self, v: i32) { - self.index = v; - } - - // .google.spanner.v1.PlanNode.Kind kind = 2; - - - pub fn get_kind(&self) -> PlanNode_Kind { - self.kind - } - pub fn clear_kind(&mut self) { - self.kind = PlanNode_Kind::KIND_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_kind(&mut self, v: PlanNode_Kind) { - self.kind = v; - } - - // string display_name = 3; - - - pub fn get_display_name(&self) -> &str { - &self.display_name - } - pub fn clear_display_name(&mut self) { - self.display_name.clear(); - } - - // Param is passed by value, moved - pub fn set_display_name(&mut self, v: ::std::string::String) { - self.display_name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_display_name(&mut self) -> &mut ::std::string::String { - &mut self.display_name - } - - // Take field - pub fn take_display_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.display_name, ::std::string::String::new()) - } - - // repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4; - - - pub fn get_child_links(&self) -> &[PlanNode_ChildLink] { - &self.child_links - } - pub fn clear_child_links(&mut self) { - self.child_links.clear(); - } - - // Param is passed by value, moved - pub fn set_child_links(&mut self, v: ::protobuf::RepeatedField) { - self.child_links = v; - } - - // Mutable pointer to the field. - pub fn mut_child_links(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.child_links - } - - // Take field - pub fn take_child_links(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.child_links, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.v1.PlanNode.ShortRepresentation short_representation = 5; - - - pub fn get_short_representation(&self) -> &PlanNode_ShortRepresentation { - self.short_representation.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_short_representation(&mut self) { - self.short_representation.clear(); - } - - pub fn has_short_representation(&self) -> bool { - self.short_representation.is_some() - } - - // Param is passed by value, moved - pub fn set_short_representation(&mut self, v: PlanNode_ShortRepresentation) { - self.short_representation = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_short_representation(&mut self) -> &mut PlanNode_ShortRepresentation { - if self.short_representation.is_none() { - self.short_representation.set_default(); - } - self.short_representation.as_mut().unwrap() - } - - // Take field - pub fn take_short_representation(&mut self) -> PlanNode_ShortRepresentation { - self.short_representation.take().unwrap_or_else(|| PlanNode_ShortRepresentation::new()) - } - - // .google.protobuf.Struct metadata = 6; - - - pub fn get_metadata(&self) -> &::protobuf::well_known_types::Struct { - self.metadata.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - pub fn has_metadata(&self) -> bool { - self.metadata.is_some() - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: ::protobuf::well_known_types::Struct) { - self.metadata = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> ::protobuf::well_known_types::Struct { - self.metadata.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // .google.protobuf.Struct execution_stats = 7; - - - pub fn get_execution_stats(&self) -> &::protobuf::well_known_types::Struct { - self.execution_stats.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_execution_stats(&mut self) { - self.execution_stats.clear(); - } - - pub fn has_execution_stats(&self) -> bool { - self.execution_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_execution_stats(&mut self, v: ::protobuf::well_known_types::Struct) { - self.execution_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_execution_stats(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.execution_stats.is_none() { - self.execution_stats.set_default(); - } - self.execution_stats.as_mut().unwrap() - } - - // Take field - pub fn take_execution_stats(&mut self) -> ::protobuf::well_known_types::Struct { - self.execution_stats.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "index", + |m: &PlanNode| { &m.index }, + |m: &mut PlanNode| { &mut m.index }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "kind", + |m: &PlanNode| { &m.kind }, + |m: &mut PlanNode| { &mut m.kind }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "display_name", + |m: &PlanNode| { &m.display_name }, + |m: &mut PlanNode| { &mut m.display_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "child_links", + |m: &PlanNode| { &m.child_links }, + |m: &mut PlanNode| { &mut m.child_links }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, plan_node::ShortRepresentation>( + "short_representation", + |m: &PlanNode| { &m.short_representation }, + |m: &mut PlanNode| { &mut m.short_representation }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "metadata", + |m: &PlanNode| { &m.metadata }, + |m: &mut PlanNode| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "execution_stats", + |m: &PlanNode| { &m.execution_stats }, + |m: &mut PlanNode| { &mut m.execution_stats }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PlanNode", + fields, + oneofs, + ) } } impl ::protobuf::Message for PlanNode { + const NAME: &'static str = "PlanNode"; + fn is_initialized(&self) -> bool { - for v in &self.child_links { - if !v.is_initialized() { - return false; - } - }; - for v in &self.short_representation { - if !v.is_initialized() { - return false; - } - }; - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.execution_stats { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.index = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.index = is.read_int32()?; }, - 2 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 2, &mut self.unknown_fields)? + 16 => { + self.kind = is.read_enum_or_unknown()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.display_name)?; + 26 => { + self.display_name = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.child_links)?; + 34 => { + self.child_links.push(is.read_message()?); }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.short_representation)?; + 42 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.short_representation)?; }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.execution_stats)?; + 58 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.execution_stats)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -294,672 +160,542 @@ impl ::protobuf::Message for PlanNode { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.index != 0 { - my_size += ::protobuf::rt::value_size(1, self.index, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.index); } - if self.kind != PlanNode_Kind::KIND_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(2, self.kind); + if self.kind != ::protobuf::EnumOrUnknown::new(plan_node::Kind::KIND_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.kind.value()); } if !self.display_name.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.display_name); } for value in &self.child_links { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if let Some(ref v) = self.short_representation.as_ref() { + if let Some(v) = self.short_representation.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.metadata.as_ref() { + if let Some(v) = self.metadata.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.execution_stats.as_ref() { + if let Some(v) = self.execution_stats.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.index != 0 { os.write_int32(1, self.index)?; } - if self.kind != PlanNode_Kind::KIND_UNSPECIFIED { - os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.kind))?; + if self.kind != ::protobuf::EnumOrUnknown::new(plan_node::Kind::KIND_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.kind))?; } if !self.display_name.is_empty() { os.write_string(3, &self.display_name)?; } for v in &self.child_links { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - if let Some(ref v) = self.short_representation.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.short_representation.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; } - if let Some(ref v) = self.metadata.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.metadata.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - if let Some(ref v) = self.execution_stats.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.execution_stats.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PlanNode { PlanNode::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "index", - |m: &PlanNode| { &m.index }, - |m: &mut PlanNode| { &mut m.index }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "kind", - |m: &PlanNode| { &m.kind }, - |m: &mut PlanNode| { &mut m.kind }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "display_name", - |m: &PlanNode| { &m.display_name }, - |m: &mut PlanNode| { &mut m.display_name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "child_links", - |m: &PlanNode| { &m.child_links }, - |m: &mut PlanNode| { &mut m.child_links }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "short_representation", - |m: &PlanNode| { &m.short_representation }, - |m: &mut PlanNode| { &mut m.short_representation }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "metadata", - |m: &PlanNode| { &m.metadata }, - |m: &mut PlanNode| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "execution_stats", - |m: &PlanNode| { &m.execution_stats }, - |m: &mut PlanNode| { &mut m.execution_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PlanNode", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PlanNode { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PlanNode::new) - } -} - -impl ::protobuf::Clear for PlanNode { fn clear(&mut self) { self.index = 0; - self.kind = PlanNode_Kind::KIND_UNSPECIFIED; + self.kind = ::protobuf::EnumOrUnknown::new(plan_node::Kind::KIND_UNSPECIFIED); self.display_name.clear(); self.child_links.clear(); self.short_representation.clear(); self.metadata.clear(); self.execution_stats.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for PlanNode { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PlanNode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + fn default_instance() -> &'static PlanNode { + static instance: PlanNode = PlanNode { + index: 0, + kind: ::protobuf::EnumOrUnknown::from_i32(0), + display_name: ::std::string::String::new(), + child_links: ::std::vec::Vec::new(), + short_representation: ::protobuf::MessageField::none(), + metadata: ::protobuf::MessageField::none(), + execution_stats: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -#[derive(PartialEq,Clone,Default)] -pub struct PlanNode_ChildLink { - // message fields - pub child_index: i32, - pub field_type: ::std::string::String, - pub variable: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PlanNode_ChildLink { - fn default() -> &'a PlanNode_ChildLink { - ::default_instance() +impl ::protobuf::MessageFull for PlanNode { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PlanNode").unwrap()).clone() } } -impl PlanNode_ChildLink { - pub fn new() -> PlanNode_ChildLink { - ::std::default::Default::default() - } - - // int32 child_index = 1; - - - pub fn get_child_index(&self) -> i32 { - self.child_index - } - pub fn clear_child_index(&mut self) { - self.child_index = 0; - } - - // Param is passed by value, moved - pub fn set_child_index(&mut self, v: i32) { - self.child_index = v; - } - - // string type = 2; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string variable = 3; - - - pub fn get_variable(&self) -> &str { - &self.variable - } - pub fn clear_variable(&mut self) { - self.variable.clear(); - } - - // Param is passed by value, moved - pub fn set_variable(&mut self, v: ::std::string::String) { - self.variable = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_variable(&mut self) -> &mut ::std::string::String { - &mut self.variable - } - - // Take field - pub fn take_variable(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.variable, ::std::string::String::new()) +impl ::std::fmt::Display for PlanNode { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::Message for PlanNode_ChildLink { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.child_index = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.variable)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.child_index != 0 { - my_size += ::protobuf::rt::value_size(1, self.child_index, ::protobuf::wire_format::WireTypeVarint); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.field_type); - } - if !self.variable.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.variable); +impl ::protobuf::reflect::ProtobufValue for PlanNode { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `PlanNode` +pub mod plan_node { + /// Metadata associated with a parent-child relationship appearing in a + /// [PlanNode][google.spanner.v1.PlanNode]. + // @@protoc_insertion_point(message:google.spanner.v1.PlanNode.ChildLink) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ChildLink { + // message fields + /// The node to which the link points. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.ChildLink.child_index) + pub child_index: i32, + /// The type of the link. For example, in Hash Joins this could be used to + /// distinguish between the build child and the probe child, or in the case + /// of the child being an output variable, to represent the tag associated + /// with the output variable. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.ChildLink.type) + pub type_: ::std::string::String, + /// Only present if the child node is [SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR] and corresponds + /// to an output variable of the parent node. The field carries the name of + /// the output variable. + /// For example, a `TableScan` operator that reads rows from a table will + /// have child links to the `SCALAR` nodes representing the output variables + /// created for each column that is read by the operator. The corresponding + /// `variable` fields will be set to the variable names assigned to the + /// columns. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.ChildLink.variable) + pub variable: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PlanNode.ChildLink.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ChildLink { + fn default() -> &'a ChildLink { + ::default_instance() } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.child_index != 0 { - os.write_int32(1, self.child_index)?; - } - if !self.field_type.is_empty() { - os.write_string(2, &self.field_type)?; + impl ChildLink { + pub fn new() -> ChildLink { + ::std::default::Default::default() } - if !self.variable.is_empty() { - os.write_string(3, &self.variable)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PlanNode_ChildLink { - PlanNode_ChildLink::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "child_index", - |m: &PlanNode_ChildLink| { &m.child_index }, - |m: &mut PlanNode_ChildLink| { &mut m.child_index }, + |m: &ChildLink| { &m.child_index }, + |m: &mut ChildLink| { &mut m.child_index }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "type", - |m: &PlanNode_ChildLink| { &m.field_type }, - |m: &mut PlanNode_ChildLink| { &mut m.field_type }, + |m: &ChildLink| { &m.type_ }, + |m: &mut ChildLink| { &mut m.type_ }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "variable", - |m: &PlanNode_ChildLink| { &m.variable }, - |m: &mut PlanNode_ChildLink| { &mut m.variable }, + |m: &ChildLink| { &m.variable }, + |m: &mut ChildLink| { &mut m.variable }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "PlanNode.ChildLink", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static PlanNode_ChildLink { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PlanNode_ChildLink::new) - } -} + impl ::protobuf::Message for ChildLink { + const NAME: &'static str = "ChildLink"; -impl ::protobuf::Clear for PlanNode_ChildLink { - fn clear(&mut self) { - self.child_index = 0; - self.field_type.clear(); - self.variable.clear(); - self.unknown_fields.clear(); - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::fmt::Debug for PlanNode_ChildLink { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.child_index = is.read_int32()?; + }, + 18 => { + self.type_ = is.read_string()?; + }, + 26 => { + self.variable = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for PlanNode_ChildLink { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.child_index != 0 { + my_size += ::protobuf::rt::int32_size(1, self.child_index); + } + if !self.type_.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.type_); + } + if !self.variable.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.variable); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -#[derive(PartialEq,Clone,Default)] -pub struct PlanNode_ShortRepresentation { - // message fields - pub description: ::std::string::String, - pub subqueries: ::std::collections::HashMap<::std::string::String, i32>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.child_index != 0 { + os.write_int32(1, self.child_index)?; + } + if !self.type_.is_empty() { + os.write_string(2, &self.type_)?; + } + if !self.variable.is_empty() { + os.write_string(3, &self.variable)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl<'a> ::std::default::Default for &'a PlanNode_ShortRepresentation { - fn default() -> &'a PlanNode_ShortRepresentation { - ::default_instance() - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl PlanNode_ShortRepresentation { - pub fn new() -> PlanNode_ShortRepresentation { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // string description = 1; + fn new() -> ChildLink { + ChildLink::new() + } + fn clear(&mut self) { + self.child_index = 0; + self.type_.clear(); + self.variable.clear(); + self.special_fields.clear(); + } - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); + fn default_instance() -> &'static ChildLink { + static instance: ChildLink = ChildLink { + child_index: 0, + type_: ::std::string::String::new(), + variable: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; + impl ::protobuf::MessageFull for ChildLink { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PlanNode.ChildLink").unwrap()).clone() + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description + impl ::std::fmt::Display for ChildLink { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) + impl ::protobuf::reflect::ProtobufValue for ChildLink { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } + + /// Condensed representation of a node and its subtree. Only present for + /// `SCALAR` [PlanNode(s)][google.spanner.v1.PlanNode]. + // @@protoc_insertion_point(message:google.spanner.v1.PlanNode.ShortRepresentation) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ShortRepresentation { + // message fields + /// A string representation of the expression subtree rooted at this node. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.ShortRepresentation.description) + pub description: ::std::string::String, + /// A mapping of (subquery variable name) -> (subquery node id) for cases + /// where the `description` string of this node references a `SCALAR` + /// subquery contained in the expression subtree rooted at this node. The + /// referenced `SCALAR` subquery may not necessarily be a direct child of + /// this node. + // @@protoc_insertion_point(field:google.spanner.v1.PlanNode.ShortRepresentation.subqueries) + pub subqueries: ::std::collections::HashMap<::std::string::String, i32>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PlanNode.ShortRepresentation.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ShortRepresentation { + fn default() -> &'a ShortRepresentation { + ::default_instance() + } } - // repeated .google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry subqueries = 2; - - - pub fn get_subqueries(&self) -> &::std::collections::HashMap<::std::string::String, i32> { - &self.subqueries - } - pub fn clear_subqueries(&mut self) { - self.subqueries.clear(); - } + impl ShortRepresentation { + pub fn new() -> ShortRepresentation { + ::std::default::Default::default() + } - // Param is passed by value, moved - pub fn set_subqueries(&mut self, v: ::std::collections::HashMap<::std::string::String, i32>) { - self.subqueries = v; + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &ShortRepresentation| { &m.description }, + |m: &mut ShortRepresentation| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "subqueries", + |m: &ShortRepresentation| { &m.subqueries }, + |m: &mut ShortRepresentation| { &mut m.subqueries }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PlanNode.ShortRepresentation", + fields, + oneofs, + ) + } } - // Mutable pointer to the field. - pub fn mut_subqueries(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, i32> { - &mut self.subqueries - } + impl ::protobuf::Message for ShortRepresentation { + const NAME: &'static str = "ShortRepresentation"; - // Take field - pub fn take_subqueries(&mut self) -> ::std::collections::HashMap<::std::string::String, i32> { - ::std::mem::replace(&mut self.subqueries, ::std::collections::HashMap::new()) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::Message for PlanNode_ShortRepresentation { - fn is_initialized(&self) -> bool { - true - } + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.description = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 16 => value = is.read_int32()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.subqueries.insert(key, value); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt32>(wire_type, is, &mut self.subqueries)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.description.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.description); + } + for (k, v) in &self.subqueries { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int32_size(2, *v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.description.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.description); + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.description.is_empty() { + os.write_string(1, &self.description)?; + } + for (k, v) in &self.subqueries { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::int32_size(2, *v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_int32(2, *v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt32>(2, &self.subqueries); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.description.is_empty() { - os.write_string(1, &self.description)?; + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt32>(2, &self.subqueries, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } + fn new() -> ShortRepresentation { + ShortRepresentation::new() + } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } + fn clear(&mut self) { + self.description.clear(); + self.subqueries.clear(); + self.special_fields.clear(); + } - fn new() -> PlanNode_ShortRepresentation { - PlanNode_ShortRepresentation::new() + fn default_instance() -> &'static ShortRepresentation { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(ShortRepresentation::new) + } } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &PlanNode_ShortRepresentation| { &m.description }, - |m: &mut PlanNode_ShortRepresentation| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeInt32>( - "subqueries", - |m: &PlanNode_ShortRepresentation| { &m.subqueries }, - |m: &mut PlanNode_ShortRepresentation| { &mut m.subqueries }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PlanNode.ShortRepresentation", - fields, - file_descriptor_proto() - ) - }) + impl ::protobuf::MessageFull for ShortRepresentation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PlanNode.ShortRepresentation").unwrap()).clone() + } } - fn default_instance() -> &'static PlanNode_ShortRepresentation { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PlanNode_ShortRepresentation::new) + impl ::std::fmt::Display for ShortRepresentation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::Clear for PlanNode_ShortRepresentation { - fn clear(&mut self) { - self.description.clear(); - self.subqueries.clear(); - self.unknown_fields.clear(); + impl ::protobuf::reflect::ProtobufValue for ShortRepresentation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::std::fmt::Debug for PlanNode_ShortRepresentation { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + /// The kind of [PlanNode][google.spanner.v1.PlanNode]. Distinguishes between the two different kinds of + /// nodes that can appear in a query plan. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.spanner.v1.PlanNode.Kind) + pub enum Kind { + // @@protoc_insertion_point(enum_value:google.spanner.v1.PlanNode.Kind.KIND_UNSPECIFIED) + KIND_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.spanner.v1.PlanNode.Kind.RELATIONAL) + RELATIONAL = 1, + // @@protoc_insertion_point(enum_value:google.spanner.v1.PlanNode.Kind.SCALAR) + SCALAR = 2, } -} -impl ::protobuf::reflect::ProtobufValue for PlanNode_ShortRepresentation { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + impl ::protobuf::Enum for Kind { + const NAME: &'static str = "Kind"; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum PlanNode_Kind { - KIND_UNSPECIFIED = 0, - RELATIONAL = 1, - SCALAR = 2, -} + fn value(&self) -> i32 { + *self as i32 + } -impl ::protobuf::ProtobufEnum for PlanNode_Kind { - fn value(&self) -> i32 { - *self as i32 - } + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Kind::KIND_UNSPECIFIED), + 1 => ::std::option::Option::Some(Kind::RELATIONAL), + 2 => ::std::option::Option::Some(Kind::SCALAR), + _ => ::std::option::Option::None + } + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(PlanNode_Kind::KIND_UNSPECIFIED), - 1 => ::std::option::Option::Some(PlanNode_Kind::RELATIONAL), - 2 => ::std::option::Option::Some(PlanNode_Kind::SCALAR), - _ => ::std::option::Option::None + fn from_str(str: &str) -> ::std::option::Option { + match str { + "KIND_UNSPECIFIED" => ::std::option::Option::Some(Kind::KIND_UNSPECIFIED), + "RELATIONAL" => ::std::option::Option::Some(Kind::RELATIONAL), + "SCALAR" => ::std::option::Option::Some(Kind::SCALAR), + _ => ::std::option::Option::None + } } - } - fn values() -> &'static [Self] { - static values: &'static [PlanNode_Kind] = &[ - PlanNode_Kind::KIND_UNSPECIFIED, - PlanNode_Kind::RELATIONAL, - PlanNode_Kind::SCALAR, + const VALUES: &'static [Kind] = &[ + Kind::KIND_UNSPECIFIED, + Kind::RELATIONAL, + Kind::SCALAR, ]; - values } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("PlanNode.Kind", file_descriptor_proto()) - }) - } -} + impl ::protobuf::EnumFull for Kind { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("PlanNode.Kind").unwrap()).clone() + } -impl ::std::marker::Copy for PlanNode_Kind { -} + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } -impl ::std::default::Default for PlanNode_Kind { - fn default() -> Self { - PlanNode_Kind::KIND_UNSPECIFIED + impl ::std::default::Default for Kind { + fn default() -> Self { + Kind::KIND_UNSPECIFIED + } } -} -impl ::protobuf::reflect::ProtobufValue for PlanNode_Kind { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl Kind { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("PlanNode.Kind") + } } } -#[derive(PartialEq,Clone,Default)] +/// Contains an ordered list of nodes appearing in the query plan. +// @@protoc_insertion_point(message:google.spanner.v1.QueryPlan) +#[derive(PartialEq,Clone,Default,Debug)] pub struct QueryPlan { // message fields - pub plan_nodes: ::protobuf::RepeatedField, + /// The nodes in the query plan. Plan nodes are returned in pre-order starting + /// with the plan root. Each [PlanNode][google.spanner.v1.PlanNode]'s `id` corresponds to its index in + /// `plan_nodes`. + // @@protoc_insertion_point(field:google.spanner.v1.QueryPlan.plan_nodes) + pub plan_nodes: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.QueryPlan.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a QueryPlan { @@ -973,51 +709,37 @@ impl QueryPlan { ::std::default::Default::default() } - // repeated .google.spanner.v1.PlanNode plan_nodes = 1; - - - pub fn get_plan_nodes(&self) -> &[PlanNode] { - &self.plan_nodes - } - pub fn clear_plan_nodes(&mut self) { - self.plan_nodes.clear(); - } - - // Param is passed by value, moved - pub fn set_plan_nodes(&mut self, v: ::protobuf::RepeatedField) { - self.plan_nodes = v; - } - - // Mutable pointer to the field. - pub fn mut_plan_nodes(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.plan_nodes - } - - // Take field - pub fn take_plan_nodes(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.plan_nodes, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "plan_nodes", + |m: &QueryPlan| { &m.plan_nodes }, + |m: &mut QueryPlan| { &mut m.plan_nodes }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "QueryPlan", + fields, + oneofs, + ) } } impl ::protobuf::Message for QueryPlan { + const NAME: &'static str = "QueryPlan"; + fn is_initialized(&self) -> bool { - for v in &self.plan_nodes { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.plan_nodes)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.plan_nodes.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1026,274 +748,266 @@ impl ::protobuf::Message for QueryPlan { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.plan_nodes { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.plan_nodes { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> QueryPlan { QueryPlan::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "plan_nodes", - |m: &QueryPlan| { &m.plan_nodes }, - |m: &mut QueryPlan| { &mut m.plan_nodes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "QueryPlan", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.plan_nodes.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static QueryPlan { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(QueryPlan::new) + static instance: QueryPlan = QueryPlan { + plan_nodes: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for QueryPlan { - fn clear(&mut self) { - self.plan_nodes.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for QueryPlan { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("QueryPlan").unwrap()).clone() } } -impl ::std::fmt::Debug for QueryPlan { +impl ::std::fmt::Display for QueryPlan { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for QueryPlan { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\"google/spanner/v1/query_plan.proto\x12\x11google.spanner.v1\x1a\x1cg\ - oogle/protobuf/struct.proto\"\x8e\x06\n\x08PlanNode\x12\x14\n\x05index\ - \x18\x01\x20\x01(\x05R\x05index\x124\n\x04kind\x18\x02\x20\x01(\x0e2\x20\ - .google.spanner.v1.PlanNode.KindR\x04kind\x12!\n\x0cdisplay_name\x18\x03\ - \x20\x01(\tR\x0bdisplayName\x12F\n\x0bchild_links\x18\x04\x20\x03(\x0b2%\ - .google.spanner.v1.PlanNode.ChildLinkR\nchildLinks\x12b\n\x14short_repre\ - sentation\x18\x05\x20\x01(\x0b2/.google.spanner.v1.PlanNode.ShortReprese\ - ntationR\x13shortRepresentation\x123\n\x08metadata\x18\x06\x20\x01(\x0b2\ - \x17.google.protobuf.StructR\x08metadata\x12@\n\x0fexecution_stats\x18\ - \x07\x20\x01(\x0b2\x17.google.protobuf.StructR\x0eexecutionStats\x1a\\\n\ - \tChildLink\x12\x1f\n\x0bchild_index\x18\x01\x20\x01(\x05R\nchildIndex\ - \x12\x12\n\x04type\x18\x02\x20\x01(\tR\x04type\x12\x1a\n\x08variable\x18\ - \x03\x20\x01(\tR\x08variable\x1a\xd7\x01\n\x13ShortRepresentation\x12\ - \x20\n\x0bdescription\x18\x01\x20\x01(\tR\x0bdescription\x12_\n\nsubquer\ - ies\x18\x02\x20\x03(\x0b2?.google.spanner.v1.PlanNode.ShortRepresentatio\ - n.SubqueriesEntryR\nsubqueries\x1a=\n\x0fSubqueriesEntry\x12\x10\n\x03ke\ - y\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\x05R\ - \x05value:\x028\x01\"8\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\0\x12\ - \x0e\n\nRELATIONAL\x10\x01\x12\n\n\x06SCALAR\x10\x02\"G\n\tQueryPlan\x12\ - :\n\nplan_nodes\x18\x01\x20\x03(\x0b2\x1b.google.spanner.v1.PlanNodeR\tp\ - lanNodesB\xb1\x01\n\x15com.google.spanner.v1B\x0eQueryPlanProtoP\x01Z5cl\ - oud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cl\ - oud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::\ - Cloud::Spanner::V1J\x9f)\n\x06\x12\x04\x0e\0\x7f\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1a\n\t\n\x02\x03\0\x12\x03\x12\0&\ - \n\x08\n\x01\x08\x12\x03\x14\04\n\t\n\x02\x08%\x12\x03\x14\04\n\x08\n\ - \x01\x08\x12\x03\x15\0L\n\t\n\x02\x08\x0b\x12\x03\x15\0L\n\x08\n\x01\x08\ - \x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\ - \x17\0/\n\t\n\x02\x08\x08\x12\x03\x17\0/\n\x08\n\x01\x08\x12\x03\x18\0.\ - \n\t\n\x02\x08\x01\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\x19\04\n\t\n\ - \x02\x08)\x12\x03\x19\04\n\x08\n\x01\x08\x12\x03\x1a\03\n\t\n\x02\x08-\ - \x12\x03\x1a\03\nw\n\x02\x04\0\x12\x04\x1d\0w\x01\x1ak\x20Node\x20inform\ - ation\x20for\x20nodes\x20appearing\x20in\x20a\x20[QueryPlan.plan_nodes][\ - google.spanner.v1.QueryPlan.plan_nodes].\n\n\n\n\x03\x04\0\x01\x12\x03\ - \x1d\x08\x10\n\x9d\x01\n\x04\x04\0\x04\0\x12\x04\x20\x02.\x03\x1a\x8e\ - \x01\x20The\x20kind\x20of\x20[PlanNode][google.spanner.v1.PlanNode].\x20\ - Distinguishes\x20between\x20the\x20two\x20different\x20kinds\x20of\n\x20\ - nodes\x20that\x20can\x20appear\x20in\x20a\x20query\x20plan.\n\n\x0c\n\ - \x05\x04\0\x04\0\x01\x12\x03\x20\x07\x0b\n\x1f\n\x06\x04\0\x04\0\x02\0\ - \x12\x03\"\x04\x19\x1a\x10\x20Not\x20specified.\n\n\x0e\n\x07\x04\0\x04\ - \0\x02\0\x01\x12\x03\"\x04\x14\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\ - \"\x17\x18\n\xe5\x01\n\x06\x04\0\x04\0\x02\x01\x12\x03'\x04\x13\x1a\xd5\ - \x01\x20Denotes\x20a\x20Relational\x20operator\x20node\x20in\x20the\x20e\ - xpression\x20tree.\x20Relational\n\x20operators\x20represent\x20iterativ\ - e\x20processing\x20of\x20rows\x20during\x20query\x20execution.\n\x20For\ - \x20example,\x20a\x20`TableScan`\x20operation\x20that\x20reads\x20rows\ - \x20from\x20a\x20table.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03'\ - \x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\x02\x12\x03'\x11\x12\n\xf7\x01\ - \n\x06\x04\0\x04\0\x02\x02\x12\x03-\x04\x0f\x1a\xe7\x01\x20Denotes\x20a\ - \x20Scalar\x20node\x20in\x20the\x20expression\x20tree.\x20Scalar\x20node\ - s\x20represent\n\x20non-iterable\x20entities\x20in\x20the\x20query\x20pl\ - an.\x20For\x20example,\x20constants\x20or\n\x20arithmetic\x20operators\ - \x20appearing\x20inside\x20predicate\x20expressions\x20or\x20references\ - \n\x20to\x20column\x20names.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\ - \x03-\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x03-\r\x0e\n|\n\x04\ - \x04\0\x03\0\x12\x042\x02E\x03\x1an\x20Metadata\x20associated\x20with\ - \x20a\x20parent-child\x20relationship\x20appearing\x20in\x20a\n\x20[Plan\ - Node][google.spanner.v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\ - 2\n\x13\n3\n\x06\x04\0\x03\0\x02\0\x12\x034\x04\x1a\x1a$\x20The\x20node\ - \x20to\x20which\x20the\x20link\x20points.\n\n\x0e\n\x07\x04\0\x03\0\x02\ - \0\x05\x12\x034\x04\t\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x034\n\x15\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x034\x18\x19\n\x84\x02\n\x06\x04\0\ - \x03\0\x02\x01\x12\x03:\x04\x14\x1a\xf4\x01\x20The\x20type\x20of\x20the\ - \x20link.\x20For\x20example,\x20in\x20Hash\x20Joins\x20this\x20could\x20\ - be\x20used\x20to\n\x20distinguish\x20between\x20the\x20build\x20child\ - \x20and\x20the\x20probe\x20child,\x20or\x20in\x20the\x20case\n\x20of\x20\ - the\x20child\x20being\x20an\x20output\x20variable,\x20to\x20represent\ - \x20the\x20tag\x20associated\n\x20with\x20the\x20output\x20variable.\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03:\x04\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x01\x01\x12\x03:\x0b\x0f\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\ - \x03:\x12\x13\n\xfc\x03\n\x06\x04\0\x03\0\x02\x02\x12\x03D\x04\x18\x1a\ - \xec\x03\x20Only\x20present\x20if\x20the\x20child\x20node\x20is\x20[SCAL\ - AR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20and\x20corresponds\n\x20t\ - o\x20an\x20output\x20variable\x20of\x20the\x20parent\x20node.\x20The\x20\ - field\x20carries\x20the\x20name\x20of\n\x20the\x20output\x20variable.\n\ - \x20For\x20example,\x20a\x20`TableScan`\x20operator\x20that\x20reads\x20\ - rows\x20from\x20a\x20table\x20will\n\x20have\x20child\x20links\x20to\x20\ - the\x20`SCALAR`\x20nodes\x20representing\x20the\x20output\x20variables\n\ - \x20created\x20for\x20each\x20column\x20that\x20is\x20read\x20by\x20the\ - \x20operator.\x20The\x20corresponding\n\x20`variable`\x20fields\x20will\ - \x20be\x20set\x20to\x20the\x20variable\x20names\x20assigned\x20to\x20the\ - \n\x20columns.\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\x03D\x04\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03D\x0b\x13\n\x0e\n\x07\x04\0\ - \x03\0\x02\x02\x03\x12\x03D\x16\x17\n\x89\x01\n\x04\x04\0\x03\x01\x12\ - \x04I\x02S\x03\x1a{\x20Condensed\x20representation\x20of\x20a\x20node\ + oogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\"\x8e\ + \x06\n\x08PlanNode\x12\x14\n\x05index\x18\x01\x20\x01(\x05R\x05index\x12\ + 4\n\x04kind\x18\x02\x20\x01(\x0e2\x20.google.spanner.v1.PlanNode.KindR\ + \x04kind\x12!\n\x0cdisplay_name\x18\x03\x20\x01(\tR\x0bdisplayName\x12F\ + \n\x0bchild_links\x18\x04\x20\x03(\x0b2%.google.spanner.v1.PlanNode.Chil\ + dLinkR\nchildLinks\x12b\n\x14short_representation\x18\x05\x20\x01(\x0b2/\ + .google.spanner.v1.PlanNode.ShortRepresentationR\x13shortRepresentation\ + \x123\n\x08metadata\x18\x06\x20\x01(\x0b2\x17.google.protobuf.StructR\ + \x08metadata\x12@\n\x0fexecution_stats\x18\x07\x20\x01(\x0b2\x17.google.\ + protobuf.StructR\x0eexecutionStats\x1a\\\n\tChildLink\x12\x1f\n\x0bchild\ + _index\x18\x01\x20\x01(\x05R\nchildIndex\x12\x12\n\x04type\x18\x02\x20\ + \x01(\tR\x04type\x12\x1a\n\x08variable\x18\x03\x20\x01(\tR\x08variable\ + \x1a\xd7\x01\n\x13ShortRepresentation\x12\x20\n\x0bdescription\x18\x01\ + \x20\x01(\tR\x0bdescription\x12_\n\nsubqueries\x18\x02\x20\x03(\x0b2?.go\ + ogle.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntryR\nsubquerie\ + s\x1a=\n\x0fSubqueriesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ + \x12\x14\n\x05value\x18\x02\x20\x01(\x05R\x05value:\x028\x01\"8\n\x04Kin\ + d\x12\x14\n\x10KIND_UNSPECIFIED\x10\0\x12\x0e\n\nRELATIONAL\x10\x01\x12\ + \n\n\x06SCALAR\x10\x02\"G\n\tQueryPlan\x12:\n\nplan_nodes\x18\x01\x20\ + \x03(\x0b2\x1b.google.spanner.v1.PlanNodeR\tplanNodesB\x97\x01\n\x15com.\ + google.spanner.v1B\x0eQueryPlanProtoP\x01Z8google.golang.org/genproto/go\ + ogleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\ + \x17Google\\Cloud\\Spanner\\V1J\x99)\n\x07\x12\x05\x0f\0\x80\x01\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x1a\n\t\n\x02\x03\ + \0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\x03\x14\0&\n\x08\n\x01\x08\x12\ + \x03\x16\04\n\t\n\x02\x08%\x12\x03\x16\04\n\x08\n\x01\x08\x12\x03\x17\0O\ + \n\t\n\x02\x08\x0b\x12\x03\x17\0O\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\ + \x02\x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0/\n\t\n\x02\x08\ + \x08\x12\x03\x19\0/\n\x08\n\x01\x08\x12\x03\x1a\0.\n\t\n\x02\x08\x01\x12\ + \x03\x1a\0.\n\x08\n\x01\x08\x12\x03\x1b\04\n\t\n\x02\x08)\x12\x03\x1b\04\ + \nw\n\x02\x04\0\x12\x04\x1e\0x\x01\x1ak\x20Node\x20information\x20for\ + \x20nodes\x20appearing\x20in\x20a\x20[QueryPlan.plan_nodes][google.spann\ + er.v1.QueryPlan.plan_nodes].\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x10\n\ + |\n\x04\x04\0\x03\0\x12\x04!\x024\x03\x1an\x20Metadata\x20associated\x20\ + with\x20a\x20parent-child\x20relationship\x20appearing\x20in\x20a\n\x20[\ + PlanNode][google.spanner.v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\ + \x03!\n\x13\n3\n\x06\x04\0\x03\0\x02\0\x12\x03#\x04\x1a\x1a$\x20The\x20n\ + ode\x20to\x20which\x20the\x20link\x20points.\n\n\x0e\n\x07\x04\0\x03\0\ + \x02\0\x05\x12\x03#\x04\t\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03#\n\ + \x15\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03#\x18\x19\n\x84\x02\n\x06\ + \x04\0\x03\0\x02\x01\x12\x03)\x04\x14\x1a\xf4\x01\x20The\x20type\x20of\ + \x20the\x20link.\x20For\x20example,\x20in\x20Hash\x20Joins\x20this\x20co\ + uld\x20be\x20used\x20to\n\x20distinguish\x20between\x20the\x20build\x20c\ + hild\x20and\x20the\x20probe\x20child,\x20or\x20in\x20the\x20case\n\x20of\ + \x20the\x20child\x20being\x20an\x20output\x20variable,\x20to\x20represen\ + t\x20the\x20tag\x20associated\n\x20with\x20the\x20output\x20variable.\n\ + \n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03)\x04\n\n\x0e\n\x07\x04\0\ + \x03\0\x02\x01\x01\x12\x03)\x0b\x0f\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\ + \x12\x03)\x12\x13\n\xfc\x03\n\x06\x04\0\x03\0\x02\x02\x12\x033\x04\x18\ + \x1a\xec\x03\x20Only\x20present\x20if\x20the\x20child\x20node\x20is\x20[\ + SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20and\x20corresponds\n\ + \x20to\x20an\x20output\x20variable\x20of\x20the\x20parent\x20node.\x20Th\ + e\x20field\x20carries\x20the\x20name\x20of\n\x20the\x20output\x20variabl\ + e.\n\x20For\x20example,\x20a\x20`TableScan`\x20operator\x20that\x20reads\ + \x20rows\x20from\x20a\x20table\x20will\n\x20have\x20child\x20links\x20to\ + \x20the\x20`SCALAR`\x20nodes\x20representing\x20the\x20output\x20variabl\ + es\n\x20created\x20for\x20each\x20column\x20that\x20is\x20read\x20by\x20\ + the\x20operator.\x20The\x20corresponding\n\x20`variable`\x20fields\x20wi\ + ll\x20be\x20set\x20to\x20the\x20variable\x20names\x20assigned\x20to\x20t\ + he\n\x20columns.\n\n\x0e\n\x07\x04\0\x03\0\x02\x02\x05\x12\x033\x04\n\n\ + \x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x033\x0b\x13\n\x0e\n\x07\x04\0\ + \x03\0\x02\x02\x03\x12\x033\x16\x17\n\x89\x01\n\x04\x04\0\x03\x01\x12\ + \x048\x02B\x03\x1a{\x20Condensed\x20representation\x20of\x20a\x20node\ \x20and\x20its\x20subtree.\x20Only\x20present\x20for\n\x20`SCALAR`\x20[P\ lanNode(s)][google.spanner.v1.PlanNode].\n\n\x0c\n\x05\x04\0\x03\x01\x01\ - \x12\x03I\n\x1d\nW\n\x06\x04\0\x03\x01\x02\0\x12\x03K\x04\x1b\x1aH\x20A\ + \x12\x038\n\x1d\nW\n\x06\x04\0\x03\x01\x02\0\x12\x03:\x04\x1b\x1aH\x20A\ \x20string\x20representation\x20of\x20the\x20expression\x20subtree\x20ro\ oted\x20at\x20this\x20node.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x05\x12\ - \x03K\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03K\x0b\x16\n\x0e\n\ - \x07\x04\0\x03\x01\x02\0\x03\x12\x03K\x19\x1a\n\xb4\x02\n\x06\x04\0\x03\ - \x01\x02\x01\x12\x03R\x04&\x1a\xa4\x02\x20A\x20mapping\x20of\x20(subquer\ + \x03:\x04\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03:\x0b\x16\n\x0e\n\ + \x07\x04\0\x03\x01\x02\0\x03\x12\x03:\x19\x1a\n\xb4\x02\n\x06\x04\0\x03\ + \x01\x02\x01\x12\x03A\x04&\x1a\xa4\x02\x20A\x20mapping\x20of\x20(subquer\ y\x20variable\x20name)\x20->\x20(subquery\x20node\x20id)\x20for\x20cases\ \n\x20where\x20the\x20`description`\x20string\x20of\x20this\x20node\x20r\ eferences\x20a\x20`SCALAR`\n\x20subquery\x20contained\x20in\x20the\x20ex\ pression\x20subtree\x20rooted\x20at\x20this\x20node.\x20The\n\x20referen\ ced\x20`SCALAR`\x20subquery\x20may\x20not\x20necessarily\x20be\x20a\x20d\ irect\x20child\x20of\n\x20this\x20node.\n\n\x0e\n\x07\x04\0\x03\x01\x02\ - \x01\x06\x12\x03R\x04\x16\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03R\ - \x17!\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03R$%\n]\n\x04\x04\0\ - \x02\0\x12\x03V\x02\x12\x1aP\x20The\x20`PlanNode`'s\x20index\x20in\x20[n\ - ode\x20list][google.spanner.v1.QueryPlan.plan_nodes].\n\n\x0c\n\x05\x04\ - \0\x02\0\x05\x12\x03V\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03V\x08\r\ - \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03V\x10\x11\n\xc5\x02\n\x04\x04\0\x02\ - \x01\x12\x03]\x02\x10\x1a\xb7\x02\x20Used\x20to\x20determine\x20the\x20t\ - ype\x20of\x20node.\x20May\x20be\x20needed\x20for\x20visualizing\n\x20dif\ - ferent\x20kinds\x20of\x20nodes\x20differently.\x20For\x20example,\x20If\ - \x20the\x20node\x20is\x20a\n\x20[SCALAR][google.spanner.v1.PlanNode.Kind\ - .SCALAR]\x20node,\x20it\x20will\x20have\x20a\x20condensed\x20representat\ - ion\n\x20which\x20can\x20be\x20used\x20to\x20directly\x20embed\x20a\x20d\ - escription\x20of\x20the\x20node\x20in\x20its\n\x20parent.\n\n\x0c\n\x05\ - \x04\0\x02\x01\x06\x12\x03]\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x03]\x07\x0b\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03]\x0e\x0f\n-\n\x04\ - \x04\0\x02\x02\x12\x03`\x02\x1a\x1a\x20\x20The\x20display\x20name\x20for\ - \x20the\x20node.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03`\x02\x08\n\x0c\ - \n\x05\x04\0\x02\x02\x01\x12\x03`\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\ - \x12\x03`\x18\x19\nR\n\x04\x04\0\x02\x03\x12\x03c\x02%\x1aE\x20List\x20o\ - f\x20child\x20node\x20`index`es\x20and\x20their\x20relationship\x20to\ - \x20this\x20parent.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x03c\x02\n\n\x0c\ - \n\x05\x04\0\x02\x03\x06\x12\x03c\x0b\x14\n\x0c\n\x05\x04\0\x02\x03\x01\ - \x12\x03c\x15\x20\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03c#$\nc\n\x04\x04\ - \0\x02\x04\x12\x03f\x02/\x1aV\x20Condensed\x20representation\x20for\x20[\ - SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20nodes.\n\n\x0c\n\x05\ - \x04\0\x02\x04\x06\x12\x03f\x02\x15\n\x0c\n\x05\x04\0\x02\x04\x01\x12\ - \x03f\x16*\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03f-.\n\x90\x02\n\x04\x04\ - \0\x02\x05\x12\x03p\x02&\x1a\x82\x02\x20Attributes\x20relevant\x20to\x20\ - the\x20node\x20contained\x20in\x20a\x20group\x20of\x20key-value\x20pairs\ - .\n\x20For\x20example,\x20a\x20Parameter\x20Reference\x20node\x20could\ - \x20have\x20the\x20following\n\x20information\x20in\x20its\x20metadata:\ - \n\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"parameter_refer\ - ence\":\x20\"param1\",\n\x20\x20\x20\x20\x20\x20\x20\"parameter_type\":\ - \x20\"array\"\n\x20\x20\x20\x20\x20}\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\ - \x03p\x02\x18\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03p\x19!\n\x0c\n\x05\ - \x04\0\x02\x05\x03\x12\x03p$%\n\xfe\x01\n\x04\x04\0\x02\x06\x12\x03v\x02\ - -\x1a\xf0\x01\x20The\x20execution\x20statistics\x20associated\x20with\ - \x20the\x20node,\x20contained\x20in\x20a\x20group\x20of\n\x20key-value\ - \x20pairs.\x20Only\x20present\x20if\x20the\x20plan\x20was\x20returned\ - \x20as\x20a\x20result\x20of\x20a\n\x20profile\x20query.\x20For\x20exampl\ - e,\x20number\x20of\x20executions,\x20number\x20of\x20rows/time\x20per\n\ - \x20execution\x20etc.\n\n\x0c\n\x05\x04\0\x02\x06\x06\x12\x03v\x02\x18\n\ - \x0c\n\x05\x04\0\x02\x06\x01\x12\x03v\x19(\n\x0c\n\x05\x04\0\x02\x06\x03\ - \x12\x03v+,\nL\n\x02\x04\x01\x12\x04z\0\x7f\x01\x1a@\x20Contains\x20an\ - \x20ordered\x20list\x20of\x20nodes\x20appearing\x20in\x20the\x20query\ - \x20plan.\n\n\n\n\x03\x04\x01\x01\x12\x03z\x08\x11\n\xcd\x01\n\x04\x04\ - \x01\x02\0\x12\x03~\x02#\x1a\xbf\x01\x20The\x20nodes\x20in\x20the\x20que\ - ry\x20plan.\x20Plan\x20nodes\x20are\x20returned\x20in\x20pre-order\x20st\ - arting\n\x20with\x20the\x20plan\x20root.\x20Each\x20[PlanNode][google.sp\ - anner.v1.PlanNode]'s\x20`id`\x20corresponds\x20to\x20its\x20index\x20in\ - \n\x20`plan_nodes`.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03~\x02\n\n\x0c\ - \n\x05\x04\x01\x02\0\x06\x12\x03~\x0b\x13\n\x0c\n\x05\x04\x01\x02\0\x01\ - \x12\x03~\x14\x1e\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03~!\"b\x06proto3\ + \x01\x06\x12\x03A\x04\x16\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x03A\ + \x17!\n\x0e\n\x07\x04\0\x03\x01\x02\x01\x03\x12\x03A$%\n\x9d\x01\n\x04\ + \x04\0\x04\0\x12\x04F\x02T\x03\x1a\x8e\x01\x20The\x20kind\x20of\x20[Plan\ + Node][google.spanner.v1.PlanNode].\x20Distinguishes\x20between\x20the\ + \x20two\x20different\x20kinds\x20of\n\x20nodes\x20that\x20can\x20appear\ + \x20in\x20a\x20query\x20plan.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03F\x07\ + \x0b\n\x1f\n\x06\x04\0\x04\0\x02\0\x12\x03H\x04\x19\x1a\x10\x20Not\x20sp\ + ecified.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03H\x04\x14\n\x0e\n\ + \x07\x04\0\x04\0\x02\0\x02\x12\x03H\x17\x18\n\xe5\x01\n\x06\x04\0\x04\0\ + \x02\x01\x12\x03M\x04\x13\x1a\xd5\x01\x20Denotes\x20a\x20Relational\x20o\ + perator\x20node\x20in\x20the\x20expression\x20tree.\x20Relational\n\x20o\ + perators\x20represent\x20iterative\x20processing\x20of\x20rows\x20during\ + \x20query\x20execution.\n\x20For\x20example,\x20a\x20`TableScan`\x20oper\ + ation\x20that\x20reads\x20rows\x20from\x20a\x20table.\n\n\x0e\n\x07\x04\ + \0\x04\0\x02\x01\x01\x12\x03M\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x01\ + \x02\x12\x03M\x11\x12\n\xf7\x01\n\x06\x04\0\x04\0\x02\x02\x12\x03S\x04\ + \x0f\x1a\xe7\x01\x20Denotes\x20a\x20Scalar\x20node\x20in\x20the\x20expre\ + ssion\x20tree.\x20Scalar\x20nodes\x20represent\n\x20non-iterable\x20enti\ + ties\x20in\x20the\x20query\x20plan.\x20For\x20example,\x20constants\x20o\ + r\n\x20arithmetic\x20operators\x20appearing\x20inside\x20predicate\x20ex\ + pressions\x20or\x20references\n\x20to\x20column\x20names.\n\n\x0e\n\x07\ + \x04\0\x04\0\x02\x02\x01\x12\x03S\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\ + \x02\x12\x03S\r\x0e\n]\n\x04\x04\0\x02\0\x12\x03W\x02\x12\x1aP\x20The\ + \x20`PlanNode`'s\x20index\x20in\x20[node\x20list][google.spanner.v1.Quer\ + yPlan.plan_nodes].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03W\x02\x07\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x03W\x08\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03W\x10\x11\n\xc5\x02\n\x04\x04\0\x02\x01\x12\x03^\x02\x10\x1a\xb7\x02\ + \x20Used\x20to\x20determine\x20the\x20type\x20of\x20node.\x20May\x20be\ + \x20needed\x20for\x20visualizing\n\x20different\x20kinds\x20of\x20nodes\ + \x20differently.\x20For\x20example,\x20If\x20the\x20node\x20is\x20a\n\ + \x20[SCALAR][google.spanner.v1.PlanNode.Kind.SCALAR]\x20node,\x20it\x20w\ + ill\x20have\x20a\x20condensed\x20representation\n\x20which\x20can\x20be\ + \x20used\x20to\x20directly\x20embed\x20a\x20description\x20of\x20the\x20\ + node\x20in\x20its\n\x20parent.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03^\ + \x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03^\x07\x0b\n\x0c\n\x05\x04\ + \0\x02\x01\x03\x12\x03^\x0e\x0f\n-\n\x04\x04\0\x02\x02\x12\x03a\x02\x1a\ + \x1a\x20\x20The\x20display\x20name\x20for\x20the\x20node.\n\n\x0c\n\x05\ + \x04\0\x02\x02\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ + \x03a\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03a\x18\x19\nR\n\x04\x04\ + \0\x02\x03\x12\x03d\x02%\x1aE\x20List\x20of\x20child\x20node\x20`index`e\ + s\x20and\x20their\x20relationship\x20to\x20this\x20parent.\n\n\x0c\n\x05\ + \x04\0\x02\x03\x04\x12\x03d\x02\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03d\ + \x0b\x14\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03d\x15\x20\n\x0c\n\x05\x04\ + \0\x02\x03\x03\x12\x03d#$\nc\n\x04\x04\0\x02\x04\x12\x03g\x02/\x1aV\x20C\ + ondensed\x20representation\x20for\x20[SCALAR][google.spanner.v1.PlanNode\ + .Kind.SCALAR]\x20nodes.\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03g\x02\x15\ + \n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03g\x16*\n\x0c\n\x05\x04\0\x02\x04\ + \x03\x12\x03g-.\n\x90\x02\n\x04\x04\0\x02\x05\x12\x03q\x02&\x1a\x82\x02\ + \x20Attributes\x20relevant\x20to\x20the\x20node\x20contained\x20in\x20a\ + \x20group\x20of\x20key-value\x20pairs.\n\x20For\x20example,\x20a\x20Para\ + meter\x20Reference\x20node\x20could\x20have\x20the\x20following\n\x20inf\ + ormation\x20in\x20its\x20metadata:\n\n\x20\x20\x20\x20\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20\"parameter_reference\":\x20\"param1\",\n\x20\x20\ + \x20\x20\x20\x20\x20\"parameter_type\":\x20\"array\"\n\x20\x20\x20\x20\ + \x20}\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03q\x02\x18\n\x0c\n\x05\x04\0\ + \x02\x05\x01\x12\x03q\x19!\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03q$%\n\ + \xfe\x01\n\x04\x04\0\x02\x06\x12\x03w\x02-\x1a\xf0\x01\x20The\x20executi\ + on\x20statistics\x20associated\x20with\x20the\x20node,\x20contained\x20i\ + n\x20a\x20group\x20of\n\x20key-value\x20pairs.\x20Only\x20present\x20if\ + \x20the\x20plan\x20was\x20returned\x20as\x20a\x20result\x20of\x20a\n\x20\ + profile\x20query.\x20For\x20example,\x20number\x20of\x20executions,\x20n\ + umber\x20of\x20rows/time\x20per\n\x20execution\x20etc.\n\n\x0c\n\x05\x04\ + \0\x02\x06\x06\x12\x03w\x02\x18\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03w\ + \x19(\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03w+,\nM\n\x02\x04\x01\x12\x05{\ + \0\x80\x01\x01\x1a@\x20Contains\x20an\x20ordered\x20list\x20of\x20nodes\ + \x20appearing\x20in\x20the\x20query\x20plan.\n\n\n\n\x03\x04\x01\x01\x12\ + \x03{\x08\x11\n\xcd\x01\n\x04\x04\x01\x02\0\x12\x03\x7f\x02#\x1a\xbf\x01\ + \x20The\x20nodes\x20in\x20the\x20query\x20plan.\x20Plan\x20nodes\x20are\ + \x20returned\x20in\x20pre-order\x20starting\n\x20with\x20the\x20plan\x20\ + root.\x20Each\x20[PlanNode][google.spanner.v1.PlanNode]'s\x20`id`\x20cor\ + responds\x20to\x20its\x20index\x20in\n\x20`plan_nodes`.\n\n\x0c\n\x05\ + \x04\x01\x02\0\x04\x12\x03\x7f\x02\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\ + \x03\x7f\x0b\x13\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x7f\x14\x1e\n\x0c\ + \n\x05\x04\x01\x02\0\x03\x12\x03\x7f!\"b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(2); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(PlanNode::generated_message_descriptor_data()); + messages.push(QueryPlan::generated_message_descriptor_data()); + messages.push(plan_node::ChildLink::generated_message_descriptor_data()); + messages.push(plan_node::ShortRepresentation::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(plan_node::Kind::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/result_set.rs b/googleapis-raw/src/spanner/v1/result_set.rs index 52de27e..ae8f54e 100644 --- a/googleapis-raw/src/spanner/v1/result_set.rs +++ b/googleapis-raw/src/spanner/v1/result_set.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,45 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/result_set.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Results from [Read][google.spanner.v1.Spanner.Read] or +/// [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. +// @@protoc_insertion_point(message:google.spanner.v1.ResultSet) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResultSet { // message fields - pub metadata: ::protobuf::SingularPtrField, - pub rows: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>, - pub stats: ::protobuf::SingularPtrField, + /// Metadata about the result set, such as row type information. + // @@protoc_insertion_point(field:google.spanner.v1.ResultSet.metadata) + pub metadata: ::protobuf::MessageField, + /// Each element in `rows` is a row whose format is defined by + /// [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. The ith element + /// in each row matches the ith field in + /// [metadata.row_type][google.spanner.v1.ResultSetMetadata.row_type]. Elements are + /// encoded based on type as described + /// [here][google.spanner.v1.TypeCode]. + // @@protoc_insertion_point(field:google.spanner.v1.ResultSet.rows) + pub rows: ::std::vec::Vec<::protobuf::well_known_types::struct_::ListValue>, + /// Query plan and execution statistics for the SQL statement that + /// produced this result set. These can be requested by setting + /// [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. + /// DML statements always produce stats containing the number of rows + /// modified, unless executed using the + /// [ExecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN] [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. + /// Other fields may or may not be populated, based on the + /// [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode]. + // @@protoc_insertion_point(field:google.spanner.v1.ResultSet.stats) + pub stats: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ResultSet.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResultSet { @@ -45,133 +68,53 @@ impl ResultSet { ::std::default::Default::default() } - // .google.spanner.v1.ResultSetMetadata metadata = 1; - - - pub fn get_metadata(&self) -> &ResultSetMetadata { - self.metadata.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - pub fn has_metadata(&self) -> bool { - self.metadata.is_some() - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: ResultSetMetadata) { - self.metadata = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata(&mut self) -> &mut ResultSetMetadata { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> ResultSetMetadata { - self.metadata.take().unwrap_or_else(|| ResultSetMetadata::new()) - } - - // repeated .google.protobuf.ListValue rows = 2; - - - pub fn get_rows(&self) -> &[::protobuf::well_known_types::ListValue] { - &self.rows - } - pub fn clear_rows(&mut self) { - self.rows.clear(); - } - - // Param is passed by value, moved - pub fn set_rows(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue>) { - self.rows = v; - } - - // Mutable pointer to the field. - pub fn mut_rows(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - &mut self.rows - } - - // Take field - pub fn take_rows(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::ListValue> { - ::std::mem::replace(&mut self.rows, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.v1.ResultSetStats stats = 3; - - - pub fn get_stats(&self) -> &ResultSetStats { - self.stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_stats(&mut self) { - self.stats.clear(); - } - - pub fn has_stats(&self) -> bool { - self.stats.is_some() - } - - // Param is passed by value, moved - pub fn set_stats(&mut self, v: ResultSetStats) { - self.stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_stats(&mut self) -> &mut ResultSetStats { - if self.stats.is_none() { - self.stats.set_default(); - } - self.stats.as_mut().unwrap() - } - - // Take field - pub fn take_stats(&mut self) -> ResultSetStats { - self.stats.take().unwrap_or_else(|| ResultSetStats::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResultSetMetadata>( + "metadata", + |m: &ResultSet| { &m.metadata }, + |m: &mut ResultSet| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "rows", + |m: &ResultSet| { &m.rows }, + |m: &mut ResultSet| { &mut m.rows }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResultSetStats>( + "stats", + |m: &ResultSet| { &m.stats }, + |m: &mut ResultSet| { &mut m.stats }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResultSet", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResultSet { + const NAME: &'static str = "ResultSet"; + fn is_initialized(&self) -> bool { - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.rows { - if !v.is_initialized() { - return false; - } - }; - for v in &self.stats { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.rows)?; + 18 => { + self.rows.push(is.read_message()?); }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stats)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.stats)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -180,140 +123,122 @@ impl ::protobuf::Message for ResultSet { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.metadata.as_ref() { + if let Some(v) = self.metadata.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } for value in &self.rows { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - if let Some(ref v) = self.stats.as_ref() { + if let Some(v) = self.stats.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.metadata.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.metadata.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } for v in &self.rows { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; - if let Some(ref v) = self.stats.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.stats.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResultSet { ResultSet::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &ResultSet| { &m.metadata }, - |m: &mut ResultSet| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::ListValue>>( - "rows", - |m: &ResultSet| { &m.rows }, - |m: &mut ResultSet| { &mut m.rows }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "stats", - |m: &ResultSet| { &m.stats }, - |m: &mut ResultSet| { &mut m.stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResultSet", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.metadata.clear(); + self.rows.clear(); + self.stats.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ResultSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResultSet::new) + static instance: ResultSet = ResultSet { + metadata: ::protobuf::MessageField::none(), + rows: ::std::vec::Vec::new(), + stats: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResultSet { - fn clear(&mut self) { - self.metadata.clear(); - self.rows.clear(); - self.stats.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResultSet { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResultSet").unwrap()).clone() } } -impl ::std::fmt::Debug for ResultSet { +impl ::std::fmt::Display for ResultSet { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResultSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Partial results from a streaming read or SQL query. Streaming reads and +/// SQL queries better tolerate large result sets, large rows, and large +/// values, but are a little trickier to consume. +// @@protoc_insertion_point(message:google.spanner.v1.PartialResultSet) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PartialResultSet { // message fields - pub metadata: ::protobuf::SingularPtrField, - pub values: ::protobuf::RepeatedField<::protobuf::well_known_types::Value>, + /// Metadata about the result set, such as row type information. + /// Only present in the first response. + // @@protoc_insertion_point(field:google.spanner.v1.PartialResultSet.metadata) + pub metadata: ::protobuf::MessageField, + // @@protoc_insertion_point(field:google.spanner.v1.PartialResultSet.values) + pub values: ::std::vec::Vec<::protobuf::well_known_types::struct_::Value>, + /// If true, then the final value in [values][google.spanner.v1.PartialResultSet.values] is chunked, and must + /// be combined with more values from subsequent `PartialResultSet`s + /// to obtain a complete field value. + // @@protoc_insertion_point(field:google.spanner.v1.PartialResultSet.chunked_value) pub chunked_value: bool, + /// Streaming calls might be interrupted for a variety of reasons, such + /// as TCP connection loss. If this occurs, the stream of results can + /// be resumed by re-sending the original request and including + /// `resume_token`. Note that executing any other transaction in the + /// same session invalidates the token. + // @@protoc_insertion_point(field:google.spanner.v1.PartialResultSet.resume_token) pub resume_token: ::std::vec::Vec, - pub stats: ::protobuf::SingularPtrField, + /// Query plan and execution statistics for the statement that produced this + /// streaming result set. These can be requested by setting + /// [ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] and are sent + /// only once with the last response in the stream. + /// This field will also be present in the last response for DML + /// statements. + // @@protoc_insertion_point(field:google.spanner.v1.PartialResultSet.stats) + pub stats: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.PartialResultSet.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PartialResultSet { @@ -327,184 +252,69 @@ impl PartialResultSet { ::std::default::Default::default() } - // .google.spanner.v1.ResultSetMetadata metadata = 1; - - - pub fn get_metadata(&self) -> &ResultSetMetadata { - self.metadata.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_metadata(&mut self) { - self.metadata.clear(); - } - - pub fn has_metadata(&self) -> bool { - self.metadata.is_some() - } - - // Param is passed by value, moved - pub fn set_metadata(&mut self, v: ResultSetMetadata) { - self.metadata = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metadata(&mut self) -> &mut ResultSetMetadata { - if self.metadata.is_none() { - self.metadata.set_default(); - } - self.metadata.as_mut().unwrap() - } - - // Take field - pub fn take_metadata(&mut self) -> ResultSetMetadata { - self.metadata.take().unwrap_or_else(|| ResultSetMetadata::new()) - } - - // repeated .google.protobuf.Value values = 2; - - - pub fn get_values(&self) -> &[::protobuf::well_known_types::Value] { - &self.values - } - pub fn clear_values(&mut self) { - self.values.clear(); - } - - // Param is passed by value, moved - pub fn set_values(&mut self, v: ::protobuf::RepeatedField<::protobuf::well_known_types::Value>) { - self.values = v; - } - - // Mutable pointer to the field. - pub fn mut_values(&mut self) -> &mut ::protobuf::RepeatedField<::protobuf::well_known_types::Value> { - &mut self.values - } - - // Take field - pub fn take_values(&mut self) -> ::protobuf::RepeatedField<::protobuf::well_known_types::Value> { - ::std::mem::replace(&mut self.values, ::protobuf::RepeatedField::new()) - } - - // bool chunked_value = 3; - - - pub fn get_chunked_value(&self) -> bool { - self.chunked_value - } - pub fn clear_chunked_value(&mut self) { - self.chunked_value = false; - } - - // Param is passed by value, moved - pub fn set_chunked_value(&mut self, v: bool) { - self.chunked_value = v; - } - - // bytes resume_token = 4; - - - pub fn get_resume_token(&self) -> &[u8] { - &self.resume_token - } - pub fn clear_resume_token(&mut self) { - self.resume_token.clear(); - } - - // Param is passed by value, moved - pub fn set_resume_token(&mut self, v: ::std::vec::Vec) { - self.resume_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resume_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.resume_token - } - - // Take field - pub fn take_resume_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.resume_token, ::std::vec::Vec::new()) - } - - // .google.spanner.v1.ResultSetStats stats = 5; - - - pub fn get_stats(&self) -> &ResultSetStats { - self.stats.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_stats(&mut self) { - self.stats.clear(); - } - - pub fn has_stats(&self) -> bool { - self.stats.is_some() - } - - // Param is passed by value, moved - pub fn set_stats(&mut self, v: ResultSetStats) { - self.stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_stats(&mut self) -> &mut ResultSetStats { - if self.stats.is_none() { - self.stats.set_default(); - } - self.stats.as_mut().unwrap() - } - - // Take field - pub fn take_stats(&mut self) -> ResultSetStats { - self.stats.take().unwrap_or_else(|| ResultSetStats::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(5); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResultSetMetadata>( + "metadata", + |m: &PartialResultSet| { &m.metadata }, + |m: &mut PartialResultSet| { &mut m.metadata }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "values", + |m: &PartialResultSet| { &m.values }, + |m: &mut PartialResultSet| { &mut m.values }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "chunked_value", + |m: &PartialResultSet| { &m.chunked_value }, + |m: &mut PartialResultSet| { &mut m.chunked_value }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resume_token", + |m: &PartialResultSet| { &m.resume_token }, + |m: &mut PartialResultSet| { &mut m.resume_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ResultSetStats>( + "stats", + |m: &PartialResultSet| { &m.stats }, + |m: &mut PartialResultSet| { &mut m.stats }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartialResultSet", + fields, + oneofs, + ) } } impl ::protobuf::Message for PartialResultSet { + const NAME: &'static str = "PartialResultSet"; + fn is_initialized(&self) -> bool { - for v in &self.metadata { - if !v.is_initialized() { - return false; - } - }; - for v in &self.values { - if !v.is_initialized() { - return false; - } - }; - for v in &self.stats { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metadata)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.metadata)?; }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.values)?; + 18 => { + self.values.push(is.read_message()?); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.chunked_value = tmp; + 24 => { + self.chunked_value = is.read_bool()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.resume_token)?; + 34 => { + self.resume_token = is.read_bytes()?; }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.stats)?; + 42 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.stats)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -513,41 +323,37 @@ impl ::protobuf::Message for PartialResultSet { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.metadata.as_ref() { + if let Some(v) = self.metadata.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } for value in &self.values { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if self.chunked_value != false { - my_size += 2; + my_size += 1 + 1; } if !self.resume_token.is_empty() { my_size += ::protobuf::rt::bytes_size(4, &self.resume_token); } - if let Some(ref v) = self.stats.as_ref() { + if let Some(v) = self.stats.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.metadata.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.metadata.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } for v in &self.values { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }; if self.chunked_value != false { os.write_bool(3, self.chunked_value)?; @@ -555,120 +361,78 @@ impl ::protobuf::Message for PartialResultSet { if !self.resume_token.is_empty() { os.write_bytes(4, &self.resume_token)?; } - if let Some(ref v) = self.stats.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.stats.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PartialResultSet { PartialResultSet::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "metadata", - |m: &PartialResultSet| { &m.metadata }, - |m: &mut PartialResultSet| { &mut m.metadata }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Value>>( - "values", - |m: &PartialResultSet| { &m.values }, - |m: &mut PartialResultSet| { &mut m.values }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "chunked_value", - |m: &PartialResultSet| { &m.chunked_value }, - |m: &mut PartialResultSet| { &mut m.chunked_value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "resume_token", - |m: &PartialResultSet| { &m.resume_token }, - |m: &mut PartialResultSet| { &mut m.resume_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "stats", - |m: &PartialResultSet| { &m.stats }, - |m: &mut PartialResultSet| { &mut m.stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartialResultSet", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartialResultSet { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartialResultSet::new) - } -} - -impl ::protobuf::Clear for PartialResultSet { fn clear(&mut self) { self.metadata.clear(); self.values.clear(); self.chunked_value = false; self.resume_token.clear(); self.stats.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static PartialResultSet { + static instance: PartialResultSet = PartialResultSet { + metadata: ::protobuf::MessageField::none(), + values: ::std::vec::Vec::new(), + chunked_value: false, + resume_token: ::std::vec::Vec::new(), + stats: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for PartialResultSet { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartialResultSet").unwrap()).clone() } } -impl ::std::fmt::Debug for PartialResultSet { +impl ::std::fmt::Display for PartialResultSet { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PartialResultSet { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet]. +// @@protoc_insertion_point(message:google.spanner.v1.ResultSetMetadata) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResultSetMetadata { // message fields - pub row_type: ::protobuf::SingularPtrField, - pub transaction: ::protobuf::SingularPtrField, - pub undeclared_parameters: ::protobuf::SingularPtrField, + // @@protoc_insertion_point(field:google.spanner.v1.ResultSetMetadata.row_type) + pub row_type: ::protobuf::MessageField, + /// If the read or SQL query began a transaction as a side-effect, the + /// information about the new transaction is yielded here. + // @@protoc_insertion_point(field:google.spanner.v1.ResultSetMetadata.transaction) + pub transaction: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ResultSetMetadata.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResultSetMetadata { @@ -682,141 +446,45 @@ impl ResultSetMetadata { ::std::default::Default::default() } - // .google.spanner.v1.StructType row_type = 1; - - - pub fn get_row_type(&self) -> &super::type_pb::StructType { - self.row_type.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_row_type(&mut self) { - self.row_type.clear(); - } - - pub fn has_row_type(&self) -> bool { - self.row_type.is_some() - } - - // Param is passed by value, moved - pub fn set_row_type(&mut self, v: super::type_pb::StructType) { - self.row_type = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_row_type(&mut self) -> &mut super::type_pb::StructType { - if self.row_type.is_none() { - self.row_type.set_default(); - } - self.row_type.as_mut().unwrap() - } - - // Take field - pub fn take_row_type(&mut self) -> super::type_pb::StructType { - self.row_type.take().unwrap_or_else(|| super::type_pb::StructType::new()) - } - - // .google.spanner.v1.Transaction transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::Transaction { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::Transaction) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::Transaction { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::Transaction { - self.transaction.take().unwrap_or_else(|| super::transaction::Transaction::new()) - } - - // .google.spanner.v1.StructType undeclared_parameters = 3; - - - pub fn get_undeclared_parameters(&self) -> &super::type_pb::StructType { - self.undeclared_parameters.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_undeclared_parameters(&mut self) { - self.undeclared_parameters.clear(); - } - - pub fn has_undeclared_parameters(&self) -> bool { - self.undeclared_parameters.is_some() - } - - // Param is passed by value, moved - pub fn set_undeclared_parameters(&mut self, v: super::type_pb::StructType) { - self.undeclared_parameters = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_undeclared_parameters(&mut self) -> &mut super::type_pb::StructType { - if self.undeclared_parameters.is_none() { - self.undeclared_parameters.set_default(); - } - self.undeclared_parameters.as_mut().unwrap() - } - - // Take field - pub fn take_undeclared_parameters(&mut self) -> super::type_pb::StructType { - self.undeclared_parameters.take().unwrap_or_else(|| super::type_pb::StructType::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::type_::StructType>( + "row_type", + |m: &ResultSetMetadata| { &m.row_type }, + |m: &mut ResultSetMetadata| { &mut m.row_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::Transaction>( + "transaction", + |m: &ResultSetMetadata| { &m.transaction }, + |m: &mut ResultSetMetadata| { &mut m.transaction }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResultSetMetadata", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResultSetMetadata { + const NAME: &'static str = "ResultSetMetadata"; + fn is_initialized(&self) -> bool { - for v in &self.row_type { - if !v.is_initialized() { - return false; - } - }; - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.undeclared_parameters { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.row_type)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.row_type)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.undeclared_parameters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -825,139 +493,92 @@ impl ::protobuf::Message for ResultSetMetadata { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.row_type.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.transaction.as_ref() { + if let Some(v) = self.row_type.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.undeclared_parameters.as_ref() { + if let Some(v) = self.transaction.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.row_type.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.row_type.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.undeclared_parameters.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResultSetMetadata { ResultSetMetadata::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "row_type", - |m: &ResultSetMetadata| { &m.row_type }, - |m: &mut ResultSetMetadata| { &mut m.row_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &ResultSetMetadata| { &m.transaction }, - |m: &mut ResultSetMetadata| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "undeclared_parameters", - |m: &ResultSetMetadata| { &m.undeclared_parameters }, - |m: &mut ResultSetMetadata| { &mut m.undeclared_parameters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResultSetMetadata", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.row_type.clear(); + self.transaction.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ResultSetMetadata { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResultSetMetadata::new) + static instance: ResultSetMetadata = ResultSetMetadata { + row_type: ::protobuf::MessageField::none(), + transaction: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResultSetMetadata { - fn clear(&mut self) { - self.row_type.clear(); - self.transaction.clear(); - self.undeclared_parameters.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResultSetMetadata { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResultSetMetadata").unwrap()).clone() } } -impl ::std::fmt::Debug for ResultSetMetadata { +impl ::std::fmt::Display for ResultSetMetadata { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResultSetMetadata { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// Additional statistics about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet]. +// @@protoc_insertion_point(message:google.spanner.v1.ResultSetStats) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ResultSetStats { // message fields - pub query_plan: ::protobuf::SingularPtrField, - pub query_stats: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, + /// [QueryPlan][google.spanner.v1.QueryPlan] for the query associated with this result. + // @@protoc_insertion_point(field:google.spanner.v1.ResultSetStats.query_plan) + pub query_plan: ::protobuf::MessageField, + // @@protoc_insertion_point(field:google.spanner.v1.ResultSetStats.query_stats) + pub query_stats: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, // message oneof groups - pub row_count: ::std::option::Option, + pub row_count: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ResultSetStats.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ResultSetStats { @@ -966,173 +587,119 @@ impl<'a> ::std::default::Default for &'a ResultSetStats { } } -#[derive(Clone,PartialEq,Debug)] -pub enum ResultSetStats_oneof_row_count { - row_count_exact(i64), - row_count_lower_bound(i64), -} - impl ResultSetStats { pub fn new() -> ResultSetStats { ::std::default::Default::default() } - // .google.spanner.v1.QueryPlan query_plan = 1; - - - pub fn get_query_plan(&self) -> &super::query_plan::QueryPlan { - self.query_plan.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_query_plan(&mut self) { - self.query_plan.clear(); - } - - pub fn has_query_plan(&self) -> bool { - self.query_plan.is_some() - } - - // Param is passed by value, moved - pub fn set_query_plan(&mut self, v: super::query_plan::QueryPlan) { - self.query_plan = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_query_plan(&mut self) -> &mut super::query_plan::QueryPlan { - if self.query_plan.is_none() { - self.query_plan.set_default(); - } - self.query_plan.as_mut().unwrap() - } - - // Take field - pub fn take_query_plan(&mut self) -> super::query_plan::QueryPlan { - self.query_plan.take().unwrap_or_else(|| super::query_plan::QueryPlan::new()) - } - - // .google.protobuf.Struct query_stats = 2; - - - pub fn get_query_stats(&self) -> &::protobuf::well_known_types::Struct { - self.query_stats.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_query_stats(&mut self) { - self.query_stats.clear(); - } - - pub fn has_query_stats(&self) -> bool { - self.query_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_query_stats(&mut self, v: ::protobuf::well_known_types::Struct) { - self.query_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_query_stats(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.query_stats.is_none() { - self.query_stats.set_default(); - } - self.query_stats.as_mut().unwrap() - } - - // Take field - pub fn take_query_stats(&mut self) -> ::protobuf::well_known_types::Struct { - self.query_stats.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - // int64 row_count_exact = 3; - - pub fn get_row_count_exact(&self) -> i64 { + pub fn row_count_exact(&self) -> i64 { match self.row_count { - ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_exact(v)) => v, + ::std::option::Option::Some(result_set_stats::Row_count::RowCountExact(v)) => v, _ => 0, } } + pub fn clear_row_count_exact(&mut self) { self.row_count = ::std::option::Option::None; } pub fn has_row_count_exact(&self) -> bool { match self.row_count { - ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_exact(..)) => true, + ::std::option::Option::Some(result_set_stats::Row_count::RowCountExact(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_row_count_exact(&mut self, v: i64) { - self.row_count = ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_exact(v)) + self.row_count = ::std::option::Option::Some(result_set_stats::Row_count::RowCountExact(v)) } // int64 row_count_lower_bound = 4; - - pub fn get_row_count_lower_bound(&self) -> i64 { + pub fn row_count_lower_bound(&self) -> i64 { match self.row_count { - ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_lower_bound(v)) => v, + ::std::option::Option::Some(result_set_stats::Row_count::RowCountLowerBound(v)) => v, _ => 0, } } + pub fn clear_row_count_lower_bound(&mut self) { self.row_count = ::std::option::Option::None; } pub fn has_row_count_lower_bound(&self) -> bool { match self.row_count { - ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_lower_bound(..)) => true, + ::std::option::Option::Some(result_set_stats::Row_count::RowCountLowerBound(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_row_count_lower_bound(&mut self, v: i64) { - self.row_count = ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_lower_bound(v)) + self.row_count = ::std::option::Option::Some(result_set_stats::Row_count::RowCountLowerBound(v)) + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::query_plan::QueryPlan>( + "query_plan", + |m: &ResultSetStats| { &m.query_plan }, + |m: &mut ResultSetStats| { &mut m.query_plan }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "query_stats", + |m: &ResultSetStats| { &m.query_stats }, + |m: &mut ResultSetStats| { &mut m.query_stats }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "row_count_exact", + ResultSetStats::has_row_count_exact, + ResultSetStats::row_count_exact, + ResultSetStats::set_row_count_exact, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "row_count_lower_bound", + ResultSetStats::has_row_count_lower_bound, + ResultSetStats::row_count_lower_bound, + ResultSetStats::set_row_count_lower_bound, + )); + oneofs.push(result_set_stats::Row_count::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ResultSetStats", + fields, + oneofs, + ) } } impl ::protobuf::Message for ResultSetStats { + const NAME: &'static str = "ResultSetStats"; + fn is_initialized(&self) -> bool { - for v in &self.query_plan { - if !v.is_initialized() { - return false; - } - }; - for v in &self.query_stats { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query_plan)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.query_plan)?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query_stats)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.query_stats)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.row_count = ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_exact(is.read_int64()?)); + 24 => { + self.row_count = ::std::option::Option::Some(result_set_stats::Row_count::RowCountExact(is.read_int64()?)); }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.row_count = ::std::option::Option::Some(ResultSetStats_oneof_row_count::row_count_lower_bound(is.read_int64()?)); + 32 => { + self.row_count = ::std::option::Option::Some(result_set_stats::Row_count::RowCountLowerBound(is.read_int64()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1141,143 +708,127 @@ impl ::protobuf::Message for ResultSetStats { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if let Some(ref v) = self.query_plan.as_ref() { + if let Some(v) = self.query_plan.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.query_stats.as_ref() { + if let Some(v) = self.query_stats.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let ::std::option::Option::Some(ref v) = self.row_count { match v { - &ResultSetStats_oneof_row_count::row_count_exact(v) => { - my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint); + &result_set_stats::Row_count::RowCountExact(v) => { + my_size += ::protobuf::rt::int64_size(3, v); }, - &ResultSetStats_oneof_row_count::row_count_lower_bound(v) => { - my_size += ::protobuf::rt::value_size(4, v, ::protobuf::wire_format::WireTypeVarint); + &result_set_stats::Row_count::RowCountLowerBound(v) => { + my_size += ::protobuf::rt::int64_size(4, v); }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.query_plan.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.query_plan.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } - if let Some(ref v) = self.query_stats.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.query_stats.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if let ::std::option::Option::Some(ref v) = self.row_count { match v { - &ResultSetStats_oneof_row_count::row_count_exact(v) => { + &result_set_stats::Row_count::RowCountExact(v) => { os.write_int64(3, v)?; }, - &ResultSetStats_oneof_row_count::row_count_lower_bound(v) => { + &result_set_stats::Row_count::RowCountLowerBound(v) => { os.write_int64(4, v)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ResultSetStats { ResultSetStats::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "query_plan", - |m: &ResultSetStats| { &m.query_plan }, - |m: &mut ResultSetStats| { &mut m.query_plan }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "query_stats", - |m: &ResultSetStats| { &m.query_stats }, - |m: &mut ResultSetStats| { &mut m.query_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor::<_>( - "row_count_exact", - ResultSetStats::has_row_count_exact, - ResultSetStats::get_row_count_exact, - )); - fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor::<_>( - "row_count_lower_bound", - ResultSetStats::has_row_count_lower_bound, - ResultSetStats::get_row_count_lower_bound, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResultSetStats", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.query_plan.clear(); + self.query_stats.clear(); + self.row_count = ::std::option::Option::None; + self.row_count = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static ResultSetStats { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ResultSetStats::new) + static instance: ResultSetStats = ResultSetStats { + query_plan: ::protobuf::MessageField::none(), + query_stats: ::protobuf::MessageField::none(), + row_count: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ResultSetStats { - fn clear(&mut self) { - self.query_plan.clear(); - self.query_stats.clear(); - self.row_count = ::std::option::Option::None; - self.row_count = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ResultSetStats { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ResultSetStats").unwrap()).clone() } } -impl ::std::fmt::Debug for ResultSetStats { +impl ::std::fmt::Display for ResultSetStats { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ResultSetStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ResultSetStats` +pub mod result_set_stats { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.ResultSetStats.row_count) + pub enum Row_count { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.ResultSetStats.row_count_exact) + RowCountExact(i64), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.ResultSetStats.row_count_lower_bound) + RowCountLowerBound(i64), + } + + impl ::protobuf::Oneof for Row_count { + } + + impl ::protobuf::OneofFull for Row_count { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("row_count").unwrap()).clone() + } + } + + impl Row_count { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("row_count") + } } } @@ -1285,261 +836,270 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\"google/spanner/v1/result_set.proto\x12\x11google.spanner.v1\x1a\x1cg\ oogle/protobuf/struct.proto\x1a\"google/spanner/v1/query_plan.proto\x1a#\ google/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.proto\ - \"\xb6\x01\n\tResultSet\x12@\n\x08metadata\x18\x01\x20\x01(\x0b2$.google\ - .spanner.v1.ResultSetMetadataR\x08metadata\x12.\n\x04rows\x18\x02\x20\ - \x03(\x0b2\x1a.google.protobuf.ListValueR\x04rows\x127\n\x05stats\x18\ - \x03\x20\x01(\x0b2!.google.spanner.v1.ResultSetStatsR\x05stats\"\x85\x02\ - \n\x10PartialResultSet\x12@\n\x08metadata\x18\x01\x20\x01(\x0b2$.google.\ - spanner.v1.ResultSetMetadataR\x08metadata\x12.\n\x06values\x18\x02\x20\ - \x03(\x0b2\x16.google.protobuf.ValueR\x06values\x12#\n\rchunked_value\ - \x18\x03\x20\x01(\x08R\x0cchunkedValue\x12!\n\x0cresume_token\x18\x04\ - \x20\x01(\x0cR\x0bresumeToken\x127\n\x05stats\x18\x05\x20\x01(\x0b2!.goo\ - gle.spanner.v1.ResultSetStatsR\x05stats\"\xe3\x01\n\x11ResultSetMetadata\ - \x128\n\x08row_type\x18\x01\x20\x01(\x0b2\x1d.google.spanner.v1.StructTy\ - peR\x07rowType\x12@\n\x0btransaction\x18\x02\x20\x01(\x0b2\x1e.google.sp\ - anner.v1.TransactionR\x0btransaction\x12R\n\x15undeclared_parameters\x18\ - \x03\x20\x01(\x0b2\x1d.google.spanner.v1.StructTypeR\x14undeclaredParame\ - ters\"\xf3\x01\n\x0eResultSetStats\x12;\n\nquery_plan\x18\x01\x20\x01(\ - \x0b2\x1c.google.spanner.v1.QueryPlanR\tqueryPlan\x128\n\x0bquery_stats\ - \x18\x02\x20\x01(\x0b2\x17.google.protobuf.StructR\nqueryStats\x12(\n\ - \x0frow_count_exact\x18\x03\x20\x01(\x03H\0R\rrowCountExact\x123\n\x15ro\ - w_count_lower_bound\x18\x04\x20\x01(\x03H\0R\x12rowCountLowerBoundB\x0b\ - \n\trow_countB\xb4\x01\n\x15com.google.spanner.v1B\x0eResultSetProtoP\ - \x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xf8\x01\x01\ - \xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V\ - 1\xea\x02\x1aGoogle::Cloud::Spanner::V1J\xd3C\n\x07\x12\x05\x0e\0\xd7\ - \x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x20\ - 2022\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ - se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ - \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ - License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ - \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ - \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ - \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1a\ - \n\t\n\x02\x03\0\x12\x03\x12\0&\n\t\n\x02\x03\x01\x12\x03\x13\0,\n\t\n\ - \x02\x03\x02\x12\x03\x14\0-\n\t\n\x02\x03\x03\x12\x03\x15\0&\n\x08\n\x01\ - \x08\x12\x03\x17\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x17\0\x1f\n\x08\n\x01\ - \x08\x12\x03\x18\04\n\t\n\x02\x08%\x12\x03\x18\04\n\x08\n\x01\x08\x12\ - \x03\x19\0L\n\t\n\x02\x08\x0b\x12\x03\x19\0L\n\x08\n\x01\x08\x12\x03\x1a\ - \0\"\n\t\n\x02\x08\n\x12\x03\x1a\0\"\n\x08\n\x01\x08\x12\x03\x1b\0/\n\t\ - \n\x02\x08\x08\x12\x03\x1b\0/\n\x08\n\x01\x08\x12\x03\x1c\0.\n\t\n\x02\ - \x08\x01\x12\x03\x1c\0.\n\x08\n\x01\x08\x12\x03\x1d\04\n\t\n\x02\x08)\ - \x12\x03\x1d\04\n\x08\n\x01\x08\x12\x03\x1e\03\n\t\n\x02\x08-\x12\x03\ - \x1e\03\ny\n\x02\x04\0\x12\x04\"\07\x01\x1am\x20Results\x20from\x20[Read\ - ][google.spanner.v1.Spanner.Read]\x20or\n\x20[ExecuteSql][google.spanner\ - .v1.Spanner.ExecuteSql].\n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x11\nK\n\ - \x04\x04\0\x02\0\x12\x03$\x02!\x1a>\x20Metadata\x20about\x20the\x20resul\ - t\x20set,\x20such\x20as\x20row\x20type\x20information.\n\n\x0c\n\x05\x04\ - \0\x02\0\x06\x12\x03$\x02\x13\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03$\x14\ - \x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03$\x1f\x20\n\xde\x02\n\x04\x04\0\ - \x02\x01\x12\x03,\x02.\x1a\xd0\x02\x20Each\x20element\x20in\x20`rows`\ - \x20is\x20a\x20row\x20whose\x20format\x20is\x20defined\x20by\n\x20[metad\ - ata.row_type][google.spanner.v1.ResultSetMetadata.row_type].\x20The\x20i\ - th\x20element\n\x20in\x20each\x20row\x20matches\x20the\x20ith\x20field\ - \x20in\n\x20[metadata.row_type][google.spanner.v1.ResultSetMetadata.row_\ - type].\x20Elements\x20are\n\x20encoded\x20based\x20on\x20type\x20as\x20d\ - escribed\n\x20[here][google.spanner.v1.TypeCode].\n\n\x0c\n\x05\x04\0\ - \x02\x01\x04\x12\x03,\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03,\x0b$\ - \n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,%)\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03,,-\n\xf5\x04\n\x04\x04\0\x02\x02\x12\x036\x02\x1b\x1a\xe7\x04\ - \x20Query\x20plan\x20and\x20execution\x20statistics\x20for\x20the\x20SQL\ - \x20statement\x20that\n\x20produced\x20this\x20result\x20set.\x20These\ - \x20can\x20be\x20requested\x20by\x20setting\n\x20[ExecuteSqlRequest.quer\ - y_mode][google.spanner.v1.ExecuteSqlRequest.query_mode].\n\x20DML\x20sta\ - tements\x20always\x20produce\x20stats\x20containing\x20the\x20number\x20\ - of\x20rows\n\x20modified,\x20unless\x20executed\x20using\x20the\n\x20[Ex\ - ecuteSqlRequest.QueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.Quer\ - yMode.PLAN]\x20[ExecuteSqlRequest.query_mode][google.spanner.v1.ExecuteS\ - qlRequest.query_mode].\n\x20Other\x20fields\x20may\x20or\x20may\x20not\ - \x20be\x20populated,\x20based\x20on\x20the\n\x20[ExecuteSqlRequest.query\ - _mode][google.spanner.v1.ExecuteSqlRequest.query_mode].\n\n\x0c\n\x05\ - \x04\0\x02\x02\x06\x12\x036\x02\x10\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x036\x11\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x036\x19\x1a\n\xcc\x01\n\ - \x02\x04\x01\x12\x05<\0\x9f\x01\x01\x1a\xbe\x01\x20Partial\x20results\ - \x20from\x20a\x20streaming\x20read\x20or\x20SQL\x20query.\x20Streaming\ - \x20reads\x20and\n\x20SQL\x20queries\x20better\x20tolerate\x20large\x20r\ - esult\x20sets,\x20large\x20rows,\x20and\x20large\n\x20values,\x20but\x20\ - are\x20a\x20little\x20trickier\x20to\x20consume.\n\n\n\n\x03\x04\x01\x01\ - \x12\x03<\x08\x18\np\n\x04\x04\x01\x02\0\x12\x03?\x02!\x1ac\x20Metadata\ - \x20about\x20the\x20result\x20set,\x20such\x20as\x20row\x20type\x20infor\ - mation.\n\x20Only\x20present\x20in\x20the\x20first\x20response.\n\n\x0c\ - \n\x05\x04\x01\x02\0\x06\x12\x03?\x02\x13\n\x0c\n\x05\x04\x01\x02\0\x01\ - \x12\x03?\x14\x1c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03?\x1f\x20\n\xc0\ - \x15\n\x04\x04\x01\x02\x01\x12\x04\x8a\x01\x02,\x1a\xb1\x15\x20A\x20stre\ - amed\x20result\x20set\x20consists\x20of\x20a\x20stream\x20of\x20values,\ - \x20which\x20might\n\x20be\x20split\x20into\x20many\x20`PartialResultSet\ - `\x20messages\x20to\x20accommodate\n\x20large\x20rows\x20and/or\x20large\ - \x20values.\x20Every\x20N\x20complete\x20values\x20defines\x20a\n\x20row\ - ,\x20where\x20N\x20is\x20equal\x20to\x20the\x20number\x20of\x20entries\ - \x20in\n\x20[metadata.row_type.fields][google.spanner.v1.StructType.fiel\ - ds].\n\n\x20Most\x20values\x20are\x20encoded\x20based\x20on\x20type\x20a\ - s\x20described\n\x20[here][google.spanner.v1.TypeCode].\n\n\x20It\x20is\ - \x20possible\x20that\x20the\x20last\x20value\x20in\x20values\x20is\x20\"\ - chunked\",\n\x20meaning\x20that\x20the\x20rest\x20of\x20the\x20value\x20\ - is\x20sent\x20in\x20subsequent\n\x20`PartialResultSet`(s).\x20This\x20is\ - \x20denoted\x20by\x20the\x20[chunked_value][google.spanner.v1.PartialRes\ - ultSet.chunked_value]\n\x20field.\x20Two\x20or\x20more\x20chunked\x20val\ - ues\x20can\x20be\x20merged\x20to\x20form\x20a\n\x20complete\x20value\x20\ - as\x20follows:\n\n\x20\x20\x20*\x20`bool/number/null`:\x20cannot\x20be\ - \x20chunked\n\x20\x20\x20*\x20`string`:\x20concatenate\x20the\x20strings\ - \n\x20\x20\x20*\x20`list`:\x20concatenate\x20the\x20lists.\x20If\x20the\ - \x20last\x20element\x20in\x20a\x20list\x20is\x20a\n\x20\x20\x20\x20\x20`\ - string`,\x20`list`,\x20or\x20`object`,\x20merge\x20it\x20with\x20the\x20\ - first\x20element\x20in\n\x20\x20\x20\x20\x20the\x20next\x20list\x20by\ - \x20applying\x20these\x20rules\x20recursively.\n\x20\x20\x20*\x20`object\ - `:\x20concatenate\x20the\x20(field\x20name,\x20field\x20value)\x20pairs.\ - \x20If\x20a\n\x20\x20\x20\x20\x20field\x20name\x20is\x20duplicated,\x20t\ - hen\x20apply\x20these\x20rules\x20recursively\n\x20\x20\x20\x20\x20to\ - \x20merge\x20the\x20field\x20values.\n\n\x20Some\x20examples\x20of\x20me\ - rging:\n\n\x20\x20\x20\x20\x20#\x20Strings\x20are\x20concatenated.\n\x20\ - \x20\x20\x20\x20\"foo\",\x20\"bar\"\x20=>\x20\"foobar\"\n\n\x20\x20\x20\ - \x20\x20#\x20Lists\x20of\x20non-strings\x20are\x20concatenated.\n\x20\ - \x20\x20\x20\x20[2,\x203],\x20[4]\x20=>\x20[2,\x203,\x204]\n\n\x20\x20\ - \x20\x20\x20#\x20Lists\x20are\x20concatenated,\x20but\x20the\x20last\x20\ - and\x20first\x20elements\x20are\x20merged\n\x20\x20\x20\x20\x20#\x20beca\ - use\x20they\x20are\x20strings.\n\x20\x20\x20\x20\x20[\"a\",\x20\"b\"],\ - \x20[\"c\",\x20\"d\"]\x20=>\x20[\"a\",\x20\"bc\",\x20\"d\"]\n\n\x20\x20\ - \x20\x20\x20#\x20Lists\x20are\x20concatenated,\x20but\x20the\x20last\x20\ - and\x20first\x20elements\x20are\x20merged\n\x20\x20\x20\x20\x20#\x20beca\ - use\x20they\x20are\x20lists.\x20Recursively,\x20the\x20last\x20and\x20fi\ - rst\x20elements\n\x20\x20\x20\x20\x20#\x20of\x20the\x20inner\x20lists\ - \x20are\x20merged\x20because\x20they\x20are\x20strings.\n\x20\x20\x20\ - \x20\x20[\"a\",\x20[\"b\",\x20\"c\"]],\x20[[\"d\"],\x20\"e\"]\x20=>\x20[\ - \"a\",\x20[\"b\",\x20\"cd\"],\x20\"e\"]\n\n\x20\x20\x20\x20\x20#\x20Non-\ - overlapping\x20object\x20fields\x20are\x20combined.\n\x20\x20\x20\x20\ - \x20{\"a\":\x20\"1\"},\x20{\"b\":\x20\"2\"}\x20=>\x20{\"a\":\x20\"1\",\ - \x20\"b\":\x202\"}\n\n\x20\x20\x20\x20\x20#\x20Overlapping\x20object\x20\ - fields\x20are\x20merged.\n\x20\x20\x20\x20\x20{\"a\":\x20\"1\"},\x20{\"a\ - \":\x20\"2\"}\x20=>\x20{\"a\":\x20\"12\"}\n\n\x20\x20\x20\x20\x20#\x20Ex\ - amples\x20of\x20merging\x20objects\x20containing\x20lists\x20of\x20strin\ - gs.\n\x20\x20\x20\x20\x20{\"a\":\x20[\"1\"]},\x20{\"a\":\x20[\"2\"]}\x20\ - =>\x20{\"a\":\x20[\"12\"]}\n\n\x20For\x20a\x20more\x20complete\x20exampl\ - e,\x20suppose\x20a\x20streaming\x20SQL\x20query\x20is\n\x20yielding\x20a\ - \x20result\x20set\x20whose\x20rows\x20contain\x20a\x20single\x20string\n\ - \x20field.\x20The\x20following\x20`PartialResultSet`s\x20might\x20be\x20\ - yielded:\n\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"metadat\ - a\":\x20{\x20...\x20}\n\x20\x20\x20\x20\x20\x20\x20\"values\":\x20[\"Hel\ - lo\",\x20\"W\"]\n\x20\x20\x20\x20\x20\x20\x20\"chunked_value\":\x20true\ - \n\x20\x20\x20\x20\x20\x20\x20\"resume_token\":\x20\"Af65...\"\n\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"valu\ - es\":\x20[\"orl\"]\n\x20\x20\x20\x20\x20\x20\x20\"chunked_value\":\x20tr\ - ue\n\x20\x20\x20\x20\x20\x20\x20\"resume_token\":\x20\"Bqp2...\"\n\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"\ - values\":\x20[\"d\"]\n\x20\x20\x20\x20\x20\x20\x20\"resume_token\":\x20\ - \"Zx1B...\"\n\x20\x20\x20\x20\x20}\n\n\x20This\x20sequence\x20of\x20`Par\ - tialResultSet`s\x20encodes\x20two\x20rows,\x20one\n\x20containing\x20the\ - \x20field\x20value\x20`\"Hello\"`,\x20and\x20a\x20second\x20containing\ - \x20the\n\x20field\x20value\x20`\"World\"\x20=\x20\"W\"\x20+\x20\"orl\"\ - \x20+\x20\"d\"`.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\x8a\x01\x02\n\n\ - \r\n\x05\x04\x01\x02\x01\x06\x12\x04\x8a\x01\x0b\x20\n\r\n\x05\x04\x01\ - \x02\x01\x01\x12\x04\x8a\x01!'\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8a\ - \x01*+\n\xdf\x01\n\x04\x04\x01\x02\x02\x12\x04\x8f\x01\x02\x19\x1a\xd0\ - \x01\x20If\x20true,\x20then\x20the\x20final\x20value\x20in\x20[values][g\ - oogle.spanner.v1.PartialResultSet.values]\x20is\x20chunked,\x20and\x20mu\ - st\n\x20be\x20combined\x20with\x20more\x20values\x20from\x20subsequent\ - \x20`PartialResultSet`s\n\x20to\x20obtain\x20a\x20complete\x20field\x20v\ - alue.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\x8f\x01\x02\x06\n\r\n\x05\ - \x04\x01\x02\x02\x01\x12\x04\x8f\x01\x07\x14\n\r\n\x05\x04\x01\x02\x02\ - \x03\x12\x04\x8f\x01\x17\x18\n\xbb\x02\n\x04\x04\x01\x02\x03\x12\x04\x96\ - \x01\x02\x19\x1a\xac\x02\x20Streaming\x20calls\x20might\x20be\x20interru\ - pted\x20for\x20a\x20variety\x20of\x20reasons,\x20such\n\x20as\x20TCP\x20\ - connection\x20loss.\x20If\x20this\x20occurs,\x20the\x20stream\x20of\x20r\ - esults\x20can\n\x20be\x20resumed\x20by\x20re-sending\x20the\x20original\ - \x20request\x20and\x20including\n\x20`resume_token`.\x20Note\x20that\x20\ - executing\x20any\x20other\x20transaction\x20in\x20the\n\x20same\x20sessi\ - on\x20invalidates\x20the\x20token.\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\ - \x04\x96\x01\x02\x07\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x96\x01\x08\ - \x14\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\x96\x01\x17\x18\n\xeb\x02\n\ - \x04\x04\x01\x02\x04\x12\x04\x9e\x01\x02\x1b\x1a\xdc\x02\x20Query\x20pla\ - n\x20and\x20execution\x20statistics\x20for\x20the\x20statement\x20that\ - \x20produced\x20this\n\x20streaming\x20result\x20set.\x20These\x20can\ - \x20be\x20requested\x20by\x20setting\n\x20[ExecuteSqlRequest.query_mode]\ - [google.spanner.v1.ExecuteSqlRequest.query_mode]\x20and\x20are\x20sent\n\ - \x20only\x20once\x20with\x20the\x20last\x20response\x20in\x20the\x20stre\ - am.\n\x20This\x20field\x20will\x20also\x20be\x20present\x20in\x20the\x20\ - last\x20response\x20for\x20DML\n\x20statements.\n\n\r\n\x05\x04\x01\x02\ - \x04\x06\x12\x04\x9e\x01\x02\x10\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\ - \x9e\x01\x11\x16\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x9e\x01\x19\x1a\n\ - \x84\x01\n\x02\x04\x02\x12\x06\xa2\x01\0\xbc\x01\x01\x1av\x20Metadata\ - \x20about\x20a\x20[ResultSet][google.spanner.v1.ResultSet]\x20or\x20[Par\ - tialResultSet][google.spanner.v1.PartialResultSet].\n\n\x0b\n\x03\x04\ - \x02\x01\x12\x04\xa2\x01\x08\x19\n\xd2\x02\n\x04\x04\x02\x02\0\x12\x04\ - \xab\x01\x02\x1a\x1a\xc3\x02\x20Indicates\x20the\x20field\x20names\x20an\ - d\x20types\x20for\x20the\x20rows\x20in\x20the\x20result\n\x20set.\x20\ - \x20For\x20example,\x20a\x20SQL\x20query\x20like\x20`\"SELECT\x20UserId,\ - \x20UserName\x20FROM\n\x20Users\"`\x20could\x20return\x20a\x20`row_type`\ - \x20value\x20like:\n\n\x20\x20\x20\x20\x20\"fields\":\x20[\n\x20\x20\x20\ - \x20\x20\x20\x20{\x20\"name\":\x20\"UserId\",\x20\"type\":\x20{\x20\"cod\ - e\":\x20\"INT64\"\x20}\x20},\n\x20\x20\x20\x20\x20\x20\x20{\x20\"name\":\ - \x20\"UserName\",\x20\"type\":\x20{\x20\"code\":\x20\"STRING\"\x20}\x20}\ - ,\n\x20\x20\x20\x20\x20]\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xab\x01\ - \x02\x0c\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xab\x01\r\x15\n\r\n\x05\x04\ - \x02\x02\0\x03\x12\x04\xab\x01\x18\x19\n\x8a\x01\n\x04\x04\x02\x02\x01\ - \x12\x04\xaf\x01\x02\x1e\x1a|\x20If\x20the\x20read\x20or\x20SQL\x20query\ - \x20began\x20a\x20transaction\x20as\x20a\x20side-effect,\x20the\n\x20inf\ - ormation\x20about\x20the\x20new\x20transaction\x20is\x20yielded\x20here.\ - \n\n\r\n\x05\x04\x02\x02\x01\x06\x12\x04\xaf\x01\x02\r\n\r\n\x05\x04\x02\ - \x02\x01\x01\x12\x04\xaf\x01\x0e\x19\n\r\n\x05\x04\x02\x02\x01\x03\x12\ - \x04\xaf\x01\x1c\x1d\n\xed\x03\n\x04\x04\x02\x02\x02\x12\x04\xbb\x01\x02\ - '\x1a\xde\x03\x20A\x20SQL\x20query\x20can\x20be\x20parameterized.\x20In\ - \x20PLAN\x20mode,\x20these\x20parameters\x20can\x20be\n\x20undeclared.\ - \x20This\x20indicates\x20the\x20field\x20names\x20and\x20types\x20for\ - \x20those\x20undeclared\n\x20parameters\x20in\x20the\x20SQL\x20query.\ - \x20For\x20example,\x20a\x20SQL\x20query\x20like\x20`\"SELECT\x20*\x20FR\ - OM\n\x20Users\x20where\x20UserId\x20=\x20@userId\x20and\x20UserName\x20=\ - \x20@userName\x20\"`\x20could\x20return\x20a\n\x20`undeclared_parameters\ - `\x20value\x20like:\n\n\x20\x20\x20\x20\x20\"fields\":\x20[\n\x20\x20\ - \x20\x20\x20\x20\x20{\x20\"name\":\x20\"UserId\",\x20\"type\":\x20{\x20\ - \"code\":\x20\"INT64\"\x20}\x20},\n\x20\x20\x20\x20\x20\x20\x20{\x20\"na\ - me\":\x20\"UserName\",\x20\"type\":\x20{\x20\"code\":\x20\"STRING\"\x20}\ - \x20},\n\x20\x20\x20\x20\x20]\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\ - \xbb\x01\x02\x0c\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xbb\x01\r\"\n\r\n\ - \x05\x04\x02\x02\x02\x03\x12\x04\xbb\x01%&\n\x92\x01\n\x02\x04\x03\x12\ - \x06\xbf\x01\0\xd7\x01\x01\x1a\x83\x01\x20Additional\x20statistics\x20ab\ - out\x20a\x20[ResultSet][google.spanner.v1.ResultSet]\x20or\x20[PartialRe\ - sultSet][google.spanner.v1.PartialResultSet].\n\n\x0b\n\x03\x04\x03\x01\ - \x12\x04\xbf\x01\x08\x16\nc\n\x04\x04\x03\x02\0\x12\x04\xc1\x01\x02\x1b\ - \x1aU\x20[QueryPlan][google.spanner.v1.QueryPlan]\x20for\x20the\x20query\ - \x20associated\x20with\x20this\x20result.\n\n\r\n\x05\x04\x03\x02\0\x06\ - \x12\x04\xc1\x01\x02\x0b\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xc1\x01\x0c\ - \x16\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xc1\x01\x19\x1a\n\x9e\x02\n\x04\ - \x04\x03\x02\x01\x12\x04\xcc\x01\x02)\x1a\x8f\x02\x20Aggregated\x20stati\ - stics\x20from\x20the\x20execution\x20of\x20the\x20query.\x20Only\x20pres\ - ent\x20when\n\x20the\x20query\x20is\x20profiled.\x20For\x20example,\x20a\ - \x20query\x20could\x20return\x20the\x20statistics\x20as\n\x20follows:\n\ - \n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"rows_returned\":\ - \x20\"3\",\n\x20\x20\x20\x20\x20\x20\x20\"elapsed_time\":\x20\"1.22\x20s\ - ecs\",\n\x20\x20\x20\x20\x20\x20\x20\"cpu_time\":\x20\"1.19\x20secs\"\n\ - \x20\x20\x20\x20\x20}\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\xcc\x01\ - \x02\x18\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xcc\x01\x19$\n\r\n\x05\ - \x04\x03\x02\x01\x03\x12\x04\xcc\x01'(\nC\n\x04\x04\x03\x08\0\x12\x06\ - \xcf\x01\x02\xd6\x01\x03\x1a3\x20The\x20number\x20of\x20rows\x20modified\ - \x20by\x20the\x20DML\x20statement.\n\n\r\n\x05\x04\x03\x08\0\x01\x12\x04\ - \xcf\x01\x08\x11\nO\n\x04\x04\x03\x02\x02\x12\x04\xd1\x01\x04\x1e\x1aA\ - \x20Standard\x20DML\x20returns\x20an\x20exact\x20count\x20of\x20rows\x20\ - that\x20were\x20modified.\n\n\r\n\x05\x04\x03\x02\x02\x05\x12\x04\xd1\ - \x01\x04\t\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xd1\x01\n\x19\n\r\n\x05\ - \x04\x03\x02\x02\x03\x12\x04\xd1\x01\x1c\x1d\ny\n\x04\x04\x03\x02\x03\ - \x12\x04\xd5\x01\x04$\x1ak\x20Partitioned\x20DML\x20does\x20not\x20offer\ - \x20exactly-once\x20semantics,\x20so\x20it\n\x20returns\x20a\x20lower\ - \x20bound\x20of\x20the\x20rows\x20modified.\n\n\r\n\x05\x04\x03\x02\x03\ - \x05\x12\x04\xd5\x01\x04\t\n\r\n\x05\x04\x03\x02\x03\x01\x12\x04\xd5\x01\ - \n\x1f\n\r\n\x05\x04\x03\x02\x03\x03\x12\x04\xd5\x01\"#b\x06proto3\ + \x1a\x1cgoogle/api/annotations.proto\"\xb6\x01\n\tResultSet\x12@\n\x08me\ + tadata\x18\x01\x20\x01(\x0b2$.google.spanner.v1.ResultSetMetadataR\x08me\ + tadata\x12.\n\x04rows\x18\x02\x20\x03(\x0b2\x1a.google.protobuf.ListValu\ + eR\x04rows\x127\n\x05stats\x18\x03\x20\x01(\x0b2!.google.spanner.v1.Resu\ + ltSetStatsR\x05stats\"\x85\x02\n\x10PartialResultSet\x12@\n\x08metadata\ + \x18\x01\x20\x01(\x0b2$.google.spanner.v1.ResultSetMetadataR\x08metadata\ + \x12.\n\x06values\x18\x02\x20\x03(\x0b2\x16.google.protobuf.ValueR\x06va\ + lues\x12#\n\rchunked_value\x18\x03\x20\x01(\x08R\x0cchunkedValue\x12!\n\ + \x0cresume_token\x18\x04\x20\x01(\x0cR\x0bresumeToken\x127\n\x05stats\ + \x18\x05\x20\x01(\x0b2!.google.spanner.v1.ResultSetStatsR\x05stats\"\x8f\ + \x01\n\x11ResultSetMetadata\x128\n\x08row_type\x18\x01\x20\x01(\x0b2\x1d\ + .google.spanner.v1.StructTypeR\x07rowType\x12@\n\x0btransaction\x18\x02\ + \x20\x01(\x0b2\x1e.google.spanner.v1.TransactionR\x0btransaction\"\xf3\ + \x01\n\x0eResultSetStats\x12;\n\nquery_plan\x18\x01\x20\x01(\x0b2\x1c.go\ + ogle.spanner.v1.QueryPlanR\tqueryPlan\x128\n\x0bquery_stats\x18\x02\x20\ + \x01(\x0b2\x17.google.protobuf.StructR\nqueryStats\x12(\n\x0frow_count_e\ + xact\x18\x03\x20\x01(\x03H\0R\rrowCountExact\x123\n\x15row_count_lower_b\ + ound\x18\x04\x20\x01(\x03H\0R\x12rowCountLowerBoundB\x0b\n\trow_countB\ + \x9a\x01\n\x15com.google.spanner.v1B\x0eResultSetProtoP\x01Z8google.gola\ + ng.org/genproto/googleapis/spanner/v1;spanner\xf8\x01\x01\xaa\x02\x17Goo\ + gle.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1J\xae?\n\x07\ + \x12\x05\x0f\0\xcc\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\ + \x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20\ + the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ + \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ + ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ + of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ + licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ + w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ + \x12\x03\x11\0\x1a\n\t\n\x02\x03\0\x12\x03\x13\0&\n\t\n\x02\x03\x01\x12\ + \x03\x14\0,\n\t\n\x02\x03\x02\x12\x03\x15\0-\n\t\n\x02\x03\x03\x12\x03\ + \x16\0&\n\t\n\x02\x03\x04\x12\x03\x17\0&\n\x08\n\x01\x08\x12\x03\x19\0\ + \x1f\n\t\n\x02\x08\x1f\x12\x03\x19\0\x1f\n\x08\n\x01\x08\x12\x03\x1a\04\ + \n\t\n\x02\x08%\x12\x03\x1a\04\n\x08\n\x01\x08\x12\x03\x1b\0O\n\t\n\x02\ + \x08\x0b\x12\x03\x1b\0O\n\x08\n\x01\x08\x12\x03\x1c\0\"\n\t\n\x02\x08\n\ + \x12\x03\x1c\0\"\n\x08\n\x01\x08\x12\x03\x1d\0/\n\t\n\x02\x08\x08\x12\ + \x03\x1d\0/\n\x08\n\x01\x08\x12\x03\x1e\0.\n\t\n\x02\x08\x01\x12\x03\x1e\ + \0.\n\x08\n\x01\x08\x12\x03\x1f\04\n\t\n\x02\x08)\x12\x03\x1f\04\ny\n\ + \x02\x04\0\x12\x04#\08\x01\x1am\x20Results\x20from\x20[Read][google.span\ + ner.v1.Spanner.Read]\x20or\n\x20[ExecuteSql][google.spanner.v1.Spanner.E\ + xecuteSql].\n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x11\nK\n\x04\x04\0\x02\0\ + \x12\x03%\x02!\x1a>\x20Metadata\x20about\x20the\x20result\x20set,\x20suc\ + h\x20as\x20row\x20type\x20information.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\ + \x03%\x02\x13\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03%\x14\x1c\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03%\x1f\x20\n\xde\x02\n\x04\x04\0\x02\x01\x12\x03-\ + \x02.\x1a\xd0\x02\x20Each\x20element\x20in\x20`rows`\x20is\x20a\x20row\ + \x20whose\x20format\x20is\x20defined\x20by\n\x20[metadata.row_type][goog\ + le.spanner.v1.ResultSetMetadata.row_type].\x20The\x20ith\x20element\n\ + \x20in\x20each\x20row\x20matches\x20the\x20ith\x20field\x20in\n\x20[meta\ + data.row_type][google.spanner.v1.ResultSetMetadata.row_type].\x20Element\ + s\x20are\n\x20encoded\x20based\x20on\x20type\x20as\x20described\n\x20[he\ + re][google.spanner.v1.TypeCode].\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\ + -\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03-\x0b$\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03-%)\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-,-\n\xf5\ + \x04\n\x04\x04\0\x02\x02\x12\x037\x02\x1b\x1a\xe7\x04\x20Query\x20plan\ + \x20and\x20execution\x20statistics\x20for\x20the\x20SQL\x20statement\x20\ + that\n\x20produced\x20this\x20result\x20set.\x20These\x20can\x20be\x20re\ + quested\x20by\x20setting\n\x20[ExecuteSqlRequest.query_mode][google.span\ + ner.v1.ExecuteSqlRequest.query_mode].\n\x20DML\x20statements\x20always\ + \x20produce\x20stats\x20containing\x20the\x20number\x20of\x20rows\n\x20m\ + odified,\x20unless\x20executed\x20using\x20the\n\x20[ExecuteSqlRequest.Q\ + ueryMode.PLAN][google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN]\x20[E\ + xecuteSqlRequest.query_mode][google.spanner.v1.ExecuteSqlRequest.query_m\ + ode].\n\x20Other\x20fields\x20may\x20or\x20may\x20not\x20be\x20populated\ + ,\x20based\x20on\x20the\n\x20[ExecuteSqlRequest.query_mode][google.spann\ + er.v1.ExecuteSqlRequest.query_mode].\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\ + \x037\x02\x10\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x037\x11\x16\n\x0c\n\x05\ + \x04\0\x02\x02\x03\x12\x037\x19\x1a\n\xcc\x01\n\x02\x04\x01\x12\x05=\0\ + \xa0\x01\x01\x1a\xbe\x01\x20Partial\x20results\x20from\x20a\x20streaming\ + \x20read\x20or\x20SQL\x20query.\x20Streaming\x20reads\x20and\n\x20SQL\ + \x20queries\x20better\x20tolerate\x20large\x20result\x20sets,\x20large\ + \x20rows,\x20and\x20large\n\x20values,\x20but\x20are\x20a\x20little\x20t\ + rickier\x20to\x20consume.\n\n\n\n\x03\x04\x01\x01\x12\x03=\x08\x18\np\n\ + \x04\x04\x01\x02\0\x12\x03@\x02!\x1ac\x20Metadata\x20about\x20the\x20res\ + ult\x20set,\x20such\x20as\x20row\x20type\x20information.\n\x20Only\x20pr\ + esent\x20in\x20the\x20first\x20response.\n\n\x0c\n\x05\x04\x01\x02\0\x06\ + \x12\x03@\x02\x13\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03@\x14\x1c\n\x0c\n\ + \x05\x04\x01\x02\0\x03\x12\x03@\x1f\x20\n\xc0\x15\n\x04\x04\x01\x02\x01\ + \x12\x04\x8b\x01\x02,\x1a\xb1\x15\x20A\x20streamed\x20result\x20set\x20c\ + onsists\x20of\x20a\x20stream\x20of\x20values,\x20which\x20might\n\x20be\ + \x20split\x20into\x20many\x20`PartialResultSet`\x20messages\x20to\x20acc\ + ommodate\n\x20large\x20rows\x20and/or\x20large\x20values.\x20Every\x20N\ + \x20complete\x20values\x20defines\x20a\n\x20row,\x20where\x20N\x20is\x20\ + equal\x20to\x20the\x20number\x20of\x20entries\x20in\n\x20[metadata.row_t\ + ype.fields][google.spanner.v1.StructType.fields].\n\n\x20Most\x20values\ + \x20are\x20encoded\x20based\x20on\x20type\x20as\x20described\n\x20[here]\ + [google.spanner.v1.TypeCode].\n\n\x20It\x20is\x20possible\x20that\x20the\ + \x20last\x20value\x20in\x20values\x20is\x20\"chunked\",\n\x20meaning\x20\ + that\x20the\x20rest\x20of\x20the\x20value\x20is\x20sent\x20in\x20subsequ\ + ent\n\x20`PartialResultSet`(s).\x20This\x20is\x20denoted\x20by\x20the\ + \x20[chunked_value][google.spanner.v1.PartialResultSet.chunked_value]\n\ + \x20field.\x20Two\x20or\x20more\x20chunked\x20values\x20can\x20be\x20mer\ + ged\x20to\x20form\x20a\n\x20complete\x20value\x20as\x20follows:\n\n\x20\ + \x20\x20*\x20`bool/number/null`:\x20cannot\x20be\x20chunked\n\x20\x20\ + \x20*\x20`string`:\x20concatenate\x20the\x20strings\n\x20\x20\x20*\x20`l\ + ist`:\x20concatenate\x20the\x20lists.\x20If\x20the\x20last\x20element\ + \x20in\x20a\x20list\x20is\x20a\n\x20\x20\x20\x20\x20`string`,\x20`list`,\ + \x20or\x20`object`,\x20merge\x20it\x20with\x20the\x20first\x20element\ + \x20in\n\x20\x20\x20\x20\x20the\x20next\x20list\x20by\x20applying\x20the\ + se\x20rules\x20recursively.\n\x20\x20\x20*\x20`object`:\x20concatenate\ + \x20the\x20(field\x20name,\x20field\x20value)\x20pairs.\x20If\x20a\n\x20\ + \x20\x20\x20\x20field\x20name\x20is\x20duplicated,\x20then\x20apply\x20t\ + hese\x20rules\x20recursively\n\x20\x20\x20\x20\x20to\x20merge\x20the\x20\ + field\x20values.\n\n\x20Some\x20examples\x20of\x20merging:\n\n\x20\x20\ + \x20\x20\x20#\x20Strings\x20are\x20concatenated.\n\x20\x20\x20\x20\x20\"\ + foo\",\x20\"bar\"\x20=>\x20\"foobar\"\n\n\x20\x20\x20\x20\x20#\x20Lists\ + \x20of\x20non-strings\x20are\x20concatenated.\n\x20\x20\x20\x20\x20[2,\ + \x203],\x20[4]\x20=>\x20[2,\x203,\x204]\n\n\x20\x20\x20\x20\x20#\x20List\ + s\x20are\x20concatenated,\x20but\x20the\x20last\x20and\x20first\x20eleme\ + nts\x20are\x20merged\n\x20\x20\x20\x20\x20#\x20because\x20they\x20are\ + \x20strings.\n\x20\x20\x20\x20\x20[\"a\",\x20\"b\"],\x20[\"c\",\x20\"d\"\ + ]\x20=>\x20[\"a\",\x20\"bc\",\x20\"d\"]\n\n\x20\x20\x20\x20\x20#\x20List\ + s\x20are\x20concatenated,\x20but\x20the\x20last\x20and\x20first\x20eleme\ + nts\x20are\x20merged\n\x20\x20\x20\x20\x20#\x20because\x20they\x20are\ + \x20lists.\x20Recursively,\x20the\x20last\x20and\x20first\x20elements\n\ + \x20\x20\x20\x20\x20#\x20of\x20the\x20inner\x20lists\x20are\x20merged\ + \x20because\x20they\x20are\x20strings.\n\x20\x20\x20\x20\x20[\"a\",\x20[\ + \"b\",\x20\"c\"]],\x20[[\"d\"],\x20\"e\"]\x20=>\x20[\"a\",\x20[\"b\",\ + \x20\"cd\"],\x20\"e\"]\n\n\x20\x20\x20\x20\x20#\x20Non-overlapping\x20ob\ + ject\x20fields\x20are\x20combined.\n\x20\x20\x20\x20\x20{\"a\":\x20\"1\"\ + },\x20{\"b\":\x20\"2\"}\x20=>\x20{\"a\":\x20\"1\",\x20\"b\":\x202\"}\n\n\ + \x20\x20\x20\x20\x20#\x20Overlapping\x20object\x20fields\x20are\x20merge\ + d.\n\x20\x20\x20\x20\x20{\"a\":\x20\"1\"},\x20{\"a\":\x20\"2\"}\x20=>\ + \x20{\"a\":\x20\"12\"}\n\n\x20\x20\x20\x20\x20#\x20Examples\x20of\x20mer\ + ging\x20objects\x20containing\x20lists\x20of\x20strings.\n\x20\x20\x20\ + \x20\x20{\"a\":\x20[\"1\"]},\x20{\"a\":\x20[\"2\"]}\x20=>\x20{\"a\":\x20\ + [\"12\"]}\n\n\x20For\x20a\x20more\x20complete\x20example,\x20suppose\x20\ + a\x20streaming\x20SQL\x20query\x20is\n\x20yielding\x20a\x20result\x20set\ + \x20whose\x20rows\x20contain\x20a\x20single\x20string\n\x20field.\x20The\ + \x20following\x20`PartialResultSet`s\x20might\x20be\x20yielded:\n\n\x20\ + \x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\x20...\ + \x20}\n\x20\x20\x20\x20\x20\x20\x20\"values\":\x20[\"Hello\",\x20\"W\"]\ + \n\x20\x20\x20\x20\x20\x20\x20\"chunked_value\":\x20true\n\x20\x20\x20\ + \x20\x20\x20\x20\"resume_token\":\x20\"Af65...\"\n\x20\x20\x20\x20\x20}\ + \n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"values\":\x20[\"o\ + rl\"]\n\x20\x20\x20\x20\x20\x20\x20\"chunked_value\":\x20true\n\x20\x20\ + \x20\x20\x20\x20\x20\"resume_token\":\x20\"Bqp2...\"\n\x20\x20\x20\x20\ + \x20}\n\x20\x20\x20\x20\x20{\n\x20\x20\x20\x20\x20\x20\x20\"values\":\ + \x20[\"d\"]\n\x20\x20\x20\x20\x20\x20\x20\"resume_token\":\x20\"Zx1B...\ + \"\n\x20\x20\x20\x20\x20}\n\n\x20This\x20sequence\x20of\x20`PartialResul\ + tSet`s\x20encodes\x20two\x20rows,\x20one\n\x20containing\x20the\x20field\ + \x20value\x20`\"Hello\"`,\x20and\x20a\x20second\x20containing\x20the\n\ + \x20field\x20value\x20`\"World\"\x20=\x20\"W\"\x20+\x20\"orl\"\x20+\x20\ + \"d\"`.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04\x8b\x01\x02\n\n\r\n\x05\ + \x04\x01\x02\x01\x06\x12\x04\x8b\x01\x0b\x20\n\r\n\x05\x04\x01\x02\x01\ + \x01\x12\x04\x8b\x01!'\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8b\x01*+\n\ + \xdf\x01\n\x04\x04\x01\x02\x02\x12\x04\x90\x01\x02\x19\x1a\xd0\x01\x20If\ + \x20true,\x20then\x20the\x20final\x20value\x20in\x20[values][google.span\ + ner.v1.PartialResultSet.values]\x20is\x20chunked,\x20and\x20must\n\x20be\ + \x20combined\x20with\x20more\x20values\x20from\x20subsequent\x20`Partial\ + ResultSet`s\n\x20to\x20obtain\x20a\x20complete\x20field\x20value.\n\n\r\ + \n\x05\x04\x01\x02\x02\x05\x12\x04\x90\x01\x02\x06\n\r\n\x05\x04\x01\x02\ + \x02\x01\x12\x04\x90\x01\x07\x14\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\ + \x90\x01\x17\x18\n\xbb\x02\n\x04\x04\x01\x02\x03\x12\x04\x97\x01\x02\x19\ + \x1a\xac\x02\x20Streaming\x20calls\x20might\x20be\x20interrupted\x20for\ + \x20a\x20variety\x20of\x20reasons,\x20such\n\x20as\x20TCP\x20connection\ + \x20loss.\x20If\x20this\x20occurs,\x20the\x20stream\x20of\x20results\x20\ + can\n\x20be\x20resumed\x20by\x20re-sending\x20the\x20original\x20request\ + \x20and\x20including\n\x20`resume_token`.\x20Note\x20that\x20executing\ + \x20any\x20other\x20transaction\x20in\x20the\n\x20same\x20session\x20inv\ + alidates\x20the\x20token.\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\x97\ + \x01\x02\x07\n\r\n\x05\x04\x01\x02\x03\x01\x12\x04\x97\x01\x08\x14\n\r\n\ + \x05\x04\x01\x02\x03\x03\x12\x04\x97\x01\x17\x18\n\xeb\x02\n\x04\x04\x01\ + \x02\x04\x12\x04\x9f\x01\x02\x1b\x1a\xdc\x02\x20Query\x20plan\x20and\x20\ + execution\x20statistics\x20for\x20the\x20statement\x20that\x20produced\ + \x20this\n\x20streaming\x20result\x20set.\x20These\x20can\x20be\x20reque\ + sted\x20by\x20setting\n\x20[ExecuteSqlRequest.query_mode][google.spanner\ + .v1.ExecuteSqlRequest.query_mode]\x20and\x20are\x20sent\n\x20only\x20onc\ + e\x20with\x20the\x20last\x20response\x20in\x20the\x20stream.\n\x20This\ + \x20field\x20will\x20also\x20be\x20present\x20in\x20the\x20last\x20respo\ + nse\x20for\x20DML\n\x20statements.\n\n\r\n\x05\x04\x01\x02\x04\x06\x12\ + \x04\x9f\x01\x02\x10\n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\x9f\x01\x11\ + \x16\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x9f\x01\x19\x1a\n\x84\x01\n\ + \x02\x04\x02\x12\x06\xa3\x01\0\xb1\x01\x01\x1av\x20Metadata\x20about\x20\ + a\x20[ResultSet][google.spanner.v1.ResultSet]\x20or\x20[PartialResultSet\ + ][google.spanner.v1.PartialResultSet].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ + \xa3\x01\x08\x19\n\xd2\x02\n\x04\x04\x02\x02\0\x12\x04\xac\x01\x02\x1a\ + \x1a\xc3\x02\x20Indicates\x20the\x20field\x20names\x20and\x20types\x20fo\ + r\x20the\x20rows\x20in\x20the\x20result\n\x20set.\x20\x20For\x20example,\ + \x20a\x20SQL\x20query\x20like\x20`\"SELECT\x20UserId,\x20UserName\x20FRO\ + M\n\x20Users\"`\x20could\x20return\x20a\x20`row_type`\x20value\x20like:\ + \n\n\x20\x20\x20\x20\x20\"fields\":\x20[\n\x20\x20\x20\x20\x20\x20\x20{\ + \x20\"name\":\x20\"UserId\",\x20\"type\":\x20{\x20\"code\":\x20\"INT64\"\ + \x20}\x20},\n\x20\x20\x20\x20\x20\x20\x20{\x20\"name\":\x20\"UserName\",\ + \x20\"type\":\x20{\x20\"code\":\x20\"STRING\"\x20}\x20},\n\x20\x20\x20\ + \x20\x20]\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xac\x01\x02\x0c\n\r\n\ + \x05\x04\x02\x02\0\x01\x12\x04\xac\x01\r\x15\n\r\n\x05\x04\x02\x02\0\x03\ + \x12\x04\xac\x01\x18\x19\n\x8a\x01\n\x04\x04\x02\x02\x01\x12\x04\xb0\x01\ + \x02\x1e\x1a|\x20If\x20the\x20read\x20or\x20SQL\x20query\x20began\x20a\ + \x20transaction\x20as\x20a\x20side-effect,\x20the\n\x20information\x20ab\ + out\x20the\x20new\x20transaction\x20is\x20yielded\x20here.\n\n\r\n\x05\ + \x04\x02\x02\x01\x06\x12\x04\xb0\x01\x02\r\n\r\n\x05\x04\x02\x02\x01\x01\ + \x12\x04\xb0\x01\x0e\x19\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xb0\x01\ + \x1c\x1d\n\x92\x01\n\x02\x04\x03\x12\x06\xb4\x01\0\xcc\x01\x01\x1a\x83\ + \x01\x20Additional\x20statistics\x20about\x20a\x20[ResultSet][google.spa\ + nner.v1.ResultSet]\x20or\x20[PartialResultSet][google.spanner.v1.Partial\ + ResultSet].\n\n\x0b\n\x03\x04\x03\x01\x12\x04\xb4\x01\x08\x16\nc\n\x04\ + \x04\x03\x02\0\x12\x04\xb6\x01\x02\x1b\x1aU\x20[QueryPlan][google.spanne\ + r.v1.QueryPlan]\x20for\x20the\x20query\x20associated\x20with\x20this\x20\ + result.\n\n\r\n\x05\x04\x03\x02\0\x06\x12\x04\xb6\x01\x02\x0b\n\r\n\x05\ + \x04\x03\x02\0\x01\x12\x04\xb6\x01\x0c\x16\n\r\n\x05\x04\x03\x02\0\x03\ + \x12\x04\xb6\x01\x19\x1a\n\x9e\x02\n\x04\x04\x03\x02\x01\x12\x04\xc1\x01\ + \x02)\x1a\x8f\x02\x20Aggregated\x20statistics\x20from\x20the\x20executio\ + n\x20of\x20the\x20query.\x20Only\x20present\x20when\n\x20the\x20query\ + \x20is\x20profiled.\x20For\x20example,\x20a\x20query\x20could\x20return\ + \x20the\x20statistics\x20as\n\x20follows:\n\n\x20\x20\x20\x20\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\"rows_returned\":\x20\"3\",\n\x20\x20\x20\x20\ + \x20\x20\x20\"elapsed_time\":\x20\"1.22\x20secs\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"cpu_time\":\x20\"1.19\x20secs\"\n\x20\x20\x20\x20\x20}\n\n\r\n\ + \x05\x04\x03\x02\x01\x06\x12\x04\xc1\x01\x02\x18\n\r\n\x05\x04\x03\x02\ + \x01\x01\x12\x04\xc1\x01\x19$\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xc1\ + \x01'(\nC\n\x04\x04\x03\x08\0\x12\x06\xc4\x01\x02\xcb\x01\x03\x1a3\x20Th\ + e\x20number\x20of\x20rows\x20modified\x20by\x20the\x20DML\x20statement.\ + \n\n\r\n\x05\x04\x03\x08\0\x01\x12\x04\xc4\x01\x08\x11\nO\n\x04\x04\x03\ + \x02\x02\x12\x04\xc6\x01\x04\x1e\x1aA\x20Standard\x20DML\x20returns\x20a\ + n\x20exact\x20count\x20of\x20rows\x20that\x20were\x20modified.\n\n\r\n\ + \x05\x04\x03\x02\x02\x05\x12\x04\xc6\x01\x04\t\n\r\n\x05\x04\x03\x02\x02\ + \x01\x12\x04\xc6\x01\n\x19\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xc6\x01\ + \x1c\x1d\ny\n\x04\x04\x03\x02\x03\x12\x04\xca\x01\x04$\x1ak\x20Partition\ + ed\x20DML\x20does\x20not\x20offer\x20exactly-once\x20semantics,\x20so\ + \x20it\n\x20returns\x20a\x20lower\x20bound\x20of\x20the\x20rows\x20modif\ + ied.\n\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\xca\x01\x04\t\n\r\n\x05\x04\ + \x03\x02\x03\x01\x12\x04\xca\x01\n\x1f\n\r\n\x05\x04\x03\x02\x03\x03\x12\ + \x04\xca\x01\"#b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(5); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(super::query_plan::file_descriptor().clone()); + deps.push(super::transaction::file_descriptor().clone()); + deps.push(super::type_::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(4); + messages.push(ResultSet::generated_message_descriptor_data()); + messages.push(PartialResultSet::generated_message_descriptor_data()); + messages.push(ResultSetMetadata::generated_message_descriptor_data()); + messages.push(ResultSetStats::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/spanner.rs b/googleapis-raw/src/spanner/v1/spanner.rs index 196c3a4..febb967 100644 --- a/googleapis-raw/src/spanner/v1/spanner.rs +++ b/googleapis-raw/src/spanner/v1/spanner.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,29 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/spanner.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// The request for [CreateSession][google.spanner.v1.Spanner.CreateSession]. +// @@protoc_insertion_point(message:google.spanner.v1.CreateSessionRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct CreateSessionRequest { // message fields + /// Required. The database in which the new session is created. + // @@protoc_insertion_point(field:google.spanner.v1.CreateSessionRequest.database) pub database: ::std::string::String, - pub session: ::protobuf::SingularPtrField, + /// The session to create. + // @@protoc_insertion_point(field:google.spanner.v1.CreateSessionRequest.session) + pub session: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.CreateSessionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a CreateSessionRequest { @@ -44,88 +52,45 @@ impl CreateSessionRequest { ::std::default::Default::default() } - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // .google.spanner.v1.Session session = 2; - - - pub fn get_session(&self) -> &Session { - self.session.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - pub fn has_session(&self) -> bool { - self.session.is_some() - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: Session) { - self.session = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut Session { - if self.session.is_none() { - self.session.set_default(); - } - self.session.as_mut().unwrap() - } - - // Take field - pub fn take_session(&mut self) -> Session { - self.session.take().unwrap_or_else(|| Session::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &CreateSessionRequest| { &m.database }, + |m: &mut CreateSessionRequest| { &mut m.database }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Session>( + "session", + |m: &CreateSessionRequest| { &m.session }, + |m: &mut CreateSessionRequest| { &mut m.session }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CreateSessionRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for CreateSessionRequest { + const NAME: &'static str = "CreateSessionRequest"; + fn is_initialized(&self) -> bool { - for v in &self.session { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.session)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.session)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -134,120 +99,99 @@ impl ::protobuf::Message for CreateSessionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.database.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.database); } - if let Some(ref v) = self.session.as_ref() { + if let Some(v) = self.session.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.database.is_empty() { os.write_string(1, &self.database)?; } - if let Some(ref v) = self.session.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.session.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> CreateSessionRequest { CreateSessionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &CreateSessionRequest| { &m.database }, - |m: &mut CreateSessionRequest| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "session", - |m: &CreateSessionRequest| { &m.session }, - |m: &mut CreateSessionRequest| { &mut m.session }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateSessionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.session.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static CreateSessionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CreateSessionRequest::new) + static instance: CreateSessionRequest = CreateSessionRequest { + database: ::std::string::String::new(), + session: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CreateSessionRequest { - fn clear(&mut self) { - self.database.clear(); - self.session.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CreateSessionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CreateSessionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CreateSessionRequest { +impl ::std::fmt::Display for CreateSessionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for CreateSessionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request for +/// [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. +// @@protoc_insertion_point(message:google.spanner.v1.BatchCreateSessionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct BatchCreateSessionsRequest { // message fields + /// Required. The database in which the new sessions are created. + // @@protoc_insertion_point(field:google.spanner.v1.BatchCreateSessionsRequest.database) pub database: ::std::string::String, - pub session_template: ::protobuf::SingularPtrField, + /// Parameters to be applied to each created session. + // @@protoc_insertion_point(field:google.spanner.v1.BatchCreateSessionsRequest.session_template) + pub session_template: ::protobuf::MessageField, + /// Required. The number of sessions to be created in this batch call. + /// The API may return fewer than the requested number of sessions. If a + /// specific number of sessions are desired, the client can make additional + /// calls to BatchCreateSessions (adjusting + /// [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] + /// as necessary). + // @@protoc_insertion_point(field:google.spanner.v1.BatchCreateSessionsRequest.session_count) pub session_count: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.BatchCreateSessionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a BatchCreateSessionsRequest { @@ -261,110 +205,53 @@ impl BatchCreateSessionsRequest { ::std::default::Default::default() } - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // .google.spanner.v1.Session session_template = 2; - - - pub fn get_session_template(&self) -> &Session { - self.session_template.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_session_template(&mut self) { - self.session_template.clear(); - } - - pub fn has_session_template(&self) -> bool { - self.session_template.is_some() - } - - // Param is passed by value, moved - pub fn set_session_template(&mut self, v: Session) { - self.session_template = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session_template(&mut self) -> &mut Session { - if self.session_template.is_none() { - self.session_template.set_default(); - } - self.session_template.as_mut().unwrap() - } - - // Take field - pub fn take_session_template(&mut self) -> Session { - self.session_template.take().unwrap_or_else(|| Session::new()) - } - - // int32 session_count = 3; - - - pub fn get_session_count(&self) -> i32 { - self.session_count - } - pub fn clear_session_count(&mut self) { - self.session_count = 0; - } - - // Param is passed by value, moved - pub fn set_session_count(&mut self, v: i32) { - self.session_count = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &BatchCreateSessionsRequest| { &m.database }, + |m: &mut BatchCreateSessionsRequest| { &mut m.database }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Session>( + "session_template", + |m: &BatchCreateSessionsRequest| { &m.session_template }, + |m: &mut BatchCreateSessionsRequest| { &mut m.session_template }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session_count", + |m: &BatchCreateSessionsRequest| { &m.session_count }, + |m: &mut BatchCreateSessionsRequest| { &mut m.session_count }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BatchCreateSessionsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for BatchCreateSessionsRequest { + const NAME: &'static str = "BatchCreateSessionsRequest"; + fn is_initialized(&self) -> bool { - for v in &self.session_template { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.session_template)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.session_template)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.session_count = tmp; + 24 => { + self.session_count = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -373,130 +260,96 @@ impl ::protobuf::Message for BatchCreateSessionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.database.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.database); } - if let Some(ref v) = self.session_template.as_ref() { + if let Some(v) = self.session_template.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if self.session_count != 0 { - my_size += ::protobuf::rt::value_size(3, self.session_count, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.session_count); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.database.is_empty() { os.write_string(1, &self.database)?; } - if let Some(ref v) = self.session_template.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.session_template.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if self.session_count != 0 { os.write_int32(3, self.session_count)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> BatchCreateSessionsRequest { BatchCreateSessionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &BatchCreateSessionsRequest| { &m.database }, - |m: &mut BatchCreateSessionsRequest| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "session_template", - |m: &BatchCreateSessionsRequest| { &m.session_template }, - |m: &mut BatchCreateSessionsRequest| { &mut m.session_template }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "session_count", - |m: &BatchCreateSessionsRequest| { &m.session_count }, - |m: &mut BatchCreateSessionsRequest| { &mut m.session_count }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchCreateSessionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.session_template.clear(); + self.session_count = 0; + self.special_fields.clear(); } fn default_instance() -> &'static BatchCreateSessionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchCreateSessionsRequest::new) + static instance: BatchCreateSessionsRequest = BatchCreateSessionsRequest { + database: ::std::string::String::new(), + session_template: ::protobuf::MessageField::none(), + session_count: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BatchCreateSessionsRequest { - fn clear(&mut self) { - self.database.clear(); - self.session_template.clear(); - self.session_count = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BatchCreateSessionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BatchCreateSessionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for BatchCreateSessionsRequest { +impl ::std::fmt::Display for BatchCreateSessionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for BatchCreateSessionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The response for +/// [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. +// @@protoc_insertion_point(message:google.spanner.v1.BatchCreateSessionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct BatchCreateSessionsResponse { // message fields - pub session: ::protobuf::RepeatedField, + /// The freshly created sessions. + // @@protoc_insertion_point(field:google.spanner.v1.BatchCreateSessionsResponse.session) + pub session: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.BatchCreateSessionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a BatchCreateSessionsResponse { @@ -510,51 +363,37 @@ impl BatchCreateSessionsResponse { ::std::default::Default::default() } - // repeated .google.spanner.v1.Session session = 1; - - - pub fn get_session(&self) -> &[Session] { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::protobuf::RepeatedField) { - self.session = v; - } - - // Mutable pointer to the field. - pub fn mut_session(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.session, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "session", + |m: &BatchCreateSessionsResponse| { &m.session }, + |m: &mut BatchCreateSessionsResponse| { &mut m.session }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BatchCreateSessionsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for BatchCreateSessionsResponse { + const NAME: &'static str = "BatchCreateSessionsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.session { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.session)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -563,110 +402,89 @@ impl ::protobuf::Message for BatchCreateSessionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.session { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.session { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> BatchCreateSessionsResponse { BatchCreateSessionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "session", - |m: &BatchCreateSessionsResponse| { &m.session }, - |m: &mut BatchCreateSessionsResponse| { &mut m.session }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchCreateSessionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static BatchCreateSessionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchCreateSessionsResponse::new) + static instance: BatchCreateSessionsResponse = BatchCreateSessionsResponse { + session: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BatchCreateSessionsResponse { - fn clear(&mut self) { - self.session.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BatchCreateSessionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BatchCreateSessionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for BatchCreateSessionsResponse { +impl ::std::fmt::Display for BatchCreateSessionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for BatchCreateSessionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// A session in the Cloud Spanner API. +// @@protoc_insertion_point(message:google.spanner.v1.Session) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Session { // message fields + /// The name of the session. This is always system-assigned; values provided + /// when creating a session are ignored. + // @@protoc_insertion_point(field:google.spanner.v1.Session.name) pub name: ::std::string::String, + // @@protoc_insertion_point(field:google.spanner.v1.Session.labels) pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub create_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub approximate_last_use_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub creator_role: ::std::string::String, + /// Output only. The timestamp when the session is created. + // @@protoc_insertion_point(field:google.spanner.v1.Session.create_time) + pub create_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + /// Output only. The approximate timestamp when the session is last used. It is + /// typically earlier than the actual last use time. + // @@protoc_insertion_point(field:google.spanner.v1.Session.approximate_last_use_time) + pub approximate_last_use_time: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.Session.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Session { @@ -680,186 +498,73 @@ impl Session { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .google.spanner.v1.Session.LabelsEntry labels = 2; - - - pub fn get_labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.labels - } - pub fn clear_labels(&mut self) { - self.labels.clear(); - } - - // Param is passed by value, moved - pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.labels = v; - } - - // Mutable pointer to the field. - pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.labels - } - - // Take field - pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new()) - } - - // .google.protobuf.Timestamp create_time = 3; - - - pub fn get_create_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.create_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_create_time(&mut self) { - self.create_time.clear(); - } - - pub fn has_create_time(&self) -> bool { - self.create_time.is_some() - } - - // Param is passed by value, moved - pub fn set_create_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.create_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_create_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.create_time.is_none() { - self.create_time.set_default(); - } - self.create_time.as_mut().unwrap() - } - - // Take field - pub fn take_create_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.create_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp approximate_last_use_time = 4; - - - pub fn get_approximate_last_use_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.approximate_last_use_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_approximate_last_use_time(&mut self) { - self.approximate_last_use_time.clear(); - } - - pub fn has_approximate_last_use_time(&self) -> bool { - self.approximate_last_use_time.is_some() - } - - // Param is passed by value, moved - pub fn set_approximate_last_use_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.approximate_last_use_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_approximate_last_use_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.approximate_last_use_time.is_none() { - self.approximate_last_use_time.set_default(); - } - self.approximate_last_use_time.as_mut().unwrap() - } - - // Take field - pub fn take_approximate_last_use_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.approximate_last_use_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // string creator_role = 5; - - - pub fn get_creator_role(&self) -> &str { - &self.creator_role - } - pub fn clear_creator_role(&mut self) { - self.creator_role.clear(); - } - - // Param is passed by value, moved - pub fn set_creator_role(&mut self, v: ::std::string::String) { - self.creator_role = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_creator_role(&mut self) -> &mut ::std::string::String { - &mut self.creator_role - } - - // Take field - pub fn take_creator_role(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.creator_role, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Session| { &m.name }, + |m: &mut Session| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "labels", + |m: &Session| { &m.labels }, + |m: &mut Session| { &mut m.labels }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "create_time", + |m: &Session| { &m.create_time }, + |m: &mut Session| { &mut m.create_time }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "approximate_last_use_time", + |m: &Session| { &m.approximate_last_use_time }, + |m: &mut Session| { &mut m.approximate_last_use_time }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Session", + fields, + oneofs, + ) } } impl ::protobuf::Message for Session { + const NAME: &'static str = "Session"; + fn is_initialized(&self) -> bool { - for v in &self.create_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.approximate_last_use_time { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.labels)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.create_time)?; + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.labels.insert(key, value); }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.approximate_last_use_time)?; + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.create_time)?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.creator_role)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.approximate_last_use_time)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -868,153 +573,107 @@ impl ::protobuf::Message for Session { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels); - if let Some(ref v) = self.create_time.as_ref() { + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if let Some(v) = self.create_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.approximate_last_use_time.as_ref() { + if let Some(v) = self.approximate_last_use_time.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.creator_role.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.creator_role); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(2, &self.labels, os)?; - if let Some(ref v) = self.create_time.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.approximate_last_use_time.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + for (k, v) in &self.labels { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if let Some(v) = self.create_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } - if !self.creator_role.is_empty() { - os.write_string(5, &self.creator_role)?; + if let Some(v) = self.approximate_last_use_time.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn new() -> Session { + Session::new() } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Session { - Session::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Session| { &m.name }, - |m: &mut Session| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "labels", - |m: &Session| { &m.labels }, - |m: &mut Session| { &mut m.labels }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "create_time", - |m: &Session| { &m.create_time }, - |m: &mut Session| { &mut m.create_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "approximate_last_use_time", - |m: &Session| { &m.approximate_last_use_time }, - |m: &mut Session| { &mut m.approximate_last_use_time }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "creator_role", - |m: &Session| { &m.creator_role }, - |m: &mut Session| { &mut m.creator_role }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Session", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.labels.clear(); + self.create_time.clear(); + self.approximate_last_use_time.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Session { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); instance.get(Session::new) } } -impl ::protobuf::Clear for Session { - fn clear(&mut self) { - self.name.clear(); - self.labels.clear(); - self.create_time.clear(); - self.approximate_last_use_time.clear(); - self.creator_role.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Session { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Session").unwrap()).clone() } } -impl ::std::fmt::Debug for Session { +impl ::std::fmt::Display for Session { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Session { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request for [GetSession][google.spanner.v1.Spanner.GetSession]. +// @@protoc_insertion_point(message:google.spanner.v1.GetSessionRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct GetSessionRequest { // message fields + /// Required. The name of the session to retrieve. + // @@protoc_insertion_point(field:google.spanner.v1.GetSessionRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.GetSessionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a GetSessionRequest { @@ -1028,47 +687,37 @@ impl GetSessionRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &GetSessionRequest| { &m.name }, + |m: &mut GetSessionRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GetSessionRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for GetSessionRequest { + const NAME: &'static str = "GetSessionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1077,106 +726,90 @@ impl ::protobuf::Message for GetSessionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> GetSessionRequest { GetSessionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &GetSessionRequest| { &m.name }, - |m: &mut GetSessionRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetSessionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static GetSessionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(GetSessionRequest::new) + static instance: GetSessionRequest = GetSessionRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for GetSessionRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for GetSessionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GetSessionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for GetSessionRequest { +impl ::std::fmt::Display for GetSessionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for GetSessionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request for [ListSessions][google.spanner.v1.Spanner.ListSessions]. +// @@protoc_insertion_point(message:google.spanner.v1.ListSessionsRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSessionsRequest { // message fields + /// Required. The database in which to list sessions. + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsRequest.database) pub database: ::std::string::String, + /// Number of sessions to be returned in the response. If 0 or less, defaults + /// to the server's maximum allowed page size. + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsRequest.page_size) pub page_size: i32, + /// If non-empty, `page_token` should contain a + /// [next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] + /// from a previous + /// [ListSessionsResponse][google.spanner.v1.ListSessionsResponse]. + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsRequest.page_token) pub page_token: ::std::string::String, + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsRequest.filter) pub filter: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ListSessionsRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSessionsRequest { @@ -1190,127 +823,61 @@ impl ListSessionsRequest { ::std::default::Default::default() } - // string database = 1; - - - pub fn get_database(&self) -> &str { - &self.database - } - pub fn clear_database(&mut self) { - self.database.clear(); - } - - // Param is passed by value, moved - pub fn set_database(&mut self, v: ::std::string::String) { - self.database = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_database(&mut self) -> &mut ::std::string::String { - &mut self.database - } - - // Take field - pub fn take_database(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.database, ::std::string::String::new()) - } - - // int32 page_size = 2; - - - pub fn get_page_size(&self) -> i32 { - self.page_size - } - pub fn clear_page_size(&mut self) { - self.page_size = 0; - } - - // Param is passed by value, moved - pub fn set_page_size(&mut self, v: i32) { - self.page_size = v; - } - - // string page_token = 3; - - - pub fn get_page_token(&self) -> &str { - &self.page_token - } - pub fn clear_page_token(&mut self) { - self.page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_page_token(&mut self, v: ::std::string::String) { - self.page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_page_token(&mut self) -> &mut ::std::string::String { - &mut self.page_token - } - - // Take field - pub fn take_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.page_token, ::std::string::String::new()) - } - - // string filter = 4; - - - pub fn get_filter(&self) -> &str { - &self.filter - } - pub fn clear_filter(&mut self) { - self.filter.clear(); - } - - // Param is passed by value, moved - pub fn set_filter(&mut self, v: ::std::string::String) { - self.filter = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_filter(&mut self) -> &mut ::std::string::String { - &mut self.filter - } - - // Take field - pub fn take_filter(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.filter, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "database", + |m: &ListSessionsRequest| { &m.database }, + |m: &mut ListSessionsRequest| { &mut m.database }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_size", + |m: &ListSessionsRequest| { &m.page_size }, + |m: &mut ListSessionsRequest| { &mut m.page_size }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "page_token", + |m: &ListSessionsRequest| { &m.page_token }, + |m: &mut ListSessionsRequest| { &mut m.page_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "filter", + |m: &ListSessionsRequest| { &m.filter }, + |m: &mut ListSessionsRequest| { &mut m.filter }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSessionsRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSessionsRequest { + const NAME: &'static str = "ListSessionsRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.database)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.database = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.page_size = tmp; + 16 => { + self.page_size = is.read_int32()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.page_token)?; + 26 => { + self.page_token = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.filter)?; + 34 => { + self.filter = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1319,13 +886,13 @@ impl ::protobuf::Message for ListSessionsRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.database.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.database); } if self.page_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.page_size, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.page_size); } if !self.page_token.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.page_token); @@ -1333,12 +900,12 @@ impl ::protobuf::Message for ListSessionsRequest { if !self.filter.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.filter); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.database.is_empty() { os.write_string(1, &self.database)?; } @@ -1351,108 +918,75 @@ impl ::protobuf::Message for ListSessionsRequest { if !self.filter.is_empty() { os.write_string(4, &self.filter)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSessionsRequest { ListSessionsRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "database", - |m: &ListSessionsRequest| { &m.database }, - |m: &mut ListSessionsRequest| { &mut m.database }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "page_size", - |m: &ListSessionsRequest| { &m.page_size }, - |m: &mut ListSessionsRequest| { &mut m.page_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "page_token", - |m: &ListSessionsRequest| { &m.page_token }, - |m: &mut ListSessionsRequest| { &mut m.page_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "filter", - |m: &ListSessionsRequest| { &m.filter }, - |m: &mut ListSessionsRequest| { &mut m.filter }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSessionsRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.database.clear(); + self.page_size = 0; + self.page_token.clear(); + self.filter.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSessionsRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSessionsRequest::new) + static instance: ListSessionsRequest = ListSessionsRequest { + database: ::std::string::String::new(), + page_size: 0, + page_token: ::std::string::String::new(), + filter: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSessionsRequest { - fn clear(&mut self) { - self.database.clear(); - self.page_size = 0; - self.page_token.clear(); - self.filter.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSessionsRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSessionsRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSessionsRequest { +impl ::std::fmt::Display for ListSessionsRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSessionsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The response for [ListSessions][google.spanner.v1.Spanner.ListSessions]. +// @@protoc_insertion_point(message:google.spanner.v1.ListSessionsResponse) +#[derive(PartialEq,Clone,Default,Debug)] pub struct ListSessionsResponse { // message fields - pub sessions: ::protobuf::RepeatedField, + /// The list of requested sessions. + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsResponse.sessions) + pub sessions: ::std::vec::Vec, + /// `next_page_token` can be sent in a subsequent + /// [ListSessions][google.spanner.v1.Spanner.ListSessions] call to fetch more + /// of the matching sessions. + // @@protoc_insertion_point(field:google.spanner.v1.ListSessionsResponse.next_page_token) pub next_page_token: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ListSessionsResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a ListSessionsResponse { @@ -1466,80 +1000,45 @@ impl ListSessionsResponse { ::std::default::Default::default() } - // repeated .google.spanner.v1.Session sessions = 1; - - - pub fn get_sessions(&self) -> &[Session] { - &self.sessions - } - pub fn clear_sessions(&mut self) { - self.sessions.clear(); - } - - // Param is passed by value, moved - pub fn set_sessions(&mut self, v: ::protobuf::RepeatedField) { - self.sessions = v; - } - - // Mutable pointer to the field. - pub fn mut_sessions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.sessions - } - - // Take field - pub fn take_sessions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.sessions, ::protobuf::RepeatedField::new()) - } - - // string next_page_token = 2; - - - pub fn get_next_page_token(&self) -> &str { - &self.next_page_token - } - pub fn clear_next_page_token(&mut self) { - self.next_page_token.clear(); - } - - // Param is passed by value, moved - pub fn set_next_page_token(&mut self, v: ::std::string::String) { - self.next_page_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_next_page_token(&mut self) -> &mut ::std::string::String { - &mut self.next_page_token - } - - // Take field - pub fn take_next_page_token(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.next_page_token, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "sessions", + |m: &ListSessionsResponse| { &m.sessions }, + |m: &mut ListSessionsResponse| { &mut m.sessions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "next_page_token", + |m: &ListSessionsResponse| { &m.next_page_token }, + |m: &mut ListSessionsResponse| { &mut m.next_page_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ListSessionsResponse", + fields, + oneofs, + ) } } impl ::protobuf::Message for ListSessionsResponse { + const NAME: &'static str = "ListSessionsResponse"; + fn is_initialized(&self) -> bool { - for v in &self.sessions { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.sessions)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.sessions.push(is.read_message()?); }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.next_page_token)?; + 18 => { + self.next_page_token = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1548,118 +1047,87 @@ impl ::protobuf::Message for ListSessionsResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; for value in &self.sessions { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; if !self.next_page_token.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.next_page_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { for v in &self.sessions { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }; if !self.next_page_token.is_empty() { os.write_string(2, &self.next_page_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> ListSessionsResponse { ListSessionsResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "sessions", - |m: &ListSessionsResponse| { &m.sessions }, - |m: &mut ListSessionsResponse| { &mut m.sessions }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "next_page_token", - |m: &ListSessionsResponse| { &m.next_page_token }, - |m: &mut ListSessionsResponse| { &mut m.next_page_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListSessionsResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.sessions.clear(); + self.next_page_token.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static ListSessionsResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ListSessionsResponse::new) + static instance: ListSessionsResponse = ListSessionsResponse { + sessions: ::std::vec::Vec::new(), + next_page_token: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for ListSessionsResponse { - fn clear(&mut self) { - self.sessions.clear(); - self.next_page_token.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ListSessionsResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ListSessionsResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for ListSessionsResponse { +impl ::std::fmt::Display for ListSessionsResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for ListSessionsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// The request for [DeleteSession][google.spanner.v1.Spanner.DeleteSession]. +// @@protoc_insertion_point(message:google.spanner.v1.DeleteSessionRequest) +#[derive(PartialEq,Clone,Default,Debug)] pub struct DeleteSessionRequest { // message fields + /// Required. The name of the session to delete. + // @@protoc_insertion_point(field:google.spanner.v1.DeleteSessionRequest.name) pub name: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.DeleteSessionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a DeleteSessionRequest { @@ -1673,47 +1141,37 @@ impl DeleteSessionRequest { ::std::default::Default::default() } - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &DeleteSessionRequest| { &m.name }, + |m: &mut DeleteSessionRequest| { &mut m.name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DeleteSessionRequest", + fields, + oneofs, + ) } } impl ::protobuf::Message for DeleteSessionRequest { + const NAME: &'static str = "DeleteSessionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1722,206 +1180,583 @@ impl ::protobuf::Message for DeleteSessionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.name.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.name); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.name.is_empty() { os.write_string(1, &self.name)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> DeleteSessionRequest { DeleteSessionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &DeleteSessionRequest| { &m.name }, - |m: &mut DeleteSessionRequest| { &mut m.name }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DeleteSessionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.name.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static DeleteSessionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DeleteSessionRequest::new) + static instance: DeleteSessionRequest = DeleteSessionRequest { + name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for DeleteSessionRequest { - fn clear(&mut self) { - self.name.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for DeleteSessionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DeleteSessionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for DeleteSessionRequest { +impl ::std::fmt::Display for DeleteSessionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for DeleteSessionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RequestOptions { +/// The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and +/// [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql]. +// @@protoc_insertion_point(message:google.spanner.v1.ExecuteSqlRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExecuteSqlRequest { // message fields - pub priority: RequestOptions_Priority, - pub request_tag: ::std::string::String, - pub transaction_tag: ::std::string::String, + /// Required. The session in which the SQL query should be performed. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.session) + pub session: ::std::string::String, + /// The transaction to use. + /// + /// For queries, if none is provided, the default is a temporary read-only + /// transaction with strong concurrency. + /// + /// Standard DML statements require a read-write transaction. To protect + /// against replays, single-use transactions are not supported. The caller + /// must either supply an existing transaction ID or begin a new transaction. + /// + /// Partitioned DML requires an existing Partitioned DML transaction ID. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.transaction) + pub transaction: ::protobuf::MessageField, + /// Required. The SQL string. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.sql) + pub sql: ::std::string::String, + /// 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. + /// + /// Parameters can appear anywhere that a literal value is expected. The same + /// parameter name can be used more than once, for example: + /// + /// `"WHERE id > @msg_id AND id < @msg_id + 100"` + /// + /// It is an error to execute a SQL statement with unbound parameters. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.params) + pub params: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + /// It is not always possible for Cloud Spanner to infer the right SQL type + /// from a JSON value. For example, values of type `BYTES` and values + /// of type `STRING` both appear in + /// [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. + /// + /// In these cases, `param_types` can be used to specify the exact + /// SQL type for some or all of the SQL statement parameters. See the + /// definition of [Type][google.spanner.v1.Type] for more information + /// about SQL types. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.param_types) + pub param_types: ::std::collections::HashMap<::std::string::String, super::type_::Type>, + /// If this request is resuming a previously interrupted SQL statement + /// execution, `resume_token` should be copied from the last + /// [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the + /// interruption. Doing this enables the new SQL statement execution to resume + /// where the last one left off. The rest of the request parameters must + /// exactly match the request that yielded this token. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.resume_token) + pub resume_token: ::std::vec::Vec, + /// Used to control the amount of debugging information returned in + /// [ResultSetStats][google.spanner.v1.ResultSetStats]. If + /// [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is + /// set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only + /// be set to + /// [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL]. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.query_mode) + pub query_mode: ::protobuf::EnumOrUnknown, + /// If present, results will be restricted to the specified partition + /// previously created using PartitionQuery(). There must be an exact + /// match for the values of fields common to this message and the + /// PartitionQueryRequest message used to create this partition_token. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.partition_token) + pub partition_token: ::std::vec::Vec, + /// A per-transaction sequence number used to identify this request. This field + /// makes each request idempotent such that if the request is received multiple + /// times, at most one will succeed. + /// + /// The sequence number must be monotonically increasing within the + /// transaction. If a request arrives for the first time with an out-of-order + /// sequence number, the transaction may be aborted. Replays of previously + /// handled requests will yield the same response as the first execution. + /// + /// Required for DML statements. Ignored for queries. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteSqlRequest.seqno) + pub seqno: i64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ExecuteSqlRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RequestOptions { - fn default() -> &'a RequestOptions { - ::default_instance() +impl<'a> ::std::default::Default for &'a ExecuteSqlRequest { + fn default() -> &'a ExecuteSqlRequest { + ::default_instance() } } -impl RequestOptions { - pub fn new() -> RequestOptions { +impl ExecuteSqlRequest { + pub fn new() -> ExecuteSqlRequest { ::std::default::Default::default() } - // .google.spanner.v1.RequestOptions.Priority priority = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(9); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &ExecuteSqlRequest| { &m.session }, + |m: &mut ExecuteSqlRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionSelector>( + "transaction", + |m: &ExecuteSqlRequest| { &m.transaction }, + |m: &mut ExecuteSqlRequest| { &mut m.transaction }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sql", + |m: &ExecuteSqlRequest| { &m.sql }, + |m: &mut ExecuteSqlRequest| { &mut m.sql }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "params", + |m: &ExecuteSqlRequest| { &m.params }, + |m: &mut ExecuteSqlRequest| { &mut m.params }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "param_types", + |m: &ExecuteSqlRequest| { &m.param_types }, + |m: &mut ExecuteSqlRequest| { &mut m.param_types }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resume_token", + |m: &ExecuteSqlRequest| { &m.resume_token }, + |m: &mut ExecuteSqlRequest| { &mut m.resume_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "query_mode", + |m: &ExecuteSqlRequest| { &m.query_mode }, + |m: &mut ExecuteSqlRequest| { &mut m.query_mode }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "partition_token", + |m: &ExecuteSqlRequest| { &m.partition_token }, + |m: &mut ExecuteSqlRequest| { &mut m.partition_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "seqno", + |m: &ExecuteSqlRequest| { &m.seqno }, + |m: &mut ExecuteSqlRequest| { &mut m.seqno }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExecuteSqlRequest", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for ExecuteSqlRequest { + const NAME: &'static str = "ExecuteSqlRequest"; - pub fn get_priority(&self) -> RequestOptions_Priority { - self.priority - } - pub fn clear_priority(&mut self) { - self.priority = RequestOptions_Priority::PRIORITY_UNSPECIFIED; + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_priority(&mut self, v: RequestOptions_Priority) { - self.priority = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; + }, + 26 => { + self.sql = is.read_string()?; + }, + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.params)?; + }, + 42 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.param_types.insert(key, value); + }, + 50 => { + self.resume_token = is.read_bytes()?; + }, + 56 => { + self.query_mode = is.read_enum_or_unknown()?; + }, + 66 => { + self.partition_token = is.read_bytes()?; + }, + 72 => { + self.seqno = is.read_int64()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // string request_tag = 2; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.session.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.session); + } + if let Some(v) = self.transaction.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if !self.sql.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.sql); + } + if let Some(v) = self.params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if !self.resume_token.is_empty() { + my_size += ::protobuf::rt::bytes_size(6, &self.resume_token); + } + if self.query_mode != ::protobuf::EnumOrUnknown::new(execute_sql_request::QueryMode::NORMAL) { + my_size += ::protobuf::rt::int32_size(7, self.query_mode.value()); + } + if !self.partition_token.is_empty() { + my_size += ::protobuf::rt::bytes_size(8, &self.partition_token); + } + if self.seqno != 0 { + my_size += ::protobuf::rt::int64_size(9, self.seqno); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.session.is_empty() { + os.write_string(1, &self.session)?; + } + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if !self.sql.is_empty() { + os.write_string(3, &self.sql)?; + } + if let Some(v) = self.params.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(42)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + if !self.resume_token.is_empty() { + os.write_bytes(6, &self.resume_token)?; + } + if self.query_mode != ::protobuf::EnumOrUnknown::new(execute_sql_request::QueryMode::NORMAL) { + os.write_enum(7, ::protobuf::EnumOrUnknown::value(&self.query_mode))?; + } + if !self.partition_token.is_empty() { + os.write_bytes(8, &self.partition_token)?; + } + if self.seqno != 0 { + os.write_int64(9, self.seqno)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } - pub fn get_request_tag(&self) -> &str { - &self.request_tag + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn clear_request_tag(&mut self) { - self.request_tag.clear(); + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_request_tag(&mut self, v: ::std::string::String) { - self.request_tag = v; + fn new() -> ExecuteSqlRequest { + ExecuteSqlRequest::new() } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_tag(&mut self) -> &mut ::std::string::String { - &mut self.request_tag + fn clear(&mut self) { + self.session.clear(); + self.transaction.clear(); + self.sql.clear(); + self.params.clear(); + self.param_types.clear(); + self.resume_token.clear(); + self.query_mode = ::protobuf::EnumOrUnknown::new(execute_sql_request::QueryMode::NORMAL); + self.partition_token.clear(); + self.seqno = 0; + self.special_fields.clear(); } - // Take field - pub fn take_request_tag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.request_tag, ::std::string::String::new()) + fn default_instance() -> &'static ExecuteSqlRequest { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(ExecuteSqlRequest::new) + } +} + +impl ::protobuf::MessageFull for ExecuteSqlRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExecuteSqlRequest").unwrap()).clone() + } +} + +impl ::std::fmt::Display for ExecuteSqlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ExecuteSqlRequest` +pub mod execute_sql_request { + /// Mode in which the statement must be processed. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.spanner.v1.ExecuteSqlRequest.QueryMode) + pub enum QueryMode { + // @@protoc_insertion_point(enum_value:google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL) + NORMAL = 0, + // @@protoc_insertion_point(enum_value:google.spanner.v1.ExecuteSqlRequest.QueryMode.PLAN) + PLAN = 1, + // @@protoc_insertion_point(enum_value:google.spanner.v1.ExecuteSqlRequest.QueryMode.PROFILE) + PROFILE = 2, } - // string transaction_tag = 3; + impl ::protobuf::Enum for QueryMode { + const NAME: &'static str = "QueryMode"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(QueryMode::NORMAL), + 1 => ::std::option::Option::Some(QueryMode::PLAN), + 2 => ::std::option::Option::Some(QueryMode::PROFILE), + _ => ::std::option::Option::None + } + } + fn from_str(str: &str) -> ::std::option::Option { + match str { + "NORMAL" => ::std::option::Option::Some(QueryMode::NORMAL), + "PLAN" => ::std::option::Option::Some(QueryMode::PLAN), + "PROFILE" => ::std::option::Option::Some(QueryMode::PROFILE), + _ => ::std::option::Option::None + } + } - pub fn get_transaction_tag(&self) -> &str { - &self.transaction_tag + const VALUES: &'static [QueryMode] = &[ + QueryMode::NORMAL, + QueryMode::PLAN, + QueryMode::PROFILE, + ]; } - pub fn clear_transaction_tag(&mut self) { - self.transaction_tag.clear(); + + impl ::protobuf::EnumFull for QueryMode { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("ExecuteSqlRequest.QueryMode").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } - // Param is passed by value, moved - pub fn set_transaction_tag(&mut self, v: ::std::string::String) { - self.transaction_tag = v; + impl ::std::default::Default for QueryMode { + fn default() -> Self { + QueryMode::NORMAL + } } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction_tag(&mut self) -> &mut ::std::string::String { - &mut self.transaction_tag + impl QueryMode { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ExecuteSqlRequest.QueryMode") + } } +} - // Take field - pub fn take_transaction_tag(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.transaction_tag, ::std::string::String::new()) +/// The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. +// @@protoc_insertion_point(message:google.spanner.v1.ExecuteBatchDmlRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExecuteBatchDmlRequest { + // message fields + /// Required. The session in which the DML statements should be performed. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.session) + pub session: ::std::string::String, + /// Required. The transaction to use. Must be a read-write transaction. + /// + /// To protect against replays, single-use transactions are not supported. The + /// caller must either supply an existing transaction ID or begin a new + /// transaction. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.transaction) + pub transaction: ::protobuf::MessageField, + /// Required. The list of statements to execute in this batch. Statements are + /// executed serially, such that the effects of statement `i` are visible to + /// statement `i+1`. Each statement must be a DML statement. Execution stops at + /// the first failed statement; the remaining statements are not executed. + /// + /// Callers must provide at least one statement. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.statements) + pub statements: ::std::vec::Vec, + /// Required. A per-transaction sequence number used to identify this request. + /// This field makes each request idempotent such that if the request is + /// received multiple times, at most one will succeed. + /// + /// The sequence number must be monotonically increasing within the + /// transaction. If a request arrives for the first time with an out-of-order + /// sequence number, the transaction may be aborted. Replays of previously + /// handled requests will yield the same response as the first execution. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.seqno) + pub seqno: i64, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.ExecuteBatchDmlRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ExecuteBatchDmlRequest { + fn default() -> &'a ExecuteBatchDmlRequest { + ::default_instance() + } +} + +impl ExecuteBatchDmlRequest { + pub fn new() -> ExecuteBatchDmlRequest { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &ExecuteBatchDmlRequest| { &m.session }, + |m: &mut ExecuteBatchDmlRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionSelector>( + "transaction", + |m: &ExecuteBatchDmlRequest| { &m.transaction }, + |m: &mut ExecuteBatchDmlRequest| { &mut m.transaction }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "statements", + |m: &ExecuteBatchDmlRequest| { &m.statements }, + |m: &mut ExecuteBatchDmlRequest| { &mut m.statements }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "seqno", + |m: &ExecuteBatchDmlRequest| { &m.seqno }, + |m: &mut ExecuteBatchDmlRequest| { &mut m.seqno }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExecuteBatchDmlRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RequestOptions { +impl ::protobuf::Message for ExecuteBatchDmlRequest { + const NAME: &'static str = "ExecuteBatchDmlRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.priority, 1, &mut self.unknown_fields)? + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.request_tag)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.transaction_tag)?; + 26 => { + self.statements.push(is.read_message()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 32 => { + self.seqno = is.read_int64()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1930,589 +1765,758 @@ impl ::protobuf::Message for RequestOptions { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - if self.priority != RequestOptions_Priority::PRIORITY_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.priority); + if !self.session.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.session); } - if !self.request_tag.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.request_tag); + if let Some(v) = self.transaction.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if !self.transaction_tag.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.transaction_tag); + for value in &self.statements { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if self.seqno != 0 { + my_size += ::protobuf::rt::int64_size(4, self.seqno); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.priority != RequestOptions_Priority::PRIORITY_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.priority))?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.session.is_empty() { + os.write_string(1, &self.session)?; } - if !self.request_tag.is_empty() { - os.write_string(2, &self.request_tag)?; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - if !self.transaction_tag.is_empty() { - os.write_string(3, &self.transaction_tag)?; + for v in &self.statements { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }; + if self.seqno != 0 { + os.write_int64(4, self.seqno)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn new() -> ExecuteBatchDmlRequest { + ExecuteBatchDmlRequest::new() } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) + fn clear(&mut self) { + self.session.clear(); + self.transaction.clear(); + self.statements.clear(); + self.seqno = 0; + self.special_fields.clear(); } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + + fn default_instance() -> &'static ExecuteBatchDmlRequest { + static instance: ExecuteBatchDmlRequest = ExecuteBatchDmlRequest { + session: ::std::string::String::new(), + transaction: ::protobuf::MessageField::none(), + statements: ::std::vec::Vec::new(), + seqno: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() +impl ::protobuf::MessageFull for ExecuteBatchDmlRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExecuteBatchDmlRequest").unwrap()).clone() } +} - fn new() -> RequestOptions { - RequestOptions::new() +impl ::std::fmt::Display for ExecuteBatchDmlRequest { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "priority", - |m: &RequestOptions| { &m.priority }, - |m: &mut RequestOptions| { &mut m.priority }, +impl ::protobuf::reflect::ProtobufValue for ExecuteBatchDmlRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `ExecuteBatchDmlRequest` +pub mod execute_batch_dml_request { + /// A single DML statement. + // @@protoc_insertion_point(message:google.spanner.v1.ExecuteBatchDmlRequest.Statement) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Statement { + // message fields + /// Required. The DML string. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.Statement.sql) + pub sql: ::std::string::String, + /// Parameter names and values that bind to placeholders in the DML string. + /// + /// A parameter placeholder consists of the `@` character followed by the + /// parameter name (for example, `@firstName`). Parameter names can contain + /// letters, numbers, and underscores. + /// + /// Parameters can appear anywhere that a literal value is expected. The + /// same parameter name can be used more than once, for example: + /// + /// `"WHERE id > @msg_id AND id < @msg_id + 100"` + /// + /// It is an error to execute a SQL statement with unbound parameters. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.Statement.params) + pub params: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + /// It is not always possible for Cloud Spanner to infer the right SQL type + /// from a JSON value. For example, values of type `BYTES` and values + /// of type `STRING` both appear in + /// [params][google.spanner.v1.ExecuteBatchDmlRequest.Statement.params] as + /// JSON strings. + /// + /// In these cases, `param_types` can be used to specify the exact + /// SQL type for some or all of the SQL statement parameters. See the + /// definition of [Type][google.spanner.v1.Type] for more information + /// about SQL types. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlRequest.Statement.param_types) + pub param_types: ::std::collections::HashMap<::std::string::String, super::super::type_::Type>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.ExecuteBatchDmlRequest.Statement.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Statement { + fn default() -> &'a Statement { + ::default_instance() + } + } + + impl Statement { + pub fn new() -> Statement { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sql", + |m: &Statement| { &m.sql }, + |m: &mut Statement| { &mut m.sql }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "request_tag", - |m: &RequestOptions| { &m.request_tag }, - |m: &mut RequestOptions| { &mut m.request_tag }, + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "params", + |m: &Statement| { &m.params }, + |m: &mut Statement| { &mut m.params }, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "transaction_tag", - |m: &RequestOptions| { &m.transaction_tag }, - |m: &mut RequestOptions| { &mut m.transaction_tag }, + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "param_types", + |m: &Statement| { &m.param_types }, + |m: &mut Statement| { &mut m.param_types }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RequestOptions", + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExecuteBatchDmlRequest.Statement", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static RequestOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RequestOptions::new) - } -} + impl ::protobuf::Message for Statement { + const NAME: &'static str = "Statement"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.sql = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.params)?; + }, + 26 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.param_types.insert(key, value); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::protobuf::Clear for RequestOptions { - fn clear(&mut self) { - self.priority = RequestOptions_Priority::PRIORITY_UNSPECIFIED; - self.request_tag.clear(); - self.transaction_tag.clear(); - self.unknown_fields.clear(); - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.sql.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.sql); + } + if let Some(v) = self.params.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl ::std::fmt::Debug for RequestOptions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.sql.is_empty() { + os.write_string(1, &self.sql)?; + } + if let Some(v) = self.params.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(26)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -impl ::protobuf::reflect::ProtobufValue for RequestOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum RequestOptions_Priority { - PRIORITY_UNSPECIFIED = 0, - PRIORITY_LOW = 1, - PRIORITY_MEDIUM = 2, - PRIORITY_HIGH = 3, -} + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } -impl ::protobuf::ProtobufEnum for RequestOptions_Priority { - fn value(&self) -> i32 { - *self as i32 - } + fn new() -> Statement { + Statement::new() + } - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(RequestOptions_Priority::PRIORITY_UNSPECIFIED), - 1 => ::std::option::Option::Some(RequestOptions_Priority::PRIORITY_LOW), - 2 => ::std::option::Option::Some(RequestOptions_Priority::PRIORITY_MEDIUM), - 3 => ::std::option::Option::Some(RequestOptions_Priority::PRIORITY_HIGH), - _ => ::std::option::Option::None + fn clear(&mut self) { + self.sql.clear(); + self.params.clear(); + self.param_types.clear(); + self.special_fields.clear(); } - } - fn values() -> &'static [Self] { - static values: &'static [RequestOptions_Priority] = &[ - RequestOptions_Priority::PRIORITY_UNSPECIFIED, - RequestOptions_Priority::PRIORITY_LOW, - RequestOptions_Priority::PRIORITY_MEDIUM, - RequestOptions_Priority::PRIORITY_HIGH, - ]; - values + fn default_instance() -> &'static Statement { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(Statement::new) + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("RequestOptions.Priority", file_descriptor_proto()) - }) + impl ::protobuf::MessageFull for Statement { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ExecuteBatchDmlRequest.Statement").unwrap()).clone() + } } -} - -impl ::std::marker::Copy for RequestOptions_Priority { -} -impl ::std::default::Default for RequestOptions_Priority { - fn default() -> Self { - RequestOptions_Priority::PRIORITY_UNSPECIFIED + impl ::std::fmt::Display for Statement { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } -} -impl ::protobuf::reflect::ProtobufValue for RequestOptions_Priority { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) + impl ::protobuf::reflect::ProtobufValue for Statement { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } } -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteSqlRequest { +// @@protoc_insertion_point(message:google.spanner.v1.ExecuteBatchDmlResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ExecuteBatchDmlResponse { // message fields - pub session: ::std::string::String, - pub transaction: ::protobuf::SingularPtrField, - pub sql: ::std::string::String, - pub params: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub param_types: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>, - pub resume_token: ::std::vec::Vec, - pub query_mode: ExecuteSqlRequest_QueryMode, - pub partition_token: ::std::vec::Vec, - pub seqno: i64, - pub query_options: ::protobuf::SingularPtrField, - pub request_options: ::protobuf::SingularPtrField, - pub data_boost_enabled: bool, + /// One [ResultSet][google.spanner.v1.ResultSet] for each statement in the + /// request that ran successfully, in the same order as the statements in the + /// request. Each [ResultSet][google.spanner.v1.ResultSet] does not contain any + /// rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each + /// [ResultSet][google.spanner.v1.ResultSet] contain the number of rows + /// modified by the statement. + /// + /// Only the first [ResultSet][google.spanner.v1.ResultSet] in the response + /// contains valid [ResultSetMetadata][google.spanner.v1.ResultSetMetadata]. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlResponse.result_sets) + pub result_sets: ::std::vec::Vec, + /// If all DML statements are executed successfully, the status is `OK`. + /// Otherwise, the error status of the first failed statement. + // @@protoc_insertion_point(field:google.spanner.v1.ExecuteBatchDmlResponse.status) + pub status: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.ExecuteBatchDmlResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a ExecuteSqlRequest { - fn default() -> &'a ExecuteSqlRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a ExecuteBatchDmlResponse { + fn default() -> &'a ExecuteBatchDmlResponse { + ::default_instance() } } -impl ExecuteSqlRequest { - pub fn new() -> ExecuteSqlRequest { +impl ExecuteBatchDmlResponse { + pub fn new() -> ExecuteBatchDmlResponse { ::std::default::Default::default() } - // string session = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "result_sets", + |m: &ExecuteBatchDmlResponse| { &m.result_sets }, + |m: &mut ExecuteBatchDmlResponse| { &mut m.result_sets }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::status::Status>( + "status", + |m: &ExecuteBatchDmlResponse| { &m.status }, + |m: &mut ExecuteBatchDmlResponse| { &mut m.status }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ExecuteBatchDmlResponse", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for ExecuteBatchDmlResponse { + const NAME: &'static str = "ExecuteBatchDmlResponse"; - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.result_sets.push(is.read_message()?); + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.status)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.result_sets { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if let Some(v) = self.status.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.result_sets { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if let Some(v) = self.status.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.spanner.v1.TransactionSelector transaction = 2; - + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_transaction(&self) -> &super::transaction::TransactionSelector { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); + + fn new() -> ExecuteBatchDmlResponse { + ExecuteBatchDmlResponse::new() } - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() + fn clear(&mut self) { + self.result_sets.clear(); + self.status.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::TransactionSelector) { - self.transaction = ::protobuf::SingularPtrField::some(v); + fn default_instance() -> &'static ExecuteBatchDmlResponse { + static instance: ExecuteBatchDmlResponse = ExecuteBatchDmlResponse { + result_sets: ::std::vec::Vec::new(), + status: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::TransactionSelector { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() +impl ::protobuf::MessageFull for ExecuteBatchDmlResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ExecuteBatchDmlResponse").unwrap()).clone() } +} - // Take field - pub fn take_transaction(&mut self) -> super::transaction::TransactionSelector { - self.transaction.take().unwrap_or_else(|| super::transaction::TransactionSelector::new()) +impl ::std::fmt::Display for ExecuteBatchDmlResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // string sql = 3; +impl ::protobuf::reflect::ProtobufValue for ExecuteBatchDmlResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// Options for a PartitionQueryRequest and +/// PartitionReadRequest. +// @@protoc_insertion_point(message:google.spanner.v1.PartitionOptions) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PartitionOptions { + // message fields + /// **Note:** This hint is currently ignored by PartitionQuery and + /// PartitionRead requests. + /// + /// The desired data size for each partition generated. The default for this + /// option is currently 1 GiB. This is only a hint. The actual size of each + /// partition may be smaller or larger than this size request. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionOptions.partition_size_bytes) + pub partition_size_bytes: i64, + /// **Note:** This hint is currently ignored by PartitionQuery and + /// PartitionRead requests. + /// + /// The desired maximum number of partitions to return. For example, this may + /// be set to the number of workers available. The default for this option + /// is currently 10,000. The maximum value is currently 200,000. This is only + /// a hint. The actual number of partitions returned may be smaller or larger + /// than this maximum count request. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionOptions.max_partitions) + pub max_partitions: i64, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PartitionOptions.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_sql(&self) -> &str { - &self.sql - } - pub fn clear_sql(&mut self) { - self.sql.clear(); - } - - // Param is passed by value, moved - pub fn set_sql(&mut self, v: ::std::string::String) { - self.sql = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sql(&mut self) -> &mut ::std::string::String { - &mut self.sql +impl<'a> ::std::default::Default for &'a PartitionOptions { + fn default() -> &'a PartitionOptions { + ::default_instance() } +} - // Take field - pub fn take_sql(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sql, ::std::string::String::new()) +impl PartitionOptions { + pub fn new() -> PartitionOptions { + ::std::default::Default::default() } - // .google.protobuf.Struct params = 4; - - - pub fn get_params(&self) -> &::protobuf::well_known_types::Struct { - self.params.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_params(&mut self) { - self.params.clear(); + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "partition_size_bytes", + |m: &PartitionOptions| { &m.partition_size_bytes }, + |m: &mut PartitionOptions| { &mut m.partition_size_bytes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "max_partitions", + |m: &PartitionOptions| { &m.max_partitions }, + |m: &mut PartitionOptions| { &mut m.max_partitions }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartitionOptions", + fields, + oneofs, + ) } +} - pub fn has_params(&self) -> bool { - self.params.is_some() - } +impl ::protobuf::Message for PartitionOptions { + const NAME: &'static str = "PartitionOptions"; - // Param is passed by value, moved - pub fn set_params(&mut self, v: ::protobuf::well_known_types::Struct) { - self.params = ::protobuf::SingularPtrField::some(v); + fn is_initialized(&self) -> bool { + true } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_params(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.params.is_none() { - self.params.set_default(); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.partition_size_bytes = is.read_int64()?; + }, + 16 => { + self.max_partitions = is.read_int64()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } - self.params.as_mut().unwrap() - } - - // Take field - pub fn take_params(&mut self) -> ::protobuf::well_known_types::Struct { - self.params.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // repeated .google.spanner.v1.ExecuteSqlRequest.ParamTypesEntry param_types = 5; - - - pub fn get_param_types(&self) -> &::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &self.param_types - } - pub fn clear_param_types(&mut self) { - self.param_types.clear(); - } - - // Param is passed by value, moved - pub fn set_param_types(&mut self, v: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>) { - self.param_types = v; - } - - // Mutable pointer to the field. - pub fn mut_param_types(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &mut self.param_types - } - - // Take field - pub fn take_param_types(&mut self) -> ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - ::std::mem::replace(&mut self.param_types, ::std::collections::HashMap::new()) - } - - // bytes resume_token = 6; - - - pub fn get_resume_token(&self) -> &[u8] { - &self.resume_token - } - pub fn clear_resume_token(&mut self) { - self.resume_token.clear(); - } - - // Param is passed by value, moved - pub fn set_resume_token(&mut self, v: ::std::vec::Vec) { - self.resume_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resume_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.resume_token - } - - // Take field - pub fn take_resume_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.resume_token, ::std::vec::Vec::new()) - } - - // .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; - - - pub fn get_query_mode(&self) -> ExecuteSqlRequest_QueryMode { - self.query_mode - } - pub fn clear_query_mode(&mut self) { - self.query_mode = ExecuteSqlRequest_QueryMode::NORMAL; - } - - // Param is passed by value, moved - pub fn set_query_mode(&mut self, v: ExecuteSqlRequest_QueryMode) { - self.query_mode = v; - } - - // bytes partition_token = 8; - - - pub fn get_partition_token(&self) -> &[u8] { - &self.partition_token - } - pub fn clear_partition_token(&mut self) { - self.partition_token.clear(); - } - - // Param is passed by value, moved - pub fn set_partition_token(&mut self, v: ::std::vec::Vec) { - self.partition_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.partition_token - } - - // Take field - pub fn take_partition_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.partition_token, ::std::vec::Vec::new()) + ::std::result::Result::Ok(()) } - // int64 seqno = 9; - - - pub fn get_seqno(&self) -> i64 { - self.seqno - } - pub fn clear_seqno(&mut self) { - self.seqno = 0; + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.partition_size_bytes != 0 { + my_size += ::protobuf::rt::int64_size(1, self.partition_size_bytes); + } + if self.max_partitions != 0 { + my_size += ::protobuf::rt::int64_size(2, self.max_partitions); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_seqno(&mut self, v: i64) { - self.seqno = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.partition_size_bytes != 0 { + os.write_int64(1, self.partition_size_bytes)?; + } + if self.max_partitions != 0 { + os.write_int64(2, self.max_partitions)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // .google.spanner.v1.ExecuteSqlRequest.QueryOptions query_options = 10; - - - pub fn get_query_options(&self) -> &ExecuteSqlRequest_QueryOptions { - self.query_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_query_options(&mut self) { - self.query_options.clear(); + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - pub fn has_query_options(&self) -> bool { - self.query_options.is_some() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // Param is passed by value, moved - pub fn set_query_options(&mut self, v: ExecuteSqlRequest_QueryOptions) { - self.query_options = ::protobuf::SingularPtrField::some(v); + fn new() -> PartitionOptions { + PartitionOptions::new() } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_query_options(&mut self) -> &mut ExecuteSqlRequest_QueryOptions { - if self.query_options.is_none() { - self.query_options.set_default(); - } - self.query_options.as_mut().unwrap() + fn clear(&mut self) { + self.partition_size_bytes = 0; + self.max_partitions = 0; + self.special_fields.clear(); } - // Take field - pub fn take_query_options(&mut self) -> ExecuteSqlRequest_QueryOptions { - self.query_options.take().unwrap_or_else(|| ExecuteSqlRequest_QueryOptions::new()) + fn default_instance() -> &'static PartitionOptions { + static instance: PartitionOptions = PartitionOptions { + partition_size_bytes: 0, + max_partitions: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // .google.spanner.v1.RequestOptions request_options = 11; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); +impl ::protobuf::MessageFull for PartitionOptions { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartitionOptions").unwrap()).clone() } +} - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() +impl ::std::fmt::Display for PartitionOptions { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); - } +impl ::protobuf::reflect::ProtobufValue for PartitionOptions { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); - } - self.request_options.as_mut().unwrap() - } +/// The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] +// @@protoc_insertion_point(message:google.spanner.v1.PartitionQueryRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PartitionQueryRequest { + // message fields + /// Required. The session used to create the partitions. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.session) + pub session: ::std::string::String, + /// Read only snapshot transactions are supported, read/write and single use + /// transactions are not. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.transaction) + pub transaction: ::protobuf::MessageField, + /// Required. The query request to generate partitions for. The request will + /// fail if the query is not root partitionable. The query plan of a root + /// partitionable query has a single distributed union operator. A distributed + /// union operator conceptually divides one or more tables into multiple + /// splits, remotely evaluates a subquery independently on each split, and + /// then unions all results. + /// + /// This must not contain DML commands, such as INSERT, UPDATE, or + /// DELETE. Use + /// [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] with a + /// PartitionedDml transaction for large, partition-friendly DML operations. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.sql) + pub sql: ::std::string::String, + /// 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. + /// + /// Parameters can appear anywhere that a literal value is expected. The same + /// parameter name can be used more than once, for example: + /// + /// `"WHERE id > @msg_id AND id < @msg_id + 100"` + /// + /// It is an error to execute a SQL statement with unbound parameters. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.params) + pub params: ::protobuf::MessageField<::protobuf::well_known_types::struct_::Struct>, + /// It is not always possible for Cloud Spanner to infer the right SQL type + /// from a JSON value. For example, values of type `BYTES` and values + /// of type `STRING` both appear in + /// [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings. + /// + /// In these cases, `param_types` can be used to specify the exact + /// SQL type for some or all of the SQL query parameters. See the + /// definition of [Type][google.spanner.v1.Type] for more information + /// about SQL types. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.param_types) + pub param_types: ::std::collections::HashMap<::std::string::String, super::type_::Type>, + /// Additional options that affect how many partitions are created. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionQueryRequest.partition_options) + pub partition_options: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PartitionQueryRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) +impl<'a> ::std::default::Default for &'a PartitionQueryRequest { + fn default() -> &'a PartitionQueryRequest { + ::default_instance() } +} - // bool data_boost_enabled = 16; - - - pub fn get_data_boost_enabled(&self) -> bool { - self.data_boost_enabled - } - pub fn clear_data_boost_enabled(&mut self) { - self.data_boost_enabled = false; +impl PartitionQueryRequest { + pub fn new() -> PartitionQueryRequest { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_data_boost_enabled(&mut self, v: bool) { - self.data_boost_enabled = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &PartitionQueryRequest| { &m.session }, + |m: &mut PartitionQueryRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionSelector>( + "transaction", + |m: &PartitionQueryRequest| { &m.transaction }, + |m: &mut PartitionQueryRequest| { &mut m.transaction }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sql", + |m: &PartitionQueryRequest| { &m.sql }, + |m: &mut PartitionQueryRequest| { &mut m.sql }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::struct_::Struct>( + "params", + |m: &PartitionQueryRequest| { &m.params }, + |m: &mut PartitionQueryRequest| { &mut m.params }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "param_types", + |m: &PartitionQueryRequest| { &m.param_types }, + |m: &mut PartitionQueryRequest| { &mut m.param_types }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PartitionOptions>( + "partition_options", + |m: &PartitionQueryRequest| { &m.partition_options }, + |m: &mut PartitionQueryRequest| { &mut m.partition_options }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartitionQueryRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for ExecuteSqlRequest { +impl ::protobuf::Message for PartitionQueryRequest { + const NAME: &'static str = "PartitionQueryRequest"; + fn is_initialized(&self) -> bool { - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.query_options { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sql)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.params)?; - }, - 5 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.param_types)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.resume_token)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; }, - 7 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.query_mode, 7, &mut self.unknown_fields)? + 26 => { + self.sql = is.read_string()?; }, - 8 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.partition_token)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.params)?; }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + 42 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; } - let tmp = is.read_int64()?; - self.seqno = tmp; + is.pop_limit(old_limit); + self.param_types.insert(key, value); }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.query_options)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; - }, - 16 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.data_boost_enabled = tmp; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.partition_options)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -2521,3510 +2525,250 @@ impl ::protobuf::Message for ExecuteSqlRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.session.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.session); } - if let Some(ref v) = self.transaction.as_ref() { + if let Some(v) = self.transaction.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if !self.sql.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.sql); } - if let Some(ref v) = self.params.as_ref() { + if let Some(v) = self.params.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.param_types); - if !self.resume_token.is_empty() { - my_size += ::protobuf::rt::bytes_size(6, &self.resume_token); - } - if self.query_mode != ExecuteSqlRequest_QueryMode::NORMAL { - my_size += ::protobuf::rt::enum_size(7, self.query_mode); - } - if !self.partition_token.is_empty() { - my_size += ::protobuf::rt::bytes_size(8, &self.partition_token); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if self.seqno != 0 { - my_size += ::protobuf::rt::value_size(9, self.seqno, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.query_options.as_ref() { + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.request_options.as_ref() { + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if let Some(v) = self.partition_options.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if self.data_boost_enabled != false { - my_size += 3; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.session.is_empty() { os.write_string(1, &self.session)?; } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if !self.sql.is_empty() { os.write_string(3, &self.sql)?; } - if let Some(ref v) = self.params.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.param_types, os)?; - if !self.resume_token.is_empty() { - os.write_bytes(6, &self.resume_token)?; - } - if self.query_mode != ExecuteSqlRequest_QueryMode::NORMAL { - os.write_enum(7, ::protobuf::ProtobufEnum::value(&self.query_mode))?; - } - if !self.partition_token.is_empty() { - os.write_bytes(8, &self.partition_token)?; - } - if self.seqno != 0 { - os.write_int64(9, self.seqno)?; - } - if let Some(ref v) = self.query_options.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.data_boost_enabled != false { - os.write_bool(16, self.data_boost_enabled)?; + if let Some(v) = self.params.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + for (k, v) in &self.param_types { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(42)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + if let Some(v) = self.partition_options.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecuteSqlRequest { - ExecuteSqlRequest::new() + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &ExecuteSqlRequest| { &m.session }, - |m: &mut ExecuteSqlRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &ExecuteSqlRequest| { &m.transaction }, - |m: &mut ExecuteSqlRequest| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sql", - |m: &ExecuteSqlRequest| { &m.sql }, - |m: &mut ExecuteSqlRequest| { &mut m.sql }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "params", - |m: &ExecuteSqlRequest| { &m.params }, - |m: &mut ExecuteSqlRequest| { &mut m.params }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "param_types", - |m: &ExecuteSqlRequest| { &m.param_types }, - |m: &mut ExecuteSqlRequest| { &mut m.param_types }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "resume_token", - |m: &ExecuteSqlRequest| { &m.resume_token }, - |m: &mut ExecuteSqlRequest| { &mut m.resume_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "query_mode", - |m: &ExecuteSqlRequest| { &m.query_mode }, - |m: &mut ExecuteSqlRequest| { &mut m.query_mode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "partition_token", - |m: &ExecuteSqlRequest| { &m.partition_token }, - |m: &mut ExecuteSqlRequest| { &mut m.partition_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "seqno", - |m: &ExecuteSqlRequest| { &m.seqno }, - |m: &mut ExecuteSqlRequest| { &mut m.seqno }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "query_options", - |m: &ExecuteSqlRequest| { &m.query_options }, - |m: &mut ExecuteSqlRequest| { &mut m.query_options }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &ExecuteSqlRequest| { &m.request_options }, - |m: &mut ExecuteSqlRequest| { &mut m.request_options }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "data_boost_enabled", - |m: &ExecuteSqlRequest| { &m.data_boost_enabled }, - |m: &mut ExecuteSqlRequest| { &mut m.data_boost_enabled }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecuteSqlRequest", - fields, - file_descriptor_proto() - ) - }) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn default_instance() -> &'static ExecuteSqlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecuteSqlRequest::new) + fn new() -> PartitionQueryRequest { + PartitionQueryRequest::new() } -} -impl ::protobuf::Clear for ExecuteSqlRequest { fn clear(&mut self) { self.session.clear(); self.transaction.clear(); self.sql.clear(); self.params.clear(); self.param_types.clear(); - self.resume_token.clear(); - self.query_mode = ExecuteSqlRequest_QueryMode::NORMAL; - self.partition_token.clear(); - self.seqno = 0; - self.query_options.clear(); - self.request_options.clear(); - self.data_boost_enabled = false; - self.unknown_fields.clear(); + self.partition_options.clear(); + self.special_fields.clear(); } -} -impl ::std::fmt::Debug for ExecuteSqlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + fn default_instance() -> &'static PartitionQueryRequest { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(PartitionQueryRequest::new) } } -impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteSqlRequest_QueryOptions { - // message fields - pub optimizer_version: ::std::string::String, - pub optimizer_statistics_package: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecuteSqlRequest_QueryOptions { - fn default() -> &'a ExecuteSqlRequest_QueryOptions { - ::default_instance() - } -} - -impl ExecuteSqlRequest_QueryOptions { - pub fn new() -> ExecuteSqlRequest_QueryOptions { - ::std::default::Default::default() - } - - // string optimizer_version = 1; - - - pub fn get_optimizer_version(&self) -> &str { - &self.optimizer_version - } - pub fn clear_optimizer_version(&mut self) { - self.optimizer_version.clear(); - } - - // Param is passed by value, moved - pub fn set_optimizer_version(&mut self, v: ::std::string::String) { - self.optimizer_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_optimizer_version(&mut self) -> &mut ::std::string::String { - &mut self.optimizer_version - } - - // Take field - pub fn take_optimizer_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.optimizer_version, ::std::string::String::new()) - } - - // string optimizer_statistics_package = 2; - - - pub fn get_optimizer_statistics_package(&self) -> &str { - &self.optimizer_statistics_package - } - pub fn clear_optimizer_statistics_package(&mut self) { - self.optimizer_statistics_package.clear(); - } - - // Param is passed by value, moved - pub fn set_optimizer_statistics_package(&mut self, v: ::std::string::String) { - self.optimizer_statistics_package = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_optimizer_statistics_package(&mut self) -> &mut ::std::string::String { - &mut self.optimizer_statistics_package - } - - // Take field - pub fn take_optimizer_statistics_package(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.optimizer_statistics_package, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ExecuteSqlRequest_QueryOptions { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimizer_version)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.optimizer_statistics_package)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.optimizer_version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.optimizer_version); - } - if !self.optimizer_statistics_package.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.optimizer_statistics_package); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.optimizer_version.is_empty() { - os.write_string(1, &self.optimizer_version)?; - } - if !self.optimizer_statistics_package.is_empty() { - os.write_string(2, &self.optimizer_statistics_package)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecuteSqlRequest_QueryOptions { - ExecuteSqlRequest_QueryOptions::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "optimizer_version", - |m: &ExecuteSqlRequest_QueryOptions| { &m.optimizer_version }, - |m: &mut ExecuteSqlRequest_QueryOptions| { &mut m.optimizer_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "optimizer_statistics_package", - |m: &ExecuteSqlRequest_QueryOptions| { &m.optimizer_statistics_package }, - |m: &mut ExecuteSqlRequest_QueryOptions| { &mut m.optimizer_statistics_package }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecuteSqlRequest.QueryOptions", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecuteSqlRequest_QueryOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecuteSqlRequest_QueryOptions::new) - } -} - -impl ::protobuf::Clear for ExecuteSqlRequest_QueryOptions { - fn clear(&mut self) { - self.optimizer_version.clear(); - self.optimizer_statistics_package.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecuteSqlRequest_QueryOptions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest_QueryOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum ExecuteSqlRequest_QueryMode { - NORMAL = 0, - PLAN = 1, - PROFILE = 2, -} - -impl ::protobuf::ProtobufEnum for ExecuteSqlRequest_QueryMode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(ExecuteSqlRequest_QueryMode::NORMAL), - 1 => ::std::option::Option::Some(ExecuteSqlRequest_QueryMode::PLAN), - 2 => ::std::option::Option::Some(ExecuteSqlRequest_QueryMode::PROFILE), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [ExecuteSqlRequest_QueryMode] = &[ - ExecuteSqlRequest_QueryMode::NORMAL, - ExecuteSqlRequest_QueryMode::PLAN, - ExecuteSqlRequest_QueryMode::PROFILE, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("ExecuteSqlRequest.QueryMode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for ExecuteSqlRequest_QueryMode { -} - -impl ::std::default::Default for ExecuteSqlRequest_QueryMode { - fn default() -> Self { - ExecuteSqlRequest_QueryMode::NORMAL - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecuteSqlRequest_QueryMode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteBatchDmlRequest { - // message fields - pub session: ::std::string::String, - pub transaction: ::protobuf::SingularPtrField, - pub statements: ::protobuf::RepeatedField, - pub seqno: i64, - pub request_options: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecuteBatchDmlRequest { - fn default() -> &'a ExecuteBatchDmlRequest { - ::default_instance() - } -} - -impl ExecuteBatchDmlRequest { - pub fn new() -> ExecuteBatchDmlRequest { - ::std::default::Default::default() - } - - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // .google.spanner.v1.TransactionSelector transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::TransactionSelector { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::TransactionSelector) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::TransactionSelector { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::TransactionSelector { - self.transaction.take().unwrap_or_else(|| super::transaction::TransactionSelector::new()) - } - - // repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement statements = 3; - - - pub fn get_statements(&self) -> &[ExecuteBatchDmlRequest_Statement] { - &self.statements - } - pub fn clear_statements(&mut self) { - self.statements.clear(); - } - - // Param is passed by value, moved - pub fn set_statements(&mut self, v: ::protobuf::RepeatedField) { - self.statements = v; - } - - // Mutable pointer to the field. - pub fn mut_statements(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.statements - } - - // Take field - pub fn take_statements(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.statements, ::protobuf::RepeatedField::new()) - } - - // int64 seqno = 4; - - - pub fn get_seqno(&self) -> i64 { - self.seqno - } - pub fn clear_seqno(&mut self) { - self.seqno = 0; - } - - // Param is passed by value, moved - pub fn set_seqno(&mut self, v: i64) { - self.seqno = v; - } - - // .google.spanner.v1.RequestOptions request_options = 5; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); - } - - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() - } - - // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); - } - self.request_options.as_mut().unwrap() - } - - // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) - } -} - -impl ::protobuf::Message for ExecuteBatchDmlRequest { - fn is_initialized(&self) -> bool { - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.statements { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.statements)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.seqno = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.session.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.session); - } - if let Some(ref v) = self.transaction.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.statements { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.seqno != 0 { - my_size += ::protobuf::rt::value_size(4, self.seqno, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.request_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.session.is_empty() { - os.write_string(1, &self.session)?; - } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.statements { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.seqno != 0 { - os.write_int64(4, self.seqno)?; - } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecuteBatchDmlRequest { - ExecuteBatchDmlRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &ExecuteBatchDmlRequest| { &m.session }, - |m: &mut ExecuteBatchDmlRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &ExecuteBatchDmlRequest| { &m.transaction }, - |m: &mut ExecuteBatchDmlRequest| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "statements", - |m: &ExecuteBatchDmlRequest| { &m.statements }, - |m: &mut ExecuteBatchDmlRequest| { &mut m.statements }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "seqno", - |m: &ExecuteBatchDmlRequest| { &m.seqno }, - |m: &mut ExecuteBatchDmlRequest| { &mut m.seqno }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &ExecuteBatchDmlRequest| { &m.request_options }, - |m: &mut ExecuteBatchDmlRequest| { &mut m.request_options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecuteBatchDmlRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecuteBatchDmlRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecuteBatchDmlRequest::new) - } -} - -impl ::protobuf::Clear for ExecuteBatchDmlRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction.clear(); - self.statements.clear(); - self.seqno = 0; - self.request_options.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecuteBatchDmlRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecuteBatchDmlRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteBatchDmlRequest_Statement { - // message fields - pub sql: ::std::string::String, - pub params: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub param_types: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecuteBatchDmlRequest_Statement { - fn default() -> &'a ExecuteBatchDmlRequest_Statement { - ::default_instance() - } -} - -impl ExecuteBatchDmlRequest_Statement { - pub fn new() -> ExecuteBatchDmlRequest_Statement { - ::std::default::Default::default() - } - - // string sql = 1; - - - pub fn get_sql(&self) -> &str { - &self.sql - } - pub fn clear_sql(&mut self) { - self.sql.clear(); - } - - // Param is passed by value, moved - pub fn set_sql(&mut self, v: ::std::string::String) { - self.sql = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sql(&mut self) -> &mut ::std::string::String { - &mut self.sql - } - - // Take field - pub fn take_sql(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sql, ::std::string::String::new()) - } - - // .google.protobuf.Struct params = 2; - - - pub fn get_params(&self) -> &::protobuf::well_known_types::Struct { - self.params.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_params(&mut self) { - self.params.clear(); - } - - pub fn has_params(&self) -> bool { - self.params.is_some() - } - - // Param is passed by value, moved - pub fn set_params(&mut self, v: ::protobuf::well_known_types::Struct) { - self.params = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_params(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.params.is_none() { - self.params.set_default(); - } - self.params.as_mut().unwrap() - } - - // Take field - pub fn take_params(&mut self) -> ::protobuf::well_known_types::Struct { - self.params.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // repeated .google.spanner.v1.ExecuteBatchDmlRequest.Statement.ParamTypesEntry param_types = 3; - - - pub fn get_param_types(&self) -> &::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &self.param_types - } - pub fn clear_param_types(&mut self) { - self.param_types.clear(); - } - - // Param is passed by value, moved - pub fn set_param_types(&mut self, v: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>) { - self.param_types = v; - } - - // Mutable pointer to the field. - pub fn mut_param_types(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &mut self.param_types - } - - // Take field - pub fn take_param_types(&mut self) -> ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - ::std::mem::replace(&mut self.param_types, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for ExecuteBatchDmlRequest_Statement { - fn is_initialized(&self) -> bool { - for v in &self.params { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sql)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.params)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.param_types)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.sql.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.sql); - } - if let Some(ref v) = self.params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.param_types); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.sql.is_empty() { - os.write_string(1, &self.sql)?; - } - if let Some(ref v) = self.params.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(3, &self.param_types, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecuteBatchDmlRequest_Statement { - ExecuteBatchDmlRequest_Statement::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sql", - |m: &ExecuteBatchDmlRequest_Statement| { &m.sql }, - |m: &mut ExecuteBatchDmlRequest_Statement| { &mut m.sql }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "params", - |m: &ExecuteBatchDmlRequest_Statement| { &m.params }, - |m: &mut ExecuteBatchDmlRequest_Statement| { &mut m.params }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "param_types", - |m: &ExecuteBatchDmlRequest_Statement| { &m.param_types }, - |m: &mut ExecuteBatchDmlRequest_Statement| { &mut m.param_types }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecuteBatchDmlRequest.Statement", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecuteBatchDmlRequest_Statement { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecuteBatchDmlRequest_Statement::new) - } -} - -impl ::protobuf::Clear for ExecuteBatchDmlRequest_Statement { - fn clear(&mut self) { - self.sql.clear(); - self.params.clear(); - self.param_types.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecuteBatchDmlRequest_Statement { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecuteBatchDmlRequest_Statement { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecuteBatchDmlResponse { - // message fields - pub result_sets: ::protobuf::RepeatedField, - pub status: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecuteBatchDmlResponse { - fn default() -> &'a ExecuteBatchDmlResponse { - ::default_instance() - } -} - -impl ExecuteBatchDmlResponse { - pub fn new() -> ExecuteBatchDmlResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.v1.ResultSet result_sets = 1; - - - pub fn get_result_sets(&self) -> &[super::result_set::ResultSet] { - &self.result_sets - } - pub fn clear_result_sets(&mut self) { - self.result_sets.clear(); - } - - // Param is passed by value, moved - pub fn set_result_sets(&mut self, v: ::protobuf::RepeatedField) { - self.result_sets = v; - } - - // Mutable pointer to the field. - pub fn mut_result_sets(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.result_sets - } - - // Take field - pub fn take_result_sets(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.result_sets, ::protobuf::RepeatedField::new()) - } - - // .google.rpc.Status status = 2; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) - } -} - -impl ::protobuf::Message for ExecuteBatchDmlResponse { - fn is_initialized(&self) -> bool { - for v in &self.result_sets { - if !v.is_initialized() { - return false; - } - }; - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.result_sets)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.result_sets { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.result_sets { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.status.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecuteBatchDmlResponse { - ExecuteBatchDmlResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "result_sets", - |m: &ExecuteBatchDmlResponse| { &m.result_sets }, - |m: &mut ExecuteBatchDmlResponse| { &mut m.result_sets }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &ExecuteBatchDmlResponse| { &m.status }, - |m: &mut ExecuteBatchDmlResponse| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecuteBatchDmlResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ExecuteBatchDmlResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ExecuteBatchDmlResponse::new) - } -} - -impl ::protobuf::Clear for ExecuteBatchDmlResponse { - fn clear(&mut self) { - self.result_sets.clear(); - self.status.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecuteBatchDmlResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecuteBatchDmlResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PartitionOptions { - // message fields - pub partition_size_bytes: i64, - pub max_partitions: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PartitionOptions { - fn default() -> &'a PartitionOptions { - ::default_instance() - } -} - -impl PartitionOptions { - pub fn new() -> PartitionOptions { - ::std::default::Default::default() - } - - // int64 partition_size_bytes = 1; - - - pub fn get_partition_size_bytes(&self) -> i64 { - self.partition_size_bytes - } - pub fn clear_partition_size_bytes(&mut self) { - self.partition_size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_partition_size_bytes(&mut self, v: i64) { - self.partition_size_bytes = v; - } - - // int64 max_partitions = 2; - - - pub fn get_max_partitions(&self) -> i64 { - self.max_partitions - } - pub fn clear_max_partitions(&mut self) { - self.max_partitions = 0; - } - - // Param is passed by value, moved - pub fn set_max_partitions(&mut self, v: i64) { - self.max_partitions = v; - } -} - -impl ::protobuf::Message for PartitionOptions { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.partition_size_bytes = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.max_partitions = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.partition_size_bytes != 0 { - my_size += ::protobuf::rt::value_size(1, self.partition_size_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.max_partitions != 0 { - my_size += ::protobuf::rt::value_size(2, self.max_partitions, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.partition_size_bytes != 0 { - os.write_int64(1, self.partition_size_bytes)?; - } - if self.max_partitions != 0 { - os.write_int64(2, self.max_partitions)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartitionOptions { - PartitionOptions::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "partition_size_bytes", - |m: &PartitionOptions| { &m.partition_size_bytes }, - |m: &mut PartitionOptions| { &mut m.partition_size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "max_partitions", - |m: &PartitionOptions| { &m.max_partitions }, - |m: &mut PartitionOptions| { &mut m.max_partitions }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartitionOptions", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartitionOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartitionOptions::new) - } -} - -impl ::protobuf::Clear for PartitionOptions { - fn clear(&mut self) { - self.partition_size_bytes = 0; - self.max_partitions = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartitionOptions { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PartitionQueryRequest { - // message fields - pub session: ::std::string::String, - pub transaction: ::protobuf::SingularPtrField, - pub sql: ::std::string::String, - pub params: ::protobuf::SingularPtrField<::protobuf::well_known_types::Struct>, - pub param_types: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>, - pub partition_options: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PartitionQueryRequest { - fn default() -> &'a PartitionQueryRequest { - ::default_instance() - } -} - -impl PartitionQueryRequest { - pub fn new() -> PartitionQueryRequest { - ::std::default::Default::default() - } - - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // .google.spanner.v1.TransactionSelector transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::TransactionSelector { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::TransactionSelector) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::TransactionSelector { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::TransactionSelector { - self.transaction.take().unwrap_or_else(|| super::transaction::TransactionSelector::new()) - } - - // string sql = 3; - - - pub fn get_sql(&self) -> &str { - &self.sql - } - pub fn clear_sql(&mut self) { - self.sql.clear(); - } - - // Param is passed by value, moved - pub fn set_sql(&mut self, v: ::std::string::String) { - self.sql = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sql(&mut self) -> &mut ::std::string::String { - &mut self.sql - } - - // Take field - pub fn take_sql(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sql, ::std::string::String::new()) - } - - // .google.protobuf.Struct params = 4; - - - pub fn get_params(&self) -> &::protobuf::well_known_types::Struct { - self.params.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Struct as ::protobuf::Message>::default_instance()) - } - pub fn clear_params(&mut self) { - self.params.clear(); - } - - pub fn has_params(&self) -> bool { - self.params.is_some() - } - - // Param is passed by value, moved - pub fn set_params(&mut self, v: ::protobuf::well_known_types::Struct) { - self.params = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_params(&mut self) -> &mut ::protobuf::well_known_types::Struct { - if self.params.is_none() { - self.params.set_default(); - } - self.params.as_mut().unwrap() - } - - // Take field - pub fn take_params(&mut self) -> ::protobuf::well_known_types::Struct { - self.params.take().unwrap_or_else(|| ::protobuf::well_known_types::Struct::new()) - } - - // repeated .google.spanner.v1.PartitionQueryRequest.ParamTypesEntry param_types = 5; - - - pub fn get_param_types(&self) -> &::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &self.param_types - } - pub fn clear_param_types(&mut self) { - self.param_types.clear(); - } - - // Param is passed by value, moved - pub fn set_param_types(&mut self, v: ::std::collections::HashMap<::std::string::String, super::type_pb::Type>) { - self.param_types = v; - } - - // Mutable pointer to the field. - pub fn mut_param_types(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - &mut self.param_types - } - - // Take field - pub fn take_param_types(&mut self) -> ::std::collections::HashMap<::std::string::String, super::type_pb::Type> { - ::std::mem::replace(&mut self.param_types, ::std::collections::HashMap::new()) - } - - // .google.spanner.v1.PartitionOptions partition_options = 6; - - - pub fn get_partition_options(&self) -> &PartitionOptions { - self.partition_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_partition_options(&mut self) { - self.partition_options.clear(); - } - - pub fn has_partition_options(&self) -> bool { - self.partition_options.is_some() - } - - // Param is passed by value, moved - pub fn set_partition_options(&mut self, v: PartitionOptions) { - self.partition_options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_options(&mut self) -> &mut PartitionOptions { - if self.partition_options.is_none() { - self.partition_options.set_default(); - } - self.partition_options.as_mut().unwrap() - } - - // Take field - pub fn take_partition_options(&mut self) -> PartitionOptions { - self.partition_options.take().unwrap_or_else(|| PartitionOptions::new()) - } -} - -impl ::protobuf::Message for PartitionQueryRequest { - fn is_initialized(&self) -> bool { - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.params { - if !v.is_initialized() { - return false; - } - }; - for v in &self.partition_options { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sql)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.params)?; - }, - 5 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.param_types)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition_options)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.session.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.session); - } - if let Some(ref v) = self.transaction.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.sql.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.sql); - } - if let Some(ref v) = self.params.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.param_types); - if let Some(ref v) = self.partition_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.session.is_empty() { - os.write_string(1, &self.session)?; - } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.sql.is_empty() { - os.write_string(3, &self.sql)?; - } - if let Some(ref v) = self.params.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.param_types, os)?; - if let Some(ref v) = self.partition_options.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartitionQueryRequest { - PartitionQueryRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &PartitionQueryRequest| { &m.session }, - |m: &mut PartitionQueryRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &PartitionQueryRequest| { &m.transaction }, - |m: &mut PartitionQueryRequest| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sql", - |m: &PartitionQueryRequest| { &m.sql }, - |m: &mut PartitionQueryRequest| { &mut m.sql }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Struct>>( - "params", - |m: &PartitionQueryRequest| { &m.params }, - |m: &mut PartitionQueryRequest| { &mut m.params }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "param_types", - |m: &PartitionQueryRequest| { &m.param_types }, - |m: &mut PartitionQueryRequest| { &mut m.param_types }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition_options", - |m: &PartitionQueryRequest| { &m.partition_options }, - |m: &mut PartitionQueryRequest| { &mut m.partition_options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartitionQueryRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartitionQueryRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartitionQueryRequest::new) - } -} - -impl ::protobuf::Clear for PartitionQueryRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction.clear(); - self.sql.clear(); - self.params.clear(); - self.param_types.clear(); - self.partition_options.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartitionQueryRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionQueryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PartitionReadRequest { - // message fields - pub session: ::std::string::String, - pub transaction: ::protobuf::SingularPtrField, - pub table: ::std::string::String, - pub index: ::std::string::String, - pub columns: ::protobuf::RepeatedField<::std::string::String>, - pub key_set: ::protobuf::SingularPtrField, - pub partition_options: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PartitionReadRequest { - fn default() -> &'a PartitionReadRequest { - ::default_instance() - } -} - -impl PartitionReadRequest { - pub fn new() -> PartitionReadRequest { - ::std::default::Default::default() - } - - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // .google.spanner.v1.TransactionSelector transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::TransactionSelector { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::TransactionSelector) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::TransactionSelector { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::TransactionSelector { - self.transaction.take().unwrap_or_else(|| super::transaction::TransactionSelector::new()) - } - - // string table = 3; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // string index = 4; - - - pub fn get_index(&self) -> &str { - &self.index - } - pub fn clear_index(&mut self) { - self.index.clear(); - } - - // Param is passed by value, moved - pub fn set_index(&mut self, v: ::std::string::String) { - self.index = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_index(&mut self) -> &mut ::std::string::String { - &mut self.index - } - - // Take field - pub fn take_index(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.index, ::std::string::String::new()) - } - - // repeated string columns = 5; - - - pub fn get_columns(&self) -> &[::std::string::String] { - &self.columns - } - pub fn clear_columns(&mut self) { - self.columns.clear(); - } - - // Param is passed by value, moved - pub fn set_columns(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.columns = v; - } - - // Mutable pointer to the field. - pub fn mut_columns(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.columns - } - - // Take field - pub fn take_columns(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.columns, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.v1.KeySet key_set = 6; - - - pub fn get_key_set(&self) -> &super::keys::KeySet { - self.key_set.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_key_set(&mut self) { - self.key_set.clear(); - } - - pub fn has_key_set(&self) -> bool { - self.key_set.is_some() - } - - // Param is passed by value, moved - pub fn set_key_set(&mut self, v: super::keys::KeySet) { - self.key_set = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key_set(&mut self) -> &mut super::keys::KeySet { - if self.key_set.is_none() { - self.key_set.set_default(); - } - self.key_set.as_mut().unwrap() - } - - // Take field - pub fn take_key_set(&mut self) -> super::keys::KeySet { - self.key_set.take().unwrap_or_else(|| super::keys::KeySet::new()) - } - - // .google.spanner.v1.PartitionOptions partition_options = 9; - - - pub fn get_partition_options(&self) -> &PartitionOptions { - self.partition_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_partition_options(&mut self) { - self.partition_options.clear(); - } - - pub fn has_partition_options(&self) -> bool { - self.partition_options.is_some() - } - - // Param is passed by value, moved - pub fn set_partition_options(&mut self, v: PartitionOptions) { - self.partition_options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_options(&mut self) -> &mut PartitionOptions { - if self.partition_options.is_none() { - self.partition_options.set_default(); - } - self.partition_options.as_mut().unwrap() - } - - // Take field - pub fn take_partition_options(&mut self) -> PartitionOptions { - self.partition_options.take().unwrap_or_else(|| PartitionOptions::new()) - } -} - -impl ::protobuf::Message for PartitionReadRequest { - fn is_initialized(&self) -> bool { - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.key_set { - if !v.is_initialized() { - return false; - } - }; - for v in &self.partition_options { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.index)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.columns)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key_set)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.partition_options)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.session.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.session); - } - if let Some(ref v) = self.transaction.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.table); - } - if !self.index.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.index); - } - for value in &self.columns { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if let Some(ref v) = self.key_set.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.partition_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.session.is_empty() { - os.write_string(1, &self.session)?; - } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.table.is_empty() { - os.write_string(3, &self.table)?; - } - if !self.index.is_empty() { - os.write_string(4, &self.index)?; - } - for v in &self.columns { - os.write_string(5, &v)?; - }; - if let Some(ref v) = self.key_set.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.partition_options.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartitionReadRequest { - PartitionReadRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &PartitionReadRequest| { &m.session }, - |m: &mut PartitionReadRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &PartitionReadRequest| { &m.transaction }, - |m: &mut PartitionReadRequest| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &PartitionReadRequest| { &m.table }, - |m: &mut PartitionReadRequest| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "index", - |m: &PartitionReadRequest| { &m.index }, - |m: &mut PartitionReadRequest| { &mut m.index }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "columns", - |m: &PartitionReadRequest| { &m.columns }, - |m: &mut PartitionReadRequest| { &mut m.columns }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "key_set", - |m: &PartitionReadRequest| { &m.key_set }, - |m: &mut PartitionReadRequest| { &mut m.key_set }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partition_options", - |m: &PartitionReadRequest| { &m.partition_options }, - |m: &mut PartitionReadRequest| { &mut m.partition_options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartitionReadRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartitionReadRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartitionReadRequest::new) - } -} - -impl ::protobuf::Clear for PartitionReadRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction.clear(); - self.table.clear(); - self.index.clear(); - self.columns.clear(); - self.key_set.clear(); - self.partition_options.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartitionReadRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionReadRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Partition { - // message fields - pub partition_token: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Partition { - fn default() -> &'a Partition { - ::default_instance() - } -} - -impl Partition { - pub fn new() -> Partition { - ::std::default::Default::default() - } - - // bytes partition_token = 1; - - - pub fn get_partition_token(&self) -> &[u8] { - &self.partition_token - } - pub fn clear_partition_token(&mut self) { - self.partition_token.clear(); - } - - // Param is passed by value, moved - pub fn set_partition_token(&mut self, v: ::std::vec::Vec) { - self.partition_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.partition_token - } - - // Take field - pub fn take_partition_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.partition_token, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for Partition { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.partition_token)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.partition_token.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.partition_token); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.partition_token.is_empty() { - os.write_bytes(1, &self.partition_token)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Partition { - Partition::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "partition_token", - |m: &Partition| { &m.partition_token }, - |m: &mut Partition| { &mut m.partition_token }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Partition", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Partition { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Partition::new) - } -} - -impl ::protobuf::Clear for Partition { - fn clear(&mut self) { - self.partition_token.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Partition { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Partition { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PartitionResponse { - // message fields - pub partitions: ::protobuf::RepeatedField, - pub transaction: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PartitionResponse { - fn default() -> &'a PartitionResponse { - ::default_instance() - } -} - -impl PartitionResponse { - pub fn new() -> PartitionResponse { - ::std::default::Default::default() - } - - // repeated .google.spanner.v1.Partition partitions = 1; - - - pub fn get_partitions(&self) -> &[Partition] { - &self.partitions - } - pub fn clear_partitions(&mut self) { - self.partitions.clear(); - } - - // Param is passed by value, moved - pub fn set_partitions(&mut self, v: ::protobuf::RepeatedField) { - self.partitions = v; - } - - // Mutable pointer to the field. - pub fn mut_partitions(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.partitions - } - - // Take field - pub fn take_partitions(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.partitions, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.v1.Transaction transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::Transaction { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::Transaction) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::Transaction { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::Transaction { - self.transaction.take().unwrap_or_else(|| super::transaction::Transaction::new()) - } -} - -impl ::protobuf::Message for PartitionResponse { - fn is_initialized(&self) -> bool { - for v in &self.partitions { - if !v.is_initialized() { - return false; - } - }; - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.partitions)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.partitions { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.transaction.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.partitions { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PartitionResponse { - PartitionResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "partitions", - |m: &PartitionResponse| { &m.partitions }, - |m: &mut PartitionResponse| { &mut m.partitions }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &PartitionResponse| { &m.transaction }, - |m: &mut PartitionResponse| { &mut m.transaction }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PartitionResponse", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PartitionResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PartitionResponse::new) - } -} - -impl ::protobuf::Clear for PartitionResponse { - fn clear(&mut self) { - self.partitions.clear(); - self.transaction.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PartitionResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PartitionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadRequest { - // message fields - pub session: ::std::string::String, - pub transaction: ::protobuf::SingularPtrField, - pub table: ::std::string::String, - pub index: ::std::string::String, - pub columns: ::protobuf::RepeatedField<::std::string::String>, - pub key_set: ::protobuf::SingularPtrField, - pub limit: i64, - pub resume_token: ::std::vec::Vec, - pub partition_token: ::std::vec::Vec, - pub request_options: ::protobuf::SingularPtrField, - pub data_boost_enabled: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadRequest { - fn default() -> &'a ReadRequest { - ::default_instance() - } -} - -impl ReadRequest { - pub fn new() -> ReadRequest { - ::std::default::Default::default() - } - - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // .google.spanner.v1.TransactionSelector transaction = 2; - - - pub fn get_transaction(&self) -> &super::transaction::TransactionSelector { - self.transaction.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_transaction(&mut self) { - self.transaction.clear(); - } - - pub fn has_transaction(&self) -> bool { - self.transaction.is_some() - } - - // Param is passed by value, moved - pub fn set_transaction(&mut self, v: super::transaction::TransactionSelector) { - self.transaction = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction(&mut self) -> &mut super::transaction::TransactionSelector { - if self.transaction.is_none() { - self.transaction.set_default(); - } - self.transaction.as_mut().unwrap() - } - - // Take field - pub fn take_transaction(&mut self) -> super::transaction::TransactionSelector { - self.transaction.take().unwrap_or_else(|| super::transaction::TransactionSelector::new()) - } - - // string table = 3; - - - pub fn get_table(&self) -> &str { - &self.table - } - pub fn clear_table(&mut self) { - self.table.clear(); - } - - // Param is passed by value, moved - pub fn set_table(&mut self, v: ::std::string::String) { - self.table = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_table(&mut self) -> &mut ::std::string::String { - &mut self.table - } - - // Take field - pub fn take_table(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.table, ::std::string::String::new()) - } - - // string index = 4; - - - pub fn get_index(&self) -> &str { - &self.index - } - pub fn clear_index(&mut self) { - self.index.clear(); - } - - // Param is passed by value, moved - pub fn set_index(&mut self, v: ::std::string::String) { - self.index = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_index(&mut self) -> &mut ::std::string::String { - &mut self.index - } - - // Take field - pub fn take_index(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.index, ::std::string::String::new()) - } - - // repeated string columns = 5; - - - pub fn get_columns(&self) -> &[::std::string::String] { - &self.columns - } - pub fn clear_columns(&mut self) { - self.columns.clear(); - } - - // Param is passed by value, moved - pub fn set_columns(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.columns = v; - } - - // Mutable pointer to the field. - pub fn mut_columns(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.columns - } - - // Take field - pub fn take_columns(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.columns, ::protobuf::RepeatedField::new()) - } - - // .google.spanner.v1.KeySet key_set = 6; - - - pub fn get_key_set(&self) -> &super::keys::KeySet { - self.key_set.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_key_set(&mut self) { - self.key_set.clear(); - } - - pub fn has_key_set(&self) -> bool { - self.key_set.is_some() - } - - // Param is passed by value, moved - pub fn set_key_set(&mut self, v: super::keys::KeySet) { - self.key_set = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_key_set(&mut self) -> &mut super::keys::KeySet { - if self.key_set.is_none() { - self.key_set.set_default(); - } - self.key_set.as_mut().unwrap() - } - - // Take field - pub fn take_key_set(&mut self) -> super::keys::KeySet { - self.key_set.take().unwrap_or_else(|| super::keys::KeySet::new()) - } - - // int64 limit = 8; - - - pub fn get_limit(&self) -> i64 { - self.limit - } - pub fn clear_limit(&mut self) { - self.limit = 0; - } - - // Param is passed by value, moved - pub fn set_limit(&mut self, v: i64) { - self.limit = v; - } - - // bytes resume_token = 9; - - - pub fn get_resume_token(&self) -> &[u8] { - &self.resume_token - } - pub fn clear_resume_token(&mut self) { - self.resume_token.clear(); - } - - // Param is passed by value, moved - pub fn set_resume_token(&mut self, v: ::std::vec::Vec) { - self.resume_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resume_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.resume_token - } - - // Take field - pub fn take_resume_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.resume_token, ::std::vec::Vec::new()) - } - - // bytes partition_token = 10; - - - pub fn get_partition_token(&self) -> &[u8] { - &self.partition_token - } - pub fn clear_partition_token(&mut self) { - self.partition_token.clear(); - } - - // Param is passed by value, moved - pub fn set_partition_token(&mut self, v: ::std::vec::Vec) { - self.partition_token = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_partition_token(&mut self) -> &mut ::std::vec::Vec { - &mut self.partition_token - } - - // Take field - pub fn take_partition_token(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.partition_token, ::std::vec::Vec::new()) - } - - // .google.spanner.v1.RequestOptions request_options = 11; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); - } - - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() - } - - // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); - } - self.request_options.as_mut().unwrap() - } - - // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) - } - - // bool data_boost_enabled = 15; - - - pub fn get_data_boost_enabled(&self) -> bool { - self.data_boost_enabled - } - pub fn clear_data_boost_enabled(&mut self) { - self.data_boost_enabled = false; - } - - // Param is passed by value, moved - pub fn set_data_boost_enabled(&mut self, v: bool) { - self.data_boost_enabled = v; - } -} - -impl ::protobuf::Message for ReadRequest { - fn is_initialized(&self) -> bool { - for v in &self.transaction { - if !v.is_initialized() { - return false; - } - }; - for v in &self.key_set { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.transaction)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.table)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.index)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.columns)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.key_set)?; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.limit = tmp; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.resume_token)?; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.partition_token)?; - }, - 11 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; - }, - 15 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.data_boost_enabled = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.session.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.session); - } - if let Some(ref v) = self.transaction.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.table.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.table); - } - if !self.index.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.index); - } - for value in &self.columns { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if let Some(ref v) = self.key_set.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.limit != 0 { - my_size += ::protobuf::rt::value_size(8, self.limit, ::protobuf::wire_format::WireTypeVarint); - } - if !self.resume_token.is_empty() { - my_size += ::protobuf::rt::bytes_size(9, &self.resume_token); - } - if !self.partition_token.is_empty() { - my_size += ::protobuf::rt::bytes_size(10, &self.partition_token); - } - if let Some(ref v) = self.request_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.data_boost_enabled != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.session.is_empty() { - os.write_string(1, &self.session)?; - } - if let Some(ref v) = self.transaction.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.table.is_empty() { - os.write_string(3, &self.table)?; - } - if !self.index.is_empty() { - os.write_string(4, &self.index)?; - } - for v in &self.columns { - os.write_string(5, &v)?; - }; - if let Some(ref v) = self.key_set.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.limit != 0 { - os.write_int64(8, self.limit)?; - } - if !self.resume_token.is_empty() { - os.write_bytes(9, &self.resume_token)?; - } - if !self.partition_token.is_empty() { - os.write_bytes(10, &self.partition_token)?; - } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(11, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.data_boost_enabled != false { - os.write_bool(15, self.data_boost_enabled)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadRequest { - ReadRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &ReadRequest| { &m.session }, - |m: &mut ReadRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "transaction", - |m: &ReadRequest| { &m.transaction }, - |m: &mut ReadRequest| { &mut m.transaction }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "table", - |m: &ReadRequest| { &m.table }, - |m: &mut ReadRequest| { &mut m.table }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "index", - |m: &ReadRequest| { &m.index }, - |m: &mut ReadRequest| { &mut m.index }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "columns", - |m: &ReadRequest| { &m.columns }, - |m: &mut ReadRequest| { &mut m.columns }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "key_set", - |m: &ReadRequest| { &m.key_set }, - |m: &mut ReadRequest| { &mut m.key_set }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "limit", - |m: &ReadRequest| { &m.limit }, - |m: &mut ReadRequest| { &mut m.limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "resume_token", - |m: &ReadRequest| { &m.resume_token }, - |m: &mut ReadRequest| { &mut m.resume_token }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "partition_token", - |m: &ReadRequest| { &m.partition_token }, - |m: &mut ReadRequest| { &mut m.partition_token }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &ReadRequest| { &m.request_options }, - |m: &mut ReadRequest| { &mut m.request_options }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "data_boost_enabled", - |m: &ReadRequest| { &m.data_boost_enabled }, - |m: &mut ReadRequest| { &mut m.data_boost_enabled }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadRequest", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static ReadRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(ReadRequest::new) - } -} - -impl ::protobuf::Clear for ReadRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction.clear(); - self.table.clear(); - self.index.clear(); - self.columns.clear(); - self.key_set.clear(); - self.limit = 0; - self.resume_token.clear(); - self.partition_token.clear(); - self.request_options.clear(); - self.data_boost_enabled = false; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PartitionQueryRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartitionQueryRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for ReadRequest { +impl ::std::fmt::Display for PartitionQueryRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for ReadRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BeginTransactionRequest { - // message fields - pub session: ::std::string::String, - pub options: ::protobuf::SingularPtrField, - pub request_options: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BeginTransactionRequest { - fn default() -> &'a BeginTransactionRequest { - ::default_instance() - } +impl ::protobuf::reflect::ProtobufValue for PartitionQueryRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl BeginTransactionRequest { - pub fn new() -> BeginTransactionRequest { - ::std::default::Default::default() - } - - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // .google.spanner.v1.TransactionOptions options = 2; - - - pub fn get_options(&self) -> &super::transaction::TransactionOptions { - self.options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - pub fn has_options(&self) -> bool { - self.options.is_some() - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: super::transaction::TransactionOptions) { - self.options = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_options(&mut self) -> &mut super::transaction::TransactionOptions { - if self.options.is_none() { - self.options.set_default(); - } - self.options.as_mut().unwrap() - } - - // Take field - pub fn take_options(&mut self) -> super::transaction::TransactionOptions { - self.options.take().unwrap_or_else(|| super::transaction::TransactionOptions::new()) - } - - // .google.spanner.v1.RequestOptions request_options = 3; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); - } - - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() - } +/// The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead] +// @@protoc_insertion_point(message:google.spanner.v1.PartitionReadRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PartitionReadRequest { + // message fields + /// Required. The session used to create the partitions. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.session) + pub session: ::std::string::String, + /// Read only snapshot transactions are supported, read/write and single use + /// transactions are not. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.transaction) + pub transaction: ::protobuf::MessageField, + /// Required. The name of the table in the database to be read. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.table) + pub table: ::std::string::String, + /// If non-empty, the name of an index on + /// [table][google.spanner.v1.PartitionReadRequest.table]. This index is used + /// instead of the table primary key when interpreting + /// [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting + /// result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set] + /// for further information. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.index) + pub index: ::std::string::String, + /// The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be + /// returned for each row matching this request. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.columns) + pub columns: ::std::vec::Vec<::std::string::String>, + /// Required. `key_set` identifies the rows to be yielded. `key_set` names the + /// primary keys of the rows in + /// [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless + /// [index][google.spanner.v1.PartitionReadRequest.index] is present. If + /// [index][google.spanner.v1.PartitionReadRequest.index] is present, then + /// [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names + /// index keys in [index][google.spanner.v1.PartitionReadRequest.index]. + /// + /// It is not an error for the `key_set` to name rows that do not + /// exist in the database. Read yields nothing for nonexistent rows. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.key_set) + pub key_set: ::protobuf::MessageField, + /// Additional options that affect how many partitions are created. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionReadRequest.partition_options) + pub partition_options: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PartitionReadRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); +impl<'a> ::std::default::Default for &'a PartitionReadRequest { + fn default() -> &'a PartitionReadRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); - } - self.request_options.as_mut().unwrap() +impl PartitionReadRequest { + pub fn new() -> PartitionReadRequest { + ::std::default::Default::default() } - // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(7); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &PartitionReadRequest| { &m.session }, + |m: &mut PartitionReadRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionSelector>( + "transaction", + |m: &PartitionReadRequest| { &m.transaction }, + |m: &mut PartitionReadRequest| { &mut m.transaction }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table", + |m: &PartitionReadRequest| { &m.table }, + |m: &mut PartitionReadRequest| { &mut m.table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "index", + |m: &PartitionReadRequest| { &m.index }, + |m: &mut PartitionReadRequest| { &mut m.index }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "columns", + |m: &PartitionReadRequest| { &m.columns }, + |m: &mut PartitionReadRequest| { &mut m.columns }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::keys::KeySet>( + "key_set", + |m: &PartitionReadRequest| { &m.key_set }, + |m: &mut PartitionReadRequest| { &mut m.key_set }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PartitionOptions>( + "partition_options", + |m: &PartitionReadRequest| { &m.partition_options }, + |m: &mut PartitionReadRequest| { &mut m.partition_options }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartitionReadRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for BeginTransactionRequest { +impl ::protobuf::Message for PartitionReadRequest { + const NAME: &'static str = "PartitionReadRequest"; + fn is_initialized(&self) -> bool { - for v in &self.options { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; + }, + 26 => { + self.table = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.options)?; + 34 => { + self.index = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; + 42 => { + self.columns.push(is.read_string()?); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.key_set)?; + }, + 74 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.partition_options)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6033,409 +2777,567 @@ impl ::protobuf::Message for BeginTransactionRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.session.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.session); } - if let Some(ref v) = self.options.as_ref() { + if let Some(v) = self.transaction.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if !self.table.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.table); + } + if !self.index.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.index); + } + for value in &self.columns { + my_size += ::protobuf::rt::string_size(5, &value); + }; + if let Some(v) = self.key_set.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let Some(ref v) = self.request_options.as_ref() { + if let Some(v) = self.partition_options.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.session.is_empty() { os.write_string(1, &self.session)?; } - if let Some(ref v) = self.options.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if !self.table.is_empty() { + os.write_string(3, &self.table)?; + } + if !self.index.is_empty() { + os.write_string(4, &self.index)?; + } + for v in &self.columns { + os.write_string(5, &v)?; + }; + if let Some(v) = self.key_set.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.partition_options.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(9, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> BeginTransactionRequest { - BeginTransactionRequest::new() + fn new() -> PartitionReadRequest { + PartitionReadRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &BeginTransactionRequest| { &m.session }, - |m: &mut BeginTransactionRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "options", - |m: &BeginTransactionRequest| { &m.options }, - |m: &mut BeginTransactionRequest| { &mut m.options }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &BeginTransactionRequest| { &m.request_options }, - |m: &mut BeginTransactionRequest| { &mut m.request_options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BeginTransactionRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.transaction.clear(); + self.table.clear(); + self.index.clear(); + self.columns.clear(); + self.key_set.clear(); + self.partition_options.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static BeginTransactionRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BeginTransactionRequest::new) + fn default_instance() -> &'static PartitionReadRequest { + static instance: PartitionReadRequest = PartitionReadRequest { + session: ::std::string::String::new(), + transaction: ::protobuf::MessageField::none(), + table: ::std::string::String::new(), + index: ::std::string::String::new(), + columns: ::std::vec::Vec::new(), + key_set: ::protobuf::MessageField::none(), + partition_options: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BeginTransactionRequest { - fn clear(&mut self) { - self.session.clear(); - self.options.clear(); - self.request_options.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for PartitionReadRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartitionReadRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for BeginTransactionRequest { +impl ::std::fmt::Display for PartitionReadRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for BeginTransactionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for PartitionReadRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct CommitRequest { +/// Information returned for each partition returned in a +/// PartitionResponse. +// @@protoc_insertion_point(message:google.spanner.v1.Partition) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Partition { // message fields - pub session: ::std::string::String, - pub mutations: ::protobuf::RepeatedField, - pub return_commit_stats: bool, - pub request_options: ::protobuf::SingularPtrField, - // message oneof groups - pub transaction: ::std::option::Option, + /// This token can be passed to Read, StreamingRead, ExecuteSql, or + /// ExecuteStreamingSql requests to restrict the results to those identified by + /// this partition token. + // @@protoc_insertion_point(field:google.spanner.v1.Partition.partition_token) + pub partition_token: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.Partition.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a CommitRequest { - fn default() -> &'a CommitRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a Partition { + fn default() -> &'a Partition { + ::default_instance() } } -#[derive(Clone,PartialEq,Debug)] -pub enum CommitRequest_oneof_transaction { - transaction_id(::std::vec::Vec), - single_use_transaction(super::transaction::TransactionOptions), -} - -impl CommitRequest { - pub fn new() -> CommitRequest { +impl Partition { + pub fn new() -> Partition { ::std::default::Default::default() } - // string session = 1; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "partition_token", + |m: &Partition| { &m.partition_token }, + |m: &mut Partition| { &mut m.partition_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Partition", + fields, + oneofs, + ) + } +} +impl ::protobuf::Message for Partition { + const NAME: &'static str = "Partition"; - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); + fn is_initialized(&self) -> bool { + true } - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.partition_token = is.read_bytes()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.partition_token.is_empty() { + my_size += ::protobuf::rt::bytes_size(1, &self.partition_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.partition_token.is_empty() { + os.write_bytes(1, &self.partition_token)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // bytes transaction_id = 2; - + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } - pub fn get_transaction_id(&self) -> &[u8] { - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(ref v)) => v, - _ => &[], - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - pub fn clear_transaction_id(&mut self) { - self.transaction = ::std::option::Option::None; + + fn new() -> Partition { + Partition::new() } - pub fn has_transaction_id(&self) -> bool { - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(..)) => true, - _ => false, - } + fn clear(&mut self) { + self.partition_token.clear(); + self.special_fields.clear(); } - // Param is passed by value, moved - pub fn set_transaction_id(&mut self, v: ::std::vec::Vec) { - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(v)) + fn default_instance() -> &'static Partition { + static instance: Partition = Partition { + partition_token: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } +} - // Mutable pointer to the field. - pub fn mut_transaction_id(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(_)) = self.transaction { - } else { - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(::std::vec::Vec::new())); - } - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(ref mut v)) => v, - _ => panic!(), - } +impl ::protobuf::MessageFull for Partition { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Partition").unwrap()).clone() } +} - // Take field - pub fn take_transaction_id(&mut self) -> ::std::vec::Vec { - if self.has_transaction_id() { - match self.transaction.take() { - ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(v)) => v, - _ => panic!(), - } - } else { - ::std::vec::Vec::new() - } +impl ::std::fmt::Display for Partition { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // .google.spanner.v1.TransactionOptions single_use_transaction = 3; +impl ::protobuf::reflect::ProtobufValue for Partition { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} +/// The response for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] +/// or [PartitionRead][google.spanner.v1.Spanner.PartitionRead] +// @@protoc_insertion_point(message:google.spanner.v1.PartitionResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PartitionResponse { + // message fields + /// Partitions created by this request. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionResponse.partitions) + pub partitions: ::std::vec::Vec, + /// Transaction created by this request. + // @@protoc_insertion_point(field:google.spanner.v1.PartitionResponse.transaction) + pub transaction: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.PartitionResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} - pub fn get_single_use_transaction(&self) -> &super::transaction::TransactionOptions { - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_single_use_transaction(&mut self) { - self.transaction = ::std::option::Option::None; +impl<'a> ::std::default::Default for &'a PartitionResponse { + fn default() -> &'a PartitionResponse { + ::default_instance() } +} - pub fn has_single_use_transaction(&self) -> bool { - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(..)) => true, - _ => false, - } +impl PartitionResponse { + pub fn new() -> PartitionResponse { + ::std::default::Default::default() } - // Param is passed by value, moved - pub fn set_single_use_transaction(&mut self, v: super::transaction::TransactionOptions) { - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(v)) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "partitions", + |m: &PartitionResponse| { &m.partitions }, + |m: &mut PartitionResponse| { &mut m.partitions }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::Transaction>( + "transaction", + |m: &PartitionResponse| { &m.transaction }, + |m: &mut PartitionResponse| { &mut m.transaction }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PartitionResponse", + fields, + oneofs, + ) } +} - // Mutable pointer to the field. - pub fn mut_single_use_transaction(&mut self) -> &mut super::transaction::TransactionOptions { - if let ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(_)) = self.transaction { - } else { - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(super::transaction::TransactionOptions::new())); - } - match self.transaction { - ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(ref mut v)) => v, - _ => panic!(), - } +impl ::protobuf::Message for PartitionResponse { + const NAME: &'static str = "PartitionResponse"; + + fn is_initialized(&self) -> bool { + true } - // Take field - pub fn take_single_use_transaction(&mut self) -> super::transaction::TransactionOptions { - if self.has_single_use_transaction() { - match self.transaction.take() { - ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(v)) => v, - _ => panic!(), - } - } else { - super::transaction::TransactionOptions::new() + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.partitions.push(is.read_message()?); + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; } + ::std::result::Result::Ok(()) } - // repeated .google.spanner.v1.Mutation mutations = 4; - - - pub fn get_mutations(&self) -> &[super::mutation::Mutation] { - &self.mutations - } - pub fn clear_mutations(&mut self) { - self.mutations.clear(); + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.partitions { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if let Some(v) = self.transaction.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size } - // Param is passed by value, moved - pub fn set_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.mutations = v; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.partitions { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) } - // Mutable pointer to the field. - pub fn mut_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.mutations + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - // Take field - pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - // bool return_commit_stats = 5; - - - pub fn get_return_commit_stats(&self) -> bool { - self.return_commit_stats - } - pub fn clear_return_commit_stats(&mut self) { - self.return_commit_stats = false; + fn new() -> PartitionResponse { + PartitionResponse::new() } - // Param is passed by value, moved - pub fn set_return_commit_stats(&mut self, v: bool) { - self.return_commit_stats = v; + fn clear(&mut self) { + self.partitions.clear(); + self.transaction.clear(); + self.special_fields.clear(); } - // .google.spanner.v1.RequestOptions request_options = 6; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) + fn default_instance() -> &'static PartitionResponse { + static instance: PartitionResponse = PartitionResponse { + partitions: ::std::vec::Vec::new(), + transaction: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); +} + +impl ::protobuf::MessageFull for PartitionResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PartitionResponse").unwrap()).clone() } +} - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() +impl ::std::fmt::Display for PartitionResponse { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) } +} - // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); +impl ::protobuf::reflect::ProtobufValue for PartitionResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// The request for [Read][google.spanner.v1.Spanner.Read] and +/// [StreamingRead][google.spanner.v1.Spanner.StreamingRead]. +// @@protoc_insertion_point(message:google.spanner.v1.ReadRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ReadRequest { + // message fields + /// Required. The session in which the read should be performed. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.session) + pub session: ::std::string::String, + /// The transaction to use. If none is provided, the default is a + /// temporary read-only transaction with strong concurrency. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.transaction) + pub transaction: ::protobuf::MessageField, + /// Required. The name of the table in the database to be read. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.table) + pub table: ::std::string::String, + /// If non-empty, the name of an index on + /// [table][google.spanner.v1.ReadRequest.table]. This index is used instead of + /// the table primary key when interpreting + /// [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. + /// See [key_set][google.spanner.v1.ReadRequest.key_set] for further + /// information. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.index) + pub index: ::std::string::String, + /// Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be + /// returned for each row matching this request. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.columns) + pub columns: ::std::vec::Vec<::std::string::String>, + /// Required. `key_set` identifies the rows to be yielded. `key_set` names the + /// primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to + /// be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. + /// If [index][google.spanner.v1.ReadRequest.index] is present, then + /// [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys + /// in [index][google.spanner.v1.ReadRequest.index]. + /// + /// If the [partition_token][google.spanner.v1.ReadRequest.partition_token] + /// field is empty, rows are yielded in table primary key order (if + /// [index][google.spanner.v1.ReadRequest.index] is empty) or index key order + /// (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the + /// [partition_token][google.spanner.v1.ReadRequest.partition_token] field is + /// not empty, rows will be yielded in an unspecified order. + /// + /// It is not an error for the `key_set` to name rows that do not + /// exist in the database. Read yields nothing for nonexistent rows. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.key_set) + pub key_set: ::protobuf::MessageField, + /// If greater than zero, only the first `limit` rows are yielded. If `limit` + /// is zero, the default is no limit. A limit cannot be specified if + /// `partition_token` is set. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.limit) + pub limit: i64, + /// If this request is resuming a previously interrupted read, + /// `resume_token` should be copied from the last + /// [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the + /// interruption. Doing this enables the new read to resume where the last read + /// left off. The rest of the request parameters must exactly match the request + /// that yielded this token. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.resume_token) + pub resume_token: ::std::vec::Vec, + /// If present, results will be restricted to the specified partition + /// previously created using PartitionRead(). There must be an exact + /// match for the values of fields common to this message and the + /// PartitionReadRequest message used to create this partition_token. + // @@protoc_insertion_point(field:google.spanner.v1.ReadRequest.partition_token) + pub partition_token: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.ReadRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ReadRequest { + fn default() -> &'a ReadRequest { + ::default_instance() } +} - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); - } - self.request_options.as_mut().unwrap() +impl ReadRequest { + pub fn new() -> ReadRequest { + ::std::default::Default::default() } - // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(9); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &ReadRequest| { &m.session }, + |m: &mut ReadRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionSelector>( + "transaction", + |m: &ReadRequest| { &m.transaction }, + |m: &mut ReadRequest| { &mut m.transaction }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "table", + |m: &ReadRequest| { &m.table }, + |m: &mut ReadRequest| { &mut m.table }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "index", + |m: &ReadRequest| { &m.index }, + |m: &mut ReadRequest| { &mut m.index }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "columns", + |m: &ReadRequest| { &m.columns }, + |m: &mut ReadRequest| { &mut m.columns }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::keys::KeySet>( + "key_set", + |m: &ReadRequest| { &m.key_set }, + |m: &mut ReadRequest| { &mut m.key_set }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "limit", + |m: &ReadRequest| { &m.limit }, + |m: &mut ReadRequest| { &mut m.limit }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resume_token", + |m: &ReadRequest| { &m.resume_token }, + |m: &mut ReadRequest| { &mut m.resume_token }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "partition_token", + |m: &ReadRequest| { &m.partition_token }, + |m: &mut ReadRequest| { &mut m.partition_token }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ReadRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for CommitRequest { +impl ::protobuf::Message for ReadRequest { + const NAME: &'static str = "ReadRequest"; + fn is_initialized(&self) -> bool { - if let Some(CommitRequest_oneof_transaction::single_use_transaction(ref v)) = self.transaction { - if !v.is_initialized() { - return false; - } - } - for v in &self.mutations { - if !v.is_initialized() { - return false; - } - }; - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::transaction_id(is.read_bytes()?)); + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.transaction)?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.transaction = ::std::option::Option::Some(CommitRequest_oneof_transaction::single_use_transaction(is.read_message()?)); + 26 => { + self.table = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; + 34 => { + self.index = is.read_string()?; }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.return_commit_stats = tmp; + 42 => { + self.columns.push(is.read_string()?); + }, + 50 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.key_set)?; + }, + 64 => { + self.limit = is.read_int64()?; + }, + 74 => { + self.resume_token = is.read_bytes()?; }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; + 82 => { + self.partition_token = is.read_bytes()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6444,264 +3346,200 @@ impl ::protobuf::Message for CommitRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.session.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.session); } - for value in &self.mutations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.return_commit_stats != false { - my_size += 2; + if let Some(v) = self.transaction.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if !self.table.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.table); + } + if !self.index.is_empty() { + my_size += ::protobuf::rt::string_size(4, &self.index); } - if let Some(ref v) = self.request_options.as_ref() { + for value in &self.columns { + my_size += ::protobuf::rt::string_size(5, &value); + }; + if let Some(v) = self.key_set.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - if let ::std::option::Option::Some(ref v) = self.transaction { - match v { - &CommitRequest_oneof_transaction::transaction_id(ref v) => { - my_size += ::protobuf::rt::bytes_size(2, &v); - }, - &CommitRequest_oneof_transaction::single_use_transaction(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + if self.limit != 0 { + my_size += ::protobuf::rt::int64_size(8, self.limit); + } + if !self.resume_token.is_empty() { + my_size += ::protobuf::rt::bytes_size(9, &self.resume_token); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if !self.partition_token.is_empty() { + my_size += ::protobuf::rt::bytes_size(10, &self.partition_token); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.session.is_empty() { os.write_string(1, &self.session)?; } - for v in &self.mutations { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.transaction.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if !self.table.is_empty() { + os.write_string(3, &self.table)?; + } + if !self.index.is_empty() { + os.write_string(4, &self.index)?; + } + for v in &self.columns { + os.write_string(5, &v)?; }; - if self.return_commit_stats != false { - os.write_bool(5, self.return_commit_stats)?; + if let Some(v) = self.key_set.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if self.limit != 0 { + os.write_int64(8, self.limit)?; } - if let ::std::option::Option::Some(ref v) = self.transaction { - match v { - &CommitRequest_oneof_transaction::transaction_id(ref v) => { - os.write_bytes(2, v)?; - }, - &CommitRequest_oneof_transaction::single_use_transaction(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + if !self.resume_token.is_empty() { + os.write_bytes(9, &self.resume_token)?; + } + if !self.partition_token.is_empty() { + os.write_bytes(10, &self.partition_token)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> CommitRequest { - CommitRequest::new() + fn new() -> ReadRequest { + ReadRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &CommitRequest| { &m.session }, - |m: &mut CommitRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "transaction_id", - CommitRequest::has_transaction_id, - CommitRequest::get_transaction_id, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, super::transaction::TransactionOptions>( - "single_use_transaction", - CommitRequest::has_single_use_transaction, - CommitRequest::get_single_use_transaction, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutations", - |m: &CommitRequest| { &m.mutations }, - |m: &mut CommitRequest| { &mut m.mutations }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "return_commit_stats", - |m: &CommitRequest| { &m.return_commit_stats }, - |m: &mut CommitRequest| { &mut m.return_commit_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &CommitRequest| { &m.request_options }, - |m: &mut CommitRequest| { &mut m.request_options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CommitRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.transaction.clear(); + self.table.clear(); + self.index.clear(); + self.columns.clear(); + self.key_set.clear(); + self.limit = 0; + self.resume_token.clear(); + self.partition_token.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static CommitRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(CommitRequest::new) + fn default_instance() -> &'static ReadRequest { + static instance: ReadRequest = ReadRequest { + session: ::std::string::String::new(), + transaction: ::protobuf::MessageField::none(), + table: ::std::string::String::new(), + index: ::std::string::String::new(), + columns: ::std::vec::Vec::new(), + key_set: ::protobuf::MessageField::none(), + limit: 0, + resume_token: ::std::vec::Vec::new(), + partition_token: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for CommitRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction = ::std::option::Option::None; - self.transaction = ::std::option::Option::None; - self.mutations.clear(); - self.return_commit_stats = false; - self.request_options.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for ReadRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ReadRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for CommitRequest { +impl ::std::fmt::Display for ReadRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for CommitRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for ReadRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct RollbackRequest { +/// The request for +/// [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction]. +// @@protoc_insertion_point(message:google.spanner.v1.BeginTransactionRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct BeginTransactionRequest { // message fields + /// Required. The session in which the transaction runs. + // @@protoc_insertion_point(field:google.spanner.v1.BeginTransactionRequest.session) pub session: ::std::string::String, - pub transaction_id: ::std::vec::Vec, + /// Required. Options for the new transaction. + // @@protoc_insertion_point(field:google.spanner.v1.BeginTransactionRequest.options) + pub options: ::protobuf::MessageField, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.BeginTransactionRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a RollbackRequest { - fn default() -> &'a RollbackRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a BeginTransactionRequest { + fn default() -> &'a BeginTransactionRequest { + ::default_instance() } } -impl RollbackRequest { - pub fn new() -> RollbackRequest { +impl BeginTransactionRequest { + pub fn new() -> BeginTransactionRequest { ::std::default::Default::default() } - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } - - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) - } - - // bytes transaction_id = 2; - - - pub fn get_transaction_id(&self) -> &[u8] { - &self.transaction_id - } - pub fn clear_transaction_id(&mut self) { - self.transaction_id.clear(); - } - - // Param is passed by value, moved - pub fn set_transaction_id(&mut self, v: ::std::vec::Vec) { - self.transaction_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_transaction_id(&mut self) -> &mut ::std::vec::Vec { - &mut self.transaction_id - } - - // Take field - pub fn take_transaction_id(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.transaction_id, ::std::vec::Vec::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &BeginTransactionRequest| { &m.session }, + |m: &mut BeginTransactionRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::transaction::TransactionOptions>( + "options", + |m: &BeginTransactionRequest| { &m.options }, + |m: &mut BeginTransactionRequest| { &mut m.options }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "BeginTransactionRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for RollbackRequest { +impl ::protobuf::Message for BeginTransactionRequest { + const NAME: &'static str = "BeginTransactionRequest"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.transaction_id)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.options)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6710,245 +3548,264 @@ impl ::protobuf::Message for RollbackRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.session.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.session); } - if !self.transaction_id.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.transaction_id); + if let Some(v) = self.options.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.session.is_empty() { os.write_string(1, &self.session)?; } - if !self.transaction_id.is_empty() { - os.write_bytes(2, &self.transaction_id)?; + if let Some(v) = self.options.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> RollbackRequest { - RollbackRequest::new() + fn new() -> BeginTransactionRequest { + BeginTransactionRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &RollbackRequest| { &m.session }, - |m: &mut RollbackRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "transaction_id", - |m: &RollbackRequest| { &m.transaction_id }, - |m: &mut RollbackRequest| { &mut m.transaction_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RollbackRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.options.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static RollbackRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(RollbackRequest::new) + fn default_instance() -> &'static BeginTransactionRequest { + static instance: BeginTransactionRequest = BeginTransactionRequest { + session: ::std::string::String::new(), + options: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for RollbackRequest { - fn clear(&mut self) { - self.session.clear(); - self.transaction_id.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for BeginTransactionRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("BeginTransactionRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for RollbackRequest { +impl ::std::fmt::Display for BeginTransactionRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for RollbackRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for BeginTransactionRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct BatchWriteRequest { +/// The request for [Commit][google.spanner.v1.Spanner.Commit]. +// @@protoc_insertion_point(message:google.spanner.v1.CommitRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CommitRequest { // message fields + /// Required. The session in which the transaction to be committed is running. + // @@protoc_insertion_point(field:google.spanner.v1.CommitRequest.session) pub session: ::std::string::String, - pub request_options: ::protobuf::SingularPtrField, - pub mutation_groups: ::protobuf::RepeatedField, + /// The mutations to be executed when this transaction commits. All + /// mutations are applied atomically, in the order they appear in + /// this list. + // @@protoc_insertion_point(field:google.spanner.v1.CommitRequest.mutations) + pub mutations: ::std::vec::Vec, + // message oneof groups + pub transaction: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.CommitRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a BatchWriteRequest { - fn default() -> &'a BatchWriteRequest { - ::default_instance() +impl<'a> ::std::default::Default for &'a CommitRequest { + fn default() -> &'a CommitRequest { + ::default_instance() } } -impl BatchWriteRequest { - pub fn new() -> BatchWriteRequest { +impl CommitRequest { + pub fn new() -> CommitRequest { ::std::default::Default::default() } - // string session = 1; - - - pub fn get_session(&self) -> &str { - &self.session - } - pub fn clear_session(&mut self) { - self.session.clear(); - } - - // Param is passed by value, moved - pub fn set_session(&mut self, v: ::std::string::String) { - self.session = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_session(&mut self) -> &mut ::std::string::String { - &mut self.session - } + // bytes transaction_id = 2; - // Take field - pub fn take_session(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.session, ::std::string::String::new()) + pub fn transaction_id(&self) -> &[u8] { + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::TransactionId(ref v)) => v, + _ => &[], + } } - // .google.spanner.v1.RequestOptions request_options = 3; - - - pub fn get_request_options(&self) -> &RequestOptions { - self.request_options.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_request_options(&mut self) { - self.request_options.clear(); + pub fn clear_transaction_id(&mut self) { + self.transaction = ::std::option::Option::None; } - pub fn has_request_options(&self) -> bool { - self.request_options.is_some() + pub fn has_transaction_id(&self) -> bool { + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::TransactionId(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_request_options(&mut self, v: RequestOptions) { - self.request_options = ::protobuf::SingularPtrField::some(v); + pub fn set_transaction_id(&mut self, v: ::std::vec::Vec) { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::TransactionId(v)) } // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_request_options(&mut self) -> &mut RequestOptions { - if self.request_options.is_none() { - self.request_options.set_default(); + pub fn mut_transaction_id(&mut self) -> &mut ::std::vec::Vec { + if let ::std::option::Option::Some(commit_request::Transaction::TransactionId(_)) = self.transaction { + } else { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::TransactionId(::std::vec::Vec::new())); + } + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::TransactionId(ref mut v)) => v, + _ => panic!(), } - self.request_options.as_mut().unwrap() } // Take field - pub fn take_request_options(&mut self) -> RequestOptions { - self.request_options.take().unwrap_or_else(|| RequestOptions::new()) + pub fn take_transaction_id(&mut self) -> ::std::vec::Vec { + if self.has_transaction_id() { + match self.transaction.take() { + ::std::option::Option::Some(commit_request::Transaction::TransactionId(v)) => v, + _ => panic!(), + } + } else { + ::std::vec::Vec::new() + } } - // repeated .google.spanner.v1.BatchWriteRequest.MutationGroup mutation_groups = 4; + // .google.spanner.v1.TransactionOptions single_use_transaction = 3; + pub fn single_use_transaction(&self) -> &super::transaction::TransactionOptions { + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(ref v)) => v, + _ => ::default_instance(), + } + } - pub fn get_mutation_groups(&self) -> &[BatchWriteRequest_MutationGroup] { - &self.mutation_groups + pub fn clear_single_use_transaction(&mut self) { + self.transaction = ::std::option::Option::None; } - pub fn clear_mutation_groups(&mut self) { - self.mutation_groups.clear(); + + pub fn has_single_use_transaction(&self) -> bool { + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(..)) => true, + _ => false, + } } // Param is passed by value, moved - pub fn set_mutation_groups(&mut self, v: ::protobuf::RepeatedField) { - self.mutation_groups = v; + pub fn set_single_use_transaction(&mut self, v: super::transaction::TransactionOptions) { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(v)) } // Mutable pointer to the field. - pub fn mut_mutation_groups(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.mutation_groups + pub fn mut_single_use_transaction(&mut self) -> &mut super::transaction::TransactionOptions { + if let ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(_)) = self.transaction { + } else { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(super::transaction::TransactionOptions::new())); + } + match self.transaction { + ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(ref mut v)) => v, + _ => panic!(), + } } // Take field - pub fn take_mutation_groups(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.mutation_groups, ::protobuf::RepeatedField::new()) + pub fn take_single_use_transaction(&mut self) -> super::transaction::TransactionOptions { + if self.has_single_use_transaction() { + match self.transaction.take() { + ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(v)) => v, + _ => panic!(), + } + } else { + super::transaction::TransactionOptions::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &CommitRequest| { &m.session }, + |m: &mut CommitRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "transaction_id", + CommitRequest::has_transaction_id, + CommitRequest::transaction_id, + CommitRequest::set_transaction_id, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::transaction::TransactionOptions>( + "single_use_transaction", + CommitRequest::has_single_use_transaction, + CommitRequest::single_use_transaction, + CommitRequest::mut_single_use_transaction, + CommitRequest::set_single_use_transaction, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "mutations", + |m: &CommitRequest| { &m.mutations }, + |m: &mut CommitRequest| { &mut m.mutations }, + )); + oneofs.push(commit_request::Transaction::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CommitRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for BatchWriteRequest { +impl ::protobuf::Message for CommitRequest { + const NAME: &'static str = "CommitRequest"; + fn is_initialized(&self) -> bool { - for v in &self.request_options { - if !v.is_initialized() { - return false; - } - }; - for v in &self.mutation_groups { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.session)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.request_options)?; + 18 => { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::TransactionId(is.read_bytes()?)); }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutation_groups)?; + 26 => { + self.transaction = ::std::option::Option::Some(commit_request::Transaction::SingleUseTransaction(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + 34 => { + self.mutations.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -6957,191 +3814,185 @@ impl ::protobuf::Message for BatchWriteRequest { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.session.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.session); } - if let Some(ref v) = self.request_options.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.mutation_groups { + for value in &self.mutations { let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if let ::std::option::Option::Some(ref v) = self.transaction { + match v { + &commit_request::Transaction::TransactionId(ref v) => { + my_size += ::protobuf::rt::bytes_size(2, &v); + }, + &commit_request::Transaction::SingleUseTransaction(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.session.is_empty() { os.write_string(1, &self.session)?; } - if let Some(ref v) = self.request_options.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.mutation_groups { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + for v in &self.mutations { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; }; - os.write_unknown_fields(self.get_unknown_fields())?; + if let ::std::option::Option::Some(ref v) = self.transaction { + match v { + &commit_request::Transaction::TransactionId(ref v) => { + os.write_bytes(2, v)?; + }, + &commit_request::Transaction::SingleUseTransaction(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> BatchWriteRequest { - BatchWriteRequest::new() + fn new() -> CommitRequest { + CommitRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "session", - |m: &BatchWriteRequest| { &m.session }, - |m: &mut BatchWriteRequest| { &mut m.session }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "request_options", - |m: &BatchWriteRequest| { &m.request_options }, - |m: &mut BatchWriteRequest| { &mut m.request_options }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutation_groups", - |m: &BatchWriteRequest| { &m.mutation_groups }, - |m: &mut BatchWriteRequest| { &mut m.mutation_groups }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchWriteRequest", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.transaction = ::std::option::Option::None; + self.transaction = ::std::option::Option::None; + self.mutations.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static BatchWriteRequest { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchWriteRequest::new) + fn default_instance() -> &'static CommitRequest { + static instance: CommitRequest = CommitRequest { + session: ::std::string::String::new(), + mutations: ::std::vec::Vec::new(), + transaction: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BatchWriteRequest { - fn clear(&mut self) { - self.session.clear(); - self.request_options.clear(); - self.mutation_groups.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CommitRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CommitRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for BatchWriteRequest { +impl ::std::fmt::Display for CommitRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for BatchWriteRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CommitRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct BatchWriteRequest_MutationGroup { - // message fields - pub mutations: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} +/// Nested message and enums of message `CommitRequest` +pub mod commit_request { -impl<'a> ::std::default::Default for &'a BatchWriteRequest_MutationGroup { - fn default() -> &'a BatchWriteRequest_MutationGroup { - ::default_instance() + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.CommitRequest.transaction) + pub enum Transaction { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.CommitRequest.transaction_id) + TransactionId(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.CommitRequest.single_use_transaction) + SingleUseTransaction(super::super::transaction::TransactionOptions), } -} -impl BatchWriteRequest_MutationGroup { - pub fn new() -> BatchWriteRequest_MutationGroup { - ::std::default::Default::default() + impl ::protobuf::Oneof for Transaction { } - // repeated .google.spanner.v1.Mutation mutations = 1; - - - pub fn get_mutations(&self) -> &[super::mutation::Mutation] { - &self.mutations + impl ::protobuf::OneofFull for Transaction { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("transaction").unwrap()).clone() + } } - pub fn clear_mutations(&mut self) { - self.mutations.clear(); + + impl Transaction { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("transaction") + } } +} - // Param is passed by value, moved - pub fn set_mutations(&mut self, v: ::protobuf::RepeatedField) { - self.mutations = v; +/// The response for [Commit][google.spanner.v1.Spanner.Commit]. +// @@protoc_insertion_point(message:google.spanner.v1.CommitResponse) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CommitResponse { + // message fields + /// The Cloud Spanner timestamp at which the transaction committed. + // @@protoc_insertion_point(field:google.spanner.v1.CommitResponse.commit_timestamp) + pub commit_timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.CommitResponse.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a CommitResponse { + fn default() -> &'a CommitResponse { + ::default_instance() } +} - // Mutable pointer to the field. - pub fn mut_mutations(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.mutations +impl CommitResponse { + pub fn new() -> CommitResponse { + ::std::default::Default::default() } - // Take field - pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "commit_timestamp", + |m: &CommitResponse| { &m.commit_timestamp }, + |m: &mut CommitResponse| { &mut m.commit_timestamp }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CommitResponse", + fields, + oneofs, + ) } } -impl ::protobuf::Message for BatchWriteRequest_MutationGroup { +impl ::protobuf::Message for CommitResponse { + const NAME: &'static str = "CommitResponse"; + fn is_initialized(&self) -> bool { - for v in &self.mutations { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.commit_timestamp)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7150,243 +4001,134 @@ impl ::protobuf::Message for BatchWriteRequest_MutationGroup { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.mutations { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + if let Some(v) = self.commit_timestamp.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.mutations { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.commit_timestamp.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn new() -> BatchWriteRequest_MutationGroup { - BatchWriteRequest_MutationGroup::new() + fn new() -> CommitResponse { + CommitResponse::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "mutations", - |m: &BatchWriteRequest_MutationGroup| { &m.mutations }, - |m: &mut BatchWriteRequest_MutationGroup| { &mut m.mutations }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchWriteRequest.MutationGroup", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.commit_timestamp.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static BatchWriteRequest_MutationGroup { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchWriteRequest_MutationGroup::new) + fn default_instance() -> &'static CommitResponse { + static instance: CommitResponse = CommitResponse { + commit_timestamp: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BatchWriteRequest_MutationGroup { - fn clear(&mut self) { - self.mutations.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for CommitResponse { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CommitResponse").unwrap()).clone() } } -impl ::std::fmt::Debug for BatchWriteRequest_MutationGroup { +impl ::std::fmt::Display for CommitResponse { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for BatchWriteRequest_MutationGroup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for CommitResponse { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] -pub struct BatchWriteResponse { +/// The request for [Rollback][google.spanner.v1.Spanner.Rollback]. +// @@protoc_insertion_point(message:google.spanner.v1.RollbackRequest) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct RollbackRequest { // message fields - pub indexes: ::std::vec::Vec, - pub status: ::protobuf::SingularPtrField, - pub commit_timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// Required. The session in which the transaction to roll back is running. + // @@protoc_insertion_point(field:google.spanner.v1.RollbackRequest.session) + pub session: ::std::string::String, + /// Required. The transaction to roll back. + // @@protoc_insertion_point(field:google.spanner.v1.RollbackRequest.transaction_id) + pub transaction_id: ::std::vec::Vec, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.RollbackRequest.special_fields) + pub special_fields: ::protobuf::SpecialFields, } -impl<'a> ::std::default::Default for &'a BatchWriteResponse { - fn default() -> &'a BatchWriteResponse { - ::default_instance() +impl<'a> ::std::default::Default for &'a RollbackRequest { + fn default() -> &'a RollbackRequest { + ::default_instance() } } -impl BatchWriteResponse { - pub fn new() -> BatchWriteResponse { +impl RollbackRequest { + pub fn new() -> RollbackRequest { ::std::default::Default::default() } - // repeated int32 indexes = 1; - - - pub fn get_indexes(&self) -> &[i32] { - &self.indexes - } - pub fn clear_indexes(&mut self) { - self.indexes.clear(); - } - - // Param is passed by value, moved - pub fn set_indexes(&mut self, v: ::std::vec::Vec) { - self.indexes = v; - } - - // Mutable pointer to the field. - pub fn mut_indexes(&mut self) -> &mut ::std::vec::Vec { - &mut self.indexes - } - - // Take field - pub fn take_indexes(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.indexes, ::std::vec::Vec::new()) - } - - // .google.rpc.Status status = 2; - - - pub fn get_status(&self) -> &super::status::Status { - self.status.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_status(&mut self) { - self.status.clear(); - } - - pub fn has_status(&self) -> bool { - self.status.is_some() - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: super::status::Status) { - self.status = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_status(&mut self) -> &mut super::status::Status { - if self.status.is_none() { - self.status.set_default(); - } - self.status.as_mut().unwrap() - } - - // Take field - pub fn take_status(&mut self) -> super::status::Status { - self.status.take().unwrap_or_else(|| super::status::Status::new()) - } - - // .google.protobuf.Timestamp commit_timestamp = 3; - - - pub fn get_commit_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.commit_timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_commit_timestamp(&mut self) { - self.commit_timestamp.clear(); - } - - pub fn has_commit_timestamp(&self) -> bool { - self.commit_timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_commit_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.commit_timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_commit_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.commit_timestamp.is_none() { - self.commit_timestamp.set_default(); - } - self.commit_timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_commit_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.commit_timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "session", + |m: &RollbackRequest| { &m.session }, + |m: &mut RollbackRequest| { &mut m.session }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "transaction_id", + |m: &RollbackRequest| { &m.transaction_id }, + |m: &mut RollbackRequest| { &mut m.transaction_id }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RollbackRequest", + fields, + oneofs, + ) } } -impl ::protobuf::Message for BatchWriteResponse { +impl ::protobuf::Message for RollbackRequest { + const NAME: &'static str = "RollbackRequest"; + fn is_initialized(&self) -> bool { - for v in &self.status { - if !v.is_initialized() { - return false; - } - }; - for v in &self.commit_timestamp { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_int32_into(wire_type, is, &mut self.indexes)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.status)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.session = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.commit_timestamp)?; + 18 => { + self.transaction_id = is.read_bytes()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -7395,124 +4137,73 @@ impl ::protobuf::Message for BatchWriteResponse { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; - for value in &self.indexes { - my_size += ::protobuf::rt::value_size(1, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if let Some(ref v) = self.status.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.session.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.session); } - if let Some(ref v) = self.commit_timestamp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + if !self.transaction_id.is_empty() { + my_size += ::protobuf::rt::bytes_size(2, &self.transaction_id); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.indexes { - os.write_int32(1, *v)?; - }; - if let Some(ref v) = self.status.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.session.is_empty() { + os.write_string(1, &self.session)?; } - if let Some(ref v) = self.commit_timestamp.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if !self.transaction_id.is_empty() { + os.write_bytes(2, &self.transaction_id)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BatchWriteResponse { - BatchWriteResponse::new() + fn new() -> RollbackRequest { + RollbackRequest::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "indexes", - |m: &BatchWriteResponse| { &m.indexes }, - |m: &mut BatchWriteResponse| { &mut m.indexes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "status", - |m: &BatchWriteResponse| { &m.status }, - |m: &mut BatchWriteResponse| { &mut m.status }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "commit_timestamp", - |m: &BatchWriteResponse| { &m.commit_timestamp }, - |m: &mut BatchWriteResponse| { &mut m.commit_timestamp }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BatchWriteResponse", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.session.clear(); + self.transaction_id.clear(); + self.special_fields.clear(); } - fn default_instance() -> &'static BatchWriteResponse { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(BatchWriteResponse::new) + fn default_instance() -> &'static RollbackRequest { + static instance: RollbackRequest = RollbackRequest { + session: ::std::string::String::new(), + transaction_id: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for BatchWriteResponse { - fn clear(&mut self) { - self.indexes.clear(); - self.status.clear(); - self.commit_timestamp.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for RollbackRequest { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RollbackRequest").unwrap()).clone() } } -impl ::std::fmt::Debug for BatchWriteResponse { +impl ::std::fmt::Display for RollbackRequest { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } -impl ::protobuf::reflect::ProtobufValue for BatchWriteResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } +impl ::protobuf::reflect::ProtobufValue for RollbackRequest { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -7520,789 +4211,596 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/\ api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/\ protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/p\ - rotobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a'google/spanne\ - r/v1/commit_response.proto\x1a\x1cgoogle/spanner/v1/keys.proto\x1a\x20go\ - ogle/spanner/v1/mutation.proto\x1a\"google/spanner/v1/result_set.proto\ - \x1a#google/spanner/v1/transaction.proto\x1a\x1cgoogle/spanner/v1/type.p\ - rotoP\x08\"\x96\x01\n\x14CreateSessionRequest\x12C\n\x08database\x18\x01\ - \x20\x01(\tR\x08databaseB'\xfaA!\n\x1fspanner.googleapis.com/Database\ - \xe0A\x02\x129\n\x07session\x18\x02\x20\x01(\x0b2\x1a.google.spanner.v1.\ - SessionR\x07sessionB\x03\xe0A\x02\"\xd2\x01\n\x1aBatchCreateSessionsRequ\ - est\x12C\n\x08database\x18\x01\x20\x01(\tR\x08databaseB'\xfaA!\n\x1fspan\ - ner.googleapis.com/Database\xe0A\x02\x12E\n\x10session_template\x18\x02\ - \x20\x01(\x0b2\x1a.google.spanner.v1.SessionR\x0fsessionTemplate\x12(\n\ - \rsession_count\x18\x03\x20\x01(\x05R\x0csessionCountB\x03\xe0A\x02\"S\n\ - \x1bBatchCreateSessionsResponse\x124\n\x07session\x18\x01\x20\x03(\x0b2\ - \x1a.google.spanner.v1.SessionR\x07session\"\xd4\x03\n\x07Session\x12\ - \x17\n\x04name\x18\x01\x20\x01(\tR\x04nameB\x03\xe0A\x03\x12>\n\x06label\ - s\x18\x02\x20\x03(\x0b2&.google.spanner.v1.Session.LabelsEntryR\x06label\ - s\x12@\n\x0bcreate_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.Timest\ - ampR\ncreateTimeB\x03\xe0A\x03\x12Z\n\x19approximate_last_use_time\x18\ - \x04\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x16approximateLastUseT\ - imeB\x03\xe0A\x03\x12!\n\x0ccreator_role\x18\x05\x20\x01(\tR\x0bcreatorR\ - ole\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ - \x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01:t\xeaAq\n\x1e\ - spanner.googleapis.com/Session\x12Oprojects/{project}/instances/{instanc\ - e}/databases/{database}/sessions/{session}\"O\n\x11GetSessionRequest\x12\ - :\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\xfaA\x20\n\x1espanner.googleap\ - is.com/Session\xe0A\x02\"\xae\x01\n\x13ListSessionsRequest\x12C\n\x08dat\ - abase\x18\x01\x20\x01(\tR\x08databaseB'\xfaA!\n\x1fspanner.googleapis.co\ - m/Database\xe0A\x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSi\ - ze\x12\x1d\n\npage_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06fil\ - ter\x18\x04\x20\x01(\tR\x06filter\"v\n\x14ListSessionsResponse\x126\n\ - \x08sessions\x18\x01\x20\x03(\x0b2\x1a.google.spanner.v1.SessionR\x08ses\ - sions\x12&\n\x0fnext_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"R\n\ - \x14DeleteSessionRequest\x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\ - \xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\"\x82\x02\n\x0eRe\ - questOptions\x12F\n\x08priority\x18\x01\x20\x01(\x0e2*.google.spanner.v1\ - .RequestOptions.PriorityR\x08priority\x12\x1f\n\x0brequest_tag\x18\x02\ - \x20\x01(\tR\nrequestTag\x12'\n\x0ftransaction_tag\x18\x03\x20\x01(\tR\ - \x0etransactionTag\"^\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\ - \x10\0\x12\x10\n\x0cPRIORITY_LOW\x10\x01\x12\x13\n\x0fPRIORITY_MEDIUM\ - \x10\x02\x12\x11\n\rPRIORITY_HIGH\x10\x03\"\xc8\x07\n\x11ExecuteSqlReque\ - st\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espan\ - ner.googleapis.com/Session\xe0A\x02\x12H\n\x0btransaction\x18\x02\x20\ - \x01(\x0b2&.google.spanner.v1.TransactionSelectorR\x0btransaction\x12\ - \x15\n\x03sql\x18\x03\x20\x01(\tR\x03sqlB\x03\xe0A\x02\x12/\n\x06params\ - \x18\x04\x20\x01(\x0b2\x17.google.protobuf.StructR\x06params\x12U\n\x0bp\ - aram_types\x18\x05\x20\x03(\x0b24.google.spanner.v1.ExecuteSqlRequest.Pa\ - ramTypesEntryR\nparamTypes\x12!\n\x0cresume_token\x18\x06\x20\x01(\x0cR\ - \x0bresumeToken\x12M\n\nquery_mode\x18\x07\x20\x01(\x0e2..google.spanner\ - .v1.ExecuteSqlRequest.QueryModeR\tqueryMode\x12'\n\x0fpartition_token\ - \x18\x08\x20\x01(\x0cR\x0epartitionToken\x12\x14\n\x05seqno\x18\t\x20\ - \x01(\x03R\x05seqno\x12V\n\rquery_options\x18\n\x20\x01(\x0b21.google.sp\ - anner.v1.ExecuteSqlRequest.QueryOptionsR\x0cqueryOptions\x12J\n\x0freque\ - st_options\x18\x0b\x20\x01(\x0b2!.google.spanner.v1.RequestOptionsR\x0er\ - equestOptions\x12,\n\x12data_boost_enabled\x18\x10\x20\x01(\x08R\x10data\ - BoostEnabled\x1a}\n\x0cQueryOptions\x12+\n\x11optimizer_version\x18\x01\ - \x20\x01(\tR\x10optimizerVersion\x12@\n\x1coptimizer_statistics_package\ - \x18\x02\x20\x01(\tR\x1aoptimizerStatisticsPackage\x1aV\n\x0fParamTypesE\ - ntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\x05value\x18\x02\ - \x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x05value:\x028\x01\".\n\tQuer\ - yMode\x12\n\n\x06NORMAL\x10\0\x12\x08\n\x04PLAN\x10\x01\x12\x0b\n\x07PRO\ - FILE\x10\x02\"\xfe\x04\n\x16ExecuteBatchDmlRequest\x12@\n\x07session\x18\ - \x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/Sessi\ - on\xe0A\x02\x12M\n\x0btransaction\x18\x02\x20\x01(\x0b2&.google.spanner.\ - v1.TransactionSelectorR\x0btransactionB\x03\xe0A\x02\x12X\n\nstatements\ - \x18\x03\x20\x03(\x0b23.google.spanner.v1.ExecuteBatchDmlRequest.Stateme\ - ntR\nstatementsB\x03\xe0A\x02\x12\x19\n\x05seqno\x18\x04\x20\x01(\x03R\ - \x05seqnoB\x03\xe0A\x02\x12J\n\x0frequest_options\x18\x05\x20\x01(\x0b2!\ - .google.spanner.v1.RequestOptionsR\x0erequestOptions\x1a\x91\x02\n\tStat\ - ement\x12\x15\n\x03sql\x18\x01\x20\x01(\tR\x03sqlB\x03\xe0A\x02\x12/\n\ - \x06params\x18\x02\x20\x01(\x0b2\x17.google.protobuf.StructR\x06params\ - \x12d\n\x0bparam_types\x18\x03\x20\x03(\x0b2C.google.spanner.v1.ExecuteB\ - atchDmlRequest.Statement.ParamTypesEntryR\nparamTypes\x1aV\n\x0fParamTyp\ - esEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\x05value\x18\ - \x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x05value:\x028\x01\"\x84\ - \x01\n\x17ExecuteBatchDmlResponse\x12=\n\x0bresult_sets\x18\x01\x20\x03(\ - \x0b2\x1c.google.spanner.v1.ResultSetR\nresultSets\x12*\n\x06status\x18\ - \x02\x20\x01(\x0b2\x12.google.rpc.StatusR\x06status\"k\n\x10PartitionOpt\ - ions\x120\n\x14partition_size_bytes\x18\x01\x20\x01(\x03R\x12partitionSi\ - zeBytes\x12%\n\x0emax_partitions\x18\x02\x20\x01(\x03R\rmaxPartitions\"\ - \xf0\x03\n\x15PartitionQueryRequest\x12@\n\x07session\x18\x01\x20\x01(\t\ - R\x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12\ - H\n\x0btransaction\x18\x02\x20\x01(\x0b2&.google.spanner.v1.TransactionS\ - electorR\x0btransaction\x12\x15\n\x03sql\x18\x03\x20\x01(\tR\x03sqlB\x03\ - \xe0A\x02\x12/\n\x06params\x18\x04\x20\x01(\x0b2\x17.google.protobuf.Str\ - uctR\x06params\x12Y\n\x0bparam_types\x18\x05\x20\x03(\x0b28.google.spann\ - er.v1.PartitionQueryRequest.ParamTypesEntryR\nparamTypes\x12P\n\x11parti\ - tion_options\x18\x06\x20\x01(\x0b2#.google.spanner.v1.PartitionOptionsR\ - \x10partitionOptions\x1aV\n\x0fParamTypesEntry\x12\x10\n\x03key\x18\x01\ - \x20\x01(\tR\x03key\x12-\n\x05value\x18\x02\x20\x01(\x0b2\x17.google.spa\ - nner.v1.TypeR\x05value:\x028\x01\"\xf8\x02\n\x14PartitionReadRequest\x12\ - @\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.go\ - ogleapis.com/Session\xe0A\x02\x12H\n\x0btransaction\x18\x02\x20\x01(\x0b\ - 2&.google.spanner.v1.TransactionSelectorR\x0btransaction\x12\x19\n\x05ta\ - ble\x18\x03\x20\x01(\tR\x05tableB\x03\xe0A\x02\x12\x14\n\x05index\x18\ - \x04\x20\x01(\tR\x05index\x12\x18\n\x07columns\x18\x05\x20\x03(\tR\x07co\ - lumns\x127\n\x07key_set\x18\x06\x20\x01(\x0b2\x19.google.spanner.v1.KeyS\ - etR\x06keySetB\x03\xe0A\x02\x12P\n\x11partition_options\x18\t\x20\x01(\ - \x0b2#.google.spanner.v1.PartitionOptionsR\x10partitionOptions\"4\n\tPar\ - tition\x12'\n\x0fpartition_token\x18\x01\x20\x01(\x0cR\x0epartitionToken\ - \"\x93\x01\n\x11PartitionResponse\x12<\n\npartitions\x18\x01\x20\x03(\ - \x0b2\x1c.google.spanner.v1.PartitionR\npartitions\x12@\n\x0btransaction\ - \x18\x02\x20\x01(\x0b2\x1e.google.spanner.v1.TransactionR\x0btransaction\ - \"\xfe\x03\n\x0bReadRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07ses\ - sionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12H\n\x0bt\ - ransaction\x18\x02\x20\x01(\x0b2&.google.spanner.v1.TransactionSelectorR\ - \x0btransaction\x12\x19\n\x05table\x18\x03\x20\x01(\tR\x05tableB\x03\xe0\ - A\x02\x12\x14\n\x05index\x18\x04\x20\x01(\tR\x05index\x12\x1d\n\x07colum\ - ns\x18\x05\x20\x03(\tR\x07columnsB\x03\xe0A\x02\x127\n\x07key_set\x18\ - \x06\x20\x01(\x0b2\x19.google.spanner.v1.KeySetR\x06keySetB\x03\xe0A\x02\ - \x12\x14\n\x05limit\x18\x08\x20\x01(\x03R\x05limit\x12!\n\x0cresume_toke\ - n\x18\t\x20\x01(\x0cR\x0bresumeToken\x12'\n\x0fpartition_token\x18\n\x20\ - \x01(\x0cR\x0epartitionToken\x12J\n\x0frequest_options\x18\x0b\x20\x01(\ - \x0b2!.google.spanner.v1.RequestOptionsR\x0erequestOptions\x12,\n\x12dat\ - a_boost_enabled\x18\x0f\x20\x01(\x08R\x10dataBoostEnabled\"\xed\x01\n\ - \x17BeginTransactionRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07ses\ - sionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12D\n\x07o\ - ptions\x18\x02\x20\x01(\x0b2%.google.spanner.v1.TransactionOptionsR\x07o\ - ptionsB\x03\xe0A\x02\x12J\n\x0frequest_options\x18\x03\x20\x01(\x0b2!.go\ - ogle.spanner.v1.RequestOptionsR\x0erequestOptions\"\x9f\x03\n\rCommitReq\ + rotobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1cgoogle/spa\ + nner/v1/keys.proto\x1a\x20google/spanner/v1/mutation.proto\x1a\"google/s\ + panner/v1/result_set.proto\x1a#google/spanner/v1/transaction.proto\x1a\ + \x1cgoogle/spanner/v1/type.proto\"\x91\x01\n\x14CreateSessionRequest\x12\ + C\n\x08database\x18\x01\x20\x01(\tR\x08databaseB'\xfaA!\n\x1fspanner.goo\ + gleapis.com/Database\xe0A\x02\x124\n\x07session\x18\x02\x20\x01(\x0b2\ + \x1a.google.spanner.v1.SessionR\x07session\"\xd2\x01\n\x1aBatchCreateSes\ + sionsRequest\x12C\n\x08database\x18\x01\x20\x01(\tR\x08databaseB'\xfaA!\ + \n\x1fspanner.googleapis.com/Database\xe0A\x02\x12E\n\x10session_templat\ + e\x18\x02\x20\x01(\x0b2\x1a.google.spanner.v1.SessionR\x0fsessionTemplat\ + e\x12(\n\rsession_count\x18\x03\x20\x01(\x05R\x0csessionCountB\x03\xe0A\ + \x02\"S\n\x1bBatchCreateSessionsResponse\x124\n\x07session\x18\x01\x20\ + \x03(\x0b2\x1a.google.spanner.v1.SessionR\x07session\"\xa2\x03\n\x07Sess\ + ion\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12>\n\x06labels\x18\ + \x02\x20\x03(\x0b2&.google.spanner.v1.Session.LabelsEntryR\x06labels\x12\ + ;\n\x0bcreate_time\x18\x03\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ + \ncreateTime\x12U\n\x19approximate_last_use_time\x18\x04\x20\x01(\x0b2\ + \x1a.google.protobuf.TimestampR\x16approximateLastUseTime\x1a9\n\x0bLabe\ + lsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\ + \x18\x02\x20\x01(\tR\x05value:\x028\x01:t\xeaAq\n\x1espanner.googleapis.\ + com/Session\x12Oprojects/{project}/instances/{instance}/databases/{datab\ + ase}/sessions/{session}\"O\n\x11GetSessionRequest\x12:\n\x04name\x18\x01\ + \x20\x01(\tR\x04nameB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\ + \x02\"\xae\x01\n\x13ListSessionsRequest\x12C\n\x08database\x18\x01\x20\ + \x01(\tR\x08databaseB'\xfaA!\n\x1fspanner.googleapis.com/Database\xe0A\ + \x02\x12\x1b\n\tpage_size\x18\x02\x20\x01(\x05R\x08pageSize\x12\x1d\n\np\ + age_token\x18\x03\x20\x01(\tR\tpageToken\x12\x16\n\x06filter\x18\x04\x20\ + \x01(\tR\x06filter\"v\n\x14ListSessionsResponse\x126\n\x08sessions\x18\ + \x01\x20\x03(\x0b2\x1a.google.spanner.v1.SessionR\x08sessions\x12&\n\x0f\ + next_page_token\x18\x02\x20\x01(\tR\rnextPageToken\"R\n\x14DeleteSession\ + Request\x12:\n\x04name\x18\x01\x20\x01(\tR\x04nameB&\xfaA\x20\n\x1espann\ + er.googleapis.com/Session\xe0A\x02\"\xf7\x04\n\x11ExecuteSqlRequest\x12@\ + \n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.goo\ + gleapis.com/Session\xe0A\x02\x12H\n\x0btransaction\x18\x02\x20\x01(\x0b2\ + &.google.spanner.v1.TransactionSelectorR\x0btransaction\x12\x15\n\x03sql\ + \x18\x03\x20\x01(\tR\x03sqlB\x03\xe0A\x02\x12/\n\x06params\x18\x04\x20\ + \x01(\x0b2\x17.google.protobuf.StructR\x06params\x12U\n\x0bparam_types\ + \x18\x05\x20\x03(\x0b24.google.spanner.v1.ExecuteSqlRequest.ParamTypesEn\ + tryR\nparamTypes\x12!\n\x0cresume_token\x18\x06\x20\x01(\x0cR\x0bresumeT\ + oken\x12M\n\nquery_mode\x18\x07\x20\x01(\x0e2..google.spanner.v1.Execute\ + SqlRequest.QueryModeR\tqueryMode\x12'\n\x0fpartition_token\x18\x08\x20\ + \x01(\x0cR\x0epartitionToken\x12\x14\n\x05seqno\x18\t\x20\x01(\x03R\x05s\ + eqno\x1aV\n\x0fParamTypesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03k\ + ey\x12-\n\x05value\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x05\ + value:\x028\x01\".\n\tQueryMode\x12\n\n\x06NORMAL\x10\0\x12\x08\n\x04PLA\ + N\x10\x01\x12\x0b\n\x07PROFILE\x10\x02\"\xad\x04\n\x16ExecuteBatchDmlReq\ uest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1esp\ - anner.googleapis.com/Session\xe0A\x02\x12'\n\x0etransaction_id\x18\x02\ - \x20\x01(\x0cH\0R\rtransactionId\x12]\n\x16single_use_transaction\x18\ - \x03\x20\x01(\x0b2%.google.spanner.v1.TransactionOptionsH\0R\x14singleUs\ - eTransaction\x129\n\tmutations\x18\x04\x20\x03(\x0b2\x1b.google.spanner.\ - v1.MutationR\tmutations\x12.\n\x13return_commit_stats\x18\x05\x20\x01(\ - \x08R\x11returnCommitStats\x12J\n\x0frequest_options\x18\x06\x20\x01(\ - \x0b2!.google.spanner.v1.RequestOptionsR\x0erequestOptionsB\r\n\x0btrans\ - action\"\x7f\n\x0fRollbackRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\ - \x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12*\ - \n\x0etransaction_id\x18\x02\x20\x01(\x0cR\rtransactionIdB\x03\xe0A\x02\ - \"\xd4\x02\n\x11BatchWriteRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\ - \x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12J\ - \n\x0frequest_options\x18\x03\x20\x01(\x0b2!.google.spanner.v1.RequestOp\ - tionsR\x0erequestOptions\x12`\n\x0fmutation_groups\x18\x04\x20\x03(\x0b2\ - 2.google.spanner.v1.BatchWriteRequest.MutationGroupR\x0emutationGroupsB\ - \x03\xe0A\x02\x1aO\n\rMutationGroup\x12>\n\tmutations\x18\x01\x20\x03(\ - \x0b2\x1b.google.spanner.v1.MutationR\tmutationsB\x03\xe0A\x02\"\xa1\x01\ - \n\x12BatchWriteResponse\x12\x18\n\x07indexes\x18\x01\x20\x03(\x05R\x07i\ - ndexes\x12*\n\x06status\x18\x02\x20\x01(\x0b2\x12.google.rpc.StatusR\x06\ - status\x12E\n\x10commit_timestamp\x18\x03\x20\x01(\x0b2\x1a.google.proto\ - buf.TimestampR\x0fcommitTimestamp2\x8b\x18\n\x07Spanner\x12\xa6\x01\n\rC\ - reateSession\x12'.google.spanner.v1.CreateSessionRequest\x1a\x1a.google.\ - spanner.v1.Session\"P\x82\xd3\xe4\x93\x02?\":/v1/{database=projects/*/in\ - stances/*/databases/*}/sessions:\x01*\xdaA\x08database\x12\xe0\x01\n\x13\ - BatchCreateSessions\x12-.google.spanner.v1.BatchCreateSessionsRequest\ - \x1a..google.spanner.v1.BatchCreateSessionsResponse\"j\x82\xd3\xe4\x93\ - \x02K\"F/v1/{database=projects/*/instances/*/databases/*}/sessions:batch\ - Create:\x01*\xdaA\x16database,session_count\x12\x97\x01\n\nGetSession\ - \x12$.google.spanner.v1.GetSessionRequest\x1a\x1a.google.spanner.v1.Sess\ - ion\"G\x82\xd3\xe4\x93\x02:\x128/v1/{name=projects/*/instances/*/databas\ - es/*/sessions/*}\xdaA\x04name\x12\xae\x01\n\x0cListSessions\x12&.google.\ - spanner.v1.ListSessionsRequest\x1a'.google.spanner.v1.ListSessionsRespon\ - se\"M\x82\xd3\xe4\x93\x02<\x12:/v1/{database=projects/*/instances/*/data\ - bases/*}/sessions\xdaA\x08database\x12\x99\x01\n\rDeleteSession\x12'.goo\ - gle.spanner.v1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"G\x82\ - \xd3\xe4\x93\x02:*8/v1/{name=projects/*/instances/*/databases/*/sessions\ - /*}\xdaA\x04name\x12\xa3\x01\n\nExecuteSql\x12$.google.spanner.v1.Execut\ - eSqlRequest\x1a\x1c.google.spanner.v1.ResultSet\"Q\x82\xd3\xe4\x93\x02K\ - \"F/v1/{session=projects/*/instances/*/databases/*/sessions/*}:executeSq\ - l:\x01*\x12\xbe\x01\n\x13ExecuteStreamingSql\x12$.google.spanner.v1.Exec\ - uteSqlRequest\x1a#.google.spanner.v1.PartialResultSet\"Z\x82\xd3\xe4\x93\ - \x02T\"O/v1/{session=projects/*/instances/*/databases/*/sessions/*}:exec\ - uteStreamingSql:\x01*0\x01\x12\xc0\x01\n\x0fExecuteBatchDml\x12).google.\ - spanner.v1.ExecuteBatchDmlRequest\x1a*.google.spanner.v1.ExecuteBatchDml\ - Response\"V\x82\xd3\xe4\x93\x02P\"K/v1/{session=projects/*/instances/*/d\ - atabases/*/sessions/*}:executeBatchDml:\x01*\x12\x91\x01\n\x04Read\x12\ - \x1e.google.spanner.v1.ReadRequest\x1a\x1c.google.spanner.v1.ResultSet\"\ - K\x82\xd3\xe4\x93\x02E\"@/v1/{session=projects/*/instances/*/databases/*\ - /sessions/*}:read:\x01*\x12\xac\x01\n\rStreamingRead\x12\x1e.google.span\ - ner.v1.ReadRequest\x1a#.google.spanner.v1.PartialResultSet\"T\x82\xd3\ - \xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions\ - /*}:streamingRead:\x01*0\x01\x12\xc9\x01\n\x10BeginTransaction\x12*.goog\ - le.spanner.v1.BeginTransactionRequest\x1a\x1e.google.spanner.v1.Transact\ - ion\"i\x82\xd3\xe4\x93\x02Q\"L/v1/{session=projects/*/instances/*/databa\ - ses/*/sessions/*}:beginTransaction:\x01*\xdaA\x0fsession,options\x12\xeb\ - \x01\n\x06Commit\x12\x20.google.spanner.v1.CommitRequest\x1a!.google.spa\ - nner.v1.CommitResponse\"\x9b\x01\x82\xd3\xe4\x93\x02G\"B/v1/{session=pro\ - jects/*/instances/*/databases/*/sessions/*}:commit:\x01*\xdaA\x20session\ - ,transaction_id,mutations\xdaA(session,single_use_transaction,mutations\ - \x12\xb0\x01\n\x08Rollback\x12\".google.spanner.v1.RollbackRequest\x1a\ - \x16.google.protobuf.Empty\"h\x82\xd3\xe4\x93\x02I\"D/v1/{session=projec\ - ts/*/instances/*/databases/*/sessions/*}:rollback:\x01*\xdaA\x16session,\ - transaction_id\x12\xb7\x01\n\x0ePartitionQuery\x12(.google.spanner.v1.Pa\ - rtitionQueryRequest\x1a$.google.spanner.v1.PartitionResponse\"U\x82\xd3\ - \xe4\x93\x02O\"J/v1/{session=projects/*/instances/*/databases/*/sessions\ - /*}:partitionQuery:\x01*\x12\xb4\x01\n\rPartitionRead\x12'.google.spanne\ - r.v1.PartitionReadRequest\x1a$.google.spanner.v1.PartitionResponse\"T\ - \x82\xd3\xe4\x93\x02N\"I/v1/{session=projects/*/instances/*/databases/*/\ - sessions/*}:partitionRead:\x01*\x12\xc8\x01\n\nBatchWrite\x12$.google.sp\ - anner.v1.BatchWriteRequest\x1a%.google.spanner.v1.BatchWriteResponse\"k\ - \x82\xd3\xe4\x93\x02K\"F/v1/{session=projects/*/instances/*/databases/*/\ - sessions/*}:batchWrite:\x01*\xdaA\x17session,mutation_groups0\x01\x1aw\ - \xd2A[https://www.googleapis.com/auth/cloud-platform,https://www.googlea\ - pis.com/auth/spanner.data\xcaA\x16spanner.googleapis.comB\x91\x02\n\x15c\ - om.google.spanner.v1B\x0cSpannerProtoP\x01Z5cloud.google.com/go/spanner/\ - apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17\ - Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner::V1\xeaA_\n\ - \x1fspanner.googleapis.com/Database\x12\n\x0c\n\x05\x06\0\x03\x99\x08\x12\x032\x02>\n\x0b\n\ - \x03\x06\0\x03\x12\x043\x0255\n\r\n\x05\x06\0\x03\x9a\x08\x12\x043\x0255\ - \n\xe7\x06\n\x04\x06\0\x02\0\x12\x04J\x02P\x03\x1a\xd8\x06\x20Creates\ - \x20a\x20new\x20session.\x20A\x20session\x20can\x20be\x20used\x20to\x20p\ - erform\n\x20transactions\x20that\x20read\x20and/or\x20modify\x20data\x20\ - in\x20a\x20Cloud\x20Spanner\x20database.\n\x20Sessions\x20are\x20meant\ - \x20to\x20be\x20reused\x20for\x20many\x20consecutive\n\x20transactions.\ - \n\n\x20Sessions\x20can\x20only\x20execute\x20one\x20transaction\x20at\ - \x20a\x20time.\x20To\x20execute\n\x20multiple\x20concurrent\x20read-writ\ - e/write-only\x20transactions,\x20create\n\x20multiple\x20sessions.\x20No\ - te\x20that\x20standalone\x20reads\x20and\x20queries\x20use\x20a\n\x20tra\ - nsaction\x20internally,\x20and\x20count\x20toward\x20the\x20one\x20trans\ - action\n\x20limit.\n\n\x20Active\x20sessions\x20use\x20additional\x20ser\ - ver\x20resources,\x20so\x20it\x20is\x20a\x20good\x20idea\x20to\n\x20dele\ - te\x20idle\x20and\x20unneeded\x20sessions.\n\x20Aside\x20from\x20explici\ - t\x20deletes,\x20Cloud\x20Spanner\x20may\x20delete\x20sessions\x20for\ - \x20which\x20no\n\x20operations\x20are\x20sent\x20for\x20more\x20than\ - \x20an\x20hour.\x20If\x20a\x20session\x20is\x20deleted,\n\x20requests\ - \x20to\x20it\x20return\x20`NOT_FOUND`.\n\n\x20Idle\x20sessions\x20can\ - \x20be\x20kept\x20alive\x20by\x20sending\x20a\x20trivial\x20SQL\x20query\ - \n\x20periodically,\x20e.g.,\x20`\"SELECT\x201\"`.\n\n\x0c\n\x05\x06\0\ - \x02\0\x01\x12\x03J\x06\x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03J\x14(\n\ - \x0c\n\x05\x06\0\x02\0\x03\x12\x03J3:\n\r\n\x05\x06\0\x02\0\x04\x12\x04K\ - \x04N\x06\n\x11\n\t\x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04K\x04N\x06\n\ - \x0c\n\x05\x06\0\x02\0\x04\x12\x03O\x046\n\x0f\n\x08\x06\0\x02\0\x04\x9b\ - \x08\0\x12\x03O\x046\n\xbf\x01\n\x04\x06\0\x02\x01\x12\x04V\x02\\\x03\ - \x1a\xb0\x01\x20Creates\x20multiple\x20new\x20sessions.\n\n\x20This\x20A\ - PI\x20can\x20be\x20used\x20to\x20initialize\x20a\x20session\x20cache\x20\ - on\x20the\x20clients.\n\x20See\x20https://goo.gl/TgSFN2\x20for\x20best\ - \x20practices\x20on\x20session\x20cache\x20management.\n\n\x0c\n\x05\x06\ - \0\x02\x01\x01\x12\x03V\x06\x19\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03V\ - \x1a4\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03V?Z\n\r\n\x05\x06\0\x02\x01\ - \x04\x12\x04W\x04Z\x06\n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04\ - W\x04Z\x06\n\x0c\n\x05\x06\0\x02\x01\x04\x12\x03[\x04D\n\x0f\n\x08\x06\0\ - \x02\x01\x04\x9b\x08\0\x12\x03[\x04D\n\x9d\x01\n\x04\x06\0\x02\x02\x12\ - \x04a\x02f\x03\x1a\x8e\x01\x20Gets\x20a\x20session.\x20Returns\x20`NOT_F\ - OUND`\x20if\x20the\x20session\x20does\x20not\x20exist.\n\x20This\x20is\ - \x20mainly\x20useful\x20for\x20determining\x20whether\x20a\x20session\ - \x20is\x20still\n\x20alive.\n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03a\x06\ - \x10\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03a\x11\"\n\x0c\n\x05\x06\0\x02\ - \x02\x03\x12\x03a-4\n\r\n\x05\x06\0\x02\x02\x04\x12\x04b\x04d\x06\n\x11\ - \n\t\x06\0\x02\x02\x04\xb0\xca\xbc\"\x12\x04b\x04d\x06\n\x0c\n\x05\x06\0\ - \x02\x02\x04\x12\x03e\x042\n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\ - \x03e\x042\n7\n\x04\x06\0\x02\x03\x12\x04i\x02n\x03\x1a)\x20Lists\x20all\ - \x20sessions\x20in\x20a\x20given\x20database.\n\n\x0c\n\x05\x06\0\x02\ - \x03\x01\x12\x03i\x06\x12\n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03i\x13&\n\ - \x0c\n\x05\x06\0\x02\x03\x03\x12\x03i1E\n\r\n\x05\x06\0\x02\x03\x04\x12\ - \x04j\x04l\x06\n\x11\n\t\x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04j\x04l\ - \x06\n\x0c\n\x05\x06\0\x02\x03\x04\x12\x03m\x046\n\x0f\n\x08\x06\0\x02\ - \x03\x04\x9b\x08\0\x12\x03m\x046\n\xb5\x01\n\x04\x06\0\x02\x04\x12\x04s\ - \x02x\x03\x1a\xa6\x01\x20Ends\x20a\x20session,\x20releasing\x20server\ - \x20resources\x20associated\x20with\x20it.\x20This\x20will\n\x20asynchro\ - nously\x20trigger\x20cancellation\x20of\x20any\x20operations\x20that\x20\ - are\x20running\x20with\n\x20this\x20session.\n\n\x0c\n\x05\x06\0\x02\x04\ - \x01\x12\x03s\x06\x13\n\x0c\n\x05\x06\0\x02\x04\x02\x12\x03s\x14(\n\x0c\ - \n\x05\x06\0\x02\x04\x03\x12\x03s3H\n\r\n\x05\x06\0\x02\x04\x04\x12\x04t\ - \x04v\x06\n\x11\n\t\x06\0\x02\x04\x04\xb0\xca\xbc\"\x12\x04t\x04v\x06\n\ - \x0c\n\x05\x06\0\x02\x04\x04\x12\x03w\x042\n\x0f\n\x08\x06\0\x02\x04\x04\ - \x9b\x08\0\x12\x03w\x042\n\xeb\x04\n\x04\x06\0\x02\x05\x12\x06\x85\x01\ - \x02\x8a\x01\x03\x1a\xda\x04\x20Executes\x20an\x20SQL\x20statement,\x20r\ - eturning\x20all\x20results\x20in\x20a\x20single\x20reply.\x20This\n\x20m\ - ethod\x20cannot\x20be\x20used\x20to\x20return\x20a\x20result\x20set\x20l\ - arger\x20than\x2010\x20MiB;\n\x20if\x20the\x20query\x20yields\x20more\ - \x20data\x20than\x20that,\x20the\x20query\x20fails\x20with\n\x20a\x20`FA\ - ILED_PRECONDITION`\x20error.\n\n\x20Operations\x20inside\x20read-write\ - \x20transactions\x20might\x20return\x20`ABORTED`.\x20If\n\x20this\x20occ\ - urs,\x20the\x20application\x20should\x20restart\x20the\x20transaction\ - \x20from\n\x20the\x20beginning.\x20See\x20[Transaction][google.spanner.v\ - 1.Transaction]\x20for\x20more\x20details.\n\n\x20Larger\x20result\x20set\ - s\x20can\x20be\x20fetched\x20in\x20streaming\x20fashion\x20by\x20calling\ - \n\x20[ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSq\ - l]\x20instead.\n\n\r\n\x05\x06\0\x02\x05\x01\x12\x04\x85\x01\x06\x10\n\r\ - \n\x05\x06\0\x02\x05\x02\x12\x04\x85\x01\x11\"\n\r\n\x05\x06\0\x02\x05\ - \x03\x12\x04\x85\x01-6\n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x86\x01\x04\ - \x89\x01\x06\n\x13\n\t\x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x86\x01\ - \x04\x89\x01\x06\n\xd7\x02\n\x04\x06\0\x02\x06\x12\x06\x91\x01\x02\x96\ - \x01\x03\x1a\xc6\x02\x20Like\x20[ExecuteSql][google.spanner.v1.Spanner.E\ - xecuteSql],\x20except\x20returns\x20the\x20result\n\x20set\x20as\x20a\ - \x20stream.\x20Unlike\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteS\ - ql],\x20there\n\x20is\x20no\x20limit\x20on\x20the\x20size\x20of\x20the\ - \x20returned\x20result\x20set.\x20However,\x20no\n\x20individual\x20row\ - \x20in\x20the\x20result\x20set\x20can\x20exceed\x20100\x20MiB,\x20and\ - \x20no\n\x20column\x20value\x20can\x20exceed\x2010\x20MiB.\n\n\r\n\x05\ - \x06\0\x02\x06\x01\x12\x04\x91\x01\x06\x19\n\r\n\x05\x06\0\x02\x06\x02\ - \x12\x04\x91\x01\x1a+\n\r\n\x05\x06\0\x02\x06\x06\x12\x04\x91\x016<\n\r\ - \n\x05\x06\0\x02\x06\x03\x12\x04\x91\x01=M\n\x0f\n\x05\x06\0\x02\x06\x04\ - \x12\x06\x92\x01\x04\x95\x01\x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\ - \"\x12\x06\x92\x01\x04\x95\x01\x06\n\x85\x05\n\x04\x06\0\x02\x07\x12\x06\ - \xa3\x01\x02\xa8\x01\x03\x1a\xf4\x04\x20Executes\x20a\x20batch\x20of\x20\ - SQL\x20DML\x20statements.\x20This\x20method\x20allows\x20many\x20stateme\ - nts\n\x20to\x20be\x20run\x20with\x20lower\x20latency\x20than\x20submitti\ - ng\x20them\x20sequentially\x20with\n\x20[ExecuteSql][google.spanner.v1.S\ - panner.ExecuteSql].\n\n\x20Statements\x20are\x20executed\x20in\x20sequen\ - tial\x20order.\x20A\x20request\x20can\x20succeed\x20even\x20if\n\x20a\ - \x20statement\x20fails.\x20The\x20[ExecuteBatchDmlResponse.status][googl\ - e.spanner.v1.ExecuteBatchDmlResponse.status]\x20field\x20in\x20the\n\x20\ - response\x20provides\x20information\x20about\x20the\x20statement\x20that\ - \x20failed.\x20Clients\x20must\n\x20inspect\x20this\x20field\x20to\x20de\ - termine\x20whether\x20an\x20error\x20occurred.\n\n\x20Execution\x20stops\ - \x20after\x20the\x20first\x20failed\x20statement;\x20the\x20remaining\ - \x20statements\n\x20are\x20not\x20executed.\n\n\r\n\x05\x06\0\x02\x07\ - \x01\x12\x04\xa3\x01\x06\x15\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xa3\x01\ - \x16,\n\r\n\x05\x06\0\x02\x07\x03\x12\x04\xa3\x017N\n\x0f\n\x05\x06\0\ - \x02\x07\x04\x12\x06\xa4\x01\x04\xa7\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\ - \xb0\xca\xbc\"\x12\x06\xa4\x01\x04\xa7\x01\x06\n\xb1\x05\n\x04\x06\0\x02\ - \x08\x12\x06\xb7\x01\x02\xbc\x01\x03\x1a\xa0\x05\x20Reads\x20rows\x20fro\ - m\x20the\x20database\x20using\x20key\x20lookups\x20and\x20scans,\x20as\ - \x20a\n\x20simple\x20key/value\x20style\x20alternative\x20to\n\x20[Execu\ - teSql][google.spanner.v1.Spanner.ExecuteSql].\x20\x20This\x20method\x20c\ - annot\x20be\x20used\x20to\n\x20return\x20a\x20result\x20set\x20larger\ - \x20than\x2010\x20MiB;\x20if\x20the\x20read\x20matches\x20more\n\x20data\ - \x20than\x20that,\x20the\x20read\x20fails\x20with\x20a\x20`FAILED_PRECON\ - DITION`\n\x20error.\n\n\x20Reads\x20inside\x20read-write\x20transactions\ - \x20might\x20return\x20`ABORTED`.\x20If\n\x20this\x20occurs,\x20the\x20a\ - pplication\x20should\x20restart\x20the\x20transaction\x20from\n\x20the\ - \x20beginning.\x20See\x20[Transaction][google.spanner.v1.Transaction]\ - \x20for\x20more\x20details.\n\n\x20Larger\x20result\x20sets\x20can\x20be\ - \x20yielded\x20in\x20streaming\x20fashion\x20by\x20calling\n\x20[Streami\ - ngRead][google.spanner.v1.Spanner.StreamingRead]\x20instead.\n\n\r\n\x05\ - \x06\0\x02\x08\x01\x12\x04\xb7\x01\x06\n\n\r\n\x05\x06\0\x02\x08\x02\x12\ - \x04\xb7\x01\x0b\x16\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\xb7\x01!*\n\x0f\ - \n\x05\x06\0\x02\x08\x04\x12\x06\xb8\x01\x04\xbb\x01\x06\n\x13\n\t\x06\0\ - \x02\x08\x04\xb0\xca\xbc\"\x12\x06\xb8\x01\x04\xbb\x01\x06\n\xbf\x02\n\ - \x04\x06\0\x02\t\x12\x06\xc3\x01\x02\xc8\x01\x03\x1a\xae\x02\x20Like\x20\ - [Read][google.spanner.v1.Spanner.Read],\x20except\x20returns\x20the\x20r\ - esult\x20set\x20as\x20a\n\x20stream.\x20Unlike\x20[Read][google.spanner.\ - v1.Spanner.Read],\x20there\x20is\x20no\x20limit\x20on\x20the\n\x20size\ - \x20of\x20the\x20returned\x20result\x20set.\x20However,\x20no\x20individ\ - ual\x20row\x20in\n\x20the\x20result\x20set\x20can\x20exceed\x20100\x20Mi\ - B,\x20and\x20no\x20column\x20value\x20can\x20exceed\n\x2010\x20MiB.\n\n\ - \r\n\x05\x06\0\x02\t\x01\x12\x04\xc3\x01\x06\x13\n\r\n\x05\x06\0\x02\t\ - \x02\x12\x04\xc3\x01\x14\x1f\n\r\n\x05\x06\0\x02\t\x06\x12\x04\xc3\x01*0\ - \n\r\n\x05\x06\0\x02\t\x03\x12\x04\xc3\x011A\n\x0f\n\x05\x06\0\x02\t\x04\ - \x12\x06\xc4\x01\x04\xc7\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\ - \x12\x06\xc4\x01\x04\xc7\x01\x06\n\x87\x02\n\x04\x06\0\x02\n\x12\x06\xce\ - \x01\x02\xd4\x01\x03\x1a\xf6\x01\x20Begins\x20a\x20new\x20transaction.\ - \x20This\x20step\x20can\x20often\x20be\x20skipped:\n\x20[Read][google.sp\ - anner.v1.Spanner.Read],\x20[ExecuteSql][google.spanner.v1.Spanner.Execut\ - eSql]\x20and\n\x20[Commit][google.spanner.v1.Spanner.Commit]\x20can\x20b\ - egin\x20a\x20new\x20transaction\x20as\x20a\n\x20side-effect.\n\n\r\n\x05\ - \x06\0\x02\n\x01\x12\x04\xce\x01\x06\x16\n\r\n\x05\x06\0\x02\n\x02\x12\ - \x04\xce\x01\x17.\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xce\x019D\n\x0f\n\ - \x05\x06\0\x02\n\x04\x12\x06\xcf\x01\x04\xd2\x01\x06\n\x13\n\t\x06\0\x02\ - \n\x04\xb0\xca\xbc\"\x12\x06\xcf\x01\x04\xd2\x01\x06\n\r\n\x05\x06\0\x02\ - \n\x04\x12\x04\xd3\x01\x04=\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\x12\ - \x04\xd3\x01\x04=\n\x83\x06\n\x04\x06\0\x02\x0b\x12\x06\xe4\x01\x02\xeb\ - \x01\x03\x1a\xf2\x05\x20Commits\x20a\x20transaction.\x20The\x20request\ - \x20includes\x20the\x20mutations\x20to\x20be\n\x20applied\x20to\x20rows\ - \x20in\x20the\x20database.\n\n\x20`Commit`\x20might\x20return\x20an\x20`\ - ABORTED`\x20error.\x20This\x20can\x20occur\x20at\x20any\x20time;\n\x20co\ - mmonly,\x20the\x20cause\x20is\x20conflicts\x20with\x20concurrent\n\x20tr\ - ansactions.\x20However,\x20it\x20can\x20also\x20happen\x20for\x20a\x20va\ - riety\x20of\x20other\n\x20reasons.\x20If\x20`Commit`\x20returns\x20`ABOR\ - TED`,\x20the\x20caller\x20should\x20re-attempt\n\x20the\x20transaction\ - \x20from\x20the\x20beginning,\x20re-using\x20the\x20same\x20session.\n\n\ - \x20On\x20very\x20rare\x20occasions,\x20`Commit`\x20might\x20return\x20`\ - UNKNOWN`.\x20This\x20can\x20happen,\n\x20for\x20example,\x20if\x20the\ - \x20client\x20job\x20experiences\x20a\x201+\x20hour\x20networking\x20fai\ - lure.\n\x20At\x20that\x20point,\x20Cloud\x20Spanner\x20has\x20lost\x20tr\ - ack\x20of\x20the\x20transaction\x20outcome\x20and\n\x20we\x20recommend\ - \x20that\x20you\x20perform\x20another\x20read\x20from\x20the\x20database\ - \x20to\x20see\x20the\n\x20state\x20of\x20things\x20as\x20they\x20are\x20\ - now.\n\n\r\n\x05\x06\0\x02\x0b\x01\x12\x04\xe4\x01\x06\x0c\n\r\n\x05\x06\ - \0\x02\x0b\x02\x12\x04\xe4\x01\r\x1a\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\ - \xe4\x01%3\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xe5\x01\x04\xe8\x01\x06\ - \n\x13\n\t\x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xe5\x01\x04\xe8\x01\ - \x06\n\r\n\x05\x06\0\x02\x0b\x04\x12\x04\xe9\x01\x04N\n\x10\n\x08\x06\0\ - \x02\x0b\x04\x9b\x08\0\x12\x04\xe9\x01\x04N\n\r\n\x05\x06\0\x02\x0b\x04\ - \x12\x04\xea\x01\x04V\n\x10\n\x08\x06\0\x02\x0b\x04\x9b\x08\x01\x12\x04\ - \xea\x01\x04V\n\xd7\x03\n\x04\x06\0\x02\x0c\x12\x06\xf5\x01\x02\xfb\x01\ - \x03\x1a\xc6\x03\x20Rolls\x20back\x20a\x20transaction,\x20releasing\x20a\ - ny\x20locks\x20it\x20holds.\x20It\x20is\x20a\x20good\n\x20idea\x20to\x20\ - call\x20this\x20for\x20any\x20transaction\x20that\x20includes\x20one\x20\ - or\x20more\n\x20[Read][google.spanner.v1.Spanner.Read]\x20or\x20[Execute\ - Sql][google.spanner.v1.Spanner.ExecuteSql]\x20requests\x20and\n\x20ultim\ - ately\x20decides\x20not\x20to\x20commit.\n\n\x20`Rollback`\x20returns\ - \x20`OK`\x20if\x20it\x20successfully\x20aborts\x20the\x20transaction,\ - \x20the\n\x20transaction\x20was\x20already\x20aborted,\x20or\x20the\x20t\ - ransaction\x20is\x20not\n\x20found.\x20`Rollback`\x20never\x20returns\ - \x20`ABORTED`.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\xf5\x01\x06\x0e\n\r\ - \n\x05\x06\0\x02\x0c\x02\x12\x04\xf5\x01\x0f\x1e\n\r\n\x05\x06\0\x02\x0c\ - \x03\x12\x04\xf5\x01)>\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\xf6\x01\x04\ - \xf9\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\xf6\x01\ - \x04\xf9\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\xfa\x01\x04D\n\x10\ - \n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\xfa\x01\x04D\n\xef\x05\n\x04\ - \x06\0\x02\r\x12\x06\x88\x02\x02\x8d\x02\x03\x1a\xde\x05\x20Creates\x20a\ - \x20set\x20of\x20partition\x20tokens\x20that\x20can\x20be\x20used\x20to\ - \x20execute\x20a\x20query\n\x20operation\x20in\x20parallel.\x20\x20Each\ - \x20of\x20the\x20returned\x20partition\x20tokens\x20can\x20be\x20used\n\ - \x20by\x20[ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreami\ - ngSql]\x20to\x20specify\x20a\x20subset\n\x20of\x20the\x20query\x20result\ - \x20to\x20read.\x20\x20The\x20same\x20session\x20and\x20read-only\x20tra\ - nsaction\n\x20must\x20be\x20used\x20by\x20the\x20PartitionQueryRequest\ - \x20used\x20to\x20create\x20the\n\x20partition\x20tokens\x20and\x20the\ - \x20ExecuteSqlRequests\x20that\x20use\x20the\x20partition\x20tokens.\n\n\ - \x20Partition\x20tokens\x20become\x20invalid\x20when\x20the\x20session\ - \x20used\x20to\x20create\x20them\n\x20is\x20deleted,\x20is\x20idle\x20fo\ - r\x20too\x20long,\x20begins\x20a\x20new\x20transaction,\x20or\x20becomes\ - \x20too\n\x20old.\x20\x20When\x20any\x20of\x20these\x20happen,\x20it\x20\ - is\x20not\x20possible\x20to\x20resume\x20the\x20query,\x20and\n\x20the\ - \x20whole\x20operation\x20must\x20be\x20restarted\x20from\x20the\x20begi\ - nning.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\x88\x02\x06\x14\n\r\n\x05\x06\ - \0\x02\r\x02\x12\x04\x88\x02\x15*\n\r\n\x05\x06\0\x02\r\x03\x12\x04\x88\ - \x025F\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\x89\x02\x04\x8c\x02\x06\n\x13\ - \n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\x89\x02\x04\x8c\x02\x06\n\x84\ - \x07\n\x04\x06\0\x02\x0e\x12\x06\x9c\x02\x02\xa1\x02\x03\x1a\xf3\x06\x20\ - Creates\x20a\x20set\x20of\x20partition\x20tokens\x20that\x20can\x20be\ - \x20used\x20to\x20execute\x20a\x20read\n\x20operation\x20in\x20parallel.\ - \x20\x20Each\x20of\x20the\x20returned\x20partition\x20tokens\x20can\x20b\ - e\x20used\n\x20by\x20[StreamingRead][google.spanner.v1.Spanner.Streaming\ - Read]\x20to\x20specify\x20a\x20subset\x20of\x20the\x20read\n\x20result\ - \x20to\x20read.\x20\x20The\x20same\x20session\x20and\x20read-only\x20tra\ - nsaction\x20must\x20be\x20used\x20by\n\x20the\x20PartitionReadRequest\ - \x20used\x20to\x20create\x20the\x20partition\x20tokens\x20and\x20the\n\ - \x20ReadRequests\x20that\x20use\x20the\x20partition\x20tokens.\x20\x20Th\ - ere\x20are\x20no\x20ordering\n\x20guarantees\x20on\x20rows\x20returned\ - \x20among\x20the\x20returned\x20partition\x20tokens,\x20or\x20even\n\x20\ - within\x20each\x20individual\x20StreamingRead\x20call\x20issued\x20with\ - \x20a\x20partition_token.\n\n\x20Partition\x20tokens\x20become\x20invali\ - d\x20when\x20the\x20session\x20used\x20to\x20create\x20them\n\x20is\x20d\ - eleted,\x20is\x20idle\x20for\x20too\x20long,\x20begins\x20a\x20new\x20tr\ - ansaction,\x20or\x20becomes\x20too\n\x20old.\x20\x20When\x20any\x20of\ - \x20these\x20happen,\x20it\x20is\x20not\x20possible\x20to\x20resume\x20t\ - he\x20read,\x20and\n\x20the\x20whole\x20operation\x20must\x20be\x20resta\ - rted\x20from\x20the\x20beginning.\n\n\r\n\x05\x06\0\x02\x0e\x01\x12\x04\ - \x9c\x02\x06\x13\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\x9c\x02\x14(\n\r\n\ - \x05\x06\0\x02\x0e\x03\x12\x04\x9c\x023D\n\x0f\n\x05\x06\0\x02\x0e\x04\ - \x12\x06\x9d\x02\x04\xa0\x02\x06\n\x13\n\t\x06\0\x02\x0e\x04\xb0\xca\xbc\ - \"\x12\x06\x9d\x02\x04\xa0\x02\x06\n\xcd\x07\n\x04\x06\0\x02\x0f\x12\x06\ - \xb2\x02\x02\xb8\x02\x03\x1a\xbc\x07\x20Batches\x20the\x20supplied\x20mu\ - tation\x20groups\x20in\x20a\x20collection\x20of\x20efficient\n\x20transa\ - ctions.\x20All\x20mutations\x20in\x20a\x20group\x20are\x20committed\x20a\ - tomically.\x20However,\n\x20mutations\x20across\x20groups\x20can\x20be\ - \x20committed\x20non-atomically\x20in\x20an\x20unspecified\n\x20order\ - \x20and\x20thus,\x20they\x20must\x20be\x20independent\x20of\x20each\x20o\ - ther.\x20Partial\x20failure\x20is\n\x20possible,\x20i.e.,\x20some\x20gro\ - ups\x20may\x20have\x20been\x20committed\x20successfully,\x20while\n\x20s\ - ome\x20may\x20have\x20failed.\x20The\x20results\x20of\x20individual\x20b\ - atches\x20are\x20streamed\x20into\n\x20the\x20response\x20as\x20the\x20b\ - atches\x20are\x20applied.\n\n\x20BatchWrite\x20requests\x20are\x20not\ - \x20replay\x20protected,\x20meaning\x20that\x20each\x20mutation\n\x20gro\ - up\x20may\x20be\x20applied\x20more\x20than\x20once.\x20Replays\x20of\x20\ - non-idempotent\x20mutations\n\x20may\x20have\x20undesirable\x20effects.\ - \x20For\x20example,\x20replays\x20of\x20an\x20insert\x20mutation\n\x20ma\ - y\x20produce\x20an\x20already\x20exists\x20error\x20or\x20if\x20you\x20u\ - se\x20generated\x20or\x20commit\n\x20timestamp-based\x20keys,\x20it\x20m\ - ay\x20result\x20in\x20additional\x20rows\x20being\x20added\x20to\x20the\ - \n\x20mutation's\x20table.\x20We\x20recommend\x20structuring\x20your\x20\ - mutation\x20groups\x20to\x20be\n\x20idempotent\x20to\x20avoid\x20this\ - \x20issue.\n\n\r\n\x05\x06\0\x02\x0f\x01\x12\x04\xb2\x02\x06\x10\n\r\n\ - \x05\x06\0\x02\x0f\x02\x12\x04\xb2\x02\x11\"\n\r\n\x05\x06\0\x02\x0f\x06\ - \x12\x04\xb2\x02-3\n\r\n\x05\x06\0\x02\x0f\x03\x12\x04\xb2\x024F\n\x0f\n\ - \x05\x06\0\x02\x0f\x04\x12\x06\xb3\x02\x04\xb6\x02\x06\n\x13\n\t\x06\0\ - \x02\x0f\x04\xb0\xca\xbc\"\x12\x06\xb3\x02\x04\xb6\x02\x06\n\r\n\x05\x06\ - \0\x02\x0f\x04\x12\x04\xb7\x02\x04E\n\x10\n\x08\x06\0\x02\x0f\x04\x9b\ - \x08\0\x12\x04\xb7\x02\x04E\nY\n\x02\x04\0\x12\x06\xbc\x02\0\xc7\x02\x01\ - \x1aK\x20The\x20request\x20for\x20[CreateSession][google.spanner.v1.Span\ - ner.CreateSession].\n\n\x0b\n\x03\x04\0\x01\x12\x04\xbc\x02\x08\x1c\nM\n\ - \x04\x04\0\x02\0\x12\x06\xbe\x02\x02\xc3\x02\x04\x1a=\x20Required.\x20Th\ - e\x20database\x20in\x20which\x20the\x20new\x20session\x20is\x20created.\ - \n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xbe\x02\x02\x08\n\r\n\x05\x04\0\x02\ - \0\x01\x12\x04\xbe\x02\t\x11\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xbe\x02\ - \x14\x15\n\x0f\n\x05\x04\0\x02\0\x08\x12\x06\xbe\x02\x16\xc3\x02\x03\n\ - \x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\x04\xbf\x02\x04*\n\x11\n\x07\ - \x04\0\x02\0\x08\x9f\x08\x12\x06\xc0\x02\x04\xc2\x02\x05\n0\n\x04\x04\0\ - \x02\x01\x12\x04\xc6\x02\x02?\x1a\"\x20Required.\x20The\x20session\x20to\ - \x20create.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\x04\xc6\x02\x02\t\n\r\n\ - \x05\x04\0\x02\x01\x01\x12\x04\xc6\x02\n\x11\n\r\n\x05\x04\0\x02\x01\x03\ - \x12\x04\xc6\x02\x14\x15\n\r\n\x05\x04\0\x02\x01\x08\x12\x04\xc6\x02\x16\ - >\n\x10\n\x08\x04\0\x02\x01\x08\x9c\x08\0\x12\x04\xc6\x02\x17=\ne\n\x02\ - \x04\x01\x12\x06\xca\x02\0\xdc\x02\x01\x1aW\x20The\x20request\x20for\x20\ - [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].\n\ - \n\x0b\n\x03\x04\x01\x01\x12\x04\xca\x02\x08\"\nO\n\x04\x04\x01\x02\0\ - \x12\x06\xcc\x02\x02\xd1\x02\x04\x1a?\x20Required.\x20The\x20database\ - \x20in\x20which\x20the\x20new\x20sessions\x20are\x20created.\n\n\r\n\x05\ - \x04\x01\x02\0\x05\x12\x04\xcc\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\ - \x12\x04\xcc\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xcc\x02\x14\ - \x15\n\x0f\n\x05\x04\x01\x02\0\x08\x12\x06\xcc\x02\x16\xd1\x02\x03\n\x10\ - \n\x08\x04\x01\x02\0\x08\x9c\x08\0\x12\x04\xcd\x02\x04*\n\x11\n\x07\x04\ - \x01\x02\0\x08\x9f\x08\x12\x06\xce\x02\x04\xd0\x02\x05\nA\n\x04\x04\x01\ - \x02\x01\x12\x04\xd4\x02\x02\x1f\x1a3\x20Parameters\x20to\x20be\x20appli\ - ed\x20to\x20each\x20created\x20session.\n\n\r\n\x05\x04\x01\x02\x01\x06\ - \x12\x04\xd4\x02\x02\t\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xd4\x02\n\ - \x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xd4\x02\x1d\x1e\n\xe7\x02\n\ - \x04\x04\x01\x02\x02\x12\x04\xdb\x02\x02C\x1a\xd8\x02\x20Required.\x20Th\ - e\x20number\x20of\x20sessions\x20to\x20be\x20created\x20in\x20this\x20ba\ - tch\x20call.\n\x20The\x20API\x20may\x20return\x20fewer\x20than\x20the\ - \x20requested\x20number\x20of\x20sessions.\x20If\x20a\n\x20specific\x20n\ - umber\x20of\x20sessions\x20are\x20desired,\x20the\x20client\x20can\x20ma\ - ke\x20additional\n\x20calls\x20to\x20BatchCreateSessions\x20(adjusting\n\ - \x20[session_count][google.spanner.v1.BatchCreateSessionsRequest.session\ - _count]\x20as\x20necessary).\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xdb\ - \x02\x02\x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xdb\x02\x08\x15\n\r\n\ - \x05\x04\x01\x02\x02\x03\x12\x04\xdb\x02\x18\x19\n\r\n\x05\x04\x01\x02\ - \x02\x08\x12\x04\xdb\x02\x1aB\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\ - \x12\x04\xdb\x02\x1bA\nf\n\x02\x04\x02\x12\x06\xdf\x02\0\xe2\x02\x01\x1a\ - X\x20The\x20response\x20for\x20[BatchCreateSessions][google.spanner.v1.S\ - panner.BatchCreateSessions].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xdf\x02\ - \x08#\n-\n\x04\x04\x02\x02\0\x12\x04\xe1\x02\x02\x1f\x1a\x1f\x20The\x20f\ - reshly\x20created\x20sessions.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04\xe1\ - \x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xe1\x02\x0b\x12\n\r\n\x05\ - \x04\x02\x02\0\x01\x12\x04\xe1\x02\x13\x1a\n\r\n\x05\x04\x02\x02\0\x03\ - \x12\x04\xe1\x02\x1d\x1e\n3\n\x02\x04\x03\x12\x06\xe5\x02\0\x82\x03\x01\ + anner.googleapis.com/Session\xe0A\x02\x12M\n\x0btransaction\x18\x02\x20\ + \x01(\x0b2&.google.spanner.v1.TransactionSelectorR\x0btransactionB\x03\ + \xe0A\x02\x12X\n\nstatements\x18\x03\x20\x03(\x0b23.google.spanner.v1.Ex\ + ecuteBatchDmlRequest.StatementR\nstatementsB\x03\xe0A\x02\x12\x19\n\x05s\ + eqno\x18\x04\x20\x01(\x03R\x05seqnoB\x03\xe0A\x02\x1a\x8c\x02\n\tStateme\ + nt\x12\x10\n\x03sql\x18\x01\x20\x01(\tR\x03sql\x12/\n\x06params\x18\x02\ + \x20\x01(\x0b2\x17.google.protobuf.StructR\x06params\x12d\n\x0bparam_typ\ + es\x18\x03\x20\x03(\x0b2C.google.spanner.v1.ExecuteBatchDmlRequest.State\ + ment.ParamTypesEntryR\nparamTypes\x1aV\n\x0fParamTypesEntry\x12\x10\n\ + \x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\x05value\x18\x02\x20\x01(\x0b2\ + \x17.google.spanner.v1.TypeR\x05value:\x028\x01\"\x84\x01\n\x17ExecuteBa\ + tchDmlResponse\x12=\n\x0bresult_sets\x18\x01\x20\x03(\x0b2\x1c.google.sp\ + anner.v1.ResultSetR\nresultSets\x12*\n\x06status\x18\x02\x20\x01(\x0b2\ + \x12.google.rpc.StatusR\x06status\"k\n\x10PartitionOptions\x120\n\x14par\ + tition_size_bytes\x18\x01\x20\x01(\x03R\x12partitionSizeBytes\x12%\n\x0e\ + max_partitions\x18\x02\x20\x01(\x03R\rmaxPartitions\"\xf0\x03\n\x15Parti\ + tionQueryRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\ + \x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12H\n\x0btransaction\ + \x18\x02\x20\x01(\x0b2&.google.spanner.v1.TransactionSelectorR\x0btransa\ + ction\x12\x15\n\x03sql\x18\x03\x20\x01(\tR\x03sqlB\x03\xe0A\x02\x12/\n\ + \x06params\x18\x04\x20\x01(\x0b2\x17.google.protobuf.StructR\x06params\ + \x12Y\n\x0bparam_types\x18\x05\x20\x03(\x0b28.google.spanner.v1.Partitio\ + nQueryRequest.ParamTypesEntryR\nparamTypes\x12P\n\x11partition_options\ + \x18\x06\x20\x01(\x0b2#.google.spanner.v1.PartitionOptionsR\x10partition\ + Options\x1aV\n\x0fParamTypesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ + \x03key\x12-\n\x05value\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.Type\ + R\x05value:\x028\x01\"\xf8\x02\n\x14PartitionReadRequest\x12@\n\x07sessi\ + on\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com\ + /Session\xe0A\x02\x12H\n\x0btransaction\x18\x02\x20\x01(\x0b2&.google.sp\ + anner.v1.TransactionSelectorR\x0btransaction\x12\x19\n\x05table\x18\x03\ + \x20\x01(\tR\x05tableB\x03\xe0A\x02\x12\x14\n\x05index\x18\x04\x20\x01(\ + \tR\x05index\x12\x18\n\x07columns\x18\x05\x20\x03(\tR\x07columns\x127\n\ + \x07key_set\x18\x06\x20\x01(\x0b2\x19.google.spanner.v1.KeySetR\x06keySe\ + tB\x03\xe0A\x02\x12P\n\x11partition_options\x18\t\x20\x01(\x0b2#.google.\ + spanner.v1.PartitionOptionsR\x10partitionOptions\"4\n\tPartition\x12'\n\ + \x0fpartition_token\x18\x01\x20\x01(\x0cR\x0epartitionToken\"\x93\x01\n\ + \x11PartitionResponse\x12<\n\npartitions\x18\x01\x20\x03(\x0b2\x1c.googl\ + e.spanner.v1.PartitionR\npartitions\x12@\n\x0btransaction\x18\x02\x20\ + \x01(\x0b2\x1e.google.spanner.v1.TransactionR\x0btransaction\"\x84\x03\n\ + \x0bReadRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\ + \x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12H\n\x0btransaction\ + \x18\x02\x20\x01(\x0b2&.google.spanner.v1.TransactionSelectorR\x0btransa\ + ction\x12\x19\n\x05table\x18\x03\x20\x01(\tR\x05tableB\x03\xe0A\x02\x12\ + \x14\n\x05index\x18\x04\x20\x01(\tR\x05index\x12\x1d\n\x07columns\x18\ + \x05\x20\x03(\tR\x07columnsB\x03\xe0A\x02\x127\n\x07key_set\x18\x06\x20\ + \x01(\x0b2\x19.google.spanner.v1.KeySetR\x06keySetB\x03\xe0A\x02\x12\x14\ + \n\x05limit\x18\x08\x20\x01(\x03R\x05limit\x12!\n\x0cresume_token\x18\t\ + \x20\x01(\x0cR\x0bresumeToken\x12'\n\x0fpartition_token\x18\n\x20\x01(\ + \x0cR\x0epartitionToken\"\xa1\x01\n\x17BeginTransactionRequest\x12@\n\ + \x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.googl\ + eapis.com/Session\xe0A\x02\x12D\n\x07options\x18\x02\x20\x01(\x0b2%.goog\ + le.spanner.v1.TransactionOptionsR\x07optionsB\x03\xe0A\x02\"\xa3\x02\n\r\ + CommitRequest\x12@\n\x07session\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\ + \x20\n\x1espanner.googleapis.com/Session\xe0A\x02\x12'\n\x0etransaction_\ + id\x18\x02\x20\x01(\x0cH\0R\rtransactionId\x12]\n\x16single_use_transact\ + ion\x18\x03\x20\x01(\x0b2%.google.spanner.v1.TransactionOptionsH\0R\x14s\ + ingleUseTransaction\x129\n\tmutations\x18\x04\x20\x03(\x0b2\x1b.google.s\ + panner.v1.MutationR\tmutationsB\r\n\x0btransaction\"W\n\x0eCommitRespons\ + e\x12E\n\x10commit_timestamp\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.T\ + imestampR\x0fcommitTimestamp\"\x7f\n\x0fRollbackRequest\x12@\n\x07sessio\ + n\x18\x01\x20\x01(\tR\x07sessionB&\xfaA\x20\n\x1espanner.googleapis.com/\ + Session\xe0A\x02\x12*\n\x0etransaction_id\x18\x02\x20\x01(\x0cR\rtransac\ + tionIdB\x03\xe0A\x022\xc0\x16\n\x07Spanner\x12\xa6\x01\n\rCreateSession\ + \x12'.google.spanner.v1.CreateSessionRequest\x1a\x1a.google.spanner.v1.S\ + ession\"P\x82\xd3\xe4\x93\x02?\":/v1/{database=projects/*/instances/*/da\ + tabases/*}/sessions:\x01*\xdaA\x08database\x12\xe0\x01\n\x13BatchCreateS\ + essions\x12-.google.spanner.v1.BatchCreateSessionsRequest\x1a..google.sp\ + anner.v1.BatchCreateSessionsResponse\"j\x82\xd3\xe4\x93\x02K\"F/v1/{data\ + base=projects/*/instances/*/databases/*}/sessions:batchCreate:\x01*\xdaA\ + \x16database,session_count\x12\x97\x01\n\nGetSession\x12$.google.spanner\ + .v1.GetSessionRequest\x1a\x1a.google.spanner.v1.Session\"G\x82\xd3\xe4\ + \x93\x02:\x128/v1/{name=projects/*/instances/*/databases/*/sessions/*}\ + \xdaA\x04name\x12\xae\x01\n\x0cListSessions\x12&.google.spanner.v1.ListS\ + essionsRequest\x1a'.google.spanner.v1.ListSessionsResponse\"M\x82\xd3\ + \xe4\x93\x02<\x12:/v1/{database=projects/*/instances/*/databases/*}/sess\ + ions\xdaA\x08database\x12\x99\x01\n\rDeleteSession\x12'.google.spanner.v\ + 1.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"G\x82\xd3\xe4\x93\ + \x02:*8/v1/{name=projects/*/instances/*/databases/*/sessions/*}\xdaA\x04\ + name\x12\xa3\x01\n\nExecuteSql\x12$.google.spanner.v1.ExecuteSqlRequest\ + \x1a\x1c.google.spanner.v1.ResultSet\"Q\x82\xd3\xe4\x93\x02K\"F/v1/{sess\ + ion=projects/*/instances/*/databases/*/sessions/*}:executeSql:\x01*\x12\ + \xbe\x01\n\x13ExecuteStreamingSql\x12$.google.spanner.v1.ExecuteSqlReque\ + st\x1a#.google.spanner.v1.PartialResultSet\"Z\x82\xd3\xe4\x93\x02T\"O/v1\ + /{session=projects/*/instances/*/databases/*/sessions/*}:executeStreamin\ + gSql:\x01*0\x01\x12\xc0\x01\n\x0fExecuteBatchDml\x12).google.spanner.v1.\ + ExecuteBatchDmlRequest\x1a*.google.spanner.v1.ExecuteBatchDmlResponse\"V\ + \x82\xd3\xe4\x93\x02P\"K/v1/{session=projects/*/instances/*/databases/*/\ + sessions/*}:executeBatchDml:\x01*\x12\x91\x01\n\x04Read\x12\x1e.google.s\ + panner.v1.ReadRequest\x1a\x1c.google.spanner.v1.ResultSet\"K\x82\xd3\xe4\ + \x93\x02E\"@/v1/{session=projects/*/instances/*/databases/*/sessions/*}:\ + read:\x01*\x12\xac\x01\n\rStreamingRead\x12\x1e.google.spanner.v1.ReadRe\ + quest\x1a#.google.spanner.v1.PartialResultSet\"T\x82\xd3\xe4\x93\x02N\"I\ + /v1/{session=projects/*/instances/*/databases/*/sessions/*}:streamingRea\ + d:\x01*0\x01\x12\xc9\x01\n\x10BeginTransaction\x12*.google.spanner.v1.Be\ + ginTransactionRequest\x1a\x1e.google.spanner.v1.Transaction\"i\x82\xd3\ + \xe4\x93\x02Q\"L/v1/{session=projects/*/instances/*/databases/*/sessions\ + /*}:beginTransaction:\x01*\xdaA\x0fsession,options\x12\xeb\x01\n\x06Comm\ + it\x12\x20.google.spanner.v1.CommitRequest\x1a!.google.spanner.v1.Commit\ + Response\"\x9b\x01\x82\xd3\xe4\x93\x02G\"B/v1/{session=projects/*/instan\ + ces/*/databases/*/sessions/*}:commit:\x01*\xdaA\x20session,transaction_i\ + d,mutations\xdaA(session,single_use_transaction,mutations\x12\xb0\x01\n\ + \x08Rollback\x12\".google.spanner.v1.RollbackRequest\x1a\x16.google.prot\ + obuf.Empty\"h\x82\xd3\xe4\x93\x02I\"D/v1/{session=projects/*/instances/*\ + /databases/*/sessions/*}:rollback:\x01*\xdaA\x16session,transaction_id\ + \x12\xb7\x01\n\x0ePartitionQuery\x12(.google.spanner.v1.PartitionQueryRe\ + quest\x1a$.google.spanner.v1.PartitionResponse\"U\x82\xd3\xe4\x93\x02O\"\ + J/v1/{session=projects/*/instances/*/databases/*/sessions/*}:partitionQu\ + ery:\x01*\x12\xb4\x01\n\rPartitionRead\x12'.google.spanner.v1.PartitionR\ + eadRequest\x1a$.google.spanner.v1.PartitionResponse\"T\x82\xd3\xe4\x93\ + \x02N\"I/v1/{session=projects/*/instances/*/databases/*/sessions/*}:part\ + itionRead:\x01*\x1aw\xd2A[https://www.googleapis.com/auth/cloud-platform\ + ,https://www.googleapis.com/auth/spanner.data\xcaA\x16spanner.googleapis\ + .comB\xf7\x01\n\x15com.google.spanner.v1B\x0cSpannerProtoP\x01Z8google.g\ + olang.org/genproto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud\ + .Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xeaA_\n\x1fspanner.goo\ + gleapis.com/Database\x12\ + \n\x0c\n\x05\x06\0\x03\x99\x08\x12\x035\x02>\n\x0b\n\x03\x06\0\x03\x12\ + \x046\x0285\n\r\n\x05\x06\0\x03\x9a\x08\x12\x046\x0285\n\xe7\x06\n\x04\ + \x06\0\x02\0\x12\x04M\x02S\x03\x1a\xd8\x06\x20Creates\x20a\x20new\x20ses\ + sion.\x20A\x20session\x20can\x20be\x20used\x20to\x20perform\n\x20transac\ + tions\x20that\x20read\x20and/or\x20modify\x20data\x20in\x20a\x20Cloud\ + \x20Spanner\x20database.\n\x20Sessions\x20are\x20meant\x20to\x20be\x20re\ + used\x20for\x20many\x20consecutive\n\x20transactions.\n\n\x20Sessions\ + \x20can\x20only\x20execute\x20one\x20transaction\x20at\x20a\x20time.\x20\ + To\x20execute\n\x20multiple\x20concurrent\x20read-write/write-only\x20tr\ + ansactions,\x20create\n\x20multiple\x20sessions.\x20Note\x20that\x20stan\ + dalone\x20reads\x20and\x20queries\x20use\x20a\n\x20transaction\x20intern\ + ally,\x20and\x20count\x20toward\x20the\x20one\x20transaction\n\x20limit.\ + \n\n\x20Active\x20sessions\x20use\x20additional\x20server\x20resources,\ + \x20so\x20it\x20is\x20a\x20good\x20idea\x20to\n\x20delete\x20idle\x20and\ + \x20unneeded\x20sessions.\n\x20Aside\x20from\x20explicit\x20deletes,\x20\ + Cloud\x20Spanner\x20can\x20delete\x20sessions\x20for\x20which\x20no\n\ + \x20operations\x20are\x20sent\x20for\x20more\x20than\x20an\x20hour.\x20I\ + f\x20a\x20session\x20is\x20deleted,\n\x20requests\x20to\x20it\x20return\ + \x20`NOT_FOUND`.\n\n\x20Idle\x20sessions\x20can\x20be\x20kept\x20alive\ + \x20by\x20sending\x20a\x20trivial\x20SQL\x20query\n\x20periodically,\x20\ + e.g.,\x20`\"SELECT\x201\"`.\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03M\x06\ + \x13\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03M\x14(\n\x0c\n\x05\x06\0\x02\0\ + \x03\x12\x03M3:\n\r\n\x05\x06\0\x02\0\x04\x12\x04N\x04Q\x06\n\x11\n\t\ + \x06\0\x02\0\x04\xb0\xca\xbc\"\x12\x04N\x04Q\x06\n\x0c\n\x05\x06\0\x02\0\ + \x04\x12\x03R\x046\n\x0f\n\x08\x06\0\x02\0\x04\x9b\x08\0\x12\x03R\x046\n\ + \xbf\x01\n\x04\x06\0\x02\x01\x12\x04Y\x02`\x03\x1a\xb0\x01\x20Creates\ + \x20multiple\x20new\x20sessions.\n\n\x20This\x20API\x20can\x20be\x20used\ + \x20to\x20initialize\x20a\x20session\x20cache\x20on\x20the\x20clients.\n\ + \x20See\x20https://goo.gl/TgSFN2\x20for\x20best\x20practices\x20on\x20se\ + ssion\x20cache\x20management.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03Y\ + \x06\x19\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03Y\x1a4\n\x0c\n\x05\x06\0\ + \x02\x01\x03\x12\x03Z\x0f*\n\r\n\x05\x06\0\x02\x01\x04\x12\x04[\x04^\x06\ + \n\x11\n\t\x06\0\x02\x01\x04\xb0\xca\xbc\"\x12\x04[\x04^\x06\n\x0c\n\x05\ + \x06\0\x02\x01\x04\x12\x03_\x04D\n\x0f\n\x08\x06\0\x02\x01\x04\x9b\x08\0\ + \x12\x03_\x04D\n\x9d\x01\n\x04\x06\0\x02\x02\x12\x04e\x02j\x03\x1a\x8e\ + \x01\x20Gets\x20a\x20session.\x20Returns\x20`NOT_FOUND`\x20if\x20the\x20\ + session\x20does\x20not\x20exist.\n\x20This\x20is\x20mainly\x20useful\x20\ + for\x20determining\x20whether\x20a\x20session\x20is\x20still\n\x20alive.\ + \n\n\x0c\n\x05\x06\0\x02\x02\x01\x12\x03e\x06\x10\n\x0c\n\x05\x06\0\x02\ + \x02\x02\x12\x03e\x11\"\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03e-4\n\r\n\ + \x05\x06\0\x02\x02\x04\x12\x04f\x04h\x06\n\x11\n\t\x06\0\x02\x02\x04\xb0\ + \xca\xbc\"\x12\x04f\x04h\x06\n\x0c\n\x05\x06\0\x02\x02\x04\x12\x03i\x042\ + \n\x0f\n\x08\x06\0\x02\x02\x04\x9b\x08\0\x12\x03i\x042\n7\n\x04\x06\0\ + \x02\x03\x12\x04m\x02r\x03\x1a)\x20Lists\x20all\x20sessions\x20in\x20a\ + \x20given\x20database.\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03m\x06\x12\ + \n\x0c\n\x05\x06\0\x02\x03\x02\x12\x03m\x13&\n\x0c\n\x05\x06\0\x02\x03\ + \x03\x12\x03m1E\n\r\n\x05\x06\0\x02\x03\x04\x12\x04n\x04p\x06\n\x11\n\t\ + \x06\0\x02\x03\x04\xb0\xca\xbc\"\x12\x04n\x04p\x06\n\x0c\n\x05\x06\0\x02\ + \x03\x04\x12\x03q\x046\n\x0f\n\x08\x06\0\x02\x03\x04\x9b\x08\0\x12\x03q\ + \x046\n\xb5\x01\n\x04\x06\0\x02\x04\x12\x04w\x02|\x03\x1a\xa6\x01\x20End\ + s\x20a\x20session,\x20releasing\x20server\x20resources\x20associated\x20\ + with\x20it.\x20This\x20will\n\x20asynchronously\x20trigger\x20cancellati\ + on\x20of\x20any\x20operations\x20that\x20are\x20running\x20with\n\x20thi\ + s\x20session.\n\n\x0c\n\x05\x06\0\x02\x04\x01\x12\x03w\x06\x13\n\x0c\n\ + \x05\x06\0\x02\x04\x02\x12\x03w\x14(\n\x0c\n\x05\x06\0\x02\x04\x03\x12\ + \x03w3H\n\r\n\x05\x06\0\x02\x04\x04\x12\x04x\x04z\x06\n\x11\n\t\x06\0\ + \x02\x04\x04\xb0\xca\xbc\"\x12\x04x\x04z\x06\n\x0c\n\x05\x06\0\x02\x04\ + \x04\x12\x03{\x042\n\x0f\n\x08\x06\0\x02\x04\x04\x9b\x08\0\x12\x03{\x042\ + \n\xed\x04\n\x04\x06\0\x02\x05\x12\x06\x8b\x01\x02\x90\x01\x03\x1a\xdc\ + \x04\x20Executes\x20an\x20SQL\x20statement,\x20returning\x20all\x20resul\ + ts\x20in\x20a\x20single\x20reply.\x20This\n\x20method\x20cannot\x20be\ + \x20used\x20to\x20return\x20a\x20result\x20set\x20larger\x20than\x2010\ + \x20MiB;\n\x20if\x20the\x20query\x20yields\x20more\x20data\x20than\x20th\ + at,\x20the\x20query\x20fails\x20with\n\x20a\x20`FAILED_PRECONDITION`\x20\ + error.\n\n\x20Operations\x20inside\x20read-write\x20transactions\x20migh\ + t\x20return\x20`ABORTED`.\x20If\n\x20this\x20occurs,\x20the\x20applicati\ + on\x20should\x20restart\x20the\x20transaction\x20from\n\x20the\x20beginn\ + ing.\x20See\x20[Transaction][google.spanner.v1.Transaction]\x20for\x20mo\ + re\n\x20details.\n\n\x20Larger\x20result\x20sets\x20can\x20be\x20fetched\ + \x20in\x20streaming\x20fashion\x20by\x20calling\n\x20[ExecuteStreamingSq\ + l][google.spanner.v1.Spanner.ExecuteStreamingSql]\n\x20instead.\n\n\r\n\ + \x05\x06\0\x02\x05\x01\x12\x04\x8b\x01\x06\x10\n\r\n\x05\x06\0\x02\x05\ + \x02\x12\x04\x8b\x01\x11\"\n\r\n\x05\x06\0\x02\x05\x03\x12\x04\x8b\x01-6\ + \n\x0f\n\x05\x06\0\x02\x05\x04\x12\x06\x8c\x01\x04\x8f\x01\x06\n\x13\n\t\ + \x06\0\x02\x05\x04\xb0\xca\xbc\"\x12\x06\x8c\x01\x04\x8f\x01\x06\n\xd7\ + \x02\n\x04\x06\0\x02\x06\x12\x06\x97\x01\x02\x9c\x01\x03\x1a\xc6\x02\x20\ + Like\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],\x20except\ + \x20returns\x20the\n\x20result\x20set\x20as\x20a\x20stream.\x20Unlike\n\ + \x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],\x20there\x20is\ + \x20no\x20limit\x20on\n\x20the\x20size\x20of\x20the\x20returned\x20resul\ + t\x20set.\x20However,\x20no\x20individual\x20row\x20in\x20the\n\x20resul\ + t\x20set\x20can\x20exceed\x20100\x20MiB,\x20and\x20no\x20column\x20value\ + \x20can\x20exceed\x2010\x20MiB.\n\n\r\n\x05\x06\0\x02\x06\x01\x12\x04\ + \x97\x01\x06\x19\n\r\n\x05\x06\0\x02\x06\x02\x12\x04\x97\x01\x1a+\n\r\n\ + \x05\x06\0\x02\x06\x06\x12\x04\x97\x016<\n\r\n\x05\x06\0\x02\x06\x03\x12\ + \x04\x97\x01=M\n\x0f\n\x05\x06\0\x02\x06\x04\x12\x06\x98\x01\x04\x9b\x01\ + \x06\n\x13\n\t\x06\0\x02\x06\x04\xb0\xca\xbc\"\x12\x06\x98\x01\x04\x9b\ + \x01\x06\n\x86\x05\n\x04\x06\0\x02\x07\x12\x06\xaa\x01\x02\xb0\x01\x03\ + \x1a\xf5\x04\x20Executes\x20a\x20batch\x20of\x20SQL\x20DML\x20statements\ + .\x20This\x20method\x20allows\x20many\x20statements\n\x20to\x20be\x20run\ + \x20with\x20lower\x20latency\x20than\x20submitting\x20them\x20sequential\ + ly\x20with\n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].\n\n\ + \x20Statements\x20are\x20executed\x20in\x20sequential\x20order.\x20A\x20\ + request\x20can\x20succeed\x20even\x20if\n\x20a\x20statement\x20fails.\ + \x20The\n\x20[ExecuteBatchDmlResponse.status][google.spanner.v1.ExecuteB\ + atchDmlResponse.status]\n\x20field\x20in\x20the\x20response\x20provides\ + \x20information\x20about\x20the\x20statement\x20that\x20failed.\n\x20Cli\ + ents\x20must\x20inspect\x20this\x20field\x20to\x20determine\x20whether\ + \x20an\x20error\x20occurred.\n\n\x20Execution\x20stops\x20after\x20the\ + \x20first\x20failed\x20statement;\x20the\x20remaining\x20statements\n\ + \x20are\x20not\x20executed.\n\n\r\n\x05\x06\0\x02\x07\x01\x12\x04\xaa\ + \x01\x06\x15\n\r\n\x05\x06\0\x02\x07\x02\x12\x04\xaa\x01\x16,\n\r\n\x05\ + \x06\0\x02\x07\x03\x12\x04\xab\x01\x0f&\n\x0f\n\x05\x06\0\x02\x07\x04\ + \x12\x06\xac\x01\x04\xaf\x01\x06\n\x13\n\t\x06\0\x02\x07\x04\xb0\xca\xbc\ + \"\x12\x06\xac\x01\x04\xaf\x01\x06\n\xb2\x05\n\x04\x06\0\x02\x08\x12\x06\ + \xc0\x01\x02\xc5\x01\x03\x1a\xa1\x05\x20Reads\x20rows\x20from\x20the\x20\ + database\x20using\x20key\x20lookups\x20and\x20scans,\x20as\x20a\n\x20sim\ + ple\x20key/value\x20style\x20alternative\x20to\n\x20[ExecuteSql][google.\ + spanner.v1.Spanner.ExecuteSql].\x20\x20This\x20method\x20cannot\x20be\n\ + \x20used\x20to\x20return\x20a\x20result\x20set\x20larger\x20than\x2010\ + \x20MiB;\x20if\x20the\x20read\x20matches\x20more\n\x20data\x20than\x20th\ + at,\x20the\x20read\x20fails\x20with\x20a\x20`FAILED_PRECONDITION`\n\x20e\ + rror.\n\n\x20Reads\x20inside\x20read-write\x20transactions\x20might\x20r\ + eturn\x20`ABORTED`.\x20If\n\x20this\x20occurs,\x20the\x20application\x20\ + should\x20restart\x20the\x20transaction\x20from\n\x20the\x20beginning.\ + \x20See\x20[Transaction][google.spanner.v1.Transaction]\x20for\x20more\n\ + \x20details.\n\n\x20Larger\x20result\x20sets\x20can\x20be\x20yielded\x20\ + in\x20streaming\x20fashion\x20by\x20calling\n\x20[StreamingRead][google.\ + spanner.v1.Spanner.StreamingRead]\x20instead.\n\n\r\n\x05\x06\0\x02\x08\ + \x01\x12\x04\xc0\x01\x06\n\n\r\n\x05\x06\0\x02\x08\x02\x12\x04\xc0\x01\ + \x0b\x16\n\r\n\x05\x06\0\x02\x08\x03\x12\x04\xc0\x01!*\n\x0f\n\x05\x06\0\ + \x02\x08\x04\x12\x06\xc1\x01\x04\xc4\x01\x06\n\x13\n\t\x06\0\x02\x08\x04\ + \xb0\xca\xbc\"\x12\x06\xc1\x01\x04\xc4\x01\x06\n\xbf\x02\n\x04\x06\0\x02\ + \t\x12\x06\xcc\x01\x02\xd1\x01\x03\x1a\xae\x02\x20Like\x20[Read][google.\ + spanner.v1.Spanner.Read],\x20except\x20returns\x20the\x20result\x20set\n\ + \x20as\x20a\x20stream.\x20Unlike\x20[Read][google.spanner.v1.Spanner.Rea\ + d],\x20there\x20is\x20no\n\x20limit\x20on\x20the\x20size\x20of\x20the\ + \x20returned\x20result\x20set.\x20However,\x20no\x20individual\x20row\ + \x20in\n\x20the\x20result\x20set\x20can\x20exceed\x20100\x20MiB,\x20and\ + \x20no\x20column\x20value\x20can\x20exceed\n\x2010\x20MiB.\n\n\r\n\x05\ + \x06\0\x02\t\x01\x12\x04\xcc\x01\x06\x13\n\r\n\x05\x06\0\x02\t\x02\x12\ + \x04\xcc\x01\x14\x1f\n\r\n\x05\x06\0\x02\t\x06\x12\x04\xcc\x01*0\n\r\n\ + \x05\x06\0\x02\t\x03\x12\x04\xcc\x011A\n\x0f\n\x05\x06\0\x02\t\x04\x12\ + \x06\xcd\x01\x04\xd0\x01\x06\n\x13\n\t\x06\0\x02\t\x04\xb0\xca\xbc\"\x12\ + \x06\xcd\x01\x04\xd0\x01\x06\n\x88\x02\n\x04\x06\0\x02\n\x12\x06\xd8\x01\ + \x02\xde\x01\x03\x1a\xf7\x01\x20Begins\x20a\x20new\x20transaction.\x20Th\ + is\x20step\x20can\x20often\x20be\x20skipped:\n\x20[Read][google.spanner.\ + v1.Spanner.Read],\n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql\ + ]\x20and\n\x20[Commit][google.spanner.v1.Spanner.Commit]\x20can\x20begin\ + \x20a\x20new\x20transaction\x20as\x20a\n\x20side-effect.\n\n\r\n\x05\x06\ + \0\x02\n\x01\x12\x04\xd8\x01\x06\x16\n\r\n\x05\x06\0\x02\n\x02\x12\x04\ + \xd8\x01\x17.\n\r\n\x05\x06\0\x02\n\x03\x12\x04\xd8\x019D\n\x0f\n\x05\ + \x06\0\x02\n\x04\x12\x06\xd9\x01\x04\xdc\x01\x06\n\x13\n\t\x06\0\x02\n\ + \x04\xb0\xca\xbc\"\x12\x06\xd9\x01\x04\xdc\x01\x06\n\r\n\x05\x06\0\x02\n\ + \x04\x12\x04\xdd\x01\x04=\n\x10\n\x08\x06\0\x02\n\x04\x9b\x08\0\x12\x04\ + \xdd\x01\x04=\n\xb6\x03\n\x04\x06\0\x02\x0b\x12\x06\xe8\x01\x02\xf0\x01\ + \x03\x1a\xa5\x03\x20Commits\x20a\x20transaction.\x20The\x20request\x20in\ + cludes\x20the\x20mutations\x20to\x20be\n\x20applied\x20to\x20rows\x20in\ + \x20the\x20database.\n\n\x20`Commit`\x20might\x20return\x20an\x20`ABORTE\ + D`\x20error.\x20This\x20can\x20occur\x20at\x20any\x20time;\n\x20commonly\ + ,\x20the\x20cause\x20is\x20conflicts\x20with\x20concurrent\n\x20transact\ + ions.\x20However,\x20it\x20can\x20also\x20happen\x20for\x20a\x20variety\ + \x20of\x20other\n\x20reasons.\x20If\x20`Commit`\x20returns\x20`ABORTED`,\ + \x20the\x20caller\x20should\x20re-attempt\n\x20the\x20transaction\x20fro\ + m\x20the\x20beginning,\x20re-using\x20the\x20same\x20session.\n\n\r\n\ + \x05\x06\0\x02\x0b\x01\x12\x04\xe8\x01\x06\x0c\n\r\n\x05\x06\0\x02\x0b\ + \x02\x12\x04\xe8\x01\r\x1a\n\r\n\x05\x06\0\x02\x0b\x03\x12\x04\xe8\x01%3\ + \n\x0f\n\x05\x06\0\x02\x0b\x04\x12\x06\xe9\x01\x04\xec\x01\x06\n\x13\n\t\ + \x06\0\x02\x0b\x04\xb0\xca\xbc\"\x12\x06\xe9\x01\x04\xec\x01\x06\n\r\n\ + \x05\x06\0\x02\x0b\x04\x12\x04\xed\x01\x04N\n\x10\n\x08\x06\0\x02\x0b\ + \x04\x9b\x08\0\x12\x04\xed\x01\x04N\n\x0f\n\x05\x06\0\x02\x0b\x04\x12\ + \x06\xee\x01\x04\xef\x013\n\x12\n\x08\x06\0\x02\x0b\x04\x9b\x08\x01\x12\ + \x06\xee\x01\x04\xef\x013\n\xd8\x03\n\x04\x06\0\x02\x0c\x12\x06\xfb\x01\ + \x02\x81\x02\x03\x1a\xc7\x03\x20Rolls\x20back\x20a\x20transaction,\x20re\ + leasing\x20any\x20locks\x20it\x20holds.\x20It\x20is\x20a\x20good\n\x20id\ + ea\x20to\x20call\x20this\x20for\x20any\x20transaction\x20that\x20include\ + s\x20one\x20or\x20more\n\x20[Read][google.spanner.v1.Spanner.Read]\x20or\ + \n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\x20requests\x20\ + and\x20ultimately\n\x20decides\x20not\x20to\x20commit.\n\n\x20`Rollback`\ + \x20returns\x20`OK`\x20if\x20it\x20successfully\x20aborts\x20the\x20tran\ + saction,\x20the\n\x20transaction\x20was\x20already\x20aborted,\x20or\x20\ + the\x20transaction\x20is\x20not\n\x20found.\x20`Rollback`\x20never\x20re\ + turns\x20`ABORTED`.\n\n\r\n\x05\x06\0\x02\x0c\x01\x12\x04\xfb\x01\x06\ + \x0e\n\r\n\x05\x06\0\x02\x0c\x02\x12\x04\xfb\x01\x0f\x1e\n\r\n\x05\x06\0\ + \x02\x0c\x03\x12\x04\xfb\x01)>\n\x0f\n\x05\x06\0\x02\x0c\x04\x12\x06\xfc\ + \x01\x04\xff\x01\x06\n\x13\n\t\x06\0\x02\x0c\x04\xb0\xca\xbc\"\x12\x06\ + \xfc\x01\x04\xff\x01\x06\n\r\n\x05\x06\0\x02\x0c\x04\x12\x04\x80\x02\x04\ + D\n\x10\n\x08\x06\0\x02\x0c\x04\x9b\x08\0\x12\x04\x80\x02\x04D\n\xf0\x05\ + \n\x04\x06\0\x02\r\x12\x06\x8f\x02\x02\x94\x02\x03\x1a\xdf\x05\x20Create\ + s\x20a\x20set\x20of\x20partition\x20tokens\x20that\x20can\x20be\x20used\ + \x20to\x20execute\x20a\x20query\n\x20operation\x20in\x20parallel.\x20\ + \x20Each\x20of\x20the\x20returned\x20partition\x20tokens\x20can\x20be\ + \x20used\n\x20by\x20[ExecuteStreamingSql][google.spanner.v1.Spanner.Exec\ + uteStreamingSql]\x20to\n\x20specify\x20a\x20subset\x20of\x20the\x20query\ + \x20result\x20to\x20read.\x20\x20The\x20same\x20session\x20and\n\x20read\ + -only\x20transaction\x20must\x20be\x20used\x20by\x20the\x20PartitionQuer\ + yRequest\x20used\x20to\n\x20create\x20the\x20partition\x20tokens\x20and\ + \x20the\x20ExecuteSqlRequests\x20that\x20use\x20the\n\x20partition\x20to\ + kens.\n\n\x20Partition\x20tokens\x20become\x20invalid\x20when\x20the\x20\ + session\x20used\x20to\x20create\x20them\n\x20is\x20deleted,\x20is\x20idl\ + e\x20for\x20too\x20long,\x20begins\x20a\x20new\x20transaction,\x20or\x20\ + becomes\x20too\n\x20old.\x20\x20When\x20any\x20of\x20these\x20happen,\ + \x20it\x20is\x20not\x20possible\x20to\x20resume\x20the\x20query,\x20and\ + \n\x20the\x20whole\x20operation\x20must\x20be\x20restarted\x20from\x20th\ + e\x20beginning.\n\n\r\n\x05\x06\0\x02\r\x01\x12\x04\x8f\x02\x06\x14\n\r\ + \n\x05\x06\0\x02\r\x02\x12\x04\x8f\x02\x15*\n\r\n\x05\x06\0\x02\r\x03\ + \x12\x04\x8f\x025F\n\x0f\n\x05\x06\0\x02\r\x04\x12\x06\x90\x02\x04\x93\ + \x02\x06\n\x13\n\t\x06\0\x02\r\x04\xb0\xca\xbc\"\x12\x06\x90\x02\x04\x93\ + \x02\x06\n\x85\x07\n\x04\x06\0\x02\x0e\x12\x06\xa4\x02\x02\xa9\x02\x03\ + \x1a\xf4\x06\x20Creates\x20a\x20set\x20of\x20partition\x20tokens\x20that\ + \x20can\x20be\x20used\x20to\x20execute\x20a\x20read\n\x20operation\x20in\ + \x20parallel.\x20\x20Each\x20of\x20the\x20returned\x20partition\x20token\ + s\x20can\x20be\x20used\n\x20by\x20[StreamingRead][google.spanner.v1.Span\ + ner.StreamingRead]\x20to\x20specify\x20a\n\x20subset\x20of\x20the\x20rea\ + d\x20result\x20to\x20read.\x20\x20The\x20same\x20session\x20and\x20read-\ + only\n\x20transaction\x20must\x20be\x20used\x20by\x20the\x20PartitionRea\ + dRequest\x20used\x20to\x20create\x20the\n\x20partition\x20tokens\x20and\ + \x20the\x20ReadRequests\x20that\x20use\x20the\x20partition\x20tokens.\ + \x20\x20There\n\x20are\x20no\x20ordering\x20guarantees\x20on\x20rows\x20\ + returned\x20among\x20the\x20returned\x20partition\n\x20tokens,\x20or\x20\ + even\x20within\x20each\x20individual\x20StreamingRead\x20call\x20issued\ + \x20with\x20a\n\x20partition_token.\n\n\x20Partition\x20tokens\x20become\ + \x20invalid\x20when\x20the\x20session\x20used\x20to\x20create\x20them\n\ + \x20is\x20deleted,\x20is\x20idle\x20for\x20too\x20long,\x20begins\x20a\ + \x20new\x20transaction,\x20or\x20becomes\x20too\n\x20old.\x20\x20When\ + \x20any\x20of\x20these\x20happen,\x20it\x20is\x20not\x20possible\x20to\ + \x20resume\x20the\x20read,\x20and\n\x20the\x20whole\x20operation\x20must\ + \x20be\x20restarted\x20from\x20the\x20beginning.\n\n\r\n\x05\x06\0\x02\ + \x0e\x01\x12\x04\xa4\x02\x06\x13\n\r\n\x05\x06\0\x02\x0e\x02\x12\x04\xa4\ + \x02\x14(\n\r\n\x05\x06\0\x02\x0e\x03\x12\x04\xa4\x023D\n\x0f\n\x05\x06\ + \0\x02\x0e\x04\x12\x06\xa5\x02\x04\xa8\x02\x06\n\x13\n\t\x06\0\x02\x0e\ + \x04\xb0\xca\xbc\"\x12\x06\xa5\x02\x04\xa8\x02\x06\nY\n\x02\x04\0\x12\ + \x06\xad\x02\0\xb8\x02\x01\x1aK\x20The\x20request\x20for\x20[CreateSessi\ + on][google.spanner.v1.Spanner.CreateSession].\n\n\x0b\n\x03\x04\0\x01\ + \x12\x04\xad\x02\x08\x1c\nM\n\x04\x04\0\x02\0\x12\x06\xaf\x02\x02\xb4\ + \x02\x04\x1a=\x20Required.\x20The\x20database\x20in\x20which\x20the\x20n\ + ew\x20session\x20is\x20created.\n\n\r\n\x05\x04\0\x02\0\x05\x12\x04\xaf\ + \x02\x02\x08\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xaf\x02\t\x11\n\r\n\x05\ + \x04\0\x02\0\x03\x12\x04\xaf\x02\x14\x15\n\x0f\n\x05\x04\0\x02\0\x08\x12\ + \x06\xaf\x02\x16\xb4\x02\x03\n\x10\n\x08\x04\0\x02\0\x08\x9c\x08\0\x12\ + \x04\xb0\x02\x04*\n\x11\n\x07\x04\0\x02\0\x08\x9f\x08\x12\x06\xb1\x02\ + \x04\xb3\x02\x05\n&\n\x04\x04\0\x02\x01\x12\x04\xb7\x02\x02\x16\x1a\x18\ + \x20The\x20session\x20to\x20create.\n\n\r\n\x05\x04\0\x02\x01\x06\x12\ + \x04\xb7\x02\x02\t\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\xb7\x02\n\x11\n\r\ + \n\x05\x04\0\x02\x01\x03\x12\x04\xb7\x02\x14\x15\nf\n\x02\x04\x01\x12\ + \x06\xbc\x02\0\xcf\x02\x01\x1aX\x20The\x20request\x20for\n\x20[BatchCrea\ + teSessions][google.spanner.v1.Spanner.BatchCreateSessions].\n\n\x0b\n\ + \x03\x04\x01\x01\x12\x04\xbc\x02\x08\"\nO\n\x04\x04\x01\x02\0\x12\x06\ + \xbe\x02\x02\xc3\x02\x04\x1a?\x20Required.\x20The\x20database\x20in\x20w\ + hich\x20the\x20new\x20sessions\x20are\x20created.\n\n\r\n\x05\x04\x01\ + \x02\0\x05\x12\x04\xbe\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\ + \xbe\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbe\x02\x14\x15\n\x0f\ + \n\x05\x04\x01\x02\0\x08\x12\x06\xbe\x02\x16\xc3\x02\x03\n\x10\n\x08\x04\ + \x01\x02\0\x08\x9c\x08\0\x12\x04\xbf\x02\x04*\n\x11\n\x07\x04\x01\x02\0\ + \x08\x9f\x08\x12\x06\xc0\x02\x04\xc2\x02\x05\nA\n\x04\x04\x01\x02\x01\ + \x12\x04\xc6\x02\x02\x1f\x1a3\x20Parameters\x20to\x20be\x20applied\x20to\ + \x20each\x20created\x20session.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\ + \xc6\x02\x02\t\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xc6\x02\n\x1a\n\r\n\ + \x05\x04\x01\x02\x01\x03\x12\x04\xc6\x02\x1d\x1e\n\xe8\x02\n\x04\x04\x01\ + \x02\x02\x12\x04\xce\x02\x02C\x1a\xd9\x02\x20Required.\x20The\x20number\ + \x20of\x20sessions\x20to\x20be\x20created\x20in\x20this\x20batch\x20call\ + .\n\x20The\x20API\x20may\x20return\x20fewer\x20than\x20the\x20requested\ + \x20number\x20of\x20sessions.\x20If\x20a\n\x20specific\x20number\x20of\ + \x20sessions\x20are\x20desired,\x20the\x20client\x20can\x20make\x20addit\ + ional\n\x20calls\x20to\x20BatchCreateSessions\x20(adjusting\n\x20[sessio\ + n_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]\n\ + \x20as\x20necessary).\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xce\x02\ + \x02\x07\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xce\x02\x08\x15\n\r\n\x05\ + \x04\x01\x02\x02\x03\x12\x04\xce\x02\x18\x19\n\r\n\x05\x04\x01\x02\x02\ + \x08\x12\x04\xce\x02\x1aB\n\x10\n\x08\x04\x01\x02\x02\x08\x9c\x08\0\x12\ + \x04\xce\x02\x1bA\ng\n\x02\x04\x02\x12\x06\xd3\x02\0\xd6\x02\x01\x1aY\ + \x20The\x20response\x20for\n\x20[BatchCreateSessions][google.spanner.v1.\ + Spanner.BatchCreateSessions].\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xd3\x02\ + \x08#\n-\n\x04\x04\x02\x02\0\x12\x04\xd5\x02\x02\x1f\x1a\x1f\x20The\x20f\ + reshly\x20created\x20sessions.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04\xd5\ + \x02\x02\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xd5\x02\x0b\x12\n\r\n\x05\ + \x04\x02\x02\0\x01\x12\x04\xd5\x02\x13\x1a\n\r\n\x05\x04\x02\x02\0\x03\ + \x12\x04\xd5\x02\x1d\x1e\n3\n\x02\x04\x03\x12\x06\xd9\x02\0\xf4\x02\x01\ \x1a%\x20A\x20session\x20in\x20the\x20Cloud\x20Spanner\x20API.\n\n\x0b\n\ - \x03\x04\x03\x01\x12\x04\xe5\x02\x08\x0f\n\r\n\x03\x04\x03\x07\x12\x06\ - \xe6\x02\x02\xe9\x02\x04\n\x0f\n\x05\x04\x03\x07\x9d\x08\x12\x06\xe6\x02\ - \x02\xe9\x02\x04\nU\n\x04\x04\x03\x02\0\x12\x04\xec\x02\x02>\x1aG\x20Out\ - put\x20only.\x20The\x20name\x20of\x20the\x20session.\x20This\x20is\x20al\ - ways\x20system-assigned.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xec\x02\ - \x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xec\x02\t\r\n\r\n\x05\x04\ - \x03\x02\0\x03\x12\x04\xec\x02\x10\x11\n\r\n\x05\x04\x03\x02\0\x08\x12\ - \x04\xec\x02\x12=\n\x10\n\x08\x04\x03\x02\0\x08\x9c\x08\0\x12\x04\xec\ - \x02\x13<\n\xd6\x03\n\x04\x04\x03\x02\x01\x12\x04\xf7\x02\x02!\x1a\xc7\ - \x03\x20The\x20labels\x20for\x20the\x20session.\n\n\x20\x20*\x20Label\ - \x20keys\x20must\x20be\x20between\x201\x20and\x2063\x20characters\x20lon\ - g\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20the\x20following\x20r\ - egular\x20expression:\x20`[a-z]([-a-z0-9]*[a-z0-9])?`.\n\x20\x20*\x20Lab\ - el\x20values\x20must\x20be\x20between\x200\x20and\x2063\x20characters\ - \x20long\x20and\x20must\x20conform\n\x20\x20\x20\x20to\x20the\x20regular\ - \x20expression\x20`([a-z]([-a-z0-9]*[a-z0-9])?)?`.\n\x20\x20*\x20No\x20m\ - ore\x20than\x2064\x20labels\x20can\x20be\x20associated\x20with\x20a\x20g\ - iven\x20session.\n\n\x20See\x20https://goo.gl/xmQnxf\x20for\x20more\x20i\ - nformation\x20on\x20and\x20examples\x20of\x20labels.\n\n\r\n\x05\x04\x03\ - \x02\x01\x06\x12\x04\xf7\x02\x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\ - \x04\xf7\x02\x16\x1c\n\r\n\x05\x04\x03\x02\x01\x03\x12\x04\xf7\x02\x1f\ - \x20\nG\n\x04\x04\x03\x02\x02\x12\x04\xfa\x02\x02X\x1a9\x20Output\x20onl\ - y.\x20The\x20timestamp\x20when\x20the\x20session\x20is\x20created.\n\n\r\ - \n\x05\x04\x03\x02\x02\x06\x12\x04\xfa\x02\x02\x1b\n\r\n\x05\x04\x03\x02\ - \x02\x01\x12\x04\xfa\x02\x1c'\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xfa\ - \x02*+\n\r\n\x05\x04\x03\x02\x02\x08\x12\x04\xfa\x02,W\n\x10\n\x08\x04\ - \x03\x02\x02\x08\x9c\x08\0\x12\x04\xfa\x02-V\n\x8d\x01\n\x04\x04\x03\x02\ - \x03\x12\x04\xfe\x02\x02f\x1a\x7f\x20Output\x20only.\x20The\x20approxima\ - te\x20timestamp\x20when\x20the\x20session\x20is\x20last\x20used.\x20It\ - \x20is\n\x20typically\x20earlier\x20than\x20the\x20actual\x20last\x20use\ - \x20time.\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xfe\x02\x02\x1b\n\r\n\ - \x05\x04\x03\x02\x03\x01\x12\x04\xfe\x02\x1c5\n\r\n\x05\x04\x03\x02\x03\ - \x03\x12\x04\xfe\x0289\n\r\n\x05\x04\x03\x02\x03\x08\x12\x04\xfe\x02:e\n\ - \x10\n\x08\x04\x03\x02\x03\x08\x9c\x08\0\x12\x04\xfe\x02;d\n=\n\x04\x04\ - \x03\x02\x04\x12\x04\x81\x03\x02\x1a\x1a/\x20The\x20database\x20role\x20\ - which\x20created\x20this\x20session.\n\n\r\n\x05\x04\x03\x02\x04\x05\x12\ - \x04\x81\x03\x02\x08\n\r\n\x05\x04\x03\x02\x04\x01\x12\x04\x81\x03\t\x15\ - \n\r\n\x05\x04\x03\x02\x04\x03\x12\x04\x81\x03\x18\x19\nS\n\x02\x04\x04\ - \x12\x06\x85\x03\0\x8d\x03\x01\x1aE\x20The\x20request\x20for\x20[GetSess\ - ion][google.spanner.v1.Spanner.GetSession].\n\n\x0b\n\x03\x04\x04\x01\ - \x12\x04\x85\x03\x08\x19\n@\n\x04\x04\x04\x02\0\x12\x06\x87\x03\x02\x8c\ - \x03\x04\x1a0\x20Required.\x20The\x20name\x20of\x20the\x20session\x20to\ - \x20retrieve.\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\x87\x03\x02\x08\n\r\ - \n\x05\x04\x04\x02\0\x01\x12\x04\x87\x03\t\r\n\r\n\x05\x04\x04\x02\0\x03\ - \x12\x04\x87\x03\x10\x11\n\x0f\n\x05\x04\x04\x02\0\x08\x12\x06\x87\x03\ - \x12\x8c\x03\x03\n\x10\n\x08\x04\x04\x02\0\x08\x9c\x08\0\x12\x04\x88\x03\ - \x04*\n\x11\n\x07\x04\x04\x02\0\x08\x9f\x08\x12\x06\x89\x03\x04\x8b\x03\ - \x05\nW\n\x02\x04\x05\x12\x06\x90\x03\0\xad\x03\x01\x1aI\x20The\x20reque\ - st\x20for\x20[ListSessions][google.spanner.v1.Spanner.ListSessions].\n\n\ - \x0b\n\x03\x04\x05\x01\x12\x04\x90\x03\x08\x1b\nC\n\x04\x04\x05\x02\0\ - \x12\x06\x92\x03\x02\x97\x03\x04\x1a3\x20Required.\x20The\x20database\ - \x20in\x20which\x20to\x20list\x20sessions.\n\n\r\n\x05\x04\x05\x02\0\x05\ - \x12\x04\x92\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x92\x03\t\ - \x11\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x92\x03\x14\x15\n\x0f\n\x05\x04\ - \x05\x02\0\x08\x12\x06\x92\x03\x16\x97\x03\x03\n\x10\n\x08\x04\x05\x02\0\ - \x08\x9c\x08\0\x12\x04\x93\x03\x04*\n\x11\n\x07\x04\x05\x02\0\x08\x9f\ - \x08\x12\x06\x94\x03\x04\x96\x03\x05\n\x85\x01\n\x04\x04\x05\x02\x01\x12\ - \x04\x9b\x03\x02\x16\x1aw\x20Number\x20of\x20sessions\x20to\x20be\x20ret\ - urned\x20in\x20the\x20response.\x20If\x200\x20or\x20less,\x20defaults\n\ - \x20to\x20the\x20server's\x20maximum\x20allowed\x20page\x20size.\n\n\r\n\ - \x05\x04\x05\x02\x01\x05\x12\x04\x9b\x03\x02\x07\n\r\n\x05\x04\x05\x02\ - \x01\x01\x12\x04\x9b\x03\x08\x11\n\r\n\x05\x04\x05\x02\x01\x03\x12\x04\ - \x9b\x03\x14\x15\n\xd8\x01\n\x04\x04\x05\x02\x02\x12\x04\xa0\x03\x02\x18\ - \x1a\xc9\x01\x20If\x20non-empty,\x20`page_token`\x20should\x20contain\ - \x20a\n\x20[next_page_token][google.spanner.v1.ListSessionsResponse.next\ - _page_token]\x20from\x20a\x20previous\n\x20[ListSessionsResponse][google\ - .spanner.v1.ListSessionsResponse].\n\n\r\n\x05\x04\x05\x02\x02\x05\x12\ - \x04\xa0\x03\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\xa0\x03\t\x13\ - \n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\xa0\x03\x16\x17\n\xaf\x03\n\x04\ - \x04\x05\x02\x03\x12\x04\xac\x03\x02\x14\x1a\xa0\x03\x20An\x20expression\ - \x20for\x20filtering\x20the\x20results\x20of\x20the\x20request.\x20Filte\ - r\x20rules\x20are\n\x20case\x20insensitive.\x20The\x20fields\x20eligible\ - \x20for\x20filtering\x20are:\n\n\x20\x20\x20*\x20`labels.key`\x20where\ - \x20key\x20is\x20the\x20name\x20of\x20a\x20label\n\n\x20Some\x20examples\ - \x20of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\x20`labels.env:*`\ - \x20-->\x20The\x20session\x20has\x20the\x20label\x20\"env\".\n\x20\x20\ - \x20*\x20`labels.env:dev`\x20-->\x20The\x20session\x20has\x20the\x20labe\ - l\x20\"env\"\x20and\x20the\x20value\x20of\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\ - \x20label\x20contains\x20the\x20string\x20\"dev\".\n\n\r\n\x05\x04\x05\ - \x02\x03\x05\x12\x04\xac\x03\x02\x08\n\r\n\x05\x04\x05\x02\x03\x01\x12\ - \x04\xac\x03\t\x0f\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\xac\x03\x12\x13\ - \nX\n\x02\x04\x06\x12\x06\xb0\x03\0\xb8\x03\x01\x1aJ\x20The\x20response\ - \x20for\x20[ListSessions][google.spanner.v1.Spanner.ListSessions].\n\n\ - \x0b\n\x03\x04\x06\x01\x12\x04\xb0\x03\x08\x1c\n/\n\x04\x04\x06\x02\0\ - \x12\x04\xb2\x03\x02\x20\x1a!\x20The\x20list\x20of\x20requested\x20sessi\ - ons.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xb2\x03\x02\n\n\r\n\x05\x04\ - \x06\x02\0\x06\x12\x04\xb2\x03\x0b\x12\n\r\n\x05\x04\x06\x02\0\x01\x12\ - \x04\xb2\x03\x13\x1b\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xb2\x03\x1e\x1f\ - \n\xa4\x01\n\x04\x04\x06\x02\x01\x12\x04\xb7\x03\x02\x1d\x1a\x95\x01\x20\ - `next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\n\x20[Li\ - stSessions][google.spanner.v1.Spanner.ListSessions]\x20call\x20to\x20fet\ - ch\x20more\x20of\x20the\x20matching\n\x20sessions.\n\n\r\n\x05\x04\x06\ - \x02\x01\x05\x12\x04\xb7\x03\x02\x08\n\r\n\x05\x04\x06\x02\x01\x01\x12\ - \x04\xb7\x03\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xb7\x03\x1b\x1c\ - \nY\n\x02\x04\x07\x12\x06\xbb\x03\0\xc3\x03\x01\x1aK\x20The\x20request\ - \x20for\x20[DeleteSession][google.spanner.v1.Spanner.DeleteSession].\n\n\ - \x0b\n\x03\x04\x07\x01\x12\x04\xbb\x03\x08\x1c\n>\n\x04\x04\x07\x02\0\ - \x12\x06\xbd\x03\x02\xc2\x03\x04\x1a.\x20Required.\x20The\x20name\x20of\ - \x20the\x20session\x20to\x20delete.\n\n\r\n\x05\x04\x07\x02\0\x05\x12\ - \x04\xbd\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xbd\x03\t\r\n\r\ - \n\x05\x04\x07\x02\0\x03\x12\x04\xbd\x03\x10\x11\n\x0f\n\x05\x04\x07\x02\ - \0\x08\x12\x06\xbd\x03\x12\xc2\x03\x03\n\x10\n\x08\x04\x07\x02\0\x08\x9c\ - \x08\0\x12\x04\xbe\x03\x04*\n\x11\n\x07\x04\x07\x02\0\x08\x9f\x08\x12\ - \x06\xbf\x03\x04\xc1\x03\x05\n8\n\x02\x04\x08\x12\x06\xc6\x03\0\x80\x04\ - \x01\x1a*\x20Common\x20request\x20options\x20for\x20various\x20APIs.\n\n\ - \x0b\n\x03\x04\x08\x01\x12\x04\xc6\x03\x08\x16\n\x83\x07\n\x04\x04\x08\ - \x04\0\x12\x06\xd7\x03\x02\xe3\x03\x03\x1a\xf2\x06\x20The\x20relative\ - \x20priority\x20for\x20requests.\x20Note\x20that\x20priority\x20is\x20no\ - t\x20applicable\n\x20for\x20[BeginTransaction][google.spanner.v1.Spanner\ - .BeginTransaction].\n\n\x20The\x20priority\x20acts\x20as\x20a\x20hint\ - \x20to\x20the\x20Cloud\x20Spanner\x20scheduler\x20and\x20does\x20not\n\ - \x20guarantee\x20priority\x20or\x20order\x20of\x20execution.\x20For\x20e\ - xample:\n\n\x20*\x20Some\x20parts\x20of\x20a\x20write\x20operation\x20al\ - ways\x20execute\x20at\x20`PRIORITY_HIGH`,\n\x20\x20\x20regardless\x20of\ - \x20the\x20specified\x20priority.\x20This\x20may\x20cause\x20you\x20to\ - \x20see\x20an\n\x20\x20\x20increase\x20in\x20high\x20priority\x20workloa\ - d\x20even\x20when\x20executing\x20a\x20low\x20priority\n\x20\x20\x20requ\ - est.\x20This\x20can\x20also\x20potentially\x20cause\x20a\x20priority\x20\ - inversion\x20where\x20a\n\x20\x20\x20lower\x20priority\x20request\x20wil\ - l\x20be\x20fulfilled\x20ahead\x20of\x20a\x20higher\x20priority\n\x20\x20\ - \x20request.\n\x20*\x20If\x20a\x20transaction\x20contains\x20multiple\ - \x20operations\x20with\x20different\x20priorities,\n\x20\x20\x20Cloud\ - \x20Spanner\x20does\x20not\x20guarantee\x20to\x20process\x20the\x20highe\ - r\x20priority\n\x20\x20\x20operations\x20first.\x20There\x20may\x20be\ - \x20other\x20constraints\x20to\x20satisfy,\x20such\x20as\n\x20\x20\x20or\ - der\x20of\x20operations.\n\n\r\n\x05\x04\x08\x04\0\x01\x12\x04\xd7\x03\ - \x07\x0f\nJ\n\x06\x04\x08\x04\0\x02\0\x12\x04\xd9\x03\x04\x1d\x1a:\x20`P\ - RIORITY_UNSPECIFIED`\x20is\x20equivalent\x20to\x20`PRIORITY_HIGH`.\n\n\ - \x0f\n\x07\x04\x08\x04\0\x02\0\x01\x12\x04\xd9\x03\x04\x18\n\x0f\n\x07\ - \x04\x08\x04\0\x02\0\x02\x12\x04\xd9\x03\x1b\x1c\nB\n\x06\x04\x08\x04\0\ - \x02\x01\x12\x04\xdc\x03\x04\x15\x1a2\x20This\x20specifies\x20that\x20th\ - e\x20request\x20is\x20low\x20priority.\n\n\x0f\n\x07\x04\x08\x04\0\x02\ - \x01\x01\x12\x04\xdc\x03\x04\x10\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x02\ - \x12\x04\xdc\x03\x13\x14\nE\n\x06\x04\x08\x04\0\x02\x02\x12\x04\xdf\x03\ - \x04\x18\x1a5\x20This\x20specifies\x20that\x20the\x20request\x20is\x20me\ - dium\x20priority.\n\n\x0f\n\x07\x04\x08\x04\0\x02\x02\x01\x12\x04\xdf\ - \x03\x04\x13\n\x0f\n\x07\x04\x08\x04\0\x02\x02\x02\x12\x04\xdf\x03\x16\ - \x17\nC\n\x06\x04\x08\x04\0\x02\x03\x12\x04\xe2\x03\x04\x16\x1a3\x20This\ - \x20specifies\x20that\x20the\x20request\x20is\x20high\x20priority.\n\n\ - \x0f\n\x07\x04\x08\x04\0\x02\x03\x01\x12\x04\xe2\x03\x04\x11\n\x0f\n\x07\ - \x04\x08\x04\0\x02\x03\x02\x12\x04\xe2\x03\x14\x15\n)\n\x04\x04\x08\x02\ - \0\x12\x04\xe6\x03\x02\x18\x1a\x1b\x20Priority\x20for\x20the\x20request.\ - \n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xe6\x03\x02\n\n\r\n\x05\x04\x08\ - \x02\0\x01\x12\x04\xe6\x03\x0b\x13\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\ - \xe6\x03\x16\x17\n\xba\x04\n\x04\x04\x08\x02\x01\x12\x04\xf2\x03\x02\x19\ - \x1a\xab\x04\x20A\x20per-request\x20tag\x20which\x20can\x20be\x20applied\ - \x20to\x20queries\x20or\x20reads,\x20used\x20for\n\x20statistics\x20coll\ - ection.\n\x20Both\x20request_tag\x20and\x20transaction_tag\x20can\x20be\ - \x20specified\x20for\x20a\x20read\x20or\x20query\n\x20that\x20belongs\ - \x20to\x20a\x20transaction.\n\x20This\x20field\x20is\x20ignored\x20for\ - \x20requests\x20where\x20it's\x20not\x20applicable\x20(e.g.\n\x20CommitR\ - equest).\n\x20Legal\x20characters\x20for\x20`request_tag`\x20values\x20a\ - re\x20all\x20printable\x20characters\n\x20(ASCII\x2032\x20-\x20126)\x20a\ - nd\x20the\x20length\x20of\x20a\x20request_tag\x20is\x20limited\x20to\x20\ - 50\n\x20characters.\x20Values\x20that\x20exceed\x20this\x20limit\x20are\ - \x20truncated.\n\x20Any\x20leading\x20underscore\x20(_)\x20characters\ - \x20will\x20be\x20removed\x20from\x20the\x20string.\n\n\r\n\x05\x04\x08\ - \x02\x01\x05\x12\x04\xf2\x03\x02\x08\n\r\n\x05\x04\x08\x02\x01\x01\x12\ - \x04\xf2\x03\t\x14\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xf2\x03\x17\x18\ - \n\x89\x05\n\x04\x04\x08\x02\x02\x12\x04\xff\x03\x02\x1d\x1a\xfa\x04\x20\ - A\x20tag\x20used\x20for\x20statistics\x20collection\x20about\x20this\x20\ - transaction.\n\x20Both\x20request_tag\x20and\x20transaction_tag\x20can\ - \x20be\x20specified\x20for\x20a\x20read\x20or\x20query\n\x20that\x20belo\ - ngs\x20to\x20a\x20transaction.\n\x20The\x20value\x20of\x20transaction_ta\ - g\x20should\x20be\x20the\x20same\x20for\x20all\x20requests\x20belonging\ - \n\x20to\x20the\x20same\x20transaction.\n\x20If\x20this\x20request\x20do\ - esn't\x20belong\x20to\x20any\x20transaction,\x20transaction_tag\x20will\ - \x20be\n\x20ignored.\n\x20Legal\x20characters\x20for\x20`transaction_tag\ - `\x20values\x20are\x20all\x20printable\x20characters\n\x20(ASCII\x2032\ - \x20-\x20126)\x20and\x20the\x20length\x20of\x20a\x20transaction_tag\x20i\ - s\x20limited\x20to\x2050\n\x20characters.\x20Values\x20that\x20exceed\ - \x20this\x20limit\x20are\x20truncated.\n\x20Any\x20leading\x20underscore\ - \x20(_)\x20characters\x20will\x20be\x20removed\x20from\x20the\x20string.\ - \n\n\r\n\x05\x04\x08\x02\x02\x05\x12\x04\xff\x03\x02\x08\n\r\n\x05\x04\ - \x08\x02\x02\x01\x12\x04\xff\x03\t\x18\n\r\n\x05\x04\x08\x02\x02\x03\x12\ - \x04\xff\x03\x1b\x1c\n\x9e\x01\n\x02\x04\t\x12\x06\x84\x04\0\xa3\x05\x01\ - \x1a\x8f\x01\x20The\x20request\x20for\x20[ExecuteSql][google.spanner.v1.\ - Spanner.ExecuteSql]\x20and\n\x20[ExecuteStreamingSql][google.spanner.v1.\ - Spanner.ExecuteStreamingSql].\n\n\x0b\n\x03\x04\t\x01\x12\x04\x84\x04\ - \x08\x19\n@\n\x04\x04\t\x04\0\x12\x06\x86\x04\x02\x91\x04\x03\x1a0\x20Mo\ - de\x20in\x20which\x20the\x20statement\x20must\x20be\x20processed.\n\n\r\ - \n\x05\x04\t\x04\0\x01\x12\x04\x86\x04\x07\x10\nL\n\x06\x04\t\x04\0\x02\ - \0\x12\x04\x88\x04\x04\x0f\x1a<\x20The\x20default\x20mode.\x20Only\x20th\ - e\x20statement\x20results\x20are\x20returned.\n\n\x0f\n\x07\x04\t\x04\0\ - \x02\0\x01\x12\x04\x88\x04\x04\n\n\x0f\n\x07\x04\t\x04\0\x02\0\x02\x12\ - \x04\x88\x04\r\x0e\nr\n\x06\x04\t\x04\0\x02\x01\x12\x04\x8c\x04\x04\r\ - \x1ab\x20This\x20mode\x20returns\x20only\x20the\x20query\x20plan,\x20wit\ - hout\x20any\x20results\x20or\n\x20execution\x20statistics\x20information\ - .\n\n\x0f\n\x07\x04\t\x04\0\x02\x01\x01\x12\x04\x8c\x04\x04\x08\n\x0f\n\ - \x07\x04\t\x04\0\x02\x01\x02\x12\x04\x8c\x04\x0b\x0c\nm\n\x06\x04\t\x04\ - \0\x02\x02\x12\x04\x90\x04\x04\x10\x1a]\x20This\x20mode\x20returns\x20bo\ - th\x20the\x20query\x20plan\x20and\x20the\x20execution\x20statistics\x20a\ - long\n\x20with\x20the\x20results.\n\n\x0f\n\x07\x04\t\x04\0\x02\x02\x01\ - \x12\x04\x90\x04\x04\x0b\n\x0f\n\x07\x04\t\x04\0\x02\x02\x02\x12\x04\x90\ - \x04\x0e\x0f\n0\n\x04\x04\t\x03\0\x12\x06\x94\x04\x02\xc6\x04\x03\x1a\ - \x20\x20Query\x20optimizer\x20configuration.\n\n\r\n\x05\x04\t\x03\0\x01\ - \x12\x04\x94\x04\n\x16\n\xa2\x07\n\x06\x04\t\x03\0\x02\0\x12\x04\xab\x04\ - \x04!\x1a\x91\x07\x20An\x20option\x20to\x20control\x20the\x20selection\ - \x20of\x20optimizer\x20version.\n\n\x20This\x20parameter\x20allows\x20in\ - dividual\x20queries\x20to\x20pick\x20different\x20query\n\x20optimizer\ - \x20versions.\n\n\x20Specifying\x20`latest`\x20as\x20a\x20value\x20instr\ - ucts\x20Cloud\x20Spanner\x20to\x20use\x20the\n\x20latest\x20supported\ - \x20query\x20optimizer\x20version.\x20If\x20not\x20specified,\x20Cloud\ - \x20Spanner\n\x20uses\x20the\x20optimizer\x20version\x20set\x20at\x20the\ - \x20database\x20level\x20options.\x20Any\x20other\n\x20positive\x20integ\ - er\x20(from\x20the\x20list\x20of\x20supported\x20optimizer\x20versions)\ - \n\x20overrides\x20the\x20default\x20optimizer\x20version\x20for\x20quer\ - y\x20execution.\n\n\x20The\x20list\x20of\x20supported\x20optimizer\x20ve\ - rsions\x20can\x20be\x20queried\x20from\n\x20SPANNER_SYS.SUPPORTED_OPTIMI\ - ZER_VERSIONS.\n\n\x20Executing\x20a\x20SQL\x20statement\x20with\x20an\ - \x20invalid\x20optimizer\x20version\x20fails\x20with\n\x20an\x20`INVALID\ - _ARGUMENT`\x20error.\n\n\x20See\n\x20https://cloud.google.com/spanner/do\ - cs/query-optimizer/manage-query-optimizer\n\x20for\x20more\x20informatio\ - n\x20on\x20managing\x20the\x20query\x20optimizer.\n\n\x20The\x20`optimiz\ - er_version`\x20statement\x20hint\x20has\x20precedence\x20over\x20this\ - \x20setting.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x05\x12\x04\xab\x04\x04\n\n\ - \x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\xab\x04\x0b\x1c\n\x0f\n\x07\x04\ - \t\x03\0\x02\0\x03\x12\x04\xab\x04\x1f\x20\n\xb2\x07\n\x06\x04\t\x03\0\ - \x02\x01\x12\x04\xc5\x04\x04,\x1a\xa1\x07\x20An\x20option\x20to\x20contr\ - ol\x20the\x20selection\x20of\x20optimizer\x20statistics\x20package.\n\n\ - \x20This\x20parameter\x20allows\x20individual\x20queries\x20to\x20use\ - \x20a\x20different\x20query\n\x20optimizer\x20statistics\x20package.\n\n\ - \x20Specifying\x20`latest`\x20as\x20a\x20value\x20instructs\x20Cloud\x20\ - Spanner\x20to\x20use\x20the\x20latest\n\x20generated\x20statistics\x20pa\ - ckage.\x20If\x20not\x20specified,\x20Cloud\x20Spanner\x20uses\n\x20the\ - \x20statistics\x20package\x20set\x20at\x20the\x20database\x20level\x20op\ - tions,\x20or\x20the\x20latest\n\x20package\x20if\x20the\x20database\x20o\ - ption\x20is\x20not\x20set.\n\n\x20The\x20statistics\x20package\x20reques\ - ted\x20by\x20the\x20query\x20has\x20to\x20be\x20exempt\x20from\n\x20garb\ - age\x20collection.\x20This\x20can\x20be\x20achieved\x20with\x20the\x20fo\ - llowing\x20DDL\n\x20statement:\n\n\x20```\n\x20ALTER\x20STATISTICS\x20\x20SET\x20OPTIONS\x20(allow_gc=false)\n\x20```\n\n\x20The\ - \x20list\x20of\x20available\x20statistics\x20packages\x20can\x20be\x20qu\ - eried\x20from\n\x20`INFORMATION_SCHEMA.SPANNER_STATISTICS`.\n\n\x20Execu\ - ting\x20a\x20SQL\x20statement\x20with\x20an\x20invalid\x20optimizer\x20s\ - tatistics\x20package\n\x20or\x20with\x20a\x20statistics\x20package\x20th\ - at\x20allows\x20garbage\x20collection\x20fails\x20with\n\x20an\x20`INVAL\ - ID_ARGUMENT`\x20error.\n\n\x0f\n\x07\x04\t\x03\0\x02\x01\x05\x12\x04\xc5\ - \x04\x04\n\n\x0f\n\x07\x04\t\x03\0\x02\x01\x01\x12\x04\xc5\x04\x0b'\n\ - \x0f\n\x07\x04\t\x03\0\x02\x01\x03\x12\x04\xc5\x04*+\nS\n\x04\x04\t\x02\ - \0\x12\x06\xc9\x04\x02\xce\x04\x04\x1aC\x20Required.\x20The\x20session\ - \x20in\x20which\x20the\x20SQL\x20query\x20should\x20be\x20performed.\n\n\ - \r\n\x05\x04\t\x02\0\x05\x12\x04\xc9\x04\x02\x08\n\r\n\x05\x04\t\x02\0\ - \x01\x12\x04\xc9\x04\t\x10\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xc9\x04\x13\ - \x14\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xc9\x04\x15\xce\x04\x03\n\x10\n\ - \x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xca\x04\x04*\n\x11\n\x07\x04\t\ - \x02\0\x08\x9f\x08\x12\x06\xcb\x04\x04\xcd\x04\x05\n\xb9\x03\n\x04\x04\t\ - \x02\x01\x12\x04\xda\x04\x02&\x1a\xaa\x03\x20The\x20transaction\x20to\ + \x03\x04\x03\x01\x12\x04\xd9\x02\x08\x0f\n\r\n\x03\x04\x03\x07\x12\x06\ + \xda\x02\x02\xdd\x02\x04\n\x0f\n\x05\x04\x03\x07\x9d\x08\x12\x06\xda\x02\ + \x02\xdd\x02\x04\n~\n\x04\x04\x03\x02\0\x12\x04\xe1\x02\x02\x12\x1ap\x20\ + The\x20name\x20of\x20the\x20session.\x20This\x20is\x20always\x20system-a\ + ssigned;\x20values\x20provided\n\x20when\x20creating\x20a\x20session\x20\ + are\x20ignored.\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\xe1\x02\x02\x08\n\ + \r\n\x05\x04\x03\x02\0\x01\x12\x04\xe1\x02\t\r\n\r\n\x05\x04\x03\x02\0\ + \x03\x12\x04\xe1\x02\x10\x11\n\xd6\x03\n\x04\x04\x03\x02\x01\x12\x04\xec\ + \x02\x02!\x1a\xc7\x03\x20The\x20labels\x20for\x20the\x20session.\n\n\x20\ + \x20*\x20Label\x20keys\x20must\x20be\x20between\x201\x20and\x2063\x20cha\ + racters\x20long\x20and\x20must\x20conform\x20to\n\x20\x20\x20\x20the\x20\ + following\x20regular\x20expression:\x20`[a-z]([-a-z0-9]*[a-z0-9])?`.\n\ + \x20\x20*\x20Label\x20values\x20must\x20be\x20between\x200\x20and\x2063\ + \x20characters\x20long\x20and\x20must\x20conform\n\x20\x20\x20\x20to\x20\ + the\x20regular\x20expression\x20`([a-z]([-a-z0-9]*[a-z0-9])?)?`.\n\x20\ + \x20*\x20No\x20more\x20than\x2064\x20labels\x20can\x20be\x20associated\ + \x20with\x20a\x20given\x20session.\n\n\x20See\x20https://goo.gl/xmQnxf\ + \x20for\x20more\x20information\x20on\x20and\x20examples\x20of\x20labels.\ + \n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\xec\x02\x02\x15\n\r\n\x05\x04\ + \x03\x02\x01\x01\x12\x04\xec\x02\x16\x1c\n\r\n\x05\x04\x03\x02\x01\x03\ + \x12\x04\xec\x02\x1f\x20\nG\n\x04\x04\x03\x02\x02\x12\x04\xef\x02\x02,\ + \x1a9\x20Output\x20only.\x20The\x20timestamp\x20when\x20the\x20session\ + \x20is\x20created.\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xef\x02\x02\ + \x1b\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xef\x02\x1c'\n\r\n\x05\x04\ + \x03\x02\x02\x03\x12\x04\xef\x02*+\n\x8d\x01\n\x04\x04\x03\x02\x03\x12\ + \x04\xf3\x02\x02:\x1a\x7f\x20Output\x20only.\x20The\x20approximate\x20ti\ + mestamp\x20when\x20the\x20session\x20is\x20last\x20used.\x20It\x20is\n\ + \x20typically\x20earlier\x20than\x20the\x20actual\x20last\x20use\x20time\ + .\n\n\r\n\x05\x04\x03\x02\x03\x06\x12\x04\xf3\x02\x02\x1b\n\r\n\x05\x04\ + \x03\x02\x03\x01\x12\x04\xf3\x02\x1c5\n\r\n\x05\x04\x03\x02\x03\x03\x12\ + \x04\xf3\x0289\nS\n\x02\x04\x04\x12\x06\xf7\x02\0\xfd\x02\x01\x1aE\x20Th\ + e\x20request\x20for\x20[GetSession][google.spanner.v1.Spanner.GetSession\ + ].\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xf7\x02\x08\x19\n@\n\x04\x04\x04\ + \x02\0\x12\x06\xf9\x02\x02\xfc\x02\x04\x1a0\x20Required.\x20The\x20name\ + \x20of\x20the\x20session\x20to\x20retrieve.\n\n\r\n\x05\x04\x04\x02\0\ + \x05\x12\x04\xf9\x02\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xf9\x02\ + \t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xf9\x02\x10\x11\n\x0f\n\x05\x04\ + \x04\x02\0\x08\x12\x06\xf9\x02\x12\xfc\x02\x03\n\x10\n\x08\x04\x04\x02\0\ + \x08\x9c\x08\0\x12\x04\xfa\x02\x04*\n\x0f\n\x07\x04\x04\x02\0\x08\x9f\ + \x08\x12\x04\xfb\x02\x04P\nW\n\x02\x04\x05\x12\x06\x80\x03\0\x9e\x03\x01\ + \x1aI\x20The\x20request\x20for\x20[ListSessions][google.spanner.v1.Spann\ + er.ListSessions].\n\n\x0b\n\x03\x04\x05\x01\x12\x04\x80\x03\x08\x1b\nC\n\ + \x04\x04\x05\x02\0\x12\x06\x82\x03\x02\x87\x03\x04\x1a3\x20Required.\x20\ + The\x20database\x20in\x20which\x20to\x20list\x20sessions.\n\n\r\n\x05\ + \x04\x05\x02\0\x05\x12\x04\x82\x03\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\ + \x12\x04\x82\x03\t\x11\n\r\n\x05\x04\x05\x02\0\x03\x12\x04\x82\x03\x14\ + \x15\n\x0f\n\x05\x04\x05\x02\0\x08\x12\x06\x82\x03\x16\x87\x03\x03\n\x10\ + \n\x08\x04\x05\x02\0\x08\x9c\x08\0\x12\x04\x83\x03\x04*\n\x11\n\x07\x04\ + \x05\x02\0\x08\x9f\x08\x12\x06\x84\x03\x04\x86\x03\x05\n\x85\x01\n\x04\ + \x04\x05\x02\x01\x12\x04\x8b\x03\x02\x16\x1aw\x20Number\x20of\x20session\ + s\x20to\x20be\x20returned\x20in\x20the\x20response.\x20If\x200\x20or\x20\ + less,\x20defaults\n\x20to\x20the\x20server's\x20maximum\x20allowed\x20pa\ + ge\x20size.\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\x8b\x03\x02\x07\n\r\ + \n\x05\x04\x05\x02\x01\x01\x12\x04\x8b\x03\x08\x11\n\r\n\x05\x04\x05\x02\ + \x01\x03\x12\x04\x8b\x03\x14\x15\n\xd9\x01\n\x04\x04\x05\x02\x02\x12\x04\ + \x91\x03\x02\x18\x1a\xca\x01\x20If\x20non-empty,\x20`page_token`\x20shou\ + ld\x20contain\x20a\n\x20[next_page_token][google.spanner.v1.ListSessions\ + Response.next_page_token]\n\x20from\x20a\x20previous\n\x20[ListSessionsR\ + esponse][google.spanner.v1.ListSessionsResponse].\n\n\r\n\x05\x04\x05\ + \x02\x02\x05\x12\x04\x91\x03\x02\x08\n\r\n\x05\x04\x05\x02\x02\x01\x12\ + \x04\x91\x03\t\x13\n\r\n\x05\x04\x05\x02\x02\x03\x12\x04\x91\x03\x16\x17\ + \n\xaf\x03\n\x04\x04\x05\x02\x03\x12\x04\x9d\x03\x02\x14\x1a\xa0\x03\x20\ + An\x20expression\x20for\x20filtering\x20the\x20results\x20of\x20the\x20r\ + equest.\x20Filter\x20rules\x20are\n\x20case\x20insensitive.\x20The\x20fi\ + elds\x20eligible\x20for\x20filtering\x20are:\n\n\x20\x20\x20*\x20`labels\ + .key`\x20where\x20key\x20is\x20the\x20name\x20of\x20a\x20label\n\n\x20So\ + me\x20examples\x20of\x20using\x20filters\x20are:\n\n\x20\x20\x20*\x20`la\ + bels.env:*`\x20-->\x20The\x20session\x20has\x20the\x20label\x20\"env\".\ + \n\x20\x20\x20*\x20`labels.env:dev`\x20-->\x20The\x20session\x20has\x20t\ + he\x20label\x20\"env\"\x20and\x20the\x20value\x20of\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20the\x20label\x20contains\x20the\x20string\x20\"dev\".\n\n\r\n\ + \x05\x04\x05\x02\x03\x05\x12\x04\x9d\x03\x02\x08\n\r\n\x05\x04\x05\x02\ + \x03\x01\x12\x04\x9d\x03\t\x0f\n\r\n\x05\x04\x05\x02\x03\x03\x12\x04\x9d\ + \x03\x12\x13\nX\n\x02\x04\x06\x12\x06\xa1\x03\0\xa9\x03\x01\x1aJ\x20The\ + \x20response\x20for\x20[ListSessions][google.spanner.v1.Spanner.ListSess\ + ions].\n\n\x0b\n\x03\x04\x06\x01\x12\x04\xa1\x03\x08\x1c\n/\n\x04\x04\ + \x06\x02\0\x12\x04\xa3\x03\x02\x20\x1a!\x20The\x20list\x20of\x20requeste\ + d\x20sessions.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x04\xa3\x03\x02\n\n\r\n\ + \x05\x04\x06\x02\0\x06\x12\x04\xa3\x03\x0b\x12\n\r\n\x05\x04\x06\x02\0\ + \x01\x12\x04\xa3\x03\x13\x1b\n\r\n\x05\x04\x06\x02\0\x03\x12\x04\xa3\x03\ + \x1e\x1f\n\xa4\x01\n\x04\x04\x06\x02\x01\x12\x04\xa8\x03\x02\x1d\x1a\x95\ + \x01\x20`next_page_token`\x20can\x20be\x20sent\x20in\x20a\x20subsequent\ + \n\x20[ListSessions][google.spanner.v1.Spanner.ListSessions]\x20call\x20\ + to\x20fetch\x20more\n\x20of\x20the\x20matching\x20sessions.\n\n\r\n\x05\ + \x04\x06\x02\x01\x05\x12\x04\xa8\x03\x02\x08\n\r\n\x05\x04\x06\x02\x01\ + \x01\x12\x04\xa8\x03\t\x18\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\xa8\x03\ + \x1b\x1c\nY\n\x02\x04\x07\x12\x06\xac\x03\0\xb2\x03\x01\x1aK\x20The\x20r\ + equest\x20for\x20[DeleteSession][google.spanner.v1.Spanner.DeleteSession\ + ].\n\n\x0b\n\x03\x04\x07\x01\x12\x04\xac\x03\x08\x1c\n>\n\x04\x04\x07\ + \x02\0\x12\x06\xae\x03\x02\xb1\x03\x04\x1a.\x20Required.\x20The\x20name\ + \x20of\x20the\x20session\x20to\x20delete.\n\n\r\n\x05\x04\x07\x02\0\x05\ + \x12\x04\xae\x03\x02\x08\n\r\n\x05\x04\x07\x02\0\x01\x12\x04\xae\x03\t\r\ + \n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xae\x03\x10\x11\n\x0f\n\x05\x04\x07\ + \x02\0\x08\x12\x06\xae\x03\x12\xb1\x03\x03\n\x10\n\x08\x04\x07\x02\0\x08\ + \x9c\x08\0\x12\x04\xaf\x03\x04*\n\x0f\n\x07\x04\x07\x02\0\x08\x9f\x08\ + \x12\x04\xb0\x03\x04P\n\x9e\x01\n\x02\x04\x08\x12\x06\xb6\x03\0\x94\x04\ + \x01\x1a\x8f\x01\x20The\x20request\x20for\x20[ExecuteSql][google.spanner\ + .v1.Spanner.ExecuteSql]\x20and\n\x20[ExecuteStreamingSql][google.spanner\ + .v1.Spanner.ExecuteStreamingSql].\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xb6\ + \x03\x08\x19\n@\n\x04\x04\x08\x04\0\x12\x06\xb8\x03\x02\xc3\x03\x03\x1a0\ + \x20Mode\x20in\x20which\x20the\x20statement\x20must\x20be\x20processed.\ + \n\n\r\n\x05\x04\x08\x04\0\x01\x12\x04\xb8\x03\x07\x10\nL\n\x06\x04\x08\ + \x04\0\x02\0\x12\x04\xba\x03\x04\x0f\x1a<\x20The\x20default\x20mode.\x20\ + Only\x20the\x20statement\x20results\x20are\x20returned.\n\n\x0f\n\x07\ + \x04\x08\x04\0\x02\0\x01\x12\x04\xba\x03\x04\n\n\x0f\n\x07\x04\x08\x04\0\ + \x02\0\x02\x12\x04\xba\x03\r\x0e\nr\n\x06\x04\x08\x04\0\x02\x01\x12\x04\ + \xbe\x03\x04\r\x1ab\x20This\x20mode\x20returns\x20only\x20the\x20query\ + \x20plan,\x20without\x20any\x20results\x20or\n\x20execution\x20statistic\ + s\x20information.\n\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x01\x12\x04\xbe\ + \x03\x04\x08\n\x0f\n\x07\x04\x08\x04\0\x02\x01\x02\x12\x04\xbe\x03\x0b\ + \x0c\nm\n\x06\x04\x08\x04\0\x02\x02\x12\x04\xc2\x03\x04\x10\x1a]\x20This\ + \x20mode\x20returns\x20both\x20the\x20query\x20plan\x20and\x20the\x20exe\ + cution\x20statistics\x20along\n\x20with\x20the\x20results.\n\n\x0f\n\x07\ + \x04\x08\x04\0\x02\x02\x01\x12\x04\xc2\x03\x04\x0b\n\x0f\n\x07\x04\x08\ + \x04\0\x02\x02\x02\x12\x04\xc2\x03\x0e\x0f\nS\n\x04\x04\x08\x02\0\x12\ + \x06\xc6\x03\x02\xc9\x03\x04\x1aC\x20Required.\x20The\x20session\x20in\ + \x20which\x20the\x20SQL\x20query\x20should\x20be\x20performed.\n\n\r\n\ + \x05\x04\x08\x02\0\x05\x12\x04\xc6\x03\x02\x08\n\r\n\x05\x04\x08\x02\0\ + \x01\x12\x04\xc6\x03\t\x10\n\r\n\x05\x04\x08\x02\0\x03\x12\x04\xc6\x03\ + \x13\x14\n\x0f\n\x05\x04\x08\x02\0\x08\x12\x06\xc6\x03\x15\xc9\x03\x03\n\ + \x10\n\x08\x04\x08\x02\0\x08\x9c\x08\0\x12\x04\xc7\x03\x04*\n\x0f\n\x07\ + \x04\x08\x02\0\x08\x9f\x08\x12\x04\xc8\x03\x04P\n\xb9\x03\n\x04\x04\x08\ + \x02\x01\x12\x04\xd5\x03\x02&\x1a\xaa\x03\x20The\x20transaction\x20to\ \x20use.\n\n\x20For\x20queries,\x20if\x20none\x20is\x20provided,\x20the\ \x20default\x20is\x20a\x20temporary\x20read-only\n\x20transaction\x20wit\ h\x20strong\x20concurrency.\n\n\x20Standard\x20DML\x20statements\x20requ\ @@ -8311,641 +4809,595 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20The\x20caller\n\x20must\x20either\x20supply\x20an\x20existing\x20tra\ nsaction\x20ID\x20or\x20begin\x20a\x20new\x20transaction.\n\n\x20Partiti\ oned\x20DML\x20requires\x20an\x20existing\x20Partitioned\x20DML\x20trans\ - action\x20ID.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xda\x04\x02\x15\n\r\ - \n\x05\x04\t\x02\x01\x01\x12\x04\xda\x04\x16!\n\r\n\x05\x04\t\x02\x01\ - \x03\x12\x04\xda\x04$%\n)\n\x04\x04\t\x02\x02\x12\x04\xdd\x04\x02:\x1a\ - \x1b\x20Required.\x20The\x20SQL\x20string.\n\n\r\n\x05\x04\t\x02\x02\x05\ - \x12\x04\xdd\x04\x02\x08\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xdd\x04\t\ - \x0c\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xdd\x04\x0f\x10\n\r\n\x05\x04\t\ - \x02\x02\x08\x12\x04\xdd\x04\x119\n\x10\n\x08\x04\t\x02\x02\x08\x9c\x08\ - \0\x12\x04\xdd\x04\x128\n\xdc\x04\n\x04\x04\t\x02\x03\x12\x04\xec\x04\ - \x02$\x1a\xcd\x04\x20Parameter\x20names\x20and\x20values\x20that\x20bind\ - \x20to\x20placeholders\x20in\x20the\x20SQL\x20string.\n\n\x20A\x20parame\ - ter\x20placeholder\x20consists\x20of\x20the\x20`@`\x20character\x20follo\ - wed\x20by\x20the\n\x20parameter\x20name\x20(for\x20example,\x20`@firstNa\ - me`).\x20Parameter\x20names\x20must\x20conform\n\x20to\x20the\x20naming\ - \x20requirements\x20of\x20identifiers\x20as\x20specified\x20at\n\x20http\ - s://cloud.google.com/spanner/docs/lexical#identifiers.\n\n\x20Parameters\ - \x20can\x20appear\x20anywhere\x20that\x20a\x20literal\x20value\x20is\x20\ - expected.\x20\x20The\x20same\n\x20parameter\x20name\x20can\x20be\x20used\ - \x20more\x20than\x20once,\x20for\x20example:\n\n\x20`\"WHERE\x20id\x20>\ - \x20@msg_id\x20AND\x20id\x20<\x20@msg_id\x20+\x20100\"`\n\n\x20It\x20is\ - \x20an\x20error\x20to\x20execute\x20a\x20SQL\x20statement\x20with\x20unb\ - ound\x20parameters.\n\n\r\n\x05\x04\t\x02\x03\x06\x12\x04\xec\x04\x02\ - \x18\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\xec\x04\x19\x1f\n\r\n\x05\x04\t\ - \x02\x03\x03\x12\x04\xec\x04\"#\n\xdc\x03\n\x04\x04\t\x02\x04\x12\x04\ - \xf6\x04\x02$\x1a\xcd\x03\x20It\x20is\x20not\x20always\x20possible\x20fo\ - r\x20Cloud\x20Spanner\x20to\x20infer\x20the\x20right\x20SQL\x20type\n\ - \x20from\x20a\x20JSON\x20value.\x20\x20For\x20example,\x20values\x20of\ - \x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\x20`STRING`\x20both\ - \x20appear\x20in\x20[params][google.spanner.v1.ExecuteSqlRequest.params]\ - \x20as\x20JSON\x20strings.\n\n\x20In\x20these\x20cases,\x20`param_types`\ - \x20can\x20be\x20used\x20to\x20specify\x20the\x20exact\n\x20SQL\x20type\ - \x20for\x20some\x20or\x20all\x20of\x20the\x20SQL\x20statement\x20paramet\ - ers.\x20See\x20the\n\x20definition\x20of\x20[Type][google.spanner.v1.Typ\ - e]\x20for\x20more\x20information\n\x20about\x20SQL\x20types.\n\n\r\n\x05\ - \x04\t\x02\x04\x06\x12\x04\xf6\x04\x02\x13\n\r\n\x05\x04\t\x02\x04\x01\ - \x12\x04\xf6\x04\x14\x1f\n\r\n\x05\x04\t\x02\x04\x03\x12\x04\xf6\x04\"#\ - \n\x9e\x03\n\x04\x04\t\x02\x05\x12\x04\xfe\x04\x02\x19\x1a\x8f\x03\x20If\ - \x20this\x20request\x20is\x20resuming\x20a\x20previously\x20interrupted\ - \x20SQL\x20statement\n\x20execution,\x20`resume_token`\x20should\x20be\ - \x20copied\x20from\x20the\x20last\n\x20[PartialResultSet][google.spanner\ - .v1.PartialResultSet]\x20yielded\x20before\x20the\x20interruption.\x20Do\ - ing\x20this\n\x20enables\x20the\x20new\x20SQL\x20statement\x20execution\ - \x20to\x20resume\x20where\x20the\x20last\x20one\x20left\n\x20off.\x20The\ - \x20rest\x20of\x20the\x20request\x20parameters\x20must\x20exactly\x20mat\ - ch\x20the\n\x20request\x20that\x20yielded\x20this\x20token.\n\n\r\n\x05\ - \x04\t\x02\x05\x05\x12\x04\xfe\x04\x02\x07\n\r\n\x05\x04\t\x02\x05\x01\ - \x12\x04\xfe\x04\x08\x14\n\r\n\x05\x04\t\x02\x05\x03\x12\x04\xfe\x04\x17\ - \x18\n\xf2\x02\n\x04\x04\t\x02\x06\x12\x04\x83\x05\x02\x1b\x1a\xe3\x02\ - \x20Used\x20to\x20control\x20the\x20amount\x20of\x20debugging\x20informa\ - tion\x20returned\x20in\n\x20[ResultSetStats][google.spanner.v1.ResultSet\ - Stats].\x20If\x20[partition_token][google.spanner.v1.ExecuteSqlRequest.p\ - artition_token]\x20is\x20set,\x20[query_mode][google.spanner.v1.ExecuteS\ - qlRequest.query_mode]\x20can\x20only\n\x20be\x20set\x20to\x20[QueryMode.\ - NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].\n\n\r\n\ - \x05\x04\t\x02\x06\x06\x12\x04\x83\x05\x02\x0b\n\r\n\x05\x04\t\x02\x06\ - \x01\x12\x04\x83\x05\x0c\x16\n\r\n\x05\x04\t\x02\x06\x03\x12\x04\x83\x05\ - \x19\x1a\n\x99\x02\n\x04\x04\t\x02\x07\x12\x04\x89\x05\x02\x1c\x1a\x8a\ - \x02\x20If\x20present,\x20results\x20will\x20be\x20restricted\x20to\x20t\ - he\x20specified\x20partition\n\x20previously\x20created\x20using\x20Part\ - itionQuery().\x20\x20There\x20must\x20be\x20an\x20exact\n\x20match\x20fo\ - r\x20the\x20values\x20of\x20fields\x20common\x20to\x20this\x20message\ - \x20and\x20the\n\x20PartitionQueryRequest\x20message\x20used\x20to\x20cr\ - eate\x20this\x20partition_token.\n\n\r\n\x05\x04\t\x02\x07\x05\x12\x04\ - \x89\x05\x02\x07\n\r\n\x05\x04\t\x02\x07\x01\x12\x04\x89\x05\x08\x17\n\r\ - \n\x05\x04\t\x02\x07\x03\x12\x04\x89\x05\x1a\x1b\n\x9b\x04\n\x04\x04\t\ - \x02\x08\x12\x04\x95\x05\x02\x12\x1a\x8c\x04\x20A\x20per-transaction\x20\ - sequence\x20number\x20used\x20to\x20identify\x20this\x20request.\x20This\ - \x20field\n\x20makes\x20each\x20request\x20idempotent\x20such\x20that\ - \x20if\x20the\x20request\x20is\x20received\x20multiple\n\x20times,\x20at\ - \x20most\x20one\x20will\x20succeed.\n\n\x20The\x20sequence\x20number\x20\ - must\x20be\x20monotonically\x20increasing\x20within\x20the\n\x20transact\ - ion.\x20If\x20a\x20request\x20arrives\x20for\x20the\x20first\x20time\x20\ - with\x20an\x20out-of-order\n\x20sequence\x20number,\x20the\x20transactio\ - n\x20may\x20be\x20aborted.\x20Replays\x20of\x20previously\n\x20handled\ - \x20requests\x20will\x20yield\x20the\x20same\x20response\x20as\x20the\ - \x20first\x20execution.\n\n\x20Required\x20for\x20DML\x20statements.\x20\ - Ignored\x20for\x20queries.\n\n\r\n\x05\x04\t\x02\x08\x05\x12\x04\x95\x05\ - \x02\x07\n\r\n\x05\x04\t\x02\x08\x01\x12\x04\x95\x05\x08\r\n\r\n\x05\x04\ - \t\x02\x08\x03\x12\x04\x95\x05\x10\x11\nI\n\x04\x04\t\x02\t\x12\x04\x98\ - \x05\x02\"\x1a;\x20Query\x20optimizer\x20configuration\x20to\x20use\x20f\ - or\x20the\x20given\x20query.\n\n\r\n\x05\x04\t\x02\t\x06\x12\x04\x98\x05\ - \x02\x0e\n\r\n\x05\x04\t\x02\t\x01\x12\x04\x98\x05\x0f\x1c\n\r\n\x05\x04\ - \t\x02\t\x03\x12\x04\x98\x05\x1f!\n0\n\x04\x04\t\x02\n\x12\x04\x9b\x05\ - \x02&\x1a\"\x20Common\x20options\x20for\x20this\x20request.\n\n\r\n\x05\ - \x04\t\x02\n\x06\x12\x04\x9b\x05\x02\x10\n\r\n\x05\x04\t\x02\n\x01\x12\ - \x04\x9b\x05\x11\x20\n\r\n\x05\x04\t\x02\n\x03\x12\x04\x9b\x05#%\n\x9f\ - \x02\n\x04\x04\t\x02\x0b\x12\x04\xa2\x05\x02\x1f\x1a\x90\x02\x20If\x20th\ - is\x20is\x20for\x20a\x20partitioned\x20query\x20and\x20this\x20field\x20\ - is\x20set\x20to\x20`true`,\x20the\n\x20request\x20will\x20be\x20executed\ - \x20via\x20Spanner\x20independent\x20compute\x20resources.\n\n\x20If\x20\ - the\x20field\x20is\x20set\x20to\x20`true`\x20but\x20the\x20request\x20do\ - es\x20not\x20set\n\x20`partition_token`,\x20the\x20API\x20will\x20return\ - \x20an\x20`INVALID_ARGUMENT`\x20error.\n\n\r\n\x05\x04\t\x02\x0b\x05\x12\ - \x04\xa2\x05\x02\x06\n\r\n\x05\x04\t\x02\x0b\x01\x12\x04\xa2\x05\x07\x19\ - \n\r\n\x05\x04\t\x02\x0b\x03\x12\x04\xa2\x05\x1c\x1e\n]\n\x02\x04\n\x12\ - \x06\xa6\x05\0\xe8\x05\x01\x1aO\x20The\x20request\x20for\x20[ExecuteBatc\ - hDml][google.spanner.v1.Spanner.ExecuteBatchDml].\n\n\x0b\n\x03\x04\n\ - \x01\x12\x04\xa6\x05\x08\x1e\n)\n\x04\x04\n\x03\0\x12\x06\xa8\x05\x02\ - \xc3\x05\x03\x1a\x19\x20A\x20single\x20DML\x20statement.\n\n\r\n\x05\x04\ - \n\x03\0\x01\x12\x04\xa8\x05\n\x13\n+\n\x06\x04\n\x03\0\x02\0\x12\x04\ - \xaa\x05\x04<\x1a\x1b\x20Required.\x20The\x20DML\x20string.\n\n\x0f\n\ - \x07\x04\n\x03\0\x02\0\x05\x12\x04\xaa\x05\x04\n\n\x0f\n\x07\x04\n\x03\0\ - \x02\0\x01\x12\x04\xaa\x05\x0b\x0e\n\x0f\n\x07\x04\n\x03\0\x02\0\x03\x12\ - \x04\xaa\x05\x11\x12\n\x0f\n\x07\x04\n\x03\0\x02\0\x08\x12\x04\xaa\x05\ - \x13;\n\x12\n\n\x04\n\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xaa\x05\x14:\n\ - \x8a\x04\n\x06\x04\n\x03\0\x02\x01\x12\x04\xb8\x05\x04&\x1a\xf9\x03\x20P\ - arameter\x20names\x20and\x20values\x20that\x20bind\x20to\x20placeholders\ - \x20in\x20the\x20DML\x20string.\n\n\x20A\x20parameter\x20placeholder\x20\ - consists\x20of\x20the\x20`@`\x20character\x20followed\x20by\x20the\n\x20\ - parameter\x20name\x20(for\x20example,\x20`@firstName`).\x20Parameter\x20\ - names\x20can\x20contain\n\x20letters,\x20numbers,\x20and\x20underscores.\ - \n\n\x20Parameters\x20can\x20appear\x20anywhere\x20that\x20a\x20literal\ - \x20value\x20is\x20expected.\x20\x20The\n\x20same\x20parameter\x20name\ - \x20can\x20be\x20used\x20more\x20than\x20once,\x20for\x20example:\n\n\ - \x20`\"WHERE\x20id\x20>\x20@msg_id\x20AND\x20id\x20<\x20@msg_id\x20+\x20\ - 100\"`\n\n\x20It\x20is\x20an\x20error\x20to\x20execute\x20a\x20SQL\x20st\ - atement\x20with\x20unbound\x20parameters.\n\n\x0f\n\x07\x04\n\x03\0\x02\ - \x01\x06\x12\x04\xb8\x05\x04\x1a\n\x0f\n\x07\x04\n\x03\0\x02\x01\x01\x12\ - \x04\xb8\x05\x1b!\n\x0f\n\x07\x04\n\x03\0\x02\x01\x03\x12\x04\xb8\x05$%\ - \n\xed\x03\n\x06\x04\n\x03\0\x02\x02\x12\x04\xc2\x05\x04&\x1a\xdc\x03\ - \x20It\x20is\x20not\x20always\x20possible\x20for\x20Cloud\x20Spanner\x20\ - to\x20infer\x20the\x20right\x20SQL\x20type\n\x20from\x20a\x20JSON\x20val\ - ue.\x20\x20For\x20example,\x20values\x20of\x20type\x20`BYTES`\x20and\x20\ - values\n\x20of\x20type\x20`STRING`\x20both\x20appear\x20in\x20[params][g\ - oogle.spanner.v1.ExecuteBatchDmlRequest.Statement.params]\x20as\x20JSON\ - \x20strings.\n\n\x20In\x20these\x20cases,\x20`param_types`\x20can\x20be\ - \x20used\x20to\x20specify\x20the\x20exact\n\x20SQL\x20type\x20for\x20som\ - e\x20or\x20all\x20of\x20the\x20SQL\x20statement\x20parameters.\x20See\ - \x20the\n\x20definition\x20of\x20[Type][google.spanner.v1.Type]\x20for\ - \x20more\x20information\n\x20about\x20SQL\x20types.\n\n\x0f\n\x07\x04\n\ - \x03\0\x02\x02\x06\x12\x04\xc2\x05\x04\x15\n\x0f\n\x07\x04\n\x03\0\x02\ - \x02\x01\x12\x04\xc2\x05\x16!\n\x0f\n\x07\x04\n\x03\0\x02\x02\x03\x12\ - \x04\xc2\x05$%\nX\n\x04\x04\n\x02\0\x12\x06\xc6\x05\x02\xcb\x05\x04\x1aH\ - \x20Required.\x20The\x20session\x20in\x20which\x20the\x20DML\x20statemen\ - ts\x20should\x20be\x20performed.\n\n\r\n\x05\x04\n\x02\0\x05\x12\x04\xc6\ - \x05\x02\x08\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xc6\x05\t\x10\n\r\n\x05\ - \x04\n\x02\0\x03\x12\x04\xc6\x05\x13\x14\n\x0f\n\x05\x04\n\x02\0\x08\x12\ - \x06\xc6\x05\x15\xcb\x05\x03\n\x10\n\x08\x04\n\x02\0\x08\x9c\x08\0\x12\ - \x04\xc7\x05\x04*\n\x11\n\x07\x04\n\x02\0\x08\x9f\x08\x12\x06\xc8\x05\ - \x04\xca\x05\x05\n\xf4\x01\n\x04\x04\n\x02\x01\x12\x04\xd2\x05\x02O\x1a\ - \xe5\x01\x20Required.\x20The\x20transaction\x20to\x20use.\x20Must\x20be\ - \x20a\x20read-write\x20transaction.\n\n\x20To\x20protect\x20against\x20r\ - eplays,\x20single-use\x20transactions\x20are\x20not\x20supported.\x20The\ - \n\x20caller\x20must\x20either\x20supply\x20an\x20existing\x20transactio\ - n\x20ID\x20or\x20begin\x20a\x20new\n\x20transaction.\n\n\r\n\x05\x04\n\ - \x02\x01\x06\x12\x04\xd2\x05\x02\x15\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\ - \xd2\x05\x16!\n\r\n\x05\x04\n\x02\x01\x03\x12\x04\xd2\x05$%\n\r\n\x05\ - \x04\n\x02\x01\x08\x12\x04\xd2\x05&N\n\x10\n\x08\x04\n\x02\x01\x08\x9c\ - \x08\0\x12\x04\xd2\x05'M\n\xe8\x02\n\x04\x04\n\x02\x02\x12\x04\xda\x05\ - \x02M\x1a\xd9\x02\x20Required.\x20The\x20list\x20of\x20statements\x20to\ - \x20execute\x20in\x20this\x20batch.\x20Statements\x20are\x20executed\n\ - \x20serially,\x20such\x20that\x20the\x20effects\x20of\x20statement\x20`i\ - `\x20are\x20visible\x20to\x20statement\n\x20`i+1`.\x20Each\x20statement\ - \x20must\x20be\x20a\x20DML\x20statement.\x20Execution\x20stops\x20at\x20\ - the\n\x20first\x20failed\x20statement;\x20the\x20remaining\x20statements\ - \x20are\x20not\x20executed.\n\n\x20Callers\x20must\x20provide\x20at\x20l\ - east\x20one\x20statement.\n\n\r\n\x05\x04\n\x02\x02\x04\x12\x04\xda\x05\ - \x02\n\n\r\n\x05\x04\n\x02\x02\x06\x12\x04\xda\x05\x0b\x14\n\r\n\x05\x04\ - \n\x02\x02\x01\x12\x04\xda\x05\x15\x1f\n\r\n\x05\x04\n\x02\x02\x03\x12\ - \x04\xda\x05\"#\n\r\n\x05\x04\n\x02\x02\x08\x12\x04\xda\x05$L\n\x10\n\ - \x08\x04\n\x02\x02\x08\x9c\x08\0\x12\x04\xda\x05%K\n\xf1\x03\n\x04\x04\n\ - \x02\x03\x12\x04\xe4\x05\x02;\x1a\xe2\x03\x20Required.\x20A\x20per-trans\ - action\x20sequence\x20number\x20used\x20to\x20identify\x20this\x20reques\ - t.\x20This\x20field\n\x20makes\x20each\x20request\x20idempotent\x20such\ - \x20that\x20if\x20the\x20request\x20is\x20received\x20multiple\n\x20time\ - s,\x20at\x20most\x20one\x20will\x20succeed.\n\n\x20The\x20sequence\x20nu\ - mber\x20must\x20be\x20monotonically\x20increasing\x20within\x20the\n\x20\ - transaction.\x20If\x20a\x20request\x20arrives\x20for\x20the\x20first\x20\ - time\x20with\x20an\x20out-of-order\n\x20sequence\x20number,\x20the\x20tr\ - ansaction\x20may\x20be\x20aborted.\x20Replays\x20of\x20previously\n\x20h\ - andled\x20requests\x20will\x20yield\x20the\x20same\x20response\x20as\x20\ - the\x20first\x20execution.\n\n\r\n\x05\x04\n\x02\x03\x05\x12\x04\xe4\x05\ - \x02\x07\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\xe4\x05\x08\r\n\r\n\x05\x04\ - \n\x02\x03\x03\x12\x04\xe4\x05\x10\x11\n\r\n\x05\x04\n\x02\x03\x08\x12\ - \x04\xe4\x05\x12:\n\x10\n\x08\x04\n\x02\x03\x08\x9c\x08\0\x12\x04\xe4\ - \x05\x139\n0\n\x04\x04\n\x02\x04\x12\x04\xe7\x05\x02%\x1a\"\x20Common\ - \x20options\x20for\x20this\x20request.\n\n\r\n\x05\x04\n\x02\x04\x06\x12\ - \x04\xe7\x05\x02\x10\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xe7\x05\x11\x20\ - \n\r\n\x05\x04\n\x02\x04\x03\x12\x04\xe7\x05#$\n\xbf\n\n\x02\x04\x0b\x12\ - \x06\x82\x06\0\x8f\x06\x01\x1a\xb0\n\x20The\x20response\x20for\x20[Execu\ - teBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\x20Contains\x20a\ - \x20list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages\ - ,\x20one\x20for\x20each\x20DML\x20statement\x20that\x20has\x20successful\ - ly\n\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\x20statemen\ - ts\x20in\x20the\x20request.\x20If\x20a\x20statement\n\x20fails,\x20the\ - \x20status\x20in\x20the\x20response\x20body\x20identifies\x20the\x20caus\ - e\x20of\x20the\x20failure.\n\n\x20To\x20check\x20for\x20DML\x20statement\ - s\x20that\x20failed,\x20use\x20the\x20following\x20approach:\n\n\x201.\ - \x20Check\x20the\x20status\x20in\x20the\x20response\x20message.\x20The\ - \x20[google.rpc.Code][google.rpc.Code]\x20enum\n\x20\x20\x20\x20value\ - \x20`OK`\x20indicates\x20that\x20all\x20statements\x20were\x20executed\ - \x20successfully.\n\x202.\x20If\x20the\x20status\x20was\x20not\x20`OK`,\ - \x20check\x20the\x20number\x20of\x20result\x20sets\x20in\x20the\n\x20\ - \x20\x20\x20response.\x20If\x20the\x20response\x20contains\x20`N`\x20[Re\ - sultSet][google.spanner.v1.ResultSet]\x20messages,\x20then\n\x20\x20\x20\ - \x20statement\x20`N+1`\x20in\x20the\x20request\x20failed.\n\n\x20Example\ - \x201:\n\n\x20*\x20Request:\x205\x20DML\x20statements,\x20all\x20execute\ - d\x20successfully.\n\x20*\x20Response:\x205\x20[ResultSet][google.spanne\ - r.v1.ResultSet]\x20messages,\x20with\x20the\x20status\x20`OK`.\n\n\x20Ex\ - ample\x202:\n\n\x20*\x20Request:\x205\x20DML\x20statements.\x20The\x20th\ - ird\x20statement\x20has\x20a\x20syntax\x20error.\n\x20*\x20Response:\x20\ - 2\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages,\x20and\x20a\ - \x20syntax\x20error\x20(`INVALID_ARGUMENT`)\n\x20\x20\x20status.\x20The\ - \x20number\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages\ - \x20indicates\x20that\x20the\x20third\n\x20\x20\x20statement\x20failed,\ - \x20and\x20the\x20fourth\x20and\x20fifth\x20statements\x20were\x20not\ - \x20executed.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x82\x06\x08\x1f\n\xa8\ - \x04\n\x04\x04\x0b\x02\0\x12\x04\x8a\x06\x02%\x1a\x99\x04\x20One\x20[Res\ - ultSet][google.spanner.v1.ResultSet]\x20for\x20each\x20statement\x20in\ - \x20the\x20request\x20that\x20ran\x20successfully,\n\x20in\x20the\x20sam\ - e\x20order\x20as\x20the\x20statements\x20in\x20the\x20request.\x20Each\ - \x20[ResultSet][google.spanner.v1.ResultSet]\x20does\n\x20not\x20contain\ - \x20any\x20rows.\x20The\x20[ResultSetStats][google.spanner.v1.ResultSetS\ - tats]\x20in\x20each\x20[ResultSet][google.spanner.v1.ResultSet]\x20conta\ - in\n\x20the\x20number\x20of\x20rows\x20modified\x20by\x20the\x20statemen\ - t.\n\n\x20Only\x20the\x20first\x20[ResultSet][google.spanner.v1.ResultSe\ - t]\x20in\x20the\x20response\x20contains\x20valid\n\x20[ResultSetMetadata\ - ][google.spanner.v1.ResultSetMetadata].\n\n\r\n\x05\x04\x0b\x02\0\x04\ - \x12\x04\x8a\x06\x02\n\n\r\n\x05\x04\x0b\x02\0\x06\x12\x04\x8a\x06\x0b\ - \x14\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x8a\x06\x15\x20\n\r\n\x05\x04\ - \x0b\x02\0\x03\x12\x04\x8a\x06#$\n\x91\x01\n\x04\x04\x0b\x02\x01\x12\x04\ - \x8e\x06\x02\x1f\x1a\x82\x01\x20If\x20all\x20DML\x20statements\x20are\ - \x20executed\x20successfully,\x20the\x20status\x20is\x20`OK`.\n\x20Other\ - wise,\x20the\x20error\x20status\x20of\x20the\x20first\x20failed\x20state\ - ment.\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\x8e\x06\x02\x13\n\r\n\x05\ - \x04\x0b\x02\x01\x01\x12\x04\x8e\x06\x14\x1a\n\r\n\x05\x04\x0b\x02\x01\ - \x03\x12\x04\x8e\x06\x1d\x1e\nN\n\x02\x04\x0c\x12\x06\x93\x06\0\xa5\x06\ - \x01\x1a@\x20Options\x20for\x20a\x20PartitionQueryRequest\x20and\n\x20Pa\ - rtitionReadRequest.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\x93\x06\x08\x18\n\ - \xba\x02\n\x04\x04\x0c\x02\0\x12\x04\x9a\x06\x02!\x1a\xab\x02\x20**Note:\ - **\x20This\x20hint\x20is\x20currently\x20ignored\x20by\x20PartitionQuery\ - \x20and\n\x20PartitionRead\x20requests.\n\n\x20The\x20desired\x20data\ - \x20size\x20for\x20each\x20partition\x20generated.\x20\x20The\x20default\ - \x20for\x20this\n\x20option\x20is\x20currently\x201\x20GiB.\x20\x20This\ - \x20is\x20only\x20a\x20hint.\x20The\x20actual\x20size\x20of\x20each\n\ - \x20partition\x20may\x20be\x20smaller\x20or\x20larger\x20than\x20this\ - \x20size\x20request.\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\x9a\x06\x02\ - \x07\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\x9a\x06\x08\x1c\n\r\n\x05\x04\ - \x0c\x02\0\x03\x12\x04\x9a\x06\x1f\x20\n\xb8\x03\n\x04\x04\x0c\x02\x01\ - \x12\x04\xa4\x06\x02\x1b\x1a\xa9\x03\x20**Note:**\x20This\x20hint\x20is\ - \x20currently\x20ignored\x20by\x20PartitionQuery\x20and\n\x20PartitionRe\ - ad\x20requests.\n\n\x20The\x20desired\x20maximum\x20number\x20of\x20part\ - itions\x20to\x20return.\x20\x20For\x20example,\x20this\x20may\n\x20be\ - \x20set\x20to\x20the\x20number\x20of\x20workers\x20available.\x20\x20The\ - \x20default\x20for\x20this\x20option\n\x20is\x20currently\x2010,000.\x20\ - The\x20maximum\x20value\x20is\x20currently\x20200,000.\x20\x20This\x20is\ - \x20only\n\x20a\x20hint.\x20\x20The\x20actual\x20number\x20of\x20partiti\ - ons\x20returned\x20may\x20be\x20smaller\x20or\x20larger\n\x20than\x20thi\ - s\x20maximum\x20count\x20request.\n\n\r\n\x05\x04\x0c\x02\x01\x05\x12\ - \x04\xa4\x06\x02\x07\n\r\n\x05\x04\x0c\x02\x01\x01\x12\x04\xa4\x06\x08\ - \x16\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xa4\x06\x19\x1a\nZ\n\x02\x04\ - \r\x12\x06\xa8\x06\0\xdb\x06\x01\x1aL\x20The\x20request\x20for\x20[Parti\ - tionQuery][google.spanner.v1.Spanner.PartitionQuery]\n\n\x0b\n\x03\x04\r\ - \x01\x12\x04\xa8\x06\x08\x1d\nF\n\x04\x04\r\x02\0\x12\x06\xaa\x06\x02\ - \xaf\x06\x04\x1a6\x20Required.\x20The\x20session\x20used\x20to\x20create\ - \x20the\x20partitions.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xaa\x06\x02\ - \x08\n\r\n\x05\x04\r\x02\0\x01\x12\x04\xaa\x06\t\x10\n\r\n\x05\x04\r\x02\ - \0\x03\x12\x04\xaa\x06\x13\x14\n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xaa\ - \x06\x15\xaf\x06\x03\n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xab\ - \x06\x04*\n\x11\n\x07\x04\r\x02\0\x08\x9f\x08\x12\x06\xac\x06\x04\xae\ - \x06\x05\no\n\x04\x04\r\x02\x01\x12\x04\xb3\x06\x02&\x1aa\x20Read\x20onl\ - y\x20snapshot\x20transactions\x20are\x20supported,\x20read/write\x20and\ - \x20single\x20use\n\x20transactions\x20are\x20not.\n\n\r\n\x05\x04\r\x02\ - \x01\x06\x12\x04\xb3\x06\x02\x15\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xb3\ - \x06\x16!\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xb3\x06$%\n\xf8\x04\n\x04\ - \x04\r\x02\x02\x12\x04\xbf\x06\x02:\x1a\xe9\x04\x20Required.\x20The\x20q\ - uery\x20request\x20to\x20generate\x20partitions\x20for.\x20The\x20reques\ - t\x20will\x20fail\x20if\n\x20the\x20query\x20is\x20not\x20root\x20partit\ - ionable.\x20The\x20query\x20plan\x20of\x20a\x20root\n\x20partitionable\ - \x20query\x20has\x20a\x20single\x20distributed\x20union\x20operator.\x20\ - A\x20distributed\n\x20union\x20operator\x20conceptually\x20divides\x20on\ - e\x20or\x20more\x20tables\x20into\x20multiple\n\x20splits,\x20remotely\ - \x20evaluates\x20a\x20subquery\x20independently\x20on\x20each\x20split,\ - \x20and\n\x20then\x20unions\x20all\x20results.\n\n\x20This\x20must\x20no\ - t\x20contain\x20DML\x20commands,\x20such\x20as\x20INSERT,\x20UPDATE,\x20\ - or\n\x20DELETE.\x20Use\x20[ExecuteStreamingSql][google.spanner.v1.Spanne\ - r.ExecuteStreamingSql]\x20with\x20a\n\x20PartitionedDml\x20transaction\ - \x20for\x20large,\x20partition-friendly\x20DML\x20operations.\n\n\r\n\ - \x05\x04\r\x02\x02\x05\x12\x04\xbf\x06\x02\x08\n\r\n\x05\x04\r\x02\x02\ - \x01\x12\x04\xbf\x06\t\x0c\n\r\n\x05\x04\r\x02\x02\x03\x12\x04\xbf\x06\ - \x0f\x10\n\r\n\x05\x04\r\x02\x02\x08\x12\x04\xbf\x06\x119\n\x10\n\x08\ - \x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xbf\x06\x128\n\x88\x04\n\x04\x04\r\ - \x02\x03\x12\x04\xcd\x06\x02$\x1a\xf9\x03\x20Parameter\x20names\x20and\ - \x20values\x20that\x20bind\x20to\x20placeholders\x20in\x20the\x20SQL\x20\ + action\x20ID.\n\n\r\n\x05\x04\x08\x02\x01\x06\x12\x04\xd5\x03\x02\x15\n\ + \r\n\x05\x04\x08\x02\x01\x01\x12\x04\xd5\x03\x16!\n\r\n\x05\x04\x08\x02\ + \x01\x03\x12\x04\xd5\x03$%\n)\n\x04\x04\x08\x02\x02\x12\x04\xd8\x03\x02:\ + \x1a\x1b\x20Required.\x20The\x20SQL\x20string.\n\n\r\n\x05\x04\x08\x02\ + \x02\x05\x12\x04\xd8\x03\x02\x08\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\ + \xd8\x03\t\x0c\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xd8\x03\x0f\x10\n\r\ + \n\x05\x04\x08\x02\x02\x08\x12\x04\xd8\x03\x119\n\x10\n\x08\x04\x08\x02\ + \x02\x08\x9c\x08\0\x12\x04\xd8\x03\x128\n\x88\x04\n\x04\x04\x08\x02\x03\ + \x12\x04\xe6\x03\x02$\x1a\xf9\x03\x20Parameter\x20names\x20and\x20values\ + \x20that\x20bind\x20to\x20placeholders\x20in\x20the\x20SQL\x20string.\n\ + \n\x20A\x20parameter\x20placeholder\x20consists\x20of\x20the\x20`@`\x20c\ + haracter\x20followed\x20by\x20the\n\x20parameter\x20name\x20(for\x20exam\ + ple,\x20`@firstName`).\x20Parameter\x20names\x20can\x20contain\n\x20lett\ + ers,\x20numbers,\x20and\x20underscores.\n\n\x20Parameters\x20can\x20appe\ + ar\x20anywhere\x20that\x20a\x20literal\x20value\x20is\x20expected.\x20\ + \x20The\x20same\n\x20parameter\x20name\x20can\x20be\x20used\x20more\x20t\ + han\x20once,\x20for\x20example:\n\n\x20`\"WHERE\x20id\x20>\x20@msg_id\ + \x20AND\x20id\x20<\x20@msg_id\x20+\x20100\"`\n\n\x20It\x20is\x20an\x20er\ + ror\x20to\x20execute\x20a\x20SQL\x20statement\x20with\x20unbound\x20para\ + meters.\n\n\r\n\x05\x04\x08\x02\x03\x06\x12\x04\xe6\x03\x02\x18\n\r\n\ + \x05\x04\x08\x02\x03\x01\x12\x04\xe6\x03\x19\x1f\n\r\n\x05\x04\x08\x02\ + \x03\x03\x12\x04\xe6\x03\"#\n\xdd\x03\n\x04\x04\x08\x02\x04\x12\x04\xf1\ + \x03\x02$\x1a\xce\x03\x20It\x20is\x20not\x20always\x20possible\x20for\ + \x20Cloud\x20Spanner\x20to\x20infer\x20the\x20right\x20SQL\x20type\n\x20\ + from\x20a\x20JSON\x20value.\x20\x20For\x20example,\x20values\x20of\x20ty\ + pe\x20`BYTES`\x20and\x20values\n\x20of\x20type\x20`STRING`\x20both\x20ap\ + pear\x20in\n\x20[params][google.spanner.v1.ExecuteSqlRequest.params]\x20\ + as\x20JSON\x20strings.\n\n\x20In\x20these\x20cases,\x20`param_types`\x20\ + can\x20be\x20used\x20to\x20specify\x20the\x20exact\n\x20SQL\x20type\x20f\ + or\x20some\x20or\x20all\x20of\x20the\x20SQL\x20statement\x20parameters.\ + \x20See\x20the\n\x20definition\x20of\x20[Type][google.spanner.v1.Type]\ + \x20for\x20more\x20information\n\x20about\x20SQL\x20types.\n\n\r\n\x05\ + \x04\x08\x02\x04\x06\x12\x04\xf1\x03\x02\x13\n\r\n\x05\x04\x08\x02\x04\ + \x01\x12\x04\xf1\x03\x14\x1f\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xf1\ + \x03\"#\n\x9e\x03\n\x04\x04\x08\x02\x05\x12\x04\xf9\x03\x02\x19\x1a\x8f\ + \x03\x20If\x20this\x20request\x20is\x20resuming\x20a\x20previously\x20in\ + terrupted\x20SQL\x20statement\n\x20execution,\x20`resume_token`\x20shoul\ + d\x20be\x20copied\x20from\x20the\x20last\n\x20[PartialResultSet][google.\ + spanner.v1.PartialResultSet]\x20yielded\x20before\x20the\n\x20interrupti\ + on.\x20Doing\x20this\x20enables\x20the\x20new\x20SQL\x20statement\x20exe\ + cution\x20to\x20resume\n\x20where\x20the\x20last\x20one\x20left\x20off.\ + \x20The\x20rest\x20of\x20the\x20request\x20parameters\x20must\n\x20exact\ + ly\x20match\x20the\x20request\x20that\x20yielded\x20this\x20token.\n\n\r\ + \n\x05\x04\x08\x02\x05\x05\x12\x04\xf9\x03\x02\x07\n\r\n\x05\x04\x08\x02\ + \x05\x01\x12\x04\xf9\x03\x08\x14\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\ + \xf9\x03\x17\x18\n\xf5\x02\n\x04\x04\x08\x02\x06\x12\x04\x81\x04\x02\x1b\ + \x1a\xe6\x02\x20Used\x20to\x20control\x20the\x20amount\x20of\x20debuggin\ + g\x20information\x20returned\x20in\n\x20[ResultSetStats][google.spanner.\ + v1.ResultSetStats].\x20If\n\x20[partition_token][google.spanner.v1.Execu\ + teSqlRequest.partition_token]\x20is\n\x20set,\x20[query_mode][google.spa\ + nner.v1.ExecuteSqlRequest.query_mode]\x20can\x20only\n\x20be\x20set\x20t\ + o\n\x20[QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.\ + NORMAL].\n\n\r\n\x05\x04\x08\x02\x06\x06\x12\x04\x81\x04\x02\x0b\n\r\n\ + \x05\x04\x08\x02\x06\x01\x12\x04\x81\x04\x0c\x16\n\r\n\x05\x04\x08\x02\ + \x06\x03\x12\x04\x81\x04\x19\x1a\n\x99\x02\n\x04\x04\x08\x02\x07\x12\x04\ + \x87\x04\x02\x1c\x1a\x8a\x02\x20If\x20present,\x20results\x20will\x20be\ + \x20restricted\x20to\x20the\x20specified\x20partition\n\x20previously\ + \x20created\x20using\x20PartitionQuery().\x20\x20There\x20must\x20be\x20\ + an\x20exact\n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\ + \x20to\x20this\x20message\x20and\x20the\n\x20PartitionQueryRequest\x20me\ + ssage\x20used\x20to\x20create\x20this\x20partition_token.\n\n\r\n\x05\ + \x04\x08\x02\x07\x05\x12\x04\x87\x04\x02\x07\n\r\n\x05\x04\x08\x02\x07\ + \x01\x12\x04\x87\x04\x08\x17\n\r\n\x05\x04\x08\x02\x07\x03\x12\x04\x87\ + \x04\x1a\x1b\n\x9b\x04\n\x04\x04\x08\x02\x08\x12\x04\x93\x04\x02\x12\x1a\ + \x8c\x04\x20A\x20per-transaction\x20sequence\x20number\x20used\x20to\x20\ + identify\x20this\x20request.\x20This\x20field\n\x20makes\x20each\x20requ\ + est\x20idempotent\x20such\x20that\x20if\x20the\x20request\x20is\x20recei\ + ved\x20multiple\n\x20times,\x20at\x20most\x20one\x20will\x20succeed.\n\n\ + \x20The\x20sequence\x20number\x20must\x20be\x20monotonically\x20increasi\ + ng\x20within\x20the\n\x20transaction.\x20If\x20a\x20request\x20arrives\ + \x20for\x20the\x20first\x20time\x20with\x20an\x20out-of-order\n\x20seque\ + nce\x20number,\x20the\x20transaction\x20may\x20be\x20aborted.\x20Replays\ + \x20of\x20previously\n\x20handled\x20requests\x20will\x20yield\x20the\ + \x20same\x20response\x20as\x20the\x20first\x20execution.\n\n\x20Required\ + \x20for\x20DML\x20statements.\x20Ignored\x20for\x20queries.\n\n\r\n\x05\ + \x04\x08\x02\x08\x05\x12\x04\x93\x04\x02\x07\n\r\n\x05\x04\x08\x02\x08\ + \x01\x12\x04\x93\x04\x08\r\n\r\n\x05\x04\x08\x02\x08\x03\x12\x04\x93\x04\ + \x10\x11\n]\n\x02\x04\t\x12\x06\x97\x04\0\xd6\x04\x01\x1aO\x20The\x20req\ + uest\x20for\x20[ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchD\ + ml].\n\n\x0b\n\x03\x04\t\x01\x12\x04\x97\x04\x08\x1e\n)\n\x04\x04\t\x03\ + \0\x12\x06\x99\x04\x02\xb6\x04\x03\x1a\x19\x20A\x20single\x20DML\x20stat\ + ement.\n\n\r\n\x05\x04\t\x03\0\x01\x12\x04\x99\x04\n\x13\n+\n\x06\x04\t\ + \x03\0\x02\0\x12\x04\x9b\x04\x04\x13\x1a\x1b\x20Required.\x20The\x20DML\ + \x20string.\n\n\x0f\n\x07\x04\t\x03\0\x02\0\x05\x12\x04\x9b\x04\x04\n\n\ + \x0f\n\x07\x04\t\x03\0\x02\0\x01\x12\x04\x9b\x04\x0b\x0e\n\x0f\n\x07\x04\ + \t\x03\0\x02\0\x03\x12\x04\x9b\x04\x11\x12\n\x8a\x04\n\x06\x04\t\x03\0\ + \x02\x01\x12\x04\xa9\x04\x04&\x1a\xf9\x03\x20Parameter\x20names\x20and\ + \x20values\x20that\x20bind\x20to\x20placeholders\x20in\x20the\x20DML\x20\ string.\n\n\x20A\x20parameter\x20placeholder\x20consists\x20of\x20the\ \x20`@`\x20character\x20followed\x20by\x20the\n\x20parameter\x20name\x20\ (for\x20example,\x20`@firstName`).\x20Parameter\x20names\x20can\x20conta\ in\n\x20letters,\x20numbers,\x20and\x20underscores.\n\n\x20Parameters\ \x20can\x20appear\x20anywhere\x20that\x20a\x20literal\x20value\x20is\x20\ - expected.\x20\x20The\x20same\n\x20parameter\x20name\x20can\x20be\x20used\ + expected.\x20\x20The\n\x20same\x20parameter\x20name\x20can\x20be\x20used\ \x20more\x20than\x20once,\x20for\x20example:\n\n\x20`\"WHERE\x20id\x20>\ \x20@msg_id\x20AND\x20id\x20<\x20@msg_id\x20+\x20100\"`\n\n\x20It\x20is\ \x20an\x20error\x20to\x20execute\x20a\x20SQL\x20statement\x20with\x20unb\ - ound\x20parameters.\n\n\r\n\x05\x04\r\x02\x03\x06\x12\x04\xcd\x06\x02\ - \x18\n\r\n\x05\x04\r\x02\x03\x01\x12\x04\xcd\x06\x19\x1f\n\r\n\x05\x04\r\ - \x02\x03\x03\x12\x04\xcd\x06\"#\n\xdc\x03\n\x04\x04\r\x02\x04\x12\x04\ - \xd7\x06\x02$\x1a\xcd\x03\x20It\x20is\x20not\x20always\x20possible\x20fo\ - r\x20Cloud\x20Spanner\x20to\x20infer\x20the\x20right\x20SQL\x20type\n\ - \x20from\x20a\x20JSON\x20value.\x20\x20For\x20example,\x20values\x20of\ - \x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\x20`STRING`\x20both\ - \x20appear\x20in\x20[params][google.spanner.v1.PartitionQueryRequest.par\ - ams]\x20as\x20JSON\x20strings.\n\n\x20In\x20these\x20cases,\x20`param_ty\ - pes`\x20can\x20be\x20used\x20to\x20specify\x20the\x20exact\n\x20SQL\x20t\ - ype\x20for\x20some\x20or\x20all\x20of\x20the\x20SQL\x20query\x20paramete\ - rs.\x20See\x20the\n\x20definition\x20of\x20[Type][google.spanner.v1.Type\ - ]\x20for\x20more\x20information\n\x20about\x20SQL\x20types.\n\n\r\n\x05\ - \x04\r\x02\x04\x06\x12\x04\xd7\x06\x02\x13\n\r\n\x05\x04\r\x02\x04\x01\ - \x12\x04\xd7\x06\x14\x1f\n\r\n\x05\x04\r\x02\x04\x03\x12\x04\xd7\x06\"#\ - \nO\n\x04\x04\r\x02\x05\x12\x04\xda\x06\x02)\x1aA\x20Additional\x20optio\ - ns\x20that\x20affect\x20how\x20many\x20partitions\x20are\x20created.\n\n\ - \r\n\x05\x04\r\x02\x05\x06\x12\x04\xda\x06\x02\x12\n\r\n\x05\x04\r\x02\ - \x05\x01\x12\x04\xda\x06\x13$\n\r\n\x05\x04\r\x02\x05\x03\x12\x04\xda\ - \x06'(\nX\n\x02\x04\x0e\x12\x06\xde\x06\0\x82\x07\x01\x1aJ\x20The\x20req\ - uest\x20for\x20[PartitionRead][google.spanner.v1.Spanner.PartitionRead]\ - \n\n\x0b\n\x03\x04\x0e\x01\x12\x04\xde\x06\x08\x1c\nF\n\x04\x04\x0e\x02\ - \0\x12\x06\xe0\x06\x02\xe5\x06\x04\x1a6\x20Required.\x20The\x20session\ - \x20used\x20to\x20create\x20the\x20partitions.\n\n\r\n\x05\x04\x0e\x02\0\ - \x05\x12\x04\xe0\x06\x02\x08\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xe0\x06\ - \t\x10\n\r\n\x05\x04\x0e\x02\0\x03\x12\x04\xe0\x06\x13\x14\n\x0f\n\x05\ - \x04\x0e\x02\0\x08\x12\x06\xe0\x06\x15\xe5\x06\x03\n\x10\n\x08\x04\x0e\ - \x02\0\x08\x9c\x08\0\x12\x04\xe1\x06\x04*\n\x11\n\x07\x04\x0e\x02\0\x08\ - \x9f\x08\x12\x06\xe2\x06\x04\xe4\x06\x05\no\n\x04\x04\x0e\x02\x01\x12\ - \x04\xe9\x06\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ + ound\x20parameters.\n\n\x0f\n\x07\x04\t\x03\0\x02\x01\x06\x12\x04\xa9\ + \x04\x04\x1a\n\x0f\n\x07\x04\t\x03\0\x02\x01\x01\x12\x04\xa9\x04\x1b!\n\ + \x0f\n\x07\x04\t\x03\0\x02\x01\x03\x12\x04\xa9\x04$%\n\xef\x03\n\x06\x04\ + \t\x03\0\x02\x02\x12\x04\xb5\x04\x04&\x1a\xde\x03\x20It\x20is\x20not\x20\ + always\x20possible\x20for\x20Cloud\x20Spanner\x20to\x20infer\x20the\x20r\ + ight\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value.\x20\x20For\x20examp\ + le,\x20values\x20of\x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\ + \x20`STRING`\x20both\x20appear\x20in\n\x20[params][google.spanner.v1.Exe\ + cuteBatchDmlRequest.Statement.params]\x20as\n\x20JSON\x20strings.\n\n\ + \x20In\x20these\x20cases,\x20`param_types`\x20can\x20be\x20used\x20to\ + \x20specify\x20the\x20exact\n\x20SQL\x20type\x20for\x20some\x20or\x20all\ + \x20of\x20the\x20SQL\x20statement\x20parameters.\x20See\x20the\n\x20defi\ + nition\x20of\x20[Type][google.spanner.v1.Type]\x20for\x20more\x20informa\ + tion\n\x20about\x20SQL\x20types.\n\n\x0f\n\x07\x04\t\x03\0\x02\x02\x06\ + \x12\x04\xb5\x04\x04\x15\n\x0f\n\x07\x04\t\x03\0\x02\x02\x01\x12\x04\xb5\ + \x04\x16!\n\x0f\n\x07\x04\t\x03\0\x02\x02\x03\x12\x04\xb5\x04$%\nX\n\x04\ + \x04\t\x02\0\x12\x06\xb9\x04\x02\xbc\x04\x04\x1aH\x20Required.\x20The\ + \x20session\x20in\x20which\x20the\x20DML\x20statements\x20should\x20be\ + \x20performed.\n\n\r\n\x05\x04\t\x02\0\x05\x12\x04\xb9\x04\x02\x08\n\r\n\ + \x05\x04\t\x02\0\x01\x12\x04\xb9\x04\t\x10\n\r\n\x05\x04\t\x02\0\x03\x12\ + \x04\xb9\x04\x13\x14\n\x0f\n\x05\x04\t\x02\0\x08\x12\x06\xb9\x04\x15\xbc\ + \x04\x03\n\x10\n\x08\x04\t\x02\0\x08\x9c\x08\0\x12\x04\xba\x04\x04*\n\ + \x0f\n\x07\x04\t\x02\0\x08\x9f\x08\x12\x04\xbb\x04\x04P\n\xf4\x01\n\x04\ + \x04\t\x02\x01\x12\x04\xc3\x04\x02O\x1a\xe5\x01\x20Required.\x20The\x20t\ + ransaction\x20to\x20use.\x20Must\x20be\x20a\x20read-write\x20transaction\ + .\n\n\x20To\x20protect\x20against\x20replays,\x20single-use\x20transacti\ + ons\x20are\x20not\x20supported.\x20The\n\x20caller\x20must\x20either\x20\ + supply\x20an\x20existing\x20transaction\x20ID\x20or\x20begin\x20a\x20new\ + \n\x20transaction.\n\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\xc3\x04\x02\x15\ + \n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xc3\x04\x16!\n\r\n\x05\x04\t\x02\ + \x01\x03\x12\x04\xc3\x04$%\n\r\n\x05\x04\t\x02\x01\x08\x12\x04\xc3\x04&N\ + \n\x10\n\x08\x04\t\x02\x01\x08\x9c\x08\0\x12\x04\xc3\x04'M\n\xe8\x02\n\ + \x04\x04\t\x02\x02\x12\x04\xcb\x04\x02M\x1a\xd9\x02\x20Required.\x20The\ + \x20list\x20of\x20statements\x20to\x20execute\x20in\x20this\x20batch.\ + \x20Statements\x20are\n\x20executed\x20serially,\x20such\x20that\x20the\ + \x20effects\x20of\x20statement\x20`i`\x20are\x20visible\x20to\n\x20state\ + ment\x20`i+1`.\x20Each\x20statement\x20must\x20be\x20a\x20DML\x20stateme\ + nt.\x20Execution\x20stops\x20at\n\x20the\x20first\x20failed\x20statement\ + ;\x20the\x20remaining\x20statements\x20are\x20not\x20executed.\n\n\x20Ca\ + llers\x20must\x20provide\x20at\x20least\x20one\x20statement.\n\n\r\n\x05\ + \x04\t\x02\x02\x04\x12\x04\xcb\x04\x02\n\n\r\n\x05\x04\t\x02\x02\x06\x12\ + \x04\xcb\x04\x0b\x14\n\r\n\x05\x04\t\x02\x02\x01\x12\x04\xcb\x04\x15\x1f\ + \n\r\n\x05\x04\t\x02\x02\x03\x12\x04\xcb\x04\"#\n\r\n\x05\x04\t\x02\x02\ + \x08\x12\x04\xcb\x04$L\n\x10\n\x08\x04\t\x02\x02\x08\x9c\x08\0\x12\x04\ + \xcb\x04%K\n\xf1\x03\n\x04\x04\t\x02\x03\x12\x04\xd5\x04\x02;\x1a\xe2\ + \x03\x20Required.\x20A\x20per-transaction\x20sequence\x20number\x20used\ + \x20to\x20identify\x20this\x20request.\n\x20This\x20field\x20makes\x20ea\ + ch\x20request\x20idempotent\x20such\x20that\x20if\x20the\x20request\x20i\ + s\n\x20received\x20multiple\x20times,\x20at\x20most\x20one\x20will\x20su\ + cceed.\n\n\x20The\x20sequence\x20number\x20must\x20be\x20monotonically\ + \x20increasing\x20within\x20the\n\x20transaction.\x20If\x20a\x20request\ + \x20arrives\x20for\x20the\x20first\x20time\x20with\x20an\x20out-of-order\ + \n\x20sequence\x20number,\x20the\x20transaction\x20may\x20be\x20aborted.\ + \x20Replays\x20of\x20previously\n\x20handled\x20requests\x20will\x20yiel\ + d\x20the\x20same\x20response\x20as\x20the\x20first\x20execution.\n\n\r\n\ + \x05\x04\t\x02\x03\x05\x12\x04\xd5\x04\x02\x07\n\r\n\x05\x04\t\x02\x03\ + \x01\x12\x04\xd5\x04\x08\r\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xd5\x04\ + \x10\x11\n\r\n\x05\x04\t\x02\x03\x08\x12\x04\xd5\x04\x12:\n\x10\n\x08\ + \x04\t\x02\x03\x08\x9c\x08\0\x12\x04\xd5\x04\x139\n\xcb\n\n\x02\x04\n\ + \x12\x06\xf7\x04\0\x86\x05\x01\x1a\xbc\n\x20The\x20response\x20for\n\x20\ + [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].\x20Contain\ + s\x20a\x20list\n\x20of\x20[ResultSet][google.spanner.v1.ResultSet]\x20me\ + ssages,\x20one\x20for\x20each\x20DML\n\x20statement\x20that\x20has\x20su\ + ccessfully\x20executed,\x20in\x20the\x20same\x20order\x20as\x20the\x20st\ + atements\n\x20in\x20the\x20request.\x20If\x20a\x20statement\x20fails,\ + \x20the\x20status\x20in\x20the\x20response\x20body\n\x20identifies\x20th\ + e\x20cause\x20of\x20the\x20failure.\n\n\x20To\x20check\x20for\x20DML\x20\ + statements\x20that\x20failed,\x20use\x20the\x20following\x20approach:\n\ + \n\x201.\x20Check\x20the\x20status\x20in\x20the\x20response\x20message.\ + \x20The\n\x20[google.rpc.Code][google.rpc.Code]\x20enum\n\x20\x20\x20\ + \x20value\x20`OK`\x20indicates\x20that\x20all\x20statements\x20were\x20e\ + xecuted\x20successfully.\n\x202.\x20If\x20the\x20status\x20was\x20not\ + \x20`OK`,\x20check\x20the\x20number\x20of\x20result\x20sets\x20in\x20the\ + \n\x20\x20\x20\x20response.\x20If\x20the\x20response\x20contains\x20`N`\ + \n\x20\x20\x20\x20[ResultSet][google.spanner.v1.ResultSet]\x20messages,\ + \x20then\x20statement\x20`N+1`\x20in\n\x20\x20\x20\x20the\x20request\x20\ + failed.\n\n\x20Example\x201:\n\n\x20*\x20Request:\x205\x20DML\x20stateme\ + nts,\x20all\x20executed\x20successfully.\n\x20*\x20Response:\x205\x20[Re\ + sultSet][google.spanner.v1.ResultSet]\x20messages,\x20with\x20the\n\x20s\ + tatus\x20`OK`.\n\n\x20Example\x202:\n\n\x20*\x20Request:\x205\x20DML\x20\ + statements.\x20The\x20third\x20statement\x20has\x20a\x20syntax\x20error.\ + \n\x20*\x20Response:\x202\x20[ResultSet][google.spanner.v1.ResultSet]\ + \x20messages,\x20and\x20a\x20syntax\n\x20error\x20(`INVALID_ARGUMENT`)\n\ + \x20\x20\x20status.\x20The\x20number\x20of\x20[ResultSet][google.spanner\ + .v1.ResultSet]\x20messages\n\x20\x20\x20indicates\x20that\x20the\x20thir\ + d\x20statement\x20failed,\x20and\x20the\x20fourth\x20and\x20fifth\n\x20\ + \x20\x20statements\x20were\x20not\x20executed.\n\n\x0b\n\x03\x04\n\x01\ + \x12\x04\xf7\x04\x08\x1f\n\xaa\x04\n\x04\x04\n\x02\0\x12\x04\x81\x05\x02\ + %\x1a\x9b\x04\x20One\x20[ResultSet][google.spanner.v1.ResultSet]\x20for\ + \x20each\x20statement\x20in\x20the\n\x20request\x20that\x20ran\x20succes\ + sfully,\x20in\x20the\x20same\x20order\x20as\x20the\x20statements\x20in\ + \x20the\n\x20request.\x20Each\x20[ResultSet][google.spanner.v1.ResultSet\ + ]\x20does\x20not\x20contain\x20any\n\x20rows.\x20The\x20[ResultSetStats]\ + [google.spanner.v1.ResultSetStats]\x20in\x20each\n\x20[ResultSet][google\ + .spanner.v1.ResultSet]\x20contain\x20the\x20number\x20of\x20rows\n\x20mo\ + dified\x20by\x20the\x20statement.\n\n\x20Only\x20the\x20first\x20[Result\ + Set][google.spanner.v1.ResultSet]\x20in\x20the\x20response\n\x20contains\ + \x20valid\x20[ResultSetMetadata][google.spanner.v1.ResultSetMetadata].\n\ + \n\r\n\x05\x04\n\x02\0\x04\x12\x04\x81\x05\x02\n\n\r\n\x05\x04\n\x02\0\ + \x06\x12\x04\x81\x05\x0b\x14\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x81\x05\ + \x15\x20\n\r\n\x05\x04\n\x02\0\x03\x12\x04\x81\x05#$\n\x91\x01\n\x04\x04\ + \n\x02\x01\x12\x04\x85\x05\x02\x1f\x1a\x82\x01\x20If\x20all\x20DML\x20st\ + atements\x20are\x20executed\x20successfully,\x20the\x20status\x20is\x20`\ + OK`.\n\x20Otherwise,\x20the\x20error\x20status\x20of\x20the\x20first\x20\ + failed\x20statement.\n\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\x85\x05\x02\ + \x13\n\r\n\x05\x04\n\x02\x01\x01\x12\x04\x85\x05\x14\x1a\n\r\n\x05\x04\n\ + \x02\x01\x03\x12\x04\x85\x05\x1d\x1e\nN\n\x02\x04\x0b\x12\x06\x8a\x05\0\ + \x9c\x05\x01\x1a@\x20Options\x20for\x20a\x20PartitionQueryRequest\x20and\ + \n\x20PartitionReadRequest.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\x8a\x05\ + \x08\x18\n\xba\x02\n\x04\x04\x0b\x02\0\x12\x04\x91\x05\x02!\x1a\xab\x02\ + \x20**Note:**\x20This\x20hint\x20is\x20currently\x20ignored\x20by\x20Par\ + titionQuery\x20and\n\x20PartitionRead\x20requests.\n\n\x20The\x20desired\ + \x20data\x20size\x20for\x20each\x20partition\x20generated.\x20\x20The\ + \x20default\x20for\x20this\n\x20option\x20is\x20currently\x201\x20GiB.\ + \x20\x20This\x20is\x20only\x20a\x20hint.\x20The\x20actual\x20size\x20of\ + \x20each\n\x20partition\x20may\x20be\x20smaller\x20or\x20larger\x20than\ + \x20this\x20size\x20request.\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\x91\ + \x05\x02\x07\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x91\x05\x08\x1c\n\r\n\ + \x05\x04\x0b\x02\0\x03\x12\x04\x91\x05\x1f\x20\n\xb8\x03\n\x04\x04\x0b\ + \x02\x01\x12\x04\x9b\x05\x02\x1b\x1a\xa9\x03\x20**Note:**\x20This\x20hin\ + t\x20is\x20currently\x20ignored\x20by\x20PartitionQuery\x20and\n\x20Part\ + itionRead\x20requests.\n\n\x20The\x20desired\x20maximum\x20number\x20of\ + \x20partitions\x20to\x20return.\x20\x20For\x20example,\x20this\x20may\n\ + \x20be\x20set\x20to\x20the\x20number\x20of\x20workers\x20available.\x20\ + \x20The\x20default\x20for\x20this\x20option\n\x20is\x20currently\x2010,0\ + 00.\x20The\x20maximum\x20value\x20is\x20currently\x20200,000.\x20\x20Thi\ + s\x20is\x20only\n\x20a\x20hint.\x20\x20The\x20actual\x20number\x20of\x20\ + partitions\x20returned\x20may\x20be\x20smaller\x20or\x20larger\n\x20than\ + \x20this\x20maximum\x20count\x20request.\n\n\r\n\x05\x04\x0b\x02\x01\x05\ + \x12\x04\x9b\x05\x02\x07\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x9b\x05\ + \x08\x16\n\r\n\x05\x04\x0b\x02\x01\x03\x12\x04\x9b\x05\x19\x1a\nZ\n\x02\ + \x04\x0c\x12\x06\x9f\x05\0\xd2\x05\x01\x1aL\x20The\x20request\x20for\x20\ + [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]\n\n\x0b\n\x03\ + \x04\x0c\x01\x12\x04\x9f\x05\x08\x1d\nF\n\x04\x04\x0c\x02\0\x12\x06\xa1\ + \x05\x02\xa4\x05\x04\x1a6\x20Required.\x20The\x20session\x20used\x20to\ + \x20create\x20the\x20partitions.\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\ + \xa1\x05\x02\x08\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xa1\x05\t\x10\n\r\n\ + \x05\x04\x0c\x02\0\x03\x12\x04\xa1\x05\x13\x14\n\x0f\n\x05\x04\x0c\x02\0\ + \x08\x12\x06\xa1\x05\x15\xa4\x05\x03\n\x10\n\x08\x04\x0c\x02\0\x08\x9c\ + \x08\0\x12\x04\xa2\x05\x04*\n\x0f\n\x07\x04\x0c\x02\0\x08\x9f\x08\x12\ + \x04\xa3\x05\x04P\no\n\x04\x04\x0c\x02\x01\x12\x04\xa8\x05\x02&\x1aa\x20\ + Read\x20only\x20snapshot\x20transactions\x20are\x20supported,\x20read/wr\ + ite\x20and\x20single\x20use\n\x20transactions\x20are\x20not.\n\n\r\n\x05\ + \x04\x0c\x02\x01\x06\x12\x04\xa8\x05\x02\x15\n\r\n\x05\x04\x0c\x02\x01\ + \x01\x12\x04\xa8\x05\x16!\n\r\n\x05\x04\x0c\x02\x01\x03\x12\x04\xa8\x05$\ + %\n\xf9\x04\n\x04\x04\x0c\x02\x02\x12\x04\xb5\x05\x02:\x1a\xea\x04\x20Re\ + quired.\x20The\x20query\x20request\x20to\x20generate\x20partitions\x20fo\ + r.\x20The\x20request\x20will\n\x20fail\x20if\x20the\x20query\x20is\x20no\ + t\x20root\x20partitionable.\x20The\x20query\x20plan\x20of\x20a\x20root\n\ + \x20partitionable\x20query\x20has\x20a\x20single\x20distributed\x20union\ + \x20operator.\x20A\x20distributed\n\x20union\x20operator\x20conceptually\ + \x20divides\x20one\x20or\x20more\x20tables\x20into\x20multiple\n\x20spli\ + ts,\x20remotely\x20evaluates\x20a\x20subquery\x20independently\x20on\x20\ + each\x20split,\x20and\n\x20then\x20unions\x20all\x20results.\n\n\x20This\ + \x20must\x20not\x20contain\x20DML\x20commands,\x20such\x20as\x20INSERT,\ + \x20UPDATE,\x20or\n\x20DELETE.\x20Use\n\x20[ExecuteStreamingSql][google.\ + spanner.v1.Spanner.ExecuteStreamingSql]\x20with\x20a\n\x20PartitionedDml\ + \x20transaction\x20for\x20large,\x20partition-friendly\x20DML\x20operati\ + ons.\n\n\r\n\x05\x04\x0c\x02\x02\x05\x12\x04\xb5\x05\x02\x08\n\r\n\x05\ + \x04\x0c\x02\x02\x01\x12\x04\xb5\x05\t\x0c\n\r\n\x05\x04\x0c\x02\x02\x03\ + \x12\x04\xb5\x05\x0f\x10\n\r\n\x05\x04\x0c\x02\x02\x08\x12\x04\xb5\x05\ + \x119\n\x10\n\x08\x04\x0c\x02\x02\x08\x9c\x08\0\x12\x04\xb5\x05\x128\n\ + \x88\x04\n\x04\x04\x0c\x02\x03\x12\x04\xc3\x05\x02$\x1a\xf9\x03\x20Param\ + eter\x20names\x20and\x20values\x20that\x20bind\x20to\x20placeholders\x20\ + in\x20the\x20SQL\x20string.\n\n\x20A\x20parameter\x20placeholder\x20cons\ + ists\x20of\x20the\x20`@`\x20character\x20followed\x20by\x20the\n\x20para\ + meter\x20name\x20(for\x20example,\x20`@firstName`).\x20Parameter\x20name\ + s\x20can\x20contain\n\x20letters,\x20numbers,\x20and\x20underscores.\n\n\ + \x20Parameters\x20can\x20appear\x20anywhere\x20that\x20a\x20literal\x20v\ + alue\x20is\x20expected.\x20\x20The\x20same\n\x20parameter\x20name\x20can\ + \x20be\x20used\x20more\x20than\x20once,\x20for\x20example:\n\n\x20`\"WHE\ + RE\x20id\x20>\x20@msg_id\x20AND\x20id\x20<\x20@msg_id\x20+\x20100\"`\n\n\ + \x20It\x20is\x20an\x20error\x20to\x20execute\x20a\x20SQL\x20statement\ + \x20with\x20unbound\x20parameters.\n\n\r\n\x05\x04\x0c\x02\x03\x06\x12\ + \x04\xc3\x05\x02\x18\n\r\n\x05\x04\x0c\x02\x03\x01\x12\x04\xc3\x05\x19\ + \x1f\n\r\n\x05\x04\x0c\x02\x03\x03\x12\x04\xc3\x05\"#\n\xdd\x03\n\x04\ + \x04\x0c\x02\x04\x12\x04\xce\x05\x02$\x1a\xce\x03\x20It\x20is\x20not\x20\ + always\x20possible\x20for\x20Cloud\x20Spanner\x20to\x20infer\x20the\x20r\ + ight\x20SQL\x20type\n\x20from\x20a\x20JSON\x20value.\x20\x20For\x20examp\ + le,\x20values\x20of\x20type\x20`BYTES`\x20and\x20values\n\x20of\x20type\ + \x20`STRING`\x20both\x20appear\x20in\n\x20[params][google.spanner.v1.Par\ + titionQueryRequest.params]\x20as\x20JSON\x20strings.\n\n\x20In\x20these\ + \x20cases,\x20`param_types`\x20can\x20be\x20used\x20to\x20specify\x20the\ + \x20exact\n\x20SQL\x20type\x20for\x20some\x20or\x20all\x20of\x20the\x20S\ + QL\x20query\x20parameters.\x20See\x20the\n\x20definition\x20of\x20[Type]\ + [google.spanner.v1.Type]\x20for\x20more\x20information\n\x20about\x20SQL\ + \x20types.\n\n\r\n\x05\x04\x0c\x02\x04\x06\x12\x04\xce\x05\x02\x13\n\r\n\ + \x05\x04\x0c\x02\x04\x01\x12\x04\xce\x05\x14\x1f\n\r\n\x05\x04\x0c\x02\ + \x04\x03\x12\x04\xce\x05\"#\nO\n\x04\x04\x0c\x02\x05\x12\x04\xd1\x05\x02\ + )\x1aA\x20Additional\x20options\x20that\x20affect\x20how\x20many\x20part\ + itions\x20are\x20created.\n\n\r\n\x05\x04\x0c\x02\x05\x06\x12\x04\xd1\ + \x05\x02\x12\n\r\n\x05\x04\x0c\x02\x05\x01\x12\x04\xd1\x05\x13$\n\r\n\ + \x05\x04\x0c\x02\x05\x03\x12\x04\xd1\x05'(\nX\n\x02\x04\r\x12\x06\xd5\ + \x05\0\xfd\x05\x01\x1aJ\x20The\x20request\x20for\x20[PartitionRead][goog\ + le.spanner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\r\x01\x12\x04\xd5\ + \x05\x08\x1c\nF\n\x04\x04\r\x02\0\x12\x06\xd7\x05\x02\xda\x05\x04\x1a6\ + \x20Required.\x20The\x20session\x20used\x20to\x20create\x20the\x20partit\ + ions.\n\n\r\n\x05\x04\r\x02\0\x05\x12\x04\xd7\x05\x02\x08\n\r\n\x05\x04\ + \r\x02\0\x01\x12\x04\xd7\x05\t\x10\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xd7\ + \x05\x13\x14\n\x0f\n\x05\x04\r\x02\0\x08\x12\x06\xd7\x05\x15\xda\x05\x03\ + \n\x10\n\x08\x04\r\x02\0\x08\x9c\x08\0\x12\x04\xd8\x05\x04*\n\x0f\n\x07\ + \x04\r\x02\0\x08\x9f\x08\x12\x04\xd9\x05\x04P\no\n\x04\x04\r\x02\x01\x12\ + \x04\xde\x05\x02&\x1aa\x20Read\x20only\x20snapshot\x20transactions\x20ar\ e\x20supported,\x20read/write\x20and\x20single\x20use\n\x20transactions\ - \x20are\x20not.\n\n\r\n\x05\x04\x0e\x02\x01\x06\x12\x04\xe9\x06\x02\x15\ - \n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xe9\x06\x16!\n\r\n\x05\x04\x0e\ - \x02\x01\x03\x12\x04\xe9\x06$%\nK\n\x04\x04\x0e\x02\x02\x12\x04\xec\x06\ - \x02<\x1a=\x20Required.\x20The\x20name\x20of\x20the\x20table\x20in\x20th\ - e\x20database\x20to\x20be\x20read.\n\n\r\n\x05\x04\x0e\x02\x02\x05\x12\ - \x04\xec\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x02\x01\x12\x04\xec\x06\t\x0e\ - \n\r\n\x05\x04\x0e\x02\x02\x03\x12\x04\xec\x06\x11\x12\n\r\n\x05\x04\x0e\ - \x02\x02\x08\x12\x04\xec\x06\x13;\n\x10\n\x08\x04\x0e\x02\x02\x08\x9c\ - \x08\0\x12\x04\xec\x06\x14:\n\xdf\x02\n\x04\x04\x0e\x02\x03\x12\x04\xf1\ - \x06\x02\x13\x1a\xd0\x02\x20If\x20non-empty,\x20the\x20name\x20of\x20an\ - \x20index\x20on\x20[table][google.spanner.v1.PartitionReadRequest.table]\ - .\x20This\x20index\x20is\n\x20used\x20instead\x20of\x20the\x20table\x20p\ - rimary\x20key\x20when\x20interpreting\x20[key_set][google.spanner.v1.Par\ - titionReadRequest.key_set]\n\x20and\x20sorting\x20result\x20rows.\x20See\ - \x20[key_set][google.spanner.v1.PartitionReadRequest.key_set]\x20for\x20\ - further\x20information.\n\n\r\n\x05\x04\x0e\x02\x03\x05\x12\x04\xf1\x06\ - \x02\x08\n\r\n\x05\x04\x0e\x02\x03\x01\x12\x04\xf1\x06\t\x0e\n\r\n\x05\ - \x04\x0e\x02\x03\x03\x12\x04\xf1\x06\x11\x12\n\x88\x01\n\x04\x04\x0e\x02\ - \x04\x12\x04\xf5\x06\x02\x1e\x1az\x20The\x20columns\x20of\x20[table][goo\ - gle.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20returned\x20fo\ - r\x20each\x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\x04\x0e\ - \x02\x04\x04\x12\x04\xf5\x06\x02\n\n\r\n\x05\x04\x0e\x02\x04\x05\x12\x04\ - \xf5\x06\x0b\x11\n\r\n\x05\x04\x0e\x02\x04\x01\x12\x04\xf5\x06\x12\x19\n\ - \r\n\x05\x04\x0e\x02\x04\x03\x12\x04\xf5\x06\x1c\x1d\n\xe1\x04\n\x04\x04\ - \x0e\x02\x05\x12\x04\xfe\x06\x02>\x1a\xd2\x04\x20Required.\x20`key_set`\ - \x20identifies\x20the\x20rows\x20to\x20be\x20yielded.\x20`key_set`\x20na\ - mes\x20the\n\x20primary\x20keys\x20of\x20the\x20rows\x20in\x20[table][go\ - ogle.spanner.v1.PartitionReadRequest.table]\x20to\x20be\x20yielded,\x20u\ - nless\x20[index][google.spanner.v1.PartitionReadRequest.index]\n\x20is\ - \x20present.\x20If\x20[index][google.spanner.v1.PartitionReadRequest.ind\ - ex]\x20is\x20present,\x20then\x20[key_set][google.spanner.v1.PartitionRe\ - adRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20in\x20[inde\ - x][google.spanner.v1.PartitionReadRequest.index].\n\n\x20It\x20is\x20not\ - \x20an\x20error\x20for\x20the\x20`key_set`\x20to\x20name\x20rows\x20that\ - \x20do\x20not\n\x20exist\x20in\x20the\x20database.\x20Read\x20yields\x20\ - nothing\x20for\x20nonexistent\x20rows.\n\n\r\n\x05\x04\x0e\x02\x05\x06\ - \x12\x04\xfe\x06\x02\x08\n\r\n\x05\x04\x0e\x02\x05\x01\x12\x04\xfe\x06\t\ - \x10\n\r\n\x05\x04\x0e\x02\x05\x03\x12\x04\xfe\x06\x13\x14\n\r\n\x05\x04\ - \x0e\x02\x05\x08\x12\x04\xfe\x06\x15=\n\x10\n\x08\x04\x0e\x02\x05\x08\ - \x9c\x08\0\x12\x04\xfe\x06\x16<\nO\n\x04\x04\x0e\x02\x06\x12\x04\x81\x07\ - \x02)\x1aA\x20Additional\x20options\x20that\x20affect\x20how\x20many\x20\ - partitions\x20are\x20created.\n\n\r\n\x05\x04\x0e\x02\x06\x06\x12\x04\ - \x81\x07\x02\x12\n\r\n\x05\x04\x0e\x02\x06\x01\x12\x04\x81\x07\x13$\n\r\ - \n\x05\x04\x0e\x02\x06\x03\x12\x04\x81\x07'(\nY\n\x02\x04\x0f\x12\x06\ - \x86\x07\0\x8b\x07\x01\x1aK\x20Information\x20returned\x20for\x20each\ - \x20partition\x20returned\x20in\x20a\n\x20PartitionResponse.\n\n\x0b\n\ - \x03\x04\x0f\x01\x12\x04\x86\x07\x08\x11\n\xb4\x01\n\x04\x04\x0f\x02\0\ - \x12\x04\x8a\x07\x02\x1c\x1a\xa5\x01\x20This\x20token\x20can\x20be\x20pa\ - ssed\x20to\x20Read,\x20StreamingRead,\x20ExecuteSql,\x20or\n\x20ExecuteS\ - treamingSql\x20requests\x20to\x20restrict\x20the\x20results\x20to\x20tho\ - se\x20identified\x20by\n\x20this\x20partition\x20token.\n\n\r\n\x05\x04\ - \x0f\x02\0\x05\x12\x04\x8a\x07\x02\x07\n\r\n\x05\x04\x0f\x02\0\x01\x12\ - \x04\x8a\x07\x08\x17\n\r\n\x05\x04\x0f\x02\0\x03\x12\x04\x8a\x07\x1a\x1b\ - \n\x99\x01\n\x02\x04\x10\x12\x06\x8f\x07\0\x95\x07\x01\x1a\x8a\x01\x20Th\ - e\x20response\x20for\x20[PartitionQuery][google.spanner.v1.Spanner.Parti\ - tionQuery]\n\x20or\x20[PartitionRead][google.spanner.v1.Spanner.Partitio\ - nRead]\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x8f\x07\x08\x19\n3\n\x04\x04\ - \x10\x02\0\x12\x04\x91\x07\x02$\x1a%\x20Partitions\x20created\x20by\x20t\ - his\x20request.\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\x91\x07\x02\n\n\r\ - \n\x05\x04\x10\x02\0\x06\x12\x04\x91\x07\x0b\x14\n\r\n\x05\x04\x10\x02\0\ - \x01\x12\x04\x91\x07\x15\x1f\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x91\x07\ - \"#\n4\n\x04\x04\x10\x02\x01\x12\x04\x94\x07\x02\x1e\x1a&\x20Transaction\ - \x20created\x20by\x20this\x20request.\n\n\r\n\x05\x04\x10\x02\x01\x06\ - \x12\x04\x94\x07\x02\r\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\x94\x07\x0e\ - \x19\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\x94\x07\x1c\x1d\n\x85\x01\n\ - \x02\x04\x11\x12\x06\x99\x07\0\xdc\x07\x01\x1aw\x20The\x20request\x20for\ - \x20[Read][google.spanner.v1.Spanner.Read]\x20and\n\x20[StreamingRead][g\ - oogle.spanner.v1.Spanner.StreamingRead].\n\n\x0b\n\x03\x04\x11\x01\x12\ - \x04\x99\x07\x08\x13\nN\n\x04\x04\x11\x02\0\x12\x06\x9b\x07\x02\xa0\x07\ - \x04\x1a>\x20Required.\x20The\x20session\x20in\x20which\x20the\x20read\ - \x20should\x20be\x20performed.\n\n\r\n\x05\x04\x11\x02\0\x05\x12\x04\x9b\ - \x07\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\x12\x04\x9b\x07\t\x10\n\r\n\x05\ - \x04\x11\x02\0\x03\x12\x04\x9b\x07\x13\x14\n\x0f\n\x05\x04\x11\x02\0\x08\ - \x12\x06\x9b\x07\x15\xa0\x07\x03\n\x10\n\x08\x04\x11\x02\0\x08\x9c\x08\0\ - \x12\x04\x9c\x07\x04*\n\x11\n\x07\x04\x11\x02\0\x08\x9f\x08\x12\x06\x9d\ - \x07\x04\x9f\x07\x05\n\x87\x01\n\x04\x04\x11\x02\x01\x12\x04\xa4\x07\x02\ - &\x1ay\x20The\x20transaction\x20to\x20use.\x20If\x20none\x20is\x20provid\ - ed,\x20the\x20default\x20is\x20a\n\x20temporary\x20read-only\x20transact\ - ion\x20with\x20strong\x20concurrency.\n\n\r\n\x05\x04\x11\x02\x01\x06\ - \x12\x04\xa4\x07\x02\x15\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\xa4\x07\ - \x16!\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xa4\x07$%\nK\n\x04\x04\x11\ - \x02\x02\x12\x04\xa7\x07\x02<\x1a=\x20Required.\x20The\x20name\x20of\x20\ - the\x20table\x20in\x20the\x20database\x20to\x20be\x20read.\n\n\r\n\x05\ - \x04\x11\x02\x02\x05\x12\x04\xa7\x07\x02\x08\n\r\n\x05\x04\x11\x02\x02\ - \x01\x12\x04\xa7\x07\t\x0e\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\xa7\x07\ - \x11\x12\n\r\n\x05\x04\x11\x02\x02\x08\x12\x04\xa7\x07\x13;\n\x10\n\x08\ - \x04\x11\x02\x02\x08\x9c\x08\0\x12\x04\xa7\x07\x14:\n\xc4\x02\n\x04\x04\ - \x11\x02\x03\x12\x04\xac\x07\x02\x13\x1a\xb5\x02\x20If\x20non-empty,\x20\ - the\x20name\x20of\x20an\x20index\x20on\x20[table][google.spanner.v1.Read\ - Request.table].\x20This\x20index\x20is\n\x20used\x20instead\x20of\x20the\ - \x20table\x20primary\x20key\x20when\x20interpreting\x20[key_set][google.\ - spanner.v1.ReadRequest.key_set]\n\x20and\x20sorting\x20result\x20rows.\ - \x20See\x20[key_set][google.spanner.v1.ReadRequest.key_set]\x20for\x20fu\ - rther\x20information.\n\n\r\n\x05\x04\x11\x02\x03\x05\x12\x04\xac\x07\ - \x02\x08\n\r\n\x05\x04\x11\x02\x03\x01\x12\x04\xac\x07\t\x0e\n\r\n\x05\ - \x04\x11\x02\x03\x03\x12\x04\xac\x07\x11\x12\n\x89\x01\n\x04\x04\x11\x02\ - \x04\x12\x04\xb0\x07\x02G\x1a{\x20Required.\x20The\x20columns\x20of\x20[\ - table][google.spanner.v1.ReadRequest.table]\x20to\x20be\x20returned\x20f\ - or\x20each\x20row\x20matching\n\x20this\x20request.\n\n\r\n\x05\x04\x11\ - \x02\x04\x04\x12\x04\xb0\x07\x02\n\n\r\n\x05\x04\x11\x02\x04\x05\x12\x04\ - \xb0\x07\x0b\x11\n\r\n\x05\x04\x11\x02\x04\x01\x12\x04\xb0\x07\x12\x19\n\ - \r\n\x05\x04\x11\x02\x04\x03\x12\x04\xb0\x07\x1c\x1d\n\r\n\x05\x04\x11\ - \x02\x04\x08\x12\x04\xb0\x07\x1eF\n\x10\n\x08\x04\x11\x02\x04\x08\x9c\ - \x08\0\x12\x04\xb0\x07\x1fE\n\xd6\x07\n\x04\x04\x11\x02\x05\x12\x04\xbe\ - \x07\x02>\x1a\xc7\x07\x20Required.\x20`key_set`\x20identifies\x20the\x20\ + \x20are\x20not.\n\n\r\n\x05\x04\r\x02\x01\x06\x12\x04\xde\x05\x02\x15\n\ + \r\n\x05\x04\r\x02\x01\x01\x12\x04\xde\x05\x16!\n\r\n\x05\x04\r\x02\x01\ + \x03\x12\x04\xde\x05$%\nK\n\x04\x04\r\x02\x02\x12\x04\xe1\x05\x02<\x1a=\ + \x20Required.\x20The\x20name\x20of\x20the\x20table\x20in\x20the\x20datab\ + ase\x20to\x20be\x20read.\n\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xe1\x05\ + \x02\x08\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xe1\x05\t\x0e\n\r\n\x05\x04\ + \r\x02\x02\x03\x12\x04\xe1\x05\x11\x12\n\r\n\x05\x04\r\x02\x02\x08\x12\ + \x04\xe1\x05\x13;\n\x10\n\x08\x04\r\x02\x02\x08\x9c\x08\0\x12\x04\xe1\ + \x05\x14:\n\xe2\x02\n\x04\x04\r\x02\x03\x12\x04\xe9\x05\x02\x13\x1a\xd3\ + \x02\x20If\x20non-empty,\x20the\x20name\x20of\x20an\x20index\x20on\n\x20\ + [table][google.spanner.v1.PartitionReadRequest.table].\x20This\x20index\ + \x20is\x20used\n\x20instead\x20of\x20the\x20table\x20primary\x20key\x20w\ + hen\x20interpreting\n\x20[key_set][google.spanner.v1.PartitionReadReques\ + t.key_set]\x20and\x20sorting\n\x20result\x20rows.\x20See\x20[key_set][go\ + ogle.spanner.v1.PartitionReadRequest.key_set]\n\x20for\x20further\x20inf\ + ormation.\n\n\r\n\x05\x04\r\x02\x03\x05\x12\x04\xe9\x05\x02\x08\n\r\n\ + \x05\x04\r\x02\x03\x01\x12\x04\xe9\x05\t\x0e\n\r\n\x05\x04\r\x02\x03\x03\ + \x12\x04\xe9\x05\x11\x12\n\x88\x01\n\x04\x04\r\x02\x04\x12\x04\xed\x05\ + \x02\x1e\x1az\x20The\x20columns\x20of\x20[table][google.spanner.v1.Parti\ + tionReadRequest.table]\x20to\x20be\n\x20returned\x20for\x20each\x20row\ + \x20matching\x20this\x20request.\n\n\r\n\x05\x04\r\x02\x04\x04\x12\x04\ + \xed\x05\x02\n\n\r\n\x05\x04\r\x02\x04\x05\x12\x04\xed\x05\x0b\x11\n\r\n\ + \x05\x04\r\x02\x04\x01\x12\x04\xed\x05\x12\x19\n\r\n\x05\x04\r\x02\x04\ + \x03\x12\x04\xed\x05\x1c\x1d\n\xe4\x04\n\x04\x04\r\x02\x05\x12\x04\xf9\ + \x05\x02>\x1a\xd5\x04\x20Required.\x20`key_set`\x20identifies\x20the\x20\ rows\x20to\x20be\x20yielded.\x20`key_set`\x20names\x20the\n\x20primary\ - \x20keys\x20of\x20the\x20rows\x20in\x20[table][google.spanner.v1.ReadReq\ - uest.table]\x20to\x20be\x20yielded,\x20unless\x20[index][google.spanner.\ - v1.ReadRequest.index]\n\x20is\x20present.\x20If\x20[index][google.spanne\ - r.v1.ReadRequest.index]\x20is\x20present,\x20then\x20[key_set][google.sp\ - anner.v1.ReadRequest.key_set]\x20instead\x20names\n\x20index\x20keys\x20\ - in\x20[index][google.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20\ - [partition_token][google.spanner.v1.ReadRequest.partition_token]\x20fiel\ - d\x20is\x20empty,\x20rows\x20are\x20yielded\n\x20in\x20table\x20primary\ - \x20key\x20order\x20(if\x20[index][google.spanner.v1.ReadRequest.index]\ - \x20is\x20empty)\x20or\x20index\x20key\x20order\n\x20(if\x20[index][goog\ - le.spanner.v1.ReadRequest.index]\x20is\x20non-empty).\x20\x20If\x20the\ - \x20[partition_token][google.spanner.v1.ReadRequest.partition_token]\x20\ - field\x20is\x20not\n\x20empty,\x20rows\x20will\x20be\x20yielded\x20in\ - \x20an\x20unspecified\x20order.\n\n\x20It\x20is\x20not\x20an\x20error\ + \x20keys\x20of\x20the\x20rows\x20in\n\x20[table][google.spanner.v1.Parti\ + tionReadRequest.table]\x20to\x20be\x20yielded,\x20unless\n\x20[index][go\ + ogle.spanner.v1.PartitionReadRequest.index]\x20is\x20present.\x20If\n\ + \x20[index][google.spanner.v1.PartitionReadRequest.index]\x20is\x20prese\ + nt,\x20then\n\x20[key_set][google.spanner.v1.PartitionReadRequest.key_se\ + t]\x20instead\x20names\n\x20index\x20keys\x20in\x20[index][google.spanne\ + r.v1.PartitionReadRequest.index].\n\n\x20It\x20is\x20not\x20an\x20error\ \x20for\x20the\x20`key_set`\x20to\x20name\x20rows\x20that\x20do\x20not\n\ \x20exist\x20in\x20the\x20database.\x20Read\x20yields\x20nothing\x20for\ - \x20nonexistent\x20rows.\n\n\r\n\x05\x04\x11\x02\x05\x06\x12\x04\xbe\x07\ - \x02\x08\n\r\n\x05\x04\x11\x02\x05\x01\x12\x04\xbe\x07\t\x10\n\r\n\x05\ - \x04\x11\x02\x05\x03\x12\x04\xbe\x07\x13\x14\n\r\n\x05\x04\x11\x02\x05\ - \x08\x12\x04\xbe\x07\x15=\n\x10\n\x08\x04\x11\x02\x05\x08\x9c\x08\0\x12\ - \x04\xbe\x07\x16<\n\xb7\x01\n\x04\x04\x11\x02\x06\x12\x04\xc3\x07\x02\ - \x12\x1a\xa8\x01\x20If\x20greater\x20than\x20zero,\x20only\x20the\x20fir\ - st\x20`limit`\x20rows\x20are\x20yielded.\x20If\x20`limit`\n\x20is\x20zer\ - o,\x20the\x20default\x20is\x20no\x20limit.\x20A\x20limit\x20cannot\x20be\ - \x20specified\x20if\n\x20`partition_token`\x20is\x20set.\n\n\r\n\x05\x04\ - \x11\x02\x06\x05\x12\x04\xc3\x07\x02\x07\n\r\n\x05\x04\x11\x02\x06\x01\ - \x12\x04\xc3\x07\x08\r\n\r\n\x05\x04\x11\x02\x06\x03\x12\x04\xc3\x07\x10\ - \x11\n\xf9\x02\n\x04\x04\x11\x02\x07\x12\x04\xcb\x07\x02\x19\x1a\xea\x02\ - \x20If\x20this\x20request\x20is\x20resuming\x20a\x20previously\x20interr\ - upted\x20read,\n\x20`resume_token`\x20should\x20be\x20copied\x20from\x20\ - the\x20last\n\x20[PartialResultSet][google.spanner.v1.PartialResultSet]\ - \x20yielded\x20before\x20the\x20interruption.\x20Doing\x20this\n\x20enab\ - les\x20the\x20new\x20read\x20to\x20resume\x20where\x20the\x20last\x20rea\ - d\x20left\x20off.\x20The\n\x20rest\x20of\x20the\x20request\x20parameters\ - \x20must\x20exactly\x20match\x20the\x20request\n\x20that\x20yielded\x20t\ - his\x20token.\n\n\r\n\x05\x04\x11\x02\x07\x05\x12\x04\xcb\x07\x02\x07\n\ - \r\n\x05\x04\x11\x02\x07\x01\x12\x04\xcb\x07\x08\x14\n\r\n\x05\x04\x11\ - \x02\x07\x03\x12\x04\xcb\x07\x17\x18\n\x99\x02\n\x04\x04\x11\x02\x08\x12\ - \x04\xd1\x07\x02\x1d\x1a\x8a\x02\x20If\x20present,\x20results\x20will\ - \x20be\x20restricted\x20to\x20the\x20specified\x20partition\n\x20previou\ - sly\x20created\x20using\x20PartitionRead().\x20\x20\x20\x20There\x20must\ - \x20be\x20an\x20exact\n\x20match\x20for\x20the\x20values\x20of\x20fields\ - \x20common\x20to\x20this\x20message\x20and\x20the\n\x20PartitionReadRequ\ - est\x20message\x20used\x20to\x20create\x20this\x20partition_token.\n\n\r\ - \n\x05\x04\x11\x02\x08\x05\x12\x04\xd1\x07\x02\x07\n\r\n\x05\x04\x11\x02\ - \x08\x01\x12\x04\xd1\x07\x08\x17\n\r\n\x05\x04\x11\x02\x08\x03\x12\x04\ - \xd1\x07\x1a\x1c\n0\n\x04\x04\x11\x02\t\x12\x04\xd4\x07\x02&\x1a\"\x20Co\ - mmon\x20options\x20for\x20this\x20request.\n\n\r\n\x05\x04\x11\x02\t\x06\ - \x12\x04\xd4\x07\x02\x10\n\r\n\x05\x04\x11\x02\t\x01\x12\x04\xd4\x07\x11\ - \x20\n\r\n\x05\x04\x11\x02\t\x03\x12\x04\xd4\x07#%\n\x9e\x02\n\x04\x04\ - \x11\x02\n\x12\x04\xdb\x07\x02\x1f\x1a\x8f\x02\x20If\x20this\x20is\x20fo\ - r\x20a\x20partitioned\x20read\x20and\x20this\x20field\x20is\x20set\x20to\ - \x20`true`,\x20the\n\x20request\x20will\x20be\x20executed\x20via\x20Span\ - ner\x20independent\x20compute\x20resources.\n\n\x20If\x20the\x20field\ - \x20is\x20set\x20to\x20`true`\x20but\x20the\x20request\x20does\x20not\ - \x20set\n\x20`partition_token`,\x20the\x20API\x20will\x20return\x20an\ - \x20`INVALID_ARGUMENT`\x20error.\n\n\r\n\x05\x04\x11\x02\n\x05\x12\x04\ - \xdb\x07\x02\x06\n\r\n\x05\x04\x11\x02\n\x01\x12\x04\xdb\x07\x07\x19\n\r\ - \n\x05\x04\x11\x02\n\x03\x12\x04\xdb\x07\x1c\x1e\n_\n\x02\x04\x12\x12\ - \x06\xdf\x07\0\xf1\x07\x01\x1aQ\x20The\x20request\x20for\x20[BeginTransa\ - ction][google.spanner.v1.Spanner.BeginTransaction].\n\n\x0b\n\x03\x04\ - \x12\x01\x12\x04\xdf\x07\x08\x1f\nF\n\x04\x04\x12\x02\0\x12\x06\xe1\x07\ - \x02\xe6\x07\x04\x1a6\x20Required.\x20The\x20session\x20in\x20which\x20t\ - he\x20transaction\x20runs.\n\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xe1\x07\ - \x02\x08\n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xe1\x07\t\x10\n\r\n\x05\x04\ - \x12\x02\0\x03\x12\x04\xe1\x07\x13\x14\n\x0f\n\x05\x04\x12\x02\0\x08\x12\ - \x06\xe1\x07\x15\xe6\x07\x03\n\x10\n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\ - \x04\xe2\x07\x04*\n\x11\n\x07\x04\x12\x02\0\x08\x9f\x08\x12\x06\xe3\x07\ - \x04\xe5\x07\x05\n:\n\x04\x04\x12\x02\x01\x12\x04\xe9\x07\x02J\x1a,\x20R\ - equired.\x20Options\x20for\x20the\x20new\x20transaction.\n\n\r\n\x05\x04\ - \x12\x02\x01\x06\x12\x04\xe9\x07\x02\x14\n\r\n\x05\x04\x12\x02\x01\x01\ - \x12\x04\xe9\x07\x15\x1c\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xe9\x07\ - \x1f\x20\n\r\n\x05\x04\x12\x02\x01\x08\x12\x04\xe9\x07!I\n\x10\n\x08\x04\ - \x12\x02\x01\x08\x9c\x08\0\x12\x04\xe9\x07\"H\n\x96\x02\n\x04\x04\x12\ - \x02\x02\x12\x04\xf0\x07\x02%\x1a\x87\x02\x20Common\x20options\x20for\ - \x20this\x20request.\n\x20Priority\x20is\x20ignored\x20for\x20this\x20re\ - quest.\x20Setting\x20the\x20priority\x20in\x20this\n\x20request_options\ - \x20struct\x20will\x20not\x20do\x20anything.\x20To\x20set\x20the\x20prio\ - rity\x20for\x20a\n\x20transaction,\x20set\x20it\x20on\x20the\x20reads\ - \x20and\x20writes\x20that\x20are\x20part\x20of\x20this\n\x20transaction\ - \x20instead.\n\n\r\n\x05\x04\x12\x02\x02\x06\x12\x04\xf0\x07\x02\x10\n\r\ - \n\x05\x04\x12\x02\x02\x01\x12\x04\xf0\x07\x11\x20\n\r\n\x05\x04\x12\x02\ - \x02\x03\x12\x04\xf0\x07#$\nK\n\x02\x04\x13\x12\x06\xf4\x07\0\x9a\x08\ - \x01\x1a=\x20The\x20request\x20for\x20[Commit][google.spanner.v1.Spanner\ - .Commit].\n\n\x0b\n\x03\x04\x13\x01\x12\x04\xf4\x07\x08\x15\n\\\n\x04\ - \x04\x13\x02\0\x12\x06\xf6\x07\x02\xfb\x07\x04\x1aL\x20Required.\x20The\ - \x20session\x20in\x20which\x20the\x20transaction\x20to\x20be\x20committe\ - d\x20is\x20running.\n\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xf6\x07\x02\ - \x08\n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xf6\x07\t\x10\n\r\n\x05\x04\x13\ - \x02\0\x03\x12\x04\xf6\x07\x13\x14\n\x0f\n\x05\x04\x13\x02\0\x08\x12\x06\ - \xf6\x07\x15\xfb\x07\x03\n\x10\n\x08\x04\x13\x02\0\x08\x9c\x08\0\x12\x04\ - \xf7\x07\x04*\n\x11\n\x07\x04\x13\x02\0\x08\x9f\x08\x12\x06\xf8\x07\x04\ - \xfa\x07\x05\n?\n\x04\x04\x13\x08\0\x12\x06\xfe\x07\x02\x8c\x08\x03\x1a/\ - \x20Required.\x20The\x20transaction\x20in\x20which\x20to\x20commit.\n\n\ - \r\n\x05\x04\x13\x08\0\x01\x12\x04\xfe\x07\x08\x13\n8\n\x04\x04\x13\x02\ - \x01\x12\x04\x80\x08\x04\x1d\x1a*\x20Commit\x20a\x20previously-started\ - \x20transaction.\n\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\x80\x08\x04\t\n\ - \r\n\x05\x04\x13\x02\x01\x01\x12\x04\x80\x08\n\x18\n\r\n\x05\x04\x13\x02\ - \x01\x03\x12\x04\x80\x08\x1b\x1c\n\xa4\x04\n\x04\x04\x13\x02\x02\x12\x04\ - \x8b\x08\x042\x1a\x95\x04\x20Execute\x20mutations\x20in\x20a\x20temporar\ - y\x20transaction.\x20Note\x20that\x20unlike\n\x20commit\x20of\x20a\x20pr\ - eviously-started\x20transaction,\x20commit\x20with\x20a\n\x20temporary\ - \x20transaction\x20is\x20non-idempotent.\x20That\x20is,\x20if\x20the\n\ - \x20`CommitRequest`\x20is\x20sent\x20to\x20Cloud\x20Spanner\x20more\x20t\ - han\x20once\x20(for\n\x20instance,\x20due\x20to\x20retries\x20in\x20the\ - \x20application,\x20or\x20in\x20the\n\x20transport\x20library),\x20it\ - \x20is\x20possible\x20that\x20the\x20mutations\x20are\n\x20executed\x20m\ - ore\x20than\x20once.\x20If\x20this\x20is\x20undesirable,\x20use\n\x20[Be\ - ginTransaction][google.spanner.v1.Spanner.BeginTransaction]\x20and\n\x20\ - [Commit][google.spanner.v1.Spanner.Commit]\x20instead.\n\n\r\n\x05\x04\ - \x13\x02\x02\x06\x12\x04\x8b\x08\x04\x16\n\r\n\x05\x04\x13\x02\x02\x01\ - \x12\x04\x8b\x08\x17-\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\x8b\x0801\n\ - \x9b\x01\n\x04\x04\x13\x02\x03\x12\x04\x91\x08\x02\"\x1a\x8c\x01\x20The\ - \x20mutations\x20to\x20be\x20executed\x20when\x20this\x20transaction\x20\ - commits.\x20All\n\x20mutations\x20are\x20applied\x20atomically,\x20in\ - \x20the\x20order\x20they\x20appear\x20in\n\x20this\x20list.\n\n\r\n\x05\ - \x04\x13\x02\x03\x04\x12\x04\x91\x08\x02\n\n\r\n\x05\x04\x13\x02\x03\x06\ - \x12\x04\x91\x08\x0b\x13\n\r\n\x05\x04\x13\x02\x03\x01\x12\x04\x91\x08\ - \x14\x1d\n\r\n\x05\x04\x13\x02\x03\x03\x12\x04\x91\x08\x20!\n\xbb\x01\n\ - \x04\x04\x13\x02\x04\x12\x04\x96\x08\x02\x1f\x1a\xac\x01\x20If\x20`true`\ - ,\x20then\x20statistics\x20related\x20to\x20the\x20transaction\x20will\ - \x20be\x20included\x20in\n\x20the\x20[CommitResponse][google.spanner.v1.\ - CommitResponse.commit_stats].\x20Default\x20value\x20is\n\x20`false`.\n\ - \n\r\n\x05\x04\x13\x02\x04\x05\x12\x04\x96\x08\x02\x06\n\r\n\x05\x04\x13\ - \x02\x04\x01\x12\x04\x96\x08\x07\x1a\n\r\n\x05\x04\x13\x02\x04\x03\x12\ - \x04\x96\x08\x1d\x1e\n0\n\x04\x04\x13\x02\x05\x12\x04\x99\x08\x02%\x1a\"\ - \x20Common\x20options\x20for\x20this\x20request.\n\n\r\n\x05\x04\x13\x02\ - \x05\x06\x12\x04\x99\x08\x02\x10\n\r\n\x05\x04\x13\x02\x05\x01\x12\x04\ - \x99\x08\x11\x20\n\r\n\x05\x04\x13\x02\x05\x03\x12\x04\x99\x08#$\nO\n\ - \x02\x04\x14\x12\x06\x9d\x08\0\xa8\x08\x01\x1aA\x20The\x20request\x20for\ - \x20[Rollback][google.spanner.v1.Spanner.Rollback].\n\n\x0b\n\x03\x04\ - \x14\x01\x12\x04\x9d\x08\x08\x17\nY\n\x04\x04\x14\x02\0\x12\x06\x9f\x08\ - \x02\xa4\x08\x04\x1aI\x20Required.\x20The\x20session\x20in\x20which\x20t\ - he\x20transaction\x20to\x20roll\x20back\x20is\x20running.\n\n\r\n\x05\ - \x04\x14\x02\0\x05\x12\x04\x9f\x08\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\ - \x12\x04\x9f\x08\t\x10\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\x9f\x08\x13\ - \x14\n\x0f\n\x05\x04\x14\x02\0\x08\x12\x06\x9f\x08\x15\xa4\x08\x03\n\x10\ - \n\x08\x04\x14\x02\0\x08\x9c\x08\0\x12\x04\xa0\x08\x04*\n\x11\n\x07\x04\ - \x14\x02\0\x08\x9f\x08\x12\x06\xa1\x08\x04\xa3\x08\x05\n7\n\x04\x04\x14\ - \x02\x01\x12\x04\xa7\x08\x02D\x1a)\x20Required.\x20The\x20transaction\ - \x20to\x20roll\x20back.\n\n\r\n\x05\x04\x14\x02\x01\x05\x12\x04\xa7\x08\ - \x02\x07\n\r\n\x05\x04\x14\x02\x01\x01\x12\x04\xa7\x08\x08\x16\n\r\n\x05\ - \x04\x14\x02\x01\x03\x12\x04\xa7\x08\x19\x1a\n\r\n\x05\x04\x14\x02\x01\ - \x08\x12\x04\xa7\x08\x1bC\n\x10\n\x08\x04\x14\x02\x01\x08\x9c\x08\0\x12\ - \x04\xa7\x08\x1cB\nS\n\x02\x04\x15\x12\x06\xab\x08\0\xc0\x08\x01\x1aE\ - \x20The\x20request\x20for\x20[BatchWrite][google.spanner.v1.Spanner.Batc\ - hWrite].\n\n\x0b\n\x03\x04\x15\x01\x12\x04\xab\x08\x08\x19\n\xea\x01\n\ - \x04\x04\x15\x03\0\x12\x06\xaf\x08\x02\xb2\x08\x03\x1a\xd9\x01\x20A\x20g\ - roup\x20of\x20mutations\x20to\x20be\x20committed\x20together.\x20Related\ - \x20mutations\x20should\x20be\n\x20placed\x20in\x20a\x20group.\x20For\ - \x20example,\x20two\x20mutations\x20inserting\x20rows\x20with\x20the\x20\ - same\n\x20primary\x20key\x20prefix\x20in\x20both\x20parent\x20and\x20chi\ - ld\x20tables\x20are\x20related.\n\n\r\n\x05\x04\x15\x03\0\x01\x12\x04\ - \xaf\x08\n\x17\n8\n\x06\x04\x15\x03\0\x02\0\x12\x04\xb1\x08\x04M\x1a(\ - \x20Required.\x20The\x20mutations\x20in\x20this\x20group.\n\n\x0f\n\x07\ - \x04\x15\x03\0\x02\0\x04\x12\x04\xb1\x08\x04\x0c\n\x0f\n\x07\x04\x15\x03\ - \0\x02\0\x06\x12\x04\xb1\x08\r\x15\n\x0f\n\x07\x04\x15\x03\0\x02\0\x01\ - \x12\x04\xb1\x08\x16\x1f\n\x0f\n\x07\x04\x15\x03\0\x02\0\x03\x12\x04\xb1\ - \x08\"#\n\x0f\n\x07\x04\x15\x03\0\x02\0\x08\x12\x04\xb1\x08$L\n\x12\n\n\ - \x04\x15\x03\0\x02\0\x08\x9c\x08\0\x12\x04\xb1\x08%K\nP\n\x04\x04\x15\ - \x02\0\x12\x06\xb5\x08\x02\xb8\x08\x04\x1a@\x20Required.\x20The\x20sessi\ - on\x20in\x20which\x20the\x20batch\x20request\x20is\x20to\x20be\x20run.\n\ - \n\r\n\x05\x04\x15\x02\0\x05\x12\x04\xb5\x08\x02\x08\n\r\n\x05\x04\x15\ - \x02\0\x01\x12\x04\xb5\x08\t\x10\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xb5\ - \x08\x13\x14\n\x0f\n\x05\x04\x15\x02\0\x08\x12\x06\xb5\x08\x15\xb8\x08\ - \x03\n\x10\n\x08\x04\x15\x02\0\x08\x9c\x08\0\x12\x04\xb6\x08\x04*\n\x0f\ - \n\x07\x04\x15\x02\0\x08\x9f\x08\x12\x04\xb7\x08\x04P\n0\n\x04\x04\x15\ - \x02\x01\x12\x04\xbb\x08\x02%\x1a\"\x20Common\x20options\x20for\x20this\ - \x20request.\n\n\r\n\x05\x04\x15\x02\x01\x06\x12\x04\xbb\x08\x02\x10\n\r\ - \n\x05\x04\x15\x02\x01\x01\x12\x04\xbb\x08\x11\x20\n\r\n\x05\x04\x15\x02\ - \x01\x03\x12\x04\xbb\x08#$\nB\n\x04\x04\x15\x02\x02\x12\x06\xbe\x08\x02\ - \xbf\x08/\x1a2\x20Required.\x20The\x20groups\x20of\x20mutations\x20to\ - \x20be\x20applied.\n\n\r\n\x05\x04\x15\x02\x02\x04\x12\x04\xbe\x08\x02\n\ - \n\r\n\x05\x04\x15\x02\x02\x06\x12\x04\xbe\x08\x0b\x18\n\r\n\x05\x04\x15\ - \x02\x02\x01\x12\x04\xbe\x08\x19(\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\ - \xbe\x08+,\n\r\n\x05\x04\x15\x02\x02\x08\x12\x04\xbf\x08\x06.\n\x10\n\ - \x08\x04\x15\x02\x02\x08\x9c\x08\0\x12\x04\xbf\x08\x07-\n<\n\x02\x04\x16\ - \x12\x06\xc3\x08\0\xce\x08\x01\x1a.\x20The\x20result\x20of\x20applying\ - \x20a\x20batch\x20of\x20mutations.\n\n\x0b\n\x03\x04\x16\x01\x12\x04\xc3\ - \x08\x08\x1a\n\x98\x01\n\x04\x04\x16\x02\0\x12\x04\xc6\x08\x02\x1d\x1a\ - \x89\x01\x20The\x20mutation\x20groups\x20applied\x20in\x20this\x20batch.\ - \x20The\x20values\x20index\x20into\x20the\n\x20`mutation_groups`\x20fiel\ - d\x20in\x20the\x20corresponding\x20`BatchWriteRequest`.\n\n\r\n\x05\x04\ - \x16\x02\0\x04\x12\x04\xc6\x08\x02\n\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\ - \xc6\x08\x0b\x10\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\xc6\x08\x11\x18\n\r\ - \n\x05\x04\x16\x02\0\x03\x12\x04\xc6\x08\x1b\x1c\nW\n\x04\x04\x16\x02\ - \x01\x12\x04\xc9\x08\x02\x1f\x1aI\x20An\x20`OK`\x20status\x20indicates\ - \x20success.\x20Any\x20other\x20status\x20indicates\x20a\x20failure.\n\n\ - \r\n\x05\x04\x16\x02\x01\x06\x12\x04\xc9\x08\x02\x13\n\r\n\x05\x04\x16\ - \x02\x01\x01\x12\x04\xc9\x08\x14\x1a\n\r\n\x05\x04\x16\x02\x01\x03\x12\ - \x04\xc9\x08\x1d\x1e\n\x80\x01\n\x04\x04\x16\x02\x02\x12\x04\xcd\x08\x02\ - 1\x1ar\x20The\x20commit\x20timestamp\x20of\x20the\x20transaction\x20that\ - \x20applied\x20this\x20batch.\n\x20Present\x20if\x20`status`\x20is\x20`O\ - K`,\x20absent\x20otherwise.\n\n\r\n\x05\x04\x16\x02\x02\x06\x12\x04\xcd\ - \x08\x02\x1b\n\r\n\x05\x04\x16\x02\x02\x01\x12\x04\xcd\x08\x1c,\n\r\n\ - \x05\x04\x16\x02\x02\x03\x12\x04\xcd\x08/0b\x06proto3\ + \x20nonexistent\x20rows.\n\n\r\n\x05\x04\r\x02\x05\x06\x12\x04\xf9\x05\ + \x02\x08\n\r\n\x05\x04\r\x02\x05\x01\x12\x04\xf9\x05\t\x10\n\r\n\x05\x04\ + \r\x02\x05\x03\x12\x04\xf9\x05\x13\x14\n\r\n\x05\x04\r\x02\x05\x08\x12\ + \x04\xf9\x05\x15=\n\x10\n\x08\x04\r\x02\x05\x08\x9c\x08\0\x12\x04\xf9\ + \x05\x16<\nO\n\x04\x04\r\x02\x06\x12\x04\xfc\x05\x02)\x1aA\x20Additional\ + \x20options\x20that\x20affect\x20how\x20many\x20partitions\x20are\x20cre\ + ated.\n\n\r\n\x05\x04\r\x02\x06\x06\x12\x04\xfc\x05\x02\x12\n\r\n\x05\ + \x04\r\x02\x06\x01\x12\x04\xfc\x05\x13$\n\r\n\x05\x04\r\x02\x06\x03\x12\ + \x04\xfc\x05'(\nY\n\x02\x04\x0e\x12\x06\x81\x06\0\x86\x06\x01\x1aK\x20In\ + formation\x20returned\x20for\x20each\x20partition\x20returned\x20in\x20a\ + \n\x20PartitionResponse.\n\n\x0b\n\x03\x04\x0e\x01\x12\x04\x81\x06\x08\ + \x11\n\xb4\x01\n\x04\x04\x0e\x02\0\x12\x04\x85\x06\x02\x1c\x1a\xa5\x01\ + \x20This\x20token\x20can\x20be\x20passed\x20to\x20Read,\x20StreamingRead\ + ,\x20ExecuteSql,\x20or\n\x20ExecuteStreamingSql\x20requests\x20to\x20res\ + trict\x20the\x20results\x20to\x20those\x20identified\x20by\n\x20this\x20\ + partition\x20token.\n\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\x85\x06\x02\ + \x07\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\x85\x06\x08\x17\n\r\n\x05\x04\ + \x0e\x02\0\x03\x12\x04\x85\x06\x1a\x1b\n\x99\x01\n\x02\x04\x0f\x12\x06\ + \x8a\x06\0\x90\x06\x01\x1a\x8a\x01\x20The\x20response\x20for\x20[Partiti\ + onQuery][google.spanner.v1.Spanner.PartitionQuery]\n\x20or\x20[Partition\ + Read][google.spanner.v1.Spanner.PartitionRead]\n\n\x0b\n\x03\x04\x0f\x01\ + \x12\x04\x8a\x06\x08\x19\n3\n\x04\x04\x0f\x02\0\x12\x04\x8c\x06\x02$\x1a\ + %\x20Partitions\x20created\x20by\x20this\x20request.\n\n\r\n\x05\x04\x0f\ + \x02\0\x04\x12\x04\x8c\x06\x02\n\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\x8c\ + \x06\x0b\x14\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\x8c\x06\x15\x1f\n\r\n\ + \x05\x04\x0f\x02\0\x03\x12\x04\x8c\x06\"#\n4\n\x04\x04\x0f\x02\x01\x12\ + \x04\x8f\x06\x02\x1e\x1a&\x20Transaction\x20created\x20by\x20this\x20req\ + uest.\n\n\r\n\x05\x04\x0f\x02\x01\x06\x12\x04\x8f\x06\x02\r\n\r\n\x05\ + \x04\x0f\x02\x01\x01\x12\x04\x8f\x06\x0e\x19\n\r\n\x05\x04\x0f\x02\x01\ + \x03\x12\x04\x8f\x06\x1c\x1d\n\x85\x01\n\x02\x04\x10\x12\x06\x94\x06\0\ + \xd2\x06\x01\x1aw\x20The\x20request\x20for\x20[Read][google.spanner.v1.S\ + panner.Read]\x20and\n\x20[StreamingRead][google.spanner.v1.Spanner.Strea\ + mingRead].\n\n\x0b\n\x03\x04\x10\x01\x12\x04\x94\x06\x08\x13\nN\n\x04\ + \x04\x10\x02\0\x12\x06\x96\x06\x02\x99\x06\x04\x1a>\x20Required.\x20The\ + \x20session\x20in\x20which\x20the\x20read\x20should\x20be\x20performed.\ + \n\n\r\n\x05\x04\x10\x02\0\x05\x12\x04\x96\x06\x02\x08\n\r\n\x05\x04\x10\ + \x02\0\x01\x12\x04\x96\x06\t\x10\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x96\ + \x06\x13\x14\n\x0f\n\x05\x04\x10\x02\0\x08\x12\x06\x96\x06\x15\x99\x06\ + \x03\n\x10\n\x08\x04\x10\x02\0\x08\x9c\x08\0\x12\x04\x97\x06\x04*\n\x0f\ + \n\x07\x04\x10\x02\0\x08\x9f\x08\x12\x04\x98\x06\x04P\n\x87\x01\n\x04\ + \x04\x10\x02\x01\x12\x04\x9d\x06\x02&\x1ay\x20The\x20transaction\x20to\ + \x20use.\x20If\x20none\x20is\x20provided,\x20the\x20default\x20is\x20a\n\ + \x20temporary\x20read-only\x20transaction\x20with\x20strong\x20concurren\ + cy.\n\n\r\n\x05\x04\x10\x02\x01\x06\x12\x04\x9d\x06\x02\x15\n\r\n\x05\ + \x04\x10\x02\x01\x01\x12\x04\x9d\x06\x16!\n\r\n\x05\x04\x10\x02\x01\x03\ + \x12\x04\x9d\x06$%\nK\n\x04\x04\x10\x02\x02\x12\x04\xa0\x06\x02<\x1a=\ + \x20Required.\x20The\x20name\x20of\x20the\x20table\x20in\x20the\x20datab\ + ase\x20to\x20be\x20read.\n\n\r\n\x05\x04\x10\x02\x02\x05\x12\x04\xa0\x06\ + \x02\x08\n\r\n\x05\x04\x10\x02\x02\x01\x12\x04\xa0\x06\t\x0e\n\r\n\x05\ + \x04\x10\x02\x02\x03\x12\x04\xa0\x06\x11\x12\n\r\n\x05\x04\x10\x02\x02\ + \x08\x12\x04\xa0\x06\x13;\n\x10\n\x08\x04\x10\x02\x02\x08\x9c\x08\0\x12\ + \x04\xa0\x06\x14:\n\xc7\x02\n\x04\x04\x10\x02\x03\x12\x04\xa8\x06\x02\ + \x13\x1a\xb8\x02\x20If\x20non-empty,\x20the\x20name\x20of\x20an\x20index\ + \x20on\n\x20[table][google.spanner.v1.ReadRequest.table].\x20This\x20ind\ + ex\x20is\x20used\x20instead\x20of\n\x20the\x20table\x20primary\x20key\ + \x20when\x20interpreting\n\x20[key_set][google.spanner.v1.ReadRequest.ke\ + y_set]\x20and\x20sorting\x20result\x20rows.\n\x20See\x20[key_set][google\ + .spanner.v1.ReadRequest.key_set]\x20for\x20further\n\x20information.\n\n\ + \r\n\x05\x04\x10\x02\x03\x05\x12\x04\xa8\x06\x02\x08\n\r\n\x05\x04\x10\ + \x02\x03\x01\x12\x04\xa8\x06\t\x0e\n\r\n\x05\x04\x10\x02\x03\x03\x12\x04\ + \xa8\x06\x11\x12\n\x89\x01\n\x04\x04\x10\x02\x04\x12\x04\xac\x06\x02G\ + \x1a{\x20Required.\x20The\x20columns\x20of\x20[table][google.spanner.v1.\ + ReadRequest.table]\x20to\x20be\n\x20returned\x20for\x20each\x20row\x20ma\ + tching\x20this\x20request.\n\n\r\n\x05\x04\x10\x02\x04\x04\x12\x04\xac\ + \x06\x02\n\n\r\n\x05\x04\x10\x02\x04\x05\x12\x04\xac\x06\x0b\x11\n\r\n\ + \x05\x04\x10\x02\x04\x01\x12\x04\xac\x06\x12\x19\n\r\n\x05\x04\x10\x02\ + \x04\x03\x12\x04\xac\x06\x1c\x1d\n\r\n\x05\x04\x10\x02\x04\x08\x12\x04\ + \xac\x06\x1eF\n\x10\n\x08\x04\x10\x02\x04\x08\x9c\x08\0\x12\x04\xac\x06\ + \x1fE\n\xda\x07\n\x04\x04\x10\x02\x05\x12\x04\xbe\x06\x02>\x1a\xcb\x07\ + \x20Required.\x20`key_set`\x20identifies\x20the\x20rows\x20to\x20be\x20y\ + ielded.\x20`key_set`\x20names\x20the\n\x20primary\x20keys\x20of\x20the\ + \x20rows\x20in\x20[table][google.spanner.v1.ReadRequest.table]\x20to\n\ + \x20be\x20yielded,\x20unless\x20[index][google.spanner.v1.ReadRequest.in\ + dex]\x20is\x20present.\n\x20If\x20[index][google.spanner.v1.ReadRequest.\ + index]\x20is\x20present,\x20then\n\x20[key_set][google.spanner.v1.ReadRe\ + quest.key_set]\x20instead\x20names\x20index\x20keys\n\x20in\x20[index][g\ + oogle.spanner.v1.ReadRequest.index].\n\n\x20If\x20the\x20[partition_toke\ + n][google.spanner.v1.ReadRequest.partition_token]\n\x20field\x20is\x20em\ + pty,\x20rows\x20are\x20yielded\x20in\x20table\x20primary\x20key\x20order\ + \x20(if\n\x20[index][google.spanner.v1.ReadRequest.index]\x20is\x20empty\ + )\x20or\x20index\x20key\x20order\n\x20(if\x20[index][google.spanner.v1.R\ + eadRequest.index]\x20is\x20non-empty).\x20\x20If\x20the\n\x20[partition_\ + token][google.spanner.v1.ReadRequest.partition_token]\x20field\x20is\n\ + \x20not\x20empty,\x20rows\x20will\x20be\x20yielded\x20in\x20an\x20unspec\ + ified\x20order.\n\n\x20It\x20is\x20not\x20an\x20error\x20for\x20the\x20`\ + key_set`\x20to\x20name\x20rows\x20that\x20do\x20not\n\x20exist\x20in\x20\ + the\x20database.\x20Read\x20yields\x20nothing\x20for\x20nonexistent\x20r\ + ows.\n\n\r\n\x05\x04\x10\x02\x05\x06\x12\x04\xbe\x06\x02\x08\n\r\n\x05\ + \x04\x10\x02\x05\x01\x12\x04\xbe\x06\t\x10\n\r\n\x05\x04\x10\x02\x05\x03\ + \x12\x04\xbe\x06\x13\x14\n\r\n\x05\x04\x10\x02\x05\x08\x12\x04\xbe\x06\ + \x15=\n\x10\n\x08\x04\x10\x02\x05\x08\x9c\x08\0\x12\x04\xbe\x06\x16<\n\ + \xb7\x01\n\x04\x04\x10\x02\x06\x12\x04\xc3\x06\x02\x12\x1a\xa8\x01\x20If\ + \x20greater\x20than\x20zero,\x20only\x20the\x20first\x20`limit`\x20rows\ + \x20are\x20yielded.\x20If\x20`limit`\n\x20is\x20zero,\x20the\x20default\ + \x20is\x20no\x20limit.\x20A\x20limit\x20cannot\x20be\x20specified\x20if\ + \n\x20`partition_token`\x20is\x20set.\n\n\r\n\x05\x04\x10\x02\x06\x05\ + \x12\x04\xc3\x06\x02\x07\n\r\n\x05\x04\x10\x02\x06\x01\x12\x04\xc3\x06\ + \x08\r\n\r\n\x05\x04\x10\x02\x06\x03\x12\x04\xc3\x06\x10\x11\n\xf9\x02\n\ + \x04\x04\x10\x02\x07\x12\x04\xcb\x06\x02\x19\x1a\xea\x02\x20If\x20this\ + \x20request\x20is\x20resuming\x20a\x20previously\x20interrupted\x20read,\ + \n\x20`resume_token`\x20should\x20be\x20copied\x20from\x20the\x20last\n\ + \x20[PartialResultSet][google.spanner.v1.PartialResultSet]\x20yielded\ + \x20before\x20the\n\x20interruption.\x20Doing\x20this\x20enables\x20the\ + \x20new\x20read\x20to\x20resume\x20where\x20the\x20last\x20read\n\x20lef\ + t\x20off.\x20The\x20rest\x20of\x20the\x20request\x20parameters\x20must\ + \x20exactly\x20match\x20the\x20request\n\x20that\x20yielded\x20this\x20t\ + oken.\n\n\r\n\x05\x04\x10\x02\x07\x05\x12\x04\xcb\x06\x02\x07\n\r\n\x05\ + \x04\x10\x02\x07\x01\x12\x04\xcb\x06\x08\x14\n\r\n\x05\x04\x10\x02\x07\ + \x03\x12\x04\xcb\x06\x17\x18\n\x99\x02\n\x04\x04\x10\x02\x08\x12\x04\xd1\ + \x06\x02\x1d\x1a\x8a\x02\x20If\x20present,\x20results\x20will\x20be\x20r\ + estricted\x20to\x20the\x20specified\x20partition\n\x20previously\x20crea\ + ted\x20using\x20PartitionRead().\x20\x20\x20\x20There\x20must\x20be\x20a\ + n\x20exact\n\x20match\x20for\x20the\x20values\x20of\x20fields\x20common\ + \x20to\x20this\x20message\x20and\x20the\n\x20PartitionReadRequest\x20mes\ + sage\x20used\x20to\x20create\x20this\x20partition_token.\n\n\r\n\x05\x04\ + \x10\x02\x08\x05\x12\x04\xd1\x06\x02\x07\n\r\n\x05\x04\x10\x02\x08\x01\ + \x12\x04\xd1\x06\x08\x17\n\r\n\x05\x04\x10\x02\x08\x03\x12\x04\xd1\x06\ + \x1a\x1c\n`\n\x02\x04\x11\x12\x06\xd6\x06\0\xdf\x06\x01\x1aR\x20The\x20r\ + equest\x20for\n\x20[BeginTransaction][google.spanner.v1.Spanner.BeginTra\ + nsaction].\n\n\x0b\n\x03\x04\x11\x01\x12\x04\xd6\x06\x08\x1f\nF\n\x04\ + \x04\x11\x02\0\x12\x06\xd8\x06\x02\xdb\x06\x04\x1a6\x20Required.\x20The\ + \x20session\x20in\x20which\x20the\x20transaction\x20runs.\n\n\r\n\x05\ + \x04\x11\x02\0\x05\x12\x04\xd8\x06\x02\x08\n\r\n\x05\x04\x11\x02\0\x01\ + \x12\x04\xd8\x06\t\x10\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xd8\x06\x13\ + \x14\n\x0f\n\x05\x04\x11\x02\0\x08\x12\x06\xd8\x06\x15\xdb\x06\x03\n\x10\ + \n\x08\x04\x11\x02\0\x08\x9c\x08\0\x12\x04\xd9\x06\x04*\n\x0f\n\x07\x04\ + \x11\x02\0\x08\x9f\x08\x12\x04\xda\x06\x04P\n:\n\x04\x04\x11\x02\x01\x12\ + \x04\xde\x06\x02J\x1a,\x20Required.\x20Options\x20for\x20the\x20new\x20t\ + ransaction.\n\n\r\n\x05\x04\x11\x02\x01\x06\x12\x04\xde\x06\x02\x14\n\r\ + \n\x05\x04\x11\x02\x01\x01\x12\x04\xde\x06\x15\x1c\n\r\n\x05\x04\x11\x02\ + \x01\x03\x12\x04\xde\x06\x1f\x20\n\r\n\x05\x04\x11\x02\x01\x08\x12\x04\ + \xde\x06!I\n\x10\n\x08\x04\x11\x02\x01\x08\x9c\x08\0\x12\x04\xde\x06\"H\ + \nK\n\x02\x04\x12\x12\x06\xe2\x06\0\xfe\x06\x01\x1a=\x20The\x20request\ + \x20for\x20[Commit][google.spanner.v1.Spanner.Commit].\n\n\x0b\n\x03\x04\ + \x12\x01\x12\x04\xe2\x06\x08\x15\n\\\n\x04\x04\x12\x02\0\x12\x06\xe4\x06\ + \x02\xe7\x06\x04\x1aL\x20Required.\x20The\x20session\x20in\x20which\x20t\ + he\x20transaction\x20to\x20be\x20committed\x20is\x20running.\n\n\r\n\x05\ + \x04\x12\x02\0\x05\x12\x04\xe4\x06\x02\x08\n\r\n\x05\x04\x12\x02\0\x01\ + \x12\x04\xe4\x06\t\x10\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\xe4\x06\x13\ + \x14\n\x0f\n\x05\x04\x12\x02\0\x08\x12\x06\xe4\x06\x15\xe7\x06\x03\n\x10\ + \n\x08\x04\x12\x02\0\x08\x9c\x08\0\x12\x04\xe5\x06\x04*\n\x0f\n\x07\x04\ + \x12\x02\0\x08\x9f\x08\x12\x04\xe6\x06\x04P\n?\n\x04\x04\x12\x08\0\x12\ + \x06\xea\x06\x02\xf8\x06\x03\x1a/\x20Required.\x20The\x20transaction\x20\ + in\x20which\x20to\x20commit.\n\n\r\n\x05\x04\x12\x08\0\x01\x12\x04\xea\ + \x06\x08\x13\n8\n\x04\x04\x12\x02\x01\x12\x04\xec\x06\x04\x1d\x1a*\x20Co\ + mmit\x20a\x20previously-started\x20transaction.\n\n\r\n\x05\x04\x12\x02\ + \x01\x05\x12\x04\xec\x06\x04\t\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xec\ + \x06\n\x18\n\r\n\x05\x04\x12\x02\x01\x03\x12\x04\xec\x06\x1b\x1c\n\xa4\ + \x04\n\x04\x04\x12\x02\x02\x12\x04\xf7\x06\x042\x1a\x95\x04\x20Execute\ + \x20mutations\x20in\x20a\x20temporary\x20transaction.\x20Note\x20that\ + \x20unlike\n\x20commit\x20of\x20a\x20previously-started\x20transaction,\ + \x20commit\x20with\x20a\n\x20temporary\x20transaction\x20is\x20non-idemp\ + otent.\x20That\x20is,\x20if\x20the\n\x20`CommitRequest`\x20is\x20sent\ + \x20to\x20Cloud\x20Spanner\x20more\x20than\x20once\x20(for\n\x20instance\ + ,\x20due\x20to\x20retries\x20in\x20the\x20application,\x20or\x20in\x20th\ + e\n\x20transport\x20library),\x20it\x20is\x20possible\x20that\x20the\x20\ + mutations\x20are\n\x20executed\x20more\x20than\x20once.\x20If\x20this\ + \x20is\x20undesirable,\x20use\n\x20[BeginTransaction][google.spanner.v1.\ + Spanner.BeginTransaction]\x20and\n\x20[Commit][google.spanner.v1.Spanner\ + .Commit]\x20instead.\n\n\r\n\x05\x04\x12\x02\x02\x06\x12\x04\xf7\x06\x04\ + \x16\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xf7\x06\x17-\n\r\n\x05\x04\ + \x12\x02\x02\x03\x12\x04\xf7\x0601\n\x9b\x01\n\x04\x04\x12\x02\x03\x12\ + \x04\xfd\x06\x02\"\x1a\x8c\x01\x20The\x20mutations\x20to\x20be\x20execut\ + ed\x20when\x20this\x20transaction\x20commits.\x20All\n\x20mutations\x20a\ + re\x20applied\x20atomically,\x20in\x20the\x20order\x20they\x20appear\x20\ + in\n\x20this\x20list.\n\n\r\n\x05\x04\x12\x02\x03\x04\x12\x04\xfd\x06\ + \x02\n\n\r\n\x05\x04\x12\x02\x03\x06\x12\x04\xfd\x06\x0b\x13\n\r\n\x05\ + \x04\x12\x02\x03\x01\x12\x04\xfd\x06\x14\x1d\n\r\n\x05\x04\x12\x02\x03\ + \x03\x12\x04\xfd\x06\x20!\nL\n\x02\x04\x13\x12\x06\x81\x07\0\x84\x07\x01\ + \x1a>\x20The\x20response\x20for\x20[Commit][google.spanner.v1.Spanner.Co\ + mmit].\n\n\x0b\n\x03\x04\x13\x01\x12\x04\x81\x07\x08\x16\nO\n\x04\x04\ + \x13\x02\0\x12\x04\x83\x07\x021\x1aA\x20The\x20Cloud\x20Spanner\x20times\ + tamp\x20at\x20which\x20the\x20transaction\x20committed.\n\n\r\n\x05\x04\ + \x13\x02\0\x06\x12\x04\x83\x07\x02\x1b\n\r\n\x05\x04\x13\x02\0\x01\x12\ + \x04\x83\x07\x1c,\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\x83\x07/0\nO\n\x02\ + \x04\x14\x12\x06\x87\x07\0\x90\x07\x01\x1aA\x20The\x20request\x20for\x20\ + [Rollback][google.spanner.v1.Spanner.Rollback].\n\n\x0b\n\x03\x04\x14\ + \x01\x12\x04\x87\x07\x08\x17\nY\n\x04\x04\x14\x02\0\x12\x06\x89\x07\x02\ + \x8c\x07\x04\x1aI\x20Required.\x20The\x20session\x20in\x20which\x20the\ + \x20transaction\x20to\x20roll\x20back\x20is\x20running.\n\n\r\n\x05\x04\ + \x14\x02\0\x05\x12\x04\x89\x07\x02\x08\n\r\n\x05\x04\x14\x02\0\x01\x12\ + \x04\x89\x07\t\x10\n\r\n\x05\x04\x14\x02\0\x03\x12\x04\x89\x07\x13\x14\n\ + \x0f\n\x05\x04\x14\x02\0\x08\x12\x06\x89\x07\x15\x8c\x07\x03\n\x10\n\x08\ + \x04\x14\x02\0\x08\x9c\x08\0\x12\x04\x8a\x07\x04*\n\x0f\n\x07\x04\x14\ + \x02\0\x08\x9f\x08\x12\x04\x8b\x07\x04P\n7\n\x04\x04\x14\x02\x01\x12\x04\ + \x8f\x07\x02D\x1a)\x20Required.\x20The\x20transaction\x20to\x20roll\x20b\ + ack.\n\n\r\n\x05\x04\x14\x02\x01\x05\x12\x04\x8f\x07\x02\x07\n\r\n\x05\ + \x04\x14\x02\x01\x01\x12\x04\x8f\x07\x08\x16\n\r\n\x05\x04\x14\x02\x01\ + \x03\x12\x04\x8f\x07\x19\x1a\n\r\n\x05\x04\x14\x02\x01\x08\x12\x04\x8f\ + \x07\x1bC\n\x10\n\x08\x04\x14\x02\x01\x08\x9c\x08\0\x12\x04\x8f\x07\x1cB\ + b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(13); + deps.push(super::annotations::file_descriptor().clone()); + deps.push(super::client::file_descriptor().clone()); + deps.push(super::field_behavior::file_descriptor().clone()); + deps.push(super::resource::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::empty::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::struct_::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + deps.push(super::status::file_descriptor().clone()); + deps.push(super::keys::file_descriptor().clone()); + deps.push(super::mutation::file_descriptor().clone()); + deps.push(super::result_set::file_descriptor().clone()); + deps.push(super::transaction::file_descriptor().clone()); + deps.push(super::type_::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(22); + messages.push(CreateSessionRequest::generated_message_descriptor_data()); + messages.push(BatchCreateSessionsRequest::generated_message_descriptor_data()); + messages.push(BatchCreateSessionsResponse::generated_message_descriptor_data()); + messages.push(Session::generated_message_descriptor_data()); + messages.push(GetSessionRequest::generated_message_descriptor_data()); + messages.push(ListSessionsRequest::generated_message_descriptor_data()); + messages.push(ListSessionsResponse::generated_message_descriptor_data()); + messages.push(DeleteSessionRequest::generated_message_descriptor_data()); + messages.push(ExecuteSqlRequest::generated_message_descriptor_data()); + messages.push(ExecuteBatchDmlRequest::generated_message_descriptor_data()); + messages.push(ExecuteBatchDmlResponse::generated_message_descriptor_data()); + messages.push(PartitionOptions::generated_message_descriptor_data()); + messages.push(PartitionQueryRequest::generated_message_descriptor_data()); + messages.push(PartitionReadRequest::generated_message_descriptor_data()); + messages.push(Partition::generated_message_descriptor_data()); + messages.push(PartitionResponse::generated_message_descriptor_data()); + messages.push(ReadRequest::generated_message_descriptor_data()); + messages.push(BeginTransactionRequest::generated_message_descriptor_data()); + messages.push(CommitRequest::generated_message_descriptor_data()); + messages.push(CommitResponse::generated_message_descriptor_data()); + messages.push(RollbackRequest::generated_message_descriptor_data()); + messages.push(execute_batch_dml_request::Statement::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(execute_sql_request::QueryMode::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/spanner_grpc.rs b/googleapis-raw/src/spanner/v1/spanner_grpc.rs index 998d80d..96847c1 100644 --- a/googleapis-raw/src/spanner/v1/spanner_grpc.rs +++ b/googleapis-raw/src/spanner/v1/spanner_grpc.rs @@ -93,7 +93,7 @@ const METHOD_SPANNER_BEGIN_TRANSACTION: ::grpcio::Method = ::grpcio::Method { +const METHOD_SPANNER_COMMIT: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.spanner.v1.Spanner/Commit", req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, @@ -121,13 +121,6 @@ const METHOD_SPANNER_PARTITION_READ: ::grpcio::Method = ::grpcio::Method { - ty: ::grpcio::MethodType::ServerStreaming, - name: "/google.spanner.v1.Spanner/BatchWrite", - req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, - resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, -}; - #[derive(Clone)] pub struct SpannerClient { pub client: ::grpcio::Client, @@ -300,19 +293,19 @@ impl SpannerClient { self.begin_transaction_async_opt(req, ::grpcio::CallOption::default()) } - pub fn commit_opt(&self, req: &super::spanner::CommitRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + pub fn commit_opt(&self, req: &super::spanner::CommitRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { self.client.unary_call(&METHOD_SPANNER_COMMIT, req, opt) } - pub fn commit(&self, req: &super::spanner::CommitRequest) -> ::grpcio::Result { + pub fn commit(&self, req: &super::spanner::CommitRequest) -> ::grpcio::Result { self.commit_opt(req, ::grpcio::CallOption::default()) } - pub fn commit_async_opt(&self, req: &super::spanner::CommitRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + pub fn commit_async_opt(&self, req: &super::spanner::CommitRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.client.unary_call_async(&METHOD_SPANNER_COMMIT, req, opt) } - pub fn commit_async(&self, req: &super::spanner::CommitRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + pub fn commit_async(&self, req: &super::spanner::CommitRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.commit_async_opt(req, ::grpcio::CallOption::default()) } @@ -363,14 +356,6 @@ impl SpannerClient { pub fn partition_read_async(&self, req: &super::spanner::PartitionReadRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.partition_read_async_opt(req, ::grpcio::CallOption::default()) } - - pub fn batch_write_opt(&self, req: &super::spanner::BatchWriteRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.client.server_streaming(&METHOD_SPANNER_BATCH_WRITE, req, opt) - } - - pub fn batch_write(&self, req: &super::spanner::BatchWriteRequest) -> ::grpcio::Result<::grpcio::ClientSStreamReceiver> { - self.batch_write_opt(req, ::grpcio::CallOption::default()) - } pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } @@ -410,7 +395,7 @@ pub trait Spanner { fn begin_transaction(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::BeginTransactionRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn commit(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::CommitRequest, sink: ::grpcio::UnarySink) { + fn commit(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::CommitRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } fn rollback(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::RollbackRequest, sink: ::grpcio::UnarySink) { @@ -422,9 +407,6 @@ pub trait Spanner { fn partition_read(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::PartitionReadRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } - fn batch_write(&mut self, ctx: ::grpcio::RpcContext, _req: super::spanner::BatchWriteRequest, sink: ::grpcio::ServerStreamingSink) { - grpcio::unimplemented_call!(ctx, sink) - } } pub fn create_spanner(s: S) -> ::grpcio::Service { @@ -485,13 +467,9 @@ pub fn create_spanner(s: S) -> ::grpcio::Se builder = builder.add_unary_handler(&METHOD_SPANNER_PARTITION_QUERY, move |ctx, req, resp| { instance.partition_query(ctx, req, resp) }); - let mut instance = s.clone(); + let mut instance = s; builder = builder.add_unary_handler(&METHOD_SPANNER_PARTITION_READ, move |ctx, req, resp| { instance.partition_read(ctx, req, resp) }); - let mut instance = s; - builder = builder.add_server_streaming_handler(&METHOD_SPANNER_BATCH_WRITE, move |ctx, req, resp| { - instance.batch_write(ctx, req, resp) - }); builder.build() } diff --git a/googleapis-raw/src/spanner/v1/transaction.rs b/googleapis-raw/src/spanner/v1/transaction.rs index d788a49..4d8144d 100644 --- a/googleapis-raw/src/spanner/v1/transaction.rs +++ b/googleapis-raw/src/spanner/v1/transaction.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,21 +16,23 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/spanner/v1/transaction.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.spanner.v1.TransactionOptions) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TransactionOptions { // message oneof groups - pub mode: ::std::option::Option, + pub mode: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.TransactionOptions.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TransactionOptions { @@ -38,13 +41,6 @@ impl<'a> ::std::default::Default for &'a TransactionOptions { } } -#[derive(Clone,PartialEq,Debug)] -pub enum TransactionOptions_oneof_mode { - read_write(TransactionOptions_ReadWrite), - partitioned_dml(TransactionOptions_PartitionedDml), - read_only(TransactionOptions_ReadOnly), -} - impl TransactionOptions { pub fn new() -> TransactionOptions { ::std::default::Default::default() @@ -52,196 +48,205 @@ impl TransactionOptions { // .google.spanner.v1.TransactionOptions.ReadWrite read_write = 1; - - pub fn get_read_write(&self) -> &TransactionOptions_ReadWrite { + pub fn read_write(&self) -> &transaction_options::ReadWrite { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(transaction_options::Mode::ReadWrite(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_read_write(&mut self) { self.mode = ::std::option::Option::None; } pub fn has_read_write(&self) -> bool { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(..)) => true, + ::std::option::Option::Some(transaction_options::Mode::ReadWrite(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_read_write(&mut self, v: TransactionOptions_ReadWrite) { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(v)) + pub fn set_read_write(&mut self, v: transaction_options::ReadWrite) { + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadWrite(v)) } // Mutable pointer to the field. - pub fn mut_read_write(&mut self) -> &mut TransactionOptions_ReadWrite { - if let ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(_)) = self.mode { + pub fn mut_read_write(&mut self) -> &mut transaction_options::ReadWrite { + if let ::std::option::Option::Some(transaction_options::Mode::ReadWrite(_)) = self.mode { } else { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(TransactionOptions_ReadWrite::new())); + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadWrite(transaction_options::ReadWrite::new())); } match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(ref mut v)) => v, + ::std::option::Option::Some(transaction_options::Mode::ReadWrite(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_read_write(&mut self) -> TransactionOptions_ReadWrite { + pub fn take_read_write(&mut self) -> transaction_options::ReadWrite { if self.has_read_write() { match self.mode.take() { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(v)) => v, + ::std::option::Option::Some(transaction_options::Mode::ReadWrite(v)) => v, _ => panic!(), } } else { - TransactionOptions_ReadWrite::new() + transaction_options::ReadWrite::new() } } // .google.spanner.v1.TransactionOptions.PartitionedDml partitioned_dml = 3; - - pub fn get_partitioned_dml(&self) -> &TransactionOptions_PartitionedDml { + pub fn partitioned_dml(&self) -> &transaction_options::PartitionedDml { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_partitioned_dml(&mut self) { self.mode = ::std::option::Option::None; } pub fn has_partitioned_dml(&self) -> bool { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(..)) => true, + ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_partitioned_dml(&mut self, v: TransactionOptions_PartitionedDml) { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(v)) + pub fn set_partitioned_dml(&mut self, v: transaction_options::PartitionedDml) { + self.mode = ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(v)) } // Mutable pointer to the field. - pub fn mut_partitioned_dml(&mut self) -> &mut TransactionOptions_PartitionedDml { - if let ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(_)) = self.mode { + pub fn mut_partitioned_dml(&mut self) -> &mut transaction_options::PartitionedDml { + if let ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(_)) = self.mode { } else { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(TransactionOptions_PartitionedDml::new())); + self.mode = ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(transaction_options::PartitionedDml::new())); } match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(ref mut v)) => v, + ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_partitioned_dml(&mut self) -> TransactionOptions_PartitionedDml { + pub fn take_partitioned_dml(&mut self) -> transaction_options::PartitionedDml { if self.has_partitioned_dml() { match self.mode.take() { - ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(v)) => v, + ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(v)) => v, _ => panic!(), } } else { - TransactionOptions_PartitionedDml::new() + transaction_options::PartitionedDml::new() } } // .google.spanner.v1.TransactionOptions.ReadOnly read_only = 2; - - pub fn get_read_only(&self) -> &TransactionOptions_ReadOnly { + pub fn read_only(&self) -> &transaction_options::ReadOnly { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(ref v)) => v, - _ => ::default_instance(), + ::std::option::Option::Some(transaction_options::Mode::ReadOnly(ref v)) => v, + _ => ::default_instance(), } } + pub fn clear_read_only(&mut self) { self.mode = ::std::option::Option::None; } pub fn has_read_only(&self) -> bool { match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(..)) => true, + ::std::option::Option::Some(transaction_options::Mode::ReadOnly(..)) => true, _ => false, } } // Param is passed by value, moved - pub fn set_read_only(&mut self, v: TransactionOptions_ReadOnly) { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(v)) + pub fn set_read_only(&mut self, v: transaction_options::ReadOnly) { + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadOnly(v)) } // Mutable pointer to the field. - pub fn mut_read_only(&mut self) -> &mut TransactionOptions_ReadOnly { - if let ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(_)) = self.mode { + pub fn mut_read_only(&mut self) -> &mut transaction_options::ReadOnly { + if let ::std::option::Option::Some(transaction_options::Mode::ReadOnly(_)) = self.mode { } else { - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(TransactionOptions_ReadOnly::new())); + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadOnly(transaction_options::ReadOnly::new())); } match self.mode { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(ref mut v)) => v, + ::std::option::Option::Some(transaction_options::Mode::ReadOnly(ref mut v)) => v, _ => panic!(), } } // Take field - pub fn take_read_only(&mut self) -> TransactionOptions_ReadOnly { + pub fn take_read_only(&mut self) -> transaction_options::ReadOnly { if self.has_read_only() { match self.mode.take() { - ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(v)) => v, + ::std::option::Option::Some(transaction_options::Mode::ReadOnly(v)) => v, _ => panic!(), } } else { - TransactionOptions_ReadOnly::new() - } + transaction_options::ReadOnly::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, transaction_options::ReadWrite>( + "read_write", + TransactionOptions::has_read_write, + TransactionOptions::read_write, + TransactionOptions::mut_read_write, + TransactionOptions::set_read_write, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, transaction_options::PartitionedDml>( + "partitioned_dml", + TransactionOptions::has_partitioned_dml, + TransactionOptions::partitioned_dml, + TransactionOptions::mut_partitioned_dml, + TransactionOptions::set_partitioned_dml, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, transaction_options::ReadOnly>( + "read_only", + TransactionOptions::has_read_only, + TransactionOptions::read_only, + TransactionOptions::mut_read_only, + TransactionOptions::set_read_only, + )); + oneofs.push(transaction_options::Mode::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TransactionOptions", + fields, + oneofs, + ) } } impl ::protobuf::Message for TransactionOptions { + const NAME: &'static str = "TransactionOptions"; + fn is_initialized(&self) -> bool { - if let Some(TransactionOptions_oneof_mode::read_write(ref v)) = self.mode { - if !v.is_initialized() { - return false; - } - } - if let Some(TransactionOptions_oneof_mode::partitioned_dml(ref v)) = self.mode { - if !v.is_initialized() { - return false; - } - } - if let Some(TransactionOptions_oneof_mode::read_only(ref v)) = self.mode { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_write(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadWrite(is.read_message()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::partitioned_dml(is.read_message()?)); + 26 => { + self.mode = ::std::option::Option::Some(transaction_options::Mode::PartitionedDml(is.read_message()?)); }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.mode = ::std::option::Option::Some(TransactionOptions_oneof_mode::read_only(is.read_message()?)); + 18 => { + self.mode = ::std::option::Option::Some(transaction_options::Mode::ReadOnly(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -250,976 +255,840 @@ impl ::protobuf::Message for TransactionOptions { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.mode { match v { - &TransactionOptions_oneof_mode::read_write(ref v) => { + &transaction_options::Mode::ReadWrite(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &TransactionOptions_oneof_mode::partitioned_dml(ref v) => { + &transaction_options::Mode::PartitionedDml(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &TransactionOptions_oneof_mode::read_only(ref v) => { + &transaction_options::Mode::ReadOnly(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.mode { match v { - &TransactionOptions_oneof_mode::read_write(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &transaction_options::Mode::ReadWrite(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }, - &TransactionOptions_oneof_mode::partitioned_dml(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &transaction_options::Mode::PartitionedDml(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }, - &TransactionOptions_oneof_mode::read_only(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &transaction_options::Mode::ReadOnly(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TransactionOptions { TransactionOptions::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TransactionOptions_ReadWrite>( - "read_write", - TransactionOptions::has_read_write, - TransactionOptions::get_read_write, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TransactionOptions_PartitionedDml>( - "partitioned_dml", - TransactionOptions::has_partitioned_dml, - TransactionOptions::get_partitioned_dml, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TransactionOptions_ReadOnly>( - "read_only", - TransactionOptions::has_read_only, - TransactionOptions::get_read_only, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TransactionOptions", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.mode = ::std::option::Option::None; + self.mode = ::std::option::Option::None; + self.mode = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static TransactionOptions { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TransactionOptions::new) + static instance: TransactionOptions = TransactionOptions { + mode: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TransactionOptions { - fn clear(&mut self) { - self.mode = ::std::option::Option::None; - self.mode = ::std::option::Option::None; - self.mode = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TransactionOptions { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TransactionOptions").unwrap()).clone() } } -impl ::std::fmt::Debug for TransactionOptions { +impl ::std::fmt::Display for TransactionOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TransactionOptions { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TransactionOptions_ReadWrite { - // message fields - pub read_lock_mode: TransactionOptions_ReadWrite_ReadLockMode, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TransactionOptions_ReadWrite { - fn default() -> &'a TransactionOptions_ReadWrite { - ::default_instance() - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -impl TransactionOptions_ReadWrite { - pub fn new() -> TransactionOptions_ReadWrite { - ::std::default::Default::default() - } - - // .google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode read_lock_mode = 1; +/// Nested message and enums of message `TransactionOptions` +pub mod transaction_options { - - pub fn get_read_lock_mode(&self) -> TransactionOptions_ReadWrite_ReadLockMode { - self.read_lock_mode - } - pub fn clear_read_lock_mode(&mut self) { - self.read_lock_mode = TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED; + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.TransactionOptions.mode) + pub enum Mode { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.read_write) + ReadWrite(ReadWrite), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.partitioned_dml) + PartitionedDml(PartitionedDml), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.read_only) + ReadOnly(ReadOnly), } - // Param is passed by value, moved - pub fn set_read_lock_mode(&mut self, v: TransactionOptions_ReadWrite_ReadLockMode) { - self.read_lock_mode = v; - } -} - -impl ::protobuf::Message for TransactionOptions_ReadWrite { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.read_lock_mode, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) + impl ::protobuf::Oneof for Mode { } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.read_lock_mode != TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.read_lock_mode); + impl ::protobuf::OneofFull for Mode { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("mode").unwrap()).clone() } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.read_lock_mode != TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.read_lock_mode))?; + impl Mode { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("mode") } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + /// Message type to initiate a read-write transaction. Currently this + /// transaction type has no options. + // @@protoc_insertion_point(message:google.spanner.v1.TransactionOptions.ReadWrite) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ReadWrite { + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.TransactionOptions.ReadWrite.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a ReadWrite { + fn default() -> &'a ReadWrite { + ::default_instance() + } } - fn new() -> TransactionOptions_ReadWrite { - TransactionOptions_ReadWrite::new() - } + impl ReadWrite { + pub fn new() -> ReadWrite { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "read_lock_mode", - |m: &TransactionOptions_ReadWrite| { &m.read_lock_mode }, - |m: &mut TransactionOptions_ReadWrite| { &mut m.read_lock_mode }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "TransactionOptions.ReadWrite", fields, - file_descriptor_proto() + oneofs, ) - }) - } - - fn default_instance() -> &'static TransactionOptions_ReadWrite { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TransactionOptions_ReadWrite::new) - } -} - -impl ::protobuf::Clear for TransactionOptions_ReadWrite { - fn clear(&mut self) { - self.read_lock_mode = TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TransactionOptions_ReadWrite { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for TransactionOptions_ReadWrite { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TransactionOptions_ReadWrite_ReadLockMode { - READ_LOCK_MODE_UNSPECIFIED = 0, - PESSIMISTIC = 1, - OPTIMISTIC = 2, -} - -impl ::protobuf::ProtobufEnum for TransactionOptions_ReadWrite_ReadLockMode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(TransactionOptions_ReadWrite_ReadLockMode::PESSIMISTIC), - 2 => ::std::option::Option::Some(TransactionOptions_ReadWrite_ReadLockMode::OPTIMISTIC), - _ => ::std::option::Option::None } } - fn values() -> &'static [Self] { - static values: &'static [TransactionOptions_ReadWrite_ReadLockMode] = &[ - TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED, - TransactionOptions_ReadWrite_ReadLockMode::PESSIMISTIC, - TransactionOptions_ReadWrite_ReadLockMode::OPTIMISTIC, - ]; - values - } + impl ::protobuf::Message for ReadWrite { + const NAME: &'static str = "ReadWrite"; - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TransactionOptions.ReadWrite.ReadLockMode", file_descriptor_proto()) - }) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::std::marker::Copy for TransactionOptions_ReadWrite_ReadLockMode { -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -impl ::std::default::Default for TransactionOptions_ReadWrite_ReadLockMode { - fn default() -> Self { - TransactionOptions_ReadWrite_ReadLockMode::READ_LOCK_MODE_UNSPECIFIED - } -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl ::protobuf::reflect::ProtobufValue for TransactionOptions_ReadWrite_ReadLockMode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -#[derive(PartialEq,Clone,Default)] -pub struct TransactionOptions_PartitionedDml { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl<'a> ::std::default::Default for &'a TransactionOptions_PartitionedDml { - fn default() -> &'a TransactionOptions_PartitionedDml { - ::default_instance() - } -} + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } -impl TransactionOptions_PartitionedDml { - pub fn new() -> TransactionOptions_PartitionedDml { - ::std::default::Default::default() - } -} + fn new() -> ReadWrite { + ReadWrite::new() + } -impl ::protobuf::Message for TransactionOptions_PartitionedDml { - fn is_initialized(&self) -> bool { - true - } + fn clear(&mut self) { + self.special_fields.clear(); + } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, + fn default_instance() -> &'static ReadWrite { + static instance: ReadWrite = ReadWrite { + special_fields: ::protobuf::SpecialFields::new(), }; + &instance } - ::std::result::Result::Ok(()) } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() + impl ::protobuf::MessageFull for ReadWrite { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("TransactionOptions.ReadWrite").unwrap()).clone() + } } - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + impl ::std::fmt::Display for ReadWrite { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + impl ::protobuf::reflect::ProtobufValue for ReadWrite { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + /// Message type to initiate a Partitioned DML transaction. + // @@protoc_insertion_point(message:google.spanner.v1.TransactionOptions.PartitionedDml) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct PartitionedDml { + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.TransactionOptions.PartitionedDml.special_fields) + pub special_fields: ::protobuf::SpecialFields, } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + impl<'a> ::std::default::Default for &'a PartitionedDml { + fn default() -> &'a PartitionedDml { + ::default_instance() + } } - fn new() -> TransactionOptions_PartitionedDml { - TransactionOptions_PartitionedDml::new() - } + impl PartitionedDml { + pub fn new() -> PartitionedDml { + ::std::default::Default::default() + } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(0); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "TransactionOptions.PartitionedDml", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static TransactionOptions_PartitionedDml { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TransactionOptions_PartitionedDml::new) - } -} + impl ::protobuf::Message for PartitionedDml { + const NAME: &'static str = "PartitionedDml"; -impl ::protobuf::Clear for TransactionOptions_PartitionedDml { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TransactionOptions_PartitionedDml { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} + fn is_initialized(&self) -> bool { + true + } -impl ::protobuf::reflect::ProtobufValue for TransactionOptions_PartitionedDml { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } -#[derive(PartialEq,Clone,Default)] -pub struct TransactionOptions_ReadOnly { - // message fields - pub return_read_timestamp: bool, - // message oneof groups - pub timestamp_bound: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } -impl<'a> ::std::default::Default for &'a TransactionOptions_ReadOnly { - fn default() -> &'a TransactionOptions_ReadOnly { - ::default_instance() - } -} + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } -#[derive(Clone,PartialEq,Debug)] -pub enum TransactionOptions_ReadOnly_oneof_timestamp_bound { - strong(bool), - min_read_timestamp(::protobuf::well_known_types::Timestamp), - max_staleness(::protobuf::well_known_types::Duration), - read_timestamp(::protobuf::well_known_types::Timestamp), - exact_staleness(::protobuf::well_known_types::Duration), -} + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } -impl TransactionOptions_ReadOnly { - pub fn new() -> TransactionOptions_ReadOnly { - ::std::default::Default::default() - } + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } - // bool strong = 1; + fn new() -> PartitionedDml { + PartitionedDml::new() + } + fn clear(&mut self) { + self.special_fields.clear(); + } - pub fn get_strong(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(v)) => v, - _ => false, + fn default_instance() -> &'static PartitionedDml { + static instance: PartitionedDml = PartitionedDml { + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } - pub fn clear_strong(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - } - pub fn has_strong(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(..)) => true, - _ => false, + impl ::protobuf::MessageFull for PartitionedDml { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("TransactionOptions.PartitionedDml").unwrap()).clone() } } - // Param is passed by value, moved - pub fn set_strong(&mut self, v: bool) { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(v)) + impl ::std::fmt::Display for PartitionedDml { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } } - // .google.protobuf.Timestamp min_read_timestamp = 2; + impl ::protobuf::reflect::ProtobufValue for PartitionedDml { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } + /// Message type to initiate a read-only transaction. + // @@protoc_insertion_point(message:google.spanner.v1.TransactionOptions.ReadOnly) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ReadOnly { + // message fields + /// If true, the Cloud Spanner-selected read timestamp is included in + /// the [Transaction][google.spanner.v1.Transaction] message that describes the transaction. + // @@protoc_insertion_point(field:google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp) + pub return_read_timestamp: bool, + // message oneof groups + pub timestamp_bound: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.TransactionOptions.ReadOnly.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } - pub fn get_min_read_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), + impl<'a> ::std::default::Default for &'a ReadOnly { + fn default() -> &'a ReadOnly { + ::default_instance() } } - pub fn clear_min_read_timestamp(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - } - pub fn has_min_read_timestamp(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(..)) => true, - _ => false, + impl ReadOnly { + pub fn new() -> ReadOnly { + ::std::default::Default::default() } - } - // Param is passed by value, moved - pub fn set_min_read_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(v)) - } + // bool strong = 1; - // Mutable pointer to the field. - pub fn mut_min_read_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(_)) = self.timestamp_bound { - } else { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(::protobuf::well_known_types::Timestamp::new())); + pub fn strong(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::Strong(v)) => v, + _ => false, + } } - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(ref mut v)) => v, - _ => panic!(), + + pub fn clear_strong(&mut self) { + self.timestamp_bound = ::std::option::Option::None; } - } - // Take field - pub fn take_min_read_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_min_read_timestamp() { - match self.timestamp_bound.take() { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(v)) => v, - _ => panic!(), + pub fn has_strong(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::Strong(..)) => true, + _ => false, } - } else { - ::protobuf::well_known_types::Timestamp::new() } - } - // .google.protobuf.Duration max_staleness = 3; + // Param is passed by value, moved + pub fn set_strong(&mut self, v: bool) { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::Strong(v)) + } + // .google.protobuf.Timestamp min_read_timestamp = 2; - pub fn get_max_staleness(&self) -> &::protobuf::well_known_types::Duration { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(ref v)) => v, - _ => <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance(), + pub fn min_read_timestamp(&self) -> &::protobuf::well_known_types::timestamp::Timestamp { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(ref v)) => v, + _ => <::protobuf::well_known_types::timestamp::Timestamp as ::protobuf::Message>::default_instance(), + } } - } - pub fn clear_max_staleness(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - } - pub fn has_max_staleness(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(..)) => true, - _ => false, + pub fn clear_min_read_timestamp(&mut self) { + self.timestamp_bound = ::std::option::Option::None; } - } - // Param is passed by value, moved - pub fn set_max_staleness(&mut self, v: ::protobuf::well_known_types::Duration) { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(v)) - } - - // Mutable pointer to the field. - pub fn mut_max_staleness(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if let ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(_)) = self.timestamp_bound { - } else { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(::protobuf::well_known_types::Duration::new())); + pub fn has_min_read_timestamp(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(..)) => true, + _ => false, + } } - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_min_read_timestamp(&mut self, v: ::protobuf::well_known_types::timestamp::Timestamp) { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(v)) } - } - // Take field - pub fn take_max_staleness(&mut self) -> ::protobuf::well_known_types::Duration { - if self.has_max_staleness() { - match self.timestamp_bound.take() { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(v)) => v, + // Mutable pointer to the field. + pub fn mut_min_read_timestamp(&mut self) -> &mut ::protobuf::well_known_types::timestamp::Timestamp { + if let ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(_)) = self.timestamp_bound { + } else { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(::protobuf::well_known_types::timestamp::Timestamp::new())); + } + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(ref mut v)) => v, _ => panic!(), } - } else { - ::protobuf::well_known_types::Duration::new() } - } - // .google.protobuf.Timestamp read_timestamp = 4; + // Take field + pub fn take_min_read_timestamp(&mut self) -> ::protobuf::well_known_types::timestamp::Timestamp { + if self.has_min_read_timestamp() { + match self.timestamp_bound.take() { + ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::timestamp::Timestamp::new() + } + } + // .google.protobuf.Duration max_staleness = 3; - pub fn get_read_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(ref v)) => v, - _ => <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance(), + pub fn max_staleness(&self) -> &::protobuf::well_known_types::duration::Duration { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(ref v)) => v, + _ => <::protobuf::well_known_types::duration::Duration as ::protobuf::Message>::default_instance(), + } } - } - pub fn clear_read_timestamp(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - } - pub fn has_read_timestamp(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(..)) => true, - _ => false, + pub fn clear_max_staleness(&mut self) { + self.timestamp_bound = ::std::option::Option::None; } - } - // Param is passed by value, moved - pub fn set_read_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(v)) - } - - // Mutable pointer to the field. - pub fn mut_read_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if let ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(_)) = self.timestamp_bound { - } else { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(::protobuf::well_known_types::Timestamp::new())); + pub fn has_max_staleness(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(..)) => true, + _ => false, + } } - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_max_staleness(&mut self, v: ::protobuf::well_known_types::duration::Duration) { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(v)) } - } - // Take field - pub fn take_read_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - if self.has_read_timestamp() { - match self.timestamp_bound.take() { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(v)) => v, + // Mutable pointer to the field. + pub fn mut_max_staleness(&mut self) -> &mut ::protobuf::well_known_types::duration::Duration { + if let ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(_)) = self.timestamp_bound { + } else { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(::protobuf::well_known_types::duration::Duration::new())); + } + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(ref mut v)) => v, _ => panic!(), } - } else { - ::protobuf::well_known_types::Timestamp::new() } - } - // .google.protobuf.Duration exact_staleness = 5; + // Take field + pub fn take_max_staleness(&mut self) -> ::protobuf::well_known_types::duration::Duration { + if self.has_max_staleness() { + match self.timestamp_bound.take() { + ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::duration::Duration::new() + } + } + // .google.protobuf.Timestamp read_timestamp = 4; - pub fn get_exact_staleness(&self) -> &::protobuf::well_known_types::Duration { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(ref v)) => v, - _ => <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance(), + pub fn read_timestamp(&self) -> &::protobuf::well_known_types::timestamp::Timestamp { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(ref v)) => v, + _ => <::protobuf::well_known_types::timestamp::Timestamp as ::protobuf::Message>::default_instance(), + } } - } - pub fn clear_exact_staleness(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - } - pub fn has_exact_staleness(&self) -> bool { - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(..)) => true, - _ => false, + pub fn clear_read_timestamp(&mut self) { + self.timestamp_bound = ::std::option::Option::None; } - } - - // Param is passed by value, moved - pub fn set_exact_staleness(&mut self, v: ::protobuf::well_known_types::Duration) { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(v)) - } - // Mutable pointer to the field. - pub fn mut_exact_staleness(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if let ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(_)) = self.timestamp_bound { - } else { - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(::protobuf::well_known_types::Duration::new())); + pub fn has_read_timestamp(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(..)) => true, + _ => false, + } } - match self.timestamp_bound { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(ref mut v)) => v, - _ => panic!(), + + // Param is passed by value, moved + pub fn set_read_timestamp(&mut self, v: ::protobuf::well_known_types::timestamp::Timestamp) { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(v)) } - } - // Take field - pub fn take_exact_staleness(&mut self) -> ::protobuf::well_known_types::Duration { - if self.has_exact_staleness() { - match self.timestamp_bound.take() { - ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(v)) => v, + // Mutable pointer to the field. + pub fn mut_read_timestamp(&mut self) -> &mut ::protobuf::well_known_types::timestamp::Timestamp { + if let ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(_)) = self.timestamp_bound { + } else { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(::protobuf::well_known_types::timestamp::Timestamp::new())); + } + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(ref mut v)) => v, _ => panic!(), } - } else { - ::protobuf::well_known_types::Duration::new() } - } - - // bool return_read_timestamp = 6; - - pub fn get_return_read_timestamp(&self) -> bool { - self.return_read_timestamp - } - pub fn clear_return_read_timestamp(&mut self) { - self.return_read_timestamp = false; - } - - // Param is passed by value, moved - pub fn set_return_read_timestamp(&mut self, v: bool) { - self.return_read_timestamp = v; - } -} - -impl ::protobuf::Message for TransactionOptions_ReadOnly { - fn is_initialized(&self) -> bool { - if let Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(ref v)) = self.timestamp_bound { - if !v.is_initialized() { - return false; + // Take field + pub fn take_read_timestamp(&mut self) -> ::protobuf::well_known_types::timestamp::Timestamp { + if self.has_read_timestamp() { + match self.timestamp_bound.take() { + ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::timestamp::Timestamp::new() } } - if let Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(ref v)) = self.timestamp_bound { - if !v.is_initialized() { - return false; + + // .google.protobuf.Duration exact_staleness = 5; + + pub fn exact_staleness(&self) -> &::protobuf::well_known_types::duration::Duration { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(ref v)) => v, + _ => <::protobuf::well_known_types::duration::Duration as ::protobuf::Message>::default_instance(), } } - if let Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(ref v)) = self.timestamp_bound { - if !v.is_initialized() { - return false; - } + + pub fn clear_exact_staleness(&mut self) { + self.timestamp_bound = ::std::option::Option::None; } - if let Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(ref v)) = self.timestamp_bound { - if !v.is_initialized() { - return false; + + pub fn has_exact_staleness(&self) -> bool { + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(..)) => true, + _ => false, } } - true - } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(is.read_bool()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(is.read_message()?)); - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(is.read_message()?)); - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(is.read_message()?)); - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.timestamp_bound = ::std::option::Option::Some(TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(is.read_message()?)); - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.return_read_timestamp = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; + // Param is passed by value, moved + pub fn set_exact_staleness(&mut self, v: ::protobuf::well_known_types::duration::Duration) { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(v)) } - ::std::result::Result::Ok(()) - } - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.return_read_timestamp != false { - my_size += 2; - } - if let ::std::option::Option::Some(ref v) = self.timestamp_bound { - match v { - &TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(v) => { - my_size += 2; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; + // Mutable pointer to the field. + pub fn mut_exact_staleness(&mut self) -> &mut ::protobuf::well_known_types::duration::Duration { + if let ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(_)) = self.timestamp_bound { + } else { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(::protobuf::well_known_types::duration::Duration::new())); + } + match self.timestamp_bound { + ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(ref mut v)) => v, + _ => panic!(), + } } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.return_read_timestamp != false { - os.write_bool(6, self.return_read_timestamp)?; - } - if let ::std::option::Option::Some(ref v) = self.timestamp_bound { - match v { - &TransactionOptions_ReadOnly_oneof_timestamp_bound::strong(v) => { - os.write_bool(1, v)?; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::min_read_timestamp(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::max_staleness(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::read_timestamp(ref v) => { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &TransactionOptions_ReadOnly_oneof_timestamp_bound::exact_staleness(ref v) => { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; + // Take field + pub fn take_exact_staleness(&mut self) -> ::protobuf::well_known_types::duration::Duration { + if self.has_exact_staleness() { + match self.timestamp_bound.take() { + ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(v)) => v, + _ => panic!(), + } + } else { + ::protobuf::well_known_types::duration::Duration::new() + } } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> TransactionOptions_ReadOnly { - TransactionOptions_ReadOnly::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>( + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( "strong", - TransactionOptions_ReadOnly::has_strong, - TransactionOptions_ReadOnly::get_strong, + ReadOnly::has_strong, + ReadOnly::strong, + ReadOnly::set_strong, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( "min_read_timestamp", - TransactionOptions_ReadOnly::has_min_read_timestamp, - TransactionOptions_ReadOnly::get_min_read_timestamp, + ReadOnly::has_min_read_timestamp, + ReadOnly::min_read_timestamp, + ReadOnly::mut_min_read_timestamp, + ReadOnly::set_min_read_timestamp, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Duration>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::duration::Duration>( "max_staleness", - TransactionOptions_ReadOnly::has_max_staleness, - TransactionOptions_ReadOnly::get_max_staleness, + ReadOnly::has_max_staleness, + ReadOnly::max_staleness, + ReadOnly::mut_max_staleness, + ReadOnly::set_max_staleness, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Timestamp>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( "read_timestamp", - TransactionOptions_ReadOnly::has_read_timestamp, - TransactionOptions_ReadOnly::get_read_timestamp, + ReadOnly::has_read_timestamp, + ReadOnly::read_timestamp, + ReadOnly::mut_read_timestamp, + ReadOnly::set_read_timestamp, )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Duration>( + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ::protobuf::well_known_types::duration::Duration>( "exact_staleness", - TransactionOptions_ReadOnly::has_exact_staleness, - TransactionOptions_ReadOnly::get_exact_staleness, + ReadOnly::has_exact_staleness, + ReadOnly::exact_staleness, + ReadOnly::mut_exact_staleness, + ReadOnly::set_exact_staleness, )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "return_read_timestamp", - |m: &TransactionOptions_ReadOnly| { &m.return_read_timestamp }, - |m: &mut TransactionOptions_ReadOnly| { &mut m.return_read_timestamp }, + |m: &ReadOnly| { &m.return_read_timestamp }, + |m: &mut ReadOnly| { &mut m.return_read_timestamp }, )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( + oneofs.push(read_only::Timestamp_bound::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "TransactionOptions.ReadOnly", fields, - file_descriptor_proto() + oneofs, ) - }) + } } - fn default_instance() -> &'static TransactionOptions_ReadOnly { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TransactionOptions_ReadOnly::new) + impl ::protobuf::Message for ReadOnly { + const NAME: &'static str = "ReadOnly"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::Strong(is.read_bool()?)); + }, + 18 => { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MinReadTimestamp(is.read_message()?)); + }, + 26 => { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::MaxStaleness(is.read_message()?)); + }, + 34 => { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ReadTimestamp(is.read_message()?)); + }, + 42 => { + self.timestamp_bound = ::std::option::Option::Some(read_only::Timestamp_bound::ExactStaleness(is.read_message()?)); + }, + 48 => { + self.return_read_timestamp = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.return_read_timestamp != false { + my_size += 1 + 1; + } + if let ::std::option::Option::Some(ref v) = self.timestamp_bound { + match v { + &read_only::Timestamp_bound::Strong(v) => { + my_size += 1 + 1; + }, + &read_only::Timestamp_bound::MinReadTimestamp(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &read_only::Timestamp_bound::MaxStaleness(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &read_only::Timestamp_bound::ReadTimestamp(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + &read_only::Timestamp_bound::ExactStaleness(ref v) => { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.return_read_timestamp != false { + os.write_bool(6, self.return_read_timestamp)?; + } + if let ::std::option::Option::Some(ref v) = self.timestamp_bound { + match v { + &read_only::Timestamp_bound::Strong(v) => { + os.write_bool(1, v)?; + }, + &read_only::Timestamp_bound::MinReadTimestamp(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }, + &read_only::Timestamp_bound::MaxStaleness(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + }, + &read_only::Timestamp_bound::ReadTimestamp(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + }, + &read_only::Timestamp_bound::ExactStaleness(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> ReadOnly { + ReadOnly::new() + } + + fn clear(&mut self) { + self.timestamp_bound = ::std::option::Option::None; + self.timestamp_bound = ::std::option::Option::None; + self.timestamp_bound = ::std::option::Option::None; + self.timestamp_bound = ::std::option::Option::None; + self.timestamp_bound = ::std::option::Option::None; + self.return_read_timestamp = false; + self.special_fields.clear(); + } + + fn default_instance() -> &'static ReadOnly { + static instance: ReadOnly = ReadOnly { + return_read_timestamp: false, + timestamp_bound: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } } -} -impl ::protobuf::Clear for TransactionOptions_ReadOnly { - fn clear(&mut self) { - self.timestamp_bound = ::std::option::Option::None; - self.timestamp_bound = ::std::option::Option::None; - self.timestamp_bound = ::std::option::Option::None; - self.timestamp_bound = ::std::option::Option::None; - self.timestamp_bound = ::std::option::Option::None; - self.return_read_timestamp = false; - self.unknown_fields.clear(); + impl ::protobuf::MessageFull for ReadOnly { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("TransactionOptions.ReadOnly").unwrap()).clone() + } } -} -impl ::std::fmt::Debug for TransactionOptions_ReadOnly { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) + impl ::std::fmt::Display for ReadOnly { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + + impl ::protobuf::reflect::ProtobufValue for ReadOnly { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -} -impl ::protobuf::reflect::ProtobufValue for TransactionOptions_ReadOnly { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + /// Nested message and enums of message `ReadOnly` + pub mod read_only { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.TransactionOptions.ReadOnly.timestamp_bound) + pub enum Timestamp_bound { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.ReadOnly.strong) + Strong(bool), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp) + MinReadTimestamp(::protobuf::well_known_types::timestamp::Timestamp), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.ReadOnly.max_staleness) + MaxStaleness(::protobuf::well_known_types::duration::Duration), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.ReadOnly.read_timestamp) + ReadTimestamp(::protobuf::well_known_types::timestamp::Timestamp), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness) + ExactStaleness(::protobuf::well_known_types::duration::Duration), + } + + impl ::protobuf::Oneof for Timestamp_bound { + } + + impl ::protobuf::OneofFull for Timestamp_bound { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("timestamp_bound").unwrap()).clone() + } + } + + impl Timestamp_bound { + pub(in super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("timestamp_bound") + } + } } } -#[derive(PartialEq,Clone,Default)] +/// A transaction. +// @@protoc_insertion_point(message:google.spanner.v1.Transaction) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Transaction { // message fields + /// `id` may be used to identify the transaction in subsequent + /// [Read][google.spanner.v1.Spanner.Read], + /// [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], + /// [Commit][google.spanner.v1.Spanner.Commit], or + /// [Rollback][google.spanner.v1.Spanner.Rollback] calls. + /// + /// Single-use read-only transactions do not have IDs, because + /// single-use transactions do not support multiple requests. + // @@protoc_insertion_point(field:google.spanner.v1.Transaction.id) pub id: ::std::vec::Vec, - pub read_timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, + /// For snapshot read-only transactions, the read timestamp chosen + /// for the transaction. Not returned by default: see + /// [TransactionOptions.ReadOnly.return_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp]. + /// + /// A timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. + /// Example: `"2014-10-02T15:01:23.045123456Z"`. + // @@protoc_insertion_point(field:google.spanner.v1.Transaction.read_timestamp) + pub read_timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.Transaction.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Transaction { @@ -1233,88 +1102,45 @@ impl Transaction { ::std::default::Default::default() } - // bytes id = 1; - - - pub fn get_id(&self) -> &[u8] { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::vec::Vec) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::vec::Vec { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.id, ::std::vec::Vec::new()) - } - - // .google.protobuf.Timestamp read_timestamp = 2; - - - pub fn get_read_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.read_timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_read_timestamp(&mut self) { - self.read_timestamp.clear(); - } - - pub fn has_read_timestamp(&self) -> bool { - self.read_timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_read_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.read_timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_read_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.read_timestamp.is_none() { - self.read_timestamp.set_default(); - } - self.read_timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_read_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.read_timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "id", + |m: &Transaction| { &m.id }, + |m: &mut Transaction| { &mut m.id }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>( + "read_timestamp", + |m: &Transaction| { &m.read_timestamp }, + |m: &mut Transaction| { &mut m.read_timestamp }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Transaction", + fields, + oneofs, + ) } } impl ::protobuf::Message for Transaction { + const NAME: &'static str = "Transaction"; + fn is_initialized(&self) -> bool { - for v in &self.read_timestamp { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.id)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.id = is.read_bytes()?; }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.read_timestamp)?; + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.read_timestamp)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1323,118 +1149,89 @@ impl ::protobuf::Message for Transaction { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.id.is_empty() { my_size += ::protobuf::rt::bytes_size(1, &self.id); } - if let Some(ref v) = self.read_timestamp.as_ref() { + if let Some(v) = self.read_timestamp.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.id.is_empty() { os.write_bytes(1, &self.id)?; } - if let Some(ref v) = self.read_timestamp.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.read_timestamp.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Transaction { Transaction::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "id", - |m: &Transaction| { &m.id }, - |m: &mut Transaction| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "read_timestamp", - |m: &Transaction| { &m.read_timestamp }, - |m: &mut Transaction| { &mut m.read_timestamp }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Transaction", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.id.clear(); + self.read_timestamp.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Transaction { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Transaction::new) + static instance: Transaction = Transaction { + id: ::std::vec::Vec::new(), + read_timestamp: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Transaction { - fn clear(&mut self) { - self.id.clear(); - self.read_timestamp.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Transaction { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Transaction").unwrap()).clone() } } -impl ::std::fmt::Debug for Transaction { +impl ::std::fmt::Display for Transaction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Transaction { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -#[derive(PartialEq,Clone,Default)] +/// This message is used to select the transaction in which a +/// [Read][google.spanner.v1.Spanner.Read] or +/// [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] call runs. +/// +/// See [TransactionOptions][google.spanner.v1.TransactionOptions] for more information about transactions. +// @@protoc_insertion_point(message:google.spanner.v1.TransactionSelector) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TransactionSelector { // message oneof groups - pub selector: ::std::option::Option, + pub selector: ::std::option::Option, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.spanner.v1.TransactionSelector.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TransactionSelector { @@ -1443,13 +1240,6 @@ impl<'a> ::std::default::Default for &'a TransactionSelector { } } -#[derive(Clone,PartialEq,Debug)] -pub enum TransactionSelector_oneof_selector { - single_use(TransactionOptions), - id(::std::vec::Vec), - begin(TransactionOptions), -} - impl TransactionSelector { pub fn new() -> TransactionSelector { ::std::default::Default::default() @@ -1457,37 +1247,37 @@ impl TransactionSelector { // .google.spanner.v1.TransactionOptions single_use = 1; - - pub fn get_single_use(&self) -> &TransactionOptions { + pub fn single_use(&self) -> &TransactionOptions { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(ref v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::SingleUse(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_single_use(&mut self) { self.selector = ::std::option::Option::None; } pub fn has_single_use(&self) -> bool { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(..)) => true, + ::std::option::Option::Some(transaction_selector::Selector::SingleUse(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_single_use(&mut self, v: TransactionOptions) { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(v)) + self.selector = ::std::option::Option::Some(transaction_selector::Selector::SingleUse(v)) } // Mutable pointer to the field. pub fn mut_single_use(&mut self) -> &mut TransactionOptions { - if let ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(_)) = self.selector { + if let ::std::option::Option::Some(transaction_selector::Selector::SingleUse(_)) = self.selector { } else { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(TransactionOptions::new())); + self.selector = ::std::option::Option::Some(transaction_selector::Selector::SingleUse(TransactionOptions::new())); } match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(ref mut v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::SingleUse(ref mut v)) => v, _ => panic!(), } } @@ -1496,7 +1286,7 @@ impl TransactionSelector { pub fn take_single_use(&mut self) -> TransactionOptions { if self.has_single_use() { match self.selector.take() { - ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::SingleUse(v)) => v, _ => panic!(), } } else { @@ -1506,37 +1296,37 @@ impl TransactionSelector { // bytes id = 2; - - pub fn get_id(&self) -> &[u8] { + pub fn id(&self) -> &[u8] { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::id(ref v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Id(ref v)) => v, _ => &[], } } + pub fn clear_id(&mut self) { self.selector = ::std::option::Option::None; } pub fn has_id(&self) -> bool { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::id(..)) => true, + ::std::option::Option::Some(transaction_selector::Selector::Id(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_id(&mut self, v: ::std::vec::Vec) { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::id(v)) + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Id(v)) } // Mutable pointer to the field. pub fn mut_id(&mut self) -> &mut ::std::vec::Vec { - if let ::std::option::Option::Some(TransactionSelector_oneof_selector::id(_)) = self.selector { + if let ::std::option::Option::Some(transaction_selector::Selector::Id(_)) = self.selector { } else { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::id(::std::vec::Vec::new())); + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Id(::std::vec::Vec::new())); } match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::id(ref mut v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Id(ref mut v)) => v, _ => panic!(), } } @@ -1545,7 +1335,7 @@ impl TransactionSelector { pub fn take_id(&mut self) -> ::std::vec::Vec { if self.has_id() { match self.selector.take() { - ::std::option::Option::Some(TransactionSelector_oneof_selector::id(v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Id(v)) => v, _ => panic!(), } } else { @@ -1555,37 +1345,37 @@ impl TransactionSelector { // .google.spanner.v1.TransactionOptions begin = 3; - - pub fn get_begin(&self) -> &TransactionOptions { + pub fn begin(&self) -> &TransactionOptions { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(ref v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Begin(ref v)) => v, _ => ::default_instance(), } } + pub fn clear_begin(&mut self) { self.selector = ::std::option::Option::None; } pub fn has_begin(&self) -> bool { match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(..)) => true, + ::std::option::Option::Some(transaction_selector::Selector::Begin(..)) => true, _ => false, } } // Param is passed by value, moved pub fn set_begin(&mut self, v: TransactionOptions) { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(v)) + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Begin(v)) } // Mutable pointer to the field. pub fn mut_begin(&mut self) -> &mut TransactionOptions { - if let ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(_)) = self.selector { + if let ::std::option::Option::Some(transaction_selector::Selector::Begin(_)) = self.selector { } else { - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(TransactionOptions::new())); + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Begin(TransactionOptions::new())); } match self.selector { - ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(ref mut v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Begin(ref mut v)) => v, _ => panic!(), } } @@ -1594,54 +1384,67 @@ impl TransactionSelector { pub fn take_begin(&mut self) -> TransactionOptions { if self.has_begin() { match self.selector.take() { - ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(v)) => v, + ::std::option::Option::Some(transaction_selector::Selector::Begin(v)) => v, _ => panic!(), } } else { TransactionOptions::new() } } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, TransactionOptions>( + "single_use", + TransactionSelector::has_single_use, + TransactionSelector::single_use, + TransactionSelector::mut_single_use, + TransactionSelector::set_single_use, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "id", + TransactionSelector::has_id, + TransactionSelector::id, + TransactionSelector::set_id, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, TransactionOptions>( + "begin", + TransactionSelector::has_begin, + TransactionSelector::begin, + TransactionSelector::mut_begin, + TransactionSelector::set_begin, + )); + oneofs.push(transaction_selector::Selector::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TransactionSelector", + fields, + oneofs, + ) + } } impl ::protobuf::Message for TransactionSelector { + const NAME: &'static str = "TransactionSelector"; + fn is_initialized(&self) -> bool { - if let Some(TransactionSelector_oneof_selector::single_use(ref v)) = self.selector { - if !v.is_initialized() { - return false; - } - } - if let Some(TransactionSelector_oneof_selector::begin(ref v)) = self.selector { - if !v.is_initialized() { - return false; - } - } true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::single_use(is.read_message()?)); + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = ::std::option::Option::Some(transaction_selector::Selector::SingleUse(is.read_message()?)); }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::id(is.read_bytes()?)); + 18 => { + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Id(is.read_bytes()?)); }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.selector = ::std::option::Option::Some(TransactionSelector_oneof_selector::begin(is.read_message()?)); + 26 => { + self.selector = ::std::option::Option::Some(transaction_selector::Selector::Begin(is.read_message()?)); }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -1650,479 +1453,414 @@ impl ::protobuf::Message for TransactionSelector { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if let ::std::option::Option::Some(ref v) = self.selector { match v { - &TransactionSelector_oneof_selector::single_use(ref v) => { + &transaction_selector::Selector::SingleUse(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, - &TransactionSelector_oneof_selector::id(ref v) => { + &transaction_selector::Selector::Id(ref v) => { my_size += ::protobuf::rt::bytes_size(2, &v); }, - &TransactionSelector_oneof_selector::begin(ref v) => { + &transaction_selector::Selector::Begin(ref v) => { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; }, }; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let ::std::option::Option::Some(ref v) = self.selector { match v { - &TransactionSelector_oneof_selector::single_use(ref v) => { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &transaction_selector::Selector::SingleUse(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; }, - &TransactionSelector_oneof_selector::id(ref v) => { + &transaction_selector::Selector::Id(ref v) => { os.write_bytes(2, v)?; }, - &TransactionSelector_oneof_selector::begin(ref v) => { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + &transaction_selector::Selector::Begin(ref v) => { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; }, }; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TransactionSelector { TransactionSelector::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TransactionOptions>( - "single_use", - TransactionSelector::has_single_use, - TransactionSelector::get_single_use, - )); - fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>( - "id", - TransactionSelector::has_id, - TransactionSelector::get_id, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TransactionOptions>( - "begin", - TransactionSelector::has_begin, - TransactionSelector::get_begin, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TransactionSelector", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.selector = ::std::option::Option::None; + self.selector = ::std::option::Option::None; + self.selector = ::std::option::Option::None; + self.special_fields.clear(); } fn default_instance() -> &'static TransactionSelector { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TransactionSelector::new) + static instance: TransactionSelector = TransactionSelector { + selector: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TransactionSelector { - fn clear(&mut self) { - self.selector = ::std::option::Option::None; - self.selector = ::std::option::Option::None; - self.selector = ::std::option::Option::None; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TransactionSelector { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TransactionSelector").unwrap()).clone() } } -impl ::std::fmt::Debug for TransactionSelector { +impl ::std::fmt::Display for TransactionSelector { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TransactionSelector { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `TransactionSelector` +pub mod transaction_selector { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.spanner.v1.TransactionSelector.selector) + pub enum Selector { + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionSelector.single_use) + SingleUse(super::TransactionOptions), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionSelector.id) + Id(::std::vec::Vec), + // @@protoc_insertion_point(oneof_field:google.spanner.v1.TransactionSelector.begin) + Begin(super::TransactionOptions), + } + + impl ::protobuf::Oneof for Selector { + } + + impl ::protobuf::OneofFull for Selector { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("selector").unwrap()).clone() + } + } + + impl Selector { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("selector") + } } } static file_descriptor_proto_data: &'static [u8] = b"\ \n#google/spanner/v1/transaction.proto\x12\x11google.spanner.v1\x1a\x1eg\ - oogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\ - \xfa\x06\n\x12TransactionOptions\x12P\n\nread_write\x18\x01\x20\x01(\x0b\ - 2/.google.spanner.v1.TransactionOptions.ReadWriteH\0R\treadWrite\x12_\n\ - \x0fpartitioned_dml\x18\x03\x20\x01(\x0b24.google.spanner.v1.Transaction\ - Options.PartitionedDmlH\0R\x0epartitionedDml\x12M\n\tread_only\x18\x02\ - \x20\x01(\x0b2..google.spanner.v1.TransactionOptions.ReadOnlyH\0R\x08rea\ - dOnly\x1a\xc0\x01\n\tReadWrite\x12b\n\x0eread_lock_mode\x18\x01\x20\x01(\ - \x0e2<.google.spanner.v1.TransactionOptions.ReadWrite.ReadLockModeR\x0cr\ - eadLockMode\"O\n\x0cReadLockMode\x12\x1e\n\x1aREAD_LOCK_MODE_UNSPECIFIED\ - \x10\0\x12\x0f\n\x0bPESSIMISTIC\x10\x01\x12\x0e\n\nOPTIMISTIC\x10\x02\ - \x1a\x10\n\x0ePartitionedDml\x1a\x84\x03\n\x08ReadOnly\x12\x18\n\x06stro\ - ng\x18\x01\x20\x01(\x08H\0R\x06strong\x12J\n\x12min_read_timestamp\x18\ - \x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampH\0R\x10minReadTimestamp\ - \x12@\n\rmax_staleness\x18\x03\x20\x01(\x0b2\x19.google.protobuf.Duratio\ - nH\0R\x0cmaxStaleness\x12C\n\x0eread_timestamp\x18\x04\x20\x01(\x0b2\x1a\ - .google.protobuf.TimestampH\0R\rreadTimestamp\x12D\n\x0fexact_staleness\ - \x18\x05\x20\x01(\x0b2\x19.google.protobuf.DurationH\0R\x0eexactStalenes\ - s\x122\n\x15return_read_timestamp\x18\x06\x20\x01(\x08R\x13returnReadTim\ - estampB\x11\n\x0ftimestamp_boundB\x06\n\x04mode\"`\n\x0bTransaction\x12\ - \x0e\n\x02id\x18\x01\x20\x01(\x0cR\x02id\x12A\n\x0eread_timestamp\x18\ - \x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\rreadTimestamp\"\xba\ - \x01\n\x13TransactionSelector\x12F\n\nsingle_use\x18\x01\x20\x01(\x0b2%.\ - google.spanner.v1.TransactionOptionsH\0R\tsingleUse\x12\x10\n\x02id\x18\ - \x02\x20\x01(\x0cH\0R\x02id\x12=\n\x05begin\x18\x03\x20\x01(\x0b2%.googl\ - e.spanner.v1.TransactionOptionsH\0R\x05beginB\n\n\x08selectorB\xb3\x01\n\ - \x15com.google.spanner.v1B\x10TransactionProtoP\x01Z5cloud.google.com/go\ - /spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17Google.Cloud.Spanner.V1\ - \xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1aGoogle::Cloud::Spanner\ - ::V1J\xf5\xb1\x01\n\x07\x12\x05\x0e\0\x8c\x04\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\x20LLC\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1a\n\t\n\x02\x03\0\x12\x03\x12\0(\ - \n\t\n\x02\x03\x01\x12\x03\x13\0)\n\x08\n\x01\x08\x12\x03\x15\04\n\t\n\ - \x02\x08%\x12\x03\x15\04\n\x08\n\x01\x08\x12\x03\x16\0L\n\t\n\x02\x08\ - \x0b\x12\x03\x16\0L\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\ - \x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\01\n\t\n\x02\x08\x08\x12\x03\ - \x18\01\n\x08\n\x01\x08\x12\x03\x19\0.\n\t\n\x02\x08\x01\x12\x03\x19\0.\ - \n\x08\n\x01\x08\x12\x03\x1a\04\n\t\n\x02\x08)\x12\x03\x1a\04\n\x08\n\ - \x01\x08\x12\x03\x1b\03\n\t\n\x02\x08-\x12\x03\x1b\03\n\xcew\n\x02\x04\0\ - \x12\x06\xe1\x02\0\xdd\x03\x01\x1a\xbfw\x20Transactions:\n\n\x20Each\x20\ - session\x20can\x20have\x20at\x20most\x20one\x20active\x20transaction\x20\ - at\x20a\x20time\x20(note\x20that\n\x20standalone\x20reads\x20and\x20quer\ - ies\x20use\x20a\x20transaction\x20internally\x20and\x20do\x20count\n\x20\ - towards\x20the\x20one\x20transaction\x20limit).\x20After\x20the\x20activ\ - e\x20transaction\x20is\n\x20completed,\x20the\x20session\x20can\x20immed\ - iately\x20be\x20re-used\x20for\x20the\x20next\x20transaction.\n\x20It\ - \x20is\x20not\x20necessary\x20to\x20create\x20a\x20new\x20session\x20for\ - \x20each\x20transaction.\n\n\x20Transaction\x20modes:\n\n\x20Cloud\x20Sp\ - anner\x20supports\x20three\x20transaction\x20modes:\n\n\x20\x20\x201.\ - \x20Locking\x20read-write.\x20This\x20type\x20of\x20transaction\x20is\ - \x20the\x20only\x20way\n\x20\x20\x20\x20\x20\x20to\x20write\x20data\x20i\ - nto\x20Cloud\x20Spanner.\x20These\x20transactions\x20rely\x20on\n\x20\ - \x20\x20\x20\x20\x20pessimistic\x20locking\x20and,\x20if\x20necessary,\ - \x20two-phase\x20commit.\n\x20\x20\x20\x20\x20\x20Locking\x20read-write\ - \x20transactions\x20may\x20abort,\x20requiring\x20the\n\x20\x20\x20\x20\ - \x20\x20application\x20to\x20retry.\n\n\x20\x20\x202.\x20Snapshot\x20rea\ - d-only.\x20Snapshot\x20read-only\x20transactions\x20provide\x20guarantee\ - d\n\x20\x20\x20\x20\x20\x20consistency\x20across\x20several\x20reads,\ - \x20but\x20do\x20not\x20allow\n\x20\x20\x20\x20\x20\x20writes.\x20Snapsh\ - ot\x20read-only\x20transactions\x20can\x20be\x20configured\x20to\x20read\ - \x20at\n\x20\x20\x20\x20\x20\x20timestamps\x20in\x20the\x20past,\x20or\ - \x20configured\x20to\x20perform\x20a\x20strong\x20read\n\x20\x20\x20\x20\ - \x20\x20(where\x20Spanner\x20will\x20select\x20a\x20timestamp\x20such\ - \x20that\x20the\x20read\x20is\n\x20\x20\x20\x20\x20\x20guaranteed\x20to\ - \x20see\x20the\x20effects\x20of\x20all\x20transactions\x20that\x20have\ - \x20committed\n\x20\x20\x20\x20\x20\x20before\x20the\x20start\x20of\x20t\ - he\x20read).\x20Snapshot\x20read-only\x20transactions\x20do\x20not\n\x20\ - \x20\x20\x20\x20\x20need\x20to\x20be\x20committed.\n\n\x20\x20\x20\x20\ - \x20\x20Queries\x20on\x20change\x20streams\x20must\x20be\x20performed\ - \x20with\x20the\x20snapshot\x20read-only\n\x20\x20\x20\x20\x20\x20transa\ - ction\x20mode,\x20specifying\x20a\x20strong\x20read.\x20Please\x20see\n\ - \x20\x20\x20\x20\x20\x20[TransactionOptions.ReadOnly.strong][google.span\ - ner.v1.TransactionOptions.ReadOnly.strong]\n\x20\x20\x20\x20\x20\x20for\ - \x20more\x20details.\n\n\x20\x20\x203.\x20Partitioned\x20DML.\x20This\ - \x20type\x20of\x20transaction\x20is\x20used\x20to\x20execute\n\x20\x20\ - \x20\x20\x20\x20a\x20single\x20Partitioned\x20DML\x20statement.\x20Parti\ - tioned\x20DML\x20partitions\n\x20\x20\x20\x20\x20\x20the\x20key\x20space\ - \x20and\x20runs\x20the\x20DML\x20statement\x20over\x20each\x20partition\ - \n\x20\x20\x20\x20\x20\x20in\x20parallel\x20using\x20separate,\x20intern\ - al\x20transactions\x20that\x20commit\n\x20\x20\x20\x20\x20\x20independen\ - tly.\x20Partitioned\x20DML\x20transactions\x20do\x20not\x20need\x20to\ - \x20be\n\x20\x20\x20\x20\x20\x20committed.\n\n\x20For\x20transactions\ - \x20that\x20only\x20read,\x20snapshot\x20read-only\x20transactions\n\x20\ - provide\x20simpler\x20semantics\x20and\x20are\x20almost\x20always\x20fas\ - ter.\x20In\n\x20particular,\x20read-only\x20transactions\x20do\x20not\ - \x20take\x20locks,\x20so\x20they\x20do\n\x20not\x20conflict\x20with\x20r\ - ead-write\x20transactions.\x20As\x20a\x20consequence\x20of\x20not\n\x20t\ - aking\x20locks,\x20they\x20also\x20do\x20not\x20abort,\x20so\x20retry\ - \x20loops\x20are\x20not\x20needed.\n\n\x20Transactions\x20may\x20only\ - \x20read-write\x20data\x20in\x20a\x20single\x20database.\x20They\n\x20ma\ - y,\x20however,\x20read-write\x20data\x20in\x20different\x20tables\x20wit\ - hin\x20that\n\x20database.\n\n\x20Locking\x20read-write\x20transactions:\ - \n\n\x20Locking\x20transactions\x20may\x20be\x20used\x20to\x20atomically\ - \x20read-modify-write\n\x20data\x20anywhere\x20in\x20a\x20database.\x20T\ - his\x20type\x20of\x20transaction\x20is\x20externally\n\x20consistent.\n\ - \n\x20Clients\x20should\x20attempt\x20to\x20minimize\x20the\x20amount\ - \x20of\x20time\x20a\x20transaction\n\x20is\x20active.\x20Faster\x20trans\ - actions\x20commit\x20with\x20higher\x20probability\n\x20and\x20cause\x20\ - less\x20contention.\x20Cloud\x20Spanner\x20attempts\x20to\x20keep\x20rea\ - d\x20locks\n\x20active\x20as\x20long\x20as\x20the\x20transaction\x20cont\ - inues\x20to\x20do\x20reads,\x20and\x20the\n\x20transaction\x20has\x20not\ - \x20been\x20terminated\x20by\n\x20[Commit][google.spanner.v1.Spanner.Com\ - mit]\x20or\n\x20[Rollback][google.spanner.v1.Spanner.Rollback].\x20Long\ - \x20periods\x20of\n\x20inactivity\x20at\x20the\x20client\x20may\x20cause\ - \x20Cloud\x20Spanner\x20to\x20release\x20a\n\x20transaction's\x20locks\ - \x20and\x20abort\x20it.\n\n\x20Conceptually,\x20a\x20read-write\x20trans\ - action\x20consists\x20of\x20zero\x20or\x20more\n\x20reads\x20or\x20SQL\ - \x20statements\x20followed\x20by\n\x20[Commit][google.spanner.v1.Spanner\ - .Commit].\x20At\x20any\x20time\x20before\n\x20[Commit][google.spanner.v1\ - .Spanner.Commit],\x20the\x20client\x20can\x20send\x20a\n\x20[Rollback][g\ - oogle.spanner.v1.Spanner.Rollback]\x20request\x20to\x20abort\x20the\n\ - \x20transaction.\n\n\x20Semantics:\n\n\x20Cloud\x20Spanner\x20can\x20com\ - mit\x20the\x20transaction\x20if\x20all\x20read\x20locks\x20it\x20acquire\ - d\n\x20are\x20still\x20valid\x20at\x20commit\x20time,\x20and\x20it\x20is\ - \x20able\x20to\x20acquire\x20write\n\x20locks\x20for\x20all\x20writes.\ - \x20Cloud\x20Spanner\x20can\x20abort\x20the\x20transaction\x20for\x20any\ - \n\x20reason.\x20If\x20a\x20commit\x20attempt\x20returns\x20`ABORTED`,\ - \x20Cloud\x20Spanner\x20guarantees\n\x20that\x20the\x20transaction\x20ha\ - s\x20not\x20modified\x20any\x20user\x20data\x20in\x20Cloud\x20Spanner.\n\ - \n\x20Unless\x20the\x20transaction\x20commits,\x20Cloud\x20Spanner\x20ma\ - kes\x20no\x20guarantees\x20about\n\x20how\x20long\x20the\x20transaction'\ - s\x20locks\x20were\x20held\x20for.\x20It\x20is\x20an\x20error\x20to\n\ - \x20use\x20Cloud\x20Spanner\x20locks\x20for\x20any\x20sort\x20of\x20mutu\ - al\x20exclusion\x20other\x20than\n\x20between\x20Cloud\x20Spanner\x20tra\ - nsactions\x20themselves.\n\n\x20Retrying\x20aborted\x20transactions:\n\n\ - \x20When\x20a\x20transaction\x20aborts,\x20the\x20application\x20can\x20\ - choose\x20to\x20retry\x20the\n\x20whole\x20transaction\x20again.\x20To\ - \x20maximize\x20the\x20chances\x20of\x20successfully\n\x20committing\x20\ - the\x20retry,\x20the\x20client\x20should\x20execute\x20the\x20retry\x20i\ - n\x20the\n\x20same\x20session\x20as\x20the\x20original\x20attempt.\x20Th\ - e\x20original\x20session's\x20lock\n\x20priority\x20increases\x20with\ - \x20each\x20consecutive\x20abort,\x20meaning\x20that\x20each\n\x20attemp\ - t\x20has\x20a\x20slightly\x20better\x20chance\x20of\x20success\x20than\ - \x20the\x20previous.\n\n\x20Under\x20some\x20circumstances\x20(for\x20ex\ - ample,\x20many\x20transactions\x20attempting\x20to\n\x20modify\x20the\ - \x20same\x20row(s)),\x20a\x20transaction\x20can\x20abort\x20many\x20time\ - s\x20in\x20a\n\x20short\x20period\x20before\x20successfully\x20committin\ - g.\x20Thus,\x20it\x20is\x20not\x20a\x20good\n\x20idea\x20to\x20cap\x20th\ - e\x20number\x20of\x20retries\x20a\x20transaction\x20can\x20attempt;\n\ - \x20instead,\x20it\x20is\x20better\x20to\x20limit\x20the\x20total\x20amo\ - unt\x20of\x20time\x20spent\n\x20retrying.\n\n\x20Idle\x20transactions:\n\ - \n\x20A\x20transaction\x20is\x20considered\x20idle\x20if\x20it\x20has\ - \x20no\x20outstanding\x20reads\x20or\n\x20SQL\x20queries\x20and\x20has\ - \x20not\x20started\x20a\x20read\x20or\x20SQL\x20query\x20within\x20the\ - \x20last\x2010\n\x20seconds.\x20Idle\x20transactions\x20can\x20be\x20abo\ - rted\x20by\x20Cloud\x20Spanner\x20so\x20that\x20they\n\x20don't\x20hold\ - \x20on\x20to\x20locks\x20indefinitely.\x20If\x20an\x20idle\x20transactio\ - n\x20is\x20aborted,\x20the\n\x20commit\x20will\x20fail\x20with\x20error\ - \x20`ABORTED`.\n\n\x20If\x20this\x20behavior\x20is\x20undesirable,\x20pe\ - riodically\x20executing\x20a\x20simple\n\x20SQL\x20query\x20in\x20the\ - \x20transaction\x20(for\x20example,\x20`SELECT\x201`)\x20prevents\x20the\ - \n\x20transaction\x20from\x20becoming\x20idle.\n\n\x20Snapshot\x20read-o\ - nly\x20transactions:\n\n\x20Snapshot\x20read-only\x20transactions\x20pro\ - vides\x20a\x20simpler\x20method\x20than\n\x20locking\x20read-write\x20tr\ - ansactions\x20for\x20doing\x20several\x20consistent\n\x20reads.\x20Howev\ - er,\x20this\x20type\x20of\x20transaction\x20does\x20not\x20support\x20wr\ - ites.\n\n\x20Snapshot\x20transactions\x20do\x20not\x20take\x20locks.\x20\ - Instead,\x20they\x20work\x20by\n\x20choosing\x20a\x20Cloud\x20Spanner\ - \x20timestamp,\x20then\x20executing\x20all\x20reads\x20at\x20that\n\x20t\ - imestamp.\x20Since\x20they\x20do\x20not\x20acquire\x20locks,\x20they\x20\ - do\x20not\x20block\n\x20concurrent\x20read-write\x20transactions.\n\n\ - \x20Unlike\x20locking\x20read-write\x20transactions,\x20snapshot\x20read\ - -only\n\x20transactions\x20never\x20abort.\x20They\x20can\x20fail\x20if\ - \x20the\x20chosen\x20read\n\x20timestamp\x20is\x20garbage\x20collected;\ - \x20however,\x20the\x20default\x20garbage\n\x20collection\x20policy\x20i\ - s\x20generous\x20enough\x20that\x20most\x20applications\x20do\x20not\n\ - \x20need\x20to\x20worry\x20about\x20this\x20in\x20practice.\n\n\x20Snaps\ - hot\x20read-only\x20transactions\x20do\x20not\x20need\x20to\x20call\n\ - \x20[Commit][google.spanner.v1.Spanner.Commit]\x20or\n\x20[Rollback][goo\ - gle.spanner.v1.Spanner.Rollback]\x20(and\x20in\x20fact\x20are\x20not\n\ - \x20permitted\x20to\x20do\x20so).\n\n\x20To\x20execute\x20a\x20snapshot\ - \x20transaction,\x20the\x20client\x20specifies\x20a\x20timestamp\n\x20bo\ - und,\x20which\x20tells\x20Cloud\x20Spanner\x20how\x20to\x20choose\x20a\ - \x20read\x20timestamp.\n\n\x20The\x20types\x20of\x20timestamp\x20bound\ - \x20are:\n\n\x20\x20\x20-\x20Strong\x20(the\x20default).\n\x20\x20\x20-\ - \x20Bounded\x20staleness.\n\x20\x20\x20-\x20Exact\x20staleness.\n\n\x20I\ - f\x20the\x20Cloud\x20Spanner\x20database\x20to\x20be\x20read\x20is\x20ge\ - ographically\x20distributed,\n\x20stale\x20read-only\x20transactions\x20\ - can\x20execute\x20more\x20quickly\x20than\x20strong\n\x20or\x20read-writ\ - e\x20transactions,\x20because\x20they\x20are\x20able\x20to\x20execute\ - \x20far\n\x20from\x20the\x20leader\x20replica.\n\n\x20Each\x20type\x20of\ - \x20timestamp\x20bound\x20is\x20discussed\x20in\x20detail\x20below.\n\n\ - \x20Strong:\x20Strong\x20reads\x20are\x20guaranteed\x20to\x20see\x20the\ - \x20effects\x20of\x20all\x20transactions\n\x20that\x20have\x20committed\ - \x20before\x20the\x20start\x20of\x20the\x20read.\x20Furthermore,\x20all\ - \n\x20rows\x20yielded\x20by\x20a\x20single\x20read\x20are\x20consistent\ - \x20with\x20each\x20other\x20--\x20if\n\x20any\x20part\x20of\x20the\x20r\ - ead\x20observes\x20a\x20transaction,\x20all\x20parts\x20of\x20the\x20rea\ - d\n\x20see\x20the\x20transaction.\n\n\x20Strong\x20reads\x20are\x20not\ - \x20repeatable:\x20two\x20consecutive\x20strong\x20read-only\n\x20transa\ - ctions\x20might\x20return\x20inconsistent\x20results\x20if\x20there\x20a\ - re\n\x20concurrent\x20writes.\x20If\x20consistency\x20across\x20reads\ - \x20is\x20required,\x20the\n\x20reads\x20should\x20be\x20executed\x20wit\ - hin\x20a\x20transaction\x20or\x20at\x20an\x20exact\x20read\n\x20timestam\ - p.\n\n\x20Queries\x20on\x20change\x20streams\x20(see\x20below\x20for\x20\ - more\x20details)\x20must\x20also\x20specify\n\x20the\x20strong\x20read\ - \x20timestamp\x20bound.\n\n\x20See\n\x20[TransactionOptions.ReadOnly.str\ - ong][google.spanner.v1.TransactionOptions.ReadOnly.strong].\n\n\x20Exact\ - \x20staleness:\n\n\x20These\x20timestamp\x20bounds\x20execute\x20reads\ - \x20at\x20a\x20user-specified\n\x20timestamp.\x20Reads\x20at\x20a\x20tim\ - estamp\x20are\x20guaranteed\x20to\x20see\x20a\x20consistent\n\x20prefix\ - \x20of\x20the\x20global\x20transaction\x20history:\x20they\x20observe\n\ - \x20modifications\x20done\x20by\x20all\x20transactions\x20with\x20a\x20c\ - ommit\x20timestamp\x20less\x20than\x20or\n\x20equal\x20to\x20the\x20read\ - \x20timestamp,\x20and\x20observe\x20none\x20of\x20the\x20modifications\ - \x20done\x20by\n\x20transactions\x20with\x20a\x20larger\x20commit\x20tim\ - estamp.\x20They\x20will\x20block\x20until\n\x20all\x20conflicting\x20tra\ - nsactions\x20that\x20may\x20be\x20assigned\x20commit\x20timestamps\n\x20\ - <=\x20the\x20read\x20timestamp\x20have\x20finished.\n\n\x20The\x20timest\ - amp\x20can\x20either\x20be\x20expressed\x20as\x20an\x20absolute\x20Cloud\ - \x20Spanner\x20commit\n\x20timestamp\x20or\x20a\x20staleness\x20relative\ - \x20to\x20the\x20current\x20time.\n\n\x20These\x20modes\x20do\x20not\x20\ - require\x20a\x20\"negotiation\x20phase\"\x20to\x20pick\x20a\n\x20timesta\ - mp.\x20As\x20a\x20result,\x20they\x20execute\x20slightly\x20faster\x20th\ - an\x20the\n\x20equivalent\x20boundedly\x20stale\x20concurrency\x20modes.\ - \x20On\x20the\x20other\x20hand,\n\x20boundedly\x20stale\x20reads\x20usua\ - lly\x20return\x20fresher\x20results.\n\n\x20See\n\x20[TransactionOptions\ - .ReadOnly.read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.\ - read_timestamp]\n\x20and\n\x20[TransactionOptions.ReadOnly.exact_stalene\ - ss][google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness].\n\n\ - \x20Bounded\x20staleness:\n\n\x20Bounded\x20staleness\x20modes\x20allow\ - \x20Cloud\x20Spanner\x20to\x20pick\x20the\x20read\x20timestamp,\n\x20sub\ - ject\x20to\x20a\x20user-provided\x20staleness\x20bound.\x20Cloud\x20Span\ - ner\x20chooses\x20the\n\x20newest\x20timestamp\x20within\x20the\x20stale\ - ness\x20bound\x20that\x20allows\x20execution\n\x20of\x20the\x20reads\x20\ - at\x20the\x20closest\x20available\x20replica\x20without\x20blocking.\n\n\ - \x20All\x20rows\x20yielded\x20are\x20consistent\x20with\x20each\x20other\ - \x20--\x20if\x20any\x20part\x20of\n\x20the\x20read\x20observes\x20a\x20t\ - ransaction,\x20all\x20parts\x20of\x20the\x20read\x20see\x20the\n\x20tran\ - saction.\x20Boundedly\x20stale\x20reads\x20are\x20not\x20repeatable:\x20\ - two\x20stale\n\x20reads,\x20even\x20if\x20they\x20use\x20the\x20same\x20\ - staleness\x20bound,\x20can\x20execute\x20at\n\x20different\x20timestamps\ - \x20and\x20thus\x20return\x20inconsistent\x20results.\n\n\x20Boundedly\ - \x20stale\x20reads\x20execute\x20in\x20two\x20phases:\x20the\x20first\ - \x20phase\n\x20negotiates\x20a\x20timestamp\x20among\x20all\x20replicas\ - \x20needed\x20to\x20serve\x20the\n\x20read.\x20In\x20the\x20second\x20ph\ - ase,\x20reads\x20are\x20executed\x20at\x20the\x20negotiated\n\x20timesta\ - mp.\n\n\x20As\x20a\x20result\x20of\x20the\x20two\x20phase\x20execution,\ - \x20bounded\x20staleness\x20reads\x20are\n\x20usually\x20a\x20little\x20\ - slower\x20than\x20comparable\x20exact\x20staleness\n\x20reads.\x20Howeve\ - r,\x20they\x20are\x20typically\x20able\x20to\x20return\x20fresher\n\x20r\ - esults,\x20and\x20are\x20more\x20likely\x20to\x20execute\x20at\x20the\ - \x20closest\x20replica.\n\n\x20Because\x20the\x20timestamp\x20negotiatio\ - n\x20requires\x20up-front\x20knowledge\x20of\n\x20which\x20rows\x20will\ - \x20be\x20read,\x20it\x20can\x20only\x20be\x20used\x20with\x20single-use\ - \n\x20read-only\x20transactions.\n\n\x20See\n\x20[TransactionOptions.Rea\ - dOnly.max_staleness][google.spanner.v1.TransactionOptions.ReadOnly.max_s\ - taleness]\n\x20and\n\x20[TransactionOptions.ReadOnly.min_read_timestamp]\ - [google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp].\n\n\ - \x20Old\x20read\x20timestamps\x20and\x20garbage\x20collection:\n\n\x20Cl\ - oud\x20Spanner\x20continuously\x20garbage\x20collects\x20deleted\x20and\ - \x20overwritten\x20data\n\x20in\x20the\x20background\x20to\x20reclaim\ - \x20storage\x20space.\x20This\x20process\x20is\x20known\n\x20as\x20\"ver\ - sion\x20GC\".\x20By\x20default,\x20version\x20GC\x20reclaims\x20versions\ - \x20after\x20they\n\x20are\x20one\x20hour\x20old.\x20Because\x20of\x20th\ - is,\x20Cloud\x20Spanner\x20cannot\x20perform\x20reads\n\x20at\x20read\ - \x20timestamps\x20more\x20than\x20one\x20hour\x20in\x20the\x20past.\x20T\ - his\n\x20restriction\x20also\x20applies\x20to\x20in-progress\x20reads\ - \x20and/or\x20SQL\x20queries\x20whose\n\x20timestamp\x20become\x20too\ - \x20old\x20while\x20executing.\x20Reads\x20and\x20SQL\x20queries\x20with\ - \n\x20too-old\x20read\x20timestamps\x20fail\x20with\x20the\x20error\x20`\ - FAILED_PRECONDITION`.\n\n\x20You\x20can\x20configure\x20and\x20extend\ - \x20the\x20`VERSION_RETENTION_PERIOD`\x20of\x20a\n\x20database\x20up\x20\ - to\x20a\x20period\x20as\x20long\x20as\x20one\x20week,\x20which\x20allows\ - \x20Cloud\x20Spanner\n\x20to\x20perform\x20reads\x20up\x20to\x20one\x20w\ - eek\x20in\x20the\x20past.\n\n\x20Querying\x20change\x20Streams:\n\n\x20A\ - \x20Change\x20Stream\x20is\x20a\x20schema\x20object\x20that\x20can\x20be\ - \x20configured\x20to\x20watch\x20data\n\x20changes\x20on\x20the\x20entir\ - e\x20database,\x20a\x20set\x20of\x20tables,\x20or\x20a\x20set\x20of\x20c\ - olumns\n\x20in\x20a\x20database.\n\n\x20When\x20a\x20change\x20stream\ - \x20is\x20created,\x20Spanner\x20automatically\x20defines\x20a\n\x20corr\ - esponding\x20SQL\x20Table-Valued\x20Function\x20(TVF)\x20that\x20can\x20\ - be\x20used\x20to\x20query\n\x20the\x20change\x20records\x20in\x20the\x20\ - associated\x20change\x20stream\x20using\x20the\n\x20ExecuteStreamingSql\ - \x20API.\x20The\x20name\x20of\x20the\x20TVF\x20for\x20a\x20change\x20str\ - eam\x20is\n\x20generated\x20from\x20the\x20name\x20of\x20the\x20change\ - \x20stream:\x20READ_.\n\n\x20All\x20queries\x20on\ - \x20change\x20stream\x20TVFs\x20must\x20be\x20executed\x20using\x20the\n\ - \x20ExecuteStreamingSql\x20API\x20with\x20a\x20single-use\x20read-only\ - \x20transaction\x20with\x20a\n\x20strong\x20read-only\x20timestamp_bound\ - .\x20The\x20change\x20stream\x20TVF\x20allows\x20users\x20to\n\x20specif\ - y\x20the\x20start_timestamp\x20and\x20end_timestamp\x20for\x20the\x20tim\ - e\x20range\x20of\n\x20interest.\x20All\x20change\x20records\x20within\ - \x20the\x20retention\x20period\x20is\x20accessible\n\x20using\x20the\x20\ - strong\x20read-only\x20timestamp_bound.\x20All\x20other\x20TransactionOp\ - tions\n\x20are\x20invalid\x20for\x20change\x20stream\x20queries.\n\n\x20\ - In\x20addition,\x20if\x20TransactionOptions.read_only.return_read_timest\ - amp\x20is\x20set\n\x20to\x20true,\x20a\x20special\x20value\x20of\x202^63\ - \x20-\x202\x20will\x20be\x20returned\x20in\x20the\n\x20[Transaction][goo\ - gle.spanner.v1.Transaction]\x20message\x20that\x20describes\x20the\n\x20\ - transaction,\x20instead\x20of\x20a\x20valid\x20read\x20timestamp.\x20Thi\ - s\x20special\x20value\x20should\x20be\n\x20discarded\x20and\x20not\x20us\ - ed\x20for\x20any\x20subsequent\x20queries.\n\n\x20Please\x20see\x20https\ - ://cloud.google.com/spanner/docs/change-streams\n\x20for\x20more\x20deta\ - ils\x20on\x20how\x20to\x20query\x20the\x20change\x20stream\x20TVFs.\n\n\ - \x20Partitioned\x20DML\x20transactions:\n\n\x20Partitioned\x20DML\x20tra\ - nsactions\x20are\x20used\x20to\x20execute\x20DML\x20statements\x20with\ - \x20a\n\x20different\x20execution\x20strategy\x20that\x20provides\x20dif\ - ferent,\x20and\x20often\x20better,\n\x20scalability\x20properties\x20for\ - \x20large,\x20table-wide\x20operations\x20than\x20DML\x20in\x20a\n\x20Re\ - adWrite\x20transaction.\x20Smaller\x20scoped\x20statements,\x20such\x20a\ - s\x20an\x20OLTP\x20workload,\n\x20should\x20prefer\x20using\x20ReadWrite\ - \x20transactions.\n\n\x20Partitioned\x20DML\x20partitions\x20the\x20keys\ - pace\x20and\x20runs\x20the\x20DML\x20statement\x20on\x20each\n\x20partit\ - ion\x20in\x20separate,\x20internal\x20transactions.\x20These\x20transact\ - ions\x20commit\n\x20automatically\x20when\x20complete,\x20and\x20run\x20\ - independently\x20from\x20one\x20another.\n\n\x20To\x20reduce\x20lock\x20\ - contention,\x20this\x20execution\x20strategy\x20only\x20acquires\x20read\ - \x20locks\n\x20on\x20rows\x20that\x20match\x20the\x20WHERE\x20clause\x20\ - of\x20the\x20statement.\x20Additionally,\x20the\n\x20smaller\x20per-part\ - ition\x20transactions\x20hold\x20locks\x20for\x20less\x20time.\n\n\x20Th\ - at\x20said,\x20Partitioned\x20DML\x20is\x20not\x20a\x20drop-in\x20replac\ - ement\x20for\x20standard\x20DML\x20used\n\x20in\x20ReadWrite\x20transact\ - ions.\n\n\x20\x20-\x20The\x20DML\x20statement\x20must\x20be\x20fully-par\ - titionable.\x20Specifically,\x20the\x20statement\n\x20\x20\x20\x20must\ - \x20be\x20expressible\x20as\x20the\x20union\x20of\x20many\x20statements\ - \x20which\x20each\x20access\x20only\n\x20\x20\x20\x20a\x20single\x20row\ - \x20of\x20the\x20table.\n\n\x20\x20-\x20The\x20statement\x20is\x20not\ - \x20applied\x20atomically\x20to\x20all\x20rows\x20of\x20the\x20table.\ - \x20Rather,\n\x20\x20\x20\x20the\x20statement\x20is\x20applied\x20atomic\ - ally\x20to\x20partitions\x20of\x20the\x20table,\x20in\n\x20\x20\x20\x20i\ - ndependent\x20transactions.\x20Secondary\x20index\x20rows\x20are\x20upda\ - ted\x20atomically\n\x20\x20\x20\x20with\x20the\x20base\x20table\x20rows.\ - \n\n\x20\x20-\x20Partitioned\x20DML\x20does\x20not\x20guarantee\x20exact\ - ly-once\x20execution\x20semantics\n\x20\x20\x20\x20against\x20a\x20parti\ - tion.\x20The\x20statement\x20will\x20be\x20applied\x20at\x20least\x20onc\ - e\x20to\x20each\n\x20\x20\x20\x20partition.\x20It\x20is\x20strongly\x20r\ - ecommended\x20that\x20the\x20DML\x20statement\x20should\x20be\n\x20\x20\ - \x20\x20idempotent\x20to\x20avoid\x20unexpected\x20results.\x20For\x20in\ - stance,\x20it\x20is\x20potentially\n\x20\x20\x20\x20dangerous\x20to\x20r\ - un\x20a\x20statement\x20such\x20as\n\x20\x20\x20\x20`UPDATE\x20table\x20\ - SET\x20column\x20=\x20column\x20+\x201`\x20as\x20it\x20could\x20be\x20ru\ - n\x20multiple\x20times\n\x20\x20\x20\x20against\x20some\x20rows.\n\n\x20\ + oogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\ + \x1cgoogle/api/annotations.proto\"\xc4\x05\n\x12TransactionOptions\x12P\ + \n\nread_write\x18\x01\x20\x01(\x0b2/.google.spanner.v1.TransactionOptio\ + ns.ReadWriteH\0R\treadWrite\x12_\n\x0fpartitioned_dml\x18\x03\x20\x01(\ + \x0b24.google.spanner.v1.TransactionOptions.PartitionedDmlH\0R\x0epartit\ + ionedDml\x12M\n\tread_only\x18\x02\x20\x01(\x0b2..google.spanner.v1.Tran\ + sactionOptions.ReadOnlyH\0R\x08readOnly\x1a\x0b\n\tReadWrite\x1a\x10\n\ + \x0ePartitionedDml\x1a\x84\x03\n\x08ReadOnly\x12\x18\n\x06strong\x18\x01\ + \x20\x01(\x08H\0R\x06strong\x12J\n\x12min_read_timestamp\x18\x02\x20\x01\ + (\x0b2\x1a.google.protobuf.TimestampH\0R\x10minReadTimestamp\x12@\n\rmax\ + _staleness\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationH\0R\x0cmax\ + Staleness\x12C\n\x0eread_timestamp\x18\x04\x20\x01(\x0b2\x1a.google.prot\ + obuf.TimestampH\0R\rreadTimestamp\x12D\n\x0fexact_staleness\x18\x05\x20\ + \x01(\x0b2\x19.google.protobuf.DurationH\0R\x0eexactStaleness\x122\n\x15\ + return_read_timestamp\x18\x06\x20\x01(\x08R\x13returnReadTimestampB\x11\ + \n\x0ftimestamp_boundB\x06\n\x04mode\"`\n\x0bTransaction\x12\x0e\n\x02id\ + \x18\x01\x20\x01(\x0cR\x02id\x12A\n\x0eread_timestamp\x18\x02\x20\x01(\ + \x0b2\x1a.google.protobuf.TimestampR\rreadTimestamp\"\xba\x01\n\x13Trans\ + actionSelector\x12F\n\nsingle_use\x18\x01\x20\x01(\x0b2%.google.spanner.\ + v1.TransactionOptionsH\0R\tsingleUse\x12\x10\n\x02id\x18\x02\x20\x01(\ + \x0cH\0R\x02id\x12=\n\x05begin\x18\x03\x20\x01(\x0b2%.google.spanner.v1.\ + TransactionOptionsH\0R\x05beginB\n\n\x08selectorB\x99\x01\n\x15com.googl\ + e.spanner.v1B\x10TransactionProtoP\x01Z8google.golang.org/genproto/googl\ + eapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\xca\x02\x17G\ + oogle\\Cloud\\Spanner\\V1J\x9b\x99\x01\n\x07\x12\x05\x0f\0\xc7\x03\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x1a\n\t\n\x02\x03\ + \0\x12\x03\x13\0(\n\t\n\x02\x03\x01\x12\x03\x14\0)\n\t\n\x02\x03\x02\x12\ + \x03\x15\0&\n\x08\n\x01\x08\x12\x03\x17\04\n\t\n\x02\x08%\x12\x03\x17\04\ + \n\x08\n\x01\x08\x12\x03\x18\0O\n\t\n\x02\x08\x0b\x12\x03\x18\0O\n\x08\n\ + \x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\n\x08\n\x01\x08\ + \x12\x03\x1a\01\n\t\n\x02\x08\x08\x12\x03\x1a\01\n\x08\n\x01\x08\x12\x03\ + \x1b\0.\n\t\n\x02\x08\x01\x12\x03\x1b\0.\n\x08\n\x01\x08\x12\x03\x1c\04\ + \n\t\n\x02\x08)\x12\x03\x1c\04\n\x80e\n\x02\x04\0\x12\x06\xb3\x02\0\x9a\ + \x03\x01\x1a\xf1d\x20#\x20Transactions\n\n\n\x20Each\x20session\x20can\ + \x20have\x20at\x20most\x20one\x20active\x20transaction\x20at\x20a\x20tim\ + e.\x20After\x20the\n\x20active\x20transaction\x20is\x20completed,\x20the\ + \x20session\x20can\x20immediately\x20be\n\x20re-used\x20for\x20the\x20ne\ + xt\x20transaction.\x20It\x20is\x20not\x20necessary\x20to\x20create\x20a\ + \n\x20new\x20session\x20for\x20each\x20transaction.\n\n\x20#\x20Transact\ + ion\x20Modes\n\n\x20Cloud\x20Spanner\x20supports\x20three\x20transaction\ + \x20modes:\n\n\x20\x20\x201.\x20Locking\x20read-write.\x20This\x20type\ + \x20of\x20transaction\x20is\x20the\x20only\x20way\n\x20\x20\x20\x20\x20\ + \x20to\x20write\x20data\x20into\x20Cloud\x20Spanner.\x20These\x20transac\ + tions\x20rely\x20on\n\x20\x20\x20\x20\x20\x20pessimistic\x20locking\x20a\ + nd,\x20if\x20necessary,\x20two-phase\x20commit.\n\x20\x20\x20\x20\x20\ + \x20Locking\x20read-write\x20transactions\x20may\x20abort,\x20requiring\ + \x20the\n\x20\x20\x20\x20\x20\x20application\x20to\x20retry.\n\n\x20\x20\ + \x202.\x20Snapshot\x20read-only.\x20This\x20transaction\x20type\x20provi\ + des\x20guaranteed\n\x20\x20\x20\x20\x20\x20consistency\x20across\x20seve\ + ral\x20reads,\x20but\x20does\x20not\x20allow\n\x20\x20\x20\x20\x20\x20wr\ + ites.\x20Snapshot\x20read-only\x20transactions\x20can\x20be\x20configure\ + d\x20to\n\x20\x20\x20\x20\x20\x20read\x20at\x20timestamps\x20in\x20the\ + \x20past.\x20Snapshot\x20read-only\n\x20\x20\x20\x20\x20\x20transactions\ + \x20do\x20not\x20need\x20to\x20be\x20committed.\n\n\x20\x20\x203.\x20Par\ + titioned\x20DML.\x20This\x20type\x20of\x20transaction\x20is\x20used\x20t\ + o\x20execute\n\x20\x20\x20\x20\x20\x20a\x20single\x20Partitioned\x20DML\ + \x20statement.\x20Partitioned\x20DML\x20partitions\n\x20\x20\x20\x20\x20\ + \x20the\x20key\x20space\x20and\x20runs\x20the\x20DML\x20statement\x20ove\ + r\x20each\x20partition\n\x20\x20\x20\x20\x20\x20in\x20parallel\x20using\ + \x20separate,\x20internal\x20transactions\x20that\x20commit\n\x20\x20\ + \x20\x20\x20\x20independently.\x20Partitioned\x20DML\x20transactions\x20\ + do\x20not\x20need\x20to\x20be\n\x20\x20\x20\x20\x20\x20committed.\n\n\ + \x20For\x20transactions\x20that\x20only\x20read,\x20snapshot\x20read-onl\ + y\x20transactions\n\x20provide\x20simpler\x20semantics\x20and\x20are\x20\ + almost\x20always\x20faster.\x20In\n\x20particular,\x20read-only\x20trans\ + actions\x20do\x20not\x20take\x20locks,\x20so\x20they\x20do\n\x20not\x20c\ + onflict\x20with\x20read-write\x20transactions.\x20As\x20a\x20consequence\ + \x20of\x20not\n\x20taking\x20locks,\x20they\x20also\x20do\x20not\x20abor\ + t,\x20so\x20retry\x20loops\x20are\x20not\x20needed.\n\n\x20Transactions\ + \x20may\x20only\x20read/write\x20data\x20in\x20a\x20single\x20database.\ + \x20They\n\x20may,\x20however,\x20read/write\x20data\x20in\x20different\ + \x20tables\x20within\x20that\n\x20database.\n\n\x20##\x20Locking\x20Read\ + -Write\x20Transactions\n\n\x20Locking\x20transactions\x20may\x20be\x20us\ + ed\x20to\x20atomically\x20read-modify-write\n\x20data\x20anywhere\x20in\ + \x20a\x20database.\x20This\x20type\x20of\x20transaction\x20is\x20externa\ + lly\n\x20consistent.\n\n\x20Clients\x20should\x20attempt\x20to\x20minimi\ + ze\x20the\x20amount\x20of\x20time\x20a\x20transaction\n\x20is\x20active.\ + \x20Faster\x20transactions\x20commit\x20with\x20higher\x20probability\n\ + \x20and\x20cause\x20less\x20contention.\x20Cloud\x20Spanner\x20attempts\ + \x20to\x20keep\x20read\x20locks\n\x20active\x20as\x20long\x20as\x20the\ + \x20transaction\x20continues\x20to\x20do\x20reads,\x20and\x20the\n\x20tr\ + ansaction\x20has\x20not\x20been\x20terminated\x20by\n\x20[Commit][google\ + .spanner.v1.Spanner.Commit]\x20or\n\x20[Rollback][google.spanner.v1.Span\ + ner.Rollback].\x20\x20Long\x20periods\x20of\n\x20inactivity\x20at\x20the\ + \x20client\x20may\x20cause\x20Cloud\x20Spanner\x20to\x20release\x20a\n\ + \x20transaction's\x20locks\x20and\x20abort\x20it.\n\n\x20Conceptually,\ + \x20a\x20read-write\x20transaction\x20consists\x20of\x20zero\x20or\x20mo\ + re\n\x20reads\x20or\x20SQL\x20statements\x20followed\x20by\n\x20[Commit]\ + [google.spanner.v1.Spanner.Commit].\x20At\x20any\x20time\x20before\n\x20\ + [Commit][google.spanner.v1.Spanner.Commit],\x20the\x20client\x20can\x20s\ + end\x20a\n\x20[Rollback][google.spanner.v1.Spanner.Rollback]\x20request\ + \x20to\x20abort\x20the\n\x20transaction.\n\n\x20###\x20Semantics\n\n\x20\ + Cloud\x20Spanner\x20can\x20commit\x20the\x20transaction\x20if\x20all\x20\ + read\x20locks\x20it\x20acquired\n\x20are\x20still\x20valid\x20at\x20comm\ + it\x20time,\x20and\x20it\x20is\x20able\x20to\x20acquire\x20write\n\x20lo\ + cks\x20for\x20all\x20writes.\x20Cloud\x20Spanner\x20can\x20abort\x20the\ + \x20transaction\x20for\x20any\n\x20reason.\x20If\x20a\x20commit\x20attem\ + pt\x20returns\x20`ABORTED`,\x20Cloud\x20Spanner\x20guarantees\n\x20that\ + \x20the\x20transaction\x20has\x20not\x20modified\x20any\x20user\x20data\ + \x20in\x20Cloud\x20Spanner.\n\n\x20Unless\x20the\x20transaction\x20commi\ + ts,\x20Cloud\x20Spanner\x20makes\x20no\x20guarantees\x20about\n\x20how\ + \x20long\x20the\x20transaction's\x20locks\x20were\x20held\x20for.\x20It\ + \x20is\x20an\x20error\x20to\n\x20use\x20Cloud\x20Spanner\x20locks\x20for\ + \x20any\x20sort\x20of\x20mutual\x20exclusion\x20other\x20than\n\x20betwe\ + en\x20Cloud\x20Spanner\x20transactions\x20themselves.\n\n\x20###\x20Retr\ + ying\x20Aborted\x20Transactions\n\n\x20When\x20a\x20transaction\x20abort\ + s,\x20the\x20application\x20can\x20choose\x20to\x20retry\x20the\n\x20who\ + le\x20transaction\x20again.\x20To\x20maximize\x20the\x20chances\x20of\ + \x20successfully\n\x20committing\x20the\x20retry,\x20the\x20client\x20sh\ + ould\x20execute\x20the\x20retry\x20in\x20the\n\x20same\x20session\x20as\ + \x20the\x20original\x20attempt.\x20The\x20original\x20session's\x20lock\ + \n\x20priority\x20increases\x20with\x20each\x20consecutive\x20abort,\x20\ + meaning\x20that\x20each\n\x20attempt\x20has\x20a\x20slightly\x20better\ + \x20chance\x20of\x20success\x20than\x20the\x20previous.\n\n\x20Under\x20\ + some\x20circumstances\x20(e.g.,\x20many\x20transactions\x20attempting\ + \x20to\n\x20modify\x20the\x20same\x20row(s)),\x20a\x20transaction\x20can\ + \x20abort\x20many\x20times\x20in\x20a\n\x20short\x20period\x20before\x20\ + successfully\x20committing.\x20Thus,\x20it\x20is\x20not\x20a\x20good\n\ + \x20idea\x20to\x20cap\x20the\x20number\x20of\x20retries\x20a\x20transact\ + ion\x20can\x20attempt;\n\x20instead,\x20it\x20is\x20better\x20to\x20limi\ + t\x20the\x20total\x20amount\x20of\x20wall\x20time\x20spent\n\x20retrying\ + .\n\n\x20###\x20Idle\x20Transactions\n\n\x20A\x20transaction\x20is\x20co\ + nsidered\x20idle\x20if\x20it\x20has\x20no\x20outstanding\x20reads\x20or\ + \n\x20SQL\x20queries\x20and\x20has\x20not\x20started\x20a\x20read\x20or\ + \x20SQL\x20query\x20within\x20the\x20last\x2010\n\x20seconds.\x20Idle\ + \x20transactions\x20can\x20be\x20aborted\x20by\x20Cloud\x20Spanner\x20so\ + \x20that\x20they\n\x20don't\x20hold\x20on\x20to\x20locks\x20indefinitely\ + .\x20In\x20that\x20case,\x20the\x20commit\x20will\n\x20fail\x20with\x20e\ + rror\x20`ABORTED`.\n\n\x20If\x20this\x20behavior\x20is\x20undesirable,\ + \x20periodically\x20executing\x20a\x20simple\n\x20SQL\x20query\x20in\x20\ + the\x20transaction\x20(e.g.,\x20`SELECT\x201`)\x20prevents\x20the\n\x20t\ + ransaction\x20from\x20becoming\x20idle.\n\n\x20##\x20Snapshot\x20Read-On\ + ly\x20Transactions\n\n\x20Snapshot\x20read-only\x20transactions\x20provi\ + des\x20a\x20simpler\x20method\x20than\n\x20locking\x20read-write\x20tran\ + sactions\x20for\x20doing\x20several\x20consistent\n\x20reads.\x20However\ + ,\x20this\x20type\x20of\x20transaction\x20does\x20not\x20support\x20writ\ + es.\n\n\x20Snapshot\x20transactions\x20do\x20not\x20take\x20locks.\x20In\ + stead,\x20they\x20work\x20by\n\x20choosing\x20a\x20Cloud\x20Spanner\x20t\ + imestamp,\x20then\x20executing\x20all\x20reads\x20at\x20that\n\x20timest\ + amp.\x20Since\x20they\x20do\x20not\x20acquire\x20locks,\x20they\x20do\ + \x20not\x20block\n\x20concurrent\x20read-write\x20transactions.\n\n\x20U\ + nlike\x20locking\x20read-write\x20transactions,\x20snapshot\x20read-only\ + \n\x20transactions\x20never\x20abort.\x20They\x20can\x20fail\x20if\x20th\ + e\x20chosen\x20read\n\x20timestamp\x20is\x20garbage\x20collected;\x20how\ + ever,\x20the\x20default\x20garbage\n\x20collection\x20policy\x20is\x20ge\ + nerous\x20enough\x20that\x20most\x20applications\x20do\x20not\n\x20need\ + \x20to\x20worry\x20about\x20this\x20in\x20practice.\n\n\x20Snapshot\x20r\ + ead-only\x20transactions\x20do\x20not\x20need\x20to\x20call\n\x20[Commit\ + ][google.spanner.v1.Spanner.Commit]\x20or\n\x20[Rollback][google.spanner\ + .v1.Spanner.Rollback]\x20(and\x20in\x20fact\x20are\x20not\n\x20permitted\ + \x20to\x20do\x20so).\n\n\x20To\x20execute\x20a\x20snapshot\x20transactio\ + n,\x20the\x20client\x20specifies\x20a\x20timestamp\n\x20bound,\x20which\ + \x20tells\x20Cloud\x20Spanner\x20how\x20to\x20choose\x20a\x20read\x20tim\ + estamp.\n\n\x20The\x20types\x20of\x20timestamp\x20bound\x20are:\n\n\x20\ + \x20\x20-\x20Strong\x20(the\x20default).\n\x20\x20\x20-\x20Bounded\x20st\ + aleness.\n\x20\x20\x20-\x20Exact\x20staleness.\n\n\x20If\x20the\x20Cloud\ + \x20Spanner\x20database\x20to\x20be\x20read\x20is\x20geographically\x20d\ + istributed,\n\x20stale\x20read-only\x20transactions\x20can\x20execute\ + \x20more\x20quickly\x20than\x20strong\n\x20or\x20read-write\x20transacti\ + on,\x20because\x20they\x20are\x20able\x20to\x20execute\x20far\n\x20from\ + \x20the\x20leader\x20replica.\n\n\x20Each\x20type\x20of\x20timestamp\x20\ + bound\x20is\x20discussed\x20in\x20detail\x20below.\n\n\x20###\x20Strong\ + \n\n\x20Strong\x20reads\x20are\x20guaranteed\x20to\x20see\x20the\x20effe\ + cts\x20of\x20all\x20transactions\n\x20that\x20have\x20committed\x20befor\ + e\x20the\x20start\x20of\x20the\x20read.\x20Furthermore,\x20all\n\x20rows\ + \x20yielded\x20by\x20a\x20single\x20read\x20are\x20consistent\x20with\ + \x20each\x20other\x20--\x20if\n\x20any\x20part\x20of\x20the\x20read\x20o\ + bserves\x20a\x20transaction,\x20all\x20parts\x20of\x20the\x20read\n\x20s\ + ee\x20the\x20transaction.\n\n\x20Strong\x20reads\x20are\x20not\x20repeat\ + able:\x20two\x20consecutive\x20strong\x20read-only\n\x20transactions\x20\ + might\x20return\x20inconsistent\x20results\x20if\x20there\x20are\n\x20co\ + ncurrent\x20writes.\x20If\x20consistency\x20across\x20reads\x20is\x20req\ + uired,\x20the\n\x20reads\x20should\x20be\x20executed\x20within\x20a\x20t\ + ransaction\x20or\x20at\x20an\x20exact\x20read\n\x20timestamp.\n\n\x20See\ + \x20[TransactionOptions.ReadOnly.strong][google.spanner.v1.TransactionOp\ + tions.ReadOnly.strong].\n\n\x20###\x20Exact\x20Staleness\n\n\x20These\ + \x20timestamp\x20bounds\x20execute\x20reads\x20at\x20a\x20user-specified\ + \n\x20timestamp.\x20Reads\x20at\x20a\x20timestamp\x20are\x20guaranteed\ + \x20to\x20see\x20a\x20consistent\n\x20prefix\x20of\x20the\x20global\x20t\ + ransaction\x20history:\x20they\x20observe\n\x20modifications\x20done\x20\ + by\x20all\x20transactions\x20with\x20a\x20commit\x20timestamp\x20<=\n\ + \x20the\x20read\x20timestamp,\x20and\x20observe\x20none\x20of\x20the\x20\ + modifications\x20done\x20by\n\x20transactions\x20with\x20a\x20larger\x20\ + commit\x20timestamp.\x20They\x20will\x20block\x20until\n\x20all\x20confl\ + icting\x20transactions\x20that\x20may\x20be\x20assigned\x20commit\x20tim\ + estamps\n\x20<=\x20the\x20read\x20timestamp\x20have\x20finished.\n\n\x20\ + The\x20timestamp\x20can\x20either\x20be\x20expressed\x20as\x20an\x20abso\ + lute\x20Cloud\x20Spanner\x20commit\n\x20timestamp\x20or\x20a\x20stalenes\ + s\x20relative\x20to\x20the\x20current\x20time.\n\n\x20These\x20modes\x20\ + do\x20not\x20require\x20a\x20\"negotiation\x20phase\"\x20to\x20pick\x20a\ + \n\x20timestamp.\x20As\x20a\x20result,\x20they\x20execute\x20slightly\ + \x20faster\x20than\x20the\n\x20equivalent\x20boundedly\x20stale\x20concu\ + rrency\x20modes.\x20On\x20the\x20other\x20hand,\n\x20boundedly\x20stale\ + \x20reads\x20usually\x20return\x20fresher\x20results.\n\n\x20See\x20[Tra\ + nsactionOptions.ReadOnly.read_timestamp][google.spanner.v1.TransactionOp\ + tions.ReadOnly.read_timestamp]\x20and\n\x20[TransactionOptions.ReadOnly.\ + exact_staleness][google.spanner.v1.TransactionOptions.ReadOnly.exact_sta\ + leness].\n\n\x20###\x20Bounded\x20Staleness\n\n\x20Bounded\x20staleness\ + \x20modes\x20allow\x20Cloud\x20Spanner\x20to\x20pick\x20the\x20read\x20t\ + imestamp,\n\x20subject\x20to\x20a\x20user-provided\x20staleness\x20bound\ + .\x20Cloud\x20Spanner\x20chooses\x20the\n\x20newest\x20timestamp\x20with\ + in\x20the\x20staleness\x20bound\x20that\x20allows\x20execution\n\x20of\ + \x20the\x20reads\x20at\x20the\x20closest\x20available\x20replica\x20with\ + out\x20blocking.\n\n\x20All\x20rows\x20yielded\x20are\x20consistent\x20w\ + ith\x20each\x20other\x20--\x20if\x20any\x20part\x20of\n\x20the\x20read\ + \x20observes\x20a\x20transaction,\x20all\x20parts\x20of\x20the\x20read\ + \x20see\x20the\n\x20transaction.\x20Boundedly\x20stale\x20reads\x20are\ + \x20not\x20repeatable:\x20two\x20stale\n\x20reads,\x20even\x20if\x20they\ + \x20use\x20the\x20same\x20staleness\x20bound,\x20can\x20execute\x20at\n\ + \x20different\x20timestamps\x20and\x20thus\x20return\x20inconsistent\x20\ + results.\n\n\x20Boundedly\x20stale\x20reads\x20execute\x20in\x20two\x20p\ + hases:\x20the\x20first\x20phase\n\x20negotiates\x20a\x20timestamp\x20amo\ + ng\x20all\x20replicas\x20needed\x20to\x20serve\x20the\n\x20read.\x20In\ + \x20the\x20second\x20phase,\x20reads\x20are\x20executed\x20at\x20the\x20\ + negotiated\n\x20timestamp.\n\n\x20As\x20a\x20result\x20of\x20the\x20two\ + \x20phase\x20execution,\x20bounded\x20staleness\x20reads\x20are\n\x20usu\ + ally\x20a\x20little\x20slower\x20than\x20comparable\x20exact\x20stalenes\ + s\n\x20reads.\x20However,\x20they\x20are\x20typically\x20able\x20to\x20r\ + eturn\x20fresher\n\x20results,\x20and\x20are\x20more\x20likely\x20to\x20\ + execute\x20at\x20the\x20closest\x20replica.\n\n\x20Because\x20the\x20tim\ + estamp\x20negotiation\x20requires\x20up-front\x20knowledge\x20of\n\x20wh\ + ich\x20rows\x20will\x20be\x20read,\x20it\x20can\x20only\x20be\x20used\ + \x20with\x20single-use\n\x20read-only\x20transactions.\n\n\x20See\x20[Tr\ + ansactionOptions.ReadOnly.max_staleness][google.spanner.v1.TransactionOp\ + tions.ReadOnly.max_staleness]\x20and\n\x20[TransactionOptions.ReadOnly.m\ + in_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.min_rea\ + d_timestamp].\n\n\x20###\x20Old\x20Read\x20Timestamps\x20and\x20Garbage\ + \x20Collection\n\n\x20Cloud\x20Spanner\x20continuously\x20garbage\x20col\ + lects\x20deleted\x20and\x20overwritten\x20data\n\x20in\x20the\x20backgro\ + und\x20to\x20reclaim\x20storage\x20space.\x20This\x20process\x20is\x20kn\ + own\n\x20as\x20\"version\x20GC\".\x20By\x20default,\x20version\x20GC\x20\ + reclaims\x20versions\x20after\x20they\n\x20are\x20one\x20hour\x20old.\ + \x20Because\x20of\x20this,\x20Cloud\x20Spanner\x20cannot\x20perform\x20r\ + eads\n\x20at\x20read\x20timestamps\x20more\x20than\x20one\x20hour\x20in\ + \x20the\x20past.\x20This\n\x20restriction\x20also\x20applies\x20to\x20in\ + -progress\x20reads\x20and/or\x20SQL\x20queries\x20whose\n\x20timestamp\ + \x20become\x20too\x20old\x20while\x20executing.\x20Reads\x20and\x20SQL\ + \x20queries\x20with\n\x20too-old\x20read\x20timestamps\x20fail\x20with\ + \x20the\x20error\x20`FAILED_PRECONDITION`.\n\n\x20##\x20Partitioned\x20D\ + ML\x20Transactions\n\n\x20Partitioned\x20DML\x20transactions\x20are\x20u\ + sed\x20to\x20execute\x20DML\x20statements\x20with\x20a\n\x20different\ + \x20execution\x20strategy\x20that\x20provides\x20different,\x20and\x20of\ + ten\x20better,\n\x20scalability\x20properties\x20for\x20large,\x20table-\ + wide\x20operations\x20than\x20DML\x20in\x20a\n\x20ReadWrite\x20transacti\ + on.\x20Smaller\x20scoped\x20statements,\x20such\x20as\x20an\x20OLTP\x20w\ + orkload,\n\x20should\x20prefer\x20using\x20ReadWrite\x20transactions.\n\ + \n\x20Partitioned\x20DML\x20partitions\x20the\x20keyspace\x20and\x20runs\ + \x20the\x20DML\x20statement\x20on\x20each\n\x20partition\x20in\x20separa\ + te,\x20internal\x20transactions.\x20These\x20transactions\x20commit\n\ + \x20automatically\x20when\x20complete,\x20and\x20run\x20independently\ + \x20from\x20one\x20another.\n\n\x20To\x20reduce\x20lock\x20contention,\ + \x20this\x20execution\x20strategy\x20only\x20acquires\x20read\x20locks\n\ + \x20on\x20rows\x20that\x20match\x20the\x20WHERE\x20clause\x20of\x20the\ + \x20statement.\x20Additionally,\x20the\n\x20smaller\x20per-partition\x20\ + transactions\x20hold\x20locks\x20for\x20less\x20time.\n\n\x20That\x20sai\ + d,\x20Partitioned\x20DML\x20is\x20not\x20a\x20drop-in\x20replacement\x20\ + for\x20standard\x20DML\x20used\n\x20in\x20ReadWrite\x20transactions.\n\n\ + \x20\x20-\x20The\x20DML\x20statement\x20must\x20be\x20fully-partitionabl\ + e.\x20Specifically,\x20the\x20statement\n\x20\x20\x20\x20must\x20be\x20e\ + xpressible\x20as\x20the\x20union\x20of\x20many\x20statements\x20which\ + \x20each\x20access\x20only\n\x20\x20\x20\x20a\x20single\x20row\x20of\x20\ + the\x20table.\n\n\x20\x20-\x20The\x20statement\x20is\x20not\x20applied\ + \x20atomically\x20to\x20all\x20rows\x20of\x20the\x20table.\x20Rather,\n\ + \x20\x20\x20\x20the\x20statement\x20is\x20applied\x20atomically\x20to\ + \x20partitions\x20of\x20the\x20table,\x20in\n\x20\x20\x20\x20independent\ + \x20transactions.\x20Secondary\x20index\x20rows\x20are\x20updated\x20ato\ + mically\n\x20\x20\x20\x20with\x20the\x20base\x20table\x20rows.\n\n\x20\ + \x20-\x20Partitioned\x20DML\x20does\x20not\x20guarantee\x20exactly-once\ + \x20execution\x20semantics\n\x20\x20\x20\x20against\x20a\x20partition.\ + \x20The\x20statement\x20will\x20be\x20applied\x20at\x20least\x20once\x20\ + to\x20each\n\x20\x20\x20\x20partition.\x20It\x20is\x20strongly\x20recomm\ + ended\x20that\x20the\x20DML\x20statement\x20should\x20be\n\x20\x20\x20\ + \x20idempotent\x20to\x20avoid\x20unexpected\x20results.\x20For\x20instan\ + ce,\x20it\x20is\x20potentially\n\x20\x20\x20\x20dangerous\x20to\x20run\ + \x20a\x20statement\x20such\x20as\n\x20\x20\x20\x20`UPDATE\x20table\x20SE\ + T\x20column\x20=\x20column\x20+\x201`\x20as\x20it\x20could\x20be\x20run\ + \x20multiple\x20times\n\x20\x20\x20\x20against\x20some\x20rows.\n\n\x20\ \x20-\x20The\x20partitions\x20are\x20committed\x20automatically\x20-\x20\ there\x20is\x20no\x20support\x20for\n\x20\x20\x20\x20Commit\x20or\x20Rol\ lback.\x20If\x20the\x20call\x20returns\x20an\x20error,\x20or\x20if\x20th\ @@ -2147,48 +1885,25 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ove,\x20Partitioned\x20DML\x20is\x20good\x20fit\x20for\x20large,\x20data\ base-wide,\n\x20operations\x20that\x20are\x20idempotent,\x20such\x20as\ \x20deleting\x20old\x20rows\x20from\x20a\x20very\x20large\n\x20table.\n\ - \n\x0b\n\x03\x04\0\x01\x12\x04\xe1\x02\x08\x1a\nu\n\x04\x04\0\x03\0\x12\ - \x06\xe4\x02\x02\xfc\x02\x03\x1ae\x20Message\x20type\x20to\x20initiate\ + \n\x0b\n\x03\x04\0\x01\x12\x04\xb3\x02\x08\x1a\nu\n\x04\x04\0\x03\0\x12\ + \x06\xb6\x02\x02\xb8\x02\x03\x1ae\x20Message\x20type\x20to\x20initiate\ \x20a\x20read-write\x20transaction.\x20Currently\x20this\n\x20transactio\ n\x20type\x20has\x20no\x20options.\n\n\r\n\x05\x04\0\x03\0\x01\x12\x04\ - \xe4\x02\n\x13\nb\n\x06\x04\0\x03\0\x04\0\x12\x06\xe7\x02\x04\xf8\x02\ - \x05\x1aP\x20`ReadLockMode`\x20is\x20used\x20to\x20set\x20the\x20read\ - \x20lock\x20mode\x20for\x20read-write\n\x20transactions.\n\n\x0f\n\x07\ - \x04\0\x03\0\x04\0\x01\x12\x04\xe7\x02\t\x15\nf\n\x08\x04\0\x03\0\x04\0\ - \x02\0\x12\x04\xeb\x02\x06%\x1aT\x20Default\x20value.\n\n\x20If\x20the\ - \x20value\x20is\x20not\x20specified,\x20the\x20pessimistic\x20read\x20lo\ - ck\x20is\x20used.\n\n\x11\n\t\x04\0\x03\0\x04\0\x02\0\x01\x12\x04\xeb\ - \x02\x06\x20\n\x11\n\t\x04\0\x03\0\x04\0\x02\0\x02\x12\x04\xeb\x02#$\nY\ - \n\x08\x04\0\x03\0\x04\0\x02\x01\x12\x04\xf0\x02\x06\x16\x1aG\x20Pessimi\ - stic\x20lock\x20mode.\n\n\x20Read\x20locks\x20are\x20acquired\x20immedia\ - tely\x20on\x20read.\n\n\x11\n\t\x04\0\x03\0\x04\0\x02\x01\x01\x12\x04\ - \xf0\x02\x06\x11\n\x11\n\t\x04\0\x03\0\x04\0\x02\x01\x02\x12\x04\xf0\x02\ - \x14\x15\n\xec\x01\n\x08\x04\0\x03\0\x04\0\x02\x02\x12\x04\xf7\x02\x06\ - \x15\x1a\xd9\x01\x20Optimistic\x20lock\x20mode.\n\n\x20Locks\x20for\x20r\ - eads\x20within\x20the\x20transaction\x20are\x20not\x20acquired\x20on\x20\ - read.\n\x20Instead\x20the\x20locks\x20are\x20acquired\x20on\x20a\x20comm\ - it\x20to\x20validate\x20that\n\x20read/queried\x20data\x20has\x20not\x20\ - changed\x20since\x20the\x20transaction\x20started.\n\n\x11\n\t\x04\0\x03\ - \0\x04\0\x02\x02\x01\x12\x04\xf7\x02\x06\x10\n\x11\n\t\x04\0\x03\0\x04\0\ - \x02\x02\x02\x12\x04\xf7\x02\x13\x14\n5\n\x06\x04\0\x03\0\x02\0\x12\x04\ - \xfb\x02\x04$\x1a%\x20Read\x20lock\x20mode\x20for\x20the\x20transaction.\ - \n\n\x0f\n\x07\x04\0\x03\0\x02\0\x06\x12\x04\xfb\x02\x04\x10\n\x0f\n\x07\ - \x04\0\x03\0\x02\0\x01\x12\x04\xfb\x02\x11\x1f\n\x0f\n\x07\x04\0\x03\0\ - \x02\0\x03\x12\x04\xfb\x02\"#\nG\n\x04\x04\0\x03\x01\x12\x04\xff\x02\x02\ - \x1b\x1a9\x20Message\x20type\x20to\x20initiate\x20a\x20Partitioned\x20DM\ - L\x20transaction.\n\n\r\n\x05\x04\0\x03\x01\x01\x12\x04\xff\x02\n\x18\nC\ - \n\x04\x04\0\x03\x02\x12\x06\x82\x03\x02\xc4\x03\x03\x1a3\x20Message\x20\ + \xb6\x02\n\x13\nI\n\x04\x04\0\x03\x01\x12\x06\xbb\x02\x02\xbd\x02\x03\ + \x1a9\x20Message\x20type\x20to\x20initiate\x20a\x20Partitioned\x20DML\ + \x20transaction.\n\n\r\n\x05\x04\0\x03\x01\x01\x12\x04\xbb\x02\n\x18\nC\ + \n\x04\x04\0\x03\x02\x12\x06\xc0\x02\x02\x81\x03\x03\x1a3\x20Message\x20\ type\x20to\x20initiate\x20a\x20read-only\x20transaction.\n\n\r\n\x05\x04\ - \0\x03\x02\x01\x12\x04\x82\x03\n\x12\nN\n\x06\x04\0\x03\x02\x08\0\x12\ - \x06\x84\x03\x04\xbe\x03\x05\x1a<\x20How\x20to\x20choose\x20the\x20times\ + \0\x03\x02\x01\x12\x04\xc0\x02\n\x12\nN\n\x06\x04\0\x03\x02\x08\0\x12\ + \x06\xc2\x02\x04\xfc\x02\x05\x1a<\x20How\x20to\x20choose\x20the\x20times\ tamp\x20for\x20the\x20read-only\x20transaction.\n\n\x0f\n\x07\x04\0\x03\ - \x02\x08\0\x01\x12\x04\x84\x03\n\x19\n_\n\x06\x04\0\x03\x02\x02\0\x12\ - \x04\x87\x03\x06\x16\x1aO\x20Read\x20at\x20a\x20timestamp\x20where\x20al\ + \x02\x08\0\x01\x12\x04\xc2\x02\n\x19\n_\n\x06\x04\0\x03\x02\x02\0\x12\ + \x04\xc5\x02\x06\x16\x1aO\x20Read\x20at\x20a\x20timestamp\x20where\x20al\ l\x20previously\x20committed\x20transactions\n\x20are\x20visible.\n\n\ - \x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x87\x03\x06\n\n\x0f\n\x07\x04\ - \0\x03\x02\x02\0\x01\x12\x04\x87\x03\x0b\x11\n\x0f\n\x07\x04\0\x03\x02\ - \x02\0\x03\x12\x04\x87\x03\x14\x15\n\xc6\x03\n\x06\x04\0\x03\x02\x02\x01\ - \x12\x04\x93\x03\x067\x1a\xb5\x03\x20Executes\x20all\x20reads\x20at\x20a\ + \x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\xc5\x02\x06\n\n\x0f\n\x07\x04\ + \0\x03\x02\x02\0\x01\x12\x04\xc5\x02\x0b\x11\n\x0f\n\x07\x04\0\x03\x02\ + \x02\0\x03\x12\x04\xc5\x02\x14\x15\n\xc6\x03\n\x06\x04\0\x03\x02\x02\x01\ + \x12\x04\xd1\x02\x067\x1a\xb5\x03\x20Executes\x20all\x20reads\x20at\x20a\ \x20timestamp\x20>=\x20`min_read_timestamp`.\n\n\x20This\x20is\x20useful\ \x20for\x20requesting\x20fresher\x20data\x20than\x20some\x20previous\n\ \x20read,\x20or\x20data\x20that\x20is\x20fresh\x20enough\x20to\x20observ\ @@ -2198,9 +1913,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ons.\n\n\x20A\x20timestamp\x20in\x20RFC3339\x20UTC\x20\\\"Zulu\\\"\x20fo\ rmat,\x20accurate\x20to\x20nanoseconds.\n\x20Example:\x20`\"2014-10-02T1\ 5:01:23.045123456Z\"`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x06\x12\x04\ - \x93\x03\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\x93\x03\ - \x202\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x93\x0356\n\xba\x04\ - \n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa2\x03\x061\x1a\xa9\x04\x20Read\ + \xd1\x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\xd1\x02\ + \x202\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\xd1\x0256\n\xba\x04\ + \n\x06\x04\0\x03\x02\x02\x02\x12\x04\xe0\x02\x061\x1a\xa9\x04\x20Read\ \x20data\x20at\x20a\x20timestamp\x20>=\x20`NOW\x20-\x20max_staleness`\n\ \x20seconds.\x20Guarantees\x20that\x20all\x20writes\x20that\x20have\x20c\ ommitted\x20more\n\x20than\x20the\x20specified\x20number\x20of\x20second\ @@ -2213,9 +1928,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ eness\x20if\x20the\x20local\n\x20replica\x20has\x20fallen\x20behind.\n\n\ \x20Note\x20that\x20this\x20option\x20can\x20only\x20be\x20used\x20in\ \x20single-use\n\x20transactions.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x02\ - \x06\x12\x04\xa2\x03\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\ - \x04\xa2\x03\x1f,\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x03\x12\x04\xa2\x03/\ - 0\n\xb6\x04\n\x06\x04\0\x03\x02\x02\x03\x12\x04\xb0\x03\x063\x1a\xa5\x04\ + \x06\x12\x04\xe0\x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\ + \x04\xe0\x02\x1f,\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x03\x12\x04\xe0\x02/\ + 0\n\xb6\x04\n\x06\x04\0\x03\x02\x02\x03\x12\x04\xee\x02\x063\x1a\xa5\x04\ \x20Executes\x20all\x20reads\x20at\x20the\x20given\x20timestamp.\x20Unli\ ke\x20other\x20modes,\n\x20reads\x20at\x20a\x20specific\x20timestamp\x20\ are\x20repeatable;\x20the\x20same\x20read\x20at\n\x20the\x20same\x20time\ @@ -2227,10 +1942,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\ reads\x20against\x20a\x20consistent\x20snapshot\x20of\x20the\n\x20data.\ \n\n\x20A\x20timestamp\x20in\x20RFC3339\x20UTC\x20\\\"Zulu\\\"\x20format\ ,\x20accurate\x20to\x20nanoseconds.\n\x20Example:\x20`\"2014-10-02T15:01\ - :23.045123456Z\"`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x06\x12\x04\xb0\ - \x03\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x01\x12\x04\xb0\x03\x20.\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\xb0\x0312\n\x92\x04\n\x06\ - \x04\0\x03\x02\x02\x04\x12\x04\xbd\x03\x063\x1a\x81\x04\x20Executes\x20a\ + :23.045123456Z\"`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x06\x12\x04\xee\ + \x02\x06\x1f\n\x0f\n\x07\x04\0\x03\x02\x02\x03\x01\x12\x04\xee\x02\x20.\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x03\x03\x12\x04\xee\x0212\n\x92\x04\n\x06\ + \x04\0\x03\x02\x02\x04\x12\x04\xfb\x02\x063\x1a\x81\x04\x20Executes\x20a\ ll\x20reads\x20at\x20a\x20timestamp\x20that\x20is\x20`exact_staleness`\n\ \x20old.\x20The\x20timestamp\x20is\x20chosen\x20soon\x20after\x20the\x20\ read\x20is\x20started.\n\n\x20Guarantees\x20that\x20all\x20writes\x20tha\ @@ -2241,39 +1956,39 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ally\x20skewed\x20from\x20Cloud\x20Spanner\x20commit\n\x20timestamps.\n\ \n\x20Useful\x20for\x20reading\x20at\x20nearby\x20replicas\x20without\ \x20the\x20distributed\n\x20timestamp\x20negotiation\x20overhead\x20of\ - \x20`max_staleness`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\x12\x04\xbd\ - \x03\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\xbd\x03\x1f.\ - \n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\xbd\x0312\n\xaf\x01\n\x06\ - \x04\0\x03\x02\x02\x05\x12\x04\xc3\x03\x04#\x1a\x9e\x01\x20If\x20true,\ + \x20`max_staleness`.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x06\x12\x04\xfb\ + \x02\x06\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x04\x01\x12\x04\xfb\x02\x1f.\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x04\x03\x12\x04\xfb\x0212\n\xae\x01\n\x06\ + \x04\0\x03\x02\x02\x05\x12\x04\x80\x03\x04#\x1a\x9d\x01\x20If\x20true,\ \x20the\x20Cloud\x20Spanner-selected\x20read\x20timestamp\x20is\x20inclu\ ded\x20in\n\x20the\x20[Transaction][google.spanner.v1.Transaction]\x20me\ - ssage\x20that\x20describes\n\x20the\x20transaction.\n\n\x0f\n\x07\x04\0\ - \x03\x02\x02\x05\x05\x12\x04\xc3\x03\x04\x08\n\x0f\n\x07\x04\0\x03\x02\ - \x02\x05\x01\x12\x04\xc3\x03\t\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\ - \x12\x04\xc3\x03!\"\n4\n\x04\x04\0\x08\0\x12\x06\xc7\x03\x02\xdc\x03\x03\ + ssage\x20that\x20describes\x20the\x20transaction.\n\n\x0f\n\x07\x04\0\ + \x03\x02\x02\x05\x05\x12\x04\x80\x03\x04\x08\n\x0f\n\x07\x04\0\x03\x02\ + \x02\x05\x01\x12\x04\x80\x03\t\x1e\n\x0f\n\x07\x04\0\x03\x02\x02\x05\x03\ + \x12\x04\x80\x03!\"\n4\n\x04\x04\0\x08\0\x12\x06\x84\x03\x02\x99\x03\x03\ \x1a$\x20Required.\x20The\x20type\x20of\x20transaction.\n\n\r\n\x05\x04\ - \0\x08\0\x01\x12\x04\xc7\x03\x08\x0c\n\xc2\x01\n\x04\x04\0\x02\0\x12\x04\ - \xcd\x03\x04\x1d\x1a\xb3\x01\x20Transaction\x20may\x20write.\n\n\x20Auth\ + \0\x08\0\x01\x12\x04\x84\x03\x08\x0c\n\xc2\x01\n\x04\x04\0\x02\0\x12\x04\ + \x8a\x03\x04\x1d\x1a\xb3\x01\x20Transaction\x20may\x20write.\n\n\x20Auth\ orization\x20to\x20begin\x20a\x20read-write\x20transaction\x20requires\n\ \x20`spanner.databases.beginOrRollbackReadWriteTransaction`\x20permissio\ n\n\x20on\x20the\x20`session`\x20resource.\n\n\r\n\x05\x04\0\x02\0\x06\ - \x12\x04\xcd\x03\x04\r\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xcd\x03\x0e\x18\ - \n\r\n\x05\x04\0\x02\0\x03\x12\x04\xcd\x03\x1b\x1c\n\xc8\x01\n\x04\x04\0\ - \x02\x01\x12\x04\xd4\x03\x04'\x1a\xb9\x01\x20Partitioned\x20DML\x20trans\ + \x12\x04\x8a\x03\x04\r\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x8a\x03\x0e\x18\ + \n\r\n\x05\x04\0\x02\0\x03\x12\x04\x8a\x03\x1b\x1c\n\xc8\x01\n\x04\x04\0\ + \x02\x01\x12\x04\x91\x03\x04'\x1a\xb9\x01\x20Partitioned\x20DML\x20trans\ action.\n\n\x20Authorization\x20to\x20begin\x20a\x20Partitioned\x20DML\ \x20transaction\x20requires\n\x20`spanner.databases.beginPartitionedDmlT\ ransaction`\x20permission\n\x20on\x20the\x20`session`\x20resource.\n\n\r\ - \n\x05\x04\0\x02\x01\x06\x12\x04\xd4\x03\x04\x12\n\r\n\x05\x04\0\x02\x01\ - \x01\x12\x04\xd4\x03\x13\"\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xd4\x03%&\ - \n\xbb\x01\n\x04\x04\0\x02\x02\x12\x04\xdb\x03\x04\x1b\x1a\xac\x01\x20Tr\ + \n\x05\x04\0\x02\x01\x06\x12\x04\x91\x03\x04\x12\n\r\n\x05\x04\0\x02\x01\ + \x01\x12\x04\x91\x03\x13\"\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x91\x03%&\ + \n\xbb\x01\n\x04\x04\0\x02\x02\x12\x04\x98\x03\x04\x1b\x1a\xac\x01\x20Tr\ ansaction\x20will\x20not\x20write.\n\n\x20Authorization\x20to\x20begin\ \x20a\x20read-only\x20transaction\x20requires\n\x20`spanner.databases.be\ ginReadOnlyTransaction`\x20permission\n\x20on\x20the\x20`session`\x20res\ - ource.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\xdb\x03\x04\x0c\n\r\n\x05\ - \x04\0\x02\x02\x01\x12\x04\xdb\x03\r\x16\n\r\n\x05\x04\0\x02\x02\x03\x12\ - \x04\xdb\x03\x19\x1a\n\x1e\n\x02\x04\x01\x12\x06\xe0\x03\0\xf2\x03\x01\ - \x1a\x10\x20A\x20transaction.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\xe0\x03\ - \x08\x13\n\x88\x03\n\x04\x04\x01\x02\0\x12\x04\xe9\x03\x02\x0f\x1a\xf9\ + ource.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x98\x03\x04\x0c\n\r\n\x05\ + \x04\0\x02\x02\x01\x12\x04\x98\x03\r\x16\n\r\n\x05\x04\0\x02\x02\x03\x12\ + \x04\x98\x03\x19\x1a\n\x1e\n\x02\x04\x01\x12\x06\x9d\x03\0\xaf\x03\x01\ + \x1a\x10\x20A\x20transaction.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x9d\x03\ + \x08\x13\n\x88\x03\n\x04\x04\x01\x02\0\x12\x04\xa6\x03\x02\x0f\x1a\xf9\ \x02\x20`id`\x20may\x20be\x20used\x20to\x20identify\x20the\x20transactio\ n\x20in\x20subsequent\n\x20[Read][google.spanner.v1.Spanner.Read],\n\x20\ [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql],\n\x20[Commit][google\ @@ -2281,57 +1996,82 @@ static file_descriptor_proto_data: &'static [u8] = b"\ nner.Rollback]\x20calls.\n\n\x20Single-use\x20read-only\x20transactions\ \x20do\x20not\x20have\x20IDs,\x20because\n\x20single-use\x20transactions\ \x20do\x20not\x20support\x20multiple\x20requests.\n\n\r\n\x05\x04\x01\ - \x02\0\x05\x12\x04\xe9\x03\x02\x07\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\ - \xe9\x03\x08\n\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xe9\x03\r\x0e\n\xf2\ - \x02\n\x04\x04\x01\x02\x01\x12\x04\xf1\x03\x02/\x1a\xe3\x02\x20For\x20sn\ + \x02\0\x05\x12\x04\xa6\x03\x02\x07\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\ + \xa6\x03\x08\n\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xa6\x03\r\x0e\n\xf2\ + \x02\n\x04\x04\x01\x02\x01\x12\x04\xae\x03\x02/\x1a\xe3\x02\x20For\x20sn\ apshot\x20read-only\x20transactions,\x20the\x20read\x20timestamp\x20chos\ en\n\x20for\x20the\x20transaction.\x20Not\x20returned\x20by\x20default:\ \x20see\n\x20[TransactionOptions.ReadOnly.return_read_timestamp][google.\ spanner.v1.TransactionOptions.ReadOnly.return_read_timestamp].\n\n\x20A\ \x20timestamp\x20in\x20RFC3339\x20UTC\x20\\\"Zulu\\\"\x20format,\x20accu\ rate\x20to\x20nanoseconds.\n\x20Example:\x20`\"2014-10-02T15:01:23.04512\ - 3456Z\"`.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xf1\x03\x02\x1b\n\r\n\ - \x05\x04\x01\x02\x01\x01\x12\x04\xf1\x03\x1c*\n\r\n\x05\x04\x01\x02\x01\ - \x03\x12\x04\xf1\x03-.\n\x9f\x02\n\x02\x04\x02\x12\x06\xfa\x03\0\x8c\x04\ - \x01\x1a\x90\x02\x20This\x20message\x20is\x20used\x20to\x20select\x20the\ + 3456Z\"`.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\xae\x03\x02\x1b\n\r\n\ + \x05\x04\x01\x02\x01\x01\x12\x04\xae\x03\x1c*\n\r\n\x05\x04\x01\x02\x01\ + \x03\x12\x04\xae\x03-.\n\x9e\x02\n\x02\x04\x02\x12\x06\xb6\x03\0\xc7\x03\ + \x01\x1a\x8f\x02\x20This\x20message\x20is\x20used\x20to\x20select\x20the\ \x20transaction\x20in\x20which\x20a\n\x20[Read][google.spanner.v1.Spanne\ r.Read]\x20or\n\x20[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]\ \x20call\x20runs.\n\n\x20See\x20[TransactionOptions][google.spanner.v1.T\ - ransactionOptions]\x20for\x20more\n\x20information\x20about\x20transacti\ - ons.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xfa\x03\x08\x1b\ni\n\x04\x04\x02\ - \x08\0\x12\x06\xfd\x03\x02\x8b\x04\x03\x1aY\x20If\x20no\x20fields\x20are\ + ransactionOptions]\x20for\x20more\x20information\x20about\x20transaction\ + s.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xb6\x03\x08\x1b\ni\n\x04\x04\x02\ + \x08\0\x12\x06\xb9\x03\x02\xc6\x03\x03\x1aY\x20If\x20no\x20fields\x20are\ \x20set,\x20the\x20default\x20is\x20a\x20single\x20use\x20transaction\n\ \x20with\x20strong\x20concurrency.\n\n\r\n\x05\x04\x02\x08\0\x01\x12\x04\ - \xfd\x03\x08\x10\n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\x81\x04\x04&\x1a\ + \xb9\x03\x08\x10\n\xa9\x01\n\x04\x04\x02\x02\0\x12\x04\xbd\x03\x04&\x1a\ \x9a\x01\x20Execute\x20the\x20read\x20or\x20SQL\x20query\x20in\x20a\x20t\ emporary\x20transaction.\n\x20This\x20is\x20the\x20most\x20efficient\x20\ way\x20to\x20execute\x20a\x20transaction\x20that\n\x20consists\x20of\x20\ - a\x20single\x20SQL\x20query.\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\x81\ - \x04\x04\x16\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\x81\x04\x17!\n\r\n\x05\ - \x04\x02\x02\0\x03\x12\x04\x81\x04$%\nR\n\x04\x04\x02\x02\x01\x12\x04\ - \x84\x04\x04\x11\x1aD\x20Execute\x20the\x20read\x20or\x20SQL\x20query\ + a\x20single\x20SQL\x20query.\n\n\r\n\x05\x04\x02\x02\0\x06\x12\x04\xbd\ + \x03\x04\x16\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xbd\x03\x17!\n\r\n\x05\ + \x04\x02\x02\0\x03\x12\x04\xbd\x03$%\nR\n\x04\x04\x02\x02\x01\x12\x04\ + \xc0\x03\x04\x11\x1aD\x20Execute\x20the\x20read\x20or\x20SQL\x20query\ \x20in\x20a\x20previously-started\x20transaction.\n\n\r\n\x05\x04\x02\ - \x02\x01\x05\x12\x04\x84\x04\x04\t\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ - \x84\x04\n\x0c\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x84\x04\x0f\x10\n\ - \x99\x02\n\x04\x04\x02\x02\x02\x12\x04\x8a\x04\x04!\x1a\x8a\x02\x20Begin\ + \x02\x01\x05\x12\x04\xc0\x03\x04\t\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ + \xc0\x03\n\x0c\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xc0\x03\x0f\x10\n\ + \x98\x02\n\x04\x04\x02\x02\x02\x12\x04\xc5\x03\x04!\x1a\x89\x02\x20Begin\ \x20a\x20new\x20transaction\x20and\x20execute\x20this\x20read\x20or\x20S\ QL\x20query\x20in\n\x20it.\x20The\x20transaction\x20ID\x20of\x20the\x20n\ ew\x20transaction\x20is\x20returned\x20in\n\x20[ResultSetMetadata.transa\ - ction][google.spanner.v1.ResultSetMetadata.transaction],\n\x20which\x20i\ - s\x20a\x20[Transaction][google.spanner.v1.Transaction].\n\n\r\n\x05\x04\ - \x02\x02\x02\x06\x12\x04\x8a\x04\x04\x16\n\r\n\x05\x04\x02\x02\x02\x01\ - \x12\x04\x8a\x04\x17\x1c\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\x8a\x04\ + ction][google.spanner.v1.ResultSetMetadata.transaction],\x20which\x20is\ + \x20a\x20[Transaction][google.spanner.v1.Transaction].\n\n\r\n\x05\x04\ + \x02\x02\x02\x06\x12\x04\xc5\x03\x04\x16\n\r\n\x05\x04\x02\x02\x02\x01\ + \x12\x04\xc5\x03\x17\x1c\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xc5\x03\ \x1f\x20b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone()); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(6); + messages.push(TransactionOptions::generated_message_descriptor_data()); + messages.push(Transaction::generated_message_descriptor_data()); + messages.push(TransactionSelector::generated_message_descriptor_data()); + messages.push(transaction_options::ReadWrite::generated_message_descriptor_data()); + messages.push(transaction_options::PartitionedDml::generated_message_descriptor_data()); + messages.push(transaction_options::ReadOnly::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/spanner/v1/type_pb.rs b/googleapis-raw/src/spanner/v1/type_pb.rs deleted file mode 100644 index b227621..0000000 --- a/googleapis-raw/src/spanner/v1/type_pb.rs +++ /dev/null @@ -1,1050 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/spanner/v1/type.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Type { - // message fields - pub code: TypeCode, - pub array_element_type: ::protobuf::SingularPtrField, - pub struct_type: ::protobuf::SingularPtrField, - pub type_annotation: TypeAnnotationCode, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Type { - fn default() -> &'a Type { - ::default_instance() - } -} - -impl Type { - pub fn new() -> Type { - ::std::default::Default::default() - } - - // .google.spanner.v1.TypeCode code = 1; - - - pub fn get_code(&self) -> TypeCode { - self.code - } - pub fn clear_code(&mut self) { - self.code = TypeCode::TYPE_CODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_code(&mut self, v: TypeCode) { - self.code = v; - } - - // .google.spanner.v1.Type array_element_type = 2; - - - pub fn get_array_element_type(&self) -> &Type { - self.array_element_type.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_array_element_type(&mut self) { - self.array_element_type.clear(); - } - - pub fn has_array_element_type(&self) -> bool { - self.array_element_type.is_some() - } - - // Param is passed by value, moved - pub fn set_array_element_type(&mut self, v: Type) { - self.array_element_type = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_array_element_type(&mut self) -> &mut Type { - if self.array_element_type.is_none() { - self.array_element_type.set_default(); - } - self.array_element_type.as_mut().unwrap() - } - - // Take field - pub fn take_array_element_type(&mut self) -> Type { - self.array_element_type.take().unwrap_or_else(|| Type::new()) - } - - // .google.spanner.v1.StructType struct_type = 3; - - - pub fn get_struct_type(&self) -> &StructType { - self.struct_type.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_struct_type(&mut self) { - self.struct_type.clear(); - } - - pub fn has_struct_type(&self) -> bool { - self.struct_type.is_some() - } - - // Param is passed by value, moved - pub fn set_struct_type(&mut self, v: StructType) { - self.struct_type = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_struct_type(&mut self) -> &mut StructType { - if self.struct_type.is_none() { - self.struct_type.set_default(); - } - self.struct_type.as_mut().unwrap() - } - - // Take field - pub fn take_struct_type(&mut self) -> StructType { - self.struct_type.take().unwrap_or_else(|| StructType::new()) - } - - // .google.spanner.v1.TypeAnnotationCode type_annotation = 4; - - - pub fn get_type_annotation(&self) -> TypeAnnotationCode { - self.type_annotation - } - pub fn clear_type_annotation(&mut self) { - self.type_annotation = TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED; - } - - // Param is passed by value, moved - pub fn set_type_annotation(&mut self, v: TypeAnnotationCode) { - self.type_annotation = v; - } -} - -impl ::protobuf::Message for Type { - fn is_initialized(&self) -> bool { - for v in &self.array_element_type { - if !v.is_initialized() { - return false; - } - }; - for v in &self.struct_type { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.code, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.array_element_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.struct_type)?; - }, - 4 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.type_annotation, 4, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.code != TypeCode::TYPE_CODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(1, self.code); - } - if let Some(ref v) = self.array_element_type.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.struct_type.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.type_annotation != TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED { - my_size += ::protobuf::rt::enum_size(4, self.type_annotation); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.code != TypeCode::TYPE_CODE_UNSPECIFIED { - os.write_enum(1, ::protobuf::ProtobufEnum::value(&self.code))?; - } - if let Some(ref v) = self.array_element_type.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.struct_type.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.type_annotation != TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED { - os.write_enum(4, ::protobuf::ProtobufEnum::value(&self.type_annotation))?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Type { - Type::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "code", - |m: &Type| { &m.code }, - |m: &mut Type| { &mut m.code }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "array_element_type", - |m: &Type| { &m.array_element_type }, - |m: &mut Type| { &mut m.array_element_type }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "struct_type", - |m: &Type| { &m.struct_type }, - |m: &mut Type| { &mut m.struct_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "type_annotation", - |m: &Type| { &m.type_annotation }, - |m: &mut Type| { &mut m.type_annotation }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Type", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Type { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Type::new) - } -} - -impl ::protobuf::Clear for Type { - fn clear(&mut self) { - self.code = TypeCode::TYPE_CODE_UNSPECIFIED; - self.array_element_type.clear(); - self.struct_type.clear(); - self.type_annotation = TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Type { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Type { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StructType { - // message fields - pub fields: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StructType { - fn default() -> &'a StructType { - ::default_instance() - } -} - -impl StructType { - pub fn new() -> StructType { - ::std::default::Default::default() - } - - // repeated .google.spanner.v1.StructType.Field fields = 1; - - - pub fn get_fields(&self) -> &[StructType_Field] { - &self.fields - } - pub fn clear_fields(&mut self) { - self.fields.clear(); - } - - // Param is passed by value, moved - pub fn set_fields(&mut self, v: ::protobuf::RepeatedField) { - self.fields = v; - } - - // Mutable pointer to the field. - pub fn mut_fields(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.fields - } - - // Take field - pub fn take_fields(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for StructType { - fn is_initialized(&self) -> bool { - for v in &self.fields { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.fields { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.fields { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StructType { - StructType::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "fields", - |m: &StructType| { &m.fields }, - |m: &mut StructType| { &mut m.fields }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StructType", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StructType { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StructType::new) - } -} - -impl ::protobuf::Clear for StructType { - fn clear(&mut self) { - self.fields.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StructType { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StructType { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StructType_Field { - // message fields - pub name: ::std::string::String, - pub field_type: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StructType_Field { - fn default() -> &'a StructType_Field { - ::default_instance() - } -} - -impl StructType_Field { - pub fn new() -> StructType_Field { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // .google.spanner.v1.Type type = 2; - - - pub fn get_field_type(&self) -> &Type { - self.field_type.as_ref().unwrap_or_else(|| ::default_instance()) - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - pub fn has_field_type(&self) -> bool { - self.field_type.is_some() - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: Type) { - self.field_type = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut Type { - if self.field_type.is_none() { - self.field_type.set_default(); - } - self.field_type.as_mut().unwrap() - } - - // Take field - pub fn take_field_type(&mut self) -> Type { - self.field_type.take().unwrap_or_else(|| Type::new()) - } -} - -impl ::protobuf::Message for StructType_Field { - fn is_initialized(&self) -> bool { - for v in &self.field_type { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_type)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if let Some(ref v) = self.field_type.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if let Some(ref v) = self.field_type.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StructType_Field { - StructType_Field::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &StructType_Field| { &m.name }, - |m: &mut StructType_Field| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "type", - |m: &StructType_Field| { &m.field_type }, - |m: &mut StructType_Field| { &mut m.field_type }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StructType.Field", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static StructType_Field { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(StructType_Field::new) - } -} - -impl ::protobuf::Clear for StructType_Field { - fn clear(&mut self) { - self.name.clear(); - self.field_type.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StructType_Field { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StructType_Field { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TypeCode { - TYPE_CODE_UNSPECIFIED = 0, - BOOL = 1, - INT64 = 2, - FLOAT64 = 3, - TIMESTAMP = 4, - DATE = 5, - STRING = 6, - BYTES = 7, - ARRAY = 8, - STRUCT = 9, - NUMERIC = 10, - JSON = 11, -} - -impl ::protobuf::ProtobufEnum for TypeCode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TypeCode::TYPE_CODE_UNSPECIFIED), - 1 => ::std::option::Option::Some(TypeCode::BOOL), - 2 => ::std::option::Option::Some(TypeCode::INT64), - 3 => ::std::option::Option::Some(TypeCode::FLOAT64), - 4 => ::std::option::Option::Some(TypeCode::TIMESTAMP), - 5 => ::std::option::Option::Some(TypeCode::DATE), - 6 => ::std::option::Option::Some(TypeCode::STRING), - 7 => ::std::option::Option::Some(TypeCode::BYTES), - 8 => ::std::option::Option::Some(TypeCode::ARRAY), - 9 => ::std::option::Option::Some(TypeCode::STRUCT), - 10 => ::std::option::Option::Some(TypeCode::NUMERIC), - 11 => ::std::option::Option::Some(TypeCode::JSON), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [TypeCode] = &[ - TypeCode::TYPE_CODE_UNSPECIFIED, - TypeCode::BOOL, - TypeCode::INT64, - TypeCode::FLOAT64, - TypeCode::TIMESTAMP, - TypeCode::DATE, - TypeCode::STRING, - TypeCode::BYTES, - TypeCode::ARRAY, - TypeCode::STRUCT, - TypeCode::NUMERIC, - TypeCode::JSON, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TypeCode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for TypeCode { -} - -impl ::std::default::Default for TypeCode { - fn default() -> Self { - TypeCode::TYPE_CODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for TypeCode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum TypeAnnotationCode { - TYPE_ANNOTATION_CODE_UNSPECIFIED = 0, - PG_NUMERIC = 2, - PG_JSONB = 3, -} - -impl ::protobuf::ProtobufEnum for TypeAnnotationCode { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED), - 2 => ::std::option::Option::Some(TypeAnnotationCode::PG_NUMERIC), - 3 => ::std::option::Option::Some(TypeAnnotationCode::PG_JSONB), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [TypeAnnotationCode] = &[ - TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED, - TypeAnnotationCode::PG_NUMERIC, - TypeAnnotationCode::PG_JSONB, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("TypeAnnotationCode", file_descriptor_proto()) - }) - } -} - -impl ::std::marker::Copy for TypeAnnotationCode { -} - -impl ::std::default::Default for TypeAnnotationCode { - fn default() -> Self { - TypeAnnotationCode::TYPE_ANNOTATION_CODE_UNSPECIFIED - } -} - -impl ::protobuf::reflect::ProtobufValue for TypeAnnotationCode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1cgoogle/spanner/v1/type.proto\x12\x11google.spanner.v1\x1a\x1fgoogl\ - e/api/field_behavior.proto\"\x93\x02\n\x04Type\x124\n\x04code\x18\x01\ - \x20\x01(\x0e2\x1b.google.spanner.v1.TypeCodeR\x04codeB\x03\xe0A\x02\x12\ - E\n\x12array_element_type\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.Ty\ - peR\x10arrayElementType\x12>\n\x0bstruct_type\x18\x03\x20\x01(\x0b2\x1d.\ - google.spanner.v1.StructTypeR\nstructType\x12N\n\x0ftype_annotation\x18\ - \x04\x20\x01(\x0e2%.google.spanner.v1.TypeAnnotationCodeR\x0etypeAnnotat\ - ion\"\x93\x01\n\nStructType\x12;\n\x06fields\x18\x01\x20\x03(\x0b2#.goog\ - le.spanner.v1.StructType.FieldR\x06fields\x1aH\n\x05Field\x12\x12\n\x04n\ - ame\x18\x01\x20\x01(\tR\x04name\x12+\n\x04type\x18\x02\x20\x01(\x0b2\x17\ - .google.spanner.v1.TypeR\x04type*\xa5\x01\n\x08TypeCode\x12\x19\n\x15TYP\ - E_CODE_UNSPECIFIED\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT64\x10\ - \x02\x12\x0b\n\x07FLOAT64\x10\x03\x12\r\n\tTIMESTAMP\x10\x04\x12\x08\n\ - \x04DATE\x10\x05\x12\n\n\x06STRING\x10\x06\x12\t\n\x05BYTES\x10\x07\x12\ - \t\n\x05ARRAY\x10\x08\x12\n\n\x06STRUCT\x10\t\x12\x0b\n\x07NUMERIC\x10\n\ - \x12\x08\n\x04JSON\x10\x0b*X\n\x12TypeAnnotationCode\x12$\n\x20TYPE_ANNO\ - TATION_CODE_UNSPECIFIED\x10\0\x12\x0e\n\nPG_NUMERIC\x10\x02\x12\x0c\n\ - \x08PG_JSONB\x10\x03B\xac\x01\n\x15com.google.spanner.v1B\tTypeProtoP\ - \x01Z5cloud.google.com/go/spanner/apiv1/spannerpb;spannerpb\xaa\x02\x17G\ - oogle.Cloud.Spanner.V1\xca\x02\x17Google\\Cloud\\Spanner\\V1\xea\x02\x1a\ - Google::Cloud::Spanner::V1J\x858\n\x07\x12\x05\x0e\0\xad\x01\x01\n\xbc\ - \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202022\x20Google\ - \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ - \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ - \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ - ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ - \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ - \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ - riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ - \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ - RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ - \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x1a\n\t\n\x02\x03\0\ - \x12\x03\x12\0)\n\x08\n\x01\x08\x12\x03\x14\04\n\t\n\x02\x08%\x12\x03\ - \x14\04\n\x08\n\x01\x08\x12\x03\x15\0L\n\t\n\x02\x08\x0b\x12\x03\x15\0L\ - \n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\ - \x01\x08\x12\x03\x17\0*\n\t\n\x02\x08\x08\x12\x03\x17\0*\n\x08\n\x01\x08\ - \x12\x03\x18\0.\n\t\n\x02\x08\x01\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\ - \x19\04\n\t\n\x02\x08)\x12\x03\x19\04\n\x08\n\x01\x08\x12\x03\x1a\03\n\t\ - \n\x02\x08-\x12\x03\x1a\03\n\x84\x01\n\x02\x04\0\x12\x04\x1e\01\x01\x1ax\ - \x20`Type`\x20indicates\x20the\x20type\x20of\x20a\x20Cloud\x20Spanner\ - \x20value,\x20as\x20might\x20be\x20stored\x20in\x20a\n\x20table\x20cell\ - \x20or\x20returned\x20from\x20an\x20SQL\x20query.\n\n\n\n\x03\x04\0\x01\ - \x12\x03\x1e\x08\x0c\nR\n\x04\x04\0\x02\0\x12\x03\x20\x02=\x1aE\x20Requi\ - red.\x20The\x20[TypeCode][google.spanner.v1.TypeCode]\x20for\x20this\x20\ - type.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x20\x02\n\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03\x20\x0b\x0f\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x20\ - \x12\x13\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03\x20\x14<\n\x0f\n\x08\x04\0\ - \x02\0\x08\x9c\x08\0\x12\x03\x20\x15;\n\xa2\x01\n\x04\x04\0\x02\x01\x12\ - \x03$\x02\x1e\x1a\x94\x01\x20If\x20[code][google.spanner.v1.Type.code]\ - \x20==\x20[ARRAY][google.spanner.v1.TypeCode.ARRAY],\x20then\x20`array_e\ - lement_type`\n\x20is\x20the\x20type\x20of\x20the\x20array\x20elements.\n\ - \n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03$\x02\x06\n\x0c\n\x05\x04\0\x02\ - \x01\x01\x12\x03$\x07\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03$\x1c\x1d\ - \n\xad\x01\n\x04\x04\0\x02\x02\x12\x03(\x02\x1d\x1a\x9f\x01\x20If\x20[co\ - de][google.spanner.v1.Type.code]\x20==\x20[STRUCT][google.spanner.v1.Typ\ - eCode.STRUCT],\x20then\x20`struct_type`\n\x20provides\x20type\x20informa\ - tion\x20for\x20the\x20struct's\x20fields.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x06\x12\x03(\x02\x0c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03(\r\x18\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03(\x1b\x1c\n\xa2\x04\n\x04\x04\0\x02\x03\ - \x12\x030\x02)\x1a\x94\x04\x20The\x20[TypeAnnotationCode][google.spanner\ - .v1.TypeAnnotationCode]\x20that\x20disambiguates\x20SQL\x20type\x20that\ - \x20Spanner\x20will\n\x20use\x20to\x20represent\x20values\x20of\x20this\ - \x20type\x20during\x20query\x20processing.\x20This\x20is\n\x20necessary\ - \x20for\x20some\x20type\x20codes\x20because\x20a\x20single\x20[TypeCode]\ - [google.spanner.v1.TypeCode]\x20can\x20be\x20mapped\n\x20to\x20different\ - \x20SQL\x20types\x20depending\x20on\x20the\x20SQL\x20dialect.\x20[type_a\ - nnotation][google.spanner.v1.Type.type_annotation]\n\x20typically\x20is\ - \x20not\x20needed\x20to\x20process\x20the\x20content\x20of\x20a\x20value\ - \x20(it\x20doesn't\n\x20affect\x20serialization)\x20and\x20clients\x20ca\ - n\x20ignore\x20it\x20on\x20the\x20read\x20path.\n\n\x0c\n\x05\x04\0\x02\ - \x03\x06\x12\x030\x02\x14\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x030\x15$\n\ - \x0c\n\x05\x04\0\x02\x03\x03\x12\x030'(\nd\n\x02\x04\x01\x12\x044\0K\x01\ - \x1aX\x20`StructType`\x20defines\x20the\x20fields\x20of\x20a\x20[STRUCT]\ - [google.spanner.v1.TypeCode.STRUCT]\x20type.\n\n\n\n\x03\x04\x01\x01\x12\ - \x034\x08\x12\n@\n\x04\x04\x01\x03\0\x12\x046\x02B\x03\x1a2\x20Message\ - \x20representing\x20a\x20single\x20field\x20of\x20a\x20struct.\n\n\x0c\n\ - \x05\x04\x01\x03\0\x01\x12\x036\n\x0f\n\x99\x03\n\x06\x04\x01\x03\0\x02\ - \0\x12\x03>\x04\x14\x1a\x89\x03\x20The\x20name\x20of\x20the\x20field.\ - \x20For\x20reads,\x20this\x20is\x20the\x20column\x20name.\x20For\n\x20SQ\ - L\x20queries,\x20it\x20is\x20the\x20column\x20alias\x20(e.g.,\x20`\"Word\ - \"`\x20in\x20the\n\x20query\x20`\"SELECT\x20'hello'\x20AS\x20Word\"`),\ - \x20or\x20the\x20column\x20name\x20(e.g.,\n\x20`\"ColName\"`\x20in\x20th\ - e\x20query\x20`\"SELECT\x20ColName\x20FROM\x20Table\"`).\x20Some\n\x20co\ - lumns\x20might\x20have\x20an\x20empty\x20name\x20(e.g.,\x20`\"SELECT\n\ - \x20UPPER(ColName)\"`).\x20Note\x20that\x20a\x20query\x20result\x20can\ - \x20contain\n\x20multiple\x20fields\x20with\x20the\x20same\x20name.\n\n\ - \x0e\n\x07\x04\x01\x03\0\x02\0\x05\x12\x03>\x04\n\n\x0e\n\x07\x04\x01\ - \x03\0\x02\0\x01\x12\x03>\x0b\x0f\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\ - \x12\x03>\x12\x13\n'\n\x06\x04\x01\x03\0\x02\x01\x12\x03A\x04\x12\x1a\ - \x18\x20The\x20type\x20of\x20the\x20field.\n\n\x0e\n\x07\x04\x01\x03\0\ - \x02\x01\x06\x12\x03A\x04\x08\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ - \x03A\t\r\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03A\x10\x11\n\x8a\ - \x03\n\x04\x04\x01\x02\0\x12\x03J\x02\x1c\x1a\xfc\x02\x20The\x20list\x20\ - of\x20fields\x20that\x20make\x20up\x20this\x20struct.\x20Order\x20is\n\ - \x20significant,\x20because\x20values\x20of\x20this\x20struct\x20type\ - \x20are\x20represented\x20as\n\x20lists,\x20where\x20the\x20order\x20of\ - \x20field\x20values\x20matches\x20the\x20order\x20of\n\x20fields\x20in\ - \x20the\x20[StructType][google.spanner.v1.StructType].\x20In\x20turn,\ - \x20the\x20order\x20of\x20fields\n\x20matches\x20the\x20order\x20of\x20c\ - olumns\x20in\x20a\x20read\x20request,\x20or\x20the\x20order\x20of\n\x20f\ - ields\x20in\x20the\x20`SELECT`\x20clause\x20of\x20a\x20query.\n\n\x0c\n\ - \x05\x04\x01\x02\0\x04\x12\x03J\x02\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\ - \x03J\x0b\x10\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03J\x11\x17\n\x0c\n\x05\ - \x04\x01\x02\0\x03\x12\x03J\x1a\x1b\n\xda\x02\n\x02\x05\0\x12\x05T\0\x93\ - \x01\x01\x1a\xcc\x02\x20`TypeCode`\x20is\x20used\x20as\x20part\x20of\x20\ - [Type][google.spanner.v1.Type]\x20to\n\x20indicate\x20the\x20type\x20of\ - \x20a\x20Cloud\x20Spanner\x20value.\n\n\x20Each\x20legal\x20value\x20of\ - \x20a\x20type\x20can\x20be\x20encoded\x20to\x20or\x20decoded\x20from\x20\ - a\x20JSON\n\x20value,\x20using\x20the\x20encodings\x20described\x20below\ - .\x20All\x20Cloud\x20Spanner\x20values\x20can\n\x20be\x20`null`,\x20rega\ - rdless\x20of\x20type;\x20`null`s\x20are\x20always\x20encoded\x20as\x20a\ - \x20JSON\n\x20`null`.\n\n\n\n\x03\x05\0\x01\x12\x03T\x05\r\n\x1d\n\x04\ - \x05\0\x02\0\x12\x03V\x02\x1c\x1a\x10\x20Not\x20specified.\n\n\x0c\n\x05\ - \x05\0\x02\0\x01\x12\x03V\x02\x17\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03V\ - \x1a\x1b\n1\n\x04\x05\0\x02\x01\x12\x03Y\x02\x0b\x1a$\x20Encoded\x20as\ - \x20JSON\x20`true`\x20or\x20`false`.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\ - \x03Y\x02\x06\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03Y\t\n\n6\n\x04\x05\0\ - \x02\x02\x12\x03\\\x02\x0c\x1a)\x20Encoded\x20as\x20`string`,\x20in\x20d\ - ecimal\x20format.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\\\x02\x07\n\ - \x0c\n\x05\x05\0\x02\x02\x02\x12\x03\\\n\x0b\n\\\n\x04\x05\0\x02\x03\x12\ - \x03`\x02\x0e\x1aO\x20Encoded\x20as\x20`number`,\x20or\x20the\x20strings\ - \x20`\"NaN\"`,\x20`\"Infinity\"`,\x20or\n\x20`\"-Infinity\"`.\n\n\x0c\n\ - \x05\x05\0\x02\x03\x01\x12\x03`\x02\t\n\x0c\n\x05\x05\0\x02\x03\x02\x12\ - \x03`\x0c\r\n\xdd\x02\n\x04\x05\0\x02\x04\x12\x03j\x02\x10\x1a\xcf\x02\ - \x20Encoded\x20as\x20`string`\x20in\x20RFC\x203339\x20timestamp\x20forma\ - t.\x20The\x20time\x20zone\n\x20must\x20be\x20present,\x20and\x20must\x20\ - be\x20`\"Z\"`.\n\n\x20If\x20the\x20schema\x20has\x20the\x20column\x20opt\ - ion\n\x20`allow_commit_timestamp=true`,\x20the\x20placeholder\x20string\ - \n\x20`\"spanner.commit_timestamp()\"`\x20can\x20be\x20used\x20to\x20ins\ - truct\x20the\x20system\n\x20to\x20insert\x20the\x20commit\x20timestamp\ - \x20associated\x20with\x20the\x20transaction\n\x20commit.\n\n\x0c\n\x05\ - \x05\0\x02\x04\x01\x12\x03j\x02\x0b\n\x0c\n\x05\x05\0\x02\x04\x02\x12\ - \x03j\x0e\x0f\n;\n\x04\x05\0\x02\x05\x12\x03m\x02\x0b\x1a.\x20Encoded\ - \x20as\x20`string`\x20in\x20RFC\x203339\x20date\x20format.\n\n\x0c\n\x05\ - \x05\0\x02\x05\x01\x12\x03m\x02\x06\n\x0c\n\x05\x05\0\x02\x05\x02\x12\ - \x03m\t\n\n#\n\x04\x05\0\x02\x06\x12\x03p\x02\r\x1a\x16\x20Encoded\x20as\ - \x20`string`.\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x03p\x02\x08\n\x0c\n\ - \x05\x05\0\x02\x06\x02\x12\x03p\x0b\x0c\nZ\n\x04\x05\0\x02\x07\x12\x03t\ - \x02\x0c\x1aM\x20Encoded\x20as\x20a\x20base64-encoded\x20`string`,\x20as\ - \x20described\x20in\x20RFC\x204648,\n\x20section\x204.\n\n\x0c\n\x05\x05\ - \0\x02\x07\x01\x12\x03t\x02\x07\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x03t\n\ - \x0b\n\x9a\x01\n\x04\x05\0\x02\x08\x12\x03y\x02\x0c\x1a\x8c\x01\x20Encod\ - ed\x20as\x20`list`,\x20where\x20the\x20list\x20elements\x20are\x20repres\ - ented\n\x20according\x20to\n\x20[array_element_type][google.spanner.v1.T\ - ype.array_element_type].\n\n\x0c\n\x05\x05\0\x02\x08\x01\x12\x03y\x02\ - \x07\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x03y\n\x0b\n\x94\x01\n\x04\x05\0\ - \x02\t\x12\x03}\x02\r\x1a\x86\x01\x20Encoded\x20as\x20`list`,\x20where\ - \x20list\x20element\x20`i`\x20is\x20represented\x20according\n\x20to\x20\ - [struct_type.fields[i]][google.spanner.v1.StructType.fields].\n\n\x0c\n\ - \x05\x05\0\x02\t\x01\x12\x03}\x02\x08\n\x0c\n\x05\x05\0\x02\t\x02\x12\ - \x03}\x0b\x0c\n\xdd\x02\n\x04\x05\0\x02\n\x12\x04\x88\x01\x02\x0f\x1a\ - \xce\x02\x20Encoded\x20as\x20`string`,\x20in\x20decimal\x20format\x20or\ - \x20scientific\x20notation\x20format.\n\x20
Decimal\x20format:\n\x20<\ - br>`[+-]Digits[.[Digits]]`\x20or\n\x20
`[+-][Digits].Digits`\n\n\x20S\ - cientific\x20notation:\n\x20
`[+-]Digits[.[Digits]][ExponentIndicator\ - [+-]Digits]`\x20or\n\x20
`[+-][Digits].Digits[ExponentIndicator[+-]Di\ - gits]`\n\x20
(ExponentIndicator\x20is\x20`\"e\"`\x20or\x20`\"E\"`)\n\ - \n\r\n\x05\x05\0\x02\n\x01\x12\x04\x88\x01\x02\t\n\r\n\x05\x05\0\x02\n\ - \x02\x12\x04\x88\x01\x0c\x0e\n\x88\x03\n\x04\x05\0\x02\x0b\x12\x04\x92\ - \x01\x02\x0c\x1a\xf9\x02\x20Encoded\x20as\x20a\x20JSON-formatted\x20`str\ - ing`\x20as\x20described\x20in\x20RFC\x207159.\x20The\n\x20following\x20r\ - ules\x20are\x20applied\x20when\x20parsing\x20JSON\x20input:\n\n\x20-\x20\ - Whitespace\x20characters\x20are\x20not\x20preserved.\n\x20-\x20If\x20a\ - \x20JSON\x20object\x20has\x20duplicate\x20keys,\x20only\x20the\x20first\ - \x20key\x20is\x20preserved.\n\x20-\x20Members\x20of\x20a\x20JSON\x20obje\ - ct\x20are\x20not\x20guaranteed\x20to\x20have\x20their\x20order\n\x20\x20\ - \x20preserved.\n\x20-\x20JSON\x20array\x20elements\x20will\x20have\x20th\ - eir\x20order\x20preserved.\n\n\r\n\x05\x05\0\x02\x0b\x01\x12\x04\x92\x01\ - \x02\x06\n\r\n\x05\x05\0\x02\x0b\x02\x12\x04\x92\x01\t\x0b\n\xe7\x02\n\ - \x02\x05\x01\x12\x06\x9a\x01\0\xad\x01\x01\x1a\xd8\x02\x20`TypeAnnotatio\ - nCode`\x20is\x20used\x20as\x20a\x20part\x20of\x20[Type][google.spanner.v\ - 1.Type]\x20to\n\x20disambiguate\x20SQL\x20types\x20that\x20should\x20be\ - \x20used\x20for\x20a\x20given\x20Cloud\x20Spanner\x20value.\n\x20Disambi\ - guation\x20is\x20needed\x20because\x20the\x20same\x20Cloud\x20Spanner\ - \x20type\x20can\x20be\x20mapped\x20to\n\x20different\x20SQL\x20types\x20\ - depending\x20on\x20SQL\x20dialect.\x20TypeAnnotationCode\x20doesn't\n\ - \x20affect\x20the\x20way\x20value\x20is\x20serialized.\n\n\x0b\n\x03\x05\ - \x01\x01\x12\x04\x9a\x01\x05\x17\n\x1e\n\x04\x05\x01\x02\0\x12\x04\x9c\ - \x01\x02'\x1a\x10\x20Not\x20specified.\n\n\r\n\x05\x05\x01\x02\0\x01\x12\ - \x04\x9c\x01\x02\"\n\r\n\x05\x05\x01\x02\0\x02\x12\x04\x9c\x01%&\n\xbc\ - \x03\n\x04\x05\x01\x02\x01\x12\x04\xa4\x01\x02\x11\x1a\xad\x03\x20Postgr\ - eSQL\x20compatible\x20NUMERIC\x20type.\x20This\x20annotation\x20needs\ - \x20to\x20be\x20applied\x20to\n\x20[Type][google.spanner.v1.Type]\x20ins\ - tances\x20having\x20[NUMERIC][google.spanner.v1.TypeCode.NUMERIC]\n\x20t\ - ype\x20code\x20to\x20specify\x20that\x20values\x20of\x20this\x20type\x20\ - should\x20be\x20treated\x20as\n\x20PostgreSQL\x20NUMERIC\x20values.\x20C\ - urrently\x20this\x20annotation\x20is\x20always\x20needed\x20for\n\x20[NU\ - MERIC][google.spanner.v1.TypeCode.NUMERIC]\x20when\x20a\x20client\x20int\ - eracts\x20with\x20PostgreSQL-enabled\n\x20Spanner\x20databases.\n\n\r\n\ - \x05\x05\x01\x02\x01\x01\x12\x04\xa4\x01\x02\x0c\n\r\n\x05\x05\x01\x02\ - \x01\x02\x12\x04\xa4\x01\x0f\x10\n\xac\x03\n\x04\x05\x01\x02\x02\x12\x04\ - \xac\x01\x02\x0f\x1a\x9d\x03\x20PostgreSQL\x20compatible\x20JSONB\x20typ\ - e.\x20This\x20annotation\x20needs\x20to\x20be\x20applied\x20to\n\x20[Typ\ - e][google.spanner.v1.Type]\x20instances\x20having\x20[JSON][google.spann\ - er.v1.TypeCode.JSON]\n\x20type\x20code\x20to\x20specify\x20that\x20value\ - s\x20of\x20this\x20type\x20should\x20be\x20treated\x20as\n\x20PostgreSQL\ - \x20JSONB\x20values.\x20Currently\x20this\x20annotation\x20is\x20always\ - \x20needed\x20for\n\x20[JSON][google.spanner.v1.TypeCode.JSON]\x20when\ - \x20a\x20client\x20interacts\x20with\x20PostgreSQL-enabled\n\x20Spanner\ - \x20databases.\n\n\r\n\x05\x05\x01\x02\x02\x01\x12\x04\xac\x01\x02\n\n\r\ - \n\x05\x05\x01\x02\x02\x02\x12\x04\xac\x01\r\x0eb\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/calendar_period.rs b/googleapis-raw/src/type/calendar_period.rs index 24cdbbb..194eae3 100644 --- a/googleapis-raw/src/type/calendar_period.rs +++ b/googleapis-raw/src/type/calendar_period.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,42 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/calendar_period.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// A `CalendarPeriod` represents the abstract concept of a time period that has +/// a canonical start. Grammatically, "the start of the current +/// `CalendarPeriod`." All calendar times begin at midnight UTC. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.type.CalendarPeriod) pub enum CalendarPeriod { + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.CALENDAR_PERIOD_UNSPECIFIED) CALENDAR_PERIOD_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.DAY) DAY = 1, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.WEEK) WEEK = 2, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.FORTNIGHT) FORTNIGHT = 3, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.MONTH) MONTH = 4, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.QUARTER) QUARTER = 5, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.HALF) HALF = 6, + // @@protoc_insertion_point(enum_value:google.type.CalendarPeriod.YEAR) YEAR = 7, } -impl ::protobuf::ProtobufEnum for CalendarPeriod { +impl ::protobuf::Enum for CalendarPeriod { + const NAME: &'static str = "CalendarPeriod"; + fn value(&self) -> i32 { *self as i32 } @@ -54,29 +70,42 @@ impl ::protobuf::ProtobufEnum for CalendarPeriod { } } - fn values() -> &'static [Self] { - static values: &'static [CalendarPeriod] = &[ - CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED, - CalendarPeriod::DAY, - CalendarPeriod::WEEK, - CalendarPeriod::FORTNIGHT, - CalendarPeriod::MONTH, - CalendarPeriod::QUARTER, - CalendarPeriod::HALF, - CalendarPeriod::YEAR, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "CALENDAR_PERIOD_UNSPECIFIED" => ::std::option::Option::Some(CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED), + "DAY" => ::std::option::Option::Some(CalendarPeriod::DAY), + "WEEK" => ::std::option::Option::Some(CalendarPeriod::WEEK), + "FORTNIGHT" => ::std::option::Option::Some(CalendarPeriod::FORTNIGHT), + "MONTH" => ::std::option::Option::Some(CalendarPeriod::MONTH), + "QUARTER" => ::std::option::Option::Some(CalendarPeriod::QUARTER), + "HALF" => ::std::option::Option::Some(CalendarPeriod::HALF), + "YEAR" => ::std::option::Option::Some(CalendarPeriod::YEAR), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("CalendarPeriod", file_descriptor_proto()) - }) - } + const VALUES: &'static [CalendarPeriod] = &[ + CalendarPeriod::CALENDAR_PERIOD_UNSPECIFIED, + CalendarPeriod::DAY, + CalendarPeriod::WEEK, + CalendarPeriod::FORTNIGHT, + CalendarPeriod::MONTH, + CalendarPeriod::QUARTER, + CalendarPeriod::HALF, + CalendarPeriod::YEAR, + ]; } -impl ::std::marker::Copy for CalendarPeriod { +impl ::protobuf::EnumFull for CalendarPeriod { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("CalendarPeriod").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for CalendarPeriod { @@ -85,9 +114,9 @@ impl ::std::default::Default for CalendarPeriod { } } -impl ::protobuf::reflect::ProtobufValue for CalendarPeriod { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl CalendarPeriod { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("CalendarPeriod") } } @@ -98,8 +127,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x05MONTH\x10\x04\x12\x0b\n\x07QUARTER\x10\x05\x12\x08\n\x04HALF\x10\x06\ \x12\x08\n\x04YEAR\x10\x07Bx\n\x0fcom.google.typeB\x13CalendarPeriodProt\ oP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calend\ - arperiod\xa2\x02\x03GTPJ\xc4\r\n\x06\x12\x04\x0e\07\x01\n\xbc\x04\n\x01\ - \x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\ + arperiod\xa2\x02\x03GTPJ\xc6\r\n\x06\x12\x04\x0f\08\x01\n\xbe\x04\n\x01\ + \x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\ \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ @@ -111,53 +140,69 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\ - \x03\x12\0_\n\t\n\x02\x08\x0b\x12\x03\x12\0_\n\x08\n\x01\x08\x12\x03\x13\ - \0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\04\n\t\ - \n\x02\x08\x08\x12\x03\x14\04\n\x08\n\x01\x08\x12\x03\x15\0(\n\t\n\x02\ - \x08\x01\x12\x03\x15\0(\n\x08\n\x01\x08\x12\x03\x16\0!\n\t\n\x02\x08$\ - \x12\x03\x16\0!\n\xd6\x01\n\x02\x05\0\x12\x04\x1b\07\x01\x1a\xc9\x01\x20\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\ + \x03\x13\0_\n\t\n\x02\x08\x0b\x12\x03\x13\0_\n\x08\n\x01\x08\x12\x03\x14\ + \0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\04\n\t\ + \n\x02\x08\x08\x12\x03\x15\04\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\ + \x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\ + \x12\x03\x17\0!\n\xd6\x01\n\x02\x05\0\x12\x04\x1c\08\x01\x1a\xc9\x01\x20\ A\x20`CalendarPeriod`\x20represents\x20the\x20abstract\x20concept\x20of\ \x20a\x20time\x20period\x20that\x20has\n\x20a\x20canonical\x20start.\x20\ Grammatically,\x20\"the\x20start\x20of\x20the\x20current\n\x20`CalendarP\ eriod`.\"\x20All\x20calendar\x20times\x20begin\x20at\x20midnight\x20UTC.\ - \n\n\n\n\x03\x05\0\x01\x12\x03\x1b\x05\x13\n1\n\x04\x05\0\x02\0\x12\x03\ - \x1d\x02\"\x1a$\x20Undefined\x20period,\x20raises\x20an\x20error.\n\n\ - \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1d\x02\x1d\n\x0c\n\x05\x05\0\x02\0\ - \x02\x12\x03\x1d\x20!\n\x15\n\x04\x05\0\x02\x01\x12\x03\x20\x02\n\x1a\ - \x08\x20A\x20day.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x20\x02\x05\n\ - \x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x20\x08\t\nq\n\x04\x05\0\x02\x02\ - \x12\x03$\x02\x0b\x1ad\x20A\x20week.\x20Weeks\x20begin\x20on\x20Monday,\ - \x20following\n\x20[ISO\x208601](https://en.wikipedia.org/wiki/ISO_week_\ - date).\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03$\x02\x06\n\x0c\n\x05\x05\ - \0\x02\x02\x02\x12\x03$\t\n\n\xab\x01\n\x04\x05\0\x02\x03\x12\x03)\x02\ - \x10\x1a\x9d\x01\x20A\x20fortnight.\x20The\x20first\x20calendar\x20fortn\ - ight\x20of\x20the\x20year\x20begins\x20at\x20the\x20start\n\x20of\x20wee\ - k\x201\x20according\x20to\n\x20[ISO\x208601](https://en.wikipedia.org/wi\ - ki/ISO_week_date).\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03)\x02\x0b\n\ - \x0c\n\x05\x05\0\x02\x03\x02\x12\x03)\x0e\x0f\n\x17\n\x04\x05\0\x02\x04\ - \x12\x03,\x02\x0c\x1a\n\x20A\x20month.\n\n\x0c\n\x05\x05\0\x02\x04\x01\ - \x12\x03,\x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03,\n\x0b\n_\n\x04\ - \x05\0\x02\x05\x12\x030\x02\x0e\x1aR\x20A\x20quarter.\x20Quarters\x20sta\ - rt\x20on\x20dates\x201-Jan,\x201-Apr,\x201-Jul,\x20and\x201-Oct\x20of\ - \x20each\n\x20year.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x030\x02\t\n\x0c\ - \n\x05\x05\0\x02\x05\x02\x12\x030\x0c\r\nF\n\x04\x05\0\x02\x06\x12\x033\ - \x02\x0b\x1a9\x20A\x20half-year.\x20Half-years\x20start\x20on\x20dates\ - \x201-Jan\x20and\x201-Jul.\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x033\x02\ - \x06\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x033\t\n\n\x16\n\x04\x05\0\x02\ - \x07\x12\x036\x02\x0b\x1a\t\x20A\x20year.\n\n\x0c\n\x05\x05\0\x02\x07\ - \x01\x12\x036\x02\x06\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x036\t\nb\x06pro\ - to3\ + \n\n\n\n\x03\x05\0\x01\x12\x03\x1c\x05\x13\n1\n\x04\x05\0\x02\0\x12\x03\ + \x1e\x02\"\x1a$\x20Undefined\x20period,\x20raises\x20an\x20error.\n\n\ + \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1e\x02\x1d\n\x0c\n\x05\x05\0\x02\0\ + \x02\x12\x03\x1e\x20!\n\x15\n\x04\x05\0\x02\x01\x12\x03!\x02\n\x1a\x08\ + \x20A\x20day.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03!\x02\x05\n\x0c\n\ + \x05\x05\0\x02\x01\x02\x12\x03!\x08\t\nq\n\x04\x05\0\x02\x02\x12\x03%\ + \x02\x0b\x1ad\x20A\x20week.\x20Weeks\x20begin\x20on\x20Monday,\x20follow\ + ing\n\x20[ISO\x208601](https://en.wikipedia.org/wiki/ISO_week_date).\n\n\ + \x0c\n\x05\x05\0\x02\x02\x01\x12\x03%\x02\x06\n\x0c\n\x05\x05\0\x02\x02\ + \x02\x12\x03%\t\n\n\xab\x01\n\x04\x05\0\x02\x03\x12\x03*\x02\x10\x1a\x9d\ + \x01\x20A\x20fortnight.\x20The\x20first\x20calendar\x20fortnight\x20of\ + \x20the\x20year\x20begins\x20at\x20the\x20start\n\x20of\x20week\x201\x20\ + according\x20to\n\x20[ISO\x208601](https://en.wikipedia.org/wiki/ISO_wee\ + k_date).\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03*\x02\x0b\n\x0c\n\x05\ + \x05\0\x02\x03\x02\x12\x03*\x0e\x0f\n\x17\n\x04\x05\0\x02\x04\x12\x03-\ + \x02\x0c\x1a\n\x20A\x20month.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03-\ + \x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03-\n\x0b\n_\n\x04\x05\0\x02\ + \x05\x12\x031\x02\x0e\x1aR\x20A\x20quarter.\x20Quarters\x20start\x20on\ + \x20dates\x201-Jan,\x201-Apr,\x201-Jul,\x20and\x201-Oct\x20of\x20each\n\ + \x20year.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x031\x02\t\n\x0c\n\x05\x05\ + \0\x02\x05\x02\x12\x031\x0c\r\nF\n\x04\x05\0\x02\x06\x12\x034\x02\x0b\ + \x1a9\x20A\x20half-year.\x20Half-years\x20start\x20on\x20dates\x201-Jan\ + \x20and\x201-Jul.\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x034\x02\x06\n\x0c\ + \n\x05\x05\0\x02\x06\x02\x12\x034\t\n\n\x16\n\x04\x05\0\x02\x07\x12\x037\ + \x02\x0b\x1a\t\x20A\x20year.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x037\ + \x02\x06\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x037\t\nb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(CalendarPeriod::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/color.rs b/googleapis-raw/src/type/color.rs index 93a0fe4..ee8c235 100644 --- a/googleapis-raw/src/type/color.rs +++ b/googleapis-raw/src/type/color.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,44 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/color.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.type.Color) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Color { // message fields + /// The amount of red in the color as a value in the interval [0, 1]. + // @@protoc_insertion_point(field:google.type.Color.red) pub red: f32, + /// The amount of green in the color as a value in the interval [0, 1]. + // @@protoc_insertion_point(field:google.type.Color.green) pub green: f32, + /// The amount of blue in the color as a value in the interval [0, 1]. + // @@protoc_insertion_point(field:google.type.Color.blue) pub blue: f32, - pub alpha: ::protobuf::SingularPtrField<::protobuf::well_known_types::FloatValue>, + /// The fraction of this color that should be applied to the pixel. That is, + /// the final pixel color is defined by the equation: + /// + /// pixel color = alpha * (this color) + (1.0 - alpha) * (background color) + /// + /// This means that a value of 1.0 corresponds to a solid color, whereas + /// a value of 0.0 corresponds to a completely transparent color. This + /// uses a wrapper message rather than a simple float scalar so that it is + /// possible to distinguish between a default value and the value being unset. + /// If omitted, this color object is to be rendered as a solid color + /// (as if the alpha value had been explicitly given with a value of 1.0). + // @@protoc_insertion_point(field:google.type.Color.alpha) + pub alpha: ::protobuf::MessageField<::protobuf::well_known_types::wrappers::FloatValue>, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Color.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Color { @@ -46,125 +67,61 @@ impl Color { ::std::default::Default::default() } - // float red = 1; - - - pub fn get_red(&self) -> f32 { - self.red - } - pub fn clear_red(&mut self) { - self.red = 0.; - } - - // Param is passed by value, moved - pub fn set_red(&mut self, v: f32) { - self.red = v; - } - - // float green = 2; - - - pub fn get_green(&self) -> f32 { - self.green - } - pub fn clear_green(&mut self) { - self.green = 0.; - } - - // Param is passed by value, moved - pub fn set_green(&mut self, v: f32) { - self.green = v; - } - - // float blue = 3; - - - pub fn get_blue(&self) -> f32 { - self.blue - } - pub fn clear_blue(&mut self) { - self.blue = 0.; - } - - // Param is passed by value, moved - pub fn set_blue(&mut self, v: f32) { - self.blue = v; - } - - // .google.protobuf.FloatValue alpha = 4; - - - pub fn get_alpha(&self) -> &::protobuf::well_known_types::FloatValue { - self.alpha.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::FloatValue as ::protobuf::Message>::default_instance()) - } - pub fn clear_alpha(&mut self) { - self.alpha.clear(); - } - - pub fn has_alpha(&self) -> bool { - self.alpha.is_some() - } - - // Param is passed by value, moved - pub fn set_alpha(&mut self, v: ::protobuf::well_known_types::FloatValue) { - self.alpha = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_alpha(&mut self) -> &mut ::protobuf::well_known_types::FloatValue { - if self.alpha.is_none() { - self.alpha.set_default(); - } - self.alpha.as_mut().unwrap() - } - - // Take field - pub fn take_alpha(&mut self) -> ::protobuf::well_known_types::FloatValue { - self.alpha.take().unwrap_or_else(|| ::protobuf::well_known_types::FloatValue::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "red", + |m: &Color| { &m.red }, + |m: &mut Color| { &mut m.red }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "green", + |m: &Color| { &m.green }, + |m: &mut Color| { &mut m.green }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "blue", + |m: &Color| { &m.blue }, + |m: &mut Color| { &mut m.blue }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::wrappers::FloatValue>( + "alpha", + |m: &Color| { &m.alpha }, + |m: &mut Color| { &mut m.alpha }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Color", + fields, + oneofs, + ) } } impl ::protobuf::Message for Color { + const NAME: &'static str = "Color"; + fn is_initialized(&self) -> bool { - for v in &self.alpha { - if !v.is_initialized() { - return false; - } - }; true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.red = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 13 => { + self.red = is.read_float()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.green = tmp; + 21 => { + self.green = is.read_float()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed32 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_float()?; - self.blue = tmp; + 29 => { + self.blue = is.read_float()?; }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.alpha)?; + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.alpha)?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -173,27 +130,27 @@ impl ::protobuf::Message for Color { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.red != 0. { - my_size += 5; + my_size += 1 + 4; } if self.green != 0. { - my_size += 5; + my_size += 1 + 4; } if self.blue != 0. { - my_size += 5; + my_size += 1 + 4; } - if let Some(ref v) = self.alpha.as_ref() { + if let Some(v) = self.alpha.as_ref() { let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.red != 0. { os.write_float(1, self.red)?; } @@ -203,103 +160,60 @@ impl ::protobuf::Message for Color { if self.blue != 0. { os.write_float(3, self.blue)?; } - if let Some(ref v) = self.alpha.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; + if let Some(v) = self.alpha.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Color { Color::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "red", - |m: &Color| { &m.red }, - |m: &mut Color| { &mut m.red }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "green", - |m: &Color| { &m.green }, - |m: &mut Color| { &mut m.green }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>( - "blue", - |m: &Color| { &m.blue }, - |m: &mut Color| { &mut m.blue }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::FloatValue>>( - "alpha", - |m: &Color| { &m.alpha }, - |m: &mut Color| { &mut m.alpha }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Color", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.red = 0.; + self.green = 0.; + self.blue = 0.; + self.alpha.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Color { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Color::new) + static instance: Color = Color { + red: 0., + green: 0., + blue: 0., + alpha: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Color { - fn clear(&mut self) { - self.red = 0.; - self.green = 0.; - self.blue = 0.; - self.alpha.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Color { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Color").unwrap()).clone() } } -impl ::std::fmt::Debug for Color { +impl ::std::fmt::Display for Color { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Color { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -309,12 +223,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x18\x03\x20\x01(\x02R\x04blue\x121\n\x05alpha\x18\x04\x20\x01(\x0b2\x1b\ .google.protobuf.FloatValueR\x05alphaB`\n\x0fcom.google.typeB\nColorProt\ oP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xf8\x01\ - \x01\xa2\x02\x03GTPJ\x8c/\n\x07\x12\x05\x0e\0\xad\x01\x01\n\xbc\x04\n\ - \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LL\ - C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ - 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + \x01\xa2\x02\x03GTPJ\xdd-\n\x07\x12\x05\x0f\0\xa9\x01\x01\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ @@ -322,165 +236,179 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\t\n\x02\x03\0\x12\ - \x03\x12\0(\n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ - \x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0M\n\t\n\x02\x08\x0b\x12\x03\x15\ - \0M\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\ - \x08\n\x01\x08\x12\x03\x17\0+\n\t\n\x02\x08\x08\x12\x03\x17\0+\n\x08\n\ - \x01\x08\x12\x03\x18\0(\n\t\n\x02\x08\x01\x12\x03\x18\0(\n\x08\n\x01\x08\ - \x12\x03\x19\0!\n\t\n\x02\x08$\x12\x03\x19\0!\n\xf6\x20\n\x02\x04\0\x12\ - \x06\x97\x01\0\xad\x01\x01\x1a\xe7\x20\x20Represents\x20a\x20color\x20in\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\t\n\x02\x03\0\x12\ + \x03\x13\0(\n\x08\n\x01\x08\x12\x03\x15\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ + \x15\0\x1f\n\x08\n\x01\x08\x12\x03\x16\0M\n\t\n\x02\x08\x0b\x12\x03\x16\ + \0M\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\ + \x08\n\x01\x08\x12\x03\x18\0+\n\t\n\x02\x08\x08\x12\x03\x18\0+\n\x08\n\ + \x01\x08\x12\x03\x19\0(\n\t\n\x02\x08\x01\x12\x03\x19\0(\n\x08\n\x01\x08\ + \x12\x03\x1a\0!\n\t\n\x02\x08$\x12\x03\x1a\0!\n\xbc\x1f\n\x02\x04\0\x12\ + \x06\x93\x01\0\xa9\x01\x01\x1a\xad\x1f\x20Represents\x20a\x20color\x20in\ \x20the\x20RGBA\x20color\x20space.\x20This\x20representation\x20is\x20de\ signed\n\x20for\x20simplicity\x20of\x20conversion\x20to/from\x20color\ \x20representations\x20in\x20various\n\x20languages\x20over\x20compactne\ - ss.\x20For\x20example,\x20the\x20fields\x20of\x20this\x20representation\ + ss;\x20for\x20example,\x20the\x20fields\x20of\x20this\x20representation\ \n\x20can\x20be\x20trivially\x20provided\x20to\x20the\x20constructor\x20\ - of\x20`java.awt.Color`\x20in\x20Java;\x20it\n\x20can\x20also\x20be\x20tr\ - ivially\x20provided\x20to\x20UIColor's\x20`+colorWithRed:green:blue:alph\ - a`\n\x20method\x20in\x20iOS;\x20and,\x20with\x20just\x20a\x20little\x20w\ - ork,\x20it\x20can\x20be\x20easily\x20formatted\x20into\n\x20a\x20CSS\x20\ - `rgba()`\x20string\x20in\x20JavaScript.\n\n\x20This\x20reference\x20page\ - \x20doesn't\x20carry\x20information\x20about\x20the\x20absolute\x20color\ - \n\x20space\n\x20that\x20should\x20be\x20used\x20to\x20interpret\x20the\ - \x20RGB\x20value\x20(e.g.\x20sRGB,\x20Adobe\x20RGB,\n\x20DCI-P3,\x20BT.2\ - 020,\x20etc.).\x20By\x20default,\x20applications\x20should\x20assume\x20\ - the\x20sRGB\x20color\n\x20space.\n\n\x20When\x20color\x20equality\x20nee\ - ds\x20to\x20be\x20decided,\x20implementations,\x20unless\n\x20documented\ - \x20otherwise,\x20treat\x20two\x20colors\x20as\x20equal\x20if\x20all\x20\ - their\x20red,\n\x20green,\x20blue,\x20and\x20alpha\x20values\x20each\x20\ - differ\x20by\x20at\x20most\x201e-5.\n\n\x20Example\x20(Java):\n\n\x20\ - \x20\x20\x20\x20\x20import\x20com.google.type.Color;\n\n\x20\x20\x20\x20\ - \x20\x20//\x20...\n\x20\x20\x20\x20\x20\x20public\x20static\x20java.awt.\ - Color\x20fromProto(Color\x20protocolor)\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20float\x20alpha\x20=\x20protocolor.hasAlpha()\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20?\x20protocolor.getAlpha().getValue()\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x201.0;\n\n\x20\x20\ - \x20\x20\x20\x20\x20\x20return\x20new\x20java.awt.Color(\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getRed(),\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getGreen(),\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getBlue(),\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20alpha);\n\x20\x20\x20\x20\x20\x20}\n\ - \n\x20\x20\x20\x20\x20\x20public\x20static\x20Color\x20toProto(java.awt.\ - Color\x20color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20red\x20=\ - \x20(float)\x20color.getRed();\n\x20\x20\x20\x20\x20\x20\x20\x20float\ - \x20green\x20=\x20(float)\x20color.getGreen();\n\x20\x20\x20\x20\x20\x20\ - \x20\x20float\x20blue\x20=\x20(float)\x20color.getBlue();\n\x20\x20\x20\ - \x20\x20\x20\x20\x20float\x20denominator\x20=\x20255.0;\n\x20\x20\x20\ - \x20\x20\x20\x20\x20Color.Builder\x20resultBuilder\x20=\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20Color\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20.newBuilder()\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setRed(red\x20/\x20denomina\ - tor)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.s\ - etGreen(green\x20/\x20denominator)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20.setBlue(blue\x20/\x20denominator);\n\x20\ - \x20\x20\x20\x20\x20\x20\x20int\x20alpha\x20=\x20color.getAlpha();\n\x20\ - \x20\x20\x20\x20\x20\x20\x20if\x20(alpha\x20!=\x20255)\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20result.setAlpha(\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20FloatValue\n\x20\x20\x20\x20\x20\x20\ + of\x20\"java.awt.Color\"\x20in\x20Java;\x20it\n\x20can\x20also\x20be\x20\ + trivially\x20provided\x20to\x20UIColor's\x20\"+colorWithRed:green:blue:a\ + lpha\"\n\x20method\x20in\x20iOS;\x20and,\x20with\x20just\x20a\x20little\ + \x20work,\x20it\x20can\x20be\x20easily\x20formatted\x20into\n\x20a\x20CS\ + S\x20\"rgba()\"\x20string\x20in\x20JavaScript,\x20as\x20well.\n\n\x20Not\ + e:\x20this\x20proto\x20does\x20not\x20carry\x20information\x20about\x20t\ + he\x20absolute\x20color\x20space\n\x20that\x20should\x20be\x20used\x20to\ + \x20interpret\x20the\x20RGB\x20value\x20(e.g.\x20sRGB,\x20Adobe\x20RGB,\ + \n\x20DCI-P3,\x20BT.2020,\x20etc.).\x20By\x20default,\x20applications\ + \x20SHOULD\x20assume\x20the\x20sRGB\x20color\n\x20space.\n\n\x20Example\ + \x20(Java):\n\n\x20\x20\x20\x20\x20\x20import\x20com.google.type.Color;\ + \n\n\x20\x20\x20\x20\x20\x20//\x20...\n\x20\x20\x20\x20\x20\x20public\ + \x20static\x20java.awt.Color\x20fromProto(Color\x20protocolor)\x20{\n\ + \x20\x20\x20\x20\x20\x20\x20\x20float\x20alpha\x20=\x20protocolor.hasAlp\ + ha()\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20?\x20protocolor.ge\ + tAlpha().getValue()\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\ + \x201.0;\n\n\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20java.awt.Co\ + lor(\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getRed(\ + ),\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getGreen(\ + ),\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocolor.getBlue()\ + ,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20alpha);\n\x20\x20\x20\ + \x20\x20\x20}\n\n\x20\x20\x20\x20\x20\x20public\x20static\x20Color\x20to\ + Proto(java.awt.Color\x20color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20flo\ + at\x20red\x20=\x20(float)\x20color.getRed();\n\x20\x20\x20\x20\x20\x20\ + \x20\x20float\x20green\x20=\x20(float)\x20color.getGreen();\n\x20\x20\ + \x20\x20\x20\x20\x20\x20float\x20blue\x20=\x20(float)\x20color.getBlue()\ + ;\n\x20\x20\x20\x20\x20\x20\x20\x20float\x20denominator\x20=\x20255.0;\n\ + \x20\x20\x20\x20\x20\x20\x20\x20Color.Builder\x20resultBuilder\x20=\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Color\n\x20\x20\x20\x20\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.newBuilder()\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setValu\ - e(((float)\x20alpha)\x20/\x20denominator)\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.build());\n\x20\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20return\x20resultBuild\ - er.build();\n\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20//\x20..\ - .\n\n\x20Example\x20(iOS\x20/\x20Obj-C):\n\n\x20\x20\x20\x20\x20\x20//\ - \x20...\n\x20\x20\x20\x20\x20\x20static\x20UIColor*\x20fromProto(Color*\ - \x20protocolor)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20red\ - \x20=\x20[protocolor\x20red];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20float\ - \x20green\x20=\x20[protocolor\x20green];\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20float\x20blue\x20=\x20[protocolor\x20blue];\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20FloatValue*\x20alpha_wrapper\x20=\x20[protocolor\x20\ - alpha];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20alpha\x20=\x201.0;\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(alpha_wrapper\x20!=\x20nil)\ - \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20=\x20[alpha_\ - wrapper\x20value];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20return\x20[UIColor\x20colorWithRed:red\x20green:\ - green\x20blue:blue\x20alpha:alpha];\n\x20\x20\x20\x20\x20\x20}\n\n\x20\ - \x20\x20\x20\x20\x20static\x20Color*\x20toProto(UIColor*\x20color)\x20{\ - \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CGFloat\x20red,\x20green,\x20b\ - lue,\x20alpha;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(![color\ - \x20getRed:&red\x20green:&green\x20blue:&blue\x20alpha:&alpha])\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20nil;\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20Color*\x20result\x20=\x20[[Color\x20alloc]\x20init];\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20[result\x20setRed:red];\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20[result\x20setGreen:green];\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20[result\x20setBlue:blue];\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20if\x20(alpha\x20<=\x200.9999)\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20[result\x20setAlpha:floatWrapperWithValu\ - e(alpha)];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20[result\x20autorelease];\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20return\x20result;\n\x20\x20\x20\x20\x20}\n\x20\x20\ - \x20\x20\x20//\x20...\n\n\x20\x20Example\x20(JavaScript):\n\n\x20\x20\ - \x20\x20\x20//\x20...\n\n\x20\x20\x20\x20\x20var\x20protoToCssColor\x20=\ - \x20function(rgb_color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20red\ - Frac\x20=\x20rgb_color.red\x20||\x200.0;\n\x20\x20\x20\x20\x20\x20\x20\ - \x20var\x20greenFrac\x20=\x20rgb_color.green\x20||\x200.0;\n\x20\x20\x20\ - \x20\x20\x20\x20\x20var\x20blueFrac\x20=\x20rgb_color.blue\x20||\x200.0;\ - \n\x20\x20\x20\x20\x20\x20\x20\x20var\x20red\x20=\x20Math.floor(redFrac\ - \x20*\x20255);\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20green\x20=\x20Mat\ - h.floor(greenFrac\x20*\x20255);\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20\ - blue\x20=\x20Math.floor(blueFrac\x20*\x20255);\n\n\x20\x20\x20\x20\x20\ - \x20\x20\x20if\x20(!('alpha'\x20in\x20rgb_color))\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20return\x20rgbToCssColor(red,\x20green,\x20bl\ - ue);\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\n\x20\x20\x20\x20\x20\x20\x20\ - \x20var\x20alphaFrac\x20=\x20rgb_color.alpha.value\x20||\x200.0;\n\x20\ - \x20\x20\x20\x20\x20\x20\x20var\x20rgbParams\x20=\x20[red,\x20green,\x20\ - blue].join(',');\n\x20\x20\x20\x20\x20\x20\x20\x20return\x20['rgba(',\ - \x20rgbParams,\x20',',\x20alphaFrac,\x20')'].join('');\n\x20\x20\x20\x20\ - \x20};\n\n\x20\x20\x20\x20\x20var\x20rgbToCssColor\x20=\x20function(red,\ - \x20green,\x20blue)\x20{\n\x20\x20\x20\x20\x20\x20\x20var\x20rgbNumber\ - \x20=\x20new\x20Number((red\x20<<\x2016)\x20|\x20(green\x20<<\x208)\x20|\ - \x20blue);\n\x20\x20\x20\x20\x20\x20\x20var\x20hexString\x20=\x20rgbNumb\ - er.toString(16);\n\x20\x20\x20\x20\x20\x20\x20var\x20missingZeros\x20=\ - \x206\x20-\x20hexString.length;\n\x20\x20\x20\x20\x20\x20\x20var\x20resu\ - ltBuilder\x20=\x20['#'];\n\x20\x20\x20\x20\x20\x20\x20for\x20(var\x20i\ - \x20=\x200;\x20i\x20<\x20missingZeros;\x20i++)\x20{\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20resultBuilder.push('0');\n\x20\x20\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20\x20\x20resultBuilder.push(hexString);\n\ - \x20\x20\x20\x20\x20\x20\x20return\x20resultBuilder.join('');\n\x20\x20\ - \x20\x20\x20};\n\n\x20\x20\x20\x20\x20//\x20...\n\n\x0b\n\x03\x04\0\x01\ - \x12\x04\x97\x01\x08\r\nQ\n\x04\x04\0\x02\0\x12\x04\x99\x01\x02\x10\x1aC\ - \x20The\x20amount\x20of\x20red\x20in\x20the\x20color\x20as\x20a\x20value\ - \x20in\x20the\x20interval\x20[0,\x201].\n\n\r\n\x05\x04\0\x02\0\x05\x12\ - \x04\x99\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x99\x01\x08\x0b\n\ - \r\n\x05\x04\0\x02\0\x03\x12\x04\x99\x01\x0e\x0f\nS\n\x04\x04\0\x02\x01\ - \x12\x04\x9c\x01\x02\x12\x1aE\x20The\x20amount\x20of\x20green\x20in\x20t\ - he\x20color\x20as\x20a\x20value\x20in\x20the\x20interval\x20[0,\x201].\n\ - \n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x9c\x01\x02\x07\n\r\n\x05\x04\0\x02\ - \x01\x01\x12\x04\x9c\x01\x08\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x9c\ - \x01\x10\x11\nR\n\x04\x04\0\x02\x02\x12\x04\x9f\x01\x02\x11\x1aD\x20The\ - \x20amount\x20of\x20blue\x20in\x20the\x20color\x20as\x20a\x20value\x20in\ - \x20the\x20interval\x20[0,\x201].\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\ - \x9f\x01\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x9f\x01\x08\x0c\n\r\ - \n\x05\x04\0\x02\x02\x03\x12\x04\x9f\x01\x0f\x10\n\xf8\x04\n\x04\x04\0\ - \x02\x03\x12\x04\xac\x01\x02'\x1a\xe9\x04\x20The\x20fraction\x20of\x20th\ - is\x20color\x20that\x20should\x20be\x20applied\x20to\x20the\x20pixel.\ - \x20That\x20is,\n\x20the\x20final\x20pixel\x20color\x20is\x20defined\x20\ - by\x20the\x20equation:\n\n\x20\x20\x20`pixel\x20color\x20=\x20alpha\x20*\ - \x20(this\x20color)\x20+\x20(1.0\x20-\x20alpha)\x20*\x20(background\x20c\ - olor)`\n\n\x20This\x20means\x20that\x20a\x20value\x20of\x201.0\x20corres\ - ponds\x20to\x20a\x20solid\x20color,\x20whereas\n\x20a\x20value\x20of\x20\ - 0.0\x20corresponds\x20to\x20a\x20completely\x20transparent\x20color.\x20\ - This\n\x20uses\x20a\x20wrapper\x20message\x20rather\x20than\x20a\x20simp\ - le\x20float\x20scalar\x20so\x20that\x20it\x20is\n\x20possible\x20to\x20d\ - istinguish\x20between\x20a\x20default\x20value\x20and\x20the\x20value\ - \x20being\x20unset.\n\x20If\x20omitted,\x20this\x20color\x20object\x20is\ - \x20rendered\x20as\x20a\x20solid\x20color\n\x20(as\x20if\x20the\x20alpha\ - \x20value\x20had\x20been\x20explicitly\x20given\x20a\x20value\x20of\x201\ - .0).\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xac\x01\x02\x1c\n\r\n\x05\x04\ - \0\x02\x03\x01\x12\x04\xac\x01\x1d\"\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\ - \xac\x01%&b\x06proto3\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setRed(red\x20/\ + \x20denominator)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20.setGreen(green\x20/\x20denominator)\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.setBlue(blue\x20/\x20denomi\ + nator);\n\x20\x20\x20\x20\x20\x20\x20\x20int\x20alpha\x20=\x20color.getA\ + lpha();\n\x20\x20\x20\x20\x20\x20\x20\x20if\x20(alpha\x20!=\x20255)\x20{\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20result.setAlpha(\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FloatValue\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.newBuilder()\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + .setValue(((float)\x20alpha)\x20/\x20denominator)\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.build());\n\x20\x20\ + \x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20return\x20res\ + ultBuilder.build();\n\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ + //\x20...\n\n\x20Example\x20(iOS\x20/\x20Obj-C):\n\n\x20\x20\x20\x20\x20\ + \x20//\x20...\n\x20\x20\x20\x20\x20\x20static\x20UIColor*\x20fromProto(C\ + olor*\x20protocolor)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20\ + red\x20=\x20[protocolor\x20red];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20fl\ + oat\x20green\x20=\x20[protocolor\x20green];\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20float\x20blue\x20=\x20[protocolor\x20blue];\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20FloatValue*\x20alpha_wrapper\x20=\x20[protocolor\ + \x20alpha];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20float\x20alpha\x20=\x20\ + 1.0;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(alpha_wrapper\x20!=\x20\ + nil)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20=\x20[al\ + pha_wrapper\x20value];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20return\x20[UIColor\x20colorWithRed:red\x20gr\ + een:green\x20blue:blue\x20alpha:alpha];\n\x20\x20\x20\x20\x20\x20}\n\n\ + \x20\x20\x20\x20\x20\x20static\x20Color*\x20toProto(UIColor*\x20color)\ + \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CGFloat\x20red,\x20green,\ + \x20blue,\x20alpha;\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(![co\ + lor\x20getRed:&red\x20green:&green\x20blue:&blue\x20alpha:&alpha])\x20{\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20nil;\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20Color*\x20result\x20=\x20[[Color\x20alloc]\x20init];\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20[result\x20setRed:red];\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20[result\x20setGreen:green];\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20[result\x20setBlue:blue];\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20if\x20(alpha\x20<=\x200.9999)\x20{\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20[result\x20setAlpha:floatWrapperWith\ + Value(alpha)];\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20[result\x20autorelease];\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20return\x20result;\n\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20//\x20...\n\n\x20\x20Example\x20(JavaScript):\n\n\x20\ + \x20\x20\x20\x20//\x20...\n\n\x20\x20\x20\x20\x20var\x20protoToCssColor\ + \x20=\x20function(rgb_color)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20var\ + \x20redFrac\x20=\x20rgb_color.red\x20||\x200.0;\n\x20\x20\x20\x20\x20\ + \x20\x20\x20var\x20greenFrac\x20=\x20rgb_color.green\x20||\x200.0;\n\x20\ + \x20\x20\x20\x20\x20\x20\x20var\x20blueFrac\x20=\x20rgb_color.blue\x20||\ + \x200.0;\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20red\x20=\x20Math.floor(\ + redFrac\x20*\x20255);\n\x20\x20\x20\x20\x20\x20\x20\x20var\x20green\x20=\ + \x20Math.floor(greenFrac\x20*\x20255);\n\x20\x20\x20\x20\x20\x20\x20\x20\ + var\x20blue\x20=\x20Math.floor(blueFrac\x20*\x20255);\n\n\x20\x20\x20\ + \x20\x20\x20\x20\x20if\x20(!('alpha'\x20in\x20rgb_color))\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20rgbToCssColor_(red,\x20gre\ + en,\x20blue);\n\x20\x20\x20\x20\x20\x20\x20\x20}\n\n\x20\x20\x20\x20\x20\ + \x20\x20\x20var\x20alphaFrac\x20=\x20rgb_color.alpha.value\x20||\x200.0;\ + \n\x20\x20\x20\x20\x20\x20\x20\x20var\x20rgbParams\x20=\x20[red,\x20gree\ + n,\x20blue].join(',');\n\x20\x20\x20\x20\x20\x20\x20\x20return\x20['rgba\ + (',\x20rgbParams,\x20',',\x20alphaFrac,\x20')'].join('');\n\x20\x20\x20\ + \x20\x20};\n\n\x20\x20\x20\x20\x20var\x20rgbToCssColor_\x20=\x20function\ + (red,\x20green,\x20blue)\x20{\n\x20\x20\x20\x20\x20\x20\x20var\x20rgbNum\ + ber\x20=\x20new\x20Number((red\x20<<\x2016)\x20|\x20(green\x20<<\x208)\ + \x20|\x20blue);\n\x20\x20\x20\x20\x20\x20\x20var\x20hexString\x20=\x20rg\ + bNumber.toString(16);\n\x20\x20\x20\x20\x20\x20\x20var\x20missingZeros\ + \x20=\x206\x20-\x20hexString.length;\n\x20\x20\x20\x20\x20\x20\x20var\ + \x20resultBuilder\x20=\x20['#'];\n\x20\x20\x20\x20\x20\x20\x20for\x20(va\ + r\x20i\x20=\x200;\x20i\x20<\x20missingZeros;\x20i++)\x20{\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20resultBuilder.push('0');\n\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20resultBuilder.push(hexString)\ + ;\n\x20\x20\x20\x20\x20\x20\x20return\x20resultBuilder.join('');\n\x20\ + \x20\x20\x20\x20};\n\n\x20\x20\x20\x20\x20//\x20...\n\n\x0b\n\x03\x04\0\ + \x01\x12\x04\x93\x01\x08\r\nQ\n\x04\x04\0\x02\0\x12\x04\x95\x01\x02\x10\ + \x1aC\x20The\x20amount\x20of\x20red\x20in\x20the\x20color\x20as\x20a\x20\ + value\x20in\x20the\x20interval\x20[0,\x201].\n\n\r\n\x05\x04\0\x02\0\x05\ + \x12\x04\x95\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\x95\x01\x08\ + \x0b\n\r\n\x05\x04\0\x02\0\x03\x12\x04\x95\x01\x0e\x0f\nS\n\x04\x04\0\ + \x02\x01\x12\x04\x98\x01\x02\x12\x1aE\x20The\x20amount\x20of\x20green\ + \x20in\x20the\x20color\x20as\x20a\x20value\x20in\x20the\x20interval\x20[\ + 0,\x201].\n\n\r\n\x05\x04\0\x02\x01\x05\x12\x04\x98\x01\x02\x07\n\r\n\ + \x05\x04\0\x02\x01\x01\x12\x04\x98\x01\x08\r\n\r\n\x05\x04\0\x02\x01\x03\ + \x12\x04\x98\x01\x10\x11\nR\n\x04\x04\0\x02\x02\x12\x04\x9b\x01\x02\x11\ + \x1aD\x20The\x20amount\x20of\x20blue\x20in\x20the\x20color\x20as\x20a\ + \x20value\x20in\x20the\x20interval\x20[0,\x201].\n\n\r\n\x05\x04\0\x02\ + \x02\x05\x12\x04\x9b\x01\x02\x07\n\r\n\x05\x04\0\x02\x02\x01\x12\x04\x9b\ + \x01\x08\x0c\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x9b\x01\x0f\x10\n\x81\ + \x05\n\x04\x04\0\x02\x03\x12\x04\xa8\x01\x02'\x1a\xf2\x04\x20The\x20frac\ + tion\x20of\x20this\x20color\x20that\x20should\x20be\x20applied\x20to\x20\ + the\x20pixel.\x20That\x20is,\n\x20the\x20final\x20pixel\x20color\x20is\ + \x20defined\x20by\x20the\x20equation:\n\n\x20\x20\x20pixel\x20color\x20=\ + \x20alpha\x20*\x20(this\x20color)\x20+\x20(1.0\x20-\x20alpha)\x20*\x20(b\ + ackground\x20color)\n\n\x20This\x20means\x20that\x20a\x20value\x20of\x20\ + 1.0\x20corresponds\x20to\x20a\x20solid\x20color,\x20whereas\n\x20a\x20va\ + lue\x20of\x200.0\x20corresponds\x20to\x20a\x20completely\x20transparent\ + \x20color.\x20This\n\x20uses\x20a\x20wrapper\x20message\x20rather\x20tha\ + n\x20a\x20simple\x20float\x20scalar\x20so\x20that\x20it\x20is\n\x20possi\ + ble\x20to\x20distinguish\x20between\x20a\x20default\x20value\x20and\x20t\ + he\x20value\x20being\x20unset.\n\x20If\x20omitted,\x20this\x20color\x20o\ + bject\x20is\x20to\x20be\x20rendered\x20as\x20a\x20solid\x20color\n\x20(a\ + s\x20if\x20the\x20alpha\x20value\x20had\x20been\x20explicitly\x20given\ + \x20with\x20a\x20value\x20of\x201.0).\n\n\r\n\x05\x04\0\x02\x03\x06\x12\ + \x04\xa8\x01\x02\x1c\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xa8\x01\x1d\"\n\ + \r\n\x05\x04\0\x02\x03\x03\x12\x04\xa8\x01%&b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::well_known_types::wrappers::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Color::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/date.rs b/googleapis-raw/src/type/date.rs index 458cecf..a1a9fe4 100644 --- a/googleapis-raw/src/type/date.rs +++ b/googleapis-raw/src/type/date.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,45 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/date.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// Represents a whole or partial calendar date, e.g. a birthday. The time of day +/// and time zone are either specified elsewhere or are not significant. The date +/// is relative to the Proleptic Gregorian Calendar. This can represent: +/// +/// * A full date, with non-zero year, month and day values +/// * A month and day value, with a zero year, e.g. an anniversary +/// * A year on its own, with zero month and day values +/// * A year and month value, with a zero day, e.g. a credit card expiration date +/// +/// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and `google.protobuf.Timestamp`. +// @@protoc_insertion_point(message:google.type.Date) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Date { // message fields + /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without + /// a year. + // @@protoc_insertion_point(field:google.type.Date.year) pub year: i32, + /// Month of year. Must be from 1 to 12, or 0 if specifying a year without a + /// month and day. + // @@protoc_insertion_point(field:google.type.Date.month) pub month: i32, + /// Day of month. Must be from 1 to 31 and valid for the year and month, or 0 + /// if specifying a year by itself or a year and month where the day is not + /// significant. + // @@protoc_insertion_point(field:google.type.Date.day) pub day: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Date.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Date { @@ -45,84 +68,53 @@ impl Date { ::std::default::Default::default() } - // int32 year = 1; - - - pub fn get_year(&self) -> i32 { - self.year - } - pub fn clear_year(&mut self) { - self.year = 0; - } - - // Param is passed by value, moved - pub fn set_year(&mut self, v: i32) { - self.year = v; - } - - // int32 month = 2; - - - pub fn get_month(&self) -> i32 { - self.month - } - pub fn clear_month(&mut self) { - self.month = 0; - } - - // Param is passed by value, moved - pub fn set_month(&mut self, v: i32) { - self.month = v; - } - - // int32 day = 3; - - - pub fn get_day(&self) -> i32 { - self.day - } - pub fn clear_day(&mut self) { - self.day = 0; - } - - // Param is passed by value, moved - pub fn set_day(&mut self, v: i32) { - self.day = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "year", + |m: &Date| { &m.year }, + |m: &mut Date| { &mut m.year }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "month", + |m: &Date| { &m.month }, + |m: &mut Date| { &mut m.month }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "day", + |m: &Date| { &m.day }, + |m: &mut Date| { &mut m.day }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Date", + fields, + oneofs, + ) } } impl ::protobuf::Message for Date { + const NAME: &'static str = "Date"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.year = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.year = is.read_int32()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.month = tmp; + 16 => { + self.month = is.read_int32()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.day = tmp; + 24 => { + self.day = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -131,23 +123,23 @@ impl ::protobuf::Message for Date { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.year != 0 { - my_size += ::protobuf::rt::value_size(1, self.year, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.year); } if self.month != 0 { - my_size += ::protobuf::rt::value_size(2, self.month, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.month); } if self.day != 0 { - my_size += ::protobuf::rt::value_size(3, self.day, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.day); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.year != 0 { os.write_int32(1, self.year)?; } @@ -157,92 +149,55 @@ impl ::protobuf::Message for Date { if self.day != 0 { os.write_int32(3, self.day)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Date { Date::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "year", - |m: &Date| { &m.year }, - |m: &mut Date| { &mut m.year }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "month", - |m: &Date| { &m.month }, - |m: &mut Date| { &mut m.month }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "day", - |m: &Date| { &m.day }, - |m: &mut Date| { &mut m.day }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Date", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.year = 0; + self.month = 0; + self.day = 0; + self.special_fields.clear(); } fn default_instance() -> &'static Date { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Date::new) + static instance: Date = Date { + year: 0, + month: 0, + day: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Date { - fn clear(&mut self) { - self.year = 0; - self.month = 0; - self.day = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Date { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Date").unwrap()).clone() } } -impl ::std::fmt::Debug for Date { +impl ::std::fmt::Display for Date { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Date { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -250,66 +205,82 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x04year\x18\x01\x20\x01(\x05R\x04year\x12\x14\n\x05month\x18\x02\x20\ \x01(\x05R\x05month\x12\x10\n\x03day\x18\x03\x20\x01(\x05R\x03dayB]\n\ \x0fcom.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googlea\ - pis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPJ\xc0\x0e\n\x06\x12\x04\x0e\ - \03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202\ - 021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licens\ - e,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20\ - use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Lice\ - nse.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20a\ - t\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\ - \x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x13\0K\n\t\n\x02\x08\x0b\x12\x03\x13\0K\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\0*\n\t\n\x02\x08\x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0(\ - \n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\ - \x02\x08$\x12\x03\x17\0!\n\xe9\x04\n\x02\x04\0\x12\x04&\03\x01\x1a\xdc\ - \x04\x20Represents\x20a\x20whole\x20or\x20partial\x20calendar\x20date,\ - \x20such\x20as\x20a\x20birthday.\x20The\x20time\x20of\n\x20day\x20and\ - \x20time\x20zone\x20are\x20either\x20specified\x20elsewhere\x20or\x20are\ - \x20insignificant.\x20The\n\x20date\x20is\x20relative\x20to\x20the\x20Gr\ - egorian\x20Calendar.\x20This\x20can\x20represent\x20one\x20of\x20the\n\ - \x20following:\n\n\x20*\x20A\x20full\x20date,\x20with\x20non-zero\x20yea\ - r,\x20month,\x20and\x20day\x20values\n\x20*\x20A\x20month\x20and\x20day\ - \x20value,\x20with\x20a\x20zero\x20year,\x20such\x20as\x20an\x20annivers\ - ary\n\x20*\x20A\x20year\x20on\x20its\x20own,\x20with\x20zero\x20month\ - \x20and\x20day\x20values\n\x20*\x20A\x20year\x20and\x20month\x20value,\ - \x20with\x20a\x20zero\x20day,\x20such\x20as\x20a\x20credit\x20card\x20ex\ - piration\n\x20date\n\n\x20Related\x20types\x20are\x20[google.type.TimeOf\ - Day][google.type.TimeOfDay]\x20and\n\x20`google.protobuf.Timestamp`.\n\n\ - \n\n\x03\x04\0\x01\x12\x03&\x08\x0c\n`\n\x04\x04\0\x02\0\x12\x03)\x02\ - \x11\x1aS\x20Year\x20of\x20the\x20date.\x20Must\x20be\x20from\x201\x20to\ - \x209999,\x20or\x200\x20to\x20specify\x20a\x20date\x20without\n\x20a\x20\ - year.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03)\x02\x07\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03)\x08\x0c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03)\x0f\x10\ - \nf\n\x04\x04\0\x02\x01\x12\x03-\x02\x12\x1aY\x20Month\x20of\x20a\x20yea\ - r.\x20Must\x20be\x20from\x201\x20to\x2012,\x20or\x200\x20to\x20specify\ - \x20a\x20year\x20without\x20a\n\x20month\x20and\x20day.\n\n\x0c\n\x05\ - \x04\0\x02\x01\x05\x12\x03-\x02\x07\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x03-\x08\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-\x10\x11\n\xae\x01\n\ - \x04\x04\0\x02\x02\x12\x032\x02\x10\x1a\xa0\x01\x20Day\x20of\x20a\x20mon\ - th.\x20Must\x20be\x20from\x201\x20to\x2031\x20and\x20valid\x20for\x20the\ - \x20year\x20and\x20month,\x20or\x200\n\x20to\x20specify\x20a\x20year\x20\ - by\x20itself\x20or\x20a\x20year\x20and\x20month\x20where\x20the\x20day\ - \x20isn't\n\x20significant.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x032\x02\ - \x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x032\x08\x0b\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x032\x0e\x0fb\x06proto3\ + pis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPJ\xae\x0e\n\x06\x12\x04\x0f\ + \01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202\ + 019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licen\ + se,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\ + \x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20\ + License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\ + \x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\ + \n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ + \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x14\n\x08\n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\ + \x1f\n\x08\n\x01\x08\x12\x03\x14\0K\n\t\n\x02\x08\x0b\x12\x03\x14\0K\n\ + \x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\ + \x01\x08\x12\x03\x16\0*\n\t\n\x02\x08\x08\x12\x03\x16\0*\n\x08\n\x01\x08\ + \x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\x03\x17\0(\n\x08\n\x01\x08\x12\x03\ + \x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\n\xd3\x04\n\x02\x04\0\x12\x04$\01\ + \x01\x1a\xc6\x04\x20Represents\x20a\x20whole\x20or\x20partial\x20calenda\ + r\x20date,\x20e.g.\x20a\x20birthday.\x20The\x20time\x20of\x20day\n\x20an\ + d\x20time\x20zone\x20are\x20either\x20specified\x20elsewhere\x20or\x20ar\ + e\x20not\x20significant.\x20The\x20date\n\x20is\x20relative\x20to\x20the\ + \x20Proleptic\x20Gregorian\x20Calendar.\x20This\x20can\x20represent:\n\n\ + \x20*\x20A\x20full\x20date,\x20with\x20non-zero\x20year,\x20month\x20and\ + \x20day\x20values\n\x20*\x20A\x20month\x20and\x20day\x20value,\x20with\ + \x20a\x20zero\x20year,\x20e.g.\x20an\x20anniversary\n\x20*\x20A\x20year\ + \x20on\x20its\x20own,\x20with\x20zero\x20month\x20and\x20day\x20values\n\ + \x20*\x20A\x20year\x20and\x20month\x20value,\x20with\x20a\x20zero\x20day\ + ,\x20e.g.\x20a\x20credit\x20card\x20expiration\x20date\n\n\x20Related\ + \x20types\x20are\x20[google.type.TimeOfDay][google.type.TimeOfDay]\x20an\ + d\x20`google.protobuf.Timestamp`.\n\n\n\n\x03\x04\0\x01\x12\x03$\x08\x0c\ + \n_\n\x04\x04\0\x02\0\x12\x03'\x02\x11\x1aR\x20Year\x20of\x20date.\x20Mu\ + st\x20be\x20from\x201\x20to\x209999,\x20or\x200\x20if\x20specifying\x20a\ + \x20date\x20without\n\x20a\x20year.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ + \x03'\x02\x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03'\x08\x0c\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03'\x0f\x10\ng\n\x04\x04\0\x02\x01\x12\x03+\x02\ + \x12\x1aZ\x20Month\x20of\x20year.\x20Must\x20be\x20from\x201\x20to\x2012\ + ,\x20or\x200\x20if\x20specifying\x20a\x20year\x20without\x20a\n\x20month\ + \x20and\x20day.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03+\x02\x07\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03+\x08\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x03+\x10\x11\n\xb0\x01\n\x04\x04\0\x02\x02\x12\x030\x02\x10\x1a\xa2\x01\ + \x20Day\x20of\x20month.\x20Must\x20be\x20from\x201\x20to\x2031\x20and\ + \x20valid\x20for\x20the\x20year\x20and\x20month,\x20or\x200\n\x20if\x20s\ + pecifying\x20a\x20year\x20by\x20itself\x20or\x20a\x20year\x20and\x20mont\ + h\x20where\x20the\x20day\x20is\x20not\n\x20significant.\n\n\x0c\n\x05\ + \x04\0\x02\x02\x05\x12\x030\x02\x07\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ + \x030\x08\x0b\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x030\x0e\x0fb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Date::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/datetime.rs b/googleapis-raw/src/type/datetime.rs deleted file mode 100644 index 0539f62..0000000 --- a/googleapis-raw/src/type/datetime.rs +++ /dev/null @@ -1,887 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/type/datetime.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct DateTime { - // message fields - pub year: i32, - pub month: i32, - pub day: i32, - pub hours: i32, - pub minutes: i32, - pub seconds: i32, - pub nanos: i32, - // message oneof groups - pub time_offset: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DateTime { - fn default() -> &'a DateTime { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum DateTime_oneof_time_offset { - utc_offset(::protobuf::well_known_types::Duration), - time_zone(TimeZone), -} - -impl DateTime { - pub fn new() -> DateTime { - ::std::default::Default::default() - } - - // int32 year = 1; - - - pub fn get_year(&self) -> i32 { - self.year - } - pub fn clear_year(&mut self) { - self.year = 0; - } - - // Param is passed by value, moved - pub fn set_year(&mut self, v: i32) { - self.year = v; - } - - // int32 month = 2; - - - pub fn get_month(&self) -> i32 { - self.month - } - pub fn clear_month(&mut self) { - self.month = 0; - } - - // Param is passed by value, moved - pub fn set_month(&mut self, v: i32) { - self.month = v; - } - - // int32 day = 3; - - - pub fn get_day(&self) -> i32 { - self.day - } - pub fn clear_day(&mut self) { - self.day = 0; - } - - // Param is passed by value, moved - pub fn set_day(&mut self, v: i32) { - self.day = v; - } - - // int32 hours = 4; - - - pub fn get_hours(&self) -> i32 { - self.hours - } - pub fn clear_hours(&mut self) { - self.hours = 0; - } - - // Param is passed by value, moved - pub fn set_hours(&mut self, v: i32) { - self.hours = v; - } - - // int32 minutes = 5; - - - pub fn get_minutes(&self) -> i32 { - self.minutes - } - pub fn clear_minutes(&mut self) { - self.minutes = 0; - } - - // Param is passed by value, moved - pub fn set_minutes(&mut self, v: i32) { - self.minutes = v; - } - - // int32 seconds = 6; - - - pub fn get_seconds(&self) -> i32 { - self.seconds - } - pub fn clear_seconds(&mut self) { - self.seconds = 0; - } - - // Param is passed by value, moved - pub fn set_seconds(&mut self, v: i32) { - self.seconds = v; - } - - // int32 nanos = 7; - - - pub fn get_nanos(&self) -> i32 { - self.nanos - } - pub fn clear_nanos(&mut self) { - self.nanos = 0; - } - - // Param is passed by value, moved - pub fn set_nanos(&mut self, v: i32) { - self.nanos = v; - } - - // .google.protobuf.Duration utc_offset = 8; - - - pub fn get_utc_offset(&self) -> &::protobuf::well_known_types::Duration { - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(ref v)) => v, - _ => <::protobuf::well_known_types::Duration as ::protobuf::Message>::default_instance(), - } - } - pub fn clear_utc_offset(&mut self) { - self.time_offset = ::std::option::Option::None; - } - - pub fn has_utc_offset(&self) -> bool { - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_utc_offset(&mut self, v: ::protobuf::well_known_types::Duration) { - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(v)) - } - - // Mutable pointer to the field. - pub fn mut_utc_offset(&mut self) -> &mut ::protobuf::well_known_types::Duration { - if let ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(_)) = self.time_offset { - } else { - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(::protobuf::well_known_types::Duration::new())); - } - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_utc_offset(&mut self) -> ::protobuf::well_known_types::Duration { - if self.has_utc_offset() { - match self.time_offset.take() { - ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(v)) => v, - _ => panic!(), - } - } else { - ::protobuf::well_known_types::Duration::new() - } - } - - // .google.type.TimeZone time_zone = 9; - - - pub fn get_time_zone(&self) -> &TimeZone { - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_time_zone(&mut self) { - self.time_offset = ::std::option::Option::None; - } - - pub fn has_time_zone(&self) -> bool { - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_time_zone(&mut self, v: TimeZone) { - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(v)) - } - - // Mutable pointer to the field. - pub fn mut_time_zone(&mut self) -> &mut TimeZone { - if let ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(_)) = self.time_offset { - } else { - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(TimeZone::new())); - } - match self.time_offset { - ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_time_zone(&mut self) -> TimeZone { - if self.has_time_zone() { - match self.time_offset.take() { - ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(v)) => v, - _ => panic!(), - } - } else { - TimeZone::new() - } - } -} - -impl ::protobuf::Message for DateTime { - fn is_initialized(&self) -> bool { - if let Some(DateTime_oneof_time_offset::utc_offset(ref v)) = self.time_offset { - if !v.is_initialized() { - return false; - } - } - if let Some(DateTime_oneof_time_offset::time_zone(ref v)) = self.time_offset { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.year = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.month = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.day = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.hours = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.minutes = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.seconds = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.nanos = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::utc_offset(is.read_message()?)); - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.time_offset = ::std::option::Option::Some(DateTime_oneof_time_offset::time_zone(is.read_message()?)); - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.year != 0 { - my_size += ::protobuf::rt::value_size(1, self.year, ::protobuf::wire_format::WireTypeVarint); - } - if self.month != 0 { - my_size += ::protobuf::rt::value_size(2, self.month, ::protobuf::wire_format::WireTypeVarint); - } - if self.day != 0 { - my_size += ::protobuf::rt::value_size(3, self.day, ::protobuf::wire_format::WireTypeVarint); - } - if self.hours != 0 { - my_size += ::protobuf::rt::value_size(4, self.hours, ::protobuf::wire_format::WireTypeVarint); - } - if self.minutes != 0 { - my_size += ::protobuf::rt::value_size(5, self.minutes, ::protobuf::wire_format::WireTypeVarint); - } - if self.seconds != 0 { - my_size += ::protobuf::rt::value_size(6, self.seconds, ::protobuf::wire_format::WireTypeVarint); - } - if self.nanos != 0 { - my_size += ::protobuf::rt::value_size(7, self.nanos, ::protobuf::wire_format::WireTypeVarint); - } - if let ::std::option::Option::Some(ref v) = self.time_offset { - match v { - &DateTime_oneof_time_offset::utc_offset(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - &DateTime_oneof_time_offset::time_zone(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.year != 0 { - os.write_int32(1, self.year)?; - } - if self.month != 0 { - os.write_int32(2, self.month)?; - } - if self.day != 0 { - os.write_int32(3, self.day)?; - } - if self.hours != 0 { - os.write_int32(4, self.hours)?; - } - if self.minutes != 0 { - os.write_int32(5, self.minutes)?; - } - if self.seconds != 0 { - os.write_int32(6, self.seconds)?; - } - if self.nanos != 0 { - os.write_int32(7, self.nanos)?; - } - if let ::std::option::Option::Some(ref v) = self.time_offset { - match v { - &DateTime_oneof_time_offset::utc_offset(ref v) => { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - &DateTime_oneof_time_offset::time_zone(ref v) => { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DateTime { - DateTime::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "year", - |m: &DateTime| { &m.year }, - |m: &mut DateTime| { &mut m.year }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "month", - |m: &DateTime| { &m.month }, - |m: &mut DateTime| { &mut m.month }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "day", - |m: &DateTime| { &m.day }, - |m: &mut DateTime| { &mut m.day }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "hours", - |m: &DateTime| { &m.hours }, - |m: &mut DateTime| { &mut m.hours }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "minutes", - |m: &DateTime| { &m.minutes }, - |m: &mut DateTime| { &mut m.minutes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "seconds", - |m: &DateTime| { &m.seconds }, - |m: &mut DateTime| { &mut m.seconds }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "nanos", - |m: &DateTime| { &m.nanos }, - |m: &mut DateTime| { &mut m.nanos }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, ::protobuf::well_known_types::Duration>( - "utc_offset", - DateTime::has_utc_offset, - DateTime::get_utc_offset, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, TimeZone>( - "time_zone", - DateTime::has_time_zone, - DateTime::get_time_zone, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DateTime", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static DateTime { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(DateTime::new) - } -} - -impl ::protobuf::Clear for DateTime { - fn clear(&mut self) { - self.year = 0; - self.month = 0; - self.day = 0; - self.hours = 0; - self.minutes = 0; - self.seconds = 0; - self.nanos = 0; - self.time_offset = ::std::option::Option::None; - self.time_offset = ::std::option::Option::None; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DateTime { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DateTime { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TimeZone { - // message fields - pub id: ::std::string::String, - pub version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TimeZone { - fn default() -> &'a TimeZone { - ::default_instance() - } -} - -impl TimeZone { - pub fn new() -> TimeZone { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string version = 2; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for TimeZone { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.version.is_empty() { - os.write_string(2, &self.version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> TimeZone { - TimeZone::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &TimeZone| { &m.id }, - |m: &mut TimeZone| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &TimeZone| { &m.version }, - |m: &mut TimeZone| { &mut m.version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TimeZone", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static TimeZone { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimeZone::new) - } -} - -impl ::protobuf::Clear for TimeZone { - fn clear(&mut self) { - self.id.clear(); - self.version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TimeZone { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for TimeZone { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1agoogle/type/datetime.proto\x12\x0bgoogle.type\x1a\x1egoogle/protob\ - uf/duration.proto\"\xa7\x02\n\x08DateTime\x12\x12\n\x04year\x18\x01\x20\ - \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02\x20\x01(\x05R\x05month\x12\ - \x10\n\x03day\x18\x03\x20\x01(\x05R\x03day\x12\x14\n\x05hours\x18\x04\ - \x20\x01(\x05R\x05hours\x12\x18\n\x07minutes\x18\x05\x20\x01(\x05R\x07mi\ - nutes\x12\x18\n\x07seconds\x18\x06\x20\x01(\x05R\x07seconds\x12\x14\n\ - \x05nanos\x18\x07\x20\x01(\x05R\x05nanos\x12:\n\nutc_offset\x18\x08\x20\ - \x01(\x0b2\x19.google.protobuf.DurationH\0R\tutcOffset\x124\n\ttime_zone\ - \x18\t\x20\x01(\x0b2\x15.google.type.TimeZoneH\0R\x08timeZoneB\r\n\x0bti\ - me_offset\"4\n\x08TimeZone\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\ - \x18\n\x07version\x18\x02\x20\x01(\tR\x07versionBi\n\x0fcom.google.typeB\ - \rDateTimeProtoP\x01Z = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/dayofweek.rs b/googleapis-raw/src/type/dayofweek.rs index 54c8d9d..2925abf 100644 --- a/googleapis-raw/src/type/dayofweek.rs +++ b/googleapis-raw/src/type/dayofweek.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,27 +16,40 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/dayofweek.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// Represents a day of week. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.type.DayOfWeek) pub enum DayOfWeek { + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED) DAY_OF_WEEK_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.MONDAY) MONDAY = 1, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.TUESDAY) TUESDAY = 2, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.WEDNESDAY) WEDNESDAY = 3, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.THURSDAY) THURSDAY = 4, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.FRIDAY) FRIDAY = 5, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.SATURDAY) SATURDAY = 6, + // @@protoc_insertion_point(enum_value:google.type.DayOfWeek.SUNDAY) SUNDAY = 7, } -impl ::protobuf::ProtobufEnum for DayOfWeek { +impl ::protobuf::Enum for DayOfWeek { + const NAME: &'static str = "DayOfWeek"; + fn value(&self) -> i32 { *self as i32 } @@ -54,29 +68,42 @@ impl ::protobuf::ProtobufEnum for DayOfWeek { } } - fn values() -> &'static [Self] { - static values: &'static [DayOfWeek] = &[ - DayOfWeek::DAY_OF_WEEK_UNSPECIFIED, - DayOfWeek::MONDAY, - DayOfWeek::TUESDAY, - DayOfWeek::WEDNESDAY, - DayOfWeek::THURSDAY, - DayOfWeek::FRIDAY, - DayOfWeek::SATURDAY, - DayOfWeek::SUNDAY, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "DAY_OF_WEEK_UNSPECIFIED" => ::std::option::Option::Some(DayOfWeek::DAY_OF_WEEK_UNSPECIFIED), + "MONDAY" => ::std::option::Option::Some(DayOfWeek::MONDAY), + "TUESDAY" => ::std::option::Option::Some(DayOfWeek::TUESDAY), + "WEDNESDAY" => ::std::option::Option::Some(DayOfWeek::WEDNESDAY), + "THURSDAY" => ::std::option::Option::Some(DayOfWeek::THURSDAY), + "FRIDAY" => ::std::option::Option::Some(DayOfWeek::FRIDAY), + "SATURDAY" => ::std::option::Option::Some(DayOfWeek::SATURDAY), + "SUNDAY" => ::std::option::Option::Some(DayOfWeek::SUNDAY), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("DayOfWeek", file_descriptor_proto()) - }) - } + const VALUES: &'static [DayOfWeek] = &[ + DayOfWeek::DAY_OF_WEEK_UNSPECIFIED, + DayOfWeek::MONDAY, + DayOfWeek::TUESDAY, + DayOfWeek::WEDNESDAY, + DayOfWeek::THURSDAY, + DayOfWeek::FRIDAY, + DayOfWeek::SATURDAY, + DayOfWeek::SUNDAY, + ]; } -impl ::std::marker::Copy for DayOfWeek { +impl ::protobuf::EnumFull for DayOfWeek { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("DayOfWeek").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for DayOfWeek { @@ -85,9 +112,9 @@ impl ::std::default::Default for DayOfWeek { } } -impl ::protobuf::reflect::ProtobufValue for DayOfWeek { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl DayOfWeek { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("DayOfWeek") } } @@ -98,55 +125,74 @@ static file_descriptor_proto_data: &'static [u8] = b"\ URSDAY\x10\x04\x12\n\n\x06FRIDAY\x10\x05\x12\x0c\n\x08SATURDAY\x10\x06\ \x12\n\n\x06SUNDAY\x10\x07Bi\n\x0fcom.google.typeB\x0eDayOfWeekProtoP\ \x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\xa2\ - \x02\x03GTPJ\xb0\t\n\x06\x12\x04\x0e\01\x01\n\xbc\x04\n\x01\x0c\x12\x03\ - \x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20License\ - d\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"L\ - icense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ - \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ - \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ - .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ - icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ - istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ + \x02\x03GTPJ\xb3\n\n\x06\x12\x04\x0f\02\x01\n\xbe\x04\n\x01\x0c\x12\x03\ + \x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licens\ + ed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"\ + License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20i\ + n\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20\ + a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://ww\ + w.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20app\ + licable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20\ + distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ - \x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0U\n\t\n\ - \x02\x08\x0b\x12\x03\x12\0U\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\ - \x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0/\n\t\n\x02\x08\x08\ - \x12\x03\x14\0/\n\x08\n\x01\x08\x12\x03\x15\0(\n\t\n\x02\x08\x01\x12\x03\ - \x15\0(\n\x08\n\x01\x08\x12\x03\x16\0!\n\t\n\x02\x08$\x12\x03\x16\0!\n+\ - \n\x02\x05\0\x12\x04\x19\01\x01\x1a\x1f\x20Represents\x20a\x20day\x20of\ - \x20the\x20week.\n\n\n\n\x03\x05\0\x01\x12\x03\x19\x05\x0e\n2\n\x04\x05\ - \0\x02\0\x12\x03\x1b\x02\x1e\x1a%\x20The\x20day\x20of\x20the\x20week\x20\ - is\x20unspecified.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1b\x02\x19\n\ - \x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1b\x1c\x1d\n\x15\n\x04\x05\0\x02\x01\ - \x12\x03\x1e\x02\r\x1a\x08\x20Monday\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\ - \x03\x1e\x02\x08\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1e\x0b\x0c\n\x16\ - \n\x04\x05\0\x02\x02\x12\x03!\x02\x0e\x1a\t\x20Tuesday\n\n\x0c\n\x05\x05\ - \0\x02\x02\x01\x12\x03!\x02\t\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03!\x0c\ - \r\n\x18\n\x04\x05\0\x02\x03\x12\x03$\x02\x10\x1a\x0b\x20Wednesday\n\n\ - \x0c\n\x05\x05\0\x02\x03\x01\x12\x03$\x02\x0b\n\x0c\n\x05\x05\0\x02\x03\ - \x02\x12\x03$\x0e\x0f\n\x17\n\x04\x05\0\x02\x04\x12\x03'\x02\x0f\x1a\n\ - \x20Thursday\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03'\x02\n\n\x0c\n\x05\ - \x05\0\x02\x04\x02\x12\x03'\r\x0e\n\x15\n\x04\x05\0\x02\x05\x12\x03*\x02\ - \r\x1a\x08\x20Friday\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03*\x02\x08\n\ - \x0c\n\x05\x05\0\x02\x05\x02\x12\x03*\x0b\x0c\n\x17\n\x04\x05\0\x02\x06\ - \x12\x03-\x02\x0f\x1a\n\x20Saturday\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\ - \x03-\x02\n\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03-\r\x0e\n\x15\n\x04\x05\ - \0\x02\x07\x12\x030\x02\r\x1a\x08\x20Sunday\n\n\x0c\n\x05\x05\0\x02\x07\ - \x01\x12\x030\x02\x08\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x030\x0b\x0cb\ - \x06proto3\ + \n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0U\n\t\n\ + \x02\x08\x0b\x12\x03\x13\0U\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\ + \x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0/\n\t\n\x02\x08\x08\ + \x12\x03\x15\0/\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\x03\ + \x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\n'\ + \n\x02\x05\0\x12\x04\x1a\02\x01\x1a\x1b\x20Represents\x20a\x20day\x20of\ + \x20week.\n\n\n\n\x03\x05\0\x01\x12\x03\x1a\x05\x0e\n+\n\x04\x05\0\x02\0\ + \x12\x03\x1c\x02\x1e\x1a\x1e\x20The\x20unspecified\x20day-of-week.\n\n\ + \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1c\x02\x19\n\x0c\n\x05\x05\0\x02\0\ + \x02\x12\x03\x1c\x1c\x1d\n)\n\x04\x05\0\x02\x01\x12\x03\x1f\x02\r\x1a\ + \x1c\x20The\x20day-of-week\x20of\x20Monday.\n\n\x0c\n\x05\x05\0\x02\x01\ + \x01\x12\x03\x1f\x02\x08\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1f\x0b\ + \x0c\n*\n\x04\x05\0\x02\x02\x12\x03\"\x02\x0e\x1a\x1d\x20The\x20day-of-w\ + eek\x20of\x20Tuesday.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\"\x02\t\n\ + \x0c\n\x05\x05\0\x02\x02\x02\x12\x03\"\x0c\r\n,\n\x04\x05\0\x02\x03\x12\ + \x03%\x02\x10\x1a\x1f\x20The\x20day-of-week\x20of\x20Wednesday.\n\n\x0c\ + \n\x05\x05\0\x02\x03\x01\x12\x03%\x02\x0b\n\x0c\n\x05\x05\0\x02\x03\x02\ + \x12\x03%\x0e\x0f\n+\n\x04\x05\0\x02\x04\x12\x03(\x02\x0f\x1a\x1e\x20The\ + \x20day-of-week\x20of\x20Thursday.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\ + \x03(\x02\n\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03(\r\x0e\n)\n\x04\x05\0\ + \x02\x05\x12\x03+\x02\r\x1a\x1c\x20The\x20day-of-week\x20of\x20Friday.\n\ + \n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03+\x02\x08\n\x0c\n\x05\x05\0\x02\ + \x05\x02\x12\x03+\x0b\x0c\n+\n\x04\x05\0\x02\x06\x12\x03.\x02\x0f\x1a\ + \x1e\x20The\x20day-of-week\x20of\x20Saturday.\n\n\x0c\n\x05\x05\0\x02\ + \x06\x01\x12\x03.\x02\n\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03.\r\x0e\n)\ + \n\x04\x05\0\x02\x07\x12\x031\x02\r\x1a\x1c\x20The\x20day-of-week\x20of\ + \x20Sunday.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x031\x02\x08\n\x0c\n\x05\ + \x05\0\x02\x07\x02\x12\x031\x0b\x0cb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(DayOfWeek::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/decimal.rs b/googleapis-raw/src/type/decimal.rs deleted file mode 100644 index f369707..0000000 --- a/googleapis-raw/src/type/decimal.rs +++ /dev/null @@ -1,288 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/type/decimal.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Decimal { - // message fields - pub value: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Decimal { - fn default() -> &'a Decimal { - ::default_instance() - } -} - -impl Decimal { - pub fn new() -> Decimal { - ::std::default::Default::default() - } - - // string value = 1; - - - pub fn get_value(&self) -> &str { - &self.value - } - pub fn clear_value(&mut self) { - self.value.clear(); - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: ::std::string::String) { - self.value = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_value(&mut self) -> &mut ::std::string::String { - &mut self.value - } - - // Take field - pub fn take_value(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.value, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Decimal { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.value.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.value); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.value.is_empty() { - os.write_string(1, &self.value)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Decimal { - Decimal::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "value", - |m: &Decimal| { &m.value }, - |m: &mut Decimal| { &mut m.value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Decimal", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Decimal { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Decimal::new) - } -} - -impl ::protobuf::Clear for Decimal { - fn clear(&mut self) { - self.value.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Decimal { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Decimal { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x19google/type/decimal.proto\x12\x0bgoogle.type\"\x1f\n\x07Decimal\ - \x12\x14\n\x05value\x18\x01\x20\x01(\tR\x05valueBf\n\x0fcom.google.typeB\ - \x0cDecimalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decima\ - l;decimal\xf8\x01\x01\xa2\x02\x03GTPJ\xf0\x1d\n\x06\x12\x04\x0e\0^\x01\n\ - \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Go\ - ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ - sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ - is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ - \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ - \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ - less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ - \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ - is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ - WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ - s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ - \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\ - \x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\ - \x12\x03\x13\0Q\n\t\n\x02\x08\x0b\x12\x03\x13\0Q\n\x08\n\x01\x08\x12\x03\ - \x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0-\ - \n\t\n\x02\x08\x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\ - \x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08\ - $\x12\x03\x17\0!\n\xed\x02\n\x02\x04\0\x12\x04\x20\0^\x01\x1a\xe0\x02\ - \x20A\x20representation\x20of\x20a\x20decimal\x20value,\x20such\x20as\ - \x202.5.\x20Clients\x20may\x20convert\x20values\n\x20into\x20language-na\ - tive\x20decimal\x20formats,\x20such\x20as\x20Java's\x20[BigDecimal][]\ - \x20or\n\x20Python's\x20[decimal.Decimal][].\n\n\x20[BigDecimal]:\n\x20h\ - ttps://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/Bi\ - gDecimal.html\n\x20[decimal.Decimal]:\x20https://docs.python.org/3/libra\ - ry/decimal.html\n\n\n\n\x03\x04\0\x01\x12\x03\x20\x08\x0f\n\xf8\x14\n\ - \x04\x04\0\x02\0\x12\x03]\x02\x13\x1a\xea\x14\x20The\x20decimal\x20value\ - ,\x20as\x20a\x20string.\n\n\x20The\x20string\x20representation\x20consis\ - ts\x20of\x20an\x20optional\x20sign,\x20`+`\x20(`U+002B`)\n\x20or\x20`-`\ - \x20(`U+002D`),\x20followed\x20by\x20a\x20sequence\x20of\x20zero\x20or\ - \x20more\x20decimal\x20digits\n\x20(\"the\x20integer\"),\x20optionally\ - \x20followed\x20by\x20a\x20fraction,\x20optionally\x20followed\n\x20by\ - \x20an\x20exponent.\n\n\x20The\x20fraction\x20consists\x20of\x20a\x20dec\ - imal\x20point\x20followed\x20by\x20zero\x20or\x20more\x20decimal\n\x20di\ - gits.\x20The\x20string\x20must\x20contain\x20at\x20least\x20one\x20digit\ - \x20in\x20either\x20the\x20integer\n\x20or\x20the\x20fraction.\x20The\ - \x20number\x20formed\x20by\x20the\x20sign,\x20the\x20integer\x20and\x20t\ - he\n\x20fraction\x20is\x20referred\x20to\x20as\x20the\x20significand.\n\ - \n\x20The\x20exponent\x20consists\x20of\x20the\x20character\x20`e`\x20(`\ - U+0065`)\x20or\x20`E`\x20(`U+0045`)\n\x20followed\x20by\x20one\x20or\x20\ - more\x20decimal\x20digits.\n\n\x20Services\x20**should**\x20normalize\ - \x20decimal\x20values\x20before\x20storing\x20them\x20by:\n\n\x20\x20\ - \x20-\x20Removing\x20an\x20explicitly-provided\x20`+`\x20sign\x20(`+2.5`\ - \x20->\x20`2.5`).\n\x20\x20\x20-\x20Replacing\x20a\x20zero-length\x20int\ - eger\x20value\x20with\x20`0`\x20(`.5`\x20->\x20`0.5`).\n\x20\x20\x20-\ - \x20Coercing\x20the\x20exponent\x20character\x20to\x20lower-case\x20(`2.\ - 5E8`\x20->\x20`2.5e8`).\n\x20\x20\x20-\x20Removing\x20an\x20explicitly-p\ - rovided\x20zero\x20exponent\x20(`2.5e0`\x20->\x20`2.5`).\n\n\x20Services\ - \x20**may**\x20perform\x20additional\x20normalization\x20based\x20on\x20\ - its\x20own\x20needs\n\x20and\x20the\x20internal\x20decimal\x20implementa\ - tion\x20selected,\x20such\x20as\x20shifting\x20the\n\x20decimal\x20point\ - \x20and\x20exponent\x20value\x20together\x20(example:\x20`2.5e-1`\x20<->\ - \x20`0.25`).\n\x20Additionally,\x20services\x20**may**\x20preserve\x20tr\ - ailing\x20zeroes\x20in\x20the\x20fraction\n\x20to\x20indicate\x20increas\ - ed\x20precision,\x20but\x20are\x20not\x20required\x20to\x20do\x20so.\n\n\ - \x20Note\x20that\x20only\x20the\x20`.`\x20character\x20is\x20supported\ - \x20to\x20divide\x20the\x20integer\n\x20and\x20the\x20fraction;\x20`,`\ - \x20**should\x20not**\x20be\x20supported\x20regardless\x20of\x20locale.\ - \n\x20Additionally,\x20thousand\x20separators\x20**should\x20not**\x20be\ - \x20supported.\x20If\x20a\n\x20service\x20does\x20support\x20them,\x20va\ - lues\x20**must**\x20be\x20normalized.\n\n\x20The\x20ENBF\x20grammar\x20i\ - s:\n\n\x20\x20\x20\x20\x20DecimalString\x20=\n\x20\x20\x20\x20\x20\x20\ - \x20[Sign]\x20Significand\x20[Exponent];\n\n\x20\x20\x20\x20\x20Sign\x20\ - =\x20'+'\x20|\x20'-';\n\n\x20\x20\x20\x20\x20Significand\x20=\n\x20\x20\ - \x20\x20\x20\x20\x20Digits\x20['.']\x20[Digits]\x20|\x20[Digits]\x20'.'\ - \x20Digits;\n\n\x20\x20\x20\x20\x20Exponent\x20=\x20('e'\x20|\x20'E')\ - \x20[Sign]\x20Digits;\n\n\x20\x20\x20\x20\x20Digits\x20=\x20{\x20'0'\x20\ - |\x20'1'\x20|\x20'2'\x20|\x20'3'\x20|\x20'4'\x20|\x20'5'\x20|\x20'6'\x20\ - |\x20'7'\x20|\x20'8'\x20|\x20'9'\x20};\n\n\x20Services\x20**should**\x20\ - clearly\x20document\x20the\x20range\x20of\x20supported\x20values,\x20the\ - \n\x20maximum\x20supported\x20precision\x20(total\x20number\x20of\x20dig\ - its),\x20and,\x20if\x20applicable,\n\x20the\x20scale\x20(number\x20of\ - \x20digits\x20after\x20the\x20decimal\x20point),\x20as\x20well\x20as\x20\ - how\x20it\n\x20behaves\x20when\x20receiving\x20out-of-bounds\x20values.\ - \n\n\x20Services\x20**may**\x20choose\x20to\x20accept\x20values\x20passe\ - d\x20as\x20input\x20even\x20when\x20the\n\x20value\x20has\x20a\x20higher\ - \x20precision\x20or\x20scale\x20than\x20the\x20service\x20supports,\x20a\ - nd\n\x20**should**\x20round\x20the\x20value\x20to\x20fit\x20the\x20suppo\ - rted\x20scale.\x20Alternatively,\x20the\n\x20service\x20**may**\x20error\ - \x20with\x20`400\x20Bad\x20Request`\x20(`INVALID_ARGUMENT`\x20in\x20gRPC\ - )\n\x20if\x20precision\x20would\x20be\x20lost.\n\n\x20Services\x20**shou\ - ld**\x20error\x20with\x20`400\x20Bad\x20Request`\x20(`INVALID_ARGUMENT`\ - \x20in\n\x20gRPC)\x20if\x20the\x20service\x20receives\x20a\x20value\x20o\ - utside\x20of\x20the\x20supported\x20range.\n\n\x0c\n\x05\x04\0\x02\0\x05\ - \x12\x03]\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03]\t\x0e\n\x0c\n\x05\ - \x04\0\x02\0\x03\x12\x03]\x11\x12b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/expr.rs b/googleapis-raw/src/type/expr.rs index ee3de99..03dd641 100644 --- a/googleapis-raw/src/type/expr.rs +++ b/googleapis-raw/src/type/expr.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,42 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/expr.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.type.Expr) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Expr { // message fields + /// Textual representation of an expression in + /// Common Expression Language syntax. + /// + /// The application context of the containing message determines which + /// well-known feature set of CEL is supported. + // @@protoc_insertion_point(field:google.type.Expr.expression) pub expression: ::std::string::String, + /// An optional title for the expression, i.e. a short string describing + /// its purpose. This can be used e.g. in UIs which allow to enter the + /// expression. + // @@protoc_insertion_point(field:google.type.Expr.title) pub title: ::std::string::String, + /// An optional description of the expression. This is a longer text which + /// describes the expression, e.g. when hovered over it in a UI. + // @@protoc_insertion_point(field:google.type.Expr.description) pub description: ::std::string::String, + /// An optional string indicating the location of the expression for error + /// reporting, e.g. a file name and a position in the file. + // @@protoc_insertion_point(field:google.type.Expr.location) pub location: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Expr.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Expr { @@ -46,134 +65,61 @@ impl Expr { ::std::default::Default::default() } - // string expression = 1; - - - pub fn get_expression(&self) -> &str { - &self.expression - } - pub fn clear_expression(&mut self) { - self.expression.clear(); - } - - // Param is passed by value, moved - pub fn set_expression(&mut self, v: ::std::string::String) { - self.expression = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_expression(&mut self) -> &mut ::std::string::String { - &mut self.expression - } - - // Take field - pub fn take_expression(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.expression, ::std::string::String::new()) - } - - // string title = 2; - - - pub fn get_title(&self) -> &str { - &self.title - } - pub fn clear_title(&mut self) { - self.title.clear(); - } - - // Param is passed by value, moved - pub fn set_title(&mut self, v: ::std::string::String) { - self.title = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_title(&mut self) -> &mut ::std::string::String { - &mut self.title - } - - // Take field - pub fn take_title(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.title, ::std::string::String::new()) - } - - // string description = 3; - - - pub fn get_description(&self) -> &str { - &self.description - } - pub fn clear_description(&mut self) { - self.description.clear(); - } - - // Param is passed by value, moved - pub fn set_description(&mut self, v: ::std::string::String) { - self.description = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_description(&mut self) -> &mut ::std::string::String { - &mut self.description - } - - // Take field - pub fn take_description(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.description, ::std::string::String::new()) - } - - // string location = 4; - - - pub fn get_location(&self) -> &str { - &self.location - } - pub fn clear_location(&mut self) { - self.location.clear(); - } - - // Param is passed by value, moved - pub fn set_location(&mut self, v: ::std::string::String) { - self.location = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_location(&mut self) -> &mut ::std::string::String { - &mut self.location - } - - // Take field - pub fn take_location(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.location, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "expression", + |m: &Expr| { &m.expression }, + |m: &mut Expr| { &mut m.expression }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "title", + |m: &Expr| { &m.title }, + |m: &mut Expr| { &mut m.title }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "description", + |m: &Expr| { &m.description }, + |m: &mut Expr| { &mut m.description }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "location", + |m: &Expr| { &m.location }, + |m: &mut Expr| { &mut m.location }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Expr", + fields, + oneofs, + ) } } impl ::protobuf::Message for Expr { + const NAME: &'static str = "Expr"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.expression)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.expression = is.read_string()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.title)?; + 18 => { + self.title = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.description)?; + 26 => { + self.description = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.location)?; + 34 => { + self.location = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -182,7 +128,7 @@ impl ::protobuf::Message for Expr { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.expression.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.expression); @@ -196,12 +142,12 @@ impl ::protobuf::Message for Expr { if !self.location.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.location); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.expression.is_empty() { os.write_string(1, &self.expression)?; } @@ -214,98 +160,57 @@ impl ::protobuf::Message for Expr { if !self.location.is_empty() { os.write_string(4, &self.location)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Expr { Expr::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "expression", - |m: &Expr| { &m.expression }, - |m: &mut Expr| { &mut m.expression }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "title", - |m: &Expr| { &m.title }, - |m: &mut Expr| { &mut m.title }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "description", - |m: &Expr| { &m.description }, - |m: &mut Expr| { &mut m.description }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "location", - |m: &Expr| { &m.location }, - |m: &mut Expr| { &mut m.location }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Expr", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.expression.clear(); + self.title.clear(); + self.description.clear(); + self.location.clear(); + self.special_fields.clear(); } fn default_instance() -> &'static Expr { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Expr::new) + static instance: Expr = Expr { + expression: ::std::string::String::new(), + title: ::std::string::String::new(), + description: ::std::string::String::new(), + location: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Expr { - fn clear(&mut self) { - self.expression.clear(); - self.title.clear(); - self.description.clear(); - self.location.clear(); - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Expr { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Expr").unwrap()).clone() } } -impl ::std::fmt::Debug for Expr { +impl ::std::fmt::Display for Expr { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Expr { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -314,12 +219,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\x01(\tR\x05title\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bde\ scription\x12\x1a\n\x08location\x18\x04\x20\x01(\tR\x08locationBZ\n\x0fc\ om.google.typeB\tExprProtoP\x01Z4google.golang.org/genproto/googleapis/t\ - ype/expr;expr\xa2\x02\x03GTPJ\xb9\x14\n\x06\x12\x04\x0e\0H\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20\ - LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x20\ - 2.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fi\ - le\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20\ - may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + ype/expr;expr\xa2\x02\x03GTPJ\xe2\r\n\x06\x12\x04\x0f\02\x01\n\xbe\x04\n\ + \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ + C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ + .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ + e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ + ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ @@ -327,69 +232,68 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\ - \x03\x12\0K\n\t\n\x02\x08\x0b\x12\x03\x12\0K\n\x08\n\x01\x08\x12\x03\x13\ - \0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0*\n\t\ - \n\x02\x08\x08\x12\x03\x14\0*\n\x08\n\x01\x08\x12\x03\x15\0(\n\t\n\x02\ - \x08\x01\x12\x03\x15\0(\n\x08\n\x01\x08\x12\x03\x16\0!\n\t\n\x02\x08$\ - \x12\x03\x16\0!\n\x9f\t\n\x02\x04\0\x12\x047\0H\x01\x1a\x92\t\x20Represe\ - nts\x20a\x20textual\x20expression\x20in\x20the\x20Common\x20Expression\ - \x20Language\x20(CEL)\n\x20syntax.\x20CEL\x20is\x20a\x20C-like\x20expres\ - sion\x20language.\x20The\x20syntax\x20and\x20semantics\x20of\x20CEL\n\ - \x20are\x20documented\x20at\x20https://github.com/google/cel-spec.\n\n\ - \x20Example\x20(Comparison):\n\n\x20\x20\x20\x20\x20title:\x20\"Summary\ - \x20size\x20limit\"\n\x20\x20\x20\x20\x20description:\x20\"Determines\ - \x20if\x20a\x20summary\x20is\x20less\x20than\x20100\x20chars\"\n\x20\x20\ - \x20\x20\x20expression:\x20\"document.summary.size()\x20<\x20100\"\n\n\ - \x20Example\x20(Equality):\n\n\x20\x20\x20\x20\x20title:\x20\"Requestor\ - \x20is\x20owner\"\n\x20\x20\x20\x20\x20description:\x20\"Determines\x20i\ - f\x20requestor\x20is\x20the\x20document\x20owner\"\n\x20\x20\x20\x20\x20\ - expression:\x20\"document.owner\x20==\x20request.auth.claims.email\"\n\n\ - \x20Example\x20(Logic):\n\n\x20\x20\x20\x20\x20title:\x20\"Public\x20doc\ - uments\"\n\x20\x20\x20\x20\x20description:\x20\"Determine\x20whether\x20\ - the\x20document\x20should\x20be\x20publicly\x20visible\"\n\x20\x20\x20\ - \x20\x20expression:\x20\"document.type\x20!=\x20'private'\x20&&\x20docum\ - ent.type\x20!=\x20'internal'\"\n\n\x20Example\x20(Data\x20Manipulation):\ - \n\n\x20\x20\x20\x20\x20title:\x20\"Notification\x20string\"\n\x20\x20\ - \x20\x20\x20description:\x20\"Create\x20a\x20notification\x20string\x20w\ - ith\x20a\x20timestamp.\"\n\x20\x20\x20\x20\x20expression:\x20\"'New\x20m\ - essage\x20received\x20at\x20'\x20+\x20string(document.create_time)\"\n\n\ - \x20The\x20exact\x20variables\x20and\x20functions\x20that\x20may\x20be\ - \x20referenced\x20within\x20an\x20expression\n\x20are\x20determined\x20b\ - y\x20the\x20service\x20that\x20evaluates\x20it.\x20See\x20the\x20service\ - \n\x20documentation\x20for\x20additional\x20information.\n\n\n\n\x03\x04\ - \0\x01\x12\x037\x08\x0c\n]\n\x04\x04\0\x02\0\x12\x03:\x02\x18\x1aP\x20Te\ - xtual\x20representation\x20of\x20an\x20expression\x20in\x20Common\x20Exp\ - ression\x20Language\n\x20syntax.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03:\ - \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03:\t\x13\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03:\x16\x17\n\xa3\x01\n\x04\x04\0\x02\x01\x12\x03?\x02\ - \x13\x1a\x95\x01\x20Optional.\x20Title\x20for\x20the\x20expression,\x20i\ - .e.\x20a\x20short\x20string\x20describing\n\x20its\x20purpose.\x20This\ - \x20can\x20be\x20used\x20e.g.\x20in\x20UIs\x20which\x20allow\x20to\x20en\ - ter\x20the\n\x20expression.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03?\x02\ - \x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03?\t\x0e\n\x0c\n\x05\x04\0\x02\ - \x01\x03\x12\x03?\x11\x12\n\x92\x01\n\x04\x04\0\x02\x02\x12\x03C\x02\x19\ - \x1a\x84\x01\x20Optional.\x20Description\x20of\x20the\x20expression.\x20\ - This\x20is\x20a\x20longer\x20text\x20which\n\x20describes\x20the\x20expr\ - ession,\x20e.g.\x20when\x20hovered\x20over\x20it\x20in\x20a\x20UI.\n\n\ - \x0c\n\x05\x04\0\x02\x02\x05\x12\x03C\x02\x08\n\x0c\n\x05\x04\0\x02\x02\ - \x01\x12\x03C\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03C\x17\x18\n\x8c\ - \x01\n\x04\x04\0\x02\x03\x12\x03G\x02\x16\x1a\x7f\x20Optional.\x20String\ - \x20indicating\x20the\x20location\x20of\x20the\x20expression\x20for\x20e\ - rror\n\x20reporting,\x20e.g.\x20a\x20file\x20name\x20and\x20a\x20positio\ - n\x20in\x20the\x20file.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03G\x02\x08\ - \n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03G\t\x11\n\x0c\n\x05\x04\0\x02\x03\ - \x03\x12\x03G\x14\x15b\x06proto3\ + e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\ + \x03\x13\0K\n\t\n\x02\x08\x0b\x12\x03\x13\0K\n\x08\n\x01\x08\x12\x03\x14\ + \0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0*\n\t\ + \n\x02\x08\x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\ + \x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\ + \x12\x03\x17\0!\n\xcb\x01\n\x02\x04\0\x12\x04\x1e\02\x01\x1a\xbe\x01\x20\ + Represents\x20an\x20expression\x20text.\x20Example:\n\n\x20\x20\x20\x20\ + \x20title:\x20\"User\x20account\x20presence\"\n\x20\x20\x20\x20\x20descr\ + iption:\x20\"Determines\x20whether\x20the\x20request\x20has\x20a\x20user\ + \x20account\"\n\x20\x20\x20\x20\x20expression:\x20\"size(request.user)\ + \x20>\x200\"\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x0c\n\xd0\x01\n\x04\ + \x04\0\x02\0\x12\x03$\x02\x18\x1a\xc2\x01\x20Textual\x20representation\ + \x20of\x20an\x20expression\x20in\n\x20Common\x20Expression\x20Language\ + \x20syntax.\n\n\x20The\x20application\x20context\x20of\x20the\x20contain\ + ing\x20message\x20determines\x20which\n\x20well-known\x20feature\x20set\ + \x20of\x20CEL\x20is\x20supported.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03$\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03$\t\x13\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03$\x16\x17\n\xa5\x01\n\x04\x04\0\x02\x01\x12\x03)\x02\ + \x13\x1a\x97\x01\x20An\x20optional\x20title\x20for\x20the\x20expression,\ + \x20i.e.\x20a\x20short\x20string\x20describing\n\x20its\x20purpose.\x20T\ + his\x20can\x20be\x20used\x20e.g.\x20in\x20UIs\x20which\x20allow\x20to\ + \x20enter\x20the\n\x20expression.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\ + \x03)\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03)\t\x0e\n\x0c\n\x05\ + \x04\0\x02\x01\x03\x12\x03)\x11\x12\n\x94\x01\n\x04\x04\0\x02\x02\x12\ + \x03-\x02\x19\x1a\x86\x01\x20An\x20optional\x20description\x20of\x20the\ + \x20expression.\x20This\x20is\x20a\x20longer\x20text\x20which\n\x20descr\ + ibes\x20the\x20expression,\x20e.g.\x20when\x20hovered\x20over\x20it\x20i\ + n\x20a\x20UI.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03-\x02\x08\n\x0c\n\ + \x05\x04\0\x02\x02\x01\x12\x03-\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ + \x03-\x17\x18\n\x8f\x01\n\x04\x04\0\x02\x03\x12\x031\x02\x16\x1a\x81\x01\ + \x20An\x20optional\x20string\x20indicating\x20the\x20location\x20of\x20t\ + he\x20expression\x20for\x20error\n\x20reporting,\x20e.g.\x20a\x20file\ + \x20name\x20and\x20a\x20position\x20in\x20the\x20file.\n\n\x0c\n\x05\x04\ + \0\x02\x03\x05\x12\x031\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x031\t\ + \x11\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x031\x14\x15b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Expr::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/fraction.rs b/googleapis-raw/src/type/fraction.rs index bbeefcc..5cf72d9 100644 --- a/googleapis-raw/src/type/fraction.rs +++ b/googleapis-raw/src/type/fraction.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,30 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/fraction.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Represents a fraction in terms of a numerator divided by a denominator. +// @@protoc_insertion_point(message:google.type.Fraction) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Fraction { // message fields + /// The portion of the denominator in the faction, e.g. 2 in 2/3. + // @@protoc_insertion_point(field:google.type.Fraction.numerator) pub numerator: i64, + /// The value by which the numerator is divided, e.g. 3 in 2/3. Must be + /// positive. + // @@protoc_insertion_point(field:google.type.Fraction.denominator) pub denominator: i64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Fraction.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Fraction { @@ -44,62 +53,45 @@ impl Fraction { ::std::default::Default::default() } - // int64 numerator = 1; - - - pub fn get_numerator(&self) -> i64 { - self.numerator - } - pub fn clear_numerator(&mut self) { - self.numerator = 0; - } - - // Param is passed by value, moved - pub fn set_numerator(&mut self, v: i64) { - self.numerator = v; - } - - // int64 denominator = 2; - - - pub fn get_denominator(&self) -> i64 { - self.denominator - } - pub fn clear_denominator(&mut self) { - self.denominator = 0; - } - - // Param is passed by value, moved - pub fn set_denominator(&mut self, v: i64) { - self.denominator = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "numerator", + |m: &Fraction| { &m.numerator }, + |m: &mut Fraction| { &mut m.numerator }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "denominator", + |m: &Fraction| { &m.denominator }, + |m: &mut Fraction| { &mut m.denominator }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Fraction", + fields, + oneofs, + ) } } impl ::protobuf::Message for Fraction { + const NAME: &'static str = "Fraction"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.numerator = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.numerator = is.read_int64()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.denominator = tmp; + 16 => { + self.denominator = is.read_int64()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -108,106 +100,73 @@ impl ::protobuf::Message for Fraction { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.numerator != 0 { - my_size += ::protobuf::rt::value_size(1, self.numerator, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(1, self.numerator); } if self.denominator != 0 { - my_size += ::protobuf::rt::value_size(2, self.denominator, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(2, self.denominator); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.numerator != 0 { os.write_int64(1, self.numerator)?; } if self.denominator != 0 { os.write_int64(2, self.denominator)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Fraction { Fraction::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "numerator", - |m: &Fraction| { &m.numerator }, - |m: &mut Fraction| { &mut m.numerator }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "denominator", - |m: &Fraction| { &m.denominator }, - |m: &mut Fraction| { &mut m.denominator }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Fraction", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.numerator = 0; + self.denominator = 0; + self.special_fields.clear(); } fn default_instance() -> &'static Fraction { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Fraction::new) + static instance: Fraction = Fraction { + numerator: 0, + denominator: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Fraction { - fn clear(&mut self) { - self.numerator = 0; - self.denominator = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Fraction { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Fraction").unwrap()).clone() } } -impl ::std::fmt::Debug for Fraction { +impl ::std::fmt::Display for Fraction { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Fraction { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -215,46 +174,63 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x1c\n\tnumerator\x18\x01\x20\x01(\x03R\tnumerator\x12\x20\n\x0bdenomina\ tor\x18\x02\x20\x01(\x03R\x0bdenominatorBf\n\x0fcom.google.typeB\rFracti\ onProtoP\x01Z = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Fraction::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/interval.rs b/googleapis-raw/src/type/interval.rs deleted file mode 100644 index c077733..0000000 --- a/googleapis-raw/src/type/interval.rs +++ /dev/null @@ -1,314 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/type/interval.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Interval { - // message fields - pub start_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - pub end_time: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Interval { - fn default() -> &'a Interval { - ::default_instance() - } -} - -impl Interval { - pub fn new() -> Interval { - ::std::default::Default::default() - } - - // .google.protobuf.Timestamp start_time = 1; - - - pub fn get_start_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.start_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_start_time(&mut self) { - self.start_time.clear(); - } - - pub fn has_start_time(&self) -> bool { - self.start_time.is_some() - } - - // Param is passed by value, moved - pub fn set_start_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.start_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_start_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.start_time.is_none() { - self.start_time.set_default(); - } - self.start_time.as_mut().unwrap() - } - - // Take field - pub fn take_start_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.start_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // .google.protobuf.Timestamp end_time = 2; - - - pub fn get_end_time(&self) -> &::protobuf::well_known_types::Timestamp { - self.end_time.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance()) - } - pub fn clear_end_time(&mut self) { - self.end_time.clear(); - } - - pub fn has_end_time(&self) -> bool { - self.end_time.is_some() - } - - // Param is passed by value, moved - pub fn set_end_time(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.end_time = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_end_time(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.end_time.is_none() { - self.end_time.set_default(); - } - self.end_time.as_mut().unwrap() - } - - // Take field - pub fn take_end_time(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.end_time.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } -} - -impl ::protobuf::Message for Interval { - fn is_initialized(&self) -> bool { - for v in &self.start_time { - if !v.is_initialized() { - return false; - } - }; - for v in &self.end_time { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.start_time)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.end_time)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.start_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.end_time.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.start_time.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.end_time.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Interval { - Interval::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "start_time", - |m: &Interval| { &m.start_time }, - |m: &mut Interval| { &mut m.start_time }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "end_time", - |m: &Interval| { &m.end_time }, - |m: &mut Interval| { &mut m.end_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Interval", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static Interval { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Interval::new) - } -} - -impl ::protobuf::Clear for Interval { - fn clear(&mut self) { - self.start_time.clear(); - self.end_time.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Interval { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Interval { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1agoogle/type/interval.proto\x12\x0bgoogle.type\x1a\x1fgoogle/protob\ - uf/timestamp.proto\"|\n\x08Interval\x129\n\nstart_time\x18\x01\x20\x01(\ - \x0b2\x1a.google.protobuf.TimestampR\tstartTime\x125\n\x08end_time\x18\ - \x02\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07endTimeBi\n\x0fcom.\ - google.typeB\rIntervalProtoP\x01Z = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/latlng.rs b/googleapis-raw/src/type/latlng.rs index c543cdb..6a7389f 100644 --- a/googleapis-raw/src/type/latlng.rs +++ b/googleapis-raw/src/type/latlng.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,22 +16,33 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/latlng.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// An object representing a latitude/longitude pair. This is expressed as a pair +/// of doubles representing degrees latitude and degrees longitude. Unless +/// specified otherwise, this must conform to the +/// WGS84 +/// standard. Values must be within normalized ranges. +// @@protoc_insertion_point(message:google.type.LatLng) +#[derive(PartialEq,Clone,Default,Debug)] pub struct LatLng { // message fields + /// The latitude in degrees. It must be in the range [-90.0, +90.0]. + // @@protoc_insertion_point(field:google.type.LatLng.latitude) pub latitude: f64, + /// The longitude in degrees. It must be in the range [-180.0, +180.0]. + // @@protoc_insertion_point(field:google.type.LatLng.longitude) pub longitude: f64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.LatLng.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a LatLng { @@ -44,62 +56,45 @@ impl LatLng { ::std::default::Default::default() } - // double latitude = 1; - - - pub fn get_latitude(&self) -> f64 { - self.latitude - } - pub fn clear_latitude(&mut self) { - self.latitude = 0.; - } - - // Param is passed by value, moved - pub fn set_latitude(&mut self, v: f64) { - self.latitude = v; - } - - // double longitude = 2; - - - pub fn get_longitude(&self) -> f64 { - self.longitude - } - pub fn clear_longitude(&mut self) { - self.longitude = 0.; - } - - // Param is passed by value, moved - pub fn set_longitude(&mut self, v: f64) { - self.longitude = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "latitude", + |m: &LatLng| { &m.latitude }, + |m: &mut LatLng| { &mut m.latitude }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "longitude", + |m: &LatLng| { &m.longitude }, + |m: &mut LatLng| { &mut m.longitude }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "LatLng", + fields, + oneofs, + ) } } impl ::protobuf::Message for LatLng { + const NAME: &'static str = "LatLng"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.latitude = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 9 => { + self.latitude = is.read_double()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.longitude = tmp; + 17 => { + self.longitude = is.read_double()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -108,106 +103,73 @@ impl ::protobuf::Message for LatLng { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.latitude != 0. { - my_size += 9; + my_size += 1 + 8; } if self.longitude != 0. { - my_size += 9; + my_size += 1 + 8; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.latitude != 0. { os.write_double(1, self.latitude)?; } if self.longitude != 0. { os.write_double(2, self.longitude)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> LatLng { LatLng::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "latitude", - |m: &LatLng| { &m.latitude }, - |m: &mut LatLng| { &mut m.latitude }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "longitude", - |m: &LatLng| { &m.longitude }, - |m: &mut LatLng| { &mut m.longitude }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LatLng", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.latitude = 0.; + self.longitude = 0.; + self.special_fields.clear(); } fn default_instance() -> &'static LatLng { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LatLng::new) + static instance: LatLng = LatLng { + latitude: 0., + longitude: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for LatLng { - fn clear(&mut self) { - self.latitude = 0.; - self.longitude = 0.; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for LatLng { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("LatLng").unwrap()).clone() } } -impl ::std::fmt::Debug for LatLng { +impl ::std::fmt::Display for LatLng { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for LatLng { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -215,8 +177,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x08latitude\x18\x01\x20\x01(\x01R\x08latitude\x12\x1c\n\tlongitude\ \x18\x02\x20\x01(\x01R\tlongitudeBc\n\x0fcom.google.typeB\x0bLatLngProto\ P\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xf8\x01\ - \x01\xa2\x02\x03GTPJ\xad\n\n\x06\x12\x04\x0e\0$\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\ + \x01\xa2\x02\x03GTPJ\xac\n\n\x06\x12\x04\x0f\0%\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -228,39 +190,55 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0\ - \x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\x12\x03\x13\0O\ - \n\t\n\x02\x08\x0b\x12\x03\x13\0O\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0,\n\t\n\x02\x08\ - \x08\x12\x03\x15\0,\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\ - \x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\ - \n\xd6\x02\n\x02\x04\0\x12\x04\x1e\0$\x01\x1a\xc9\x02\x20An\x20object\ - \x20that\x20represents\x20a\x20latitude/longitude\x20pair.\x20This\x20is\ - \x20expressed\x20as\x20a\n\x20pair\x20of\x20doubles\x20to\x20represent\ - \x20degrees\x20latitude\x20and\x20degrees\x20longitude.\x20Unless\n\x20s\ - pecified\x20otherwise,\x20this\x20must\x20conform\x20to\x20the\n\x20WGS8\ - 4\n\x20standard.\x20Values\x20must\x20be\x20within\x20normalized\x20\ - ranges.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x0e\nO\n\x04\x04\0\x02\0\ - \x12\x03\x20\x02\x16\x1aB\x20The\x20latitude\x20in\x20degrees.\x20It\x20\ - must\x20be\x20in\x20the\x20range\x20[-90.0,\x20+90.0].\n\n\x0c\n\x05\x04\ - \0\x02\0\x05\x12\x03\x20\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x20\ - \t\x11\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x20\x14\x15\nR\n\x04\x04\0\ - \x02\x01\x12\x03#\x02\x17\x1aE\x20The\x20longitude\x20in\x20degrees.\x20\ - It\x20must\x20be\x20in\x20the\x20range\x20[-180.0,\x20+180.0].\n\n\x0c\n\ - \x05\x04\0\x02\x01\x05\x12\x03#\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x03#\t\x12\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03#\x15\x16b\x06proto\ - 3\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0\ + \x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\x01\x08\x12\x03\x14\0O\ + \n\t\n\x02\x08\x0b\x12\x03\x14\0O\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\ + \x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0,\n\t\n\x02\x08\ + \x08\x12\x03\x16\0,\n\x08\n\x01\x08\x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\ + \x03\x17\0(\n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\ + \n\xd3\x02\n\x02\x04\0\x12\x04\x1f\0%\x01\x1a\xc6\x02\x20An\x20object\ + \x20representing\x20a\x20latitude/longitude\x20pair.\x20This\x20is\x20ex\ + pressed\x20as\x20a\x20pair\n\x20of\x20doubles\x20representing\x20degrees\ + \x20latitude\x20and\x20degrees\x20longitude.\x20Unless\n\x20specified\ + \x20otherwise,\x20this\x20must\x20conform\x20to\x20the\n\x20WGS84\n\x20st\ + andard.\x20Values\x20must\x20be\x20within\x20normalized\x20ranges.\n\ + \n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x0e\nO\n\x04\x04\0\x02\0\x12\x03!\ + \x02\x16\x1aB\x20The\x20latitude\x20in\x20degrees.\x20It\x20must\x20be\ + \x20in\x20the\x20range\x20[-90.0,\x20+90.0].\n\n\x0c\n\x05\x04\0\x02\0\ + \x05\x12\x03!\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03!\t\x11\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03!\x14\x15\nR\n\x04\x04\0\x02\x01\x12\x03$\ + \x02\x17\x1aE\x20The\x20longitude\x20in\x20degrees.\x20It\x20must\x20be\ + \x20in\x20the\x20range\x20[-180.0,\x20+180.0].\n\n\x0c\n\x05\x04\0\x02\ + \x01\x05\x12\x03$\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03$\t\x12\n\ + \x0c\n\x05\x04\0\x02\x01\x03\x12\x03$\x15\x16b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(LatLng::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/localized_text.rs b/googleapis-raw/src/type/localized_text.rs deleted file mode 100644 index 9abb4b9..0000000 --- a/googleapis-raw/src/type/localized_text.rs +++ /dev/null @@ -1,276 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/type/localized_text.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct LocalizedText { - // message fields - pub text: ::std::string::String, - pub language_code: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LocalizedText { - fn default() -> &'a LocalizedText { - ::default_instance() - } -} - -impl LocalizedText { - pub fn new() -> LocalizedText { - ::std::default::Default::default() - } - - // string text = 1; - - - pub fn get_text(&self) -> &str { - &self.text - } - pub fn clear_text(&mut self) { - self.text.clear(); - } - - // Param is passed by value, moved - pub fn set_text(&mut self, v: ::std::string::String) { - self.text = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_text(&mut self) -> &mut ::std::string::String { - &mut self.text - } - - // Take field - pub fn take_text(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.text, ::std::string::String::new()) - } - - // string language_code = 2; - - - pub fn get_language_code(&self) -> &str { - &self.language_code - } - pub fn clear_language_code(&mut self) { - self.language_code.clear(); - } - - // Param is passed by value, moved - pub fn set_language_code(&mut self, v: ::std::string::String) { - self.language_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_language_code(&mut self) -> &mut ::std::string::String { - &mut self.language_code - } - - // Take field - pub fn take_language_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.language_code, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LocalizedText { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.text)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.language_code)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.text.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.text); - } - if !self.language_code.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.language_code); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.text.is_empty() { - os.write_string(1, &self.text)?; - } - if !self.language_code.is_empty() { - os.write_string(2, &self.language_code)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LocalizedText { - LocalizedText::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "text", - |m: &LocalizedText| { &m.text }, - |m: &mut LocalizedText| { &mut m.text }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "language_code", - |m: &LocalizedText| { &m.language_code }, - |m: &mut LocalizedText| { &mut m.language_code }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LocalizedText", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static LocalizedText { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(LocalizedText::new) - } -} - -impl ::protobuf::Clear for LocalizedText { - fn clear(&mut self) { - self.text.clear(); - self.language_code.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LocalizedText { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LocalizedText { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x20google/type/localized_text.proto\x12\x0bgoogle.type\"H\n\rLocalize\ - dText\x12\x12\n\x04text\x18\x01\x20\x01(\tR\x04text\x12#\n\rlanguage_cod\ - e\x18\x02\x20\x01(\tR\x0clanguageCodeBz\n\x0fcom.google.typeB\x12Localiz\ - edTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_t\ - ext;localized_text\xf8\x01\x01\xa2\x02\x03GTPJ\xfb\x08\n\x06\x12\x04\x0e\ - \0#\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202\ - 021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20Licens\ - e,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20\ - use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Lice\ - nse.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20a\ - t\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\ - \x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x13\0_\n\t\n\x02\x08\x0b\x12\x03\x13\0_\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\03\n\t\n\x02\x08\x08\x12\x03\x15\03\n\x08\n\x01\x08\x12\x03\x16\0(\ - \n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\ - \x02\x08$\x12\x03\x17\0!\nC\n\x02\x04\0\x12\x04\x1a\0#\x01\x1a7\x20Local\ - ized\x20variant\x20of\x20a\x20text\x20in\x20a\x20particular\x20language.\ - \n\n\n\n\x03\x04\0\x01\x12\x03\x1a\x08\x15\nW\n\x04\x04\0\x02\0\x12\x03\ - \x1c\x02\x12\x1aJ\x20Localized\x20string\x20in\x20the\x20language\x20cor\ - responding\x20to\x20`language_code'\x20below.\n\n\x0c\n\x05\x04\0\x02\0\ - \x05\x12\x03\x1c\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\t\r\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1c\x10\x11\n\xab\x01\n\x04\x04\0\x02\ - \x01\x12\x03\"\x02\x1b\x1a\x9d\x01\x20The\x20text's\x20BCP-47\x20languag\ - e\x20code,\x20such\x20as\x20\"en-US\"\x20or\x20\"sr-Latn\".\n\n\x20For\ - \x20more\x20information,\x20see\n\x20http://www.unicode.org/reports/tr35\ - /#Unicode_locale_identifier.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\"\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\"\t\x16\n\x0c\n\x05\x04\0\ - \x02\x01\x03\x12\x03\"\x19\x1ab\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/mod.rs b/googleapis-raw/src/type/mod.rs index 2c56a63..5966544 100644 --- a/googleapis-raw/src/type/mod.rs +++ b/googleapis-raw/src/type/mod.rs @@ -3,17 +3,12 @@ pub mod calendar_period; pub mod color; pub mod date; -pub mod datetime; pub mod dayofweek; -pub mod decimal; pub mod expr; pub mod fraction; -pub mod interval; pub mod latlng; -pub mod localized_text; pub mod money; pub mod month; -pub mod phone_number; pub mod postal_address; pub mod quaternion; pub mod timeofday; diff --git a/googleapis-raw/src/type/money.rs b/googleapis-raw/src/type/money.rs index d8bbb48..bda85a8 100644 --- a/googleapis-raw/src/type/money.rs +++ b/googleapis-raw/src/type/money.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,23 +16,38 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/money.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Represents an amount of money with its currency type. +// @@protoc_insertion_point(message:google.type.Money) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Money { // message fields + /// The 3-letter currency code defined in ISO 4217. + // @@protoc_insertion_point(field:google.type.Money.currency_code) pub currency_code: ::std::string::String, + /// The whole units of the amount. + /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + // @@protoc_insertion_point(field:google.type.Money.units) pub units: i64, + /// Number of nano (10^-9) units of the amount. + /// The value must be between -999,999,999 and +999,999,999 inclusive. + /// If `units` is positive, `nanos` must be positive or zero. + /// If `units` is zero, `nanos` can be positive, zero, or negative. + /// If `units` is negative, `nanos` must be negative or zero. + /// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + // @@protoc_insertion_point(field:google.type.Money.nanos) pub nanos: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Money.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Money { @@ -45,91 +61,53 @@ impl Money { ::std::default::Default::default() } - // string currency_code = 1; - - - pub fn get_currency_code(&self) -> &str { - &self.currency_code - } - pub fn clear_currency_code(&mut self) { - self.currency_code.clear(); - } - - // Param is passed by value, moved - pub fn set_currency_code(&mut self, v: ::std::string::String) { - self.currency_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_currency_code(&mut self) -> &mut ::std::string::String { - &mut self.currency_code - } - - // Take field - pub fn take_currency_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.currency_code, ::std::string::String::new()) - } - - // int64 units = 2; - - - pub fn get_units(&self) -> i64 { - self.units - } - pub fn clear_units(&mut self) { - self.units = 0; - } - - // Param is passed by value, moved - pub fn set_units(&mut self, v: i64) { - self.units = v; - } - - // int32 nanos = 3; - - - pub fn get_nanos(&self) -> i32 { - self.nanos - } - pub fn clear_nanos(&mut self) { - self.nanos = 0; - } - - // Param is passed by value, moved - pub fn set_nanos(&mut self, v: i32) { - self.nanos = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "currency_code", + |m: &Money| { &m.currency_code }, + |m: &mut Money| { &mut m.currency_code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "units", + |m: &Money| { &m.units }, + |m: &mut Money| { &mut m.units }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "nanos", + |m: &Money| { &m.nanos }, + |m: &mut Money| { &mut m.nanos }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Money", + fields, + oneofs, + ) } } impl ::protobuf::Message for Money { + const NAME: &'static str = "Money"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.currency_code)?; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.currency_code = is.read_string()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.units = tmp; + 16 => { + self.units = is.read_int64()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.nanos = tmp; + 24 => { + self.nanos = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -138,23 +116,23 @@ impl ::protobuf::Message for Money { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if !self.currency_code.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.currency_code); } if self.units != 0 { - my_size += ::protobuf::rt::value_size(2, self.units, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int64_size(2, self.units); } if self.nanos != 0 { - my_size += ::protobuf::rt::value_size(3, self.nanos, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.nanos); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if !self.currency_code.is_empty() { os.write_string(1, &self.currency_code)?; } @@ -164,92 +142,55 @@ impl ::protobuf::Message for Money { if self.nanos != 0 { os.write_int32(3, self.nanos)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Money { Money::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "currency_code", - |m: &Money| { &m.currency_code }, - |m: &mut Money| { &mut m.currency_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "units", - |m: &Money| { &m.units }, - |m: &mut Money| { &mut m.units }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "nanos", - |m: &Money| { &m.nanos }, - |m: &mut Money| { &mut m.nanos }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Money", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.currency_code.clear(); + self.units = 0; + self.nanos = 0; + self.special_fields.clear(); } fn default_instance() -> &'static Money { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Money::new) + static instance: Money = Money { + currency_code: ::std::string::String::new(), + units: 0, + nanos: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Money { - fn clear(&mut self) { - self.currency_code.clear(); - self.units = 0; - self.nanos = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Money { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Money").unwrap()).clone() } } -impl ::std::fmt::Debug for Money { +impl ::std::fmt::Display for Money { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Money { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -257,11 +198,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ urrency_code\x18\x01\x20\x01(\tR\x0ccurrencyCode\x12\x14\n\x05units\x18\ \x02\x20\x01(\x03R\x05units\x12\x14\n\x05nanos\x18\x03\x20\x01(\x05R\x05\ nanosB`\n\x0fcom.google.typeB\nMoneyProtoP\x01Z6google.golang.org/genpro\ - to/googleapis/type/money;money\xf8\x01\x01\xa2\x02\x03GTPJ\xde\x0b\n\x06\ - \x12\x04\x0e\0)\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + to/googleapis/type/money;money\xf8\x01\x01\xa2\x02\x03GTPJ\xdc\x0b\n\x06\ + \x12\x04\x0f\0*\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Co\ + pyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apa\ + che\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20m\ + ay\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ @@ -270,45 +211,62 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ - \x12\0\x1f\n\x08\n\x01\x08\x12\x03\x13\0M\n\t\n\x02\x08\x0b\x12\x03\x13\ - \0M\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\ - \x08\n\x01\x08\x12\x03\x15\0+\n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\ - \x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\ - \x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\nC\n\x02\x04\0\x12\x04\x1a\ - \0)\x01\x1a7\x20Represents\x20an\x20amount\x20of\x20money\x20with\x20its\ - \x20currency\x20type.\n\n\n\n\x03\x04\0\x01\x12\x03\x1a\x08\r\nB\n\x04\ - \x04\0\x02\0\x12\x03\x1c\x02\x1b\x1a5\x20The\x20three-letter\x20currency\ - \x20code\x20defined\x20in\x20ISO\x204217.\n\n\x0c\n\x05\x04\0\x02\0\x05\ - \x12\x03\x1c\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\t\x16\n\x0c\ - \n\x05\x04\0\x02\0\x03\x12\x03\x1c\x19\x1a\nv\n\x04\x04\0\x02\x01\x12\ - \x03\x20\x02\x12\x1ai\x20The\x20whole\x20units\x20of\x20the\x20amount.\n\ - \x20For\x20example\x20if\x20`currencyCode`\x20is\x20`\"USD\"`,\x20then\ - \x201\x20unit\x20is\x20one\x20US\x20dollar.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x05\x12\x03\x20\x02\x07\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x20\x08\r\ - \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x20\x10\x11\n\x81\x03\n\x04\x04\0\ - \x02\x02\x12\x03(\x02\x12\x1a\xf3\x02\x20Number\x20of\x20nano\x20(10^-9)\ - \x20units\x20of\x20the\x20amount.\n\x20The\x20value\x20must\x20be\x20bet\ - ween\x20-999,999,999\x20and\x20+999,999,999\x20inclusive.\n\x20If\x20`un\ - its`\x20is\x20positive,\x20`nanos`\x20must\x20be\x20positive\x20or\x20ze\ - ro.\n\x20If\x20`units`\x20is\x20zero,\x20`nanos`\x20can\x20be\x20positiv\ - e,\x20zero,\x20or\x20negative.\n\x20If\x20`units`\x20is\x20negative,\x20\ - `nanos`\x20must\x20be\x20negative\x20or\x20zero.\n\x20For\x20example\x20\ - $-1.75\x20is\x20represented\x20as\x20`units`=-1\x20and\x20`nanos`=-750,0\ - 00,000.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03(\x02\x07\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03(\x08\r\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03(\x10\ - \x11b\x06proto3\ + \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ + \x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ + \x13\0\x1f\n\x08\n\x01\x08\x12\x03\x14\0M\n\t\n\x02\x08\x0b\x12\x03\x14\ + \0M\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\ + \x08\n\x01\x08\x12\x03\x16\0+\n\t\n\x02\x08\x08\x12\x03\x16\0+\n\x08\n\ + \x01\x08\x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\x03\x17\0(\n\x08\n\x01\x08\ + \x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\nC\n\x02\x04\0\x12\x04\x1b\ + \0*\x01\x1a7\x20Represents\x20an\x20amount\x20of\x20money\x20with\x20its\ + \x20currency\x20type.\n\n\n\n\x03\x04\0\x01\x12\x03\x1b\x08\r\n>\n\x04\ + \x04\0\x02\0\x12\x03\x1d\x02\x1b\x1a1\x20The\x203-letter\x20currency\x20\ + code\x20defined\x20in\x20ISO\x204217.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ + \x03\x1d\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\t\x16\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03\x1d\x19\x1a\nv\n\x04\x04\0\x02\x01\x12\x03!\ + \x02\x12\x1ai\x20The\x20whole\x20units\x20of\x20the\x20amount.\n\x20For\ + \x20example\x20if\x20`currencyCode`\x20is\x20`\"USD\"`,\x20then\x201\x20\ + unit\x20is\x20one\x20US\x20dollar.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\ + \x03!\x02\x07\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03!\x08\r\n\x0c\n\x05\ + \x04\0\x02\x01\x03\x12\x03!\x10\x11\n\x81\x03\n\x04\x04\0\x02\x02\x12\ + \x03)\x02\x12\x1a\xf3\x02\x20Number\x20of\x20nano\x20(10^-9)\x20units\ + \x20of\x20the\x20amount.\n\x20The\x20value\x20must\x20be\x20between\x20-\ + 999,999,999\x20and\x20+999,999,999\x20inclusive.\n\x20If\x20`units`\x20i\ + s\x20positive,\x20`nanos`\x20must\x20be\x20positive\x20or\x20zero.\n\x20\ + If\x20`units`\x20is\x20zero,\x20`nanos`\x20can\x20be\x20positive,\x20zer\ + o,\x20or\x20negative.\n\x20If\x20`units`\x20is\x20negative,\x20`nanos`\ + \x20must\x20be\x20negative\x20or\x20zero.\n\x20For\x20example\x20$-1.75\ + \x20is\x20represented\x20as\x20`units`=-1\x20and\x20`nanos`=-750,000,000\ + .\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03)\x02\x07\n\x0c\n\x05\x04\0\x02\ + \x02\x01\x12\x03)\x08\r\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03)\x10\x11b\ + \x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Money::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/month.rs b/googleapis-raw/src/type/month.rs index ea7dba9..defe4d0 100644 --- a/googleapis-raw/src/type/month.rs +++ b/googleapis-raw/src/type/month.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,32 +16,50 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/month.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(Clone,PartialEq,Eq,Debug,Hash)] +/// Represents a month in the Gregorian calendar. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.type.Month) pub enum Month { + // @@protoc_insertion_point(enum_value:google.type.Month.MONTH_UNSPECIFIED) MONTH_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.type.Month.JANUARY) JANUARY = 1, + // @@protoc_insertion_point(enum_value:google.type.Month.FEBRUARY) FEBRUARY = 2, + // @@protoc_insertion_point(enum_value:google.type.Month.MARCH) MARCH = 3, + // @@protoc_insertion_point(enum_value:google.type.Month.APRIL) APRIL = 4, + // @@protoc_insertion_point(enum_value:google.type.Month.MAY) MAY = 5, + // @@protoc_insertion_point(enum_value:google.type.Month.JUNE) JUNE = 6, + // @@protoc_insertion_point(enum_value:google.type.Month.JULY) JULY = 7, + // @@protoc_insertion_point(enum_value:google.type.Month.AUGUST) AUGUST = 8, + // @@protoc_insertion_point(enum_value:google.type.Month.SEPTEMBER) SEPTEMBER = 9, + // @@protoc_insertion_point(enum_value:google.type.Month.OCTOBER) OCTOBER = 10, + // @@protoc_insertion_point(enum_value:google.type.Month.NOVEMBER) NOVEMBER = 11, + // @@protoc_insertion_point(enum_value:google.type.Month.DECEMBER) DECEMBER = 12, } -impl ::protobuf::ProtobufEnum for Month { +impl ::protobuf::Enum for Month { + const NAME: &'static str = "Month"; + fn value(&self) -> i32 { *self as i32 } @@ -64,34 +83,52 @@ impl ::protobuf::ProtobufEnum for Month { } } - fn values() -> &'static [Self] { - static values: &'static [Month] = &[ - Month::MONTH_UNSPECIFIED, - Month::JANUARY, - Month::FEBRUARY, - Month::MARCH, - Month::APRIL, - Month::MAY, - Month::JUNE, - Month::JULY, - Month::AUGUST, - Month::SEPTEMBER, - Month::OCTOBER, - Month::NOVEMBER, - Month::DECEMBER, - ]; - values + fn from_str(str: &str) -> ::std::option::Option { + match str { + "MONTH_UNSPECIFIED" => ::std::option::Option::Some(Month::MONTH_UNSPECIFIED), + "JANUARY" => ::std::option::Option::Some(Month::JANUARY), + "FEBRUARY" => ::std::option::Option::Some(Month::FEBRUARY), + "MARCH" => ::std::option::Option::Some(Month::MARCH), + "APRIL" => ::std::option::Option::Some(Month::APRIL), + "MAY" => ::std::option::Option::Some(Month::MAY), + "JUNE" => ::std::option::Option::Some(Month::JUNE), + "JULY" => ::std::option::Option::Some(Month::JULY), + "AUGUST" => ::std::option::Option::Some(Month::AUGUST), + "SEPTEMBER" => ::std::option::Option::Some(Month::SEPTEMBER), + "OCTOBER" => ::std::option::Option::Some(Month::OCTOBER), + "NOVEMBER" => ::std::option::Option::Some(Month::NOVEMBER), + "DECEMBER" => ::std::option::Option::Some(Month::DECEMBER), + _ => ::std::option::Option::None + } } - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("Month", file_descriptor_proto()) - }) - } + const VALUES: &'static [Month] = &[ + Month::MONTH_UNSPECIFIED, + Month::JANUARY, + Month::FEBRUARY, + Month::MARCH, + Month::APRIL, + Month::MAY, + Month::JUNE, + Month::JULY, + Month::AUGUST, + Month::SEPTEMBER, + Month::OCTOBER, + Month::NOVEMBER, + Month::DECEMBER, + ]; } -impl ::std::marker::Copy for Month { +impl ::protobuf::EnumFull for Month { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("Month").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } } impl ::std::default::Default for Month { @@ -100,9 +137,9 @@ impl ::std::default::Default for Month { } } -impl ::protobuf::reflect::ProtobufValue for Month { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self)) +impl Month { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("Month") } } @@ -114,11 +151,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x10\x07\x12\n\n\x06AUGUST\x10\x08\x12\r\n\tSEPTEMBER\x10\t\x12\x0b\n\ \x07OCTOBER\x10\n\x12\x0c\n\x08NOVEMBER\x10\x0b\x12\x0c\n\x08DECEMBER\ \x10\x0cB]\n\x0fcom.google.typeB\nMonthProtoP\x01Z6google.golang.org/gen\ - proto/googleapis/type/month;month\xa2\x02\x03GTPJ\xd4\x0c\n\x06\x12\x04\ - \x0e\0@\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ - \x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\ - icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\ - t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ + proto/googleapis/type/month;month\xa2\x02\x03GTPJ\xd5\x0c\n\x06\x12\x04\ + \x0f\0A\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\ + \x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20\ + License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20n\ + ot\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ @@ -127,56 +164,73 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\ - \n\x08\n\x01\x08\x12\x03\x12\0M\n\t\n\x02\x08\x0b\x12\x03\x12\0M\n\x08\n\ - \x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\ - \x12\x03\x14\0+\n\t\n\x02\x08\x08\x12\x03\x14\0+\n\x08\n\x01\x08\x12\x03\ - \x15\0(\n\t\n\x02\x08\x01\x12\x03\x15\0(\n\x08\n\x01\x08\x12\x03\x16\0!\ - \n\t\n\x02\x08$\x12\x03\x16\0!\n;\n\x02\x05\0\x12\x04\x19\0@\x01\x1a/\ - \x20Represents\x20a\x20month\x20in\x20the\x20Gregorian\x20calendar.\n\n\ - \n\n\x03\x05\0\x01\x12\x03\x19\x05\n\n%\n\x04\x05\0\x02\0\x12\x03\x1b\ - \x02\x18\x1a\x18\x20The\x20unspecified\x20month.\n\n\x0c\n\x05\x05\0\x02\ - \0\x01\x12\x03\x1b\x02\x13\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1b\x16\ - \x17\n$\n\x04\x05\0\x02\x01\x12\x03\x1e\x02\x0e\x1a\x17\x20The\x20month\ - \x20of\x20January.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x1e\x02\t\n\ - \x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1e\x0c\r\n%\n\x04\x05\0\x02\x02\ - \x12\x03!\x02\x0f\x1a\x18\x20The\x20month\x20of\x20February.\n\n\x0c\n\ - \x05\x05\0\x02\x02\x01\x12\x03!\x02\n\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ - \x03!\r\x0e\n\"\n\x04\x05\0\x02\x03\x12\x03$\x02\x0c\x1a\x15\x20The\x20m\ - onth\x20of\x20March.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03$\x02\x07\n\ - \x0c\n\x05\x05\0\x02\x03\x02\x12\x03$\n\x0b\n\"\n\x04\x05\0\x02\x04\x12\ - \x03'\x02\x0c\x1a\x15\x20The\x20month\x20of\x20April.\n\n\x0c\n\x05\x05\ - \0\x02\x04\x01\x12\x03'\x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03'\n\ - \x0b\n\x20\n\x04\x05\0\x02\x05\x12\x03*\x02\n\x1a\x13\x20The\x20month\ - \x20of\x20May.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03*\x02\x05\n\x0c\n\ - \x05\x05\0\x02\x05\x02\x12\x03*\x08\t\n!\n\x04\x05\0\x02\x06\x12\x03-\ + tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ + \x14\n\x08\n\x01\x08\x12\x03\x13\0M\n\t\n\x02\x08\x0b\x12\x03\x13\0M\n\ + \x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\ + \x01\x08\x12\x03\x15\0+\n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\ + \x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\ + \x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\n;\n\x02\x05\0\x12\x04\x1a\0A\x01\ + \x1a/\x20Represents\x20a\x20month\x20in\x20the\x20Gregorian\x20calendar.\ + \n\n\n\n\x03\x05\0\x01\x12\x03\x1a\x05\n\n$\n\x04\x05\0\x02\0\x12\x03\ + \x1c\x02\x18\x1a\x17\x20The\x20unspecifed\x20month.\n\n\x0c\n\x05\x05\0\ + \x02\0\x01\x12\x03\x1c\x02\x13\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1c\ + \x16\x17\n$\n\x04\x05\0\x02\x01\x12\x03\x1f\x02\x0e\x1a\x17\x20The\x20mo\ + nth\x20of\x20January.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\x1f\x02\t\ + \n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1f\x0c\r\n%\n\x04\x05\0\x02\x02\ + \x12\x03\"\x02\x0f\x1a\x18\x20The\x20month\x20of\x20February.\n\n\x0c\n\ + \x05\x05\0\x02\x02\x01\x12\x03\"\x02\n\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ + \x03\"\r\x0e\n\"\n\x04\x05\0\x02\x03\x12\x03%\x02\x0c\x1a\x15\x20The\x20\ + month\x20of\x20March.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03%\x02\x07\n\ + \x0c\n\x05\x05\0\x02\x03\x02\x12\x03%\n\x0b\n\"\n\x04\x05\0\x02\x04\x12\ + \x03(\x02\x0c\x1a\x15\x20The\x20month\x20of\x20April.\n\n\x0c\n\x05\x05\ + \0\x02\x04\x01\x12\x03(\x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03(\n\ + \x0b\n\x20\n\x04\x05\0\x02\x05\x12\x03+\x02\n\x1a\x13\x20The\x20month\ + \x20of\x20May.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03+\x02\x05\n\x0c\n\ + \x05\x05\0\x02\x05\x02\x12\x03+\x08\t\n!\n\x04\x05\0\x02\x06\x12\x03.\ \x02\x0b\x1a\x14\x20The\x20month\x20of\x20June.\n\n\x0c\n\x05\x05\0\x02\ - \x06\x01\x12\x03-\x02\x06\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03-\t\n\n!\ - \n\x04\x05\0\x02\x07\x12\x030\x02\x0b\x1a\x14\x20The\x20month\x20of\x20J\ - uly.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x030\x02\x06\n\x0c\n\x05\x05\0\ - \x02\x07\x02\x12\x030\t\n\n#\n\x04\x05\0\x02\x08\x12\x033\x02\r\x1a\x16\ + \x06\x01\x12\x03.\x02\x06\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03.\t\n\n!\ + \n\x04\x05\0\x02\x07\x12\x031\x02\x0b\x1a\x14\x20The\x20month\x20of\x20J\ + uly.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x031\x02\x06\n\x0c\n\x05\x05\0\ + \x02\x07\x02\x12\x031\t\n\n#\n\x04\x05\0\x02\x08\x12\x034\x02\r\x1a\x16\ \x20The\x20month\x20of\x20August.\n\n\x0c\n\x05\x05\0\x02\x08\x01\x12\ - \x033\x02\x08\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x033\x0b\x0c\n&\n\x04\ - \x05\0\x02\t\x12\x036\x02\x10\x1a\x19\x20The\x20month\x20of\x20September\ - .\n\n\x0c\n\x05\x05\0\x02\t\x01\x12\x036\x02\x0b\n\x0c\n\x05\x05\0\x02\t\ - \x02\x12\x036\x0e\x0f\n$\n\x04\x05\0\x02\n\x12\x039\x02\x0f\x1a\x17\x20T\ - he\x20month\x20of\x20October.\n\n\x0c\n\x05\x05\0\x02\n\x01\x12\x039\x02\ - \t\n\x0c\n\x05\x05\0\x02\n\x02\x12\x039\x0c\x0e\n%\n\x04\x05\0\x02\x0b\ - \x12\x03<\x02\x10\x1a\x18\x20The\x20month\x20of\x20November.\n\n\x0c\n\ - \x05\x05\0\x02\x0b\x01\x12\x03<\x02\n\n\x0c\n\x05\x05\0\x02\x0b\x02\x12\ - \x03<\r\x0f\n%\n\x04\x05\0\x02\x0c\x12\x03?\x02\x10\x1a\x18\x20The\x20mo\ - nth\x20of\x20December.\n\n\x0c\n\x05\x05\0\x02\x0c\x01\x12\x03?\x02\n\n\ - \x0c\n\x05\x05\0\x02\x0c\x02\x12\x03?\r\x0fb\x06proto3\ + \x034\x02\x08\n\x0c\n\x05\x05\0\x02\x08\x02\x12\x034\x0b\x0c\n&\n\x04\ + \x05\0\x02\t\x12\x037\x02\x10\x1a\x19\x20The\x20month\x20of\x20September\ + .\n\n\x0c\n\x05\x05\0\x02\t\x01\x12\x037\x02\x0b\n\x0c\n\x05\x05\0\x02\t\ + \x02\x12\x037\x0e\x0f\n$\n\x04\x05\0\x02\n\x12\x03:\x02\x0f\x1a\x17\x20T\ + he\x20month\x20of\x20October.\n\n\x0c\n\x05\x05\0\x02\n\x01\x12\x03:\x02\ + \t\n\x0c\n\x05\x05\0\x02\n\x02\x12\x03:\x0c\x0e\n%\n\x04\x05\0\x02\x0b\ + \x12\x03=\x02\x10\x1a\x18\x20The\x20month\x20of\x20November.\n\n\x0c\n\ + \x05\x05\0\x02\x0b\x01\x12\x03=\x02\n\n\x0c\n\x05\x05\0\x02\x0b\x02\x12\ + \x03=\r\x0f\n%\n\x04\x05\0\x02\x0c\x12\x03@\x02\x10\x1a\x18\x20The\x20mo\ + nth\x20of\x20December.\n\n\x0c\n\x05\x05\0\x02\x0c\x01\x12\x03@\x02\n\n\ + \x0c\n\x05\x05\0\x02\x0c\x02\x12\x03@\r\x0fb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(Month::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/phone_number.rs b/googleapis-raw/src/type/phone_number.rs deleted file mode 100644 index 3643e8a..0000000 --- a/googleapis-raw/src/type/phone_number.rs +++ /dev/null @@ -1,672 +0,0 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![allow(unused_attributes)] -#![cfg_attr(rustfmt, rustfmt::skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/type/phone_number.proto` - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; - -#[derive(PartialEq,Clone,Default)] -pub struct PhoneNumber { - // message fields - pub extension: ::std::string::String, - // message oneof groups - pub kind: ::std::option::Option, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PhoneNumber { - fn default() -> &'a PhoneNumber { - ::default_instance() - } -} - -#[derive(Clone,PartialEq,Debug)] -pub enum PhoneNumber_oneof_kind { - e164_number(::std::string::String), - short_code(PhoneNumber_ShortCode), -} - -impl PhoneNumber { - pub fn new() -> PhoneNumber { - ::std::default::Default::default() - } - - // string e164_number = 1; - - - pub fn get_e164_number(&self) -> &str { - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(ref v)) => v, - _ => "", - } - } - pub fn clear_e164_number(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_e164_number(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_e164_number(&mut self, v: ::std::string::String) { - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(v)) - } - - // Mutable pointer to the field. - pub fn mut_e164_number(&mut self) -> &mut ::std::string::String { - if let ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(::std::string::String::new())); - } - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_e164_number(&mut self) -> ::std::string::String { - if self.has_e164_number() { - match self.kind.take() { - ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(v)) => v, - _ => panic!(), - } - } else { - ::std::string::String::new() - } - } - - // .google.type.PhoneNumber.ShortCode short_code = 2; - - - pub fn get_short_code(&self) -> &PhoneNumber_ShortCode { - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(ref v)) => v, - _ => ::default_instance(), - } - } - pub fn clear_short_code(&mut self) { - self.kind = ::std::option::Option::None; - } - - pub fn has_short_code(&self) -> bool { - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(..)) => true, - _ => false, - } - } - - // Param is passed by value, moved - pub fn set_short_code(&mut self, v: PhoneNumber_ShortCode) { - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(v)) - } - - // Mutable pointer to the field. - pub fn mut_short_code(&mut self) -> &mut PhoneNumber_ShortCode { - if let ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(_)) = self.kind { - } else { - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(PhoneNumber_ShortCode::new())); - } - match self.kind { - ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(ref mut v)) => v, - _ => panic!(), - } - } - - // Take field - pub fn take_short_code(&mut self) -> PhoneNumber_ShortCode { - if self.has_short_code() { - match self.kind.take() { - ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(v)) => v, - _ => panic!(), - } - } else { - PhoneNumber_ShortCode::new() - } - } - - // string extension = 3; - - - pub fn get_extension(&self) -> &str { - &self.extension - } - pub fn clear_extension(&mut self) { - self.extension.clear(); - } - - // Param is passed by value, moved - pub fn set_extension(&mut self, v: ::std::string::String) { - self.extension = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_extension(&mut self) -> &mut ::std::string::String { - &mut self.extension - } - - // Take field - pub fn take_extension(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.extension, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PhoneNumber { - fn is_initialized(&self) -> bool { - if let Some(PhoneNumber_oneof_kind::short_code(ref v)) = self.kind { - if !v.is_initialized() { - return false; - } - } - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::e164_number(is.read_string()?)); - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - self.kind = ::std::option::Option::Some(PhoneNumber_oneof_kind::short_code(is.read_message()?)); - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.extension)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.extension.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.extension); - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &PhoneNumber_oneof_kind::e164_number(ref v) => { - my_size += ::protobuf::rt::string_size(1, &v); - }, - &PhoneNumber_oneof_kind::short_code(ref v) => { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }, - }; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.extension.is_empty() { - os.write_string(3, &self.extension)?; - } - if let ::std::option::Option::Some(ref v) = self.kind { - match v { - &PhoneNumber_oneof_kind::e164_number(ref v) => { - os.write_string(1, v)?; - }, - &PhoneNumber_oneof_kind::short_code(ref v) => { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }, - }; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PhoneNumber { - PhoneNumber::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>( - "e164_number", - PhoneNumber::has_e164_number, - PhoneNumber::get_e164_number, - )); - fields.push(::protobuf::reflect::accessor::make_singular_message_accessor::<_, PhoneNumber_ShortCode>( - "short_code", - PhoneNumber::has_short_code, - PhoneNumber::get_short_code, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "extension", - |m: &PhoneNumber| { &m.extension }, - |m: &mut PhoneNumber| { &mut m.extension }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PhoneNumber", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PhoneNumber { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PhoneNumber::new) - } -} - -impl ::protobuf::Clear for PhoneNumber { - fn clear(&mut self) { - self.kind = ::std::option::Option::None; - self.kind = ::std::option::Option::None; - self.extension.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PhoneNumber { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PhoneNumber { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PhoneNumber_ShortCode { - // message fields - pub region_code: ::std::string::String, - pub number: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PhoneNumber_ShortCode { - fn default() -> &'a PhoneNumber_ShortCode { - ::default_instance() - } -} - -impl PhoneNumber_ShortCode { - pub fn new() -> PhoneNumber_ShortCode { - ::std::default::Default::default() - } - - // string region_code = 1; - - - pub fn get_region_code(&self) -> &str { - &self.region_code - } - pub fn clear_region_code(&mut self) { - self.region_code.clear(); - } - - // Param is passed by value, moved - pub fn set_region_code(&mut self, v: ::std::string::String) { - self.region_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_region_code(&mut self) -> &mut ::std::string::String { - &mut self.region_code - } - - // Take field - pub fn take_region_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.region_code, ::std::string::String::new()) - } - - // string number = 2; - - - pub fn get_number(&self) -> &str { - &self.number - } - pub fn clear_number(&mut self) { - self.number.clear(); - } - - // Param is passed by value, moved - pub fn set_number(&mut self, v: ::std::string::String) { - self.number = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_number(&mut self) -> &mut ::std::string::String { - &mut self.number - } - - // Take field - pub fn take_number(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.number, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PhoneNumber_ShortCode { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.region_code)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.number)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.region_code.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.region_code); - } - if !self.number.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.number); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.region_code.is_empty() { - os.write_string(1, &self.region_code)?; - } - if !self.number.is_empty() { - os.write_string(2, &self.number)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PhoneNumber_ShortCode { - PhoneNumber_ShortCode::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "region_code", - |m: &PhoneNumber_ShortCode| { &m.region_code }, - |m: &mut PhoneNumber_ShortCode| { &mut m.region_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "number", - |m: &PhoneNumber_ShortCode| { &m.number }, - |m: &mut PhoneNumber_ShortCode| { &mut m.number }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PhoneNumber.ShortCode", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PhoneNumber_ShortCode { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PhoneNumber_ShortCode::new) - } -} - -impl ::protobuf::Clear for PhoneNumber_ShortCode { - fn clear(&mut self) { - self.region_code.clear(); - self.number.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PhoneNumber_ShortCode { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PhoneNumber_ShortCode { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1egoogle/type/phone_number.proto\x12\x0bgoogle.type\"\xe1\x01\n\x0bP\ - honeNumber\x12!\n\x0be164_number\x18\x01\x20\x01(\tH\0R\ne164Number\x12C\ - \n\nshort_code\x18\x02\x20\x01(\x0b2\".google.type.PhoneNumber.ShortCode\ - H\0R\tshortCode\x12\x1c\n\textension\x18\x03\x20\x01(\tR\textension\x1aD\ - \n\tShortCode\x12\x1f\n\x0bregion_code\x18\x01\x20\x01(\tR\nregionCode\ - \x12\x16\n\x06number\x18\x02\x20\x01(\tR\x06numberB\x06\n\x04kindBt\n\ - \x0fcom.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genprot\ - o/googleapis/type/phone_number;phone_number\xf8\x01\x01\xa2\x02\x03GTPJ\ - \xe1\"\n\x06\x12\x04\x0e\0p\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ - \xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ - \x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\ - \x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\x12\x03\x13\0[\n\t\n\x02\x08\x0b\ - \x12\x03\x13\0[\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\ - \x14\0\"\n\x08\n\x01\x08\x12\x03\x15\01\n\t\n\x02\x08\x08\x12\x03\x15\01\ - \n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\ - \x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\n\xf8\x07\n\x02\ - \x04\0\x12\x043\0p\x01\x1a\xeb\x07\x20An\x20object\x20representing\x20a\ - \x20phone\x20number,\x20suitable\x20as\x20an\x20API\x20wire\x20format.\n\ - \n\x20This\x20representation:\n\n\x20\x20-\x20should\x20not\x20be\x20use\ - d\x20for\x20locale-specific\x20formatting\x20of\x20a\x20phone\x20number,\ - \x20such\n\x20\x20\x20\x20as\x20\"+1\x20(650)\x20253-0000\x20ext.\x20123\ - \"\n\n\x20\x20-\x20is\x20not\x20designed\x20for\x20efficient\x20storage\ - \n\x20\x20-\x20may\x20not\x20be\x20suitable\x20for\x20dialing\x20-\x20sp\ - ecialized\x20libraries\x20(see\x20references)\n\x20\x20\x20\x20should\ - \x20be\x20used\x20to\x20parse\x20the\x20number\x20for\x20that\x20purpose\ - \n\n\x20To\x20do\x20something\x20meaningful\x20with\x20this\x20number,\ - \x20such\x20as\x20format\x20it\x20for\x20various\n\x20use-cases,\x20conv\ - ert\x20it\x20to\x20an\x20`i18n.phonenumbers.PhoneNumber`\x20object\x20fi\ - rst.\n\n\x20For\x20instance,\x20in\x20Java\x20this\x20would\x20be:\n\n\ - \x20\x20\x20\x20com.google.type.PhoneNumber\x20wireProto\x20=\n\x20\x20\ - \x20\x20\x20\x20\x20\x20com.google.type.PhoneNumber.newBuilder().build()\ - ;\n\x20\x20\x20\x20com.google.i18n.phonenumbers.Phonenumber.PhoneNumber\ - \x20phoneNumber\x20=\n\x20\x20\x20\x20\x20\x20\x20\x20PhoneNumberUtil.ge\ - tInstance().parse(wireProto.getE164Number(),\x20\"ZZ\");\n\x20\x20\x20\ - \x20if\x20(!wireProto.getExtension().isEmpty())\x20{\n\x20\x20\x20\x20\ - \x20\x20phoneNumber.setExtension(wireProto.getExtension());\n\x20\x20\ - \x20\x20}\n\n\x20\x20Reference(s):\n\x20\x20\x20-\x20https://github.com/\ - google/libphonenumber\n\n\n\n\x03\x04\0\x01\x12\x033\x08\x13\n\xb5\x04\n\ - \x04\x04\0\x03\0\x12\x04=\x02H\x03\x1a\xa6\x04\x20An\x20object\x20repres\ - enting\x20a\x20short\x20code,\x20which\x20is\x20a\x20phone\x20number\x20\ - that\x20is\n\x20typically\x20much\x20shorter\x20than\x20regular\x20phone\ - \x20numbers\x20and\x20can\x20be\x20used\x20to\n\x20address\x20messages\ - \x20in\x20MMS\x20and\x20SMS\x20systems,\x20as\x20well\x20as\x20for\x20ab\ - breviated\x20dialing\n\x20(e.g.\x20\"Text\x20611\x20to\x20see\x20how\x20\ - many\x20minutes\x20you\x20have\x20remaining\x20on\x20your\x20plan.\").\n\ - \n\x20Short\x20codes\x20are\x20restricted\x20to\x20a\x20region\x20and\ - \x20are\x20not\x20internationally\n\x20dialable,\x20which\x20means\x20th\ - e\x20same\x20short\x20code\x20can\x20exist\x20in\x20different\x20regions\ - ,\n\x20with\x20different\x20usage\x20and\x20pricing,\x20even\x20if\x20th\ - ose\x20regions\x20share\x20the\x20same\n\x20country\x20calling\x20code\ - \x20(e.g.\x20US\x20and\x20CA).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03=\n\ - \x13\n\xd5\x01\n\x06\x04\0\x03\0\x02\0\x12\x03C\x04\x1b\x1a\xc5\x01\x20R\ - equired.\x20The\x20BCP-47\x20region\x20code\x20of\x20the\x20location\x20\ - where\x20calls\x20to\x20this\n\x20short\x20code\x20can\x20be\x20made,\ - \x20such\x20as\x20\"US\"\x20and\x20\"BB\".\n\n\x20Reference(s):\n\x20\ - \x20-\x20http://www.unicode.org/reports/tr35/#unicode_region_subtag\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03C\x04\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x01\x12\x03C\x0b\x16\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03C\ - \x19\x1a\nt\n\x06\x04\0\x03\0\x02\x01\x12\x03G\x04\x16\x1ae\x20Required.\ - \x20The\x20short\x20code\x20digits,\x20without\x20a\x20leading\x20plus\ - \x20('+')\x20or\x20country\n\x20calling\x20code,\x20e.g.\x20\"611\".\n\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03G\x04\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\x01\x01\x12\x03G\x0b\x11\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\ - \x03G\x14\x15\n\xe2\x01\n\x04\x04\0\x08\0\x12\x04M\x02d\x03\x1a\xd3\x01\ - \x20Required.\x20\x20Either\x20a\x20regular\x20number,\x20or\x20a\x20sho\ - rt\x20code.\x20\x20New\x20fields\x20may\x20be\n\x20added\x20to\x20the\ - \x20oneof\x20below\x20in\x20the\x20future,\x20so\x20clients\x20should\ - \x20ignore\x20phone\n\x20numbers\x20for\x20which\x20none\x20of\x20the\ - \x20fields\x20they\x20coded\x20against\x20are\x20set.\n\n\x0c\n\x05\x04\ - \0\x08\0\x01\x12\x03M\x08\x0c\n\xb0\x05\n\x04\x04\0\x02\0\x12\x03]\x04\ - \x1b\x1a\xa2\x05\x20The\x20phone\x20number,\x20represented\x20as\x20a\ - \x20leading\x20plus\x20sign\x20('+'),\x20followed\x20by\x20a\n\x20phone\ - \x20number\x20that\x20uses\x20a\x20relaxed\x20ITU\x20E.164\x20format\x20\ - consisting\x20of\x20the\n\x20country\x20calling\x20code\x20(1\x20to\x203\ - \x20digits)\x20and\x20the\x20subscriber\x20number,\x20with\x20no\n\x20ad\ - ditional\x20spaces\x20or\x20formatting,\x20e.g.:\n\x20\x20-\x20correct:\ - \x20\"+15552220123\"\n\x20\x20-\x20incorrect:\x20\"+1\x20(555)\x20222-01\ - 234\x20x123\".\n\n\x20The\x20ITU\x20E.164\x20format\x20limits\x20the\x20\ - latter\x20to\x2012\x20digits,\x20but\x20in\x20practice\x20not\n\x20all\ - \x20countries\x20respect\x20that,\x20so\x20we\x20relax\x20that\x20restri\ - ction\x20here.\n\x20National-only\x20numbers\x20are\x20not\x20allowed.\n\ - \n\x20References:\n\x20\x20-\x20https://www.itu.int/rec/T-REC-E.164-2010\ - 11-I\n\x20\x20-\x20https://en.wikipedia.org/wiki/E.164.\n\x20\x20-\x20ht\ - tps://en.wikipedia.org/wiki/List_of_country_calling_codes\n\n\x0c\n\x05\ - \x04\0\x02\0\x05\x12\x03]\x04\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03]\x0b\ - \x16\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03]\x19\x1a\nY\n\x04\x04\0\x02\x01\ - \x12\x03c\x04\x1d\x1aL\x20A\x20short\x20code.\n\n\x20Reference(s):\n\x20\ - \x20-\x20https://en.wikipedia.org/wiki/Short_code\n\n\x0c\n\x05\x04\0\ - \x02\x01\x06\x12\x03c\x04\r\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03c\x0e\ - \x18\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03c\x1b\x1c\n\x95\x04\n\x04\x04\ - \0\x02\x02\x12\x03o\x02\x17\x1a\x87\x04\x20The\x20phone\x20number's\x20e\ - xtension.\x20The\x20extension\x20is\x20not\x20standardized\x20in\x20ITU\ - \n\x20recommendations,\x20except\x20for\x20being\x20defined\x20as\x20a\ - \x20series\x20of\x20numbers\x20with\x20a\n\x20maximum\x20length\x20of\ - \x2040\x20digits.\x20Other\x20than\x20digits,\x20some\x20other\x20dialin\ - g\n\x20characters\x20such\x20as\x20','\x20(indicating\x20a\x20wait)\x20o\ - r\x20'#'\x20may\x20be\x20stored\x20here.\n\n\x20Note\x20that\x20no\x20re\ - gions\x20currently\x20use\x20extensions\x20with\x20short\x20codes,\x20so\ - \x20this\n\x20field\x20is\x20normally\x20only\x20set\x20in\x20conjunctio\ - n\x20with\x20an\x20E.164\x20number.\x20It\x20is\x20held\n\x20separately\ - \x20from\x20the\x20E.164\x20number\x20to\x20allow\x20for\x20short\x20cod\ - e\x20extensions\x20in\x20the\n\x20future.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x05\x12\x03o\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03o\t\x12\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03o\x15\x16b\x06proto3\ -"; - -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) -} diff --git a/googleapis-raw/src/type/postal_address.rs b/googleapis-raw/src/type/postal_address.rs index 8cab956..ab74500 100644 --- a/googleapis-raw/src/type/postal_address.rs +++ b/googleapis-raw/src/type/postal_address.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,31 +16,113 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/postal_address.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.type.PostalAddress) +#[derive(PartialEq,Clone,Default,Debug)] pub struct PostalAddress { // message fields + /// The schema revision of the `PostalAddress`. This must be set to 0, which is + /// the latest revision. + /// + /// All new revisions **must** be backward compatible with old revisions. + // @@protoc_insertion_point(field:google.type.PostalAddress.revision) pub revision: i32, + /// Required. CLDR region code of the country/region of the address. This + /// is never inferred and it is up to the user to ensure the value is + /// correct. See http://cldr.unicode.org/ and + /// http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html + /// for details. Example: "CH" for Switzerland. + // @@protoc_insertion_point(field:google.type.PostalAddress.region_code) pub region_code: ::std::string::String, + /// Optional. BCP-47 language code of the contents of this address (if + /// known). This is often the UI language of the input form or is expected + /// to match one of the languages used in the address' country/region, or their + /// transliterated equivalents. + /// This can affect formatting in certain countries, but is not critical + /// to the correctness of the data and will never affect any validation or + /// other non-formatting related operations. + /// + /// If this value is not known, it should be omitted (rather than specifying a + /// possibly incorrect default). + /// + /// Examples: "zh-Hant", "ja", "ja-Latn", "en". + // @@protoc_insertion_point(field:google.type.PostalAddress.language_code) pub language_code: ::std::string::String, + /// Optional. Postal code of the address. Not all countries use or require + /// postal codes to be present, but where they are used, they may trigger + /// additional validation with other parts of the address (e.g. state/zip + /// validation in the U.S.A.). + // @@protoc_insertion_point(field:google.type.PostalAddress.postal_code) pub postal_code: ::std::string::String, + /// Optional. Additional, country-specific, sorting code. This is not used + /// in most regions. Where it is used, the value is either a string like + /// "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number + /// alone, representing the "sector code" (Jamaica), "delivery area indicator" + /// (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). + // @@protoc_insertion_point(field:google.type.PostalAddress.sorting_code) pub sorting_code: ::std::string::String, + /// Optional. Highest administrative subdivision which is used for postal + /// addresses of a country or region. + /// For example, this can be a state, a province, an oblast, or a prefecture. + /// Specifically, for Spain this is the province and not the autonomous + /// community (e.g. "Barcelona" and not "Catalonia"). + /// Many countries don't use an administrative area in postal addresses. E.g. + /// in Switzerland this should be left unpopulated. + // @@protoc_insertion_point(field:google.type.PostalAddress.administrative_area) pub administrative_area: ::std::string::String, + /// Optional. Generally refers to the city/town portion of the address. + /// Examples: US city, IT comune, UK post town. + /// In regions of the world where localities are not well defined or do not fit + /// into this structure well, leave locality empty and use address_lines. + // @@protoc_insertion_point(field:google.type.PostalAddress.locality) pub locality: ::std::string::String, + /// Optional. Sublocality of the address. + /// For example, this can be neighborhoods, boroughs, districts. + // @@protoc_insertion_point(field:google.type.PostalAddress.sublocality) pub sublocality: ::std::string::String, - pub address_lines: ::protobuf::RepeatedField<::std::string::String>, - pub recipients: ::protobuf::RepeatedField<::std::string::String>, + /// Unstructured address lines describing the lower levels of an address. + /// + /// Because values in address_lines do not have type information and may + /// sometimes contain multiple values in a single field (e.g. + /// "Austin, TX"), it is important that the line order is clear. The order of + /// address lines should be "envelope order" for the country/region of the + /// address. In places where this can vary (e.g. Japan), address_language is + /// used to make it explicit (e.g. "ja" for large-to-small ordering and + /// "ja-Latn" or "en" for small-to-large). This way, the most specific line of + /// an address can be selected based on the language. + /// + /// The minimum permitted structural representation of an address consists + /// of a region_code with all remaining information placed in the + /// address_lines. It would be possible to format such an address very + /// approximately without geocoding, but no semantic reasoning could be + /// made about any of the address components until it was at least + /// partially resolved. + /// + /// Creating an address only containing a region_code and address_lines, and + /// then geocoding is the recommended way to handle completely unstructured + /// addresses (as opposed to guessing which parts of the address should be + /// localities or administrative areas). + // @@protoc_insertion_point(field:google.type.PostalAddress.address_lines) + pub address_lines: ::std::vec::Vec<::std::string::String>, + /// Optional. The recipient at the address. + /// This field may, under certain circumstances, contain multiline information. + /// For example, it might contain "care of" information. + // @@protoc_insertion_point(field:google.type.PostalAddress.recipients) + pub recipients: ::std::vec::Vec<::std::string::String>, + /// Optional. The name of the organization at the address. + // @@protoc_insertion_point(field:google.type.PostalAddress.organization) pub organization: ::std::string::String, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.PostalAddress.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a PostalAddress { @@ -53,328 +136,117 @@ impl PostalAddress { ::std::default::Default::default() } - // int32 revision = 1; - - - pub fn get_revision(&self) -> i32 { - self.revision - } - pub fn clear_revision(&mut self) { - self.revision = 0; - } - - // Param is passed by value, moved - pub fn set_revision(&mut self, v: i32) { - self.revision = v; - } - - // string region_code = 2; - - - pub fn get_region_code(&self) -> &str { - &self.region_code - } - pub fn clear_region_code(&mut self) { - self.region_code.clear(); - } - - // Param is passed by value, moved - pub fn set_region_code(&mut self, v: ::std::string::String) { - self.region_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_region_code(&mut self) -> &mut ::std::string::String { - &mut self.region_code - } - - // Take field - pub fn take_region_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.region_code, ::std::string::String::new()) - } - - // string language_code = 3; - - - pub fn get_language_code(&self) -> &str { - &self.language_code - } - pub fn clear_language_code(&mut self) { - self.language_code.clear(); - } - - // Param is passed by value, moved - pub fn set_language_code(&mut self, v: ::std::string::String) { - self.language_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_language_code(&mut self) -> &mut ::std::string::String { - &mut self.language_code - } - - // Take field - pub fn take_language_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.language_code, ::std::string::String::new()) - } - - // string postal_code = 4; - - - pub fn get_postal_code(&self) -> &str { - &self.postal_code - } - pub fn clear_postal_code(&mut self) { - self.postal_code.clear(); - } - - // Param is passed by value, moved - pub fn set_postal_code(&mut self, v: ::std::string::String) { - self.postal_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_postal_code(&mut self) -> &mut ::std::string::String { - &mut self.postal_code - } - - // Take field - pub fn take_postal_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.postal_code, ::std::string::String::new()) - } - - // string sorting_code = 5; - - - pub fn get_sorting_code(&self) -> &str { - &self.sorting_code - } - pub fn clear_sorting_code(&mut self) { - self.sorting_code.clear(); - } - - // Param is passed by value, moved - pub fn set_sorting_code(&mut self, v: ::std::string::String) { - self.sorting_code = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sorting_code(&mut self) -> &mut ::std::string::String { - &mut self.sorting_code - } - - // Take field - pub fn take_sorting_code(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sorting_code, ::std::string::String::new()) - } - - // string administrative_area = 6; - - - pub fn get_administrative_area(&self) -> &str { - &self.administrative_area - } - pub fn clear_administrative_area(&mut self) { - self.administrative_area.clear(); - } - - // Param is passed by value, moved - pub fn set_administrative_area(&mut self, v: ::std::string::String) { - self.administrative_area = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_administrative_area(&mut self) -> &mut ::std::string::String { - &mut self.administrative_area - } - - // Take field - pub fn take_administrative_area(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.administrative_area, ::std::string::String::new()) - } - - // string locality = 7; - - - pub fn get_locality(&self) -> &str { - &self.locality - } - pub fn clear_locality(&mut self) { - self.locality.clear(); - } - - // Param is passed by value, moved - pub fn set_locality(&mut self, v: ::std::string::String) { - self.locality = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_locality(&mut self) -> &mut ::std::string::String { - &mut self.locality - } - - // Take field - pub fn take_locality(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.locality, ::std::string::String::new()) - } - - // string sublocality = 8; - - - pub fn get_sublocality(&self) -> &str { - &self.sublocality - } - pub fn clear_sublocality(&mut self) { - self.sublocality.clear(); - } - - // Param is passed by value, moved - pub fn set_sublocality(&mut self, v: ::std::string::String) { - self.sublocality = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sublocality(&mut self) -> &mut ::std::string::String { - &mut self.sublocality - } - - // Take field - pub fn take_sublocality(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sublocality, ::std::string::String::new()) - } - - // repeated string address_lines = 9; - - - pub fn get_address_lines(&self) -> &[::std::string::String] { - &self.address_lines - } - pub fn clear_address_lines(&mut self) { - self.address_lines.clear(); - } - - // Param is passed by value, moved - pub fn set_address_lines(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.address_lines = v; - } - - // Mutable pointer to the field. - pub fn mut_address_lines(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.address_lines - } - - // Take field - pub fn take_address_lines(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.address_lines, ::protobuf::RepeatedField::new()) - } - - // repeated string recipients = 10; - - - pub fn get_recipients(&self) -> &[::std::string::String] { - &self.recipients - } - pub fn clear_recipients(&mut self) { - self.recipients.clear(); - } - - // Param is passed by value, moved - pub fn set_recipients(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.recipients = v; - } - - // Mutable pointer to the field. - pub fn mut_recipients(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.recipients - } - - // Take field - pub fn take_recipients(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.recipients, ::protobuf::RepeatedField::new()) - } - - // string organization = 11; - - - pub fn get_organization(&self) -> &str { - &self.organization - } - pub fn clear_organization(&mut self) { - self.organization.clear(); - } - - // Param is passed by value, moved - pub fn set_organization(&mut self, v: ::std::string::String) { - self.organization = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_organization(&mut self) -> &mut ::std::string::String { - &mut self.organization - } - - // Take field - pub fn take_organization(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.organization, ::std::string::String::new()) + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(11); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "revision", + |m: &PostalAddress| { &m.revision }, + |m: &mut PostalAddress| { &mut m.revision }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "region_code", + |m: &PostalAddress| { &m.region_code }, + |m: &mut PostalAddress| { &mut m.region_code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "language_code", + |m: &PostalAddress| { &m.language_code }, + |m: &mut PostalAddress| { &mut m.language_code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "postal_code", + |m: &PostalAddress| { &m.postal_code }, + |m: &mut PostalAddress| { &mut m.postal_code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sorting_code", + |m: &PostalAddress| { &m.sorting_code }, + |m: &mut PostalAddress| { &mut m.sorting_code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "administrative_area", + |m: &PostalAddress| { &m.administrative_area }, + |m: &mut PostalAddress| { &mut m.administrative_area }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "locality", + |m: &PostalAddress| { &m.locality }, + |m: &mut PostalAddress| { &mut m.locality }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "sublocality", + |m: &PostalAddress| { &m.sublocality }, + |m: &mut PostalAddress| { &mut m.sublocality }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "address_lines", + |m: &PostalAddress| { &m.address_lines }, + |m: &mut PostalAddress| { &mut m.address_lines }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "recipients", + |m: &PostalAddress| { &m.recipients }, + |m: &mut PostalAddress| { &mut m.recipients }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "organization", + |m: &PostalAddress| { &m.organization }, + |m: &mut PostalAddress| { &mut m.organization }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PostalAddress", + fields, + oneofs, + ) } } impl ::protobuf::Message for PostalAddress { + const NAME: &'static str = "PostalAddress"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.revision = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.revision = is.read_int32()?; }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.region_code)?; + 18 => { + self.region_code = is.read_string()?; }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.language_code)?; + 26 => { + self.language_code = is.read_string()?; }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.postal_code)?; + 34 => { + self.postal_code = is.read_string()?; }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sorting_code)?; + 42 => { + self.sorting_code = is.read_string()?; }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.administrative_area)?; + 50 => { + self.administrative_area = is.read_string()?; }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.locality)?; + 58 => { + self.locality = is.read_string()?; }, - 8 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sublocality)?; + 66 => { + self.sublocality = is.read_string()?; }, - 9 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.address_lines)?; + 74 => { + self.address_lines.push(is.read_string()?); }, - 10 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.recipients)?; + 82 => { + self.recipients.push(is.read_string()?); }, - 11 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.organization)?; + 90 => { + self.organization = is.read_string()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -383,10 +255,10 @@ impl ::protobuf::Message for PostalAddress { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.revision != 0 { - my_size += ::protobuf::rt::value_size(1, self.revision, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.revision); } if !self.region_code.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.region_code); @@ -418,12 +290,12 @@ impl ::protobuf::Message for PostalAddress { if !self.organization.is_empty() { my_size += ::protobuf::rt::string_size(11, &self.organization); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.revision != 0 { os.write_int32(1, self.revision)?; } @@ -457,114 +329,22 @@ impl ::protobuf::Message for PostalAddress { if !self.organization.is_empty() { os.write_string(11, &self.organization)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> PostalAddress { PostalAddress::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "revision", - |m: &PostalAddress| { &m.revision }, - |m: &mut PostalAddress| { &mut m.revision }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "region_code", - |m: &PostalAddress| { &m.region_code }, - |m: &mut PostalAddress| { &mut m.region_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "language_code", - |m: &PostalAddress| { &m.language_code }, - |m: &mut PostalAddress| { &mut m.language_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "postal_code", - |m: &PostalAddress| { &m.postal_code }, - |m: &mut PostalAddress| { &mut m.postal_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sorting_code", - |m: &PostalAddress| { &m.sorting_code }, - |m: &mut PostalAddress| { &mut m.sorting_code }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "administrative_area", - |m: &PostalAddress| { &m.administrative_area }, - |m: &mut PostalAddress| { &mut m.administrative_area }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "locality", - |m: &PostalAddress| { &m.locality }, - |m: &mut PostalAddress| { &mut m.locality }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sublocality", - |m: &PostalAddress| { &m.sublocality }, - |m: &mut PostalAddress| { &mut m.sublocality }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "address_lines", - |m: &PostalAddress| { &m.address_lines }, - |m: &mut PostalAddress| { &mut m.address_lines }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "recipients", - |m: &PostalAddress| { &m.recipients }, - |m: &mut PostalAddress| { &mut m.recipients }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "organization", - |m: &PostalAddress| { &m.organization }, - |m: &mut PostalAddress| { &mut m.organization }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PostalAddress", - fields, - file_descriptor_proto() - ) - }) - } - - fn default_instance() -> &'static PostalAddress { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(PostalAddress::new) - } -} - -impl ::protobuf::Clear for PostalAddress { fn clear(&mut self) { self.revision = 0; self.region_code.clear(); @@ -577,20 +357,43 @@ impl ::protobuf::Clear for PostalAddress { self.address_lines.clear(); self.recipients.clear(); self.organization.clear(); - self.unknown_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static PostalAddress { + static instance: PostalAddress = PostalAddress { + revision: 0, + region_code: ::std::string::String::new(), + language_code: ::std::string::String::new(), + postal_code: ::std::string::String::new(), + sorting_code: ::std::string::String::new(), + administrative_area: ::std::string::String::new(), + locality: ::std::string::String::new(), + sublocality: ::std::string::String::new(), + address_lines: ::std::vec::Vec::new(), + recipients: ::std::vec::Vec::new(), + organization: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::std::fmt::Debug for PostalAddress { +impl ::protobuf::MessageFull for PostalAddress { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PostalAddress").unwrap()).clone() + } +} + +impl ::std::fmt::Display for PostalAddress { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for PostalAddress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -606,8 +409,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ (\tR\nrecipients\x12\"\n\x0corganization\x18\x0b\x20\x01(\tR\x0corganiza\ tionBx\n\x0fcom.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.o\ rg/genproto/googleapis/type/postaladdress;postaladdress\xf8\x01\x01\xa2\ - \x02\x03GTPJ\xc9/\n\x07\x12\x05\x0e\0\x85\x01\x01\n\xbc\x04\n\x01\x0c\ - \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20LLC\n\n\ + \x02\x03GTPJ\xcb/\n\x07\x12\x05\x0f\0\x86\x01\x01\n\xbe\x04\n\x01\x0c\ + \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ @@ -619,13 +422,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0\ - \x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\x12\x03\x13\0]\ - \n\t\n\x02\x08\x0b\x12\x03\x13\0]\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\03\n\t\n\x02\x08\ - \x08\x12\x03\x15\03\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\ - \x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\ - \n\xfe\x05\n\x02\x04\0\x12\x05*\0\x85\x01\x01\x1a\xf0\x05\x20Represents\ + nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0\ + \x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\x01\x08\x12\x03\x14\0]\ + \n\t\n\x02\x08\x0b\x12\x03\x14\0]\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\ + \x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\03\n\t\n\x02\x08\ + \x08\x12\x03\x16\03\n\x08\n\x01\x08\x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\ + \x03\x17\0(\n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\ + \n\xfe\x05\n\x02\x04\0\x12\x05+\0\x86\x01\x01\x1a\xf0\x05\x20Represents\ \x20a\x20postal\x20address,\x20e.g.\x20for\x20postal\x20delivery\x20or\ \x20payments\x20addresses.\n\x20Given\x20a\x20postal\x20address,\x20a\ \x20postal\x20service\x20can\x20deliver\x20items\x20to\x20a\x20premise,\ @@ -641,23 +444,23 @@ static file_descriptor_proto_data: &'static [u8] = b"\ diting\x20of\n\x20\x20\x20fields\x20outside\x20countries\x20where\x20tha\ t\x20field\x20is\x20used.\n\n\x20For\x20more\x20guidance\x20on\x20how\ \x20to\x20use\x20this\x20schema,\x20please\x20see:\n\x20https://support.\ - google.com/business/answer/6397478\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\ - \x15\n\xb9\x01\n\x04\x04\0\x02\0\x12\x03/\x02\x15\x1a\xab\x01\x20The\x20\ + google.com/business/answer/6397478\n\n\n\n\x03\x04\0\x01\x12\x03+\x08\ + \x15\n\xb9\x01\n\x04\x04\0\x02\0\x12\x030\x02\x15\x1a\xab\x01\x20The\x20\ schema\x20revision\x20of\x20the\x20`PostalAddress`.\x20This\x20must\x20b\ e\x20set\x20to\x200,\x20which\x20is\n\x20the\x20latest\x20revision.\n\n\ \x20All\x20new\x20revisions\x20**must**\x20be\x20backward\x20compatible\ - \x20with\x20old\x20revisions.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03/\x02\ - \x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03/\x08\x10\n\x0c\n\x05\x04\0\x02\ - \0\x03\x12\x03/\x13\x14\n\xbf\x02\n\x04\x04\0\x02\x01\x12\x036\x02\x19\ + \x20with\x20old\x20revisions.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x030\x02\ + \x07\n\x0c\n\x05\x04\0\x02\0\x01\x12\x030\x08\x10\n\x0c\n\x05\x04\0\x02\ + \0\x03\x12\x030\x13\x14\n\xbf\x02\n\x04\x04\0\x02\x01\x12\x037\x02\x19\ \x1a\xb1\x02\x20Required.\x20CLDR\x20region\x20code\x20of\x20the\x20coun\ try/region\x20of\x20the\x20address.\x20This\n\x20is\x20never\x20inferred\ \x20and\x20it\x20is\x20up\x20to\x20the\x20user\x20to\x20ensure\x20the\ \x20value\x20is\n\x20correct.\x20See\x20http://cldr.unicode.org/\x20and\ \n\x20http://www.unicode.org/cldr/charts/30/supplemental/territory_infor\ mation.html\n\x20for\x20details.\x20Example:\x20\"CH\"\x20for\x20Switzer\ - land.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x036\x02\x08\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x036\t\x14\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x036\x17\ - \x18\n\xd5\x04\n\x04\x04\0\x02\x02\x12\x03D\x02\x1b\x1a\xc7\x04\x20Optio\ + land.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x037\x02\x08\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x037\t\x14\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x037\x17\ + \x18\n\xd5\x04\n\x04\x04\0\x02\x02\x12\x03E\x02\x1b\x1a\xc7\x04\x20Optio\ nal.\x20BCP-47\x20language\x20code\x20of\x20the\x20contents\x20of\x20thi\ s\x20address\x20(if\n\x20known).\x20This\x20is\x20often\x20the\x20UI\x20\ language\x20of\x20the\x20input\x20form\x20or\x20is\x20expected\n\x20to\ @@ -670,17 +473,17 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20this\x20value\x20is\x20not\x20known,\x20it\x20should\x20be\x20omitte\ d\x20(rather\x20than\x20specifying\x20a\n\x20possibly\x20incorrect\x20de\ fault).\n\n\x20Examples:\x20\"zh-Hant\",\x20\"ja\",\x20\"ja-Latn\",\x20\ - \"en\".\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03D\x02\x08\n\x0c\n\x05\x04\ - \0\x02\x02\x01\x12\x03D\t\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03D\x19\ - \x1a\n\x80\x02\n\x04\x04\0\x02\x03\x12\x03J\x02\x19\x1a\xf2\x01\x20Optio\ + \"en\".\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03E\x02\x08\n\x0c\n\x05\x04\ + \0\x02\x02\x01\x12\x03E\t\x16\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03E\x19\ + \x1a\n\x80\x02\n\x04\x04\0\x02\x03\x12\x03K\x02\x19\x1a\xf2\x01\x20Optio\ nal.\x20Postal\x20code\x20of\x20the\x20address.\x20Not\x20all\x20countri\ es\x20use\x20or\x20require\n\x20postal\x20codes\x20to\x20be\x20present,\ \x20but\x20where\x20they\x20are\x20used,\x20they\x20may\x20trigger\n\x20\ additional\x20validation\x20with\x20other\x20parts\x20of\x20the\x20addre\ ss\x20(e.g.\x20state/zip\n\x20validation\x20in\x20the\x20U.S.A.).\n\n\ - \x0c\n\x05\x04\0\x02\x03\x05\x12\x03J\x02\x08\n\x0c\n\x05\x04\0\x02\x03\ - \x01\x12\x03J\t\x14\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03J\x17\x18\n\xf1\ - \x02\n\x04\x04\0\x02\x04\x12\x03Q\x02\x1a\x1a\xe3\x02\x20Optional.\x20Ad\ + \x0c\n\x05\x04\0\x02\x03\x05\x12\x03K\x02\x08\n\x0c\n\x05\x04\0\x02\x03\ + \x01\x12\x03K\t\x14\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03K\x17\x18\n\xf1\ + \x02\n\x04\x04\0\x02\x04\x12\x03R\x02\x1a\x1a\xe3\x02\x20Optional.\x20Ad\ ditional,\x20country-specific,\x20sorting\x20code.\x20This\x20is\x20not\ \x20used\n\x20in\x20most\x20regions.\x20Where\x20it\x20is\x20used,\x20th\ e\x20value\x20is\x20either\x20a\x20string\x20like\n\x20\"CEDEX\",\x20opt\ @@ -688,9 +491,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20or\x20just\x20a\x20number\n\x20alone,\x20representing\x20the\x20\"se\ ctor\x20code\"\x20(Jamaica),\x20\"delivery\x20area\x20indicator\"\n\x20(\ Malawi)\x20or\x20\"post\x20office\x20indicator\"\x20(e.g.\x20C\xc3\xb4te\ - \x20d'Ivoire).\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03Q\x02\x08\n\x0c\n\ - \x05\x04\0\x02\x04\x01\x12\x03Q\t\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ - \x03Q\x18\x19\n\xb7\x03\n\x04\x04\0\x02\x05\x12\x03Z\x02!\x1a\xa9\x03\ + \x20d'Ivoire).\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03R\x02\x08\n\x0c\n\ + \x05\x04\0\x02\x04\x01\x12\x03R\t\x15\n\x0c\n\x05\x04\0\x02\x04\x03\x12\ + \x03R\x18\x19\n\xb7\x03\n\x04\x04\0\x02\x05\x12\x03[\x02!\x1a\xa9\x03\ \x20Optional.\x20Highest\x20administrative\x20subdivision\x20which\x20is\ \x20used\x20for\x20postal\n\x20addresses\x20of\x20a\x20country\x20or\x20\ region.\n\x20For\x20example,\x20this\x20can\x20be\x20a\x20state,\x20a\ @@ -700,22 +503,22 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\"Catalonia\").\n\x20Many\x20countries\x20don't\x20use\x20an\x20admi\ nistrative\x20area\x20in\x20postal\x20addresses.\x20E.g.\n\x20in\x20Swit\ zerland\x20this\x20should\x20be\x20left\x20unpopulated.\n\n\x0c\n\x05\ - \x04\0\x02\x05\x05\x12\x03Z\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\ - \x03Z\t\x1c\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03Z\x1f\x20\n\x94\x02\n\ - \x04\x04\0\x02\x06\x12\x03`\x02\x16\x1a\x86\x02\x20Optional.\x20Generall\ + \x04\0\x02\x05\x05\x12\x03[\x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\ + \x03[\t\x1c\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03[\x1f\x20\n\x94\x02\n\ + \x04\x04\0\x02\x06\x12\x03a\x02\x16\x1a\x86\x02\x20Optional.\x20Generall\ y\x20refers\x20to\x20the\x20city/town\x20portion\x20of\x20the\x20address\ .\n\x20Examples:\x20US\x20city,\x20IT\x20comune,\x20UK\x20post\x20town.\ \n\x20In\x20regions\x20of\x20the\x20world\x20where\x20localities\x20are\ \x20not\x20well\x20defined\x20or\x20do\x20not\x20fit\n\x20into\x20this\ \x20structure\x20well,\x20leave\x20locality\x20empty\x20and\x20use\x20ad\ - dress_lines.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03`\x02\x08\n\x0c\n\ - \x05\x04\0\x02\x06\x01\x12\x03`\t\x11\n\x0c\n\x05\x04\0\x02\x06\x03\x12\ - \x03`\x14\x15\nr\n\x04\x04\0\x02\x07\x12\x03d\x02\x19\x1ae\x20Optional.\ + dress_lines.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\x03a\x02\x08\n\x0c\n\ + \x05\x04\0\x02\x06\x01\x12\x03a\t\x11\n\x0c\n\x05\x04\0\x02\x06\x03\x12\ + \x03a\x14\x15\nr\n\x04\x04\0\x02\x07\x12\x03e\x02\x19\x1ae\x20Optional.\ \x20Sublocality\x20of\x20the\x20address.\n\x20For\x20example,\x20this\ \x20can\x20be\x20neighborhoods,\x20boroughs,\x20districts.\n\n\x0c\n\x05\ - \x04\0\x02\x07\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ - \x03d\t\x14\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03d\x17\x18\n\xe0\t\n\x04\ - \x04\0\x02\x08\x12\x03|\x02$\x1a\xd2\t\x20Unstructured\x20address\x20lin\ + \x04\0\x02\x07\x05\x12\x03e\x02\x08\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ + \x03e\t\x14\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03e\x17\x18\n\xe0\t\n\x04\ + \x04\0\x02\x08\x12\x03}\x02$\x1a\xd2\t\x20Unstructured\x20address\x20lin\ es\x20describing\x20the\x20lower\x20levels\x20of\x20an\x20address.\n\n\ \x20Because\x20values\x20in\x20address_lines\x20do\x20not\x20have\x20typ\ e\x20information\x20and\x20may\n\x20sometimes\x20contain\x20multiple\x20\ @@ -741,30 +544,47 @@ static file_descriptor_proto_data: &'static [u8] = b"\ recommended\x20way\x20to\x20handle\x20completely\x20unstructured\n\x20ad\ dresses\x20(as\x20opposed\x20to\x20guessing\x20which\x20parts\x20of\x20t\ he\x20address\x20should\x20be\n\x20localities\x20or\x20administrative\ - \x20areas).\n\n\x0c\n\x05\x04\0\x02\x08\x04\x12\x03|\x02\n\n\x0c\n\x05\ - \x04\0\x02\x08\x05\x12\x03|\x0b\x11\n\x0c\n\x05\x04\0\x02\x08\x01\x12\ - \x03|\x12\x1f\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03|\"#\n\xbb\x01\n\x04\ - \x04\0\x02\t\x12\x04\x81\x01\x02\"\x1a\xac\x01\x20Optional.\x20The\x20re\ + \x20areas).\n\n\x0c\n\x05\x04\0\x02\x08\x04\x12\x03}\x02\n\n\x0c\n\x05\ + \x04\0\x02\x08\x05\x12\x03}\x0b\x11\n\x0c\n\x05\x04\0\x02\x08\x01\x12\ + \x03}\x12\x1f\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03}\"#\n\xbb\x01\n\x04\ + \x04\0\x02\t\x12\x04\x82\x01\x02\"\x1a\xac\x01\x20Optional.\x20The\x20re\ cipient\x20at\x20the\x20address.\n\x20This\x20field\x20may,\x20under\x20\ certain\x20circumstances,\x20contain\x20multiline\x20information.\n\x20F\ or\x20example,\x20it\x20might\x20contain\x20\"care\x20of\"\x20informatio\ - n.\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04\x81\x01\x02\n\n\r\n\x05\x04\0\x02\ - \t\x05\x12\x04\x81\x01\x0b\x11\n\r\n\x05\x04\0\x02\t\x01\x12\x04\x81\x01\ - \x12\x1c\n\r\n\x05\x04\0\x02\t\x03\x12\x04\x81\x01\x1f!\nF\n\x04\x04\0\ - \x02\n\x12\x04\x84\x01\x02\x1b\x1a8\x20Optional.\x20The\x20name\x20of\ + n.\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04\x82\x01\x02\n\n\r\n\x05\x04\0\x02\ + \t\x05\x12\x04\x82\x01\x0b\x11\n\r\n\x05\x04\0\x02\t\x01\x12\x04\x82\x01\ + \x12\x1c\n\r\n\x05\x04\0\x02\t\x03\x12\x04\x82\x01\x1f!\nF\n\x04\x04\0\ + \x02\n\x12\x04\x85\x01\x02\x1b\x1a8\x20Optional.\x20The\x20name\x20of\ \x20the\x20organization\x20at\x20the\x20address.\n\n\r\n\x05\x04\0\x02\n\ - \x05\x12\x04\x84\x01\x02\x08\n\r\n\x05\x04\0\x02\n\x01\x12\x04\x84\x01\t\ - \x15\n\r\n\x05\x04\0\x02\n\x03\x12\x04\x84\x01\x18\x1ab\x06proto3\ + \x05\x12\x04\x85\x01\x02\x08\n\r\n\x05\x04\0\x02\n\x01\x12\x04\x85\x01\t\ + \x15\n\r\n\x05\x04\0\x02\n\x03\x12\x04\x85\x01\x18\x1ab\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(PostalAddress::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/quaternion.rs b/googleapis-raw/src/type/quaternion.rs index 1276457..cbb3704 100644 --- a/googleapis-raw/src/type/quaternion.rs +++ b/googleapis-raw/src/type/quaternion.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,34 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/quaternion.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +// @@protoc_insertion_point(message:google.type.Quaternion) +#[derive(PartialEq,Clone,Default,Debug)] pub struct Quaternion { // message fields + /// The x component. + // @@protoc_insertion_point(field:google.type.Quaternion.x) pub x: f64, + /// The y component. + // @@protoc_insertion_point(field:google.type.Quaternion.y) pub y: f64, + /// The z component. + // @@protoc_insertion_point(field:google.type.Quaternion.z) pub z: f64, + /// The scalar component. + // @@protoc_insertion_point(field:google.type.Quaternion.w) pub w: f64, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.Quaternion.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Quaternion { @@ -46,106 +57,61 @@ impl Quaternion { ::std::default::Default::default() } - // double x = 1; - - - pub fn get_x(&self) -> f64 { - self.x - } - pub fn clear_x(&mut self) { - self.x = 0.; - } - - // Param is passed by value, moved - pub fn set_x(&mut self, v: f64) { - self.x = v; - } - - // double y = 2; - - - pub fn get_y(&self) -> f64 { - self.y - } - pub fn clear_y(&mut self) { - self.y = 0.; - } - - // Param is passed by value, moved - pub fn set_y(&mut self, v: f64) { - self.y = v; - } - - // double z = 3; - - - pub fn get_z(&self) -> f64 { - self.z - } - pub fn clear_z(&mut self) { - self.z = 0.; - } - - // Param is passed by value, moved - pub fn set_z(&mut self, v: f64) { - self.z = v; - } - - // double w = 4; - - - pub fn get_w(&self) -> f64 { - self.w - } - pub fn clear_w(&mut self) { - self.w = 0.; - } - - // Param is passed by value, moved - pub fn set_w(&mut self, v: f64) { - self.w = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "x", + |m: &Quaternion| { &m.x }, + |m: &mut Quaternion| { &mut m.x }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "y", + |m: &Quaternion| { &m.y }, + |m: &mut Quaternion| { &mut m.y }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "z", + |m: &Quaternion| { &m.z }, + |m: &mut Quaternion| { &mut m.z }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "w", + |m: &Quaternion| { &m.w }, + |m: &mut Quaternion| { &mut m.w }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Quaternion", + fields, + oneofs, + ) } } impl ::protobuf::Message for Quaternion { + const NAME: &'static str = "Quaternion"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.x = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 9 => { + self.x = is.read_double()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.y = tmp; + 17 => { + self.y = is.read_double()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.z = tmp; + 25 => { + self.z = is.read_double()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeFixed64 { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_double()?; - self.w = tmp; + 33 => { + self.w = is.read_double()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -154,26 +120,26 @@ impl ::protobuf::Message for Quaternion { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.x != 0. { - my_size += 9; + my_size += 1 + 8; } if self.y != 0. { - my_size += 9; + my_size += 1 + 8; } if self.z != 0. { - my_size += 9; + my_size += 1 + 8; } if self.w != 0. { - my_size += 9; + my_size += 1 + 8; } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.x != 0. { os.write_double(1, self.x)?; } @@ -186,98 +152,57 @@ impl ::protobuf::Message for Quaternion { if self.w != 0. { os.write_double(4, self.w)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> Quaternion { Quaternion::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "x", - |m: &Quaternion| { &m.x }, - |m: &mut Quaternion| { &mut m.x }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "y", - |m: &Quaternion| { &m.y }, - |m: &mut Quaternion| { &mut m.y }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "z", - |m: &Quaternion| { &m.z }, - |m: &mut Quaternion| { &mut m.z }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeDouble>( - "w", - |m: &Quaternion| { &m.w }, - |m: &mut Quaternion| { &mut m.w }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Quaternion", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.x = 0.; + self.y = 0.; + self.z = 0.; + self.w = 0.; + self.special_fields.clear(); } fn default_instance() -> &'static Quaternion { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(Quaternion::new) + static instance: Quaternion = Quaternion { + x: 0., + y: 0., + z: 0., + w: 0., + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for Quaternion { - fn clear(&mut self) { - self.x = 0.; - self.y = 0.; - self.z = 0.; - self.w = 0.; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for Quaternion { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Quaternion").unwrap()).clone() } } -impl ::std::fmt::Debug for Quaternion { +impl ::std::fmt::Display for Quaternion { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Quaternion { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -286,28 +211,28 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03\x20\x01(\x01R\x01z\x12\x0c\n\x01w\ \x18\x04\x20\x01(\x01R\x01wBo\n\x0fcom.google.typeB\x0fQuaternionProtoP\ \x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\ - \xf8\x01\x01\xa2\x02\x03GTPJ\xb6\x1c\n\x06\x12\x04\x0e\0]\x01\n\xbc\x04\ - \n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202021\x20Google\x20\ - LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x20\ - 2.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fi\ - le\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20\ - may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x14\n\x08\n\x01\x08\x12\ - \x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\x01\x08\x12\ - \x03\x13\0W\n\t\n\x02\x08\x0b\x12\x03\x13\0W\n\x08\n\x01\x08\x12\x03\x14\ - \0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\00\n\t\ - \n\x02\x08\x08\x12\x03\x15\00\n\x08\n\x01\x08\x12\x03\x16\0(\n\t\n\x02\ - \x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\x12\x03\x17\0!\n\t\n\x02\x08$\ - \x12\x03\x17\0!\n\xa7\x14\n\x02\x04\0\x12\x04Q\0]\x01\x1a\x9a\x14\x20A\ - \x20quaternion\x20is\x20defined\x20as\x20the\x20quotient\x20of\x20two\ - \x20directed\x20lines\x20in\x20a\n\x20three-dimensional\x20space\x20or\ + \xf8\x01\x01\xa2\x02\x03GTPJ\xb8\x1c\n\x06\x12\x04\x0f\0^\x01\n\xbe\x04\ + \n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20\ + LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ + \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ + ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ + \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ + \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ + riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ + \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ + RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ + \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x14\n\x08\n\x01\ + \x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\x01\ + \x08\x12\x03\x14\0W\n\t\n\x02\x08\x0b\x12\x03\x14\0W\n\x08\n\x01\x08\x12\ + \x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\ + \00\n\t\n\x02\x08\x08\x12\x03\x16\00\n\x08\n\x01\x08\x12\x03\x17\0(\n\t\ + \n\x02\x08\x01\x12\x03\x17\0(\n\x08\n\x01\x08\x12\x03\x18\0!\n\t\n\x02\ + \x08$\x12\x03\x18\0!\n\xa7\x14\n\x02\x04\0\x12\x04R\0^\x01\x1a\x9a\x14\ + \x20A\x20quaternion\x20is\x20defined\x20as\x20the\x20quotient\x20of\x20t\ + wo\x20directed\x20lines\x20in\x20a\n\x20three-dimensional\x20space\x20or\ \x20equivalently\x20as\x20the\x20quotient\x20of\x20two\x20Euclidean\n\ \x20vectors\x20(https://en.wikipedia.org/wiki/Quaternion).\n\n\x20Quater\ nions\x20are\x20often\x20used\x20in\x20calculations\x20involving\x20thre\ @@ -361,29 +286,46 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20a\x20unique\x20representation.\x20It\x20is\x20thus\x20recommended\ \x20that\x20`w`\x20be\n\x20kept\x20positive,\x20which\x20can\x20be\x20ac\ hieved\x20by\x20changing\x20all\x20the\x20signs\x20when\x20`w`\x20is\n\ - \x20negative.\n\n\n\n\n\x03\x04\0\x01\x12\x03Q\x08\x12\n\x1f\n\x04\x04\0\ - \x02\0\x12\x03S\x02\x0f\x1a\x12\x20The\x20x\x20component.\n\n\x0c\n\x05\ - \x04\0\x02\0\x05\x12\x03S\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03S\t\ - \n\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03S\r\x0e\n\x1f\n\x04\x04\0\x02\x01\ - \x12\x03V\x02\x0f\x1a\x12\x20The\x20y\x20component.\n\n\x0c\n\x05\x04\0\ - \x02\x01\x05\x12\x03V\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03V\t\n\ - \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03V\r\x0e\n\x1f\n\x04\x04\0\x02\x02\ - \x12\x03Y\x02\x0f\x1a\x12\x20The\x20z\x20component.\n\n\x0c\n\x05\x04\0\ - \x02\x02\x05\x12\x03Y\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03Y\t\n\ - \n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03Y\r\x0e\n$\n\x04\x04\0\x02\x03\x12\ - \x03\\\x02\x0f\x1a\x17\x20The\x20scalar\x20component.\n\n\x0c\n\x05\x04\ - \0\x02\x03\x05\x12\x03\\\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\\\ - \t\n\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\\\r\x0eb\x06proto3\ + \x20negative.\n\n\n\n\n\x03\x04\0\x01\x12\x03R\x08\x12\n\x1f\n\x04\x04\0\ + \x02\0\x12\x03T\x02\x0f\x1a\x12\x20The\x20x\x20component.\n\n\x0c\n\x05\ + \x04\0\x02\0\x05\x12\x03T\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03T\t\ + \n\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03T\r\x0e\n\x1f\n\x04\x04\0\x02\x01\ + \x12\x03W\x02\x0f\x1a\x12\x20The\x20y\x20component.\n\n\x0c\n\x05\x04\0\ + \x02\x01\x05\x12\x03W\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03W\t\n\ + \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03W\r\x0e\n\x1f\n\x04\x04\0\x02\x02\ + \x12\x03Z\x02\x0f\x1a\x12\x20The\x20z\x20component.\n\n\x0c\n\x05\x04\0\ + \x02\x02\x05\x12\x03Z\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03Z\t\n\ + \n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03Z\r\x0e\n$\n\x04\x04\0\x02\x03\x12\ + \x03]\x02\x0f\x1a\x17\x20The\x20scalar\x20component.\n\n\x0c\n\x05\x04\0\ + \x02\x03\x05\x12\x03]\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03]\t\n\ + \n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03]\r\x0eb\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(Quaternion::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis-raw/src/type/timeofday.rs b/googleapis-raw/src/type/timeofday.rs index 92e707e..8385158 100644 --- a/googleapis-raw/src/type/timeofday.rs +++ b/googleapis-raw/src/type/timeofday.rs @@ -1,4 +1,5 @@ -// This file is generated by rust-protobuf 2.28.0. Do not edit +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -15,24 +16,39 @@ #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] -#![allow(unused_imports)] #![allow(unused_results)] +#![allow(unused_mut)] + //! Generated file from `google/type/timeofday.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_28_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; -#[derive(PartialEq,Clone,Default)] +/// Represents a time of day. The date and time zone are either not significant +/// or are specified elsewhere. An API may choose to allow leap seconds. Related +/// types are [google.type.Date][google.type.Date] and `google.protobuf.Timestamp`. +// @@protoc_insertion_point(message:google.type.TimeOfDay) +#[derive(PartialEq,Clone,Default,Debug)] pub struct TimeOfDay { // message fields + /// Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + /// to allow the value "24:00:00" for scenarios like business closing time. + // @@protoc_insertion_point(field:google.type.TimeOfDay.hours) pub hours: i32, + /// Minutes of hour of day. Must be from 0 to 59. + // @@protoc_insertion_point(field:google.type.TimeOfDay.minutes) pub minutes: i32, + /// Seconds of minutes of the time. Must normally be from 0 to 59. An API may + /// allow the value 60 if it allows leap-seconds. + // @@protoc_insertion_point(field:google.type.TimeOfDay.seconds) pub seconds: i32, + /// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + // @@protoc_insertion_point(field:google.type.TimeOfDay.nanos) pub nanos: i32, // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, + // @@protoc_insertion_point(special_field:google.type.TimeOfDay.special_fields) + pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a TimeOfDay { @@ -46,106 +62,61 @@ impl TimeOfDay { ::std::default::Default::default() } - // int32 hours = 1; - - - pub fn get_hours(&self) -> i32 { - self.hours - } - pub fn clear_hours(&mut self) { - self.hours = 0; - } - - // Param is passed by value, moved - pub fn set_hours(&mut self, v: i32) { - self.hours = v; - } - - // int32 minutes = 2; - - - pub fn get_minutes(&self) -> i32 { - self.minutes - } - pub fn clear_minutes(&mut self) { - self.minutes = 0; - } - - // Param is passed by value, moved - pub fn set_minutes(&mut self, v: i32) { - self.minutes = v; - } - - // int32 seconds = 3; - - - pub fn get_seconds(&self) -> i32 { - self.seconds - } - pub fn clear_seconds(&mut self) { - self.seconds = 0; - } - - // Param is passed by value, moved - pub fn set_seconds(&mut self, v: i32) { - self.seconds = v; - } - - // int32 nanos = 4; - - - pub fn get_nanos(&self) -> i32 { - self.nanos - } - pub fn clear_nanos(&mut self) { - self.nanos = 0; - } - - // Param is passed by value, moved - pub fn set_nanos(&mut self, v: i32) { - self.nanos = v; + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "hours", + |m: &TimeOfDay| { &m.hours }, + |m: &mut TimeOfDay| { &mut m.hours }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "minutes", + |m: &TimeOfDay| { &m.minutes }, + |m: &mut TimeOfDay| { &mut m.minutes }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "seconds", + |m: &TimeOfDay| { &m.seconds }, + |m: &mut TimeOfDay| { &mut m.seconds }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "nanos", + |m: &TimeOfDay| { &m.nanos }, + |m: &mut TimeOfDay| { &mut m.nanos }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TimeOfDay", + fields, + oneofs, + ) } } impl ::protobuf::Message for TimeOfDay { + const NAME: &'static str = "TimeOfDay"; + fn is_initialized(&self) -> bool { true } - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.hours = tmp; + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.hours = is.read_int32()?; }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.minutes = tmp; + 16 => { + self.minutes = is.read_int32()?; }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.seconds = tmp; + 24 => { + self.seconds = is.read_int32()?; }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.nanos = tmp; + 32 => { + self.nanos = is.read_int32()?; }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } @@ -154,26 +125,26 @@ impl ::protobuf::Message for TimeOfDay { // Compute sizes of nested messages #[allow(unused_variables)] - fn compute_size(&self) -> u32 { + fn compute_size(&self) -> u64 { let mut my_size = 0; if self.hours != 0 { - my_size += ::protobuf::rt::value_size(1, self.hours, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(1, self.hours); } if self.minutes != 0 { - my_size += ::protobuf::rt::value_size(2, self.minutes, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(2, self.minutes); } if self.seconds != 0 { - my_size += ::protobuf::rt::value_size(3, self.seconds, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(3, self.seconds); } if self.nanos != 0 { - my_size += ::protobuf::rt::value_size(4, self.nanos, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::int32_size(4, self.nanos); } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); my_size } - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.hours != 0 { os.write_int32(1, self.hours)?; } @@ -186,98 +157,57 @@ impl ::protobuf::Message for TimeOfDay { if self.nanos != 0 { os.write_int32(4, self.nanos)?; } - os.write_unknown_fields(self.get_unknown_fields())?; + os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields } - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields } fn new() -> TimeOfDay { TimeOfDay::new() } - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT; - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "hours", - |m: &TimeOfDay| { &m.hours }, - |m: &mut TimeOfDay| { &mut m.hours }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "minutes", - |m: &TimeOfDay| { &m.minutes }, - |m: &mut TimeOfDay| { &mut m.minutes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "seconds", - |m: &TimeOfDay| { &m.seconds }, - |m: &mut TimeOfDay| { &mut m.seconds }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "nanos", - |m: &TimeOfDay| { &m.nanos }, - |m: &mut TimeOfDay| { &mut m.nanos }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TimeOfDay", - fields, - file_descriptor_proto() - ) - }) + fn clear(&mut self) { + self.hours = 0; + self.minutes = 0; + self.seconds = 0; + self.nanos = 0; + self.special_fields.clear(); } fn default_instance() -> &'static TimeOfDay { - static instance: ::protobuf::rt::LazyV2 = ::protobuf::rt::LazyV2::INIT; - instance.get(TimeOfDay::new) + static instance: TimeOfDay = TimeOfDay { + hours: 0, + minutes: 0, + seconds: 0, + nanos: 0, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance } } -impl ::protobuf::Clear for TimeOfDay { - fn clear(&mut self) { - self.hours = 0; - self.minutes = 0; - self.seconds = 0; - self.nanos = 0; - self.unknown_fields.clear(); +impl ::protobuf::MessageFull for TimeOfDay { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TimeOfDay").unwrap()).clone() } } -impl ::std::fmt::Debug for TimeOfDay { +impl ::std::fmt::Display for TimeOfDay { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for TimeOfDay { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ @@ -286,11 +216,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x02\x20\x01(\x05R\x07minutes\x12\x18\n\x07seconds\x18\x03\x20\x01(\x05R\ \x07seconds\x12\x14\n\x05nanos\x18\x04\x20\x01(\x05R\x05nanosBl\n\x0fcom\ .google.typeB\x0eTimeOfDayProtoP\x01Z>google.golang.org/genproto/googlea\ - pis/type/timeofday;timeofday\xf8\x01\x01\xa2\x02\x03GTPJ\xc1\x0c\n\x06\ - \x12\x04\x0e\0+\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ - pyright\x202021\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ - he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ - y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + pis/type/timeofday;timeofday\xf8\x01\x01\xa2\x02\x03GTPJ\xc2\x0c\n\x06\ + \x12\x04\x0f\0+\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Co\ + pyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apa\ + che\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20m\ + ay\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ @@ -299,19 +229,19 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ - \x10\0\x14\n\x08\n\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ - \x12\0\x1f\n\x08\n\x01\x08\x12\x03\x13\0U\n\t\n\x02\x08\x0b\x12\x03\x13\ - \0U\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\ - \x08\n\x01\x08\x12\x03\x15\0/\n\t\n\x02\x08\x08\x12\x03\x15\0/\n\x08\n\ - \x01\x08\x12\x03\x16\0(\n\t\n\x02\x08\x01\x12\x03\x16\0(\n\x08\n\x01\x08\ - \x12\x03\x17\0!\n\t\n\x02\x08$\x12\x03\x17\0!\n\xfa\x01\n\x02\x04\0\x12\ - \x04\x1d\0+\x01\x1a\xed\x01\x20Represents\x20a\x20time\x20of\x20day.\x20\ + \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ + \x11\0\x14\n\x08\n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\ + \x13\0\x1f\n\x08\n\x01\x08\x12\x03\x14\0U\n\t\n\x02\x08\x0b\x12\x03\x14\ + \0U\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\ + \x08\n\x01\x08\x12\x03\x16\0/\n\t\n\x02\x08\x08\x12\x03\x16\0/\n\x08\n\ + \x01\x08\x12\x03\x17\0(\n\t\n\x02\x08\x01\x12\x03\x17\0(\n\x08\n\x01\x08\ + \x12\x03\x18\0!\n\t\n\x02\x08$\x12\x03\x18\0!\n\xf9\x01\n\x02\x04\0\x12\ + \x04\x1d\0+\x01\x1a\xec\x01\x20Represents\x20a\x20time\x20of\x20day.\x20\ The\x20date\x20and\x20time\x20zone\x20are\x20either\x20not\x20significan\ t\n\x20or\x20are\x20specified\x20elsewhere.\x20An\x20API\x20may\x20choos\ e\x20to\x20allow\x20leap\x20seconds.\x20Related\n\x20types\x20are\x20[go\ - ogle.type.Date][google.type.Date]\x20and\n\x20`google.protobuf.Timestamp\ - `.\n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\x11\n\xa2\x01\n\x04\x04\0\x02\0\ + ogle.type.Date][google.type.Date]\x20and\x20`google.protobuf.Timestamp`.\ + \n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\x11\n\xa2\x01\n\x04\x04\0\x02\0\ \x12\x03\x20\x02\x12\x1a\x94\x01\x20Hours\x20of\x20day\x20in\x2024\x20ho\ ur\x20format.\x20Should\x20be\x20from\x200\x20to\x2023.\x20An\x20API\x20\ may\x20choose\n\x20to\x20allow\x20the\x20value\x20\"24:00:00\"\x20for\ @@ -334,14 +264,31 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x11b\x06proto3\ "; -static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) } -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(1); + messages.push(TimeOfDay::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) } diff --git a/googleapis/Cargo.toml b/googleapis/Cargo.toml index d30d3a9..3bb21ae 100644 --- a/googleapis/Cargo.toml +++ b/googleapis/Cargo.toml @@ -26,7 +26,7 @@ description = "A set of client libraries to interact with various Google Cloud P [dependencies] futures.workspace = true grpcio = { workspace = true, features = ["_secure"] } -google-cloud-rust-raw = { version = "0.16.1", path = "../googleapis-raw", features = [ +google-cloud-rust-raw = { version = "0.17.0", path = "../googleapis-raw", features = [ "bigtable", "pubsub", "spanner", From 5dcd0167d1d9edecb9ac4c11092e1eb268415b33 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Tue, 6 Feb 2024 13:53:39 -0800 Subject: [PATCH 2/8] f version fixups for example files --- .../examples/bigtable-helloworld.rs | 115 +++++++++++------- googleapis-raw/examples/spanner-db.rs | 6 +- googleapis-raw/examples/spanner-query.rs | 2 +- 3 files changed, 76 insertions(+), 47 deletions(-) diff --git a/googleapis-raw/examples/bigtable-helloworld.rs b/googleapis-raw/examples/bigtable-helloworld.rs index 46a9bcd..8761938 100644 --- a/googleapis-raw/examples/bigtable-helloworld.rs +++ b/googleapis-raw/examples/bigtable-helloworld.rs @@ -17,6 +17,7 @@ use std::sync::Arc; use std::time::{SystemTime, UNIX_EPOCH}; use futures::executor::block_on; +// use futures::StreamExt; use google_cloud_rust_raw::bigtable::admin::v2::{ bigtable_instance_admin::GetClusterRequest, bigtable_instance_admin_grpc::BigtableInstanceAdminClient, @@ -25,12 +26,17 @@ use google_cloud_rust_raw::bigtable::admin::v2::{ instance::Cluster, table::ColumnFamily, table::GcRule, table::Table, }; use google_cloud_rust_raw::bigtable::v2::{ - bigtable::MutateRowsRequest, bigtable::MutateRowsRequest_Entry, bigtable_grpc::BigtableClient, - data::Mutation, data::Mutation_SetCell, + bigtable::mutate_rows_request::Entry, data::mutation::SetCell, data::Mutation, }; +/* +use google_cloud_rust_raw::bigtable::v2::{ + bigtable::MutateRowResponse, bigtable::MutateRowsRequest, bigtable_grpc::BigtableClient, +}; +*/ use google_cloud_rust_raw::empty::Empty; use grpcio::{Channel, ChannelBuilder, ChannelCredentials, ClientUnaryReceiver, EnvBuilder}; -use protobuf::well_known_types::Duration; +use protobuf::well_known_types::duration::Duration; +use protobuf::MessageField; #[allow(dead_code)] fn timestamp() -> u128 { @@ -64,8 +70,10 @@ fn get_cluster( cluster_id: &str, ) -> ::grpcio::Result { println!("Get cluster information"); - let mut request = GetClusterRequest::new(); - request.set_name(cluster_id.to_string()); + let request = GetClusterRequest { + name: cluster_id.to_string(), + ..Default::default() + }; client.get_cluster(&request) } @@ -73,12 +81,14 @@ fn get_cluster( /// fn list_tables(client: &BigtableTableAdminClient, instance_id: &str) { println!("List all existing tables"); - let mut request = ListTablesRequest::new(); - request.set_parent(instance_id.to_string()); + let request = ListTablesRequest { + parent: instance_id.to_string(), + ..Default::default() + }; match client.list_tables(&request) { Ok(response) => { response - .get_tables() + .tables .iter() .for_each(|table| println!(" table: {:?}", table)); } @@ -95,10 +105,12 @@ fn create_table( table: Table, ) -> ::grpcio::Result
{ println!("Creating table {}", table_name); - let mut request = CreateTableRequest::new(); - request.set_parent(instance_id.to_string()); - request.set_table(table); - request.set_table_id("hello-world".to_string()); + let request = CreateTableRequest { + parent: instance_id.to_string(), + table: MessageField::some(table), + table_id: "hello-world".to_string(), + ..Default::default() + }; client.create_table(&request) } @@ -108,8 +120,10 @@ fn delete_table_async( table_name: &str, ) -> grpcio::Result> { println!("Deleting the {} table", table_name); - let mut request = DeleteTableRequest::new(); - request.set_name(table_name.to_string()); + let request = DeleteTableRequest { + name: table_name.to_string(), + ..Default::default() + }; client.delete_table_async(&request) } @@ -122,8 +136,6 @@ async fn async_main() { let cluster_id = String::from( "projects/mozilla-rust-sdk-dev/instances/mozilla-rust-sdk/clusters/mozilla-rust-sdk-c1", ); - // common table endpoint - let endpoint = "bigtable.googleapis.com"; // Google Cloud configuration. let admin_endpoint = "bigtableadmin.googleapis.com"; // The table name @@ -134,10 +146,10 @@ async fn async_main() { // Create a Bigtable client. let channel = connect(admin_endpoint); - let client = BigtableInstanceAdminClient::new(channel.clone()); + let admin_client = BigtableInstanceAdminClient::new(channel.clone()); // display cluster information - let cluster = get_cluster(&client, &cluster_id).unwrap(); + let cluster = get_cluster(&admin_client, &cluster_id).unwrap(); dbg!(cluster); // create admin client for tables @@ -147,17 +159,23 @@ async fn async_main() { list_tables(&admin_client, &instance_id); // create a new table with a custom column family / gc rule - let mut duration = Duration::new(); - duration.set_seconds(60 * 60 * 24 * 5); + let duration = Duration { + seconds: 60 * 60 * 24 * 5, + ..Default::default() + }; let mut gc_rule = GcRule::new(); gc_rule.set_max_num_versions(2); gc_rule.set_max_age(duration); - let mut column_family = ColumnFamily::new(); - column_family.set_gc_rule(gc_rule); + let column_family = ColumnFamily { + gc_rule: MessageField::some(gc_rule), + ..Default::default() + }; let mut hash_map = HashMap::new(); hash_map.insert(column_family_id.to_string(), column_family); - let mut table = Table::new(); - table.set_column_families(hash_map); + let table = Table { + column_families: hash_map, + ..Default::default() + }; match create_table(&admin_client, &instance_id, &table_name, table) { Ok(table) => println!(" table {:?} created", table), Err(error) => println!(" failed to created table: {}", error), @@ -172,38 +190,45 @@ async fn async_main() { for (i, greeting) in greetings.iter().enumerate() { let row_key = format!("greeting{}", i); - let mut set_cell = Mutation_SetCell::new(); - set_cell.set_column_qualifier(column.to_string().into_bytes()); - set_cell.set_timestamp_micros(-1); - set_cell.set_value(greeting.to_string().into_bytes()); - set_cell.set_family_name(column_family_id.to_string()); + let set_cell = SetCell { + column_qualifier: column.to_string().into_bytes(), + timestamp_micros: -1, + value: greeting.to_string().into_bytes(), + family_name: column_family_id.to_string(), + ..Default::default() + }; let mut mutation = Mutation::new(); mutation.set_set_cell(set_cell); - let mut request = MutateRowsRequest_Entry::new(); - request.set_row_key(row_key.into_bytes()); - request.set_mutations(RepeatedField::from_vec(vec![mutation])); + let entry = Entry { + row_key: row_key.into_bytes(), + mutations: vec![mutation], + ..Default::default() + }; - mutation_requests.push(request); + mutation_requests.push(entry); } + // TODO:: fix this.admin_client + // `.collect()` needs a type. + // apply changes and check responses + /* let channel = connect(endpoint); - let _client = BigtableClient::new(channel.clone()); - let mut request = MutateRowsRequest::new(); - request.set_table_name(table_name.to_string()); - request.set_entries(RepeatedField::from_vec(mutation_requests)); + let request = MutateRowsRequest { + table_name: table_name.to_string(), + entries: mutation_requests, + ..Default::default() + }; - /* - TODO:: fix this.admin_client - `.collect()` needs a type. - // apply changes and check responses + let client = BigtableClient::new(channel.clone()); let response = client - .mutate_rows(&request).unwrap() - .collect() - .into_future() - .wait().unwrap(); + .mutate_rows(&request) + .unwrap() + .collect::>>() + .await + .unwrap(); for response in response.iter() { for entry in response.get_entries().iter() { let status = entry.get_status(); diff --git a/googleapis-raw/examples/spanner-db.rs b/googleapis-raw/examples/spanner-db.rs index 9a4008a..31221ea 100644 --- a/googleapis-raw/examples/spanner-db.rs +++ b/googleapis-raw/examples/spanner-db.rs @@ -252,13 +252,17 @@ fn main() -> Result<(), Box> { // create a suitable mutation with all values println!("Preparing write mutation to add singers"); + /* let mut mutation_write = Mutation_Write::new(); mutation_write.set_table("Singers".to_string()); mutation_write.set_columns(RepeatedField::from_vec(columns)); mutation_write.set_values(RepeatedField::from_vec(list_values)); println!("Mutation write object"); dbg!(mutation_write.clone()); - + */ + let mut mutation =Mutation::new(); + mutation.set_table("Singers".to_string()); + mutation. // finally commit to database println!("Commit data to database {}", database_name); let mut commit = CommitRequest::new(); diff --git a/googleapis-raw/examples/spanner-query.rs b/googleapis-raw/examples/spanner-query.rs index 6496635..74c7c6b 100644 --- a/googleapis-raw/examples/spanner-query.rs +++ b/googleapis-raw/examples/spanner-query.rs @@ -52,7 +52,7 @@ async fn async_main() { // Prepare a SQL command to execute. let mut req = ExecuteSqlRequest::new(); - req.session = session.get_name().to_string(); + req.session = session.name; req.sql = "select * from planets".to_string(); // Execute the command synchronously. From 408c04a8db4f72985139c38d16b189d85cfc84bb Mon Sep 17 00:00:00 2001 From: jrconlin Date: Tue, 6 Feb 2024 14:38:00 -0800 Subject: [PATCH 3/8] f updates --- googleapis-raw/mod.rs | 2 +- .../src/api/servicecontrol/v1/mod.rs | 1 - .../v1/quota_controller_grpc.rs | 71 +++++-------------- .../src/api/servicemanagement/v1/mod.rs | 1 - googleapis-raw/src/cloud/orgpolicy/v2/mod.rs | 4 -- .../cloud/osconfig/agentendpoint/v1/mod.rs | 1 - .../src/cloud/osconfig/v1alpha/mod.rs | 4 -- googleapis-raw/src/lib.rs | 6 +- 8 files changed, 20 insertions(+), 70 deletions(-) diff --git a/googleapis-raw/mod.rs b/googleapis-raw/mod.rs index 584f5a7..7c6e106 100644 --- a/googleapis-raw/mod.rs +++ b/googleapis-raw/mod.rs @@ -1,3 +1,3 @@ pub mod examples; -pub mod grpc; +// pub mod grpc; pub mod src; diff --git a/googleapis-raw/src/api/servicecontrol/v1/mod.rs b/googleapis-raw/src/api/servicecontrol/v1/mod.rs index 5e2c580..4b672b6 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/mod.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/mod.rs @@ -1,5 +1,4 @@ // @generated - pub(crate) use crate::{ api::annotations, logging::r#type::log_severity, r#type::money, rpc::status, }; diff --git a/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs b/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs index 5dc815d..41705ef 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/quota_controller_grpc.rs @@ -4,6 +4,7 @@ // https://github.com/Manishearth/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] + #![allow(box_pointers)] #![allow(dead_code)] #![allow(missing_docs)] @@ -15,20 +16,11 @@ #![allow(unused_imports)] #![allow(unused_results)] -const METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA: ::grpcio::Method< - super::quota_controller::AllocateQuotaRequest, - super::quota_controller::AllocateQuotaResponse, -> = ::grpcio::Method { +const METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA: ::grpcio::Method = ::grpcio::Method { ty: ::grpcio::MethodType::Unary, name: "/google.api.servicecontrol.v1.QuotaController/AllocateQuota", - req_mar: ::grpcio::Marshaller { - ser: ::grpcio::pb_ser, - de: ::grpcio::pb_de, - }, - resp_mar: ::grpcio::Marshaller { - ser: ::grpcio::pb_ser, - de: ::grpcio::pb_de, - }, + req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, + resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de }, }; #[derive(Clone)] @@ -43,68 +35,37 @@ impl QuotaControllerClient { } } - pub fn allocate_quota_opt( - &self, - req: &super::quota_controller::AllocateQuotaRequest, - opt: ::grpcio::CallOption, - ) -> ::grpcio::Result { - self.client - .unary_call(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) + pub fn allocate_quota_opt(&self, req: &super::quota_controller::AllocateQuotaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result { + self.client.unary_call(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) } - pub fn allocate_quota( - &self, - req: &super::quota_controller::AllocateQuotaRequest, - ) -> ::grpcio::Result { + pub fn allocate_quota(&self, req: &super::quota_controller::AllocateQuotaRequest) -> ::grpcio::Result { self.allocate_quota_opt(req, ::grpcio::CallOption::default()) } - pub fn allocate_quota_async_opt( - &self, - req: &super::quota_controller::AllocateQuotaRequest, - opt: ::grpcio::CallOption, - ) -> ::grpcio::Result< - ::grpcio::ClientUnaryReceiver, - > { - self.client - .unary_call_async(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) + pub fn allocate_quota_async_opt(&self, req: &super::quota_controller::AllocateQuotaRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { + self.client.unary_call_async(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, req, opt) } - pub fn allocate_quota_async( - &self, - req: &super::quota_controller::AllocateQuotaRequest, - ) -> ::grpcio::Result< - ::grpcio::ClientUnaryReceiver, - > { + pub fn allocate_quota_async(&self, req: &super::quota_controller::AllocateQuotaRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver> { self.allocate_quota_async_opt(req, ::grpcio::CallOption::default()) } - pub fn spawn(&self, f: F) - where - F: ::std::future::Future + Send + 'static, - { + pub fn spawn(&self, f: F) where F: ::std::future::Future + Send + 'static { self.client.spawn(f) } } pub trait QuotaController { - fn allocate_quota( - &mut self, - ctx: ::grpcio::RpcContext, - _req: super::quota_controller::AllocateQuotaRequest, - sink: ::grpcio::UnarySink, - ) { + fn allocate_quota(&mut self, ctx: ::grpcio::RpcContext, _req: super::quota_controller::AllocateQuotaRequest, sink: ::grpcio::UnarySink) { grpcio::unimplemented_call!(ctx, sink) } } -pub fn create_quota_controller( - s: S, -) -> ::grpcio::Service { +pub fn create_quota_controller(s: S) -> ::grpcio::Service { let mut builder = ::grpcio::ServiceBuilder::new(); let mut instance = s; - builder = builder.add_unary_handler( - &METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, - move |ctx, req, resp| instance.allocate_quota(ctx, req, resp), - ); + builder = builder.add_unary_handler(&METHOD_QUOTA_CONTROLLER_ALLOCATE_QUOTA, move |ctx, req, resp| { + instance.allocate_quota(ctx, req, resp) + }); builder.build() } diff --git a/googleapis-raw/src/api/servicemanagement/v1/mod.rs b/googleapis-raw/src/api/servicemanagement/v1/mod.rs index 557bfab..47425a8 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/mod.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/mod.rs @@ -1,5 +1,4 @@ // @generated - pub(crate) use crate::{ api::{annotations, config_change, metric, service}, longrunning::operations, diff --git a/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs b/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs index 478249a..8b13789 100644 --- a/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs +++ b/googleapis-raw/src/cloud/orgpolicy/v2/mod.rs @@ -1,5 +1 @@ -use crate::{ - empty, - r#type::expr, -}; diff --git a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs index f185835..8b13789 100644 --- a/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs +++ b/googleapis-raw/src/cloud/osconfig/agentendpoint/v1/mod.rs @@ -1,2 +1 @@ -use crate::r#type::date; diff --git a/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs b/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs index e8f0060..8b13789 100644 --- a/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs +++ b/googleapis-raw/src/cloud/osconfig/v1alpha/mod.rs @@ -1,5 +1 @@ -use crate::{ - r#type::date, - longrunning::operations, -}; diff --git a/googleapis-raw/src/lib.rs b/googleapis-raw/src/lib.rs index 7f07d26..fd4e5bd 100644 --- a/googleapis-raw/src/lib.rs +++ b/googleapis-raw/src/lib.rs @@ -28,14 +28,14 @@ pub(crate) mod rpc; pub(crate) mod r#type; // pub mod empty; -pub mod api; -pub mod bigtable; -pub mod cloud; #[cfg(feature = "bigtable")] #[cfg(any(feature = "bigtable", feature = "pubsub", feature = "spanner"))] #[cfg(feature = "pubsub")] #[cfg(feature = "spanner")] pub mod empty; +pub mod api; +pub mod bigtable; +pub mod cloud; pub mod identity; pub mod logging; pub mod longrunning; From dcd41f13f09d8c2bb4e4152946e2aec9c1bb1d4c Mon Sep 17 00:00:00 2001 From: jrconlin Date: Mon, 4 Mar 2024 17:10:39 -0800 Subject: [PATCH 4/8] f fixup examples --- googleapis-raw/examples/cloudasset-list.rs | 12 +- googleapis-raw/examples/pubsub-publisher.rs | 102 ++- googleapis-raw/examples/spanner-db.rs | 97 ++- googleapis-raw/src/spanner/v1/type_.rs | 753 ++++++++++++++++++++ googleapis/src/spanner.rs | 6 +- 5 files changed, 889 insertions(+), 81 deletions(-) create mode 100644 googleapis-raw/src/spanner/v1/type_.rs diff --git a/googleapis-raw/examples/cloudasset-list.rs b/googleapis-raw/examples/cloudasset-list.rs index e07269e..854ef8b 100644 --- a/googleapis-raw/examples/cloudasset-list.rs +++ b/googleapis-raw/examples/cloudasset-list.rs @@ -1,13 +1,11 @@ use std::sync::Arc; use google_cloud_rust_raw::cloud::asset::v1::{ - asset_service_grpc::AssetServiceClient, - asset_service::ExportAssetsRequest, + asset_service::ExportAssetsRequest, asset_service_grpc::AssetServiceClient, }; use grpcio::{Channel, ChannelBuilder, ChannelCredentials, EnvBuilder}; use std::error::Error; - fn connect(endpoint: &str) -> Channel { // Set up the gRPC environment. let env = Arc::new(EnvBuilder::new().build()); @@ -28,15 +26,17 @@ fn main() -> Result<(), Box> { let channel = connect(endpoint); let client = AssetServiceClient::new(channel); - let mut req = ExportAssetsRequest::new(); - req.set_parent(format!("projects/{}", "mozilla-rust-sdk-dev")); + let req = ExportAssetsRequest { + parent: format!("projects/{}", "mozilla-rust-sdk-dev"), + ..Default::default() + }; match client.export_assets(&req) { Ok(response) => { // NOTE: the API for this recently changd. Please refer to // GCP documentation for details about these changes. print!("{:?}", response); - }, + } Err(error) => println!("Failed to list assets: {}", error), } diff --git a/googleapis-raw/examples/pubsub-publisher.rs b/googleapis-raw/examples/pubsub-publisher.rs index 20b12a6..e34404f 100644 --- a/googleapis-raw/examples/pubsub-publisher.rs +++ b/googleapis-raw/examples/pubsub-publisher.rs @@ -24,17 +24,19 @@ use google_cloud_rust_raw::pubsub::v1::{ pubsub::Topic, pubsub_grpc::PublisherClient, pubsub_grpc::SubscriberClient, }; use grpcio::{Channel, ChannelBuilder, ChannelCredentials, ClientUnaryReceiver, EnvBuilder}; -use protobuf::RepeatedField; +use protobuf::{well_known_types::duration::Duration, MessageField}; /// Creates a topic or finds an existing one, then returns the topic /// fn find_or_create_topic(client: &PublisherClient, topic_name: &str) -> ::grpcio::Result { // find topic println!("Finding topic {}", topic_name); - let mut request = GetTopicRequest::new(); - request.set_topic(topic_name.to_string()); + let request = GetTopicRequest { + topic: topic_name.to_string(), + ..Default::default() + }; if let Ok(topic) = client.get_topic(&request) { - println!("Found topic: {}", topic.get_name()); + println!("Found topic: {}", topic.name); return Ok(topic); } else { println!("Topic not found"); @@ -44,9 +46,11 @@ fn find_or_create_topic(client: &PublisherClient, topic_name: &str) -> ::grpcio: println!("Creating topic {}", topic_name); let mut labels = HashMap::new(); labels.insert("environment".to_string(), "test".to_string()); - let mut topic = Topic::new(); - topic.set_name(topic_name.to_string()); - topic.set_labels(labels); + let topic = Topic { + name: topic_name.to_string(), + labels, + ..Default::default() + }; client.create_topic(&topic) } @@ -62,10 +66,12 @@ fn find_or_create_subscription( "Finding subscription {} for topic {}", subscription_name, topic_name ); - let mut request = GetSubscriptionRequest::new(); - request.set_subscription(subscription_name.to_string()); + let request = GetSubscriptionRequest { + subscription: subscription_name.to_string(), + ..Default::default() + }; if let Ok(subscription) = client.get_subscription(&request) { - println!("Found subscription: {}", subscription.get_name()); + println!("Found subscription: {}", subscription.name); return Ok(subscription); } else { println!("Subscription not found"); @@ -77,16 +83,26 @@ fn find_or_create_subscription( labels.insert("environment".to_string(), "test".to_string()); let mut attributes = HashMap::new(); attributes.insert("attribute".to_string(), "hello".to_string()); - let mut push_config = PushConfig::new(); - let mut expiration_policy = ExpirationPolicy::new(); - let mut expiration_duration = protobuf::well_known_types::Duration::new(); - let mut subscription = Subscription::new(); - push_config.set_attributes(attributes); - expiration_duration.set_seconds(60 * 60 * 48); - expiration_policy.set_ttl(expiration_duration); - subscription.set_name(subscription_name.to_string()); - subscription.set_topic(topic_name.to_string()); - subscription.set_ack_deadline_seconds(20); + let expiration_duration = Duration { + seconds: (60 * 60 * 48), + ..Default::default() + }; + let expiration_policy = ExpirationPolicy { + ttl: protobuf::MessageField(Some(Box::new(expiration_duration))), + ..Default::default() + }; + let push_config = PushConfig { + attributes, + ..Default::default() + }; + let subscription = Subscription { + name: subscription_name.to_string(), + topic: topic_name.to_string(), + ack_deadline_seconds: 20, + expiration_policy: MessageField(Some(Box::new(expiration_policy))), + push_config: MessageField(Some(Box::new(push_config))), + ..Default::default() + }; // subscription.set_expiration_policy(expiration_policy); // subscription.set_message_retention_duration(expiration_duration.clone()); // subscription.set_push_config(push_config); @@ -106,12 +122,16 @@ fn timestamp_in_seconds() -> u64 { /// fn create_pubsub_msg(message: &str) -> PubsubMessage { println!("Publishing message: {}", message); - let mut timestamp = ::protobuf::well_known_types::Timestamp::new(); - timestamp.set_seconds(timestamp_in_seconds() as i64); - - let mut pubsub_msg = PubsubMessage::new(); - pubsub_msg.set_data(message.to_string().into_bytes()); - pubsub_msg.set_publish_time(timestamp); + let timestamp = ::protobuf::well_known_types::timestamp::Timestamp { + seconds: timestamp_in_seconds() as i64, + ..Default::default() + }; + + let pubsub_msg = PubsubMessage { + data: message.to_owned().into_bytes(), + publish_time: protobuf::MessageField(Some(Box::new(timestamp))), + ..Default::default() + }; pubsub_msg } @@ -124,9 +144,11 @@ fn publish_msg_async( ) -> ::grpcio::Result> { let pub_messages = messages.iter().map(|msg| create_pubsub_msg(msg)).collect(); - let mut request = PublishRequest::new(); - request.set_topic(topic.get_name().to_string()); - request.set_messages(RepeatedField::from_vec(pub_messages)); + let request = PublishRequest { + topic: topic.name.to_string(), + messages: pub_messages, + ..Default::default() + }; client.publish_async(&request) } @@ -179,23 +201,27 @@ async fn async_main() { // Pubsub Subscription Pull, receive all messages println!("Pulling messages from subscription {:?}", subscription); - let mut request = PullRequest::new(); - request.set_subscription(subscription_name.to_string()); - request.set_max_messages(10); + let request = PullRequest { + subscription: subscription_name.to_string(), + max_messages: 10, + ..Default::default() + }; loop { let future = subscriber.pull_async(&request).unwrap(); let response = future.await.unwrap(); - let pubsub_messages = response.get_received_messages(); + let pubsub_messages = response.received_messages; println!("Handling {} messages", pubsub_messages.len()); - for pubsub_message in pubsub_messages { + for pubsub_message in pubsub_messages.clone() { println!(" >> message: {:?}", pubsub_message); - let ack_id = pubsub_message.get_ack_id().to_string(); + let ack_id = pubsub_message.ack_id; - let mut request = AcknowledgeRequest::new(); - request.set_subscription(subscription_name.to_string()); - request.set_ack_ids(RepeatedField::from_vec(vec![ack_id])); + let request = AcknowledgeRequest { + subscription: subscription_name.clone(), + ack_ids: vec![ack_id], + ..Default::default() + }; subscriber.acknowledge(&request).unwrap(); } diff --git a/googleapis-raw/examples/spanner-db.rs b/googleapis-raw/examples/spanner-db.rs index 31221ea..d3abab9 100644 --- a/googleapis-raw/examples/spanner-db.rs +++ b/googleapis-raw/examples/spanner-db.rs @@ -19,18 +19,20 @@ use google_cloud_rust_raw::spanner::admin::database::v1::{ spanner_database_admin::CreateDatabaseRequest, spanner_database_admin::DropDatabaseRequest, spanner_database_admin::GetDatabaseRequest, spanner_database_admin_grpc::DatabaseAdminClient, }; +use google_cloud_rust_raw::spanner::v1::transaction::transaction_options::{Mode, ReadWrite}; use google_cloud_rust_raw::spanner::v1::{ - mutation::Mutation, mutation::Mutation_Write, spanner::BeginTransactionRequest, - spanner::CommitRequest, spanner::CreateSessionRequest, spanner::Session, - spanner_grpc::SpannerClient, transaction::TransactionOptions, - transaction::TransactionOptions_ReadWrite, + mutation::mutation::Write, + mutation::Mutation, + spanner::{BeginTransactionRequest, CommitRequest, CreateSessionRequest, Session}, + spanner_grpc::SpannerClient, + transaction::TransactionOptions, }; use grpcio::{ CallOption, Channel, ChannelBuilder, ChannelCredentials, ClientUnaryReceiver, EnvBuilder, MetadataBuilder, }; -use protobuf::well_known_types::{ListValue, Value}; -use protobuf::RepeatedField; +use protobuf::well_known_types::struct_::{ListValue, Value}; +use protobuf::MessageField; #[allow(unused_imports)] use std::error::Error; use std::sync::Arc; @@ -65,14 +67,16 @@ struct Singer { fn wait_operation_finished(channel: &Channel, operation: &str) { let operations_client = OperationsClient::new(channel.clone()); - let mut request = GetOperationRequest::new(); - request.set_name(operation.to_string()); + let request = GetOperationRequest { + name: operation.to_string(), + ..Default::default() + }; loop { println!("Checking operation: {}", operation); match operations_client.get_operation(&request) { Ok(response) => { - if response.get_done() { + if response.done { println!("Operation {} finished", operation); break; } @@ -95,10 +99,12 @@ fn create_database_if_not_exists(channel: &Channel, database_name: &str, instanc let client = DatabaseAdminClient::new(channel.clone()); // find database println!("Finding database {}", database_name); - let mut request = GetDatabaseRequest::new(); - request.set_name(database_name.to_string()); + let request = GetDatabaseRequest { + name: database_name.to_string(), + ..Default::default() + }; if let Ok(database) = client.get_database(&request) { - println!("Found database: {}", database.get_name()); + println!("Found database: {}", database.name); return; } else { println!("Database not found"); @@ -111,17 +117,19 @@ fn create_database_if_not_exists(channel: &Channel, database_name: &str, instanc .map(|s| s.to_string()) .collect(); - let mut request = CreateDatabaseRequest::new(); - request.set_parent(instance_id.to_string()); - request.set_create_statement(CREATE_DATABASE.to_string()); - request.set_extra_statements(RepeatedField::from_vec(statements)); + let request = CreateDatabaseRequest { + parent: instance_id.to_string(), + create_statement: CREATE_DATABASE.to_string(), + extra_statements: vec![statements], + ..Default::default() + }; let operation = client .create_database(&request) .expect("Failed to create database"); dbg!(operation.clone()); // check that operation is finished - wait_operation_finished(&channel, operation.get_name()); + wait_operation_finished(&channel, &operation.name); } /// Deletes a given database @@ -134,8 +142,10 @@ fn drop_database( println!("Drop database {}", database_name); let client = DatabaseAdminClient::new(channel.clone()); - let mut request = DropDatabaseRequest::new(); - request.set_database(database_name.to_string()); + let request = DropDatabaseRequest { + database: database_name.to_string(), + ..Default::default() + }; client.drop_database_async(&request) } @@ -143,8 +153,10 @@ fn drop_database( /// Create a new session to communicate with Spanner /// fn create_session(client: &SpannerClient, database_name: &str) -> ::grpcio::Result { - let mut request = CreateSessionRequest::new(); - request.set_database(database_name.to_string()); + let request = CreateSessionRequest { + database: database_name.to_string(), + ..Default::default() + }; let mut meta = MetadataBuilder::new(); meta.add_str("google-cloud-resource-prefix", database_name) .expect("Failed to set meta data"); @@ -194,11 +206,15 @@ fn main() -> Result<(), Box> { // insert data into database by using a transaction let client = SpannerClient::new(channel); - let mut request = BeginTransactionRequest::new(); - let mut read_write = TransactionOptions::new(); - read_write.set_read_write(TransactionOptions_ReadWrite::new()); - request.set_session(session.get_name().to_string()); - request.set_options(read_write); + let read_write = TransactionOptions { + mode: Some(Mode::ReadWrite(ReadWrite::default())), + ..Default::default() + }; + let request = BeginTransactionRequest { + session: session.name.to_string(), + options: MessageField::from(Some(read_write)), + ..Default::default() + }; let transaction = client.begin_transaction(&request)?; // the list of singers to add @@ -245,8 +261,10 @@ fn main() -> Result<(), Box> { let mut last_name = Value::new(); last_name.set_string_value(singer.last_name.clone()); - let mut list = ListValue::new(); - list.set_values(RepeatedField::from_vec(vec![id, first_name, last_name])); + let list = ListValue { + values: vec![id, first_name, last_name], + ..Default::default() + }; list_values.push(list); } @@ -260,17 +278,26 @@ fn main() -> Result<(), Box> { println!("Mutation write object"); dbg!(mutation_write.clone()); */ - let mut mutation =Mutation::new(); - mutation.set_table("Singers".to_string()); - mutation. + let mutation_write = Write { + table: "Singers".to_string(), + columns, + values: list_values, + ..Default::default() + }; // finally commit to database println!("Commit data to database {}", database_name); - let mut commit = CommitRequest::new(); - commit.set_transaction_id(transaction.get_id().to_vec()); - commit.set_session(session.get_name().to_string()); let mut mutation = Mutation::new(); mutation.set_insert_or_update(mutation_write); - commit.set_mutations(RepeatedField::from_vec(vec![mutation])); + let commit = CommitRequest { + session: session.name.clone(), + mutations: vec![mutation], + transaction: Some( + google_cloud_rust_raw::spanner::v1::spanner::commit_request::Transaction::TransactionId( + transaction.id, + ), + ), + ..Default::default() + }; let response = client.commit(&commit)?; dbg!(response); diff --git a/googleapis-raw/src/spanner/v1/type_.rs b/googleapis-raw/src/spanner/v1/type_.rs new file mode 100644 index 0000000..684c241 --- /dev/null +++ b/googleapis-raw/src/spanner/v1/type_.rs @@ -0,0 +1,753 @@ +// This file is generated by rust-protobuf 3.3.0. Do not edit +// .proto file is parsed by protoc --rust-out=... +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![cfg_attr(rustfmt, rustfmt::skip)] + +#![allow(box_pointers)] +#![allow(dead_code)] +#![allow(missing_docs)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(non_upper_case_globals)] +#![allow(trivial_casts)] +#![allow(unused_results)] +#![allow(unused_mut)] + +//! Generated file from `google/spanner/v1/type.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; + +/// `Type` indicates the type of a Cloud Spanner value, as might be stored in a +/// table cell or returned from an SQL query. +// @@protoc_insertion_point(message:google.spanner.v1.Type) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Type { + // message fields + /// Required. The [TypeCode][google.spanner.v1.TypeCode] for this type. + // @@protoc_insertion_point(field:google.spanner.v1.Type.code) + pub code: ::protobuf::EnumOrUnknown, + /// If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then `array_element_type` + /// is the type of the array elements. + // @@protoc_insertion_point(field:google.spanner.v1.Type.array_element_type) + pub array_element_type: ::protobuf::MessageField, + /// If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then `struct_type` + /// provides type information for the struct's fields. + // @@protoc_insertion_point(field:google.spanner.v1.Type.struct_type) + pub struct_type: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.Type.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a Type { + fn default() -> &'a Type { + ::default_instance() + } +} + +impl Type { + pub fn new() -> Type { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "code", + |m: &Type| { &m.code }, + |m: &mut Type| { &mut m.code }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Type>( + "array_element_type", + |m: &Type| { &m.array_element_type }, + |m: &mut Type| { &mut m.array_element_type }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, StructType>( + "struct_type", + |m: &Type| { &m.struct_type }, + |m: &mut Type| { &mut m.struct_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Type", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for Type { + const NAME: &'static str = "Type"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.code = is.read_enum_or_unknown()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.array_element_type)?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.struct_type)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.code != ::protobuf::EnumOrUnknown::new(TypeCode::TYPE_CODE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.code.value()); + } + if let Some(v) = self.array_element_type.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.struct_type.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.code != ::protobuf::EnumOrUnknown::new(TypeCode::TYPE_CODE_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.code))?; + } + if let Some(v) = self.array_element_type.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + if let Some(v) = self.struct_type.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Type { + Type::new() + } + + fn clear(&mut self) { + self.code = ::protobuf::EnumOrUnknown::new(TypeCode::TYPE_CODE_UNSPECIFIED); + self.array_element_type.clear(); + self.struct_type.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Type { + static instance: Type = Type { + code: ::protobuf::EnumOrUnknown::from_i32(0), + array_element_type: ::protobuf::MessageField::none(), + struct_type: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for Type { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Type").unwrap()).clone() + } +} + +impl ::std::fmt::Display for Type { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Type { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// `StructType` defines the fields of a [STRUCT][google.spanner.v1.TypeCode.STRUCT] type. +// @@protoc_insertion_point(message:google.spanner.v1.StructType) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct StructType { + // message fields + /// The list of fields that make up this struct. Order is + /// significant, because values of this struct type are represented as + /// lists, where the order of field values matches the order of + /// fields in the [StructType][google.spanner.v1.StructType]. In turn, the order of fields + /// matches the order of columns in a read request, or the order of + /// fields in the `SELECT` clause of a query. + // @@protoc_insertion_point(field:google.spanner.v1.StructType.fields) + pub fields: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.StructType.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a StructType { + fn default() -> &'a StructType { + ::default_instance() + } +} + +impl StructType { + pub fn new() -> StructType { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "fields", + |m: &StructType| { &m.fields }, + |m: &mut StructType| { &mut m.fields }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "StructType", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for StructType { + const NAME: &'static str = "StructType"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.fields.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.fields { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.fields { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> StructType { + StructType::new() + } + + fn clear(&mut self) { + self.fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static StructType { + static instance: StructType = StructType { + fields: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for StructType { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("StructType").unwrap()).clone() + } +} + +impl ::std::fmt::Display for StructType { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for StructType { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `StructType` +pub mod struct_type { + /// Message representing a single field of a struct. + // @@protoc_insertion_point(message:google.spanner.v1.StructType.Field) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct Field { + // message fields + /// The name of the field. For reads, this is the column name. For + /// 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 + /// UPPER(ColName)"`). Note that a query result can contain + /// multiple fields with the same name. + // @@protoc_insertion_point(field:google.spanner.v1.StructType.Field.name) + pub name: ::std::string::String, + /// The type of the field. + // @@protoc_insertion_point(field:google.spanner.v1.StructType.Field.type) + pub type_: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.spanner.v1.StructType.Field.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a Field { + fn default() -> &'a Field { + ::default_instance() + } + } + + impl Field { + pub fn new() -> Field { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "name", + |m: &Field| { &m.name }, + |m: &mut Field| { &mut m.name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::Type>( + "type", + |m: &Field| { &m.type_ }, + |m: &mut Field| { &mut m.type_ }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "StructType.Field", + fields, + oneofs, + ) + } + } + + impl ::protobuf::Message for Field { + const NAME: &'static str = "Field"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.name = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.type_)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.name); + } + if let Some(v) = self.type_.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.name.is_empty() { + os.write_string(1, &self.name)?; + } + if let Some(v) = self.type_.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Field { + Field::new() + } + + fn clear(&mut self) { + self.name.clear(); + self.type_.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Field { + static instance: Field = Field { + name: ::std::string::String::new(), + type_: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } + + impl ::protobuf::MessageFull for Field { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("StructType.Field").unwrap()).clone() + } + } + + impl ::std::fmt::Display for Field { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + + impl ::protobuf::reflect::ProtobufValue for Field { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } +} + +/// `TypeCode` is used as part of [Type][google.spanner.v1.Type] to +/// indicate the type of a Cloud Spanner value. +/// +/// Each legal value of a type can be encoded to or decoded from a JSON +/// value, using the encodings described below. All Cloud Spanner values can +/// be `null`, regardless of type; `null`s are always encoded as a JSON +/// `null`. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.spanner.v1.TypeCode) +pub enum TypeCode { + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.TYPE_CODE_UNSPECIFIED) + TYPE_CODE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.BOOL) + BOOL = 1, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.INT64) + INT64 = 2, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.FLOAT64) + FLOAT64 = 3, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.TIMESTAMP) + TIMESTAMP = 4, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.DATE) + DATE = 5, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.STRING) + STRING = 6, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.BYTES) + BYTES = 7, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.ARRAY) + ARRAY = 8, + // @@protoc_insertion_point(enum_value:google.spanner.v1.TypeCode.STRUCT) + STRUCT = 9, +} + +impl ::protobuf::Enum for TypeCode { + const NAME: &'static str = "TypeCode"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(TypeCode::TYPE_CODE_UNSPECIFIED), + 1 => ::std::option::Option::Some(TypeCode::BOOL), + 2 => ::std::option::Option::Some(TypeCode::INT64), + 3 => ::std::option::Option::Some(TypeCode::FLOAT64), + 4 => ::std::option::Option::Some(TypeCode::TIMESTAMP), + 5 => ::std::option::Option::Some(TypeCode::DATE), + 6 => ::std::option::Option::Some(TypeCode::STRING), + 7 => ::std::option::Option::Some(TypeCode::BYTES), + 8 => ::std::option::Option::Some(TypeCode::ARRAY), + 9 => ::std::option::Option::Some(TypeCode::STRUCT), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "TYPE_CODE_UNSPECIFIED" => ::std::option::Option::Some(TypeCode::TYPE_CODE_UNSPECIFIED), + "BOOL" => ::std::option::Option::Some(TypeCode::BOOL), + "INT64" => ::std::option::Option::Some(TypeCode::INT64), + "FLOAT64" => ::std::option::Option::Some(TypeCode::FLOAT64), + "TIMESTAMP" => ::std::option::Option::Some(TypeCode::TIMESTAMP), + "DATE" => ::std::option::Option::Some(TypeCode::DATE), + "STRING" => ::std::option::Option::Some(TypeCode::STRING), + "BYTES" => ::std::option::Option::Some(TypeCode::BYTES), + "ARRAY" => ::std::option::Option::Some(TypeCode::ARRAY), + "STRUCT" => ::std::option::Option::Some(TypeCode::STRUCT), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [TypeCode] = &[ + TypeCode::TYPE_CODE_UNSPECIFIED, + TypeCode::BOOL, + TypeCode::INT64, + TypeCode::FLOAT64, + TypeCode::TIMESTAMP, + TypeCode::DATE, + TypeCode::STRING, + TypeCode::BYTES, + TypeCode::ARRAY, + TypeCode::STRUCT, + ]; +} + +impl ::protobuf::EnumFull for TypeCode { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("TypeCode").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } +} + +impl ::std::default::Default for TypeCode { + fn default() -> Self { + TypeCode::TYPE_CODE_UNSPECIFIED + } +} + +impl TypeCode { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("TypeCode") + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1cgoogle/spanner/v1/type.proto\x12\x11google.spanner.v1\x1a\x1cgoogl\ + e/api/annotations.proto\"\xbe\x01\n\x04Type\x12/\n\x04code\x18\x01\x20\ + \x01(\x0e2\x1b.google.spanner.v1.TypeCodeR\x04code\x12E\n\x12array_eleme\ + nt_type\x18\x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x10arrayElemen\ + tType\x12>\n\x0bstruct_type\x18\x03\x20\x01(\x0b2\x1d.google.spanner.v1.\ + StructTypeR\nstructType\"\x93\x01\n\nStructType\x12;\n\x06fields\x18\x01\ + \x20\x03(\x0b2#.google.spanner.v1.StructType.FieldR\x06fields\x1aH\n\x05\ + Field\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12+\n\x04type\x18\ + \x02\x20\x01(\x0b2\x17.google.spanner.v1.TypeR\x04type*\x8e\x01\n\x08Typ\ + eCode\x12\x19\n\x15TYPE_CODE_UNSPECIFIED\x10\0\x12\x08\n\x04BOOL\x10\x01\ + \x12\t\n\x05INT64\x10\x02\x12\x0b\n\x07FLOAT64\x10\x03\x12\r\n\tTIMESTAM\ + P\x10\x04\x12\x08\n\x04DATE\x10\x05\x12\n\n\x06STRING\x10\x06\x12\t\n\ + \x05BYTES\x10\x07\x12\t\n\x05ARRAY\x10\x08\x12\n\n\x06STRUCT\x10\tB\x92\ + \x01\n\x15com.google.spanner.v1B\tTypeProtoP\x01Z8google.golang.org/genp\ + roto/googleapis/spanner/v1;spanner\xaa\x02\x17Google.Cloud.Spanner.V1\ + \xca\x02\x17Google\\Cloud\\Spanner\\V1J\xfc!\n\x06\x12\x04\x0f\0v\x01\n\ + \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ + ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ + rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ + his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x1a\n\t\n\x02\x03\ + \0\x12\x03\x13\0&\n\x08\n\x01\x08\x12\x03\x15\04\n\t\n\x02\x08%\x12\x03\ + \x15\04\n\x08\n\x01\x08\x12\x03\x16\0O\n\t\n\x02\x08\x0b\x12\x03\x16\0O\ + \n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\ + \x01\x08\x12\x03\x18\0*\n\t\n\x02\x08\x08\x12\x03\x18\0*\n\x08\n\x01\x08\ + \x12\x03\x19\0.\n\t\n\x02\x08\x01\x12\x03\x19\0.\n\x08\n\x01\x08\x12\x03\ + \x1a\04\n\t\n\x02\x08)\x12\x03\x1a\04\n\xd9\x02\n\x02\x05\0\x12\x04#\0M\ + \x01\x1a\xcc\x02\x20`TypeCode`\x20is\x20used\x20as\x20part\x20of\x20[Typ\ + e][google.spanner.v1.Type]\x20to\n\x20indicate\x20the\x20type\x20of\x20a\ + \x20Cloud\x20Spanner\x20value.\n\n\x20Each\x20legal\x20value\x20of\x20a\ + \x20type\x20can\x20be\x20encoded\x20to\x20or\x20decoded\x20from\x20a\x20\ + JSON\n\x20value,\x20using\x20the\x20encodings\x20described\x20below.\x20\ + All\x20Cloud\x20Spanner\x20values\x20can\n\x20be\x20`null`,\x20regardles\ + s\x20of\x20type;\x20`null`s\x20are\x20always\x20encoded\x20as\x20a\x20JS\ + ON\n\x20`null`.\n\n\n\n\x03\x05\0\x01\x12\x03#\x05\r\n\x1d\n\x04\x05\0\ + \x02\0\x12\x03%\x02\x1c\x1a\x10\x20Not\x20specified.\n\n\x0c\n\x05\x05\0\ + \x02\0\x01\x12\x03%\x02\x17\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03%\x1a\x1b\ + \n1\n\x04\x05\0\x02\x01\x12\x03(\x02\x0b\x1a$\x20Encoded\x20as\x20JSON\ + \x20`true`\x20or\x20`false`.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03(\ + \x02\x06\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03(\t\n\n6\n\x04\x05\0\x02\ + \x02\x12\x03+\x02\x0c\x1a)\x20Encoded\x20as\x20`string`,\x20in\x20decima\ + l\x20format.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03+\x02\x07\n\x0c\n\ + \x05\x05\0\x02\x02\x02\x12\x03+\n\x0b\n\\\n\x04\x05\0\x02\x03\x12\x03/\ + \x02\x0e\x1aO\x20Encoded\x20as\x20`number`,\x20or\x20the\x20strings\x20`\ + \"NaN\"`,\x20`\"Infinity\"`,\x20or\n\x20`\"-Infinity\"`.\n\n\x0c\n\x05\ + \x05\0\x02\x03\x01\x12\x03/\x02\t\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03/\ + \x0c\r\n\xdd\x02\n\x04\x05\0\x02\x04\x12\x039\x02\x10\x1a\xcf\x02\x20Enc\ + oded\x20as\x20`string`\x20in\x20RFC\x203339\x20timestamp\x20format.\x20T\ + he\x20time\x20zone\n\x20must\x20be\x20present,\x20and\x20must\x20be\x20`\ + \"Z\"`.\n\n\x20If\x20the\x20schema\x20has\x20the\x20column\x20option\n\ + \x20`allow_commit_timestamp=true`,\x20the\x20placeholder\x20string\n\x20\ + `\"spanner.commit_timestamp()\"`\x20can\x20be\x20used\x20to\x20instruct\ + \x20the\x20system\n\x20to\x20insert\x20the\x20commit\x20timestamp\x20ass\ + ociated\x20with\x20the\x20transaction\n\x20commit.\n\n\x0c\n\x05\x05\0\ + \x02\x04\x01\x12\x039\x02\x0b\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x039\x0e\ + \x0f\n;\n\x04\x05\0\x02\x05\x12\x03<\x02\x0b\x1a.\x20Encoded\x20as\x20`s\ + tring`\x20in\x20RFC\x203339\x20date\x20format.\n\n\x0c\n\x05\x05\0\x02\ + \x05\x01\x12\x03<\x02\x06\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03<\t\n\n#\ + \n\x04\x05\0\x02\x06\x12\x03?\x02\r\x1a\x16\x20Encoded\x20as\x20`string`\ + .\n\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x03?\x02\x08\n\x0c\n\x05\x05\0\x02\ + \x06\x02\x12\x03?\x0b\x0c\nZ\n\x04\x05\0\x02\x07\x12\x03C\x02\x0c\x1aM\ + \x20Encoded\x20as\x20a\x20base64-encoded\x20`string`,\x20as\x20described\ + \x20in\x20RFC\x204648,\n\x20section\x204.\n\n\x0c\n\x05\x05\0\x02\x07\ + \x01\x12\x03C\x02\x07\n\x0c\n\x05\x05\0\x02\x07\x02\x12\x03C\n\x0b\n\x9a\ + \x01\n\x04\x05\0\x02\x08\x12\x03H\x02\x0c\x1a\x8c\x01\x20Encoded\x20as\ + \x20`list`,\x20where\x20the\x20list\x20elements\x20are\x20represented\n\ + \x20according\x20to\n\x20[array_element_type][google.spanner.v1.Type.arr\ + ay_element_type].\n\n\x0c\n\x05\x05\0\x02\x08\x01\x12\x03H\x02\x07\n\x0c\ + \n\x05\x05\0\x02\x08\x02\x12\x03H\n\x0b\n\x94\x01\n\x04\x05\0\x02\t\x12\ + \x03L\x02\r\x1a\x86\x01\x20Encoded\x20as\x20`list`,\x20where\x20list\x20\ + element\x20`i`\x20is\x20represented\x20according\n\x20to\x20[struct_type\ + .fields[i]][google.spanner.v1.StructType.fields].\n\n\x0c\n\x05\x05\0\ + \x02\t\x01\x12\x03L\x02\x08\n\x0c\n\x05\x05\0\x02\t\x02\x12\x03L\x0b\x0c\ + \n\x84\x01\n\x02\x04\0\x12\x04Q\0\\\x01\x1ax\x20`Type`\x20indicates\x20t\ + he\x20type\x20of\x20a\x20Cloud\x20Spanner\x20value,\x20as\x20might\x20be\ + \x20stored\x20in\x20a\n\x20table\x20cell\x20or\x20returned\x20from\x20an\ + \x20SQL\x20query.\n\n\n\n\x03\x04\0\x01\x12\x03Q\x08\x0c\nR\n\x04\x04\0\ + \x02\0\x12\x03S\x02\x14\x1aE\x20Required.\x20The\x20[TypeCode][google.sp\ + anner.v1.TypeCode]\x20for\x20this\x20type.\n\n\x0c\n\x05\x04\0\x02\0\x06\ + \x12\x03S\x02\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03S\x0b\x0f\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03S\x12\x13\n\xa2\x01\n\x04\x04\0\x02\x01\x12\x03W\ + \x02\x1e\x1a\x94\x01\x20If\x20[code][google.spanner.v1.Type.code]\x20==\ + \x20[ARRAY][google.spanner.v1.TypeCode.ARRAY],\x20then\x20`array_element\ + _type`\n\x20is\x20the\x20type\x20of\x20the\x20array\x20elements.\n\n\x0c\ + \n\x05\x04\0\x02\x01\x06\x12\x03W\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x03W\x07\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03W\x1c\x1d\n\xad\ + \x01\n\x04\x04\0\x02\x02\x12\x03[\x02\x1d\x1a\x9f\x01\x20If\x20[code][go\ + ogle.spanner.v1.Type.code]\x20==\x20[STRUCT][google.spanner.v1.TypeCode.\ + STRUCT],\x20then\x20`struct_type`\n\x20provides\x20type\x20information\ + \x20for\x20the\x20struct's\x20fields.\n\n\x0c\n\x05\x04\0\x02\x02\x06\ + \x12\x03[\x02\x0c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03[\r\x18\n\x0c\n\ + \x05\x04\0\x02\x02\x03\x12\x03[\x1b\x1c\nd\n\x02\x04\x01\x12\x04_\0v\x01\ + \x1aX\x20`StructType`\x20defines\x20the\x20fields\x20of\x20a\x20[STRUCT]\ + [google.spanner.v1.TypeCode.STRUCT]\x20type.\n\n\n\n\x03\x04\x01\x01\x12\ + \x03_\x08\x12\n@\n\x04\x04\x01\x03\0\x12\x04a\x02m\x03\x1a2\x20Message\ + \x20representing\x20a\x20single\x20field\x20of\x20a\x20struct.\n\n\x0c\n\ + \x05\x04\x01\x03\0\x01\x12\x03a\n\x0f\n\x99\x03\n\x06\x04\x01\x03\0\x02\ + \0\x12\x03i\x04\x14\x1a\x89\x03\x20The\x20name\x20of\x20the\x20field.\ + \x20For\x20reads,\x20this\x20is\x20the\x20column\x20name.\x20For\n\x20SQ\ + L\x20queries,\x20it\x20is\x20the\x20column\x20alias\x20(e.g.,\x20`\"Word\ + \"`\x20in\x20the\n\x20query\x20`\"SELECT\x20'hello'\x20AS\x20Word\"`),\ + \x20or\x20the\x20column\x20name\x20(e.g.,\n\x20`\"ColName\"`\x20in\x20th\ + e\x20query\x20`\"SELECT\x20ColName\x20FROM\x20Table\"`).\x20Some\n\x20co\ + lumns\x20might\x20have\x20an\x20empty\x20name\x20(e.g.,\x20!\"SELECT\n\ + \x20UPPER(ColName)\"`).\x20Note\x20that\x20a\x20query\x20result\x20can\ + \x20contain\n\x20multiple\x20fields\x20with\x20the\x20same\x20name.\n\n\ + \x0e\n\x07\x04\x01\x03\0\x02\0\x05\x12\x03i\x04\n\n\x0e\n\x07\x04\x01\ + \x03\0\x02\0\x01\x12\x03i\x0b\x0f\n\x0e\n\x07\x04\x01\x03\0\x02\0\x03\ + \x12\x03i\x12\x13\n'\n\x06\x04\x01\x03\0\x02\x01\x12\x03l\x04\x12\x1a\ + \x18\x20The\x20type\x20of\x20the\x20field.\n\n\x0e\n\x07\x04\x01\x03\0\ + \x02\x01\x06\x12\x03l\x04\x08\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x01\x12\ + \x03l\t\r\n\x0e\n\x07\x04\x01\x03\0\x02\x01\x03\x12\x03l\x10\x11\n\x8a\ + \x03\n\x04\x04\x01\x02\0\x12\x03u\x02\x1c\x1a\xfc\x02\x20The\x20list\x20\ + of\x20fields\x20that\x20make\x20up\x20this\x20struct.\x20Order\x20is\n\ + \x20significant,\x20because\x20values\x20of\x20this\x20struct\x20type\ + \x20are\x20represented\x20as\n\x20lists,\x20where\x20the\x20order\x20of\ + \x20field\x20values\x20matches\x20the\x20order\x20of\n\x20fields\x20in\ + \x20the\x20[StructType][google.spanner.v1.StructType].\x20In\x20turn,\ + \x20the\x20order\x20of\x20fields\n\x20matches\x20the\x20order\x20of\x20c\ + olumns\x20in\x20a\x20read\x20request,\x20or\x20the\x20order\x20of\n\x20f\ + ields\x20in\x20the\x20`SELECT`\x20clause\x20of\x20a\x20query.\n\n\x0c\n\ + \x05\x04\x01\x02\0\x04\x12\x03u\x02\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\ + \x03u\x0b\x10\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03u\x11\x17\n\x0c\n\x05\ + \x04\x01\x02\0\x03\x12\x03u\x1a\x1bb\x06proto3\ +"; + +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) +} + +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::annotations::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(3); + messages.push(Type::generated_message_descriptor_data()); + messages.push(StructType::generated_message_descriptor_data()); + messages.push(struct_type::Field::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(TypeCode::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) + }) +} diff --git a/googleapis/src/spanner.rs b/googleapis/src/spanner.rs index 10207f8..960dfdd 100644 --- a/googleapis/src/spanner.rs +++ b/googleapis/src/spanner.rs @@ -56,8 +56,10 @@ impl Client { .connect(&endpoint); let client = SpannerClient::new(chan); - let mut req = CreateSessionRequest::new(); - req.set_database(database.to_string()); + let req = CreateSessionRequest { + database: database.clone(), + ..Default::default() + }; let mut meta = MetadataBuilder::new(); meta.add_str("google-cloud-resource-prefix", &database)?; meta.add_str("x-goog-api-client", "googleapis-rs")?; From 2d600cfeacb21e23a197bf6f390ee1e296d96354 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Wed, 27 Mar 2024 15:49:20 -0700 Subject: [PATCH 5/8] f update for protobuf 3.4 --- Cargo.toml | 2 +- googleapis-raw/src/api/annotations.rs | 4 ++-- googleapis-raw/src/api/auth.rs | 4 ++-- googleapis-raw/src/api/backend.rs | 4 ++-- googleapis-raw/src/api/billing.rs | 4 ++-- googleapis-raw/src/api/client.rs | 4 ++-- googleapis-raw/src/api/config_change.rs | 4 ++-- googleapis-raw/src/api/consumer.rs | 4 ++-- googleapis-raw/src/api/context.rs | 4 ++-- googleapis-raw/src/api/control.rs | 4 ++-- googleapis-raw/src/api/distribution.rs | 4 ++-- googleapis-raw/src/api/documentation.rs | 4 ++-- googleapis-raw/src/api/endpoint.rs | 4 ++-- googleapis-raw/src/api/field_behavior.rs | 4 ++-- googleapis-raw/src/api/http.rs | 4 ++-- googleapis-raw/src/api/httpbody.rs | 4 ++-- googleapis-raw/src/api/label.rs | 4 ++-- googleapis-raw/src/api/launch_stage.rs | 4 ++-- googleapis-raw/src/api/log.rs | 4 ++-- googleapis-raw/src/api/logging.rs | 4 ++-- googleapis-raw/src/api/metric.rs | 4 ++-- googleapis-raw/src/api/monitored_resource.rs | 4 ++-- googleapis-raw/src/api/monitoring.rs | 4 ++-- googleapis-raw/src/api/quota.rs | 4 ++-- googleapis-raw/src/api/resource.rs | 4 ++-- googleapis-raw/src/api/service.rs | 4 ++-- .../src/api/servicecontrol/v1/check_error.rs | 4 ++-- .../src/api/servicecontrol/v1/distribution.rs | 4 ++-- .../src/api/servicecontrol/v1/log_entry.rs | 4 ++-- .../src/api/servicecontrol/v1/metric_value.rs | 4 ++-- googleapis-raw/src/api/servicecontrol/v1/mod.rs | 4 +--- .../src/api/servicecontrol/v1/operation.rs | 4 ++-- .../src/api/servicecontrol/v1/quota_controller.rs | 4 ++-- .../src/api/servicecontrol/v1/service_controller.rs | 4 ++-- googleapis-raw/src/api/servicemanagement/v1/mod.rs | 3 +-- .../src/api/servicemanagement/v1/resources.rs | 4 ++-- .../src/api/servicemanagement/v1/servicemanager.rs | 4 ++-- googleapis-raw/src/api/source_info.rs | 4 ++-- googleapis-raw/src/api/system_parameter.rs | 4 ++-- googleapis-raw/src/api/usage.rs | 4 ++-- .../src/bigtable/admin/v2/bigtable_instance_admin.rs | 4 ++-- .../src/bigtable/admin/v2/bigtable_table_admin.rs | 4 ++-- googleapis-raw/src/bigtable/admin/v2/common.rs | 4 ++-- googleapis-raw/src/bigtable/admin/v2/instance.rs | 4 ++-- googleapis-raw/src/bigtable/admin/v2/mod.rs | 2 +- googleapis-raw/src/bigtable/admin/v2/table.rs | 4 ++-- googleapis-raw/src/bigtable/v2/bigtable.rs | 4 ++-- googleapis-raw/src/bigtable/v2/data.rs | 4 ++-- googleapis-raw/src/bigtable/v2/mod.rs | 3 +-- googleapis-raw/src/cloud/asset/v1/asset_service.rs | 4 ++-- googleapis-raw/src/cloud/asset/v1/assets.rs | 4 ++-- googleapis-raw/src/cloud/asset/v1/mod.rs | 2 +- googleapis-raw/src/empty.rs | 4 ++-- googleapis-raw/src/iam/v1/iam_policy.rs | 4 ++-- googleapis-raw/src/iam/v1/mod.rs | 2 +- googleapis-raw/src/iam/v1/options.rs | 4 ++-- googleapis-raw/src/iam/v1/policy.rs | 4 ++-- googleapis-raw/src/lib.rs | 12 ++++++------ googleapis-raw/src/logging/type/http_request.rs | 4 ++-- googleapis-raw/src/logging/type/log_severity.rs | 4 ++-- googleapis-raw/src/logging/type/mod.rs | 2 +- googleapis-raw/src/longrunning/mod.rs | 2 +- googleapis-raw/src/longrunning/operations.rs | 4 ++-- googleapis-raw/src/pubsub/v1/mod.rs | 2 +- googleapis-raw/src/pubsub/v1/pubsub.rs | 4 ++-- googleapis-raw/src/pubsub/v1beta2/mod.rs | 2 +- googleapis-raw/src/pubsub/v1beta2/pubsub.rs | 4 ++-- googleapis-raw/src/rpc/code.rs | 4 ++-- googleapis-raw/src/rpc/error_details.rs | 4 ++-- googleapis-raw/src/rpc/status.rs | 4 ++-- googleapis-raw/src/spanner/admin/database/v1/mod.rs | 3 ++- .../admin/database/v1/spanner_database_admin.rs | 4 ++-- googleapis-raw/src/spanner/admin/instance/v1/mod.rs | 2 +- .../admin/instance/v1/spanner_instance_admin.rs | 4 ++-- googleapis-raw/src/spanner/v1/keys.rs | 4 ++-- googleapis-raw/src/spanner/v1/mod.rs | 4 ++-- googleapis-raw/src/spanner/v1/mutation.rs | 4 ++-- googleapis-raw/src/spanner/v1/query_plan.rs | 4 ++-- googleapis-raw/src/spanner/v1/result_set.rs | 4 ++-- googleapis-raw/src/spanner/v1/spanner.rs | 4 ++-- googleapis-raw/src/spanner/v1/transaction.rs | 4 ++-- googleapis-raw/src/spanner/v1/type_.rs | 4 ++-- googleapis-raw/src/type/calendar_period.rs | 4 ++-- googleapis-raw/src/type/color.rs | 4 ++-- googleapis-raw/src/type/date.rs | 4 ++-- googleapis-raw/src/type/dayofweek.rs | 4 ++-- googleapis-raw/src/type/expr.rs | 4 ++-- googleapis-raw/src/type/fraction.rs | 4 ++-- googleapis-raw/src/type/latlng.rs | 4 ++-- googleapis-raw/src/type/money.rs | 4 ++-- googleapis-raw/src/type/month.rs | 4 ++-- googleapis-raw/src/type/postal_address.rs | 4 ++-- googleapis-raw/src/type/quaternion.rs | 4 ++-- googleapis-raw/src/type/timeofday.rs | 4 ++-- 94 files changed, 180 insertions(+), 183 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7e2d872..b52a4a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,4 +40,4 @@ grpcio = { version = "0.13.0", default-features = false, features = [ ] } # grpcio currently does NOT support protobuf 3+ # protobuf = { version = "=2.28.0" } -protobuf = { version = "3.3.0" } +protobuf = { version = "3.4.0" } diff --git a/googleapis-raw/src/api/annotations.rs b/googleapis-raw/src/api/annotations.rs index 60039e0..227ffa2 100644 --- a/googleapis-raw/src/api/annotations.rs +++ b/googleapis-raw/src/api/annotations.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Extension fields pub mod exts { diff --git a/googleapis-raw/src/api/auth.rs b/googleapis-raw/src/api/auth.rs index 1ddc3d9..da76e1d 100644 --- a/googleapis-raw/src/api/auth.rs +++ b/googleapis-raw/src/api/auth.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Authentication) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/backend.rs b/googleapis-raw/src/api/backend.rs index 063f648..b1c70e1 100644 --- a/googleapis-raw/src/api/backend.rs +++ b/googleapis-raw/src/api/backend.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// `Backend` defines the backend configuration for a service. // @@protoc_insertion_point(message:google.api.Backend) diff --git a/googleapis-raw/src/api/billing.rs b/googleapis-raw/src/api/billing.rs index eee6148..8ec2600 100644 --- a/googleapis-raw/src/api/billing.rs +++ b/googleapis-raw/src/api/billing.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Billing) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/client.rs b/googleapis-raw/src/api/client.rs index d7bc070..ecec01b 100644 --- a/googleapis-raw/src/api/client.rs +++ b/googleapis-raw/src/api/client.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Extension fields pub mod exts { diff --git a/googleapis-raw/src/api/config_change.rs b/googleapis-raw/src/api/config_change.rs index 527857e..6b4b172 100644 --- a/googleapis-raw/src/api/config_change.rs +++ b/googleapis-raw/src/api/config_change.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Output generated from semantically comparing two versions of a service /// configuration. diff --git a/googleapis-raw/src/api/consumer.rs b/googleapis-raw/src/api/consumer.rs index 97b0d15..ffc54ce 100644 --- a/googleapis-raw/src/api/consumer.rs +++ b/googleapis-raw/src/api/consumer.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.ProjectProperties) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/context.rs b/googleapis-raw/src/api/context.rs index 92afbc1..869aebb 100644 --- a/googleapis-raw/src/api/context.rs +++ b/googleapis-raw/src/api/context.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Context) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/control.rs b/googleapis-raw/src/api/control.rs index 5ef1920..67ef8e8 100644 --- a/googleapis-raw/src/api/control.rs +++ b/googleapis-raw/src/api/control.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Selects and configures the service controller used by the service. The /// service controller handles features like abuse, quota, billing, logging, diff --git a/googleapis-raw/src/api/distribution.rs b/googleapis-raw/src/api/distribution.rs index c51e89a..625bca3 100644 --- a/googleapis-raw/src/api/distribution.rs +++ b/googleapis-raw/src/api/distribution.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// `Distribution` contains summary statistics for a population of values. It /// optionally contains a histogram representing the distribution of those values diff --git a/googleapis-raw/src/api/documentation.rs b/googleapis-raw/src/api/documentation.rs index 2c00cfe..c6f7010 100644 --- a/googleapis-raw/src/api/documentation.rs +++ b/googleapis-raw/src/api/documentation.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Documentation) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/endpoint.rs b/googleapis-raw/src/api/endpoint.rs index 331d163..a18cb86 100644 --- a/googleapis-raw/src/api/endpoint.rs +++ b/googleapis-raw/src/api/endpoint.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Endpoint) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/field_behavior.rs b/googleapis-raw/src/api/field_behavior.rs index 4d7a92f..dfef8b7 100644 --- a/googleapis-raw/src/api/field_behavior.rs +++ b/googleapis-raw/src/api/field_behavior.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// An indicator of the behavior of a given field (for example, that a field /// is required in requests, or given as output but ignored as input). diff --git a/googleapis-raw/src/api/http.rs b/googleapis-raw/src/api/http.rs index 09e3bee..32de8d3 100644 --- a/googleapis-raw/src/api/http.rs +++ b/googleapis-raw/src/api/http.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Defines the HTTP configuration for an API service. It contains a list of /// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method diff --git a/googleapis-raw/src/api/httpbody.rs b/googleapis-raw/src/api/httpbody.rs index 900f66d..196f237 100644 --- a/googleapis-raw/src/api/httpbody.rs +++ b/googleapis-raw/src/api/httpbody.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.HttpBody) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/label.rs b/googleapis-raw/src/api/label.rs index decc643..7633531 100644 --- a/googleapis-raw/src/api/label.rs +++ b/googleapis-raw/src/api/label.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A description of a label. // @@protoc_insertion_point(message:google.api.LabelDescriptor) diff --git a/googleapis-raw/src/api/launch_stage.rs b/googleapis-raw/src/api/launch_stage.rs index 0d32953..5e24faf 100644 --- a/googleapis-raw/src/api/launch_stage.rs +++ b/googleapis-raw/src/api/launch_stage.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// The launch stage as defined by [Google Cloud Platform /// Launch Stages](http://cloud.google.com/terms/launch-stages). diff --git a/googleapis-raw/src/api/log.rs b/googleapis-raw/src/api/log.rs index bf2b284..fe5b92c 100644 --- a/googleapis-raw/src/api/log.rs +++ b/googleapis-raw/src/api/log.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.LogDescriptor) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/logging.rs b/googleapis-raw/src/api/logging.rs index 6565f19..55e6b95 100644 --- a/googleapis-raw/src/api/logging.rs +++ b/googleapis-raw/src/api/logging.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Logging) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/metric.rs b/googleapis-raw/src/api/metric.rs index 9de6c06..1977c74 100644 --- a/googleapis-raw/src/api/metric.rs +++ b/googleapis-raw/src/api/metric.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Defines a metric type and its schema. Once a metric descriptor is created, /// deleting or altering it stops data collection and makes the metric type's diff --git a/googleapis-raw/src/api/monitored_resource.rs b/googleapis-raw/src/api/monitored_resource.rs index 98ee61a..39c13f7 100644 --- a/googleapis-raw/src/api/monitored_resource.rs +++ b/googleapis-raw/src/api/monitored_resource.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a /// type name and a set of labels. For example, the monitored resource diff --git a/googleapis-raw/src/api/monitoring.rs b/googleapis-raw/src/api/monitoring.rs index c648424..ecd8c78 100644 --- a/googleapis-raw/src/api/monitoring.rs +++ b/googleapis-raw/src/api/monitoring.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Monitoring) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/quota.rs b/googleapis-raw/src/api/quota.rs index 840b0e3..a49f84a 100644 --- a/googleapis-raw/src/api/quota.rs +++ b/googleapis-raw/src/api/quota.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Quota) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/resource.rs b/googleapis-raw/src/api/resource.rs index dc1b3d2..127dbf9 100644 --- a/googleapis-raw/src/api/resource.rs +++ b/googleapis-raw/src/api/resource.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.ResourceDescriptor) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/service.rs b/googleapis-raw/src/api/service.rs index d0cee10..e50b28d 100644 --- a/googleapis-raw/src/api/service.rs +++ b/googleapis-raw/src/api/service.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.api.Service) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/api/servicecontrol/v1/check_error.rs b/googleapis-raw/src/api/servicecontrol/v1/check_error.rs index 234eadc..b5e6f22 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/check_error.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/check_error.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Defines the errors to be returned in /// [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors]. diff --git a/googleapis-raw/src/api/servicecontrol/v1/distribution.rs b/googleapis-raw/src/api/servicecontrol/v1/distribution.rs index ec4f608..51202cf 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/distribution.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/distribution.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Distribution represents a frequency distribution of double-valued sample /// points. It contains the size of the population of sample points plus diff --git a/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs b/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs index 60bcc51..ce38fed 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/log_entry.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// An individual log entry. // @@protoc_insertion_point(message:google.api.servicecontrol.v1.LogEntry) diff --git a/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs b/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs index 8533206..d4cb218 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/metric_value.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a single metric value. // @@protoc_insertion_point(message:google.api.servicecontrol.v1.MetricValue) diff --git a/googleapis-raw/src/api/servicecontrol/v1/mod.rs b/googleapis-raw/src/api/servicecontrol/v1/mod.rs index 4b672b6..13447d3 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/mod.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/mod.rs @@ -1,7 +1,5 @@ // @generated -pub(crate) use crate::{ - api::annotations, logging::r#type::log_severity, r#type::money, rpc::status, -}; +use crate::{api::annotations, logging::r#type::log_severity, r#type::money, rpc::status}; pub mod check_error; pub mod distribution; diff --git a/googleapis-raw/src/api/servicecontrol/v1/operation.rs b/googleapis-raw/src/api/servicecontrol/v1/operation.rs index 022b50a..f568334 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/operation.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/operation.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents information regarding an operation. // @@protoc_insertion_point(message:google.api.servicecontrol.v1.Operation) diff --git a/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs b/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs index 3166380..bd10014 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/quota_controller.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for the AllocateQuota method. // @@protoc_insertion_point(message:google.api.servicecontrol.v1.AllocateQuotaRequest) diff --git a/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs b/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs index f074237..2d4930d 100644 --- a/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs +++ b/googleapis-raw/src/api/servicecontrol/v1/service_controller.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for the Check method. // @@protoc_insertion_point(message:google.api.servicecontrol.v1.CheckRequest) diff --git a/googleapis-raw/src/api/servicemanagement/v1/mod.rs b/googleapis-raw/src/api/servicemanagement/v1/mod.rs index 47425a8..7632bc1 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/mod.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/mod.rs @@ -1,10 +1,9 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::{annotations, config_change, metric, service}, longrunning::operations, rpc::status, }; - pub mod resources; pub mod servicemanager; pub mod servicemanager_grpc; diff --git a/googleapis-raw/src/api/servicemanagement/v1/resources.rs b/googleapis-raw/src/api/servicemanagement/v1/resources.rs index 37af661..d915c2a 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/resources.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/resources.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// The full representation of a Service that is managed by /// Google Service Management. diff --git a/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs b/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs index 421d14d..3a9f17f 100644 --- a/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs +++ b/googleapis-raw/src/api/servicemanagement/v1/servicemanager.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for `ListServices` method. // @@protoc_insertion_point(message:google.api.servicemanagement.v1.ListServicesRequest) diff --git a/googleapis-raw/src/api/source_info.rs b/googleapis-raw/src/api/source_info.rs index 88db78b..25cb805 100644 --- a/googleapis-raw/src/api/source_info.rs +++ b/googleapis-raw/src/api/source_info.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Source information used to create a Service Config // @@protoc_insertion_point(message:google.api.SourceInfo) diff --git a/googleapis-raw/src/api/system_parameter.rs b/googleapis-raw/src/api/system_parameter.rs index 3bdde0f..73491db 100644 --- a/googleapis-raw/src/api/system_parameter.rs +++ b/googleapis-raw/src/api/system_parameter.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// ### System parameter configuration /// diff --git a/googleapis-raw/src/api/usage.rs b/googleapis-raw/src/api/usage.rs index 5a9a9cf..91fac0a 100644 --- a/googleapis-raw/src/api/usage.rs +++ b/googleapis-raw/src/api/usage.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Configuration controlling usage of a service. // @@protoc_insertion_point(message:google.api.Usage) diff --git a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs index 80dc5c3..bbf3192 100644 --- a/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs +++ b/googleapis-raw/src/bigtable/admin/v2/bigtable_instance_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for BigtableInstanceAdmin.CreateInstance. // @@protoc_insertion_point(message:google.bigtable.admin.v2.CreateInstanceRequest) diff --git a/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs b/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs index cfe9c64..19bab16 100644 --- a/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs +++ b/googleapis-raw/src/bigtable/admin/v2/bigtable_table_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for /// [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] diff --git a/googleapis-raw/src/bigtable/admin/v2/common.rs b/googleapis-raw/src/bigtable/admin/v2/common.rs index b32fae5..6076355 100644 --- a/googleapis-raw/src/bigtable/admin/v2/common.rs +++ b/googleapis-raw/src/bigtable/admin/v2/common.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Storage media types for persisting Bigtable data. #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] diff --git a/googleapis-raw/src/bigtable/admin/v2/instance.rs b/googleapis-raw/src/bigtable/admin/v2/instance.rs index a00aefa..08116b0 100644 --- a/googleapis-raw/src/bigtable/admin/v2/instance.rs +++ b/googleapis-raw/src/bigtable/admin/v2/instance.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and /// the resources that serve them. diff --git a/googleapis-raw/src/bigtable/admin/v2/mod.rs b/googleapis-raw/src/bigtable/admin/v2/mod.rs index e3e707d..f42c9a3 100644 --- a/googleapis-raw/src/bigtable/admin/v2/mod.rs +++ b/googleapis-raw/src/bigtable/admin/v2/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::annotations, empty, iam::v1::{iam_policy, policy}, diff --git a/googleapis-raw/src/bigtable/admin/v2/table.rs b/googleapis-raw/src/bigtable/admin/v2/table.rs index ffdddf6..a82ca89 100644 --- a/googleapis-raw/src/bigtable/admin/v2/table.rs +++ b/googleapis-raw/src/bigtable/admin/v2/table.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A collection of user data indexed by row, column, and timestamp. /// Each table is served using the resources of its parent cluster. diff --git a/googleapis-raw/src/bigtable/v2/bigtable.rs b/googleapis-raw/src/bigtable/v2/bigtable.rs index 5ec1658..3a0ed06 100644 --- a/googleapis-raw/src/bigtable/v2/bigtable.rs +++ b/googleapis-raw/src/bigtable/v2/bigtable.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for Bigtable.ReadRows. // @@protoc_insertion_point(message:google.bigtable.v2.ReadRowsRequest) diff --git a/googleapis-raw/src/bigtable/v2/data.rs b/googleapis-raw/src/bigtable/v2/data.rs index 1e79729..947d0d8 100644 --- a/googleapis-raw/src/bigtable/v2/data.rs +++ b/googleapis-raw/src/bigtable/v2/data.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Specifies the complete (requested) contents of a single row of a table. /// Rows which exceed 256MiB in size cannot be read in full. diff --git a/googleapis-raw/src/bigtable/v2/mod.rs b/googleapis-raw/src/bigtable/v2/mod.rs index 6471b45..79cf67c 100644 --- a/googleapis-raw/src/bigtable/v2/mod.rs +++ b/googleapis-raw/src/bigtable/v2/mod.rs @@ -1,6 +1,5 @@ // @generated - -pub(crate) use crate::{ +use crate::{ api::{annotations, client, field_behavior, resource}, rpc::status, }; diff --git a/googleapis-raw/src/cloud/asset/v1/asset_service.rs b/googleapis-raw/src/cloud/asset/v1/asset_service.rs index 9db2773..3ff9667 100644 --- a/googleapis-raw/src/cloud/asset/v1/asset_service.rs +++ b/googleapis-raw/src/cloud/asset/v1/asset_service.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Export asset request. // @@protoc_insertion_point(message:google.cloud.asset.v1.ExportAssetsRequest) diff --git a/googleapis-raw/src/cloud/asset/v1/assets.rs b/googleapis-raw/src/cloud/asset/v1/assets.rs index 1924895..f8af29e 100644 --- a/googleapis-raw/src/cloud/asset/v1/assets.rs +++ b/googleapis-raw/src/cloud/asset/v1/assets.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Temporal asset. In addition to the asset, the temporal asset includes the /// status of the asset and valid from and to time of it. diff --git a/googleapis-raw/src/cloud/asset/v1/mod.rs b/googleapis-raw/src/cloud/asset/v1/mod.rs index a2d7947..3323cee 100644 --- a/googleapis-raw/src/cloud/asset/v1/mod.rs +++ b/googleapis-raw/src/cloud/asset/v1/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::{annotations, client, field_behavior, resource}, iam::v1::policy, longrunning::operations, diff --git a/googleapis-raw/src/empty.rs b/googleapis-raw/src/empty.rs index 3cc9bca..7901b9b 100644 --- a/googleapis-raw/src/empty.rs +++ b/googleapis-raw/src/empty.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:grpc.testing.Empty) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/iam/v1/iam_policy.rs b/googleapis-raw/src/iam/v1/iam_policy.rs index 495db96..1570f99 100644 --- a/googleapis-raw/src/iam/v1/iam_policy.rs +++ b/googleapis-raw/src/iam/v1/iam_policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Request message for `SetIamPolicy` method. // @@protoc_insertion_point(message:google.iam.v1.SetIamPolicyRequest) diff --git a/googleapis-raw/src/iam/v1/mod.rs b/googleapis-raw/src/iam/v1/mod.rs index 2def699..cd2e677 100644 --- a/googleapis-raw/src/iam/v1/mod.rs +++ b/googleapis-raw/src/iam/v1/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::{annotations, client, field_behavior, resource}, r#type::expr, }; diff --git a/googleapis-raw/src/iam/v1/options.rs b/googleapis-raw/src/iam/v1/options.rs index 61c8e11..c564194 100644 --- a/googleapis-raw/src/iam/v1/options.rs +++ b/googleapis-raw/src/iam/v1/options.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Encapsulates settings provided to GetIamPolicy. // @@protoc_insertion_point(message:google.iam.v1.GetPolicyOptions) diff --git a/googleapis-raw/src/iam/v1/policy.rs b/googleapis-raw/src/iam/v1/policy.rs index 2960ffb..90ea1f9 100644 --- a/googleapis-raw/src/iam/v1/policy.rs +++ b/googleapis-raw/src/iam/v1/policy.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.iam.v1.Policy) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/lib.rs b/googleapis-raw/src/lib.rs index fd4e5bd..8cc9bf2 100644 --- a/googleapis-raw/src/lib.rs +++ b/googleapis-raw/src/lib.rs @@ -17,7 +17,7 @@ // This appears as a comment in each generated file. Add it once here // to save a bit of time and effort. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; pub const API_CLIENT_ID: &str = "gcp-grpc-rs"; @@ -28,17 +28,17 @@ pub(crate) mod rpc; pub(crate) mod r#type; // pub mod empty; -#[cfg(feature = "bigtable")] -#[cfg(any(feature = "bigtable", feature = "pubsub", feature = "spanner"))] -#[cfg(feature = "pubsub")] -#[cfg(feature = "spanner")] -pub mod empty; + pub mod api; +#[cfg(feature = "bigtable")] pub mod bigtable; pub mod cloud; +pub mod empty; pub mod identity; pub mod logging; pub mod longrunning; pub mod orgpolicy; +#[cfg(feature = "pubsub")] pub mod pubsub; +#[cfg(feature = "spanner")] pub mod spanner; diff --git a/googleapis-raw/src/logging/type/http_request.rs b/googleapis-raw/src/logging/type/http_request.rs index 53b86ea..fdde9f0 100644 --- a/googleapis-raw/src/logging/type/http_request.rs +++ b/googleapis-raw/src/logging/type/http_request.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A common proto for logging HTTP requests. Only contains semantics /// defined by the HTTP specification. Product-specific logging diff --git a/googleapis-raw/src/logging/type/log_severity.rs b/googleapis-raw/src/logging/type/log_severity.rs index 92be613..3c29578 100644 --- a/googleapis-raw/src/logging/type/log_severity.rs +++ b/googleapis-raw/src/logging/type/log_severity.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] // @@protoc_insertion_point(enum:google.logging.type.LogSeverity) diff --git a/googleapis-raw/src/logging/type/mod.rs b/googleapis-raw/src/logging/type/mod.rs index af17a77..252c567 100644 --- a/googleapis-raw/src/logging/type/mod.rs +++ b/googleapis-raw/src/logging/type/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::api::annotations; +use crate::api::annotations; pub mod http_request; pub mod log_severity; diff --git a/googleapis-raw/src/longrunning/mod.rs b/googleapis-raw/src/longrunning/mod.rs index 52e7671..8f79fa0 100644 --- a/googleapis-raw/src/longrunning/mod.rs +++ b/googleapis-raw/src/longrunning/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{api::annotations, empty, rpc::status}; +use crate::{api::annotations, empty, rpc::status}; pub mod operations; pub mod operations_grpc; diff --git a/googleapis-raw/src/longrunning/operations.rs b/googleapis-raw/src/longrunning/operations.rs index 1c44e2f..c5bd150 100644 --- a/googleapis-raw/src/longrunning/operations.rs +++ b/googleapis-raw/src/longrunning/operations.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// This resource represents a long-running operation that is the result of a /// network API call. diff --git a/googleapis-raw/src/pubsub/v1/mod.rs b/googleapis-raw/src/pubsub/v1/mod.rs index 135cc64..d614e0d 100644 --- a/googleapis-raw/src/pubsub/v1/mod.rs +++ b/googleapis-raw/src/pubsub/v1/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::{annotations, client}, empty, }; diff --git a/googleapis-raw/src/pubsub/v1/pubsub.rs b/googleapis-raw/src/pubsub/v1/pubsub.rs index c40b293..76dfccf 100644 --- a/googleapis-raw/src/pubsub/v1/pubsub.rs +++ b/googleapis-raw/src/pubsub/v1/pubsub.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.pubsub.v1.MessageStoragePolicy) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/pubsub/v1beta2/mod.rs b/googleapis-raw/src/pubsub/v1beta2/mod.rs index 8908db0..e3613d1 100644 --- a/googleapis-raw/src/pubsub/v1beta2/mod.rs +++ b/googleapis-raw/src/pubsub/v1beta2/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::empty; +use crate::empty; pub mod pubsub; pub mod pubsub_grpc; diff --git a/googleapis-raw/src/pubsub/v1beta2/pubsub.rs b/googleapis-raw/src/pubsub/v1beta2/pubsub.rs index 770deca..a595d64 100644 --- a/googleapis-raw/src/pubsub/v1beta2/pubsub.rs +++ b/googleapis-raw/src/pubsub/v1beta2/pubsub.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A topic resource. // @@protoc_insertion_point(message:google.pubsub.v1beta2.Topic) diff --git a/googleapis-raw/src/rpc/code.rs b/googleapis-raw/src/rpc/code.rs index 5e2cc99..00b99b1 100644 --- a/googleapis-raw/src/rpc/code.rs +++ b/googleapis-raw/src/rpc/code.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// The canonical error codes for Google APIs. /// diff --git a/googleapis-raw/src/rpc/error_details.rs b/googleapis-raw/src/rpc/error_details.rs index f680280..e249fb3 100644 --- a/googleapis-raw/src/rpc/error_details.rs +++ b/googleapis-raw/src/rpc/error_details.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Describes when the clients can retry a failed request. Clients could ignore /// the recommendation here or retry when this information is missing from error diff --git a/googleapis-raw/src/rpc/status.rs b/googleapis-raw/src/rpc/status.rs index f5c95ce..aed8616 100644 --- a/googleapis-raw/src/rpc/status.rs +++ b/googleapis-raw/src/rpc/status.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.rpc.Status) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/spanner/admin/database/v1/mod.rs b/googleapis-raw/src/spanner/admin/database/v1/mod.rs index 3790ec3..e95d4e7 100644 --- a/googleapis-raw/src/spanner/admin/database/v1/mod.rs +++ b/googleapis-raw/src/spanner/admin/database/v1/mod.rs @@ -1,5 +1,6 @@ // @generated -pub(crate) use crate::{ + +use crate::{ api::{annotations, client, field_behavior, resource}, empty, iam::v1::{iam_policy, policy}, diff --git a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs index ee604bf..3ab6494 100644 --- a/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs +++ b/googleapis-raw/src/spanner/admin/database/v1/spanner_database_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A Cloud Spanner database. // @@protoc_insertion_point(message:google.spanner.admin.database.v1.Database) diff --git a/googleapis-raw/src/spanner/admin/instance/v1/mod.rs b/googleapis-raw/src/spanner/admin/instance/v1/mod.rs index de9ac59..39a2642 100644 --- a/googleapis-raw/src/spanner/admin/instance/v1/mod.rs +++ b/googleapis-raw/src/spanner/admin/instance/v1/mod.rs @@ -1,5 +1,5 @@ // @generated -pub(crate) use crate::{ +use crate::{ api::{annotations, client, field_behavior, resource}, empty, iam::v1::{iam_policy, policy}, diff --git a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs index c5cc231..e6fca62 100644 --- a/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs +++ b/googleapis-raw/src/spanner/admin/instance/v1/spanner_instance_admin.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.spanner.admin.instance.v1.ReplicaInfo) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/spanner/v1/keys.rs b/googleapis-raw/src/spanner/v1/keys.rs index 1b5458c..4e382f8 100644 --- a/googleapis-raw/src/spanner/v1/keys.rs +++ b/googleapis-raw/src/spanner/v1/keys.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.spanner.v1.KeyRange) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/spanner/v1/mod.rs b/googleapis-raw/src/spanner/v1/mod.rs index 6ee3caf..db5de5b 100644 --- a/googleapis-raw/src/spanner/v1/mod.rs +++ b/googleapis-raw/src/spanner/v1/mod.rs @@ -1,10 +1,10 @@ // @generated -pub(crate) use crate::{ + +use crate::{ api::{annotations, client, field_behavior, resource}, empty, rpc::status, }; - pub mod keys; pub mod mutation; pub mod query_plan; diff --git a/googleapis-raw/src/spanner/v1/mutation.rs b/googleapis-raw/src/spanner/v1/mutation.rs index e2eb772..b56d1ad 100644 --- a/googleapis-raw/src/spanner/v1/mutation.rs +++ b/googleapis-raw/src/spanner/v1/mutation.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A modification to one or more Cloud Spanner rows. Mutations can be /// applied to a Cloud Spanner database by sending them in a diff --git a/googleapis-raw/src/spanner/v1/query_plan.rs b/googleapis-raw/src/spanner/v1/query_plan.rs index 2c1eac1..8be2eb7 100644 --- a/googleapis-raw/src/spanner/v1/query_plan.rs +++ b/googleapis-raw/src/spanner/v1/query_plan.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Node information for nodes appearing in a [QueryPlan.plan_nodes][google.spanner.v1.QueryPlan.plan_nodes]. // @@protoc_insertion_point(message:google.spanner.v1.PlanNode) diff --git a/googleapis-raw/src/spanner/v1/result_set.rs b/googleapis-raw/src/spanner/v1/result_set.rs index ae8f54e..7bd631e 100644 --- a/googleapis-raw/src/spanner/v1/result_set.rs +++ b/googleapis-raw/src/spanner/v1/result_set.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Results from [Read][google.spanner.v1.Spanner.Read] or /// [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. diff --git a/googleapis-raw/src/spanner/v1/spanner.rs b/googleapis-raw/src/spanner/v1/spanner.rs index febb967..6ad08e4 100644 --- a/googleapis-raw/src/spanner/v1/spanner.rs +++ b/googleapis-raw/src/spanner/v1/spanner.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// The request for [CreateSession][google.spanner.v1.Spanner.CreateSession]. // @@protoc_insertion_point(message:google.spanner.v1.CreateSessionRequest) diff --git a/googleapis-raw/src/spanner/v1/transaction.rs b/googleapis-raw/src/spanner/v1/transaction.rs index 4d8144d..0aac0f6 100644 --- a/googleapis-raw/src/spanner/v1/transaction.rs +++ b/googleapis-raw/src/spanner/v1/transaction.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.spanner.v1.TransactionOptions) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/spanner/v1/type_.rs b/googleapis-raw/src/spanner/v1/type_.rs index 684c241..ed99eb5 100644 --- a/googleapis-raw/src/spanner/v1/type_.rs +++ b/googleapis-raw/src/spanner/v1/type_.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// `Type` indicates the type of a Cloud Spanner value, as might be stored in a /// table cell or returned from an SQL query. diff --git a/googleapis-raw/src/type/calendar_period.rs b/googleapis-raw/src/type/calendar_period.rs index 194eae3..26c253c 100644 --- a/googleapis-raw/src/type/calendar_period.rs +++ b/googleapis-raw/src/type/calendar_period.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// A `CalendarPeriod` represents the abstract concept of a time period that has /// a canonical start. Grammatically, "the start of the current diff --git a/googleapis-raw/src/type/color.rs b/googleapis-raw/src/type/color.rs index ee8c235..bf4bd48 100644 --- a/googleapis-raw/src/type/color.rs +++ b/googleapis-raw/src/type/color.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.type.Color) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/type/date.rs b/googleapis-raw/src/type/date.rs index a1a9fe4..648edcb 100644 --- a/googleapis-raw/src/type/date.rs +++ b/googleapis-raw/src/type/date.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a whole or partial calendar date, e.g. a birthday. The time of day /// and time zone are either specified elsewhere or are not significant. The date diff --git a/googleapis-raw/src/type/dayofweek.rs b/googleapis-raw/src/type/dayofweek.rs index 2925abf..324f963 100644 --- a/googleapis-raw/src/type/dayofweek.rs +++ b/googleapis-raw/src/type/dayofweek.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a day of week. #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] diff --git a/googleapis-raw/src/type/expr.rs b/googleapis-raw/src/type/expr.rs index 03dd641..a66a6a0 100644 --- a/googleapis-raw/src/type/expr.rs +++ b/googleapis-raw/src/type/expr.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.type.Expr) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/type/fraction.rs b/googleapis-raw/src/type/fraction.rs index 5cf72d9..5227071 100644 --- a/googleapis-raw/src/type/fraction.rs +++ b/googleapis-raw/src/type/fraction.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a fraction in terms of a numerator divided by a denominator. // @@protoc_insertion_point(message:google.type.Fraction) diff --git a/googleapis-raw/src/type/latlng.rs b/googleapis-raw/src/type/latlng.rs index 6a7389f..e9ef11e 100644 --- a/googleapis-raw/src/type/latlng.rs +++ b/googleapis-raw/src/type/latlng.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// An object representing a latitude/longitude pair. This is expressed as a pair /// of doubles representing degrees latitude and degrees longitude. Unless diff --git a/googleapis-raw/src/type/money.rs b/googleapis-raw/src/type/money.rs index bda85a8..2ab85d6 100644 --- a/googleapis-raw/src/type/money.rs +++ b/googleapis-raw/src/type/money.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents an amount of money with its currency type. // @@protoc_insertion_point(message:google.type.Money) diff --git a/googleapis-raw/src/type/month.rs b/googleapis-raw/src/type/month.rs index defe4d0..6c3f3ad 100644 --- a/googleapis-raw/src/type/month.rs +++ b/googleapis-raw/src/type/month.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a month in the Gregorian calendar. #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] diff --git a/googleapis-raw/src/type/postal_address.rs b/googleapis-raw/src/type/postal_address.rs index ab74500..354da5a 100644 --- a/googleapis-raw/src/type/postal_address.rs +++ b/googleapis-raw/src/type/postal_address.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.type.PostalAddress) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/type/quaternion.rs b/googleapis-raw/src/type/quaternion.rs index cbb3704..6d62edd 100644 --- a/googleapis-raw/src/type/quaternion.rs +++ b/googleapis-raw/src/type/quaternion.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; // @@protoc_insertion_point(message:google.type.Quaternion) #[derive(PartialEq,Clone,Default,Debug)] diff --git a/googleapis-raw/src/type/timeofday.rs b/googleapis-raw/src/type/timeofday.rs index 8385158..68b2ff4 100644 --- a/googleapis-raw/src/type/timeofday.rs +++ b/googleapis-raw/src/type/timeofday.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 3.3.0. Do not edit +// This file is generated by rust-protobuf 3.4.0. Do not edit // .proto file is parsed by protoc --rust-out=... // @generated @@ -23,7 +23,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_3_0; +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Represents a time of day. The date and time zone are either not significant /// or are specified elsewhere. An API may choose to allow leap seconds. Related From 4f604edc97b20e127c338909d7f1da51b857011b Mon Sep 17 00:00:00 2001 From: jrconlin Date: Thu, 28 Mar 2024 07:29:20 -0700 Subject: [PATCH 6/8] f release a beta version of the Protobuf changes. --- Cargo.toml | 2 +- googleapis/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b52a4a0..950b9f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ members = ["googleapis", "googleapis-raw"] resolver = "2" [workspace.package] -version = "0.17.0" # don't forget to update `./googleapis/Cargo.toml` +version = "0.17.1-beta.1" # don't forget to update `./googleapis/Cargo.toml` authors = [ "Ferrous Systems", "Mozilla Services Engineering ", diff --git a/googleapis/Cargo.toml b/googleapis/Cargo.toml index 3bb21ae..4ef8ce4 100644 --- a/googleapis/Cargo.toml +++ b/googleapis/Cargo.toml @@ -26,7 +26,7 @@ description = "A set of client libraries to interact with various Google Cloud P [dependencies] futures.workspace = true grpcio = { workspace = true, features = ["_secure"] } -google-cloud-rust-raw = { version = "0.17.0", path = "../googleapis-raw", features = [ +google-cloud-rust-raw = { version = "0.17.1-beta.1", path = "../googleapis-raw", features = [ "bigtable", "pubsub", "spanner", From b01d1439d03a22f3615b858c908e3d923c0cbde6 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Fri, 25 Oct 2024 16:12:45 -0700 Subject: [PATCH 7/8] f update for Oct 2024 --- Cargo.toml | 6 +- googleapis-raw/Cargo.toml | 1 + googleapis-raw/generate.sh | 157 - googleapis-raw/grpc | 2 +- googleapis-raw/prepare.sh | 3 +- googleapis-raw/src/api/annotations.rs | 48 +- googleapis-raw/src/api/auth.rs | 799 +- googleapis-raw/src/api/backend.rs | 442 +- googleapis-raw/src/api/billing.rs | 135 +- googleapis-raw/src/api/client.rs | 3474 ++- googleapis-raw/src/api/config_change.rs | 80 +- googleapis-raw/src/api/consumer.rs | 8 +- googleapis-raw/src/api/context.rs | 97 +- googleapis-raw/src/api/control.rs | 105 +- googleapis-raw/src/api/distribution.rs | 346 +- googleapis-raw/src/api/documentation.rs | 307 +- googleapis-raw/src/api/endpoint.rs | 183 +- googleapis-raw/src/api/error_reason.rs | 875 + googleapis-raw/src/api/field_behavior.rs | 208 +- googleapis-raw/src/api/field_info.rs | 547 + googleapis-raw/src/api/http.rs | 694 +- googleapis-raw/src/api/httpbody.rs | 84 +- googleapis-raw/src/api/label.rs | 68 +- googleapis-raw/src/api/launch_stage.rs | 182 +- googleapis-raw/src/api/log.rs | 50 +- googleapis-raw/src/api/logging.rs | 99 +- googleapis-raw/src/api/metric.rs | 752 +- googleapis-raw/src/api/mod.rs | 5 + googleapis-raw/src/api/monitored_resource.rs | 275 +- googleapis-raw/src/api/monitoring.rs | 173 +- googleapis-raw/src/api/policy.rs | 489 + googleapis-raw/src/api/quota.rs | 196 +- googleapis-raw/src/api/resource.rs | 595 +- googleapis-raw/src/api/routing.rs | 694 + googleapis-raw/src/api/service.rs | 564 +- .../src/api/servicecontrol/v1/check_error.rs | 418 +- .../src/api/servicecontrol/v1/distribution.rs | 432 +- .../src/api/servicecontrol/v1/http_request.rs | 585 + .../src/api/servicecontrol/v1/log_entry.rs | 684 +- .../src/api/servicecontrol/v1/metric_value.rs | 187 +- .../src/api/servicecontrol/v1/mod.rs | 7 +- .../src/api/servicecontrol/v1/operation.rs | 309 +- .../api/servicecontrol/v1/quota_controller.rs | 595 +- .../v1/quota_controller_grpc.rs | 2 +- .../servicecontrol/v1/service_controller.rs | 744 +- .../v1/service_controller_grpc.rs | 2 +- .../src/api/servicemanagement/v1/mod.rs | 4 +- .../src/api/servicemanagement/v1/resources.rs | 731 +- .../servicemanagement/v1/servicemanager.rs | 1503 +- .../v1/servicemanager_grpc.rs | 64 +- googleapis-raw/src/api/source_info.rs | 36 +- googleapis-raw/src/api/system_parameter.rs | 47 +- googleapis-raw/src/api/usage.rs | 164 +- googleapis-raw/src/api/visibility.rs | 457 + .../admin/v2/bigtable_instance_admin.rs | 2817 ++- .../admin/v2/bigtable_instance_admin_grpc.rs | 64 +- .../bigtable/admin/v2/bigtable_table_admin.rs | 10230 ++++++-- .../admin/v2/bigtable_table_admin_grpc.rs | 422 +- .../src/bigtable/admin/v2/common.rs | 267 +- .../src/bigtable/admin/v2/instance.rs | 3754 ++- googleapis-raw/src/bigtable/admin/v2/mod.rs | 4 +- googleapis-raw/src/bigtable/admin/v2/table.rs | 5686 ++++- googleapis-raw/src/bigtable/admin/v2/types.rs | 4907 ++++ googleapis-raw/src/bigtable/v2/bigtable.rs | 5453 +++- .../src/bigtable/v2/bigtable_grpc.rs | 100 +- googleapis-raw/src/bigtable/v2/data.rs | 10475 +++++--- .../src/bigtable/v2/feature_flags.rs | 391 + googleapis-raw/src/bigtable/v2/mod.rs | 7 +- .../src/bigtable/v2/request_stats.rs | 886 + .../src/bigtable/v2/response_params.rs | 247 + googleapis-raw/src/bigtable/v2/types.rs | 4904 ++++ .../src/cloud/asset/v1/asset_service.rs | 20822 +++++++++++++++- .../src/cloud/asset/v1/asset_service_grpc.rs | 634 +- googleapis-raw/src/cloud/asset/v1/assets.rs | 6548 ++++- googleapis-raw/src/cloud/asset/v1/mod.rs | 5 + googleapis-raw/src/cloud/config/mod.rs | 1 + googleapis-raw/src/cloud/config/v1/config.rs | 13839 ++++++++++ .../src/cloud/config/v1/config_grpc.rs | 731 + googleapis-raw/src/cloud/config/v1/mod.rs | 10 + googleapis-raw/src/cloud/mod.rs | 2 + googleapis-raw/src/cloud/orgpolicy/v1/mod.rs | 3 + .../src/cloud/orgpolicy/v1/orgpolicy.rs | 1364 + .../src/cloud/orgpolicy/v2/constraint.rs | 1506 ++ googleapis-raw/src/cloud/orgpolicy/v2/mod.rs | 9 + .../src/cloud/orgpolicy/v2/orgpolicy.rs | 4128 +++ .../src/cloud/orgpolicy/v2/orgpolicy_grpc.rs | 401 + .../agentendpoint/v1/agentendpoint.rs | 2635 ++ .../agentendpoint/v1/agentendpoint_grpc.rs | 213 + .../agentendpoint/v1/config_common.rs | 984 + .../osconfig/agentendpoint/v1/inventory.rs | 2954 +++ .../cloud/osconfig/agentendpoint/v1/mod.rs | 12 + .../osconfig/agentendpoint/v1/os_policy.rs | 5940 +++++ .../osconfig/agentendpoint/v1/patch_jobs.rs | 2724 ++ .../cloud/osconfig/agentendpoint/v1/tasks.rs | 3033 +++ .../src/cloud/osconfig/v1/inventory.rs | 4093 +++ googleapis-raw/src/cloud/osconfig/v1/mod.rs | 19 + .../src/cloud/osconfig/v1/os_policy.rs | 6538 +++++ .../v1/os_policy_assignment_reports.rs | 2152 ++ .../osconfig/v1/os_policy_assignments.rs | 3229 +++ .../src/cloud/osconfig/v1/osconfig_common.rs | 326 + .../src/cloud/osconfig/v1/osconfig_service.rs | 225 + .../osconfig/v1/osconfig_service_grpc.rs | 401 + .../osconfig/v1/osconfig_zonal_service.rs | 279 + .../v1/osconfig_zonal_service_grpc.rs | 401 + .../cloud/osconfig/v1/patch_deployments.rs | 3396 +++ .../src/cloud/osconfig/v1/patch_jobs.rs | 6329 +++++ .../src/cloud/osconfig/v1/vulnerability.rs | 2781 +++ .../cloud/osconfig/v1alpha/config_common.rs | 996 + .../instance_os_policies_compliance.rs | 1234 + .../src/cloud/osconfig/v1alpha/inventory.rs | 4098 +++ .../src/cloud/osconfig/v1alpha/mod.rs | 16 + .../src/cloud/osconfig/v1alpha/os_policy.rs | 6739 +++++ .../v1alpha/os_policy_assignment_reports.rs | 2153 ++ .../osconfig/v1alpha/os_policy_assignments.rs | 3258 +++ .../cloud/osconfig/v1alpha/osconfig_common.rs | 327 + .../v1alpha/osconfig_zonal_service.rs | 317 + .../v1alpha/osconfig_zonal_service_grpc.rs | 461 + .../cloud/osconfig/v1alpha/vulnerability.rs | 2782 +++ .../src/cloud/securitycenter/mod.rs | 2 + .../src/cloud/securitycenter/v1/access.rs | 821 + .../cloud/securitycenter/v1/application.rs | 243 + .../src/cloud/securitycenter/v1/asset.rs | 956 + .../securitycenter/v1/attack_exposure.rs | 464 + .../cloud/securitycenter/v1/attack_path.rs | 1233 + .../v1/backup_disaster_recovery.rs | 497 + .../securitycenter/v1/bigquery_export.rs | 469 + .../cloud/securitycenter/v1/cloud_armor.rs | 1082 + .../v1/cloud_dlp_data_profile.rs | 335 + .../securitycenter/v1/cloud_dlp_inspection.rs | 303 + .../src/cloud/securitycenter/v1/compliance.rs | 265 + .../src/cloud/securitycenter/v1/connection.rs | 427 + .../securitycenter/v1/contact_details.rs | 347 + .../src/cloud/securitycenter/v1/container.rs | 320 + .../src/cloud/securitycenter/v1/database.rs | 371 + ...ve_event_threat_detection_custom_module.rs | 475 + ...security_health_analytics_custom_module.rs | 432 + .../event_threat_detection_custom_module.rs | 552 + ...tection_custom_module_validation_errors.rs | 593 + .../cloud/securitycenter/v1/exfiltration.rs | 447 + .../securitycenter/v1/external_system.rs | 745 + .../src/cloud/securitycenter/v1/file.rs | 531 + .../src/cloud/securitycenter/v1/finding.rs | 2674 ++ .../src/cloud/securitycenter/v1/folder.rs | 241 + .../securitycenter/v1/group_membership.rs | 316 + .../cloud/securitycenter/v1/iam_binding.rs | 351 + .../src/cloud/securitycenter/v1/indicator.rs | 1166 + .../cloud/securitycenter/v1/kernel_rootkit.rs | 422 + .../src/cloud/securitycenter/v1/kubernetes.rs | 2183 ++ .../src/cloud/securitycenter/v1/label.rs | 244 + .../cloud/securitycenter/v1/load_balancer.rs | 216 + .../src/cloud/securitycenter/v1/log_entry.rs | 521 + .../cloud/securitycenter/v1/mitre_attack.rs | 1201 + .../src/cloud/securitycenter/v1/mod.rs | 64 + .../cloud/securitycenter/v1/mute_config.rs | 600 + .../src/cloud/securitycenter/v1/notebook.rs | 292 + .../securitycenter/v1/notification_config.rs | 605 + .../securitycenter/v1/notification_message.rs | 358 + .../src/cloud/securitycenter/v1/org_policy.rs | 223 + .../v1/organization_settings.rs | 577 + .../src/cloud/securitycenter/v1/process.rs | 599 + .../src/cloud/securitycenter/v1/resource.rs | 2625 ++ .../v1/resource_value_config.rs | 789 + .../v1/run_asset_discovery_response.rs | 336 + ...security_health_analytics_custom_config.rs | 905 + ...security_health_analytics_custom_module.rs | 528 + .../cloud/securitycenter/v1/security_marks.rs | 324 + .../securitycenter/v1/security_posture.rs | 590 + .../v1/securitycenter_service.rs | 18361 ++++++++++++++ .../v1/securitycenter_service_grpc.rs | 4322 ++++ .../src/cloud/securitycenter/v1/simulation.rs | 306 + .../src/cloud/securitycenter/v1/source.rs | 332 + .../securitycenter/v1/toxic_combination.rs | 255 + .../securitycenter/v1/valued_resource.rs | 603 + .../cloud/securitycenter/v1/vulnerability.rs | 2353 ++ .../src/cloud/securitycenter/v2/access.rs | 821 + .../cloud/securitycenter/v2/application.rs | 243 + .../securitycenter/v2/attack_exposure.rs | 469 + .../cloud/securitycenter/v2/attack_path.rs | 1235 + .../v2/backup_disaster_recovery.rs | 497 + .../securitycenter/v2/bigquery_export.rs | 477 + .../cloud/securitycenter/v2/cloud_armor.rs | 1082 + .../v2/cloud_dlp_data_profile.rs | 335 + .../securitycenter/v2/cloud_dlp_inspection.rs | 303 + .../src/cloud/securitycenter/v2/compliance.rs | 265 + .../src/cloud/securitycenter/v2/connection.rs | 427 + .../securitycenter/v2/contact_details.rs | 347 + .../src/cloud/securitycenter/v2/container.rs | 320 + .../src/cloud/securitycenter/v2/database.rs | 371 + .../cloud/securitycenter/v2/exfiltration.rs | 447 + .../securitycenter/v2/external_system.rs | 762 + .../src/cloud/securitycenter/v2/file.rs | 531 + .../src/cloud/securitycenter/v2/finding.rs | 2722 ++ .../src/cloud/securitycenter/v2/folder.rs | 241 + .../securitycenter/v2/group_membership.rs | 316 + .../cloud/securitycenter/v2/iam_binding.rs | 351 + .../src/cloud/securitycenter/v2/indicator.rs | 1166 + .../cloud/securitycenter/v2/kernel_rootkit.rs | 422 + .../src/cloud/securitycenter/v2/kubernetes.rs | 2183 ++ .../src/cloud/securitycenter/v2/label.rs | 244 + .../cloud/securitycenter/v2/load_balancer.rs | 216 + .../src/cloud/securitycenter/v2/log_entry.rs | 520 + .../cloud/securitycenter/v2/mitre_attack.rs | 1201 + .../src/cloud/securitycenter/v2/mod.rs | 53 + .../cloud/securitycenter/v2/mute_config.rs | 577 + .../src/cloud/securitycenter/v2/notebook.rs | 292 + .../securitycenter/v2/notification_config.rs | 613 + .../securitycenter/v2/notification_message.rs | 358 + .../src/cloud/securitycenter/v2/org_policy.rs | 223 + .../src/cloud/securitycenter/v2/process.rs | 599 + .../src/cloud/securitycenter/v2/resource.rs | 2806 +++ .../v2/resource_value_config.rs | 792 + .../cloud/securitycenter/v2/security_marks.rs | 350 + .../securitycenter/v2/security_posture.rs | 590 + .../v2/securitycenter_service.rs | 10628 ++++++++ .../v2/securitycenter_service_grpc.rs | 1241 + .../src/cloud/securitycenter/v2/simulation.rs | 308 + .../src/cloud/securitycenter/v2/source.rs | 333 + .../securitycenter/v2/toxic_combination.rs | 256 + .../securitycenter/v2/valued_resource.rs | 605 + .../cloud/securitycenter/v2/vulnerability.rs | 2353 ++ googleapis-raw/src/empty.rs | 2 +- googleapis-raw/src/iam/mod.rs | 1 + googleapis-raw/src/iam/v1/iam_policy.rs | 355 +- googleapis-raw/src/iam/v1/iam_policy_grpc.rs | 2 +- googleapis-raw/src/iam/v1/options.rs | 105 +- googleapis-raw/src/iam/v1/policy.rs | 1167 +- googleapis-raw/src/iam/v2/deny.rs | 442 + googleapis-raw/src/iam/v2/mod.rs | 10 + googleapis-raw/src/iam/v2/policy.rs | 2041 ++ googleapis-raw/src/iam/v2/policy_grpc.rs | 191 + .../type/device_resources.rs | 392 + .../identity/accesscontextmanager/type/mod.rs | 3 + .../v1/access_context_manager.rs | 5763 +++++ .../v1/access_context_manager_grpc.rs | 821 + .../accesscontextmanager/v1/access_level.rs | 1709 ++ .../accesscontextmanager/v1/access_policy.rs | 420 + .../v1/gcp_user_access_binding.rs | 310 + .../identity/accesscontextmanager/v1/mod.rs | 16 +- .../v1/service_perimeter.rs | 3303 +++ .../src/logging/type/http_request.rs | 247 +- .../src/logging/type/log_severity.rs | 153 +- googleapis-raw/src/logging/type/mod.rs | 1 - googleapis-raw/src/longrunning/mod.rs | 6 +- googleapis-raw/src/longrunning/operations.rs | 591 +- .../src/longrunning/operations_grpc.rs | 2 +- googleapis-raw/src/pubsub/v1/mod.rs | 4 +- googleapis-raw/src/pubsub/v1/pubsub.rs | 16293 ++++++++---- googleapis-raw/src/pubsub/v1/pubsub_grpc.rs | 34 +- googleapis-raw/src/pubsub/v1/schema.rs | 3203 +++ googleapis-raw/src/pubsub/v1/schema_grpc.rs | 341 + googleapis-raw/src/pubsub/v1beta2/pubsub.rs | 2 +- .../src/pubsub/v1beta2/pubsub_grpc.rs | 2 +- googleapis-raw/src/rpc/code.rs | 150 +- googleapis-raw/src/rpc/error_details.rs | 783 +- googleapis-raw/src/rpc/http.rs | 646 + googleapis-raw/src/rpc/mod.rs | 1 + googleapis-raw/src/rpc/status.rs | 149 +- .../src/spanner/admin/database/v1/backup.rs | 4455 ++++ .../admin/database/v1/backup_schedule.rs | 2048 ++ .../src/spanner/admin/database/v1/common.rs | 847 + .../src/spanner/admin/database/v1/mod.rs | 5 +- .../database/v1/spanner_database_admin.rs | 5415 +++- .../v1/spanner_database_admin_grpc.rs | 1534 +- .../src/spanner/admin/instance/v1/common.rs | 490 + .../src/spanner/admin/instance/v1/mod.rs | 1 + .../instance/v1/spanner_instance_admin.rs | 10409 ++++++-- .../v1/spanner_instance_admin_grpc.rs | 1312 +- .../src/spanner/v1/commit_response.rs | 512 + googleapis-raw/src/spanner/v1/keys.rs | 315 +- googleapis-raw/src/spanner/v1/mod.rs | 2 + googleapis-raw/src/spanner/v1/mutation.rs | 265 +- googleapis-raw/src/spanner/v1/query_plan.rs | 311 +- googleapis-raw/src/spanner/v1/result_set.rs | 585 +- googleapis-raw/src/spanner/v1/spanner.rs | 5792 +++-- googleapis-raw/src/spanner/v1/spanner_grpc.rs | 809 +- googleapis-raw/src/spanner/v1/transaction.rs | 1345 +- googleapis-raw/src/spanner/v1/type_.rs | 579 +- googleapis-raw/src/type/calendar_period.rs | 71 +- googleapis-raw/src/type/color.rs | 304 +- googleapis-raw/src/type/date.rs | 126 +- googleapis-raw/src/type/datetime.rs | 742 + googleapis-raw/src/type/dayofweek.rs | 76 +- googleapis-raw/src/type/decimal.rs | 277 + googleapis-raw/src/type/expr.rs | 115 +- googleapis-raw/src/type/fraction.rs | 64 +- googleapis-raw/src/type/interval.rs | 259 + googleapis-raw/src/type/latlng.rs | 55 +- googleapis-raw/src/type/localized_text.rs | 240 + googleapis-raw/src/type/mod.rs | 5 + googleapis-raw/src/type/money.rs | 72 +- googleapis-raw/src/type/month.rs | 88 +- googleapis-raw/src/type/phone_number.rs | 634 + googleapis-raw/src/type/postal_address.rs | 92 +- googleapis-raw/src/type/quaternion.rs | 72 +- googleapis-raw/src/type/timeofday.rs | 35 +- googleapis/Cargo.toml | 2 +- 296 files changed, 342575 insertions(+), 27705 deletions(-) delete mode 100755 googleapis-raw/generate.sh create mode 100644 googleapis-raw/src/api/error_reason.rs create mode 100644 googleapis-raw/src/api/field_info.rs create mode 100644 googleapis-raw/src/api/policy.rs create mode 100644 googleapis-raw/src/api/routing.rs create mode 100644 googleapis-raw/src/api/servicecontrol/v1/http_request.rs create mode 100644 googleapis-raw/src/api/visibility.rs create mode 100644 googleapis-raw/src/bigtable/admin/v2/types.rs create mode 100644 googleapis-raw/src/bigtable/v2/feature_flags.rs create mode 100644 googleapis-raw/src/bigtable/v2/request_stats.rs create mode 100644 googleapis-raw/src/bigtable/v2/response_params.rs create mode 100644 googleapis-raw/src/bigtable/v2/types.rs create mode 100644 googleapis-raw/src/cloud/config/mod.rs create mode 100644 googleapis-raw/src/cloud/config/v1/config.rs create mode 100644 googleapis-raw/src/cloud/config/v1/config_grpc.rs create mode 100644 googleapis-raw/src/cloud/config/v1/mod.rs create mode 100644 googleapis-raw/src/cloud/orgpolicy/v1/orgpolicy.rs create mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/constraint.rs create mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy.rs create mode 100644 googleapis-raw/src/cloud/orgpolicy/v2/orgpolicy_grpc.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/config_common.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/inventory.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/os_policy.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/patch_jobs.rs create mode 100644 googleapis-raw/src/cloud/osconfig/agentendpoint/v1/tasks.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/inventory.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy_assignment_reports.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/os_policy_assignments.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_common.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_service.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_service_grpc.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/osconfig_zonal_service_grpc.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/patch_deployments.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/patch_jobs.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1/vulnerability.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/config_common.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/instance_os_policies_compliance.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/inventory.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignment_reports.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/os_policy_assignments.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_common.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/osconfig_zonal_service_grpc.rs create mode 100644 googleapis-raw/src/cloud/osconfig/v1alpha/vulnerability.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/mod.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/access.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/application.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/asset.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/attack_exposure.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/attack_path.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/backup_disaster_recovery.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/bigquery_export.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/cloud_armor.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/cloud_dlp_data_profile.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/cloud_dlp_inspection.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/compliance.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/connection.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/contact_details.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/container.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/database.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/effective_event_threat_detection_custom_module.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/event_threat_detection_custom_module.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/event_threat_detection_custom_module_validation_errors.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/exfiltration.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/external_system.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/file.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/finding.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/folder.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/group_membership.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/iam_binding.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/indicator.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/kernel_rootkit.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/kubernetes.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/label.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/load_balancer.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/log_entry.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/mitre_attack.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/mod.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/mute_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/notebook.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/notification_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/notification_message.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/org_policy.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/organization_settings.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/process.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/resource.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/resource_value_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/run_asset_discovery_response.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/security_health_analytics_custom_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/security_health_analytics_custom_module.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/security_marks.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/security_posture.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/securitycenter_service.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/securitycenter_service_grpc.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/simulation.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/source.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/toxic_combination.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/valued_resource.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v1/vulnerability.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/access.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/application.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/attack_exposure.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/attack_path.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/backup_disaster_recovery.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/bigquery_export.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/cloud_armor.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/cloud_dlp_data_profile.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/cloud_dlp_inspection.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/compliance.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/connection.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/contact_details.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/container.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/database.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/exfiltration.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/external_system.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/file.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/finding.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/folder.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/group_membership.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/iam_binding.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/indicator.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/kernel_rootkit.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/kubernetes.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/label.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/load_balancer.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/log_entry.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/mitre_attack.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/mod.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/mute_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/notebook.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/notification_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/notification_message.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/org_policy.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/process.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/resource.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/resource_value_config.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/security_marks.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/security_posture.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/securitycenter_service.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/securitycenter_service_grpc.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/simulation.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/source.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/toxic_combination.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/valued_resource.rs create mode 100644 googleapis-raw/src/cloud/securitycenter/v2/vulnerability.rs create mode 100644 googleapis-raw/src/iam/v2/deny.rs create mode 100644 googleapis-raw/src/iam/v2/mod.rs create mode 100644 googleapis-raw/src/iam/v2/policy.rs create mode 100644 googleapis-raw/src/iam/v2/policy_grpc.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/type/device_resources.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_context_manager_grpc.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_level.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/access_policy.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/gcp_user_access_binding.rs create mode 100644 googleapis-raw/src/identity/accesscontextmanager/v1/service_perimeter.rs create mode 100644 googleapis-raw/src/pubsub/v1/schema.rs create mode 100644 googleapis-raw/src/pubsub/v1/schema_grpc.rs create mode 100644 googleapis-raw/src/rpc/http.rs create mode 100644 googleapis-raw/src/spanner/admin/database/v1/backup.rs create mode 100644 googleapis-raw/src/spanner/admin/database/v1/backup_schedule.rs create mode 100644 googleapis-raw/src/spanner/admin/database/v1/common.rs create mode 100644 googleapis-raw/src/spanner/admin/instance/v1/common.rs create mode 100644 googleapis-raw/src/spanner/v1/commit_response.rs create mode 100644 googleapis-raw/src/type/datetime.rs create mode 100644 googleapis-raw/src/type/decimal.rs create mode 100644 googleapis-raw/src/type/interval.rs create mode 100644 googleapis-raw/src/type/localized_text.rs create mode 100644 googleapis-raw/src/type/phone_number.rs diff --git a/Cargo.toml b/Cargo.toml index 950b9f6..fabea4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ members = ["googleapis", "googleapis-raw"] resolver = "2" [workspace.package] -version = "0.17.1-beta.1" # don't forget to update `./googleapis/Cargo.toml` +version = "0.17.1-beta.3" # don't forget to update `./googleapis/Cargo.toml` authors = [ "Ferrous Systems", "Mozilla Services Engineering ", @@ -29,7 +29,7 @@ repository = "https://github.com/mozilla-services/mozilla-rust-sdk/" edition = "2021" [workspace.dependencies] -futures = "0.3.5" +futures = "0.3" # Absolutely lock to these versions of grpcio and protobuf with a `=` prefix # Not providing that lock means that cargo will "helpfully" update beyond those # versions because versions are a suggestion, not a rule. @@ -40,4 +40,4 @@ grpcio = { version = "0.13.0", default-features = false, features = [ ] } # grpcio currently does NOT support protobuf 3+ # protobuf = { version = "=2.28.0" } -protobuf = { version = "3.4.0" } +protobuf = { version = "=3.4.0" } # locked by grpcio-compiler 0.13 diff --git a/googleapis-raw/Cargo.toml b/googleapis-raw/Cargo.toml index 160a985..8961f32 100644 --- a/googleapis-raw/Cargo.toml +++ b/googleapis-raw/Cargo.toml @@ -36,6 +36,7 @@ slog-term = "2.6" slog-stdlog = "4.0" slog-async = "2.5" log = "0.4" +protobuf-codegen = "3.4.0" # limited by grpcio-compiler [features] default = ["spanner"] diff --git a/googleapis-raw/generate.sh b/googleapis-raw/generate.sh deleted file mode 100755 index 3f2f756..0000000 --- a/googleapis-raw/generate.sh +++ /dev/null @@ -1,157 +0,0 @@ -#!/bin/bash -# -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -# *NOTE*: Make sure to update cargo plugins after protobuf updates -# cargo install grpcio-compiler -# cargo install protobuf-codegen -# May need to delete the ./src/*/[^(mod)].rs to force regeneration of files -# (deleting the mod.rs files will require adding `pub (crate)mod crate::*` -# cross referencing.) -set -e -cd "$(dirname "$0")" - -## remove old files: -echo "Purging old files..." -find src -name "*.rs" -and -not \( -name "mod.rs" -or -name "lib.rs" \) -print -delete - -## updating plugins -echo "Updating cargo..." -cargo update -echo "Updating plugin..." -# Lock on 2.28.0 until grpcio supports 3+ -#cargo install protobuf-codegen --version 2.28.0 -cargo install protobuf-codegen - -if ! [[ -x "$(command -v grpc_rust_plugin)" ]]; then - echo "Error: grpc_rust_plugin was not found" - echo - echo "To install, run: cargo install grpcio-compiler" - exit 1 -fi - -echo "Pulling git submodules" -# comment out to work on master... -# git submodule update --init --recursive - -apis=grpc/third_party/googleapis - -proto_files=" -grpc/src/proto/grpc/testing/empty.proto -" - -for proto in $proto_files; do - echo "Processing: $proto" - protoc \ - --rust_out=$PWD/src \ - --grpc_out=$PWD/src \ - --plugin=protoc-gen-grpc=`which grpc_rust_plugin` \ - --proto_path=grpc/src/proto/grpc/testing \ - $proto -done - -#storage_dirs=" -#storage/v1 -#" - -# Big table has dependencies on "ruby_package" -big_table_dirs=" -bigtable/admin/v2 -bigtable/v2 -" - -# Spanner specific dependencies -spanner_dirs=" -spanner/admin/database/v1 -spanner/admin/instance/v1 -spanner/v1 -" - -# The following directories should correspond with the ones defined under -# `grpc/third_party/googleapis/google` and contain the various, required `.proto` -# definition files that should be read and generated from. -# *NOTE:* These often require some manual editing, since there's no way to automatically -# determine what to use. Basically, when you generate, you may see some undefined -# items and you get to go hunting for what they might be. (Often, looking at another -# library can help determine paths.) -proto_dirs=" -api -api/servicecontrol/v1 -api/servicemanagement/v1 -cloud/asset/v1 -cloud/orgpolicy/v1 -cloud/orgpolicy/v2 -cloud/osconfig/v1 -cloud/osconfig/v1alpha -cloud/osconfig/agentendpoint/v1 -logging/type -type -iam/v1 -identity/accesscontextmanager/v1 -identity/accesscontextmanager/type -longrunning -pubsub/v1 -pubsub/v1beta2 -rpc -$big_table_dirs -$storage_dirs -$spanner_dirs -" - -# obsolete proto: -# cloud/orgpolicy/v1 -# cloud/osconfig/v1 -# logging -# identity/accesscontextmanager/v1 -# identity/accesscontextmanager/type - - -# The following are required to support Spanner only -reduced_proto_dirs=" -iam/v1 -longrunning -rpc -spanner/admin/database/v1 -spanner/admin/instance/v1 -spanner/v1 -" -SRC_ROOT=$PWD - - -for dir in $proto_dirs; do - mkdir -p "$SRC_ROOT/src/$dir" - echo "Processing: $dir..." - - for proto in `find $apis/google/$dir/*.proto`; do - echo "Processing: $proto ..." - protoc \ - --rust_out="$SRC_ROOT/src/$dir" \ - --grpc_out="$SRC_ROOT/src/$dir" \ - --plugin=protoc-gen-grpc="`which grpc_rust_plugin`" \ - --proto_path="$apis:grpc/third_party/upb:grpc/third_party/protobuf/src/:" \ - $proto - done -done - -echo "Make sure you generate the mod.rs files!" - -# under `../tools/mod_updater` is a python script that can automatically try to genereate the -# mod files. It's not perfect, but it works. You'll still need to add some of the foreign references -# that can crop up during builds. (e.g. if you get missing references to `empty`, you need to add -# `pub(crate) use crate::empty;` to the `mod.rs` file. Finding other references can be a bit of a -# challenge, but it's possible.) - -# ls -1 --color=never . |grep -v mod |sed "s/\.rs//" |sed "s/^/pub mod /" | sed "s/$/;/" > mod.rs \; --print -# echo "pub(crate) use crate::empty;" >> */v1/mod.rs diff --git a/googleapis-raw/grpc b/googleapis-raw/grpc index cb5c95c..2525988 160000 --- a/googleapis-raw/grpc +++ b/googleapis-raw/grpc @@ -1 +1 @@ -Subproject commit cb5c95cc3bfd1111dedb957938859e0aaa458826 +Subproject commit 2525988afacdb4eb9327fb97f5fe5d7b6ee3bfea diff --git a/googleapis-raw/prepare.sh b/googleapis-raw/prepare.sh index d571f24..131ffd3 100755 --- a/googleapis-raw/prepare.sh +++ b/googleapis-raw/prepare.sh @@ -6,9 +6,8 @@ # #cargo install grpcio-compiler --version 0.13.0 cargo install grpcio-compiler -## lock on 2.28.0 until grpcio supports 3+ #cargo install protobuf-codegen --version 2.28.0 -cargo install protobuf-codegen +cargo install protobuf-codegen --version 3.4.0 find src -name "*.rs" -and -not \( -name "mod.rs" -or -name "lib.rs" \) -print -delete echo "REMEMBER to: " echo " [ ] update 'src/lib.rs' _PROTOBUF_VERSION_CHECK to the latest version number" diff --git a/googleapis-raw/src/api/annotations.rs b/googleapis-raw/src/api/annotations.rs index 227ffa2..b35ea98 100644 --- a/googleapis-raw/src/api/annotations.rs +++ b/googleapis-raw/src/api/annotations.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -37,29 +37,29 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \xbc\"\x20\x01(\x0b2\x14.google.api.HttpRule\x12\x1e.google.protobuf.Met\ hodOptionsR\x04httpBn\n\x0ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoo\ gle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\ - \x04GAPIJ\xaf\x06\n\x06\x12\x04\x0e\0\x1e\x01\n\xc2\x04\n\x01\x0c\x12\ - \x03\x0e\0\x122\xb7\x04\x20Copyright\x20(c)\x202015,\x20Google\x20Inc.\n\ - \n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\ - \x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ - \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ - y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ - \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ - ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ - \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ - buted\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\ - \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ - \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ - guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\ - \x03\x12\0\x1f\n\t\n\x02\x03\x01\x12\x03\x13\0*\n\x08\n\x01\x08\x12\x03\ - \x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\ - \n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\ - \x02\x08\x08\x12\x03\x17\01\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\ - \x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\ - \x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0\x1e\x01\n\x1c\n\x02\x07\0\x12\ - \x03\x1d\x02\x1b\x1a\x11\x20See\x20`HttpRule`.\n\n\n\n\x03\x07\0\x02\x12\ - \x03\x1b\x07$\n\n\n\x03\x07\0\x06\x12\x03\x1d\x02\n\n\n\n\x03\x07\0\x01\ - \x12\x03\x1d\x0b\x0f\n\n\n\x03\x07\0\x03\x12\x03\x1d\x12\x1ab\x06proto3\ + \x04GAPIJ\xa9\x06\n\x06\x12\x04\x0e\0\x1e\x01\n\xbc\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Lic\ + ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0\x1f\n\ + \t\n\x02\x03\x01\x12\x03\x13\0*\n\x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\ + \x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ + \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\01\n\t\n\x02\x08\x08\x12\ + \x03\x17\01\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ + \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\ + \x01\x07\x12\x04\x1b\0\x1e\x01\n\x1c\n\x02\x07\0\x12\x03\x1d\x02\x1b\x1a\ + \x11\x20See\x20`HttpRule`.\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\x07$\n\n\n\ + \x03\x07\0\x06\x12\x03\x1d\x02\n\n\n\n\x03\x07\0\x01\x12\x03\x1d\x0b\x0f\ + \n\n\n\x03\x07\0\x03\x12\x03\x1d\x12\x1ab\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/auth.rs b/googleapis-raw/src/api/auth.rs index da76e1d..e6cbf7a 100644 --- a/googleapis-raw/src/api/auth.rs +++ b/googleapis-raw/src/api/auth.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -186,13 +186,15 @@ pub struct AuthenticationRule { // message fields /// Selects the methods to which this rule applies. /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. // @@protoc_insertion_point(field:google.api.AuthenticationRule.selector) pub selector: ::std::string::String, /// The requirements for OAuth credentials. // @@protoc_insertion_point(field:google.api.AuthenticationRule.oauth) pub oauth: ::protobuf::MessageField, /// If true, the service accepts API keys without any other credential. + /// This flag only applies to HTTP and gRPC requests. // @@protoc_insertion_point(field:google.api.AuthenticationRule.allow_without_credential) pub allow_without_credential: bool, /// Requirements for additional authentication providers. @@ -364,6 +366,376 @@ impl ::protobuf::reflect::ProtobufValue for AuthenticationRule { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } +/// Specifies a location to extract JWT from an API request. +// @@protoc_insertion_point(message:google.api.JwtLocation) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct JwtLocation { + // message fields + /// The value prefix. The value format is "value_prefix{token}" + /// Only applies to "in" header type. Must be empty for "in" query type. + /// If not empty, the header value has to match (case sensitive) this prefix. + /// If not matched, JWT will not be extracted. If matched, JWT will be + /// extracted after the prefix is removed. + /// + /// For example, for "Authorization: Bearer {JWT}", + /// value_prefix="Bearer " with a space at the end. + // @@protoc_insertion_point(field:google.api.JwtLocation.value_prefix) + pub value_prefix: ::std::string::String, + // message oneof groups + pub in_: ::std::option::Option, + // special fields + // @@protoc_insertion_point(special_field:google.api.JwtLocation.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a JwtLocation { + fn default() -> &'a JwtLocation { + ::default_instance() + } +} + +impl JwtLocation { + pub fn new() -> JwtLocation { + ::std::default::Default::default() + } + + // string header = 1; + + pub fn header(&self) -> &str { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Header(ref v)) => v, + _ => "", + } + } + + pub fn clear_header(&mut self) { + self.in_ = ::std::option::Option::None; + } + + pub fn has_header(&self) -> bool { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Header(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_header(&mut self, v: ::std::string::String) { + self.in_ = ::std::option::Option::Some(jwt_location::In::Header(v)) + } + + // Mutable pointer to the field. + pub fn mut_header(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(jwt_location::In::Header(_)) = self.in_ { + } else { + self.in_ = ::std::option::Option::Some(jwt_location::In::Header(::std::string::String::new())); + } + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Header(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_header(&mut self) -> ::std::string::String { + if self.has_header() { + match self.in_.take() { + ::std::option::Option::Some(jwt_location::In::Header(v)) => v, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string query = 2; + + pub fn query(&self) -> &str { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Query(ref v)) => v, + _ => "", + } + } + + pub fn clear_query(&mut self) { + self.in_ = ::std::option::Option::None; + } + + pub fn has_query(&self) -> bool { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Query(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_query(&mut self, v: ::std::string::String) { + self.in_ = ::std::option::Option::Some(jwt_location::In::Query(v)) + } + + // Mutable pointer to the field. + pub fn mut_query(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(jwt_location::In::Query(_)) = self.in_ { + } else { + self.in_ = ::std::option::Option::Some(jwt_location::In::Query(::std::string::String::new())); + } + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Query(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_query(&mut self) -> ::std::string::String { + if self.has_query() { + match self.in_.take() { + ::std::option::Option::Some(jwt_location::In::Query(v)) => v, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + // string cookie = 4; + + pub fn cookie(&self) -> &str { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Cookie(ref v)) => v, + _ => "", + } + } + + pub fn clear_cookie(&mut self) { + self.in_ = ::std::option::Option::None; + } + + pub fn has_cookie(&self) -> bool { + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Cookie(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_cookie(&mut self, v: ::std::string::String) { + self.in_ = ::std::option::Option::Some(jwt_location::In::Cookie(v)) + } + + // Mutable pointer to the field. + pub fn mut_cookie(&mut self) -> &mut ::std::string::String { + if let ::std::option::Option::Some(jwt_location::In::Cookie(_)) = self.in_ { + } else { + self.in_ = ::std::option::Option::Some(jwt_location::In::Cookie(::std::string::String::new())); + } + match self.in_ { + ::std::option::Option::Some(jwt_location::In::Cookie(ref mut v)) => v, + _ => panic!(), + } + } + + // Take field + pub fn take_cookie(&mut self) -> ::std::string::String { + if self.has_cookie() { + match self.in_.take() { + ::std::option::Option::Some(jwt_location::In::Cookie(v)) => v, + _ => panic!(), + } + } else { + ::std::string::String::new() + } + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(1); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "header", + JwtLocation::has_header, + JwtLocation::header, + JwtLocation::set_header, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "query", + JwtLocation::has_query, + JwtLocation::query, + JwtLocation::set_query, + )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_deref_has_get_set_simpler_accessor::<_, _>( + "cookie", + JwtLocation::has_cookie, + JwtLocation::cookie, + JwtLocation::set_cookie, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "value_prefix", + |m: &JwtLocation| { &m.value_prefix }, + |m: &mut JwtLocation| { &mut m.value_prefix }, + )); + oneofs.push(jwt_location::In::generated_oneof_descriptor_data()); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "JwtLocation", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for JwtLocation { + const NAME: &'static str = "JwtLocation"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.in_ = ::std::option::Option::Some(jwt_location::In::Header(is.read_string()?)); + }, + 18 => { + self.in_ = ::std::option::Option::Some(jwt_location::In::Query(is.read_string()?)); + }, + 34 => { + self.in_ = ::std::option::Option::Some(jwt_location::In::Cookie(is.read_string()?)); + }, + 26 => { + self.value_prefix = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.value_prefix.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.value_prefix); + } + if let ::std::option::Option::Some(ref v) = self.in_ { + match v { + &jwt_location::In::Header(ref v) => { + my_size += ::protobuf::rt::string_size(1, &v); + }, + &jwt_location::In::Query(ref v) => { + my_size += ::protobuf::rt::string_size(2, &v); + }, + &jwt_location::In::Cookie(ref v) => { + my_size += ::protobuf::rt::string_size(4, &v); + }, + }; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.value_prefix.is_empty() { + os.write_string(3, &self.value_prefix)?; + } + if let ::std::option::Option::Some(ref v) = self.in_ { + match v { + &jwt_location::In::Header(ref v) => { + os.write_string(1, v)?; + }, + &jwt_location::In::Query(ref v) => { + os.write_string(2, v)?; + }, + &jwt_location::In::Cookie(ref v) => { + os.write_string(4, v)?; + }, + }; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> JwtLocation { + JwtLocation::new() + } + + fn clear(&mut self) { + self.in_ = ::std::option::Option::None; + self.in_ = ::std::option::Option::None; + self.in_ = ::std::option::Option::None; + self.value_prefix.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static JwtLocation { + static instance: JwtLocation = JwtLocation { + value_prefix: ::std::string::String::new(), + in_: ::std::option::Option::None, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for JwtLocation { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("JwtLocation").unwrap()).clone() + } +} + +impl ::std::fmt::Display for JwtLocation { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for JwtLocation { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `JwtLocation` +pub mod jwt_location { + + #[derive(Clone,PartialEq,Debug)] + #[non_exhaustive] + // @@protoc_insertion_point(oneof:google.api.JwtLocation.in) + pub enum In { + // @@protoc_insertion_point(oneof_field:google.api.JwtLocation.header) + Header(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.JwtLocation.query) + Query(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.JwtLocation.cookie) + Cookie(::std::string::String), + } + + impl ::protobuf::Oneof for In { + } + + impl ::protobuf::OneofFull for In { + fn descriptor() -> ::protobuf::reflect::OneofDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| ::descriptor().oneof_by_name("in").unwrap()).clone() + } + } + + impl In { + pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData { + ::protobuf::reflect::GeneratedOneofDescriptorData::new::("in") + } + } +} + /// Configuration for an authentication provider, including support for /// [JSON Web Token /// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). @@ -393,6 +765,8 @@ pub struct AuthProvider { /// Implement authorizationUrl of securityDefinitions in OpenAPI spec. // @@protoc_insertion_point(field:google.api.AuthProvider.authorization_url) pub authorization_url: ::std::string::String, + // @@protoc_insertion_point(field:google.api.AuthProvider.jwt_locations) + pub jwt_locations: ::std::vec::Vec, // special fields // @@protoc_insertion_point(special_field:google.api.AuthProvider.special_fields) pub special_fields: ::protobuf::SpecialFields, @@ -410,7 +784,7 @@ impl AuthProvider { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(5); + let mut fields = ::std::vec::Vec::with_capacity(6); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "id", @@ -437,6 +811,11 @@ impl AuthProvider { |m: &AuthProvider| { &m.authorization_url }, |m: &mut AuthProvider| { &mut m.authorization_url }, )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "jwt_locations", + |m: &AuthProvider| { &m.jwt_locations }, + |m: &mut AuthProvider| { &mut m.jwt_locations }, + )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "AuthProvider", fields, @@ -470,6 +849,9 @@ impl ::protobuf::Message for AuthProvider { 42 => { self.authorization_url = is.read_string()?; }, + 50 => { + self.jwt_locations.push(is.read_message()?); + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -497,6 +879,10 @@ impl ::protobuf::Message for AuthProvider { if !self.authorization_url.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.authorization_url); } + for value in &self.jwt_locations { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size @@ -518,6 +904,9 @@ impl ::protobuf::Message for AuthProvider { if !self.authorization_url.is_empty() { os.write_string(5, &self.authorization_url)?; } + for v in &self.jwt_locations { + ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?; + }; os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } @@ -540,6 +929,7 @@ impl ::protobuf::Message for AuthProvider { self.jwks_uri.clear(); self.audiences.clear(); self.authorization_url.clear(); + self.jwt_locations.clear(); self.special_fields.clear(); } @@ -550,6 +940,7 @@ impl ::protobuf::Message for AuthProvider { jwks_uri: ::std::string::String::new(), audiences: ::std::string::String::new(), authorization_url: ::std::string::String::new(), + jwt_locations: ::std::vec::Vec::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance @@ -865,175 +1256,232 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x1d.google.api.OAuthRequirementsR\x05oauth\x128\n\x18allow_without_cred\ ential\x18\x05\x20\x01(\x08R\x16allowWithoutCredential\x12?\n\x0crequire\ ments\x18\x07\x20\x03(\x0b2\x1b.google.api.AuthRequirementR\x0crequireme\ - nts\"\x9c\x01\n\x0cAuthProvider\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02i\ - d\x12\x16\n\x06issuer\x18\x02\x20\x01(\tR\x06issuer\x12\x19\n\x08jwks_ur\ - i\x18\x03\x20\x01(\tR\x07jwksUri\x12\x1c\n\taudiences\x18\x04\x20\x01(\t\ - R\taudiences\x12+\n\x11authorization_url\x18\x05\x20\x01(\tR\x10authoriz\ - ationUrl\">\n\x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\ - \x20\x01(\tR\x0fcanonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bpro\ - vider_id\x18\x01\x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\ - \x20\x01(\tR\taudiencesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.g\ - olang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\ - \x04GAPIJ\xc58\n\x07\x12\x05\x0f\0\xb7\x01\x01\n\xbe\x04\n\x01\x0c\x12\ - \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ - censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\ - \t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0*\n\t\n\x02\x08\ - \x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ - \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ - \"\n\xc8\x03\n\x02\x04\0\x12\x04'\0/\x01\x1a\xbb\x03\x20`Authentication`\ - \x20defines\x20the\x20authentication\x20configuration\x20for\x20an\x20AP\ - I.\n\n\x20Example\x20for\x20an\x20API\x20targeted\x20for\x20external\x20\ - use:\n\n\x20\x20\x20\x20\x20name:\x20calendar.googleapis.com\n\x20\x20\ - \x20\x20\x20authentication:\n\x20\x20\x20\x20\x20\x20\x20providers:\n\ - \x20\x20\x20\x20\x20\x20\x20-\x20id:\x20google_calendar_auth\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20jwks_uri:\x20https://www.googleapis.com/oaut\ - h2/v1/certs\n\x20\x20\x20\x20\x20\x20\x20\x20\x20issuer:\x20https://secu\ - retoken.google.com\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\ - \x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20requirements:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20provider_\ - id:\x20google_calendar_auth\n\n\n\n\x03\x04\0\x01\x12\x03'\x08\x16\n\x9e\ - \x01\n\x04\x04\0\x02\0\x12\x03+\x02(\x1a\x90\x01\x20A\x20list\x20of\x20a\ - uthentication\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20me\ - thods.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20f\ - ollow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\ - \x12\x03+\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03+\x0b\x1d\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x03+\x1e#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+&'\nQ\ - \n\x04\x04\0\x02\x01\x12\x03.\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20\ - authentication\x20providers\x20that\x20a\x20service\x20supports.\n\n\x0c\ - \n\x05\x04\0\x02\x01\x04\x12\x03.\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\ - \x12\x03.\x0b\x17\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03.\x18!\n\x0c\n\ - \x05\x04\0\x02\x01\x03\x12\x03.$%\n\xed\x02\n\x02\x04\x01\x12\x04:\0H\ - \x01\x1a\xe0\x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\ - \n\x20By\x20default,\x20if\x20a\x20method\x20has\x20any\x20authenticatio\ - n\x20requirements,\x20every\x20request\n\x20must\x20include\x20a\x20vali\ - d\x20credential\x20matching\x20one\x20of\x20the\x20requirements.\n\x20It\ - 's\x20an\x20error\x20to\x20include\x20more\x20than\x20one\x20kind\x20of\ - \x20credential\x20in\x20a\x20single\n\x20request.\n\n\x20If\x20a\x20meth\ - od\x20doesn't\x20have\x20any\x20auth\x20requirements,\x20request\x20cred\ - entials\x20will\x20be\n\x20ignored.\n\n\n\n\x03\x04\x01\x01\x12\x03:\x08\ - \x1a\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03>\x02\x16\x1a\x82\x01\x20Selec\ - ts\x20the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20R\ - efer\x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\ - \x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03>\x02\x08\ - \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03>\t\x11\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x03>\x14\x15\n6\n\x04\x04\x01\x02\x01\x12\x03A\x02\x1e\x1a)\x20\ - The\x20requirements\x20for\x20OAuth\x20credentials.\n\n\x0c\n\x05\x04\ - \x01\x02\x01\x06\x12\x03A\x02\x13\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\ - \x03A\x14\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03A\x1c\x1d\nR\n\x04\ - \x04\x01\x02\x02\x12\x03D\x02$\x1aE\x20If\x20true,\x20the\x20service\x20\ - accepts\x20API\x20keys\x20without\x20any\x20other\x20credential.\n\n\x0c\ - \n\x05\x04\x01\x02\x02\x05\x12\x03D\x02\x06\n\x0c\n\x05\x04\x01\x02\x02\ - \x01\x12\x03D\x07\x1f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03D\"#\nD\n\ - \x04\x04\x01\x02\x03\x12\x03G\x02,\x1a7\x20Requirements\x20for\x20additi\ - onal\x20authentication\x20providers.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\ - \x12\x03G\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03G\x0b\x1a\n\x0c\n\ - \x05\x04\x01\x02\x03\x01\x12\x03G\x1b'\n\x0c\n\x05\x04\x01\x02\x03\x03\ - \x12\x03G*+\n\xac\x01\n\x02\x04\x02\x12\x04M\0|\x01\x1a\x9f\x01\x20Confi\ - guration\x20for\x20an\x20authentication\x20provider,\x20including\x20sup\ - port\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tools.ietf.or\ - g/html/draft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x02\x01\x12\ - \x03M\x08\x14\n\x92\x01\n\x04\x04\x02\x02\0\x12\x03R\x02\x10\x1a\x84\x01\ - \x20The\x20unique\x20identifier\x20of\x20the\x20auth\x20provider.\x20It\ - \x20will\x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.provider_id\ - `.\n\n\x20Example:\x20\"bookstore_auth\".\n\n\x0c\n\x05\x04\x02\x02\0\ - \x05\x12\x03R\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03R\t\x0b\n\x0c\ - \n\x05\x04\x02\x02\0\x03\x12\x03R\x0e\x0f\n\x95\x02\n\x04\x04\x02\x02\ - \x01\x12\x03Z\x02\x14\x1a\x87\x02\x20Identifies\x20the\x20principal\x20t\ - hat\x20issued\x20the\x20JWT.\x20See\n\x20https://tools.ietf.org/html/dra\ - ft-ietf-oauth-json-web-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\ - \x20or\x20an\x20email\x20address.\n\n\x20Example:\x20https://securetoken\ - .google.com\n\x20Example:\x201234567-compute@developer.gserviceaccount.c\ - om\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03Z\x02\x08\n\x0c\n\x05\x04\ - \x02\x02\x01\x01\x12\x03Z\t\x0f\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03Z\ - \x12\x13\n\xf4\x03\n\x04\x04\x02\x02\x02\x12\x03h\x02\x16\x1a\xe6\x03\ - \x20URL\x20of\x20the\x20provider's\x20public\x20key\x20set\x20to\x20vali\ - date\x20signature\x20of\x20the\x20JWT.\x20See\n\x20[OpenID\n\x20Discover\ - y](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMe\ - tadata).\n\x20Optional\x20if\x20the\x20key\x20set\x20document:\n\x20\x20\ - -\x20can\x20be\x20retrieved\x20from\n\x20\x20\x20\x20[OpenID\n\x20\x20\ + nts\"\x82\x01\n\x0bJwtLocation\x12\x18\n\x06header\x18\x01\x20\x01(\tH\0\ + R\x06header\x12\x16\n\x05query\x18\x02\x20\x01(\tH\0R\x05query\x12\x18\n\ + \x06cookie\x18\x04\x20\x01(\tH\0R\x06cookie\x12!\n\x0cvalue_prefix\x18\ + \x03\x20\x01(\tR\x0bvaluePrefixB\x04\n\x02in\"\xda\x01\n\x0cAuthProvider\ + \x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x16\n\x06issuer\x18\x02\ + \x20\x01(\tR\x06issuer\x12\x19\n\x08jwks_uri\x18\x03\x20\x01(\tR\x07jwks\ + Uri\x12\x1c\n\taudiences\x18\x04\x20\x01(\tR\taudiences\x12+\n\x11author\ + ization_url\x18\x05\x20\x01(\tR\x10authorizationUrl\x12<\n\rjwt_location\ + s\x18\x06\x20\x03(\x0b2\x17.google.api.JwtLocationR\x0cjwtLocations\">\n\ + \x11OAuthRequirements\x12)\n\x10canonical_scopes\x18\x01\x20\x01(\tR\x0f\ + canonicalScopes\"P\n\x0fAuthRequirement\x12\x1f\n\x0bprovider_id\x18\x01\ + \x20\x01(\tR\nproviderId\x12\x1c\n\taudiences\x18\x02\x20\x01(\tR\taudie\ + ncesBk\n\x0ecom.google.apiB\tAuthProtoP\x01ZEgoogle.golang.org/genproto/\ + googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xd3G\n\x07\ + \x12\x05\x0e\0\xec\x01\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\ + \x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20t\ + he\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\ + \x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20complian\ + ce\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20\ + of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/\ + licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20la\ + w\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distributed\ + \x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20\ + IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ + NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ + cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ + \x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\ + \x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\ + \0\"\n\x08\n\x01\x08\x12\x03\x14\0*\n\t\n\x02\x08\x08\x12\x03\x14\0*\n\ + \x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ + \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\xcb\x04\n\x02\ + \x04\0\x12\x04*\02\x01\x1a\xbe\x04\x20`Authentication`\x20defines\x20the\ + \x20authentication\x20configuration\x20for\x20API\x20methods\n\x20provid\ + ed\x20by\x20an\x20API\x20service.\n\n\x20Example:\n\n\x20\x20\x20\x20\ + \x20name:\x20calendar.googleapis.com\n\x20\x20\x20\x20\x20authentication\ + :\n\x20\x20\x20\x20\x20\x20\x20providers:\n\x20\x20\x20\x20\x20\x20\x20-\ + \x20id:\x20google_calendar_auth\n\x20\x20\x20\x20\x20\x20\x20\x20\x20jwk\ + s_uri:\x20https://www.googleapis.com/oauth2/v1/certs\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20issuer:\x20https://securetoken.google.com\n\x20\x20\ + \x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\ + \x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20requirements:\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20provider_id:\x20google_calendar_auth\ + \n\x20\x20\x20\x20\x20\x20\x20-\x20selector:\x20google.calendar.Delegate\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20oauth:\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/auth\ + /calendar.read\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\x16\n\x9e\x01\n\x04\ + \x04\0\x02\0\x12\x03.\x02(\x1a\x90\x01\x20A\x20list\x20of\x20authenticat\ + ion\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\ + \x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\ + \"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03.\ + \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03.\x0b\x1d\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03.\x1e#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03.&'\nQ\n\x04\ + \x04\0\x02\x01\x12\x031\x02&\x1aD\x20Defines\x20a\x20set\x20of\x20authen\ + tication\x20providers\x20that\x20a\x20service\x20supports.\n\n\x0c\n\x05\ + \x04\0\x02\x01\x04\x12\x031\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x031\ + \x0b\x17\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x031\x18!\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x031$%\n\xed\x02\n\x02\x04\x01\x12\x04=\0M\x01\x1a\xe0\ + \x02\x20Authentication\x20rules\x20for\x20the\x20service.\n\n\x20By\x20d\ + efault,\x20if\x20a\x20method\x20has\x20any\x20authentication\x20requirem\ + ents,\x20every\x20request\n\x20must\x20include\x20a\x20valid\x20credenti\ + al\x20matching\x20one\x20of\x20the\x20requirements.\n\x20It's\x20an\x20e\ + rror\x20to\x20include\x20more\x20than\x20one\x20kind\x20of\x20credential\ + \x20in\x20a\x20single\n\x20request.\n\n\x20If\x20a\x20method\x20doesn't\ + \x20have\x20any\x20auth\x20requirements,\x20request\x20credentials\x20wi\ + ll\x20be\n\x20ignored.\n\n\n\n\x03\x04\x01\x01\x12\x03=\x08\x1a\n\x91\ + \x01\n\x04\x04\x01\x02\0\x12\x03B\x02\x16\x1a\x83\x01\x20Selects\x20the\ + \x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20t\ + o\x20[selector][google.api.DocumentationRule.selector]\x20for\x20syntax\ + \n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03B\x02\x08\n\x0c\n\ + \x05\x04\x01\x02\0\x01\x12\x03B\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\ + \x03B\x14\x15\n6\n\x04\x04\x01\x02\x01\x12\x03E\x02\x1e\x1a)\x20The\x20r\ + equirements\x20for\x20OAuth\x20credentials.\n\n\x0c\n\x05\x04\x01\x02\ + \x01\x06\x12\x03E\x02\x13\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03E\x14\ + \x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03E\x1c\x1d\n\x85\x01\n\x04\ + \x04\x01\x02\x02\x12\x03I\x02$\x1ax\x20If\x20true,\x20the\x20service\x20\ + accepts\x20API\x20keys\x20without\x20any\x20other\x20credential.\n\x20Th\ + is\x20flag\x20only\x20applies\x20to\x20HTTP\x20and\x20gRPC\x20requests.\ + \n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03I\x02\x06\n\x0c\n\x05\x04\x01\ + \x02\x02\x01\x12\x03I\x07\x1f\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03I\"\ + #\nD\n\x04\x04\x01\x02\x03\x12\x03L\x02,\x1a7\x20Requirements\x20for\x20\ + additional\x20authentication\x20providers.\n\n\x0c\n\x05\x04\x01\x02\x03\ + \x04\x12\x03L\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03L\x0b\x1a\n\ + \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03L\x1b'\n\x0c\n\x05\x04\x01\x02\x03\ + \x03\x12\x03L*+\nF\n\x02\x04\x02\x12\x04P\0e\x01\x1a:\x20Specifies\x20a\ + \x20location\x20to\x20extract\x20JWT\x20from\x20an\x20API\x20request.\n\ + \n\n\n\x03\x04\x02\x01\x12\x03P\x08\x13\n\x0c\n\x04\x04\x02\x08\0\x12\ + \x04Q\x02Z\x03\n\x0c\n\x05\x04\x02\x08\0\x01\x12\x03Q\x08\n\n?\n\x04\x04\ + \x02\x02\0\x12\x03S\x04\x16\x1a2\x20Specifies\x20HTTP\x20header\x20name\ + \x20to\x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\0\x05\x12\ + \x03S\x04\n\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03S\x0b\x11\n\x0c\n\x05\ + \x04\x02\x02\0\x03\x12\x03S\x14\x15\nG\n\x04\x04\x02\x02\x01\x12\x03V\ + \x04\x15\x1a:\x20Specifies\x20URL\x20query\x20parameter\x20name\x20to\ + \x20extract\x20JWT\x20token.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03V\ + \x04\n\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03V\x0b\x10\n\x0c\n\x05\x04\ + \x02\x02\x01\x03\x12\x03V\x13\x14\n:\n\x04\x04\x02\x02\x02\x12\x03Y\x04\ + \x16\x1a-\x20Specifies\x20cookie\x20name\x20to\x20extract\x20JWT\x20toke\ + n.\n\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03Y\x04\n\n\x0c\n\x05\x04\x02\ + \x02\x02\x01\x12\x03Y\x0b\x11\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03Y\ + \x14\x15\n\xab\x03\n\x04\x04\x02\x02\x03\x12\x03d\x02\x1a\x1a\x9d\x03\ + \x20The\x20value\x20prefix.\x20The\x20value\x20format\x20is\x20\"value_p\ + refix{token}\"\n\x20Only\x20applies\x20to\x20\"in\"\x20header\x20type.\ + \x20Must\x20be\x20empty\x20for\x20\"in\"\x20query\x20type.\n\x20If\x20no\ + t\x20empty,\x20the\x20header\x20value\x20has\x20to\x20match\x20(case\x20\ + sensitive)\x20this\x20prefix.\n\x20If\x20not\x20matched,\x20JWT\x20will\ + \x20not\x20be\x20extracted.\x20If\x20matched,\x20JWT\x20will\x20be\n\x20\ + extracted\x20after\x20the\x20prefix\x20is\x20removed.\n\n\x20For\x20exam\ + ple,\x20for\x20\"Authorization:\x20Bearer\x20{JWT}\",\n\x20value_prefix=\ + \"Bearer\x20\"\x20with\x20a\x20space\x20at\x20the\x20end.\n\n\x0c\n\x05\ + \x04\x02\x02\x03\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\ + \x12\x03d\t\x15\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03d\x18\x19\n\xad\ + \x01\n\x02\x04\x03\x12\x05j\0\xb1\x01\x01\x1a\x9f\x01\x20Configuration\ + \x20for\x20an\x20authentication\x20provider,\x20including\x20support\x20\ + for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](https://tools.ietf.org/html/d\ + raft-ietf-oauth-json-web-token-32).\n\n\n\n\x03\x04\x03\x01\x12\x03j\x08\ + \x14\n\x92\x01\n\x04\x04\x03\x02\0\x12\x03o\x02\x10\x1a\x84\x01\x20The\ + \x20unique\x20identifier\x20of\x20the\x20auth\x20provider.\x20It\x20will\ + \x20be\x20referred\x20to\x20by\n\x20`AuthRequirement.provider_id`.\n\n\ + \x20Example:\x20\"bookstore_auth\".\n\n\x0c\n\x05\x04\x03\x02\0\x05\x12\ + \x03o\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03o\t\x0b\n\x0c\n\x05\ + \x04\x03\x02\0\x03\x12\x03o\x0e\x0f\n\x95\x02\n\x04\x04\x03\x02\x01\x12\ + \x03w\x02\x14\x1a\x87\x02\x20Identifies\x20the\x20principal\x20that\x20i\ + ssued\x20the\x20JWT.\x20See\n\x20https://tools.ietf.org/html/draft-ietf-\ + oauth-json-web-token-32#section-4.1.1\n\x20Usually\x20a\x20URL\x20or\x20\ + an\x20email\x20address.\n\n\x20Example:\x20https://securetoken.google.co\ + m\n\x20Example:\x201234567-compute@developer.gserviceaccount.com\n\n\x0c\ + \n\x05\x04\x03\x02\x01\x05\x12\x03w\x02\x08\n\x0c\n\x05\x04\x03\x02\x01\ + \x01\x12\x03w\t\x0f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03w\x12\x13\n\ + \xf6\x03\n\x04\x04\x03\x02\x02\x12\x04\x85\x01\x02\x16\x1a\xe7\x03\x20UR\ + L\x20of\x20the\x20provider's\x20public\x20key\x20set\x20to\x20validate\ + \x20signature\x20of\x20the\x20JWT.\x20See\n\x20[OpenID\n\x20Discovery](h\ + ttps://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetada\ + ta).\n\x20Optional\x20if\x20the\x20key\x20set\x20document:\n\x20\x20-\ + \x20can\x20be\x20retrieved\x20from\n\x20\x20\x20\x20[OpenID\n\x20\x20\ \x20\x20Discovery](https://openid.net/specs/openid-connect-discovery-1_0\ - .html\x20of\n\x20\x20\x20\x20the\x20issuer.\n\x20\x20-\x20can\x20be\x20i\ - nferred\x20from\x20the\x20email\x20domain\x20of\x20the\x20issuer\x20(e.g\ - .\x20a\x20Google\n\x20\x20service\x20account).\n\n\x20Example:\x20https:\ - //www.googleapis.com/oauth2/v1/certs\n\n\x0c\n\x05\x04\x02\x02\x02\x05\ - \x12\x03h\x02\x08\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03h\t\x11\n\x0c\n\ - \x05\x04\x02\x02\x02\x03\x12\x03h\x14\x15\n\xc1\x05\n\x04\x04\x02\x02\ - \x03\x12\x03w\x02\x17\x1a\xb3\x05\x20The\x20list\x20of\x20JWT\n\x20[audi\ - ences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#se\ - ction-4.1.3).\n\x20that\x20are\x20allowed\x20to\x20access.\x20A\x20JWT\ - \x20containing\x20any\x20of\x20these\x20audiences\x20will\n\x20be\x20acc\ - epted.\x20When\x20this\x20setting\x20is\x20absent,\x20only\x20JWTs\x20wi\ - th\x20audience\n\x20\"https://[Service_name][google.api.Service.name]/[A\ - PI_name][google.protobuf.Api.name]\"\n\x20will\x20be\x20accepted.\x20For\ - \x20example,\x20if\x20no\x20audiences\x20are\x20in\x20the\x20setting,\n\ - \x20LibraryService\x20API\x20will\x20only\x20accept\x20JWTs\x20with\x20t\ - he\x20following\x20audience\n\x20\"https://library-example.googleapis.co\ - m/google.example.library.v1.LibraryService\".\n\n\x20Example:\n\n\x20\ - \x20\x20\x20\x20audiences:\x20bookstore_android.apps.googleusercontent.c\ - om,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20boo\ - kstore_web.apps.googleusercontent.com\n\n\x0c\n\x05\x04\x02\x02\x03\x05\ - \x12\x03w\x02\x08\n\x0c\n\x05\x04\x02\x02\x03\x01\x12\x03w\t\x12\n\x0c\n\ - \x05\x04\x02\x02\x03\x03\x12\x03w\x15\x16\n\x98\x01\n\x04\x04\x02\x02\ - \x04\x12\x03{\x02\x1f\x1a\x8a\x01\x20Redirect\x20URL\x20if\x20JWT\x20tok\ - en\x20is\x20required\x20but\x20not\x20present\x20or\x20is\x20expired.\n\ - \x20Implement\x20authorizationUrl\x20of\x20securityDefinitions\x20in\x20\ - OpenAPI\x20spec.\n\n\x0c\n\x05\x04\x02\x02\x04\x05\x12\x03{\x02\x08\n\ - \x0c\n\x05\x04\x02\x02\x04\x01\x12\x03{\t\x1a\n\x0c\n\x05\x04\x02\x02\ - \x04\x03\x12\x03{\x1d\x1e\n\xe7\x07\n\x02\x04\x03\x12\x06\x90\x01\0\x99\ - \x01\x01\x1a\xd8\x07\x20OAuth\x20scopes\x20are\x20a\x20way\x20to\x20defi\ - ne\x20data\x20and\x20permissions\x20on\x20data.\x20For\x20example,\n\x20\ - there\x20are\x20scopes\x20defined\x20for\x20\"Read-only\x20access\x20to\ - \x20Google\x20Calendar\"\x20and\n\x20\"Access\x20to\x20Cloud\x20Platform\ - \".\x20Users\x20can\x20consent\x20to\x20a\x20scope\x20for\x20an\x20appli\ - cation,\n\x20giving\x20it\x20permission\x20to\x20access\x20that\x20data\ - \x20on\x20their\x20behalf.\n\n\x20OAuth\x20scope\x20specifications\x20sh\ - ould\x20be\x20fairly\x20coarse\x20grained;\x20a\x20user\x20will\x20need\ - \n\x20to\x20see\x20and\x20understand\x20the\x20text\x20description\x20of\ - \x20what\x20your\x20scope\x20means.\n\n\x20In\x20most\x20cases:\x20use\ - \x20one\x20or\x20at\x20most\x20two\x20OAuth\x20scopes\x20for\x20an\x20en\ - tire\x20family\x20of\n\x20products.\x20If\x20your\x20product\x20has\x20m\ - ultiple\x20APIs,\x20you\x20should\x20probably\x20be\x20sharing\n\x20the\ - \x20OAuth\x20scope\x20across\x20all\x20of\x20those\x20APIs.\n\n\x20When\ - \x20you\x20need\x20finer\x20grained\x20OAuth\x20consent\x20screens:\x20t\ - alk\x20with\x20your\x20product\n\x20management\x20about\x20how\x20develo\ - pers\x20will\x20use\x20them\x20in\x20practice.\n\n\x20Please\x20note\x20\ - that\x20even\x20though\x20each\x20of\x20the\x20canonical\x20scopes\x20is\ - \x20enough\x20for\x20a\n\x20request\x20to\x20be\x20accepted\x20and\x20pa\ - ssed\x20to\x20the\x20backend,\x20a\x20request\x20can\x20still\x20fail\n\ - \x20due\x20to\x20the\x20backend\x20requiring\x20additional\x20scopes\x20\ - or\x20permissions.\n\n\x0b\n\x03\x04\x03\x01\x12\x04\x90\x01\x08\x19\n\ - \xab\x02\n\x04\x04\x03\x02\0\x12\x04\x98\x01\x02\x1e\x1a\x9c\x02\x20The\ - \x20list\x20of\x20publicly\x20documented\x20OAuth\x20scopes\x20that\x20a\ - re\x20allowed\x20access.\x20An\n\x20OAuth\x20token\x20containing\x20any\ - \x20of\x20these\x20scopes\x20will\x20be\x20accepted.\n\n\x20Example:\n\n\ - \x20\x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/\ - auth/calendar,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20https://www.googleapis.com/auth/\ - calendar.read\n\n\r\n\x05\x04\x03\x02\0\x05\x12\x04\x98\x01\x02\x08\n\r\ - \n\x05\x04\x03\x02\0\x01\x12\x04\x98\x01\t\x19\n\r\n\x05\x04\x03\x02\0\ - \x03\x12\x04\x98\x01\x1c\x1d\n\xaa\x01\n\x02\x04\x04\x12\x06\x9e\x01\0\ - \xb7\x01\x01\x1a\x9b\x01\x20User-defined\x20authentication\x20requiremen\ - ts,\x20including\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)\ - ](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\ - \x0b\n\x03\x04\x04\x01\x12\x04\x9e\x01\x08\x17\n{\n\x04\x04\x04\x02\0\ - \x12\x04\xa4\x01\x02\x19\x1am\x20[id][google.api.AuthProvider.id]\x20fro\ - m\x20authentication\x20provider.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20\ - provider_id:\x20bookstore_auth\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xa4\ - \x01\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa4\x01\t\x14\n\r\n\x05\ - \x04\x04\x02\0\x03\x12\x04\xa4\x01\x17\x18\n\xc0\x06\n\x04\x04\x04\x02\ - \x01\x12\x04\xb6\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20This\x20will\x20be\ + .html)\n\x20\x20\x20\x20of\x20the\x20issuer.\n\x20\x20-\x20can\x20be\x20\ + inferred\x20from\x20the\x20email\x20domain\x20of\x20the\x20issuer\x20(e.\ + g.\x20a\x20Google\n\x20\x20service\x20account).\n\n\x20Example:\x20https\ + ://www.googleapis.com/oauth2/v1/certs\n\n\r\n\x05\x04\x03\x02\x02\x05\ + \x12\x04\x85\x01\x02\x08\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\x85\x01\t\ + \x11\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\x85\x01\x14\x15\n\xee\x05\n\ + \x04\x04\x03\x02\x03\x12\x04\x98\x01\x02\x17\x1a\xdf\x05\x20The\x20list\ + \x20of\x20JWT\n\x20[audiences](https://tools.ietf.org/html/draft-ietf-oa\ + uth-json-web-token-32#section-4.1.3).\n\x20that\x20are\x20allowed\x20to\ + \x20access.\x20A\x20JWT\x20containing\x20any\x20of\x20these\x20audiences\ + \x20will\n\x20be\x20accepted.\x20When\x20this\x20setting\x20is\x20absent\ + ,\x20JWTs\x20with\x20audiences:\n\x20\x20\x20-\x20\"https://[service.nam\ + e]/[google.protobuf.Api.name]\"\n\x20\x20\x20-\x20\"https://[service.nam\ + e]/\"\n\x20will\x20be\x20accepted.\n\x20For\x20example,\x20if\x20no\x20a\ + udiences\x20are\x20in\x20the\x20setting,\x20LibraryService\x20API\x20wil\ + l\n\x20accept\x20JWTs\x20with\x20the\x20following\x20audiences:\n\x20\ + \x20\x20-\n\x20\x20\x20https://library-example.googleapis.com/google.exa\ + mple.library.v1.LibraryService\n\x20\x20\x20-\x20https://library-example\ + .googleapis.com/\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\x20bo\ + okstore_android.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleusercon\ + tent.com\n\n\r\n\x05\x04\x03\x02\x03\x05\x12\x04\x98\x01\x02\x08\n\r\n\ + \x05\x04\x03\x02\x03\x01\x12\x04\x98\x01\t\x12\n\r\n\x05\x04\x03\x02\x03\ + \x03\x12\x04\x98\x01\x15\x16\n\x99\x01\n\x04\x04\x03\x02\x04\x12\x04\x9c\ + \x01\x02\x1f\x1a\x8a\x01\x20Redirect\x20URL\x20if\x20JWT\x20token\x20is\ + \x20required\x20but\x20not\x20present\x20or\x20is\x20expired.\n\x20Imple\ + ment\x20authorizationUrl\x20of\x20securityDefinitions\x20in\x20OpenAPI\ + \x20spec.\n\n\r\n\x05\x04\x03\x02\x04\x05\x12\x04\x9c\x01\x02\x08\n\r\n\ + \x05\x04\x03\x02\x04\x01\x12\x04\x9c\x01\t\x1a\n\r\n\x05\x04\x03\x02\x04\ + \x03\x12\x04\x9c\x01\x1d\x1e\n\xd3\x05\n\x04\x04\x03\x02\x05\x12\x04\xb0\ + \x01\x02)\x1a\xc4\x05\x20Defines\x20the\x20locations\x20to\x20extract\ + \x20the\x20JWT.\x20\x20For\x20now\x20it\x20is\x20only\x20used\x20by\x20t\ + he\n\x20Cloud\x20Endpoints\x20to\x20store\x20the\x20OpenAPI\x20extension\ + \x20[x-google-jwt-locations]\n\x20(https://cloud.google.com/endpoints/do\ + cs/openapi/openapi-extensions#x-google-jwt-locations)\n\n\x20JWT\x20loca\ + tions\x20can\x20be\x20one\x20of\x20HTTP\x20headers,\x20URL\x20query\x20p\ + arameters\x20or\n\x20cookies.\x20The\x20rule\x20is\x20that\x20the\x20fir\ + st\x20match\x20wins.\n\n\x20If\x20not\x20specified,\x20\x20default\x20to\ + \x20use\x20following\x203\x20locations:\n\x20\x20\x20\x201)\x20Authoriza\ + tion:\x20Bearer\n\x20\x20\x20\x202)\x20x-goog-iap-jwt-assertion\n\x20\ + \x20\x20\x203)\x20access_token\x20query\x20parameter\n\n\x20Default\x20l\ + ocations\x20can\x20be\x20specified\x20as\x20followings:\n\x20\x20\x20\ + \x20jwt_locations:\n\x20\x20\x20\x20-\x20header:\x20Authorization\n\x20\ + \x20\x20\x20\x20\x20value_prefix:\x20\"Bearer\x20\"\n\x20\x20\x20\x20-\ + \x20header:\x20x-goog-iap-jwt-assertion\n\x20\x20\x20\x20-\x20query:\x20\ + access_token\n\n\r\n\x05\x04\x03\x02\x05\x04\x12\x04\xb0\x01\x02\n\n\r\n\ + \x05\x04\x03\x02\x05\x06\x12\x04\xb0\x01\x0b\x16\n\r\n\x05\x04\x03\x02\ + \x05\x01\x12\x04\xb0\x01\x17$\n\r\n\x05\x04\x03\x02\x05\x03\x12\x04\xb0\ + \x01'(\n\xe7\x07\n\x02\x04\x04\x12\x06\xc5\x01\0\xce\x01\x01\x1a\xd8\x07\ + \x20OAuth\x20scopes\x20are\x20a\x20way\x20to\x20define\x20data\x20and\ + \x20permissions\x20on\x20data.\x20For\x20example,\n\x20there\x20are\x20s\ + copes\x20defined\x20for\x20\"Read-only\x20access\x20to\x20Google\x20Cale\ + ndar\"\x20and\n\x20\"Access\x20to\x20Cloud\x20Platform\".\x20Users\x20ca\ + n\x20consent\x20to\x20a\x20scope\x20for\x20an\x20application,\n\x20givin\ + g\x20it\x20permission\x20to\x20access\x20that\x20data\x20on\x20their\x20\ + behalf.\n\n\x20OAuth\x20scope\x20specifications\x20should\x20be\x20fairl\ + y\x20coarse\x20grained;\x20a\x20user\x20will\x20need\n\x20to\x20see\x20a\ + nd\x20understand\x20the\x20text\x20description\x20of\x20what\x20your\x20\ + scope\x20means.\n\n\x20In\x20most\x20cases:\x20use\x20one\x20or\x20at\ + \x20most\x20two\x20OAuth\x20scopes\x20for\x20an\x20entire\x20family\x20o\ + f\n\x20products.\x20If\x20your\x20product\x20has\x20multiple\x20APIs,\ + \x20you\x20should\x20probably\x20be\x20sharing\n\x20the\x20OAuth\x20scop\ + e\x20across\x20all\x20of\x20those\x20APIs.\n\n\x20When\x20you\x20need\ + \x20finer\x20grained\x20OAuth\x20consent\x20screens:\x20talk\x20with\x20\ + your\x20product\n\x20management\x20about\x20how\x20developers\x20will\ + \x20use\x20them\x20in\x20practice.\n\n\x20Please\x20note\x20that\x20even\ + \x20though\x20each\x20of\x20the\x20canonical\x20scopes\x20is\x20enough\ + \x20for\x20a\n\x20request\x20to\x20be\x20accepted\x20and\x20passed\x20to\ + \x20the\x20backend,\x20a\x20request\x20can\x20still\x20fail\n\x20due\x20\ + to\x20the\x20backend\x20requiring\x20additional\x20scopes\x20or\x20permi\ + ssions.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xc5\x01\x08\x19\n\xab\x02\n\ + \x04\x04\x04\x02\0\x12\x04\xcd\x01\x02\x1e\x1a\x9c\x02\x20The\x20list\ + \x20of\x20publicly\x20documented\x20OAuth\x20scopes\x20that\x20are\x20al\ + lowed\x20access.\x20An\n\x20OAuth\x20token\x20containing\x20any\x20of\ + \x20these\x20scopes\x20will\x20be\x20accepted.\n\n\x20Example:\n\n\x20\ + \x20\x20\x20\x20\x20canonical_scopes:\x20https://www.googleapis.com/auth\ + /calendar,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20https://www.googleapis.com/auth/cale\ + ndar.read\n\n\r\n\x05\x04\x04\x02\0\x05\x12\x04\xcd\x01\x02\x08\n\r\n\ + \x05\x04\x04\x02\0\x01\x12\x04\xcd\x01\t\x19\n\r\n\x05\x04\x04\x02\0\x03\ + \x12\x04\xcd\x01\x1c\x1d\n\xaa\x01\n\x02\x04\x05\x12\x06\xd3\x01\0\xec\ + \x01\x01\x1a\x9b\x01\x20User-defined\x20authentication\x20requirements,\ + \x20including\x20support\x20for\n\x20[JSON\x20Web\x20Token\n\x20(JWT)](h\ + ttps://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).\n\n\x0b\ + \n\x03\x04\x05\x01\x12\x04\xd3\x01\x08\x17\n{\n\x04\x04\x05\x02\0\x12\ + \x04\xd9\x01\x02\x19\x1am\x20[id][google.api.AuthProvider.id]\x20from\ + \x20authentication\x20provider.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20p\ + rovider_id:\x20bookstore_auth\n\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\xd9\ + \x01\x02\x08\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\xd9\x01\t\x14\n\r\n\x05\ + \x04\x05\x02\0\x03\x12\x04\xd9\x01\x17\x18\n\xc0\x06\n\x04\x04\x05\x02\ + \x01\x12\x04\xeb\x01\x02\x17\x1a\xb1\x06\x20NOTE:\x20This\x20will\x20be\ \x20deprecated\x20soon,\x20once\x20AuthProvider.audiences\x20is\n\x20imp\ lemented\x20and\x20accepted\x20in\x20all\x20the\x20runtime\x20components\ .\n\n\x20The\x20list\x20of\x20JWT\n\x20[audiences](https://tools.ietf.or\ @@ -1049,9 +1497,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ v1.LibraryService\".\n\n\x20Example:\n\n\x20\x20\x20\x20\x20audiences:\ \x20bookstore_android.apps.googleusercontent.com,\n\x20\x20\x20\x20\x20\ \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bookstore_web.apps.googleuse\ - rcontent.com\n\n\r\n\x05\x04\x04\x02\x01\x05\x12\x04\xb6\x01\x02\x08\n\r\ - \n\x05\x04\x04\x02\x01\x01\x12\x04\xb6\x01\t\x12\n\r\n\x05\x04\x04\x02\ - \x01\x03\x12\x04\xb6\x01\x15\x16b\x06proto3\ + rcontent.com\n\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\xeb\x01\x02\x08\n\r\ + \n\x05\x04\x05\x02\x01\x01\x12\x04\xeb\x01\t\x12\n\r\n\x05\x04\x05\x02\ + \x01\x03\x12\x04\xeb\x01\x15\x16b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file @@ -1069,9 +1517,10 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { let mut deps = ::std::vec::Vec::with_capacity(0); - let mut messages = ::std::vec::Vec::with_capacity(5); + let mut messages = ::std::vec::Vec::with_capacity(6); messages.push(Authentication::generated_message_descriptor_data()); messages.push(AuthenticationRule::generated_message_descriptor_data()); + messages.push(JwtLocation::generated_message_descriptor_data()); messages.push(AuthProvider::generated_message_descriptor_data()); messages.push(OAuthRequirements::generated_message_descriptor_data()); messages.push(AuthRequirement::generated_message_descriptor_data()); diff --git a/googleapis-raw/src/api/backend.rs b/googleapis-raw/src/api/backend.rs index b1c70e1..a905487 100644 --- a/googleapis-raw/src/api/backend.rs +++ b/googleapis-raw/src/api/backend.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -159,18 +159,17 @@ pub struct BackendRule { // message fields /// Selects the methods to which this rule applies. /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. // @@protoc_insertion_point(field:google.api.BackendRule.selector) pub selector: ::std::string::String, - /// The address of the API backend. // @@protoc_insertion_point(field:google.api.BackendRule.address) pub address: ::std::string::String, - /// The number of seconds to wait for a response from a request. The default - /// deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds. + /// The number of seconds to wait for a response from a request. The default + /// varies based on the request protocol and deployment environment. // @@protoc_insertion_point(field:google.api.BackendRule.deadline) pub deadline: f64, - /// Minimum deadline in seconds needed for this method. Calls having deadline - /// value lower than this will be rejected. + /// Deprecated, do not use. // @@protoc_insertion_point(field:google.api.BackendRule.min_deadline) pub min_deadline: f64, /// The number of seconds to wait for the completion of a long running @@ -179,6 +178,11 @@ pub struct BackendRule { pub operation_deadline: f64, // @@protoc_insertion_point(field:google.api.BackendRule.path_translation) pub path_translation: ::protobuf::EnumOrUnknown, + // @@protoc_insertion_point(field:google.api.BackendRule.protocol) + pub protocol: ::std::string::String, + /// The map between request protocol and the backend address. + // @@protoc_insertion_point(field:google.api.BackendRule.overrides_by_request_protocol) + pub overrides_by_request_protocol: ::std::collections::HashMap<::std::string::String, BackendRule>, // message oneof groups pub authentication: ::std::option::Option, // special fields @@ -246,8 +250,33 @@ impl BackendRule { } } + // bool disable_auth = 8; + + pub fn disable_auth(&self) -> bool { + match self.authentication { + ::std::option::Option::Some(backend_rule::Authentication::DisableAuth(v)) => v, + _ => false, + } + } + + pub fn clear_disable_auth(&mut self) { + self.authentication = ::std::option::Option::None; + } + + pub fn has_disable_auth(&self) -> bool { + match self.authentication { + ::std::option::Option::Some(backend_rule::Authentication::DisableAuth(..)) => true, + _ => false, + } + } + + // Param is passed by value, moved + pub fn set_disable_auth(&mut self, v: bool) { + self.authentication = ::std::option::Option::Some(backend_rule::Authentication::DisableAuth(v)) + } + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(7); + let mut fields = ::std::vec::Vec::with_capacity(10); let mut oneofs = ::std::vec::Vec::with_capacity(1); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "selector", @@ -285,6 +314,22 @@ impl BackendRule { BackendRule::jwt_audience, BackendRule::set_jwt_audience, )); + fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>( + "disable_auth", + BackendRule::has_disable_auth, + BackendRule::disable_auth, + BackendRule::set_disable_auth, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "protocol", + |m: &BackendRule| { &m.protocol }, + |m: &mut BackendRule| { &mut m.protocol }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "overrides_by_request_protocol", + |m: &BackendRule| { &m.overrides_by_request_protocol }, + |m: &mut BackendRule| { &mut m.overrides_by_request_protocol }, + )); oneofs.push(backend_rule::Authentication::generated_oneof_descriptor_data()); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "BackendRule", @@ -325,6 +370,27 @@ impl ::protobuf::Message for BackendRule { 58 => { self.authentication = ::std::option::Option::Some(backend_rule::Authentication::JwtAudience(is.read_string()?)); }, + 64 => { + self.authentication = ::std::option::Option::Some(backend_rule::Authentication::DisableAuth(is.read_bool()?)); + }, + 74 => { + self.protocol = is.read_string()?; + }, + 82 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_message()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.overrides_by_request_protocol.insert(key, value); + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -355,11 +421,24 @@ impl ::protobuf::Message for BackendRule { if self.path_translation != ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED) { my_size += ::protobuf::rt::int32_size(6, self.path_translation.value()); } + if !self.protocol.is_empty() { + my_size += ::protobuf::rt::string_size(9, &self.protocol); + } + for (k, v) in &self.overrides_by_request_protocol { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.compute_size(); + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; if let ::std::option::Option::Some(ref v) = self.authentication { match v { &backend_rule::Authentication::JwtAudience(ref v) => { my_size += ::protobuf::rt::string_size(7, &v); }, + &backend_rule::Authentication::DisableAuth(v) => { + my_size += 1 + 1; + }, }; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); @@ -386,11 +465,27 @@ impl ::protobuf::Message for BackendRule { if self.path_translation != ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED) { os.write_enum(6, ::protobuf::EnumOrUnknown::value(&self.path_translation))?; } + if !self.protocol.is_empty() { + os.write_string(9, &self.protocol)?; + } + for (k, v) in &self.overrides_by_request_protocol { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + let len = v.cached_size() as u64; + entry_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + os.write_raw_varint32(82)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; if let ::std::option::Option::Some(ref v) = self.authentication { match v { &backend_rule::Authentication::JwtAudience(ref v) => { os.write_string(7, v)?; }, + &backend_rule::Authentication::DisableAuth(v) => { + os.write_bool(8, v)?; + }, }; } os.write_unknown_fields(self.special_fields.unknown_fields())?; @@ -417,21 +512,15 @@ impl ::protobuf::Message for BackendRule { self.operation_deadline = 0.; self.path_translation = ::protobuf::EnumOrUnknown::new(backend_rule::PathTranslation::PATH_TRANSLATION_UNSPECIFIED); self.authentication = ::std::option::Option::None; + self.authentication = ::std::option::Option::None; + self.protocol.clear(); + self.overrides_by_request_protocol.clear(); self.special_fields.clear(); } fn default_instance() -> &'static BackendRule { - static instance: BackendRule = BackendRule { - selector: ::std::string::String::new(), - address: ::std::string::String::new(), - deadline: 0., - min_deadline: 0., - operation_deadline: 0., - path_translation: ::protobuf::EnumOrUnknown::from_i32(0), - authentication: ::std::option::Option::None, - special_fields: ::protobuf::SpecialFields::new(), - }; - &instance + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(BackendRule::new) } } @@ -461,6 +550,8 @@ pub mod backend_rule { pub enum Authentication { // @@protoc_insertion_point(oneof_field:google.api.BackendRule.jwt_audience) JwtAudience(::std::string::String), + // @@protoc_insertion_point(oneof_field:google.api.BackendRule.disable_auth) + DisableAuth(bool), } impl ::protobuf::Oneof for Authentication { @@ -556,134 +647,195 @@ pub mod backend_rule { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x18google/api/backend.proto\x12\ngoogle.api\"8\n\x07Backend\x12-\n\ \x05rules\x18\x01\x20\x03(\x0b2\x17.google.api.BackendRuleR\x05rules\"\ - \xa3\x03\n\x0bBackendRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ + \xcc\x05\n\x0bBackendRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08s\ elector\x12\x18\n\x07address\x18\x02\x20\x01(\tR\x07address\x12\x1a\n\ - \x08deadline\x18\x03\x20\x01(\x01R\x08deadline\x12!\n\x0cmin_deadline\ - \x18\x04\x20\x01(\x01R\x0bminDeadline\x12-\n\x12operation_deadline\x18\ - \x05\x20\x01(\x01R\x11operationDeadline\x12R\n\x10path_translation\x18\ - \x06\x20\x01(\x0e2'.google.api.BackendRule.PathTranslationR\x0fpathTrans\ - lation\x12#\n\x0cjwt_audience\x18\x07\x20\x01(\tH\0R\x0bjwtAudience\"e\n\ - \x0fPathTranslation\x12\x20\n\x1cPATH_TRANSLATION_UNSPECIFIED\x10\0\x12\ - \x14\n\x10CONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16APPEND_PATH_TO_ADDRESS\ - \x10\x02B\x10\n\x0eauthenticationBn\n\x0ecom.google.apiB\x0cBackendProto\ - P\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceco\ - nfig\xa2\x02\x04GAPIJ\xb0#\n\x06\x12\x04\x0f\0~\x01\n\xbe\x04\n\x01\x0c\ - \x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\ - \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ - (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ - xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ - obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ - \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ - \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ - oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ - \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ - \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ - ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ - governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ - nse.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\ - \\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\ - \n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\ - \x08\x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\ - \x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\ - \x17\0\"\nH\n\x02\x04\0\x12\x04\x1a\0\x1f\x01\x1a<\x20`Backend`\x20defin\ - es\x20the\x20backend\x20configuration\x20for\x20a\x20service.\n\n\n\n\ - \x03\x04\0\x01\x12\x03\x1a\x08\x0f\n\x9b\x01\n\x04\x04\0\x02\0\x12\x03\ - \x1e\x02!\x1a\x8d\x01\x20A\x20list\x20of\x20API\x20backend\x20rules\x20t\ - hat\x20apply\x20to\x20individual\x20API\x20methods.\n\n\x20**NOTE:**\x20\ - All\x20service\x20configuration\x20rules\x20follow\x20\"last\x20one\x20w\ - ins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1e\x02\n\n\x0c\n\ - \x05\x04\0\x02\0\x06\x12\x03\x1e\x0b\x16\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03\x1e\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1e\x1f\x20\nR\n\ - \x02\x04\x01\x12\x04\"\0~\x01\x1aF\x20A\x20backend\x20rule\x20provides\ - \x20configuration\x20for\x20an\x20individual\x20API\x20element.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03\"\x08\x13\n\xcd\x02\n\x04\x04\x01\x04\0\x12\x04\ - *\x02Z\x03\x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20how\x20to\ - \x20combine\x20the\x20backend\x20address\x20with\x20the\n\x20request\x20\ - path\x20in\x20order\x20to\x20produce\x20the\x20appropriate\x20forwarding\ - \x20URL\x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\x20is\x20\ - applicable\x20only\x20to\x20HTTP-based\x20backends.\x20Backends\x20which\ - \n\x20do\x20not\x20accept\x20requests\x20over\x20HTTP/HTTPS\x20should\ - \x20leave\x20`path_translation`\n\x20unspecified.\n\n\x0c\n\x05\x04\x01\ - \x04\0\x01\x12\x03*\x07\x16\n\r\n\x06\x04\x01\x04\0\x02\0\x12\x03+\x04%\ - \n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03+\x04\x20\n\x0e\n\x07\x04\ - \x01\x04\0\x02\0\x02\x12\x03+#$\n\x95\x07\n\x06\x04\x01\x04\0\x02\x01\ - \x12\x03D\x04\x19\x1a\x85\x07\x20Use\x20the\x20backend\x20address\x20as-\ - is,\x20with\x20no\x20modification\x20to\x20the\x20path.\x20If\x20the\n\ - \x20URL\x20pattern\x20contains\x20variables,\x20the\x20variable\x20names\ - \x20and\x20values\x20will\x20be\n\x20appended\x20to\x20the\x20query\x20s\ - tring.\x20If\x20a\x20query\x20string\x20parameter\x20and\x20a\x20URL\n\ - \x20pattern\x20variable\x20have\x20the\x20same\x20name,\x20this\x20may\ - \x20result\x20in\x20duplicate\x20keys\x20in\n\x20the\x20query\x20string.\ - \n\n\x20#\x20Examples\n\n\x20Given\x20the\x20following\x20operation\x20c\ - onfig:\n\n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\ - \x20\x20/api/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20ad\ - dress:\x20\x20\x20\x20https://example.cloudfunctions.net/getUser\n\n\x20\ - Requests\x20to\x20the\x20following\x20request\x20paths\x20will\x20call\ - \x20the\x20backend\x20at\x20the\n\x20translated\x20path:\n\n\x20\x20\x20\ - \x20\x20Request\x20path:\x20/api/company/widgetworks/user/johndoe\n\x20\ - \x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.cloudfu\ - nctions.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\x20\x20\x20\x20R\ - equest\x20path:\x20/api/company/widgetworks/user/johndoe?timezone=EST\n\ - \x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://example.clo\ - udfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe\n\n\x0e\ - \n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03D\x04\x14\n\x0e\n\x07\x04\x01\ - \x04\0\x02\x01\x02\x12\x03D\x17\x18\n\x82\x05\n\x06\x04\x01\x04\0\x02\ - \x02\x12\x03Y\x04\x1f\x1a\xf2\x04\x20The\x20request\x20path\x20will\x20b\ - e\x20appended\x20to\x20the\x20backend\x20address.\n\n\x20#\x20Examples\n\ - \n\x20Given\x20the\x20following\x20operation\x20config:\n\n\x20\x20\x20\ - \x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\x20\x20/api/company/{cid\ - }/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\x20\x20\x20htt\ - ps://example.appspot.com\n\n\x20Requests\x20to\x20the\x20following\x20re\ - quest\x20paths\x20will\x20call\x20the\x20backend\x20at\x20the\n\x20trans\ - lated\x20path:\n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company/w\ - idgetworks/user/johndoe\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\ - \x20\x20https://example.appspot.com/api/company/widgetworks/user/johndoe\ + \x08deadline\x18\x03\x20\x01(\x01R\x08deadline\x12%\n\x0cmin_deadline\ + \x18\x04\x20\x01(\x01R\x0bminDeadlineB\x02\x18\x01\x12-\n\x12operation_d\ + eadline\x18\x05\x20\x01(\x01R\x11operationDeadline\x12R\n\x10path_transl\ + ation\x18\x06\x20\x01(\x0e2'.google.api.BackendRule.PathTranslationR\x0f\ + pathTranslation\x12#\n\x0cjwt_audience\x18\x07\x20\x01(\tH\0R\x0bjwtAudi\ + ence\x12#\n\x0cdisable_auth\x18\x08\x20\x01(\x08H\0R\x0bdisableAuth\x12\ + \x1a\n\x08protocol\x18\t\x20\x01(\tR\x08protocol\x12z\n\x1doverrides_by_\ + request_protocol\x18\n\x20\x03(\x0b27.google.api.BackendRule.OverridesBy\ + RequestProtocolEntryR\x1aoverridesByRequestProtocol\x1af\n\x1fOverridesB\ + yRequestProtocolEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12-\n\ + \x05value\x18\x02\x20\x01(\x0b2\x17.google.api.BackendRuleR\x05value:\ + \x028\x01\"e\n\x0fPathTranslation\x12\x20\n\x1cPATH_TRANSLATION_UNSPECIF\ + IED\x10\0\x12\x14\n\x10CONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16APPEND_PATH\ + _TO_ADDRESS\x10\x02B\x10\n\x0eauthenticationBn\n\x0ecom.google.apiB\x0cB\ + ackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfi\ + g;serviceconfig\xa2\x02\x04GAPIJ\xec3\n\x07\x12\x05\x0e\0\xb8\x01\x01\n\ + \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Go\ + ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ + sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ + is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ + \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ + \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ + \0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ + \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\nH\n\x02\x04\0\x12\x04\x19\0\x1e\x01\x1a<\x20`Back\ + end`\x20defines\x20the\x20backend\x20configuration\x20for\x20a\x20servic\ + e.\n\n\n\n\x03\x04\0\x01\x12\x03\x19\x08\x0f\n\x9b\x01\n\x04\x04\0\x02\0\ + \x12\x03\x1d\x02!\x1a\x8d\x01\x20A\x20list\x20of\x20API\x20backend\x20ru\ + les\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\x20**NOT\ + E:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\"last\x20\ + one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x1d\x02\n\ + \n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1d\x0b\x16\n\x0c\n\x05\x04\0\x02\0\ + \x01\x12\x03\x1d\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x1f\x20\ + \nS\n\x02\x04\x01\x12\x05!\0\xb8\x01\x01\x1aF\x20A\x20backend\x20rule\ + \x20provides\x20configuration\x20for\x20an\x20individual\x20API\x20eleme\ + nt.\n\n\n\n\x03\x04\x01\x01\x12\x03!\x08\x13\n\xcd\x02\n\x04\x04\x01\x04\ + \0\x12\x04)\x02Y\x03\x1a\xbe\x02\x20Path\x20Translation\x20specifies\x20\ + how\x20to\x20combine\x20the\x20backend\x20address\x20with\x20the\n\x20re\ + quest\x20path\x20in\x20order\x20to\x20produce\x20the\x20appropriate\x20f\ + orwarding\x20URL\x20for\x20the\n\x20request.\n\n\x20Path\x20Translation\ + \x20is\x20applicable\x20only\x20to\x20HTTP-based\x20backends.\x20Backend\ + s\x20which\n\x20do\x20not\x20accept\x20requests\x20over\x20HTTP/HTTPS\ + \x20should\x20leave\x20`path_translation`\n\x20unspecified.\n\n\x0c\n\ + \x05\x04\x01\x04\0\x01\x12\x03)\x07\x16\n\r\n\x06\x04\x01\x04\0\x02\0\ + \x12\x03*\x04%\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\x03*\x04\x20\n\ + \x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03*#$\n\x95\x07\n\x06\x04\x01\ + \x04\0\x02\x01\x12\x03C\x04\x19\x1a\x85\x07\x20Use\x20the\x20backend\x20\ + address\x20as-is,\x20with\x20no\x20modification\x20to\x20the\x20path.\ + \x20If\x20the\n\x20URL\x20pattern\x20contains\x20variables,\x20the\x20va\ + riable\x20names\x20and\x20values\x20will\x20be\n\x20appended\x20to\x20th\ + e\x20query\x20string.\x20If\x20a\x20query\x20string\x20parameter\x20and\ + \x20a\x20URL\n\x20pattern\x20variable\x20have\x20the\x20same\x20name,\ + \x20this\x20may\x20result\x20in\x20duplicate\x20keys\x20in\n\x20the\x20q\ + uery\x20string.\n\n\x20#\x20Examples\n\n\x20Given\x20the\x20following\ + \x20operation\x20config:\n\n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\ + \x20\x20\x20\x20\x20\x20/api/company/{cid}/user/{uid}\n\x20\x20\x20\x20\ + \x20Backend\x20address:\x20\x20\x20\x20https://example.cloudfunctions.ne\ + t/getUser\n\n\x20Requests\x20to\x20the\x20following\x20request\x20paths\ + \x20will\x20call\x20the\x20backend\x20at\x20the\n\x20translated\x20path:\ \n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company/widgetworks/use\ - r/johndoe?timezone=EST\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\ - \x20\x20https://example.appspot.com/api/company/widgetworks/user/johndoe\ - ?timezone=EST\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03Y\x04\x1a\n\ - \x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03Y\x1d\x1e\n\x90\x01\n\x04\ - \x04\x01\x02\0\x12\x03_\x02\x16\x1a\x82\x01\x20Selects\x20the\x20methods\ - \x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selec\ - tor][google.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\ - \n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03_\x02\x08\n\x0c\n\x05\x04\x01\ - \x02\0\x01\x12\x03_\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03_\x14\x15\ - \n.\n\x04\x04\x01\x02\x01\x12\x03b\x02\x15\x1a!\x20The\x20address\x20of\ - \x20the\x20API\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03b\ - \x02\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03b\t\x10\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03b\x13\x14\n\xa6\x01\n\x04\x04\x01\x02\x02\x12\ - \x03f\x02\x16\x1a\x98\x01\x20The\x20number\x20of\x20seconds\x20to\x20wai\ - t\x20for\x20a\x20response\x20from\x20a\x20request.\x20\x20The\x20default\ - \n\x20deadline\x20for\x20gRPC\x20is\x20infinite\x20(no\x20deadline)\x20a\ - nd\x20HTTP\x20requests\x20is\x205\x20seconds.\n\n\x0c\n\x05\x04\x01\x02\ - \x02\x05\x12\x03f\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03f\t\x11\ - \n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03f\x14\x15\n\x81\x01\n\x04\x04\ - \x01\x02\x03\x12\x03j\x02\x1a\x1at\x20Minimum\x20deadline\x20in\x20secon\ - ds\x20needed\x20for\x20this\x20method.\x20Calls\x20having\x20deadline\n\ - \x20value\x20lower\x20than\x20this\x20will\x20be\x20rejected.\n\n\x0c\n\ - \x05\x04\x01\x02\x03\x05\x12\x03j\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\ - \x01\x12\x03j\t\x15\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03j\x18\x19\ny\ - \n\x04\x04\x01\x02\x04\x12\x03n\x02\x20\x1al\x20The\x20number\x20of\x20s\ - econds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20r\ - unning\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\ - \x0c\n\x05\x04\x01\x02\x04\x05\x12\x03n\x02\x08\n\x0c\n\x05\x04\x01\x02\ - \x04\x01\x12\x03n\t\x1b\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03n\x1e\x1f\ - \n\x0b\n\x04\x04\x01\x02\x05\x12\x03p\x02'\n\x0c\n\x05\x04\x01\x02\x05\ - \x06\x12\x03p\x02\x11\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03p\x12\"\n\ - \x0c\n\x05\x04\x01\x02\x05\x03\x12\x03p%&\n\xf6\x02\n\x04\x04\x01\x08\0\ - \x12\x04z\x02}\x03\x1a\xe7\x02\x20Authentication\x20settings\x20used\x20\ - by\x20the\x20backend.\n\n\x20These\x20are\x20typically\x20used\x20to\x20\ - provide\x20service\x20management\x20functionality\x20to\n\x20a\x20backen\ - d\x20served\x20on\x20a\x20publicly-routable\x20URL.\x20The\x20`authentic\ - ation`\n\x20details\x20should\x20match\x20the\x20authentication\x20behav\ - ior\x20used\x20by\x20the\x20backend.\n\n\x20For\x20example,\x20specifyin\ - g\x20`jwt_audience`\x20implies\x20that\x20the\x20backend\x20expects\n\ - \x20authentication\x20via\x20a\x20JWT.\n\n\x0c\n\x05\x04\x01\x08\0\x01\ - \x12\x03z\x08\x16\nW\n\x04\x04\x01\x02\x06\x12\x03|\x04\x1c\x1aJ\x20The\ - \x20JWT\x20audience\x20is\x20used\x20when\x20generating\x20a\x20JWT\x20i\ - d\x20token\x20for\x20the\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x06\x05\ - \x12\x03|\x04\n\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03|\x0b\x17\n\x0c\n\ - \x05\x04\x01\x02\x06\x03\x12\x03|\x1a\x1bb\x06proto3\ + r/johndoe\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20https://\ + example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe\n\n\x20\ + \x20\x20\x20\x20Request\x20path:\x20/api/company/widgetworks/user/johndo\ + e?timezone=EST\n\x20\x20\x20\x20\x20Translated:\n\x20\x20\x20\x20\x20htt\ + ps://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid\ + =johndoe\n\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x01\x12\x03C\x04\x14\n\x0e\ + \n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03C\x17\x18\n\x82\x05\n\x06\x04\ + \x01\x04\0\x02\x02\x12\x03X\x04\x1f\x1a\xf2\x04\x20The\x20request\x20pat\ + h\x20will\x20be\x20appended\x20to\x20the\x20backend\x20address.\n\n\x20#\ + \x20Examples\n\n\x20Given\x20the\x20following\x20operation\x20config:\n\ + \n\x20\x20\x20\x20\x20Method\x20path:\x20\x20\x20\x20\x20\x20\x20\x20/ap\ + i/company/{cid}/user/{uid}\n\x20\x20\x20\x20\x20Backend\x20address:\x20\ + \x20\x20\x20https://example.appspot.com\n\n\x20Requests\x20to\x20the\x20\ + following\x20request\x20paths\x20will\x20call\x20the\x20backend\x20at\ + \x20the\n\x20translated\x20path:\n\n\x20\x20\x20\x20\x20Request\x20path:\ + \x20/api/company/widgetworks/user/johndoe\n\x20\x20\x20\x20\x20Translate\ + d:\n\x20\x20\x20\x20\x20https://example.appspot.com/api/company/widgetwo\ + rks/user/johndoe\n\n\x20\x20\x20\x20\x20Request\x20path:\x20/api/company\ + /widgetworks/user/johndoe?timezone=EST\n\x20\x20\x20\x20\x20Translated:\ + \n\x20\x20\x20\x20\x20https://example.appspot.com/api/company/widgetwork\ + s/user/johndoe?timezone=EST\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\ + \x03X\x04\x1a\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03X\x1d\x1e\n\ + \x91\x01\n\x04\x04\x01\x02\0\x12\x03_\x02\x16\x1a\x83\x01\x20Selects\x20\ + the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20Refer\ + \x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\x20sy\ + ntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03_\x02\x08\n\ + \x0c\n\x05\x04\x01\x02\0\x01\x12\x03_\t\x11\n\x0c\n\x05\x04\x01\x02\0\ + \x03\x12\x03_\x14\x15\n\x99\x05\n\x04\x04\x01\x02\x01\x12\x03u\x02\x15\ + \x1a\x8b\x05\x20The\x20address\x20of\x20the\x20API\x20backend.\n\n\x20Th\ + e\x20scheme\x20is\x20used\x20to\x20determine\x20the\x20backend\x20protoc\ + ol\x20and\x20security.\n\x20The\x20following\x20schemes\x20are\x20accept\ + ed:\n\n\x20\x20\x20\x20SCHEME\x20\x20\x20\x20\x20\x20\x20\x20PROTOCOL\ + \x20\x20\x20\x20SECURITY\n\x20\x20\x20\x20http://\x20\x20\x20\x20\x20\ + \x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20None\n\x20\x20\x20\x20https:\ + //\x20\x20\x20\x20\x20\x20HTTP\x20\x20\x20\x20\x20\x20\x20\x20TLS\n\x20\ + \x20\x20\x20grpc://\x20\x20\x20\x20\x20\x20\x20gRPC\x20\x20\x20\x20\x20\ + \x20\x20\x20None\n\x20\x20\x20\x20grpcs://\x20\x20\x20\x20\x20\x20gRPC\ + \x20\x20\x20\x20\x20\x20\x20\x20TLS\n\n\x20It\x20is\x20recommended\x20to\ + \x20explicitly\x20include\x20a\x20scheme.\x20Leaving\x20out\x20the\x20sc\ + heme\n\x20may\x20cause\x20constrasting\x20behaviors\x20across\x20platfor\ + ms.\n\n\x20If\x20the\x20port\x20is\x20unspecified,\x20the\x20default\x20\ + is:\n\x20-\x2080\x20for\x20schemes\x20without\x20TLS\n\x20-\x20443\x20fo\ + r\x20schemes\x20with\x20TLS\n\n\x20For\x20HTTP\x20backends,\x20use\x20[p\ + rotocol][google.api.BackendRule.protocol]\n\x20to\x20specify\x20the\x20p\ + rotocol\x20version.\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03u\x02\x08\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03u\t\x10\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03u\x13\x14\n\x9a\x01\n\x04\x04\x01\x02\x02\x12\x03y\x02\ + \x16\x1a\x8c\x01\x20The\x20number\x20of\x20seconds\x20to\x20wait\x20for\ + \x20a\x20response\x20from\x20a\x20request.\x20The\x20default\n\x20varies\ + \x20based\x20on\x20the\x20request\x20protocol\x20and\x20deployment\x20en\ + vironment.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03y\x02\x08\n\x0c\n\ + \x05\x04\x01\x02\x02\x01\x12\x03y\t\x11\n\x0c\n\x05\x04\x01\x02\x02\x03\ + \x12\x03y\x14\x15\n&\n\x04\x04\x01\x02\x03\x12\x03|\x02.\x1a\x19\x20Depr\ + ecated,\x20do\x20not\x20use.\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03|\ + \x02\x08\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03|\t\x15\n\x0c\n\x05\x04\ + \x01\x02\x03\x03\x12\x03|\x18\x19\n\x0c\n\x05\x04\x01\x02\x03\x08\x12\ + \x03|\x1a-\n\r\n\x06\x04\x01\x02\x03\x08\x03\x12\x03|\x1b,\nz\n\x04\x04\ + \x01\x02\x04\x12\x04\x80\x01\x02\x20\x1al\x20The\x20number\x20of\x20seco\ + nds\x20to\x20wait\x20for\x20the\x20completion\x20of\x20a\x20long\x20runn\ + ing\n\x20operation.\x20The\x20default\x20is\x20no\x20deadline.\n\n\r\n\ + \x05\x04\x01\x02\x04\x05\x12\x04\x80\x01\x02\x08\n\r\n\x05\x04\x01\x02\ + \x04\x01\x12\x04\x80\x01\t\x1b\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x80\ + \x01\x1e\x1f\n\x0c\n\x04\x04\x01\x02\x05\x12\x04\x82\x01\x02'\n\r\n\x05\ + \x04\x01\x02\x05\x06\x12\x04\x82\x01\x02\x11\n\r\n\x05\x04\x01\x02\x05\ + \x01\x12\x04\x82\x01\x12\"\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x82\x01\ + %&\n\xc0\x04\n\x04\x04\x01\x08\0\x12\x06\x92\x01\x02\x9d\x01\x03\x1a\xaf\ + \x04\x20Authentication\x20settings\x20used\x20by\x20the\x20backend.\n\n\ + \x20These\x20are\x20typically\x20used\x20to\x20provide\x20service\x20man\ + agement\x20functionality\x20to\n\x20a\x20backend\x20served\x20on\x20a\ + \x20publicly-routable\x20URL.\x20The\x20`authentication`\n\x20details\ + \x20should\x20match\x20the\x20authentication\x20behavior\x20used\x20by\ + \x20the\x20backend.\n\n\x20For\x20example,\x20specifying\x20`jwt_audienc\ + e`\x20implies\x20that\x20the\x20backend\x20expects\n\x20authentication\ + \x20via\x20a\x20JWT.\n\n\x20When\x20authentication\x20is\x20unspecified,\ + \x20the\x20resulting\x20behavior\x20is\x20the\x20same\n\x20as\x20`disabl\ + e_auth`\x20set\x20to\x20`true`.\n\n\x20Refer\x20to\x20https://developers\ + .google.com/identity/protocols/OpenIDConnect\x20for\n\x20JWT\x20ID\x20to\ + ken.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\x92\x01\x08\x16\n\xb4\x01\n\ + \x04\x04\x01\x02\x06\x12\x04\x96\x01\x04\x1c\x1a\xa5\x01\x20The\x20JWT\ + \x20audience\x20is\x20used\x20when\x20generating\x20a\x20JWT\x20ID\x20to\ + ken\x20for\x20the\x20backend.\n\x20This\x20ID\x20token\x20will\x20be\x20\ + added\x20in\x20the\x20HTTP\x20\"authorization\"\x20header,\x20and\x20sen\ + t\n\x20to\x20the\x20backend.\n\n\r\n\x05\x04\x01\x02\x06\x05\x12\x04\x96\ + \x01\x04\n\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\x96\x01\x0b\x17\n\r\n\ + \x05\x04\x01\x02\x06\x03\x12\x04\x96\x01\x1a\x1b\n\x99\x02\n\x04\x04\x01\ + \x02\x07\x12\x04\x9c\x01\x04\x1a\x1a\x8a\x02\x20When\x20disable_auth\x20\ + is\x20true,\x20a\x20JWT\x20ID\x20token\x20won't\x20be\x20generated\x20an\ + d\x20the\n\x20original\x20\"Authorization\"\x20HTTP\x20header\x20will\ + \x20be\x20preserved.\x20If\x20the\x20header\x20is\n\x20used\x20to\x20car\ + ry\x20the\x20original\x20token\x20and\x20is\x20expected\x20by\x20the\x20\ + backend,\x20this\n\x20field\x20must\x20be\x20set\x20to\x20true\x20to\x20\ + preserve\x20the\x20header.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\x9c\ + \x01\x04\x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\x9c\x01\t\x15\n\r\n\ + \x05\x04\x01\x02\x07\x03\x12\x04\x9c\x01\x18\x19\n\xf5\x05\n\x04\x04\x01\ + \x02\x08\x12\x04\xb4\x01\x02\x16\x1a\xe6\x05\x20The\x20protocol\x20used\ + \x20for\x20sending\x20a\x20request\x20to\x20the\x20backend.\n\x20The\x20\ + supported\x20values\x20are\x20\"http/1.1\"\x20and\x20\"h2\".\n\n\x20The\ + \x20default\x20value\x20is\x20inferred\x20from\x20the\x20scheme\x20in\ + \x20the\n\x20[address][google.api.BackendRule.address]\x20field:\n\n\x20\ + \x20\x20\x20SCHEME\x20\x20\x20\x20\x20\x20\x20\x20PROTOCOL\n\x20\x20\x20\ + \x20http://\x20\x20\x20\x20\x20\x20\x20http/1.1\n\x20\x20\x20\x20https:/\ + /\x20\x20\x20\x20\x20\x20http/1.1\n\x20\x20\x20\x20grpc://\x20\x20\x20\ + \x20\x20\x20\x20h2\n\x20\x20\x20\x20grpcs://\x20\x20\x20\x20\x20\x20h2\n\ + \n\x20For\x20secure\x20HTTP\x20backends\x20(https://)\x20that\x20support\ + \x20HTTP/2,\x20set\x20this\x20field\n\x20to\x20\"h2\"\x20for\x20improved\ + \x20performance.\n\n\x20Configuring\x20this\x20field\x20to\x20non-defaul\ + t\x20values\x20is\x20only\x20supported\x20for\x20secure\n\x20HTTP\x20bac\ + kends.\x20This\x20field\x20will\x20be\x20ignored\x20for\x20all\x20other\ + \x20backends.\n\n\x20See\n\x20https://www.iana.org/assignments/tls-exten\ + siontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids\n\x20fo\ + r\x20more\x20details\x20on\x20the\x20supported\x20values.\n\n\r\n\x05\ + \x04\x01\x02\x08\x05\x12\x04\xb4\x01\x02\x08\n\r\n\x05\x04\x01\x02\x08\ + \x01\x12\x04\xb4\x01\t\x11\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xb4\x01\ + \x14\x15\nI\n\x04\x04\x01\x02\t\x12\x04\xb7\x01\x02>\x1a;\x20The\x20map\ + \x20between\x20request\x20protocol\x20and\x20the\x20backend\x20address.\ + \n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xb7\x01\x02\x1a\n\r\n\x05\x04\x01\ + \x02\t\x01\x12\x04\xb7\x01\x1b8\n\r\n\x05\x04\x01\x02\t\x03\x12\x04\xb7\ + \x01;=b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/billing.rs b/googleapis-raw/src/api/billing.rs index 8ec2600..54441ad 100644 --- a/googleapis-raw/src/api/billing.rs +++ b/googleapis-raw/src/api/billing.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -161,11 +161,13 @@ pub mod billing { pub struct BillingDestination { // message fields /// The monitored resource type. The type must be defined in - /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. // @@protoc_insertion_point(field:google.api.Billing.BillingDestination.monitored_resource) pub monitored_resource: ::std::string::String, /// Names of the metrics to report to this billing destination. - /// Each name must be defined in [Service.metrics][google.api.Service.metrics] section. + /// Each name must be defined in + /// [Service.metrics][google.api.Service.metrics] section. // @@protoc_insertion_point(field:google.api.Billing.BillingDestination.metrics) pub metrics: ::std::vec::Vec<::std::string::String>, // special fields @@ -302,73 +304,85 @@ pub mod billing { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/billing.proto\x12\ngoogle.api\x1a\x17google/api/metric.\ - proto\"\xc5\x01\n\x07Billing\x12[\n\x15consumer_destinations\x18\x08\x20\ - \x03(\x0b2&.google.api.Billing.BillingDestinationR\x14consumerDestinatio\ - ns\x1a]\n\x12BillingDestination\x12-\n\x12monitored_resource\x18\x01\x20\ - \x01(\tR\x11monitoredResource\x12\x18\n\x07metrics\x18\x02\x20\x03(\tR\ - \x07metricsBn\n\x0ecom.google.apiB\x0cBillingProtoP\x01ZEgoogle.golang.o\ - rg/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\ - \xff\x11\n\x06\x12\x04\x0f\0B\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\ - \xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\ - \x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0!\n\x08\n\x01\ - \x08\x12\x03\x15\0\\\n\t\n\x02\x08\x0b\x12\x03\x15\0\\\n\x08\n\x01\x08\ - \x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\ - \x17\0-\n\t\n\x02\x08\x08\x12\x03\x17\0-\n\x08\n\x01\x08\x12\x03\x18\0'\ - \n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\ - \x02\x08$\x12\x03\x19\0\"\n\xb3\x05\n\x02\x04\0\x12\x040\0B\x01\x1a\xa6\ - \x05\x20Billing\x20related\x20configuration\x20of\x20the\x20service.\n\n\ + \n\x18google/api/billing.proto\x12\ngoogle.api\"\xc5\x01\n\x07Billing\ + \x12[\n\x15consumer_destinations\x18\x08\x20\x03(\x0b2&.google.api.Billi\ + ng.BillingDestinationR\x14consumerDestinations\x1a]\n\x12BillingDestinat\ + ion\x12-\n\x12monitored_resource\x18\x01\x20\x01(\tR\x11monitoredResourc\ + e\x12\x18\n\x07metrics\x18\x02\x20\x03(\tR\x07metricsBn\n\x0ecom.google.\ + apiB\x0cBillingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/ser\ + viceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa8\x16\n\x06\x12\x04\x0e\0L\ + \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\ + \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ + e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ + e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ + \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ + \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ + \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ + se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ + UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ + express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ + ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ + \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\ + \x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\ + \x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\ + \x03\x14\0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\ + \0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\ + \n\x02\x08$\x12\x03\x16\0\"\n\xe7\t\n\x02\x04\0\x12\x048\0L\x01\x1a\xda\ + \t\x20Billing\x20related\x20configuration\x20of\x20the\x20service.\n\n\ \x20The\x20following\x20example\x20shows\x20how\x20to\x20configure\x20mo\ - nitored\x20resources\x20and\x20metrics\n\x20for\x20billing:\n\n\x20\x20\ - \x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20type:\x20libr\ - ary.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ - \x20\x20\x20\x20\x20-\x20key:\x20/city\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20description:\x20The\x20city\x20where\x20the\x20library\x20branch\x20\ - is\x20located\x20in.\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20/name\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20The\x20name\x20of\ - \x20the\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\x20\x20-\ - \x20name:\x20library.googleapis.com/book/borrowed_count\n\x20\x20\x20\ - \x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20value\ - _type:\x20INT64\n\x20\x20\x20\x20\x20billing:\n\x20\x20\x20\x20\x20\x20\ - \x20consumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_r\ - esource:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\ + nitored\x20resources\x20and\x20metrics\n\x20for\x20billing,\x20`consumer\ + _destinations`\x20is\x20the\x20only\x20supported\x20destination\x20and\n\ + \x20the\x20monitored\x20resources\x20need\x20at\x20least\x20one\x20label\ + \x20key\n\x20`cloud.googleapis.com/location`\x20to\x20indicate\x20the\ + \x20location\x20of\x20the\x20billing\n\x20usage,\x20using\x20different\ + \x20monitored\x20resources\x20between\x20monitoring\x20and\x20billing\ + \x20is\n\x20recommended\x20so\x20they\x20can\x20be\x20evolved\x20indepen\ + dently:\n\n\n\x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\ + \x20-\x20type:\x20library.googleapis.com/billing_branch\n\x20\x20\x20\ + \x20\x20\x20\x20labels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20cloud.\ + googleapis.com/location\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description\ + :\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Predefined\x20label\ + \x20to\x20support\x20billing\x20location\x20restriction.\n\x20\x20\x20\ + \x20\x20\x20\x20-\x20key:\x20city\n\x20\x20\x20\x20\x20\x20\x20\x20\x20d\ + escription:\x20|\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Custom\x20\ + label\x20to\x20define\x20the\x20city\x20where\x20the\x20library\x20branc\ + h\x20is\x20located\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in.\n\ + \x20\x20\x20\x20\x20\x20\x20-\x20key:\x20name\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20description:\x20Custom\x20label\x20to\x20define\x20the\x20na\ + me\x20of\x20the\x20library\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\ + \x20\x20\x20\x20\x20-\x20name:\x20library.googleapis.com/book/borrowed_c\ + ount\n\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\ + \x20\x20\x20\x20value_type:\x20INT64\n\x20\x20\x20\x20\x20\x20\x20unit:\ + \x20\"1\"\n\x20\x20\x20\x20\x20billing:\n\x20\x20\x20\x20\x20\x20\x20con\ + sumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource\ + :\x20library.googleapis.com/billing_branch\n\x20\x20\x20\x20\x20\x20\x20\ \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googl\ - eapis.com/book/borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x030\x08\x0f\nx\ - \n\x04\x04\0\x03\0\x12\x043\x02;\x03\x1aj\x20Configuration\x20of\x20a\ + eapis.com/book/borrowed_count\n\n\n\n\x03\x04\0\x01\x12\x038\x08\x0f\nx\ + \n\x04\x04\0\x03\0\x12\x04;\x02E\x03\x1aj\x20Configuration\x20of\x20a\ \x20specific\x20billing\x20destination\x20(Currently\x20only\x20support\ \n\x20bill\x20against\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\ - \x01\x12\x033\n\x1c\n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x036\x04\"\x1a\ - \x8a\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\x20must\ + \x01\x12\x03;\n\x1c\n\x9b\x01\n\x06\x04\0\x03\0\x02\0\x12\x03?\x04\"\x1a\ + \x8b\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\x20must\ \x20be\x20defined\x20in\n\x20[Service.monitored_resources][google.api.Se\ - rvice.monitored_resources]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ - \x05\x12\x036\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x036\x0b\x1d\n\ - \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x036\x20!\n\xa2\x01\n\x06\x04\0\x03\ - \0\x02\x01\x12\x03:\x04\x20\x1a\x92\x01\x20Names\x20of\x20the\x20metrics\ + rvice.monitored_resources]\n\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\ + \x05\x12\x03?\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03?\x0b\x1d\n\ + \x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03?\x20!\n\xa3\x01\n\x06\x04\0\x03\ + \0\x02\x01\x12\x03D\x04\x20\x1a\x93\x01\x20Names\x20of\x20the\x20metrics\ \x20to\x20report\x20to\x20this\x20billing\x20destination.\n\x20Each\x20n\ - ame\x20must\x20be\x20defined\x20in\x20[Service.metrics][google.api.Servi\ - ce.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03:\ - \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03:\r\x13\n\x0e\n\x07\ - \x04\0\x03\0\x02\x01\x01\x12\x03:\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\ - \x01\x03\x12\x03:\x1e\x1f\n\x81\x02\n\x04\x04\0\x02\0\x12\x03A\x028\x1a\ + ame\x20must\x20be\x20defined\x20in\n\x20[Service.metrics][google.api.Ser\ + vice.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03D\ + \x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03D\r\x13\n\x0e\n\x07\ + \x04\0\x03\0\x02\x01\x01\x12\x03D\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\ + \x01\x03\x12\x03D\x1e\x1f\n\x81\x02\n\x04\x04\0\x02\0\x12\x03K\x028\x1a\ \xf3\x01\x20Billing\x20configurations\x20for\x20sending\x20metrics\x20to\ \x20the\x20consumer\x20project.\n\x20There\x20can\x20be\x20multiple\x20c\ onsumer\x20destinations\x20per\x20service,\x20each\x20one\x20must\x20hav\ e\n\x20a\x20different\x20monitored\x20resource\x20type.\x20A\x20metric\ \x20can\x20be\x20used\x20in\x20at\x20most\n\x20one\x20consumer\x20destin\ - ation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03A\x02\n\n\x0c\n\x05\x04\0\ - \x02\0\x06\x12\x03A\x0b\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03A\x1e3\n\ - \x0c\n\x05\x04\0\x02\0\x03\x12\x03A67b\x06proto3\ + ation.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03K\x02\n\n\x0c\n\x05\x04\0\ + \x02\0\x06\x12\x03K\x0b\x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03K\x1e3\n\ + \x0c\n\x05\x04\0\x02\0\x03\x12\x03K67b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file @@ -385,8 +399,7 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { - let mut deps = ::std::vec::Vec::with_capacity(1); - deps.push(super::metric::file_descriptor().clone()); + let mut deps = ::std::vec::Vec::with_capacity(0); let mut messages = ::std::vec::Vec::with_capacity(2); messages.push(Billing::generated_message_descriptor_data()); messages.push(billing::BillingDestination::generated_message_descriptor_data()); diff --git a/googleapis-raw/src/api/client.rs b/googleapis-raw/src/api/client.rs index ecec01b..7741c81 100644 --- a/googleapis-raw/src/api/client.rs +++ b/googleapis-raw/src/api/client.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -25,6 +25,2823 @@ /// of protobuf runtime. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; +/// Required information for every language. +// @@protoc_insertion_point(message:google.api.CommonLanguageSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CommonLanguageSettings { + // message fields + /// Link to automatically generated reference documentation. Example: + /// https://cloud.google.com/nodejs/docs/reference/asset/latest + // @@protoc_insertion_point(field:google.api.CommonLanguageSettings.reference_docs_uri) + pub reference_docs_uri: ::std::string::String, + /// The destination where API teams want this client library to be published. + // @@protoc_insertion_point(field:google.api.CommonLanguageSettings.destinations) + pub destinations: ::std::vec::Vec<::protobuf::EnumOrUnknown>, + /// Configuration for which RPCs should be generated in the GAPIC client. + // @@protoc_insertion_point(field:google.api.CommonLanguageSettings.selective_gapic_generation) + pub selective_gapic_generation: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.CommonLanguageSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a CommonLanguageSettings { + fn default() -> &'a CommonLanguageSettings { + ::default_instance() + } +} + +impl CommonLanguageSettings { + pub fn new() -> CommonLanguageSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "reference_docs_uri", + |m: &CommonLanguageSettings| { &m.reference_docs_uri }, + |m: &mut CommonLanguageSettings| { &mut m.reference_docs_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "destinations", + |m: &CommonLanguageSettings| { &m.destinations }, + |m: &mut CommonLanguageSettings| { &mut m.destinations }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, SelectiveGapicGeneration>( + "selective_gapic_generation", + |m: &CommonLanguageSettings| { &m.selective_gapic_generation }, + |m: &mut CommonLanguageSettings| { &mut m.selective_gapic_generation }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CommonLanguageSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for CommonLanguageSettings { + const NAME: &'static str = "CommonLanguageSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.reference_docs_uri = is.read_string()?; + }, + 16 => { + self.destinations.push(is.read_enum_or_unknown()?); + }, + 18 => { + ::protobuf::rt::read_repeated_packed_enum_or_unknown_into(is, &mut self.destinations)? + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.selective_gapic_generation)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.reference_docs_uri.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.reference_docs_uri); + } + for value in &self.destinations { + my_size += ::protobuf::rt::int32_size(2, value.value()); + }; + if let Some(v) = self.selective_gapic_generation.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.reference_docs_uri.is_empty() { + os.write_string(1, &self.reference_docs_uri)?; + } + for v in &self.destinations { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(v))?; + }; + if let Some(v) = self.selective_gapic_generation.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> CommonLanguageSettings { + CommonLanguageSettings::new() + } + + fn clear(&mut self) { + self.reference_docs_uri.clear(); + self.destinations.clear(); + self.selective_gapic_generation.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static CommonLanguageSettings { + static instance: CommonLanguageSettings = CommonLanguageSettings { + reference_docs_uri: ::std::string::String::new(), + destinations: ::std::vec::Vec::new(), + selective_gapic_generation: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for CommonLanguageSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CommonLanguageSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for CommonLanguageSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CommonLanguageSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Details about how and where to publish client libraries. +// @@protoc_insertion_point(message:google.api.ClientLibrarySettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct ClientLibrarySettings { + // message fields + /// Version of the API to apply these settings to. This is the full protobuf + /// package for the API, ending in the version element. + /// Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.version) + pub version: ::std::string::String, + /// Launch stage of this version of the API. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.launch_stage) + pub launch_stage: ::protobuf::EnumOrUnknown, + /// When using transport=rest, the client request will encode enums as + /// numbers rather than strings. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.rest_numeric_enums) + pub rest_numeric_enums: bool, + /// Settings for legacy Java features, supported in the Service YAML. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.java_settings) + pub java_settings: ::protobuf::MessageField, + /// Settings for C++ client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.cpp_settings) + pub cpp_settings: ::protobuf::MessageField, + /// Settings for PHP client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.php_settings) + pub php_settings: ::protobuf::MessageField, + /// Settings for Python client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.python_settings) + pub python_settings: ::protobuf::MessageField, + /// Settings for Node client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.node_settings) + pub node_settings: ::protobuf::MessageField, + /// Settings for .NET client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.dotnet_settings) + pub dotnet_settings: ::protobuf::MessageField, + /// Settings for Ruby client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.ruby_settings) + pub ruby_settings: ::protobuf::MessageField, + /// Settings for Go client libraries. + // @@protoc_insertion_point(field:google.api.ClientLibrarySettings.go_settings) + pub go_settings: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.ClientLibrarySettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a ClientLibrarySettings { + fn default() -> &'a ClientLibrarySettings { + ::default_instance() + } +} + +impl ClientLibrarySettings { + pub fn new() -> ClientLibrarySettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(11); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "version", + |m: &ClientLibrarySettings| { &m.version }, + |m: &mut ClientLibrarySettings| { &mut m.version }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "launch_stage", + |m: &ClientLibrarySettings| { &m.launch_stage }, + |m: &mut ClientLibrarySettings| { &mut m.launch_stage }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rest_numeric_enums", + |m: &ClientLibrarySettings| { &m.rest_numeric_enums }, + |m: &mut ClientLibrarySettings| { &mut m.rest_numeric_enums }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, JavaSettings>( + "java_settings", + |m: &ClientLibrarySettings| { &m.java_settings }, + |m: &mut ClientLibrarySettings| { &mut m.java_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CppSettings>( + "cpp_settings", + |m: &ClientLibrarySettings| { &m.cpp_settings }, + |m: &mut ClientLibrarySettings| { &mut m.cpp_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PhpSettings>( + "php_settings", + |m: &ClientLibrarySettings| { &m.php_settings }, + |m: &mut ClientLibrarySettings| { &mut m.php_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, PythonSettings>( + "python_settings", + |m: &ClientLibrarySettings| { &m.python_settings }, + |m: &mut ClientLibrarySettings| { &mut m.python_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, NodeSettings>( + "node_settings", + |m: &ClientLibrarySettings| { &m.node_settings }, + |m: &mut ClientLibrarySettings| { &mut m.node_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, DotnetSettings>( + "dotnet_settings", + |m: &ClientLibrarySettings| { &m.dotnet_settings }, + |m: &mut ClientLibrarySettings| { &mut m.dotnet_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, RubySettings>( + "ruby_settings", + |m: &ClientLibrarySettings| { &m.ruby_settings }, + |m: &mut ClientLibrarySettings| { &mut m.ruby_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, GoSettings>( + "go_settings", + |m: &ClientLibrarySettings| { &m.go_settings }, + |m: &mut ClientLibrarySettings| { &mut m.go_settings }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "ClientLibrarySettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for ClientLibrarySettings { + const NAME: &'static str = "ClientLibrarySettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.version = is.read_string()?; + }, + 16 => { + self.launch_stage = is.read_enum_or_unknown()?; + }, + 24 => { + self.rest_numeric_enums = is.read_bool()?; + }, + 170 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.java_settings)?; + }, + 178 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.cpp_settings)?; + }, + 186 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.php_settings)?; + }, + 194 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.python_settings)?; + }, + 202 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.node_settings)?; + }, + 210 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.dotnet_settings)?; + }, + 218 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.ruby_settings)?; + }, + 226 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.go_settings)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.version.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.version); + } + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(2, self.launch_stage.value()); + } + if self.rest_numeric_enums != false { + my_size += 1 + 1; + } + if let Some(v) = self.java_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.cpp_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.php_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.python_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.node_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.dotnet_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.ruby_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.go_settings.as_ref() { + let len = v.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.version.is_empty() { + os.write_string(1, &self.version)?; + } + if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { + os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.launch_stage))?; + } + if self.rest_numeric_enums != false { + os.write_bool(3, self.rest_numeric_enums)?; + } + if let Some(v) = self.java_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(21, v, os)?; + } + if let Some(v) = self.cpp_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(22, v, os)?; + } + if let Some(v) = self.php_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(23, v, os)?; + } + if let Some(v) = self.python_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(24, v, os)?; + } + if let Some(v) = self.node_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(25, v, os)?; + } + if let Some(v) = self.dotnet_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(26, v, os)?; + } + if let Some(v) = self.ruby_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(27, v, os)?; + } + if let Some(v) = self.go_settings.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(28, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> ClientLibrarySettings { + ClientLibrarySettings::new() + } + + fn clear(&mut self) { + self.version.clear(); + self.launch_stage = ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); + self.rest_numeric_enums = false; + self.java_settings.clear(); + self.cpp_settings.clear(); + self.php_settings.clear(); + self.python_settings.clear(); + self.node_settings.clear(); + self.dotnet_settings.clear(); + self.ruby_settings.clear(); + self.go_settings.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static ClientLibrarySettings { + static instance: ClientLibrarySettings = ClientLibrarySettings { + version: ::std::string::String::new(), + launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), + rest_numeric_enums: false, + java_settings: ::protobuf::MessageField::none(), + cpp_settings: ::protobuf::MessageField::none(), + php_settings: ::protobuf::MessageField::none(), + python_settings: ::protobuf::MessageField::none(), + node_settings: ::protobuf::MessageField::none(), + dotnet_settings: ::protobuf::MessageField::none(), + ruby_settings: ::protobuf::MessageField::none(), + go_settings: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for ClientLibrarySettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("ClientLibrarySettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for ClientLibrarySettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for ClientLibrarySettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// This message configures the settings for publishing [Google Cloud Client +/// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) +/// generated from the service config. +// @@protoc_insertion_point(message:google.api.Publishing) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct Publishing { + // message fields + /// A list of API method settings, e.g. the behavior for methods that use the + /// long-running operation pattern. + // @@protoc_insertion_point(field:google.api.Publishing.method_settings) + pub method_settings: ::std::vec::Vec, + /// Link to a *public* URI where users can report issues. Example: + /// https://issuetracker.google.com/issues/new?component=190865&template=1161103 + // @@protoc_insertion_point(field:google.api.Publishing.new_issue_uri) + pub new_issue_uri: ::std::string::String, + /// Link to product home page. Example: + /// https://cloud.google.com/asset-inventory/docs/overview + // @@protoc_insertion_point(field:google.api.Publishing.documentation_uri) + pub documentation_uri: ::std::string::String, + /// Used as a tracking tag when collecting data about the APIs developer + /// relations artifacts like docs, packages delivered to package managers, + /// etc. Example: "speech". + // @@protoc_insertion_point(field:google.api.Publishing.api_short_name) + pub api_short_name: ::std::string::String, + /// GitHub label to apply to issues and pull requests opened for this API. + // @@protoc_insertion_point(field:google.api.Publishing.github_label) + pub github_label: ::std::string::String, + /// GitHub teams to be added to CODEOWNERS in the directory in GitHub + /// containing source code for the client libraries for this API. + // @@protoc_insertion_point(field:google.api.Publishing.codeowner_github_teams) + pub codeowner_github_teams: ::std::vec::Vec<::std::string::String>, + /// A prefix used in sample code when demarking regions to be included in + /// documentation. + // @@protoc_insertion_point(field:google.api.Publishing.doc_tag_prefix) + pub doc_tag_prefix: ::std::string::String, + /// For whom the client library is being published. + // @@protoc_insertion_point(field:google.api.Publishing.organization) + pub organization: ::protobuf::EnumOrUnknown, + /// Client library settings. If the same version string appears multiple + /// times in this list, then the last one wins. Settings from earlier + /// settings with the same version string are discarded. + // @@protoc_insertion_point(field:google.api.Publishing.library_settings) + pub library_settings: ::std::vec::Vec, + /// Optional link to proto reference documentation. Example: + /// https://cloud.google.com/pubsub/lite/docs/reference/rpc + // @@protoc_insertion_point(field:google.api.Publishing.proto_reference_documentation_uri) + pub proto_reference_documentation_uri: ::std::string::String, + /// Optional link to REST reference documentation. Example: + /// https://cloud.google.com/pubsub/lite/docs/reference/rest + // @@protoc_insertion_point(field:google.api.Publishing.rest_reference_documentation_uri) + pub rest_reference_documentation_uri: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.api.Publishing.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a Publishing { + fn default() -> &'a Publishing { + ::default_instance() + } +} + +impl Publishing { + pub fn new() -> Publishing { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(11); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "method_settings", + |m: &Publishing| { &m.method_settings }, + |m: &mut Publishing| { &mut m.method_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "new_issue_uri", + |m: &Publishing| { &m.new_issue_uri }, + |m: &mut Publishing| { &mut m.new_issue_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "documentation_uri", + |m: &Publishing| { &m.documentation_uri }, + |m: &mut Publishing| { &mut m.documentation_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "api_short_name", + |m: &Publishing| { &m.api_short_name }, + |m: &mut Publishing| { &mut m.api_short_name }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "github_label", + |m: &Publishing| { &m.github_label }, + |m: &mut Publishing| { &mut m.github_label }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "codeowner_github_teams", + |m: &Publishing| { &m.codeowner_github_teams }, + |m: &mut Publishing| { &mut m.codeowner_github_teams }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "doc_tag_prefix", + |m: &Publishing| { &m.doc_tag_prefix }, + |m: &mut Publishing| { &mut m.doc_tag_prefix }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "organization", + |m: &Publishing| { &m.organization }, + |m: &mut Publishing| { &mut m.organization }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "library_settings", + |m: &Publishing| { &m.library_settings }, + |m: &mut Publishing| { &mut m.library_settings }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "proto_reference_documentation_uri", + |m: &Publishing| { &m.proto_reference_documentation_uri }, + |m: &mut Publishing| { &mut m.proto_reference_documentation_uri }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rest_reference_documentation_uri", + |m: &Publishing| { &m.rest_reference_documentation_uri }, + |m: &mut Publishing| { &mut m.rest_reference_documentation_uri }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "Publishing", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for Publishing { + const NAME: &'static str = "Publishing"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 18 => { + self.method_settings.push(is.read_message()?); + }, + 810 => { + self.new_issue_uri = is.read_string()?; + }, + 818 => { + self.documentation_uri = is.read_string()?; + }, + 826 => { + self.api_short_name = is.read_string()?; + }, + 834 => { + self.github_label = is.read_string()?; + }, + 842 => { + self.codeowner_github_teams.push(is.read_string()?); + }, + 850 => { + self.doc_tag_prefix = is.read_string()?; + }, + 856 => { + self.organization = is.read_enum_or_unknown()?; + }, + 874 => { + self.library_settings.push(is.read_message()?); + }, + 882 => { + self.proto_reference_documentation_uri = is.read_string()?; + }, + 890 => { + self.rest_reference_documentation_uri = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.method_settings { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.new_issue_uri.is_empty() { + my_size += ::protobuf::rt::string_size(101, &self.new_issue_uri); + } + if !self.documentation_uri.is_empty() { + my_size += ::protobuf::rt::string_size(102, &self.documentation_uri); + } + if !self.api_short_name.is_empty() { + my_size += ::protobuf::rt::string_size(103, &self.api_short_name); + } + if !self.github_label.is_empty() { + my_size += ::protobuf::rt::string_size(104, &self.github_label); + } + for value in &self.codeowner_github_teams { + my_size += ::protobuf::rt::string_size(105, &value); + }; + if !self.doc_tag_prefix.is_empty() { + my_size += ::protobuf::rt::string_size(106, &self.doc_tag_prefix); + } + if self.organization != ::protobuf::EnumOrUnknown::new(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(107, self.organization.value()); + } + for value in &self.library_settings { + let len = value.compute_size(); + my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + if !self.proto_reference_documentation_uri.is_empty() { + my_size += ::protobuf::rt::string_size(110, &self.proto_reference_documentation_uri); + } + if !self.rest_reference_documentation_uri.is_empty() { + my_size += ::protobuf::rt::string_size(111, &self.rest_reference_documentation_uri); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.method_settings { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + if !self.new_issue_uri.is_empty() { + os.write_string(101, &self.new_issue_uri)?; + } + if !self.documentation_uri.is_empty() { + os.write_string(102, &self.documentation_uri)?; + } + if !self.api_short_name.is_empty() { + os.write_string(103, &self.api_short_name)?; + } + if !self.github_label.is_empty() { + os.write_string(104, &self.github_label)?; + } + for v in &self.codeowner_github_teams { + os.write_string(105, &v)?; + }; + if !self.doc_tag_prefix.is_empty() { + os.write_string(106, &self.doc_tag_prefix)?; + } + if self.organization != ::protobuf::EnumOrUnknown::new(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED) { + os.write_enum(107, ::protobuf::EnumOrUnknown::value(&self.organization))?; + } + for v in &self.library_settings { + ::protobuf::rt::write_message_field_with_cached_size(109, v, os)?; + }; + if !self.proto_reference_documentation_uri.is_empty() { + os.write_string(110, &self.proto_reference_documentation_uri)?; + } + if !self.rest_reference_documentation_uri.is_empty() { + os.write_string(111, &self.rest_reference_documentation_uri)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> Publishing { + Publishing::new() + } + + fn clear(&mut self) { + self.method_settings.clear(); + self.new_issue_uri.clear(); + self.documentation_uri.clear(); + self.api_short_name.clear(); + self.github_label.clear(); + self.codeowner_github_teams.clear(); + self.doc_tag_prefix.clear(); + self.organization = ::protobuf::EnumOrUnknown::new(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED); + self.library_settings.clear(); + self.proto_reference_documentation_uri.clear(); + self.rest_reference_documentation_uri.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static Publishing { + static instance: Publishing = Publishing { + method_settings: ::std::vec::Vec::new(), + new_issue_uri: ::std::string::String::new(), + documentation_uri: ::std::string::String::new(), + api_short_name: ::std::string::String::new(), + github_label: ::std::string::String::new(), + codeowner_github_teams: ::std::vec::Vec::new(), + doc_tag_prefix: ::std::string::String::new(), + organization: ::protobuf::EnumOrUnknown::from_i32(0), + library_settings: ::std::vec::Vec::new(), + proto_reference_documentation_uri: ::std::string::String::new(), + rest_reference_documentation_uri: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for Publishing { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("Publishing").unwrap()).clone() + } +} + +impl ::std::fmt::Display for Publishing { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for Publishing { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Java client libraries. +// @@protoc_insertion_point(message:google.api.JavaSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct JavaSettings { + // message fields + // @@protoc_insertion_point(field:google.api.JavaSettings.library_package) + pub library_package: ::std::string::String, + // @@protoc_insertion_point(field:google.api.JavaSettings.service_class_names) + pub service_class_names: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// Some settings. + // @@protoc_insertion_point(field:google.api.JavaSettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.JavaSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a JavaSettings { + fn default() -> &'a JavaSettings { + ::default_instance() + } +} + +impl JavaSettings { + pub fn new() -> JavaSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "library_package", + |m: &JavaSettings| { &m.library_package }, + |m: &mut JavaSettings| { &mut m.library_package }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "service_class_names", + |m: &JavaSettings| { &m.service_class_names }, + |m: &mut JavaSettings| { &mut m.service_class_names }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &JavaSettings| { &m.common }, + |m: &mut JavaSettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "JavaSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for JavaSettings { + const NAME: &'static str = "JavaSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.library_package = is.read_string()?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.service_class_names.insert(key, value); + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.library_package.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.library_package); + } + for (k, v) in &self.service_class_names { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.library_package.is_empty() { + os.write_string(1, &self.library_package)?; + } + for (k, v) in &self.service_class_names { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> JavaSettings { + JavaSettings::new() + } + + fn clear(&mut self) { + self.library_package.clear(); + self.service_class_names.clear(); + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static JavaSettings { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(JavaSettings::new) + } +} + +impl ::protobuf::MessageFull for JavaSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("JavaSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for JavaSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for JavaSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for C++ client libraries. +// @@protoc_insertion_point(message:google.api.CppSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct CppSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.CppSettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.CppSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a CppSettings { + fn default() -> &'a CppSettings { + ::default_instance() + } +} + +impl CppSettings { + pub fn new() -> CppSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &CppSettings| { &m.common }, + |m: &mut CppSettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "CppSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for CppSettings { + const NAME: &'static str = "CppSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> CppSettings { + CppSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static CppSettings { + static instance: CppSettings = CppSettings { + common: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for CppSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("CppSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for CppSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for CppSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Php client libraries. +// @@protoc_insertion_point(message:google.api.PhpSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PhpSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.PhpSettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.PhpSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a PhpSettings { + fn default() -> &'a PhpSettings { + ::default_instance() + } +} + +impl PhpSettings { + pub fn new() -> PhpSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &PhpSettings| { &m.common }, + |m: &mut PhpSettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PhpSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for PhpSettings { + const NAME: &'static str = "PhpSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> PhpSettings { + PhpSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static PhpSettings { + static instance: PhpSettings = PhpSettings { + common: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for PhpSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PhpSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for PhpSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PhpSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Python client libraries. +// @@protoc_insertion_point(message:google.api.PythonSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct PythonSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.PythonSettings.common) + pub common: ::protobuf::MessageField, + /// Experimental features to be included during client library generation. + // @@protoc_insertion_point(field:google.api.PythonSettings.experimental_features) + pub experimental_features: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.PythonSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a PythonSettings { + fn default() -> &'a PythonSettings { + ::default_instance() + } +} + +impl PythonSettings { + pub fn new() -> PythonSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &PythonSettings| { &m.common }, + |m: &mut PythonSettings| { &mut m.common }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, python_settings::ExperimentalFeatures>( + "experimental_features", + |m: &PythonSettings| { &m.experimental_features }, + |m: &mut PythonSettings| { &mut m.experimental_features }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PythonSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for PythonSettings { + const NAME: &'static str = "PythonSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.experimental_features)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.experimental_features.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if let Some(v) = self.experimental_features.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> PythonSettings { + PythonSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.experimental_features.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static PythonSettings { + static instance: PythonSettings = PythonSettings { + common: ::protobuf::MessageField::none(), + experimental_features: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for PythonSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("PythonSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for PythonSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for PythonSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `PythonSettings` +pub mod python_settings { + /// Experimental features to be included during client library generation. + /// These fields will be deprecated once the feature graduates and is enabled + /// by default. + // @@protoc_insertion_point(message:google.api.PythonSettings.ExperimentalFeatures) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct ExperimentalFeatures { + // message fields + /// Enables generation of asynchronous REST clients if `rest` transport is + /// enabled. By default, asynchronous REST clients will not be generated. + /// This feature will be enabled by default 1 month after launching the + /// feature in preview packages. + // @@protoc_insertion_point(field:google.api.PythonSettings.ExperimentalFeatures.rest_async_io_enabled) + pub rest_async_io_enabled: bool, + // special fields + // @@protoc_insertion_point(special_field:google.api.PythonSettings.ExperimentalFeatures.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a ExperimentalFeatures { + fn default() -> &'a ExperimentalFeatures { + ::default_instance() + } + } + + impl ExperimentalFeatures { + pub fn new() -> ExperimentalFeatures { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "rest_async_io_enabled", + |m: &ExperimentalFeatures| { &m.rest_async_io_enabled }, + |m: &mut ExperimentalFeatures| { &mut m.rest_async_io_enabled }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "PythonSettings.ExperimentalFeatures", + fields, + oneofs, + ) + } + } + + impl ::protobuf::Message for ExperimentalFeatures { + const NAME: &'static str = "ExperimentalFeatures"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.rest_async_io_enabled = is.read_bool()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.rest_async_io_enabled != false { + my_size += 1 + 1; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.rest_async_io_enabled != false { + os.write_bool(1, self.rest_async_io_enabled)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> ExperimentalFeatures { + ExperimentalFeatures::new() + } + + fn clear(&mut self) { + self.rest_async_io_enabled = false; + self.special_fields.clear(); + } + + fn default_instance() -> &'static ExperimentalFeatures { + static instance: ExperimentalFeatures = ExperimentalFeatures { + rest_async_io_enabled: false, + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } + + impl ::protobuf::MessageFull for ExperimentalFeatures { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("PythonSettings.ExperimentalFeatures").unwrap()).clone() + } + } + + impl ::std::fmt::Display for ExperimentalFeatures { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + + impl ::protobuf::reflect::ProtobufValue for ExperimentalFeatures { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } +} + +/// Settings for Node client libraries. +// @@protoc_insertion_point(message:google.api.NodeSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct NodeSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.NodeSettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.NodeSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a NodeSettings { + fn default() -> &'a NodeSettings { + ::default_instance() + } +} + +impl NodeSettings { + pub fn new() -> NodeSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &NodeSettings| { &m.common }, + |m: &mut NodeSettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "NodeSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for NodeSettings { + const NAME: &'static str = "NodeSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> NodeSettings { + NodeSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static NodeSettings { + static instance: NodeSettings = NodeSettings { + common: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for NodeSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("NodeSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for NodeSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for NodeSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Dotnet client libraries. +// @@protoc_insertion_point(message:google.api.DotnetSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct DotnetSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.DotnetSettings.common) + pub common: ::protobuf::MessageField, + /// Map from original service names to renamed versions. + /// This is used when the default generated types + /// would cause a naming conflict. (Neither name is + /// fully-qualified.) + /// Example: Subscriber to SubscriberServiceApi. + // @@protoc_insertion_point(field:google.api.DotnetSettings.renamed_services) + pub renamed_services: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// Map from full resource types to the effective short name + /// for the resource. This is used when otherwise resource + /// named from different services would cause naming collisions. + /// Example entry: + /// "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + // @@protoc_insertion_point(field:google.api.DotnetSettings.renamed_resources) + pub renamed_resources: ::std::collections::HashMap<::std::string::String, ::std::string::String>, + /// List of full resource types to ignore during generation. + /// This is typically used for API-specific Location resources, + /// which should be handled by the generator as if they were actually + /// the common Location resources. + /// Example entry: "documentai.googleapis.com/Location" + // @@protoc_insertion_point(field:google.api.DotnetSettings.ignored_resources) + pub ignored_resources: ::std::vec::Vec<::std::string::String>, + /// Namespaces which must be aliased in snippets due to + /// a known (but non-generator-predictable) naming collision + // @@protoc_insertion_point(field:google.api.DotnetSettings.forced_namespace_aliases) + pub forced_namespace_aliases: ::std::vec::Vec<::std::string::String>, + /// Method signatures (in the form "service.method(signature)") + /// which are provided separately, so shouldn't be generated. + /// Snippets *calling* these methods are still generated, however. + // @@protoc_insertion_point(field:google.api.DotnetSettings.handwritten_signatures) + pub handwritten_signatures: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.DotnetSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a DotnetSettings { + fn default() -> &'a DotnetSettings { + ::default_instance() + } +} + +impl DotnetSettings { + pub fn new() -> DotnetSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(6); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &DotnetSettings| { &m.common }, + |m: &mut DotnetSettings| { &mut m.common }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "renamed_services", + |m: &DotnetSettings| { &m.renamed_services }, + |m: &mut DotnetSettings| { &mut m.renamed_services }, + )); + fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>( + "renamed_resources", + |m: &DotnetSettings| { &m.renamed_resources }, + |m: &mut DotnetSettings| { &mut m.renamed_resources }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "ignored_resources", + |m: &DotnetSettings| { &m.ignored_resources }, + |m: &mut DotnetSettings| { &mut m.ignored_resources }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "forced_namespace_aliases", + |m: &DotnetSettings| { &m.forced_namespace_aliases }, + |m: &mut DotnetSettings| { &mut m.forced_namespace_aliases }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "handwritten_signatures", + |m: &DotnetSettings| { &m.handwritten_signatures }, + |m: &mut DotnetSettings| { &mut m.handwritten_signatures }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "DotnetSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for DotnetSettings { + const NAME: &'static str = "DotnetSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + 18 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.renamed_services.insert(key, value); + }, + 26 => { + let len = is.read_raw_varint32()?; + let old_limit = is.push_limit(len as u64)?; + let mut key = ::std::default::Default::default(); + let mut value = ::std::default::Default::default(); + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => key = is.read_string()?, + 18 => value = is.read_string()?, + _ => ::protobuf::rt::skip_field_for_tag(tag, is)?, + }; + } + is.pop_limit(old_limit); + self.renamed_resources.insert(key, value); + }, + 34 => { + self.ignored_resources.push(is.read_string()?); + }, + 42 => { + self.forced_namespace_aliases.push(is.read_string()?); + }, + 50 => { + self.handwritten_signatures.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for (k, v) in &self.renamed_services { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + for (k, v) in &self.renamed_resources { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size + }; + for value in &self.ignored_resources { + my_size += ::protobuf::rt::string_size(4, &value); + }; + for value in &self.forced_namespace_aliases { + my_size += ::protobuf::rt::string_size(5, &value); + }; + for value in &self.handwritten_signatures { + my_size += ::protobuf::rt::string_size(6, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + for (k, v) in &self.renamed_services { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(18)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + for (k, v) in &self.renamed_resources { + let mut entry_size = 0; + entry_size += ::protobuf::rt::string_size(1, &k); + entry_size += ::protobuf::rt::string_size(2, &v); + os.write_raw_varint32(26)?; // Tag. + os.write_raw_varint32(entry_size as u32)?; + os.write_string(1, &k)?; + os.write_string(2, &v)?; + }; + for v in &self.ignored_resources { + os.write_string(4, &v)?; + }; + for v in &self.forced_namespace_aliases { + os.write_string(5, &v)?; + }; + for v in &self.handwritten_signatures { + os.write_string(6, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> DotnetSettings { + DotnetSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.renamed_services.clear(); + self.renamed_resources.clear(); + self.ignored_resources.clear(); + self.forced_namespace_aliases.clear(); + self.handwritten_signatures.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static DotnetSettings { + static instance: ::protobuf::rt::Lazy = ::protobuf::rt::Lazy::new(); + instance.get(DotnetSettings::new) + } +} + +impl ::protobuf::MessageFull for DotnetSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("DotnetSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for DotnetSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for DotnetSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Ruby client libraries. +// @@protoc_insertion_point(message:google.api.RubySettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct RubySettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.RubySettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.RubySettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a RubySettings { + fn default() -> &'a RubySettings { + ::default_instance() + } +} + +impl RubySettings { + pub fn new() -> RubySettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &RubySettings| { &m.common }, + |m: &mut RubySettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "RubySettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for RubySettings { + const NAME: &'static str = "RubySettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> RubySettings { + RubySettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static RubySettings { + static instance: RubySettings = RubySettings { + common: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for RubySettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("RubySettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for RubySettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for RubySettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Settings for Go client libraries. +// @@protoc_insertion_point(message:google.api.GoSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct GoSettings { + // message fields + /// Some settings. + // @@protoc_insertion_point(field:google.api.GoSettings.common) + pub common: ::protobuf::MessageField, + // special fields + // @@protoc_insertion_point(special_field:google.api.GoSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a GoSettings { + fn default() -> &'a GoSettings { + ::default_instance() + } +} + +impl GoSettings { + pub fn new() -> GoSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, CommonLanguageSettings>( + "common", + |m: &GoSettings| { &m.common }, + |m: &mut GoSettings| { &mut m.common }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "GoSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for GoSettings { + const NAME: &'static str = "GoSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.common)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.common.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.common.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> GoSettings { + GoSettings::new() + } + + fn clear(&mut self) { + self.common.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static GoSettings { + static instance: GoSettings = GoSettings { + common: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for GoSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("GoSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for GoSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for GoSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Describes the generator configuration for a method. +// @@protoc_insertion_point(message:google.api.MethodSettings) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct MethodSettings { + // message fields + // @@protoc_insertion_point(field:google.api.MethodSettings.selector) + pub selector: ::std::string::String, + // @@protoc_insertion_point(field:google.api.MethodSettings.long_running) + pub long_running: ::protobuf::MessageField, + // @@protoc_insertion_point(field:google.api.MethodSettings.auto_populated_fields) + pub auto_populated_fields: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.MethodSettings.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a MethodSettings { + fn default() -> &'a MethodSettings { + ::default_instance() + } +} + +impl MethodSettings { + pub fn new() -> MethodSettings { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &MethodSettings| { &m.selector }, + |m: &mut MethodSettings| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, method_settings::LongRunning>( + "long_running", + |m: &MethodSettings| { &m.long_running }, + |m: &mut MethodSettings| { &mut m.long_running }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "auto_populated_fields", + |m: &MethodSettings| { &m.auto_populated_fields }, + |m: &mut MethodSettings| { &mut m.auto_populated_fields }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MethodSettings", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for MethodSettings { + const NAME: &'static str = "MethodSettings"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; + }, + 18 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.long_running)?; + }, + 26 => { + self.auto_populated_fields.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.selector.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.selector); + } + if let Some(v) = self.long_running.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + for value in &self.auto_populated_fields { + my_size += ::protobuf::rt::string_size(3, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.selector.is_empty() { + os.write_string(1, &self.selector)?; + } + if let Some(v) = self.long_running.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + } + for v in &self.auto_populated_fields { + os.write_string(3, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> MethodSettings { + MethodSettings::new() + } + + fn clear(&mut self) { + self.selector.clear(); + self.long_running.clear(); + self.auto_populated_fields.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static MethodSettings { + static instance: MethodSettings = MethodSettings { + selector: ::std::string::String::new(), + long_running: ::protobuf::MessageField::none(), + auto_populated_fields: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for MethodSettings { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MethodSettings").unwrap()).clone() + } +} + +impl ::std::fmt::Display for MethodSettings { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for MethodSettings { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `MethodSettings` +pub mod method_settings { + /// Describes settings to use when generating API methods that use the + /// long-running operation pattern. + /// All default values below are from those used in the client library + /// generators (e.g. + /// [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + // @@protoc_insertion_point(message:google.api.MethodSettings.LongRunning) + #[derive(PartialEq,Clone,Default,Debug)] + pub struct LongRunning { + // message fields + /// Initial delay after which the first poll request will be made. + /// Default value: 5 seconds. + // @@protoc_insertion_point(field:google.api.MethodSettings.LongRunning.initial_poll_delay) + pub initial_poll_delay: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// Multiplier to gradually increase delay between subsequent polls until it + /// reaches max_poll_delay. + /// Default value: 1.5. + // @@protoc_insertion_point(field:google.api.MethodSettings.LongRunning.poll_delay_multiplier) + pub poll_delay_multiplier: f32, + /// Maximum time between two subsequent poll requests. + /// Default value: 45 seconds. + // @@protoc_insertion_point(field:google.api.MethodSettings.LongRunning.max_poll_delay) + pub max_poll_delay: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// Total polling timeout. + /// Default value: 5 minutes. + // @@protoc_insertion_point(field:google.api.MethodSettings.LongRunning.total_poll_timeout) + pub total_poll_timeout: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + // special fields + // @@protoc_insertion_point(special_field:google.api.MethodSettings.LongRunning.special_fields) + pub special_fields: ::protobuf::SpecialFields, + } + + impl<'a> ::std::default::Default for &'a LongRunning { + fn default() -> &'a LongRunning { + ::default_instance() + } + } + + impl LongRunning { + pub fn new() -> LongRunning { + ::std::default::Default::default() + } + + pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(4); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "initial_poll_delay", + |m: &LongRunning| { &m.initial_poll_delay }, + |m: &mut LongRunning| { &mut m.initial_poll_delay }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "poll_delay_multiplier", + |m: &LongRunning| { &m.poll_delay_multiplier }, + |m: &mut LongRunning| { &mut m.poll_delay_multiplier }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "max_poll_delay", + |m: &LongRunning| { &m.max_poll_delay }, + |m: &mut LongRunning| { &mut m.max_poll_delay }, + )); + fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::duration::Duration>( + "total_poll_timeout", + |m: &LongRunning| { &m.total_poll_timeout }, + |m: &mut LongRunning| { &mut m.total_poll_timeout }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MethodSettings.LongRunning", + fields, + oneofs, + ) + } + } + + impl ::protobuf::Message for LongRunning { + const NAME: &'static str = "LongRunning"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.initial_poll_delay)?; + }, + 21 => { + self.poll_delay_multiplier = is.read_float()?; + }, + 26 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.max_poll_delay)?; + }, + 34 => { + ::protobuf::rt::read_singular_message_into_field(is, &mut self.total_poll_timeout)?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if let Some(v) = self.initial_poll_delay.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if self.poll_delay_multiplier != 0. { + my_size += 1 + 4; + } + if let Some(v) = self.max_poll_delay.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + if let Some(v) = self.total_poll_timeout.as_ref() { + let len = v.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if let Some(v) = self.initial_poll_delay.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; + } + if self.poll_delay_multiplier != 0. { + os.write_float(2, self.poll_delay_multiplier)?; + } + if let Some(v) = self.max_poll_delay.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; + } + if let Some(v) = self.total_poll_timeout.as_ref() { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> LongRunning { + LongRunning::new() + } + + fn clear(&mut self) { + self.initial_poll_delay.clear(); + self.poll_delay_multiplier = 0.; + self.max_poll_delay.clear(); + self.total_poll_timeout.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static LongRunning { + static instance: LongRunning = LongRunning { + initial_poll_delay: ::protobuf::MessageField::none(), + poll_delay_multiplier: 0., + max_poll_delay: ::protobuf::MessageField::none(), + total_poll_timeout: ::protobuf::MessageField::none(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } + } + + impl ::protobuf::MessageFull for LongRunning { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().message_by_package_relative_name("MethodSettings.LongRunning").unwrap()).clone() + } + } + + impl ::std::fmt::Display for LongRunning { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } + } + + impl ::protobuf::reflect::ProtobufValue for LongRunning { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; + } +} + +/// This message is used to configure the generation of a subset of the RPCs in +/// a service for client libraries. +// @@protoc_insertion_point(message:google.api.SelectiveGapicGeneration) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct SelectiveGapicGeneration { + // message fields + /// An allowlist of the fully qualified names of RPCs that should be included + /// on public client surfaces. + // @@protoc_insertion_point(field:google.api.SelectiveGapicGeneration.methods) + pub methods: ::std::vec::Vec<::std::string::String>, + // special fields + // @@protoc_insertion_point(special_field:google.api.SelectiveGapicGeneration.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a SelectiveGapicGeneration { + fn default() -> &'a SelectiveGapicGeneration { + ::default_instance() + } +} + +impl SelectiveGapicGeneration { + pub fn new() -> SelectiveGapicGeneration { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "methods", + |m: &SelectiveGapicGeneration| { &m.methods }, + |m: &mut SelectiveGapicGeneration| { &mut m.methods }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "SelectiveGapicGeneration", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for SelectiveGapicGeneration { + const NAME: &'static str = "SelectiveGapicGeneration"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.methods.push(is.read_string()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + for value in &self.methods { + my_size += ::protobuf::rt::string_size(1, &value); + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + for v in &self.methods { + os.write_string(1, &v)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> SelectiveGapicGeneration { + SelectiveGapicGeneration::new() + } + + fn clear(&mut self) { + self.methods.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static SelectiveGapicGeneration { + static instance: SelectiveGapicGeneration = SelectiveGapicGeneration { + methods: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for SelectiveGapicGeneration { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("SelectiveGapicGeneration").unwrap()).clone() + } +} + +impl ::std::fmt::Display for SelectiveGapicGeneration { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for SelectiveGapicGeneration { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// The organization for which the client libraries are being published. +/// Affects the url where generated docs are published, etc. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.ClientLibraryOrganization) +pub enum ClientLibraryOrganization { + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED) + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.CLOUD) + CLOUD = 1, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.ADS) + ADS = 2, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.PHOTOS) + PHOTOS = 3, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.STREET_VIEW) + STREET_VIEW = 4, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.SHOPPING) + SHOPPING = 5, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.GEO) + GEO = 6, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryOrganization.GENERATIVE_AI) + GENERATIVE_AI = 7, +} + +impl ::protobuf::Enum for ClientLibraryOrganization { + const NAME: &'static str = "ClientLibraryOrganization"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED), + 1 => ::std::option::Option::Some(ClientLibraryOrganization::CLOUD), + 2 => ::std::option::Option::Some(ClientLibraryOrganization::ADS), + 3 => ::std::option::Option::Some(ClientLibraryOrganization::PHOTOS), + 4 => ::std::option::Option::Some(ClientLibraryOrganization::STREET_VIEW), + 5 => ::std::option::Option::Some(ClientLibraryOrganization::SHOPPING), + 6 => ::std::option::Option::Some(ClientLibraryOrganization::GEO), + 7 => ::std::option::Option::Some(ClientLibraryOrganization::GENERATIVE_AI), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" => ::std::option::Option::Some(ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED), + "CLOUD" => ::std::option::Option::Some(ClientLibraryOrganization::CLOUD), + "ADS" => ::std::option::Option::Some(ClientLibraryOrganization::ADS), + "PHOTOS" => ::std::option::Option::Some(ClientLibraryOrganization::PHOTOS), + "STREET_VIEW" => ::std::option::Option::Some(ClientLibraryOrganization::STREET_VIEW), + "SHOPPING" => ::std::option::Option::Some(ClientLibraryOrganization::SHOPPING), + "GEO" => ::std::option::Option::Some(ClientLibraryOrganization::GEO), + "GENERATIVE_AI" => ::std::option::Option::Some(ClientLibraryOrganization::GENERATIVE_AI), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [ClientLibraryOrganization] = &[ + ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, + ClientLibraryOrganization::CLOUD, + ClientLibraryOrganization::ADS, + ClientLibraryOrganization::PHOTOS, + ClientLibraryOrganization::STREET_VIEW, + ClientLibraryOrganization::SHOPPING, + ClientLibraryOrganization::GEO, + ClientLibraryOrganization::GENERATIVE_AI, + ]; +} + +impl ::protobuf::EnumFull for ClientLibraryOrganization { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("ClientLibraryOrganization").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } +} + +impl ::std::default::Default for ClientLibraryOrganization { + fn default() -> Self { + ClientLibraryOrganization::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED + } +} + +impl ClientLibraryOrganization { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ClientLibraryOrganization") + } +} + +/// To where should client libraries be published? +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.ClientLibraryDestination) +pub enum ClientLibraryDestination { + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryDestination.CLIENT_LIBRARY_DESTINATION_UNSPECIFIED) + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryDestination.GITHUB) + GITHUB = 10, + // @@protoc_insertion_point(enum_value:google.api.ClientLibraryDestination.PACKAGE_MANAGER) + PACKAGE_MANAGER = 20, +} + +impl ::protobuf::Enum for ClientLibraryDestination { + const NAME: &'static str = "ClientLibraryDestination"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED), + 10 => ::std::option::Option::Some(ClientLibraryDestination::GITHUB), + 20 => ::std::option::Option::Some(ClientLibraryDestination::PACKAGE_MANAGER), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED" => ::std::option::Option::Some(ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED), + "GITHUB" => ::std::option::Option::Some(ClientLibraryDestination::GITHUB), + "PACKAGE_MANAGER" => ::std::option::Option::Some(ClientLibraryDestination::PACKAGE_MANAGER), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [ClientLibraryDestination] = &[ + ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED, + ClientLibraryDestination::GITHUB, + ClientLibraryDestination::PACKAGE_MANAGER, + ]; +} + +impl ::protobuf::EnumFull for ClientLibraryDestination { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("ClientLibraryDestination").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 0, + ClientLibraryDestination::GITHUB => 1, + ClientLibraryDestination::PACKAGE_MANAGER => 2, + }; + Self::enum_descriptor().value_by_index(index) + } +} + +impl ::std::default::Default for ClientLibraryDestination { + fn default() -> Self { + ClientLibraryDestination::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED + } +} + +impl ClientLibraryDestination { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ClientLibraryDestination") + } +} + /// Extension fields pub mod exts { @@ -33,89 +2850,561 @@ pub mod exts { pub const default_host: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(1049, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); pub const oauth_scopes: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(1050, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); + + pub const api_version: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::ServiceOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(525000001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING); } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x17google/api/client.proto\x12\ngoogle.api\x1a\x20google/protobuf/des\ - criptor.proto:J\n\x10method_signature\x18\x9b\x08\x20\x03(\t\x12\x1e.goo\ - gle.protobuf.MethodOptionsR\x0fmethodSignature:C\n\x0cdefault_host\x18\ - \x99\x08\x20\x01(\t\x12\x1f.google.protobuf.ServiceOptionsR\x0bdefaultHo\ - st:C\n\x0coauth_scopes\x18\x9a\x08\x20\x01(\t\x12\x1f.google.protobuf.Se\ - rviceOptionsR\x0boauthScopesBi\n\x0ecom.google.apiB\x0bClientProtoP\x01Z\ - Agoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\ - \x02\x04GAPIJ\x94\x17\n\x06\x12\x04\x0f\0c\x01\n\xbe\x04\n\x01\x0c\x12\ - \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ - censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0*\n\ - \x08\n\x01\x08\x12\x03\x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\ - \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\ - \x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\x12\x03\ - \x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\ - \n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0@\x01\n\x85\ - \x0b\n\x02\x07\0\x12\x03?\x02*\x1a\xf9\n\x20A\x20definition\x20of\x20a\ - \x20client\x20library\x20method\x20signature.\n\n\x20In\x20client\x20lib\ - raries,\x20each\x20proto\x20RPC\x20corresponds\x20to\x20one\x20or\x20mor\ - e\x20methods\n\x20which\x20the\x20end\x20user\x20is\x20able\x20to\x20cal\ - l,\x20and\x20calls\x20the\x20underlying\x20RPC.\n\x20Normally,\x20this\ - \x20method\x20receives\x20a\x20single\x20argument\x20(a\x20struct\x20or\ - \x20instance\n\x20corresponding\x20to\x20the\x20RPC\x20request\x20object\ - ).\x20Defining\x20this\x20field\x20will\n\x20add\x20one\x20or\x20more\ - \x20overloads\x20providing\x20flattened\x20or\x20simpler\x20method\x20si\ - gnatures\n\x20in\x20some\x20languages.\n\n\x20The\x20fields\x20on\x20the\ - \x20method\x20signature\x20are\x20provided\x20as\x20a\x20comma-separated\ - \n\x20string.\n\n\x20For\x20example,\x20the\x20proto\x20RPC\x20and\x20an\ - notation:\n\n\x20\x20\x20rpc\x20CreateSubscription(CreateSubscriptionReq\ - uest)\n\x20\x20\x20\x20\x20\x20\x20returns\x20(Subscription)\x20{\n\x20\ - \x20\x20\x20\x20option\x20(google.api.method_signature)\x20=\x20\"name,t\ - opic\";\n\x20\x20\x20}\n\n\x20Would\x20add\x20the\x20following\x20Java\ - \x20overload\x20(in\x20addition\x20to\x20the\x20method\x20accepting\n\ - \x20the\x20request\x20object):\n\n\x20\x20\x20public\x20final\x20Subscri\ - ption\x20createSubscription(String\x20name,\x20String\x20topic)\n\n\x20T\ - he\x20following\x20backwards-compatibility\x20guidelines\x20apply:\n\n\ - \x20\x20\x20*\x20Adding\x20this\x20annotation\x20to\x20an\x20unannotated\ - \x20method\x20is\x20backwards\n\x20\x20\x20\x20\x20compatible.\n\x20\x20\ - \x20*\x20Adding\x20this\x20annotation\x20to\x20a\x20method\x20which\x20a\ - lready\x20has\x20existing\n\x20\x20\x20\x20\x20method\x20signature\x20an\ - notations\x20is\x20backwards\x20compatible\x20if\x20and\x20only\x20if\n\ - \x20\x20\x20\x20\x20the\x20new\x20method\x20signature\x20annotation\x20i\ - s\x20last\x20in\x20the\x20sequence.\n\x20\x20\x20*\x20Modifying\x20or\ - \x20removing\x20an\x20existing\x20method\x20signature\x20annotation\x20i\ - s\n\x20\x20\x20\x20\x20a\x20breaking\x20change.\n\x20\x20\x20*\x20Re-ord\ - ering\x20existing\x20method\x20signature\x20annotations\x20is\x20a\x20br\ - eaking\n\x20\x20\x20\x20\x20change.\n\n\n\n\x03\x07\0\x02\x12\x03\x1b\ - \x07$\n\n\n\x03\x07\0\x04\x12\x03?\x02\n\n\n\n\x03\x07\0\x05\x12\x03?\ - \x0b\x11\n\n\n\x03\x07\0\x01\x12\x03?\x12\"\n\n\n\x03\x07\0\x03\x12\x03?\ - %)\n\t\n\x01\x07\x12\x04B\0c\x01\n\xca\x01\n\x02\x07\x01\x12\x03L\x02\ - \x1d\x1a\xbe\x01\x20The\x20hostname\x20for\x20this\x20service.\n\x20This\ - \x20should\x20be\x20specified\x20with\x20no\x20prefix\x20or\x20protocol.\ - \n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\ - \x20option\x20(google.api.default_host)\x20=\x20\"foo.googleapi.com\";\n\ - \x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x01\x02\x12\x03B\ - \x07%\n\n\n\x03\x07\x01\x05\x12\x03L\x02\x08\n\n\n\x03\x07\x01\x01\x12\ - \x03L\t\x15\n\n\n\x03\x07\x01\x03\x12\x03L\x18\x1c\n\xc3\x03\n\x02\x07\ - \x02\x12\x03b\x02\x1d\x1a\xb7\x03\x20OAuth\x20scopes\x20needed\x20for\ - \x20the\x20client.\n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\ - \x20\x20\x20\x20\x20option\x20(google.api.oauth_scopes)\x20=\x20\\\n\x20\ - \x20\x20\x20\x20\x20\x20\"https://www.googleapis.com/auth/cloud-platform\ - \";\n\x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\x20If\x20there\x20is\x20\ - more\x20than\x20one\x20scope,\x20use\x20a\x20comma-separated\x20string:\ - \n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\ + \n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_s\ + tage.proto\x1a\x20google/protobuf/descriptor.proto\x1a\x1egoogle/protobu\ + f/duration.proto\"\xf8\x01\n\x16CommonLanguageSettings\x120\n\x12referen\ + ce_docs_uri\x18\x01\x20\x01(\tR\x10referenceDocsUriB\x02\x18\x01\x12H\n\ + \x0cdestinations\x18\x02\x20\x03(\x0e2$.google.api.ClientLibraryDestinat\ + ionR\x0cdestinations\x12b\n\x1aselective_gapic_generation\x18\x03\x20\ + \x01(\x0b2$.google.api.SelectiveGapicGenerationR\x18selectiveGapicGenera\ + tion\"\x93\x05\n\x15ClientLibrarySettings\x12\x18\n\x07version\x18\x01\ + \x20\x01(\tR\x07version\x12:\n\x0claunch_stage\x18\x02\x20\x01(\x0e2\x17\ + .google.api.LaunchStageR\x0blaunchStage\x12,\n\x12rest_numeric_enums\x18\ + \x03\x20\x01(\x08R\x10restNumericEnums\x12=\n\rjava_settings\x18\x15\x20\ + \x01(\x0b2\x18.google.api.JavaSettingsR\x0cjavaSettings\x12:\n\x0ccpp_se\ + ttings\x18\x16\x20\x01(\x0b2\x17.google.api.CppSettingsR\x0bcppSettings\ + \x12:\n\x0cphp_settings\x18\x17\x20\x01(\x0b2\x17.google.api.PhpSettings\ + R\x0bphpSettings\x12C\n\x0fpython_settings\x18\x18\x20\x01(\x0b2\x1a.goo\ + gle.api.PythonSettingsR\x0epythonSettings\x12=\n\rnode_settings\x18\x19\ + \x20\x01(\x0b2\x18.google.api.NodeSettingsR\x0cnodeSettings\x12C\n\x0fdo\ + tnet_settings\x18\x1a\x20\x01(\x0b2\x1a.google.api.DotnetSettingsR\x0edo\ + tnetSettings\x12=\n\rruby_settings\x18\x1b\x20\x01(\x0b2\x18.google.api.\ + RubySettingsR\x0crubySettings\x127\n\x0bgo_settings\x18\x1c\x20\x01(\x0b\ + 2\x16.google.api.GoSettingsR\ngoSettings\"\xf4\x04\n\nPublishing\x12C\n\ + \x0fmethod_settings\x18\x02\x20\x03(\x0b2\x1a.google.api.MethodSettingsR\ + \x0emethodSettings\x12\"\n\rnew_issue_uri\x18e\x20\x01(\tR\x0bnewIssueUr\ + i\x12+\n\x11documentation_uri\x18f\x20\x01(\tR\x10documentationUri\x12$\ + \n\x0eapi_short_name\x18g\x20\x01(\tR\x0capiShortName\x12!\n\x0cgithub_l\ + abel\x18h\x20\x01(\tR\x0bgithubLabel\x124\n\x16codeowner_github_teams\ + \x18i\x20\x03(\tR\x14codeownerGithubTeams\x12$\n\x0edoc_tag_prefix\x18j\ + \x20\x01(\tR\x0cdocTagPrefix\x12I\n\x0corganization\x18k\x20\x01(\x0e2%.\ + google.api.ClientLibraryOrganizationR\x0corganization\x12L\n\x10library_\ + settings\x18m\x20\x03(\x0b2!.google.api.ClientLibrarySettingsR\x0flibrar\ + ySettings\x12I\n!proto_reference_documentation_uri\x18n\x20\x01(\tR\x1ep\ + rotoReferenceDocumentationUri\x12G\n\x20rest_reference_documentation_uri\ + \x18o\x20\x01(\tR\x1drestReferenceDocumentationUri\"\x9a\x02\n\x0cJavaSe\ + ttings\x12'\n\x0flibrary_package\x18\x01\x20\x01(\tR\x0elibraryPackage\ + \x12_\n\x13service_class_names\x18\x02\x20\x03(\x0b2/.google.api.JavaSet\ + tings.ServiceClassNamesEntryR\x11serviceClassNames\x12:\n\x06common\x18\ + \x03\x20\x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\x1aD\n\ + \x16ServiceClassNamesEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ + \x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"I\n\x0bCppSe\ + ttings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.CommonLanguag\ + eSettingsR\x06common\"I\n\x0bPhpSettings\x12:\n\x06common\x18\x01\x20\ + \x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\"\xfd\x01\n\ + \x0ePythonSettings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.C\ + ommonLanguageSettingsR\x06common\x12d\n\x15experimental_features\x18\x02\ + \x20\x01(\x0b2/.google.api.PythonSettings.ExperimentalFeaturesR\x14exper\ + imentalFeatures\x1aI\n\x14ExperimentalFeatures\x121\n\x15rest_async_io_e\ + nabled\x18\x01\x20\x01(\x08R\x12restAsyncIoEnabled\"J\n\x0cNodeSettings\ + \x12:\n\x06common\x18\x01\x20\x01(\x0b2\".google.api.CommonLanguageSetti\ + ngsR\x06common\"\xae\x04\n\x0eDotnetSettings\x12:\n\x06common\x18\x01\ + \x20\x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\x12Z\n\x10\ + renamed_services\x18\x02\x20\x03(\x0b2/.google.api.DotnetSettings.Rename\ + dServicesEntryR\x0frenamedServices\x12]\n\x11renamed_resources\x18\x03\ + \x20\x03(\x0b20.google.api.DotnetSettings.RenamedResourcesEntryR\x10rena\ + medResources\x12+\n\x11ignored_resources\x18\x04\x20\x03(\tR\x10ignoredR\ + esources\x128\n\x18forced_namespace_aliases\x18\x05\x20\x03(\tR\x16force\ + dNamespaceAliases\x125\n\x16handwritten_signatures\x18\x06\x20\x03(\tR\ + \x15handwrittenSignatures\x1aB\n\x14RenamedServicesEntry\x12\x10\n\x03ke\ + y\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05v\ + alue:\x028\x01\x1aC\n\x15RenamedResourcesEntry\x12\x10\n\x03key\x18\x01\ + \x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x02\ + 8\x01\"J\n\x0cRubySettings\x12:\n\x06common\x18\x01\x20\x01(\x0b2\".goog\ + le.api.CommonLanguageSettingsR\x06common\"H\n\nGoSettings\x12:\n\x06comm\ + on\x18\x01\x20\x01(\x0b2\".google.api.CommonLanguageSettingsR\x06common\ + \"\xc2\x03\n\x0eMethodSettings\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\ + \x08selector\x12I\n\x0clong_running\x18\x02\x20\x01(\x0b2&.google.api.Me\ + thodSettings.LongRunningR\x0blongRunning\x122\n\x15auto_populated_fields\ + \x18\x03\x20\x03(\tR\x13autoPopulatedFields\x1a\x94\x02\n\x0bLongRunning\ + \x12G\n\x12initial_poll_delay\x18\x01\x20\x01(\x0b2\x19.google.protobuf.\ + DurationR\x10initialPollDelay\x122\n\x15poll_delay_multiplier\x18\x02\ + \x20\x01(\x02R\x13pollDelayMultiplier\x12?\n\x0emax_poll_delay\x18\x03\ + \x20\x01(\x0b2\x19.google.protobuf.DurationR\x0cmaxPollDelay\x12G\n\x12t\ + otal_poll_timeout\x18\x04\x20\x01(\x0b2\x19.google.protobuf.DurationR\ + \x10totalPollTimeout\"4\n\x18SelectiveGapicGeneration\x12\x18\n\x07metho\ + ds\x18\x01\x20\x03(\tR\x07methods*\xa3\x01\n\x19ClientLibraryOrganizatio\ + n\x12+\n'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\0\x12\t\n\x05CLOUD\ + \x10\x01\x12\x07\n\x03ADS\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\ + \x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\ + \x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18ClientLibraryDestinatio\ + n\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\0\x12\n\n\x06GITHUB\ + \x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14:J\n\x10method_signature\x18\ + \x9b\x08\x20\x03(\t\x12\x1e.google.protobuf.MethodOptionsR\x0fmethodSign\ + ature:C\n\x0cdefault_host\x18\x99\x08\x20\x01(\t\x12\x1f.google.protobuf\ + .ServiceOptionsR\x0bdefaultHost:C\n\x0coauth_scopes\x18\x9a\x08\x20\x01(\ + \t\x12\x1f.google.protobuf.ServiceOptionsR\x0boauthScopes:D\n\x0bapi_ver\ + sion\x18\xc1\xba\xab\xfa\x01\x20\x01(\t\x12\x1f.google.protobuf.ServiceO\ + ptionsR\napiVersionBi\n\x0ecom.google.apiB\x0bClientProtoP\x01ZAgoogle.g\ + olang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAP\ + IJ\xbf~\n\x07\x12\x05\x0e\0\xc7\x03\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\ + \0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\ + \x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"Li\ + cense\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\ + \x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\ + \x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www\ + .apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20appl\ + icable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20d\ + istributed\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\ + \x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITION\ + S\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\ + \x20the\x20License\x20for\x20the\x20specific\x20language\x20governing\ + \x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\ + \x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0'\n\t\n\ + \x02\x03\x01\x12\x03\x13\0*\n\t\n\x02\x03\x02\x12\x03\x14\0(\n\x08\n\x01\ + \x08\x12\x03\x16\0X\n\t\n\x02\x08\x0b\x12\x03\x16\0X\n\x08\n\x01\x08\x12\ + \x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\ + \0,\n\t\n\x02\x08\x08\x12\x03\x18\0,\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\ + \n\x02\x08\x01\x12\x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\ + \x08$\x12\x03\x1a\0\"\n\t\n\x01\x07\x12\x04\x1c\0A\x01\n\x85\x0b\n\x02\ + \x07\0\x12\x03@\x02*\x1a\xf9\n\x20A\x20definition\x20of\x20a\x20client\ + \x20library\x20method\x20signature.\n\n\x20In\x20client\x20libraries,\ + \x20each\x20proto\x20RPC\x20corresponds\x20to\x20one\x20or\x20more\x20me\ + thods\n\x20which\x20the\x20end\x20user\x20is\x20able\x20to\x20call,\x20a\ + nd\x20calls\x20the\x20underlying\x20RPC.\n\x20Normally,\x20this\x20metho\ + d\x20receives\x20a\x20single\x20argument\x20(a\x20struct\x20or\x20instan\ + ce\n\x20corresponding\x20to\x20the\x20RPC\x20request\x20object).\x20Defi\ + ning\x20this\x20field\x20will\n\x20add\x20one\x20or\x20more\x20overloads\ + \x20providing\x20flattened\x20or\x20simpler\x20method\x20signatures\n\ + \x20in\x20some\x20languages.\n\n\x20The\x20fields\x20on\x20the\x20method\ + \x20signature\x20are\x20provided\x20as\x20a\x20comma-separated\n\x20stri\ + ng.\n\n\x20For\x20example,\x20the\x20proto\x20RPC\x20and\x20annotation:\ + \n\n\x20\x20\x20rpc\x20CreateSubscription(CreateSubscriptionRequest)\n\ + \x20\x20\x20\x20\x20\x20\x20returns\x20(Subscription)\x20{\n\x20\x20\x20\ + \x20\x20option\x20(google.api.method_signature)\x20=\x20\"name,topic\";\ + \n\x20\x20\x20}\n\n\x20Would\x20add\x20the\x20following\x20Java\x20overl\ + oad\x20(in\x20addition\x20to\x20the\x20method\x20accepting\n\x20the\x20r\ + equest\x20object):\n\n\x20\x20\x20public\x20final\x20Subscription\x20cre\ + ateSubscription(String\x20name,\x20String\x20topic)\n\n\x20The\x20follow\ + ing\x20backwards-compatibility\x20guidelines\x20apply:\n\n\x20\x20\x20*\ + \x20Adding\x20this\x20annotation\x20to\x20an\x20unannotated\x20method\ + \x20is\x20backwards\n\x20\x20\x20\x20\x20compatible.\n\x20\x20\x20*\x20A\ + dding\x20this\x20annotation\x20to\x20a\x20method\x20which\x20already\x20\ + has\x20existing\n\x20\x20\x20\x20\x20method\x20signature\x20annotations\ + \x20is\x20backwards\x20compatible\x20if\x20and\x20only\x20if\n\x20\x20\ + \x20\x20\x20the\x20new\x20method\x20signature\x20annotation\x20is\x20las\ + t\x20in\x20the\x20sequence.\n\x20\x20\x20*\x20Modifying\x20or\x20removin\ + g\x20an\x20existing\x20method\x20signature\x20annotation\x20is\n\x20\x20\ + \x20\x20\x20a\x20breaking\x20change.\n\x20\x20\x20*\x20Re-ordering\x20ex\ + isting\x20method\x20signature\x20annotations\x20is\x20a\x20breaking\n\ + \x20\x20\x20\x20\x20change.\n\n\n\n\x03\x07\0\x02\x12\x03\x1c\x07$\n\n\n\ + \x03\x07\0\x04\x12\x03@\x02\n\n\n\n\x03\x07\0\x05\x12\x03@\x0b\x11\n\n\n\ + \x03\x07\0\x01\x12\x03@\x12\"\n\n\n\x03\x07\0\x03\x12\x03@%)\n\t\n\x01\ + \x07\x12\x04C\0t\x01\n\xca\x01\n\x02\x07\x01\x12\x03M\x02\x1d\x1a\xbe\ + \x01\x20The\x20hostname\x20for\x20this\x20service.\n\x20This\x20should\ + \x20be\x20specified\x20with\x20no\x20prefix\x20or\x20protocol.\n\n\x20Ex\ + ample:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20option\ + \x20(google.api.default_host)\x20=\x20\"foo.googleapi.com\";\n\x20\x20\ + \x20\x20\x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x01\x02\x12\x03C\x07%\n\n\ + \n\x03\x07\x01\x05\x12\x03M\x02\x08\n\n\n\x03\x07\x01\x01\x12\x03M\t\x15\ + \n\n\n\x03\x07\x01\x03\x12\x03M\x18\x1c\n\xc3\x03\n\x02\x07\x02\x12\x03c\ + \x02\x1d\x1a\xb7\x03\x20OAuth\x20scopes\x20needed\x20for\x20the\x20clien\ + t.\n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\ \x20option\x20(google.api.oauth_scopes)\x20=\x20\\\n\x20\x20\x20\x20\x20\ - \x20\x20\"https://www.googleapis.com/auth/cloud-platform,\"\n\x20\x20\ - \x20\x20\x20\x20\x20\"https://www.googleapis.com/auth/monitoring\";\n\ - \x20\x20\x20\x20\x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x02\x02\x12\x03B\ - \x07%\n\n\n\x03\x07\x02\x05\x12\x03b\x02\x08\n\n\n\x03\x07\x02\x01\x12\ - \x03b\t\x15\n\n\n\x03\x07\x02\x03\x12\x03b\x18\x1cb\x06proto3\ + \x20\x20\"https://www.googleapis.com/auth/cloud-platform\";\n\x20\x20\ + \x20\x20\x20...\n\x20\x20\x20}\n\n\x20If\x20there\x20is\x20more\x20than\ + \x20one\x20scope,\x20use\x20a\x20comma-separated\x20string:\n\n\x20Examp\ + le:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\x20\x20\x20\x20option\x20(g\ + oogle.api.oauth_scopes)\x20=\x20\\\n\x20\x20\x20\x20\x20\x20\x20\"https:\ + //www.googleapis.com/auth/cloud-platform,\"\n\x20\x20\x20\x20\x20\x20\ + \x20\"https://www.googleapis.com/auth/monitoring\";\n\x20\x20\x20\x20\ + \x20...\n\x20\x20\x20}\n\n\n\n\x03\x07\x02\x02\x12\x03C\x07%\n\n\n\x03\ + \x07\x02\x05\x12\x03c\x02\x08\n\n\n\x03\x07\x02\x01\x12\x03c\t\x15\n\n\n\ + \x03\x07\x02\x03\x12\x03c\x18\x1c\n\x9d\x05\n\x02\x07\x03\x12\x03s\x02!\ + \x1a\x91\x05\x20The\x20API\x20version\x20of\x20this\x20service,\x20which\ + \x20should\x20be\x20sent\x20by\x20version-aware\n\x20clients\x20to\x20th\ + e\x20service.\x20This\x20allows\x20services\x20to\x20abide\x20by\x20the\ + \x20schema\x20and\n\x20behavior\x20of\x20the\x20service\x20at\x20the\x20\ + time\x20this\x20API\x20version\x20was\x20deployed.\n\x20The\x20format\ + \x20of\x20the\x20API\x20version\x20must\x20be\x20treated\x20as\x20opaque\ + \x20by\x20clients.\n\x20Services\x20may\x20use\x20a\x20format\x20with\ + \x20an\x20apparent\x20structure,\x20but\x20clients\x20must\n\x20not\x20r\ + ely\x20on\x20this\x20to\x20determine\x20components\x20within\x20an\x20AP\ + I\x20version,\x20or\x20attempt\n\x20to\x20construct\x20other\x20valid\ + \x20API\x20versions.\x20Note\x20that\x20this\x20is\x20for\x20upcoming\n\ + \x20functionality\x20and\x20may\x20not\x20be\x20implemented\x20for\x20al\ + l\x20services.\n\n\x20Example:\n\n\x20\x20\x20service\x20Foo\x20{\n\x20\ + \x20\x20\x20\x20option\x20(google.api.api_version)\x20=\x20\"v1_20230821\ + _preview\";\n\x20\x20\x20}\n\n\n\n\x03\x07\x03\x02\x12\x03C\x07%\n\n\n\ + \x03\x07\x03\x05\x12\x03s\x02\x08\n\n\n\x03\x07\x03\x01\x12\x03s\t\x14\n\ + \n\n\x03\x07\x03\x03\x12\x03s\x17\x20\n7\n\x02\x04\0\x12\x05w\0\x81\x01\ + \x01\x1a*\x20Required\x20information\x20for\x20every\x20language.\n\n\n\ + \n\x03\x04\0\x01\x12\x03w\x08\x1e\n\x8f\x01\n\x04\x04\0\x02\0\x12\x03z\ + \x024\x1a\x81\x01\x20Link\x20to\x20automatically\x20generated\x20referen\ + ce\x20documentation.\x20\x20Example:\n\x20https://cloud.google.com/nodej\ + s/docs/reference/asset/latest\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03z\x02\ + \x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03z\t\x1b\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03z\x1e\x1f\n\x0c\n\x05\x04\0\x02\0\x08\x12\x03z\x203\n\r\n\ + \x06\x04\0\x02\0\x08\x03\x12\x03z!2\nX\n\x04\x04\0\x02\x01\x12\x03}\x025\ + \x1aK\x20The\x20destination\x20where\x20API\x20teams\x20want\x20this\x20\ + client\x20library\x20to\x20be\x20published.\n\n\x0c\n\x05\x04\0\x02\x01\ + \x04\x12\x03}\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03}\x0b#\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x03}$0\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03}\ + 34\nU\n\x04\x04\0\x02\x02\x12\x04\x80\x01\x02:\x1aG\x20Configuration\x20\ + for\x20which\x20RPCs\x20should\x20be\x20generated\x20in\x20the\x20GAPIC\ + \x20client.\n\n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x80\x01\x02\x1a\n\r\n\ + \x05\x04\0\x02\x02\x01\x12\x04\x80\x01\x1b5\n\r\n\x05\x04\0\x02\x02\x03\ + \x12\x04\x80\x0189\nH\n\x02\x04\x01\x12\x06\x84\x01\0\xa8\x01\x01\x1a:\ + \x20Details\x20about\x20how\x20and\x20where\x20to\x20publish\x20client\ + \x20libraries.\n\n\x0b\n\x03\x04\x01\x01\x12\x04\x84\x01\x08\x1d\n\xda\ + \x01\n\x04\x04\x01\x02\0\x12\x04\x88\x01\x02\x15\x1a\xcb\x01\x20Version\ + \x20of\x20the\x20API\x20to\x20apply\x20these\x20settings\x20to.\x20This\ + \x20is\x20the\x20full\x20protobuf\n\x20package\x20for\x20the\x20API,\x20\ + ending\x20in\x20the\x20version\x20element.\n\x20Examples:\x20\"google.cl\ + oud.speech.v1\"\x20and\x20\"google.spanner.admin.database.v1\".\n\n\r\n\ + \x05\x04\x01\x02\0\x05\x12\x04\x88\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\ + \x01\x12\x04\x88\x01\t\x10\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x88\x01\ + \x13\x14\n8\n\x04\x04\x01\x02\x01\x12\x04\x8b\x01\x02\x1f\x1a*\x20Launch\ + \x20stage\x20of\x20this\x20version\x20of\x20the\x20API.\n\n\r\n\x05\x04\ + \x01\x02\x01\x06\x12\x04\x8b\x01\x02\r\n\r\n\x05\x04\x01\x02\x01\x01\x12\ + \x04\x8b\x01\x0e\x1a\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\x8b\x01\x1d\ + \x1e\np\n\x04\x04\x01\x02\x02\x12\x04\x8f\x01\x02\x1e\x1ab\x20When\x20us\ + ing\x20transport=rest,\x20the\x20client\x20request\x20will\x20encode\x20\ + enums\x20as\n\x20numbers\x20rather\x20than\x20strings.\n\n\r\n\x05\x04\ + \x01\x02\x02\x05\x12\x04\x8f\x01\x02\x06\n\r\n\x05\x04\x01\x02\x02\x01\ + \x12\x04\x8f\x01\x07\x19\n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x8f\x01\ + \x1c\x1d\nQ\n\x04\x04\x01\x02\x03\x12\x04\x92\x01\x02\"\x1aC\x20Settings\ + \x20for\x20legacy\x20Java\x20features,\x20supported\x20in\x20the\x20Serv\ + ice\x20YAML.\n\n\r\n\x05\x04\x01\x02\x03\x06\x12\x04\x92\x01\x02\x0e\n\r\ + \n\x05\x04\x01\x02\x03\x01\x12\x04\x92\x01\x0f\x1c\n\r\n\x05\x04\x01\x02\ + \x03\x03\x12\x04\x92\x01\x1f!\n2\n\x04\x04\x01\x02\x04\x12\x04\x95\x01\ + \x02\x20\x1a$\x20Settings\x20for\x20C++\x20client\x20libraries.\n\n\r\n\ + \x05\x04\x01\x02\x04\x06\x12\x04\x95\x01\x02\r\n\r\n\x05\x04\x01\x02\x04\ + \x01\x12\x04\x95\x01\x0e\x1a\n\r\n\x05\x04\x01\x02\x04\x03\x12\x04\x95\ + \x01\x1d\x1f\n2\n\x04\x04\x01\x02\x05\x12\x04\x98\x01\x02\x20\x1a$\x20Se\ + ttings\x20for\x20PHP\x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\x05\ + \x06\x12\x04\x98\x01\x02\r\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\x98\x01\ + \x0e\x1a\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x98\x01\x1d\x1f\n5\n\x04\ + \x04\x01\x02\x06\x12\x04\x9b\x01\x02&\x1a'\x20Settings\x20for\x20Python\ + \x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\x9b\x01\ + \x02\x10\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\x9b\x01\x11\x20\n\r\n\x05\ + \x04\x01\x02\x06\x03\x12\x04\x9b\x01#%\n3\n\x04\x04\x01\x02\x07\x12\x04\ + \x9e\x01\x02\"\x1a%\x20Settings\x20for\x20Node\x20client\x20libraries.\n\ + \n\r\n\x05\x04\x01\x02\x07\x06\x12\x04\x9e\x01\x02\x0e\n\r\n\x05\x04\x01\ + \x02\x07\x01\x12\x04\x9e\x01\x0f\x1c\n\r\n\x05\x04\x01\x02\x07\x03\x12\ + \x04\x9e\x01\x1f!\n3\n\x04\x04\x01\x02\x08\x12\x04\xa1\x01\x02&\x1a%\x20\ + Settings\x20for\x20.NET\x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\ + \x08\x06\x12\x04\xa1\x01\x02\x10\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\ + \xa1\x01\x11\x20\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\xa1\x01#%\n3\n\ + \x04\x04\x01\x02\t\x12\x04\xa4\x01\x02\"\x1a%\x20Settings\x20for\x20Ruby\ + \x20client\x20libraries.\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xa4\x01\ + \x02\x0e\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xa4\x01\x0f\x1c\n\r\n\x05\ + \x04\x01\x02\t\x03\x12\x04\xa4\x01\x1f!\n1\n\x04\x04\x01\x02\n\x12\x04\ + \xa7\x01\x02\x1e\x1a#\x20Settings\x20for\x20Go\x20client\x20libraries.\n\ + \n\r\n\x05\x04\x01\x02\n\x06\x12\x04\xa7\x01\x02\x0c\n\r\n\x05\x04\x01\ + \x02\n\x01\x12\x04\xa7\x01\r\x18\n\r\n\x05\x04\x01\x02\n\x03\x12\x04\xa7\ + \x01\x1b\x1d\n\xc4\x01\n\x02\x04\x02\x12\x06\xad\x01\0\xd9\x01\x01\x1a\ + \xb5\x01\x20This\x20message\x20configures\x20the\x20settings\x20for\x20p\ + ublishing\x20[Google\x20Cloud\x20Client\n\x20libraries](https://cloud.go\ + ogle.com/apis/docs/cloud-client-libraries)\n\x20generated\x20from\x20the\ + \x20service\x20config.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xad\x01\x08\x12\ + \nz\n\x04\x04\x02\x02\0\x12\x04\xb0\x01\x02.\x1al\x20A\x20list\x20of\x20\ + API\x20method\x20settings,\x20e.g.\x20the\x20behavior\x20for\x20methods\ + \x20that\x20use\x20the\n\x20long-running\x20operation\x20pattern.\n\n\r\ + \n\x05\x04\x02\x02\0\x04\x12\x04\xb0\x01\x02\n\n\r\n\x05\x04\x02\x02\0\ + \x06\x12\x04\xb0\x01\x0b\x19\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xb0\x01\ + \x1a)\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xb0\x01,-\n\x9e\x01\n\x04\x04\ + \x02\x02\x01\x12\x04\xb4\x01\x02\x1d\x1a\x8f\x01\x20Link\x20to\x20a\x20*\ + public*\x20URI\x20where\x20users\x20can\x20report\x20issues.\x20\x20Exam\ + ple:\n\x20https://issuetracker.google.com/issues/new?component=190865&te\ + mplate=1161103\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xb4\x01\x02\x08\n\ + \r\n\x05\x04\x02\x02\x01\x01\x12\x04\xb4\x01\t\x16\n\r\n\x05\x04\x02\x02\ + \x01\x03\x12\x04\xb4\x01\x19\x1c\nl\n\x04\x04\x02\x02\x02\x12\x04\xb8\ + \x01\x02!\x1a^\x20Link\x20to\x20product\x20home\x20page.\x20\x20Example:\ + \n\x20https://cloud.google.com/asset-inventory/docs/overview\n\n\r\n\x05\ + \x04\x02\x02\x02\x05\x12\x04\xb8\x01\x02\x08\n\r\n\x05\x04\x02\x02\x02\ + \x01\x12\x04\xb8\x01\t\x1a\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\xb8\x01\ + \x1d\x20\n\xb7\x01\n\x04\x04\x02\x02\x03\x12\x04\xbd\x01\x02\x1e\x1a\xa8\ + \x01\x20Used\x20as\x20a\x20tracking\x20tag\x20when\x20collecting\x20data\ + \x20about\x20the\x20APIs\x20developer\n\x20relations\x20artifacts\x20lik\ + e\x20docs,\x20packages\x20delivered\x20to\x20package\x20managers,\n\x20e\ + tc.\x20\x20Example:\x20\"speech\".\n\n\r\n\x05\x04\x02\x02\x03\x05\x12\ + \x04\xbd\x01\x02\x08\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\xbd\x01\t\x17\ + \n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\xbd\x01\x1a\x1d\nV\n\x04\x04\x02\ + \x02\x04\x12\x04\xc0\x01\x02\x1c\x1aH\x20GitHub\x20label\x20to\x20apply\ + \x20to\x20issues\x20and\x20pull\x20requests\x20opened\x20for\x20this\x20\ + API.\n\n\r\n\x05\x04\x02\x02\x04\x05\x12\x04\xc0\x01\x02\x08\n\r\n\x05\ + \x04\x02\x02\x04\x01\x12\x04\xc0\x01\t\x15\n\r\n\x05\x04\x02\x02\x04\x03\ + \x12\x04\xc0\x01\x18\x1b\n\x91\x01\n\x04\x04\x02\x02\x05\x12\x04\xc4\x01\ + \x02/\x1a\x82\x01\x20GitHub\x20teams\x20to\x20be\x20added\x20to\x20CODEO\ + WNERS\x20in\x20the\x20directory\x20in\x20GitHub\n\x20containing\x20sourc\ + e\x20code\x20for\x20the\x20client\x20libraries\x20for\x20this\x20API.\n\ + \n\r\n\x05\x04\x02\x02\x05\x04\x12\x04\xc4\x01\x02\n\n\r\n\x05\x04\x02\ + \x02\x05\x05\x12\x04\xc4\x01\x0b\x11\n\r\n\x05\x04\x02\x02\x05\x01\x12\ + \x04\xc4\x01\x12(\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\xc4\x01+.\ne\n\ + \x04\x04\x02\x02\x06\x12\x04\xc8\x01\x02\x1e\x1aW\x20A\x20prefix\x20used\ + \x20in\x20sample\x20code\x20when\x20demarking\x20regions\x20to\x20be\x20\ + included\x20in\n\x20documentation.\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\ + \x04\xc8\x01\x02\x08\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\xc8\x01\t\x17\ + \n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xc8\x01\x1a\x1d\n?\n\x04\x04\x02\ + \x02\x07\x12\x04\xcb\x01\x02/\x1a1\x20For\x20whom\x20the\x20client\x20li\ + brary\x20is\x20being\x20published.\n\n\r\n\x05\x04\x02\x02\x07\x06\x12\ + \x04\xcb\x01\x02\x1b\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\xcb\x01\x1c(\ + \n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xcb\x01+.\n\xd0\x01\n\x04\x04\x02\ + \x02\x08\x12\x04\xd0\x01\x028\x1a\xc1\x01\x20Client\x20library\x20settin\ + gs.\x20\x20If\x20the\x20same\x20version\x20string\x20appears\x20multiple\ + \n\x20times\x20in\x20this\x20list,\x20then\x20the\x20last\x20one\x20wins\ + .\x20\x20Settings\x20from\x20earlier\n\x20settings\x20with\x20the\x20sam\ + e\x20version\x20string\x20are\x20discarded.\n\n\r\n\x05\x04\x02\x02\x08\ + \x04\x12\x04\xd0\x01\x02\n\n\r\n\x05\x04\x02\x02\x08\x06\x12\x04\xd0\x01\ + \x0b\x20\n\r\n\x05\x04\x02\x02\x08\x01\x12\x04\xd0\x01!1\n\r\n\x05\x04\ + \x02\x02\x08\x03\x12\x04\xd0\x0147\n\x82\x01\n\x04\x04\x02\x02\t\x12\x04\ + \xd4\x01\x021\x1at\x20Optional\x20link\x20to\x20proto\x20reference\x20do\ + cumentation.\x20\x20Example:\n\x20https://cloud.google.com/pubsub/lite/d\ + ocs/reference/rpc\n\n\r\n\x05\x04\x02\x02\t\x05\x12\x04\xd4\x01\x02\x08\ + \n\r\n\x05\x04\x02\x02\t\x01\x12\x04\xd4\x01\t*\n\r\n\x05\x04\x02\x02\t\ + \x03\x12\x04\xd4\x01-0\n\x82\x01\n\x04\x04\x02\x02\n\x12\x04\xd8\x01\x02\ + 0\x1at\x20Optional\x20link\x20to\x20REST\x20reference\x20documentation.\ + \x20\x20Example:\n\x20https://cloud.google.com/pubsub/lite/docs/referenc\ + e/rest\n\n\r\n\x05\x04\x02\x02\n\x05\x12\x04\xd8\x01\x02\x08\n\r\n\x05\ + \x04\x02\x02\n\x01\x12\x04\xd8\x01\t)\n\r\n\x05\x04\x02\x02\n\x03\x12\ + \x04\xd8\x01,/\n3\n\x02\x04\x03\x12\x06\xdc\x01\0\xfc\x01\x01\x1a%\x20Se\ + ttings\x20for\x20Java\x20client\x20libraries.\n\n\x0b\n\x03\x04\x03\x01\ + \x12\x04\xdc\x01\x08\x14\n\xa1\x03\n\x04\x04\x03\x02\0\x12\x04\xe8\x01\ + \x02\x1d\x1a\x92\x03\x20The\x20package\x20name\x20to\x20use\x20in\x20Jav\ + a.\x20Clobbers\x20the\x20java_package\x20option\n\x20set\x20in\x20the\ + \x20protobuf.\x20This\x20should\x20be\x20used\x20**only**\x20by\x20APIs\ + \n\x20who\x20have\x20already\x20set\x20the\x20language_settings.java.pac\ + kage_name\"\x20field\n\x20in\x20gapic.yaml.\x20API\x20teams\x20should\ + \x20use\x20the\x20protobuf\x20java_package\x20option\n\x20where\x20possi\ + ble.\n\n\x20Example\x20of\x20a\x20YAML\x20configuration::\n\n\x20\x20pub\ + lishing:\n\x20\x20\x20\x20java_settings:\n\x20\x20\x20\x20\x20\x20librar\ + y_package:\x20com.google.cloud.pubsub.v1\n\n\r\n\x05\x04\x03\x02\0\x05\ + \x12\x04\xe8\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\xe8\x01\t\ + \x18\n\r\n\x05\x04\x03\x02\0\x03\x12\x04\xe8\x01\x1b\x1c\n\xb6\x04\n\x04\ + \x04\x03\x02\x01\x12\x04\xf8\x01\x02.\x1a\xa7\x04\x20Configure\x20the\ + \x20Java\x20class\x20name\x20to\x20use\x20instead\x20of\x20the\x20servic\ + e's\x20for\x20its\n\x20corresponding\x20generated\x20GAPIC\x20client.\ + \x20Keys\x20are\x20fully-qualified\n\x20service\x20names\x20as\x20they\ + \x20appear\x20in\x20the\x20protobuf\x20(including\x20the\x20full\n\x20th\ + e\x20language_settings.java.interface_names\"\x20field\x20in\x20gapic.ya\ + ml.\x20API\n\x20teams\x20should\x20otherwise\x20use\x20the\x20service\ + \x20name\x20as\x20it\x20appears\x20in\x20the\n\x20protobuf.\n\n\x20Examp\ + le\x20of\x20a\x20YAML\x20configuration::\n\n\x20\x20publishing:\n\x20\ + \x20\x20\x20java_settings:\n\x20\x20\x20\x20\x20\x20service_class_names:\ + \n\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.pubsub.v1.Publisher:\x20To\ + picAdmin\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20google.pubsub.v1.Subscrib\ + er:\x20SubscriptionAdmin\n\n\r\n\x05\x04\x03\x02\x01\x06\x12\x04\xf8\x01\ + \x02\x15\n\r\n\x05\x04\x03\x02\x01\x01\x12\x04\xf8\x01\x16)\n\r\n\x05\ + \x04\x03\x02\x01\x03\x12\x04\xf8\x01,-\n\x1e\n\x04\x04\x03\x02\x02\x12\ + \x04\xfb\x01\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\x03\x02\ + \x02\x06\x12\x04\xfb\x01\x02\x18\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\ + \xfb\x01\x19\x1f\n\r\n\x05\x04\x03\x02\x02\x03\x12\x04\xfb\x01\"#\n2\n\ + \x02\x04\x04\x12\x06\xff\x01\0\x82\x02\x01\x1a$\x20Settings\x20for\x20C+\ + +\x20client\x20libraries.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xff\x01\x08\ + \x13\n\x1e\n\x04\x04\x04\x02\0\x12\x04\x81\x02\x02$\x1a\x10\x20Some\x20s\ + ettings.\n\n\r\n\x05\x04\x04\x02\0\x06\x12\x04\x81\x02\x02\x18\n\r\n\x05\ + \x04\x04\x02\0\x01\x12\x04\x81\x02\x19\x1f\n\r\n\x05\x04\x04\x02\0\x03\ + \x12\x04\x81\x02\"#\n2\n\x02\x04\x05\x12\x06\x85\x02\0\x88\x02\x01\x1a$\ + \x20Settings\x20for\x20Php\x20client\x20libraries.\n\n\x0b\n\x03\x04\x05\ + \x01\x12\x04\x85\x02\x08\x13\n\x1e\n\x04\x04\x05\x02\0\x12\x04\x87\x02\ + \x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\x05\x02\0\x06\x12\x04\ + \x87\x02\x02\x18\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x87\x02\x19\x1f\n\r\ + \n\x05\x04\x05\x02\0\x03\x12\x04\x87\x02\"#\n5\n\x02\x04\x06\x12\x06\x8b\ + \x02\0\x9c\x02\x01\x1a'\x20Settings\x20for\x20Python\x20client\x20librar\ + ies.\n\n\x0b\n\x03\x04\x06\x01\x12\x04\x8b\x02\x08\x16\n\xb1\x01\n\x04\ + \x04\x06\x03\0\x12\x06\x8f\x02\x02\x95\x02\x03\x1a\xa0\x01\x20Experiment\ + al\x20features\x20to\x20be\x20included\x20during\x20client\x20library\ + \x20generation.\n\x20These\x20fields\x20will\x20be\x20deprecated\x20once\ + \x20the\x20feature\x20graduates\x20and\x20is\x20enabled\n\x20by\x20defau\ + lt.\n\n\r\n\x05\x04\x06\x03\0\x01\x12\x04\x8f\x02\n\x1e\n\x83\x02\n\x06\ + \x04\x06\x03\0\x02\0\x12\x04\x94\x02\x04#\x1a\xf2\x01\x20Enables\x20gene\ + ration\x20of\x20asynchronous\x20REST\x20clients\x20if\x20`rest`\x20trans\ + port\x20is\n\x20enabled.\x20By\x20default,\x20asynchronous\x20REST\x20cl\ + ients\x20will\x20not\x20be\x20generated.\n\x20This\x20feature\x20will\ + \x20be\x20enabled\x20by\x20default\x201\x20month\x20after\x20launching\ + \x20the\n\x20feature\x20in\x20preview\x20packages.\n\n\x0f\n\x07\x04\x06\ + \x03\0\x02\0\x05\x12\x04\x94\x02\x04\x08\n\x0f\n\x07\x04\x06\x03\0\x02\0\ + \x01\x12\x04\x94\x02\t\x1e\n\x0f\n\x07\x04\x06\x03\0\x02\0\x03\x12\x04\ + \x94\x02!\"\n\x1e\n\x04\x04\x06\x02\0\x12\x04\x98\x02\x02$\x1a\x10\x20So\ + me\x20settings.\n\n\r\n\x05\x04\x06\x02\0\x06\x12\x04\x98\x02\x02\x18\n\ + \r\n\x05\x04\x06\x02\0\x01\x12\x04\x98\x02\x19\x1f\n\r\n\x05\x04\x06\x02\ + \0\x03\x12\x04\x98\x02\"#\nV\n\x04\x04\x06\x02\x01\x12\x04\x9b\x02\x021\ + \x1aH\x20Experimental\x20features\x20to\x20be\x20included\x20during\x20c\ + lient\x20library\x20generation.\n\n\r\n\x05\x04\x06\x02\x01\x06\x12\x04\ + \x9b\x02\x02\x16\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\x9b\x02\x17,\n\r\ + \n\x05\x04\x06\x02\x01\x03\x12\x04\x9b\x02/0\n3\n\x02\x04\x07\x12\x06\ + \x9f\x02\0\xa2\x02\x01\x1a%\x20Settings\x20for\x20Node\x20client\x20libr\ + aries.\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x9f\x02\x08\x14\n\x1e\n\x04\x04\ + \x07\x02\0\x12\x04\xa1\x02\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\ + \x04\x07\x02\0\x06\x12\x04\xa1\x02\x02\x18\n\r\n\x05\x04\x07\x02\0\x01\ + \x12\x04\xa1\x02\x19\x1f\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\xa1\x02\"#\ + \n5\n\x02\x04\x08\x12\x06\xa5\x02\0\xc6\x02\x01\x1a'\x20Settings\x20for\ + \x20Dotnet\x20client\x20libraries.\n\n\x0b\n\x03\x04\x08\x01\x12\x04\xa5\ + \x02\x08\x16\n\x1e\n\x04\x04\x08\x02\0\x12\x04\xa7\x02\x02$\x1a\x10\x20S\ + ome\x20settings.\n\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\xa7\x02\x02\x18\n\ + \r\n\x05\x04\x08\x02\0\x01\x12\x04\xa7\x02\x19\x1f\n\r\n\x05\x04\x08\x02\ + \0\x03\x12\x04\xa7\x02\"#\n\xe6\x01\n\x04\x04\x08\x02\x01\x12\x04\xae\ + \x02\x02+\x1a\xd7\x01\x20Map\x20from\x20original\x20service\x20names\x20\ + to\x20renamed\x20versions.\n\x20This\x20is\x20used\x20when\x20the\x20def\ + ault\x20generated\x20types\n\x20would\x20cause\x20a\x20naming\x20conflic\ + t.\x20(Neither\x20name\x20is\n\x20fully-qualified.)\n\x20Example:\x20Sub\ + scriber\x20to\x20SubscriberServiceApi.\n\n\r\n\x05\x04\x08\x02\x01\x06\ + \x12\x04\xae\x02\x02\x15\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xae\x02\ + \x16&\n\r\n\x05\x04\x08\x02\x01\x03\x12\x04\xae\x02)*\n\x8d\x02\n\x04\ + \x04\x08\x02\x02\x12\x04\xb5\x02\x02,\x1a\xfe\x01\x20Map\x20from\x20full\ + \x20resource\x20types\x20to\x20the\x20effective\x20short\x20name\n\x20fo\ + r\x20the\x20resource.\x20This\x20is\x20used\x20when\x20otherwise\x20reso\ + urce\n\x20named\x20from\x20different\x20services\x20would\x20cause\x20na\ + ming\x20collisions.\n\x20Example\x20entry:\n\x20\"datalabeling.googleapi\ + s.com/Dataset\":\x20\"DataLabelingDataset\"\n\n\r\n\x05\x04\x08\x02\x02\ + \x06\x12\x04\xb5\x02\x02\x15\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xb5\ + \x02\x16'\n\r\n\x05\x04\x08\x02\x02\x03\x12\x04\xb5\x02*+\n\x9e\x02\n\ + \x04\x04\x08\x02\x03\x12\x04\xbc\x02\x02(\x1a\x8f\x02\x20List\x20of\x20f\ + ull\x20resource\x20types\x20to\x20ignore\x20during\x20generation.\n\x20T\ + his\x20is\x20typically\x20used\x20for\x20API-specific\x20Location\x20res\ + ources,\n\x20which\x20should\x20be\x20handled\x20by\x20the\x20generator\ + \x20as\x20if\x20they\x20were\x20actually\n\x20the\x20common\x20Location\ + \x20resources.\n\x20Example\x20entry:\x20\"documentai.googleapis.com/Loc\ + ation\"\n\n\r\n\x05\x04\x08\x02\x03\x04\x12\x04\xbc\x02\x02\n\n\r\n\x05\ + \x04\x08\x02\x03\x05\x12\x04\xbc\x02\x0b\x11\n\r\n\x05\x04\x08\x02\x03\ + \x01\x12\x04\xbc\x02\x12#\n\r\n\x05\x04\x08\x02\x03\x03\x12\x04\xbc\x02&\ + '\n}\n\x04\x04\x08\x02\x04\x12\x04\xc0\x02\x02/\x1ao\x20Namespaces\x20wh\ + ich\x20must\x20be\x20aliased\x20in\x20snippets\x20due\x20to\n\x20a\x20kn\ + own\x20(but\x20non-generator-predictable)\x20naming\x20collision\n\n\r\n\ + \x05\x04\x08\x02\x04\x04\x12\x04\xc0\x02\x02\n\n\r\n\x05\x04\x08\x02\x04\ + \x05\x12\x04\xc0\x02\x0b\x11\n\r\n\x05\x04\x08\x02\x04\x01\x12\x04\xc0\ + \x02\x12*\n\r\n\x05\x04\x08\x02\x04\x03\x12\x04\xc0\x02-.\n\xc7\x01\n\ + \x04\x04\x08\x02\x05\x12\x04\xc5\x02\x02-\x1a\xb8\x01\x20Method\x20signa\ + tures\x20(in\x20the\x20form\x20\"service.method(signature)\")\n\x20which\ + \x20are\x20provided\x20separately,\x20so\x20shouldn't\x20be\x20generated\ + .\n\x20Snippets\x20*calling*\x20these\x20methods\x20are\x20still\x20gene\ + rated,\x20however.\n\n\r\n\x05\x04\x08\x02\x05\x04\x12\x04\xc5\x02\x02\n\ + \n\r\n\x05\x04\x08\x02\x05\x05\x12\x04\xc5\x02\x0b\x11\n\r\n\x05\x04\x08\ + \x02\x05\x01\x12\x04\xc5\x02\x12(\n\r\n\x05\x04\x08\x02\x05\x03\x12\x04\ + \xc5\x02+,\n3\n\x02\x04\t\x12\x06\xc9\x02\0\xcc\x02\x01\x1a%\x20Settings\ + \x20for\x20Ruby\x20client\x20libraries.\n\n\x0b\n\x03\x04\t\x01\x12\x04\ + \xc9\x02\x08\x14\n\x1e\n\x04\x04\t\x02\0\x12\x04\xcb\x02\x02$\x1a\x10\ + \x20Some\x20settings.\n\n\r\n\x05\x04\t\x02\0\x06\x12\x04\xcb\x02\x02\ + \x18\n\r\n\x05\x04\t\x02\0\x01\x12\x04\xcb\x02\x19\x1f\n\r\n\x05\x04\t\ + \x02\0\x03\x12\x04\xcb\x02\"#\n1\n\x02\x04\n\x12\x06\xcf\x02\0\xd2\x02\ + \x01\x1a#\x20Settings\x20for\x20Go\x20client\x20libraries.\n\n\x0b\n\x03\ + \x04\n\x01\x12\x04\xcf\x02\x08\x12\n\x1e\n\x04\x04\n\x02\0\x12\x04\xd1\ + \x02\x02$\x1a\x10\x20Some\x20settings.\n\n\r\n\x05\x04\n\x02\0\x06\x12\ + \x04\xd1\x02\x02\x18\n\r\n\x05\x04\n\x02\0\x01\x12\x04\xd1\x02\x19\x1f\n\ + \r\n\x05\x04\n\x02\0\x03\x12\x04\xd1\x02\"#\nC\n\x02\x04\x0b\x12\x06\xd5\ + \x02\0\x95\x03\x01\x1a5\x20Describes\x20the\x20generator\x20configuratio\ + n\x20for\x20a\x20method.\n\n\x0b\n\x03\x04\x0b\x01\x12\x04\xd5\x02\x08\ + \x16\n\x90\x03\n\x04\x04\x0b\x03\0\x12\x06\xdb\x02\x02\xec\x02\x03\x1a\ + \xff\x02\x20Describes\x20settings\x20to\x20use\x20when\x20generating\x20\ + API\x20methods\x20that\x20use\x20the\n\x20long-running\x20operation\x20p\ + attern.\n\x20All\x20default\x20values\x20below\x20are\x20from\x20those\ + \x20used\x20in\x20the\x20client\x20library\n\x20generators\x20(e.g.\n\ + \x20[Java](https://github.com/googleapis/gapic-generator-java/blob/04c2f\ + aa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generat\ + or/gapic/composer/common/RetrySettingsComposer.java)).\n\n\r\n\x05\x04\ + \x0b\x03\0\x01\x12\x04\xdb\x02\n\x15\nk\n\x06\x04\x0b\x03\0\x02\0\x12\ + \x04\xde\x02\x044\x1a[\x20Initial\x20delay\x20after\x20which\x20the\x20f\ + irst\x20poll\x20request\x20will\x20be\x20made.\n\x20Default\x20value:\ + \x205\x20seconds.\n\n\x0f\n\x07\x04\x0b\x03\0\x02\0\x06\x12\x04\xde\x02\ + \x04\x1c\n\x0f\n\x07\x04\x0b\x03\0\x02\0\x01\x12\x04\xde\x02\x1d/\n\x0f\ + \n\x07\x04\x0b\x03\0\x02\0\x03\x12\x04\xde\x0223\n\x88\x01\n\x06\x04\x0b\ + \x03\0\x02\x01\x12\x04\xe3\x02\x04$\x1ax\x20Multiplier\x20to\x20graduall\ + y\x20increase\x20delay\x20between\x20subsequent\x20polls\x20until\x20it\ + \n\x20reaches\x20max_poll_delay.\n\x20Default\x20value:\x201.5.\n\n\x0f\ + \n\x07\x04\x0b\x03\0\x02\x01\x05\x12\x04\xe3\x02\x04\t\n\x0f\n\x07\x04\ + \x0b\x03\0\x02\x01\x01\x12\x04\xe3\x02\n\x1f\n\x0f\n\x07\x04\x0b\x03\0\ + \x02\x01\x03\x12\x04\xe3\x02\"#\n`\n\x06\x04\x0b\x03\0\x02\x02\x12\x04\ + \xe7\x02\x040\x1aP\x20Maximum\x20time\x20between\x20two\x20subsequent\ + \x20poll\x20requests.\n\x20Default\x20value:\x2045\x20seconds.\n\n\x0f\n\ + \x07\x04\x0b\x03\0\x02\x02\x06\x12\x04\xe7\x02\x04\x1c\n\x0f\n\x07\x04\ + \x0b\x03\0\x02\x02\x01\x12\x04\xe7\x02\x1d+\n\x0f\n\x07\x04\x0b\x03\0\ + \x02\x02\x03\x12\x04\xe7\x02./\nC\n\x06\x04\x0b\x03\0\x02\x03\x12\x04\ + \xeb\x02\x044\x1a3\x20Total\x20polling\x20timeout.\n\x20Default\x20value\ + :\x205\x20minutes.\n\n\x0f\n\x07\x04\x0b\x03\0\x02\x03\x06\x12\x04\xeb\ + \x02\x04\x1c\n\x0f\n\x07\x04\x0b\x03\0\x02\x03\x01\x12\x04\xeb\x02\x1d/\ + \n\x0f\n\x07\x04\x0b\x03\0\x02\x03\x03\x12\x04\xeb\x0223\n\xbb\x02\n\x04\ + \x04\x0b\x02\0\x12\x04\xf7\x02\x02\x16\x1a\xac\x02\x20The\x20fully\x20qu\ + alified\x20name\x20of\x20the\x20method,\x20for\x20which\x20the\x20option\ + s\x20below\x20apply.\n\x20This\x20is\x20used\x20to\x20find\x20the\x20met\ + hod\x20to\x20apply\x20the\x20options.\n\n\x20Example:\n\n\x20\x20\x20\ + \x20publishing:\n\x20\x20\x20\x20\x20\x20method_settings:\n\x20\x20\x20\ + \x20\x20\x20-\x20selector:\x20google.storage.control.v2.StorageControl.C\ + reateFolder\n\x20\x20\x20\x20\x20\x20\x20\x20#\x20method\x20settings\x20\ + for\x20CreateFolder...\n\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xf7\x02\x02\ + \x08\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\xf7\x02\t\x11\n\r\n\x05\x04\x0b\ + \x02\0\x03\x12\x04\xf7\x02\x14\x15\n\x90\x04\n\x04\x04\x0b\x02\x01\x12\ + \x04\x87\x03\x02\x1f\x1a\x81\x04\x20Describes\x20settings\x20to\x20use\ + \x20for\x20long-running\x20operations\x20when\x20generating\n\x20API\x20\ + methods\x20for\x20RPCs.\x20Complements\x20RPCs\x20that\x20use\x20the\x20\ + annotations\x20in\n\x20google/longrunning/operations.proto.\n\n\x20Examp\ + le\x20of\x20a\x20YAML\x20configuration::\n\n\x20\x20\x20\x20publishing:\ + \n\x20\x20\x20\x20\x20\x20method_settings:\n\x20\x20\x20\x20\x20\x20-\ + \x20selector:\x20google.cloud.speech.v2.Speech.BatchRecognize\n\x20\x20\ + \x20\x20\x20\x20\x20\x20long_running:\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20initial_poll_delay:\x2060s\x20#\x201\x20minute\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20poll_delay_multiplier:\x201.5\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20max_poll_delay:\x20360s\x20#\x206\x20minutes\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20total_poll_timeout:\x2054000s\ + \x20#\x2090\x20minutes\n\n\r\n\x05\x04\x0b\x02\x01\x06\x12\x04\x87\x03\ + \x02\r\n\r\n\x05\x04\x0b\x02\x01\x01\x12\x04\x87\x03\x0e\x1a\n\r\n\x05\ + \x04\x0b\x02\x01\x03\x12\x04\x87\x03\x1d\x1e\n\x94\x03\n\x04\x04\x0b\x02\ + \x02\x12\x04\x94\x03\x02,\x1a\x85\x03\x20List\x20of\x20top-level\x20fiel\ + ds\x20of\x20the\x20request\x20message,\x20that\x20should\x20be\n\x20auto\ + matically\x20populated\x20by\x20the\x20client\x20libraries\x20based\x20o\ + n\x20their\n\x20(google.api.field_info).format.\x20Currently\x20supporte\ + d\x20format:\x20UUID4.\n\n\x20Example\x20of\x20a\x20YAML\x20configuratio\ + n:\n\n\x20\x20\x20\x20publishing:\n\x20\x20\x20\x20\x20\x20method_settin\ + gs:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20google.example.v1.Example\ + Service.CreateExample\n\x20\x20\x20\x20\x20\x20\x20\x20auto_populated_fi\ + elds:\n\x20\x20\x20\x20\x20\x20\x20\x20-\x20request_id\n\n\r\n\x05\x04\ + \x0b\x02\x02\x04\x12\x04\x94\x03\x02\n\n\r\n\x05\x04\x0b\x02\x02\x05\x12\ + \x04\x94\x03\x0b\x11\n\r\n\x05\x04\x0b\x02\x02\x01\x12\x04\x94\x03\x12'\ + \n\r\n\x05\x04\x0b\x02\x02\x03\x12\x04\x94\x03*+\n\x8f\x01\n\x02\x05\0\ + \x12\x06\x99\x03\0\xb1\x03\x01\x1a\x80\x01\x20The\x20organization\x20for\ + \x20which\x20the\x20client\x20libraries\x20are\x20being\x20published.\n\ + \x20Affects\x20the\x20url\x20where\x20generated\x20docs\x20are\x20publis\ + hed,\x20etc.\n\n\x0b\n\x03\x05\0\x01\x12\x04\x99\x03\x05\x1e\n\x1b\n\x04\ + \x05\0\x02\0\x12\x04\x9b\x03\x02.\x1a\r\x20Not\x20useful.\n\n\r\n\x05\ + \x05\0\x02\0\x01\x12\x04\x9b\x03\x02)\n\r\n\x05\x05\0\x02\0\x02\x12\x04\ + \x9b\x03,-\n*\n\x04\x05\0\x02\x01\x12\x04\x9e\x03\x02\x0c\x1a\x1c\x20Goo\ + gle\x20Cloud\x20Platform\x20Org.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\ + \x9e\x03\x02\x07\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\x9e\x03\n\x0b\n&\n\ + \x04\x05\0\x02\x02\x12\x04\xa1\x03\x02\n\x1a\x18\x20Ads\x20(Advertising)\ + \x20Org.\n\n\r\n\x05\x05\0\x02\x02\x01\x12\x04\xa1\x03\x02\x05\n\r\n\x05\ + \x05\0\x02\x02\x02\x12\x04\xa1\x03\x08\t\n\x1b\n\x04\x05\0\x02\x03\x12\ + \x04\xa4\x03\x02\r\x1a\r\x20Photos\x20Org.\n\n\r\n\x05\x05\0\x02\x03\x01\ + \x12\x04\xa4\x03\x02\x08\n\r\n\x05\x05\0\x02\x03\x02\x12\x04\xa4\x03\x0b\ + \x0c\n\x20\n\x04\x05\0\x02\x04\x12\x04\xa7\x03\x02\x12\x1a\x12\x20Street\ + \x20View\x20Org.\n\n\r\n\x05\x05\0\x02\x04\x01\x12\x04\xa7\x03\x02\r\n\r\ + \n\x05\x05\0\x02\x04\x02\x12\x04\xa7\x03\x10\x11\n\x1d\n\x04\x05\0\x02\ + \x05\x12\x04\xaa\x03\x02\x0f\x1a\x0f\x20Shopping\x20Org.\n\n\r\n\x05\x05\ + \0\x02\x05\x01\x12\x04\xaa\x03\x02\n\n\r\n\x05\x05\0\x02\x05\x02\x12\x04\ + \xaa\x03\r\x0e\n\x18\n\x04\x05\0\x02\x06\x12\x04\xad\x03\x02\n\x1a\n\x20\ + Geo\x20Org.\n\n\r\n\x05\x05\0\x02\x06\x01\x12\x04\xad\x03\x02\x05\n\r\n\ + \x05\x05\0\x02\x06\x02\x12\x04\xad\x03\x08\t\nF\n\x04\x05\0\x02\x07\x12\ + \x04\xb0\x03\x02\x14\x1a8\x20Generative\x20AI\x20-\x20https://developers\ + .generativeai.google\n\n\r\n\x05\x05\0\x02\x07\x01\x12\x04\xb0\x03\x02\ + \x0f\n\r\n\x05\x05\0\x02\x07\x02\x12\x04\xb0\x03\x12\x13\n>\n\x02\x05\ + \x01\x12\x06\xb4\x03\0\xbf\x03\x01\x1a0\x20To\x20where\x20should\x20clie\ + nt\x20libraries\x20be\x20published?\n\n\x0b\n\x03\x05\x01\x01\x12\x04\ + \xb4\x03\x05\x1d\n^\n\x04\x05\x01\x02\0\x12\x04\xb7\x03\x02-\x1aP\x20Cli\ + ent\x20libraries\x20will\x20neither\x20be\x20generated\x20nor\x20publish\ + ed\x20to\x20package\n\x20managers.\n\n\r\n\x05\x05\x01\x02\0\x01\x12\x04\ + \xb7\x03\x02(\n\r\n\x05\x05\x01\x02\0\x02\x12\x04\xb7\x03+,\n}\n\x04\x05\ + \x01\x02\x01\x12\x04\xbb\x03\x02\x0e\x1ao\x20Generate\x20the\x20client\ + \x20library\x20in\x20a\x20repo\x20under\x20github.com/googleapis,\n\x20b\ + ut\x20don't\x20publish\x20it\x20to\x20package\x20managers.\n\n\r\n\x05\ + \x05\x01\x02\x01\x01\x12\x04\xbb\x03\x02\x08\n\r\n\x05\x05\x01\x02\x01\ + \x02\x12\x04\xbb\x03\x0b\r\nU\n\x04\x05\x01\x02\x02\x12\x04\xbe\x03\x02\ + \x17\x1aG\x20Publish\x20the\x20library\x20to\x20package\x20managers\x20l\ + ike\x20nuget.org\x20and\x20npmjs.com.\n\n\r\n\x05\x05\x01\x02\x02\x01\ + \x12\x04\xbe\x03\x02\x11\n\r\n\x05\x05\x01\x02\x02\x02\x12\x04\xbe\x03\ + \x14\x16\n|\n\x02\x04\x0c\x12\x06\xc3\x03\0\xc7\x03\x01\x1an\x20This\x20\ + message\x20is\x20used\x20to\x20configure\x20the\x20generation\x20of\x20a\ + \x20subset\x20of\x20the\x20RPCs\x20in\n\x20a\x20service\x20for\x20client\ + \x20libraries.\n\n\x0b\n\x03\x04\x0c\x01\x12\x04\xc3\x03\x08\x20\nu\n\ + \x04\x04\x0c\x02\0\x12\x04\xc6\x03\x02\x1e\x1ag\x20An\x20allowlist\x20of\ + \x20the\x20fully\x20qualified\x20names\x20of\x20RPCs\x20that\x20should\ + \x20be\x20included\n\x20on\x20public\x20client\x20surfaces.\n\n\r\n\x05\ + \x04\x0c\x02\0\x04\x12\x04\xc6\x03\x02\n\n\r\n\x05\x04\x0c\x02\0\x05\x12\ + \x04\xc6\x03\x0b\x11\n\r\n\x05\x04\x0c\x02\0\x01\x12\x04\xc6\x03\x12\x19\ + \n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\xc6\x03\x1c\x1db\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file @@ -132,10 +3421,29 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { - let mut deps = ::std::vec::Vec::with_capacity(1); + let mut deps = ::std::vec::Vec::with_capacity(3); + deps.push(super::launch_stage::file_descriptor().clone()); deps.push(::protobuf::descriptor::file_descriptor().clone()); - let mut messages = ::std::vec::Vec::with_capacity(0); - let mut enums = ::std::vec::Vec::with_capacity(0); + deps.push(::protobuf::well_known_types::duration::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(15); + messages.push(CommonLanguageSettings::generated_message_descriptor_data()); + messages.push(ClientLibrarySettings::generated_message_descriptor_data()); + messages.push(Publishing::generated_message_descriptor_data()); + messages.push(JavaSettings::generated_message_descriptor_data()); + messages.push(CppSettings::generated_message_descriptor_data()); + messages.push(PhpSettings::generated_message_descriptor_data()); + messages.push(PythonSettings::generated_message_descriptor_data()); + messages.push(NodeSettings::generated_message_descriptor_data()); + messages.push(DotnetSettings::generated_message_descriptor_data()); + messages.push(RubySettings::generated_message_descriptor_data()); + messages.push(GoSettings::generated_message_descriptor_data()); + messages.push(MethodSettings::generated_message_descriptor_data()); + messages.push(SelectiveGapicGeneration::generated_message_descriptor_data()); + messages.push(python_settings::ExperimentalFeatures::generated_message_descriptor_data()); + messages.push(method_settings::LongRunning::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(2); + enums.push(ClientLibraryOrganization::generated_enum_descriptor_data()); + enums.push(ClientLibraryDestination::generated_enum_descriptor_data()); ::protobuf::reflect::GeneratedFileDescriptor::new_generated( file_descriptor_proto(), deps, diff --git a/googleapis-raw/src/api/config_change.rs b/googleapis-raw/src/api/config_change.rs index 6b4b172..5121be1 100644 --- a/googleapis-raw/src/api/config_change.rs +++ b/googleapis-raw/src/api/config_change.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -453,10 +453,10 @@ static file_descriptor_proto_data: &'static [u8] = b"\ CHANGE_TYPE_UNSPECIFIED\x10\0\x12\t\n\x05ADDED\x10\x01\x12\x0b\n\x07REMO\ VED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03Bq\n\x0ecom.google.apiB\x11Conf\ igChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchan\ - ge;configchange\xa2\x02\x04GAPIJ\xe7\x18\n\x06\x12\x04\x0f\0T\x01\n\xbe\ - \x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\ - \x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ - n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ + ge;configchange\xa2\x02\x04GAPIJ\xe5\x18\n\x06\x12\x04\x0e\0S\x01\n\xbc\ + \x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\ + \x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\ + \x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ @@ -466,19 +466,19 @@ static file_descriptor_proto_data: &'static [u8] = b"\ RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ - \x08\x12\x03\x13\0Z\n\t\n\x02\x08\x0b\x12\x03\x13\0Z\n\x08\n\x01\x08\x12\ - \x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\ - \02\n\t\n\x02\x08\x08\x12\x03\x15\02\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\ - \n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ - \x08$\x12\x03\x17\0\"\n\x8e\x02\n\x02\x04\0\x12\x04\x1f\09\x01\x1a\x81\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ + \x12\x03\x12\0Z\n\t\n\x02\x08\x0b\x12\x03\x12\0Z\n\x08\n\x01\x08\x12\x03\ + \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\02\ + \n\t\n\x02\x08\x08\x12\x03\x14\02\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ + \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\n\x8e\x02\n\x02\x04\0\x12\x04\x1e\08\x01\x1a\x81\ \x02\x20Output\x20generated\x20from\x20semantically\x20comparing\x20two\ \x20versions\x20of\x20a\x20service\n\x20configuration.\n\n\x20Includes\ \x20detailed\x20information\x20about\x20a\x20field\x20that\x20have\x20ch\ anged\x20with\n\x20applicable\x20advice\x20about\x20potential\x20consequ\ ences\x20for\x20the\x20change,\x20such\x20as\n\x20backwards-incompatibil\ - ity.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\x08\x14\n\xff\x03\n\x04\x04\0\x02\ - \0\x12\x03)\x02\x15\x1a\xf1\x03\x20Object\x20hierarchy\x20path\x20to\x20\ + ity.\n\n\n\n\x03\x04\0\x01\x12\x03\x1e\x08\x14\n\xff\x03\n\x04\x04\0\x02\ + \0\x12\x03(\x02\x15\x1a\xf1\x03\x20Object\x20hierarchy\x20path\x20to\x20\ the\x20change,\x20with\x20levels\x20separated\x20by\x20a\x20'.'\n\x20cha\ racter.\x20For\x20repeated\x20fields,\x20an\x20applicable\x20unique\x20i\ dentifier\x20field\x20is\n\x20used\x20for\x20the\x20index\x20(usually\ @@ -488,55 +488,55 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s:\n\x20-\x20visibility.rules[selector==\"google.LibraryService.ListBook\ s\"].restriction\n\x20-\x20quota.metric_rules[selector==\"google\"].metr\ ic_costs[key==\"reads\"].value\n\x20-\x20logging.producer_destinations[0\ - ]\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03)\x02\x08\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03)\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03)\x13\x14\n\x97\ - \x01\n\x04\x04\0\x02\x01\x12\x03-\x02\x17\x1a\x89\x01\x20Value\x20of\x20\ + ]\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\n\x0c\n\x05\x04\0\x02\0\ + \x01\x12\x03(\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03(\x13\x14\n\x97\ + \x01\n\x04\x04\0\x02\x01\x12\x03,\x02\x17\x1a\x89\x01\x20Value\x20of\x20\ the\x20changed\x20object\x20in\x20the\x20old\x20Service\x20configuration\ ,\n\x20in\x20JSON\x20format.\x20This\x20field\x20will\x20not\x20be\x20po\ pulated\x20if\x20ChangeType\x20==\x20ADDED.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03-\t\x12\n\x0c\ - \n\x05\x04\0\x02\x01\x03\x12\x03-\x15\x16\n\x99\x01\n\x04\x04\0\x02\x02\ - \x12\x031\x02\x17\x1a\x8b\x01\x20Value\x20of\x20the\x20changed\x20object\ + \x05\x12\x03,\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\t\x12\n\x0c\ + \n\x05\x04\0\x02\x01\x03\x12\x03,\x15\x16\n\x99\x01\n\x04\x04\0\x02\x02\ + \x12\x030\x02\x17\x1a\x8b\x01\x20Value\x20of\x20the\x20changed\x20object\ \x20in\x20the\x20new\x20Service\x20configuration,\n\x20in\x20JSON\x20for\ mat.\x20This\x20field\x20will\x20not\x20be\x20populated\x20if\x20ChangeT\ - ype\x20==\x20REMOVED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x031\x02\x08\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x031\t\x12\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x031\x15\x16\nL\n\x04\x04\0\x02\x03\x12\x034\x02\x1d\x1a?\x20Th\ + ype\x20==\x20REMOVED.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x030\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x02\x01\x12\x030\t\x12\n\x0c\n\x05\x04\0\x02\x02\ + \x03\x12\x030\x15\x16\nL\n\x04\x04\0\x02\x03\x12\x033\x02\x1d\x1a?\x20Th\ e\x20type\x20for\x20this\x20change,\x20either\x20ADDED,\x20REMOVED,\x20o\ - r\x20MODIFIED.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x034\x02\x0c\n\x0c\n\ - \x05\x04\0\x02\x03\x01\x12\x034\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ - \x034\x1b\x1c\ny\n\x04\x04\0\x02\x04\x12\x038\x02\x1e\x1al\x20Collection\ + r\x20MODIFIED.\n\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x033\x02\x0c\n\x0c\n\ + \x05\x04\0\x02\x03\x01\x12\x033\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\ + \x033\x1b\x1c\ny\n\x04\x04\0\x02\x04\x12\x037\x02\x1e\x1al\x20Collection\ \x20of\x20advice\x20provided\x20for\x20this\x20change,\x20useful\x20for\ \x20determining\x20the\n\x20possible\x20impact\x20of\x20this\x20change.\ - \n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x038\x02\n\n\x0c\n\x05\x04\0\x02\ - \x04\x06\x12\x038\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x038\x12\x19\ - \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x038\x1c\x1d\n\x8b\x01\n\x02\x04\x01\ - \x12\x04=\0A\x01\x1a\x7f\x20Generated\x20advice\x20about\x20this\x20chan\ + \n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x037\x02\n\n\x0c\n\x05\x04\0\x02\ + \x04\x06\x12\x037\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x037\x12\x19\ + \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x037\x1c\x1d\n\x8b\x01\n\x02\x04\x01\ + \x12\x04<\0@\x01\x1a\x7f\x20Generated\x20advice\x20about\x20this\x20chan\ ge,\x20used\x20for\x20providing\x20more\n\x20information\x20about\x20how\ \x20a\x20change\x20will\x20affect\x20the\x20existing\x20service.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03=\x08\x0e\n\x82\x01\n\x04\x04\x01\x02\0\x12\x03@\ + \x03\x04\x01\x01\x12\x03<\x08\x0e\n\x82\x01\n\x04\x04\x01\x02\0\x12\x03?\ \x02\x19\x1au\x20Useful\x20description\x20for\x20why\x20this\x20advice\ \x20was\x20applied\x20and\x20what\x20actions\x20should\n\x20be\x20taken\ \x20to\x20mitigate\x20any\x20implied\x20risks.\n\n\x0c\n\x05\x04\x01\x02\ - \0\x05\x12\x03@\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03@\t\x14\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03@\x17\x18\nb\n\x02\x05\0\x12\x04E\0T\ + \0\x05\x12\x03?\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03?\t\x14\n\ + \x0c\n\x05\x04\x01\x02\0\x03\x12\x03?\x17\x18\nb\n\x02\x05\0\x12\x04D\0S\ \x01\x1aV\x20Classifies\x20set\x20of\x20possible\x20modifications\x20to\ \x20an\x20object\x20in\x20the\x20service\n\x20configuration.\n\n\n\n\x03\ - \x05\0\x01\x12\x03E\x05\x0f\n%\n\x04\x05\0\x02\0\x12\x03G\x02\x1e\x1a\ + \x05\0\x01\x12\x03D\x05\x0f\n%\n\x04\x05\0\x02\0\x12\x03F\x02\x1e\x1a\ \x18\x20No\x20value\x20was\x20provided.\n\n\x0c\n\x05\x05\0\x02\0\x01\ - \x12\x03G\x02\x19\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03G\x1c\x1d\ny\n\x04\ - \x05\0\x02\x01\x12\x03K\x02\x0c\x1al\x20The\x20changed\x20object\x20exis\ + \x12\x03F\x02\x19\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03F\x1c\x1d\ny\n\x04\ + \x05\0\x02\x01\x12\x03J\x02\x0c\x1al\x20The\x20changed\x20object\x20exis\ ts\x20in\x20the\x20'new'\x20service\x20configuration,\x20but\x20not\n\ \x20in\x20the\x20'old'\x20service\x20configuration.\n\n\x0c\n\x05\x05\0\ - \x02\x01\x01\x12\x03K\x02\x07\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03K\n\ - \x0b\ny\n\x04\x05\0\x02\x02\x12\x03O\x02\x0e\x1al\x20The\x20changed\x20o\ + \x02\x01\x01\x12\x03J\x02\x07\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03J\n\ + \x0b\ny\n\x04\x05\0\x02\x02\x12\x03N\x02\x0e\x1al\x20The\x20changed\x20o\ bject\x20exists\x20in\x20the\x20'old'\x20service\x20configuration,\x20bu\ t\x20not\n\x20in\x20the\x20'new'\x20service\x20configuration.\n\n\x0c\n\ - \x05\x05\0\x02\x02\x01\x12\x03O\x02\t\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ - \x03O\x0c\r\ne\n\x04\x05\0\x02\x03\x12\x03S\x02\x0f\x1aX\x20The\x20chang\ + \x05\x05\0\x02\x02\x01\x12\x03N\x02\t\n\x0c\n\x05\x05\0\x02\x02\x02\x12\ + \x03N\x0c\r\ne\n\x04\x05\0\x02\x03\x12\x03R\x02\x0f\x1aX\x20The\x20chang\ ed\x20object\x20exists\x20in\x20both\x20service\x20configurations,\x20bu\ t\x20its\x20value\n\x20is\x20different.\n\n\x0c\n\x05\x05\0\x02\x03\x01\ - \x12\x03S\x02\n\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03S\r\x0eb\x06proto3\ + \x12\x03R\x02\n\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03R\r\x0eb\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/consumer.rs b/googleapis-raw/src/api/consumer.rs index ffc54ce..47c784f 100644 --- a/googleapis-raw/src/api/consumer.rs +++ b/googleapis-raw/src/api/consumer.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -410,9 +410,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ tion\"L\n\x0cPropertyType\x12\x0f\n\x0bUNSPECIFIED\x10\0\x12\t\n\x05INT6\ 4\x10\x01\x12\x08\n\x04BOOL\x10\x02\x12\n\n\x06STRING\x10\x03\x12\n\n\ \x06DOUBLE\x10\x04Bh\n\x0ecom.google.apiB\rConsumerProtoP\x01ZEgoogle.go\ - lang.org/genproto/googleapis/api/serviceconfig;serviceconfigJ\xbc\x15\n\ - \x06\x12\x04\x0e\0Q\x01\n\xbd\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb2\x04\ - \x20Copyright\x202016\x20Google\x20Inc.\n\n\x20Licensed\x20under\x20the\ + lang.org/genproto/googleapis/api/serviceconfig;serviceconfigJ\xbb\x15\n\ + \x06\x12\x04\x0e\0Q\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ + \x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ diff --git a/googleapis-raw/src/api/context.rs b/googleapis-raw/src/api/context.rs index 869aebb..a66dd7b 100644 --- a/googleapis-raw/src/api/context.rs +++ b/googleapis-raw/src/api/context.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -159,13 +159,16 @@ pub struct ContextRule { // message fields /// Selects the methods to which this rule applies. /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. // @@protoc_insertion_point(field:google.api.ContextRule.selector) pub selector: ::std::string::String, - /// A list of full type names of requested contexts. + /// A list of full type names of requested contexts, only the requested context + /// will be made available to the backend. // @@protoc_insertion_point(field:google.api.ContextRule.requested) pub requested: ::std::vec::Vec<::std::string::String>, - /// A list of full type names of provided contexts. + /// A list of full type names of provided contexts. It is used to support + /// propagating HTTP headers and ETags from the response extension. // @@protoc_insertion_point(field:google.api.ContextRule.provided) pub provided: ::std::vec::Vec<::std::string::String>, /// A list of full type names or extension IDs of extensions allowed in grpc @@ -365,9 +368,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ xtensions\x18\x04\x20\x03(\tR\x18allowedRequestExtensions\x12>\n\x1ballo\ wed_response_extensions\x18\x05\x20\x03(\tR\x19allowedResponseExtensions\ Bn\n\x0ecom.google.apiB\x0cContextProtoP\x01ZEgoogle.golang.org/genproto\ - /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\x8d\x17\n\ - \x06\x12\x04\x0f\0Y\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\ - \x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\ + /googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa9\x18\n\ + \x06\x12\x04\x0e\0[\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\ + \x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\ \x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20y\ ou\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\ \x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\ @@ -378,13 +381,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20A\ NY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20Li\ cense\x20for\x20the\x20specific\x20language\x20governing\x20permissions\ - \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\ - \x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\ - \x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\ - \0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\x08\x08\x12\x03\x15\0-\n\ - \x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\ - \x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\"\n\xdf\x08\n\x02\ - \x04\0\x12\x04=\0B\x01\x1a\xd2\x08\x20`Context`\x20defines\x20which\x20c\ + \x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\ + \x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\ + \x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\ + \0\"\n\x08\n\x01\x08\x12\x03\x14\0-\n\t\n\x02\x08\x08\x12\x03\x14\0-\n\ + \x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ + \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\xdf\x08\n\x02\ + \x04\0\x12\x04<\0A\x01\x1a\xd2\x08\x20`Context`\x20defines\x20which\x20c\ ontexts\x20an\x20API\x20requests.\n\n\x20Example:\n\n\x20\x20\x20\x20\ \x20context:\n\x20\x20\x20\x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\ \x20\x20-\x20selector:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20req\ @@ -394,7 +397,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s\x20in\x20the\x20API\x20request\n\x20`google.rpc.context.ProjectContext\ `\x20and\n\x20`google.rpc.context.OriginContext`.\n\n\x20Available\x20co\ ntext\x20types\x20are\x20defined\x20in\x20package\n\x20`google.rpc.conte\ - xt`.\n\n\x20This\x20also\x20provides\x20mechanism\x20to\x20whitelist\x20\ + xt`.\n\n\x20This\x20also\x20provides\x20mechanism\x20to\x20allowlist\x20\ any\x20protobuf\x20message\x20extension\x20that\n\x20can\x20be\x20sent\ \x20in\x20grpc\x20metadata\x20using\x20\xe2\x80\x9cx-goog-ext--bin\xe2\x80\x9d\x20and\n\x20\xe2\x80\x9cx-goog-ext--j\ @@ -409,42 +412,46 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\x20\x20\x20allowed_response_extensions:\n\x20\x20\x20\x20\x20\x20\ \x20\x20\x20\x20-\x20google.foo.v1.NewExtension\n\n\x20You\x20can\x20als\ o\x20specify\x20extension\x20ID\x20instead\x20of\x20fully\x20qualified\ - \x20extension\x20name\n\x20here.\n\n\n\n\x03\x04\0\x01\x12\x03=\x08\x0f\ - \n\x9b\x01\n\x04\x04\0\x02\0\x12\x03A\x02!\x1a\x8d\x01\x20A\x20list\x20o\ + \x20extension\x20name\n\x20here.\n\n\n\n\x03\x04\0\x01\x12\x03<\x08\x0f\ + \n\x9b\x01\n\x04\x04\0\x02\0\x12\x03@\x02!\x1a\x8d\x01\x20A\x20list\x20o\ f\x20RPC\x20context\x20rules\x20that\x20apply\x20to\x20individual\x20API\ \x20methods.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rule\ s\x20follow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\ - \0\x04\x12\x03A\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03A\x0b\x16\n\x0c\ - \n\x05\x04\0\x02\0\x01\x12\x03A\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03A\x1f\x20\nc\n\x02\x04\x01\x12\x04F\0Y\x01\x1aW\x20A\x20context\x20r\ + \0\x04\x12\x03@\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03@\x0b\x16\n\x0c\ + \n\x05\x04\0\x02\0\x01\x12\x03@\x17\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03@\x1f\x20\nc\n\x02\x04\x01\x12\x04E\0[\x01\x1aW\x20A\x20context\x20r\ ule\x20provides\x20information\x20about\x20the\x20context\x20for\x20an\ - \x20individual\x20API\n\x20element.\n\n\n\n\x03\x04\x01\x01\x12\x03F\x08\ - \x13\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03J\x02\x16\x1a\x82\x01\x20Selec\ + \x20individual\x20API\n\x20element.\n\n\n\n\x03\x04\x01\x01\x12\x03E\x08\ + \x13\n\x91\x01\n\x04\x04\x01\x02\0\x12\x03J\x02\x16\x1a\x83\x01\x20Selec\ ts\x20the\x20methods\x20to\x20which\x20this\x20rule\x20applies.\n\n\x20R\ efer\x20to\x20[selector][google.api.DocumentationRule.selector]\x20for\ - \x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03J\x02\x08\ - \n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03J\t\x11\n\x0c\n\x05\x04\x01\x02\0\ - \x03\x12\x03J\x14\x15\n?\n\x04\x04\x01\x02\x01\x12\x03M\x02\x20\x1a2\x20\ - A\x20list\x20of\x20full\x20type\x20names\x20of\x20requested\x20contexts.\ - \n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03M\x02\n\n\x0c\n\x05\x04\x01\ - \x02\x01\x05\x12\x03M\x0b\x11\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03M\ - \x12\x1b\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03M\x1e\x1f\n>\n\x04\x04\ - \x01\x02\x02\x12\x03P\x02\x1f\x1a1\x20A\x20list\x20of\x20full\x20type\ - \x20names\x20of\x20provided\x20contexts.\n\n\x0c\n\x05\x04\x01\x02\x02\ - \x04\x12\x03P\x02\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03P\x0b\x11\n\ - \x0c\n\x05\x04\x01\x02\x02\x01\x12\x03P\x12\x1a\n\x0c\n\x05\x04\x01\x02\ - \x02\x03\x12\x03P\x1d\x1e\n}\n\x04\x04\x01\x02\x03\x12\x03T\x021\x1ap\ - \x20A\x20list\x20of\x20full\x20type\x20names\x20or\x20extension\x20IDs\ - \x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20side\x20channel\x20fr\ - om\x20client\x20to\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03\ - T\x02\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03T\x0b\x11\n\x0c\n\x05\x04\ - \x01\x02\x03\x01\x12\x03T\x12,\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03T/\ - 0\n}\n\x04\x04\x01\x02\x04\x12\x03X\x022\x1ap\x20A\x20list\x20of\x20full\ - \x20type\x20names\x20or\x20extension\x20IDs\x20of\x20extensions\x20allow\ - ed\x20in\x20grpc\n\x20side\x20channel\x20from\x20backend\x20to\x20client\ - .\n\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03X\x02\n\n\x0c\n\x05\x04\x01\ - \x02\x04\x05\x12\x03X\x0b\x11\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03X\ - \x12-\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03X01b\x06proto3\ + \x20syntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03J\x02\ + \x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03J\t\x11\n\x0c\n\x05\x04\x01\ + \x02\0\x03\x12\x03J\x14\x15\n\x82\x01\n\x04\x04\x01\x02\x01\x12\x03N\x02\ + \x20\x1au\x20A\x20list\x20of\x20full\x20type\x20names\x20of\x20requested\ + \x20contexts,\x20only\x20the\x20requested\x20context\n\x20will\x20be\x20\ + made\x20available\x20to\x20the\x20backend.\n\n\x0c\n\x05\x04\x01\x02\x01\ + \x04\x12\x03N\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03N\x0b\x11\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03N\x12\x1b\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03N\x1e\x1f\n\x96\x01\n\x04\x04\x01\x02\x02\x12\x03R\x02\ + \x1f\x1a\x88\x01\x20A\x20list\x20of\x20full\x20type\x20names\x20of\x20pr\ + ovided\x20contexts.\x20It\x20is\x20used\x20to\x20support\n\x20propagatin\ + g\x20HTTP\x20headers\x20and\x20ETags\x20from\x20the\x20response\x20exten\ + sion.\n\n\x0c\n\x05\x04\x01\x02\x02\x04\x12\x03R\x02\n\n\x0c\n\x05\x04\ + \x01\x02\x02\x05\x12\x03R\x0b\x11\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\ + \x03R\x12\x1a\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03R\x1d\x1e\n}\n\x04\ + \x04\x01\x02\x03\x12\x03V\x021\x1ap\x20A\x20list\x20of\x20full\x20type\ + \x20names\x20or\x20extension\x20IDs\x20of\x20extensions\x20allowed\x20in\ + \x20grpc\n\x20side\x20channel\x20from\x20client\x20to\x20backend.\n\n\ + \x0c\n\x05\x04\x01\x02\x03\x04\x12\x03V\x02\n\n\x0c\n\x05\x04\x01\x02\ + \x03\x05\x12\x03V\x0b\x11\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03V\x12,\ + \n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03V/0\n}\n\x04\x04\x01\x02\x04\x12\ + \x03Z\x022\x1ap\x20A\x20list\x20of\x20full\x20type\x20names\x20or\x20ext\ + ension\x20IDs\x20of\x20extensions\x20allowed\x20in\x20grpc\n\x20side\x20\ + channel\x20from\x20backend\x20to\x20client.\n\n\x0c\n\x05\x04\x01\x02\ + \x04\x04\x12\x03Z\x02\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03Z\x0b\x11\ + \n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03Z\x12-\n\x0c\n\x05\x04\x01\x02\ + \x04\x03\x12\x03Z01b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/control.rs b/googleapis-raw/src/api/control.rs index 67ef8e8..6db941e 100644 --- a/googleapis-raw/src/api/control.rs +++ b/googleapis-raw/src/api/control.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -25,17 +25,18 @@ /// of protobuf runtime. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; -/// Selects and configures the service controller used by the service. The -/// service controller handles features like abuse, quota, billing, logging, -/// monitoring, etc. // @@protoc_insertion_point(message:google.api.Control) #[derive(PartialEq,Clone,Default,Debug)] pub struct Control { // message fields - /// The service control environment to use. If empty, no control plane - /// feature (like quota and billing) will be enabled. + /// The service controller environment to use. If empty, no control plane + /// feature (like quota and billing) will be enabled. The recommended value for + /// most services is servicecontrol.googleapis.com // @@protoc_insertion_point(field:google.api.Control.environment) pub environment: ::std::string::String, + /// Defines policies applying to the API methods of the service. + // @@protoc_insertion_point(field:google.api.Control.method_policies) + pub method_policies: ::std::vec::Vec, // special fields // @@protoc_insertion_point(special_field:google.api.Control.special_fields) pub special_fields: ::protobuf::SpecialFields, @@ -53,13 +54,18 @@ impl Control { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(1); + let mut fields = ::std::vec::Vec::with_capacity(2); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "environment", |m: &Control| { &m.environment }, |m: &mut Control| { &mut m.environment }, )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "method_policies", + |m: &Control| { &m.method_policies }, + |m: &mut Control| { &mut m.method_policies }, + )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Control", fields, @@ -81,6 +87,9 @@ impl ::protobuf::Message for Control { 10 => { self.environment = is.read_string()?; }, + 34 => { + self.method_policies.push(is.read_message()?); + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -96,6 +105,10 @@ impl ::protobuf::Message for Control { if !self.environment.is_empty() { my_size += ::protobuf::rt::string_size(1, &self.environment); } + for value in &self.method_policies { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size @@ -105,6 +118,9 @@ impl ::protobuf::Message for Control { if !self.environment.is_empty() { os.write_string(1, &self.environment)?; } + for v in &self.method_policies { + ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?; + }; os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } @@ -123,12 +139,14 @@ impl ::protobuf::Message for Control { fn clear(&mut self) { self.environment.clear(); + self.method_policies.clear(); self.special_fields.clear(); } fn default_instance() -> &'static Control { static instance: Control = Control { environment: ::std::string::String::new(), + method_policies: ::std::vec::Vec::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance @@ -153,38 +171,46 @@ impl ::protobuf::reflect::ProtobufValue for Control { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x18google/api/control.proto\x12\ngoogle.api\"+\n\x07Control\x12\x20\n\ - \x0benvironment\x18\x01\x20\x01(\tR\x0benvironmentBn\n\x0ecom.google.api\ - B\x0cControlProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/servic\ - econfig;serviceconfig\xa2\x02\x04GAPIJ\xae\x08\n\x06\x12\x04\x0f\0\x20\ - \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ - \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ - \n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\ - \x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\ - \x03\x15\0-\n\t\n\x02\x08\x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\ - \0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\ - \n\x02\x08$\x12\x03\x17\0\"\n\xb2\x01\n\x02\x04\0\x12\x04\x1c\0\x20\x01\ - \x1a\xa5\x01\x20Selects\x20and\x20configures\x20the\x20service\x20contro\ - ller\x20used\x20by\x20the\x20service.\x20\x20The\n\x20service\x20control\ - ler\x20handles\x20features\x20like\x20abuse,\x20quota,\x20billing,\x20lo\ - gging,\n\x20monitoring,\x20etc.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\ - \x0f\n\x84\x01\n\x04\x04\0\x02\0\x12\x03\x1f\x02\x19\x1aw\x20The\x20serv\ - ice\x20control\x20environment\x20to\x20use.\x20If\x20empty,\x20no\x20con\ + \n\x18google/api/control.proto\x12\ngoogle.api\x1a\x17google/api/policy.\ + proto\"n\n\x07Control\x12\x20\n\x0benvironment\x18\x01\x20\x01(\tR\x0ben\ + vironment\x12A\n\x0fmethod_policies\x18\x04\x20\x03(\x0b2\x18.google.api\ + .MethodPolicyR\x0emethodPoliciesBn\n\x0ecom.google.apiB\x0cControlProtoP\ + \x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;servicecon\ + fig\xa2\x02\x04GAPIJ\xf5\t\n\x06\x12\x04\x0e\0(\x01\n\xbc\x04\n\x01\x0c\ + \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0!\ + \n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\x08\x0b\x12\x03\x14\0\\\n\x08\ + \n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\ + \x08\x12\x03\x16\0-\n\t\n\x02\x08\x08\x12\x03\x16\0-\n\x08\n\x01\x08\x12\ + \x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\ + \0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\x9d\x01\n\x02\x04\0\x12\x04\x20\0(\ + \x01\x1a\x90\x01\x20Selects\x20and\x20configures\x20the\x20service\x20co\ + ntroller\x20used\x20by\x20the\x20service.\n\n\x20Example:\n\n\x20\x20\ + \x20\x20\x20control:\n\x20\x20\x20\x20\x20\x20\x20environment:\x20servic\ + econtrol.googleapis.com\n\n\n\n\x03\x04\0\x01\x12\x03\x20\x08\x0f\n\xd2\ + \x01\n\x04\x04\0\x02\0\x12\x03$\x02\x19\x1a\xc4\x01\x20The\x20service\ + \x20controller\x20environment\x20to\x20use.\x20If\x20empty,\x20no\x20con\ trol\x20plane\n\x20feature\x20(like\x20quota\x20and\x20billing)\x20will\ - \x20be\x20enabled.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1f\x02\x08\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1f\t\x14\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03\x1f\x17\x18b\x06proto3\ + \x20be\x20enabled.\x20The\x20recommended\x20value\x20for\n\x20most\x20se\ + rvices\x20is\x20servicecontrol.googleapis.com\n\n\x0c\n\x05\x04\0\x02\0\ + \x05\x12\x03$\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03$\t\x14\n\x0c\n\ + \x05\x04\0\x02\0\x03\x12\x03$\x17\x18\nK\n\x04\x04\0\x02\x01\x12\x03'\ + \x02,\x1a>\x20Defines\x20policies\x20applying\x20to\x20the\x20API\x20met\ + hods\x20of\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03'\ + \x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03'\x0b\x17\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03'\x18'\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03'*+b\x06\ + proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file @@ -201,7 +227,8 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { - let mut deps = ::std::vec::Vec::with_capacity(0); + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(super::policy::file_descriptor().clone()); let mut messages = ::std::vec::Vec::with_capacity(1); messages.push(Control::generated_message_descriptor_data()); let mut enums = ::std::vec::Vec::with_capacity(0); diff --git a/googleapis-raw/src/api/distribution.rs b/googleapis-raw/src/api/distribution.rs index 625bca3..e9a29f0 100644 --- a/googleapis-raw/src/api/distribution.rs +++ b/googleapis-raw/src/api/distribution.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -1451,9 +1451,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x126\n\x0battachments\x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\ \x0battachmentsBq\n\x0ecom.google.apiB\x11DistributionProtoP\x01ZCgoogle\ .golang.org/genproto/googleapis/api/distribution;distribution\xa2\x02\ - \x04GAPIJ\x81D\n\x07\x12\x05\x0f\0\xd3\x01\x01\n\xbe\x04\n\x01\x0c\x12\ - \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ - censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x04GAPIJ\x85D\n\x07\x12\x05\x0e\0\xd4\x01\x01\n\xbc\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Lic\ + ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ @@ -1464,13 +1464,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0#\n\ - \t\n\x02\x03\x01\x12\x03\x14\0)\n\x08\n\x01\x08\x12\x03\x16\0Z\n\t\n\x02\ - \x08\x0b\x12\x03\x16\0Z\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\ - \x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\02\n\t\n\x02\x08\x08\x12\ - \x03\x18\02\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\x12\x03\x19\ - \0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\x1a\0\"\n\xaa\ - \x06\n\x02\x04\0\x12\x05*\0\xd3\x01\x01\x1a\x9c\x06\x20`Distribution`\ + \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0#\n\t\ + \n\x02\x03\x01\x12\x03\x13\0)\n\x08\n\x01\x08\x12\x03\x15\0Z\n\t\n\x02\ + \x08\x0b\x12\x03\x15\0Z\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ + \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\02\n\t\n\x02\x08\x08\x12\ + \x03\x17\02\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ + \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\xaa\ + \x06\n\x02\x04\0\x12\x05)\0\xd4\x01\x01\x1a\x9c\x06\x20`Distribution`\ \x20contains\x20summary\x20statistics\x20for\x20a\x20population\x20of\ \x20values.\x20It\n\x20optionally\x20contains\x20a\x20histogram\x20repre\ senting\x20the\x20distribution\x20of\x20those\x20values\n\x20across\x20a\ @@ -1487,17 +1487,17 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20idea\x20to\x20include\n\x20non-finite\x20values\x20(infinities\x20or\ \x20NaNs)\x20in\x20the\x20population\x20of\x20values,\x20as\x20this\n\ \x20will\x20render\x20the\x20`mean`\x20and\x20`sum_of_squared_deviation`\ - \x20fields\x20meaningless.\n\n\n\n\x03\x04\0\x01\x12\x03*\x08\x14\n3\n\ - \x04\x04\0\x03\0\x12\x04,\x022\x03\x1a%\x20The\x20range\x20of\x20the\x20\ - population\x20values.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03,\n\x0f\n6\n\ - \x06\x04\0\x03\0\x02\0\x12\x03.\x04\x13\x1a'\x20The\x20minimum\x20of\x20\ + \x20fields\x20meaningless.\n\n\n\n\x03\x04\0\x01\x12\x03)\x08\x14\n3\n\ + \x04\x04\0\x03\0\x12\x04+\x021\x03\x1a%\x20The\x20range\x20of\x20the\x20\ + population\x20values.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03+\n\x0f\n6\n\ + \x06\x04\0\x03\0\x02\0\x12\x03-\x04\x13\x1a'\x20The\x20minimum\x20of\x20\ the\x20population\x20values.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03\ - .\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03.\x0b\x0e\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x03\x12\x03.\x11\x12\n6\n\x06\x04\0\x03\0\x02\x01\x12\ - \x031\x04\x13\x1a'\x20The\x20maximum\x20of\x20the\x20population\x20value\ - s.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x031\x04\n\n\x0e\n\x07\x04\ - \0\x03\0\x02\x01\x01\x12\x031\x0b\x0e\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x031\x11\x12\n\xf3\x07\n\x04\x04\0\x03\x01\x12\x05C\x02\x87\x01\ + -\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03-\x0b\x0e\n\x0e\n\x07\ + \x04\0\x03\0\x02\0\x03\x12\x03-\x11\x12\n6\n\x06\x04\0\x03\0\x02\x01\x12\ + \x030\x04\x13\x1a'\x20The\x20maximum\x20of\x20the\x20population\x20value\ + s.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x030\x04\n\n\x0e\n\x07\x04\ + \0\x03\0\x02\x01\x01\x12\x030\x0b\x0e\n\x0e\n\x07\x04\0\x03\0\x02\x01\ + \x03\x12\x030\x11\x12\n\xf3\x07\n\x04\x04\0\x03\x01\x12\x05B\x02\x88\x01\ \x03\x1a\xe3\x07\x20`BucketOptions`\x20describes\x20the\x20bucket\x20bou\ ndaries\x20used\x20to\x20create\x20a\x20histogram\n\x20for\x20the\x20dis\ tribution.\x20The\x20buckets\x20can\x20be\x20in\x20a\x20linear\x20sequen\ @@ -1520,31 +1520,31 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ty\x20and\x20the\n\x20upper\x20bound\x20of\x20the\x20overflow\x20bucket\ \x20is\x20+infinity.\x20The\x20finite\x20buckets\x20are\n\x20so-called\ \x20because\x20both\x20bounds\x20are\x20finite.\n\n\x0c\n\x05\x04\0\x03\ - \x01\x01\x12\x03C\n\x17\n\xae\x03\n\x06\x04\0\x03\x01\x03\0\x12\x04M\x04\ - V\x05\x1a\x9d\x03\x20Specifies\x20a\x20linear\x20sequence\x20of\x20bucke\ + \x01\x01\x12\x03B\n\x17\n\xaf\x03\n\x06\x04\0\x03\x01\x03\0\x12\x04M\x04\ + V\x05\x1a\x9e\x03\x20Specifies\x20a\x20linear\x20sequence\x20of\x20bucke\ ts\x20that\x20all\x20have\x20the\x20same\x20width\n\x20(except\x20overfl\ ow\x20and\x20underflow).\x20Each\x20bucket\x20represents\x20a\x20constan\ t\n\x20absolute\x20uncertainty\x20on\x20the\x20specific\x20value\x20in\ \x20the\x20bucket.\n\n\x20There\x20are\x20`num_finite_buckets\x20+\x202`\ \x20(=\x20N)\x20buckets.\x20Bucket\x20`i`\x20has\x20the\n\x20following\ \x20boundaries:\n\n\x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\ - \x20N-1):\x20\x20\x20\x20\x20offset\x20+\x20(width\x20*\x20i).\n\x20\x20\ - \x20\x20Lower\x20bound\x20(1\x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\ - \x20\x20offset\x20+\x20(width\x20*\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\ - \0\x03\x01\x03\0\x01\x12\x03M\x0c\x12\n*\n\x08\x04\0\x03\x01\x03\0\x02\0\ - \x12\x03O\x06#\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\ - \t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03O\x06\x0b\n\x10\n\t\x04\0\x03\ - \x01\x03\0\x02\0\x01\x12\x03O\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ - \0\x03\x12\x03O!\"\n*\n\x08\x04\0\x03\x01\x03\0\x02\x01\x12\x03R\x06\x17\ - \x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\ - \x01\x03\0\x02\x01\x05\x12\x03R\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\0\ - \x02\x01\x01\x12\x03R\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x03\ + \x20N-1):\x20\x20\x20\x20\x20offset\x20+\x20(width\x20*\x20i).\n\n\x20\ + \x20\x20\x20Lower\x20bound\x20(1\x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\ + \x20\x20\x20offset\x20+\x20(width\x20*\x20(i\x20-\x201)).\n\n\x0e\n\x07\ + \x04\0\x03\x01\x03\0\x01\x12\x03M\x0c\x12\n*\n\x08\x04\0\x03\x01\x03\0\ + \x02\0\x12\x03O\x06#\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\ + \x10\n\t\x04\0\x03\x01\x03\0\x02\0\x05\x12\x03O\x06\x0b\n\x10\n\t\x04\0\ + \x03\x01\x03\0\x02\0\x01\x12\x03O\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\0\ + \x02\0\x03\x12\x03O!\"\n*\n\x08\x04\0\x03\x01\x03\0\x02\x01\x12\x03R\x06\ + \x17\x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\ + \x03\x01\x03\0\x02\x01\x05\x12\x03R\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\ + \0\x02\x01\x01\x12\x03R\r\x12\n\x10\n\t\x04\0\x03\x01\x03\0\x02\x01\x03\ \x12\x03R\x15\x16\n3\n\x08\x04\0\x03\x01\x03\0\x02\x02\x12\x03U\x06\x18\ \x1a\"\x20Lower\x20bound\x20of\x20the\x20first\x20bucket.\n\n\x10\n\t\ \x04\0\x03\x01\x03\0\x02\x02\x05\x12\x03U\x06\x0c\n\x10\n\t\x04\0\x03\ \x01\x03\0\x02\x02\x01\x12\x03U\r\x13\n\x10\n\t\x04\0\x03\x01\x03\0\x02\ - \x02\x03\x12\x03U\x16\x17\n\xca\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04a\ - \x04j\x05\x1a\xb9\x03\x20Specifies\x20an\x20exponential\x20sequence\x20o\ + \x02\x03\x12\x03U\x16\x17\n\xcb\x03\n\x06\x04\0\x03\x01\x03\x01\x12\x04b\ + \x04k\x05\x1a\xba\x03\x20Specifies\x20an\x20exponential\x20sequence\x20o\ f\x20buckets\x20that\x20have\x20a\x20width\x20that\x20is\n\x20proportion\ al\x20to\x20the\x20value\x20of\x20the\x20lower\x20bound.\x20Each\x20buck\ et\x20represents\x20a\n\x20constant\x20relative\x20uncertainty\x20on\x20\ @@ -1552,143 +1552,143 @@ static file_descriptor_proto_data: &'static [u8] = b"\ um_finite_buckets\x20+\x202`\x20(=\x20N)\x20buckets.\x20Bucket\x20`i`\ \x20has\x20the\n\x20following\x20boundaries:\n\n\x20\x20\x20\x20Upper\ \x20bound\x20(0\x20<=\x20i\x20<\x20N-1):\x20\x20\x20\x20\x20scale\x20*\ - \x20(growth_factor\x20^\x20i).\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20\ - <=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\x20\x20scale\x20*\x20(growth_fac\ - tor\x20^\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\0\x03\x01\x03\x01\x01\x12\ - \x03a\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03c\x06#\x1a\x19\ - \x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\x03\ - \x01\x02\0\x05\x12\x03c\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\ - \x01\x12\x03c\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\x03c\ - !\"\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x01\x12\x03f\x06\x1f\x1a\x19\x20M\ - ust\x20be\x20greater\x20than\x201.\n\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ - \x01\x05\x12\x03f\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x01\ - \x12\x03f\r\x1a\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\x03f\x1d\ - \x1e\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x02\x12\x03i\x06\x17\x1a\x19\x20\ - Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\x03\x01\ - \x02\x02\x05\x12\x03i\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\ - \x01\x12\x03i\r\x12\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\x03\x12\x03i\ - \x15\x16\n\xd1\x03\n\x06\x04\0\x03\x01\x03\x02\x12\x04w\x04z\x05\x1a\xc0\ - \x03\x20Specifies\x20a\x20set\x20of\x20buckets\x20with\x20arbitrary\x20w\ - idths.\n\n\x20There\x20are\x20`size(bounds)\x20+\x201`\x20(=\x20N)\x20bu\ - ckets.\x20Bucket\x20`i`\x20has\x20the\x20following\n\x20boundaries:\n\n\ - \x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\x20N-1):\x20\x20\ - \x20\x20\x20bounds[i]\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20<=\x20i\ - \x20<\x20N);\x20\x20\x20\x20\x20\x20\x20bounds[i\x20-\x201]\n\n\x20The\ - \x20`bounds`\x20field\x20must\x20contain\x20at\x20least\x20one\x20elemen\ - t.\x20If\x20`bounds`\x20has\n\x20only\x20one\x20element,\x20then\x20ther\ - e\x20are\x20no\x20finite\x20buckets,\x20and\x20that\x20single\n\x20eleme\ - nt\x20is\x20the\x20common\x20boundary\x20of\x20the\x20overflow\x20and\ - \x20underflow\x20buckets.\n\n\x0e\n\x07\x04\0\x03\x01\x03\x02\x01\x12\ - \x03w\x0c\x14\n?\n\x08\x04\0\x03\x01\x03\x02\x02\0\x12\x03y\x06!\x1a.\ - \x20The\x20values\x20must\x20be\x20monotonically\x20increasing.\n\n\x10\ - \n\t\x04\0\x03\x01\x03\x02\x02\0\x04\x12\x03y\x06\x0e\n\x10\n\t\x04\0\ - \x03\x01\x03\x02\x02\0\x05\x12\x03y\x0f\x15\n\x10\n\t\x04\0\x03\x01\x03\ - \x02\x02\0\x01\x12\x03y\x16\x1c\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\0\ - \x03\x12\x03y\x1f\x20\nA\n\x06\x04\0\x03\x01\x08\0\x12\x05}\x04\x86\x01\ - \x05\x1a0\x20Exactly\x20one\x20of\x20these\x20three\x20fields\x20must\ - \x20be\x20set.\n\n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\x12\x03}\n\x11\n#\n\ - \x06\x04\0\x03\x01\x02\0\x12\x03\x7f\x06\x20\x1a\x14\x20The\x20linear\ - \x20bucket.\n\n\x0e\n\x07\x04\0\x03\x01\x02\0\x06\x12\x03\x7f\x06\x0c\n\ - \x0e\n\x07\x04\0\x03\x01\x02\0\x01\x12\x03\x7f\r\x1b\n\x0e\n\x07\x04\0\ - \x03\x01\x02\0\x03\x12\x03\x7f\x1e\x1f\n*\n\x06\x04\0\x03\x01\x02\x01\ - \x12\x04\x82\x01\x06*\x1a\x1a\x20The\x20exponential\x20buckets.\n\n\x0f\ - \n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x82\x01\x06\x11\n\x0f\n\x07\x04\ - \0\x03\x01\x02\x01\x01\x12\x04\x82\x01\x12%\n\x0f\n\x07\x04\0\x03\x01\ - \x02\x01\x03\x12\x04\x82\x01()\n'\n\x06\x04\0\x03\x01\x02\x02\x12\x04\ - \x85\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\n\x07\x04\0\ - \x03\x01\x02\x02\x06\x12\x04\x85\x01\x06\x0e\n\x0f\n\x07\x04\0\x03\x01\ - \x02\x02\x01\x12\x04\x85\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\x02\x02\ - \x03\x12\x04\x85\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\x8e\x01\ - \x02\xa2\x01\x03\x1a\xd8\x02\x20Exemplars\x20are\x20example\x20points\ - \x20that\x20may\x20be\x20used\x20to\x20annotate\x20aggregated\n\x20distr\ - ibution\x20values.\x20They\x20are\x20metadata\x20that\x20gives\x20inform\ - ation\x20about\x20a\n\x20particular\x20value\x20added\x20to\x20a\x20Dist\ - ribution\x20bucket,\x20such\x20as\x20a\x20trace\x20ID\x20that\n\x20was\ - \x20active\x20when\x20a\x20value\x20was\x20added.\x20They\x20may\x20cont\ - ain\x20further\x20information,\n\x20such\x20as\x20a\x20example\x20values\ - \x20and\x20timestamps,\x20origin,\x20etc.\n\n\r\n\x05\x04\0\x03\x02\x01\ - \x12\x04\x8e\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\x91\x01\x04\ - \x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20This\x20value\ - \x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\x20belongs.\ - \n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x91\x01\x04\n\n\x0f\n\x07\ - \x04\0\x03\x02\x02\0\x01\x12\x04\x91\x01\x0b\x10\n\x0f\n\x07\x04\0\x03\ - \x02\x02\0\x03\x12\x04\x91\x01\x13\x14\nE\n\x06\x04\0\x03\x02\x02\x01\ - \x12\x04\x94\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\x20time\ - \x20of\x20the\x20above\x20value.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x06\ - \x12\x04\x94\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\x12\x04\ - \x94\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x94\x01*+\n\ - \xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa1\x01\x041\x1a\xa3\x03\ - \x20Contextual\x20information\x20about\x20the\x20example\x20value.\x20Ex\ - amples\x20are:\n\n\x20\x20\x20Trace:\x20type.googleapis.com/google.monit\ - oring.v3.SpanContext\n\n\x20\x20\x20Literal\x20string:\x20type.googleapi\ - s.com/google.protobuf.StringValue\n\n\x20\x20\x20Labels\x20dropped\x20du\ - ring\x20aggregation:\n\x20\x20\x20\x20\x20type.googleapis.com/google.mon\ - itoring.v3.DroppedLabels\n\n\x20There\x20may\x20be\x20only\x20a\x20singl\ - e\x20attachment\x20of\x20any\x20given\x20message\x20type\x20in\x20a\n\ - \x20single\x20exemplar,\x20and\x20this\x20is\x20enforced\x20by\x20the\ - \x20system.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x04\x12\x04\xa1\x01\x04\ - \x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa1\x01\r\x20\n\x0f\n\ - \x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa1\x01!,\n\x0f\n\x07\x04\0\x03\ - \x02\x02\x02\x03\x12\x04\xa1\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\x04\ - \xa7\x01\x02\x12\x1a\x9c\x01\x20The\x20number\x20of\x20values\x20in\x20t\ - he\x20population.\x20Must\x20be\x20non-negative.\x20This\x20value\n\x20m\ - ust\x20equal\x20the\x20sum\x20of\x20the\x20values\x20in\x20`bucket_count\ - s`\x20if\x20a\x20histogram\x20is\n\x20provided.\n\n\r\n\x05\x04\0\x02\0\ - \x05\x12\x04\xa7\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa7\x01\ - \x08\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xa7\x01\x10\x11\nv\n\x04\x04\0\ - \x02\x01\x12\x04\xab\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\x20of\ - \x20the\x20values\x20in\x20the\x20population.\x20If\x20`count`\x20is\x20\ - zero\n\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\x04\0\ - \x02\x01\x05\x12\x04\xab\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\ - \xab\x01\t\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xab\x01\x10\x11\n\xd8\ - \x02\n\x04\x04\0\x02\x02\x12\x04\xb6\x01\x02&\x1a\xc9\x02\x20The\x20sum\ - \x20of\x20squared\x20deviations\x20from\x20the\x20mean\x20of\x20the\x20v\ - alues\x20in\x20the\n\x20population.\x20For\x20values\x20x_i\x20this\x20i\ - s:\n\n\x20\x20\x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\x20Knuth\ - ,\x20\"The\x20Art\x20of\x20Computer\x20Programming\",\x20Vol.\x202,\x20p\ - age\x20323,\x203rd\x20edition\n\x20describes\x20Welford's\x20method\x20f\ - or\x20accumulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\x20If\x20`co\ - unt`\x20is\x20zero\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\ - \n\x05\x04\0\x02\x02\x05\x12\x04\xb6\x01\x02\x08\n\r\n\x05\x04\0\x02\x02\ - \x01\x12\x04\xb6\x01\t!\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\xb6\x01$%\n\ - \x81\x01\n\x04\x04\0\x02\x03\x12\x04\xba\x01\x02\x12\x1as\x20If\x20speci\ - fied,\x20contains\x20the\x20range\x20of\x20the\x20population\x20values.\ - \x20The\x20field\n\x20must\x20not\x20be\x20present\x20if\x20the\x20`coun\ - t`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\xba\x01\x02\x07\ - \n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xba\x01\x08\r\n\r\n\x05\x04\0\x02\ - \x03\x03\x12\x04\xba\x01\x10\x11\n\x81\x01\n\x04\x04\0\x02\x04\x12\x04\ - \xbe\x01\x02#\x1as\x20Defines\x20the\x20histogram\x20bucket\x20boundarie\ - s.\x20If\x20the\x20distribution\x20does\x20not\n\x20contain\x20a\x20hist\ - ogram,\x20then\x20omit\x20this\x20field.\n\n\r\n\x05\x04\0\x02\x04\x06\ - \x12\x04\xbe\x01\x02\x0f\n\r\n\x05\x04\0\x02\x04\x01\x12\x04\xbe\x01\x10\ - \x1e\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xbe\x01!\"\n\xe7\x06\n\x04\x04\ - \0\x02\x05\x12\x04\xcf\x01\x02#\x1a\xd8\x06\x20The\x20number\x20of\x20va\ - lues\x20in\x20each\x20bucket\x20of\x20the\x20histogram,\x20as\x20describ\ - ed\x20in\n\x20`bucket_options`.\x20If\x20the\x20distribution\x20does\x20\ - not\x20have\x20a\x20histogram,\x20then\x20omit\n\x20this\x20field.\x20If\ - \x20there\x20is\x20a\x20histogram,\x20then\x20the\x20sum\x20of\x20the\ - \x20values\x20in\n\x20`bucket_counts`\x20must\x20equal\x20the\x20value\ - \x20in\x20the\x20`count`\x20field\x20of\x20the\n\x20distribution.\n\n\ - \x20If\x20present,\x20`bucket_counts`\x20should\x20contain\x20N\x20value\ - s,\x20where\x20N\x20is\x20the\x20number\n\x20of\x20buckets\x20specified\ - \x20in\x20`bucket_options`.\x20If\x20you\x20supply\x20fewer\x20than\x20N\ - \n\x20values,\x20the\x20remaining\x20values\x20are\x20assumed\x20to\x20b\ - e\x200.\n\n\x20The\x20order\x20of\x20the\x20values\x20in\x20`bucket_coun\ - ts`\x20follows\x20the\x20bucket\x20numbering\n\x20schemes\x20described\ - \x20for\x20the\x20three\x20bucket\x20types.\x20The\x20first\x20value\x20\ - must\x20be\x20the\n\x20count\x20for\x20the\x20underflow\x20bucket\x20(nu\ - mber\x200).\x20The\x20next\x20N-2\x20values\x20are\x20the\n\x20counts\ - \x20for\x20the\x20finite\x20buckets\x20(number\x201\x20through\x20N-2).\ - \x20The\x20N'th\x20value\x20in\n\x20`bucket_counts`\x20is\x20the\x20coun\ - t\x20for\x20the\x20overflow\x20bucket\x20(number\x20N-1).\n\n\r\n\x05\ - \x04\0\x02\x05\x04\x12\x04\xcf\x01\x02\n\n\r\n\x05\x04\0\x02\x05\x05\x12\ - \x04\xcf\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xcf\x01\x11\x1e\ - \n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xcf\x01!\"\n=\n\x04\x04\0\x02\x06\ - \x12\x04\xd2\x01\x02#\x1a/\x20Must\x20be\x20in\x20increasing\x20order\ - \x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04\xd2\ - \x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd2\x01\x0b\x13\n\r\n\x05\ - \x04\0\x02\x06\x01\x12\x04\xd2\x01\x14\x1d\n\r\n\x05\x04\0\x02\x06\x03\ - \x12\x04\xd2\x01\x20\"b\x06proto3\ + \x20(growth_factor\x20^\x20i).\n\n\x20\x20\x20\x20Lower\x20bound\x20(1\ + \x20<=\x20i\x20<\x20N):\x20\x20\x20\x20\x20\x20\x20scale\x20*\x20(growth\ + _factor\x20^\x20(i\x20-\x201)).\n\n\x0e\n\x07\x04\0\x03\x01\x03\x01\x01\ + \x12\x03b\x0c\x17\n*\n\x08\x04\0\x03\x01\x03\x01\x02\0\x12\x03d\x06#\x1a\ + \x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\x01\ + \x03\x01\x02\0\x05\x12\x03d\x06\x0b\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ + \0\x01\x12\x03d\x0c\x1e\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\0\x03\x12\ + \x03d!\"\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x01\x12\x03g\x06\x1f\x1a\x19\ + \x20Must\x20be\x20greater\x20than\x201.\n\n\x10\n\t\x04\0\x03\x01\x03\ + \x01\x02\x01\x05\x12\x03g\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\ + \x01\x01\x12\x03g\r\x1a\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x01\x03\x12\ + \x03g\x1d\x1e\n*\n\x08\x04\0\x03\x01\x03\x01\x02\x02\x12\x03j\x06\x17\ + \x1a\x19\x20Must\x20be\x20greater\x20than\x200.\n\n\x10\n\t\x04\0\x03\ + \x01\x03\x01\x02\x02\x05\x12\x03j\x06\x0c\n\x10\n\t\x04\0\x03\x01\x03\ + \x01\x02\x02\x01\x12\x03j\r\x12\n\x10\n\t\x04\0\x03\x01\x03\x01\x02\x02\ + \x03\x12\x03j\x15\x16\n\xd1\x03\n\x06\x04\0\x03\x01\x03\x02\x12\x04x\x04\ + {\x05\x1a\xc0\x03\x20Specifies\x20a\x20set\x20of\x20buckets\x20with\x20a\ + rbitrary\x20widths.\n\n\x20There\x20are\x20`size(bounds)\x20+\x201`\x20(\ + =\x20N)\x20buckets.\x20Bucket\x20`i`\x20has\x20the\x20following\n\x20bou\ + ndaries:\n\n\x20\x20\x20\x20Upper\x20bound\x20(0\x20<=\x20i\x20<\x20N-1)\ + :\x20\x20\x20\x20\x20bounds[i]\n\x20\x20\x20\x20Lower\x20bound\x20(1\x20\ + <=\x20i\x20<\x20N);\x20\x20\x20\x20\x20\x20\x20bounds[i\x20-\x201]\n\n\ + \x20The\x20`bounds`\x20field\x20must\x20contain\x20at\x20least\x20one\ + \x20element.\x20If\x20`bounds`\x20has\n\x20only\x20one\x20element,\x20th\ + en\x20there\x20are\x20no\x20finite\x20buckets,\x20and\x20that\x20single\ + \n\x20element\x20is\x20the\x20common\x20boundary\x20of\x20the\x20overflo\ + w\x20and\x20underflow\x20buckets.\n\n\x0e\n\x07\x04\0\x03\x01\x03\x02\ + \x01\x12\x03x\x0c\x14\n?\n\x08\x04\0\x03\x01\x03\x02\x02\0\x12\x03z\x06!\ + \x1a.\x20The\x20values\x20must\x20be\x20monotonically\x20increasing.\n\n\ + \x10\n\t\x04\0\x03\x01\x03\x02\x02\0\x04\x12\x03z\x06\x0e\n\x10\n\t\x04\ + \0\x03\x01\x03\x02\x02\0\x05\x12\x03z\x0f\x15\n\x10\n\t\x04\0\x03\x01\ + \x03\x02\x02\0\x01\x12\x03z\x16\x1c\n\x10\n\t\x04\0\x03\x01\x03\x02\x02\ + \0\x03\x12\x03z\x1f\x20\nA\n\x06\x04\0\x03\x01\x08\0\x12\x05~\x04\x87\ + \x01\x05\x1a0\x20Exactly\x20one\x20of\x20these\x20three\x20fields\x20mus\ + t\x20be\x20set.\n\n\x0e\n\x07\x04\0\x03\x01\x08\0\x01\x12\x03~\n\x11\n$\ + \n\x06\x04\0\x03\x01\x02\0\x12\x04\x80\x01\x06\x20\x1a\x14\x20The\x20lin\ + ear\x20bucket.\n\n\x0f\n\x07\x04\0\x03\x01\x02\0\x06\x12\x04\x80\x01\x06\ + \x0c\n\x0f\n\x07\x04\0\x03\x01\x02\0\x01\x12\x04\x80\x01\r\x1b\n\x0f\n\ + \x07\x04\0\x03\x01\x02\0\x03\x12\x04\x80\x01\x1e\x1f\n*\n\x06\x04\0\x03\ + \x01\x02\x01\x12\x04\x83\x01\x06*\x1a\x1a\x20The\x20exponential\x20bucke\ + ts.\n\n\x0f\n\x07\x04\0\x03\x01\x02\x01\x06\x12\x04\x83\x01\x06\x11\n\ + \x0f\n\x07\x04\0\x03\x01\x02\x01\x01\x12\x04\x83\x01\x12%\n\x0f\n\x07\ + \x04\0\x03\x01\x02\x01\x03\x12\x04\x83\x01()\n'\n\x06\x04\0\x03\x01\x02\ + \x02\x12\x04\x86\x01\x06$\x1a\x17\x20The\x20explicit\x20buckets.\n\n\x0f\ + \n\x07\x04\0\x03\x01\x02\x02\x06\x12\x04\x86\x01\x06\x0e\n\x0f\n\x07\x04\ + \0\x03\x01\x02\x02\x01\x12\x04\x86\x01\x0f\x1f\n\x0f\n\x07\x04\0\x03\x01\ + \x02\x02\x03\x12\x04\x86\x01\"#\n\xe9\x02\n\x04\x04\0\x03\x02\x12\x06\ + \x8f\x01\x02\xa3\x01\x03\x1a\xd8\x02\x20Exemplars\x20are\x20example\x20p\ + oints\x20that\x20may\x20be\x20used\x20to\x20annotate\x20aggregated\n\x20\ + distribution\x20values.\x20They\x20are\x20metadata\x20that\x20gives\x20i\ + nformation\x20about\x20a\n\x20particular\x20value\x20added\x20to\x20a\ + \x20Distribution\x20bucket,\x20such\x20as\x20a\x20trace\x20ID\x20that\n\ + \x20was\x20active\x20when\x20a\x20value\x20was\x20added.\x20They\x20may\ + \x20contain\x20further\x20information,\n\x20such\x20as\x20a\x20example\ + \x20values\x20and\x20timestamps,\x20origin,\x20etc.\n\n\r\n\x05\x04\0\ + \x03\x02\x01\x12\x04\x8f\x01\n\x12\nk\n\x06\x04\0\x03\x02\x02\0\x12\x04\ + \x92\x01\x04\x15\x1a[\x20Value\x20of\x20the\x20exemplar\x20point.\x20Thi\ + s\x20value\x20determines\x20to\x20which\x20bucket\x20the\n\x20exemplar\ + \x20belongs.\n\n\x0f\n\x07\x04\0\x03\x02\x02\0\x05\x12\x04\x92\x01\x04\n\ + \n\x0f\n\x07\x04\0\x03\x02\x02\0\x01\x12\x04\x92\x01\x0b\x10\n\x0f\n\x07\ + \x04\0\x03\x02\x02\0\x03\x12\x04\x92\x01\x13\x14\nE\n\x06\x04\0\x03\x02\ + \x02\x01\x12\x04\x95\x01\x04,\x1a5\x20The\x20observation\x20(sampling)\ + \x20time\x20of\x20the\x20above\x20value.\n\n\x0f\n\x07\x04\0\x03\x02\x02\ + \x01\x06\x12\x04\x95\x01\x04\x1d\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x01\ + \x12\x04\x95\x01\x1e'\n\x0f\n\x07\x04\0\x03\x02\x02\x01\x03\x12\x04\x95\ + \x01*+\n\xb4\x03\n\x06\x04\0\x03\x02\x02\x02\x12\x04\xa2\x01\x041\x1a\ + \xa3\x03\x20Contextual\x20information\x20about\x20the\x20example\x20valu\ + e.\x20Examples\x20are:\n\n\x20\x20\x20Trace:\x20type.googleapis.com/goog\ + le.monitoring.v3.SpanContext\n\n\x20\x20\x20Literal\x20string:\x20type.g\ + oogleapis.com/google.protobuf.StringValue\n\n\x20\x20\x20Labels\x20dropp\ + ed\x20during\x20aggregation:\n\x20\x20\x20\x20\x20type.googleapis.com/go\ + ogle.monitoring.v3.DroppedLabels\n\n\x20There\x20may\x20be\x20only\x20a\ + \x20single\x20attachment\x20of\x20any\x20given\x20message\x20type\x20in\ + \x20a\n\x20single\x20exemplar,\x20and\x20this\x20is\x20enforced\x20by\ + \x20the\x20system.\n\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x04\x12\x04\xa2\ + \x01\x04\x0c\n\x0f\n\x07\x04\0\x03\x02\x02\x02\x06\x12\x04\xa2\x01\r\x20\ + \n\x0f\n\x07\x04\0\x03\x02\x02\x02\x01\x12\x04\xa2\x01!,\n\x0f\n\x07\x04\ + \0\x03\x02\x02\x02\x03\x12\x04\xa2\x01/0\n\xab\x01\n\x04\x04\0\x02\0\x12\ + \x04\xa8\x01\x02\x12\x1a\x9c\x01\x20The\x20number\x20of\x20values\x20in\ + \x20the\x20population.\x20Must\x20be\x20non-negative.\x20This\x20value\n\ + \x20must\x20equal\x20the\x20sum\x20of\x20the\x20values\x20in\x20`bucket_\ + counts`\x20if\x20a\x20histogram\x20is\n\x20provided.\n\n\r\n\x05\x04\0\ + \x02\0\x05\x12\x04\xa8\x01\x02\x07\n\r\n\x05\x04\0\x02\0\x01\x12\x04\xa8\ + \x01\x08\r\n\r\n\x05\x04\0\x02\0\x03\x12\x04\xa8\x01\x10\x11\nv\n\x04\ + \x04\0\x02\x01\x12\x04\xac\x01\x02\x12\x1ah\x20The\x20arithmetic\x20mean\ + \x20of\x20the\x20values\x20in\x20the\x20population.\x20If\x20`count`\x20\ + is\x20zero\n\x20then\x20this\x20field\x20must\x20be\x20zero.\n\n\r\n\x05\ + \x04\0\x02\x01\x05\x12\x04\xac\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\ + \x12\x04\xac\x01\t\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\xac\x01\x10\x11\ + \n\xd8\x02\n\x04\x04\0\x02\x02\x12\x04\xb7\x01\x02&\x1a\xc9\x02\x20The\ + \x20sum\x20of\x20squared\x20deviations\x20from\x20the\x20mean\x20of\x20t\ + he\x20values\x20in\x20the\n\x20population.\x20For\x20values\x20x_i\x20th\ + is\x20is:\n\n\x20\x20\x20\x20\x20Sum[i=1..n]((x_i\x20-\x20mean)^2)\n\n\ + \x20Knuth,\x20\"The\x20Art\x20of\x20Computer\x20Programming\",\x20Vol.\ + \x202,\x20page\x20232,\x203rd\x20edition\n\x20describes\x20Welford's\x20\ + method\x20for\x20accumulating\x20this\x20sum\x20in\x20one\x20pass.\n\n\ + \x20If\x20`count`\x20is\x20zero\x20then\x20this\x20field\x20must\x20be\ + \x20zero.\n\n\r\n\x05\x04\0\x02\x02\x05\x12\x04\xb7\x01\x02\x08\n\r\n\ + \x05\x04\0\x02\x02\x01\x12\x04\xb7\x01\t!\n\r\n\x05\x04\0\x02\x02\x03\ + \x12\x04\xb7\x01$%\n\x81\x01\n\x04\x04\0\x02\x03\x12\x04\xbb\x01\x02\x12\ + \x1as\x20If\x20specified,\x20contains\x20the\x20range\x20of\x20the\x20po\ + pulation\x20values.\x20The\x20field\n\x20must\x20not\x20be\x20present\ + \x20if\x20the\x20`count`\x20is\x20zero.\n\n\r\n\x05\x04\0\x02\x03\x06\ + \x12\x04\xbb\x01\x02\x07\n\r\n\x05\x04\0\x02\x03\x01\x12\x04\xbb\x01\x08\ + \r\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\xbb\x01\x10\x11\n\x81\x01\n\x04\ + \x04\0\x02\x04\x12\x04\xbf\x01\x02#\x1as\x20Defines\x20the\x20histogram\ + \x20bucket\x20boundaries.\x20If\x20the\x20distribution\x20does\x20not\n\ + \x20contain\x20a\x20histogram,\x20then\x20omit\x20this\x20field.\n\n\r\n\ + \x05\x04\0\x02\x04\x06\x12\x04\xbf\x01\x02\x0f\n\r\n\x05\x04\0\x02\x04\ + \x01\x12\x04\xbf\x01\x10\x1e\n\r\n\x05\x04\0\x02\x04\x03\x12\x04\xbf\x01\ + !\"\n\xe7\x06\n\x04\x04\0\x02\x05\x12\x04\xd0\x01\x02#\x1a\xd8\x06\x20Th\ + e\x20number\x20of\x20values\x20in\x20each\x20bucket\x20of\x20the\x20hist\ + ogram,\x20as\x20described\x20in\n\x20`bucket_options`.\x20If\x20the\x20d\ + istribution\x20does\x20not\x20have\x20a\x20histogram,\x20then\x20omit\n\ + \x20this\x20field.\x20If\x20there\x20is\x20a\x20histogram,\x20then\x20th\ + e\x20sum\x20of\x20the\x20values\x20in\n\x20`bucket_counts`\x20must\x20eq\ + ual\x20the\x20value\x20in\x20the\x20`count`\x20field\x20of\x20the\n\x20d\ + istribution.\n\n\x20If\x20present,\x20`bucket_counts`\x20should\x20conta\ + in\x20N\x20values,\x20where\x20N\x20is\x20the\x20number\n\x20of\x20bucke\ + ts\x20specified\x20in\x20`bucket_options`.\x20If\x20you\x20supply\x20few\ + er\x20than\x20N\n\x20values,\x20the\x20remaining\x20values\x20are\x20ass\ + umed\x20to\x20be\x200.\n\n\x20The\x20order\x20of\x20the\x20values\x20in\ + \x20`bucket_counts`\x20follows\x20the\x20bucket\x20numbering\n\x20scheme\ + s\x20described\x20for\x20the\x20three\x20bucket\x20types.\x20The\x20firs\ + t\x20value\x20must\x20be\x20the\n\x20count\x20for\x20the\x20underflow\ + \x20bucket\x20(number\x200).\x20The\x20next\x20N-2\x20values\x20are\x20t\ + he\n\x20counts\x20for\x20the\x20finite\x20buckets\x20(number\x201\x20thr\ + ough\x20N-2).\x20The\x20N'th\x20value\x20in\n\x20`bucket_counts`\x20is\ + \x20the\x20count\x20for\x20the\x20overflow\x20bucket\x20(number\x20N-1).\ + \n\n\r\n\x05\x04\0\x02\x05\x04\x12\x04\xd0\x01\x02\n\n\r\n\x05\x04\0\x02\ + \x05\x05\x12\x04\xd0\x01\x0b\x10\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xd0\ + \x01\x11\x1e\n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xd0\x01!\"\n=\n\x04\x04\ + \0\x02\x06\x12\x04\xd3\x01\x02#\x1a/\x20Must\x20be\x20in\x20increasing\ + \x20order\x20of\x20`value`\x20field.\n\n\r\n\x05\x04\0\x02\x06\x04\x12\ + \x04\xd3\x01\x02\n\n\r\n\x05\x04\0\x02\x06\x06\x12\x04\xd3\x01\x0b\x13\n\ + \r\n\x05\x04\0\x02\x06\x01\x12\x04\xd3\x01\x14\x1d\n\r\n\x05\x04\0\x02\ + \x06\x03\x12\x04\xd3\x01\x20\"b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/documentation.rs b/googleapis-raw/src/api/documentation.rs index c6f7010..c2da499 100644 --- a/googleapis-raw/src/api/documentation.rs +++ b/googleapis-raw/src/api/documentation.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -29,8 +29,10 @@ const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; #[derive(PartialEq,Clone,Default,Debug)] pub struct Documentation { // message fields - /// A short summary of what the service does. Can only be provided by - /// plain text. + /// A short description of what the service does. The summary must be plain + /// text. It becomes the overview of the service displayed in Google Cloud + /// Console. + /// NOTE: This field is equivalent to the standard field `description`. // @@protoc_insertion_point(field:google.api.Documentation.summary) pub summary: ::std::string::String, /// The top level pages for the documentation set. @@ -44,6 +46,12 @@ pub struct Documentation { /// The URL to the root of documentation. // @@protoc_insertion_point(field:google.api.Documentation.documentation_root_url) pub documentation_root_url: ::std::string::String, + /// Specifies the service root url if the default one (the service name + /// from the yaml file) is not suitable. This can be seen in any fully + /// specified service urls as well as sections that show a base that other + /// urls are relative to. + // @@protoc_insertion_point(field:google.api.Documentation.service_root_url) + pub service_root_url: ::std::string::String, // @@protoc_insertion_point(field:google.api.Documentation.overview) pub overview: ::std::string::String, // special fields @@ -63,7 +71,7 @@ impl Documentation { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(5); + let mut fields = ::std::vec::Vec::with_capacity(6); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "summary", @@ -85,6 +93,11 @@ impl Documentation { |m: &Documentation| { &m.documentation_root_url }, |m: &mut Documentation| { &mut m.documentation_root_url }, )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "service_root_url", + |m: &Documentation| { &m.service_root_url }, + |m: &mut Documentation| { &mut m.service_root_url }, + )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "overview", |m: &Documentation| { &m.overview }, @@ -120,6 +133,9 @@ impl ::protobuf::Message for Documentation { 34 => { self.documentation_root_url = is.read_string()?; }, + 50 => { + self.service_root_url = is.read_string()?; + }, 18 => { self.overview = is.read_string()?; }, @@ -149,6 +165,9 @@ impl ::protobuf::Message for Documentation { if !self.documentation_root_url.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.documentation_root_url); } + if !self.service_root_url.is_empty() { + my_size += ::protobuf::rt::string_size(6, &self.service_root_url); + } if !self.overview.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.overview); } @@ -170,6 +189,9 @@ impl ::protobuf::Message for Documentation { if !self.documentation_root_url.is_empty() { os.write_string(4, &self.documentation_root_url)?; } + if !self.service_root_url.is_empty() { + os.write_string(6, &self.service_root_url)?; + } if !self.overview.is_empty() { os.write_string(2, &self.overview)?; } @@ -194,6 +216,7 @@ impl ::protobuf::Message for Documentation { self.pages.clear(); self.rules.clear(); self.documentation_root_url.clear(); + self.service_root_url.clear(); self.overview.clear(); self.special_fields.clear(); } @@ -204,6 +227,7 @@ impl ::protobuf::Message for Documentation { pages: ::std::vec::Vec::new(), rules: ::std::vec::Vec::new(), documentation_root_url: ::std::string::String::new(), + service_root_url: ::std::string::String::new(), overview: ::std::string::String::new(), special_fields: ::protobuf::SpecialFields::new(), }; @@ -233,15 +257,18 @@ impl ::protobuf::reflect::ProtobufValue for Documentation { #[derive(PartialEq,Clone,Default,Debug)] pub struct DocumentationRule { // message fields - /// The selector is a comma-separated list of patterns. Each pattern is a - /// qualified name of the element which may end in "*", indicating a wildcard. - /// Wildcards are only allowed at the end and for a whole component of the - /// qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A - /// wildcard will match one or more components. To specify a default for all - /// applicable elements, the whole pattern "*" is used. + /// The selector is a comma-separated list of patterns for any element such as + /// a method, a field, an enum value. Each pattern is a qualified name of the + /// element which may end in "*", indicating a wildcard. Wildcards are only + /// allowed at the end and for a whole component of the qualified name, + /// i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match + /// one or more components. To specify a default for all applicable elements, + /// the whole pattern "*" is used. // @@protoc_insertion_point(field:google.api.DocumentationRule.selector) pub selector: ::std::string::String, - /// Description of the selected API(s). + /// Description of the selected proto element (e.g. a message, a method, a + /// 'service' definition, or a field). Defaults to leading & trailing comments + /// taken from the proto source definition of the proto element. // @@protoc_insertion_point(field:google.api.DocumentationRule.description) pub description: ::std::string::String, /// Deprecation description of the selected element(s). It can be provided if @@ -405,7 +432,8 @@ pub struct Page { // @@protoc_insertion_point(field:google.api.Page.name) pub name: ::std::string::String, /// The Markdown content of the page. You can use (== include {path} - /// ==) to include content from a Markdown file. + /// ==) to include content from a Markdown file. The content can be + /// used to produce the documentation page such as HTML format page. // @@protoc_insertion_point(field:google.api.Page.content) pub content: ::std::string::String, /// Subpages of this page. The order of subpages specified here will be @@ -562,24 +590,25 @@ impl ::protobuf::reflect::ProtobufValue for Page { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\xd8\x01\n\rDocume\ + \n\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\x82\x02\n\rDocume\ ntation\x12\x18\n\x07summary\x18\x01\x20\x01(\tR\x07summary\x12&\n\x05pa\ ges\x18\x05\x20\x03(\x0b2\x10.google.api.PageR\x05pages\x123\n\x05rules\ \x18\x03\x20\x03(\x0b2\x1d.google.api.DocumentationRuleR\x05rules\x124\n\ \x16documentation_root_url\x18\x04\x20\x01(\tR\x14documentationRootUrl\ - \x12\x1a\n\x08overview\x18\x02\x20\x01(\tR\x08overview\"\x8a\x01\n\x11Do\ - cumentationRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08selector\ - \x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x127\n\x17d\ - eprecation_description\x18\x03\x20\x01(\tR\x16deprecationDescription\"b\ - \n\x04Page\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07co\ - ntent\x18\x02\x20\x01(\tR\x07content\x12,\n\x08subpages\x18\x03\x20\x03(\ + \x12(\n\x10service_root_url\x18\x06\x20\x01(\tR\x0eserviceRootUrl\x12\ + \x1a\n\x08overview\x18\x02\x20\x01(\tR\x08overview\"\x8a\x01\n\x11Docume\ + ntationRule\x12\x1a\n\x08selector\x18\x01\x20\x01(\tR\x08selector\x12\ + \x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescription\x127\n\x17depre\ + cation_description\x18\x03\x20\x01(\tR\x16deprecationDescription\"b\n\ + \x04Page\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07cont\ + ent\x18\x02\x20\x01(\tR\x07content\x12,\n\x08subpages\x18\x03\x20\x03(\ \x0b2\x10.google.api.PageR\x08subpagesBt\n\x0ecom.google.apiB\x12Documen\ tationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfi\ - g;serviceconfig\xa2\x02\x04GAPIJ\xba/\n\x07\x12\x05\x0f\0\x9c\x01\x01\n\ - \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ - ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ - rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ - his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + g;serviceconfig\xa2\x02\x04GAPIJ\xb85\n\x07\x12\x05\x0e\0\xa7\x01\x01\n\ + \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Go\ + ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ + sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ + is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ @@ -588,35 +617,35 @@ static file_descriptor_proto_data: &'static [u8] = b"\ WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ - \x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\03\n\t\n\x02\x08\x08\x12\x03\x15\03\n\x08\n\x01\x08\x12\x03\x16\0'\ - \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ - \x02\x08$\x12\x03\x17\0\"\n\xf3\x11\n\x02\x04\0\x12\x04P\0n\x01\x1a\xe6\ - \x11\x20`Documentation`\x20provides\x20the\x20information\x20for\x20desc\ - ribing\x20a\x20service.\n\n\x20Example:\n\x20
documentation:\n\
-    \x20\x20\x20summary:\x20>\n\x20\x20\x20\x20\x20The\x20Google\x20Calendar\
-    \x20API\x20gives\x20access\n\x20\x20\x20\x20\x20to\x20most\x20calendar\
-    \x20features.\n\x20\x20\x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\
-    \x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/overvie\
-    w.md\x20==)\n\x20\x20\x20-\x20name:\x20Tutorial\n\x20\x20\x20\x20\
-    \x20content:\x20(==\x20include\x20google/foo/tutorial.md\x20==)\
-    \n\x20\x20\x20\x20\x20subpages;\n\x20\x20\x20\x20\x20-\x20name:\x20Java\
-    \n\x20\x20\x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/f\
-    oo/tutorial_java.md\x20==)\n\x20\x20\x20rules:\n\x20\x20\x20-\x20sel\
-    ector:\x20google.calendar.Calendar.Get\n\x20\x20\x20\x20\x20description:\
-    \x20>\n\x20\x20\x20\x20\x20\x20\x20...\n\x20\x20\x20-\x20selector:\x20go\
-    ogle.calendar.Calendar.Put\n\x20\x20\x20\x20\x20description:\x20>\n\x20\
-    \x20\x20\x20\x20\x20\x20...\n\x20
\n\x20Documentation\x20is\ - \x20provided\x20in\x20markdown\x20syntax.\x20In\x20addition\x20to\n\x20s\ - tandard\x20markdown\x20features,\x20definition\x20lists,\x20tables\x20an\ - d\x20fenced\n\x20code\x20blocks\x20are\x20supported.\x20Section\x20heade\ - rs\x20can\x20be\x20provided\x20and\x20are\n\x20interpreted\x20relative\ - \x20to\x20the\x20section\x20nesting\x20of\x20the\x20context\x20where\n\ - \x20a\x20documentation\x20fragment\x20is\x20embedded.\n\n\x20Documentati\ - on\x20from\x20the\x20IDL\x20is\x20merged\x20with\x20documentation\x20def\ - ined\n\x20via\x20the\x20config\x20at\x20normalization\x20time,\x20where\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ + \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ + \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ + \03\n\t\n\x02\x08\x08\x12\x03\x14\03\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ + \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\n\xf3\x11\n\x02\x04\0\x12\x04O\0u\x01\x1a\xe6\x11\ + \x20`Documentation`\x20provides\x20the\x20information\x20for\x20describi\ + ng\x20a\x20service.\n\n\x20Example:\n\x20
documentation:\n\x20\
+    \x20\x20summary:\x20>\n\x20\x20\x20\x20\x20The\x20Google\x20Calendar\x20\
+    API\x20gives\x20access\n\x20\x20\x20\x20\x20to\x20most\x20calendar\x20fe\
+    atures.\n\x20\x20\x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\x20\
+    \x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/overview.md\
+    \x20==)\n\x20\x20\x20-\x20name:\x20Tutorial\n\x20\x20\x20\x20\x20con\
+    tent:\x20(==\x20include\x20google/foo/tutorial.md\x20==)\n\x20\
+    \x20\x20\x20\x20subpages:\n\x20\x20\x20\x20\x20-\x20name:\x20Java\n\x20\
+    \x20\x20\x20\x20\x20\x20content:\x20(==\x20include\x20google/foo/tut\
+    orial_java.md\x20==)\n\x20\x20\x20rules:\n\x20\x20\x20-\x20selector:\
+    \x20google.calendar.Calendar.Get\n\x20\x20\x20\x20\x20description:\x20>\
+    \n\x20\x20\x20\x20\x20\x20\x20...\n\x20\x20\x20-\x20selector:\x20google.\
+    calendar.Calendar.Put\n\x20\x20\x20\x20\x20description:\x20>\n\x20\x20\
+    \x20\x20\x20\x20\x20...\n\x20
\n\x20Documentation\x20is\x20p\ + rovided\x20in\x20markdown\x20syntax.\x20In\x20addition\x20to\n\x20standa\ + rd\x20markdown\x20features,\x20definition\x20lists,\x20tables\x20and\x20\ + fenced\n\x20code\x20blocks\x20are\x20supported.\x20Section\x20headers\ + \x20can\x20be\x20provided\x20and\x20are\n\x20interpreted\x20relative\x20\ + to\x20the\x20section\x20nesting\x20of\x20the\x20context\x20where\n\x20a\ + \x20documentation\x20fragment\x20is\x20embedded.\n\n\x20Documentation\ + \x20from\x20the\x20IDL\x20is\x20merged\x20with\x20documentation\x20defin\ + ed\n\x20via\x20the\x20config\x20at\x20normalization\x20time,\x20where\ \x20documentation\x20provided\n\x20by\x20config\x20rules\x20overrides\ \x20IDL\x20provided.\n\n\x20A\x20number\x20of\x20constructs\x20specific\ \x20to\x20the\x20API\x20platform\x20are\x20supported\n\x20in\x20document\ @@ -641,92 +670,110 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20==)
\n\x20The\x20directive\x20`suppress_warning`\x20\ does\x20not\x20directly\x20affect\x20documentation\n\x20and\x20is\x20doc\ umented\x20together\x20with\x20service\x20config\x20validation.\n\n\n\n\ - \x03\x04\0\x01\x12\x03P\x08\x15\n]\n\x04\x04\0\x02\0\x12\x03S\x02\x15\ - \x1aP\x20A\x20short\x20summary\x20of\x20what\x20the\x20service\x20does.\ - \x20Can\x20only\x20be\x20provided\x20by\n\x20plain\x20text.\n\n\x0c\n\ - \x05\x04\0\x02\0\x05\x12\x03S\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03S\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03S\x13\x14\n=\n\x04\x04\0\ - \x02\x01\x12\x03V\x02\x1a\x1a0\x20The\x20top\x20level\x20pages\x20for\ + \x03\x04\0\x01\x12\x03O\x08\x15\n\xee\x01\n\x04\x04\0\x02\0\x12\x03T\x02\ + \x15\x1a\xe0\x01\x20A\x20short\x20description\x20of\x20what\x20the\x20se\ + rvice\x20does.\x20The\x20summary\x20must\x20be\x20plain\n\x20text.\x20It\ + \x20becomes\x20the\x20overview\x20of\x20the\x20service\x20displayed\x20i\ + n\x20Google\x20Cloud\n\x20Console.\n\x20NOTE:\x20This\x20field\x20is\x20\ + equivalent\x20to\x20the\x20standard\x20field\x20`description`.\n\n\x0c\n\ + \x05\x04\0\x02\0\x05\x12\x03T\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ + \x03T\t\x10\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03T\x13\x14\n=\n\x04\x04\0\ + \x02\x01\x12\x03W\x02\x1a\x1a0\x20The\x20top\x20level\x20pages\x20for\ \x20the\x20documentation\x20set.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\ - V\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03V\x0b\x0f\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03V\x10\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03V\x18\ - \x19\n\x9e\x01\n\x04\x04\0\x02\x02\x12\x03[\x02'\x1a\x90\x01\x20A\x20lis\ - t\x20of\x20documentation\x20rules\x20that\x20apply\x20to\x20individual\ + W\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03W\x0b\x0f\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03W\x10\x15\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03W\x18\ + \x19\n\x9e\x01\n\x04\x04\0\x02\x02\x12\x03\\\x02'\x1a\x90\x01\x20A\x20li\ + st\x20of\x20documentation\x20rules\x20that\x20apply\x20to\x20individual\ \x20API\x20elements.\n\n\x20**NOTE:**\x20All\x20service\x20configuration\ \x20rules\x20follow\x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x04\x12\x03[\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03[\ - \x0b\x1c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03[\x1d\"\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x03[%&\n4\n\x04\x04\0\x02\x03\x12\x03^\x02$\x1a'\x20The\ - \x20URL\x20to\x20the\x20root\x20of\x20documentation.\n\n\x0c\n\x05\x04\0\ - \x02\x03\x05\x12\x03^\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03^\t\ - \x1f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03^\"#\n\xbc\x03\n\x04\x04\0\x02\ - \x04\x12\x03m\x02\x16\x1a\xae\x03\x20Declares\x20a\x20single\x20overview\ - \x20page.\x20For\x20example:\n\x20
documentation:\n\x20\x20\
-    \x20summary:\x20...\n\x20\x20\x20overview:\x20(==\x20include\x20over\
-    view.md\x20==)\n\x20
\n\x20This\x20is\x20a\x20shortcut\ - \x20for\x20the\x20following\x20declaration\x20(using\x20pages\x20style):\ - \n\x20
documentation:\n\x20\x20\x20summary:\x20...\n\x20\x20\
+    \x04\0\x02\x02\x04\x12\x03\\\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\
+    \\\x0b\x1c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\\\x1d\"\n\x0c\n\x05\x04\
+    \0\x02\x02\x03\x12\x03\\%&\n4\n\x04\x04\0\x02\x03\x12\x03_\x02$\x1a'\x20\
+    The\x20URL\x20to\x20the\x20root\x20of\x20documentation.\n\n\x0c\n\x05\
+    \x04\0\x02\x03\x05\x12\x03_\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\
+    \x03_\t\x1f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03_\"#\n\xf6\x01\n\x04\
+    \x04\0\x02\x04\x12\x03e\x02\x1e\x1a\xe8\x01\x20Specifies\x20the\x20servi\
+    ce\x20root\x20url\x20if\x20the\x20default\x20one\x20(the\x20service\x20n\
+    ame\n\x20from\x20the\x20yaml\x20file)\x20is\x20not\x20suitable.\x20This\
+    \x20can\x20be\x20seen\x20in\x20any\x20fully\n\x20specified\x20service\
+    \x20urls\x20as\x20well\x20as\x20sections\x20that\x20show\x20a\x20base\
+    \x20that\x20other\n\x20urls\x20are\x20relative\x20to.\n\n\x0c\n\x05\x04\
+    \0\x02\x04\x05\x12\x03e\x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03e\t\
+    \x19\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03e\x1c\x1d\n\xbc\x03\n\x04\x04\
+    \0\x02\x05\x12\x03t\x02\x16\x1a\xae\x03\x20Declares\x20a\x20single\x20ov\
+    erview\x20page.\x20For\x20example:\n\x20
documentation:\n\x20\
+    \x20\x20summary:\x20...\n\x20\x20\x20overview:\x20(==\x20include\x20\
+    overview.md\x20==)\n\x20
\n\x20This\x20is\x20a\x20shortc\ + ut\x20for\x20the\x20following\x20declaration\x20(using\x20pages\x20style\ + ):\n\x20
documentation:\n\x20\x20\x20summary:\x20...\n\x20\x20\
     \x20pages:\n\x20\x20\x20-\x20name:\x20Overview\n\x20\x20\x20\x20\x20cont\
     ent:\x20(==\x20include\x20overview.md\x20==)\n\x20
\ \n\x20Note:\x20you\x20cannot\x20specify\x20both\x20`overview`\x20field\ - \x20and\x20`pages`\x20field.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03m\ - \x02\x08\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03m\t\x11\n\x0c\n\x05\x04\0\ - \x02\x04\x03\x12\x03m\x14\x15\nW\n\x02\x04\x01\x12\x05q\0\x80\x01\x01\ + \x20and\x20`pages`\x20field.\n\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03t\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03t\t\x11\n\x0c\n\x05\x04\0\ + \x02\x05\x03\x12\x03t\x14\x15\nW\n\x02\x04\x01\x12\x05x\0\x8a\x01\x01\ \x1aJ\x20A\x20documentation\x20rule\x20provides\x20information\x20about\ - \x20individual\x20API\x20elements.\n\n\n\n\x03\x04\x01\x01\x12\x03q\x08\ - \x19\n\xb0\x03\n\x04\x04\x01\x02\0\x12\x03x\x02\x16\x1a\xa2\x03\x20The\ - \x20selector\x20is\x20a\x20comma-separated\x20list\x20of\x20patterns.\ - \x20Each\x20pattern\x20is\x20a\n\x20qualified\x20name\x20of\x20the\x20el\ - ement\x20which\x20may\x20end\x20in\x20\"*\",\x20indicating\x20a\x20wildc\ - ard.\n\x20Wildcards\x20are\x20only\x20allowed\x20at\x20the\x20end\x20and\ - \x20for\x20a\x20whole\x20component\x20of\x20the\n\x20qualified\x20name,\ - \x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\x20not\x20\"foo.b*\"\x20or\x20\ - \"foo.*.bar\".\x20A\n\x20wildcard\x20will\x20match\x20one\x20or\x20more\ - \x20components.\x20To\x20specify\x20a\x20default\x20for\x20all\n\x20appl\ - icable\x20elements,\x20the\x20whole\x20pattern\x20\"*\"\x20is\x20used.\n\ - \n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03x\x02\x08\n\x0c\n\x05\x04\x01\x02\ - \0\x01\x12\x03x\t\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03x\x14\x15\n2\ - \n\x04\x04\x01\x02\x01\x12\x03{\x02\x19\x1a%\x20Description\x20of\x20the\ - \x20selected\x20API(s).\n\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03{\x02\ - \x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03{\t\x14\n\x0c\n\x05\x04\x01\ - \x02\x01\x03\x12\x03{\x17\x18\n\x7f\n\x04\x04\x01\x02\x02\x12\x03\x7f\ + \x20individual\x20API\x20elements.\n\n\n\n\x03\x04\x01\x01\x12\x03x\x08\ + \x19\n\xeb\x03\n\x04\x04\x01\x02\0\x12\x04\x80\x01\x02\x16\x1a\xdc\x03\ + \x20The\x20selector\x20is\x20a\x20comma-separated\x20list\x20of\x20patte\ + rns\x20for\x20any\x20element\x20such\x20as\n\x20a\x20method,\x20a\x20fie\ + ld,\x20an\x20enum\x20value.\x20Each\x20pattern\x20is\x20a\x20qualified\ + \x20name\x20of\x20the\n\x20element\x20which\x20may\x20end\x20in\x20\"*\"\ + ,\x20indicating\x20a\x20wildcard.\x20Wildcards\x20are\x20only\n\x20allow\ + ed\x20at\x20the\x20end\x20and\x20for\x20a\x20whole\x20component\x20of\ + \x20the\x20qualified\x20name,\n\x20i.e.\x20\"foo.*\"\x20is\x20ok,\x20but\ + \x20not\x20\"foo.b*\"\x20or\x20\"foo.*.bar\".\x20A\x20wildcard\x20will\ + \x20match\n\x20one\x20or\x20more\x20components.\x20To\x20specify\x20a\ + \x20default\x20for\x20all\x20applicable\x20elements,\n\x20the\x20whole\ + \x20pattern\x20\"*\"\x20is\x20used.\n\n\r\n\x05\x04\x01\x02\0\x05\x12\ + \x04\x80\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x80\x01\t\x11\n\ + \r\n\x05\x04\x01\x02\0\x03\x12\x04\x80\x01\x14\x15\n\xe1\x01\n\x04\x04\ + \x01\x02\x01\x12\x04\x85\x01\x02\x19\x1a\xd2\x01\x20Description\x20of\ + \x20the\x20selected\x20proto\x20element\x20(e.g.\x20a\x20message,\x20a\ + \x20method,\x20a\n\x20'service'\x20definition,\x20or\x20a\x20field).\x20\ + Defaults\x20to\x20leading\x20&\x20trailing\x20comments\n\x20taken\x20fro\ + m\x20the\x20proto\x20source\x20definition\x20of\x20the\x20proto\x20eleme\ + nt.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\x85\x01\x02\x08\n\r\n\x05\ + \x04\x01\x02\x01\x01\x12\x04\x85\x01\t\x14\n\r\n\x05\x04\x01\x02\x01\x03\ + \x12\x04\x85\x01\x17\x18\n\x80\x01\n\x04\x04\x01\x02\x02\x12\x04\x89\x01\ \x02%\x1ar\x20Deprecation\x20description\x20of\x20the\x20selected\x20ele\ ment(s).\x20It\x20can\x20be\x20provided\x20if\n\x20an\x20element\x20is\ - \x20marked\x20as\x20`deprecated`.\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\ - \x03\x7f\x02\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x7f\t\x20\n\x0c\ - \n\x05\x04\x01\x02\x02\x03\x12\x03\x7f#$\n~\n\x02\x04\x02\x12\x06\x84\ - \x01\0\x9c\x01\x01\x1ap\x20Represents\x20a\x20documentation\x20page.\x20\ - A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\n\x20nested\ - \x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\ - \x84\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x93\x01\x02\x12\ - \x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20will\x20be\ - \x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\x20generat\ - e\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\x20to\x20thi\ - s\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20page\x20name\ - \x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20this\x20page\ - \n\x20concatenated\x20with\x20`.`)\x20can\x20be\x20used\x20as\x20referen\ - ce\x20to\x20the\x20page\x20in\x20your\n\x20documentation.\x20For\x20exam\ - ple:\n\x20
pages:\n\x20-\x20name:\x20Tutorial\n\x20\x20\x20con\
-    tent:\x20(==\x20include\x20tutorial.md\x20==)\n\x20\x20\x20subpa\
-    ges:\n\x20\x20\x20-\x20name:\x20Java\n\x20\x20\x20\x20\x20content:\x20&#\
-    40;==\x20include\x20tutorial_java.md\x20==)\n\x20
\n\x20\ - You\x20can\x20reference\x20`Java`\x20page\x20using\x20Markdown\x20refere\ - nce\x20link\x20syntax:\n\x20`[Java][Tutorial.Java]`.\n\n\r\n\x05\x04\x02\ - \x02\0\x05\x12\x04\x93\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\ - \x93\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x93\x01\x10\x11\n\x94\ - \x01\n\x04\x04\x02\x02\x01\x12\x04\x97\x01\x02\x15\x1a\x85\x01\x20The\ - \x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20use\x20(==\x20include\x20{path}\n\x20==)
\x20to\x20include\ - \x20content\x20from\x20a\x20Markdown\x20file.\n\n\r\n\x05\x04\x02\x02\ - \x01\x05\x12\x04\x97\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ - \x97\x01\t\x10\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x97\x01\x13\x14\nu\ - \n\x04\x04\x02\x02\x02\x12\x04\x9b\x01\x02\x1d\x1ag\x20Subpages\x20of\ - \x20this\x20page.\x20The\x20order\x20of\x20subpages\x20specified\x20here\ - \x20will\x20be\n\x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\ - \x05\x04\x02\x02\x02\x04\x12\x04\x9b\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\ - \x06\x12\x04\x9b\x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\x9b\ - \x01\x10\x18\n\r\n\x05\x04\x02\x02\x02\x03\x12\x04\x9b\x01\x1b\x1cb\x06p\ - roto3\ + \x20marked\x20as\x20`deprecated`.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\ + \x04\x89\x01\x02\x08\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\x89\x01\t\x20\ + \n\r\n\x05\x04\x01\x02\x02\x03\x12\x04\x89\x01#$\n~\n\x02\x04\x02\x12\ + \x06\x8e\x01\0\xa7\x01\x01\x1ap\x20Represents\x20a\x20documentation\x20p\ + age.\x20A\x20page\x20can\x20contain\x20subpages\x20to\x20represent\n\x20\ + nested\x20documentation\x20set\x20structure.\n\n\x0b\n\x03\x04\x02\x01\ + \x12\x04\x8e\x01\x08\x0c\n\xda\x04\n\x04\x04\x02\x02\0\x12\x04\x9d\x01\ + \x02\x12\x1a\xcb\x04\x20The\x20name\x20of\x20the\x20page.\x20It\x20will\ + \x20be\x20used\x20as\x20an\x20identity\x20of\x20the\x20page\x20to\n\x20g\ + enerate\x20URI\x20of\x20the\x20page,\x20text\x20of\x20the\x20link\x20to\ + \x20this\x20page\x20in\x20navigation,\n\x20etc.\x20The\x20full\x20page\ + \x20name\x20(start\x20from\x20the\x20root\x20page\x20name\x20to\x20this\ + \x20page\n\x20concatenated\x20with\x20`.`)\x20can\x20be\x20used\x20as\ + \x20reference\x20to\x20the\x20page\x20in\x20your\n\x20documentation.\x20\ + For\x20example:\n\x20
pages:\n\x20-\x20name:\x20Tutorial\n\x20\
+    \x20\x20content:\x20(==\x20include\x20tutorial.md\x20==)\n\x20\
+    \x20\x20subpages:\n\x20\x20\x20-\x20name:\x20Java\n\x20\x20\x20\x20\x20c\
+    ontent:\x20(==\x20include\x20tutorial_java.md\x20==)\n\x20
\n\x20You\x20can\x20reference\x20`Java`\x20page\x20using\x20Markd\ + own\x20reference\x20link\x20syntax:\n\x20`[Java][Tutorial.Java]`.\n\n\r\ + \n\x05\x04\x02\x02\0\x05\x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\ + \x01\x12\x04\x9d\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x9d\x01\x10\ + \x11\n\xe9\x01\n\x04\x04\x02\x02\x01\x12\x04\xa2\x01\x02\x15\x1a\xda\x01\ + \x20The\x20Markdown\x20content\x20of\x20the\x20page.\x20You\x20can\x20us\ + e\x20(==\x20include\x20{path}\n\x20==)\x20to\x20inc\ + lude\x20content\x20from\x20a\x20Markdown\x20file.\x20The\x20content\x20c\ + an\x20be\n\x20used\x20to\x20produce\x20the\x20documentation\x20page\x20s\ + uch\x20as\x20HTML\x20format\x20page.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\ + \x04\xa2\x01\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xa2\x01\t\x10\ + \n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xa2\x01\x13\x14\nu\n\x04\x04\x02\ + \x02\x02\x12\x04\xa6\x01\x02\x1d\x1ag\x20Subpages\x20of\x20this\x20page.\ + \x20The\x20order\x20of\x20subpages\x20specified\x20here\x20will\x20be\n\ + \x20honored\x20in\x20the\x20generated\x20docset.\n\n\r\n\x05\x04\x02\x02\ + \x02\x04\x12\x04\xa6\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\xa6\ + \x01\x0b\x0f\n\r\n\x05\x04\x02\x02\x02\x01\x12\x04\xa6\x01\x10\x18\n\r\n\ + \x05\x04\x02\x02\x02\x03\x12\x04\xa6\x01\x1b\x1cb\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/endpoint.rs b/googleapis-raw/src/api/endpoint.rs index a18cb86..c219b8d 100644 --- a/googleapis-raw/src/api/endpoint.rs +++ b/googleapis-raw/src/api/endpoint.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -32,16 +32,11 @@ pub struct Endpoint { /// The canonical name of this endpoint. // @@protoc_insertion_point(field:google.api.Endpoint.name) pub name: ::std::string::String, - /// DEPRECATED: This field is no longer supported. Instead of using aliases, - /// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended - /// aliases. - /// - /// Additional names that this endpoint will be hosted on. + /// Aliases for this endpoint, these will be served by the same UrlMap as the + /// parent endpoint, and will be provisioned in the GCP stack for the Regional + /// Endpoints. // @@protoc_insertion_point(field:google.api.Endpoint.aliases) pub aliases: ::std::vec::Vec<::std::string::String>, - /// The list of features enabled on this endpoint. - // @@protoc_insertion_point(field:google.api.Endpoint.features) - pub features: ::std::vec::Vec<::std::string::String>, /// The specification of an Internet routable address of API frontend that will /// handle requests to this [API /// Endpoint](https://cloud.google.com/apis/design/glossary). It should be @@ -74,7 +69,7 @@ impl Endpoint { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(5); + let mut fields = ::std::vec::Vec::with_capacity(4); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "name", @@ -86,11 +81,6 @@ impl Endpoint { |m: &Endpoint| { &m.aliases }, |m: &mut Endpoint| { &mut m.aliases }, )); - fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( - "features", - |m: &Endpoint| { &m.features }, - |m: &mut Endpoint| { &mut m.features }, - )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "target", |m: &Endpoint| { &m.target }, @@ -125,9 +115,6 @@ impl ::protobuf::Message for Endpoint { 18 => { self.aliases.push(is.read_string()?); }, - 34 => { - self.features.push(is.read_string()?); - }, 810 => { self.target = is.read_string()?; }, @@ -152,9 +139,6 @@ impl ::protobuf::Message for Endpoint { for value in &self.aliases { my_size += ::protobuf::rt::string_size(2, &value); }; - for value in &self.features { - my_size += ::protobuf::rt::string_size(4, &value); - }; if !self.target.is_empty() { my_size += ::protobuf::rt::string_size(101, &self.target); } @@ -173,9 +157,6 @@ impl ::protobuf::Message for Endpoint { for v in &self.aliases { os.write_string(2, &v)?; }; - for v in &self.features { - os.write_string(4, &v)?; - }; if !self.target.is_empty() { os.write_string(101, &self.target)?; } @@ -201,7 +182,6 @@ impl ::protobuf::Message for Endpoint { fn clear(&mut self) { self.name.clear(); self.aliases.clear(); - self.features.clear(); self.target.clear(); self.allow_cors = false; self.special_fields.clear(); @@ -211,7 +191,6 @@ impl ::protobuf::Message for Endpoint { static instance: Endpoint = Endpoint { name: ::std::string::String::new(), aliases: ::std::vec::Vec::new(), - features: ::std::vec::Vec::new(), target: ::std::string::String::new(), allow_cors: false, special_fields: ::protobuf::SpecialFields::new(), @@ -238,83 +217,81 @@ impl ::protobuf::reflect::ProtobufValue for Endpoint { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x19google/api/endpoint.proto\x12\ngoogle.api\"\x8f\x01\n\x08Endpoint\ - \x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x1c\n\x07aliases\x18\ - \x02\x20\x03(\tR\x07aliasesB\x02\x18\x01\x12\x1a\n\x08features\x18\x04\ - \x20\x03(\tR\x08features\x12\x16\n\x06target\x18e\x20\x01(\tR\x06target\ - \x12\x1d\n\nallow_cors\x18\x05\x20\x01(\x08R\tallowCorsBo\n\x0ecom.googl\ - e.apiB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/se\ - rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xa6\x15\n\x06\x12\x04\x0f\0E\ - \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ - \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ - \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ - e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ - e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ - \n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\ - \x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\ - \x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\x20Licen\ - se\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHO\ - UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ - express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ - ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ - \n\x01\x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\ - \x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\ - \x03\x15\0.\n\t\n\x02\x08\x08\x12\x03\x15\0.\n\x08\n\x01\x08\x12\x03\x16\ - \0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\ - \n\x02\x08$\x12\x03\x17\0\"\n\xce\x05\n\x02\x04\0\x12\x04)\0E\x01\x1a\ - \xc1\x05\x20`Endpoint`\x20describes\x20a\x20network\x20endpoint\x20that\ - \x20serves\x20a\x20set\x20of\x20APIs.\n\x20A\x20service\x20may\x20expose\ - \x20any\x20number\x20of\x20endpoints,\x20and\x20all\x20endpoints\x20shar\ - e\x20the\n\x20same\x20service\x20configuration,\x20such\x20as\x20quota\ - \x20configuration\x20and\x20monitoring\n\x20configuration.\n\n\x20Exampl\ - e\x20service\x20configuration:\n\n\x20\x20\x20\x20\x20name:\x20library-e\ - xample.googleapis.com\n\x20\x20\x20\x20\x20endpoints:\n\x20\x20\x20\x20\ - \x20\x20\x20#\x20Below\x20entry\x20makes\x20'google.example.library.v1.L\ - ibrary'\n\x20\x20\x20\x20\x20\x20\x20#\x20API\x20be\x20served\x20from\ - \x20endpoint\x20address\x20library-example.googleapis.com.\n\x20\x20\x20\ - \x20\x20\x20\x20#\x20It\x20also\x20allows\x20HTTP\x20OPTIONS\x20calls\ - \x20to\x20be\x20passed\x20to\x20the\x20backend,\x20for\n\x20\x20\x20\x20\ - \x20\x20\x20#\x20it\x20to\x20decide\x20whether\x20the\x20subsequent\x20c\ - ross-origin\x20request\x20is\n\x20\x20\x20\x20\x20\x20\x20#\x20allowed\ - \x20to\x20proceed.\n\x20\x20\x20\x20\x20-\x20name:\x20library-example.go\ - ogleapis.com\n\x20\x20\x20\x20\x20\x20\x20allow_cors:\x20true\n\n\n\n\ - \x03\x04\0\x01\x12\x03)\x08\x10\n3\n\x04\x04\0\x02\0\x12\x03+\x02\x12\ - \x1a&\x20The\x20canonical\x20name\x20of\x20this\x20endpoint.\n\n\x0c\n\ - \x05\x04\0\x02\0\x05\x12\x03+\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03+\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03+\x10\x11\n\xf8\x01\n\x04\ - \x04\0\x02\x01\x12\x032\x022\x1a\xea\x01\x20DEPRECATED:\x20This\x20field\ - \x20is\x20no\x20longer\x20supported.\x20Instead\x20of\x20using\x20aliase\ - s,\n\x20please\x20specify\x20multiple\x20[google.api.Endpoint][google.ap\ - i.Endpoint]\x20for\x20each\x20of\x20the\x20intended\n\x20aliases.\n\n\ - \x20Additional\x20names\x20that\x20this\x20endpoint\x20will\x20be\x20hos\ - ted\x20on.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x032\x02\n\n\x0c\n\x05\ - \x04\0\x02\x01\x05\x12\x032\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\ - \x032\x12\x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x032\x1c\x1d\n\x0c\n\x05\ - \x04\0\x02\x01\x08\x12\x032\x1e1\n\r\n\x06\x04\0\x02\x01\x08\x03\x12\x03\ - 2\x1f0\n=\n\x04\x04\0\x02\x02\x12\x035\x02\x1f\x1a0\x20The\x20list\x20of\ - \x20features\x20enabled\x20on\x20this\x20endpoint.\n\n\x0c\n\x05\x04\0\ - \x02\x02\x04\x12\x035\x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x035\x0b\ - \x11\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x035\x12\x1a\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x035\x1d\x1e\n\xb4\x02\n\x04\x04\0\x02\x03\x12\x03<\x02\ - \x16\x1a\xa6\x02\x20The\x20specification\x20of\x20an\x20Internet\x20rout\ - able\x20address\x20of\x20API\x20frontend\x20that\x20will\n\x20handle\x20\ - requests\x20to\x20this\x20[API\n\x20Endpoint](https://cloud.google.com/a\ - pis/design/glossary).\x20It\x20should\x20be\n\x20either\x20a\x20valid\ - \x20IPv4\x20address\x20or\x20a\x20fully-qualified\x20domain\x20name.\x20\ - For\x20example,\n\x20\"8.8.8.8\"\x20or\x20\"myservice.appspot.com\".\n\n\ - \x0c\n\x05\x04\0\x02\x03\x05\x12\x03<\x02\x08\n\x0c\n\x05\x04\0\x02\x03\ - \x01\x12\x03<\t\x0f\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03<\x12\x15\n\xd9\ - \x02\n\x04\x04\0\x02\x04\x12\x03D\x02\x16\x1a\xcb\x02\x20Allowing\n\x20[\ - CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing),\x20a\ - ka\n\x20cross-domain\x20traffic,\x20would\x20allow\x20the\x20backends\ - \x20served\x20from\x20this\x20endpoint\x20to\n\x20receive\x20and\x20resp\ - ond\x20to\x20HTTP\x20OPTIONS\x20requests.\x20The\x20response\x20will\x20\ - be\x20used\x20by\n\x20the\x20browser\x20to\x20determine\x20whether\x20th\ - e\x20subsequent\x20cross-origin\x20request\x20is\n\x20allowed\x20to\x20p\ - roceed.\n\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03D\x02\x06\n\x0c\n\x05\x04\ - \0\x02\x04\x01\x12\x03D\x07\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03D\ - \x14\x15b\x06proto3\ + \n\x19google/api/endpoint.proto\x12\ngoogle.api\"o\n\x08Endpoint\x12\x12\ + \n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x18\n\x07aliases\x18\x02\x20\ + \x03(\tR\x07aliases\x12\x16\n\x06target\x18e\x20\x01(\tR\x06target\x12\ + \x1d\n\nallow_cors\x18\x05\x20\x01(\x08R\tallowCorsBo\n\x0ecom.google.ap\ + iB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/servic\ + econfig;serviceconfig\xa2\x02\x04GAPIJ\xcb\x15\n\x06\x12\x04\x0e\0D\x01\ + \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20\ + Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ + ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ + this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ + \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ + \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ + \0.\n\t\n\x02\x08\x08\x12\x03\x14\0.\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ + \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\n\xd0\x07\n\x02\x04\0\x12\x04-\0D\x01\x1a\xc3\x07\ + \x20`Endpoint`\x20describes\x20a\x20network\x20address\x20of\x20a\x20ser\ + vice\x20that\x20serves\x20a\x20set\x20of\n\x20APIs.\x20It\x20is\x20commo\ + nly\x20known\x20as\x20a\x20service\x20endpoint.\x20A\x20service\x20may\ + \x20expose\n\x20any\x20number\x20of\x20service\x20endpoints,\x20and\x20a\ + ll\x20service\x20endpoints\x20share\x20the\x20same\n\x20service\x20defin\ + ition,\x20such\x20as\x20quota\x20limits\x20and\x20monitoring\x20metrics.\ + \n\n\x20Example:\n\n\x20\x20\x20\x20\x20type:\x20google.api.Service\n\ + \x20\x20\x20\x20\x20name:\x20library-example.googleapis.com\n\x20\x20\ + \x20\x20\x20endpoints:\n\x20\x20\x20\x20\x20\x20\x20#\x20Declares\x20net\ + work\x20address\x20`https://library-example.googleapis.com`\n\x20\x20\ + \x20\x20\x20\x20\x20#\x20for\x20service\x20`library-example.googleapis.c\ + om`.\x20The\x20`https`\x20scheme\n\x20\x20\x20\x20\x20\x20\x20#\x20is\ + \x20implicit\x20for\x20all\x20service\x20endpoints.\x20Other\x20schemes\ + \x20may\x20be\n\x20\x20\x20\x20\x20\x20\x20#\x20supported\x20in\x20the\ + \x20future.\n\x20\x20\x20\x20\x20-\x20name:\x20library-example.googleapi\ + s.com\n\x20\x20\x20\x20\x20\x20\x20allow_cors:\x20false\n\x20\x20\x20\ + \x20\x20-\x20name:\x20content-staging-library-example.googleapis.com\n\ + \x20\x20\x20\x20\x20\x20\x20#\x20Allows\x20HTTP\x20OPTIONS\x20calls\x20t\ + o\x20be\x20passed\x20to\x20the\x20API\x20frontend,\x20for\x20it\n\x20\ + \x20\x20\x20\x20\x20\x20#\x20to\x20decide\x20whether\x20the\x20subsequen\ + t\x20cross-origin\x20request\x20is\x20allowed\n\x20\x20\x20\x20\x20\x20\ + \x20#\x20to\x20proceed.\n\x20\x20\x20\x20\x20\x20\x20allow_cors:\x20true\ + \n\n\n\n\x03\x04\0\x01\x12\x03-\x08\x10\n3\n\x04\x04\0\x02\0\x12\x03/\ + \x02\x12\x1a&\x20The\x20canonical\x20name\x20of\x20this\x20endpoint.\n\n\ + \x0c\n\x05\x04\0\x02\0\x05\x12\x03/\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\ + \x12\x03/\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03/\x10\x11\n\xb1\x01\n\ + \x04\x04\0\x02\x01\x12\x034\x02\x1e\x1a\xa3\x01\x20Aliases\x20for\x20thi\ + s\x20endpoint,\x20these\x20will\x20be\x20served\x20by\x20the\x20same\x20\ + UrlMap\x20as\x20the\n\x20parent\x20endpoint,\x20and\x20will\x20be\x20pro\ + visioned\x20in\x20the\x20GCP\x20stack\x20for\x20the\x20Regional\n\x20End\ + points.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x034\x02\n\n\x0c\n\x05\x04\0\ + \x02\x01\x05\x12\x034\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x034\x12\ + \x19\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x034\x1c\x1d\n\xb4\x02\n\x04\x04\ + \0\x02\x02\x12\x03;\x02\x16\x1a\xa6\x02\x20The\x20specification\x20of\ + \x20an\x20Internet\x20routable\x20address\x20of\x20API\x20frontend\x20th\ + at\x20will\n\x20handle\x20requests\x20to\x20this\x20[API\n\x20Endpoint](\ + https://cloud.google.com/apis/design/glossary).\x20It\x20should\x20be\n\ + \x20either\x20a\x20valid\x20IPv4\x20address\x20or\x20a\x20fully-qualifie\ + d\x20domain\x20name.\x20For\x20example,\n\x20\"8.8.8.8\"\x20or\x20\"myse\ + rvice.appspot.com\".\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03;\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x02\x01\x12\x03;\t\x0f\n\x0c\n\x05\x04\0\x02\x02\ + \x03\x12\x03;\x12\x15\n\xd9\x02\n\x04\x04\0\x02\x03\x12\x03C\x02\x16\x1a\ + \xcb\x02\x20Allowing\n\x20[CORS](https://en.wikipedia.org/wiki/Cross-ori\ + gin_resource_sharing),\x20aka\n\x20cross-domain\x20traffic,\x20would\x20\ + allow\x20the\x20backends\x20served\x20from\x20this\x20endpoint\x20to\n\ + \x20receive\x20and\x20respond\x20to\x20HTTP\x20OPTIONS\x20requests.\x20T\ + he\x20response\x20will\x20be\x20used\x20by\n\x20the\x20browser\x20to\x20\ + determine\x20whether\x20the\x20subsequent\x20cross-origin\x20request\x20\ + is\n\x20allowed\x20to\x20proceed.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\ + \x03C\x02\x06\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03C\x07\x11\n\x0c\n\x05\ + \x04\0\x02\x03\x03\x12\x03C\x14\x15b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/error_reason.rs b/googleapis-raw/src/api/error_reason.rs new file mode 100644 index 0000000..3e266f9 --- /dev/null +++ b/googleapis-raw/src/api/error_reason.rs @@ -0,0 +1,875 @@ +// This file is generated by rust-protobuf 3.4.0. Do not edit +// .proto file is parsed by protoc --rust-out=... +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![cfg_attr(rustfmt, rustfmt::skip)] + + +#![allow(dead_code)] +#![allow(missing_docs)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(non_upper_case_globals)] +#![allow(trivial_casts)] +#![allow(unused_results)] +#![allow(unused_mut)] + +//! Generated file from `google/api/error_reason.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; + +/// 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. +#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] +// @@protoc_insertion_point(enum:google.api.ErrorReason) +pub enum ErrorReason { + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ERROR_REASON_UNSPECIFIED) + ERROR_REASON_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.SERVICE_DISABLED) + SERVICE_DISABLED = 1, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.BILLING_DISABLED) + BILLING_DISABLED = 2, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_INVALID) + API_KEY_INVALID = 3, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_SERVICE_BLOCKED) + API_KEY_SERVICE_BLOCKED = 4, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_HTTP_REFERRER_BLOCKED) + API_KEY_HTTP_REFERRER_BLOCKED = 7, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_IP_ADDRESS_BLOCKED) + API_KEY_IP_ADDRESS_BLOCKED = 8, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_ANDROID_APP_BLOCKED) + API_KEY_ANDROID_APP_BLOCKED = 9, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.API_KEY_IOS_APP_BLOCKED) + API_KEY_IOS_APP_BLOCKED = 13, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.RATE_LIMIT_EXCEEDED) + RATE_LIMIT_EXCEEDED = 5, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.RESOURCE_QUOTA_EXCEEDED) + RESOURCE_QUOTA_EXCEEDED = 6, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.LOCATION_TAX_POLICY_VIOLATED) + LOCATION_TAX_POLICY_VIOLATED = 10, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.USER_PROJECT_DENIED) + USER_PROJECT_DENIED = 11, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.CONSUMER_SUSPENDED) + CONSUMER_SUSPENDED = 12, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.CONSUMER_INVALID) + CONSUMER_INVALID = 14, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.SECURITY_POLICY_VIOLATED) + SECURITY_POLICY_VIOLATED = 15, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ACCESS_TOKEN_EXPIRED) + ACCESS_TOKEN_EXPIRED = 16, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ACCESS_TOKEN_SCOPE_INSUFFICIENT) + ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ACCOUNT_STATE_INVALID) + ACCOUNT_STATE_INVALID = 18, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ACCESS_TOKEN_TYPE_UNSUPPORTED) + ACCESS_TOKEN_TYPE_UNSUPPORTED = 19, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.CREDENTIALS_MISSING) + CREDENTIALS_MISSING = 20, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.RESOURCE_PROJECT_INVALID) + RESOURCE_PROJECT_INVALID = 21, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.SESSION_COOKIE_INVALID) + SESSION_COOKIE_INVALID = 23, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.USER_BLOCKED_BY_ADMIN) + USER_BLOCKED_BY_ADMIN = 24, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.RESOURCE_USAGE_RESTRICTION_VIOLATED) + RESOURCE_USAGE_RESTRICTION_VIOLATED = 25, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.SYSTEM_PARAMETER_UNSUPPORTED) + SYSTEM_PARAMETER_UNSUPPORTED = 26, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ORG_RESTRICTION_VIOLATION) + ORG_RESTRICTION_VIOLATION = 27, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.ORG_RESTRICTION_HEADER_INVALID) + ORG_RESTRICTION_HEADER_INVALID = 28, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.SERVICE_NOT_VISIBLE) + SERVICE_NOT_VISIBLE = 29, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.GCP_SUSPENDED) + GCP_SUSPENDED = 30, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.LOCATION_POLICY_VIOLATED) + LOCATION_POLICY_VIOLATED = 31, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.MISSING_ORIGIN) + MISSING_ORIGIN = 33, + // @@protoc_insertion_point(enum_value:google.api.ErrorReason.OVERLOADED_CREDENTIALS) + OVERLOADED_CREDENTIALS = 34, +} + +impl ::protobuf::Enum for ErrorReason { + const NAME: &'static str = "ErrorReason"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(ErrorReason::ERROR_REASON_UNSPECIFIED), + 1 => ::std::option::Option::Some(ErrorReason::SERVICE_DISABLED), + 2 => ::std::option::Option::Some(ErrorReason::BILLING_DISABLED), + 3 => ::std::option::Option::Some(ErrorReason::API_KEY_INVALID), + 4 => ::std::option::Option::Some(ErrorReason::API_KEY_SERVICE_BLOCKED), + 7 => ::std::option::Option::Some(ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED), + 8 => ::std::option::Option::Some(ErrorReason::API_KEY_IP_ADDRESS_BLOCKED), + 9 => ::std::option::Option::Some(ErrorReason::API_KEY_ANDROID_APP_BLOCKED), + 13 => ::std::option::Option::Some(ErrorReason::API_KEY_IOS_APP_BLOCKED), + 5 => ::std::option::Option::Some(ErrorReason::RATE_LIMIT_EXCEEDED), + 6 => ::std::option::Option::Some(ErrorReason::RESOURCE_QUOTA_EXCEEDED), + 10 => ::std::option::Option::Some(ErrorReason::LOCATION_TAX_POLICY_VIOLATED), + 11 => ::std::option::Option::Some(ErrorReason::USER_PROJECT_DENIED), + 12 => ::std::option::Option::Some(ErrorReason::CONSUMER_SUSPENDED), + 14 => ::std::option::Option::Some(ErrorReason::CONSUMER_INVALID), + 15 => ::std::option::Option::Some(ErrorReason::SECURITY_POLICY_VIOLATED), + 16 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_EXPIRED), + 17 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT), + 18 => ::std::option::Option::Some(ErrorReason::ACCOUNT_STATE_INVALID), + 19 => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED), + 20 => ::std::option::Option::Some(ErrorReason::CREDENTIALS_MISSING), + 21 => ::std::option::Option::Some(ErrorReason::RESOURCE_PROJECT_INVALID), + 23 => ::std::option::Option::Some(ErrorReason::SESSION_COOKIE_INVALID), + 24 => ::std::option::Option::Some(ErrorReason::USER_BLOCKED_BY_ADMIN), + 25 => ::std::option::Option::Some(ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED), + 26 => ::std::option::Option::Some(ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED), + 27 => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_VIOLATION), + 28 => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_HEADER_INVALID), + 29 => ::std::option::Option::Some(ErrorReason::SERVICE_NOT_VISIBLE), + 30 => ::std::option::Option::Some(ErrorReason::GCP_SUSPENDED), + 31 => ::std::option::Option::Some(ErrorReason::LOCATION_POLICY_VIOLATED), + 33 => ::std::option::Option::Some(ErrorReason::MISSING_ORIGIN), + 34 => ::std::option::Option::Some(ErrorReason::OVERLOADED_CREDENTIALS), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "ERROR_REASON_UNSPECIFIED" => ::std::option::Option::Some(ErrorReason::ERROR_REASON_UNSPECIFIED), + "SERVICE_DISABLED" => ::std::option::Option::Some(ErrorReason::SERVICE_DISABLED), + "BILLING_DISABLED" => ::std::option::Option::Some(ErrorReason::BILLING_DISABLED), + "API_KEY_INVALID" => ::std::option::Option::Some(ErrorReason::API_KEY_INVALID), + "API_KEY_SERVICE_BLOCKED" => ::std::option::Option::Some(ErrorReason::API_KEY_SERVICE_BLOCKED), + "API_KEY_HTTP_REFERRER_BLOCKED" => ::std::option::Option::Some(ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED), + "API_KEY_IP_ADDRESS_BLOCKED" => ::std::option::Option::Some(ErrorReason::API_KEY_IP_ADDRESS_BLOCKED), + "API_KEY_ANDROID_APP_BLOCKED" => ::std::option::Option::Some(ErrorReason::API_KEY_ANDROID_APP_BLOCKED), + "API_KEY_IOS_APP_BLOCKED" => ::std::option::Option::Some(ErrorReason::API_KEY_IOS_APP_BLOCKED), + "RATE_LIMIT_EXCEEDED" => ::std::option::Option::Some(ErrorReason::RATE_LIMIT_EXCEEDED), + "RESOURCE_QUOTA_EXCEEDED" => ::std::option::Option::Some(ErrorReason::RESOURCE_QUOTA_EXCEEDED), + "LOCATION_TAX_POLICY_VIOLATED" => ::std::option::Option::Some(ErrorReason::LOCATION_TAX_POLICY_VIOLATED), + "USER_PROJECT_DENIED" => ::std::option::Option::Some(ErrorReason::USER_PROJECT_DENIED), + "CONSUMER_SUSPENDED" => ::std::option::Option::Some(ErrorReason::CONSUMER_SUSPENDED), + "CONSUMER_INVALID" => ::std::option::Option::Some(ErrorReason::CONSUMER_INVALID), + "SECURITY_POLICY_VIOLATED" => ::std::option::Option::Some(ErrorReason::SECURITY_POLICY_VIOLATED), + "ACCESS_TOKEN_EXPIRED" => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_EXPIRED), + "ACCESS_TOKEN_SCOPE_INSUFFICIENT" => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT), + "ACCOUNT_STATE_INVALID" => ::std::option::Option::Some(ErrorReason::ACCOUNT_STATE_INVALID), + "ACCESS_TOKEN_TYPE_UNSUPPORTED" => ::std::option::Option::Some(ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED), + "CREDENTIALS_MISSING" => ::std::option::Option::Some(ErrorReason::CREDENTIALS_MISSING), + "RESOURCE_PROJECT_INVALID" => ::std::option::Option::Some(ErrorReason::RESOURCE_PROJECT_INVALID), + "SESSION_COOKIE_INVALID" => ::std::option::Option::Some(ErrorReason::SESSION_COOKIE_INVALID), + "USER_BLOCKED_BY_ADMIN" => ::std::option::Option::Some(ErrorReason::USER_BLOCKED_BY_ADMIN), + "RESOURCE_USAGE_RESTRICTION_VIOLATED" => ::std::option::Option::Some(ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED), + "SYSTEM_PARAMETER_UNSUPPORTED" => ::std::option::Option::Some(ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED), + "ORG_RESTRICTION_VIOLATION" => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_VIOLATION), + "ORG_RESTRICTION_HEADER_INVALID" => ::std::option::Option::Some(ErrorReason::ORG_RESTRICTION_HEADER_INVALID), + "SERVICE_NOT_VISIBLE" => ::std::option::Option::Some(ErrorReason::SERVICE_NOT_VISIBLE), + "GCP_SUSPENDED" => ::std::option::Option::Some(ErrorReason::GCP_SUSPENDED), + "LOCATION_POLICY_VIOLATED" => ::std::option::Option::Some(ErrorReason::LOCATION_POLICY_VIOLATED), + "MISSING_ORIGIN" => ::std::option::Option::Some(ErrorReason::MISSING_ORIGIN), + "OVERLOADED_CREDENTIALS" => ::std::option::Option::Some(ErrorReason::OVERLOADED_CREDENTIALS), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [ErrorReason] = &[ + ErrorReason::ERROR_REASON_UNSPECIFIED, + ErrorReason::SERVICE_DISABLED, + ErrorReason::BILLING_DISABLED, + ErrorReason::API_KEY_INVALID, + ErrorReason::API_KEY_SERVICE_BLOCKED, + ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED, + ErrorReason::API_KEY_IP_ADDRESS_BLOCKED, + ErrorReason::API_KEY_ANDROID_APP_BLOCKED, + ErrorReason::API_KEY_IOS_APP_BLOCKED, + ErrorReason::RATE_LIMIT_EXCEEDED, + ErrorReason::RESOURCE_QUOTA_EXCEEDED, + ErrorReason::LOCATION_TAX_POLICY_VIOLATED, + ErrorReason::USER_PROJECT_DENIED, + ErrorReason::CONSUMER_SUSPENDED, + ErrorReason::CONSUMER_INVALID, + ErrorReason::SECURITY_POLICY_VIOLATED, + ErrorReason::ACCESS_TOKEN_EXPIRED, + ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT, + ErrorReason::ACCOUNT_STATE_INVALID, + ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED, + ErrorReason::CREDENTIALS_MISSING, + ErrorReason::RESOURCE_PROJECT_INVALID, + ErrorReason::SESSION_COOKIE_INVALID, + ErrorReason::USER_BLOCKED_BY_ADMIN, + ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED, + ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED, + ErrorReason::ORG_RESTRICTION_VIOLATION, + ErrorReason::ORG_RESTRICTION_HEADER_INVALID, + ErrorReason::SERVICE_NOT_VISIBLE, + ErrorReason::GCP_SUSPENDED, + ErrorReason::LOCATION_POLICY_VIOLATED, + ErrorReason::MISSING_ORIGIN, + ErrorReason::OVERLOADED_CREDENTIALS, + ]; +} + +impl ::protobuf::EnumFull for ErrorReason { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().enum_by_package_relative_name("ErrorReason").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = match self { + ErrorReason::ERROR_REASON_UNSPECIFIED => 0, + ErrorReason::SERVICE_DISABLED => 1, + ErrorReason::BILLING_DISABLED => 2, + ErrorReason::API_KEY_INVALID => 3, + ErrorReason::API_KEY_SERVICE_BLOCKED => 4, + ErrorReason::API_KEY_HTTP_REFERRER_BLOCKED => 5, + ErrorReason::API_KEY_IP_ADDRESS_BLOCKED => 6, + ErrorReason::API_KEY_ANDROID_APP_BLOCKED => 7, + ErrorReason::API_KEY_IOS_APP_BLOCKED => 8, + ErrorReason::RATE_LIMIT_EXCEEDED => 9, + ErrorReason::RESOURCE_QUOTA_EXCEEDED => 10, + ErrorReason::LOCATION_TAX_POLICY_VIOLATED => 11, + ErrorReason::USER_PROJECT_DENIED => 12, + ErrorReason::CONSUMER_SUSPENDED => 13, + ErrorReason::CONSUMER_INVALID => 14, + ErrorReason::SECURITY_POLICY_VIOLATED => 15, + ErrorReason::ACCESS_TOKEN_EXPIRED => 16, + ErrorReason::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 17, + ErrorReason::ACCOUNT_STATE_INVALID => 18, + ErrorReason::ACCESS_TOKEN_TYPE_UNSUPPORTED => 19, + ErrorReason::CREDENTIALS_MISSING => 20, + ErrorReason::RESOURCE_PROJECT_INVALID => 21, + ErrorReason::SESSION_COOKIE_INVALID => 22, + ErrorReason::USER_BLOCKED_BY_ADMIN => 23, + ErrorReason::RESOURCE_USAGE_RESTRICTION_VIOLATED => 24, + ErrorReason::SYSTEM_PARAMETER_UNSUPPORTED => 25, + ErrorReason::ORG_RESTRICTION_VIOLATION => 26, + ErrorReason::ORG_RESTRICTION_HEADER_INVALID => 27, + ErrorReason::SERVICE_NOT_VISIBLE => 28, + ErrorReason::GCP_SUSPENDED => 29, + ErrorReason::LOCATION_POLICY_VIOLATED => 30, + ErrorReason::MISSING_ORIGIN => 31, + ErrorReason::OVERLOADED_CREDENTIALS => 32, + }; + Self::enum_descriptor().value_by_index(index) + } +} + +impl ::std::default::Default for ErrorReason { + fn default() -> Self { + ErrorReason::ERROR_REASON_UNSPECIFIED + } +} + +impl ErrorReason { + fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ErrorReason") + } +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\xba\x07\n\x0bErrorR\ + eason\x12\x1c\n\x18ERROR_REASON_UNSPECIFIED\x10\0\x12\x14\n\x10SERVICE_D\ + ISABLED\x10\x01\x12\x14\n\x10BILLING_DISABLED\x10\x02\x12\x13\n\x0fAPI_K\ + EY_INVALID\x10\x03\x12\x1b\n\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\ + \x1dAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1aAPI_KEY_IP_ADDRES\ + S_BLOCKED\x10\x08\x12\x1f\n\x1bAPI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\ + \n\x17API_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\ + \x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12\x20\n\x1cLOCATION_\ + TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\ + \x16\n\x12CONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10CONSUMER_INVALID\x10\ + \x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14ACCESS_T\ + OKEN_EXPIRED\x10\x10\x12#\n\x1fACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\ + \x12\x19\n\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\n\x1dACCESS_TOKEN_TYPE_\ + UNSUPPORTED\x10\x13\x12\x17\n\x13CREDENTIALS_MISSING\x10\x14\x12\x1c\n\ + \x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\ + \x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\n#RESOURCE_USAG\ + E_RESTRICTION_VIOLATED\x10\x19\x12\x20\n\x1cSYSTEM_PARAMETER_UNSUPPORTED\ + \x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12\"\n\x1eORG_R\ + ESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\ + \x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1e\x12\x1c\n\x18LOCATION_POLICY_VIOLA\ + TED\x10\x1f\x12\x12\n\x0eMISSING_ORIGIN\x10!\x12\x1a\n\x16OVERLOADED_CRE\ + DENTIALS\x10\"Bp\n\x0ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.g\ + olang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04G\ + APIJ\xdc\xaa\x01\n\x07\x12\x05\x0e\0\xed\x04\x01\n\xbc\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Lic\ + ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ + t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ + in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ + p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ + \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ + e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ + \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ + DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ + \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ + ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ + \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0Z\n\t\ + \n\x02\x08\x0b\x12\x03\x12\0Z\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\ + \x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\01\n\t\n\x02\x08\x08\ + \x12\x03\x14\01\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\ + \x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\ + \xbf\x05\n\x02\x05\0\x12\x05\"\0\xed\x04\x01\x1a\xb1\x05\x20Defines\x20t\ + he\x20supported\x20values\x20for\x20`google.rpc.ErrorInfo.reason`\x20for\ + \x20the\n\x20`googleapis.com`\x20error\x20domain.\x20This\x20error\x20do\ + main\x20is\x20reserved\x20for\x20[Service\n\x20Infrastructure](https://c\ + loud.google.com/service-infrastructure/docs/overview).\n\x20For\x20each\ + \x20error\x20info\x20of\x20this\x20domain,\x20the\x20metadata\x20key\x20\ + \"service\"\x20refers\x20to\x20the\n\x20logical\x20identifier\x20of\x20a\ + n\x20API\x20service,\x20such\x20as\x20\"pubsub.googleapis.com\".\x20The\ + \n\x20\"consumer\"\x20refers\x20to\x20the\x20entity\x20that\x20consumes\ + \x20an\x20API\x20Service.\x20It\x20typically\x20is\n\x20a\x20Google\x20p\ + roject\x20that\x20owns\x20the\x20client\x20application\x20or\x20the\x20s\ + erver\x20resource,\n\x20such\x20as\x20\"projects/123\".\x20Other\x20meta\ + data\x20keys\x20are\x20specific\x20to\x20each\x20error\n\x20reason.\x20F\ + or\x20more\x20information,\x20see\x20the\x20definition\x20of\x20the\x20s\ + pecific\x20error\n\x20reason.\n\n\n\n\x03\x05\0\x01\x12\x03\"\x05\x10\n-\ + \n\x04\x05\0\x02\0\x12\x03$\x02\x1f\x1a\x20\x20Do\x20not\x20use\x20this\ + \x20default\x20value.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03$\x02\x1a\n\ + \x0c\n\x05\x05\0\x02\0\x02\x12\x03$\x1d\x1e\n\xde\x03\n\x04\x05\0\x02\ + \x01\x12\x035\x02\x17\x1a\xd0\x03\x20The\x20request\x20is\x20calling\x20\ + a\x20disabled\x20service\x20for\x20a\x20consumer.\n\n\x20Example\x20of\ + \x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20co\ + ntacting\n\x20\"pubsub.googleapis.com\"\x20service\x20which\x20is\x20dis\ + abled:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"SERVICE_DISABLED\",\ + \n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\ + \x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\ + \x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\ + \x20the\x20\"pubsub.googleapis.com\"\x20has\x20been\x20disabled\x20in\n\ + \x20\"projects/123\".\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x035\x02\x12\n\ + \x0c\n\x05\x05\0\x02\x01\x02\x12\x035\x15\x16\n\xf6\x03\n\x04\x05\0\x02\ + \x02\x12\x03F\x02\x17\x1a\xe8\x03\x20The\x20request\x20whose\x20associat\ + ed\x20billing\x20account\x20is\x20disabled.\n\n\x20Example\x20of\x20an\ + \x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20fails\ + \x20to\x20contact\n\x20\"pubsub.googleapis.com\"\x20service\x20because\ + \x20the\x20associated\x20billing\x20account\x20is\n\x20disabled:\n\n\x20\ + \x20\x20\x20\x20{\x20\"reason\":\x20\"BILLING_DISABLED\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consum\ + er\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ + e\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20the\x20billing\ + \x20account\x20associated\x20has\x20been\x20disabled.\n\n\x0c\n\x05\x05\ + \0\x02\x02\x01\x12\x03F\x02\x12\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03F\ + \x15\x16\n\xda\x03\n\x04\x05\0\x02\x03\x12\x03U\x02\x16\x1a\xcc\x03\x20T\ + he\x20request\x20is\x20denied\x20because\x20the\x20provided\x20[API\n\ + \x20key](https://cloud.google.com/docs/authentication/api-keys)\x20is\ + \x20invalid.\x20It\n\x20may\x20be\x20in\x20a\x20bad\x20format,\x20cannot\ + \x20be\x20found,\x20or\x20has\x20been\x20expired).\n\n\x20Example\x20of\ + \x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20contacting\n\x20\ + \"storage.googleapis.com\"\x20service\x20with\x20an\x20invalid\x20API\ + \x20key:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_INVALID\",\ + \n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\ + \x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\ + \x03U\x02\x11\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03U\x14\x15\n\x8f\x04\n\ + \x04\x05\0\x02\x04\x12\x03e\x02\x1e\x1a\x81\x04\x20The\x20request\x20is\ + \x20denied\x20because\x20it\x20violates\x20[API\x20key\x20API\n\x20restr\ + ictions](https://cloud.google.com/docs/authentication/api-keys#adding_ap\ + i_restrictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ + \x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\x20the\n\x20\"st\ + orage.googleapis.com\"\x20service\x20because\x20this\x20service\x20is\ + \x20restricted\x20in\x20the\n\x20API\x20key:\n\n\x20\x20\x20\x20\x20{\ + \x20\"reason\":\x20\"API_KEY_SERVICE_BLOCKED\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\ + \"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\ + \x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ + \x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ + \x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03e\x02\x19\n\x0c\n\ + \x05\x05\0\x02\x04\x02\x12\x03e\x1c\x1d\n\xae\x04\n\x04\x05\0\x02\x05\ + \x12\x03u\x02$\x1a\xa0\x04\x20The\x20request\x20is\x20denied\x20because\ + \x20it\x20violates\x20[API\x20key\x20HTTP\n\x20restrictions](https://clo\ + ud.google.com/docs/authentication/api-keys#adding_http_restrictions).\n\ + \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ + rojects/123\"\x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20\ + service\x20because\x20the\x20http\x20referrer\x20of\x20the\x20request\n\ + \x20violates\x20API\x20key\x20HTTP\x20restrictions:\n\n\x20\x20\x20\x20\ + \x20{\x20\"reason\":\x20\"API_KEY_HTTP_REFERRER_BLOCKED\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consum\ + er\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ + e\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20}\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03u\x02\x1f\n\x0c\ + \n\x05\x05\0\x02\x05\x02\x12\x03u\"#\n\xbb\x04\n\x04\x05\0\x02\x06\x12\ + \x04\x85\x01\x02!\x1a\xac\x04\x20The\x20request\x20is\x20denied\x20becau\ + se\x20it\x20violates\x20[API\x20key\x20IP\x20address\n\x20restrictions](\ + https://cloud.google.com/docs/authentication/api-keys#adding_application\ + _restrictions).\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ + \x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\n\x20\"storage.g\ + oogleapis.com\"\x20service\x20because\x20the\x20caller\x20IP\x20of\x20th\ + e\x20request\n\x20violates\x20API\x20key\x20IP\x20address\x20restriction\ + s:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_IP_ADDRESS_BLOCK\ + ED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ + \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\ + \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x06\x01\ + \x12\x04\x85\x01\x02\x1c\n\r\n\x05\x05\0\x02\x06\x02\x12\x04\x85\x01\x1f\ + \x20\n\xd6\x04\n\x04\x05\0\x02\x07\x12\x04\x95\x01\x02\"\x1a\xc7\x04\x20\ + The\x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20k\ + ey\x20Android\x20application\n\x20restrictions](https://cloud.google.com\ + /docs/authentication/api-keys#adding_application_restrictions).\n\n\x20E\ + xample\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects\ + /123\"\x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20service\ + \x20because\x20the\x20request\x20from\x20the\x20Android\x20apps\n\x20vio\ + lates\x20the\x20API\x20key\x20Android\x20application\x20restrictions:\n\ + \n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"API_KEY_ANDROID_APP_BLOCKED\ + \",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ + \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"service\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x07\x01\x12\ + \x04\x95\x01\x02\x1d\n\r\n\x05\x05\0\x02\x07\x02\x12\x04\x95\x01\x20!\n\ + \xc6\x04\n\x04\x05\0\x02\x08\x12\x04\xa5\x01\x02\x1f\x1a\xb7\x04\x20The\ + \x20request\x20is\x20denied\x20because\x20it\x20violates\x20[API\x20key\ + \x20iOS\x20application\n\x20restrictions](https://cloud.google.com/docs/\ + authentication/api-keys#adding_application_restrictions).\n\n\x20Example\ + \x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\ + \x20fails\x20to\x20call\n\x20\"storage.googleapis.com\"\x20service\x20be\ + cause\x20the\x20request\x20from\x20the\x20iOS\x20apps\n\x20violates\x20t\ + he\x20API\x20key\x20iOS\x20application\x20restrictions:\n\n\x20\x20\x20\ + \x20\x20{\x20\"reason\":\x20\"API_KEY_IOS_APP_BLOCKED\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consum\ + er\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ + e\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x08\x01\x12\x04\xa5\x01\x02\x19\ + \n\r\n\x05\x05\0\x02\x08\x02\x12\x04\xa5\x01\x1c\x1e\n\x80\n\n\x04\x05\0\ + \x02\t\x12\x04\xc8\x01\x02\x1a\x1a\xf1\t\x20The\x20request\x20is\x20deni\ + ed\x20because\x20there\x20is\x20not\x20enough\x20rate\x20quota\x20for\ + \x20the\n\x20consumer.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\ + \x20the\x20consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\ + \"pubsub.googleapis.com\"\x20service\x20because\x20consumer's\x20rate\ + \x20quota\x20usage\x20has\n\x20reached\x20the\x20maximum\x20value\x20set\ + \x20for\x20the\x20quota\x20limit\n\x20\"ReadsPerMinutePerProject\"\x20on\ + \x20the\x20quota\x20metric\n\x20\"pubsub.googleapis.com/read_requests\":\ + \n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RATE_LIMIT_EXCEEDED\",\n\ + \x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\ + \x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\"service\":\x20\"pubsub.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"quota_metric\":\x20\"pubsub.googleapis.com/read_requests\"\ + ,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"ReadsPerMin\ + utePerProject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ + \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20consumer\x20\"p\ + rojects/123\"\x20checks\x20quota\x20on\n\x20the\x20service\x20\"dataflow\ + .googleapis.com\"\x20and\x20hits\x20the\x20organization\x20quota\n\x20li\ + mit\x20\"DefaultRequestsPerMinutePerOrganization\"\x20on\x20the\x20metri\ + c\n\x20\"dataflow.googleapis.com/default_requests\".\n\n\x20\x20\x20\x20\ + \x20{\x20\"reason\":\x20\"RATE_LIMIT_EXCEEDED\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\ + \"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\ + \x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ + \x20\"dataflow.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"\ + quota_metric\":\x20\"dataflow.googleapis.com/default_requests\",\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"DefaultRequestsPer\ + MinutePerOrganization\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ + \x20}\n\n\r\n\x05\x05\0\x02\t\x01\x12\x04\xc8\x01\x02\x15\n\r\n\x05\x05\ + \0\x02\t\x02\x12\x04\xc8\x01\x18\x19\n\xc0\t\n\x04\x05\0\x02\n\x12\x04\ + \xea\x01\x02\x1e\x1a\xb1\t\x20The\x20request\x20is\x20denied\x20because\ + \x20there\x20is\x20not\x20enough\x20resource\x20quota\x20for\x20the\n\ + \x20consumer.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20\ + consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\"compute.go\ + ogleapis.com\"\x20service\x20because\x20consumer's\x20resource\x20quota\ + \x20usage\n\x20has\x20reached\x20the\x20maximum\x20value\x20set\x20for\ + \x20the\x20quota\x20limit\x20\"VMsPerProject\"\n\x20on\x20the\x20quota\ + \x20metric\x20\"compute.googleapis.com/vms\":\n\n\x20\x20\x20\x20\x20{\ + \x20\"reason\":\x20\"RESOURCE_QUOTA_EXCEEDED\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\ + \"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\ + \x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\ + \x20\"compute.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"q\ + uota_metric\":\x20\"compute.googleapis.com/vms\",\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"quota_limit\":\x20\"VMsPerProject\"\n\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20of\x20an\x20Error\ + Info\x20when\x20the\x20consumer\x20\"projects/123\"\x20checks\x20resourc\ + e\n\x20quota\x20on\x20the\x20service\x20\"dataflow.googleapis.com\"\x20a\ + nd\x20hits\x20the\x20organization\n\x20quota\x20limit\x20\"jobs-per-orga\ + nization\"\x20on\x20the\x20metric\n\x20\"dataflow.googleapis.com/job_cou\ + nt\".\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RESOURCE_QUOTA_EXCEED\ + ED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\ + \x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\"service\":\x20\"dataflow.googleapis.com\",\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\"quota_metric\":\x20\"dataflow.googleapis.com/j\ + ob_count\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"quota_limit\":\x20\"j\ + obs-per-organization\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ + \x20}\n\n\r\n\x05\x05\0\x02\n\x01\x12\x04\xea\x01\x02\x19\n\r\n\x05\x05\ + \0\x02\n\x02\x12\x04\xea\x01\x1c\x1d\n\xdd\x05\n\x04\x05\0\x02\x0b\x12\ + \x04\xff\x01\x02$\x1a\xce\x05\x20The\x20request\x20whose\x20associated\ + \x20billing\x20account\x20address\x20is\x20in\x20a\x20tax\x20restricted\ + \n\x20location,\x20violates\x20the\x20local\x20tax\x20restrictions\x20wh\ + en\x20creating\x20resources\x20in\n\x20the\x20restricted\x20region.\n\n\ + \x20Example\x20of\x20an\x20ErrorInfo\x20when\x20creating\x20the\x20Cloud\ + \x20Storage\x20Bucket\x20in\x20the\n\x20container\x20\"projects/123\"\ + \x20under\x20a\x20tax\x20restricted\x20region\n\x20\"locations/asia-nort\ + heast3\":\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"LOCATION_TAX_POLI\ + CY_VIOLATED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.\ + com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"location\":\x20\"locations/asia-northe\ + ast3\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\x20This\ + \x20response\x20indicates\x20creating\x20the\x20Cloud\x20Storage\x20Buck\ + et\x20in\n\x20\"locations/asia-northeast3\"\x20violates\x20the\x20locati\ + on\x20tax\x20restriction.\n\n\r\n\x05\x05\0\x02\x0b\x01\x12\x04\xff\x01\ + \x02\x1e\n\r\n\x05\x05\0\x02\x0b\x02\x12\x04\xff\x01!#\n\xda\x04\n\x04\ + \x05\0\x02\x0c\x12\x04\x90\x02\x02\x1b\x1a\xcb\x04\x20The\x20request\x20\ + is\x20denied\x20because\x20the\x20caller\x20does\x20not\x20have\x20requi\ + red\x20permission\n\x20on\x20the\x20user\x20project\x20\"projects/123\"\ + \x20or\x20the\x20user\x20project\x20is\x20invalid.\x20For\x20more\n\x20i\ + nformation,\x20check\x20the\x20[userProject\x20System\n\x20Parameters](h\ + ttps://cloud.google.com/apis/docs/system-parameters).\n\n\x20Example\x20\ + of\x20an\x20ErrorInfo\x20when\x20the\x20caller\x20is\x20calling\x20Cloud\ + \x20Storage\x20service\n\x20with\x20insufficient\x20permissions\x20on\ + \x20the\x20user\x20project:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\ + \"USER_PROJECT_DENIED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"g\ + oogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/123\",\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\ + \"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\ + \0\x02\x0c\x01\x12\x04\x90\x02\x02\x15\n\r\n\x05\x05\0\x02\x0c\x02\x12\ + \x04\x90\x02\x18\x1a\n\xb9\x04\n\x04\x05\0\x02\r\x12\x04\xa1\x02\x02\x1a\ + \x1a\xaa\x04\x20The\x20request\x20is\x20denied\x20because\x20the\x20cons\ + umer\x20\"projects/123\"\x20is\x20suspended\x20due\n\x20to\x20Terms\x20o\ + f\x20Service(Tos)\x20violations.\x20Check\x20[Project\x20suspension\n\ + \x20guidelines](https://cloud.google.com/resource-manager/docs/project-s\ + uspension-guidelines)\n\x20for\x20more\x20information.\n\n\x20Example\ + \x20of\x20an\x20ErrorInfo\x20when\x20calling\x20Cloud\x20Storage\x20serv\ + ice\x20with\x20the\n\x20suspended\x20consumer\x20\"projects/123\":\n\n\ + \x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CONSUMER_SUSPENDED\",\n\x20\ + \x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \"service\":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\ + }\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\r\x01\x12\x04\xa1\x02\x02\ + \x14\n\r\n\x05\x05\0\x02\r\x02\x12\x04\xa1\x02\x17\x19\n\xbd\x03\n\x04\ + \x05\0\x02\x0e\x12\x04\xb0\x02\x02\x18\x1a\xae\x03\x20The\x20request\x20\ + is\x20denied\x20because\x20the\x20associated\x20consumer\x20is\x20invali\ + d.\x20It\x20may\x20be\n\x20in\x20a\x20bad\x20format,\x20cannot\x20be\x20\ + found,\x20or\x20have\x20been\x20deleted.\n\n\x20Example\x20of\x20an\x20E\ + rrorInfo\x20when\x20calling\x20Cloud\x20Storage\x20service\x20with\x20th\ + e\n\x20invalid\x20consumer\x20\"projects/123\":\n\n\x20\x20\x20\x20\x20{\ + \x20\"reason\":\x20\"CONSUMER_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"\ + domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\ + \":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"project\ + s/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.\ + googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ + \n\r\n\x05\x05\0\x02\x0e\x01\x12\x04\xb0\x02\x02\x12\n\r\n\x05\x05\0\x02\ + \x0e\x02\x12\x04\xb0\x02\x15\x17\n\xc8\x06\n\x04\x05\0\x02\x0f\x12\x04\ + \xc5\x02\x02\x20\x1a\xb9\x06\x20The\x20request\x20is\x20denied\x20becaus\ + e\x20it\x20violates\x20[VPC\x20Service\n\x20Controls](https://cloud.goog\ + le.com/vpc-service-controls/docs/overview).\n\x20The\x20'uid'\x20field\ + \x20is\x20a\x20random\x20generated\x20identifier\x20that\x20customer\x20\ + can\x20use\x20it\n\x20to\x20search\x20the\x20audit\x20log\x20for\x20a\ + \x20request\x20rejected\x20by\x20VPC\x20Service\x20Controls.\x20For\n\ + \x20more\x20information,\x20please\x20refer\x20[VPC\x20Service\x20Contro\ + ls\n\x20Troubleshooting](https://cloud.google.com/vpc-service-controls/d\ + ocs/troubleshooting#unique-id)\n\n\x20Example\x20of\x20an\x20ErrorInfo\ + \x20when\x20the\x20consumer\x20\"projects/123\"\x20fails\x20to\x20call\n\ + \x20Cloud\x20Storage\x20service\x20because\x20the\x20request\x20is\x20pr\ + ohibited\x20by\x20the\x20VPC\x20Service\n\x20Controls.\n\n\x20\x20\x20\ + \x20\x20{\x20\"reason\":\x20\"SECURITY_POLICY_VIOLATED\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"uid\":\ + \x20\"123456789abcde\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\ + \":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\ + \":\x20\"storage.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x0f\x01\x12\x04\xc5\x02\x02\x1a\ + \n\r\n\x05\x05\0\x02\x0f\x02\x12\x04\xc5\x02\x1d\x1f\n\x99\x03\n\x04\x05\ + \0\x02\x10\x12\x04\xd3\x02\x02\x1c\x1a\x8a\x03\x20The\x20request\x20is\ + \x20denied\x20because\x20the\x20provided\x20access\x20token\x20has\x20ex\ + pired.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\ + \x20is\x20calling\x20Cloud\x20Storage\x20service\n\x20with\x20an\x20expi\ + red\x20access\x20token:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACC\ + ESS_TOKEN_EXPIRED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googl\ + eapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\ + \n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1\ + .Storage.GetObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ + \x20}\n\n\r\n\x05\x05\0\x02\x10\x01\x12\x04\xd3\x02\x02\x16\n\r\n\x05\ + \x05\0\x02\x10\x02\x12\x04\xd3\x02\x19\x1b\n\xc4\x05\n\x04\x05\0\x02\x11\ + \x12\x04\xe6\x02\x02'\x1a\xb5\x05\x20The\x20request\x20is\x20denied\x20b\ + ecause\x20the\x20provided\x20access\x20token\x20doesn't\x20have\x20at\n\ + \x20least\x20one\x20of\x20the\x20acceptable\x20scopes\x20required\x20for\ + \x20the\x20API.\x20Please\x20check\n\x20[OAuth\x202.0\x20Scopes\x20for\ + \x20Google\n\x20APIs](https://developers.google.com/identity/protocols/o\ + auth2/scopes)\x20for\n\x20the\x20list\x20of\x20the\x20OAuth\x202.0\x20sc\ + opes\x20that\x20you\x20might\x20need\x20to\x20request\x20to\x20access\n\ + \x20the\x20API.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ + \x20request\x20is\x20calling\x20Cloud\x20Storage\x20service\n\x20with\ + \x20an\x20access\x20token\x20that\x20is\x20missing\x20required\x20scopes\ + :\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCESS_TOKEN_SCOPE_INSUFF\ + ICIENT\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\"\ + ,\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Storage.G\ + etObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ + \x05\x05\0\x02\x11\x01\x12\x04\xe6\x02\x02!\n\r\n\x05\x05\0\x02\x11\x02\ + \x12\x04\xe6\x02$&\n\xf1\x06\n\x04\x05\0\x02\x12\x12\x04\xfc\x02\x02\x1d\ + \x1a\xe2\x06\x20The\x20request\x20is\x20denied\x20because\x20the\x20acco\ + unt\x20associated\x20with\x20the\x20provided\n\x20access\x20token\x20is\ + \x20in\x20an\x20invalid\x20state,\x20such\x20as\x20disabled\x20or\x20del\ + eted.\n\x20For\x20more\x20information,\x20see\x20https://cloud.google.co\ + m/docs/authentication.\n\n\x20Warning:\x20For\x20privacy\x20reasons,\x20\ + the\x20server\x20may\x20not\x20be\x20able\x20to\x20disclose\x20the\n\x20\ + email\x20address\x20for\x20some\x20accounts.\x20The\x20client\x20MUST\ + \x20NOT\x20depend\x20on\x20the\n\x20availability\x20of\x20the\x20`email`\ + \x20attribute.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ + \x20request\x20is\x20to\x20the\x20Cloud\x20Storage\x20API\x20with\n\x20a\ + n\x20access\x20token\x20that\x20is\x20associated\x20with\x20a\x20disable\ + d\x20or\x20deleted\x20[service\n\x20account](http://cloud/iam/docs/servi\ + ce-accounts):\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCOUNT_STATE\ + _INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\ + \",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Stora\ + ge.GetObject\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"email\":\x20\"use\ + r@123.iam.gserviceaccount.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ + \x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x12\x01\x12\x04\xfc\x02\x02\x17\n\r\ + \n\x05\x05\0\x02\x12\x02\x12\x04\xfc\x02\x1a\x1c\n\xc9\x03\n\x04\x05\0\ + \x02\x13\x12\x04\x8b\x03\x02%\x1a\xba\x03\x20The\x20request\x20is\x20den\ + ied\x20because\x20the\x20type\x20of\x20the\x20provided\x20access\x20toke\ + n\x20is\x20not\n\x20supported\x20by\x20the\x20API\x20being\x20called.\n\ + \n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\ + \x20to\x20the\x20Cloud\x20Storage\x20API\x20with\n\x20an\x20unsupported\ + \x20token\x20type.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"ACCESS_T\ + OKEN_TYPE_UNSUPPORTED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"g\ + oogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\ + \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage\ + .v1.Storage.GetObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ + \x20}\n\n\r\n\x05\x05\0\x02\x13\x01\x12\x04\x8b\x03\x02\x1f\n\r\n\x05\ + \x05\0\x02\x13\x02\x12\x04\x8b\x03\"$\n\xc2\x04\n\x04\x05\0\x02\x14\x12\ + \x04\x9c\x03\x02\x1b\x1a\xb3\x04\x20The\x20request\x20is\x20denied\x20be\ + cause\x20the\x20request\x20doesn't\x20have\x20any\x20authentication\n\ + \x20credentials.\x20For\x20more\x20information\x20regarding\x20the\x20su\ + pported\x20authentication\n\x20strategies\x20for\x20Google\x20Cloud\x20A\ + PIs,\x20see\n\x20https://cloud.google.com/docs/authentication.\n\n\x20Ex\ + ample\x20of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20to\x20\ + the\x20Cloud\x20Storage\x20API\n\x20without\x20any\x20authentication\x20\ + credentials.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"CREDENTIALS_MI\ + SSING\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\ + \n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.Storage.G\ + etObject\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ + \x05\x05\0\x02\x14\x01\x12\x04\x9c\x03\x02\x15\n\r\n\x05\x05\0\x02\x14\ + \x02\x12\x04\x9c\x03\x18\x1a\n\xa8\x05\n\x04\x05\0\x02\x15\x12\x04\xaf\ + \x03\x02\x20\x1a\x99\x05\x20The\x20request\x20is\x20denied\x20because\ + \x20the\x20provided\x20project\x20owning\x20the\x20resource\n\x20which\ + \x20acts\x20as\x20the\x20[API\n\x20consumer](https://cloud.google.com/ap\ + is/design/glossary#api_consumer)\x20is\n\x20invalid.\x20It\x20may\x20be\ + \x20in\x20a\x20bad\x20format\x20or\x20empty.\n\n\x20Example\x20of\x20an\ + \x20ErrorInfo\x20when\x20the\x20request\x20is\x20to\x20the\x20Cloud\x20F\ + unctions\x20API,\n\x20but\x20the\x20offered\x20resource\x20project\x20in\ + \x20the\x20request\x20in\x20a\x20bad\x20format\x20which\x20can't\n\x20pe\ + rform\x20the\x20ListFunctions\x20method.\n\n\x20\x20\x20\x20\x20{\x20\"r\ + eason\":\x20\"RESOURCE_PROJECT_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\ + \"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metada\ + ta\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"cloudf\ + unctions.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\ + \":\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"google.cloud.functions.v1.Clo\ + udFunctionsService.ListFunctions\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x15\x01\x12\x04\xaf\x03\x02\x1a\ + \n\r\n\x05\x05\0\x02\x15\x02\x12\x04\xaf\x03\x1d\x1f\n\xe0\x03\n\x04\x05\ + \0\x02\x16\x12\x04\xbf\x03\x02\x1e\x1a\xd1\x03\x20The\x20request\x20is\ + \x20denied\x20because\x20the\x20provided\x20session\x20cookie\x20is\x20m\ + issing,\n\x20invalid\x20or\x20failed\x20to\x20decode.\n\n\x20Example\x20\ + of\x20an\x20ErrorInfo\x20when\x20the\x20request\x20is\x20calling\x20Clou\ + d\x20Storage\x20service\n\x20with\x20a\x20SID\x20cookie\x20which\x20can'\ + t\x20be\x20decoded.\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"SESSION\ + _COOKIE_INVALID\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"googlea\ + pis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googleapis.com\",\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\"method\":\x20\"google.storage.v1.S\ + torage.GetObject\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"cookie\":\x20\ + \"SID\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\ + \x05\x05\0\x02\x16\x01\x12\x04\xbf\x03\x02\x18\n\r\n\x05\x05\0\x02\x16\ + \x02\x12\x04\xbf\x03\x1b\x1d\n\xb3\x04\n\x04\x05\0\x02\x17\x12\x04\xd0\ + \x03\x02\x1d\x1a\xa4\x04\x20The\x20request\x20is\x20denied\x20because\ + \x20the\x20user\x20is\x20from\x20a\x20Google\x20Workspace\x20customer\n\ + \x20that\x20blocks\x20their\x20users\x20from\x20accessing\x20a\x20partic\ + ular\x20service.\n\n\x20Example\x20scenario:\x20https://support.google.c\ + om/a/answer/9197205?hl=en\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20whe\ + n\x20access\x20to\x20Google\x20Cloud\x20Storage\x20service\x20is\n\x20bl\ + ocked\x20by\x20the\x20Google\x20Workspace\x20administrator:\n\n\x20\x20\ + \x20\x20\x20{\x20\"reason\":\x20\"USER_BLOCKED_BY_ADMIN\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ + e\":\x20\"storage.googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\"method\":\x20\"google.storage.v1.Storage.GetObject\",\n\x20\x20\ + \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x17\ + \x01\x12\x04\xd0\x03\x02\x17\n\r\n\x05\x05\0\x02\x17\x02\x12\x04\xd0\x03\ + \x1a\x1c\n\xe5\x04\n\x04\x05\0\x02\x18\x12\x04\xe1\x03\x02+\x1a\xd6\x04\ + \x20The\x20request\x20is\x20denied\x20because\x20the\x20resource\x20serv\ + ice\x20usage\x20is\x20restricted\n\x20by\x20administrators\x20according\ + \x20to\x20the\x20organization\x20policy\x20constraint.\n\x20For\x20more\ + \x20information\x20see\n\x20https://cloud.google.com/resource-manager/do\ + cs/organization-policy/restricting-services.\n\n\x20Example\x20of\x20an\ + \x20ErrorInfo\x20when\x20access\x20to\x20Google\x20Cloud\x20Storage\x20s\ + ervice\x20is\n\x20restricted\x20by\x20Resource\x20Usage\x20Restriction\ + \x20policy:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"RESOURCE_USAGE_\ + RESTRICTION_VIOLATED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\":\x20\"go\ + ogleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/project-123\ + \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.googl\ + eapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\r\ + \n\x05\x05\0\x02\x18\x01\x12\x04\xe1\x03\x02%\n\r\n\x05\x05\0\x02\x18\ + \x02\x12\x04\xe1\x03(*\n\xae\x04\n\x04\x05\0\x02\x19\x12\x04\xf3\x03\x02\ + $\x1a\x9f\x04\x20Unimplemented.\x20Do\x20not\x20use.\n\n\x20The\x20reque\ + st\x20is\x20denied\x20because\x20it\x20contains\x20unsupported\x20system\ + \x20parameters\x20in\n\x20URL\x20query\x20parameters\x20or\x20HTTP\x20he\ + aders.\x20For\x20more\x20information,\n\x20see\x20https://cloud.google.c\ + om/apis/docs/system-parameters\n\n\x20Example\x20of\x20an\x20ErrorInfo\ + \x20when\x20access\x20\"pubsub.googleapis.com\"\x20service\x20with\n\x20\ + a\x20request\x20header\x20of\x20\"x-goog-user-ip\":\n\n\x20\x20\x20\x20\ + \x20{\x20\"reason\":\x20\"SYSTEM_PARAMETER_UNSUPPORTED\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\ + \x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"servic\ + e\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \"parameter\":\x20\"x-goog-user-ip\"\n\x20\x20\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20}\n\n\r\n\x05\x05\0\x02\x19\x01\x12\x04\xf3\x03\x02\ + \x1e\n\r\n\x05\x05\0\x02\x19\x02\x12\x04\xf3\x03!#\n\xe8\x03\n\x04\x05\0\ + \x02\x1a\x12\x04\x84\x04\x02!\x1a\xd9\x03\x20The\x20request\x20is\x20den\ + ied\x20because\x20it\x20violates\x20Org\x20Restriction:\x20the\x20reques\ + ted\n\x20resource\x20does\x20not\x20belong\x20to\x20allowed\x20organizat\ + ions\x20specified\x20in\n\x20\"X-Goog-Allowed-Resources\"\x20header.\n\n\ + \x20Example\x20of\x20an\x20ErrorInfo\x20when\x20accessing\x20a\x20GCP\ + \x20resource\x20that\x20is\x20restricted\x20by\n\x20Org\x20Restriction\ + \x20for\x20\"pubsub.googleapis.com\"\x20service.\n\n\x20{\n\x20\x20\x20r\ + eason:\x20\"ORG_RESTRICTION_VIOLATION\"\n\x20\x20\x20domain:\x20\"google\ + apis.com\"\n\x20\x20\x20metadata\x20{\n\x20\x20\x20\x20\x20\"consumer\":\ + \"projects/123456\"\n\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.google\ + apis.com\"\n\x20\x20\x20}\n\x20}\n\n\r\n\x05\x05\0\x02\x1a\x01\x12\x04\ + \x84\x04\x02\x1b\n\r\n\x05\x05\0\x02\x1a\x02\x12\x04\x84\x04\x1e\x20\n\ + \x97\x03\n\x04\x05\0\x02\x1b\x12\x04\x95\x04\x02&\x1a\x88\x03\x20The\x20\ + request\x20is\x20denied\x20because\x20\"X-Goog-Allowed-Resources\"\x20he\ + ader\x20is\x20in\x20a\x20bad\n\x20format.\n\n\x20Example\x20of\x20an\x20\ + ErrorInfo\x20when\n\x20accessing\x20\"pubsub.googleapis.com\"\x20service\ + \x20with\x20an\x20invalid\n\x20\"X-Goog-Allowed-Resources\"\x20request\ + \x20header.\n\n\x20{\n\x20\x20\x20reason:\x20\"ORG_RESTRICTION_HEADER_IN\ + VALID\"\n\x20\x20\x20domain:\x20\"googleapis.com\"\n\x20\x20\x20metadata\ + \x20{\n\x20\x20\x20\x20\x20\"consumer\":\"projects/123456\"\n\x20\x20\ + \x20\x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20}\n\ + \x20}\n\n\r\n\x05\x05\0\x02\x1b\x01\x12\x04\x95\x04\x02\x20\n\r\n\x05\ + \x05\0\x02\x1b\x02\x12\x04\x95\x04#%\n\xb2\x04\n\x04\x05\0\x02\x1c\x12\ + \x04\xa8\x04\x02\x1b\x1a\xa3\x04\x20Unimplemented.\x20Do\x20not\x20use.\ + \n\n\x20The\x20request\x20is\x20calling\x20a\x20service\x20that\x20is\ + \x20not\x20visible\x20to\x20the\x20consumer.\n\n\x20Example\x20of\x20an\ + \x20ErrorInfo\x20when\x20the\x20consumer\x20\"projects/123\"\x20contacti\ + ng\n\x20\x20\"pubsub.googleapis.com\"\x20service\x20which\x20is\x20not\ + \x20visible\x20to\x20the\x20consumer.\n\n\x20\x20\x20\x20\x20{\x20\"reas\ + on\":\x20\"SERVICE_NOT_VISIBLE\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\ + \":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\ + \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/1\ + 23\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.goog\ + leapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\ + \x20This\x20response\x20indicates\x20the\x20\"pubsub.googleapis.com\"\ + \x20is\x20not\x20visible\x20to\n\x20\"projects/123\"\x20(or\x20it\x20may\ + \x20not\x20exist).\n\n\r\n\x05\x05\0\x02\x1c\x01\x12\x04\xa8\x04\x02\x15\ + \n\r\n\x05\x05\0\x02\x1c\x02\x12\x04\xa8\x04\x18\x1a\n\xea\x03\n\x04\x05\ + \0\x02\x1d\x12\x04\xb8\x04\x02\x15\x1a\xdb\x03\x20The\x20request\x20is\ + \x20related\x20to\x20a\x20project\x20for\x20which\x20GCP\x20access\x20is\ + \x20suspended.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20the\ + \x20consumer\x20\"projects/123\"\x20fails\x20to\x20contact\n\x20\"pubsub\ + .googleapis.com\"\x20service\x20because\x20GCP\x20access\x20is\x20suspen\ + ded:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\x20\"GCP_SUSPENDED\",\n\x20\ + \x20\x20\x20\x20\x20\x20\"domain\":\x20\"googleapis.com\",\n\x20\x20\x20\ + \x20\x20\x20\x20\"metadata\":\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \"consumer\":\x20\"projects/123\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20\x20\x20\x20\x20}\ + \n\x20\x20\x20\x20\x20}\n\n\x20This\x20response\x20indicates\x20the\x20a\ + ssociated\x20GCP\x20account\x20has\x20been\x20suspended.\n\n\r\n\x05\x05\ + \0\x02\x1d\x01\x12\x04\xb8\x04\x02\x0f\n\r\n\x05\x05\0\x02\x1d\x02\x12\ + \x04\xb8\x04\x12\x14\n\xef\x04\n\x04\x05\0\x02\x1e\x12\x04\xcb\x04\x02\ + \x20\x1a\xe0\x04\x20The\x20request\x20violates\x20the\x20location\x20pol\ + icies\x20when\x20creating\x20resources\x20in\n\x20the\x20restricted\x20r\ + egion.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\x20creating\x20th\ + e\x20Cloud\x20Storage\x20Bucket\x20by\n\x20\"projects/123\"\x20for\x20se\ + rvice\x20storage.googleapis.com:\n\n\x20\x20\x20\x20\x20{\x20\"reason\":\ + \x20\"LOCATION_POLICY_VIOLATED\",\n\x20\x20\x20\x20\x20\x20\x20\"domain\ + \":\x20\"googleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20\"metadata\":\ + \x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"consumer\":\x20\"projects/1\ + 23\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\"service\":\x20\"storage.goo\ + gleapis.com\",\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\n\ + \x20This\x20response\x20indicates\x20creating\x20the\x20Cloud\x20Storage\ + \x20Bucket\x20in\n\x20\"locations/asia-northeast3\"\x20violates\x20at\ + \x20least\x20one\x20location\x20policy.\n\x20The\x20troubleshooting\x20g\ + uidance\x20is\x20provided\x20in\x20the\x20Help\x20links.\n\n\r\n\x05\x05\ + \0\x02\x1e\x01\x12\x04\xcb\x04\x02\x1a\n\r\n\x05\x05\0\x02\x1e\x02\x12\ + \x04\xcb\x04\x1d\x1f\n\xde\x02\n\x04\x05\0\x02\x1f\x12\x04\xdb\x04\x02\ + \x16\x1a\xcf\x02\x20The\x20request\x20is\x20denied\x20because\x20origin\ + \x20request\x20header\x20is\x20missing.\n\n\x20Example\x20of\x20an\x20Er\ + rorInfo\x20when\n\x20accessing\x20\"pubsub.googleapis.com\"\x20service\ + \x20with\x20an\x20empty\x20\"Origin\"\x20request\n\x20header.\n\n\x20{\n\ + \x20\x20\x20reason:\x20\"MISSING_ORIGIN\"\n\x20\x20\x20domain:\x20\"goog\ + leapis.com\"\n\x20\x20\x20metadata\x20{\n\x20\x20\x20\x20\x20\"consumer\ + \":\"projects/123456\"\n\x20\x20\x20\x20\x20\"service\":\x20\"pubsub.goo\ + gleapis.com\"\n\x20\x20\x20}\n\x20}\n\n\r\n\x05\x05\0\x02\x1f\x01\x12\ + \x04\xdb\x04\x02\x10\n\r\n\x05\x05\0\x02\x1f\x02\x12\x04\xdb\x04\x13\x15\ + \n\xec\x03\n\x04\x05\0\x02\x20\x12\x04\xec\x04\x02\x1e\x1a\xdd\x03\x20Th\ + e\x20request\x20is\x20denied\x20because\x20the\x20request\x20contains\ + \x20more\x20than\x20one\x20credential\n\x20type\x20that\x20are\x20indivi\ + dually\x20acceptable,\x20but\x20not\x20together.\x20The\x20customer\n\ + \x20should\x20retry\x20their\x20request\x20with\x20only\x20one\x20set\ + \x20of\x20credentials.\n\n\x20Example\x20of\x20an\x20ErrorInfo\x20when\n\ + \x20accessing\x20\"pubsub.googleapis.com\"\x20service\x20with\x20overloa\ + ded\x20credentials.\n\n\x20{\n\x20\x20\x20reason:\x20\"OVERLOADED_CREDEN\ + TIALS\"\n\x20\x20\x20domain:\x20\"googleapis.com\"\n\x20\x20\x20metadata\ + \x20{\n\x20\x20\x20\x20\x20\"consumer\":\"projects/123456\"\n\x20\x20\ + \x20\x20\x20\"service\":\x20\"pubsub.googleapis.com\"\n\x20\x20\x20}\n\ + \x20}\n\n\r\n\x05\x05\0\x02\x20\x01\x12\x04\xec\x04\x02\x18\n\r\n\x05\ + \x05\0\x02\x20\x02\x12\x04\xec\x04\x1b\x1db\x06proto3\ +"; + +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) +} + +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(0); + let mut messages = ::std::vec::Vec::with_capacity(0); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(ErrorReason::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) + }) +} diff --git a/googleapis-raw/src/api/field_behavior.rs b/googleapis-raw/src/api/field_behavior.rs index dfef8b7..6c53943 100644 --- a/googleapis-raw/src/api/field_behavior.rs +++ b/googleapis-raw/src/api/field_behavior.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -46,6 +46,12 @@ pub enum FieldBehavior { INPUT_ONLY = 4, // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.IMMUTABLE) IMMUTABLE = 5, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.UNORDERED_LIST) + UNORDERED_LIST = 6, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.NON_EMPTY_DEFAULT) + NON_EMPTY_DEFAULT = 7, + // @@protoc_insertion_point(enum_value:google.api.FieldBehavior.IDENTIFIER) + IDENTIFIER = 8, } impl ::protobuf::Enum for FieldBehavior { @@ -63,6 +69,9 @@ impl ::protobuf::Enum for FieldBehavior { 3 => ::std::option::Option::Some(FieldBehavior::OUTPUT_ONLY), 4 => ::std::option::Option::Some(FieldBehavior::INPUT_ONLY), 5 => ::std::option::Option::Some(FieldBehavior::IMMUTABLE), + 6 => ::std::option::Option::Some(FieldBehavior::UNORDERED_LIST), + 7 => ::std::option::Option::Some(FieldBehavior::NON_EMPTY_DEFAULT), + 8 => ::std::option::Option::Some(FieldBehavior::IDENTIFIER), _ => ::std::option::Option::None } } @@ -75,6 +84,9 @@ impl ::protobuf::Enum for FieldBehavior { "OUTPUT_ONLY" => ::std::option::Option::Some(FieldBehavior::OUTPUT_ONLY), "INPUT_ONLY" => ::std::option::Option::Some(FieldBehavior::INPUT_ONLY), "IMMUTABLE" => ::std::option::Option::Some(FieldBehavior::IMMUTABLE), + "UNORDERED_LIST" => ::std::option::Option::Some(FieldBehavior::UNORDERED_LIST), + "NON_EMPTY_DEFAULT" => ::std::option::Option::Some(FieldBehavior::NON_EMPTY_DEFAULT), + "IDENTIFIER" => ::std::option::Option::Some(FieldBehavior::IDENTIFIER), _ => ::std::option::Option::None } } @@ -86,6 +98,9 @@ impl ::protobuf::Enum for FieldBehavior { FieldBehavior::OUTPUT_ONLY, FieldBehavior::INPUT_ONLY, FieldBehavior::IMMUTABLE, + FieldBehavior::UNORDERED_LIST, + FieldBehavior::NON_EMPTY_DEFAULT, + FieldBehavior::IDENTIFIER, ]; } @@ -121,85 +136,118 @@ pub mod exts { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a\x20google/prot\ - obuf/descriptor.proto*{\n\rFieldBehavior\x12\x1e\n\x1aFIELD_BEHAVIOR_UNS\ - PECIFIED\x10\0\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\ - \x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\ - \r\n\tIMMUTABLE\x10\x05:`\n\x0efield_behavior\x18\x9c\x08\x20\x03(\x0e2\ - \x19.google.api.FieldBehavior\x12\x1d.google.protobuf.FieldOptionsR\rfie\ - ldBehaviorBp\n\x0ecom.google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.gol\ - ang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIJ\ - \xfb\x15\n\x06\x12\x04\x0f\0N\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\ - \xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\ - \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ - \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ - ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ - \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ - org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ - \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ - uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ - \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ - \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ - \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ - sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\ - \x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0*\n\x08\n\x01\ - \x08\x12\x03\x15\0X\n\t\n\x02\x08\x0b\x12\x03\x15\0X\n\x08\n\x01\x08\x12\ - \x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\ - \03\n\t\n\x02\x08\x08\x12\x03\x17\03\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\ - \n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\ - \x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0)\x01\n\xda\x03\n\x02\ - \x07\0\x12\x03(\x02:\x1a\xce\x03\x20A\x20designation\x20of\x20a\x20speci\ - fic\x20field\x20behavior\x20(required,\x20output\x20only,\x20etc.)\n\x20\ - in\x20protobuf\x20messages.\n\n\x20Examples:\n\n\x20\x20\x20string\x20na\ - me\x20=\x201\x20[(google.api.field_behavior)\x20=\x20REQUIRED];\n\x20\ - \x20\x20State\x20state\x20=\x201\x20[(google.api.field_behavior)\x20=\ - \x20OUTPUT_ONLY];\n\x20\x20\x20google.protobuf.Duration\x20ttl\x20=\x201\ - \n\x20\x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20INPUT_ONLY];\ - \n\x20\x20\x20google.protobuf.Timestamp\x20expire_time\x20=\x201\n\x20\ - \x20\x20\x20\x20[(google.api.field_behavior)\x20=\x20OUTPUT_ONLY,\n\x20\ - \x20\x20\x20\x20\x20(google.api.field_behavior)\x20=\x20IMMUTABLE];\n\n\ - \n\n\x03\x07\0\x02\x12\x03\x1b\x07#\n\n\n\x03\x07\0\x04\x12\x03(\x02\n\n\ - \n\n\x03\x07\0\x06\x12\x03(\x0b#\n\n\n\x03\x07\0\x01\x12\x03($2\n\n\n\ - \x03\x07\0\x03\x12\x03(59\n\xea\x02\n\x02\x05\0\x12\x041\0N\x01\x1a\xdd\ - \x02\x20An\x20indicator\x20of\x20the\x20behavior\x20of\x20a\x20given\x20\ - field\x20(for\x20example,\x20that\x20a\x20field\n\x20is\x20required\x20i\ - n\x20requests,\x20or\x20given\x20as\x20output\x20but\x20ignored\x20as\ - \x20input).\n\x20This\x20**does\x20not**\x20change\x20the\x20behavior\ - \x20in\x20protocol\x20buffers\x20itself;\x20it\x20only\n\x20denotes\x20t\ - he\x20behavior\x20and\x20may\x20affect\x20how\x20API\x20tooling\x20handl\ - es\x20the\x20field.\n\n\x20Note:\x20This\x20enum\x20**may**\x20receive\ - \x20new\x20values\x20in\x20the\x20future.\n\n\n\n\x03\x05\0\x01\x12\x031\ - \x05\x12\n?\n\x04\x05\0\x02\0\x12\x033\x02!\x1a2\x20Conventional\x20defa\ - ult\x20for\x20enums.\x20Do\x20not\x20use\x20this.\n\n\x0c\n\x05\x05\0\ - \x02\0\x01\x12\x033\x02\x1c\n\x0c\n\x05\x05\0\x02\0\x02\x12\x033\x1f\x20\ - \n\xa1\x01\n\x04\x05\0\x02\x01\x12\x038\x02\x0f\x1a\x93\x01\x20Specifica\ - lly\x20denotes\x20a\x20field\x20as\x20optional.\n\x20While\x20all\x20fie\ - lds\x20in\x20protocol\x20buffers\x20are\x20optional,\x20this\x20may\x20b\ - e\x20specified\n\x20for\x20emphasis\x20if\x20appropriate.\n\n\x0c\n\x05\ - \x05\0\x02\x01\x01\x12\x038\x02\n\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x038\ - \r\x0e\n\xc0\x01\n\x04\x05\0\x02\x02\x12\x03=\x02\x0f\x1a\xb2\x01\x20Den\ - otes\x20a\x20field\x20as\x20required.\n\x20This\x20indicates\x20that\x20\ - the\x20field\x20**must**\x20be\x20provided\x20as\x20part\x20of\x20the\ - \x20request,\n\x20and\x20failure\x20to\x20do\x20so\x20will\x20cause\x20a\ - n\x20error\x20(usually\x20`INVALID_ARGUMENT`).\n\n\x0c\n\x05\x05\0\x02\ - \x02\x01\x12\x03=\x02\n\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03=\r\x0e\n\ - \xfd\x01\n\x04\x05\0\x02\x03\x12\x03C\x02\x12\x1a\xef\x01\x20Denotes\x20\ - a\x20field\x20as\x20output\x20only.\n\x20This\x20indicates\x20that\x20th\ - e\x20field\x20is\x20provided\x20in\x20responses,\x20but\x20including\x20\ - the\n\x20field\x20in\x20a\x20request\x20does\x20nothing\x20(the\x20serve\ - r\x20*must*\x20ignore\x20it\x20and\n\x20*must\x20not*\x20throw\x20an\x20\ - error\x20as\x20a\x20result\x20of\x20the\x20field's\x20presence).\n\n\x0c\ - \n\x05\x05\0\x02\x03\x01\x12\x03C\x02\r\n\x0c\n\x05\x05\0\x02\x03\x02\ - \x12\x03C\x10\x11\n\x9e\x01\n\x04\x05\0\x02\x04\x12\x03H\x02\x11\x1a\x90\ - \x01\x20Denotes\x20a\x20field\x20as\x20input\x20only.\n\x20This\x20indic\ - ates\x20that\x20the\x20field\x20is\x20provided\x20in\x20requests,\x20and\ - \x20the\n\x20corresponding\x20field\x20is\x20not\x20included\x20in\x20ou\ - tput.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03H\x02\x0c\n\x0c\n\x05\x05\0\ - \x02\x04\x02\x12\x03H\x0f\x10\n\xa3\x01\n\x04\x05\0\x02\x05\x12\x03M\x02\ - \x10\x1a\x95\x01\x20Denotes\x20a\x20field\x20as\x20immutable.\n\x20This\ - \x20indicates\x20that\x20the\x20field\x20may\x20be\x20set\x20once\x20in\ - \x20a\x20request\x20to\x20create\x20a\n\x20resource,\x20but\x20may\x20no\ - t\x20be\x20changed\x20thereafter.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\ - \x03M\x02\x0b\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03M\x0e\x0fb\x06proto3\ + obuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1aFIELD_BEHAV\ + IOR_UNSPECIFIED\x10\0\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRE\ + D\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\ + \x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\ + \n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:d\n\x0efie\ + ld_behavior\x18\x9c\x08\x20\x03(\x0e2\x19.google.api.FieldBehavior\x12\ + \x1d.google.protobuf.FieldOptionsR\rfieldBehaviorB\x02\x10\0Bp\n\x0ecom.\ + google.apiB\x12FieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googl\ + eapis/api/annotations;annotations\xa2\x02\x04GAPIJ\xfb\x1f\n\x06\x12\x04\ + \x0e\0g\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\ + \x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20L\ + icense,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20no\ + t\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\ + \x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20Lice\ + nse\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-\ + 2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agreed\ + \x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ + \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ + \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ + ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ + the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ + tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\ + \n\t\n\x02\x03\0\x12\x03\x12\0*\n\x08\n\x01\x08\x12\x03\x14\0X\n\t\n\x02\ + \x08\x0b\x12\x03\x14\0X\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\ + \x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\03\n\t\n\x02\x08\x08\x12\ + \x03\x16\03\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\ + \0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\t\n\ + \x01\x07\x12\x04\x1a\0(\x01\n\xda\x03\n\x02\x07\0\x12\x03'\x02K\x1a\xce\ + \x03\x20A\x20designation\x20of\x20a\x20specific\x20field\x20behavior\x20\ + (required,\x20output\x20only,\x20etc.)\n\x20in\x20protobuf\x20messages.\ + \n\n\x20Examples:\n\n\x20\x20\x20string\x20name\x20=\x201\x20[(google.ap\ + i.field_behavior)\x20=\x20REQUIRED];\n\x20\x20\x20State\x20state\x20=\ + \x201\x20[(google.api.field_behavior)\x20=\x20OUTPUT_ONLY];\n\x20\x20\ + \x20google.protobuf.Duration\x20ttl\x20=\x201\n\x20\x20\x20\x20\x20[(goo\ + gle.api.field_behavior)\x20=\x20INPUT_ONLY];\n\x20\x20\x20google.protobu\ + f.Timestamp\x20expire_time\x20=\x201\n\x20\x20\x20\x20\x20[(google.api.f\ + ield_behavior)\x20=\x20OUTPUT_ONLY,\n\x20\x20\x20\x20\x20\x20(google.api\ + .field_behavior)\x20=\x20IMMUTABLE];\n\n\n\n\x03\x07\0\x02\x12\x03\x1a\ + \x07#\n\n\n\x03\x07\0\x04\x12\x03'\x02\n\n\n\n\x03\x07\0\x06\x12\x03'\ + \x0b#\n\n\n\x03\x07\0\x01\x12\x03'$2\n\n\n\x03\x07\0\x03\x12\x03'59\n\n\ + \n\x03\x07\0\x08\x12\x03':J\n\x0b\n\x04\x07\0\x08\x02\x12\x03';I\n\xea\ + \x02\n\x02\x05\0\x12\x040\0g\x01\x1a\xdd\x02\x20An\x20indicator\x20of\ + \x20the\x20behavior\x20of\x20a\x20given\x20field\x20(for\x20example,\x20\ + that\x20a\x20field\n\x20is\x20required\x20in\x20requests,\x20or\x20given\ + \x20as\x20output\x20but\x20ignored\x20as\x20input).\n\x20This\x20**does\ + \x20not**\x20change\x20the\x20behavior\x20in\x20protocol\x20buffers\x20i\ + tself;\x20it\x20only\n\x20denotes\x20the\x20behavior\x20and\x20may\x20af\ + fect\x20how\x20API\x20tooling\x20handles\x20the\x20field.\n\n\x20Note:\ + \x20This\x20enum\x20**may**\x20receive\x20new\x20values\x20in\x20the\x20\ + future.\n\n\n\n\x03\x05\0\x01\x12\x030\x05\x12\n?\n\x04\x05\0\x02\0\x12\ + \x032\x02!\x1a2\x20Conventional\x20default\x20for\x20enums.\x20Do\x20not\ + \x20use\x20this.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x032\x02\x1c\n\x0c\n\ + \x05\x05\0\x02\0\x02\x12\x032\x1f\x20\n\xa1\x01\n\x04\x05\0\x02\x01\x12\ + \x037\x02\x0f\x1a\x93\x01\x20Specifically\x20denotes\x20a\x20field\x20as\ + \x20optional.\n\x20While\x20all\x20fields\x20in\x20protocol\x20buffers\ + \x20are\x20optional,\x20this\x20may\x20be\x20specified\n\x20for\x20empha\ + sis\x20if\x20appropriate.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x037\x02\n\ + \n\x0c\n\x05\x05\0\x02\x01\x02\x12\x037\r\x0e\n\xc0\x01\n\x04\x05\0\x02\ + \x02\x12\x03<\x02\x0f\x1a\xb2\x01\x20Denotes\x20a\x20field\x20as\x20requ\ + ired.\n\x20This\x20indicates\x20that\x20the\x20field\x20**must**\x20be\ + \x20provided\x20as\x20part\x20of\x20the\x20request,\n\x20and\x20failure\ + \x20to\x20do\x20so\x20will\x20cause\x20an\x20error\x20(usually\x20`INVAL\ + ID_ARGUMENT`).\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03<\x02\n\n\x0c\n\ + \x05\x05\0\x02\x02\x02\x12\x03<\r\x0e\n\xfd\x01\n\x04\x05\0\x02\x03\x12\ + \x03B\x02\x12\x1a\xef\x01\x20Denotes\x20a\x20field\x20as\x20output\x20on\ + ly.\n\x20This\x20indicates\x20that\x20the\x20field\x20is\x20provided\x20\ + in\x20responses,\x20but\x20including\x20the\n\x20field\x20in\x20a\x20req\ + uest\x20does\x20nothing\x20(the\x20server\x20*must*\x20ignore\x20it\x20a\ + nd\n\x20*must\x20not*\x20throw\x20an\x20error\x20as\x20a\x20result\x20of\ + \x20the\x20field's\x20presence).\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03\ + B\x02\r\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03B\x10\x11\n\x9e\x01\n\x04\ + \x05\0\x02\x04\x12\x03G\x02\x11\x1a\x90\x01\x20Denotes\x20a\x20field\x20\ + as\x20input\x20only.\n\x20This\x20indicates\x20that\x20the\x20field\x20i\ + s\x20provided\x20in\x20requests,\x20and\x20the\n\x20corresponding\x20fie\ + ld\x20is\x20not\x20included\x20in\x20output.\n\n\x0c\n\x05\x05\0\x02\x04\ + \x01\x12\x03G\x02\x0c\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03G\x0f\x10\n\ + \xa3\x01\n\x04\x05\0\x02\x05\x12\x03L\x02\x10\x1a\x95\x01\x20Denotes\x20\ + a\x20field\x20as\x20immutable.\n\x20This\x20indicates\x20that\x20the\x20\ + field\x20may\x20be\x20set\x20once\x20in\x20a\x20request\x20to\x20create\ + \x20a\n\x20resource,\x20but\x20may\x20not\x20be\x20changed\x20thereafter\ + .\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03L\x02\x0b\n\x0c\n\x05\x05\0\x02\ + \x05\x02\x12\x03L\x0e\x0f\n\x93\x02\n\x04\x05\0\x02\x06\x12\x03R\x02\x15\ + \x1a\x85\x02\x20Denotes\x20that\x20a\x20(repeated)\x20field\x20is\x20an\ + \x20unordered\x20list.\n\x20This\x20indicates\x20that\x20the\x20service\ + \x20may\x20provide\x20the\x20elements\x20of\x20the\x20list\n\x20in\x20an\ + y\x20arbitrary\x20\x20order,\x20rather\x20than\x20the\x20order\x20the\ + \x20user\x20originally\n\x20provided.\x20Additionally,\x20the\x20list's\ + \x20order\x20may\x20or\x20may\x20not\x20be\x20stable.\n\n\x0c\n\x05\x05\ + \0\x02\x06\x01\x12\x03R\x02\x10\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03R\ + \x13\x14\n\x81\x02\n\x04\x05\0\x02\x07\x12\x03X\x02\x18\x1a\xf3\x01\x20D\ + enotes\x20that\x20this\x20field\x20returns\x20a\x20non-empty\x20default\ + \x20value\x20if\x20not\x20set.\n\x20This\x20indicates\x20that\x20if\x20t\ + he\x20user\x20provides\x20the\x20empty\x20value\x20in\x20a\x20request,\n\ + \x20a\x20non-empty\x20value\x20will\x20be\x20returned.\x20The\x20user\ + \x20will\x20not\x20be\x20aware\x20of\x20what\n\x20non-empty\x20value\x20\ + to\x20expect.\n\n\x0c\n\x05\x05\0\x02\x07\x01\x12\x03X\x02\x13\n\x0c\n\ + \x05\x05\0\x02\x07\x02\x12\x03X\x16\x17\n\xf8\x04\n\x04\x05\0\x02\x08\ + \x12\x03f\x02\x11\x1a\xea\x04\x20Denotes\x20that\x20the\x20field\x20in\ + \x20a\x20resource\x20(a\x20message\x20annotated\x20with\n\x20google.api.\ + resource)\x20is\x20used\x20in\x20the\x20resource\x20name\x20to\x20unique\ + ly\x20identify\x20the\n\x20resource.\x20For\x20AIP-compliant\x20APIs,\ + \x20this\x20should\x20only\x20be\x20applied\x20to\x20the\n\x20`name`\x20\ + field\x20on\x20the\x20resource.\n\n\x20This\x20behavior\x20should\x20not\ + \x20be\x20applied\x20to\x20references\x20to\x20other\x20resources\x20wit\ + hin\n\x20the\x20message.\n\n\x20The\x20identifier\x20field\x20of\x20reso\ + urces\x20often\x20have\x20different\x20field\x20behavior\n\x20depending\ + \x20on\x20the\x20request\x20it\x20is\x20embedded\x20in\x20(e.g.\x20for\ + \x20Create\x20methods\x20name\n\x20is\x20optional\x20and\x20unused,\x20w\ + hile\x20for\x20Update\x20methods\x20it\x20is\x20required).\x20Instead\n\ + \x20of\x20method-specific\x20annotations,\x20only\x20`IDENTIFIER`\x20is\ + \x20required.\n\n\x0c\n\x05\x05\0\x02\x08\x01\x12\x03f\x02\x0c\n\x0c\n\ + \x05\x05\0\x02\x08\x02\x12\x03f\x0f\x10b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/field_info.rs b/googleapis-raw/src/api/field_info.rs new file mode 100644 index 0000000..c6f6629 --- /dev/null +++ b/googleapis-raw/src/api/field_info.rs @@ -0,0 +1,547 @@ +// This file is generated by rust-protobuf 3.4.0. Do not edit +// .proto file is parsed by protoc --rust-out=... +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![cfg_attr(rustfmt, rustfmt::skip)] + + +#![allow(dead_code)] +#![allow(missing_docs)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(non_upper_case_globals)] +#![allow(trivial_casts)] +#![allow(unused_results)] +#![allow(unused_mut)] + +//! Generated file from `google/api/field_info.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; + +/// Rich semantic information of an API field beyond basic typing. +// @@protoc_insertion_point(message:google.api.FieldInfo) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct FieldInfo { + // message fields + /// The standard format of a field value. This does not explicitly configure + /// any API consumer, just documents the API's format for the field it is + /// applied to. + // @@protoc_insertion_point(field:google.api.FieldInfo.format) + pub format: ::protobuf::EnumOrUnknown, + /// The type(s) that the annotated, generic field may represent. + /// + /// Currently, this must only be used on fields of type `google.protobuf.Any`. + /// Supporting other generic types may be considered in the future. + // @@protoc_insertion_point(field:google.api.FieldInfo.referenced_types) + pub referenced_types: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.api.FieldInfo.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a FieldInfo { + fn default() -> &'a FieldInfo { + ::default_instance() + } +} + +impl FieldInfo { + pub fn new() -> FieldInfo { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "format", + |m: &FieldInfo| { &m.format }, + |m: &mut FieldInfo| { &mut m.format }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "referenced_types", + |m: &FieldInfo| { &m.referenced_types }, + |m: &mut FieldInfo| { &mut m.referenced_types }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "FieldInfo", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for FieldInfo { + const NAME: &'static str = "FieldInfo"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 8 => { + self.format = is.read_enum_or_unknown()?; + }, + 18 => { + self.referenced_types.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if self.format != ::protobuf::EnumOrUnknown::new(field_info::Format::FORMAT_UNSPECIFIED) { + my_size += ::protobuf::rt::int32_size(1, self.format.value()); + } + for value in &self.referenced_types { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if self.format != ::protobuf::EnumOrUnknown::new(field_info::Format::FORMAT_UNSPECIFIED) { + os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.format))?; + } + for v in &self.referenced_types { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> FieldInfo { + FieldInfo::new() + } + + fn clear(&mut self) { + self.format = ::protobuf::EnumOrUnknown::new(field_info::Format::FORMAT_UNSPECIFIED); + self.referenced_types.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static FieldInfo { + static instance: FieldInfo = FieldInfo { + format: ::protobuf::EnumOrUnknown::from_i32(0), + referenced_types: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for FieldInfo { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("FieldInfo").unwrap()).clone() + } +} + +impl ::std::fmt::Display for FieldInfo { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for FieldInfo { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Nested message and enums of message `FieldInfo` +pub mod field_info { + /// The standard format of a field value. The supported formats are all backed + /// by either an RFC defined by the IETF or a Google-defined AIP. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.FieldInfo.Format) + pub enum Format { + // @@protoc_insertion_point(enum_value:google.api.FieldInfo.Format.FORMAT_UNSPECIFIED) + FORMAT_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.FieldInfo.Format.UUID4) + UUID4 = 1, + // @@protoc_insertion_point(enum_value:google.api.FieldInfo.Format.IPV4) + IPV4 = 2, + // @@protoc_insertion_point(enum_value:google.api.FieldInfo.Format.IPV6) + IPV6 = 3, + // @@protoc_insertion_point(enum_value:google.api.FieldInfo.Format.IPV4_OR_IPV6) + IPV4_OR_IPV6 = 4, + } + + impl ::protobuf::Enum for Format { + const NAME: &'static str = "Format"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(Format::FORMAT_UNSPECIFIED), + 1 => ::std::option::Option::Some(Format::UUID4), + 2 => ::std::option::Option::Some(Format::IPV4), + 3 => ::std::option::Option::Some(Format::IPV6), + 4 => ::std::option::Option::Some(Format::IPV4_OR_IPV6), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "FORMAT_UNSPECIFIED" => ::std::option::Option::Some(Format::FORMAT_UNSPECIFIED), + "UUID4" => ::std::option::Option::Some(Format::UUID4), + "IPV4" => ::std::option::Option::Some(Format::IPV4), + "IPV6" => ::std::option::Option::Some(Format::IPV6), + "IPV4_OR_IPV6" => ::std::option::Option::Some(Format::IPV4_OR_IPV6), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [Format] = &[ + Format::FORMAT_UNSPECIFIED, + Format::UUID4, + Format::IPV4, + Format::IPV6, + Format::IPV4_OR_IPV6, + ]; + } + + impl ::protobuf::EnumFull for Format { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("FieldInfo.Format").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } + + impl ::std::default::Default for Format { + fn default() -> Self { + Format::FORMAT_UNSPECIFIED + } + } + + impl Format { + pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("FieldInfo.Format") + } + } +} + +/// A reference to a message type, for use in [FieldInfo][google.api.FieldInfo]. +// @@protoc_insertion_point(message:google.api.TypeReference) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct TypeReference { + // message fields + /// The name of the type that the annotated, generic field may represent. + /// If the type is in the same protobuf package, the value can be the simple + /// message name e.g., `"MyMessage"`. Otherwise, the value must be the + /// fully-qualified message name e.g., `"google.library.v1.Book"`. + /// + /// If the type(s) are unknown to the service (e.g. the field accepts generic + /// user input), use the wildcard `"*"` to denote this behavior. + /// + /// See [AIP-202](https://google.aip.dev/202#type-references) for more details. + // @@protoc_insertion_point(field:google.api.TypeReference.type_name) + pub type_name: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.api.TypeReference.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a TypeReference { + fn default() -> &'a TypeReference { + ::default_instance() + } +} + +impl TypeReference { + pub fn new() -> TypeReference { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(1); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "type_name", + |m: &TypeReference| { &m.type_name }, + |m: &mut TypeReference| { &mut m.type_name }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "TypeReference", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for TypeReference { + const NAME: &'static str = "TypeReference"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.type_name = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.type_name.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.type_name); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.type_name.is_empty() { + os.write_string(1, &self.type_name)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> TypeReference { + TypeReference::new() + } + + fn clear(&mut self) { + self.type_name.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static TypeReference { + static instance: TypeReference = TypeReference { + type_name: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for TypeReference { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("TypeReference").unwrap()).clone() + } +} + +impl ::std::fmt::Display for TypeReference { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for TypeReference { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Extension fields +pub mod exts { + + pub const field_info: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, super::FieldInfo> = ::protobuf::ext::ExtFieldOptional::new(291403980, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x1bgoogle/api/field_info.proto\x12\ngoogle.api\x1a\x20google/protobuf\ + /descriptor.proto\"\xda\x01\n\tFieldInfo\x124\n\x06format\x18\x01\x20\ + \x01(\x0e2\x1c.google.api.FieldInfo.FormatR\x06format\x12D\n\x10referenc\ + ed_types\x18\x02\x20\x03(\x0b2\x19.google.api.TypeReferenceR\x0freferenc\ + edTypes\"Q\n\x06Format\x12\x16\n\x12FORMAT_UNSPECIFIED\x10\0\x12\t\n\x05\ + UUID4\x10\x01\x12\x08\n\x04IPV4\x10\x02\x12\x08\n\x04IPV6\x10\x03\x12\ + \x10\n\x0cIPV4_OR_IPV6\x10\x04\",\n\rTypeReference\x12\x1b\n\ttype_name\ + \x18\x01\x20\x01(\tR\x08typeName:W\n\nfield_info\x18\xcc\xf1\xf9\x8a\x01\ + \x20\x01(\x0b2\x15.google.api.FieldInfo\x12\x1d.google.protobuf.FieldOpt\ + ionsR\tfieldInfoBl\n\x0ecom.google.apiB\x0eFieldInfoProtoP\x01ZAgoogle.g\ + olang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAP\ + IJ\x96!\n\x06\x12\x04\x0e\0i\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\ + \xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\ + \x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\");\ + \n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20compli\ + ance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\ + \x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.\ + org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ + \x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0*\n\x08\n\x01\x08\ + \x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\x14\0X\n\x08\n\x01\x08\x12\x03\ + \x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0/\ + \n\t\n\x02\x08\x08\x12\x03\x16\0/\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\ + \x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\ + \x08$\x12\x03\x18\0\"\n\t\n\x01\x07\x12\x04\x1a\0-\x01\n\xde\x05\n\x02\ + \x07\0\x12\x03,\x02.\x1a\xd2\x05\x20Rich\x20semantic\x20descriptor\x20of\ + \x20an\x20API\x20field\x20beyond\x20the\x20basic\x20typing.\n\n\x20Examp\ + les:\n\n\x20\x20\x20\x20\x20string\x20request_id\x20=\x201\x20[(google.a\ + pi.field_info).format\x20=\x20UUID4];\n\x20\x20\x20\x20\x20string\x20old\ + _ip_address\x20=\x202\x20[(google.api.field_info).format\x20=\x20IPV4];\ + \n\x20\x20\x20\x20\x20string\x20new_ip_address\x20=\x203\x20[(google.api\ + .field_info).format\x20=\x20IPV6];\n\x20\x20\x20\x20\x20string\x20actual\ + _ip_address\x20=\x204\x20[\n\x20\x20\x20\x20\x20\x20\x20(google.api.fiel\ + d_info).format\x20=\x20IPV4_OR_IPV6\n\x20\x20\x20\x20\x20];\n\x20\x20\ + \x20\x20\x20google.protobuf.Any\x20generic_field\x20=\x205\x20[\n\x20\ + \x20\x20\x20\x20\x20\x20(google.api.field_info).referenced_types\x20=\ + \x20{type_name:\x20\"ActualType\"},\n\x20\x20\x20\x20\x20\x20\x20(google\ + .api.field_info).referenced_types\x20=\x20{type_name:\x20\"OtherType\"},\ + \n\x20\x20\x20\x20\x20];\n\x20\x20\x20\x20\x20google.protobuf.Any\x20gen\ + eric_user_input\x20=\x205\x20[\n\x20\x20\x20\x20\x20\x20\x20(google.api.\ + field_info).referenced_types\x20=\x20{type_name:\x20\"*\"},\n\x20\x20\ + \x20\x20\x20];\n\n\n\n\x03\x07\0\x02\x12\x03\x1a\x07#\n\n\n\x03\x07\0\ + \x06\x12\x03,\x02\x16\n\n\n\x03\x07\0\x01\x12\x03,\x17!\n\n\n\x03\x07\0\ + \x03\x12\x03,$-\nL\n\x02\x04\0\x12\x040\0[\x01\x1a@\x20Rich\x20semantic\ + \x20information\x20of\x20an\x20API\x20field\x20beyond\x20basic\x20typing\ + .\n\n\n\n\x03\x04\0\x01\x12\x030\x08\x11\n\x9a\x01\n\x04\x04\0\x04\0\x12\ + \x043\x02O\x03\x1a\x8b\x01\x20The\x20standard\x20format\x20of\x20a\x20fi\ + eld\x20value.\x20The\x20supported\x20formats\x20are\x20all\x20backed\n\ + \x20by\x20either\x20an\x20RFC\x20defined\x20by\x20the\x20IETF\x20or\x20a\ + \x20Google-defined\x20AIP.\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x033\x07\r\ + \n,\n\x06\x04\0\x04\0\x02\0\x12\x035\x04\x1b\x1a\x1d\x20Default,\x20unsp\ + ecified\x20value.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x035\x04\x16\n\ + \x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x035\x19\x1a\n\xba\x02\n\x06\x04\0\ + \x04\0\x02\x01\x12\x03<\x04\x0e\x1a\xaa\x02\x20Universally\x20Unique\x20\ + Identifier,\x20version\x204,\x20value\x20as\x20defined\x20by\n\x20https:\ + //datatracker.ietf.org/doc/html/rfc4122.\x20The\x20value\x20may\x20be\n\ + \x20normalized\x20to\x20entirely\x20lowercase\x20letters.\x20For\x20exam\ + ple,\x20the\x20value\n\x20`F47AC10B-58CC-0372-8567-0E02B2C3D479`\x20woul\ + d\x20be\x20normalized\x20to\n\x20`f47ac10b-58cc-0372-8567-0e02b2c3d479`.\ + \n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03<\x04\t\n\x0e\n\x07\x04\0\ + \x04\0\x02\x01\x02\x12\x03<\x0c\r\n\x81\x02\n\x06\x04\0\x04\0\x02\x02\ + \x12\x03B\x04\r\x1a\xf1\x01\x20Internet\x20Protocol\x20v4\x20value\x20as\ + \x20defined\x20by\x20[RFC\n\x20791](https://datatracker.ietf.org/doc/htm\ + l/rfc791).\x20The\x20value\x20may\x20be\n\x20condensed,\x20with\x20leadi\ + ng\x20zeros\x20in\x20each\x20octet\x20stripped.\x20For\x20example,\n\x20\ + `001.022.233.040`\x20would\x20be\x20condensed\x20to\x20`1.22.233.40`.\n\ + \n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03B\x04\x08\n\x0e\n\x07\x04\0\ + \x04\0\x02\x02\x02\x12\x03B\x0b\x0c\n\xdc\x02\n\x06\x04\0\x04\0\x02\x03\ + \x12\x03I\x04\r\x1a\xcc\x02\x20Internet\x20Protocol\x20v6\x20value\x20as\ + \x20defined\x20by\x20[RFC\n\x202460](https://datatracker.ietf.org/doc/ht\ + ml/rfc2460).\x20The\x20value\x20may\x20be\n\x20normalized\x20to\x20entir\ + ely\x20lowercase\x20letters\x20with\x20zeros\x20compressed,\x20following\ + \n\x20[RFC\x205952](https://datatracker.ietf.org/doc/html/rfc5952).\x20F\ + or\x20example,\n\x20the\x20value\x20`2001:0DB8:0::0`\x20would\x20be\x20n\ + ormalized\x20to\x20`2001:db8::`.\n\n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\ + \x12\x03I\x04\x08\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\x12\x03I\x0b\x0c\n\ + \xc1\x01\n\x06\x04\0\x04\0\x02\x04\x12\x03N\x04\x15\x1a\xb1\x01\x20An\ + \x20IP\x20address\x20in\x20either\x20v4\x20or\x20v6\x20format\x20as\x20d\ + escribed\x20by\x20the\x20individual\n\x20values\x20defined\x20herein.\ + \x20See\x20the\x20comments\x20on\x20the\x20IPV4\x20and\x20IPV6\x20types\ + \x20for\n\x20allowed\x20normalizations\x20of\x20each.\n\n\x0e\n\x07\x04\ + \0\x04\0\x02\x04\x01\x12\x03N\x04\x10\n\x0e\n\x07\x04\0\x04\0\x02\x04\ + \x02\x12\x03N\x13\x14\n\xac\x01\n\x04\x04\0\x02\0\x12\x03T\x02\x14\x1a\ + \x9e\x01\x20The\x20standard\x20format\x20of\x20a\x20field\x20value.\x20T\ + his\x20does\x20not\x20explicitly\x20configure\n\x20any\x20API\x20consume\ + r,\x20just\x20documents\x20the\x20API's\x20format\x20for\x20the\x20field\ + \x20it\x20is\n\x20applied\x20to.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03T\ + \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03T\t\x0f\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03T\x12\x13\n\xda\x01\n\x04\x04\0\x02\x01\x12\x03Z\x02.\ + \x1a\xcc\x01\x20The\x20type(s)\x20that\x20the\x20annotated,\x20generic\ + \x20field\x20may\x20represent.\n\n\x20Currently,\x20this\x20must\x20only\ + \x20be\x20used\x20on\x20fields\x20of\x20type\x20`google.protobuf.Any`.\n\ + \x20Supporting\x20other\x20generic\x20types\x20may\x20be\x20considered\ + \x20in\x20the\x20future.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03Z\x02\n\ + \n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03Z\x0b\x18\n\x0c\n\x05\x04\0\x02\ + \x01\x01\x12\x03Z\x19)\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03Z,-\nZ\n\x02\ + \x04\x01\x12\x04^\0i\x01\x1aN\x20A\x20reference\x20to\x20a\x20message\ + \x20type,\x20for\x20use\x20in\x20[FieldInfo][google.api.FieldInfo].\n\n\ + \n\n\x03\x04\x01\x01\x12\x03^\x08\x15\n\xfb\x03\n\x04\x04\x01\x02\0\x12\ + \x03h\x02\x17\x1a\xed\x03\x20The\x20name\x20of\x20the\x20type\x20that\ + \x20the\x20annotated,\x20generic\x20field\x20may\x20represent.\n\x20If\ + \x20the\x20type\x20is\x20in\x20the\x20same\x20protobuf\x20package,\x20th\ + e\x20value\x20can\x20be\x20the\x20simple\n\x20message\x20name\x20e.g.,\ + \x20`\"MyMessage\"`.\x20Otherwise,\x20the\x20value\x20must\x20be\x20the\ + \n\x20fully-qualified\x20message\x20name\x20e.g.,\x20`\"google.library.v\ + 1.Book\"`.\n\n\x20If\x20the\x20type(s)\x20are\x20unknown\x20to\x20the\ + \x20service\x20(e.g.\x20the\x20field\x20accepts\x20generic\n\x20user\x20\ + input),\x20use\x20the\x20wildcard\x20`\"*\"`\x20to\x20denote\x20this\x20\ + behavior.\n\n\x20See\x20[AIP-202](https://google.aip.dev/202#type-refere\ + nces)\x20for\x20more\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\ + h\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03h\t\x12\n\x0c\n\x05\x04\ + \x01\x02\0\x03\x12\x03h\x15\x16b\x06proto3\ +"; + +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) +} + +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(FieldInfo::generated_message_descriptor_data()); + messages.push(TypeReference::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(1); + enums.push(field_info::Format::generated_enum_descriptor_data()); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) + }) +} diff --git a/googleapis-raw/src/api/http.rs b/googleapis-raw/src/api/http.rs index 32de8d3..d4eb019 100644 --- a/googleapis-raw/src/api/http.rs +++ b/googleapis-raw/src/api/http.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -184,7 +184,8 @@ pub struct HttpRule { // message fields /// Selects a method to which this rule applies. /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. // @@protoc_insertion_point(field:google.api.HttpRule.selector) pub selector: ::std::string::String, /// The name of the request field whose value is mapped to the HTTP request @@ -974,9 +975,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x11CustomHttpPattern\x12\x12\n\x04kind\x18\x01\x20\x01(\tR\x04kind\ \x12\x12\n\x04path\x18\x02\x20\x01(\tR\x04pathBj\n\x0ecom.google.apiB\tH\ ttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;ann\ - otations\xf8\x01\x01\xa2\x02\x04GAPIJ\xaas\n\x07\x12\x05\x0f\0\xf7\x02\ - \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ - \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + otations\xf8\x01\x01\xa2\x02\x04GAPIJ\xfer\n\x07\x12\x05\x0e\0\xf2\x02\ + \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\ + \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ @@ -987,352 +988,351 @@ static file_descriptor_proto_data: &'static [u8] = b"\ UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\ - \n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\x1f\n\x08\n\ - \x01\x08\x12\x03\x14\0X\n\t\n\x02\x08\x0b\x12\x03\x14\0X\n\x08\n\x01\x08\ - \x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\ - \x16\0*\n\t\n\x02\x08\x08\x12\x03\x16\0*\n\x08\n\x01\x08\x12\x03\x17\0'\ - \n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\ - \x02\x08$\x12\x03\x18\0\"\n\xcd\x01\n\x02\x04\0\x12\x04\x1d\0*\x01\x1a\ + \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\ + \x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\x08\n\ + \x01\x08\x12\x03\x13\0X\n\t\n\x02\x08\x0b\x12\x03\x13\0X\n\x08\n\x01\x08\ + \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ + \x15\0*\n\t\n\x02\x08\x08\x12\x03\x15\0*\n\x08\n\x01\x08\x12\x03\x16\0'\ + \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ + \x02\x08$\x12\x03\x17\0\"\n\xcd\x01\n\x02\x04\0\x12\x04\x1c\0)\x01\x1a\ \xc0\x01\x20Defines\x20the\x20HTTP\x20configuration\x20for\x20an\x20API\ \x20service.\x20It\x20contains\x20a\x20list\x20of\n\x20[HttpRule][google\ .api.HttpRule],\x20each\x20specifying\x20the\x20mapping\x20of\x20an\x20R\ PC\x20method\n\x20to\x20one\x20or\x20more\x20HTTP\x20REST\x20API\x20meth\ - ods.\n\n\n\n\x03\x04\0\x01\x12\x03\x1d\x08\x0c\n\xa2\x01\n\x04\x04\0\x02\ - \0\x12\x03!\x02\x1e\x1a\x94\x01\x20A\x20list\x20of\x20HTTP\x20configurat\ - ion\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\n\n\ - \x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\x20\ - \"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03!\ - \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03!\x0b\x13\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03!\x14\x19\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x1c\x1d\ - \n\x94\x02\n\x04\x04\0\x02\x01\x12\x03)\x02+\x1a\x86\x02\x20When\x20set\ - \x20to\x20true,\x20URL\x20path\x20parameters\x20will\x20be\x20fully\x20U\ - RI-decoded\x20except\x20in\n\x20cases\x20of\x20single\x20segment\x20matc\ - hes\x20in\x20reserved\x20expansion,\x20where\x20\"%2F\"\x20will\x20be\n\ - \x20left\x20encoded.\n\n\x20The\x20default\x20behavior\x20is\x20to\x20no\ - t\x20decode\x20RFC\x206570\x20reserved\x20characters\x20in\x20multi\n\ - \x20segment\x20matches.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03)\x02\x06\ - \n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03)\x07&\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03))*\n\xb3S\n\x02\x04\x01\x12\x06\xb9\x02\0\xee\x02\x01\x1a\ - \xa4S\x20#\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transcoding\x20is\x20a\ - \x20feature\x20for\x20mapping\x20between\x20a\x20gRPC\x20method\x20and\ - \x20one\x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\x20allows\ - \x20developers\x20to\x20build\x20a\x20single\x20API\x20service\n\x20that\ - \x20supports\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\x20Many\x20\ - systems,\x20including\x20[Google\n\x20APIs](https://github.com/googleapi\ - s/googleapis),\n\x20[Cloud\x20Endpoints](https://cloud.google.com/endpoi\ - nts),\x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosystem/grpc-gate\ - way),\n\x20and\x20[Envoy](https://github.com/envoyproxy/envoy)\x20proxy\ - \x20support\x20this\x20feature\n\x20and\x20use\x20it\x20for\x20large\x20\ - scale\x20production\x20services.\n\n\x20`HttpRule`\x20defines\x20the\x20\ - schema\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mapping\x20specif\ - ies\n\x20how\x20different\x20portions\x20of\x20the\x20gRPC\x20request\ - \x20message\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\x20URL\x20qu\ - ery\x20parameters,\x20and\x20HTTP\x20request\x20body.\x20It\x20also\x20c\ - ontrols\x20how\x20the\n\x20gRPC\x20response\x20message\x20is\x20mapped\ - \x20to\x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20is\n\x20typi\ - cally\x20specified\x20as\x20an\x20`google.api.http`\x20annotation\x20on\ - \x20the\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\x20a\x20U\ - RL\x20path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\x20path\n\ - \x20template\x20may\x20refer\x20to\x20one\x20or\x20more\x20fields\x20in\ - \x20the\x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\x20each\x20\ - field\x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20primitive\x20(\ - non-message)\x20type.\n\x20The\x20path\x20template\x20controls\x20how\ - \x20fields\x20of\x20the\x20request\x20message\x20are\x20mapped\x20to\n\ - \x20the\x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20service\ - \x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMes\ - sageRequest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/{name=messages/*}\"\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ - \x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20string\x20name\x20=\x201;\x20//\x20Mapped\ - \x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20messa\ - ge\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\x201\ - ;\x20//\x20The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\x20Thi\ - s\x20enables\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\x20bel\ - ow:\n\n\x20HTTP\x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/\ - 123456`\x20\x20|\x20`GetMessage(name:\x20\"messages/123456\")`\n\n\x20An\ - y\x20fields\x20in\x20the\x20request\x20message\x20which\x20are\x20not\ - \x20bound\x20by\x20the\x20path\x20template\n\x20automatically\x20become\ - \x20HTTP\x20query\x20parameters\x20if\x20there\x20is\x20no\x20HTTP\x20re\ - quest\x20body.\n\x20For\x20example:\n\n\x20\x20\x20\x20\x20service\x20Me\ - ssaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageRe\ - quest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20get:\"/v1/messages/{message_id}\"\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\ - \x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20message\x20SubMessage\x20{\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20string\x20subfield\x20=\x201;\n\x20\x20\x20\x20\x20\x20\ - \x20}\n\x20\x20\x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\x20//\ - \x20Mapped\x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20\x20\x20int64\x20r\ - evision\x20=\x202;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20\ - parameter\x20`revision`.\n\x20\x20\x20\x20\x20\x20\x20SubMessage\x20sub\ - \x20=\x203;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20paramet\ - er\x20`sub.subfield`.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20a\ - \x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20as\x20below:\n\n\x20HTTP\x20\ - |\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456?revision=2&s\ - ub.subfield=foo`\x20|\n\x20`GetMessage(message_id:\x20\"123456\"\x20revi\ - sion:\x202\x20sub:\x20SubMessage(subfield:\n\x20\"foo\"))`\n\n\x20Note\ - \x20that\x20fields\x20which\x20are\x20mapped\x20to\x20URL\x20query\x20pa\ - rameters\x20must\x20have\x20a\n\x20primitive\x20type\x20or\x20a\x20repea\ - ted\x20primitive\x20type\x20or\x20a\x20non-repeated\x20message\x20type.\ - \n\x20In\x20the\x20case\x20of\x20a\x20repeated\x20type,\x20the\x20parame\ - ter\x20can\x20be\x20repeated\x20in\x20the\x20URL\n\x20as\x20`...?param=A\ - ¶m=B`.\x20In\x20the\x20case\x20of\x20a\x20message\x20type,\x20each\ - \x20field\x20of\x20the\n\x20message\x20is\x20mapped\x20to\x20a\x20separa\ - te\x20parameter,\x20such\x20as\n\x20`...?foo.a=A&foo.b=B&foo.c=C`.\n\n\ - \x20For\x20HTTP\x20methods\x20that\x20allow\x20a\x20request\x20body,\x20\ - the\x20`body`\x20field\n\x20specifies\x20the\x20mapping.\x20Consider\x20\ - a\x20REST\x20update\x20method\x20on\x20the\n\x20message\x20resource\x20c\ - ollection:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20rpc\x20UpdateMessage(UpdateMessageRequest)\x20return\ - s\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(goog\ - le.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patc\ - h:\x20\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20body:\x20\"message\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\ - \n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\ - \x20message\x20UpdateMessageRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20st\ - ring\x20message_id\x20=\x201;\x20//\x20mapped\x20to\x20the\x20URL\n\x20\ - \x20\x20\x20\x20\x20\x20Message\x20message\x20=\x202;\x20\x20\x20//\x20m\ - apped\x20to\x20the\x20body\n\x20\x20\x20\x20\x20}\n\n\x20The\x20followin\ - g\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20enabled,\x20where\x20\ - the\n\x20representation\x20of\x20the\x20JSON\x20in\x20the\x20request\x20\ - body\x20is\x20determined\x20by\n\x20protos\x20JSON\x20encoding:\n\n\x20H\ - TTP\x20|\x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/v1/messages/123456\x20\ - {\x20\"text\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMessage(message_id:\n\x20\ - \"123456\"\x20message\x20{\x20text:\x20\"Hi!\"\x20})`\n\n\x20The\x20spec\ - ial\x20name\x20`*`\x20can\x20be\x20used\x20in\x20the\x20body\x20mapping\ - \x20to\x20define\x20that\n\x20every\x20field\x20not\x20bound\x20by\x20th\ - e\x20path\x20template\x20should\x20be\x20mapped\x20to\x20the\n\x20reques\ - t\x20body.\x20\x20This\x20enables\x20the\x20following\x20alternative\x20\ - definition\x20of\n\x20the\x20update\x20method:\n\n\x20\x20\x20\x20\x20se\ - rvice\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateMessag\ - e(Message)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20patch:\x20\"/v1/messages/{message_id}\"\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20body:\x20\"*\"\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\ - \n\x20\x20\x20\x20\x20message\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\ - \x20string\x20message_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20string\ - \x20text\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\n\x20The\x20following\x20\ - HTTP\x20JSON\x20to\x20RPC\x20mapping\x20is\x20enabled:\n\n\x20HTTP\x20|\ - \x20gRPC\n\x20-----|-----\n\x20`PATCH\x20/v1/messages/123456\x20{\x20\"t\ - ext\":\x20\"Hi!\"\x20}`\x20|\x20`UpdateMessage(message_id:\n\x20\"123456\ - \"\x20text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20when\x20using\x20`*`\x20\ - in\x20the\x20body\x20mapping,\x20it\x20is\x20not\x20possible\x20to\n\x20\ - have\x20HTTP\x20parameters,\x20as\x20all\x20fields\x20not\x20bound\x20by\ - \x20the\x20path\x20end\x20in\n\x20the\x20body.\x20This\x20makes\x20this\ - \x20option\x20more\x20rarely\x20used\x20in\x20practice\x20when\n\x20defi\ - ning\x20REST\x20APIs.\x20The\x20common\x20usage\x20of\x20`*`\x20is\x20in\ - \x20custom\x20methods\n\x20which\x20don't\x20use\x20the\x20URL\x20at\x20\ - all\x20for\x20transferring\x20data.\n\n\x20It\x20is\x20possible\x20to\ - \x20define\x20multiple\x20HTTP\x20methods\x20for\x20one\x20RPC\x20by\x20\ - using\n\x20the\x20`additional_bindings`\x20option.\x20Example:\n\n\x20\ - \x20\x20\x20\x20service\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20r\ - pc\x20GetMessage(GetMessageRequest)\x20returns\x20(Message)\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.http)\x20=\x20{\n\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/messages/{mess\ - age_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20additional_bindin\ - gs\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/\ - v1/users/{user_id}/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\ - \x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\ - \x20GetMessageRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20messag\ - e_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20string\x20user_id\x20=\x202\ - ;\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20the\x20following\x20t\ - wo\x20alternative\x20HTTP\x20JSON\x20to\x20RPC\x20mappings:\n\n\x20HTTP\ - \x20|\x20gRPC\n\x20-----|-----\n\x20`GET\x20/v1/messages/123456`\x20|\ - \x20`GetMessage(message_id:\x20\"123456\")`\n\x20`GET\x20/v1/users/me/me\ - ssages/123456`\x20|\x20`GetMessage(user_id:\x20\"me\"\x20message_id:\n\ - \x20\"123456\")`\n\n\x20##\x20Rules\x20for\x20HTTP\x20mapping\n\n\x201.\ - \x20Leaf\x20request\x20fields\x20(recursive\x20expansion\x20nested\x20me\ - ssages\x20in\x20the\x20request\n\x20\x20\x20\x20message)\x20are\x20class\ - ified\x20into\x20three\x20categories:\n\x20\x20\x20\x20-\x20Fields\x20re\ - ferred\x20by\x20the\x20path\x20template.\x20They\x20are\x20passed\x20via\ - \x20the\x20URL\x20path.\n\x20\x20\x20\x20-\x20Fields\x20referred\x20by\ - \x20the\x20[HttpRule.body][google.api.HttpRule.body].\x20They\x20are\x20\ - passed\x20via\x20the\x20HTTP\n\x20\x20\x20\x20\x20\x20request\x20body.\n\ - \x20\x20\x20\x20-\x20All\x20other\x20fields\x20are\x20passed\x20via\x20t\ - he\x20URL\x20query\x20parameters,\x20and\x20the\n\x20\x20\x20\x20\x20\ - \x20parameter\x20name\x20is\x20the\x20field\x20path\x20in\x20the\x20requ\ - est\x20message.\x20A\x20repeated\n\x20\x20\x20\x20\x20\x20field\x20can\ - \x20be\x20represented\x20as\x20multiple\x20query\x20parameters\x20under\ - \x20the\x20same\n\x20\x20\x20\x20\x20\x20name.\n\x20\x202.\x20If\x20[Htt\ - pRule.body][google.api.HttpRule.body]\x20is\x20\"*\",\x20there\x20is\x20\ - no\x20URL\x20query\x20parameter,\x20all\x20fields\n\x20\x20\x20\x20\x20a\ - re\x20passed\x20via\x20URL\x20path\x20and\x20HTTP\x20request\x20body.\n\ - \x20\x203.\x20If\x20[HttpRule.body][google.api.HttpRule.body]\x20is\x20o\ - mitted,\x20there\x20is\x20no\x20HTTP\x20request\x20body,\x20all\n\x20\ - \x20\x20\x20\x20fields\x20are\x20passed\x20via\x20URL\x20path\x20and\x20\ - URL\x20query\x20parameters.\n\n\x20###\x20Path\x20template\x20syntax\n\n\ - \x20\x20\x20\x20\x20Template\x20=\x20\"/\"\x20Segments\x20[\x20Verb\x20]\ - \x20;\n\x20\x20\x20\x20\x20Segments\x20=\x20Segment\x20{\x20\"/\"\x20Seg\ - ment\x20}\x20;\n\x20\x20\x20\x20\x20Segment\x20\x20=\x20\"*\"\x20|\x20\"\ - **\"\x20|\x20LITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\ - \x20=\x20\"{\"\x20FieldPath\x20[\x20\"=\"\x20Segments\x20]\x20\"}\"\x20;\ - \n\x20\x20\x20\x20\x20FieldPath\x20=\x20IDENT\x20{\x20\".\"\x20IDENT\x20\ - }\x20;\n\x20\x20\x20\x20\x20Verb\x20\x20\x20\x20\x20=\x20\":\"\x20LITERA\ - L\x20;\n\n\x20The\x20syntax\x20`*`\x20matches\x20a\x20single\x20URL\x20p\ - ath\x20segment.\x20The\x20syntax\x20`**`\x20matches\n\x20zero\x20or\x20m\ - ore\x20URL\x20path\x20segments,\x20which\x20must\x20be\x20the\x20last\ - \x20part\x20of\x20the\x20URL\x20path\n\x20except\x20the\x20`Verb`.\n\n\ - \x20The\x20syntax\x20`Variable`\x20matches\x20part\x20of\x20the\x20URL\ - \x20path\x20as\x20specified\x20by\x20its\n\x20template.\x20A\x20variable\ - \x20template\x20must\x20not\x20contain\x20other\x20variables.\x20If\x20a\ - \x20variable\n\x20matches\x20a\x20single\x20path\x20segment,\x20its\x20t\ - emplate\x20may\x20be\x20omitted,\x20e.g.\x20`{var}`\n\x20is\x20equivalen\ - t\x20to\x20`{var=*}`.\n\n\x20The\x20syntax\x20`LITERAL`\x20matches\x20li\ - teral\x20text\x20in\x20the\x20URL\x20path.\x20If\x20the\x20`LITERAL`\n\ - \x20contains\x20any\x20reserved\x20character,\x20such\x20characters\x20s\ - hould\x20be\x20percent-encoded\n\x20before\x20the\x20matching.\n\n\x20If\ - \x20a\x20variable\x20contains\x20exactly\x20one\x20path\x20segment,\x20s\ - uch\x20as\x20`\"{var}\"`\x20or\n\x20`\"{var=*}\"`,\x20when\x20such\x20a\ - \x20variable\x20is\x20expanded\x20into\x20a\x20URL\x20path\x20on\x20the\ - \x20client\n\x20side,\x20all\x20characters\x20except\x20`[-_.~0-9a-zA-Z]\ - `\x20are\x20percent-encoded.\x20The\n\x20server\x20side\x20does\x20the\ - \x20reverse\x20decoding.\x20Such\x20variables\x20show\x20up\x20in\x20the\ - \n\x20[Discovery\n\x20Document](https://developers.google.com/discovery/\ - v1/reference/apis)\x20as\n\x20`{var}`.\n\n\x20If\x20a\x20variable\x20con\ - tains\x20multiple\x20path\x20segments,\x20such\x20as\x20`\"{var=foo/*}\"\ - `\n\x20or\x20`\"{var=**}\"`,\x20when\x20such\x20a\x20variable\x20is\x20e\ - xpanded\x20into\x20a\x20URL\x20path\x20on\x20the\n\x20client\x20side,\ - \x20all\x20characters\x20except\x20`[-_.~/0-9a-zA-Z]`\x20are\x20percent-\ - encoded.\n\x20The\x20server\x20side\x20does\x20the\x20reverse\x20decodin\ - g,\x20except\x20\"%2F\"\x20and\x20\"%2f\"\x20are\x20left\n\x20unchanged.\ - \x20Such\x20variables\x20show\x20up\x20in\x20the\n\x20[Discovery\n\x20Do\ - cument](https://developers.google.com/discovery/v1/reference/apis)\x20as\ - \n\x20`{+var}`.\n\n\x20##\x20Using\x20gRPC\x20API\x20Service\x20Configur\ - ation\n\n\x20gRPC\x20API\x20Service\x20Configuration\x20(service\x20conf\ - ig)\x20is\x20a\x20configuration\x20language\n\x20for\x20configuring\x20a\ - \x20gRPC\x20service\x20to\x20become\x20a\x20user-facing\x20product.\x20T\ - he\n\x20service\x20config\x20is\x20simply\x20the\x20YAML\x20representati\ - on\x20of\x20the\x20`google.api.Service`\n\x20proto\x20message.\n\n\x20As\ - \x20an\x20alternative\x20to\x20annotating\x20your\x20proto\x20file,\x20y\ - ou\x20can\x20configure\x20gRPC\n\x20transcoding\x20in\x20your\x20service\ - \x20config\x20YAML\x20files.\x20You\x20do\x20this\x20by\x20specifying\ - \x20a\n\x20`HttpRule`\x20that\x20maps\x20the\x20gRPC\x20method\x20to\x20\ - a\x20REST\x20endpoint,\x20achieving\x20the\x20same\n\x20effect\x20as\x20\ - the\x20proto\x20annotation.\x20This\x20can\x20be\x20particularly\x20usef\ - ul\x20if\x20you\n\x20have\x20a\x20proto\x20that\x20is\x20reused\x20in\ - \x20multiple\x20services.\x20Note\x20that\x20any\x20transcoding\n\x20spe\ - cified\x20in\x20the\x20service\x20config\x20will\x20override\x20any\x20m\ - atching\x20transcoding\n\x20configuration\x20in\x20the\x20proto.\n\n\x20\ - Example:\n\n\x20\x20\x20\x20\x20http:\n\x20\x20\x20\x20\x20\x20\x20rules\ - :\n\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Selects\x20a\x20gRPC\x20meth\ - od\x20and\x20applies\x20HttpRule\x20to\x20it.\n\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20-\x20selector:\x20example.v1.Messaging.GetMessage\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20/v1/messages/{message_id}/{s\ - ub.subfield}\n\n\x20##\x20Special\x20notes\n\n\x20When\x20gRPC\x20Transc\ - oding\x20is\x20used\x20to\x20map\x20a\x20gRPC\x20to\x20JSON\x20REST\x20e\ - ndpoints,\x20the\n\x20proto\x20to\x20JSON\x20conversion\x20must\x20follo\ - w\x20the\x20[proto3\n\x20specification](https://developers.google.com/pr\ - otocol-buffers/docs/proto3#json).\n\n\x20While\x20the\x20single\x20segme\ - nt\x20variable\x20follows\x20the\x20semantics\x20of\n\x20[RFC\x206570](h\ - ttps://tools.ietf.org/html/rfc6570)\x20Section\x203.2.2\x20Simple\x20Str\ - ing\n\x20Expansion,\x20the\x20multi\x20segment\x20variable\x20**does\x20\ - not**\x20follow\x20RFC\x206570\x20Section\n\x203.2.3\x20Reserved\x20Expa\ - nsion.\x20The\x20reason\x20is\x20that\x20the\x20Reserved\x20Expansion\n\ - \x20does\x20not\x20expand\x20special\x20characters\x20like\x20`?`\x20and\ - \x20`#`,\x20which\x20would\x20lead\n\x20to\x20invalid\x20URLs.\x20As\x20\ - the\x20result,\x20gRPC\x20Transcoding\x20uses\x20a\x20custom\x20encoding\ - \n\x20for\x20multi\x20segment\x20variables.\n\n\x20The\x20path\x20variab\ - les\x20**must\x20not**\x20refer\x20to\x20any\x20repeated\x20or\x20mapped\ - \x20field,\n\x20because\x20client\x20libraries\x20are\x20not\x20capable\ - \x20of\x20handling\x20such\x20variable\x20expansion.\n\n\x20The\x20path\ - \x20variables\x20**must\x20not**\x20capture\x20the\x20leading\x20\"/\"\ - \x20character.\x20The\x20reason\n\x20is\x20that\x20the\x20most\x20common\ - \x20use\x20case\x20\"{var}\"\x20does\x20not\x20capture\x20the\x20leading\ - \x20\"/\"\n\x20character.\x20For\x20consistency,\x20all\x20path\x20varia\ - bles\x20must\x20share\x20the\x20same\x20behavior.\n\n\x20Repeated\x20mes\ - sage\x20fields\x20must\x20not\x20be\x20mapped\x20to\x20URL\x20query\x20p\ - arameters,\x20because\n\x20no\x20client\x20library\x20can\x20support\x20\ - such\x20complicated\x20mapping.\n\n\x20If\x20an\x20API\x20needs\x20to\ - \x20use\x20a\x20JSON\x20array\x20for\x20request\x20or\x20response\x20bod\ - y,\x20it\x20can\x20map\n\x20the\x20request\x20or\x20response\x20body\x20\ - to\x20a\x20repeated\x20field.\x20However,\x20some\x20gRPC\n\x20Transcodi\ - ng\x20implementations\x20may\x20not\x20support\x20this\x20feature.\n\n\ - \x0b\n\x03\x04\x01\x01\x12\x04\xb9\x02\x08\x10\n\x8d\x01\n\x04\x04\x01\ - \x02\0\x12\x04\xbd\x02\x02\x16\x1a\x7f\x20Selects\x20a\x20method\x20to\ - \x20which\x20this\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selector][g\ - oogle.api.DocumentationRule.selector]\x20for\x20syntax\x20details.\n\n\r\ - \n\x05\x04\x01\x02\0\x05\x12\x04\xbd\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\ - \x01\x12\x04\xbd\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xbd\x02\ - \x14\x15\n\xd0\x01\n\x04\x04\x01\x08\0\x12\x06\xc2\x02\x02\xd8\x02\x03\ - \x1a\xbf\x01\x20Determines\x20the\x20URL\x20pattern\x20is\x20matched\x20\ - by\x20this\x20rules.\x20This\x20pattern\x20can\x20be\n\x20used\x20with\ - \x20any\x20of\x20the\x20{get|put|post|delete|patch}\x20methods.\x20A\x20\ - custom\x20method\n\x20can\x20be\x20defined\x20using\x20the\x20'custom'\ - \x20field.\n\n\r\n\x05\x04\x01\x08\0\x01\x12\x04\xc2\x02\x08\x0f\n\\\n\ - \x04\x04\x01\x02\x01\x12\x04\xc5\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\ - \x20GET.\x20Used\x20for\x20listing\x20and\x20getting\x20information\x20a\ - bout\n\x20resources.\n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc5\x02\x04\ - \n\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xc5\x02\x0b\x0e\n\r\n\x05\x04\ - \x01\x02\x01\x03\x12\x04\xc5\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\ - \x04\xc8\x02\x04\x13\x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\ - \x20replacing\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\ - \xc8\x02\x04\n\n\r\n\x05\x04\x01\x02\x02\x01\x12\x04\xc8\x02\x0b\x0e\n\r\ - \n\x05\x04\x01\x02\x02\x03\x12\x04\xc8\x02\x11\x12\nX\n\x04\x04\x01\x02\ - \x03\x12\x04\xcb\x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\ - \x20for\x20creating\x20a\x20resource\x20or\x20performing\x20an\x20action\ - .\n\n\r\n\x05\x04\x01\x02\x03\x05\x12\x04\xcb\x02\x04\n\n\r\n\x05\x04\ - \x01\x02\x03\x01\x12\x04\xcb\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\ - \x12\x04\xcb\x02\x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xce\x02\x04\ - \x16\x1a4\x20Maps\x20to\x20HTTP\x20DELETE.\x20Used\x20for\x20deleting\ - \x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\xce\x02\x04\n\ - \n\r\n\x05\x04\x01\x02\x04\x01\x12\x04\xce\x02\x0b\x11\n\r\n\x05\x04\x01\ - \x02\x04\x03\x12\x04\xce\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\ - \xd1\x02\x04\x15\x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20\ - updating\x20a\x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xd1\ - \x02\x04\n\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\xd1\x02\x0b\x10\n\r\n\ - \x05\x04\x01\x02\x05\x03\x12\x04\xd1\x02\x13\x14\n\x98\x02\n\x04\x04\x01\ - \x02\x06\x12\x04\xd7\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\ - \x20is\x20used\x20for\x20specifying\x20an\x20HTTP\x20method\x20that\x20i\ - s\x20not\n\x20included\x20in\x20the\x20`pattern`\x20field,\x20such\x20as\ - \x20HEAD,\x20or\x20\"*\"\x20to\x20leave\x20the\n\x20HTTP\x20method\x20un\ - specified\x20for\x20this\x20rule.\x20The\x20wild-card\x20rule\x20is\x20u\ - seful\n\x20for\x20services\x20that\x20provide\x20content\x20to\x20Web\ - \x20(HTML)\x20clients.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xd7\x02\ - \x04\x15\n\r\n\x05\x04\x01\x02\x06\x01\x12\x04\xd7\x02\x16\x1c\n\r\n\x05\ - \x04\x01\x02\x06\x03\x12\x04\xd7\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\ - \x07\x12\x04\xe0\x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20\ - request\x20field\x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\ - \x20request\n\x20body,\x20or\x20`*`\x20for\x20mapping\x20all\x20request\ - \x20fields\x20not\x20captured\x20by\x20the\x20path\n\x20pattern\x20to\ - \x20the\x20HTTP\x20body,\x20or\x20omitted\x20for\x20not\x20having\x20any\ - \x20HTTP\x20request\x20body.\n\n\x20NOTE:\x20the\x20referred\x20field\ - \x20must\x20be\x20present\x20at\x20the\x20top-level\x20of\x20the\x20requ\ - est\n\x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xe0\ - \x02\x02\x08\n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\xe0\x02\t\r\n\r\n\x05\ - \x04\x01\x02\x07\x03\x12\x04\xe0\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\ - \x08\x12\x04\xe8\x02\x02\x1c\x1a\x8a\x02\x20Optional.\x20The\x20name\x20\ - of\x20the\x20response\x20field\x20whose\x20value\x20is\x20mapped\x20to\ - \x20the\x20HTTP\n\x20response\x20body.\x20When\x20omitted,\x20the\x20ent\ - ire\x20response\x20message\x20will\x20be\x20used\n\x20as\x20the\x20HTTP\ - \x20response\x20body.\n\n\x20NOTE:\x20The\x20referred\x20field\x20must\ - \x20be\x20present\x20at\x20the\x20top-level\x20of\x20the\x20response\n\ - \x20message\x20type.\n\n\r\n\x05\x04\x01\x02\x08\x05\x12\x04\xe8\x02\x02\ - \x08\n\r\n\x05\x04\x01\x02\x08\x01\x12\x04\xe8\x02\t\x16\n\r\n\x05\x04\ - \x01\x02\x08\x03\x12\x04\xe8\x02\x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\ - \x12\x04\xed\x02\x02-\x1a\xac\x01\x20Additional\x20HTTP\x20bindings\x20f\ - or\x20the\x20selector.\x20Nested\x20bindings\x20must\n\x20not\x20contain\ - \x20an\x20`additional_bindings`\x20field\x20themselves\x20(that\x20is,\n\ - \x20the\x20nesting\x20may\x20only\x20be\x20one\x20level\x20deep).\n\n\r\ - \n\x05\x04\x01\x02\t\x04\x12\x04\xed\x02\x02\n\n\r\n\x05\x04\x01\x02\t\ - \x06\x12\x04\xed\x02\x0b\x13\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xed\x02\ - \x14'\n\r\n\x05\x04\x01\x02\t\x03\x12\x04\xed\x02*,\nG\n\x02\x04\x02\x12\ - \x06\xf1\x02\0\xf7\x02\x01\x1a9\x20A\x20custom\x20pattern\x20is\x20used\ - \x20for\x20defining\x20custom\x20HTTP\x20verb.\n\n\x0b\n\x03\x04\x02\x01\ - \x12\x04\xf1\x02\x08\x19\n2\n\x04\x04\x02\x02\0\x12\x04\xf3\x02\x02\x12\ - \x1a$\x20The\x20name\x20of\x20this\x20custom\x20HTTP\x20verb.\n\n\r\n\ - \x05\x04\x02\x02\0\x05\x12\x04\xf3\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\ - \x01\x12\x04\xf3\x02\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xf3\x02\x10\ - \x11\n5\n\x04\x04\x02\x02\x01\x12\x04\xf6\x02\x02\x12\x1a'\x20The\x20pat\ - h\x20matched\x20by\x20this\x20custom\x20verb.\n\n\r\n\x05\x04\x02\x02\ - \x01\x05\x12\x04\xf6\x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\ - \xf6\x02\t\r\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\xf6\x02\x10\x11b\x06p\ - roto3\ + ods.\n\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x0c\n\xa2\x01\n\x04\x04\0\x02\ + \0\x12\x03\x20\x02\x1e\x1a\x94\x01\x20A\x20list\x20of\x20HTTP\x20configu\ + ration\x20rules\x20that\x20apply\x20to\x20individual\x20API\x20methods.\ + \n\n\x20**NOTE:**\x20All\x20service\x20configuration\x20rules\x20follow\ + \x20\"last\x20one\x20wins\"\x20order.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\ + \x03\x20\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x20\x0b\x13\n\x0c\n\ + \x05\x04\0\x02\0\x01\x12\x03\x20\x14\x19\n\x0c\n\x05\x04\0\x02\0\x03\x12\ + \x03\x20\x1c\x1d\n\x94\x02\n\x04\x04\0\x02\x01\x12\x03(\x02+\x1a\x86\x02\ + \x20When\x20set\x20to\x20true,\x20URL\x20path\x20parameters\x20will\x20b\ + e\x20fully\x20URI-decoded\x20except\x20in\n\x20cases\x20of\x20single\x20\ + segment\x20matches\x20in\x20reserved\x20expansion,\x20where\x20\"%2F\"\ + \x20will\x20be\n\x20left\x20encoded.\n\n\x20The\x20default\x20behavior\ + \x20is\x20to\x20not\x20decode\x20RFC\x206570\x20reserved\x20characters\ + \x20in\x20multi\n\x20segment\x20matches.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ + \x12\x03(\x02\x06\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03(\x07&\n\x0c\n\ + \x05\x04\0\x02\x01\x03\x12\x03()*\n\x87S\n\x02\x04\x01\x12\x06\xb3\x02\0\ + \xe9\x02\x01\x1a\xf8R\x20gRPC\x20Transcoding\n\n\x20gRPC\x20Transcoding\ + \x20is\x20a\x20feature\x20for\x20mapping\x20between\x20a\x20gRPC\x20meth\ + od\x20and\x20one\x20or\n\x20more\x20HTTP\x20REST\x20endpoints.\x20It\x20\ + allows\x20developers\x20to\x20build\x20a\x20single\x20API\x20service\n\ + \x20that\x20supports\x20both\x20gRPC\x20APIs\x20and\x20REST\x20APIs.\x20\ + Many\x20systems,\x20including\x20[Google\n\x20APIs](https://github.com/g\ + oogleapis/googleapis),\n\x20[Cloud\x20Endpoints](https://cloud.google.co\ + m/endpoints),\x20[gRPC\n\x20Gateway](https://github.com/grpc-ecosystem/g\ + rpc-gateway),\n\x20and\x20[Envoy](https://github.com/envoyproxy/envoy)\ + \x20proxy\x20support\x20this\x20feature\n\x20and\x20use\x20it\x20for\x20\ + large\x20scale\x20production\x20services.\n\n\x20`HttpRule`\x20defines\ + \x20the\x20schema\x20of\x20the\x20gRPC/REST\x20mapping.\x20The\x20mappin\ + g\x20specifies\n\x20how\x20different\x20portions\x20of\x20the\x20gRPC\ + \x20request\x20message\x20are\x20mapped\x20to\x20the\x20URL\n\x20path,\ + \x20URL\x20query\x20parameters,\x20and\x20HTTP\x20request\x20body.\x20It\ + \x20also\x20controls\x20how\x20the\n\x20gRPC\x20response\x20message\x20i\ + s\x20mapped\x20to\x20the\x20HTTP\x20response\x20body.\x20`HttpRule`\x20i\ + s\n\x20typically\x20specified\x20as\x20an\x20`google.api.http`\x20annota\ + tion\x20on\x20the\x20gRPC\x20method.\n\n\x20Each\x20mapping\x20specifies\ + \x20a\x20URL\x20path\x20template\x20and\x20an\x20HTTP\x20method.\x20The\ + \x20path\n\x20template\x20may\x20refer\x20to\x20one\x20or\x20more\x20fie\ + lds\x20in\x20the\x20gRPC\x20request\x20message,\x20as\x20long\n\x20as\ + \x20each\x20field\x20is\x20a\x20non-repeated\x20field\x20with\x20a\x20pr\ + imitive\x20(non-message)\x20type.\n\x20The\x20path\x20template\x20contro\ + ls\x20how\x20fields\x20of\x20the\x20request\x20message\x20are\x20mapped\ + \x20to\n\x20the\x20URL\x20path.\n\n\x20Example:\n\n\x20\x20\x20\x20\x20s\ + ervice\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(\ + GetMessageRequest)\x20returns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20option\x20(google.api.http)\x20=\x20{\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20get:\x20\"/v1/{name=messages/*}\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20GetMessageRequest\ + \x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20name\x20=\x201;\x20//\x20Ma\ + pped\x20to\x20URL\x20path.\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20m\ + essage\x20Message\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\ + \x201;\x20//\x20The\x20resource\x20content.\n\x20\x20\x20\x20\x20}\n\n\ + \x20This\x20enables\x20an\x20HTTP\x20REST\x20to\x20gRPC\x20mapping\x20as\ + \x20below:\n\n\x20-\x20HTTP:\x20`GET\x20/v1/messages/123456`\n\x20-\x20g\ + RPC:\x20`GetMessage(name:\x20\"messages/123456\")`\n\n\x20Any\x20fields\ + \x20in\x20the\x20request\x20message\x20which\x20are\x20not\x20bound\x20b\ + y\x20the\x20path\x20template\n\x20automatically\x20become\x20HTTP\x20que\ + ry\x20parameters\x20if\x20there\x20is\x20no\x20HTTP\x20request\x20body.\ + \n\x20For\x20example:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\ + \x20\x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageRequest)\x20retu\ + rns\x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(go\ + ogle.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20get:\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\ + \x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\x20\x20\x20\x20\x20\ + \x20\x20message\x20SubMessage\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + string\x20subfield\x20=\x201;\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\ + \x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\x20//\x20Mapped\x20t\ + o\x20URL\x20path.\n\x20\x20\x20\x20\x20\x20\x20int64\x20revision\x20=\ + \x202;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20parameter\ + \x20`revision`.\n\x20\x20\x20\x20\x20\x20\x20SubMessage\x20sub\x20=\x203\ + ;\x20\x20\x20\x20//\x20Mapped\x20to\x20URL\x20query\x20parameter\x20`sub\ + .subfield`.\n\x20\x20\x20\x20\x20}\n\n\x20This\x20enables\x20a\x20HTTP\ + \x20JSON\x20to\x20RPC\x20mapping\x20as\x20below:\n\n\x20-\x20HTTP:\x20`G\ + ET\x20/v1/messages/123456?revision=2&sub.subfield=foo`\n\x20-\x20gRPC:\ + \x20`GetMessage(message_id:\x20\"123456\"\x20revision:\x202\x20sub:\n\ + \x20SubMessage(subfield:\x20\"foo\"))`\n\n\x20Note\x20that\x20fields\x20\ + which\x20are\x20mapped\x20to\x20URL\x20query\x20parameters\x20must\x20ha\ + ve\x20a\n\x20primitive\x20type\x20or\x20a\x20repeated\x20primitive\x20ty\ + pe\x20or\x20a\x20non-repeated\x20message\x20type.\n\x20In\x20the\x20case\ + \x20of\x20a\x20repeated\x20type,\x20the\x20parameter\x20can\x20be\x20rep\ + eated\x20in\x20the\x20URL\n\x20as\x20`...?param=A¶m=B`.\x20In\x20the\ + \x20case\x20of\x20a\x20message\x20type,\x20each\x20field\x20of\x20the\n\ + \x20message\x20is\x20mapped\x20to\x20a\x20separate\x20parameter,\x20such\ + \x20as\n\x20`...?foo.a=A&foo.b=B&foo.c=C`.\n\n\x20For\x20HTTP\x20methods\ + \x20that\x20allow\x20a\x20request\x20body,\x20the\x20`body`\x20field\n\ + \x20specifies\x20the\x20mapping.\x20Consider\x20a\x20REST\x20update\x20m\ + ethod\x20on\x20the\n\x20message\x20resource\x20collection:\n\n\x20\x20\ + \x20\x20\x20service\x20Messaging\x20{\n\x20\x20\x20\x20\x20\x20\x20rpc\ + \x20UpdateMessage(UpdateMessageRequest)\x20returns\x20(Message)\x20{\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.http)\x20=\x20\ + {\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patch:\x20\"/v1/messages/\ + {message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20body:\x20\"m\ + essage\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\x20\ + \x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20UpdateM\ + essageRequest\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20message_id\x20\ + =\x201;\x20//\x20mapped\x20to\x20the\x20URL\n\x20\x20\x20\x20\x20\x20\ + \x20Message\x20message\x20=\x202;\x20\x20\x20//\x20mapped\x20to\x20the\ + \x20body\n\x20\x20\x20\x20\x20}\n\n\x20The\x20following\x20HTTP\x20JSON\ + \x20to\x20RPC\x20mapping\x20is\x20enabled,\x20where\x20the\n\x20represen\ + tation\x20of\x20the\x20JSON\x20in\x20the\x20request\x20body\x20is\x20det\ + ermined\x20by\n\x20protos\x20JSON\x20encoding:\n\n\x20-\x20HTTP:\x20`PAT\ + CH\x20/v1/messages/123456\x20{\x20\"text\":\x20\"Hi!\"\x20}`\n\x20-\x20g\ + RPC:\x20`UpdateMessage(message_id:\x20\"123456\"\x20message\x20{\x20text\ + :\x20\"Hi!\"\x20})`\n\n\x20The\x20special\x20name\x20`*`\x20can\x20be\ + \x20used\x20in\x20the\x20body\x20mapping\x20to\x20define\x20that\n\x20ev\ + ery\x20field\x20not\x20bound\x20by\x20the\x20path\x20template\x20should\ + \x20be\x20mapped\x20to\x20the\n\x20request\x20body.\x20\x20This\x20enabl\ + es\x20the\x20following\x20alternative\x20definition\x20of\n\x20the\x20up\ + date\x20method:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20rpc\x20UpdateMessage(Message)\x20returns\x20(Mes\ + sage)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(google.api.ht\ + tp)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20patch:\x20\"/\ + v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + body:\x20\"*\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20};\n\x20\x20\x20\x20\ + \x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20message\x20Mes\ + sage\x20{\n\x20\x20\x20\x20\x20\x20\x20string\x20message_id\x20=\x201;\n\ + \x20\x20\x20\x20\x20\x20\x20string\x20text\x20=\x202;\n\x20\x20\x20\x20\ + \x20}\n\n\n\x20The\x20following\x20HTTP\x20JSON\x20to\x20RPC\x20mapping\ + \x20is\x20enabled:\n\n\x20-\x20HTTP:\x20`PATCH\x20/v1/messages/123456\ + \x20{\x20\"text\":\x20\"Hi!\"\x20}`\n\x20-\x20gRPC:\x20`UpdateMessage(me\ + ssage_id:\x20\"123456\"\x20text:\x20\"Hi!\")`\n\n\x20Note\x20that\x20whe\ + n\x20using\x20`*`\x20in\x20the\x20body\x20mapping,\x20it\x20is\x20not\ + \x20possible\x20to\n\x20have\x20HTTP\x20parameters,\x20as\x20all\x20fiel\ + ds\x20not\x20bound\x20by\x20the\x20path\x20end\x20in\n\x20the\x20body.\ + \x20This\x20makes\x20this\x20option\x20more\x20rarely\x20used\x20in\x20p\ + ractice\x20when\n\x20defining\x20REST\x20APIs.\x20The\x20common\x20usage\ + \x20of\x20`*`\x20is\x20in\x20custom\x20methods\n\x20which\x20don't\x20us\ + e\x20the\x20URL\x20at\x20all\x20for\x20transferring\x20data.\n\n\x20It\ + \x20is\x20possible\x20to\x20define\x20multiple\x20HTTP\x20methods\x20for\ + \x20one\x20RPC\x20by\x20using\n\x20the\x20`additional_bindings`\x20optio\ + n.\x20Example:\n\n\x20\x20\x20\x20\x20service\x20Messaging\x20{\n\x20\ + \x20\x20\x20\x20\x20\x20rpc\x20GetMessage(GetMessageRequest)\x20returns\ + \x20(Message)\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20option\x20(googl\ + e.api.http)\x20=\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20get:\ + \x20\"/v1/messages/{message_id}\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20additional_bindings\x20{\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20get:\x20\"/v1/users/{user_id}/messages/{message_id}\"\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20};\n\x20\x20\x20\x20\x20\x20\x20}\n\x20\x20\x20\x20\x20}\n\ + \x20\x20\x20\x20\x20message\x20GetMessageRequest\x20{\n\x20\x20\x20\x20\ + \x20\x20\x20string\x20message_id\x20=\x201;\n\x20\x20\x20\x20\x20\x20\ + \x20string\x20user_id\x20=\x202;\n\x20\x20\x20\x20\x20}\n\n\x20This\x20e\ + nables\x20the\x20following\x20two\x20alternative\x20HTTP\x20JSON\x20to\ + \x20RPC\x20mappings:\n\n\x20-\x20HTTP:\x20`GET\x20/v1/messages/123456`\n\ + \x20-\x20gRPC:\x20`GetMessage(message_id:\x20\"123456\")`\n\n\x20-\x20HT\ + TP:\x20`GET\x20/v1/users/me/messages/123456`\n\x20-\x20gRPC:\x20`GetMess\ + age(user_id:\x20\"me\"\x20message_id:\x20\"123456\")`\n\n\x20Rules\x20fo\ + r\x20HTTP\x20mapping\n\n\x201.\x20Leaf\x20request\x20fields\x20(recursiv\ + e\x20expansion\x20nested\x20messages\x20in\x20the\x20request\n\x20\x20\ + \x20\x20message)\x20are\x20classified\x20into\x20three\x20categories:\n\ + \x20\x20\x20\x20-\x20Fields\x20referred\x20by\x20the\x20path\x20template\ + .\x20They\x20are\x20passed\x20via\x20the\x20URL\x20path.\n\x20\x20\x20\ + \x20-\x20Fields\x20referred\x20by\x20the\x20[HttpRule.body][google.api.H\ + ttpRule.body].\x20They\n\x20\x20\x20\x20are\x20passed\x20via\x20the\x20H\ + TTP\n\x20\x20\x20\x20\x20\x20request\x20body.\n\x20\x20\x20\x20-\x20All\ + \x20other\x20fields\x20are\x20passed\x20via\x20the\x20URL\x20query\x20pa\ + rameters,\x20and\x20the\n\x20\x20\x20\x20\x20\x20parameter\x20name\x20is\ + \x20the\x20field\x20path\x20in\x20the\x20request\x20message.\x20A\x20rep\ + eated\n\x20\x20\x20\x20\x20\x20field\x20can\x20be\x20represented\x20as\ + \x20multiple\x20query\x20parameters\x20under\x20the\x20same\n\x20\x20\ + \x20\x20\x20\x20name.\n\x20\x202.\x20If\x20[HttpRule.body][google.api.Ht\ + tpRule.body]\x20is\x20\"*\",\x20there\x20is\x20no\x20URL\n\x20\x20query\ + \x20parameter,\x20all\x20fields\n\x20\x20\x20\x20\x20are\x20passed\x20vi\ + a\x20URL\x20path\x20and\x20HTTP\x20request\x20body.\n\x20\x203.\x20If\ + \x20[HttpRule.body][google.api.HttpRule.body]\x20is\x20omitted,\x20there\ + \x20is\x20no\x20HTTP\n\x20\x20request\x20body,\x20all\n\x20\x20\x20\x20\ + \x20fields\x20are\x20passed\x20via\x20URL\x20path\x20and\x20URL\x20query\ + \x20parameters.\n\n\x20Path\x20template\x20syntax\n\n\x20\x20\x20\x20\ + \x20Template\x20=\x20\"/\"\x20Segments\x20[\x20Verb\x20]\x20;\n\x20\x20\ + \x20\x20\x20Segments\x20=\x20Segment\x20{\x20\"/\"\x20Segment\x20}\x20;\ + \n\x20\x20\x20\x20\x20Segment\x20\x20=\x20\"*\"\x20|\x20\"**\"\x20|\x20L\ + ITERAL\x20|\x20Variable\x20;\n\x20\x20\x20\x20\x20Variable\x20=\x20\"{\"\ + \x20FieldPath\x20[\x20\"=\"\x20Segments\x20]\x20\"}\"\x20;\n\x20\x20\x20\ + \x20\x20FieldPath\x20=\x20IDENT\x20{\x20\".\"\x20IDENT\x20}\x20;\n\x20\ + \x20\x20\x20\x20Verb\x20\x20\x20\x20\x20=\x20\":\"\x20LITERAL\x20;\n\n\ + \x20The\x20syntax\x20`*`\x20matches\x20a\x20single\x20URL\x20path\x20seg\ + ment.\x20The\x20syntax\x20`**`\x20matches\n\x20zero\x20or\x20more\x20URL\ + \x20path\x20segments,\x20which\x20must\x20be\x20the\x20last\x20part\x20o\ + f\x20the\x20URL\x20path\n\x20except\x20the\x20`Verb`.\n\n\x20The\x20synt\ + ax\x20`Variable`\x20matches\x20part\x20of\x20the\x20URL\x20path\x20as\ + \x20specified\x20by\x20its\n\x20template.\x20A\x20variable\x20template\ + \x20must\x20not\x20contain\x20other\x20variables.\x20If\x20a\x20variable\ + \n\x20matches\x20a\x20single\x20path\x20segment,\x20its\x20template\x20m\ + ay\x20be\x20omitted,\x20e.g.\x20`{var}`\n\x20is\x20equivalent\x20to\x20`\ + {var=*}`.\n\n\x20The\x20syntax\x20`LITERAL`\x20matches\x20literal\x20tex\ + t\x20in\x20the\x20URL\x20path.\x20If\x20the\x20`LITERAL`\n\x20contains\ + \x20any\x20reserved\x20character,\x20such\x20characters\x20should\x20be\ + \x20percent-encoded\n\x20before\x20the\x20matching.\n\n\x20If\x20a\x20va\ + riable\x20contains\x20exactly\x20one\x20path\x20segment,\x20such\x20as\ + \x20`\"{var}\"`\x20or\n\x20`\"{var=*}\"`,\x20when\x20such\x20a\x20variab\ + le\x20is\x20expanded\x20into\x20a\x20URL\x20path\x20on\x20the\x20client\ + \n\x20side,\x20all\x20characters\x20except\x20`[-_.~0-9a-zA-Z]`\x20are\ + \x20percent-encoded.\x20The\n\x20server\x20side\x20does\x20the\x20revers\ + e\x20decoding.\x20Such\x20variables\x20show\x20up\x20in\x20the\n\x20[Dis\ + covery\n\x20Document](https://developers.google.com/discovery/v1/referen\ + ce/apis)\x20as\n\x20`{var}`.\n\n\x20If\x20a\x20variable\x20contains\x20m\ + ultiple\x20path\x20segments,\x20such\x20as\x20`\"{var=foo/*}\"`\n\x20or\ + \x20`\"{var=**}\"`,\x20when\x20such\x20a\x20variable\x20is\x20expanded\ + \x20into\x20a\x20URL\x20path\x20on\x20the\n\x20client\x20side,\x20all\ + \x20characters\x20except\x20`[-_.~/0-9a-zA-Z]`\x20are\x20percent-encoded\ + .\n\x20The\x20server\x20side\x20does\x20the\x20reverse\x20decoding,\x20e\ + xcept\x20\"%2F\"\x20and\x20\"%2f\"\x20are\x20left\n\x20unchanged.\x20Suc\ + h\x20variables\x20show\x20up\x20in\x20the\n\x20[Discovery\n\x20Document]\ + (https://developers.google.com/discovery/v1/reference/apis)\x20as\n\x20`\ + {+var}`.\n\n\x20Using\x20gRPC\x20API\x20Service\x20Configuration\n\n\x20\ + gRPC\x20API\x20Service\x20Configuration\x20(service\x20config)\x20is\x20\ + a\x20configuration\x20language\n\x20for\x20configuring\x20a\x20gRPC\x20s\ + ervice\x20to\x20become\x20a\x20user-facing\x20product.\x20The\n\x20servi\ + ce\x20config\x20is\x20simply\x20the\x20YAML\x20representation\x20of\x20t\ + he\x20`google.api.Service`\n\x20proto\x20message.\n\n\x20As\x20an\x20alt\ + ernative\x20to\x20annotating\x20your\x20proto\x20file,\x20you\x20can\x20\ + configure\x20gRPC\n\x20transcoding\x20in\x20your\x20service\x20config\ + \x20YAML\x20files.\x20You\x20do\x20this\x20by\x20specifying\x20a\n\x20`H\ + ttpRule`\x20that\x20maps\x20the\x20gRPC\x20method\x20to\x20a\x20REST\x20\ + endpoint,\x20achieving\x20the\x20same\n\x20effect\x20as\x20the\x20proto\ + \x20annotation.\x20This\x20can\x20be\x20particularly\x20useful\x20if\x20\ + you\n\x20have\x20a\x20proto\x20that\x20is\x20reused\x20in\x20multiple\ + \x20services.\x20Note\x20that\x20any\x20transcoding\n\x20specified\x20in\ + \x20the\x20service\x20config\x20will\x20override\x20any\x20matching\x20t\ + ranscoding\n\x20configuration\x20in\x20the\x20proto.\n\n\x20The\x20follo\ + wing\x20example\x20selects\x20a\x20gRPC\x20method\x20and\x20applies\x20a\ + n\x20`HttpRule`\x20to\x20it:\n\n\x20\x20\x20\x20\x20http:\n\x20\x20\x20\ + \x20\x20\x20\x20rules:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20selecto\ + r:\x20example.v1.Messaging.GetMessage\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20get:\x20/v1/messages/{message_id}/{sub.subfield}\n\n\x20Spec\ + ial\x20notes\n\n\x20When\x20gRPC\x20Transcoding\x20is\x20used\x20to\x20m\ + ap\x20a\x20gRPC\x20to\x20JSON\x20REST\x20endpoints,\x20the\n\x20proto\ + \x20to\x20JSON\x20conversion\x20must\x20follow\x20the\x20[proto3\n\x20sp\ + ecification](https://developers.google.com/protocol-buffers/docs/proto3#\ + json).\n\n\x20While\x20the\x20single\x20segment\x20variable\x20follows\ + \x20the\x20semantics\x20of\n\x20[RFC\x206570](https://tools.ietf.org/htm\ + l/rfc6570)\x20Section\x203.2.2\x20Simple\x20String\n\x20Expansion,\x20th\ + e\x20multi\x20segment\x20variable\x20**does\x20not**\x20follow\x20RFC\ + \x206570\x20Section\n\x203.2.3\x20Reserved\x20Expansion.\x20The\x20reaso\ + n\x20is\x20that\x20the\x20Reserved\x20Expansion\n\x20does\x20not\x20expa\ + nd\x20special\x20characters\x20like\x20`?`\x20and\x20`#`,\x20which\x20wo\ + uld\x20lead\n\x20to\x20invalid\x20URLs.\x20As\x20the\x20result,\x20gRPC\ + \x20Transcoding\x20uses\x20a\x20custom\x20encoding\n\x20for\x20multi\x20\ + segment\x20variables.\n\n\x20The\x20path\x20variables\x20**must\x20not**\ + \x20refer\x20to\x20any\x20repeated\x20or\x20mapped\x20field,\n\x20becaus\ + e\x20client\x20libraries\x20are\x20not\x20capable\x20of\x20handling\x20s\ + uch\x20variable\x20expansion.\n\n\x20The\x20path\x20variables\x20**must\ + \x20not**\x20capture\x20the\x20leading\x20\"/\"\x20character.\x20The\x20\ + reason\n\x20is\x20that\x20the\x20most\x20common\x20use\x20case\x20\"{var\ + }\"\x20does\x20not\x20capture\x20the\x20leading\x20\"/\"\n\x20character.\ + \x20For\x20consistency,\x20all\x20path\x20variables\x20must\x20share\x20\ + the\x20same\x20behavior.\n\n\x20Repeated\x20message\x20fields\x20must\ + \x20not\x20be\x20mapped\x20to\x20URL\x20query\x20parameters,\x20because\ + \n\x20no\x20client\x20library\x20can\x20support\x20such\x20complicated\ + \x20mapping.\n\n\x20If\x20an\x20API\x20needs\x20to\x20use\x20a\x20JSON\ + \x20array\x20for\x20request\x20or\x20response\x20body,\x20it\x20can\x20m\ + ap\n\x20the\x20request\x20or\x20response\x20body\x20to\x20a\x20repeated\ + \x20field.\x20However,\x20some\x20gRPC\n\x20Transcoding\x20implementatio\ + ns\x20may\x20not\x20support\x20this\x20feature.\n\n\x0b\n\x03\x04\x01\ + \x01\x12\x04\xb3\x02\x08\x10\n\x8f\x01\n\x04\x04\x01\x02\0\x12\x04\xb8\ + \x02\x02\x16\x1a\x80\x01\x20Selects\x20a\x20method\x20to\x20which\x20thi\ + s\x20rule\x20applies.\n\n\x20Refer\x20to\x20[selector][google.api.Docume\ + ntationRule.selector]\x20for\x20syntax\n\x20details.\n\n\r\n\x05\x04\x01\ + \x02\0\x05\x12\x04\xb8\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\ + \xb8\x02\t\x11\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xb8\x02\x14\x15\n\xd0\ + \x01\n\x04\x04\x01\x08\0\x12\x06\xbd\x02\x02\xd3\x02\x03\x1a\xbf\x01\x20\ + Determines\x20the\x20URL\x20pattern\x20is\x20matched\x20by\x20this\x20ru\ + les.\x20This\x20pattern\x20can\x20be\n\x20used\x20with\x20any\x20of\x20t\ + he\x20{get|put|post|delete|patch}\x20methods.\x20A\x20custom\x20method\n\ + \x20can\x20be\x20defined\x20using\x20the\x20'custom'\x20field.\n\n\r\n\ + \x05\x04\x01\x08\0\x01\x12\x04\xbd\x02\x08\x0f\n\\\n\x04\x04\x01\x02\x01\ + \x12\x04\xc0\x02\x04\x13\x1aN\x20Maps\x20to\x20HTTP\x20GET.\x20Used\x20f\ + or\x20listing\x20and\x20getting\x20information\x20about\n\x20resources.\ + \n\n\r\n\x05\x04\x01\x02\x01\x05\x12\x04\xc0\x02\x04\n\n\r\n\x05\x04\x01\ + \x02\x01\x01\x12\x04\xc0\x02\x0b\x0e\n\r\n\x05\x04\x01\x02\x01\x03\x12\ + \x04\xc0\x02\x11\x12\n@\n\x04\x04\x01\x02\x02\x12\x04\xc3\x02\x04\x13\ + \x1a2\x20Maps\x20to\x20HTTP\x20PUT.\x20Used\x20for\x20replacing\x20a\x20\ + resource.\n\n\r\n\x05\x04\x01\x02\x02\x05\x12\x04\xc3\x02\x04\n\n\r\n\ + \x05\x04\x01\x02\x02\x01\x12\x04\xc3\x02\x0b\x0e\n\r\n\x05\x04\x01\x02\ + \x02\x03\x12\x04\xc3\x02\x11\x12\nX\n\x04\x04\x01\x02\x03\x12\x04\xc6\ + \x02\x04\x14\x1aJ\x20Maps\x20to\x20HTTP\x20POST.\x20Used\x20for\x20creat\ + ing\x20a\x20resource\x20or\x20performing\x20an\x20action.\n\n\r\n\x05\ + \x04\x01\x02\x03\x05\x12\x04\xc6\x02\x04\n\n\r\n\x05\x04\x01\x02\x03\x01\ + \x12\x04\xc6\x02\x0b\x0f\n\r\n\x05\x04\x01\x02\x03\x03\x12\x04\xc6\x02\ + \x12\x13\nB\n\x04\x04\x01\x02\x04\x12\x04\xc9\x02\x04\x16\x1a4\x20Maps\ + \x20to\x20HTTP\x20DELETE.\x20Used\x20for\x20deleting\x20a\x20resource.\n\ + \n\r\n\x05\x04\x01\x02\x04\x05\x12\x04\xc9\x02\x04\n\n\r\n\x05\x04\x01\ + \x02\x04\x01\x12\x04\xc9\x02\x0b\x11\n\r\n\x05\x04\x01\x02\x04\x03\x12\ + \x04\xc9\x02\x14\x15\nA\n\x04\x04\x01\x02\x05\x12\x04\xcc\x02\x04\x15\ + \x1a3\x20Maps\x20to\x20HTTP\x20PATCH.\x20Used\x20for\x20updating\x20a\ + \x20resource.\n\n\r\n\x05\x04\x01\x02\x05\x05\x12\x04\xcc\x02\x04\n\n\r\ + \n\x05\x04\x01\x02\x05\x01\x12\x04\xcc\x02\x0b\x10\n\r\n\x05\x04\x01\x02\ + \x05\x03\x12\x04\xcc\x02\x13\x14\n\x98\x02\n\x04\x04\x01\x02\x06\x12\x04\ + \xd2\x02\x04!\x1a\x89\x02\x20The\x20custom\x20pattern\x20is\x20used\x20f\ + or\x20specifying\x20an\x20HTTP\x20method\x20that\x20is\x20not\n\x20inclu\ + ded\x20in\x20the\x20`pattern`\x20field,\x20such\x20as\x20HEAD,\x20or\x20\ + \"*\"\x20to\x20leave\x20the\n\x20HTTP\x20method\x20unspecified\x20for\ + \x20this\x20rule.\x20The\x20wild-card\x20rule\x20is\x20useful\n\x20for\ + \x20services\x20that\x20provide\x20content\x20to\x20Web\x20(HTML)\x20cli\ + ents.\n\n\r\n\x05\x04\x01\x02\x06\x06\x12\x04\xd2\x02\x04\x15\n\r\n\x05\ + \x04\x01\x02\x06\x01\x12\x04\xd2\x02\x16\x1c\n\r\n\x05\x04\x01\x02\x06\ + \x03\x12\x04\xd2\x02\x1f\x20\n\xc4\x02\n\x04\x04\x01\x02\x07\x12\x04\xdb\ + \x02\x02\x12\x1a\xb5\x02\x20The\x20name\x20of\x20the\x20request\x20field\ + \x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\x20request\n\x20\ + body,\x20or\x20`*`\x20for\x20mapping\x20all\x20request\x20fields\x20not\ + \x20captured\x20by\x20the\x20path\n\x20pattern\x20to\x20the\x20HTTP\x20b\ + ody,\x20or\x20omitted\x20for\x20not\x20having\x20any\x20HTTP\x20request\ + \x20body.\n\n\x20NOTE:\x20the\x20referred\x20field\x20must\x20be\x20pres\ + ent\x20at\x20the\x20top-level\x20of\x20the\x20request\n\x20message\x20ty\ + pe.\n\n\r\n\x05\x04\x01\x02\x07\x05\x12\x04\xdb\x02\x02\x08\n\r\n\x05\ + \x04\x01\x02\x07\x01\x12\x04\xdb\x02\t\r\n\r\n\x05\x04\x01\x02\x07\x03\ + \x12\x04\xdb\x02\x10\x11\n\x99\x02\n\x04\x04\x01\x02\x08\x12\x04\xe3\x02\ + \x02\x1c\x1a\x8a\x02\x20Optional.\x20The\x20name\x20of\x20the\x20respons\ + e\x20field\x20whose\x20value\x20is\x20mapped\x20to\x20the\x20HTTP\n\x20r\ + esponse\x20body.\x20When\x20omitted,\x20the\x20entire\x20response\x20mes\ + sage\x20will\x20be\x20used\n\x20as\x20the\x20HTTP\x20response\x20body.\n\ + \n\x20NOTE:\x20The\x20referred\x20field\x20must\x20be\x20present\x20at\ + \x20the\x20top-level\x20of\x20the\x20response\n\x20message\x20type.\n\n\ + \r\n\x05\x04\x01\x02\x08\x05\x12\x04\xe3\x02\x02\x08\n\r\n\x05\x04\x01\ + \x02\x08\x01\x12\x04\xe3\x02\t\x16\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\ + \xe3\x02\x19\x1b\n\xbb\x01\n\x04\x04\x01\x02\t\x12\x04\xe8\x02\x02-\x1a\ + \xac\x01\x20Additional\x20HTTP\x20bindings\x20for\x20the\x20selector.\ + \x20Nested\x20bindings\x20must\n\x20not\x20contain\x20an\x20`additional_\ + bindings`\x20field\x20themselves\x20(that\x20is,\n\x20the\x20nesting\x20\ + may\x20only\x20be\x20one\x20level\x20deep).\n\n\r\n\x05\x04\x01\x02\t\ + \x04\x12\x04\xe8\x02\x02\n\n\r\n\x05\x04\x01\x02\t\x06\x12\x04\xe8\x02\ + \x0b\x13\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\xe8\x02\x14'\n\r\n\x05\x04\ + \x01\x02\t\x03\x12\x04\xe8\x02*,\nG\n\x02\x04\x02\x12\x06\xec\x02\0\xf2\ + \x02\x01\x1a9\x20A\x20custom\x20pattern\x20is\x20used\x20for\x20defining\ + \x20custom\x20HTTP\x20verb.\n\n\x0b\n\x03\x04\x02\x01\x12\x04\xec\x02\ + \x08\x19\n2\n\x04\x04\x02\x02\0\x12\x04\xee\x02\x02\x12\x1a$\x20The\x20n\ + ame\x20of\x20this\x20custom\x20HTTP\x20verb.\n\n\r\n\x05\x04\x02\x02\0\ + \x05\x12\x04\xee\x02\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\xee\x02\ + \t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\xee\x02\x10\x11\n5\n\x04\x04\ + \x02\x02\x01\x12\x04\xf1\x02\x02\x12\x1a'\x20The\x20path\x20matched\x20b\ + y\x20this\x20custom\x20verb.\n\n\r\n\x05\x04\x02\x02\x01\x05\x12\x04\xf1\ + \x02\x02\x08\n\r\n\x05\x04\x02\x02\x01\x01\x12\x04\xf1\x02\t\r\n\r\n\x05\ + \x04\x02\x02\x01\x03\x12\x04\xf1\x02\x10\x11b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/httpbody.rs b/googleapis-raw/src/api/httpbody.rs index 196f237..a1a9bf3 100644 --- a/googleapis-raw/src/api/httpbody.rs +++ b/googleapis-raw/src/api/httpbody.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -194,11 +194,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ contentType\x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\x124\n\nexte\ nsions\x18\x03\x20\x03(\x0b2\x14.google.protobuf.AnyR\nextensionsBh\n\ \x0ecom.google.apiB\rHttpBodyProtoP\x01Z;google.golang.org/genproto/goog\ - leapis/api/httpbody;httpbody\xf8\x01\x01\xa2\x02\x04GAPIJ\xa4\x13\n\x06\ - \x12\x04\x0f\0M\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Co\ - pyright\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apa\ - che\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20m\ - ay\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ + leapis/api/httpbody;httpbody\xf8\x01\x01\xa2\x02\x04GAPIJ\xb0\x13\n\x06\ + \x12\x04\x0e\0P\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Co\ + pyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apac\ + he\x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20ma\ + y\x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\ \x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\ \x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/\ LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\ @@ -207,14 +207,14 @@ static file_descriptor_proto_data: &'static [u8] = b"\ ASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIN\ D,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20\ for\x20the\x20specific\x20language\x20governing\x20permissions\x20and\n\ - \x20limitations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\ - \x11\0\x13\n\t\n\x02\x03\0\x12\x03\x13\0#\n\x08\n\x01\x08\x12\x03\x15\0\ - \x1f\n\t\n\x02\x08\x1f\x12\x03\x15\0\x1f\n\x08\n\x01\x08\x12\x03\x16\0R\ - \n\t\n\x02\x08\x0b\x12\x03\x16\0R\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ - \x02\x08\n\x12\x03\x17\0\"\n\x08\n\x01\x08\x12\x03\x18\0.\n\t\n\x02\x08\ - \x08\x12\x03\x18\0.\n\x08\n\x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\x12\ - \x03\x19\0'\n\x08\n\x01\x08\x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\x1a\0\ - \"\n\xa4\n\n\x02\x04\0\x12\x04C\0M\x01\x1a\x97\n\x20Message\x20that\x20r\ + \x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\ + \x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0#\n\x08\n\x01\x08\x12\x03\x14\0\ + \x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\x08\n\x01\x08\x12\x03\x15\0R\ + \n\t\n\x02\x08\x0b\x12\x03\x15\0R\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\ + \x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0.\n\t\n\x02\x08\ + \x08\x12\x03\x17\0.\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\ + \x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\ + \"\n\xb2\n\n\x02\x04\0\x12\x04F\0P\x01\x1a\xa5\n\x20Message\x20that\x20r\ epresents\x20an\x20arbitrary\x20HTTP\x20body.\x20It\x20should\x20only\ \x20be\x20used\x20for\n\x20payload\x20formats\x20that\x20can't\x20be\x20\ represented\x20as\x20JSON,\x20such\x20as\x20raw\x20binary\x20or\n\x20an\ @@ -230,35 +230,35 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20unique\x20request\x20id.\n\x20\x20\x20\x20\x20\x20\x20string\x20requ\ est_id\x20=\x201;\n\n\x20\x20\x20\x20\x20\x20\x20//\x20The\x20raw\x20HTT\ P\x20body\x20is\x20bound\x20to\x20this\x20field.\n\x20\x20\x20\x20\x20\ - \x20\x20google.api.HttpBody\x20http_body\x20=\x202;\n\x20\x20\x20\x20\ + \x20\x20google.api.HttpBody\x20http_body\x20=\x202;\n\n\x20\x20\x20\x20\ \x20}\n\n\x20\x20\x20\x20\x20service\x20ResourceService\x20{\n\x20\x20\ - \x20\x20\x20\x20\x20rpc\x20GetResource(GetResourceRequest)\x20returns\ - \x20(google.api.HttpBody);\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateRes\ - ource(google.api.HttpBody)\x20returns\n\x20\x20\x20\x20\x20\x20\x20(goog\ - le.protobuf.Empty);\n\x20\x20\x20\x20\x20}\n\n\x20Example\x20with\x20str\ - eaming\x20methods:\n\n\x20\x20\x20\x20\x20service\x20CaldavService\x20{\ - \n\x20\x20\x20\x20\x20\x20\x20rpc\x20GetCalendar(stream\x20google.api.Ht\ - tpBody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\x20(stream\x20googl\ - e.api.HttpBody);\n\x20\x20\x20\x20\x20\x20\x20rpc\x20UpdateCalendar(stre\ - am\x20google.api.HttpBody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\ - \x20(stream\x20google.api.HttpBody);\n\x20\x20\x20\x20\x20}\n\n\x20Use\ - \x20of\x20this\x20type\x20only\x20changes\x20how\x20the\x20request\x20an\ - d\x20response\x20bodies\x20are\n\x20handled,\x20all\x20other\x20features\ - \x20will\x20continue\x20to\x20work\x20unchanged.\n\n\n\n\x03\x04\0\x01\ - \x12\x03C\x08\x10\nZ\n\x04\x04\0\x02\0\x12\x03E\x02\x1a\x1aM\x20The\x20H\ - TTP\x20Content-Type\x20header\x20value\x20specifying\x20the\x20content\ - \x20type\x20of\x20the\x20body.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03E\ - \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03E\t\x15\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03E\x18\x19\n<\n\x04\x04\0\x02\x01\x12\x03H\x02\x11\x1a/\ - \x20The\x20HTTP\x20request/response\x20body\x20as\x20raw\x20binary.\n\n\ - \x0c\n\x05\x04\0\x02\x01\x05\x12\x03H\x02\x07\n\x0c\n\x05\x04\0\x02\x01\ - \x01\x12\x03H\x08\x0c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03H\x0f\x10\nm\ - \n\x04\x04\0\x02\x02\x12\x03L\x02.\x1a`\x20Application\x20specific\x20re\ - sponse\x20metadata.\x20Must\x20be\x20set\x20in\x20the\x20first\x20respon\ - se\n\x20for\x20streaming\x20APIs.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\ - \x03L\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03L\x0b\x1e\n\x0c\n\x05\ - \x04\0\x02\x02\x01\x12\x03L\x1f)\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03L,\ - -b\x06proto3\ + \x20\x20\x20\x20\x20rpc\x20GetResource(GetResourceRequest)\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20returns\x20(google.api.HttpBody);\n\x20\x20\x20\ + \x20\x20\x20\x20rpc\x20UpdateResource(google.api.HttpBody)\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20returns\x20(google.protobuf.Empty);\n\n\x20\x20\ + \x20\x20\x20}\n\n\x20Example\x20with\x20streaming\x20methods:\n\n\x20\ + \x20\x20\x20\x20service\x20CaldavService\x20{\n\x20\x20\x20\x20\x20\x20\ + \x20rpc\x20GetCalendar(stream\x20google.api.HttpBody)\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20returns\x20(stream\x20google.api.HttpBody);\n\x20\ + \x20\x20\x20\x20\x20\x20rpc\x20UpdateCalendar(stream\x20google.api.HttpB\ + ody)\n\x20\x20\x20\x20\x20\x20\x20\x20\x20returns\x20(stream\x20google.a\ + pi.HttpBody);\n\n\x20\x20\x20\x20\x20}\n\n\x20Use\x20of\x20this\x20type\ + \x20only\x20changes\x20how\x20the\x20request\x20and\x20response\x20bodie\ + s\x20are\n\x20handled,\x20all\x20other\x20features\x20will\x20continue\ + \x20to\x20work\x20unchanged.\n\n\n\n\x03\x04\0\x01\x12\x03F\x08\x10\nZ\n\ + \x04\x04\0\x02\0\x12\x03H\x02\x1a\x1aM\x20The\x20HTTP\x20Content-Type\ + \x20header\x20value\x20specifying\x20the\x20content\x20type\x20of\x20the\ + \x20body.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03H\x02\x08\n\x0c\n\x05\x04\ + \0\x02\0\x01\x12\x03H\t\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03H\x18\x19\ + \n<\n\x04\x04\0\x02\x01\x12\x03K\x02\x11\x1a/\x20The\x20HTTP\x20request/\ + response\x20body\x20as\x20raw\x20binary.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ + \x12\x03K\x02\x07\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03K\x08\x0c\n\x0c\n\ + \x05\x04\0\x02\x01\x03\x12\x03K\x0f\x10\nm\n\x04\x04\0\x02\x02\x12\x03O\ + \x02.\x1a`\x20Application\x20specific\x20response\x20metadata.\x20Must\ + \x20be\x20set\x20in\x20the\x20first\x20response\n\x20for\x20streaming\ + \x20APIs.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x03O\x02\n\n\x0c\n\x05\x04\ + \0\x02\x02\x06\x12\x03O\x0b\x1e\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03O\ + \x1f)\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03O,-b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/label.rs b/googleapis-raw/src/api/label.rs index 7633531..4c3a91c 100644 --- a/googleapis-raw/src/api/label.rs +++ b/googleapis-raw/src/api/label.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -265,9 +265,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\",\n\tValueType\ \x12\n\n\x06STRING\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\t\n\x05INT64\x10\ \x02B_\n\x0ecom.google.apiB\nLabelProtoP\x01Z5google.golang.org/genproto\ - /googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIJ\xe6\n\n\x06\x12\ - \x04\x0f\00\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyri\ - ght\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\ + /googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIJ\xe4\n\n\x06\x12\ + \x04\x0e\0/\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyri\ + ght\x202024\x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\ \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ @@ -278,36 +278,36 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ - \x13\n\x08\n\x01\x08\x12\x03\x13\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x13\0\ - \x1f\n\x08\n\x01\x08\x12\x03\x14\0L\n\t\n\x02\x08\x0b\x12\x03\x14\0L\n\ - \x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\ - \x01\x08\x12\x03\x16\0+\n\t\n\x02\x08\x08\x12\x03\x16\0+\n\x08\n\x01\x08\ - \x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\0'\n\x08\n\x01\x08\x12\x03\ - \x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n'\n\x02\x04\0\x12\x04\x1b\00\ - \x01\x1a\x1b\x20A\x20description\x20of\x20a\x20label.\n\n\n\n\x03\x04\0\ - \x01\x12\x03\x1b\x08\x17\n=\n\x04\x04\0\x04\0\x12\x04\x1d\x02&\x03\x1a/\ - \x20Value\x20types\x20that\x20can\x20be\x20used\x20as\x20label\x20values\ - .\n\n\x0c\n\x05\x04\0\x04\0\x01\x12\x03\x1d\x07\x10\n?\n\x06\x04\0\x04\0\ - \x02\0\x12\x03\x1f\x04\x0f\x1a0\x20A\x20variable-length\x20string.\x20Th\ - is\x20is\x20the\x20default.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\ - \x1f\x04\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x1f\r\x0e\n(\n\x06\ - \x04\0\x04\0\x02\x01\x12\x03\"\x04\r\x1a\x19\x20Boolean;\x20true\x20or\ - \x20false.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03\"\x04\x08\n\x0e\ - \n\x07\x04\0\x04\0\x02\x01\x02\x12\x03\"\x0b\x0c\n)\n\x06\x04\0\x04\0\ - \x02\x02\x12\x03%\x04\x0e\x1a\x1a\x20A\x2064-bit\x20signed\x20integer.\n\ - \n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03%\x04\t\n\x0e\n\x07\x04\0\ - \x04\0\x02\x02\x02\x12\x03%\x0c\r\n\x1d\n\x04\x04\0\x02\0\x12\x03)\x02\ - \x11\x1a\x10\x20The\x20label\x20key.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ - \x03)\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03)\t\x0c\n\x0c\n\x05\x04\ - \0\x02\0\x03\x12\x03)\x0f\x10\nB\n\x04\x04\0\x02\x01\x12\x03,\x02\x1b\ - \x1a5\x20The\x20type\x20of\x20data\x20that\x20can\x20be\x20assigned\x20t\ - o\x20the\x20label.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03,\x02\x0b\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x0c\x16\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03,\x19\x1a\n:\n\x04\x04\0\x02\x02\x12\x03/\x02\x19\x1a-\x20A\ - \x20human-readable\x20description\x20for\x20the\x20label.\n\n\x0c\n\x05\ - \x04\0\x02\x02\x05\x12\x03/\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ - \x03/\t\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03/\x17\x18b\x06proto3\ + tations\x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\ + \n\x08\n\x01\x08\x12\x03\x12\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x12\0\x1f\n\ + \x08\n\x01\x08\x12\x03\x13\0L\n\t\n\x02\x08\x0b\x12\x03\x13\0L\n\x08\n\ + \x01\x08\x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\ + \x12\x03\x15\0+\n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\x12\x03\ + \x16\0'\n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\ + \n\t\n\x02\x08$\x12\x03\x17\0\"\n'\n\x02\x04\0\x12\x04\x1a\0/\x01\x1a\ + \x1b\x20A\x20description\x20of\x20a\x20label.\n\n\n\n\x03\x04\0\x01\x12\ + \x03\x1a\x08\x17\n=\n\x04\x04\0\x04\0\x12\x04\x1c\x02%\x03\x1a/\x20Value\ + \x20types\x20that\x20can\x20be\x20used\x20as\x20label\x20values.\n\n\x0c\ + \n\x05\x04\0\x04\0\x01\x12\x03\x1c\x07\x10\n?\n\x06\x04\0\x04\0\x02\0\ + \x12\x03\x1e\x04\x0f\x1a0\x20A\x20variable-length\x20string.\x20This\x20\ + is\x20the\x20default.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x03\x1e\ + \x04\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\x12\x03\x1e\r\x0e\n(\n\x06\x04\ + \0\x04\0\x02\x01\x12\x03!\x04\r\x1a\x19\x20Boolean;\x20true\x20or\x20fal\ + se.\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x03!\x04\x08\n\x0e\n\x07\ + \x04\0\x04\0\x02\x01\x02\x12\x03!\x0b\x0c\n)\n\x06\x04\0\x04\0\x02\x02\ + \x12\x03$\x04\x0e\x1a\x1a\x20A\x2064-bit\x20signed\x20integer.\n\n\x0e\n\ + \x07\x04\0\x04\0\x02\x02\x01\x12\x03$\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\ + \x02\x02\x12\x03$\x0c\r\n\x1d\n\x04\x04\0\x02\0\x12\x03(\x02\x11\x1a\x10\ + \x20The\x20label\x20key.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\ + \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03(\t\x0c\n\x0c\n\x05\x04\0\x02\0\x03\ + \x12\x03(\x0f\x10\nB\n\x04\x04\0\x02\x01\x12\x03+\x02\x1b\x1a5\x20The\ + \x20type\x20of\x20data\x20that\x20can\x20be\x20assigned\x20to\x20the\x20\ + label.\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03+\x02\x0b\n\x0c\n\x05\x04\ + \0\x02\x01\x01\x12\x03+\x0c\x16\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03+\ + \x19\x1a\n:\n\x04\x04\0\x02\x02\x12\x03.\x02\x19\x1a-\x20A\x20human-read\ + able\x20description\x20for\x20the\x20label.\n\n\x0c\n\x05\x04\0\x02\x02\ + \x05\x12\x03.\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03.\t\x14\n\x0c\ + \n\x05\x04\0\x02\x02\x03\x12\x03.\x17\x18b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/launch_stage.rs b/googleapis-raw/src/api/launch_stage.rs index 5e24faf..8b3e1bc 100644 --- a/googleapis-raw/src/api/launch_stage.rs +++ b/googleapis-raw/src/api/launch_stage.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -26,12 +26,16 @@ const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// The launch stage as defined by [Google Cloud Platform -/// Launch Stages](http://cloud.google.com/terms/launch-stages). +/// Launch Stages](https://cloud.google.com/terms/launch-stages). #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] // @@protoc_insertion_point(enum:google.api.LaunchStage) pub enum LaunchStage { // @@protoc_insertion_point(enum_value:google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED) LAUNCH_STAGE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.UNIMPLEMENTED) + UNIMPLEMENTED = 6, + // @@protoc_insertion_point(enum_value:google.api.LaunchStage.PRELAUNCH) + PRELAUNCH = 7, // @@protoc_insertion_point(enum_value:google.api.LaunchStage.EARLY_ACCESS) EARLY_ACCESS = 1, // @@protoc_insertion_point(enum_value:google.api.LaunchStage.ALPHA) @@ -54,6 +58,8 @@ impl ::protobuf::Enum for LaunchStage { fn from_i32(value: i32) -> ::std::option::Option { match value { 0 => ::std::option::Option::Some(LaunchStage::LAUNCH_STAGE_UNSPECIFIED), + 6 => ::std::option::Option::Some(LaunchStage::UNIMPLEMENTED), + 7 => ::std::option::Option::Some(LaunchStage::PRELAUNCH), 1 => ::std::option::Option::Some(LaunchStage::EARLY_ACCESS), 2 => ::std::option::Option::Some(LaunchStage::ALPHA), 3 => ::std::option::Option::Some(LaunchStage::BETA), @@ -66,6 +72,8 @@ impl ::protobuf::Enum for LaunchStage { fn from_str(str: &str) -> ::std::option::Option { match str { "LAUNCH_STAGE_UNSPECIFIED" => ::std::option::Option::Some(LaunchStage::LAUNCH_STAGE_UNSPECIFIED), + "UNIMPLEMENTED" => ::std::option::Option::Some(LaunchStage::UNIMPLEMENTED), + "PRELAUNCH" => ::std::option::Option::Some(LaunchStage::PRELAUNCH), "EARLY_ACCESS" => ::std::option::Option::Some(LaunchStage::EARLY_ACCESS), "ALPHA" => ::std::option::Option::Some(LaunchStage::ALPHA), "BETA" => ::std::option::Option::Some(LaunchStage::BETA), @@ -77,6 +85,8 @@ impl ::protobuf::Enum for LaunchStage { const VALUES: &'static [LaunchStage] = &[ LaunchStage::LAUNCH_STAGE_UNSPECIFIED, + LaunchStage::UNIMPLEMENTED, + LaunchStage::PRELAUNCH, LaunchStage::EARLY_ACCESS, LaunchStage::ALPHA, LaunchStage::BETA, @@ -92,7 +102,16 @@ impl ::protobuf::EnumFull for LaunchStage { } fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { - let index = *self as usize; + let index = match self { + LaunchStage::LAUNCH_STAGE_UNSPECIFIED => 0, + LaunchStage::UNIMPLEMENTED => 1, + LaunchStage::PRELAUNCH => 2, + LaunchStage::EARLY_ACCESS => 3, + LaunchStage::ALPHA => 4, + LaunchStage::BETA => 5, + LaunchStage::GA => 6, + LaunchStage::DEPRECATED => 7, + }; Self::enum_descriptor().value_by_index(index) } } @@ -110,81 +129,88 @@ impl LaunchStage { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*j\n\x0bLaunchStage\ - \x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\0\x12\x10\n\x0cEARLY_ACCESS\ - \x10\x01\x12\t\n\x05ALPHA\x10\x02\x12\x08\n\x04BETA\x10\x03\x12\x06\n\ - \x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05BZ\n\x0ecom.google.apiB\x10L\ - aunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xa2\ - \x02\x04GAPIJ\xed\x15\n\x06\x12\x04\x0f\0B\x01\n\xbe\x04\n\x01\x0c\x12\ - \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ - censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ - \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ - t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ - in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ - p://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\ - \x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20softwar\ - e\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\x20on\ - \x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CON\ - DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ - \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ - ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0D\n\ - \t\n\x02\x08\x0b\x12\x03\x13\0D\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\01\n\t\n\x02\x08\ - \x08\x12\x03\x15\01\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ - \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ - \"\n\x81\x01\n\x02\x05\0\x12\x04\x1b\0B\x01\x1au\x20The\x20launch\x20sta\ - ge\x20as\x20defined\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\ - \x20Stages](http://cloud.google.com/terms/launch-stages).\n\n\n\n\x03\ - \x05\0\x01\x12\x03\x1b\x05\x10\n-\n\x04\x05\0\x02\0\x12\x03\x1d\x02\x1f\ - \x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\x0c\n\x05\ - \x05\0\x02\0\x01\x12\x03\x1d\x02\x1a\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\ - \x1d\x1d\x1e\n\xc5\x02\n\x04\x05\0\x02\x01\x12\x03$\x02\x13\x1a\xb7\x02\ - \x20Early\x20Access\x20features\x20are\x20limited\x20to\x20a\x20closed\ - \x20group\x20of\x20testers.\x20To\x20use\n\x20these\x20features,\x20you\ - \x20must\x20sign\x20up\x20in\x20advance\x20and\x20sign\x20a\x20Trusted\ - \x20Tester\n\x20agreement\x20(which\x20includes\x20confidentiality\x20pr\ - ovisions).\x20These\x20features\x20may\n\x20be\x20unstable,\x20changed\ - \x20in\x20backward-incompatible\x20ways,\x20and\x20are\x20not\n\x20guara\ - nteed\x20to\x20be\x20released.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03$\ - \x02\x0e\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03$\x11\x12\n\xed\x04\n\x04\ - \x05\0\x02\x02\x12\x03/\x02\x0c\x1a\xdf\x04\x20Alpha\x20is\x20a\x20limit\ - ed\x20availability\x20test\x20for\x20releases\x20before\x20they\x20are\ - \x20cleared\n\x20for\x20widespread\x20use.\x20By\x20Alpha,\x20all\x20sig\ - nificant\x20design\x20issues\x20are\x20resolved\n\x20and\x20we\x20are\ - \x20in\x20the\x20process\x20of\x20verifying\x20functionality.\x20Alpha\ - \x20customers\n\x20need\x20to\x20apply\x20for\x20access,\x20agree\x20to\ - \x20applicable\x20terms,\x20and\x20have\x20their\n\x20projects\x20whitel\ - isted.\x20Alpha\x20releases\x20don\xe2\x80\x99t\x20have\x20to\x20be\x20f\ - eature\x20complete,\n\x20no\x20SLAs\x20are\x20provided,\x20and\x20there\ - \x20are\x20no\x20technical\x20support\x20obligations,\x20but\n\x20they\ - \x20will\x20be\x20far\x20enough\x20along\x20that\x20customers\x20can\x20\ - actually\x20use\x20them\x20in\n\x20test\x20environments\x20or\x20for\x20\ - limited-use\x20tests\x20--\x20just\x20like\x20they\x20would\x20in\n\x20n\ - ormal\x20production\x20cases.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03/\ - \x02\x07\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03/\n\x0b\n\xc9\x02\n\x04\ - \x05\0\x02\x03\x12\x036\x02\x0b\x1a\xbb\x02\x20Beta\x20is\x20the\x20poin\ - t\x20at\x20which\x20we\x20are\x20ready\x20to\x20open\x20a\x20release\x20\ - for\x20any\n\x20customer\x20to\x20use.\x20There\x20are\x20no\x20SLA\x20o\ - r\x20technical\x20support\x20obligations\x20in\x20a\n\x20Beta\x20release\ - .\x20Products\x20will\x20be\x20complete\x20from\x20a\x20feature\x20persp\ - ective,\x20but\n\x20may\x20have\x20some\x20open\x20outstanding\x20issues\ - .\x20Beta\x20releases\x20are\x20suitable\x20for\n\x20limited\x20producti\ - on\x20use\x20cases.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x036\x02\x06\n\ - \x0c\n\x05\x05\0\x02\x03\x02\x12\x036\t\n\nx\n\x04\x05\0\x02\x04\x12\x03\ - :\x02\t\x1ak\x20GA\x20features\x20are\x20open\x20to\x20all\x20developers\ - \x20and\x20are\x20considered\x20stable\x20and\n\x20fully\x20qualified\ - \x20for\x20production\x20use.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03:\ - \x02\x04\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03:\x07\x08\n\xc9\x02\n\x04\ - \x05\0\x02\x05\x12\x03A\x02\x11\x1a\xbb\x02\x20Deprecated\x20features\ - \x20are\x20scheduled\x20to\x20be\x20shut\x20down\x20and\x20removed.\x20F\ - or\x20more\n\x20information,\x20see\x20the\x20\xe2\x80\x9cDeprecation\ - \x20Policy\xe2\x80\x9d\x20section\x20of\x20our\x20[Terms\x20of\n\x20Serv\ - ice](https://cloud.google.com/terms/)\n\x20and\x20the\x20[Google\x20Clou\ - d\x20Platform\x20Subject\x20to\x20the\x20Deprecation\n\x20Policy](https:\ - //cloud.google.com/terms/deprecation)\x20documentation.\n\n\x0c\n\x05\ - \x05\0\x02\x05\x01\x12\x03A\x02\x0c\n\x0c\n\x05\x05\0\x02\x05\x02\x12\ - \x03A\x0f\x10b\x06proto3\ + \n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*\x8c\x01\n\x0bLaunch\ + Stage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\0\x12\x11\n\rUNIMPLEMENT\ + ED\x10\x06\x12\r\n\tPRELAUNCH\x10\x07\x12\x10\n\x0cEARLY_ACCESS\x10\x01\ + \x12\t\n\x05ALPHA\x10\x02\x12\x08\n\x04BETA\x10\x03\x12\x06\n\x02GA\x10\ + \x04\x12\x0e\n\nDEPRECATED\x10\x05BZ\n\x0ecom.google.apiB\x10LaunchStage\ + ProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xa2\x02\x04GAP\ + IJ\xc2\x17\n\x06\x12\x04\x0e\0G\x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\ + \x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Licensed\x20u\ + nder\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\x20\"License\ + \");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20except\x20in\x20co\ + mpliance\x20with\x20the\x20License.\n\x20You\x20may\x20obtain\x20a\x20co\ + py\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20http://www.apach\ + e.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\ + \x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20software\n\x20distrib\ + uted\x20under\x20the\x20License\x20is\x20distributed\x20on\x20an\x20\"AS\ + \x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\ + \x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\x20See\x20the\ + \x20License\x20for\x20the\x20specific\x20language\x20governing\x20permis\ + sions\x20and\n\x20limitations\x20under\x20the\x20License.\n\n\x08\n\x01\ + \x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0D\n\t\n\x02\x08\x0b\ + \x12\x03\x12\0D\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\ + \x13\0\"\n\x08\n\x01\x08\x12\x03\x14\01\n\t\n\x02\x08\x08\x12\x03\x14\01\ + \n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\ + \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\x82\x01\n\x02\ + \x05\0\x12\x04\x1a\0G\x01\x1av\x20The\x20launch\x20stage\x20as\x20define\ + d\x20by\x20[Google\x20Cloud\x20Platform\n\x20Launch\x20Stages](https://c\ + loud.google.com/terms/launch-stages).\n\n\n\n\x03\x05\0\x01\x12\x03\x1a\ + \x05\x10\n-\n\x04\x05\0\x02\0\x12\x03\x1c\x02\x1f\x1a\x20\x20Do\x20not\ + \x20use\x20this\x20default\x20value.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\ + \x03\x1c\x02\x1a\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1c\x1d\x1e\nH\n\ + \x04\x05\0\x02\x01\x12\x03\x1f\x02\x14\x1a;\x20The\x20feature\x20is\x20n\ + ot\x20yet\x20implemented.\x20Users\x20can\x20not\x20use\x20it.\n\n\x0c\n\ + \x05\x05\0\x02\x01\x01\x12\x03\x1f\x02\x0f\n\x0c\n\x05\x05\0\x02\x01\x02\ + \x12\x03\x1f\x12\x13\nX\n\x04\x05\0\x02\x02\x12\x03\"\x02\x10\x1aK\x20Pr\ + elaunch\x20features\x20are\x20hidden\x20from\x20users\x20and\x20are\x20o\ + nly\x20visible\x20internally.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\"\ + \x02\x0b\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\"\x0e\x0f\n\xc5\x02\n\x04\ + \x05\0\x02\x03\x12\x03)\x02\x13\x1a\xb7\x02\x20Early\x20Access\x20featur\ + es\x20are\x20limited\x20to\x20a\x20closed\x20group\x20of\x20testers.\x20\ + To\x20use\n\x20these\x20features,\x20you\x20must\x20sign\x20up\x20in\x20\ + advance\x20and\x20sign\x20a\x20Trusted\x20Tester\n\x20agreement\x20(whic\ + h\x20includes\x20confidentiality\x20provisions).\x20These\x20features\ + \x20may\n\x20be\x20unstable,\x20changed\x20in\x20backward-incompatible\ + \x20ways,\x20and\x20are\x20not\n\x20guaranteed\x20to\x20be\x20released.\ + \n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03)\x02\x0e\n\x0c\n\x05\x05\0\x02\ + \x03\x02\x12\x03)\x11\x12\n\xeb\x04\n\x04\x05\0\x02\x04\x12\x034\x02\x0c\ + \x1a\xdd\x04\x20Alpha\x20is\x20a\x20limited\x20availability\x20test\x20f\ + or\x20releases\x20before\x20they\x20are\x20cleared\n\x20for\x20widesprea\ + d\x20use.\x20By\x20Alpha,\x20all\x20significant\x20design\x20issues\x20a\ + re\x20resolved\n\x20and\x20we\x20are\x20in\x20the\x20process\x20of\x20ve\ + rifying\x20functionality.\x20Alpha\x20customers\n\x20need\x20to\x20apply\ + \x20for\x20access,\x20agree\x20to\x20applicable\x20terms,\x20and\x20have\ + \x20their\n\x20projects\x20allowlisted.\x20Alpha\x20releases\x20don't\ + \x20have\x20to\x20be\x20feature\x20complete,\n\x20no\x20SLAs\x20are\x20p\ + rovided,\x20and\x20there\x20are\x20no\x20technical\x20support\x20obligat\ + ions,\x20but\n\x20they\x20will\x20be\x20far\x20enough\x20along\x20that\ + \x20customers\x20can\x20actually\x20use\x20them\x20in\n\x20test\x20envir\ + onments\x20or\x20for\x20limited-use\x20tests\x20--\x20just\x20like\x20th\ + ey\x20would\x20in\n\x20normal\x20production\x20cases.\n\n\x0c\n\x05\x05\ + \0\x02\x04\x01\x12\x034\x02\x07\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x034\n\ + \x0b\n\xc9\x02\n\x04\x05\0\x02\x05\x12\x03;\x02\x0b\x1a\xbb\x02\x20Beta\ + \x20is\x20the\x20point\x20at\x20which\x20we\x20are\x20ready\x20to\x20ope\ + n\x20a\x20release\x20for\x20any\n\x20customer\x20to\x20use.\x20There\x20\ + are\x20no\x20SLA\x20or\x20technical\x20support\x20obligations\x20in\x20a\ + \n\x20Beta\x20release.\x20Products\x20will\x20be\x20complete\x20from\x20\ + a\x20feature\x20perspective,\x20but\n\x20may\x20have\x20some\x20open\x20\ + outstanding\x20issues.\x20Beta\x20releases\x20are\x20suitable\x20for\n\ + \x20limited\x20production\x20use\x20cases.\n\n\x0c\n\x05\x05\0\x02\x05\ + \x01\x12\x03;\x02\x06\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03;\t\n\nx\n\ + \x04\x05\0\x02\x06\x12\x03?\x02\t\x1ak\x20GA\x20features\x20are\x20open\ + \x20to\x20all\x20developers\x20and\x20are\x20considered\x20stable\x20and\ + \n\x20fully\x20qualified\x20for\x20production\x20use.\n\n\x0c\n\x05\x05\ + \0\x02\x06\x01\x12\x03?\x02\x04\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03?\ + \x07\x08\n\xc5\x02\n\x04\x05\0\x02\x07\x12\x03F\x02\x11\x1a\xb7\x02\x20D\ + eprecated\x20features\x20are\x20scheduled\x20to\x20be\x20shut\x20down\ + \x20and\x20removed.\x20For\x20more\n\x20information,\x20see\x20the\x20\"\ + Deprecation\x20Policy\"\x20section\x20of\x20our\x20[Terms\x20of\n\x20Ser\ + vice](https://cloud.google.com/terms/)\n\x20and\x20the\x20[Google\x20Clo\ + ud\x20Platform\x20Subject\x20to\x20the\x20Deprecation\n\x20Policy](https\ + ://cloud.google.com/terms/deprecation)\x20documentation.\n\n\x0c\n\x05\ + \x05\0\x02\x07\x01\x12\x03F\x02\x0c\n\x0c\n\x05\x05\0\x02\x07\x02\x12\ + \x03F\x0f\x10b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/log.rs b/googleapis-raw/src/api/log.rs index fe5b92c..bcce03d 100644 --- a/googleapis-raw/src/api/log.rs +++ b/googleapis-raw/src/api/log.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -220,9 +220,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x06labels\x12\x20\n\x0bdescription\x18\x03\x20\x01(\tR\x0bdescription\ \x12!\n\x0cdisplay_name\x18\x04\x20\x01(\tR\x0bdisplayNameBj\n\x0ecom.go\ ogle.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/se\ - rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\x80\x0f\n\x06\x12\x04\x0f\06\ - \x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\ - \x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ + rviceconfig;serviceconfig\xa2\x02\x04GAPIJ\xfe\x0e\n\x06\x12\x04\x0e\05\ + \x01\n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\ + \x20Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\ \x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20us\ e\x20this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20Licens\ e.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\ @@ -233,13 +233,13 @@ static file_descriptor_proto_data: &'static [u8] = b"\ UT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20\ express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20sp\ ecific\x20language\x20governing\x20permissions\x20and\n\x20limitations\ - \x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\ - \x02\x03\0\x12\x03\x13\0\x20\n\x08\n\x01\x08\x12\x03\x15\0\\\n\t\n\x02\ - \x08\x0b\x12\x03\x15\0\\\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\ - \x12\x03\x16\0\"\n\x08\n\x01\x08\x12\x03\x17\0)\n\t\n\x02\x08\x08\x12\ - \x03\x17\0)\n\x08\n\x01\x08\x12\x03\x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\ - \0'\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08$\x12\x03\x19\0\"\n\xc2\ - \x02\n\x02\x04\0\x12\x04#\06\x01\x1a\xb5\x02\x20A\x20description\x20of\ + \x20under\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\ + \x02\x03\0\x12\x03\x12\0\x20\n\x08\n\x01\x08\x12\x03\x14\0\\\n\t\n\x02\ + \x08\x0b\x12\x03\x14\0\\\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\ + \x12\x03\x15\0\"\n\x08\n\x01\x08\x12\x03\x16\0)\n\t\n\x02\x08\x08\x12\ + \x03\x16\0)\n\x08\n\x01\x08\x12\x03\x17\0'\n\t\n\x02\x08\x01\x12\x03\x17\ + \0'\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08$\x12\x03\x18\0\"\n\xc2\ + \x02\n\x02\x04\0\x12\x04\"\05\x01\x1a\xb5\x02\x20A\x20description\x20of\ \x20a\x20log\x20type.\x20Example\x20in\x20YAML\x20format:\n\n\x20\x20\ \x20\x20\x20-\x20name:\x20library.googleapis.com/activity_history\n\x20\ \x20\x20\x20\x20\x20\x20description:\x20The\x20history\x20of\x20borrowin\ @@ -247,31 +247,31 @@ static file_descriptor_proto_data: &'static [u8] = b"\ display_name:\x20Activity\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ \x20\x20\x20\x20\x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20\x20\ \x20\x20\x20description:\x20Identifier\x20of\x20a\x20library\x20customer\ - \n\n\n\n\x03\x04\0\x01\x12\x03#\x08\x15\n\x84\x02\n\x04\x04\0\x02\0\x12\ - \x03(\x02\x12\x1a\xf6\x01\x20The\x20name\x20of\x20the\x20log.\x20It\x20m\ + \n\n\n\n\x03\x04\0\x01\x12\x03\"\x08\x15\n\x84\x02\n\x04\x04\0\x02\0\x12\ + \x03'\x02\x12\x1a\xf6\x01\x20The\x20name\x20of\x20the\x20log.\x20It\x20m\ ust\x20be\x20less\x20than\x20512\x20characters\x20long\x20and\x20can\n\ \x20include\x20the\x20following\x20characters:\x20upper-\x20and\x20lower\ -case\x20alphanumeric\n\x20characters\x20[A-Za-z0-9],\x20and\x20punctuat\ ion\x20characters\x20including\n\x20slash,\x20underscore,\x20hyphen,\x20\ - period\x20[/_-.].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03(\x02\x08\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03(\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03(\ - \x10\x11\n\xa8\x01\n\x04\x04\0\x02\x01\x12\x03-\x02&\x1a\x9a\x01\x20The\ + period\x20[/_-.].\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03'\x02\x08\n\x0c\n\ + \x05\x04\0\x02\0\x01\x12\x03'\t\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03'\ + \x10\x11\n\xa8\x01\n\x04\x04\0\x02\x01\x12\x03,\x02&\x1a\x9a\x01\x20The\ \x20set\x20of\x20labels\x20that\x20are\x20available\x20to\x20describe\ \x20a\x20specific\x20log\x20entry.\n\x20Runtime\x20requests\x20that\x20c\ ontain\x20labels\x20not\x20specified\x20here\x20are\n\x20considered\x20i\ - nvalid.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03-\x02\n\n\x0c\n\x05\x04\0\ - \x02\x01\x06\x12\x03-\x0b\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03-\x1b\ - !\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03-$%\n\x80\x01\n\x04\x04\0\x02\x02\ - \x12\x031\x02\x19\x1as\x20A\x20human-readable\x20description\x20of\x20th\ + nvalid.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03,\x02\n\n\x0c\n\x05\x04\0\ + \x02\x01\x06\x12\x03,\x0b\x1a\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03,\x1b\ + !\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03,$%\n\x80\x01\n\x04\x04\0\x02\x02\ + \x12\x030\x02\x19\x1as\x20A\x20human-readable\x20description\x20of\x20th\ is\x20log.\x20This\x20information\x20appears\x20in\n\x20the\x20documenta\ tion\x20and\x20can\x20contain\x20details.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x05\x12\x031\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x031\t\x14\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x031\x17\x18\n{\n\x04\x04\0\x02\x03\x12\x03\ - 5\x02\x1a\x1an\x20The\x20human-readable\x20name\x20for\x20this\x20log.\ + \x05\x12\x030\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x030\t\x14\n\x0c\ + \n\x05\x04\0\x02\x02\x03\x12\x030\x17\x18\n{\n\x04\x04\0\x02\x03\x12\x03\ + 4\x02\x1a\x1an\x20The\x20human-readable\x20name\x20for\x20this\x20log.\ \x20This\x20information\x20appears\x20on\n\x20the\x20user\x20interface\ \x20and\x20should\x20be\x20concise.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\ - \x035\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x035\t\x15\n\x0c\n\x05\ - \x04\0\x02\x03\x03\x12\x035\x18\x19b\x06proto3\ + \x034\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x034\t\x15\n\x0c\n\x05\ + \x04\0\x02\x03\x03\x12\x034\x18\x19b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/logging.rs b/googleapis-raw/src/api/logging.rs index 55e6b95..adedc5f 100644 --- a/googleapis-raw/src/api/logging.rs +++ b/googleapis-raw/src/api/logging.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -184,13 +184,14 @@ pub mod logging { pub struct LoggingDestination { // message fields /// The monitored resource type. The type must be defined in the - /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. // @@protoc_insertion_point(field:google.api.Logging.LoggingDestination.monitored_resource) pub monitored_resource: ::std::string::String, /// Names of the logs to be sent to this destination. Each name must - /// be defined in the [Service.logs][google.api.Service.logs] section. If the log name is - /// not a domain scoped name, it will be automatically prefixed with - /// the service name followed by "/". + /// be defined in the [Service.logs][google.api.Service.logs] section. If the + /// log name is not a domain scoped name, it will be automatically prefixed + /// with the service name followed by "/". // @@protoc_insertion_point(field:google.api.Logging.LoggingDestination.logs) pub logs: ::std::vec::Vec<::std::string::String>, // special fields @@ -335,9 +336,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ source\x18\x03\x20\x01(\tR\x11monitoredResource\x12\x12\n\x04logs\x18\ \x01\x20\x03(\tR\x04logsBn\n\x0ecom.google.apiB\x0cLoggingProtoP\x01ZEgo\ ogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\ - \x02\x04GAPIJ\x9b\x17\n\x06\x12\x04\x0f\0P\x01\n\xbe\x04\n\x01\x0c\x12\ - \x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LLC.\n\n\x20Li\ - censed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ + \x02\x04GAPIJ\x9a\x17\n\x06\x12\x04\x0e\0P\x01\n\xbc\x04\n\x01\x0c\x12\ + \x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\x20Lic\ + ensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20(the\ \x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20excep\ t\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20obta\ in\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\x20htt\ @@ -348,15 +349,15 @@ static file_descriptor_proto_data: &'static [u8] = b"\ DITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20implied.\n\ \x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20gover\ ning\x20permissions\x20and\n\x20limitations\x20under\x20the\x20License.\ - \n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\x03\x13\0\\\n\ - \t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\x14\0\"\n\t\n\ - \x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0-\n\t\n\x02\x08\ - \x08\x12\x03\x15\0-\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\x02\x08\x01\x12\ - \x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08$\x12\x03\x17\0\ - \"\n\xda\x07\n\x02\x04\0\x12\x046\0P\x01\x1a\xcd\x07\x20Logging\x20confi\ - guration\x20of\x20the\x20service.\n\n\x20The\x20following\x20example\x20\ - shows\x20how\x20to\x20configure\x20logs\x20to\x20be\x20sent\x20to\x20the\ - \n\x20producer\x20and\x20consumer\x20projects.\x20In\x20the\x20example,\ + \n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\x03\x12\0\\\n\t\ + \n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\x13\0\"\n\t\n\x02\ + \x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0-\n\t\n\x02\x08\x08\ + \x12\x03\x14\0-\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\x02\x08\x01\x12\x03\ + \x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08$\x12\x03\x16\0\"\n\ + \xda\x07\n\x02\x04\0\x12\x045\0P\x01\x1a\xcd\x07\x20Logging\x20configura\ + tion\x20of\x20the\x20service.\n\n\x20The\x20following\x20example\x20show\ + s\x20how\x20to\x20configure\x20logs\x20to\x20be\x20sent\x20to\x20the\n\ + \x20producer\x20and\x20consumer\x20projects.\x20In\x20the\x20example,\ \x20the\x20`activity_history`\n\x20log\x20is\x20sent\x20to\x20both\x20th\ e\x20producer\x20and\x20consumer\x20projects,\x20whereas\x20the\n\x20`pu\ rchase_history`\x20log\x20is\x20only\x20sent\x20to\x20the\x20producer\ @@ -378,41 +379,41 @@ static file_descriptor_proto_data: &'static [u8] = b"\ inations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20libra\ ry.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20logs:\n\ \x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20activity_history\n\n\n\n\x03\ - \x04\0\x01\x12\x036\x08\x0f\np\n\x04\x04\0\x03\0\x12\x049\x02C\x03\x1ab\ + \x04\0\x01\x12\x035\x08\x0f\np\n\x04\x04\0\x03\0\x12\x048\x02C\x03\x1ab\ \x20Configuration\x20of\x20a\x20specific\x20logging\x20destination\x20(t\ he\x20producer\x20project\n\x20or\x20the\x20consumer\x20project).\n\n\ - \x0c\n\x05\x04\0\x03\0\x01\x12\x039\n\x1c\n\x9e\x01\n\x06\x04\0\x03\0\ - \x02\0\x12\x03<\x04\"\x1a\x8e\x01\x20The\x20monitored\x20resource\x20typ\ + \x0c\n\x05\x04\0\x03\0\x01\x12\x038\n\x1c\n\x9f\x01\n\x06\x04\0\x03\0\ + \x02\0\x12\x03<\x04\"\x1a\x8f\x01\x20The\x20monitored\x20resource\x20typ\ e.\x20The\x20type\x20must\x20be\x20defined\x20in\x20the\n\x20[Service.mo\ - nitored_resources][google.api.Service.monitored_resources]\x20section.\n\ - \n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03<\x04\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\0\x01\x12\x03<\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03<\ - \x20!\n\x8e\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03B\x04\x1d\x1a\xfe\x01\ - \x20Names\x20of\x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20dest\ - ination.\x20Each\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20[Ser\ - vice.logs][google.api.Service.logs]\x20section.\x20If\x20the\x20log\x20n\ - ame\x20is\n\x20not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\x20be\ - \x20automatically\x20prefixed\x20with\n\x20the\x20service\x20name\x20fol\ - lowed\x20by\x20\"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03B\x04\ - \x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03B\r\x13\n\x0e\n\x07\x04\ - \0\x03\0\x02\x01\x01\x12\x03B\x14\x18\n\x0e\n\x07\x04\0\x03\0\x02\x01\ - \x03\x12\x03B\x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03I\x028\x1a\xe1\ - \x01\x20Logging\x20configurations\x20for\x20sending\x20logs\x20to\x20the\ - \x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\ - \x20destinations,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20\ - monitored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\ - \x20at\x20most\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\x04\0\ - \x02\0\x04\x12\x03I\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x0b\x1d\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03I\x1e3\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03I67\n\xef\x01\n\x04\x04\0\x02\x01\x12\x03O\x028\x1a\xe1\x01\x20Loggi\ - ng\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20consumer\ - \x20project.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20destinat\ - ions,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20monitored\ - \x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\x20mo\ - st\n\x20one\x20consumer\x20destination.\n\n\x0c\n\x05\x04\0\x02\x01\x04\ - \x12\x03O\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03O\x0b\x1d\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03O\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03O67b\x06proto3\ + nitored_resources][google.api.Service.monitored_resources]\n\x20section.\ + \n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03<\x04\n\n\x0e\n\x07\x04\0\ + \x03\0\x02\0\x01\x12\x03<\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\ + \x03<\x20!\n\x8e\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03B\x04\x1d\x1a\xfe\ + \x01\x20Names\x20of\x20the\x20logs\x20to\x20be\x20sent\x20to\x20this\x20\ + destination.\x20Each\x20name\x20must\n\x20be\x20defined\x20in\x20the\x20\ + [Service.logs][google.api.Service.logs]\x20section.\x20If\x20the\n\x20lo\ + g\x20name\x20is\x20not\x20a\x20domain\x20scoped\x20name,\x20it\x20will\ + \x20be\x20automatically\x20prefixed\n\x20with\x20the\x20service\x20name\ + \x20followed\x20by\x20\"/\".\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\ + \x03B\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03B\r\x13\n\x0e\n\ + \x07\x04\0\x03\0\x02\x01\x01\x12\x03B\x14\x18\n\x0e\n\x07\x04\0\x03\0\ + \x02\x01\x03\x12\x03B\x1b\x1c\n\xef\x01\n\x04\x04\0\x02\0\x12\x03I\x028\ + \x1a\xe1\x01\x20Logging\x20configurations\x20for\x20sending\x20logs\x20t\ + o\x20the\x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20\ + producer\x20destinations,\x20each\x20one\x20must\x20have\x20a\n\x20diffe\ + rent\x20monitored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\ + \x20in\x20at\x20most\n\x20one\x20producer\x20destination.\n\n\x0c\n\x05\ + \x04\0\x02\0\x04\x12\x03I\x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03I\x0b\ + \x1d\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03I\x1e3\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03I67\n\xef\x01\n\x04\x04\0\x02\x01\x12\x03O\x028\x1a\xe1\x01\ + \x20Logging\x20configurations\x20for\x20sending\x20logs\x20to\x20the\x20\ + consumer\x20project.\n\x20There\x20can\x20be\x20multiple\x20consumer\x20\ + destinations,\x20each\x20one\x20must\x20have\x20a\n\x20different\x20moni\ + tored\x20resource\x20type.\x20A\x20log\x20can\x20be\x20used\x20in\x20at\ + \x20most\n\x20one\x20consumer\x20destination.\n\n\x0c\n\x05\x04\0\x02\ + \x01\x04\x12\x03O\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03O\x0b\x1d\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x03O\x1e3\n\x0c\n\x05\x04\0\x02\x01\x03\ + \x12\x03O67b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/metric.rs b/googleapis-raw/src/api/metric.rs index 1977c74..0622e0d 100644 --- a/googleapis-raw/src/api/metric.rs +++ b/googleapis-raw/src/api/metric.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -28,6 +28,7 @@ const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; /// Defines a metric type and its schema. Once a metric descriptor is created, /// deleting or altering it stops data collection and makes the metric type's /// existing data unusable. +/// // @@protoc_insertion_point(message:google.api.MetricDescriptor) #[derive(PartialEq,Clone,Default,Debug)] pub struct MetricDescriptor { @@ -70,6 +71,14 @@ pub struct MetricDescriptor { /// Optional. The launch stage of the metric definition. // @@protoc_insertion_point(field:google.api.MetricDescriptor.launch_stage) pub launch_stage: ::protobuf::EnumOrUnknown, + /// Read-only. If present, then a [time + /// series][google.monitoring.v3.TimeSeries], which is identified partially by + /// a metric type and a + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that + /// is associated with this metric type can only be associated with one of the + /// monitored resource types listed here. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.monitored_resource_types) + pub monitored_resource_types: ::std::vec::Vec<::std::string::String>, // special fields // @@protoc_insertion_point(special_field:google.api.MetricDescriptor.special_fields) pub special_fields: ::protobuf::SpecialFields, @@ -87,7 +96,7 @@ impl MetricDescriptor { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(10); + let mut fields = ::std::vec::Vec::with_capacity(11); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "name", @@ -139,6 +148,11 @@ impl MetricDescriptor { |m: &MetricDescriptor| { &m.launch_stage }, |m: &mut MetricDescriptor| { &mut m.launch_stage }, )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "monitored_resource_types", + |m: &MetricDescriptor| { &m.monitored_resource_types }, + |m: &mut MetricDescriptor| { &mut m.monitored_resource_types }, + )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "MetricDescriptor", fields, @@ -187,6 +201,9 @@ impl ::protobuf::Message for MetricDescriptor { 96 => { self.launch_stage = is.read_enum_or_unknown()?; }, + 106 => { + self.monitored_resource_types.push(is.read_string()?); + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -231,6 +248,9 @@ impl ::protobuf::Message for MetricDescriptor { if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { my_size += ::protobuf::rt::int32_size(12, self.launch_stage.value()); } + for value in &self.monitored_resource_types { + my_size += ::protobuf::rt::string_size(13, &value); + }; my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size @@ -267,6 +287,9 @@ impl ::protobuf::Message for MetricDescriptor { if self.launch_stage != ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED) { os.write_enum(12, ::protobuf::EnumOrUnknown::value(&self.launch_stage))?; } + for v in &self.monitored_resource_types { + os.write_string(13, &v)?; + }; os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } @@ -294,6 +317,7 @@ impl ::protobuf::Message for MetricDescriptor { self.display_name.clear(); self.metadata.clear(); self.launch_stage = ::protobuf::EnumOrUnknown::new(super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); + self.monitored_resource_types.clear(); self.special_fields.clear(); } @@ -309,6 +333,7 @@ impl ::protobuf::Message for MetricDescriptor { display_name: ::std::string::String::new(), metadata: ::protobuf::MessageField::none(), launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), + monitored_resource_types: ::std::vec::Vec::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance @@ -339,8 +364,9 @@ pub mod metric_descriptor { #[derive(PartialEq,Clone,Default,Debug)] pub struct MetricDescriptorMetadata { // message fields - /// Deprecated. Please use the MetricDescriptor.launch_stage instead. - /// The launch stage of the metric definition. + /// Deprecated. Must use the + /// [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] + /// instead. // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.launch_stage) pub launch_stage: ::protobuf::EnumOrUnknown, /// The sampling period of metric data points. For metrics which are written @@ -354,6 +380,9 @@ pub mod metric_descriptor { /// data loss due to errors. // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.ingest_delay) pub ingest_delay: ::protobuf::MessageField<::protobuf::well_known_types::duration::Duration>, + /// The scope of the timeseries data of the metric. + // @@protoc_insertion_point(field:google.api.MetricDescriptor.MetricDescriptorMetadata.time_series_resource_hierarchy_level) + pub time_series_resource_hierarchy_level: ::std::vec::Vec<::protobuf::EnumOrUnknown>, // special fields // @@protoc_insertion_point(special_field:google.api.MetricDescriptor.MetricDescriptorMetadata.special_fields) pub special_fields: ::protobuf::SpecialFields, @@ -371,7 +400,7 @@ pub mod metric_descriptor { } pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(3); + let mut fields = ::std::vec::Vec::with_capacity(4); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "launch_stage", @@ -388,6 +417,11 @@ pub mod metric_descriptor { |m: &MetricDescriptorMetadata| { &m.ingest_delay }, |m: &mut MetricDescriptorMetadata| { &mut m.ingest_delay }, )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "time_series_resource_hierarchy_level", + |m: &MetricDescriptorMetadata| { &m.time_series_resource_hierarchy_level }, + |m: &mut MetricDescriptorMetadata| { &mut m.time_series_resource_hierarchy_level }, + )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "MetricDescriptor.MetricDescriptorMetadata", fields, @@ -415,6 +449,12 @@ pub mod metric_descriptor { 26 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.ingest_delay)?; }, + 32 => { + self.time_series_resource_hierarchy_level.push(is.read_enum_or_unknown()?); + }, + 34 => { + ::protobuf::rt::read_repeated_packed_enum_or_unknown_into(is, &mut self.time_series_resource_hierarchy_level)? + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -438,6 +478,9 @@ pub mod metric_descriptor { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } + for value in &self.time_series_resource_hierarchy_level { + my_size += ::protobuf::rt::int32_size(4, value.value()); + }; my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size @@ -453,6 +496,9 @@ pub mod metric_descriptor { if let Some(v) = self.ingest_delay.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } + for v in &self.time_series_resource_hierarchy_level { + os.write_enum(4, ::protobuf::EnumOrUnknown::value(v))?; + }; os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } @@ -473,6 +519,7 @@ pub mod metric_descriptor { self.launch_stage = ::protobuf::EnumOrUnknown::new(super::super::launch_stage::LaunchStage::LAUNCH_STAGE_UNSPECIFIED); self.sample_period.clear(); self.ingest_delay.clear(); + self.time_series_resource_hierarchy_level.clear(); self.special_fields.clear(); } @@ -481,6 +528,7 @@ pub mod metric_descriptor { launch_stage: ::protobuf::EnumOrUnknown::from_i32(0), sample_period: ::protobuf::MessageField::none(), ingest_delay: ::protobuf::MessageField::none(), + time_series_resource_hierarchy_level: ::std::vec::Vec::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance @@ -504,7 +552,85 @@ pub mod metric_descriptor { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } + /// Nested message and enums of message `MetricDescriptorMetadata` + pub mod metric_descriptor_metadata { + /// The resource hierarchy level of the timeseries data of a metric. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel) + pub enum TimeSeriesResourceHierarchyLevel { + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel.TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED) + TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel.PROJECT) + PROJECT = 1, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel.ORGANIZATION) + ORGANIZATION = 2, + // @@protoc_insertion_point(enum_value:google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel.FOLDER) + FOLDER = 3, + } + + impl ::protobuf::Enum for TimeSeriesResourceHierarchyLevel { + const NAME: &'static str = "TimeSeriesResourceHierarchyLevel"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option { + match value { + 0 => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED), + 1 => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::PROJECT), + 2 => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::ORGANIZATION), + 3 => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::FOLDER), + _ => ::std::option::Option::None + } + } + + fn from_str(str: &str) -> ::std::option::Option { + match str { + "TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED" => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED), + "PROJECT" => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::PROJECT), + "ORGANIZATION" => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::ORGANIZATION), + "FOLDER" => ::std::option::Option::Some(TimeSeriesResourceHierarchyLevel::FOLDER), + _ => ::std::option::Option::None + } + } + + const VALUES: &'static [TimeSeriesResourceHierarchyLevel] = &[ + TimeSeriesResourceHierarchyLevel::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED, + TimeSeriesResourceHierarchyLevel::PROJECT, + TimeSeriesResourceHierarchyLevel::ORGANIZATION, + TimeSeriesResourceHierarchyLevel::FOLDER, + ]; + } + + impl ::protobuf::EnumFull for TimeSeriesResourceHierarchyLevel { + fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| super::super::file_descriptor().enum_by_package_relative_name("MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel").unwrap()).clone() + } + + fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor { + let index = *self as usize; + Self::enum_descriptor().value_by_index(index) + } + } + + impl ::std::default::Default for TimeSeriesResourceHierarchyLevel { + fn default() -> Self { + TimeSeriesResourceHierarchyLevel::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED + } + } + + impl TimeSeriesResourceHierarchyLevel { + pub(in super::super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData { + ::protobuf::reflect::GeneratedEnumDescriptorData::new::("MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel") + } + } + } + /// The kind of measurement. It describes how the data is reported. + /// For information on setting the start time and end time based on + /// the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval]. #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] // @@protoc_insertion_point(enum:google.api.MetricDescriptor.MetricKind) pub enum MetricKind { @@ -672,8 +798,9 @@ pub mod metric_descriptor { #[derive(PartialEq,Clone,Default,Debug)] pub struct Metric { // message fields - /// An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. - /// For example, `custom.googleapis.com/invoice/paid/amount`. + /// An existing metric type, see + /// [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, + /// `custom.googleapis.com/invoice/paid/amount`. // @@protoc_insertion_point(field:google.api.Metric.type) pub type_: ::std::string::String, /// The set of label values that uniquely identify this metric. All @@ -832,9 +959,9 @@ impl ::protobuf::reflect::ProtobufValue for Metric { static file_descriptor_proto_data: &'static [u8] = b"\ \n\x17google/api/metric.proto\x12\ngoogle.api\x1a\x16google/api/label.pr\ oto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1egoogle/protobuf/duration\ - .proto\"\x87\x07\n\x10MetricDescriptor\x12\x12\n\x04name\x18\x01\x20\x01\ - (\tR\x04name\x12\x12\n\x04type\x18\x08\x20\x01(\tR\x04type\x123\n\x06lab\ - els\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12H\ + .proto\"\xf0\t\n\x10MetricDescriptor\x12\x12\n\x04name\x18\x01\x20\x01(\ + \tR\x04name\x12\x12\n\x04type\x18\x08\x20\x01(\tR\x04type\x123\n\x06labe\ + ls\x18\x02\x20\x03(\x0b2\x1b.google.api.LabelDescriptorR\x06labels\x12H\ \n\x0bmetric_kind\x18\x03\x20\x01(\x0e2'.google.api.MetricDescriptor.Met\ ricKindR\nmetricKind\x12E\n\nvalue_type\x18\x04\x20\x01(\x0e2&.google.ap\ i.MetricDescriptor.ValueTypeR\tvalueType\x12\x12\n\x04unit\x18\x05\x20\ @@ -842,287 +969,327 @@ static file_descriptor_proto_data: &'static [u8] = b"\ tion\x12!\n\x0cdisplay_name\x18\x07\x20\x01(\tR\x0bdisplayName\x12Q\n\ \x08metadata\x18\n\x20\x01(\x0b25.google.api.MetricDescriptor.MetricDesc\ riptorMetadataR\x08metadata\x12:\n\x0claunch_stage\x18\x0c\x20\x01(\x0e2\ - \x17.google.api.LaunchStageR\x0blaunchStage\x1a\xd8\x01\n\x18MetricDescr\ - iptorMetadata\x12>\n\x0claunch_stage\x18\x01\x20\x01(\x0e2\x17.google.ap\ - i.LaunchStageR\x0blaunchStageB\x02\x18\x01\x12>\n\rsample_period\x18\x02\ - \x20\x01(\x0b2\x19.google.protobuf.DurationR\x0csamplePeriod\x12<\n\x0ci\ - ngest_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0binges\ - tDelay\"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\x10\0\x12\t\ - \n\x05GAUGE\x10\x01\x12\t\n\x05DELTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\ - \x03\"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\0\x12\x08\n\ - \x04BOOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06DOUBLE\x10\x03\x12\ - \n\n\x06STRING\x10\x04\x12\x10\n\x0cDISTRIBUTION\x10\x05\x12\t\n\x05MONE\ - Y\x10\x06\"\x8f\x01\n\x06Metric\x12\x12\n\x04type\x18\x03\x20\x01(\tR\ - \x04type\x126\n\x06labels\x18\x02\x20\x03(\x0b2\x1e.google.api.Metric.La\ - belsEntryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\ - \x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\ - \x01B_\n\x0ecom.google.apiB\x0bMetricProtoP\x01Z7google.golang.org/genpr\ - oto/googleapis/api/metric;metric\xa2\x02\x04GAPIJ\x99M\n\x07\x12\x05\x0f\ - \0\xff\x01\x01\n\xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyrig\ - ht\x202019\x20Google\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\ - \x20License,\x20Version\x202.0\x20(the\x20\"License\");\n\x20you\x20may\ - \x20not\x20use\x20this\x20file\x20except\x20in\x20compliance\x20with\x20\ - the\x20License.\n\x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20L\ - icense\x20at\n\n\x20\x20\x20\x20\x20http://www.apache.org/licenses/LICEN\ - SE-2.0\n\n\x20Unless\x20required\x20by\x20applicable\x20law\x20or\x20agr\ - eed\x20to\x20in\x20writing,\x20software\n\x20distributed\x20under\x20the\ - \x20License\x20is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\ - \x20WITHOUT\x20WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20e\ - ither\x20express\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20\ - the\x20specific\x20language\x20governing\x20permissions\x20and\n\x20limi\ - tations\x20under\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\ - \x13\n\t\n\x02\x03\0\x12\x03\x13\0\x20\n\t\n\x02\x03\x01\x12\x03\x14\0'\ - \n\t\n\x02\x03\x02\x12\x03\x15\0(\n\x08\n\x01\x08\x12\x03\x17\0N\n\t\n\ - \x02\x08\x0b\x12\x03\x17\0N\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\ - \x08\n\x12\x03\x18\0\"\n\x08\n\x01\x08\x12\x03\x19\0,\n\t\n\x02\x08\x08\ - \x12\x03\x19\0,\n\x08\n\x01\x08\x12\x03\x1a\0'\n\t\n\x02\x08\x01\x12\x03\ - \x1a\0'\n\x08\n\x01\x08\x12\x03\x1b\0\"\n\t\n\x02\x08$\x12\x03\x1b\0\"\n\ - \xbe\x01\n\x02\x04\0\x12\x05\x20\0\xf3\x01\x01\x1a\xb0\x01\x20Defines\ - \x20a\x20metric\x20type\x20and\x20its\x20schema.\x20Once\x20a\x20metric\ - \x20descriptor\x20is\x20created,\n\x20deleting\x20or\x20altering\x20it\ - \x20stops\x20data\x20collection\x20and\x20makes\x20the\x20metric\x20type\ - 's\n\x20existing\x20data\x20unusable.\n\n\n\n\x03\x04\0\x01\x12\x03\x20\ - \x08\x18\nW\n\x04\x04\0\x03\0\x12\x04\"\x021\x03\x1aI\x20Additional\x20a\ - nnotations\x20that\x20can\x20be\x20used\x20to\x20guide\x20the\x20usage\ - \x20of\x20a\x20metric.\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03\"\n\"\n~\n\ - \x06\x04\0\x03\0\x02\0\x12\x03%\x045\x1ao\x20Deprecated.\x20Please\x20us\ - e\x20the\x20MetricDescriptor.launch_stage\x20instead.\n\x20The\x20launch\ - \x20stage\x20of\x20the\x20metric\x20definition.\n\n\x0e\n\x07\x04\0\x03\ - \0\x02\0\x06\x12\x03%\x04\x0f\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03%\ - \x10\x1c\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03%\x1f\x20\n\x0e\n\x07\ - \x04\0\x03\0\x02\0\x08\x12\x03%!4\n\x0f\n\x08\x04\0\x03\0\x02\0\x08\x03\ - \x12\x03%\"3\n\x8a\x02\n\x06\x04\0\x03\0\x02\x01\x12\x03+\x04/\x1a\xfa\ - \x01\x20The\x20sampling\x20period\x20of\x20metric\x20data\x20points.\x20\ - For\x20metrics\x20which\x20are\x20written\n\x20periodically,\x20consecut\ - ive\x20data\x20points\x20are\x20stored\x20at\x20this\x20time\x20interval\ - ,\n\x20excluding\x20data\x20loss\x20due\x20to\x20errors.\x20Metrics\x20w\ - ith\x20a\x20higher\x20granularity\x20have\n\x20a\x20smaller\x20sampling\ - \x20period.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x06\x12\x03+\x04\x1c\n\x0e\ - \n\x07\x04\0\x03\0\x02\x01\x01\x12\x03+\x1d*\n\x0e\n\x07\x04\0\x03\0\x02\ - \x01\x03\x12\x03+-.\n\xbc\x01\n\x06\x04\0\x03\0\x02\x02\x12\x030\x04.\ - \x1a\xac\x01\x20The\x20delay\x20of\x20data\x20points\x20caused\x20by\x20\ - ingestion.\x20Data\x20points\x20older\x20than\x20this\n\x20age\x20are\ - \x20guaranteed\x20to\x20be\x20ingested\x20and\x20available\x20to\x20be\ - \x20read,\x20excluding\n\x20data\x20loss\x20due\x20to\x20errors.\n\n\x0e\ - \n\x07\x04\0\x03\0\x02\x02\x06\x12\x030\x04\x1c\n\x0e\n\x07\x04\0\x03\0\ - \x02\x02\x01\x12\x030\x1d)\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x030,\ - -\nO\n\x04\x04\0\x04\0\x12\x044\x02D\x03\x1aA\x20The\x20kind\x20of\x20me\ - asurement.\x20It\x20describes\x20how\x20the\x20data\x20is\x20reported.\n\ - \n\x0c\n\x05\x04\0\x04\0\x01\x12\x034\x07\x11\n/\n\x06\x04\0\x04\0\x02\0\ - \x12\x036\x04\x20\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20valu\ - e.\n\n\x0e\n\x07\x04\0\x04\0\x02\0\x01\x12\x036\x04\x1b\n\x0e\n\x07\x04\ - \0\x04\0\x02\0\x02\x12\x036\x1e\x1f\n9\n\x06\x04\0\x04\0\x02\x01\x12\x03\ - 9\x04\x0e\x1a*\x20An\x20instantaneous\x20measurement\x20of\x20a\x20value\ - .\n\n\x0e\n\x07\x04\0\x04\0\x02\x01\x01\x12\x039\x04\t\n\x0e\n\x07\x04\0\ - \x04\0\x02\x01\x02\x12\x039\x0c\r\n>\n\x06\x04\0\x04\0\x02\x02\x12\x03<\ - \x04\x0e\x1a/\x20The\x20change\x20in\x20a\x20value\x20during\x20a\x20tim\ - e\x20interval.\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03<\x04\t\n\ - \x0e\n\x07\x04\0\x04\0\x02\x02\x02\x12\x03<\x0c\r\n\x8a\x02\n\x06\x04\0\ - \x04\0\x02\x03\x12\x03C\x04\x13\x1a\xfa\x01\x20A\x20value\x20accumulated\ - \x20over\x20a\x20time\x20interval.\x20\x20Cumulative\n\x20measurements\ - \x20in\x20a\x20time\x20series\x20should\x20have\x20the\x20same\x20start\ - \x20time\n\x20and\x20increasing\x20end\x20times,\x20until\x20an\x20event\ - \x20resets\x20the\x20cumulative\n\x20value\x20to\x20zero\x20and\x20sets\ - \x20a\x20new\x20start\x20time\x20for\x20the\x20following\n\x20points.\n\ - \n\x0e\n\x07\x04\0\x04\0\x02\x03\x01\x12\x03C\x04\x0e\n\x0e\n\x07\x04\0\ - \x04\0\x02\x03\x02\x12\x03C\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x04G\x02^\ - \x03\x1a\x1d\x20The\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\n\x05\ - \x04\0\x04\x01\x01\x12\x03G\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\x12\x03\ - I\x04\x1f\x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\ - \x0e\n\x07\x04\0\x04\x01\x02\0\x01\x12\x03I\x04\x1a\n\x0e\n\x07\x04\0\ - \x04\x01\x02\0\x02\x12\x03I\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\x12\ - \x03M\x04\r\x1aZ\x20The\x20value\x20is\x20a\x20boolean.\n\x20This\x20val\ - ue\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\ - \x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x03M\x04\ - \x08\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x02\x12\x03M\x0b\x0c\n6\n\x06\x04\ - \0\x04\x01\x02\x02\x12\x03P\x04\x0e\x1a'\x20The\x20value\x20is\x20a\x20s\ - igned\x2064-bit\x20integer.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x01\x12\ - \x03P\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03P\x0c\r\nG\n\ - \x06\x04\0\x04\x01\x02\x03\x12\x03S\x04\x0f\x1a8\x20The\x20value\x20is\ - \x20a\x20double\x20precision\x20floating\x20point\x20number.\n\n\x0e\n\ - \x07\x04\0\x04\x01\x02\x03\x01\x12\x03S\x04\n\n\x0e\n\x07\x04\0\x04\x01\ - \x02\x03\x02\x12\x03S\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\x03W\x04\ - \x0f\x1a^\x20The\x20value\x20is\x20a\x20text\x20string.\n\x20This\x20val\ - ue\x20type\x20can\x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\ - \x20is\x20`GAUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\x03W\x04\ - \n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x02\x12\x03W\r\x0e\nJ\n\x06\x04\0\ - \x04\x01\x02\x05\x12\x03Z\x04\x15\x1a;\x20The\x20value\x20is\x20a\x20[`D\ - istribution`][google.api.Distribution].\n\n\x0e\n\x07\x04\0\x04\x01\x02\ - \x05\x01\x12\x03Z\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x02\x12\x03Z\ - \x13\x14\n$\n\x06\x04\0\x04\x01\x02\x06\x12\x03]\x04\x0e\x1a\x15\x20The\ - \x20value\x20is\x20money.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x01\x12\ - \x03]\x04\t\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x02\x12\x03]\x0c\r\n:\n\ - \x04\x04\0\x02\0\x12\x03a\x02\x12\x1a-\x20The\x20resource\x20name\x20of\ - \x20the\x20metric\x20descriptor.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03a\ - \x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03a\t\r\n\x0c\n\x05\x04\0\x02\ - \0\x03\x12\x03a\x10\x11\n\xab\x03\n\x04\x04\0\x02\x01\x12\x03k\x02\x12\ - \x1a\x9d\x03\x20The\x20metric\x20type,\x20including\x20its\x20DNS\x20nam\ - e\x20prefix.\x20The\x20type\x20is\x20not\n\x20URL-encoded.\x20\x20All\ - \x20user-defined\x20metric\x20types\x20have\x20the\x20DNS\x20name\n\x20`\ - custom.googleapis.com`\x20or\x20`external.googleapis.com`.\x20\x20Metric\ - \x20types\x20should\n\x20use\x20a\x20natural\x20hierarchical\x20grouping\ - .\x20For\x20example:\n\n\x20\x20\x20\x20\x20\"custom.googleapis.com/invo\ - ice/paid/amount\"\n\x20\x20\x20\x20\x20\"external.googleapis.com/prometh\ - eus/up\"\n\x20\x20\x20\x20\x20\"appengine.googleapis.com/http/server/res\ - ponse_latencies\"\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03k\x02\x08\n\x0c\ - \n\x05\x04\0\x02\x01\x01\x12\x03k\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03k\x10\x11\n\xd5\x02\n\x04\x04\0\x02\x02\x12\x03s\x02&\x1a\xc7\x02\ - \x20The\x20set\x20of\x20labels\x20that\x20can\x20be\x20used\x20to\x20des\ - cribe\x20a\x20specific\n\x20instance\x20of\x20this\x20metric\x20type.\ - \x20For\x20example,\x20the\n\x20`appengine.googleapis.com/http/server/re\ - sponse_latencies`\x20metric\n\x20type\x20has\x20a\x20label\x20for\x20the\ - \x20HTTP\x20response\x20code,\x20`response_code`,\x20so\n\x20you\x20can\ - \x20look\x20at\x20latencies\x20for\x20successful\x20responses\x20or\x20j\ - ust\n\x20for\x20responses\x20that\x20failed.\n\n\x0c\n\x05\x04\0\x02\x02\ - \x04\x12\x03s\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03s\x0b\x1a\n\x0c\ - \n\x05\x04\0\x02\x02\x01\x12\x03s\x1b!\n\x0c\n\x05\x04\0\x02\x02\x03\x12\ - \x03s$%\n\xa6\x01\n\x04\x04\0\x02\x03\x12\x03w\x02\x1d\x1a\x98\x01\x20Wh\ - ether\x20the\x20metric\x20records\x20instantaneous\x20values,\x20changes\ - \x20to\x20a\x20value,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric\ - _kind`\x20and\x20`value_type`\x20might\x20not\x20be\x20supported.\n\n\ - \x0c\n\x05\x04\0\x02\x03\x06\x12\x03w\x02\x0c\n\x0c\n\x05\x04\0\x02\x03\ - \x01\x12\x03w\r\x18\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03w\x1b\x1c\n\xa1\ - \x01\n\x04\x04\0\x02\x04\x12\x03{\x02\x1b\x1a\x93\x01\x20Whether\x20the\ - \x20measurement\x20is\x20an\x20integer,\x20a\x20floating-point\x20number\ - ,\x20etc.\n\x20Some\x20combinations\x20of\x20`metric_kind`\x20and\x20`va\ - lue_type`\x20might\x20not\x20be\x20supported.\n\n\x0c\n\x05\x04\0\x02\ - \x04\x06\x12\x03{\x02\x0b\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03{\x0c\x16\ - \n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03{\x19\x1a\n\xb3\x1e\n\x04\x04\0\ - \x02\x05\x12\x04\xe3\x01\x02\x12\x1a\xa4\x10\x20*\x20`Ki`\x20\x20\x20\ - \x20kibi\x20\x20\x20\x20(2^10)\n\x20*\x20`Mi`\x20\x20\x20\x20mebi\x20\ - \x20\x20\x20(2^20)\n\x20*\x20`Gi`\x20\x20\x20\x20gibi\x20\x20\x20\x20(2^\ - 30)\n\x20*\x20`Ti`\x20\x20\x20\x20tebi\x20\x20\x20\x20(2^40)\n\x20*\x20`\ - Pi`\x20\x20\x20\x20pebi\x20\x20\x20\x20(2^50)\n\n\x20**Grammar**\n\n\x20\ - The\x20grammar\x20also\x20includes\x20these\x20connectors:\n\n\x20*\x20`\ - /`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\x20an\x20infix\x20opera\ - tor).\x20For\x20examples,\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20`kBy/\ - {email}`\x20or\x20`MiBy/10ms`\x20(although\x20you\x20should\x20almost\ - \x20never\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20have\x20`/s`\x20in\ - \x20a\x20metric\x20`unit`;\x20rates\x20should\x20always\x20be\x20compute\ - d\x20at\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20query\x20time\x20from\ - \x20the\x20underlying\x20cumulative\x20or\x20delta\x20value).\n\x20*\x20\ - `.`\x20\x20\x20\x20multiplication\x20or\x20composition\x20(as\x20an\x20i\ - nfix\x20operator).\x20For\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20examp\ - les,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20The\x20grammar\x20for\x20a\ - \x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\x20\x20Expression\x20=\ - \x20Component\x20{\x20\".\"\x20Component\x20}\x20{\x20\"/\"\x20Component\ - \x20}\x20;\n\n\x20\x20\x20\x20\x20Component\x20=\x20(\x20[\x20PREFIX\x20\ - ]\x20UNIT\x20|\x20\"%\"\x20)\x20[\x20Annotation\x20]\n\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20Annotation\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\"1\"\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20;\n\n\x20\x20\x20\ - \x20\x20Annotation\x20=\x20\"{\"\x20NAME\x20\"}\"\x20;\n\n\x20Notes:\n\n\ - \x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\x20if\x20it\x20follo\ - ws\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\x20\x20\x20is\x20use\ - d\x20alone,\x20then\x20the\x20unit\x20is\x20equivalent\x20to\x20`1`.\x20\ - For\x20examples,\n\x20\x20\x20\x20`{request}/s\x20==\x201/s`,\x20`By{tra\ - nsmitted}/s\x20==\x20By/s`.\n\x20*\x20`NAME`\x20is\x20a\x20sequence\x20o\ - f\x20non-blank\x20printable\x20ASCII\x20characters\x20not\n\x20\x20\x20\ - \x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\x20represents\x20a\x20\ - unitary\x20[dimensionless\n\x20\x20\x20\x20unit](https://en.wikipedia.or\ - g/wiki/Dimensionless_quantity)\x20of\x201,\x20such\n\x20\x20\x20\x20as\ - \x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\x20when\x20none\x20of\ - \x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20appropriate.\x20For\ - \x20example,\x20\"new\x20users\x20per\x20day\"\x20can\x20be\x20represent\ - ed\x20as\n\x20\x20\x20\x20`1/d`\x20or\x20`{new-users}/d`\x20(and\x20a\ - \x20metric\x20value\x20`5`\x20would\x20mean\x20\"5\x20new\n\x20\x20\x20\ - \x20users).\x20Alternatively,\x20\"thousands\x20of\x20page\x20views\x20p\ - er\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\x20as\x20`1000/d\ - `\x20or\x20`k1/d`\x20or\x20`k{page_views}/d`\x20(and\x20a\x20metric\n\ - \x20\x20\x20\x20value\x20of\x20`5.3`\x20would\x20mean\x20\"5300\x20page\ - \x20views\x20per\x20day\").\n\x20*\x20`%`\x20represents\x20dimensionless\ - \x20value\x20of\x201/100,\x20and\x20annotates\x20values\x20giving\n\x20\ - \x20\x20\x20a\x20percentage\x20(so\x20the\x20metric\x20values\x20are\x20\ - typically\x20in\x20the\x20range\x20of\x200..100,\n\x20\x20\x20\x20and\ - \x20a\x20metric\x20value\x20`3`\x20means\x20\"3\x20percent\").\n\x20*\ - \x20`10^2.%`\x20indicates\x20a\x20metric\x20contains\x20a\x20ratio,\x20t\ - ypically\x20in\x20the\x20range\n\x20\x20\x20\x200..1,\x20that\x20will\ - \x20be\x20multiplied\x20by\x20100\x20and\x20displayed\x20as\x20a\x20perc\ - entage\n\x20\x20\x20\x20(so\x20a\x20metric\x20value\x20`0.03`\x20means\ - \x20\"3\x20percent\").\n\n2\x9d\x0c\x20The\x20units\x20in\x20which\x20th\ - e\x20metric\x20value\x20is\x20reported.\x20It\x20is\x20only\x20applicabl\ - e\n\x20if\x20the\x20`value_type`\x20is\x20`INT64`,\x20`DOUBLE`,\x20or\ - \x20`DISTRIBUTION`.\x20The\x20`unit`\n\x20defines\x20the\x20representati\ - on\x20of\x20the\x20stored\x20metric\x20values.\n\n\x20Different\x20syste\ - ms\x20may\x20scale\x20the\x20values\x20to\x20be\x20more\x20easily\x20dis\ - played\x20(so\x20a\n\x20value\x20of\x20`0.02KBy`\x20_might_\x20be\x20dis\ - played\x20as\x20`20By`,\x20and\x20a\x20value\x20of\n\x20`3523KBy`\x20_mi\ - ght_\x20be\x20displayed\x20as\x20`3.5MBy`).\x20However,\x20if\x20the\x20\ - `unit`\x20is\n\x20`KBy`,\x20then\x20the\x20value\x20of\x20the\x20metric\ - \x20is\x20always\x20in\x20thousands\x20of\x20bytes,\x20no\n\x20matter\ - \x20how\x20it\x20may\x20be\x20displayed..\n\n\x20If\x20you\x20want\x20a\ - \x20custom\x20metric\x20to\x20record\x20the\x20exact\x20number\x20of\x20\ - CPU-seconds\x20used\n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\ - \x20`INT64\x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU\ - }`\x20(or\x20equivalently\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20t\ - he\x20job\x20uses\x2012,005\n\x20CPU-seconds,\x20then\x20the\x20value\ - \x20is\x20written\x20as\x20`12005`.\n\n\x20Alternatively,\x20if\x20you\ - \x20want\x20a\x20custome\x20metric\x20to\x20record\x20data\x20in\x20a\ - \x20more\n\x20granular\x20way,\x20you\x20can\x20create\x20a\x20`DOUBLE\ - \x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20an\ - d\x20then\x20write\x20the\x20value\x20`12.005`\x20(which\x20is\x20`12005\ - /1000`),\n\x20or\x20use\x20`Kis{CPU}`\x20and\x20write\x20`11.723`\x20(wh\ - ich\x20is\x20`12005/1024`).\n\n\x20The\x20supported\x20units\x20are\x20a\ - \x20subset\x20of\x20[The\x20Unified\x20Code\x20for\x20Units\x20of\n\x20M\ - easure](http://unitsofmeasure.org/ucum.html)\x20standard:\n\n\x20**Basic\ - \x20units\x20(UNIT)**\n\n\x20*\x20`bit`\x20\x20\x20bit\n\x20*\x20`By`\ - \x20\x20\x20\x20byte\n\x20*\x20`s`\x20\x20\x20\x20\x20second\n\x20*\x20`\ - min`\x20\x20\x20minute\n\x20*\x20`h`\x20\x20\x20\x20\x20hour\n\x20*\x20`\ - d`\x20\x20\x20\x20\x20day\n\n\x20**Prefixes\x20(PREFIX)**\n\n\x20*\x20`k\ - `\x20\x20\x20\x20\x20kilo\x20\x20\x20\x20(10^3)\n\x20*\x20`M`\x20\x20\ - \x20\x20\x20mega\x20\x20\x20\x20(10^6)\n\x20*\x20`G`\x20\x20\x20\x20\x20\ - giga\x20\x20\x20\x20(10^9)\n\x20*\x20`T`\x20\x20\x20\x20\x20tera\x20\x20\ - \x20\x20(10^12)\n\x20*\x20`P`\x20\x20\x20\x20\x20peta\x20\x20\x20\x20(10\ - ^15)\n\x20*\x20`E`\x20\x20\x20\x20\x20exa\x20\x20\x20\x20\x20(10^18)\n\ - \x20*\x20`Z`\x20\x20\x20\x20\x20zetta\x20\x20\x20(10^21)\n\x20*\x20`Y`\ - \x20\x20\x20\x20\x20yotta\x20\x20\x20(10^24)\n2\xdd\x01\x20*\x20`m`\x20\ - \x20\x20\x20\x20milli\x20\x20\x20(10^-3)\n\x20*\x20`u`\x20\x20\x20\x20\ - \x20micro\x20\x20\x20(10^-6)\n\x20*\x20`n`\x20\x20\x20\x20\x20nano\x20\ - \x20\x20\x20(10^-9)\n\x20*\x20`p`\x20\x20\x20\x20\x20pico\x20\x20\x20\ - \x20(10^-12)\n\x20*\x20`f`\x20\x20\x20\x20\x20femto\x20\x20\x20(10^-15)\ - \n\x20*\x20`a`\x20\x20\x20\x20\x20atto\x20\x20\x20\x20(10^-18)\n\x20*\ - \x20`z`\x20\x20\x20\x20\x20zepto\x20\x20\x20(10^-21)\n\x20*\x20`y`\x20\ - \x20\x20\x20\x20yocto\x20\x20\x20(10^-24)\n\n\r\n\x05\x04\0\x02\x05\x05\ - \x12\x04\xe3\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xe3\x01\t\r\ - \n\r\n\x05\x04\0\x02\x05\x03\x12\x04\xe3\x01\x10\x11\nY\n\x04\x04\0\x02\ - \x06\x12\x04\xe6\x01\x02\x19\x1aK\x20A\x20detailed\x20description\x20of\ - \x20the\x20metric,\x20which\x20can\x20be\x20used\x20in\x20documentation.\ - \n\n\r\n\x05\x04\0\x02\x06\x05\x12\x04\xe6\x01\x02\x08\n\r\n\x05\x04\0\ - \x02\x06\x01\x12\x04\xe6\x01\t\x14\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\ - \xe6\x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\x12\x04\xec\x01\x02\x1a\ - \x1a\x94\x02\x20A\x20concise\x20name\x20for\x20the\x20metric,\x20which\ - \x20can\x20be\x20displayed\x20in\x20user\x20interfaces.\n\x20Use\x20sent\ - ence\x20case\x20without\x20an\x20ending\x20period,\x20for\x20example\x20\ - \"Request\x20count\".\n\x20This\x20field\x20is\x20optional\x20but\x20it\ - \x20is\x20recommended\x20to\x20be\x20set\x20for\x20any\x20metrics\n\x20a\ - ssociated\x20with\x20user-visible\x20concepts,\x20such\x20as\x20Quota.\n\ - \n\r\n\x05\x04\0\x02\x07\x05\x12\x04\xec\x01\x02\x08\n\r\n\x05\x04\0\x02\ - \x07\x01\x12\x04\xec\x01\t\x15\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\xec\ - \x01\x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\xef\x01\x02)\x1aD\x20Optiona\ - l.\x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\x20usage\x20\ - of\x20the\x20metric.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\xef\x01\x02\ - \x1a\n\r\n\x05\x04\0\x02\x08\x01\x12\x04\xef\x01\x1b#\n\r\n\x05\x04\0\ - \x02\x08\x03\x12\x04\xef\x01&(\nD\n\x04\x04\0\x02\t\x12\x04\xf2\x01\x02\ - \x20\x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20metric\ - \x20definition.\n\n\r\n\x05\x04\0\x02\t\x06\x12\x04\xf2\x01\x02\r\n\r\n\ - \x05\x04\0\x02\t\x01\x12\x04\xf2\x01\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\ - \x12\x04\xf2\x01\x1d\x1f\n\x92\x01\n\x02\x04\x01\x12\x06\xf7\x01\0\xff\ - \x01\x01\x1a\x83\x01\x20A\x20specific\x20metric,\x20identified\x20by\x20\ - specifying\x20values\x20for\x20all\x20of\x20the\n\x20labels\x20of\x20a\ - \x20[`MetricDescriptor`][google.api.MetricDescriptor].\n\n\x0b\n\x03\x04\ - \x01\x01\x12\x04\xf7\x01\x08\x0e\n\xa4\x01\n\x04\x04\x01\x02\0\x12\x04\ - \xfa\x01\x02\x12\x1a\x95\x01\x20An\x20existing\x20metric\x20type,\x20see\ - \x20[google.api.MetricDescriptor][google.api.MetricDescriptor].\n\x20For\ - \x20example,\x20`custom.googleapis.com/invoice/paid/amount`.\n\n\r\n\x05\ - \x04\x01\x02\0\x05\x12\x04\xfa\x01\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\ - \x12\x04\xfa\x01\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\xfa\x01\x10\x11\ - \n\x92\x01\n\x04\x04\x01\x02\x01\x12\x04\xfe\x01\x02!\x1a\x83\x01\x20The\ - \x20set\x20of\x20label\x20values\x20that\x20uniquely\x20identify\x20this\ - \x20metric.\x20All\n\x20labels\x20listed\x20in\x20the\x20`MetricDescript\ - or`\x20must\x20be\x20assigned\x20values.\n\n\r\n\x05\x04\x01\x02\x01\x06\ - \x12\x04\xfe\x01\x02\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\xfe\x01\ - \x16\x1c\n\r\n\x05\x04\x01\x02\x01\x03\x12\x04\xfe\x01\x1f\x20b\x06proto\ - 3\ + \x17.google.api.LaunchStageR\x0blaunchStage\x128\n\x18monitored_resource\ + _types\x18\r\x20\x03(\tR\x16monitoredResourceTypes\x1a\x87\x04\n\x18Metr\ + icDescriptorMetadata\x12>\n\x0claunch_stage\x18\x01\x20\x01(\x0e2\x17.go\ + ogle.api.LaunchStageR\x0blaunchStageB\x02\x18\x01\x12>\n\rsample_period\ + \x18\x02\x20\x01(\x0b2\x19.google.protobuf.DurationR\x0csamplePeriod\x12\ + <\n\x0cingest_delay\x18\x03\x20\x01(\x0b2\x19.google.protobuf.DurationR\ + \x0bingestDelay\x12\xa6\x01\n$time_series_resource_hierarchy_level\x18\ + \x04\x20\x03(\x0e2V.google.api.MetricDescriptor.MetricDescriptorMetadata\ + .TimeSeriesResourceHierarchyLevelR\x20timeSeriesResourceHierarchyLevel\"\ + \x83\x01\n\x20TimeSeriesResourceHierarchyLevel\x124\n0TIME_SERIES_RESOUR\ + CE_HIERARCHY_LEVEL_UNSPECIFIED\x10\0\x12\x0b\n\x07PROJECT\x10\x01\x12\ + \x10\n\x0cORGANIZATION\x10\x02\x12\n\n\x06FOLDER\x10\x03\"O\n\nMetricKin\ + d\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\x10\0\x12\t\n\x05GAUGE\x10\x01\ + \x12\t\n\x05DELTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\x03\"q\n\tValueType\ + \x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\0\x12\x08\n\x04BOOL\x10\x01\x12\ + \t\n\x05INT64\x10\x02\x12\n\n\x06DOUBLE\x10\x03\x12\n\n\x06STRING\x10\ + \x04\x12\x10\n\x0cDISTRIBUTION\x10\x05\x12\t\n\x05MONEY\x10\x06\"\x8f\ + \x01\n\x06Metric\x12\x12\n\x04type\x18\x03\x20\x01(\tR\x04type\x126\n\ + \x06labels\x18\x02\x20\x03(\x0b2\x1e.google.api.Metric.LabelsEntryR\x06l\ + abels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\ + \x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B_\n\x0ecom.go\ + ogle.apiB\x0bMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api\ + /metric;metric\xa2\x02\x04GAPIJ\xa3V\n\x07\x12\x05\x0e\0\x9e\x02\x01\n\ + \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Go\ + ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ + sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ + is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ + \x12\x03\x12\0\x20\n\t\n\x02\x03\x01\x12\x03\x13\0'\n\t\n\x02\x03\x02\ + \x12\x03\x14\0(\n\x08\n\x01\x08\x12\x03\x16\0N\n\t\n\x02\x08\x0b\x12\x03\ + \x16\0N\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\x08\n\x12\x03\x17\0\"\ + \n\x08\n\x01\x08\x12\x03\x18\0,\n\t\n\x02\x08\x08\x12\x03\x18\0,\n\x08\n\ + \x01\x08\x12\x03\x19\0'\n\t\n\x02\x08\x01\x12\x03\x19\0'\n\x08\n\x01\x08\ + \x12\x03\x1a\0\"\n\t\n\x02\x08$\x12\x03\x1a\0\"\n\xbf\x01\n\x02\x04\0\ + \x12\x05\x20\0\x91\x02\x01\x1a\xb1\x01\x20Defines\x20a\x20metric\x20type\ + \x20and\x20its\x20schema.\x20Once\x20a\x20metric\x20descriptor\x20is\x20\ + created,\n\x20deleting\x20or\x20altering\x20it\x20stops\x20data\x20colle\ + ction\x20and\x20makes\x20the\x20metric\x20type's\n\x20existing\x20data\ + \x20unusable.\n\n\n\n\n\x03\x04\0\x01\x12\x03\x20\x08\x18\n\xd9\x01\n\ + \x04\x04\0\x04\0\x12\x04$\x024\x03\x1a\xca\x01\x20The\x20kind\x20of\x20m\ + easurement.\x20It\x20describes\x20how\x20the\x20data\x20is\x20reported.\ + \n\x20For\x20information\x20on\x20setting\x20the\x20start\x20time\x20and\ + \x20end\x20time\x20based\x20on\n\x20the\x20MetricKind,\x20see\x20[TimeIn\ + terval][google.monitoring.v3.TimeInterval].\n\n\x0c\n\x05\x04\0\x04\0\ + \x01\x12\x03$\x07\x11\n/\n\x06\x04\0\x04\0\x02\0\x12\x03&\x04\x20\x1a\ + \x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\x0e\n\x07\x04\ + \0\x04\0\x02\0\x01\x12\x03&\x04\x1b\n\x0e\n\x07\x04\0\x04\0\x02\0\x02\ + \x12\x03&\x1e\x1f\n9\n\x06\x04\0\x04\0\x02\x01\x12\x03)\x04\x0e\x1a*\x20\ + An\x20instantaneous\x20measurement\x20of\x20a\x20value.\n\n\x0e\n\x07\ + \x04\0\x04\0\x02\x01\x01\x12\x03)\x04\t\n\x0e\n\x07\x04\0\x04\0\x02\x01\ + \x02\x12\x03)\x0c\r\n>\n\x06\x04\0\x04\0\x02\x02\x12\x03,\x04\x0e\x1a/\ + \x20The\x20change\x20in\x20a\x20value\x20during\x20a\x20time\x20interval\ + .\n\n\x0e\n\x07\x04\0\x04\0\x02\x02\x01\x12\x03,\x04\t\n\x0e\n\x07\x04\0\ + \x04\0\x02\x02\x02\x12\x03,\x0c\r\n\x8a\x02\n\x06\x04\0\x04\0\x02\x03\ + \x12\x033\x04\x13\x1a\xfa\x01\x20A\x20value\x20accumulated\x20over\x20a\ + \x20time\x20interval.\x20\x20Cumulative\n\x20measurements\x20in\x20a\x20\ + time\x20series\x20should\x20have\x20the\x20same\x20start\x20time\n\x20an\ + d\x20increasing\x20end\x20times,\x20until\x20an\x20event\x20resets\x20th\ + e\x20cumulative\n\x20value\x20to\x20zero\x20and\x20sets\x20a\x20new\x20s\ + tart\x20time\x20for\x20the\x20following\n\x20points.\n\n\x0e\n\x07\x04\0\ + \x04\0\x02\x03\x01\x12\x033\x04\x0e\n\x0e\n\x07\x04\0\x04\0\x02\x03\x02\ + \x12\x033\x11\x12\n+\n\x04\x04\0\x04\x01\x12\x047\x02N\x03\x1a\x1d\x20Th\ + e\x20value\x20type\x20of\x20a\x20metric.\n\n\x0c\n\x05\x04\0\x04\x01\x01\ + \x12\x037\x07\x10\n/\n\x06\x04\0\x04\x01\x02\0\x12\x039\x04\x1f\x1a\x20\ + \x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\x0e\n\x07\x04\0\ + \x04\x01\x02\0\x01\x12\x039\x04\x1a\n\x0e\n\x07\x04\0\x04\x01\x02\0\x02\ + \x12\x039\x1d\x1e\ni\n\x06\x04\0\x04\x01\x02\x01\x12\x03=\x04\r\x1aZ\x20\ + The\x20value\x20is\x20a\x20boolean.\n\x20This\x20value\x20type\x20can\ + \x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\x20is\x20`GAUGE`.\ + \n\n\x0e\n\x07\x04\0\x04\x01\x02\x01\x01\x12\x03=\x04\x08\n\x0e\n\x07\ + \x04\0\x04\x01\x02\x01\x02\x12\x03=\x0b\x0c\n6\n\x06\x04\0\x04\x01\x02\ + \x02\x12\x03@\x04\x0e\x1a'\x20The\x20value\x20is\x20a\x20signed\x2064-bi\ + t\x20integer.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x02\x01\x12\x03@\x04\t\n\ + \x0e\n\x07\x04\0\x04\x01\x02\x02\x02\x12\x03@\x0c\r\nG\n\x06\x04\0\x04\ + \x01\x02\x03\x12\x03C\x04\x0f\x1a8\x20The\x20value\x20is\x20a\x20double\ + \x20precision\x20floating\x20point\x20number.\n\n\x0e\n\x07\x04\0\x04\ + \x01\x02\x03\x01\x12\x03C\x04\n\n\x0e\n\x07\x04\0\x04\x01\x02\x03\x02\ + \x12\x03C\r\x0e\nm\n\x06\x04\0\x04\x01\x02\x04\x12\x03G\x04\x0f\x1a^\x20\ + The\x20value\x20is\x20a\x20text\x20string.\n\x20This\x20value\x20type\ + \x20can\x20be\x20used\x20only\x20if\x20the\x20metric\x20kind\x20is\x20`G\ + AUGE`.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x04\x01\x12\x03G\x04\n\n\x0e\n\ + \x07\x04\0\x04\x01\x02\x04\x02\x12\x03G\r\x0e\nJ\n\x06\x04\0\x04\x01\x02\ + \x05\x12\x03J\x04\x15\x1a;\x20The\x20value\x20is\x20a\x20[`Distribution`\ + ][google.api.Distribution].\n\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x01\x12\ + \x03J\x04\x10\n\x0e\n\x07\x04\0\x04\x01\x02\x05\x02\x12\x03J\x13\x14\n$\ + \n\x06\x04\0\x04\x01\x02\x06\x12\x03M\x04\x0e\x1a\x15\x20The\x20value\ + \x20is\x20money.\n\n\x0e\n\x07\x04\0\x04\x01\x02\x06\x01\x12\x03M\x04\t\ + \n\x0e\n\x07\x04\0\x04\x01\x02\x06\x02\x12\x03M\x0c\r\nW\n\x04\x04\0\x03\ + \0\x12\x04Q\x02t\x03\x1aI\x20Additional\x20annotations\x20that\x20can\ + \x20be\x20used\x20to\x20guide\x20the\x20usage\x20of\x20a\x20metric.\n\n\ + \x0c\n\x05\x04\0\x03\0\x01\x12\x03Q\n\"\nR\n\x06\x04\0\x03\0\x04\0\x12\ + \x04S\x04_\x05\x1aB\x20The\x20resource\x20hierarchy\x20level\x20of\x20th\ + e\x20timeseries\x20data\x20of\x20a\x20metric.\n\n\x0e\n\x07\x04\0\x03\0\ + \x04\0\x01\x12\x03S\t)\n1\n\x08\x04\0\x03\0\x04\0\x02\0\x12\x03U\x06;\ + \x1a\x20\x20Do\x20not\x20use\x20this\x20default\x20value.\n\n\x10\n\t\ + \x04\0\x03\0\x04\0\x02\0\x01\x12\x03U\x066\n\x10\n\t\x04\0\x03\0\x04\0\ + \x02\0\x02\x12\x03U9:\n0\n\x08\x04\0\x03\0\x04\0\x02\x01\x12\x03X\x06\ + \x12\x1a\x1f\x20Scopes\x20a\x20metric\x20to\x20a\x20project.\n\n\x10\n\t\ + \x04\0\x03\0\x04\0\x02\x01\x01\x12\x03X\x06\r\n\x10\n\t\x04\0\x03\0\x04\ + \0\x02\x01\x02\x12\x03X\x10\x11\n6\n\x08\x04\0\x03\0\x04\0\x02\x02\x12\ + \x03[\x06\x17\x1a%\x20Scopes\x20a\x20metric\x20to\x20an\x20organization.\ + \n\n\x10\n\t\x04\0\x03\0\x04\0\x02\x02\x01\x12\x03[\x06\x12\n\x10\n\t\ + \x04\0\x03\0\x04\0\x02\x02\x02\x12\x03[\x15\x16\n/\n\x08\x04\0\x03\0\x04\ + \0\x02\x03\x12\x03^\x06\x11\x1a\x1e\x20Scopes\x20a\x20metric\x20to\x20a\ + \x20folder.\n\n\x10\n\t\x04\0\x03\0\x04\0\x02\x03\x01\x12\x03^\x06\x0c\n\ + \x10\n\t\x04\0\x03\0\x04\0\x02\x03\x02\x12\x03^\x0f\x10\n~\n\x06\x04\0\ + \x03\0\x02\0\x12\x03d\x045\x1ao\x20Deprecated.\x20Must\x20use\x20the\n\ + \x20[MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_s\ + tage]\n\x20instead.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x06\x12\x03d\x04\x0f\ + \n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03d\x10\x1c\n\x0e\n\x07\x04\0\ + \x03\0\x02\0\x03\x12\x03d\x1f\x20\n\x0e\n\x07\x04\0\x03\0\x02\0\x08\x12\ + \x03d!4\n\x0f\n\x08\x04\0\x03\0\x02\0\x08\x03\x12\x03d\"3\n\x8a\x02\n\ + \x06\x04\0\x03\0\x02\x01\x12\x03j\x04/\x1a\xfa\x01\x20The\x20sampling\ + \x20period\x20of\x20metric\x20data\x20points.\x20For\x20metrics\x20which\ + \x20are\x20written\n\x20periodically,\x20consecutive\x20data\x20points\ + \x20are\x20stored\x20at\x20this\x20time\x20interval,\n\x20excluding\x20d\ + ata\x20loss\x20due\x20to\x20errors.\x20Metrics\x20with\x20a\x20higher\ + \x20granularity\x20have\n\x20a\x20smaller\x20sampling\x20period.\n\n\x0e\ + \n\x07\x04\0\x03\0\x02\x01\x06\x12\x03j\x04\x1c\n\x0e\n\x07\x04\0\x03\0\ + \x02\x01\x01\x12\x03j\x1d*\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\x03j-\ + .\n\xbc\x01\n\x06\x04\0\x03\0\x02\x02\x12\x03o\x04.\x1a\xac\x01\x20The\ + \x20delay\x20of\x20data\x20points\x20caused\x20by\x20ingestion.\x20Data\ + \x20points\x20older\x20than\x20this\n\x20age\x20are\x20guaranteed\x20to\ + \x20be\x20ingested\x20and\x20available\x20to\x20be\x20read,\x20excluding\ + \n\x20data\x20loss\x20due\x20to\x20errors.\n\n\x0e\n\x07\x04\0\x03\0\x02\ + \x02\x06\x12\x03o\x04\x1c\n\x0e\n\x07\x04\0\x03\0\x02\x02\x01\x12\x03o\ + \x1d)\n\x0e\n\x07\x04\0\x03\0\x02\x02\x03\x12\x03o,-\nA\n\x06\x04\0\x03\ + \0\x02\x03\x12\x04r\x04s1\x1a1\x20The\x20scope\x20of\x20the\x20timeserie\ + s\x20data\x20of\x20the\x20metric.\n\n\x0e\n\x07\x04\0\x03\0\x02\x03\x04\ + \x12\x03r\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x03\x06\x12\x03r\r-\n\x0e\ + \n\x07\x04\0\x03\0\x02\x03\x01\x12\x03s\x08,\n\x0e\n\x07\x04\0\x03\0\x02\ + \x03\x03\x12\x03s/0\n:\n\x04\x04\0\x02\0\x12\x03w\x02\x12\x1a-\x20The\ + \x20resource\x20name\x20of\x20the\x20metric\x20descriptor.\n\n\x0c\n\x05\ + \x04\0\x02\0\x05\x12\x03w\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03w\t\ + \r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03w\x10\x11\n\xaa\x03\n\x04\x04\0\ + \x02\x01\x12\x04\x81\x01\x02\x12\x1a\x9b\x03\x20The\x20metric\x20type,\ + \x20including\x20its\x20DNS\x20name\x20prefix.\x20The\x20type\x20is\x20n\ + ot\n\x20URL-encoded.\x20All\x20user-defined\x20metric\x20types\x20have\ + \x20the\x20DNS\x20name\n\x20`custom.googleapis.com`\x20or\x20`external.g\ + oogleapis.com`.\x20Metric\x20types\x20should\n\x20use\x20a\x20natural\ + \x20hierarchical\x20grouping.\x20For\x20example:\n\n\x20\x20\x20\x20\x20\ + \"custom.googleapis.com/invoice/paid/amount\"\n\x20\x20\x20\x20\x20\"ext\ + ernal.googleapis.com/prometheus/up\"\n\x20\x20\x20\x20\x20\"appengine.go\ + ogleapis.com/http/server/response_latencies\"\n\n\r\n\x05\x04\0\x02\x01\ + \x05\x12\x04\x81\x01\x02\x08\n\r\n\x05\x04\0\x02\x01\x01\x12\x04\x81\x01\ + \t\r\n\r\n\x05\x04\0\x02\x01\x03\x12\x04\x81\x01\x10\x11\n\xd6\x02\n\x04\ + \x04\0\x02\x02\x12\x04\x89\x01\x02&\x1a\xc7\x02\x20The\x20set\x20of\x20l\ + abels\x20that\x20can\x20be\x20used\x20to\x20describe\x20a\x20specific\n\ + \x20instance\x20of\x20this\x20metric\x20type.\x20For\x20example,\x20the\ + \n\x20`appengine.googleapis.com/http/server/response_latencies`\x20metri\ + c\n\x20type\x20has\x20a\x20label\x20for\x20the\x20HTTP\x20response\x20co\ + de,\x20`response_code`,\x20so\n\x20you\x20can\x20look\x20at\x20latencies\ + \x20for\x20successful\x20responses\x20or\x20just\n\x20for\x20responses\ + \x20that\x20failed.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04\x89\x01\x02\n\ + \n\r\n\x05\x04\0\x02\x02\x06\x12\x04\x89\x01\x0b\x1a\n\r\n\x05\x04\0\x02\ + \x02\x01\x12\x04\x89\x01\x1b!\n\r\n\x05\x04\0\x02\x02\x03\x12\x04\x89\ + \x01$%\n\xa7\x01\n\x04\x04\0\x02\x03\x12\x04\x8d\x01\x02\x1d\x1a\x98\x01\ + \x20Whether\x20the\x20metric\x20records\x20instantaneous\x20values,\x20c\ + hanges\x20to\x20a\x20value,\x20etc.\n\x20Some\x20combinations\x20of\x20`\ + metric_kind`\x20and\x20`value_type`\x20might\x20not\x20be\x20supported.\ + \n\n\r\n\x05\x04\0\x02\x03\x06\x12\x04\x8d\x01\x02\x0c\n\r\n\x05\x04\0\ + \x02\x03\x01\x12\x04\x8d\x01\r\x18\n\r\n\x05\x04\0\x02\x03\x03\x12\x04\ + \x8d\x01\x1b\x1c\n\xa2\x01\n\x04\x04\0\x02\x04\x12\x04\x91\x01\x02\x1b\ + \x1a\x93\x01\x20Whether\x20the\x20measurement\x20is\x20an\x20integer,\ + \x20a\x20floating-point\x20number,\x20etc.\n\x20Some\x20combinations\x20\ + of\x20`metric_kind`\x20and\x20`value_type`\x20might\x20not\x20be\x20supp\ + orted.\n\n\r\n\x05\x04\0\x02\x04\x06\x12\x04\x91\x01\x02\x0b\n\r\n\x05\ + \x04\0\x02\x04\x01\x12\x04\x91\x01\x0c\x16\n\r\n\x05\x04\0\x02\x04\x03\ + \x12\x04\x91\x01\x19\x1a\n\xca\x1e\n\x04\x04\0\x02\x05\x12\x04\xf9\x01\ + \x02\x12\x1a\xbb\x1e\x20The\x20units\x20in\x20which\x20the\x20metric\x20\ + value\x20is\x20reported.\x20It\x20is\x20only\x20applicable\n\x20if\x20th\ + e\x20`value_type`\x20is\x20`INT64`,\x20`DOUBLE`,\x20or\x20`DISTRIBUTION`\ + .\x20The\x20`unit`\n\x20defines\x20the\x20representation\x20of\x20the\ + \x20stored\x20metric\x20values.\n\n\x20Different\x20systems\x20might\x20\ + scale\x20the\x20values\x20to\x20be\x20more\x20easily\x20displayed\x20(so\ + \x20a\n\x20value\x20of\x20`0.02kBy`\x20_might_\x20be\x20displayed\x20as\ + \x20`20By`,\x20and\x20a\x20value\x20of\n\x20`3523kBy`\x20_might_\x20be\ + \x20displayed\x20as\x20`3.5MBy`).\x20However,\x20if\x20the\x20`unit`\x20\ + is\n\x20`kBy`,\x20then\x20the\x20value\x20of\x20the\x20metric\x20is\x20a\ + lways\x20in\x20thousands\x20of\x20bytes,\x20no\n\x20matter\x20how\x20it\ + \x20might\x20be\x20displayed.\n\n\x20If\x20you\x20want\x20a\x20custom\ + \x20metric\x20to\x20record\x20the\x20exact\x20number\x20of\x20CPU-second\ + s\x20used\n\x20by\x20a\x20job,\x20you\x20can\x20create\x20an\x20`INT64\ + \x20CUMULATIVE`\x20metric\x20whose\x20`unit`\x20is\n\x20`s{CPU}`\x20(or\ + \x20equivalently\x20`1s{CPU}`\x20or\x20just\x20`s`).\x20If\x20the\x20job\ + \x20uses\x2012,005\n\x20CPU-seconds,\x20then\x20the\x20value\x20is\x20wr\ + itten\x20as\x20`12005`.\n\n\x20Alternatively,\x20if\x20you\x20want\x20a\ + \x20custom\x20metric\x20to\x20record\x20data\x20in\x20a\x20more\n\x20gra\ + nular\x20way,\x20you\x20can\x20create\x20a\x20`DOUBLE\x20CUMULATIVE`\x20\ + metric\x20whose\x20`unit`\x20is\n\x20`ks{CPU}`,\x20and\x20then\x20write\ + \x20the\x20value\x20`12.005`\x20(which\x20is\x20`12005/1000`),\n\x20or\ + \x20use\x20`Kis{CPU}`\x20and\x20write\x20`11.723`\x20(which\x20is\x20`12\ + 005/1024`).\n\n\x20The\x20supported\x20units\x20are\x20a\x20subset\x20of\ + \x20[The\x20Unified\x20Code\x20for\x20Units\x20of\n\x20Measure](https://\ + unitsofmeasure.org/ucum.html)\x20standard:\n\n\x20**Basic\x20units\x20(U\ + NIT)**\n\n\x20*\x20`bit`\x20\x20\x20bit\n\x20*\x20`By`\x20\x20\x20\x20by\ + te\n\x20*\x20`s`\x20\x20\x20\x20\x20second\n\x20*\x20`min`\x20\x20\x20mi\ + nute\n\x20*\x20`h`\x20\x20\x20\x20\x20hour\n\x20*\x20`d`\x20\x20\x20\x20\ + \x20day\n\x20*\x20`1`\x20\x20\x20\x20\x20dimensionless\n\n\x20**Prefixes\ + \x20(PREFIX)**\n\n\x20*\x20`k`\x20\x20\x20\x20\x20kilo\x20\x20\x20\x20(1\ + 0^3)\n\x20*\x20`M`\x20\x20\x20\x20\x20mega\x20\x20\x20\x20(10^6)\n\x20*\ + \x20`G`\x20\x20\x20\x20\x20giga\x20\x20\x20\x20(10^9)\n\x20*\x20`T`\x20\ + \x20\x20\x20\x20tera\x20\x20\x20\x20(10^12)\n\x20*\x20`P`\x20\x20\x20\ + \x20\x20peta\x20\x20\x20\x20(10^15)\n\x20*\x20`E`\x20\x20\x20\x20\x20exa\ + \x20\x20\x20\x20\x20(10^18)\n\x20*\x20`Z`\x20\x20\x20\x20\x20zetta\x20\ + \x20\x20(10^21)\n\x20*\x20`Y`\x20\x20\x20\x20\x20yotta\x20\x20\x20(10^24\ + )\n\n\x20*\x20`m`\x20\x20\x20\x20\x20milli\x20\x20\x20(10^-3)\n\x20*\x20\ + `u`\x20\x20\x20\x20\x20micro\x20\x20\x20(10^-6)\n\x20*\x20`n`\x20\x20\ + \x20\x20\x20nano\x20\x20\x20\x20(10^-9)\n\x20*\x20`p`\x20\x20\x20\x20\ + \x20pico\x20\x20\x20\x20(10^-12)\n\x20*\x20`f`\x20\x20\x20\x20\x20femto\ + \x20\x20\x20(10^-15)\n\x20*\x20`a`\x20\x20\x20\x20\x20atto\x20\x20\x20\ + \x20(10^-18)\n\x20*\x20`z`\x20\x20\x20\x20\x20zepto\x20\x20\x20(10^-21)\ + \n\x20*\x20`y`\x20\x20\x20\x20\x20yocto\x20\x20\x20(10^-24)\n\n\x20*\x20\ + `Ki`\x20\x20\x20\x20kibi\x20\x20\x20\x20(2^10)\n\x20*\x20`Mi`\x20\x20\ + \x20\x20mebi\x20\x20\x20\x20(2^20)\n\x20*\x20`Gi`\x20\x20\x20\x20gibi\ + \x20\x20\x20\x20(2^30)\n\x20*\x20`Ti`\x20\x20\x20\x20tebi\x20\x20\x20\ + \x20(2^40)\n\x20*\x20`Pi`\x20\x20\x20\x20pebi\x20\x20\x20\x20(2^50)\n\n\ + \x20**Grammar**\n\n\x20The\x20grammar\x20also\x20includes\x20these\x20co\ + nnectors:\n\n\x20*\x20`/`\x20\x20\x20\x20division\x20or\x20ratio\x20(as\ + \x20an\x20infix\x20operator).\x20For\x20examples,\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20`kBy/{email}`\x20or\x20`MiBy/10ms`\x20(although\x20y\ + ou\x20should\x20almost\x20never\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20have\x20`/s`\x20in\x20a\x20metric\x20`unit`;\x20rates\x20should\x20a\ + lways\x20be\x20computed\x20at\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20q\ + uery\x20time\x20from\x20the\x20underlying\x20cumulative\x20or\x20delta\ + \x20value).\n\x20*\x20`.`\x20\x20\x20\x20multiplication\x20or\x20composi\ + tion\x20(as\x20an\x20infix\x20operator).\x20For\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20examples,\x20`GBy.d`\x20or\x20`k{watt}.h`.\n\n\x20Th\ + e\x20grammar\x20for\x20a\x20unit\x20is\x20as\x20follows:\n\n\x20\x20\x20\ + \x20\x20Expression\x20=\x20Component\x20{\x20\".\"\x20Component\x20}\x20\ + {\x20\"/\"\x20Component\x20}\x20;\n\n\x20\x20\x20\x20\x20Component\x20=\ + \x20(\x20[\x20PREFIX\x20]\x20UNIT\x20|\x20\"%\"\x20)\x20[\x20Annotation\ + \x20]\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\ + Annotation\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + |\x20\"1\"\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + ;\n\n\x20\x20\x20\x20\x20Annotation\x20=\x20\"{\"\x20NAME\x20\"}\"\x20;\ + \n\n\x20Notes:\n\n\x20*\x20`Annotation`\x20is\x20just\x20a\x20comment\ + \x20if\x20it\x20follows\x20a\x20`UNIT`.\x20If\x20the\x20annotation\n\x20\ + \x20\x20\x20is\x20used\x20alone,\x20then\x20the\x20unit\x20is\x20equival\ + ent\x20to\x20`1`.\x20For\x20examples,\n\x20\x20\x20\x20`{request}/s\x20=\ + =\x201/s`,\x20`By{transmitted}/s\x20==\x20By/s`.\n\x20*\x20`NAME`\x20is\ + \x20a\x20sequence\x20of\x20non-blank\x20printable\x20ASCII\x20characters\ + \x20not\n\x20\x20\x20\x20containing\x20`{`\x20or\x20`}`.\n\x20*\x20`1`\ + \x20represents\x20a\x20unitary\x20[dimensionless\n\x20\x20\x20\x20unit](\ + https://en.wikipedia.org/wiki/Dimensionless_quantity)\x20of\x201,\x20suc\ + h\n\x20\x20\x20\x20as\x20in\x20`1/s`.\x20It\x20is\x20typically\x20used\ + \x20when\x20none\x20of\x20the\x20basic\x20units\x20are\n\x20\x20\x20\x20\ + appropriate.\x20For\x20example,\x20\"new\x20users\x20per\x20day\"\x20can\ + \x20be\x20represented\x20as\n\x20\x20\x20\x20`1/d`\x20or\x20`{new-users}\ + /d`\x20(and\x20a\x20metric\x20value\x20`5`\x20would\x20mean\x20\"5\x20ne\ + w\n\x20\x20\x20\x20users).\x20Alternatively,\x20\"thousands\x20of\x20pag\ + e\x20views\x20per\x20day\"\x20would\x20be\n\x20\x20\x20\x20represented\ + \x20as\x20`1000/d`\x20or\x20`k1/d`\x20or\x20`k{page_views}/d`\x20(and\ + \x20a\x20metric\n\x20\x20\x20\x20value\x20of\x20`5.3`\x20would\x20mean\ + \x20\"5300\x20page\x20views\x20per\x20day\").\n\x20*\x20`%`\x20represent\ + s\x20dimensionless\x20value\x20of\x201/100,\x20and\x20annotates\x20value\ + s\x20giving\n\x20\x20\x20\x20a\x20percentage\x20(so\x20the\x20metric\x20\ + values\x20are\x20typically\x20in\x20the\x20range\x20of\x200..100,\n\x20\ + \x20\x20\x20and\x20a\x20metric\x20value\x20`3`\x20means\x20\"3\x20percen\ + t\").\n\x20*\x20`10^2.%`\x20indicates\x20a\x20metric\x20contains\x20a\ + \x20ratio,\x20typically\x20in\x20the\x20range\n\x20\x20\x20\x200..1,\x20\ + that\x20will\x20be\x20multiplied\x20by\x20100\x20and\x20displayed\x20as\ + \x20a\x20percentage\n\x20\x20\x20\x20(so\x20a\x20metric\x20value\x20`0.0\ + 3`\x20means\x20\"3\x20percent\").\n\n\r\n\x05\x04\0\x02\x05\x05\x12\x04\ + \xf9\x01\x02\x08\n\r\n\x05\x04\0\x02\x05\x01\x12\x04\xf9\x01\t\r\n\r\n\ + \x05\x04\0\x02\x05\x03\x12\x04\xf9\x01\x10\x11\nY\n\x04\x04\0\x02\x06\ + \x12\x04\xfc\x01\x02\x19\x1aK\x20A\x20detailed\x20description\x20of\x20t\ + he\x20metric,\x20which\x20can\x20be\x20used\x20in\x20documentation.\n\n\ + \r\n\x05\x04\0\x02\x06\x05\x12\x04\xfc\x01\x02\x08\n\r\n\x05\x04\0\x02\ + \x06\x01\x12\x04\xfc\x01\t\x14\n\r\n\x05\x04\0\x02\x06\x03\x12\x04\xfc\ + \x01\x17\x18\n\xa3\x02\n\x04\x04\0\x02\x07\x12\x04\x82\x02\x02\x1a\x1a\ + \x94\x02\x20A\x20concise\x20name\x20for\x20the\x20metric,\x20which\x20ca\ + n\x20be\x20displayed\x20in\x20user\x20interfaces.\n\x20Use\x20sentence\ + \x20case\x20without\x20an\x20ending\x20period,\x20for\x20example\x20\"Re\ + quest\x20count\".\n\x20This\x20field\x20is\x20optional\x20but\x20it\x20i\ + s\x20recommended\x20to\x20be\x20set\x20for\x20any\x20metrics\n\x20associ\ + ated\x20with\x20user-visible\x20concepts,\x20such\x20as\x20Quota.\n\n\r\ + \n\x05\x04\0\x02\x07\x05\x12\x04\x82\x02\x02\x08\n\r\n\x05\x04\0\x02\x07\ + \x01\x12\x04\x82\x02\t\x15\n\r\n\x05\x04\0\x02\x07\x03\x12\x04\x82\x02\ + \x18\x19\nR\n\x04\x04\0\x02\x08\x12\x04\x85\x02\x02)\x1aD\x20Optional.\ + \x20Metadata\x20which\x20can\x20be\x20used\x20to\x20guide\x20usage\x20of\ + \x20the\x20metric.\n\n\r\n\x05\x04\0\x02\x08\x06\x12\x04\x85\x02\x02\x1a\ + \n\r\n\x05\x04\0\x02\x08\x01\x12\x04\x85\x02\x1b#\n\r\n\x05\x04\0\x02\ + \x08\x03\x12\x04\x85\x02&(\nD\n\x04\x04\0\x02\t\x12\x04\x88\x02\x02\x20\ + \x1a6\x20Optional.\x20The\x20launch\x20stage\x20of\x20the\x20metric\x20d\ + efinition.\n\n\r\n\x05\x04\0\x02\t\x06\x12\x04\x88\x02\x02\r\n\r\n\x05\ + \x04\0\x02\t\x01\x12\x04\x88\x02\x0e\x1a\n\r\n\x05\x04\0\x02\t\x03\x12\ + \x04\x88\x02\x1d\x1f\n\xd5\x02\n\x04\x04\0\x02\n\x12\x04\x90\x02\x020\ + \x1a\xc6\x02\x20Read-only.\x20If\x20present,\x20then\x20a\x20[time\n\x20\ + series][google.monitoring.v3.TimeSeries],\x20which\x20is\x20identified\ + \x20partially\x20by\n\x20a\x20metric\x20type\x20and\x20a\n\x20[Monitored\ + ResourceDescriptor][google.api.MonitoredResourceDescriptor],\x20that\n\ + \x20is\x20associated\x20with\x20this\x20metric\x20type\x20can\x20only\ + \x20be\x20associated\x20with\x20one\x20of\x20the\n\x20monitored\x20resou\ + rce\x20types\x20listed\x20here.\n\n\r\n\x05\x04\0\x02\n\x04\x12\x04\x90\ + \x02\x02\n\n\r\n\x05\x04\0\x02\n\x05\x12\x04\x90\x02\x0b\x11\n\r\n\x05\ + \x04\0\x02\n\x01\x12\x04\x90\x02\x12*\n\r\n\x05\x04\0\x02\n\x03\x12\x04\ + \x90\x02-/\n\x92\x01\n\x02\x04\x01\x12\x06\x95\x02\0\x9e\x02\x01\x1a\x83\ + \x01\x20A\x20specific\x20metric,\x20identified\x20by\x20specifying\x20va\ + lues\x20for\x20all\x20of\x20the\n\x20labels\x20of\x20a\x20[`MetricDescri\ + ptor`][google.api.MetricDescriptor].\n\n\x0b\n\x03\x04\x01\x01\x12\x04\ + \x95\x02\x08\x0e\n\xa5\x01\n\x04\x04\x01\x02\0\x12\x04\x99\x02\x02\x12\ + \x1a\x96\x01\x20An\x20existing\x20metric\x20type,\x20see\n\x20[google.ap\ + i.MetricDescriptor][google.api.MetricDescriptor].\x20For\x20example,\n\ + \x20`custom.googleapis.com/invoice/paid/amount`.\n\n\r\n\x05\x04\x01\x02\ + \0\x05\x12\x04\x99\x02\x02\x08\n\r\n\x05\x04\x01\x02\0\x01\x12\x04\x99\ + \x02\t\r\n\r\n\x05\x04\x01\x02\0\x03\x12\x04\x99\x02\x10\x11\n\x92\x01\n\ + \x04\x04\x01\x02\x01\x12\x04\x9d\x02\x02!\x1a\x83\x01\x20The\x20set\x20o\ + f\x20label\x20values\x20that\x20uniquely\x20identify\x20this\x20metric.\ + \x20All\n\x20labels\x20listed\x20in\x20the\x20`MetricDescriptor`\x20must\ + \x20be\x20assigned\x20values.\n\n\r\n\x05\x04\x01\x02\x01\x06\x12\x04\ + \x9d\x02\x02\x15\n\r\n\x05\x04\x01\x02\x01\x01\x12\x04\x9d\x02\x16\x1c\n\ + \r\n\x05\x04\x01\x02\x01\x03\x12\x04\x9d\x02\x1f\x20b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file @@ -1147,9 +1314,10 @@ pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { messages.push(MetricDescriptor::generated_message_descriptor_data()); messages.push(Metric::generated_message_descriptor_data()); messages.push(metric_descriptor::MetricDescriptorMetadata::generated_message_descriptor_data()); - let mut enums = ::std::vec::Vec::with_capacity(2); + let mut enums = ::std::vec::Vec::with_capacity(3); enums.push(metric_descriptor::MetricKind::generated_enum_descriptor_data()); enums.push(metric_descriptor::ValueType::generated_enum_descriptor_data()); + enums.push(metric_descriptor::metric_descriptor_metadata::TimeSeriesResourceHierarchyLevel::generated_enum_descriptor_data()); ::protobuf::reflect::GeneratedFileDescriptor::new_generated( file_descriptor_proto(), deps, diff --git a/googleapis-raw/src/api/mod.rs b/googleapis-raw/src/api/mod.rs index f8a28ab..9642504 100644 --- a/googleapis-raw/src/api/mod.rs +++ b/googleapis-raw/src/api/mod.rs @@ -12,7 +12,9 @@ pub mod control; pub mod distribution; pub mod documentation; pub mod endpoint; +pub mod error_reason; pub mod field_behavior; +pub mod field_info; pub mod http; pub mod httpbody; pub mod label; @@ -22,11 +24,14 @@ pub mod logging; pub mod metric; pub mod monitored_resource; pub mod monitoring; +pub mod policy; pub mod quota; pub mod resource; +pub mod routing; pub mod service; pub mod source_info; pub mod system_parameter; pub mod usage; +pub mod visibility; pub mod servicecontrol; pub mod servicemanagement; diff --git a/googleapis-raw/src/api/monitored_resource.rs b/googleapis-raw/src/api/monitored_resource.rs index 39c13f7..ba244c5 100644 --- a/googleapis-raw/src/api/monitored_resource.rs +++ b/googleapis-raw/src/api/monitored_resource.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -25,15 +25,17 @@ /// of protobuf runtime. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; -/// An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a -/// type name and a set of labels. For example, the monitored resource -/// descriptor for Google Compute Engine VM instances has a type of +/// An object that describes the schema of a +/// [MonitoredResource][google.api.MonitoredResource] object using a type name +/// and a set of labels. For example, the monitored resource descriptor for +/// Google Compute Engine VM instances has a type of /// `"gce_instance"` and specifies the use of the labels `"instance_id"` and /// `"zone"` to identify particular VM instances. /// /// Different APIs can support different monitored resource types. APIs generally /// provide a `list` method that returns the monitored resource descriptors used /// by the API. +/// // @@protoc_insertion_point(message:google.api.MonitoredResourceDescriptor) #[derive(PartialEq,Clone,Default,Debug)] pub struct MonitoredResourceDescriptor { @@ -48,7 +50,10 @@ pub struct MonitoredResourceDescriptor { pub name: ::std::string::String, /// Required. The monitored resource type. For example, the type /// `"cloudsql_database"` represents databases in Google Cloud SQL. - /// The maximum length of this value is 256 characters. + /// For a list of types, see [Monitored resource + /// types](https://cloud.google.com/monitoring/api/resources) + /// and [Logging resource + /// types](https://cloud.google.com/logging/docs/api/v2/resource-list). // @@protoc_insertion_point(field:google.api.MonitoredResourceDescriptor.type) pub type_: ::std::string::String, /// Optional. A concise name for the monitored resource type that might be @@ -271,8 +276,12 @@ impl ::protobuf::reflect::ProtobufValue for MonitoredResourceDescriptor { pub struct MonitoredResource { // message fields /// Required. The monitored resource type. This field must match - /// the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For - /// example, the type of a Compute Engine VM instance is `gce_instance`. + /// the `type` field of a + /// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] + /// object. For example, the type of a Compute Engine VM instance is + /// `gce_instance`. Some descriptors include the service name in the type; for + /// example, the type of a Datastream stream is + /// `datastream.googleapis.com/Stream`. // @@protoc_insertion_point(field:google.api.MonitoredResource.type) pub type_: ::std::string::String, /// Required. Values for all of the labels listed in the associated monitored @@ -429,12 +438,12 @@ impl ::protobuf::reflect::ProtobufValue for MonitoredResource { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } -/// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object. -/// [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to -/// uniquely identify a monitored resource instance. There is some other useful -/// auxiliary metadata. Monitoring and Logging use an ingestion -/// pipeline to extract metadata for cloud resources of all types, and store -/// the metadata in this message. +/// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] +/// object. [MonitoredResource][google.api.MonitoredResource] objects contain the +/// minimum set of information to uniquely identify a monitored resource +/// instance. There is some other useful auxiliary metadata. Monitoring and +/// Logging use an ingestion pipeline to extract metadata for cloud resources of +/// all types, and store the metadata in this message. // @@protoc_insertion_point(message:google.api.MonitoredResourceMetadata) #[derive(PartialEq,Clone,Default,Debug)] pub struct MonitoredResourceMetadata { @@ -614,40 +623,40 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\ \x01(\tR\x05value:\x028\x01By\n\x0ecom.google.apiB\x16MonitoredResourceP\ rotoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monito\ - redres\xf8\x01\x01\xa2\x02\x04GAPIJ\xc3)\n\x06\x12\x04\x0f\0v\x01\n\xbe\ - \x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\ - \x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Versio\ - n\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\ - \x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20Y\ - ou\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\ - \x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\ - \x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20w\ - riting,\x20software\n\x20distributed\x20under\x20the\x20License\x20is\ - \x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WA\ - RRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\ - \x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ + redres\xf8\x01\x01\xa2\x02\x04GAPIJ\xab,\n\x07\x12\x05\x0e\0\x81\x01\x01\ + \n\xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20\ + Google\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20V\ + ersion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20\ + this\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ + \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ + less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ + \x20writing,\x20software\n\x20distributed\x20under\x20the\x20License\x20\ + is\x20distributed\x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20\ + WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ + s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\t\n\x02\x03\ - \0\x12\x03\x13\0\x20\n\t\n\x02\x03\x01\x12\x03\x14\0'\n\t\n\x02\x03\x02\ - \x12\x03\x15\0&\n\x08\n\x01\x08\x12\x03\x17\0\x1f\n\t\n\x02\x08\x1f\x12\ - \x03\x17\0\x1f\n\x08\n\x01\x08\x12\x03\x18\0Z\n\t\n\x02\x08\x0b\x12\x03\ - \x18\0Z\n\x08\n\x01\x08\x12\x03\x19\0\"\n\t\n\x02\x08\n\x12\x03\x19\0\"\ - \n\x08\n\x01\x08\x12\x03\x1a\07\n\t\n\x02\x08\x08\x12\x03\x1a\07\n\x08\n\ - \x01\x08\x12\x03\x1b\0'\n\t\n\x02\x08\x01\x12\x03\x1b\0'\n\x08\n\x01\x08\ - \x12\x03\x1c\0\"\n\t\n\x02\x08$\x12\x03\x1c\0\"\n\xa2\x04\n\x02\x04\0\ - \x12\x04'\0F\x01\x1a\x95\x04\x20An\x20object\x20that\x20describes\x20the\ - \x20schema\x20of\x20a\x20[MonitoredResource][google.api.MonitoredResourc\ - e]\x20object\x20using\x20a\n\x20type\x20name\x20and\x20a\x20set\x20of\ - \x20labels.\x20\x20For\x20example,\x20the\x20monitored\x20resource\n\x20\ - descriptor\x20for\x20Google\x20Compute\x20Engine\x20VM\x20instances\x20h\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\ + \x12\x03\x12\0\x20\n\t\n\x02\x03\x01\x12\x03\x13\0'\n\t\n\x02\x03\x02\ + \x12\x03\x14\0&\n\x08\n\x01\x08\x12\x03\x16\0\x1f\n\t\n\x02\x08\x1f\x12\ + \x03\x16\0\x1f\n\x08\n\x01\x08\x12\x03\x17\0Z\n\t\n\x02\x08\x0b\x12\x03\ + \x17\0Z\n\x08\n\x01\x08\x12\x03\x18\0\"\n\t\n\x02\x08\n\x12\x03\x18\0\"\ + \n\x08\n\x01\x08\x12\x03\x19\07\n\t\n\x02\x08\x08\x12\x03\x19\07\n\x08\n\ + \x01\x08\x12\x03\x1a\0'\n\t\n\x02\x08\x01\x12\x03\x1a\0'\n\x08\n\x01\x08\ + \x12\x03\x1b\0\"\n\t\n\x02\x08$\x12\x03\x1b\0\"\n\xa4\x04\n\x02\x04\0\ + \x12\x04(\0J\x01\x1a\x97\x04\x20An\x20object\x20that\x20describes\x20the\ + \x20schema\x20of\x20a\n\x20[MonitoredResource][google.api.MonitoredResou\ + rce]\x20object\x20using\x20a\x20type\x20name\n\x20and\x20a\x20set\x20of\ + \x20labels.\x20\x20For\x20example,\x20the\x20monitored\x20resource\x20de\ + scriptor\x20for\n\x20Google\x20Compute\x20Engine\x20VM\x20instances\x20h\ as\x20a\x20type\x20of\n\x20`\"gce_instance\"`\x20and\x20specifies\x20the\ \x20use\x20of\x20the\x20labels\x20`\"instance_id\"`\x20and\n\x20`\"zone\ \"`\x20to\x20identify\x20particular\x20VM\x20instances.\n\n\x20Different\ \x20APIs\x20can\x20support\x20different\x20monitored\x20resource\x20type\ s.\x20APIs\x20generally\n\x20provide\x20a\x20`list`\x20method\x20that\ \x20returns\x20the\x20monitored\x20resource\x20descriptors\x20used\n\x20\ - by\x20the\x20API.\n\n\n\n\x03\x04\0\x01\x12\x03'\x08#\n\xa1\x03\n\x04\ - \x04\0\x02\0\x12\x03.\x02\x12\x1a\x93\x03\x20Optional.\x20The\x20resourc\ + by\x20the\x20API.\n\n\n\n\n\x03\x04\0\x01\x12\x03(\x08#\n\xa1\x03\n\x04\ + \x04\0\x02\0\x12\x03/\x02\x12\x1a\x93\x03\x20Optional.\x20The\x20resourc\ e\x20name\x20of\x20the\x20monitored\x20resource\x20descriptor:\n\x20`\"p\ rojects/{project_id}/monitoredResourceDescriptors/{type}\"`\x20where\n\ \x20{type}\x20is\x20the\x20value\x20of\x20the\x20`type`\x20field\x20in\ @@ -656,96 +665,104 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20the\x20type.\x20\x20APIs\x20that\x20do\x20not\x20use\x20project\x20i\ nformation\x20can\x20use\x20the\n\x20resource\x20name\x20format\x20`\"mo\ nitoredResourceDescriptors/{type}\"`.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\ - \x03.\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03.\t\r\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03.\x10\x11\n\xc2\x01\n\x04\x04\0\x02\x01\x12\x033\x02\ - \x12\x1a\xb4\x01\x20Required.\x20The\x20monitored\x20resource\x20type.\ + \x03/\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03/\t\r\n\x0c\n\x05\x04\0\ + \x02\0\x03\x12\x03/\x10\x11\n\xd4\x02\n\x04\x04\0\x02\x01\x12\x037\x02\ + \x12\x1a\xc6\x02\x20Required.\x20The\x20monitored\x20resource\x20type.\ \x20For\x20example,\x20the\x20type\n\x20`\"cloudsql_database\"`\x20repre\ - sents\x20databases\x20in\x20Google\x20Cloud\x20SQL.\n\x20The\x20maximum\ - \x20length\x20of\x20this\x20value\x20is\x20256\x20characters.\n\n\x0c\n\ - \x05\x04\0\x02\x01\x05\x12\x033\x02\x08\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x033\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x033\x10\x11\n\xf5\x01\n\ - \x04\x04\0\x02\x02\x12\x039\x02\x1a\x1a\xe7\x01\x20Optional.\x20A\x20con\ - cise\x20name\x20for\x20the\x20monitored\x20resource\x20type\x20that\x20m\ - ight\x20be\n\x20displayed\x20in\x20user\x20interfaces.\x20It\x20should\ - \x20be\x20a\x20Title\x20Cased\x20Noun\x20Phrase,\n\x20without\x20any\x20\ - article\x20or\x20other\x20determiners.\x20For\x20example,\n\x20`\"Google\ - \x20Cloud\x20SQL\x20Database\"`.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\ - 9\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x039\t\x15\n\x0c\n\x05\x04\0\ - \x02\x02\x03\x12\x039\x18\x19\nt\n\x04\x04\0\x02\x03\x12\x03=\x02\x19\ - \x1ag\x20Optional.\x20A\x20detailed\x20description\x20of\x20the\x20monit\ - ored\x20resource\x20type\x20that\x20might\n\x20be\x20used\x20in\x20docum\ - entation.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03=\x02\x08\n\x0c\n\x05\ - \x04\0\x02\x03\x01\x12\x03=\t\x14\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03=\ - \x17\x18\n\xe1\x01\n\x04\x04\0\x02\x04\x12\x03B\x02&\x1a\xd3\x01\x20Requ\ - ired.\x20A\x20set\x20of\x20labels\x20used\x20to\x20describe\x20instances\ - \x20of\x20this\x20monitored\n\x20resource\x20type.\x20For\x20example,\ - \x20an\x20individual\x20Google\x20Cloud\x20SQL\x20database\x20is\n\x20id\ - entified\x20by\x20values\x20for\x20the\x20labels\x20`\"database_id\"`\ - \x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\0\x02\x04\x04\x12\x03B\x02\n\n\ - \x0c\n\x05\x04\0\x02\x04\x06\x12\x03B\x0b\x1a\n\x0c\n\x05\x04\0\x02\x04\ - \x01\x12\x03B\x1b!\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03B$%\nO\n\x04\x04\ - \0\x02\x05\x12\x03E\x02\x1f\x1aB\x20Optional.\x20The\x20launch\x20stage\ - \x20of\x20the\x20monitored\x20resource\x20definition.\n\n\x0c\n\x05\x04\ - \0\x02\x05\x06\x12\x03E\x02\r\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03E\x0e\ - \x1a\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03E\x1d\x1e\n\xcb\x06\n\x02\x04\ - \x01\x12\x04U\0_\x01\x1a\xbe\x06\x20An\x20object\x20representing\x20a\ - \x20resource\x20that\x20can\x20be\x20used\x20for\x20monitoring,\x20loggi\ - ng,\n\x20billing,\x20or\x20other\x20purposes.\x20Examples\x20include\x20\ - virtual\x20machine\x20instances,\n\x20databases,\x20and\x20storage\x20de\ - vices\x20such\x20as\x20disks.\x20The\x20`type`\x20field\x20identifies\ - \x20a\n\x20[MonitoredResourceDescriptor][google.api.MonitoredResourceDes\ - criptor]\x20object\x20that\x20describes\x20the\x20resource's\n\x20schema\ - .\x20Information\x20in\x20the\x20`labels`\x20field\x20identifies\x20the\ - \x20actual\x20resource\x20and\n\x20its\x20attributes\x20according\x20to\ - \x20the\x20schema.\x20For\x20example,\x20a\x20particular\x20Compute\n\ - \x20Engine\x20VM\x20instance\x20could\x20be\x20represented\x20by\x20the\ - \x20following\x20object,\x20because\x20the\n\x20[MonitoredResourceDescri\ - ptor][google.api.MonitoredResourceDescriptor]\x20for\x20`\"gce_instance\ - \"`\x20has\x20labels\n\x20`\"instance_id\"`\x20and\x20`\"zone\"`:\n\n\ - \x20\x20\x20\x20\x20{\x20\"type\":\x20\"gce_instance\",\n\x20\x20\x20\ - \x20\x20\x20\x20\"labels\":\x20{\x20\"instance_id\":\x20\"12345678901234\ - \",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20\x20\"zone\":\x20\"us-central1-a\"\x20}}\n\n\n\n\x03\x04\x01\x01\ - \x12\x03U\x08\x19\n\xfb\x01\n\x04\x04\x01\x02\0\x12\x03Y\x02\x12\x1a\xed\ - \x01\x20Required.\x20The\x20monitored\x20resource\x20type.\x20This\x20fi\ - eld\x20must\x20match\n\x20the\x20`type`\x20field\x20of\x20a\x20[Monitore\ - dResourceDescriptor][google.api.MonitoredResourceDescriptor]\x20object.\ - \x20For\n\x20example,\x20the\x20type\x20of\x20a\x20Compute\x20Engine\x20\ - VM\x20instance\x20is\x20`gce_instance`.\n\n\x0c\n\x05\x04\x01\x02\0\x05\ - \x12\x03Y\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03Y\t\r\n\x0c\n\x05\ - \x04\x01\x02\0\x03\x12\x03Y\x10\x11\n\xd7\x01\n\x04\x04\x01\x02\x01\x12\ - \x03^\x02!\x1a\xc9\x01\x20Required.\x20Values\x20for\x20all\x20of\x20the\ - \x20labels\x20listed\x20in\x20the\x20associated\x20monitored\n\x20resour\ - ce\x20descriptor.\x20For\x20example,\x20Compute\x20Engine\x20VM\x20insta\ - nces\x20use\x20the\n\x20labels\x20`\"project_id\"`,\x20`\"instance_id\"`\ - ,\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03^\x02\ - \x15\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03^\x16\x1c\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03^\x1f\x20\n\xb9\x03\n\x02\x04\x02\x12\x04g\0v\ - \x01\x1a\xac\x03\x20Auxiliary\x20metadata\x20for\x20a\x20[MonitoredResou\ - rce][google.api.MonitoredResource]\x20object.\n\x20[MonitoredResource][g\ - oogle.api.MonitoredResource]\x20objects\x20contain\x20the\x20minimum\x20\ - set\x20of\x20information\x20to\n\x20uniquely\x20identify\x20a\x20monitor\ - ed\x20resource\x20instance.\x20There\x20is\x20some\x20other\x20useful\n\ - \x20auxiliary\x20metadata.\x20Monitoring\x20and\x20Logging\x20use\x20an\ - \x20ingestion\n\x20pipeline\x20to\x20extract\x20metadata\x20for\x20cloud\ - \x20resources\x20of\x20all\x20types,\x20and\x20store\n\x20the\x20metadat\ - a\x20in\x20this\x20message.\n\n\n\n\x03\x04\x02\x01\x12\x03g\x08!\n\xa1\ - \x03\n\x04\x04\x02\x02\0\x12\x03r\x02+\x1a\x93\x03\x20Output\x20only.\ - \x20Values\x20for\x20predefined\x20system\x20metadata\x20labels.\n\x20Sy\ - stem\x20labels\x20are\x20a\x20kind\x20of\x20metadata\x20extracted\x20by\ - \x20Google,\x20including\n\x20\"machine_image\",\x20\"vpc\",\x20\"subnet\ - _id\",\n\x20\"security_group\",\x20\"name\",\x20etc.\n\x20System\x20labe\ - l\x20values\x20can\x20be\x20only\x20strings,\x20Boolean\x20values,\x20or\ - \x20a\x20list\x20of\n\x20strings.\x20For\x20example:\n\n\x20\x20\x20\x20\ - \x20{\x20\"name\":\x20\"my-test-instance\",\n\x20\x20\x20\x20\x20\x20\ - \x20\"security_group\":\x20[\"a\",\x20\"b\",\x20\"c\"],\n\x20\x20\x20\ - \x20\x20\x20\x20\"spot_instance\":\x20false\x20}\n\n\x0c\n\x05\x04\x02\ - \x02\0\x06\x12\x03r\x02\x18\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03r\x19&\ - \n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03r)*\nB\n\x04\x04\x02\x02\x01\x12\ - \x03u\x02&\x1a5\x20Output\x20only.\x20A\x20map\x20of\x20user-defined\x20\ - metadata\x20labels.\n\n\x0c\n\x05\x04\x02\x02\x01\x06\x12\x03u\x02\x15\n\ - \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03u\x16!\n\x0c\n\x05\x04\x02\x02\x01\ - \x03\x12\x03u$%b\x06proto3\ + sents\x20databases\x20in\x20Google\x20Cloud\x20SQL.\n\x20\x20For\x20a\ + \x20list\x20of\x20types,\x20see\x20[Monitored\x20resource\n\x20\x20types\ + ](https://cloud.google.com/monitoring/api/resources)\n\x20and\x20[Loggin\ + g\x20resource\n\x20types](https://cloud.google.com/logging/docs/api/v2/r\ + esource-list).\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x037\x02\x08\n\x0c\n\ + \x05\x04\0\x02\x01\x01\x12\x037\t\r\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ + \x037\x10\x11\n\xf5\x01\n\x04\x04\0\x02\x02\x12\x03=\x02\x1a\x1a\xe7\x01\ + \x20Optional.\x20A\x20concise\x20name\x20for\x20the\x20monitored\x20reso\ + urce\x20type\x20that\x20might\x20be\n\x20displayed\x20in\x20user\x20inte\ + rfaces.\x20It\x20should\x20be\x20a\x20Title\x20Cased\x20Noun\x20Phrase,\ + \n\x20without\x20any\x20article\x20or\x20other\x20determiners.\x20For\ + \x20example,\n\x20`\"Google\x20Cloud\x20SQL\x20Database\"`.\n\n\x0c\n\ + \x05\x04\0\x02\x02\x05\x12\x03=\x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\ + \x12\x03=\t\x15\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03=\x18\x19\nt\n\x04\ + \x04\0\x02\x03\x12\x03A\x02\x19\x1ag\x20Optional.\x20A\x20detailed\x20de\ + scription\x20of\x20the\x20monitored\x20resource\x20type\x20that\x20might\ + \n\x20be\x20used\x20in\x20documentation.\n\n\x0c\n\x05\x04\0\x02\x03\x05\ + \x12\x03A\x02\x08\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03A\t\x14\n\x0c\n\ + \x05\x04\0\x02\x03\x03\x12\x03A\x17\x18\n\xe1\x01\n\x04\x04\0\x02\x04\ + \x12\x03F\x02&\x1a\xd3\x01\x20Required.\x20A\x20set\x20of\x20labels\x20u\ + sed\x20to\x20describe\x20instances\x20of\x20this\x20monitored\n\x20resou\ + rce\x20type.\x20For\x20example,\x20an\x20individual\x20Google\x20Cloud\ + \x20SQL\x20database\x20is\n\x20identified\x20by\x20values\x20for\x20the\ + \x20labels\x20`\"database_id\"`\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\ + \0\x02\x04\x04\x12\x03F\x02\n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03F\x0b\ + \x1a\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03F\x1b!\n\x0c\n\x05\x04\0\x02\ + \x04\x03\x12\x03F$%\nO\n\x04\x04\0\x02\x05\x12\x03I\x02\x1f\x1aB\x20Opti\ + onal.\x20The\x20launch\x20stage\x20of\x20the\x20monitored\x20resource\ + \x20definition.\n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03I\x02\r\n\x0c\n\ + \x05\x04\0\x02\x05\x01\x12\x03I\x0e\x1a\n\x0c\n\x05\x04\0\x02\x05\x03\ + \x12\x03I\x1d\x1e\n\x8c\x07\n\x02\x04\x01\x12\x04\\\0j\x01\x1a\xff\x06\ + \x20An\x20object\x20representing\x20a\x20resource\x20that\x20can\x20be\ + \x20used\x20for\x20monitoring,\x20logging,\n\x20billing,\x20or\x20other\ + \x20purposes.\x20Examples\x20include\x20virtual\x20machine\x20instances,\ + \n\x20databases,\x20and\x20storage\x20devices\x20such\x20as\x20disks.\ + \x20The\x20`type`\x20field\x20identifies\x20a\n\x20[MonitoredResourceDes\ + criptor][google.api.MonitoredResourceDescriptor]\x20object\n\x20that\x20\ + describes\x20the\x20resource's\x20schema.\x20Information\x20in\x20the\ + \x20`labels`\x20field\n\x20identifies\x20the\x20actual\x20resource\x20an\ + d\x20its\x20attributes\x20according\x20to\x20the\x20schema.\n\x20For\x20\ + example,\x20a\x20particular\x20Compute\x20Engine\x20VM\x20instance\x20co\ + uld\x20be\x20represented\x20by\n\x20the\x20following\x20object,\x20becau\ + se\x20the\n\x20[MonitoredResourceDescriptor][google.api.MonitoredResourc\ + eDescriptor]\x20for\n\x20`\"gce_instance\"`\x20has\x20labels\n\x20`\"pro\ + ject_id\"`,\x20`\"instance_id\"`\x20and\x20`\"zone\"`:\n\n\x20\x20\x20\ + \x20\x20{\x20\"type\":\x20\"gce_instance\",\n\x20\x20\x20\x20\x20\x20\ + \x20\"labels\":\x20{\x20\"project_id\":\x20\"my-project\",\n\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"instan\ + ce_id\":\x20\"12345678901234\",\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\"zone\":\x20\"us-central1-a\"\ + \x20}}\n\n\n\n\x03\x04\x01\x01\x12\x03\\\x08\x19\n\x8a\x03\n\x04\x04\x01\ + \x02\0\x12\x03d\x02\x12\x1a\xfc\x02\x20Required.\x20The\x20monitored\x20\ + resource\x20type.\x20This\x20field\x20must\x20match\n\x20the\x20`type`\ + \x20field\x20of\x20a\n\x20[MonitoredResourceDescriptor][google.api.Monit\ + oredResourceDescriptor]\n\x20object.\x20For\x20example,\x20the\x20type\ + \x20of\x20a\x20Compute\x20Engine\x20VM\x20instance\x20is\n\x20`gce_insta\ + nce`.\x20Some\x20descriptors\x20include\x20the\x20service\x20name\x20in\ + \x20the\x20type;\x20for\n\x20example,\x20the\x20type\x20of\x20a\x20Datas\ + tream\x20stream\x20is\n\x20`datastream.googleapis.com/Stream`.\n\n\x0c\n\ + \x05\x04\x01\x02\0\x05\x12\x03d\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\ + \x12\x03d\t\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03d\x10\x11\n\xd7\x01\n\ + \x04\x04\x01\x02\x01\x12\x03i\x02!\x1a\xc9\x01\x20Required.\x20Values\ + \x20for\x20all\x20of\x20the\x20labels\x20listed\x20in\x20the\x20associat\ + ed\x20monitored\n\x20resource\x20descriptor.\x20For\x20example,\x20Compu\ + te\x20Engine\x20VM\x20instances\x20use\x20the\n\x20labels\x20`\"project_\ + id\"`,\x20`\"instance_id\"`,\x20and\x20`\"zone\"`.\n\n\x0c\n\x05\x04\x01\ + \x02\x01\x06\x12\x03i\x02\x15\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03i\ + \x16\x1c\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03i\x1f\x20\n\xba\x03\n\ + \x02\x04\x02\x12\x05r\0\x81\x01\x01\x1a\xac\x03\x20Auxiliary\x20metadata\ + \x20for\x20a\x20[MonitoredResource][google.api.MonitoredResource]\n\x20o\ + bject.\x20[MonitoredResource][google.api.MonitoredResource]\x20objects\ + \x20contain\x20the\n\x20minimum\x20set\x20of\x20information\x20to\x20uni\ + quely\x20identify\x20a\x20monitored\x20resource\n\x20instance.\x20There\ + \x20is\x20some\x20other\x20useful\x20auxiliary\x20metadata.\x20Monitorin\ + g\x20and\n\x20Logging\x20use\x20an\x20ingestion\x20pipeline\x20to\x20ext\ + ract\x20metadata\x20for\x20cloud\x20resources\x20of\n\x20all\x20types,\ + \x20and\x20store\x20the\x20metadata\x20in\x20this\x20message.\n\n\n\n\ + \x03\x04\x02\x01\x12\x03r\x08!\n\xa1\x03\n\x04\x04\x02\x02\0\x12\x03}\ + \x02+\x1a\x93\x03\x20Output\x20only.\x20Values\x20for\x20predefined\x20s\ + ystem\x20metadata\x20labels.\n\x20System\x20labels\x20are\x20a\x20kind\ + \x20of\x20metadata\x20extracted\x20by\x20Google,\x20including\n\x20\"mac\ + hine_image\",\x20\"vpc\",\x20\"subnet_id\",\n\x20\"security_group\",\x20\ + \"name\",\x20etc.\n\x20System\x20label\x20values\x20can\x20be\x20only\ + \x20strings,\x20Boolean\x20values,\x20or\x20a\x20list\x20of\n\x20strings\ + .\x20For\x20example:\n\n\x20\x20\x20\x20\x20{\x20\"name\":\x20\"my-test-\ + instance\",\n\x20\x20\x20\x20\x20\x20\x20\"security_group\":\x20[\"a\",\ + \x20\"b\",\x20\"c\"],\n\x20\x20\x20\x20\x20\x20\x20\"spot_instance\":\ + \x20false\x20}\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03}\x02\x18\n\x0c\n\ + \x05\x04\x02\x02\0\x01\x12\x03}\x19&\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ + \x03})*\nC\n\x04\x04\x02\x02\x01\x12\x04\x80\x01\x02&\x1a5\x20Output\x20\ + only.\x20A\x20map\x20of\x20user-defined\x20metadata\x20labels.\n\n\r\n\ + \x05\x04\x02\x02\x01\x06\x12\x04\x80\x01\x02\x15\n\r\n\x05\x04\x02\x02\ + \x01\x01\x12\x04\x80\x01\x16!\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\x80\ + \x01$%b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/monitoring.rs b/googleapis-raw/src/api/monitoring.rs index ecd8c78..63ee8b4 100644 --- a/googleapis-raw/src/api/monitoring.rs +++ b/googleapis-raw/src/api/monitoring.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -30,7 +30,7 @@ const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; pub struct Monitoring { // message fields /// Monitoring configurations for sending metrics to the producer project. - /// There can be multiple producer destinations. A monitored resouce type may + /// There can be multiple producer destinations. A monitored resource type may /// appear in multiple monitoring destinations if different aggregations are /// needed for different sets of metrics associated with that monitored /// resource type. A monitored resource and metric pair may only be used once @@ -38,7 +38,7 @@ pub struct Monitoring { // @@protoc_insertion_point(field:google.api.Monitoring.producer_destinations) pub producer_destinations: ::std::vec::Vec, /// Monitoring configurations for sending metrics to the consumer project. - /// There can be multiple consumer destinations. A monitored resouce type may + /// There can be multiple consumer destinations. A monitored resource type may /// appear in multiple monitoring destinations if different aggregations are /// needed for different sets of metrics associated with that monitored /// resource type. A monitored resource and metric pair may only be used once @@ -188,11 +188,13 @@ pub mod monitoring { pub struct MonitoringDestination { // message fields /// The monitored resource type. The type must be defined in - /// [Service.monitored_resources][google.api.Service.monitored_resources] section. + /// [Service.monitored_resources][google.api.Service.monitored_resources] + /// section. // @@protoc_insertion_point(field:google.api.Monitoring.MonitoringDestination.monitored_resource) pub monitored_resource: ::std::string::String, /// Types of the metrics to report to this monitoring destination. - /// Each type must be defined in [Service.metrics][google.api.Service.metrics] section. + /// Each type must be defined in + /// [Service.metrics][google.api.Service.metrics] section. // @@protoc_insertion_point(field:google.api.Monitoring.MonitoringDestination.metrics) pub metrics: ::std::vec::Vec<::std::string::String>, // special fields @@ -337,11 +339,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x12monitored_resource\x18\x01\x20\x01(\tR\x11monitoredResource\x12\x18\ \n\x07metrics\x18\x02\x20\x03(\tR\x07metricsBq\n\x0ecom.google.apiB\x0fM\ onitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceco\ - nfig;serviceconfig\xa2\x02\x04GAPIJ\x8a\x1c\n\x06\x12\x04\x0f\0Z\x01\n\ - \xbe\x04\n\x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Go\ - ogle\x20LLC.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ve\ - rsion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20t\ - his\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ + nfig;serviceconfig\xa2\x02\x04GAPIJ\xd3\x20\n\x06\x12\x04\x0e\0j\x01\n\ + \xbc\x04\n\x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Go\ + ogle\x20LLC\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Ver\ + sion\x202.0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20th\ + is\x20file\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\ \x20You\x20may\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\ \x20\x20\x20\x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Un\ less\x20required\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\ @@ -350,83 +352,98 @@ static file_descriptor_proto_data: &'static [u8] = b"\ WARRANTIES\x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20expres\ s\x20or\x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\ \x20language\x20governing\x20permissions\x20and\n\x20limitations\x20unde\ - r\x20the\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\ - \x08\x12\x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\ - \x12\x03\x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\ - \x15\00\n\t\n\x02\x08\x08\x12\x03\x15\00\n\x08\n\x01\x08\x12\x03\x16\0'\ - \n\t\n\x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\ - \x02\x08$\x12\x03\x17\0\"\n\xd7\n\n\x02\x04\0\x12\x04>\0Z\x01\x1a\xca\n\ + r\x20the\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\ + \x12\x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\ + \x03\x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\ + \00\n\t\n\x02\x08\x08\x12\x03\x14\00\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\ + \n\x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\n\x9e\x0f\n\x02\x04\0\x12\x04L\0j\x01\x1a\x91\x0f\ \x20Monitoring\x20configuration\x20of\x20the\x20service.\n\n\x20The\x20e\ xample\x20below\x20shows\x20how\x20to\x20configure\x20monitored\x20resou\ rces\x20and\x20metrics\n\x20for\x20monitoring.\x20In\x20the\x20example,\ \x20a\x20monitored\x20resource\x20and\x20two\x20metrics\x20are\n\x20defi\ ned.\x20The\x20`library.googleapis.com/book/returned_count`\x20metric\ \x20is\x20sent\n\x20to\x20both\x20producer\x20and\x20consumer\x20project\ - s,\x20whereas\x20the\n\x20`library.googleapis.com/book/overdue_count`\ - \x20metric\x20is\x20only\x20sent\x20to\x20the\n\x20consumer\x20project.\ - \n\n\x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20t\ - ype:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20label\ - s:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20/city\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20description:\x20The\x20city\x20where\x20the\x20library\ - \x20branch\x20is\x20located\x20in.\n\x20\x20\x20\x20\x20\x20\x20-\x20key\ - :\x20/name\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20The\x20n\ - ame\x20of\x20the\x20branch.\n\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\ - \x20\x20-\x20name:\x20library.googleapis.com/book/returned_count\n\x20\ - \x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\ - \x20value_type:\x20INT64\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\ - \x20\x20\x20\x20\x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20-\x20\ - name:\x20library.googleapis.com/book/overdue_count\n\x20\x20\x20\x20\x20\ - \x20\x20metric_kind:\x20GAUGE\n\x20\x20\x20\x20\x20\x20\x20value_type:\ - \x20INT64\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\x20\x20\x20\x20\ - \x20-\x20key:\x20/customer_id\n\x20\x20\x20\x20\x20monitoring:\n\x20\x20\ - \x20\x20\x20\x20\x20producer_destinations:\n\x20\x20\x20\x20\x20\x20\x20\ - -\x20monitored_resource:\x20library.googleapis.com/branch\n\x20\x20\x20\ - \x20\x20\x20\x20\x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\ - \x20library.googleapis.com/book/returned_count\n\x20\x20\x20\x20\x20\x20\ - \x20consumer_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_r\ - esource:\x20library.googleapis.com/branch\n\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googl\ - eapis.com/book/returned_count\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20\ - library.googleapis.com/book/overdue_count\n\n\n\n\x03\x04\0\x01\x12\x03>\ - \x08\x12\ns\n\x04\x04\0\x03\0\x12\x04A\x02I\x03\x1ae\x20Configuration\ - \x20of\x20a\x20specific\x20monitoring\x20destination\x20(the\x20producer\ - \x20project\n\x20or\x20the\x20consumer\x20project).\n\n\x0c\n\x05\x04\0\ - \x03\0\x01\x12\x03A\n\x1f\n\x9a\x01\n\x06\x04\0\x03\0\x02\0\x12\x03D\x04\ - \"\x1a\x8a\x01\x20The\x20monitored\x20resource\x20type.\x20The\x20type\ - \x20must\x20be\x20defined\x20in\n\x20[Service.monitored_resources][googl\ - e.api.Service.monitored_resources]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\ - \x02\0\x05\x12\x03D\x04\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x01\x12\x03D\x0b\ - \x1d\n\x0e\n\x07\x04\0\x03\0\x02\0\x03\x12\x03D\x20!\n\xa5\x01\n\x06\x04\ - \0\x03\0\x02\x01\x12\x03H\x04\x20\x1a\x95\x01\x20Types\x20of\x20the\x20m\ - etrics\x20to\x20report\x20to\x20this\x20monitoring\x20destination.\n\x20\ - Each\x20type\x20must\x20be\x20defined\x20in\x20[Service.metrics][google.\ - api.Service.metrics]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\ - \x12\x03H\x04\x0c\n\x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03H\r\x13\n\ - \x0e\n\x07\x04\0\x03\0\x02\x01\x01\x12\x03H\x14\x1b\n\x0e\n\x07\x04\0\ - \x03\0\x02\x01\x03\x12\x03H\x1e\x1f\n\x9d\x03\n\x04\x04\0\x02\0\x12\x03Q\ - \x02;\x1a\x8f\x03\x20Monitoring\x20configurations\x20for\x20sending\x20m\ - etrics\x20to\x20the\x20producer\x20project.\n\x20There\x20can\x20be\x20m\ - ultiple\x20producer\x20destinations.\x20A\x20monitored\x20resouce\x20typ\ - e\x20may\n\x20appear\x20in\x20multiple\x20monitoring\x20destinations\x20\ - if\x20different\x20aggregations\x20are\n\x20needed\x20for\x20different\ + s,\x20whereas\x20the\n\x20`library.googleapis.com/book/num_overdue`\x20m\ + etric\x20is\x20only\x20sent\x20to\x20the\n\x20consumer\x20project.\n\n\ + \x20\x20\x20\x20\x20monitored_resources:\n\x20\x20\x20\x20\x20-\x20type:\ + \x20library.googleapis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20display_n\ + ame:\x20\"Library\x20Branch\"\n\x20\x20\x20\x20\x20\x20\x20description:\ + \x20\"A\x20branch\x20of\x20a\x20library.\"\n\x20\x20\x20\x20\x20\x20\x20\ + launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\x20labels:\n\x20\x20\x20\ + \x20\x20\x20\x20-\x20key:\x20resource_container\n\x20\x20\x20\x20\x20\ + \x20\x20\x20\x20description:\x20\"The\x20Cloud\x20container\x20(ie.\x20p\ + roject\x20id)\x20for\x20the\x20Branch.\"\n\x20\x20\x20\x20\x20\x20\x20-\ + \x20key:\x20location\n\x20\x20\x20\x20\x20\x20\x20\x20\x20description:\ + \x20\"The\x20location\x20of\x20the\x20library\x20branch.\"\n\x20\x20\x20\ + \x20\x20\x20\x20-\x20key:\x20branch_id\n\x20\x20\x20\x20\x20\x20\x20\x20\ + \x20description:\x20\"The\x20id\x20of\x20the\x20branch.\"\n\x20\x20\x20\ + \x20\x20metrics:\n\x20\x20\x20\x20\x20-\x20name:\x20library.googleapis.c\ + om/book/returned_count\n\x20\x20\x20\x20\x20\x20\x20display_name:\x20\"B\ + ooks\x20Returned\"\n\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\ + \x20count\x20of\x20books\x20that\x20have\x20been\x20returned.\"\n\x20\ + \x20\x20\x20\x20\x20\x20launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\ + \x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20value_type:\x20IN\ + T64\n\x20\x20\x20\x20\x20\x20\x20unit:\x20\"1\"\n\x20\x20\x20\x20\x20\ + \x20\x20labels:\n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20customer_id\n\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\x20id\x20of\ + \x20the\x20customer.\"\n\x20\x20\x20\x20\x20-\x20name:\x20library.google\ + apis.com/book/num_overdue\n\x20\x20\x20\x20\x20\x20\x20display_name:\x20\ + \"Books\x20Overdue\"\n\x20\x20\x20\x20\x20\x20\x20description:\x20\"The\ + \x20current\x20number\x20of\x20overdue\x20books.\"\n\x20\x20\x20\x20\x20\ + \x20\x20launch_stage:\x20GA\n\x20\x20\x20\x20\x20\x20\x20metric_kind:\ + \x20GAUGE\n\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\x20\x20\ + \x20\x20\x20\x20\x20unit:\x20\"1\"\n\x20\x20\x20\x20\x20\x20\x20labels:\ + \n\x20\x20\x20\x20\x20\x20\x20-\x20key:\x20customer_id\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20description:\x20\"The\x20id\x20of\x20the\x20customer\ + .\"\n\x20\x20\x20\x20\x20monitoring:\n\x20\x20\x20\x20\x20\x20\x20produc\ + er_destinations:\n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\ + \x20library.googleapis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20m\ + etrics:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com\ + /book/returned_count\n\x20\x20\x20\x20\x20\x20\x20consumer_destinations:\ + \n\x20\x20\x20\x20\x20\x20\x20-\x20monitored_resource:\x20library.google\ + apis.com/Branch\n\x20\x20\x20\x20\x20\x20\x20\x20\x20metrics:\n\x20\x20\ + \x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com/book/returned_co\ + unt\n\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20library.googleapis.com/boo\ + k/num_overdue\n\n\n\n\x03\x04\0\x01\x12\x03L\x08\x12\ns\n\x04\x04\0\x03\ + \0\x12\x04O\x02Y\x03\x1ae\x20Configuration\x20of\x20a\x20specific\x20mon\ + itoring\x20destination\x20(the\x20producer\x20project\n\x20or\x20the\x20\ + consumer\x20project).\n\n\x0c\n\x05\x04\0\x03\0\x01\x12\x03O\n\x1f\n\x9b\ + \x01\n\x06\x04\0\x03\0\x02\0\x12\x03S\x04\"\x1a\x8b\x01\x20The\x20monito\ + red\x20resource\x20type.\x20The\x20type\x20must\x20be\x20defined\x20in\n\ + \x20[Service.monitored_resources][google.api.Service.monitored_resources\ + ]\n\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\0\x05\x12\x03S\x04\n\n\x0e\ + \n\x07\x04\0\x03\0\x02\0\x01\x12\x03S\x0b\x1d\n\x0e\n\x07\x04\0\x03\0\ + \x02\0\x03\x12\x03S\x20!\n\xa6\x01\n\x06\x04\0\x03\0\x02\x01\x12\x03X\ + \x04\x20\x1a\x96\x01\x20Types\x20of\x20the\x20metrics\x20to\x20report\ + \x20to\x20this\x20monitoring\x20destination.\n\x20Each\x20type\x20must\ + \x20be\x20defined\x20in\n\x20[Service.metrics][google.api.Service.metric\ + s]\x20section.\n\n\x0e\n\x07\x04\0\x03\0\x02\x01\x04\x12\x03X\x04\x0c\n\ + \x0e\n\x07\x04\0\x03\0\x02\x01\x05\x12\x03X\r\x13\n\x0e\n\x07\x04\0\x03\ + \0\x02\x01\x01\x12\x03X\x14\x1b\n\x0e\n\x07\x04\0\x03\0\x02\x01\x03\x12\ + \x03X\x1e\x1f\n\x9e\x03\n\x04\x04\0\x02\0\x12\x03a\x02;\x1a\x90\x03\x20M\ + onitoring\x20configurations\x20for\x20sending\x20metrics\x20to\x20the\ + \x20producer\x20project.\n\x20There\x20can\x20be\x20multiple\x20producer\ + \x20destinations.\x20A\x20monitored\x20resource\x20type\x20may\n\x20appe\ + ar\x20in\x20multiple\x20monitoring\x20destinations\x20if\x20different\ + \x20aggregations\x20are\n\x20needed\x20for\x20different\x20sets\x20of\ + \x20metrics\x20associated\x20with\x20that\x20monitored\n\x20resource\x20\ + type.\x20A\x20monitored\x20resource\x20and\x20metric\x20pair\x20may\x20o\ + nly\x20be\x20used\x20once\n\x20in\x20the\x20Monitoring\x20configuration.\ + \n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03a\x02\n\n\x0c\n\x05\x04\0\x02\0\ + \x06\x12\x03a\x0b\x20\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03a!6\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03a9:\n\x9e\x03\n\x04\x04\0\x02\x01\x12\x03i\x02;\ + \x1a\x90\x03\x20Monitoring\x20configurations\x20for\x20sending\x20metric\ + s\x20to\x20the\x20consumer\x20project.\n\x20There\x20can\x20be\x20multip\ + le\x20consumer\x20destinations.\x20A\x20monitored\x20resource\x20type\ + \x20may\n\x20appear\x20in\x20multiple\x20monitoring\x20destinations\x20i\ + f\x20different\x20aggregations\x20are\n\x20needed\x20for\x20different\ \x20sets\x20of\x20metrics\x20associated\x20with\x20that\x20monitored\n\ \x20resource\x20type.\x20A\x20monitored\x20resource\x20and\x20metric\x20\ pair\x20may\x20only\x20be\x20used\x20once\n\x20in\x20the\x20Monitoring\ - \x20configuration.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03Q\x02\n\n\x0c\n\ - \x05\x04\0\x02\0\x06\x12\x03Q\x0b\x20\n\x0c\n\x05\x04\0\x02\0\x01\x12\ - \x03Q!6\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03Q9:\n\x9d\x03\n\x04\x04\0\x02\ - \x01\x12\x03Y\x02;\x1a\x8f\x03\x20Monitoring\x20configurations\x20for\ - \x20sending\x20metrics\x20to\x20the\x20consumer\x20project.\n\x20There\ - \x20can\x20be\x20multiple\x20consumer\x20destinations.\x20A\x20monitored\ - \x20resouce\x20type\x20may\n\x20appear\x20in\x20multiple\x20monitoring\ - \x20destinations\x20if\x20different\x20aggregations\x20are\n\x20needed\ - \x20for\x20different\x20sets\x20of\x20metrics\x20associated\x20with\x20t\ - hat\x20monitored\n\x20resource\x20type.\x20A\x20monitored\x20resource\ - \x20and\x20metric\x20pair\x20may\x20only\x20be\x20used\x20once\n\x20in\ - \x20the\x20Monitoring\x20configuration.\n\n\x0c\n\x05\x04\0\x02\x01\x04\ - \x12\x03Y\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03Y\x0b\x20\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03Y!6\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03Y\ - 9:b\x06proto3\ + \x20configuration.\n\n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03i\x02\n\n\x0c\ + \n\x05\x04\0\x02\x01\x06\x12\x03i\x0b\x20\n\x0c\n\x05\x04\0\x02\x01\x01\ + \x12\x03i!6\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03i9:b\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/policy.rs b/googleapis-raw/src/api/policy.rs new file mode 100644 index 0000000..e31c6c1 --- /dev/null +++ b/googleapis-raw/src/api/policy.rs @@ -0,0 +1,489 @@ +// This file is generated by rust-protobuf 3.4.0. Do not edit +// .proto file is parsed by protoc --rust-out=... +// @generated + +// https://github.com/rust-lang/rust-clippy/issues/702 +#![allow(unknown_lints)] +#![allow(clippy::all)] + +#![allow(unused_attributes)] +#![cfg_attr(rustfmt, rustfmt::skip)] + + +#![allow(dead_code)] +#![allow(missing_docs)] +#![allow(non_camel_case_types)] +#![allow(non_snake_case)] +#![allow(non_upper_case_globals)] +#![allow(trivial_casts)] +#![allow(unused_results)] +#![allow(unused_mut)] + +//! Generated file from `google/api/policy.proto` + +/// Generated files are compatible only with the same version +/// of protobuf runtime. +const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; + +/// Google API Policy Annotation +/// +/// This message defines a simple API policy annotation that can be used to +/// annotate API request and response message fields with applicable policies. +/// One field may have multiple applicable policies that must all be satisfied +/// before a request can be processed. This policy annotation is used to +/// generate the overall policy that will be used for automatic runtime +/// policy enforcement and documentation generation. +// @@protoc_insertion_point(message:google.api.FieldPolicy) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct FieldPolicy { + // message fields + /// Selects one or more request or response message fields to apply this + /// `FieldPolicy`. + /// + /// When a `FieldPolicy` is used in proto annotation, the selector must + /// be left as empty. The service config generator will automatically fill + /// the correct value. + /// + /// When a `FieldPolicy` is used in service config, the selector must be a + /// comma-separated string with valid request or response field paths, + /// such as "foo.bar" or "foo.bar,foo.baz". + // @@protoc_insertion_point(field:google.api.FieldPolicy.selector) + pub selector: ::std::string::String, + /// Specifies the required permission(s) for the resource referred to by the + /// field. It requires the field contains a valid resource reference, and + /// the request must pass the permission checks to proceed. For example, + /// "resourcemanager.projects.get". + // @@protoc_insertion_point(field:google.api.FieldPolicy.resource_permission) + pub resource_permission: ::std::string::String, + /// Specifies the resource type for the resource referred to by the field. + // @@protoc_insertion_point(field:google.api.FieldPolicy.resource_type) + pub resource_type: ::std::string::String, + // special fields + // @@protoc_insertion_point(special_field:google.api.FieldPolicy.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a FieldPolicy { + fn default() -> &'a FieldPolicy { + ::default_instance() + } +} + +impl FieldPolicy { + pub fn new() -> FieldPolicy { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(3); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &FieldPolicy| { &m.selector }, + |m: &mut FieldPolicy| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource_permission", + |m: &FieldPolicy| { &m.resource_permission }, + |m: &mut FieldPolicy| { &mut m.resource_permission }, + )); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "resource_type", + |m: &FieldPolicy| { &m.resource_type }, + |m: &mut FieldPolicy| { &mut m.resource_type }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "FieldPolicy", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for FieldPolicy { + const NAME: &'static str = "FieldPolicy"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 10 => { + self.selector = is.read_string()?; + }, + 18 => { + self.resource_permission = is.read_string()?; + }, + 26 => { + self.resource_type = is.read_string()?; + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.selector.is_empty() { + my_size += ::protobuf::rt::string_size(1, &self.selector); + } + if !self.resource_permission.is_empty() { + my_size += ::protobuf::rt::string_size(2, &self.resource_permission); + } + if !self.resource_type.is_empty() { + my_size += ::protobuf::rt::string_size(3, &self.resource_type); + } + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.selector.is_empty() { + os.write_string(1, &self.selector)?; + } + if !self.resource_permission.is_empty() { + os.write_string(2, &self.resource_permission)?; + } + if !self.resource_type.is_empty() { + os.write_string(3, &self.resource_type)?; + } + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> FieldPolicy { + FieldPolicy::new() + } + + fn clear(&mut self) { + self.selector.clear(); + self.resource_permission.clear(); + self.resource_type.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static FieldPolicy { + static instance: FieldPolicy = FieldPolicy { + selector: ::std::string::String::new(), + resource_permission: ::std::string::String::new(), + resource_type: ::std::string::String::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for FieldPolicy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("FieldPolicy").unwrap()).clone() + } +} + +impl ::std::fmt::Display for FieldPolicy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for FieldPolicy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Defines policies applying to an RPC method. +// @@protoc_insertion_point(message:google.api.MethodPolicy) +#[derive(PartialEq,Clone,Default,Debug)] +pub struct MethodPolicy { + // message fields + /// Selects a method to which these policies should be enforced, for example, + /// "google.pubsub.v1.Subscriber.CreateSubscription". + /// + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. + /// + /// NOTE: This field must not be set in the proto annotation. It will be + /// automatically filled by the service config compiler . + // @@protoc_insertion_point(field:google.api.MethodPolicy.selector) + pub selector: ::std::string::String, + /// Policies that are applicable to the request message. + // @@protoc_insertion_point(field:google.api.MethodPolicy.request_policies) + pub request_policies: ::std::vec::Vec, + // special fields + // @@protoc_insertion_point(special_field:google.api.MethodPolicy.special_fields) + pub special_fields: ::protobuf::SpecialFields, +} + +impl<'a> ::std::default::Default for &'a MethodPolicy { + fn default() -> &'a MethodPolicy { + ::default_instance() + } +} + +impl MethodPolicy { + pub fn new() -> MethodPolicy { + ::std::default::Default::default() + } + + fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { + let mut fields = ::std::vec::Vec::with_capacity(2); + let mut oneofs = ::std::vec::Vec::with_capacity(0); + fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( + "selector", + |m: &MethodPolicy| { &m.selector }, + |m: &mut MethodPolicy| { &mut m.selector }, + )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "request_policies", + |m: &MethodPolicy| { &m.request_policies }, + |m: &mut MethodPolicy| { &mut m.request_policies }, + )); + ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( + "MethodPolicy", + fields, + oneofs, + ) + } +} + +impl ::protobuf::Message for MethodPolicy { + const NAME: &'static str = "MethodPolicy"; + + fn is_initialized(&self) -> bool { + true + } + + fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { + while let Some(tag) = is.read_raw_tag_or_eof()? { + match tag { + 74 => { + self.selector = is.read_string()?; + }, + 18 => { + self.request_policies.push(is.read_message()?); + }, + tag => { + ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; + }, + }; + } + ::std::result::Result::Ok(()) + } + + // Compute sizes of nested messages + #[allow(unused_variables)] + fn compute_size(&self) -> u64 { + let mut my_size = 0; + if !self.selector.is_empty() { + my_size += ::protobuf::rt::string_size(9, &self.selector); + } + for value in &self.request_policies { + let len = value.compute_size(); + my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; + }; + my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); + self.special_fields.cached_size().set(my_size as u32); + my_size + } + + fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { + if !self.selector.is_empty() { + os.write_string(9, &self.selector)?; + } + for v in &self.request_policies { + ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; + }; + os.write_unknown_fields(self.special_fields.unknown_fields())?; + ::std::result::Result::Ok(()) + } + + fn special_fields(&self) -> &::protobuf::SpecialFields { + &self.special_fields + } + + fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { + &mut self.special_fields + } + + fn new() -> MethodPolicy { + MethodPolicy::new() + } + + fn clear(&mut self) { + self.selector.clear(); + self.request_policies.clear(); + self.special_fields.clear(); + } + + fn default_instance() -> &'static MethodPolicy { + static instance: MethodPolicy = MethodPolicy { + selector: ::std::string::String::new(), + request_policies: ::std::vec::Vec::new(), + special_fields: ::protobuf::SpecialFields::new(), + }; + &instance + } +} + +impl ::protobuf::MessageFull for MethodPolicy { + fn descriptor() -> ::protobuf::reflect::MessageDescriptor { + static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); + descriptor.get(|| file_descriptor().message_by_package_relative_name("MethodPolicy").unwrap()).clone() + } +} + +impl ::std::fmt::Display for MethodPolicy { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + ::protobuf::text_format::fmt(self, f) + } +} + +impl ::protobuf::reflect::ProtobufValue for MethodPolicy { + type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; +} + +/// Extension fields +pub mod exts { + + pub const field_policy: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, super::FieldPolicy> = ::protobuf::ext::ExtFieldOptional::new(158361448, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); + + pub const method_policy: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MethodOptions, super::MethodPolicy> = ::protobuf::ext::ExtFieldOptional::new(161893301, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_MESSAGE); +} + +static file_descriptor_proto_data: &'static [u8] = b"\ + \n\x17google/api/policy.proto\x12\ngoogle.api\x1a\x20google/protobuf/des\ + criptor.proto\"\x7f\n\x0bFieldPolicy\x12\x1a\n\x08selector\x18\x01\x20\ + \x01(\tR\x08selector\x12/\n\x13resource_permission\x18\x02\x20\x01(\tR\ + \x12resourcePermission\x12#\n\rresource_type\x18\x03\x20\x01(\tR\x0creso\ + urceType\"n\n\x0cMethodPolicy\x12\x1a\n\x08selector\x18\t\x20\x01(\tR\ + \x08selector\x12B\n\x10request_policies\x18\x02\x20\x03(\x0b2\x17.google\ + .api.FieldPolicyR\x0frequestPolicies:\\\n\x0cfield_policy\x18\xe8\xce\ + \xc1K\x20\x01(\x0b2\x17.google.api.FieldPolicy\x12\x1d.google.protobuf.F\ + ieldOptionsR\x0bfieldPolicy:`\n\rmethod_policy\x18\xb5\x97\x99M\x20\x01(\ + \x0b2\x18.google.api.MethodPolicy\x12\x1e.google.protobuf.MethodOptionsR\ + \x0cmethodPolicyBp\n\x0ecom.google.apiB\x0bPolicyProtoP\x01ZEgoogle.gola\ + ng.org/genproto/googleapis/api/serviceconfig;serviceconfig\xf8\x01\x01\ + \xa2\x02\x04GAPIJ\xda\x16\n\x06\x12\x04\x0e\0R\x01\n\xbc\x04\n\x01\x0c\ + \x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LLC\n\n\ + \x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.0\x20\ + (the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\x20e\ + xcept\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20may\x20\ + obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\x20\ + \x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20required\ + \x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\x20s\ + oftware\n\x20distributed\x20under\x20the\x20License\x20is\x20distributed\ + \x20on\x20an\x20\"AS\x20IS\"\x20BASIS,\n\x20WITHOUT\x20WARRANTIES\x20OR\ + \x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\x20impli\ + ed.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20language\x20\ + governing\x20permissions\x20and\n\x20limitations\x20under\x20the\x20Lice\ + nse.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\t\n\x02\x03\0\x12\x03\x12\0*\ + \n\x08\n\x01\x08\x12\x03\x14\0\x1f\n\t\n\x02\x08\x1f\x12\x03\x14\0\x1f\n\ + \x08\n\x01\x08\x12\x03\x15\0\\\n\t\n\x02\x08\x0b\x12\x03\x15\0\\\n\x08\n\ + \x01\x08\x12\x03\x16\0\"\n\t\n\x02\x08\n\x12\x03\x16\0\"\n\x08\n\x01\x08\ + \x12\x03\x17\0,\n\t\n\x02\x08\x08\x12\x03\x17\0,\n\x08\n\x01\x08\x12\x03\ + \x18\0'\n\t\n\x02\x08\x01\x12\x03\x18\0'\n\x08\n\x01\x08\x12\x03\x19\0\"\ + \n\t\n\x02\x08$\x12\x03\x19\0\"\n\t\n\x01\x07\x12\x04\x1b\0\x1e\x01\n!\n\ + \x02\x07\0\x12\x03\x1d\x022\x1a\x16\x20See\x20[FieldPolicy][].\n\n\n\n\ + \x03\x07\0\x02\x12\x03\x1b\x07#\n\n\n\x03\x07\0\x06\x12\x03\x1d\x02\x18\ + \n\n\n\x03\x07\0\x01\x12\x03\x1d\x19%\n\n\n\x03\x07\0\x03\x12\x03\x1d(1\ + \n\t\n\x01\x07\x12\x04\x20\0#\x01\n\"\n\x02\x07\x01\x12\x03\"\x024\x1a\ + \x17\x20See\x20[MethodPolicy][].\n\n\n\n\x03\x07\x01\x02\x12\x03\x20\x07\ + $\n\n\n\x03\x07\x01\x06\x12\x03\"\x02\x19\n\n\n\x03\x07\x01\x01\x12\x03\ + \"\x1a'\n\n\n\x03\x07\x01\x03\x12\x03\"*3\n\xca\x03\n\x02\x04\0\x12\x04-\ + \0B\x01\x1a\xbd\x03\x20Google\x20API\x20Policy\x20Annotation\n\n\x20This\ + \x20message\x20defines\x20a\x20simple\x20API\x20policy\x20annotation\x20\ + that\x20can\x20be\x20used\x20to\n\x20annotate\x20API\x20request\x20and\ + \x20response\x20message\x20fields\x20with\x20applicable\x20policies.\n\ + \x20One\x20field\x20may\x20have\x20multiple\x20applicable\x20policies\ + \x20that\x20must\x20all\x20be\x20satisfied\n\x20before\x20a\x20request\ + \x20can\x20be\x20processed.\x20This\x20policy\x20annotation\x20is\x20use\ + d\x20to\n\x20generate\x20the\x20overall\x20policy\x20that\x20will\x20be\ + \x20used\x20for\x20automatic\x20runtime\n\x20policy\x20enforcement\x20an\ + d\x20documentation\x20generation.\n\n\n\n\x03\x04\0\x01\x12\x03-\x08\x13\ + \n\xbc\x03\n\x04\x04\0\x02\0\x12\x038\x02\x16\x1a\xae\x03\x20Selects\x20\ + one\x20or\x20more\x20request\x20or\x20response\x20message\x20fields\x20t\ + o\x20apply\x20this\n\x20`FieldPolicy`.\n\n\x20When\x20a\x20`FieldPolicy`\ + \x20is\x20used\x20in\x20proto\x20annotation,\x20the\x20selector\x20must\ + \n\x20be\x20left\x20as\x20empty.\x20The\x20service\x20config\x20generato\ + r\x20will\x20automatically\x20fill\n\x20the\x20correct\x20value.\n\n\x20\ + When\x20a\x20`FieldPolicy`\x20is\x20used\x20in\x20service\x20config,\x20\ + the\x20selector\x20must\x20be\x20a\n\x20comma-separated\x20string\x20wit\ + h\x20valid\x20request\x20or\x20response\x20field\x20paths,\n\x20such\x20\ + as\x20\"foo.bar\"\x20or\x20\"foo.bar,foo.baz\".\n\n\x0c\n\x05\x04\0\x02\ + \0\x05\x12\x038\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x038\t\x11\n\x0c\ + \n\x05\x04\0\x02\0\x03\x12\x038\x14\x15\n\x86\x02\n\x04\x04\0\x02\x01\ + \x12\x03>\x02!\x1a\xf8\x01\x20Specifies\x20the\x20required\x20permission\ + (s)\x20for\x20the\x20resource\x20referred\x20to\x20by\x20the\n\x20field.\ + \x20It\x20requires\x20the\x20field\x20contains\x20a\x20valid\x20resource\ + \x20reference,\x20and\n\x20the\x20request\x20must\x20pass\x20the\x20perm\ + ission\x20checks\x20to\x20proceed.\x20For\x20example,\n\x20\"resourceman\ + ager.projects.get\".\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03>\x02\x08\n\ + \x0c\n\x05\x04\0\x02\x01\x01\x12\x03>\t\x1c\n\x0c\n\x05\x04\0\x02\x01\ + \x03\x12\x03>\x1f\x20\nU\n\x04\x04\0\x02\x02\x12\x03A\x02\x1b\x1aH\x20Sp\ + ecifies\x20the\x20resource\x20type\x20for\x20the\x20resource\x20referred\ + \x20to\x20by\x20the\x20field.\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03A\ + \x02\x08\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03A\t\x16\n\x0c\n\x05\x04\0\ + \x02\x02\x03\x12\x03A\x19\x1a\n9\n\x02\x04\x01\x12\x04E\0R\x01\x1a-\x20D\ + efines\x20policies\x20applying\x20to\x20an\x20RPC\x20method.\n\n\n\n\x03\ + \x04\x01\x01\x12\x03E\x08\x14\n\xdc\x02\n\x04\x04\x01\x02\0\x12\x03N\x02\ + \x16\x1a\xce\x02\x20Selects\x20a\x20method\x20to\x20which\x20these\x20po\ + licies\x20should\x20be\x20enforced,\x20for\x20example,\n\x20\"google.pub\ + sub.v1.Subscriber.CreateSubscription\".\n\n\x20Refer\x20to\x20[selector]\ + [google.api.DocumentationRule.selector]\x20for\x20syntax\n\x20details.\n\ + \n\x20NOTE:\x20This\x20field\x20must\x20not\x20be\x20set\x20in\x20the\ + \x20proto\x20annotation.\x20It\x20will\x20be\n\x20automatically\x20fille\ + d\x20by\x20the\x20service\x20config\x20compiler\x20.\n\n\x0c\n\x05\x04\ + \x01\x02\0\x05\x12\x03N\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03N\t\ + \x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03N\x14\x15\nC\n\x04\x04\x01\x02\ + \x01\x12\x03Q\x02,\x1a6\x20Policies\x20that\x20are\x20applicable\x20to\ + \x20the\x20request\x20message.\n\n\x0c\n\x05\x04\x01\x02\x01\x04\x12\x03\ + Q\x02\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03Q\x0b\x16\n\x0c\n\x05\x04\ + \x01\x02\x01\x01\x12\x03Q\x17'\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03Q*\ + +b\x06proto3\ +"; + +/// `FileDescriptorProto` object which was a source for this generated file +fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { + static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); + file_descriptor_proto_lazy.get(|| { + ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() + }) +} + +/// `FileDescriptor` object which allows dynamic access to files +pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { + static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); + static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); + file_descriptor.get(|| { + let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { + let mut deps = ::std::vec::Vec::with_capacity(1); + deps.push(::protobuf::descriptor::file_descriptor().clone()); + let mut messages = ::std::vec::Vec::with_capacity(2); + messages.push(FieldPolicy::generated_message_descriptor_data()); + messages.push(MethodPolicy::generated_message_descriptor_data()); + let mut enums = ::std::vec::Vec::with_capacity(0); + ::protobuf::reflect::GeneratedFileDescriptor::new_generated( + file_descriptor_proto(), + deps, + messages, + enums, + ) + }); + ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) + }) +} diff --git a/googleapis-raw/src/api/quota.rs b/googleapis-raw/src/api/quota.rs index a49f84a..9352ca7 100644 --- a/googleapis-raw/src/api/quota.rs +++ b/googleapis-raw/src/api/quota.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -29,10 +29,10 @@ const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_4_0; #[derive(PartialEq,Clone,Default,Debug)] pub struct Quota { // message fields - /// List of `QuotaLimit` definitions for the service. + /// List of QuotaLimit definitions for the service. // @@protoc_insertion_point(field:google.api.Quota.limits) pub limits: ::std::vec::Vec, - /// List of `MetricRule` definitions, each one mapping a selected method to one + /// List of MetricRule definitions, each one mapping a selected method to one /// or more metrics. // @@protoc_insertion_point(field:google.api.Quota.metric_rules) pub metric_rules: ::std::vec::Vec, @@ -178,7 +178,8 @@ pub struct MetricRule { // message fields /// Selects the methods to which this rule applies. /// - /// Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + /// Refer to [selector][google.api.DocumentationRule.selector] for syntax + /// details. // @@protoc_insertion_point(field:google.api.MetricRule.selector) pub selector: ::std::string::String, /// Metrics to update when the selected methods are called, and the associated @@ -391,10 +392,7 @@ pub struct QuotaLimit { /// Used by group-based quotas only. // @@protoc_insertion_point(field:google.api.QuotaLimit.free_tier) pub free_tier: i64, - /// Duration of this limit in textual notation. Example: "100s", "24h", "1d". - /// For duration longer than a day, only multiple of days is supported. We - /// support only "100s" and "1d" for now. Additional support will be added in - /// the future. "0" indicates indefinite duration. + /// Duration of this limit in textual notation. Must be "100s" or "1d". /// /// Used by group-based quotas only. // @@protoc_insertion_point(field:google.api.QuotaLimit.duration) @@ -715,12 +713,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ y\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\ \x20\x01(\x03R\x05value:\x028\x01Bl\n\x0ecom.google.apiB\nQuotaProtoP\ \x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;servicecon\ - fig\xa2\x02\x04GAPIJ\xf48\n\x07\x12\x05\x0f\0\xba\x01\x01\n\xbe\x04\n\ - \x01\x0c\x12\x03\x0f\0\x122\xb3\x04\x20Copyright\x202019\x20Google\x20LL\ - C.\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202\ - .0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20fil\ - e\x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20m\ - ay\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ + fig\xa2\x02\x04GAPIJ\xa17\n\x07\x12\x05\x0e\0\xb7\x01\x01\n\xbc\x04\n\ + \x01\x0c\x12\x03\x0e\0\x122\xb1\x04\x20Copyright\x202024\x20Google\x20LL\ + C\n\n\x20Licensed\x20under\x20the\x20Apache\x20License,\x20Version\x202.\ + 0\x20(the\x20\"License\");\n\x20you\x20may\x20not\x20use\x20this\x20file\ + \x20except\x20in\x20compliance\x20with\x20the\x20License.\n\x20You\x20ma\ + y\x20obtain\x20a\x20copy\x20of\x20the\x20License\x20at\n\n\x20\x20\x20\ \x20\x20http://www.apache.org/licenses/LICENSE-2.0\n\n\x20Unless\x20requ\ ired\x20by\x20applicable\x20law\x20or\x20agreed\x20to\x20in\x20writing,\ \x20software\n\x20distributed\x20under\x20the\x20License\x20is\x20distri\ @@ -728,12 +726,12 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x20OR\x20CONDITIONS\x20OF\x20ANY\x20KIND,\x20either\x20express\x20or\ \x20implied.\n\x20See\x20the\x20License\x20for\x20the\x20specific\x20lan\ guage\x20governing\x20permissions\x20and\n\x20limitations\x20under\x20th\ - e\x20License.\n\n\n\x08\n\x01\x02\x12\x03\x11\0\x13\n\x08\n\x01\x08\x12\ - \x03\x13\0\\\n\t\n\x02\x08\x0b\x12\x03\x13\0\\\n\x08\n\x01\x08\x12\x03\ - \x14\0\"\n\t\n\x02\x08\n\x12\x03\x14\0\"\n\x08\n\x01\x08\x12\x03\x15\0+\ - \n\t\n\x02\x08\x08\x12\x03\x15\0+\n\x08\n\x01\x08\x12\x03\x16\0'\n\t\n\ - \x02\x08\x01\x12\x03\x16\0'\n\x08\n\x01\x08\x12\x03\x17\0\"\n\t\n\x02\ - \x08$\x12\x03\x17\0\"\n\x87\r\n\x02\x04\0\x12\x04L\0S\x01\x1a\xfa\x0c\ + e\x20License.\n\n\x08\n\x01\x02\x12\x03\x10\0\x13\n\x08\n\x01\x08\x12\ + \x03\x12\0\\\n\t\n\x02\x08\x0b\x12\x03\x12\0\\\n\x08\n\x01\x08\x12\x03\ + \x13\0\"\n\t\n\x02\x08\n\x12\x03\x13\0\"\n\x08\n\x01\x08\x12\x03\x14\0+\ + \n\t\n\x02\x08\x08\x12\x03\x14\0+\n\x08\n\x01\x08\x12\x03\x15\0'\n\t\n\ + \x02\x08\x01\x12\x03\x15\0'\n\x08\n\x01\x08\x12\x03\x16\0\"\n\t\n\x02\ + \x08$\x12\x03\x16\0\"\n\x84\r\n\x02\x04\0\x12\x04K\0R\x01\x1a\xf7\x0c\ \x20Quota\x20configuration\x20helps\x20to\x20achieve\x20fairness\x20and\ \x20budgeting\x20in\x20service\n\x20usage.\n\n\x20The\x20metric\x20based\ \x20quota\x20configuration\x20works\x20this\x20way:\n\x20-\x20The\x20ser\ @@ -749,48 +747,48 @@ static file_descriptor_proto_data: &'static [u8] = b"\ s\n\x20\x20\x20\x20\x20\x20\x20\x20unit:\x20\"1/min/{project}\"\x20\x20#\ \x20rate\x20limit\x20for\x20consumer\x20projects\n\x20\x20\x20\x20\x20\ \x20\x20\x20values:\n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20STANDARD:\ - \x2010000\n\n\n\x20\x20\x20\x20\x20\x20#\x20The\x20metric\x20rules\x20bi\ - nd\x20all\x20methods\x20to\x20the\x20read_calls\x20metric,\n\x20\x20\x20\ - \x20\x20\x20#\x20except\x20for\x20the\x20UpdateBook\x20and\x20DeleteBook\ - \x20methods.\x20These\x20two\x20methods\n\x20\x20\x20\x20\x20\x20#\x20ar\ - e\x20mapped\x20to\x20the\x20write_calls\x20metric,\x20with\x20the\x20Upd\ - ateBook\x20method\n\x20\x20\x20\x20\x20\x20#\x20consuming\x20at\x20twice\ - \x20rate\x20as\x20the\x20DeleteBook\x20method.\n\x20\x20\x20\x20\x20\x20\ - metric_rules:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\x20\ - \x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\x20\x20\x20\ - \x20\x20library.googleapis.com/read_calls:\x201\n\x20\x20\x20\x20\x20\ - \x20-\x20selector:\x20google.example.library.v1.LibraryService.UpdateBoo\ - k\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\ - \x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x202\n\x20\x20\ - \x20\x20\x20\x20-\x20selector:\x20google.example.library.v1.LibraryServi\ - ce.DeleteBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\ - \x20\x20\x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x201\ - \n\n\x20\x20Corresponding\x20Metric\x20definition:\n\n\x20\x20\x20\x20\ - \x20\x20metrics:\n\x20\x20\x20\x20\x20\x20-\x20name:\x20library.googleap\ - is.com/read_calls\n\x20\x20\x20\x20\x20\x20\x20\x20display_name:\x20Read\ - \x20requests\n\x20\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\ - \x20\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\n\x20\x20\x20\x20\ - \x20\x20-\x20name:\x20library.googleapis.com/write_calls\n\x20\x20\x20\ - \x20\x20\x20\x20\x20display_name:\x20Write\x20requests\n\x20\x20\x20\x20\ - \x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20\x20v\ - alue_type:\x20INT64\n\n\n\n\n\n\x03\x04\0\x01\x12\x03L\x08\r\n@\n\x04\ - \x04\0\x02\0\x12\x03N\x02!\x1a3\x20List\x20of\x20`QuotaLimit`\x20definit\ - ions\x20for\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03N\ - \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03N\x0b\x15\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03N\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03N\x1f\x20\ - \nl\n\x04\x04\0\x02\x01\x12\x03R\x02'\x1a_\x20List\x20of\x20`MetricRule`\ + \x2010000\n\n\n\x20\x20\x20\x20\x20\x20(The\x20metric\x20rules\x20bind\ + \x20all\x20methods\x20to\x20the\x20read_calls\x20metric,\n\x20\x20\x20\ + \x20\x20\x20\x20except\x20for\x20the\x20UpdateBook\x20and\x20DeleteBook\ + \x20methods.\x20These\x20two\x20methods\n\x20\x20\x20\x20\x20\x20\x20are\ + \x20mapped\x20to\x20the\x20write_calls\x20metric,\x20with\x20the\x20Upda\ + teBook\x20method\n\x20\x20\x20\x20\x20\x20\x20consuming\x20at\x20twice\ + \x20rate\x20as\x20the\x20DeleteBook\x20method.)\n\x20\x20\x20\x20\x20\ + \x20metric_rules:\n\x20\x20\x20\x20\x20\x20-\x20selector:\x20\"*\"\n\x20\ + \x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\x20\x20\x20\ + \x20\x20\x20library.googleapis.com/read_calls:\x201\n\x20\x20\x20\x20\ + \x20\x20-\x20selector:\x20google.example.library.v1.LibraryService.Updat\ + eBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\x20\x20\x20\ + \x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\x202\n\x20\ + \x20\x20\x20\x20\x20-\x20selector:\x20google.example.library.v1.LibraryS\ + ervice.DeleteBook\n\x20\x20\x20\x20\x20\x20\x20\x20metric_costs:\n\x20\ + \x20\x20\x20\x20\x20\x20\x20\x20\x20library.googleapis.com/write_calls:\ + \x201\n\n\x20\x20Corresponding\x20Metric\x20definition:\n\n\x20\x20\x20\ + \x20\x20\x20metrics:\n\x20\x20\x20\x20\x20\x20-\x20name:\x20library.goog\ + leapis.com/read_calls\n\x20\x20\x20\x20\x20\x20\x20\x20display_name:\x20\ + Read\x20requests\n\x20\x20\x20\x20\x20\x20\x20\x20metric_kind:\x20DELTA\ + \n\x20\x20\x20\x20\x20\x20\x20\x20value_type:\x20INT64\n\n\x20\x20\x20\ + \x20\x20\x20-\x20name:\x20library.googleapis.com/write_calls\n\x20\x20\ + \x20\x20\x20\x20\x20\x20display_name:\x20Write\x20requests\n\x20\x20\x20\ + \x20\x20\x20\x20\x20metric_kind:\x20DELTA\n\x20\x20\x20\x20\x20\x20\x20\ + \x20value_type:\x20INT64\n\n\n\n\n\n\x03\x04\0\x01\x12\x03K\x08\r\n>\n\ + \x04\x04\0\x02\0\x12\x03M\x02!\x1a1\x20List\x20of\x20QuotaLimit\x20defin\ + itions\x20for\x20the\x20service.\n\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03M\ + \x02\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03M\x0b\x15\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03M\x16\x1c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03M\x1f\x20\ + \nj\n\x04\x04\0\x02\x01\x12\x03Q\x02'\x1a]\x20List\x20of\x20MetricRule\ \x20definitions,\x20each\x20one\x20mapping\x20a\x20selected\x20method\ \x20to\x20one\n\x20or\x20more\x20metrics.\n\n\x0c\n\x05\x04\0\x02\x01\ - \x04\x12\x03R\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03R\x0b\x15\n\x0c\ - \n\x05\x04\0\x02\x01\x01\x12\x03R\x16\"\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03R%&\n\x96\x01\n\x02\x04\x01\x12\x04W\0d\x01\x1a\x89\x01\x20Bind\ + \x04\x12\x03Q\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03Q\x0b\x15\n\x0c\ + \n\x05\x04\0\x02\x01\x01\x12\x03Q\x16\"\n\x0c\n\x05\x04\0\x02\x01\x03\ + \x12\x03Q%&\n\x96\x01\n\x02\x04\x01\x12\x04V\0d\x01\x1a\x89\x01\x20Bind\ \x20API\x20methods\x20to\x20metrics.\x20Binding\x20a\x20method\x20to\x20\ a\x20metric\x20causes\x20that\n\x20metric's\x20configured\x20quota\x20be\ haviors\x20to\x20apply\x20to\x20the\x20method\x20call.\n\n\n\n\x03\x04\ - \x01\x01\x12\x03W\x08\x12\n\x90\x01\n\x04\x04\x01\x02\0\x12\x03[\x02\x16\ - \x1a\x82\x01\x20Selects\x20the\x20methods\x20to\x20which\x20this\x20rule\ + \x01\x01\x12\x03V\x08\x12\n\x91\x01\n\x04\x04\x01\x02\0\x12\x03[\x02\x16\ + \x1a\x83\x01\x20Selects\x20the\x20methods\x20to\x20which\x20this\x20rule\ \x20applies.\n\n\x20Refer\x20to\x20[selector][google.api.DocumentationRu\ - le.selector]\x20for\x20syntax\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\ + le.selector]\x20for\x20syntax\n\x20details.\n\n\x0c\n\x05\x04\x01\x02\0\ \x05\x12\x03[\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03[\t\x11\n\x0c\ \n\x05\x04\x01\x02\0\x03\x12\x03[\x14\x15\n\xa6\x02\n\x04\x04\x01\x02\ \x01\x12\x03c\x02&\x1a\x98\x02\x20Metrics\x20to\x20update\x20when\x20the\ @@ -801,7 +799,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ which\x20the\x20quota\x20limits\x20are\x20defined.\n\x20The\x20value\x20\ must\x20not\x20be\x20negative.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03\ c\x02\x14\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03c\x15!\n\x0c\n\x05\x04\ - \x01\x02\x01\x03\x12\x03c$%\n\xd8\x01\n\x02\x04\x02\x12\x05i\0\xba\x01\ + \x01\x02\x01\x03\x12\x03c$%\n\xd8\x01\n\x02\x04\x02\x12\x05i\0\xb7\x01\ \x01\x1a\xca\x01\x20`QuotaLimit`\x20defines\x20a\x20specific\x20limit\ \x20that\x20applies\x20over\x20a\x20specified\x20duration\n\x20for\x20a\ \x20limit\x20type.\x20There\x20can\x20be\x20at\x20most\x20one\x20limit\ @@ -860,50 +858,46 @@ static file_descriptor_proto_data: &'static [u8] = b"\ is\x20service.\n\n\x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\r\ \n\x05\x04\x02\x02\x04\x05\x12\x04\x96\x01\x02\x07\n\r\n\x05\x04\x02\x02\ \x04\x01\x12\x04\x96\x01\x08\x11\n\r\n\x05\x04\x02\x02\x04\x03\x12\x04\ - \x96\x01\x14\x15\n\xc0\x02\n\x04\x04\x02\x02\x05\x12\x04\x9e\x01\x02\x16\ - \x1a\xb1\x02\x20Duration\x20of\x20this\x20limit\x20in\x20textual\x20nota\ - tion.\x20Example:\x20\"100s\",\x20\"24h\",\x20\"1d\".\n\x20For\x20durati\ - on\x20longer\x20than\x20a\x20day,\x20only\x20multiple\x20of\x20days\x20i\ - s\x20supported.\x20We\n\x20support\x20only\x20\"100s\"\x20and\x20\"1d\"\ - \x20for\x20now.\x20Additional\x20support\x20will\x20be\x20added\x20in\n\ - \x20the\x20future.\x20\"0\"\x20indicates\x20indefinite\x20duration.\n\n\ - \x20Used\x20by\x20group-based\x20quotas\x20only.\n\n\r\n\x05\x04\x02\x02\ - \x05\x05\x12\x04\x9e\x01\x02\x08\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\ - \x9e\x01\t\x11\n\r\n\x05\x04\x02\x02\x05\x03\x12\x04\x9e\x01\x14\x15\n\ - \xcb\x01\n\x04\x04\x02\x02\x06\x12\x04\xa3\x01\x02\x14\x1a\xbc\x01\x20Th\ - e\x20name\x20of\x20the\x20metric\x20this\x20quota\x20limit\x20applies\ - \x20to.\x20The\x20quota\x20limits\x20with\n\x20the\x20same\x20metric\x20\ - will\x20be\x20checked\x20together\x20during\x20runtime.\x20The\x20metric\ - \x20must\x20be\n\x20defined\x20within\x20the\x20service\x20config.\n\n\r\ - \n\x05\x04\x02\x02\x06\x05\x12\x04\xa3\x01\x02\x08\n\r\n\x05\x04\x02\x02\ - \x06\x01\x12\x04\xa3\x01\t\x0f\n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xa3\ - \x01\x12\x13\n\xf8\x02\n\x04\x04\x02\x02\x07\x12\x04\xae\x01\x02\x12\x1a\ - \xe9\x02\x20Specify\x20the\x20unit\x20of\x20the\x20quota\x20limit.\x20It\ - \x20uses\x20the\x20same\x20syntax\x20as\n\x20[Metric.unit][].\x20The\x20\ - supported\x20unit\x20kinds\x20are\x20determined\x20by\x20the\x20quota\n\ - \x20backend\x20system.\n\n\x20Here\x20are\x20some\x20examples:\n\x20*\ - \x20\"1/min/{project}\"\x20for\x20quota\x20per\x20minute\x20per\x20proje\ - ct.\n\n\x20Note:\x20the\x20order\x20of\x20unit\x20components\x20is\x20in\ - significant.\n\x20The\x20\"1\"\x20at\x20the\x20beginning\x20is\x20requir\ - ed\x20to\x20follow\x20the\x20metric\x20unit\x20syntax.\n\n\r\n\x05\x04\ - \x02\x02\x07\x05\x12\x04\xae\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\ - \x12\x04\xae\x01\t\r\n\r\n\x05\x04\x02\x02\x07\x03\x12\x04\xae\x01\x10\ - \x11\n\xd5\x01\n\x04\x04\x02\x02\x08\x12\x04\xb3\x01\x02!\x1a\xc6\x01\ - \x20Tiered\x20limit\x20values.\x20You\x20must\x20specify\x20this\x20as\ - \x20a\x20key:value\x20pair,\x20with\x20an\n\x20integer\x20value\x20that\ - \x20is\x20the\x20maximum\x20number\x20of\x20requests\x20allowed\x20for\ - \x20the\n\x20specified\x20unit.\x20Currently\x20only\x20STANDARD\x20is\ - \x20supported.\n\n\r\n\x05\x04\x02\x02\x08\x06\x12\x04\xb3\x01\x02\x14\n\ - \r\n\x05\x04\x02\x02\x08\x01\x12\x04\xb3\x01\x15\x1b\n\r\n\x05\x04\x02\ - \x02\x08\x03\x12\x04\xb3\x01\x1e\x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\ - \x04\xb9\x01\x02\x1b\x1a\xef\x01\x20User-visible\x20display\x20name\x20f\ - or\x20this\x20limit.\n\x20Optional.\x20If\x20not\x20set,\x20the\x20UI\ - \x20will\x20provide\x20a\x20default\x20display\x20name\x20based\x20on\n\ - \x20the\x20quota\x20configuration.\x20This\x20field\x20can\x20be\x20used\ - \x20to\x20override\x20the\x20default\n\x20display\x20name\x20generated\ - \x20from\x20the\x20configuration.\n\n\r\n\x05\x04\x02\x02\t\x05\x12\x04\ - \xb9\x01\x02\x08\n\r\n\x05\x04\x02\x02\t\x01\x12\x04\xb9\x01\t\x15\n\r\n\ - \x05\x04\x02\x02\t\x03\x12\x04\xb9\x01\x18\x1ab\x06proto3\ + \x96\x01\x14\x15\nv\n\x04\x04\x02\x02\x05\x12\x04\x9b\x01\x02\x16\x1ah\ + \x20Duration\x20of\x20this\x20limit\x20in\x20textual\x20notation.\x20Mus\ + t\x20be\x20\"100s\"\x20or\x20\"1d\".\n\n\x20Used\x20by\x20group-based\ + \x20quotas\x20only.\n\n\r\n\x05\x04\x02\x02\x05\x05\x12\x04\x9b\x01\x02\ + \x08\n\r\n\x05\x04\x02\x02\x05\x01\x12\x04\x9b\x01\t\x11\n\r\n\x05\x04\ + \x02\x02\x05\x03\x12\x04\x9b\x01\x14\x15\n\xcb\x01\n\x04\x04\x02\x02\x06\ + \x12\x04\xa0\x01\x02\x14\x1a\xbc\x01\x20The\x20name\x20of\x20the\x20metr\ + ic\x20this\x20quota\x20limit\x20applies\x20to.\x20The\x20quota\x20limits\ + \x20with\n\x20the\x20same\x20metric\x20will\x20be\x20checked\x20together\ + \x20during\x20runtime.\x20The\x20metric\x20must\x20be\n\x20defined\x20wi\ + thin\x20the\x20service\x20config.\n\n\r\n\x05\x04\x02\x02\x06\x05\x12\ + \x04\xa0\x01\x02\x08\n\r\n\x05\x04\x02\x02\x06\x01\x12\x04\xa0\x01\t\x0f\ + \n\r\n\x05\x04\x02\x02\x06\x03\x12\x04\xa0\x01\x12\x13\n\xf8\x02\n\x04\ + \x04\x02\x02\x07\x12\x04\xab\x01\x02\x12\x1a\xe9\x02\x20Specify\x20the\ + \x20unit\x20of\x20the\x20quota\x20limit.\x20It\x20uses\x20the\x20same\ + \x20syntax\x20as\n\x20[Metric.unit][].\x20The\x20supported\x20unit\x20ki\ + nds\x20are\x20determined\x20by\x20the\x20quota\n\x20backend\x20system.\n\ + \n\x20Here\x20are\x20some\x20examples:\n\x20*\x20\"1/min/{project}\"\x20\ + for\x20quota\x20per\x20minute\x20per\x20project.\n\n\x20Note:\x20the\x20\ + order\x20of\x20unit\x20components\x20is\x20insignificant.\n\x20The\x20\"\ + 1\"\x20at\x20the\x20beginning\x20is\x20required\x20to\x20follow\x20the\ + \x20metric\x20unit\x20syntax.\n\n\r\n\x05\x04\x02\x02\x07\x05\x12\x04\ + \xab\x01\x02\x08\n\r\n\x05\x04\x02\x02\x07\x01\x12\x04\xab\x01\t\r\n\r\n\ + \x05\x04\x02\x02\x07\x03\x12\x04\xab\x01\x10\x11\n\xd5\x01\n\x04\x04\x02\ + \x02\x08\x12\x04\xb0\x01\x02!\x1a\xc6\x01\x20Tiered\x20limit\x20values.\ + \x20You\x20must\x20specify\x20this\x20as\x20a\x20key:value\x20pair,\x20w\ + ith\x20an\n\x20integer\x20value\x20that\x20is\x20the\x20maximum\x20numbe\ + r\x20of\x20requests\x20allowed\x20for\x20the\n\x20specified\x20unit.\x20\ + Currently\x20only\x20STANDARD\x20is\x20supported.\n\n\r\n\x05\x04\x02\ + \x02\x08\x06\x12\x04\xb0\x01\x02\x14\n\r\n\x05\x04\x02\x02\x08\x01\x12\ + \x04\xb0\x01\x15\x1b\n\r\n\x05\x04\x02\x02\x08\x03\x12\x04\xb0\x01\x1e\ + \x20\n\xfe\x01\n\x04\x04\x02\x02\t\x12\x04\xb6\x01\x02\x1b\x1a\xef\x01\ + \x20User-visible\x20display\x20name\x20for\x20this\x20limit.\n\x20Option\ + al.\x20If\x20not\x20set,\x20the\x20UI\x20will\x20provide\x20a\x20default\ + \x20display\x20name\x20based\x20on\n\x20the\x20quota\x20configuration.\ + \x20This\x20field\x20can\x20be\x20used\x20to\x20override\x20the\x20defau\ + lt\n\x20display\x20name\x20generated\x20from\x20the\x20configuration.\n\ + \n\r\n\x05\x04\x02\x02\t\x05\x12\x04\xb6\x01\x02\x08\n\r\n\x05\x04\x02\ + \x02\t\x01\x12\x04\xb6\x01\t\x15\n\r\n\x05\x04\x02\x02\t\x03\x12\x04\xb6\ + \x01\x18\x1ab\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file diff --git a/googleapis-raw/src/api/resource.rs b/googleapis-raw/src/api/resource.rs index 127dbf9..c2007aa 100644 --- a/googleapis-raw/src/api/resource.rs +++ b/googleapis-raw/src/api/resource.rs @@ -9,7 +9,7 @@ #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] -#![allow(box_pointers)] + #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] @@ -49,10 +49,19 @@ pub struct ResourceDescriptor { pub name_field: ::std::string::String, // @@protoc_insertion_point(field:google.api.ResourceDescriptor.history) pub history: ::protobuf::EnumOrUnknown, - /// The plural name used in the resource name, such as 'projects' for - /// the name of 'projects/{project}'. It is the same concept of the `plural` - /// field in k8s CRD spec + /// The plural name used in the resource name and permission names, such as + /// 'projects' for the resource name of 'projects/{project}' and the permission + /// name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + /// to this is for Nested Collections that have stuttering names, as defined + /// in [AIP-122](https://google.aip.dev/122#nested-collections), where the + /// collection ID in the resource name pattern does not necessarily directly + /// match the `plural` value. + /// + /// It is the same concept of the `plural` field in k8s CRD spec /// https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + /// + /// Note: The plural form is required even for singleton resources. See + /// https://aip.dev/156 // @@protoc_insertion_point(field:google.api.ResourceDescriptor.plural) pub plural: ::std::string::String, /// The same concept of the `singular` field in k8s CRD spec @@ -60,6 +69,11 @@ pub struct ResourceDescriptor { /// Such as "project" for the `resourcemanager.googleapis.com/Project` type. // @@protoc_insertion_point(field:google.api.ResourceDescriptor.singular) pub singular: ::std::string::String, + /// Style flag(s) for this resource. + /// These indicate that a resource is expected to conform to a given + /// style. See the specific style flags for additional information. + // @@protoc_insertion_point(field:google.api.ResourceDescriptor.style) + pub style: ::std::vec::Vec<::protobuf::EnumOrUnknown>, // special fields // @@protoc_insertion_point(special_field:google.api.ResourceDescriptor.special_fields) pub special_fields: ::protobuf::SpecialFields, @@ -77,7 +91,7 @@ impl ResourceDescriptor { } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { - let mut fields = ::std::vec::Vec::with_capacity(6); + let mut fields = ::std::vec::Vec::with_capacity(7); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "type", @@ -109,6 +123,11 @@ impl ResourceDescriptor { |m: &ResourceDescriptor| { &m.singular }, |m: &mut ResourceDescriptor| { &mut m.singular }, )); + fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>( + "style", + |m: &ResourceDescriptor| { &m.style }, + |m: &mut ResourceDescriptor| { &mut m.style }, + )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "ResourceDescriptor", fields, @@ -145,6 +164,12 @@ impl ::protobuf::Message for ResourceDescriptor { 50 => { self.singular = is.read_string()?; }, + 80 => { + self.style.push(is.read_enum_or_unknown()?); + }, + 82 => { + ::protobuf::rt::read_repeated_packed_enum_or_unknown_into(is, &mut self.style)? + }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, @@ -175,6 +200,9 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.singular.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.singular); } + for value in &self.style { + my_size += ::protobuf::rt::int32_size(10, value.value()); + }; my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size @@ -199,6 +227,9 @@ impl ::protobuf::Message for ResourceDescriptor { if !self.singular.is_empty() { os.write_string(6, &self.singular)?; } + for v in &self.style { + os.write_enum(10, ::protobuf::EnumOrUnknown::value(v))?; + }; os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } @@ -222,6 +253,7 @@ impl ::protobuf::Message for ResourceDescriptor { self.history = ::protobuf::EnumOrUnknown::new(resource_descriptor::History::HISTORY_UNSPECIFIED); self.plural.clear(); self.singular.clear(); + self.style.clear(); self.special_fields.clear(); } @@ -233,6 +265,7 @@ impl ::protobuf::Message for ResourceDescriptor { history: ::protobuf::EnumOrUnknown::from_i32(0), plural: ::std::string::String::new(), singular: ::std::string::String::new(), + style: ::std::vec::Vec::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance @@ -326,6 +359,69 @@ pub mod resource_descriptor { ::protobuf::reflect::GeneratedEnumDescriptorData::new::("ResourceDescriptor.History") } } + + /// A flag representing a specific style that a resource claims to conform to. + #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)] + // @@protoc_insertion_point(enum:google.api.ResourceDescriptor.Style) + pub enum Style { + // @@protoc_insertion_point(enum_value:google.api.ResourceDescriptor.Style.STYLE_UNSPECIFIED) + STYLE_UNSPECIFIED = 0, + // @@protoc_insertion_point(enum_value:google.api.ResourceDescriptor.Style.DECLARATIVE_FRIENDLY) + DECLARATIVE_FRIENDLY = 1, + } + + impl ::protobuf::Enum for Style { + const NAME: &'static str = "Style"; + + fn value(&self) -> i32 { + *self as i32 + } + + fn from_i32(value: i32) -> ::std::option::Option